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

Unified Diff: Source/core/rendering/svg/RenderSVGContainer.cpp

Issue 21430003: Implement interfaces in PaintInfo and make it a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getterPaintInfo01
Patch Set: Second try Created 7 years, 5 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/rendering/svg/RenderSVGContainer.cpp
diff --git a/Source/core/rendering/svg/RenderSVGContainer.cpp b/Source/core/rendering/svg/RenderSVGContainer.cpp
index 7b1bf66ca5e9601bd3c77eec43a1e3c6a7e0f20a..78135fb96662369b4c66addf74b778e5a5a4ac17 100644
--- a/Source/core/rendering/svg/RenderSVGContainer.cpp
+++ b/Source/core/rendering/svg/RenderSVGContainer.cpp
@@ -107,7 +107,7 @@ void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&)
{
ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this);
- if (paintInfo.context->paintingDisabled())
+ if (paintInfo.getContext()->paintingDisabled())
return;
// Spec: groups w/o children still may render filter content.
@@ -120,7 +120,7 @@ void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&)
PaintInfo childPaintInfo(paintInfo);
{
- GraphicsContextStateSaver stateSaver(*childPaintInfo.context);
+ GraphicsContextStateSaver stateSaver(*(childPaintInfo.getContext()));
// Let the RenderSVGViewportContainer subclass clip if necessary
applyViewportClip(childPaintInfo);
@@ -129,7 +129,7 @@ void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&)
SVGRenderingContext renderingContext;
bool continueRendering = true;
- if (childPaintInfo.phase == PaintPhaseForeground) {
+ if (childPaintInfo.getPhase() == PaintPhaseForeground) {
renderingContext.prepareToRenderSVGContent(this, childPaintInfo);
continueRendering = renderingContext.isRenderingPrepared();
}
@@ -146,7 +146,7 @@ void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&)
// outline rect into parent coords before drawing.
// FIXME: This means our focus ring won't share our rotation like it should.
// We should instead disable our clip during PaintPhaseOutline
- if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) {
+ if ((paintInfo.getPhase() == PaintPhaseOutline || paintInfo.getPhase() == PaintPhaseSelfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) {
IntRect paintRectInParent = enclosingIntRect(localToParentTransform().mapRect(repaintRect));
paintOutline(paintInfo, paintRectInParent);
}

Powered by Google App Engine
This is Rietveld 408576698