Closed
Bug 1139283
Opened 10 years ago
Closed 6 years ago
Move some properties out of nsStyleDisplay to remove its dependency to nsStyleVisibility
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
WONTFIX
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
27.16 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
14.74 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
1.54 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
23.34 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
8.18 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
46.86 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
As discussed in bug 1055672, several properties should be moved from nsStyleDisplay to nsStylePosition for the removal of the dependency.
The properties to be moved are:
* clip (for the rect length computation)
* transform-origin (coord)
* perspective-origin (coord)
* perspective (coord)
* transform-style (together with other transform properties)
* backface-visibility (together with other transform properties)
* will-change (interaction with transform properties)
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
After fixing assertions because of insufficient max difference:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ac118b36524c
Assignee | ||
Comment 3•10 years ago
|
||
Assignee: nobody → quanxunzhen
Attachment #8573040 -
Flags: review?(dbaron)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8573041 -
Flags: review?(dbaron)
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8573043 -
Flags: review?(dbaron)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8573046 -
Flags: review?(dbaron)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8573047 -
Flags: review?(dbaron)
Assignee | ||
Comment 8•10 years ago
|
||
One thing in this patch probably needs a little concerns which is nsIFrame::GetClipPropClipRect. I think that change should be fine, but just mention it because it is a little more than a simple replace.
Assignee | ||
Updated•10 years ago
|
Attachment #8573051 -
Flags: review?(dbaron)
Comment on attachment 8573040 [details] [diff] [review]
patch 1 - move fields, methods, constructor code and change property declaration
r=dbaron
(Not sure how useful the patch splitting is when the pieces don't compile on their own, though. You may want to merge at least some of them for landing.)
Attachment #8573040 -
Flags: review?(dbaron) → review+
Attachment #8573041 -
Flags: review?(dbaron) → review+
Comment on attachment 8573043 [details] [diff] [review]
patch 3 - fix a method in nsStyleDisplay which uses moved methods
>+ if (!aContextFrame->IsSVGText()) {
Please change this to be:
if (aContextFrame->IsSVGText()) {
return false;
}
and then unindent the rest of the function
r=dbaron with that (athough maybe this shouldn't really stay on nsStyleDisplay)
Attachment #8573043 -
Flags: review?(dbaron) → review+
Attachment #8573046 -
Flags: review?(dbaron) → review+
Attachment #8573047 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 11•10 years ago
|
||
(In reply to David Baron [:dbaron] (UTC-8) from comment #9)
> Comment on attachment 8573040 [details] [diff] [review]
> patch 1 - move fields, methods, constructor code and change property
> declaration
>
> r=dbaron
>
> (Not sure how useful the patch splitting is when the pieces don't compile on
> their own, though. You may want to merge at least some of them for landing.)
I just wanted to make it clearer for review. If every commit should compile on its own, I'll merge all of them together when landing.
Comment on attachment 8573051 [details] [diff] [review]
patch 6 - fix other property usage
In nsDisplayTransform::GetDeltaToTransformOrigin, please declare pos
where display was declared rather than lower; the other stuff below
it is also closely related to the for loop.
Same for nsDisplayTransform::GetDeltaToPerspectiveOrigin.
ApplyClipPropClipping should also lose its aDisp parameter.
r=dbaron with that
Attachment #8573051 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Assignee | ||
Comment 15•10 years ago
|
||
As inter-character ruby is not landing currently, and some new properties have been added to Display and reintroduce the dependency, I want to reopen this bug, and backout the landed patch.
If you want to back out the patch, you should do it sooner rather than later.
Flags: needinfo?(quanxunzhen)
Assignee | ||
Comment 17•10 years ago
|
||
Thanks for reminding. I'll try as soon as possible.
Assignee | ||
Comment 18•10 years ago
|
||
Flags: needinfo?(quanxunzhen)
Keywords: leave-open
Assignee | ||
Comment 19•10 years ago
|
||
As the properties from CSS Scroll Snap Points which depends on length structures have landed in nsStyleDisplay, if we want to do this again, in addition to the properties I listed in comment 0, we will also need to move all scroll-snap-* properties.
Assignee | ||
Comment 20•6 years ago
|
||
With the architecture of stylo, I think we no longer need to move properties around to remove dependencies, so closing this as WONTFIX.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•