From 54e62448019a2a484bbd677ea0512d39b48f4761 Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Tue, 20 Nov 2012 08:44:04 -0800 Subject: [PATCH] Backout b7e492bf7c13, a64c112c6858, 84b9a773104b, 4bd4aabbaf28 and 24ad2de34061 (bug 548206) for Win Ru orange --- content/base/public/DirectionalityUtils.h | 92 +- content/base/public/Element.h | 24 +- content/base/public/nsIDocument.h | 4 +- content/base/public/nsINode.h | 61 +- content/base/src/DirectionalityUtils.cpp | 810 +----------------- content/base/src/Element.cpp | 39 +- content/base/src/nsDocument.cpp | 1 + content/base/src/nsDocument.h | 2 +- content/base/src/nsGenericDOMDataNode.cpp | 5 - content/base/src/nsGkAtomList.h | 2 - content/base/src/nsTextNode.cpp | 23 - content/base/src/nsTextNode.h | 6 - .../html/content/src/nsGenericHTMLElement.cpp | 50 +- .../html/content/src/nsGenericHTMLElement.h | 4 - .../html/content/src/nsHTMLInputElement.cpp | 30 - content/html/content/src/nsHTMLInputElement.h | 2 - .../html/content/src/nsHTMLUnknownElement.h | 3 - content/html/content/test/test_bug660663.html | 5 +- .../bidi/dirAuto/dir_auto-EN-L-ref.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-EN-L.html | 58 -- .../bidi/dirAuto/dir_auto-EN-R-ref.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-EN-R.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-L-ref.html | 58 -- layout/reftests/bidi/dirAuto/dir_auto-L.html | 58 -- .../bidi/dirAuto/dir_auto-N-EN-L-ref.html | 58 -- .../bidi/dirAuto/dir_auto-N-EN-L.html | 58 -- .../bidi/dirAuto/dir_auto-N-EN-R-ref.html | 58 -- .../bidi/dirAuto/dir_auto-N-EN-R.html | 58 -- .../bidi/dirAuto/dir_auto-N-EN-ref.html | 51 -- .../reftests/bidi/dirAuto/dir_auto-N-EN.html | 51 -- .../bidi/dirAuto/dir_auto-N-L-ref.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-N-L.html | 58 -- .../bidi/dirAuto/dir_auto-N-R-ref.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-N-R.html | 58 -- .../reftests/bidi/dirAuto/dir_auto-R-ref.html | 59 -- layout/reftests/bidi/dirAuto/dir_auto-R.html | 58 -- .../dirAuto/dir_auto-contained-L-ref.html | 62 -- .../bidi/dirAuto/dir_auto-contained-L.html | 62 -- .../dirAuto/dir_auto-contained-R-ref.html | 58 -- .../bidi/dirAuto/dir_auto-contained-R.html | 58 -- .../dirAuto/dir_auto-contained-bdi-L-ref.html | 64 -- .../dirAuto/dir_auto-contained-bdi-L.html | 64 -- .../dirAuto/dir_auto-contained-bdi-R-ref.html | 61 -- .../dirAuto/dir_auto-contained-bdi-R.html | 61 -- .../dirAuto/dir_auto-contained-dir-L-ref.html | 61 -- .../dirAuto/dir_auto-contained-dir-L.html | 61 -- .../dirAuto/dir_auto-contained-dir-R-ref.html | 58 -- .../dirAuto/dir_auto-contained-dir-R.html | 58 -- .../dir_auto-contained-dir_auto-L-ref.html | 61 -- .../dir_auto-contained-dir_auto-L.html | 61 -- .../dir_auto-contained-dir_auto-R-ref.html | 58 -- .../dir_auto-contained-dir_auto-R.html | 58 -- .../dir_auto-contained-script-L-ref.html | 58 -- .../dirAuto/dir_auto-contained-script-L.html | 58 -- .../dir_auto-contained-script-R-ref.html | 58 -- .../dirAuto/dir_auto-contained-script-R.html | 58 -- .../dir_auto-contained-style-L-ref.html | 70 -- .../dirAuto/dir_auto-contained-style-L.html | 70 -- .../dir_auto-contained-style-R-ref.html | 70 -- .../dirAuto/dir_auto-contained-style-R.html | 70 -- .../dir_auto-contained-textarea-L-ref.html | 61 -- .../dir_auto-contained-textarea-L.html | 61 -- .../dir_auto-contained-textarea-R-ref.html | 58 -- .../dir_auto-contained-textarea-R.html | 58 -- .../bidi/dirAuto/dir_auto-input-EN-L-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-EN-L.html | 59 -- .../bidi/dirAuto/dir_auto-input-EN-R-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-EN-R.html | 59 -- .../bidi/dirAuto/dir_auto-input-L-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-L.html | 59 -- .../dirAuto/dir_auto-input-N-EN-L-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-EN-L.html | 59 -- .../dirAuto/dir_auto-input-N-EN-R-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-EN-R.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-EN-ref.html | 54 -- .../bidi/dirAuto/dir_auto-input-N-EN.html | 54 -- .../bidi/dirAuto/dir_auto-input-N-L-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-L.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-R-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-N-R.html | 59 -- .../bidi/dirAuto/dir_auto-input-R-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-R.html | 59 -- .../dir_auto-input-script-EN-L-ref.html | 59 -- .../dirAuto/dir_auto-input-script-EN-L.html | 68 -- .../dir_auto-input-script-EN-R-ref.html | 59 -- .../dirAuto/dir_auto-input-script-EN-R.html | 68 -- .../dirAuto/dir_auto-input-script-L-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-script-L.html | 68 -- .../dir_auto-input-script-N-EN-L-ref.html | 59 -- .../dirAuto/dir_auto-input-script-N-EN-L.html | 68 -- .../dir_auto-input-script-N-EN-R-ref.html | 59 -- .../dirAuto/dir_auto-input-script-N-EN-R.html | 68 -- .../dir_auto-input-script-N-EN-ref.html | 54 -- .../dirAuto/dir_auto-input-script-N-EN.html | 63 -- .../dir_auto-input-script-N-L-ref.html | 59 -- .../dirAuto/dir_auto-input-script-N-L.html | 68 -- .../dir_auto-input-script-N-R-ref.html | 59 -- .../dirAuto/dir_auto-input-script-N-R.html | 68 -- .../dirAuto/dir_auto-input-script-R-ref.html | 59 -- .../bidi/dirAuto/dir_auto-input-script-R.html | 68 -- .../bidi/dirAuto/dir_auto-isolate-ref.html | 56 -- .../bidi/dirAuto/dir_auto-isolate.html | 58 -- .../bidi/dirAuto/dir_auto-pre-N-EN-ref.html | 49 -- .../bidi/dirAuto/dir_auto-pre-N-EN.html | 66 -- .../dir_auto-pre-N-between-Rs-ref.html | 61 -- .../dirAuto/dir_auto-pre-N-between-Rs.html | 76 -- .../bidi/dirAuto/dir_auto-pre-mixed-ref.html | 61 -- .../bidi/dirAuto/dir_auto-pre-mixed.html | 77 -- .../dirAuto/dir_auto-set-contained-dir-L.html | 74 -- .../dirAuto/dir_auto-set-contained-dir-R.html | 71 -- .../dir_auto-set-contained-invalid-dir-L.html | 75 -- .../dir_auto-set-contained-invalid-dir-R.html | 72 -- .../dirAuto/dir_auto-textarea-N-EN-ref.html | 49 -- .../bidi/dirAuto/dir_auto-textarea-N-EN.html | 66 -- .../dir_auto-textarea-N-between-Rs-ref.html | 65 -- .../dir_auto-textarea-N-between-Rs.html | 79 -- .../dirAuto/dir_auto-textarea-mixed-ref.html | 64 -- .../bidi/dirAuto/dir_auto-textarea-mixed.html | 80 -- .../dir_auto-textarea-script-N-EN-ref.html | 49 -- .../dir_auto-textarea-script-N-EN.html | 75 -- ...auto-textarea-script-N-between-Rs-ref.html | 65 -- ...dir_auto-textarea-script-N-between-Rs.html | 84 -- .../dir_auto-textarea-script-mixed-ref.html | 64 -- .../dir_auto-textarea-script-mixed.html | 98 --- .../dir_auto-unset-contained-dir-L-ref.html | 61 -- .../dir_auto-unset-contained-dir-L.html | 71 -- .../dir_auto-unset-contained-dir-R-ref.html | 64 -- .../dir_auto-unset-contained-dir-R.html | 74 -- .../dynamicDirAuto-ChangeText-LTR1.html | 18 - .../dynamicDirAuto-ChangeText-LTR10.html | 18 - .../dynamicDirAuto-ChangeText-LTR2.html | 18 - .../dynamicDirAuto-ChangeText-LTR3.html | 18 - .../dynamicDirAuto-ChangeText-LTR4.html | 18 - .../dynamicDirAuto-ChangeText-LTR5.html | 18 - .../dynamicDirAuto-ChangeText-LTR6.html | 18 - .../dynamicDirAuto-ChangeText-LTR7.html | 18 - .../dynamicDirAuto-ChangeText-LTR8.html | 18 - .../dynamicDirAuto-ChangeText-LTR9.html | 18 - .../dynamicDirAuto-ChangeText-RTL1.html | 18 - .../dynamicDirAuto-ChangeText-RTL10.html | 18 - .../dynamicDirAuto-ChangeText-RTL2.html | 18 - .../dynamicDirAuto-ChangeText-RTL3.html | 18 - .../dynamicDirAuto-ChangeText-RTL4.html | 18 - .../dynamicDirAuto-ChangeText-RTL5.html | 18 - .../dynamicDirAuto-ChangeText-RTL6.html | 18 - .../dynamicDirAuto-ChangeText-RTL7.html | 18 - .../dynamicDirAuto-ChangeText-RTL8.html | 18 - .../dynamicDirAuto-ChangeText-RTL9.html | 18 - .../dynamicDirAuto-DeleteText-LTR1.html | 18 - .../dynamicDirAuto-DeleteText-LTR2.html | 18 - .../dynamicDirAuto-DeleteText-LTR3.html | 18 - .../dynamicDirAuto-DeleteText-RTL1.html | 18 - .../dynamicDirAuto-DeleteText-RTL2.html | 18 - .../dynamicDirAuto-DeleteText-RTL3.html | 18 - .../dirAuto/dynamicDirAuto-addLTR-Auto.html | 14 - .../dirAuto/dynamicDirAuto-addRTL-Auto.html | 14 - .../dirAuto/dynamicDirAuto-refLTR-LTR.html | 17 - .../dirAuto/dynamicDirAuto-refLTR-RTL.html | 17 - .../dirAuto/dynamicDirAuto-refRTL-LTR.html | 17 - .../dirAuto/dynamicDirAuto-refRTL-NoDir.html | 20 - .../dirAuto/dynamicDirAuto-refRTL-RTL.html | 17 - .../dirAuto/dynamicDirAuto-setLTR-Auto1.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-Auto2.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-Auto3.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-Auto4.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-Auto5.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-Auto6.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir1.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir2.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir3.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir4.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir5.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir6.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir7.html | 18 - .../dynamicDirAuto-setLTR-InvalidDir8.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR1.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR2.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR3.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR4.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR5.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR6.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR7.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-LTR8.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir1.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir2.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir3.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir4.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir5.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir6.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir7.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-NoDir8.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL1.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL2.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL3.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL4.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL5.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL6.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL7.html | 18 - .../dirAuto/dynamicDirAuto-setLTR-RTL8.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto1.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto2.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto3.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto4.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto5.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-Auto6.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir1.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir2.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir3.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir4.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir5.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir6.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir7.html | 18 - .../dynamicDirAuto-setRTL-InvalidDir8.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR1.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR2.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR3.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR4.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR5.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR6.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR7.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-LTR8.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir1.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir2.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir3.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir4.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir5.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir6.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir7.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-NoDir8.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL1.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL2.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL3.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL4.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL5.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL6.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL7.html | 18 - .../dirAuto/dynamicDirAuto-setRTL-RTL8.html | 18 - layout/reftests/bidi/dirAuto/reftest.list | 161 ---- layout/reftests/bidi/dirAuto/setDir.js | 199 ----- layout/reftests/bidi/reftest.list | 1 - layout/style/html.css | 3 - 241 files changed, 44 insertions(+), 10271 deletions(-) delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-N-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-isolate.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html delete mode 100644 layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR10.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR9.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL10.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL9.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-addLTR-Auto.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-addRTL-Auto.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-LTR.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-RTL.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-LTR.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-NoDir.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-RTL.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir8.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL1.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL2.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL3.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL4.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL5.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL6.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL7.html delete mode 100644 layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL8.html delete mode 100644 layout/reftests/bidi/dirAuto/reftest.list delete mode 100644 layout/reftests/bidi/dirAuto/setDir.js diff --git a/content/base/public/DirectionalityUtils.h b/content/base/public/DirectionalityUtils.h index 9d4a4000dbff..195f7009de2f 100644 --- a/content/base/public/DirectionalityUtils.h +++ b/content/base/public/DirectionalityUtils.h @@ -7,15 +7,9 @@ #ifndef DirectionalityUtils_h___ #define DirectionalityUtils_h___ -#include "prtypes.h" -#include "mozilla/StandardInteger.h" - class nsIContent; class nsIDocument; class nsINode; -class nsAString; -class nsAttrValue; -class nsTextNode; namespace mozilla { namespace dom { @@ -25,11 +19,12 @@ class Element; namespace mozilla { +namespace directionality { + enum Directionality { - eDir_NotSet, - eDir_RTL, - eDir_LTR, - eDir_Auto + eDir_NotSet = 0, + eDir_RTL = 1, + eDir_LTR = 2 }; /** @@ -49,84 +44,11 @@ Directionality RecomputeDirectionality(mozilla::dom::Element* aElement, * of setting the dir attribute, rather than walking up the ancestor tree in * the much more common case of getting the element's directionality. */ -void SetDirectionalityOnDescendants(mozilla::dom::Element* aElement, +void SetDirectionalityOnDescendants(mozilla::dom::Element* aElement, Directionality aDir, bool aNotify = true); -/** - * Walk the descendants of a node in tree order and, for any text node - * descendant that determines the directionality of some element and is not a - * descendant of another descendant of the original node with dir=auto, - * redetermine that element's directionality - */ -void WalkDescendantsResetAutoDirection(mozilla::dom::Element* aElement); - -/** - * After setting dir=auto on an element, walk its descendants in tree order. - * If the node doesn't have the NODE_ANCESTOR_HAS_DIR_AUTO flag, set the - * NODE_ANCESTOR_HAS_DIR_AUTO flag on all of its descendants. - * Resolve the directionality of the element by the "downward propagation - * algorithm" (defined in section 3 in the comments at the beginning of - * DirectionalityUtils.cpp) - */ -void WalkDescendantsSetDirAuto(mozilla::dom::Element* aElement, - bool aNotify = true); - -/** - * After unsetting dir=auto on an element, walk its descendants in tree order, - * skipping any that have dir=auto themselves, and unset the - * NODE_ANCESTOR_HAS_DIR_AUTO flag - */ -void WalkDescendantsClearAncestorDirAuto(mozilla::dom::Element* aElement); - -/** - * Walk the parent chain of a text node whose dir attribute has been removed and - * reset the direction of any of its ancestors which have dir=auto and whose - * directionality is determined by a text node descendant. - */ -void WalkAncestorsResetAutoDirection(mozilla::dom::Element* aElement, - bool aNotify = true); - -/** - * When the contents of a text node have changed, deal with any elements whose - * directionality needs to change - */ -void SetDirectionFromChangedTextNode(nsIContent* aTextNode, uint32_t aOffset, - const PRUnichar* aBuffer, uint32_t aLength, - bool aNotify); - -/** - * When a text node is appended to an element, find any ancestors with dir=auto - * whose directionality will be determined by the text node - */ -void SetDirectionFromNewTextNode(nsTextNode* aTextNode); - -/** - * When a text node is removed from a document, find any ancestors whose - * directionality it determined and redetermine their directionality - */ -void ResetDirectionSetByTextNode(nsTextNode* aTextNode); - -/** - * Set the directionality of an element according to the directionality of the - * text in aValue - */ -void SetDirectionalityFromValue(mozilla::dom::Element* aElement, - const nsAString& aValue, - bool aNotify); - -/** - * Called when setting the dir attribute on an element, immediately after - * AfterSetAttr. This is instead of using BeforeSetAttr or AfterSetAttr, because - * in AfterSetAttr we don't know the old value, so we can't identify all cases - * where we need to walk up or down the document tree and reset the direction; - * and in BeforeSetAttr we can't do the walk because this element hasn't had the - * value set yet so the results will be wrong. - */ -void OnSetDirAttr(mozilla::dom::Element* aElement, - const nsAttrValue* aNewValue, - bool hadValidDir, - bool aNotify); +} // end namespace directionality } // end namespace mozilla diff --git a/content/base/public/Element.h b/content/base/public/Element.h index 8ab3e2557e8e..b4800755ce9d 100644 --- a/content/base/public/Element.h +++ b/content/base/public/Element.h @@ -282,33 +282,34 @@ public: */ virtual nsIAtom *GetClassAttributeName() const; - inline Directionality GetDirectionality() const { + inline directionality::Directionality GetDirectionality() const { if (HasFlag(NODE_HAS_DIRECTION_RTL)) { - return eDir_RTL; + return directionality::eDir_RTL; } if (HasFlag(NODE_HAS_DIRECTION_LTR)) { - return eDir_LTR; + return directionality::eDir_LTR; } - return eDir_NotSet; + return directionality::eDir_NotSet; } - inline void SetDirectionality(Directionality aDir, bool aNotify) { + inline void SetDirectionality(directionality::Directionality aDir, + bool aNotify) { UnsetFlags(NODE_ALL_DIRECTION_FLAGS); if (!aNotify) { RemoveStatesSilently(DIRECTION_STATES); } switch (aDir) { - case (eDir_RTL): + case (directionality::eDir_RTL): SetFlags(NODE_HAS_DIRECTION_RTL); if (!aNotify) { AddStatesSilently(NS_EVENT_STATE_RTL); } break; - case(eDir_LTR): + case(directionality::eDir_LTR): SetFlags(NODE_HAS_DIRECTION_LTR); if (!aNotify) { AddStatesSilently(NS_EVENT_STATE_LTR); @@ -331,15 +332,6 @@ public: bool GetBindingURL(nsIDocument *aDocument, css::URLValue **aResult); - // The bdi element defaults to dir=auto if it has no dir attribute set. - // Other elements will only have dir=auto if they have an explicit dir=auto, - // which will mean that HasValidDir() returns true but HasFixedDir() returns - // false - inline bool HasDirAuto() const { - return (!HasFixedDir() && - (HasValidDir() || NodeInfo()->Equals(nsGkAtoms::bdi))); - } - protected: /** * Method to get the _intrinsic_ content state of this element. This is the diff --git a/content/base/public/nsIDocument.h b/content/base/public/nsIDocument.h index 3fc21aeed2f2..d37b1b5de01c 100644 --- a/content/base/public/nsIDocument.h +++ b/content/base/public/nsIDocument.h @@ -419,7 +419,7 @@ public: mSandboxFlags = sandboxFlags; } - inline mozilla::Directionality GetDocumentDirectionality() { + inline mozilla::directionality::Directionality GetDocumentDirectionality() { return mDirectionality; } @@ -1916,7 +1916,7 @@ protected: uint32_t mSandboxFlags; // The root directionality of this document. - mozilla::Directionality mDirectionality; + mozilla::directionality::Directionality mDirectionality; nsCString mContentLanguage; private: diff --git a/content/base/public/nsINode.h b/content/base/public/nsINode.h index 2775c08a1c10..5bbab1d1950d 100644 --- a/content/base/public/nsINode.h +++ b/content/base/public/nsINode.h @@ -1295,21 +1295,8 @@ private: NodeIsContent, // Set if the node has animations or transitions ElementHasAnimations, - // Set if node has a dir attribute with a valid value (ltr, rtl, or auto) + // Set if node has a dir attribute with a valid value (ltr or rtl) NodeHasValidDirAttribute, - // Set if node has a dir attribute with a fixed value (ltr or rtl, NOT auto) - NodeHasFixedDir, - // Set if the node has dir=auto and has a property pointing to the text - // node that determines its direction - NodeHasDirAutoSet, - // Set if the node is a text node descendant of a node with dir=auto - // and has a TextNodeDirectionalityMap property listing the elements whose - // direction it determines. - NodeHasTextNodeDirectionalityMap, - // Set if the node has dir=auto. - NodeHasDirAuto, - // Set if a node in the node's parent chain has dir=auto. - NodeAncestorHasDirAuto, // Guard value BooleanFlagCount }; @@ -1380,52 +1367,6 @@ public: void SetHasValidDir() { SetBoolFlag(NodeHasValidDirAttribute); } void ClearHasValidDir() { ClearBoolFlag(NodeHasValidDirAttribute); } bool HasValidDir() const { return GetBoolFlag(NodeHasValidDirAttribute); } - void SetHasFixedDir() { - MOZ_ASSERT(NodeType() != nsIDOMNode::TEXT_NODE, - "SetHasFixedDir on text node"); - SetBoolFlag(NodeHasFixedDir); - } - void ClearHasFixedDir() { - MOZ_ASSERT(NodeType() != nsIDOMNode::TEXT_NODE, - "ClearHasFixedDir on text node"); - ClearBoolFlag(NodeHasFixedDir); - } - bool HasFixedDir() const { return GetBoolFlag(NodeHasFixedDir); } - void SetHasDirAutoSet() { - MOZ_ASSERT(NodeType() != nsIDOMNode::TEXT_NODE, - "SetHasDirAutoSet on text node"); - SetBoolFlag(NodeHasDirAutoSet); - } - void ClearHasDirAutoSet() { - MOZ_ASSERT(NodeType() != nsIDOMNode::TEXT_NODE, - "ClearHasDirAutoSet on text node"); - ClearBoolFlag(NodeHasDirAutoSet); - } - bool HasDirAutoSet() const - { return GetBoolFlag(NodeHasDirAutoSet); } - void SetHasTextNodeDirectionalityMap() { - MOZ_ASSERT(NodeType() == nsIDOMNode::TEXT_NODE, - "SetHasTextNodeDirectionalityMap on non-text node"); - SetBoolFlag(NodeHasTextNodeDirectionalityMap); - } - void ClearHasTextNodeDirectionalityMap() { - MOZ_ASSERT(NodeType() == nsIDOMNode::TEXT_NODE, - "ClearHasTextNodeDirectionalityMap on non-text node"); - ClearBoolFlag(NodeHasTextNodeDirectionalityMap); - } - bool HasTextNodeDirectionalityMap() const - { return GetBoolFlag(NodeHasTextNodeDirectionalityMap); } - - void SetHasDirAuto() { SetBoolFlag(NodeHasDirAuto); } - void ClearHasDirAuto() { ClearBoolFlag(NodeHasDirAuto); } - bool HasDirAuto() const { return GetBoolFlag(NodeHasDirAuto); } - - void SetAncestorHasDirAuto() { SetBoolFlag(NodeAncestorHasDirAuto); } - void ClearAncestorHasDirAuto() { ClearBoolFlag(NodeAncestorHasDirAuto); } - bool AncestorHasDirAuto() const { return GetBoolFlag(NodeAncestorHasDirAuto); } - - bool NodeOrAncestorHasDirAuto() const - { return HasDirAuto() || AncestorHasDirAuto(); } protected: void SetParentIsContent(bool aValue) { SetBoolFlag(ParentIsContent, aValue); } void SetInDocument() { SetBoolFlag(IsInDocument); } diff --git a/content/base/src/DirectionalityUtils.cpp b/content/base/src/DirectionalityUtils.cpp index 59a565cdb780..8523e25a333a 100644 --- a/content/base/src/DirectionalityUtils.cpp +++ b/content/base/src/DirectionalityUtils.cpp @@ -4,554 +4,25 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -/* - Implementation description from https://etherpad.mozilla.org/dir-auto - - Static case - =========== - When we see a new content node with @dir=auto from the parser, we set the - NodeHasDirAuto flag on the node. We won't have enough information to - decide the directionality of the node at this point. - - When we bind a new content node to the document, if its parent has either of - the NodeAncestorHasDirAuto or NodeHasDirAuto flags, we set the - NodeAncestorHasDirAuto flag on the node. - - When a new input with @type=text/search/tel/url/email and @dir=auto is added - from the parser, we resolve the directionality based on its @value. - - When a new text node with non-neutral content is appended to a textarea - element with NodeHasDirAuto, if the directionality of the textarea element - is still unresolved, it is resolved based on the value of the text node. - Elements with unresolved directionality behave as LTR. - - When a new text node with non-neutral content is appended to an element that - is not a textarea but has either of the NodeAncestorHasDirAuto or - NodeHasDirAuto flags, we walk up the parent chain while the - NodeAncestorHasDirAuto flag is present, and when we reach an element with - NodeHasDirAuto and no resolved directionality, we resolve the directionality - based on the contents of the text node and cease walking the parent chain. - Note that we should ignore elements with NodeHasDirAuto with resolved - directionality, so that the second text node in this example tree doesn't - affect the directionality of the div: - -
- foo - بار -
- - The parent chain walk will be aborted if we hit a script or style element, or - if we hit an element with @dir=ltr or @dir=rtl. - - I will call this algorithm "upward propagation". - - Each text node should maintain a list of elements which have their - directionality determined by the first strong character of that text node. - This is useful to make dynamic changes more efficient. One way to implement - this is to have a per-document hash table mapping a text node to a set of - elements. I'll call this data structure TextNodeDirectionalityMap. The - algorithm for appending a new text node above needs to update this data - structure. - - *IMPLEMENTATION NOTE* - In practice, the implementation uses two per-node properties: - - dirAutoSetBy, which is set on a node with auto-directionality, and points to - the textnode that contains the strong character which determines the - directionality of the node. - - textNodeDirectionalityMap, which is set on a text node and points to a hash - table listing the nodes whose directionality is determined by the text node. - - Handling dynamic changes - ======================== - - We need to handle the following cases: - - 1. When the value of an input element with @type=text/search/tel/url/email is - changed, if it has NodeHasDirAuto, we update the resolved directionality. - - 2. When the dir attribute is changed from something else (including the case - where it doesn't exist) to auto on a textarea or an input element with - @type=text/search/tel/url/email, we set the NodeHasDirAuto flag and resolve - the directionality based on the value of the element. - - 3. When the dir attribute is changed from something else (including the case - where it doesn't exist) to auto on any element except case 1 above and the bdi - element, we run the following algorithm: - * We set the NodeHasDirAuto flag. - * If the element doesn't have the NodeAncestorHasDirAuto flag, we set the - NodeAncestorHasDirAuto flag on all of its child nodes. (Note that if the - element does have NodeAncestorHasDirAuto, all of its children should - already have this flag too. We can assert this in debug builds.) - * To resolve the directionality of the element, we run the algorithm explained - in http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-dir-attribute - (I'll call this the "downward propagation algorithm".) by walking the child - subtree in tree order. Note that an element with @dir=auto should not affect - other elements in its document with @dir=auto. So there is no need to walk up - the parent chain in this case. TextNodeDirectionalityMap needs to be updated - as appropriate. - - 3a. When the dir attribute is set to any valid value on an element that didn't - have a valid dir attribute before, this means that any descendant of that - element will not affect the directionality of any of its ancestors. So we need - to check whether any text node descendants of the element are listed in - TextNodeDirectionalityMap, and whether the elements whose direction they set - are ancestors of the element. If so, we need to rerun the downward propagation - algorithm for those ancestors. - - 4. When the dir attribute is changed from auto to something else (including - the case where it gets removed) on a textarea or an input element with - @type=text/search/tel/url/email, we unset the NodeHasDirAuto flag and - resolve the directionality based on the directionality of the value of the @dir - attribute on element itself or its parent element. - - 5. When the dir attribute is changed from auto to something else (including the - case where it gets removed) on any element except case 4 above and the bdi - element, we run the following algorithm: - * We unset the NodeHasDirAuto flag. - * If the element does not have the NodeAncestorHasDirAuto flag, we unset - the NodeAncestorHasDirAuto flag on all of its child nodes, except those - who are a descendant of another element with NodeHasDirAuto. (Note that if - the element has the NodeAncestorHasDirAuto flag, all of its child nodes - should still retain the same flag.) - * We resolve the directionality of the element based on the value of the @dir - attribute on the element itself or its parent element. - TextNodeDirectionalityMap needs to be updated as appropriate. - - 5a. When the dir attribute is removed or set to an invalid value on any - element (except a bdi element) with the NodeAncestorHasDirAuto flag which - previously had a valid dir attribute, it might have a text node descendant that - did not previously affect the directionality of any of its ancestors but should - now begin to affect them. - We run the following algorithm: - * Walk up the parent chain from the element. - * For any element that appears in the TextNodeDirectionalityMap, remove the - element from the map and rerun the downward propagation algorithm - (see section 3). - * If we reach an element without either of the NodeHasDirAuto or - NodeAncestorHasDirAuto flags, abort the parent chain walk. - - 6. When an element with @dir=auto is added to the document, we should handle it - similar to the case 2/3 above. - - 7. When an element with NodeHasDirAuto or NodeAncestorHasDirAuto is - removed from the document, we should handle it similar to the case 4/5 above, - except that we don't need to handle anything in the child subtree. We should - also remove all of the occurrences of that node and its descendants from - TextNodeDirectionalityMap. (This is the conceptual description of what needs to - happen but in the implementation UnbindFromTree is going to be called on all of - the descendants so we don't need to descend into the child subtree). - - 8. When the contents of a text node is changed either from script or by the - user, we need to run the following algorithm: - * If the change has happened after the first character with strong - directionality in the text node, do nothing. - * If the text node is a child of a bdi, script or style element, do nothing. - * If the text node belongs to a textarea with NodeHasDirAuto, we need to - update the directionality of the textarea. - * Grab a list of elements affected by this text node from - TextNodeDirectionalityMap and re-resolve the directionality of each one of them - based on the new contents of the text node. - * If the text node does not exist in TextNodeDirectionalityMap, and it has the - NodeAncestorHasDirAuto flag set, this could potentially be a text node - which is going to start affecting the directionality of its parent @dir=auto - elements. In this case, we need to fall back to the (potentially expensive) - "upward propagation algorithm". The TextNodeDirectionalityMap data structure - needs to be update during this algorithm. - * If the new contents of the text node do not have any strong characters, and - the old contents used to, and the text node used to exist in - TextNodeDirectionalityMap and it has the NodeAncestorHasDirAuto flag set, - the elements associated with this text node inside TextNodeDirectionalityMap - will now get their directionality from another text node. In this case, for - each element in the list retrieved from TextNodeDirectionalityMap, run the - downward propagation algorithm (section 3), and remove the text node from - TextNodeDirectionalityMap. - - 9. When a new text node is injected into a document, we need to run the - following algorithm: - * If the contents of the text node do not have any characters with strong - direction, do nothing. - * If the text node is a child of a bdi, script or style element, do nothing. - * If the text node is appended to a textarea element with NodeHasDirAuto, we - need to update the directionality of the textarea. - * If the text node has NodeAncestorHasDirAuto, we need to run the "upward - propagation algorithm". The TextNodeDirectionalityMap data structure needs to - be update during this algorithm. - - 10. When a text node is removed from a document, we need to run the following - algorithm: - * If the contents of the text node do not have any characters with strong - direction, do nothing. - * If the text node is a child of a bdi, script or style element, do nothing. - * If the text node is removed from a textarea element with NodeHasDirAuto, - set the directionality to "ltr". (This is what the spec currently says, but I'm - filing a spec bug to get it fixed -- the directionality should depend on the - parent element here.) - * If the text node has NodeAncestorHasDirAuto, we need to look at the list - of elements being affected by this text node from TextNodeDirectionalityMap, - run the "downward propagation algorithm" (section 3) for each one of them, - while updating TextNodeDirectionalityMap along the way. - - 11. If the value of the @dir attribute on a bdi element is changed to an - invalid value (or if it's removed), determine the new directionality similar - to the case 3 above. - - == Implemention Notes == - When a new node gets bound to the tree, the BindToTree function gets called. - The reverse case is UnbindFromTree. - When the contents of a text node change, nsGenericDOMDataNode::SetTextInternal - gets called. - */ - #include "mozilla/dom/DirectionalityUtils.h" #include "nsINode.h" #include "nsIContent.h" #include "nsIDocument.h" #include "mozilla/dom/Element.h" +#include "nsIDOMNodeFilter.h" +#include "nsTreeWalker.h" #include "nsIDOMHTMLDocument.h" -#include "nsUnicodeProperties.h" -#include "nsTextFragment.h" -#include "nsAttrValue.h" -#include "nsContentUtils.h" -#include "nsTextNode.h" -#include "nsCheapSets.h" + namespace mozilla { +namespace directionality { + typedef mozilla::dom::Element Element; -/** - * Returns true if aNode is one of the elements whose text content should not - * affect its own direction, nor the direction of ancestors with dir=auto. - * - * Note that this does not include , whose content does affect its own - * direction when it has dir=auto (which it has by default), so one needs to - * test for it separately. - * It *does* include textarea, because even if a textarea has dir=auto, it has - * unicode-bidi: plaintext and is handled automatically in bidi resolution. - */ -static bool -DoesNotParticipateInAutoDirection(const Element* aElement) -{ - nsINodeInfo* nodeInfo = aElement->NodeInfo(); - return (aElement->IsHTML() && - (nodeInfo->Equals(nsGkAtoms::script) || - nodeInfo->Equals(nsGkAtoms::style) || - nodeInfo->Equals(nsGkAtoms::textarea))); -} - -/** - * Returns the directionality of a Unicode character - */ -static Directionality -GetDirectionFromChar(uint32_t ch) -{ - switch(mozilla::unicode::GetBidiCat(ch)) { - case eCharType_RightToLeft: - case eCharType_RightToLeftArabic: - return eDir_RTL; - - case eCharType_LeftToRight: - return eDir_LTR; - - default: - return eDir_NotSet; - } -} - -inline static bool NodeAffectsDirAutoAncestor(nsINode* aTextNode) -{ - Element* parent = aTextNode->GetElementParent(); - return (parent && - !DoesNotParticipateInAutoDirection(parent) && - parent->NodeOrAncestorHasDirAuto()); -} - -/** - * Various methods for returning the directionality of a string using the - * first-strong algorithm defined in http://unicode.org/reports/tr9/#P2 - * - * @param[out] aFirstStrong the offset to the first character in the string with - * strong directionality, or PR_UINT32_MAX if there is none (return - value is eDir_NotSet). - * @return the directionality of the string - */ -static Directionality -GetDirectionFromText(const PRUnichar* aText, const uint32_t aLength, - uint32_t* aFirstStrong = nullptr) -{ - const PRUnichar* start = aText; - const PRUnichar* end = aText + aLength; - - while (start < end) { - uint32_t current = start - aText; - uint32_t ch = *start++; - - if (NS_IS_HIGH_SURROGATE(ch) && - start < end && - NS_IS_LOW_SURROGATE(*start)) { - ch = SURROGATE_TO_UCS4(ch, *start++); - } - - Directionality dir = GetDirectionFromChar(ch); - if (dir != eDir_NotSet) { - if (aFirstStrong) { - *aFirstStrong = current; - } - return dir; - } - } - - if (aFirstStrong) { - *aFirstStrong = PR_UINT32_MAX; - } - return eDir_NotSet; -} - -static Directionality -GetDirectionFromText(const char* aText, const uint32_t aLength, - uint32_t* aFirstStrong = nullptr) -{ - const char* start = aText; - const char* end = aText + aLength; - - while (start < end) { - uint32_t current = start - aText; - unsigned char ch = (unsigned char)*start++; - - Directionality dir = GetDirectionFromChar(ch); - if (dir != eDir_NotSet) { - if (aFirstStrong) { - *aFirstStrong = current; - } - return dir; - } - } - - if (aFirstStrong) { - *aFirstStrong = PR_UINT32_MAX; - } - return eDir_NotSet; -} - -static Directionality -GetDirectionFromText(const nsTextFragment* aFrag, - uint32_t* aFirstStrong = nullptr) -{ - if (aFrag->Is2b()) { - return GetDirectionFromText(aFrag->Get2b(), aFrag->GetLength(), - aFirstStrong); - } - - return GetDirectionFromText(aFrag->Get1b(), aFrag->GetLength(), - aFirstStrong); -} - -/** - * Set the directionality of a node with dir=auto as defined in - * http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-directionality - * - * @param[in] aStartAfterNode as an optimization, a caller may pass in a node - * from which to begin walking the descendants of aElement, if it is - * known that all text nodes before this node do not contain any - * strong directional characters - * @return the text node containing the character that determined the direction - */ -static nsINode* -WalkDescendantsSetDirectionFromText(Element* aElement, bool aNotify = true, - nsINode* aStartAfterNode = nullptr) -{ - MOZ_ASSERT(aElement, "aElement is null"); - - nsIContent* child; - if (aStartAfterNode && - nsContentUtils::ContentIsDescendantOf(aStartAfterNode, aElement)) { -#ifdef DEBUG - child = aElement->GetFirstChild(); - while (child && child != aStartAfterNode) { - if (child->NodeType() == nsIDOMNode::TEXT_NODE) { - MOZ_ASSERT(GetDirectionFromText(child->GetText()) == eDir_NotSet, - "Strong directional characters before aStartAfterNode"); - } - child = child->GetNextNode(aElement); - } -#endif - child = aStartAfterNode->GetNextNode(aElement); - } else { - child = aElement->GetFirstChild(); - } - - while (child) { - if (child->IsElement() && - (DoesNotParticipateInAutoDirection(child->AsElement()) || - child->NodeInfo()->Equals(nsGkAtoms::bdi) || - child->HasFixedDir())) { - child = child->GetNextNonChildNode(aElement); - continue; - } - - if (child->NodeType() == nsIDOMNode::TEXT_NODE) { - Directionality textNodeDir = GetDirectionFromText(child->GetText()); - if (textNodeDir != eDir_NotSet) { - // We found a descendant text node with strong directional characters. - // Set the directionality of aElement to the corresponding value. - aElement->SetDirectionality(textNodeDir, aNotify); - return child; - } - } - child = child->GetNextNode(aElement); - } - - // We walked all the descendants without finding a text node with strong - // directional characters. Set the directionality to LTR - aElement->SetDirectionality(eDir_LTR, aNotify); - return nullptr; -} - -class nsTextNodeDirectionalityMap -{ - static void - nsTextNodeDirectionalityMapDtor(void *aObject, nsIAtom* aPropertyName, - void *aPropertyValue, void* aData) - { - nsTextNodeDirectionalityMap* map = - reinterpret_cast(aPropertyValue); - delete map; - } - -public: - nsTextNodeDirectionalityMap(nsINode* aTextNode) - { - MOZ_ASSERT(aTextNode, "Null text node"); - MOZ_COUNT_CTOR(nsTextNodeDirectionalityMap); - aTextNode->SetProperty(nsGkAtoms::textNodeDirectionalityMap, this, - nsTextNodeDirectionalityMapDtor); - aTextNode->SetHasTextNodeDirectionalityMap(); - } - - ~nsTextNodeDirectionalityMap() - { - MOZ_COUNT_DTOR(nsTextNodeDirectionalityMap); - } - - void AddEntry(nsINode* aTextNode, Element* aElement) - { - if (!mElements.Contains(aElement)) { - mElements.Put(aElement); - aElement->SetProperty(nsGkAtoms::dirAutoSetBy, aTextNode); - aElement->SetHasDirAutoSet(); - } - } - - void RemoveEntry(nsINode* aTextNode, Element* aElement) - { - if (mElements.Contains(aElement)) { - mElements.Remove(aElement); - - aElement->ClearHasDirAutoSet(); - aElement->UnsetProperty(nsGkAtoms::dirAutoSetBy); - } - } - -private: - nsCheapSet > mElements; - - static nsTextNodeDirectionalityMap* GetDirectionalityMap(nsINode* aTextNode) - { - MOZ_ASSERT(aTextNode->NodeType() == nsIDOMNode::TEXT_NODE, - "Must be a text node"); - nsTextNodeDirectionalityMap* map = nullptr; - - if (aTextNode->HasTextNodeDirectionalityMap()) { - map = static_cast - (aTextNode->GetProperty(nsGkAtoms::textNodeDirectionalityMap)); - } - - return map; - } - - static PLDHashOperator SetNodeDirection(nsPtrHashKey* aEntry, void* aDir) - { - MOZ_ASSERT(aEntry->GetKey()->IsElement(), "Must be an Element"); - aEntry->GetKey()->SetDirectionality(*reinterpret_cast(aDir), - true); - return PL_DHASH_NEXT; - } - - static PLDHashOperator ResetNodeDirection(nsPtrHashKey* aEntry, void* aData) - { - MOZ_ASSERT(aEntry->GetKey()->IsElement(), "Must be an Element"); - // run the downward propagation algorithm - // and remove the text node from the map - nsINode* startAfterNode = static_cast(aData); - Element* rootNode = aEntry->GetKey(); - nsINode* textNode = WalkDescendantsSetDirectionFromText(rootNode, true, - startAfterNode); - if (textNode) { - nsTextNodeDirectionalityMap::AddEntryToMap(textNode, rootNode); - } - return PL_DHASH_REMOVE; - } - -public: - void UpdateAutoDirection(Directionality aDir) - { - mElements.EnumerateEntries(SetNodeDirection, &aDir); - } - - void ResetAutoDirection(nsINode* aTextNode, nsINode* aStartAfterNode) - { - mElements.EnumerateEntries(ResetNodeDirection, aStartAfterNode); - } - - static void RemoveElementFromMap(nsINode* aTextNode, Element* aElement) - { - if (aTextNode->HasTextNodeDirectionalityMap()) { - GetDirectionalityMap(aTextNode)->RemoveEntry(aTextNode, aElement); - } - } - - static void AddEntryToMap(nsINode* aTextNode, Element* aElement) - { - nsTextNodeDirectionalityMap* map = GetDirectionalityMap(aTextNode); - if (!map) { - map = new nsTextNodeDirectionalityMap(aTextNode); - } - - map->AddEntry(aTextNode, aElement); - } - - static void UpdateTextNodeDirection(nsINode* aTextNode, Directionality aDir) - { - MOZ_ASSERT(aTextNode->HasTextNodeDirectionalityMap(), - "Map missing in UpdateTextNodeDirection"); - GetDirectionalityMap(aTextNode)->UpdateAutoDirection(aDir); - } - - static void ResetTextNodeDirection(nsINode* aTextNode, - nsINode* aStartAfterNode = nullptr) - { - MOZ_ASSERT(aTextNode->HasTextNodeDirectionalityMap(), - "Map missing in ResetTextNodeDirection"); - GetDirectionalityMap(aTextNode)->ResetAutoDirection(aTextNode, - aStartAfterNode); - } -}; - Directionality RecomputeDirectionality(Element* aElement, bool aNotify) { - MOZ_ASSERT(!aElement->HasDirAuto(), - "RecomputeDirectionality called with dir=auto"); - if (aElement->HasDirAutoSet()) { - nsINode* setByNode = - static_cast(aElement->GetProperty(nsGkAtoms::dirAutoSetBy)); - if (setByNode) { - nsTextNodeDirectionalityMap::RemoveElementFromMap(setByNode, aElement); - } - } - Directionality dir = eDir_LTR; if (aElement->HasValidDir()) { @@ -575,7 +46,7 @@ RecomputeDirectionality(Element* aElement, bool aNotify) dir = documentDir; } } - + aElement->SetDirectionality(dir, aNotify); } return dir; @@ -592,7 +63,7 @@ SetDirectionalityOnDescendants(Element* aElement, Directionality aDir, } Element* element = child->AsElement(); - if (element->HasValidDir() || element->HasDirAuto()) { + if (element->HasValidDir()) { child = child->GetNextNonChildNode(aElement); continue; } @@ -601,272 +72,7 @@ SetDirectionalityOnDescendants(Element* aElement, Directionality aDir, } } -void -WalkAncestorsResetAutoDirection(Element* aElement, bool aNotify) -{ - nsINode* setByNode; - Element* parent = aElement->GetElementParent(); - - while (parent && parent->NodeOrAncestorHasDirAuto()) { - if (parent->HasDirAutoSet()) { - // If the parent has the DirAutoSet flag, its direction is determined by - // some text node descendant. - // Remove it from the map and reset its direction by the downward - // propagation algorithm - setByNode = - static_cast(parent->GetProperty(nsGkAtoms::dirAutoSetBy)); - if (setByNode) { - nsTextNodeDirectionalityMap::RemoveElementFromMap(setByNode, parent); - } - } - if (parent->HasDirAuto()) { - setByNode = WalkDescendantsSetDirectionFromText(parent, aNotify); - if (setByNode) { - nsTextNodeDirectionalityMap::AddEntryToMap(setByNode, parent); - } - break; - } - parent = parent->GetElementParent(); - } -} - -void -WalkDescendantsResetAutoDirection(Element* aElement) -{ - nsIContent* child = aElement->GetFirstChild(); - while (child) { - if (child->HasDirAuto()) { - child = child->GetNextNonChildNode(aElement); - continue; - } - - if (child->HasTextNodeDirectionalityMap()) { - nsTextNodeDirectionalityMap::ResetTextNodeDirection(child, child); - } - child = child->GetNextNode(aElement); - } -} - -void -WalkDescendantsSetDirAuto(Element* aElement, bool aNotify) -{ - bool setAncestorDirAutoFlag = -#ifdef DEBUG - true; -#else - !aElement->AncestorHasDirAuto(); -#endif - - if (setAncestorDirAutoFlag) { - nsIContent* child = aElement->GetFirstChild(); - while (child) { - MOZ_ASSERT(!aElement->AncestorHasDirAuto() || - child->AncestorHasDirAuto(), - "AncestorHasDirAuto set on node but not its children"); - child->SetHasDirAuto(); - child = child->GetNextNode(aElement); - } - } - - nsINode* textNode = WalkDescendantsSetDirectionFromText(aElement, aNotify); - if (textNode) { - nsTextNodeDirectionalityMap::AddEntryToMap(textNode, aElement); - } -} - -void -WalkDescendantsClearAncestorDirAuto(Element* aElement) -{ - nsIContent* child = aElement->GetFirstChild(); - while (child) { - if (child->HasDirAuto()) { - child = child->GetNextNonChildNode(aElement); - continue; - } - - child->ClearAncestorHasDirAuto(); - child = child->GetNextNode(aElement); - } -} - -void SetAncestorDirectionIfAuto(nsINode* aTextNode, Directionality aDir, - bool aNotify = true) -{ - MOZ_ASSERT(aTextNode->NodeType() == nsIDOMNode::TEXT_NODE, - "Must be a text node"); - - Element* parent = aTextNode->GetElementParent(); - while (parent && parent->NodeOrAncestorHasDirAuto()) { - if (DoesNotParticipateInAutoDirection(parent) || parent->HasFixedDir()) { - break; - } - - if (parent->HasDirAuto()) { - bool resetDirection = false; - - if (!parent->HasDirAutoSet()) { - // Fast path if parent's direction is not yet set by any descendant - resetDirection = true; - } else { - // If parent's direction is already set, we need to know if - // aTextNode is before or after the text node that had set it. - // We will walk parent's descendants in tree order starting from - // aTextNode to optimize for the most common case where text nodes are - // being appended to tree. - nsINode* directionWasSetByTextNode = - static_cast(parent->GetProperty(nsGkAtoms::dirAutoSetBy)); - if (!directionWasSetByTextNode) { - resetDirection = true; - } else if (directionWasSetByTextNode != aTextNode) { - nsIContent* child = aTextNode->GetNextNode(parent); - while (child) { - if (child->IsElement() && - (DoesNotParticipateInAutoDirection(child->AsElement()) || - child->NodeInfo()->Equals(nsGkAtoms::bdi) || - child->HasFixedDir())) { - child = child->GetNextNonChildNode(parent); - continue; - } - - if (child == directionWasSetByTextNode) { - // we found the node that set the element's direction after our - // text node, so we need to reset the direction - resetDirection = true; - break; - } - - child = child->GetNextNode(parent); - } - } - } - - if (resetDirection) { - parent->SetDirectionality(aDir, aNotify); - nsTextNodeDirectionalityMap::AddEntryToMap(aTextNode, parent); - SetDirectionalityOnDescendants(parent, aDir, aNotify); - } - - // Since we found an element with dir=auto, we can stop walking the - // parent chain: none of its ancestors will have their direction set by - // any of its descendants. - return; - } - parent = parent->GetElementParent(); - } -} - -void -SetDirectionFromChangedTextNode(nsIContent* aTextNode, uint32_t aOffset, - const PRUnichar* aBuffer, uint32_t aLength, - bool aNotify) -{ - if (!NodeAffectsDirAutoAncestor(aTextNode)) { - return; - } - - uint32_t firstStrong; - Directionality oldDir = GetDirectionFromText(aTextNode->GetText(), - &firstStrong); - if (aOffset > firstStrong) { - return; - } - - Directionality newDir = GetDirectionFromText(aBuffer, aLength); - if (newDir == eDir_NotSet) { - if (oldDir != eDir_NotSet && aTextNode->HasTextNodeDirectionalityMap()) { - // This node used to have a strong directional character but no - // longer does. ResetTextNodeDirection() will re-resolve the - // directionality of any elements whose directionality was - // determined by this node. - nsTextNodeDirectionalityMap::ResetTextNodeDirection(aTextNode); - } - } else { - // This node has a strong directional character. If it has a - // TextNodeDirectionalityMap property, it already determines the - // directionality of some element(s), so call UpdateTextNodeDirection to - // reresolve their directionality. Otherwise call - // SetAncestorDirectionIfAuto to find ancestor elements which should - // have their directionality determined by this node. - if (aTextNode->HasTextNodeDirectionalityMap()) { - nsTextNodeDirectionalityMap::UpdateTextNodeDirection(aTextNode, newDir); - } else { - SetAncestorDirectionIfAuto(aTextNode, newDir, aNotify); - } - } -} - -void -SetDirectionFromNewTextNode(nsTextNode* aTextNode) -{ - if (!NodeAffectsDirAutoAncestor(aTextNode)) { - return; - } - - Directionality dir = GetDirectionFromText(aTextNode->GetText()); - if (dir != eDir_NotSet) { - SetAncestorDirectionIfAuto(aTextNode, dir); - } -} - -void -ResetDirectionSetByTextNode(nsTextNode* aTextNode) -{ - if (!NodeAffectsDirAutoAncestor(aTextNode)) { - return; - } - - Directionality dir = GetDirectionFromText(aTextNode->GetText()); - if (dir != eDir_NotSet && aTextNode->HasTextNodeDirectionalityMap()) { - nsTextNodeDirectionalityMap::ResetTextNodeDirection(aTextNode); - } -} - -void -SetDirectionalityFromValue(Element* aElement, const nsAString& value, - bool aNotify) -{ - Directionality dir = GetDirectionFromText(PromiseFlatString(value).get(), - value.Length()); - if (dir == eDir_NotSet) { - dir = eDir_LTR; - } - - aElement->SetDirectionality(dir, aNotify); -} - -void -OnSetDirAttr(Element* aElement, const nsAttrValue* aNewValue, - bool hadValidDir, bool aNotify) -{ - if (aElement->IsHTML() && aElement->NodeInfo()->Equals(nsGkAtoms::input)) { - return; - } - - if (aElement->AncestorHasDirAuto()) { - if (!hadValidDir) { - // The element is a descendant of an element with dir = auto, is - // having its dir attribute set, and previously didn't have a valid dir - // attribute. - // Check whether any of its text node descendants determine the - // direction of any of its ancestors, and redetermine their direction - WalkDescendantsResetAutoDirection(aElement); - } else if (!aElement->HasValidDir()) { - // The element is a descendant of an element with dir = auto and is - // having its dir attribute removed or set to an invalid value. - // Reset the direction of any of its ancestors whose direction is - // determined by a text node descendant - WalkAncestorsResetAutoDirection(aElement, aNotify); - } - } - - if (aElement->HasDirAuto()) { - WalkDescendantsSetDirAuto(aElement, aNotify); - } else { - SetDirectionalityOnDescendants(aElement, - RecomputeDirectionality(aElement, aNotify), - aNotify); - } -} +} // end namespace directionality } // end namespace mozilla diff --git a/content/base/src/Element.cpp b/content/base/src/Element.cpp index 06f5f912a00d..b77f7c957b85 100644 --- a/content/base/src/Element.cpp +++ b/content/base/src/Element.cpp @@ -130,6 +130,7 @@ using namespace mozilla; using namespace mozilla::dom; +using namespace mozilla::directionality; nsEventStates Element::IntrinsicState() const @@ -1162,21 +1163,7 @@ Element::BindToTree(nsIDocument* aDocument, nsIContent* aParent, // because it has to happen after updating the parent pointer, but before // recursively binding the kids. if (IsHTML()) { - if (aParent && aParent->NodeOrAncestorHasDirAuto()) { - SetAncestorHasDirAuto(); - // if we are binding an element to the tree that already has descendants, - // and the parent has NodeHasDirAuto or NodeAncestorHasDirAuto, we may - // need to reset the direction of an ancestor with dir=auto - if (GetFirstChild()) { - WalkAncestorsResetAutoDirection(this); - } - } - - if (!HasDirAuto()) { - // if the element doesn't have dir=auto, set its directionality from - // the dir attribute or by inheriting from its ancestors. - RecomputeDirectionality(this, false); - } + RecomputeDirectionality(this, false); } // If NODE_FORCE_XBL_BINDINGS was set we might have anonymous children @@ -1367,7 +1354,7 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent) // This has to be here, rather than in nsGenericHTMLElement::UnbindFromTree, // because it has to happen after unsetting the parent pointer, but before // recursively unbinding the kids. - if (IsHTML() && !HasDirAuto()) { + if (IsHTML()) { RecomputeDirectionality(this, false); } @@ -1840,13 +1827,7 @@ Element::SetAttrAndNotify(int32_t aNamespaceID, aValueForAfterSetAttr.SetTo(aParsedValue); } - bool hadValidDir = false; - if (aNamespaceID == kNameSpaceID_None) { - if (aName == nsGkAtoms::dir) { - hadValidDir = HasValidDir() || NodeInfo()->Equals(nsGkAtoms::bdi); - } - // XXXbz Perhaps we should push up the attribute mapping function // stuff to Element? if (!IsAttributeMapped(aName) || @@ -1882,10 +1863,6 @@ Element::SetAttrAndNotify(int32_t aNamespaceID, if (aCallAfterSetAttr) { rv = AfterSetAttr(aNamespaceID, aName, &aValueForAfterSetAttr, aNotify); NS_ENSURE_SUCCESS(rv, rv); - - if (aNamespaceID == kNameSpaceID_None && aName == nsGkAtoms::dir) { - OnSetDirAttr(this, &aValueForAfterSetAttr, hadValidDir, aNotify); - } } if (aFireMutation) { @@ -2088,12 +2065,6 @@ Element::UnsetAttr(int32_t aNameSpaceID, nsIAtom* aName, // react to unexpected attribute changes. nsMutationGuard::DidMutate(); - bool hadValidDir = false; - - if (aNameSpaceID == kNameSpaceID_None && aName == nsGkAtoms::dir) { - hadValidDir = HasValidDir() || NodeInfo()->Equals(nsGkAtoms::bdi); - } - nsAttrValue oldValue; rv = mAttrsAndChildren.RemoveAttrAt(index, oldValue); NS_ENSURE_SUCCESS(rv, rv); @@ -2116,10 +2087,6 @@ Element::UnsetAttr(int32_t aNameSpaceID, nsIAtom* aName, rv = AfterSetAttr(aNameSpaceID, aName, nullptr, aNotify); NS_ENSURE_SUCCESS(rv, rv); - if (aNameSpaceID == kNameSpaceID_None && aName == nsGkAtoms::dir) { - OnSetDirAttr(this, nullptr, hadValidDir, aNotify); - } - if (hasMutationListeners) { nsCOMPtr node = do_QueryObject(this); nsMutationEvent mutation(true, NS_MUTATION_ATTRMODIFIED); diff --git a/content/base/src/nsDocument.cpp b/content/base/src/nsDocument.cpp index bd11aed738e4..e2bc9b7e32c0 100644 --- a/content/base/src/nsDocument.cpp +++ b/content/base/src/nsDocument.cpp @@ -177,6 +177,7 @@ using namespace mozilla; using namespace mozilla::dom; +using namespace mozilla::directionality; typedef nsTArray LinkArray; diff --git a/content/base/src/nsDocument.h b/content/base/src/nsDocument.h index 297a95029b53..0235edad50dc 100644 --- a/content/base/src/nsDocument.h +++ b/content/base/src/nsDocument.h @@ -1053,7 +1053,7 @@ protected: nsresult SetFirstBaseNodeWithHref(nsIContent *node); inline void - SetDocumentDirectionality(mozilla::Directionality aDir) + SetDocumentDirectionality(mozilla::directionality::Directionality aDir) { mDirectionality = aDir; } diff --git a/content/base/src/nsGenericDOMDataNode.cpp b/content/base/src/nsGenericDOMDataNode.cpp index 34e5b285201a..3889998b8814 100644 --- a/content/base/src/nsGenericDOMDataNode.cpp +++ b/content/base/src/nsGenericDOMDataNode.cpp @@ -26,7 +26,6 @@ #include "nsEventDispatcher.h" #include "nsCOMArray.h" #include "nsNodeUtils.h" -#include "mozilla/dom/DirectionalityUtils.h" #include "nsBindingManager.h" #include "nsCCUncollectableMarker.h" #include "mozAutoDocUpdate.h" @@ -280,10 +279,6 @@ nsGenericDOMDataNode::SetTextInternal(uint32_t aOffset, uint32_t aCount, nsNodeUtils::CharacterDataWillChange(this, &info); } - if (NodeType() == nsIDOMNode::TEXT_NODE) { - SetDirectionFromChangedTextNode(this, aOffset, aBuffer, aLength, aNotify); - } - if (aOffset == 0 && endOffset == textLength) { // Replacing whole text or old text was empty. Don't bother to check for // bidi in this string if the document already has bidi enabled. diff --git a/content/base/src/nsGkAtomList.h b/content/base/src/nsGkAtomList.h index 9a4301fbe839..98ebc34b8e50 100644 --- a/content/base/src/nsGkAtomList.h +++ b/content/base/src/nsGkAtomList.h @@ -276,7 +276,6 @@ GK_ATOM(dialog, "dialog") GK_ATOM(difference, "difference") GK_ATOM(digit, "digit") GK_ATOM(dir, "dir") -GK_ATOM(dirAutoSetBy, "dirAutoSetBy") GK_ATOM(directionality, "directionality") GK_ATOM(disableOutputEscaping, "disable-output-escaping") GK_ATOM(disabled, "disabled") @@ -1034,7 +1033,6 @@ GK_ATOM(text, "text") GK_ATOM(textarea, "textarea") GK_ATOM(textbox, "textbox") GK_ATOM(textnode, "textnode") -GK_ATOM(textNodeDirectionalityMap, "textNodeDirectionalityMap") GK_ATOM(tfoot, "tfoot") GK_ATOM(th, "th") GK_ATOM(thead, "thead") diff --git a/content/base/src/nsTextNode.cpp b/content/base/src/nsTextNode.cpp index 09fd9df926b4..db2ffb24e683 100644 --- a/content/base/src/nsTextNode.cpp +++ b/content/base/src/nsTextNode.cpp @@ -9,7 +9,6 @@ #include "nsTextNode.h" #include "nsContentUtils.h" -#include "mozilla/dom/DirectionalityUtils.h" #include "nsIDOMEventListener.h" #include "nsIDOMMutationEvent.h" #include "nsIDocument.h" @@ -19,7 +18,6 @@ #include "nsRange.h" #endif -using namespace mozilla; using namespace mozilla::dom; /** @@ -164,27 +162,6 @@ nsTextNode::AppendTextForNormalize(const PRUnichar* aBuffer, uint32_t aLength, return SetTextInternal(mText.GetLength(), 0, aBuffer, aLength, aNotify, &details); } -nsresult -nsTextNode::BindToTree(nsIDocument* aDocument, nsIContent* aParent, - nsIContent* aBindingParent, bool aCompileEventHandlers) -{ - nsresult rv = nsGenericDOMDataNode::BindToTree(aDocument, aParent, - aBindingParent, - aCompileEventHandlers); - NS_ENSURE_SUCCESS(rv, rv); - - SetDirectionFromNewTextNode(this); - - return NS_OK; -} - -void nsTextNode::UnbindFromTree(bool aDeep, bool aNullParent) -{ - ResetDirectionSetByTextNode(this); - - nsGenericDOMDataNode::UnbindFromTree(aDeep, aNullParent); -} - #ifdef DEBUG void nsTextNode::List(FILE* out, int32_t aIndent) const diff --git a/content/base/src/nsTextNode.h b/content/base/src/nsTextNode.h index 506d7106ca5b..b10a27c6d30d 100644 --- a/content/base/src/nsTextNode.h +++ b/content/base/src/nsTextNode.h @@ -40,12 +40,6 @@ public: virtual nsXPCClassInfo* GetClassInfo(); - virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent, - nsIContent* aBindingParent, - bool aCompileEventHandlers); - virtual void UnbindFromTree(bool aDeep = true, - bool aNullParent = true); - nsresult AppendTextForNormalize(const PRUnichar* aBuffer, uint32_t aLength, bool aNotify, nsIContent* aNextSibling); diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index cc4e95614850..682a78c73b64 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -68,7 +68,6 @@ #include "nsIDOMHTMLFormElement.h" #include "nsHTMLFormElement.h" #include "nsFocusManager.h" -#include "nsAttrValueOrString.h" #include "nsMutationEvent.h" @@ -103,6 +102,7 @@ using namespace mozilla; using namespace mozilla::dom; +using namespace mozilla::directionality; class nsINodeInfo; class nsIDOMNodeList; @@ -347,9 +347,8 @@ nsGenericHTMLElement::ClearDataset() } static const nsAttrValue::EnumTable kDirTable[] = { - { "ltr", eDir_LTR }, - { "rtl", eDir_RTL }, - { "auto", eDir_Auto }, + { "ltr", NS_STYLE_DIRECTION_LTR }, + { "rtl", NS_STYLE_DIRECTION_RTL }, { 0 } }; @@ -1699,23 +1698,6 @@ nsGenericHTMLElement::GetHrefURIForAnchors() const return uri.forget(); } -nsresult -nsGenericHTMLElement::BeforeSetAttr(int32_t aNamespaceID, nsIAtom* aName, - const nsAttrValueOrString* aValue, - bool aNotify) -{ - if (aNamespaceID == kNameSpaceID_None && - aName == nsGkAtoms::dir && - HasDirAuto()) { - // setting dir on an element that currently has dir=auto - WalkDescendantsClearAncestorDirAuto(this); - SetHasDirAuto(); - } - - return nsGenericHTMLElementBase::BeforeSetAttr(aNamespaceID, aName, - aValue, aNotify); -} - nsresult nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, const nsAttrValue* aValue, bool aNotify) @@ -1737,28 +1719,16 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, SyncEditorsOnSubtree(this); } else if (aName == nsGkAtoms::dir) { - Directionality dir = eDir_LTR; - if (aValue && aValue->Type() == nsAttrValue::eEnum) { + Directionality dir; + if (aValue && + (aValue->Equals(nsGkAtoms::ltr, eIgnoreCase) || + aValue->Equals(nsGkAtoms::rtl, eIgnoreCase))) { SetHasValidDir(); - Directionality dirValue = (Directionality)aValue->GetEnumValue(); - if (dirValue == eDir_Auto) { - SetHasDirAuto(); - ClearHasFixedDir(); - } else { - dir = dirValue; - SetDirectionality(dir, aNotify); - ClearHasDirAuto(); - ClearHasDirAutoSet(); - SetHasFixedDir(); - } + dir = aValue->Equals(nsGkAtoms::rtl, eIgnoreCase) ? eDir_RTL : eDir_LTR; + SetDirectionality(dir, aNotify); } else { ClearHasValidDir(); - ClearHasFixedDir(); - if (NodeInfo()->Equals(nsGkAtoms::bdi)) { - SetHasDirAuto(); - } else { - dir = RecomputeDirectionality(this, aNotify); - } + dir = RecomputeDirectionality(this, aNotify); } SetDirectionalityOnDescendants(this, dir, aNotify); } diff --git a/content/html/content/src/nsGenericHTMLElement.h b/content/html/content/src/nsGenericHTMLElement.h index b701145cb32e..a1a92c33e834 100644 --- a/content/html/content/src/nsGenericHTMLElement.h +++ b/content/html/content/src/nsGenericHTMLElement.h @@ -777,10 +777,6 @@ protected: */ bool IsEventName(nsIAtom* aName); - virtual nsresult BeforeSetAttr(int32_t aNamespaceID, nsIAtom* aName, - const nsAttrValueOrString* aValue, - bool aNotify); - virtual nsresult AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, const nsAttrValue* aValue, bool aNotify); diff --git a/content/html/content/src/nsHTMLInputElement.cpp b/content/html/content/src/nsHTMLInputElement.cpp index 5fa870ffd92a..6b49672e5521 100644 --- a/content/html/content/src/nsHTMLInputElement.cpp +++ b/content/html/content/src/nsHTMLInputElement.cpp @@ -81,7 +81,6 @@ #include "mozAutoDocUpdate.h" #include "nsContentCreatorFunctions.h" #include "nsContentUtils.h" -#include "mozilla/dom/DirectionalityUtils.h" #include "nsRadioVisitor.h" #include "mozilla/LookAndFeel.h" @@ -761,10 +760,6 @@ nsHTMLInputElement::BeforeSetAttr(int32_t aNameSpaceID, nsIAtom* aName, } } else if (aNotify && aName == nsGkAtoms::disabled) { mDisabledChanged = true; - } else if (aName == nsGkAtoms::dir && - AttrValueIs(kNameSpaceID_None, nsGkAtoms::dir, - nsGkAtoms::_auto, eIgnoreCase)) { - SetDirectionIfAuto(false, aNotify); } } @@ -871,9 +866,6 @@ nsHTMLInputElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName, UpdateStepMismatchValidityState(); } else if (aName == nsGkAtoms::step) { UpdateStepMismatchValidityState(); - } else if (aName == nsGkAtoms::dir && - aValue && aValue->Equals(nsGkAtoms::_auto, eIgnoreCase)) { - SetDirectionIfAuto(true, aNotify); } UpdateState(aNotify); @@ -2590,9 +2582,6 @@ nsHTMLInputElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, AddedToRadioGroup(); } - // Set direction based on value if dir=auto - SetDirectionIfAuto(HasDirAuto(), false); - // An element can't suffer from value missing if it is not in a document. // We have to check if we suffer from that as we are now in a document. UpdateValueMissingValidityState(); @@ -3208,21 +3197,6 @@ nsHTMLInputElement::SetDefaultValueAsValue() return SetValueInternal(resetVal, false, false); } -void -nsHTMLInputElement::SetDirectionIfAuto(bool aAuto, bool aNotify) -{ - if (aAuto) { - SetHasDirAuto(); - if (IsSingleLineTextControl(true)) { - nsAutoString value; - GetValue(value); - SetDirectionalityFromValue(this, value, aNotify); - } - } else { - ClearHasDirAuto(); - } -} - NS_IMETHODIMP nsHTMLInputElement::Reset() { @@ -4632,10 +4606,6 @@ NS_IMETHODIMP_(void) nsHTMLInputElement::OnValueChanged(bool aNotify) { UpdateAllValidityStates(aNotify); - - if (HasDirAuto()) { - SetDirectionIfAuto(true, aNotify); - } } NS_IMETHODIMP_(bool) diff --git a/content/html/content/src/nsHTMLInputElement.h b/content/html/content/src/nsHTMLInputElement.h index 5dc742c02f0d..35f4c58a390a 100644 --- a/content/html/content/src/nsHTMLInputElement.h +++ b/content/html/content/src/nsHTMLInputElement.h @@ -511,8 +511,6 @@ protected: */ nsresult SetDefaultValueAsValue(); - virtual void SetDirectionIfAuto(bool aAuto, bool aNotify); - /** * Return if an element should have a specific validity UI * (with :-moz-ui-invalid and :-moz-ui-valid pseudo-classes). diff --git a/content/html/content/src/nsHTMLUnknownElement.h b/content/html/content/src/nsHTMLUnknownElement.h index 2b6d70c69123..bf450106d03a 100644 --- a/content/html/content/src/nsHTMLUnknownElement.h +++ b/content/html/content/src/nsHTMLUnknownElement.h @@ -15,9 +15,6 @@ public: nsHTMLUnknownElement(already_AddRefed aNodeInfo) : nsGenericHTMLElement(aNodeInfo) { - if (NodeInfo()->Equals(nsGkAtoms::bdi)) { - SetHasDirAuto(); - } } // nsISupports diff --git a/content/html/content/test/test_bug660663.html b/content/html/content/test/test_bug660663.html index 2ce3f9ac694a..1e79740dfa35 100644 --- a/content/html/content/test/test_bug660663.html +++ b/content/html/content/test/test_bug660663.html @@ -21,8 +21,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=660663 reflectLimitedEnumerated({ element: document.createElement("div"), attribute: "dir", - validValues: ["ltr", "rtl", "auto"], - invalidValues: ["cheesecake", ""] + validValues: ["ltr", "rtl"], + invalidValues: ["cheesecake", ""], + unsupportedValues: ["auto"] }); diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html deleted file mode 100644 index b53ed1fb795f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-EN-L-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

123ABCאבג.

-
-
-

123ABCאבג.

-
-
-
-
-

123ABCאבג.

-
-
-

123ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html deleted file mode 100644 index 57f074a2bc1f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-EN-L.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

123ABCאבג.

-
-
-

123ABCאבג.

-
-
-
-
-

123ABCאבג.

-
-
-

123ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html deleted file mode 100644 index d695e5ab570a..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-EN-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with EN, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

123אבגABC.

-
-
-

123אבגABC.

-
-
-
-
-

123אבגABC.

-
-
-

123אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html deleted file mode 100644 index 1ab3112440f0..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-EN-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with EN, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

123אבגABC.

-
-
-

123אבגABC.

-
-
-
-
-

123אבגABC.

-
-
-

123אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html deleted file mode 100644 index 64b178d7b594..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-L-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

ABCאבג.

-
-
-

ABCאבג.

-
-
-
-
-

ABCאבג.

-
-
-

ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-L.html b/layout/reftests/bidi/dirAuto/dir_auto-L.html deleted file mode 100644 index 1da642cc19b7..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-L.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

ABCאבג.

-
-
-

ABCאבג.

-
-
-
-
-

ABCאבג.

-
-
-

ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html deleted file mode 100644 index 71da52633ea6..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=123ABCאבג.

-
-
-

.-=123ABCאבג.

-
-
-
-
-

.-=123ABCאבג.

-
-
-

.-=123ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html deleted file mode 100644 index 9372a42628da..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-L.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=123ABCאבג.

-
-
-

.-=123ABCאבג.

-
-
-
-
-

.-=123ABCאבג.

-
-
-

.-=123ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html deleted file mode 100644 index 856a6ee3e2ef..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=123אבגABC.

-
-
-

.-=123אבגABC.

-
-
-
-
-

.-=123אבגABC.

-
-
-

.-=123אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html deleted file mode 100644 index 4f0126b1a48b..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=123אבגABC.

-
-
-

.-=123אבגABC.

-
-
-
-
-

.-=123אבגABC.

-
-
-

.-=123אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html deleted file mode 100644 index df0339f1342e..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN-ref.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
-

@123!

-
-
-

@123!

-
-
-
-
-

@123!

-
-
-

@123!

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html deleted file mode 100644 index a7c6db6d6a79..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-EN.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then EN, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
-

@123!

-
-
-

@123!

-
-
-
-
-

@123!

-
-
-

@123!

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html deleted file mode 100644 index 818b9c0e6746..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-L-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=ABCאבג.

-
-
-

.-=ABCאבג.

-
-
-
-
-

.-=ABCאבג.

-
-
-

.-=ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-N-L.html deleted file mode 100644 index eab63560c7be..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-L.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=ABCאבג.

-
-
-

.-=ABCאבג.

-
-
-
-
-

.-=ABCאבג.

-
-
-

.-=ABCאבג.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html deleted file mode 100644 index a2c82541a557..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=אבגABC.

-
-
-

.-=אבגABC.

-
-
-
-
-

.-=אבגABC.

-
-
-

.-=אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-N-R.html deleted file mode 100644 index 352b8f80a7d4..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-N-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with N, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

.-=אבגABC.

-
-
-

.-=אבגABC.

-
-
-
-
-

.-=אבגABC.

-
-
-

.-=אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html deleted file mode 100644 index 61ff12f2f8f8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: dir=auto, start with R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
- -
-
-

אבגABC.

-
-
-

אבגABC.

-
-
-
-
-

אבגABC.

-
-
-

אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-R.html b/layout/reftests/bidi/dirAuto/dir_auto-R.html deleted file mode 100644 index 52677931cabf..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

אבגABC.

-
-
-

אבגABC.

-
-
-
-
-

אבגABC.

-
-
-

אבגABC.

-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html deleted file mode 100644 index 9048362d0a75..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-L-ref.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - HTML Test: dir=auto, start with L within contained element - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). - ז - The Hebrew letter Zayin (strongly RTL). -
-
-
-
ABCאבג.
דה
ו
-
-
-
ABCאבג.
דה
ו
-
-
-
-
-
ABCאבג.
דה
ו
-
-
-
ABCאבג.
דה
ו
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html deleted file mode 100644 index 994bfbe78452..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-L.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - HTML Test: dir=auto, start with L within contained element - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). - ז - The Hebrew letter Zayin (strongly RTL). -
-
-
-
ABCאבג.
דה
ו
-
-
-
ABCאבג.
דה
ו
-
-
-
-
-
ABCאבג.
דה
ו
-
-
-
ABCאבג.
דה
ו
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html deleted file mode 100644 index 0cee718c43de..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with R within contained element - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
XY
Z
-
-
-
אבגABC.
XY
Z
-
-
-
-
-
אבגABC.
XY
Z
-
-
-
אבגABC.
XY
Z
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html deleted file mode 100644 index 113eb073ccaf..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with R within contained element - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
XY
Z
-
-
-
אבגABC.
XY
Z
-
-
-
-
-
אבגABC.
XY
Z
-
-
-
אבגABC.
XY
Z
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html deleted file mode 100644 index 745eea114eb2..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L-ref.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - HTML Test: dir=auto, start with bdi, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-
123דהוABCאבג.
-
-
-
123דהוABCאבג.
-
-
-
-
-
123דהוABCאבג.
-
-
-
123דהוABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html deleted file mode 100644 index cd0292c5cf4f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-L.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - HTML Test: dir=auto, start with bdi, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-
123דהוABCאבג.
-
-
-
123דהוABCאבג.
-
-
-
-
-
123דהוABCאבג.
-
-
-
123דהוABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html deleted file mode 100644 index 43405ea6e799..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with bdi, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
123DEFאבגABC.
-
-
-
123DEFאבגABC.
-
-
-
-
-
123DEFאבגABC.
-
-
-
123DEFאבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html deleted file mode 100644 index cce36bddf2a1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-bdi-R.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with bdi, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
123DEFאבגABC.
-
-
-
123DEFאבגABC.
-
-
-
-
-
123DEFאבגABC.
-
-
-
123DEFאבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html deleted file mode 100644 index d5935d83f612..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html deleted file mode 100644 index 292c753fdd1a..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-L.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html deleted file mode 100644 index 5ae48d897043..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html deleted file mode 100644 index cc625553f828..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html deleted file mode 100644 index ac1f178799ae..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir=auto, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html deleted file mode 100644 index 892894e8e990..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-L.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir=auto, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html deleted file mode 100644 index d7157de5c89b..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir=auto, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

