Changeset 69447 in webkit


Ignore:
Timestamp:
Oct 9, 2010 8:17:25 AM (14 years ago)
Author:
Martin Robinson
Message:

2010-10-09 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] Slider padding translate into a larger track rect
https://bugs.webkit.org/show_bug.cgi?id=47435

Added a pixel test result for this issue.

  • platform/gtk/fast/forms/slider-padding-expected.checksum: Added.
  • platform/gtk/fast/forms/slider-padding-expected.png: Added.

2010-10-09 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] Slider padding translate into a larger track rect
https://bugs.webkit.org/show_bug.cgi?id=47435

Instead of painting the track rectangle for ranges onto the entire RenderBox
rectangle, simply paint it on the content rectangle. This prevents misrendering
sliders with padding.

  • platform/gtk/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::paintSliderTrack): Paint onto the absoluteContentRect of the slider instead of the entire area (which includes padding).
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r69443 r69447  
     12010-10-09  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Slider padding translate into a larger track rect
     6        https://bugs.webkit.org/show_bug.cgi?id=47435
     7
     8        Added a pixel test result for this issue.
     9
     10        * platform/gtk/fast/forms/slider-padding-expected.checksum: Added.
     11        * platform/gtk/fast/forms/slider-padding-expected.png: Added.
     12
    1132010-10-09  Csaba Osztrogonác  <ossy@webkit.org>
    214
  • trunk/WebCore/ChangeLog

    r69446 r69447  
     12010-10-09  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Slider padding translate into a larger track rect
     6        https://bugs.webkit.org/show_bug.cgi?id=47435
     7
     8        Instead of painting the track rectangle for ranges onto the entire RenderBox
     9        rectangle, simply paint it on the content rectangle. This prevents misrendering
     10        sliders with padding.
     11
     12        * platform/gtk/RenderThemeGtk.cpp:
     13        (WebCore::RenderThemeGtk::paintSliderTrack): Paint onto the absoluteContentRect
     14        of the slider instead of the entire area (which includes padding).
     15
    1162010-10-09  Kent Tamura  <tkent@chromium.org>
    217
  • trunk/WebCore/platform/gtk/RenderThemeGtk.cpp

    r69436 r69447  
    550550        gtkPart = MOZ_GTK_SCALE_VERTICAL;
    551551
    552     return paintRenderObject(gtkPart, object, info.context, rect);
     552    return paintRenderObject(gtkPart, object, info.context, toRenderBox(object)->absoluteContentBox());
    553553}
    554554
Note: See TracChangeset for help on using the changeset viewer.