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

Side by Side Diff: Source/core/html/HTMLInputElement.cpp

Issue 163103002: Mark the x-webkit-speech input element attribute as deprecated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Trying to fix CRLF issue Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('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) 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 if (RuntimeEnabledFeatures::speechInputEnabled() && m_inputType->shouldR espectSpeechAttribute()) { 727 if (RuntimeEnabledFeatures::speechInputEnabled() && m_inputType->shouldR espectSpeechAttribute()) {
728 // This renderer and its children have quite different layouts and 728 // This renderer and its children have quite different layouts and
729 // styles depending on whether the speech button is visible or 729 // styles depending on whether the speech button is visible or
730 // not. So we reset the whole thing and recreate to get the right 730 // not. So we reset the whole thing and recreate to get the right
731 // styles and layout. 731 // styles and layout.
732 m_inputTypeView->destroyShadowSubtree(); 732 m_inputTypeView->destroyShadowSubtree();
733 lazyReattachIfAttached(); 733 lazyReattachIfAttached();
734 m_inputTypeView->createShadowSubtree(); 734 m_inputTypeView->createShadowSubtree();
735 setFormControlValueMatchesRenderer(false); 735 setFormControlValueMatchesRenderer(false);
736 } 736 }
737 UseCounter::count(document(), UseCounter::PrefixedSpeechAttribute); 737 UseCounter::countDeprecation(document(), UseCounter::PrefixedSpeechAttri bute);
738 } else if (name == onwebkitspeechchangeAttr) 738 } else if (name == onwebkitspeechchangeAttr)
739 setAttributeEventListener(EventTypeNames::webkitspeechchange, createAttr ibuteEventListener(this, name, value)); 739 setAttributeEventListener(EventTypeNames::webkitspeechchange, createAttr ibuteEventListener(this, name, value));
740 #endif 740 #endif
741 else if (name == webkitdirectoryAttr) { 741 else if (name == webkitdirectoryAttr) {
742 HTMLTextFormControlElement::parseAttribute(name, value); 742 HTMLTextFormControlElement::parseAttribute(name, value);
743 UseCounter::count(document(), UseCounter::PrefixedDirectoryAttribute); 743 UseCounter::count(document(), UseCounter::PrefixedDirectoryAttribute);
744 } 744 }
745 else 745 else
746 HTMLTextFormControlElement::parseAttribute(name, value); 746 HTMLTextFormControlElement::parseAttribute(name, value);
747 m_inputTypeView->attributeChanged(); 747 m_inputTypeView->attributeChanged();
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 } 1863 }
1864 1864
1865 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1865 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1866 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1866 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1867 { 1867 {
1868 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1868 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1869 } 1869 }
1870 #endif 1870 #endif
1871 1871
1872 } // namespace 1872 } // namespace
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698