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

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

Issue 2387033003: Make cols/rows/span not accept zero when set from idl (Closed)
Patch Set: V2 Created 4 years, 2 months 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
Index: third_party/WebKit/Source/core/html/HTMLTableColElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTableColElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableColElement.cpp
index fc6ef7d788dc1494434273517f11e3eecb3fa3df..424c2ee76b7c62ea6f9c4221fa5f452d62ea20ad 100644
--- a/third_party/WebKit/Source/core/html/HTMLTableColElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTableColElement.cpp
@@ -97,7 +97,7 @@ HTMLTableColElement::additionalPresentationAttributeStyle() {
}
void HTMLTableColElement::setSpan(unsigned n) {
- setUnsignedIntegralAttribute(spanAttr, n);
+ setUnsignedIntegralAttribute(spanAttr, n ? n : 1);
}
const AtomicString& HTMLTableColElement::width() const {

Powered by Google App Engine
This is Rietveld 408576698