| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef CompositedSelectionBound_h | 31 #ifndef CompositedSelectionBound_h |
| 32 #define CompositedSelectionBound_h | 32 #define CompositedSelectionBound_h |
| 33 | 33 |
| 34 #include "platform/geometry/FloatPoint.h" | 34 #include "platform/geometry/FloatPoint.h" |
| 35 #include "platform/graphics/GraphicsLayer.h" | 35 #include "platform/graphics/GraphicsLayer.h" |
| 36 #include "wtf/Allocator.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 struct CompositedSelectionBound { | 40 struct CompositedSelectionBound { |
| 41 STACK_ALLOCATED(); |
| 40 CompositedSelectionBound() | 42 CompositedSelectionBound() |
| 41 : layer(nullptr) | 43 : layer(nullptr) |
| 42 , isTextDirectionRTL(false) | 44 , isTextDirectionRTL(false) |
| 43 { | 45 { |
| 44 } | 46 } |
| 45 | 47 |
| 46 // The structure describes the position of a caret in space of the GraphicsL
ayer the caret resides in. | 48 // The structure describes the position of a caret in space of the GraphicsL
ayer the caret resides in. |
| 47 // Where edgeTopInLayer is the top point of the caret, usually on the ascend
line of the line box, | 49 // Where edgeTopInLayer is the top point of the caret, usually on the ascend
line of the line box, |
| 48 // and edgeBottomInLayer it the bottom point, on the baseline of the line bo
x. | 50 // and edgeBottomInLayer it the bottom point, on the baseline of the line bo
x. |
| 49 GraphicsLayer* layer; | 51 GraphicsLayer* layer; |
| 50 FloatPoint edgeTopInLayer; | 52 FloatPoint edgeTopInLayer; |
| 51 FloatPoint edgeBottomInLayer; | 53 FloatPoint edgeBottomInLayer; |
| 52 | 54 |
| 53 bool isTextDirectionRTL; | 55 bool isTextDirectionRTL; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 58 #endif | 60 #endif |
| OLD | NEW |