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

Changeset 109403 in webkit


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

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

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

Legend:

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

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