Stop using legacy ClientRect / ClientRectList in Internals
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Apr 2017 23:28:41 +0000 (23:28 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Apr 2017 23:28:41 +0000 (23:28 +0000)
commit7b7b3bdf016ff2c9fa6d79852a0649491af9f68e
treef78eca964161385ac9ab2f0e2274c9ab4a8bc302
parente68b12c2b29d73e797a84385b71f9c7af32b3be3
Stop using legacy ClientRect / ClientRectList in Internals
https://bugs.webkit.org/show_bug.cgi?id=171412

Reviewed by Simon Fraser.

Source/WebCore:

Stop using legacy ClientRect / ClientRectList in Internals amd use the
newer DOMRect instead.

* dom/DOMRect.idl:
* page/Page.cpp:
(WebCore::Page::nonFastScrollableRects):
(WebCore::Page::touchEventRectsForEvent):
(WebCore::Page::passiveTouchEventListenerRects):
* page/Page.h:
* testing/Internals.cpp:
(WebCore::Internals::absoluteCaretBounds):
(WebCore::Internals::boundingBox):
(WebCore::Internals::inspectorHighlightRects):
(WebCore::Internals::layoutViewportRect):
(WebCore::Internals::visualViewportRect):
(WebCore::Internals::touchEventRectsForEvent):
(WebCore::Internals::passiveTouchEventListenerRects):
(WebCore::Internals::nonFastScrollableRects):
(WebCore::Internals::selectionBounds):
* testing/Internals.h:
* testing/Internals.idl:

LayoutTests:

Rebaseline existing tests as DOMRect has more properties than ClientRect.

* fast/visual-viewport/nonzoomed-rects-expected.txt:
* fast/visual-viewport/rtl-nonzoomed-rects-expected.txt:
* fast/visual-viewport/rtl-zoomed-rects-expected.txt:
* fast/visual-viewport/rubberbanding-viewport-rects-expected.txt:
* fast/visual-viewport/rubberbanding-viewport-rects-extended-background-expected.txt:
* fast/visual-viewport/rubberbanding-viewport-rects-header-footer-expected.txt:
* fast/visual-viewport/zoomed-fixed-expected.txt:
* fast/visual-viewport/zoomed-fixed-header-and-footer-expected.txt:
* fast/visual-viewport/zoomed-rects-expected.txt:
* inspector/dom/hideHighlight-expected.txt:
* inspector/dom/highlightQuad-expected.txt:
* inspector/dom/highlightRect-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/visual-viewport/nonzoomed-rects-expected.txt
LayoutTests/fast/visual-viewport/rtl-nonzoomed-rects-expected.txt
LayoutTests/fast/visual-viewport/rtl-zoomed-rects-expected.txt
LayoutTests/fast/visual-viewport/rubberbanding-viewport-rects-expected.txt
LayoutTests/fast/visual-viewport/rubberbanding-viewport-rects-extended-background-expected.txt
LayoutTests/fast/visual-viewport/rubberbanding-viewport-rects-header-footer-expected.txt
LayoutTests/fast/visual-viewport/zoomed-fixed-expected.txt
LayoutTests/fast/visual-viewport/zoomed-fixed-header-and-footer-expected.txt
LayoutTests/fast/visual-viewport/zoomed-rects-expected.txt
LayoutTests/inspector/dom/hideHighlight-expected.txt
LayoutTests/inspector/dom/highlightQuad-expected.txt
LayoutTests/inspector/dom/highlightRect-expected.txt
LayoutTests/platform/mac-wk1/fast/visual-viewport/rubberbanding-viewport-rects-extended-background-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/dom/DOMRect.h
Source/WebCore/dom/DOMRect.idl
Source/WebCore/page/Page.cpp
Source/WebCore/page/Page.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl