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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 partRect.move(offsetFromInputLayoutObject); | 127 partRect.move(offsetFromInputLayoutObject); |
128 // Account for the local drawing offset. | 128 // Account for the local drawing offset. |
129 partRect.move(localOffset.x(), localOffset.y()); | 129 partRect.move(localOffset.x(), localOffset.y()); |
130 | 130 |
131 return pixelSnappedIntRect(partRect); | 131 return pixelSnappedIntRect(partRect); |
132 } | 132 } |
133 | 133 |
134 } // namespace | 134 } // namespace |
135 | 135 |
136 ThemePainterDefault::ThemePainterDefault() | 136 ThemePainterDefault::ThemePainterDefault() |
137 : ThemePainter(nullptr) | 137 : ThemePainter() |
138 { | 138 { |
139 } | 139 } |
140 | 140 |
141 bool ThemePainterDefault::paintCheckbox(const LayoutObject& o, const PaintInfo&
i, const IntRect& rect) | 141 bool ThemePainterDefault::paintCheckbox(const LayoutObject& o, const PaintInfo&
i, const IntRect& rect) |
142 { | 142 { |
143 WebThemeEngine::ExtraParams extraParams; | 143 WebThemeEngine::ExtraParams extraParams; |
144 WebCanvas* canvas = i.context.canvas(); | 144 WebCanvas* canvas = i.context.canvas(); |
145 extraParams.button.checked = LayoutTheme::isChecked(o); | 145 extraParams.button.checked = LayoutTheme::isChecked(o); |
146 extraParams.button.indeterminate = LayoutTheme::isIndeterminate(o); | 146 extraParams.button.indeterminate = LayoutTheme::isIndeterminate(o); |
147 | 147 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 cancelButtonSize, cancelButtonSize); | 392 cancelButtonSize, cancelButtonSize); |
393 IntRect paintingRect = convertToPaintingRect(inputLayoutBox, cancelButtonObj
ect, cancelButtonRect, r); | 393 IntRect paintingRect = convertToPaintingRect(inputLayoutBox, cancelButtonObj
ect, cancelButtonRect, r); |
394 | 394 |
395 DEFINE_STATIC_REF(Image, cancelImage, (Image::loadPlatformResource("searchCa
ncel"))); | 395 DEFINE_STATIC_REF(Image, cancelImage, (Image::loadPlatformResource("searchCa
ncel"))); |
396 DEFINE_STATIC_REF(Image, cancelPressedImage, (Image::loadPlatformResource("s
earchCancelPressed"))); | 396 DEFINE_STATIC_REF(Image, cancelPressedImage, (Image::loadPlatformResource("s
earchCancelPressed"))); |
397 paintInfo.context.drawImage(LayoutTheme::isPressed(cancelButtonObject) ? can
celPressedImage : cancelImage, paintingRect); | 397 paintInfo.context.drawImage(LayoutTheme::isPressed(cancelButtonObject) ? can
celPressedImage : cancelImage, paintingRect); |
398 return false; | 398 return false; |
399 } | 399 } |
400 | 400 |
401 } // namespace blink | 401 } // namespace blink |
OLD | NEW |