| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 { | 308 { |
| 309 ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled()); | 309 ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled()); |
| 310 StyleAttributeMutationScope mutationScope(this); | 310 StyleAttributeMutationScope mutationScope(this); |
| 311 willMutate(); | 311 willMutate(); |
| 312 bool changed = m_propertySet->clearVariables(); | 312 bool changed = m_propertySet->clearVariables(); |
| 313 didMutate(changed ? PropertyChanged : NoChanges); | 313 didMutate(changed ? PropertyChanged : NoChanges); |
| 314 if (changed) | 314 if (changed) |
| 315 mutationScope.enqueueMutationRecord(); | 315 mutationScope.enqueueMutationRecord(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 PassRefPtr<CSSVariablesIterator> PropertySetCSSStyleDeclaration::variablesIterat
or() const |
| 319 { |
| 320 return m_propertySet->variablesIterator(); |
| 321 } |
| 322 |
| 318 CSSValue* PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM(CSSValue* intern
alValue) | 323 CSSValue* PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM(CSSValue* intern
alValue) |
| 319 { | 324 { |
| 320 if (!internalValue) | 325 if (!internalValue) |
| 321 return 0; | 326 return 0; |
| 322 | 327 |
| 323 // The map is here to maintain the object identity of the CSSValues over mul
tiple invocations. | 328 // The map is here to maintain the object identity of the CSSValues over mul
tiple invocations. |
| 324 // FIXME: It is likely that the identity is not important for web compatibil
ity and this code should be removed. | 329 // FIXME: It is likely that the identity is not important for web compatibil
ity and this code should be removed. |
| 325 if (!m_cssomCSSValueClones) | 330 if (!m_cssomCSSValueClones) |
| 326 m_cssomCSSValueClones = adoptPtr(new HashMap<CSSValue*, RefPtr<CSSValue>
>); | 331 m_cssomCSSValueClones = adoptPtr(new HashMap<CSSValue*, RefPtr<CSSValue>
>); |
| 327 | 332 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 m_parentElement->invalidateStyleAttribute(); | 420 m_parentElement->invalidateStyleAttribute(); |
| 416 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); | 421 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); |
| 417 } | 422 } |
| 418 | 423 |
| 419 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const | 424 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const |
| 420 { | 425 { |
| 421 return m_parentElement ? m_parentElement->document()->elementSheet() : 0; | 426 return m_parentElement ? m_parentElement->document()->elementSheet() : 0; |
| 422 } | 427 } |
| 423 | 428 |
| 424 } // namespace WebCore | 429 } // namespace WebCore |
| OLD | NEW |