Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: third_party/WebKit/Source/core/html/HTMLTableElement.cpp

Issue 2528673003: Rework the "rules for parsing dimension values" implementation (Closed)
Patch Set: Rebase; clarify comment. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698