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

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

Issue 1956583002: Clamp Mac theme painting to reasonable large bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Integrate feedback. Created 4 years, 7 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 14 matching lines...) Expand all
25 #import "core/fileapi/FileList.h" 25 #import "core/fileapi/FileList.h"
26 #import "core/layout/LayoutProgress.h" 26 #import "core/layout/LayoutProgress.h"
27 #import "core/layout/LayoutView.h" 27 #import "core/layout/LayoutView.h"
28 #import "core/paint/MediaControlsPainter.h" 28 #import "core/paint/MediaControlsPainter.h"
29 #import "core/style/ShadowList.h" 29 #import "core/style/ShadowList.h"
30 #import "platform/LayoutTestSupport.h" 30 #import "platform/LayoutTestSupport.h"
31 #import "platform/PlatformResourceLoader.h" 31 #import "platform/PlatformResourceLoader.h"
32 #import "platform/Theme.h" 32 #import "platform/Theme.h"
33 #import "platform/graphics/BitmapImage.h" 33 #import "platform/graphics/BitmapImage.h"
34 #import "platform/mac/ColorMac.h" 34 #import "platform/mac/ColorMac.h"
35 #import "platform/mac/LocalCurrentGraphicsContext.h"
36 #import "platform/mac/ThemeMac.h" 35 #import "platform/mac/ThemeMac.h"
37 #import "platform/mac/VersionUtilMac.h" 36 #import "platform/mac/VersionUtilMac.h"
38 #import "platform/mac/WebCoreNSCellExtras.h" 37 #import "platform/mac/WebCoreNSCellExtras.h"
39 #import "platform/text/PlatformLocale.h" 38 #import "platform/text/PlatformLocale.h"
40 #import "platform/text/StringTruncator.h" 39 #import "platform/text/StringTruncator.h"
41 #import <AvailabilityMacros.h> 40 #import <AvailabilityMacros.h>
42 #import <Carbon/Carbon.h> 41 #import <Carbon/Carbon.h>
43 #import <Cocoa/Cocoa.h> 42 #import <Cocoa/Cocoa.h>
44 #import <math.h> 43 #import <math.h>
45 44
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 1104
1106 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const 1105 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const
1107 { 1106 {
1108 ControlPart part = style.appearance(); 1107 ControlPart part = style.appearance();
1109 if (part == CheckboxPart || part == RadioPart) 1108 if (part == CheckboxPart || part == RadioPart)
1110 return style.effectiveZoom() != 1; 1109 return style.effectiveZoom() != 1;
1111 return false; 1110 return false;
1112 } 1111 }
1113 1112
1114 } // namespace blink 1113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698