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

Unified Diff: Source/core/rendering/compositing/CompositedSelectionBound.h

Issue 352173002: Expose public interface for composited selection bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/compositing/CompositedSelectionBound.h
diff --git a/Source/platform/fonts/FontPlatformFeatures.h b/Source/core/rendering/compositing/CompositedSelectionBound.h
similarity index 81%
copy from Source/platform/fonts/FontPlatformFeatures.h
copy to Source/core/rendering/compositing/CompositedSelectionBound.h
index da59bc740fe7abeef9c2eab257b6ca30632226be..737cdd037c56cc8faa730d7794b97329cf78dc3a 100644
--- a/Source/platform/fonts/FontPlatformFeatures.h
+++ b/Source/core/rendering/compositing/CompositedSelectionBound.h
@@ -28,22 +28,26 @@
* 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/text/TextDirection.h"
namespace WebCore {
-class FontPlatformFeatures {
-public:
- static bool canReturnFallbackFontsForComplexText();
- static bool canExpandAroundIdeographsInComplexText();
+struct CompositedSelectionBound {
+ CompositedSelectionBound()
+ : layerId(0)
+ , textDirection(LTR)
+ {
+ }
-private:
- FontPlatformFeatures();
+ int layerId;
+ IntRect layerRect;
+ TextDirection textDirection;
};
-}
+} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698