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

Side by Side Diff: Source/core/paint/ReplacedPainter.cpp

Issue 898783003: Move rendering/RenderLayer* to layout/ (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/RenderDrawingRecorder.cpp ('k') | Source/core/paint/ReplicaPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/paint/ReplacedPainter.h" 6 #include "core/paint/ReplacedPainter.h"
7 7
8 #include "core/layout/Layer.h"
8 #include "core/paint/BoxPainter.h" 9 #include "core/paint/BoxPainter.h"
9 #include "core/paint/GraphicsContextAnnotator.h" 10 #include "core/paint/GraphicsContextAnnotator.h"
10 #include "core/paint/ObjectPainter.h" 11 #include "core/paint/ObjectPainter.h"
11 #include "core/paint/RenderDrawingRecorder.h" 12 #include "core/paint/RenderDrawingRecorder.h"
12 #include "core/paint/RoundedInnerRectClipper.h" 13 #include "core/paint/RoundedInnerRectClipper.h"
13 #include "core/rendering/PaintInfo.h" 14 #include "core/rendering/PaintInfo.h"
14 #include "core/rendering/RenderLayer.h"
15 #include "core/rendering/RenderReplaced.h" 15 #include "core/rendering/RenderReplaced.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint Offset) 19 void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint Offset)
20 { 20 {
21 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, &m_renderReplaced); 21 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, &m_renderReplaced);
22 22
23 if (!m_renderReplaced.shouldPaint(paintInfo, paintOffset)) 23 if (!m_renderReplaced.shouldPaint(paintInfo, paintOffset))
24 return; 24 return;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The selection tint never gets clipped by border-radius rounding, since we want it to run right up to the edges of 90 // The selection tint never gets clipped by border-radius rounding, since we want it to run right up to the edges of
91 // surrounding content. 91 // surrounding content.
92 if (drawSelectionTint) { 92 if (drawSelectionTint) {
93 LayoutRect selectionPaintingRect = m_renderReplaced.localSelectionRect() ; 93 LayoutRect selectionPaintingRect = m_renderReplaced.localSelectionRect() ;
94 selectionPaintingRect.moveBy(adjustedPaintOffset); 94 selectionPaintingRect.moveBy(adjustedPaintOffset);
95 paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), m_renderReplaced.selectionBackgroundColor()); 95 paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), m_renderReplaced.selectionBackgroundColor());
96 } 96 }
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/RenderDrawingRecorder.cpp ('k') | Source/core/paint/ReplicaPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698