mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-30 11:04:52 +01:00
cb907f3649
- Mac: Remove Carbon interpose library (see http://crbug.com/157130). - Remove unused LOGSEVERITY_ERROR_REPORT value (see http://crbug.com/352378). - CefURLRequest in the render process will now always have the UR_FLAG_REPORT_LOAD_TIMING flag set (see http://crbug.com/376025#c15). - Change CefGeolocationHandler::OnRequestGeolocationPermission return value from void to boolean. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1753 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
diff --git ThemeMac.mm ThemeMac.mm
|
|
index 4e702e1..927b2e8 100644
|
|
--- ThemeMac.mm
|
|
+++ ThemeMac.mm
|
|
@@ -472,7 +472,7 @@ static void paintButton(ControlPart part, ControlStates states, GraphicsContext*
|
|
|
|
[buttonCell drawWithFrame:NSRect(inflatedRect) inView:view];
|
|
#if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
|
|
- if (states & FocusControlState)
|
|
+ if (states & FocusState)
|
|
[buttonCell _web_drawFocusRingWithFrame:NSRect(inflatedRect) inView:view];
|
|
#endif
|
|
[buttonCell setControlView:nil];
|
|
diff --git WebCoreNSCellExtras.h WebCoreNSCellExtras.h
|
|
index 8623826..b9f683d 100644
|
|
--- WebCoreNSCellExtras.h
|
|
+++ WebCoreNSCellExtras.h
|
|
@@ -26,12 +26,12 @@
|
|
#import <AppKit/AppKit.h>
|
|
#include "platform/PlatformExport.h"
|
|
|
|
-#define BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING (!defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
|
|
+#define BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING 1
|
|
|
|
#if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
|
|
|
|
// FIXME: Might want to use this on Mac once we only support OS X 10.8+
|
|
-@interface NSCell (WebCoreFocusRingDrawing)
|
|
+PLATFORM_EXPORT @interface NSCell (WebCoreFocusRingDrawing)
|
|
- (void)_web_drawFocusRingWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
|
@end
|
|
|