Closed Bug 1407832 Opened 7 years ago Closed 7 years ago

Stylo: Flags inherited by for_inheritance are suspicious

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox56 --- disabled
firefox57 --- wontfix
firefox58 --- fixed

People

(Reporter: jryans, Assigned: emilio)

Details

Attachments

(1 file)

Regarding flags in `StyleBuilder::for_inheritance`:

(Copied from Emilio Cobos Álvarez [:emilio] in bug 1406254 comment 9)
> Last, but not least, can you file a bug on our usage of `parent.flags` in
> that function and ni? me (or assign me directly)? Some of the flags aren't
> supposed to be "inherited", like INHERITS_RESET_STYLE / INHERITS_CONTENT.
> That's fishy, but it's not a problem right now because we only use them for
> element styles. It should get fixed though.
ni? as requested.
Flags: needinfo?(emilio)
Attached patch PatchSplinter Review
Flags: needinfo?(emilio)
Attachment #8918555 - Flags: review?(cam)
Assignee: nobody → emilio
Comment on attachment 8918555 [details] [diff] [review]
Patch

Review of attachment 8918555 [details] [diff] [review]:
-----------------------------------------------------------------

::: components/style/matching.rs
@@ +365,1 @@
>              debug!(" > flags changed: {:?} != {:?}", old_values.flags, new_values.flags);

Maybe make this:

  debug!(" > inherited flags changed: {:?} != {:?}", old_values.flags.inherited(), new_values.flags.inherited());
Attachment #8918555 - Attachment is patch: true
Attachment #8918555 - Attachment mime type: text/x-github-pull-request → text/plain
Attachment #8918555 - Flags: review?(cam) → review+
This landed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: