| 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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 973 | 973 | 
| 974   return m_search.get(); | 974   return m_search.get(); | 
| 975 } | 975 } | 
| 976 | 976 | 
| 977 NSTextFieldCell* LayoutThemeMac::textField() const { | 977 NSTextFieldCell* LayoutThemeMac::textField() const { | 
| 978   if (!m_textField) { | 978   if (!m_textField) { | 
| 979     m_textField.adoptNS([[BlinkTextFieldCell alloc] initTextCell:@""]); | 979     m_textField.adoptNS([[BlinkTextFieldCell alloc] initTextCell:@""]); | 
| 980     [m_textField.get() setBezeled:YES]; | 980     [m_textField.get() setBezeled:YES]; | 
| 981     [m_textField.get() setEditable:YES]; | 981     [m_textField.get() setEditable:YES]; | 
| 982     [m_textField.get() setFocusRingType:NSFocusRingTypeExterior]; | 982     [m_textField.get() setFocusRingType:NSFocusRingTypeExterior]; | 
| 983 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 |  | 
| 984     [m_textField.get() setDrawsBackground:YES]; | 983     [m_textField.get() setDrawsBackground:YES]; | 
| 985     [m_textField.get() setBackgroundColor:[NSColor whiteColor]]; | 984     [m_textField.get() setBackgroundColor:[NSColor whiteColor]]; | 
| 986 #else |  | 
| 987     // Post-Lion, Blink can be in charge of paintinng the background |  | 
| 988     // thanks to the workaround in place for <rdar://problem/11385461>, |  | 
| 989     // which is implemented above as _coreUIDrawOptionsWithFrame. |  | 
| 990     [m_textField.get() setDrawsBackground:NO]; |  | 
| 991 #endif |  | 
| 992   } | 985   } | 
| 993 | 986 | 
| 994   return m_textField.get(); | 987   return m_textField.get(); | 
| 995 } | 988 } | 
| 996 | 989 | 
| 997 String LayoutThemeMac::fileListNameForWidth(Locale& locale, | 990 String LayoutThemeMac::fileListNameForWidth(Locale& locale, | 
| 998                                             const FileList* fileList, | 991                                             const FileList* fileList, | 
| 999                                             const Font& font, | 992                                             const Font& font, | 
| 1000                                             int width) const { | 993                                             int width) const { | 
| 1001   if (width <= 0) | 994   if (width <= 0) | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1108 } | 1101 } | 
| 1109 | 1102 | 
| 1110 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { | 1103 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { | 
| 1111   ControlPart part = style.appearance(); | 1104   ControlPart part = style.appearance(); | 
| 1112   if (part == CheckboxPart || part == RadioPart) | 1105   if (part == CheckboxPart || part == RadioPart) | 
| 1113     return style.effectiveZoom() != 1; | 1106     return style.effectiveZoom() != 1; | 
| 1114   return false; | 1107   return false; | 
| 1115 } | 1108 } | 
| 1116 | 1109 | 
| 1117 }  // namespace blink | 1110 }  // namespace blink | 
| OLD | NEW | 
|---|