Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index 2604be6e70be9b2c8f0059ad47f3d9cd4ea90254..25500b89c9af5f79d9ff395c3aea7762424ecd10 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -3745,6 +3745,8 @@ void RenderBlock::updateFirstLetter() |
currChild = currChild->nextSibling(); |
} else if (currChild->isReplaced() || currChild->isRenderButton() || currChild->isMenuList()) { |
break; |
+ } else if (currChild->isFlexibleBoxIncludingDeprecated() || currChild->isRenderGrid()) { |
+ return; |
} else if (currChild->style()->hasPseudoStyle(FIRST_LETTER) && currChild->canHaveGeneratedChildren()) { |
// We found a lower-level node with first-letter, which supersedes the higher-level style |
firstLetterBlock = currChild; |
@@ -3754,7 +3756,7 @@ void RenderBlock::updateFirstLetter() |
} |
} |
- if (!currChild || !isRenderBlockFlowOrRenderButton(firstLetterBlock)) |
+ if (!currChild) |
return; |
// If the child already has style, then it has already been created, so we just want |