bug 1301194 don't modify the direction when fetching a cached style context if no direction is explicitly requested r?stransky
This is important for RTL locales which are drawn with explicit direction but
measured with no direction.
MozReview-Commit-ID: C4k5vgpKggD
--- a/widget/gtk/WidgetStyleCache.h
+++ b/widget/gtk/WidgetStyleCache.h
@@ -32,17 +32,17 @@ CreateStyleForWidget(GtkWidget* aWidget,
GtkStyleContext*
CreateCSSNode(const char* aName,
GtkStyleContext* aParentStyle,
GType aType = G_TYPE_NONE);
// Callers must call ReleaseStyleContext() on the returned context.
GtkStyleContext*
ClaimStyleContext(WidgetNodeType aNodeType,
- GtkTextDirection aDirection = GTK_TEXT_DIR_LTR,
+ GtkTextDirection aDirection = GTK_TEXT_DIR_NONE,
GtkStateFlags aStateFlags = GTK_STATE_FLAG_NORMAL,
StyleFlags aFlags = NO_STYLE_FLAGS);
void
ReleaseStyleContext(GtkStyleContext* style);
void
ResetWidgetCache(void);