Changeset 195177 in webkit


Ignore:
Timestamp:
Jan 16, 2016 4:00:43 PM (8 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Add a couple comments to ScrollbarThemeGtk
https://bugs.webkit.org/show_bug.cgi?id=153184

Reviewed by Carlos Garcia Campos.

  • platform/gtk/ScrollbarThemeGtk.cpp:

(WebCore::ScrollbarThemeGtk::paint):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r195173 r195177  
     12016-01-16  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Add a couple comments to ScrollbarThemeGtk
     4        https://bugs.webkit.org/show_bug.cgi?id=153184
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/gtk/ScrollbarThemeGtk.cpp:
     9        (WebCore::ScrollbarThemeGtk::paint):
     10
    1112016-01-16  Andreas Kling  <akling@apple.com>
    212
  • trunk/Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp

    r194844 r195177  
    173173}
    174174
     175// The GtkStyleContext returned by this function is cached by ScrollbarThemeGtk::paint for the
     176// duration of its scope, so a different GtkStyleContext with updated theme properties will be
     177// used for each call to paint.
    175178GRefPtr<GtkStyleContext> ScrollbarThemeGtk::getOrCreateStyleContext(ScrollbarOrientation orientation)
    176179{
     
    353356        return false;
    354357
     358    // Cache a new GtkStyleContext for the duration of this scope.
    355359    TemporaryChange<GRefPtr<GtkStyleContext>> tempStyleContext(m_cachedStyleContext, getOrCreateStyleContext(scrollbar.orientation()));
    356360
Note: See TracChangeset for help on using the changeset viewer.