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

Unified Diff: Source/core/dom/Element.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/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index ce4f55c1cacccc73283fc756425b2779091e5c4d..fa727ff3bd53a9bce449ab678f2a4c490fbe0871 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1390,8 +1390,8 @@ void Element::detach(const AttachContext& context)
HTMLFrameOwnerElement::UpdateSuspendScope suspendWidgetHierarchyUpdates;
cancelFocusAppearanceUpdate();
removeCallbackSelectors();
- if (svgFilterNeedsLayerUpdate())
- document().unscheduleSVGFilterLayerUpdateHack(*this);
+ if (svgEffectsNeedLayerUpdate())
+ document().unscheduleSVGEffectsLayerUpdateHack(*this);
if (hasRareData()) {
ElementRareData* data = elementRareData();
data->clearPseudoElements();
@@ -1564,7 +1564,7 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change)
updateCallbackSelectors(oldStyle.get(), newStyle.get());
if (RenderObject* renderer = this->renderer()) {
- if (localChange != NoChange || pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) || svgFilterNeedsLayerUpdate()) {
+ if (localChange != NoChange || pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) || svgEffectsNeedLayerUpdate()) {
renderer->setStyle(newStyle.get());
} else {
// Although no change occurred, we use the new style so that the cousin style sharing code won't get
@@ -2961,9 +2961,9 @@ PassRefPtrWillBeRawPtr<HTMLCollection> Element::ensureCachedHTMLCollection(Colle
return ensureRareData().ensureNodeLists().addCache<HTMLCollection>(*this, type);
}
-void Element::scheduleSVGFilterLayerUpdateHack()
+void Element::scheduleSVGEffectsLayerUpdateHack()
{
- document().scheduleSVGFilterLayerUpdateHack(*this);
+ document().scheduleSVGEffectsLayerUpdateHack(*this);
}
HTMLCollection* Element::cachedHTMLCollection(CollectionType type)

Powered by Google App Engine
This is Rietveld 408576698