| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 void setContainsFullScreenElement(bool); | 453 void setContainsFullScreenElement(bool); |
| 454 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 454 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 455 | 455 |
| 456 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 456 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
| 457 void setIsInTopLayer(bool); | 457 void setIsInTopLayer(bool); |
| 458 | 458 |
| 459 void requestPointerLock(); | 459 void requestPointerLock(); |
| 460 | 460 |
| 461 bool isSpellCheckingEnabled() const; | 461 bool isSpellCheckingEnabled() const; |
| 462 | 462 |
| 463 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | |
| 464 PassRefPtr<RenderStyle> styleForRenderer(); | |
| 465 | |
| 466 bool hasID() const; | 463 bool hasID() const; |
| 467 bool hasClass() const; | 464 bool hasClass() const; |
| 468 const SpaceSplitString& classNames() const; | 465 const SpaceSplitString& classNames() const; |
| 469 | 466 |
| 470 IntSize savedLayerScrollOffset() const; | 467 IntSize savedLayerScrollOffset() const; |
| 471 void setSavedLayerScrollOffset(const IntSize&); | 468 void setSavedLayerScrollOffset(const IntSize&); |
| 472 | 469 |
| 473 ActiveAnimations* activeAnimations() const; | 470 ActiveAnimations* activeAnimations() const; |
| 474 ActiveAnimations& ensureActiveAnimations(); | 471 ActiveAnimations& ensureActiveAnimations(); |
| 475 bool hasActiveAnimations() const; | 472 bool hasActiveAnimations() const; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // may use the renderer to reason about focusability. This method cannot be | 518 // may use the renderer to reason about focusability. This method cannot be |
| 522 // moved to RenderObject because some focusable nodes don't have renderers, | 519 // moved to RenderObject because some focusable nodes don't have renderers, |
| 523 // e.g., HTMLOptionElement. | 520 // e.g., HTMLOptionElement. |
| 524 virtual bool rendererIsFocusable() const; | 521 virtual bool rendererIsFocusable() const; |
| 525 | 522 |
| 526 // classAttributeChanged() exists to share code between | 523 // classAttributeChanged() exists to share code between |
| 527 // parseAttribute (called via setAttribute()) and | 524 // parseAttribute (called via setAttribute()) and |
| 528 // svgAttributeChanged (called when element.className.baseValue is set) | 525 // svgAttributeChanged (called when element.className.baseValue is set) |
| 529 void classAttributeChanged(const AtomicString& newClassString); | 526 void classAttributeChanged(const AtomicString& newClassString); |
| 530 | 527 |
| 528 PassRefPtr<RenderStyle> styleForRenderer(); |
| 531 PassRefPtr<RenderStyle> originalStyleForRenderer(); | 529 PassRefPtr<RenderStyle> originalStyleForRenderer(); |
| 532 | 530 |
| 533 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); | 531 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); |
| 534 | 532 |
| 535 private: | 533 private: |
| 536 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl
ementFlagInternal(mask); } | 534 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl
ementFlagInternal(mask); } |
| 537 void setElementFlag(ElementFlags, bool value = true); | 535 void setElementFlag(ElementFlags, bool value = true); |
| 538 void clearElementFlag(ElementFlags); | 536 void clearElementFlag(ElementFlags); |
| 539 bool hasElementFlagInternal(ElementFlags) const; | 537 bool hasElementFlagInternal(ElementFlags) const; |
| 540 | 538 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 851 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 854 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 852 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 855 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 853 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 856 { \ | 854 { \ |
| 857 return adoptRefWillBeNoop(new T(tagName, document)); \ | 855 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 858 } | 856 } |
| 859 | 857 |
| 860 } // namespace | 858 } // namespace |
| 861 | 859 |
| 862 #endif // Element_h | 860 #endif // Element_h |
| OLD | NEW |