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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "core/html/HTMLOptionsCollection.h" | 44 #include "core/html/HTMLOptionsCollection.h" |
45 #include "core/page/EventHandler.h" | 45 #include "core/page/EventHandler.h" |
46 #include "core/page/Frame.h" | 46 #include "core/page/Frame.h" |
47 #include "core/page/Page.h" | 47 #include "core/page/Page.h" |
48 #include "core/page/SpatialNavigation.h" | 48 #include "core/page/SpatialNavigation.h" |
49 #include "core/platform/LocalizedStrings.h" | 49 #include "core/platform/LocalizedStrings.h" |
50 #include "core/platform/PlatformMouseEvent.h" | 50 #include "core/platform/PlatformMouseEvent.h" |
51 #include "core/rendering/RenderListBox.h" | 51 #include "core/rendering/RenderListBox.h" |
52 #include "core/rendering/RenderMenuList.h" | 52 #include "core/rendering/RenderMenuList.h" |
53 #include "core/rendering/RenderTheme.h" | 53 #include "core/rendering/RenderTheme.h" |
54 #include <wtf/text/StringBuilder.h> | |
55 #include <wtf/unicode/Unicode.h> | |
56 | 54 |
57 using namespace std; | 55 using namespace std; |
58 using namespace WTF::Unicode; | 56 using namespace WTF::Unicode; |
59 | 57 |
60 namespace WebCore { | 58 namespace WebCore { |
61 | 59 |
62 using namespace HTMLNames; | 60 using namespace HTMLNames; |
63 | 61 |
64 // Upper limit agreed upon with representatives of Opera and Mozilla. | 62 // Upper limit agreed upon with representatives of Opera and Mozilla. |
65 static const unsigned maxSelectItems = 10000; | 63 static const unsigned maxSelectItems = 10000; |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 { | 1576 { |
1579 if (!value) { | 1577 if (!value) { |
1580 ec = TYPE_MISMATCH_ERR; | 1578 ec = TYPE_MISMATCH_ERR; |
1581 return false; | 1579 return false; |
1582 } | 1580 } |
1583 setOption(index, value.get(), ec); | 1581 setOption(index, value.get(), ec); |
1584 return true; | 1582 return true; |
1585 } | 1583 } |
1586 | 1584 |
1587 } // namespace | 1585 } // namespace |
OLD | NEW |