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

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

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.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
deleted file mode 100644
index 559e36d8e8785775de0552767dc270657961bb1c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_base.h
+++ /dev/null
@@ -1,61 +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.
-
-#ifndef NGFragmentBase_h
-#define NGFragmentBase_h
-
-#include "core/CoreExport.h"
-#include "core/layout/ng/ng_physical_fragment_base.h"
-#include "core/layout/ng/ng_writing_mode.h"
-#include "platform/LayoutUnit.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class CORE_EXPORT NGFragmentBase : public GarbageCollected<NGFragmentBase> {
- public:
- NGWritingMode WritingMode() const {
- return static_cast<NGWritingMode>(writing_mode_);
- }
- TextDirection Direction() const {
- return static_cast<TextDirection>(direction_);
- }
-
- // Returns the border-box size.
- LayoutUnit InlineSize() const;
- LayoutUnit BlockSize() const;
-
- // Returns the total size, including the contents outside of the border-box.
- LayoutUnit InlineOverflow() const;
- LayoutUnit BlockOverflow() const;
-
- // Returns the offset relative to the parent fragement's content-box.
- LayoutUnit InlineOffset() const;
- LayoutUnit BlockOffset() const;
-
- NGPhysicalFragmentBase::NGFragmentType Type() const;
-
- NGPhysicalFragmentBase* PhysicalFragment() const {
- return physical_fragment_;
- };
-
- DECLARE_TRACE();
-
- protected:
- NGFragmentBase(NGWritingMode writing_mode,
- TextDirection direction,
- NGPhysicalFragmentBase* physical_fragment)
- : physical_fragment_(physical_fragment),
- writing_mode_(writing_mode),
- direction_(static_cast<unsigned>(direction)) {}
-
- Member<NGPhysicalFragmentBase> physical_fragment_;
-
- unsigned writing_mode_ : 3;
- unsigned direction_ : 1;
-};
-
-} // namespace blink
-
-#endif // NGFragmentBase_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_fragment.cc ('k') | third_party/WebKit/Source/core/layout/ng/ng_fragment_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698