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