Changeset 44491

Show
Ignore:
Timestamp:
06/07/09 19:19:19 (9 months ago)
Author:
mitz@apple.com
Message:

Reviewed by Sam Weinig.

  • editing/VisibleSelection.cpp: (WebCore::VisibleSelection::isAll): Return false if the selection is in a shadow tree.
Location:
trunk/WebCore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r44490 r44491  
     12009-06-07  Dan Bernstein  <mitz@apple.com> 
     2 
     3        Reviewed by Sam Weinig. 
     4 
     5        - fix <rdar://problem/6931661> -[WebView _selectionIsAll] returns YES 
     6          when the selection is inside a text field. 
     7 
     8        * editing/VisibleSelection.cpp: 
     9        (WebCore::VisibleSelection::isAll): Return false if the selection is in 
     10        a shadow tree. 
     11 
    1122009-06-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk> 
    213 
  • trunk/WebCore/editing/VisibleSelection.cpp

    r44367 r44491  
    225225bool VisibleSelection::isAll(StayInEditableContent stayInEditableContent) const 
    226226{ 
    227     return visibleStart().previous(stayInEditableContent).isNull() && visibleEnd().next(stayInEditableContent).isNull(); 
     227    return !shadowTreeRootNode() && visibleStart().previous(stayInEditableContent).isNull() && visibleEnd().next(stayInEditableContent).isNull(); 
    228228} 
    229229