[ios-simulator] API test WebKit2.DataDetectionReferenceDate timing out
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Apr 2017 07:36:05 +0000 (07:36 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Apr 2017 07:36:05 +0000 (07:36 +0000)
commit931fc8a981dd797b5d45c5182a2defbcbf65e475
tree3020828e0622d626064d1850dde33012dcff43a4
parent8b2f3da3e2dc7fe66b0e7b9c25594bc84f49cd34
[ios-simulator] API test WebKit2.DataDetectionReferenceDate timing out
https://bugs.webkit.org/show_bug.cgi?id=161967

Reviewed by Alexey Proskuryakov.

Source/WebCore:

DataDetectorsCoreSPI.h defined DDQueryOffset as a struct of two CFIndexes, which is 16 bytes
on LP64, but the struct is actually defined as two CFIndex-typed 32-bit bitfields, which is
8 bytes on LP64. This breaks the ABI on Public SDK builds when calling functions that take
or return DDQueryOffsets.

* platform/spi/cocoa/DataDetectorsCoreSPI.h: Updated the DDQueryOffset definition for
Public SDK builds, and added a static_assert to detect future size changes at compile time.

Tools:

* TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm:
(TEST): Re-enabled WebKit2.DataDetectionReferenceDate.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2Cocoa/DataDetection.mm