| OLD | NEW |
| 1 /** | 1 /** |
| 2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 | 390 |
| 391 case SliderHorizontalPart: | 391 case SliderHorizontalPart: |
| 392 case SliderVerticalPart: | 392 case SliderVerticalPart: |
| 393 return style.boxShadow(); | 393 return style.boxShadow(); |
| 394 | 394 |
| 395 default: | 395 default: |
| 396 return false; | 396 return false; |
| 397 } | 397 } |
| 398 } | 398 } |
| 399 | 399 |
| 400 void LayoutTheme::adjustPaintInvalidationRect(const LayoutObject* o, IntRect& r) | 400 void LayoutTheme::addVisualOverflow(const LayoutObject& object, IntRect& borderB
ox) |
| 401 { | 401 { |
| 402 #if USE(NEW_THEME) | 402 #if USE(NEW_THEME) |
| 403 m_platformTheme->inflateControlPaintRect(o->style()->appearance(), controlSt
atesForLayoutObject(o), r, o->style()->effectiveZoom()); | 403 m_platformTheme->addVisualOverflow(object.style()->appearance(), controlStat
esForLayoutObject(&object), object.style()->effectiveZoom(), borderBox); |
| 404 #endif | 404 #endif |
| 405 } | 405 } |
| 406 | 406 |
| 407 bool LayoutTheme::shouldDrawDefaultFocusRing(LayoutObject* layoutObject) const | 407 bool LayoutTheme::shouldDrawDefaultFocusRing(LayoutObject* layoutObject) const |
| 408 { | 408 { |
| 409 if (supportsFocusRing(layoutObject->styleRef())) | 409 if (supportsFocusRing(layoutObject->styleRef())) |
| 410 return false; | 410 return false; |
| 411 Node* node = layoutObject->node(); | 411 Node* node = layoutObject->node(); |
| 412 if (!node) | 412 if (!node) |
| 413 return true; | 413 return true; |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 | 928 |
| 929 // padding - not honored by WinIE, needs to be removed. | 929 // padding - not honored by WinIE, needs to be removed. |
| 930 style.resetPadding(); | 930 style.resetPadding(); |
| 931 | 931 |
| 932 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 932 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
| 933 // for now, we will not honor it. | 933 // for now, we will not honor it. |
| 934 style.resetBorder(); | 934 style.resetBorder(); |
| 935 } | 935 } |
| 936 | 936 |
| 937 } // namespace blink | 937 } // namespace blink |
| OLD | NEW |