Closed Bug 1349124 Opened 8 years ago Closed 8 years ago

Rename ServoComputedStyleValues

Categories

(Core :: DOM: Animation, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: boris, Assigned: boris)

Details

Attachments

(1 file)

According to Bug 1343753 Comment 22, we have ServoComputedValues *and* ServoComputedStyleValues, and they are not easy to be distinguished, so we should have named ServoComputedStyleValues something else like ServoComputedStylePair, ServoComputedStyleContext, ServoCurrentAndParentStyle, or something. I prefer ServoComputedStylePair.
Oh, but ServoComputedStyleContext might be better because we store parent and child, and this could be a counterpart of nsStyleContext for animation.
(In reply to Boris Chiou [:boris] from comment #1) > Oh, but ServoComputedStyleContext might be better because we store parent > and child, and this could be a counterpart of nsStyleContext for animation. Using 'StyleContext' for servo's value is somewhat misleading. Servo has StyleContext that is a global value during traversal. How about ServoComputedValuesWithParent? If it's too long, I will +1 for ServoComputedStylePair.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2) > (In reply to Boris Chiou [:boris] from comment #1) > > Oh, but ServoComputedStyleContext might be better because we store parent > > and child, and this could be a counterpart of nsStyleContext for animation. > > Using 'StyleContext' for servo's value is somewhat misleading. Servo has > StyleContext that is a global value during traversal. Oops. Wrong. StyleContext is not global.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #3) > (In reply to Hiroyuki Ikezoe (:hiro) from comment #2) > > (In reply to Boris Chiou [:boris] from comment #1) > > > Oh, but ServoComputedStyleContext might be better because we store parent > > > and child, and this could be a counterpart of nsStyleContext for animation. > > > > Using 'StyleContext' for servo's value is somewhat misleading. Servo has > > StyleContext that is a global value during traversal. > > Oops. Wrong. StyleContext is not global. OK, so is your preference still ServoComputedValuesWithParent? I'm ok to both names.
Attachment #8849452 - Flags: review?(hikezoe)
Comment on attachment 8849452 [details] Bug 1349124 - Replace ServoComputedStyleValues with ServoComputedValuesWithParent. https://reviewboard.mozilla.org/r/122218/#review124340 Thanks!
Attachment #8849452 - Flags: review?(hikezoe) → review+
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1900c9b545a2 Replace ServoComputedStyleValues with ServoComputedValuesWithParent. r=hiro
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: