From a6f0b7d1bf737f72ff4d60031f045480f302acd9 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sun, 23 Dec 2018 20:35:18 +0100 Subject: [PATCH] backport fix:export GetFgColor:3-0-x --- patches/common/chromium/.patches.yaml | 5 +++++ patches/common/chromium/libgtkui_export.patch | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/patches/common/chromium/.patches.yaml b/patches/common/chromium/.patches.yaml index a4bfac6c5..c540b13eb 100644 --- a/patches/common/chromium/.patches.yaml +++ b/patches/common/chromium/.patches.yaml @@ -447,3 +447,8 @@ patches: description: | Update sqlite api for 3.26 in //sql, //content/browser, //third_party/WebKit. Backport https://crrev.com/c/1146280/ and https://crrev.com/c/1352694/ +- + author: Lars Mueller and Sylvester Keil + file: libgtkui_export.patch + description: | + Export libgtkui symbol GetFgColor for the GN component build. diff --git a/patches/common/chromium/libgtkui_export.patch b/patches/common/chromium/libgtkui_export.patch index 9870c0eec..36c5bfc37 100644 --- a/patches/common/chromium/libgtkui_export.patch +++ b/patches/common/chromium/libgtkui_export.patch @@ -10,6 +10,15 @@ index 665ec57..4ccb088 100644 namespace aura { class Window; +@@ -177,7 +177,7 @@ void ApplyCssToContext(GtkStyleContext* context, const std::string& css); + + // Get the 'color' property from the style context created by + // GetStyleContextFromCss(|css_selector|). +-SkColor GetFgColor(const std::string& css_selector); ++LIBGTKUI_EXPORT SkColor GetFgColor(const std::string& css_selector); + + ScopedCssProvider GetCssProvider(const std::string& css); + @@ -190,7 +190,7 @@ void RenderBackground(const gfx::Size& size, // Renders a background from the style context created by // GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and