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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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/MultiColumnSetPainter.h" 5 #include "core/paint/MultiColumnSetPainter.h"
6 6
7 #include "core/layout/LayoutMultiColumnSet.h" 7 #include "core/layout/LayoutMultiColumnSet.h"
8 #include "core/paint/BlockPainter.h" 8 #include "core/paint/BlockPainter.h"
9 #include "core/paint/BoxPainter.h" 9 #include "core/paint/BoxPainter.h"
10 #include "core/paint/LayoutObjectDrawingRecorder.h" 10 #include "core/paint/LayoutObjectDrawingRecorder.h"
11 #include "core/paint/ObjectPainter.h" 11 #include "core/paint/ObjectPainter.h"
12 #include "core/paint/PaintInfo.h" 12 #include "core/paint/PaintInfo.h"
13 #include "platform/geometry/LayoutPoint.h" 13 #include "platform/geometry/LayoutPoint.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 void MultiColumnSetPainter::paintObject(const PaintInfo& paintInfo, 17 void MultiColumnSetPainter::paintObject(const PaintInfo& paintInfo,
18 const LayoutPoint& paintOffset) { 18 const LayoutPoint& paintOffset) {
19 if (m_layoutMultiColumnSet.style()->visibility() != EVisibility::Visible) 19 if (m_layoutMultiColumnSet.style()->visibility() != EVisibility::kVisible)
20 return; 20 return;
21 21
22 BlockPainter(m_layoutMultiColumnSet).paintObject(paintInfo, paintOffset); 22 BlockPainter(m_layoutMultiColumnSet).paintObject(paintInfo, paintOffset);
23 23
24 // FIXME: Right now we're only painting in the foreground phase. 24 // FIXME: Right now we're only painting in the foreground phase.
25 // Columns should technically respect phases and allow for 25 // Columns should technically respect phases and allow for
26 // background/float/foreground overlap etc., just like LayoutBlocks do. Note 26 // background/float/foreground overlap etc., just like LayoutBlocks do. Note
27 // this is a pretty minor issue, since the old column implementation clipped 27 // this is a pretty minor issue, since the old column implementation clipped
28 // columns anyway, thus making it impossible for them to overlap one another. 28 // columns anyway, thus making it impossible for them to overlap one another.
29 // It's also really unlikely that the columns would overlap another block. 29 // It's also really unlikely that the columns would overlap another block.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 for (auto& bound : columnRuleBounds) { 65 for (auto& bound : columnRuleBounds) {
66 IntRect pixelSnappedRuleRect = pixelSnappedIntRect(bound); 66 IntRect pixelSnappedRuleRect = pixelSnappedIntRect(bound);
67 ObjectPainter::drawLineForBoxSide( 67 ObjectPainter::drawLineForBoxSide(
68 paintInfo.context, pixelSnappedRuleRect.x(), pixelSnappedRuleRect.y(), 68 paintInfo.context, pixelSnappedRuleRect.x(), pixelSnappedRuleRect.y(),
69 pixelSnappedRuleRect.maxX(), pixelSnappedRuleRect.maxY(), boxSide, 69 pixelSnappedRuleRect.maxX(), pixelSnappedRuleRect.maxY(), boxSide,
70 ruleColor, ruleStyle, 0, 0, true); 70 ruleColor, ruleStyle, 0, 0, true);
71 } 71 }
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ListMarkerPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ObjectPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698