-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwebkit.diff
116 lines (100 loc) · 3.65 KB
/
webkit.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
diff --git a/Source/core/rendering/RenderThemeChromiumMac.mm b/Source/core/rendering/RenderThemeChromiumMac.mm
index c115c95..bba1353 100644
--- a/Source/core/rendering/RenderThemeChromiumMac.mm
+++ b/Source/core/rendering/RenderThemeChromiumMac.mm
@@ -141,11 +141,11 @@ const double progressAnimationNumFrames = 256;
@end
// Forward declare Mac SPIs.
-extern "C" {
-void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped);
-// Request for public API: rdar://13787640
-void _NSDrawCarbonThemeListBox(NSRect frame, BOOL enabled, BOOL flipped, BOOL always_yes);
-}
+// extern "C" {
+// void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped);
+// // Request for public API: rdar://13787640
+// void _NSDrawCarbonThemeListBox(NSRect frame, BOOL enabled, BOOL flipped, BOOL always_yes);
+// }
namespace blink {
@@ -700,7 +700,7 @@ bool RenderThemeChromiumMac::paintTextField(RenderObject* o, const PaintInfo& pa
// background. We need WebCore to paint styled backgrounds, so we'll use
// this AppKit SPI function instead.
if (!useNSTextFieldCell) {
- _NSDrawCarbonThemeBezel(r, isEnabled(o) && !isReadOnlyControl(o), YES);
+ //_NSDrawCarbonThemeBezel(r, isEnabled(o) && !isReadOnlyControl(o), YES);
return false;
}
#endif
@@ -781,7 +781,7 @@ bool RenderThemeChromiumMac::paintCapsLockIndicator(RenderObject*, const PaintIn
bool RenderThemeChromiumMac::paintTextArea(RenderObject* o, const PaintInfo& paintInfo, const IntRect& r)
{
LocalCurrentGraphicsContext localContext(paintInfo.context, r);
- _NSDrawCarbonThemeListBox(r, isEnabled(o) && !isReadOnlyControl(o), YES, YES);
+ //_NSDrawCarbonThemeListBox(r, isEnabled(o) && !isReadOnlyControl(o), YES, YES);
return false;
}
diff --git a/Source/platform/mac/KillRingMac.mm b/Source/platform/mac/KillRingMac.mm
index 63fd8f8..ad6b032 100644
--- a/Source/platform/mac/KillRingMac.mm
+++ b/Source/platform/mac/KillRingMac.mm
@@ -28,56 +28,57 @@
namespace blink {
-extern "C" {
+// extern "C" {
-// Kill ring calls. Would be better to use NSKillRing.h, but that's not available as API or SPI.
+// // Kill ring calls. Would be better to use NSKillRing.h, but that's not available as API or SPI.
-void _NSInitializeKillRing();
-void _NSAppendToKillRing(NSString *);
-void _NSPrependToKillRing(NSString *);
-NSString *_NSYankFromKillRing();
-void _NSNewKillRingSequence();
-void _NSSetKillRingToYankedState();
+// void _NSInitializeKillRing();
+// void _NSAppendToKillRing(NSString *);
+// void _NSPrependToKillRing(NSString *);
+// NSString *_NSYankFromKillRing();
+// void _NSNewKillRingSequence();
+// void _NSSetKillRingToYankedState();
-}
+// }
static void initializeKillRingIfNeeded()
{
static bool initializedKillRing = false;
if (!initializedKillRing) {
initializedKillRing = true;
- _NSInitializeKillRing();
+ //_NSInitializeKillRing();
}
}
void KillRing::append(const String& string)
{
initializeKillRingIfNeeded();
- _NSAppendToKillRing(string);
+ //_NSAppendToKillRing(string);
}
void KillRing::prepend(const String& string)
{
initializeKillRingIfNeeded();
- _NSPrependToKillRing(string);
+ //_NSPrependToKillRing(string);
}
String KillRing::yank()
{
initializeKillRingIfNeeded();
- return _NSYankFromKillRing();
+ //return _NSYankFromKillRing();
+ return "";
}
void KillRing::startNewSequence()
{
initializeKillRingIfNeeded();
- _NSNewKillRingSequence();
+ //_NSNewKillRingSequence();
}
void KillRing::setToYankedState()
{
initializeKillRingIfNeeded();
- _NSSetKillRingToYankedState();
+ //_NSSetKillRingToYankedState();
}
} // namespace blink