.-=123אבגABC.
-
-
-

DEF

.-=123אבגABC.
-
-
-
-
-

DEF

.-=123אבגABC.
-
-
-

DEF

.-=123אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html deleted file mode 100644 index 328104cb8783..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-dir_auto-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir=auto, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

.-=123אבגABC.
-
-
-

DEF

.-=123אבגABC.
-
-
-
-
-

DEF

.-=123אבגABC.
-
-
-

DEF

.-=123אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html deleted file mode 100644 index ad844fd1da23..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with script, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html deleted file mode 100644 index d5e685ee0eb6..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-L.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with script, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html deleted file mode 100644 index 8225443c86a1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with script, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html deleted file mode 100644 index 4d131a2d480d..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-script-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with script, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html deleted file mode 100644 index 46e713774051..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L-ref.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - HTML Test: dir=auto, start with style, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html deleted file mode 100644 index 5ad03180f2ec..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-L.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - HTML Test: dir=auto, start with style, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html deleted file mode 100644 index 6cf5e1d24b2d..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R-ref.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - HTML Test: dir=auto, start with style, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html deleted file mode 100644 index 133ce1be0510..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-style-R.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - HTML Test: dir=auto, start with style, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html deleted file mode 100644 index d13f702557a1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with textarea, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html deleted file mode 100644 index 51468ce17c82..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-L.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with textarea, then L - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
-
-
-
ABCאבג.
-
-
-
ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html deleted file mode 100644 index ffa5ba5c92c3..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R-ref.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with textarea, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html b/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html deleted file mode 100644 index 83875ef58a41..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-contained-textarea-R.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, start with textarea, then R - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
-
-
-
אבגABC.
-
-
-
אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html deleted file mode 100644 index cedc14acf026..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html deleted file mode 100644 index 9d32b7a59084..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-L.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html deleted file mode 100644 index 91c1bf568692..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html deleted file mode 100644 index 7ac8b11f6c04..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-EN-R.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html deleted file mode 100644 index a16ecdbd12d1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-L.html deleted file mode 100644 index adefc3b80298..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-L.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html deleted file mode 100644 index 1e68258423b8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html deleted file mode 100644 index 5ad1d24a14dc..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-L.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html deleted file mode 100644 index fe2ba0b3f715..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html deleted file mode 100644 index fba3dda45499..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-R.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html deleted file mode 100644 index 6a9db60ab10b..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN-ref.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - HTML Test: input with dir=auto, all N+EN - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html deleted file mode 100644 index 649beca1a6e8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-EN.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - HTML Test: input with dir=auto, all N+EN - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html deleted file mode 100644 index 03b396d4bff8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html deleted file mode 100644 index 14bd05fb270c..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-L.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html deleted file mode 100644 index 474b5c7e7623..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html deleted file mode 100644 index f78f28981800..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-N-R.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with N+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html deleted file mode 100644 index 6942d3ffb8a4..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-R.html deleted file mode 100644 index 70163671dcfe..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-R.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, start with R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html deleted file mode 100644 index a58f6c166696..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html deleted file mode 100644 index 03850c990ded..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-L.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html deleted file mode 100644 index 33061e92917f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html deleted file mode 100644 index 207652d2505c..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-EN-R.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html deleted file mode 100644 index b14ec45e6745..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html deleted file mode 100644 index 6ee4ee471ef1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-L.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html deleted file mode 100644 index eda0b659dea4..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html deleted file mode 100644 index 50222dd07f05..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-L.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+EN+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html deleted file mode 100644 index f78ef0bbc9a0..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html deleted file mode 100644 index e87f8f13bb8c..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-R.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+EN+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html deleted file mode 100644 index b61f677dc71c..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN-ref.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to all N+EN - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html deleted file mode 100644 index 088036a25516..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-EN.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to all N+EN - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html deleted file mode 100644 index 55ff0d53c438..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html deleted file mode 100644 index 1f3486c0ed14..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-L.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html deleted file mode 100644 index f06f47738ed9..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html deleted file mode 100644 index 941b55143543..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-N-R.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with N+R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html deleted file mode 100644 index 2b9ea5d73362..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R-ref.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html b/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html deleted file mode 100644 index 304189e189b0..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-input-script-R.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - HTML Test: input with dir=auto, script assigns to start with R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html deleted file mode 100644 index 4583ac2c7a64..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-isolate-ref.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - HTML Test: dir=auto, isolated in LTR text - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). -
-
-
- ‭1 a! א‬ -
-
- ‭a !א 1‬ -
-
-
-
- ‭1 a! א‬ -
-
- ‭a !א 1‬ -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-isolate.html b/layout/reftests/bidi/dirAuto/dir_auto-isolate.html deleted file mode 100644 index 71f929204ed9..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-isolate.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - HTML Test: dir=auto, isolated in LTR text - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ‭ - The LRO (left-to-right-override) formatting character. - ‬ - The PDF (pop directional formatting) formatting character; closes LRO. -
-
-
- א a! 1 -
-
- a א! 1 -
-
-
-
- ‭1 a! א‬ -
-
- ‭a !א 1‬ -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html deleted file mode 100644 index c951c30b2023..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN-ref.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
-
-@123!
-        
-
-
-
-@123!
-        
-
-
-
-
-
-@123!
-        
-
-
-
-@123!
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html deleted file mode 100644 index ed923a908d99..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-EN.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - HTML Test: pre with dir=auto, all N+EN - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
-
-
-@123!
-        
-
-
-
-@123!
-        
-
-
-
-
-
-@123!
-        
-
-
-
-@123!
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html deleted file mode 100644 index 2d9caf062d24..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). -
-
-
-
-א
-!...
-א
-        
-
-
-
-א
-!...
-א
-        
-
-
-
-
-
-א
-!...
-א
-        
-
-
-
-א
-!...
-א
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html deleted file mode 100644 index 00115a401003..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-N-between-Rs.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - HTML Test: pre with dir=auto, all-N between all-Rs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. - The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...) - despite both the paragraph before it and the paragraph after it being all-RTL, which makes the - element as a whole RTL. -
-
-
-
-א
-...!
-א
-        
-
-
-
-א
-...!
-א
-        
-
-
-
-
-
-א
-!...
-א
-        
-
-
-
-א
-!...
-א
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html deleted file mode 100644 index 10bd02433b45..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html deleted file mode 100644 index 46eac9551d4b..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-pre-mixed.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - HTML Test: pre with dir=auto, mixed L and R paragraphs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
-
-
-@‎123‏!
-!‏123‎@
-@123‎‏!
-!123‏‎@
-        
-
-
-
-@‎123‏!
-!‏123‎@
-@123‎‏!
-!123‏‎@
-        
-
-
-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
-
-@123!
-@123!
-@123!
-@123!
-        
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-L.html b/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-L.html deleted file mode 100644 index 41bf37180e9f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-L.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-R.html b/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-R.html deleted file mode 100644 index 0c74b3f3b4d0..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-dir-R.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-L.html b/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-L.html deleted file mode 100644 index 10a75a4cee85..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-L.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-R.html b/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-R.html deleted file mode 100644 index 0ff92cb55d9c..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-set-contained-invalid-dir-R.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html deleted file mode 100644 index 253b84459eef..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN-ref.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html deleted file mode 100644 index fd05e30dec6b..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-EN.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, all N+EN - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html deleted file mode 100644 index 558e27171bc8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs-ref.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html deleted file mode 100644 index d48a6141d874..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-N-between-Rs.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, all-N between all-Rs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. - The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...) - despite both the paragraph before it and the paragraph after it being all-RTL, which makes the - element as a whole RTL. -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html deleted file mode 100644 index a5a84480f6f4..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed-ref.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html deleted file mode 100644 index db53d8ff43f1..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-mixed.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, mixed L and R paragraphs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html deleted file mode 100644 index 253b84459eef..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN-ref.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html deleted file mode 100644 index a622db584b53..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-EN.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, script assigns to all N+EN - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html deleted file mode 100644 index 558e27171bc8..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs-ref.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). -
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html deleted file mode 100644 index 407e3414fb3f..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-N-between-Rs.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, script assigns to all-N between all-Rs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. - The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...) - despite both the paragraph before it and the paragraph after it being all-RTL, which makes the - element as a whole RTL. -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html deleted file mode 100644 index a5a84480f6f4..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed-ref.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
-
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html b/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html deleted file mode 100644 index f5a5ece56f28..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-textarea-script-mixed.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - HTML Test: textarea with dir=auto, script assigns to mixed L and R paragraphs - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - ‎ - LRM, the invisible left-to-right mark (strongly LTR). - ‏ - RLM, the invisible right-to-left mark (strongly RTL). - We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext - specification states whether text-align:start and text-align:end should obey the paragraph - direction or the direction property in a unicode-bidi:plaintext element. -
-
- -
- -
-
- -
-
-
-
- -
-
- -
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L-ref.html deleted file mode 100644 index a786430499bd..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L-ref.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L.html b/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L.html deleted file mode 100644 index c2cbdc2415ed..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-L.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then R - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). -
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
-
-
-

