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)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(3 files)
1.37 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
2.99 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
4.28 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8722314 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8722316 -
Flags: review?(bobbyholley)
Comment 4•10 years ago
|
||
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+
Updated•10 years ago
|
Attachment #8722314 -
Flags: review?(bobbyholley) → review+
Comment 5•10 years ago
|
||
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+
![]() |
||
Comment 7•10 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/18a340cceaf3
https://hg.mozilla.org/mozilla-central/rev/008aa54d8df6
https://hg.mozilla.org/mozilla-central/rev/5b9d0ccdf0dd
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•