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

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

Issue 15447002: Remove ~1750 superfluous includes from core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase a few hours Created 7 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
« no previous file with comments | « Source/core/html/RadioInputType.cpp ('k') | Source/core/html/SearchInputType.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 24 matching lines...) Expand all
35 #include <limits> 35 #include <limits>
36 #include "HTMLNames.h" 36 #include "HTMLNames.h"
37 #include "core/accessibility/AXObjectCache.h" 37 #include "core/accessibility/AXObjectCache.h"
38 #include "core/dom/ExceptionCodePlaceholder.h" 38 #include "core/dom/ExceptionCodePlaceholder.h"
39 #include "core/dom/KeyboardEvent.h" 39 #include "core/dom/KeyboardEvent.h"
40 #include "core/dom/MouseEvent.h" 40 #include "core/dom/MouseEvent.h"
41 #include "core/dom/ScopedEventQueue.h" 41 #include "core/dom/ScopedEventQueue.h"
42 #include "core/dom/Touch.h" 42 #include "core/dom/Touch.h"
43 #include "core/dom/TouchEvent.h" 43 #include "core/dom/TouchEvent.h"
44 #include "core/dom/TouchList.h" 44 #include "core/dom/TouchList.h"
45 #include "core/dom/shadow/ElementShadow.h"
46 #include "core/dom/shadow/ShadowRoot.h" 45 #include "core/dom/shadow/ShadowRoot.h"
47 #include "core/html/HTMLDivElement.h" 46 #include "core/html/HTMLDivElement.h"
48 #include "core/html/HTMLInputElement.h" 47 #include "core/html/HTMLInputElement.h"
49 #include "core/html/InputTypeNames.h" 48 #include "core/html/InputTypeNames.h"
50 #include "core/html/StepRange.h" 49 #include "core/html/StepRange.h"
51 #include "core/html/parser/HTMLParserIdioms.h" 50 #include "core/html/parser/HTMLParserIdioms.h"
52 #include "core/html/shadow/SliderThumbElement.h" 51 #include "core/html/shadow/SliderThumbElement.h"
53 #include "core/platform/PlatformMouseEvent.h" 52 #include "core/platform/PlatformMouseEvent.h"
54 #include "core/rendering/RenderSlider.h" 53 #include "core/rendering/RenderSlider.h"
55 #include <wtf/MathExtras.h> 54 #include <wtf/MathExtras.h>
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 396 }
398 const Decimal closestLeft = middle ? m_tickMarkValues[middle - 1] : Decimal: :infinity(Decimal::Negative); 397 const Decimal closestLeft = middle ? m_tickMarkValues[middle - 1] : Decimal: :infinity(Decimal::Negative);
399 const Decimal closestRight = middle != m_tickMarkValues.size() ? m_tickMarkV alues[middle] : Decimal::infinity(Decimal::Positive); 398 const Decimal closestRight = middle != m_tickMarkValues.size() ? m_tickMarkV alues[middle] : Decimal::infinity(Decimal::Positive);
400 if (closestRight - value < value - closestLeft) 399 if (closestRight - value < value - closestLeft)
401 return closestRight; 400 return closestRight;
402 return closestLeft; 401 return closestLeft;
403 } 402 }
404 #endif 403 #endif
405 404
406 } // namespace WebCore 405 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/RadioInputType.cpp ('k') | Source/core/html/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698