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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutViewItem.h

Issue 2056303002: [Layout API] Use Document::layoutViewItem() in ViewportStyleResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/api/LayoutViewItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutViewItem.h b/third_party/WebKit/Source/core/layout/api/LayoutViewItem.h
index 33c16141ce881ad9dffb0b69764c7f0fc2409a31..89dd9b933eac90ad0de9f62ae2db93d6ef0fad89 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutViewItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutViewItem.h
@@ -133,6 +133,11 @@ public:
return toView()->viewWidth(scrollbarInclusion);
}
+ FloatSize viewportSizeForViewportUnits() const
+ {
+ return toView()->viewportSizeForViewportUnits();
+ }
+
private:
LayoutView* toView() { return toLayoutView(layoutObject()); }
const LayoutView* toView() const { return toLayoutView(layoutObject()); }

Powered by Google App Engine
This is Rietveld 408576698