Index: Source/core/editing/SpellChecker.h |
diff --git a/Source/core/editing/SpellChecker.h b/Source/core/editing/SpellChecker.h |
index 549fa615966ee0c7a2d2d80a8f85a7cbaf196937..b28c56a1fd79af462e74a32eba884638acdb570f 100644 |
--- a/Source/core/editing/SpellChecker.h |
+++ b/Source/core/editing/SpellChecker.h |
@@ -92,7 +92,11 @@ public: |
private: |
explicit SpellChecker(LocalFrame&); |
- LocalFrame& frame() const { return *m_frame; } |
+ LocalFrame& frame() const |
+ { |
+ ASSERT(m_frame); |
+ return *m_frame; |
+ } |
void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpelling, RefPtrWillBeRawPtr<Range>& firstMisspellingRange); |
TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); |