| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index f61c8a10a4c71d28ecd670b4c04f7f85f58010aa..5ed2e37e23c799ea5ad98f6b0df5581231a0b6ce 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -82,6 +82,7 @@
|
| #include "core/html/HTMLIFrameElement.h"
|
| #include "core/html/HTMLInputElement.h"
|
| #include "core/html/HTMLOptGroupElement.h"
|
| +#include "core/html/HTMLTableElement.h"
|
| #include "core/html/track/WebVTTElement.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/loader/cache/CachedDocument.h"
|
| @@ -1463,7 +1464,7 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
|
| if (e->hasTagName(tdTag)) {
|
| style->setDisplay(TABLE_CELL);
|
| style->setFloating(NoFloat);
|
| - } else if (e->hasTagName(tableTag))
|
| + } else if (isHTMLTableElement(e))
|
| style->setDisplay(style->isDisplayInlineType() ? INLINE_TABLE : TABLE);
|
| }
|
|
|
| @@ -1480,7 +1481,7 @@ void StyleResolver::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
|
| }
|
|
|
| // Tables never support the -webkit-* values for text-align and will reset back to the default.
|
| - if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT || style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT))
|
| + if (e && isHTMLTableElement(e) && (style->textAlign() == WEBKIT_LEFT || style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT))
|
| style->setTextAlign(TASTART);
|
|
|
| // Frames and framesets never honor position:relative or position:absolute. This is necessary to
|
|
|