Chromium Code Reviews

Unified Diff: Source/core/rendering/EllipsisBox.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.
Jump to:
View side-by-side diff with in-line comments
Index: Source/core/rendering/EllipsisBox.cpp
diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp
index 7dcc2a9f6b0a89e3f5500e7c29f0a9e88ac4eeed..5b23f541f70dbfa37bf517c98ea0d875401d0df0 100644
--- a/Source/core/rendering/EllipsisBox.cpp
+++ b/Source/core/rendering/EllipsisBox.cpp
@@ -35,7 +35,7 @@ namespace WebCore {
void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom)
{
- GraphicsContext* context = paintInfo.context;
+ GraphicsContext* context = paintInfo.getContext();
RenderStyle* style = m_renderer->style(isFirstLineStyle());
Color styleTextColor = m_renderer->resolveColor(style, CSSPropertyWebkitTextFillColor);
if (styleTextColor != context->fillColor())

Powered by Google App Engine