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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); | 244 HIThemeDrawTrack(&trackInfo, 0, cgContext, kHIThemeOrientationNormal); |
245 | 245 |
246 GraphicsContextStateSaver stateSaver(paintInfo.context); | 246 GraphicsContextStateSaver stateSaver(paintInfo.context); |
247 | 247 |
248 if (!layoutProgress.styleRef().isLeftToRightDirection()) { | 248 if (!layoutProgress.styleRef().isLeftToRightDirection()) { |
249 paintInfo.context.translate(2 * inflatedRect.x() + inflatedRect.width(),
0); | 249 paintInfo.context.translate(2 * inflatedRect.x() + inflatedRect.width(),
0); |
250 paintInfo.context.scale(-1, 1); | 250 paintInfo.context.scale(-1, 1); |
251 } | 251 } |
252 | 252 |
253 if (!paintInfo.context.contextDisabled()) | 253 if (!paintInfo.context.contextDisabled()) |
254 imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(),
FloatSize(imageBuffer->size())), nullptr, SkXfermode::kSrcOver_Mode); | 254 imageBuffer->draw(paintInfo.context, FloatRect(inflatedRect.location(),
FloatSize(imageBuffer->size())), nullptr, SkXfermode::kSrcOver_Mode, nullptr); /
/ FIXME: not color corect. |
255 return false; | 255 return false; |
256 } | 256 } |
257 | 257 |
258 bool ThemePainterMac::paintMenuListButton(const LayoutObject& o, const PaintInfo
& paintInfo, const IntRect& r) | 258 bool ThemePainterMac::paintMenuListButton(const LayoutObject& o, const PaintInfo
& paintInfo, const IntRect& r) |
259 { | 259 { |
260 IntRect bounds = IntRect(r.x() + o.styleRef().borderLeftWidth(), | 260 IntRect bounds = IntRect(r.x() + o.styleRef().borderLeftWidth(), |
261 r.y() + o.styleRef().borderTopWidth(), | 261 r.y() + o.styleRef().borderTopWidth(), |
262 r.width() - o.styleRef().borderLeftWidth() - o.styl
eRef().borderRightWidth(), | 262 r.width() - o.styleRef().borderLeftWidth() - o.styl
eRef().borderRightWidth(), |
263 r.height() - o.styleRef().borderTopWidth() - o.styl
eRef().borderBottomWidth()); | 263 r.height() - o.styleRef().borderTopWidth() - o.styl
eRef().borderBottomWidth()); |
264 // Since we actually know the size of the control here, we restrict the font | 264 // Since we actually know the size of the control here, we restrict the font |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 [search setSearchMenuTemplate:nil]; | 586 [search setSearchMenuTemplate:nil]; |
587 | 587 |
588 m_layoutTheme.updateActiveState([search searchButtonCell], o); | 588 m_layoutTheme.updateActiveState([search searchButtonCell], o); |
589 | 589 |
590 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d
ocumentViewFor(o)]; | 590 [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.d
ocumentViewFor(o)]; |
591 [[search searchButtonCell] setControlView:nil]; | 591 [[search searchButtonCell] setControlView:nil]; |
592 return false; | 592 return false; |
593 } | 593 } |
594 | 594 |
595 } // namespace blink | 595 } // namespace blink |
OLD | NEW |