| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/XLinkNames.h" | 37 #include "core/XLinkNames.h" |
| 38 #include "core/XMLNames.h" | 38 #include "core/XMLNames.h" |
| 39 #include "core/accessibility/AXObjectCache.h" | 39 #include "core/accessibility/AXObjectCache.h" |
| 40 #include "core/animation/AnimationTimeline.h" | 40 #include "core/animation/AnimationTimeline.h" |
| 41 #include "core/animation/css/CSSAnimations.h" | 41 #include "core/animation/css/CSSAnimations.h" |
| 42 #include "core/css/CSSImageValue.h" | 42 #include "core/css/CSSImageValue.h" |
| 43 #include "core/css/CSSStyleSheet.h" | 43 #include "core/css/CSSStyleSheet.h" |
| 44 #include "core/css/CSSValuePool.h" | 44 #include "core/css/CSSValuePool.h" |
| 45 #include "core/css/PropertySetCSSStyleDeclaration.h" | 45 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 46 #include "core/css/StylePropertySet.h" | 46 #include "core/css/StylePropertySet.h" |
| 47 #include "core/css/parser/BisonCSSParser.h" | 47 #include "core/css/parser/CSSParser.h" |
| 48 #include "core/css/resolver/StyleResolver.h" | 48 #include "core/css/resolver/StyleResolver.h" |
| 49 #include "core/css/resolver/StyleResolverParentScope.h" | 49 #include "core/css/resolver/StyleResolverParentScope.h" |
| 50 #include "core/dom/Attr.h" | 50 #include "core/dom/Attr.h" |
| 51 #include "core/dom/CSSSelectorWatch.h" | 51 #include "core/dom/CSSSelectorWatch.h" |
| 52 #include "core/dom/ClientRect.h" | 52 #include "core/dom/ClientRect.h" |
| 53 #include "core/dom/ClientRectList.h" | 53 #include "core/dom/ClientRectList.h" |
| 54 #include "core/dom/DatasetDOMStringMap.h" | 54 #include "core/dom/DatasetDOMStringMap.h" |
| 55 #include "core/dom/ElementDataCache.h" | 55 #include "core/dom/ElementDataCache.h" |
| 56 #include "core/dom/ElementRareData.h" | 56 #include "core/dom/ElementRareData.h" |
| 57 #include "core/dom/ElementTraversal.h" | 57 #include "core/dom/ElementTraversal.h" |
| (...skipping 3022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 // Avoid redundant work if we're using shared attribute data with already pa
rsed inline style. | 3080 // Avoid redundant work if we're using shared attribute data with already pa
rsed inline style. |
| 3081 if (inlineStyle && !elementData()->isUnique()) | 3081 if (inlineStyle && !elementData()->isUnique()) |
| 3082 return; | 3082 return; |
| 3083 | 3083 |
| 3084 // We reconstruct the property set instead of mutating if there is no CSSOM
wrapper. | 3084 // We reconstruct the property set instead of mutating if there is no CSSOM
wrapper. |
| 3085 // This makes wrapperless property sets immutable and so cacheable. | 3085 // This makes wrapperless property sets immutable and so cacheable. |
| 3086 if (inlineStyle && !inlineStyle->isMutable()) | 3086 if (inlineStyle && !inlineStyle->isMutable()) |
| 3087 inlineStyle.clear(); | 3087 inlineStyle.clear(); |
| 3088 | 3088 |
| 3089 if (!inlineStyle) { | 3089 if (!inlineStyle) { |
| 3090 inlineStyle = BisonCSSParser::parseInlineStyleDeclaration(newStyleString
, this); | 3090 inlineStyle = CSSParser::parseInlineStyleDeclaration(newStyleString, thi
s); |
| 3091 } else { | 3091 } else { |
| 3092 ASSERT(inlineStyle->isMutable()); | 3092 ASSERT(inlineStyle->isMutable()); |
| 3093 static_cast<MutableStylePropertySet*>(inlineStyle.get())->parseDeclarati
on(newStyleString, document().elementSheet().contents()); | 3093 static_cast<MutableStylePropertySet*>(inlineStyle.get())->parseDeclarati
on(newStyleString, document().elementSheet().contents()); |
| 3094 } | 3094 } |
| 3095 } | 3095 } |
| 3096 | 3096 |
| 3097 void Element::styleAttributeChanged(const AtomicString& newStyleString, Attribut
eModificationReason modificationReason) | 3097 void Element::styleAttributeChanged(const AtomicString& newStyleString, Attribut
eModificationReason modificationReason) |
| 3098 { | 3098 { |
| 3099 ASSERT(isStyledElement()); | 3099 ASSERT(isStyledElement()); |
| 3100 WTF::OrdinalNumber startLineNumber = WTF::OrdinalNumber::beforeFirst(); | 3100 WTF::OrdinalNumber startLineNumber = WTF::OrdinalNumber::beforeFirst(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3267 return v8::Handle<v8::Object>(); | 3267 return v8::Handle<v8::Object>(); |
| 3268 | 3268 |
| 3269 wrapper->SetPrototype(binding->prototype()); | 3269 wrapper->SetPrototype(binding->prototype()); |
| 3270 | 3270 |
| 3271 wrapperType->refObject(toScriptWrappableBase()); | 3271 wrapperType->refObject(toScriptWrappableBase()); |
| 3272 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); | 3272 V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapp
er, isolate); |
| 3273 return wrapper; | 3273 return wrapper; |
| 3274 } | 3274 } |
| 3275 | 3275 |
| 3276 } // namespace blink | 3276 } // namespace blink |
| OLD | NEW |