Changeset 90206 in webkit


Ignore:
Timestamp:
Jun 30, 2011, 11:06:59 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-30 Noel Gordon <noel.gordon@gmail.com>

Reviewed by Hajime Morita.

[Chromium] Remove WebBindings::makeNode.
https://bugs.webkit.org/show_bug.cgi?id=63613

Dead code elimination. No change in behaviour, so no new tests.

  • public/WebBindings.h:
  • src/WebBindings.cpp:
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r90195 r90206  
     12011-06-30  Noel Gordon  <noel.gordon@gmail.com>
     2
     3        Reviewed by Hajime Morita.
     4
     5        [Chromium] Remove WebBindings::makeNode.
     6        https://bugs.webkit.org/show_bug.cgi?id=63613
     7
     8        Dead code elimination. No change in behaviour, so no new tests.
     9
     10        * public/WebBindings.h:
     11        * src/WebBindings.cpp:
     12
    1132011-06-30  Kent Tamura  <tkent@chromium.org>
    214
  • trunk/Source/WebKit/chromium/public/WebBindings.h

    r82469 r90206  
    129129    WEBKIT_API static void extractIdentifierData(const NPIdentifier&, const NPUTF8*& string, int32_t& number, bool& isString);
    130130
     131    // DumpRenderTree support -------------------------------------------------
     132
    131133    // Return true (success) if the given npobj is a range object.
    132134    // If so, return that range as a WebRange object.
     
    139141    WEBKIT_API static NPObject* makeIntArray(const WebVector<int>&);
    140142    WEBKIT_API static NPObject* makeStringArray(const WebVector<WebString>&);
    141     WEBKIT_API static NPObject* makeNode(const WebNode&);
    142143
    143144    // Exceptions -------------------------------------------------------------
  • trunk/Source/WebKit/chromium/src/WebBindings.cpp

    r84328 r90206  
    4242#include "V8Element.h"
    4343#include "V8NPUtils.h"
    44 #include "V8Node.h"
    4544#include "V8Proxy.h"
    4645#include "V8Range.h"
     
    258257}
    259258
    260 static NPObject* makeNodeImpl(WebNode data)
    261 {
    262     v8::HandleScope handleScope;
    263     if (data.isNull())
    264         return 0;
    265     v8::Handle<v8::Object> result = V8Node::wrap(data.unwrap<Node>());
    266     WebCore::DOMWindow* window = WebCore::V8Proxy::retrieveWindow(WebCore::V8Proxy::currentContext());
    267     return npCreateV8ScriptObject(0, result, window);
    268 }
    269 
    270259#endif
    271260
     
    310299}
    311300
    312 NPObject* WebBindings::makeNode(const WebNode& data)
    313 {
    314 #if USE(V8)
    315     return makeNodeImpl(data);
    316 #else
    317     // Not supported on other ports (JSC, etc.).
    318     return 0;
    319 #endif
    320 }
    321 
    322301void WebBindings::pushExceptionHandler(ExceptionHandler handler, void* data)
    323302{
Note: See TracChangeset for help on using the changeset viewer.