Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Issue 2715153002: Gtk3: Refactor GtkButtonImageSource::GetImageForScale (Closed)

Created:
3 years, 9 months ago by Tom (Use chromium acct)
Modified:
3 years, 9 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gtk3: Refactor GtkButtonImageSource::GetImageForScale This CL refactors GetImageForScale() on Gtk3 so no widget gets created. Only a GtkStyleContext is needed. In addition, it adds GtkStateFlagFocused to the style context if |focus_| is true. This fixes focused button rendering on Ambiance, which doesn't use a focus rectangle, but instead changes the button's border directly. BUG=695357 R=erg@chromium.org Review-Url: https://codereview.chromium.org/2715153002 Cr-Commit-Position: refs/heads/master@{#453292} Committed: https://chromium.googlesource.com/chromium/src/+/e9b9fb0998172808d880ca208685d8007b8f5a6e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -26 lines) Patch
M chrome/browser/ui/libgtkui/gtk_ui.cc View 4 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.cc View 1 chunk +0 lines, -17 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (10 generated)
Tom (Use chromium acct)
3 years, 9 months ago (2017-02-27 17:51:28 UTC) #4
Elliot Glaysher
lgtm
3 years, 9 months ago (2017-02-27 18:18:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2715153002/1
3 years, 9 months ago (2017-02-27 19:19:52 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 19:26:39 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/e9b9fb0998172808d880ca208685...

Powered by Google App Engine
This is Rietveld 408576698