Changeset 20814 in webkit


Ignore:
Timestamp:
Apr 9, 2007 5:06:35 PM (17 years ago)
Author:
andersca
Message:

WebCore:

Reviewed by John.

  • WebCore.exp: Add ZNK7WebCore11FrameLoader10isCompleteEv.

WebKit:

Reviewed by John.

<rdar://problem/5081860>
REGRESSION: Select All for standalone image has no visible effect but does change state


<rdar://problem/5081840>
REGRESSION: context menu in white space beyond standalone image is different after Select All


Have validateUserInterface emulate the old behavior for full-frame images and plugins, which is:


  • For full-frame plugins, always return false.
  • For images, only return true if the selector is copy: and the image has finished loading.


  • WebView/WebHTMLView.mm: (-[WebHTMLView validateUserInterfaceItem:]):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r20813 r20814  
     12007-04-09  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by John.
     4
     5        * WebCore.exp:
     6        Add __ZNK7WebCore11FrameLoader10isCompleteEv.
     7       
    182007-04-09  Brady Eidson  <beidson@apple.com>
    29
  • trunk/WebCore/WebCore.exp

    r20506 r20814  
    486486__ZNK7WebCore11CachedImage5imageEv
    487487__ZNK7WebCore11ContextMenu19platformDescriptionEv
     488__ZNK7WebCore11FrameLoader10isCompleteEv
    488489__ZNK7WebCore11FrameLoader14documentLoaderEv
    489490__ZNK7WebCore11FrameLoader15containsPluginsEv
  • trunk/WebKit/ChangeLog

    r20812 r20814  
     12007-04-09  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by John.
     4
     5        <rdar://problem/5081860>
     6        REGRESSION: Select All for standalone image has no visible effect but does change state
     7       
     8        <rdar://problem/5081840>
     9        REGRESSION: context menu in white space beyond standalone image is different after Select All
     10       
     11        Have validateUserInterface emulate the old behavior for full-frame images and plugins, which is:
     12       
     13        - For full-frame plugins, always return false.
     14        - For images, only return true if the selector is copy: and the image has finished loading.
     15       
     16        * WebView/WebHTMLView.mm:
     17        (-[WebHTMLView validateUserInterfaceItem:]):
     18
    1192007-04-09  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/WebKit/WebView/WebHTMLView.mm

    r20615 r20814  
    8282#import <WebCore/FocusController.h>
    8383#import <WebCore/Frame.h>
     84#import <WebCore/FrameLoader.h>
    8485#import <WebCore/HitTestResult.h>
    8586#import <WebCore/Image.h>
     
    21172118    Frame* frame = core([self _frame]);
    21182119
     2120    if (Document* doc = frame->document()) {
     2121        if (doc->isPluginDocument())
     2122            return NO;
     2123       
     2124        if (doc->isImageDocument()) {           
     2125            if (action == @selector(copy:))
     2126                return frame->loader()->isComplete();
     2127       
     2128            return NO;
     2129        }
     2130    }
     2131   
    21192132    if (action == @selector(changeSpelling:)
    21202133            || action == @selector(_changeSpellingFromMenu:)
Note: See TracChangeset for help on using the changeset viewer.