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

Side by Side Diff: Source/core/html/shadow/DateTimeFieldElement.cpp

Issue 152623002: Make StyleChange parameter explicit in setNeedsStyleRecalc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 float DateTimeFieldElement::maximumWidth(const Font&) 199 float DateTimeFieldElement::maximumWidth(const Font&)
200 { 200 {
201 const float paddingLeftAndRight = 2; // This should match to html.css. 201 const float paddingLeftAndRight = 2; // This should match to html.css.
202 return paddingLeftAndRight; 202 return paddingLeftAndRight;
203 } 203 }
204 204
205 void DateTimeFieldElement::setDisabled() 205 void DateTimeFieldElement::setDisabled()
206 { 206 {
207 // Set HTML attribute disabled to change apperance. 207 // Set HTML attribute disabled to change apperance.
208 setBooleanAttribute(disabledAttr, true); 208 setBooleanAttribute(disabledAttr, true);
209 setNeedsStyleRecalc(); 209 setNeedsStyleRecalc(SubtreeStyleChange);
210 } 210 }
211 211
212 bool DateTimeFieldElement::supportsFocus() const 212 bool DateTimeFieldElement::supportsFocus() const
213 { 213 {
214 return !isDisabled() && !isFieldOwnerDisabled(); 214 return !isDisabled() && !isFieldOwnerDisabled();
215 } 215 }
216 216
217 void DateTimeFieldElement::updateVisibleValue(EventBehavior eventBehavior) 217 void DateTimeFieldElement::updateVisibleValue(EventBehavior eventBehavior)
218 { 218 {
219 Text* const textNode = toText(firstChild()); 219 Text* const textNode = toText(firstChild());
(...skipping 17 matching lines...) Expand all
237 } 237 }
238 238
239 int DateTimeFieldElement::valueForARIAValueNow() const 239 int DateTimeFieldElement::valueForARIAValueNow() const
240 { 240 {
241 return valueAsInteger(); 241 return valueAsInteger();
242 } 242 }
243 243
244 } // namespace WebCore 244 } // namespace WebCore
245 245
246 #endif 246 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/DateTimeEditElement.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698