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

Unified Diff: Source/core/html/forms/StepRange.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/forms/FormController.h ('k') | Source/core/html/forms/TypeAhead.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/StepRange.h
diff --git a/Source/core/html/forms/StepRange.h b/Source/core/html/forms/StepRange.h
index cec9e2dcff911aed19cdfd86029c40b29bbcbcbc..6450b9c4297476cb1be4e3ca3bbf3a4acdbb8fff 100644
--- a/Source/core/html/forms/StepRange.h
+++ b/Source/core/html/forms/StepRange.h
@@ -22,6 +22,7 @@
#define StepRange_h
#include "platform/Decimal.h"
+#include "wtf/Allocator.h"
#include "wtf/Forward.h"
namespace blink {
@@ -29,6 +30,7 @@ namespace blink {
enum AnyStepHandling { RejectAny, AnyIsDefaultStep };
class StepRange {
+ DISALLOW_ALLOCATION();
public:
enum StepValueShouldBe {
StepValueShouldBeReal,
@@ -101,7 +103,7 @@ public:
}
private:
- StepRange& operator =(const StepRange&);
+ StepRange& operator=(const StepRange&) = delete;
Decimal acceptableError() const;
Decimal roundByStep(const Decimal& value, const Decimal& base) const;
« no previous file with comments | « Source/core/html/forms/FormController.h ('k') | Source/core/html/forms/TypeAhead.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698