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 "core/paint/LineBoxListPainter.h" | 5 #include "core/paint/LineBoxListPainter.h" |
6 | 6 |
7 #include "core/layout/LayoutBoxModelObject.h" | 7 #include "core/layout/LayoutBoxModelObject.h" |
8 #include "core/layout/LayoutInline.h" | |
9 #include "core/layout/api/LineLayoutBoxModel.h" | 8 #include "core/layout/api/LineLayoutBoxModel.h" |
10 #include "core/layout/line/InlineFlowBox.h" | 9 #include "core/layout/line/InlineFlowBox.h" |
11 #include "core/layout/line/LineBoxList.h" | 10 #include "core/layout/line/LineBoxList.h" |
12 #include "core/layout/line/RootInlineBox.h" | 11 #include "core/layout/line/RootInlineBox.h" |
13 #include "core/paint/InlinePainter.h" | |
14 #include "core/paint/ObjectPainter.h" | 12 #include "core/paint/ObjectPainter.h" |
15 #include "core/paint/PaintInfo.h" | 13 #include "core/paint/PaintInfo.h" |
16 #include "platform/graphics/paint/PaintController.h" | 14 #include "platform/graphics/paint/PaintController.h" |
17 | 15 |
18 namespace blink { | 16 namespace blink { |
19 | 17 |
20 static void addPDFURLRectsForInlineChildrenRecursively(const LayoutObject& layou
tObject, const PaintInfo& paintInfo, const LayoutPoint& paintOffset) | 18 static void addPDFURLRectsForInlineChildrenRecursively(const LayoutObject& layou
tObject, const PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
21 { | 19 { |
22 for (LayoutObject* child = layoutObject.slowFirstChild(); child; child = chi
ld->nextSibling()) { | 20 for (LayoutObject* child = layoutObject.slowFirstChild(); child; child = chi
ld->nextSibling()) { |
23 if (!child->isLayoutInline() || toLayoutBoxModelObject(child)->hasSelfPa
intingLayer()) | 21 if (!child->isLayoutInline() || toLayoutBoxModelObject(child)->hasSelfPa
intingLayer()) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 72 } |
75 | 73 |
76 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf
o) const | 74 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf
o) const |
77 { | 75 { |
78 PaintController& paintController = paintInfo.context.getPaintController(); | 76 PaintController& paintController = paintInfo.context.getPaintController(); |
79 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr->
nextLineBox()) | 77 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr->
nextLineBox()) |
80 invalidateLineBoxPaintOffsetsInternal(paintController, curr); | 78 invalidateLineBoxPaintOffsetsInternal(paintController, curr); |
81 } | 79 } |
82 | 80 |
83 } // namespace blink | 81 } // namespace blink |
OLD | NEW |