Bug 1361659: Initialize BRFrame::mAscent. r=mats
authorEmilio Cobos Álvarez <emilio@crisal.io>
Wed, 03 May 2017 17:50:07 +0200
changeset 356372 952e377dbace3f6152febc445c940210bf225f41
parent 356371 4c74c35cc7145d61a8c27568b05820857155ea99
child 356373 6aa9b5172e880cc431b02af37a540a2fd545cead
push id31762
push userihsiao@mozilla.com
push dateThu, 04 May 2017 03:18:55 +0000
treeherdermozilla-central@4a6a71f4aa22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs1361659
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1361659: Initialize BRFrame::mAscent. r=mats MozReview-Commit-ID: 5jZJAbPb0nG Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
layout/generic/BRFrame.cpp
--- a/layout/generic/BRFrame.cpp
+++ b/layout/generic/BRFrame.cpp
@@ -60,16 +60,17 @@ public:
 
 #ifdef ACCESSIBILITY
   virtual mozilla::a11y::AccType AccessibleType() override;
 #endif
 
 protected:
   explicit BRFrame(nsStyleContext* aContext)
     : nsFrame(aContext, LayoutFrameType::Br)
+    , mAscent(NS_INTRINSIC_WIDTH_UNKNOWN)
   {}
 
   virtual ~BRFrame();
 
   nscoord mAscent;
 };
 
 } // namespace mozilla