Reviewed by John.
Adding isContentEditable to DOMNode's private category.
* bindings/objc/DOMPrivate.h:
WebKit:
Reviewed by John.
The context menu code should be checking isContentEditable
on DOMNode not just DOMElement. This is needed because DOMText
will be the node class of any text that is clicked.
* DefaultDelegates/WebDefaultContextMenuDelegate.m:
(-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15670
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-28 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by John.
+
+ Adding isContentEditable to DOMNode's private category.
+
+ * bindings/objc/DOMPrivate.h:
+
2006-07-28 Alexey Proskuryakov <ap@nypop.com>
Rolling out http://bugzilla.opendarwin.org/show_bug.cgi?id=6010 because of failing layout tests.
FAE04190097596C9000540BE /* SVGImageLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = FAE0418E097596C9000540BE /* SVGImageLoader.h */; };
/* End PBXBuildFile section */
-/* Begin PBXBuildStyle section */
- BCF4E5090A7566950090527A /* Development */ = {
- isa = PBXBuildStyle;
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- };
- name = Development;
- };
- BCF4E50A0A7566950090527A /* Deployment */ = {
- isa = PBXBuildStyle;
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- name = Deployment;
- };
-/* End PBXBuildStyle section */
-
/* Begin PBXContainerItemProxy section */
DD041FF009D9E3250010AF2A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 149C284308902B11008A9EFC /* Build configuration list for PBXProject "WebCore" */;
- buildSettings = {
- };
- buildStyles = (
- BCF4E5090A7566950090527A /* Development */,
- BCF4E50A0A7566950090527A /* Deployment */,
- );
hasScannedForEncodings = 1;
knownRegions = (
English,
- (NSColor *)_color;
@end
+@interface DOMNode (WebPrivate)
+- (BOOL)isContentEditable;
+@end
+
@interface DOMElement (WebPrivate)
- (NSFont *)_font;
- (NSData *)_imageTIFFRepresentation;
+2006-07-28 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by John.
+
+ The context menu code should be checking isContentEditable
+ on DOMNode not just DOMElement. This is needed because DOMText
+ will be the node class of any text that is clicked.
+
+ * DefaultDelegates/WebDefaultContextMenuDelegate.m:
+ (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
+
2006-07-25 Geoffrey Garen <ggaren@apple.com>
Reviewed by Maciej, inspired by John.
contentEditible = YES;
else if ([domElement isKindOfClass:[DOMHTMLInputElement class]])
contentEditible = [(DOMHTMLInputElement *)domElement _isTextField];
- else if ([domElement isKindOfClass:[DOMHTMLElement class]])
- contentEditible = [(DOMHTMLElement *)domElement isContentEditable];
+ else if ([domElement isKindOfClass:[DOMNode class]])
+ contentEditible = [(DOMNode *)domElement isContentEditable];
NSView *documentView = [[[element objectForKey:WebElementFrameKey] frameView] documentView];
if ([documentView isKindOfClass:[WebHTMLView class]] && contentEditible) {