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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 const AtomicString& locateNamespacePrefix(const AtomicString& namespaceURI)
const; | 247 const AtomicString& locateNamespacePrefix(const AtomicString& namespaceURI)
const; |
248 | 248 |
249 virtual String nodeName() const override; | 249 virtual String nodeName() const override; |
250 | 250 |
251 PassRefPtrWillBeRawPtr<Element> cloneElementWithChildren(); | 251 PassRefPtrWillBeRawPtr<Element> cloneElementWithChildren(); |
252 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutChildren(); | 252 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutChildren(); |
253 | 253 |
254 void scheduleSVGFilterLayerUpdateHack(); | 254 void scheduleSVGFilterLayerUpdateHack(); |
255 | 255 |
256 void normalizeAttributes(); | |
257 | |
258 void setBooleanAttribute(const QualifiedName& name, bool); | 256 void setBooleanAttribute(const QualifiedName& name, bool); |
259 | 257 |
260 virtual const StylePropertySet* additionalPresentationAttributeStyle() { ret
urn nullptr; } | 258 virtual const StylePropertySet* additionalPresentationAttributeStyle() { ret
urn nullptr; } |
261 void invalidateStyleAttribute(); | 259 void invalidateStyleAttribute(); |
262 | 260 |
263 const StylePropertySet* inlineStyle() const { return elementData() ? element
Data()->m_inlineStyle.get() : nullptr; } | 261 const StylePropertySet* inlineStyle() const { return elementData() ? element
Data()->m_inlineStyle.get() : nullptr; } |
264 | 262 |
265 bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool impor
tant = false); | 263 bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool impor
tant = false); |
266 bool setInlineStyleProperty(CSSPropertyID, double value, CSSPrimitiveValue::
UnitType, bool important = false); | 264 bool setInlineStyleProperty(CSSPropertyID, double value, CSSPrimitiveValue::
UnitType, bool important = false); |
267 bool setInlineStyleProperty(CSSPropertyID, const String& value, bool importa
nt = false); | 265 bool setInlineStyleProperty(CSSPropertyID, const String& value, bool importa
nt = false); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 void updatePseudoElement(PseudoId, StyleRecalcChange); | 581 void updatePseudoElement(PseudoId, StyleRecalcChange); |
584 bool updateFirstLetter(Element*); | 582 bool updateFirstLetter(Element*); |
585 | 583 |
586 inline void createPseudoElementIfNeeded(PseudoId); | 584 inline void createPseudoElementIfNeeded(PseudoId); |
587 | 585 |
588 // FIXME: Everyone should allow author shadows. | 586 // FIXME: Everyone should allow author shadows. |
589 virtual bool areAuthorShadowsAllowed() const { return true; } | 587 virtual bool areAuthorShadowsAllowed() const { return true; } |
590 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } | 588 virtual void didAddUserAgentShadowRoot(ShadowRoot&) { } |
591 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; } | 589 virtual bool alwaysCreateUserAgentShadowRoot() const { return false; } |
592 | 590 |
593 // FIXME: Remove the need for Attr to call willModifyAttribute/didModifyAttr
ibute. | |
594 friend class Attr; | |
595 | |
596 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute =
0, InSynchronizationOfLazyAttribute }; | 591 enum SynchronizationOfLazyAttribute { NotInSynchronizationOfLazyAttribute =
0, InSynchronizationOfLazyAttribute }; |
597 | 592 |
598 void didAddAttribute(const QualifiedName&, const AtomicString&); | 593 void didAddAttribute(const QualifiedName&, const AtomicString&); |
599 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue,
const AtomicString& newValue); | 594 void willModifyAttribute(const QualifiedName&, const AtomicString& oldValue,
const AtomicString& newValue); |
600 void didModifyAttribute(const QualifiedName&, const AtomicString&); | 595 void didModifyAttribute(const QualifiedName&, const AtomicString&); |
601 void didRemoveAttribute(const QualifiedName&); | 596 void didRemoveAttribute(const QualifiedName&); |
602 | 597 |
603 void synchronizeAllAttributes() const; | 598 void synchronizeAllAttributes() const; |
604 void synchronizeAttribute(const QualifiedName&) const; | 599 void synchronizeAttribute(const QualifiedName&) const; |
605 | 600 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 881 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
887 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 882 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
888 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 883 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
889 { \ | 884 { \ |
890 return adoptRefWillBeNoop(new T(tagName, document)); \ | 885 return adoptRefWillBeNoop(new T(tagName, document)); \ |
891 } | 886 } |
892 | 887 |
893 } // namespace | 888 } // namespace |
894 | 889 |
895 #endif // Element_h | 890 #endif // Element_h |
OLD | NEW |