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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp

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/css/resolver/StyleResolverState.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
index 6fc6c070d179659be1265f482642ca16d1119922..08a62a6be0fbfaa8d0e3d5b6670f0a42deabc23c 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
@@ -66,7 +66,7 @@ CSSToLengthConversionData StyleResolverState::fontSizeConversionData() const
float em = parentStyle()->specifiedFontSize();
float rem = rootElementStyle() ? rootElementStyle()->specifiedFontSize() : 1;
CSSToLengthConversionData::FontSizes fontSizes(em, rem, &parentStyle()->font());
- CSSToLengthConversionData::ViewportSize viewportSize(document().layoutView());
+ CSSToLengthConversionData::ViewportSize viewportSize(document().layoutViewItem());
return CSSToLengthConversionData(style(), fontSizes, viewportSize, 1);
}

Powered by Google App Engine
This is Rietveld 408576698