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

Unified Diff: Source/WebCore/rendering/svg/RenderSVGBlock.cpp

Issue 13679002: Add StyleChangeState to get rid of a bunch of static state in the render tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/rendering/svg/RenderSVGBlock.cpp
diff --git a/Source/WebCore/rendering/svg/RenderSVGBlock.cpp b/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
index f120b994663be6379083dfd0dcd0451f5f44425b..403e796194148352ede5c842e2c49be051aceabb 100644
--- a/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGBlock.cpp
@@ -61,9 +61,9 @@ void RenderSVGBlock::setStyle(PassRefPtr<RenderStyle> style)
RenderBlock::setStyle(useStyle.release());
}
-void RenderSVGBlock::updateFromStyle()
+void RenderSVGBlock::updateFromStyle(const StyleChangeState& state)
{
- RenderBlock::updateFromStyle();
+ RenderBlock::updateFromStyle(state);
// RenderSVGlock, used by Render(SVGText|ForeignObject), is not allowed to call setHasOverflowClip(true).
// RenderBlock assumes a layer to be present when the overflow clip functionality is requested. Both
@@ -92,16 +92,16 @@ void RenderSVGBlock::willBeDestroyed()
RenderBlock::willBeDestroyed();
}
-void RenderSVGBlock::styleWillChange(StyleDifference diff, const RenderStyle* newStyle)
+void RenderSVGBlock::styleWillChange(StyleDifference diff, const RenderStyle* newStyle, StyleChangeState& state)
{
if (diff == StyleDifferenceLayout)
setNeedsBoundariesUpdate();
- RenderBlock::styleWillChange(diff, newStyle);
+ RenderBlock::styleWillChange(diff, newStyle, state);
}
-void RenderSVGBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
+void RenderSVGBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle, const StyleChangeState& state)
{
- RenderBlock::styleDidChange(diff, oldStyle);
+ RenderBlock::styleDidChange(diff, oldStyle, state);
SVGResourcesCache::clientStyleChanged(this, diff, style());
}

Powered by Google App Engine
This is Rietveld 408576698