OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
5 * Copyright (C) 2008, 2009 Google Inc. | 5 * Copyright (C) 2008, 2009 Google Inc. |
6 * Copyright (C) 2009 Kenneth Rohde Christiansen | 6 * Copyright (C) 2009 Kenneth Rohde Christiansen |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 unzoomedRect.setWidth(unzoomedRect.width() / zoomLevel); | 340 unzoomedRect.setWidth(unzoomedRect.width() / zoomLevel); |
341 unzoomedRect.setHeight(unzoomedRect.height() / zoomLevel); | 341 unzoomedRect.setHeight(unzoomedRect.height() / zoomLevel); |
342 i.context.translate(unzoomedRect.x(), unzoomedRect.y()); | 342 i.context.translate(unzoomedRect.x(), unzoomedRect.y()); |
343 i.context.scale(zoomLevel, zoomLevel); | 343 i.context.scale(zoomLevel, zoomLevel); |
344 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); | 344 i.context.translate(-unzoomedRect.x(), -unzoomedRect.y()); |
345 } | 345 } |
346 | 346 |
347 Platform::current()->themeEngine()->paint( | 347 Platform::current()->themeEngine()->paint( |
348 canvas, WebThemeEngine::PartSliderTrack, getWebThemeState(o), | 348 canvas, WebThemeEngine::PartSliderTrack, getWebThemeState(o), |
349 WebRect(unzoomedRect), &extraParams); | 349 WebRect(unzoomedRect), &extraParams); |
350 | |
351 return false; | 350 return false; |
352 } | 351 } |
353 | 352 |
354 bool ThemePainterDefault::paintSliderThumb(const LayoutObject& o, | 353 bool ThemePainterDefault::paintSliderThumb(const LayoutObject& o, |
355 const PaintInfo& i, | 354 const PaintInfo& i, |
356 const IntRect& rect) { | 355 const IntRect& rect) { |
357 WebThemeEngine::ExtraParams extraParams; | 356 WebThemeEngine::ExtraParams extraParams; |
358 WebCanvas* canvas = i.context.canvas(); | 357 WebCanvas* canvas = i.context.canvas(); |
359 extraParams.slider.vertical = | 358 extraParams.slider.vertical = |
360 o.styleRef().appearance() == SliderThumbVerticalPart; | 359 o.styleRef().appearance() == SliderThumbVerticalPart; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 DEFINE_STATIC_REF(Image, cancelPressedImage, | 465 DEFINE_STATIC_REF(Image, cancelPressedImage, |
467 (Image::loadPlatformResource("searchCancelPressed"))); | 466 (Image::loadPlatformResource("searchCancelPressed"))); |
468 paintInfo.context.drawImage(LayoutTheme::isPressed(cancelButtonObject) | 467 paintInfo.context.drawImage(LayoutTheme::isPressed(cancelButtonObject) |
469 ? cancelPressedImage | 468 ? cancelPressedImage |
470 : cancelImage, | 469 : cancelImage, |
471 paintingRect); | 470 paintingRect); |
472 return false; | 471 return false; |
473 } | 472 } |
474 | 473 |
475 } // namespace blink | 474 } // namespace blink |
OLD | NEW |