Reviewed by John Sullivan.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2006 19:34:18 +0000 (19:34 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2006 19:34:18 +0000 (19:34 +0000)
        <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel

        * WebView/WebHTMLView.m:
        (-[WebHTMLView _increaseSelectionListLevel]):
        - Now returns DOMNode*

        (-[WebHTMLView _increaseSelectionListLevelOrdered]):
        (-[WebHTMLView _increaseSelectionListLevelUnordered]):
        - Added.  These also return DOMNode*

        * WebView/WebHTMLViewPrivate.h:
        - Updated as above

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14614 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView/WebHTMLView.m
WebKit/WebView/WebHTMLViewPrivate.h

index 15fd51be5357bb852788aaa1f37bbbae2f561f1a..3ddfd54e71e17efeca3e7bcdc85ecb2c5d66ebbc 100644 (file)
@@ -1,3 +1,20 @@
+2006-05-26  David Harrison  <harrison@apple.com>
+
+        Reviewed by John Sullivan.
+
+        <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
+
+        * WebView/WebHTMLView.m:
+        (-[WebHTMLView _increaseSelectionListLevel]):
+        - Now returns DOMNode*
+
+        (-[WebHTMLView _increaseSelectionListLevelOrdered]):
+        (-[WebHTMLView _increaseSelectionListLevelUnordered]):
+        - Added.  These also return DOMNode*
+
+        * WebView/WebHTMLViewPrivate.h:
+        - Updated as above
+
 2006-05-25  Tim Omernick  <timo@apple.com>
 
         Reviewed by Anders.
index ac52bff5a1daf021ba87ba5ac2a5c7672c93a3ee..edcbc15e7c0b170645abfda4dfb70fae268d61fc 100644 (file)
@@ -1690,13 +1690,31 @@ static WebHTMLView *lastHitView = nil;
     return ([self _canEditRichly] && [[self _bridge] canDecreaseSelectionListLevel]);
 }
 
-- (void)_increaseSelectionListLevel
+- (DOMNode *)_increaseSelectionListLevel
 {
     if (![self _canEditRichly])
-        return;
+        return nil;
+        
+    WebFrameBridge *bridge = [self _bridge];
+    return [bridge increaseSelectionListLevel];
+}
+
+- (DOMNode *)_increaseSelectionListLevelOrdered
+{
+    if (![self _canEditRichly])
+        return nil;
+        
+    WebFrameBridge *bridge = [self _bridge];
+    return [bridge increaseSelectionListLevelOrdered];
+}
+
+- (DOMNode *)_increaseSelectionListLevelUnordered
+{
+    if (![self _canEditRichly])
+        return nil;
         
     WebFrameBridge *bridge = [self _bridge];
-    [bridge increaseSelectionListLevel];
+    return [bridge increaseSelectionListLevelUnordered];
 }
 
 - (void)_decreaseSelectionListLevel
index 710de725ec5ee37451fe37aa7d7e3b3a66ca9dd4..e2b62ff3c94b238b13c62d410f6ffd8bc7005553 100644 (file)
@@ -96,7 +96,9 @@
 - (NSRect)_selectionDraggingRect;
 - (BOOL)_canIncreaseSelectionListLevel;
 - (BOOL)_canDecreaseSelectionListLevel;
-- (void)_increaseSelectionListLevel;
+- (DOMNode *)_increaseSelectionListLevel;
+- (DOMNode *)_increaseSelectionListLevelOrdered;
+- (DOMNode *)_increaseSelectionListLevelUnordered;
 - (void)_decreaseSelectionListLevel;
 
 // SPI for DumpRenderTree