|
Get rid of remaining uses of AXObject::elementRect
This change is mostly refactoring and deleting with just a bit of new code.
There were a few places we were still using AXObject::elementRect inside of
Blink. Fix those and replace them with the new AXObject::getRelativeBounds or
a new function AXObject::getBoundsInFrameCoordinates for cases where we do
need absolute frame-relative coordates.
There were a few subclasses of AXMockObject that didn't support
getRelativeBounds yet but weren't migrated earlier because they had no
test coverage for their bounding rects. Fix those and add new tests to
cover them.
To make it easier to implement those, I moved the implementation of
getRelativeBounds from AXLayoutObject to AXObject, and made it dependent
on a new protected virtual method layoutObjectForRelativeBounds().
If a subclass of AXObject wants its bounds computed all it needs to
do is implement layoutObjectForRelativeBounds() and the rest is done
for it.
BUG= 618120
Committed: https://crrev.com/1da67644e2628c06055962acb243c3c058b68c20
Cr-Commit-Position: refs/heads/master@{#417028}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+296 lines, -514 lines) |
Patch |
|
M |
components/test_runner/web_ax_object_proxy.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/accessibility/image-map-bounds.html
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/accessibility/slider-thumb-bounds.html
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/accessibility/spin-button-bounds.html
|
View
|
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/accessibility/svg-bounds-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXImageMapLink.cpp
|
View
|
|
3 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.cpp
|
View
|
1
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXLayoutObject.h
|
View
|
|
2 chunks |
+2 lines, -13 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
|
View
|
|
8 chunks |
+3 lines, -256 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXMenuListOption.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp
|
View
|
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXMenuListPopup.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXNodeObject.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
View
|
1
|
1 chunk |
+4 lines, -48 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXObject.h
|
View
|
1
|
4 chunks |
+14 lines, -18 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
View
|
1
|
8 chunks |
+113 lines, -51 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXSlider.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXSlider.cpp
|
View
|
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXSpinButton.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXSpinButton.cpp
|
View
|
|
2 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXTableColumn.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXTableColumn.cpp
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXTableHeaderContainer.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/accessibility/AXTableHeaderContainer.cpp
|
View
|
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp
|
View
|
|
2 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/WebAXObject.cpp
|
View
|
1
|
4 chunks |
+1 line, -29 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/web/WebAXObject.h
|
View
|
|
3 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
Total messages: 26 (16 generated)
|