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

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

Issue 1473363003: Invalidate first line display item clients when first line style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some modifications were not saved to README.md in the previous patch Created 5 years 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 b9211d581c3ad56c6a8bcefef99d9b227ffe3e39..1b8e5efdd3932d7e15646392139d182b8723f3ad 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(FIRST_LETTER)
|| !canHaveGeneratedChildren(*parentLayoutObject)
- || !(parentLayoutObject->isLayoutBlockFlow() || parentLayoutObject->isLayoutButton()))
+ || !parentLayoutObject->canHaveFirstLineOrFirstLetterStyle())
return nullptr;
// Drill down into our children and look for our first text child.
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/first-line-hover-001.html ('k') | third_party/WebKit/Source/core/layout/LayoutBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698