Closed
Bug 1422538
Opened 8 years ago
Closed 8 years ago
stylo: ServoElementSnapshot is somewhat dumb.
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla59
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(4 files)
No description provided.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 5•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8933945 [details]
Bug 1422538: Inline ServoElementSnapshot destructor.
https://reviewboard.mozilla.org/r/204880/#review211984
Attachment #8933945 -
Flags: review?(bzbarsky) → review+
Comment 6•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8933946 [details]
Bug 1422538: Inline ServoElementSnapshot::AddAttrs.
https://reviewboard.mozilla.org/r/204882/#review211988
OK, inlining this makes sense esp. given there is only one callsite (though you'd think LTO would take care of that....)
But having the code in the class decl like this is pretty hard on readability, given how long this function body is. So I'd prefer that you just mark it inline here and put the function definition at the end of this file, after the class declaration. r=me with that.
::: layout/style/ServoElementSnapshot.h:23
(Diff revision 1)
> #include "nsAtom.h"
>
> namespace mozilla {
>
> namespace dom {
> class Element;
You can take this bit out now.
Attachment #8933946 -
Flags: review?(bzbarsky) → review+
Comment 7•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8933947 [details]
Bug 1422538: Be smarter when snapshotting attributes.
https://reviewboard.mozilla.org/r/204884/#review211990
Nice! I wonder how many other uses of GetAttrNameAt could do this instead... r=me
Attachment #8933947 -
Flags: review?(bzbarsky) → review+
Comment 8•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8933948 [details]
Bug 1422538: Rename ServoElementSnapshotFlags::MaybeClass to just Class.
https://reviewboard.mozilla.org/r/204886/#review211994
Attachment #8933948 -
Flags: review?(bzbarsky) → review+
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/db63a1ad3e7d
Inline ServoElementSnapshot destructor. r=bz
https://hg.mozilla.org/integration/mozilla-inbound/rev/adb6ddd964b1
Inline ServoElementSnapshot::AddAttrs. r=bz
https://hg.mozilla.org/integration/mozilla-inbound/rev/b9ff136cf8d2
Move ServoElementSnapshot::AddAttrs outside the class declaration. r=bz
| Assignee | ||
Comment 10•8 years ago
|
||
(In reply to Pulsebot from comment #9)
> Pushed by ecoal95@gmail.com:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/db63a1ad3e7d
> Inline ServoElementSnapshot destructor. r=bz
> https://hg.mozilla.org/integration/mozilla-inbound/rev/adb6ddd964b1
> Inline ServoElementSnapshot::AddAttrs. r=bz
> https://hg.mozilla.org/integration/mozilla-inbound/rev/b9ff136cf8d2
> Move ServoElementSnapshot::AddAttrs outside the class declaration. r=bz
Hmm, the "be smarter when..." commit apparently didn't land as an individual commit, I bet I messed up when splitting the last bit (since that required servo changes and I'll land it tomorrow).
Anyway...
Comment 11•8 years ago
|
||
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f44f01cff875
Use a plain for loop instead of IntegerRange because it busts OSX builds who knows why. r=me
Comment 12•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/db63a1ad3e7d
https://hg.mozilla.org/mozilla-central/rev/adb6ddd964b1
https://hg.mozilla.org/mozilla-central/rev/b9ff136cf8d2
https://hg.mozilla.org/mozilla-central/rev/f44f01cff875
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•8 years ago
|
status-firefox57:
--- → wontfix
status-firefox58:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•