Index: content/renderer/context_menu_params_builder.cc |
diff --git a/content/renderer/context_menu_params_builder.cc b/content/renderer/context_menu_params_builder.cc |
index f8644592b472363f6dfa7ea72bd86f367125ba6d..a7783d00a681723de11049b3e342fb0725a27a2f 100644 |
--- a/content/renderer/context_menu_params_builder.cc |
+++ b/content/renderer/context_menu_params_builder.cc |
@@ -35,11 +35,11 @@ ContextMenuParams ContextMenuParamsBuilder::Build( |
params.speech_input_enabled = data.isSpeechInputEnabled; |
params.spellcheck_enabled = data.isSpellCheckingEnabled; |
params.is_editable = data.isEditable; |
-#if defined(OS_MACOSX) |
+#if defined(OS_MACOSX) || defined(TOOLKIT_GTK) |
params.writing_direction_default = data.writingDirectionDefault; |
params.writing_direction_left_to_right = data.writingDirectionLeftToRight; |
params.writing_direction_right_to_left = data.writingDirectionRightToLeft; |
-#endif // OS_MACOSX |
+#endif // OS_MACOSX || defined(TOOLKIT_GTK) |
params.edit_flags = data.editFlags; |
params.frame_charset = data.frameEncoding.utf8(); |
params.referrer_policy = data.referrerPolicy; |