| 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 | 664 |
| 665 default: | 665 default: |
| 666 return false; | 666 return false; |
| 667 } | 667 } |
| 668 } | 668 } |
| 669 | 669 |
| 670 void RenderTheme::adjustRepaintRect(const RenderObject* o, IntRect& r) | 670 void RenderTheme::adjustRepaintRect(const RenderObject* o, IntRect& r) |
| 671 { | 671 { |
| 672 #if USE(NEW_THEME) | 672 #if USE(NEW_THEME) |
| 673 m_platformTheme->inflateControlPaintRect(o->style()->appearance(), controlSt
atesForRenderer(o), r, o->style()->effectiveZoom()); | 673 m_platformTheme->inflateControlPaintRect(o->style()->appearance(), controlSt
atesForRenderer(o), r, o->style()->effectiveZoom()); |
| 674 #else | |
| 675 UNUSED_PARAM(o); | |
| 676 UNUSED_PARAM(r); | |
| 677 #endif | 674 #endif |
| 678 } | 675 } |
| 679 | 676 |
| 680 bool RenderTheme::shouldDrawDefaultFocusRing(RenderObject* renderer) const | 677 bool RenderTheme::shouldDrawDefaultFocusRing(RenderObject* renderer) const |
| 681 { | 678 { |
| 682 if (supportsFocusRing(renderer->style())) | 679 if (supportsFocusRing(renderer->style())) |
| 683 return false; | 680 return false; |
| 684 if (!renderer->style()->hasAppearance()) | 681 if (!renderer->style()->hasAppearance()) |
| 685 return true; | 682 return true; |
| 686 Node* node = renderer->node(); | 683 Node* node = renderer->node(); |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 | 1311 |
| 1315 // padding - not honored by WinIE, needs to be removed. | 1312 // padding - not honored by WinIE, needs to be removed. |
| 1316 style->resetPadding(); | 1313 style->resetPadding(); |
| 1317 | 1314 |
| 1318 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) | 1315 // border - honored by WinIE, but looks terrible (just paints in the control
box and turns off the Windows XP theme) |
| 1319 // for now, we will not honor it. | 1316 // for now, we will not honor it. |
| 1320 style->resetBorder(); | 1317 style->resetBorder(); |
| 1321 } | 1318 } |
| 1322 | 1319 |
| 1323 } // namespace WebCore | 1320 } // namespace WebCore |
| OLD | NEW |