Changeset 73176 in webkit


Ignore:
Timestamp:
Dec 2, 2010 11:56:06 AM (13 years ago)
Author:
dimich@chromium.org
Message:

Merge 72863 - Crash when iframe transfers from one page to another and has child frames.
https://bugs.webkit.org/show_bug.cgi?id=50200

Reviewed by David Levin.

  • page/Frame.cpp:

(WebCore::Frame::transferChildFrameToNewDocument):
avoid overriding 'didTransfer' which has the result of previous check.

TBR=dimich@chromium.org
Review URL: http://codereview.chromium.org/5564003

Location:
branches/chromium/597/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chromium/597/WebCore/ChangeLog

    r73085 r73176  
    1 2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>
    2 
    3         Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.
    4 
    5         chrome.dll!WebCore::RangeBoundaryPoint::toPosition ReadAV@NULL (cf0d0f28bc56f2591cc74f71b46036ea)
    6         https://bugs.webkit.org/show_bug.cgi?id=47808
    7 
    8         The crash was caused by moveParagraphWithClones' not copying the entire paragraph
    9         when called by doApplyForSingleParagraph, which was induced by a bug in
    10         cloneParagraphUnderNewElement which ended the cloning process early when the start node
    11         and the end node didn't share the same parent node. Fixed the bug in cloneParagraphUnderNewElement
    12         by calling traverseNextSibling(outerNode) instead of nextSibling().
    13 
    14         Also added an early exit to InsertListCommand::doApply when lastSelectionRange is null.
    15 
    16         Tests: editing/execCommand/switch-multiple-list-items-crash.html
    17                editing/execCommand/switch-multiple-list-items.html
    18 
    19         * editing/CompositeEditCommand.cpp:
    20         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
    21         * editing/InsertListCommand.cpp:
    22         (WebCore::InsertListCommand::doApply):
     12010-11-29  Dmitry Titov  <dimich@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        Crash when iframe transfers from one page to another and has child frames.
     6        https://bugs.webkit.org/show_bug.cgi?id=50200
     7
     8        * page/Frame.cpp:
     9        (WebCore::Frame::transferChildFrameToNewDocument):
     10        avoid overriding 'didTransfer' which has the result of previous check.
     11
     122010-11-19  Ryosuke Niwa  <rniwa@webkit.org>
     13
     14        Reviewed by David Hyatt.
     15
     16        up arrow doesn't work with RTL text with word wrapping
     17        https://bugs.webkit.org/show_bug.cgi?id=41987
     18
     19        The bug was caused by positionForPoint's not returning the correct affinity when the x coordiate
     20        is to the left of the first line, and startOfLine's incorrectly moving position to the previous candidate.
     21
     22        Fixed the bug by returning upstream VisiblePosition in positionForPoint if the first inline text box's offset
     23        is greater than 0.  Also removed the code added by http://trac.webkit.org/changeset/23608 since this changeset
     24        does not add any test, and the problem described in the changelog reproduces regardless of the code's presence.
     25
     26        Tests: editing/selection/click-left-of-rtl-wrapping-text.html
     27               editing/selection/modify-up-on-rtl-wrapping-text.html
     28
     29        * editing/visible_units.cpp:
     30        (WebCore::startOfLine):
     31        * rendering/RenderText.cpp:
     32        (WebCore::RenderText::positionForPoint):
    2333
    24342010-11-29  Ilya Sherman  <isherman@chromium.org>
  • branches/chromium/597/WebCore/page/Frame.cpp

    r72423 r73176  
    735735
    736736    // Update the frame tree.
    737     didTransfer = newParent->tree()->transferChild(this);
     737    didTransfer = newParent->tree()->transferChild(this) || didTransfer;
    738738
    739739    // Avoid unnecessary calls to client and frame subtree if the frame ended
Note: See TracChangeset for help on using the changeset viewer.