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

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

Issue 2464053003: Always paint background and shadow separately (Closed)
Patch Set: Rebaseline-cl (invisible pixel changes along shadow edges) (The original Patch Set 2 was removed to get the try result in Patch Set 1) Created 4 years, 1 month 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 LayoutUnit borderAndPaddingUnder() const { 110 LayoutUnit borderAndPaddingUnder() const {
111 return toBoxModel()->borderAndPaddingUnder(); 111 return toBoxModel()->borderAndPaddingUnder();
112 } 112 }
113 113
114 LayoutUnit borderAndPaddingLogicalHeight() const { 114 LayoutUnit borderAndPaddingLogicalHeight() const {
115 return toBoxModel()->borderAndPaddingLogicalHeight(); 115 return toBoxModel()->borderAndPaddingLogicalHeight();
116 } 116 }
117 117
118 bool boxShadowShouldBeAppliedToBackground(
119 BackgroundBleedAvoidance bleedAvoidance,
120 const InlineFlowBox* inlineFlowBox = nullptr) const {
121 return toBoxModel()->boxShadowShouldBeAppliedToBackground(bleedAvoidance,
122 inlineFlowBox);
123 }
124
125 LayoutSize offsetForInFlowPosition() const { 118 LayoutSize offsetForInFlowPosition() const {
126 return toBoxModel()->offsetForInFlowPosition(); 119 return toBoxModel()->offsetForInFlowPosition();
127 } 120 }
128 121
129 private: 122 private:
130 LayoutBoxModelObject* toBoxModel() { 123 LayoutBoxModelObject* toBoxModel() {
131 return toLayoutBoxModelObject(layoutObject()); 124 return toLayoutBoxModelObject(layoutObject());
132 } 125 }
133 const LayoutBoxModelObject* toBoxModel() const { 126 const LayoutBoxModelObject* toBoxModel() const {
134 return toLayoutBoxModelObject(layoutObject()); 127 return toLayoutBoxModelObject(layoutObject());
135 } 128 }
136 }; 129 };
137 130
138 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const { 131 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const {
139 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); 132 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
140 } 133 }
141 134
142 } // namespace blink 135 } // namespace blink
143 136
144 #endif // LineLayoutBoxModel_h 137 #endif // LineLayoutBoxModel_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698