<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160471] branches/safari-537.74-branch</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160471">160471</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2013-12-11 18:35:43 -0800 (Wed, 11 Dec 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Rolled out <a href="http://trac.webkit.org/projects/webkit/changeset/160469">r160469</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari53774branchLayoutTestsChangeLog">branches/safari-537.74-branch/LayoutTests/ChangeLog</a></li>
<li><a href="#branchessafari53774branchLayoutTestsplatformmacaccessibilityboundsforrangeexpectedtxt">branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/bounds-for-range-expected.txt</a></li>
<li><a href="#branchessafari53774branchSourceWebCoreChangeLog">branches/safari-537.74-branch/Source/WebCore/ChangeLog</a></li>
<li><a href="#branchessafari53774branchSourceWebCoreaccessibilityAccessibilityObjectcpp">branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.cpp</a></li>
<li><a href="#branchessafari53774branchSourceWebCoreaccessibilityAccessibilityObjecth">branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.h</a></li>
<li><a href="#branchessafari53774branchSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm">branches/safari-537.74-branch/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm</a></li>
<li><a href="#branchessafari53774branchToolsChangeLog">branches/safari-537.74-branch/Tools/ChangeLog</a></li>
<li><a href="#branchessafari53774branchToolsDumpRenderTreeAccessibilityUIElementcpp">branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.cpp</a></li>
<li><a href="#branchessafari53774branchToolsDumpRenderTreeAccessibilityUIElementh">branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.h</a></li>
<li><a href="#branchessafari53774branchToolsDumpRenderTreemacAccessibilityUIElementMacmm">branches/safari-537.74-branch/Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm</a></li>
<li><a href="#branchessafari53774branchToolsWebKitTestRunnerInjectedBundleAccessibilityUIElementcpp">branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp</a></li>
<li><a href="#branchessafari53774branchToolsWebKitTestRunnerInjectedBundleAccessibilityUIElementh">branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h</a></li>
<li><a href="#branchessafari53774branchToolsWebKitTestRunnerInjectedBundleBindingsAccessibilityUIElementidl">branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl</a></li>
<li><a href="#branchessafari53774branchToolsWebKitTestRunnerInjectedBundleatkAccessibilityUIElementAtkcpp">branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp</a></li>
<li><a href="#branchessafari53774branchToolsWebKitTestRunnerInjectedBundlemacAccessibilityUIElementMacmm">branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#branchessafari53774branchLayoutTestsplatformmacaccessibilitytextmarkerforboundsexpectedtxt">branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds-expected.txt</a></li>
<li><a href="#branchessafari53774branchLayoutTestsplatformmacaccessibilitytextmarkerforboundshtml">branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari53774branchLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/LayoutTests/ChangeLog (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/LayoutTests/ChangeLog        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/LayoutTests/ChangeLog        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1,5 +1,10 @@
</span><span class="cx"> 2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
</span><span class="cx">
</span><ins>+ Rollout r160469. Not rolling out from trunk because r160469 was
+ applied on the branch from a patch file.
+
+2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
+
</ins><span class="cx"> Merge r157821
</span><span class="cx">
</span><span class="cx"> 2013-10-22 Samuel White <samuel_white@apple.com>
</span></span></pre></div>
<a id="branchessafari53774branchLayoutTestsplatformmacaccessibilityboundsforrangeexpectedtxt"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/bounds-for-range-expected.txt (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/bounds-for-range-expected.txt        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/bounds-for-range-expected.txt        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -53,8 +53,6 @@
</span><span class="cx"> AXBoundsForRange
</span><span class="cx"> AXStringForRange
</span><span class="cx"> AXUIElementsForSearchPredicate
</span><del>-AXEndTextMarkerForBounds
-AXStartTextMarkerForBounds
</del><span class="cx">
</span><span class="cx"> ----------------------
</span><span class="cx"> {{-1.000000, -1.000000}, {59.000000, 18.000000}}
</span></span></pre></div>
<a id="branchessafari53774branchLayoutTestsplatformmacaccessibilitytextmarkerforboundsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds-expected.txt (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds-expected.txt        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds-expected.txt        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>-Text text text text text text text text text text.
-This tests that endTextMarkerForBounds and startTextMarkerForBounds work correctly.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS rangeFromBounds is rangeFromElement
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="branchessafari53774branchLayoutTestsplatformmacaccessibilitytextmarkerforboundshtml"></a>
<div class="delfile"><h4>Deleted: branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds.html (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds.html        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/LayoutTests/platform/mac/accessibility/text-marker-for-bounds.html        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1,33 +0,0 @@
</span><del>-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test-pre.js"></script>
-<title>Text Marker for Bounds</title>
-</head>
-<body>
-
-<div id="text">Text text text text text text text text text text.</div>
-
-<p id="description"></p>
-<div id="console"></div>
-
-<script>
- description("This tests that endTextMarkerForBounds and startTextMarkerForBounds work correctly.");
-
- if (window.accessibilityController) {
- var text = accessibilityController.accessibleElementById("text");
-
- var startMarker = text.startTextMarkerForBounds(text.x, text.y, text.width, text.height);
- var endMarker = text.endTextMarkerForBounds(text.x, text.y, text.width, text.height);
- // Get text range from boundary markers.
- var rangeFromBounds = text.textMarkerRangeLength(text.textMarkerRangeForMarkers(startMarker, endMarker));
- // Get text range from element.
- var rangeFromElement = text.textMarkerRangeLength(text.textMarkerRangeForElement(text));
-
- shouldBe("rangeFromBounds", "rangeFromElement");
- }
-</script>
-
-<script src="../../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="branchessafari53774branchSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Source/WebCore/ChangeLog (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Source/WebCore/ChangeLog        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Source/WebCore/ChangeLog        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1,5 +1,10 @@
</span><span class="cx"> 2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
</span><span class="cx">
</span><ins>+ Rollout r160469. Not rolling out from trunk because r160469 was
+ applied on the branch from a patch file.
+
+2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
+
</ins><span class="cx"> Merge r157821
</span><span class="cx">
</span><span class="cx"> 2013-10-22 Samuel White <samuel_white@apple.com>
</span></span></pre></div>
<a id="branchessafari53774branchSourceWebCoreaccessibilityAccessibilityObjectcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.cpp (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.cpp        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.cpp        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -584,13 +584,6 @@
</span><span class="cx"> actionElem->accessKeyAction(true);
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><del>-
-Document* AccessibilityObject::topDocument() const
-{
- if (!document())
- return 0;
- return document()->topDocument();
-}
</del><span class="cx">
</span><span class="cx"> String AccessibilityObject::language() const
</span><span class="cx"> {
</span><span class="lines">@@ -921,34 +914,6 @@
</span><span class="cx"> return length;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-VisiblePosition AccessibilityObject::visiblePositionForBounds(const IntRect& rect, AccessibilityVisiblePositionForBounds visiblePositionForBounds) const
-{
- if (rect.isEmpty())
- return VisiblePosition();
-
- // FIXME: Add support for right-to-left languages.
- IntPoint corner = (visiblePositionForBounds == FirstVisiblePositionForBounds) ? rect.minXMinYCorner() : rect.maxXMaxYCorner();
- VisiblePosition position = this->visiblePositionForPoint(corner);
-
- if (rect.contains(position.absoluteCaretBounds().center()))
- return position;
-
- // If the initial position is located outside the bounds adjust it incrementally as needed.
- VisiblePosition nextPosition = position.next();
- VisiblePosition previousPosition = position.previous();
- while (nextPosition.isNotNull() || previousPosition.isNotNull()) {
- if (rect.contains(nextPosition.absoluteCaretBounds().center()))
- return nextPosition;
- if (rect.contains(previousPosition.absoluteCaretBounds().center()))
- return previousPosition;
-
- nextPosition = nextPosition.next();
- previousPosition = previousPosition.previous();
- }
-
- return VisiblePosition();
-}
-
</del><span class="cx"> VisiblePosition AccessibilityObject::nextWordEnd(const VisiblePosition& visiblePos) const
</span><span class="cx"> {
</span><span class="cx"> if (visiblePos.isNull())
</span></span></pre></div>
<a id="branchessafari53774branchSourceWebCoreaccessibilityAccessibilityObjecth"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.h (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.h        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Source/WebCore/accessibility/AccessibilityObject.h        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -311,11 +311,6 @@
</span><span class="cx"> VisitedLinkSearchKey
</span><span class="cx"> };
</span><span class="cx">
</span><del>-enum AccessibilityVisiblePositionForBounds {
- FirstVisiblePositionForBounds,
- LastVisiblePositionForBounds
-};
-
</del><span class="cx"> struct AccessibilitySearchCriteria {
</span><span class="cx"> AccessibilityObject* startObject;
</span><span class="cx"> AccessibilitySearchDirection searchDirection;
</span><span class="lines">@@ -638,10 +633,8 @@
</span><span class="cx"> virtual Document* document() const;
</span><span class="cx"> virtual FrameView* topDocumentFrameView() const { return 0; }
</span><span class="cx"> virtual FrameView* documentFrameView() const;
</span><del>- Document* topDocument() const;
</del><span class="cx"> String language() const;
</span><span class="cx"> // 1-based, to match the aria-level spec.
</span><del>- // 1-based, to match the aria-level spec.
</del><span class="cx"> virtual unsigned hierarchicalLevel() const { return 0; }
</span><span class="cx">
</span><span class="cx"> virtual void setFocused(bool) { }
</span><span class="lines">@@ -712,7 +705,6 @@
</span><span class="cx"> int lengthForVisiblePositionRange(const VisiblePositionRange&) const;
</span><span class="cx"> virtual void setSelectedVisiblePositionRange(const VisiblePositionRange&) const { }
</span><span class="cx">
</span><del>- VisiblePosition visiblePositionForBounds(const IntRect&, AccessibilityVisiblePositionForBounds) const;
</del><span class="cx"> virtual VisiblePosition visiblePositionForPoint(const IntPoint&) const { return VisiblePosition(); }
</span><span class="cx"> VisiblePosition nextVisiblePosition(const VisiblePosition& visiblePos) const { return visiblePos.next(); }
</span><span class="cx"> VisiblePosition previousVisiblePosition(const VisiblePosition& visiblePos) const { return visiblePos.previous(); }
</span></span></pre></div>
<a id="branchessafari53774branchSourceWebCoreaccessibilitymacWebAccessibilityObjectWrapperMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -195,15 +195,6 @@
</span><span class="cx"> #define NSAccessibilityUIElementsForSearchPredicateParameterizedAttribute @"AXUIElementsForSearchPredicate"
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-// Text
-#ifndef NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute @"AXEndTextMarkerForBounds"
-#endif
-
-#ifndef NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute @"AXStartTextMarkerForBounds"
-#endif
-
</del><span class="cx"> // Search Keys
</span><span class="cx"> #ifndef NSAccessibilityAnyTypeSearchKey
</span><span class="cx"> #define NSAccessibilityAnyTypeSearchKey @"AXAnyTypeSearchKey"
</span><span class="lines">@@ -446,23 +437,6 @@
</span><span class="cx"> return HardAutorelease(wkCopyAXTextMarkerRangeEnd(range));
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#pragma mark Other helpers
-
-- (IntRect)screenToContents:(const IntRect&)rect
-{
- Document* document = m_object->document();
- if (!document)
- return IntRect();
-
- FrameView* frameView = document->view();
- if (!frameView)
- return IntRect();
-
- IntPoint startPoint = frameView->screenToContents(rect.minXMaxYCorner());
- IntPoint endPoint = frameView->screenToContents(rect.maxXMinYCorner());
- return IntRect(startPoint.x(), startPoint.y(), endPoint.x() - startPoint.x(), endPoint.y() - startPoint.y());
-}
-
</del><span class="cx"> #pragma mark Search helpers
</span><span class="cx">
</span><span class="cx"> typedef HashMap<String, AccessibilitySearchKey> AccessibilitySearchKeyMap;
</span><span class="lines">@@ -2930,8 +2904,6 @@
</span><span class="cx"> NSAccessibilityBoundsForRangeParameterizedAttribute,
</span><span class="cx"> NSAccessibilityStringForRangeParameterizedAttribute,
</span><span class="cx"> NSAccessibilityUIElementsForSearchPredicateParameterizedAttribute,
</span><del>- NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute,
- NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute,
</del><span class="cx"> nil];
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -3271,8 +3243,6 @@
</span><span class="cx"> bool pointSet = false;
</span><span class="cx"> NSRange range = {0, 0};
</span><span class="cx"> bool rangeSet = false;
</span><del>- NSRect rect = NSZeroRect;
- bool rectSet = false;
</del><span class="cx">
</span><span class="cx"> // basic parameter validation
</span><span class="cx"> if (!m_object || !attribute || !parameter)
</span><span class="lines">@@ -3309,9 +3279,6 @@
</span><span class="cx"> } else if ([parameter isKindOfClass:[NSValue self]] && strcmp([(NSValue*)parameter objCType], @encode(NSRange)) == 0) {
</span><span class="cx"> rangeSet = true;
</span><span class="cx"> range = [(NSValue*)parameter rangeValue];
</span><del>- } else if ([parameter isKindOfClass:[NSValue self]] && strcmp([(NSValue*)parameter objCType], @encode(NSRect)) == 0) {
- rectSet = true;
- rect = [(NSValue*)parameter rectValue];
</del><span class="cx"> } else {
</span><span class="cx"> // Attribute type is not supported. Allow super to handle.
</span><span class="cx"> return [super accessibilityAttributeValue:attribute forParameter:parameter];
</span><span class="lines">@@ -3360,15 +3327,6 @@
</span><span class="cx"> return convertToNSArray(results);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if ([attribute isEqualToString:NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute]) {
- IntRect webCoreRect = [self screenToContents:enclosingIntRect(rect)];
- return [self textMarkerForVisiblePosition:m_object->visiblePositionForBounds(webCoreRect, LastVisiblePositionForBounds)];
- }
- if ([attribute isEqualToString:NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute]) {
- IntRect webCoreRect = [self screenToContents:enclosingIntRect(rect)];
- return [self textMarkerForVisiblePosition:m_object->visiblePositionForBounds(webCoreRect, FirstVisiblePositionForBounds)];
- }
-
</del><span class="cx"> if ([attribute isEqualToString:NSAccessibilityTextMarkerIsValidParameterizedAttribute]) {
</span><span class="cx"> VisiblePosition pos = [self visiblePositionForTextMarker:textMarker];
</span><span class="cx"> return [NSNumber numberWithBool:!pos.isNull()];
</span></span></pre></div>
<a id="branchessafari53774branchToolsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/ChangeLog (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/ChangeLog        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/ChangeLog        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1,5 +1,10 @@
</span><span class="cx"> 2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
</span><span class="cx">
</span><ins>+ Rollout r160469. Not rolling out from trunk because r160469 was
+ applied on the branch from a patch file.
+
+2013-12-11 Matthew Hanson <matthew_hanson@apple.com>
+
</ins><span class="cx"> Merge r157821
</span><span class="cx">
</span><span class="cx"> 2013-10-22 Samuel White <samuel_white@apple.com>
</span></span></pre></div>
<a id="branchessafari53774branchToolsDumpRenderTreeAccessibilityUIElementcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.cpp (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.cpp        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.cpp        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -664,38 +664,6 @@
</span><span class="cx"> return JSValueMakeString(context, markerRangeString.get());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-static JSValueRef endTextMarkerForBoundsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
-{
- int x = 0;
- int y = 0;
- int width = 0;
- int height = 0;
- if (argumentCount == 4) {
- x = JSValueToNumber(context, arguments[0], exception);
- y = JSValueToNumber(context, arguments[1], exception);
- width = JSValueToNumber(context, arguments[2], exception);
- height = JSValueToNumber(context, arguments[3], exception);
- }
-
- return AccessibilityTextMarker::makeJSAccessibilityTextMarker(context, toAXElement(thisObject)->endTextMarkerForBounds(x, y, width, height));
-}
-
-static JSValueRef startTextMarkerForBoundsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
-{
- int x = 0;
- int y = 0;
- int width = 0;
- int height = 0;
- if (argumentCount == 4) {
- x = JSValueToNumber(context, arguments[0], exception);
- y = JSValueToNumber(context, arguments[1], exception);
- width = JSValueToNumber(context, arguments[2], exception);
- height = JSValueToNumber(context, arguments[3], exception);
- }
-
- return AccessibilityTextMarker::makeJSAccessibilityTextMarker(context, toAXElement(thisObject)->startTextMarkerForBounds(x, y, width, height));
-}
-
</del><span class="cx"> static JSValueRef textMarkerForPointCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
</span><span class="cx"> {
</span><span class="cx"> int x = 0;
</span><span class="lines">@@ -1196,16 +1164,6 @@
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-AccessibilityTextMarker AccessibilityUIElement::endTextMarkerForBounds(int x, int y, int width, int height)
-{
- return 0;
-}
-
-AccessibilityTextMarker AccessibilityUIElement::startTextMarkerForBounds(int x, int y, int width, int height)
-{
- return 0;
-}
-
</del><span class="cx"> AccessibilityTextMarker AccessibilityUIElement::textMarkerForPoint(int x, int y)
</span><span class="cx"> {
</span><span class="cx"> return 0;
</span><span class="lines">@@ -1415,8 +1373,6 @@
</span><span class="cx"> { "endTextMarkerForTextMarkerRange", endTextMarkerForTextMarkerRangeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx"> { "accessibilityElementForTextMarker", accessibilityElementForTextMarkerCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx"> { "textMarkerRangeLength", textMarkerRangeLengthCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><del>- { "endTextMarkerForBounds", endTextMarkerForBoundsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
- { "startTextMarkerForBounds", startTextMarkerForBoundsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</del><span class="cx"> { "textMarkerForPoint", textMarkerForPointCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx"> { "nextTextMarker", nextTextMarkerCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx"> { "previousTextMarker", previousTextMarkerCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span></span></pre></div>
<a id="branchessafari53774branchToolsDumpRenderTreeAccessibilityUIElementh"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.h (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.h        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/DumpRenderTree/AccessibilityUIElement.h        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -221,8 +221,6 @@
</span><span class="cx"> AccessibilityTextMarkerRange textMarkerRangeForMarkers(AccessibilityTextMarker* startMarker, AccessibilityTextMarker* endMarker);
</span><span class="cx"> AccessibilityTextMarker startTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*);
</span><span class="cx"> AccessibilityTextMarker endTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*);
</span><del>- AccessibilityTextMarker endTextMarkerForBounds(int x, int y, int width, int height);
- AccessibilityTextMarker startTextMarkerForBounds(int x, int y, int width, int height);
</del><span class="cx"> AccessibilityTextMarker textMarkerForPoint(int x, int y);
</span><span class="cx"> AccessibilityTextMarker previousTextMarker(AccessibilityTextMarker*);
</span><span class="cx"> AccessibilityTextMarker nextTextMarker(AccessibilityTextMarker*);
</span></span></pre></div>
<a id="branchessafari53774branchToolsDumpRenderTreemacAccessibilityUIElementMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -56,15 +56,6 @@
</span><span class="cx"> #define NSAccessibilityPathAttribute @"AXPath"
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-// Text
-#ifndef NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute @"AXEndTextMarkerForBounds"
-#endif
-
-#ifndef NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute @"AXStartTextMarkerForBounds"
-#endif
-
</del><span class="cx"> typedef void (*AXPostedNotificationCallback)(id element, NSString* notification, void* context);
</span><span class="cx">
</span><span class="cx"> @interface NSObject (WebKitAccessibilityAdditions)
</span><span class="lines">@@ -1504,26 +1495,6 @@
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-AccessibilityTextMarker AccessibilityUIElement::endTextMarkerForBounds(int x, int y, int width, int height)
-{
- BEGIN_AX_OBJC_EXCEPTIONS
- id textMarker = [m_element accessibilityAttributeValue:NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute forParameter:[NSValue valueWithRect:NSMakeRect(x, y, width, height)]];
- return AccessibilityTextMarker(textMarker);
- END_AX_OBJC_EXCEPTIONS
-
- return 0;
-}
-
-AccessibilityTextMarker AccessibilityUIElement::startTextMarkerForBounds(int x, int y, int width, int height)
-{
- BEGIN_AX_OBJC_EXCEPTIONS
- id textMarker = [m_element accessibilityAttributeValue:NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute forParameter:[NSValue valueWithRect:NSMakeRect(x, y, width, height)]];
- return AccessibilityTextMarker(textMarker);
- END_AX_OBJC_EXCEPTIONS
-
- return 0;
-}
-
</del><span class="cx"> AccessibilityTextMarker AccessibilityUIElement::textMarkerForPoint(int x, int y)
</span><span class="cx"> {
</span><span class="cx"> BEGIN_AX_OBJC_EXCEPTIONS
</span></span></pre></div>
<a id="branchessafari53774branchToolsWebKitTestRunnerInjectedBundleAccessibilityUIElementcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -171,8 +171,6 @@
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::startTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*) { return 0; }
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::endTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*) { return 0; }
</span><span class="cx"> PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::accessibilityElementForTextMarker(AccessibilityTextMarker*) { return 0; }
</span><del>-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::endTextMarkerForBounds(int x, int y, int width, int height) { return 0; }
-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::startTextMarkerForBounds(int x, int y, int width, int height) { return 0; }
</del><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::textMarkerForPoint(int, int) { return 0; }
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::previousTextMarker(AccessibilityTextMarker*) { return 0; }
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::nextTextMarker(AccessibilityTextMarker*) { return 0; }
</span></span></pre></div>
<a id="branchessafari53774branchToolsWebKitTestRunnerInjectedBundleAccessibilityUIElementh"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -219,8 +219,6 @@
</span><span class="cx"> PassRefPtr<AccessibilityTextMarkerRange> textMarkerRangeForMarkers(AccessibilityTextMarker* startMarker, AccessibilityTextMarker* endMarker);
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> startTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*);
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> endTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange*);
</span><del>- PassRefPtr<AccessibilityTextMarker> endTextMarkerForBounds(int x, int y, int width, int height);
- PassRefPtr<AccessibilityTextMarker> startTextMarkerForBounds(int x, int y, int width, int height);
</del><span class="cx"> PassRefPtr<AccessibilityTextMarker> textMarkerForPoint(int x, int y);
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> previousTextMarker(AccessibilityTextMarker*);
</span><span class="cx"> PassRefPtr<AccessibilityTextMarker> nextTextMarker(AccessibilityTextMarker*);
</span></span></pre></div>
<a id="branchessafari53774branchToolsWebKitTestRunnerInjectedBundleBindingsAccessibilityUIElementidl"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -155,8 +155,6 @@
</span><span class="cx"> AccessibilityTextMarkerRange textMarkerRangeForMarkers(AccessibilityTextMarker startMarker, AccessibilityTextMarker endMarker);
</span><span class="cx"> AccessibilityTextMarker startTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange range);
</span><span class="cx"> AccessibilityTextMarker endTextMarkerForTextMarkerRange(AccessibilityTextMarkerRange range);
</span><del>- AccessibilityTextMarker endTextMarkerForBounds(int x, int y, int width, int height);
- AccessibilityTextMarker startTextMarkerForBounds(int x, int y, int width, int height);
</del><span class="cx"> AccessibilityTextMarker textMarkerForPoint(int x, int y);
</span><span class="cx"> AccessibilityTextMarker previousTextMarker(AccessibilityTextMarker marker);
</span><span class="cx"> AccessibilityTextMarker nextTextMarker(AccessibilityTextMarker marker);
</span></span></pre></div>
<a id="branchessafari53774branchToolsWebKitTestRunnerInjectedBundleatkAccessibilityUIElementAtkcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -1155,18 +1155,6 @@
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::endTextMarkerForBounds(int x, int y, int width, int height)
-{
- // FIXME: implement
- return 0;
-}
-
-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::startTextMarkerForBounds(int x, int y, int width, int height)
-{
- // FIXME: implement
- return 0;
-}
-
</del><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::textMarkerForPoint(int x, int y)
</span><span class="cx"> {
</span><span class="cx"> // FIXME: implement
</span></span></pre></div>
<a id="branchessafari53774branchToolsWebKitTestRunnerInjectedBundlemacAccessibilityUIElementMacmm"></a>
<div class="modfile"><h4>Modified: branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm (160470 => 160471)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm        2013-12-12 02:23:19 UTC (rev 160470)
+++ branches/safari-537.74-branch/Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm        2013-12-12 02:35:43 UTC (rev 160471)
</span><span class="lines">@@ -57,15 +57,6 @@
</span><span class="cx"> #define NSAccessibilityPathAttribute @"AXPath"
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-// Text
-#ifndef NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute @"AXEndTextMarkerForBounds"
-#endif
-
-#ifndef NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute
-#define NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute @"AXStartTextMarkerForBounds"
-#endif
-
</del><span class="cx"> typedef void (*AXPostedNotificationCallback)(id element, NSString* notification, void* context);
</span><span class="cx">
</span><span class="cx"> @interface NSObject (WebKitAccessibilityAdditions)
</span><span class="lines">@@ -1437,26 +1428,6 @@
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::endTextMarkerForBounds(int x, int y, int width, int height)
-{
- BEGIN_AX_OBJC_EXCEPTIONS
- id textMarker = [m_element accessibilityAttributeValue:NSAccessibilityEndTextMarkerForBoundsParameterizedAttribute forParameter:[NSValue valueWithRect:NSMakeRect(x, y, width, height)]];
- return AccessibilityTextMarker::create(textMarker);
- END_AX_OBJC_EXCEPTIONS
-
- return 0;
-}
-
-PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::startTextMarkerForBounds(int x, int y, int width, int height)
-{
- BEGIN_AX_OBJC_EXCEPTIONS
- id textMarker = [m_element accessibilityAttributeValue:NSAccessibilityStartTextMarkerForBoundsParameterizedAttribute forParameter:[NSValue valueWithRect:NSMakeRect(x, y, width, height)]];
- return AccessibilityTextMarker::create(textMarker);
- END_AX_OBJC_EXCEPTIONS
-
- return 0;
-}
-
</del><span class="cx"> PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::textMarkerForPoint(int x, int y)
</span><span class="cx"> {
</span><span class="cx"> BEGIN_AX_OBJC_EXCEPTIONS
</span></span></pre>
</div>
</div>
</body>
</html>