| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) | 304 // Clones all attribute-derived data, including subclass specifics (through
copyNonAttributeProperties.) |
| 305 void cloneDataFromElement(const Element&); | 305 void cloneDataFromElement(const Element&); |
| 306 | 306 |
| 307 bool hasEquivalentAttributes(const Element* other) const; | 307 bool hasEquivalentAttributes(const Element* other) const; |
| 308 | 308 |
| 309 virtual void copyNonAttributePropertiesFromElement(const Element&) { } | 309 virtual void copyNonAttributePropertiesFromElement(const Element&) { } |
| 310 | 310 |
| 311 virtual void attach(const AttachContext& = AttachContext()) override; | 311 virtual void attach(const AttachContext& = AttachContext()) override; |
| 312 virtual void detach(const AttachContext& = AttachContext()) override; | 312 virtual void detach(const AttachContext& = AttachContext()) override; |
| 313 virtual RenderObject* createRenderer(RenderStyle*); | 313 virtual LayoutObject* createRenderer(RenderStyle*); |
| 314 virtual bool rendererIsNeeded(const RenderStyle&); | 314 virtual bool rendererIsNeeded(const RenderStyle&); |
| 315 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); | 315 void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr); |
| 316 void pseudoStateChanged(CSSSelector::PseudoType); | 316 void pseudoStateChanged(CSSSelector::PseudoType); |
| 317 void setAnimationStyleChange(bool); | 317 void setAnimationStyleChange(bool); |
| 318 void setNeedsAnimationStyleRecalc(); | 318 void setNeedsAnimationStyleRecalc(); |
| 319 | 319 |
| 320 void setNeedsCompositingUpdate(); | 320 void setNeedsCompositingUpdate(); |
| 321 | 321 |
| 322 bool supportsStyleSharing() const; | 322 bool supportsStyleSharing() const; |
| 323 | 323 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 // signaling that all child tags have been parsed and added. | 408 // signaling that all child tags have been parsed and added. |
| 409 // This is needed for <applet> and <object> elements, which can't lay themse
lves out | 409 // This is needed for <applet> and <object> elements, which can't lay themse
lves out |
| 410 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. | 410 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. |
| 411 // Also used for script elements and some SVG elements for similar purposes, | 411 // Also used for script elements and some SVG elements for similar purposes, |
| 412 // but making parsing a special case in this respect should be avoided if po
ssible. | 412 // but making parsing a special case in this respect should be avoided if po
ssible. |
| 413 virtual void finishParsingChildren(); | 413 virtual void finishParsingChildren(); |
| 414 | 414 |
| 415 void beginParsingChildren() { setIsFinishedParsingChildren(false); } | 415 void beginParsingChildren() { setIsFinishedParsingChildren(false); } |
| 416 | 416 |
| 417 PseudoElement* pseudoElement(PseudoId) const; | 417 PseudoElement* pseudoElement(PseudoId) const; |
| 418 RenderObject* pseudoElementRenderer(PseudoId) const; | 418 LayoutObject* pseudoElementRenderer(PseudoId) const; |
| 419 | 419 |
| 420 virtual bool matchesReadOnlyPseudoClass() const { return false; } | 420 virtual bool matchesReadOnlyPseudoClass() const { return false; } |
| 421 virtual bool matchesReadWritePseudoClass() const { return false; } | 421 virtual bool matchesReadWritePseudoClass() const { return false; } |
| 422 virtual bool matchesValidityPseudoClasses() const { return false; } | 422 virtual bool matchesValidityPseudoClasses() const { return false; } |
| 423 bool matches(const String& selectors, ExceptionState&); | 423 bool matches(const String& selectors, ExceptionState&); |
| 424 Element* closest(const String& selectors, ExceptionState&); | 424 Element* closest(const String& selectors, ExceptionState&); |
| 425 virtual bool shouldAppearIndeterminate() const { return false; } | 425 virtual bool shouldAppearIndeterminate() const { return false; } |
| 426 | 426 |
| 427 DOMTokenList& classList(); | 427 DOMTokenList& classList(); |
| 428 | 428 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 virtual bool shouldRegisterAsNamedItem() const { return false; } | 519 virtual bool shouldRegisterAsNamedItem() const { return false; } |
| 520 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } | 520 virtual bool shouldRegisterAsExtraNamedItem() const { return false; } |
| 521 | 521 |
| 522 bool supportsSpatialNavigationFocus() const; | 522 bool supportsSpatialNavigationFocus() const; |
| 523 | 523 |
| 524 void clearTabIndexExplicitlyIfNeeded(); | 524 void clearTabIndexExplicitlyIfNeeded(); |
| 525 void setTabIndexExplicitly(short); | 525 void setTabIndexExplicitly(short); |
| 526 // Subclasses may override this method to affect focusability. Unlike | 526 // Subclasses may override this method to affect focusability. Unlike |
| 527 // supportsFocus, this method must be called on an up-to-date layout, so it | 527 // supportsFocus, this method must be called on an up-to-date layout, so it |
| 528 // may use the renderer to reason about focusability. This method cannot be | 528 // may use the renderer to reason about focusability. This method cannot be |
| 529 // moved to RenderObject because some focusable nodes don't have renderers, | 529 // moved to LayoutObject because some focusable nodes don't have renderers, |
| 530 // e.g., HTMLOptionElement. | 530 // e.g., HTMLOptionElement. |
| 531 virtual bool rendererIsFocusable() const; | 531 virtual bool rendererIsFocusable() const; |
| 532 | 532 |
| 533 // classAttributeChanged() exists to share code between | 533 // classAttributeChanged() exists to share code between |
| 534 // parseAttribute (called via setAttribute()) and | 534 // parseAttribute (called via setAttribute()) and |
| 535 // svgAttributeChanged (called when element.className.baseValue is set) | 535 // svgAttributeChanged (called when element.className.baseValue is set) |
| 536 void classAttributeChanged(const AtomicString& newClassString); | 536 void classAttributeChanged(const AtomicString& newClassString); |
| 537 | 537 |
| 538 PassRefPtr<RenderStyle> originalStyleForRenderer(); | 538 PassRefPtr<RenderStyle> originalStyleForRenderer(); |
| 539 | 539 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 878 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 879 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 879 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 880 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 880 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 881 { \ | 881 { \ |
| 882 return adoptRefWillBeNoop(new T(tagName, document)); \ | 882 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 883 } | 883 } |
| 884 | 884 |
| 885 } // namespace | 885 } // namespace |
| 886 | 886 |
| 887 #endif // Element_h | 887 #endif // Element_h |
| OLD | NEW |