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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 bool InputType::shouldSubmitImplicitly(Event* event) | 430 bool InputType::shouldSubmitImplicitly(Event* event) |
431 { | 431 { |
432 return event->isKeyboardEvent() && event->type() == eventNames().keypressEve
nt && static_cast<KeyboardEvent*>(event)->charCode() == '\r'; | 432 return event->isKeyboardEvent() && event->type() == eventNames().keypressEve
nt && static_cast<KeyboardEvent*>(event)->charCode() == '\r'; |
433 } | 433 } |
434 | 434 |
435 PassRefPtr<HTMLFormElement> InputType::formForSubmission() const | 435 PassRefPtr<HTMLFormElement> InputType::formForSubmission() const |
436 { | 436 { |
437 return element()->form(); | 437 return element()->form(); |
438 } | 438 } |
439 | 439 |
440 RenderObject* InputType::createRenderer(RenderArena*, RenderStyle* style) const | 440 RenderObject* InputType::createRenderer(RenderStyle* style) const |
441 { | 441 { |
442 return RenderObject::createObject(element(), style); | 442 return RenderObject::createObject(element(), style); |
443 } | 443 } |
444 | 444 |
445 PassRefPtr<RenderStyle> InputType::customStyleForRenderer(PassRefPtr<RenderStyle
> originalStyle) | 445 PassRefPtr<RenderStyle> InputType::customStyleForRenderer(PassRefPtr<RenderStyle
> originalStyle) |
446 { | 446 { |
447 return originalStyle; | 447 return originalStyle; |
448 } | 448 } |
449 | 449 |
450 void InputType::blur() | 450 void InputType::blur() |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 | 1104 |
1105 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const | 1105 void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const |
1106 { | 1106 { |
1107 if (RenderStyle* style = element()->renderStyle()) { | 1107 if (RenderStyle* style = element()->renderStyle()) { |
1108 if (style->visibility() != HIDDEN) | 1108 if (style->visibility() != HIDDEN) |
1109 UseCounter::count(element()->document(), feature); | 1109 UseCounter::count(element()->document(), feature); |
1110 } | 1110 } |
1111 } | 1111 } |
1112 | 1112 |
1113 } // namespace WebCore | 1113 } // namespace WebCore |
OLD | NEW |