Source/WebCore/ChangeLog

 12018-04-21 Dean Jackson <dino@apple.com>
 2
 3 Expose whether you've build with the Apple Internal SDK
 4 https://bugs.webkit.org/show_bug.cgi?id=184864
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Internals API to let a test know if it is running with the
 9 Apple internal SDK.
 10
 11 * testing/Internals.cpp:
 12 (WebCore::usingAppleInternalSDK const):
 13 * testing/Internals.h:
 14 * testing/Internals.idl:
 15
1162018-04-20 Nan Wang <n_wang@apple.com>
217
318 AX: AOM does not work with DOM Level 1 events

Source/WebCore/testing/Internals.cpp

@@bool Internals::isSystemPreviewImage(Element& element) const
44954495 return false;
44964496}
44974497
 4498bool usingAppleInternalSDK() const
 4499{
 4500#if USE(APPLE_INTERNAL_SDK)
 4501 return true;
 4502#else
 4503 return false;
 4504#endif
 4505}
 4506
44984507} // namespace WebCore

Source/WebCore/testing/Internals.h

@@public:
661661 bool isSystemPreviewLink(Element&) const;
662662 bool isSystemPreviewImage(Element&) const;
663663
 664 bool usingAppleInternalSDK() const;
 665
664666private:
665667 explicit Internals(Document&);
666668 Document* contextDocument() const;

Source/WebCore/testing/Internals.idl

@@enum EventThrottlingBehavior {
592592 DOMString systemPreviewRelType();
593593 boolean isSystemPreviewLink(Element element);
594594 boolean isSystemPreviewImage(Element element);
 595
 596 boolean usingAppleInternalSDK();
595597};