Bug 1546697 - followup: Fix a typo introduced in the last commit. r=a11y-orange
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 26 Apr 2019 02:27:13 +0200
changeset 471421 894d95f52dc2387e9112ac682f2af7f35309bad9
parent 471420 ee95a11e12edabbf8f75fb17517524ef043e265d
child 471422 ffc6d61950a5cab8b070f61de6e6d9b884b33dfd
push id84088
push useremilio@crisal.io
push dateFri, 26 Apr 2019 00:29:33 +0000
treeherderautoland@894d95f52dc2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersa11y-orange
bugs1546697
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1546697 - followup: Fix a typo introduced in the last commit. r=a11y-orange
accessible/generic/HyperTextAccessible.cpp
--- a/accessible/generic/HyperTextAccessible.cpp
+++ b/accessible/generic/HyperTextAccessible.cpp
@@ -1868,17 +1868,17 @@ nsresult HyperTextAccessible::RenderedTo
   NS_ENSURE_TRUE(aFrame, NS_ERROR_FAILURE);
 
   NS_ASSERTION(aFrame->IsTextFrame(), "Need text frame for offset conversion");
   NS_ASSERTION(aFrame->GetPrevContinuation() == nullptr,
                "Call on primary frame only");
 
   nsIFrame::RenderedText text = aFrame->GetRenderedText(
       aRenderedOffset, aRenderedOffset + 1,
-      nsIFrame::TextOffsetType::OffsetsInContentText,
+      nsIFrame::TextOffsetType::OffsetsInRenderedText,
       nsIFrame::TrailingWhitespace::DontTrim);
   *aContentOffset = text.mOffsetWithinNodeText;
 
   return NS_OK;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 // HyperTextAccessible public