Consider implementing Document.scrollingElement
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 00:59:01 +0000 (00:59 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 00:59:01 +0000 (00:59 +0000)
commit61b2f07ab93f215f39de22335ac5eb7df4c36166
tree2ba5471873def63f79ddf54b7fa1fe2d08c9d634
parent5ebdcc66064a6cf96aa4b082a624f4b1045e6f08
Consider implementing Document.scrollingElement
<rdar://problem/20845213>
https://bugs.webkit.org/show_bug.cgi?id=143609

Reviewed by Simon Fraser.

Source/WebCore:

Add the non-compliant implementation of Document.scrollingElement that the spec,
found at http://dev.w3.org/csswg/cssom-view/#dom-document-scrollingelement,
says we should have while we have non-compliant implementations of Element.scrollTop
and Element.scrollLeft (fixing that is tracked by https://bugs.webkit.org/show_bug.cgi?id=106133).

Tests: fast/dom/Document/scrollingElement-quirks-mode.html
       fast/dom/Document/scrollingElement-standards-mode.html

* dom/Document.cpp:
(WebCore::Document::scrollingElement):
* dom/Document.h:
* dom/Document.idl:

LayoutTests:

* fast/dom/Document/scrollingElement-quirks-mode-expected.txt: Added.
* fast/dom/Document/scrollingElement-quirks-mode.html: Added.
* fast/dom/Document/scrollingElement-standards-mode-expected.txt: Added.
* fast/dom/Document/scrollingElement-standards-mode.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Document/scrollingElement-quirks-mode-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/scrollingElement-quirks-mode.html [new file with mode: 0644]
LayoutTests/fast/dom/Document/scrollingElement-standards-mode-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Document/scrollingElement-standards-mode.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/dom/Document.idl