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

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

Issue 1144903002: [SP] Delete GraphicsContextAnnotator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/BlockPainter.cpp ('k') | Source/core/paint/GraphicsContextAnnotator.h » ('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/FrameSetPainter.h" 6 #include "core/paint/FrameSetPainter.h"
7 7
8 #include "core/html/HTMLFrameSetElement.h" 8 #include "core/html/HTMLFrameSetElement.h"
9 #include "core/layout/LayoutFrameSet.h" 9 #include "core/layout/LayoutFrameSet.h"
10 #include "core/paint/GraphicsContextAnnotator.h"
11 #include "core/paint/LayoutObjectDrawingRecorder.h" 10 #include "core/paint/LayoutObjectDrawingRecorder.h"
12 #include "core/paint/PaintInfo.h" 11 #include "core/paint/PaintInfo.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 static Color borderStartEdgeColor() 15 static Color borderStartEdgeColor()
17 { 16 {
18 return Color(170, 170, 170); 17 return Color(170, 170, 170);
19 } 18 }
20 19
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 child->paint(paintInfo, adjustedPaintOffset); 109 child->paint(paintInfo, adjustedPaintOffset);
111 child = child->nextSibling(); 110 child = child->nextSibling();
112 if (!child) 111 if (!child)
113 return; 112 return;
114 } 113 }
115 } 114 }
116 } 115 }
117 116
118 void FrameSetPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint Offset) 117 void FrameSetPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint Offset)
119 { 118 {
120 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, &m_layoutFrameSet);
121
122 if (paintInfo.phase != PaintPhaseForeground) 119 if (paintInfo.phase != PaintPhaseForeground)
123 return; 120 return;
124 121
125 LayoutObject* child = m_layoutFrameSet.firstChild(); 122 LayoutObject* child = m_layoutFrameSet.firstChild();
126 if (!child) 123 if (!child)
127 return; 124 return;
128 125
129 LayoutPoint adjustedPaintOffset = paintOffset + m_layoutFrameSet.location(); 126 LayoutPoint adjustedPaintOffset = paintOffset + m_layoutFrameSet.location();
130 paintChildren(paintInfo, adjustedPaintOffset); 127 paintChildren(paintInfo, adjustedPaintOffset);
131 paintBorders(paintInfo, adjustedPaintOffset); 128 paintBorders(paintInfo, adjustedPaintOffset);
132 } 129 }
133 130
134 } // namespace blink 131 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/BlockPainter.cpp ('k') | Source/core/paint/GraphicsContextAnnotator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698