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