Bug 1100243 - Fix wrong log in SelectionCarets::SetEndFrameVisibility(). r=mtseng
authorTing-Yu Lin <tlin@mozilla.com>
Mon, 17 Nov 2014 00:05:00 +0100
changeset 240525 076b942c1a6e2479f0c05b506e733ea8d075eb34
parent 240524 92e947245f1de0ed1d2d41f229d64ef731dd0ea5
child 240526 28036503ada11723595b74e67843db7e6d37f664
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtseng
bugs1100243
milestone36.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 1100243 - Fix wrong log in SelectionCarets::SetEndFrameVisibility(). r=mtseng
layout/base/SelectionCarets.cpp
--- a/layout/base/SelectionCarets.cpp
+++ b/layout/base/SelectionCarets.cpp
@@ -311,17 +311,17 @@ SelectionCarets::SetStartFrameVisibility
   SetElementVisibility(element, mVisible && mStartCaretVisible);
 }
 
 void
 SelectionCarets::SetEndFrameVisibility(bool aVisible)
 {
   mEndCaretVisible = aVisible;
   SELECTIONCARETS_LOG("Set end frame visibility %s",
-                      (mStartCaretVisible ? "shown" : "hidden"));
+                      (mEndCaretVisible ? "shown" : "hidden"));
 
   dom::Element* element = mPresShell->GetSelectionCaretsEndElement();
   SetElementVisibility(element, mVisible && mEndCaretVisible);
 }
 
 void
 SelectionCarets::SetTilted(bool aIsTilt)
 {