• thomasanderson's avatar
    Gtk3: Refactor GtkButtonImageSource::GetImageForScale · e9b9fb09
    thomasanderson authored
    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}
    e9b9fb09
gtk_ui.cc 36.7 KB