| 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.
All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 , m_parentNode(0) | 40 , m_parentNode(0) |
| 41 , m_rootElementStyle(0) | 41 , m_rootElementStyle(0) |
| 42 , m_elementLinkState(NotInsideLink) | 42 , m_elementLinkState(NotInsideLink) |
| 43 , m_distributedToInsertionPoint(false) | 43 , m_distributedToInsertionPoint(false) |
| 44 , m_resetStyleInheritance(false) | 44 , m_resetStyleInheritance(false) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 explicit ElementResolveContext(Element*); | 48 explicit ElementResolveContext(Element*); |
| 49 | 49 |
| 50 // FIXME: This should return a reference. |
| 50 Document* document() const { return m_element->document(); } | 51 Document* document() const { return m_element->document(); } |
| 51 bool isDocumentElement() const { return m_element && m_element == m_element-
>document()->documentElement(); } | 52 bool isDocumentElement() const { return m_element && m_element == m_element-
>document()->documentElement(); } |
| 52 | 53 |
| 53 Element* element() const { return m_element; } | 54 Element* element() const { return m_element; } |
| 54 const ContainerNode* parentNode() const { return m_parentNode; } | 55 const ContainerNode* parentNode() const { return m_parentNode; } |
| 55 RenderStyle* rootElementStyle() const { return m_rootElementStyle; } | 56 RenderStyle* rootElementStyle() const { return m_rootElementStyle; } |
| 56 EInsideLink elementLinkState() const { return m_elementLinkState; } | 57 EInsideLink elementLinkState() const { return m_elementLinkState; } |
| 57 bool distributedToInsertionPoint() const { return m_distributedToInsertionPo
int; } | 58 bool distributedToInsertionPoint() const { return m_distributedToInsertionPo
int; } |
| 58 bool resetStyleInheritance() const { return m_resetStyleInheritance; } | 59 bool resetStyleInheritance() const { return m_resetStyleInheritance; } |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 Element* m_element; | 62 Element* m_element; |
| 62 ContainerNode* m_parentNode; | 63 ContainerNode* m_parentNode; |
| 63 RenderStyle* m_rootElementStyle; | 64 RenderStyle* m_rootElementStyle; |
| 64 EInsideLink m_elementLinkState; | 65 EInsideLink m_elementLinkState; |
| 65 bool m_distributedToInsertionPoint; | 66 bool m_distributedToInsertionPoint; |
| 66 bool m_resetStyleInheritance; | 67 bool m_resetStyleInheritance; |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace WebCore | 70 } // namespace WebCore |
| 70 | 71 |
| 71 #endif // ElementResolveContext_h | 72 #endif // ElementResolveContext_h |
| OLD | NEW |