Bug 149439

Summary: Shadow DOM: Implement display: contents for slots
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dbates, eoconnor, koivisto, mike, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 148695    
Attachments:
Description Flags
patch
none
patch rniwa: review+

Ryosuke Niwa
Reported 2015-09-21 18:14:06 PDT
The slot elements should have the default style rule of "display: contents".
Attachments
patch (18.71 KB, patch)
2016-04-06 10:12 PDT, Antti Koivisto
no flags
patch (18.72 KB, patch)
2016-04-06 10:45 PDT, Antti Koivisto
rniwa: review+
Ryosuke Niwa
Comment 1 2015-09-21 18:14:28 PDT
Antti Koivisto
Comment 2 2016-04-06 10:12:16 PDT
WebKit Commit Bot
Comment 3 2016-04-06 10:13:33 PDT
Attachment 275779 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/style/RenderStyleConstants.h:566: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Antti Koivisto
Comment 4 2016-04-06 10:45:30 PDT
WebKit Commit Bot
Comment 5 2016-04-06 10:47:33 PDT
Attachment 275782 [details] did not pass style-queue: ERROR: Source/WebCore/rendering/style/RenderStyleConstants.h:566: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 1 in 16 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 6 2016-04-06 15:00:21 PDT
Comment on attachment 275782 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=275782&action=review > Source/WebCore/dom/ElementRareData.h:132 > + unsigned m_hasDisplayContents : 1; It's unfortunate that we have to use rare data for this. It's interesting that we have bit flags about m_childrenAffectedByHover and m_childrenAffectedByLastChildRules when there are three node flags of a similar stuff: ChildrenAffectedByFirstChildRulesFlag = 1 << 25, ChildrenAffectedByLastChildRulesFlag = 1 << 26, ChildrenAffectedByHoverRulesFlag = 1 << 27, perhaps we need to re-think about these bit flags...
Antti Koivisto
Comment 7 2016-04-07 02:13:54 PDT
> It's interesting that we have bit flags about m_childrenAffectedByHover and > m_childrenAffectedByLastChildRules > when there are three node flags of a similar stuff: > ChildrenAffectedByFirstChildRulesFlag = 1 << 25, > ChildrenAffectedByLastChildRulesFlag = 1 << 26, > ChildrenAffectedByHoverRulesFlag = 1 << 27, > perhaps we need to re-think about these bit flags... I think these are assumed to be more common. I'd like to move all style invalidation flags to a separate structure and out from Nodes themselves. They are not hot enough that we couldn't afford hash lookups.
Antti Koivisto
Comment 8 2016-04-07 03:29:55 PDT
Note You need to log in before you can comment on or make changes to this bug.