Skip to content

Commit

Permalink
Bug 1047755 - Add copy constructor to ZoomConstraints in gfx/layers/F…
Browse files Browse the repository at this point in the history
…rameMetrics.h. r=botond
  • Loading branch information
waltermoz committed Aug 11, 2014
1 parent c1d4da7 commit 04cc732
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gfx/layers/FrameMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,15 @@ struct ZoomConstraints {
MOZ_COUNT_CTOR(ZoomConstraints);
}

ZoomConstraints(const ZoomConstraints& other)
: mAllowZoom(other.mAllowZoom)
, mAllowDoubleTapZoom(other.mAllowDoubleTapZoom)
, mMinZoom(other.mMinZoom)
, mMaxZoom(other.mMaxZoom)
{
MOZ_COUNT_CTOR(ZoomConstraints);
}

~ZoomConstraints()
{
MOZ_COUNT_DTOR(ZoomConstraints);
Expand Down

0 comments on commit 04cc732

Please sign in to comment.