Changeset 196249 in webkit


Ignore:
Timestamp:
Feb 8, 2016 5:41:47 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Indent inline box test fails due to assertion in VisibleSelection::selectionFromContentsOfNode()
https://bugs.webkit.org/show_bug.cgi?id=153824

Patch by Adrien Plazas <aplazas@igalia.com> on 2016-02-08
Reviewed by Michael Catanzaro.

  • editing/markup.cpp:

(WebCore::highestAncestorToWrapMarkup):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r196248 r196249  
     12016-02-08  Adrien Plazas  <aplazas@igalia.com>
     2
     3        Indent inline box test fails due to assertion in VisibleSelection::selectionFromContentsOfNode()
     4        https://bugs.webkit.org/show_bug.cgi?id=153824
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * editing/markup.cpp:
     9        (WebCore::highestAncestorToWrapMarkup):
     10
    1112016-02-07  Sam Weinig  <sam@webkit.org>
    212
  • trunk/Source/WebCore/editing/markup.cpp

    r195264 r196249  
    539539
    540540        if (Node* parentListNode = enclosingNodeOfType(firstPositionInOrBeforeNode(range->firstNode()), isListItem)) {
    541             if (WebCore::areRangesEqual(VisibleSelection::selectionFromContentsOfNode(parentListNode).toNormalizedRange().get(), range)) {
     541            if (!editingIgnoresContent(parentListNode) && WebCore::areRangesEqual(VisibleSelection::selectionFromContentsOfNode(parentListNode).toNormalizedRange().get(), range)) {
    542542                specialCommonAncestor = parentListNode->parentNode();
    543543                while (specialCommonAncestor && !isListElement(specialCommonAncestor))
Note: See TracChangeset for help on using the changeset viewer.