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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards 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_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
deleted file mode 100644
index 67c6250aa20cf0431bde32db7f88726f3f1a868d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/layout/ng/ng_fragment_base.h"
-
-namespace blink {
-
-LayoutUnit NGFragmentBase::InlineSize() const {
- return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Width()
- : physical_fragment_->Height();
-}
-
-LayoutUnit NGFragmentBase::BlockSize() const {
- return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Height()
- : physical_fragment_->Width();
-}
-
-LayoutUnit NGFragmentBase::InlineOverflow() const {
- return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->WidthOverflow()
- : physical_fragment_->HeightOverflow();
-}
-
-LayoutUnit NGFragmentBase::BlockOverflow() const {
- return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->HeightOverflow()
- : physical_fragment_->WidthOverflow();
-}
-
-LayoutUnit NGFragmentBase::InlineOffset() const {
- return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->LeftOffset()
- : physical_fragment_->TopOffset();
-}
-
-LayoutUnit NGFragmentBase::BlockOffset() const {
- return writing_mode_ == kHorizontalTopBottom
- ? physical_fragment_->TopOffset()
- : physical_fragment_->LeftOffset();
-}
-
-NGPhysicalFragmentBase::NGFragmentType NGFragmentBase::Type() const {
- return physical_fragment_->Type();
-}
-
-DEFINE_TRACE(NGFragmentBase) {
- visitor->trace(physical_fragment_);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698