| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "core/css/PropertySetCSSStyleDeclaration.h" | 23 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 24 | 24 |
| 25 #include "HTMLNames.h" | 25 #include "HTMLNames.h" |
| 26 #include "InspectorInstrumentation.h" | 26 #include "InspectorInstrumentation.h" |
| 27 #include "MutationObserverInterestGroup.h" | |
| 28 #include "MutationRecord.h" | |
| 29 #include "StyledElement.h" | |
| 30 #include "WebCoreMemoryInstrumentation.h" | |
| 31 #include "core/css/CSSParser.h" | 27 #include "core/css/CSSParser.h" |
| 32 #include "core/css/CSSStyleSheet.h" | 28 #include "core/css/CSSStyleSheet.h" |
| 33 #include "core/css/StylePropertySet.h" | 29 #include "core/css/StylePropertySet.h" |
| 30 #include "core/dom/MutationObserverInterestGroup.h" |
| 31 #include "core/dom/MutationRecord.h" |
| 32 #include "core/dom/StyledElement.h" |
| 33 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 34 #include <wtf/MemoryInstrumentationHashMap.h> | 34 #include <wtf/MemoryInstrumentationHashMap.h> |
| 35 | 35 |
| 36 using namespace std; | 36 using namespace std; |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 class StyleAttributeMutationScope { | 42 class StyleAttributeMutationScope { |
| 43 WTF_MAKE_NONCOPYABLE(StyleAttributeMutationScope); | 43 WTF_MAKE_NONCOPYABLE(StyleAttributeMutationScope); |
| (...skipping 350 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 |