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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class Locale; | 60 class Locale; |
61 class MutableStylePropertySet; | 61 class MutableStylePropertySet; |
62 class PropertySetCSSStyleDeclaration; | 62 class PropertySetCSSStyleDeclaration; |
63 class PseudoElement; | 63 class PseudoElement; |
64 class ScrollState; | 64 class ScrollState; |
65 class ScrollStateCallback; | 65 class ScrollStateCallback; |
66 class ScrollToOptions; | 66 class ScrollToOptions; |
67 class ShadowRoot; | 67 class ShadowRoot; |
68 class ShadowRootInit; | 68 class ShadowRootInit; |
69 class StylePropertySet; | 69 class StylePropertySet; |
| 70 struct WebMutation; |
70 | 71 |
71 enum SpellcheckAttributeState { | 72 enum SpellcheckAttributeState { |
72 SpellcheckAttributeTrue, | 73 SpellcheckAttributeTrue, |
73 SpellcheckAttributeFalse, | 74 SpellcheckAttributeFalse, |
74 SpellcheckAttributeDefault | 75 SpellcheckAttributeDefault |
75 }; | 76 }; |
76 | 77 |
77 enum ElementFlags { | 78 enum ElementFlags { |
78 TabIndexWasSetExplicitly = 1 << 0, | 79 TabIndexWasSetExplicitly = 1 << 0, |
79 StyleAffectedByEmpty = 1 << 1, | 80 StyleAffectedByEmpty = 1 << 1, |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 535 |
535 // A compositor proxy is a very limited wrapper around an element. It | 536 // A compositor proxy is a very limited wrapper around an element. It |
536 // exposes only those properties that are requested at the time the proxy is | 537 // exposes only those properties that are requested at the time the proxy is |
537 // created. In order to know which properties are actually proxied, we | 538 // created. In order to know which properties are actually proxied, we |
538 // maintain a count of the number of compositor proxies associated with each | 539 // maintain a count of the number of compositor proxies associated with each |
539 // property. | 540 // property. |
540 bool hasCompositorProxy() const; | 541 bool hasCompositorProxy() const; |
541 void incrementCompositorProxiedProperties(uint32_t mutableProperties); | 542 void incrementCompositorProxiedProperties(uint32_t mutableProperties); |
542 void decrementCompositorProxiedProperties(uint32_t mutableProperties); | 543 void decrementCompositorProxiedProperties(uint32_t mutableProperties); |
543 uint32_t compositorMutableProperties() const; | 544 uint32_t compositorMutableProperties() const; |
| 545 void updateFromMutation(const WebMutation&); |
544 | 546 |
545 // Helpers for V8DOMActivityLogger::logEvent. They call logEvent only if | 547 // Helpers for V8DOMActivityLogger::logEvent. They call logEvent only if |
546 // the element is inDocument() and the context is an isolated world. | 548 // the element is inDocument() and the context is an isolated world. |
547 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); | 549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1); |
548 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); | 550 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2); |
549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); | 551 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q
ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); |
550 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); | 552 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co
nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri
ng& newValue); |
551 | 553 |
552 DECLARE_VIRTUAL_TRACE(); | 554 DECLARE_VIRTUAL_TRACE(); |
553 | 555 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 937 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
936 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 938 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
937 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 939 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
938 { \ | 940 { \ |
939 return adoptRefWillBeNoop(new T(tagName, document)); \ | 941 return adoptRefWillBeNoop(new T(tagName, document)); \ |
940 } | 942 } |
941 | 943 |
942 } // namespace | 944 } // namespace |
943 | 945 |
944 #endif // Element_h | 946 #endif // Element_h |
OLD | NEW |