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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
index 22653a09c43f3a17d3f0580f8d87f318a398fe25..98f327e0dd94a1846adfbbd94818c96176f7856b 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
@@ -85,7 +85,7 @@ void ComputeAbsoluteHorizontal(
margin_right = LayoutUnit();
DCHECK(child_minmax.has_value());
width = child_minmax->ShrinkToFit(container_size.width);
- if (space.Direction() == TextDirection::Ltr) {
+ if (space.Direction() == TextDirection::kLtr) {
left = static_position.LeftPosition(container_size.width, *width,
*margin_left, *margin_right);
} else {
@@ -103,7 +103,7 @@ void ComputeAbsoluteHorizontal(
margin_right = margin_space / 2;
} else {
// Margins are negative.
- if (space.Direction() == TextDirection::Ltr) {
+ if (space.Direction() == TextDirection::kLtr) {
margin_left = LayoutUnit();
margin_right = margin_space;
} else {
@@ -119,7 +119,7 @@ void ComputeAbsoluteHorizontal(
// Are values overconstrained?
if (*margin_left + *margin_right != margin_space) {
// Relax the end.
- if (space.Direction() == TextDirection::Ltr)
+ if (space.Direction() == TextDirection::kLtr)
right = *right - *margin_left + *margin_right - margin_space;
else
left = *left - *margin_left + *margin_right - margin_space;
@@ -142,7 +142,7 @@ void ComputeAbsoluteHorizontal(
} else if (!left && !right) {
// Rule 2.
DCHECK(width.has_value());
- if (space.Direction() == TextDirection::Ltr)
+ if (space.Direction() == TextDirection::kLtr)
left = static_position.LeftPosition(container_size.width, *width,
*margin_left, *margin_right);
else

Powered by Google App Engine
This is Rietveld 408576698