Chromium Code Reviews| 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 30 matching lines...) Expand all Loading... | |
| 41 #include "public/platform/WebFocusType.h" | 41 #include "public/platform/WebFocusType.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class ElementAnimations; | 45 class ElementAnimations; |
| 46 class Attr; | 46 class Attr; |
| 47 class Attribute; | 47 class Attribute; |
| 48 class CSSStyleDeclaration; | 48 class CSSStyleDeclaration; |
| 49 class ClientRect; | 49 class ClientRect; |
| 50 class ClientRectList; | 50 class ClientRectList; |
| 51 class CompositorMutation; | |
| 51 class CustomElementDefinition; | 52 class CustomElementDefinition; |
| 52 class DOMStringMap; | 53 class DOMStringMap; |
| 53 class DOMTokenList; | 54 class DOMTokenList; |
| 54 class Dictionary; | 55 class Dictionary; |
| 55 class ElementRareData; | 56 class ElementRareData; |
| 56 class ElementShadow; | 57 class ElementShadow; |
| 57 class ExceptionState; | 58 class ExceptionState; |
| 58 class Image; | 59 class Image; |
| 59 class IntSize; | 60 class IntSize; |
| 60 class Locale; | 61 class Locale; |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 535 | 536 |
| 536 // A compositor proxy is a very limited wrapper around an element. It | 537 // A compositor proxy is a very limited wrapper around an element. It |
| 537 // exposes only those properties that are requested at the time the proxy is | 538 // exposes only those properties that are requested at the time the proxy is |
| 538 // created. In order to know which properties are actually proxied, we | 539 // created. In order to know which properties are actually proxied, we |
| 539 // maintain a count of the number of compositor proxies associated with each | 540 // maintain a count of the number of compositor proxies associated with each |
| 540 // property. | 541 // property. |
| 541 bool hasCompositorProxy() const; | 542 bool hasCompositorProxy() const; |
| 542 void incrementCompositorProxiedProperties(uint32_t mutableProperties); | 543 void incrementCompositorProxiedProperties(uint32_t mutableProperties); |
| 543 void decrementCompositorProxiedProperties(uint32_t mutableProperties); | 544 void decrementCompositorProxiedProperties(uint32_t mutableProperties); |
| 544 uint32_t compositorMutableProperties() const; | 545 uint32_t compositorMutableProperties() const; |
| 546 void updateFromMutation(const CompositorMutation&); | |
|
jbroman
2016/01/23 23:55:09
Mind also renaming this "updateFromCompositorMutat
majidvp
2016/01/25 20:40:10
Done.
| |
| 545 | 547 |
| 546 // Helpers for V8DOMActivityLogger::logEvent. They call logEvent only if | 548 // Helpers for V8DOMActivityLogger::logEvent. They call logEvent only if |
| 547 // the element is inDocument() and the context is an isolated world. | 549 // the element is inDocument() and the context is an isolated world. |
| 548 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1); | 550 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1); |
| 549 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1, const QualifiedName& attr2); | 551 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, const QualifiedName& attr3); | 552 void logAddElementIfIsolatedWorldAndInDocument(const char element[], const Q ualifiedName& attr1, const QualifiedName& attr2, const QualifiedName& attr3); |
| 551 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri ng& newValue); | 553 void logUpdateAttributeIfIsolatedWorldAndInDocument(const char element[], co nst QualifiedName& attributeName, const AtomicString& oldValue, const AtomicStri ng& newValue); |
| 552 | 554 |
| 553 DECLARE_VIRTUAL_TRACE(); | 555 DECLARE_VIRTUAL_TRACE(); |
| 554 | 556 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 939 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 941 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 940 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 942 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 941 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ | 943 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ |
| 942 { \ | 944 { \ |
| 943 return adoptRefWillBeNoop(new T(tagName, document)); \ | 945 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 944 } | 946 } |
| 945 | 947 |
| 946 } // namespace | 948 } // namespace |
| 947 | 949 |
| 948 #endif // Element_h | 950 #endif // Element_h |
| OLD | NEW |