| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 
| 3  * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3  * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 
| 4  *           (C) 1999 Antti Koivisto (koivisto@kde.org) | 4  *           (C) 1999 Antti Koivisto (koivisto@kde.org) | 
| 5  *           (C) 2001 Dirk Mueller (mueller@kde.org) | 5  *           (C) 2001 Dirk Mueller (mueller@kde.org) | 
| 6  * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights 
      reserved. | 6  * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights 
      reserved. | 
| 7  *           (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7  *           (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 
| 8  * Copyright (C) 2010 Google Inc. All rights reserved. | 8  * Copyright (C) 2010 Google Inc. All rights reserved. | 
| 9  * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
      bile.com/) | 9  * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
      bile.com/) | 
| 10  * | 10  * | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21  * You should have received a copy of the GNU Library General Public License | 21  * You should have received a copy of the GNU Library General Public License | 
| 22  * along with this library; see the file COPYING.LIB.  If not, write to | 22  * along with this library; see the file COPYING.LIB.  If not, write to | 
| 23  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 
| 24  * Boston, MA 02110-1301, USA. | 24  * Boston, MA 02110-1301, USA. | 
| 25  * | 25  * | 
| 26  */ | 26  */ | 
| 27 | 27 | 
| 28 #include "config.h" | 28 #include "config.h" | 
| 29 #include "HTMLSelectElement.h" | 29 #include "HTMLSelectElement.h" | 
| 30 | 30 | 
| 31 #include "AXObjectCache.h" |  | 
| 32 #include "Attribute.h" | 31 #include "Attribute.h" | 
| 33 #include "Chrome.h" | 32 #include "Chrome.h" | 
| 34 #include "ChromeClient.h" | 33 #include "ChromeClient.h" | 
| 35 #include "EventHandler.h" | 34 #include "EventHandler.h" | 
| 36 #include "EventNames.h" | 35 #include "EventNames.h" | 
| 37 #include "ExceptionCodePlaceholder.h" | 36 #include "ExceptionCodePlaceholder.h" | 
| 38 #include "FormController.h" | 37 #include "FormController.h" | 
| 39 #include "FormDataList.h" | 38 #include "FormDataList.h" | 
| 40 #include "Frame.h" | 39 #include "Frame.h" | 
| 41 #include "HTMLFormElement.h" | 40 #include "HTMLFormElement.h" | 
| 42 #include "HTMLNames.h" | 41 #include "HTMLNames.h" | 
| 43 #include "HTMLOptGroupElement.h" | 42 #include "HTMLOptGroupElement.h" | 
| 44 #include "HTMLOptionElement.h" | 43 #include "HTMLOptionElement.h" | 
| 45 #include "HTMLOptionsCollection.h" | 44 #include "HTMLOptionsCollection.h" | 
| 46 #include "KeyboardEvent.h" | 45 #include "KeyboardEvent.h" | 
| 47 #include "LocalizedStrings.h" | 46 #include "LocalizedStrings.h" | 
| 48 #include "MouseEvent.h" | 47 #include "MouseEvent.h" | 
| 49 #include "NodeRenderingContext.h" | 48 #include "NodeRenderingContext.h" | 
| 50 #include "NodeTraversal.h" | 49 #include "NodeTraversal.h" | 
| 51 #include "Page.h" | 50 #include "Page.h" | 
| 52 #include "PlatformMouseEvent.h" | 51 #include "PlatformMouseEvent.h" | 
| 53 #include "RenderListBox.h" | 52 #include "RenderListBox.h" | 
| 54 #include "RenderMenuList.h" | 53 #include "RenderMenuList.h" | 
| 55 #include "RenderTheme.h" | 54 #include "RenderTheme.h" | 
| 56 #include "ScriptEventListener.h" | 55 #include "ScriptEventListener.h" | 
| 57 #include "SpatialNavigation.h" | 56 #include "SpatialNavigation.h" | 
|  | 57 #include "core/accessibility/AXObjectCache.h" | 
| 58 #include <wtf/text/StringBuilder.h> | 58 #include <wtf/text/StringBuilder.h> | 
| 59 #include <wtf/unicode/Unicode.h> | 59 #include <wtf/unicode/Unicode.h> | 
| 60 | 60 | 
| 61 using namespace std; | 61 using namespace std; | 
| 62 using namespace WTF::Unicode; | 62 using namespace WTF::Unicode; | 
| 63 | 63 | 
| 64 namespace WebCore { | 64 namespace WebCore { | 
| 65 | 65 | 
| 66 using namespace HTMLNames; | 66 using namespace HTMLNames; | 
| 67 | 67 | 
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1557     const Vector<HTMLElement*>& items = listItems(); | 1557     const Vector<HTMLElement*>& items = listItems(); | 
| 1558     for (unsigned i = 0; i < items.size(); ++i) { | 1558     for (unsigned i = 0; i < items.size(); ++i) { | 
| 1559         if (items[i]->hasTagName(optionTag)) | 1559         if (items[i]->hasTagName(optionTag)) | 
| 1560             ++options; | 1560             ++options; | 
| 1561     } | 1561     } | 
| 1562 | 1562 | 
| 1563     return options; | 1563     return options; | 
| 1564 } | 1564 } | 
| 1565 | 1565 | 
| 1566 } // namespace | 1566 } // namespace | 
| OLD | NEW | 
|---|