| 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 24 matching lines...) Expand all Loading... |
| 35 #import "core/html/shadow/MediaControlElements.h" | 35 #import "core/html/shadow/MediaControlElements.h" |
| 36 #import "core/layout/LayoutSlider.h" | 36 #import "core/layout/LayoutSlider.h" |
| 37 #import "core/rendering/PaintInfo.h" | 37 #import "core/rendering/PaintInfo.h" |
| 38 #import "core/rendering/RenderLayer.h" | 38 #import "core/rendering/RenderLayer.h" |
| 39 #import "core/rendering/RenderMedia.h" | 39 #import "core/rendering/RenderMedia.h" |
| 40 #import "core/rendering/RenderMediaControls.h" | 40 #import "core/rendering/RenderMediaControls.h" |
| 41 #import "core/rendering/RenderMeter.h" | 41 #import "core/rendering/RenderMeter.h" |
| 42 #import "core/rendering/RenderProgress.h" | 42 #import "core/rendering/RenderProgress.h" |
| 43 #import "core/rendering/RenderView.h" | 43 #import "core/rendering/RenderView.h" |
| 44 #import "core/rendering/style/ShadowList.h" | 44 #import "core/rendering/style/ShadowList.h" |
| 45 #import "core/rendering/style/UAStyleChange.h" |
| 45 #import "platform/LayoutTestSupport.h" | 46 #import "platform/LayoutTestSupport.h" |
| 46 #import "platform/PlatformResourceLoader.h" | 47 #import "platform/PlatformResourceLoader.h" |
| 47 #import "platform/SharedBuffer.h" | 48 #import "platform/SharedBuffer.h" |
| 48 #import "platform/geometry/FloatRoundedRect.h" | 49 #import "platform/geometry/FloatRoundedRect.h" |
| 49 #import "platform/graphics/BitmapImage.h" | 50 #import "platform/graphics/BitmapImage.h" |
| 50 #import "platform/graphics/GraphicsContextStateSaver.h" | 51 #import "platform/graphics/GraphicsContextStateSaver.h" |
| 51 #import "platform/graphics/Image.h" | 52 #import "platform/graphics/Image.h" |
| 52 #import "platform/graphics/ImageBuffer.h" | 53 #import "platform/graphics/ImageBuffer.h" |
| 53 #import "platform/mac/ColorMac.h" | 54 #import "platform/mac/ColorMac.h" |
| 54 #import "platform/mac/LocalCurrentGraphicsContext.h" | 55 #import "platform/mac/LocalCurrentGraphicsContext.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 } | 463 } |
| 463 | 464 |
| 464 if (needsFallback) | 465 if (needsFallback) |
| 465 color = LayoutTheme::systemColor(cssValueId); | 466 color = LayoutTheme::systemColor(cssValueId); |
| 466 | 467 |
| 467 m_systemColorCache.set(cssValueId, color.rgb()); | 468 m_systemColorCache.set(cssValueId, color.rgb()); |
| 468 | 469 |
| 469 return color; | 470 return color; |
| 470 } | 471 } |
| 471 | 472 |
| 472 bool LayoutThemeChromiumMac::isControlStyled(const RenderStyle* style, const Cac
hedUAStyle* uaStyle) const | 473 bool LayoutThemeChromiumMac::isControlStyled(const RenderStyle* style, const UAS
tyleChange& uaStyle) const |
| 473 { | 474 { |
| 474 ASSERT(uaStyle); | |
| 475 if (style->appearance() == TextFieldPart || style->appearance() == TextAreaP
art) | 475 if (style->appearance() == TextFieldPart || style->appearance() == TextAreaP
art) |
| 476 return style->border() != uaStyle->border || style->boxShadow(); | 476 return uaStyle.borderChanged || style->boxShadow(); |
| 477 | 477 |
| 478 // FIXME: This is horrible, but there is not much else that can be done. | 478 // FIXME: This is horrible, but there is not much else that can be done. |
| 479 // Menu lists cannot draw properly when scaled. They can't really draw | 479 // Menu lists cannot draw properly when scaled. They can't really draw |
| 480 // properly when transformed either. We can't detect the transform case at | 480 // properly when transformed either. We can't detect the transform case at |
| 481 // style adjustment time so that will just have to stay broken. We can | 481 // style adjustment time so that will just have to stay broken. We can |
| 482 // however detect that we're zooming. If zooming is in effect we treat it | 482 // however detect that we're zooming. If zooming is in effect we treat it |
| 483 // like the control is styled. | 483 // like the control is styled. |
| 484 if (style->appearance() == MenulistPart && style->effectiveZoom() != 1.0f) | 484 if (style->appearance() == MenulistPart && style->effectiveZoom() != 1.0f) |
| 485 return true; | 485 return true; |
| 486 // FIXME: NSSearchFieldCell doesn't work well when scaled. | 486 // FIXME: NSSearchFieldCell doesn't work well when scaled. |
| (...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1844 | 1844 |
| 1845 bool LayoutThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1845 bool LayoutThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
| 1846 { | 1846 { |
| 1847 ControlPart part = style->appearance(); | 1847 ControlPart part = style->appearance(); |
| 1848 if (part == CheckboxPart || part == RadioPart) | 1848 if (part == CheckboxPart || part == RadioPart) |
| 1849 return style->effectiveZoom() != 1; | 1849 return style->effectiveZoom() != 1; |
| 1850 return false; | 1850 return false; |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 } // namespace blink | 1853 } // namespace blink |
| OLD | NEW |