Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2296573003: binding: Reduces the binary size of binding's generated code. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after
2373 } 2373 }
2374 2374
2375 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre ationContext) 2375 v8::Local<v8::Object> Node::wrap(v8::Isolate* isolate, v8::Local<v8::Object> cre ationContext)
2376 { 2376 {
2377 DCHECK(!DOMDataStore::containsWrapper(this, isolate)); 2377 DCHECK(!DOMDataStore::containsWrapper(this, isolate));
2378 2378
2379 const WrapperTypeInfo* wrapperType = wrapperTypeInfo(); 2379 const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
2380 2380
2381 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio nContext, wrapperType); 2381 v8::Local<v8::Object> wrapper = V8DOMWrapper::createWrapper(isolate, creatio nContext, wrapperType);
2382 DCHECK(!wrapper.IsEmpty()); 2382 DCHECK(!wrapper.IsEmpty());
2383 wrapperType->installConditionallyEnabledProperties(wrapper, isolate);
2384 return associateWithWrapper(isolate, wrapperType, wrapper); 2383 return associateWithWrapper(isolate, wrapperType, wrapper);
2385 } 2384 }
2386 2385
2387 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper) 2386 v8::Local<v8::Object> Node::associateWithWrapper(v8::Isolate* isolate, const Wra pperTypeInfo* wrapperType, v8::Local<v8::Object> wrapper)
2388 { 2387 {
2389 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper); 2388 return V8DOMWrapper::associateObjectWithWrapper(isolate, this, wrapperType, wrapper);
2390 } 2389 }
2391 2390
2392 } // namespace blink 2391 } // namespace blink
2393 2392
(...skipping 19 matching lines...) Expand all
2413 if (node) 2412 if (node)
2414 node->printNodePathTo(stream); 2413 node->printNodePathTo(stream);
2415 else 2414 else
2416 stream << "Cannot showNodePath for <null>"; 2415 stream << "Cannot showNodePath for <null>";
2417 stream << "\n"; 2416 stream << "\n";
2418 // TODO(tkent): Replace WTFLogAlways with something else. 2417 // TODO(tkent): Replace WTFLogAlways with something else.
2419 WTFLogAlways("%s", stream.str().c_str()); 2418 WTFLogAlways("%s", stream.str().c_str());
2420 } 2419 }
2421 2420
2422 #endif 2421 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698