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

Unified Diff: Source/core/html/shadow/DateTimeNumericFieldElement.h

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElements.h ('k') | Source/core/html/track/AutomaticTrackSelection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/DateTimeNumericFieldElement.h
diff --git a/Source/core/html/shadow/DateTimeNumericFieldElement.h b/Source/core/html/shadow/DateTimeNumericFieldElement.h
index 1dd2d8f5593d3f863484a491cced39a3c0a86075..fa5c0324ffa6fd17cb052fda7f489cc4920aca28 100644
--- a/Source/core/html/shadow/DateTimeNumericFieldElement.h
+++ b/Source/core/html/shadow/DateTimeNumericFieldElement.h
@@ -29,6 +29,7 @@
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
#include "core/html/shadow/DateTimeFieldElement.h"
+#include "wtf/Allocator.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/WTFString.h"
@@ -46,12 +47,14 @@ class DateTimeNumericFieldElement : public DateTimeFieldElement {
public:
struct Step {
+ DISALLOW_ALLOCATION();
Step(int step = 1, int stepBase = 0) : step(step), stepBase(stepBase) { }
int step;
int stepBase;
};
struct Range {
+ DISALLOW_ALLOCATION();
Range(int minimum, int maximum) : minimum(minimum), maximum(maximum) { }
int clampValue(int) const;
bool isInRange(int) const;
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElements.h ('k') | Source/core/html/track/AutomaticTrackSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698