Commit cb8504d4 authored by seokju@webkit.org's avatar seokju@webkit.org

Web Inspector: Remove unused overriding protocols.

https://bugs.webkit.org/show_bug.cgi?id=126630

Reviewed by Timothy Hatcher.

Source/WebCore:

No new tests, No change in behavior.

Remove unused overriding protocols as these are not used anymore in Frontned.
-Page.setGeolocationOverride
-Page.clearGeolocationOverride
-Page.canOverrideGeolocation
-Page.setDeviceOrientationOverride
-Page.clearDeviceOrientationOverride
-Page.canOverrideGeolocation
-Network.setUserAgentOverride

* Modules/geolocation/GeolocationController.cpp:
(WebCore::GeolocationController::GeolocationController):
(WebCore::GeolocationController::create):
(WebCore::GeolocationController::positionChanged):
(WebCore::provideGeolocationTo):
* Modules/geolocation/GeolocationController.h:
* dom/DeviceOrientationController.cpp:
(WebCore::DeviceOrientationController::DeviceOrientationController):
(WebCore::DeviceOrientationController::create):
(WebCore::DeviceOrientationController::didChangeDeviceOrientation):
(WebCore::provideDeviceOrientationTo):
* dom/DeviceOrientationController.h:
* inspector/InspectorInstrumentation.cpp:
* inspector/InspectorInstrumentation.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent):
* inspector/InspectorPageAgent.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::disable):
* inspector/InspectorResourceAgent.h:
* inspector/protocol/Network.json:
* inspector/protocol/Page.json:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::userAgent):

Source/WebInspectorUI:

Update InspectorWebBackendCommands.js after removing unused overriding protocols.

* UserInterface/InspectorWebBackendCommands.js:
* UserInterface/Legacy/6.0/InspectorWebBackendCommands.js:
* UserInterface/Legacy/7.0/InspectorWebBackendCommands.js:
* Versions/Inspector-iOS-6.0.json:
* Versions/Inspector-iOS-7.0.json:

LayoutTests:

