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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerFragment.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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 // 37 //
38 // Fragments are a paint/hit-testing only concept in Blink. 38 // Fragments are a paint/hit-testing only concept in Blink.
39 // Every box has at least one fragment, even if it is not paginated/fragmented. 39 // Every box has at least one fragment, even if it is not paginated/fragmented.
40 // If a box has more than one fragment (i.e. is paginated by an ancestor), the 40 // If a box has more than one fragment (i.e. is paginated by an ancestor), the
41 // fragments are called "paginated fragments". Note that this is a Blink 41 // fragments are called "paginated fragments". Note that this is a Blink
42 // vocabulary extension and doesn't come from the specification. 42 // vocabulary extension and doesn't come from the specification.
43 // 43 //
44 // The fragments are collected by calling PaintLayer::collectFragments 44 // The fragments are collected by calling PaintLayer::collectFragments
45 // on every box once per paint/hit-testing operation. 45 // on every box once per paint/hit-testing operation.
46 struct PaintLayerFragment { 46 struct PaintLayerFragment {
47 ALLOW_ONLY_INLINE_ALLOCATION(); 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
48 public: 48 public:
49 void setRects(const LayoutRect& bounds, const ClipRect& background, const Cl ipRect& foreground) 49 void setRects(const LayoutRect& bounds, const ClipRect& background, const Cl ipRect& foreground)
50 { 50 {
51 layerBounds = bounds; 51 layerBounds = bounds;
52 backgroundRect = background; 52 backgroundRect = background;
53 foregroundRect = foreground; 53 foregroundRect = foreground;
54 } 54 }
55 55
56 void moveBy(const LayoutPoint& offset) 56 void moveBy(const LayoutPoint& offset)
57 { 57 {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // 117 //
118 // It is in layer-local (physical) coordinates. 118 // It is in layer-local (physical) coordinates.
119 LayoutRect paginationClip; 119 LayoutRect paginationClip;
120 }; 120 };
121 121
122 typedef Vector<PaintLayerFragment, 1> PaintLayerFragments; 122 typedef Vector<PaintLayerFragment, 1> PaintLayerFragments;
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // PaintLayerFragment_h 126 #endif // PaintLayerFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698