| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 419 } |
| 420 | 420 |
| 421 return emptyString(); | 421 return emptyString(); |
| 422 } | 422 } |
| 423 | 423 |
| 424 bool InputType::shouldSubmitImplicitly(Event* event) | 424 bool InputType::shouldSubmitImplicitly(Event* event) |
| 425 { | 425 { |
| 426 return event->isKeyboardEvent() && event->type() == EventTypeNames::keypress
&& toKeyboardEvent(event)->charCode() == '\r'; | 426 return event->isKeyboardEvent() && event->type() == EventTypeNames::keypress
&& toKeyboardEvent(event)->charCode() == '\r'; |
| 427 } | 427 } |
| 428 | 428 |
| 429 Decimal InputType::parseToNumber(const String&, const Decimal& defaultValue) con
st | 429 Decimal InputType::parseToNumber(const String&, const String&, const Decimal& de
faultValue) const |
| 430 { | 430 { |
| 431 ASSERT_NOT_REACHED(); | 431 ASSERT_NOT_REACHED(); |
| 432 return defaultValue; | 432 return defaultValue; |
| 433 } | 433 } |
| 434 | 434 |
| 435 Decimal InputType::parseToNumberOrNaN(const String& string) const | 435 Decimal InputType::parseToNumberOrNaN(const String& string) const |
| 436 { | 436 { |
| 437 return parseToNumber(string, Decimal::nan()); | 437 return parseToNumber(string, String(), Decimal::nan()); |
| 438 } | 438 } |
| 439 | 439 |
| 440 bool InputType::parseToDateComponents(const String&, DateComponents*) const | 440 bool InputType::parseToDateComponents(const String&, DateComponents*) const |
| 441 { | 441 { |
| 442 ASSERT_NOT_REACHED(); | 442 ASSERT_NOT_REACHED(); |
| 443 return false; | 443 return false; |
| 444 } | 444 } |
| 445 | 445 |
| 446 String InputType::serialize(const Decimal&) const | 446 String InputType::serialize(const Decimal&) const |
| 447 { | 447 { |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 | 979 |
| 980 void InputType::countUsageIfVisible(UseCounter::Feature feature) const | 980 void InputType::countUsageIfVisible(UseCounter::Feature feature) const |
| 981 { | 981 { |
| 982 if (RenderStyle* style = element().renderStyle()) { | 982 if (RenderStyle* style = element().renderStyle()) { |
| 983 if (style->visibility() != HIDDEN) | 983 if (style->visibility() != HIDDEN) |
| 984 UseCounter::count(element().document(), feature); | 984 UseCounter::count(element().document(), feature); |
| 985 } | 985 } |
| 986 } | 986 } |
| 987 | 987 |
| 988 } // namespace WebCore | 988 } // namespace WebCore |
| OLD | NEW |