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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLInputElement.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
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) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 bool HTMLInputElement::isEnumeratable() const 1651 bool HTMLInputElement::isEnumeratable() const
1652 { 1652 {
1653 return m_inputType->isEnumeratable(); 1653 return m_inputType->isEnumeratable();
1654 } 1654 }
1655 1655
1656 bool HTMLInputElement::supportLabels() const 1656 bool HTMLInputElement::supportLabels() const
1657 { 1657 {
1658 return m_inputType->isInteractiveContent(); 1658 return m_inputType->isInteractiveContent();
1659 } 1659 }
1660 1660
1661 bool HTMLInputElement::matchesDefaultPseudoClass() const
1662 {
1663 return m_inputType->matchesDefaultPseudoClass();
1664 }
1665
1661 bool HTMLInputElement::shouldAppearChecked() const 1666 bool HTMLInputElement::shouldAppearChecked() const
1662 { 1667 {
1663 return checked() && m_inputType->isCheckable(); 1668 return checked() && m_inputType->isCheckable();
1664 } 1669 }
1665 1670
1666 void HTMLInputElement::setPlaceholderVisibility(bool visible) 1671 void HTMLInputElement::setPlaceholderVisibility(bool visible)
1667 { 1672 {
1668 m_isPlaceholderVisible = visible; 1673 m_isPlaceholderVisible = visible;
1669 } 1674 }
1670 1675
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 void HTMLInputElement::ensurePrimaryContent() 1936 void HTMLInputElement::ensurePrimaryContent()
1932 { 1937 {
1933 m_inputTypeView->ensurePrimaryContent(); 1938 m_inputTypeView->ensurePrimaryContent();
1934 } 1939 }
1935 1940
1936 bool HTMLInputElement::hasFallbackContent() const 1941 bool HTMLInputElement::hasFallbackContent() const
1937 { 1942 {
1938 return m_inputTypeView->hasFallbackContent(); 1943 return m_inputTypeView->hasFallbackContent();
1939 } 1944 }
1940 } // namespace blink 1945 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.h ('k') | third_party/WebKit/Source/core/html/HTMLOptionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698