From dcd6ed49c62731765fd2111cc914a29e5e61db31 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Wed, 22 May 2013 21:35:41 -0700 Subject: [PATCH] Back out 4fd41b93f97c (bug 865654) for mochitest-1 failure --- content/base/src/nsDocument.cpp | 6 +----- content/base/test/test_caretPositionFromPoint.html | 9 +-------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index 92393c58cdd..c1b852a1cde 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -9390,11 +9390,7 @@ nsIDocument::CaretPositionFromPoint(float aX, float aY) if (firstChild) { anonNode = firstChild; } - - if (textArea) { - offset = nsContentUtils::GetAdjustedOffsetInTextControl(ptFrame, offset); - } - + offset = nsContentUtils::GetAdjustedOffsetInTextControl(ptFrame, offset); node = nonanon; } else { node = nullptr; diff --git a/content/base/test/test_caretPositionFromPoint.html b/content/base/test/test_caretPositionFromPoint.html index 905a65059db..877dff0624f 100644 --- a/content/base/test/test_caretPositionFromPoint.html +++ b/content/base/test/test_caretPositionFromPoint.html @@ -87,11 +87,7 @@ var nullCp4 = document.caretPositionFromPoint(0, 9000); ok(!nullCp4, "caret position with x > viewport height should be null"); - // Check a point within the bottom whitespace of the input. - var test5Element = document.getElementById('test5'); - var test5Rect = test5Element.getBoundingClientRect(); - checkOffsetsFromPoint(test5Rect.left + 5, test5Rect.bottom - 10, 0, 'test5'); - + // Check the first and last characters of the marquee. SimpleTest.finish(); } @@ -105,8 +101,5 @@

marquee -
- -