| Index: components/autofill/content/renderer/form_autofill_util.cc
|
| diff --git a/components/autofill/content/renderer/form_autofill_util.cc b/components/autofill/content/renderer/form_autofill_util.cc
|
| index 5977300794df57f4e2269a4affb18d958c5abf51..fce56a0d1d85a08442536514ee05b096603afde5 100644
|
| --- a/components/autofill/content/renderer/form_autofill_util.cc
|
| +++ b/components/autofill/content/renderer/form_autofill_util.cc
|
| @@ -134,9 +134,9 @@ bool SatisfiesRequireAutocomplete(const WebInputElement& input_element) {
|
| return input_element.autoComplete();
|
| }
|
|
|
| -// Returns the colspan for a <td>. Defaults to 1.
|
| +// Returns the colspan for a <td> / <th>. Defaults to 1.
|
| size_t CalculateTableCellColumnSpan(const WebElement& element) {
|
| - DCHECK(element.hasHTMLTagName("td"));
|
| + DCHECK(element.hasHTMLTagName("td") || element.hasHTMLTagName("th"));
|
|
|
| size_t span = 1;
|
| if (element.hasAttribute("colspan")) {
|
|
|