| OLD | NEW |
| 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 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 const AtomicString&); | 924 const AtomicString&); |
| 925 | 925 |
| 926 ElementRareData* elementRareData() const; | 926 ElementRareData* elementRareData() const; |
| 927 ElementRareData& ensureElementRareData(); | 927 ElementRareData& ensureElementRareData(); |
| 928 | 928 |
| 929 void removeAttrNodeList(); | 929 void removeAttrNodeList(); |
| 930 void detachAllAttrNodesFromElement(); | 930 void detachAllAttrNodesFromElement(); |
| 931 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 931 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 932 void detachAttrNodeAtIndex(Attr*, size_t index); | 932 void detachAttrNodeAtIndex(Attr*, size_t index); |
| 933 | 933 |
| 934 // Helper method which ensures that compositing inputs have been cleaned. |
| 935 // Cleaning the compositing inputs is required when computing the location of |
| 936 // position:sticky elements or their descendants. |
| 937 void ensureCompositingInputsClean(); |
| 938 |
| 934 v8::Local<v8::Object> wrapCustomElement( | 939 v8::Local<v8::Object> wrapCustomElement( |
| 935 v8::Isolate*, | 940 v8::Isolate*, |
| 936 v8::Local<v8::Object> creationContext); | 941 v8::Local<v8::Object> creationContext); |
| 937 | 942 |
| 938 Member<ElementData> m_elementData; | 943 Member<ElementData> m_elementData; |
| 939 }; | 944 }; |
| 940 | 945 |
| 941 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); | 946 DEFINE_NODE_TYPE_CASTS(Element, isElementNode()); |
| 942 template <typename T> | 947 template <typename T> |
| 943 bool isElementOfType(const Node&); | 948 bool isElementOfType(const Node&); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1196 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1192 static T* create(const QualifiedName&, Document&) | 1197 static T* create(const QualifiedName&, Document&) |
| 1193 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1198 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1194 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1199 T* T::create(const QualifiedName& tagName, Document& document) { \ |
| 1195 return new T(tagName, document); \ | 1200 return new T(tagName, document); \ |
| 1196 } | 1201 } |
| 1197 | 1202 |
| 1198 } // namespace blink | 1203 } // namespace blink |
| 1199 | 1204 |
| 1200 #endif // Element_h | 1205 #endif // Element_h |
| OLD | NEW |