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