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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2650583003: Fix ::first-letter not to apply non-block containers (Closed)
Patch Set: Fix ListItem, add test Created 3 years, 11 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index f8b0e9a0d2faec907584622e21be33ded96b1d73..395478dc55737d8c0f4707a660978886504b7240 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -3361,6 +3361,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
bool isOriginalDisplayInlineType() const {
return isDisplayInlineType(originalDisplay());
}
+ bool isDisplayBlockContainer() const {
+ return isDisplayBlockContainer(display());
+ }
bool isDisplayFlexibleOrGridBox() const {
return isDisplayFlexibleBox(display()) || isDisplayGridBox(display());
}
@@ -3712,6 +3715,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
setVisitedLinkCaretColor, v);
}
+ static bool isDisplayBlockContainer(EDisplay display) {
+ return display == EDisplay::Block || display == EDisplay::ListItem ||
+ display == EDisplay::InlineBlock || display == EDisplay::FlowRoot ||
+ display == EDisplay::TableCell || display == EDisplay::TableCaption;
+ }
+
static bool isDisplayFlexibleBox(EDisplay display) {
return display == EDisplay::Flex || display == EDisplay::InlineFlex;
}
« 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