Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 99028) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -5556,6 +5556,11 @@ |
currChild = currChild->nextSibling(); |
} else if (currChild->isReplaced() || currChild->isRenderButton() || currChild->isMenuList()) |
break; |
+ else if (currChild->style()->hasPseudoStyle(FIRST_LETTER) && currChild->canHaveChildren()) { |
+ // We found a lower-level node with first-letter, which supersedes the higher-level style |
+ firstLetterBlock = currChild; |
+ currChild = currChild->firstChild(); |
+ } |
else |
currChild = currChild->firstChild(); |
} |