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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 ShadowRoot& ensureUserAgentShadowRoot(); | 451 ShadowRoot& ensureUserAgentShadowRoot(); |
452 | 452 |
453 bool isInDescendantTreeOf(const Element* shadowHost) const; | 453 bool isInDescendantTreeOf(const Element* shadowHost) const; |
454 | 454 |
455 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already | 455 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already |
456 // stored on the Element, computes the ComputedStyle and stores it on the | 456 // stored on the Element, computes the ComputedStyle and stores it on the |
457 // Element’s ElementRareData. Used for getComputedStyle when Element is | 457 // Element’s ElementRareData. Used for getComputedStyle when Element is |
458 // display none. | 458 // display none. |
459 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); | 459 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
460 | 460 |
| 461 const ComputedStyle* nonLayoutObjectComputedStyle() const; |
| 462 |
| 463 bool hasDisplayContentsStyle() const; |
| 464 |
| 465 ComputedStyle* mutableNonLayoutObjectComputedStyle() const { |
| 466 return const_cast<ComputedStyle*>(nonLayoutObjectComputedStyle()); |
| 467 } |
| 468 |
| 469 bool shouldStoreNonLayoutObjectComputedStyle(const ComputedStyle&) const; |
| 470 void storeNonLayoutObjectComputedStyle(PassRefPtr<ComputedStyle>); |
| 471 |
461 // Methods for indicating the style is affected by dynamic updates (e.g., | 472 // Methods for indicating the style is affected by dynamic updates (e.g., |
462 // children changing, our position changing in our sibling list, etc.) | 473 // children changing, our position changing in our sibling list, etc.) |
463 bool styleAffectedByEmpty() const { | 474 bool styleAffectedByEmpty() const { |
464 return hasElementFlag(StyleAffectedByEmpty); | 475 return hasElementFlag(StyleAffectedByEmpty); |
465 } | 476 } |
466 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 477 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
467 | 478 |
468 void setIsInCanvasSubtree(bool value) { | 479 void setIsInCanvasSubtree(bool value) { |
469 setElementFlag(IsInCanvasSubtree, value); | 480 setElementFlag(IsInCanvasSubtree, value); |
470 } | 481 } |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1202 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1192 static T* create(const QualifiedName&, Document&) | 1203 static T* create(const QualifiedName&, Document&) |
1193 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1204 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
1194 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1205 T* T::create(const QualifiedName& tagName, Document& document) { \ |
1195 return new T(tagName, document); \ | 1206 return new T(tagName, document); \ |
1196 } | 1207 } |
1197 | 1208 |
1198 } // namespace blink | 1209 } // namespace blink |
1199 | 1210 |
1200 #endif // Element_h | 1211 #endif // Element_h |
OLD | NEW |