Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index f505c5452fd357c3cfceae4ad42e0b2e2c5fdf5c..b1c18357732c091eeef0ecae133adfa93219f9ce 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -902,11 +902,7 @@ String createFullMarkup(const Node* node) |
if (!node) |
return String(); |
- Document* document = node->document(); |
- if (!document) |
- return String(); |
- |
- Frame* frame = document->frame(); |
+ Frame* frame = node->document()->frame(); |
if (!frame) |
return String(); |
@@ -928,11 +924,7 @@ String createFullMarkup(const Range* range) |
if (!node) |
return String(); |
- Document* document = node->document(); |
- if (!document) |
- return String(); |
- |
- Frame* frame = document->frame(); |
+ Frame* frame = node->document()->frame(); |
if (!frame) |
return String(); |