Bug 1098558: Remove unused constant NS_STYLE_DIRECTION_INHERIT. r=smontagu
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 13 Nov 2014 15:50:39 -0800
changeset 215657 c01469b24e22d378ef1bff3fd9610c18ce79bb3a
parent 215656 ed264e327a937902f07abe524b61850d072c1843
child 215658 dae8ccc52200b44ba0bf0cb27d1cfc5cab3d0be5
push id51814
push userdholbert@mozilla.com
push dateThu, 13 Nov 2014 23:50:56 +0000
treeherdermozilla-inbound@c01469b24e22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmontagu
bugs1098558
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 1098558: Remove unused constant NS_STYLE_DIRECTION_INHERIT. r=smontagu
layout/base/nsCaret.cpp
layout/style/nsStyleConsts.h
--- a/layout/base/nsCaret.cpp
+++ b/layout/base/nsCaret.cpp
@@ -641,17 +641,16 @@ nsCaret::GetCaretFrameForNodeOffset(nsFr
   AdjustCaretFrameForLineEnd(&theFrame, &theFrameOffset);
   
   // Mamdouh : modification of the caret to work at rtl and ltr with Bidi
   //
   // Direction Style from visibility->mDirection
   // ------------------
   // NS_STYLE_DIRECTION_LTR : LTR or Default
   // NS_STYLE_DIRECTION_RTL
-  // NS_STYLE_DIRECTION_INHERIT
   if (IsBidiUI())
   {
     // If there has been a reflow, take the caret Bidi level to be the level of the current frame
     if (aBidiLevel & BIDI_LEVEL_UNDEFINED)
       aBidiLevel = NS_GET_EMBEDDING_LEVEL(theFrame);
 
     int32_t start;
     int32_t end;
--- a/layout/style/nsStyleConsts.h
+++ b/layout/style/nsStyleConsts.h
@@ -394,17 +394,16 @@ static inline mozilla::css::Side operato
 #define NS_STYLE_CURSOR_NWSE_RESIZE             33
 #define NS_STYLE_CURSOR_NS_RESIZE               34
 #define NS_STYLE_CURSOR_EW_RESIZE               35
 #define NS_STYLE_CURSOR_NONE                    36
 
 // See nsStyleVisibility
 #define NS_STYLE_DIRECTION_LTR                  0
 #define NS_STYLE_DIRECTION_RTL                  1
-#define NS_STYLE_DIRECTION_INHERIT              2
 
 // See nsStyleVisibility
 #define NS_STYLE_WRITING_MODE_HORIZONTAL_TB     0
 #define NS_STYLE_WRITING_MODE_VERTICAL_LR       1
 #define NS_STYLE_WRITING_MODE_VERTICAL_RL       2
 
 // See nsStyleDisplay
 #define NS_STYLE_DISPLAY_NONE                   0