Changeset 98520 in webkit


Ignore:
Timestamp:
Oct 26, 2011, 2:41:01 PM (13 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/10350775> REGRESSION (r97032): Slider thumb is not drawn
https://bugs.webkit.org/show_bug.cgi?id=70891

Reviewed by Anders Carlsson.

  • platform/mac/ThemeMac.mm:

(WebCore::ThemeMac::ensuredView): Set the WebCoreFlippedView’s size, because NSSliderCell
always shrinks the slider thumb to fit in the control view’s bounds.

  • rendering/RenderThemeMac.mm:

(WebCore::RenderThemeMac::paintSliderThumb): Removed workaround code no longer needed after
r97032.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r98512 r98520  
     12011-10-26  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/10350775> REGRESSION (r97032): Slider thumb is not drawn
     4        https://bugs.webkit.org/show_bug.cgi?id=70891
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * platform/mac/ThemeMac.mm:
     9        (WebCore::ThemeMac::ensuredView): Set the WebCoreFlippedView’s size, because NSSliderCell
     10        always shrinks the slider thumb to fit in the control view’s bounds.
     11        * rendering/RenderThemeMac.mm:
     12        (WebCore::RenderThemeMac::paintSliderThumb): Removed workaround code no longer needed after
     13        r97032.
     14
    1152011-10-26  Chris Rogers  <crogers@google.com>
    216
  • trunk/Source/WebCore/platform/mac/ThemeMac.mm

    r97032 r98520  
    558558    // Use a fake flipped view.
    559559    static NSView *flippedView = [[WebCoreFlippedView alloc] init];
    560    
     560    [flippedView setFrameSize:scrollView->contentsSize()];
     561
    561562    return flippedView;
    562563}
  • trunk/Source/WebCore/rendering/RenderThemeMac.mm

    r96547 r98520  
    13951395        paintInfo.context->translate(-unzoomedRect.x(), -unzoomedRect.y());
    13961396    }
    1397    
    1398 #if PLATFORM(MAC)
    1399     // Workaround for <rdar://problem/9421781>.
    1400     if (!o->view()->frameView()->documentView()) {
    1401         paintInfo.context->translate(0, unzoomedRect.y());
    1402         paintInfo.context->scale(FloatSize(1, -1));
    1403         paintInfo.context->translate(0, -(unzoomedRect.y() + unzoomedRect.height()));
    1404     }
    1405 #elif PLATFORM(CHROMIUM)
    1406     paintInfo.context->translate(0, unzoomedRect.y());
    1407     paintInfo.context->scale(FloatSize(1, -1));
    1408     paintInfo.context->translate(0, -(unzoomedRect.y() + unzoomedRect.height()));
    1409 #endif
    1410    
     1397
    14111398    [sliderThumbCell drawInteriorWithFrame:unzoomedRect inView:documentViewFor(o)];
    14121399    [sliderThumbCell setControlView:nil];
Note: See TracChangeset for help on using the changeset viewer.