зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1652897 - Remove IS_DIRTY assertion as it currently happens r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D84553
This commit is contained in:
Родитель
fc399d032a
Коммит
4ffb4f26c5
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<script>
|
||||||
|
// DO NOT move this script to the end of this file
|
||||||
|
// as the bug depends on this specific tree structure
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
window.getSelection().selectAllChildren(document.body)
|
||||||
|
window.getSelection().modify('extend','left','word')
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<table>
|
||||||
|
<caption>
|
||||||
|
<caption>
|
|
@ -780,3 +780,4 @@ load 1640275.html
|
||||||
pref(layout.accessiblecaret.enabled,true) load 1644819.html
|
pref(layout.accessiblecaret.enabled,true) load 1644819.html
|
||||||
load 1645549-1.html
|
load 1645549-1.html
|
||||||
load 1648577.html
|
load 1648577.html
|
||||||
|
load 1652897.html
|
||||||
|
|
|
@ -8516,7 +8516,12 @@ nsresult nsIFrame::PeekOffsetForLineEdge(nsPeekOffsetStruct* aPos) {
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult nsIFrame::PeekOffset(nsPeekOffsetStruct* aPos) {
|
nsresult nsIFrame::PeekOffset(nsPeekOffsetStruct* aPos) {
|
||||||
MOZ_ASSERT(aPos && !HasAnyStateBits(NS_FRAME_IS_DIRTY));
|
MOZ_ASSERT(aPos);
|
||||||
|
|
||||||
|
if (NS_WARN_IF(HasAnyStateBits(NS_FRAME_IS_DIRTY))) {
|
||||||
|
// FIXME(Bug 1654362): <caption> currently can remain dirty.
|
||||||
|
return NS_ERROR_UNEXPECTED;
|
||||||
|
}
|
||||||
|
|
||||||
// Translate content offset to be relative to frame
|
// Translate content offset to be relative to frame
|
||||||
int32_t offset = aPos->mStartOffset - GetRangeForFrame(this).start;
|
int32_t offset = aPos->mStartOffset - GetRangeForFrame(this).start;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче