Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
REGRESSION (r264925): run-safari --debug no longer works
https://bugs.webkit.org/show_bug.cgi?id=214947 <rdar://problem/66297850> Reviewed by Darin Adler. Removing these APIs in WebKit caused older versions of Safari to break. We should add back in empty functions to make this work. No new tests. Manually verified this fix. * Shared/API/c/WKRenderLayer.cpp: Added. (WKRenderLayerGetTypeID): (WKRenderLayerGetRenderer): (WKRenderLayerCopyRendererName): (WKRenderLayerCopyElementTagName): (WKRenderLayerCopyElementID): (WKRenderLayerGetElementClassNames): (WKRenderLayerGetAbsoluteBounds): (WKRenderLayerIsClipping): (WKRenderLayerIsClipped): (WKRenderLayerIsReflection): (WKRenderLayerGetCompositingLayerType): (WKRenderLayerGetBackingStoreMemoryEstimate): (WKRenderLayerGetNegativeZOrderList): (WKRenderLayerGetNormalFlowList): (WKRenderLayerGetPositiveZOrderList): (WKRenderLayerGetFrameContentsLayer): * Shared/API/c/WKRenderLayer.h: Added. * Shared/API/c/WKRenderObject.cpp: Added. (WKRenderObjectGetTypeID): (WKRenderObjectCopyName): (WKRenderObjectCopyTextSnippet): (WKRenderObjectGetTextLength): (WKRenderObjectCopyElementTagName): (WKRenderObjectCopyElementID): (WKRenderObjectGetElementClassNames): (WKRenderObjectGetAbsolutePosition): (WKRenderObjectGetFrameRect): (WKRenderObjectGetChildren): * Shared/API/c/WKRenderObject.h: Added. * Sources.txt: * WebKit.xcodeproj/project.pbxproj: * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageCopyRenderTree): (WKBundlePageCopyRenderLayerTree): * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h: Canonical link: https://commits.webkit.org/227785@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
354 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/* | ||
* Copyright (C) 2012-2020 Apple Inc. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | ||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||
* THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#include "config.h" | ||
#include "WKRenderLayer.h" | ||
|
||
#include "APIArray.h" | ||
#include "WKAPICast.h" | ||
|
||
// These functions should be kept around for compatibility with SafariForWebKitDevelopment. | ||
void WKRenderLayerGetTypeID() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetRenderer() | ||
{ | ||
} | ||
|
||
void WKRenderLayerCopyRendererName() | ||
{ | ||
} | ||
|
||
void WKRenderLayerCopyElementTagName() | ||
{ | ||
} | ||
|
||
void WKRenderLayerCopyElementID() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetElementClassNames() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetAbsoluteBounds() | ||
{ | ||
} | ||
|
||
void WKRenderLayerIsClipping() | ||
{ | ||
} | ||
|
||
void WKRenderLayerIsClipped() | ||
{ | ||
} | ||
|
||
void WKRenderLayerIsReflection() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetCompositingLayerType() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetBackingStoreMemoryEstimate() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetNegativeZOrderList() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetNormalFlowList() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetPositiveZOrderList() | ||
{ | ||
} | ||
|
||
void WKRenderLayerGetFrameContentsLayer() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* Copyright (C) 2012-2020 Apple Inc. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | ||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||
* THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <WebKit/WKBase.h> | ||
#include <WebKit/WKGeometry.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
WK_EXPORT void WKRenderLayerGetTypeID(void); | ||
|
||
WK_EXPORT void WKRenderLayerGetRenderer(void); | ||
|
||
WK_EXPORT void WKRenderLayerCopyRendererName(void); | ||
|
||
WK_EXPORT void WKRenderLayerCopyElementTagName(void); | ||
WK_EXPORT void WKRenderLayerCopyElementID(void); | ||
WK_EXPORT void WKRenderLayerGetElementClassNames(void); | ||
|
||
WK_EXPORT void WKRenderLayerGetAbsoluteBounds(void); | ||
|
||
WK_EXPORT void WKRenderLayerIsClipping(void); | ||
WK_EXPORT void WKRenderLayerIsClipped(void); | ||
WK_EXPORT void WKRenderLayerIsReflection(void); | ||
|
||
WK_EXPORT void WKRenderLayerGetCompositingLayerType(void); | ||
WK_EXPORT void WKRenderLayerGetBackingStoreMemoryEstimate(void); | ||
|
||
WK_EXPORT void WKRenderLayerGetNegativeZOrderList(void); | ||
WK_EXPORT void WKRenderLayerGetNormalFlowList(void); | ||
WK_EXPORT void WKRenderLayerGetPositiveZOrderList(void); | ||
|
||
WK_EXPORT void WKRenderLayerGetFrameContentsLayer(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright (C) 2012 Apple Inc. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | ||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||
* THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#include "config.h" | ||
#include "WKRenderObject.h" | ||
|
||
#include "APIArray.h" | ||
#include "WKAPICast.h" | ||
|
||
// These functions should be kept around for compatibility with SafariForWebKitDevelopment. | ||
void WKRenderObjectGetTypeID() | ||
{ | ||
} | ||
|
||
void WKRenderObjectCopyName() | ||
{ | ||
} | ||
|
||
void WKRenderObjectCopyTextSnippet() | ||
{ | ||
} | ||
|
||
void WKRenderObjectGetTextLength() | ||
{ | ||
} | ||
|
||
void WKRenderObjectCopyElementTagName() | ||
{ | ||
} | ||
|
||
void WKRenderObjectCopyElementID() | ||
{ | ||
} | ||
|
||
void WKRenderObjectGetElementClassNames() | ||
{ | ||
} | ||
|
||
void WKRenderObjectGetAbsolutePosition() | ||
{ | ||
} | ||
|
||
void WKRenderObjectGetFrameRect() | ||
{ | ||
} | ||
|
||
void WKRenderObjectGetChildren() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright (C) 2012 Apple Inc. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | ||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||
* THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <WebKit/WKBase.h> | ||
#include <WebKit/WKGeometry.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
WK_EXPORT void WKRenderObjectGetTypeID(void); | ||
|
||
WK_EXPORT void WKRenderObjectCopyName(void); | ||
WK_EXPORT void WKRenderObjectCopyTextSnippet(void); | ||
WK_EXPORT void WKRenderObjectGetTextLength(void); | ||
WK_EXPORT void WKRenderObjectCopyElementTagName(void); | ||
WK_EXPORT void WKRenderObjectCopyElementID(void); | ||
WK_EXPORT void WKRenderObjectGetElementClassNames(void); | ||
|
||
WK_EXPORT void WKRenderObjectGetAbsolutePosition(void); | ||
WK_EXPORT void WKRenderObjectGetFrameRect(void); | ||
WK_EXPORT void WKRenderObjectGetChildren(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.