Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 7a89c530f22cd28b1aef7c369537a23d1ddd02f3..6a48d227def06c8a70cf06a2e543e3c8ca961342 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -35,6 +35,7 @@ |
#include "core/editing/htmlediting.h" |
#include "core/html/HTMLAnchorElement.h" |
#include "core/html/HTMLElement.h" |
+#include "core/html/HTMLTableElement.h" |
#include "core/page/EventHandler.h" |
#include "core/page/Frame.h" |
#include "core/page/FrameView.h" |
@@ -3048,7 +3049,7 @@ Element* RenderObject::offsetParent() const |
if (node->hasTagName(HTMLNames::bodyTag)) |
break; |
- if (!isPositioned() && (node->hasTagName(tableTag) || node->hasTagName(tdTag) || node->hasTagName(thTag))) |
+ if (!isPositioned() && (isHTMLTableElement(node) || node->hasTagName(tdTag) || node->hasTagName(thTag))) |
break; |
// Webkit specific extension where offsetParent stops at zoom level changes. |