Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: Source/WebCore/rendering/RenderBlock.cpp

Issue 10696154: Merge 120639 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/page/animation/KeyframeAnimation.cpp ('k') | Source/WebCore/rendering/RenderInline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderBlock.cpp
===================================================================
--- Source/WebCore/rendering/RenderBlock.cpp (revision 122239)
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy)
@@ -6086,13 +6086,12 @@
firstLetter->destroy();
firstLetter = newFirstLetter;
firstLetterContainer->addChild(firstLetter, nextSibling);
- }
+ } else
+ firstLetter->setStyle(pseudoStyle);
- firstLetter->setAnimatableStyle(pseudoStyle);
-
for (RenderObject* genChild = firstLetter->firstChild(); genChild; genChild = genChild->nextSibling()) {
if (genChild->isText())
- genChild->setStyle(firstLetter->style());
+ genChild->setStyle(pseudoStyle);
}
}
@@ -6105,13 +6104,8 @@
firstLetter = new (renderArena()) RenderInline(document());
else
firstLetter = new (renderArena()) RenderBlock(document());
-
- RefPtr<RenderStyle> temporaryStyle = RenderStyle::create();
- temporaryStyle->inheritFrom(firstLetterBlock->style());
- firstLetter->setStyle(temporaryStyle);
+ firstLetter->setStyle(pseudoStyle);
firstLetterContainer->addChild(firstLetter, currentChild);
-
- firstLetter->setAnimatableStyle(pseudoStyle);
RenderText* textObj = toRenderText(currentChild);
@@ -6159,7 +6153,7 @@
// construct text fragment for the first letter
RenderTextFragment* letter =
new (renderArena()) RenderTextFragment(remainingText->node() ? remainingText->node() : remainingText->document(), oldText.get(), 0, length);
- letter->setStyle(firstLetter->style());
+ letter->setStyle(pseudoStyle);
firstLetter->addChild(letter);
textObj->destroy();
« no previous file with comments | « Source/WebCore/page/animation/KeyframeAnimation.cpp ('k') | Source/WebCore/rendering/RenderInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698