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

Unified Diff: Source/core/paint/ObjectPainter.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/paint/ObjectPainter.h ('k') | Source/core/paint/RenderDrawingRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ObjectPainter.cpp
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp
index c0ada280b3826e855490213ead2a8b2689f5ca2b..25e1069ead4192886c7318d4e513235bb5b234cf 100644
--- a/Source/core/paint/ObjectPainter.cpp
+++ b/Source/core/paint/ObjectPainter.cpp
@@ -5,10 +5,10 @@
#include "config.h"
#include "core/paint/ObjectPainter.h"
+#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutTheme.h"
#include "core/paint/RenderDrawingRecorder.h"
#include "core/rendering/PaintInfo.h"
-#include "core/rendering/RenderObject.h"
#include "core/rendering/style/RenderStyle.h"
#include "platform/geometry/LayoutPoint.h"
#include "platform/graphics/GraphicsContextStateSaver.h"
@@ -18,26 +18,26 @@ namespace blink {
void ObjectPainter::paintFocusRing(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const RenderStyle& style)
{
Vector<LayoutRect> focusRingRects;
- m_renderObject.addFocusRingRects(focusRingRects, paintOffset);
+ m_layoutObject.addFocusRingRects(focusRingRects, paintOffset);
ASSERT(style.outlineStyleIsAuto());
Vector<IntRect> focusRingIntRects;
for (size_t i = 0; i < focusRingRects.size(); ++i)
focusRingIntRects.append(pixelSnappedIntRect(focusRingRects[i]));
- paintInfo.context->drawFocusRing(focusRingIntRects, style.outlineWidth(), style.outlineOffset(), m_renderObject.resolveColor(style, CSSPropertyOutlineColor));
+ paintInfo.context->drawFocusRing(focusRingIntRects, style.outlineWidth(), style.outlineOffset(), m_layoutObject.resolveColor(style, CSSPropertyOutlineColor));
}
void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& paintRect)
{
- const RenderStyle& styleToUse = m_renderObject.styleRef();
+ const RenderStyle& styleToUse = m_layoutObject.styleRef();
if (!styleToUse.hasOutline())
return;
- RenderDrawingRecorder recorder(paintInfo.context, m_renderObject, paintInfo.phase, paintRect);
+ RenderDrawingRecorder recorder(paintInfo.context, m_layoutObject, paintInfo.phase, paintRect);
if (recorder.canUseCachedDrawing())
return;
if (styleToUse.outlineStyleIsAuto()) {
- if (LayoutTheme::theme().shouldDrawDefaultFocusRing(&m_renderObject)) {
+ if (LayoutTheme::theme().shouldDrawDefaultFocusRing(&m_layoutObject)) {
// Only paint the focus ring by hand if the theme isn't able to draw the focus ring.
paintFocusRing(paintInfo, paintRect.location(), styleToUse);
}
@@ -59,7 +59,7 @@ void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& p
return;
EBorderStyle outlineStyle = styleToUse.outlineStyle();
- Color outlineColor = m_renderObject.resolveColor(styleToUse, CSSPropertyOutlineColor);
+ Color outlineColor = m_layoutObject.resolveColor(styleToUse, CSSPropertyOutlineColor);
GraphicsContext* graphicsContext = paintInfo.context;
bool useTransparencyLayer = outlineColor.hasAlpha();
« no previous file with comments | « Source/core/paint/ObjectPainter.h ('k') | Source/core/paint/RenderDrawingRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698