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

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

Issue 1175023002: Add missing TextRun includes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/html/shadow/DateTimeSymbolicFieldElement.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) 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 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 27 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
28 #include "core/html/shadow/DateTimeNumericFieldElement.h" 28 #include "core/html/shadow/DateTimeNumericFieldElement.h"
29 29
30 #include "core/CSSPropertyNames.h" 30 #include "core/CSSPropertyNames.h"
31 #include "core/CSSValueKeywords.h" 31 #include "core/CSSValueKeywords.h"
32 #include "core/events/KeyboardEvent.h" 32 #include "core/events/KeyboardEvent.h"
33 #include "platform/fonts/Font.h" 33 #include "platform/fonts/Font.h"
34 #include "platform/text/PlatformLocale.h" 34 #include "platform/text/PlatformLocale.h"
35 #include "platform/text/TextRun.h"
35 36
36 using namespace WTF::Unicode; 37 using namespace WTF::Unicode;
37 38
38 namespace blink { 39 namespace blink {
39 40
40 int DateTimeNumericFieldElement::Range::clampValue(int value) const 41 int DateTimeNumericFieldElement::Range::clampValue(int value) const
41 { 42 {
42 return std::min(std::max(value, minimum), maximum); 43 return std::min(std::max(value, minimum), maximum);
43 } 44 }
44 45
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 if (n >= 0) 238 if (n >= 0)
238 n = (n + m_step.step - 1) / m_step.step * m_step.step; 239 n = (n + m_step.step - 1) / m_step.step * m_step.step;
239 else 240 else
240 n = -(-n / m_step.step * m_step.step); 241 n = -(-n / m_step.step * m_step.step);
241 return n + m_step.stepBase; 242 return n + m_step.stepBase;
242 } 243 }
243 244
244 } // namespace blink 245 } // namespace blink
245 246
246 #endif 247 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/shadow/DateTimeSymbolicFieldElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698