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

Side by Side Diff: Source/core/paint/BackgroundImageGeometry.h

Issue 1297913003: Mark BackgroundImageGeometry as stack 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BackgroundImageGeometry_h 5 #ifndef BackgroundImageGeometry_h
6 #define BackgroundImageGeometry_h 6 #define BackgroundImageGeometry_h
7 7
8 #include "platform/geometry/IntPoint.h" 8 #include "platform/geometry/IntPoint.h"
9 #include "platform/geometry/IntRect.h" 9 #include "platform/geometry/IntRect.h"
10 #include "platform/geometry/IntSize.h" 10 #include "platform/geometry/IntSize.h"
11 #include "wtf/Allocator.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class BackgroundImageGeometry { 15 class BackgroundImageGeometry {
16 STACK_ALLOCATED();
15 public: 17 public:
16 BackgroundImageGeometry() 18 BackgroundImageGeometry()
17 : m_hasNonLocalGeometry(false) 19 : m_hasNonLocalGeometry(false)
18 { } 20 { }
19 21
20 IntRect destRect() const { return m_destRect; } 22 IntRect destRect() const { return m_destRect; }
21 void setDestRect(const IntRect& destRect) 23 void setDestRect(const IntRect& destRect)
22 { 24 {
23 m_destRect = destRect; 25 m_destRect = destRect;
24 } 26 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 IntRect m_destRect; 62 IntRect m_destRect;
61 IntPoint m_phase; 63 IntPoint m_phase;
62 IntSize m_tileSize; 64 IntSize m_tileSize;
63 IntSize m_repeatSpacing; 65 IntSize m_repeatSpacing;
64 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies tha t we can't always cheaply compute destRect. 66 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies tha t we can't always cheaply compute destRect.
65 }; 67 };
66 68
67 } // namespace blink 69 } // namespace blink
68 70
69 #endif // BackgroundImageGeometry_h 71 #endif // BackgroundImageGeometry_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698