Changeset 228657 in webkit
- Timestamp:
- Feb 19, 2018 4:08:31 AM (6 years ago)
- Location:
- releases/WebKitGTK/webkit-2.20/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog
r228656 r228657 1 2018-02-07 Ryosuke Niwa <rniwa@webkit.org> 2 3 Remove unused CSSParserContext in CSSParser::parseInlineStyleDeclaration 4 https://bugs.webkit.org/show_bug.cgi?id=182587 5 6 Reviewed by Simon Fraser. 7 8 Removed the code. There is no need to create an unused CSSParserContext in CSSParser. 9 10 * css/parser/CSSParser.cpp: 11 (WebCore::CSSParser::parseInlineStyleDeclaration): 12 * css/parser/CSSParser.h: 13 * css/parser/CSSParserImpl.cpp: 14 (WebCore::CSSParserImpl::parseInlineStyleDeclaration): 15 * css/parser/CSSParserImpl.h: 16 1 17 2018-02-07 Youenn Fablet <youenn@apple.com> 2 18 -
releases/WebKitGTK/webkit-2.20/Source/WebCore/css/parser/CSSParser.cpp
r227577 r228657 223 223 } 224 224 225 Ref<ImmutableStyleProperties> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element) 226 { 227 CSSParserContext context(element->document()); 228 context.mode = strictToCSSParserMode(element->isHTMLElement() && !element->document().inQuirksMode()); 225 Ref<ImmutableStyleProperties> CSSParser::parseInlineStyleDeclaration(const String& string, const Element* element) 226 { 229 227 return CSSParserImpl::parseInlineStyleDeclaration(string, element); 230 228 } -
releases/WebKitGTK/webkit-2.20/Source/WebCore/css/parser/CSSParser.h
r216902 r228657 72 72 73 73 WEBCORE_EXPORT bool parseDeclaration(MutableStyleProperties&, const String&); 74 static Ref<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, Element*);74 static Ref<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, const Element*); 75 75 76 76 void parseSelector(const String&, CSSSelectorList&); -
releases/WebKitGTK/webkit-2.20/Source/WebCore/css/parser/CSSParserImpl.cpp
r225650 r228657 156 156 } 157 157 158 Ref<ImmutableStyleProperties> CSSParserImpl::parseInlineStyleDeclaration(const String& string, Element* element)158 Ref<ImmutableStyleProperties> CSSParserImpl::parseInlineStyleDeclaration(const String& string, const Element* element) 159 159 { 160 160 CSSParserContext context(element->document()); -
releases/WebKitGTK/webkit-2.20/Source/WebCore/css/parser/CSSParserImpl.h
r222259 r228657 86 86 static CSSParser::ParseResult parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, const CSSParserContext&); 87 87 static CSSParser::ParseResult parseCustomPropertyValue(MutableStyleProperties*, const AtomicString& propertyName, const String&, bool important, const CSSParserContext&); 88 static Ref<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, Element*);88 static Ref<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, const Element*); 89 89 static bool parseDeclarationList(MutableStyleProperties*, const String&, const CSSParserContext&); 90 90 static RefPtr<StyleRuleBase> parseRule(const String&, const CSSParserContext&, StyleSheetContents*, AllowedRulesType);
Note: See TracChangeset
for help on using the changeset viewer.