Reviewed by John.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2006 17:24:54 +0000 (17:24 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2006 17:24:54 +0000 (17:24 +0000)
        <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange

        Treat controls as replaced elements, so that AXAttributedStringForTextMarkerRange will, too.

        * editing/TextIterator.cpp:
        (WebCore::TextIterator::advance):
        Include controls.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15966 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/editing/TextIterator.cpp

index e3eb25ea04248867f589c10006879fd4c82a4a16..aa2c26baada8db05615b353b4da8519f7908b10b 100644 (file)
@@ -1,3 +1,15 @@
+2006-08-22  David Harrison  <harrison@apple.com>
+
+        Reviewed by John.
+
+        <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
+
+        Treat controls as replaced elements, so that AXAttributedStringForTextMarkerRange will, too.
+        
+        * editing/TextIterator.cpp:
+        (WebCore::TextIterator::advance):
+        Include controls.
+
 2006-08-22  David Harrison  <harrison@apple.com>
 
         Reviewed by Maciej.
index 21181fc788b3497df2b4f141b73bf4cb5a0c55a7..966ad2b4d25ea0daae415feea7d7b5cc6b11e089 100644 (file)
@@ -157,7 +157,7 @@ void TextIterator::advance()
                 // FIXME: What about CDATA_SECTION_NODE?
                 if (renderer->style()->visibility() == VISIBLE)
                     m_handledNode = handleTextNode();
-            } else if (renderer && (renderer->isImage() || renderer->isWidget())) {
+            } else if (renderer && (renderer->isImage() || renderer->isWidget() || (renderer->element() && renderer->element()->isControl()))) {
                 if (renderer->style()->visibility() == VISIBLE)
                     m_handledNode = handleReplacedElement();
             } else