Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
| index dff02f7249fa660d7e136ddbdfd24c7ad473be35..b2f59fae88e33044b42551e4819d45603137f354 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -5120,6 +5120,14 @@ void Document::pluginLoadingTimerFired(Timer<Document>*) |
| updateLayout(); |
| } |
| +double Document::monotonicTimeToZeroBasedDocumentTime(double monotonicTime) const |
| +{ |
| + if (!loader()) |
| + return 0; |
|
Rick Byers
2015/09/25 17:29:33
any idea when this would happen in practice? Just
majidvp
2015/09/29 14:21:31
I imagine this can happen if for example one creat
|
| + |
| + return loader()->timing().monotonicTimeToZeroBasedDocumentTime(monotonicTime); |
| +} |
| + |
| ScriptedAnimationController& Document::ensureScriptedAnimationController() |
| { |
| if (!m_scriptedAnimationController) { |