Summary: | containsOnlyWhitespace does not need to be a virtual function | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Darin Adler <darin> | ||||||
Component: | DOM | Assignee: | Darin Adler <darin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Enhancement | CC: | cdumez | ||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Attachments: |
|
Description
Darin Adler
2005-11-09 08:21:38 PST
Created attachment 4643 [details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl
Comment on attachment 4643 [details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl
This part of your patch is not safe:
+ !curr->element() || !static_cast<TextImpl
*>(curr->element())-
It may be possible for things other than TextNodes to create RenderText objects
(at least in an SVG-enabled world).
Comment on attachment 4643 [details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl
Good point. I thought there was a check of isTextNode on that line. I'll fix
it.
Created attachment 5145 [details]
adds call to isTextNode missing from earlier patch
Comment on attachment 5145 [details]
adds call to isTextNode missing from earlier patch
r=me
Mass moving XML DOM bugs to the "DOM" Component. |