Index: Source/core/css/resolver/ElementResolveContext.h |
diff --git a/Source/core/css/resolver/ElementResolveContext.h b/Source/core/css/resolver/ElementResolveContext.h |
index fcb43631ed5ffe9ee2398436cd26113a6b904c50..ebbe1cfe50f680aa7da2d158c435e8a89fa8bd4a 100644 |
--- a/Source/core/css/resolver/ElementResolveContext.h |
+++ b/Source/core/css/resolver/ElementResolveContext.h |
@@ -47,9 +47,8 @@ public: |
explicit ElementResolveContext(Element*); |
- // FIXME: This should return a reference. |
- Document* document() const { return m_element->document(); } |
- bool isDocumentElement() const { return m_element && m_element == m_element->document()->documentElement(); } |
+ Document& document() const { return m_element->document(); } |
+ bool isDocumentElement() const { return m_element && m_element == m_element->document().documentElement(); } |
Element* element() const { return m_element; } |
const ContainerNode* parentNode() const { return m_parentNode; } |