| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 if (zoomLevel != 1.0f) { | 177 if (zoomLevel != 1.0f) { |
| 178 inflatedRect.setWidth(inflatedRect.width() / zoomLevel); | 178 inflatedRect.setWidth(inflatedRect.width() / zoomLevel); |
| 179 inflatedRect.setHeight(inflatedRect.height() / zoomLevel); | 179 inflatedRect.setHeight(inflatedRect.height() / zoomLevel); |
| 180 paintInfo.context->translate(inflatedRect.x(), inflatedRect.y()); | 180 paintInfo.context->translate(inflatedRect.x(), inflatedRect.y()); |
| 181 paintInfo.context->scale(zoomLevel, zoomLevel); | 181 paintInfo.context->scale(zoomLevel, zoomLevel); |
| 182 paintInfo.context->translate(-inflatedRect.x(), -inflatedRect.y()); | 182 paintInfo.context->translate(-inflatedRect.x(), -inflatedRect.y()); |
| 183 } | 183 } |
| 184 | 184 |
| 185 NSView *view = m_layoutTheme.documentViewFor(o); | 185 NSView *view = m_layoutTheme.documentViewFor(o); |
| 186 [popupButton drawWithFrame:inflatedRect inView:view]; | 186 [popupButton drawWithFrame:inflatedRect inView:view]; |
| 187 #if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING |
| 187 if (LayoutTheme::isFocused(o) && o->style()->outlineStyleIsAuto()) | 188 if (LayoutTheme::isFocused(o) && o->style()->outlineStyleIsAuto()) |
| 188 [popupButton cr_drawFocusRingWithFrame:inflatedRect inView:view]; | 189 [popupButton _web_drawFocusRingWithFrame:inflatedRect inView:view]; |
| 190 #endif |
| 189 [popupButton setControlView:nil]; | 191 [popupButton setControlView:nil]; |
| 190 | 192 |
| 191 return false; | 193 return false; |
| 192 } | 194 } |
| 193 | 195 |
| 194 bool ThemePainterMac::paintMeter(LayoutObject* layoutObject, const PaintInfo& pa
intInfo, const IntRect& rect) | 196 bool ThemePainterMac::paintMeter(LayoutObject* layoutObject, const PaintInfo& pa
intInfo, const IntRect& rect) |
| 195 { | 197 { |
| 196 if (!layoutObject->isMeter()) | 198 if (!layoutObject->isMeter()) |
| 197 return true; | 199 return true; |
| 198 | 200 |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 [search setSearchMenuTemplate:nil]; | 594 [search setSearchMenuTemplate:nil]; |
| 593 | 595 |
| 594 m_layoutTheme.updateActiveState([search searchButtonCell], o); | 596 m_layoutTheme.updateActiveState([search searchButtonCell], o); |
| 595 | 597 |
| 596 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d
ocumentViewFor(o)]; | 598 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d
ocumentViewFor(o)]; |
| 597 [[search searchButtonCell] setControlView:nil]; | 599 [[search searchButtonCell] setControlView:nil]; |
| 598 return false; | 600 return false; |
| 599 } | 601 } |
| 600 | 602 |
| 601 } // namespace blink | 603 } // namespace blink |
| OLD | NEW |