Title: [168531] trunk/Source/WebCore
- Revision
- 168531
- Author
- za...@apple.com
- Date
- 2014-05-09 07:56:15 -0700 (Fri, 09 May 2014)
Log Message
Unreviewed. Another attempt to fix Windows build after r168528.
* platform/graphics/win/FontWin.cpp:
(WebCore::Font::adjustSelectionRectForComplexText):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (168530 => 168531)
--- trunk/Source/WebCore/ChangeLog 2014-05-09 14:42:01 UTC (rev 168530)
+++ trunk/Source/WebCore/ChangeLog 2014-05-09 14:56:15 UTC (rev 168531)
@@ -1,5 +1,12 @@
2014-05-09 Zalan Bujtas <za...@apple.com>
+ Unreviewed. Another attempt to fix Windows build after r168528.
+
+ * platform/graphics/win/FontWin.cpp:
+ (WebCore::Font::adjustSelectionRectForComplexText):
+
+2014-05-09 Zalan Bujtas <za...@apple.com>
+
Unreviewed build fix for Win after r168528.
* platform/graphics/win/FontWin.cpp:
Modified: trunk/Source/WebCore/platform/graphics/win/FontWin.cpp (168530 => 168531)
--- trunk/Source/WebCore/platform/graphics/win/FontWin.cpp 2014-05-09 14:42:01 UTC (rev 168530)
+++ trunk/Source/WebCore/platform/graphics/win/FontWin.cpp 2014-05-09 14:56:15 UTC (rev 168531)
@@ -59,9 +59,10 @@
it.advance(to);
float afterWidth = it.runWidthSoFar();
- if (run.rtl())
- selectionRect.move(it.totalWidth() - afterWidth, 0);
- else
+ if (run.rtl()) {
+ it.advance(run.length());
+ selectionRect.move(it.runWidthSoFar() - afterWidth, 0);
+ } else
selectionRect.move(beforeWidth, 0);
selectionRect.setWidth(afterWidth - beforeWidth);
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes