Closed
Bug 1160566
Opened 10 years ago
Closed 10 years ago
Make FrameMetrics::mCompositionBounds private
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
Last one, time to finish this off. Note that the attached patch applies on top of the patches from bug 1160250. Try push shows a clean build:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=87ee17824b1c
Attachment #8600379 -
Flags: review?(botond)
Comment 1•10 years ago
|
||
Comment on attachment 8600379 [details] [diff] [review]
Patch
Review of attachment 8600379 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks for finishing this off!
::: gfx/layers/FrameMetrics.h
@@ +254,5 @@
> + {
> + mCompositionBounds = aCompositionBounds;
> + }
> +
> + ParentLayerRect GetCompositionBounds() const
Hmm, I noticed at some point we started writing getters that return structures by value rather than by reference-to-const (for example, GetViewport() returns by reference-to-const, but GetDisplayPort() doesn't).
I would prefer returning by reference-to-const here, and fixing the others in a follow-up.
Attachment #8600379 -
Flags: review?(botond) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Updated to return const-ref, carrying r+
Attachment #8600379 -
Attachment is obsolete: true
Attachment #8600460 -
Flags: review+
Assignee | ||
Comment 3•10 years ago
|
||
Pretty trivial change
Attachment #8600461 -
Flags: review?(botond)
Comment 4•10 years ago
|
||
Comment on attachment 8600461 [details] [diff] [review]
Part 2 - Update other getters to return const-ref
Review of attachment 8600461 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8600461 -
Flags: review?(botond) → review+
https://hg.mozilla.org/mozilla-central/rev/c780203cf304
https://hg.mozilla.org/mozilla-central/rev/bec29299cb7e
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•