Closed Bug 1160566 Opened 9 years ago Closed 9 years ago

Make FrameMetrics::mCompositionBounds private

Categories

(Core :: Panning and Zooming, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached patch Patch (obsolete) — 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 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+
Updated to return const-ref, carrying r+
Attachment #8600379 - Attachment is obsolete: true
Attachment #8600460 - Flags: review+
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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: