Title: [89322] trunk/Source/WebCore
- Revision
- 89322
- Author
- [email protected]
- Date
- 2011-06-20 17:57:31 -0700 (Mon, 20 Jun 2011)
Log Message
2011-06-20 Alexey Proskuryakov <[email protected]>
Reviewed by Darin Adler.
startWordBoundary() in visible_units.cpp assumes that all characters are 16 bit
https://bugs.webkit.org/show_bug.cgi?id=63027
No new tests, because I don't see this affect any webkit.org ports.
* editing/visible_units.cpp: (WebCore::startWordBoundary): Previous offset is not just minus
one - we need to use a proper macro to iterate.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (89321 => 89322)
--- trunk/Source/WebCore/ChangeLog 2011-06-21 00:36:27 UTC (rev 89321)
+++ trunk/Source/WebCore/ChangeLog 2011-06-21 00:57:31 UTC (rev 89322)
@@ -1,3 +1,15 @@
+2011-06-20 Alexey Proskuryakov <[email protected]>
+
+ Reviewed by Darin Adler.
+
+ startWordBoundary() in visible_units.cpp assumes that all characters are 16 bit
+ https://bugs.webkit.org/show_bug.cgi?id=63027
+
+ No new tests, because I don't see this affect any webkit.org ports.
+
+ * editing/visible_units.cpp: (WebCore::startWordBoundary): Previous offset is not just minus
+ one - we need to use a proper macro to iterate.
+
2011-06-20 Jay Civelli <[email protected]>
Reviewed by Adam Barth.
Modified: trunk/Source/WebCore/editing/visible_units.cpp (89321 => 89322)
--- trunk/Source/WebCore/editing/visible_units.cpp 2011-06-21 00:36:27 UTC (rev 89321)
+++ trunk/Source/WebCore/editing/visible_units.cpp 2011-06-21 00:57:31 UTC (rev 89322)
@@ -232,7 +232,8 @@
}
needMoreContext = false;
int start, end;
- findWordBoundary(characters, length, offset - 1, &start, &end);
+ U16_BACK_1(characters, 0, offset);
+ findWordBoundary(characters, length, offset, &start, &end);
return start;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes