| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "bindings/core/v8/V8DOMConfiguration.h" | 29 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 30 | 30 |
| 31 #include "bindings/core/v8/GeneratedCodeHelper.h" // just for DCHECK | 31 #include "bindings/core/v8/GeneratedCodeHelper.h" // just for DCHECK |
| 32 #include "bindings/core/v8/V8ObjectConstructor.h" | 32 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 33 #include "bindings/core/v8/V8PerContextData.h" | 33 #include "bindings/core/v8/V8PerContextData.h" |
| 34 #include "platform/TraceEvent.h" | 34 #include "platform/tracing/TraceEvent.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 void installAttributeInternal( | 40 void installAttributeInternal( |
| 41 v8::Isolate* isolate, | 41 v8::Isolate* isolate, |
| 42 v8::Local<v8::ObjectTemplate> instanceTemplate, | 42 v8::Local<v8::ObjectTemplate> instanceTemplate, |
| 43 v8::Local<v8::ObjectTemplate> prototypeTemplate, | 43 v8::Local<v8::ObjectTemplate> prototypeTemplate, |
| 44 const V8DOMConfiguration::AttributeConfiguration& attribute, | 44 const V8DOMConfiguration::AttributeConfiguration& attribute, |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 void V8DOMConfiguration::setClassString( | 603 void V8DOMConfiguration::setClassString( |
| 604 v8::Isolate* isolate, | 604 v8::Isolate* isolate, |
| 605 v8::Local<v8::ObjectTemplate> objectTemplate, | 605 v8::Local<v8::ObjectTemplate> objectTemplate, |
| 606 const char* classString) { | 606 const char* classString) { |
| 607 objectTemplate->Set( | 607 objectTemplate->Set( |
| 608 v8::Symbol::GetToStringTag(isolate), v8AtomicString(isolate, classString), | 608 v8::Symbol::GetToStringTag(isolate), v8AtomicString(isolate, classString), |
| 609 static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontEnum)); | 609 static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontEnum)); |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace blink | 612 } // namespace blink |
| OLD | NEW |