Skip to content

Commit 242c366

Browse files
authored
browser(webkit): fix compilation when orientation events are disabled (#1970)
1 parent 7afceeb commit 242c366

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1209
1+
1210

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ index b038a1879c043aa17dae97425693f29be42e3258..d60716b837663004675ffd90bceede4c
30733073

30743074
} // namespace WebCore
30753075
diff --git a/Source/WebCore/inspector/agents/InspectorPageAgent.cpp b/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
3076-
index 3e8680e1df15245df250aa8e52c3126935832037..6ce143783b7f337e0df356ea58aead5a1f1da7e8 100644
3076+
index 3e8680e1df15245df250aa8e52c3126935832037..aa712305c6eeb786445b4953a55005c670a0c1a2 100644
30773077
--- a/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
30783078
+++ b/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
30793079
@@ -32,6 +32,8 @@
@@ -3396,7 +3396,7 @@ index 3e8680e1df15245df250aa8e52c3126935832037..6ce143783b7f337e0df356ea58aead5a
33963396
void InspectorPageAgent::archive(ErrorString& errorString, String* data)
33973397
{
33983398
#if ENABLE(WEB_ARCHIVE) && USE(CF)
3399-
@@ -1048,4 +1173,538 @@ void InspectorPageAgent::archive(ErrorString& errorString, String* data)
3399+
@@ -1048,4 +1173,543 @@ void InspectorPageAgent::archive(ErrorString& errorString, String* data)
34003400
#endif
34013401
}
34023402

@@ -3926,12 +3926,17 @@ index 3e8680e1df15245df250aa8e52c3126935832037..6ce143783b7f337e0df356ea58aead5a
39263926
+ m_inspectedPage.setOverrideScreenSize(size);
39273927
+}
39283928
+
3929-
+void InspectorPageAgent::setOrientationOverride(Inspector::ErrorString&, const int* angle)
3929+
+void InspectorPageAgent::setOrientationOverride(Inspector::ErrorString& errorString, const int* angle)
39303930
+{
3931+
+#if ENABLE(ORIENTATION_EVENTS)
3932+
+ UNUSED_PARAM(errorString);
39313933
+ Optional<int> orientation;
39323934
+ if (angle)
39333935
+ orientation = *angle;
39343936
+ m_inspectedPage.setOverrideOrientation(orientation);
3937+
+#else
3938+
+ errorString = "Orientation events are disabled in this build";
3939+
+#endif
39353940
+}
39363941
+
39373942
} // namespace WebCore

0 commit comments

Comments
 (0)