Changeset 255221 in webkit


Ignore:
Timestamp:
Jan 27, 2020 7:01:18 PM (4 years ago)
Author:
Devin Rousso
Message:

Unreviewed, speculative win build fix after r255191

  • bindings/js/ScriptController.h:
  • testing/Internals.cpp:

(WebCore::Internals::evaluateInWorldIgnoringException):
Don't use the ScriptSourceCode so we don't have to export its symbol.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r255219 r255221  
     12020-01-27  Devin Rousso  <drousso@apple.com>
     2
     3        Unreviewed, speculative win build fix after r255191
     4
     5        * bindings/js/ScriptController.h:
     6        * testing/Internals.cpp:
     7        (WebCore::Internals::evaluateInWorldIgnoringException):
     8        Don't use the `ScriptSourceCode` so we don't have to export its symbol.
     9
    1102020-01-27  Jonathan Bedard  <jbedard@apple.com>
    211
  • trunk/Source/WebCore/bindings/js/ScriptController.h

    r255191 r255221  
    101101
    102102    WEBCORE_EXPORT JSC::JSValue executeScriptIgnoringException(const String& script, bool forceUserGesture = false);
    103     JSC::JSValue executeScriptInWorldIgnoringException(DOMWrapperWorld&, const String& script, bool forceUserGesture = false);
     103    WEBCORE_EXPORT JSC::JSValue executeScriptInWorldIgnoringException(DOMWrapperWorld&, const String& script, bool forceUserGesture = false);
    104104    WEBCORE_EXPORT JSC::JSValue executeUserAgentScriptInWorldIgnoringException(DOMWrapperWorld&, const String& script, bool forceUserGesture);
    105105    WEBCORE_EXPORT ValueOrException executeUserAgentScriptInWorld(DOMWrapperWorld&, const String& script, bool forceUserGesture);
    106106    WEBCORE_EXPORT void executeAsynchronousUserAgentScriptInWorld(DOMWrapperWorld&, RunJavaScriptParameters&&, ResolveFunction&&);
    107107    JSC::JSValue evaluateIgnoringException(const ScriptSourceCode&);
    108     WEBCORE_EXPORT JSC::JSValue evaluateInWorldIgnoringException(const ScriptSourceCode&, DOMWrapperWorld&);
     108    JSC::JSValue evaluateInWorldIgnoringException(const ScriptSourceCode&, DOMWrapperWorld&);
    109109
    110110    Expected<void, ExceptionDetails> shouldAllowUserAgentScripts(Document&) const;
  • trunk/Source/WebCore/testing/Internals.cpp

    r255191 r255221  
    34943494    auto& scriptController = document->frame()->script();
    34953495    auto world = ScriptController::createWorld(name);
    3496     return scriptController.evaluateInWorldIgnoringException(ScriptSourceCode(source), world);
     3496    return scriptController.executeScriptInWorldIgnoringException(world, source);
    34973497}
    34983498
Note: See TracChangeset for help on using the changeset viewer.