Index: Source/core/html/LabelableElement.cpp |
diff --git a/Source/core/html/LabelableElement.cpp b/Source/core/html/LabelableElement.cpp |
index 8f31d0cfda782fb015c946b6c454ddcaa3d91c24..d741dd2555410d9da08a531c05d2b6de339008ba 100644 |
--- a/Source/core/html/LabelableElement.cpp |
+++ b/Source/core/html/LabelableElement.cpp |
@@ -43,8 +43,6 @@ PassRefPtr<NodeList> LabelableElement::labels() |
{ |
if (!supportLabels()) |
return 0; |
- if (!document()) |
- return 0; |
return ensureRareData()->ensureNodeLists()->addCacheWithAtomicName<LabelsNodeList>(this, LabelsNodeListType, starAtom); |
} |