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

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

Issue 23330003: Separate render-specific code in InputType::attach. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/html/EmailInputType.cpp ('k') | Source/core/html/InputType.h » ('j') | 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 void HTMLInputElement::attach(const AttachContext& context) 783 void HTMLInputElement::attach(const AttachContext& context)
784 { 784 {
785 PostAttachCallbackDisabler disabler(this); 785 PostAttachCallbackDisabler disabler(this);
786 786
787 if (!m_hasType) 787 if (!m_hasType)
788 updateType(); 788 updateType();
789 789
790 HTMLTextFormControlElement::attach(context); 790 HTMLTextFormControlElement::attach(context);
791 791
792 m_inputType->attach(); 792 m_inputType->attach();
793 m_inputType->countUsage();
793 794
794 if (document()->focusedElement() == this) 795 if (document()->focusedElement() == this)
795 document()->updateFocusAppearanceSoon(true /* restore selection */); 796 document()->updateFocusAppearanceSoon(true /* restore selection */);
796 } 797 }
797 798
798 void HTMLInputElement::detach(const AttachContext& context) 799 void HTMLInputElement::detach(const AttachContext& context)
799 { 800 {
800 HTMLTextFormControlElement::detach(context); 801 HTMLTextFormControlElement::detach(context);
801 setFormControlValueMatchesRenderer(false); 802 setFormControlValueMatchesRenderer(false);
802 m_inputType->detach(); 803 m_inputType->detach();
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 } 1868 }
1868 1869
1869 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 1870 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
1870 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer() 1871 PassRefPtr<RenderStyle> HTMLInputElement::customStyleForRenderer()
1871 { 1872 {
1872 return m_inputType->customStyleForRenderer(originalStyleForRenderer()); 1873 return m_inputType->customStyleForRenderer(originalStyleForRenderer());
1873 } 1874 }
1874 #endif 1875 #endif
1875 1876
1876 } // namespace 1877 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/EmailInputType.cpp ('k') | Source/core/html/InputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698