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

Side by Side Diff: third_party/WebKit/Source/core/layout/shapes/PolygonShape.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 19 matching lines...) Expand all
30 #ifndef PolygonShape_h 30 #ifndef PolygonShape_h
31 #define PolygonShape_h 31 #define PolygonShape_h
32 32
33 #include "core/layout/shapes/Shape.h" 33 #include "core/layout/shapes/Shape.h"
34 #include "core/layout/shapes/ShapeInterval.h" 34 #include "core/layout/shapes/ShapeInterval.h"
35 #include "platform/geometry/FloatPolygon.h" 35 #include "platform/geometry/FloatPolygon.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class OffsetPolygonEdge final : public VertexPair { 39 class OffsetPolygonEdge final : public VertexPair {
40 DISALLOW_ALLOCATION(); 40 DISALLOW_NEW();
41 public: 41 public:
42 OffsetPolygonEdge(const FloatPolygonEdge& edge, const FloatSize& offset) 42 OffsetPolygonEdge(const FloatPolygonEdge& edge, const FloatSize& offset)
43 : m_vertex1(edge.vertex1() + offset) 43 : m_vertex1(edge.vertex1() + offset)
44 , m_vertex2(edge.vertex2() + offset) 44 , m_vertex2(edge.vertex2() + offset)
45 { 45 {
46 } 46 }
47 47
48 const FloatPoint& vertex1() const override { return m_vertex1; } 48 const FloatPoint& vertex1() const override { return m_vertex1; }
49 const FloatPoint& vertex2() const override { return m_vertex2; } 49 const FloatPoint& vertex2() const override { return m_vertex2; }
50 50
(...skipping 21 matching lines...) Expand all
72 LineSegment getExcludedInterval(LayoutUnit logicalTop, LayoutUnit logicalHei ght) const override; 72 LineSegment getExcludedInterval(LayoutUnit logicalTop, LayoutUnit logicalHei ght) const override;
73 void buildDisplayPaths(DisplayPaths&) const override; 73 void buildDisplayPaths(DisplayPaths&) const override;
74 74
75 private: 75 private:
76 FloatPolygon m_polygon; 76 FloatPolygon m_polygon;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif // PolygonShape_h 81 #endif // PolygonShape_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698