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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockFlowPainter.cpp

Issue 1798263002: Rename isTreatedAsOrStackingContext to isStacked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 4 years, 9 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698