| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/dom/Element.h" | 27 #include "core/dom/Element.h" |
| 28 | 28 |
| 29 #include "CSSValueKeywords.h" | 29 #include "CSSValueKeywords.h" |
| 30 #include "RuntimeEnabledFeatures.h" | 30 #include "RuntimeEnabledFeatures.h" |
| 31 #include "SVGNames.h" | 31 #include "SVGNames.h" |
| 32 #include "XMLNames.h" | 32 #include "XMLNames.h" |
| 33 #include "bindings/v8/ExceptionState.h" | 33 #include "bindings/v8/ExceptionState.h" |
| 34 #include "core/accessibility/AXObjectCache.h" | 34 #include "core/accessibility/AXObjectCache.h" |
| 35 #include "core/animation/DocumentTimeline.h" | 35 #include "core/animation/DocumentTimeline.h" |
| 36 #include "core/animation/css/CSSAnimations.h" | 36 #include "core/animation/css/CSSAnimations.h" |
| 37 #include "core/css/CSSParser.h" | 37 #include "core/css/parser/BisonCSSParser.h" |
| 38 #include "core/css/CSSStyleSheet.h" | 38 #include "core/css/CSSStyleSheet.h" |
| 39 #include "core/css/CSSValuePool.h" | 39 #include "core/css/CSSValuePool.h" |
| 40 #include "core/css/PropertySetCSSStyleDeclaration.h" | 40 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 41 #include "core/css/StylePropertySet.h" | 41 #include "core/css/StylePropertySet.h" |
| 42 #include "core/css/resolver/StyleResolver.h" | 42 #include "core/css/resolver/StyleResolver.h" |
| 43 #include "core/dom/Attr.h" | 43 #include "core/dom/Attr.h" |
| 44 #include "core/dom/CSSSelectorWatch.h" | 44 #include "core/dom/CSSSelectorWatch.h" |
| 45 #include "core/dom/ClientRect.h" | 45 #include "core/dom/ClientRect.h" |
| 46 #include "core/dom/ClientRectList.h" | 46 #include "core/dom/ClientRectList.h" |
| 47 #include "core/dom/DatasetDOMStringMap.h" | 47 #include "core/dom/DatasetDOMStringMap.h" |
| (...skipping 3438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3486 // Avoid redundant work if we're using shared attribute data with already pa
rsed inline style. | 3486 // Avoid redundant work if we're using shared attribute data with already pa
rsed inline style. |
| 3487 if (inlineStyle && !elementData()->isUnique()) | 3487 if (inlineStyle && !elementData()->isUnique()) |
| 3488 return; | 3488 return; |
| 3489 | 3489 |
| 3490 // We reconstruct the property set instead of mutating if there is no CSSOM
wrapper. | 3490 // We reconstruct the property set instead of mutating if there is no CSSOM
wrapper. |
| 3491 // This makes wrapperless property sets immutable and so cacheable. | 3491 // This makes wrapperless property sets immutable and so cacheable. |
| 3492 if (inlineStyle && !inlineStyle->isMutable()) | 3492 if (inlineStyle && !inlineStyle->isMutable()) |
| 3493 inlineStyle.clear(); | 3493 inlineStyle.clear(); |
| 3494 | 3494 |
| 3495 if (!inlineStyle) { | 3495 if (!inlineStyle) { |
| 3496 inlineStyle = CSSParser::parseInlineStyleDeclaration(newStyleString, thi
s); | 3496 inlineStyle = BisonCSSParser::parseInlineStyleDeclaration(newStyleString
, this); |
| 3497 } else { | 3497 } else { |
| 3498 ASSERT(inlineStyle->isMutable()); | 3498 ASSERT(inlineStyle->isMutable()); |
| 3499 static_pointer_cast<MutableStylePropertySet>(inlineStyle)->parseDeclarat
ion(newStyleString, document().elementSheet()->contents()); | 3499 static_pointer_cast<MutableStylePropertySet>(inlineStyle)->parseDeclarat
ion(newStyleString, document().elementSheet()->contents()); |
| 3500 } | 3500 } |
| 3501 } | 3501 } |
| 3502 | 3502 |
| 3503 void Element::styleAttributeChanged(const AtomicString& newStyleString, Attribut
eModificationReason modificationReason) | 3503 void Element::styleAttributeChanged(const AtomicString& newStyleString, Attribut
eModificationReason modificationReason) |
| 3504 { | 3504 { |
| 3505 ASSERT(isStyledElement()); | 3505 ASSERT(isStyledElement()); |
| 3506 WTF::OrdinalNumber startLineNumber = WTF::OrdinalNumber::beforeFirst(); | 3506 WTF::OrdinalNumber startLineNumber = WTF::OrdinalNumber::beforeFirst(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3655 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3655 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3656 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3656 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3657 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3657 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3658 return false; | 3658 return false; |
| 3659 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3659 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3660 return false; | 3660 return false; |
| 3661 return true; | 3661 return true; |
| 3662 } | 3662 } |
| 3663 | 3663 |
| 3664 } // namespace WebCore | 3664 } // namespace WebCore |
| OLD | NEW |