https://bugs.webkit.org/show_bug.cgi?id=75851
Patch by Stephen Chenney <schenney@chromium.org> on 2012-01-17
Reviewed by Ryosuke Niwa.
.:
Added a check for null box in localCaretRect, to match test in other
implementations. Adding a manual test because the crash is not
reproducible in DRT.
* ManualTests/svg-modify-deleted-selection.svg: Added.
Source/WebCore:
Added a check for null box in localCaretRect, to match test in other
implementations. Adding a manual test because the crash is not reproducible
in DRT.
Test: ManualTests/svg-modify-deleted-selection.svg
* rendering/svg/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::localCaretRect):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105224
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-17 Stephen Chenney <schenney@chromium.org>
+
+ NULL ptr in WebCore::RenderSVGInlineText::localCaretRect
+ https://bugs.webkit.org/show_bug.cgi?id=75851
+
+ Reviewed by Ryosuke Niwa.
+
+ Added a check for null box in localCaretRect, to match test in other
+ implementations. Adding a manual test because the crash is not
+ reproducible in DRT.
+
+ * ManualTests/svg-modify-deleted-selection.svg: Added.
+
2012-01-17 Raul Hudea <rhudea@adobe.com>
Move tests out of WebCore/manual-tests to toplevel ManualTests.
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg">
+<style>
+ * {
+ border-top-style: inset
+ }
+</style>
+<script>
+ window.onclick=function() {
+ getSelection().setBaseAndExtent(document,5,document,5);
+ getSelection().deleteFromDocument();
+ getSelection().modify('extend','backward','line');
+ }
+</script>
+<text y="50" fill="green" font-size="20">Test passes if no crash on mouse click. Text may be highlighted.</text>
+<text> 1 </text>
+</svg>
+2012-01-17 Stephen Chenney <schenney@chromium.org>
+
+ NULL ptr in WebCore::RenderSVGInlineText::localCaretRect
+ https://bugs.webkit.org/show_bug.cgi?id=75851
+
+ Reviewed by Ryosuke Niwa.
+
+ Added a check for null box in localCaretRect, to match test in other
+ implementations. Adding a manual test because the crash is not reproducible
+ in DRT.
+
+ Test: ManualTests/svg-modify-deleted-selection.svg
+
+ * rendering/svg/RenderSVGInlineText.cpp:
+ (WebCore::RenderSVGInlineText::localCaretRect):
+
2012-01-17 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Uint8ClampedArray support
LayoutRect RenderSVGInlineText::localCaretRect(InlineBox* box, int caretOffset, LayoutUnit*)
{
- if (!box->isInlineTextBox())
+ if (!box || !box->isInlineTextBox())
return LayoutRect();
InlineTextBox* textBox = static_cast<InlineTextBox*>(box);