Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2025-07-04 22:28:17 +08:00
commit 9175504ffc
25 changed files with 75 additions and 75 deletions

View file

@ -406,7 +406,7 @@ HTMLEditor::FindSelectionRoot(nsINode* aNode)
// If the content is in read-write state but is not editable itself,
// return it as the selection root.
if (content->IsElement() &&
content->AsElement()->State().HasState(NS_EVENT_STATE_MOZ_READWRITE)) {
content->AsElement()->State().HasState(NS_EVENT_STATE_READWRITE)) {
return content.forget();
}
return nullptr;

View file

@ -2,8 +2,8 @@
<html class="reftest-wait">
<body>
<style>
:-moz-read-only { color: red; }
:-moz-read-write { color: green; }
:read-only { color: red; }
:read-write { color: green; }
</style>
<script>
onload = function() {

View file

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<style>
:-moz-read-only { color: green; }
:-moz-read-write { color: red; }
:read-only { color: green; }
:read-write { color: red; }
</style>
<body onload="document.designMode='on';document.designMode='off'">
<div>test</div>

View file

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<style>
:-moz-read-only { color: green; }
:-moz-read-write { color: red; }
:read-only { color: green; }
:read-write { color: red; }
</style>
<body onload="document.designMode='on';document.designMode='off'">
<div>test</div>

View file

@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<style>
:-moz-read-only { color: red; }
:-moz-read-write { color: green; }
:read-only { color: red; }
:read-write { color: green; }
</style>
<body onload="document.designMode='on';document.designMode='off'">
<div contenteditable>test</div>

View file

@ -2,7 +2,7 @@
<html>
<head>
<style>
:-moz-read-write + span {
:read-write + span {
display: none;
}
span {

View file

@ -2,7 +2,7 @@
<html>
<head>
<style>
:-moz-read-only + span {
:read-only + span {
display: none;
}
span {

View file

@ -2,7 +2,7 @@
<html>
<head>
<style>
:-moz-read-write + span {
:read-write + span {
display: none;
}
span {

View file

@ -2,7 +2,7 @@
<html>
<head>
<style>
:-moz-read-write + span {
:read-write + span {
display: none;
}
span {