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 23 matching lines...) Expand all Loading... |
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 #include "wtf/Allocator.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 struct CompositedSelectionBound { | 40 struct CompositedSelectionBound { |
41 STACK_ALLOCATED(); | 41 STACK_ALLOCATED(); |
42 CompositedSelectionBound() : layer(nullptr), isTextDirectionRTL(false) {} | 42 CompositedSelectionBound() : layer(nullptr), isTextDirectionRTL(false) {} |
43 | 43 |
44 // The structure describes the position of a caret in space of the GraphicsLay
er the caret resides in. | 44 // The structure describes the position of a caret in space of the |
45 // Where edgeTopInLayer is the top point of the caret, usually on the ascend l
ine of the line box, | 45 // GraphicsLayer the caret resides in. Where edgeTopInLayer is the top point |
46 // and edgeBottomInLayer it the bottom point, on the baseline of the line box. | 46 // of the caret, usually on the ascend line of the line box, and |
| 47 // edgeBottomInLayer it the bottom point, on the baseline of the line box. |
47 GraphicsLayer* layer; | 48 GraphicsLayer* layer; |
48 FloatPoint edgeTopInLayer; | 49 FloatPoint edgeTopInLayer; |
49 FloatPoint edgeBottomInLayer; | 50 FloatPoint edgeBottomInLayer; |
50 | 51 |
51 bool isTextDirectionRTL; | 52 bool isTextDirectionRTL; |
52 }; | 53 }; |
53 | 54 |
54 } // namespace blink | 55 } // namespace blink |
55 | 56 |
56 #endif | 57 #endif |
OLD | NEW |