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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLTableColElement.cpp » ('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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 setChecked(!value.isNull()); 653 setChecked(!value.isNull());
654 m_reflectsCheckedAttribute = true; 654 m_reflectsCheckedAttribute = true;
655 } 655 }
656 } else if (name == maxlengthAttr) 656 } else if (name == maxlengthAttr)
657 parseMaxLengthAttribute(value); 657 parseMaxLengthAttribute(value);
658 else if (name == sizeAttr) { 658 else if (name == sizeAttr) {
659 int oldSize = m_size; 659 int oldSize = m_size;
660 int valueAsInteger = value.toInt(); 660 int valueAsInteger = value.toInt();
661 m_size = valueAsInteger > 0 ? valueAsInteger : defaultSize; 661 m_size = valueAsInteger > 0 ? valueAsInteger : defaultSize;
662 if (m_size != oldSize && renderer()) 662 if (m_size != oldSize && renderer())
663 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); 663 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidatio n();
664 } else if (name == altAttr) 664 } else if (name == altAttr)
665 m_inputTypeView->altAttributeChanged(); 665 m_inputTypeView->altAttributeChanged();
666 else if (name == srcAttr) 666 else if (name == srcAttr)
667 m_inputTypeView->srcAttributeChanged(); 667 m_inputTypeView->srcAttributeChanged();
668 else if (name == usemapAttr || name == accesskeyAttr) { 668 else if (name == usemapAttr || name == accesskeyAttr) {
669 // FIXME: ignore for the moment 669 // FIXME: ignore for the moment
670 } else if (name == onsearchAttr) { 670 } else if (name == onsearchAttr) {
671 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing. 671 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing.
672 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value, eventParameterName())); 672 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value, eventParameterName()));
673 } else if (name == resultsAttr) { 673 } else if (name == resultsAttr) {
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1859 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1860 } 1860 }
1861 #endif 1861 #endif
1862 1862
1863 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St ring& newValue) 1863 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St ring& newValue)
1864 { 1864 {
1865 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue) ; 1865 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue) ;
1866 } 1866 }
1867 1867
1868 } // namespace 1868 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.cpp ('k') | Source/core/html/HTMLTableColElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698