Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 7755997f837a5574ff44bf827390c9cfa208929d..c5f22b26a3adb05cb07c18c65627990f2ee22151 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -1568,8 +1568,6 @@ bool Document::needsFullLayoutTreeUpdate() const { |
return false; |
if (!m_useElementsNeedingUpdate.isEmpty()) |
return true; |
- if (!m_layerUpdateSVGFilterElements.isEmpty()) |
- return true; |
if (needsStyleRecalc()) |
return true; |
if (needsStyleInvalidation()) |
@@ -1960,11 +1958,8 @@ void Document::updateStyle() { |
if (Element* documentElement = this->documentElement()) { |
inheritHtmlAndBodyElementStyles(change); |
- dirtyElementsForLayerUpdate(); |
if (documentElement->shouldCallRecalcStyle(change)) |
documentElement->recalcStyle(change); |
- while (dirtyElementsForLayerUpdate()) |
- documentElement->recalcStyle(NoChange); |
} |
view()->recalcOverflowAfterStyleChange(); |
@@ -2242,31 +2237,6 @@ void Document::setIsViewSource(bool isViewSource) { |
didUpdateSecurityOrigin(); |
} |
-bool Document::dirtyElementsForLayerUpdate() { |
- if (m_layerUpdateSVGFilterElements.isEmpty()) |
- return false; |
- |
- for (Element* element : m_layerUpdateSVGFilterElements) |
- element->setNeedsStyleRecalc(LocalStyleChange, |
- StyleChangeReasonForTracing::create( |
- StyleChangeReason::SVGFilterLayerUpdate)); |
- m_layerUpdateSVGFilterElements.clear(); |
- return true; |
-} |
- |
-void Document::scheduleSVGFilterLayerUpdateHack(Element& element) { |
- if (element.getStyleChangeType() == NeedsReattachStyleChange) |
- return; |
- element.setSVGFilterNeedsLayerUpdate(); |
- m_layerUpdateSVGFilterElements.add(&element); |
- scheduleLayoutTreeUpdateIfNeeded(); |
-} |
- |
-void Document::unscheduleSVGFilterLayerUpdateHack(Element& element) { |
- element.clearSVGFilterNeedsLayerUpdate(); |
- m_layerUpdateSVGFilterElements.remove(&element); |
-} |
- |
void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element) { |
m_useElementsNeedingUpdate.add(&element); |
scheduleLayoutTreeUpdateIfNeeded(); |
@@ -6414,7 +6384,6 @@ DEFINE_TRACE(Document) { |
visitor->trace(m_customElementMicrotaskRunQueue); |
visitor->trace(m_elementDataCache); |
visitor->trace(m_useElementsNeedingUpdate); |
- visitor->trace(m_layerUpdateSVGFilterElements); |
visitor->trace(m_timers); |
visitor->trace(m_templateDocument); |
visitor->trace(m_templateDocumentHost); |