Changeset 53494 in webkit


Ignore:
Timestamp:
Jan 19, 2010 2:17:32 PM (14 years ago)
Author:
enrica@apple.com
Message:

WebCore: REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()
https://bugs.webkit.org/show_bug.cgi?id=33864
<rdar://problem/7552959>

Reviewed by Simon Fraser.

Regression has been introduced by changeset 53085.
The original fix had to be limited to editable content.

Test: editing/selection/selection-applet.html

  • dom/Position.cpp:

(WebCore::Position::getInlineBoxAndOffset):

LayoutTests: REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()
https://bugs.webkit.org/show_bug.cgi?id=33864
<rdar://problem/7552959>

Reviewed by Simon Fraser.

  • editing/selection/selection-applet-expected.txt: Added.
  • editing/selection/selection-applet.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53492 r53494  
     12010-01-19  Enrica Casucci  <enrica@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()
     6        https://bugs.webkit.org/show_bug.cgi?id=33864
     7        <rdar://problem/7552959>
     8
     9        * editing/selection/selection-applet-expected.txt: Added.
     10        * editing/selection/selection-applet.html: Added.
     11
    1122010-01-15  Ojan Vafai  <ojan@chromium.org>
    213
  • trunk/WebCore/ChangeLog

    r53493 r53494  
     12010-01-19  Enrica Casucci  <enrica@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        REGRESSION: Infinite recursion in Position::getInlineBoxAndOffset()
     6        https://bugs.webkit.org/show_bug.cgi?id=33864
     7        <rdar://problem/7552959>
     8       
     9        Regression has been introduced by changeset 53085.
     10        The original fix had to be limited to editable content.
     11
     12        Test: editing/selection/selection-applet.html
     13
     14        * dom/Position.cpp:
     15        (WebCore::Position::getInlineBoxAndOffset):
     16
    1172010-01-19  Kristian Amlie <kristian.amlie@nokia.com>
    218
  • trunk/WebCore/dom/Position.cpp

    r53085 r53494  
    10141014            }
    10151015        }
     1016        inlineBox = 0;
    10161017        if (renderer->isBox()) {
    10171018            inlineBox = toRenderBox(renderer)->inlineBoxWrapper();
    10181019            if (!inlineBox || (caretOffset > inlineBox->caretMinOffset() && caretOffset < inlineBox->caretMaxOffset()))
    10191020                return;
    1020         } else {
     1021        } else if (node()->isContentEditable()) {
    10211022            Position pos = positionInParentBeforeNode(node()).upstream();
    10221023            pos.getInlineBoxAndOffset(DOWNSTREAM, primaryDirection, inlineBox, caretOffset);
Note: See TracChangeset for help on using the changeset viewer.