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

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

Issue 2401343002: Tracking filter mutation via SVGElementProxy (Closed)
Patch Set: Fix fullscreen Created 4 years, 1 month 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 149cd32f36b9d1f833d98c706a001b902e5c6781..4b386321fddc72f6fff7565152444f0d4d8721c2 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1567,8 +1567,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())
@@ -1959,11 +1957,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();
@@ -2241,31 +2236,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();
@@ -6391,7 +6361,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);

Powered by Google App Engine
This is Rietveld 408576698