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/BlockFlowPainter.h" | 5 #include "core/paint/BlockFlowPainter.h" |
6 | 6 |
7 #include "core/layout/FloatingObjects.h" | 7 #include "core/layout/FloatingObjects.h" |
8 #include "core/layout/LayoutBlockFlow.h" | 8 #include "core/layout/LayoutBlockFlow.h" |
9 #include "core/paint/ClipScope.h" | 9 #include "core/paint/ClipScope.h" |
10 #include "core/paint/LayoutObjectDrawingRecorder.h" | 10 #include "core/paint/LayoutObjectDrawingRecorder.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 const LayoutBox* floatingLayoutObject = floatingObject->layoutObject(); | 31 const LayoutBox* floatingLayoutObject = floatingObject->layoutObject(); |
32 if (floatingLayoutObject->hasSelfPaintingLayer()) | 32 if (floatingLayoutObject->hasSelfPaintingLayer()) |
33 continue; | 33 continue; |
34 | 34 |
35 // FIXME: LayoutPoint version of xPositionForFloatIncludingMargin would
make this much cleaner. | 35 // FIXME: LayoutPoint version of xPositionForFloatIncludingMargin would
make this much cleaner. |
36 LayoutPoint childPoint = m_layoutBlockFlow.flipFloatForWritingModeForChi
ld( | 36 LayoutPoint childPoint = m_layoutBlockFlow.flipFloatForWritingModeForChi
ld( |
37 *floatingObject, LayoutPoint(paintOffset.x() | 37 *floatingObject, LayoutPoint(paintOffset.x() |
38 + m_layoutBlockFlow.xPositionForFloatIncludingMargin(*floatingObject
) - floatingLayoutObject->location().x(), paintOffset.y() | 38 + m_layoutBlockFlow.xPositionForFloatIncludingMargin(*floatingObject
) - floatingLayoutObject->location().x(), paintOffset.y() |
39 + m_layoutBlockFlow.yPositionForFloatIncludingMargin(*floatingObject
) - floatingLayoutObject->location().y())); | 39 + m_layoutBlockFlow.yPositionForFloatIncludingMargin(*floatingObject
) - floatingLayoutObject->location().y())); |
40 ObjectPainter(*floatingLayoutObject).paintAsPseudoStackingContext(floatP
aintInfo, childPoint); | 40 ObjectPainter(*floatingLayoutObject).paintAllPhasesAtomically(floatPaint
Info, childPoint); |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 } // namespace blink | 44 } // namespace blink |
OLD | NEW |