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

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

Issue 1634023002: Use devicePixelRatio in image set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 | « third_party/WebKit/LayoutTests/fast/hidpi/image-set-as-background-with-zoom.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2b8d923346967e57b1dfe8a47a859dcbc2b7c630..f00a453c2021cb3ad1b65d45c7030767dd6abdd7 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.cpp
@@ -38,7 +38,7 @@ StyleResolverState::StyleResolverState(Document& document, const ElementResolveC
, m_applyPropertyToVisitedLinkStyle(false)
, m_hasDirAutoAttribute(false)
, m_fontBuilder(document)
- , m_elementStyleResources(document, document.frameHost()->deviceScaleFactor())
+ , m_elementStyleResources(document, document.devicePixelRatio())
{
if (!m_parentStyle) {
// TODO(jchaffraix): We should make m_parentStyle const (https://crbug.com/468152)
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/hidpi/image-set-as-background-with-zoom.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698