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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
10 * | 10 * |
(...skipping 13 matching lines...) Expand all Loading... |
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 "core/html/InputType.h" | 29 #include "core/html/InputType.h" |
30 | 30 |
31 #include <limits> | 31 #include <limits> |
32 #include "HTMLNames.h" | 32 #include "HTMLNames.h" |
33 #include "core/accessibility/AXObjectCache.h" | 33 #include "core/accessibility/AXObjectCache.h" |
34 #include "core/dom/BeforeTextInsertedEvent.h" | |
35 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
36 #include "core/dom/ExceptionCodePlaceholder.h" | 35 #include "core/dom/ExceptionCodePlaceholder.h" |
37 #include "core/dom/KeyboardEvent.h" | 36 #include "core/dom/KeyboardEvent.h" |
38 #include "core/dom/NodeRenderStyle.h" | 37 #include "core/dom/NodeRenderStyle.h" |
39 #include "core/dom/shadow/ElementShadow.h" | |
40 #include "core/dom/shadow/ShadowRoot.h" | 38 #include "core/dom/shadow/ShadowRoot.h" |
41 #include "core/fileapi/FileList.h" | 39 #include "core/fileapi/FileList.h" |
42 #include "core/html/ButtonInputType.h" | 40 #include "core/html/ButtonInputType.h" |
43 #include "core/html/CheckboxInputType.h" | 41 #include "core/html/CheckboxInputType.h" |
44 #include "core/html/ColorInputType.h" | 42 #include "core/html/ColorInputType.h" |
45 #include "core/html/DateInputType.h" | 43 #include "core/html/DateInputType.h" |
46 #include "core/html/DateTimeLocalInputType.h" | 44 #include "core/html/DateTimeLocalInputType.h" |
47 #include "core/html/EmailInputType.h" | 45 #include "core/html/EmailInputType.h" |
48 #include "core/html/FileInputType.h" | 46 #include "core/html/FileInputType.h" |
49 #include "core/html/FormController.h" | 47 #include "core/html/FormController.h" |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 | 1099 |
1102 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const | 1100 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const |
1103 { | 1101 { |
1104 if (RenderStyle* style = element()->renderStyle()) { | 1102 if (RenderStyle* style = element()->renderStyle()) { |
1105 if (style->visibility() != HIDDEN) | 1103 if (style->visibility() != HIDDEN) |
1106 UseCounter::count(element()->document(), feature); | 1104 UseCounter::count(element()->document(), feature); |
1107 } | 1105 } |
1108 } | 1106 } |
1109 | 1107 |
1110 } // namespace WebCore | 1108 } // namespace WebCore |
OLD | NEW |