Closed Bug 1250377 Opened 10 years ago Closed 10 years ago

create a ServoStyleSet for HTML documents in content docshells

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(3 files)

Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8722313 - Flags: review?(bobbyholley)
Comment on attachment 8722313 [details] [diff] [review] Part 1: Use MOZ_STYLO environment variable to switch on Servo-backed style system. Review of attachment 8722313 [details] [diff] [review]: ----------------------------------------------------------------- r=me with that. ::: layout/base/nsPresContext.h @@ +1071,5 @@ > > + static bool StyloEnabled() > + { > + static bool enabled = PR_GetEnv("MOZ_STYLO"); > + return enabled; Please put this behind |#ifdef MOZ_STYLO|, and just return false otherwise.
Attachment #8722313 - Flags: review?(bobbyholley) → review+
Attachment #8722314 - Flags: review?(bobbyholley) → review+
Comment on attachment 8722316 [details] [diff] [review] Part 3: Create a ServoStyleSet for HTML documents in content docshells. Review of attachment 8722316 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/nsDocumentViewer.cpp @@ +2180,5 @@ > + StyleSetHandle styleSet; > + if (backendType == StyleBackendType::Gecko) { > + styleSet = new nsStyleSet; > + } else { > + styleSet = new ServoStyleSet; Can we keep the trailing (), here and above? I'd rather not change style conventions in this patch.
Attachment #8722316 - Flags: review?(bobbyholley) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: