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

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

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed LayoutTests and Aligned with review comments Created 6 years, 4 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 996a28e911bf13003b2f50d01cf4cf77b99a505b..257892cafc4ea9d3caf22fd40d4c90aa72b4ccec 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1583,7 +1583,7 @@ bool Document::needsFullRenderTreeUpdate() const
return false;
if (!m_useElementsNeedingUpdate.isEmpty())
return true;
- if (!m_layerUpdateSVGFilterElements.isEmpty())
+ if (!m_layerUpdateSVGEffectsElements.isEmpty())
return true;
if (needsStyleRecalc())
return true;
@@ -2068,28 +2068,28 @@ void Document::setIsViewSource(bool isViewSource)
bool Document::dirtyElementsForLayerUpdate()
{
- if (m_layerUpdateSVGFilterElements.isEmpty())
+ if (m_layerUpdateSVGEffectsElements.isEmpty())
return false;
- for (WillBeHeapHashSet<RawPtrWillBeMember<Element> >::iterator it = m_layerUpdateSVGFilterElements.begin(), end = m_layerUpdateSVGFilterElements.end(); it != end; ++it)
+ for (WillBeHeapHashSet<RawPtrWillBeMember<Element> >::iterator it = m_layerUpdateSVGEffectsElements.begin(), end = m_layerUpdateSVGEffectsElements.end(); it != end; ++it)
(*it)->setNeedsStyleRecalc(LocalStyleChange);
- m_layerUpdateSVGFilterElements.clear();
+ m_layerUpdateSVGEffectsElements.clear();
return true;
}
-void Document::scheduleSVGFilterLayerUpdateHack(Element& element)
+void Document::scheduleSVGEffectsLayerUpdateHack(Element& element)
{
if (element.styleChangeType() == NeedsReattachStyleChange)
return;
- element.setSVGFilterNeedsLayerUpdate();
- m_layerUpdateSVGFilterElements.add(&element);
+ element.setSVGEffectsNeedLayerUpdate();
+ m_layerUpdateSVGEffectsElements.add(&element);
scheduleRenderTreeUpdateIfNeeded();
}
-void Document::unscheduleSVGFilterLayerUpdateHack(Element& element)
+void Document::unscheduleSVGEffectsLayerUpdateHack(Element& element)
{
- element.clearSVGFilterNeedsLayerUpdate();
- m_layerUpdateSVGFilterElements.remove(&element);
+ element.clearSVGEffectsNeedLayerUpdate();
+ m_layerUpdateSVGEffectsElements.remove(&element);
}
void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element)
@@ -5864,7 +5864,7 @@ void Document::trace(Visitor* visitor)
visitor->trace(m_elementDataCache);
visitor->trace(m_associatedFormControls);
visitor->trace(m_useElementsNeedingUpdate);
- visitor->trace(m_layerUpdateSVGFilterElements);
+ visitor->trace(m_layerUpdateSVGEffectsElements);
visitor->trace(m_templateDocument);
visitor->trace(m_templateDocumentHost);
visitor->trace(m_visibilityObservers);

Powered by Google App Engine
This is Rietveld 408576698