Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.mm

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 includeFocus:(BOOL)includeFocus; 83 includeFocus:(BOOL)includeFocus;
84 @end 84 @end
85 85
86 @implementation BlinkTextFieldCell 86 @implementation BlinkTextFieldCell
87 - (CFDictionaryRef)_coreUIDrawOptionsWithFrame:(NSRect)cellFrame 87 - (CFDictionaryRef)_coreUIDrawOptionsWithFrame:(NSRect)cellFrame
88 inView:(NSView*)controlView 88 inView:(NSView*)controlView
89 includeFocus:(BOOL)includeFocus { 89 includeFocus:(BOOL)includeFocus {
90 // FIXME: This is a post-Lion-only workaround for <rdar://problem/11385461>. 90 // FIXME: This is a post-Lion-only workaround for <rdar://problem/11385461>.
91 // When that bug is resolved, we should remove this code. 91 // When that bug is resolved, we should remove this code.
92 CFMutableDictionaryRef coreUIDrawOptions = CFDictionaryCreateMutableCopy( 92 CFMutableDictionaryRef coreUIDrawOptions = CFDictionaryCreateMutableCopy(
93 NULL, 0, [super _coreUIDrawOptionsWithFrame:cellFrame 93 NULL, 0,
94 inView:controlView 94 [super _coreUIDrawOptionsWithFrame:cellFrame
95 includeFocus:includeFocus]); 95 inView:controlView
96 includeFocus:includeFocus]);
96 CFDictionarySetValue(coreUIDrawOptions, @"borders only", kCFBooleanTrue); 97 CFDictionarySetValue(coreUIDrawOptions, @"borders only", kCFBooleanTrue);
97 return (CFDictionaryRef)[NSMakeCollectable(coreUIDrawOptions) autorelease]; 98 return (CFDictionaryRef)[NSMakeCollectable(coreUIDrawOptions) autorelease];
98 } 99 }
99 @end 100 @end
100 101
101 @interface BlinkFlippedView : NSView 102 @interface BlinkFlippedView : NSView
102 @end 103 @end
103 104
104 @implementation BlinkFlippedView 105 @implementation BlinkFlippedView
105 106
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 } 1104 }
1104 1105
1105 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const { 1106 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const {
1106 ControlPart part = style.appearance(); 1107 ControlPart part = style.appearance();
1107 if (part == CheckboxPart || part == RadioPart) 1108 if (part == CheckboxPart || part == RadioPart)
1108 return style.effectiveZoom() != 1; 1109 return style.effectiveZoom() != 1;
1109 return false; 1110 return false;
1110 } 1111 }
1111 1112
1112 } // namespace blink 1113 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698