Changeset 90064 in webkit


Ignore:
Timestamp:
Jun 29, 2011 4:45:52 PM (13 years ago)
Author:
rniwa@webkit.org
Message:

2011-06-29 Ryosuke Niwa <rniwa@webkit.org>

Reviewed by Darin Adler.

REGRESSION(r89952): r89952 added a wrong assertion in visible_units.cpp
https://bugs.webkit.org/show_bug.cgi?id=63668

We need to assert the offset to be zero only when the position is NOT offset in node.

  • editing/visible_units.cpp: (WebCore::startOfParagraph):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r90062 r90064  
     12011-06-29  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION(r89952): r89952 added a wrong assertion in visible_units.cpp
     6        https://bugs.webkit.org/show_bug.cgi?id=63668
     7
     8        We need to assert the offset to be zero only when the position is NOT offset in node.
     9
     10        * editing/visible_units.cpp:
     11        (WebCore::startOfParagraph):
     12
    1132011-06-29  Brent Fulgham  <bfulgham@webkit.org>
    214
  • trunk/Source/WebCore/editing/visible_units.cpp

    r89952 r90064  
    819819
    820820    if (type == Position::PositionIsOffsetInAnchor) {
    821         ASSERT(type != Position::PositionIsOffsetInAnchor || !offset);
     821        ASSERT(type == Position::PositionIsOffsetInAnchor || !offset);
    822822        return VisiblePosition(Position(node, offset, type), DOWNSTREAM);
    823823    }
Note: See TracChangeset for help on using the changeset viewer.