Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. | 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 text.append(node->nodeValue()); | 359 text.append(node->nodeValue()); |
| 360 // Text nodes inside script elements are not part of the option text. | 360 // Text nodes inside script elements are not part of the option text. |
| 361 if (node->isElementNode() && toScriptLoaderIfPossible(toElement(node))) | 361 if (node->isElementNode() && toScriptLoaderIfPossible(toElement(node))) |
| 362 node = NodeTraversal::nextSkippingChildren(*node, this); | 362 node = NodeTraversal::nextSkippingChildren(*node, this); |
| 363 else | 363 else |
| 364 node = NodeTraversal::next(*node, this); | 364 node = NodeTraversal::next(*node, this); |
| 365 } | 365 } |
| 366 return text.toString(); | 366 return text.toString(); |
| 367 } | 367 } |
| 368 | 368 |
| 369 HTMLFormElement* HTMLOptionElement::form() const | |
| 370 { | |
| 371 HTMLSelectElement* selectElement = ownerSelectElement(); | |
|
tkent
2013/12/10 23:09:08
nit:
if (HTMLSelectElement* selectElement = owner
| |
| 372 if (!selectElement) | |
| 373 return 0; | |
| 374 | |
| 375 return selectElement->formOwner(); | |
| 376 } | |
| 377 | |
| 369 } // namespace WebCore | 378 } // namespace WebCore |
| OLD | NEW |