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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 RenderObject* previousRenderer() const; | 61 RenderObject* previousRenderer() const; |
62 InsertionPoint* insertionPoint() const; | 62 InsertionPoint* insertionPoint() const; |
63 | 63 |
64 const RenderStyle* style() const; | 64 const RenderStyle* style() const; |
65 | 65 |
66 bool isOnUpperEncapsulationBoundary() const; | 66 bool isOnUpperEncapsulationBoundary() const; |
67 bool isOnEncapsulationBoundary() const; | 67 bool isOnEncapsulationBoundary() const; |
68 | 68 |
69 private: | 69 private: |
70 bool shouldCreateRenderer() const; | 70 bool shouldCreateRenderer() const; |
71 bool shouldMoveToFlowThread() const; | |
72 void moveToFlowThread(); | |
71 void moveToFlowThreadIfNeeded(); | 73 void moveToFlowThreadIfNeeded(); |
74 PassRefPtr<RenderStyle> getStyleForRenderer() const; | |
esprehn
2013/06/17 21:41:02
styleForRenderer(). Methods shouldn't be prefixed
| |
72 | 75 |
73 Node* m_node; | 76 Node* m_node; |
74 ContainerNode* m_renderingParent; | 77 ContainerNode* m_renderingParent; |
75 NodeRenderingTraversal::ParentDetails m_parentDetails; | 78 NodeRenderingTraversal::ParentDetails m_parentDetails; |
76 RefPtr<RenderStyle> m_style; | 79 mutable RefPtr<RenderStyle> m_style; // Cache of node's styleForRenderer. |
77 RenderNamedFlowThread* m_parentFlowRenderer; | 80 RenderNamedFlowThread* m_parentFlowRenderer; |
78 AtomicString m_flowThread; | |
79 }; | 81 }; |
80 | 82 |
81 inline Node* NodeRenderingContext::node() const | 83 inline Node* NodeRenderingContext::node() const |
82 { | 84 { |
83 return m_node; | 85 return m_node; |
84 } | 86 } |
85 | 87 |
86 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st | 88 inline ContainerNode* NodeRenderingContext::parentNodeForRenderingAndStyle() con st |
87 { | 89 { |
88 return m_renderingParent; | 90 return m_renderingParent; |
(...skipping 10 matching lines...) Expand all Loading... | |
99 } | 101 } |
100 | 102 |
101 inline InsertionPoint* NodeRenderingContext::insertionPoint() const | 103 inline InsertionPoint* NodeRenderingContext::insertionPoint() const |
102 { | 104 { |
103 return m_parentDetails.insertionPoint(); | 105 return m_parentDetails.insertionPoint(); |
104 } | 106 } |
105 | 107 |
106 } // namespace WebCore | 108 } // namespace WebCore |
107 | 109 |
108 #endif | 110 #endif |
OLD | NEW |