| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal
(CSSPropertyID propertyID) | 252 PassRefPtr<CSSValue> PropertySetCSSStyleDeclaration::getPropertyCSSValueInternal
(CSSPropertyID propertyID) |
| 253 { | 253 { |
| 254 return m_propertySet->getPropertyCSSValue(propertyID); | 254 return m_propertySet->getPropertyCSSValue(propertyID); |
| 255 } | 255 } |
| 256 | 256 |
| 257 String PropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPropertyID pr
opertyID) | 257 String PropertySetCSSStyleDeclaration::getPropertyValueInternal(CSSPropertyID pr
opertyID) |
| 258 { | 258 { |
| 259 return m_propertySet->getPropertyValue(propertyID); | 259 return m_propertySet->getPropertyValue(propertyID); |
| 260 } | 260 } |
| 261 | 261 |
| 262 void PropertySetCSSStyleDeclaration::setPropertyInternal(CSSPropertyID propertyI
D, const String& value, bool important, ExceptionState& exceptionState) | 262 void PropertySetCSSStyleDeclaration::setPropertyInternal(CSSPropertyID propertyI
D, const String& value, bool important, ExceptionState&) |
| 263 { | 263 { |
| 264 StyleAttributeMutationScope mutationScope(this); | 264 StyleAttributeMutationScope mutationScope(this); |
| 265 willMutate(); | 265 willMutate(); |
| 266 | 266 |
| 267 bool changed = m_propertySet->setProperty(propertyID, value, important, cont
extStyleSheet()); | 267 bool changed = m_propertySet->setProperty(propertyID, value, important, cont
extStyleSheet()); |
| 268 | 268 |
| 269 didMutate(changed ? PropertyChanged : NoChanges); | 269 didMutate(changed ? PropertyChanged : NoChanges); |
| 270 | 270 |
| 271 if (changed) | 271 if (changed) |
| 272 mutationScope.enqueueMutationRecord(); | 272 mutationScope.enqueueMutationRecord(); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 m_parentElement->invalidateStyleAttribute(); | 425 m_parentElement->invalidateStyleAttribute(); |
| 426 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); | 426 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); |
| 427 } | 427 } |
| 428 | 428 |
| 429 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const | 429 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const |
| 430 { | 430 { |
| 431 return m_parentElement ? m_parentElement->document().elementSheet() : 0; | 431 return m_parentElement ? m_parentElement->document().elementSheet() : 0; |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace WebCore | 434 } // namespace WebCore |
| OLD | NEW |