WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
patch to implement the method
ObjCSheetMethodPatch.txt (text/plain), 1.82 KB, created by
Darin Adler
on 2005-08-06 20:20:08 PDT
(
hide
)
Description:
patch to implement the method
Filename:
MIME Type:
Creator:
Darin Adler
Created:
2005-08-06 20:20:08 PDT
Size:
1.82 KB
patch
obsolete
>Index: kwq/DOM-CSS.mm >=================================================================== >RCS file: /cvs/root/WebCore/kwq/DOM-CSS.mm,v >retrieving revision 1.23 >diff -p -u -u -p -r1.23 kwq/DOM-CSS.mm >--- kwq/DOM-CSS.mm 14 Jul 2005 02:22:11 -0000 1.23 >+++ kwq/DOM-CSS.mm 7 Aug 2005 03:02:39 -0000 >@@ -33,10 +33,12 @@ > #import "css_valueimpl.h" > #import "css_value.h" > #import "dom_string.h" >+#import "dom_xmlimpl.h" > #import "KWQColor.h" > #import "shared.h" > #import "dom_stringimpl.h" > #import "dom2_viewsimpl.h" >+#import "html_headimpl.h" > > #import "DOMInternal.h" > #import "KWQAssertions.h" >@@ -58,7 +60,10 @@ using DOM::CSSStyleSheetImpl; > using DOM::CSSValueImpl; > using DOM::CSSValueListImpl; > using DOM::DOMString; >+using DOM::HTMLLinkElementImpl; >+using DOM::HTMLStyleElementImpl; > using DOM::MediaListImpl; >+using DOM::ProcessingInstructionImpl; > using DOM::RectImpl; > using DOM::StyleSheetImpl; > using DOM::StyleSheetListImpl; >@@ -2532,13 +2537,22 @@ void removeWrapperForRGB(QRgb value) > > //------------------------------------------------------------------------------------------ > >- > @implementation DOMObject (DOMLinkStyle) > > - (DOMStyleSheet *)sheet > { >- ERROR("unimplemented"); >- return nil; >+ StyleSheetImpl *sheet; >+ >+ if ([self isKindOfClass:[DOMProcessingInstruction class]]) >+ sheet = static_cast<ProcessingInstructionImpl *>([(DOMProcessingInstruction *)self _nodeImpl])->sheet(); >+ else if ([self isKindOfClass:[DOMHTMLLinkElement class]]) >+ sheet = static_cast<HTMLLinkElementImpl *>([(DOMHTMLLinkElement *)self _nodeImpl])->sheet(); >+ else if ([self isKindOfClass:[DOMHTMLStyleElement class]]) >+ sheet = static_cast<HTMLStyleElementImpl *>([(DOMHTMLStyleElement *)self _nodeImpl])->sheet(); >+ else >+ return nil; >+ >+ return [DOMStyleSheet _DOMStyleSheetWithImpl:sheet]; > } > > @end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
eric
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 4310
: 3247