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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 1869773004: Move shadowCascadeOrder to Document from StyleEngine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ASSERT and insert DCHECK_NE Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index cfe4388ab96377a56ef01895c70a27babf18027d..2cbb77fd6cbf87765ba108118c50bae4e6c23dee 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -733,24 +733,6 @@ void StyleEngine::setStatsEnabled(bool enabled)
m_styleResolverStats->reset();
}
-void StyleEngine::setShadowCascadeOrder(ShadowCascadeOrder order)
-{
- DCHECK_NE(order, ShadowCascadeOrder::ShadowCascadeNone);
-
- if (order == m_shadowCascadeOrder)
- return;
-
- if (order == ShadowCascadeOrder::ShadowCascadeV0)
- m_mayContainV0Shadow = true;
-
- // For V0 -> V1 upgrade, we need style recalculation for the whole document.
- if (m_shadowCascadeOrder == ShadowCascadeOrder::ShadowCascadeV0 && order == ShadowCascadeOrder::ShadowCascadeV1)
- document().setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::Shadow));
-
- if (order > m_shadowCascadeOrder)
- m_shadowCascadeOrder = order;
-}
-
void StyleEngine::setPreferredStylesheetSetNameIfNotSet(const String& name)
{
if (!m_preferredStylesheetSetName.isEmpty())
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698