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

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

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected correction Created 4 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 e608db82f6eb06b4ebaeb87abd627f6a3660288d..2443b3d3f142f22f19c5ad01dca85d4a6d954413 100644
--- a/third_party/WebKit/Source/core/css/CSSPageRule.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPageRule.cpp
@@ -70,7 +70,7 @@ String CSSPageRule::selectorText() const
void CSSPageRule::setSelectorText(const String& selectorText)
{
CSSParserContext context(parserContext(), 0);
- CSSSelectorList selectorList = CSSParser::parseSelector(context, selectorText);
+ CSSSelectorList selectorList = CSSParser::parseSelector(context, parentStyleSheet()->contents(), selectorText);
Timothy Loh 2016/01/25 00:30:47 OK, but I wonder if this function is completely wr
rune 2016/01/25 08:58:48 Reported https://crbug.com/580956
if (!selectorList.isValid())
return;

Powered by Google App Engine
This is Rietveld 408576698