| 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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All rights reserved. | 4 * 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 27 matching lines...) Expand all Loading... |
| 38 class CORE_EXPORT ElementResolveContext { | 38 class CORE_EXPORT ElementResolveContext { |
| 39 STACK_ALLOCATED(); | 39 STACK_ALLOCATED(); |
| 40 | 40 |
| 41 public: | 41 public: |
| 42 explicit ElementResolveContext(const Document&); | 42 explicit ElementResolveContext(const Document&); |
| 43 | 43 |
| 44 explicit ElementResolveContext(Element&); | 44 explicit ElementResolveContext(Element&); |
| 45 | 45 |
| 46 Element* element() const { return m_element; } | 46 Element* element() const { return m_element; } |
| 47 const ContainerNode* parentNode() const { return m_parentNode; } | 47 const ContainerNode* parentNode() const { return m_parentNode; } |
| 48 const ContainerNode* layoutParent() const { return m_layoutParent; } |
| 48 const ComputedStyle* rootElementStyle() const { return m_rootElementStyle; } | 49 const ComputedStyle* rootElementStyle() const { return m_rootElementStyle; } |
| 49 const ComputedStyle* parentStyle() const { | 50 const ComputedStyle* parentStyle() const { |
| 50 return parentNode() ? parentNode()->computedStyle() : nullptr; | 51 return parentNode() ? parentNode()->computedStyle() : nullptr; |
| 51 } | 52 } |
| 53 const ComputedStyle* layoutParentStyle() const { |
| 54 return layoutParent() ? layoutParent()->computedStyle() : nullptr; |
| 55 } |
| 52 EInsideLink elementLinkState() const { return m_elementLinkState; } | 56 EInsideLink elementLinkState() const { return m_elementLinkState; } |
| 53 bool distributedToInsertionPoint() const { | 57 bool distributedToInsertionPoint() const { |
| 54 return m_distributedToInsertionPoint; | 58 return m_distributedToInsertionPoint; |
| 55 } | 59 } |
| 56 | 60 |
| 57 private: | 61 private: |
| 58 Member<Element> m_element; | 62 Member<Element> m_element; |
| 59 Member<ContainerNode> m_parentNode; | 63 Member<ContainerNode> m_parentNode; |
| 64 Member<ContainerNode> m_layoutParent; |
| 60 const ComputedStyle* m_rootElementStyle; | 65 const ComputedStyle* m_rootElementStyle; |
| 61 EInsideLink m_elementLinkState; | 66 EInsideLink m_elementLinkState; |
| 62 bool m_distributedToInsertionPoint; | 67 bool m_distributedToInsertionPoint; |
| 63 }; | 68 }; |
| 64 | 69 |
| 65 } // namespace blink | 70 } // namespace blink |
| 66 | 71 |
| 67 #endif // ElementResolveContext_h | 72 #endif // ElementResolveContext_h |
| OLD | NEW |