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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); | 370 const ComputedStyle* ensureComputedStyle(PseudoId = PseudoIdNone); |
371 | 371 |
372 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) | 372 // Methods for indicating the style is affected by dynamic updates (e.g., ch
ildren changing, our position changing in our sibling list, etc.) |
373 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } | 373 bool styleAffectedByEmpty() const { return hasElementFlag(StyleAffectedByEmp
ty); } |
374 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } | 374 void setStyleAffectedByEmpty() { setElementFlag(StyleAffectedByEmpty); } |
375 | 375 |
376 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } | 376 void setIsInCanvasSubtree(bool value) { setElementFlag(IsInCanvasSubtree, va
lue); } |
377 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); } | 377 bool isInCanvasSubtree() const { return hasElementFlag(IsInCanvasSubtree); } |
378 | 378 |
379 bool isDefined() const { return getCustomElementState() != CustomElementStat
e::Undefined; } | 379 bool isDefined() const { return !(static_cast<int>(getCustomElementState())
& static_cast<int>(CustomElementState::NotDefinedFlag)); } |
380 bool isUpgradedV0CustomElement() { return getV0CustomElementState() == V0Upg
raded; } | 380 bool isUpgradedV0CustomElement() { return getV0CustomElementState() == V0Upg
raded; } |
381 bool isUnresolvedV0CustomElement() { return getV0CustomElementState() == V0W
aitingForUpgrade; } | 381 bool isUnresolvedV0CustomElement() { return getV0CustomElementState() == V0W
aitingForUpgrade; } |
382 | 382 |
383 AtomicString computeInheritedLanguage() const; | 383 AtomicString computeInheritedLanguage() const; |
384 Locale& locale() const; | 384 Locale& locale() const; |
385 | 385 |
386 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } | 386 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } |
387 | 387 |
388 virtual bool isURLAttribute(const Attribute&) const { return false; } | 388 virtual bool isURLAttribute(const Attribute&) const { return false; } |
389 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} | 389 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 static T* create(const QualifiedName&, Document&) | 973 static T* create(const QualifiedName&, Document&) |
974 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 974 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
975 T* T::create(const QualifiedName& tagName, Document& document) \ | 975 T* T::create(const QualifiedName& tagName, Document& document) \ |
976 { \ | 976 { \ |
977 return new T(tagName, document); \ | 977 return new T(tagName, document); \ |
978 } | 978 } |
979 | 979 |
980 } // namespace blink | 980 } // namespace blink |
981 | 981 |
982 #endif // Element_h | 982 #endif // Element_h |
OLD | NEW |