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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 64ed7a6701663ffb1c70fde8d1096df7ebd9c3d9..04df4e8ddb7f0078263cf85711bfff7c009dbcbb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1873,7 +1873,7 @@ void LayoutObject::firstLineStyleDidChange(const ComputedStyle& oldStyle, const
// We need to invalidate all inline boxes in the first line, because they need to be
// repainted with the new style, e.g. background, font style, etc.
LayoutBlockFlow* firstLineContainer = nullptr;
- if (canHaveFirstLineOrFirstLetterStyle()) {
+ if (behavesLikeBlockContainer()) {
// This object is a LayoutBlock having PseudoIdFirstLine pseudo style changed.
firstLineContainer = toLayoutBlock(this)->nearestInnerBlockWithFirstLine();
} else if (isLayoutInline()) {
@@ -3010,7 +3010,7 @@ static PassRefPtr<ComputedStyle> firstLineStyleForCachedUncachedType(StyleCacheS
if (layoutObject->isBeforeOrAfterContent())
layoutObjectForFirstLineStyle = layoutObject->parent();
- if (layoutObjectForFirstLineStyle->canHaveFirstLineOrFirstLetterStyle()) {
+ if (layoutObjectForFirstLineStyle->behavesLikeBlockContainer()) {
if (const LayoutBlock* firstLineBlock = toLayoutBlock(layoutObjectForFirstLineStyle)->enclosingFirstLineStyleBlock()) {
if (type == Cached)
return firstLineBlock->getCachedPseudoStyle(PseudoIdFirstLine, style);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698