RESOLVED FIXED 10684
Auto-generate the Objective-C DOM CSS bindings
https://bugs.webkit.org/show_bug.cgi?id=10684
Summary Auto-generate the Objective-C DOM CSS bindings
Sam Weinig
Reported 2006-09-01 19:08:15 PDT
patch in a minute
Attachments
patch (98.83 KB, patch)
2006-09-01 19:21 PDT, Sam Weinig
timothy: review-
patch 2 (97.97 KB, patch)
2006-09-02 18:25 PDT, Sam Weinig
timothy: review+
Sam Weinig
Comment 1 2006-09-01 19:21:19 PDT
Created attachment 10357 [details] patch Auto-generates DOMCSSCharsetRule, DOMCSSFontFaceRule, DOMCSSImportRule, DOMCSSMediaRule, DOMCSSPageRule, DOMCSSPrimitiveValue, DOMCSSRule, DOMCSSRuleList, DOMCSSStyleDeclaration, DOMCSSStyleRule, DOMCSSStyleSheet, DOMCSSUnknownRule, DOMCSSValue, DOMCSSValueList, DOMCounter, and DOMRect. Splits DOMRGBColor into its own files.
Timothy Hatcher
Comment 2 2006-09-01 19:38:14 PDT
Comment on attachment 10357 [details] patch Looking good. Some comments before I r+ this: Double ChangeLog entry. +//- (NSString *)description +//{ +//    return [NSString stringWithFormat:@"DOMCSSStyleDeclaration: %@", [self cssText]]; +//}   That should be removed. We can add back in descriptions per-class if we feel they are needed. @interface DOMDocument (DOMViewCSS)  - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;  @end Can that be moved to another headers? DOMExtensions.h?
Sam Weinig
Comment 3 2006-09-02 18:25:56 PDT
Created attachment 10373 [details] patch 2 Updated patch addressing most of Tim's comments. For now I have left the DOMDocument getComputedStyle method interface in DOMCSS.h as I ultimately want that to be auto-generated in DOMDocument itself, and moving it into a DOMExtension file would just mean that we have to include DOMExtension,h in DOMCSS.h.
Timothy Hatcher
Comment 4 2006-09-02 18:54:09 PDT
Comment on attachment 10373 [details] patch 2 r=me
Sam Weinig
Comment 5 2006-09-02 19:04:43 PDT
Landed in r16195.
Note You need to log in before you can comment on or make changes to this bug.