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

Unified Diff: third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp

Issue 1970183002: Don't use canCollapseAnonymousBlockChild() to determine whether to truncate text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Declaration soup - aka LayoutTest. Created 4 years, 7 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
Index: third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp b/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
index 44df69167b123b7c7d88b0dd6aef3714b2a13018..f2a560fc6d9aab64a448ed80e36592138ca1af19 100644
--- a/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
+++ b/third_party/WebKit/Source/core/dom/FirstLetterPseudoElement.cpp
@@ -109,7 +109,7 @@ LayoutObject* FirstLetterPseudoElement::firstLetterTextLayoutObject(const Elemen
if (!parentLayoutObject
|| !parentLayoutObject->style()->hasPseudoStyle(PseudoIdFirstLetter)
|| !canHaveGeneratedChildren(*parentLayoutObject)
- || !parentLayoutObject->canHaveFirstLineOrFirstLetterStyle())
+ || !parentLayoutObject->behavesLikeBlockContainer())
return nullptr;
// Drill down into our children and look for our first text child.

Powered by Google App Engine
This is Rietveld 408576698