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