| 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 |
| 4 * rights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * | 6 * |
| 6 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| 10 * | 11 * |
| 11 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 m_parentRule(parentRule) {} | 344 m_parentRule(parentRule) {} |
| 344 | 345 |
| 345 StyleRuleCSSStyleDeclaration::~StyleRuleCSSStyleDeclaration() {} | 346 StyleRuleCSSStyleDeclaration::~StyleRuleCSSStyleDeclaration() {} |
| 346 | 347 |
| 347 void StyleRuleCSSStyleDeclaration::willMutate() { | 348 void StyleRuleCSSStyleDeclaration::willMutate() { |
| 348 if (m_parentRule && m_parentRule->parentStyleSheet()) | 349 if (m_parentRule && m_parentRule->parentStyleSheet()) |
| 349 m_parentRule->parentStyleSheet()->willMutateRules(); | 350 m_parentRule->parentStyleSheet()->willMutateRules(); |
| 350 } | 351 } |
| 351 | 352 |
| 352 void StyleRuleCSSStyleDeclaration::didMutate(MutationType type) { | 353 void StyleRuleCSSStyleDeclaration::didMutate(MutationType type) { |
| 353 // Style sheet mutation needs to be signaled even if the change failed. willMu
tateRules/didMutateRules must pair. | 354 // Style sheet mutation needs to be signaled even if the change failed. |
| 355 // willMutateRules/didMutateRules must pair. |
| 354 if (m_parentRule && m_parentRule->parentStyleSheet()) | 356 if (m_parentRule && m_parentRule->parentStyleSheet()) |
| 355 m_parentRule->parentStyleSheet()->didMutateRules(); | 357 m_parentRule->parentStyleSheet()->didMutateRules(); |
| 356 } | 358 } |
| 357 | 359 |
| 358 CSSStyleSheet* StyleRuleCSSStyleDeclaration::parentStyleSheet() const { | 360 CSSStyleSheet* StyleRuleCSSStyleDeclaration::parentStyleSheet() const { |
| 359 return m_parentRule ? m_parentRule->parentStyleSheet() : nullptr; | 361 return m_parentRule ? m_parentRule->parentStyleSheet() : nullptr; |
| 360 } | 362 } |
| 361 | 363 |
| 362 void StyleRuleCSSStyleDeclaration::reattach( | 364 void StyleRuleCSSStyleDeclaration::reattach( |
| 363 MutableStylePropertySet& propertySet) { | 365 MutableStylePropertySet& propertySet) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 392 return m_parentElement ? &m_parentElement->document().elementSheet() | 394 return m_parentElement ? &m_parentElement->document().elementSheet() |
| 393 : nullptr; | 395 : nullptr; |
| 394 } | 396 } |
| 395 | 397 |
| 396 DEFINE_TRACE(InlineCSSStyleDeclaration) { | 398 DEFINE_TRACE(InlineCSSStyleDeclaration) { |
| 397 visitor->trace(m_parentElement); | 399 visitor->trace(m_parentElement); |
| 398 AbstractPropertySetCSSStyleDeclaration::trace(visitor); | 400 AbstractPropertySetCSSStyleDeclaration::trace(visitor); |
| 399 } | 401 } |
| 400 | 402 |
| 401 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |