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

Issue 2439503002: Add parsing support for display: contents, and minimum behavior similar to display: none (Closed)

Created:
4 years, 2 months ago by ecoal95
Modified:
4 years, 1 month ago
CC:
chromium-reviews, devtools-reviews_chromium.org, caseq+blink_chromium.org, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, kozyatinskiy+blink_chromium.org, blink-reviews-layout_chromium.org, pfeldman, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add parsing support for display: contents, and minimum behavior similar to display: none The following commit adds parsing for the display: contents value, gated after a runtime enabled feature, and adds the basic code for display: contents elements to not generate a LayoutObject. BUG=593328

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add parsing support for display: contents, and minimum behavior similar to display: none #

Total comments: 1

Messages

Total messages: 25 (9 generated)
svillar
lgtm, but let's wait for the intent to implement before landing
4 years, 2 months ago (2016-10-19 17:58:13 UTC) #2
jfernandez
The change looks fine, but perhaps we should add some tests for the parsing logic, ...
4 years, 2 months ago (2016-10-19 20:53:08 UTC) #4
eae
LGTM
4 years, 2 months ago (2016-10-19 21:58:38 UTC) #5
rune
This CL needs parser tests. You need to send an intent to implement, and preferably ...
4 years, 2 months ago (2016-10-19 22:30:35 UTC) #7
rune
https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode191 third_party/WebKit/Source/core/layout/LayoutObject.cpp:191: case EDisplay::Contents: This is probably correct, but it would ...
4 years, 2 months ago (2016-10-19 22:33:43 UTC) #8
eae
As rune and jfernandez said please send the intent and respond to comments prior to ...
4 years, 2 months ago (2016-10-19 23:25:50 UTC) #9
Manuel Rego
So yeah this was just a first CL starting to explore the thing. And I ...
4 years, 2 months ago (2016-10-20 07:33:30 UTC) #10
emilio
On 2016/10/19 22:30:35, rune wrote: > This CL needs parser tests. Right, I will publish ...
4 years, 2 months ago (2016-10-20 11:11:52 UTC) #11
emilio
https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode191 third_party/WebKit/Source/core/layout/LayoutObject.cpp:191: case EDisplay::Contents: On 2016/10/19 22:33:43, rune wrote: > This ...
4 years, 2 months ago (2016-10-20 11:12:40 UTC) #13
rune
On 2016/10/20 11:12:40, emilio wrote: > https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp > File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): > > https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode191 > ...
4 years, 2 months ago (2016-10-21 08:05:49 UTC) #14
rune
On 2016/10/21 08:05:49, rune wrote: > On 2016/10/20 11:12:40, emilio wrote: > > > https://codereview.chromium.org/2439503002/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp ...
4 years, 2 months ago (2016-10-21 08:16:51 UTC) #15
emilio
On 2016/10/21 08:16:51, rune wrote: > As mentioned in the blink-dev thread, I'm not sure ...
4 years, 2 months ago (2016-10-21 13:26:03 UTC) #16
rune
lgtm
4 years, 2 months ago (2016-10-21 13:35:35 UTC) #17
Manuel Rego
This is just a suggestion but I'd use a different folder for the tests. Instead ...
4 years, 2 months ago (2016-10-21 22:10:41 UTC) #22
Manuel Rego
Last, as we've reported #657748 as tracking bug, it would be probably better to link ...
4 years, 2 months ago (2016-10-21 22:15:13 UTC) #23
emilio
4 years, 2 months ago (2016-10-22 02:16:05 UTC) #24
On 2016/10/21 22:10:41, Manuel Rego wrote:
> This is just a suggestion but I'd use a different folder
> for the tests.
> 
> Instead of:
> * css-display-3/display-contents/display-contents-set-get.html

I used css-display-3/display-contents-set-get.html to keep it
consistent with the CSSWG's convention:

https://github.com/w3c/csswg-test/tree/master/css-display-3 

> BTW, regarding the error in the presubmit bot
> it's because you're not using your @igalia.com account.
> You should upload a new CL using your @igalia.com,
> as we've a wildcard in AUTHORS file and a corporate CLA
> already in place.

https://codereview.chromium.org/2443693003

>
https://codereview.chromium.org/2439503002/diff/20001/third_party/WebKit/Sour...
> third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in:263:
> SendBeaconThrowForBlobWithNonSimpleType status=experimental
> Nit: This change is not needed.

Good call, reverted, though trailing newline is in every other place.

Also added the proper BUG= and TEST= in the new CL.

Sorry for the noise everyone else :)

Powered by Google App Engine
This is Rietveld 408576698