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

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

Issue 2885053003: [LayoutNG] Replace use of NGPhysicalFragment top/left/width/height (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
index 8bfc830003c5cb5229140dae0ededa6c67e0dea8..f9961d0bd2b747b2d2429c0622aa4eed3d7d4031 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.cc
@@ -7,25 +7,27 @@
namespace blink {
LayoutUnit NGFragment::InlineSize() const {
- return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Width()
- : physical_fragment_->Height();
+ return writing_mode_ == kHorizontalTopBottom
+ ? physical_fragment_->Size().width
+ : physical_fragment_->Size().height;
}
LayoutUnit NGFragment::BlockSize() const {
- return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Height()
- : physical_fragment_->Width();
+ return writing_mode_ == kHorizontalTopBottom
+ ? physical_fragment_->Size().height
+ : physical_fragment_->Size().width;
}
LayoutUnit NGFragment::InlineOffset() const {
return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->LeftOffset()
- : physical_fragment_->TopOffset();
+ ? physical_fragment_->Offset().left
+ : physical_fragment_->Offset().top;
}
LayoutUnit NGFragment::BlockOffset() const {
return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->TopOffset()
- : physical_fragment_->LeftOffset();
+ ? physical_fragment_->Offset().top
+ : physical_fragment_->Offset().left;
}
NGPhysicalFragment::NGFragmentType NGFragment::Type() const {

Powered by Google App Engine
This is Rietveld 408576698