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