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

Unified Diff: Source/core/layout/shapes/Shape.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (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
Index: Source/core/layout/shapes/Shape.h
diff --git a/Source/core/layout/shapes/Shape.h b/Source/core/layout/shapes/Shape.h
index 5b40abd229f2ba8486839cdbf2820b851525015c..a4250c59e29363d16904e735d8aa30a3b369dff7 100644
--- a/Source/core/layout/shapes/Shape.h
+++ b/Source/core/layout/shapes/Shape.h
@@ -68,10 +68,12 @@ struct LineSegment {
// physical coordinates.
class CORE_EXPORT Shape {
+ WTF_MAKE_FAST_ALLOCATED(Shape);
public:
struct DisplayPaths {
Path shape;
Path marginShape;
+ STACK_ALLOCATED();
};
static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, float margin);
static PassOwnPtr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, float margin);

Powered by Google App Engine
This is Rietveld 408576698