Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleRule.cpp

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: comments 1 Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSStyleRule.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
index 3f176362872cb7b4868c4c486d3ab5e2b70f371b..bf8fb636ee709c7e5cb87d14f797ec9716fc8592 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSStyleRule.cpp
@@ -77,7 +77,8 @@ String CSSStyleRule::selectorText() const {
}
void CSSStyleRule::setSelectorText(const String& selectorText) {
- CSSParserContext context(parserContext(), nullptr);
+ const CSSParserContext* context =
+ new CSSParserContext(parserContext(), nullptr);
CSSSelectorList selectorList = CSSParser::parseSelector(
context, parentStyleSheet() ? parentStyleSheet()->contents() : nullptr,
selectorText);

Powered by Google App Engine
This is Rietveld 408576698