Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: Source/WebCore/css/CSSMutableValue.h

Issue 7002001: Revert 79985 - 2011-03-01 Nikolas Zimmermann <nzimmermann@rim.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef CSSMutableValue_h
21 #define CSSMutableValue_h
22
23 #include "CSSValue.h"
24 #include "Node.h"
25
26 namespace WebCore {
27
28 class CSSMutableValue : public CSSValue {
29 public:
30 CSSMutableValue()
31 : m_node(0)
32 {
33 }
34
35 virtual ~CSSMutableValue() { }
36 virtual bool isMutableValue() const { return true; }
37
38 Node* node() const { return m_node; }
39 void setNode(Node* node) { m_node = node; }
40
41 void setNeedsStyleRecalc()
42 {
43 if (!m_node)
44 return;
45 m_node->setNeedsStyleRecalc(FullStyleChange);
46 }
47
48 private:
49 Node* m_node;
50 };
51
52 } // namespace WebCore
53
54 #endif // CSSMutableValue_h
OLDNEW
« no previous file with comments | « Source/WebCore/css/CSSMutableStyleDeclaration.cpp ('k') | Source/WebCore/css/CSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698