| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 bool important = priority.find("important", 0, false) != notFound; | 223 bool important = priority.find("important", 0, false) != notFound; |
| 224 | 224 |
| 225 willMutate(); | 225 willMutate(); |
| 226 | 226 |
| 227 ec = 0; | 227 ec = 0; |
| 228 bool changed = m_propertySet->setProperty(propertyID, value, important, cont
extStyleSheet()); | 228 bool changed = m_propertySet->setProperty(propertyID, value, important, cont
extStyleSheet()); |
| 229 | 229 |
| 230 didMutate(changed ? PropertyChanged : NoChanges); | 230 didMutate(changed ? PropertyChanged : NoChanges); |
| 231 | 231 |
| 232 if (changed) { | 232 if (changed) { |
| 233 // CSS DOM requires raising SYNTAX_ERR of parsing failed, but this is to
o dangerous for compatibility, | 233 // CSS DOM requires raising SyntaxError of parsing failed, but this is t
oo dangerous for compatibility, |
| 234 // see <http://bugs.webkit.org/show_bug.cgi?id=7296>. | 234 // see <http://bugs.webkit.org/show_bug.cgi?id=7296>. |
| 235 mutationScope.enqueueMutationRecord(); | 235 mutationScope.enqueueMutationRecord(); |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 String PropertySetCSSStyleDeclaration::removeProperty(const String& propertyName
, ExceptionCode& ec) | 239 String PropertySetCSSStyleDeclaration::removeProperty(const String& propertyName
, ExceptionCode& ec) |
| 240 { | 240 { |
| 241 StyleAttributeMutationScope mutationScope(this); | 241 StyleAttributeMutationScope mutationScope(this); |
| 242 CSSPropertyID propertyID = cssPropertyID(propertyName); | 242 CSSPropertyID propertyID = cssPropertyID(propertyName); |
| 243 if (!propertyID) | 243 if (!propertyID) |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 m_parentElement->invalidateStyleAttribute(); | 394 m_parentElement->invalidateStyleAttribute(); |
| 395 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); | 395 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); |
| 396 } | 396 } |
| 397 | 397 |
| 398 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const | 398 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const |
| 399 { | 399 { |
| 400 return m_parentElement ? m_parentElement->document()->elementSheet() : 0; | 400 return m_parentElement ? m_parentElement->document()->elementSheet() : 0; |
| 401 } | 401 } |
| 402 | 402 |
| 403 } // namespace WebCore | 403 } // namespace WebCore |
| OLD | NEW |