Make it possible to test rubber-banding in overflow scroll
[WebKit-https.git] / Source / WebCore / html / HTMLBodyElement.cpp
index 404eebd..db8f328 100644 (file)
@@ -104,34 +104,34 @@ void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName&
 HTMLElement::EventHandlerNameMap HTMLBodyElement::createWindowEventHandlerNameMap()
 {
     static const QualifiedName* const table[] = {
-        &onbeforeunloadAttr,
-        &onblurAttr,
-        &onerrorAttr,
-        &onfocusAttr,
-        &onfocusinAttr,
-        &onfocusoutAttr,
-        &onhashchangeAttr,
-        &onlanguagechangeAttr,
-        &onloadAttr,
-        &onmessageAttr,
-        &onofflineAttr,
-        &ononlineAttr,
-        &onorientationchangeAttr,
-        &onpagehideAttr,
-        &onpageshowAttr,
-        &onpopstateAttr,
-        &onresizeAttr,
-        &onscrollAttr,
-        &onstorageAttr,
-        &onunloadAttr,
-        &onwebkitmouseforcechangedAttr,
-        &onwebkitmouseforcedownAttr,
-        &onwebkitmouseforceupAttr,
-        &onwebkitmouseforcewillbeginAttr,
-        &onwebkitwillrevealbottomAttr,
-        &onwebkitwillrevealleftAttr,
-        &onwebkitwillrevealrightAttr,
-        &onwebkitwillrevealtopAttr,
+        &onbeforeunloadAttr.get(),
+        &onblurAttr.get(),
+        &onerrorAttr.get(),
+        &onfocusAttr.get(),
+        &onfocusinAttr.get(),
+        &onfocusoutAttr.get(),
+        &onhashchangeAttr.get(),
+        &onlanguagechangeAttr.get(),
+        &onloadAttr.get(),
+        &onmessageAttr.get(),
+        &onofflineAttr.get(),
+        &ononlineAttr.get(),
+        &onorientationchangeAttr.get(),
+        &onpagehideAttr.get(),
+        &onpageshowAttr.get(),
+        &onpopstateAttr.get(),
+        &onresizeAttr.get(),
+        &onscrollAttr.get(),
+        &onstorageAttr.get(),
+        &onunloadAttr.get(),
+        &onwebkitmouseforcechangedAttr.get(),
+        &onwebkitmouseforcedownAttr.get(),
+        &onwebkitmouseforceupAttr.get(),
+        &onwebkitmouseforcewillbeginAttr.get(),
+        &onwebkitwillrevealbottomAttr.get(),
+        &onwebkitwillrevealleftAttr.get(),
+        &onwebkitwillrevealrightAttr.get(),
+        &onwebkitwillrevealtopAttr.get(),
     };
 
     EventHandlerNameMap map;
@@ -299,7 +299,7 @@ void HTMLBodyElement::setScrollTop(int scrollTop)
     return HTMLElement::setScrollTop(scrollTop);
 }
 
-void HTMLBodyElement::scrollTo(const ScrollToOptions& options)
+void HTMLBodyElement::scrollTo(const ScrollToOptions& options, ScrollClamping clamping)
 {
     if (isFirstBodyElementOfDocument()) {
         // If the element is the HTML body element, document is in quirks mode, and the element is not potentially scrollable,
@@ -313,7 +313,7 @@ void HTMLBodyElement::scrollTo(const ScrollToOptions& options)
         window->scrollTo(options);
         return;
     }
-    return HTMLElement::scrollTo(options);
+    return HTMLElement::scrollTo(options, clamping);
 }
 
 int HTMLBodyElement::scrollHeight()