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

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

Issue 2056303002: [Layout API] Use Document::layoutViewItem() in ViewportStyleResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed both declarations to const ref as per rune 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/ViewportStyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
index 1e40fcd4343b4d4246ffeb2f9f95faae56b42af8..c33e1f6801b0ad1b69403e4100ee16f6d653d9b0 100644
--- a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
@@ -40,6 +40,7 @@
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/ViewportDescription.h"
#include "core/frame/Settings.h"
+#include "core/layout/api/LayoutViewItem.h"
namespace blink {
@@ -211,7 +212,7 @@ Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) const
documentStyle->setHasViewportUnits(false);
CSSToLengthConversionData::FontSizes fontSizes(documentStyle, documentStyle);
- CSSToLengthConversionData::ViewportSize viewportSize(m_document->layoutView());
+ CSSToLengthConversionData::ViewportSize viewportSize(m_document->layoutViewItem());
if (primitiveValue->getValueID() == CSSValueAuto)
return Length(Auto);

Powered by Google App Engine
This is Rietveld 408576698