WebCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2006-08-21  Brady Eidson  <beidson@apple.com>
2
3         Reviewed by John
4
5         -Defers writing to the database via a timer and handles starting the timer
6          intelligently
7
8         * loader/icon/IconDatabase.cpp:
9         (WebCore::IconDatabase::IconDatabase):
10         (WebCore::IconDatabase::open): Don't start the update timer by default
11         (WebCore::IconDatabase::close): Call syncDatabase()
12         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Call syncDatabase()
13         (WebCore::IconDatabase::setIconURLForPageURL): Setup the cached url, but defer the DB call
14         (WebCore::IconDatabase::setIconURLForPageURLInDatabase): Actually commit the url to the DB
15         (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
16         (WebCore::IconDatabase::updateDatabase): The updateTimer calls this, which just calls syncDatabase()
17         (WebCore::IconDatabase::syncDatabase): Add and remove pending pageURLs and iconURLs, and stop the updateTimer
18         * loader/icon/IconDatabase.h:
19
20 2006-08-21  Alexey Proskuryakov  <ap@nypop.com>
21
22         Reviewed by Eric.
23
24         - http://bugzilla.opendarwin.org/show_bug.cgi?id=10429
25           XSLTProcessor.transformToFragment crashes if the owner document is empty
26
27         Test: fast/js/xslt-fragment-in-empty-doc.html
28
29         * dom/XMLTokenizer.cpp:
30         (WebCore::XMLTokenizer::XMLTokenizer): Don't iterate over the element stack if it's empty.
31
32 2006-08-21  Brady Eidson  <beidson@apple.com>
33
34         Reviewed by Anders
35
36         -Added timer-based, deferred deletion of database records - PageURLs and Icons handled seperately
37          In the near future, we'll also have timer-based deferred *addition* of database records
38         -Keep retain/release counts in a hash instead of a DB table
39         -Keep only one hash record for the SiteIcons
40         -Renamed some methods for clarity
41
42         * bridge/mac/WebCoreIconDatabaseBridge.h: Renamed method for clarity
43         * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
44         (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]): Ditto
45         * loader/icon/IconDatabase.cpp:
46         (WebCore::IconDatabase::IconDatabase):
47         (WebCore::IconDatabase::open): Added new timer setup
48         (WebCore::IconDatabase::iconForPageURL): Only work with one hash of the SiteIcons
49         (WebCore::IconDatabase::retainIconForPageURL): Keep count in a hash
50         (WebCore::IconDatabase::releaseIconForPageURL): Keep count in a hash, use deferred deletion
51         (WebCore::IconDatabase::retainIconURL): Added
52         (WebCore::IconDatabase::releaseIconURL): Added
53         (WebCore::IconDatabase::forgetPageURL):  Added
54         (WebCore::IconDatabase::isIconURLRetained): New and improved simplicity
55         (WebCore::IconDatabase::setIconDataForIconURL): Cleanup
56         (WebCore::IconDatabase::setIconURLForPageURL):
57         (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Renamed
58         (WebCore::IconDatabase::pruneIconsPendingDeletion): Added
59         (WebCore::IconDatabase::hasEntryForIconURL): Renamed for clarity
60         * loader/icon/IconDatabase.h: Added multiple stuffs
61
62 2006-08-21  Brady Eidson  <beidson@apple.com>
63
64         Reviewed by Maciej's rubberstamp
65
66         Removed stale file references from the Xcode.proj
67
68         * WebCore.xcodeproj/project.pbxproj:
69
70 2006-08-20  Nikolas Zimmermann  <zimmermann@kde.org>
71
72         Reviewed by Maciej. Landed by rwlbuis.
73
74         Fixes parts of: http://bugzilla.opendarwin.org/show_bug.cgi?id=10463
75         WebKit should have Qt platform support
76
77         Removing HelperQt.h usage by creating appropriate operators
78         constructor in some of the platform classes, as suggested by Darin.
79
80         * CMakeLists.txt:
81         * platform/DeprecatedString.h:
82         * platform/Font.h:
83         * platform/PlatformString.h:
84         * platform/qt/ComboBoxQt.cpp:
85         (WebCore::PlatformComboBox::appendItem):
86         (WebCore::PlatformComboBox::appendGroupLabel):
87         (WebCore::PlatformComboBox::setFont):
88         * platform/qt/LineEditQt.cpp:
89         (WebCore::PlatformLineEdit::setFont):
90         (WebCore::PlatformLineEdit::setText):
91         (WebCore::PlatformLineEdit::text):
92         (WebCore::PlatformLineEdit::selectedText):
93         * platform/qt/ListBoxQt.cpp:
94         (WebCore::ListBox::setFont):
95         (WebCore::ListBox::appendItem):
96         * platform/qt/PlatformKeyboardEventQt.cpp:
97         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
98         * platform/qt/ScrollViewQt.cpp:
99         * platform/qt/StringQt.cpp: Added.
100         (WebCore::String::String):
101         (WebCore::String::operator QString):
102         (WebCore::DeprecatedString::operator QString):
103         * platform/qt/TextEditQt.cpp:
104         * platform/qt/WidgetQt.cpp:
105         (WebCore::Widget::setFont):
106
107 2006-08-18  Steve Falkenburg  <sfalken@apple.com>
108
109         Rubber stamped by adele.
110         
111         Fix call to WebFormDelegate's textFieldDidBeginEditing.
112
113         * rendering/RenderTextControl.cpp:
114         (WebCore::RenderTextControl::subtreeHasChanged):
115
116 2006-08-19  Nikolas Zimmermann  <zimmermann@kde.org>
117
118         Reviewed by Eric. Landed by rwlbuis.
119
120         Next chunk of the implementation for:
121         http://bugzilla.opendarwin.org/show_bug.cgi?id=10467
122
123         WebKit should have Qt platform support
124
125         * platform/qt/KeyboardCodes.h: Added.
126         * platform/qt/PlatformKeyboardEventQt.cpp: Added.
127         (WebCore::keyIdentifierForQtKeyCode):
128         (WebCore::windowsKeyCodeForKeyEvent):
129         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
130         * platform/qt/PlatformMouseEventQt.cpp: Added.
131         (WebCore::):
132         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
133
134 2006-08-19  Nikolas Zimmermann  <zimmermann@kde.org>
135
136         Reviewed by Eric. Landed by rwlbuis.
137
138         Next chunk of the implementation for:
139         http://bugzilla.opendarwin.org/show_bug.cgi?id=10467
140
141         WebKit should have Qt platform support
142
143         * platform/qt/AffineTransformQt.cpp: Added.
144         (WebCore::AffineTransform::AffineTransform):
145         (WebCore::AffineTransform::setMatrix):
146         (WebCore::AffineTransform::map):
147         (WebCore::AffineTransform::mapRect):
148         (WebCore::AffineTransform::isIdentity):
149         (WebCore::AffineTransform::m11):
150         (WebCore::AffineTransform::m12):
151         (WebCore::AffineTransform::m21):
152         (WebCore::AffineTransform::m22):
153         (WebCore::AffineTransform::dx):
154         (WebCore::AffineTransform::dy):
155         (WebCore::AffineTransform::reset):
156         (WebCore::AffineTransform::scale):
157         (WebCore::AffineTransform::rotate):
158         (WebCore::AffineTransform::translate):
159         (WebCore::AffineTransform::shear):
160         (WebCore::AffineTransform::det):
161         (WebCore::AffineTransform::invert):
162         (WebCore::AffineTransform::operator QMatrix):
163         (WebCore::AffineTransform::operator==):
164         (WebCore::AffineTransform::operator*=):
165         (WebCore::AffineTransform::operator*):
166         * platform/qt/BrowserExtensionQt.cpp: Added.
167         (WebCore::BrowserExtensionQt::BrowserExtensionQt):
168         (WebCore::BrowserExtensionQt::canRunModal):
169         (WebCore::BrowserExtensionQt::createNewWindow):
170         (WebCore::BrowserExtensionQt::canRunModalNow):
171         (WebCore::BrowserExtensionQt::runModal):
172         (WebCore::BrowserExtensionQt::goBackOrForward):
173         (WebCore::BrowserExtensionQt::historyURL):
174         (WebCore::BrowserExtensionQt::setTypedIconURL):
175         (WebCore::BrowserExtensionQt::setIconURL):
176         (WebCore::BrowserExtensionQt::getHistoryLength):
177         * platform/qt/BrowserExtensionQt.h: Added.
178         * platform/qt/CookieJarQt.cpp: Added.
179         (WebCore::setCookies):
180         (WebCore::cookies):
181         (WebCore::cookiesEnabled):
182         * platform/qt/PageQt.cpp: Added.
183         (WebCore::rootWindowForFrame):
184         (WebCore::Page::windowRect):
185         (WebCore::Page::setWindowRect):
186         * platform/qt/PathQt.cpp: Added.
187         (WebCore::Path::Path):
188         (WebCore::Path::~Path):
189         (WebCore::Path::operator=):
190         (WebCore::Path::contains):
191         (WebCore::Path::translate):
192         (WebCore::Path::boundingRect):
193         (WebCore::Path::moveTo):
194         (WebCore::Path::addLineTo):
195         (WebCore::Path::addQuadCurveTo):
196         (WebCore::Path::addBezierCurveTo):
197         (WebCore::Path::addArcTo):
198         (WebCore::Path::closeSubpath):
199         (WebCore::Path::addArc):
200         (WebCore::Path::addRect):
201         (WebCore::Path::addEllipse):
202         (WebCore::Path::clear):
203         * platform/qt/ScreenQt.cpp: Added.
204         (WebCore::screenRect):
205         (WebCore::screenDepth):
206         (WebCore::usableScreenRect):
207
208
209 2006-08-19  Nikolas Zimmermann  <zimmermann@kde.org>
210
211         Reviewed by Eric. Landed by rwlbuis.
212
213         First chunk of the implementation for:
214         http://bugzilla.opendarwin.org/show_bug.cgi?id=10467
215
216         WebKit should have Qt platform support
217
218         * platform/qt/ComboBoxQt.cpp: Added.
219         (WebCore::PlatformComboBox::PlatformComboBox):
220         (WebCore::PlatformComboBox::~PlatformComboBox):
221         (WebCore::PlatformComboBox::setParentWidget):
222         (WebCore::PlatformComboBox::clear):
223         (WebCore::PlatformComboBox::appendItem):
224         (WebCore::PlatformComboBox::appendGroupLabel):
225         (WebCore::PlatformComboBox::appendSeparator):
226         (WebCore::PlatformComboBox::setCurrentItem):
227         (WebCore::PlatformComboBox::sizeHint):
228         (WebCore::PlatformComboBox::frameGeometry):
229         (WebCore::PlatformComboBox::setFrameGeometry):
230         (WebCore::PlatformComboBox::baselinePosition):
231         (WebCore::PlatformComboBox::setFont):
232         (WebCore::PlatformComboBox::focusPolicy):
233         (WebCore::PlatformComboBox::itemSelected):
234         (WebCore::PlatformComboBox::setWritingDirection):
235         (WebCore::PlatformComboBox::populate):
236         (WebCore::PlatformComboBox::populateMenu):
237         * platform/qt/LineEditQt.cpp: Added.
238         (WebCore::PlatformLineEdit::PlatformLineEdit):
239         (WebCore::PlatformLineEdit::~PlatformLineEdit):
240         (WebCore::PlatformLineEdit::setParentWidget):
241         (WebCore::PlatformLineEdit::setColors):
242         (WebCore::PlatformLineEdit::setAlignment):
243         (WebCore::PlatformLineEdit::setCursorPosition):
244         (WebCore::PlatformLineEdit::cursorPosition):
245         (WebCore::PlatformLineEdit::setEdited):
246         (WebCore::PlatformLineEdit::edited):
247         (WebCore::PlatformLineEdit::setFont):
248         (WebCore::PlatformLineEdit::setMaxLength):
249         (WebCore::PlatformLineEdit::maxLength):
250         (WebCore::PlatformLineEdit::setReadOnly):
251         (WebCore::PlatformLineEdit::isReadOnly):
252         (WebCore::PlatformLineEdit::setText):
253         (WebCore::PlatformLineEdit::text):
254         (WebCore::PlatformLineEdit::setWritingDirection):
255         (WebCore::PlatformLineEdit::selectAll):
256         (WebCore::PlatformLineEdit::hasSelectedText):
257         (WebCore::PlatformLineEdit::selectionStart):
258         (WebCore::PlatformLineEdit::selectedText):
259         (WebCore::PlatformLineEdit::setSelection):
260         (WebCore::PlatformLineEdit::sizeForCharacterWidth):
261         (WebCore::PlatformLineEdit::baselinePosition):
262         (WebCore::PlatformLineEdit::focusPolicy):
263         (WebCore::PlatformLineEdit::checksDescendantsForFocus):
264         (WebCore::PlatformLineEdit::setLiveSearch):
265         (WebCore::PlatformLineEdit::setAutoSaveName):
266         (WebCore::PlatformLineEdit::setMaxResults):
267         (WebCore::PlatformLineEdit::setPlaceholderString):
268         (WebCore::PlatformLineEdit::addSearchResult):
269         * platform/qt/ListBoxQt.cpp: Added.
270         (WebCore::ListBox::ListBox):
271         (WebCore::ListBox::~ListBox):
272         (WebCore::ListBox::setParentWidget):
273         (WebCore::ListBox::sizeForNumberOfLines):
274         (WebCore::ListBox::setSelectionMode):
275         (WebCore::ListBox::clear):
276         (WebCore::ListBox::doneAppendingItems):
277         (WebCore::ListBox::setSelected):
278         (WebCore::ListBox::isSelected):
279         (WebCore::ListBox::setEnabled):
280         (WebCore::ListBox::isEnabled):
281         (WebCore::ListBox::setWritingDirection):
282         (WebCore::ListBox::focusPolicy):
283         (WebCore::ListBox::checksDescendantsForFocus):
284         (WebCore::ListBox::clearCachedTextRenderers):
285         (WebCore::ListBox::setFont):
286         (WebCore::ListBox::appendItem):
287         * platform/qt/ScrollViewQt.cpp: Added.
288         (WebCore::ScrollView::ScrollView):
289         (WebCore::ScrollView::~ScrollView):
290         (WebCore::ScrollView::setParentWidget):
291         (WebCore::ScrollView::updateContents):
292         (WebCore::ScrollView::visibleWidth):
293         (WebCore::ScrollView::visibleHeight):
294         (WebCore::ScrollView::visibleContentRect):
295         (WebCore::ScrollView::setContentsPos):
296         (WebCore::ScrollView::resizeContents):
297         (WebCore::ScrollView::contentsX):
298         (WebCore::ScrollView::contentsY):
299         (WebCore::ScrollView::contentsWidth):
300         (WebCore::ScrollView::contentsHeight):
301         (WebCore::ScrollView::viewportToContents):
302         (WebCore::ScrollView::contentsToViewport):
303         (WebCore::ScrollView::scrollOffset):
304         (WebCore::ScrollView::scrollBy):
305         (WebCore::ScrollView::hScrollBarMode):
306         (WebCore::ScrollView::vScrollBarMode):
307         (WebCore::ScrollView::suppressScrollBars):
308         (WebCore::ScrollView::setHScrollBarMode):
309         (WebCore::ScrollView::setVScrollBarMode):
310         (WebCore::ScrollView::setScrollBarsMode):
311         (WebCore::ScrollView::setStaticBackground):
312         (WebCore::ScrollView::addChild):
313         (WebCore::ScrollView::removeChild):
314         (WebCore::ScrollView::scrollPointRecursively):
315         (WebCore::ScrollView::inWindow):
316         * platform/qt/TextEditQt.cpp: Added.
317         (WebCore::PlatformTextEdit::PlatformTextEdit):
318         (WebCore::PlatformTextEdit::~PlatformTextEdit):
319         (WebCore::PlatformTextEdit::setParentWidget):
320         (WebCore::PlatformTextEdit::setColors):
321         (WebCore::PlatformTextEdit::setAlignment):
322         (WebCore::PlatformTextEdit::setLineHeight):
323         (WebCore::PlatformTextEdit::setCursorPosition):
324         (WebCore::PlatformTextEdit::getCursorPosition):
325         (WebCore::PlatformTextEdit::setFont):
326         (WebCore::PlatformTextEdit::setReadOnly):
327         (WebCore::PlatformTextEdit::isReadOnly):
328         (WebCore::PlatformTextEdit::setDisabled):
329         (WebCore::PlatformTextEdit::isDisabled):
330         (WebCore::PlatformTextEdit::hasSelectedText):
331         (WebCore::PlatformTextEdit::setText):
332         (WebCore::PlatformTextEdit::text):
333         (WebCore::PlatformTextEdit::textWithHardLineBreaks):
334         (WebCore::PlatformTextEdit::focusPolicy):
335         (WebCore::PlatformTextEdit::setWordWrap):
336         (WebCore::PlatformTextEdit::wordWrap):
337         (WebCore::PlatformTextEdit::setScrollBarModes):
338         (WebCore::PlatformTextEdit::setWritingDirection):
339         (WebCore::PlatformTextEdit::selectionStart):
340         (WebCore::PlatformTextEdit::selectionEnd):
341         (WebCore::PlatformTextEdit::setSelectionStart):
342         (WebCore::PlatformTextEdit::setSelectionEnd):
343         (WebCore::PlatformTextEdit::selectAll):
344         (WebCore::PlatformTextEdit::setSelectionRange):
345         (WebCore::PlatformTextEdit::sizeWithColumnsAndRows):
346         (WebCore::PlatformTextEdit::checksDescendantsForFocus):
347         * platform/qt/WidgetQt.cpp: Added.
348         (WebCore::WidgetPrivate::WidgetPrivate):
349         (WebCore::WidgetPrivate::~WidgetPrivate):
350         (WebCore::Widget::Widget):
351         (WebCore::Widget::~Widget):
352         (WebCore::Widget::setClient):
353         (WebCore::Widget::client):
354         (WebCore::Widget::frameGeometry):
355         (WebCore::Widget::hasFocus):
356         (WebCore::Widget::setFocus):
357         (WebCore::Widget::clearFocus):
358         (WebCore::Widget::font):
359         (WebCore::Widget::setFont):
360         (WebCore::Widget::setCursor):
361         (WebCore::Widget::show):
362         (WebCore::Widget::hide):
363         (WebCore::Widget::setQWidget):
364         (WebCore::Widget::qwidget):
365         (WebCore::Widget::setParentWidget):
366         (WebCore::Widget::parentWidget):
367         (WebCore::Widget::setFrameGeometry):
368         (WebCore::Widget::mapFromGlobal):
369         (WebCore::Widget::scaleFactor):
370         (WebCore::Widget::lockDrawingFocus):
371         (WebCore::Widget::unlockDrawingFocus):
372         (WebCore::Widget::paint):
373         (WebCore::Widget::enableFlushDrawing):
374         (WebCore::Widget::isEnabled):
375         (WebCore::Widget::setIsSelected):
376         (WebCore::Widget::disableFlushDrawing):
377         (WebCore::Widget::setEnabled):
378         (WebCore::Widget::focusPolicy):
379
380 2006-08-19  Nikolas Zimmermann  <zimmermann@kde.org>
381
382         Reviewed by Eric. Landed by rwlbuis.
383
384         First chunk of the implementation for:
385         http://bugzilla.opendarwin.org/show_bug.cgi?id=10467
386
387         WebKit should have Qt platform support
388
389         * platform/qt/ColorQt.cpp: Added.
390         (WebCore::Color::Color):
391         (WebCore::Color::operator QColor):
392         * platform/qt/FloatPointQt.cpp: Added.
393         (WebCore::FloatPoint::FloatPoint):
394         (WebCore::FloatPoint::operator QPointF):
395         * platform/qt/FloatRectQt.cpp: Added.
396         (WebCore::FloatRect::FloatRect):
397         (WebCore::FloatRect::operator QRectF):
398         * platform/qt/IntPointQt.cpp: Added.
399         (WebCore::IntPoint::IntPoint):
400         (WebCore::IntPoint::operator QPoint):
401         * platform/qt/IntRectQt.cpp: Added.
402         (WebCore::IntRect::IntRect):
403         (WebCore::IntRect::operator QRect):
404         * platform/qt/IntSizeQt.cpp: Added.
405         (WebCore::IntSize::IntSize):
406         (WebCore::IntSize::operator QSize):
407
408  2006-08-18  Nikolas Zimmermann  <zimmermann@kde.org>
409  
410          Reviewed by Eric. Landed by rwlbuis.
411  
412          Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10470
413          The Qt platform needs a KCanvas device.
414  
415          * kcanvas/device/qt/KCanvasClipperQt.cpp: Added.
416          (WebCore::KCanvasClipperQt::applyClip):
417          * kcanvas/device/qt/KCanvasClipperQt.h: Added.
418          (WebCore::KCanvasClipperQt::KCanvasClipperQt):
419          * kcanvas/device/qt/KCanvasPathQt.cpp: Added.
420          (WebCore::KCanvasPathQt::KCanvasPathQt):
421          (WebCore::KCanvasPathQt::~KCanvasPathQt):
422          (WebCore::KCanvasPathQt::isEmpty):
423          (WebCore::KCanvasPathQt::moveTo):
424          (WebCore::KCanvasPathQt::lineTo):
425          (WebCore::KCanvasPathQt::curveTo):
426          (WebCore::KCanvasPathQt::closeSubpath):
427          (WebCore::KCanvasPathQt::boundingBox):
428          (WebCore::KCanvasPathQt::strokeBoundingBox):
429          (WebCore::KCanvasPathQt::strokeContainsPoint):
430          (WebCore::KCanvasPathQt::containsPoint):
431          * kcanvas/device/qt/KCanvasPathQt.h: Added.
432          (WebCore::KCanvasPathQt::qtPath):
433          * kcanvas/device/qt/KRenderingDeviceQt.cpp: Added.
434          (WebCore::KRenderingDeviceContextQt::KRenderingDeviceContextQt):
435          (WebCore::KRenderingDeviceContextQt::~KRenderingDeviceContextQt):
436          (WebCore::KRenderingDeviceContextQt::concatCTM):
437          (WebCore::KRenderingDeviceContextQt::ctm):
438          (WebCore::KRenderingDeviceContextQt::mapFromVisual):
439          (WebCore::KRenderingDeviceContextQt::mapToVisual):
440          (WebCore::KRenderingDeviceContextQt::clearPath):
441          (WebCore::KRenderingDeviceContextQt::addPath):
442          (WebCore::KRenderingDeviceContextQt::createGraphicsContext):
443          (WebCore::KRenderingDeviceContextQt::painter):
444          (WebCore::KRenderingDeviceContextQt::pathBBox):
445          (WebCore::KRenderingDeviceContextQt::setFillRule):
446          (WebCore::KRenderingDeviceContextQt::fillPath):
447          (WebCore::KRenderingDeviceContextQt::strokePath):
448          (WebCore::KRenderingDeviceQt::KRenderingDeviceQt):
449          (WebCore::KRenderingDeviceQt::~KRenderingDeviceQt):
450          (WebCore::KRenderingDeviceQt::popContext):
451          (WebCore::KRenderingDeviceQt::pushContext):
452          (WebCore::KRenderingDeviceQt::qtContext):
453          (WebCore::KRenderingDeviceQt::contextForImage):
454          (WebCore::KRenderingDeviceQt::stringForPath):
455          (WebCore::KRenderingDeviceQt::createResource):
456          (WebCore::KRenderingDeviceQt::createPaintServer):
457          (WebCore::KRenderingDeviceQt::createFilterEffect):
458
459 2006-08-17  Nikolas Zimmermann  <zimmermann@kde.org>
460
461         Reviewed by Eric. Landed by rwlbuis.
462
463         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10466
464         WebKit should have Qt platform support.
465
466         * platform/Color.h:
467         * platform/Cursor.h:
468         (WebCore::Cursor::Cursor):
469         * platform/FloatPoint.h:
470         * platform/FloatRect.h:
471         * platform/GlyphBuffer.h:
472         (WebCore::GlyphBuffer::glyphAt):
473         (WebCore::GlyphBuffer::advanceAt):
474         (WebCore::GlyphBuffer::add):
475         * platform/GraphicsContext.h:
476         * platform/ImageSource.h:
477         * platform/IntPoint.h:
478         * platform/IntRect.h:
479         * platform/IntSize.h:
480         * platform/ListBox.h:
481         * platform/Path.h:
482         * platform/PlatformKeyboardEvent.h:
483         * platform/PlatformMouseEvent.h:
484         * platform/ResourceLoader.h:
485         * platform/ResourceLoaderClient.h:
486         * platform/ResourceLoaderInternal.h:
487         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
488         * platform/ScrollView.h:
489         * platform/Widget.h:
490
491 2006-08-17  Nikolas Zimmermann  <zimmermann@kde.org>
492
493         Reviewed by Eric. Landed by rwlbuis.
494
495         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10465
496         General WebKit Linux build fixes.
497
498         * kcanvas/KCanvasFilters.cpp:
499         (WebCore::operator<<):
500         * kcanvas/RenderSVGImage.cpp:
501         * ksvg2/css/SVGCSSStyleSelector.cpp:
502         * ksvg2/svg/SVGAnimateColorElement.cpp:
503         * ksvg2/svg/SVGMaskElement.cpp:
504         * ksvg2/svg/SVGPatternElement.cpp:
505         * page/Frame.h:
506         * rendering/RenderStyle.h:
507         (WebCore::RenderStyle::deleteBindingURIs):
508         * xml/DOMParser.cpp:
509
510 2006-08-17  Nikolas Zimmermann  <zimmermann@kde.org>
511
512         Reviewed by Eric. Landed by rwlbuis.
513
514         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10464
515         Offer a cmake build system for Qt platform.
516
517         * CMakeLists.txt: Added.
518
519 2006-08-17  David Harrison  <harrison@apple.com>
520
521         Reviewed by John Sullivan.
522
523         <rdar://problem/4671069> REGRESSION: Popup buttons in web pages aren't exposed as AXPopupButtons
524
525         Accessorized RenderMenuList objects.
526         
527         * bridge/mac/WebCoreAXObject.mm:
528         (-[WebCoreAXObject mouseButtonListener]):
529         Trivial formatting.
530         
531         (-[WebCoreAXObject actionElement]):
532         Return the HTMLSelectElement.
533         
534         (-[WebCoreAXObject firstChild]):
535         (-[WebCoreAXObject lastChild]):
536         (-[WebCoreAXObject previousSibling]):
537         (-[WebCoreAXObject nextSibling]):
538         (-[WebCoreAXObject parentObject]):
539         (-[WebCoreAXObject parentObjectUnignored]):
540         (-[WebCoreAXObject isAttachment]):
541         (-[WebCoreAXObject attachmentView]):
542         Trivial formatting.
543
544         (-[WebCoreAXObject role]):
545         Return NSAccessibilityPopUpButtonRole.
546
547         (-[WebCoreAXObject subrole]):
548         Trivial formatting.
549         
550         (-[WebCoreAXObject roleDescription]):
551         Return NSAccessibilityPopUpButtonRole.
552         
553         (-[WebCoreAXObject textUnderElement]):
554         Trivial formatting.
555
556         (-[WebCoreAXObject value]):
557         Return the RenderMenuList::text().
558         
559         (-[WebCoreAXObject position]):
560          Trivial formatting.
561
562         (-[WebCoreAXObject accessibilityIsIgnored]):
563         - Ignore popup menu items because AppKit does.
564         - Remove redundant check for buttonTag (earlier isControl() check suffices).
565         
566         (-[WebCoreAXObject accessibilityAttributeNames]):
567         (-[WebCoreAXObject accessibilityActionNames]):
568         (-[WebCoreAXObject accessibilityAttributeValue:]):
569         Trivial formatting.
570         
571         (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
572         Removed old debugging code that is no longer needed.
573         Trivial formatting.
574         
575         (-[WebCoreAXObject doAXSentenceTextMarkerRangeForTextMarker:]):
576         (-[WebCoreAXObject doAXParagraphTextMarkerRangeForTextMarker:]):
577         (-[WebCoreAXObject removeAXObjectID]):
578         Trivial formatting.
579         
580         * html/HTMLSelectElement.cpp:
581         (WebCore::HTMLSelectElement::accessKeyAction):
582         Call click() instead of focus().
583         
584         * rendering/RenderMenuList.cpp:
585         (WebCore::RenderMenuList::text):
586         Added for easy access to popup's current text.
587         
588         * rendering/RenderMenuList.h:
589         (WebCore::RenderMenuList::isMenuList):
590         * rendering/RenderObject.h:
591         (WebCore::RenderObject::isMenuList):
592         Added so popups can be identified.
593
594 2006-08-17  David Harrison  <harrison@apple.com>
595
596         Reviewed by Maciej.
597
598         <rdar://problem/4527201> REGRESSION: AXTextMarkerRangeForUnorderedTextMarkers returns out of order range
599
600         Test cases added: None.  Manual AX testing is way too awkward, and automated testing
601         is not possible.  See following bug...
602             <rdar://problem/4256882> Need automated testing support for accessibility APIs
603
604         * bridge/mac/AXObjectCacheMac.mm:
605         (WebCore::AXObjectCache::visiblePositionForTextMarker):
606         Validate the marker by comparing the node and offset to those of the resulting VisiblePosition.
607
608 2006-08-17  Nikolas Zimmermann  <zimmermann@kde.org>
609
610         Reviewed by Anders.
611
612         Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10447
613         AffineTransform should be multi-platform compatible
614
615         * platform/AffineTransform.h:
616         * platform/cg/AffineTransformCG.cpp:
617         (WebCore::AffineTransform::m11):
618         (WebCore::AffineTransform::m12):
619         (WebCore::AffineTransform::m21):
620         (WebCore::AffineTransform::m22):
621         (WebCore::AffineTransform::dx):
622         (WebCore::AffineTransform::dy):
623
624 2006-08-16  David Hyatt  <hyatt@apple.com>
625
626         Fix an issue with CSS2 system fonts where they did not respect text
627         zoom.  This was most visible with the new control fonts used for form
628         controls (they stopped swapping between small/mini/regular as you zoomed).
629
630         Reviewed by beth
631
632         * css/cssstyleselector.cpp:
633         (WebCore::CSSStyleSelector::applyProperty):
634
635 2006-08-15  Justin Garcia  <justin.garcia@apple.com>
636
637         Reviewed by thatcher
638         
639         First part of fix for:
640         <rdar://problem/4384589>
641         Mail hung on paste text
642         
643         Fixes:
644         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8592>
645         Extra line left after deleting whitespace:pre text
646         <rdar://problem/4128080> Paste as HTML does not yield equivalent style
647         <rdar://problem/4046469> Box styles on first element aren't copied/pasted
648         Copy/paste of arstechnica.com
649         
650         Here's how we avoid adding redundant style information on paste: insert 
651         the fragment and do a test rendering, save away style information for 
652         every node in the fragment, remove all style information from the fragment, 
653         remove the fragment, insert it into the appropriate place in the document, 
654         then restore only those styles gathered during the test insertion that aren't
655         redundant.  Restoring the styles in this way results in an ApplyStyleCommand 
656         and a layout for nearly every inserted node.  
657         Instead we want to insert the fragment into the document without removing the 
658         style information, then mark style nodes and inline style declarations for 
659         removal if they are redundant, and sweep to remove them.  This means that we 
660         can't rely on ReplacementFragment::wasBlock anymore, because blocks will now 
661         have style spans around them.  This patch removes the use of wasBlock in 
662         ReplaceSelectionCommand.
663         
664         * editing/CompositeEditCommand.cpp:
665         (WebCore::CompositeEditCommand::moveParagraphs): Added code
666         to remove the line placeholder left after a move from preserveNewline text.
667         * editing/DeleteSelectionCommand.cpp:
668         (WebCore::DeleteSelectionCommand::doApply): Don't add a placeholder if 
669         we're deleting a paragraph in preserveNewline text.
670         * editing/JSEditor.cpp: Pass true to prevent nesting.
671         * editing/ReplaceSelectionCommand.cpp: Removed wasBlock and friends.
672         (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
673         (WebCore::ReplacementFragment::saveRenderingInfo): Ditto.
674         (WebCore::RenderingInfo::RenderingInfo): Ditto.
675         (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
676         (WebCore::ReplaceSelectionCommand::shouldMergeStart): Combined the to/from
677         merging rules into one method.
678         (WebCore::ReplaceSelectionCommand::shouldMergeEnd):
679         (WebCore::ReplaceSelectionCommand::shouldMerge):
680         (WebCore::ReplaceSelectionCommand::doApply): 
681         Don't do nesting prevention when pasting into an empty paragraph, this
682         fixes 4046469, the common cause of paste fidelity bugs, but needs
683         to be tweaked a little because this can lead to margin/border build-up
684         on repeated copy/pastes.
685         Don't track startPos in addition to insertionPos.  It was never used.
686         Fixed a bug where a fragment starting with an interchange newline would
687         cause content to be put outside of an editable region when pasting at the 
688         very end of it.
689         Adjust insertionPos before insertion (not during) and do not consult wasBlock
690         to decide whether or not to do so.
691         Changed the way we do the start merge: insert the fragment, then stich 
692         paragraphs together, in the same way that we do the end merge.  This 
693         doesn't require wasBlock and fixes bugs.
694         Replaced some uses of insertionPos with endOfInsertedContent.
695         Fixed a bug in the expansion of the last incoming br (a "collapsed" br
696         is one where !isStartOfParagraph([br,0])).
697         Removed the special case code that did the end merge for the preserveNewline 
698         case, since this patch fixes the moveParagraph bug in the preserveNewline case.
699         Removed some unused variables.
700         (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): An endBR that was 
701         holding a line open should always be displaced by inserted content, unless 
702         the inserted content ends with a br.
703         (WebCore::ReplaceSelectionCommand::updateNodesInserted):
704         * editing/ReplaceSelectionCommand.h:
705         (WebCore::RenderingInfo::style):
706         * editing/markup.cpp:
707         (WebCore::createMarkup): Only add mail blockquotes and list/table/pre when
708         annotate is true (when we're creating markup for the pasteboard).
709
710 2006-08-16  John Sullivan  <sullivan@apple.com>
711
712         Reviewed by Brady Eidson
713         
714         - fixed <rdar://problem/4637156> underlines appearing in white selection text
715
716         * rendering/InlineFlowBox.cpp:
717         (WebCore::InlineFlowBox::paintDecorations):
718         bail out if phase is PaintPhaseSelection and forceWhiteText is true
719
720 2006-08-16  Brady Eidson  <beidson@apple.com>
721
722         Reviewed by John
723
724         Updated the DB version number and added a helpful comment explaining its meaning
725
726         * loader/icon/IconDatabase.cpp:
727
728 2006-08-16  Brady Eidson  <beidson@apple.com>
729
730         Reviewed by Maciej
731
732         Major refactoring of new iconDB:
733         -Instead of private browsing being handled by in-memory tables, it's now handled
734          by a separate in-memory database with the same table names.  This allows us to 
735          re-use the same SQL on either the main or private-browsing database
736         -So it follows, I broke out much of the SQL queries into seperate methods suffixed with
737          "Query" that take a database as the method's argument so the same language can run on
738          both private and main tables
739         -Now that we have two DBs, moved the retain/release count to the m_mainDB
740         -While I was at it, updated the schema to combine the Icon and IconResource table - cuts 
741          down on some high-usage, low value queries which were too expensive
742         -Ditched the _url -> url convention for escaping urls for SQL.  Now its url and escapedURL
743         -Pruned tons of unused methods from previous revisions
744
745      * bridge/mac/WebCoreIconDatabaseBridge.h: Removed isIconExpiredForPageURL as it was never used 
746         * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
747         * loader/icon/IconDatabase.cpp:
748         (WebCore::IconDatabase::IconDatabase): Updated initializer list
749         (WebCore::IconDatabase::open): Sets up both databases
750         (WebCore::IconDatabase::close): Closes both databases
751         (WebCore::IconDatabase::isEmpty): Queries both databases for at least 1 record
752         (WebCore::IconDatabase::isValidDatabase): Reflect the updated schema
753         (WebCore::IconDatabase::clearDatabaseTables): Ditto - and takes DB as a parameter
754         (WebCore::IconDatabase::createDatabaseTables): Ditto
755         (WebCore::IconDatabase::imageDataForIconURL): style cleanup, and using a query-function
756         (WebCore::IconDatabase::setPrivateBrowsingEnabled): Resets private DB instead of private tables
757         (WebCore::IconDatabase::isIconExpiredForIconURL): Uses a query-function on each DB
758         (WebCore::IconDatabase::iconURLForPageURL): Uses a query-function on each DB
759         (WebCore::IconDatabase::retainIconForPageURL): Retain count DB changes 
760         (WebCore::IconDatabase::releaseIconForPageURL): Ditto
761         (WebCore::IconDatabase::isIconURLRetained): Determine if it's time to prune a released icon yet
762         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase): Alot simpler
763         (WebCore::IconDatabase::setIconDataForIconURL): Style cleanup
764         (WebCore::IconDatabase::setHaveNoIconForIconURL): Ditto
765         (WebCore::IconDatabase::setIconURLForPageURL): Ditto - and using a query-function
766         (WebCore::IconDatabase::establishIconIDForIconURL): Style cleanup
767         (WebCore::IconDatabase::pruneUnreferencedIcons): DB name change
768         (WebCore::IconDatabase::pruneUnretainedIcons): Ditto
769         (WebCore::IconDatabase::hasIconForIconURL): Simpler, using a query-function
770         (WebCore::IconDatabase::~IconDatabase):
771         (WebCore::pageURLTableIsEmptyQuery): Self-explanatory SQL query
772         (WebCore::imageDataForIconURLQuery): Self-explanatory SQL query
773         (WebCore::timeStampForIconURLQuery): Self-explanatory SQL query
774         (WebCore::iconURLForPageURLQuery): Self-explanatory SQL query
775         (WebCore::forgetPageURLQuery): Self-explanatory SQL query
776         (WebCore::setIconIDForPageURLQuery): Self-explanatory SQL query
777         (WebCore::getIconIDForIconURLQuery): Self-explanatory SQL query
778         (WebCore::addIconForIconURLQuery): Self-explanatory SQL query
779         (WebCore::hasIconForIconURLQuery): Self-explanatory SQL query
780      * loader/icon/IconDatabase.h: Some new/changed methods, pruned methods, and new comments
781         (WebCore::IconDatabase::isOpen):  Changed our meaning of "isOpen" to reflect the 2 databases
782
783 2006-08-15  Jonas Witt <jonas.witt@gmail.com>
784
785         Reviewed by Darin.
786
787         - added ObjC wrappers for the KeyboardEvent and WheelEvent initializers
788           http://bugzilla.opendarwin.org/show_bug.cgi?id=9736
789
790         * bindings/objc/DOMEvents.mm:
791         (-[DOMKeyboardEvent initKeyboardEvent::::::::::]):
792         * bindings/objc/DOMEventsNonstandard.mm:
793         (-[DOMWheelEvent initWheelEvent:::::::::::]):
794         * bindings/objc/DOMPrivate.h:
795
796         - added an initializer for the WheelEvent
797
798         * dom/WheelEvent.cpp:
799         (WebCore::WheelEvent::initWheelEvent):
800         * dom/WheelEvent.h:
801
802 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
803
804         Reviewed by Tim H.
805
806         Build fix:  DWARF and -gfull are incompatible with symbol separation.
807
808         * WebCore.xcodeproj/project.pbxproj:
809
810 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
811
812         Reviewed by Tim H.
813
814         http://bugzilla.opendarwin.org/show_bug.cgi?id=10394
815         Bug 10394: WebKit Release and Production configurations should enable dead code stripping
816
817         * WebCore.xcodeproj/project.pbxproj:
818
819 2006-08-15  Geoffrey Garen  <ggaren@apple.com>
820
821         Reviewed by Darin.
822         
823         - This patch reworks a previous fix for <rdar://problem/3524912> repro 
824         crash in KHTMLParser::parseToken, due to parser's current element being 
825         destroyed (www.gnnetcom.dk), along with subsequent adjustments to fix
826         leaks.
827         
828         The previous solutions caused a ~2% performance regression on iBench HTML,
829         due to RefPtr churn. The optimizations here gain back that ~2% plus ~1% more,
830         for a total win of ~3% vs current TOT.
831         
832         We can merge this fix to the branch to fix <rdar://problem/4661982> 
833         (crash in KHTMLParser::popBlock).
834         
835         The solution here is:
836         (1) Don't let the parser ref document nodes -- that causes leaks.
837         (2) Handle ref/deref manually, to avoid RefPtr churn. Specifically, when 
838         moving a node between stacks or to/from 'current', rather than deref'ing
839         and then ref'ing again, simply move the node, along with its refcount, to
840         its new location, and overwrite its old location.
841  
842         * WebCore.xcodeproj/project.pbxproj:
843         * html/HTMLParser.cpp:
844         (WebCore::HTMLStackElem::HTMLStackElem):
845         (WebCore::HTMLStackElem::derefNode):
846         (WebCore::HTMLParser::HTMLParser):
847         (WebCore::HTMLParser::setCurrent):
848         (WebCore::HTMLParser::insertNode):
849         (WebCore::HTMLParser::popNestedHeaderTag):
850         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
851         (WebCore::HTMLParser::reopenResidualStyleTags):
852         (WebCore::HTMLParser::pushBlock):
853         (WebCore::HTMLParser::popBlock):
854         (WebCore::HTMLParser::popOneBlockCommon):
855         (WebCore::HTMLParser::popOneBlock):
856         (WebCore::HTMLParser::moveOneBlockToStack):
857         * html/HTMLParser.h:
858
859 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
860
861         Reviewed by Tim H.
862
863         http://bugzilla.opendarwin.org/show_bug.cgi?id=10384
864         Bug 10384: Switch to DWARF for Release configuration
865
866         * WebCore.xcodeproj/project.pbxproj:
867
868 2006-08-15  Mark Rowe  <opendarwin.org@bdash.net.nz>
869
870         Reviewed by Hyatt.
871         Tweaked and landed by Darin.
872
873         http://bugzilla.opendarwin.org/show_bug.cgi?id=10399
874         Bug 10399: RenderTextArea is unused
875
876         * WebCore.vcproj/WebCore/WebCore.vcproj:
877         * WebCore.xcodeproj/project.pbxproj:
878         * WebCoreSources.bkl:
879         Removed RenderTextArea source files.
880
881         * html/HTMLTextAreaElement.cpp: Removed include of RenderTextArea.h.
882         * html/HTMLTextAreaElement.h: Removed forward declaration of RenderTextArea.
883
884         * platform/mac/WidgetMac.mm: (WebCore::Widget::paint): Updated a comment.
885
886         * platform/TextBox.h: Removed.
887         * platform/mac/TextBoxMac.mm: Removed.
888         * platform/mac/WebCoreTextArea.h: Removed.
889         * platform/mac/WebCoreTextArea.mm: Removed.
890         * rendering/RenderTextArea.cpp: Removed.
891         * rendering/RenderTextArea.h: Removed.
892
893 2006-08-15  Brady Eidson  <beidson@apple.com>
894
895         Reviewed by THE OTHER Maciej...
896
897         Two small fixes -
898         1) Renamed retain/release methods to add PageUrl in - we're being consistent and clear in the WebCore API
899         2) Fixed a bug where a null SiteIcon reference would be added into the pageURLToSiteIcon map causing a
900         null dereference later
901
902         * bridge/mac/WebCoreIconDatabaseBridge.mm:
903         (-[WebCoreIconDatabaseBridge retainIconForURL:]):  Changed IconDatabase method name
904         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):  ditto
905         * loader/icon/IconDatabase.cpp:
906         (WebCore::IconDatabase::retainIconForPageURL):  Name change
907         (WebCore::IconDatabase::releaseIconForPageURL):  ditto
908         (WebCore::IconDatabase::setIconURLForPageURL):  Added the null site-icon check when changing a PageURL's iconURL
909         * loader/icon/IconDatabase.h:  Some renames
910
911 2006-08-14  Eric Seidel  <eric@eseidel.com>
912
913         Reviewed by mjs.
914
915         <mask>, <marker>, <pattern> inside <defs> do not work
916         http://bugzilla.opendarwin.org/show_bug.cgi?id=6548
917
918         * ksvg2/svg/SVGDefsElement.cpp:
919         (WebCore::SVGDefsElement::SVGDefsElement): moved to .cpp file
920         (WebCore::SVGDefsElement::isValid): moved to .cpp file
921         (WebCore::SVGDefsElement::rendererIsNeeded): Added.
922         (WebCore::SVGDefsElement::createRenderer): Added.
923         * ksvg2/svg/SVGDefsElement.h:
924         * ksvg2/svg/SVGGElement.cpp:
925         (WebCore::SVGGElement::SVGGElement): adjusted spacing
926         (WebCore::SVGGElement::parseMappedAttribute): adjusted spacing
927         (WebCore::SVGDummyElement::SVGDummyElement): adjusted spacing
928
929 2006-08-14  Eric Seidel  <eric@eseidel.com>
930
931         Reviewed by darin and mjs.
932         
933         Add better SVGLoad event support.
934         http://bugzilla.opendarwin.org/show_bug.cgi?id=6010
935         There will still need to be additional support added for <link> and <script> elements.
936         Not all of the error -> loaded -> error transition cases work yet.
937
938         * dom/EventTargetNode.cpp:
939         (WebCore::EventTargetNode::dispatchGenericEvent):
940         * html/HTMLImageLoader.cpp:
941         (WebCore::HTMLImageLoader::dispatchLoadEvent):
942         * html/HTMLImageLoader.h:
943         (WebCore::HTMLImageLoader::haveFiredLoadEvent):
944         (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
945         * ksvg2/misc/SVGImageLoader.cpp:
946         (WebCore::SVGImageLoader::SVGImageLoader):
947         (WebCore::SVGImageLoader::dispatchLoadEvent):
948         * ksvg2/misc/SVGImageLoader.h:
949         * ksvg2/svg/SVGAElement.cpp:
950         (WebCore::SVGAElement::parseMappedAttribute):
951         * ksvg2/svg/SVGAnimatedBoolean.h:
952         * ksvg2/svg/SVGElement.cpp:
953         (WebCore::SVGElement::SVGElement):
954         (WebCore::SVGElement::parseMappedAttribute):
955         (WebCore::SVGElement::haveLoadedRequiredResources):
956         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
957         (WebCore::SVGElement::closeRenderer):
958         * ksvg2/svg/SVGElement.h:
959         (WebCore::SVGElement::rendererIsNeeded):
960         (WebCore::svg_dynamic_cast):
961         * ksvg2/svg/SVGExternalResourcesRequired.h:
962         * ksvg2/svg/SVGImageElement.cpp:
963         (SVGImageElement::SVGImageElement):
964         (SVGImageElement::haveLoadedRequiredResources):
965         * ksvg2/svg/SVGImageElement.h:
966         * ksvg2/svg/SVGSVGElement.cpp:
967         (WebCore::SVGSVGElement::parseMappedAttribute):
968         * ksvg2/svg/SVGScriptElement.cpp:
969         (WebCore::SVGScriptElement::SVGScriptElement):
970         (WebCore::SVGScriptElement::parseMappedAttribute):
971         (WebCore::SVGScriptElement::executeScript):
972         * xml/xmlhttprequest.cpp:
973         (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
974
975 2006-08-14  Anders Carlsson  <acarlsson@apple.com>
976
977         Reviewed by Maciej.
978
979         http://bugzilla.opendarwin.org/show_bug.cgi?id=10393
980         Autogenerate NodeIterator and TreeWalker.
981         
982         * DerivedSources.make:
983         * WebCore.xcodeproj/project.pbxproj:
984         Add new files.
985         
986         * bindings/js/JSNodeIteratorCustom.cpp: Added.
987         (WebCore::JSNodeIterator::mark):
988         * bindings/js/JSTreeWalkerCustom.cpp: Added.
989         (WebCore::JSTreeWalker::mark):
990         
991         * bindings/js/kjs_traversal.cpp:
992         * bindings/js/kjs_traversal.h:
993         Remove implementations of DOMNodeIterator and DOMTreeWalker.
994
995         * bindings/scripts/CodeGeneratorJS.pm:
996         Add "CustomMarkFunction" attribute for classes where mark() needs to be overridden.
997         
998         * bindings/objc/DOM.mm:
999         (-[DOMNodeIterator detach]):
1000         * dom/NodeIterator.cpp:
1001         (WebCore::NodeIterator::detach):
1002         * dom/NodeIterator.h:
1003         Get rid of exception in detach, it isn't used at all and this function can't throw an exception according to the spec.
1004         * dom/NodeIterator.idl: Added.
1005         * dom/TreeWalker.idl: Added.
1006
1007 2006-08-14  Brady Eidson  <beidson@apple.com>
1008
1009         Reviewed by John
1010
1011         The changes are plentiful, but small, mostly to improve performance
1012         1) Add a bool flag to SiteIcon to stop it from querying the database over and over
1013         2) Added a pageURL->iconURL hashmap to cache database results, as an optimization
1014         3) Fix a bug in setIconURLForPageURL code where the pageURL would still point to an old icon
1015         4) Added isIconURLRetained() to optimize the retain count check
1016         5) Prune old, unused code
1017
1018         * loader/icon/IconDatabase.cpp:
1019         (WebCore::IconDatabase::imageDataForIconID): Removed unused code
1020         (WebCore::IconDatabase::imageDataForIconURL): Removed unused code
1021         (WebCore::IconDatabase::imageDataForPageURL): Removed unused code
1022         (WebCore::IconDatabase::isIconExpiredForIconURL): Removed LOG msg
1023         (WebCore::IconDatabase::isIconExpiredForPageURL): Removed LOG msg
1024         (WebCore::IconDatabase::iconURLForPageURL): Added a hashmap cache to avoid common queries
1025         (WebCore::IconDatabase::releaseIconForURL): Changed to is isRetained() instead of retainCount()
1026         (WebCore::IconDatabase::isIconURLRetained): Added - we don't care about the actual retain count
1027           for an icon so much as whether or not it is retained
1028         (WebCore::IconDatabase::setIconURLForPageURL): If the new and old iconURLs are the same, skip the
1029           SQLite code
1030         * loader/icon/IconDatabase.h:  Added new methods/variables
1031         * loader/icon/SiteIcon.cpp:
1032         (SiteIcon::SiteIcon): Added a flag so it only queries the database for icon data once
1033         (SiteIcon::getImage): Ditto
1034
1035 2006-08-14  David Hyatt  <hyatt@apple.com>
1036
1037         Fix for bug 10385, add more support for crappy pseudo-XML-in-HTML.
1038
1039         Reviewed by ggaren
1040
1041         Added fast/parser/bad-xml-slash.html
1042
1043         * html/HTMLTokenizer.cpp:
1044         (WebCore::HTMLTokenizer::parseTag):
1045
1046 2006-08-14  Darin Adler  <darin@apple.com>
1047
1048         Reviewed by John Sullivan.
1049
1050         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10204
1051           REGRESSION: title tag parsing problem breaks Travelocity and Google Analytics pages
1052
1053         Test: fast/parser/title-error-test.html
1054
1055         * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): Fixed an error
1056         handling case that was skipping until a </style> tag in code that was shared
1057         between both <title> and <style>. Also rearranged the code a tiny bit.
1058
1059 2006-08-14  Darin Adler  <darin@apple.com>
1060
1061         Reviewed by Hyatt.
1062
1063         - fixed some storage leaks
1064           (part of http://bugzilla.opendarwin.org/show_bug.cgi?id=10259)
1065
1066         * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start):
1067         Rearrange code so that "delete this" is called any time the function returns
1068         false -- ownership was inconsistent before.
1069
1070         * rendering/RenderContainer.cpp: (WebCore::RenderContainer::removeChildNode):
1071         Call deleteLineBoxWrapper even when documentBeingDestroyed() is true, because
1072         some of what it does has to be done during destruction. A little awkward since
1073         I preserved the order of operations. Perhaps we could structure this better later.
1074
1075 2006-08-14  David Harrison  <harrison@apple.com>
1076
1077         Reviewed by John Sullivan and Geoff Garen.
1078
1079         <rdar://problem/3854950> AX Seed: Blackboard Learning Systems - frame names need to be put in AXDescription AXAttribute
1080
1081         Test cases added: None.  Manual AX testing is way too awkward, and automated testing
1082         is not possible.  See following bug...
1083             <rdar://problem/4256882> Need automated testing support for accessibility APIs
1084
1085         * bridge/mac/WebCoreAXObject.mm:
1086         (-[WebCoreAXObject accessibilityDescription]):
1087         For a web area, return the name of the owning frame or iframe.
1088         
1089         (-[WebCoreAXObject accessibilityAttributeNames]):
1090         Advertize NSAccessibilityDescriptionAttribute.
1091         
1092         (-[WebCoreAXObject rendererForView:]):
1093         Clean up some old naming.
1094
1095 2006-08-11  Anders Carlsson  <acarlsson@apple.com>
1096
1097         Reviewed by Darin.
1098
1099         http://bugzilla.opendarwin.org/show_bug.cgi?id=10353
1100         XMLSerializer and DOMParser should have real implementations
1101         
1102         Make real implementation files for DOMParser and XMLSerializer and wrap them
1103         using our bindings generation.
1104         
1105         * DerivedSources.make:
1106         * WebCore.xcodeproj/project.pbxproj:
1107         * bindings/js/JSDOMParser.cpp: Removed.
1108         * bindings/js/JSDOMParser.h: Removed.
1109         * bindings/js/JSXMLSerializer.cpp: Removed.
1110         * bindings/js/JSXMLSerializer.h: Removed.
1111         * bindings/js/kjs_window.cpp:
1112         (KJS::Window::getValueProperty):
1113         * bindings/js/kjs_window.h:
1114         (KJS::Window::):
1115         * page/DOMWindow.idl:
1116         * xml/DOMParser.cpp: Added.
1117         (WebCore::DOMParser::parseFromString):
1118         * xml/DOMParser.h: Added.
1119         * xml/DOMParser.idl: Added.
1120         * xml/XMLSerializer.cpp: Added.
1121         (WebCore::XMLSerializer::serializeToString):
1122         * xml/XMLSerializer.h: Added.
1123         * xml/XMLSerializer.idl: Added.
1124
1125 2006-08-14  Maciej Stachowiak  <mjs@apple.com>
1126
1127         Reviewed by Brady.
1128
1129         - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
1130
1131         * WebCore.exp: export new functions
1132         * platform/mac/WebCoreSystemInterface.h: Added CFReadStream related functions
1133         * platform/mac/WebCoreSystemInterface.mm: ditto
1134
1135 2006-08-13  Maks Orlovich  <maksim@kde.org>
1136
1137         Reviewed (and tweaked a little) by Maciej.
1138         
1139         - shrank the size of JSObject by 8 bytes and made the corresponding reduction to the cell size, resulting
1140         in a 1.2% speed improvement on JS iBench (and probably overall memory savings).
1141
1142         The WebCore part of this is to expect only FunctionImp to have a scope, not all JSObjects.
1143         
1144         * bindings/js/kjs_events.cpp:
1145         (KJS::JSLazyEventListener::parseCode):
1146
1147 2006-08-12  Eric Seidel  <eric@eseidel.com>
1148
1149         Reviewed by hyatt and mjs.
1150
1151         Fix two missing null checks causing layout test crashes.
1152
1153         * css/cssstyleselector.cpp:
1154         (WebCore::CSSStyleSelector::adjustRenderStyle): check e for null (null for pseudo styles)
1155         * kcanvas/RenderSVGContainer.cpp:
1156         (WebCore::RenderSVGContainer::requiresLayer): check parent()->element() for null
1157
1158
1159 2006-08-11  Eric Seidel  <eric@eseidel.com>
1160
1161         Reviewed by andersca.
1162
1163         The outermost <svg> element needs to clip itself
1164         http://bugzilla.opendarwin.org/show_bug.cgi?id=5358
1165
1166         * css/cssstyleselector.cpp:
1167         (WebCore::CSSStyleSelector::adjustRenderStyle): adjust for SVG overflow rules
1168         * kcanvas/RenderSVGContainer.cpp:
1169         (WebCore::RenderSVGContainer::requiresLayer): only require layers for absolute/relative positioning of outermost SVG
1170         (WebCore::RenderSVGContainer::paint):
1171         * kcanvas/device/KRenderingDevice.h:
1172         * kcanvas/device/quartz/KRenderingDeviceQuartz.h: remove dead methods
1173         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: remove dead methods
1174         (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
1175         * ksvg2/svg/SVGPaint.cpp: spacing changes
1176         (WebCore::SVGPaint::SVGPaint): spacing cleanup
1177         * ksvg2/svg/SVGSVGElement.cpp:
1178         (WebCore::SVGSVGElement::parseMappedAttribute): spacing cleanup
1179         * platform/GraphicsContext.h: Added concatCTM
1180         * platform/cg/GraphicsContextCG.cpp:
1181         (WebCore::GraphicsContext::concatCTM): Added.
1182
1183 2006-08-11  Brady Eidson  <beidson@apple.com>
1184
1185         Reviewed by Maciej
1186
1187         Renamed a method/parameter for clarity and consistency, as well as some style
1188         cleanups and removing some ridiculously verbose log messages.
1189         Also added an _isEmpty method to the database and bridge for WebKit's use.
1190         Finally, added a central way for both WebKit and WebCore to get the icon database filename
1191
1192         * bridge/mac/WebCoreIconDatabaseBridge.h:  Added _isEmpty and defaultDatabaseFilename
1193         * bridge/mac/WebCoreIconDatabaseBridge.mm:  Removed an unnecessary semicolon off most of these methods
1194         (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
1195         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
1196         (-[WebCoreIconDatabaseBridge isOpen]):
1197         (-[WebCoreIconDatabaseBridge _isEmpty]):  Added
1198         (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
1199         (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
1200         (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
1201         (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
1202         (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
1203         (-[WebCoreIconDatabaseBridge retainIconForURL:]):
1204         (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
1205         (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
1206         (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
1207         (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
1208         (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
1209         (-[WebCoreIconDatabaseBridge defaultDatabaseFilename]):  Added
1210
1211         * loader/icon/IconDatabase.cpp:
1212         (WebCore::IconDatabase::defaultDatabaseFilename):  Added
1213         (WebCore::IconDatabase::open):  
1214         (WebCore::IconDatabase::isEmpty):  Added
1215         (WebCore::IconDatabase::retainIconForURL):  Removed log message
1216         (WebCore::IconDatabase::releaseIconForURL):  Removed log message
1217         * loader/icon/IconDatabase.h: 
1218
1219 2006-08-11  David Hyatt  <hyatt@apple.com>
1220
1221         Eliminate RenderImageButton.
1222
1223         Reviewed by darin
1224
1225         * WebCore.xcodeproj/project.pbxproj:
1226         * bridge/mac/WebCoreAXObject.mm:
1227         (-[WebCoreAXObject isImageButton]):
1228         * html/HTMLInputElement.cpp:
1229         (WebCore::HTMLInputElement::createRenderer):
1230         * rendering/RenderImage.h:
1231         (WebCore::RenderImage::isImage):
1232
1233 2006-08-11  Adele Peterson  <adele@apple.com>
1234
1235         Reviewed by Brady.
1236
1237         - Fix for <rdar://problem/4656274> 
1238         REGRESSION: option elements are selected when added regardless of "selected" property
1239
1240         Test: fast/forms/option-constructor-selected.html
1241
1242         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setOption):
1243         When adding an option element, check that the option element is selected before calling setSelectedIndex.
1244
1245 2006-08-11  David Hyatt  <hyatt@apple.com>
1246
1247         Fix for bug 10349, make sure to call setChanged when an anchor changes
1248         from not being a link to being a link (and vice versa).
1249
1250         Test is in fast/dynamic/link-href-change.html
1251
1252         Reviewed by darin
1253
1254         * html/HTMLAnchorElement.cpp:
1255         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1256         (WebCore::HTMLAnchorElement::parseMappedAttribute):
1257         * html/HTMLAnchorElement.h:
1258         * html/HTMLAreaElement.cpp:
1259         (WebCore::HTMLAreaElement::parseMappedAttribute):
1260
1261 2006-08-09  Rob Buis  <buis@kde.org>
1262
1263         Reviewed by Darin.
1264
1265         Revert an over-optimization step that messed up the HashSet lookup.
1266
1267         * dom/DOMImplementation.cpp:
1268
1269 2006-08-12  Oliver  <ojh16@student.canterbury.ac.nz>
1270
1271         Rubber stamped by tim
1272
1273         Removed commented out code
1274
1275         * kcanvas/RenderSVGImage.cpp:
1276         (WebCore::RenderSVGImage::paint):
1277
1278 2006-08-12  Oliver  <ojh16@student.canterbury.ac.nz>
1279
1280         Reviewed by geoff
1281
1282         Fixed regression in SVG image layout
1283         (see bug #10346)
1284
1285         * kcanvas/RenderSVGImage.cpp:
1286         (WebCore::RenderSVGImage::paint):
1287
1288 2006-08-10  Anders Carlsson  <acarlsson@apple.com>
1289
1290         Rubber-stamped by Maciej.
1291
1292         Move xpath to xml.
1293         
1294         * DerivedSources.make:
1295         * WebCore.vcproj/WebCore/WebCore.vcproj:
1296         * WebCore.xcodeproj/project.pbxproj:
1297         * xpath/XPathEvaluator.cpp: Removed.
1298         * xpath/XPathEvaluator.h: Removed.
1299         * xpath/XPathEvaluator.idl: Removed.
1300         * xpath/XPathExpression.cpp: Removed.
1301         * xpath/XPathExpression.h: Removed.
1302         * xpath/XPathExpression.idl: Removed.
1303         * xpath/XPathNSResolver.cpp: Removed.
1304         * xpath/XPathNSResolver.h: Removed.
1305         * xpath/XPathNSResolver.idl: Removed.
1306         * xpath/XPathNamespace.cpp: Removed.
1307         * xpath/XPathNamespace.h: Removed.
1308         * xpath/XPathResult.cpp: Removed.
1309         * xpath/XPathResult.h: Removed.
1310         * xpath/XPathResult.idl: Removed.
1311         * xpath/impl/XPathExpressionNode.cpp: Removed.
1312         * xpath/impl/XPathExpressionNode.h: Removed.
1313         * xpath/impl/XPathFunctions.cpp: Removed.
1314         * xpath/impl/XPathFunctions.h: Removed.
1315         * xpath/impl/XPathGrammar.y: Removed.
1316         * xpath/impl/XPathParser.cpp: Removed.
1317         * xpath/impl/XPathParser.h: Removed.
1318         * xpath/impl/XPathPath.cpp: Removed.
1319         * xpath/impl/XPathPath.h: Removed.
1320         * xpath/impl/XPathPredicate.cpp: Removed.
1321         * xpath/impl/XPathPredicate.h: Removed.
1322         * xpath/impl/XPathStep.cpp: Removed.
1323         * xpath/impl/XPathStep.h: Removed.
1324         * xpath/impl/XPathUtil.cpp: Removed.
1325         * xpath/impl/XPathUtil.h: Removed.
1326         * xpath/impl/XPathValue.cpp: Removed.
1327         * xpath/impl/XPathValue.h: Removed.
1328         * xpath/impl/XPathVariableReference.cpp: Removed.
1329         * xpath/impl/XPathVariableReference.h: Removed.
1330
1331 2006-08-10  David Harrison  <harrison@apple.com>
1332
1333         Reviewed by John Sullivan.
1334
1335         <rdar://problem/4600112> REGRESSION: VO no longer able to review text within an edit field on web pages
1336
1337         Test cases added: None.  Manual AX testing is way too awkward, and automated testing
1338         is not possible.  See following bug...
1339             <rdar://problem/4256882> Need automated testing support for accessibility APIs
1340
1341         * bridge/mac/WebCoreAXObject.mm:
1342         (-[WebCoreAXObject value]):
1343         Add handling for text input fields.
1344
1345 2006-08-09  Graham Dennis  <graham.dennis@gmail.com>
1346
1347         Reviewed by Darin.
1348
1349         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10247
1350         REGRESSION: Unable to build webkit without SVG/XPATH
1351
1352         * bindings/js/kjs_binding.cpp:
1353         (KJS::setDOMException):
1354         * bindings/js/kjs_dom.cpp:
1355         (KJS::toJS):
1356         * bindings/js/kjs_html.cpp:
1357         (KJS::HTMLElementFunction::callAsFunction):
1358         * bindings/js/kjs_proxy.cpp:
1359         * bindings/js/kjs_proxy.h:
1360         * bindings/objc/DOMInternal.h:
1361         * bindings/objc/DOMInternal.mm:
1362         (raiseDOMException):
1363         * bindings/objc/DOMXPath.mm:
1364         * bindings/objc/DOMXPathInternal.h:
1365         * bindings/scripts/CodeGeneratorJS.pm:
1366         * bridge/mac/WebCoreFrameBridge.mm:
1367         (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
1368         * css/CSSGrammar.y:
1369         * css/CSSStyleDeclaration.cpp:
1370         (WebCore::propertyID):
1371         * css/cssparser.cpp:
1372         (WebCore::CSSParser::parseValue):
1373         * css/cssparser.h:
1374         * css/cssstyleselector.cpp:
1375         (WebCore::CSSStyleSelector::loadDefaultStyle):
1376         (WebCore::CSSStyleSelector::applyProperty):
1377         * css/cssstyleselector.h:
1378         * dom/Document.cpp:
1379         (WebCore::Document::Document):
1380         (WebCore::Document::~Document):
1381         (WebCore::Document::createElementNS):
1382         (WebCore::Document::implicitClose):
1383         (WebCore::Document::recalcStyleSelector):
1384         (WebCore::Document::createEvent):
1385         * dom/Document.h:
1386         * dom/Document.idl:
1387         * dom/Node.cpp:
1388         (WebCore::Node::createRendererIfNeeded):
1389         * dom/Node.h:
1390         * dom/XMLTokenizer.cpp:
1391         (WebCore::XMLTokenizer::endElementNs):
1392         (WebCore::XMLTokenizer::insertErrorMessageBlock):
1393         * html/HTMLEmbedElement.cpp:
1394         * html/HTMLEmbedElement.h:
1395         * html/HTMLObjectElement.cpp:
1396         * html/HTMLObjectElement.h:
1397         * kcanvas/KCanvasCreator.cpp:
1398         * kcanvas/KCanvasCreator.h:
1399         * kcanvas/KCanvasFilters.cpp:
1400         * kcanvas/KCanvasFilters.h:
1401         * kcanvas/KCanvasImage.h:
1402         * kcanvas/KCanvasMatrix.cpp:
1403         * kcanvas/KCanvasMatrix.h:
1404         * kcanvas/KCanvasPath.cpp:
1405         * kcanvas/KCanvasPath.h:
1406         * kcanvas/KCanvasResourceListener.h:
1407         * kcanvas/KCanvasResources.cpp:
1408         * kcanvas/KCanvasResources.h:
1409         * kcanvas/KCanvasTreeDebug.cpp:
1410         * kcanvas/RenderForeignObject.cpp:
1411         * kcanvas/RenderForeignObject.h:
1412         * kcanvas/RenderPath.cpp:
1413         * kcanvas/RenderPath.h:
1414         * kcanvas/RenderSVGContainer.cpp:
1415         * kcanvas/RenderSVGContainer.h:
1416         * kcanvas/RenderSVGImage.cpp:
1417         * kcanvas/RenderSVGImage.h:
1418         * kcanvas/RenderSVGText.cpp:
1419         * kcanvas/RenderSVGText.h:
1420         * kcanvas/device/KRenderingDevice.cpp:
1421         * kcanvas/device/KRenderingDevice.h:
1422         * kcanvas/device/KRenderingFillPainter.cpp:
1423         * kcanvas/device/KRenderingFillPainter.h:
1424         * kcanvas/device/KRenderingPaintServer.h:
1425         * kcanvas/device/KRenderingPaintServerGradient.cpp:
1426         * kcanvas/device/KRenderingPaintServerGradient.h:
1427         * kcanvas/device/KRenderingPaintServerPattern.cpp:
1428         * kcanvas/device/KRenderingPaintServerPattern.h:
1429         * kcanvas/device/KRenderingPaintServerSolid.cpp:
1430         * kcanvas/device/KRenderingPaintServerSolid.h:
1431         * kcanvas/device/KRenderingStrokePainter.cpp:
1432         * kcanvas/device/KRenderingStrokePainter.h:
1433         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
1434         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1435         * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1436         * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
1437         * kcanvas/device/quartz/KCanvasPathQuartz.mm:
1438         * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
1439         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1440         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
1441         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1442         * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1443         * kcanvas/device/quartz/QuartzSupport.h:
1444         * kcanvas/device/quartz/QuartzSupport.mm:
1445         * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
1446         * ksvg2/bindings/js/JSSVGElementWrapperFactory.h:
1447         * ksvg2/css/SVGCSSParser.cpp:
1448         * ksvg2/css/SVGCSSStyleSelector.cpp:
1449         * ksvg2/css/SVGRenderStyle.cpp:
1450         * ksvg2/css/SVGRenderStyle.h:
1451         * ksvg2/css/SVGRenderStyleDefs.cpp:
1452         * ksvg2/css/SVGRenderStyleDefs.h:
1453         * ksvg2/ecma/GlobalObject.cpp:
1454         * ksvg2/ecma/GlobalObject.h:
1455         * ksvg2/events/JSSVGLazyEventListener.cpp:
1456         * ksvg2/events/JSSVGLazyEventListener.h:
1457         * ksvg2/events/SVGZoomEvent.cpp:
1458         * ksvg2/events/SVGZoomEvent.h:
1459         * ksvg2/ksvg.h:
1460         * ksvg2/misc/KCanvasRenderingStyle.cpp:
1461         * ksvg2/misc/KCanvasRenderingStyle.h:
1462         * ksvg2/misc/KSVGTimeScheduler.cpp:
1463         * ksvg2/misc/KSVGTimeScheduler.h:
1464         * ksvg2/misc/SVGDocumentExtensions.cpp:
1465         * ksvg2/misc/SVGDocumentExtensions.h:
1466         * ksvg2/misc/SVGImageLoader.cpp:
1467         * ksvg2/misc/SVGImageLoader.h:
1468         * ksvg2/svg/DOMList.h:
1469         * ksvg2/svg/SVGAElement.cpp:
1470         * ksvg2/svg/SVGAElement.h:
1471         * ksvg2/svg/SVGAngle.cpp:
1472         * ksvg2/svg/SVGAngle.h:
1473         * ksvg2/svg/SVGAnimateColorElement.cpp:
1474         * ksvg2/svg/SVGAnimateColorElement.h:
1475         * ksvg2/svg/SVGAnimateElement.cpp:
1476         * ksvg2/svg/SVGAnimateElement.h:
1477         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1478         * ksvg2/svg/SVGAnimateTransformElement.h:
1479         * ksvg2/svg/SVGAnimatedAngle.cpp:
1480         * ksvg2/svg/SVGAnimatedAngle.h:
1481         * ksvg2/svg/SVGAnimatedBoolean.cpp:
1482         * ksvg2/svg/SVGAnimatedBoolean.h:
1483         * ksvg2/svg/SVGAnimatedColor.cpp:
1484         * ksvg2/svg/SVGAnimatedColor.h:
1485         * ksvg2/svg/SVGAnimatedEnumeration.cpp:
1486         * ksvg2/svg/SVGAnimatedEnumeration.h:
1487         * ksvg2/svg/SVGAnimatedInteger.cpp:
1488         * ksvg2/svg/SVGAnimatedInteger.h:
1489         * ksvg2/svg/SVGAnimatedLength.cpp:
1490         * ksvg2/svg/SVGAnimatedLength.h:
1491         * ksvg2/svg/SVGAnimatedLengthList.cpp:
1492         * ksvg2/svg/SVGAnimatedLengthList.h:
1493         * ksvg2/svg/SVGAnimatedNumber.cpp:
1494         * ksvg2/svg/SVGAnimatedNumber.h:
1495         * ksvg2/svg/SVGAnimatedNumberList.cpp:
1496         * ksvg2/svg/SVGAnimatedNumberList.h:
1497         * ksvg2/svg/SVGAnimatedPathData.cpp:
1498         * ksvg2/svg/SVGAnimatedPathData.h:
1499         * ksvg2/svg/SVGAnimatedPoints.cpp:
1500         * ksvg2/svg/SVGAnimatedPoints.h:
1501         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.cpp:
1502         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
1503         * ksvg2/svg/SVGAnimatedRect.cpp:
1504         * ksvg2/svg/SVGAnimatedRect.h:
1505         * ksvg2/svg/SVGAnimatedString.cpp:
1506         * ksvg2/svg/SVGAnimatedString.h:
1507         * ksvg2/svg/SVGAnimatedTemplate.h:
1508         * ksvg2/svg/SVGAnimatedTransformList.cpp:
1509         * ksvg2/svg/SVGAnimatedTransformList.h:
1510         * ksvg2/svg/SVGAnimationElement.cpp:
1511         * ksvg2/svg/SVGAnimationElement.h:
1512         * ksvg2/svg/SVGCircleElement.cpp:
1513         * ksvg2/svg/SVGCircleElement.h:
1514         * ksvg2/svg/SVGClipPathElement.cpp:
1515         * ksvg2/svg/SVGClipPathElement.h:
1516         * ksvg2/svg/SVGColor.cpp:
1517         * ksvg2/svg/SVGColor.h:
1518         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1519         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1520         * ksvg2/svg/SVGCursorElement.cpp:
1521         * ksvg2/svg/SVGCursorElement.h:
1522         * ksvg2/svg/SVGDOMImplementation.cpp:
1523         * ksvg2/svg/SVGDOMImplementation.h:
1524         * ksvg2/svg/SVGDefsElement.cpp:
1525         * ksvg2/svg/SVGDefsElement.h:
1526         * ksvg2/svg/SVGDescElement.cpp:
1527         * ksvg2/svg/SVGDescElement.h:
1528         * ksvg2/svg/SVGDocument.cpp:
1529         * ksvg2/svg/SVGDocument.h:
1530         * ksvg2/svg/SVGElement.cpp:
1531         * ksvg2/svg/SVGElement.h:
1532         * ksvg2/svg/SVGElementInstance.cpp:
1533         * ksvg2/svg/SVGElementInstance.h:
1534         * ksvg2/svg/SVGElementInstanceList.cpp:
1535         * ksvg2/svg/SVGElementInstanceList.h:
1536         * ksvg2/svg/SVGEllipseElement.cpp:
1537         * ksvg2/svg/SVGEllipseElement.h:
1538         * ksvg2/svg/SVGExternalResourcesRequired.cpp:
1539         * ksvg2/svg/SVGExternalResourcesRequired.h:
1540         * ksvg2/svg/SVGFEBlendElement.cpp:
1541         * ksvg2/svg/SVGFEBlendElement.h:
1542         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1543         * ksvg2/svg/SVGFEColorMatrixElement.h:
1544         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1545         * ksvg2/svg/SVGFEComponentTransferElement.h:
1546         * ksvg2/svg/SVGFECompositeElement.cpp:
1547         * ksvg2/svg/SVGFECompositeElement.h:
1548         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1549         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1550         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1551         * ksvg2/svg/SVGFEDisplacementMapElement.h:
1552         * ksvg2/svg/SVGFEDistantLightElement.cpp:
1553         * ksvg2/svg/SVGFEDistantLightElement.h:
1554         * ksvg2/svg/SVGFEFloodElement.cpp:
1555         * ksvg2/svg/SVGFEFloodElement.h:
1556         * ksvg2/svg/SVGFEFuncAElement.cpp:
1557         * ksvg2/svg/SVGFEFuncAElement.h:
1558         * ksvg2/svg/SVGFEFuncBElement.cpp:
1559         * ksvg2/svg/SVGFEFuncBElement.h:
1560         * ksvg2/svg/SVGFEFuncGElement.cpp:
1561         * ksvg2/svg/SVGFEFuncGElement.h:
1562         * ksvg2/svg/SVGFEFuncRElement.cpp:
1563         * ksvg2/svg/SVGFEFuncRElement.h:
1564         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1565         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1566         * ksvg2/svg/SVGFEImageElement.cpp:
1567         * ksvg2/svg/SVGFEImageElement.h:
1568         * ksvg2/svg/SVGFELightElement.cpp:
1569         * ksvg2/svg/SVGFELightElement.h:
1570         * ksvg2/svg/SVGFEMergeElement.cpp:
1571         * ksvg2/svg/SVGFEMergeElement.h:
1572         * ksvg2/svg/SVGFEMergeNodeElement.cpp:
1573         * ksvg2/svg/SVGFEMergeNodeElement.h:
1574         * ksvg2/svg/SVGFEOffsetElement.cpp:
1575         * ksvg2/svg/SVGFEOffsetElement.h:
1576         * ksvg2/svg/SVGFEPointLightElement.cpp:
1577         * ksvg2/svg/SVGFEPointLightElement.h:
1578         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1579         * ksvg2/svg/SVGFESpecularLightingElement.h:
1580         * ksvg2/svg/SVGFESpotLightElement.cpp:
1581         * ksvg2/svg/SVGFESpotLightElement.h:
1582         * ksvg2/svg/SVGFETileElement.cpp:
1583         * ksvg2/svg/SVGFETileElement.h:
1584         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1585         * ksvg2/svg/SVGFETurbulenceElement.h:
1586         * ksvg2/svg/SVGFilterElement.cpp:
1587         * ksvg2/svg/SVGFilterElement.h:
1588         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
1589         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1590         * ksvg2/svg/SVGFitToViewBox.cpp:
1591         * ksvg2/svg/SVGFitToViewBox.h:
1592         * ksvg2/svg/SVGForeignObjectElement.cpp:
1593         * ksvg2/svg/SVGForeignObjectElement.h:
1594         * ksvg2/svg/SVGGElement.cpp:
1595         * ksvg2/svg/SVGGElement.h:
1596         * ksvg2/svg/SVGGradientElement.cpp:
1597         * ksvg2/svg/SVGGradientElement.h:
1598         * ksvg2/svg/SVGHelper.cpp:
1599         * ksvg2/svg/SVGHelper.h:
1600         * ksvg2/svg/SVGImageElement.cpp:
1601         * ksvg2/svg/SVGImageElement.h:
1602         * ksvg2/svg/SVGLangSpace.cpp:
1603         * ksvg2/svg/SVGLangSpace.h:
1604         * ksvg2/svg/SVGLength.cpp:
1605         * ksvg2/svg/SVGLength.h:
1606         * ksvg2/svg/SVGLengthList.cpp:
1607         * ksvg2/svg/SVGLengthList.h:
1608         * ksvg2/svg/SVGLineElement.cpp:
1609         * ksvg2/svg/SVGLineElement.h:
1610         * ksvg2/svg/SVGLinearGradientElement.cpp:
1611         * ksvg2/svg/SVGLinearGradientElement.h:
1612         * ksvg2/svg/SVGList.h:
1613         * ksvg2/svg/SVGLocatable.cpp:
1614         * ksvg2/svg/SVGLocatable.h:
1615         * ksvg2/svg/SVGMarkerElement.cpp:
1616         * ksvg2/svg/SVGMarkerElement.h:
1617         * ksvg2/svg/SVGMaskElement.cpp:
1618         * ksvg2/svg/SVGMaskElement.h:
1619         * ksvg2/svg/SVGMatrix.cpp:
1620         * ksvg2/svg/SVGMatrix.h:
1621         * ksvg2/svg/SVGNumber.cpp:
1622         * ksvg2/svg/SVGNumber.h:
1623         * ksvg2/svg/SVGNumberList.cpp:
1624         * ksvg2/svg/SVGNumberList.h:
1625         * ksvg2/svg/SVGPaint.cpp:
1626         * ksvg2/svg/SVGPaint.h:
1627         * ksvg2/svg/SVGPathElement.cpp:
1628         * ksvg2/svg/SVGPathElement.h:
1629         * ksvg2/svg/SVGPathSeg.cpp:
1630         * ksvg2/svg/SVGPathSeg.h:
1631         * ksvg2/svg/SVGPathSegArc.cpp:
1632         * ksvg2/svg/SVGPathSegArc.h:
1633         * ksvg2/svg/SVGPathSegClosePath.cpp:
1634         * ksvg2/svg/SVGPathSegClosePath.h:
1635         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
1636         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
1637         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
1638         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
1639         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
1640         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
1641         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
1642         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
1643         * ksvg2/svg/SVGPathSegLineto.cpp:
1644         * ksvg2/svg/SVGPathSegLineto.h:
1645         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
1646         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
1647         * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
1648         * ksvg2/svg/SVGPathSegLinetoVertical.h:
1649         * ksvg2/svg/SVGPathSegList.cpp:
1650         * ksvg2/svg/SVGPathSegList.h:
1651         * ksvg2/svg/SVGPathSegMoveto.cpp:
1652         * ksvg2/svg/SVGPathSegMoveto.h:
1653         * ksvg2/svg/SVGPatternElement.cpp:
1654         * ksvg2/svg/SVGPatternElement.h:
1655         * ksvg2/svg/SVGPoint.cpp:
1656         * ksvg2/svg/SVGPoint.h:
1657         * ksvg2/svg/SVGPointList.cpp:
1658         * ksvg2/svg/SVGPointList.h:
1659         * ksvg2/svg/SVGPolyElement.cpp:
1660         * ksvg2/svg/SVGPolyElement.h:
1661         * ksvg2/svg/SVGPolygonElement.cpp:
1662         * ksvg2/svg/SVGPolygonElement.h:
1663         * ksvg2/svg/SVGPolylineElement.cpp:
1664         * ksvg2/svg/SVGPolylineElement.h:
1665         * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1666         * ksvg2/svg/SVGPreserveAspectRatio.h:
1667         * ksvg2/svg/SVGRadialGradientElement.cpp:
1668         * ksvg2/svg/SVGRadialGradientElement.h:
1669         * ksvg2/svg/SVGRect.cpp:
1670         * ksvg2/svg/SVGRect.h:
1671         * ksvg2/svg/SVGRectElement.cpp:
1672         * ksvg2/svg/SVGRectElement.h:
1673         * ksvg2/svg/SVGSVGElement.cpp:
1674         * ksvg2/svg/SVGSVGElement.h:
1675         * ksvg2/svg/SVGScriptElement.cpp:
1676         * ksvg2/svg/SVGScriptElement.h:
1677         * ksvg2/svg/SVGSetElement.cpp:
1678         * ksvg2/svg/SVGSetElement.h:
1679         * ksvg2/svg/SVGStopElement.cpp:
1680         * ksvg2/svg/SVGStopElement.h:
1681         * ksvg2/svg/SVGStringList.cpp:
1682         * ksvg2/svg/SVGStringList.h:
1683         * ksvg2/svg/SVGStylable.cpp:
1684         * ksvg2/svg/SVGStylable.h:
1685         * ksvg2/svg/SVGStyleElement.cpp:
1686         * ksvg2/svg/SVGStyleElement.h:
1687         * ksvg2/svg/SVGStyledElement.cpp:
1688         * ksvg2/svg/SVGStyledElement.h:
1689         * ksvg2/svg/SVGStyledLocatableElement.cpp:
1690         * ksvg2/svg/SVGStyledLocatableElement.h:
1691         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1692         * ksvg2/svg/SVGStyledTransformableElement.h:
1693         * ksvg2/svg/SVGSwitchElement.cpp:
1694         * ksvg2/svg/SVGSwitchElement.h:
1695         * ksvg2/svg/SVGSymbolElement.cpp:
1696         * ksvg2/svg/SVGSymbolElement.h:
1697         * ksvg2/svg/SVGTRefElement.cpp:
1698         * ksvg2/svg/SVGTRefElement.h:
1699         * ksvg2/svg/SVGTSpanElement.cpp:
1700         * ksvg2/svg/SVGTSpanElement.h:
1701         * ksvg2/svg/SVGTests.cpp:
1702         * ksvg2/svg/SVGTests.h:
1703         * ksvg2/svg/SVGTextContentElement.cpp:
1704         * ksvg2/svg/SVGTextContentElement.h:
1705         * ksvg2/svg/SVGTextElement.cpp:
1706         * ksvg2/svg/SVGTextElement.h:
1707         * ksvg2/svg/SVGTextPositioningElement.cpp:
1708         * ksvg2/svg/SVGTextPositioningElement.h:
1709         * ksvg2/svg/SVGTitleElement.cpp:
1710         * ksvg2/svg/SVGTitleElement.h:
1711         * ksvg2/svg/SVGTransform.cpp:
1712         * ksvg2/svg/SVGTransform.h:
1713         * ksvg2/svg/SVGTransformList.cpp:
1714         * ksvg2/svg/SVGTransformList.h:
1715         * ksvg2/svg/SVGTransformable.cpp:
1716         * ksvg2/svg/SVGTransformable.h:
1717         * ksvg2/svg/SVGURIReference.cpp:
1718         * ksvg2/svg/SVGURIReference.h:
1719         * ksvg2/svg/SVGUseElement.cpp:
1720         * ksvg2/svg/SVGUseElement.h:
1721         * ksvg2/svg/SVGViewElement.cpp:
1722         * ksvg2/svg/SVGViewElement.h:
1723         * ksvg2/svg/SVGZoomAndPan.cpp:
1724         * ksvg2/svg/SVGZoomAndPan.h:
1725         * ksvg2/svg/svgpathparser.cpp:
1726         * ksvg2/svg/svgpathparser.h:
1727         * page/DOMWindow.idl:
1728         * page/Frame.cpp:
1729         (WebCore::Frame::Frame):
1730         (WebCore::Frame::begin):
1731         (WebCore::Frame::pauseTimeouts):
1732         (WebCore::Frame::resumeTimeouts):
1733         * platform/GraphicsContext.h:
1734         * platform/cg/GraphicsContextCG.cpp:
1735         * rendering/RenderLayer.cpp:
1736         (WebCore::RenderLayer::isTransparent):
1737         * rendering/RenderObject.cpp:
1738         (WebCore::RenderObject::containingBlock):
1739         * rendering/RenderObject.h:
1740         * rendering/RenderStyle.cpp:
1741         (WebCore::RenderStyle::RenderStyle):
1742         (WebCore::RenderStyle::inheritFrom):
1743         (WebCore::RenderStyle::operator==):
1744         (WebCore::RenderStyle::inheritedNotEqual):
1745         (WebCore::RenderStyle::diff):
1746         * rendering/RenderStyle.h:
1747         * rendering/RenderTreeAsText.cpp:
1748         (WebCore::write):
1749         (WebCore::externalRepresentation):
1750         * xpath/XPathEvaluator.cpp:
1751         * xpath/XPathEvaluator.h:
1752         * xpath/XPathExpression.cpp:
1753         * xpath/XPathExpression.h:
1754         * xpath/XPathNSResolver.cpp:
1755         * xpath/XPathNSResolver.h:
1756         * xpath/XPathNamespace.cpp:
1757         * xpath/XPathNamespace.h:
1758         * xpath/XPathResult.cpp:
1759         * xpath/XPathResult.h:
1760         * xpath/impl/XPathExpressionNode.cpp:
1761         * xpath/impl/XPathExpressionNode.h:
1762         * xpath/impl/XPathFunctions.cpp:
1763         * xpath/impl/XPathFunctions.h:
1764         * xpath/impl/XPathGrammar.y:
1765         * xpath/impl/XPathParser.cpp:
1766         * xpath/impl/XPathParser.h:
1767         * xpath/impl/XPathPath.cpp:
1768         * xpath/impl/XPathPath.h:
1769         * xpath/impl/XPathPredicate.cpp:
1770         * xpath/impl/XPathPredicate.h:
1771         * xpath/impl/XPathStep.cpp:
1772         * xpath/impl/XPathStep.h:
1773         * xpath/impl/XPathUtil.cpp:
1774         * xpath/impl/XPathUtil.h:
1775         * xpath/impl/XPathValue.cpp:
1776         * xpath/impl/XPathValue.h:
1777         * xpath/impl/XPathVariableReference.cpp:
1778         * xpath/impl/XPathVariableReference.h:
1779
1780         Change all #if SVG_SUPPORT to #ifdef SVG_SUPPORT and
1781         #if XPATH_SUPPORT to #ifdef XPATH_SUPPORT
1782         (except for one #if !SVG_SUPPORT to a #ifndef SVG_SUPPORT
1783         in RenderTreeAsText.cpp)
1784
1785 2006-08-08  Rob Buis  <buis@kde.org>
1786
1787         Reviewed by Darin.
1788
1789         http://bugzilla.opendarwin.org/show_bug.cgi?id=10230
1790         SVGDOMImplementation should die (and be rolled into DOMImplementation)
1791
1792         Delete SVGDOMImplementation and references to it. The
1793         svg specific functionality is now in DOMImplementation.
1794
1795         * WebCore.xcodeproj/project.pbxproj:
1796         * dom/DOMImplementation.cpp:
1797         (WebCore::svgFeatureSet):
1798         (WebCore::DOMImplementation::hasFeature):
1799         (WebCore::DOMImplementation::createDocument):
1800         (WebCore::DOMImplementation::createSVGDocument):
1801         * dom/DOMImplementation.h:
1802         * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Removed.
1803         * ksvg2/misc/KSVGTimeScheduler.cpp:
1804         * ksvg2/svg/SVGColor.cpp:
1805         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1806         * ksvg2/svg/SVGDocument.cpp:
1807         (WebCore::SVGDocument::SVGDocument):
1808         * ksvg2/svg/SVGDocument.h:
1809         * ksvg2/svg/SVGElement.cpp:
1810         (WebCore::SVGElement::isSupported):
1811         * ksvg2/svg/SVGFEBlendElement.cpp:
1812         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1813         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1814         * ksvg2/svg/SVGFECompositeElement.cpp:
1815         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1816         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1817         * ksvg2/svg/SVGFEFloodElement.cpp:
1818         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1819         * ksvg2/svg/SVGFELightElement.cpp:
1820         * ksvg2/svg/SVGFEMergeElement.cpp:
1821         * ksvg2/svg/SVGFEOffsetElement.cpp:
1822         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1823         * ksvg2/svg/SVGFETileElement.cpp:
1824         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1825         * ksvg2/svg/SVGGradientElement.cpp:
1826         * ksvg2/svg/SVGPatternElement.cpp:
1827         * ksvg2/svg/SVGPolyElement.cpp:
1828         * ksvg2/svg/SVGStopElement.cpp:
1829         * ksvg2/svg/SVGStyledElement.cpp:
1830         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1831         * ksvg2/svg/SVGTests.cpp:
1832         (WebCore::SVGTests::isValid):
1833         * ksvg2/svg/SVGTransformable.cpp:
1834         * page/Frame.cpp:
1835         (WebCore::Frame::begin):
1836
1837 2006-08-07  Brady Eidson  <beidson@apple.com>
1838
1839         Reviewed by Anders and John
1840
1841         Icons can now refresh when new data is sent from WebKit, both on disk and in memory
1842
1843         * bridge/mac/WebCoreIconDatabaseBridge.h:
1844         * bridge/mac/WebCoreIconDatabaseBridge.mm:
1845         (WebCore::IconDatabase::loadIconFromURL):  Allows WebCore/Kit to kick off a load
1846         outside of any greater context
1847         (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
1848         (-[WebCoreIconDatabaseBridge isIconExpiredForPageURL:]): Allows WebKit
1849         to get whether or not an icon has expired
1850
1851         * loader/icon/IconDatabase.cpp:
1852         (WebCore::IconDatabase::recreateDatabase): Changed database schema slightly
1853         (WebCore::IconDatabase::createPrivateTables): Changed database schema slightly
1854         (WebCore::IconDatabase::iconForPageURL): 
1855         (WebCore::IconDatabase::isIconExpiredForIconURL): Get if an icon has expired
1856         (WebCore::IconDatabase::isIconExpiredForPageURL): Get if an icon has expired
1857         (WebCore::IconDatabase::setIconDataForIconURL): Force a refresh of the in memory
1858         image when new icon data is loaded
1859         (WebCore::IconDatabase::setIconURLForPageURL): added a check for null iconID
1860
1861         * loader/icon/IconDatabase.h: added/changed some methods
1862         * loader/icon/SiteIcon.cpp:
1863         (SiteIcon::getImage): simplified/removed debugging code
1864         (SiteIcon::manuallySetImageData): allow the image data to be changed when new icon
1865         data is loaded
1866
1867 2006-08-05  Darin Adler  <darin@apple.com>
1868
1869         Reviewed by Eric Seidel.
1870
1871         - fix a storage leak
1872
1873         * rendering/RenderView.cpp: (WebCore::RenderView::setSelection):
1874         Delete the values if we are going to exit without using the maps.
1875         Otherwise all the values leak.
1876
1877 2006-08-05  Darin Adler  <darin@apple.com>
1878
1879         Reviewed by Hyatt.
1880
1881         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10213
1882           REGRESSION: Crash in WebCore::RenderLayer::isTransparent involving <iframe> and <select>
1883
1884         Test: fast/frames/iframe-option-crash.xhtml
1885
1886         * rendering/RenderView.cpp: (WebCore::RenderView::paintBoxDecorations):
1887         Check for a nil renderer.
1888
1889 2006-08-04  David Hyatt  <hyatt@apple.com>
1890
1891         Fix for Radar bug #4644045, regression where dragging selection no longer
1892         works for floats contained inside layers.  I added an optimization to
1893         refine dirty rect checking for layers, and it incorrectly excluded floats
1894         from the paint bounds since PaintPhaseSelection was not considered when
1895         analyzing the floatRect().
1896
1897         Reviewed by beth
1898
1899         * rendering/RenderBlock.cpp:
1900         (WebCore::RenderBlock::paint):
1901
1902 2006-08-04  David Hyatt  <hyatt@apple.com>
1903
1904         Fix remove() so that it is equivalent to calling removeChild on the
1905         parent.  This involved moving three operations that remove did.
1906
1907         (1) Move the accessibility object cache removal into the destroy methods,
1908         since this really should just happen when a render object is going away.
1909
1910         (2) removeFromObjectLists shifted into removeChild, which means it will
1911         now be called more often (this is a correct change).  Note that there is
1912         also now a new guard on removeFromObjectLists so that it won't do any
1913         work unless the document is not being destroyed.
1914
1915         (3) The big one.  deleteLineBoxWrapper was not getting called to clean up
1916         the line box tree.  This moved right into RenderContainer's removeChildNode so
1917         that it is now done even in the lowest level RenderContainer removal primitive.
1918
1919         Reviewed by beth
1920
1921         * rendering/RenderContainer.cpp:
1922         (WebCore::RenderContainer::removeChildNode):
1923         (WebCore::RenderContainer::removeChild):
1924         * rendering/RenderObject.cpp:
1925         (WebCore::RenderObject::removeFromObjectLists):
1926         (WebCore::RenderObject::destroy):
1927         * rendering/RenderObject.h:
1928         (WebCore::RenderObject::remove):
1929         * rendering/RenderWidget.cpp:
1930         (WebCore::RenderWidget::destroy):
1931
1932 2006-08-04  David Hyatt  <hyatt@apple.com>
1933
1934         Back out the fix for list marker crashes.  The actual bug here is that
1935         there is a confusing mismatch between remove() and removeChild() in the
1936         render tree.  remove() does a little bit of extra work that removeChild
1937         should be doing instead (so that remove() can just be a shorthand for
1938         removeChild).
1939
1940         This conservative fix does not solve the remove/removeChild mismatch
1941         but instead just changes the list marker updating code to use remove
1942         instead.
1943
1944         Reviewed by beth
1945
1946         Test Case: fast/lists/dynamic-marker-crash.html
1947
1948         * rendering/ListMarkerBox.cpp:
1949         * rendering/ListMarkerBox.h:
1950         * rendering/RenderListItem.cpp:
1951         (WebCore::RenderListItem::updateMarkerLocation):
1952
1953 2006-08-04  Sam Weinig  <sam.weinig@gmail.com>
1954
1955         Reviewed by Darin.
1956
1957         - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10192
1958           Make WebCore (and friends) compile with -Wshorten-64-to-32
1959
1960           * Adds -Wshorten-64-to-32 flag to Xcode project.
1961           * Adds 'f' to float literals where expecting a float.
1962           * Use cosf() instead of cos() when assigning to a float.
1963
1964         * WebCore.xcodeproj/project.pbxproj:
1965         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m:
1966         (+[WKDiffuseLightingFilter initialize]):
1967         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m:
1968         (-[WKDiscreteTransferFilter outputImage]):
1969         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m:
1970         (+[WKDisplacementMapFilter initialize]):
1971         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m:
1972         (+[WKSpecularLightingFilter initialize]):
1973         * kcanvas/device/quartz/filters/WKSpotLightFilter.m:
1974         (-[WKSpotLightFilter outputImage]):
1975         * kcanvas/device/quartz/filters/WKTableTransferFilter.m:
1976         (-[WKTableTransferFilter outputImage]):
1977
1978 2006-08-03  David Hyatt  <hyatt@apple.com>
1979
1980         Fix for bug 10229, don't bother trying to clear when no floats are
1981         present.  I suspect there's still a bug in the math that follows, but
1982         this fix is safer in that it just does the obvious thing (and doesn't
1983         compute any clearance if no floats are even around).
1984
1985         Reviewed by maciej
1986
1987         * ChangeLog:
1988         * rendering/RenderBlock.cpp:
1989         (WebCore::RenderBlock::getClearDelta):
1990
1991 2006-08-03  Justin Garcia  <justin.garcia@apple.com>
1992
1993         Reviewed by harrison
1994         
1995         <rdar://problem/4641033/4515463/4052426/4046570/4053718/4053724/4060115/4062858>
1996         Copy/Paste fidelity was bad.
1997
1998         * editing/ApplyStyleCommand.cpp:
1999         (WebCore::ApplyStyleCommand::applyInlineStyle):
2000         * editing/markup.cpp:
2001         (WebCore::startMarkup): We were not adding non-inheritable styles
2002         to the markup for an element unless they were in the elements inline
2003         style declaration.
2004
2005 2006-08-03  Sam Weinig  <sam.weinig@gmail.com>
2006
2007         Reviewed by Darin.
2008
2009         - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
2010           Make WebCore compile with -Wundef
2011
2012           * Adds -Wundef flag to Xcode project
2013           * Converts #ifs to #ifdef and #ifndefs where needed.
2014           * Replaces #ifdef WIN32 with #if PLATFORM(WIN_OS) or PLATFORM(WIN)
2015             (and in one instance in config.h with #if !COMPILER(MSVC))
2016           * Added #define YYMAXDEPTH 10000 in XPathGrammar.y and CSSGrammar.y
2017             to fix a warning from within Bison.
2018           * Cleaned up style a little in surrounding code.
2019
2020         * WebCore.xcodeproj/project.pbxproj:
2021         * bridge/mac/WebCoreAXObject.mm:
2022         (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
2023         * config.h:
2024         * css/CSSGrammar.y:
2025         * css/MediaFeatureNames.cpp:
2026         * css/MediaFeatureNames.h:
2027         * css/cssparser.cpp:
2028         * dom/ContainerNode.cpp:
2029         (WebCore::ContainerNode::setActive):
2030         * dom/Element.cpp:
2031         (WebCore::Element::attach):
2032         * dom/Element.h:
2033         * dom/EventNames.cpp:
2034         * dom/EventNames.h:
2035         * dom/NamedAttrMap.h:
2036         * dom/Position.cpp:
2037         * dom/QualifiedName.cpp:
2038         * dom/QualifiedName.h:
2039         * dom/Range.h:
2040         * dom/XMLTokenizer.cpp:
2041         (WebCore::XMLTokenizer::error):
2042         * html/HTMLTokenizer.cpp:
2043         (WebCore::HTMLTokenizer::scriptHandler):
2044         (WebCore::HTMLTokenizer::scriptExecution):
2045         (WebCore::HTMLTokenizer::parseTag):
2046         (WebCore::HTMLTokenizer::continueProcessing):
2047         (WebCore::HTMLTokenizer::write):
2048         (WebCore::HTMLTokenizer::timerFired):
2049         (WebCore::HTMLTokenizer::notifyFinished):
2050         * kcanvas/device/quartz/KCanvasFilterQuartz.h:
2051         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2052         * ksvg2/css/SVGRenderStyle.h:
2053         * ksvg2/css/SVGRenderStyleDefs.h:
2054         * ksvg2/scripts/make_names.pl:
2055         * loader/CachedResource.h:
2056         * loader/LoaderFunctions.h:
2057         * loader/loader.h:
2058         * page/Frame.cpp:
2059         * page/FrameTree.cpp:
2060         * page/FrameView.cpp:
2061         (WebCore::FrameView::clear):
2062         (WebCore::FrameView::layout):
2063         (WebCore::FrameView::layoutTimerFired):
2064         (WebCore::FrameView::scheduleRelayout):
2065         (WebCore::FrameView::unscheduleRelayout):
2066         * platform/AtomicString.cpp:
2067         * platform/AtomicString.h:
2068         * platform/Cursor.h:
2069         * platform/DeprecatedArray.h:
2070         * platform/DeprecatedString.cpp:
2071         (WebCore::allocateHandle):
2072         (WebCore::initializeHandleNodeBlock):
2073         (WebCore::freeHandle):
2074         * platform/FloatPoint.h:
2075         * platform/FloatRect.h:
2076         * platform/FloatSize.h:
2077         * platform/GraphicsContext.h:
2078         * platform/Image.h:
2079         * platform/IntPoint.h:
2080         * platform/IntRect.h:
2081         (WebCore::IntRect::inflateX):
2082         (WebCore::IntRect::inflateY):
2083         * platform/IntSize.h:
2084         * platform/PlatformKeyboardEvent.h:
2085         * platform/PlatformMouseEvent.h:
2086         * platform/PlatformString.h:
2087         * platform/ResourceLoader.h:
2088         * platform/ResourceLoaderInternal.h:
2089         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2090         * platform/ScrollView.h:
2091         * platform/StaticConstructors.h:
2092         * platform/StreamingTextDecoderICU.cpp:
2093         (WebCore::StreamingTextDecoderICU::convert):
2094         * platform/StringImpl.h:
2095         * platform/Widget.h:
2096         * platform/mac/BlockExceptions.mm:
2097         * platform/mac/ColorMac.mm:
2098         (+[WebCoreControlTintObserver WebCore]):
2099         * platform/mac/FloatPointMac.mm:
2100         * platform/mac/FloatRectMac.mm:
2101         * platform/mac/FloatSizeMac.mm:
2102         * platform/mac/FontMac.mm:
2103         * platform/mac/GraphicsContextMac.mm:
2104         (WebCore::GraphicsContext::drawFocusRing):
2105         * platform/mac/IntPointMac.mm:
2106         * platform/mac/IntRectMac.mm:
2107         * platform/mac/IntSizeMac.mm:
2108         * platform/mac/WebCoreSystemInterface.h:
2109         * rendering/RenderBlock.h:
2110         * rendering/RenderTableCell.h:
2111         * rendering/bidi.cpp:
2112         (WebCore::appendRun):
2113         (WebCore::RenderBlock::layoutInlineChildren):
2114         * xml/XSLTProcessor.cpp:
2115         (WebCore::parseErrorFunc):
2116         * xpath/impl/XPathGrammar.y:
2117
2118 2006-08-03  Adam Roben  <aroben@apple.com>
2119
2120         Reviewed by Maciej and Beth.
2121
2122         Fix use-after-dispose heap corruption bug.
2123
2124         * rendering/ListMarkerBox.cpp:
2125         (WebCore::ListMarkerBox::destroy): Only call removeChild if we're not
2126         destroying the document
2127
2128 2006-08-03  Adam Roben  <aroben@apple.com>
2129
2130         Reviewed by Anders.
2131
2132         - Fixed Windows build.
2133
2134         * platform/Color.cpp:
2135         (WebCore::makeRGBAFromHSLA): Whitespace change
2136         * platform/win/TemporaryLinkStubs.cpp: Add new method stubs
2137         (PlatformScrollBar::PlatformScrollBar):
2138         (PlatformScrollBar::~PlatformScrollBar):
2139         (PlatformScrollBar::width):
2140         (PlatformScrollBar::height):
2141         (PlatformScrollBar::setEnabled):
2142         (PlatformScrollBar::paint):
2143         (PlatformScrollBar::setScrollBarValue):
2144         (PlatformScrollBar::setKnobProportion):
2145         (PlatformScrollBar::setRect):
2146         (ScrollBar::ScrollBar):
2147         (ScrollBar::scroll):
2148         (ScrollBar::setValue):
2149
2150 2006-08-02  Justin Garcia  <justin.garcia@apple.com>
2151
2152         Reviewed by mjs
2153         
2154         <http://bugzilla.opendarwin.org/show_bug.cgi?id=10225>
2155         GMail Editor: Change Hilite Color doesn't work
2156
2157         * editing/JSEditor.cpp: Added support for execCommand("HiliteColor", ...).
2158         It's what GMail uses to implement text hiliting.  It's just a synonym for BackColor.
2159         * editing/SelectionController.cpp:
2160         (WebCore::SelectionController::nodeWillBeRemoved): Moved a comment
2161         a more appropriate place.
2162
2163 2006-08-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2164
2165         Reviewed by Adele and Darin.
2166
2167         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10177
2168           REGRESSION: Successfully dragging text into a disabled field
2169
2170         Test: fast/forms/textfield-drag-into-disabled.html
2171
2172         * rendering/RenderTextControl.cpp:
2173         (WebCore::RenderTextControl::createDivStyle): Changed to set -webkit-user-modify
2174         to read-only on the inner div if the control is disabled.       
2175         (WebCore::RenderTextControl::updateFromElement): Ditto.
2176
2177 2006-08-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2178
2179         Reviewed by Darin.
2180
2181         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10198
2182           REGRESSION: WebKit r15750 crashes while loading anthem.com
2183
2184         Test: fast/overflow/generated-content-crash.html
2185
2186         * rendering/RenderLayer.cpp:
2187         (WebCore::RenderLayer::updateScrollInfoAfterLayout): Added a null check for
2188         the renderer's element. Generated content does not have an element and
2189         therefore does not need to maintain overflow status.
2190
2191 2006-08-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2192
2193         Reviewed by Anders.
2194
2195         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10202
2196           REGRESSION: Repro crash when loading an empty image document
2197
2198         Test: fast/tokenizer/image-empty-crash.html
2199
2200         * loader/ImageDocument.cpp:
2201         (WebCore::ImageTokenizer::stopParsing): Added null check for m_imageElement.
2202         (WebCore::ImageTokenizer::finish): Ditto.
2203
2204 2006-08-03  Darin Adler  <darin@apple.com>
2205
2206         Reviewed by Anders.
2207
2208         - clean up "flip"-related code a tiny bit
2209
2210         * platform/Screen.h: Removed redundant parameter names.
2211         * platform/mac/ScreenMac.mm:
2212         (WebCore::flipScreenRect): Changed to call flipScreenPoint so we only have one
2213         copy of the flipping code.
2214         (WebCore::flipScreenPoint): Fixed indentation.
2215
2216         * bridge/mac/WebCoreFrameBridge.mm: (globalPoint): Removed type casts and
2217         simplified a bit.
2218
2219         * platform/mac/PlatformMouseEventMac.mm: (WebCore::globalPositionForEvent):
2220         * platform/mac/WheelEventMac.mm: (WebCore::globalPositionForEvent):
2221         Removed unneeded local variable.
2222
2223 2006-08-02  David Hyatt  <hyatt@apple.com>
2224
2225         Abstract RenderLayer scrollbar creation and destruction so that there
2226         is a clean spot in which to drop in engine scrollbar stuff.
2227
2228         Reviewed by timo
2229
2230         * platform/ScrollBar.h:
2231         (WebCore::ScrollBar::hasPlatformScrollBars):
2232         * rendering/RenderLayer.cpp:
2233         (WebCore::RenderLayer::createScrollbar):
2234         (WebCore::RenderLayer::destroyScrollbar):
2235         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2236         (WebCore::RenderLayer::setHasVerticalScrollbar):
2237         * rendering/RenderLayer.h:
2238
2239 2006-08-02  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2240
2241         Reviewed by Darin.
2242
2243         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3438
2244           incorrect display of transparent 1x1 PNGs
2245
2246         Test: fast/replaced/image-solid-color-with-alpha.html
2247
2248         * platform/mac/ImageMac.mm:
2249         (WebCore::Image::checkForSolidColor): Changed to divide each color component
2250         by the alpha component. You need to do that since the bitmap context has
2251         premultiplied alpha but m_solidColor should be non-premultiplied.
2252
2253 2006-08-02  Adam Roben  <aroben@apple.com>
2254
2255         Reviewed by Brady.
2256
2257         - Remove redundant #include
2258
2259         * loader/loader.cpp:
2260
2261 2006-07-31  Sam Weinig  <sam.weinig@gmail.com>
2262
2263         Reviewed by Darin.
2264
2265         - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=9955
2266         Colors scaled from [0, 1] range to [0, 255] incorrectly
2267         
2268         Fixes scaling issue and fixes Color to follow style guidelines.
2269
2270         * css/cssstyleselector.cpp:
2271         (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
2272         * platform/Color.cpp:
2273         (WebCore::calcHue):
2274         (WebCore::makeRGBAFromHSLA):
2275         (WebCore::Color::Color):
2276         (WebCore::Color::name):
2277         (WebCore::Color::setNamedColor):
2278         (WebCore::Color::light):
2279         (WebCore::Color::dark):
2280         (WebCore::blend):
2281         * platform/Color.h:
2282         (WebCore::Color::Color):
2283         (WebCore::Color::isValid):
2284         (WebCore::Color::red):
2285         (WebCore::Color::green):
2286         (WebCore::Color::blue):
2287         (WebCore::Color::alpha):
2288         (WebCore::Color::rgb):
2289         (WebCore::Color::setRGB):
2290         (WebCore::operator==):
2291         (WebCore::operator!=):
2292         * rendering/RenderObject.cpp:
2293         (WebCore::RenderObject::drawBorder):
2294
2295 2006-07-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2296
2297         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10158
2298           REGRESSION: Selection highlight is dark and opaque when solid-color images are used
2299
2300         Reviewed by Darin.
2301
2302         Pixel test: fast/backgrounds/solid-color-context-restore.html
2303
2304         * platform/mac/ImageMac.mm:
2305         (WebCore::Image::draw): Added calls to preserve the graphics context
2306         around the painting of a solid color image.
2307         (WebCore::Image::drawTiled): Ditto.
2308
2309 2006-07-31  Maciej Stachowiak  <mjs@apple.com>
2310
2311         Rubber-stamped by Tim Hatcher.
2312
2313         - renamed TransferJob to ResourceLoader
2314
2315         * Projects/gdk/webcore-gdk.bkl:
2316         * WebCore.vcproj/WebCore/WebCore.vcproj:
2317         * WebCore.xcodeproj/project.pbxproj:
2318         * WebCoreSources.bkl:
2319         * bridge/mac/FrameMac.mm:
2320         * bridge/mac/WebCoreResourceLoaderImp.h:
2321         * bridge/mac/WebCoreResourceLoaderImp.mm:
2322         (-[WebCoreResourceLoaderImp redirectedToURL:]):
2323         (-[WebCoreResourceLoaderImp addData:]):
2324         (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
2325         * bridge/win/FrameWin.cpp:
2326         * dom/XMLTokenizer.cpp:
2327         (WebCore::openFunc):
2328         * loader/Cache.cpp:
2329         * loader/LoaderFunctions.h:
2330         * loader/loader.cpp:
2331         (WebCore::Loader::servePendingRequests):
2332         (WebCore::Loader::receivedAllData):
2333         (WebCore::Loader::receivedResponse):
2334         (WebCore::Loader::receivedData):
2335         (WebCore::Loader::cancelRequests):
2336         (WebCore::Loader::jobForRequest):
2337         * loader/loader.h:
2338         * loader/mac/LoaderFunctionsMac.mm:
2339         (WebCore::ServeSynchronousRequest):
2340         * platform/ResourceLoader.cpp: Added.
2341         (WebCore::ResourceLoader::ResourceLoader):
2342         (WebCore::ResourceLoader::isErrorPage):
2343         (WebCore::ResourceLoader::error):
2344         (WebCore::ResourceLoader::setError):
2345         (WebCore::ResourceLoader::queryMetaData):
2346         (WebCore::ResourceLoader::addMetaData):
2347         (WebCore::ResourceLoader::kill):
2348         (WebCore::ResourceLoader::url):
2349         (WebCore::ResourceLoader::postData):
2350         (WebCore::ResourceLoader::method):
2351         (WebCore::ResourceLoader::client):
2352         * platform/ResourceLoader.h: Added.
2353         (WebCore::ResourceLoader::getInternal):
2354         * platform/ResourceLoaderClient.h: Added.
2355         (WebCore::ResourceLoaderClient::~ResourceLoaderClient):
2356         (WebCore::ResourceLoaderClient::receivedRedirect):
2357         (WebCore::ResourceLoaderClient::receivedResponse):
2358         (WebCore::ResourceLoaderClient::receivedData):
2359         (WebCore::ResourceLoaderClient::receivedAllData):
2360         * platform/ResourceLoaderInternal.h: Added.
2361         (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2362         * platform/TransferJob.cpp: Removed.
2363         * platform/TransferJob.h: Removed.
2364         * platform/TransferJobClient.h: Removed.
2365         * platform/TransferJobInternal.h: Removed.
2366         * platform/gdk/FrameGdk.cpp:
2367         (WebCore::FrameGdk::openURL):
2368         (WebCore::FrameGdk::urlSelected):
2369         (WebCore::FrameGdk::receivedData):
2370         (WebCore::FrameGdk::receivedAllData):
2371         * platform/gdk/FrameGdk.h:
2372         * platform/gdk/ResourceLoaderCurl.cpp: Added.
2373         (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
2374         (WebCore::ResourceLoader::~ResourceLoader):
2375         (WebCore::ResourceLoader::start):
2376         (WebCore::ResourceLoader::cancel):
2377         * platform/gdk/ResourceLoaderManager.cpp: Added.
2378         (WebCore::ResourceLoaderManager::ResourceLoaderManager):
2379         (WebCore::ResourceLoaderManager::get):
2380         (WebCore::ResourceLoaderManager::useSimpleTransfer):
2381         (WebCore::writeCallback):
2382         (WebCore::ResourceLoaderManager::downloadTimerCallback):
2383         (WebCore::ResourceLoaderManager::remove):
2384         (WebCore::ResourceLoaderManager::add):
2385         (WebCore::ResourceLoaderManager::cancel):
2386         * platform/gdk/ResourceLoaderManager.h: Added.
2387         * platform/gdk/TemporaryLinkStubs.cpp:
2388         (WebCore::ServeSynchronousRequest):
2389         (WebCore::ResourceLoader::assembleResponseHeaders):
2390         (WebCore::ResourceLoader::retrieveCharset):
2391         * platform/gdk/TransferJobCurl.cpp: Removed.
2392         * platform/gdk/TransferJobManager.cpp: Removed.
2393         * platform/gdk/TransferJobManager.h: Removed.
2394         * platform/mac/ResourceLoaderMac.mm: Added.
2395         (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
2396         (WebCore::ResourceLoader::~ResourceLoader):
2397         (WebCore::ResourceLoader::start):
2398         (WebCore::ResourceLoader::assembleResponseHeaders):
2399         (WebCore::ResourceLoader::retrieveCharset):
2400         (WebCore::ResourceLoader::setLoader):
2401         (WebCore::ResourceLoader::receivedResponse):
2402         (WebCore::ResourceLoader::cancel):
2403         * platform/mac/TransferJobMac.mm: Removed.
2404         * platform/win/ResourceLoaderWin.cpp: Added.
2405         (WebCore::addToOutstandingJobs):
2406         (WebCore::lookupResourceLoader):
2407         (WebCore::ResourceLoaderWndProc):
2408         (WebCore::initializeOffScreenResourceLoaderWindow):
2409         (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
2410         (WebCore::ResourceLoader::~ResourceLoader):
2411         (WebCore::ResourceLoader::start):
2412         (WebCore::ResourceLoader::fileLoadTimer):
2413         (WebCore::ResourceLoader::cancel):
2414         * platform/win/ResourceLoaderWin.h: Added.
2415         * platform/win/TemporaryLinkStubs.cpp:
2416         (WebCore::ServeSynchronousRequest):
2417         (WebCore::ResourceLoader::assembleResponseHeaders):
2418         (WebCore::ResourceLoader::retrieveCharset):
2419         * platform/win/TransferJobWin.cpp: Removed.
2420         * platform/win/TransferJobWin.h: Removed.
2421         * xml/XSLTProcessor.cpp:
2422         (WebCore::docLoaderFunc):
2423         * xml/xmlhttprequest.cpp:
2424         (WebCore::XMLHttpRequest::send):
2425         (WebCore::XMLHttpRequest::receivedAllData):
2426         (WebCore::XMLHttpRequest::receivedRedirect):
2427         (WebCore::XMLHttpRequest::receivedData):
2428         * xml/xmlhttprequest.h:
2429
2430 2006-07-31  Darin Adler  <darin@apple.com>
2431
2432         Reviewed by Hyatt.
2433
2434         - removed obsolete cell margin hack
2435
2436         * rendering/RenderBox.cpp: (WebCore::RenderBox::calcVerticalMargins):
2437         Set top and bottom margins to 0 for table cells instead of -16384.
2438         No effect on layout (including layout tests).
2439
2440         * css/CSSComputedStyleDeclaration.cpp:
2441         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2442         Added a few comments about differences between this class and the
2443         what the CSS specification says about computed style.
2444
2445 2006-07-31  Mark Rowe  <opendarwin.org@bdash.net.nz>
2446
2447         Reviewed by Maciej.
2448
2449         http://bugzilla.opendarwin.org/show_bug.cgi?id=9738
2450         Bug 9738: Unqualified :hover selector ignored in strict parsing mode
2451
2452         * css/cssstyleselector.cpp:
2453         (WebCore::CSSStyleSelector::checkSelector): Restrict the :hover and :active
2454         exclusion based on onlyHoverActive to quirks mode.
2455
2456 2006-07-31  David Hyatt  <hyatt@apple.com>
2457
2458         Fix for bug 10179, digg.com scrolls slowly.  Improve fixed positioning
2459         and fixed backgrounds so that a count of them is kept on the FrameView.
2460         This allows us to switch slow scrolling on and off as these objects come
2461         and go.
2462
2463         * css/cssstyleselector.cpp:
2464         (WebCore::CSSStyleSelector::adjustRenderStyle):
2465         (WebCore::CSSStyleSelector::applyProperty):
2466         * page/FrameView.cpp:
2467         (WebCore::FrameViewPrivate::reset):
2468         (WebCore::FrameView::layout):
2469         (WebCore::FrameView::useSlowRepaints):
2470         (WebCore::FrameView::setUseSlowRepaints):
2471         (WebCore::FrameView::addSlowRepaintObject):
2472         (WebCore::FrameView::removeSlowRepaintObject):
2473         * page/FrameView.h:
2474         * rendering/RenderBox.cpp:
2475         (WebCore::RenderBox::paintBackgroundExtended):
2476         * rendering/RenderObject.cpp:
2477         (WebCore::RenderObject::setStyle):
2478         * rendering/RenderView.cpp:
2479         (WebCore::RenderView::paintBoxDecorations):
2480
2481 2006-07-31  David Hyatt  <hyatt@apple.com>
2482
2483         Begin disentangling of scrollbar logic in preparation for engine-implemented
2484         scrollbars.  Split ScrollBar into two classes, an abstract base (still named
2485         ScrollBar) and a new PlatformScrollBar subclass.  This subclass is used only
2486         by platforms that want to continue to use a platform scrollbar (rather than
2487         the engine one).
2488
2489         Reviewed by darin
2490
2491         * WebCore.xcodeproj/project.pbxproj:
2492         * html/HTMLCanvasElement.h:
2493         * page/Frame.cpp:
2494         * platform/PlatformScrollBar.h: Added.
2495         (WebCore::PlatformScrollBar::isWidget):
2496         * platform/ScrollBar.h:
2497         (WebCore::ScrollBarClient::~ScrollBarClient):
2498         (WebCore::ScrollBar::~ScrollBar):
2499         (WebCore::ScrollBar::orientation):
2500         (WebCore::ScrollBar::value):
2501         (WebCore::ScrollBar::client):
2502         * platform/mac/PlatformScrollBarMac.mm: Added.
2503         (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2504         (-[WebCoreScrollBar detachPlatformScrollBar]):
2505         (-[WebCoreScrollBar scroll:]):
2506         (-[WebCoreScrollBar widget]):
2507         (-[WebCoreScrollBar mouseDown:]):
2508         (WebCore::PlatformScrollBar::PlatformScrollBar):
2509         (WebCore::PlatformScrollBar::~PlatformScrollBar):
2510         (WebCore::PlatformScrollBar::setScrollBarValue):
2511         (WebCore::PlatformScrollBar::setKnobProportion):
2512         (WebCore::PlatformScrollBar::scrollbarHit):
2513         (WebCore::PlatformScrollBar::width):
2514         (WebCore::PlatformScrollBar::height):
2515         (WebCore::PlatformScrollBar::setRect):
2516         (WebCore::PlatformScrollBar::setEnabled):
2517         (WebCore::PlatformScrollBar::paint):
2518         * platform/mac/ScrollBarMac.mm: Removed.
2519         * platform/mac/WebCoreTextArea.mm:
2520         * rendering/RenderBlock.cpp:
2521         (WebCore::RenderBlock::isPointInScrollbar):
2522         * rendering/RenderFormElement.cpp:
2523         * rendering/RenderLayer.cpp:
2524         (WebCore::RenderLayer::horizontalScrollbarWidget):
2525         (WebCore::RenderLayer::verticalScrollbarWidget):
2526         (WebCore::RenderLayer::valueChanged):
2527         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2528         (WebCore::RenderLayer::setHasVerticalScrollbar):
2529         (WebCore::RenderLayer::positionScrollbars):
2530         * rendering/RenderLayer.h:
2531         * rendering/RenderWidget.h:
2532
2533 2006-07-31  Adele Peterson  <adele@apple.com>
2534
2535         Reviewed by John and Anders.
2536
2537         - Fix for <rdar://problem/4380576> onChange does not get called when field changed by return key
2538
2539         Test: fast/forms/onchange-enter-submit.html
2540
2541         Blur (which will fire onChange appropriately) before submitting a form when pressing Enter.
2542         This matches the sequence of events fired in WinIE.
2543
2544         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
2545         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::defaultEventHandler):
2546
2547 2006-07-31  Geoffrey Garen  <ggaren@apple.com>
2548
2549         Reviewed by Kevin.
2550
2551         Moved string debug function outside of the WebCore namespace so that it's
2552         easier to call in the debugger. I will never doubt Darin again (x100).
2553
2554         * platform/String.cpp:
2555         (string):
2556
2557 2006-07-31  David Hyatt  <hyatt@apple.com>
2558
2559         Partial fix for 5453.  Improve overflow so that when it changes
2560         dynamically from scroll/auto to hidden that we properly hide the
2561         scrollbars.  Also refine the dirty dashboard region updating so that
2562         it only happens if the scrollbars genuinely come and go.
2563
2564         Also eliminate the extra repaint of the entire block.  This should not be
2565         necessary, since the scrollbars repaint themselves already and children
2566         will repaint already if they move.
2567
2568         Reviewed by darin
2569
2570         Adding test case from bug into fast/overflow/dynamic-hidden.html
2571
2572         * rendering/RenderLayer.cpp:
2573         (WebCore::RenderLayer::setHasHorizontalScrollbar):
2574         (WebCore::RenderLayer::setHasVerticalScrollbar):
2575         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
2576
2577 2006-07-31  Graham Dennis  <graham.dennis@gmail.com>
2578
2579         Reviewed by justin
2580         
2581         <http://bugzilla.opendarwin.org/show_bug.cgi?id=9507>
2582         Empty style spans created in applyInlineStyle
2583         
2584         Improves paste fidelity because some of these empty font/style spans had a non-zero
2585         size and were messing up the layout of pasted content:
2586         <rdar://problem/4515463>
2587         REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page   
2588
2589         * editing/ApplyStyleCommand.cpp:
2590         (WebCore::ApplyStyleCommand::applyInlineStyle): Use the adjusted start node instead 
2591         of start.node().  Don't do any application if the endpoints are swapped.  Adjust
2592         endNode if the start node is a descendant of it, so that the pre-order traversal will
2593         terminate properly.
2594
2595 2006-07-31  Geoffrey Garen  <ggaren@apple.com>
2596
2597         Reviewed by Darin.
2598
2599         * platform/String.cpp:
2600         (WebCore::string): Added a debugging function to create a String from a
2601         const char*.
2602
2603 2006-07-31  Anders Carlsson  <acarlsson@apple.com>
2604
2605         * css/CSSPrimitiveValue.cpp:
2606         Fix windows build.
2607
2608 2006-07-31  Geoffrey Garen  <ggaren@apple.com>
2609
2610         Reinstating my last change. Everything builds now.
2611         
2612 2006-07-31  Geoffrey Garen  <ggaren@apple.com>
2613
2614         Backing out my last change because it causes a build failure in some
2615         configurations. This seems to be the cleanest way to get svn to cooperate.
2616
2617 2006-07-31  Geoffrey Garen  <ggaren@apple.com>
2618
2619         Reviewed by Maciej.
2620
2621         Moved files around to make WebCore's structure clearer
2622         and easier to explain.
2623
2624         DerivedSources/JS* -> bindings/js/DerivedSources/ (so JS* files
2625         show up when you search inside bindings/js/, but are marked, at
2626         the same time, as files that you should not edit manually)
2627
2628         WebCore+SVG/DOMList.h -> ksvg2/svg/ (only files inside ksvg2/svg/
2629         use DOMList.h)
2630
2631         icon -> loader/icon
2632
2633         I tested that everything still builds.
2634
2635 2006-07-30  Darin Adler  <darin@apple.com>
2636
2637         Reviewed by Tim Hatcher.
2638
2639         - some improvements for the benefit of the style pane of the inspector
2640
2641         * css/CSSComputedStyleDeclaration.cpp: Removed background-position
2642         and border-spacing from the list of properties that show up in
2643         computed style, because of background-position-x, background-position-y,
2644         -webkit-border-horizontal-spacing and -webkit-border-vertical-spacing.
2645         (WebCore::valueForLength): Added handling for undefinedLength, intrinsic,
2646         and min-intrinsic.
2647         (WebCore::primitiveValueFromLength): Removed code that would add a
2648         space to the string for no good reason.
2649         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added a
2650         special case for a line clamp of -1, which should come back as "none"
2651         rather than an actual "-1".
2652         (WebCore::CSSComputedStyleDeclaration::length): Return 0 if the
2653         declaration has no corresponding node or no renderer.
2654         (WebCore::CSSComputedStyleDeclaration::item): Check against length()
2655         so that the two stay consistent rather than using a constant.
2656
2657         * css/CSSPrimitiveValue.cpp:
2658         (WebCore::isCSSTokenizerIdentifier): Added.
2659         (WebCore::isCSSTokenizerURL): Added.
2660         (WebCore::quoteString): Added.
2661         (WebCore::quoteStringIfNeeded): Changed to quote strings in many more
2662         cases -- any cases where they would not parse in the CSS parser otherwise.
2663         The main case this affects is font names with spaces in them.
2664         (WebCore::quoteURLIfNeeded): Added.
2665         (WebCore::CSSPrimitiveValue::cssText): Use quoteURLIfNeeded in the case
2666         where we're making the text form of a URI.
2667
2668         * css/tokenizer.flex: Whitespace tweaks to line things up better.
2669
2670 2006-07-30  Eric Seidel  <eric@eseidel.com>
2671
2672         Reviewed by gramps!
2673
2674         Remove some unused SVG code.
2675
2676         * ksvg2/ecma/Ecma.cpp: Removed.
2677         * ksvg2/ecma/Ecma.h: Removed.
2678         * ksvg2/ecma/GlobalObject.cpp: remove a couple dead functions.
2679         * ksvg2/ecma/GlobalObject.h: add a comment about this dead code.
2680         * ksvg2/ecma/SVGLookup.h: Removed.
2681
2682 2006-07-29  Darin Adler  <darin@apple.com>
2683
2684         - Removed tabs from these source files that still had them.
2685           We don't use them; that way source files look fine in editors
2686           that have tabs set to 8 spaces or to 4 spaces.
2687         - Removed allow-tabs Subversion property from the files too.
2688
2689         * bindings/objc/WebScriptObject.h:
2690         * bindings/objc/WebScriptObject.mm:
2691         * platform/FontData.cpp:
2692
2693 2006-07-29  Sam Weinig  <sam.weinig@gmail.com>
2694
2695         Reviewed by Darin.
2696
2697         - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10080
2698           Adopt pedantic changes from the Unity project to improve 
2699           cross-compiler compatibility
2700
2701           Changes include:
2702           * Removing trailing semicolon from namespace braces.
2703           * Removing trailing comma from last enum declaration.
2704           * Updating to match style guidelines.
2705           * Adding missing newline to the end of the file.
2706           * Turning on gcc warning for missing newline at the end of a source file
2707             (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
2708           * Alphabetical sorting of Xcode source list files.
2709           * Use abs() function from <math.h> instead of ABS() macro.
2710           * Use C-style comments instead of C++ comments in files that might
2711             be included by either C or C++ files.
2712           * Use -numeric_limits<double>::infinity() instead of -HUGE_VAL.
2713
2714         * WebCore+SVG/DOMList.h:
2715         * WebCore.xcodeproj/project.pbxproj:
2716         * WebCorePrefix.h:
2717         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
2718         * bindings/js/JSXSLTProcessor.h:
2719         * bindings/js/kjs_domnode.h:
2720         (KJS::DOMNode::):
2721         * bindings/objc/DOMCSS.h:
2722         (-[DOMCSSValue enum]):
2723         * bindings/objc/DOMCore.h:
2724         (-[DOMImplementation createDocument:::]):
2725         * bindings/objc/DOMEvents.h:
2726         (-[DOMOverflowEvent enum]):
2727         * bindings/objc/DOMRange.h:
2728         * bindings/objc/DOMTraversal.h:
2729         * bindings/objc/DOMXPath.h:
2730         (-[DOMXPathNSResolver lookupNamespaceURI:]):
2731         * bridge/mac/WebCoreFrameBridge.h:
2732         * bridge/mac/WebCoreKeyboardAccess.h:
2733         * css/makeprop:
2734         * css/makevalues:
2735         * dom/ChildNodeList.h:
2736         * dom/DocPtr.h:
2737         * dom/Document.h:
2738         (WebCore::Document::):
2739         * dom/DocumentMarker.h:
2740         (WebCore::DocumentMarker::):
2741         (WebCore::DocumentMarker::operator==):
2742         (WebCore::DocumentMarker::operator!=):
2743         * dom/EventTargetNode.h:
2744         * dom/KeyboardEvent.h:
2745         (WebCore::KeyboardEvent::):
2746         * dom/NameNodeList.h:
2747         (WebCore::NameNodeList::rootNodeChildrenChanged):
2748         * dom/QualifiedName.cpp:
2749         * editing/TypingCommand.h:
2750         (WebCore::TypingCommand::):
2751         * editing/UnlinkCommand.h:
2752         (WebCore::UnlinkCommand::editingAction):
2753         * html/FormDataList.h:
2754         (WebCore::FormDataListItem::FormDataListItem):
2755         (WebCore::FormDataList::appendData):
2756         * html/HTMLBlockquoteElement.h:
2757         * html/HTMLDivElement.h:
2758         * html/HTMLFormElement.h:
2759         * html/HTMLHRElement.h:
2760         * html/HTMLHeadingElement.h:
2761         * html/HTMLMarqueeElement.h:
2762         * html/HTMLParagraphElement.h:
2763         * html/HTMLPlugInElement.h:
2764         * html/HTMLPreElement.h:
2765         * html/HTMLTokenizer.h:
2766         (WebCore::HTMLTokenizer::State::):
2767         * icon/IconDatabase.cpp:
2768         * icon/SQLStatement.cpp:
2769         * kcanvas/KCanvasFilters.h:
2770         (WebCore::):
2771         (WebCore::KCanvasPoint3F::KCanvasPoint3F):
2772         (WebCore::KCanvasFilter::KCanvasFilter):
2773         (WebCore::KCanvasFilter::~KCanvasFilter):
2774         (WebCore::KCanvasFilterEffect::~KCanvasFilterEffect):
2775         (WebCore::KCComponentTransferFunction::KCComponentTransferFunction):
2776         (WebCore::KCanvasFEConvolveMatrix::KCanvasFEConvolveMatrix):
2777         (WebCore::KCLightSource::KCLightSource):
2778         (WebCore::KCDistantLightSource::KCDistantLightSource):
2779         (WebCore::KCPointLightSource::KCPointLightSource):
2780         (WebCore::KCSpotLightSource::KCSpotLightSource):
2781         (WebCore::KCanvasFEDiffuseLighting::KCanvasFEDiffuseLighting):
2782         (WebCore::KCanvasFEDisplacementMap::KCanvasFEDisplacementMap):
2783         (WebCore::KCanvasFEImage::KCanvasFEImage):
2784         (WebCore::KCanvasFESpecularLighting::KCanvasFESpecularLighting):
2785         * kcanvas/RenderSVGImage.h:
2786         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2787         * ksvg2/css/SVGRenderStyle.h:
2788         (WebCore::SVGRenderStyle::InheritedFlags::):
2789         (WebCore::SVGRenderStyle::NonInheritedFlags::):
2790         * ksvg2/css/SVGRenderStyleDefs.h:
2791         (WebCore::):
2792         * ksvg2/events/SVGZoomEvent.h:
2793         * ksvg2/ksvg.h:
2794         (WebCore::):
2795         * ksvg2/misc/KCanvasRenderingStyle.h:
2796         * ksvg2/misc/SVGImageLoader.h:
2797         * ksvg2/scripts/make_names.pl:
2798         * ksvg2/svg/SVGAElement.h:
2799         * ksvg2/svg/SVGAngle.h:
2800         * ksvg2/svg/SVGAnimateColorElement.h:
2801         * ksvg2/svg/SVGAnimateElement.h:
2802         * ksvg2/svg/SVGAnimateTransformElement.h:
2803         * ksvg2/svg/SVGAnimatedAngle.h:
2804         * ksvg2/svg/SVGAnimatedBoolean.h:
2805         * ksvg2/svg/SVGAnimatedColor.h:
2806         * ksvg2/svg/SVGAnimatedEnumeration.h:
2807         * ksvg2/svg/SVGAnimatedInteger.h:
2808         * ksvg2/svg/SVGAnimatedLength.h:
2809         * ksvg2/svg/SVGAnimatedLengthList.h:
2810         * ksvg2/svg/SVGAnimatedNumber.h:
2811         * ksvg2/svg/SVGAnimatedNumberList.h:
2812         * ksvg2/svg/SVGAnimatedPathData.h:
2813         * ksvg2/svg/SVGAnimatedPoints.h:
2814         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
2815         * ksvg2/svg/SVGAnimatedRect.h:
2816         * ksvg2/svg/SVGAnimatedString.h:
2817         * ksvg2/svg/SVGAnimatedTemplate.h:
2818         * ksvg2/svg/SVGAnimatedTransformList.h:
2819         * ksvg2/svg/SVGAnimationElement.cpp:
2820         (SVGAnimationElement::calculateCurrentValueItem):
2821         (SVGAnimationElement::calculateRelativeTimePercentage):
2822         * ksvg2/svg/SVGAnimationElement.h:
2823         (WebCore::):
2824         * ksvg2/svg/SVGCircleElement.h:
2825         * ksvg2/svg/SVGClipPathElement.h:
2826         * ksvg2/svg/SVGColor.h:
2827         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
2828         * ksvg2/svg/SVGCursorElement.h:
2829         * ksvg2/svg/SVGDOMImplementation.h:
2830         * ksvg2/svg/SVGDefsElement.h:
2831         * ksvg2/svg/SVGDescElement.h:
2832         * ksvg2/svg/SVGDocument.h:
2833         * ksvg2/svg/SVGElement.h:
2834         (WebCore::SVGElement::rendererIsNeeded):
2835         (WebCore::svg_dynamic_cast):
2836         * ksvg2/svg/SVGElementInstance.h:
2837         * ksvg2/svg/SVGElementInstanceList.h:
2838         * ksvg2/svg/SVGEllipseElement.h:
2839         * ksvg2/svg/SVGExternalResourcesRequired.h:
2840         * ksvg2/svg/SVGFEBlendElement.h:
2841         * ksvg2/svg/SVGFEColorMatrixElement.h:
2842         * ksvg2/svg/SVGFEComponentTransferElement.h:
2843         * ksvg2/svg/SVGFECompositeElement.h:
2844         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
2845         * ksvg2/svg/SVGFEDisplacementMapElement.h:
2846         * ksvg2/svg/SVGFEDistantLightElement.h:
2847         * ksvg2/svg/SVGFEFloodElement.h:
2848         * ksvg2/svg/SVGFEFuncAElement.h:
2849         * ksvg2/svg/SVGFEFuncBElement.h:
2850         * ksvg2/svg/SVGFEFuncGElement.h:
2851         * ksvg2/svg/SVGFEFuncRElement.h:
2852         * ksvg2/svg/SVGFEGaussianBlurElement.h:
2853         * ksvg2/svg/SVGFEImageElement.h:
2854         * ksvg2/svg/SVGFELightElement.h:
2855         * ksvg2/svg/SVGFEMergeElement.h:
2856         * ksvg2/svg/SVGFEMergeNodeElement.h:
2857         * ksvg2/svg/SVGFEOffsetElement.h:
2858         * ksvg2/svg/SVGFEPointLightElement.h:
2859         * ksvg2/svg/SVGFESpecularLightingElement.h:
2860         * ksvg2/svg/SVGFESpotLightElement.h:
2861         * ksvg2/svg/SVGFETileElement.h:
2862         * ksvg2/svg/SVGFETurbulenceElement.h:
2863         * ksvg2/svg/SVGFilterElement.h:
2864         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
2865         * ksvg2/svg/SVGFitToViewBox.h:
2866         * ksvg2/svg/SVGForeignObjectElement.cpp:
2867         * ksvg2/svg/SVGForeignObjectElement.h:
2868         * ksvg2/svg/SVGGElement.h:
2869         * ksvg2/svg/SVGGradientElement.h:
2870         * ksvg2/svg/SVGHelper.h:
2871         (WebCore::):
2872         * ksvg2/svg/SVGImageElement.h:
2873         * ksvg2/svg/SVGLangSpace.h:
2874         * ksvg2/svg/SVGLength.h:
2875         * ksvg2/svg/SVGLengthList.h:
2876         * ksvg2/svg/SVGLineElement.h:
2877         * ksvg2/svg/SVGLinearGradientElement.h:
2878         * ksvg2/svg/SVGList.h:
2879         * ksvg2/svg/SVGLocatable.h:
2880         * ksvg2/svg/SVGMarkerElement.h:
2881         * ksvg2/svg/SVGMaskElement.h:
2882         * ksvg2/svg/SVGMatrix.h:
2883         * ksvg2/svg/SVGNumber.h:
2884         * ksvg2/svg/SVGNumberList.h:
2885         * ksvg2/svg/SVGPaint.h:
2886         * ksvg2/svg/SVGPathElement.h:
2887         * ksvg2/svg/SVGPathSeg.h:
2888         * ksvg2/svg/SVGPathSegArc.h:
2889         * ksvg2/svg/SVGPathSegClosePath.h:
2890         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
2891         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
2892         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
2893         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
2894         * ksvg2/svg/SVGPathSegLineto.h:
2895         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
2896         * ksvg2/svg/SVGPathSegLinetoVertical.h:
2897         * ksvg2/svg/SVGPathSegList.h:
2898         * ksvg2/svg/SVGPathSegMoveto.h:
2899         * ksvg2/svg/SVGPatternElement.h:
2900         * ksvg2/svg/SVGPoint.h:
2901         * ksvg2/svg/SVGPointList.h:
2902         * ksvg2/svg/SVGPolyElement.h:
2903         * ksvg2/svg/SVGPolygonElement.h:
2904         * ksvg2/svg/SVGPolylineElement.h:
2905         * ksvg2/svg/SVGPreserveAspectRatio.h:
2906         * ksvg2/svg/SVGRadialGradientElement.h:
2907         * ksvg2/svg/SVGRect.h:
2908         * ksvg2/svg/SVGRectElement.h:
2909         * ksvg2/svg/SVGSVGElement.h:
2910         * ksvg2/svg/SVGScriptElement.h:
2911         * ksvg2/svg/SVGSetElement.h:
2912         * ksvg2/svg/SVGStopElement.h:
2913         * ksvg2/svg/SVGStringList.h:
2914         * ksvg2/svg/SVGStylable.h:
2915         * ksvg2/svg/SVGStyleElement.h:
2916         * ksvg2/svg/SVGStyledElement.h:
2917         (WebCore::SVGStyledElement::rendererIsNeeded):
2918         (WebCore::SVGStyledElement::canvasResource):
2919         * ksvg2/svg/SVGStyledLocatableElement.h:
2920         * ksvg2/svg/SVGStyledTransformableElement.h:
2921         * ksvg2/svg/SVGSwitchElement.h:
2922         * ksvg2/svg/SVGSymbolElement.h:
2923         * ksvg2/svg/SVGTRefElement.h:
2924         * ksvg2/svg/SVGTSpanElement.h:
2925         * ksvg2/svg/SVGTests.h:
2926         * ksvg2/svg/SVGTextContentElement.h:
2927         * ksvg2/svg/SVGTextElement.h:
2928         * ksvg2/svg/SVGTextPositioningElement.h:
2929         * ksvg2/svg/SVGTitleElement.h:
2930         * ksvg2/svg/SVGTransform.h:
2931         * ksvg2/svg/SVGTransformList.h:
2932         * ksvg2/svg/SVGTransformable.h:
2933         * ksvg2/svg/SVGURIReference.h:
2934         * ksvg2/svg/SVGUseElement.h:
2935         * ksvg2/svg/SVGViewElement.h:
2936         * ksvg2/svg/SVGZoomAndPan.h:
2937         * ksvg2/svg/svgpathparser.h:
2938         * page/Frame.h:
2939         (WebCore::):
2940         * platform/AffineTransform.h:
2941         * platform/FontCache.cpp:
2942         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
2943         * platform/FontData.cpp:
2944         (WebCore::FontData::FontData):
2945         * platform/FontData.h:
2946         * platform/TextBox.h:
2947         (WebCore::TextBox::):
2948         * platform/Timer.cpp:
2949         (WebCore::TimerBase::heapPop):
2950         * platform/mac/FontCacheMac.mm:
2951         * platform/mac/GlyphMapMac.cpp:
2952         * platform/mac/WebFontCache.mm:
2953         (betterChoice):
2954         * rendering/DeprecatedRenderSelect.cpp:
2955         (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
2956         * rendering/EllipsisBox.h:
2957         * rendering/RenderBR.h:
2958         (WebCore::RenderBR::renderName):
2959         (WebCore::RenderBR::width):
2960         * rendering/RenderBlock.h:
2961         (WebCore::):
2962         * rendering/RenderFlexibleBox.h:
2963         * rendering/RenderFlow.h:
2964         (WebCore::RenderFlow::RenderFlow):
2965         * rendering/RenderFrame.cpp:
2966         * rendering/bidi.h:
2967         * rendering/break_lines.cpp:
2968
2969 2006-07-29  Rob Buis  <buis@kde.org>
2970
2971         Reviewed by Geoff.
2972
2973         http://bugzilla.opendarwin.org/show_bug.cgi?id=10151
2974         ghostmap XHTML + SVG fails due to javascript undefined exception
2975
2976         Make sure document.URL works when called from a non-HTML document.
2977
2978         * bindings/js/kjs_html.cpp:
2979         (KJS::JSHTMLDocument::getValueProperty):
2980         * bindings/js/kjs_html.h:
2981         (KJS::JSHTMLDocument::):
2982         * dom/Document.idl:
2983
2984 2006-07-29  Mike Emmel  <mike.emmel@gmail.com>
2985
2986         Reviewed and tweaked by Darin.
2987
2988         - fixes for Linux build
2989           (still might not compile, since Darin tweaked but was unable to test).
2990
2991         * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
2992         * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
2993
2994         * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
2995         before ::.
2996
2997         * platform/gdk/FrameGdk.h:
2998         * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
2999         out of this file.
3000         * platform/gdk/RenderPopupMenuGdk.h: Added.
3001         * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
3002         * platform/gdk/RenderThemeGdk.h:
3003         * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
3004
3005         * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
3006
3007 2006-07-29  Mark Rowe  <opendarwin.org@bdash.net.nz>
3008
3009         Reviewed by Darin.
3010
3011         http://bugzilla.opendarwin.org/show_bug.cgi?id=10022
3012         Bug 10022: REGRESSION: Crash in WebCore::XMLTokenizer::characters
3013
3014         * dom/XMLTokenizer.cpp:
3015         (WebCore::XMLTokenizer::resumeParsing): If the write() call resulted in new callbacks being
3016         added, don't call through to end() just yet.
3017
3018 2006-07-29  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3019
3020         Reviewed by John Sullivan.
3021
3022         - manual test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9984
3023           ASSERTION FAILURE: _private->mouseDownEvent != nil
3024           (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
3025
3026         * manual-tests/subview-click-assertion.html: Added.
3027
3028 2006-07-29  Andrew Wellington  <proton@wiretapped.net>
3029
3030         Reviewed by Darin.
3031
3032         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8587 / <rdar://problem/4631844>
3033         REGRESSION: {display:list-item} items outside an ol or ul element don't number correctly
3034
3035         * rendering/RenderListItem.cpp:
3036         (WebCore::enclosingList): If no real list element is found, use parent instead.
3037         (WebCore::previousListItem): Check list elements to see if they are list items -- the
3038         old code assumed that a list would never be a list item but this is entirely possible
3039         with CSS and especially with the new rule that means any DOM element could act as a list.
3040
3041 2006-07-29  Alexey Proskuryakov  <ap@nypop.com>
3042
3043         Reviewed by Darin.
3044
3045         Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10147
3046         REGRESSION: custom attribute values set via javascript are not persistent
3047
3048         Test: fast/dom/Element/setAttribute-case-insensitivity.html
3049
3050         * dom/Element.cpp:
3051         (WebCore::Element::setAttribute): Use the lowercased localName for retrieving the old value, too.
3052
3053 2006-07-28  Timothy Hatcher  <timothy@apple.com>
3054
3055         Suggested by Darin.
3056
3057         Moving the implementation of isContentEditable to the
3058         the WebPrivate category.
3059
3060         * bindings/objc/DOM.mm:
3061         (-[DOMNode isContentEditable]):
3062
3063 2006-07-28  Justin Garcia  <justin.garcia@apple.com>
3064
3065         Reviewed by levi
3066         
3067         First part of:
3068         <rdar://problem/4515463>
3069         REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
3070         
3071         Migrate to isBlock and enclosingBlock.
3072         Changed RendereringInfo::isBlock and ReplacementFragment::isBlock
3073         to wasBlock so that they don't conflict with isBlock and because
3074         it's more descriptive.
3075
3076         * editing/ReplaceSelectionCommand.cpp:
3077         (WebCore::ReplacementFragment::mergeStartNode):
3078         (WebCore::ReplacementFragment::wasBlock):
3079         (WebCore::ReplacementFragment::saveRenderingInfo):
3080         (WebCore::ReplacementFragment::renderedBlocks):
3081         (WebCore::RenderingInfo::RenderingInfo):
3082         (WebCore::ReplaceSelectionCommand::shouldMergeStart):
3083         (WebCore::ReplaceSelectionCommand::doApply):
3084         * editing/ReplaceSelectionCommand.h:
3085         (WebCore::RenderingInfo::wasBlock):
3086
3087 2006-07-27  Justin Garcia  <justin.garcia@apple.com>
3088
3089         Reviewed by levi
3090         
3091         More changes for:
3092         <rdar://problem/4242293>
3093         Poor paste fidelity of http://www.google.com/
3094
3095         * editing/markup.cpp:
3096         (WebCore::needInterchangeNewlineAfter): Added.
3097         (WebCore::createMarkup): 
3098         Only add an interchangeNewline if we're annotating for interchange.  Can't test 
3099         this until we expose createMarkup in non-annotate mode (I'd expose Range::toHTML).
3100         Remove the FIXME about prepending the interchangeNewline before creating the rest 
3101         of the markup.  Its correct to surround the interchangeNewline in ancestors of the
3102         adjusted startNode.
3103         Fixed the check to see if an interchangeNewline is needed (!inSameBlock).  This would
3104         add an interchangeNewline for a selection that started before a table.
3105         Removed the workaround for the bug where markup for a table was not included when 
3106         selecting the contents of a table, since this change fixes the general problem of 
3107         markup for ancestors of the startNode being left out.
3108         Don't leave out ancestors of the startNode as we leave their subtrees.  Execute the
3109         code to include them even if we closed ancestors in the ancestorsToClose list.
3110
3111 2006-07-28  Timothy Hatcher  <timothy@apple.com>
3112
3113         Reviewed by John.
3114
3115         Adding isContentEditable to DOMNode's private category. 
3116
3117         * bindings/objc/DOMPrivate.h:
3118
3119 2006-07-28  Alexey Proskuryakov  <ap@nypop.com>
3120
3121         Rolling out http://bugzilla.opendarwin.org/show_bug.cgi?id=6010 because of failing layout tests.
3122         Add better SVGLoad event support.
3123
3124         * dom/EventTargetNode.cpp:
3125         (WebCore::EventTargetNode::dispatchGenericEvent):
3126         * html/HTMLImageLoader.cpp:
3127         (WebCore::HTMLImageLoader::dispatchLoadEvent):
3128         * html/HTMLImageLoader.h:
3129         * ksvg2/misc/SVGImageLoader.cpp:
3130         (WebCore::SVGImageLoader::SVGImageLoader):
3131         * ksvg2/misc/SVGImageLoader.h:
3132         * ksvg2/svg/SVGAElement.cpp:
3133         (WebCore::SVGAElement::parseMappedAttribute):
3134         * ksvg2/svg/SVGAnimatedBoolean.h:
3135         * ksvg2/svg/SVGElement.cpp:
3136         (WebCore::SVGElement::SVGElement):
3137         (WebCore::SVGElement::parseMappedAttribute):
3138         * ksvg2/svg/SVGElement.h:
3139         (WebCore::SVGElement::adjustViewportClipping):
3140         (WebCore::SVGElement::closeRenderer):
3141         (WebCore::SVGElement::rendererIsNeeded):
3142         (WebCore::SVGElement::isClosed):
3143         (WebCore::svg_dynamic_cast):
3144         * ksvg2/svg/SVGExternalResourcesRequired.h:
3145         * ksvg2/svg/SVGImageElement.cpp:
3146         (SVGImageElement::SVGImageElement):
3147         * ksvg2/svg/SVGImageElement.h:
3148         * ksvg2/svg/SVGSVGElement.cpp:
3149         (WebCore::SVGSVGElement::parseMappedAttribute):
3150         * ksvg2/svg/SVGScriptElement.cpp:
3151         (SVGScriptElement::SVGScriptElement):
3152         (SVGScriptElement::parseMappedAttribute):
3153         (SVGScriptElement::executeScript):
3154         * xml/xmlhttprequest.cpp:
3155         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
3156
3157 2006-07-28  Adele Peterson  <adele@apple.com>
3158
3159         Rolling out http://bugzilla.opendarwin.org/show_bug.cgi?id=9753 because of failing layout tests.
3160         SVG with width and height 100% leaves room for scrollbar on the right.
3161
3162         * kcanvas/RenderPath.cpp:
3163         * kcanvas/RenderPath.h:
3164         * kcanvas/RenderSVGContainer.cpp:
3165         (WebCore::RenderSVGContainer::layout):
3166         * ksvg2/svg/SVGCircleElement.cpp:
3167         * ksvg2/svg/SVGCircleElement.h:
3168         * ksvg2/svg/SVGEllipseElement.cpp:
3169         * ksvg2/svg/SVGEllipseElement.h:
3170         * ksvg2/svg/SVGLineElement.cpp:
3171         * ksvg2/svg/SVGLineElement.h:
3172         * ksvg2/svg/SVGRectElement.cpp:
3173         * ksvg2/svg/SVGRectElement.h:
3174         * ksvg2/svg/SVGStyledElement.h:
3175
3176 2006-07-27  Eric Seidel  <eric@eseidel.com>
3177
3178         Reviewed by darin.
3179         
3180         Add better SVGLoad event support.
3181         http://bugzilla.opendarwin.org/show_bug.cgi?id=6010
3182         There will still need to be additional support added for <link> and <script> elements.
3183         Not all of the error -> loaded -> error transition cases work yet.
3184
3185         * dom/EventTargetNode.cpp:
3186         (WebCore::EventTargetNode::dispatchGenericEvent):
3187         * html/HTMLImageLoader.cpp:
3188         (WebCore::HTMLImageLoader::dispatchLoadEvent):
3189         * html/HTMLImageLoader.h:
3190         (WebCore::HTMLImageLoader::haveFiredLoadEvent):
3191         (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
3192         * ksvg2/misc/SVGImageLoader.cpp:
3193         (WebCore::SVGImageLoader::SVGImageLoader):
3194         (WebCore::SVGImageLoader::dispatchLoadEvent):
3195         * ksvg2/misc/SVGImageLoader.h:
3196         * ksvg2/svg/SVGAElement.cpp:
3197         (WebCore::SVGAElement::parseMappedAttribute):
3198         * ksvg2/svg/SVGAnimatedBoolean.h:
3199         * ksvg2/svg/SVGElement.cpp:
3200         (WebCore::SVGElement::SVGElement):
3201         (WebCore::SVGElement::parseMappedAttribute):
3202         (WebCore::SVGElement::haveLoadedRequiredResources):
3203         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
3204         (WebCore::SVGElement::closeRenderer):
3205         * ksvg2/svg/SVGElement.h:
3206         (WebCore::SVGElement::rendererIsNeeded):
3207         (WebCore::svg_dynamic_cast):
3208         * ksvg2/svg/SVGExternalResourcesRequired.h:
3209         * ksvg2/svg/SVGImageElement.cpp:
3210         (SVGImageElement::SVGImageElement):
3211         (SVGImageElement::haveLoadedRequiredResources):
3212         * ksvg2/svg/SVGImageElement.h:
3213         * ksvg2/svg/SVGSVGElement.cpp:
3214         (WebCore::SVGSVGElement::parseMappedAttribute):
3215         * ksvg2/svg/SVGScriptElement.cpp:
3216         (WebCore::SVGScriptElement::SVGScriptElement):
3217         (WebCore::SVGScriptElement::parseMappedAttribute):
3218         (WebCore::SVGScriptElement::executeScript):
3219         * xml/xmlhttprequest.cpp:
3220         (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
3221
3222 2006-07-27  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3223
3224         Reviewed by Anders.
3225
3226         - http://bugzilla.opendarwin.org/show_bug.cgi?id=10135
3227           Cleanup: remove useless parameters from RenderObject::position()
3228
3229         No test possible (no functionality change)
3230
3231         * rendering/RenderBox.cpp:
3232         (WebCore::RenderBox::position):
3233         * rendering/RenderBox.h:
3234         * rendering/RenderObject.h:
3235         (WebCore::RenderObject::position):
3236         * rendering/RenderTableRow.h:
3237         (WebCore::RenderTableRow::position):
3238         * rendering/RenderTableSection.h:
3239         (WebCore::RenderTableSection::position):
3240         * rendering/RenderText.cpp:
3241         (WebCore::RenderText::position):
3242         * rendering/RenderText.h:
3243         * rendering/bidi.cpp:
3244         (WebCore::RenderBlock::constructLine):
3245         (WebCore::RenderBlock::computeVerticalPositionsForLine):
3246
3247 2006-07-27  Rob Buis  <buis@kde.org>
3248
3249         Reviewed by Maciej.
3250
3251         http://bugzilla.opendarwin.org/show_bug.cgi?id=9753
3252         SVG with width and height 100% leaves room for scrollbar on the right.
3253
3254         Relayout children of svg containers, except svg shapes that do not depend on percentages.
3255
3256         * kcanvas/RenderPath.cpp: (WebCore::RenderPath::hasPercentageValues):
3257         * kcanvas/RenderPath.h:
3258         * kcanvas/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::layout):
3259         * ksvg2/svg/SVGCircleElement.cpp: (SVGCircleElement::hasPercentageValues):
3260         * ksvg2/svg/SVGCircleElement.h:
3261         * ksvg2/svg/SVGEllipseElement.cpp: (WebCore::SVGEllipseElement::hasPercentageValues):
3262         * ksvg2/svg/SVGEllipseElement.h:
3263         * ksvg2/svg/SVGLineElement.cpp: (SVGLineElement::hasPercentageValues):
3264         * ksvg2/svg/SVGLineElement.h:
3265         * ksvg2/svg/SVGRectElement.cpp: (WebCore::SVGRectElement::hasPercentageValues):
3266         * ksvg2/svg/SVGRectElement.h:
3267         * ksvg2/svg/SVGStyledElement.h: (WebCore::SVGStyledElement::hasPercentageValues):
3268
3269 2006-07-27  Justin Garcia  <justin.garcia@apple.com>
3270
3271         Reviewed by levi
3272         
3273         <rdar://problem/4242293>
3274         Poor paste fidelity of http://www.google.com/
3275
3276         * editing/ApplyStyleCommand.cpp:
3277         (WebCore::ApplyStyleCommand::applyInlineStyle):  Fixed crasher with nil-check.
3278         * editing/markup.cpp:
3279         (WebCore::startMarkup): Style information wasn't added to an element if it had
3280         attributes but no style attribute.
3281
3282 2006-07-27  Alexander Kellett  <lypanov@kde.org>
3283
3284         Reviewed by Darin.
3285
3286         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9867
3287           REGRESSION: code that modifies form element in Firefox modifies form attribute in WebKit
3288
3289         * bindings/scripts/CodeGeneratorJS.pm: add new attribute - HasOverridingNameGetter
3290         * html/HTMLFormElement.idl:
3291
3292 2006-07-27  Rob Buis  <buis@kde.org>
3293
3294         Reviewed by Anders.
3295
3296         http://bugzilla.opendarwin.org/show_bug.cgi?id=8992
3297         Some HTML DOM attributes have incorrect types
3298
3299         Adjust idl and dom source code for HTMLImageElement and
3300         HTMLBaseFontElement to choose correct type for
3301         HTMLImageElement::border and HTMLBaseFontElement::size
3302         attributes.
3303
3304         * html/HTMLBaseFontElement.cpp:
3305         (WebCore::HTMLBaseFontElement::size):
3306         (WebCore::HTMLBaseFontElement::setSize):
3307         * html/HTMLBaseFontElement.h:
3308         * html/HTMLBaseFontElement.idl:
3309         * html/HTMLImageElement.cpp:
3310         (WebCore::HTMLImageElement::border):
3311         (WebCore::HTMLImageElement::setBorder):
3312         * html/HTMLImageElement.h:
3313         * html/HTMLImageElement.idl:
3314
3315 2006-07-27  Justin Garcia  <justin.garcia@apple.com>
3316
3317         Reviewed by levi
3318         
3319         <rdar://problem/4628409>
3320         Safari crashes in CompositeEditCommand::removeBlockPlaceholder entering text in a web page form
3321
3322         * editing/CompositeEditCommand.cpp:
3323         (WebCore::CompositeEditCommand::removeBlockPlaceholder): 
3324         A script on the page shrinks the textarea down to zero rows just
3325         before insertion.  That gives the shadow div a zero height, removing
3326         [div, 0] as a candidate for a VisiblePosition.  Then 
3327         InsertTextCommand::input() tries to create a VisiblePosition from 
3328         [div, 0] and fails.  A nil check is a quick fix.  Another might
3329         be to make positions where there is a caret selection candidates.
3330         Another might be to make any [div, 0] where div is a shadow div inside
3331         a form element a candidate.
3332
3333 2006-07-27  Graham Dennis  <graham.dennis@gmail.com>
3334
3335         Reviewed by Darin.
3336
3337         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10094
3338           Japanese characters improperly rendering in TOT
3339           
3340         Test: fast/encoding/denormalised-voiced-japanese-chars.html
3341
3342         * platform/Font.cpp:
3343         (WebCore::WidthIterator::advance): pass currentCharacter to normalizeVoicingMarks
3344         (WebCore::WidthIterator::normalizeVoicingMarks): turn the currentCharacter variable
3345         into an argument as WidthIterator::advance doesn't update m_currentCharacter while
3346         looping
3347
3348 2006-07-27  Eric Seidel  <eric@eseidel.com>
3349
3350         Reviewed by ap.
3351
3352         Complex entities seem to fail on TOT
3353         http://bugzilla.opendarwin.org/show_bug.cgi?id=6390
3354         Use an alternative work-around to an XML Entity parsing bug.
3355
3356         * dom/XMLTokenizer.cpp:
3357         (WebCore::XMLTokenizer::write):
3358         (WebCore::hackAroundLibXMLEntityBug): added.
3359         (WebCore::startElementNsHandler):
3360         (WebCore::endElementNsHandler):
3361         (WebCore::charactersHandler):
3362         (WebCore::processingInstructionHandler):
3363         (WebCore::cdataBlockHandler):
3364         (WebCore::commentHandler):
3365         (WebCore::getEntityHandler):
3366
3367 2006-07-27  Rob Buis  <buis@kde.org>
3368
3369         Reviewed by Darin.
3370
3371         http://bugzilla.opendarwin.org/show_bug.cgi?id=9938
3372         Fix viewBox issues in Hixie's test
3373
3374         Do a more accurate and quicker job of parsing the viewBox
3375         attribute. Handle properly on negative width/height and
3376         invalid syntax in general.
3377
3378         * ksvg2/svg/SVGFitToViewBox.cpp:
3379         (SVGFitToViewBox::parseViewBox):
3380
3381 2006-07-27  Eric Seidel  <eric@eseidel.com>
3382
3383         Reviewed by ap.
3384
3385         Enables getSVGDocument() support for HTMLObjectElement and HTMLEmbedElement
3386         http://bugzilla.opendarwin.org/show_bug.cgi?id=9237
3387         This patch does not try to autogenerate anything, but enables the SVG functionality.
3388         Also fix HTMLObjectElement vspace and hspace to be numbers instead of strings to match IE & Firefox.
3389
3390         * bindings/js/kjs_dom.cpp:
3391         (KJS::toJS):
3392         * bindings/js/kjs_html.cpp:
3393         (KJS::JSHTMLElement::objectGetter):
3394         (KJS::HTMLElementFunction::callAsFunction):
3395         (KJS::JSHTMLElement::objectSetter):
3396         * bindings/js/kjs_html.h:
3397         (KJS::JSHTMLElement::):
3398         * dom/Document.h:
3399         (WebCore::Document::isSVGDocument):
3400         * html/HTMLEmbedElement.cpp:
3401         (WebCore::HTMLEmbedElement::contentDocument):
3402         (WebCore::HTMLEmbedElement::getSVGDocument):
3403         * html/HTMLEmbedElement.h:
3404         * html/HTMLObjectElement.cpp:
3405         (WebCore::HTMLObjectElement::HTMLObjectElement):
3406         (WebCore::HTMLObjectElement::getInstance):
3407         (WebCore::HTMLObjectElement::parseMappedAttribute):
3408         (WebCore::HTMLObjectElement::contentDocument):
3409         (WebCore::HTMLObjectElement::rendererIsNeeded):
3410         (WebCore::HTMLObjectElement::createRenderer):
3411         (WebCore::HTMLObjectElement::setCode):
3412         (WebCore::HTMLObjectElement::setArchive):
3413         (WebCore::HTMLObjectElement::setBorder):
3414         (WebCore::HTMLObjectElement::setCodeBase):
3415         (WebCore::HTMLObjectElement::setCodeType):
3416         (WebCore::HTMLObjectElement::setData):
3417         (WebCore::HTMLObjectElement::hspace):
3418         (WebCore::HTMLObjectElement::setHspace):
3419         (WebCore::HTMLObjectElement::setStandby):
3420         (WebCore::HTMLObjectElement::setType):
3421         (WebCore::HTMLObjectElement::setUseMap):
3422         (WebCore::HTMLObjectElement::vspace):
3423         (WebCore::HTMLObjectElement::setVspace):
3424         (WebCore::HTMLObjectElement::getSVGDocument):
3425         * html/HTMLObjectElement.h:
3426         * ksvg2/svg/SVGDocument.h:
3427         (WebCore::SVGDocument::isSVGDocument):
3428         * rendering/RenderWidget.h:
3429         (WebCore::RenderWidget::frameView):
3430
3431 2006-07-26  Alexey Proskuryakov  <ap@nypop.com>
3432
3433         Reviewed by Darin.
3434
3435         Fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9901
3436         XSLTProcessor cannot parse text nodes for INPUT ELEMENTS in an XSLT stylesheet
3437
3438         Test: fast/js/xhtml-serialize.html
3439
3440         * editing/markup.cpp:
3441         (WebCore::endMarkup): If the element has child nodes, write a closing tag even if it 
3442         is not permitted in HTML, to make it valid XML.
3443
3444 2006-07-26  Alice Liu  <alice.liu@apple.com>
3445
3446         Reviewed by John Sullivan (and Kevin and Timo).
3447
3448         landing this patch for John et al.  
3449         Fixed <rdar://problem/4651380> REGRESSION (9A232->9A234): existing web clips don't render if you restart Dashboard
3450
3451         * page/FrameView.cpp:
3452         (WebCore::FrameView::layout):
3453         moved the call to didFirstLayout to above the check for needsLayout
3454         because we need to call didFirstLayout for every webview, not just
3455         ones we think need layout.  
3456
3457 2006-07-26  Justin Garcia  <justin.garcia@apple.com>
3458
3459         Reviewed by darin
3460         
3461         <rdar://problem/4652788>
3462         REGRESSION: Can't change size or style of any text in message body
3463
3464         * dom/Node.cpp:
3465         (WebCore::Node::isContentRichlyEditable): Mimic Node::isContentEditable.
3466         * html/HTMLElement.cpp:
3467         (WebCore::HTMLElement::isContentRichlyEditable): First check
3468         the frame for editability, then userModify, like what
3469         HTMLElement::isContentEditable() does.
3470         * html/HTMLElement.h:
3471
3472 2006-07-26  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3473
3474         Reviewed by ap.
3475
3476         - fix debug-only information() string for table cells
3477
3478         * rendering/RenderObject.cpp:
3479         (WebCore::RenderObject::information):
3480
3481 2006-07-25  David Harrison  <harrison@apple.com>
3482
3483         Reviewed by timo and Darin.
3484
3485         <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
3486         
3487         * WebCore.xcodeproj/project.pbxproj:
3488         * bridge/mac/WebCoreFrameBridge.h:
3489         * bridge/mac/WebCoreFrameBridge.mm:
3490         (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
3491         Add matchStyle parameter for use by WebKit.
3492
3493 2006-07-25  Justin Garcia  <justin.garcia@apple.com>
3494
3495         Reviewed by adele
3496         
3497         <rdar://problem/4649560>
3498         REGRESSION: Can't Select All when the body is contentEditable="true"
3499
3500         * editing/VisiblePosition.cpp:
3501         (WebCore::VisiblePosition::canonicalPosition): Allow descent from a non-editable html
3502         element into an editable body as a convenience.
3503
3504 2006-07-25  Justin Garcia  <justin.garcia@apple.com>
3505
3506         Reviewed by darin
3507         
3508         <rdar://problem/4468458> Incoming HTML message is editable <body contenteditable="true">
3509
3510         * dom/Document.cpp:
3511         (WebCore::Document::inDesignMode): Removed some spaces.
3512         * page/Frame.cpp:
3513         (WebCore::Frame::applyEditingStyleToElement): Just add CSS properties needed for editing.
3514         (WebCore::Frame::removeEditingStyleFromElement): Made this a no-op, we'll remove
3515         it eventually.
3516
3517 2006-07-25  David Kilzer  <ddkilzer@kilzer.net>
3518
3519         Reviewed by Darin.
3520
3521         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9717
3522           Replace IDL ConvertUndefinedToTrue parameter attribute with Optional attribute
3523
3524         No test added because there is no change in functionality.
3525
3526         * bindings/js/kjs_binding.cpp: Removed valueToBooleanTreatUndefinedAsTrue() method.
3527         * bindings/js/kjs_binding.h: Ditto.
3528         * bindings/scripts/CodeGeneratorJS.pm: Removed support for ConvertUndefinedToTrue parameter attribute.
3529         * dom/Element.h: Set default value to true for scrollIntoView() and scrollIntoViewIfNeeded() arguments.
3530         * dom/Element.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
3531           Fixed name of scrollIntoViewIfNeeded() argument to match implementation.
3532         * page/DOMWindow.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
3533
3534 2006-07-24  Dan Waylonis  <waylonis@google.com>
3535
3536         Reviewed and tweaked a bunch by Darin.
3537
3538         Test: plugins/bindings-test.html
3539
3540         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9902
3541           jsNull and NSNull not properly converted between JS and ObjC
3542
3543         * bindings/objc/WebScriptObject.mm:
3544         (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:]):
3545         Added case that converts jsNull to NSNull.
3546
3547 2006-07-24  Darin Adler  <darin@apple.com>
3548
3549         Reviewed by Adele and Justin.
3550
3551         - fix <rdar://problem/4613616> REGRESSION: some spaces typed in <textarea> are posted as non-breaking spaces (9630)
3552           http://bugzilla.opendarwin.org/show_bug.cgi?id=9630
3553         - also fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=9939
3554           REGRESSION: Pasting text into native text area with newline at end does not preserve newline
3555         - removed some uses of DeprecatedPtrList in the markup code
3556
3557         Test: fast/forms/textarea-type-spaces.html
3558         Test: fast/forms/textarea-paste-newline.html
3559
3560         * bindings/objc/DOMHTML.mm: (-[DOMHTMLDocument cre