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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 color = RenderTheme::systemColor(cssValueId); | 504 color = RenderTheme::systemColor(cssValueId); |
505 | 505 |
506 m_systemColorCache.set(cssValueId, color.rgb()); | 506 m_systemColorCache.set(cssValueId, color.rgb()); |
507 | 507 |
508 return color; | 508 return color; |
509 } | 509 } |
510 | 510 |
511 bool RenderThemeChromiumMac::isControlStyled(const RenderStyle* style, const Cac
hedUAStyle* uaStyle) const | 511 bool RenderThemeChromiumMac::isControlStyled(const RenderStyle* style, const Cac
hedUAStyle* uaStyle) const |
512 { | 512 { |
513 ASSERT(uaStyle); | 513 ASSERT(uaStyle); |
514 if (style->appearance() == TextFieldPart || style->appearance() == TextAreaP
art || style->appearance() == ListboxPart) | 514 if (style->appearance() == TextFieldPart || style->appearance() == TextAreaP
art) |
515 return style->border() != uaStyle->border || style->boxShadow(); | 515 return style->border() != uaStyle->border || style->boxShadow(); |
516 | 516 |
517 // FIXME: This is horrible, but there is not much else that can be done. Me
nu lists cannot draw properly when | 517 // FIXME: This is horrible, but there is not much else that can be done. Me
nu lists cannot draw properly when |
518 // scaled. They can't really draw properly when transformed either. We can
't detect the transform case at style | 518 // scaled. They can't really draw properly when transformed either. We can
't detect the transform case at style |
519 // adjustment time so that will just have to stay broken. We can however de
tect that we're zooming. If zooming | 519 // adjustment time so that will just have to stay broken. We can however de
tect that we're zooming. If zooming |
520 // is in effect we treat it like the control is styled. | 520 // is in effect we treat it like the control is styled. |
521 if (style->appearance() == MenulistPart && style->effectiveZoom() != 1.0f) | 521 if (style->appearance() == MenulistPart && style->effectiveZoom() != 1.0f) |
522 return true; | 522 return true; |
523 // FIXME: NSSearchFieldCell doesn't work well when scaled. | 523 // FIXME: NSSearchFieldCell doesn't work well when scaled. |
524 if (style->appearance() == SearchFieldPart && style->effectiveZoom() != 1) | 524 if (style->appearance() == SearchFieldPart && style->effectiveZoom() != 1) |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 | 1904 |
1905 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1905 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
1906 { | 1906 { |
1907 ControlPart part = style->appearance(); | 1907 ControlPart part = style->appearance(); |
1908 if (part == CheckboxPart || part == RadioPart) | 1908 if (part == CheckboxPart || part == RadioPart) |
1909 return style->effectiveZoom() != 1; | 1909 return style->effectiveZoom() != 1; |
1910 return false; | 1910 return false; |
1911 } | 1911 } |
1912 | 1912 |
1913 } // namespace WebCore | 1913 } // namespace WebCore |
OLD | NEW |