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

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

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 8 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 parseMaxLengthAttribute(value); 725 parseMaxLengthAttribute(value);
726 } else if (name == minlengthAttr) { 726 } else if (name == minlengthAttr) {
727 parseMinLengthAttribute(value); 727 parseMinLengthAttribute(value);
728 } else if (name == sizeAttr) { 728 } else if (name == sizeAttr) {
729 int oldSize = m_size; 729 int oldSize = m_size;
730 m_size = defaultSize; 730 m_size = defaultSize;
731 int valueAsInteger; 731 int valueAsInteger;
732 if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && value AsInteger > 0) 732 if (!value.isEmpty() && parseHTMLInteger(value, valueAsInteger) && value AsInteger > 0)
733 m_size = valueAsInteger; 733 m_size = valueAsInteger;
734 if (m_size != oldSize && layoutObject()) 734 if (m_size != oldSize && layoutObject())
735 layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid ation(); 735 layoutObject()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid ation(LayoutInvalidationReason::AttributeChanged);
736 } else if (name == altAttr) 736 } else if (name == altAttr)
737 m_inputTypeView->altAttributeChanged(); 737 m_inputTypeView->altAttributeChanged();
738 else if (name == srcAttr) 738 else if (name == srcAttr)
739 m_inputTypeView->srcAttributeChanged(); 739 m_inputTypeView->srcAttributeChanged();
740 else if (name == usemapAttr || name == accesskeyAttr) { 740 else if (name == usemapAttr || name == accesskeyAttr) {
741 // FIXME: ignore for the moment 741 // FIXME: ignore for the moment
742 } else if (name == onsearchAttr) { 742 } else if (name == onsearchAttr) {
743 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing. 743 // Search field and slider attributes all just cause updateFromElement t o be called through style recalcing.
744 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value, eventParameterName())); 744 setAttributeEventListener(EventTypeNames::search, createAttributeEventLi stener(this, name, value, eventParameterName()));
745 } else if (name == resultsAttr) { 745 } else if (name == resultsAttr) {
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 void HTMLInputElement::ensurePrimaryContent() 1923 void HTMLInputElement::ensurePrimaryContent()
1924 { 1924 {
1925 m_inputTypeView->ensurePrimaryContent(); 1925 m_inputTypeView->ensurePrimaryContent();
1926 } 1926 }
1927 1927
1928 bool HTMLInputElement::hasFallbackContent() const 1928 bool HTMLInputElement::hasFallbackContent() const
1929 { 1929 {
1930 return m_inputTypeView->hasFallbackContent(); 1930 return m_inputTypeView->hasFallbackContent();
1931 } 1931 }
1932 } // namespace 1932 } // 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