Closed Bug 1452534 Opened 7 years ago Closed 7 years ago

Convert InspectorUtils::IsInheritedProperty to use Stylo

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: xidorn, Assigned: xidorn)

References

Details

Attachments

(5 files)

No description provided.
Comment on attachment 8966103 [details] Bug 1452534 part 1 - Use Servo code to check whether a property is inherited. https://reviewboard.mozilla.org/r/234850/#review240466
Attachment #8966103 - Flags: review?(emilio) → review+
Attachment #8966104 - Flags: review?(emilio) → review+
Comment on attachment 8966105 [details] Bug 1452534 part 3 - Remove stylestruct_ field from CSS_PROP macro. https://reviewboard.mozilla.org/r/234854/#review240470 Nice cleanup :)
Attachment #8966105 - Flags: review?(emilio) → review+
Comment on attachment 8966107 [details] Bug 1452534 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. https://reviewboard.mozilla.org/r/234856/#review240472 ::: layout/style/ComputedStyle.h (Diff revision 1) > inline void StartBackgroundImageLoads(); > > - static bool IsReset(const nsStyleStructID aSID) { > - MOZ_ASSERT(0 <= aSID && aSID < nsStyleStructID_Length, > - "must be an inherited or reset SID"); > - return nsStyleStructID_Reset_Start <= aSID; Can we remove `_reset_start` and such?
Attachment #8966107 - Flags: review?(emilio) → review+
Comment on attachment 8966107 [details] Bug 1452534 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. https://reviewboard.mozilla.org/r/234856/#review240472 > Can we remove `_reset_start` and such? Maybe not that trivial. We still need it for `nsStyleStructID_{Inherited,Reset}_Count` which is referenced `NS_STYLE_{INHERITED,RESET}_STRUCT_MASK` we use elsewhere.
Attached file Servo PR
Pushed by xquan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9e2847e579e9 part 1 - Use Servo code to check whether a property is inherited. r=emilio https://hg.mozilla.org/integration/autoland/rev/7ce482eb39fc part 2 - Remove nsCSSProps::kSIDTable. r=emilio https://hg.mozilla.org/integration/autoland/rev/bf051d225f32 part 3 - Remove stylestruct_ field from CSS_PROP macro. r=emilio https://hg.mozilla.org/integration/autoland/rev/1e06dbb241b1 part 4 - Remove unused ComputedStyle::{IsReset,IsInherited}. r=emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: