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

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

Issue 319613004: Rename scheduleLayerUpdate now that it's only used for SVG filters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename all the things Created 6 years, 6 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 | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 3a90c178a88d041444bf57a4addda7cce0883608..10be04d933c20f5fd8425cbf4fc6145603d92ba4 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1613,7 +1613,7 @@ bool Document::needsFullRenderTreeUpdate() const
return false;
if (!m_useElementsNeedingUpdate.isEmpty())
return true;
- if (!m_layerUpdateElements.isEmpty())
+ if (!m_layerUpdateSVGFilterElements.isEmpty())
return true;
if (needsStyleRecalc())
return true;
@@ -2096,28 +2096,28 @@ void Document::setIsViewSource(bool isViewSource)
bool Document::dirtyElementsForLayerUpdate()
{
- if (m_layerUpdateElements.isEmpty())
+ if (m_layerUpdateSVGFilterElements.isEmpty())
return false;
- HashSet<Element*>::iterator end = m_layerUpdateElements.end();
- for (HashSet<Element*>::iterator it = m_layerUpdateElements.begin(); it != end; ++it)
+ HashSet<Element*>::iterator end = m_layerUpdateSVGFilterElements.end();
+ for (HashSet<Element*>::iterator it = m_layerUpdateSVGFilterElements.begin(); it != end; ++it)
(*it)->setNeedsStyleRecalc(LocalStyleChange);
- m_layerUpdateElements.clear();
+ m_layerUpdateSVGFilterElements.clear();
return true;
}
-void Document::scheduleLayerUpdate(Element& element)
+void Document::scheduleSVGFilterLayerUpdateHack(Element& element)
{
if (element.styleChangeType() == NeedsReattachStyleChange)
return;
- element.setNeedsLayerUpdate();
- m_layerUpdateElements.add(&element);
+ element.setSVGFilterNeedsLayerUpdate();
+ m_layerUpdateSVGFilterElements.add(&element);
scheduleRenderTreeUpdateIfNeeded();
}
-void Document::unscheduleLayerUpdate(Element& element)
+void Document::unscheduleSVGFilterLayerUpdateHack(Element& element)
{
- element.clearNeedsLayerUpdate();
- m_layerUpdateElements.remove(&element);
+ element.clearSVGFilterNeedsLayerUpdate();
+ m_layerUpdateSVGFilterElements.remove(&element);
}
void Document::scheduleUseShadowTreeUpdate(SVGUseElement& element)
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698