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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTableColElement.cpp

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 style); 58 style);
59 } 59 }
60 60
61 void HTMLTableColElement::parseAttribute(const QualifiedName& name, 61 void HTMLTableColElement::parseAttribute(const QualifiedName& name,
62 const AtomicString& oldValue, 62 const AtomicString& oldValue,
63 const AtomicString& value) { 63 const AtomicString& value) {
64 if (name == spanAttr) { 64 if (name == spanAttr) {
65 unsigned newSpan = 0; 65 unsigned newSpan = 0;
66 if (value.isEmpty() || !parseHTMLNonNegativeInteger(value, newSpan) || 66 if (value.isEmpty() || !parseHTMLNonNegativeInteger(value, newSpan) ||
67 newSpan < 1) { 67 newSpan < 1) {
68 // If the value of span is not a valid non-negative integer greater than z ero, 68 // If the value of span is not a valid non-negative integer greater than
69 // set it to 1. 69 // zero, set it to 1.
70 newSpan = 1; 70 newSpan = 1;
71 } 71 }
72 m_span = newSpan; 72 m_span = newSpan;
73 if (layoutObject() && layoutObject()->isLayoutTableCol()) 73 if (layoutObject() && layoutObject()->isLayoutTableCol())
74 layoutObject()->updateFromElement(); 74 layoutObject()->updateFromElement();
75 } else if (name == widthAttr) { 75 } else if (name == widthAttr) {
76 if (!value.isEmpty()) { 76 if (!value.isEmpty()) {
77 if (layoutObject() && layoutObject()->isLayoutTableCol()) { 77 if (layoutObject() && layoutObject()->isLayoutTableCol()) {
78 LayoutTableCol* col = toLayoutTableCol(layoutObject()); 78 LayoutTableCol* col = toLayoutTableCol(layoutObject());
79 int newWidth = width().toInt(); 79 int newWidth = width().toInt();
(...skipping 18 matching lines...) Expand all
98 98
99 void HTMLTableColElement::setSpan(unsigned n) { 99 void HTMLTableColElement::setSpan(unsigned n) {
100 setUnsignedIntegralAttribute(spanAttr, n ? n : 1); 100 setUnsignedIntegralAttribute(spanAttr, n ? n : 1);
101 } 101 }
102 102
103 const AtomicString& HTMLTableColElement::width() const { 103 const AtomicString& HTMLTableColElement::width() const {
104 return getAttribute(widthAttr); 104 return getAttribute(widthAttr);
105 } 105 }
106 106
107 } // namespace blink 107 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTableElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698