Remove now-useless "list-outdent" algorithm
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 16 May 2011 14:42:53 -0600
changeset 126 f090afeb85f9
parent 125 7724c3ee154a
child 127 903d7655e24c
Remove now-useless "list-outdent" algorithm
editcommands.html
implementation.js
source.html
--- a/editcommands.html	Mon May 16 14:40:09 2011 -0600
+++ b/editcommands.html	Mon May 16 14:42:53 2011 -0600
@@ -2809,7 +2809,10 @@
       an <code class=external data-anolis-spec=html title="the ol element"><a href=http://www.whatwg.org/html/#the-ol-element>ol</a></code> or <code class=external data-anolis-spec=html title="the ul element"><a href=http://www.whatwg.org/html/#the-ul-element>ul</a></code>, remove the first member from <var title="">node list</var>
       and append it to <var title="">sublist</var>.
 
-      <li><a href=#list-outdent>List-outdent</a> <var title="">sublist</var>.
+      <li><a href=#split-the-parent>Split the parent</a> of <var title="">sublist</var>, with <var title="">new
+      parent</var> null.
+
+      <li><a href=#fix-orphaned-list-items>Fix orphaned list items</a> in <var title="">sublist</var>.
     </ol>
 
     <li>Otherwise, if the <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-tree-parent title=concept-tree-parent>parent</a> of the first member of <var title="">sublist</var>
@@ -3040,7 +3043,10 @@
     list</var> is not an <code class=external data-anolis-spec=html title="the ol element"><a href=http://www.whatwg.org/html/#the-ol-element>ol</a></code> or <code class=external data-anolis-spec=html title="the ul element"><a href=http://www.whatwg.org/html/#the-ul-element>ul</a></code>, remove the first member of <var title="">node
     list</var> and append it to <var title="">sublist</var>.
 
-    <li><a href=#list-outdent>List-outdent</a> <var title="">sublist</var>.
+    <li><a href=#split-the-parent>Split the parent</a> of <var title="">sublist</var>, with <var title="">new
+    parent</var> null.
+
+    <li><a href=#fix-orphaned-list-items>Fix orphaned list items</a> in <var title="">sublist</var>.
   </ol>
 </ol>
 
@@ -3234,16 +3240,6 @@
   <li><a href=#outdent>Outdent</a> <var title="">original ancestor</var>.
 </ol>
 
-<p>To <dfn id=list-outdent>list-outdent</dfn> a list <var title="">node list</var> of consecutive
-<a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-tree-sibling title=concept-tree-sibling>sibling</a> <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node title=concept-node>nodes</a>:
-
-<ol>
-  <li><a href=#split-the-parent>Split the parent</a> of <var title="">node list</var>, with <var title="">new
-  parent</var> null.
-
-  <li><a href=#fix-orphaned-list-items>Fix orphaned list items</a> in <var title="">node list</var>.
-</ol>
-
 <p>To <dfn id=fix-orphaned-list-items>fix orphaned list items</dfn> in a list of <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node title=concept-node>nodes</a> <var title="">node
 list</var>:
 
--- a/implementation.js	Mon May 16 14:40:09 2011 -0600
+++ b/implementation.js	Mon May 16 14:42:53 2011 -0600
@@ -2616,8 +2616,11 @@
 					sublist.push(nodeList.shift());
 				}
 
-				// "List-outdent sublist."
-				listOutdent(sublist);
+				// "Split the parent of sublist, with new parent null."
+				splitParent(sublist, null);
+
+				// "Fix orphaned list items in sublist."
+				fixOrphanedListItems(sublist);
 
 			// "Otherwise, if the parent of the first member of sublist is an
 			// editable ul:"
@@ -2915,8 +2918,11 @@
 				sublist.push(nodeList.shift());
 			}
 
-			// "List-outdent sublist."
-			listOutdent(sublist);
+			// "Split the parent of sublist, with new parent null."
+			splitParent(sublist, null);
+
+			// "Fix orphaned list items in sublist."
+			fixOrphanedListItems(sublist);
 		}
 		break;
 
@@ -3397,14 +3403,6 @@
 	outdentNode(originalAncestor);
 }
 
-function listOutdent(nodeList) {
-	// "Split the parent of node list, with new parent null."
-	splitParent(nodeList, null);
-
-	// "Fix orphaned list items in node list."
-	fixOrphanedListItems(nodeList);
-}
-
 function fixOrphanedListItems(nodeList) {
 	// "For each li item in node list:"
 	for (var i = 0; i < nodeList.length; i++) {
--- a/source.html	Mon May 16 14:40:09 2011 -0600
+++ b/source.html	Mon May 16 14:42:53 2011 -0600
@@ -2850,7 +2850,10 @@
       an [[ol]] or [[ul]], remove the first member from <var>node list</var>
       and append it to <var>sublist</var>.
 
-      <li><span>List-outdent</span> <var>sublist</var>.
+      <li><span>Split the parent</span> of <var>sublist</var>, with <var>new
+      parent</var> null.
+
+      <li><span>Fix orphaned list items</span> in <var>sublist</var>.
     </ol>
 
     <li>Otherwise, if the [[parent]] of the first member of <var>sublist</var>
@@ -3088,7 +3091,10 @@
     list</var> is not an [[ol]] or [[ul]], remove the first member of <var>node
     list</var> and append it to <var>sublist</var>.
 
-    <li><span>List-outdent</span> <var>sublist</var>.
+    <li><span>Split the parent</span> of <var>sublist</var>, with <var>new
+    parent</var> null.
+
+    <li><span>Fix orphaned list items</span> in <var>sublist</var>.
   </ol>
 </ol>
 
@@ -3286,16 +3292,6 @@
   <li><span>Outdent</span> <var>original ancestor</var>.
 </ol>
 
-<p>To <dfn>list-outdent</dfn> a list <var>node list</var> of consecutive
-[[sibling]] [[nodes]]:
-
-<ol>
-  <li><span>Split the parent</span> of <var>node list</var>, with <var>new
-  parent</var> null.
-
-  <li><span>Fix orphaned list items</span> in <var>node list</var>.
-</ol>
-
 <p>To <dfn>fix orphaned list items</dfn> in a list of [[nodes]] <var>node
 list</var>: