Changeset 15966 in webkit


Ignore:
Timestamp:
Aug 22, 2006, 10:24:54 AM (18 years ago)
Author:
harrison
Message:

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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r15965 r15966  
     12006-08-22  David Harrison  <harrison@apple.com>
     2
     3        Reviewed by John.
     4
     5        <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
     6
     7        Treat controls as replaced elements, so that AXAttributedStringForTextMarkerRange will, too.
     8       
     9        * editing/TextIterator.cpp:
     10        (WebCore::TextIterator::advance):
     11        Include controls.
     12
    1132006-08-22  David Harrison  <harrison@apple.com>
    214
  • trunk/WebCore/editing/TextIterator.cpp

    r15253 r15966  
    158158                if (renderer->style()->visibility() == VISIBLE)
    159159                    m_handledNode = handleTextNode();
    160             } else if (renderer && (renderer->isImage() || renderer->isWidget())) {
     160            } else if (renderer && (renderer->isImage() || renderer->isWidget() || (renderer->element() && renderer->element()->isControl()))) {
    161161                if (renderer->style()->visibility() == VISIBLE)
    162162                    m_handledNode = handleReplacedElement();
Note: See TracChangeset for help on using the changeset viewer.