mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Backed out changeset 93065f7849c5 (bug 1408312)
This commit is contained in:
parent
821bac9381
commit
c171ff1fa0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user