| 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 | 1095 |
| 1096 return StringTruncator::centerTruncate(strToTruncate, width, font); | 1096 return StringTruncator::centerTruncate(strToTruncate, width, font); |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 NSView* FlippedView() | 1099 NSView* FlippedView() |
| 1100 { | 1100 { |
| 1101 static NSView* view = [[BlinkFlippedView alloc] init]; | 1101 static NSView* view = [[BlinkFlippedView alloc] init]; |
| 1102 return view; | 1102 return view; |
| 1103 } | 1103 } |
| 1104 | 1104 |
| 1105 LayoutTheme& LayoutTheme::theme() | 1105 LayoutTheme& LayoutTheme::nativeTheme() |
| 1106 { | 1106 { |
| 1107 DEFINE_STATIC_REF(LayoutTheme, layoutTheme, (LayoutThemeMac::create())); | 1107 DEFINE_STATIC_REF(LayoutTheme, layoutTheme, (LayoutThemeMac::create())); |
| 1108 return *layoutTheme; | 1108 return *layoutTheme; |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 PassRefPtr<LayoutTheme> LayoutThemeMac::create() | 1111 PassRefPtr<LayoutTheme> LayoutThemeMac::create() |
| 1112 { | 1112 { |
| 1113 return adoptRef(new LayoutThemeMac); | 1113 return adoptRef(new LayoutThemeMac); |
| 1114 } | 1114 } |
| 1115 | 1115 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 | 1167 |
| 1168 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const | 1168 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const |
| 1169 { | 1169 { |
| 1170 ControlPart part = style.appearance(); | 1170 ControlPart part = style.appearance(); |
| 1171 if (part == CheckboxPart || part == RadioPart) | 1171 if (part == CheckboxPart || part == RadioPart) |
| 1172 return style.effectiveZoom() != 1; | 1172 return style.effectiveZoom() != 1; |
| 1173 return false; | 1173 return false; |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 } // namespace blink | 1176 } // namespace blink |
| OLD | NEW |