Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 1756483005: Option, checkbox and radio should support ':default' selector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/InputType.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 511
512 void InputType::sanitizeValueInResponseToMinOrMaxAttributeChange() 512 void InputType::sanitizeValueInResponseToMinOrMaxAttributeChange()
513 { 513 {
514 } 514 }
515 515
516 bool InputType::canBeSuccessfulSubmitButton() 516 bool InputType::canBeSuccessfulSubmitButton()
517 { 517 {
518 return false; 518 return false;
519 } 519 }
520 520
521 bool InputType::matchesDefaultPseudoClass()
522 {
523 return false;
524 }
525
521 bool InputType::layoutObjectIsNeeded() 526 bool InputType::layoutObjectIsNeeded()
522 { 527 {
523 return true; 528 return true;
524 } 529 }
525 530
526 FileList* InputType::files() 531 FileList* InputType::files()
527 { 532 {
528 return nullptr; 533 return nullptr;
529 } 534 }
530 535
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 return StepRange(stepBase, minimum, maximum, step, stepDescription); 973 return StepRange(stepBase, minimum, maximum, step, stepDescription);
969 } 974 }
970 975
971 void InputType::addWarningToConsole(const char* messageFormat, const String& val ue) const 976 void InputType::addWarningToConsole(const char* messageFormat, const String& val ue) const
972 { 977 {
973 element().document().addConsoleMessage(ConsoleMessage::create(RenderingMessa geSource, WarningMessageLevel, 978 element().document().addConsoleMessage(ConsoleMessage::create(RenderingMessa geSource, WarningMessageLevel,
974 String::format(messageFormat, JSONValue::quoteString(value).utf8().data( )))); 979 String::format(messageFormat, JSONValue::quoteString(value).utf8().data( ))));
975 } 980 }
976 981
977 } // namespace blink 982 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/InputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698