| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 ShadowRoot* openShadowRoot() const; | 355 ShadowRoot* openShadowRoot() const; |
| 356 ShadowRoot* closedShadowRoot() const; | 356 ShadowRoot* closedShadowRoot() const; |
| 357 ShadowRoot* authorShadowRoot() const; | 357 ShadowRoot* authorShadowRoot() const; |
| 358 ShadowRoot* userAgentShadowRoot() const; | 358 ShadowRoot* userAgentShadowRoot() const; |
| 359 | 359 |
| 360 ShadowRoot* youngestShadowRoot() const; | 360 ShadowRoot* youngestShadowRoot() const; |
| 361 | 361 |
| 362 ShadowRoot* shadowRootIfV1() const; | 362 ShadowRoot* shadowRootIfV1() const; |
| 363 | 363 |
| 364 ShadowRoot& ensureUserAgentShadowRoot(); | 364 ShadowRoot& ensureUserAgentShadowRoot(); |
| 365 virtual void willAddFirstAuthorShadowRoot() { } | |
| 366 | 365 |
| 367 bool isInDescendantTreeOf(const Element* shadowHost) const; | 366 bool isInDescendantTreeOf(const Element* shadowHost) const; |
| 368 | 367 |
| 369 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); | 368 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
| 370 | 369 |
| 371 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) | 370 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) |
| 372 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } | 371 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } |
| 373 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 372 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
| 374 | 373 |
| 375 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } | 374 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 static T* create(const QualifiedName&, Document&) | 958 static T* create(const QualifiedName&, Document&) |
| 960 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 959 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 961 T* T::create(const QualifiedName& tagName, Document& document) \ | 960 T* T::create(const QualifiedName& tagName, Document& document) \ |
| 962 { \ | 961 { \ |
| 963 return new T(tagName, document); \ | 962 return new T(tagName, document); \ |
| 964 } | 963 } |
| 965 | 964 |
| 966 } // namespace blink | 965 } // namespace blink |
| 967 | 966 |
| 968 #endif // Element_h | 967 #endif // Element_h |
| OLD | NEW |