Index: Source/core/rendering/compositing/CompositedSelectionBound.h |
diff --git a/Source/platform/fonts/FontPlatformFeatures.h b/Source/core/rendering/compositing/CompositedSelectionBound.h |
similarity index 76% |
copy from Source/platform/fonts/FontPlatformFeatures.h |
copy to Source/core/rendering/compositing/CompositedSelectionBound.h |
index b2feda2d8bcc65ab02f02438d56037c27e5c2e7d..a696a5c2d941f68ab5b5e59ed81f54f9d5f048e9 100644 |
--- a/Source/platform/fonts/FontPlatformFeatures.h |
+++ b/Source/core/rendering/compositing/CompositedSelectionBound.h |
@@ -28,20 +28,32 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef FontPlatformFeatures_h |
-#define FontPlatformFeatures_h |
+#ifndef CompositedSelectionBound_h |
+#define CompositedSelectionBound_h |
-#include "platform/PlatformExport.h" |
+#include "platform/geometry/IntRect.h" |
+#include "platform/graphics/GraphicsLayer.h" |
namespace blink { |
-class FontPlatformFeatures { |
-public: |
- static bool canReturnFallbackFontsForComplexText(); |
- static bool canExpandAroundIdeographsInComplexText(); |
+struct CompositedSelectionBound { |
+ enum Type { |
+ Caret, |
+ SelectionLeft, |
+ SelectionRight |
+ }; |
-private: |
- FontPlatformFeatures(); |
+ CompositedSelectionBound() |
+ : type(Caret) |
+ , layer(nullptr) |
+ { |
+ } |
+ |
+ Type type; |
+ GraphicsLayer* layer; |
+ IntRect edgeRectInLayer; |
+ IntPoint edgeTopInLayer; |
+ IntPoint edgeBottomInLayer; |
}; |
} // namespace blink |