Skip to content

Commit e466508

Browse files
authored
browser(webkit): fix mac&win compilation (#1856)
1 parent cf82e2c commit e466508

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1198
1+
1199

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,19 @@ index cfd5d75cfdcaac5b51dae96045903d812c033b8a..9fca8b41989737608274a2cca8fb78be
15691569
// Returns combined offset in millisecond (UTC + DST).
15701570
WTF_EXPORT_PRIVATE LocalTimeOffset calculateLocalTimeOffset(double utcInMilliseconds, TimeType = UTCTime);
15711571

1572+
diff --git a/Source/WTF/wtf/PlatformEnable.h b/Source/WTF/wtf/PlatformEnable.h
1573+
index 06b096fc9430eda6c410206bb4d19a1bd6c3636d..bc597102c661b81f35b111cc516f5e7b1bfc5526 100644
1574+
--- a/Source/WTF/wtf/PlatformEnable.h
1575+
+++ b/Source/WTF/wtf/PlatformEnable.h
1576+
@@ -401,7 +401,7 @@
1577+
#endif
1578+
1579+
#if !defined(ENABLE_ORIENTATION_EVENTS)
1580+
-#define ENABLE_ORIENTATION_EVENTS 0
1581+
+#define ENABLE_ORIENTATION_EVENTS 1
1582+
#endif
1583+
1584+
#if OS(WINDOWS)
15721585
diff --git a/Source/WTF/wtf/PlatformHave.h b/Source/WTF/wtf/PlatformHave.h
15731586
index 166a135d7e04db3a95a4315ca03669248eb4b750..fdb45ee793c52d0306ba2150d65d4c228f9064a3 100644
15741587
--- a/Source/WTF/wtf/PlatformHave.h
@@ -4376,6 +4389,19 @@ index e24fded2225f1c1918f454017566717e20484eab..30e4b7a986418c4b4f6c799b858b6082
43764389
}
43774390

43784391
void ProgressTracker::incrementProgress(unsigned long identifier, const ResourceResponse& response)
4392+
diff --git a/Source/WebCore/page/ChromeClient.h b/Source/WebCore/page/ChromeClient.h
4393+
index 4949fea85dc0178ec18984348c9e41cde3a948c6..974b1ffdc7433a86346eb73f83e41ba126dd66e8 100644
4394+
--- a/Source/WebCore/page/ChromeClient.h
4395+
+++ b/Source/WebCore/page/ChromeClient.h
4396+
@@ -270,7 +270,7 @@ public:
4397+
#endif
4398+
4399+
#if ENABLE(ORIENTATION_EVENTS)
4400+
- virtual int deviceOrientation() const = 0;
4401+
+ virtual int deviceOrientation() const { return 0; }
4402+
#endif
4403+
4404+
#if ENABLE(INPUT_TYPE_COLOR)
43794405
diff --git a/Source/WebCore/page/EventHandler.cpp b/Source/WebCore/page/EventHandler.cpp
43804406
index 5c24edc97732f1369da26b597944c3a9188560d0..79c7b66d0a035b40b08a202c70e616627979fbad 100644
43814407
--- a/Source/WebCore/page/EventHandler.cpp

0 commit comments

Comments
 (0)