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