Changeset 90206 in webkit
- Timestamp:
- Jun 30, 2011, 11:06:59 PM (14 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r90195 r90206 1 2011-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 1 13 2011-06-30 Kent Tamura <tkent@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/public/WebBindings.h
r82469 r90206 129 129 WEBKIT_API static void extractIdentifierData(const NPIdentifier&, const NPUTF8*& string, int32_t& number, bool& isString); 130 130 131 // DumpRenderTree support ------------------------------------------------- 132 131 133 // Return true (success) if the given npobj is a range object. 132 134 // If so, return that range as a WebRange object. … … 139 141 WEBKIT_API static NPObject* makeIntArray(const WebVector<int>&); 140 142 WEBKIT_API static NPObject* makeStringArray(const WebVector<WebString>&); 141 WEBKIT_API static NPObject* makeNode(const WebNode&);142 143 143 144 // Exceptions ------------------------------------------------------------- -
trunk/Source/WebKit/chromium/src/WebBindings.cpp
r84328 r90206 42 42 #include "V8Element.h" 43 43 #include "V8NPUtils.h" 44 #include "V8Node.h"45 44 #include "V8Proxy.h" 46 45 #include "V8Range.h" … … 258 257 } 259 258 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 270 259 #endif 271 260 … … 310 299 } 311 300 312 NPObject* WebBindings::makeNode(const WebNode& data)313 {314 #if USE(V8)315 return makeNodeImpl(data);316 #else317 // Not supported on other ports (JSC, etc.).318 return 0;319 #endif320 }321 322 301 void WebBindings::pushExceptionHandler(ExceptionHandler handler, void* data) 323 302 {
Note:
See TracChangeset
for help on using the changeset viewer.