* http/tests/inspector/extensions-useragent-expected.txt: Removed.
* http/tests/inspector/extensions-useragent.html: Removed.
* inspector/device-orientation-success-expected.txt: Removed.
* inspector/device-orientation-success.html: Removed.
* inspector/geolocation-error-expected.txt: Removed.
* inspector/geolocation-error.html: Removed.
* inspector/geolocation-success-expected.txt: Removed.
* inspector/geolocation-success.html: Removed.
* inspector/geolocation-watchPosition-expected.txt: Removed.
* inspector/geolocation-watchPosition.html: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 53488d2f
2014-01-09 Seokju Kwon <seokju@webkit.org>
Web Inspector: Remove unused overriding protocols.
https://bugs.webkit.org/show_bug.cgi?id=126630
Reviewed by Timothy Hatcher.
* http/tests/inspector/extensions-useragent-expected.txt: Removed.
* http/tests/inspector/extensions-useragent.html: Removed.
* inspector/device-orientation-success-expected.txt: Removed.
* inspector/device-orientation-success.html: Removed.
* inspector/geolocation-error-expected.txt: Removed.
* inspector/geolocation-error.html: Removed.
* inspector/geolocation-success-expected.txt: Removed.
* inspector/geolocation-success.html: Removed.
* inspector/geolocation-watchPosition-expected.txt: Removed.
* inspector/geolocation-watchPosition.html: Removed.
2014-01-09 Zan Dobersek <zdobersek@igalia.com>
Unreviewed GTK gardening. Rebaselining after r161521.
Tests overriding user agent via WebInspector extension API
Started extension.
Running tests...
RUNNING TEST: extension_testUserAgent
Page reloaded.
Page reloaded.
user-agent header for extensions-useragent.html: Mozilla/4.0 (compatible; WebInspector Extension User-Agent override; RSX-11M)
user-agent header for xhr-exists.html: Mozilla/4.0 (compatible; WebInspector Extension User-Agent override; RSX-11M)
navigator.userAgent: Mozilla/4.0 (compatible; WebInspector Extension User-Agent override; RSX-11M)
All tests done.
<html>
<head>
<script src="inspector-test.js"></script>
<script src="extensions-test.js"></script>
<script type="text/javascript">
function extension_testUserAgent(nextTest)
{
const requestsToCheck = [
"extensions-useragent.html",
"xhr-exists.html"
];
var requestCount = 0;
var queuedOutput = [];
function onRequestFinished(request)
{
var url = request.request.url.replace(/^.*[/]/, "");
if (requestsToCheck.indexOf(url) < 0)
return;
queuedOutput.push("user-agent header for " + url + ": " + getHeader(request.request.headers, "user-agent"));
if (++requestCount < requestsToCheck.length)
return;
webInspector.network.onRequestFinished.removeListener(onRequestFinished);
webInspector.inspectedWindow.eval("navigator.userAgent", onEval);
}
function getHeader(headers, name)
{
for (var i = 0; i < headers.length; ++i) {
if (headers[i].name.toLowerCase() === name)
return headers[i].value;
}
}
function onEval(result)
{
queuedOutput.push("navigator.userAgent: " + result);
webInspector.inspectedWindow.eval("", cleanUp);
}
function cleanUp()
{
evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageLoaded);
webInspector.inspectedWindow.reload("");
}
function onPageLoaded()
{
for (var i = 0; i < queuedOutput.length; ++i)
output(queuedOutput[i]);
nextTest();
}
webInspector.network.onRequestFinished.addListener(onRequestFinished);
webInspector.inspectedWindow.reload("Mozilla/4.0 (compatible; WebInspector Extension User-Agent override; RSX-11M)");
}
(function()
{
var xhr = new XMLHttpRequest();
xhr.open("GET", "resources/xhr-exists.html", false);
xhr.send(null);
})();
</script>
</head>
<body onload="runTest()">
<p>Tests overriding user agent via WebInspector extension API</p>
</body>
</html>
CONSOLE MESSAGE: line 17: alpha: 20 beta: 30 gamma: 40
CONSOLE MESSAGE: line 17: alpha: 1.1 beta: 2.2 gamma: 3.3
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
var mockAlpha = 1.1;
var mockBeta = 2.2;
var mockGamma = 3.3;
if (window.testRunner)
testRunner.setMockDeviceOrientation(true, mockAlpha, true, mockBeta, true, mockGamma);
else
debug('This test can not be run without the LayoutTestController');
function handler(evt)
{
console.log('alpha: ' + evt.alpha + ' beta: ' + evt.beta + ' gamma: ' + evt.gamma);
}
function test()
{
function callback()
{
PageAgent.clearDeviceOrientationOverride();
InspectorTest.completeTest();
}
InspectorTest.evaluateInPage("window.addEventListener('deviceorientation', handler, false);", callback);
PageAgent.setDeviceOrientationOverride(20, 30, 40);
}
</script>
</head>
<body onload="runTest()">
<p>
</p>
</body>
</html>
CONSOLE MESSAGE: line 26: Error: 2
CONSOLE MESSAGE: line 22: lat: 51.478, long: -0.166
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
var mockLatitude = 51.478;
var mockLongitude = -0.166;
var mockAccuracy = 100;
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPosition(mockLatitude,
mockLongitude,
mockAccuracy);
} else
debug('This test can not be run without the LayoutTestController');
function getGeolocation()
{
function printLocation(pos)
{
console.log('lat: ' + pos.coords.latitude + ', long: ' + pos.coords.longitude);
}
function printError(err)
{
console.log('Error: ' + err.code);
}
navigator.geolocation.getCurrentPosition(printLocation, printError, [])
}
function test()
{
function callbackComplete()
{
InspectorTest.completeTest();
}
function callback()
{
PageAgent.clearGeolocationOverride();
InspectorTest.evaluateInPage("getGeolocation()", callbackComplete);
}
PageAgent.setGeolocationOverride();
InspectorTest.evaluateInPage("getGeolocation()", callback);
}
</script>
</head>
<body onload="runTest()">
<p>
</p>
</body>
</html>
CONSOLE MESSAGE: line 22: lat: 43.476093, long: -80.540299
CONSOLE MESSAGE: line 22: lat: 51.478, long: -0.166
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
var mockLatitude = 51.478;
var mockLongitude = -0.166;
var mockAccuracy = 100;
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPosition(mockLatitude,
mockLongitude,
mockAccuracy);
} else
debug('This test can not be run without the LayoutTestController');
function getGeolocation(webInspectorCallbackString)
{
function printLocation(pos)
{
console.log('lat: ' + pos.coords.latitude + ', long: ' + pos.coords.longitude);
finishTest();
}
function printError(err)
{
console.log('Error: ' + err.code);
finishTest();
}
function finishTest()
{
testRunner.evaluateInWebInspector(0, webInspectorCallbackString);
}
navigator.geolocation.getCurrentPosition(printLocation, printError, [])
}
function test()
{
window.testStep2 = function()
{
PageAgent.clearGeolocationOverride();
InspectorTest.evaluateInPage("getGeolocation('InspectorTest.completeTest()')");
}
PageAgent.setGeolocationOverride(43.476093, -80.540299, 150);
InspectorTest.evaluateInPage("getGeolocation('window.testStep2()')");
}
</script>
</head>
<body onload="runTest()">
<p>
</p>
</body>
</html>
CONSOLE MESSAGE: line 23: lat: 51.478, long: -0.166
CONSOLE MESSAGE: line 23: lat: 43.476093, long: -80.540299
CONSOLE MESSAGE: line 27: Error: 2
CONSOLE MESSAGE: line 23: lat: 51.478, long: -0.166
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
var mockLatitude = 51.478;
var mockLongitude = -0.166;
var mockAccuracy = 100;
if (window.testRunner) {
testRunner.setGeolocationPermission(true);
testRunner.setMockGeolocationPosition(mockLatitude,
mockLongitude,
mockAccuracy);
} else
debug('This test can not be run without the LayoutTestController');
var watch = 0;
function getGeolocation()
{
function printLocation(pos)
{
console.log('lat: ' + pos.coords.latitude + ', long: ' + pos.coords.longitude);
}
function printError(err)
{
console.log('Error: ' + err.code);
}
watch = navigator.geolocation.watchPosition(printLocation, printError, [])
}
function clearWatch()
{
navigator.geolocation.clearWatch(watch);
}
function test()
{
function callbackComplete()
{
InspectorTest.completeTest();
}
function callback()
{
InspectorTest.evaluateInPage("clearWatch()", callbackComplete);
}
function clearData()
{
PageAgent.clearGeolocationOverride();
setTimeout(callback, 1);
}
function setError()
{
PageAgent.setGeolocationOverride();
setTimeout(clearData, 1);
}
function setPosition()
{
PageAgent.setGeolocationOverride(43.476093, -80.540299, 150);
setTimeout(setError, 1);
}
InspectorTest.evaluateInPage("getGeolocation()", setPosition);
}
</script>
</head>
<body onload="runTest()">
<p>
</p>
</body>
</html>
2014-01-09 Seokju Kwon <seokju@webkit.org>
Web Inspector: Remove unused overriding protocols.
https://bugs.webkit.org/show_bug.cgi?id=126630
Reviewed by Timothy Hatcher.
No new tests, No change in behavior.
Remove unused overriding protocols as these are not used anymore in Frontned.
-Page.setGeolocationOverride
-Page.clearGeolocationOverride
-Page.canOverrideGeolocation
-Page.setDeviceOrientationOverride
-Page.clearDeviceOrientationOverride
-Page.canOverrideGeolocation
-Network.setUserAgentOverride
* Modules/geolocation/GeolocationController.cpp:
(WebCore::GeolocationController::GeolocationController):
(WebCore::GeolocationController::create):
(WebCore::GeolocationController::positionChanged):
(WebCore::provideGeolocationTo):
* Modules/geolocation/GeolocationController.h:
* dom/DeviceOrientationController.cpp:
(WebCore::DeviceOrientationController::DeviceOrientationController):
(WebCore::DeviceOrientationController::create):
(WebCore::DeviceOrientationController::didChangeDeviceOrientation):
(WebCore::provideDeviceOrientationTo):
* dom/DeviceOrientationController.h:
* inspector/InspectorInstrumentation.cpp:
* inspector/InspectorInstrumentation.h:
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent):
* inspector/InspectorPageAgent.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::disable):
* inspector/InspectorResourceAgent.h:
* inspector/protocol/Network.json:
* inspector/protocol/Page.json:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::userAgent):
2014-01-09 Andrei Bucur <abucur@adobe.com>
[CSSRegions] Move regions auto-size code into RenderNamedFlowFragment
......@@ -31,13 +31,11 @@
#include "GeolocationClient.h"
#include "GeolocationError.h"
#include "GeolocationPosition.h"
#include "InspectorInstrumentation.h"
namespace WebCore {
GeolocationController::GeolocationController(Page* page, GeolocationClient* client)
GeolocationController::GeolocationController(GeolocationClient* client)
: m_client(client)
, m_page(page)
{
}
......@@ -49,9 +47,9 @@ GeolocationController::~GeolocationController()
m_client->geolocationDestroyed();
}
PassOwnPtr<GeolocationController> GeolocationController::create(Page* page, GeolocationClient* client)
PassOwnPtr<GeolocationController> GeolocationController::create(GeolocationClient* client)
{
return adoptPtr(new GeolocationController(page, client));
return adoptPtr(new GeolocationController(client));
}
void GeolocationController::addObserver(Geolocation* observer, bool enableHighAccuracy)
......@@ -101,11 +99,6 @@ void GeolocationController::cancelPermissionRequest(Geolocation* geolocation)
void GeolocationController::positionChanged(GeolocationPosition* position)
{
position = InspectorInstrumentation::overrideGeolocationPosition(m_page, position);
if (!position) {
errorOccurred(GeolocationError::create(GeolocationError::PositionUnavailable, ASCIILiteral("PositionUnavailable")).get());
return;
}
m_lastPosition = position;
Vector<RefPtr<Geolocation>> observersVector;
copyToVector(m_observers, observersVector);
......@@ -139,7 +132,7 @@ const char* GeolocationController::supplementName()
void provideGeolocationTo(Page* page, GeolocationClient* client)
{
Supplement<Page>::provideTo(page, GeolocationController::supplementName(), GeolocationController::create(page, client));
Supplement<Page>::provideTo(page, GeolocationController::supplementName(), GeolocationController::create(client));
}
} // namespace WebCore
......
......@@ -46,7 +46,7 @@ class GeolocationController : public Supplement<Page> {
public:
~GeolocationController();
static PassOwnPtr<GeolocationController> create(Page*, GeolocationClient*);
static PassOwnPtr<GeolocationController> create(GeolocationClient*);
void addObserver(Geolocation*, bool enableHighAccuracy);
void removeObserver(Geolocation*);
......@@ -65,10 +65,9 @@ public:
static GeolocationController* from(Page* page) { return static_cast<GeolocationController*>(Supplement<Page>::from(page, supplementName())); }
private:
GeolocationController(Page*, GeolocationClient*);
GeolocationController(GeolocationClient*);
GeolocationClient* m_client;
Page* m_page;
RefPtr<GeolocationPosition> m_lastPosition;
typedef HashSet<RefPtr<Geolocation>> ObserversSet;
......
......@@ -30,13 +30,12 @@
#include "DeviceOrientationClient.h"
#include "DeviceOrientationData.h"
#include "DeviceOrientationEvent.h"
#include "InspectorInstrumentation.h"
#include "Page.h"
namespace WebCore {
DeviceOrientationController::DeviceOrientationController(Page* page, DeviceOrientationClient* client)
DeviceOrientationController::DeviceOrientationController(DeviceOrientationClient* client)
: DeviceController(client)
, m_page(page)
{
#if PLATFORM(IOS)
// FIXME: Temporarily avoid asserting while OpenSource is using a different design.
......@@ -50,14 +49,13 @@ DeviceOrientationController::DeviceOrientationController(Page* page, DeviceOrien
#endif
}
PassOwnPtr<DeviceOrientationController> DeviceOrientationController::create(Page* page, DeviceOrientationClient* client)
PassOwnPtr<DeviceOrientationController> DeviceOrientationController::create(DeviceOrientationClient* client)
{
return adoptPtr(new DeviceOrientationController(page, client));
return adoptPtr(new DeviceOrientationController(client));
}
void DeviceOrientationController::didChangeDeviceOrientation(DeviceOrientationData* orientation)
{
orientation = InspectorInstrumentation::overrideDeviceOrientation(m_page, orientation);
dispatchDeviceEvent(DeviceOrientationEvent::create(eventNames().deviceorientationEvent, orientation));
}
......@@ -111,7 +109,7 @@ bool DeviceOrientationController::isActiveAt(Page* page)
void provideDeviceOrientationTo(Page* page, DeviceOrientationClient* client)
{
DeviceOrientationController::provideTo(page, DeviceOrientationController::supplementName(), DeviceOrientationController::create(page, client));
DeviceOrientationController::provideTo(page, DeviceOrientationController::supplementName(), DeviceOrientationController::create(client));
}
} // namespace WebCore
......@@ -35,13 +35,14 @@ namespace WebCore {
class DeviceOrientationClient;
class DeviceOrientationData;
class Page;
class DeviceOrientationController : public DeviceController {
WTF_MAKE_NONCOPYABLE(DeviceOrientationController);
public:
~DeviceOrientationController() { };
static PassOwnPtr<DeviceOrientationController> create(Page*, DeviceOrientationClient*);
static PassOwnPtr<DeviceOrientationController> create(DeviceOrientationClient*);
void didChangeDeviceOrientation(DeviceOrientationData*);
DeviceOrientationClient* deviceOrientationClient();
......@@ -61,9 +62,7 @@ public:
static bool isActiveAt(Page*);
private:
DeviceOrientationController(Page*, DeviceOrientationClient*);
Page* m_page;
DeviceOrientationController(DeviceOrientationClient*);
};
} // namespace WebCore
......
......@@ -41,7 +41,6 @@
#include "DOMWindow.h"
#include "DOMWrapperWorld.h"
#include "Database.h"
#include "DeviceOrientationData.h"
#include "DocumentLoader.h"
#include "Event.h"
#include "EventDispatcher.h"
......@@ -619,12 +618,6 @@ void InspectorInstrumentation::didProcessRuleImpl(const InspectorInstrumentation
cssAgent->didProcessRule();
}
void InspectorInstrumentation::applyUserAgentOverrideImpl(InstrumentingAgents* instrumentingAgents, String* userAgent)
{
if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent())
resourceAgent->applyUserAgentOverride(userAgent);
}
void InspectorInstrumentation::applyEmulatedMediaImpl(InstrumentingAgents* instrumentingAgents, String* media)
{
if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent())
......@@ -1298,22 +1291,6 @@ InstrumentingAgents* InspectorInstrumentation::instrumentingAgentsForNonDocument
return 0;
}
#if ENABLE(GEOLOCATION)
GeolocationPosition* InspectorInstrumentation::overrideGeolocationPositionImpl(InstrumentingAgents* instrumentingAgents, GeolocationPosition* position)
{
if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent())
position = pageAgent->overrideGeolocationPosition(position);
return position;
}
#endif
DeviceOrientationData* InspectorInstrumentation::overrideDeviceOrientationImpl(InstrumentingAgents* instrumentingAgents, DeviceOrientationData* deviceOrientation)
{
if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent())
deviceOrientation = pageAgent->overrideDeviceOrientation(deviceOrientation);
return deviceOrientation;
}
#if USE(ACCELERATED_COMPOSITING)
void InspectorInstrumentation::layerTreeDidChangeImpl(InstrumentingAgents* instrumentingAgents)
{
......
......@@ -61,8 +61,6 @@ class Document;
class Element;
class DocumentLoader;
class DocumentStyleSheetCollection;
class DeviceOrientationData;
class GeolocationPosition;
class GraphicsContext;
class HTTPHeaderMap;
class InspectorCSSAgent;
......@@ -185,7 +183,6 @@ public:
static InspectorInstrumentationCookie willProcessRule(Document*, StyleRule*, StyleResolver&);
static void didProcessRule(const InspectorInstrumentationCookie&);
static void applyUserAgentOverride(Frame*, String*);
static void applyEmulatedMedia(Frame*, String*);
static void willSendRequest(Frame*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse);
static void continueAfterPingLoader(Frame*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse&);
......@@ -298,15 +295,9 @@ public:
static bool timelineAgentEnabled(ScriptExecutionContext*) { return false; }
#endif
#if ENABLE(GEOLOCATION)
static GeolocationPosition* overrideGeolocationPosition(Page*, GeolocationPosition*);
#endif
static void registerInstrumentingAgents(InstrumentingAgents*);
static void unregisterInstrumentingAgents(InstrumentingAgents*);
static DeviceOrientationData* overrideDeviceOrientation(Page*, DeviceOrientationData*);
#if USE(ACCELERATED_COMPOSITING)
static void layerTreeDidChange(Page*);
static void renderLayerDestroyed(Page*, const RenderLayer*);
......@@ -382,7 +373,6 @@ private:
static InspectorInstrumentationCookie willProcessRuleImpl(InstrumentingAgents*, StyleRule*, StyleResolver&);
static void didProcessRuleImpl(const InspectorInstrumentationCookie&);
static void applyUserAgentOverrideImpl(InstrumentingAgents*, String*);
static void applyEmulatedMediaImpl(InstrumentingAgents*, String*);
static void willSendRequestImpl(InstrumentingAgents*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse);
static void continueAfterPingLoaderImpl(InstrumentingAgents*, unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse&);
......@@ -485,12 +475,6 @@ private:
static void cancelPauseOnNativeEvent(InstrumentingAgents*);
static InspectorTimelineAgent* retrieveTimelineAgent(const InspectorInstrumentationCookie&);
#if ENABLE(GEOLOCATION)
static GeolocationPosition* overrideGeolocationPositionImpl(InstrumentingAgents*, GeolocationPosition*);
#endif
static DeviceOrientationData* overrideDeviceOrientationImpl(InstrumentingAgents*, DeviceOrientationData*);
#if USE(ACCELERATED_COMPOSITING)
static void layerTreeDidChangeImpl(InstrumentingAgents*);
static void renderLayerDestroyedImpl(InstrumentingAgents*, const RenderLayer*);
......@@ -1261,18 +1245,6 @@ inline void InspectorInstrumentation::didProcessRule(const InspectorInstrumentat
#endif
}
inline void InspectorInstrumentation::applyUserAgentOverride(Frame* frame, String* userAgent)
{
#if ENABLE(INSPECTOR)
FAST_RETURN_IF_NO_FRONTENDS(void());
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame))
applyUserAgentOverrideImpl(instrumentingAgents, userAgent);
#else
UNUSED_PARAM(frame);
UNUSED_PARAM(userAgent);
#endif
}
inline void InspectorInstrumentation::applyEmulatedMedia(Frame* frame, String* media)
{
#if ENABLE(INSPECTOR)
......@@ -1955,32 +1927,6 @@ inline void InspectorInstrumentation::didFireAnimationFrame(const InspectorInstr
#endif
}
#if ENABLE(GEOLOCATION)
inline GeolocationPosition* InspectorInstrumentation::overrideGeolocationPosition(Page* page, GeolocationPosition* position)
{
#if ENABLE(INSPECTOR)
FAST_RETURN_IF_NO_FRONTENDS(position);
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForPage(page))
return overrideGeolocationPositionImpl(instrumentingAgents, position);
<