Index: Source/core/html/HTMLTableElement.cpp |
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp |
index 6b1ab32e074b901e4a5084525f461eb616295af1..088167c56f992f5afe8d0380648e4d8d9808df39 100644 |
--- a/Source/core/html/HTMLTableElement.cpp |
+++ b/Source/core/html/HTMLTableElement.cpp |
@@ -393,7 +393,7 @@ void HTMLTableElement::parseAttribute(const QualifiedName& name, const AtomicStr |
static PassRefPtrWillBeRawPtr<StylePropertySet> createBorderStyle(CSSValueID value) |
{ |
- RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
+ RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksMode); |
style->setProperty(CSSPropertyBorderTopStyle, value); |
style->setProperty(CSSPropertyBorderBottomStyle, value); |
style->setProperty(CSSPropertyBorderLeftStyle, value); |
@@ -449,7 +449,7 @@ HTMLTableElement::CellBorders HTMLTableElement::cellBorders() const |
PassRefPtrWillBeRawPtr<StylePropertySet> HTMLTableElement::createSharedCellStyle() |
{ |
- RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
+ RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksMode); |
switch (cellBorders()) { |
case SolidBordersColsOnly: |
@@ -496,7 +496,7 @@ const StylePropertySet* HTMLTableElement::additionalCellStyle() |
static PassRefPtrWillBeRawPtr<StylePropertySet> createGroupBorderStyle(int rows) |
{ |
- RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
+ RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(HTMLQuirksMode); |
if (rows) { |
style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin); |
style->setProperty(CSSPropertyBorderBottomWidth, CSSValueThin); |