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, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 void setPrefix(const AtomicString&, ExceptionState&); | 529 void setPrefix(const AtomicString&, ExceptionState&); |
530 | 530 |
531 void synchronizeAttribute(const AtomicString& localName) const; | 531 void synchronizeAttribute(const AtomicString& localName) const; |
532 | 532 |
533 MutableStylePropertySet* ensureMutableInlineStyle(); | 533 MutableStylePropertySet* ensureMutableInlineStyle(); |
534 void clearMutableInlineStyleIfEmpty(); | 534 void clearMutableInlineStyleIfEmpty(); |
535 | 535 |
536 protected: | 536 protected: |
537 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) | 537 Element(const QualifiedName& tagName, Document* document, ConstructionType t
ype) |
538 : ContainerNode(document, type) | 538 : ContainerNode(document, type) |
| 539 , m_parserSet(false) |
539 , m_tagName(tagName) | 540 , m_tagName(tagName) |
540 { | 541 { |
541 ScriptWrappable::init(this); | 542 ScriptWrappable::init(this); |
542 } | 543 } |
543 | 544 |
544 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); | 545 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, CSSValueID identifier); |
545 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitTypes); | 546 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, double value, CSSPrimitiveValue::UnitTypes); |
546 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); | 547 void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPr
opertyID, const String& value); |
547 | 548 |
548 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 549 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
(...skipping 21 matching lines...) Expand all Loading... |
570 HTMLCollection* cachedHTMLCollection(CollectionType); | 571 HTMLCollection* cachedHTMLCollection(CollectionType); |
571 | 572 |
572 // classAttributeChanged() exists to share code between | 573 // classAttributeChanged() exists to share code between |
573 // parseAttribute (called via setAttribute()) and | 574 // parseAttribute (called via setAttribute()) and |
574 // svgAttributeChanged (called when element.className.baseValue is set) | 575 // svgAttributeChanged (called when element.className.baseValue is set) |
575 void classAttributeChanged(const AtomicString& newClassString); | 576 void classAttributeChanged(const AtomicString& newClassString); |
576 | 577 |
577 PassRefPtr<RenderStyle> originalStyleForRenderer(); | 578 PassRefPtr<RenderStyle> originalStyleForRenderer(); |
578 | 579 |
579 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); | 580 Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&); |
| 581 bool m_parserSet; |
580 | 582 |
581 private: | 583 private: |
582 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); | 584 void styleAttributeChanged(const AtomicString& newStyleString, AttributeModi
ficationReason); |
583 | 585 |
584 void updatePresentationAttributeStyle(); | 586 void updatePresentationAttributeStyle(); |
585 | 587 |
586 void inlineStyleChanged(); | 588 void inlineStyleChanged(); |
587 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); | 589 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); |
588 void setInlineStyleFromString(const AtomicString&); | 590 void setInlineStyleFromString(const AtomicString&); |
589 | 591 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 } | 893 } |
892 | 894 |
893 inline bool isShadowHost(const Element* element) | 895 inline bool isShadowHost(const Element* element) |
894 { | 896 { |
895 return element && element->shadow(); | 897 return element && element->shadow(); |
896 } | 898 } |
897 | 899 |
898 } // namespace | 900 } // namespace |
899 | 901 |
900 #endif | 902 #endif |
OLD | NEW |