+2004-12-06 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/3871718> REGRESSION (125-168): text marked bold with font that does not have bold variant copies as non-bold
+
+ Reviewed by hyatt.
+
+ * kwq/DOM.mm:
+ (-[DOMElement _font]): new SPI for AppKit
+ * kwq/DOMPrivate.h:
+
2004-12-06 Darin Adler <darin@apple.com>
Reviewed by Maciej.
#import "khtml_part.h"
+#import "render_object.h"
+
#import "DOMEventsInternal.h"
#import "DOMHTML.h"
#import "DOMInternal.h"
using DOM::TextImpl;
using DOM::TreeWalkerImpl;
+using khtml::RenderObject;
+
@interface DOMAttr (WebCoreInternal)
+ (DOMAttr *)_attrWithImpl:(AttrImpl *)impl;
- (AttrImpl *)_attrImpl;
@end
+@implementation DOMElement (WebPrivate)
+
+- (NSFont *)_font
+{
+ RenderObject *renderer = [self _elementImpl]->renderer();
+ if (renderer) {
+ return renderer->style()->font().getNSFont();
+ }
+ return nil;
+}
+
+@end
+
+
//------------------------------------------------------------------------------------------
// DOMText