Index: third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
index 23cfa78d85d8d39b1c60229ae08aadf51b00091a..a3fdf43e2bd02e81fb470857873e1a8385aec627 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp |
@@ -328,8 +328,10 @@ void HTMLTableElement::collectStyleForPresentationAttribute( |
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, |
value); |
} else if (name == cellspacingAttr) { |
- if (!value.isEmpty()) |
- addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value); |
+ if (!value.isEmpty()) { |
+ addHTMLLengthToStyle(style, CSSPropertyBorderSpacing, value, |
+ DontAllowPercentageValues); |
+ } |
} else if (name == alignAttr) { |
if (!value.isEmpty()) { |
if (equalIgnoringCase(value, "center")) { |