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

Unified Diff: third_party/WebKit/Source/core/css/CSSPageRule.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/CSSPageRule.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPageRule.cpp b/third_party/WebKit/Source/core/css/CSSPageRule.cpp
index 8dec885533207b8586ec767f64bc857e517b59b8..bb5dd0f6faa824e9c3ab366d9c58e1ac5be2b458 100644
--- a/third_party/WebKit/Source/core/css/CSSPageRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPageRule.cpp
@@ -55,7 +55,7 @@ String CSSPageRule::selectorText() const {
}
void CSSPageRule::setSelectorText(const String& selectorText) {
- CSSParserContext context(parserContext(), nullptr);
+ CSSParserContext* context = new CSSParserContext(parserContext(), nullptr);
CSSSelectorList selectorList = CSSParser::parsePageSelector(
context, parentStyleSheet() ? parentStyleSheet()->contents() : nullptr,
selectorText);

Powered by Google App Engine
This is Rietveld 408576698