Bug 1229437 followup - Fix sign-compare error in RubyColumn::Iterator on CLOSED TREE.
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 27 Jan 2016 17:15:49 +1100
changeset 281793 650a0b9d45398d7bcfa772f05862730d2b88795e
parent 281792 8773a723f7a2361313704075a1b1aba20ff9457a
child 281794 3624090bdcf26024a075f9357f76537a01e7f838
push id70928
push userxquan@mozilla.com
push dateWed, 27 Jan 2016 06:15:32 +0000
treeherdermozilla-inbound@650a0b9d4539 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1229437
milestone47.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 1229437 followup - Fix sign-compare error in RubyColumn::Iterator on CLOSED TREE.
layout/generic/RubyUtils.cpp
--- a/layout/generic/RubyUtils.cpp
+++ b/layout/generic/RubyUtils.cpp
@@ -73,17 +73,17 @@ RubyColumn::Iterator::operator*() const
 void
 RubyColumn::Iterator::SkipUntilExistingFrame()
 {
   if (mIndex == -1) {
     if (!mColumn.mBaseFrame) {
       ++mIndex;
     }
   }
-  auto numTextFrames = mColumn.mTextFrames.Length();
+  int32_t numTextFrames = mColumn.mTextFrames.Length();
   for (; mIndex < numTextFrames; ++mIndex) {
     if (mColumn.mTextFrames[mIndex]) {
       break;
     }
   }
 }
 
 RubySegmentEnumerator::RubySegmentEnumerator(nsRubyFrame* aRubyFrame)