| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |