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