OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. |
4 * | 5 * |
5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
8 * 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. |
9 * | 10 * |
10 * 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 14 * Library General Public License for more details. |
(...skipping 11 matching lines...) Expand all Loading... |
25 #include "core/dom/Element.h" | 26 #include "core/dom/Element.h" |
26 #include "core/style/ComputedStyleConstants.h" | 27 #include "core/style/ComputedStyleConstants.h" |
27 | 28 |
28 namespace blink { | 29 namespace blink { |
29 | 30 |
30 class ContainerNode; | 31 class ContainerNode; |
31 class Document; | 32 class Document; |
32 class Element; | 33 class Element; |
33 class ComputedStyle; | 34 class ComputedStyle; |
34 | 35 |
35 // ElementResolveContext is immutable and serves as an input to the style resolv
e process. | 36 // ElementResolveContext is immutable and serves as an input to the style |
| 37 // resolve process. |
36 class CORE_EXPORT ElementResolveContext { | 38 class CORE_EXPORT ElementResolveContext { |
37 STACK_ALLOCATED(); | 39 STACK_ALLOCATED(); |
38 | 40 |
39 public: | 41 public: |
40 explicit ElementResolveContext(const Document&); | 42 explicit ElementResolveContext(const Document&); |
41 | 43 |
42 explicit ElementResolveContext(Element&); | 44 explicit ElementResolveContext(Element&); |
43 | 45 |
44 Element* element() const { return m_element; } | 46 Element* element() const { return m_element; } |
45 const ContainerNode* parentNode() const { return m_parentNode; } | 47 const ContainerNode* parentNode() const { return m_parentNode; } |
(...skipping 10 matching lines...) Expand all Loading... |
56 Member<Element> m_element; | 58 Member<Element> m_element; |
57 Member<ContainerNode> m_parentNode; | 59 Member<ContainerNode> m_parentNode; |
58 const ComputedStyle* m_rootElementStyle; | 60 const ComputedStyle* m_rootElementStyle; |
59 EInsideLink m_elementLinkState; | 61 EInsideLink m_elementLinkState; |
60 bool m_distributedToInsertionPoint; | 62 bool m_distributedToInsertionPoint; |
61 }; | 63 }; |
62 | 64 |
63 } // namespace blink | 65 } // namespace blink |
64 | 66 |
65 #endif // ElementResolveContext_h | 67 #endif // ElementResolveContext_h |
OLD | NEW |