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