Changeset 46784 in webkit


Ignore:
Timestamp:
Aug 4, 2009 4:20:18 PM (15 years ago)
Author:
Nate Chapin
Message:

2009-08-04 Nate Chapin <Nate Chapin>

Reviewed by Dimitri Glazkov.

Revert r46421 and r46769, which appear to have totally hosed the v8 bindings.

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

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r46783 r46784  
     12009-08-04  Nate Chapin  <japhet@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Revert r46421 and r46769, which appear to have totally hosed the v8 bindings.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=27719
     8
     9        * bindings/v8/V8AbstractEventListener.cpp: Revert r46421.
     10        (WebCore::V8AbstractEventListener::invokeEventHandler):
     11        * bindings/v8/custom/V8DOMWindowCustom.cpp: Revert r46769.
     12        (WebCore::ACCESSOR_GETTER):
     13
    1142009-08-04  Chris Fleizach  <cfleizach@apple.com>
    215
  • trunk/WebCore/bindings/v8/V8AbstractEventListener.cpp

    r46531 r46784  
    7474
    7575        // Save the old 'event' property so we can restore it later.
    76         v8::Local<v8::Value> savedEvent = v8Context->Global()->Get(eventSymbol);
     76        v8::Local<v8::Value> savedEvent = v8Context->Global()->GetHiddenValue(eventSymbol);
    7777        tryCatch.Reset();
    7878
    7979        // Make the event available in the global object, so DOMWindow can expose it.
    80         v8Context->Global()->Set(eventSymbol, jsEvent);
     80        v8Context->Global()->SetHiddenValue(eventSymbol, jsEvent);
    8181        tryCatch.Reset();
    8282
     
    8787        // Restore the old event. This must be done for all exit paths through this method.
    8888        if (savedEvent.IsEmpty())
    89             v8Context->Global()->Set(eventSymbol, v8::Undefined());
     89            v8Context->Global()->SetHiddenValue(eventSymbol, v8::Undefined());
    9090        else
    91             v8Context->Global()->Set(eventSymbol, savedEvent);
     91            v8Context->Global()->SetHiddenValue(eventSymbol, savedEvent);
    9292        tryCatch.Reset();
    9393    }
  • trunk/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp

    r46769 r46784  
    148148    v8::Local<v8::String> eventSymbol = v8::String::NewSymbol("event");
    149149    v8::Local<v8::Context> context = v8::Context::GetCurrent();
    150     v8::Handle<v8::Value> jsEvent = context->Global()->Get(eventSymbol);
     150    v8::Handle<v8::Value> jsEvent = context->Global()->GetHiddenValue(eventSymbol);
    151151    if (jsEvent.IsEmpty())
    152152        return v8::Undefined();
Note: See TracChangeset for help on using the changeset viewer.