| Index: sky/engine/core/css/parser/BisonCSSParser-in.cpp
|
| diff --git a/sky/engine/core/css/parser/BisonCSSParser-in.cpp b/sky/engine/core/css/parser/BisonCSSParser-in.cpp
|
| index 63e58576b9efa1064dc1fcc015843765c17d1bf8..de212243474fa0c1bfa5a12c2faa319f0a7637e0 100644
|
| --- a/sky/engine/core/css/parser/BisonCSSParser-in.cpp
|
| +++ b/sky/engine/core/css/parser/BisonCSSParser-in.cpp
|
| @@ -899,10 +899,7 @@ bool BisonCSSParser::parseValue(MutableStylePropertySet* declaration, CSSPropert
|
| m_id = propertyID;
|
| m_important = important;
|
|
|
| - {
|
| - StyleDeclarationScope scope(this, declaration);
|
| - cssyyparse(this);
|
| - }
|
| + cssyyparse(this);
|
|
|
| m_rule = nullptr;
|
| m_id = CSSPropertyInvalid;
|
| @@ -1020,10 +1017,7 @@ bool BisonCSSParser::parseDeclaration(MutableStylePropertySet* declaration, cons
|
| m_observer->startRuleBody(0);
|
| }
|
|
|
| - {
|
| - StyleDeclarationScope scope(this, declaration);
|
| - cssyyparse(this);
|
| - }
|
| + cssyyparse(this);
|
|
|
| m_rule = nullptr;
|
|
|
| @@ -1881,23 +1875,4 @@ void BisonCSSParser::startEndUnknownRule()
|
| m_observer->startEndUnknownRule();
|
| }
|
|
|
| -StyleRuleBase* BisonCSSParser::createViewportRule()
|
| -{
|
| - // Allow @viewport rules from UA stylesheets even if the feature is disabled.
|
| - if (!RuntimeEnabledFeatures::cssViewportEnabled() && !isUASheetBehavior(m_context.mode()))
|
| - return 0;
|
| -
|
| - m_allowImportRules = m_allowNamespaceDeclarations = false;
|
| -
|
| - RefPtrWillBeRawPtr<StyleRuleViewport> rule = StyleRuleViewport::create();
|
| -
|
| - rule->setProperties(createStylePropertySet());
|
| - clearProperties();
|
| -
|
| - StyleRuleViewport* result = rule.get();
|
| - m_parsedRules.append(rule.release());
|
| -
|
| - return result;
|
| -}
|
| -
|
| }
|
|
|