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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_unpositioned_float.cc

Issue 2893493003: Respect the clearance while positioning pending floats. (Closed)
Patch Set: git rebase-update Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_unpositioned_float.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/layout/ng/ng_unpositioned_float.h" 5 #include "core/layout/ng/ng_unpositioned_float.h"
6 6
7 #include "core/style/ComputedStyle.h" 7 #include "core/style/ComputedStyle.h"
8 #include "core/style/ComputedStyleConstants.h"
9 8
10 namespace blink { 9 namespace blink {
11 10
12 bool NGUnpositionedFloat::IsLeft() const { 11 bool NGUnpositionedFloat::IsLeft() const {
13 return node->Style().Floating() == EFloat::kLeft; 12 return node->Style().Floating() == EFloat::kLeft;
14 } 13 }
15 14
16 bool NGUnpositionedFloat::IsRight() const { 15 bool NGUnpositionedFloat::IsRight() const {
17 return node->Style().Floating() == EFloat::kRight; 16 return node->Style().Floating() == EFloat::kRight;
18 } 17 }
19 18
19 EClear NGUnpositionedFloat::ClearType() const {
20 return node->Style().Clear();
21 }
22
20 } // namespace blink 23 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_unpositioned_float.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698