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

Unified Diff: third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp

Issue 2096783004: Seperate visualviewportchanged event into scroll and resize events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash + tests 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/frame/DOMVisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp b/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
index f92bf080538be105d51cfe274623ca9dcffa07e5..1b4632a19d70ff78497a926ed7ba9f57ad559728 100644
--- a/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMVisualViewport.cpp
@@ -37,11 +37,28 @@
namespace blink {
DOMVisualViewport::DOMVisualViewport(LocalDOMWindow* window)
- : m_window(window) {}
+ : m_window(window)
+{
+}
+
+DOMVisualViewport::~DOMVisualViewport()
+{
+}
DEFINE_TRACE(DOMVisualViewport)
{
visitor->trace(m_window);
+ EventTargetWithInlineData::trace(visitor);
+}
+
+const AtomicString& DOMVisualViewport::interfaceName() const
+{
+ return EventTargetNames::DOMVisualViewport;
+}
+
+ExecutionContext* DOMVisualViewport::getExecutionContext() const
+{
+ return m_window->getExecutionContext();
}
double DOMVisualViewport::scrollLeft()
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMVisualViewport.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698