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 530221 894d95f52dc2387e9112ac682f2af7f35309bad9
parent 530220 ee95a11e12edabbf8f75fb17517524ef043e265d
child 530222 ffc6d61950a5cab8b070f61de6e6d9b884b33dfd
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [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