Index: Source/core/html/shadow/SpinButtonElement.cpp |
diff --git a/Source/core/html/shadow/SpinButtonElement.cpp b/Source/core/html/shadow/SpinButtonElement.cpp |
index 998f1d448aab20a96d3c5259fa2718ae9d49ea45..ad03f48eb09cd540599df84cf59a1f09e9a20fe5 100644 |
--- a/Source/core/html/shadow/SpinButtonElement.cpp |
+++ b/Source/core/html/shadow/SpinButtonElement.cpp |
@@ -116,10 +116,10 @@ void SpinButtonElement::defaultEventHandler(Event* event) |
else if (event->type() == eventNames().mousemoveEvent) { |
if (box->pixelSnappedBorderBoxRect().contains(local)) { |
if (!m_capturing) { |
- if (Frame* frame = document()->frame()) { |
+ if (Frame* frame = document().frame()) { |
frame->eventHandler()->setCapturingMouseEventsNode(this); |
m_capturing = true; |
- if (Page* page = document()->page()) |
+ if (Page* page = document().page()) |
page->chrome().registerPopupOpeningObserver(this); |
} |
} |
@@ -192,10 +192,10 @@ void SpinButtonElement::releaseCapture() |
{ |
stopRepeatingTimer(); |
if (m_capturing) { |
- if (Frame* frame = document()->frame()) { |
+ if (Frame* frame = document().frame()) { |
frame->eventHandler()->setCapturingMouseEventsNode(0); |
m_capturing = false; |
- if (Page* page = document()->page()) |
+ if (Page* page = document().page()) |
page->chrome().unregisterPopupOpeningObserver(this); |
} |
} |