Backed out changeset 93065f7849c5 (bug 1408312)

This commit is contained in:
Sebastian Hengst 2017-10-16 16:15:40 +02:00
parent 821bac9381
commit c171ff1fa0

View File

@ -52,7 +52,6 @@
#include "mozilla/ServoBindings.h"
#include "mozilla/ServoStyleRule.h"
#include "mozilla/ServoStyleRuleMap.h"
#include "mozilla/ServoCSSParser.h"
using namespace mozilla;
using namespace mozilla::css;
@ -1037,13 +1036,9 @@ inDOMUtils::ColorToRGBA(const nsAString& aColorString, JSContext* aCx,
NS_IMETHODIMP
inDOMUtils::IsValidCSSColor(const nsAString& aColorString, bool *_retval)
{
#ifdef MOZ_STYLO
*_retval = ServoCSSParser::IsValidCSSColor(aColorString);
#else
nsCSSParser cssParser;
nsCSSValue cssValue;
*_retval = cssParser.ParseColorString(aColorString, nullptr, 0, cssValue, true);
#endif
return NS_OK;
}