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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 ShadowRoot& ensureUserAgentShadowRoot(); | 434 ShadowRoot& ensureUserAgentShadowRoot(); |
435 | 435 |
436 bool isInDescendantTreeOf(const Element* shadowHost) const; | 436 bool isInDescendantTreeOf(const Element* shadowHost) const; |
437 | 437 |
438 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already | 438 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already |
439 // stored on the Element, computes the ComputedStyle and stores it on the | 439 // stored on the Element, computes the ComputedStyle and stores it on the |
440 // Element’s ElementRareData. Used for getComputedStyle when Element is | 440 // Element’s ElementRareData. Used for getComputedStyle when Element is |
441 // display none. | 441 // display none. |
442 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); | 442 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
443 | 443 |
| 444 const ComputedStyle* nonLayoutObjectComputedStyle() const; |
| 445 |
| 446 bool hasDisplayContentsStyle() const; |
| 447 |
| 448 ComputedStyle* mutableNonLayoutObjectComputedStyle() const { |
| 449 return const_cast<ComputedStyle*>(nonLayoutObjectComputedStyle()); |
| 450 } |
| 451 |
| 452 bool shouldStoreNonLayoutObjectComputedStyle(const ComputedStyle&) const; |
| 453 void storeNonLayoutObjectComputedStyle(PassRefPtr<ComputedStyle>); |
| 454 void clearNonLayoutObjectComputedStyle(); |
| 455 |
444 // Methods for indicating the style is affected by dynamic updates (e.g., | 456 // Methods for indicating the style is affected by dynamic updates (e.g., |
445 // children changing, our position changing in our sibling list, etc.) | 457 // children changing, our position changing in our sibling list, etc.) |
446 bool styleAffectedByEmpty() const { | 458 bool styleAffectedByEmpty() const { |
447 return hasElementFlag(StyleAffectedByEmpty); | 459 return hasElementFlag(StyleAffectedByEmpty); |
448 } | 460 } |
449 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 461 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
450 | 462 |
451 void setIsInCanvasSubtree(bool value) { | 463 void setIsInCanvasSubtree(bool value) { |
452 setElementFlag(IsInCanvasSubtree, value); | 464 setElementFlag(IsInCanvasSubtree, value); |
453 } | 465 } |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1169 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1158 static T* create(const QualifiedName&, Document&) | 1170 static T* create(const QualifiedName&, Document&) |
1159 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1171 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1160 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1172 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1161 return new T(tagName, document); \ | 1173 return new T(tagName, document); \ |
1162 } | 1174 } |
1163 | 1175 |
1164 } // namespace blink | 1176 } // namespace blink |
1165 | 1177 |
1166 #endif // Element_h | 1178 #endif // Element_h |
OLD | NEW |