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

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

Issue 2451893003: Move Document global rule data to CSSGlobalRuleSet. (Closed)
Patch Set: Rebased. Created 4 years, 2 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/CSSDefaultStyleSheets.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
index 19d1ebea6ceb4776ee21bf9878e242138e62b02a..1a2b48ee9bd2eb370ddb8d62904f4f479509865d 100644
--- a/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
+++ b/third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp
@@ -126,9 +126,9 @@ CSSDefaultStyleSheets::ensureTelevisionViewportStyleSheet() {
return m_televisionViewportStyleSheet;
}
-void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(
- const Element& element,
- bool& changedDefaultStyle) {
+bool CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(
+ const Element& element) {
+ bool changedDefaultStyle = false;
// FIXME: We should assert that the sheet only styles SVG elements.
if (element.isSVGElement() && !m_svgStyleSheet) {
m_svgStyleSheet = parseUASheet(loadResourceAsASCIIString("svg.css"));
@@ -161,6 +161,7 @@ void CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement(
ASSERT(!m_defaultStyle->features().hasIdsInSelectors());
ASSERT(m_defaultStyle->features().siblingRules.isEmpty());
+ return changedDefaultStyle;
}
void CSSDefaultStyleSheets::ensureDefaultStyleSheetForFullscreen() {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.h ('k') | third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698