e91e18f83c1b56538b315df5b66f19038387ef06
[WebKit-https.git] / WebCore / ChangeLog
1 2007-12-03  Dan Bernstein  <mitz@apple.com>
2
3         Reviewed by Dave Hyatt.
4
5         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
6
7         Test: fast/events/resize-subframe.html
8
9         * page/FrameView.cpp:
10         (WebCore::FrameViewPrivate::FrameViewPrivate): Added a timer used when
11         deferring tasks that need to be done after layout.
12         (WebCore::FrameViewPrivate::reset):
13         (WebCore::FrameView::~FrameView):
14         (WebCore::FrameView::layout): Moved the updating of widget positions,
15         loading plug-ins and sending events queued up during layout into
16         performPostLayoutTasks(). performPostLayoutTasks() is called after
17         layout unless the layout was triggered by a previous layout's post-
18         layout tasks. In the latter case, performPostLayoutTasks() is scheduled
19         to run later.
20         (WebCore::FrameView::performPostLayoutTasks): Performs work that needs
21         to be done after layout but which can result in arbitrary code
22         execution and therefore may re-invalidate the layout. This includes
23         updating widget positions, loading plug-ins, and dispatching layout-
24         related DOM events (scroll, overflow and resize).
25         (WebCore::FrameView::postLayoutTimerFired):
26         (WebCore::FrameView::dispatchScheduledEvents):
27         * page/FrameView.h:
28         * page/mac/WebCoreFrameBridge.h:
29         * page/mac/WebCoreFrameBridge.mm: Removed -sendResizeEvent since this
30         is handled by FrameView now.
31
32 2007-12-03  Rob Buis  <buis@kde.org>
33
34         Reviewed by Darin.
35
36         http://bugs.webkit.org/show_bug.cgi?id=15767
37         Text decorations do not respect "visibility" property
38
39         Only paint decorations if visibility is "visible".
40
41         * rendering/SVGInlineTextBox.cpp:
42         (WebCore::SVGInlineTextBox::paintDecoration):
43
44 2007-12-03  Steve Falkenburg  <sfalken@apple.com>
45
46         Fix build.
47
48         * WebCore.vcproj/WebCore.vcproj:
49
50 2007-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
51
52         Reviewed by David.
53
54         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15645
55         Don't allow selectors to interfere with the SVG shadow tree (<use> internal non-exposed tree).
56
57         * css/CSSStyleSelector.cpp:
58         (WebCore::CSSStyleSelector::checkSelector):
59
60 2007-12-03  Dan Bernstein  <mitz@apple.com>
61
62         Reviewed by Adam Roben.
63
64         - fix <rdar://problem/5538651> REGRESSSION: domfuzz: null deref in WebCore::Document::canReplaceChild
65
66         Test: fast/dom/Document/replaceChild-null-oldChild.html
67
68         * dom/Document.cpp:
69         (WebCore::Document::canReplaceChild):
70
71 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
72
73         Reviewed by Simon.
74
75         * Avoid crashes by making sure everything is layouted before
76         we start painting. This avoids a crash in Widget::invalidateRect
77         because QPainter::begin would fail
78         * The QWebFrame::layout() methods and calls are left untouched because
79         this would be an API decision.
80         
81
82         WARNING: NO TEST CASES ADDED OR CHANGED
83
84         * page/FrameView.cpp:
85         (WebCore::FrameView::updateControlTints):
86         * page/FrameView.h:
87         * platform/ScrollView.h:
88         * platform/qt/ScrollViewQt.cpp:
89         (WebCore::ScrollView::children):
90
91 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
92
93         Reviewed by Simon.
94
95         * Implement GraphicsContext::fillRoundedRect similiar to the
96         CoreGraphics implementation only addPath is not called this
97         seems to be only needed for CoreGraphics.
98         
99
100         WARNING: NO TEST CASES ADDED OR CHANGED
101
102         * platform/graphics/qt/GraphicsContextQt.cpp:
103         (WebCore::GraphicsContext::fillRoundedRect):
104
105 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
106
107         Reviewed by Simon.
108
109         * Coding Style fixes
110         
111
112         WARNING: NO TEST CASES ADDED OR CHANGED
113
114         * platform/qt/ScrollViewQt.cpp:
115         (WebCore::ScrollView::addChild):
116         (WebCore::ScrollView::removeChild):
117
118 2007-12-03  Alp Toker  <alp@atoker.com>
119
120         Reviewed by Mark Rowe.
121
122         Don't delete the decoder if it's already been created. The one we have
123         is fine.
124
125         Cairo image cleanups. Nothing substantial.
126
127         Notify ImageObservers where appropriate.
128
129         * platform/graphics/cairo/ImageCairo.cpp:
130         (WebCore::BitmapImage::draw):
131         (WebCore::Image::drawPattern):
132         * platform/graphics/cairo/ImageSourceCairo.cpp:
133         (WebCore::ImageSource::setData):
134         * platform/graphics/gtk/ImageGtk.cpp:
135
136 2007-12-03  Simon Hausmann  <hausmann@webkit.org>
137
138         Reviewed by Lars.
139
140         Fixed crash when rendering form elements with Qt 4.4
141
142         QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the
143         help of QPaintDevice::devType().
144         Also fall back to the QApplication::style() if we don't have a widget.
145
146         * platform/qt/RenderThemeQt.cpp:
147         (WebCore::RenderThemeQt::paintButton):
148         (WebCore::RenderThemeQt::paintTextField):
149         (WebCore::RenderThemeQt::paintMenuList):
150         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
151
152 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
153
154         Reviewed by Sam Weinig.
155
156         * Add FrameLoader::shouldTreatSchemeAsLocal which is similar to
157         shouldTreatURLAsLocal.
158         * Make use of FrameLoader::shouldTreatSchemeAsLocal in SecurityOrigin
159         and do not hardcode "file". This is needed for the WebKit/qt port to make
160         the Web Inspector work as it using the qrc protocol instead of file.
161
162
163         * loader/FrameLoader.cpp:
164         (WebCore::FrameLoader::shouldTreatSchemeAsLocal):
165         * loader/FrameLoader.h:
166         * platform/SecurityOrigin.cpp:
167         (WebCore::SecurityOrigin::isSecureTransitionTo):
168
169 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
170
171         Rubber stamped by Sam Weinig.
172
173         Only add applewebdata to the localSchemes when building for the
174         mac. This is in preparation of adding qrc for the Qt port there
175         as well and http://bugs.webkit.org/show_bug.cgi?id=15938.
176
177         According to Anders applewebdata is not used on the win port.
178
179         * loader/FrameLoader.cpp:
180         (WebCore::localSchemes):
181
182 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
183
184         Rubber stamped by Sam Weinig.
185
186         Fix a typo. It is contains and not containts
187
188         * loader/FrameLoader.cpp:
189
190 2007-12-03  Alp Toker  <alp@atoker.com>
191
192         Add another missing DEPENDPATH.
193
194         Noticed when fixing the build.
195
196         * WebCore.pro:
197
198 2007-12-03  Adam Roben  <aroben@apple.com>
199
200         Speculative Windows build fix
201
202         * plugins/win/PluginViewWin.cpp:
203         (WebCore::getString):
204
205 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
206
207         Build fix: added symbols to the right .exp file.
208
209         * WebCore.base.exp:
210
211 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
212
213         Reviewed by Eric Seidel.
214
215         Updated to match the JavaScriptCore change to move virtual methods from
216         Interpreter to JSGlobalObject.
217         
218         Moved virtual ScriptInterpreter functions to Window.
219
220 2007-12-02  Darin Adler  <darin@apple.com>
221
222         Reviewed by Mitz.
223
224         - fix <rdar://problem/5601995> Hang/crash on http://ebay-uk.custhelp.com/
225
226         There were two problems here:
227
228             1) Incorrect HTMLCollection behavior led to us trying to insert a
229                new row inside an existing row instead of next to it. The fix for
230                this is to make HTMLCollection work better for table-related
231                collections.
232
233             2) HTMLTableRowElement::insertCell would return a bad pointer if
234                the insertion failed. The code should have failed, but not crashed,
235                so it's worth fixing that too.
236
237         While fixing the HTMLCollection issues, I did some clean-up of that
238         class and its derived classes.
239
240         Test: fast/dom/HTMLTableElement/rows.html
241         Test: fast/dom/HTMLTableElement/tBodies.html
242         Test: fast/dom/HTMLTableRowElement/cells.html
243         Test: fast/dom/HTMLTableRowElement/insertCell.html
244         Test: fast/dom/HTMLTableSectionElement/rows.html
245
246         * bindings/js/JSHTMLCollectionCustom.cpp:
247         (WebCore::toJS): Updated because collectionType() was renamed to type().
248
249         * html/HTMLCollection.cpp:
250         (WebCore::HTMLCollection::HTMLCollection): Updated for data member name
251         changes. Also added a protected constructor for use by derived classes
252         that pass in a CollectionInfo.
253         (WebCore::HTMLCollection::CollectionInfo::copyCacheMap): Moved out of
254         the header.
255         (WebCore::isTableSection): Added.
256         (WebCore::HTMLCollection::itemAfter): Renamed from traverseNextItem,
257         because the old name was grammatically incorrect and thus a bit confusing.
258         Changed to operate on Element* instead of Node*, and use 0 to start
259         rather than passing in the base node (required since the base node can be
260         a document, which is not an element). Generalized the code that made
261         NodeChildren not descend into deeper descendants so it can be used for
262         TRCells, TSectionRows, TableTBodies, and TableRows. Reformatted the
263         switch statement and got rid of the "found" boolean since we can just
264         return when we find something. Got rid of the default case, and instead
265         listed all the enum values. Also changed to use a for loop for clarity.
266         (WebCore::HTMLCollection::calcLength): Updated for itemAfter changes.
267         (WebCore::HTMLCollection::item): Ditto.
268         (WebCore::HTMLCollection::nextItem): Ditto.
269         (WebCore::HTMLCollection::checkForNameMatch): Updated to take an Element
270         instead of a Node pointer.
271         (WebCore::HTMLCollection::namedItem): More of the same.
272         (WebCore::HTMLCollection::updateNameCache): Ditto.
273         (WebCore::HTMLCollection::namedItems): Ditto.
274         (WebCore::HTMLCollection::nextNamedItem): Ditto.
275         (WebCore::HTMLCollection::tags): Ditto.
276
277         * html/HTMLCollection.h: Added a type FormElements, so that the
278         HTMLFormCollection would not have a type of DocImages, which is what
279         it previously did. Changed the base parameter to be a PassRefPtr to
280         make it clear we take ownership of it. Added a comment explaining
281         why we should change the name CollectionInfo. Made a lot more members
282         private instead of protected. Renamed traverseNextItem to itemAfter.
283         Changed most functions to take Element* instead of Node*.
284
285         * html/HTMLFormCollection.cpp:
286         (WebCore::HTMLFormCollection::formCollectionInfo): Added.
287         (WebCore::HTMLFormCollection::HTMLFormCollection): Updated to pass
288         collection info into the base class.
289         (WebCore::HTMLFormCollection::calcLength): Updated to use base() so we
290         don't need to get at m_base directly.
291         (WebCore::HTMLFormCollection::item): Same, but for info().
292         (WebCore::HTMLFormCollection::getNamedItem): Removed unused first
293         argument.
294         (WebCore::HTMLFormCollection::getNamedFormItem): Got rid of unneeded
295         checks that the base is still an element and still a form, since that's
296         guaranteed.
297         (WebCore::HTMLFormCollection::nextItem): Use info().
298         (WebCore::HTMLFormCollection::nextNamedItemInternal): Node instead of
299         Element, some name changes.
300         (WebCore::HTMLFormCollection::namedItem): Update for changes elsewhere.
301         (WebCore::HTMLFormCollection::nextNamedItem): Ditto, also rewrote loop
302         to be much simpler.
303         (WebCore::HTMLFormCollection::updateNameCache): More of the same.
304
305         * html/HTMLFormCollection.h: Changed constructor to take an
306         HTMLFormElement, using a PassRefPtr to communicate transfer of
307         ownership. Made everything private instead of protected. Removed
308         unneeded override of firstItem. Made getNamedItem and
309         nextNamedItemInternal non-virtual. Removed unused first argument of
310         getNamedItem. Added declaration of formCollectionInfo.
311
312         * html/HTMLNameCollection.cpp:
313         (WebCore::HTMLNameCollection::HTMLNameCollection): Updated to pass
314         collection info into the base class.
315         (WebCore::HTMLNameCollection::itemAfter): Reformatted a bit and
316         changed into a for loop.
317
318         * html/HTMLNameCollection.h: Updated for name changes. Made function
319         private instead of public. Used PassRefPtr in constructor.
320
321         * html/HTMLOptionsCollection.cpp:
322         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): Updated to
323         pass collection info into the base class.
324         (WebCore::HTMLOptionsCollection::add): Updated for public/private
325         changes in the base class.
326         (WebCore::HTMLOptionsCollection::selectedIndex): Ditto.
327         (WebCore::HTMLOptionsCollection::setSelectedIndex): Ditto.
328         (WebCore::HTMLOptionsCollection::setLength): Ditto.
329
330         * html/HTMLOptionsCollection.h: Changed constructor parameter to be a
331         PassRefPtr.
332
333         * html/HTMLTableRowElement.cpp:
334         (WebCore::HTMLTableRowElement::insertCell): Changed code to use RefPtr
335         and PassRefPtr since this creates a new object. This alone fixed the
336         crash. Also cleaned up logic a bit to be more readable.
337
338         * html/HTMLTableRowElement.h: Changed insertCell to return a PassRefPtr.
339         Also reordered functions a bit to make things a little more logical and
340         removed the unused ncols data member.
341
342         * html/HTMLTableSectionElement.cpp:
343         (WebCore::HTMLTableSectionElement::rows): Pass TSectionRows, not
344         TableRows. This mistake was harmless before because TableRows and
345         TSectionRows were handled identically inside HTMLCollection, but that is
346         no longer the case with this fix.
347
348         * bindings/scripts/CodeGeneratorJS.pm: Add an include to cope with the
349         fact that HTMLOptionsCollection no longer includes HTMLOptionElement.
350         I don't think this really should be a special case -- might be worth
351         returning later to see if this can be optimized.
352
353 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
354
355         Reviewed by Adam.
356
357         RenderSVGViewportContainer sets wrong width/height.
358         Share code with RenderSVGContainer in a central calcBounds() function.
359
360         Fixes:
361         - svg/custom/use-css-events.svg (http://bugs.webkit.org/show_bug.cgi?id=15403)
362         - svg/custom/deep-dynamic-updates.svg
363         - svg/custom/use-clipped-hit.svg
364         - svg/custom/image-clipped-hit.svg
365
366         * rendering/RenderSVGContainer.cpp:
367         (WebCore::RenderSVGContainer::layout):
368         (WebCore::RenderSVGContainer::calcBounds):
369         * rendering/RenderSVGContainer.h:
370         * rendering/RenderSVGViewportContainer.cpp:
371         (WebCore::RenderSVGViewportContainer::layout):
372
373 2007-12-02  Brady Eidson <beidson@apple.com>
374
375         Reviewed by Darin
376
377         databaseChanged notifications were being sent out on the database thread - they need to be on the main thread
378         like all other notifications we send out!
379
380         * platform/SecurityOriginData.cpp:
381         (WebCore::SecurityOriginData::copy): Add a deep copy method, for when an object thread hops
382         * platform/SecurityOriginData.h:
383
384         * storage/DatabaseTracker.cpp:
385         (WebCore::notificationMutex):
386         (WebCore::notificationQueue):
387         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged): Add the origin/name pair to a queue
388         (WebCore::DatabaseTracker::scheduleForNotification): Schedule to deliver this queue of notifications
389           on the main thread
390         (WebCore::DatabaseTracker::notifyDatabasesChanged): Deliver all notifications in the queue
391         * storage/DatabaseTracker.h:
392
393         * storage/SQLTransaction.cpp:
394         (WebCore::SQLTransaction::postflightAndCommit): scheduleNotifyDatabaseChanged() instead of "notify now!"
395         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
396
397 2007-12-02  Rob Buis  <buis@kde.org>
398
399         Reviewed by Darin.
400
401         http://bugs.webkit.org/show_bug.cgi?id=16002
402         Load SVG (and other) UA StyleSheets dynamically when needed
403
404         Load svg sheet when needed.
405
406         * css/CSSStyleSelector.cpp:
407         (WebCore::screenEval):
408         (WebCore::printEval):
409         (WebCore::CSSStyleSelector::CSSStyleSelector):
410         (WebCore::CSSStyleSelector::loadDefaultStyle):
411         (WebCore::CSSStyleSelector::styleForElement):
412         (WebCore::CSSRuleSet::addRulesFromSheet):
413
414 2007-12-02  Mark Rowe  <mrowe@apple.com>
415
416         Try and fix the Windows build.
417
418         * plugins/win/PluginViewWin.cpp:
419         (WebCore::PluginViewWin::bindingInstance):
420
421 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
422
423         Rubber stamped by Eric.
424
425         Move platform/graphics/svg to graphics/svg as discussed on webkit-dev.
426         Updated all project files.
427
428         * WebCore.pro:
429         * WebCore.vcproj/WebCore.vcproj:
430         * WebCore.xcodeproj/project.pbxproj:
431         * platform/graphics/svg: Removed.
432         * platform/graphics/svg/SVGImage.cpp: Removed.
433         * platform/graphics/svg/SVGImage.h: Removed.
434         * platform/graphics/svg/SVGImageEmptyClients.h: Removed.
435         * platform/graphics/svg/SVGPaintServer.cpp: Removed.
436         * platform/graphics/svg/SVGPaintServer.h: Removed.
437         * platform/graphics/svg/SVGPaintServerGradient.cpp: Removed.
438         * platform/graphics/svg/SVGPaintServerGradient.h: Removed.
439         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Removed.
440         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Removed.
441         * platform/graphics/svg/SVGPaintServerPattern.cpp: Removed.
442         * platform/graphics/svg/SVGPaintServerPattern.h: Removed.
443         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Removed.
444         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Removed.
445         * platform/graphics/svg/SVGPaintServerSolid.cpp: Removed.
446         * platform/graphics/svg/SVGPaintServerSolid.h: Removed.
447         * platform/graphics/svg/SVGResource.cpp: Removed.
448         * platform/graphics/svg/SVGResource.h: Removed.
449         * platform/graphics/svg/SVGResourceClipper.cpp: Removed.
450         * platform/graphics/svg/SVGResourceClipper.h: Removed.
451         * platform/graphics/svg/SVGResourceFilter.cpp: Removed.
452         * platform/graphics/svg/SVGResourceFilter.h: Removed.
453         * platform/graphics/svg/SVGResourceListener.h: Removed.
454         * platform/graphics/svg/SVGResourceMarker.cpp: Removed.
455         * platform/graphics/svg/SVGResourceMarker.h: Removed.
456         * platform/graphics/svg/SVGResourceMasker.cpp: Removed.
457         * platform/graphics/svg/SVGResourceMasker.h: Removed.
458         * platform/graphics/svg/cairo: Removed.
459         * platform/graphics/svg/cairo/RenderPathCairo.cpp: Removed.
460         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Removed.
461         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Removed.
462         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Removed.
463         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Removed.
464         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Removed.
465         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Removed.
466         * platform/graphics/svg/cg: Removed.
467         * platform/graphics/svg/cg/CgSupport.cpp: Removed.
468         * platform/graphics/svg/cg/CgSupport.h: Removed.
469         * platform/graphics/svg/cg/RenderPathCg.cpp: Removed.
470         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Removed.
471         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Removed.
472         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Removed.
473         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Removed.
474         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Removed.
475         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Removed.
476         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Removed.
477         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Removed.
478         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Removed.
479         * platform/graphics/svg/filters: Removed.
480         * platform/graphics/svg/filters/SVGDistantLightSource.h: Removed.
481         * platform/graphics/svg/filters/SVGFEBlend.cpp: Removed.
482         * platform/graphics/svg/filters/SVGFEBlend.h: Removed.
483         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Removed.
484         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Removed.
485         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Removed.
486         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Removed.
487         * platform/graphics/svg/filters/SVGFEComposite.cpp: Removed.
488         * platform/graphics/svg/filters/SVGFEComposite.h: Removed.
489         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Removed.
490         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Removed.
491         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Removed.
492         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Removed.
493         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Removed.
494         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Removed.
495         * platform/graphics/svg/filters/SVGFEFlood.cpp: Removed.
496         * platform/graphics/svg/filters/SVGFEFlood.h: Removed.
497         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Removed.
498         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Removed.
499         * platform/graphics/svg/filters/SVGFEImage.cpp: Removed.
500         * platform/graphics/svg/filters/SVGFEImage.h: Removed.
501         * platform/graphics/svg/filters/SVGFEMerge.cpp: Removed.
502         * platform/graphics/svg/filters/SVGFEMerge.h: Removed.
503         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Removed.
504         * platform/graphics/svg/filters/SVGFEMorphology.h: Removed.
505         * platform/graphics/svg/filters/SVGFEOffset.cpp: Removed.
506         * platform/graphics/svg/filters/SVGFEOffset.h: Removed.
507         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Removed.
508         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Removed.
509         * platform/graphics/svg/filters/SVGFETile.h: Removed.
510         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Removed.
511         * platform/graphics/svg/filters/SVGFETurbulence.h: Removed.
512         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Removed.
513         * platform/graphics/svg/filters/SVGFilterEffect.h: Removed.
514         * platform/graphics/svg/filters/SVGLightSource.cpp: Removed.
515         * platform/graphics/svg/filters/SVGLightSource.h: Removed.
516         * platform/graphics/svg/filters/SVGPointLightSource.h: Removed.
517         * platform/graphics/svg/filters/SVGSpotLightSource.h: Removed.
518         * platform/graphics/svg/filters/cg: Removed.
519         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Removed.
520         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Removed.
521         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Removed.
522         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Removed.
523         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Removed.
524         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Removed.
525         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Removed.
526         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Removed.
527         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Removed.
528         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Removed.
529         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Removed.
530         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Removed.
531         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Removed.
532         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Removed.
533         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Removed.
534         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Removed.
535         * platform/graphics/svg/filters/cg/WKArithmeticFilter.cikernel: Removed.
536         * platform/graphics/svg/filters/cg/WKArithmeticFilter.h: Removed.
537         * platform/graphics/svg/filters/cg/WKArithmeticFilter.m: Removed.
538         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.cikernel: Removed.
539         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.h: Removed.
540         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.m: Removed.
541         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.cikernel: Removed.
542         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.h: Removed.
543         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.m: Removed.
544         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.cikernel: Removed.
545         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.h: Removed.
546         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.m: Removed.
547         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.cikernel: Removed.
548         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.h: Removed.
549         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.m: Removed.
550         * platform/graphics/svg/filters/cg/WKDistantLightFilter.cikernel: Removed.
551         * platform/graphics/svg/filters/cg/WKDistantLightFilter.h: Removed.
552         * platform/graphics/svg/filters/cg/WKDistantLightFilter.m: Removed.
553         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.cikernel: Removed.
554         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.h: Removed.
555         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.m: Removed.
556         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.h: Removed.
557         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.m: Removed.
558         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.cikernel: Removed.
559         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.h: Removed.
560         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.m: Removed.
561         * platform/graphics/svg/filters/cg/WKNormalMapFilter.cikernel: Removed.
562         * platform/graphics/svg/filters/cg/WKNormalMapFilter.h: Removed.
563         * platform/graphics/svg/filters/cg/WKNormalMapFilter.m: Removed.
564         * platform/graphics/svg/filters/cg/WKPointLightFilter.cikernel: Removed.
565         * platform/graphics/svg/filters/cg/WKPointLightFilter.h: Removed.
566         * platform/graphics/svg/filters/cg/WKPointLightFilter.m: Removed.
567         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.cikernel: Removed.
568         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.h: Removed.
569         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.m: Removed.
570         * platform/graphics/svg/filters/cg/WKSpotLightFilter.cikernel: Removed.
571         * platform/graphics/svg/filters/cg/WKSpotLightFilter.h: Removed.
572         * platform/graphics/svg/filters/cg/WKSpotLightFilter.m: Removed.
573         * platform/graphics/svg/filters/cg/WKTableTransferFilter.cikernel: Removed.
574         * platform/graphics/svg/filters/cg/WKTableTransferFilter.h: Removed.
575         * platform/graphics/svg/filters/cg/WKTableTransferFilter.m: Removed.
576         * platform/graphics/svg/mac: Removed.
577         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Removed.
578         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Removed.
579         * platform/graphics/svg/qt: Removed.
580         * platform/graphics/svg/qt/RenderPathQt.cpp: Removed.
581         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Removed.
582         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Removed.
583         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Removed.
584         * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Removed.
585         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Removed.
586         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Removed.
587         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Removed.
588         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Removed.
589         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Removed.
590         * svg/graphics: Copied from platform/graphics/svg.
591
592 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
593
594         Reviewed by Maciej.
595
596         Fix IDL lookup in subdirectories. Missing 'my' prefix for the 'thisDir' variable.
597         When entering subdirectories the 'thisDir' variable got altered - see snippet:
598
599         THISDIR: WebCore/page FOUND FILE: FrameView.h (endCondition: 0)
600         ..
601         -> ENTER: WebCore/page/gtk (THIS DIR: WebCore/page)
602         ...
603         <- LEAVE: WebCore/page/gtk (THIS DIR: WebCore/page/gtk)
604         THISDIR: WebCore/page/gtk FOUND FILE: History.cpp (endCondition: 0)
605
606         'History.cpp' is located in WebCore/page not WebCore/page/gtk.
607
608         * bindings/scripts/CodeGenerator.pm:
609
610 2007-12-01  Alp Toker  <alp@atoker.com>
611
612         Reviewed by Adam Roben.
613
614         Add the newly introduced webkit.h convenience header.
615
616         * WebCore.pro:
617
618 2007-12-01  Antti Koivisto  <antti@apple.com>
619
620         Reviewed by Adam.
621         
622         - Fix crash when removing a loading media element from the tree.
623         - Follow the spec by invoking pause() when element is removed from the tree instead of unloading.
624
625         Tests: http/tests/media/remove-while-loading.html
626                media/remove-from-document.html
627
628         * html/HTMLMediaElement.cpp:
629         (WebCore::HTMLMediaElement::removedFromDocument):
630
631 2007-12-01  Geoffrey Garen  <ggaren@apple.com>
632
633         Reviewed by Beth Dakin.
634
635         Restored the test string in this test.
636
637         * manual-tests/window-open-features-parsing.html:
638
639 2007-11-30  Geoffrey Garen  <ggaren@apple.com>
640
641         Reviewed by Beth Dakin.
642         
643         Modified WebCore to follow the new JSGlobalObject/Interpreter ownership
644         rules in JavaScriptCore.
645
646         * bindings/js/kjs_binding.cpp:
647         * bindings/js/kjs_binding.h: Removed stale, unused 
648         interpreterForGlobalObject().
649
650         * bindings/js/kjs_proxy.cpp: Changed to store a global object, rather
651         than an interpreter.
652         (WebCore::KJSProxy::finishedWithEvent): Need to NULL check 
653         m_globalObject here because we no longer unnecessarily instantiate it.
654
655         * bindings/js/kjs_window.cpp:
656         (KJS::ScheduledAction::execute):
657         * bindings/js/kjs_window.h: Removed redundant and less efficient 
658         interpreter() function -- global objects have direct access to their
659         interpreters now.
660
661         Changed these functions to pass around JSGlobalObjects instead of 
662         Interpreters:
663
664         * page/Frame.cpp:
665         (WebCore::Frame::bindingRootObject):
666         (WebCore::Frame::createRootObject):
667         * page/Frame.h:
668         * page/mac/WebCoreFrameBridge.mm:
669         (createRootObject):
670
671 2007-12-01  Darin Adler  <darin@apple.com>
672
673         Reviewed by Mitz.
674
675         - fix problem tracked by these bugs:
676           http://bugs.webkit.org/show_bug.cgi?id=16097
677           <rdar://problem/5619305> Safari crashes during load of LexisNexis search results
678           <rdar://problem/5510779> CrashTracer: [USER] 25 crashes in Safari at
679           WebCore::DocumentLoader::isLoadingMultipartContent const
680
681         * loader/ImageDocument.cpp:
682         (WebCore::ImageDocument::createDocumentStructure): Create an ImageDocumentElement
683         instead of an HTMLImageElement.
684         (WebCore::ImageDocument::scale): Added a null check for m_imageElement.
685         (WebCore::ImageDocument::resizeImageToFit): Ditto.
686         (WebCore::ImageDocument::restoreImageSize): Ditto.
687         (WebCore::ImageDocument::imageFitsInWindow): Ditto.
688         (WebCore::ImageDocument::windowSizeChanged): Ditto.
689         (WebCore::ImageDocumentElement::~ImageDocumentElement): Call
690         disconnectImageElement so m_imageElement will be set to 0
691          if we're still connected to the document.
692         (WebCore::ImageDocumentElement::willMoveToNewOwnerDocument): Ditto.
693
694         * loader/ImageDocument.h: Changed image element type to be
695         ImageDocumentElement instead of HTMLImageElement. Also added
696         a disconnectImageElement function that sets m_imageElement to 0.
697
698 2007-12-01  Darin Adler  <darin@apple.com>
699
700         - remove the empty directories
701
702         * ksvg2: Removed.
703         * ksvg2/css: Removed.
704         * ksvg2/events: Removed.
705         * ksvg2/misc: Removed.
706         * ksvg2/scripts: Removed.
707
708 2007-12-01  Julien Chaffraix  <julien.chaffraix@gmail.com>
709
710         Bug 16189: XMLHttpRequest::setRequestHeader() should not set certain headers
711
712         Reviewed by Darin Adler.
713
714         * xml/XMLHttpRequest.cpp:
715         (WebCore::canSetRequestHeader):
716
717         Test: http/tests/xmlhttprequest/set-dangerous-headers.html
718
719 2007-12-01  Rahul Abrol  <ra5ul@comcast.net>
720
721         Reviewed by Adam Roben.
722
723         http://bugs.webkit.org/show_bug.cgi?id=16128
724         Ignore resizable=no for window.open().
725
726         * bindings/js/kjs_window.cpp:
727         (KJS::setWindowFeature):
728         (KJS::parseWindowFeatures):
729         * manual-tests/window-open-features-parsing.html:
730
731 2007-12-01  Dan Bernstein  <mitz@apple.com>
732
733         Reviewed by Darin Adler.
734
735         - fix <rdar://problem/5619240> REGRESSION (Leopard-r28069): Reproducible crash with a Mootools-based calendar picker (jump to null in FrameView::layout)
736
737         Test: fast/dynamic/subtree-common-root.html
738
739         * page/FrameView.cpp:
740         (WebCore::FrameView::layoutRoot): Added a parameter to let this method
741         return the layout root for a pending layout as well.
742         (WebCore::FrameView::scheduleRelayoutOfSubtree): Pass the new root
743         to markContainingBlocksForLayout(). Otherwise,
744         markContainingBlocksForLayout() could mark past the new root, if it had
745         previously been marked as having a normal child needing layout and then
746         was reached via a positioned child.
747         * page/FrameView.h:
748         * rendering/RenderBox.cpp:
749         (WebCore::RenderBox::calcWidth):
750         * rendering/RenderObject.cpp:
751         (WebCore::RenderObject::~RenderObject): Fixed the ASSERT so that
752         it would really catch deletion of the layout root.
753         (WebCore::RenderObject::markContainingBlocksForLayout): Added the
754         newRoot parameter, which tells this method where to stop marking.
755         * rendering/RenderObject.h:
756
757 2007-12-01  Dan Bernstein  <mitz@apple.com>
758
759         Reviewed by Darin Adler.
760
761         - fold FontStyle into TextRun
762
763         * WebCore.xcodeproj/project.pbxproj:
764         * platform/graphics/Font.cpp:
765         (WebCore::WidthIterator::WidthIterator):
766         (WebCore::WidthIterator::advance):
767         (WebCore::Font::width):
768         (WebCore::Font::drawSimpleText):
769         (WebCore::Font::drawGlyphBuffer):
770         (WebCore::Font::drawText):
771         (WebCore::Font::floatWidth):
772         (WebCore::Font::floatWidthForSimpleText):
773         (WebCore::Font::selectionRectForText):
774         (WebCore::Font::selectionRectForSimpleText):
775         (WebCore::Font::offsetForPosition):
776         (WebCore::Font::offsetForPositionForSimpleText):
777         * platform/graphics/Font.h:
778         (WebCore::TextRun::TextRun):
779         (WebCore::TextRun::setText):
780         (WebCore::TextRun::allowTabs):
781         (WebCore::TextRun::xPos):
782         (WebCore::TextRun::padding):
783         (WebCore::TextRun::rtl):
784         (WebCore::TextRun::ltr):
785         (WebCore::TextRun::directionalOverride):
786         (WebCore::TextRun::applyRunRounding):
787         (WebCore::TextRun::applyWordRounding):
788         (WebCore::TextRun::spacingDisabled):
789         (WebCore::TextRun::disableSpacing):
790         (WebCore::TextRun::disableRoundingHacks):
791         (WebCore::TextRun::setRTL):
792         (WebCore::TextRun::setDirectionalOverride):
793         * platform/graphics/FontStyle.h: Removed.
794         * platform/graphics/GraphicsContext.cpp:
795         (WebCore::GraphicsContext::drawText):
796         (WebCore::GraphicsContext::drawBidiText):
797         (WebCore::GraphicsContext::drawHighlightForText):
798         * platform/graphics/GraphicsContext.h:
799         * platform/graphics/StringTruncator.cpp:
800         (WebCore::stringWidth):
801         * platform/graphics/gtk/FontGtk.cpp:
802         (WebCore::Font::drawComplexText):
803         (WebCore::Font::floatWidthForComplexText):
804         (WebCore::Font::offsetForPositionForComplexText):
805         (WebCore::Font::selectionRectForComplexText):
806         * platform/graphics/mac/FontMac.mm:
807         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
808         (WebCore::addDirectionalOverride):
809         (WebCore::overrideLayoutOperation):
810         (WebCore::ATSULayoutParameters::initialize):
811         (WebCore::Font::selectionRectForComplexText):
812         (WebCore::Font::drawComplexText):
813         (WebCore::Font::floatWidthForComplexText):
814         (WebCore::Font::offsetForPositionForComplexText):
815         * platform/graphics/qt/FontQt.cpp:
816         (WebCore::generateComponents):
817         (WebCore::Font::drawText):
818         (WebCore::Font::width):
819         (WebCore::Font::offsetForPosition):
820         (WebCore::cursorToX):
821         (WebCore::Font::selectionRectForText):
822         * platform/graphics/win/FontWin.cpp:
823         (WebCore::Font::selectionRectForComplexText):
824         (WebCore::Font::drawComplexText):
825         (WebCore::Font::floatWidthForComplexText):
826         (WebCore::Font::offsetForPositionForComplexText):
827         * platform/graphics/wx/FontWx.cpp:
828         (WebCore::Font::selectionRectForComplexText):
829         (WebCore::Font::drawComplexText):
830         (WebCore::Font::floatWidthForComplexText):
831         (WebCore::Font::offsetForPositionForComplexText):
832         * platform/mac/WebCoreTextRenderer.mm:
833         (WebCoreDrawTextAtPoint):
834         (WebCoreTextFloatWidth):
835         * platform/win/PopupMenuWin.cpp:
836         (WebCore::PopupMenu::paint):
837         * platform/win/UniscribeController.cpp:
838         (WebCore::UniscribeController::UniscribeController):
839         (WebCore::UniscribeController::offsetForPosition):
840         (WebCore::UniscribeController::advance):
841         (WebCore::UniscribeController::itemizeShapeAndPlace):
842         (WebCore::UniscribeController::resetControlAndState):
843         (WebCore::UniscribeController::shapeAndPlaceItem):
844         * platform/win/UniscribeController.h:
845         * platform/win/WebCoreTextRenderer.cpp:
846         (WebCore::doDrawTextAtPoint):
847         * rendering/EllipsisBox.cpp:
848         (WebCore::EllipsisBox::paint):
849         * rendering/InlineTextBox.cpp:
850         (WebCore::InlineTextBox::selectionRect):
851         (WebCore::InlineTextBox::paint):
852         (WebCore::InlineTextBox::paintSelection):
853         (WebCore::InlineTextBox::paintCompositionBackground):
854         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
855         (WebCore::InlineTextBox::paintTextMatchMarker):
856         (WebCore::InlineTextBox::offsetForPosition):
857         (WebCore::InlineTextBox::positionForOffset):
858         * rendering/RenderFileUploadControl.cpp:
859         (WebCore::RenderFileUploadControl::paintObject):
860         (WebCore::RenderFileUploadControl::calcPrefWidths):
861         * rendering/RenderImage.cpp:
862         * rendering/RenderListBox.cpp:
863         (WebCore::RenderListBox::updateFromElement):
864         (WebCore::RenderListBox::paintItemForeground):
865         * rendering/RenderMenuList.cpp:
866         (WebCore::RenderMenuList::updateOptionsWidth):
867         * rendering/RenderText.cpp:
868         (WebCore::RenderText::widthFromCache):
869         (WebCore::RenderText::calcPrefWidths):
870         (WebCore::RenderText::width):
871         * rendering/RenderText.h:
872         (WebCore::RenderText::allowTabs):
873         * rendering/RenderTextControl.cpp:
874         (WebCore::RenderTextControl::calcPrefWidths):
875         * rendering/SVGInlineTextBox.cpp:
876         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
877         (WebCore::SVGInlineTextBox::paintCharacters):
878         (WebCore::SVGInlineTextBox::paintSelection):
879         * rendering/SVGRootInlineBox.cpp:
880         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
881         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
882         (WebCore::svgTextRunForInlineTextBox):
883         * rendering/SVGRootInlineBox.h:
884
885 2007-12-01  Adam Treat  <treat@kde.org>
886
887         Reviewed by Simon.
888
889         * Don't hide symbols when in Debug mode
890         * On Linux (glibc) provide a backtrace in the test output for debugging purposes
891
892         * WebCore.pro:
893
894 2007-11-30  Alp Toker  <alp@atoker.com>
895
896         Reviewed by Adam Roben.
897
898         http://bugs.webkit.org/show_bug.cgi?id=15691
899         [GTK] Public API does not follow GTK+ conventions
900
901         Refactor the WebKit/GTK+ public API. Changes:
902           WebKitPage -> WebKitWebView
903           WebKitFrame -> WebKitWebFrame
904
905         Public API source and header names have been updated to mirror the API
906         changes.
907
908         The API is now kept in WebKit/gtk/WebView to match other ports in the
909         same class such as Mac and Win.
910
911         * WebCore.pro:
912
913 2007-11-30   Anders Carlsson  <andersca@apple.com>
914
915         Add platform/text project group.
916         
917         * WebCore.vcproj/WebCore.vcproj:
918
919 2007-11-30   Anders Carlsson  <andersca@apple.com>
920
921         Remove extra </Filter> tag which prevented the vcproj from being parsed correctly.
922         
923         * WebCore.vcproj/WebCore.vcproj:
924
925 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
926
927         Not reviewed. Try to fix qt/gtk build.
928
929         * WebCore.pro:
930
931 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
932
933         Rubber stamped by Eric.
934
935         Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
936         by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
937         mailing list and on IRC with David/Darin & Eric.
938
939         Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
940
941         * DerivedSources.make:
942         * WebCore.pro:
943         * WebCore.vcproj/WebCore.vcproj:
944         * WebCore.xcodeproj/project.pbxproj:
945         * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
946         * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
947         * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
948         * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
949         * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
950         * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
951         * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
952         * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
953         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
954         * ksvg2/css/SVGCSSParser.cpp: Removed.
955         * ksvg2/css/SVGCSSPropertyNames.in: Removed.
956         * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
957         * ksvg2/css/SVGCSSValueKeywords.in: Removed.
958         * ksvg2/css/SVGRenderStyle.cpp: Removed.
959         * ksvg2/css/SVGRenderStyle.h: Removed.
960         * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
961         * ksvg2/css/SVGRenderStyleDefs.h: Removed.
962         * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
963         * ksvg2/events/JSSVGLazyEventListener.h: Removed.
964         * ksvg2/events/SVGZoomEvent.cpp: Removed.
965         * ksvg2/events/SVGZoomEvent.h: Removed.
966         * ksvg2/events/SVGZoomEvent.idl: Removed.
967         * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
968         * ksvg2/misc/PointerEventsHitRules.h: Removed.
969         * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
970         * ksvg2/misc/SVGDocumentExtensions.h: Removed.
971         * ksvg2/misc/SVGImageLoader.cpp: Removed.
972         * ksvg2/misc/SVGImageLoader.h: Removed.
973         * ksvg2/misc/SVGTimer.cpp: Removed.
974         * ksvg2/misc/SVGTimer.h: Removed.
975         * ksvg2/misc/TimeScheduler.cpp: Removed.
976         * ksvg2/misc/TimeScheduler.h: Removed.
977         * ksvg2/misc/xlinkattrs.in: Removed.
978         * ksvg2/scripts/make_names.pl: Removed.
979         * ksvg2/svg: Removed.
980         * ksvg2/svg/ColorDistance.cpp: Removed.
981         * ksvg2/svg/ColorDistance.h: Removed.
982         * ksvg2/svg/GradientAttributes.h: Removed.
983         * ksvg2/svg/LinearGradientAttributes.h: Removed.
984         * ksvg2/svg/PatternAttributes.h: Removed.
985         * ksvg2/svg/RadialGradientAttributes.h: Removed.
986         * ksvg2/svg/SVGAElement.cpp: Removed.
987         * ksvg2/svg/SVGAElement.h: Removed.
988         * ksvg2/svg/SVGAElement.idl: Removed.
989         * ksvg2/svg/SVGAngle.cpp: Removed.
990         * ksvg2/svg/SVGAngle.h: Removed.
991         * ksvg2/svg/SVGAngle.idl: Removed.
992         * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
993         * ksvg2/svg/SVGAnimateColorElement.h: Removed.
994         * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
995         * ksvg2/svg/SVGAnimateElement.cpp: Removed.
996         * ksvg2/svg/SVGAnimateElement.h: Removed.
997         * ksvg2/svg/SVGAnimateElement.idl: Removed.
998         * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
999         * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
1000         * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
1001         * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
1002         * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
1003         * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
1004         * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
1005         * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
1006         * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
1007         * ksvg2/svg/SVGAnimatedLength.idl: Removed.
1008         * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
1009         * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
1010         * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
1011         * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
1012         * ksvg2/svg/SVGAnimatedPathData.h: Removed.
1013         * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
1014         * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
1015         * ksvg2/svg/SVGAnimatedPoints.h: Removed.
1016         * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
1017         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
1018         * ksvg2/svg/SVGAnimatedRect.idl: Removed.
1019         * ksvg2/svg/SVGAnimatedString.idl: Removed.
1020         * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
1021         * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
1022         * ksvg2/svg/SVGAnimationElement.cpp: Removed.
1023         * ksvg2/svg/SVGAnimationElement.h: Removed.
1024         * ksvg2/svg/SVGAnimationElement.idl: Removed.
1025         * ksvg2/svg/SVGCircleElement.cpp: Removed.
1026         * ksvg2/svg/SVGCircleElement.h: Removed.
1027         * ksvg2/svg/SVGCircleElement.idl: Removed.
1028         * ksvg2/svg/SVGClipPathElement.cpp: Removed.
1029         * ksvg2/svg/SVGClipPathElement.h: Removed.
1030         * ksvg2/svg/SVGClipPathElement.idl: Removed.
1031         * ksvg2/svg/SVGColor.cpp: Removed.
1032         * ksvg2/svg/SVGColor.h: Removed.
1033         * ksvg2/svg/SVGColor.idl: Removed.
1034         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
1035         * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
1036         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
1037         * ksvg2/svg/SVGCursorElement.cpp: Removed.
1038         * ksvg2/svg/SVGCursorElement.h: Removed.
1039         * ksvg2/svg/SVGCursorElement.idl: Removed.
1040         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
1041         * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
1042         * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
1043         * ksvg2/svg/SVGDefsElement.cpp: Removed.
1044         * ksvg2/svg/SVGDefsElement.h: Removed.
1045         * ksvg2/svg/SVGDefsElement.idl: Removed.
1046         * ksvg2/svg/SVGDescElement.cpp: Removed.
1047         * ksvg2/svg/SVGDescElement.h: Removed.
1048         * ksvg2/svg/SVGDescElement.idl: Removed.
1049         * ksvg2/svg/SVGDocument.cpp: Removed.
1050         * ksvg2/svg/SVGDocument.h: Removed.
1051         * ksvg2/svg/SVGDocument.idl: Removed.
1052         * ksvg2/svg/SVGElement.cpp: Removed.
1053         * ksvg2/svg/SVGElement.h: Removed.
1054         * ksvg2/svg/SVGElement.idl: Removed.
1055         * ksvg2/svg/SVGElementInstance.cpp: Removed.
1056         * ksvg2/svg/SVGElementInstance.h: Removed.
1057         * ksvg2/svg/SVGElementInstance.idl: Removed.
1058         * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
1059         * ksvg2/svg/SVGElementInstanceList.h: Removed.
1060         * ksvg2/svg/SVGElementInstanceList.idl: Removed.
1061         * ksvg2/svg/SVGEllipseElement.cpp: Removed.
1062         * ksvg2/svg/SVGEllipseElement.h: Removed.
1063         * ksvg2/svg/SVGEllipseElement.idl: Removed.
1064         * ksvg2/svg/SVGException.h: Removed.
1065         * ksvg2/svg/SVGException.idl: Removed.
1066         * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
1067         * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
1068         * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
1069         * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
1070         * ksvg2/svg/SVGFEBlendElement.h: Removed.
1071         * ksvg2/svg/SVGFEBlendElement.idl: Removed.
1072         * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
1073         * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
1074         * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
1075         * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
1076         * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
1077         * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
1078         * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
1079         * ksvg2/svg/SVGFECompositeElement.h: Removed.
1080         * ksvg2/svg/SVGFECompositeElement.idl: Removed.
1081         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
1082         * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
1083         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
1084         * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
1085         * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
1086         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
1087         * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
1088         * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
1089         * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
1090         * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
1091         * ksvg2/svg/SVGFEFloodElement.h: Removed.
1092         * ksvg2/svg/SVGFEFloodElement.idl: Removed.
1093         * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
1094         * ksvg2/svg/SVGFEFuncAElement.h: Removed.
1095         * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
1096         * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
1097         * ksvg2/svg/SVGFEFuncBElement.h: Removed.
1098         * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
1099         * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
1100         * ksvg2/svg/SVGFEFuncGElement.h: Removed.
1101         * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
1102         * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
1103         * ksvg2/svg/SVGFEFuncRElement.h: Removed.
1104         * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
1105         * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
1106         * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
1107         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
1108         * ksvg2/svg/SVGFEImageElement.cpp: Removed.
1109         * ksvg2/svg/SVGFEImageElement.h: Removed.
1110         * ksvg2/svg/SVGFEImageElement.idl: Removed.
1111         * ksvg2/svg/SVGFELightElement.cpp: Removed.
1112         * ksvg2/svg/SVGFELightElement.h: Removed.
1113         * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
1114         * ksvg2/svg/SVGFEMergeElement.h: Removed.
1115         * ksvg2/svg/SVGFEMergeElement.idl: Removed.
1116         * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
1117         * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
1118         * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
1119         * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
1120         * ksvg2/svg/SVGFEOffsetElement.h: Removed.
1121         * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
1122         * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
1123         * ksvg2/svg/SVGFEPointLightElement.h: Removed.
1124         * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
1125         * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
1126         * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
1127         * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
1128         * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
1129         * ksvg2/svg/SVGFESpotLightElement.h: Removed.
1130         * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
1131         * ksvg2/svg/SVGFETileElement.cpp: Removed.
1132         * ksvg2/svg/SVGFETileElement.h: Removed.
1133         * ksvg2/svg/SVGFETileElement.idl: Removed.
1134         * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
1135         * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
1136         * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
1137         * ksvg2/svg/SVGFilterElement.cpp: Removed.
1138         * ksvg2/svg/SVGFilterElement.h: Removed.
1139         * ksvg2/svg/SVGFilterElement.idl: Removed.
1140         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
1141         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
1142         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
1143         * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
1144         * ksvg2/svg/SVGFitToViewBox.h: Removed.
1145         * ksvg2/svg/SVGFitToViewBox.idl: Removed.
1146         * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
1147         * ksvg2/svg/SVGFontFaceElement.h: Removed.
1148         * ksvg2/svg/SVGFontFaceElement.idl: Removed.
1149         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
1150         * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
1151         * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
1152         * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
1153         * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
1154         * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
1155         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
1156         * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
1157         * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
1158         * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
1159         * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
1160         * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
1161         * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
1162         * ksvg2/svg/SVGForeignObjectElement.h: Removed.
1163         * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
1164         * ksvg2/svg/SVGGElement.cpp: Removed.
1165         * ksvg2/svg/SVGGElement.h: Removed.
1166         * ksvg2/svg/SVGGElement.idl: Removed.
1167         * ksvg2/svg/SVGGradientElement.cpp: Removed.
1168         * ksvg2/svg/SVGGradientElement.h: Removed.
1169         * ksvg2/svg/SVGGradientElement.idl: Removed.
1170         * ksvg2/svg/SVGImageElement.cpp: Removed.
1171         * ksvg2/svg/SVGImageElement.h: Removed.
1172         * ksvg2/svg/SVGImageElement.idl: Removed.
1173         * ksvg2/svg/SVGLangSpace.cpp: Removed.
1174         * ksvg2/svg/SVGLangSpace.h: Removed.
1175         * ksvg2/svg/SVGLangSpace.idl: Removed.
1176         * ksvg2/svg/SVGLength.cpp: Removed.
1177         * ksvg2/svg/SVGLength.h: Removed.
1178         * ksvg2/svg/SVGLength.idl: Removed.
1179         * ksvg2/svg/SVGLengthList.cpp: Removed.
1180         * ksvg2/svg/SVGLengthList.h: Removed.
1181         * ksvg2/svg/SVGLengthList.idl: Removed.
1182         * ksvg2/svg/SVGLineElement.cpp: Removed.
1183         * ksvg2/svg/SVGLineElement.h: Removed.
1184         * ksvg2/svg/SVGLineElement.idl: Removed.
1185         * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
1186         * ksvg2/svg/SVGLinearGradientElement.h: Removed.
1187         * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
1188         * ksvg2/svg/SVGList.h: Removed.
1189         * ksvg2/svg/SVGListTraits.h: Removed.
1190         * ksvg2/svg/SVGLocatable.cpp: Removed.
1191         * ksvg2/svg/SVGLocatable.h: Removed.
1192         * ksvg2/svg/SVGLocatable.idl: Removed.
1193         * ksvg2/svg/SVGMPathElement.cpp: Removed.
1194         * ksvg2/svg/SVGMPathElement.h: Removed.
1195         * ksvg2/svg/SVGMarkerElement.cpp: Removed.
1196         * ksvg2/svg/SVGMarkerElement.h: Removed.
1197         * ksvg2/svg/SVGMarkerElement.idl: Removed.
1198         * ksvg2/svg/SVGMaskElement.cpp: Removed.
1199         * ksvg2/svg/SVGMaskElement.h: Removed.
1200         * ksvg2/svg/SVGMaskElement.idl: Removed.
1201         * ksvg2/svg/SVGMatrix.idl: Removed.
1202         * ksvg2/svg/SVGMetadataElement.cpp: Removed.
1203         * ksvg2/svg/SVGMetadataElement.h: Removed.
1204         * ksvg2/svg/SVGMetadataElement.idl: Removed.
1205         * ksvg2/svg/SVGNumber.idl: Removed.
1206         * ksvg2/svg/SVGNumberList.cpp: Removed.
1207         * ksvg2/svg/SVGNumberList.h: Removed.
1208         * ksvg2/svg/SVGNumberList.idl: Removed.
1209         * ksvg2/svg/SVGPaint.cpp: Removed.
1210         * ksvg2/svg/SVGPaint.h: Removed.
1211         * ksvg2/svg/SVGPaint.idl: Removed.
1212         * ksvg2/svg/SVGParserUtilities.cpp: Removed.
1213         * ksvg2/svg/SVGParserUtilities.h: Removed.
1214         * ksvg2/svg/SVGPathElement.cpp: Removed.
1215         * ksvg2/svg/SVGPathElement.h: Removed.
1216         * ksvg2/svg/SVGPathElement.idl: Removed.
1217         * ksvg2/svg/SVGPathSeg.h: Removed.
1218         * ksvg2/svg/SVGPathSeg.idl: Removed.
1219         * ksvg2/svg/SVGPathSegArc.cpp: Removed.
1220         * ksvg2/svg/SVGPathSegArc.h: Removed.
1221         * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
1222         * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
1223         * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
1224         * ksvg2/svg/SVGPathSegClosePath.h: Removed.
1225         * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
1226         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
1227         * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
1228         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
1229         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
1230         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
1231         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
1232         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
1233         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
1234         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
1235         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
1236         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
1237         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
1238         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
1239         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
1240         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
1241         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
1242         * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
1243         * ksvg2/svg/SVGPathSegLineto.h: Removed.
1244         * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
1245         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
1246         * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
1247         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
1248         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
1249         * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
1250         * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
1251         * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
1252         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
1253         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
1254         * ksvg2/svg/SVGPathSegList.cpp: Removed.
1255         * ksvg2/svg/SVGPathSegList.h: Removed.
1256         * ksvg2/svg/SVGPathSegList.idl: Removed.
1257         * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
1258         * ksvg2/svg/SVGPathSegMoveto.h: Removed.
1259         * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
1260         * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
1261         * ksvg2/svg/SVGPatternElement.cpp: Removed.
1262         * ksvg2/svg/SVGPatternElement.h: Removed.
1263         * ksvg2/svg/SVGPatternElement.idl: Removed.
1264         * ksvg2/svg/SVGPoint.idl: Removed.
1265         * ksvg2/svg/SVGPointList.cpp: Removed.
1266         * ksvg2/svg/SVGPointList.h: Removed.
1267         * ksvg2/svg/SVGPointList.idl: Removed.
1268         * ksvg2/svg/SVGPolyElement.cpp: Removed.
1269         * ksvg2/svg/SVGPolyElement.h: Removed.
1270         * ksvg2/svg/SVGPolygonElement.cpp: Removed.
1271         * ksvg2/svg/SVGPolygonElement.h: Removed.
1272         * ksvg2/svg/SVGPolygonElement.idl: Removed.
1273         * ksvg2/svg/SVGPolylineElement.cpp: Removed.
1274         * ksvg2/svg/SVGPolylineElement.h: Removed.
1275         * ksvg2/svg/SVGPolylineElement.idl: Removed.
1276         * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
1277         * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
1278         * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
1279         * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
1280         * ksvg2/svg/SVGRadialGradientElement.h: Removed.
1281         * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
1282         * ksvg2/svg/SVGRect.idl: Removed.
1283         * ksvg2/svg/SVGRectElement.cpp: Removed.
1284         * ksvg2/svg/SVGRectElement.h: Removed.
1285         * ksvg2/svg/SVGRectElement.idl: Removed.
1286         * ksvg2/svg/SVGRenderingIntent.h: Removed.
1287         * ksvg2/svg/SVGRenderingIntent.idl: Removed.
1288         * ksvg2/svg/SVGSVGElement.cpp: Removed.
1289         * ksvg2/svg/SVGSVGElement.h: Removed.
1290         * ksvg2/svg/SVGSVGElement.idl: Removed.
1291         * ksvg2/svg/SVGScriptElement.cpp: Removed.
1292         * ksvg2/svg/SVGScriptElement.h: Removed.
1293         * ksvg2/svg/SVGScriptElement.idl: Removed.
1294         * ksvg2/svg/SVGSetElement.cpp: Removed.
1295         * ksvg2/svg/SVGSetElement.h: Removed.
1296         * ksvg2/svg/SVGSetElement.idl: Removed.
1297         * ksvg2/svg/SVGStopElement.cpp: Removed.
1298         * ksvg2/svg/SVGStopElement.h: Removed.
1299         * ksvg2/svg/SVGStopElement.idl: Removed.
1300         * ksvg2/svg/SVGStringList.cpp: Removed.
1301         * ksvg2/svg/SVGStringList.h: Removed.
1302         * ksvg2/svg/SVGStringList.idl: Removed.
1303         * ksvg2/svg/SVGStylable.cpp: Removed.
1304         * ksvg2/svg/SVGStylable.h: Removed.
1305         * ksvg2/svg/SVGStylable.idl: Removed.
1306         * ksvg2/svg/SVGStyleElement.cpp: Removed.
1307         * ksvg2/svg/SVGStyleElement.h: Removed.
1308         * ksvg2/svg/SVGStyleElement.idl: Removed.
1309         * ksvg2/svg/SVGStyledElement.cpp: Removed.
1310         * ksvg2/svg/SVGStyledElement.h: Removed.
1311         * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
1312         * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
1313         * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
1314         * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
1315         * ksvg2/svg/SVGSwitchElement.cpp: Removed.
1316         * ksvg2/svg/SVGSwitchElement.h: Removed.
1317         * ksvg2/svg/SVGSwitchElement.idl: Removed.
1318         * ksvg2/svg/SVGSymbolElement.cpp: Removed.
1319         * ksvg2/svg/SVGSymbolElement.h: Removed.
1320         * ksvg2/svg/SVGSymbolElement.idl: Removed.
1321         * ksvg2/svg/SVGTRefElement.cpp: Removed.
1322         * ksvg2/svg/SVGTRefElement.h: Removed.
1323         * ksvg2/svg/SVGTRefElement.idl: Removed.
1324         * ksvg2/svg/SVGTSpanElement.cpp: Removed.
1325         * ksvg2/svg/SVGTSpanElement.h: Removed.
1326         * ksvg2/svg/SVGTSpanElement.idl: Removed.
1327         * ksvg2/svg/SVGTests.cpp: Removed.
1328         * ksvg2/svg/SVGTests.h: Removed.
1329         * ksvg2/svg/SVGTests.idl: Removed.
1330         * ksvg2/svg/SVGTextContentElement.cpp: Removed.
1331         * ksvg2/svg/SVGTextContentElement.h: Removed.
1332         * ksvg2/svg/SVGTextContentElement.idl: Removed.
1333         * ksvg2/svg/SVGTextElement.cpp: Removed.
1334         * ksvg2/svg/SVGTextElement.h: Removed.
1335         * ksvg2/svg/SVGTextElement.idl: Removed.
1336         * ksvg2/svg/SVGTextPathElement.cpp: Removed.
1337         * ksvg2/svg/SVGTextPathElement.h: Removed.
1338         * ksvg2/svg/SVGTextPathElement.idl: Removed.
1339         * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
1340         * ksvg2/svg/SVGTextPositioningElement.h: Removed.
1341         * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
1342         * ksvg2/svg/SVGTitleElement.cpp: Removed.
1343         * ksvg2/svg/SVGTitleElement.h: Removed.
1344         * ksvg2/svg/SVGTitleElement.idl: Removed.
1345         * ksvg2/svg/SVGTransform.cpp: Removed.
1346         * ksvg2/svg/SVGTransform.h: Removed.
1347         * ksvg2/svg/SVGTransform.idl: Removed.
1348         * ksvg2/svg/SVGTransformDistance.cpp: Removed.
1349         * ksvg2/svg/SVGTransformDistance.h: Removed.
1350         * ksvg2/svg/SVGTransformList.cpp: Removed.
1351         * ksvg2/svg/SVGTransformList.h: Removed.
1352         * ksvg2/svg/SVGTransformList.idl: Removed.
1353         * ksvg2/svg/SVGTransformable.cpp: Removed.
1354         * ksvg2/svg/SVGTransformable.h: Removed.
1355         * ksvg2/svg/SVGTransformable.idl: Removed.
1356         * ksvg2/svg/SVGURIReference.cpp: Removed.
1357         * ksvg2/svg/SVGURIReference.h: Removed.
1358         * ksvg2/svg/SVGURIReference.idl: Removed.
1359         * ksvg2/svg/SVGUnitTypes.h: Removed.
1360         * ksvg2/svg/SVGUnitTypes.idl: Removed.
1361         * ksvg2/svg/SVGUseElement.cpp: Removed.
1362         * ksvg2/svg/SVGUseElement.h: Removed.
1363         * ksvg2/svg/SVGUseElement.idl: Removed.
1364         * ksvg2/svg/SVGViewElement.cpp: Removed.
1365         * ksvg2/svg/SVGViewElement.h: Removed.
1366         * ksvg2/svg/SVGViewElement.idl: Removed.
1367         * ksvg2/svg/SVGViewSpec.cpp: Removed.
1368         * ksvg2/svg/SVGViewSpec.h: Removed.
1369         * ksvg2/svg/SVGViewSpec.idl: Removed.
1370         * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
1371         * ksvg2/svg/SVGZoomAndPan.h: Removed.
1372         * ksvg2/svg/SVGZoomAndPan.idl: Removed.
1373         * ksvg2/svg/svgattrs.in: Removed.
1374         * ksvg2/svg/svgtags.in: Removed.
1375         * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
1376         * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
1377         * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
1378         * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
1379         * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
1380         * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
1381         * svg: Copied from ksvg2/svg.
1382         * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
1383         * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
1384         * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
1385         * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
1386         * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
1387         * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
1388         * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
1389         * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
1390         * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
1391         * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
1392         * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
1393         * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
1394
1395 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
1396
1397         wx build fix. Add WebCore/platform/graphics/wx to includes.
1398
1399         * webcore-wx.bkl:
1400
1401 2007-11-30  Brady Eidson  <beidson@apple.com>
1402
1403         Reviewed by Geoff
1404
1405         Further hookup of Database API
1406         With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
1407         result in a didModifyDatabase notification when the transaction is successfully committed
1408
1409         * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
1410         (WebCore::DatabaseAuthorizer::reset):
1411         (WebCore::DatabaseAuthorizer::createTable):
1412         (WebCore::DatabaseAuthorizer::allowAlterTable):
1413         (WebCore::DatabaseAuthorizer::createIndex):
1414         (WebCore::DatabaseAuthorizer::createTrigger):
1415         (WebCore::DatabaseAuthorizer::createVTable):
1416         (WebCore::DatabaseAuthorizer::allowInsert):
1417         (WebCore::DatabaseAuthorizer::allowUpdate):
1418         * storage/DatabaseAuthorizer.h:
1419         (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
1420
1421         * storage/DatabaseTracker.cpp:
1422         (WebCore::DatabaseTracker::notifyDatabaseChanged): Added.  Allow external entities (SQLTransaction) to be able
1423           to request a didModifyDatabase notification to the delegate
1424         * storage/DatabaseTracker.h:
1425
1426         * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of 
1427           a transaction resulted in a change to the database.
1428         (WebCore::SQLTransaction::SQLTransaction):
1429         (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
1430           statement occurred
1431         (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
1432         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
1433         * storage/SQLTransaction.h:
1434
1435 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1436
1437         Rubber stamped by David.
1438
1439         Next round of moves - platform reorganization.
1440         Move text/font/glyph related files from the individual port directories
1441         into platform/text/<port> or platform/graphics/<port>.
1442
1443         * DerivedSources.make:
1444         * WebCore.pro:
1445         * WebCore.vcproj/WebCore.vcproj:
1446         * WebCore.xcodeproj/project.pbxproj:
1447         * platform/cf/StringCF.cpp: Removed.
1448         * platform/cf/StringImplCF.cpp: Removed.
1449         * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
1450         * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
1451         * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
1452         * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
1453         * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
1454         * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
1455         * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
1456         * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
1457         * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
1458         * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
1459         * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
1460         * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
1461         * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
1462         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
1463         * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
1464         * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
1465         * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
1466         * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
1467         * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
1468         * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
1469         * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
1470         * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
1471         * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
1472         * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
1473         * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
1474         * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
1475         * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
1476         * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
1477         * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
1478         * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
1479         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
1480         * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
1481         * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
1482         * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
1483         * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
1484         * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
1485         * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
1486         * platform/gtk/FontCacheGtk.cpp: Removed.
1487         * platform/gtk/FontDataGtk.cpp: Removed.
1488         * platform/gtk/FontGtk.cpp: Removed.
1489         * platform/gtk/FontPlatformData.h: Removed.
1490         * platform/gtk/FontPlatformDataGtk.cpp: Removed.
1491         * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
1492         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
1493         * platform/mac/FontCacheMac.mm: Removed.
1494         * platform/mac/FontCustomPlatformData.cpp: Removed.
1495         * platform/mac/FontCustomPlatformData.h: Removed.
1496         * platform/mac/FontDataMac.mm: Removed.
1497         * platform/mac/FontMac.mm: Removed.
1498         * platform/mac/FontPlatformData.h: Removed.
1499         * platform/mac/FontPlatformDataMac.mm: Removed.
1500         * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
1501         * platform/mac/ShapeArabic.c: Removed.
1502         * platform/mac/ShapeArabic.h: Removed.
1503         * platform/mac/StringImplMac.mm: Removed.
1504         * platform/mac/StringMac.mm: Removed.
1505         * platform/mac/TextBoundaries.mm: Removed.
1506         * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
1507         * platform/mac/TextCodecMac.cpp: Removed.
1508         * platform/mac/TextCodecMac.h: Removed.
1509         * platform/mac/character-sets.txt: Removed.
1510         * platform/mac/mac-encodings.txt: Removed.
1511         * platform/mac/make-charset-table.pl: Removed.
1512         * platform/qt/FontCacheQt.cpp: Removed.
1513         * platform/qt/FontCustomPlatformData.cpp: Removed.
1514         * platform/qt/FontCustomPlatformData.h: Removed.
1515         * platform/qt/FontDataQt.cpp: Removed.
1516         * platform/qt/FontPlatformData.h: Removed.
1517         * platform/qt/FontQt.cpp: Removed.
1518         * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
1519         * platform/qt/StringQt.cpp: Removed.
1520         * platform/qt/TextBoundaries.cpp: Removed.
1521         * platform/qt/TextBreakIteratorQt.cpp: Removed.
1522         * platform/qt/TextCodecQt.cpp: Removed.
1523         * platform/qt/TextCodecQt.h: Removed.
1524         * platform/symbian/StringImplSymbian.cpp: Removed.
1525         * platform/symbian/StringSymbian.cpp: Removed.
1526         * platform/text/cf: Added.
1527         * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
1528         * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
1529         * platform/text/gtk: Added.
1530         * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
1531         * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
1532         * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
1533         * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
1534         * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
1535         * platform/text/mac/TextBoundaries.mm: Copied from platform/mac/TextBoundaries.mm.
1536         * platform/text/mac/TextBreakIteratorInternalICUMac.mm: Copied from platform/mac/TextBreakIteratorInternalICUMac.mm.
1537         * platform/text/mac/TextCodecMac.cpp: Copied from platform/mac/TextCodecMac.cpp.
1538         * platform/text/mac/TextCodecMac.h: Copied from platform/mac/TextCodecMac.h.
1539         * platform/text/mac/character-sets.txt: Copied from platform/mac/character-sets.txt.
1540         * platform/text/mac/mac-encodings.txt: Copied from platform/mac/mac-encodings.txt.
1541         * platform/text/mac/make-charset-table.pl: Copied from platform/mac/make-charset-table.pl.
1542         * platform/text/qt: Added.
1543         * platform/text/qt/StringQt.cpp: Copied from platform/qt/StringQt.cpp.
1544         * platform/text/qt/TextBoundaries.cpp: Copied from platform/qt/TextBoundaries.cpp.
1545         * platform/text/qt/TextBreakIteratorQt.cpp: Copied from platform/qt/TextBreakIteratorQt.cpp.
1546         * platform/text/qt/TextCodecQt.cpp: Copied from platform/qt/TextCodecQt.cpp.
1547         * platform/text/qt/TextCodecQt.h: Copied from platform/qt/TextCodecQt.h.
1548         * platform/text/symbian: Added.
1549         * platform/text/symbian/StringImplSymbian.cpp: Copied from platform/symbian/StringImplSymbian.cpp.
1550         * platform/text/symbian/StringSymbian.cpp: Copied from platform/symbian/StringSymbian.cpp.
1551         * platform/text/win: Added.
1552         * platform/text/win/TextBreakIteratorInternalICUWin.cpp: Copied from platform/win/TextBreakIteratorInternalICUWin.cpp.
1553         * platform/text/wx: Added.
1554         * platform/text/wx/StringWx.cpp: Copied from platform/wx/StringWx.cpp.
1555         * platform/win/FontCacheWin.cpp: Removed.
1556         * platform/win/FontCustomPlatformData.cpp: Removed.
1557         * platform/win/FontCustomPlatformData.h: Removed.
1558         * platform/win/FontDataWin.cpp: Removed.
1559         * platform/win/FontDatabase.cpp: Removed.
1560         * platform/win/FontDatabase.h: Removed.
1561         * platform/win/FontPlatformData.h: Removed.
1562         * platform/win/FontPlatformDataWin.cpp: Removed.
1563         * platform/win/FontWin.cpp: Removed.
1564         * platform/win/GlyphPageTreeNodeWin.cpp: Removed.
1565         * platform/win/TextBreakIteratorInternalICUWin.cpp: Removed.
1566         * platform/wx/FontCacheWx.cpp: Removed.
1567         * platform/wx/FontDataWx.cpp: Removed.
1568         * platform/wx/FontPlatformData.h: Removed.
1569         * platform/wx/FontPlatformDataWx.cpp: Removed.
1570         * platform/wx/FontWx.cpp: Removed.
1571         * platform/wx/GlyphMapWx.cpp: Removed.
1572         * platform/wx/StringWx.cpp: Removed.
1573         * webcore-wx.bkl:
1574
1575 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
1576
1577         Build fix for wx port. Adding editing/RemoveFormatCommand.cpp
1578
1579         * WebCoreSources.bkl:
1580
1581 2007-11-30  Simon Hausmann  <hausmann@webkit.org>
1582
1583         Reviewed by Adam Roben.
1584
1585         Fix the build with DATABASE=0.
1586
1587         * page/Settings.cpp:
1588         (WebCore::Settings::setDefaultDatabaseOriginQuota):
1589         (WebCore::Settings::defaultDatabaseOriginQuota):
1590
1591 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1592
1593         Rubber stamped by Darin.
1594
1595         Fix misplaced file. The name "FontStyle" is not correct though - it probably
1596         needs yet another move - but this time inside platform/graphics - as soon
1597         as we agree on a better name.
1598
1599         * WebCore.xcodeproj/project.pbxproj:
1600         * platform/graphics/FontStyle.h: Copied from platform/text/FontStyle.h.
1601         * platform/text/FontStyle.h: Removed.
1602
1603 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1604
1605         Reviewed by Sam.
1606
1607         Rename "FontStyle FontStyle(...)" to "FontStyle fontStyle(...)".
1608         I scripted a bit too much while doing the TextStyle -> FontStyle change.
1609
1610         * platform/win/PopupMenuWin.cpp:
1611         (WebCore::PopupMenu::paint):
1612         * rendering/EllipsisBox.cpp:
1613         (WebCore::EllipsisBox::paint):
1614         * rendering/RenderFileUploadControl.cpp:
1615         (WebCore::RenderFileUploadControl::paintObject):
1616         * rendering/RenderListBox.cpp:
1617         (WebCore::RenderListBox::updateFromElement):
1618         (WebCore::RenderListBox::paintItemForeground):
1619         * rendering/RenderTextControl.cpp:
1620         (WebCore::RenderTextControl::setStyle):
1621         (WebCore::RenderTextControl::createInnerTextStyle):
1622         (WebCore::RenderTextControl::createSubtreeIfNeeded):
1623         * rendering/RenderTextControl.h:
1624         * rendering/SVGRootInlineBox.cpp:
1625         (WebCore::svgFontStyleForInlineTextBox):
1626
1627 2007-11-30  Alp Toker  <alp@atoker.com>
1628
1629         GTK+ build fix following the recent text reorganization.
1630
1631         * WebCore.pro:
1632
1633 2007-11-29  Jon Honeycutt  <jhoneycutt@apple.com>
1634
1635         Reviewed by Adam.
1636
1637         Part of <rdar://problem/5506522> Seed: cannot type into text box in
1638         Facebook, don't see plugin content (Adobe Flash)
1639
1640         * plugins/win/PluginViewWin.cpp:
1641         (WebCore::PluginViewWin::handleMouseEvent): Focus the plugin's parent
1642         frame  
1643
1644 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1645
1646         Not reviewed. Trying to fix gtk/qt/wx build. (I expected problems because of the moves)
1647
1648         * WebCore.pro:
1649         * webcore-base.bkl:
1650
1651 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1652
1653         Rubber stamped by Brady.
1654
1655         Started platform reorganization (platform/text addition).
1656         Moving string/text/font related classes into new places - as discussed on webkit-dev.
1657
1658         In a follow-up commit I'll move classes out of platform/{mac,win,...} into
1659         platform/text/{mac,win,...}, and also do the ksvg2/ -> svg/ move.
1660
1661         * WebCore.order:
1662         * WebCore.pro:
1663         * WebCore.vcproj/WebCore.vcproj:
1664         * WebCore.xcodeproj/project.pbxproj:
1665         * WebCoreSources.bkl:
1666         * editing/ReplaceSelectionCommand.cpp:
1667         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
1668         * platform/AtomicString.cpp: Removed.
1669         * platform/AtomicString.h: Removed.
1670         * platform/AtomicStringImpl.h: Removed.
1671         * platform/Base64.cpp: Removed.
1672         * platform/Base64.h: Removed.
1673         * platform/BidiContext.cpp: Removed.
1674         * platform/BidiContext.h: Removed.
1675         * platform/BidiResolver.h: Removed.
1676         * platform/CString.cpp: Removed.
1677         * platform/CString.h: Removed.
1678         * platform/CharacterNames.h: Removed.
1679         * platform/CharsetData.h: Removed.
1680         * platform/Font.cpp: Removed.
1681         * platform/Font.h: Removed.
1682         * platform/FontCache.cpp: Removed.
1683         * platform/FontCache.h: Removed.
1684         * platform/FontData.cpp: Removed.
1685         * platform/FontData.h: Removed.
1686         * platform/FontDescription.h: Removed.
1687         * platform/FontFallbackList.cpp: Removed.
1688         * platform/FontFallbackList.h: Removed.
1689         * platform/FontFamily.cpp: Removed.
1690         * platform/FontFamily.h: Removed.
1691         * platform/FontSelector.h: Removed.
1692         * platform/GlyphBuffer.h: Removed.
1693         * platform/GlyphPageTreeNode.cpp: Removed.
1694         * platform/GlyphPageTreeNode.h: Removed.
1695         * platform/GlyphWidthMap.cpp: Removed.
1696         * platform/GlyphWidthMap.h: Removed.
1697         * platform/PlatformString.h: Removed.
1698         * platform/RegularExpression.cpp: Removed.
1699         * platform/RegularExpression.h: Removed.
1700         * platform/SegmentedString.cpp: Removed.
1701         * platform/SegmentedString.h: Removed.
1702         * platform/String.cpp: Removed.
1703         * platform/StringHash.h: Removed.
1704         * platform/StringImpl.cpp: Removed.
1705         * platform/StringImpl.h: Removed.
1706         * platform/StringTruncator.cpp: Removed.
1707         * platform/StringTruncator.h: Removed.
1708         * platform/TextBoundaries.h: Removed.
1709         * platform/TextBoundariesICU.cpp: Removed.
1710         * platform/TextBreakIterator.h: Removed.
1711         * platform/TextBreakIteratorICU.cpp: Removed.
1712         * platform/TextBreakIteratorInternalICU.h: Removed.
1713         * platform/TextCodec.cpp: Removed.
1714         * platform/TextCodec.h: Removed.
1715         * platform/TextCodecICU.cpp: Removed.
1716         * platform/TextCodecICU.h: Removed.
1717         * platform/TextCodecLatin1.cpp: Removed.
1718         * platform/TextCodecLatin1.h: Removed.
1719         * platform/TextCodecUTF16.cpp: Removed.
1720         * platform/TextCodecUTF16.h: Removed.
1721         * platform/TextCodecUserDefined.cpp: Removed.
1722         * platform/TextCodecUserDefined.h: Removed.
1723         * platform/TextDecoder.cpp: Removed.
1724         * platform/TextDecoder.h: Removed.
1725         * platform/TextDirection.h: Removed.
1726         * platform/TextEncoding.cpp: Removed.
1727         * platform/TextEncoding.h: Removed.
1728         * platform/TextEncodingRegistry.cpp: Removed.
1729         * platform/TextEncodingRegistry.h: Removed.
1730         * platform/TextStream.cpp: Removed.
1731         * platform/TextStream.h: Removed.
1732         * platform/TextStyle.h: Removed.
1733         * platform/UnicodeRange.cpp: Removed.
1734         * platform/UnicodeRange.h: Removed.
1735         * platform/graphics/Font.cpp: Copied from platform/Font.cpp.
1736         (WebCore::WidthIterator::WidthIterator):
1737         (WebCore::Font::width):
1738         (WebCore::Font::drawSimpleText):
1739         (WebCore::Font::drawGlyphBuffer):
1740         (WebCore::Font::drawText):
1741         (WebCore::Font::floatWidth):
1742         (WebCore::Font::floatWidthForSimpleText):
1743         (WebCore::Font::selectionRectForText):
1744         (WebCore::Font::selectionRectForSimpleText):
1745         (WebCore::Font::offsetForPosition):
1746         (WebCore::Font::offsetForPositionForSimpleText):
1747         * platform/graphics/Font.h: Copied from platform/Font.h.
1748         * platform/graphics/FontCache.cpp: Copied from platform/FontCache.cpp.
1749         * platform/graphics/FontCache.h: Copied from platform/FontCache.h.
1750         * platform/graphics/FontData.cpp: Copied from platform/FontData.cpp.
1751         * platform/graphics/FontData.h: Copied from platform/FontData.h.
1752         * platform/graphics/FontDescription.h: Copied from platform/FontDescription.h.
1753         * platform/graphics/FontFallbackList.cpp: Copied from platform/FontFallbackList.cpp.
1754         * platform/graphics/FontFallbackList.h: Copied from platform/FontFallbackList.h.
1755         * platform/graphics/FontFamily.cpp: Copied from platform/FontFamily.cpp.
1756         * platform/graphics/FontFamily.h: Copied from platform/FontFamily.h.
1757         * platform/graphics/FontSelector.h: Copied from platform/FontSelector.h.
1758         * platform/graphics/GlyphBuffer.h: Copied from platform/GlyphBuffer.h.
1759         * platform/graphics/GlyphPageTreeNode.cpp: Copied from platform/GlyphPageTreeNode.cpp.
1760         * platform/graphics/GlyphPageTreeNode.h: Copied from platform/GlyphPageTreeNode.h.
1761         * platform/graphics/GlyphWidthMap.cpp: Copied from platform/GlyphWidthMap.cpp.
1762         * platform/graphics/GlyphWidthMap.h: Copied from platform/GlyphWidthMap.h.
1763         * platform/graphics/GraphicsContext.cpp:
1764         (WebCore::GraphicsContext::drawText):
1765         (WebCore::GraphicsContext::drawBidiText):
1766         (WebCore::GraphicsContext::drawHighlightForText):
1767         * platform/graphics/GraphicsContext.h:
1768         * platform/graphics/StringTruncator.cpp: Copied from platform/StringTruncator.cpp.
1769         (WebCore::stringWidth):
1770         * platform/graphics/StringTruncator.h: Copied from platform/StringTruncator.h.
1771         * platform/graphics/qt/GraphicsContextQt.cpp:
1772         * platform/gtk/FontGtk.cpp:
1773         (WebCore::Font::drawComplexText):
1774         (WebCore::Font::floatWidthForComplexText):
1775         (WebCore::Font::offsetForPositionForComplexText):
1776         (WebCore::Font::selectionRectForComplexText):
1777         * platform/mac/FontMac.mm:
1778         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
1779         (WebCore::Font::selectionRectForComplexText):
1780         (WebCore::Font::drawComplexText):
1781         (WebCore::Font::floatWidthForComplexText):
1782         (WebCore::Font::offsetForPositionForComplexText):
1783         * platform/mac/WebCoreTextRenderer.mm:
1784         (WebCoreDrawTextAtPoint):
1785         (WebCoreTextFloatWidth):
1786         * platform/qt/FontQt.cpp:
1787         (WebCore::generateComponents):
1788         (WebCore::Font::drawText):
1789         (WebCore::Font::width):
1790         (WebCore::Font::floatWidth):
1791         (WebCore::Font::offsetForPosition):
1792         (WebCore::cursorToX):
1793         (WebCore::Font::selectionRectForText):
1794         * platform/text: Added.
1795         * platform/text/AtomicString.cpp: Copied from platform/AtomicString.cpp.
1796         * platform/text/AtomicString.h: Copied from platform/AtomicString.h.
1797         * platform/text/AtomicStringImpl.h: Copied from platform/AtomicStringImpl.h.
1798         * platform/text/Base64.cpp: Copied from platform/Base64.cpp.
1799         * platform/text/Base64.h: Copied from platform/Base64.h.
1800         * platform/text/BidiContext.cpp: Copied from platform/BidiContext.cpp.
1801         * platform/text/BidiContext.h: Copied from platform/BidiContext.h.
1802         * platform/text/BidiResolver.h: Copied from platform/BidiResolver.h.
1803         * platform/text/CString.cpp: Copied from platform/CString.cpp.
1804         * platform/text/CString.h: Copied from platform/CString.h.
1805         * platform/text/CharacterNames.h: Copied from platform/CharacterNames.h.
1806         * platform/text/FontStyle.h: Copied from platform/TextStyle.h.
1807         (WebCore::FontStyle::FontStyle):
1808         * platform/text/PlatformString.h: Copied from platform/PlatformString.h.
1809         * platform/text/RegularExpression.cpp: Copied from platform/RegularExpression.cpp.
1810         * platform/text/RegularExpression.h: Copied from platform/RegularExpression.h.
1811         * platform/text/SegmentedString.cpp: Copied from platform/SegmentedString.cpp.
1812         * platform/text/SegmentedString.h: Copied from platform/SegmentedString.h.
1813         * platform/text/String.cpp: Copied from platform/String.cpp.
1814         * platform/text/StringHash.h: Copied from platform/StringHash.h.
1815         * platform/text/StringImpl.cpp: Copied from platform/StringImpl.cpp.
1816         * platform/text/StringImpl.h: Copied from platform/StringImpl.h.
1817         * platform/text/TextBoundaries.h: Copied from platform/TextBoundaries.h.
1818         * platform/text/TextBoundariesICU.cpp: Copied from platform/TextBoundariesICU.cpp.
1819         (WebCore::findNextWordFromIndex):
1820         * platform/text/TextBreakIterator.h: Copied from platform/TextBreakIterator.h.
1821         * platform/text/TextBreakIteratorICU.cpp: Copied from platform/TextBreakIteratorICU.cpp.
1822         * platform/text/TextBreakIteratorInternalICU.h: Copied from platform/TextBreakIteratorInternalICU.h.
1823         * platform/text/TextCodec.cpp: Copied from platform/TextCodec.cpp.
1824         * platform/text/TextCodec.h: Copied from platform/TextCodec.h.
1825         * platform/text/TextCodecICU.cpp: Copied from platform/TextCodecICU.cpp.
1826         * platform/text/TextCodecICU.h: Copied from platform/TextCodecICU.h.
1827         * platform/text/TextCodecLatin1.cpp: Copied from platform/TextCodecLatin1.cpp.
1828         * platform/text/TextCodecLatin1.h: Copied from platform/TextCodecLatin1.h.
1829         * platform/text/TextCodecUTF16.cpp: Copied from platform/TextCodecUTF16.cpp.
1830         * platform/text/TextCodecUTF16.h: Copied from platform/TextCodecUTF16.h.
1831         * platform/text/TextCodecUserDefined.cpp: Copied from platform/TextCodecUserDefined.cpp.
1832         * platform/text/TextCodecUserDefined.h: Copied from platform/TextCodecUserDefined.h.
1833         * platform/text/TextDecoder.cpp: Copied from platform/TextDecoder.cpp.
1834         * platform/text/TextDecoder.h: Copied from platform/TextDecoder.h.
1835         * platform/text/TextDirection.h: Copied from platform/TextDirection.h.
1836         * platform/text/TextEncoding.cpp: Copied from platform/TextEncoding.cpp.
1837         * platform/text/TextEncoding.h: Copied from platform/TextEncoding.h.
1838         * platform/text/TextEncodingRegistry.cpp: Copied from platform/TextEncodingRegistry.cpp.
1839         * platform/text/TextEncodingRegistry.h: Copied from platform/TextEncodingRegistry.h.
1840         * platform/text/TextStream.cpp: Copied from platform/TextStream.cpp.
1841         * platform/text/TextStream.h: Copied from platform/TextStream.h.
1842         * platform/text/UnicodeRange.cpp: Copied from platform/UnicodeRange.cpp.
1843         * platform/text/UnicodeRange.h: Copied from platform/UnicodeRange.h.
1844         * platform/text/mac: Added.
1845         * platform/text/mac/CharsetData.h: Copied from platform/CharsetData.h.
1846         * platform/win/FontWin.cpp:
1847         (WebCore::Font::selectionRectForComplexText):
1848         (WebCore::Font::drawComplexText):
1849         (WebCore::Font::floatWidthForComplexText):
1850         (WebCore::Font::offsetForPositionForComplexText):
1851         * platform/win/PopupMenuWin.cpp:
1852         (WebCore::PopupMenu::paint):
1853         * platform/win/UniscribeController.cpp:
1854         (WebCore::UniscribeController::UniscribeController):
1855         * platform/win/UniscribeController.h:
1856         * platform/win/WebCoreTextRenderer.cpp:
1857         (WebCore::doDrawTextAtPoint):
1858         * platform/wx/FontWx.cpp:
1859         (WebCore::Font::selectionRectForComplexText):
1860         (WebCore::Font::drawComplexText):
1861         (WebCore::Font::floatWidthForComplexText):
1862         (WebCore::Font::offsetForPositionForComplexText):
1863         * rendering/EllipsisBox.cpp:
1864         (WebCore::EllipsisBox::paint):
1865         * rendering/InlineTextBox.cpp:
1866         (WebCore::InlineTextBox::selectionRect):
1867         (WebCore::InlineTextBox::paint):
1868         (WebCore::InlineTextBox::paintSelection):
1869         (WebCore::InlineTextBox::paintCompositionBackground):
1870         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1871         (WebCore::InlineTextBox::paintTextMatchMarker):
1872         (WebCore::InlineTextBox::offsetForPosition):
1873         (WebCore::InlineTextBox::positionForOffset):
1874         * rendering/RenderFileUploadControl.cpp:
1875         (WebCore::RenderFileUploadControl::paintObject):
1876         (WebCore::RenderFileUploadControl::calcPrefWidths):
1877         * rendering/RenderImage.cpp:
1878         * rendering/RenderListBox.cpp:
1879         (WebCore::RenderListBox::updateFromElement):
1880         (WebCore::RenderListBox::paintItemForeground):
1881         * rendering/RenderMenuList.cpp:
1882         (WebCore::RenderMenuList::updateOptionsWidth):
1883         * rendering/RenderText.cpp:
1884         (WebCore::RenderText::widthFromCache):
1885         (WebCore::RenderText::calcPrefWidths):
1886         (WebCore::RenderText::width):
1887         * rendering/RenderTextControl.cpp:
1888         (WebCore::RenderTextControl::setStyle):
1889         (WebCore::RenderTextControl::createInnerFontStyle):
1890         (WebCore::RenderTextControl::createSubtreeIfNeeded):
1891         (WebCore::RenderTextControl::calcPrefWidths):
1892         * rendering/RenderTextControl.h:
1893         * rendering/SVGInlineTextBox.cpp:
1894         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
1895         (WebCore::SVGInlineTextBox::paintCharacters):
1896         (WebCore::SVGInlineTextBox::paintSelection):
1897         * rendering/SVGRootInlineBox.cpp:
1898         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
1899         (WebCore::svgFontStyleForInlineTextBox):
1900         * rendering/SVGRootInlineBox.h:
1901
1902 2007-11-30  Adele Peterson  <adele@apple.com>
1903
1904         Reviewed by Darin.
1905
1906         Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
1907         <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
1908
1909         Test: fast/events/mousemove-after-drag-over-scrollbar.html
1910
1911         * page/EventHandler.cpp:
1912         (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
1913          We should only need to show the hover effect when the mouse isn't pressed.
1914
1915 2007-11-29  Brady Eidson <beidson@apple.com>
1916
1917         Reviewed by Tim
1918
1919         Part of <rdar://problem/5556377> - Need to accurately track and enforce database quota
1920
1921         SQLite has the ability to enforce the page usage for databases.  This gives us bulletproof
1922         enforcement of the database size limit with reasonable granularity (within 1023 bytes by 
1923         default on OS X with SQLite 3.4.0)
1924
1925         This also involved enhancing the ability to install/remove the authorizer to run the PRAGMA
1926         statements involved
1927
1928         Note this patch does not actually use the new maximumSize() functionality of the 
1929         SQLiteDatabase class - that can be reviewed/landed seperately
1930         
1931         * platform/sql/SQLiteDatabase.cpp:
1932         (WebCore::SQLiteDatabase::SQLiteDatabase): 
1933         (WebCore::SQLiteDatabase::maximumSize): Return the current maximum size in bytes
1934         (WebCore::SQLiteDatabase::setMaximumSize): Based on m_pageSize, set the maximum page count
1935           to enforce the maximum size in bytes
1936         (WebCore::SQLiteDatabase::pageSize): Fetch m_pageSize if it hasn't been fetched, or return
1937           the cached value
1938         (WebCore::SQLiteDatabase::setAuthorizer): Use enableAuthorizer for the sqlite_* level 
1939           authorizer setup
1940         (WebCore::SQLiteDatabase::enableAuthorizer): Install or remove the sqlite authorizer handler
1941         * platform/sql/SQLiteDatabase.h: Add the m_pageSize member so we only have to fetch it once
1942
1943 2007-11-29  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1944
1945         Reviewed by Maciej.
1946
1947         * Fix fast/events/mousedown_in_scrollbar.html
1948         * This test used to crash in PlatformScrollbarQt::mouse*Event due parent() returning 0.
1949         * Extend the current check that the scrollbar in the mev can be go away.
1950         This happens if we destroy a RenderLayer as the result of a click. In the
1951         case of Qt we can have this scrollbar in m_lastScrollbarUnderMouse. The RenderLayer
1952         is the ScrollbarClient, m_lastScrollbarUnderMouse is a RefPtr and keeps the
1953         last reference. When calling into this scrollbar the m_client pointer is a dangling pointer.
1954         We extend the check to set m_lastScrollbarUnderMouse back to zero when it was the
1955         scrollbar in the old mev and is gone in the new one.
1956         * This happens only on the Qt port because we send more/different move events.
1957
1958         * page/EventHandler.cpp:
1959         (WebCore::EventHandler::handleMousePressEvent):
1960
1961 2007-11-29  Antti Koivisto  <antti@apple.com>
1962
1963         Reviewed by Mitz.
1964
1965         Fix aspect ratio calculation of video.
1966         
1967         Video should always be treated as a replaced element in size calculation.
1968         
1969         Test: media/video-aspect-ratio.html
1970
1971         * rendering/RenderBox.cpp:
1972         (WebCore::RenderBox::calcWidth):
1973         (WebCore::RenderBox::calcHeight):
1974         * rendering/RenderBox.h:
1975         (WebCore::RenderBox::shouldCalculateSizeAsReplaced):
1976         * rendering/RenderMedia.h:
1977         (WebCore::RenderMedia::shouldCalculateSizeAsReplaced):
1978
1979 2007-11-29  Sam Weinig  <sam@webkit.org>
1980
1981         Reviewed by Oliver.
1982
1983         Additional fix for <rdar://problem/5592988> / http://bugs.webkit.org/show_bug.cgi?id=15936
1984         - More closely match IE's policy for frame navigation.
1985
1986         * bindings/js/kjs_window.cpp:
1987         (KJS::WindowProtoFuncOpen::callAsFunction):
1988         * loader/FrameLoader.cpp:
1989         (WebCore::FrameLoader::shouldAllowNavigation):
1990         * page/FrameTree.cpp:
1991         (WebCore::FrameTree::top):
1992         * page/FrameTree.h:
1993
1994 2007-11-29  Dan Bernstein  <mitz@apple.com>
1995
1996         Reviewed by Adam Roben and John Sullivan.
1997
1998         - make the recent searches popup extend only along the straight part of
1999           the search field (unless it needs to be wider).
2000
2001         * platform/PopupMenuClient.h:
2002           Added clientInsetLeft() and clientInsetRight() for clients to
2003           specify desired horizontal insets for the menu.
2004         * platform/win/PopupMenuWin.cpp:
2005         (WebCore::PopupMenu::calculatePositionAndSize):
2006         (WebCore::PopupMenu::paint):
2007         * rendering/RenderMenuList.cpp:
2008         (WebCore::RenderMenuList::clientInsetLeft): Added. Returns 0.
2009         (WebCore::RenderMenuList::clientInsetRight): Ditto.
2010         * rendering/RenderMenuList.h:
2011         * rendering/RenderTextControl.cpp:
2012         (WebCore::RenderTextControl::clientInsetLeft): Added. Returns half the
2013         control's height, which is the radius of the cap on the left.
2014         (WebCore::RenderTextControl::clientInsetRight): Added.
2015         * rendering/RenderTextControl.h:
2016
2017 2007-11-30  Alp Toker  <alp@atoker.com>
2018
2019         Reviewed by Maciej.
2020
2021         http://bugs.webkit.org/show_bug.cgi?id=16173
2022         Licensing change
2023
2024         Change license from BSD to LGPL.
2025
2026         This is being done to encourage vendors to contribute their fixes back
2027         upstream.
2028
2029         * platform/graphics/gtk/ColorGtk.cpp:
2030         * platform/graphics/gtk/IntPointGtk.cpp:
2031         * platform/graphics/gtk/IntRectGtk.cpp:
2032         * platform/graphics/svg/cairo/RenderPathCairo.cpp:
2033         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
2034         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
2035         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp:
2036         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
2037         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp:
2038         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
2039         * platform/gtk/Language.cpp:
2040         * platform/gtk/LoggingGtk.cpp:
2041         * platform/gtk/SoundGtk.cpp:
2042         * platform/gtk/SystemTimeGtk.cpp:
2043         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp:
2044
2045 2007-11-29  Darin Adler  <darin@apple.com>
2046
2047         Reviewed by Adele.
2048
2049         - fix http://bugs.webkit.org/show_bug.cgi?id=16191
2050           REGRESSION: cannot tab to radio input after setting checked to false
2051
2052         Test: fast/forms/input-radio-checked-tab.html
2053
2054         * html/HTMLFormElement.cpp:
2055         (WebCore::HTMLFormElement::CheckedRadioButtons::addButton): Fix this code
2056         so that it doesn't call setChecked(false) until after the map has been updated.
2057         Otherwise, we can end up deallocating the map before manipulating it. As long
2058         as I was changing the function, I decided to make it do only a single hash
2059         table lookup.
2060
2061         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setChecked):
2062         Remove the button from the radio buttons set before changing the checked
2063         state. This matches the idiom used elsewhere and fixes the problem where
2064         setting checked to false would not remove it from the set.
2065
2066 2007-11-29  Justin Garcia  <justin.garcia@apple.com>
2067
2068         Reviewed by Darin Adler.
2069
2070         <rdar://problem/5620093> Brief hang when Safari caches page text of XML document
2071
2072         * editing/TextIterator.cpp:
2073         (WebCore::TextIterator::representNodeOffsetZero): When we haven't been emitting any 
2074         characters, shouldRepresentNodeOffsetZero() can create VisiblePositions, which is
2075         expensive.  So, we perform the inexpensive checks on m_node to see if it necessitates 
2076         emitting a character first and will early return before encountering 
2077         shouldRepresentNodeOffsetZero()s worse case behavior.
2078
2079 2007-11-29  Anders Carlsson  <andersca@apple.com>
2080
2081         Reviewed by Sam.
2082
2083         Don't install event handlers or set the zoom cursor if auto-shrink has been disabled.
2084
2085         * loader/ImageDocument.cpp:
2086         (WebCore::ImageDocument::createDocumentStructure):
2087         (WebCore::ImageDocument::imageChanged):
2088
2089 2007-11-29  Beth Dakin  <bdakin@apple.com>
2090
2091         Reviewed by Geoff.
2092
2093         Fix for <rdar://problem/5620151> Disable JavaScript for SVG as 
2094         image for <img> and CSS images
2095
2096         * platform/graphics/svg/SVGImage.cpp:
2097         (WebCore::SVGImage::dataChanged): When we create the empty clients, 
2098         explicitly disable JavaScript in the settings.
2099
2100 2007-11-29  Brady Eidson  <beidson@apple.com>
2101
2102         Reviewed by Anders
2103
2104         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
2105
2106         The Database feature in the engine needs to support delegate calls for policy decisions and
2107         also provide notifications when origins and databases change their state.
2108
2109         This patch also polishes off the missing features of the management API
2110
2111         * page/Chrome.cpp: Implement the two UIDelegate methods
2112         (WebCore::Chrome::requestQuotaIncreaseForNewDatabase): Ask for more space to create a new database if it won't fit
2113         (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation): Ask for more space to complete an in-progress operation
2114         * page/Chrome.h:
2115         * page/ChromeClient.h:
2116         * platform/graphics/svg/SVGImageEmptyClients.h:
2117         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
2118         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
2119
2120         * storage/Database.cpp:
2121         (WebCore::Database::openDatabase): Check to see if this database can be opened - the quota must be high 
2122           enough and if it isn't, the UIDelegate should have a change to bump the quota.
2123           Also update the UI-relevant details (display name and estimated size) upon successful opening of the database
2124
2125         * storage/DatabaseDetails.h: Remove the version parameter as it is a programatic detail of a
2126           site database and is not important to API clients
2127         (WebCore::DatabaseDetails::DatabaseDetails):
2128         (WebCore::DatabaseDetails::isValid):
2129         (WebCore::DatabaseDetails::name):
2130
2131         * storage/DatabaseTracker.cpp:
2132         (WebCore::DatabaseTracker::openTrackerDatabase): Tweaked the schema here - there was a horrible bug with the old schema that would
2133           prevent you from having two databases of the same name from two different origins.  Also simplify the origin-management schema
2134         (WebCore::DatabaseTracker::canEstablishDatabase): Added.  Does some estimated size vs quota checks, and asks the UI delegate for 
2135           more space if necessary
2136         (WebCore::DatabaseTracker::hasEntryForOrigin):
2137         (WebCore::DatabaseTracker::establishEntryForOrigin): Establishes a tracker entry for the given origin with the current default quota
2138           Also notifies the client of the new origin
2139         (WebCore::DatabaseTracker::setDatabaseDetails): Update the display name and estimated size for the given database
2140         (WebCore::DatabaseTracker::fullPathForDatabase): Tweak to add the ability to get the path without creating it - for management purposes
2141         (WebCore::DatabaseTracker::populateOrigins): Populate origins from the Origins table instead of the Databases table
2142         (WebCore::DatabaseTracker::origins):
2143         (WebCore::DatabaseTracker::detailsForNameAndOrigin): For API management
2144         (WebCore::DatabaseTracker::usageForDatabase):
2145         (WebCore::DatabaseTracker::usageForOrigin):
2146         (WebCore::DatabaseTracker::quotaForOrigin):
2147         (WebCore::DatabaseTracker::setQuota): Notify the client
2148         (WebCore::DatabaseTracker::addDatabase): Notify the client 
2149         (WebCore::DatabaseTracker::deleteAllDatabases):
2150         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
2151         (WebCore::DatabaseTracker::deleteDatabase):
2152         (WebCore::DatabaseTracker::deleteDatabaseFile):
2153         * storage/DatabaseTracker.h:
2154
2155 2007-11-29  Dan Bernstein  <mitz@apple.com>
2156
2157         Reviewed by Beth Dakin and Darin Adler.
2158
2159         - manual test for <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame
2160
2161         * manual-tests/context-click-unfocused-frame.html: Added.
2162
2163 2007-11-28  Antti Koivisto  <antti@apple.com>
2164
2165         Reviewed by Geoff.
2166         
2167         Fallback content inside media elements should not be rendered.
2168
2169         Test: media/fallback.html
2170
2171         * rendering/RenderMedia.h:
2172         (WebCore::RenderMedia::canHaveChildren):
2173
2174 2007-11-28  Mark Rowe  <mrowe@apple.com>
2175
2176         Windows build fix.
2177
2178         * WebCore.vcproj/WebCore.vcproj:
2179
2180 2007-11-28  Mark Rowe  <mrowe@apple.com>
2181
2182         Gtk build fix.
2183
2184         * WebCore.pro:
2185
2186 2007-11-28  Antti Koivisto  <antti@apple.com>
2187
2188         Reviewed by Oliver.
2189
2190         Make QTMovieView fill color transparent. This behavior matches the specification
2191         (and allows nice alpha blended video).
2192
2193         * platform/graphics/mac/MoviePrivateQTKit.mm:
2194         (WebCore::MoviePrivate::createQTMovieView):
2195
2196 2007-11-28  Antti Koivisto  <antti@apple.com>
2197
2198         Reviewed by Darin.
2199
2200         Test: media/video-controls.html
2201         
2202         <rdar://problem/5605668>
2203         Implement controls attribute for video element
2204         
2205         - Add RenderMedia and make RenderVideo its subclass. Controls code goes to RenderMedia while
2206           video specific (painting etc) code stays in RenderVideo. For example audio controls can be implemented
2207           later by just instantiating RenderMedia as renderer.
2208         - Make media renderer hierarchy inherit from RenderBlock instead of RenderReplaced so it can 
2209           have child nodes (for controls).
2210         - Controls are implemented as a shadow DOM.
2211         - Current look is a placeholder. It is defined purely in CSS.
2212         - Some things like volume controls are not yet implemented.
2213         - Fade-in/out is done manually, CSS animations don't work well in shadow trees.
2214           
2215         * WebCore.xcodeproj/project.pbxproj:
2216         * css/html4.css:
2217         * html/HTMLMediaElement.cpp:
2218         (WebCore::HTMLMediaElement::attributeChanged):
2219         (WebCore::HTMLMediaElement::updateMovie):
2220         (WebCore::HTMLMediaElement::defaultEventHandler):
2221         * html/HTMLMediaElement.h:
2222         * rendering/RenderMedia.cpp: Added.
2223         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
2224         (WebCore::MediaControlShadowRootElement::isShadowNode):
2225         (WebCore::MediaControlShadowRootElement::shadowParentNode):
2226         (WebCore::MediaControlInputElement::MediaControlInputElement):
2227         (WebCore::MediaControlInputElement::attachToParent):
2228         (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
2229         (WebCore::MediaControlPlayButtonElement::inPausedState):
2230         (WebCore::MediaControlPlayButtonElement::defaultEventHandler):
2231         (WebCore::MediaControlPlayButtonElement::update):
2232         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
2233         (WebCore::MediaControlTimelineElement::defaultEventHandler):
2234         (WebCore::MediaControlTimelineElement::update):
2235         (WebCore::RenderMedia::RenderMedia):
2236         (WebCore::RenderMedia::~RenderMedia):
2237         (WebCore::RenderMedia::mediaElement):
2238         (WebCore::RenderMedia::movie):
2239         (WebCore::RenderMedia::setStyle):
2240         (WebCore::RenderMedia::createControlsShadowRoot):
2241         (WebCore::RenderMedia::createPanel):
2242         (WebCore::RenderMedia::createPlayButton):
2243         (WebCore::RenderMedia::createTimeline):
2244         (WebCore::RenderMedia::createTimeDisplay):
2245         (WebCore::RenderMedia::updateFromElement):
2246         (WebCore::RenderMedia::updateControls):
2247         (WebCore::RenderMedia::timeUpdateTimerFired):
2248         (WebCore::RenderMedia::updateTimeDisplay):
2249         (WebCore::RenderMedia::updateControlVisibility):
2250         (WebCore::RenderMedia::changeOpacity):
2251         (WebCore::RenderMedia::opacityAnimationTimerFired):
2252         (WebCore::RenderMedia::forwardEvent):
2253         * rendering/RenderMedia.h: Added.
2254         (WebCore::RenderMedia::renderName):
2255         (WebCore::RenderMedia::isMedia):
2256         (WebCore::RenderMedia::intrinsicSize):
2257         * rendering/RenderObject.h:
2258         (WebCore::RenderObject::isMedia):
2259         * rendering/RenderVideo.cpp:
2260         (WebCore::RenderVideo::RenderVideo):
2261         (WebCore::RenderVideo::videoSizeChanged):
2262         (WebCore::RenderVideo::paintObject):
2263         (WebCore::RenderVideo::layout):
2264         (WebCore::RenderVideo::updateFromElement):
2265         (WebCore::RenderVideo::calcAspectRatioWidth):
2266         (WebCore::RenderVideo::calcAspectRatioHeight):
2267         * rendering/RenderVideo.h:
2268
2269 2007-11-28  Justin Garcia  <justin.garcia@apple.com>
2270
2271         Reviewed by Darin Adler.
2272
2273         <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
2274         
2275         In the new beta, Google has added some custom code on top of our RemoveFormat
2276         to work around a bug where fully selected lists aren't removed.  This code corrupts
2277         the undo stack and causes crashes.  This change fixes two problems with RemoveFormat
2278         so that Google doesn't have to have any custom code. After checking this in I'll 
2279         work on bulletproofing the undo stack
2280
2281         * WebCore.xcodeproj/project.pbxproj: 
2282         * editing/CompositeEditCommand.cpp:
2283         (WebCore::CompositeEditCommand::insertLineBreak): Added this convenience method.
2284         (WebCore::CompositeEditCommand::inputText): Added code to select all inserted text, not
2285         just the last paragraph.  Added code to support an input string with '\n's.
2286         * editing/CompositeEditCommand.h:
2287         * editing/Editor.cpp:
2288         (WebCore::Editor::removeFormattingAndStyle): Moved code to its own EditCommand.
2289         * editing/RemoveFormatCommand.cpp: Added. Moved code from removeFormattingAndStyle here.
2290         (WebCore::RemoveFormatCommand::RemoveFormatCommand):
2291         (WebCore::RemoveFormatCommand::doApply): Added code to remove fully selected lists.
2292         * editing/RemoveFormatCommand.h: Added.
2293         (WebCore::RemoveFormatCommand::editingAction):
2294
2295 2007-11-28  Dan Bernstein  <mitz@apple.com>
2296
2297         Reviewed by Dave Hyatt.
2298
2299         - fix <rdar://problem/5612459> CrashTracer: [REGRESSION] 61 crashes in Safari at com.apple.WebCore: WebCore::AutoTableLayout::layout + 2046
2300
2301         Test: fast/table/empty-auto-column-zero-divide.html
2302
2303         * rendering/AutoTableLayout.cpp:
2304         (WebCore::AutoTableLayout::recalcColumn):
2305         (WebCore::AutoTableLayout::fullRecalc):
2306         (WebCore::AutoTableLayout::calcEffectiveWidth):
2307         (WebCore::AutoTableLayout::layout): When distributing the remaining
2308         width among columns, skip those whose effective (rather than
2309         specified) width is auto and contain only empty cells.
2310
2311 2007-11-28  Peter Kasting  <zerodpx@gmail.com>
2312
2313         Reviewed by Alp Toker.
2314
2315         http://bugs.webkit.org/show_bug.cgi?id=16169
2316         GIF decoder needs to set hasAlpha() correctly on subsequent frames.
2317         
2318         This also removes the workaround for this problem in
2319         ImageSourceCairo.cpp.
2320
2321         * platform/graphics/cairo/ImageSourceCairo.cpp:
2322         (WebCore::ImageSource::frameHasAlphaAtIndex):
2323         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2324         (WebCore::GIFImageDecoder::initFrameBuffer):
2325
2326 2007-11-28  Dan Bernstein  <mitz@apple.com>
2327
2328         Reviewed by Darin Adler and Adam Roben.
2329
2330         - <rdar://problem/5057218> Reenable "recent searches" search field menu when menu is fully implemented
2331
2332         * platform/win/SearchPopupMenuWin.cpp:
2333         (WebCore::SearchPopupMenu::enabled): Changed to return true.
2334         (WebCore::autosaveKey): Added. Returns a preferences key for the
2335         autosave name by prefixing it with "com.apple.WebKit.searchField:".
2336         (WebCore::SearchPopupMenu::saveRecentSearches): Implemented.
2337         (WebCore::SearchPopupMenu::loadRecentSearches): Implemented.
2338
2339 2007-11-28  Alp Toker  <alp@atoker.com>
2340
2341         Reviewed by Mark Rowe.
2342
2343         http://bugs.webkit.org/show_bug.cgi?id=15689
2344         [GTK] Background of loading images is always black
2345
2346         frameHasAlphaAtIndex() exists only to allow optimization for cases we
2347         are certain the image can be blitted rather than composited.
2348
2349         Thus we need to be conservative, returning false only when we are
2350         absolutely certain there is no need for composited copying, and true
2351         otherwise.
2352
2353         CG doesn't even bother with this optimization at all and always
2354         returns true.
2355
2356         Patch includes a workaround for
2357           http://bugs.webkit.org/show_bug.cgi?id=16169
2358           GIF ImageDecoder hasAlpha() return value incorrect
2359
2360         * platform/graphics/cairo/ImageSourceCairo.cpp:
2361         (WebCore::ImageSource::frameHasAlphaAtIndex):
2362
2363 2007-11-27  Alp Toker  <alp@atoker.com>
2364
2365         Reviewed by Mark Rowe.
2366
2367         Install the JavaScriptCore headers as part of the GTK+ port.
2368
2369         * WebCore.pro:
2370
2371 2007-11-27  Beth Dakin  <bdakin@apple.com>
2372
2373         Reviewed by Oliver.
2374
2375         Fix for <rdar://problem/5616052> SVGs with width or height of 100% 
2376         hang when used as a background-image (16164)
2377
2378         * platform/graphics/svg/SVGImage.cpp:
2379         (WebCore::SVGImage::size): Use valueAsPercentage() for percents 
2380         instead of valueInSpecifiedUnits(). valueInSpecifiedUnits() 
2381         returns, for example, 50 for 50%, so multiplying percentages by the 
2382         default size of 300 x 150 led to ridiculously huge dimensions for 
2383         SVG images, and the subsequent hang. 
2384
2385 2007-11-27  Jon Honeycutt  <jhoneycutt@apple.com>
2386
2387         Reviewed by Adam.
2388
2389         Set haveRegisteredWindowClass when we register the window class.
2390
2391         * plugins/win/PluginViewWin.cpp:
2392         (WebCore::registerPluginView):
2393
2394 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2395
2396         Reviewed by Sam Weinig.
2397
2398         Bug 16165: Dragging the inspector toolbar should move the window
2399         http://bugs.webkit.org/show_bug.cgi?id=16165
2400
2401         * page/inspector/DocumentPanel.js: Call the new drag functions, and cleanup code.
2402         * page/inspector/inspector.css: Only make the toolbar transparent in detached mode.
2403         * page/inspector/inspector.js: Call the new drag functions, and cleanup code. Add
2404           toolbar drag functions that move the window.
2405
2406 2007-11-27  Antti Koivisto  <antti@apple.com>
2407
2408         Reviewed by Mitz.
2409
2410         Small changes to make RenderSlider a bit more generic so it can be used in video controls.
2411
2412         * html/HTMLInputElement.cpp:
2413         (WebCore::HTMLInputElement::defaultEventHandler): Fix coordinates with forwarded events.
2414         * rendering/RenderSlider.cpp:
2415         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Fix coordinates with forwarded events.
2416         (WebCore::RenderSlider::setStyle):
2417         (WebCore::RenderSlider::createThumbStyle): Copy thumb left and top from the orginal style so position does not reset.
2418         (WebCore::RenderSlider::mouseEventIsInThumb): Make this work with forwarded events.
2419         * rendering/RenderSlider.h:
2420
2421 2007-11-27  Antti Koivisto  <antti@apple.com>
2422
2423         Reviewed by Darin.
2424
2425         - Don't use hasPseudoId() optimization for pseudo styles used in shadow trees. These styles
2426           generally exist when asked for so the optimization does not do much. This reverses the continuing
2427           growth of the _pseudoBits bitfield in RenderStyle.
2428         - Add some pseudo elements for media controls
2429
2430         * css/CSSSelector.cpp:
2431         (WebCore::CSSSelector::extractPseudoType):
2432         * css/CSSSelector.h:
2433         (WebCore::CSSSelector::):
2434         * css/CSSStyleSelector.cpp:
2435         (WebCore::CSSStyleSelector::matchRulesForList):
2436         (WebCore::CSSStyleSelector::checkOneSelector):
2437         * rendering/RenderObject.cpp:
2438         (WebCore::RenderObject::getPseudoStyle):
2439         * rendering/RenderStyle.cpp:
2440         (WebCore::pseudoBit):
2441         (WebCore::RenderStyle::hasPseudoStyle):
2442         (WebCore::RenderStyle::setHasPseudoStyle):
2443         * rendering/RenderStyle.h:
2444         (WebCore::RenderStyle::):
2445
2446 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2447
2448         Reviewed by Kevin McCullough.
2449
2450         Bug 16161: window.moveBy(0, 0) moves the window by -22px vertically
2451         http://bugs.webkit.org/show_bug.cgi?id=16161
2452
2453         Removed the "Adjust the window rect to be in the coordinate space of
2454         the screen rect" step which was always adding (0,22) to the window
2455         position (on the main screen). Instead, account for screen X and Y
2456         in the bottom and right constrain step.
2457
2458         Added more test cases to: fast/dom/Window/window-resize.html
2459
2460         * bindings/js/kjs_window.cpp:
2461         (KJS::adjustWindowRect):
2462
2463 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2464
2465         Reviewed by Adam Roben.
2466
2467         * page/inspector/inspector.css: Make the text in the Network
2468         panel legend more readable.
2469
2470 2007-11-27  Timothy Hatcher  <timothy@apple.com>
2471
2472         Reviewed by Adam Roben.
2473
2474         Don't call setNeedsReapplyStylesInAllFrames if the
2475         authorAndUserStylesEnabled setting didn't change.
2476
2477         * page/Settings.cpp:
2478         (WebCore::Settings::setAuthorAndUserStylesEnabled):
2479
2480 2007-11-27  Alp Toker  <alp@atoker.com>
2481
2482         Fix potential broken build due to a missing DEPENDPATH.
2483
2484         * WebCore.pro:
2485
2486 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2487
2488         Reviewed by Dave Hyatt.
2489
2490         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
2491
2492         * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol.
2493         * css/CSSStyleSelector.cpp:
2494         (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter.
2495         (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before
2496         matching user and author rules.
2497         (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
2498         (WebCore::CSSStyleSelector::styleRulesForElement): Ditto.
2499         * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter.
2500         * dom/Document.cpp:
2501         (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector.
2502         (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if
2503         Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector.
2504         * page/Settings.cpp:
2505         (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true.
2506         (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames
2507         when the setting changes.
2508         * page/Settings.h: Add m_authorAndUserStylesEnabled.
2509         (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled.
2510
2511 2007-11-27  Alp Toker  <alp@atoker.com>
2512
2513         Reviewed by Mark Rowe.
2514
2515         Based on changes by Mike Emmel.
2516
2517         CURL HTTP backend local file fixes:
2518
2519         Set a MIME type for local files based on the file extension.
2520
2521         Remove any HTTP query part sent to a local file.
2522
2523         * platform/network/curl/ResourceHandleManager.cpp:
2524         (WebCore::ResourceHandleManager::startJob):
2525
2526 2007-11-26  Brady Eidson  <beidson@apple.com>
2527
2528         Reviewed by Mark Rowe
2529
2530         Allow setting the default storage quota per database origin
2531
2532         * WebCore.base.exp:
2533
2534         * page/Settings.cpp:
2535         (WebCore::Settings::setDefaultDatabaseOriginQuota):
2536         (WebCore::Settings::defaultDatabaseOriginQuota):
2537         * page/Settings.h:
2538
2539         * storage/DatabaseTracker.cpp:
2540         (WebCore::DatabaseTracker::DatabaseTracker):
2541         (WebCore::DatabaseTracker::setDefaultOriginQuota):
2542         (WebCore::DatabaseTracker::defaultOriginQuota):
2543         * storage/DatabaseTracker.h:
2544
2545 2007-11-26  Peter Kasting  <zerodpx@gmail.com>
2546
2547         Reviewed by Alp Toker.
2548
2549         http://bugs.webkit.org/show_bug.cgi?id=15974
2550         GIF decoding should respect frames' specified disposal methods.
2551
2552         * platform/image-decoders/ImageDecoder.h:
2553         (WebCore::RGBA32Buffer::):
2554         (WebCore::RGBA32Buffer::RGBA32Buffer):
2555         (WebCore::RGBA32Buffer::disposalMethod):
2556         (WebCore::RGBA32Buffer::setDisposalMethod):
2557         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2558         (WebCore::GIFImageDecoder::frameBufferAtIndex):
2559         (WebCore::GIFImageDecoder::initFrameBuffer):
2560         (WebCore::GIFImageDecoder::prepEmptyFrameBuffer):
2561         (WebCore::GIFImageDecoder::haveDecodedRow):
2562         (WebCore::GIFImageDecoder::frameComplete):
2563         * platform/image-decoders/gif/GIFImageDecoder.h:
2564         * platform/image-decoders/gif/GIFImageReader.cpp:
2565         (GIFImageReader::read):
2566         * platform/image-decoders/gif/GIFImageReader.h:
2567         (GIFFrameReader::GIFFrameReader):
2568
2569 2007-11-26  Adam Roben  <aroben@apple.com>
2570
2571         Add a Color(CGColorRef) constructor
2572
2573         Reviewed by Darin.
2574
2575         * platform/graphics/Color.h:
2576         * platform/graphics/cg/ColorCG.cpp:
2577         (WebCore::Color::Color): Added.
2578
2579 2007-11-26  Adele Peterson  <adele@apple.com>
2580
2581         Reviewed by Darin.
2582
2583         Update to last change.  Moved addPendingSheet call to within nil check for m_cachedSheet.
2584
2585         * page/Frame.cpp:
2586         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2587
2588 2007-11-26  Adele Peterson  <adele@apple.com>
2589
2590         Reviewed by Darin.
2591
2592         Fix for <rdar://problem/5591583> CrashTracer: [USER] 157 in Mail crashes at -[WebCoreFrameBridge reapplyStylesForDeviceType:]
2593
2594         * page/Frame.cpp: Add nil checks since every other caller of requestCSSStyleSheet checks for nil.
2595         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2596         (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
2597
2598 2007-11-26  Mark Rowe  <mrowe@apple.com>
2599
2600         GCC 4.2 build fix.
2601
2602         * xml/XSLTUnicodeSort.cpp: Add another WTF_ATTRIBUTE_PRINTF.
2603
2604 2007-11-26  Feng Qian <ian.eng.webkit@gmail.com>
2605
2606         Reviewed and touched up by Sam Weinig.
2607
2608         Fix for http://bugs.webkit.org/show_bug.cgi?id=16073
2609
2610         Test: http/tests/security/xss-DENIED-invalid-domain-change.html
2611
2612         * dom/Document.cpp:
2613         (WebCore::Document::setDomain): Don't set the securityOrigin policy unless
2614         the set succeeds.  Adds some early returns as well.
2615
2616 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
2617
2618         Build fix.
2619
2620         * WebCore.vcproj/WebCore.make:
2621         * WebCore.vcproj/migrate-idls.sh:
2622
2623 2007-11-26  Sam Weinig  <sam@webkit.org>
2624
2625         Fix potential null-dereference.
2626
2627         Reviewed by Adam Roben.
2628
2629         * page/FrameTree.cpp:
2630         (WebCore::FrameTree::isDescendantOf):
2631
2632 2007-11-26  Sam Weinig  <sam@webkit.org>
2633
2634         Reviewed by Darin.
2635
2636         Fix for <rdar://problem/5592988>
2637         - Enforce tighter restrictions on what frames in other domains
2638           can be navigated.
2639
2640         Tests: http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html
2641                http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change.html
2642
2643         * bindings/js/kjs_window.cpp:
2644         (KJS::Window::put):
2645         (KJS::Location::put):
2646         (KJS::LocationProtoFuncReplace::callAsFunction):
2647         (KJS::LocationProtoFuncAssign::callAsFunction):
2648         * loader/FrameLoader.cpp:
2649         (WebCore::FrameLoader::createWindow):
2650         (WebCore::FrameLoader::load):
2651         (WebCore::FrameLoader::shouldAllowNavigation): Move and update logic from canTarget().
2652         * loader/FrameLoader.h:
2653         * page/FrameTree.cpp:
2654         (WebCore::FrameTree::isDescendantOf): Make this O(1) in the case when both frames are not
2655         in the same page.
2656
2657 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
2658
2659         Build fix.
2660
2661         * WebCore.vcproj/migrate-idls.sh:
2662
2663 2007-11-26  Dan Bernstein  <mitz@apple.com>
2664
2665         Reviewed by Dave Hyatt.
2666
2667         - fix <rdar://problem/5609337> Making a float shorter does not remove it from the floating object list of a nested block it intruded into
2668
2669         Test: fast/dynamic/float-withdrawal-2.html
2670
2671         * rendering/RenderBlock.cpp:
2672         (WebCore::RenderBlock::layoutBlockChildren): When a float may have
2673         been withdrawn from a child, mark all descendants if necessary and not
2674         just the child.
2675
2676 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
2677
2678         Build fix.
2679
2680         * WebCore.vcproj/MigrateIDLAndScripts: Copied from WebCore.vcproj/MigrateIDLAndScripts.make.
2681         * WebCore.vcproj/MigrateIDLAndScripts.make: Removed.
2682         * WebCore.vcproj/migrate-idls.sh:
2683
2684 2007-11-26  Brady Eidson  <beidson@apple.com>
2685
2686         Reviewed by Anders (and typo lovingly found by Adam)
2687
2688         Change Databases to be stored in a per-origin directory hierarchy - this will make
2689         storage quotas much easier to enforce
2690
2691         * platform/SecurityOriginData.cpp:
2692         (WebCore::SecurityOriginData::SecurityOriginData): Parse string based on '_' instead of ':'
2693         (WebCore::SecurityOriginData::stringIdentifier): Change to use '_' as a separator instead of ':'.  
2694           '_' still works due to not being allowed in domain names, but also is a valid filename character '
2695           on all filesystems we care about
2696
2697         * storage/DatabaseTracker.cpp:
2698         (WebCore::DatabaseTracker::fullPathForDatabase): Create a per-origin directory hierarchy to categorize
2699           databases by origin
2700
2701 2007-11-26  Timothy Hatcher  <timothy@apple.com>
2702
2703         Reviewed by Adam Roben.
2704
2705         Bug 16137: Web Inspector window on Leopard should have a unified toolbar and window title
2706         http://bugs.webkit.org/show_bug.cgi?id=16137
2707
2708         On Leopard the toolbar background will be transparent, to allow the
2709         window background to show through the transparent WebView. The 
2710         search results divs needed to move inside the "main" div, so they
2711         would be clipped and not show where the toolbar is.
2712
2713         * page/InspectorController.cpp:
2714         (WebCore::platform): Return a string for which platform we are.
2715         (WebCore::InspectorController::windowScriptObjectAvailable):
2716         Define the platform function on the JavaScript class.
2717         * page/inspector/Panel.js: Add panels to the panels div.
2718         * page/inspector/inspector.css: On the Leopard platform make
2719         the toolbar background transparent so the window background shows.
2720         * page/inspector/inspector.html: Add a panels div and move search
2721         result divs inside the main div.
2722         * page/inspector/inspector.js: Tweak the resize code to acount for
2723         the search results divs moving inside the main div.
2724
2725 2007-11-25  Rodney Dawes  <dobey@wayofthemonkey.com>
2726
2727         Reviewed by Maciej Stachowiak.
2728
2729         Remove the unneeded CFNETWORK #ifdefs.
2730
2731         * loader/NetscapePlugInStreamLoader.h:
2732
2733 2007-11-24  Laszlo Gombos  <laszlo.gombos@gmail.com>
2734
2735         Reviewed by Sam Weinig.
2736
2737         Add printf format attribute to several functions. Use the the new WTF_ATTRIBUTE_PRINTF define.
2738
2739         * dom/XMLTokenizer.cpp:
2740         * dom/XMLTokenizer.h:
2741         * platform/DeprecatedString.h:
2742         * platform/PlatformString.h:
2743
2744 2007-11-25  Dan Bernstein  <mitz@apple.com>
2745
2746         Reviewed by Adam Roben.
2747
2748         - fix off-center error images
2749
2750         Covered by many pixel tests with missing images
2751
2752         * rendering/RenderImage.cpp:
2753         (WebCore::RenderImage::paint): Account for the 1 pixel outline when
2754         positioning the error image.
2755
2756 2007-11-25  Kevin Ollivier  <kevino@theolliviers.com>
2757
2758         wx build fix. Fix filename case for case-sensitive filesystems.
2759
2760         * WebCoreSources.bkl:
2761
2762 2007-11-22  Nikolas Zimmermann  <zimmermann@kde.org>
2763
2764         Reviewed by Adam Roben.
2765
2766         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15564
2767
2768         Fix problems with hidden glyphs. They were taken into account for quite
2769         some operations (hit testing, length calulcations etc..) except painting.
2770         Especially fixes boundaries of <textPath> (see using Web Inspector) if
2771         text-anchor isn't equal to 'start'.
2772
2773         Added testcase:
2774         svg/text/textPathBoundsBug.svg
2775
2776         Fixed testcase: (all showed text selection problems on text paths)
2777         svg/batik/text/textGlyphOrientationHorizontal.svg
2778         svg/batik/text/textOnPath.svg
2779         svg/batik/text/textOnPath3.svg
2780         svg/batik/text/verticalTextOnPath.svg
2781         svg/text/text-align-04-b.svg
2782         svg/W3C-SVG-1.1/text-align-04-b.svg
2783
2784         * rendering/SVGCharacterLayoutInfo.cpp:
2785         (WebCore::SVGChar::isHidden):
2786         * rendering/SVGCharacterLayoutInfo.h:
2787         (WebCore::SVGCharOnPath::SVGCharOnPath):
2788         * rendering/SVGInlineTextBox.cpp:
2789         (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
2790         (WebCore::SVGInlineTextBoxSelectionRectWalker::chunkPortionCallback):
2791         * rendering/SVGRootInlineBox.cpp:
2792         (WebCore::topLeftPositionOfCharacterRange):
2793         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
2794         (WebCore::cummulatedWidthOrHeightOfTextChunk):
2795         (WebCore::applyTextAnchorToTextChunk):
2796         (WebCore::applyTextLengthCorrectionToTextChunk):
2797         (WebCore::SVGRootInlineBox::layoutInlineBoxes):
2798         (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
2799         (WebCore::SVGRootInlineBox::buildTextChunks):
2800
2801 2007-11-25  Alexey Proskuryakov  <ap@webkit.org>
2802
2803         Reviewed by Maciej.
2804
2805         http://bugs.webkit.org/show_bug.cgi?id=15919
2806         XSLTProcessor.transformToFragment creates an extra not defined TEXT_NODE at the end
2807
2808         Test: fast/xsl/extra-lf-at-end.html
2809
2810         * xml/XSLTProcessor.cpp:
2811         (WebCore::writeToVector): Changed to use Vector to avoid slow String::apend().
2812         (WebCore::saveResultToString): Remove trailing line feed if present.
2813
2814 2007-11-24  Mark Rowe  <mrowe@apple.com>
2815
2816         Reviewed by Tim Hatcher.
2817
2818         Fix <rdar://problem/5432686> 333MB RPRVT seems to leak @ www.43folders.com (1hr plug-in stream).
2819         http://bugs.webkit.org/show_bug.cgi?id=13705
2820
2821         Don't buffer the entire stream contents in memory in the ResourceLoader.
2822
2823         * loader/mac/NetscapePlugInStreamLoaderMac.mm:
2824         (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
2825         (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
2826         * loader/mac/WebPlugInStreamLoaderDelegate.h:
2827
2828 2007-11-23  Adam Roben  <aroben@apple.com>
2829
2830         Get rid of WebCoreSystemInterface on Windows
2831
2832         The one function defined in that file is now in WebKitSystemInterface.
2833
2834         Reviewed by Tim.
2835
2836         * WebCore.vcproj/WebCore.vcproj: Removed
2837         WebCoreSystemInterface.{cpp,h}.
2838         * platform/graphics/cg/ImageCG.cpp: Made #include of
2839         WebCoreSystemInterface.h Mac-only.
2840         * platform/win/GraphicsContextWin.cpp: Ditto.
2841         * platform/win/WebCoreSystemInterface.cpp: Removed.
2842         * platform/win/WebCoreSystemInterface.h: Removed.
2843
2844 2007-11-24  Adam Roben  <aroben@apple.com>
2845
2846         Replace uses of %@ with %s in the inspector
2847
2848         Rubberstamped by Tim.
2849
2850         * English.lproj/InspectorLocalizedStrings.js: Changed %@ to %s.
2851         * page/inspector/DatabasePanel.js: Ditto.
2852         * page/inspector/StylesSidebarPane.js: Ditto.
2853         * page/inspector/inspector.js: Ditto.
2854         * page/inspector/utilities.js:
2855         (String.vsprintf): Removed @ as a format specifier.
2856
2857 2007-11-24  Adam Roben  <aroben@apple.com>
2858
2859         Windows build fix
2860
2861         Turn off the change made in r27984 on Windows for now.
2862
2863         * xml/XSLTProcessor.cpp:
2864         (WebCore::XSLTProcessor::transformToString):
2865         * xml/XSLTUnicodeSort.cpp:
2866
2867 2007-11-24  Timothy Hatcher  <timothy@apple.com>
2868
2869         Reviewed by Adam Roben.
2870
2871         Bug 16121: Web Inspector needs helper functions that pass a 'this' object to
2872         addEventListener and setTimeout
2873         http://bugs.webkit.org/show_bug.cgi?id=16121
2874
2875         Add Function.prototype.bind. This helper will return a wrapper function
2876         that will call the original function with the supplied arguments
2877         and using the supplied 'this' object.
2878
2879         * page/inspector/Database.js: Remove a use of setTimeout by
2880           inheriting some common functions from Resource.
2881         * page/inspector/DatabasePanel.js: Use the new bind function.
2882         * page/inspector/ConsolePanel.js: Ditto.
2883         * page/inspector/DocumentPanel.js: Ditto.
2884         * page/inspector/NetworkPanel.js: Ditto.
2885         * page/inspector/PropertiesSection.js: Ditto.
2886         * page/inspector/Resource.js: Ditto.
2887         * page/inspector/SidebarPane.js: Ditto.
2888         * page/inspector/inspector.html: Moved Database.js after Resource.js,
2889           now that Database.js uses it.
2890         * page/inspector/inspector.js: Use the new bind function. Also
2891           removed a setTimeout used for the localized strings code. There is
2892           now a load event listener added to the localized strings script
2893           element that will call WebInspector.loaded.
2894         * page/inspector/utilities.js: Add Function.prototype.bind.
2895
2896 2007-11-24  Timothy Hatcher  <timothy@apple.com>
2897
2898         Reviewed by Adam Roben.
2899
2900         Bug 16112: Some Web Inspector UI elements use offsetWidth and offsetHeight before the stylesheet loads
2901         http://bugs.webkit.org/show_bug.cgi?id=16112
2902
2903         In the places where we use offsetWidth and offsetHeight before
2904         the stylesheet loads there is now a check. If the body's
2905         offsetWidth is not greater than zero, then set a timeout
2906         to do the updates requiring the stylesheet later.
2907
2908         The three places this happened:
2909         - DOM tree selection highlight would show up at the wrong height
2910           when using Inspect Element to open the inspector.
2911         - DOM tree breadcrumbs would not collapse when using Inspect Element
2912           to open the inspector.
2913         - Network Timeline divider lines would not show when opening directly
2914           into the timeline.
2915
2916         * page/inspector/DocumentPanel.js: Check if the stylesheet loaded.
2917         * page/inspector/NetworkPanel.js: Ditto.
2918         * page/inspector/inspector.html: Include the stylesheet before
2919           any scripts, this will help get it loaded sooner.
2920
2921 2007-11-24  Kevin Ollivier  <kevino@theolliviers.com>
2922
2923         Add wx implementation for pathGetFilename
2924
2925         Reviewed by David D. Kilzer.
2926
2927         * html/HTMLFormElement.cpp:
2928         (WebCore::pathGetFilename):
2929
2930 2007-11-23  Timothy Hatcher  <timothy@apple.com>
2931
2932         Reviewed by Adam Roben.
2933
2934         Bug 16110: Clicking inside the resource headers in the network timeline collapses them
2935         http://bugs.webkit.org/show_bug.cgi?id=16110
2936
2937         Toggle the resource headers only if the click happens on the
2938         resource row, not within the headers area.
2939
2940         * WebCore.xcodeproj/project.pbxproj:
2941         * page/inspector/NetworkPanel.js:
2942
2943 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2944
2945         Win build fixes. CURL needs winsock, so don't disable it, and
2946         include pthreads.h to get the threadsafe *_r functions.
2947
2948         Reviewed by Adam Roben.
2949
2950         * config.h:
2951         * loader/FTPDirectoryDocument.cpp:
2952         * loader/FTPDirectoryParser.cpp:
2953
2954 2007-11-23  Kevin Ollivier  <kevino@theolliviers.com>
2955
2956         wx build fix. Move wx settings to project build settings,
2957         remove some old settings that were masking a build problem,
2958         and fix include ordering to ensure proper config.h and
2959         unicode/utf8.h headers are used. 
2960
2961         * webcore-base.bkl:
2962         * webcore-wx.bkl:
2963
2964 2007-11-23  Simon Hausmann  <hausmann@webkit.org>
2965
2966         Reviewed by George Staikos <staikos@kde.org>.
2967
2968         Another build fix specific to trunk (instead of the stable branch) to fix make clean (which the buildbots call).
2969
2970         * WebCore.pro:
2971
2972 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2973
2974         Not reviewed, trivial leak fix.
2975
2976         Fix xsltUnicodeSortFunction() memory leaks.
2977
2978         * xml/XSLTUnicodeSort.cpp:
2979         (WebCore::xsltUnicodeSortFunction):
2980
2981 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
2982
2983         Reviewed by Maciej.
2984
2985         <rdar://problem/5539306> REGRESSION: redirect fails when subframe's document is opened but
2986         not closed (affects digg.com)
2987
2988         Tests: fast/loader/meta-refresh-vs-open.html
2989                fast/loader/redirect-with-open-subframe-2.html
2990                fast/loader/redirect-with-open-subframe.html
2991                http/tests/loading/onload-vs-immediate-refresh.pl
2992
2993         * loader/FrameLoader.cpp:
2994         (WebCore::FrameLoader::scheduleRedirection): Only check whether the load is complete for
2995         HTTP redirects - JavaScript-initiated ones are effective immediately.
2996
2997 2007-11-23  Dan Bernstein  <mitz@apple.com>
2998
2999         Reviewed by Alexey Proskuryakov.
3000
3001         - apply matrix transforms on the correct side of the transformation
3002           matrix (not on the side where the vector is multiplied).
3003
3004         Test: fast/transforms/matrix-02.html
3005
3006         * rendering/RenderStyle.h:
3007         (WebCore::MatrixTransformOperation::apply):
3008
3009 2007-11-23  Alexey Proskuryakov  <ap@webkit.org>
3010
3011         Reviewed by Maciej.
3012
3013         http://bugs.webkit.org/show_bug.cgi?id=16077
3014         <rdar://problem/5609785> XSLT processor <xsl:sort> algorithm is incompatible with other
3015         browser implementations
3016
3017         Test: fast/xsl/sort-unicode.xml
3018
3019         * xml/XSLTProcessor.cpp:
3020         (WebCore::XSLTProcessor::transformToString): Set a custom sort function.
3021
3022         * xml/XSLTUnicodeSort.cpp: Added.
3023         (init_xsltTransformError):
3024         (xsltTransformError):
3025         (WebCore::xsltUnicodeSortFunction):
3026         * xml/XSLTUnicodeSort.h: Added.
3027         ICU-based implementation of xsl:sort, using an example from libxslt distribution.
3028         Only minimal coding style fixes to ease synchronization with upstream in the future.
3029
3030         * icu/unicode/ucol.h: Added.
3031         * icu/unicode/uset.h: Added.
3032         Taken from ICU 3.2
3033
3034         * WebCore.pro:
3035         * WebCore.vcproj/WebCore.vcproj:
3036         * WebCore.xcodeproj/project.pbxproj:
3037         * WebCoreSources.bkl:
3038         Added XSLTUnicodeSort.cpp.
3039
3040 2007-11-22  Alexey Proskuryakov  <ap@webkit.org>
3041
3042         Reviewed by Maciej.
3043
3044         http://bugs.webkit.org/show_bug.cgi?id=14977
3045         Hixie's DOM Core performance test shows insert >10x slower than append
3046
3047         Each invocation of Element.childNodes[n] was creating and registering a new ChildNodeList,
3048         which persisted and listened to notifications until GC.
3049
3050         A fix is to avoid registering child node lists for notifications - they don't need them, as
3051         they share a common cache in Node.
3052
3053         * dom/Node.cpp:
3054         (WebCore::Node::registerNodeList):
3055         (WebCore::Node::unregisterNodeList):
3056         (WebCore::Node::notifyLocalNodeListsAttributeChanged):
3057         (WebCore::Node::notifyLocalNodeListsChildrenChanged):
3058         * dom/NodeList.h:
3059         (WebCore::NodeList::needsNotifications):
3060
3061 2007-11-22  Dan Bernstein  <mitz@apple.com>
3062
3063         Reviewed by Antti Koivisto.
3064
3065         - fix http://bugs.webkit.org/show_bug.cgi?id=15811
3066           WebKit plug-ins can re-enter WebKit under attach()
3067           <rdar://problem/5577978>
3068
3069         Defer plug-in loading until after attach and recalcStyle using the
3070         post-attach callback mechanism. Netscape plug-ins are still loaded only
3071         after layout.
3072
3073         * dom/ContainerNode.cpp:
3074         Made NodeCallbackQueue elements retain the Node because callbacks might
3075         delete nodes that are in the callback queue.
3076         (WebCore::ContainerNode::suspendPostAttachCallbacks): Added. Needed to
3077         prevent post-attach callbacks from being dispatched under recalcStyle().
3078         (WebCore::ContainerNode::resumePostAttachCallbacks): Ditto.
3079         (WebCore::ContainerNode::dispatchPostAttachCallbacks): Factored out from
3080         attach().
3081         (WebCore::ContainerNode::attach):
3082         * dom/ContainerNode.h:
3083         * dom/Document.cpp:
3084         (WebCore::Document::recalcStyle): Added calls to
3085         suspendPostAttachCallbacks() and resumePostAttachCallbacks().
3086         * html/HTMLEmbedElement.cpp:
3087         (WebCore::HTMLEmbedElement::HTMLEmbedElement):
3088         (WebCore::HTMLEmbedElement::attach): Changed to queue the widget update
3089         for post-attach.
3090         (WebCore::HTMLEmbedElement::updateWidget): Added. Called by the
3091         post-attach callback.
3092         * html/HTMLEmbedElement.h: Added an m_needWidgetUpdate member needed to
3093         prevent a double update if another plug-in's post-attach updateWidget()
3094         triggers a layout which updates the widget before this plug-in's
3095         post-attach callback is invoked.
3096         (WebCore::HTMLEmbedElement::setNeedWidgetUpdate): Added a setter for
3097         m_needWidgetUpdate.
3098         * html/HTMLObjectElement.cpp:
3099         (WebCore::HTMLObjectElement::attach): Changed to queue the widget update
3100         for post-attach.
3101         (WebCore::HTMLObjectElement::updateWidget): Added. Called by the
3102         post-attach callback.
3103         * html/HTMLObjectElement.h:
3104         (WebCore::HTMLObjectElement::setNeedWidgetUpdate): Added a setter for
3105         m_needWidgetUpdate.
3106         * html/HTMLPlugInElement.cpp:
3107         (WebCore::HTMLPlugInElement::updateWidgetCallback): Added.
3108         * html/HTMLPlugInElement.h:
3109         (WebCore::HTMLPlugInElement::updateWidget):
3110         * rendering/RenderPartObject.cpp:
3111         (WebCore::RenderPartObject::updateWidget): Added calls to
3112         setNeedWidgetUpdate(false) so that if this method is called from
3113         FrameView::layout() during post-attach dispatch of another plug-in,
3114         it will not be called again when this plug-in's post-attach callback
3115         is dispatched.
3116         * rendering/RenderPartObject.h:
3117         (WebCore::RenderPartObject::updateWidget) Renamed argument to match
3118         the method definition.
3119
3120 2007-11-22  Timothy Hatcher  <timothy@apple.com>
3121
3122         Reviewed by Dan Bernstein.
3123
3124         Fix the Element.hasStyleClass and Element.removeStyleClass helpers
3125         to not find and replace substrings, but whole class names at the
3126         beginning or end of the string or surrounded by whitespace.
3127
3128         * page/inspector/utilities.js:
3129
3130 2007-11-22  Timothy Hatcher  <timothy@apple.com>
3131
3132         Revert part of my r27935 change that made the Tip balloons
3133         animate with CSS transitions. The balloon was only opacity 0,
3134         so it would cause its row to highlight when hovering over
3135         another row.
3136
3137         * page/inspector/NetworkPanel.js:
3138         * page/inspector/inspector.css:
3139
3140 2007-11-22  Dan Bernstein  <mitz@apple.com>
3141
3142         Reviewed by Maciej Stachowiak.
3143
3144         - fix http://bugs.webkit.org/show_bug.cgi?id=15943
3145           -webkit-transform matrix does not work
3146
3147         Test: fast/transforms/matrix-01.html
3148
3149         Parse all six matrix entries as numbers.
3150
3151         * css/CSSParser.cpp:
3152         (WebCore::TransformOperationInfo::TransformOperationInfo):
3153         (WebCore::CSSParser::parseTransform):
3154         * css/CSSStyleSelector.cpp:
3155         (WebCore::CSSStyleSelector::applyProperty):
3156         * rendering/RenderStyle.cpp:
3157         (WebCore::MatrixTransformOperation::blend):
3158         * rendering/RenderStyle.h:
3159         (WebCore::MatrixTransformOperation::MatrixTransformOperation):
3160         (WebCore::MatrixTransformOperation::apply):
3161
3162 2007-11-22  Laszlo Gombos  <laszlo.gombos@gmail.com>
3163
3164         Reviewed by Alp Toker.
3165
3166         Fix some compilation warnings.  Do not reference undefined (platform) specific type (WebCore::CachedFont::m_fontData)
3167
3168         * loader/CachedFont.cpp:
3169         (WebCore::CachedFont::~CachedFont):
3170         (WebCore::CachedFont::allReferencesRemoved):
3171
3172 2007-11-22  Alp Toker  <alp@atoker.com>
3173
3174         Reviewed by Mark Rowe.
3175
3176         GTK+ drawing fix.
3177
3178         Add a check to avoid crashing when the GraphicsContext is not
3179         associated with a GdkEventExpose. This was noticed when adding
3180         printing support but might be triggered in other situations too.
3181
3182         * platform/gtk/WidgetGtk.cpp:
3183         (WebCore::Widget::paint):
3184
3185 2007-11-22  Julien Chaffraix  <julien.chaffraix@gmail.com>
3186
3187         Reviewed by Alexey.
3188
3189         Bug 15530: XMLHttpRequest should not support certain methods
3190
3191         Test: http/tests/xmlhttprequest/xmlhttprequest-forbidden-methods-exception.html
3192
3193         * xml/XMLHttpRequest.cpp:
3194         (WebCore::XMLHttpRequest::open):
3195
3196 2007-11-22  Simon Hausmann  <hausmann@kde.org>
3197
3198         Reviewed by George.
3199
3200         For the build inside Qt include qbase.pri and don't duplicate what qbase.pri otherwise does (install targets, etc.)
3201
3202         * WebCore.pro:
3203
3204 2007-11-22  Simon Hausmann  <hausmann@kde.org>
3205
3206         Reviewed by George.
3207
3208         Don't set OBJECTS_DIR when building inside Qt
3209
3210         * WebCore.pro:
3211
3212 2007-11-22  Simon Hausmann  <hausmann@kde.org>
3213
3214         Reviewed by George.
3215
3216         Use ../generated as path for the generated sources for builds inside Qt
3217
3218         * WebCore.pro:
3219
3220 2007-11-22  Simon Hausmann  <hausmann@kde.org>
3221
3222         Reviewed by George.
3223
3224         Make the directory of where to put the generated sources configurable through the GENERATED_SOURCE_DIR variable
3225
3226         * WebCore.pro:
3227
3228 2007-11-22  Simon Hausmann  <hausmann@kde.org>
3229
3230         Reviewed by George.
3231
3232         Centralize the setup for all the extra compilers in a addExtraCompiler function.
3233         
3234         This allows adding a "generated_files" target that builds all generated files using "make generated_files".
3235         For the build inside Qt we do not generate actual rules for the extra compilers but instead
3236         do the variable substitution of compiler.output manually and add the generated sources to SOURCES.
3237
3238         * WebCore.pro:
3239
3240 2007-11-21  Timothy Hatcher  <timothy@apple.com>
3241
3242         Reviewed by Eric Seidel.
3243
3244         Show Fonts as Yellow in the network timeline.
3245
3246         * page/inspector/NetworkPanel.js:
3247         * page/inspector/inspector.css:
3248
3249 2007-11-21  Dan Bernstein  <mitz@apple.com>
3250
3251         Reviewed by Eric Seidel.
3252
3253         - fix <rdar://problem/5607037> REGRESSION (r27351): Departure date does not repaint when changed on Google Maps public transit planner (16034)
3254
3255         Test: fast/repaint/subtree-root-skipped.html
3256
3257         * page/FrameView.cpp:
3258         (WebCore::FrameViewPrivate::FrameViewPrivate): Initialize the layout
3259         root to 0.
3260         (WebCore::FrameView::layoutRoot): Changed to return a RenderObject
3261         instead of a Node.
3262         (WebCore::FrameView::layout): Changed for layout root being a renderer
3263         rather than a DOM node. Also replaced clearing the repaint rects
3264         set with asserting that it is empty if this is the top-level call to
3265         layout(). If it is not, the set may contain rects from enclosing
3266         layout() and those should not be removed.
3267         (WebCore::FrameView::scheduleRelayout): Changed for layout root being
3268         a renderer rather than a DOM node.
3269         (WebCore::isObjectAncestorContainerOf): Added this helper function that
3270         tests whether one object will be marked by calling
3271         markContainingBlocksForLayout() on the other.
3272         (WebCore::FrameView::scheduleRelayoutOfSubtree): Changed for layout
3273         root being a renderer rather than a DOM node. Changed the check if new
3274         and current layout roots are on the same path from the root to use
3275         the subgraph of the render tree defined by container()hood instead of
3276         the DOM tree and parenthood.
3277         * page/FrameView.h:
3278         * rendering/RenderBox.cpp: 
3279         (WebCore::RenderBox::calcWidth): Changed for layout root being a
3280         renderer rather than a DOM node.
3281         * rendering/RenderObject.cpp:
3282         (WebCore::RenderObject::~RenderObject): Added an assertion that the
3283         object being deleted is not currently the layout root.
3284         (WebCore::RenderObject::scheduleRelayout): Changed for layout root being
3285         a renderer rather than a DOM node.
3286
3287 2007-11-21  Mark Rowe  <mrowe@apple.com>
3288
3289         Reviewed by Eric.
3290
3291         Fix WebCore to build without warnings under GCC 4.2.
3292
3293         * Configurations/Base.xcconfig:
3294         * css/CSSRuleList.cpp:
3295         (WebCore::CSSRuleList::deleteRule):
3296         * css/CSSStyleSelector.cpp:
3297         (WebCore::CSSStyleSelector::locateSharedStyle):
3298         * html/HTMLParser.cpp:
3299         (WebCore::HTMLParser::allowNestedRedundantTag):
3300         * rendering/RenderBlock.cpp:
3301         (WebCore::RenderBlock::fillInlineSelectionGaps):
3302         (WebCore::RenderBlock::fillBlockSelectionGaps):
3303         * rendering/RenderLayer.cpp:
3304         (WebCore::RenderLayer::stackingContext):
3305         (WebCore::RenderLayer::enclosingPositionedAncestor):
3306         (WebCore::RenderLayer::transparentAncestor):
3307         * rendering/RenderStyle.cpp:
3308         (WebCore::BackgroundLayer::fillUnsetProperties):
3309         (WebCore::Transition::fillUnsetProperties):
3310         * rendering/RenderText.cpp:
3311         (WebCore::RenderText::containsOnlyWhitespace):
3312         * rendering/bidi.cpp:
3313         (WebCore::RenderBlock::determineStartPosition):
3314
3315 2007-11-21  Alp Toker  <alp@atoker.com>
3316
3317         Reviewed by Mark Rowe.
3318
3319         http://bugs.webkit.org/show_bug.cgi?id=16071
3320         Curl backend handles EINTR incorrectly
3321
3322         Defer timers during select() to avoid interruption by timer signals.
3323
3324         * platform/network/curl/ResourceHandleManager.cpp:
3325         (WebCore::ResourceHandleManager::downloadTimerCallback):
3326
3327 2007-11-21  Mark Rowe  <mrowe@apple.com>
3328
3329         Reviewed by Tim Hatcher.
3330
3331         Changes due to <rdar://problem/5602936> Need to resolve new GCC 4.2 warnings
3332
3333         Update format strings to use format specifiers that match the argument types.
3334
3335         * loader/icon/IconDatabase.cpp:
3336         (WebCore::IconDatabase::performURLImport):
3337         (WebCore::IconDatabase::writeToDatabase):
3338         * platform/mac/TextCodecMac.cpp:
3339         (WebCore::TextCodecMac::decode):
3340         * storage/Database.cpp:
3341         (WebCore::Database::deliverAllPendingCallbacks):
3342
3343 2007-11-21  Xan Lopez  <xan@gnome.org>
3344
3345         Reviewed by Alp Toker.
3346
3347         Clarify scroll event processing with a comment.
3348
3349         * platform/gtk/PlatformScrollBarGtk.cpp:
3350         (gtkScrollEventCallback):
3351
3352 2007-11-21  Timothy Hatcher  <timothy@apple.com>
3353
3354         Reviewed by Adam Roben.
3355
3356         Bug 16085: Web Inspector's Network Timeline graph code clean up and misc. fixes
3357         http://bugs.webkit.org/show_bug.cgi?id=16085
3358         
3359         Changes include:
3360         - Refactor the drawing code as nested functions instead of global functions.
3361         - Compute the segment percentages only once per call to drawSummaryGraph.
3362         - Account for percentages that rounded down to total less-than 100%.
3363         - Draw the pill shadow better using the canvas shadow drawing properties.
3364         - Removes a couple canvas context saves and restores.
3365
3366         * page/inspector/NetworkPanel.js:
3367
3368 2007-11-21  Alexey Proskuryakov  <ap@webkit.org>
3369
3370         Reviewed by Adam Roben.
3371
3372         http://bugs.webkit.org/show_bug.cgi?id=16056
3373         Unicode not being interpreted correctly in Web Inspector source view
3374
3375         Cannot be tested automatically.
3376
3377         * loader/CachedCSSStyleSheet.cpp:
3378         (WebCore::CachedCSSStyleSheet::encoding):
3379         * loader/CachedCSSStyleSheet.h:
3380         * loader/CachedResource.h:
3381         (WebCore::CachedResource::encoding):
3382         * loader/CachedScript.cpp:
3383         (WebCore::CachedScript::encoding):
3384         * loader/CachedScript.h:
3385         * loader/CachedXBLDocument.cpp:
3386         (WebCore::CachedXBLDocument::encoding):
3387         * loader/CachedXBLDocument.h:
3388         * loader/CachedXSLStyleSheet.cpp:
3389         (WebCore::CachedXSLStyleSheet::encoding):
3390         * loader/CachedXSLStyleSheet.h:
3391         Teach textual CachedResources to report their encodings.
3392
3393         * page/InspectorController.cpp:
3394         (WebCore::addSourceToFrame):
3395         (WebCore::updateResourceResponse):
3396         Use the actual encoding - the network layer has little idea about it.
3397
3398 2007-11-20  Mark Rowe  <mrowe@apple.com>
3399
3400         Reviewed by Maciej Stachowiak.
3401
3402         Fix <rdar://problem/5609579> (DOMParser().parseFromString() freezes Safari when parsing large nodes with XML entities)
3403         http://bugs.webkit.org/show_bug.cgi?id=16076
3404
3405         XMLTokenizer was calling CharacterData::appendData twice per entity in the fragment of XML being
3406         parsed (once for text before the entity, once for the entity itself).  This triggered O(n^2) copying
3407         of the CharacterData's string due to resizing.  We now prevent this happening by buffering all the
3408         content for a given Text node in the XMLTokenizer before sending it out to the node in a single go.
3409
3410         * dom/XMLTokenizer.cpp:
3411         (WebCore::XMLTokenizer::characters): Append the characters to the buffer.
3412         (WebCore::XMLTokenizer::endDocument): Ensure the buffer is flushed when the document has ended.
3413         (WebCore::endDocumentHandler):
3414         (WebCore::XMLTokenizer::enterText):
3415         (WebCore::XMLTokenizer::exitText): Append the contents of the buffer to the node.
3416         (WebCore::XMLTokenizer::initializeParserContext): Add the endDocument handler.
3417         (WebCore::parseXMLDocumentFragment): Force endDocument to be called when parsing a fragment to ensure
3418         that the buffer gets flushed to the node.
3419         * dom/XMLTokenizer.h:
3420
3421 2007-11-20  Timothy Hatcher  <timothy@apple.com>
3422
3423         Reviewed by Mark Rowe.
3424
3425         Animate the status area and tip balloons in the Web Inspector
3426         with CSS animations.
3427
3428         * page/inspector/NetworkPanel.js:
3429         * page/inspector/inspector.css:
3430         * page/inspector/inspector.js:
3431
3432 2007-11-20  Kevin Ollivier  <kevino@theolliviers.com>
3433
3434         wx build fix for Windows. Don't use WebCore/move-js-headers.sh as
3435         it indiscriminately copies any headers inside JavaScriptCore,
3436         which includes Tiger ICU headers. 
3437
3438         * webcore-base.bkl:
3439         Remove references to the WebCore/include dir generated by
3440         move-js-headers.sh, and also get headers from JavaScriptCore
3441         directly rather than from WebCore/ForwardingHeaders. 
3442
3443 2007-11-20  Alp Toker  <alp@atoker.com>
3444
3445         Reviewed by Mark Rowe.
3446
3447         Avoid pointlessly mallocing and freeing this transform matrix.
3448
3449         * platform/gtk/FontPlatformDataGtk.cpp:
3450         (WebCore::FontPlatformData::FontPlatformData):
3451
3452 2007-11-20  Naiem Shaik  <naiem.shaik@gmail.com>
3453
3454         Reviewed by Alp Toker.
3455
3456         http://bugs.webkit.org/show_bug.cgi?id=15763
3457         [GTK] Enter key does not take to the link highlighted.
3458
3459         Add missing keycode cases.
3460
3461         * platform/gtk/KeyEventGtk.cpp:
3462         (WebCore::keyIdentifierForGdkKeyCode):
3463         (WebCore::windowsKeyCodeForKeyEvent):
3464         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
3465
3466 2007-11-20  Mark Rowe  <mrowe@apple.com>
3467
3468         Reviewed by Sam Weinig.
3469
3470         Fix http://bugs.webkit.org/show_bug.cgi?id=16074
3471         Bug 16074: execCommand("InsertHorizontalRule", false, "") results in id="" being inserted
3472
3473         For consistency with InsertOrderedList and InsertUnorderedList a value parameter of "" should
3474         not result in an id being set.
3475
3476         * editing/JSEditor.cpp: Don't set the id attribute if value is empty.
3477
3478 2007-11-20  Dan Bernstein  <mitz@apple.com>
3479
3480         Reviewed by Adam Roben.
3481
3482         - fix <rdar://problem/5090708> Textareas render broken-looking scrollbars when too short to show full scrollbar
3483
3484         * platform/win/PlatformScrollBar.h:
3485         * platform/win/PlatformScrollBarSafari.cpp:
3486         Added the "hit inset" constants (representing how far the track eats
3487         into the button).
3488         (WebCore::PlatformScrollbar::paint): Changed to paint the buttons and
3489         the thumb only if they should be showing.
3490         (WebCore::PlatformScrollbar::hasButtons): Added. Returns whether the
3491         arrows should be drawn.
3492         (WebCore::PlatformScrollbar::hasThumb): Added. Returns whether the thumb
3493         should be drawn.
3494         (WebCore::PlatformScrollbar::forwardButtonRect):
3495         (WebCore::PlatformScrollbar::trackRect): Changed to return the entire
3496         bounds of the scrollbar if the scrollbar has no buttons.
3497         (WebCore::PlatformScrollbar::paintTrack): Changed to paint a disabled
3498         track along the entire scrollbar if it has not buttons.
3499         (WebCore::PlatformScrollbar::hitTest): Changed to hit test only the
3500         parts that the scrollbar has in its current dimensions.
3501
3502 2007-11-20  Mark Rowe  <mrowe@apple.com>
3503
3504         Reviewed by Alp Toker.
3505
3506         * config.h: Change #if to #ifdef to silence warnings on non-Apple platforms.
3507
3508 2007-11-20  Simon Hausmann  <hausmann@kde.org>
3509
3510         Reviewed by Adam Treat <treat@kde.org>.
3511
3512         Remove static linkage of QtWebKit against the ICO image format plugin.
3513         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
3514
3515         * WebCore.pro:
3516         * platform/graphics/qt/ImageDecoderQt.cpp:
3517
3518 2007-11-20  David D. Kilzer  <ddkilzer@webkit.org>
3519
3520         no-svg build broken after r27278
3521         <http://bugs.webkit.org/show_bug.cgi?id=16061>
3522
3523         Reviewed by Eric.
3524
3525         * bindings/scripts/CodeGeneratorObjC.pm: Always generate DOMHTMLEmbedElementPrivate.h
3526         and DOMHTMLObjectElementPrivate.h for no-svg build.
3527
3528 2007-11-20  Adam Treat  <treat@kde.org>
3529
3530         Reviewed by Simon.
3531
3532         * Don't use so much heap memory.
3533
3534         * platform/graphics/qt/ImageDecoderQt.cpp:
3535         * platform/graphics/qt/ImageDecoderQt.h:
3536         * platform/graphics/qt/ImageSourceQt.cpp:
3537         (WebCore::ImageSource::createFrameAtIndex):
3538
3539 2007-11-20  Lars Knoll  <lars@trolltech.com>
3540
3541         Reviewed by Simon.
3542
3543         Fix text break interators.
3544         
3545         The break iterators where trying to be smart about the input
3546         string and caching their results. Unfortunately a pointer/string length
3547         comparison is not good enough in all cases (since some input is stack based
3548         temp strings). Removed the caching but at the same time started to use a more
3549         efficient constructor of QTextBoundaryFinder that doesn't need to malloc for
3550         most strings.
3551         
3552         Fixes two test cases that test "text-transform: capitalize".
3553
3554         * platform/qt/TextBreakIteratorQt.cpp:
3555         (WebCore::wordBreakIterator):
3556         (WebCore::characterBreakIterator):
3557         (WebCore::lineBreakIterator):
3558         (WebCore::sentenceBreakIterator):
3559
3560 2007-11-20  Adam Treat  <treat@kde.org>
3561
3562         Reviewed by George.
3563
3564         * Make gif animations work for instance.
3565
3566         * platform/graphics/qt/ImageDecoderQt.cpp:
3567         (WebCore::ImageDecoderQt::reset):
3568         (WebCore::ImageDecoderQt::setData):
3569         (WebCore::ImageDecoderQt::frameCount):
3570         (WebCore::ImageDecoderQt::repetitionCount):
3571         * platform/graphics/qt/ImageDecoderQt.h:
3572
3573 2007-11-20  Adam Treat  <treat@kde.org>
3574
3575         * Build in release mode
3576
3577         * platform/NotImplemented.h:
3578
3579 2007-11-20  Adam Treat  <treat@kde.org>
3580
3581         Reviewed by Simon and George.
3582
3583         * Be quiet and allow suppression of NotImplemented calls at runtime.
3584
3585         * platform/NotImplemented.h:
3586
3587 2007-11-19  Doug Turner  <dougt@meer.net>
3588
3589         Reviewed by Alp Toker.
3590
3591         http://bugs.webkit.org/show_bug.cgi?id=16054
3592         Crash when GlyphPage::fill is called with more than 256 bytes of data
3593
3594         http://bugs.webkit.org/show_bug.cgi?id=14446
3595         [GDK] Crash on http://www.wikipedia.org/
3596
3597         setGlyphDataForIndex() uses a fixed array of size 256 which we can't
3598         exceed. We need to return failure if the buffer has Unicode
3599         supplementary characters for now.
3600
3601         This strategy matches the Win port, which also doesn't support this
3602         case yet.
3603
3604         Add an assertion so nobody makes this mistake again.
3605
3606         * platform/GlyphPageTreeNode.h:
3607         (WebCore::GlyphPage::setGlyphDataForIndex):
3608         * platform/gtk/GlyphPageTreeNodeGtk.cpp:
3609         (WebCore::GlyphPage::fill):
3610
3611 2007-11-19  Doug Turner  <dougt@meer.net>
3612
3613         Reviewed by Timothy Hatcher.
3614
3615         http://bugs.webkit.org/show_bug.cgi?id=16050
3616         sqlite3_prepare16_v2 build bustage.
3617
3618         Using the correct SQLITE_VERSION_NUMBER around sqlite_prepare16_v2
3619         to fix build bustage.
3620
3621         * platform/sql/SQLiteStatement.cpp:
3622         (WebCore::SQLiteStatement::prepare):
3623
3624 2007-11-19  Mark Rowe  <mrowe@apple.com>
3625
3626         Build fix.  Don't over-qualify the constructor name.
3627
3628         * storage/DatabaseDetails.h:
3629
3630 2007-11-19  Brady Eidson <beidson@apple.com>
3631
3632         Reviewed by Maciej
3633
3634         Stub out the WebCore parts of the WebKit API
3635
3636         * WebCore.base.exp:
3637         * WebCore.xcodeproj/project.pbxproj:
3638
3639         * storage/DatabaseDetails.h: Added.  Simple container for vitals on a specific database
3640         (WebCore::DatabaseDetails::DatabaseDetails::DatabaseDetails):
3641         (WebCore::DatabaseDetails::DatabaseDetails):
3642         (WebCore::DatabaseDetails::isValid):
3643         (WebCore::DatabaseDetails::name):
3644         (WebCore::DatabaseDetails::version):
3645         (WebCore::DatabaseDetails::displayName):
3646         (WebCore::DatabaseDetails::expectedUsage):
3647         (WebCore::DatabaseDetails::currentUsage):
3648
3649         * storage/DatabaseTracker.cpp:  Added various methods for API usage
3650         (WebCore::DatabaseTracker::detailsForNameAndOrigin):
3651         (WebCore::DatabaseTracker::usageForOrigin):
3652         (WebCore::DatabaseTracker::quotaForOrigin):
3653         (WebCore::DatabaseTracker::setQuota):
3654         * storage/DatabaseTracker.h:
3655
3656 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
3657
3658         wx port build fix.
3659
3660         * platform/graphics/wx/AffineTransformWx.cpp:
3661         (WebCore::AffineTransform::operator== ):
3662         m_transform is only available when using wxGraphicsContext.
3663
3664 2007-11-19  Alp Toker  <alp@atoker.com>
3665
3666         Reviewed by Mark Rowe.
3667
3668         GTK+ drawing fixes.
3669
3670         Add a check to avoid crashing when the GraphicsContext is not
3671         associated with a GdkDrawable. This was noticed when adding printing
3672         support but might be triggered in other situations too.
3673
3674         Do not render themes when painting is disabled. This is an
3675         optimisation for cases where GraphicsContext is used to calculate page
3676         dimensions etc. without actually rendering.
3677
3678         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3679         (WebCore::GraphicsContext::gdkDrawable):
3680         * platform/gtk/RenderThemeGtk.cpp:
3681         (WebCore::paintMozWidget):
3682
3683 2007-11-13  Rahul Abrol  <ra5ul@comcast.net>
3684
3685         Reviewed by Tim Hatcher.
3686
3687         http://bugs.webkit.org/show_bug.cgi?id=15977
3688         Resizing images preference now toggles default image state.
3689
3690         * loader/ImageDocument.cpp:
3691         (WebCore::ImageDocument::ImageDocument):
3692         (WebCore::ImageDocument::createDocumentStructure):
3693         (WebCore::ImageDocument::imageChanged):
3694
3695 2007-11-19  Kevin Ollivier  <kevino@theolliviers.com>
3696
3697         Update wx port build sources with recent changes, update
3698         wx FontPlatformData to be a class (MSVC7 gets confused
3699         otherwise...) and implement its hash() method.
3700
3701         Reviewed by Adam.
3702
3703         * WebCoreSources.bkl:
3704         * platform/wx/FontPlatformData.h:
3705         (WebCore::FontPlatformData::hash):
3706
3707 2007-11-19  Julien Chaffraix  <julien.chaffraix@gmail.com>
3708
3709         Reviewed by Darin.
3710
3711         http://bugs.webkit.org/show_bug.cgi?id=12194
3712         Bug 12194: Trying to access XMLHttpRequest.responseText or responseXML when they 
3713         are not available should raise an exception
3714
3715         Tests: http/tests/xmlhttprequest/xmlhttprequest-responseText-exception.html
3716                http/tests/xmlhttprequest/xmlhttprequest-responseXML-exception.html
3717
3718         * bindings/js/JSXMLHttpRequest.cpp:
3719         (KJS::JSXMLHttpRequest::getValueProperty):
3720         * xml/XMLHttpRequest.cpp:
3721         (WebCore::XMLHttpRequest::getResponseText):
3722         (WebCore::XMLHttpRequest::getResponseXML):
3723         * xml/XMLHttpRequest.h:
3724
3725 2007-11-19  Peter Kasting  <zerodpx@gmail.com>
3726
3727         Reviewed by Darin Adler.
3728
3729         http://bugs.webkit.org/show_bug.cgi?id=15971
3730         The GIF decoder should not fail decoding if the caller asks it to
3731         decode again when no new data has arrived since the last call.
3732
3733         * platform/image-decoders/gif/GIFImageReader.cpp:
3734         (GIFImageReader::read):
3735
3736 2007-11-18  Brady Eidson <beidson@apple.com>
3737
3738         Reviewed by Eric
3739
3740         Fix a crash hashing a default SecurityOriginData object 
3741
3742         * storage/DatabaseTracker.cpp:
3743         (WebCore::SecurityOriginDataHash::hash): The default object has some default strings with NULL
3744           StringImpls - don't try to hash those!
3745
3746 2007-11-18  Timothy Hatcher  <timothy@apple.com>
3747
3748         Reviewed by Sam Weinig.
3749
3750         Bug 16043: Remove InspectorController.log now that console.log works
3751         http://bugs.webkit.org/show_bug.cgi?id=16043
3752
3753         Remove the last uses of InspectorController.log. Once use was no longer needed,
3754         checking an erro case that can't happen anymore. The other case now uses console.error.
3755
3756         * page/InspectorController.cpp: Remove the log function.
3757         (WebCore::InspectorController::windowScriptObjectAvailable): Remove the log function from
3758         InspectorController script class.
3759         * page/inspector/DocumentPanel.js: Remove a use of InspectorController.log that isn't needed.
3760         * page/inspector/Panel.js: Change InspectorController.log to console.log and early return.
3761
3762 2007-11-18  Timothy Hatcher  <timothy@apple.com>
3763
3764         Reviewed by Brady.
3765
3766         Bug 16041: REGRESSION: the Database panel in the Inspector stopped showing errors
3767         http://bugs.webkit.org/show_bug.cgi?id=16041
3768
3769         * page/inspector/DatabasePanel.js: Implement error callbacks to pass to executeSql()
3770           and transaction(). Refactored some code for the success and error callbacks to use.
3771
3772 2007-11-18  Alexey Proskuryakov  <ap@webkit.org>
3773
3774         Reviewed by Maciej.
3775
3776         <rdar://problem/5546393> Whitespace handling doesn't match HTML5.
3777
3778         HTML5 definition is the same as MSIE's, with the exception that the latter strips null
3779         characters. Firefox also treats U+0008 as whitespace, but not U+000B or U+000C.
3780
3781         Test: fast/parser/html-whitespace.html
3782
3783         * html/HTMLTokenizer.cpp:
3784         (WebCore::HTMLTokenizer::parseSpecial):
3785         (WebCore::HTMLTokenizer::parseTag):
3786         Use isASCIISpace, which matches HTML5 definition of whitespace, and also what we use to
3787         check for whitespace almost everywhere.
3788
3789 2007-11-17  Mark Rowe  <mrowe@apple.com>
3790
3791         Reviewed by Darin Adler.
3792
3793         Fix: <rdar://problem/5607032> REGRESSION: testapi exits with assertion failure in debug build
3794              <rdar://problem/5440659> JSGlobalContextCreate throws away globalObjectClass's prototype
3795              http://bugs.webkit.org/show_bug.cgi?id=16033
3796
3797         Update for changes in Interpreter method signatures.
3798
3799         * bindings/js/kjs_binding.cpp:
3800         (KJS::ScriptInterpreter::ScriptInterpreter):
3801         * bindings/js/kjs_window.cpp:
3802         (KJS::Window::clear):
3803
3804 2007-11-17  Timothy Hatcher  <timothy@apple.com>
3805
3806         Reviewed by Mark Rowe.
3807
3808         Bug 13470: i18n: The Web Inspector is not localizable
3809         http://bugs.webkit.org/show_bug.cgi?id=13470
3810
3811         Add support for localization to the Web Inspector. Clients need to
3812         implement localizedStringsURL() to return the URL of the
3813         InspectorLocalizedStrings.js that best matches the user's language.
3814
3815         * English.lproj: Added.
3816         * English.lproj/InspectorLocalizedStrings.js: Added.
3817         * WebCore.xcodeproj/project.pbxproj: Add InspectorLocalizedStrings.js.
3818         * page/InspectorClient.h: Add localizedStringsURL.
3819         * page/InspectorController.cpp: Add localizedStringsURL that calls
3820           the client. Also added a version exposed to JavaScript.
3821         * page/InspectorController.h: Add localizedStringsURL.
3822         * page/inspector/ConsolePanel.js: Call WebInspector.UIString
3823           for user visible strings.
3824         * page/inspector/DatabasePanel.js: Ditto.
3825         * page/inspector/DocumentPanel.js: Ditto.
3826         * page/inspector/ImagePanel.js: Ditto.
3827         * page/inspector/MetricsSidebarPane.js: Ditto.
3828         * page/inspector/NetworkPanel.js: Ditto.
3829         * page/inspector/Panel.js: Ditto.
3830         * page/inspector/PropertiesSidebarPane.js: Ditto.
3831         * page/inspector/Resource.js: Ditto.
3832         * page/inspector/ResourceCategory.js: Ditto.
3833         * page/inspector/SourcePanel.js: Ditto.
3834         * page/inspector/StylesSidebarPane.js: Ditto.
3835         * page/inspector/inspector.css: Use pre-wrap so database errors can use \n.
3836         * page/inspector/inspector.html: Remove some user visible strings.
3837         * page/inspector/inspector.js: Added WebInspector.UIString and call
3838           WebInspector.UIString for user visible strings. Some code needed to be 
3839           moved to WebInspector.loaded to use UIString after the localized strings
3840           get loaded.
3841         * platform/graphics/svg/SVGImageEmptyClients.h:
3842         (WebCore::SVGEmptyFrameLoaderClient::redirectDataToPlugin): Remove WebCore:: prefix.
3843         (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
3844         (WebCore::SVGEmptyInspectorClient::localizedStringsURL): Add empty stub.
3845         (WebCore::SVGEmptyInspectorClient::highlight): Remove WebCore:: prefix.
3846         (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
3847
3848 2007-11-17  Timothy Hatcher  <timothy@apple.com>
3849
3850         Reviewed by Adam.
3851
3852         Reworte String.sprintf to fix many bad bugs and to not use RegExp. Also added
3853         String.vsprintf so it can be used later for the localization function.
3854
3855         This version only supports argument reordering, precision for floats, and these
3856         format characters: d, f, s and @. Any unsupported format characters are logged
3857         and substituted like strings.
3858
3859         * page/inspector/utilities.js:
3860
3861 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
3862
3863         Windows build fix.
3864
3865         * editing/Editor.h: Made canSmartCopyOrDelete public, as Windows WebView still needs it.
3866
3867 2007-11-17  Alexey Proskuryakov  <ap@webkit.org>
3868
3869         Reviewed by Darin.
3870
3871         http://bugs.webkit.org/show_bug.cgi?id=15969
3872         Eliminate Editor::deleteRange()
3873
3874         No change in functionality.
3875
3876         * editing/CompositeEditCommand.h: Removed unimplemented deleteKeyPressed().
3877
3878         * editing/Editor.cpp:
3879         (WebCore::Editor::deleteWithDirection):
3880         (WebCore::Editor::cut):
3881         (WebCore::Editor::performDelete):
3882         * editing/Editor.h:
3883         Moved relevant Editor::deleteRange() functionality to its callers.
3884         Removed deleteSelectionWithSmartDelete(void), which was more confusing than helpful
3885         in my opinion.
3886
3887         * editing/mac/EditorMac.mm:
3888         (WebCore::initializeKillRingIfNeeded):
3889         (WebCore::Editor::addToKillRing):
3890         (WebCore::Editor::yank):
3891         (WebCore::Editor::yankAndSelect):
3892         (WebCore::Editor::setMark):
3893         (WebCore::unionDOMRanges):
3894         (WebCore::Editor::deleteToMark):
3895         (WebCore::Editor::selectToMark):
3896         (WebCore::Editor::swapWithMark):
3897         Pushed kill ring handling down from WebCore.
3898
3899         * page/mac/WebCoreFrameBridge.h:
3900         * page/mac/WebCoreFrameBridge.mm:
3901         Removed setMarkDOMRange (the corresponding getter is still needed).
3902
3903         * WebCore.base.exp: No longer need to export Editor::deleteRange() and Editor::insertTextWithoutSendingTextEvent().
3904         Export the new kill ring functions.
3905
3906 2007-11-16  Ryan Leavengood  <leavengood@gmail.com>
3907
3908         Reviewed by David Kilzer.
3909
3910         Build fix: the needed headers for POSIX file functions were not
3911         included.
3912
3913         * platform/posix/FileSystemPOSIX.cpp:
3914
3915 2007-11-16  Dan Bernstein  <mitz@apple.com>
3916
3917         Reviewed by Darin Adler.
3918
3919         - fix the common case of <http://bugs.webkit.org/show_bug.cgi?id=15994>
3920           REGRESSION: Incomplete repaint of CSS image substitution
3921
3922         Test: fast/repaint/clip-with-layout-delta.html
3923
3924         * rendering/LayoutState.cpp:
3925         (WebCore::LayoutState::LayoutState): Account for layout delta when
3926         pushing additional clip.
3927
3928 2007-11-16  Antti Koivisto  <antti@apple.com>
3929
3930         Reviewed by Adele.
3931         
3932         Seeking related fixes, updates to match the latest specification
3933         - rename loopCount of HTMLMediaElement to playCount
3934         - add explicit seeking attribute to HTMLMediaElement to get semantics right
3935         - implement the specification behavior that currentTime must immediately return seeked position in HTMLMediaElement 
3936           instead of MoviePrivateQTKit 
3937         - fix broken behavior when seeking past end of the media, add tests
3938         - replace Movie didEnd callback with broader timeChanged callback (which gets called in didEnd case too)
3939         - use setDelayCallbacks: in various MoviePrivateQTKit methods to avoid bug prone synchronous callbacks from QT, make
3940           HTMLMediaElement not depend on synchronous callbacks
3941         - do some cleanups and simplifications in MoviePrivateQTKit, get rid of m_rateBeforeSeek and m_blockStateUpdate variables
3942
3943         Tests: http/tests/media/video-seekable-stall.html
3944                media/video-seeking.html
3945                media/video-seek-past-end-paused.html
3946                media/video-seek-past-end-playing.html
3947
3948         * html/HTMLAttributeNames.in: 
3949         * html/HTMLMediaElement.cpp:
3950         (WebCore::HTMLMediaElement::HTMLMediaElement):
3951         (WebCore::HTMLMediaElement::load):
3952         (WebCore::HTMLMediaElement::movieNetworkStateChanged):
3953         (WebCore::HTMLMediaElement::setReadyState):
3954         (WebCore::HTMLMediaElement::seek):
3955         (WebCore::HTMLMediaElement::seeking):
3956         (WebCore::HTMLMediaElement::currentTime):
3957         (WebCore::HTMLMediaElement::ended):
3958         (WebCore::HTMLMediaElement::play):
3959         (WebCore::HTMLMediaElement::pause):
3960         (WebCore::HTMLMediaElement::playCount):
3961         (WebCore::HTMLMediaElement::setPlayCount):
3962         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
3963         (WebCore::HTMLMediaElement::movieTimeChanged):
3964         (WebCore::HTMLMediaElement::endedPlayback):
3965         (WebCore::HTMLMediaElement::updateMovie):
3966         * html/HTMLMediaElement.h:
3967         * html/HTMLMediaElement.idl:
3968         * platform/graphics/Movie.cpp:
3969         (WebCore::Movie::timeChanged):
3970         * platform/graphics/Movie.h:
3971         (WebCore::MovieClient::movieTimeChanged):
3972         * platform/graphics/mac/MoviePrivateQTKit.h:
3973         * platform/graphics/mac/MoviePrivateQTKit.mm:
3974         (WebCore::MoviePrivate::MoviePrivate):
3975         (WebCore::MoviePrivate::load):
3976         (WebCore::MoviePrivate::play):
3977         (WebCore::MoviePrivate::pause):
3978         (WebCore::MoviePrivate::currentTime):
3979         (WebCore::MoviePrivate::seek):
3980         (WebCore::MoviePrivate::doSeek):
3981         (WebCore::MoviePrivate::cancelSeek):
3982         (WebCore::MoviePrivate::seekTimerFired):
3983         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
3984         (WebCore::MoviePrivate::paused):
3985         (WebCore::MoviePrivate::updateStates):
3986         (WebCore::MoviePrivate::timeChanged):
3987         (WebCore::MoviePrivate::didEnd):
3988
3989 2007-11-16  Anders Carlsson  <andersca@apple.com>
3990
3991         Reviewed by Adam.
3992
3993         <rdar://problem/5603832>
3994         XMLHttpRequest readyState 3 & responseText buffer issues.
3995
3996         * platform/network/cf/ResourceHandleCFNet.cpp:
3997         (WebCore::makeFinalRequest):
3998         Add new parameter which controls whether content sniffing should be turned off.
3999         
4000         (WebCore::ResourceHandle::loadResourceSynchronously):
4001         Always content sniff sync loads.
4002         
4003         * platform/network/cf/ResourceRequestCFNet.cpp:
4004         (WebCore::ResourceRequest::doUpdatePlatformRequest):
4005         If the ResourceRequest already has a backing CFURLRequest, make a copy of it. This preserves
4006         any properties set on the CFURLRequest.
4007
4008 2007-11-16  Jon Honeycutt  <jhoneycutt@apple.com>
4009
4010         Reviewed by Ollie.
4011
4012         <rdar://problem/5605175> Crash closing or leaving window with ViewPoint 
4013         Media player plugin
4014
4015         ViewPoint plugin requires that we pass a valid NPSavedData* to
4016         NPP_Destroy.
4017
4018         * plugins/win/PluginViewWin.cpp: Pass a valid NPSavedData* to
4019         NPP_Destroy. If the plugin allocates data, discard it
4020
4021 2007-11-16  Mark Rowe  <mrowe@apple.com>
4022
4023         Reviewed by Tim Hatcher.
4024
4025         Build WebCore as a sub-framework of WebKit in all configurations.
4026
4027         * Configurations/WebCore.xcconfig:
4028         * WebCore.xcodeproj/project.pbxproj:
4029
4030 2007-11-16  Doug Turner  <dougt@meer.net>
4031
4032         Reviewed by Alp.
4033
4034         http://bugs.webkit.org/show_bug.cgi?id=16018
4035         build bustage when building on debian 4.0
4036
4037         Fix build bustage on GTK+ with older versions of Pango.
4038
4039         Don't cache the return value since the docs say it can change.
4040
4041         * platform/gtk/Language.cpp:
4042         (WebCore::defaultLanguage):
4043
4044 2007-11-16  Brady Eidson  <beidson@apple.com>
4045
4046         Build fix
4047
4048         * platform/SecurityOriginData.h:
4049         (WebCore::operator!=): Whoops!
4050
4051 2007-11-16  Brady Eidson  <beidson@apple.com>
4052
4053         Reviewed by Sam
4054
4055         Further purify DatabaseTracker to use SecurityOriginData instead of "a String"
4056
4057         * WebCore.base.exp:
4058         * WebCore.xcodeproj/project.pbxproj:
4059         * WebCore.vcproj/WebCore.vcproj
4060         * WebCore.pro
4061
4062         * platform/SecurityOriginData.cpp: Added.
4063         (WebCore::SecurityOriginData::SecurityOriginData): Add a constructor that takes a "stringIdentifier"-style string,
4064           since that form is what will be stored in the Databases.db on disk
4065         (WebCore::SecurityOriginData::stringIdentifier):
4066         * platform/SecurityOriginData.h:
4067         (WebCore::SecurityOriginData::protocol):
4068         (WebCore::SecurityOriginData::host):
4069         (WebCore::SecurityOriginData::port):
4070
4071         * storage/DatabaseTracker.cpp:
4072         (WebCore::SecurityOriginDataHash::hash): Follow the pattern Darin set in FontCache.cpp to make a decent hash for 
4073           a SecurityOriginData object
4074         (WebCore::SecurityOriginDataHash::equal):
4075         (WebCore::SecurityOriginDataTraits::deletedValue): "file::1" will never exist in normal operation
4076         (WebCore::SecurityOriginDataTraits::emptyValue): "file::2" will never exist in normal operation
4077         (WebCore::DatabaseTracker::fullPathForDatabase):
4078         (WebCore::DatabaseTracker::populateOrigins):
4079         (WebCore::DatabaseTracker::origins):
4080         (WebCore::DatabaseTracker::addDatabase):
4081         * storage/DatabaseTracker.h:
4082
4083 2007-11-16  Alexey Proskuryakov  <ap@webkit.org>
4084
4085         Windows build fix.
4086
4087         * WebCore.vcproj/WebCore.vcproj: Removed VoidCallback.cpp, added JSCustomVoidCallback.{h,cpp}.
4088
4089 2007-11-16  Nikolas Zimmermann  <zimmermann@kde.org>
4090
4091         Reviewed by Eric.
4092
4093         Fixes: http://bugs.webkit.org/show_bug.cgi?id=12290
4094
4095         Implement all SVGTextContentElement DOM methods.
4096         This is the last missing SVG text feature. SVG fonts is next.
4097
4098         Added testcase: svg/custom/text-dom-01-f.svg (tests all new methods)
4099
4100         * ksvg2/svg/SVGTextContentElement.cpp:
4101         (WebCore::cummulatedCharacterRangeLength):
4102         (WebCore::SVGInlineTextBoxQueryWalker::):
4103         (WebCore::SVGInlineTextBoxQueryWalker::SVGInlineTextBoxQueryWalker):
4104         (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
4105         (WebCore::SVGInlineTextBoxQueryWalker::setQueryInputParameters):
4106         (WebCore::SVGInlineTextBoxQueryWalker::longResult):
4107         (WebCore::SVGInlineTextBoxQueryWalker::floatResult):
4108         (WebCore::SVGInlineTextBoxQueryWalker::pointResult):
4109         (WebCore::SVGInlineTextBoxQueryWalker::rectResult):
4110         (WebCore::SVGInlineTextBoxQueryWalker::stopProcessing):
4111         (WebCore::findInlineTextBoxInTextChunks):
4112         (WebCore::rootInlineBoxForTextContentElement):
4113         (WebCore::executeTextQuery):
4114         (WebCore::SVGTextContentElement::getNumberOfChars):
4115         (WebCore::SVGTextContentElement::getComputedTextLength):
4116         (WebCore::SVGTextContentElement::getSubStringLength):
4117         (WebCore::SVGTextContentElement::getStartPositionOfChar):
4118         (WebCore::SVGTextContentElement::getEndPositionOfChar):
4119         (WebCore::SVGTextContentElement::getExtentOfChar):
4120         (WebCore::SVGTextContentElement::getRotationOfChar):
4121         (WebCore::SVGTextContentElement::getCharNumAtPosition):
4122         (WebCore::SVGTextContentElement::selectSubString):
4123         * ksvg2/svg/SVGTextContentElement.h:
4124         * rendering/SVGInlineTextBox.h:
4125
4126 2007-11-15  Adele Peterson  <adele@apple.com>
4127
4128         Reviewed by Oliver.
4129
4130         Fix for <rdar://problem/5566652> CrashTracer: [USER] 3 crashes in Safari at HTMLSelectElement::menuListDefaultEventHandler (reproducible on mactc30.com)
4131
4132         Test: fast/forms/menulist-no-renderer-onmousedown.html
4133
4134         * html/HTMLSelectElement.cpp:
4135         (WebCore::HTMLSelectElement::defaultEventHandler): Nil check the renderer here.  None of the default behavior makes sense if there's no renderer.
4136         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Moved the nil check to the main defaultEventHandler.
4137
4138 2007-11-15  Antti Koivisto  <antti@apple.com>
4139
4140         Reviewed by Adele.
4141
4142         Fix <rdar://problem/5601598>
4143         The movie tag should do initialization on need and not during startup.
4144         
4145         Initialize Movie MIME type hash on demand
4146
4147    &