⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 109401 in webkit


Ignore:
Timestamp:
Mar 1, 2012, 12:54:43 PM (15 years ago)
Author:
cevans@google.com
Message:

Merge 108109
BUG=113707
Review URL: ​https://chromiumcodereview.appspot.com/9565026

Location:
branches/chromium/963
Files:
1 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/chromium/963/Source/WebCore/rendering/RenderObjectChildList.cpp

    r100630 r109401  
    518518                    return;
    519519                }
    520                 owner->addChild(generatedContentContainer, insertBefore);
     520
     521                // When we don't have a first child and are part of a continuation chain,
     522                // insertBefore is incorrectly set to zero above, which causes the :before
     523                // child to end up at the end of continuation chain.
     524                // See https://bugs.webkit.org/show_bug.cgi?id=78380.
     525                if (!insertBefore && type == BEFORE && owner->virtualContinuation())
     526                    owner->addChildIgnoringContinuation(generatedContentContainer, 0);
     527                else
     528                    owner->addChild(generatedContentContainer, insertBefore);
    521529            }
    522530            if (generatedContentContainer->isChildAllowed(renderer, pseudoElementStyle))
Note: See TracChangeset for help on using the changeset viewer.