DEF

אבגABC.
-
-
-

DEF

אבגABC.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html b/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html deleted file mode 100644 index f383652215c9..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R-ref.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R.html b/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R.html deleted file mode 100644 index a63f718ce1a0..000000000000 --- a/layout/reftests/bidi/dirAuto/dir_auto-unset-contained-dir-R.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - HTML Test: dir=auto, start with dir, then L - - - - - - - - - - - -

Test passes if the two boxes below look exactly the same.

-
- Key to entities used below: - א - The Hebrew letter Alef (strongly RTL). - ב - The Hebrew letter Bet (strongly RTL). - ג - The Hebrew letter Gimel (strongly RTL). - ד - The Hebrew letter Dalet (strongly RTL). - ה - The Hebrew letter He (strongly RTL). - ו - The Hebrew letter Vav (strongly RTL). -
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
-
-
-

דהו

ABCאבג.
-
-
-

דהו

ABCאבג.
-
-
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR1.html deleted file mode 100644 index 223aa56e6dbf..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR10.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR10.html deleted file mode 100644 index bd3dad92a84b..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR10.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR2.html deleted file mode 100644 index f9af6b961fdb..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR3.html deleted file mode 100644 index 2d07131d57b9..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR4.html deleted file mode 100644 index 38801d2a47c7..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR5.html deleted file mode 100644 index 7cd5db77c461..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR6.html deleted file mode 100644 index b66f5e30612b..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR7.html deleted file mode 100644 index 461118996689..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR8.html deleted file mode 100644 index 2fb2148f994e..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR9.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR9.html deleted file mode 100644 index 087d5104fc98..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-LTR9.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL1.html deleted file mode 100644 index 361fcd1e725b..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL10.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL10.html deleted file mode 100644 index 01e6f6bcba64..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL10.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL2.html deleted file mode 100644 index f243dec4fa3a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL3.html deleted file mode 100644 index 0aaedfe4a1b1..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL4.html deleted file mode 100644 index 60df2980c6fe..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL5.html deleted file mode 100644 index 36d2940e585b..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL6.html deleted file mode 100644 index 440945bb5875..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
­
-
-
-
­
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL7.html deleted file mode 100644 index 032c2f4eb11c..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL8.html deleted file mode 100644 index 9c1da6b0fc7a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
...
-
-
-
...
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL9.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL9.html deleted file mode 100644 index b7c4c36533cf..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-ChangeText-RTL9.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR1.html deleted file mode 100644 index 4ba7a037f638..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
DEF ABC אבג
-
-
-
DEF ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR2.html deleted file mode 100644 index 4bea44d83be8..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
גדה ABC אבג
-
-
-
גדה ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR3.html deleted file mode 100644 index 2c16829530ff..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-LTR3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
... ABC אבג
-
-
-
... ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL1.html deleted file mode 100644 index ab08388b8206..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
DEF אבג ABC
-
-
-
DEF אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL2.html deleted file mode 100644 index 477e155a0bde..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
גדה אבג ABC
-
-
-
גדה אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL3.html deleted file mode 100644 index cf4069567e05..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-DeleteText-RTL3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
... אבג ABC
-
-
-
... אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-addLTR-Auto.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-addLTR-Auto.html deleted file mode 100644 index 16dc62b5b936..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-addLTR-Auto.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-addRTL-Auto.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-addRTL-Auto.html deleted file mode 100644 index 52c0949c91f1..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-addRTL-Auto.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-LTR.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-LTR.html deleted file mode 100644 index 62a74bf334d8..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-LTR.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Set and unset dir="auto" - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-RTL.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-RTL.html deleted file mode 100644 index 60619730a8cd..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refLTR-RTL.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Set and unset dir="auto" - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-LTR.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-LTR.html deleted file mode 100644 index 4ea471a8d1cf..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-LTR.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Set and unset dir="auto" - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-NoDir.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-NoDir.html deleted file mode 100644 index b2f56c1ac115..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-NoDir.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Set and unset dir="auto" - - - -
-
אבג ABC
-
-
- -
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-RTL.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-RTL.html deleted file mode 100644 index 71c42ea3e426..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-refRTL-RTL.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Set and unset dir="auto" - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto1.html deleted file mode 100644 index 2c1c525f97b8..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto2.html deleted file mode 100644 index f0400e0d0050..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto3.html deleted file mode 100644 index 2cbf52716ccb..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto4.html deleted file mode 100644 index 5bcec0648d48..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto5.html deleted file mode 100644 index a0423c2468cc..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto6.html deleted file mode 100644 index 2574c867fa38..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-Auto6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir1.html deleted file mode 100644 index 1913335b8b9c..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir2.html deleted file mode 100644 index 596f1143af99..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir3.html deleted file mode 100644 index f22dd147d1ba..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir4.html deleted file mode 100644 index f876484e4beb..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir5.html deleted file mode 100644 index 6da8dff2f35c..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir6.html deleted file mode 100644 index b63c0dd0d24f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir7.html deleted file mode 100644 index e1b9d82c1cdb..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir8.html deleted file mode 100644 index 9b80f42d0b02..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-InvalidDir8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR1.html deleted file mode 100644 index e89fc792119e..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR2.html deleted file mode 100644 index 5a8e4f122161..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR3.html deleted file mode 100644 index bbc5f8090044..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR4.html deleted file mode 100644 index 08b21e09a458..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR5.html deleted file mode 100644 index cffe2556b84f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR6.html deleted file mode 100644 index b54417b6f4e2..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR7.html deleted file mode 100644 index 0baeb9fc6d32..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR8.html deleted file mode 100644 index ec1de35425e1..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-LTR8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir1.html deleted file mode 100644 index 2040663c3590..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir2.html deleted file mode 100644 index f8c2e99a744a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir3.html deleted file mode 100644 index c295012dba84..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir4.html deleted file mode 100644 index 13e0e5fc8ff7..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir5.html deleted file mode 100644 index 6dce96a6065c..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir6.html deleted file mode 100644 index 2d9973fa1d33..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir7.html deleted file mode 100644 index dd1964e01ff6..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir8.html deleted file mode 100644 index b25d70232366..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-NoDir8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL1.html deleted file mode 100644 index c5a9bf42df7d..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL2.html deleted file mode 100644 index b8ed6cda812a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL3.html deleted file mode 100644 index 528ffde04e6a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL4.html deleted file mode 100644 index 884c8fa852e2..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL5.html deleted file mode 100644 index 5cf486c905bc..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL6.html deleted file mode 100644 index 61c7331bd3b2..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL7.html deleted file mode 100644 index c4cc154cbe88..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL8.html deleted file mode 100644 index 18e333978c8e..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setLTR-RTL8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
ABC אבג
-
-
-
ABC אבג
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto1.html deleted file mode 100644 index 483d79fd518f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto2.html deleted file mode 100644 index b0773e6f6c4d..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto3.html deleted file mode 100644 index 77ce26cb3b1a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto4.html deleted file mode 100644 index f8cabec1ee8f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto5.html deleted file mode 100644 index 20621a5a756e..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto6.html deleted file mode 100644 index c9e1b560f77f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-Auto6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir1.html deleted file mode 100644 index a2ddd5292f54..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir2.html deleted file mode 100644 index 87eb1181902a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir3.html deleted file mode 100644 index 17ec5b453b5d..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir4.html deleted file mode 100644 index b4c5ebc09194..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir5.html deleted file mode 100644 index 1859e89bc6f3..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir6.html deleted file mode 100644 index 06c3d71703ec..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir7.html deleted file mode 100644 index 03239e88b701..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir8.html deleted file mode 100644 index fc353ac22f7c..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-InvalidDir8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR1.html deleted file mode 100644 index 52fcf96b37a1..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR2.html deleted file mode 100644 index 074eeab1042b..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR3.html deleted file mode 100644 index 2bb5ad2de54e..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR4.html deleted file mode 100644 index 79372c6ed3f6..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR5.html deleted file mode 100644 index 21201701535d..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR6.html deleted file mode 100644 index 272d5f9fcea0..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR7.html deleted file mode 100644 index d1d1185d2d67..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR8.html deleted file mode 100644 index a6f9fa09a271..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-LTR8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir1.html deleted file mode 100644 index ba2bd8bab5db..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir2.html deleted file mode 100644 index 5833b2e4adff..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir3.html deleted file mode 100644 index 1a031d043819..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir4.html deleted file mode 100644 index 53074850d35f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir5.html deleted file mode 100644 index 63fc1a746588..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir6.html deleted file mode 100644 index 31af1459d2ea..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir7.html deleted file mode 100644 index 5fd61d42e618..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir8.html deleted file mode 100644 index d388d5377fdc..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-NoDir8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL1.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL1.html deleted file mode 100644 index 45ee5c571375..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL1.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL2.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL2.html deleted file mode 100644 index 0df2fc8de199..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL2.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL3.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL3.html deleted file mode 100644 index 0dee370b6b37..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL3.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL4.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL4.html deleted file mode 100644 index dbfbe2125adb..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL4.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL5.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL5.html deleted file mode 100644 index 1b401367c12a..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL5.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL6.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL6.html deleted file mode 100644 index d2c70793c25f..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL6.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL7.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL7.html deleted file mode 100644 index ca0153cc2f53..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL7.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="auto" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL8.html b/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL8.html deleted file mode 100644 index 15b323976eed..000000000000 --- a/layout/reftests/bidi/dirAuto/dynamicDirAuto-setRTL-RTL8.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Set and unset dir="foopy" - - - - -
-
אבג ABC
-
-
-
אבג ABC
- - diff --git a/layout/reftests/bidi/dirAuto/reftest.list b/layout/reftests/bidi/dirAuto/reftest.list deleted file mode 100644 index a280551522b1..000000000000 --- a/layout/reftests/bidi/dirAuto/reftest.list +++ /dev/null @@ -1,161 +0,0 @@ -== dir_auto-contained-bdi-L.html dir_auto-contained-bdi-L-ref.html -== dir_auto-contained-bdi-R.html dir_auto-contained-bdi-R-ref.html -== dir_auto-contained-dir-L.html dir_auto-contained-dir-L-ref.html -== dir_auto-contained-dir-R.html dir_auto-contained-dir-R-ref.html -== dir_auto-set-contained-dir-L.html dir_auto-contained-dir-L-ref.html -== dir_auto-set-contained-dir-R.html dir_auto-contained-dir-R-ref.html -== dir_auto-set-contained-invalid-dir-L.html dir_auto-contained-dir-L-ref.html -== dir_auto-set-contained-invalid-dir-R.html dir_auto-contained-dir-R-ref.html -== dir_auto-unset-contained-dir-L.html dir_auto-unset-contained-dir-L-ref.html -== dir_auto-unset-contained-dir-R.html dir_auto-unset-contained-dir-R-ref.html -== dir_auto-contained-dir_auto-L.html dir_auto-contained-dir_auto-L-ref.html -== dir_auto-contained-dir_auto-R.html dir_auto-contained-dir_auto-R-ref.html -== dir_auto-contained-L.html dir_auto-contained-L-ref.html -== dir_auto-contained-R.html dir_auto-contained-R-ref.html -== dir_auto-contained-script-L.html dir_auto-contained-script-L-ref.html -== dir_auto-contained-script-R.html dir_auto-contained-script-R-ref.html -== dir_auto-contained-style-L.html dir_auto-contained-style-L-ref.html -== dir_auto-contained-style-R.html dir_auto-contained-style-R-ref.html -== dir_auto-contained-textarea-L.html dir_auto-contained-textarea-L-ref.html -== dir_auto-contained-textarea-R.html dir_auto-contained-textarea-R-ref.html -== dir_auto-EN-L.html dir_auto-EN-L-ref.html -== dir_auto-EN-R.html dir_auto-EN-R-ref.html -== dir_auto-input-EN-L.html dir_auto-input-EN-L-ref.html -== dir_auto-input-EN-R.html dir_auto-input-EN-R-ref.html -== dir_auto-input-L.html dir_auto-input-L-ref.html -== dir_auto-input-N-EN-L.html dir_auto-input-N-EN-L-ref.html -== dir_auto-input-N-EN-R.html dir_auto-input-N-EN-R-ref.html -== dir_auto-input-N-EN.html dir_auto-input-N-EN-ref.html -== dir_auto-input-N-L.html dir_auto-input-N-L-ref.html -== dir_auto-input-N-R.html dir_auto-input-N-R-ref.html -== dir_auto-input-R.html dir_auto-input-R-ref.html -== dir_auto-input-script-EN-L.html dir_auto-input-script-EN-L-ref.html -== dir_auto-input-script-EN-R.html dir_auto-input-script-EN-R-ref.html -== dir_auto-input-script-L.html dir_auto-input-script-L-ref.html -== dir_auto-input-script-N-EN-L.html dir_auto-input-script-N-EN-L-ref.html -== dir_auto-input-script-N-EN-R.html dir_auto-input-script-N-EN-R-ref.html -== dir_auto-input-script-N-EN.html dir_auto-input-script-N-EN-ref.html -== dir_auto-input-script-N-L.html dir_auto-input-script-N-L-ref.html -== dir_auto-input-script-N-R.html dir_auto-input-script-N-R-ref.html -== dir_auto-input-script-R.html dir_auto-input-script-R-ref.html -== dir_auto-isolate.html dir_auto-isolate-ref.html -== dir_auto-L.html dir_auto-L-ref.html -== dir_auto-N-EN-L.html dir_auto-N-EN-L-ref.html -== dir_auto-N-EN-R.html dir_auto-N-EN-R-ref.html -== dir_auto-N-EN.html dir_auto-N-EN-ref.html -== dir_auto-N-L.html dir_auto-N-L-ref.html -== dir_auto-N-R.html dir_auto-N-R-ref.html -== dir_auto-pre-mixed.html dir_auto-pre-mixed-ref.html -== dir_auto-pre-N-between-Rs.html dir_auto-pre-N-between-Rs-ref.html -== dir_auto-pre-N-EN.html dir_auto-pre-N-EN-ref.html -== dir_auto-R.html dir_auto-R-ref.html -== dir_auto-textarea-mixed.html dir_auto-textarea-mixed-ref.html -== dir_auto-textarea-N-between-Rs.html dir_auto-textarea-N-between-Rs-ref.html -== dir_auto-textarea-N-EN.html dir_auto-textarea-N-EN-ref.html -== dir_auto-textarea-script-mixed.html dir_auto-textarea-script-mixed-ref.html -== dir_auto-textarea-script-N-between-Rs.html dir_auto-textarea-script-N-between-Rs-ref.html -== dir_auto-textarea-script-N-EN.html dir_auto-textarea-script-N-EN-ref.html -== dynamicDirAuto-setLTR-Auto1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-Auto2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-Auto3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-Auto4.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-Auto5.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-Auto6.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR4.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR5.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR6.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR7.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-LTR8.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-RTL1.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL2.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL3.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL4.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL5.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL6.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL7.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-RTL8.html dynamicDirAuto-refLTR-RTL.html -== dynamicDirAuto-setLTR-NoDir1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir4.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir5.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir6.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir7.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-NoDir8.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir4.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir5.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir6.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir7.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setLTR-InvalidDir7.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-setRTL-Auto1.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-Auto2.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-Auto3.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-Auto4.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-Auto5.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-Auto6.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-LTR1.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR2.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR3.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR4.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR5.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR6.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR7.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-LTR8.html dynamicDirAuto-refRTL-LTR.html -== dynamicDirAuto-setRTL-RTL1.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL2.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL3.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL4.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL5.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL6.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL7.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-RTL8.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-setRTL-NoDir1.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir2.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir3.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir4.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir5.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir6.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir7.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-NoDir8.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir1.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir2.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir3.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir4.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir5.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir6.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir7.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-setRTL-InvalidDir8.html dynamicDirAuto-refRTL-NoDir.html -== dynamicDirAuto-addLTR-Auto.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-addRTL-Auto.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-LTR1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR4.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR5.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR6.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR7.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR8.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR9.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-LTR10.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-ChangeText-RTL1.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL2.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL3.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL4.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL5.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL6.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL7.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL8.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL9.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-ChangeText-RTL10.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-DeleteText-LTR1.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-DeleteText-LTR2.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-DeleteText-LTR3.html dynamicDirAuto-refLTR-LTR.html -== dynamicDirAuto-DeleteText-RTL1.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-DeleteText-RTL2.html dynamicDirAuto-refRTL-RTL.html -== dynamicDirAuto-DeleteText-RTL3.html dynamicDirAuto-refRTL-RTL.html diff --git a/layout/reftests/bidi/dirAuto/setDir.js b/layout/reftests/bidi/dirAuto/setDir.js deleted file mode 100644 index 19a9fb66953b..000000000000 --- a/layout/reftests/bidi/dirAuto/setDir.js +++ /dev/null @@ -1,199 +0,0 @@ -function setAllDir(value) -{ - for (var i = 0; ; ++i) { - try { - theElement = document.getElementById("set" + i); - theElement.dir = value; - } catch(e) { - break; - } - } -} - -function setAllDirAttribute(value) -{ - for (var i = 0; ; ++i) { - try { - theElement = document.getElementById("set" + i); - theElement.setAttribute("dir", value); - } catch(e) { - break; - } - } -} - -function removeAllDirAttribute() -{ - for (var i = 0; ; ++i) { - try { - theElement = document.getElementById("set" + i); - theElement.removeAttribute("dir"); - } catch(e) { - break; - } - } -} - -function addOneElement(innerHTML) -{ - var container = document.getElementById("container"); - var elem = document.createElement("div"); - elem.innerHTML = innerHTML; - container.appendChild(elem); -} - -function addLTRAutoElements() -{ - addOneElement(''); - addOneElement('ABC אבג'); - addOneElement(''); - addOneElement(''); - addOneElement('ABC אבג'); -} - -function addRTLAutoElements() -{ - addOneElement(''); - addOneElement('אבג ABC'); - addOneElement(''); - addOneElement(''); - addOneElement('אבג ABC'); -} - -function setAllTextValuesTo(newText) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - if (theElement.tagName == "INPUT" || - theElement.tagName == "TEXTAREA") { - theElement.value = newText; - } else { - theElement.firstChild.textContent = newText; - } - } -} - -function setAllTextDefaultValuesTo(newText) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - if (theElement.tagName == "INPUT" || - theElement.tagName == "TEXTAREA") { - theElement.defaultValue = newText; - } else { - theElement.firstChild.textContent = newText; - } - } -} - -function setAllTextChildrenTo(newText) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - if (theElement.tagName == "INPUT") { - theElement.value = newText; - } else { - theElement.firstChild.textContent = newText; - } - } -} - -function appendTextFromArray(textArray) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - for (var j = 0; j < textArray.length; ++j) { - if (theElement.tagName == "INPUT") { - theElement.value += textArray[j]; - } else { - var textNode = document.createTextNode(textArray[j]); - theElement.appendChild(textNode); - } - } - } -} - -function appendSpansFromArray(textArray) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - for (var j = 0; j < textArray.length; ++j) { - // fake the result for elements that can't have markup content - if (theElement.tagName == "INPUT") { - theElement.value += textArray[j]; - } else if (theElement.tagName == "TEXTAREA") { - theElement.innerHTML += textArray[j]; - } else { - var span = document.createElement("span"); - span.innerHTML = textArray[j]; - theElement.appendChild(span); - } - } - } -} - -function prependTextFromArray(textArray) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - for (var j = 0; j < textArray.length; ++j) { - if (theElement.tagName == "INPUT") { - theElement.value = textArray[j] + theElement.value; - } else { - var textNode = document.createTextNode(textArray[j]); - theElement.insertBefore(textNode, theElement.firstChild); - } - } - } -} - -function prependSpansFromArray(textArray) -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - for (var j = 0; j < textArray.length; ++j) { - // fake the result for elements that can't have markup content - if (theElement.tagName == "INPUT") { - theElement.value = textArray[j] + theElement.value; - } else if (theElement.tagName == "TEXTAREA") { - theElement.innerHTML = textArray[j] + theElement.innerHTML; - } else { - var span = document.createElement("span"); - span.innerHTML = textArray[j]; - theElement.insertBefore(span, theElement.firstChild); - } - } - } -} - -function removeElements() -{ - for (var i = 0; ; ++i) { - theElement = document.getElementById("set" + i); - if (!theElement) { - break; - } - theElement.parentNode.removeChild(theElement); - } -} diff --git a/layout/reftests/bidi/reftest.list b/layout/reftests/bidi/reftest.list index bf2191c7dd46..f0347219da9a 100644 --- a/layout/reftests/bidi/reftest.list +++ b/layout/reftests/bidi/reftest.list @@ -1,4 +1,3 @@ -include dirAuto/reftest.list == bdi-element.html bdi-element-ref.html == bidi-000.html bidi-000-ref.html == bidi-001.html bidi-001-ref.html diff --git a/layout/style/html.css b/layout/style/html.css index a988d6896b59..42bd05def8a3 100644 --- a/layout/style/html.css +++ b/layout/style/html.css @@ -16,9 +16,6 @@ unicode-bidi: embed; } -bdi:-moz-dir(ltr), [dir="auto"]:-moz-dir(ltr) { direction: ltr; } -bdi:-moz-dir(rtl), [dir="auto"]:-moz-dir(rtl) { direction: rtl; } - /* To ensure http://www.w3.org/TR/REC-html40/struct/dirlang.html#style-bidi: * * "When a block element that does not have a dir attribute is transformed to