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/LineBoxListPainter.h" | 6 #include "core/paint/LineBoxListPainter.h" |
7 | 7 |
8 #include "core/layout/LayoutBoxModelObject.h" | 8 #include "core/layout/LayoutBoxModelObject.h" |
9 #include "core/layout/LayoutInline.h" | 9 #include "core/layout/LayoutInline.h" |
10 #include "core/layout/api/LineLayoutBoxModel.h" | 10 #include "core/layout/api/LineLayoutBoxModel.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 continue; | 71 continue; |
72 if (child->isInlineFlowBox()) | 72 if (child->isInlineFlowBox()) |
73 invalidateLineBoxPaintOffsetsInternal(paintController, toInlineFlowB
ox(child)); | 73 invalidateLineBoxPaintOffsetsInternal(paintController, toInlineFlowB
ox(child)); |
74 else | 74 else |
75 paintController.invalidatePaintOffset(*child); | 75 paintController.invalidatePaintOffset(*child); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf
o) const | 79 void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInf
o) const |
80 { | 80 { |
81 PaintController& paintController = paintInfo.context->paintController(); | 81 PaintController& paintController = paintInfo.context.paintController(); |
82 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr->
nextLineBox()) | 82 for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr->
nextLineBox()) |
83 invalidateLineBoxPaintOffsetsInternal(paintController, curr); | 83 invalidateLineBoxPaintOffsetsInternal(paintController, curr); |
84 } | 84 } |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
OLD | NEW |