| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
| 5 * reserved. |
| 5 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 6 * | 7 * |
| 7 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 11 * | 12 * |
| 12 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| (...skipping 12 matching lines...) Expand all Loading... |
| 27 #include "core/html/FormAssociatedElement.h" | 28 #include "core/html/FormAssociatedElement.h" |
| 28 #include "core/html/HTMLCollection.h" | 29 #include "core/html/HTMLCollection.h" |
| 29 #include "core/html/HTMLElement.h" | 30 #include "core/html/HTMLElement.h" |
| 30 #include "core/html/RadioNodeList.h" | 31 #include "core/html/RadioNodeList.h" |
| 31 | 32 |
| 32 namespace blink { | 33 namespace blink { |
| 33 | 34 |
| 34 class HTMLImageElement; | 35 class HTMLImageElement; |
| 35 class RadioNodeListOrElement; | 36 class RadioNodeListOrElement; |
| 36 | 37 |
| 37 // This class is just a big hack to find form elements even in malformed HTML el
ements. | 38 // This class is just a big hack to find form elements even in malformed HTML |
| 38 // The famous <table><tr><form><td> problem. | 39 // elements. The famous <table><tr><form><td> problem. |
| 39 | 40 |
| 40 class HTMLFormControlsCollection final : public HTMLCollection { | 41 class HTMLFormControlsCollection final : public HTMLCollection { |
| 41 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 42 | 43 |
| 43 public: | 44 public: |
| 44 static HTMLFormControlsCollection* create(ContainerNode&, CollectionType); | 45 static HTMLFormControlsCollection* create(ContainerNode&, CollectionType); |
| 45 | 46 |
| 46 ~HTMLFormControlsCollection() override; | 47 ~HTMLFormControlsCollection() override; |
| 47 | 48 |
| 48 HTMLElement* item(unsigned offset) const { | 49 HTMLElement* item(unsigned offset) const { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 70 }; | 71 }; |
| 71 DEFINE_TYPE_CASTS(HTMLFormControlsCollection, | 72 DEFINE_TYPE_CASTS(HTMLFormControlsCollection, |
| 72 LiveNodeListBase, | 73 LiveNodeListBase, |
| 73 collection, | 74 collection, |
| 74 collection->type() == FormControls, | 75 collection->type() == FormControls, |
| 75 collection.type() == FormControls); | 76 collection.type() == FormControls); |
| 76 | 77 |
| 77 } // namespace blink | 78 } // namespace blink |
| 78 | 79 |
| 79 #endif // HTMLFormControlsCollection_h | 80 #endif // HTMLFormControlsCollection_h |
| OLD | NEW |