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

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

Issue 2561553002: [LayoutNG] Remove unnecessary #includes (Closed)
Patch Set: Let's see if Windows is more happy now. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/layout/ng/ng_fragment_base.h" 5 #include "core/layout/ng/ng_fragment_base.h"
6 6
7 #include "core/layout/ng/ng_physical_fragment_base.h"
8
9 namespace blink { 7 namespace blink {
10 8
11 LayoutUnit NGFragmentBase::InlineSize() const { 9 LayoutUnit NGFragmentBase::InlineSize() const {
12 return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Width() 10 return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Width()
13 : physical_fragment_->Height(); 11 : physical_fragment_->Height();
14 } 12 }
15 13
16 LayoutUnit NGFragmentBase::BlockSize() const { 14 LayoutUnit NGFragmentBase::BlockSize() const {
17 return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Height() 15 return writing_mode_ == kHorizontalTopBottom ? physical_fragment_->Height()
18 : physical_fragment_->Width(); 16 : physical_fragment_->Width();
(...skipping 25 matching lines...) Expand all
44 42
45 NGPhysicalFragmentBase::NGFragmentType NGFragmentBase::Type() const { 43 NGPhysicalFragmentBase::NGFragmentType NGFragmentBase::Type() const {
46 return physical_fragment_->Type(); 44 return physical_fragment_->Type();
47 } 45 }
48 46
49 DEFINE_TRACE(NGFragmentBase) { 47 DEFINE_TRACE(NGFragmentBase) {
50 visitor->trace(physical_fragment_); 48 visitor->trace(physical_fragment_);
51 } 49 }
52 50
53 } // namespace blink 51 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698