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