JavaScriptCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2007-12-10  Timothy Hatcher  <timothy@apple.com>
2
3         Reviewed by Mark Rowe.
4
5         <rdar://problem/5639463> Bundle versions on Tiger should be 4523.x not 523.x
6
7         * Configurations/Version.xcconfig: Some Tiger versions of Xcode don't set MAC_OS_X_VERSION_MAJOR,
8           so assume Tiger and use a 4 for the SYSTEM_VERSION_PREFIX.
9
10 2007-12-10  Alp Toker  <alp@atoker.com>
11
12         Reviewed by Niko.
13
14         Cairo implementation of GraphicsContext::setUseAntialiasing().
15
16         * platform/graphics/cairo/GraphicsContextCairo.cpp:
17         (WebCore::GraphicsContext::setUseAntialiasing):
18
19 2007-12-10  Rob Buis  <buis@kde.org>
20
21         Reviewed by Darin.
22
23         http://bugs.webkit.org/show_bug.cgi?id=16182
24         SVG should disable antialiasing for shape-rendering="crispEdges"
25
26         Turn off anti-aliasing of shapes when shape-rendering="crispEdges".
27
28         * platform/graphics/GraphicsContext.h:
29         * platform/graphics/cairo/GraphicsContextCairo.cpp:
30         (WebCore::GraphicsContext::setUseAntialiasing):
31         * platform/graphics/cg/GraphicsContextCG.cpp:
32         (WebCore::GraphicsContext::setUseAntialiasing):
33         * platform/graphics/qt/GraphicsContextQt.cpp:
34         (WebCore::GraphicsContext::setUseAntialiasing):
35         * platform/graphics/wx/GraphicsContextWx.cpp:
36         (WebCore::GraphicsContext::setUseAntialiasing):
37         * rendering/RenderPath.cpp:
38         (WebCore::RenderPath::paint):
39
40 2007-12-09  Rob Buis  <buis@kde.org>
41
42         Reviewed by Niko.
43
44         http://bugs.webkit.org/show_bug.cgi?id=16163
45         SVG crash in Node::setChanged() on Debug builds only (trashed parent)
46
47         Fix the crash by properly unregistering as client from SVGResource
48         when deleting a styled svg node.
49
50         * svg/SVGStyledElement.cpp:
51         (WebCore::SVGStyledElement::~SVGStyledElement):
52
53 2007-12-10  Brady Eidson  <beidson@apple.com>
54
55         Rubberstamped by John
56
57         * storage/DatabaseTracker.cpp:
58         (WebCore::DatabaseTracker::canEstablishDatabase): If the UI Delegate returns *exactly* the estimated size
59           for the new quota, we should allow the database to be created
60
61 2007-12-10  David D. Kilzer  <ddkilzer@webkit.org>
62
63         Bug 9683: Implement select.options.remove() method
64         <http://bugs.webkit.org/show_bug.cgi?id=9683>
65
66         Reviewed by Maciej.
67
68         Implement select.options.remove() by calling select.remove()
69         with the same arguments.  This is what MSIE 7 does, although its
70         select.remove() method differs from WebKit's by throwing an
71         exception when called with no arguments or with a negative
72         integer argument.  Note that the DOM Level 1 documentation
73         specifies that select.remove() does not throw an exception.
74
75         Tests: fast/js/select-options-remove-gc.html
76                fast/js/select-options-remove.html
77
78         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
79         (WebCore::JSHTMLOptionsCollection::remove): Added.
80         * html/HTMLOptionsCollection.cpp:
81         (WebCore::HTMLOptionsCollection::remove): Added.
82         * html/HTMLOptionsCollection.h:
83         * html/HTMLOptionsCollection.idl:
84
85 2007-12-09  Sam Weinig  <sam@webkit.org>
86
87         Rubber stamped by Mark Rowe.
88
89         * WebCore.xcodeproj/project.pbxproj: Add missing DerivedSources files.
90
91 2007-12-09  Oliver Hunt  <oliver@apple.com>
92
93         Reviewed by Niko.
94
95         Correction, 'z' and 'Z' are the only commands that cannot have an extended
96         list of arguments.
97
98         * svg/SVGParserUtilities.cpp:
99         (WebCore::SVGPathParser::parseSVG):
100
101 2007-12-09  Oliver Hunt  <oliver@apple.com>
102
103         Reviewed by Niko.
104
105         Prevent unlimited iteration in the case of invalid path data.
106         
107         The only path commands that can leave numbers trailing the command processing
108         are 'm' and 'M', in which trailing numbers are parsed as arguments to an
109         implicit lineto command.  In any case we should just terminate as an invalid
110         path.
111
112         * svg/SVGParserUtilities.cpp:
113         (WebCore::SVGPathParser::parseSVG):
114
115 2007-12-09  Luca Bruno  <lethalman88@gmail.com>
116
117         Reviewed by Alp Toker.
118
119         http://bugs.webkit.org/show_bug.cgi?id=15825
120         [GTK] curl - slow dns causing hangs.
121
122         Create a vector of jobs, to satisfy requests in the right order.
123         Set a limit to the number of simultaneous connections.
124
125         * platform/network/curl/ResourceHandleManager.cpp:
126         (WebCore::maxRunningJobs): added
127         (WebCore::ResourceHandleManager::ResourceHandleManager):
128         (WebCore::ResourceHandleManager::removeFromCurl):
129         (WebCore::ResourceHandleManager::startScheduledJobs):
130
131         * platform/network/curl/ResourceHandleManager.h:
132         (WebCore::ResourceHandleList): removed
133         (WebCore::ResourceHandleManager::m_runningJobs): added
134         (WebCore::ResourceHandleManager::m_resourceHandleListHead): removed
135         (WebCore::ResourceHandleManager::m_resourceHandleList): added
136
137 2007-12-08  Sam Weinig  <sam@webkit.org>
138
139         Reviewed by Oliver.
140
141         Cleanup kjs_window.h/cpp.
142
143         * bindings/js/kjs_window.cpp:
144         (KJS::WindowPrivate::WindowPrivate):
145         (KJS::DOMWindowTimer::DOMWindowTimer):
146         (KJS::Window::Window):
147         (KJS::Window::retrieveWindow):
148         (KJS::Window::retrieveActive):
149         (KJS::Window::retrieve):
150         (KJS::Window::location):
151         (KJS::Window::mark):
152         (KJS::allowPopUp):
153         (KJS::parseModalDialogFeatures):
154         (KJS::floatFeature):
155         (KJS::canShowModalDialog):
156         (KJS::canShowModalDialogNow):
157         (KJS::showModalDialog):
158         (KJS::Window::getValueProperty):
159         (KJS::Window::getOwnPropertySlot):
160         (KJS::Window::globalExec):
161         (KJS::Window::setListener):
162         (KJS::Window::getListener):
163         (KJS::Window::findOrCreateJSEventListener):
164         (KJS::Window::findOrCreateJSUnprotectedEventListener):
165         (KJS::Window::clearHelperObjectProperties):
166         (KJS::Window::setCurrentEvent):
167         (KJS::WindowProtoFuncAToB::callAsFunction):
168         (KJS::WindowProtoFuncBToA::callAsFunction):
169         (KJS::WindowProtoFuncOpen::callAsFunction):
170         (KJS::WindowProtoFuncSetTimeout::callAsFunction):
171         (KJS::WindowProtoFuncClearTimeout::callAsFunction):
172         (KJS::WindowProtoFuncSetInterval::callAsFunction):
173         (KJS::WindowProtoFuncAddEventListener::callAsFunction):
174         (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
175         (KJS::WindowProtoFuncShowModalDialog::callAsFunction):
176         (KJS::WindowProtoFuncNotImplemented::callAsFunction):
177         * bindings/js/kjs_window.h:
178         (KJS::PausedTimeouts::PausedTimeouts):
179         (KJS::PausedTimeouts::takeTimeouts):
180         (KJS::ScheduledAction::ScheduledAction):
181
182 2007-12-08  Sam Weinig  <sam@webkit.org>
183
184         Reviewed by Mitz.
185
186         Move window scrolling, moving and resizing methods from KJS::Window
187         to WebCore::DOMWindow so that there bindings can be autogenerated.
188
189         Tests: fast/dom/Window/window-resize-and-move-arguments.html
190                fast/dom/Window/window-scroll-arguments.html
191
192         * WebCore.xcodeproj/project.pbxproj:
193         * bindings/js/kjs_window.cpp:
194         (KJS::Window::getValueProperty): Remove extraneous allowsAccessFrom check.
195         (KJS::WindowProtoFuncOpen::callAsFunction):
196         (KJS::WindowProtoFuncNotImplemented::callAsFunction): Remove extraneous allowsAccessFrom check.
197         * bindings/js/kjs_window.h:
198         * bindings/scripts/CodeGeneratorJS.pm: Add new extended attribute
199         to ensure that the no less than the declared number of attributes
200         is allowed.
201         * page/DOMWindow.cpp:
202         (WebCore::DOMWindow::adjustWindowRect): Moved from kjs_window.
203         (WebCore::DOMWindow::scrollBy):
204         (WebCore::DOMWindow::scrollTo):
205         (WebCore::DOMWindow::moveBy):
206         (WebCore::DOMWindow::moveTo):
207         (WebCore::DOMWindow::resizeBy):
208         (WebCore::DOMWindow::resizeTo):
209         * page/DOMWindow.h:
210         (WebCore::DOMWindow::scroll):
211         * page/DOMWindow.idl:
212
213 2007-12-08  Kevin Ollivier  <kevino@theolliviers.com>
214
215         Reviewed by Alp Toker.
216
217         http://bugs.webkit.org/show_bug.cgi?id=14651
218         [CURL] didReceiveResponse() only called for HTTP loads
219
220         http://bugs.webkit.org/show_bug.cgi?id=14583
221         [GDK] file:// relative CSS include URLs handled incorrectly
222
223         Make sure CURL sets the ResourceResponse URL and calls
224         didReceiveResponse for local files too. 
225
226         * platform/network/curl/ResourceHandleManager.cpp:
227         (WebCore::writeCallback):
228
229 2007-12-08  Oliver Hunt  <oliver@apple.com>
230
231         Reviewed by Sam W.
232
233         Split the ENABLE_SVG_EXPERIMENTAL_FEATURES flag into separate flags.
234         
235         Fixes <rdar://problem/5620249> Must disable SVG animation
236         <rdar://problem/5612772> Disable SVG filters on Mac to match Windows behavior
237         
238         In order to allow finer grained control over the set of SVG features
239         this patch splits ENABLE_SVG_EXPERIMENTAL_FEATURES into the following
240         distinct flags:
241         ENABLE_SVG_ANIMATION
242         ENABLE_SVG_FILTERS
243         ENABLE_SVG_FONTS
244         ENABLE_SVG_AS_IMAGE
245         ENABLE_SVG_USE
246         
247         by default only ENABLE_SVG_AS_IMAGE and ENABLE_SVG_USE are set.
248
249         * Configurations/WebCore.xcconfig:
250         * DerivedSources.make:
251           Handle the increased number of build flags that may be necessary
252           
253         * WebCore.SVG.Animation.exp: Added.
254         * WebCore.SVG.Filters.exp: Added.
255         * WebCore.SVG.exp:
256           We now may not need the animation or filter exports so 
257           these need to be separate.
258           
259         * WebCore.vcproj/WebCore.vcproj:
260         * WebCore.vcproj/build-generated-files.sh:
261           Update for new flags
262           
263         Remainder of changes are to swap ENABLE(SVG_EXPERIMENTAL_FEATURES) 
264         with the appropriate specific feature flag.  
265         * bindings/js/JSSVGElementWrapperFactory.cpp:
266         (WebCore::createJSSVGWrapper):
267         * bindings/objc/DOM.mm:
268         (WebCore::createElementClassMap):
269         * dom/make_names.pl:
270         * loader/CachedImage.cpp:
271         (WebCore::CachedImage::createImage):
272         * page/DOMWindow.idl:
273         * rendering/RenderPath.cpp:
274         (WebCore::RenderPath::absoluteClippedOverflowRect):
275         * rendering/RenderSVGContainer.cpp:
276         (WebCore::RenderSVGContainer::absoluteClippedOverflowRect):
277         * rendering/RenderSVGImage.cpp:
278         (WebCore::RenderSVGImage::absoluteClippedOverflowRect):
279         * rendering/RenderSVGRoot.cpp:
280         (WebCore::RenderSVGRoot::paint):
281         (WebCore::RenderSVGRoot::absoluteClippedOverflowRect):
282         * rendering/RenderSVGText.cpp:
283         (WebCore::RenderSVGText::absoluteClippedOverflowRect):
284         * rendering/SVGRenderSupport.cpp:
285         (WebCore::prepareToRenderSVGContent):
286         (WebCore::finishRenderSVGContent):
287         * svg/SVGAnimateElement.cpp:
288         * svg/SVGAnimateElement.h:
289         * svg/SVGAnimateElement.idl:
290         * svg/SVGAnimateMotionElement.cpp:
291         * svg/SVGAnimateMotionElement.h:
292         * svg/SVGAnimateTransformElement.cpp:
293         * svg/SVGAnimateTransformElement.h:
294         * svg/SVGAnimateTransformElement.idl:
295         * svg/SVGComponentTransferFunctionElement.cpp:
296         * svg/SVGComponentTransferFunctionElement.h:
297         * svg/SVGComponentTransferFunctionElement.idl:
298         * svg/SVGDocumentExtensions.cpp:
299         (WebCore::SVGDocumentExtensions::startAnimations):
300         * svg/SVGFEBlendElement.cpp:
301         * svg/SVGFEBlendElement.h:
302         * svg/SVGFEBlendElement.idl:
303         * svg/SVGFEColorMatrixElement.cpp:
304         * svg/SVGFEColorMatrixElement.h:
305         * svg/SVGFEColorMatrixElement.idl:
306         * svg/SVGFEComponentTransferElement.cpp:
307         * svg/SVGFEComponentTransferElement.h:
308         * svg/SVGFEComponentTransferElement.idl:
309         * svg/SVGFECompositeElement.cpp:
310         * svg/SVGFECompositeElement.h:
311         * svg/SVGFECompositeElement.idl:
312         * svg/SVGFEDiffuseLightingElement.cpp:
313         * svg/SVGFEDiffuseLightingElement.h:
314         * svg/SVGFEDiffuseLightingElement.idl:
315         * svg/SVGFEDisplacementMapElement.cpp:
316         * svg/SVGFEDisplacementMapElement.h:
317         * svg/SVGFEDisplacementMapElement.idl:
318         * svg/SVGFEDistantLightElement.cpp:
319         * svg/SVGFEDistantLightElement.h:
320         * svg/SVGFEDistantLightElement.idl:
321         * svg/SVGFEFloodElement.cpp:
322         * svg/SVGFEFloodElement.h:
323         * svg/SVGFEFloodElement.idl:
324         * svg/SVGFEFuncAElement.cpp:
325         * svg/SVGFEFuncAElement.h:
326         * svg/SVGFEFuncAElement.idl:
327         * svg/SVGFEFuncBElement.cpp:
328         * svg/SVGFEFuncBElement.h:
329         * svg/SVGFEFuncBElement.idl:
330         * svg/SVGFEFuncGElement.cpp:
331         * svg/SVGFEFuncGElement.h:
332         * svg/SVGFEFuncGElement.idl:
333         * svg/SVGFEFuncRElement.cpp:
334         * svg/SVGFEFuncRElement.h:
335         * svg/SVGFEFuncRElement.idl:
336         * svg/SVGFEGaussianBlurElement.cpp:
337         * svg/SVGFEGaussianBlurElement.h:
338         * svg/SVGFEGaussianBlurElement.idl:
339         * svg/SVGFEImageElement.cpp:
340         * svg/SVGFEImageElement.h:
341         * svg/SVGFEImageElement.idl:
342         * svg/SVGFELightElement.cpp:
343         * svg/SVGFELightElement.h:
344         * svg/SVGFEMergeElement.cpp:
345         * svg/SVGFEMergeElement.h:
346         * svg/SVGFEMergeElement.idl:
347         * svg/SVGFEMergeNodeElement.cpp:
348         * svg/SVGFEMergeNodeElement.h:
349         * svg/SVGFEMergeNodeElement.idl:
350         * svg/SVGFEOffsetElement.cpp:
351         * svg/SVGFEOffsetElement.h:
352         * svg/SVGFEOffsetElement.idl:
353         * svg/SVGFEPointLightElement.cpp:
354         * svg/SVGFEPointLightElement.h:
355         * svg/SVGFEPointLightElement.idl:
356         * svg/SVGFESpecularLightingElement.cpp:
357         * svg/SVGFESpecularLightingElement.h:
358         * svg/SVGFESpecularLightingElement.idl:
359         * svg/SVGFESpotLightElement.cpp:
360         * svg/SVGFESpotLightElement.h:
361         * svg/SVGFESpotLightElement.idl:
362         * svg/SVGFETileElement.cpp:
363         * svg/SVGFETileElement.h:
364         * svg/SVGFETileElement.idl:
365         * svg/SVGFETurbulenceElement.cpp:
366         * svg/SVGFETurbulenceElement.h:
367         * svg/SVGFETurbulenceElement.idl:
368         * svg/SVGFilterElement.cpp:
369         * svg/SVGFilterElement.h:
370         * svg/SVGFilterElement.idl:
371         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
372         * svg/SVGTimer.cpp:
373         (WebCore::SVGTimer::animationsByElement):
374         * svg/SVGUseElement.cpp:
375         (WebCore::SVGUseElement::buildPendingResource):
376         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
377         * svg/SVGUseElement.h:
378         * svg/TimeScheduler.cpp:
379         (WebCore::TimeScheduler::connectIntervalTimer):
380         (WebCore::TimeScheduler::disconnectIntervalTimer):
381         * svg/graphics/SVGResourceFilter.cpp:
382         * svg/graphics/SVGResourceFilter.h:
383         * svg/graphics/cg/SVGResourceFilterCg.cpp:
384         * svg/graphics/cg/SVGResourceFilterCg.mm:
385         * svg/graphics/filters/SVGDistantLightSource.h:
386         * svg/graphics/filters/SVGFEBlend.cpp:
387         * svg/graphics/filters/SVGFEBlend.h:
388         * svg/graphics/filters/SVGFEColorMatrix.cpp:
389         * svg/graphics/filters/SVGFEColorMatrix.h:
390         * svg/graphics/filters/SVGFEComponentTransfer.cpp:
391         * svg/graphics/filters/SVGFEComponentTransfer.h:
392         * svg/graphics/filters/SVGFEComposite.cpp:
393         * svg/graphics/filters/SVGFEComposite.h:
394         * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
395         * svg/graphics/filters/SVGFEConvolveMatrix.h:
396         * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
397         * svg/graphics/filters/SVGFEDiffuseLighting.h:
398         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
399         * svg/graphics/filters/SVGFEDisplacementMap.h:
400         * svg/graphics/filters/SVGFEFlood.cpp:
401         * svg/graphics/filters/SVGFEFlood.h:
402         * svg/graphics/filters/SVGFEGaussianBlur.cpp:
403         * svg/graphics/filters/SVGFEGaussianBlur.h:
404         * svg/graphics/filters/SVGFEImage.cpp:
405         * svg/graphics/filters/SVGFEImage.h:
406         * svg/graphics/filters/SVGFEMerge.cpp:
407         * svg/graphics/filters/SVGFEMerge.h:
408         * svg/graphics/filters/SVGFEMorphology.cpp:
409         * svg/graphics/filters/SVGFEMorphology.h:
410         * svg/graphics/filters/SVGFEOffset.cpp:
411         * svg/graphics/filters/SVGFEOffset.h:
412         * svg/graphics/filters/SVGFESpecularLighting.cpp:
413         * svg/graphics/filters/SVGFESpecularLighting.h:
414         * svg/graphics/filters/SVGFETile.h:
415         * svg/graphics/filters/SVGFETurbulence.cpp:
416         * svg/graphics/filters/SVGFETurbulence.h:
417         * svg/graphics/filters/SVGFilterEffect.cpp:
418         * svg/graphics/filters/SVGFilterEffect.h:
419         * svg/graphics/filters/SVGLightSource.cpp:
420         * svg/graphics/filters/SVGLightSource.h:
421         * svg/graphics/filters/SVGPointLightSource.h:
422         * svg/graphics/filters/SVGSpotLightSource.h:
423         * svg/graphics/filters/cg/SVGFEBlendCg.mm:
424         * svg/graphics/filters/cg/SVGFEColorMatrixCg.mm:
425         * svg/graphics/filters/cg/SVGFEComponentTransferCg.mm:
426         * svg/graphics/filters/cg/SVGFECompositeCg.mm:
427         * svg/graphics/filters/cg/SVGFEDiffuseLightingCg.mm:
428         * svg/graphics/filters/cg/SVGFEDisplacementMapCg.mm:
429         * svg/graphics/filters/cg/SVGFEFloodCg.mm:
430         * svg/graphics/filters/cg/SVGFEGaussianBlurCg.mm:
431         * svg/graphics/filters/cg/SVGFEHelpersCg.h:
432         * svg/graphics/filters/cg/SVGFEHelpersCg.mm:
433         * svg/graphics/filters/cg/SVGFEImageCg.mm:
434         * svg/graphics/filters/cg/SVGFEMergeCg.mm:
435         * svg/graphics/filters/cg/SVGFEOffsetCg.mm:
436         * svg/graphics/filters/cg/SVGFESpecularLightingCg.mm:
437         * svg/graphics/filters/cg/SVGFETileCg.mm:
438         * svg/graphics/filters/cg/SVGFilterEffectCg.mm:
439         * svg/graphics/filters/cg/WKArithmeticFilter.h:
440         * svg/graphics/filters/cg/WKArithmeticFilter.m:
441         * svg/graphics/filters/cg/WKComponentMergeFilter.h:
442         * svg/graphics/filters/cg/WKComponentMergeFilter.m:
443         * svg/graphics/filters/cg/WKDiffuseLightingFilter.h:
444         * svg/graphics/filters/cg/WKDiffuseLightingFilter.m:
445         * svg/graphics/filters/cg/WKDiscreteTransferFilter.h:
446         * svg/graphics/filters/cg/WKDiscreteTransferFilter.m:
447         * svg/graphics/filters/cg/WKDisplacementMapFilter.h:
448         * svg/graphics/filters/cg/WKDisplacementMapFilter.m:
449         * svg/graphics/filters/cg/WKDistantLightFilter.h:
450         * svg/graphics/filters/cg/WKDistantLightFilter.m:
451         * svg/graphics/filters/cg/WKGammaTransferFilter.h:
452         * svg/graphics/filters/cg/WKGammaTransferFilter.m:
453         * svg/graphics/filters/cg/WKIdentityTransferFilter.h:
454         * svg/graphics/filters/cg/WKIdentityTransferFilter.m:
455         * svg/graphics/filters/cg/WKLinearTransferFilter.h:
456         * svg/graphics/filters/cg/WKLinearTransferFilter.m:
457         * svg/graphics/filters/cg/WKNormalMapFilter.h:
458         * svg/graphics/filters/cg/WKNormalMapFilter.m:
459         * svg/graphics/filters/cg/WKPointLightFilter.h:
460         * svg/graphics/filters/cg/WKPointLightFilter.m:
461         * svg/graphics/filters/cg/WKSpecularLightingFilter.h:
462         * svg/graphics/filters/cg/WKSpecularLightingFilter.m:
463         * svg/graphics/filters/cg/WKSpotLightFilter.h:
464         * svg/graphics/filters/cg/WKSpotLightFilter.m:
465         * svg/graphics/filters/cg/WKTableTransferFilter.h:
466         * svg/graphics/filters/cg/WKTableTransferFilter.m:
467         * svg/graphics/mac/SVGResourceFilterPlatformDataMac.h:
468         * svg/graphics/mac/SVGResourceFilterPlatformDataMac.mm:
469         * svg/svgtags.in:
470
471 2007-12-08  Dan Bernstein  <mitz@apple.com>
472
473         Reviewed by Adele Peterson.
474
475         - fix two bugs in parsing of stylesheets in <style> elements created by
476           the parser:
477           1. each such stylesheet is parsed twice, once when the text node is
478              added and again when the </style> tag is reached
479           2. re-inserting such a <style> element into the document fails to
480              re-parse and apply its stylesheet.
481
482         Test for bug #2: fast/dom/HTMLStyleElement/insert-parser-generated.html
483
484         * html/HTMLStyleElement.cpp:
485         (WebCore::HTMLStyleElement::finishedParsing):
486         * svg/SVGStyleElement.cpp:
487         (WebCore::SVGStyleElement::finishedParsing):
488
489 2007-12-07  Sam Weinig  <sam@webkit.org>
490
491         Reviewed by Darin.
492
493         - Removes the faulty isSafeScript implementation that was only
494           used for plugins.
495         - Renames isSafeScript to allowsAccessFrom.
496
497         * bindings/js/JSDOMWindowCustom.cpp:
498         (WebCore::JSDOMWindow::customGetOwnPropertySlot):
499         (WebCore::JSDOMWindow::customPut):
500         * bindings/js/kjs_dom.cpp:
501         (WebCore::checkNodeSecurity):
502         * bindings/js/kjs_window.cpp:
503         (KJS::createWindow):
504         (KJS::Window::getValueProperty):
505         (KJS::Window::namedItemGetter):
506         (KJS::Window::getOwnPropertySlot):
507         (KJS::Window::put):
508         (KJS::Window::allowsAccessFrom):
509         (KJS::Window::setListener):
510         (KJS::Window::getListener):
511         (KJS::WindowProtoFuncOpen::callAsFunction):
512         (KJS::WindowProtoFuncSetTimeout::callAsFunction):
513         (KJS::WindowProtoFuncClearTimeout::callAsFunction):
514         (KJS::WindowProtoFuncSetInterval::callAsFunction):
515         (KJS::WindowProtoFuncAddEventListener::callAsFunction):
516         (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
517         (KJS::WindowProtoFuncNotImplemented::callAsFunction):
518         (KJS::Location::getOwnPropertySlot):
519         (KJS::Location::put):
520         (KJS::LocationProtoFuncReplace::callAsFunction):
521         (KJS::LocationProtoFuncReload::callAsFunction):
522         (KJS::LocationProtoFuncAssign::callAsFunction):
523         (KJS::LocationProtoFuncToString::callAsFunction):
524         * bindings/js/kjs_window.h:
525         (KJS::Window::allowsAccessFrom):
526         * bindings/objc/WebScriptObject.mm:
527         (-[WebScriptObject _isSafeScript]): Reverse caller/argument of allowsAccessFrom to match
528         the new call.
529         * bindings/scripts/CodeGeneratorJS.pm:
530
531 2007-12-08  Rob Buis  <buis@kde.org>
532
533         Reviewed by Darin.
534
535         http://bugs.webkit.org/show_bug.cgi?id=15464
536         SVGLengthList allows bad values
537
538         Be more strict with svg lengths without a unit identifier.
539
540         Test: svg/custom/invalid-lengthlist.svg
541
542         * svg/SVGLength.cpp:
543         (WebCore::SVGLength::setValueAsString):
544
545 2007-12-08  Rob Buis  <buis@kde.org>
546
547         Mac Tiger build fix.
548
549         Use the wtf prefix when including MathExtras.h.
550
551         * rendering/RenderMedia.cpp:
552
553 2007-12-08  Alp Toker  <alp@atoker.com>
554
555         GTK+ build fix (for ENABLE_VIDEO builds):
556
557         Include MathExtras.h to get isfinite().
558
559         * rendering/RenderMedia.cpp:
560
561 2007-12-08  Rob Buis  <buis@kde.org>
562
563         Reviewed by Darin.
564
565         http://bugs.webkit.org/show_bug.cgi?id=15528
566         svg_dynamic_cast should be removed
567
568         Replace svg_dynamic_cast with a combination of
569         isSVGElement and static_cast.
570
571         * rendering/SVGRootInlineBox.cpp:
572         (WebCore::SVGRootInlineBox::buildLayoutInformation):
573         (WebCore::SVGRootInlineBox::buildTextChunks):
574         * svg/SVGAnimationElement.cpp:
575         (WebCore::SVGAnimationElement::targetElement):
576         * svg/SVGElement.h:
577         * svg/SVGElementInstance.cpp:
578         (WebCore::SVGElementInstance::updateInstance):
579         * svg/SVGFilterElement.cpp:
580         (WebCore::SVGFilterElement::canvasResource):
581         * svg/SVGGradientElement.cpp:
582         (WebCore::SVGGradientElement::buildStops):
583         * svg/SVGLocatable.cpp:
584         (WebCore::SVGLocatable::getTransformToElement):
585         * svg/SVGMaskElement.cpp:
586         (WebCore::SVGMaskElement::drawMaskerContent):
587         * svg/SVGSwitchElement.cpp:
588         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
589         * svg/SVGUseElement.cpp:
590         (WebCore::SVGUseElement::insertedIntoDocument):
591         (WebCore::SVGUseElement::buildPendingResource):
592         (WebCore::SVGUseElement::buildInstanceTree):
593         (WebCore::SVGUseElement::handleDeepUseReferencing):
594         (WebCore::SVGUseElement::buildShadowTree):
595         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
596         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
597         * svg/graphics/SVGResource.cpp:
598         (WebCore::getResourceById):
599
600 2007-12-07  Antti Koivisto  <antti@apple.com>
601
602         Reviewed by Adele.
603         
604         Partial fix for <rdar://problem/5633400>
605         Transformed <video>, <img>, <embed> are not clipped correctly until a repaint is forced
606         
607         Fix video painting when transform is applied.
608
609         Test: media/video-transformed.html
610
611         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
612         (WebCore::MediaPlayerPrivate::paint):
613
614 2007-12-07  Dan Bernstein  <mitz@apple.com>
615
616         Reviewed by Sam Weinig.
617
618         - fix http://bugs.webkit.org/show_bug.cgi?id=16348
619           @font-face does not affect the default style
620
621         Test: fast/css/font-face-default-font.html
622
623         * dom/Document.cpp:
624         (WebCore::Document::recalcStyle): Pass our font selector to
625         Font::update() if we already have one.
626
627 2007-12-07  Darin Adler  <darin@apple.com>
628
629         - fix Windows build
630
631         * bridge/win/GlobalHistoryWin.cpp:
632         (WebCore::historyContains): Missed a rename.
633
634 2007-12-07  Brady Eidson  <beidson@apple.com>
635
636         Reviewed by Anders and Darin
637
638         When a statement bumps up against the quota and the UI Delegate grants more space, we need to
639         actually set the new maximum size on the SQLiteDatabase (in addition to storing the new max quota
640         in the DatabaseTracker, which was already done)
641
642         * storage/SQLTransaction.cpp:
643         (WebCore::SQLTransaction::runStatements): If a statement is being retried, set the maximum size on
644           the SQLiteDatabase to the new maximum size
645
646 2007-12-07  Darin Adler  <darin@apple.com>
647
648         - fix Tiger build
649
650         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Tiger didn't even have
651         QTKIT_VERSION_MAX_ALLOWED, so add logic to work without that.
652
653 2007-12-07  Darin Adler  <darin@apple.com>
654
655         - fix 64-bit build, hopefully without breaking Tiger build
656
657         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
658         (WebCore::MediaPlayerPrivate::updateStates):
659         Don't use Movies.h constants that are nonexistent in 64-bit.
660         Define the new QTMovie.h constants, though, when using an older QTKit.
661
662 2007-12-07  Brady Eidson  <beidson@apple.com>
663
664         Reviewed by Anders
665
666         Fix <rdar://problem/5636115> - Prompted for quota increase to create database when it already existed
667
668         * storage/DatabaseTracker.cpp:
669         (WebCore::DatabaseTracker::canEstablishDatabase): Check hasEntryForDatabase before doing any prompting
670         (WebCore::DatabaseTracker::hasEntryForDatabase): Check and see if this database already exists
671         * storage/DatabaseTracker.h:
672
673 2007-12-07  Darin Adler  <darin@apple.com>
674
675         Reviewed by Mitz.
676
677         - http://bugs.webkit.org/show_bug.cgi?id=15981
678           speed up visited-link code a bit
679
680         * bridge/GlobalHistory.h: Change historyContains to take a character pointer plus length
681         instead of requiring a DeprecatedString.
682
683         * bridge/mac/GlobalHistoryMac.mm: (WebCore::historyContains): Updated for above change.
684         Also removes pointless "fast Latin-1" case that was never used.
685         * bridge/win/GlobalHistoryWin.cpp: (WebCore::historyContains): Ditto.
686         * platform/gtk/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
687         * platform/wx/TemporaryLinkStubs.cpp: (WebCore::historyContains): Ditto.
688
689         * css/CSSStyleSelector.cpp:
690         (WebCore::findHash): Added. Helper for cleanpath.
691         (WebCore::findSlashDotDotSlash): Ditto.
692         (WebCore::findSlashSlash): Ditto.
693         (WebCore::findSlashDotSlash): Ditto.
694         (WebCore::cleanpath): Changed to use fast helper functions instead of slower general-purpose
695         DeprecatedString find function.
696         (WebCore::containsColonSlashSlash): Added. Helper for checkPseudoState.
697         (WebCore::checkPseudoState): Got rid of reference count churn by using an AtomicString*
698         instead of an AtomicString for the attribute value. Changed to use fast helper function
699         instead of slower DeprecatedString::contains function, and also made the fast case not
700         bother allocating a DeprecatedConstString.
701
702         - unrelated tiny cleanup
703
704         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
705         (WebCore::releaseCachedStops): Use static_cast instead of reinterpret_cast.
706         (WebCore::cgGradientCallback): Ditto.
707
708 2007-12-07  Darin Adler  <darin@apple.com>
709
710         Fix build on Tiger (Mark Rowe told me how).
711
712         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
713         Include <objc/objc-runtime.h>, which existed back on Tiger,
714         rather than <objc/runtime.h>, which did not.
715
716 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
717
718         Build fix: rolling out last build fix to change #include path.
719
720         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
721
722 2007-12-07  Steve Falkenburg  <sfalken@apple.com>
723
724         Re-named our B&I flag from BUILDBOT to PRODUCTION.
725
726         Reviewed by Sam Weinig.
727
728         * WebCore.vcproj/WebCore.make:
729
730 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
731
732         Build fix: corrected #include path.
733
734         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
735
736 2007-12-07  Geoffrey Garen  <ggaren@apple.com>
737
738         Reviewed by Sam Weinig.
739
740         Added some namespace qualifications and a forwarding header, now that
741         KJS::Node is sometimes #included in WebCore by JavaScriptCore headers.
742
743         * ForwardingHeaders/wtf/ListRefPtr.h: Added.
744         * bindings/js/JSXSLTProcessor.cpp:
745         (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
746         * bindings/js/kjs_binding.cpp:
747         (KJS::ScriptInterpreter::getDOMNodeForDocument):
748         (KJS::ScriptInterpreter::forgetDOMNodeForDocument):
749         (KJS::ScriptInterpreter::putDOMNodeForDocument):
750         (KJS::ScriptInterpreter::markDOMNodesForDocument):
751         (KJS::ScriptInterpreter::updateDOMNodeDocument):
752
753 2007-12-07  Adam Roben  <aroben@apple.com>
754
755         Add SoftLinking.h for Windows and use it in a few places
756
757         Reviewed by Oliver.
758
759         * WebCore.vcproj/WebCore.vcproj: Added new file to project.
760         * platform/win/PlatformScrollBarSafari.cpp: Use SoftLinking.h.
761         (WebCore::PlatformScrollbar::PlatformScrollbar): Removed manual
762         soft-linking calls.
763         (WebCore::PlatformScrollbar::paintButton): Check for the presence of
764         the SafariTheme library now that we can't check for the presence of
765         paintThemePart directly.
766         (WebCore::PlatformScrollbar::paintTrack): Ditto.
767         (WebCore::PlatformScrollbar::paintThumb): Ditto.
768         * platform/win/SoftLinking.h: Copied from WebCore/platform/mac/SoftLinking.h.
769         * rendering/RenderThemeSafari.cpp: Same basic changes as to
770         PlatformScrollBarSafari.cpp.
771         (WebCore::RenderThemeSafari::RenderThemeSafari):
772         (WebCore::RenderThemeSafari::isControlStyled):
773         (WebCore::RenderThemeSafari::paintCapsLockIndicator):
774         * rendering/RenderThemeSafari.h: Removed m_themeDLL member.
775
776 2007-12-07  Darin Adler  <darin@apple.com>
777
778         Reviewed by Adele.
779
780         - fix <rdar://problem/5608795> CrashTracer: 481 crashes in Safari
781           at WebCore::HTMLSelectElement::saveState const + 152
782
783         Test: fast/forms/select-set-inner.html
784
785         * dom/ContainerNode.cpp:
786         (WebCore::ContainerNode::removeChildren): Added a return value, as with other
787         calls that change children, so we can optimize for the case where it does nothing.
788         (WebCore::ContainerNode::cloneChildNodes): Changed parameter type to ContainerNode.
789         * dom/ContainerNode.h: See above.
790
791         * html/HTMLOptGroupElement.cpp:
792         (WebCore::HTMLOptGroupElement::removeChildren): Override removeChildren and call
793         recalcSelectOptions in that case.
794         (WebCore::HTMLOptGroupElement::childrenChanged): Override childrenChanged instead of
795         addChild, for consistency with HTMLSelectElement; no need to override both.
796         (WebCore::HTMLOptGroupElement::groupLabelText): Made const.
797         * html/HTMLOptGroupElement.h: See above.
798
799         * html/HTMLSelectElement.cpp: Don't override addChild any more, because we already
800         override childrenChanged, and addChild calls that.
801         (WebCore::HTMLSelectElement::removeChildren): Override removeChildren and call
802         recalcSelectOptions in that case.
803         (WebCore::HTMLSelectElement::recalcListItems): Tightened up the code a little bit
804         by using a for loop and traverseNextSibling. Also added some new comments and
805         removed some obsolete ones.
806         (WebCore::HTMLSelectElement::checkListItems): Added. Debug-only check to make
807         sure we don't have a stale list items vector.
808         * html/HTMLSelectElement.h: Changed listItems() to invoke checkListItems().
809         This will help us catch cases where we have too few calls to setRecalcListItems.
810
811 2007-12-07  Dan Bernstein  <mitz@apple.com>
812
813         Reviewed by Darin Adler.
814
815         - WebCore part of fixing <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
816
817         Test: fast/repaint/focus-ring.html
818
819         * editing/SelectionController.cpp:
820         (WebCore::SelectionController::caretRepaintRect): Changed to return just
821         the caret rect without any padding.
822         (WebCore::SelectionController::recomputeCaretRect): Changed to repaint
823         just the caret rect without any padding.
824         * platform/graphics/GraphicsContext.h: Removed setFocusRingClip() and
825         clearFocusRingClip().
826         * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
827         * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
828         * platform/graphics/cg/GraphicsContextPlatformPrivate.h: Removed
829         m_focusRingClip member.
830         * platform/graphics/mac/GraphicsContextMac.mm:
831         (WebCore::GraphicsContext::drawFocusRing): Changed to call
832         wkDrawFocusRing() once without setting up additional clip. On Leopard,
833         wkDrawFocusRing() respects the context clip now. On Tiger, a
834         transparency layer is used to apply clipping to the focus ring.
835         * platform/graphics/qt/GraphicsContextQt.cpp: Removed focus ring clip
836         methods and member.
837         * platform/graphics/wx/GraphicsContextWx.cpp: Ditto.
838         * platform/mac/WebCoreSystemInterface.h: Removed the clipRect argument
839         to wkDrawFocusRing().
840         * platform/mac/WebCoreSystemInterface.mm: Ditto.
841         * rendering/RenderLayer.cpp:
842         (WebCore::setClip): Removed call to set the focus ring clip.
843         (WebCore::restoreClip): Removed call to reset the focus ring clip.
844
845 2007-12-07  Darin Adler  <darin@apple.com>
846
847         Reviewed by Antti Koivisto and Kevin Decker.
848
849         - fix <rdar://problem/5601586> QtKit should be dynamically loaded upon need, not linked at startup
850
851         Also did a lot of small tweaks to MediaPlayerPrivateQTKit.
852
853         * WebCore.xcodeproj/project.pbxproj: Don't link to QTKit.
854
855         * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Omit unneeded includes and declarations.
856         Made a lot more functions const. Made a few more members private and a couple inline.
857         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Added soft linking machinery for all the
858         things we currently use in QTKit. It's a little more awkward for classes and other data objects
859         than it is for functions, but still relatively straightforward, with no changes needed to the
860         client code. Added using namespace directives. Made a cuePointTimerInterval constant and put
861         it at the top of the file. Use 0 consistently instead of sometimes 0 and sometimes 0.0f.
862         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Removed unneeded initialization of RetainPtr
863         members to nil.
864         (WebCore::MediaPlayerPrivate::createQTMovie): Use adoptNS instead of autorelease.
865         (WebCore::MediaPlayerPrivate::createQTMovieView): Ditto. Also use -[NSColor clearColor].
866         (WebCore::MediaPlayerPrivate::createQTTime): Remove an unneeded type cast that had no effect.
867         Changed to use long instead of int because that's the type for a QTTime time scale anyway.
868         (WebCore::MediaPlayerPrivate::duration): Use a static_cast instead of a C-style cast.
869         (WebCore::MediaPlayerPrivate::currentTime): Ditto. Also merged into a single expression.
870         (WebCore::MediaPlayerPrivate::cuePointTimerFired): Added code to make a copy of the cue
871         points set to avoid a potential problem with a set being modified as we iterate it.
872         (WebCore::MediaPlayerPrivate::bytesLoaded): Removed unneeded null check of m_qtMovie.
873         (WebCore::MediaPlayerPrivate::updateStates): Instead of comments explaining the numeric
874         values, used the constants from the headers directly.
875         (WebCore::MediaPlayerPrivate::getSupportedTypes): Instead of (QTMovieFileTypeOptions)0,
876         pass the named constant with value 0, QTIncludeCommonTypes. Skipped the intermediate type
877         of NSString to remove one cast. Replaced C-style cast with reinterpret_cast (arguably
878         no better). Used RetainPtr instead of explicit CFRelease calls.
879
880         * platform/mac/SoftLinking.h: Added macros to do soft linking for classes and for pointers.
881         It's not quite as automatic as the soft linking we can do for functions, since these define
882         functions to get the values, so you need to define macros to make what look like variable
883         accesses turn into function calls. See MediaPlayerPrivateQTKit for the details.
884
885         * html/HTMLMediaElement.h:
886         * html/TimeRanges.h:
887         * html/VoidCallback.h:
888         * platform/graphics/MediaPlayer.h:
889         Use angle brackets for wtf includes. Omit unneeded includes.
890
891 2007-12-07  Dan Bernstein  <mitz@apple.com>
892
893         Reviewed by Darin Adler.
894
895         - fix http://bugs.webkit.org/show_bug.cgi?id=16334
896           <rdar://problem/5634923> REGRESSION (r28299): Homepage of any DotMac Web Gallery won't load completely
897
898         Test: fast/dynamic/subtree-no-common-root-static-y.html
899
900         * rendering/RenderObject.cpp:
901         (WebCore::RenderObject::markContainingBlocksForLayout): Changed the call
902         to setChildNeedsLayout() to not mark containing blocks and added a
903         separate call to markContainingBlocksForLayout() that will not schedule
904         a layout if we are already in the middle of scheduleRelayoutOfSubtree().
905
906 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
907
908         Reviewed by Darin.
909
910         http://bugs.webkit.org/show_bug.cgi?id=16325
911         <rdar://problem/5632997> REGRESSION: www.xerox.ru doesn't work
912         
913         Test: http/tests/misc/empty-cookie.html
914
915         * platform/mac/CookieJar.mm:
916         (WebCore::setCookies): Don't store empty cookies.
917         (WebCore::cookies): Filter out empty cookies if we have them, as they could have been set
918         with an earlier version of Leopard!
919
920 2007-12-06  Ada Chan  <adachan@apple.com>
921
922         Fixed the if statement (ERROR_SUCCESS is 0 and we were actually
923         returning true when there's an error).
924
925         Reviewed by Steve.
926
927         * platform/win/FileSystemWin.cpp:
928         (WebCore::makeAllDirectories):
929
930 2007-12-06  Darin Adler  <darin@apple.com>
931
932         - fix broken regression test
933
934         * bindings/js/kjs_binding.cpp:
935         (KJS::setDOMException): Oops, this was just supposed to be PERMISSION_DENIED.
936
937 2007-12-06  Darin Adler  <darin@apple.com>
938
939         Reviewed by Sam Weinig.
940
941         - fix http://bugs.webkit.org/show_bug.cgi?id=16332
942           ObjC DOM exception object descriptions should include the exception name
943
944         * WebCore.pro: Added ExceptionCode.cpp.
945         * WebCore.vcproj/WebCore.vcproj: Added ExceptionCode.cpp.
946         * WebCore.xcodeproj/project.pbxproj: Added ExceptionCode.cpp.
947         * WebCoreSources.bkl: Added ExceptionCode.cpp.
948
949         * bindings/js/kjs_binding.cpp: (KJS::setDOMException): Moved the code to decompose an
950         ExceptionCode into ExceptionCode.h/cpp -- getExceptionCodeDescription. Also removed
951         the many unneeded includes that were here. Had to keep one special case here, for
952         SECURITY_ERR.
953
954         * bindings/objc/ExceptionHandlers.mm: (WebCore::raiseDOMException): Changed to use the
955         new getExceptionCodeDescription function so that this shares the exception name
956         information that was previously only available to JavaScript.
957
958         * dom/ExceptionCode.cpp: Copied from bindings/js/kjs_binding.cpp.
959         (WebCore::getExceptionCodeDescription): Added some assertions, and made the function
960         handle exception names in a slightly more robust way that is not subject to integer
961         overflow. (Not a real world issue since we should never receive a bad exception code.)
962
963         * dom/ExceptionCode.h: Added the ExceptionCodeDescription struct and the
964         getExceptionCodeDescription function.
965
966         * svg/SVGException.h: Added a missing #include and got rid of some comments. Some of
967         the comments were mildly helpful, but others were incorrect. This now matches the other
968         exception-related headers such as RangeException.h.
969
970 2007-12-06  Brady Eidson  <beidson@apple.com>
971
972         Reviewed by Darin
973
974         Fixed a glaring bug that would prevent a statement from getting run a second time
975
976         * storage/SQLStatement.cpp:
977         (WebCore::SQLStatement::execute): Clear failure due to quota *before* we check the error
978           and return early
979         (WebCore::SQLStatement::clearFailureDueToQuota): Only clear the error if it was a quota error
980
981 2007-12-06  Timothy Hatcher  <timothy@apple.com>
982
983         Reviewed by Oliver Hunt.
984
985         Use keydown instead of keypress so keyIdentifier can be used.
986
987         * page/inspector/ConsolePanel.js: Use keydown instead of keypress.
988         * page/inspector/DatabasePanel.js: Ditto.
989         * page/inspector/inspector.js: Ditto. Plus call removeEventListener
990         before deleting windowLoaded.
991
992 2007-12-06  Adam Roben  <aroben@apple.com>
993
994         Rename FontsTable.plist to FontsList.plist
995
996         Rubberstamped by Hyatt.
997
998         * platform/graphics/win/FontDatabase.cpp:
999
1000 2007-12-06  Brady Eidson  <beidson@apple.com>
1001
1002         Reviewed by Darin
1003
1004         Tweaked a comment and a few assertions from my last checkin
1005
1006         * storage/SQLStatement.cpp:
1007         (WebCore::SQLStatement::execute):
1008         (WebCore::SQLStatement::clearFailureDueToQuota):
1009         (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
1010
1011 2007-12-06  Brady Eidson <beidson@apple.com>
1012
1013         Reviewed by Darin
1014
1015         Finished hooking up UI Delegate for databases - Database operations will now enforce a size quota and
1016         will ask the UI Delegate for more space when that quota is met
1017
1018         * platform/sql/SQLiteDatabase.cpp: Add the new SQLResultFull constant
1019         * platform/sql/SQLiteDatabase.h: Ditto
1020
1021         * storage/Database.cpp:
1022         (WebCore::Database::securityOriginData): Added this accessor, copying for thread safety
1023         (WebCore::Database::stringIdentifier): Ditto
1024         * storage/Database.h:
1025
1026         * storage/SQLStatement.cpp:
1027         (WebCore::SQLStatement::SQLStatement):
1028         (WebCore::SQLStatement::execute): Change to return an enum that represents 3 states - success, error, and quota.
1029           If the result is quota, this statement expects that it might be run again, presumably after the user increases 
1030           the quota
1031         (WebCore::SQLStatement::setFailureDueToQuota): Setup a quota failure, including a flag and the error
1032         (WebCore::SQLStatement::clearFailureDueToQuota): Clear a quota failure, for when the statement is rerun
1033         (WebCore::SQLStatement::lastExecutionFailedDueToQuota):
1034         * storage/SQLStatement.h:
1035
1036         * storage/SQLTransaction.cpp:
1037         (WebCore::SQLTransaction::SQLTransaction):
1038         (WebCore::SQLTransaction::performPendingCallback): Added an acceptable callback pointer
1039         (WebCore::SQLTransaction::openTransactionAndPreflight): Setup the quota in the database that will remain for this 
1040           transaction.  Note that in this patch, the quota being set is wrong - it makes sense to fix that in a follow up patch
1041         (WebCore::SQLTransaction::runStatements): Modified to add the ability to re-run a statement based on the UI delegate
1042           decision and whether the current statement was already run
1043         (WebCore::SQLTransaction::runCurrentStatement): Added another result condition - the Quota result - and handle it
1044         (WebCore::SQLTransaction::handleCurrentStatementError): Statements can now error-out from two places, so the code
1045           that handles a statement error was moved here
1046         (WebCore::SQLTransaction::deliverQuotaIncreaseCallback): Added - Consult the UI delegate for more quota, then 
1047           reschedule the current statement on the database thread
1048         * storage/SQLTransaction.h:
1049
1050 2007-12-06  Steve Falkenburg  <sfalken@apple.com>
1051
1052         <rdar://problem/5614257> Crash in timer / hashtable code due to uncaught exception
1053         
1054         Don't use callback-based timers, since these cause Windows to eat Windows crashes
1055         in code the timers call.
1056         
1057         Windows appears to be defending against "shatter" attacks partially by setting
1058         up a structured exception block while dispatching callback-based WM_TIMERs.
1059         
1060         I verified this by adding a divide by zero into some timer callback code.
1061         In the case where the timer was dispatched via a callback, the divide by zero
1062         exception was silently handled and ignored, with execution continuing after
1063         our call to DispatchMessage.  When processed via the WNDPROC, no SEH
1064         block was established by Windows, and our divide by zero generated a real
1065         crash (which is what we wanted).
1066         
1067         Windows handling our crashes for us led us to leave the timer data structures
1068         in an invalid state so the next time a timer was set, we'd crash accessing an
1069         invalid HashMap of timer data.
1070         
1071         Reviewed by Hyatt.
1072
1073         * platform/win/SharedTimerWin.cpp:
1074         (WebCore::TimerWindowWndProc):
1075         (WebCore::setSharedTimerFireTime):
1076
1077 2007-12-06  Adam Roben  <aroben@apple.com>
1078
1079         Fix <rdar://5108390> Feed title is too low in blue banner
1080
1081         Way back in r23069 we started applying the same font ascent hack that
1082         Mac WebKit applies to Helvetica, Times, and Courier. We did this so
1083         that those fonts would match the Mac metrics when we run the
1084         regression tests. However, this hack was applying to Arial on Windows
1085         when a site would specify the Helvetica font face because Windows will
1086         alias the font names. Instead of removing the hack entirely, we
1087         turn it off by default but provide some SPI so that DumpRenderTree can
1088         turn it on.
1089
1090         Reviewed by Hyatt.
1091
1092         All tests pass.
1093
1094         * platform/graphics/FontData.h: Add a new static method to turn on the
1095         hack on Windows only.
1096         * platform/graphics/win/FontDataWin.cpp:
1097         (WebCore::FontData::setShouldApplyMacAscentHack): Added.
1098         (WebCore::FontData::platformInit): Only perform the hack if
1099         shouldApplyMacAscentHack is true.
1100
1101 2007-12-06  Geoffrey Garen  <ggaren@apple.com>
1102
1103         Reviewed by Sam Weinig.
1104
1105         Fixed http://bugs.webkit.org/show_bug.cgi?id=16328
1106         REGRESSION (r28470): Crash expanding a GMail conversation
1107         
1108         * page/Frame.cpp:
1109         (WebCore::Frame::scriptProxy): Only return 0 if JS seems disabled *and*
1110         we haven't created the proxy yet. If we've created the proxy already, a
1111         script may be in the midst of execution, even though we've lost our
1112         settings object. During execution, scripts assume they have free access
1113         to the proxy.
1114
1115 2007-12-06  Adele Peterson  <adele@apple.com>
1116
1117         Reviewed by Oliver.
1118
1119         Fix for <rdar://problem/5631356> Toggling display property on video causes controls to get lost
1120
1121         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::attach): Call updateFromElement.
1122         * html/HTMLMediaElement.h:
1123
1124 2007-12-05  Antti Koivisto  <antti@apple.com>
1125
1126         Reviewed by Oliver.
1127
1128         Rename
1129
1130         Movie -> MediaPlayer
1131         MoviePrivate -> MediaPlayerPrivate
1132         
1133         Movie is QuickTime terminology and clashes with its C API.
1134
1135         * WebCore.xcodeproj/project.pbxproj:
1136         * html/HTMLMediaElement.cpp:
1137         (WebCore::HTMLMediaElement::HTMLMediaElement):
1138         (WebCore::HTMLMediaElement::~HTMLMediaElement):
1139         (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
1140         (WebCore::HTMLMediaElement::bufferingRate):
1141         (WebCore::HTMLMediaElement::load):
1142         (WebCore::HTMLMediaElement::mediaPlayerNetworkStateChanged):
1143         (WebCore::HTMLMediaElement::mediaPlayerReadyStateChanged):
1144         (WebCore::HTMLMediaElement::setReadyState):
1145         (WebCore::HTMLMediaElement::progressEventTimerFired):
1146         (WebCore::HTMLMediaElement::seek):
1147         (WebCore::HTMLMediaElement::currentTime):
1148         (WebCore::HTMLMediaElement::duration):
1149         (WebCore::HTMLMediaElement::playbackRate):
1150         (WebCore::HTMLMediaElement::setPlaybackRate):
1151         (WebCore::HTMLMediaElement::play):
1152         (WebCore::HTMLMediaElement::pause):
1153         (WebCore::HTMLMediaElement::setVolume):
1154         (WebCore::HTMLMediaElement::setMuted):
1155         (WebCore::HTMLMediaElement::pickMedia):
1156         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
1157         (WebCore::HTMLMediaElement::mediaPlayerVolumeChanged):
1158         (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
1159         (WebCore::HTMLMediaElement::mediaPlayerCuePointReached):
1160         (WebCore::HTMLMediaElement::addCuePoint):
1161         (WebCore::HTMLMediaElement::buffered):
1162         (WebCore::HTMLMediaElement::seekable):
1163         (WebCore::HTMLMediaElement::effectiveStart):
1164         (WebCore::HTMLMediaElement::effectiveEnd):
1165         (WebCore::HTMLMediaElement::effectiveLoopStart):
1166         (WebCore::HTMLMediaElement::effectiveLoopEnd):
1167         (WebCore::HTMLMediaElement::updateMediaPlayer):
1168         (WebCore::HTMLMediaElement::willSaveToCache):
1169         * html/HTMLMediaElement.h:
1170         (WebCore::HTMLMediaElement::player):
1171         * html/HTMLVideoElement.cpp:
1172         (WebCore::HTMLVideoElement::videoWidth):
1173         (WebCore::HTMLVideoElement::videoHeight):
1174         * platform/MIMETypeRegistry.cpp:
1175         (WebCore::initialiseSupportedMediaMIMETypes):
1176         (WebCore::MIMETypeRegistry::isSupportedMediaMIMEType):
1177         (WebCore::MIMETypeRegistry::getSupportedMediaMIMETypes):
1178         * platform/MIMETypeRegistry.h:
1179         * platform/graphics/MediaPlayer.cpp: Copied from WebCore/platform/graphics/Movie.cpp.
1180         (WebCore::MediaPlayer::MediaPlayer):
1181         (WebCore::MediaPlayer::~MediaPlayer):
1182         (WebCore::MediaPlayer::load):
1183         (WebCore::MediaPlayer::cancelLoad):
1184         (WebCore::MediaPlayer::play):
1185         (WebCore::MediaPlayer::pause):
1186         (WebCore::MediaPlayer::duration):
1187         (WebCore::MediaPlayer::currentTime):
1188         (WebCore::MediaPlayer::seek):
1189         (WebCore::MediaPlayer::paused):
1190         (WebCore::MediaPlayer::seeking):
1191         (WebCore::MediaPlayer::naturalSize):
1192         (WebCore::MediaPlayer::hasVideo):
1193         (WebCore::MediaPlayer::networkState):
1194         (WebCore::MediaPlayer::readyState):
1195         (WebCore::MediaPlayer::volume):
1196         (WebCore::MediaPlayer::setVolume):
1197         (WebCore::MediaPlayer::rate):
1198         (WebCore::MediaPlayer::setRate):
1199         (WebCore::MediaPlayer::muted):
1200         (WebCore::MediaPlayer::setMuted):
1201         (WebCore::MediaPlayer::dataRate):
1202         (WebCore::MediaPlayer::setEndTime):
1203         (WebCore::MediaPlayer::addCuePoint):
1204         (WebCore::MediaPlayer::removeCuePoint):
1205         (WebCore::MediaPlayer::clearCuePoints):
1206         (WebCore::MediaPlayer::maxTimeBuffered):
1207         (WebCore::MediaPlayer::maxTimeSeekable):
1208         (WebCore::MediaPlayer::bytesLoaded):
1209         (WebCore::MediaPlayer::totalBytesKnown):
1210         (WebCore::MediaPlayer::totalBytes):
1211         (WebCore::MediaPlayer::setRect):
1212         (WebCore::MediaPlayer::visible):
1213         (WebCore::MediaPlayer::setVisible):
1214         (WebCore::MediaPlayer::paint):
1215         (WebCore::MediaPlayer::getSupportedTypes):
1216         (WebCore::MediaPlayer::networkStateChanged):
1217         (WebCore::MediaPlayer::readyStateChanged):
1218         (WebCore::MediaPlayer::volumeChanged):
1219         (WebCore::MediaPlayer::timeChanged):
1220         (WebCore::MediaPlayer::cuePointReached):
1221         * platform/graphics/MediaPlayer.h: Copied from WebCore/platform/graphics/Movie.h.
1222         (WebCore::MediaPlayerClient::~MediaPlayerClient):
1223         (WebCore::MediaPlayerClient::mediaPlayerNetworkStateChanged):
1224         (WebCore::MediaPlayerClient::mediaPlayerReadyStateChanged):
1225         (WebCore::MediaPlayerClient::mediaPlayerVolumeChanged):
1226         (WebCore::MediaPlayerClient::mediaPlayerTimeChanged):
1227         (WebCore::MediaPlayerClient::mediaPlayerCuePointReached):
1228         * platform/graphics/Movie.cpp: Removed.
1229         * platform/graphics/Movie.h: Removed.
1230         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.cpp.
1231         (WebCore::mediaPlayerPrivateErrorCallback):
1232         (WebCore::mediaPlayerPrivateEOSCallback):
1233         (WebCore::mediaPlayerPrivateStateCallback):
1234         (WebCore::mediaPlayerPrivateBufferingCallback):
1235         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
1236         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
1237         (WebCore::MediaPlayerPrivate::load):
1238         (WebCore::MediaPlayerPrivate::play):
1239         (WebCore::MediaPlayerPrivate::pause):
1240         (WebCore::MediaPlayerPrivate::duration):
1241         (WebCore::MediaPlayerPrivate::currentTime):
1242         (WebCore::MediaPlayerPrivate::seek):
1243         (WebCore::MediaPlayerPrivate::setEndTime):
1244         (WebCore::MediaPlayerPrivate::addCuePoint):
1245         (WebCore::MediaPlayerPrivate::removeCuePoint):
1246         (WebCore::MediaPlayerPrivate::clearCuePoints):
1247         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
1248         (WebCore::MediaPlayerPrivate::cancelSeek):
1249         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
1250         (WebCore::MediaPlayerPrivate::paused):
1251         (WebCore::MediaPlayerPrivate::seeking):
1252         (WebCore::MediaPlayerPrivate::naturalSize):
1253         (WebCore::MediaPlayerPrivate::hasVideo):
1254         (WebCore::MediaPlayerPrivate::setVolume):
1255         (WebCore::MediaPlayerPrivate::setMuted):
1256         (WebCore::MediaPlayerPrivate::setRate):
1257         (WebCore::MediaPlayerPrivate::dataRate):
1258         (WebCore::MediaPlayerPrivate::networkState):
1259         (WebCore::MediaPlayerPrivate::readyState):
1260         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
1261         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
1262         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
1263         (WebCore::MediaPlayerPrivate::bytesLoaded):
1264         (WebCore::MediaPlayerPrivate::totalBytesKnown):
1265         (WebCore::MediaPlayerPrivate::totalBytes):
1266         (WebCore::MediaPlayerPrivate::cancelLoad):
1267         (WebCore::MediaPlayerPrivate::updateStates):
1268         (WebCore::MediaPlayerPrivate::loadStateChanged):
1269         (WebCore::MediaPlayerPrivate::rateChanged):
1270         (WebCore::MediaPlayerPrivate::sizeChanged):
1271         (WebCore::MediaPlayerPrivate::timeChanged):
1272         (WebCore::MediaPlayerPrivate::volumeChanged):
1273         (WebCore::MediaPlayerPrivate::didEnd):
1274         (WebCore::MediaPlayerPrivate::loadingFailed):
1275         (WebCore::MediaPlayerPrivate::setRect):
1276         (WebCore::MediaPlayerPrivate::setVisible):
1277         (WebCore::MediaPlayerPrivate::paint):
1278         (WebCore::MediaPlayerPrivate::getSupportedTypes):
1279         (WebCore::MediaPlayerPrivate::createGSTPlayBin):
1280         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.h.
1281         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Removed.
1282         * platform/graphics/gtk/MoviePrivateGStreamer.h: Removed.
1283         * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.h.
1284         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.mm.
1285         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
1286         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
1287         (WebCore::MediaPlayerPrivate::createQTMovie):
1288         (WebCore::MediaPlayerPrivate::createQTMovieView):
1289         (WebCore::MediaPlayerPrivate::createQTTime):
1290         (WebCore::MediaPlayerPrivate::load):
1291         (WebCore::MediaPlayerPrivate::play):
1292         (WebCore::MediaPlayerPrivate::pause):
1293         (WebCore::MediaPlayerPrivate::duration):
1294         (WebCore::MediaPlayerPrivate::currentTime):
1295         (WebCore::MediaPlayerPrivate::seek):
1296         (WebCore::MediaPlayerPrivate::doSeek):
1297         (WebCore::MediaPlayerPrivate::cancelSeek):
1298         (WebCore::MediaPlayerPrivate::seekTimerFired):
1299         (WebCore::MediaPlayerPrivate::setEndTime):
1300         (WebCore::MediaPlayerPrivate::addCuePoint):
1301         (WebCore::MediaPlayerPrivate::removeCuePoint):
1302         (WebCore::MediaPlayerPrivate::clearCuePoints):
1303         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
1304         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
1305         (WebCore::MediaPlayerPrivate::paused):
1306         (WebCore::MediaPlayerPrivate::seeking):
1307         (WebCore::MediaPlayerPrivate::naturalSize):
1308         (WebCore::MediaPlayerPrivate::hasVideo):
1309         (WebCore::MediaPlayerPrivate::setVolume):
1310         (WebCore::MediaPlayerPrivate::setMuted):
1311         (WebCore::MediaPlayerPrivate::setRate):
1312         (WebCore::MediaPlayerPrivate::dataRate):
1313         (WebCore::MediaPlayerPrivate::networkState):
1314         (WebCore::MediaPlayerPrivate::readyState):
1315         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
1316         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
1317         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
1318         (WebCore::MediaPlayerPrivate::bytesLoaded):
1319         (WebCore::MediaPlayerPrivate::totalBytesKnown):
1320         (WebCore::MediaPlayerPrivate::totalBytes):
1321         (WebCore::MediaPlayerPrivate::cancelLoad):
1322         (WebCore::MediaPlayerPrivate::updateStates):
1323         (WebCore::MediaPlayerPrivate::loadStateChanged):
1324         (WebCore::MediaPlayerPrivate::rateChanged):
1325         (WebCore::MediaPlayerPrivate::sizeChanged):
1326         (WebCore::MediaPlayerPrivate::timeChanged):
1327         (WebCore::MediaPlayerPrivate::volumeChanged):
1328         (WebCore::MediaPlayerPrivate::didEnd):
1329         (WebCore::MediaPlayerPrivate::setRect):
1330         (WebCore::MediaPlayerPrivate::setVisible):
1331         (WebCore::MediaPlayerPrivate::paint):
1332         (WebCore::MediaPlayerPrivate::getSupportedTypes):
1333         (-[WebCoreMovieObserver initWithCallback:WebCore::]):
1334         * platform/graphics/mac/MoviePrivateQTKit.h: Removed.
1335         * platform/graphics/mac/MoviePrivateQTKit.mm: Removed.
1336         * rendering/RenderMedia.cpp:
1337         (WebCore::RenderMedia::player):
1338         * rendering/RenderMedia.h:
1339         * rendering/RenderVideo.cpp:
1340         (WebCore::RenderVideo::RenderVideo):
1341         (WebCore::RenderVideo::~RenderVideo):
1342         (WebCore::RenderVideo::videoSizeChanged):
1343         (WebCore::RenderVideo::paintReplaced):
1344         (WebCore::RenderVideo::layout):
1345         (WebCore::RenderVideo::updateFromElement):
1346         (WebCore::RenderVideo::updatePlayer):
1347         * rendering/RenderVideo.h:
1348
1349 2007-12-06  Geoffrey Garen  <ggaren@apple.com>
1350
1351         Build fix: access global object directly.
1352
1353         * plugins/win/PluginViewWin.cpp:
1354         (WebCore::PluginViewWin::bindingInstance):
1355
1356 2007-12-06  Mark Rowe  <mrowe@apple.com>
1357
1358         Reviewed by Eric.
1359
1360         Fix bug spotted by GCC 4.2.
1361
1362         * bindings/js/kjs_window.cpp:
1363         (KJS::allowPopUp): Remove extraneous semicolon that completely changed the meaning of allowPopUp.
1364
1365 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1366
1367         Reviewed by Alp Toker.
1368
1369         http://bugs.webkit.org/show_bug.cgi?id=16173
1370         Licensing change
1371
1372         Change license from BSD to LGPL.
1373
1374         * platform/gtk/FileSystemGtk.cpp:
1375
1376 2007-12-05  Rob Buis  <buis@kde.org>
1377
1378         Reviewed by Mitz.
1379
1380         http://bugs.webkit.org/show_bug.cgi?id=15289
1381         WebKit does not respect clip paths of a 0x0 rect
1382
1383         Make empty clip paths clip the whole referencing graphic.
1384
1385         * svg/SVGClipPathElement.cpp:
1386         (WebCore::SVGClipPathElement::canvasResource):
1387         * svg/graphics/SVGResourceClipper.h:
1388         (WebCore::ClipDataList::isEmpty):
1389
1390 2007-12-05  Darin Adler  <darin@apple.com>
1391
1392         Reviewed by Maciej.
1393
1394         - fix http://bugs.webkit.org/show_bug.cgi?id=16266
1395           <rdar://problem/5625279> REGRESSION: crash loading CNN.com at
1396           Interpreter::createObjectsForGlobalObjectProperties()
1397
1398         I don't know how to reproduce this in a test.
1399
1400         * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::mark):
1401         Call JSEventTargetNode::mark instead of DOMObject::mark. There's no difference
1402         right now, but it's best to call your base class, not your base's base.
1403
1404         * bindings/js/kjs_events.h: Removed unneeded virtual from the
1405         JSUnprotectedEventListener::mark() function; it neither derives from or is
1406         derived from anyone else with a mark() function so there's no need for virtual.
1407
1408         * bindings/js/kjs_window.cpp: (KJS::Window::mark): Call JSGlobalObject::mark,
1409         not JSObject::mark. This is the actual bug fix.
1410
1411 2007-12-05  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
1412
1413         http://bugs.webkit.org/show_bug.cgi?id=16145
1414         [gtk] Implement media support in GTK backend
1415
1416         Reviewed by Alp Toker.
1417
1418         Remove old comments, fix variable names, match WebKit coding style.
1419
1420         * platform/graphics/gtk/MoviePrivateGStreamer.cpp:
1421         (WebCore::moviePrivateEOSCallback):
1422         (WebCore::MoviePrivate::MoviePrivate):
1423         (WebCore::MoviePrivate::load):
1424         (WebCore::MoviePrivate::play):
1425         (WebCore::MoviePrivate::pause):
1426         (WebCore::MoviePrivate::currentTime):
1427         (WebCore::MoviePrivate::seek):
1428         (WebCore::MoviePrivate::cancelSeek):
1429         (WebCore::MoviePrivate::seeking):
1430         (WebCore::MoviePrivate::naturalSize):
1431         (WebCore::MoviePrivate::setVolume):
1432         (WebCore::MoviePrivate::setMuted):
1433         (WebCore::MoviePrivate::maxTimeBuffered):
1434         (WebCore::MoviePrivate::bytesLoaded):
1435         (WebCore::MoviePrivate::totalBytesKnown):
1436         (WebCore::MoviePrivate::totalBytes):
1437         (WebCore::MoviePrivate::updateStates):
1438         (WebCore::MoviePrivate::didEnd):
1439         (WebCore::MoviePrivate::paint):
1440         (WebCore::MoviePrivate::createGSTPlayBin):
1441         * platform/graphics/gtk/MoviePrivateGStreamer.h:
1442
1443 2007-12-05  Mark Rowe  <mrowe@apple.com>
1444
1445         Speculative wx build fix.  Add PlugInInfoStore::pluginNameForMIMEType to the temporary link stubs.
1446
1447         * platform/wx/TemporaryLinkStubs.cpp:
1448
1449 2007-12-05  Alp Toker  <alp@atoker.com>
1450
1451         Rubber stamped by Mark Rowe.
1452
1453         Remove DEPENDPATH on the generated sources directory. This causes
1454         trouble and is no longer necessary following the glib-genmarshal
1455         generator split.
1456
1457         * WebCore.pro:
1458
1459 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
1460
1461         Reviewed by Darin Adler.
1462
1463         Third step in refactoring JSGlobalObject: Moved data members and data
1464         member access from Interpreter to JSGlobalObject. Changed Interpreter
1465         member functions to static functions. Same for the subclass, 
1466         ScriptInterpreter.
1467         
1468         This is a big change, but it's mostly code motion and renaming.
1469         
1470 2007-12-05  Darin Adler  <darin@apple.com>
1471
1472         "Reviewed" by Geoff.
1473
1474         * loader/FrameLoader.cpp:
1475         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Removed assertion.
1476         (WebCore::FrameLoader::dispatchDidCommitLoad): This one too.
1477         The assertions are firing like crazy. Not sure why yet.
1478
1479 2007-12-05  Darin Adler  <darin@apple.com>
1480
1481         Reviewed by Adam Roben.
1482
1483         - fix http://bugs.webkit.org/show_bug.cgi?id=16306
1484           Assertion failed in WebCore/loader/FrameLoader.cpp:4642
1485
1486         * loader/FrameLoader.cpp:
1487         (WebCore::FrameLoader::dispatchDidCommitLoad): Check m_creatingInitialEmptyDocument
1488         and don't deliver the client call in that case.
1489
1490 2007-12-05  Mark Rowe  <mrowe@apple.com>
1491
1492         Reviewed by Kevin Decker.
1493
1494         Fix 64-bit debug build.
1495
1496         * platform/text/mac/TextCodecMac.cpp:
1497         (WebCore::TextCodecMac::decode): OSStatus is a long for 32-bit but int on 64-bit,
1498         so we need to cast it to be able to use a single format specifier on both.
1499
1500 2007-12-05  Kevin Decker  <kdecker@apple.com>
1501
1502         Reviewed by Hyatt.
1503
1504         <rdar://problem/5613106> Acordex: REGRESSION (Tiger-Leopard): plug-ins can no longer take over TIFF images (affects uspto.gov)
1505        
1506         * loader/FrameLoader.cpp:
1507         (WebCore::FrameLoader::shouldUsePlugin): Allow plug-ins (with the exception of QuickTime) to
1508         takeover TIFF once again.
1509         
1510 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
1511
1512         Reviewed by Alp Toker.
1513
1514         http://bugs.webkit.org/show_bug.cgi?id=16290
1515         [GTK] Pasting clipboard in rich text.
1516
1517         * platform/gtk/PasteboardGtk.cpp:
1518         (Pasteboard::documentFragment): Implement rich text paste support.
1519
1520 2007-12-05  Adele Peterson  <adele@apple.com>
1521
1522         Reviewed by Hyatt.
1523
1524         Reverting fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
1525
1526         We need to just fix the underlying focus ring repaint problem.
1527
1528         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
1529
1530 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
1531
1532         Reviewed by Darin.
1533
1534         - <rdar://5621435>
1535         - Security Fix. Instead of having it off by default, WebKit now must
1536         explicitly turn off local-resource restriction when needed for backwards
1537         compatibility reasons.
1538
1539         * loader/FrameLoader.cpp:
1540
1541 2007-12-05  Adam Roben  <aroben@apple.com>
1542
1543         Set the menu item identifier for all menu items
1544
1545         This allows WebKit clients to distinguish between submenus in the
1546         context menu.
1547
1548         Reviewed by Darin.
1549
1550         No test possible.
1551
1552         * platform/win/ContextMenuItemWin.cpp:
1553         (WebCore::ContextMenuItem::ContextMenuItem):
1554
1555 2007-12-05  Dan Bernstein  <mitz@apple.com>
1556
1557         Reviewed by Darin Adler.
1558
1559         - WebCore part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/
1560
1561         * manual-tests/nested-plug-ins.html: Added.
1562         * manual-tests/resources/nested-plug-ins-inner-frame.html: Added.
1563         * manual-tests/resources/nested-plug-ins-outer-frame.html: Added.
1564         * platform/ScrollView.h:
1565         * platform/Widget.h:
1566         (WebCore::Widget::attachToWindow): Added. Tells the widget that it is connected
1567         via visible ScrollViews to the root ScrollView of the WebView.
1568         (WebCore::Widget::detachFromWindow): Added. Tells the widget that it is no longer
1569         connected via visible ScrollViews to the root ScrollView of the WebView.
1570         * platform/win/ScrollViewWin.cpp:
1571         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate): Added
1572         m_visible and m_attachedToWindow members.
1573         (WebCore::ScrollView::attachToWindow): Added. Attaches all children if this
1574         view is visible.
1575         (WebCore::ScrollView::detachFromWindow): Added. Detaches all children if this
1576         view is visible (otherwise they would be detached already).
1577         (WebCore::ScrollView::show): Added. Attaches all children if this view
1578         is attached.
1579         (WebCore::ScrollView::hide): Added. Detaches all children if this view
1580         is attached (otherwise they would be detached already).
1581         (WebCore::ScrollView::isAttachedToWindow): Added.
1582         * platform/win/WidgetWin.cpp:
1583         (WebCore::Widget::setParent): Added calls to attachToWindow() and detachFromWindow()
1584         depending on whether the parent is set and attached or not.
1585         * plugins/win/PluginViewWin.cpp:
1586         (WebCore::PluginViewWin::setFocus):
1587         (WebCore::PluginViewWin::show): Changed to show the plug-in only if
1588         this view is attached.
1589         (WebCore::PluginViewWin::hide): Changed to hide the plug-in only if this
1590         view is attached (otherwise it would be hidden already).
1591         (WebCore::PluginViewWin::attachToWindow): Added. Shows the plug-in if this view
1592         is visible.
1593         (WebCore::PluginViewWin::detachFromWindow): Added. Hides the plug-in if this view
1594         is visible (otherwise it would be hidden already).
1595         (WebCore::PluginViewWin::PluginViewWin):
1596         * plugins/win/PluginViewWin.h: Added m_attachedToWindow member.
1597
1598 2007-12-04  Alp Toker  <alp@atoker.com>
1599
1600         Potential GTK+ build fix for the glib-genmarshal issue.
1601
1602         Split the glib-genmarshal qmake generator in two; one for the source
1603         file, another for the header.
1604
1605         * WebCore.pro:
1606
1607 2007-12-04  Alp Toker  <alp@atoker.com>
1608
1609         GTK+ build fix.
1610
1611         * platform/PlugInInfoStore.h:
1612
1613 2007-12-04  Kevin Decker  <kdecker@apple.com>
1614
1615         Reviewed by Anders.
1616
1617         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
1618
1619         * page/mac/WebCoreViewFactory.h: Added pluginNameForMIMEType: method.
1620         * platform/PlugInInfoStore.h:
1621         * platform/gtk/TemporaryLinkStubs.cpp: Added stub version of pluginNameForMIMEType.
1622         (PlugInInfoStore::pluginNameForMIMEType):
1623         * platform/mac/PlugInInfoStoreMac.mm:
1624         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added.
1625         * platform/qt/PlugInInfoStoreQt.cpp: 
1626         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
1627         * plugins/win/PlugInInfoStoreWin.cpp: 
1628         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
1629
1630 2007-12-04  Adele Peterson  <adele@apple.com>
1631
1632         Reviewed by Darin.
1633
1634         Fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
1635
1636         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
1637         Adjust outline-offset so it doesn't extend beyond the border to interfere with typing
1638
1639 2007-12-04  Anders Carlsson  <andersca@apple.com>
1640
1641         Reviewed by Jon.
1642
1643         Always call NPP_NewStream, NPP_DestroyStream and NPP_URLNotify for JavaScript
1644         result streams, even if the JavaScript expression threw an exception or returned undefined.
1645         This matches what Firefox does.
1646         
1647         * plugins/win/PluginStreamWin.cpp:
1648         (WebCore::PluginStreamWin::sendJavaScriptStream):
1649         Handle the result string being null, and set the correct NPReason if it is.
1650         
1651         * plugins/win/PluginViewWin.cpp:
1652         (WebCore::PluginViewWin::performRequest):
1653         Always send the JavaScript stream, regardless of the result could be converted to a string or not.
1654
1655 2007-12-04  Adele Peterson  <adele@apple.com>
1656
1657         Reviewed by Hyatt.
1658
1659         Fix for <rdar://problem/5622464> controls should show up for audio element
1660
1661         * css/html4.css: Added styles for audio controls.  This will need to be refined, since we may want a different look for audio controls.
1662         * html/HTMLMediaElement.cpp:
1663         (WebCore::HTMLMediaElement::attributeChanged): When the controls attribute changes detach and reattach if necessary. 
1664         (WebCore::HTMLMediaElement::rendererIsNeeded): Added.
1665         (WebCore::HTMLMediaElement::createRenderer): Added.  Uses RenderMedia.
1666         * html/HTMLMediaElement.h:
1667         * rendering/RenderMedia.cpp: (WebCore::RenderMedia::RenderMedia): Added constructor that doesn't take intrinsic size.
1668         * rendering/RenderMedia.h:
1669
1670 2007-12-04  Anders Carlsson  <andersca@apple.com>
1671
1672         Reviewed by Sam.
1673
1674         Add isSafeScript(const JSGlobalObject*) so we won't get the JSGlobalObject
1675         implementation, which always returns true(!).
1676         
1677         * bindings/js/kjs_window.cpp:
1678         (KJS::Window::isSafeScript):
1679         Make the static isSafeScript method take two JSGlobalObjects.
1680         
1681         * bindings/js/kjs_window.h:
1682         (KJS::Window::isSafeScript):
1683         Implement isSafeScript and have it call the static method.
1684
1685 2007-11-27  Adam Roben  <aroben@apple.com>
1686
1687         Make the implementation of Frame::setNeedsReapplyStyles cross-platform
1688
1689         Reviewed by Hyatt.
1690
1691         No change in functionality.
1692
1693         * page/Frame.cpp:
1694         (WebCore::Frame::setNeedsReapplyStyles): Added. Invalidates the
1695         FrameView so that FrameView::layout will be called, which ends up
1696         calling reapplyStyles.
1697         (WebCore::Frame::needsReapplyStyles): Added.
1698         (WebCore::Frame::reapplyStyles): Renamed from reparseConfiguration.
1699         (WebCore::FramePrivate::FramePrivate):
1700         * page/Frame.h:
1701         * page/FramePrivate.h: Added new boolean member.
1702         * page/FrameView.cpp:
1703         (WebCore::FrameView::layout): Call Frame::reapplyStyles if needed.
1704         (WebCore::FrameView::needsLayout): Say that we need layout if the
1705         Frame needs styles reapplied.
1706         * page/mac/WebCoreFrameBridge.h: Removed setNeedsReapplyStyles.
1707         * page/mac/WebCoreFrameBridge.mm:
1708         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]): Updated for
1709         rename.
1710
1711         * bridge/win/FrameWin.cpp: Removed Frame::setNeedsReapplyStyles.
1712         * page/gtk/FrameGtk.cpp: Ditto.
1713         * page/mac/FrameMac.mm: Ditto.
1714         * page/qt/FrameQt.cpp: Ditto.
1715         * platform/wx/TemporaryLinkStubs.cpp: Ditto.
1716
1717 2007-12-04  Antti Koivisto  <antti@apple.com>
1718
1719         Reviewed by Adele.
1720
1721         Pass intrinsic size to the base class.
1722
1723         * rendering/RenderMedia.cpp:
1724         (WebCore::RenderMedia::RenderMedia):
1725
1726 2007-12-04  Adele Peterson  <adele@apple.com>
1727
1728         Reviewed by Darin.
1729
1730         Fix for <rdar://problem/5578209> REGRESSION: Crash in WebCore::DeprecatedValueListImpl::Private::copyList when going back on zoomerang.com/survey
1731
1732         * loader/FrameLoader.cpp: (WebCore::FrameLoader::scheduleHistoryNavigation):
1733           When the new url is exactly the same as the old url, don't treat it like a fragment navigation, since its going to cause a reload.
1734
1735 2007-12-04  Darin Adler  <darin@apple.com>
1736
1737         Reviewed by Kevin Decker.
1738
1739         - added an assertion for a situation that leads to a Safari assertion:
1740           a commit that is not followed by a load completion
1741
1742         - removed some unneeded FrameLoader stuff -- maybe some day we'll get this
1743           class cut down to size
1744
1745         * loader/FrameLoader.cpp:
1746         (WebCore::FrameLoader::FrameLoader): Added boolean for assertion.
1747         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Added code to assert
1748         that we already sent a commit before sending a complete.
1749         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): Call
1750         client directly instead of indirecting through a function.
1751         (WebCore::FrameLoader::loadItem): Ditto.
1752         (WebCore::FrameLoader::goToItem): Ditto.
1753         (WebCore::FrameLoader::addHistoryForCurrentLocation): Get the private browsing
1754         state from Settings instead of FrameLoaderClient. Also call client directly
1755         instead of indirecting through a function.
1756         (WebCore::FrameLoader::updateHistoryForReload): Call client directly instead
1757         of indirecting through a function.
1758         (WebCore::FrameLoader::dispatchDidCommitLoad): Added code to assert
1759         that we did not yet send a commit and set the flag that will be used to check
1760         that we don't do this twice in a row without an intervening completion call.
1761
1762         * loader/FrameLoader.h: Added a boolean for the assertion. Removed six
1763         now-unneeded functions.
1764
1765         * loader/FrameLoaderClient.h: Removed now-unneeded privateBrowsingEnabled function.
1766
1767         * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willCacheResponse): Get
1768         the private browsing state from Settings instead of FrameLoaderClient.
1769
1770         * svg/graphics/SVGImageEmptyClients.h: Removed obsolete privateBrowsingEnabled.
1771
1772 2007-12-03  Antti Koivisto  <antti@apple.com>
1773
1774         Reviewed by Adele.
1775         
1776         Fix <rdar://problem/5624802> 
1777         Controller displays outside of <video> element when width and height aren't specified 
1778
1779         - Explicitly adjust size of the controls tree root.
1780         - Switch RenderMedia base class back to RenderReplaced. It is easier to manage the shadow tree
1781           by hand. This also allows better code sharing with other replaced element classes.
1782         - Move duplicated layout and painting code from subclasses up to RenderReplaced.
1783
1784         Test: media/video-controls-rendering.html
1785
1786         * rendering/RenderHTMLCanvas.cpp:
1787         (WebCore::RenderHTMLCanvas::paintReplaced):
1788         * rendering/RenderHTMLCanvas.h:
1789             Share code.
1790         * rendering/RenderImage.cpp:
1791         (WebCore::RenderImage::paintReplaced):
1792         (WebCore::RenderImage::minimumReplacedHeight):
1793         * rendering/RenderImage.h:
1794             Share code.
1795         * rendering/RenderMedia.cpp:
1796         (WebCore::RenderMediaControlShadowRoot::RenderMediaControlShadowRoot):
1797         (WebCore::RenderMediaControlShadowRoot::setParent):
1798             Add a subclass just to get through encapsulation to use setParent().
1799         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
1800             Move initialization to the constructor.
1801         (WebCore::RenderMedia::RenderMedia):
1802         (WebCore::RenderMedia::~RenderMedia):
1803         (WebCore::RenderMedia::layout):
1804             Resize and layout the controller root by hand.
1805         (WebCore::RenderMedia::firstChild):
1806         (WebCore::RenderMedia::lastChild):
1807         (WebCore::RenderMedia::removeChild):
1808             Support one child renderer for controls.
1809         (WebCore::RenderMedia::createControlsShadowRoot):
1810         * rendering/RenderMedia.h:
1811         (WebCore::RenderMedia::isMedia):
1812             Switch base class to RenderReplaced, delete the now unnecessary stuff.
1813         * rendering/RenderReplaced.cpp:
1814         (WebCore::RenderReplaced::layout):
1815         (WebCore::RenderReplaced::paint):
1816         * rendering/RenderReplaced.h:
1817         (WebCore::RenderReplaced::minimumReplacedHeight):
1818         (WebCore::RenderReplaced::paintReplaced):
1819             Share code.
1820         * rendering/RenderVideo.cpp:
1821         (WebCore::RenderVideo::videoSizeChanged):
1822             Simplify, just request relayout.
1823         (WebCore::RenderVideo::paintReplaced):
1824         (WebCore::RenderVideo::layout):
1825         * rendering/RenderVideo.h:
1826             Share code.
1827
1828 2007-12-04  Michael Natterer  <mitch@imendio.com>
1829
1830         Reviewed by Alp Toker.
1831
1832         * WebCore.pro: fix build of webkit-marshal by building the
1833         functions into a separate .cpp file instead of including them in
1834         the header. This way we can use the marshallers from more than one
1835         file without using bad hacks.
1836
1837         Add the generated sources directory to DEPENDPATH.
1838
1839 2007-12-04  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
1840
1841         Reviewed by Alp Toker.
1842
1843         http://bugs.webkit.org/show_bug.cgi?id=16145
1844         [gtk] Implement media support in GTK backend
1845
1846         This implements the media tags of HTML5 on the GTK+ port based on the 
1847         Mac port. Media tests pass although some tests required a small modifications: 
1848         As per the HTML5 spec, the loading of the clip should start only after 
1849         all script are done.  But in the case of the tests, the loading starts 
1850         before some callbacks get registered.  This has been discussed with 
1851         Antti Koivisto, and the tests should be updated.
1852
1853         There is only one known issue: one time in 10 tries, loading a buffered 
1854         clip will never end buffering.  The buffering will stall at 97% for no 
1855         apparent reasons.  Reloading the page usually works around the problem.
1856         On the GStreamer side, some codecs don't return correct values, therefore
1857         they make the tests fail.  For instance H.264 will make the video-end 
1858         test fail.  This should be fixed in GStreamer 0.10.15.
1859
1860         This version displays video in a pop up window.  A place holder is drawn
1861         on the page where the video should appear.
1862
1863         By default, it is turned off in WebCore.pro until GStreamer/X
1864         detection issues are sorted out.
1865
1866         * WebCore.pro:
1867         Disable video for now
1868         * platform/Logging.cpp:
1869         (WebCore::):
1870         * platform/Logging.h:
1871         Added a logging level for Media stuff
1872         * platform/graphics/Movie.cpp:
1873         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Added.
1874         (WebCore::moviePrivateErrorCallback):
1875         (WebCore::moviePrivateEOSCallback):
1876         (WebCore::moviePrivateStateCallback):
1877         (WebCore::moviePrivateBufferingCallback):
1878         (WebCore::moviePrivateWindowIDCallback):
1879         (WebCore::MoviePrivate::MoviePrivate):
1880         (WebCore::MoviePrivate::~MoviePrivate):
1881         (WebCore::MoviePrivate::load):
1882         (WebCore::MoviePrivate::play):
1883         (WebCore::MoviePrivate::pause):
1884         (WebCore::MoviePrivate::duration):
1885         (WebCore::MoviePrivate::currentTime):
1886         (WebCore::MoviePrivate::seek):
1887         (WebCore::MoviePrivate::setEndTime):
1888         (WebCore::MoviePrivate::addCuePoint):
1889         (WebCore::MoviePrivate::removeCuePoint):
1890         (WebCore::MoviePrivate::clearCuePoints):
1891         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
1892         (WebCore::MoviePrivate::cancelSeek):
1893         (WebCore::MoviePrivate::cuePointTimerFired):
1894         (WebCore::MoviePrivate::paused):
1895         (WebCore::MoviePrivate::seeking):
1896         (WebCore::MoviePrivate::naturalSize):
1897         (WebCore::MoviePrivate::hasVideo):
1898         (WebCore::MoviePrivate::setVolume):
1899         (WebCore::MoviePrivate::setMuted):
1900         (WebCore::MoviePrivate::setRate):
1901         (WebCore::MoviePrivate::dataRate):
1902         (WebCore::MoviePrivate::networkState):
1903         (WebCore::MoviePrivate::readyState):
1904         (WebCore::MoviePrivate::maxTimeBuffered):
1905         (WebCore::MoviePrivate::maxTimeSeekable):
1906         (WebCore::MoviePrivate::maxTimeLoaded):
1907         (WebCore::MoviePrivate::bytesLoaded):
1908         (WebCore::MoviePrivate::totalBytesKnown):
1909         (WebCore::MoviePrivate::totalBytes):
1910         (WebCore::MoviePrivate::cancelLoad):
1911         (WebCore::MoviePrivate::updateStates):
1912         (WebCore::MoviePrivate::loadStateChanged):
1913         (WebCore::MoviePrivate::rateChanged):
1914         (WebCore::MoviePrivate::sizeChanged):
1915         (WebCore::MoviePrivate::timeChanged):
1916         (WebCore::MoviePrivate::volumeChanged):
1917         (WebCore::MoviePrivate::didEnd):
1918         (WebCore::MoviePrivate::loadingFailed):
1919         (WebCore::MoviePrivate::setRect):
1920         (WebCore::MoviePrivate::setVisible):
1921         (WebCore::MoviePrivate::paint):
1922         (WebCore::MoviePrivate::getSupportedTypes):
1923         (WebCore::MoviePrivate::createGSTPlayBin):
1924         * platform/graphics/gtk/MoviePrivateGStreamer.h: Added.
1925
1926 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1927
1928         Reviewed by Simon.
1929
1930         * Implement the InspectorClient for the Qt port
1931         * It does not support highlighting of nodes yet
1932         * Use QRC to open the internal page. The important thing is the
1933         '/' in the URL to make WebCore::Document::completeURL behave the
1934         way we want.
1935         * To make the InspectorClient work we will have to mark qrc as secure.
1936
1937         * WebCore.pro:
1938         * loader/FrameLoader.cpp:
1939         (WebCore::localSchemes):
1940         * page/inspector/WebKit.qrc: Added.
1941
1942 2007-12-04  Alp Toker  <alp@atoker.com>
1943
1944         Rubber stamped by Mark Rowe.
1945
1946         Remove two unused variables to silence warnings.
1947
1948         * html/CanvasRenderingContext2D.cpp:
1949         (WebCore::CanvasRenderingContext2D::fill):
1950         (WebCore::CanvasRenderingContext2D::stroke):
1951
1952 2007-12-03  Dan Bernstein  <mitz@apple.com>
1953
1954         Reviewed by Darin Adler.
1955
1956         - fix <rdar://problem/5134044> fast/frames/frame-src-attribute.html fails on Windows
1957
1958         * platform/win/ScrollViewWin.cpp:
1959         (WebCore::ScrollView::visibleWidth): Do not return negative values.
1960         (WebCore::ScrollView::visibleHeight): Ditto.
1961
1962 2007-12-03  Dan Bernstein  <mitz@apple.com>
1963
1964         Reviewed by Dave Hyatt.
1965
1966         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
1967
1968         Test: fast/events/resize-subframe.html
1969
1970         * page/FrameView.cpp:
1971         (WebCore::FrameViewPrivate::FrameViewPrivate): Added a timer used when
1972         deferring tasks that need to be done after layout.
1973         (WebCore::FrameViewPrivate::reset):
1974         (WebCore::FrameView::~FrameView):
1975         (WebCore::FrameView::layout): Moved the updating of widget positions,
1976         loading plug-ins and sending events queued up during layout into
1977         performPostLayoutTasks(). performPostLayoutTasks() is called after
1978         layout unless the layout was triggered by a previous layout's post-
1979         layout tasks. In the latter case, performPostLayoutTasks() is scheduled
1980         to run later.
1981         (WebCore::FrameView::performPostLayoutTasks): Performs work that needs
1982         to be done after layout but which can result in arbitrary code
1983         execution and therefore may re-invalidate the layout. This includes
1984         updating widget positions, loading plug-ins, and dispatching layout-
1985         related DOM events (scroll, overflow and resize).
1986         (WebCore::FrameView::postLayoutTimerFired):
1987         (WebCore::FrameView::dispatchScheduledEvents):
1988         * page/FrameView.h:
1989         * page/mac/WebCoreFrameBridge.h:
1990         * page/mac/WebCoreFrameBridge.mm: Removed -sendResizeEvent since this
1991         is handled by FrameView now.
1992
1993 2007-12-03  Rob Buis  <buis@kde.org>
1994
1995         Reviewed by Darin.
1996
1997         http://bugs.webkit.org/show_bug.cgi?id=15767
1998         Text decorations do not respect "visibility" property
1999
2000         Only paint decorations if visibility is "visible".
2001
2002         * rendering/SVGInlineTextBox.cpp:
2003         (WebCore::SVGInlineTextBox::paintDecoration):
2004
2005 2007-12-03  Steve Falkenburg  <sfalken@apple.com>
2006
2007         Fix build.
2008
2009         * WebCore.vcproj/WebCore.vcproj:
2010
2011 2007-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
2012
2013         Reviewed by David.
2014
2015         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15645
2016         Don't allow selectors to interfere with the SVG shadow tree (<use> internal non-exposed tree).
2017
2018         * css/CSSStyleSelector.cpp:
2019         (WebCore::CSSStyleSelector::checkSelector):
2020
2021 2007-12-03  Dan Bernstein  <mitz@apple.com>
2022
2023         Reviewed by Adam Roben.
2024
2025         - fix <rdar://problem/5538651> REGRESSSION: domfuzz: null deref in WebCore::Document::canReplaceChild
2026
2027         Test: fast/dom/Document/replaceChild-null-oldChild.html
2028
2029         * dom/Document.cpp:
2030         (WebCore::Document::canReplaceChild):
2031
2032 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2033
2034         Reviewed by Simon.
2035
2036         * Avoid crashes by making sure everything is layouted before
2037         we start painting. This avoids a crash in Widget::invalidateRect
2038         because QPainter::begin would fail
2039         * The QWebFrame::layout() methods and calls are left untouched because
2040         this would be an API decision.
2041         
2042
2043         WARNING: NO TEST CASES ADDED OR CHANGED
2044
2045         * page/FrameView.cpp:
2046         (WebCore::FrameView::updateControlTints):
2047         * page/FrameView.h:
2048         * platform/ScrollView.h:
2049         * platform/qt/ScrollViewQt.cpp:
2050         (WebCore::ScrollView::children):
2051
2052 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2053
2054         Reviewed by Simon.
2055
2056         * Implement GraphicsContext::fillRoundedRect similiar to the
2057         CoreGraphics implementation only addPath is not called this
2058         seems to be only needed for CoreGraphics.
2059         
2060
2061         WARNING: NO TEST CASES ADDED OR CHANGED
2062
2063         * platform/graphics/qt/GraphicsContextQt.cpp:
2064         (WebCore::GraphicsContext::fillRoundedRect):
2065
2066 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2067
2068         Reviewed by Simon.
2069
2070         * Coding Style fixes
2071         
2072
2073         WARNING: NO TEST CASES ADDED OR CHANGED
2074
2075         * platform/qt/ScrollViewQt.cpp:
2076         (WebCore::ScrollView::addChild):
2077         (WebCore::ScrollView::removeChild):
2078
2079 2007-12-03  Alp Toker  <alp@atoker.com>
2080
2081         Reviewed by Mark Rowe.
2082
2083         Don't delete the decoder if it's already been created. The one we have
2084         is fine.
2085
2086         Cairo image cleanups. Nothing substantial.
2087
2088         Notify ImageObservers where appropriate.
2089
2090         * platform/graphics/cairo/ImageCairo.cpp:
2091         (WebCore::BitmapImage::draw):
2092         (WebCore::Image::drawPattern):
2093         * platform/graphics/cairo/ImageSourceCairo.cpp:
2094         (WebCore::ImageSource::setData):
2095         * platform/graphics/gtk/ImageGtk.cpp:
2096
2097 2007-12-03  Simon Hausmann  <hausmann@webkit.org>
2098
2099         Reviewed by Lars.
2100
2101         Fixed crash when rendering form elements with Qt 4.4
2102
2103         QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the
2104         help of QPaintDevice::devType().
2105         Also fall back to the QApplication::style() if we don't have a widget.
2106
2107         * platform/qt/RenderThemeQt.cpp:
2108         (WebCore::RenderThemeQt::paintButton):
2109         (WebCore::RenderThemeQt::paintTextField):
2110         (WebCore::RenderThemeQt::paintMenuList):
2111         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
2112
2113 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2114
2115         Reviewed by Sam Weinig.
2116
2117         * Add FrameLoader::shouldTreatSchemeAsLocal which is similar to
2118         shouldTreatURLAsLocal.
2119         * Make use of FrameLoader::shouldTreatSchemeAsLocal in SecurityOrigin
2120         and do not hardcode "file". This is needed for the WebKit/qt port to make
2121         the Web Inspector work as it using the qrc protocol instead of file.
2122
2123
2124         * loader/FrameLoader.cpp:
2125         (WebCore::FrameLoader::shouldTreatSchemeAsLocal):
2126         * loader/FrameLoader.h:
2127         * platform/SecurityOrigin.cpp:
2128         (WebCore::SecurityOrigin::isSecureTransitionTo):
2129
2130 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2131
2132         Rubber stamped by Sam Weinig.
2133
2134         Only add applewebdata to the localSchemes when building for the
2135         mac. This is in preparation of adding qrc for the Qt port there
2136         as well and http://bugs.webkit.org/show_bug.cgi?id=15938.
2137
2138         According to Anders applewebdata is not used on the win port.
2139
2140         * loader/FrameLoader.cpp:
2141         (WebCore::localSchemes):
2142
2143 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2144
2145         Rubber stamped by Sam Weinig.
2146
2147         Fix a typo. It is contains and not containts
2148
2149         * loader/FrameLoader.cpp:
2150
2151 2007-12-03  Alp Toker  <alp@atoker.com>
2152
2153         Add another missing DEPENDPATH.
2154
2155         Noticed when fixing the build.
2156
2157         * WebCore.pro:
2158
2159 2007-12-03  Adam Roben  <aroben@apple.com>
2160
2161         Speculative Windows build fix
2162
2163         * plugins/win/PluginViewWin.cpp:
2164         (WebCore::getString):
2165
2166 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
2167
2168         Build fix: added symbols to the right .exp file.
2169
2170         * WebCore.base.exp:
2171
2172 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
2173
2174         Reviewed by Eric Seidel.
2175
2176         Updated to match the JavaScriptCore change to move virtual methods from
2177         Interpreter to JSGlobalObject.
2178         
2179         Moved virtual ScriptInterpreter functions to Window.
2180
2181 2007-12-02  Darin Adler  <darin@apple.com>
2182
2183         Reviewed by Mitz.
2184
2185         - fix <rdar://problem/5601995> Hang/crash on http://ebay-uk.custhelp.com/
2186
2187         There were two problems here:
2188
2189             1) Incorrect HTMLCollection behavior led to us trying to insert a
2190                new row inside an existing row instead of next to it. The fix for
2191                this is to make HTMLCollection work better for table-related
2192                collections.
2193
2194             2) HTMLTableRowElement::insertCell would return a bad pointer if
2195                the insertion failed. The code should have failed, but not crashed,
2196                so it's worth fixing that too.
2197
2198         While fixing the HTMLCollection issues, I did some clean-up of that
2199         class and its derived classes.
2200
2201         Test: fast/dom/HTMLTableElement/rows.html
2202         Test: fast/dom/HTMLTableElement/tBodies.html
2203         Test: fast/dom/HTMLTableRowElement/cells.html
2204         Test: fast/dom/HTMLTableRowElement/insertCell.html
2205         Test: fast/dom/HTMLTableSectionElement/rows.html
2206
2207         * bindings/js/JSHTMLCollectionCustom.cpp:
2208         (WebCore::toJS): Updated because collectionType() was renamed to type().
2209
2210         * html/HTMLCollection.cpp:
2211         (WebCore::HTMLCollection::HTMLCollection): Updated for data member name
2212         changes. Also added a protected constructor for use by derived classes
2213         that pass in a CollectionInfo.
2214         (WebCore::HTMLCollection::CollectionInfo::copyCacheMap): Moved out of
2215         the header.
2216         (WebCore::isTableSection): Added.
2217         (WebCore::HTMLCollection::itemAfter): Renamed from traverseNextItem,
2218         because the old name was grammatically incorrect and thus a bit confusing.
2219         Changed to operate on Element* instead of Node*, and use 0 to start
2220         rather than passing in the base node (required since the base node can be
2221         a document, which is not an element). Generalized the code that made
2222         NodeChildren not descend into deeper descendants so it can be used for
2223         TRCells, TSectionRows, TableTBodies, and TableRows. Reformatted the
2224         switch statement and got rid of the "found" boolean since we can just
2225         return when we find something. Got rid of the default case, and instead
2226         listed all the enum values. Also changed to use a for loop for clarity.
2227         (WebCore::HTMLCollection::calcLength): Updated for itemAfter changes.
2228         (WebCore::HTMLCollection::item): Ditto.
2229         (WebCore::HTMLCollection::nextItem): Ditto.
2230         (WebCore::HTMLCollection::checkForNameMatch): Updated to take an Element
2231         instead of a Node pointer.
2232         (WebCore::HTMLCollection::namedItem): More of the same.
2233         (WebCore::HTMLCollection::updateNameCache): Ditto.
2234         (WebCore::HTMLCollection::namedItems): Ditto.
2235         (WebCore::HTMLCollection::nextNamedItem): Ditto.
2236         (WebCore::HTMLCollection::tags): Ditto.
2237
2238         * html/HTMLCollection.h: Added a type FormElements, so that the
2239         HTMLFormCollection would not have a type of DocImages, which is what
2240         it previously did. Changed the base parameter to be a PassRefPtr to
2241         make it clear we take ownership of it. Added a comment explaining
2242         why we should change the name CollectionInfo. Made a lot more members
2243         private instead of protected. Renamed traverseNextItem to itemAfter.
2244         Changed most functions to take Element* instead of Node*.
2245
2246         * html/HTMLFormCollection.cpp:
2247         (WebCore::HTMLFormCollection::formCollectionInfo): Added.
2248         (WebCore::HTMLFormCollection::HTMLFormCollection): Updated to pass
2249         collection info into the base class.
2250         (WebCore::HTMLFormCollection::calcLength): Updated to use base() so we
2251         don't need to get at m_base directly.
2252         (WebCore::HTMLFormCollection::item): Same, but for info().
2253         (WebCore::HTMLFormCollection::getNamedItem): Removed unused first
2254         argument.
2255         (WebCore::HTMLFormCollection::getNamedFormItem): Got rid of unneeded
2256         checks that the base is still an element and still a form, since that's
2257         guaranteed.
2258         (WebCore::HTMLFormCollection::nextItem): Use info().
2259         (WebCore::HTMLFormCollection::nextNamedItemInternal): Node instead of
2260         Element, some name changes.
2261         (WebCore::HTMLFormCollection::namedItem): Update for changes elsewhere.
2262         (WebCore::HTMLFormCollection::nextNamedItem): Ditto, also rewrote loop
2263         to be much simpler.
2264         (WebCore::HTMLFormCollection::updateNameCache): More of the same.
2265
2266         * html/HTMLFormCollection.h: Changed constructor to take an
2267         HTMLFormElement, using a PassRefPtr to communicate transfer of
2268         ownership. Made everything private instead of protected. Removed
2269         unneeded override of firstItem. Made getNamedItem and
2270         nextNamedItemInternal non-virtual. Removed unused first argument of
2271         getNamedItem. Added declaration of formCollectionInfo.
2272
2273         * html/HTMLNameCollection.cpp:
2274         (WebCore::HTMLNameCollection::HTMLNameCollection): Updated to pass
2275         collection info into the base class.
2276         (WebCore::HTMLNameCollection::itemAfter): Reformatted a bit and
2277         changed into a for loop.
2278
2279         * html/HTMLNameCollection.h: Updated for name changes. Made function
2280         private instead of public. Used PassRefPtr in constructor.
2281
2282         * html/HTMLOptionsCollection.cpp:
2283         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): Updated to
2284         pass collection info into the base class.
2285         (WebCore::HTMLOptionsCollection::add): Updated for public/private
2286         changes in the base class.
2287         (WebCore::HTMLOptionsCollection::selectedIndex): Ditto.
2288         (WebCore::HTMLOptionsCollection::setSelectedIndex): Ditto.
2289         (WebCore::HTMLOptionsCollection::setLength): Ditto.
2290
2291         * html/HTMLOptionsCollection.h: Changed constructor parameter to be a
2292         PassRefPtr.
2293
2294         * html/HTMLTableRowElement.cpp:
2295         (WebCore::HTMLTableRowElement::insertCell): Changed code to use RefPtr
2296         and PassRefPtr since this creates a new object. This alone fixed the
2297         crash. Also cleaned up logic a bit to be more readable.
2298
2299         * html/HTMLTableRowElement.h: Changed insertCell to return a PassRefPtr.
2300         Also reordered functions a bit to make things a little more logical and
2301         removed the unused ncols data member.
2302
2303         * html/HTMLTableSectionElement.cpp:
2304         (WebCore::HTMLTableSectionElement::rows): Pass TSectionRows, not
2305         TableRows. This mistake was harmless before because TableRows and
2306         TSectionRows were handled identically inside HTMLCollection, but that is
2307         no longer the case with this fix.
2308
2309         * bindings/scripts/CodeGeneratorJS.pm: Add an include to cope with the
2310         fact that HTMLOptionsCollection no longer includes HTMLOptionElement.
2311         I don't think this really should be a special case -- might be worth
2312         returning later to see if this can be optimized.
2313
2314 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
2315
2316         Reviewed by Adam.
2317
2318         RenderSVGViewportContainer sets wrong width/height.
2319         Share code with RenderSVGContainer in a central calcBounds() function.
2320
2321         Fixes:
2322         - svg/custom/use-css-events.svg (http://bugs.webkit.org/show_bug.cgi?id=15403)
2323         - svg/custom/deep-dynamic-updates.svg
2324         - svg/custom/use-clipped-hit.svg
2325         - svg/custom/image-clipped-hit.svg
2326
2327         * rendering/RenderSVGContainer.cpp:
2328         (WebCore::RenderSVGContainer::layout):
2329         (WebCore::RenderSVGContainer::calcBounds):
2330         * rendering/RenderSVGContainer.h:
2331         * rendering/RenderSVGViewportContainer.cpp:
2332         (WebCore::RenderSVGViewportContainer::layout):
2333
2334 2007-12-02  Brady Eidson <beidson@apple.com>
2335
2336         Reviewed by Darin
2337
2338         databaseChanged notifications were being sent out on the database thread - they need to be on the main thread
2339         like all other notifications we send out!
2340
2341         * platform/SecurityOriginData.cpp:
2342         (WebCore::SecurityOriginData::copy): Add a deep copy method, for when an object thread hops
2343         * platform/SecurityOriginData.h:
2344
2345         * storage/DatabaseTracker.cpp:
2346         (WebCore::notificationMutex):
2347         (WebCore::notificationQueue):
2348         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged): Add the origin/name pair to a queue
2349         (WebCore::DatabaseTracker::scheduleForNotification): Schedule to deliver this queue of notifications
2350           on the main thread
2351         (WebCore::DatabaseTracker::notifyDatabasesChanged): Deliver all notifications in the queue
2352         * storage/DatabaseTracker.h:
2353
2354         * storage/SQLTransaction.cpp:
2355         (WebCore::SQLTransaction::postflightAndCommit): scheduleNotifyDatabaseChanged() instead of "notify now!"
2356         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
2357
2358 2007-12-02  Rob Buis  <buis@kde.org>
2359
2360         Reviewed by Darin.
2361
2362         http://bugs.webkit.org/show_bug.cgi?id=16002
2363         Load SVG (and other) UA StyleSheets dynamically when needed
2364
2365         Load svg sheet when needed.
2366
2367         * css/CSSStyleSelector.cpp:
2368         (WebCore::screenEval):
2369         (WebCore::printEval):
2370         (WebCore::CSSStyleSelector::CSSStyleSelector):
2371         (WebCore::CSSStyleSelector::loadDefaultStyle):
2372         (WebCore::CSSStyleSelector::styleForElement):
2373         (WebCore::CSSRuleSet::addRulesFromSheet):
2374
2375 2007-12-02  Mark Rowe  <mrowe@apple.com>
2376
2377         Try and fix the Windows build.
2378
2379         * plugins/win/PluginViewWin.cpp:
2380         (WebCore::PluginViewWin::bindingInstance):
2381
2382 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
2383
2384         Rubber stamped by Eric.
2385
2386         Move platform/graphics/svg to graphics/svg as discussed on webkit-dev.
2387         Updated all project files.
2388
2389         * WebCore.pro:
2390         * WebCore.vcproj/WebCore.vcproj:
2391         * WebCore.xcodeproj/project.pbxproj:
2392         * platform/graphics/svg: Removed.
2393         * platform/graphics/svg/SVGImage.cpp: Removed.
2394         * platform/graphics/svg/SVGImage.h: Removed.
2395         * platform/graphics/svg/SVGImageEmptyClients.h: Removed.
2396         * platform/graphics/svg/SVGPaintServer.cpp: Removed.
2397         * platform/graphics/svg/SVGPaintServer.h: Removed.
2398         * platform/graphics/svg/SVGPaintServerGradient.cpp: Removed.
2399         * platform/graphics/svg/SVGPaintServerGradient.h: Removed.
2400         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Removed.
2401         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Removed.
2402         * platform/graphics/svg/SVGPaintServerPattern.cpp: Removed.
2403         * platform/graphics/svg/SVGPaintServerPattern.h: Removed.
2404         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Removed.
2405         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Removed.
2406         * platform/graphics/svg/SVGPaintServerSolid.cpp: Removed.
2407         * platform/graphics/svg/SVGPaintServerSolid.h: Removed.
2408         * platform/graphics/svg/SVGResource.cpp: Removed.
2409         * platform/graphics/svg/SVGResource.h: Removed.
2410         * platform/graphics/svg/SVGResourceClipper.cpp: Removed.
2411         * platform/graphics/svg/SVGResourceClipper.h: Removed.
2412         * platform/graphics/svg/SVGResourceFilter.cpp: Removed.
2413         * platform/graphics/svg/SVGResourceFilter.h: Removed.
2414         * platform/graphics/svg/SVGResourceListener.h: Removed.
2415         * platform/graphics/svg/SVGResourceMarker.cpp: Removed.
2416         * platform/graphics/svg/SVGResourceMarker.h: Removed.
2417         * platform/graphics/svg/SVGResourceMasker.cpp: Removed.
2418         * platform/graphics/svg/SVGResourceMasker.h: Removed.
2419         * platform/graphics/svg/cairo: Removed.
2420         * platform/graphics/svg/cairo/RenderPathCairo.cpp: Removed.
2421         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Removed.
2422         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Removed.
2423         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Removed.
2424         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Removed.
2425         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Removed.
2426         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Removed.
2427         * platform/graphics/svg/cg: Removed.
2428         * platform/graphics/svg/cg/CgSupport.cpp: Removed.
2429         * platform/graphics/svg/cg/CgSupport.h: Removed.
2430         * platform/graphics/svg/cg/RenderPathCg.cpp: Removed.
2431         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Removed.
2432         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Removed.
2433         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Removed.
2434         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Removed.
2435         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Removed.
2436         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Removed.
2437         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Removed.
2438         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Removed.
2439         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Removed.
2440         * platform/graphics/svg/filters: Removed.
2441         * platform/graphics/svg/filters/SVGDistantLightSource.h: Removed.
2442         * platform/graphics/svg/filters/SVGFEBlend.cpp: Removed.
2443         * platform/graphics/svg/filters/SVGFEBlend.h: Removed.
2444         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Removed.
2445         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Removed.
2446         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Removed.
2447         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Removed.
2448         * platform/graphics/svg/filters/SVGFEComposite.cpp: Removed.
2449         * platform/graphics/svg/filters/SVGFEComposite.h: Removed.
2450         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Removed.
2451         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Removed.
2452         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Removed.
2453         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Removed.
2454         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Removed.
2455         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Removed.
2456         * platform/graphics/svg/filters/SVGFEFlood.cpp: Removed.
2457         * platform/graphics/svg/filters/SVGFEFlood.h: Removed.
2458         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Removed.
2459         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Removed.
2460         * platform/graphics/svg/filters/SVGFEImage.cpp: Removed.
2461         * platform/graphics/svg/filters/SVGFEImage.h: Removed.
2462         * platform/graphics/svg/filters/SVGFEMerge.cpp: Removed.
2463         * platform/graphics/svg/filters/SVGFEMerge.h: Removed.
2464         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Removed.
2465         * platform/graphics/svg/filters/SVGFEMorphology.h: Removed.
2466         * platform/graphics/svg/filters/SVGFEOffset.cpp: Removed.
2467         * platform/graphics/svg/filters/SVGFEOffset.h: Removed.
2468         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Removed.
2469         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Removed.
2470         * platform/graphics/svg/filters/SVGFETile.h: Removed.
2471         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Removed.
2472         * platform/graphics/svg/filters/SVGFETurbulence.h: Removed.
2473         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Removed.
2474         * platform/graphics/svg/filters/SVGFilterEffect.h: Removed.
2475         * platform/graphics/svg/filters/SVGLightSource.cpp: Removed.
2476         * platform/graphics/svg/filters/SVGLightSource.h: Removed.
2477         * platform/graphics/svg/filters/SVGPointLightSource.h: Removed.
2478         * platform/graphics/svg/filters/SVGSpotLightSource.h: Removed.
2479         * platform/graphics/svg/filters/cg: Removed.
2480         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Removed.
2481         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Removed.
2482         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Removed.
2483         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Removed.
2484         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Removed.
2485         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Removed.
2486         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Removed.
2487         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Removed.
2488         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Removed.
2489         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Removed.
2490         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Removed.
2491         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Removed.
2492         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Removed.
2493         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Removed.
2494         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Removed.
2495         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Removed.
2496         * platform/graphics/svg/filters/cg/WKArithmeticFilter.cikernel: Removed.
2497         * platform/graphics/svg/filters/cg/WKArithmeticFilter.h: Removed.
2498         * platform/graphics/svg/filters/cg/WKArithmeticFilter.m: Removed.
2499         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.cikernel: Removed.
2500         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.h: Removed.
2501         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.m: Removed.
2502         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.cikernel: Removed.
2503         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.h: Removed.
2504         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.m: Removed.
2505         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.cikernel: Removed.
2506         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.h: Removed.
2507         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.m: Removed.
2508         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.cikernel: Removed.
2509         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.h: Removed.
2510         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.m: Removed.
2511         * platform/graphics/svg/filters/cg/WKDistantLightFilter.cikernel: Removed.
2512         * platform/graphics/svg/filters/cg/WKDistantLightFilter.h: Removed.
2513         * platform/graphics/svg/filters/cg/WKDistantLightFilter.m: Removed.
2514         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.cikernel: Removed.
2515         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.h: Removed.
2516         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.m: Removed.
2517         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.h: Removed.
2518         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.m: Removed.
2519         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.cikernel: Removed.
2520         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.h: Removed.
2521         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.m: Removed.
2522         * platform/graphics/svg/filters/cg/WKNormalMapFilter.cikernel: Removed.
2523         * platform/graphics/svg/filters/cg/WKNormalMapFilter.h: Removed.
2524         * platform/graphics/svg/filters/cg/WKNormalMapFilter.m: Removed.
2525         * platform/graphics/svg/filters/cg/WKPointLightFilter.cikernel: Removed.
2526         * platform/graphics/svg/filters/cg/WKPointLightFilter.h: Removed.
2527         * platform/graphics/svg/filters/cg/WKPointLightFilter.m: Removed.
2528         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.cikernel: Removed.
2529         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.h: Removed.
2530         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.m: Removed.
2531         * platform/graphics/svg/filters/cg/WKSpotLightFilter.cikernel: Removed.
2532         * platform/graphics/svg/filters/cg/WKSpotLightFilter.h: Removed.
2533         * platform/graphics/svg/filters/cg/WKSpotLightFilter.m: Removed.
2534         * platform/graphics/svg/filters/cg/WKTableTransferFilter.cikernel: Removed.
2535         * platform/graphics/svg/filters/cg/WKTableTransferFilter.h: Removed.
2536         * platform/graphics/svg/filters/cg/WKTableTransferFilter.m: Removed.
2537         * platform/graphics/svg/mac: Removed.
2538         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Removed.
2539         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Removed.
2540         * platform/graphics/svg/qt: Removed.
2541         * platform/graphics/svg/qt/RenderPathQt.cpp: Removed.
2542         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Removed.
2543         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Removed.
2544         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Removed.
2545         * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Removed.
2546         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Removed.
2547         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Removed.
2548         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Removed.
2549         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Removed.
2550         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Removed.
2551         * svg/graphics: Copied from platform/graphics/svg.
2552
2553 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
2554
2555         Reviewed by Maciej.
2556
2557         Fix IDL lookup in subdirectories. Missing 'my' prefix for the 'thisDir' variable.
2558         When entering subdirectories the 'thisDir' variable got altered - see snippet:
2559
2560         THISDIR: WebCore/page FOUND FILE: FrameView.h (endCondition: 0)
2561         ..
2562         -> ENTER: WebCore/page/gtk (THIS DIR: WebCore/page)
2563         ...
2564         <- LEAVE: WebCore/page/gtk (THIS DIR: WebCore/page/gtk)
2565         THISDIR: WebCore/page/gtk FOUND FILE: History.cpp (endCondition: 0)
2566
2567         'History.cpp' is located in WebCore/page not WebCore/page/gtk.
2568
2569         * bindings/scripts/CodeGenerator.pm:
2570
2571 2007-12-01  Alp Toker  <alp@atoker.com>
2572
2573         Reviewed by Adam Roben.
2574
2575         Add the newly introduced webkit.h convenience header.
2576
2577         * WebCore.pro:
2578
2579 2007-12-01  Antti Koivisto  <antti@apple.com>
2580
2581         Reviewed by Adam.
2582         
2583         - Fix crash when removing a loading media element from the tree.
2584         - Follow the spec by invoking pause() when element is removed from the tree instead of unloading.
2585
2586         Tests: http/tests/media/remove-while-loading.html
2587                media/remove-from-document.html
2588
2589         * html/HTMLMediaElement.cpp:
2590         (WebCore::HTMLMediaElement::removedFromDocument):
2591
2592 2007-12-01  Geoffrey Garen  <ggaren@apple.com>
2593
2594         Reviewed by Beth Dakin.
2595
2596         Restored the test string in this test.
2597
2598         * manual-tests/window-open-features-parsing.html:
2599
2600 2007-11-30  Geoffrey Garen  <ggaren@apple.com>
2601
2602         Reviewed by Beth Dakin.
2603         
2604         Modified WebCore to follow the new JSGlobalObject/Interpreter ownership
2605         rules in JavaScriptCore.
2606
2607         * bindings/js/kjs_binding.cpp:
2608         * bindings/js/kjs_binding.h: Removed stale, unused 
2609         interpreterForGlobalObject().
2610
2611         * bindings/js/kjs_proxy.cpp: Changed to store a global object, rather
2612         than an interpreter.
2613         (WebCore::KJSProxy::finishedWithEvent): Need to NULL check 
2614         m_globalObject here because we no longer unnecessarily instantiate it.
2615
2616         * bindings/js/kjs_window.cpp:
2617         (KJS::ScheduledAction::execute):
2618         * bindings/js/kjs_window.h: Removed redundant and less efficient 
2619         interpreter() function -- global objects have direct access to their
2620         interpreters now.
2621
2622         Changed these functions to pass around JSGlobalObjects instead of 
2623         Interpreters:
2624
2625         * page/Frame.cpp:
2626         (WebCore::Frame::bindingRootObject):
2627         (WebCore::Frame::createRootObject):
2628         * page/Frame.h:
2629         * page/mac/WebCoreFrameBridge.mm:
2630         (createRootObject):
2631
2632 2007-12-01  Darin Adler  <darin@apple.com>
2633
2634         Reviewed by Mitz.
2635
2636         - fix problem tracked by these bugs:
2637           http://bugs.webkit.org/show_bug.cgi?id=16097
2638           <rdar://problem/5619305> Safari crashes during load of LexisNexis search results
2639           <rdar://problem/5510779> CrashTracer: [USER] 25 crashes in Safari at
2640           WebCore::DocumentLoader::isLoadingMultipartContent const
2641
2642         * loader/ImageDocument.cpp:
2643         (WebCore::ImageDocument::createDocumentStructure): Create an ImageDocumentElement
2644         instead of an HTMLImageElement.
2645         (WebCore::ImageDocument::scale): Added a null check for m_imageElement.
2646         (WebCore::ImageDocument::resizeImageToFit): Ditto.
2647         (WebCore::ImageDocument::restoreImageSize): Ditto.
2648         (WebCore::ImageDocument::imageFitsInWindow): Ditto.
2649         (WebCore::ImageDocument::windowSizeChanged): Ditto.
2650         (WebCore::ImageDocumentElement::~ImageDocumentElement): Call
2651         disconnectImageElement so m_imageElement will be set to 0
2652          if we're still connected to the document.
2653         (WebCore::ImageDocumentElement::willMoveToNewOwnerDocument): Ditto.
2654
2655         * loader/ImageDocument.h: Changed image element type to be
2656         ImageDocumentElement instead of HTMLImageElement. Also added
2657         a disconnectImageElement function that sets m_imageElement to 0.
2658
2659 2007-12-01  Darin Adler  <darin@apple.com>
2660
2661         - remove the empty directories
2662
2663         * ksvg2: Removed.
2664         * ksvg2/css: Removed.
2665         * ksvg2/events: Removed.
2666         * ksvg2/misc: Removed.
2667         * ksvg2/scripts: Removed.
2668
2669 2007-12-01  Julien Chaffraix  <julien.chaffraix@gmail.com>
2670
2671         Bug 16189: XMLHttpRequest::setRequestHeader() should not set certain headers
2672
2673         Reviewed by Darin Adler.
2674
2675         * xml/XMLHttpRequest.cpp:
2676         (WebCore::canSetRequestHeader):
2677
2678         Test: http/tests/xmlhttprequest/set-dangerous-headers.html
2679
2680 2007-12-01  Rahul Abrol  <ra5ul@comcast.net>
2681
2682         Reviewed by Adam Roben.
2683
2684         http://bugs.webkit.org/show_bug.cgi?id=16128
2685         Ignore resizable=no for window.open().
2686
2687         * bindings/js/kjs_window.cpp:
2688         (KJS::setWindowFeature):
2689         (KJS::parseWindowFeatures):
2690         * manual-tests/window-open-features-parsing.html:
2691
2692 2007-12-01  Dan Bernstein  <mitz@apple.com>
2693
2694         Reviewed by Darin Adler.
2695
2696         - fix <rdar://problem/5619240> REGRESSION (Leopard-r28069): Reproducible crash with a Mootools-based calendar picker (jump to null in FrameView::layout)
2697
2698         Test: fast/dynamic/subtree-common-root.html
2699
2700         * page/FrameView.cpp:
2701         (WebCore::FrameView::layoutRoot): Added a parameter to let this method
2702         return the layout root for a pending layout as well.
2703         (WebCore::FrameView::scheduleRelayoutOfSubtree): Pass the new root
2704         to markContainingBlocksForLayout(). Otherwise,
2705         markContainingBlocksForLayout() could mark past the new root, if it had
2706         previously been marked as having a normal child needing layout and then
2707         was reached via a positioned child.
2708         * page/FrameView.h:
2709         * rendering/RenderBox.cpp:
2710         (WebCore::RenderBox::calcWidth):
2711         * rendering/RenderObject.cpp:
2712         (WebCore::RenderObject::~RenderObject): Fixed the ASSERT so that
2713         it would really catch deletion of the layout root.
2714         (WebCore::RenderObject::markContainingBlocksForLayout): Added the
2715         newRoot parameter, which tells this method where to stop marking.
2716         * rendering/RenderObject.h:
2717
2718 2007-12-01  Dan Bernstein  <mitz@apple.com>
2719
2720         Reviewed by Darin Adler.
2721
2722         - fold FontStyle into TextRun
2723
2724         * WebCore.xcodeproj/project.pbxproj:
2725         * platform/graphics/Font.cpp:
2726         (WebCore::WidthIterator::WidthIterator):
2727         (WebCore::WidthIterator::advance):
2728         (WebCore::Font::width):
2729         (WebCore::Font::drawSimpleText):
2730         (WebCore::Font::drawGlyphBuffer):
2731         (WebCore::Font::drawText):
2732         (WebCore::Font::floatWidth):
2733         (WebCore::Font::floatWidthForSimpleText):
2734         (WebCore::Font::selectionRectForText):
2735         (WebCore::Font::selectionRectForSimpleText):
2736         (WebCore::Font::offsetForPosition):
2737         (WebCore::Font::offsetForPositionForSimpleText):
2738         * platform/graphics/Font.h:
2739         (WebCore::TextRun::TextRun):
2740         (WebCore::TextRun::setText):
2741         (WebCore::TextRun::allowTabs):
2742         (WebCore::TextRun::xPos):
2743         (WebCore::TextRun::padding):
2744         (WebCore::TextRun::rtl):
2745         (WebCore::TextRun::ltr):
2746         (WebCore::TextRun::directionalOverride):
2747         (WebCore::TextRun::applyRunRounding):
2748         (WebCore::TextRun::applyWordRounding):
2749         (WebCore::TextRun::spacingDisabled):
2750         (WebCore::TextRun::disableSpacing):
2751         (WebCore::TextRun::disableRoundingHacks):
2752         (WebCore::TextRun::setRTL):
2753         (WebCore::TextRun::setDirectionalOverride):
2754         * platform/graphics/FontStyle.h: Removed.
2755         * platform/graphics/GraphicsContext.cpp:
2756         (WebCore::GraphicsContext::drawText):
2757         (WebCore::GraphicsContext::drawBidiText):
2758         (WebCore::GraphicsContext::drawHighlightForText):
2759         * platform/graphics/GraphicsContext.h:
2760         * platform/graphics/StringTruncator.cpp:
2761         (WebCore::stringWidth):
2762         * platform/graphics/gtk/FontGtk.cpp:
2763         (WebCore::Font::drawComplexText):
2764         (WebCore::Font::floatWidthForComplexText):
2765         (WebCore::Font::offsetForPositionForComplexText):
2766         (WebCore::Font::selectionRectForComplexText):
2767         * platform/graphics/mac/FontMac.mm:
2768         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
2769         (WebCore::addDirectionalOverride):
2770         (WebCore::overrideLayoutOperation):
2771         (WebCore::ATSULayoutParameters::initialize):
2772         (WebCore::Font::selectionRectForComplexText):
2773         (WebCore::Font::drawComplexText):
2774         (WebCore::Font::floatWidthForComplexText):
2775         (WebCore::Font::offsetForPositionForComplexText):
2776         * platform/graphics/qt/FontQt.cpp:
2777         (WebCore::generateComponents):
2778         (WebCore::Font::drawText):
2779         (WebCore::Font::width):
2780         (WebCore::Font::offsetForPosition):
2781         (WebCore::cursorToX):
2782         (WebCore::Font::selectionRectForText):
2783         * platform/graphics/win/FontWin.cpp:
2784         (WebCore::Font::selectionRectForComplexText):
2785         (WebCore::Font::drawComplexText):
2786         (WebCore::Font::floatWidthForComplexText):
2787         (WebCore::Font::offsetForPositionForComplexText):
2788         * platform/graphics/wx/FontWx.cpp:
2789         (WebCore::Font::selectionRectForComplexText):
2790         (WebCore::Font::drawComplexText):
2791         (WebCore::Font::floatWidthForComplexText):
2792         (WebCore::Font::offsetForPositionForComplexText):
2793         * platform/mac/WebCoreTextRenderer.mm:
2794         (WebCoreDrawTextAtPoint):
2795         (WebCoreTextFloatWidth):
2796         * platform/win/PopupMenuWin.cpp:
2797         (WebCore::PopupMenu::paint):
2798         * platform/win/UniscribeController.cpp:
2799         (WebCore::UniscribeController::UniscribeController):
2800         (WebCore::UniscribeController::offsetForPosition):
2801         (WebCore::UniscribeController::advance):
2802         (WebCore::UniscribeController::itemizeShapeAndPlace):
2803         (WebCore::UniscribeController::resetControlAndState):
2804         (WebCore::UniscribeController::shapeAndPlaceItem):
2805         * platform/win/UniscribeController.h:
2806         * platform/win/WebCoreTextRenderer.cpp:
2807         (WebCore::doDrawTextAtPoint):
2808         * rendering/EllipsisBox.cpp:
2809         (WebCore::EllipsisBox::paint):
2810         * rendering/InlineTextBox.cpp:
2811         (WebCore::InlineTextBox::selectionRect):
2812         (WebCore::InlineTextBox::paint):
2813         (WebCore::InlineTextBox::paintSelection):
2814         (WebCore::InlineTextBox::paintCompositionBackground):
2815         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
2816         (WebCore::InlineTextBox::paintTextMatchMarker):
2817         (WebCore::InlineTextBox::offsetForPosition):
2818         (WebCore::InlineTextBox::positionForOffset):
2819         * rendering/RenderFileUploadControl.cpp:
2820         (WebCore::RenderFileUploadControl::paintObject):
2821         (WebCore::RenderFileUploadControl::calcPrefWidths):
2822         * rendering/RenderImage.cpp:
2823         * rendering/RenderListBox.cpp:
2824         (WebCore::RenderListBox::updateFromElement):
2825         (WebCore::RenderListBox::paintItemForeground):
2826         * rendering/RenderMenuList.cpp:
2827         (WebCore::RenderMenuList::updateOptionsWidth):
2828         * rendering/RenderText.cpp:
2829         (WebCore::RenderText::widthFromCache):
2830         (WebCore::RenderText::calcPrefWidths):
2831         (WebCore::RenderText::width):
2832         * rendering/RenderText.h:
2833         (WebCore::RenderText::allowTabs):
2834         * rendering/RenderTextControl.cpp:
2835         (WebCore::RenderTextControl::calcPrefWidths):
2836         * rendering/SVGInlineTextBox.cpp:
2837         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
2838         (WebCore::SVGInlineTextBox::paintCharacters):
2839         (WebCore::SVGInlineTextBox::paintSelection):
2840         * rendering/SVGRootInlineBox.cpp:
2841         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
2842         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
2843         (WebCore::svgTextRunForInlineTextBox):
2844         * rendering/SVGRootInlineBox.h:
2845
2846 2007-12-01  Adam Treat  <treat@kde.org>
2847
2848         Reviewed by Simon.
2849
2850         * Don't hide symbols when in Debug mode
2851         * On Linux (glibc) provide a backtrace in the test output for debugging purposes
2852
2853         * WebCore.pro:
2854
2855 2007-11-30  Alp Toker  <alp@atoker.com>
2856
2857         Reviewed by Adam Roben.
2858
2859         http://bugs.webkit.org/show_bug.cgi?id=15691
2860         [GTK] Public API does not follow GTK+ conventions
2861
2862         Refactor the WebKit/GTK+ public API. Changes:
2863           WebKitPage -> WebKitWebView
2864           WebKitFrame -> WebKitWebFrame
2865
2866         Public API source and header names have been updated to mirror the API
2867         changes.
2868
2869         The API is now kept in WebKit/gtk/WebView to match other ports in the
2870         same class such as Mac and Win.
2871
2872         * WebCore.pro:
2873
2874 2007-11-30   Anders Carlsson  <andersca@apple.com>
2875
2876         Add platform/text project group.
2877         
2878         * WebCore.vcproj/WebCore.vcproj:
2879
2880 2007-11-30   Anders Carlsson  <andersca@apple.com>
2881
2882         Remove extra </Filter> tag which prevented the vcproj from being parsed correctly.
2883         
2884         * WebCore.vcproj/WebCore.vcproj:
2885
2886 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2887
2888         Not reviewed. Try to fix qt/gtk build.
2889
2890         * WebCore.pro:
2891
2892 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2893
2894         Rubber stamped by Eric.
2895
2896         Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
2897         by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
2898         mailing list and on IRC with David/Darin & Eric.
2899
2900         Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
2901
2902         * DerivedSources.make:
2903         * WebCore.pro:
2904         * WebCore.vcproj/WebCore.vcproj:
2905         * WebCore.xcodeproj/project.pbxproj:
2906         * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
2907         * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
2908         * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
2909         * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
2910         * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
2911         * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
2912         * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
2913         * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
2914         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
2915         * ksvg2/css/SVGCSSParser.cpp: Removed.
2916         * ksvg2/css/SVGCSSPropertyNames.in: Removed.
2917         * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
2918         * ksvg2/css/SVGCSSValueKeywords.in: Removed.
2919         * ksvg2/css/SVGRenderStyle.cpp: Removed.
2920         * ksvg2/css/SVGRenderStyle.h: Removed.
2921         * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
2922         * ksvg2/css/SVGRenderStyleDefs.h: Removed.
2923         * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
2924         * ksvg2/events/JSSVGLazyEventListener.h: Removed.
2925         * ksvg2/events/SVGZoomEvent.cpp: Removed.
2926         * ksvg2/events/SVGZoomEvent.h: Removed.
2927         * ksvg2/events/SVGZoomEvent.idl: Removed.
2928         * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
2929         * ksvg2/misc/PointerEventsHitRules.h: Removed.
2930         * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
2931         * ksvg2/misc/SVGDocumentExtensions.h: Removed.
2932         * ksvg2/misc/SVGImageLoader.cpp: Removed.
2933         * ksvg2/misc/SVGImageLoader.h: Removed.
2934         * ksvg2/misc/SVGTimer.cpp: Removed.
2935         * ksvg2/misc/SVGTimer.h: Removed.
2936         * ksvg2/misc/TimeScheduler.cpp: Removed.
2937         * ksvg2/misc/TimeScheduler.h: Removed.
2938         * ksvg2/misc/xlinkattrs.in: Removed.
2939         * ksvg2/scripts/make_names.pl: Removed.
2940         * ksvg2/svg: Removed.
2941         * ksvg2/svg/ColorDistance.cpp: Removed.
2942         * ksvg2/svg/ColorDistance.h: Removed.
2943         * ksvg2/svg/GradientAttributes.h: Removed.
2944         * ksvg2/svg/LinearGradientAttributes.h: Removed.
2945         * ksvg2/svg/PatternAttributes.h: Removed.
2946         * ksvg2/svg/RadialGradientAttributes.h: Removed.
2947         * ksvg2/svg/SVGAElement.cpp: Removed.
2948         * ksvg2/svg/SVGAElement.h: Removed.
2949         * ksvg2/svg/SVGAElement.idl: Removed.
2950         * ksvg2/svg/SVGAngle.cpp: Removed.
2951         * ksvg2/svg/SVGAngle.h: Removed.
2952         * ksvg2/svg/SVGAngle.idl: Removed.
2953         * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
2954         * ksvg2/svg/SVGAnimateColorElement.h: Removed.
2955         * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
2956         * ksvg2/svg/SVGAnimateElement.cpp: Removed.
2957         * ksvg2/svg/SVGAnimateElement.h: Removed.
2958         * ksvg2/svg/SVGAnimateElement.idl: Removed.
2959         * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
2960         * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
2961         * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
2962         * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
2963         * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
2964         * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
2965         * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
2966         * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
2967         * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
2968         * ksvg2/svg/SVGAnimatedLength.idl: Removed.
2969         * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
2970         * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
2971         * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
2972         * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
2973         * ksvg2/svg/SVGAnimatedPathData.h: Removed.
2974         * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
2975         * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
2976         * ksvg2/svg/SVGAnimatedPoints.h: Removed.
2977         * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
2978         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
2979         * ksvg2/svg/SVGAnimatedRect.idl: Removed.
2980         * ksvg2/svg/SVGAnimatedString.idl: Removed.
2981         * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
2982         * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
2983         * ksvg2/svg/SVGAnimationElement.cpp: Removed.
2984         * ksvg2/svg/SVGAnimationElement.h: Removed.
2985         * ksvg2/svg/SVGAnimationElement.idl: Removed.
2986         * ksvg2/svg/SVGCircleElement.cpp: Removed.
2987         * ksvg2/svg/SVGCircleElement.h: Removed.
2988         * ksvg2/svg/SVGCircleElement.idl: Removed.
2989         * ksvg2/svg/SVGClipPathElement.cpp: Removed.
2990         * ksvg2/svg/SVGClipPathElement.h: Removed.
2991         * ksvg2/svg/SVGClipPathElement.idl: Removed.
2992         * ksvg2/svg/SVGColor.cpp: Removed.
2993         * ksvg2/svg/SVGColor.h: Removed.
2994         * ksvg2/svg/SVGColor.idl: Removed.
2995         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
2996         * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
2997         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
2998         * ksvg2/svg/SVGCursorElement.cpp: Removed.
2999         * ksvg2/svg/SVGCursorElement.h: Removed.
3000         * ksvg2/svg/SVGCursorElement.idl: Removed.
3001         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
3002         * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
3003         * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
3004         * ksvg2/svg/SVGDefsElement.cpp: Removed.
3005         * ksvg2/svg/SVGDefsElement.h: Removed.
3006         * ksvg2/svg/SVGDefsElement.idl: Removed.
3007         * ksvg2/svg/SVGDescElement.cpp: Removed.
3008         * ksvg2/svg/SVGDescElement.h: Removed.
3009         * ksvg2/svg/SVGDescElement.idl: Removed.
3010         * ksvg2/svg/SVGDocument.cpp: Removed.
3011         * ksvg2/svg/SVGDocument.h: Removed.
3012         * ksvg2/svg/SVGDocument.idl: Removed.
3013         * ksvg2/svg/SVGElement.cpp: Removed.
3014         * ksvg2/svg/SVGElement.h: Removed.
3015         * ksvg2/svg/SVGElement.idl: Removed.
3016         * ksvg2/svg/SVGElementInstance.cpp: Removed.
3017         * ksvg2/svg/SVGElementInstance.h: Removed.
3018         * ksvg2/svg/SVGElementInstance.idl: Removed.
3019         * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
3020         * ksvg2/svg/SVGElementInstanceList.h: Removed.
3021         * ksvg2/svg/SVGElementInstanceList.idl: Removed.
3022         * ksvg2/svg/SVGEllipseElement.cpp: Removed.
3023         * ksvg2/svg/SVGEllipseElement.h: Removed.
3024         * ksvg2/svg/SVGEllipseElement.idl: Removed.
3025         * ksvg2/svg/SVGException.h: Removed.
3026         * ksvg2/svg/SVGException.idl: Removed.
3027         * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
3028         * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
3029         * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
3030         * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
3031         * ksvg2/svg/SVGFEBlendElement.h: Removed.
3032         * ksvg2/svg/SVGFEBlendElement.idl: Removed.
3033         * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
3034         * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
3035         * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
3036         * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
3037         * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
3038         * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
3039         * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
3040         * ksvg2/svg/SVGFECompositeElement.h: Removed.
3041         * ksvg2/svg/SVGFECompositeElement.idl: Removed.
3042         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
3043         * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
3044         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
3045         * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
3046         * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
3047         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
3048         * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
3049         * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
3050         * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
3051         * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
3052         * ksvg2/svg/SVGFEFloodElement.h: Removed.
3053         * ksvg2/svg/SVGFEFloodElement.idl: Removed.
3054         * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
3055         * ksvg2/svg/SVGFEFuncAElement.h: Removed.
3056         * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
3057         * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
3058         * ksvg2/svg/SVGFEFuncBElement.h: Removed.
3059         * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
3060         * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
3061         * ksvg2/svg/SVGFEFuncGElement.h: Removed.
3062         * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
3063         * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
3064         * ksvg2/svg/SVGFEFuncRElement.h: Removed.
3065         * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
3066         * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
3067         * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
3068         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
3069         * ksvg2/svg/SVGFEImageElement.cpp: Removed.
3070         * ksvg2/svg/SVGFEImageElement.h: Removed.
3071         * ksvg2/svg/SVGFEImageElement.idl: Removed.
3072         * ksvg2/svg/SVGFELightElement.cpp: Removed.
3073         * ksvg2/svg/SVGFELightElement.h: Removed.
3074         * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
3075         * ksvg2/svg/SVGFEMergeElement.h: Removed.
3076         * ksvg2/svg/SVGFEMergeElement.idl: Removed.
3077         * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
3078         * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
3079         * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
3080         * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
3081         * ksvg2/svg/SVGFEOffsetElement.h: Removed.
3082         * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
3083         * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
3084         * ksvg2/svg/SVGFEPointLightElement.h: Removed.
3085         * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
3086         * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
3087         * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
3088         * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
3089         * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
3090         * ksvg2/svg/SVGFESpotLightElement.h: Removed.
3091         * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
3092         * ksvg2/svg/SVGFETileElement.cpp: Removed.
3093         * ksvg2/svg/SVGFETileElement.h: Removed.
3094         * ksvg2/svg/SVGFETileElement.idl: Removed.
3095         * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
3096         * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
3097         * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
3098         * ksvg2/svg/SVGFilterElement.cpp: Removed.
3099         * ksvg2/svg/SVGFilterElement.h: Removed.
3100         * ksvg2/svg/SVGFilterElement.idl: Removed.
3101         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
3102         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
3103         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
3104         * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
3105         * ksvg2/svg/SVGFitToViewBox.h: Removed.
3106         * ksvg2/svg/SVGFitToViewBox.idl: Removed.
3107         * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
3108         * ksvg2/svg/SVGFontFaceElement.h: Removed.
3109         * ksvg2/svg/SVGFontFaceElement.idl: Removed.
3110         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
3111         * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
3112         * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
3113         * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
3114         * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
3115         * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
3116         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
3117         * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
3118         * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
3119         * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
3120         * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
3121         * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
3122         * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
3123         * ksvg2/svg/SVGForeignObjectElement.h: Removed.
3124         * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
3125         * ksvg2/svg/SVGGElement.cpp: Removed.
3126         * ksvg2/svg/SVGGElement.h: Removed.
3127         * ksvg2/svg/SVGGElement.idl: Removed.
3128         * ksvg2/svg/SVGGradientElement.cpp: Removed.
3129         * ksvg2/svg/SVGGradientElement.h: Removed.
3130         * ksvg2/svg/SVGGradientElement.idl: Removed.
3131         * ksvg2/svg/SVGImageElement.cpp: Removed.
3132         * ksvg2/svg/SVGImageElement.h: Removed.
3133         * ksvg2/svg/SVGImageElement.idl: Removed.
3134         * ksvg2/svg/SVGLangSpace.cpp: Removed.
3135         * ksvg2/svg/SVGLangSpace.h: Removed.
3136         * ksvg2/svg/SVGLangSpace.idl: Removed.
3137         * ksvg2/svg/SVGLength.cpp: Removed.
3138         * ksvg2/svg/SVGLength.h: Removed.
3139         * ksvg2/svg/SVGLength.idl: Removed.
3140         * ksvg2/svg/SVGLengthList.cpp: Removed.
3141         * ksvg2/svg/SVGLengthList.h: Removed.
3142         * ksvg2/svg/SVGLengthList.idl: Removed.
3143         * ksvg2/svg/SVGLineElement.cpp: Removed.
3144         * ksvg2/svg/SVGLineElement.h: Removed.
3145         * ksvg2/svg/SVGLineElement.idl: Removed.
3146         * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
3147         * ksvg2/svg/SVGLinearGradientElement.h: Removed.
3148         * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
3149         * ksvg2/svg/SVGList.h: Removed.
3150         * ksvg2/svg/SVGListTraits.h: Removed.
3151         * ksvg2/svg/SVGLocatable.cpp: Removed.
3152         * ksvg2/svg/SVGLocatable.h: Removed.
3153         * ksvg2/svg/SVGLocatable.idl: Removed.
3154         * ksvg2/svg/SVGMPathElement.cpp: Removed.
3155         * ksvg2/svg/SVGMPathElement.h: Removed.
3156         * ksvg2/svg/SVGMarkerElement.cpp: Removed.
3157         * ksvg2/svg/SVGMarkerElement.h: Removed.
3158         * ksvg2/svg/SVGMarkerElement.idl: Removed.
3159         * ksvg2/svg/SVGMaskElement.cpp: Removed.
3160         * ksvg2/svg/SVGMaskElement.h: Removed.
3161         * ksvg2/svg/SVGMaskElement.idl: Removed.
3162         * ksvg2/svg/SVGMatrix.idl: Removed.
3163         * ksvg2/svg/SVGMetadataElement.cpp: Removed.
3164         * ksvg2/svg/SVGMetadataElement.h: Removed.
3165         * ksvg2/svg/SVGMetadataElement.idl: Removed.
3166         * ksvg2/svg/SVGNumber.idl: Removed.
3167         * ksvg2/svg/SVGNumberList.cpp: Removed.
3168         * ksvg2/svg/SVGNumberList.h: Removed.
3169         * ksvg2/svg/SVGNumberList.idl: Removed.
3170         * ksvg2/svg/SVGPaint.cpp: Removed.
3171         * ksvg2/svg/SVGPaint.h: Removed.
3172         * ksvg2/svg/SVGPaint.idl: Removed.
3173         * ksvg2/svg/SVGParserUtilities.cpp: Removed.
3174         * ksvg2/svg/SVGParserUtilities.h: Removed.
3175         * ksvg2/svg/SVGPathElement.cpp: Removed.
3176         * ksvg2/svg/SVGPathElement.h: Removed.
3177         * ksvg2/svg/SVGPathElement.idl: Removed.
3178         * ksvg2/svg/SVGPathSeg.h: Removed.
3179         * ksvg2/svg/SVGPathSeg.idl: Removed.
3180         * ksvg2/svg/SVGPathSegArc.cpp: Removed.
3181         * ksvg2/svg/SVGPathSegArc.h: Removed.
3182         * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
3183         * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
3184         * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
3185         * ksvg2/svg/SVGPathSegClosePath.h: Removed.
3186         * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
3187         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
3188         * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
3189         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
3190         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
3191         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
3192         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
3193         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
3194         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
3195         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
3196         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
3197         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
3198         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
3199         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
3200         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
3201         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
3202         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
3203         * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
3204         * ksvg2/svg/SVGPathSegLineto.h: Removed.
3205         * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
3206         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
3207         * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
3208         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
3209         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
3210         * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
3211         * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
3212         * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
3213         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
3214         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
3215         * ksvg2/svg/SVGPathSegList.cpp: Removed.
3216         * ksvg2/svg/SVGPathSegList.h: Removed.
3217         * ksvg2/svg/SVGPathSegList.idl: Removed.
3218         * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
3219         * ksvg2/svg/SVGPathSegMoveto.h: Removed.
3220         * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
3221         * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
3222         * ksvg2/svg/SVGPatternElement.cpp: Removed.
3223         * ksvg2/svg/SVGPatternElement.h: Removed.
3224         * ksvg2/svg/SVGPatternElement.idl: Removed.
3225         * ksvg2/svg/SVGPoint.idl: Removed.
3226         * ksvg2/svg/SVGPointList.cpp: Removed.
3227         * ksvg2/svg/SVGPointList.h: Removed.
3228         * ksvg2/svg/SVGPointList.idl: Removed.
3229         * ksvg2/svg/SVGPolyElement.cpp: Removed.
3230         * ksvg2/svg/SVGPolyElement.h: Removed.
3231         * ksvg2/svg/SVGPolygonElement.cpp: Removed.
3232         * ksvg2/svg/SVGPolygonElement.h: Removed.
3233         * ksvg2/svg/SVGPolygonElement.idl: Removed.
3234         * ksvg2/svg/SVGPolylineElement.cpp: Removed.
3235         * ksvg2/svg/SVGPolylineElement.h: Removed.
3236         * ksvg2/svg/SVGPolylineElement.idl: Removed.
3237         * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
3238         * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
3239         * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
3240         * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
3241         * ksvg2/svg/SVGRadialGradientElement.h: Removed.
3242         * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
3243         * ksvg2/svg/SVGRect.idl: Removed.
3244         * ksvg2/svg/SVGRectElement.cpp: Removed.
3245         * ksvg2/svg/SVGRectElement.h: Removed.
3246         * ksvg2/svg/SVGRectElement.idl: Removed.
3247         * ksvg2/svg/SVGRenderingIntent.h: Removed.
3248         * ksvg2/svg/SVGRenderingIntent.idl: Removed.
3249         * ksvg2/svg/SVGSVGElement.cpp: Removed.
3250         * ksvg2/svg/SVGSVGElement.h: Removed.
3251         * ksvg2/svg/SVGSVGElement.idl: Removed.
3252         * ksvg2/svg/SVGScriptElement.cpp: Removed.
3253         * ksvg2/svg/SVGScriptElement.h: Removed.
3254         * ksvg2/svg/SVGScriptElement.idl: Removed.
3255         * ksvg2/svg/SVGSetElement.cpp: Removed.
3256         * ksvg2/svg/SVGSetElement.h: Removed.
3257         * ksvg2/svg/SVGSetElement.idl: Removed.
3258         * ksvg2/svg/SVGStopElement.cpp: Removed.
3259         * ksvg2/svg/SVGStopElement.h: Removed.
3260         * ksvg2/svg/SVGStopElement.idl: Removed.
3261         * ksvg2/svg/SVGStringList.cpp: Removed.
3262         * ksvg2/svg/SVGStringList.h: Removed.
3263         * ksvg2/svg/SVGStringList.idl: Removed.
3264         * ksvg2/svg/SVGStylable.cpp: Removed.
3265         * ksvg2/svg/SVGStylable.h: Removed.
3266         * ksvg2/svg/SVGStylable.idl: Removed.
3267         * ksvg2/svg/SVGStyleElement.cpp: Removed.
3268         * ksvg2/svg/SVGStyleElement.h: Removed.
3269         * ksvg2/svg/SVGStyleElement.idl: Removed.
3270         * ksvg2/svg/SVGStyledElement.cpp: Removed.
3271         * ksvg2/svg/SVGStyledElement.h: Removed.
3272         * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
3273         * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
3274         * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
3275         * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
3276         * ksvg2/svg/SVGSwitchElement.cpp: Removed.
3277         * ksvg2/svg/SVGSwitchElement.h: Removed.
3278         * ksvg2/svg/SVGSwitchElement.idl: Removed.
3279         * ksvg2/svg/SVGSymbolElement.cpp: Removed.
3280         * ksvg2/svg/SVGSymbolElement.h: Removed.
3281         * ksvg2/svg/SVGSymbolElement.idl: Removed.
3282         * ksvg2/svg/SVGTRefElement.cpp: Removed.
3283         * ksvg2/svg/SVGTRefElement.h: Removed.
3284         * ksvg2/svg/SVGTRefElement.idl: Removed.
3285         * ksvg2/svg/SVGTSpanElement.cpp: Removed.
3286         * ksvg2/svg/SVGTSpanElement.h: Removed.
3287         * ksvg2/svg/SVGTSpanElement.idl: Removed.
3288         * ksvg2/svg/SVGTests.cpp: Removed.
3289         * ksvg2/svg/SVGTests.h: Removed.
3290         * ksvg2/svg/SVGTests.idl: Removed.
3291         * ksvg2/svg/SVGTextContentElement.cpp: Removed.
3292         * ksvg2/svg/SVGTextContentElement.h: Removed.
3293         * ksvg2/svg/SVGTextContentElement.idl: Removed.
3294         * ksvg2/svg/SVGTextElement.cpp: Removed.
3295         * ksvg2/svg/SVGTextElement.h: Removed.
3296         * ksvg2/svg/SVGTextElement.idl: Removed.
3297         * ksvg2/svg/SVGTextPathElement.cpp: Removed.
3298         * ksvg2/svg/SVGTextPathElement.h: Removed.
3299         * ksvg2/svg/SVGTextPathElement.idl: Removed.
3300         * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
3301         * ksvg2/svg/SVGTextPositioningElement.h: Removed.
3302         * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
3303         * ksvg2/svg/SVGTitleElement.cpp: Removed.
3304         * ksvg2/svg/SVGTitleElement.h: Removed.
3305         * ksvg2/svg/SVGTitleElement.idl: Removed.
3306         * ksvg2/svg/SVGTransform.cpp: Removed.
3307         * ksvg2/svg/SVGTransform.h: Removed.
3308         * ksvg2/svg/SVGTransform.idl: Removed.
3309         * ksvg2/svg/SVGTransformDistance.cpp: Removed.
3310         * ksvg2/svg/SVGTransformDistance.h: Removed.
3311         * ksvg2/svg/SVGTransformList.cpp: Removed.
3312         * ksvg2/svg/SVGTransformList.h: Removed.
3313         * ksvg2/svg/SVGTransformList.idl: Removed.
3314         * ksvg2/svg/SVGTransformable.cpp: Removed.
3315         * ksvg2/svg/SVGTransformable.h: Removed.
3316         * ksvg2/svg/SVGTransformable.idl: Removed.
3317         * ksvg2/svg/SVGURIReference.cpp: Removed.
3318         * ksvg2/svg/SVGURIReference.h: Removed.
3319         * ksvg2/svg/SVGURIReference.idl: Removed.
3320         * ksvg2/svg/SVGUnitTypes.h: Removed.
3321         * ksvg2/svg/SVGUnitTypes.idl: Removed.
3322         * ksvg2/svg/SVGUseElement.cpp: Removed.
3323         * ksvg2/svg/SVGUseElement.h: Removed.
3324         * ksvg2/svg/SVGUseElement.idl: Removed.
3325         * ksvg2/svg/SVGViewElement.cpp: Removed.
3326         * ksvg2/svg/SVGViewElement.h: Removed.
3327         * ksvg2/svg/SVGViewElement.idl: Removed.
3328         * ksvg2/svg/SVGViewSpec.cpp: Removed.
3329         * ksvg2/svg/SVGViewSpec.h: Removed.
3330         * ksvg2/svg/SVGViewSpec.idl: Removed.
3331         * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
3332         * ksvg2/svg/SVGZoomAndPan.h: Removed.
3333         * ksvg2/svg/SVGZoomAndPan.idl: Removed.
3334         * ksvg2/svg/svgattrs.in: Removed.
3335         * ksvg2/svg/svgtags.in: Removed.
3336         * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
3337         * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
3338         * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
3339         * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
3340         * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
3341         * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
3342         * svg: Copied from ksvg2/svg.
3343         * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
3344         * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
3345         * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
3346         * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
3347         * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
3348         * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
3349         * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
3350         * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
3351         * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
3352         * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
3353         * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
3354         * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
3355
3356 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
3357
3358         wx build fix. Add WebCore/platform/graphics/wx to includes.
3359
3360         * webcore-wx.bkl:
3361
3362 2007-11-30  Brady Eidson  <beidson@apple.com>
3363
3364         Reviewed by Geoff
3365
3366         Further hookup of Database API
3367         With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
3368         result in a didModifyDatabase notification when the transaction is successfully committed
3369
3370         * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
3371         (WebCore::DatabaseAuthorizer::reset):
3372         (WebCore::DatabaseAuthorizer::createTable):
3373         (WebCore::DatabaseAuthorizer::allowAlterTable):
3374         (WebCore::DatabaseAuthorizer::createIndex):
3375         (WebCore::DatabaseAuthorizer::createTrigger):
3376         (WebCore::DatabaseAuthorizer::createVTable):
3377         (WebCore::DatabaseAuthorizer::allowInsert):
3378         (WebCore::DatabaseAuthorizer::allowUpdate):
3379         * storage/DatabaseAuthorizer.h:
3380         (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
3381
3382         * storage/DatabaseTracker.cpp:
3383         (WebCore::DatabaseTracker::notifyDatabaseChanged): Added.  Allow external entities (SQLTransaction) to be able
3384           to request a didModifyDatabase notification to the delegate
3385         * storage/DatabaseTracker.h:
3386
3387         * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of 
3388           a transaction resulted in a change to the database.
3389         (WebCore::SQLTransaction::SQLTransaction):
3390         (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
3391           statement occurred
3392         (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
3393         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
3394         * storage/SQLTransaction.h:
3395
3396 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
3397
3398         Rubber stamped by David.
3399
3400         Next round of moves - platform reorganization.
3401         Move text/font/glyph related files from the individual port directories
3402         into platform/text/<port> or platform/graphics/<port>.
3403
3404         * DerivedSources.make:
3405         * WebCore.pro:
3406         * WebCore.vcproj/WebCore.vcproj:
3407         * WebCore.xcodeproj/project.pbxproj:
3408         * platform/cf/StringCF.cpp: Removed.
3409         * platform/cf/StringImplCF.cpp: Removed.
3410         * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
3411         * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
3412         * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
3413         * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
3414         * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
3415         * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
3416         * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
3417         * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
3418         * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
3419         * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
3420         * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
3421         * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
3422         * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
3423         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
3424         * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
3425         * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
3426         * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
3427         * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
3428         * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
3429         * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
3430         * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
3431         * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
3432         * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
3433         * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
3434         * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
3435         * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
3436         * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
3437         * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
3438         * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
3439         * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
3440         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
3441         * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
3442         * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
3443         * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
3444         * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
3445         * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
3446         * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
3447         * platform/gtk/FontCacheGtk.cpp: Removed.
3448         * platform/gtk/FontDataGtk.cpp: Removed.
3449         * platform/gtk/FontGtk.cpp: Removed.
3450         * platform/gtk/FontPlatformData.h: Removed.
3451         * platform/gtk/FontPlatformDataGtk.cpp: Removed.
3452         * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
3453         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
3454         * platform/mac/FontCacheMac.mm: Removed.
3455         * platform/mac/FontCustomPlatformData.cpp: Removed.
3456         * platform/mac/FontCustomPlatformData.h: Removed.
3457         * platform/mac/FontDataMac.mm: Removed.
3458         * platform/mac/FontMac.mm: Removed.
3459         * platform/mac/FontPlatformData.h: Removed.
3460         * platform/mac/FontPlatformDataMac.mm: Removed.
3461         * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
3462         * platform/mac/ShapeArabic.c: Removed.
3463         * platform/mac/ShapeArabic.h: Removed.
3464         * platform/mac/StringImplMac.mm: Removed.
3465         * platform/mac/StringMac.mm: Removed.
3466         * platform/mac/TextBoundaries.mm: Removed.
3467         * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
3468         * platform/mac/TextCodecMac.cpp: Removed.
3469         * platform/mac/TextCodecMac.h: Removed.
3470         * platform/mac/character-sets.txt: Removed.
3471         * platform/mac/mac-encodings.txt: Removed.
3472         * platform/mac/make-charset-table.pl: Removed.
3473         * platform/qt/FontCacheQt.cpp: Removed.
3474         * platform/qt/FontCustomPlatformData.cpp: Removed.
3475         * platform/qt/FontCustomPlatformData.h: Removed.
3476         * platform/qt/FontDataQt.cpp: Removed.
3477         * platform/qt/FontPlatformData.h: Removed.
3478         * platform/qt/FontQt.cpp: Removed.
3479         * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
3480         * platform/qt/StringQt.cpp: Removed.
3481         * platform/qt/TextBoundaries.cpp: Removed.
3482         * platform/qt/TextBreakIteratorQt.cpp: Removed.
3483         * platform/qt/TextCodecQt.cpp: Removed.
3484         * platform/qt/TextCodecQt.h: Removed.
3485         * platform/symbian/StringImplSymbian.cpp: Removed.
3486         * platform/symbian/StringSymbian.cpp: Removed.
3487         * platform/text/cf: Added.
3488         * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
3489         * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
3490         * platform/text/gtk: Added.
3491         * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
3492         * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
3493         * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
3494         * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
3495         * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
3496 &nbs