- fixed <rdar://problem/
3971372> SWB: template function DOM_cast() won't compile with gcc 4.0
- fixed other gcc 4.0 compiling problems Patrick Beard pointed out on the phone
* kwq/DOMInternal.h: (DOM_cast): Change the "failToCompile()" trick to use a dependent name.
Nowadays, if a name is not dependent, it is checked at template definition time. But we want
a failure only at template instantiation time.
* ForwardingHeaders/editing/text_granularity.h: Added. Needed but a bug in the 3.3 compiler made
it compile anyway without this.
- other changes
* khtml/html/html_miscimpl.h: For clarity, mark these functions virtual too. They are automatically
virtual because the base class ones are virtual, but it's ugly to leave it this way.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8457
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-27 Darin Adler <darin@apple.com>
+
+ Reviewed by John.
+
+ - fixed <rdar://problem/3971372> SWB: template function DOM_cast() won't compile with gcc 4.0
+ - fixed other gcc 4.0 compiling problems Patrick Beard pointed out on the phone
+
+ * kwq/DOMInternal.h: (DOM_cast): Change the "failToCompile()" trick to use a dependent name.
+ Nowadays, if a name is not dependent, it is checked at template definition time. But we want
+ a failure only at template instantiation time.
+
+ * ForwardingHeaders/editing/text_granularity.h: Added. Needed but a bug in the 3.3 compiler made
+ it compile anyway without this.
+
+ - other changes
+
+ * khtml/html/html_miscimpl.h: For clarity, mark these functions virtual too. They are automatically
+ virtual because the base class ones are virtual, but it's ugly to leave it this way.
+
2005-01-26 Ken Kocienda <kocienda@apple.com>
Reviewed by Hyatt
--- /dev/null
+#import <text_granularity.h>
virtual NodeImpl *firstItem() const;
virtual NodeImpl *nextItem() const;
- NodeImpl *namedItem ( const DOMString &name, bool caseSensitive = true ) const;
- NodeImpl *nextNamedItem( const DOMString &name ) const;
+ virtual NodeImpl *namedItem ( const DOMString &name, bool caseSensitive = true ) const;
+ virtual NodeImpl *nextNamedItem( const DOMString &name ) const;
protected:
virtual void updateNameCache() const;
// Helper functions for DOM wrappers and gluing to Objective-C
// Like reinterpret_cast, but a compiler error if you use it on the wrong type.
-template <class Target, class Source> Target DOM_cast(Source) { failToCompile(); }
+template <class Target, class Source> Target DOM_cast(Source) { Source::failToCompile(); }
// Type safe DOM wrapper access.