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