mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			76 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
 | 
						|
index 295dabff4be3..e27ae2342235 100644
 | 
						|
--- build/config/compiler/BUILD.gn
 | 
						|
+++ build/config/compiler/BUILD.gn
 | 
						|
@@ -152,7 +152,7 @@ declare_args() {
 | 
						|
             !use_clang_coverage && !(is_android && use_order_profiling) &&
 | 
						|
             (use_lld ||
 | 
						|
              (use_gold &&
 | 
						|
-              ((!is_android && linux_use_bundled_binutils) || is_chromeos ||
 | 
						|
+              ((!is_android && linux_use_bundled_binutils && current_cpu != "x86") || is_chromeos ||
 | 
						|
                !(current_cpu == "x86" || current_cpu == "x64"))))
 | 
						|
 }
 | 
						|
 
 | 
						|
diff --git chrome/browser/ui/libgtkui/gtk_util.cc chrome/browser/ui/libgtkui/gtk_util.cc
 | 
						|
index 96f8c0e71472..49c462b37e12 100644
 | 
						|
--- chrome/browser/ui/libgtkui/gtk_util.cc
 | 
						|
+++ chrome/browser/ui/libgtkui/gtk_util.cc
 | 
						|
@@ -237,6 +237,7 @@ float GetDeviceScaleFactor() {
 | 
						|
   return linux_ui ? linux_ui->GetDeviceScaleFactor() : 1;
 | 
						|
 }
 | 
						|
 
 | 
						|
+#if GTK_MAJOR_VERSION > 2
 | 
						|
 using GtkSetState = void (*)(GtkWidgetPath*, gint, GtkStateFlags);
 | 
						|
 PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetState>
 | 
						|
     _gtk_widget_path_iter_set_state;
 | 
						|
@@ -244,6 +245,7 @@ PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetState>
 | 
						|
 using GtkSetObjectName = void (*)(GtkWidgetPath*, gint, const char*);
 | 
						|
 PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetObjectName>
 | 
						|
     _gtk_widget_path_iter_set_object_name;
 | 
						|
+#endif
 | 
						|
 
 | 
						|
 }  // namespace
 | 
						|
 
 | 
						|
@@ -401,10 +403,12 @@ ScopedStyleContext AppendCssNodeToStyleContext(GtkStyleContext* context,
 | 
						|
           NOTREACHED();
 | 
						|
       }
 | 
						|
     } else {
 | 
						|
+#if GTK_MAJOR_VERSION > 2
 | 
						|
       static base::ProtectedMemory<GtkSetObjectName>::Initializer init(
 | 
						|
           &_gtk_widget_path_iter_set_object_name,
 | 
						|
           reinterpret_cast<GtkSetObjectName>(dlsym(
 | 
						|
               GetGtkSharedLibrary(), "gtk_widget_path_iter_set_object_name")));
 | 
						|
+#endif
 | 
						|
       switch (part_type) {
 | 
						|
         case CSS_NAME: {
 | 
						|
           if (GtkVersionCheck(3, 20)) {
 | 
						|
@@ -449,6 +453,7 @@ ScopedStyleContext AppendCssNodeToStyleContext(GtkStyleContext* context,
 | 
						|
   // widgets specially if they want to.
 | 
						|
   gtk_widget_path_iter_add_class(path, -1, "chromium");
 | 
						|
 
 | 
						|
+#if GTK_MAJOR_VERSION > 2
 | 
						|
   if (GtkVersionCheck(3, 14)) {
 | 
						|
     static base::ProtectedMemory<GtkSetState>::Initializer init(
 | 
						|
         &_gtk_widget_path_iter_set_state,
 | 
						|
@@ -457,6 +462,7 @@ ScopedStyleContext AppendCssNodeToStyleContext(GtkStyleContext* context,
 | 
						|
     DCHECK(*_gtk_widget_path_iter_set_state);
 | 
						|
     base::UnsanitizedCfiCall(_gtk_widget_path_iter_set_state)(path, -1, state);
 | 
						|
   }
 | 
						|
+#endif
 | 
						|
 
 | 
						|
   ScopedStyleContext child_context(gtk_style_context_new());
 | 
						|
   gtk_style_context_set_path(child_context, path);
 | 
						|
diff --git chrome/browser/ui/libgtkui/native_theme_gtk2.cc chrome/browser/ui/libgtkui/native_theme_gtk2.cc
 | 
						|
index b24ff4b95f97..49e80717b1d6 100644
 | 
						|
--- chrome/browser/ui/libgtkui/native_theme_gtk2.cc
 | 
						|
+++ chrome/browser/ui/libgtkui/native_theme_gtk2.cc
 | 
						|
@@ -163,6 +163,8 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
 | 
						|
       return GetBgColor(GetMenu(), NORMAL);
 | 
						|
 
 | 
						|
     // Label
 | 
						|
+    case kColorId_ActionableSubmenuVerticalSeparatorColor:
 | 
						|
+    case kColorId_TouchableMenuItemLabelColor:
 | 
						|
     case kColorId_LabelEnabledColor:
 | 
						|
       return GetTextColor(GetEntry(), NORMAL);
 | 
						|
     case kColorId_LabelDisabledColor:
 |