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