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