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

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

Issue 280633002: Rename RenderObject::setNeedsLayout to setNeedsLayoutAndFullRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 setChecked(!value.isNull()); 657 setChecked(!value.isNull());
658 m_reflectsCheckedAttribute = true; 658 m_reflectsCheckedAttribute = true;
659 } 659 }
660 } else if (name == maxlengthAttr) 660 } else if (name == maxlengthAttr)
661 parseMaxLengthAttribute(value); 661 parseMaxLengthAttribute(value);
662 else if (name == sizeAttr) { 662 else if (name == sizeAttr) {
663 int oldSize = m_size; 663 int oldSize = m_size;
664 int valueAsInteger = value.toInt(); 664 int valueAsInteger = value.toInt();
665 m_size = valueAsInteger > 0 ? valueAsInteger : defaultSize; 665 m_size = valueAsInteger > 0 ? valueAsInteger : defaultSize;
666 if (m_size != oldSize && renderer()) 666 if (m_size != oldSize && renderer())
667 renderer()->setNeedsLayoutAndPrefWidthsRecalc(); 667 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint();
668 } else if (name == altAttr) 668 } else if (name == altAttr)
669 m_inputTypeView->altAttributeChanged(); 669 m_inputTypeView->altAttributeChanged();
670 else if (name == srcAttr) 670 else if (name == srcAttr)
671 m_inputTypeView->srcAttributeChanged(); 671 m_inputTypeView->srcAttributeChanged();
672 else if (name == usemapAttr || name == accesskeyAttr) { 672 else if (name == usemapAttr || name == accesskeyAttr) {
673 // FIXME: ignore for the moment 673 // FIXME: ignore for the moment
674 } else if (name == onsearchAttr) { 674 } else if (name == onsearchAttr) {
675 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing. 675 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing.
676 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value)); 676 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value));
677 } else if (name == resultsAttr) { 677 } else if (name == resultsAttr) {
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); 1881 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer());
1882 } 1882 }
1883 #endif 1883 #endif
1884 1884
1885 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St ring& newValue) 1885 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St ring& newValue)
1886 { 1886 {
1887 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue) ; 1887 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue) ;
1888 } 1888 }
1889 1889
1890 } // namespace 1890 } // 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