| Index: Source/core/rendering/RenderThemeChromiumSkia.cpp
|
| diff --git a/Source/core/rendering/RenderThemeChromiumSkia.cpp b/Source/core/rendering/RenderThemeChromiumSkia.cpp
|
| index ee4f442258ee6e9583db8753c60f7cdd02a9cbd6..c84506feeeaff5681793960d870dc490e01f5676 100644
|
| --- a/Source/core/rendering/RenderThemeChromiumSkia.cpp
|
| +++ b/Source/core/rendering/RenderThemeChromiumSkia.cpp
|
| @@ -223,7 +223,7 @@ IntRect RenderThemeChromiumSkia::convertToPaintingRect(RenderObject* inputRender
|
| return pixelSnappedIntRect(partRect);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintSearchFieldCancelButton(RenderObject* cancelButtonObject, const PaintInfo& paintInfo, const IntRect& r)
|
| +bool RenderThemeChromiumSkia::paintSearchFieldCancelButton(RenderObject* cancelButtonObject, PaintInfo& paintInfo, const IntRect& r)
|
| {
|
| // Get the renderer of <input> element.
|
| Node* input = cancelButtonObject->node()->shadowHost();
|
| @@ -245,7 +245,7 @@ bool RenderThemeChromiumSkia::paintSearchFieldCancelButton(RenderObject* cancelB
|
|
|
| static Image* cancelImage = Image::loadPlatformResource("searchCancel").leakRef();
|
| static Image* cancelPressedImage = Image::loadPlatformResource("searchCancelPressed").leakRef();
|
| - paintInfo.context->drawImage(isPressed(cancelButtonObject) ? cancelPressedImage : cancelImage, paintingRect);
|
| + paintInfo.getContext()->drawImage(isPressed(cancelButtonObject) ? cancelPressedImage : cancelImage, paintingRect);
|
| return false;
|
| }
|
|
|
| @@ -266,7 +266,7 @@ void RenderThemeChromiumSkia::adjustSearchFieldResultsDecorationStyle(RenderStyl
|
| style->setHeight(Length(magnifierSize, Fixed));
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintSearchFieldResultsDecoration(RenderObject* magnifierObject, const PaintInfo& paintInfo, const IntRect& r)
|
| +bool RenderThemeChromiumSkia::paintSearchFieldResultsDecoration(RenderObject* magnifierObject, PaintInfo& paintInfo, const IntRect& r)
|
| {
|
| // Get the renderer of <input> element.
|
| Node* input = magnifierObject->node()->shadowHost();
|
| @@ -287,16 +287,16 @@ bool RenderThemeChromiumSkia::paintSearchFieldResultsDecoration(RenderObject* ma
|
| IntRect paintingRect = convertToPaintingRect(inputRenderBox, magnifierObject, magnifierRect, r);
|
|
|
| static Image* magnifierImage = Image::loadPlatformResource("searchMagnifier").leakRef();
|
| - paintInfo.context->drawImage(magnifierImage, paintingRect);
|
| + paintInfo.getContext()->drawImage(magnifierImage, paintingRect);
|
| return false;
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaSliderTrack(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaSlider, object, paintInfo, rect);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaVolumeSliderTrack(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaVolumeSliderTrack(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaVolumeSlider, object, paintInfo, rect);
|
| }
|
| @@ -306,27 +306,27 @@ void RenderThemeChromiumSkia::adjustSliderThumbSize(RenderStyle* style, Element*
|
| RenderMediaControlsChromium::adjustMediaSliderThumbSize(style);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaSliderThumb(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaSliderThumb, object, paintInfo, rect);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaToggleClosedCaptionsButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
|
| +bool RenderThemeChromiumSkia::paintMediaToggleClosedCaptionsButton(RenderObject* o, PaintInfo& paintInfo, const IntRect& r)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaShowClosedCaptionsButton, o, paintInfo, r);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaVolumeSliderThumb(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaVolumeSliderThumb(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaVolumeSliderThumb, object, paintInfo, rect);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaPlayButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaPlayButton(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaPlayButton, object, paintInfo, rect);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaMuteButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaMuteButton(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaMuteButton, object, paintInfo, rect);
|
| }
|
| @@ -341,7 +341,7 @@ String RenderThemeChromiumSkia::formatMediaControlsCurrentTime(float currentTime
|
| return RenderMediaControlsChromium::formatMediaControlsCurrentTime(currentTime, duration);
|
| }
|
|
|
| -bool RenderThemeChromiumSkia::paintMediaFullscreenButton(RenderObject* object, const PaintInfo& paintInfo, const IntRect& rect)
|
| +bool RenderThemeChromiumSkia::paintMediaFullscreenButton(RenderObject* object, PaintInfo& paintInfo, const IntRect& rect)
|
| {
|
| return RenderMediaControlsChromium::paintMediaControlsPart(MediaEnterFullscreenButton, object, paintInfo, rect);
|
| }
|
| @@ -465,22 +465,22 @@ IntRect RenderThemeChromiumSkia::progressValueRectFor(RenderProgress* renderProg
|
| return renderProgress->isDeterminate() ? determinateProgressValueRectFor(renderProgress, rect) : indeterminateProgressValueRectFor(renderProgress, rect);
|
| }
|
|
|
| -RenderThemeChromiumSkia::DirectionFlippingScope::DirectionFlippingScope(RenderObject* renderer, const PaintInfo& paintInfo, const IntRect& rect)
|
| +RenderThemeChromiumSkia::DirectionFlippingScope::DirectionFlippingScope(RenderObject* renderer, PaintInfo& paintInfo, const IntRect& rect)
|
| : m_needsFlipping(!renderer->style()->isLeftToRightDirection())
|
| , m_paintInfo(paintInfo)
|
| {
|
| if (!m_needsFlipping)
|
| return;
|
| - m_paintInfo.context->save();
|
| - m_paintInfo.context->translate(2 * rect.x() + rect.width(), 0);
|
| - m_paintInfo.context->scale(FloatSize(-1, 1));
|
| + m_paintInfo.getContext()->save();
|
| + m_paintInfo.getContext()->translate(2 * rect.x() + rect.width(), 0);
|
| + m_paintInfo.getContext()->scale(FloatSize(-1, 1));
|
| }
|
|
|
| RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
|
| {
|
| if (!m_needsFlipping)
|
| return;
|
| - m_paintInfo.context->restore();
|
| + m_paintInfo.getContext()->restore();
|
| }
|
|
|
| } // namespace WebCore
|
|
|