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

Side by Side Diff: Source/bindings/v8/V8Binding.h

Issue 21274004: Fix Document leak from NodeFilter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't print numberOfLiveDocuments when test passed Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 throwTypeError(isolate); 505 throwTypeError(isolate);
506 return v8Undefined(); 506 return v8Undefined();
507 } 507 }
508 508
509 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value()); 509 V8TRYCATCH(uint32_t, sequenceLength, lengthValue->Int32Value());
510 length = sequenceLength; 510 length = sequenceLength;
511 511
512 return v8Value; 512 return v8Value;
513 } 513 }
514 514
515 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>); 515 PassRefPtr<NodeFilter> toNodeFilter(v8::Handle<v8::Value>, v8::Isolate*);
516 516
517 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value) 517 inline bool isUndefinedOrNull(v8::Handle<v8::Value> value)
518 { 518 {
519 return value->IsNull() || value->IsUndefined(); 519 return value->IsNull() || value->IsUndefined();
520 } 520 }
521 521
522 // Returns true if the provided object is to be considered a 'host object', as used in the 522 // Returns true if the provided object is to be considered a 'host object', as used in the
523 // HTML5 structured clone algorithm. 523 // HTML5 structured clone algorithm.
524 inline bool isHostObject(v8::Handle<v8::Object> object) 524 inline bool isHostObject(v8::Handle<v8::Object> object)
525 { 525 {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function, v8::Handle<v8::Value> environment) 621 inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function, v8::Handle<v8::Value> environment)
622 { 622 {
623 return v8::FunctionTemplate::New(function, environment)->GetFunction(); 623 return v8::FunctionTemplate::New(function, environment)->GetFunction();
624 } 624 }
625 625
626 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script Wrappable*, v8::Handle<v8::String> key); 626 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate*, Script Wrappable*, v8::Handle<v8::String> key);
627 627
628 } // namespace WebCore 628 } // namespace WebCore
629 629
630 #endif // V8Binding_h 630 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/deprecated_code_generator_v8.pm ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698