Index: Source/core/html/parser/HTMLTreeBuilder.h |
diff --git a/Source/core/html/parser/HTMLTreeBuilder.h b/Source/core/html/parser/HTMLTreeBuilder.h |
index eab7356278ac238256f6ebb0291568ae23e0317b..60ead95f286aa17116115565aa03de634f64b7a3 100644 |
--- a/Source/core/html/parser/HTMLTreeBuilder.h |
+++ b/Source/core/html/parser/HTMLTreeBuilder.h |
@@ -169,7 +169,7 @@ private: |
void defaultForAfterHead(); |
void defaultForInTableText(); |
- inline PassRefPtr<HTMLStackItem> adjustedCurrentStackItem() const; |
+ inline HTMLStackItem* adjustedCurrentStackItem() const; |
inline bool shouldProcessTokenInForeignContent(AtomicHTMLToken*); |
void processTokenInForeignContent(AtomicHTMLToken*); |
@@ -201,11 +201,12 @@ private: |
~FragmentParsingContext(); |
DocumentFragment* fragment() const { return m_fragment; } |
- Element* contextElement() const { ASSERT(m_fragment); return m_contextElement; } |
+ Element* contextElement() const { ASSERT(m_fragment); return m_contextElementStackItem->element(); } |
+ HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); return m_contextElementStackItem.get(); } |
private: |
DocumentFragment* m_fragment; |
- Element* m_contextElement; |
+ RefPtr<HTMLStackItem> m_contextElementStackItem; |
}; |
bool m_framesetOk; |