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

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

Issue 2536323003: [LayoutNG] Fix enum values to conform to kEnumName in style guide. (Closed)
Patch Set: rebase. Created 4 years 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_fragment_base.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc
index 738811a65f5649d4f32add4b559c7e19a4baa63e..63ed43cf184fedac686676b24be1c388a2e71aa1 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc
@@ -9,34 +9,35 @@
namespace blink {
LayoutUnit NGFragmentBase::InlineSize() const {
- return writing_mode_ == HorizontalTopBottom ? physical_fragment_->Width()
- : physical_fragment_->Height();
+ return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Width()
+ : physical_fragment_->Height();
}
LayoutUnit NGFragmentBase::BlockSize() const {
- return writing_mode_ == HorizontalTopBottom ? physical_fragment_->Height()
- : physical_fragment_->Width();
+ return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Height()
+ : physical_fragment_->Width();
}
LayoutUnit NGFragmentBase::InlineOverflow() const {
- return writing_mode_ == HorizontalTopBottom
+ return writing_mode_ == kHorizontalTopBottom
? physical_fragment_->WidthOverflow()
: physical_fragment_->HeightOverflow();
}
LayoutUnit NGFragmentBase::BlockOverflow() const {
- return writing_mode_ == HorizontalTopBottom
+ return writing_mode_ == kHorizontalTopBottom
? physical_fragment_->HeightOverflow()
: physical_fragment_->WidthOverflow();
}
LayoutUnit NGFragmentBase::InlineOffset() const {
- return writing_mode_ == HorizontalTopBottom ? physical_fragment_->LeftOffset()
- : physical_fragment_->TopOffset();
+ return writing_mode_ == kHorizontalTopBottom
+ ? physical_fragment_->LeftOffset()
+ : physical_fragment_->TopOffset();
}
LayoutUnit NGFragmentBase::BlockOffset() const {
- return writing_mode_ == HorizontalTopBottom
+ return writing_mode_ == kHorizontalTopBottom
? physical_fragment_->TopOffset()
: physical_fragment_->LeftOffset();
}

Powered by Google App Engine
This is Rietveld 408576698