| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 ShadowRoot& ensureUserAgentShadowRoot(); | 432 ShadowRoot& ensureUserAgentShadowRoot(); |
| 433 | 433 |
| 434 bool isInDescendantTreeOf(const Element* shadowHost) const; | 434 bool isInDescendantTreeOf(const Element* shadowHost) const; |
| 435 | 435 |
| 436 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already | 436 // Returns the Element’s ComputedStyle. If the ComputedStyle is not already |
| 437 // stored on the Element, computes the ComputedStyle and stores it on the | 437 // stored on the Element, computes the ComputedStyle and stores it on the |
| 438 // Element’s ElementRareData. Used for getComputedStyle when Element is | 438 // Element’s ElementRareData. Used for getComputedStyle when Element is |
| 439 // display none. | 439 // display none. |
| 440 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); | 440 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
| 441 | 441 |
| 442 const ComputedStyle* nonLayoutObjectComputedStyle() const; |
| 443 |
| 444 bool hasDisplayContentsStyle() const; |
| 445 |
| 446 ComputedStyle* mutableNonLayoutObjectComputedStyle() const { |
| 447 return const_cast<ComputedStyle*>(nonLayoutObjectComputedStyle()); |
| 448 } |
| 449 |
| 450 bool shouldStoreNonLayoutObjectComputedStyle(const ComputedStyle&) const; |
| 451 void storeNonLayoutObjectComputedStyle(PassRefPtr<ComputedStyle>); |
| 452 |
| 442 // Methods for indicating the style is affected by dynamic updates (e.g., | 453 // Methods for indicating the style is affected by dynamic updates (e.g., |
| 443 // children changing, our position changing in our sibling list, etc.) | 454 // children changing, our position changing in our sibling list, etc.) |
| 444 bool styleAffectedByEmpty() const { | 455 bool styleAffectedByEmpty() const { |
| 445 return hasElementFlag(StyleAffectedByEmpty); | 456 return hasElementFlag(StyleAffectedByEmpty); |
| 446 } | 457 } |
| 447 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 458 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
| 448 | 459 |
| 449 void setIsInCanvasSubtree(bool value) { | 460 void setIsInCanvasSubtree(bool value) { |
| 450 setElementFlag(IsInCanvasSubtree, value); | 461 setElementFlag(IsInCanvasSubtree, value); |
| 451 } | 462 } |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1187 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1177 static T* create(const QualifiedName&, Document&) | 1188 static T* create(const QualifiedName&, Document&) |
| 1178 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 1189 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 1179 T* T::create(const QualifiedName& tagName, Document& document) { \ | 1190 T* T::create(const QualifiedName& tagName, Document& document) { \ |
| 1180 return new T(tagName, document); \ | 1191 return new T(tagName, document); \ |
| 1181 } | 1192 } |
| 1182 | 1193 |
| 1183 } // namespace blink | 1194 } // namespace blink |
| 1184 | 1195 |
| 1185 #endif // Element_h | 1196 #endif // Element_h |
| OLD | NEW |