| 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 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 if (shouldInvalidateStyle) | 1009 if (shouldInvalidateStyle) |
| 1010 setNeedsStyleRecalc(); | 1010 setNeedsStyleRecalc(); |
| 1011 | 1011 |
| 1012 if (AXObjectCache* cache = document().existingAXObjectCache()) | 1012 if (AXObjectCache* cache = document().existingAXObjectCache()) |
| 1013 cache->handleAttributeChanged(name, this); | 1013 cache->handleAttributeChanged(name, this); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) | 1016 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName&
name, const AtomicString& newValue, AttributeModificationReason reason) |
| 1017 { | 1017 { |
| 1018 if (name == isAttr) | 1018 if (name == isAttr) |
| 1019 CustomElementRegistrationContext::setTypeExtension(this, newValue, reaso
n == ModifiedDirectly ? CustomElementRegistrationContext::CreatedByParser : Cust
omElementRegistrationContext::NotCreatedByParser); | 1019 CustomElementRegistrationContext::setTypeExtension(this, newValue); |
| 1020 attributeChanged(name, newValue, reason); | 1020 attributeChanged(name, newValue, reason); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 template <typename CharacterType> | 1023 template <typename CharacterType> |
| 1024 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) | 1024 static inline bool classStringHasClassName(const CharacterType* characters, unsi
gned length) |
| 1025 { | 1025 { |
| 1026 ASSERT(length > 0); | 1026 ASSERT(length > 0); |
| 1027 | 1027 |
| 1028 unsigned i = 0; | 1028 unsigned i = 0; |
| 1029 do { | 1029 do { |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 void Element::beginParsingChildren() | 1874 void Element::beginParsingChildren() |
| 1875 { | 1875 { |
| 1876 clearIsParsingChildrenFinished(); | 1876 clearIsParsingChildrenFinished(); |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 void Element::finishParsingChildren() | 1879 void Element::finishParsingChildren() |
| 1880 { | 1880 { |
| 1881 setIsParsingChildrenFinished(); | 1881 setIsParsingChildrenFinished(); |
| 1882 checkForSiblingStyleChanges(true, lastChild(), 0, 0); | 1882 checkForSiblingStyleChanges(this, lastChild(), 0, 0); |
| 1883 if (isCustomElement()) | |
| 1884 CustomElement::didFinishParsingChildren(this); | |
| 1885 } | 1883 } |
| 1886 | 1884 |
| 1887 #ifndef NDEBUG | 1885 #ifndef NDEBUG |
| 1888 void Element::formatForDebugger(char* buffer, unsigned length) const | 1886 void Element::formatForDebugger(char* buffer, unsigned length) const |
| 1889 { | 1887 { |
| 1890 StringBuilder result; | 1888 StringBuilder result; |
| 1891 String s; | 1889 String s; |
| 1892 | 1890 |
| 1893 result.append(nodeName()); | 1891 result.append(nodeName()); |
| 1894 | 1892 |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3516 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3514 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3517 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3515 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3518 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3516 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3519 return false; | 3517 return false; |
| 3520 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3518 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3521 return false; | 3519 return false; |
| 3522 return true; | 3520 return true; |
| 3523 } | 3521 } |
| 3524 | 3522 |
| 3525 } // namespace WebCore | 3523 } // namespace WebCore |
| OLD | NEW |