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

Unified Diff: Source/core/rendering/RenderEmbeddedObject.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: Fixed Linux compilation (hopefuly Windows too), addressing some reviewer's suggestions. 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/RenderEmbeddedObject.cpp
diff --git a/Source/core/rendering/RenderEmbeddedObject.cpp b/Source/core/rendering/RenderEmbeddedObject.cpp
index de41af3d27f666fec1d6780b17dc3e5a7603dfd4..ff7a5f0aae4b58510daf4432ab9a42ac4636b0dc 100644
--- a/Source/core/rendering/RenderEmbeddedObject.cpp
+++ b/Source/core/rendering/RenderEmbeddedObject.cpp
@@ -127,13 +127,13 @@ void RenderEmbeddedObject::paint(PaintInfo& paintInfo, const LayoutPoint& paintO
page = frame->page();
if (showsUnavailablePluginIndicator()) {
- if (page && paintInfo.phase == PaintPhaseForeground)
+ if (page && paintInfo.getPhase() == PaintPhaseForeground)
page->addRelevantUnpaintedObject(this, visualOverflowRect());
RenderReplaced::paint(paintInfo, paintOffset);
return;
}
- if (page && paintInfo.phase == PaintPhaseForeground)
+ if (page && paintInfo.getPhase() == PaintPhaseForeground)
page->addRelevantRepaintedObject(this, visualOverflowRect());
RenderPart::paint(paintInfo, paintOffset);
@@ -144,10 +144,10 @@ void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint
if (!showsUnavailablePluginIndicator())
return;
- if (paintInfo.phase == PaintPhaseSelection)
+ if (paintInfo.getPhase() == PaintPhaseSelection)
return;
- GraphicsContext* context = paintInfo.context;
+ GraphicsContext* context = paintInfo.getContext();
if (context->paintingDisabled())
return;

Powered by Google App Engine
This is Rietveld 408576698