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

Unified Diff: Source/core/dom/Document.cpp

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed latest review comments Created 7 years, 3 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index f4cb2b31ea14ef492d5a84eb96492f62522d87be..f920a0a04589b4f19fecadc6b5ec84ea389a032f 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5377,6 +5377,11 @@ void Document::didAssociateFormControlsTimerFired(Timer<Document>* timer)
m_associatedFormControls.clear();
}
+float Document::devicePixelRatio() const
+{
+ return m_frame ? m_frame->devicePixelRatio() : 1.0;
+}
+
PassOwnPtr<LifecycleNotifier> Document::createLifecycleNotifier()
{
return DocumentLifecycleNotifier::create(this);

Powered by Google App Engine
This is Rietveld 408576698