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

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

Issue 2684833003: Disable display: contents in SVG. (Closed)
Patch Set: Make display: contents act as an inline when it has a layout box, and ignore display: contents in S… Created 3 years, 10 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index df10f0186e3dbde0e5ff054e2a3df995e4989d32..f41c77cea76e9b8568b017c0b5d5f12bf73c8f7c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -3709,7 +3709,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
static bool isDisplayInlineType(EDisplay display) {
- return display == EDisplay::Inline || isDisplayReplacedType(display);
+ return display == EDisplay::Inline || display == EDisplay::Contents ||
+ isDisplayReplacedType(display);
rune 2017/02/09 09:41:10 display:contents is neither an inline, nor block t
emilio 2017/02/09 11:49:37 Replaced content was ignored in that CL, but actua
}
static bool isDisplayTableType(EDisplay display) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698