| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |