<rdar://problem/5119360> ER - Seed: Google results do not have AXHeading information
[WebKit-https.git] / WebCore / ChangeLog
1 2008-03-04  Chris Fleizach  <cfleizach@apple.com>
2
3         Reviewed by Darin Adler.
4
5         - fix <rdar://problem/5119360> ER - Seed: Google results do not have AXHeading information
6
7         * page/mac/WebCoreAXObject.mm:
8         (headingLevel):
9         (-[WebCoreAXObject accessibilityIsIgnored]):
10
11 2008-03-04  Sam Weinig  <sam@webkit.org>
12
13         GTK+ build fix.
14
15         * GNUmakefile.am:
16
17 2008-03-04  Sam Weinig  <sam@webkit.org>
18
19         Reviewed by Darin Adler.
20
21         Remame ImageConstructorImp to JSImageConstructor and move it into its
22         own file.
23
24         * GNUmakefile.am:
25         * WebCore.pro:
26         * WebCore.vcproj/WebCore.vcproj:
27         * WebCore.xcodeproj/project.pbxproj:
28         * WebCoreSources.bkl:
29         * bindings/js/JSImageConstructor.cpp: Copied from bindings/js/kjs_html.cpp.
30         (WebCore::JSImageConstructor::JSImageConstructor):
31         (WebCore::JSImageConstructor::construct):
32         * bindings/js/JSImageConstructor.h: Copied from bindings/js/kjs_html.h.
33         * bindings/js/kjs_html.cpp:
34         (WebCore::getRuntimeObject): Make this function static since it is only used
35         in this file.
36         * bindings/js/kjs_html.h:
37         * bindings/js/kjs_window.cpp:
38         (WebCore::JSDOMWindowBase::getValueProperty):
39
40 2008-03-04  Adam Roben  <aroben@apple.com>
41
42         Fix an uninitialized value warning in CodeGeneratorJS.pm
43
44         * bindings/scripts/CodeGeneratorJS.pm: Remove reference to
45         non-existent $maybeOkParam (this was removed in r30753).
46
47 2008-03-04  Sam Weinig  <sam@webkit.org>
48
49         Reviewed by Darin Adler.
50
51         Remove kjs_dom.{h,cpp}.
52
53         - Removed custom toAttr, which took a boolean ok, and teach CodeGeneratorJS.pm
54           to us a null return value as an indication of failure. (This new logic is used
55           for toVoidCallback as well.)
56         - Move getRuntimeObject to kjs_html where a bunch of other runtime object related
57           functions currently live.
58         - Move checkNodeSecurity to kjs_binding, where other frame security functions 
59           currently live.
60         - Remove getNodeConstructor.  It had no implementation.
61
62         * GNUmakefile.am:
63         * WebCore.pro:
64         * WebCore.vcproj/WebCore.vcproj:
65         * WebCore.xcodeproj/project.pbxproj:
66         * WebCoreSources.bkl:
67         * bindings/js/JSAttrCustom.cpp:
68         * bindings/js/JSCustomVoidCallback.cpp:
69         (WebCore::toVoidCallback):
70         * bindings/js/JSCustomVoidCallback.h:
71         * bindings/js/JSDatabaseCustom.cpp:
72         (WebCore::JSDatabase::changeVersion):
73         (WebCore::JSDatabase::transaction):
74         * bindings/js/JSElementCustom.cpp:
75         (WebCore::JSElement::setAttributeNode):
76         (WebCore::JSElement::setAttributeNodeNS):
77         * bindings/js/JSEventTargetBase.cpp:
78         (WebCore::toJS):
79         * bindings/js/JSEventTargetBase.h:
80         * bindings/js/JSHTMLAppletElementCustom.cpp:
81         * bindings/js/JSHTMLElementCustom.cpp:
82         * bindings/js/JSHTMLEmbedElementCustom.cpp:
83         * bindings/js/JSHTMLFormElementCustom.cpp:
84         * bindings/js/JSHTMLFrameElementCustom.cpp:
85         * bindings/js/JSHTMLIFrameElementCustom.cpp:
86         * bindings/js/JSHTMLObjectElementCustom.cpp:
87         * bindings/js/JSNamedNodeMapCustom.cpp:
88         * bindings/js/JSNamedNodesCollection.cpp:
89         * bindings/js/JSNodeFilterCustom.cpp:
90         * bindings/js/JSXSLTProcessor.cpp:
91         * bindings/js/kjs_binding.cpp:
92         (WebCore::checkNodeSecurity):
93         * bindings/js/kjs_binding.h:
94         * bindings/js/kjs_css.cpp:
95         * bindings/js/kjs_dom.cpp: Removed.
96         * bindings/js/kjs_dom.h: Removed.
97         * bindings/js/kjs_events.cpp:
98         * bindings/js/kjs_html.cpp:
99         (WebCore::getRuntimeObject):
100         * bindings/js/kjs_html.h:
101         * bindings/js/kjs_window.cpp:
102         * bindings/scripts/CodeGeneratorJS.pm:
103         * dom/Attr.idl:
104         * html/HTMLPlugInElement.cpp:
105         * page/InspectorController.cpp:
106
107 2008-03-04  Adam Roben  <aroben@apple.com>
108
109         Win/Qt/GTK+/wx build fix after r30740
110
111         * editing/Editor.cpp: Added missing #include.
112         * page/qt/FrameQt.cpp: Removed Frame::dashboardRegionsChanged.
113         * page/win/FrameWin.cpp: Ditto.
114         * platform/wx/TemporaryLinkStubs.cpp: Ditto.
115
116 2008-03-04  Alp Toker  <alp@atoker.com>
117
118         GTK+ build fix for breakage introduced in r30740.
119
120         Remove Frame::dashboardRegionsChanged(). There's now a default
121         implementation at ChromeClient::dashboardRegionsChanged().
122
123         * page/gtk/FrameGtk.cpp:
124
125 2008-03-04  Alp Toker  <alp@atoker.com>
126
127         GTK+ build fix suggested by aroben. Remove an unused Mac-specific
128         included introduced in r30740.
129
130         * page/ChromeClient.h:
131
132 2008-03-04  Dan Bernstein  <mitz@apple.com>
133
134         Reviewed by Sam Weinig.
135
136         - fix <rdar://problem/5622336> Burmese text does not render on http://www.myanmarbible.com/bible/Judson/html/index.html
137
138         Test: platform/win/fast/text/uniscribe-missing-glyph.html
139
140         Note that default installations of Windows do not have Myanmar fonts.
141         What this patch does is ensure that the Myanmar and other complex
142         scripts are rendered as missing glyphs rather than not rendered at all.
143         The particular page in the bug measures the relative widths of two
144         rendered strings and, if they are rendered as missing glyphs, detects
145         that a Myanmar fonts is not available and substitutes the text with
146         images. By not rendering (and measuring) missing glyphs, WebKit was
147         throwing the page's detection code off.
148
149         * platform/graphics/win/UniscribeController.cpp:
150         (WebCore::UniscribeController::shape): Removed an early return in case
151         shaping resulted in missing glyphs. This is now expected if font
152         fallback failed to produce a font containing glyphs for the character.
153         Also changed two resize()s to shrink()s.
154
155 2008-03-04  Darin Adler  <darin@apple.com>
156
157         Reviewed by Adam.
158
159         - remove WebCoreFrameBridge reapplyStyles method
160
161         * WebCore.base.exp: Added exports.
162         * page/mac/WebCoreFrameBridge.h: Removed WebCoreDeviceType and
163         reapplyStylesForDeviceType: method.
164         * page/mac/WebCoreFrameBridge.mm: Ditto.
165
166 2008-03-04  Darin Adler  <darin@apple.com>
167
168         Reviewed by Adam.
169
170         - eliminate WebCoreFrameBridge createFrameViewWithNSView
171
172         * WebCore.base.exp: Added some more exports.
173         * page/mac/WebCoreFrameBridge.h: Deleted createFrameViewWithNSView.
174         * page/mac/WebCoreFrameBridge.mm: Ditto.
175
176 2008-03-04  Darin Adler  <darin@apple.com>
177
178         Reviewed by Adam.
179
180         - removed WebCoreFrameBridge scrollOverflowInDirection
181
182         * WebCore.base.exp: Export function needed by WebKit.
183         * page/mac/WebCoreFrameBridge.h: Removed WebScrollDirection, WebScrollGranularity,
184         and scrollOverflowInDirection.
185         * page/mac/WebCoreFrameBridge.mm: Removed method.
186
187 2008-03-04  Darin Adler  <darin@apple.com>
188
189         Reviewed by Adam.
190
191         - remove WebCoreFrameBridge installInFrame: method
192
193         * WebCore.base.exp: Export a few symbols.
194         * WebCore.xcodeproj/project.pbxproj: Export a few files.
195         * page/mac/WebCoreFrameBridge.h: Remove installInFrame:.
196         * page/mac/WebCoreFrameBridge.mm: Ditto.
197
198 2008-03-04  Darin Adler  <darin@apple.com>
199
200         Reviewed by Adam.
201
202         - remove WebCoreFrameBridge window method
203
204         * page/mac/EventHandlerMac.mm:
205         (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking): Get the window by calling
206         window on the NSView instead of using the bridge. The WebKit side wasn't doing anything
207         special, so a call to -[NSView window] is fine.
208
209         * page/mac/WebCoreFrameBridge.h: Removed the window method.
210
211 2008-03-04  Darin Adler  <darin@apple.com>
212
213         Reviewed by Adam.
214
215         - remove -[WebCoreFrameBridge dashboardRegionsChanged:]
216
217         * WebCore.base.exp: Updated.
218         * page/Chrome.cpp:
219         (WebCore::ChromeClient::dashboardRegionsChanged): Added.
220         * page/ChromeClient.h: Added virtual function for dashboardRegionsChanged.
221         * page/Frame.h: Removed dashboardRegionsChanged function.
222         * page/FrameView.cpp:
223         (WebCore::FrameView::updateDashboardRegions): Changed to call dashboardRegionsChanged
224         on ChromeClient and to only call it when the regions actually changed.
225         * page/mac/FrameMac.mm: Removed dashboardRegionsChanged function.
226         * page/mac/WebCoreFrameBridge.h: Removed dashboardRegionsChanged: method.
227
228 2008-03-04  Darin Adler  <darin@apple.com>
229
230         Reviewed by Adam.
231
232         - remove WebCoreFrameBridge issuePasteComand method
233
234         * editing/Editor.cpp:
235         (WebCore::Editor::paste): Moved the Mac-specific part of this to EditorMac.
236         * editing/mac/EditorMac.mm:
237         (WebCore::Editor::paste): Added. Calls paste: on the document view (normally a
238         WebHTMLView). We should get rid of this eventually.
239         * page/Frame.h: Removed issuePasteCommand.
240         * page/mac/FrameMac.mm: Ditto.
241         * page/mac/WebCoreFrameBridge.h: Ditto.
242
243 2008-03-04  Alexey Proskuryakov  <ap@webkit.org>
244
245         Suggested by Darin, rubber-stamped by Mark.
246
247         http://bugs.webkit.org/show_bug.cgi?id=17569
248         REGRESSION (r30571): Buzzword.com doesn't load
249
250         Rolling out r30571, as determining what is wrong with it proved tricky.
251
252         * loader/FrameLoader.cpp:
253         (WebCore::FrameLoader::load):
254         (WebCore::FrameLoader::tokenizerProcessedData):
255         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
256
257 2008-03-04  Sam Weinig  <sam@webkit.org>
258
259         Build fix.
260
261         * bindings/js/kjs_events.cpp:
262
263 2008-03-03  Sam Weinig  <sam@webkit.org>
264
265         Reviewed by Mark Rowe.
266
267         Move JSClipboard into its own file.
268
269         * DerivedSources.make:
270         * GNUmakefile.am:
271         * WebCore.pro:
272         * WebCore.vcproj/WebCore.vcproj:
273         * WebCore.xcodeproj/project.pbxproj:
274         * WebCoreSources.bkl:
275         * bindings/js/JSAttrCustom.cpp:
276         * bindings/js/JSClipboardCustom.cpp: Added.
277         (WebCore::JSClipboard::types):
278         (WebCore::JSClipboard::clearData):
279         (WebCore::JSClipboard::getData):
280         (WebCore::JSClipboard::setData):
281         (WebCore::JSClipboard::setDragImage):
282         * bindings/js/JSElementCustom.cpp:
283         * bindings/js/JSEventCustom.cpp:
284         * bindings/js/JSHTMLFrameElementCustom.cpp:
285         * bindings/js/JSHTMLIFrameElementCustom.cpp:
286         * bindings/js/kjs_events.cpp:
287         * bindings/js/kjs_events.h:
288         * bindings/js/kjs_window.cpp:
289         * bindings/scripts/CodeGeneratorJS.pm:
290         * dom/Clipboard.cpp:
291         (WebCore::Clipboard::setDropEffect):
292         (WebCore::Clipboard::setEffectAllowed):
293         * dom/Clipboard.idl: Added.
294
295 2008-03-03  Sam Weinig  <sam@webkit.org>
296
297         Windows build-fix.
298
299         * page/Chrome.cpp:
300         * plugins/win/PluginViewWin.cpp:
301
302 2008-03-03  Sam Weinig  <sam@webkit.org>
303
304         Reviewed by Darin Adler.
305
306         Cleanup and plumbing in preparation for the great Window split.
307
308         - Rename KJS::Window to WebCore::JSDOMWindowBase.
309         - Remove KJS::Window::retrieve() and KJS::Window::retrieveWindow() and replace
310           with the new toJSDOMWindow().
311         - Remove KJS::Window::retrieveActive() and replace with explicit call to 
312           exec->dynamicGlobalObject() and toJSDOMWindow().
313
314         * bindings/js/JSCustomVoidCallback.cpp:
315         (WebCore::toVoidCallback):.
316         * bindings/js/JSCustomXPathNSResolver.cpp:
317         (WebCore::JSCustomXPathNSResolver::create):
318         * bindings/js/JSDatabaseCustom.cpp:
319         (WebCore::JSDatabase::changeVersion):
320         (WebCore::JSDatabase::transaction):
321         * bindings/js/JSDocumentCustom.cpp:
322         (WebCore::JSDocument::location):
323         (WebCore::toJS):
324         * bindings/js/JSEventTargetBase.cpp:
325         (WebCore::jsEventTargetAddEventListener):
326         (WebCore::jsEventTargetRemoveEventListener):
327         * bindings/js/JSEventTargetNode.cpp:
328         (WebCore::JSEventTargetNode::setListener):
329         * bindings/js/JSHTMLDocumentCustom.cpp:
330         (WebCore::JSHTMLDocument::nameGetter):
331         (WebCore::JSHTMLDocument::open):
332         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
333         (WebCore::JSHTMLFrameSetElement::nameGetter):
334         * bindings/js/JSLocation.cpp:
335         (WebCore::JSLocation::put):
336         (WebCore::jsLocationProtoFuncReplace):
337         (WebCore::jsLocationProtoFuncReload):
338         (WebCore::jsLocationProtoFuncAssign):
339         * bindings/js/JSLocation.h:
340         * bindings/js/JSSQLTransactionCustom.cpp:
341         (WebCore::JSSQLTransaction::executeSql):
342         * bindings/js/JSSVGLazyEventListener.cpp:
343         (WebCore::JSSVGLazyEventListener::JSSVGLazyEventListener):
344         (WebCore::JSSVGLazyEventListener::eventParameterName):
345         * bindings/js/JSSVGLazyEventListener.h:
346         * bindings/js/JSXMLHttpRequest.cpp:
347         (WebCore::JSXMLHttpRequest::putValueProperty):
348         (WebCore::jsXMLHttpRequestPrototypeFunctionOpen):
349         (WebCore::jsXMLHttpRequestPrototypeFunctionAddEventListener):
350         (WebCore::jsXMLHttpRequestPrototypeFunctionRemoveEventListener):
351         * bindings/js/ScheduledAction.cpp:
352         (WebCore::ScheduledAction::execute):
353         * bindings/js/ScheduledAction.h:
354         * bindings/js/kjs_binding.cpp:
355         (WebCore::allowsAccessFromFrame):
356         (WebCore::printErrorMessageForFrame):
357         * bindings/js/kjs_events.cpp:
358         (WebCore::JSAbstractEventListener::handleEvent):
359         (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener):
360         (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener):
361         (WebCore::JSUnprotectedEventListener::windowObj):
362         (WebCore::JSEventListener::JSEventListener):
363         (WebCore::JSEventListener::~JSEventListener):
364         (WebCore::JSEventListener::windowObj):
365         (WebCore::JSLazyEventListener::JSLazyEventListener):
366         (WebCore::JSLazyEventListener::parseCode):
367         * bindings/js/kjs_events.h:
368         * bindings/js/kjs_navigator.cpp:
369         (WebCore::MimeType::getValueProperty):
370         * bindings/js/kjs_proxy.cpp:
371         (WebCore::KJSProxy::evaluate):
372         (WebCore::KJSProxy::createHTMLEventHandler):
373         (WebCore::KJSProxy::createSVGEventHandler):
374         * bindings/js/kjs_window.cpp:
375         (WebCore::JSDOMWindowBasePrivate::JSDOMWindowBasePrivate):
376         (WebCore::DOMWindowTimer::DOMWindowTimer):
377         (WebCore::DOMWindowTimer::action):
378         (WebCore::DOMWindowTimer::takeAction):
379         (WebCore::):
380         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
381         (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
382         (WebCore::JSDOMWindowBase::location):
383         (WebCore::JSDOMWindowBase::mark):
384         (WebCore::allowPopUp):
385         (WebCore::createWindow):
386         (WebCore::showModalDialog):
387         (WebCore::JSDOMWindowBase::getValueProperty):
388         (WebCore::JSDOMWindowBase::childFrameGetter):
389         (WebCore::JSDOMWindowBase::indexGetter):
390         (WebCore::JSDOMWindowBase::namedItemGetter):
391         (WebCore::JSDOMWindowBase::getOwnPropertySlot):
392         (WebCore::JSDOMWindowBase::put):
393         (WebCore::JSDOMWindowBase::allowsAccessFrom):
394         (WebCore::JSDOMWindowBase::allowsAccessFromNoErrorMessage):
395         (WebCore::JSDOMWindowBase::allowsAccessFromPrivate):
396         (WebCore::JSDOMWindowBase::crossDomainAccessErrorMessage):
397         (WebCore::JSDOMWindowBase::printErrorMessage):
398         (WebCore::JSDOMWindowBase::globalExec):
399         (WebCore::JSDOMWindowBase::shouldInterruptScript):
400         (WebCore::JSDOMWindowBase::setListener):
401         (WebCore::JSDOMWindowBase::getListener):
402         (WebCore::JSDOMWindowBase::findJSEventListener):
403         (WebCore::JSDOMWindowBase::findOrCreateJSEventListener):
404         (WebCore::JSDOMWindowBase::findJSUnprotectedEventListener):
405         (WebCore::JSDOMWindowBase::findOrCreateJSUnprotectedEventListener):
406         (WebCore::JSDOMWindowBase::clearHelperObjectProperties):
407         (WebCore::JSDOMWindowBase::clear):
408         (WebCore::JSDOMWindowBase::setCurrentEvent):
409         (WebCore::JSDOMWindowBase::currentEvent):
410         (WebCore::windowProtoFuncAToB):
411         (WebCore::windowProtoFuncBToA):
412         (WebCore::windowProtoFuncOpen):
413         (WebCore::windowProtoFuncSetTimeout):
414         (WebCore::windowProtoFuncClearTimeout):
415         (WebCore::windowProtoFuncSetInterval):
416         (WebCore::windowProtoFuncAddEventListener):
417         (WebCore::windowProtoFuncRemoveEventListener):
418         (WebCore::windowProtoFuncShowModalDialog):
419         (WebCore::windowProtoFuncNotImplemented):
420         (WebCore::JSDOMWindowBase::setReturnValueSlot):
421         (WebCore::JSDOMWindowBase::clearAllTimeouts):
422         (WebCore::JSDOMWindowBase::installTimeout):
423         (WebCore::JSDOMWindowBase::pauseTimeouts):
424         (WebCore::JSDOMWindowBase::resumeTimeouts):
425         (WebCore::JSDOMWindowBase::clearTimeout):
426         (WebCore::JSDOMWindowBase::timerFired):
427         (WebCore::JSDOMWindowBase::disconnectFrame):
428         (WebCore::JSDOMWindowBase::jsEventListeners):
429         (WebCore::JSDOMWindowBase::jsHTMLEventListeners):
430         (WebCore::JSDOMWindowBase::jsUnprotectedEventListeners):
431         (WebCore::JSDOMWindowBase::jsUnprotectedHTMLEventListeners):
432         (WebCore::toJS):
433         (WebCore::toJSDOMWindow):
434         (WebCore::toJSDOMWindow):
435         * bindings/js/kjs_window.h:
436         (WebCore::JSDOMWindowBase::impl):
437         (WebCore::JSDOMWindowBase::classInfo):
438         (WebCore::JSDOMWindowBase::):
439         * bindings/objc/DOMUtility.mm:
440         (KJS::createDOMWrapper):
441         * bindings/scripts/CodeGeneratorJS.pm:
442         * history/CachedPage.cpp:
443         (WebCore::CachedPage::CachedPage):
444         (WebCore::CachedPage::restore):
445         * page/Chrome.cpp:
446         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
447         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
448         * page/DOMWindow.idl:
449         * page/Frame.cpp:
450         (WebCore::Frame::~Frame):
451         (WebCore::Frame::windowScriptNPObject):
452         (WebCore::Frame::pageDestroyed):
453         * page/InspectorController.cpp:
454         (WebCore::inspectedWindow):
455         * page/mac/FrameMac.mm:
456         (WebCore::Frame::windowScriptObject):
457         * page/mac/WebCoreFrameBridge.mm:
458         (updateRenderingForBindings):
459         * platform/SecurityOrigin.cpp:
460         (WebCore::SecurityOrigin::canAccess):
461
462 2008-03-03  Kevin Ollivier  <kevino@theolliviers.com>
463
464         wx build fixes after recent Frame-related changes.
465
466         * platform/wx/PasteboardWx.cpp:
467         * platform/wx/TemporaryLinkStubs.cpp:
468
469 2008-03-03  Dan Bernstein  <mitz@apple.com>
470
471         Reviewed by Darin Adler.
472
473         - make :first-letter apply to the first letter in normal flow, skipping
474           floats and positioned objects
475
476         Test: fast/css/first-letter-skip-out-of-flow.html
477
478         * rendering/RenderBlock.cpp:
479         (WebCore::RenderBlock::updateFirstLetter):
480
481 2008-03-03  Ada Chan  <adachan@apple.com>
482
483         Fix build.
484
485         * plugins/win/PluginViewWin.cpp:
486
487 2008-03-03  Mark Rowe  <mrowe@apple.com>
488
489         Reviewed by Dan Bernstein.
490
491         Fix http://bugs.webkit.org/show_bug.cgi?id=17313
492         Bug 17313: querySelectorAll() causing crashes when called via dojo.query() wrapper
493
494         Node::querySelector and SelectorNodeList were not sufficiently initializing the CSSStyleSelector
495         before using it to resolve styles, which lead to it having a stale m_style member in some situations.
496         This stale m_style member resulted in a wild store that would write over whatever object now resided
497         at the location m_style pointed to.
498
499         Test: fast/dom/SelectorAPI/bug-17313.html
500
501         * dom/Node.cpp:
502         (WebCore::Node::querySelector): Call initForStyleResolve to further initialize the CSSStyleSelector.
503         * dom/SelectorNodeList.cpp:
504         (WebCore::SelectorNodeList::SelectorNodeList): Ditto.
505
506 2008-03-03  Anders Carlsson  <andersca@apple.com>
507
508         Reviewed by Darin and Sam.
509
510         Include fixes, in preparation of using the headers in WebCore/bridge.
511         
512         * bindings/js/kjs_binding.h:
513         * bindings/js/kjs_dom.cpp:
514         * bindings/objc/DOMInternal.mm:
515         * bindings/objc/DOMUtility.mm:
516         * bindings/objc/WebScriptObject.mm:
517         * bindings/objc/WebScriptObjectPrivate.h:
518         * bridge/objc/objc_class.h:
519         * bridge/objc/objc_instance.h:
520         * bridge/objc/objc_runtime.h:
521         * bridge/objc/objc_utility.h:
522         * bridge/runtime.h:
523         * bridge/runtime_object.h:
524         * bridge/runtime_root.h:
525         * html/HTMLAppletElement.cpp:
526         * html/HTMLAppletElement.h:
527         * html/HTMLEmbedElement.cpp:
528         * html/HTMLEmbedElement.h:
529         * html/HTMLObjectElement.cpp:
530         * html/HTMLPlugInElement.cpp:
531         * html/HTMLPlugInElement.h:
532         * page/mac/FrameMac.mm:
533         * page/mac/WebCoreFrameBridge.h:
534         * page/mac/WebCoreFrameBridge.mm:
535         * page/mac/WebCoreScriptDebugger.mm:
536
537 2008-03-03  David Hyatt  <hyatt@apple.com>
538
539         Full page zoom plumbing.  Add a notion of whether or not a zoom is text only or a full zoom to the
540         Frame.  setTextSizeMultiplier does a text only zoom.
541
542         Reviewed by Tim H.
543
544         * page/Frame.cpp:
545         (WebCore::Frame::zoomFactor):
546         (WebCore::Frame::isZoomFactorTextOnly):
547         (WebCore::Frame::setZoomFactor):
548         (WebCore::FramePrivate::FramePrivate):
549         * page/Frame.h:
550         * page/FramePrivate.h:
551         * page/mac/WebCoreFrameBridge.mm:
552         (-[WebCoreFrameBridge setTextSizeMultiplier:]):
553         * svg/SVGSVGElement.cpp:
554         (WebCore::SVGSVGElement::setCurrentScale):
555
556 2008-03-03  David Hyatt  <hyatt@apple.com>
557
558         Fix for <rdar://problem/5776161> REGRESSION: Google Docs Spreadsheet crash
559
560         This is also http://bugs.webkit.org/show_bug.cgi?id=17543, fixed table layout corrupts heap.
561
562         Make sure not to access position -1 of the size 0 vectors.
563
564         Reviewed by ggaren
565
566         * rendering/FixedTableLayout.cpp:
567         (WebCore::FixedTableLayout::layout):
568
569 2008-03-03  David D. Kilzer  <ddkilzer@webkit.org>
570
571         Dynamically inserting CSS rule with @media query fails with DOM Exception 12
572         <http://bugs.webkit.org/show_bug.cgi?id=15986>
573
574         Reviewed by Darin.
575
576         Allow any valid rule (@font-face, @import, @media, @page or style) to be
577         parsed when using CSSStyleSheet.insertRule().  Previously only import and
578         style rules were allowed.  Note that @page rules always throw an exception
579         because they're not implemented yet, so no test case was added for them.
580
581         Tests: fast/css/insertRule-font-face.html
582                fast/css/insertRule-media.html
583
584         * css/CSSGrammar.y: Extracted 'valid_rule' out of 'rule'.  Renamed
585         'ruleset_or_import' to 'valid_rule_or_import' and changed its definition.
586
587 2008-03-03  Anders Carlsson  <andersca@apple.com>
588
589         Reviewed by Sam.
590
591         Copy JSC bindings directory over to WebCore/bridge.
592
593         * bridge: Copied from ../JavaScriptCore/bindings.
594
595 2008-03-03  Dan Bernstein  <mitz@apple.com>
596
597         Reviewed by Darin Adler.
598
599         - remove CSSMutableStyleDeclaration::setChanged()'s change type
600           parameter
601
602         * css/CSSMutableStyleDeclaration.cpp:
603         (WebCore::CSSMutableStyleDeclaration::setChanged): Removed the change
604         type parameter and made this function determine the correct change type
605         based on whether this is an inline style declaration.
606         (WebCore::CSSMutableStyleDeclaration::setProperty):
607         * css/CSSMutableStyleDeclaration.h:
608         (WebCore::CSSMutableStyleDeclaration::clear): Removed this unused
609         method.
610         (WebCore::CSSMutableStyleDeclaration::setChanged): Made private.
611
612 2008-03-03  Darin Adler  <darin@apple.com>
613
614         Reviewed by Adam.
615
616         - some "cleanup" on the path to removing WebCoreFrameBridge
617
618         * WebCore.base.exp: Exported some stuff we either already use or
619         I am about to use in an upcoming patch.
620
621         * WebCore.xcodeproj/project.pbxproj: Made FileChooser.h private rather
622         than project, for future use in WebKit.
623
624         * bindings/objc/WebScriptObject.mm: Removed some dead code.
625
626         * dom/ContainerNode.cpp: Added a now-needed or soon-to-be-needed include.
627         * editing/Editor.cpp: Ditto.
628
629         * editing/Editor.h: Removed many unneeded declarations and includes.
630         Removed the unused userVisibleString function.
631
632         * editing/EditorCommand.cpp:
633         (WebCore::executeYank): Added parameter for triggeringEvent, which no
634         longer has a default value.
635         (WebCore::executeYankAndSelect): Ditto.
636
637         * editing/mac/EditorMac.mm: Removed userVisibleString.
638
639         * page/mac/EventHandlerMac.mm:
640         (WebCore::isKeyboardOptionTab): Tweaked formattin.
641
642         * page/mac/WebCoreFrameBridge.mm:
643         (-[WebCoreFrameBridge dragSourceMovedTo:]): Get window from -[NSView window]
644         rather than from the bridge. There's no special value in the bridge's window
645         method and we can use NSView directly.
646         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]): Ditto.
647
648         * platform/graphics/mac/ImageMac.mm:
649         (WebCore::Image::loadPlatformResource): Use a new WebCoreBundleFinder class to
650         find the bundle rather than using WebCoreFrameBridge.
651
652         * platform/mac/ClipboardMac.mm: Added a now-needed or soon-to-be-needed include.
653         * platform/mac/PasteboardMac.mm: Ditto.
654
655         * rendering/RenderObject.h:
656         (WebCore::DashboardRegionValue::operator==): Fixed mistake where this wasn't
657         comparing the clip rectangle.
658         (WebCore::DashboardRegionValue::operator!=): Added. Needed by my future work.
659
660 2008-03-03  Oliver Hunt  <oliver@apple.com>
661
662         Reviewed by Mark Rowe.
663
664         Bug 17620: getImageData lies
665         http://bugs.webkit.org/show_bug.cgi?id=17620
666
667         Correct logic to actually iterate over the source row
668
669         * platform/graphics/cg/ImageBufferCG.cpp:
670         (WebCore::ImageBuffer::getImageData):
671
672 2008-03-03  Oliver Hunt  <oliver@apple.com>
673
674         Reviewed by Mark Rowe.
675
676         Correct incorrect assertion
677
678         * platform/graphics/cg/ImageBufferCG.cpp:
679         (WebCore::ImageBuffer::putImageData):
680
681 2008-03-02  Alp Toker  <alp@atoker.com>
682
683         Another fix for non-database builds after changes in r30331.
684
685         Conditionalize a stopDatabases() call.
686
687         * loader/FrameLoader.cpp:
688         (WebCore::FrameLoader::stopLoading):
689
690 2008-03-02  Kevin Ollivier  <kevino@theolliviers.com>
691
692         Reviewed by Alp Toker.
693
694         Scrolling fixes. Implement page scrolling, initialize mouse wheel
695         event variables, and remove duplicate event binding for TOP
696         scrolling event.
697
698         http://bugs.webkit.org/show_bug.cgi?id=17643
699
700         * platform/wx/MouseWheelEventWx.cpp:
701         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
702         * platform/wx/ScrollViewWx.cpp:
703         (WebCore::ScrollView::ScrollViewPrivate::bindEvents):
704         (WebCore::ScrollView::ScrollViewPrivate::OnScrollWinEvents):
705
706 2008-03-02  Alp Toker  <alp@atoker.com>
707
708         Fix building without database support after changes in r30331.
709
710         * dom/Document.cpp:
711
712 2008-03-02  Kevin Ollivier  <kevino@theolliviers.com>
713
714         wx build fix for Windows after PageWin.cpp move.
715
716         * webcore-wx.bkl:
717
718 2008-03-02  Kevin Ollivier  <kevino@theolliviers.com>
719
720         Reviewed by Dave Hyatt.
721
722         Gracefully handle a CSS rule containing an invalid value.
723         (Fixes http://bugs.webkit.org/show_bug.cgi?id=16898)
724
725         * css/CSSGrammar.y:
726
727 2008-03-02  Alp Toker  <alp@atoker.com>
728
729         Reviewed by Mark Rowe.
730
731         Improve the Cairo Path::isEmpty() function
732
733         Use cairo_has_current_point() where available.
734
735         * platform/graphics/cairo/PathCairo.cpp:
736         (WebCore::Path::isEmpty):
737
738 2008-03-01  Mark Rowe  <mrowe@apple.com>
739
740         Reviewed by Tim Hatcher.
741
742         Update Xcode configuration to support building debug and release from the mysterious future.
743
744         * Configurations/DebugRelease.xcconfig:
745
746 2008-03-01  Oliver Hunt  <oliver@apple.com>
747
748         Reviewed by Sam Weinig.
749
750         Bug 16954: Support putImageData
751         
752         Implement support for HTML5's putImageData for the CG port.  All other ports
753         are currently just using stubs for the final blit.
754
755         Test: fast/canvas/canvas-putImageData.html
756
757         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
758         (WebCore::JSCanvasRenderingContext2D::putImageData):
759         * html/CanvasRenderingContext2D.cpp:
760         (WebCore::CanvasRenderingContext2D::putImageData):
761         * html/CanvasRenderingContext2D.h:
762         * platform/graphics/ImageBuffer.h:
763         * platform/graphics/cairo/ImageBufferCairo.cpp:
764         * platform/graphics/cg/ImageBufferCG.cpp:
765         (WebCore::ImageBuffer::putImageData):
766         * platform/graphics/qt/ImageBufferQt.cpp:
767         * platform/graphics/wx/ImageBufferWx.cpp:
768
769 2008-03-01  Jon Honeycutt  <jhoneycutt@apple.com>
770
771         Reviewed by Darin.
772
773         <rdar://problem/5772987> Crashing viewing page with two VLC plug-in
774         instances
775
776         The VLC Netscape plug-in crashes if more than one instance is created.
777
778         Added a quirk that disallows a plug-in from having more than one
779         instance and set this for the VLC plug-in.
780
781         In addition, we now sort plug-ins that handle the same MIME
782         type to choose the most appropriate one. This sorting first sorts by
783         whether a plug-in has an issue that should put it at the end of the
784         list, then whether it appears in a "preferred" plug-in directory.
785
786         * plugins/PluginQuirkSet.h: Added PluginQuirkDontAllowMultipleInstances.
787         * plugins/PluginDatabase.cpp:
788         (WebCore::PluginDatabase::preferredPluginCompare): Comparator for
789         sorting plug-ins; calls PluginPackage::compare().
790         (WebCore::PluginDatabase::pluginForMIMEType): Add all of the plug-ins
791         that handle this MIME type to a list, sort the list, and return the
792         first item.
793         (WebCore::PluginDatabase::MIMETypeForExtension): Add all of the plug-ins
794         that handle this extension to a list, sort the list, and return the MIME
795         type used by the plug-in at the beginning of the list.
796         * plugins/PluginDatabase.h:
797         * plugins/PluginPackage.h:
798         (WebCore::PluginPackage::version): Added; returns the module version.
799         * plugins/win/PluginDatabaseWin.cpp:
800         (WebCore::PluginDatabase::isPreferredPluginPath): Made static; removed
801         const.
802         * plugins/win/PluginPackageWin.cpp:
803         (WebCore::PluginPackage::compare): Sorts plug-ins with known issues to
804         the end, then plug-ins in preferred directories to the beginning, then
805         alphabetically by file name, numerically by version, and alphabetically
806         by parent directory.
807         (WebCore::PluginPackage::determineQuirks): Set the "don't allow multiple
808         instances" quirk for VLC.
809         (WebCore::PluginPackage::load): Return false if the plug-in library has
810         already been loaded and the "don't allow multiple instances" quirk is
811         set.
812         * platform/gtk/TemporaryLinkStubs.cpp:
813         (PluginPackage::compare): Added stub.
814         (PluginDatabase::IsPreferredPluginPath): Update the GTK stub.
815         * platform/qt/TemporaryLinkStubs.cpp:
816         (PluginPackage::compare): Added stub.
817         (PluginDatabase::IsPreferredPluginPath): Update the Qt stub.
818         * platform/wx/TemporaryLinkStubs.cpp:
819         (PluginPackage::compare): Added stub.
820         (PluginDatabase::IsPreferredPluginPath): Update the wx stub.
821
822 2008-03-01  Sam Weinig  <sam@webkit.org>
823
824         Rubber-stamped by Mark Rowe.
825
826         Remove reference to the now non-existent bridge directory.
827
828         * WebCore.xcodeproj/project.pbxproj:
829
830 2008-03-01  Sam Weinig  <sam@webkit.org>
831
832         Reviewed by Darin Adler.
833
834         Search the entire prototype chain when doing early prototype lookup in
835         the Window's getOwnPropertySlot method.
836
837         Makes fast/dom/Window/window-function-name-getter-precedence.html pass all tests.
838
839         * bindings/js/kjs_window.cpp:
840         (KJS::Window::getOwnPropertySlot):
841
842 2008-03-01  Nikolas Zimmermann  <zimmermann@kde.org>
843
844         Reviewed by Oliver.
845
846         Fixes: http://bugs.webkit.org/show_bug.cgi?id=17568 (SVGForeignObjectElement can't react to width/height SVG DOM changes)
847
848         As the bug title says, fix all dynamic update problems that occour with SVGForeignObjectElement.
849
850         Tests: svg/dynamic-updates/SVGForeignObjectElement-dom-height-attr.html
851                svg/dynamic-updates/SVGForeignObjectElement-dom-width-attr.html
852                svg/dynamic-updates/SVGForeignObjectElement-dom-x-attr.html
853                svg/dynamic-updates/SVGForeignObjectElement-dom-y-attr.html
854                svg/dynamic-updates/SVGForeignObjectElement-svgdom-height-prop.html
855                svg/dynamic-updates/SVGForeignObjectElement-svgdom-width-prop.html
856                svg/dynamic-updates/SVGForeignObjectElement-svgdom-x-prop.html
857                svg/dynamic-updates/SVGForeignObjectElement-svgdom-y-prop.html
858
859         * svg/SVGForeignObjectElement.cpp:
860         (WebCore::SVGForeignObjectElement::parseMappedAttribute):
861         (WebCore::addCSSPropertyAndNotifyAttributeMap):
862         (WebCore::SVGForeignObjectElement::svgAttributeChanged):
863         * svg/SVGForeignObjectElement.h:
864
865 2008-02-29  Brady Eidson  <beidson@apple.com>
866
867         Reviewed by build-fix karma
868
869         Bonehead mistake.  Revert function to previous version for all non-Windows+CFNetwork platforms
870
871         * platform/network/ProtectionSpace.cpp:
872         (WebCore::ProtectionSpace::receivesCredentialSecurely): Make my previous change conditionally
873
874 2008-02-29  Brady Eidson  <beidson@apple.com>
875
876         Reviewed by Darin
877         
878         <rdar://problem/5771227> - Incorrect password handling text in credential sheet
879
880         * platform/network/ProtectionSpace.cpp:
881         (WebCore::ProtectionSpace::receivesCredentialSecurely): Call functional CFNetwork method to
882           get "secureness" of the auth challenge instead of figuring it out ourselves
883
884 2008-02-29  Brent Fulgham  <bfulgham@gmail.com>
885
886         http://bugs.webkit.org/show_bug.cgi?id=17483
887         Implement scrollbars on Windows (Cairo)
888
889         Reviewed by Adam Roben.
890
891         * platform/win/PlatfromScrollBarWin.cpp: Duplicate implementation
892           from PlatformScrollBarWinSafari.cpp, then modify to use the
893           native Windows theme engine.  Use SOFT_LINK.  Use platform
894           'GetSystemMetrics' call to decide size of scrollbars and buttons.
895
896 2008-02-29  Adam Roben  <aroben@apple.com>
897
898         Windows build fix
899
900         * WebCore.vcproj/WebCore.vcproj: Remove bridge/* from the include path
901         and the post-build event, and add page/win to each. Also let VS have
902         its way with the order of the files.
903         * page/win/PageWin.cpp: Copied from bridge/win/PageWin.cpp in r30673
904         * page/win/GlobalHistoryWin.cpp: Copied from
905         bridge/win/GlobalHistoryWin.cpp in r30673
906
907 2008-02-29  Anders Carlsson  <andersca@apple.com>
908
909         Build fix.
910
911         * WebCore.xcodeproj/project.pbxproj:
912
913 2008-02-29  Mark Rowe  <mrowe@apple.com>
914
915         Reviewed by Tim Hatcher.
916
917         64-bit build fix.
918
919         * platform/graphics/mac/SimpleFontDataMac.mm:
920         (WebCore::pathFromFont): Provide stub implementation of pathFromFont for 64-bit as
921         FMGetATSFontRefFromFont is not available.
922
923 2008-02-29  Mark Rowe  <mrowe@apple.com>
924
925         Build fix.  Only declare pathFromFont in debug builds as it is unused in release builds.
926
927         * platform/graphics/mac/SimpleFontDataMac.mm:
928
929 2008-02-29  Anders Carlsson  <andersca@apple.com>
930
931         Reviewed by Adam.
932         
933         Copy the remaining files in bridge/ over to page/
934
935         * WebCore.vcproj/WebCore.vcproj:
936         * WebCore.xcodeproj/project.pbxproj:
937         * bridge: Removed.
938         * bridge/AXObjectCache.h: Removed.
939         * bridge/EditorClient.h: Removed.
940         * bridge/GlobalHistory.h: Removed.
941         * bridge/win: Removed.
942         * bridge/win/FrameCGWin.cpp: Removed.
943         * bridge/win/FrameCairoWin.cpp: Removed.
944         * bridge/win/FrameWin.cpp: Removed.
945         * bridge/win/FrameWin.h: Removed.
946         * bridge/win/GlobalHistoryWin.cpp: Removed.
947         * bridge/win/PageWin.cpp: Removed.
948         * page/AXObjectCache.h: Copied from bridge/AXObjectCache.h.
949         * page/EditorClient.h: Copied from bridge/EditorClient.h.
950         * page/GlobalHistory.h: Copied from bridge/GlobalHistory.h.
951         * page/win/FrameCGWin.cpp: Copied from bridge/win/FrameCGWin.cpp.
952         * page/win/FrameCairoWin.cpp: Copied from bridge/win/FrameCairoWin.cpp.
953         * page/win/FrameWin.cpp: Copied from bridge/win/FrameWin.cpp.
954         * page/win/FrameWin.h: Copied from bridge/win/FrameWin.h.
955
956 2008-02-29  Robert Blaut  <webkit@blaut.biz>
957
958         Reviewed by Darin Adler.
959
960         - fix http://bugs.webkit.org/show_bug.cgi?id=17532
961           Webkit imports styles from <link> element which doesn't have rel=stylesheet defined
962
963         Test: fast/html/link-rel-stylesheet.html
964
965         * html/HTMLLinkElement.cpp:
966         (WebCore::HTMLLinkElement::process):
967
968 2008-02-29  Mark Rowe  <mrowe@apple.com>
969
970         Reviewed by Anders Carlsson.
971
972         Replace use of WKPathFromFont with implementation in terms of public API.
973
974         * WebCore.base.exp: Remove unused symbol.
975         * platform/graphics/mac/SimpleFontDataMac.mm:
976         (WebCore::initFontData):
977         (WebCore::pathFromFont): Implement pathFromFont in terms of public API.
978         (WebCore::SimpleFontData::platformInit):
979         * platform/mac/WebCoreSystemInterface.h: Remove unused symbol.
980         * platform/mac/WebCoreSystemInterface.mm: Ditto.
981
982 2008-02-29  Anders Carlsson  <andersca@apple.com>
983
984         Reviewed by Adam.
985
986         Move a bunch of files from bridge/mac to page/mac.
987         
988         * WebCore.xcodeproj/project.pbxproj:
989         * bridge/mac: Removed.
990         * bridge/mac/AXObjectCacheMac.mm: Removed.
991         * bridge/mac/GlobalHistoryMac.mm: Removed.
992         * bridge/mac/WebCoreAXObject.h: Removed.
993         * bridge/mac/WebCoreAXObject.mm: Removed.
994         * bridge/mac/WebCoreScriptDebugger.h: Removed.
995         * bridge/mac/WebCoreScriptDebugger.mm: Removed.
996         * page/mac/AXObjectCacheMac.mm: Copied from bridge/mac/AXObjectCacheMac.mm.
997         * page/mac/GlobalHistoryMac.mm: Copied from bridge/mac/GlobalHistoryMac.mm.
998         * page/mac/WebCoreAXObject.h: Copied from bridge/mac/WebCoreAXObject.h.
999         * page/mac/WebCoreAXObject.mm: Copied from bridge/mac/WebCoreAXObject.mm.
1000         * page/mac/WebCoreScriptDebugger.h: Copied from bridge/mac/WebCoreScriptDebugger.h.
1001         * page/mac/WebCoreScriptDebugger.mm: Copied from bridge/mac/WebCoreScriptDebugger.mm.
1002
1003 2008-02-29  David Hyatt  <hyatt@apple.com>
1004
1005         Fix for http://bugs.webkit.org/show_bug.cgi?id=17559, media query tests crashing under
1006         guard malloc.  Pass along the style selector so it can be accessed, since it has not yet
1007         been assigned into the document's member variable.
1008
1009         Reviewed by aroben
1010
1011         * css/CSSStyleSelector.cpp:
1012         (WebCore::CSSRuleSet::addRulesFromSheet):
1013         * css/MediaQueryEvaluator.cpp:
1014         (WebCore::MediaQueryEvaluator::eval):
1015         * css/MediaQueryEvaluator.h:
1016
1017 2008-02-29  David Hyatt  <hyatt@apple.com>
1018
1019         <rdar://problem/5755916> REGRESSION: Loading HTML5 spec is 5x slower on TOT than in 3.0.4
1020
1021         Improve the performance of dynamic sibling and CSS3 selectors so that there is no slowdown any more.
1022         Be more precise in terms of what nodes we mark dirty.
1023
1024         Reviewed by Beth
1025
1026         * css/CSSStyleSelector.cpp:
1027         (WebCore::CSSStyleSelector::checkSelector):
1028         * dom/Element.cpp:
1029         (WebCore::Element::recalcStyle):
1030         (WebCore::checkForSiblingStyleChanges):
1031         (WebCore::Element::childrenChanged):
1032         (WebCore::Element::finishParsingChildren):
1033         * rendering/RenderStyle.cpp:
1034         (WebCore::RenderStyle::RenderStyle):
1035         * rendering/RenderStyle.h:
1036         (WebCore::RenderStyle::childrenAffectedByPositionalRules):
1037         (WebCore::RenderStyle::childrenAffectedByDirectAdjacentRules):
1038         (WebCore::RenderStyle::setChildrenAffectedByDirectAdjacentRules):
1039
1040 2008-02-29  Alexey Proskuryakov  <ap@webkit.org>
1041
1042         Reviewed by Darin.
1043
1044         <rdar://problem/5766352> REGRESSION (r27151): XMLHttpRequest.abort() resets response status
1045
1046         Test: http/tests/xmlhttprequest/status-after-abort.html
1047
1048         * xml/XMLHttpRequest.cpp:
1049         (WebCore::XMLHttpRequest::getStatus):
1050         (WebCore::XMLHttpRequest::getStatusText):
1051         Changed to match Firefox more closely (IE just raises an exception in most of those cases).
1052
1053 2008-02-29  Dan Bernstein  <mitz@apple.com>
1054
1055         Reviewed by Darin Adler.
1056
1057         - fix a bug where explicit embedding past the end of a line could
1058           affect text that line
1059
1060         Test: fast/text/embed-at-end-of-pre-wrap-line.html
1061
1062         * rendering/bidi.cpp:
1063         (WebCore::RenderBlock::skipWhitespace): Removed calls to
1064         setAdjustEmbedding().
1065         (WebCore::RenderBlock::findNextLineBreak): Added calls to
1066         setAdjustEmbedding() around skipWhitespace() only where needed.
1067
1068 2008-02-29  Mark Rowe  <mrowe@apple.com>
1069
1070         Reviewed by Oliver Hunt.
1071
1072         Don't use WKSupportsMultipartXMixedReplace on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest.
1073
1074         * platform/mac/WebCoreSystemInterface.h: Don't declare WKSupportsMultipartXMixedReplace on Leopard.
1075         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1076         * platform/network/mac/ResourceRequestMac.mm:
1077         (WebCore::ResourceRequest::doUpdatePlatformRequest): Don't call WKSupportsMultipartXMixedReplace on Leopard.
1078         * WebCore.Tiger.exp: Move Tiger-only symbol here.
1079         * WebCore.base.exp:
1080
1081 2008-02-29  Mark Rowe  <mrowe@apple.com>
1082
1083         Rubber-stamped by Eric Seidel.
1084
1085         Remove unneeded includes of WebCoreSystemInterface.h.
1086
1087         * loader/mac/LoaderNSURLExtras.m:
1088         * page/mac/FrameMac.mm:
1089         * page/mac/WebCoreFrameBridge.mm:
1090         * platform/MIMETypeRegistry.cpp:
1091         * platform/graphics/mac/ImageMac.mm:
1092         * platform/mac/PasteboardMac.mm:
1093
1094 2008-02-29  Mark Rowe  <mrowe@apple.com>
1095
1096         Reviewed by Oliver Hunt and Oliver Hunt.
1097
1098         <rdar://problem/4753845> WebKit should use CGEventSourceSecondsSinceLastEventType in place of WKSecondsSinceLastInputEvent SPI.
1099
1100         * platform/mac/SystemTimeMac.cpp:  Replace use of WKSecondsSinceLastInputEvent with CGEventSourceSecondsSinceLastEventType.
1101         * platform/mac/WebCoreSystemInterface.h:  Remove unused symbol.
1102         * platform/mac/WebCoreSystemInterface.mm:  Ditto.
1103         * WebCore.base.exp:  Ditto.
1104
1105 2008-02-28  Mark Rowe  <mrowe@apple.com>
1106
1107         Reviewed by Dave Hyatt.
1108
1109         Make use of new CGFont APIs on Leopard rather than making a WebKitSystemInterface call.
1110
1111         * DerivedSources.make:  Add Tiger-only symbols to the export file when running on Tiger.
1112         * WebCore.Tiger.exp:  Added.  Move Tiger-only symbol here from WebCore.base.exp.
1113         * WebCore.base.exp:
1114         * platform/graphics/mac/SimpleFontDataMac.mm:
1115         (WebCore::SimpleFontData::platformInit):  Use Leopard APIs when building on Leopard.
1116         * platform/mac/WebCoreSystemInterface.h:  Don't declare wkGetFontMetrics on Leopard as it is unused.
1117         * platform/mac/WebCoreSystemInterface.mm:  Ditto.
1118
1119 2008-02-28  Matt Lilek  <webkit@mattlilek.com>
1120
1121         Reviewed by Tim Hatcher.
1122
1123         Bug 16535: Stylesheets loaded with @import are not editable
1124         http://bugs.webkit.org/show_bug.cgi?id=16535
1125         <rdar://problem/5712899>
1126
1127         Sheets loaded using @import were incorrectly being flagged as non-editable
1128         user agent sheets because their parent sheet doesn't have an ownerNode. We now
1129         check to make sure sheets also don't have a href before restricting their editability.
1130
1131         * page/inspector/StylesSidebarPane.js:
1132
1133 2008-02-28  Rodney Dawes  <dobey@wayofthemonkey.com>
1134
1135         Reviewed by Adam Roben.
1136
1137         Copy PluginPackageWin.cpp to shared PluginPackage.cpp.
1138         Add PluginPackage.cpp to build configurations.
1139         Remove PluginPackage destructor from TemporaryLinkStubs.cpp.
1140         Use cross-platform pathGetFilename method.
1141         Remove platform-specific code from shared PluginPackage implementation.
1142         Remove shared code from PluginPackageWin.cpp.
1143
1144         * GNUmakefile.am:
1145         * WebCore.pro:
1146         * WebCoreSources.bkl:
1147         * WebCore.vcproj/WebCore.vcproj:
1148         * platform/gtk/TemporaryLinkStubs.cpp:
1149         * platform/qt/TemporaryLinkStubs.cpp:
1150         * platform/wx/TemporaryLinkStubs.cpp:
1151         * plugins/PluginPackage.cpp:
1152         * plugins/win/PluginPackageWin.cpp:
1153
1154 2008-02-28  Justin Garcia  <justin.garcia@apple.com>
1155
1156         Reviewed by Darin Adler.
1157
1158         <rdar://problem/4930986> REGRESSION: Paste As Quotation pastes black text instead of blue
1159         
1160         Add a second style span at copy time to hold document default styles.  This helps us
1161         differentiate between those and user applied styles at paste time, where we'll want
1162         to let Mail's Paste As Quotation blockquote override document default styles, but
1163         not others.
1164
1165         * css/CSSComputedStyleDeclaration.cpp:
1166         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Changed the unit type used 
1167         for -webkit-text-stroke-width from CSS_NUMBER to CSS_PX, to match other properties that 
1168         are thick | medium | thin | <length>.  Before, there was a mismatch between the unit 
1169         type of -webkit-text-stroke-width property values in a CSSComputedStyleDeclaration for 
1170         an element and that element's inlineStyleDecl(), causing identical values to always appear 
1171         different to diff().
1172         * editing/ReplaceSelectionCommand.cpp:
1173         (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Fixed.  Don't just change
1174         the class to an empty string, completely remove it, it's no longer needed.
1175         (WebCore::handleStyleSpansBeforeInsertion): Moved the optimization from doApply here.
1176         (WebCore::ReplaceSelectionCommand::handleStyleSpans): 
1177         Added, replaces removeRedundantStyles.
1178         We aren't (yet) removing all redundant styles, just those on style spans, so I removed the
1179         unused code and renamed the function.
1180         There won't be more than two style spans that we need to consider, the one with the 
1181         source document's default styles and styles on the commonAncestor of the copied Range, 
1182         so don't look for more than two.
1183         Let elements that wrap the incoming fragment override the source document's styles.
1184         (WebCore::ReplaceSelectionCommand::doApply): Moved code to handleStyleSpansBeforeInsertion
1185         and call the renamed handleStyleSpans.
1186         * editing/ReplaceSelectionCommand.h:
1187         * editing/markup.cpp:
1188         (WebCore::removeDefaultStyles): Added.  Don't add document defaults to the style span
1189         that holds user applied styles, since they'll be added to their own style span.
1190         (WebCore::createMarkup):
1191         Add a second style span that holds just the document defaults. This lets us differentiate
1192         between those and user applied styles at paste time.
1193         Mail blockquotes are just another type of special element, moved their handling there. This
1194         also lets paste code make assumptions about the position of the two style spans (they are 
1195         *always* parent-child).
1196
1197 2008-02-28  Brent Fulgham <bfulgham@gmail.com>
1198
1199         http://bugs.webkit.org/show_bug.cgi?id=17576
1200         Modify RenderThemeWin to use SOFT_LINK
1201
1202         Reviewed by Adam Roben.
1203
1204         * rendering/RenderThemeWin.h: Remove unneeded library handle
1205         * rendering/RenderThemeWin.cpp: Change to use SOFT_LINK
1206           rather than hand-coded load library calls.
1207
1208 2008-02-28  Dan Bernstein  <mitz@apple.com>
1209
1210         Reviewed by Darin Adler.
1211
1212         - fix http://bugs.webkit.org/show_bug.cgi?id=17590
1213           ASSERTION FAILED: subject in jsRegExpExecute()
1214
1215         * page/mac/FrameMac.mm:
1216         (WebCore::Frame::matchLabelsAgainstElement): Added an early return in
1217         case the element name is empty.
1218
1219 2008-02-28  Justin Garcia  <justin.garcia@apple.com>
1220
1221         Reviewed by Dan Bernstein
1222         
1223         Small editing speed up.
1224         
1225         * dom/Position.cpp:
1226         (WebCore::Position::upstream): Don't check for a change in editability
1227         if the current node hasn't changed.
1228         (WebCore::Position::downstream): Ditto.
1229
1230 2008-02-27  Dan Bernstein  <mitz@apple.com>
1231
1232         Reviewed by John Sullivan.
1233
1234         - fix <rdar://problem/5607547> Single letter surrounded by soft hyphens can disappear
1235
1236         Test: fast/text/soft-hyphen-2.html
1237
1238         * rendering/bidi.cpp:
1239         (WebCore::chopMidpointsAt): Changed to iterate midpoints backwards, so
1240         that if there are two midpoints at the given position, only the last one
1241         will be chopped off.
1242
1243 2008-02-27  Dan Bernstein  <mitz@apple.com>
1244
1245         Reviewed by Darin Adler.
1246
1247         - make centered text in right-to-left blocks spill over to the left
1248
1249         Test: fast/text/align-center-rtl-spill.html
1250
1251         * rendering/bidi.cpp:
1252         (WebCore::RenderBlock::computeHorizontalPositionsForLine):
1253
1254 2008-02-27  Dan Bernstein  <mitz@apple.com>
1255
1256         Reviewed by Darin Adler.
1257
1258         - more bidi.cpp cleanup
1259
1260         * platform/text/BidiResolver.h:
1261         (WebCore::BidiCharacterRun::destroy): Added. Overridden by BidiRun .
1262         (WebCore::BidiResolver<Iterator, Run>::addRun): Moved BidiState::addRun()
1263         here.
1264         (WebCore::BidiResolver<Iterator, Run>::appendRun): Changed to use
1265         addRun().
1266         (WebCore::BidiResolver<Iterator, Run>::deleteRuns): Changed to use
1267         destroy(), avoiding the need to specialize this method in BidiState.
1268         * rendering/bidi.cpp:
1269         (WebCore::BidiRun::destroy): Removed the RenderArena parameter.
1270         (WebCore::BidiState::deleteRuns): Removed now-unnecessary specialization.
1271         (WebCore::BidiState::addRun): Removed now-unnecessary specialization.
1272         (WebCore::RenderBlock::createLineBoxes): 
1273         (WebCore::RenderBlock::constructLine):
1274         (WebCore::RenderBlock::computeHorizontalPositionsForLine): Added a FIXME.
1275         (WebCore::RenderBlock::computeVerticalPositionsForLine):
1276         (WebCore::buildCompactRuns):
1277         (WebCore::RenderBlock::layoutInlineChildren):
1278         (WebCore::RenderBlock::determineStartPosition):
1279         (WebCore::RenderBlock::determineEndPosition):
1280         (WebCore::RenderBlock::matchedEndLine):
1281         (WebCore::skipNonBreakingSpace):
1282         (WebCore::RenderBlock::skipWhitespace):
1283         (WebCore::shouldSkipWhitespaceAfterStartObject):
1284         * rendering/bidi.h:
1285         (WebCore::BidiRun): Added m_ prefixes to several member variables. 
1286
1287 2008-02-27  Sam Weinig  <sam@webkit.org>
1288
1289         Reviewed by Darin.
1290
1291         Fix for <rdar://problem/5768769>
1292
1293         - Don't allow cross-origin calls using window.functionName.call(otherFrame)
1294           syntax.
1295
1296         * bindings/js/JSLocation.cpp:
1297         (WebCore::jsLocationProtoFuncToString): Do same-origin check.
1298         * bindings/js/kjs_window.cpp:
1299         (KJS::windowProtoFuncAToB): Ditto.
1300         (KJS::windowProtoFuncBToA): Ditto.
1301         (KJS::windowProtoFuncOpen): Ditto.
1302         (KJS::windowProtoFuncClearTimeout): Ditto.
1303         * bindings/scripts/CodeGeneratorJS.pm: Ditto.
1304
1305 2008-02-27  David Hyatt  <hyatt@apple.com>
1306
1307         More cleanup in preparation for fixing the HTML5 spec performance regression.
1308
1309         Reviewed by Sam Weinig
1310
1311         * dom/Attr.cpp:
1312         (WebCore::Attr::childrenChanged):
1313         * dom/Attr.h:
1314         * dom/ContainerNode.cpp:
1315         (WebCore::ContainerNode::insertBefore):
1316         (WebCore::ContainerNode::replaceChild):
1317         (WebCore::ContainerNode::removeChild):
1318         (WebCore::ContainerNode::removeChildren):
1319         (WebCore::ContainerNode::appendChild):
1320         (WebCore::ContainerNode::addChild):
1321         (WebCore::ContainerNode::childrenChanged):
1322         * dom/ContainerNode.h:
1323         * dom/Document.cpp:
1324         (WebCore::Document::childrenChanged):
1325         * dom/Document.h:
1326         * dom/Element.cpp:
1327         (WebCore::Element::childrenChanged):
1328         * dom/Element.h:
1329         * dom/Node.h:
1330         (WebCore::Node::childrenChanged):
1331         * html/HTMLObjectElement.cpp:
1332         (WebCore::HTMLObjectElement::childrenChanged):
1333         * html/HTMLObjectElement.h:
1334         * html/HTMLOptGroupElement.cpp:
1335         (WebCore::HTMLOptGroupElement::childrenChanged):
1336         * html/HTMLOptGroupElement.h:
1337         * html/HTMLOptionElement.cpp:
1338         (WebCore::HTMLOptionElement::childrenChanged):
1339         * html/HTMLOptionElement.h:
1340         * html/HTMLScriptElement.cpp:
1341         (WebCore::HTMLScriptElement::childrenChanged):
1342         * html/HTMLScriptElement.h:
1343         * html/HTMLSelectElement.cpp:
1344         (WebCore::HTMLSelectElement::childrenChanged):
1345         * html/HTMLSelectElement.h:
1346         * html/HTMLStyleElement.cpp:
1347         (WebCore::HTMLStyleElement::childrenChanged):
1348         * html/HTMLStyleElement.h:
1349         * html/HTMLTextAreaElement.cpp:
1350         (WebCore::HTMLTextAreaElement::childrenChanged):
1351         * html/HTMLTextAreaElement.h:
1352         * html/HTMLTitleElement.cpp:
1353         (WebCore::HTMLTitleElement::childrenChanged):
1354         * html/HTMLTitleElement.h:
1355         * svg/SVGClipPathElement.cpp:
1356         (WebCore::SVGClipPathElement::childrenChanged):
1357         * svg/SVGClipPathElement.h:
1358         * svg/SVGDefinitionSrcElement.cpp:
1359         (WebCore::SVGDefinitionSrcElement::childrenChanged):
1360         * svg/SVGDefinitionSrcElement.h:
1361         * svg/SVGFontFaceElement.cpp:
1362         (WebCore::SVGFontFaceElement::childrenChanged):
1363         * svg/SVGFontFaceElement.h:
1364         * svg/SVGFontFaceFormatElement.cpp:
1365         (WebCore::SVGFontFaceFormatElement::childrenChanged):
1366         * svg/SVGFontFaceFormatElement.h:
1367         * svg/SVGFontFaceSrcElement.cpp:
1368         (WebCore::SVGFontFaceSrcElement::childrenChanged):
1369         * svg/SVGFontFaceSrcElement.h:
1370         * svg/SVGFontFaceUriElement.cpp:
1371         (WebCore::SVGFontFaceUriElement::childrenChanged):
1372         * svg/SVGFontFaceUriElement.h:
1373         * svg/SVGGElement.cpp:
1374         (WebCore::SVGGElement::childrenChanged):
1375         * svg/SVGGElement.h:
1376         * svg/SVGGradientElement.cpp:
1377         (WebCore::SVGGradientElement::childrenChanged):
1378         * svg/SVGGradientElement.h:
1379         * svg/SVGMarkerElement.cpp:
1380         (WebCore::SVGMarkerElement::childrenChanged):
1381         * svg/SVGMarkerElement.h:
1382         * svg/SVGMaskElement.cpp:
1383         (WebCore::SVGMaskElement::childrenChanged):
1384         * svg/SVGMaskElement.h:
1385         * svg/SVGPatternElement.cpp:
1386         (WebCore::SVGPatternElement::childrenChanged):
1387         * svg/SVGPatternElement.h:
1388         * svg/SVGStyleElement.cpp:
1389         (WebCore::SVGStyleElement::childrenChanged):
1390         * svg/SVGStyleElement.h:
1391         * svg/SVGStyledElement.cpp:
1392         (WebCore::SVGStyledElement::childrenChanged):
1393         * svg/SVGStyledElement.h:
1394         * svg/SVGTitleElement.cpp:
1395         (WebCore::SVGTitleElement::childrenChanged):
1396         * svg/SVGTitleElement.h:
1397         * svg/SVGUseElement.cpp:
1398         (WebCore::SVGUseElement::childrenChanged):
1399         * svg/SVGUseElement.h:
1400
1401 2008-02-27  Julien Chaffraix <julien.chaffraix@gmail.com>
1402
1403         Reviewed by Alexey.
1404
1405         http://bugs.webkit.org/show_bug.cgi?id=17481
1406         Several consecutive calls to XMLHttpRequest::open should dispatch only one readyState event
1407
1408         Test: http/tests/xmlhttprequest/xmlhttprequest-multiple-open.html
1409
1410         * xml/XMLHttpRequest.cpp:
1411         (WebCore::XMLHttpRequest::open):
1412
1413 2008-02-27  Sriram Neelakandan  <sriram.neelakandan@gmail.com>
1414
1415         Reviewed, tweaked and landed by ap.
1416
1417         http://bugs.webkit.org/show_bug.cgi?id=17487
1418         HTMLInput mysteriously fails to work if ICU dat file is missing
1419
1420         * platform/text/TextBreakIteratorICU.cpp: (WebCore::setUpIterator): Assert that the iterator
1421         has been opened.
1422
1423 2008-02-27  Adam Roben  <aroben@apple.com>
1424
1425         Windows build fix after r30616
1426
1427         * platform/win/ClipboardWin.cpp:
1428
1429 2008-02-27  Nikolas Zimmermann  <zimmermann@kde.org>
1430
1431         Reviewed by Simon.
1432
1433         Small style cleanup, and obvious fix: SVGGElement reacted on
1434         'clipPathUnits' changes, which is a funny copy&paste error.
1435
1436         * svg/SVGGElement.cpp:
1437         (WebCore::SVGGElement::parseMappedAttribute):
1438         (WebCore::SVGGElement::svgAttributeChanged):
1439         (WebCore::SVGGElement::createRenderer):
1440
1441 2008-02-27  Nikolas Zimmermann  <zimmermann@kde.org>
1442
1443         Reviewed by Simon.
1444
1445         Cleanup coding style. Still on my way to fix dynamic updates of all SVG elements.
1446         Currently at SVGF*. SVGDefs/DescElement don't need any dyn update fixes but cleanups.
1447
1448         * svg/SVGDefsElement.cpp:
1449         (WebCore::SVGDefsElement::createRenderer):
1450         * svg/SVGDefsElement.h:
1451         * svg/SVGDescElement.h:
1452
1453 2008-02-26  Antti Koivisto  <antti@apple.com>
1454
1455         Reviewed by Darin.
1456
1457         Fix <rdar://problem/5761326>
1458         REGRESSION: 1.5% -2% Sunspider regression from r30009 (ebay photo upload hang)
1459         
1460         Generate better code with VS:
1461         - Use ALWAYS_INLINE macro to guarantee versions of allowsAccessFrom() are reduced to single functions
1462         - Refactor error reporting so that there is no need to construct/destruct Strings in common cases
1463         - Add a separate version of the function for cases where error messages are not wanted
1464
1465         * bindings/js/JSDOMWindowCustom.cpp:
1466         (WebCore::JSDOMWindow::customGetOwnPropertySlot):
1467         * bindings/js/kjs_window.cpp:
1468         (KJS::Window::allowsAccessFrom):
1469         (KJS::Window::allowsAccessFromNoErrorMessage):
1470         (KJS::Window::allowsAccessFromPrivate):
1471         (KJS::Window::crossDomainAccessErrorMessage):
1472         * bindings/js/kjs_window.h:
1473
1474 2008-02-26  Sam Weinig  <sam@webkit.org>
1475
1476         Reviewed by Dave Hyatt.
1477
1478         - remove DeprecatedCString, DeprecatedArray, and ArrayImpl.
1479
1480         * GNUmakefile.am:
1481         * WebCore.pro:
1482         * WebCore.vcproj/WebCore.vcproj:
1483         * WebCore.xcodeproj/project.pbxproj:
1484         * WebCoreSources.bkl:
1485         * platform/ArrayImpl.cpp: Removed.
1486         * platform/ArrayImpl.h: Removed.
1487         * platform/DeprecatedArray.h: Removed.
1488         * platform/DeprecatedCString.cpp: Removed.
1489         * platform/DeprecatedCString.h: Removed.
1490         * platform/text/CString.cpp:
1491         (WebCore::CString::length):
1492         * platform/text/CString.h:
1493
1494 2008-02-26  David Hyatt  <hyatt@apple.com>
1495
1496         Cleanup of childrenChanged in preparation for fixing the HTML5 spec slowdown.
1497
1498         Reviewed by Sam Weinig
1499
1500         * dom/Attr.cpp:
1501         (WebCore::Attr::childrenChanged):
1502         * dom/ContainerNode.cpp:
1503         (WebCore::ContainerNode::insertBefore):
1504         (WebCore::ContainerNode::replaceChild):
1505         (WebCore::ContainerNode::removeChild):
1506         (WebCore::ContainerNode::removeChildren):
1507         (WebCore::ContainerNode::appendChild):
1508         (WebCore::ContainerNode::addChild):
1509         (WebCore::ContainerNode::childrenChanged):
1510         * dom/ContainerNode.h:
1511         * dom/EventTargetNode.cpp:
1512         (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
1513         * dom/EventTargetNode.h:
1514         * dom/NamedAttrMap.cpp:
1515         (WebCore::NamedAttrMap::addAttribute):
1516         (WebCore::NamedAttrMap::removeAttribute):
1517
1518 2008-02-26  Darin Adler  <darin@apple.com>
1519
1520         Reviewed by Sam.
1521
1522         - remove use of DeprecatedCString from Windows pasteboard code
1523
1524         * platform/win/ClipboardUtilitiesWin.cpp:
1525         (WebCore::createGlobalData): Added an overload for Vector<char>.
1526         Streamlined the logic a bit.
1527         (WebCore::append): Added. Helper functions for appending to a
1528         Vector<char>.
1529         (WebCore::markupToCF_HTML): Rewrote to use Vector<char> instead
1530         of DeprecatedCString. Also simplified the logic a bit and used
1531         macros to handle the integer width.
1532         (WebCore::urlToMarkup): Use Vector<UChar> instead of String.
1533         (WebCore::replaceNewlinesWithWindowsStyleNewlines): Tweaked.
1534         * platform/win/ClipboardUtilitiesWin.h: Update type of return
1535         value from markupToCF_HTML. Did a bit of streamlining too.
1536         * platform/win/ClipboardWin.cpp:
1537         (WebCore::writeURL): Update for above changes.
1538         (WebCore::ClipboardWin::declareAndWriteDragImage): Ditto.
1539         (WebCore::ClipboardWin::writeRange): Ditto.
1540         * platform/win/PasteboardWin.cpp:
1541         (WebCore::Pasteboard::writeSelection): Ditto.
1542         (WebCore::Pasteboard::writeURL): Ditto.
1543
1544 2008-02-26  Timothy Hatcher  <timothy@apple.com>
1545
1546         Reviewed by Adam Roben.
1547
1548         <rdar://problem/5712777> REGRESSION: Arrow up/down in inspector
1549         source list does not scroll when item at edge is reached (16572)
1550
1551         Use scrollIntoViewIfNeeded() instead of the hand-rolled scrollToElement
1552         we were using in utilities.js.
1553
1554         * page/inspector/DocumentPanel.js: Use scrollIntoViewIfNeeded instead of scrollToElement.
1555         * page/inspector/Resource.js: Ditto.
1556         * page/inspector/inspector.js: Ditto.
1557         * page/inspector/SourcePanel.js: Use scrollIntoViewIfNeeded instead
1558         of scrollIntoView, so the source line is centered in the view if needed.
1559         * page/inspector/utilities.js: Removed scrollToElement().
1560
1561 2008-02-26  David Hyatt  <hyatt@apple.com>
1562
1563         Reviewed by Dan
1564
1565         http://bugs.webkit.org/show_bug.cgi?id=17485
1566
1567         Refine our behavior for empty inlines so that they work more correctly with margins/borders/padding.
1568         Fixes a regression on huffingtonpost.com.
1569
1570         New tests added to fast/inline
1571
1572         * rendering/InlineFlowBox.cpp:
1573         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
1574         (WebCore::InlineFlowBox::placeBoxesVertically):
1575         (WebCore::InlineFlowBox::shrinkBoxesWithNoTextChildren):
1576         * rendering/RenderFlow.cpp:
1577         (WebCore::RenderFlow::calcMargins):
1578         * rendering/RenderFlow.h:
1579         * rendering/RenderObject.h:
1580         (WebCore::RenderObject::hasHorizontalBordersPaddingOrMargin):
1581         (WebCore::RenderObject::hasHorizontalBordersOrPadding):
1582         * rendering/bidi.cpp:
1583         (WebCore::getBorderPaddingMargin):
1584         (WebCore::RenderBlock::layoutInlineChildren):
1585         (WebCore::inlineFlowRequiresLineBox):
1586
1587 2008-02-26  Sam Weinig  <sam@webkit.org>
1588
1589         Fix Windows build.
1590
1591         * platform/text/PlatformString.h:
1592         (WebCore::reverseFind):
1593
1594 2008-02-26  Dan Bernstein  <mitz@apple.com>
1595
1596         Reviewed by Darin Adler.
1597
1598         - fix http://bugs.webkit.org/show_bug.cgi?id=17555
1599           <rdar://problem/5766016> REGRESSION (r27351): Thumbnails positioned wrong on Getty Images results page
1600
1601         Test: fast/dynamic/subtree-table-cell-height.html
1602
1603         * rendering/RenderObject.cpp:
1604         (WebCore::objectIsRelayoutBoundary): Exclude table cells, since their
1605         height depends on their contents even if the CSS height property is
1606         fixed.
1607
1608 2008-02-25  Sam Weinig  <sam@webkit.org>
1609
1610         Reviewed by Dan Bernstein.
1611
1612         Make the cleanPath function in CSSStyleSelector more efficient by using
1613         a Vector<UChar>.
1614
1615         * css/CSSStyleSelector.cpp:
1616         (WebCore::cleanPath): Make this function work on a Vector<UChar> instead
1617         of a String.  Also remove unnecessary reverseFind call that could be acomplished
1618         with two compares.
1619         (WebCore::checkPseudoState): Remove reserveCapacity calls now that we are using
1620         a stack buffer.
1621         * platform/text/PlatformString.h:
1622         (WebCore::find): Make this find generic enough that it can be used for
1623         String::find.
1624         (WebCore::reverseFind): Implement reverseFind so that it can be used
1625         for with a UChar* and length.
1626         * platform/text/StringImpl.cpp:
1627         (WebCore::StringImpl::find): Use implementation in PlatformString.cpp
1628         (WebCore::StringImpl::reverseFind): Ditto,
1629
1630 2008-02-26  Satoshi Nakagawa  <artension@gmail.com>
1631
1632         Reviewed by Darin. Tweaked and landed by Alexey.
1633
1634         http://bugs.webkit.org/show_bug.cgi?id=17411
1635         Ideographic comma and full stop should be treated as line-breakable characters
1636
1637         Test: fast/text/line-breaks-after-ideographic-comma-or-full-stop.html
1638
1639         * platform/text/CharacterNames.h: Added ideographicComma and ideographicFullStop.
1640         * rendering/break_lines.cpp: (WebCore::shouldBreakAfter): Added a workaround for an issue in
1641         Unicode 5.0 that is causing this.
1642
1643 2008-02-26  MorganL  <morganl.webkit@yahoo.com>
1644
1645         Reviewed by eseidel.  Landed by eseidel
1646
1647         Fix improperly initialized m_isUpToDate member variable.
1648         Fixs 50+ layout tests when run on Tiger.
1649         http://bugs.webkit.org/show_bug.cgi?id=17549
1650
1651         * platform/network/cf/ResourceResponse.h:
1652         (WebCore::ResourceResponse::ResourceResponse):
1653         * platform/network/mac/ResourceResponse.h:
1654         (WebCore::ResourceResponse::ResourceResponse):
1655
1656 2008-02-25  Dan Bernstein  <mitz@apple.com>
1657
1658         Reviewed by Sam Weinig.
1659
1660         - fix http://bugs.webkit.org/show_bug.cgi?id=17152
1661           Paragraphs indented with :first-letter and text-align CSS render incorrectly
1662
1663         Test: fast/text/apply-start-width-after-skipped-text.html
1664
1665         * rendering/bidi.cpp:
1666         (WebCore::RenderBlock::findNextLineBreak): Improved the logic for when
1667         to figure in the padding, border and margin before a text node when the
1668         line begins inside a text node.
1669
1670 2008-02-25  Kevin Ollivier  <kevino@theolliviers.com>
1671
1672         Windows build fix for wx port.
1673
1674         * loader/FTPDirectoryDocument.cpp:
1675
1676 2008-02-25  Mark Rowe  <mrowe@apple.com>
1677
1678         Windows build fix.
1679
1680         * platform/network/cf/ResourceResponseCFNet.cpp:
1681         (WebCore::ResourceResponse::platformCompare):  Implement platformCompare for ResourceResponseCFNet.cpp.
1682
1683 2008-02-25  Beth Dakin  <bdakin@apple.com>
1684
1685         Reviewed by Geoff.
1686
1687         Fixed for <rdar://problem/5760530> REGRESSION: Assertion failure in 
1688         Document::removePendingSheet() from r30438
1689
1690         r30438 added a call to CachedResource::error() from inside 
1691         Loader::didReceiveData() if a CSS file 4xxs. There was an 
1692         assumption in the loader, though, that either error() would be 
1693         called, or didFinishLoading() would be called, so some work is 
1694         duplicated in each. Now that we are calling an error() on files 
1695         that will also make it to didFinishLoading() (since they succeeded 
1696         in the network layer), we need to make sure we do not duplicate the 
1697         work. CachedCSSStyleSheet::error() calls checkNotify, which ends up 
1698         decrementing the document's pending style sheet counter. 
1699         checkNotify() was still getting called, though, through the normal  
1700         didFinishLoading code path, and the counter was being decremented 
1701         twice. Bad!
1702
1703         * loader/loader.cpp:
1704         (WebCore::Loader::didFinishLoading):
1705         (WebCore::Loader::didReceiveData):
1706
1707 2008-02-25  Mark Rowe  <mrowe@apple.com>
1708
1709         Fix the Gtk, wx and Qt builds.
1710
1711         * GNUmakefile.am: Add new files.
1712         * WebCore.pro: Ditto.
1713         * WebCoreSources.bkl: Ditto.
1714         * platform/network/AuthenticationChallengeBase.h: Fix up argument types.
1715
1716 2008-02-25  MorganL  <morganl.webkit@yahoo.com>
1717
1718         Reviewed by Darin Adler.
1719
1720         Eliminate some #ifdefs from headers in platform/network.
1721         http://bugs.webkit.org/show_bug.cgi?id=17210
1722
1723         * WebCore.base.exp:
1724         * WebCore.order:
1725         * WebCore.vcproj/WebCore.vcproj:
1726         * WebCore.xcodeproj/project.pbxproj:
1727         * dom/XMLTokenizer.cpp:
1728         * loader/ResourceLoader.h:
1729         * platform/network/AuthenticationChallenge.cpp: Removed.
1730         * platform/network/AuthenticationChallenge.h: Removed.
1731         * platform/network/AuthenticationChallengeBase.cpp: Copied from platform/network/AuthenticationChallenge.cpp.
1732         (WebCore::AuthenticationChallengeBase::AuthenticationChallengeBase):
1733         (WebCore::AuthenticationChallengeBase::previousFailureCount):
1734         (WebCore::AuthenticationChallengeBase::proposedCredential):
1735         (WebCore::AuthenticationChallengeBase::protectionSpace):
1736         (WebCore::AuthenticationChallengeBase::failureResponse):
1737         (WebCore::AuthenticationChallengeBase::error):
1738         (WebCore::AuthenticationChallengeBase::isNull):
1739         (WebCore::AuthenticationChallengeBase::nullify):
1740         (WebCore::AuthenticationChallengeBase::compare):
1741         * platform/network/AuthenticationChallengeBase.h: Copied from platform/network/AuthenticationChallenge.h.
1742         (WebCore::AuthenticationChallengeBase::platformCompare):
1743         (WebCore::operator==):
1744         (WebCore::operator!=):
1745         * platform/network/ResourceError.cpp: Removed.
1746         * platform/network/ResourceError.h: Removed.
1747         * platform/network/ResourceErrorBase.cpp: Copied from platform/network/ResourceError.cpp.
1748         (WebCore::ResourceErrorBase::lazyInit):
1749         (WebCore::ResourceErrorBase::compare):
1750         * platform/network/ResourceErrorBase.h: Copied from platform/network/ResourceError.h.
1751         (WebCore::ResourceErrorBase::isNull):
1752         (WebCore::ResourceErrorBase::domain):
1753         (WebCore::ResourceErrorBase::errorCode):
1754         (WebCore::ResourceErrorBase::failingURL):
1755         (WebCore::ResourceErrorBase::localizedDescription):
1756         (WebCore::ResourceErrorBase::ResourceErrorBase):
1757         (WebCore::ResourceErrorBase::platformLazyInit):
1758         (WebCore::ResourceErrorBase::platformCompare):
1759         (WebCore::operator==):
1760         * platform/network/ResourceResponseBase.cpp:
1761         (WebCore::ResourceResponseBase::isHTTP):
1762         (WebCore::ResourceResponseBase::url):
1763         (WebCore::ResourceResponseBase::setUrl):
1764         (WebCore::ResourceResponseBase::mimeType):
1765         (WebCore::ResourceResponseBase::setMimeType):
1766         (WebCore::ResourceResponseBase::expectedContentLength):
1767         (WebCore::ResourceResponseBase::setExpectedContentLength):
1768         (WebCore::ResourceResponseBase::textEncodingName):
1769         (WebCore::ResourceResponseBase::setTextEncodingName):
1770         (WebCore::ResourceResponseBase::suggestedFilename):
1771         (WebCore::ResourceResponseBase::setSuggestedFilename):
1772         (WebCore::ResourceResponseBase::httpStatusCode):
1773         (WebCore::ResourceResponseBase::setHTTPStatusCode):
1774         (WebCore::ResourceResponseBase::httpStatusText):
1775         (WebCore::ResourceResponseBase::setHTTPStatusText):
1776         (WebCore::ResourceResponseBase::httpHeaderField):
1777         (WebCore::ResourceResponseBase::setHTTPHeaderField):
1778         (WebCore::ResourceResponseBase::httpHeaderFields):
1779         (WebCore::ResourceResponseBase::isAttachment):
1780         (WebCore::ResourceResponseBase::setExpirationDate):
1781         (WebCore::ResourceResponseBase::expirationDate):
1782         (WebCore::ResourceResponseBase::setLastModifiedDate):
1783         (WebCore::ResourceResponseBase::lastModifiedDate):
1784         (WebCore::ResourceResponseBase::lazyInit):
1785         (WebCore::ResourceResponseBase::compare):
1786         * platform/network/ResourceResponseBase.h:
1787         (WebCore::ResourceResponseBase::ResourceResponseBase):
1788         (WebCore::ResourceResponseBase::platformLazyInit):
1789         (WebCore::ResourceResponseBase::platformCompare):
1790         (WebCore::operator==):
1791         * platform/network/cf/AuthenticationCF.cpp:
1792         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1793         (WebCore::AuthenticationChallenge::platformCompare):
1794         * platform/network/cf/AuthenticationChallenge.h: Added.
1795         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1796         (WebCore::AuthenticationChallenge::sourceHandle):
1797         (WebCore::AuthenticationChallenge::cfURLAuthChallengeRef):
1798         * platform/network/cf/ResourceError.h: Added.
1799         (WebCore::ResourceError::ResourceError):
1800         * platform/network/cf/ResourceErrorCF.cpp:
1801         (WebCore::ResourceError::ResourceError):
1802         (WebCore::ResourceError::platformLazyInit):
1803         (WebCore::ResourceError::platformCompare):
1804         (WebCore::ResourceError::operator CFStreamError):
1805         * platform/network/cf/ResourceResponse.h:
1806         (WebCore::ResourceResponse::ResourceResponse):
1807         * platform/network/cf/ResourceResponseCFNet.cpp:
1808         (WebCore::ResourceResponse::platformLazyInit):
1809         * platform/network/curl/AuthenticationChallenge.h: Added.
1810         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1811         * platform/network/curl/ResourceError.h: Added.
1812         (WebCore::ResourceError::ResourceError):
1813         * platform/network/curl/ResourceResponse.h:
1814         (WebCore::ResourceResponse::ResourceResponse):
1815         * platform/network/mac/AuthenticationChallenge.h: Added.
1816         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1817         (WebCore::AuthenticationChallenge::sender):
1818         (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
1819         * platform/network/mac/AuthenticationMac.mm:
1820         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1821         (WebCore::AuthenticationChallenge::platformCompare):
1822         * platform/network/mac/ResourceError.h: Added.
1823         (WebCore::ResourceError::ResourceError):
1824         * platform/network/mac/ResourceErrorMac.mm:
1825         (WebCore::ResourceError::platformLazyInit):
1826         (WebCore::ResourceError::platformCompare):
1827         * platform/network/mac/ResourceResponse.h:
1828         (WebCore::ResourceResponse::ResourceResponse):
1829         * platform/network/mac/ResourceResponseMac.mm:
1830         (WebCore::ResourceResponse::platformLazyInit):
1831         (WebCore::ResourceResponse::platformCompare):
1832         * platform/network/qt/AuthenticationChallenge.h: Added.
1833         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1834         * platform/network/qt/ResourceError.h: Added.
1835         (WebCore::ResourceError::ResourceError):
1836         * platform/network/qt/ResourceResponse.h:
1837         (WebCore::ResourceResponse::ResourceResponse):
1838         * xml/XSLTProcessor.cpp:
1839
1840 2008-02-25  Anders Carlsson  <andersca@apple.com>
1841
1842         Reviewed by Darin.
1843
1844         Move remaining render style objects over to start with a refcount of 1 and get
1845         rid of DeprecatedDataRef.
1846         
1847         * rendering/DataRef.h:
1848         (WebCore::DataRef::operator*):
1849         (WebCore::DataRef::operator->):
1850         * rendering/RenderStyle.h:
1851         * rendering/SVGRenderStyle.cpp:
1852         (WebCore::SVGRenderStyle::SVGRenderStyle):
1853         * rendering/SVGRenderStyle.h:
1854         (WebCore::SVGRenderStyle::create):
1855         (WebCore::SVGRenderStyle::copy):
1856         * rendering/SVGRenderStyleDefs.cpp:
1857         (StyleFillData::StyleFillData):
1858         (StyleStrokeData::StyleStrokeData):
1859         (StyleStopData::StyleStopData):
1860         (StyleTextData::StyleTextData):
1861         (StyleClipData::StyleClipData):
1862         (StyleMaskData::StyleMaskData):
1863         (StyleMarkerData::StyleMarkerData):
1864         (StyleMiscData::StyleMiscData):
1865         * rendering/SVGRenderStyleDefs.h:
1866         (WebCore::StyleFillData::create):
1867         (WebCore::StyleFillData::copy):
1868         (WebCore::StyleStrokeData::create):
1869         (WebCore::StyleStrokeData::copy):
1870         (WebCore::StyleStopData::create):
1871         (WebCore::StyleStopData::copy):
1872         (WebCore::StyleTextData::create):
1873         (WebCore::StyleTextData::copy):
1874         (WebCore::StyleClipData::create):
1875         (WebCore::StyleClipData::copy):
1876         (WebCore::StyleMaskData::create):
1877         (WebCore::StyleMaskData::copy):
1878         (WebCore::StyleMarkerData::create):
1879         (WebCore::StyleMarkerData::copy):
1880         (WebCore::StyleMiscData::create):
1881         (WebCore::StyleMiscData::copy):
1882
1883 2008-02-25  Dan Bernstein  <mitz@apple.com>
1884
1885         Reviewed by Dave Hyatt.
1886
1887         - remove file-static BidiRun variables from bidi.cpp
1888
1889         * platform/text/BidiResolver.h:
1890         (WebCore::BidiResolver::): Initialize m_logicallyLastRun.
1891         (WebCore::BidiResolver::logicallyLastRun): Added.
1892         (WebCore::BidiResolver::runCount): Made unsigned.
1893         (WebCore::::reverseRuns): Changed ints to unsigned.
1894         (WebCore::::createBidiRunsForLine): Made this function set
1895         m_logicallyLastRun.
1896         * rendering/RenderBlock.h:
1897         * rendering/bidi.cpp:
1898         (WebCore::BidiState::addRun): Removed setting of sLogicallyLastBidiRun.
1899         (WebCore::RenderBlock::constructLine): Removed unused start parameter
1900         and added run count and first and last run parameters. Replaced end
1901         parameter with lastLine boolean and endObject pointer.
1902         (WebCore::RenderBlock::computeHorizontalPositionsForLine): Added first
1903         and logically last run parameters.
1904         (WebCore::RenderBlock::computeVerticalPositionsForLine): Added firstRun
1905         parameter.
1906         (WebCore::RenderBlock::bidiReorderLine): Removed setting of static
1907         variables.
1908         (WebCore::RenderBlock::layoutInlineChildren): Changed to use BidiState
1909         accessors instead of file statics.
1910
1911 2008-02-25  Rodney Dawes  <dobey@wayofthemonkey.com>
1912
1913         Reviewed by Jon Honeycutt.
1914
1915         http://bugs.webkit.org/show_bug.cgi?id=16924
1916         Bug 16924: Shared PluginDatabase, PluginPackage, and PlugInInfoStore implementations
1917
1918         Add PluginInfoStore.cpp and new PluginDatabase.cpp to GTK+ and Qt ports.
1919         Remove old PlugInInfoStoreQt.cpp as it is obsoleted by shared code.
1920         Add PluginInfoStore, PluginDatabase, and PluginStream files to Wx build.
1921         Add new PluginDatabase.cpp to Windows build.
1922         Add temporary stubs for new PluginDatabase and PluginPackage.
1923         shared classes to GTK+, Qt, and Wx ports.
1924         Copy PluginDatabaseWin.cpp to PluginDatabase.cpp to preserve history.
1925         Remove shared code from PluginDatabaseWin.cpp.
1926         Remove Windows-specific code from PluginDatabase.cpp.
1927         Use PlatformModule and PlatformFileTime instead of HMODULE and FILETIME.
1928         Remove extraneous PluginPackage:: from hash() class method prototype.
1929         Subsume storeFileVersion into PluginPackage::fetchInfo.
1930         Add cross-platform PlatformModuleVersion type definition.
1931         Use PlatformModuleVersion to store the module version.
1932         Rename m_fileVersion[ML]S to m_moduleVersion.
1933         Change compareFileVersion to use PlatformModuleVersion as the argument.
1934         Move PluginView::determineQuirks and m_quirks to PluginPackage.
1935         Updated determineQuirks for the PlatformModuleVersion.
1936
1937         * GNUmakefile.am:
1938         * WebCore.pro:
1939         * WebCoreSources.bkl:
1940         * webcore-base.bkl:
1941         * WebCore.vcproj/WebCore.vcproj:
1942         * Platform/FileSystem.h:
1943         * platform/qt/PlugInInfoStoreQt.cpp:
1944         * platform/gtk/TemporaryLinkStubs.cpp:
1945         * platform/qt/TemporaryLinkStubs.cpp:
1946         * platform/wx/TemporaryLinkStubs.cpp:
1947         * plugins/PluginDatabase.cpp:
1948         * plugins/PluginDatabase.h:
1949         * plugins/win/PluginDatabaseWin.cpp:
1950         * plugins/PluginPackage.h:
1951         * plugins/win/PluginPackageWin.cpp:
1952         * plugins/PluginView.h:
1953         * plugins/win/PluginViewWin.cpp:
1954
1955 2008-02-25  Anders Carlsson  <andersca@apple.com>
1956
1957         Reviewed by Darin.
1958
1959         Make more style objects start out with a refcount of 1.
1960         
1961         * rendering/RenderStyle.cpp:
1962         (WebCore::StyleSurroundData::StyleSurroundData):
1963         (WebCore::StyleBoxData::StyleBoxData):
1964         (WebCore::StyleVisualData::StyleVisualData):
1965         (WebCore::StyleBackgroundData::StyleBackgroundData):
1966         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1967         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
1968         (WebCore::StyleInheritedData::StyleInheritedData):
1969         * rendering/RenderStyle.h:
1970         (WebCore::StyleSurroundData::create):
1971         (WebCore::StyleSurroundData::copy):
1972         (WebCore::StyleBoxData::create):
1973         (WebCore::StyleBoxData::copy):
1974         (WebCore::StyleVisualData::create):
1975         (WebCore::StyleVisualData::copy):
1976         (WebCore::StyleBackgroundData::create):
1977         (WebCore::StyleBackgroundData::copy):
1978         (WebCore::StyleBackgroundData::~StyleBackgroundData):
1979         (WebCore::StyleRareNonInheritedData::create):
1980         (WebCore::StyleRareNonInheritedData::copy):
1981         (WebCore::StyleRareInheritedData::create):
1982         (WebCore::StyleRareInheritedData::copy):
1983         (WebCore::StyleInheritedData::create):
1984         (WebCore::StyleInheritedData::copy):
1985
1986 2008-02-25  Anders Carlsson  <andersca@apple.com>
1987
1988         Reviewed by Darin.
1989
1990         Make some of the refcounted style objects start out with a refcount of 1.
1991
1992         * rendering/DataRef.h:
1993         Make a DeprecatedDataRef class which is just a copy of the old DataRef class.
1994         Change DataRef to use ::create() and ::copy() instead of the constructors.
1995         Change DataRef's pointer to be a RefPtr instead.
1996
1997         * rendering/RenderStyle.cpp:
1998         (WebCore::StyleMarqueeData::StyleMarqueeData):
1999         (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
2000         (WebCore::StyleMultiColData::StyleMultiColData):
2001         (WebCore::StyleTransformData::StyleTransformData):
2002         Start with a RefCount of 1.
2003         
2004         * rendering/RenderStyle.h:
2005         * rendering/SVGRenderStyle.h:
2006         Add ::create() and ::copy() methods. Make not yet converted classes use DeprecatedDataRef.
2007
2008 2008-02-25  Darin Adler  <darin@apple.com>
2009
2010         Reviewed by Anders.
2011         Based on a patch by Tim Steele <timsteele41@gmail.com>.
2012
2013         - fix http://bugs.webkit.org/show_bug.cgi?id=17186
2014           Fragment navigation within a page permanently cancels meta refresh
2015
2016         Test: fast/loader/meta-refresh-anchor-click.html
2017
2018         * loader/FrameLoader.cpp:
2019         (WebCore::FrameLoader::load): When load type is FrameLoadTypeRedirectWithLockedHistory,
2020         always do a real load. This makes sure that meta refresh loads are treated as real loads
2021         rather than anchor scrolls. Also tweaked formatting a bit.
2022         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): This function is
2023         an alternate way to complete a load, so it needs to start the redirection timer if
2024         redirection has already been scheduled.
2025
2026 2008-02-25  Dan Bernstein  <mitz@apple.com>
2027
2028         Reviewed by Darin Adler.
2029
2030         - avoid counting spaces in non-justified text
2031
2032         * rendering/bidi.cpp:
2033         Removed file-static numSpaces.
2034         (WebCore::BidiState::addRun): Removed space counting.
2035         (WebCore::RenderBlock::computeHorizontalPositionsForLine): Added space
2036         counting, conditional on the block having the text-align: justify
2037         property value.
2038         (WebCore::RenderBlock::bidiReorderLine): Removed initialization of
2039         numSpaces.
2040
2041 2008-02-25  Darin Adler  <darin@apple.com>
2042
2043         Requested by Steve.
2044
2045         * platform/graphics/cg/ImageSourceCG.cpp:
2046         (WebCore::ImageSource::createFrameAtIndex): Put the string into a global
2047         variable (because CFSTR is inefficient on Windows).
2048
2049 2008-02-25  Darin Adler  <darin@apple.com>
2050
2051         Reviewed by Adam.
2052
2053         * WebCore.base.exp: Export blankURL, and sort the file.
2054
2055 2008-02-25  Simon Hausmann  <hausmann@webkit.org>
2056
2057         Reviewed by Mark Rowe.
2058
2059         Fix compilation with gcc 4.3, added stdio.h and unistd.h inclusions.
2060
2061         * dom/Position.cpp:
2062         * dom/Range.cpp:
2063         * editing/Selection.cpp:
2064         * editing/SelectionController.cpp:
2065         * editing/VisiblePosition.cpp:
2066         * history/HistoryItem.cpp:
2067         * loader/Cache.cpp:
2068         * loader/FTPDirectoryParser.cpp:
2069         * platform/KURL.cpp:
2070         * platform/gtk/FileSystemGtk.cpp:
2071         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2072         * platform/text/TextCodecLatin1.cpp:
2073         * platform/text/TextCodecUserDefined.cpp:
2074         * rendering/CounterNode.cpp:
2075         * rendering/RenderObject.cpp:
2076
2077 2008-02-25  Johnny Ding  <johnnyding.webkit@gmail.com>
2078
2079         Reviewed by Darin Adler.
2080
2081         - fix http://bugs.webkit.org/show_bug.cgi?id=17444
2082
2083         In HTMLTokenizer::write, the code checks 'pendingScripts.isEmpty()' to decide
2084         whether to save prependingSrc or not. However, in HTMLTokenizer::scriptHandler
2085         and HTMLTokenizer::scriptExecution, the code checks testBit:LoadingExtScript
2086         to decide whether to save prependingSrc or not. The later behavior is not right
2087         because, in scriptHandler and scriptExecution, even the pendingScripts queue is
2088         empty, the testBit:LoadingExtScript might be TRUE.
2089
2090         Test: fast/tokenizer/nested-multiple-scripts.html
2091
2092         * html/HTMLTokenizer.cpp:
2093         (WebCore::HTMLTokenizer::scriptHandler): check pendingScripts.isEmpty() instead of
2094         checking state.loadingExtScript().
2095         (WebCore::HTMLTokenizer::scriptExecution): check pendingScripts.isEmpty() instead of
2096         checking state.loadingExtScript().
2097
2098 2008-02-24  Darin Adler  <darin@apple.com>
2099
2100         * dom/Document.h: Removed stray duplicate declaration of
2101         RegisteredEventListenerList.
2102
2103 2008-02-24  Darin Adler  <darin@apple.com>
2104
2105         * dom/Range.cpp:
2106         (WebCore::Range::surroundContents): Removed incorrect comment.
2107         I added it a while ago, and I was just mixed up.
2108
2109 2008-02-24  Darin Adler  <darin@apple.com>
2110
2111         - quick follow-up to that last check-in
2112
2113         * platform/graphics/cg/ImageSourceCG.cpp:
2114         (WebCore::ImageSource::createFrameAtIndex): Use CFEqual instead of
2115         WebCore::String's == for speed.
2116
2117 2008-02-24  Michael Knaup  <michael.knaup@mac.com>
2118
2119         Reviewed by Darin.
2120
2121         Bug 8749: XBM rendered incorrectly as black on white
2122
2123         xbm images are now created and rendered using black on a
2124         transparent background (same behavior as in Firefox)
2125
2126         Test: platform/mac/fast/canvas/canvas-draw-xbm-image.html
2127
2128         * platform/graphics/cg/ImageSourceCG.cpp:
2129         (WebCore::ImageSource::createFrameAtIndex):
2130
2131 2008-02-24  Dan Bernstein  <mitz@apple.com>
2132
2133         Reviewed by Darin Adler.
2134
2135         - fix http://bugs.webkit.org/show_bug.cgi?id=17471
2136           REGRESSION (r30438): Crash in deleteLineBoxes in cursor-adjusting code browsing Acid3
2137
2138         Test: http/tests/misc/object-image-error.html
2139
2140         * html/HTMLObjectElement.cpp:
2141         (WebCore::HTMLObjectElement::attach): Added an early return in case
2142         updateFromElement() has changed the object to use fallback content.
2143
2144 2008-02-24  Dan Bernstein  <mitz@apple.com>
2145
2146         Reviewed by Darin Adler.
2147
2148         - fix float positioning when a float that does not fit on the line is
2149           followed by a float that does
2150
2151         Test: fast/block/float/narrow-after-wide.html
2152
2153         * rendering/bidi.cpp:
2154         (WebCore::RenderBlock::findNextLineBreak): Changed to not position any
2155         more floats on the line once a float that does not fit is encountered.
2156         That float should be pushed to the next line, and so should all floats
2157         that follow, regardless of whether they can fit on the current line.
2158
2159 2008-02-24  Darin Adler  <darin@apple.com>
2160
2161         Reviewed by Sam.
2162
2163         - fix http://bugs.webkit.org/show_bug.cgi?id=16770
2164           Acid3 expects :visited styled links to restyle on iframe load
2165
2166         Disentangle global history updating from the back/forward history.
2167         There are many cases where we don't want to create a new back/forward
2168         item, but we do still want to add to the global history (used for visited
2169         link coloring) in those cases.
2170
2171         Test: fast/history/subframe-is-visited.html
2172
2173         * loader/FrameLoader.cpp:
2174         (WebCore::FrameLoader::updateGlobalHistory): Renamed from
2175         addHistoryForCurrentLocation and removed the back/forward handling.
2176         (WebCore::FrameLoader::updateHistoryForStandardLoad): Streamlined logic a
2177         bit. Replaced call to addHistoryForCurrentLocation with a call to
2178         addBackForwardItemClippedAtTarget. Added an unconditional call to
2179         updateGlobalHistory.
2180         (WebCore::FrameLoader::updateHistoryForClientRedirect): Added a FIXME;
2181         why doesn't this function update global history?
2182         (WebCore::FrameLoader::updateHistoryForBackForwardNavigation): Ditto.
2183         (WebCore::FrameLoader::updateHistoryForReload): Replaced the direct call
2184         the client with a call to the new updateGlobalHistory function.
2185         (WebCore::FrameLoader::updateHistoryForRedirectWithLockedHistory): Did
2186         the same changes as for updateHistoryForStandardLoad.
2187         * loader/FrameLoader.h: More of the same.
2188
2189         * loader/FrameLoaderClient.h: Removed updateGlobalHistoryForReload and
2190         renamed updateGlobalHistoryForStandardLoad to updateGlobalHistory.
2191
2192         * svg/graphics/SVGImageEmptyClients.h:
2193         (WebCore::SVGEmptyFrameLoaderClient::updateGlobalHistory): Updated to
2194         match the above.
2195
2196 2008-02-23  Darin Adler  <darin@apple.com>
2197
2198         Reviewed by Sam.
2199
2200         - fix http://bugs.webkit.org/show_bug.cgi?id=17508
2201           REGRESSION (r30535): mailto regression tests failing
2202
2203         * html/HTMLFormElement.cpp:
2204         (WebCore::HTMLFormElement::submit): Restore the old logic, with its unpleasant
2205         trip through String do to the replace operation. It's inefficient, but there's
2206         no real reason to worry about the efficiency of mailto forms, since that feature
2207         is nearly obsolete.
2208
2209 2008-02-23  Darin Adler  <darin@apple.com>
2210
2211         Reviewed by Sam.
2212
2213         - replace SegmentedString's use of DeprecatedValueList with Deque
2214
2215         Testing indicates this is a slight speed-up for page loading.
2216
2217         * platform/text/SegmentedString.cpp:
2218         (WebCore::SegmentedString::length): Update to use Deque.
2219         (WebCore::SegmentedString::setExcludeLineNumbers): Ditto.
2220         (WebCore::SegmentedString::append): Ditto.
2221         (WebCore::SegmentedString::prepend): Ditto.
2222         (WebCore::SegmentedString::advanceSubstring): Ditto.
2223         (WebCore::SegmentedString::toString): Ditto.
2224         * platform/text/SegmentedString.h: Tweak formatting. Don't bother making an entire
2225         class private with a single friend. Change m_sbstrings from a DeprecatedValueList
2226         to a Deque.
2227
2228 2008-02-23  Darin Adler  <darin@apple.com>
2229
2230         Reviewed by Anders.
2231
2232         - fix http://bugs.webkit.org/show_bug.cgi?id=17506
2233           REGRESSION (r30535): ASSERTION FAILED: i < size()
2234
2235         * loader/TextResourceDecoder.cpp:
2236         (WebCore::findTextEncoding): Fix off-by-one in code that null-terminates
2237         the C string here.
2238
2239 2008-02-23  Matt Lilek  <webkit@mattlilek.com>
2240
2241         Not reviewed, build fix.
2242
2243         * platform/network/cf/FormDataStreamCFNet.cpp:
2244         (WebCore::httpBodyFromRequest):
2245         * plugins/win/PluginViewWin.cpp:
2246         (WebCore::PluginView::handlePost):
2247
2248 2008-02-23  Dan Bernstein  <mitz@apple.com>
2249
2250         - fix a typo
2251
2252         * platform/graphics/win/GlyphPageTreeNodeCGWin.cpp:
2253         (WebCore::GlyphPage::fill):
2254         * platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp:
2255         (WebCore::GlyphPage::fill):
2256
2257 2008-02-23  Dan Bernstein  <mitz@apple.com>
2258
2259         Reviewed by Anders Carlsson.
2260
2261         - fix GlyphPage::fill() logic for partial page fills
2262
2263         * platform/graphics/win/GlyphPageTreeNodeCGWin.cpp:
2264         (WebCore::GlyphPage::fill): Changed the test for non-BMP characters to
2265         work correctly when the length parameter is less than a full page size.
2266         Also updated the comment.
2267         * platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp:
2268         (WebCore::GlyphPage::fill): Ditto.
2269
2270 2008-02-23  Kevin Ollivier  <kevino@theolliviers.com>
2271
2272         Reviewed by Darin Adler.
2273
2274         Move text drawing into wxcode, as we need platform-dependent
2275         APIs for drawing non-kerned text, which wx doesn't yet have.
2276         (But hopefully will, once these APIs are fleshed out on all
2277         platforms!)
2278
2279         http://bugs.webkit.org/show_bug.cgi?id=17396
2280
2281         * platform/graphics/wx/FontWx.cpp:
2282         (WebCore::Font::drawGlyphs):
2283         * platform/wx/wxcode/gtk/non-kerned-drawing.cpp: Added.
2284         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp: Added.
2285         * platform/wx/wxcode/non-kerned-drawing.h: Added.
2286         * platform/wx/wxcode/win/non-kerned-drawing.cpp: Added.
2287         * webcore-wx.bkl:
2288
2289 2008-02-23  Darin Adler  <darin@apple.com>
2290
2291         Pointed out by Mitz.
2292
2293         * loader/TextResourceDecoder.cpp:
2294         (WebCore::find): Fix a "==" that was supposed to be ">".
2295         (WebCore::findIgnoringCase): Ditto.
2296
2297 2008-02-23  Darin Adler  <darin@apple.com>
2298
2299         Reviewed by Sam.
2300
2301         * html/HTMLFormElement.cpp:
2302         (WebCore::appendEncodedString): Fix buffer overrun in the code I just landed.
2303
2304 2008-02-23  Darin Adler  <darin@apple.com>
2305
2306         Reviewed by Sam.
2307
2308         - remove all but 1 remaining use of DeprecatedCString
2309         - change FormData to start refcount at 1
2310
2311         * html/HTMLFormElement.cpp:
2312         (WebCore::appendString): Added. Helpers for Vector<char>.
2313         (WebCore::appendEncodedString): Renamed from encodeCString and changed to
2314         append to an existing Vector<char> to cut down a bit on memory allocation.
2315         (WebCore::HTMLFormElement::formData): Replace the DeprecatedCString called
2316         enc_string with a Vector<char> called encodedData. Change to use the new
2317         FormData::create function.
2318         (WebCore::HTMLFormElement::submit): Same thing, for the mailto form code.
2319
2320         * loader/TextResourceDecoder.cpp:
2321         (WebCore::find): Added. Helper for searching in char* with length.
2322         (WebCore::findIgnoringCase): Ditto.
2323         (WebCore::findTextEncoding): Added. Helper for looking up a text encoding
2324         when we have a char* with length rather than a null-terminated char*.
2325         (WebCore::findXMLEncoding): Changed to use char* and length rather than
2326         DeprecatedCString. Also fixed some things that would be one-character
2327         buffer overruns in a string that's not null-terminated.
2328         (WebCore::TextResourceDecoder::checkForCSSCharset): Change to use
2329         findTextEncoding rather than constructing a CString to pass to the
2330         TextEncodingconstructor.
2331         (WebCore::TextResourceDecoder::checkForHeadCharset): Ditto.
2332
2333         * platform/network/FormData.cpp:
2334         (WebCore::FormData::FormData): Changed to start refcount at 1.
2335         (WebCore::FormData::create): Added.
2336         (WebCore::FormData::copy): Call adoptRef since refcount starts at 1.
2337         * platform/network/FormData.h: Made constructor private. Added create functions.
2338
2339         * platform/network/mac/ResourceRequestMac.mm:
2340         (WebCore::ResourceRequest::doUpdateResourceRequest): Call FormData::create.
2341         * xml/XMLHttpRequest.cpp:
2342         (WebCore::XMLHttpRequest::send): Ditto.
2343
2344 2008-02-23  Darin Adler  <darin@apple.com>
2345
2346         Reviewed by Anders.
2347
2348         - http://bugs.webkit.org/show_bug.cgi?id=17067
2349           eliminate attributes parameter from JSObject::put for speed/clarity
2350
2351         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2352         (WebCore::JSCSSStyleDeclaration::customPut): Remove attributes argument.
2353
2354         * bindings/js/JSCanvasPixelArrayCustom.cpp:
2355         (WebCore::JSCanvasPixelArray::indexGetter): Use early exit idiom.
2356         (WebCore::JSCanvasPixelArray::indexSetter): Moved length check into the
2357         CanvasPixelArray object, for consistency with the getter. Removed attributes
2358         argument.
2359
2360         * bindings/js/JSDOMWindowCustom.cpp:
2361         (WebCore::JSDOMWindow::customPut): Removed special case for variable
2362         initialization, which is not needed since that does use put any more.
2363         Removed attributes argument.
2364
2365         * bindings/js/JSEventTargetBase.h:
2366         (WebCore::JSEventTargetBase::putValueProperty): Removed attributes argument.
2367         (WebCore::JSEventTargetBase::put): Ditto.
2368         (WebCore::JSEventTargetPrototype::self): Removed Internal flag.
2369         * bindings/js/JSEventTargetNode.cpp:
2370         (WebCore::JSEventTargetNode::put): Removed attributes argument.
2371         (WebCore::JSEventTargetNode::putValueProperty): Ditto.
2372         * bindings/js/JSEventTargetNode.h: Ditto.
2373         * bindings/js/JSHTMLAppletElementCustom.cpp:
2374         (WebCore::JSHTMLAppletElement::customPut): Ditto.
2375         * bindings/js/JSHTMLEmbedElementCustom.cpp:
2376         (WebCore::JSHTMLEmbedElement::customPut): Ditto.
2377         * bindings/js/JSHTMLInputElementBase.cpp:
2378         (WebCore::JSHTMLInputElementBase::put): Ditto.
2379         (WebCore::JSHTMLInputElementBase::putValueProperty): Ditto.
2380         * bindings/js/JSHTMLInputElementBase.h: Ditto.
2381         * bindings/js/JSHTMLObjectElementCustom.cpp:
2382         (WebCore::JSHTMLObjectElement::customPut): Ditto.
2383         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
2384         (WebCore::JSHTMLOptionsCollection::indexSetter): Ditto.
2385         * bindings/js/JSHTMLSelectElementCustom.cpp:
2386         (WebCore::JSHTMLSelectElement::indexSetter): Ditto.
2387         * bindings/js/JSHistoryCustom.cpp:
2388         (WebCore::JSHistory::customPut): Ditto.
2389         * bindings/js/JSLocation.cpp:
2390         (WebCore::JSLocation::put): Ditto.
2391         * bindings/js/JSLocation.h: Ditto.
2392         * bindings/js/JSXMLHttpRequest.cpp:
2393         (WebCore::JSXMLHttpRequest::put): Ditto.
2394         (WebCore::JSXMLHttpRequest::putValueProperty): Ditto.
2395         * bindings/js/JSXMLHttpRequest.h: Ditto.
2396
2397         * bindings/js/kjs_dom.cpp:
2398         (WebCore::getRuntimeObject): Changed return type to JSObject*.
2399         * bindings/js/kjs_dom.h: Ditto.
2400
2401         * bindings/js/kjs_events.cpp:
2402         (WebCore::JSClipboard::put): Removed attributes argument.
2403         (WebCore::JSClipboard::putValueProperty): Ditto.
2404         * bindings/js/kjs_events.h: Ditto.
2405
2406         * bindings/js/kjs_html.cpp:
2407         (WebCore::runtimeObjectGetter): Updated for change to getRuntimeObject to
2408         return a JSObject. Used early exit idiom.
2409         (WebCore::runtimeObjectPropertyGetter): Ditto.
2410         (WebCore::runtimeObjectCustomGetOwnPropertySlot): Ditto.
2411         (WebCore::runtimeObjectCustomPut): Use hasProperty to check for properties
2412         that we should put with the property syntax instead of canPut.
2413         (WebCore::runtimeObjectImplementsCall): Ditto.
2414         (WebCore::runtimeObjectCallAsFunction): Ditto.
2415         * bindings/js/kjs_html.h: Removed attributes argument to runtimeObjectCustomPut.
2416
2417         * bindings/js/kjs_window.cpp:
2418         (KJS::Window::put): Removed attributes argument.
2419         * bindings/js/kjs_window.h: Ditto.
2420
2421         * bindings/scripts/CodeGeneratorJS.pm: Removed attributes argument from put,
2422         putValueProperty, customPut, and indexSetter.
2423
2424         * html/CanvasPixelArray.h:
2425         (WebCore::CanvasPixelArray::set): Added index checking here, as in the get
2426         function. Before, the checking was done in the JavaScript bindings for set.
2427
2428 2008-02-23  Brent Fulgham  <bfulgham@gmail.com>
2429
2430         Reviewed by Adam and Darin.
2431
2432         http://bugs.webkit.org/show_bug.cgi?id=17442
2433         Correct the Windows Cairo implementation of GraphicsContext so
2434         that Windows 'WorldTransform' is kept in sync with the Cairo
2435         transormations.
2436
2437         Also corrects an uninitialized variable in the Cairo Windows
2438         image drag handler.
2439
2440         WARNING: NO TEST CASES ADDED OR CHANGED
2441
2442         * platform/graphics/cairo/GraphicsContextCairo.cpp:  Modify
2443           methods to call GraphicsContextPlatformPrivate calls, just
2444           as is done for the CoreGraphics version.  These calls are
2445           nop's for everything but Windows.
2446         (WebCore::GraphicsContext::savePlatformState):
2447         (WebCore::GraphicsContext::restorePlatformState):
2448         (WebCore::GraphicsContext::clip):
2449         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
2450         (WebCore::GraphicsContext::translate):
2451         (WebCore::GraphicsContext::concatCTM): Re-enable for Windows
2452         (WebCore::GraphicsContext::beginTransparencyLayer):
2453         (WebCore::GraphicsContext::endTransparencyLayer):
2454         (WebCore::GraphicsContext::rotate):
2455         (WebCore::GraphicsContext::scale):
2456         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
2457         * platform/graphics/win/GraphicsContextCGWin.cpp:  Move common
2458           code for handling WorldTransform calls to parent class.
2459         * platform/graphics/win/GraphicsContextCairoWin.cpp:  Add common
2460           code for handling WorldTransform calls.
2461           (WebCore::GraphicsContextPlatformPrivate::concatCTM):  Change
2462           implementation so that it only handles WorldTransform.  The
2463           Cairo update is done in GraphicsContextCairo.cpp
2464         * platform/graphics/win/GraphicsContextWin.cpp:  Call platform-private
2465           methods to keep WorldTransform in sync.
2466         (WebCore::GraphicsContextPlatformPrivate::save):
2467         (WebCore::GraphicsContextPlatformPrivate::restore):
2468         (WebCore::GraphicsContextPlatformPrivate::clip):
2469         (WebCore::GraphicsContextPlatformPrivate::scale):
2470         (WebCore::GraphicsContextPlatformPrivate::rotate):
2471         (WebCore::GraphicsContextPlatformPrivate::translate):
2472         * platform/win/DragImageCairoWin.cpp:
2473         (WebCore::createDragImageFromImage):  Correct uninitialized value
2474
2475 2008-02-23  Dan Bernstein  <mitz@apple.com>
2476
2477         Reviewed by Dave Hyatt.
2478
2479         - make non-autowrapping text clear floats
2480
2481         Test: fast/text/whitespace/nowrap-clear-float.html
2482
2483         * rendering/RenderBlock.cpp:
2484         (WebCore::RenderBlock::nextFloatBottomBelow): Renamed nearestFloat() to
2485         this and changed to avoid comparing bottom to 0 in each iteration.
2486         (WebCore::RenderBlock::getClearDelta): Updated comment for the rename.
2487         * rendering/RenderBlock.h:
2488         * rendering/bidi.cpp:
2489         (WebCore::RenderBlock::fitBelowFloats): Added. Factored out of
2490         findNextLineBreak() and simplified.
2491         (WebCore::RenderBlock::findNextLineBreak): Changed to call
2492         fitBelowFloats(). Fixed the bug by trying to fit below floats in the
2493         case of non-wrapping text. Removed some redundancy.
2494
2495 2008-02-23  Sam Weinig  <sam@webkit.org>
2496
2497         Reviewed by Oliver Hunt.
2498
2499         Fix for http://bugs.webkit.org/show_bug.cgi?id=17504
2500         Speed up DOM lists array subscription syntax by using the fast 
2501         getOwnPropertySlot and set paths
2502
2503         - 6x speed improvement on Oliver's ImageData put test.
2504
2505         * bindings/scripts/CodeGeneratorJS.pm: Add fast path for getOwnPropertySlot
2506         and put when an indexGetter or indexSetter is used.  We can not use the fast
2507         path if an overridingNameGetter is used as there would be no way to override.
2508
2509 2008-02-23  Kevin Ollivier  <kevino@theolliviers.com>
2510
2511         wx build fix after JSImageData.cpp was added.
2512
2513         * WebCoreSources.bkl:
2514
2515 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
2516
2517         Windows build fix - move ThreadCondition implementation from WebCore to WTF.
2518
2519         * WebCore.vcproj/WebCore.vcproj:
2520         * platform/win/ThreadConditionWin.cpp: Removed.
2521
2522 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
2523
2524         Reviewed by Darin.
2525
2526         Move basic threading support from WebCore to WTF.
2527
2528         One call that remains in WebCore is callOnMainThread(), and it has its own header now.
2529
2530         * ForwardingHeaders/wtf/Locker.h: Added.
2531         * ForwardingHeaders/wtf/MessageQueue.h: Added.
2532         * ForwardingHeaders/wtf/Threading.h: Added.
2533         * GNUmakefile.am:
2534         * WebCore.pro:
2535         * WebCore.vcproj/WebCore.vcproj:
2536         * WebCore.xcodeproj/project.pbxproj:
2537         * WebCoreSources.bkl:
2538         * bindings/js/JSCustomSQLTransactionCallback.cpp:
2539         * dom/XMLTokenizer.cpp:
2540         * loader/icon/IconDatabase.cpp:
2541         (WebCore::iconDatabase):
2542         * loader/icon/IconDatabase.h:
2543         * platform/Locker.h: Removed.
2544         * platform/MainThread.h: Copied from WebCore/platform/Threading.h.
2545         (WebCore::initializeThreadingAndMainThread):
2546         * platform/MessageQueue.h: Removed.
2547         * platform/SecurityOrigin.h:
2548         * platform/Threading.h: Removed.
2549         * platform/ThreadingNone.cpp: Removed.
2550         * platform/gtk/MainThreadGtk.cpp: Copied from WebCore/platform/gtk/ThreadingGtk.cpp.
2551         * platform/gtk/ThreadingGtk.cpp: Removed.
2552         * platform/mac/MainThreadMac.mm: Copied from WebCore/platform/mac/Threading.mm.
2553         * platform/mac/Threading.mm: Removed.
2554         * platform/pthreads: Removed.
2555         * platform/pthreads/ThreadingPthreads.cpp: Removed.
2556         * platform/qt/MainThreadQt.cpp: Copied from WebCore/platform/qt/ThreadingQt.cpp.
2557         * platform/qt/ThreadingQt.cpp: Removed.
2558         * platform/sql/SQLValue.h:
2559         * platform/sql/SQLiteAuthorizer.h:
2560         * platform/sql/SQLiteDatabase.h:
2561         * platform/win/MainThreadWin.cpp: Copied from WebCore/platform/win/ThreadingWin.cpp.
2562         (WebCore::initializeThreadingAndMainThread):
2563         * platform/win/MutexWin.cpp: Removed.
2564         * platform/win/ThreadingWin.cpp: Removed.
2565         * platform/wx/MainThreadWx.cpp: Copied from WebCore/platform/wx/ThreadingWx.cpp.
2566         * platform/wx/ThreadingWx.cpp: Removed.
2567         * storage/Database.cpp:
2568         (WebCore::Database::Database):
2569         * storage/Database.h:
2570         * storage/DatabaseTask.h:
2571         * storage/DatabaseThread.h:
2572         * storage/DatabaseTracker.cpp:
2573         * storage/OriginQuotaManager.h:
2574         * storage/SQLError.h:
2575         * storage/SQLResultSet.h:
2576         * storage/SQLStatement.h:
2577         * storage/SQLStatementCallback.h:
2578         * storage/SQLStatementErrorCallback.h:
2579         * storage/SQLTransaction.h:
2580         * storage/SQLTransactionCallback.h:
2581         * storage/SQLTransactionErrorCallback.h:
2582         * webcore-wx.bkl:
2583
2584 2008-02-23  David Kilzer  <ddkilzer@apple.com>
2585
2586         Please clarify licensing for some files
2587         <http://bugs.webkit.org/show_bug.cgi?id=14970>
2588
2589         Reviewed by Darin.
2590
2591         * bindings/objc/WebScriptObject.h: Added Apple BSD-style license.
2592         * bindings/objc/WebScriptObjectPrivate.h: Ditto.
2593         * platform/text/mac/ShapeArabic.c: Added ICU license from WebCore/icu/LICENSE.
2594
2595 2008-02-22  Justin Garcia  <justin.garcia@apple.com>
2596
2597         Reviewed by Anders Carlsson.
2598
2599         <rdar://problem/5714333> Add document.getSelection()
2600         
2601         Add a synonym for window.getSelection() that FF supports.  There were requests in
2602         this bugs dupes to also support the IE only document.selection, but IE's Selection
2603         object is too different than ours currently for that to be safe (specifically, we
2604         don't support enough of IE's TextRange methods on our DOM Range object yet). I
2605         filed <rdar://problem/5761233> to cover that.
2606
2607         * dom/Document.cpp:
2608         (WebCore::Document::getSelection): Added.
2609         * dom/Document.h:
2610         * dom/Document.idl: Ditto.  JS only since this is about web compatibility.
2611
2612 2008-02-22  Oliver Hunt  <oliver@apple.com>
2613
2614         WX build fixes
2615
2616         * WebCoreSources.bkl:
2617
2618 2008-02-22  Oliver Hunt  <oliver@apple.com>
2619
2620         Once more with the cairo/qt/wx build fixing
2621
2622         * platform/graphics/cairo/ImageBufferCairo.cpp:
2623         * platform/graphics/qt/ImageBufferQt.cpp:
2624         * platform/graphics/wx/ImageBufferWx.cpp:
2625
2626 2008-02-22  Mark Rowe  <mrowe@apple.com>
2627
2628         Windows build fix.  Add missing include of DeprecatedCString.h and sort existing includes.
2629
2630         * platform/win/PasteboardWin.cpp:
2631
2632 2008-02-22  Mark Rowe  <mrowe@apple.com>
2633
2634         Speculative Windows build fix.
2635
2636         * platform/win/ClipboardUtilitiesWin.cpp:  Add missing include of DeprecatedCString.h and sort existing includes.
2637         * platform/win/ClipboardWin.cpp:  Ditto.
2638
2639 2008-02-22  Oliver Hunt  <oliver@apple.com>
2640
2641         Build fix for windows, wx and qt
2642
2643         * html/CanvasPixelArray.h:
2644         (WebCore::CanvasPixelArray::set):
2645
2646 2008-02-22  Oliver Hunt  <oliver@apple.com>
2647
2648         Unbreak windows vcproj
2649
2650         * WebCore.vcproj/WebCore.vcproj:
2651
2652 2008-02-22  Oliver Hunt  <oliver@apple.com>
2653
2654         Reviewed by Sam W.
2655
2656         Support Canvas.getImageData and Canvas.createImageData
2657         
2658         This patch adds support for all the pixel reading portions
2659         of the HTML5 Canvas spec.  There are two new types ImageData
2660         and CanvasPixelArray which are used to provide the HTML5
2661         ImageData object, and the required semantics for assignment
2662         to the ImageData data array.
2663         
2664         We only implement the CG version of ImageBuffer::getImageData,
2665         but the logic is null safe, so this will not introduce any
2666         crashes into other platforms, unfortunately it will result in
2667         JS Object detection "lying" on non-CG platforms.
2668
2669         Tests: fast/canvas/canvas-ImageData-behaviour.html
2670                fast/canvas/canvas-getImageData.html
2671
2672         * DerivedSources.make:
2673         * GNUmakefile.am:
2674         * WebCore.pro:
2675         * WebCore.vcproj/WebCore.vcproj:
2676         * WebCore.xcodeproj/project.pbxproj:
2677         * bindings/js/JSCanvasPixelArrayCustom.cpp: Added.
2678         (WebCore::JSCanvasPixelArray::indexGetter):
2679         (WebCore::JSCanvasPixelArray::indexSetter):
2680         (WebCore::toJS):
2681         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
2682         * bindings/scripts/CodeGeneratorJS.pm:
2683         * html/CanvasPixelArray.cpp: Added.
2684         (WebCore::CanvasPixelArray::create):
2685         * html/CanvasPixelArray.h: Added.
2686         (WebCore::CanvasPixelArray::data):
2687         (WebCore::CanvasPixelArray::length):
2688         (WebCore::CanvasPixelArray::set):
2689         (WebCore::CanvasPixelArray::get):
2690         * html/CanvasPixelArray.idl: Added.
2691         * html/CanvasRenderingContext2D.cpp:
2692         (WebCore::createEmptyImageData):
2693         (WebCore::CanvasRenderingContext2D::createImageData):
2694         (WebCore::CanvasRenderingContext2D::getImageData):
2695         * html/CanvasRenderingContext2D.h:
2696         * html/CanvasRenderingContext2D.idl:
2697         * html/HTMLCanvasElement.cpp:
2698         (WebCore::HTMLCanvasElement::convertLogicalToDevice):
2699         (WebCore::HTMLCanvasElement::createImageBuffer):
2700         * html/HTMLCanvasElement.h:
2701         * html/ImageData.cpp: Added.
2702         (WebCore::ImageData::create):
2703         (WebCore::ImageData::ImageData):
2704         * html/ImageData.h: Added.
2705         (WebCore::ImageData::width):
2706         (WebCore::ImageData::height):
2707         (WebCore::ImageData::data):
2708         * html/ImageData.idl: Added.
2709         * platform/graphics/ImageBuffer.h:
2710         * platform/graphics/cairo/ImageBufferCairo.cpp:
2711         (WebCore::ImageBuffer::getImageData):
2712         * platform/graphics/cg/ImageBufferCG.cpp:
2713         (WebCore::ImageBuffer::getImageData):
2714         * platform/graphics/qt/ImageBufferQt.cpp:
2715         (WebCore::ImageBuffer::getImageData):
2716         * platform/graphics/wx/ImageBufferWx.cpp:
2717         (WebCore::ImageBuffer::getImageData):
2718
2719 2008-02-22  Sam Weinig  <sam@webkit.org>
2720
2721         Rubber-stamped by Adam Roben.
2722
2723         Rid the project of the Devil known as DeprecatedString!
2724
2725         * GNUmakefile.am:
2726         * WebCore.base.exp:
2727         * WebCore.pro:
2728         * WebCore.vcproj/WebCore.vcproj:
2729         * WebCore.xcodeproj/project.pbxproj:
2730         * WebCoreSources.bkl:
2731         * dom/Node.h:
2732         * html/HTMLFormElement.cpp:
2733         * platform/DeprecatedString.cpp: Removed.
2734         * platform/DeprecatedString.h: Removed.
2735         * platform/graphics/qt/IconQt.cpp:
2736         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
2737         * platform/gtk/CookieJarGtk.cpp:
2738         * platform/gtk/CursorGtk.cpp:
2739         * platform/gtk/KeyEventGtk.cpp:
2740         * platform/mac/DeprecatedStringMac.mm: Removed.
2741         * platform/network/qt/ResourceHandleQt.cpp:
2742         * platform/network/win/CookieJarWin.cpp:
2743         (WebCore::cookies):
2744         * platform/qt/ClipboardQt.cpp:
2745         * platform/qt/CookieJarQt.cpp:
2746         * platform/qt/CursorQt.cpp:
2747         * platform/symbian/DeprecatedStringSymbian.cpp: Removed.
2748         * platform/text/AtomicString.cpp:
2749         * platform/text/AtomicString.h:
2750         * platform/text/PlatformString.h:
2751         * platform/text/String.cpp:
2752         * platform/text/StringImpl.cpp:
2753         * platform/text/qt/StringQt.cpp:
2754         (WebCore::String::String):
2755         * platform/text/wx/StringWx.cpp:
2756         * platform/win/BString.cpp:
2757         * platform/win/BString.h:
2758         * platform/win/PasteboardWin.cpp:
2759
2760 2008-02-22  Sam Weinig  <sam@webkit.org>
2761
2762         Reviewed by Geoff Garen.
2763
2764         - Remove use of DeprecatedString in CSSStyleSelector.
2765
2766         * css/CSSStyleSelector.cpp:
2767         (WebCore::findHash): Removed.  Use find instead.
2768         (WebCore::findSlashDotDotSlash): Changed to take a UChar* and a length.
2769         (WebCore::findSlashSlash): Ditto.
2770         (WebCore::findSlashDotSlash): Ditto.
2771         (WebCore::containsColonSlashSlash): Ditto.
2772         (WebCore::cleanPath): Change to operate on a String.
2773         (WebCore::checkPseudoState): Changed to use a Vector as a buffer.
2774
2775 2008-02-22  Geoffrey Garen  <ggaren@apple.com>
2776
2777         Reviewed by Sam Weinig.
2778         
2779         Fixed <rdar://problem/5057509> Repro leak of JSXMLHttpRequest and
2780         associated objects @ www.viamichelin.it, which was probably an underlying
2781         cause of <rdar://problem/5744037> Gmail out of memory (17455)
2782         
2783         If SubresourceLoader::create returned NULL, we would ref() / gcProtect()
2784         the XMLHttpRequest but think we hadn't, therefore never
2785         calling deref() / gcUnprotect().
2786         
2787         This could happen at gmail.com, since gmail.com attempts to send
2788         XMLHttpRequests from unload handlers in order to gather usage statistics.
2789         (According to comments in the code, SubresourceLoader::create returns
2790         NULL when called from an unload handler.)
2791
2792         The solution is to ref() / gcProtect() only if SubresourceLoader::create
2793         doesn't return NULL. This make sense, since we only need to protect the
2794         request as long as it has an outstanding network transaction.
2795         
2796         * xml/XMLHttpRequest.cpp:
2797         (WebCore::XMLHttpRequest::XMLHttpRequest):
2798         (WebCore::XMLHttpRequest::send):
2799
2800 2008-02-22  Darin Adler  <darin@apple.com>
2801
2802         Reviewed, tweaked and landed by Sam.
2803
2804         - Make RegularExpression operate on Strings instead of DeprecatedStrings.
2805
2806         * dom/DOMImplementation.cpp:
2807         (WebCore::DOMImplementation::isXMLMIMEType): Use string instead of DeprecatedString
2808         to build up the RegularExpression.
2809         * page/Frame.cpp:
2810         (WebCore::createRegExpForLabels): Use String instead of DeprecatedString.
2811         (WebCore::Frame::searchForLabelsAboveCell): Ditto.
2812         (WebCore::Frame::searchForLabelsBeforeElement): Ditto.
2813         (WebCore::Frame::matchLabelsAgainstElement): Ditto.
2814         * page/Frame.h:
2815         * page/mac/FrameMac.mm:
2816         (WebCore::regExpForLabels): Ditto.
2817         (WebCore::Frame::searchForNSLabelsAboveCell): Ditto.
2818         (WebCore::Frame::searchForLabelsBeforeElement): Ditto.
2819         (WebCore::Frame::matchLabelsAgainstElement): Ditto.
2820
2821         * platform/text/RegularExpression.cpp:
2822         (WebCore::RegularExpression::Private::Private):
2823         (WebCore::RegularExpression::Private::compile):
2824         (WebCore::RegularExpression::RegularExpression):
2825         (WebCore::RegularExpression::operator=):
2826         (WebCore::RegularExpression::pattern):
2827         (WebCore::RegularExpression::match):
2828         (WebCore::RegularExpression::search):
2829         (WebCore::RegularExpression::searchRev):
2830         (WebCore::replace): Added.
2831         * platform/text/RegularExpression.h:
2832         Change functions to take Strings as input instead of DeprecatedStrings and
2833         reduce the complexity of the class by removing unneeded globbing support.
2834
2835 2008-02-22  Jon Honeycutt  <jhoneycutt@apple.com>
2836
2837         Reviewed by Anders.
2838
2839         <rdar://problem/5760360> REGRESSION(r30376): Crash loading plugin page
2840         during stress test (after only 5 min) - null dereference
2841
2842         Full-frame plug-ins create PluginStream objects without loaders, as the
2843         PluginView receives the loading callbacks. We were trying to call
2844         setDefersLoading on these null pointers.
2845
2846         * plugins/PluginStream.cpp:
2847         (WebCore::PluginStream::startStream): Add null check.
2848         (WebCore::PluginStream::destroyStream): Same.
2849         (WebCore::PluginStream::deliverData): Same.
2850
2851 2008-02-22  Darin Adler  <darin@apple.com>
2852
2853         Reviewed and tweaked by Jon Honeycutt. Reviewed and landed by Sam.
2854
2855         - Remove uses of DeprecatedString in Windows plugin code.
2856
2857         * plugins/win/PluginPackageWin.cpp:
2858         (WebCore::getVersionInfo): Cleanup formatting.
2859         (WebCore::PluginPackage::freeLibraryTimerFired): Remove un-needed variable name.
2860         (WebCore::PluginPackage::storeFileVersion): Move casts.
2861         (WebCore::PluginPackage::fetchInfo): Use OwnArrayPtr and switch to more efficient
2862         use of Vectors.
2863         (WebCore::PluginPackage::load): Fix whitespace.
2864         (WebCore::PluginPackage::hash): Make the hashCodes const
2865         * plugins/win/PluginViewWin.cpp:
2866         (WebCore::makeURL): Use String instead of DeprecatedString.
2867         (WebCore::parseRFC822HeaderFields): Ditto.
2868         (WebCore::PluginView::handlePost): Ditto.
2869         (WebCore::PluginView::status): Ditto.
2870
2871 2008-02-22  Darin Adler  <darin@apple.com>
2872
2873         Reviewed, tweaked and landed by Sam.
2874
2875         - Don't use DeprecatedString in HTMLTokenizer.
2876
2877         * html/HTMLTokenizer.cpp:
2878         (WebCore::HTMLTokenizer::finish):
2879         * platform/text/PlatformString.h:
2880         (WebCore::find):
2881
2882 2008-02-21  Sam Weinig  <sam@webkit.org>
2883
2884         Reviewed by Anders Carlsson.
2885
2886         Fix for <rdar://problem/5757946>
2887
2888         - Parse URLs before checking whether they are javascript: urls
2889           (which require security checks).
2890
2891         * bindings/js/JSAttrCustom.cpp:
2892         (WebCore::JSAttr::setValue):
2893         * bindings/js/JSElementCustom.cpp:
2894         (WebCore::allowSettingSrcToJavascriptURL):
2895         * bindings/js/JSHTMLFrameElementCustom.cpp:
2896         (WebCore::allowSettingJavascriptURL):
2897         * bindings/js/JSHTMLIFrameElementCustom.cpp:
2898         (WebCore::JSHTMLIFrameElement::setSrc):
2899
2900 2008-02-21  Ada Chan  <adachan@apple.com>
2901
2902         <rdar://problem/5757873> Buffer overrun in DeprecatedCString::find() in WebCore
2903         We could get a buffer overrun in DeprecatedCString::find() if the end of the
2904         string matches a beginning portion of the substring, for example, if string is
2905         "a" but the substring is "ab".
2906         The code as is also will not match things correctly under certain situations
2907         since the inner while loop increments the index. For example, we wouldn't find
2908         a match if the string is "aab..." and the substring is "ab".  Changed the 
2909         inner while loop to increment a temporary index into str.
2910         
2911         Test: fast/loader/charset-parse.html
2912
2913         Reviewed by Dan Berstein.
2914
2915         * platform/DeprecatedCString.cpp:
2916         (WebCore::DeprecatedCString::find):
2917
2918 2008-02-21  David Hyatt  <hyatt@apple.com>
2919
2920         Fix for bug 17301.  CSS media queries need to use the correct viewport
2921         when contained in documents inside iframes (rather than always using the
2922         top-level document's viewport).  CSS media queries based on the viewport
2923         also needed to be dynamic and update as you resize the window (this is
2924         a HOT feature). :)
2925
2926         This patch gets Acid3 up to 86/100 with 3 colored boxes filled in.
2927
2928         Reviewed by olliej
2929
2930         Added fast/media/viewport-media-query.html
2931
2932         * css/CSSStyleSelector.cpp:
2933         (WebCore::CSSStyleSelector::CSSStyleSelector):
2934         (WebCore::CSSStyleSelector::addViewportDependentMediaQueryResult):
2935         (WebCore::CSSStyleSelector::affectedByViewportChange):
2936         * css/CSSStyleSelector.h:
2937         (WebCore::MediaQueryResult::MediaQueryResult):
2938         * css/MediaQueryEvaluator.cpp:
2939         (WebCore::MediaQueryEvaluator::MediaQueryEvaluator):
2940         (WebCore::MediaQueryEvaluator):
2941         (WebCore::MediaQueryEvaluator::eval):
2942         (WebCore::colorMediaFeatureEval):
2943         (WebCore::monochromeMediaFeatureEval):
2944         (WebCore::device_aspect_ratioMediaFeatureEval):
2945         (WebCore::device_pixel_ratioMediaFeatureEval):
2946         (WebCore::gridMediaFeatureEval):
2947         (WebCore::device_heightMediaFeatureEval):
2948         (WebCore::device_widthMediaFeatureEval):
2949         (WebCore::heightMediaFeatureEval):
2950         (WebCore::widthMediaFeatureEval):
2951         (WebCore::min_colorMediaFeatureEval):
2952         (WebCore::max_colorMediaFeatureEval):
2953         (WebCore::min_monochromeMediaFeatureEval):
2954         (WebCore::max_monochromeMediaFeatureEval):
2955         (WebCore::min_device_aspect_ratioMediaFeatureEval):
2956         (WebCore::max_device_aspect_ratioMediaFeatureEval):
2957         (WebCore::min_device_pixel_ratioMediaFeatureEval):
2958         (WebCore::max_device_pixel_ratioMediaFeatureEval):
2959         (WebCore::min_heightMediaFeatureEval):
2960         (WebCore::max_heightMediaFeatureEval):
2961         (WebCore::min_widthMediaFeatureEval):
2962         (WebCore::max_widthMediaFeatureEval):
2963         (WebCore::min_device_heightMediaFeatureEval):
2964         (WebCore::max_device_heightMediaFeatureEval):
2965         (WebCore::min_device_widthMediaFeatureEval):
2966         (WebCore::max_device_widthMediaFeatureEval):
2967         * css/MediaQueryEvaluator.h:
2968         * css/MediaQueryExp.cpp:
2969         (WebCore::MediaQueryExp::~MediaQueryExp):
2970         * css/MediaQueryExp.h:
2971         (WebCore::MediaQueryExp::value):
2972         (WebCore::MediaQueryExp::isViewportDependent):
2973         * html/HTMLMediaElement.cpp:
2974         (WebCore::HTMLMediaElement::pickMedia):
2975         * page/FrameView.cpp:
2976         (WebCore::FrameView::layout):
2977
2978 2008-02-21  Anders Carlsson  <andersca@apple.com>
2979
2980         Reviewed by Sam.
2981
2982         Make more classes start out with a refcount of 1.
2983
2984         * dom/QualifiedName.cpp:
2985         (WebCore::QNameComponentsTranslator::translate):
2986         (WebCore::QualifiedName::QualifiedName):
2987         * dom/QualifiedName.h:
2988         (WebCore::QualifiedName::QualifiedNameImpl::create):
2989         (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl):
2990         * history/BackForwardList.cpp:
2991         (WebCore::BackForwardList::BackForwardList):
2992         * history/BackForwardList.h:
2993         (WebCore::BackForwardList::create):
2994         * page/Page.cpp:
2995         (WebCore::Page::Page):
2996         * platform/text/CString.cpp:
2997         (WebCore::CString::init):
2998         (WebCore::CString::newUninitialized):
2999         (WebCore::CString::copyBufferIfNeeded):
3000         * platform/text/CString.h:
3001         (WebCore::CStringBuffer::create):
3002         (WebCore::CStringBuffer::CStringBuffer):
3003
3004 2008-02-21  Kevin Ollivier  <kevino@theolliviers.com>
3005
3006         wx build fix for the domString() -> string() rename in r30443.
3007
3008         * platform/graphics/wx/FontPlatformDataWx.cpp:
3009         (WebCore::FontPlatformData::FontPlatformData):
3010
3011 2008-02-21  Antti Koivisto  <antti@apple.com>
3012
3013         Reviewed by Sam Weinig.
3014
3015         <rdar://problem/5753789>
3016         REGRESSION: 1.5% -2% Sunspider regression from r30009 (ebay photo upload hang)
3017         
3018         Ensure all versions of allowsAccessFrom are inlined to single functions. 
3019         This is a 2% win in browser hosted Sunspider. 
3020
3021         * bindings/js/kjs_window.cpp:
3022         (KJS::Window::allowsAccessFrom):
3023         (KJS::Window::allowsAccessFromPrivate):
3024         * bindings/js/kjs_window.h:
3025
3026 2008-02-21  Dan Bernstein  <mitz@apple.com>
3027
3028         Reviewed by Sam Weinig.
3029
3030         - minor cleanup
3031
3032         * rendering/bidi.cpp:
3033         (WebCore::bidiNext): Removed redundant isBR() check -- isText() returns
3034         true for RenderLineBreak.
3035         (WebCore::bidiFirst): Ditto.
3036         (WebCore::shouldSkipWhitespaceAfterStartObject):
3037         (WebCore::RenderBlock::findNextLineBreak):
3038
3039 2008-02-21  Geoffrey Garen  <ggaren@apple.com>
3040
3041         Reviewed by David Harrison.
3042         
3043         Fixed <rdar://problem/5756125> REGRESSION: A crash occurs at 
3044         WebCore::Frame::scriptProxy() when completing a search with Package Tracker widget
3045
3046         Test: fast/dom/script-element-without-frame-crash.html
3047
3048         * html/HTMLTokenizer.cpp:
3049         (WebCore::HTMLTokenizer::parseTag): Added back a NULL check that was
3050         accidentally removed in r30325.
3051
3052 2008-02-21  Rodney Dawes  <dobey@wayofthemonkey.com>
3053
3054         GTK+ build fix. s/domString()/string()/
3055
3056         * platform/graphics/gtk/FontPlatformDataGtk.cpp:
3057         (FontPlatformData::FontPlatformData):
3058
3059 2008-02-20  Dan Bernstein  <mitz@apple.com>
3060
3061         Reviewed by Dave Hyatt.
3062
3063         - fix http://bugs.webkit.org/show_bug.cgi?id=17465
3064           REGRESSION: <DIV> tokenized into Div if still searching for DOCTYPE
3065
3066         Test: fast/tokenizer/doctype-search-reset.html
3067
3068         * html/HTMLTokenizer.cpp:
3069         (WebCore::HTMLTokenizer::parseTag):
3070
3071 2008-02-20  Dan Bernstein  <mitz@apple.com>
3072
3073         Reviewed by Dave Hyatt.
3074
3075         - fix http://bugs.webkit.org/show_bug.cgi?id=17464
3076           REGRESSION: Crash in RenderBlock::findNextLineBreak reading r30444 commit email in GMail
3077
3078         Test: fast/text/wbr-in-pre-crash.html
3079
3080         * rendering/bidi.cpp:
3081         (WebCore::RenderBlock::findNextLineBreak):
3082
3083 2008-02-20  Oliver Hunt  <oliver@apple.com>
3084
3085         Reviewed by Hyatt.
3086
3087         Bug 17303: Canvas crash in ImageBuffer
3088
3089         We handle a null GraphicsContext everywhere, but we weren't checking for 
3090         a null ImageBuffer, which is what will result in a null GraphicsContext in
3091         the first place.
3092
3093         Test: fast/canvas/access-zero-sized-canvas.html
3094
3095         * html/HTMLCanvasElement.cpp:
3096
3097 2008-02-20  David Hyatt  <hyatt@apple.com>
3098
3099         Fix the layout test failure that never should have passed in the first
3100         place by making changes to media lists actually result in the recomputation
3101         of the style selector.  Now it passes for the right reasons and not because
3102         of dumb luck.
3103
3104         Reviewed by Sam Weinig
3105
3106         * css/MediaList.cpp:
3107         (WebCore::MediaList::deleteMedium):
3108         (WebCore::MediaList::setMediaText):
3109         (WebCore::MediaList::appendMedium):
3110         (WebCore::MediaList::notifyChanged):
3111         * css/MediaList.h:
3112         * dom/Document.cpp:
3113         (WebCore::Document::attach):
3114
3115 2008-02-20  Darin Adler  <darin@apple.com>
3116
3117         Reviewed, tweaked and landed by Sam.
3118
3119         - make markup functions not use DeprecatedString.
3120
3121         * editing/markup.cpp:
3122         (WebCore::append): Added.
3123         (WebCore::escapeContentText): Build up string using a Vector.
3124         (WebCore::appendStartMarkup): Use String instead of DeprecatedString.
3125
3126 2008-02-20  Darin Adler  <darin@apple.com>
3127
3128         Reviewed, tweaked and landed by Sam.
3129
3130         - make TextIterator use a Vector instead of a DeprecatedString.
3131
3132         * editing/TextIterator.cpp:
3133         (WebCore::CharacterIterator::string): Build up the String using a
3134         Vector.
3135         (WebCore::WordAwareIterator::advance): Switch to using Vector functions.
3136         (WebCore::WordAwareIterator::length): Ditto.
3137         (WebCore::WordAwareIterator::characters): Ditto.
3138         * editing/TextIterator.h: Use a Vector<UChar> for the buffer instead
3139         of DeprecatedString.
3140
3141 2008-02-20  Darin Adler  <darin@apple.com>
3142
3143         Reviewed, tweaked and landed by Sam.
3144
3145         - make HTMLInterchange return a String instead of a DeprecatedString
3146
3147         * editing/HTMLInterchange.cpp:
3148         (WebCore::): Return a String from convertedSpaceString.
3149         (WebCore::convertHTMLTextToInterchangeFormat): Use a Vector instead of
3150         a DeprecatedString to build up the return String.
3151         * editing/HTMLInterchange.h:
3152
3153 2008-02-20  Eric Seidel  <eric@webkit.org>
3154
3155         Reviewed by Oliver.
3156
3157         Remove m_drawingContext and change m_data to m_imageBuffer
3158
3159         * html/HTMLCanvasElement.cpp:
3160         (WebCore::HTMLCanvasElement::HTMLCanvasElement):
3161         (WebCore::HTMLCanvasElement::reset):
3162         (WebCore::HTMLCanvasElement::paint):
3163         (WebCore::HTMLCanvasElement::createImageBuffer):
3164         (WebCore::HTMLCanvasElement::buffer):
3165         (WebCore::HTMLCanvasElement::createPlatformImage):
3166         * html/HTMLCanvasElement.h:
3167
3168 2008-02-20  Anders Carlsson  <andersca@apple.com>
3169
3170         Reviewed by Sam.
3171
3172         Rename AtomicString::domString() to AtomicString::string().
3173         
3174         * css/CSSComputedStyleDeclaration.cpp:
3175         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3176         * css/CSSFontSelector.cpp:
3177         (WebCore::CSSFontSelector::getFontData):
3178         * dom/Attr.cpp:
3179         (WebCore::Attr::createTextChild):
3180         * dom/Comment.cpp:
3181         (WebCore::Comment::nodeName):
3182         * dom/Document.cpp:
3183         (WebCore::Document::recalcStyleSelector):
3184         (WebCore::Document::setHTMLWindowEventListener):
3185         (WebCore::Document::formElementsState):
3186         * dom/StyledElement.cpp:
3187         (WebCore::StyledElement::parseMappedAttribute):
3188         * dom/Text.cpp:
3189         (WebCore::Text::nodeName):
3190         * editing/SelectionController.cpp:
3191         (WebCore::SelectionController::debugRenderer):
3192         * html/HTMLCollection.cpp:
3193         (WebCore::HTMLCollection::checkForNameMatch):
3194         * html/HTMLElement.cpp:
3195         (WebCore::HTMLElement::nodeName):
3196         (WebCore::HTMLElement::setHTMLEventListener):
3197         * html/HTMLFormCollection.cpp:
3198         (WebCore::HTMLFormCollection::getNamedFormItem):
3199         * html/HTMLImageElement.cpp:
3200         (WebCore::HTMLImageElement::parseMappedAttribute):
3201         (WebCore::HTMLImageElement::isURLAttribute):
3202         * html/HTMLLinkElement.cpp:
3203         (WebCore::HTMLLinkElement::parseMappedAttribute):
3204         (WebCore::HTMLLinkElement::tokenizeRelAttribute):
3205         * html/HTMLObjectElement.cpp:
3206         (WebCore::HTMLObjectElement::isURLAttribute):
3207         (WebCore::HTMLObjectElement::containsJavaApplet):
3208         * html/HTMLParamElement.cpp:
3209         (WebCore::HTMLParamElement::isURLAttribute):
3210         * html/HTMLParser.cpp:
3211         (WebCore::HTMLParser::handleIsindex):
3212         * html/HTMLScriptElement.cpp:
3213         (WebCore::HTMLScriptElement::insertedIntoDocument):
3214         (WebCore::HTMLScriptElement::shouldExecuteAsJavaScript):
3215         * html/HTMLStyleElement.cpp:
3216         (WebCore::HTMLStyleElement::parseMappedAttribute):
3217         * html/HTMLTokenizer.cpp:
3218         (WebCore::HTMLTokenizer::parseTag):
3219         * html/HTMLViewSourceDocument.cpp:
3220         (WebCore::HTMLViewSourceDocument::addViewSourceToken):
3221         * loader/FrameLoader.cpp:
3222         (WebCore::FrameLoader::saveDocumentState):
3223         * page/FrameTree.cpp:
3224         (WebCore::FrameTree::uniqueChildName):
3225         * platform/text/AtomicString.h:
3226         (WebCore::AtomicString::string):
3227         (WebCore::AtomicString::contains):
3228         (WebCore::AtomicString::find):
3229         (WebCore::AtomicString::startsWith):
3230         (WebCore::AtomicString::endsWith):
3231         * rendering/RenderPartObject.cpp:
3232         (WebCore::RenderPartObject::updateWidget):
3233         * svg/SVGElement.cpp:
3234         (WebCore::SVGElement::addSVGEventListener):
3235         * svg/SVGSVGElement.cpp:
3236         (WebCore::SVGSVGElement::addSVGWindowEventListener):
3237         * xml/XPathFunctions.cpp:
3238         (WebCore::XPath::FunLocalName::evaluate):
3239         (WebCore::XPath::FunNamespaceURI::evaluate):
3240         (WebCore::XPath::FunName::evaluate):
3241
3242 2008-02-20  Brent Fulgham  <bfulgham@gmail.com>
3243
3244         Reviewed by Dan.
3245
3246         http://bugs.webkit.org/show_bug.cgi?id=17336
3247         Provide implementations for Windows (Cairo) build of WebKit that
3248         handles font formatting.
3249         - Split font implementation files to allow maximal code sharing
3250           between CG and Cairo back-ends. 
3251
3252         * WebCore.vcproj/WebCore.vcproj:
3253         * platform/graphics/SimpleFontData.h:   Add signatures for private win
3254           initialization functions.
3255         * platform/graphics/win/FontCacheWin.cpp:
3256         (WebCore::FontCache::platformInit):
3257         (WebCore::FontCache::createFontPlatformData):
3258         * platform/graphics/win/FontCairoWin.cpp: Removed.  Universal version
3259           is now part of platform/graphics/cairo.
3260         * platform/graphics/win/FontCustomPlatformDataCairo.cpp: Added.
3261         (WebCore::FontCustomPlatformDataCairo::~FontCustomPlatformDataCairo):
3262         (WebCore::FontCustomPlatformDataCairo::fontPlatformData):
3263         (WebCore::releaseData):
3264         (WebCore::createFontCustomPlatformData):
3265         * platform/graphics/win/FontCustomPlatformDataCairo.h: Added.
3266         (WebCore::FontCustomPlatformDataCairo::FontCustomPlatformDataCairo):
3267         * platform/graphics/win/FontPlatformData.h:
3268         (WebCore::FontPlatformData::FontPlatformData):
3269         (WebCore::FontPlatformData::fontFace):
3270         (WebCore::FontPlatformData::scaledFont):
3271         (WebCore::FontPlatformData::operator==):
3272         * platform/graphics/win/FontPlatformDataCGWin.cpp: Copied from WebCore/platform/graphics/win/FontPlatformDataWin.cpp.
3273         (WebCore::FontPlatformData::platformDataInit):
3274         * platform/graphics/win/FontPlatformDataCairoWin.cpp: Added.
3275         (WebCore::FontPlatformData::platformDataInit):
3276         (WebCore::FontPlatformData::FontPlatformData):
3277         (WebCore::FontPlatformData::setFont):
3278         * platform/graphics/win/FontPlatformDataWin.cpp:  Moved CG-specific
3279           code to FontPlatformDataCG.cpp.
3280         (WebCore::FontPlatformData::FontPlatformData):
3281         * platform/graphics/win/GlyphPageTreeNodeCGWin.cpp: Copied from WebCore/platform/graphics/win/GlyphPageTreeNodeWin.cpp.
3282         * platform/graphics/win/GlyphPageTreeNodeCairoWin.cpp: Copied from WebCore/platform/graphics/win/GlyphPageTreeNodeWin.cpp.
3283         (WebCore::GlyphPage::fill):
3284         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Removed.  Replaced
3285           with CG- and Cairo-specific versions.
3286         * platform/graphics/win/SimpleFontDataCGWin.cpp:
3287         (WebCore::SimpleFontData::platformInit):
3288         (WebCore::SimpleFontData::platformDestroy):
3289         (WebCore::SimpleFontData::platformWidthForGlyph):
3290         * platform/graphics/win/SimpleFontDataCairoWin.cpp:
3291         (WebCore::SimpleFontData::platformInit):
3292         (WebCore::SimpleFontData::platformDestroy):
3293         (WebCore::SimpleFontData::platformWidthForGlyph):
3294         (WebCore::SimpleFontData::setFont):
3295         * platform/graphics/win/SimpleFontDataWin.cpp:
3296         (WebCore::SimpleFontData::initGDIFont):
3297         (WebCore::SimpleFontData::platformCommonDestroy):
3298         (WebCore::SimpleFontData::widthForGDIGlyph):
3299
3300 2008-02-20  Darin Adler  <darin@apple.com>
3301
3302         Reviewed by Sam.
3303
3304         * dom/Node.h: Took out unneeded forward declaration of TextStream.
3305
3306 2008-02-20  Darin Adler  <darin@apple.com>
3307
3308         Reviewed by Sam.
3309
3310         * rendering/RenderObject.h: Took out unneeded forward declaration of TextStream.
3311
3312 2008-02-20  David Hyatt  <hyatt@apple.com>
3313
3314         Fix for bug 16760, incorrect <object> MIME type handling and fallback
3315         handling.
3316
3317         Reviewed by darin
3318
3319         * html/HTMLImageLoader.cpp:
3320         (WebCore::HTMLImageLoader::notifyFinished):
3321         If the image had an error, make sure to do <object> fallback.
3322
3323         * html/HTMLObjectElement.cpp:
3324         (WebCore::HTMLObjectElement::renderFallbackContent):
3325         Before doing fallback check if there is a MIME type mismatch between
3326         an image type and a non-image type.  If so, detach and re-attach after
3327         storing the correct MIME type.
3328
3329         * loader/loader.cpp:
3330         (WebCore::Loader::didReceiveData):
3331         Consider it an error when a 404 is encountered on a CachedResource load.
3332
3333 2008-02-20  Anders Carlsson  <andersca@apple.com>
3334
3335         Reviewed by Sam.
3336
3337         StringImpl constructors used by AtomicString should start with a refcount of 1.
3338         
3339         * platform/text/AtomicString.cpp:
3340         (WebCore::AtomicString::add):
3341         * platform/text/AtomicString.h:
3342         * platform/text/StringImpl.cpp:
3343         (WebCore::StringImpl::StringImpl):
3344
3345 2008-02-20  Darin Adler  <darin@apple.com>
3346
3347         * bindings/js/kjs_navigator.cpp:
3348         (WebCore::needsYouTubeQuirk): Tweak comments.
3349
3350 2008-02-20  Anders Carlsson  <andersca@apple.com>
3351
3352         Reviewed by Darin.
3353
3354         Change all refcounted classes in page/ to start with a refcount of 1.
3355
3356         * page/BarInfo.cpp:
3357         (WebCore::BarInfo::BarInfo):
3358         * page/BarInfo.h:
3359         (WebCore::BarInfo::create):
3360         * page/Console.cpp:
3361         (WebCore::Console::Console):
3362         * page/Console.h:
3363         (WebCore::Console::create):
3364         * page/DOMSelection.cpp:
3365         (WebCore::DOMSelection::DOMSelection):
3366         * page/DOMSelection.h:
3367         (WebCore::DOMSelection::create):
3368         * page/DOMWindow.cpp:
3369         (WebCore::DOMWindow::DOMWindow):
3370         (WebCore::DOMWindow::screen):
3371         (WebCore::DOMWindow::history):
3372         (WebCore::DOMWindow::locationbar):
3373         (WebCore::DOMWindow::menubar):
3374         (WebCore::DOMWindow::personalbar):
3375         (WebCore::DOMWindow::scrollbars):
3376         (WebCore::DOMWindow::statusbar):
3377         (WebCore::DOMWindow::toolbar):
3378         (WebCore::DOMWindow::console):
3379         (WebCore::DOMWindow::getSelection):
3380         * page/DOMWindow.h:
3381         (WebCore::DOMWindow::create):
3382         * page/Frame.cpp:
3383         (WebCore::Frame::domWindow):
3384         * page/History.cpp:
3385         (WebCore::History::History):
3386         * page/History.h:
3387         (WebCore::History::create):
3388         * page/InspectorController.cpp:
3389         (WebCore::InspectorResource::create):
3390         (WebCore::InspectorResource::InspectorResource):
3391         (WebCore::InspectorDatabaseResource::create):
3392         (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
3393         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
3394         (WebCore::InspectorController::identifierForInitialRequest):
3395         (WebCore::InspectorController::didOpenDatabase):
3396         * page/Plugin.h:
3397         (WebCore::Plugin::create):
3398         (WebCore::Plugin::Plugin):
3399         * page/Screen.cpp:
3400         (WebCore::Screen::Screen):
3401         * page/Screen.h:
3402         (WebCore::Screen::create):
3403
3404 2008-02-20  Sam Weinig  <sam@webkit.org>
3405
3406         Reviewed by Darin and Geoff.
3407
3408         - <rdar://problem/5754378> work around missing video on YouTube front page with a site-specific hack
3409
3410         * WebCore.base.exp: Updated.
3411
3412         * bindings/js/kjs_navigator.cpp:
3413         (WebCore::needsYouTubeQuirk): Added. Return true on Windows only when the quirk is needed.
3414         (WebCore::Navigator::getValueProperty): For the appVersion property, if needsYouTubeQuirk
3415         return true, then return the empty string.
3416
3417         * page/Settings.cpp:
3418         (WebCore::Settings::Settings): Set m_needsSiteSpecificQuirks to false.
3419         (WebCore::Settings::setNeedsSiteSpecificQuirks): Added.
3420         * page/Settings.h: Added m_needsSiteSpecificQuirks.
3421         (WebCore::Settings::needsSiteSpecificQuirks): Added.
3422
3423 2008-02-20  David Hyatt  <hyatt@apple.com>
3424
3425         Fix for bug 12751, doctype nodes aren't part of the Document (Acid3).
3426
3427         Reviewed by Sam Weinig
3428
3429         Many tests added in fast/doctypes.
3430
3431         * dom/DOMImplementation.cpp:
3432         (WebCore::DOMImplementation::createDocument):
3433         (WebCore::DOMImplementation::createHTMLDocument):
3434         * dom/Document.cpp:
3435         (WebCore::Document::Document):
3436         (WebCore::Document::setDocType):
3437         (WebCore::Document::attach):
3438         (WebCore::Document::getImageMap):
3439         * dom/Document.h:
3440         (WebCore::Document::doctype):
3441         (WebCore::Document::):
3442         (WebCore::Document::determineParseMode):
3443         (WebCore::Document::setParseMode):
3444         (WebCore::Document::parseMode):
3445         (WebCore::Document::inCompatMode):
3446         (WebCore::Document::inAlmostStrictMode):
3447         (WebCore::Document::inStrictMode):
3448         * dom/DocumentType.cpp:
3449         (WebCore::DocumentType::cloneNode):
3450         (WebCore::DocumentType::insertedIntoDocument):
3451         (WebCore::DocumentType::removedFromDocument):
3452         * dom/DocumentType.h:
3453         * dom/Node.cpp:
3454         (WebCore::Node::childAllowed):
3455         * dom/StyledElement.cpp:
3456         (WebCore::StyledElement::attributeChanged):
3457         * dom/XMLTokenizer.cpp:
3458         (WebCore::XMLTokenizer::internalSubset):
3459         (WebCore::):
3460         * editing/markup.cpp:
3461         (WebCore::appendStartMarkup):
3462         * html/HTMLAppletElement.cpp:
3463         (WebCore::HTMLAppletElement::createRenderer):
3464         * html/HTMLDocument.cpp:
3465         (WebCore::HTMLDocument::HTMLDocument):
3466         (WebCore::HTMLDocument::childAllowed):
3467         (WebCore::HTMLDocument::determineParseMode):
3468         * html/HTMLDocument.h:
3469         * html/HTMLMapElement.cpp:
3470         (WebCore::HTMLMapElement::parseMappedAttribute):
3471         * html/HTMLParamElement.cpp:
3472         (WebCore::HTMLParamElement::parseMappedAttribute):
3473         * html/HTMLParser.cpp:
3474         (WebCore::HTMLParser::parseDoctypeToken):
3475         * html/HTMLParser.h:
3476         * html/HTMLTokenizer.cpp:
3477         (WebCore::HTMLTokenizer::reset):
3478         (WebCore::HTMLTokenizer::parseDoctype):
3479         (WebCore::HTMLTokenizer::parseTag):
3480         (WebCore::HTMLTokenizer::write):
3481         (WebCore::HTMLTokenizer::finish):
3482         (WebCore::HTMLTokenizer::processDoctypeToken):
3483         * html/HTMLTokenizer.h:
3484         (WebCore::):
3485         (WebCore::DoctypeToken::DoctypeToken):
3486         (WebCore::DoctypeToken::reset):
3487         (WebCore::DoctypeToken::state):
3488         (WebCore::DoctypeToken::setState):
3489         (WebCore::HTMLTokenizer::State::inDoctype):
3490         (WebCore::HTMLTokenizer::State::setInDoctype):
3491         (WebCore::HTMLTokenizer::State::needsSpecialWriteHandling):
3492         (WebCore::HTMLTokenizer::State::):
3493         * html/HTMLViewSourceDocument.cpp:
3494         (WebCore::HTMLViewSourceDocument::addViewSourceToken):
3495         (WebCore::HTMLViewSourceDocument::addViewSourceDoctypeToken):
3496         * html/HTMLViewSourceDocument.h:
3497         * loader/FrameLoader.cpp:
3498         (WebCore::FrameLoader::write):
3499         (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
3500         * page/Frame.cpp:
3501         (WebCore::Frame::documentTypeString):
3502         * page/inspector/utilities.js:
3503         * xml/XSLTProcessor.cpp:
3504         (WebCore::XSLTProcessor::createDocumentFromSource):
3505
3506 2008-02-20  Anders Carlsson  <andersca@apple.com>
3507
3508         Reviewed by Darin.
3509
3510         Change most SVG related classes to start out with a ref count of 1.
3511         
3512         * bindings/js/JSSVGPointListCustom.cpp:
3513         (WebCore::JSSVGPointList::initialize):
3514         (WebCore::JSSVGPointList::insertItemBefore):
3515         (WebCore::JSSVGPointList::replaceItem):
3516         (WebCore::JSSVGPointList::appendItem):
3517         * bindings/js/JSSVGTransformListCustom.cpp:
3518         (WebCore::JSSVGTransformList::initialize):
3519         (WebCore::JSSVGTransformList::insertItemBefore):
3520         (WebCore::JSSVGTransformList::replaceItem):
3521         (WebCore::JSSVGTransformList::appendItem):
3522         * rendering/SVGCharacterLayoutInfo.h:
3523         (WebCore::SVGCharOnPath::create):
3524         (WebCore::SVGCharOnPath::SVGCharOnPath):
3525         * rendering/SVGRootInlineBox.cpp:
3526         (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
3527         * svg/SVGAnimationElement.cpp:
3528         (WebCore::SVGAnimationElement::parseBeginOrEndValue):
3529         * svg/SVGClipPathElement.cpp:
3530         (WebCore::SVGClipPathElement::canvasResource):
3531         * svg/SVGElementInstance.cpp:
3532         (WebCore::SVGElementInstance::childNodes):
3533         * svg/SVGElementInstanceList.cpp:
3534         (WebCore::SVGElementInstanceList::SVGElementInstanceList):
3535         * svg/SVGElementInstanceList.h:
3536         (WebCore::SVGElementInstanceList::create):
3537         * svg/SVGFitToViewBox.cpp:
3538         (WebCore::SVGFitToViewBox::SVGFitToViewBox):
3539         * svg/SVGGradientElement.cpp:
3540         (WebCore::SVGGradientElement::SVGGradientElement):
3541         (WebCore::SVGGradientElement::canvasResource):
3542         * svg/SVGImageElement.cpp:
3543         (WebCore::SVGImageElement::SVGImageElement):
3544         * svg/SVGLengthList.h:
3545         (WebCore::SVGLengthList::create):
3546         * svg/SVGList.h:
3547         (WebCore::SVGList::SVGList):
3548         (WebCore::SVGPODListItem::create):
3549         (WebCore::SVGPODListItem::copy):
3550         (WebCore::SVGPODListItem::SVGPODListItem):
3551         (WebCore::SVGPODList::initialize):
3552         (WebCore::SVGPODList::insertItemBefore):
3553         (WebCore::SVGPODList::replaceItem):
3554         (WebCore::SVGPODList::appendItem):
3555         (WebCore::SVGPODList::SVGPODList):
3556         * svg/SVGMarkerElement.cpp:
3557         (WebCore::SVGMarkerElement::canvasResource):
3558         * svg/SVGMaskElement.cpp:
3559         (WebCore::SVGMaskElement::canvasResource):
3560         * svg/SVGNumberList.h:
3561         (WebCore::SVGNumberList::create):
3562         * svg/SVGPathElement.cpp:
3563         (WebCore::SVGPathElement::createSVGPathSegClosePath):
3564         (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
3565         (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
3566         (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
3567         (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
3568         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
3569         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
3570         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
3571         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
3572         (WebCore::SVGPathElement::createSVGPathSegArcAbs):
3573         (WebCore::SVGPathElement::createSVGPathSegArcRel):
3574         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
3575         (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
3576         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
3577         (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
3578         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
3579         (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
3580         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
3581         (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
3582         (WebCore::SVGPathElement::pathSegList):
3583         * svg/SVGPathElement.h:
3584         * svg/SVGPathSeg.h:
3585         (WebCore::SVGPathSeg::SVGPathSeg):
3586         * svg/SVGPathSegArc.h:
3587         (WebCore::SVGPathSegArcAbs::create):
3588         (WebCore::SVGPathSegArcRel::create):
3589         * svg/SVGPathSegClosePath.h:
3590         (WebCore::SVGPathSegClosePath::create):
3591         * svg/SVGPathSegCurvetoCubic.h:
3592         (WebCore::SVGPathSegCurvetoCubicAbs::create):
3593         (WebCore::SVGPathSegCurvetoCubicRel::create):
3594         * svg/SVGPathSegCurvetoCubicSmooth.h:
3595         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::create):
3596         (WebCore::SVGPathSegCurvetoCubicSmoothRel::create):
3597