| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2009 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "bindings/core/v8/V8ProcessingInstruction.h" | 43 #include "bindings/core/v8/V8ProcessingInstruction.h" |
| 44 #include "bindings/core/v8/V8SVGElement.h" | 44 #include "bindings/core/v8/V8SVGElement.h" |
| 45 #include "bindings/core/v8/V8ShadowRoot.h" | 45 #include "bindings/core/v8/V8ShadowRoot.h" |
| 46 #include "bindings/core/v8/V8Text.h" | 46 #include "bindings/core/v8/V8Text.h" |
| 47 #include "bindings/v8/ExceptionState.h" | 47 #include "bindings/v8/ExceptionState.h" |
| 48 #include "bindings/v8/V8AbstractEventListener.h" | 48 #include "bindings/v8/V8AbstractEventListener.h" |
| 49 #include "bindings/v8/V8Binding.h" | 49 #include "bindings/v8/V8Binding.h" |
| 50 #include "bindings/v8/V8EventListener.h" | 50 #include "bindings/v8/V8EventListener.h" |
| 51 #include "core/dom/Document.h" | 51 #include "core/dom/Document.h" |
| 52 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 52 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
| 53 #include "core/dom/shadow/ShadowRoot.h" |
| 53 #include "core/events/EventListener.h" | 54 #include "core/events/EventListener.h" |
| 54 #include "core/dom/shadow/ShadowRoot.h" | |
| 55 #include "wtf/RefPtr.h" | 55 #include "wtf/RefPtr.h" |
| 56 | 56 |
| 57 namespace WebCore { | 57 namespace WebCore { |
| 58 | 58 |
| 59 // These functions are custom to prevent a wrapper lookup of the return value wh
ich is always | 59 // These functions are custom to prevent a wrapper lookup of the return value wh
ich is always |
| 60 // part of the arguments. | 60 // part of the arguments. |
| 61 void V8Node::insertBeforeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
info) | 61 void V8Node::insertBeforeMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 62 { | 62 { |
| 63 v8::Handle<v8::Object> holder = info.Holder(); | 63 v8::Handle<v8::Object> holder = info.Holder(); |
| 64 Node* impl = V8Node::toNative(holder); | 64 Node* impl = V8Node::toNative(holder); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return wrap(toDocumentType(impl), creationContext, isolate); | 147 return wrap(toDocumentType(impl), creationContext, isolate); |
| 148 case Node::DOCUMENT_FRAGMENT_NODE: | 148 case Node::DOCUMENT_FRAGMENT_NODE: |
| 149 if (impl->isShadowRoot()) | 149 if (impl->isShadowRoot()) |
| 150 return wrap(toShadowRoot(impl), creationContext, isolate); | 150 return wrap(toShadowRoot(impl), creationContext, isolate); |
| 151 return wrap(toDocumentFragment(impl), creationContext, isolate); | 151 return wrap(toDocumentFragment(impl), creationContext, isolate); |
| 152 } | 152 } |
| 153 ASSERT_NOT_REACHED(); | 153 ASSERT_NOT_REACHED(); |
| 154 return V8Node::createWrapper(impl, creationContext, isolate); | 154 return V8Node::createWrapper(impl, creationContext, isolate); |
| 155 } | 155 } |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| OLD | NEW |