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

Side by Side Diff: Source/core/layout/api/LineLayoutBoxModel.h

Issue 1303303002: [Line Layout API] Convert most of InlineBoxPainter to new API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 5 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef LineLayoutBoxModel_h 5 #ifndef LineLayoutBoxModel_h
6 #define LineLayoutBoxModel_h 6 #define LineLayoutBoxModel_h
7 7
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/api/LineLayoutItem.h" 9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool hasInlineDirectionBordersOrPadding() const 126 bool hasInlineDirectionBordersOrPadding() const
127 { 127 {
128 return toBoxModel()->hasInlineDirectionBordersOrPadding(); 128 return toBoxModel()->hasInlineDirectionBordersOrPadding();
129 } 129 }
130 130
131 LayoutUnit borderAndPaddingLogicalHeight() const 131 LayoutUnit borderAndPaddingLogicalHeight() const
132 { 132 {
133 return toBoxModel()->borderAndPaddingLogicalHeight(); 133 return toBoxModel()->borderAndPaddingLogicalHeight();
134 } 134 }
135 135
136 bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance bleedAvoi dance, InlineFlowBox* inlineFlowBox = nullptr) const
137 {
138 return toBoxModel()->boxShadowShouldBeAppliedToBackground(bleedAvoidance , inlineFlowBox);
139 }
140
136 private: 141 private:
137 LayoutBoxModelObject* toBoxModel() { return toLayoutBoxModelObject(layoutObj ect()); } 142 LayoutBoxModelObject* toBoxModel() { return toLayoutBoxModelObject(layoutObj ect()); }
138 const LayoutBoxModelObject* toBoxModel() const { return toLayoutBoxModelObje ct(layoutObject()); } 143 const LayoutBoxModelObject* toBoxModel() const { return toLayoutBoxModelObje ct(layoutObject()); }
139 }; 144 };
140 145
146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const
147 {
148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
149 }
150
141 } // namespace blink 151 } // namespace blink
142 152
143 #endif // LineLayoutBoxModel_h 153 #endif // LineLayoutBoxModel_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698