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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/layout/api/LineLayoutItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/api/LineLayoutBoxModel.h
diff --git a/Source/core/layout/api/LineLayoutBoxModel.h b/Source/core/layout/api/LineLayoutBoxModel.h
index be126265f1090362c41d3b71b077452cc2c6f85e..a97d885b59e761efbf70e0fba004cdbac00d7549 100644
--- a/Source/core/layout/api/LineLayoutBoxModel.h
+++ b/Source/core/layout/api/LineLayoutBoxModel.h
@@ -133,11 +133,21 @@ public:
return toBoxModel()->borderAndPaddingLogicalHeight();
}
+ bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance bleedAvoidance, InlineFlowBox* inlineFlowBox = nullptr) const
+ {
+ return toBoxModel()->boxShadowShouldBeAppliedToBackground(bleedAvoidance, inlineFlowBox);
+ }
+
private:
LayoutBoxModelObject* toBoxModel() { return toLayoutBoxModelObject(layoutObject()); }
const LayoutBoxModelObject* toBoxModel() const { return toLayoutBoxModelObject(layoutObject()); }
};
+inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const
+{
+ return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
+}
+
} // namespace blink
#endif // LineLayoutBoxModel_h
« 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