OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2008 David Smith (catfish.man@gmail.com) | 5 * (C) 2008 David Smith (catfish.man@gmail.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #ifndef NodeComputedStyle_h | 25 #ifndef NodeComputedStyle_h |
26 #define NodeComputedStyle_h | 26 #define NodeComputedStyle_h |
27 | 27 |
28 #include "core/dom/LayoutTreeBuilderTraversal.h" | 28 #include "core/dom/LayoutTreeBuilderTraversal.h" |
29 #include "core/dom/Node.h" | 29 #include "core/dom/Node.h" |
30 #include "core/dom/shadow/InsertionPoint.h" | 30 #include "core/dom/shadow/InsertionPoint.h" |
31 #include "core/html/HTMLOptGroupElement.h" | 31 #include "core/html/HTMLOptGroupElement.h" |
32 #include "core/layout/LayoutObject.h" | 32 #include "core/layout/LayoutObject.h" |
33 #include "core/style/ComputedStyle.h" | |
34 | 33 |
35 namespace blink { | 34 namespace blink { |
36 | 35 |
37 inline const ComputedStyle* Node::computedStyle() const { | 36 inline const ComputedStyle* Node::computedStyle() const { |
38 return mutableComputedStyle(); | 37 return mutableComputedStyle(); |
39 } | 38 } |
40 | 39 |
41 inline ComputedStyle* Node::mutableComputedStyle() const { | 40 inline ComputedStyle* Node::mutableComputedStyle() const { |
42 if (LayoutObject* layoutObject = this->layoutObject()) | 41 if (LayoutObject* layoutObject = this->layoutObject()) |
43 return layoutObject->mutableStyle(); | 42 return layoutObject->mutableStyle(); |
(...skipping 14 matching lines...) Expand all Loading... |
58 } | 57 } |
59 | 58 |
60 inline const ComputedStyle& Node::computedStyleRef() const { | 59 inline const ComputedStyle& Node::computedStyleRef() const { |
61 const ComputedStyle* style = computedStyle(); | 60 const ComputedStyle* style = computedStyle(); |
62 DCHECK(style); | 61 DCHECK(style); |
63 return *style; | 62 return *style; |
64 } | 63 } |
65 | 64 |
66 } // namespace blink | 65 } // namespace blink |
67 #endif // NodeComputedStyle_h | 66 #endif // NodeComputedStyle_h |
OLD | NEW |