Title: [230892] trunk/Source/WebCore
Revision
230892
Author
d...@apple.com
Date
2018-04-21 13:28:40 -0700 (Sat, 21 Apr 2018)

Log Message

Expose whether you've build with the Apple Internal SDK
https://bugs.webkit.org/show_bug.cgi?id=184864

Reviewed by Wenson Hsieh.

Internals API to let a test know if it is running with the
Apple internal SDK.

* testing/Internals.cpp:
(WebCore::usingAppleInternalSDK const):
* testing/Internals.h:
* testing/Internals.idl:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (230891 => 230892)


--- trunk/Source/WebCore/ChangeLog	2018-04-21 17:45:23 UTC (rev 230891)
+++ trunk/Source/WebCore/ChangeLog	2018-04-21 20:28:40 UTC (rev 230892)
@@ -1,3 +1,18 @@
+2018-04-21  Dean Jackson  <d...@apple.com>
+
+        Expose whether you've build with the Apple Internal SDK
+        https://bugs.webkit.org/show_bug.cgi?id=184864
+
+        Reviewed by Wenson Hsieh.
+
+        Internals API to let a test know if it is running with the
+        Apple internal SDK.
+
+        * testing/Internals.cpp:
+        (WebCore::usingAppleInternalSDK const):
+        * testing/Internals.h:
+        * testing/Internals.idl:
+
 2018-04-20  Nan Wang  <n_w...@apple.com>
 
         AX: AOM does not work with DOM Level 1 events

Modified: trunk/Source/WebCore/testing/Internals.cpp (230891 => 230892)


--- trunk/Source/WebCore/testing/Internals.cpp	2018-04-21 17:45:23 UTC (rev 230891)
+++ trunk/Source/WebCore/testing/Internals.cpp	2018-04-21 20:28:40 UTC (rev 230892)
@@ -4495,4 +4495,13 @@
     return false;
 }
 
+bool Internals::usingAppleInternalSDK() const
+{
+#if USE(APPLE_INTERNAL_SDK)
+    return true;
+#else
+    return false;
+#endif
+}
+
 } // namespace WebCore

Modified: trunk/Source/WebCore/testing/Internals.h (230891 => 230892)


--- trunk/Source/WebCore/testing/Internals.h	2018-04-21 17:45:23 UTC (rev 230891)
+++ trunk/Source/WebCore/testing/Internals.h	2018-04-21 20:28:40 UTC (rev 230892)
@@ -661,6 +661,8 @@
     bool isSystemPreviewLink(Element&) const;
     bool isSystemPreviewImage(Element&) const;
 
+    bool usingAppleInternalSDK() const;
+
 private:
     explicit Internals(Document&);
     Document* contextDocument() const;

Modified: trunk/Source/WebCore/testing/Internals.idl (230891 => 230892)


--- trunk/Source/WebCore/testing/Internals.idl	2018-04-21 17:45:23 UTC (rev 230891)
+++ trunk/Source/WebCore/testing/Internals.idl	2018-04-21 20:28:40 UTC (rev 230892)
@@ -592,4 +592,6 @@
     DOMString systemPreviewRelType();
     boolean isSystemPreviewLink(Element element);
     boolean isSystemPreviewImage(Element element);
+
+    boolean usingAppleInternalSDK();
 };
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to