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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 s_shouldDeliver = false; | 85 s_shouldDeliver = false; |
86 if (!s_shouldNotifyInspector) { | 86 if (!s_shouldNotifyInspector) { |
87 s_currentDecl = 0; | 87 s_currentDecl = 0; |
88 return; | 88 return; |
89 } | 89 } |
90 // We have to clear internal state before calling Inspector's code. | 90 // We have to clear internal state before calling Inspector's code. |
91 PropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDecl; | 91 PropertySetCSSStyleDeclaration* localCopyStyleDecl = s_currentDecl; |
92 s_currentDecl = 0; | 92 s_currentDecl = 0; |
93 s_shouldNotifyInspector = false; | 93 s_shouldNotifyInspector = false; |
94 if (localCopyStyleDecl->parentElement() && localCopyStyleDecl->parentEle
ment()->document()) | 94 if (localCopyStyleDecl->parentElement()) |
95 InspectorInstrumentation::didInvalidateStyleAttr(localCopyStyleDecl-
>parentElement()->document(), localCopyStyleDecl->parentElement()); | 95 InspectorInstrumentation::didInvalidateStyleAttr(&localCopyStyleDecl
->parentElement()->document(), localCopyStyleDecl->parentElement()); |
96 } | 96 } |
97 | 97 |
98 void enqueueMutationRecord() | 98 void enqueueMutationRecord() |
99 { | 99 { |
100 s_shouldDeliver = true; | 100 s_shouldDeliver = true; |
101 } | 101 } |
102 | 102 |
103 void didInvalidateStyleAttr() | 103 void didInvalidateStyleAttr() |
104 { | 104 { |
105 s_shouldNotifyInspector = true; | 105 s_shouldNotifyInspector = true; |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 if (!m_parentElement) | 411 if (!m_parentElement) |
412 return; | 412 return; |
413 | 413 |
414 m_parentElement->setNeedsStyleRecalc(LocalStyleChange); | 414 m_parentElement->setNeedsStyleRecalc(LocalStyleChange); |
415 m_parentElement->invalidateStyleAttribute(); | 415 m_parentElement->invalidateStyleAttribute(); |
416 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); | 416 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); |
417 } | 417 } |
418 | 418 |
419 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const | 419 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const |
420 { | 420 { |
421 return m_parentElement ? m_parentElement->document()->elementSheet() : 0; | 421 return m_parentElement ? m_parentElement->document().elementSheet() : 0; |
422 } | 422 } |
423 | 423 |
424 } // namespace WebCore | 424 } // namespace WebCore |
OLD | NEW |