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