Changeset 83097 in webkit


Ignore:
Timestamp:
Apr 6, 2011 1:55:17 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-06 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r83039.
http://trac.webkit.org/changeset/83039
https://bugs.webkit.org/show_bug.cgi?id=57978

introduced a new regression in conjunction to
ReplaceSelectionCommand (Requested by rniwa on #webkit).

  • editing/inserting/insert-paragraph-separator-tab-span-expected.txt: Removed.
  • editing/inserting/insert-paragraph-separator-tab-span.html: Removed.

2011-04-06 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r83039.
http://trac.webkit.org/changeset/83039
https://bugs.webkit.org/show_bug.cgi?id=57978

introduced a new regression in conjunction to
ReplaceSelectionCommand (Requested by rniwa on #webkit).

  • editing/EditingStyle.cpp: (WebCore::EditingStyle::init):
  • editing/InsertParagraphSeparatorCommand.cpp: (WebCore::InsertParagraphSeparatorCommand::doApply):
Location:
trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83096 r83097  
     12011-04-06  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r83039.
     4        http://trac.webkit.org/changeset/83039
     5        https://bugs.webkit.org/show_bug.cgi?id=57978
     6
     7        introduced a new regression in conjunction to
     8        ReplaceSelectionCommand (Requested by rniwa on #webkit).
     9
     10        * editing/inserting/insert-paragraph-separator-tab-span-expected.txt: Removed.
     11        * editing/inserting/insert-paragraph-separator-tab-span.html: Removed.
     12
    1132011-04-06  Naoki Takano  <takano.naoki@gmail.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r83096 r83097  
     12011-04-06  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r83039.
     4        http://trac.webkit.org/changeset/83039
     5        https://bugs.webkit.org/show_bug.cgi?id=57978
     6
     7        introduced a new regression in conjunction to
     8        ReplaceSelectionCommand (Requested by rniwa on #webkit).
     9
     10        * editing/EditingStyle.cpp:
     11        (WebCore::EditingStyle::init):
     12        * editing/InsertParagraphSeparatorCommand.cpp:
     13        (WebCore::InsertParagraphSeparatorCommand::doApply):
     14
    1152011-04-06  Naoki Takano  <takano.naoki@gmail.com>
    216
  • trunk/Source/WebCore/editing/EditingStyle.cpp

    r83039 r83097  
    301301void EditingStyle::init(Node* node, PropertiesToInclude propertiesToInclude)
    302302{
    303     if (isTabSpanTextNode(node))
    304         node = tabSpanNode(node)->parentNode();
    305     else if (isTabSpanNode(node))
    306         node = node->parentNode();
    307 
    308303    RefPtr<CSSComputedStyleDeclaration> computedStyleAtPosition = computedStyle(node);
    309304    m_mutableStyle = propertiesToInclude == AllProperties && computedStyleAtPosition ? computedStyleAtPosition->copy() : editingStyleFromComputedStyle(computedStyleAtPosition);
  • trunk/Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp

    r83039 r83097  
    240240       
    241241        Vector<Element*> ancestors;
    242         getAncestorsInsideBlock(positionBeforeTabSpan(insertionPosition).deprecatedNode(), startBlock, ancestors);     
     242        getAncestorsInsideBlock(insertionPosition.deprecatedNode(), startBlock, ancestors);     
    243243        RefPtr<Element> parent = cloneHierarchyUnderNewBlock(ancestors, blockToInsert);
    244244       
     
    255255    if (isFirstInBlock || !inSameBlock(visiblePos, visiblePos.previous())) {
    256256        Node *refNode;
    257        
    258         insertionPosition = positionBeforeTabSpan(insertionPosition);
    259 
    260257        if (isFirstInBlock && !nestNewBlock)
    261258            refNode = startBlock;
     
    274271
    275272        Vector<Element*> ancestors;
    276         getAncestorsInsideBlock(positionAvoidingSpecialElementBoundary(positionBeforeTabSpan(insertionPosition)).deprecatedNode(), startBlock, ancestors);
     273        getAncestorsInsideBlock(positionAvoidingSpecialElementBoundary(insertionPosition).deprecatedNode(), startBlock, ancestors);
    277274       
    278275        appendBlockPlaceholder(cloneHierarchyUnderNewBlock(ancestors, blockToInsert));
     
    307304    // Build up list of ancestors in between the start node and the start block.
    308305    Vector<Element*> ancestors;
    309     getAncestorsInsideBlock(positionBeforeTabSpan(insertionPosition).deprecatedNode(), startBlock, ancestors);
     306    getAncestorsInsideBlock(insertionPosition.deprecatedNode(), startBlock, ancestors);
    310307
    311308    // Make sure we do not cause a rendered space to become unrendered.
Note: See TracChangeset for help on using the changeset viewer.