WebCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2008-06-19  Julien Chaffraix  <jchaffraix@webkit.org>
2
3         Reviewed by Darin.
4
5         Bug 19529 : Empty clients need to be refactored
6         https://bugs.webkit.org/show_bug.cgi?id=19529
7
8         - SVGImageEmptyClients' refactoring in order to be able to use them for other
9         elements.
10
11         - Trimmed empty spaces that were pointed out by git.
12
13         * WebCore.xcodeproj/project.pbxproj:
14         * loader/EmptyClients.h: Copied from WebCore/svg/graphics/SVGImageEmptyClients.h.
15
16         (WebCore::EmptyChromeClient::~EmptyChromeClient):
17         (WebCore::EmptyFrameLoaderClient::~EmptyFrameLoaderClient):
18         (WebCore::EmptyEditorClient::~EmptyEditorClient):
19         (WebCore::EmptyEditorClient::smartInsertDeleteEnabled):
20         (WebCore::EmptyContextMenuClient::~EmptyContextMenuClient):
21         (WebCore::EmptyDragClient::~EmptyDragClient):
22         (WebCore::EmptyDragClient::createDragImageForLink):
23         (WebCore::EmptyInspectorClient::~EmptyInspectorClient):
24         Renamed SVGImageEmpty*Client classes to Empty*Client.
25
26         * svg/graphics/SVGImage.cpp:
27         (WebCore::SVGImage::dataChanged):
28         * svg/graphics/SVGImageEmptyClients.h: Removed.
29
30 2008-06-19  Dan Bernstein  <mitz@apple.com>
31
32         Reviewed by Darin Adler.
33
34         - fix <rdar://problem/6008098> REGRESSION: Crash at FontFallbackList::fontDataAt()
35
36         Test: fast/css/font-face-multiple-families.html
37
38         Made changes to reflect the fact that the relationship between
39         CSSFontFace and CSSSegmentedFontFace is in fact many-to-many.
40
41         * css/CSSFontFace.cpp:
42         (WebCore::CSSFontFace::addedToSegmentedFontFace): Added.
43         (WebCore::CSSFontFace::removedFromSegmentedFontFace): Added.
44         (WebCore::CSSFontFace::fontLoaded): Changed to notify all segmented font
45         faces that include this font face.
46         (WebCore::CSSFontFace::getFontData): Updated to get the font selector
47         from one of the segmented font faces.
48         * css/CSSFontFace.h:
49         (WebCore::CSSFontFace::CSSFontFace):
50         * css/CSSFontSelector.cpp:
51         (WebCore::CSSFontSelector::addFontFaceRule): Fixed the direct cause of
52         the crash, namely releasing the font face when adding it to the first
53         family that uses it, making it impossible to add it to the second and
54         onwards families.
55         * css/CSSSegmentedFontFace.cpp:
56         (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace): Added code to
57         call CSSFontFace::removedFromSegmentedFontFace().
58         (WebCore::CSSSegmentedFontFace::overlayRange): Added code to call
59         CSSFontFace::{addedTo, removedFrom}SegmentedFontFace().
60
61 2008-06-19  Alexey Proskuryakov  <ap@webkit.org>
62
63         Qt build fix.
64
65         * bridge/qt/qt_runtime.h: Include completion.h.
66
67 2008-06-17  Alexey Proskuryakov  <ap@webkit.org>
68
69         Reviewed by Darin.
70
71         Prepare JavaScript heap for being per-thread.
72
73         * ForwardingHeaders/kjs/JSGlobalData.h: Added.
74         * bindings/js/GCController.cpp:
75         (WebCore::collect):
76         (WebCore::GCController::gcTimerFired):
77         (WebCore::GCController::garbageCollectNow):
78         * bindings/js/JSAudioConstructor.cpp:
79         (WebCore::JSAudioConstructor::JSAudioConstructor):
80         * bindings/js/JSCSSRuleCustom.cpp:
81         (WebCore::toJS):
82         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
83         (WebCore::JSCSSStyleDeclaration::nameGetter):
84         * bindings/js/JSCSSValueCustom.cpp:
85         (WebCore::toJS):
86         * bindings/js/JSCanvasPixelArrayCustom.cpp:
87         (WebCore::JSCanvasPixelArray::indexGetter):
88         (WebCore::toJS):
89         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
90         (WebCore::toJS):
91         * bindings/js/JSClipboardCustom.cpp:
92         (WebCore::JSClipboard::types):
93         (WebCore::JSClipboard::getData):
94         * bindings/js/JSCustomXPathNSResolver.cpp:
95         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
96         * bindings/js/JSDOMApplicationCacheCustom.cpp:
97         (WebCore::JSDOMApplicationCache::addEventListener):
98         (WebCore::JSDOMApplicationCache::removeEventListener):
99         (WebCore::JSDOMApplicationCache::setOnchecking):
100         (WebCore::JSDOMApplicationCache::setOnerror):
101         (WebCore::JSDOMApplicationCache::setOnnoupdate):
102         (WebCore::JSDOMApplicationCache::setOndownloading):
103         (WebCore::JSDOMApplicationCache::setOnprogress):
104         (WebCore::JSDOMApplicationCache::setOnupdateready):
105         (WebCore::JSDOMApplicationCache::setOncached):
106         * bindings/js/JSDOMBinding.cpp:
107         (WebCore::jsStringOrNull):
108         (WebCore::jsOwnedStringOrNull):
109         (WebCore::jsStringOrUndefined):
110         (WebCore::jsStringOrFalse):
111         (WebCore::nonCachingStaticFunctionGetter):
112         (WebCore::objectToStringFunctionGetter):
113         * bindings/js/JSDOMBinding.h:
114         (WebCore::DOMObject::DOMObject):
115         (WebCore::cacheDOMObject):
116         (WebCore::cacheSVGDOMObject):
117         * bindings/js/JSDOMWindowBase.cpp:
118         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
119         (WebCore::JSDOMWindowBase::getValueProperty):
120         (WebCore::JSDOMWindowBase::setListener):
121         (WebCore::JSDOMWindowBase::findOrCreateJSEventListener):
122         (WebCore::JSDOMWindowBase::findJSUnprotectedEventListener):
123         (WebCore::JSDOMWindowBase::findOrCreateJSUnprotectedEventListener):
124         (WebCore::windowProtoFuncAToB):
125         (WebCore::windowProtoFuncBToA):
126         (WebCore::windowProtoFuncSetTimeout):
127         (WebCore::windowProtoFuncSetInterval):
128         (WebCore::windowProtoFuncAddEventListener):
129         * bindings/js/JSDOMWindowBase.h:
130         * bindings/js/JSDOMWindowShell.cpp:
131         (WebCore::JSDOMWindowShell::operator new):
132         * bindings/js/JSDOMWindowShell.h:
133         * bindings/js/JSDocumentCustom.cpp:
134         (WebCore::toJS):
135         * bindings/js/JSElementCustom.cpp:
136         (WebCore::toJSNewlyCreated):
137         * bindings/js/JSEventCustom.cpp:
138         (WebCore::toJS):
139         * bindings/js/JSEventListener.cpp:
140         (WebCore::JSLazyEventListener::eventParameterName):
141         (WebCore::JSLazyEventListener::parseCode):
142         * bindings/js/JSEventTargetBase.cpp:
143         (WebCore::jsEventTargetAddEventListener):
144         * bindings/js/JSEventTargetBase.h:
145         (WebCore::JSEventTargetPrototype::self):
146         * bindings/js/JSEventTargetNode.cpp:
147         (WebCore::JSEventTargetNode::setListener):
148         * bindings/js/JSHTMLCollectionCustom.cpp:
149         (WebCore::getNamedItems):
150         (WebCore::toJS):
151         * bindings/js/JSHTMLFormElementCustom.cpp:
152         (WebCore::JSHTMLFormElement::nameGetter):
153         * bindings/js/JSHTMLInputElementBase.cpp:
154         (WebCore::JSHTMLInputElementBase::getValueProperty):
155         * bindings/js/JSHTMLOptionElementConstructor.cpp:
156         (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
157         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
158         (WebCore::JSHTMLOptionsCollection::length):
159         * bindings/js/JSInspectedObjectWrapper.cpp:
160         (WebCore::JSInspectedObjectWrapper::wrap):
161         * bindings/js/JSInspectorCallbackWrapper.cpp:
162         (WebCore::JSInspectorCallbackWrapper::wrap):
163         * bindings/js/JSLocationCustom.cpp:
164         (WebCore::JSLocation::toString):
165         * bindings/js/JSNamedNodesCollection.cpp:
166         (WebCore::JSNamedNodesCollection::lengthGetter):
167         * bindings/js/JSNavigatorCustom.cpp:
168         (WebCore::JSNavigator::appVersion):
169         * bindings/js/JSNodeCustom.cpp:
170         (WebCore::createWrapper):
171         * bindings/js/JSNodeFilterCustom.cpp:
172         (WebCore::JSNodeFilter::acceptNode):
173         * bindings/js/JSPluginElementFunctions.cpp:
174         (WebCore::getRuntimeObject):
175         * bindings/js/JSRGBColor.cpp:
176         (WebCore::getJSRGBColor):
177         * bindings/js/JSSQLResultSetRowListCustom.cpp:
178         (WebCore::JSSQLResultSetRowList::item):
179         * bindings/js/JSSVGLazyEventListener.cpp:
180         (WebCore::JSSVGLazyEventListener::eventParameterName):
181         * bindings/js/JSStorageCustom.cpp:
182         (WebCore::JSStorage::nameGetter):
183         * bindings/js/JSStyleSheetCustom.cpp:
184         (WebCore::toJS):
185         * bindings/js/JSTextCustom.cpp:
186         (WebCore::toJSNewlyCreated):
187         * bindings/js/JSXMLHttpRequestConstructor.cpp:
188         (WebCore::JSXMLHttpRequestConstructor::construct):
189         * bindings/js/JSXMLHttpRequestCustom.cpp:
190         (WebCore::JSXMLHttpRequest::setOnreadystatechange):
191         (WebCore::JSXMLHttpRequest::setOnload):
192         (WebCore::JSXMLHttpRequest::setOnprogress):
193         (WebCore::JSXMLHttpRequest::getResponseHeader):
194         (WebCore::JSXMLHttpRequest::addEventListener):
195         (WebCore::JSXMLHttpRequest::removeEventListener):
196         * bindings/js/JSXSLTProcessorConstructor.cpp:
197         (WebCore::JSXSLTProcessorConstructor::construct):
198         * bindings/js/JSXSLTProcessorCustom.cpp:
199         (WebCore::JSXSLTProcessor::getParameter):
200         * bindings/scripts/CodeGeneratorJS.pm:
201         * bridge/c/c_instance.cpp:
202         (KJS::Bindings::CInstance::defaultValue):
203         (KJS::Bindings::CInstance::stringValue):
204         (KJS::Bindings::CInstance::numberValue):
205         (KJS::Bindings::CInstance::valueOf):
206         * bridge/c/c_instance.h:
207         * bridge/c/c_utility.cpp:
208         (KJS::Bindings::convertNPVariantToValue):
209         * bridge/jni/jni_instance.cpp:
210         (JavaInstance::stringValue):
211         (JavaInstance::numberValue):
212         (JavaInstance::invokeMethod):
213         (JavaInstance::defaultValue):
214         (JavaInstance::valueOf):
215         * bridge/jni/jni_instance.h:
216         * bridge/jni/jni_jsobject.h:
217         * bridge/jni/jni_jsobject.mm:
218         (JavaJSObject::call):
219         (JavaJSObject::setMember):
220         (JavaJSObject::setSlot):
221         (JavaJSObject::convertJObjectToValue):
222         (JavaJSObject::getListFromJArray):
223         * bridge/jni/jni_objc.mm:
224         (KJS::Bindings::dispatchJNICall):
225         * bridge/jni/jni_runtime.cpp:
226         (JavaArray::convertJObjectToArray):
227         (JavaField::dispatchValueFromInstance):
228         (JavaField::valueFromInstance):
229         (JavaField::dispatchSetValueToInstance):
230         (JavaArray::valueAt):
231         * bridge/jni/jni_utility.h:
232         * bridge/objc/objc_class.mm:
233         (KJS::Bindings::ObjcClass::fallbackObject):
234         * bridge/objc/objc_instance.h:
235         * bridge/objc/objc_instance.mm:
236         (ObjcInstance::defaultValue):
237         (ObjcInstance::stringValue):
238         (ObjcInstance::numberValue):
239         (ObjcInstance::valueOf):
240         * bridge/objc/objc_utility.h:
241         * bridge/objc/objc_utility.mm:
242         (KJS::Bindings::convertNSStringToString):
243         (KJS::Bindings::convertObjcValueToValue):
244         * bridge/runtime.cpp:
245         (KJS::Bindings::Instance::createRuntimeObject):
246         * bridge/runtime.h:
247         (KJS::Bindings::Instance::valueOf):
248         * bridge/runtime_array.cpp:
249         (RuntimeArray::lengthGetter):
250         * bridge/runtime_method.cpp:
251         (RuntimeMethod::lengthGetter):
252         * bridge/runtime_object.cpp:
253         (RuntimeObjectImp::RuntimeObjectImp):
254         (RuntimeObjectImp::methodGetter):
255         (RuntimeObjectImp::defaultValue):
256         * dom/make_names.pl:
257         * xml/XMLHttpRequest.cpp:
258         (WebCore::XMLHttpRequest::dropProtection):
259         * bridge/qt/qt_class.cpp:
260         (KJS::Bindings::QtClass::fallbackObject):
261         * bridge/qt/qt_instance.cpp:
262         (KJS::Bindings::QtRuntimeObjectImp::construct):
263         (KJS::Bindings::QtInstance::getRuntimeObject):
264         (KJS::Bindings::QtInstance::invokeDefaultMethod):
265         (KJS::Bindings::QtInstance::defaultValue):
266         (KJS::Bindings::QtInstance::stringValue):
267         (KJS::Bindings::QtInstance::numberValue):
268         (KJS::Bindings::QtInstance::valueOf):
269         * bridge/qt/qt_instance.h:
270         * bridge/qt/qt_runtime.cpp:
271         (KJS::Bindings::convertValueToQVariant):
272         (KJS::Bindings::convertQVariantToValue):
273         (KJS::Bindings::QtRuntimeMetaMethod::lengthGetter):
274         (KJS::Bindings::QtRuntimeMetaMethod::connectGetter):
275         (KJS::Bindings::QtRuntimeMetaMethod::disconnectGetter):
276         (KJS::Bindings::QtRuntimeConnectionMethod::lengthGetter):
277         (KJS::Bindings::QtConnectionObject::execute):
278         Pass ExecState* where now required.
279
280 2008-06-19  Timothy Hatcher  <timothy@apple.com>
281
282         Update the JavaScript syntax highlight colors to match Xcode.
283         This matches the other Xcode colors we are using for HTML.
284
285         Reviewed by Dan Bernstein.
286
287         * page/inspector/SourceFrame.js:
288
289 2008-06-19  Keishi Hattori  <casey.hattori@gmail.com>
290
291         Added JavaScript syntax highlighting to the Web Inspector.
292
293         https://bugs.webkit.org/show_bug.cgi?id=14360
294
295         Reviewed by Tim Hatcher and Adam Roben.
296
297         * page/inspector/ScriptView.js: Added a call to syntaxHighlightJavascript.
298         * page/inspector/SourceFrame.js:
299         (WebInspector.SourceFrame.prototype._syntaxHighlightJavascriptLine): Added.
300         Modifies a line content element.
301         (WebInspector.SourceFrame.prototype.syntaxHighlightJavascript): Added.
302         Syntax highlights the entire script.
303         * page/inspector/SourceView.js: Added a call to syntaxHighlightJavascript.
304
305 2008-06-19  Alex Mathews  <possessedpenguinbob@gmail.com>
306
307         Reviewed by Oliver.
308
309         Starting to clean up the SVG Filter code. Mostly adding 'create' wrapper
310         functions and changing raw pointer fields to RefPtrs.
311
312         * Configurations/WebCore.xcconfig:
313         * WebCore.xcodeproj/project.pbxproj:
314         * svg/SVGFEBlendElement.cpp:
315         (WebCore::SVGFEBlendElement::~SVGFEBlendElement):
316         (WebCore::SVGFEBlendElement::filterEffect):
317         * svg/SVGFEBlendElement.h:
318         * svg/SVGFEColorMatrixElement.cpp:
319         (WebCore::SVGFEColorMatrixElement::~SVGFEColorMatrixElement):
320         (WebCore::SVGFEColorMatrixElement::filterEffect):
321         * svg/SVGFEColorMatrixElement.h:
322         * svg/SVGFEComponentTransferElement.cpp:
323         (WebCore::SVGFEComponentTransferElement::~SVGFEComponentTransferElement):
324         (WebCore::SVGFEComponentTransferElement::filterEffect):
325         * svg/SVGFEComponentTransferElement.h:
326         * svg/SVGFECompositeElement.cpp:
327         (WebCore::SVGFECompositeElement::~SVGFECompositeElement):
328         (WebCore::SVGFECompositeElement::filterEffect):
329         * svg/SVGFECompositeElement.h:
330         * svg/SVGFEDiffuseLightingElement.cpp:
331         (WebCore::SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement):
332         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
333         * svg/SVGFEDiffuseLightingElement.h:
334         * svg/SVGFEDisplacementMapElement.cpp:
335         (WebCore::SVGFEDisplacementMapElement::~SVGFEDisplacementMapElement):
336         (WebCore::SVGFEDisplacementMapElement::filterEffect):
337         * svg/SVGFEDisplacementMapElement.h:
338         * svg/SVGFEFloodElement.cpp:
339         (WebCore::SVGFEFloodElement::~SVGFEFloodElement):
340         (WebCore::SVGFEFloodElement::filterEffect):
341         * svg/SVGFEFloodElement.h:
342         * svg/SVGFEGaussianBlurElement.cpp:
343         (WebCore::SVGFEGaussianBlurElement::~SVGFEGaussianBlurElement):
344         (WebCore::SVGFEGaussianBlurElement::filterEffect):
345         * svg/SVGFEGaussianBlurElement.h:
346         * svg/SVGFEImageElement.cpp:
347         (WebCore::SVGFEImageElement::~SVGFEImageElement):
348         (WebCore::SVGFEImageElement::filterEffect):
349         * svg/SVGFEImageElement.h:
350         * svg/SVGFEMergeElement.cpp:
351         (WebCore::SVGFEMergeElement::~SVGFEMergeElement):
352         (WebCore::SVGFEMergeElement::filterEffect):
353         * svg/SVGFEMergeElement.h:
354         * svg/SVGFEOffsetElement.cpp:
355         (WebCore::SVGFEOffsetElement::~SVGFEOffsetElement):
356         (WebCore::SVGFEOffsetElement::filterEffect):
357         * svg/SVGFEOffsetElement.h:
358         * svg/SVGFESpecularLightingElement.cpp:
359         (WebCore::SVGFESpecularLightingElement::~SVGFESpecularLightingElement):
360         (WebCore::SVGFESpecularLightingElement::filterEffect):
361         * svg/SVGFESpecularLightingElement.h:
362         * svg/SVGFETileElement.cpp:
363         (WebCore::SVGFETileElement::~SVGFETileElement):
364         (WebCore::SVGFETileElement::filterEffect):
365         * svg/SVGFETileElement.h:
366         * svg/SVGFETurbulenceElement.cpp:
367         (WebCore::SVGFETurbulenceElement::~SVGFETurbulenceElement):
368         (WebCore::SVGFETurbulenceElement::filterEffect):
369         * svg/SVGFETurbulenceElement.h:
370         * svg/graphics/SVGResourceFilter.cpp:
371         (WebCore::SVGResourceFilter::addFilterEffect):
372         * svg/graphics/SVGResourceFilter.h:
373         * svg/graphics/filters/SVGFEBlend.cpp:
374         (WebCore::SVGFEBlend::create):
375         * svg/graphics/filters/SVGFEBlend.h:
376         * svg/graphics/filters/SVGFEColorMatrix.cpp:
377         (WebCore::SVGFEColorMatrix::create):
378         * svg/graphics/filters/SVGFEColorMatrix.h:
379         * svg/graphics/filters/SVGFEComponentTransfer.cpp:
380         (WebCore::SVGFEComponentTransfer::create):
381         * svg/graphics/filters/SVGFEComponentTransfer.h:
382         * svg/graphics/filters/SVGFEComposite.cpp:
383         (WebCore::SVGFEComposite::create):
384         * svg/graphics/filters/SVGFEComposite.h:
385         * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
386         (WebCore::SVGFEConvolveMatrix::create):
387         * svg/graphics/filters/SVGFEConvolveMatrix.h:
388         * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
389         (WebCore::SVGFEDiffuseLighting::create):
390         (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
391         (WebCore::SVGFEDiffuseLighting::lightSource):
392         (WebCore::SVGFEDiffuseLighting::setLightSource):
393         * svg/graphics/filters/SVGFEDiffuseLighting.h:
394         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
395         (WebCore::SVGFEDisplacementMap::create):
396         * svg/graphics/filters/SVGFEDisplacementMap.h:
397         * svg/graphics/filters/SVGFEFlood.cpp:
398         (WebCore::SVGFEFlood::create):
399         * svg/graphics/filters/SVGFEFlood.h:
400         * svg/graphics/filters/SVGFEGaussianBlur.cpp:
401         (WebCore::SVGFEGaussianBlur::create):
402         * svg/graphics/filters/SVGFEGaussianBlur.h:
403         * svg/graphics/filters/SVGFEImage.cpp:
404         (WebCore::SVGFEImage::create):
405         * svg/graphics/filters/SVGFEImage.h:
406         * svg/graphics/filters/SVGFEMerge.cpp:
407         (WebCore::SVGFEMerge::SVGFEMerge):
408         (WebCore::SVGFEMerge::create):
409         * svg/graphics/filters/SVGFEMerge.h:
410         * svg/graphics/filters/SVGFEOffset.cpp:
411         (WebCore::SVGFEOffset::create):
412         * svg/graphics/filters/SVGFEOffset.h:
413         * svg/graphics/filters/SVGFESpecularLighting.cpp:
414         (WebCore::SVGFESpecularLighting::create):
415         (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
416         (WebCore::SVGFESpecularLighting::lightSource):
417         (WebCore::SVGFESpecularLighting::setLightSource):
418         * svg/graphics/filters/SVGFESpecularLighting.h:
419         * svg/graphics/filters/SVGFETile.cpp: Added.
420         (WebCore::SVGFETile::SVGFETile):
421         (WebCore::SVGFETile::create):
422         * svg/graphics/filters/SVGFETile.h:
423         * svg/graphics/filters/SVGFETurbulence.cpp:
424         (WebCore::SVGFETurbulence::create):
425         * svg/graphics/filters/SVGFETurbulence.h:
426         * svg/graphics/filters/SVGFilterEffect.h:
427         * svg/graphics/filters/SVGLightSource.h:
428
429 2008-06-18  Adele Peterson  <adele@apple.com>
430
431         Reviewed by Dan Bernstein.
432
433         Fix assertion in fast/dom/ImageDocument-image-deletion.html caused by new media document creation.
434
435         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument):
436           Create the media document after we're done processing pdfs and images.
437
438 192008-06-17  Dan Bernstein  <mitz@apple.com>
439
440         Reviewed by Darin Adler.
441
442         - fix https://bugs.webkit.org/show_bug.cgi?id=19598
443           Crash in WebCore::RenderBlock::determineStartPosition
444
445         Test: fast/dynamic/floating-to-positioned-2.html
446
447         * rendering/RenderObject.cpp:
448         (WebCore::RenderObject::setStyle): Changed to also remove relatively
449         positioned floats from object lists when they become positioned, because
450         then they cease to be floating.
451
452 2008-06-18  Darin Adler  <darin@apple.com>
453
454         Reviewed by Mark Rowe.
455
456         - fix storage leak
457
458         * css/CSSMutableStyleDeclaration.cpp:
459         (WebCore::CSSMutableStyleDeclaration::copy): Added an adoptRef that
460         I missed when changing these objects to start with a refcount of 1.
461
462 2008-06-18  Timothy Hatcher  <timothy@apple.com>
463
464         Add a script build phase to remove the WebKit.qrc file from
465         WebCore's resources. This file is used for the Qt port, but we
466         copy the whole inspector folder for connivence and get this file.
467
468         Reviewed by Adam Roben.
469
470         * WebCore.xcodeproj/project.pbxproj: New script phase.
471
472 2008-06-18  Timothy Hatcher  <timothy@apple.com>
473
474         Combine the Web Inspector's JavaScript resources into one large
475         script file to speed up loading of the Inspector. This is only
476         done for Release and Production builds.
477
478         Reviewed by Adam Roben.
479
480         * WebCore.xcodeproj/project.pbxproj: Added a Streamline Inspector Source
481         script build phase that calls combine-javascript-resources and
482         moves files around in the build directory.
483         * combine-javascript-resources: Added.
484
485 2008-06-18  Rob Buis  <buis@kde.org>
486
487         Reviewed by Darin.
488
489         https://bugs.webkit.org/show_bug.cgi?id=18786
490         Once rendered, SVG text elements removed from DOM continue to be displayed
491
492         Repaint the text visual rect before removing it.
493
494         * rendering/RenderSVGInlineText.cpp:
495         (WebCore::RenderSVGInlineText::destroy):
496         * rendering/RenderSVGInlineText.h:
497
498 2008-06-18  Christian Dywan  <christian@twotoasts.de>
499
500         Gtk build fix, brought up by Dirk Schulze.
501
502         * page/gtk/AccessibilityObjectWrapperAtk.cpp:
503
504 2008-06-17  Beth Dakin  <bdakin@apple.com>
505
506         Reviewed by Tim.
507
508         This patch removes all instances of the phrase "TextMarker" from 
509         function names in the C++ accessibility code. TextMarkers only 
510         exists in the Objective-C code.
511
512         * page/AccessibilityObject.cpp:
513         (WebCore::AccessibilityObject::visiblePositionRangeForLine):
514         (WebCore::AccessibilityObject::visiblePositionRangeForUnorderedPositions):
515         (WebCore::AccessibilityObject::positionOfLeftWord):
516         (WebCore::AccessibilityObject::positionOfRightWord):
517         (WebCore::AccessibilityObject::leftLineVisiblePositionRange):
518         (WebCore::AccessibilityObject::rightLineVisiblePositionRange):
519         (WebCore::AccessibilityObject::sentenceForPosition):
520         (WebCore::AccessibilityObject::paragraphForPosition):
521         (WebCore::AccessibilityObject::styleRangeForPosition):
522         (WebCore::AccessibilityObject::visiblePositionRangeForRange):
523         (WebCore::AccessibilityObject::stringForVisiblePositionRange):
524         (WebCore::AccessibilityObject::boundsForVisiblePositionRange):
525         (WebCore::AccessibilityObject::lengthForVisiblePositionRange):
526         (WebCore::AccessibilityObject::setSelectedVisiblePositionRange):
527         (WebCore::AccessibilityObject::visiblePositionForPoint):
528         (WebCore::AccessibilityObject::nextVisiblePosition):
529         (WebCore::AccessibilityObject::previousVisiblePosition):
530         (WebCore::AccessibilityObject::nextWordEnd):
531         (WebCore::AccessibilityObject::previousWordStart):
532         (WebCore::AccessibilityObject::nextLineEndPosition):
533         (WebCore::AccessibilityObject::previousLineStartPosition):
534         (WebCore::AccessibilityObject::nextSentenceEndPosition):
535         (WebCore::AccessibilityObject::previousSentenceStartPosition):
536         (WebCore::AccessibilityObject::nextParagraphEndPosition):
537         (WebCore::AccessibilityObject::previousParagraphStartPosition):
538         (WebCore::AccessibilityObject::visiblePositionForIndex):
539         (WebCore::AccessibilityObject::accessibilityObjectForPosition):
540         (WebCore::AccessibilityObject::lineForPosition):
541         (WebCore::AccessibilityObject::plainTextRangeForVisiblePositionRange):
542         (WebCore::AccessibilityObject::index):
543         (WebCore::AccessibilityObject::doAXRangeForPosition):
544         (WebCore::AccessibilityObject::doAXStyleRangeForIndex):
545         (WebCore::AccessibilityObject::doAXLineForIndex):
546         * page/AccessibilityObject.h:
547         * page/AccessibilityRenderObject.cpp:
548         (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine):
549         (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange):
550         (WebCore::AccessibilityRenderObject::setSelectedVisiblePositionRange):
551         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
552         (WebCore::AccessibilityRenderObject::visiblePositionForIndex):
553         (WebCore::AccessibilityRenderObject::index):
554         (WebCore::AccessibilityRenderObject::doAXBoundsForRange):
555         * page/AccessibilityRenderObject.h:
556         * page/mac/AccessibilityObjectWrapper.mm:
557         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
558         (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
559         (-[AccessibilityObjectWrapper doAXAttributedStringForRange:]):
560         (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
561
562 2008-06-17  Mark Rowe  <mrowe@apple.com>
563
564         Reviewed by Darin Adler.
565
566         <rdar://problem/5775802> WebCore should not force use of GCC 4.0.
567
568         * WebCore.xcodeproj/project.pbxproj:
569
570 2008-06-17  Darin Adler  <darin@apple.com>
571
572         Reviewed by Sam.
573
574         - eliminate the last RefCounted client that needs the "start at 0" behavior, NodeFilter
575
576         - move handling of non-Attr arguments from the code generation script to the DOM
577           itself (as with every other type of argument)
578
579         * bindings/js/JSNodeFilterCustom.cpp:
580         (WebCore::toNodeFilter): Changed return type to PassRefPtr. Use create instead of new.
581
582         * bindings/objc/DOM.mm:
583         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
584         Use create instead of new.
585         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
586         Ditto.
587
588         * bindings/scripts/CodeGeneratorJS.pm: Use PassRefPtr and RefPtr for toNodeFilter and
589         the local variable for NodeFilter arguments. Remove the TypeCanFailConversion mechanism:
590         It's no longer needed for Attr, was not having any effect for VoidCallback, and was
591         returning false for all other types.
592
593         * dom/Element.cpp:
594         (WebCore::Element::setAttributeNode): Added code to return TYPE_MISMATCH_ERR when
595         the attr is 0 -- this matches what the autogenerated bindings did before.
596         (WebCore::Element::setAttributeNodeNS): Ditto.
597         (WebCore::Element::removeAttributeNode): Ditto.
598
599         * dom/NodeFilter.h: Added create, made constructor private, and got rid of code to
600         initialize the refcount to 0.
601
602         * html/CanvasPattern.h: Made CachedResourceClient base class private in a
603         more-explicit way.
604
605 2008-06-17  Adam Roben  <aroben@apple.com>
606
607         Fix <rdar://6016755> Assertion failure when WebView is child of
608         message-only window
609
610         Reviewed by Ada Chan.
611
612         No test possible.
613
614         * platform/win/WindowMessageBroadcaster.cpp:
615         (WebCore::WindowMessageBroadcaster::addListener): Only subclass the
616         window when we're adding our first listener. Removed an assertion that
617         an old WNDPROC was returned -- this will be 0 in the case of a
618         message-only window. Added an assertion to help catch cases where we
619         try to subclass the window twice.
620         (WebCore::WindowMessageBroadcaster::unsubclassWindow): Removed an
621         assertion that is not correct in the message-only window case.
622
623 2008-06-17  Adele Peterson  <adele@apple.com>
624
625         Attempt to fix builds by wrapping new code in #if ENABLE(VIDEO)
626
627         * loader/MediaDocument.cpp:
628         * loader/MediaDocument.h:
629
630 2008-06-17  Adele Peterson  <adele@apple.com>
631
632         Attempt to fix builds by wrapping new code in #if ENABLE(VIDEO)
633
634         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument):
635
636 2008-06-17  Adele Peterson  <adele@apple.com>
637
638         Reviewed by Brady.
639
640         Fix for <rdar://problem/5605768> Render full-page video/audio with <video>/<audio> instead of QuickTime plug-in
641
642         * WebCore.xcodeproj/project.pbxproj: Added MediaDocument class.
643         * GNUmakefile.am: ditto.
644         * WebCore.pro: ditto.
645         * WebCore.vcproj/WebCore.vcproj: ditto.
646         * WebCoreSources.bkl: ditto.
647
648         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument):
649           Check to see if the type can be played by our MediaPlayer, if so create a MediaDocument
650         * dom/Document.h: (WebCore::Document::isMediaDocument): Added.
651
652         * loader/MediaDocument.cpp: Added.
653         (WebCore::MediaTokenizer::MediaTokenizer):
654         (WebCore::MediaTokenizer::wantsRawData):
655         (WebCore::MediaTokenizer::write):
656         (WebCore::MediaTokenizer::createDocumentStructure):
657         (WebCore::MediaTokenizer::writeRawData):
658         (WebCore::MediaTokenizer::stopParsing):
659         (WebCore::MediaTokenizer::finish):
660         (WebCore::MediaTokenizer::isWaitingForScripts):
661         (WebCore::MediaDocument::MediaDocument):
662         (WebCore::MediaDocument::createTokenizer):
663         * loader/MediaDocument.h: Added.
664         (WebCore::MediaDocument::create):
665         (WebCore::MediaDocument::isMediaDocument):
666
667         * page/InspectorController.cpp: (WebCore::getResourceDocumentNode):
668           Added MediaDocument case so it is handled the same as a PluginDocument or ImageDocument.
669         * platform/graphics/MediaPlayer.cpp: (WebCore::MediaPlayer::supportsType): Added.
670         * platform/graphics/MediaPlayer.h:
671         * rendering/RenderMedia.cpp: (WebCore::RenderMedia::updateControlVisibility):
672           Instead of checking the html element to decide if the media is audio, check the player.
673           This means that if a video element actually only contains audio, then we will still avoid fading the controls in and out.
674
675 2008-06-17  Timothy Hatcher  <timothy@apple.com>
676
677         Adds the file name and line number for call frames next to
678         the function name in the Call Stack pane.
679
680         https://bugs.webkit.org/show_bug.cgi?id=19586
681
682         Reviewed by Adam Roben.
683
684         * English.lproj/localizedStrings.js: Updated strings.
685         * page/inspector/CallStackSidebarPane.js:
686         (WebInspector.CallStackSidebarPane.prototype.update): Create a subtitle
687         based on the URL and line number.
688
689 2008-06-17  Timothy Hatcher  <timothy@apple.com>
690
691         Use accurate call frame title's based on the call frame type.
692
693         https://bugs.webkit.org/show_bug.cgi?id=19585
694
695         Reviewed by Geoff Garen.
696
697         * English.lproj/localizedStrings.js: Updated strings.
698         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
699         (WebCore::JSJavaScriptCallFrame::evaluate): Removed the isValid()
700         check since the evaluate() functiondoes the check already.
701         (WebCore::JSJavaScriptCallFrame::thisObject): Removed the isValid()
702         check, since thisObject() does the check and returns null if invalid.
703         (WebCore::JSJavaScriptCallFrame::type): Return a string
704         based on the enum value of the type.
705         (WebCore::JSJavaScriptCallFrame::scopeChain): Removed the isValid()
706         check, since scopeChain() does the check and returns null if invalid.
707         So just null check scopeChain().
708         * page/JavaScriptCallFrame.cpp:
709         (WebCore::JavaScriptCallFrame::type): Return the DebuggerCallFrame::Type.
710         Return DebuggerCallFrame::UnknownType if the call frame is invalid.
711         * page/JavaScriptCallFrame.h:
712         * page/JavaScriptCallFrame.idl: Add the type property.
713         * page/inspector/CallStackSidebarPane.js:
714         (WebInspector.CallStackSidebarPane.prototype.update): Check the type
715         of the call frame to create the correct title.
716         * page/inspector/ScriptsPanel.js:
717         (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu): Use the
718         "(program)" title for the file menu to match the call frames.
719
720 2008-06-17  Timothy Hatcher  <timothy@apple.com>
721
722         Remember the expanded state of objects in the Scope Variables pane when stepping.
723         https://bugs.webkit.org/show_bug.cgi?id=19584
724
725         Reviewed by Adam Roben.
726
727         * page/inspector/ObjectPropertiesSection.js:
728         (WebInspector.ObjectPropertiesSection): Add an optional argument
729         that is the treeElementConstructor to use when making TreeElements.
730         (WebInspector.ObjectPropertiesSection.prototype.onpopulate): Use
731         the treeElementConstructor to create TreeElements.
732         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate): Use
733         the treeElementConstructor to create TreeElements.
734         * page/inspector/ScopeChainSidebarPane.js:
735         (WebInspector.ScopeChainSidebarPane.prototype.update): Create an
736         _expandedProperties object on the callframe if one doesn't exist yet.
737         Pass WebInspector.ScopeVariableTreeElement to the ObjectPropertiesSection
738         as the TreeElement constructor we want to use.
739         (WebInspector.ScopeVariableTreeElement): Added.
740         (WebInspector.ScopeVariableTreeElement.prototype.onattach): Expand if the
741         propertyIdentifier is in the pane's _expandedProperties.
742         (WebInspector.ScopeVariableTreeElement.prototype.onexpand): Add the
743         propertyIdentifier to the pane's _expandedProperties.
744         (WebInspector.ScopeVariableTreeElement.prototype.oncollapse): Remove the
745         propertyIdentifier from the pane's _expandedProperties.
746         (WebInspector.ScopeVariableTreeElement.prototype.get propertyIdentifier):
747         Return an identifier that has the section title, subtile and propertyPath concatenated.
748         (WebInspector.ScopeVariableTreeElement.prototype.get propertyPath): Return a string
749         that has the propertyNames up to the root ancestor concatenated with a period.
750
751 2008-06-17  Timothy Hatcher  <timothy@apple.com>
752
753         Focus the mainPanelsElement in a timeout so it happens after the
754         initial focus, so it doesn't get reset to the first toolbar button.
755         This initial focus happens on Mac when the window is made key and
756         the WebHTMLView becomes the first responder.
757
758         https://bugs.webkit.org/show_bug.cgi?id=19587
759
760         Reviewed by Adele Peterson.
761
762         * page/inspector/inspector.js:
763         (WebInspector.loaded): Focus the mainPanelsElement in a timeout.
764
765 2008-06-17  Timothy Hatcher  <timothy@apple.com>
766
767         Use tabIndex in the Web Inspector for focusable areas.
768         https://bugs.webkit.org/show_bug.cgi?id=19583
769
770         Reviewed by Adam Roben.
771
772         * page/inspector/Console.js:
773         (WebInspector.Console): No longer make the messagesElement
774         focusable since the engine handles the case for us. The promptElement
775         now handles the key events.
776         (WebInspector.Console.prototype.show): Set the current focus element
777         to the prompt element.
778         (WebInspector.Console.prototype.hide): Set the current focus element
779         to WebInspector.previousFocusElement.
780         (WebInspector.Console.prototype._messagesFocused): Removed.
781         * page/inspector/DataGrid.js:
782         (WebInspector.DataGrid): Remove the focusable class.
783         * page/inspector/DatabaseQueryView.js:
784         (WebInspector.DatabaseQueryView): Remove the focusable class. Set
785         tabIndex to 0. The promptElement now handles the key events.
786         (WebInspector.DatabaseQueryView.prototype._focused): Removed.
787         * page/inspector/inspector.css: Updated selectors to use :focus
788         instead of .focused and .blurred.
789         * page/inspector/inspector.html: Removed focusable, focused and blurred
790         classes and added tabindex attributes.
791         * page/inspector/inspector.js:
792         (WebInspector.get previousFocusElement): Added. Returns _previousFocusElement.
793         (WebInspector.set currentFocusElement): Simplified. Stores the previous element
794         in _previousFocusElement for clients that need it. Calls focus on the passed
795         in element or blur on the previous element.
796         (WebInspector.loaded): Removed the event listener for mousedown. Renamed
797         changeFocus to focusChanged.
798         (WebInspector.focusChanged): Renamed from changeFocus. Just sets the
799         currentFocusElement to the event target.
800         (WebInspector.startEditing): Changed to use tabIndex and blur events.
801         Add a more robust check for restoring focus to the previous element
802         when editing finishes that catches focused descendants.
803
804 2008-06-17  Timothy Hatcher  <timothy@apple.com>
805
806         Removed redundant if statements and early returns from
807         AccessibilityRenderObject::ariaRoleAttribute.
808
809         Reviewed by Sam Wenig.
810
811         * page/AccessibilityRenderObject.cpp:
812         (AccessibilityRenderObject::ariaRoleAttribute): Removed redundant if
813         statements and early returns.
814
815 2008-06-17  Timothy Hatcher  <timothy@apple.com>
816
817         Removed duplicate implementations of setTabIndex. They all matched
818         the HTMLElement::setTabIndex implementation.
819
820         Reviewed by Sam Wenig.
821
822         * html/HTMLAnchorElement.cpp: Removed setTabIndex.
823         * html/HTMLAreaElement.cpp: Ditto.
824         * html/HTMLFormControlElement.cpp: Ditto.
825         * html/HTMLFormControlElement.h: Ditto.
826         * html/HTMLObjectElement.cpp: Ditto.
827         * html/HTMLObjectElement.h: Ditto.
828
829 2008-06-17  Darin Adler  <darin@apple.com>
830
831         Reviewed by Sam.
832
833         - more of https://bugs.webkit.org/show_bug.cgi?id=17257
834           start ref counts at 1 instead of 0 for speed
835
836         Change StyleBase and all classes derived from it.
837
838         * bindings/js/JSRGBColor.cpp:
839         (WebCore::JSRGBColor::getValueProperty):
840         * bindings/objc/DOMRGBColor.mm:
841         (-[DOMRGBColor red]):
842         (-[DOMRGBColor green]):
843         (-[DOMRGBColor blue]):
844         (-[DOMRGBColor alpha]):
845         * css/CSSBorderImageValue.cpp:
846         (WebCore::CSSBorderImageValue::cssText):
847         * css/CSSBorderImageValue.h:
848         (WebCore::CSSBorderImageValue::create):
849         * css/CSSCanvasValue.h:
850         (WebCore::CSSCanvasValue::create):
851         (WebCore::CSSCanvasValue::setName):
852         (WebCore::CSSCanvasValue::CSSCanvasValue):
853         * css/CSSCharsetRule.cpp:
854         (WebCore::CSSCharsetRule::CSSCharsetRule):
855         * css/CSSCharsetRule.h:
856         (WebCore::CSSCharsetRule::create):
857         (WebCore::CSSCharsetRule::encoding):
858         (WebCore::CSSCharsetRule::isCharsetRule):
859         (WebCore::CSSCharsetRule::type):
860         * css/CSSComputedStyleDeclaration.cpp:
861         (WebCore::valueForShadow):
862         (WebCore::valueForNinePieceImage):
863         (WebCore::valueForReflection):
864         (WebCore::getPositionOffsetValue):
865         (WebCore::currentColorOrValidColor):
866         (WebCore::getBorderRadiusCornerValue):
867         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
868         * css/CSSComputedStyleDeclaration.h:
869         (WebCore::computedStyle):
870         * css/CSSCursorImageValue.h:
871         (WebCore::CSSCursorImageValue::create):
872         * css/CSSFontFaceRule.cpp:
873         (WebCore::CSSFontFaceRule::CSSFontFaceRule):
874         * css/CSSFontFaceRule.h:
875         (WebCore::CSSFontFaceRule::create):
876         (WebCore::CSSFontFaceRule::isFontFaceRule):
877         (WebCore::CSSFontFaceRule::type):
878         * css/CSSFontFaceSrcValue.h:
879         (WebCore::CSSFontFaceSrcValue::create):
880         (WebCore::CSSFontFaceSrcValue::createLocal):
881         (WebCore::CSSFontFaceSrcValue::~CSSFontFaceSrcValue):
882         (WebCore::CSSFontFaceSrcValue::CSSFontFaceSrcValue):
883         * css/CSSGradientValue.h:
884         (WebCore::CSSGradientColorStop::CSSGradientColorStop):
885         (WebCore::CSSGradientValue::create):
886         (WebCore::CSSGradientValue::CSSGradientValue):
887         * css/CSSImageGeneratorValue.h:
888         (WebCore::CSSImageGeneratorValue::isImageGeneratorValue):
889         * css/CSSImageValue.h:
890         (WebCore::CSSImageValue::create):
891         * css/CSSImportRule.cpp:
892         (WebCore::CSSImportRule::CSSImportRule):
893         (WebCore::CSSImportRule::setCSSStyleSheet):
894         * css/CSSImportRule.h:
895         (WebCore::CSSImportRule::create):
896         (WebCore::CSSImportRule::isImportRule):
897         (WebCore::CSSImportRule::type):
898         * css/CSSInheritedValue.h:
899         (WebCore::CSSInheritedValue::create):
900         (WebCore::CSSInheritedValue::CSSInheritedValue):
901         * css/CSSInitialValue.h:
902         (WebCore::CSSInitialValue::createExplicit):
903         (WebCore::CSSInitialValue::createImplicit):
904         (WebCore::CSSInitialValue::CSSInitialValue):
905         * css/CSSMediaRule.cpp:
906         (WebCore::CSSMediaRule::CSSMediaRule):
907         * css/CSSMediaRule.h:
908         (WebCore::CSSMediaRule::create):
909         (WebCore::CSSMediaRule::isMediaRule):
910         (WebCore::CSSMediaRule::type):
911         * css/CSSMutableStyleDeclaration.cpp:
912         (WebCore::CSSMutableStyleDeclaration::setProperty):
913         (WebCore::CSSMutableStyleDeclaration::setStringProperty):
914         * css/CSSMutableStyleDeclaration.h:
915         (WebCore::CSSMutableStyleDeclaration::create):
916         * css/CSSPageRule.cpp:
917         (WebCore::CSSPageRule::CSSPageRule):
918         * css/CSSPageRule.h:
919         (WebCore::CSSPageRule::create):
920         * css/CSSParser.cpp:
921         (WebCore::CSSParser::parseColor):
922         (WebCore::CSSParser::parseValue):
923         (WebCore::CSSParser::addFillValue):
924         (WebCore::CSSParser::parseFillShorthand):
925         (WebCore::CSSParser::addTransitionValue):
926         (WebCore::CSSParser::parseTransitionShorthand):
927         (WebCore::CSSParser::parseShorthand):
928         (WebCore::CSSParser::parseContent):
929         (WebCore::CSSParser::parseBackgroundColor):
930         (WebCore::CSSParser::parseFillPositionXY):
931         (WebCore::CSSParser::parseFillPosition):
932         (WebCore::CSSParser::parseFillSize):
933         (WebCore::CSSParser::parseFillProperty):
934         (WebCore::CSSParser::parseTransitionDuration):
935         (WebCore::CSSParser::parseTransitionRepeatCount):
936         (WebCore::CSSParser::parseTransitionTimingFunction):
937         (WebCore::CSSParser::parseTransitionProperty):
938         (WebCore::CSSParser::parseDashboardRegions):
939         (WebCore::CSSParser::parseCounterContent):
940         (WebCore::CSSParser::parseShape):
941         (WebCore::CSSParser::parseFont):
942         (WebCore::CSSParser::parseFontFamily):
943         (WebCore::CSSParser::parseFontFaceSrc):
944         (WebCore::CSSParser::parseFontFaceUnicodeRange):
945         (WebCore::ShadowParseContext::commitValue):
946         (WebCore::ShadowParseContext::commitLength):
947         (WebCore::CSSParser::parseShadow):
948         (WebCore::CSSParser::parseReflect):
949         (WebCore::BorderImageParseContext::commitNumber):
950         (WebCore::BorderImageParseContext::commitBorderImage):
951         (WebCore::CSSParser::parseBorderImage):
952         (WebCore::CSSParser::parseCounter):
953         (WebCore::parseGradientPoint):
954         (WebCore::parseGradientColorStop):
955         (WebCore::CSSParser::parseGradient):
956         (WebCore::CSSParser::parseCanvas):
957         (WebCore::CSSParser::parseTransform):
958         (WebCore::CSSParser::createMediaList):
959         (WebCore::CSSParser::createCharsetRule):
960         (WebCore::CSSParser::createImportRule):
961         (WebCore::CSSParser::createMediaRule):
962         (WebCore::CSSParser::createStyleRule):
963         (WebCore::CSSParser::createFontFaceRule):
964         * css/CSSPrimitiveValue.h:
965         (WebCore::CSSPrimitiveValue::):
966         (WebCore::CSSPrimitiveValue::createIdentifier):
967         (WebCore::CSSPrimitiveValue::createColor):
968         (WebCore::CSSPrimitiveValue::create):
969         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
970         (WebCore::CSSPrimitiveValue::isPrimitiveValue):
971         * css/CSSQuirkPrimitiveValue.h:
972         (WebCore::CSSQuirkPrimitiveValue::create):
973         * css/CSSReflectValue.h:
974         (WebCore::CSSReflectValue::create):
975         * css/CSSRule.cpp:
976         (WebCore::CSSRule::parentRule):
977         (WebCore::CSSRule::setCssText):
978         * css/CSSRule.h:
979         (WebCore::CSSRule::CSSRule):
980         (WebCore::CSSRule::isRule):
981         * css/CSSStyleDeclaration.cpp:
982         (WebCore::CSSStyleDeclaration::copyPropertiesInSet):
983         * css/CSSStyleDeclaration.h:
984         * css/CSSStyleRule.cpp:
985         (WebCore::CSSStyleRule::CSSStyleRule):
986         * css/CSSStyleRule.h:
987         (WebCore::CSSStyleRule::create):
988         (WebCore::CSSStyleRule::isStyleRule):
989         (WebCore::CSSStyleRule::type):
990         * css/CSSStyleSelector.cpp:
991         (WebCore::CSSStyleSelector::CSSStyleSelector):
992         (WebCore::parseUASheet):
993         (WebCore::CSSRuleSet::addRulesFromSheet):
994         (WebCore::CSSStyleSelector::applyProperty):
995         * css/CSSStyleSheet.cpp:
996         (WebCore::CSSStyleSheet::checkLoaded):
997         * css/CSSStyleSheet.h:
998         (WebCore::CSSStyleSheet::create):
999         (WebCore::CSSStyleSheet::isCSSStyleSheet):
1000         (WebCore::CSSStyleSheet::type):
1001         * css/CSSTimingFunctionValue.h:
1002         (WebCore::CSSTimingFunctionValue::create):
1003         (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
1004         (WebCore::CSSTimingFunctionValue::isTransitionTimingFunctionValue):
1005         * css/CSSTransformValue.cpp:
1006         (WebCore::CSSTransformValue::CSSTransformValue):
1007         (WebCore::CSSTransformValue::~CSSTransformValue):
1008         (WebCore::CSSTransformValue::addValue):
1009         (WebCore::CSSTransformValue::cssText):
1010         * css/CSSTransformValue.h:
1011         (WebCore::CSSTransformValue::create):
1012         * css/CSSUnicodeRangeValue.h:
1013         (WebCore::CSSUnicodeRangeValue::create):
1014         (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
1015         * css/CSSUnknownRule.h:
1016         * css/CSSValue.h:
1017         (WebCore::CSSValue::isImageGeneratorValue):
1018         (WebCore::CSSValue::isImageValue):
1019         (WebCore::CSSValue::isPrimitiveValue):
1020         (WebCore::CSSValue::isValueList):
1021         (WebCore::CSSValue::isSVGColor):
1022         (WebCore::CSSValue::isSVGPaint):
1023         (WebCore::CSSValue::CSSValue):
1024         * css/CSSValueList.h:
1025         (WebCore::CSSValueList::createCommaSeparated):
1026         (WebCore::CSSValueList::createSpaceSeparated):
1027         (WebCore::CSSValueList::isValueList):
1028         * css/FontFamilyValue.h:
1029         (WebCore::FontFamilyValue::create):
1030         * css/FontValue.h:
1031         (WebCore::FontValue::create):
1032         (WebCore::FontValue::FontValue):
1033         (WebCore::FontValue::isFontValue):
1034         * css/MediaList.cpp:
1035         (WebCore::MediaList::MediaList):
1036         (WebCore::MediaList::deleteMedium):
1037         (WebCore::MediaList::setMediaText):
1038         * css/MediaList.h:
1039         (WebCore::MediaList::create):
1040         (WebCore::MediaList::createAllowingDescriptionSyntax):
1041         (WebCore::MediaList::length):
1042         (WebCore::MediaList::mediaQueries):
1043         * css/MediaQueryEvaluator.cpp:
1044         (WebCore::MediaQueryEvaluator::eval):
1045         * css/MediaQueryExp.cpp:
1046         (WebCore::MediaQueryExp::MediaQueryExp):
1047         * css/SVGCSSComputedStyleDeclaration.cpp:
1048         (WebCore::glyphOrientationToCSSPrimitiveValue):
1049         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
1050         * css/SVGCSSParser.cpp:
1051         (WebCore::CSSParser::parseSVGValue):
1052         (WebCore::CSSParser::parseSVGStrokeDasharray):
1053         (WebCore::CSSParser::parseSVGPaint):
1054         (WebCore::CSSParser::parseSVGColor):
1055         * css/ShadowValue.h:
1056         (WebCore::ShadowValue::create):
1057         * css/StyleBase.h:
1058         (WebCore::StyleBase::isCSSStyleSheet):
1059         (WebCore::StyleBase::isFontFaceRule):
1060         (WebCore::StyleBase::isRule):
1061         (WebCore::StyleBase::isStyleRule):
1062         (WebCore::StyleBase::isStyleSheet):
1063         (WebCore::StyleBase::isXSLStyleSheet):
1064         (WebCore::StyleBase::StyleBase):
1065         * css/StyleList.cpp:
1066         * css/StyleList.h:
1067         (WebCore::StyleList::StyleList):
1068         * css/StyleSheet.h:
1069         (WebCore::StyleSheet::styleSheetChanged):
1070         (WebCore::StyleSheet::isStyleSheet):
1071         * dom/CSSMappedAttributeDeclaration.h:
1072         (WebCore::CSSMappedAttributeDeclaration::create):
1073         (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
1074         * dom/DOMImplementation.cpp:
1075         (WebCore::DOMImplementation::createCSSStyleSheet):
1076         * dom/Document.cpp:
1077         (WebCore::Document::createCSSStyleDeclaration):
1078         (WebCore::Document::setCSSStyleSheet):
1079         (WebCore::Document::elementSheet):
1080         (WebCore::Document::mappedElementSheet):
1081         (WebCore::Document::recalcStyleSelector):
1082         * dom/Node.cpp:
1083         (WebCore::Node::querySelector):
1084         (WebCore::Node::querySelectorAll):
1085         * dom/Position.cpp:
1086         (WebCore::Position::computedStyle):
1087         * dom/ProcessingInstruction.cpp:
1088         (WebCore::ProcessingInstruction::checkStyleSheet):
1089         (WebCore::ProcessingInstruction::setCSSStyleSheet):
1090         (WebCore::ProcessingInstruction::setXSLStyleSheet):
1091         * dom/ProcessingInstruction.h:
1092         * dom/StyleElement.cpp:
1093         (WebCore::StyleElement::createSheet):
1094         * dom/StyledElement.cpp:
1095         (WebCore::StyledElement::createInlineStyleDecl):
1096         (WebCore::StyledElement::createMappedDecl):
1097         * editing/ApplyStyleCommand.cpp:
1098         (WebCore::ApplyStyleCommand::ApplyStyleCommand):
1099         (WebCore::hasTextDecorationProperty):
1100         (WebCore::ApplyStyleCommand::extractAndNegateTextDecorationStyle):
1101         * editing/CompositeEditCommand.cpp:
1102         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
1103         * editing/DeleteSelectionCommand.cpp:
1104         (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
1105         * editing/Editor.cpp:
1106         (WebCore::Editor::selectionHasStyle):
1107         (WebCore::Editor::setBaseWritingDirection):
1108         * editing/EditorCommand.cpp:
1109         (WebCore::executeApplyStyle):
1110         (WebCore::executeToggleStyle):
1111         (WebCore::executeApplyParagraphStyle):
1112         (WebCore::stateStyle):
1113         * editing/InsertParagraphSeparatorCommand.cpp:
1114         (WebCore::InsertParagraphSeparatorCommand::applyStyleAfterInsertion):
1115         * editing/RemoveFormatCommand.cpp:
1116         (WebCore::RemoveFormatCommand::doApply):
1117         * editing/ReplaceSelectionCommand.cpp:
1118         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
1119         * editing/markup.cpp:
1120         (WebCore::styleFromMatchedRulesForElement):
1121         (WebCore::appendStartMarkup):
1122         * html/HTMLBodyElement.cpp:
1123         (WebCore::HTMLBodyElement::createLinkDecl):
1124         * html/HTMLLinkElement.cpp:
1125         (WebCore::HTMLLinkElement::process):
1126         (WebCore::HTMLLinkElement::setCSSStyleSheet):
1127         * html/HTMLMediaElement.cpp:
1128         (WebCore::HTMLMediaElement::pickMedia):
1129         * html/HTMLTableElement.cpp:
1130         (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
1131         (WebCore::HTMLTableElement::addSharedCellBordersDecl):
1132         (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
1133         (WebCore::HTMLTableElement::addSharedGroupDecls):
1134         * page/DOMWindow.cpp:
1135         (WebCore::DOMWindow::getComputedStyle):
1136         * page/Frame.cpp:
1137         (WebCore::Frame::computeAndSetTypingStyle):
1138         (WebCore::Frame::selectionComputedStyle):
1139         * page/Frame.h:
1140         * rendering/style/RenderStyle.cpp:
1141         (WebCore::StyleCachedImage::cssValue):
1142         * rendering/style/RenderStyle.h:
1143         * svg/SVGColor.h:
1144         (WebCore::SVGColor::create):
1145         (WebCore::SVGColor::isSVGColor):
1146         * svg/SVGFontFaceElement.cpp:
1147         (WebCore::SVGFontFaceElement::SVGFontFaceElement):
1148         (WebCore::SVGFontFaceElement::rebuildFontFace):
1149         * svg/SVGFontFaceNameElement.cpp:
1150         (WebCore::SVGFontFaceNameElement::srcValue):
1151         * svg/SVGFontFaceSrcElement.cpp:
1152         (WebCore::SVGFontFaceSrcElement::srcValue):
1153         * svg/SVGFontFaceUriElement.cpp:
1154         (WebCore::SVGFontFaceUriElement::srcValue):
1155         * svg/SVGPaint.cpp:
1156         (WebCore::SVGPaint::SVGPaint):
1157         * svg/SVGPaint.h:
1158         (WebCore::SVGPaint::create):
1159         (WebCore::SVGPaint::isSVGPaint):
1160         * svg/animation/SMILTimeContainer.cpp:
1161         (WebCore::SMILTimeContainer::baseValueFor):
1162         * xml/XSLImportRule.cpp:
1163         (WebCore::XSLImportRule::XSLImportRule):
1164         (WebCore::XSLImportRule::setXSLStyleSheet):
1165         * xml/XSLImportRule.h:
1166         (WebCore::XSLImportRule::create):
1167         (WebCore::XSLImportRule::href):
1168         (WebCore::XSLImportRule::isImportRule):
1169         * xml/XSLStyleSheet.cpp:
1170         (WebCore::XSLStyleSheet::checkLoaded):
1171         (WebCore::XSLStyleSheet::loadChildSheet):
1172         * xml/XSLStyleSheet.h:
1173         (WebCore::XSLStyleSheet::create):
1174         (WebCore::XSLStyleSheet::createEmbedded):
1175         * xml/XSLTProcessor.cpp:
1176         (WebCore::xsltStylesheetPointer):
1177
1178 2008-06-17  Michelangelo De Simone  <m.des@mac.com>
1179
1180         Reviewed by Adele.
1181         
1182         Fix for https://bugs.webkit.org/show_bug.cgi?id=18887
1183         Added support for autofocus controls.
1184
1185         When authors specify the "autofocus" attribute on form controls these 
1186         acquire focus automatically as the document is rendered.
1187
1188         Tests: fast/forms/autofocus-attribute.html
1189                fast/forms/autofocus-opera-001.html
1190                fast/forms/autofocus-opera-002.html
1191                fast/forms/autofocus-opera-003.html
1192                fast/forms/autofocus-opera-004.html
1193                fast/forms/autofocus-opera-005.html
1194                fast/forms/autofocus-opera-006.html
1195                fast/forms/autofocus-opera-007.html
1196                fast/forms/autofocus-opera-008.html
1197
1198         * dom/Document.cpp: (WebCore::Document::Document): Initialize the flag to ignore autofocus.
1199         * dom/Document.h:
1200         * html/HTMLAttributeNames.in:
1201         * html/HTMLButtonElement.idl:
1202         * html/HTMLFormControlElement.cpp:
1203         (WebCore::HTMLFormControlElement::attach): Sets focus onto the appropriate "autofocus" control
1204         (WebCore::HTMLFormControlElement::autofocus): Autofocus attribute getter
1205         (WebCore::HTMLFormControlElement::setAutofocus): Autofocus attribute setter
1206         * html/HTMLFormControlElement.h:
1207         * html/HTMLInputElement.idl:
1208         * html/HTMLSelectElement.idl:
1209         * html/HTMLTextAreaElement.idl:
1210         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setUserEdited):
1211           Sets the "ignore autofocus" flag on document if the user edited the control.
1212         * rendering/RenderTextControl.h:
1213
1214 2008-06-17  Alp Toker  <alp@nuanti.com>
1215
1216         Reviewed by Dave Hyatt and Mark Rowe.
1217
1218         https://bugs.webkit.org/show_bug.cgi?id=19190
1219         [CAIRO] Canvas rendered as black
1220
1221         Make sure the frame alpha transparency flag is set to true unless
1222         we're certain the image data is solid and can be blitted, since the
1223         Cairo backend implements a fast-path for blittable BitmapImages.
1224
1225         Thanks to Dirk Schulze for helping to track down this problem.
1226
1227         * platform/graphics/BitmapImage.cpp:
1228         (WebCore::BitmapImage::frameHasAlphaAtIndex):
1229         * platform/graphics/cairo/ImageCairo.cpp:
1230         (WebCore::BitmapImage::BitmapImage):
1231         * platform/graphics/cg/ImageCG.cpp:
1232         (WebCore::BitmapImage::BitmapImage):
1233
1234 2008-06-17  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1235
1236         Reviewed by Simon.
1237
1238         Fix the Qt port by adding ExecState when necessary.
1239
1240         * bridge/qt/qt_instance.cpp:
1241         (KJS::Bindings::QtInstance::getPropertyNames):
1242         (KJS::Bindings::QtInstance::invokeDefaultMethod):
1243         * bridge/qt/qt_runtime.cpp:
1244         (KJS::Bindings::convertValueToQVariant):
1245         (KJS::Bindings::convertQVariantToValue):
1246         (KJS::Bindings::QtRuntimeConnectionMethod::callAsFunction):
1247         (KJS::Bindings::QtConnectionObject::execute):
1248
1249 2008-06-17  David Hyatt  <hyatt@apple.com>
1250
1251         Fix for slow performance on CSS selector tests at:
1252
1253         http://jpsykes.com/153/more-css-performance-testing-pt-2
1254
1255         Fix <style> element processing so that we don't reparse the entire stylesheet as chunks come in from
1256         the network (since this is O(n^2)).   Wait for the parser to deliver all of the data before we
1257         process the sheet for the first time.
1258
1259         Reviewed by olliej
1260
1261         * html/HTMLStyleElement.cpp:
1262         (WebCore::HTMLStyleElement::finishParsingChildren):
1263         (WebCore::HTMLStyleElement::childrenChanged):
1264
1265 2008-06-16  Dan Bernstein  <mitz@apple.com>
1266
1267         Reviewed by Justin Garcia.
1268
1269         - fix <rdar://problem/5973313> REGRESSION (r32508): Down arrow doesn't change caret with non-user entered newlines in textareas
1270
1271         Test: editing/selection/after-line-break.html
1272
1273         * dom/Position.cpp:
1274         (WebCore::Position::getInlineBoxAndOffset): Changed to not include the
1275         position after a line break in its line box, because that position is
1276         actually on the next line.
1277
1278 2008-06-16  Alexey Proskuryakov  <ap@webkit.org>
1279
1280         Reviewed by Geoff Garen.
1281
1282         Make Identifier construction use an explicitly passed IdentifierTable.
1283
1284         * platform/text/AtomicString.cpp:
1285         * platform/text/AtomicString.h:
1286         * platform/text/PlatformString.h:
1287         * platform/text/String.cpp:
1288         Removed "operator KJS::Identifier".
1289
1290         * bindings/js/JSCustomSQLStatementCallback.cpp:
1291         (WebCore::JSCustomSQLStatementCallback::handleEvent):
1292         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
1293         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
1294         * bindings/js/JSCustomSQLTransactionCallback.cpp:
1295         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
1296         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
1297         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
1298         * bindings/js/JSCustomVoidCallback.cpp:
1299         (WebCore::JSCustomVoidCallback::handleEvent):
1300         * bindings/js/JSCustomXPathNSResolver.cpp:
1301         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1302         * bindings/js/JSDOMWindowBase.cpp:
1303         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
1304         (WebCore::JSDOMWindowBase::updateDocument):
1305         (WebCore::createWindow):
1306         (WebCore::showModalDialog):
1307         (WebCore::JSDOMWindowBase::getOwnPropertySlot):
1308         (WebCore::JSDOMWindowBase::put):
1309         (WebCore::JSDOMWindowBase::clear):
1310         * bindings/js/JSDOMWindowCustom.cpp:
1311         (WebCore::JSDOMWindow::setLocation):
1312         * bindings/js/JSDOMWindowCustom.h:
1313         (WebCore::JSDOMWindow::customGetOwnPropertySlot):
1314         * bindings/js/JSEventListener.cpp:
1315         (WebCore::JSAbstractEventListener::handleEvent):
1316         (WebCore::JSLazyEventListener::parseCode):
1317         * bindings/js/JSEventTargetBase.h:
1318         (WebCore::JSEventTargetPrototype::self):
1319         * bindings/js/JSHTMLCollectionCustom.cpp:
1320         (WebCore::JSHTMLCollection::callAsFunction):
1321         (WebCore::JSHTMLCollection::item):
1322         (WebCore::JSHTMLCollection::namedItem):
1323         * bindings/js/JSHTMLDocumentCustom.cpp:
1324         (WebCore::JSHTMLDocument::all):
1325         (WebCore::JSHTMLDocument::setAll):
1326         (WebCore::JSHTMLDocument::open):
1327         * bindings/js/JSHTMLInputElementBase.cpp:
1328         (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
1329         * bindings/js/JSHistoryCustom.cpp:
1330         (WebCore::JSHistory::customGetOwnPropertySlot):
1331         * bindings/js/JSLocationCustom.cpp:
1332         (WebCore::JSLocation::customGetOwnPropertySlot):
1333         (WebCore::JSLocation::customPut):
1334         * bindings/js/JSNavigatorCustom.cpp:
1335         (WebCore::needsYouTubeQuirk):
1336         * bindings/js/JSSQLResultSetRowListCustom.cpp:
1337         (WebCore::JSSQLResultSetRowList::item):
1338         * bindings/js/JSStorageCustom.cpp:
1339         (WebCore::JSStorage::customGetPropertyNames):
1340         * bindings/js/ScheduledAction.cpp:
1341         (WebCore::ScheduledAction::execute):
1342         * bindings/js/ScriptController.cpp:
1343         (WebCore::ScriptController::evaluate):
1344         * bindings/objc/WebScriptObject.mm:
1345         (WebCore::addExceptionToConsole):
1346         (-[WebScriptObject callWebScriptMethod:withArguments:]):
1347         (-[WebScriptObject setValue:forKey:]):
1348         (-[WebScriptObject valueForKey:]):
1349         (-[WebScriptObject removeWebScriptKey:]):
1350         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
1351         * bindings/scripts/CodeGeneratorJS.pm:
1352         * bridge/NP_jsobject.cpp:
1353         (_NPN_Enumerate):
1354         * bridge/c/c_instance.cpp:
1355         (KJS::Bindings::CInstance::getPropertyNames):
1356         * bridge/c/c_utility.cpp:
1357         (KJS::Bindings::identifierFromNPIdentifier):
1358         * bridge/jni/jni_class.cpp:
1359         (JavaClass::JavaClass):
1360         * bridge/jni/jni_jsobject.mm:
1361         (JavaJSObject::call):
1362         (JavaJSObject::getMember):
1363         (JavaJSObject::setMember):
1364         (JavaJSObject::removeMember):
1365         * bridge/runtime_method.cpp:
1366         (RuntimeMethod::callAsFunction):
1367         Adapted to JavaScriptCore changes by explicitly constructing Identifiers, and always passing
1368         an ExecState or JSGlobalData pointer. Since WebCore is not a legacy client, this can use
1369         JSGlobalData::threadInstance(), as performance permits.
1370
1371 2008-06-16  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
1372
1373         Reviewed by Dan Bernstein.
1374
1375         - fix https://bugs.webkit.org/show_bug.cgi?id=19592
1376           Mismatched GraphicsContext::save()/restore() pairs in shadow painting code
1377
1378         * rendering/InlineFlowBox.cpp:
1379         (WebCore::InlineFlowBox::paintTextDecorations): remove an extra context->save()
1380         from the shadow painting code.
1381
1382 2008-06-16  Adriaan de Groot  <groot@kde.org>
1383
1384         Reviewed by Simon.
1385
1386         Fix compilation on Sun Studio 12
1387
1388         make_pair is a function template with two template arguments. This is to force
1389         it to have the correct type according to the pair<> structure.
1390
1391         * editing/TextIterator.cpp:
1392         (WebCore::plainTextToMallocAllocatedBuffer):
1393         * page/Chrome.cpp:
1394         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1395
1396 2008-06-10  Tor Arne Vestbø  <tavestbo@trolltech.com>
1397
1398         Reviewed by Simon
1399
1400         https://bugs.webkit.org/show_bug.cgi?id=19462
1401
1402         Fill the background of scrollbars to the window color before
1403         letting the QStyle paint its primitive elements.
1404
1405         * platform/qt/PlatformScrollBarQt.cpp:
1406         (WebCore::PlatformScrollbar::paint):
1407
1408 2008-06-15  Darin Adler  <darin@apple.com>
1409
1410         Rubber stamped by Sam.
1411
1412         - renamed kjs_html.h/cpp to JSPluginElementFunctions.h/cpp
1413         - renamed kjs_events.h/cpp to JSEventListener.h/cpp
1414
1415         * GNUmakefile.am:
1416         * WebCore.pro:
1417         * WebCore.vcproj/WebCore.vcproj:
1418         * WebCore.xcodeproj/project.pbxproj:
1419         * WebCoreSources.bkl:
1420         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
1421         * bindings/js/JSDOMApplicationCacheCustom.cpp:
1422         * bindings/js/JSDOMWindowBase.cpp:
1423         * bindings/js/JSEventCustom.cpp:
1424         * bindings/js/JSEventListener.cpp: Copied from WebCore/bindings/js/kjs_events.cpp.
1425         * bindings/js/JSEventListener.h: Copied from WebCore/bindings/js/kjs_events.h.
1426         * bindings/js/JSEventTargetBase.h:
1427         * bindings/js/JSHTMLAppletElementCustom.cpp:
1428         * bindings/js/JSHTMLCollectionCustom.cpp:
1429         * bindings/js/JSHTMLDocumentCustom.cpp:
1430         * bindings/js/JSHTMLEmbedElementCustom.cpp:
1431         * bindings/js/JSHTMLInputElementBase.h:
1432         * bindings/js/JSHTMLObjectElementCustom.cpp:
1433         * bindings/js/JSHTMLSelectElementCustom.cpp:
1434         * bindings/js/JSPluginElementFunctions.cpp: Copied from WebCore/bindings/js/kjs_html.cpp.
1435         * bindings/js/JSPluginElementFunctions.h: Copied from WebCore/bindings/js/kjs_html.h.
1436         * bindings/js/JSSVGLazyEventListener.h:
1437         * bindings/js/JSXMLHttpRequestCustom.cpp:
1438         * bindings/js/ScriptController.cpp:
1439         * bindings/js/kjs_events.cpp: Removed.
1440         * bindings/js/kjs_events.h: Removed.
1441         * bindings/js/kjs_html.cpp: Removed.
1442         * bindings/js/kjs_html.h: Removed.
1443
1444 2008-06-15  Darin Adler  <darin@apple.com>
1445
1446         - give Frame object functions shorter names: scriptProxy() -> script(),
1447           selectionController() -> selection(), animationController() -> animation()
1448
1449         * WebCore.base.exp:
1450         * bindings/js/JSCustomSQLStatementCallback.cpp:
1451         (WebCore::JSCustomSQLStatementCallback::handleEvent):
1452         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
1453         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
1454         * bindings/js/JSCustomSQLTransactionCallback.cpp:
1455         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
1456         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
1457         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
1458         * bindings/js/JSCustomVoidCallback.cpp:
1459         (WebCore::JSCustomVoidCallback::handleEvent):
1460         * bindings/js/JSCustomXPathNSResolver.cpp:
1461         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1462         * bindings/js/JSDOMWindowBase.cpp:
1463         (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
1464         (WebCore::allowPopUp):
1465         (WebCore::createWindow):
1466         (WebCore::windowProtoFuncOpen):
1467         (WebCore::toJS):
1468         (WebCore::toJSDOMWindow):
1469         * bindings/js/JSDOMWindowCustom.cpp:
1470         (WebCore::JSDOMWindow::setLocation):
1471         * bindings/js/JSDOMWindowShell.cpp:
1472         (WebCore::toJS):
1473         (WebCore::toJSDOMWindowShell):
1474         * bindings/js/JSDocumentCustom.cpp:
1475         (WebCore::JSDocument::setLocation):
1476         * bindings/js/JSLocationCustom.cpp:
1477         (WebCore::navigateIfAllowed):
1478         (WebCore::JSLocation::reload):
1479         * bindings/js/JSNodeFilterCondition.cpp:
1480         (WebCore::JSNodeFilterCondition::acceptNode):
1481         * bindings/js/ScheduledAction.cpp:
1482         (WebCore::ScheduledAction::execute):
1483         * bindings/js/kjs_events.cpp:
1484         (WebCore::JSAbstractEventListener::handleEvent):
1485         (WebCore::JSLazyEventListener::parseCode):
1486         * bindings/js/kjs_html.cpp:
1487         (WebCore::runtimeObjectImplementsCall):
1488         * bindings/objc/DOMInternal.mm:
1489         (-[WebScriptObject _initializeScriptDOMNodeImp]):
1490         * bridge/jni/jni_jsobject.mm:
1491         (createRootObject):
1492         * css/CSSStyleSelector.cpp:
1493         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
1494         * dom/Document.cpp:
1495         (WebCore::Document::nodeWillBeRemoved):
1496         (WebCore::Document::createHTMLEventListener):
1497         * dom/Element.cpp:
1498         (WebCore::Element::updateFocusAppearance):
1499         * dom/EventTarget.cpp:
1500         (WebCore::EventTarget::dispatchGenericEvent):
1501         * dom/XMLTokenizer.cpp:
1502         (WebCore::XMLTokenizer::startElementNs):
1503         * editing/DeleteButtonController.cpp:
1504         (WebCore::DeleteButtonController::respondToChangedSelection):
1505         (WebCore::DeleteButtonController::enable):
1506         (WebCore::DeleteButtonController::deleteTarget):
1507         * editing/EditCommand.cpp:
1508         (WebCore::EditCommand::EditCommand):
1509         * editing/Editor.cpp:
1510         (WebCore::Editor::selectionForCommand):
1511         (WebCore::Editor::canEdit):
1512         (WebCore::Editor::canEditRichly):
1513         (WebCore::Editor::canDHTMLCut):
1514         (WebCore::Editor::canDHTMLCopy):
1515         (WebCore::Editor::canCopy):
1516         (WebCore::Editor::canDelete):
1517         (WebCore::Editor::deleteWithDirection):
1518         (WebCore::Editor::deleteSelectionWithSmartDelete):
1519         (WebCore::Editor::replaceSelectionWithFragment):
1520         (WebCore::Editor::selectedRange):
1521         (WebCore::Editor::tryDHTMLCopy):
1522         (WebCore::Editor::tryDHTMLCut):
1523         (WebCore::Editor::fontForSelection):
1524         (WebCore::Editor::selectionUnorderedListState):
1525         (WebCore::Editor::selectionOrderedListState):
1526         (WebCore::Editor::increaseSelectionListLevel):
1527         (WebCore::Editor::increaseSelectionListLevelOrdered):
1528         (WebCore::Editor::increaseSelectionListLevelUnordered):
1529         (WebCore::Editor::decreaseSelectionListLevel):
1530         (WebCore::Editor::dispatchCPPEvent):
1531         (WebCore::Editor::applyStyle):
1532         (WebCore::Editor::applyParagraphStyle):
1533         (WebCore::Editor::applyStyleToSelection):
1534         (WebCore::Editor::applyParagraphStyleToSelection):
1535         (WebCore::Editor::selectionHasStyle):
1536         (WebCore::Editor::appliedEditing):
1537         (WebCore::Editor::unappliedEditing):
1538         (WebCore::Editor::reappliedEditing):
1539         (WebCore::Editor::insertLineBreak):
1540         (WebCore::Editor::insertParagraphSeparator):
1541         (WebCore::Editor::paste):
1542         (WebCore::Editor::selectComposition):
1543         (WebCore::Editor::confirmComposition):
1544         (WebCore::Editor::setComposition):
1545         (WebCore::Editor::advanceToNextMisspelling):
1546         (WebCore::Editor::isSelectionUngrammatical):
1547         (WebCore::Editor::guessesForUngrammaticalSelection):
1548         (WebCore::Editor::getCompositionSelection):
1549         (WebCore::Editor::transpose):
1550         * editing/EditorCommand.cpp:
1551         (WebCore::expandSelectionToGranularity):
1552         (WebCore::executeDeleteToMark):
1553         (WebCore::executeMoveBackward):
1554         (WebCore::executeMoveBackwardAndModifySelection):
1555         (WebCore::executeMoveDown):
1556         (WebCore::executeMoveDownAndModifySelection):
1557         (WebCore::executeMoveForward):
1558         (WebCore::executeMoveForwardAndModifySelection):
1559         (WebCore::executeMoveLeft):
1560         (WebCore::executeMoveLeftAndModifySelection):
1561         (WebCore::executeMovePageDown):
1562         (WebCore::executeMovePageDownAndModifySelection):
1563         (WebCore::executeMovePageUp):
1564         (WebCore::executeMovePageUpAndModifySelection):
1565         (WebCore::executeMoveRight):
1566         (WebCore::executeMoveRightAndModifySelection):
1567         (WebCore::executeMoveToBeginningOfDocument):
1568         (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
1569         (WebCore::executeMoveToBeginningOfLine):
1570         (WebCore::executeMoveToBeginningOfLineAndModifySelection):
1571         (WebCore::executeMoveToBeginningOfParagraph):
1572         (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
1573         (WebCore::executeMoveToBeginningOfSentence):
1574         (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
1575         (WebCore::executeMoveToEndOfDocument):
1576         (WebCore::executeMoveToEndOfDocumentAndModifySelection):
1577         (WebCore::executeMoveToEndOfSentence):
1578         (WebCore::executeMoveToEndOfSentenceAndModifySelection):
1579         (WebCore::executeMoveToEndOfLine):
1580         (WebCore::executeMoveToEndOfLineAndModifySelection):
1581         (WebCore::executeMoveToEndOfParagraph):
1582         (WebCore::executeMoveToEndOfParagraphAndModifySelection):
1583         (WebCore::executeMoveParagraphBackwardAndModifySelection):
1584         (WebCore::executeMoveParagraphForwardAndModifySelection):
1585         (WebCore::executeMoveUp):
1586         (WebCore::executeMoveUpAndModifySelection):
1587         (WebCore::executeMoveWordBackward):
1588         (WebCore::executeMoveWordBackwardAndModifySelection):
1589         (WebCore::executeMoveWordForward):
1590         (WebCore::executeMoveWordForwardAndModifySelection):
1591         (WebCore::executeMoveWordLeft):
1592         (WebCore::executeMoveWordLeftAndModifySelection):
1593         (WebCore::executeMoveWordRight):
1594         (WebCore::executeMoveWordRightAndModifySelection):
1595         (WebCore::executeSelectAll):
1596         (WebCore::executeSelectToMark):
1597         (WebCore::executeSetMark):
1598         (WebCore::executeSwapWithMark):
1599         (WebCore::executeUnselect):
1600         (WebCore::enabledAnySelection):
1601         (WebCore::enabledAnySelectionAndMark):
1602         (WebCore::enabledInRichlyEditableText):
1603         (WebCore::enabledRangeInEditableText):
1604         (WebCore::enabledRangeInRichlyEditableText):
1605         * editing/ModifySelectionListLevel.cpp:
1606         (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
1607         (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
1608         * editing/RemoveFormatCommand.cpp:
1609         (WebCore::RemoveFormatCommand::doApply):
1610         * editing/SelectionController.cpp:
1611         (WebCore::SelectionController::setSelection):
1612         (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
1613         * editing/TypingCommand.cpp:
1614         (WebCore::TypingCommand::deleteSelection):
1615         (WebCore::TypingCommand::insertText):
1616         (WebCore::TypingCommand::deleteKeyPressed):
1617         (WebCore::TypingCommand::forwardDeleteKeyPressed):
1618         * history/CachedPage.cpp:
1619         (WebCore::CachedPage::CachedPage):
1620         (WebCore::CachedPage::restore):
1621         * html/HTMLAnchorElement.cpp:
1622         (WebCore::HTMLAnchorElement::defaultEventHandler):
1623         (WebCore::HTMLAnchorElement::setActive):
1624         * html/HTMLInputElement.cpp:
1625         (WebCore::HTMLInputElement::defaultEventHandler):
1626         * html/HTMLPlugInElement.cpp:
1627         (WebCore::HTMLPlugInElement::createNPObject):
1628         * html/HTMLScriptElement.cpp:
1629         (WebCore::HTMLScriptElement::evaluateScript):
1630         * html/HTMLTokenizer.cpp:
1631         (WebCore::HTMLTokenizer::parseTag):
1632         (WebCore::HTMLTokenizer::processToken):
1633         * loader/FrameLoader.cpp:
1634         (WebCore::FrameLoader::executeScript):
1635         (WebCore::FrameLoader::clear):
1636         (WebCore::FrameLoader::userGestureHint):
1637         (WebCore::FrameLoader::open):
1638         (WebCore::FrameLoader::dispatchWindowObjectAvailable):
1639         (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
1640         * loader/archive/cf/LegacyWebArchive.cpp:
1641         (WebCore::LegacyWebArchive::createFromSelection):
1642         * page/AccessibilityRenderObject.cpp:
1643         (WebCore::AccessibilityRenderObject::selection):
1644         (WebCore::AccessibilityRenderObject::setSelectedTextRange):
1645         (WebCore::AccessibilityRenderObject::isFocused):
1646         (WebCore::AccessibilityRenderObject::doAXTextMarkerRangeForLine):
1647         (WebCore::AccessibilityRenderObject::doSetAXSelectedTextMarkerRange):
1648         (WebCore::AccessibilityRenderObject::doAXRangeForLine):
1649         (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
1650         * page/ContextMenuController.cpp:
1651         (WebCore::ContextMenuController::contextMenuItemSelected):
1652         * page/DOMSelection.cpp:
1653         (WebCore::DOMSelection::anchorNode):
1654         (WebCore::DOMSelection::baseNode):
1655         (WebCore::DOMSelection::anchorOffset):
1656         (WebCore::DOMSelection::baseOffset):
1657         (WebCore::DOMSelection::focusNode):
1658         (WebCore::DOMSelection::extentNode):
1659         (WebCore::DOMSelection::focusOffset):
1660         (WebCore::DOMSelection::extentOffset):
1661         (WebCore::DOMSelection::isCollapsed):
1662         (WebCore::DOMSelection::type):
1663         (WebCore::DOMSelection::rangeCount):
1664         (WebCore::DOMSelection::collapse):
1665         (WebCore::DOMSelection::collapseToEnd):
1666         (WebCore::DOMSelection::collapseToStart):
1667         (WebCore::DOMSelection::empty):
1668         (WebCore::DOMSelection::setBaseAndExtent):
1669         (WebCore::DOMSelection::setPosition):
1670         (WebCore::DOMSelection::modify):
1671         (WebCore::DOMSelection::extend):
1672         (WebCore::DOMSelection::getRangeAt):
1673         (WebCore::DOMSelection::removeAllRanges):
1674         (WebCore::DOMSelection::addRange):
1675         (WebCore::DOMSelection::deleteFromDocument):
1676         (WebCore::DOMSelection::containsNode):
1677         (WebCore::DOMSelection::toString):
1678         * page/DragController.cpp:
1679         (WebCore::DragController::dragIsMove):
1680         (WebCore::DragController::tryDocumentDrag):
1681         (WebCore::setSelectionToDragCaret):
1682         (WebCore::DragController::concludeDrag):
1683         (WebCore::prepareClipboardForImageDrag):
1684         (WebCore::DragController::startDrag):
1685         * page/EventHandler.cpp:
1686         (WebCore::EventHandler::selectClosestWordFromMouseEvent):
1687         (WebCore::EventHandler::selectClosestWordOrLinkFromMouseEvent):
1688         (WebCore::EventHandler::handleMousePressEventDoubleClick):
1689         (WebCore::EventHandler::handleMousePressEventTripleClick):
1690         (WebCore::EventHandler::handleMousePressEventSingleClick):
1691         (WebCore::EventHandler::handleMousePressEvent):
1692         (WebCore::EventHandler::updateSelectionForMouseDrag):
1693         (WebCore::EventHandler::handleMouseReleaseEvent):
1694         (WebCore::nodeIsNotBeingEdited):
1695         (WebCore::EventHandler::selectCursor):
1696         (WebCore::EventHandler::dispatchMouseEvent):
1697         (WebCore::EventHandler::sendContextMenuEvent):
1698         (WebCore::EventHandler::handleKeyboardSelectionMovement):
1699         (WebCore::EventHandler::handleDrag):
1700         * page/FocusController.cpp:
1701         (WebCore::FocusController::setFocusedFrame):
1702         (WebCore::clearSelectionIfNeeded):
1703         (WebCore::FocusController::setActive):
1704         * page/Frame.cpp:
1705         (WebCore::Frame::~Frame):
1706         (WebCore::Frame::script):
1707         (WebCore::Frame::setDocument):
1708         (WebCore::Frame::selectedText):
1709         (WebCore::Frame::selection):
1710         (WebCore::Frame::animation):
1711         (WebCore::Frame::notifyRendererOfSelectionChange):
1712         (WebCore::Frame::invalidateSelection):
1713         (WebCore::Frame::clearCaretRectIfNeeded):
1714         (WebCore::Frame::setFocusedNodeIfNeeded):
1715         (WebCore::Frame::selectionLayoutChanged):
1716         (WebCore::Frame::caretBlinkTimerFired):
1717         (WebCore::Frame::paintCaret):
1718         (WebCore::Frame::shouldChangeSelection):
1719         (WebCore::Frame::updateSecureKeyboardEntryIfActive):
1720         (WebCore::Frame::computeAndSetTypingStyle):
1721         (WebCore::Frame::selectionComputedStyle):
1722         (WebCore::Frame::bindingRootObject):
1723         (WebCore::Frame::windowScriptNPObject):
1724         (WebCore::Frame::clearScriptController):
1725         (WebCore::Frame::selectionTextRects):
1726         (WebCore::Frame::currentForm):
1727         (WebCore::Frame::revealSelection):
1728         (WebCore::Frame::revealCaret):
1729         (WebCore::Frame::clearTimers):
1730         (WebCore::Frame::styleForSelectionStart):
1731         (WebCore::Frame::setSelectionFromNone):
1732         (WebCore::Frame::findString):
1733         (WebCore::Frame::pageDestroyed):
1734         (WebCore::Frame::respondToChangedSelection):
1735         (WebCore::FramePrivate::FramePrivate):
1736         * page/Frame.h:
1737         * page/FramePrivate.h:
1738         * page/InspectorController.cpp:
1739         (WebCore::canPassNodeToJavaScript):
1740         (WebCore::InspectorController::windowScriptObjectAvailable):
1741         * page/JavaScriptDebugServer.cpp:
1742         (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
1743         * page/Page.cpp:
1744         (WebCore::Page::findString):
1745         (WebCore::Page::selection):
1746         (WebCore::Page::setDebugger):
1747         * page/mac/FrameMac.mm:
1748         (WebCore::Frame::baseWritingDirectionForSelectionStart):
1749         (WebCore::Frame::dragImageForSelection):
1750         (WebCore::Frame::createScriptInstanceForWidget):
1751         (WebCore::Frame::windowScriptObject):
1752         * page/win/FrameWin.cpp:
1753         (WebCore::Frame::dragImageForSelection):
1754         * platform/ContextMenu.cpp:
1755         (WebCore::selectionContainsPossibleWord):
1756         (WebCore::ContextMenu::populate):
1757         (WebCore::ContextMenu::checkOrEnableIfNeeded):
1758         * plugins/PluginView.cpp:
1759         (WebCore::PluginView::performRequest):
1760         (WebCore::PluginView::bindingInstance):
1761         * rendering/HitTestResult.cpp:
1762         (WebCore::HitTestResult::isSelected):
1763         * rendering/RenderBlock.cpp:
1764         (WebCore::RenderBlock::paintCaret):
1765         * rendering/RenderListBox.cpp:
1766         (WebCore::RenderListBox::paintItemForeground):
1767         (WebCore::RenderListBox::paintItemBackground):
1768         * rendering/RenderObject.cpp:
1769         (WebCore::RenderObject::selectionBackgroundColor):
1770         (WebCore::RenderObject::selectionForegroundColor):
1771         (WebCore::RenderObject::setAnimatableStyle):
1772         (WebCore::RenderObject::destroy):
1773         (WebCore::RenderObject::animation):
1774         * rendering/RenderObject.h:
1775         * rendering/RenderTextControl.cpp:
1776         (WebCore::RenderTextControl::selectionStart):
1777         (WebCore::RenderTextControl::selectionEnd):
1778         (WebCore::RenderTextControl::setSelectionRange):
1779         (WebCore::RenderTextControl::selectionChanged):
1780         (WebCore::RenderTextControl::capsLockStateMayHaveChanged):
1781         * rendering/RenderTheme.cpp:
1782         (WebCore::RenderTheme::isFocused):
1783         * rendering/RenderTreeAsText.cpp:
1784         (WebCore::writeSelection):
1785         * rendering/RenderWidget.cpp:
1786         (WebCore::RenderWidget::destroy):
1787         * svg/SVGDocumentExtensions.cpp:
1788         (WebCore::SVGDocumentExtensions::createSVGEventListener):
1789         * svg/SVGSVGElement.cpp:
1790         (WebCore::SVGSVGElement::deselectAll):
1791         * svg/SVGTextContentElement.cpp:
1792         (WebCore::SVGTextContentElement::selectSubString):
1793
1794 2008-06-15  Sam Weinig  <sam@webkit.org>
1795
1796         Reviewed by Darin Adler.
1797
1798         Remove outdated comment.
1799
1800         * bindings/js/ScriptController.h:
1801
1802 2008-06-15  Darin Adler  <darin@apple.com>
1803
1804         - try to fix Qt build
1805
1806         * dom/XMLTokenizer.cpp: Use create instead of new.
1807
1808         - rename KJS::List to KJS::ArgList
1809
1810         * bindings/js/JSAudioConstructor.cpp:
1811         (WebCore::JSAudioConstructor::construct):
1812         * bindings/js/JSAudioConstructor.h:
1813         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
1814         (WebCore::JSCanvasRenderingContext2D::setFillColor):
1815         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
1816         (WebCore::JSCanvasRenderingContext2D::strokeRect):
1817         (WebCore::JSCanvasRenderingContext2D::drawImage):
1818         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
1819         (WebCore::JSCanvasRenderingContext2D::setShadow):
1820         (WebCore::JSCanvasRenderingContext2D::createPattern):
1821         (WebCore::JSCanvasRenderingContext2D::putImageData):
1822         * bindings/js/JSClipboardCustom.cpp:
1823         (WebCore::JSClipboard::types):
1824         (WebCore::JSClipboard::clearData):
1825         (WebCore::JSClipboard::getData):
1826         (WebCore::JSClipboard::setData):
1827         (WebCore::JSClipboard::setDragImage):
1828         * bindings/js/JSConsoleCustom.cpp:
1829         (WebCore::JSConsole::debug):
1830         (WebCore::JSConsole::error):
1831         (WebCore::JSConsole::info):
1832         (WebCore::JSConsole::log):
1833         (WebCore::JSConsole::warn):
1834         (WebCore::JSConsole::assertCondition):
1835         (WebCore::JSConsole::profile):
1836         (WebCore::JSConsole::profileEnd):
1837         * bindings/js/JSCustomSQLStatementCallback.cpp:
1838         (WebCore::JSCustomSQLStatementCallback::handleEvent):
1839         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
1840         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
1841         * bindings/js/JSCustomSQLTransactionCallback.cpp:
1842         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
1843         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
1844         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
1845         * bindings/js/JSCustomVoidCallback.cpp:
1846         (WebCore::JSCustomVoidCallback::handleEvent):
1847         * bindings/js/JSCustomXPathNSResolver.cpp:
1848         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1849         * bindings/js/JSDOMApplicationCacheCustom.cpp:
1850         (WebCore::JSDOMApplicationCache::add):
1851         (WebCore::JSDOMApplicationCache::remove):
1852         (WebCore::JSDOMApplicationCache::addEventListener):
1853         (WebCore::JSDOMApplicationCache::removeEventListener):
1854         (WebCore::JSDOMApplicationCache::dispatchEvent):
1855         * bindings/js/JSDOMWindowBase.cpp:
1856         (WebCore::windowProtoFuncAToB):
1857         (WebCore::windowProtoFuncBToA):
1858         (WebCore::windowProtoFuncOpen):
1859         (WebCore::windowProtoFuncSetTimeout):
1860         (WebCore::windowProtoFuncClearTimeout):
1861         (WebCore::windowProtoFuncSetInterval):
1862         (WebCore::windowProtoFuncAddEventListener):
1863         (WebCore::windowProtoFuncRemoveEventListener):
1864         (WebCore::windowProtoFuncShowModalDialog):
1865         (WebCore::windowProtoFuncNotImplemented):
1866         (WebCore::JSDOMWindowBase::installTimeout):
1867         * bindings/js/JSDOMWindowBase.h:
1868         * bindings/js/JSDOMWindowCustom.cpp:
1869         (WebCore::JSDOMWindow::postMessage):
1870         * bindings/js/JSDatabaseCustom.cpp:
1871         (WebCore::JSDatabase::changeVersion):
1872         (WebCore::JSDatabase::transaction):
1873         * bindings/js/JSElementCustom.cpp:
1874         (WebCore::JSElement::setAttribute):
1875         (WebCore::JSElement::setAttributeNode):
1876         (WebCore::JSElement::setAttributeNS):
1877         (WebCore::JSElement::setAttributeNodeNS):
1878         * bindings/js/JSEventTargetBase.cpp:
1879         (WebCore::jsEventTargetAddEventListener):
1880         (WebCore::jsEventTargetRemoveEventListener):
1881         (WebCore::jsEventTargetDispatchEvent):
1882         * bindings/js/JSEventTargetBase.h:
1883         * bindings/js/JSHTMLAppletElementCustom.cpp:
1884         (WebCore::JSHTMLAppletElement::callAsFunction):
1885         * bindings/js/JSHTMLCollectionCustom.cpp:
1886         (WebCore::JSHTMLCollection::callAsFunction):
1887         (WebCore::JSHTMLCollection::item):
1888         (WebCore::JSHTMLCollection::namedItem):
1889         * bindings/js/JSHTMLDocumentCustom.cpp:
1890         (WebCore::JSHTMLDocument::open):
1891         (WebCore::writeHelper):
1892         (WebCore::JSHTMLDocument::write):
1893         (WebCore::JSHTMLDocument::writeln):
1894         * bindings/js/JSHTMLEmbedElementCustom.cpp:
1895         (WebCore::JSHTMLEmbedElement::callAsFunction):
1896         * bindings/js/JSHTMLInputElementBase.cpp:
1897         (WebCore::jsHTMLInputElementBaseFunctionSetSelectionRange):
1898         * bindings/js/JSHTMLInputElementBase.h:
1899         * bindings/js/JSHTMLObjectElementCustom.cpp:
1900         (WebCore::JSHTMLObjectElement::callAsFunction):
1901         * bindings/js/JSHTMLOptionElementConstructor.cpp:
1902         (WebCore::JSHTMLOptionElementConstructor::construct):
1903         * bindings/js/JSHTMLOptionElementConstructor.h:
1904         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1905         (WebCore::JSHTMLOptionsCollection::add):
1906         (WebCore::JSHTMLOptionsCollection::remove):
1907         * bindings/js/JSHTMLSelectElementCustom.cpp:
1908         (WebCore::JSHTMLSelectElement::remove):
1909         * bindings/js/JSImageConstructor.cpp:
1910         (WebCore::JSImageConstructor::construct):
1911         * bindings/js/JSImageConstructor.h:
1912         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
1913         (WebCore::JSJavaScriptCallFrame::evaluate):
1914         (WebCore::JSJavaScriptCallFrame::scopeChain):
1915         * bindings/js/JSLocationCustom.cpp:
1916         (WebCore::JSLocation::replace):
1917         (WebCore::JSLocation::reload):
1918         (WebCore::JSLocation::assign):
1919         (WebCore::JSLocation::toString):
1920         * bindings/js/JSNodeCustom.cpp:
1921         (WebCore::JSNode::insertBefore):
1922         (WebCore::JSNode::replaceChild):
1923         (WebCore::JSNode::removeChild):
1924         (WebCore::JSNode::appendChild):
1925         * bindings/js/JSNodeFilterCondition.cpp:
1926         (WebCore::JSNodeFilterCondition::acceptNode):
1927         * bindings/js/JSNodeFilterCustom.cpp:
1928         (WebCore::JSNodeFilter::acceptNode):
1929         * bindings/js/JSNodeIteratorCustom.cpp:
1930         (WebCore::JSNodeIterator::nextNode):
1931         (WebCore::JSNodeIterator::previousNode):
1932         * bindings/js/JSNodeListCustom.cpp:
1933         (WebCore::JSNodeList::callAsFunction):
1934         * bindings/js/JSQuarantinedObjectWrapper.cpp:
1935         (WebCore::JSQuarantinedObjectWrapper::construct):
1936         (WebCore::JSQuarantinedObjectWrapper::callAsFunction):
1937         * bindings/js/JSQuarantinedObjectWrapper.h:
1938         * bindings/js/JSSQLResultSetRowListCustom.cpp:
1939         (WebCore::JSSQLResultSetRowList::item):
1940         * bindings/js/JSSQLTransactionCustom.cpp:
1941         (WebCore::JSSQLTransaction::executeSql):
1942         * bindings/js/JSSVGMatrixCustom.cpp:
1943         (WebCore::JSSVGMatrix::multiply):
1944         (WebCore::JSSVGMatrix::inverse):
1945         (WebCore::JSSVGMatrix::translate):
1946         (WebCore::JSSVGMatrix::scale):
1947         (WebCore::JSSVGMatrix::scaleNonUniform):
1948         (WebCore::JSSVGMatrix::rotate):
1949         (WebCore::JSSVGMatrix::rotateFromVector):
1950         (WebCore::JSSVGMatrix::flipX):
1951         (WebCore::JSSVGMatrix::flipY):
1952         (WebCore::JSSVGMatrix::skewX):
1953         (WebCore::JSSVGMatrix::skewY):
1954         * bindings/js/JSSVGPathSegListCustom.cpp:
1955         (WebCore::JSSVGPathSegList::clear):
1956         (WebCore::JSSVGPathSegList::initialize):
1957         (WebCore::JSSVGPathSegList::getItem):
1958         (WebCore::JSSVGPathSegList::insertItemBefore):
1959         (WebCore::JSSVGPathSegList::replaceItem):
1960         (WebCore::JSSVGPathSegList::removeItem):
1961         (WebCore::JSSVGPathSegList::appendItem):
1962         * bindings/js/JSSVGPointListCustom.cpp:
1963         (WebCore::JSSVGPointList::clear):
1964         (WebCore::JSSVGPointList::initialize):
1965         (WebCore::JSSVGPointList::getItem):
1966         (WebCore::JSSVGPointList::insertItemBefore):
1967         (WebCore::JSSVGPointList::replaceItem):
1968         (WebCore::JSSVGPointList::removeItem):
1969         (WebCore::JSSVGPointList::appendItem):
1970         * bindings/js/JSSVGTransformListCustom.cpp:
1971         (WebCore::JSSVGTransformList::clear):
1972         (WebCore::JSSVGTransformList::initialize):
1973         (WebCore::JSSVGTransformList::getItem):
1974         (WebCore::JSSVGTransformList::insertItemBefore):
1975         (WebCore::JSSVGTransformList::replaceItem):
1976         (WebCore::JSSVGTransformList::removeItem):
1977         (WebCore::JSSVGTransformList::appendItem):
1978         * bindings/js/JSTreeWalkerCustom.cpp:
1979         (WebCore::JSTreeWalker::parentNode):
1980         (WebCore::JSTreeWalker::firstChild):
1981         (WebCore::JSTreeWalker::lastChild):
1982         (WebCore::JSTreeWalker::nextSibling):
1983         (WebCore::JSTreeWalker::previousSibling):
1984         (WebCore::JSTreeWalker::previousNode):
1985         (WebCore::JSTreeWalker::nextNode):
1986         * bindings/js/JSXMLHttpRequestConstructor.cpp:
1987         (WebCore::JSXMLHttpRequestConstructor::construct):
1988         * bindings/js/JSXMLHttpRequestConstructor.h:
1989         * bindings/js/JSXMLHttpRequestCustom.cpp:
1990         (WebCore::JSXMLHttpRequest::open):
1991         (WebCore::JSXMLHttpRequest::setRequestHeader):
1992         (WebCore::JSXMLHttpRequest::send):
1993         (WebCore::JSXMLHttpRequest::getResponseHeader):
1994         (WebCore::JSXMLHttpRequest::overrideMimeType):
1995         (WebCore::JSXMLHttpRequest::addEventListener):
1996         (WebCore::JSXMLHttpRequest::removeEventListener):
1997         (WebCore::JSXMLHttpRequest::dispatchEvent):
1998         * bindings/js/JSXSLTProcessorConstructor.cpp:
1999         (WebCore::JSXSLTProcessorConstructor::construct):
2000         * bindings/js/JSXSLTProcessorConstructor.h:
2001         * bindings/js/JSXSLTProcessorCustom.cpp:
2002         (WebCore::JSXSLTProcessor::importStylesheet):
2003         (WebCore::JSXSLTProcessor::transformToFragment):
2004         (WebCore::JSXSLTProcessor::transformToDocument):
2005         (WebCore::JSXSLTProcessor::setParameter):
2006         (WebCore::JSXSLTProcessor::getParameter):
2007         (WebCore::JSXSLTProcessor::removeParameter):
2008         * bindings/js/ScheduledAction.cpp:
2009         (WebCore::ScheduledAction::ScheduledAction):
2010         (WebCore::ScheduledAction::execute):
2011         * bindings/js/ScheduledAction.h:
2012         * bindings/js/kjs_events.cpp:
2013         (WebCore::JSAbstractEventListener::handleEvent):
2014         (WebCore::JSLazyEventListener::parseCode):
2015         * bindings/js/kjs_html.cpp:
2016         (WebCore::runtimeObjectCallAsFunction):
2017         * bindings/js/kjs_html.h:
2018         * bindings/objc/WebScriptObject.mm:
2019         (getListFromNSArray):
2020         (-[WebScriptObject callWebScriptMethod:withArguments:]):
2021         * bindings/scripts/CodeGeneratorJS.pm:
2022         * bridge/NP_jsobject.cpp:
2023         (getListFromVariantArgs):
2024         (_NPN_InvokeDefault):
2025         (_NPN_Invoke):
2026         * bridge/c/c_instance.cpp:
2027         (KJS::Bindings::CInstance::invokeMethod):
2028         (KJS::Bindings::CInstance::invokeDefaultMethod):
2029         * bridge/c/c_instance.h:
2030         * bridge/jni/jni_instance.cpp:
2031         (JavaInstance::invokeMethod):
2032         * bridge/jni/jni_instance.h:
2033         * bridge/jni/jni_jsobject.h:
2034         * bridge/jni/jni_jsobject.mm:
2035         (JavaJSObject::call):
2036         (JavaJSObject::getListFromJArray):
2037         * bridge/objc/objc_instance.h:
2038         * bridge/objc/objc_instance.mm:
2039         (ObjcInstance::invokeMethod):
2040         (ObjcInstance::invokeDefaultMethod):
2041         * bridge/objc/objc_runtime.h:
2042         * bridge/objc/objc_runtime.mm:
2043         (ObjcFallbackObjectImp::callAsFunction):
2044         * bridge/qt/qt_instance.cpp:
2045         (KJS::Bindings::QtRuntimeObjectImp::construct):
2046         (KJS::Bindings::QtInstance::invokeMethod):
2047         (KJS::Bindings::QtInstance::invokeDefaultMethod):
2048         * bridge/qt/qt_instance.h:
2049         * bridge/qt/qt_runtime.cpp:
2050         (KJS::Bindings::convertQVariantToValue):
2051         (KJS::Bindings::findMethodIndex):
2052         (KJS::Bindings::QtRuntimeMetaMethod::callAsFunction):
2053         (KJS::Bindings::QtRuntimeConnectionMethod::callAsFunction):
2054         (KJS::Bindings::QtConnectionObject::execute):
2055         * bridge/qt/qt_runtime.h:
2056         * bridge/runtime.h:
2057         (KJS::Bindings::Instance::invokeDefaultMethod):
2058         * bridge/runtime_method.cpp:
2059         (RuntimeMethod::callAsFunction):
2060         * bridge/runtime_method.h:
2061         * bridge/runtime_object.cpp:
2062         (RuntimeObjectImp::callAsFunction):
2063         * bridge/runtime_object.h:
2064         * page/Console.cpp:
2065         (WebCore::printToStandardOut):
2066         (WebCore::Console::debug):
2067         (WebCore::Console::error):
2068         (WebCore::Console::info):
2069         (WebCore::Console::log):
2070         (WebCore::Console::assertCondition):
2071         (WebCore::Console::profile):
2072         (WebCore::Console::profileEnd):
2073         (WebCore::Console::warn):
2074         * page/Console.h:
2075         * page/InspectorController.cpp:
2076         (WebCore::ConsoleMessage::ConsoleMessage):
2077         (WebCore::InspectorController::addMessageToConsole):
2078         * page/InspectorController.h:
2079
2080 2008-06-15  Darin Adler  <darin@apple.com>
2081
2082         * platform/graphics/gtk/VideoSinkGStreamer.h: Undo a bogus rename done by the script.
2083
2084 2008-06-15  Adam Barth  <abarth@webkit.org>
2085
2086         Reviewed by Sam Weinig.
2087
2088         Fix our implementation of Document.documentURI (DOM Core Level 3).
2089
2090         Tests: fast/dom/documenturi-affects-relative-paths.html
2091                fast/dom/documenturi-assigned-junk-implies-baseuri-null.html
2092                fast/dom/documenturi-assigned-junk-implies-relative-urls-do-not-resolve.html
2093                fast/dom/documenturi-can-hold-arbitrary-string.html
2094                fast/dom/documenturi-loses-to-base-tag.html
2095                fast/dom/documenturi-not-affected-by-base-tag.html
2096
2097         * dom/Document.cpp:
2098         (WebCore::Document::setDocumentURI):
2099         (WebCore::Document::setURL):
2100         (WebCore::Document::updateBaseURL):
2101         * dom/Document.h:
2102         * page/AccessibilityRenderObject.cpp:
2103         (WebCore::AccessibilityRenderObject::url):
2104
2105 2008-06-15  Adam Barth  <abarth@webkit.org>
2106
2107         Reviewed by Sam Weinig.
2108
2109         Refactor our handling of Document::m_baseURL in preparation for
2110         correcting our implementation of Document.documentURI.
2111
2112         * dom/Document.cpp:
2113         (WebCore::Document::documentURI):
2114         (WebCore::Document::open):
2115         (WebCore::Document::setURL):
2116         (WebCore::Document::setBaseElementURL):
2117         (WebCore::Document::updateBaseURL):
2118         (WebCore::Document::elementSheet):
2119         (WebCore::Document::mappedElementSheet):
2120         (WebCore::Document::completeURL):
2121         * dom/Document.h:
2122         (WebCore::Document::url):
2123         (WebCore::Document::baseURL):
2124         * html/HTMLBaseElement.cpp:
2125         (WebCore::HTMLBaseElement::removedFromDocument):
2126         (WebCore::HTMLBaseElement::process):
2127         * loader/FrameLoader.cpp:
2128         (WebCore::FrameLoader::begin):
2129         (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
2130         * xml/XSLTProcessor.cpp:
2131         (WebCore::XSLTProcessor::createDocumentFromSource):
2132
2133 2008-06-15  Darin Adler  <darin@apple.com>
2134
2135         - new names for more JavaScriptCore files
2136
2137         * ForwardingHeaders/kjs/ArrayPrototype.h: Copied from WebCore/ForwardingHeaders/kjs/array_object.h.
2138         * ForwardingHeaders/kjs/BooleanObject.h: Copied from WebCore/ForwardingHeaders/kjs/bool_object.h.
2139         * ForwardingHeaders/kjs/FunctionPrototype.h: Copied from WebCore/ForwardingHeaders/kjs/function_object.h.
2140         * ForwardingHeaders/kjs/JSArray.h: Copied from WebCore/ForwardingHeaders/kjs/array_instance.h.
2141         * ForwardingHeaders/kjs/PropertyMap.h: Copied from WebCore/ForwardingHeaders/kjs/property_map.h.
2142         * ForwardingHeaders/kjs/array_instance.h: Removed.
2143         * ForwardingHeaders/kjs/array_object.h: Removed.
2144         * ForwardingHeaders/kjs/bool_object.h: Removed.
2145         * ForwardingHeaders/kjs/function_object.h: Removed.
2146         * ForwardingHeaders/kjs/property_map.h: Removed.
2147         * WebCore.vcproj/WebCore.vcproj:
2148         * bindings/js/JSClipboardCustom.cpp:
2149         * bindings/js/JSDatabaseCustom.cpp:
2150         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
2151         * bindings/js/kjs_events.cpp:
2152         * bridge/jni/jni_utility.cpp:
2153         * bridge/qt/qt_runtime.cpp:
2154         * bridge/runtime_array.cpp:
2155
2156 2008-06-15  Darin Adler  <darin@apple.com>
2157
2158         - new names for a few key JavaScriptCore files
2159
2160         * ForwardingHeaders/kjs/JSFunction.h: Copied from WebCore/ForwardingHeaders/kjs/function.h.
2161         * ForwardingHeaders/kjs/JSObject.h: Copied from WebCore/ForwardingHeaders/kjs/object.h.
2162         * ForwardingHeaders/kjs/JSString.h: Copied from WebCore/ForwardingHeaders/kjs/internal.h.
2163         * ForwardingHeaders/kjs/JSValue.h: Copied from WebCore/ForwardingHeaders/kjs/value.h.
2164         * ForwardingHeaders/kjs/function.h: Removed.
2165         * ForwardingHeaders/kjs/internal.h: Removed.
2166         * ForwardingHeaders/kjs/object.h: Removed.
2167         * ForwardingHeaders/kjs/value.h: Removed.
2168         * WebCore.vcproj/WebCore.vcproj:
2169         * bindings/js/JSCustomSQLStatementCallback.h:
2170         * bindings/js/JSCustomSQLStatementErrorCallback.h:
2171         * bindings/js/JSCustomSQLTransactionErrorCallback.h:
2172         * bindings/js/JSCustomVoidCallback.h:
2173         * bindings/js/JSDOMBinding.h:
2174         * bindings/js/JSDOMWindowCustom.cpp:
2175         * bindings/js/JSDOMWindowShell.cpp:
2176         * bindings/js/JSQuarantinedObjectWrapper.h:
2177         * bridge/objc/objc_runtime.h:
2178         * bridge/objc/objc_utility.h:
2179         * bridge/qt/qt_runtime.cpp:
2180         * bridge/runtime.h:
2181         * bridge/runtime_array.h:
2182         * bridge/runtime_method.h:
2183         * bridge/runtime_object.h:
2184         * bridge/testbindings.cpp:
2185         * bridge/testbindings.mm:
2186         * bridge/testqtbindings.cpp:
2187         * loader/FrameLoader.cpp:
2188         * page/JavaScriptCallFrame.cpp:
2189         * page/JavaScriptProfile.cpp:
2190         * page/JavaScriptProfileNode.cpp:
2191         * platform/graphics/gtk/VideoSinkGStreamer.h:
2192         * plugins/PluginView.cpp:
2193         * plugins/gtk/PluginViewGtk.cpp:
2194         * plugins/qt/PluginViewQt.cpp:
2195         * plugins/win/PluginViewWin.cpp:
2196
2197 2008-06-15  Darin Adler  <darin@apple.com>
2198
2199         Rubber stamped by Sam.
2200
2201         - cut down on confusing uses of "Object" and "Imp" in
2202           JavaScriptCore class names
2203
2204         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2205         (WebCore::JSCSSStyleDeclaration::nameGetter):
2206         * bridge/qt/qt_runtime.cpp:
2207         (KJS::Bindings::valueRealType):
2208         (KJS::Bindings::convertValueToQVariant):
2209         (KJS::Bindings::convertQVariantToValue):
2210         (KJS::Bindings::QtRuntimeMethod::QtRuntimeMethod):
2211         * bridge/qt/qt_runtime.h:
2212         * bridge/runtime_method.cpp:
2213         (RuntimeMethod::RuntimeMethod):
2214         (RuntimeMethod::getOwnPropertySlot):
2215         * bridge/runtime_method.h:
2216
2217 2008-06-15  Dan Bernstein  <mitz@apple.com>
2218
2219         Reviewed by Darin Adler.
2220
2221         - fix <rdar://problem/5825683> Three slash URLs are modified by WebKit
2222
2223         Test: fast/loader/url-parse-1.html
2224
2225         URIs in which the scheme is followed by "://" are ambiguous, because
2226         "//" can be either the beginning of a net_path or the beginning of an
2227         abs_path whose first path segment is empty. In the case of ":///", the
2228         net_path interpretation is invalid, because the authority (the part
2229         between the second and third slashes) cannot be empty. However, for
2230         historical reasons, this is allowed in http:, https: and file: URLs,
2231         in which an empty authority means the local host.
2232
2233         * platform/KURL.cpp:
2234         (WebCore::KURL::parse): Changed to interpret URLs in which the scheme
2235         is followed by ":///" as abs_path-only URLs, unless the scheme is http,
2236         https or file.
2237
2238 2008-06-15  Darin Adler  <darin@apple.com>
2239
2240         Rubber stamped by Sam.
2241
2242         - use JS prefix and simpler names for basic JavaScriptCore types,
2243           to complement JSValue and JSObject
2244
2245         * bindings/js/JSNavigatorCustom.cpp:
2246         (WebCore::needsYouTubeQuirk):
2247         * bindings/js/kjs_events.cpp:
2248         (WebCore::JSLazyEventListener::parseCode):
2249         * bridge/jni/jni_utility.cpp:
2250         (KJS::Bindings::convertArrayInstanceToJavaArray):
2251         (KJS::Bindings::convertValueToJValue):
2252         * bridge/qt/qt_runtime.cpp:
2253         (KJS::Bindings::valueRealType):
2254         (KJS::Bindings::convertValueToQVariant):
2255         (KJS::Bindings::QtConnectionObject::execute):
2256         * bridge/runtime_array.cpp:
2257
2258 2008-06-15  Darin Adler  <darin@apple.com>
2259
2260         Reviewed by Mitz.
2261
2262         - fix https://bugs.webkit.org/show_bug.cgi?id=19556
2263           REGRESSION (r34544): Crash while visiting bigglook.com
2264
2265         This fix eliminates the crash, but the logic remaining seems a little strange.
2266         We create an IconRecord and then immediately destroy it. Worth taking another
2267         look at this later.
2268
2269         * loader/icon/IconDatabase.cpp:
2270         (WebCore::IconDatabase::setIconDataForIconURL): Added code to remove the icon
2271         just as in the other cases where we might be holding the single reference to it.
2272         (WebCore::IconDatabase::setIconURLForPageURL): Fixed comment typo.
2273         (WebCore::IconDatabase::writeToDatabase): Removed unused local variable.
2274
2275 2008-06-15  Darin Adler  <darin@apple.com>
2276
2277         Reviewed and tweaked by Sam Weinig.
2278
2279         Fix for <rdar://problem/5908591>
2280         https://bugs.webkit.org/show_bug.cgi?id=18743
2281
2282         Makes DOMImplementation per-document.
2283
2284         Test: http/tests/security/cross-frame-access-DOMImplementation.html
2285
2286         * bindings/objc/DOMImplementationFront.cpp:
2287         (WebCore::DOMImplementationFront::getInterface):
2288         * bindings/objc/DOMImplementationFront.h:
2289         * dom/DOMImplementation.cpp:
2290         (WebCore::DOMImplementation::hasFeature):
2291         (WebCore::DOMImplementation::createDocumentType):
2292         (WebCore::DOMImplementation::getInterface):
2293         (WebCore::DOMImplementation::createDocument):
2294         (WebCore::DOMImplementation::createHTMLDocument):
2295         * dom/DOMImplementation.h:
2296         (WebCore::DOMImplementation::create):
2297         * dom/Document.cpp:
2298         (WebCore::Document::Document):
2299         (WebCore::Document::implementation):
2300         * dom/Document.h:
2301         (WebCore::Document::create):
2302         (WebCore::Document::createXHTML):
2303         * dom/DocumentType.cpp:
2304         * dom/DocumentType.h:
2305         (WebCore::DocumentType::create):
2306         (WebCore::DocumentType::entities):
2307         (WebCore::DocumentType::notations):
2308         (WebCore::DocumentType::name):
2309         (WebCore::DocumentType::publicId):
2310         (WebCore::DocumentType::systemId):
2311         (WebCore::DocumentType::internalSubset):
2312         * dom/Node.cpp:
2313         (WebCore::Node::isSupported):
2314         * dom/XMLTokenizer.cpp:
2315         (WebCore::XMLTokenizer::internalSubset):
2316         * html/HTMLDocument.cpp:
2317         (WebCore::HTMLDocument::HTMLDocument):
2318         * html/HTMLDocument.h:
2319         (WebCore::HTMLDocument::create):
2320         (WebCore::HTMLDocument::isHTMLDocument):
2321         * html/HTMLParser.cpp:
2322         (WebCore::HTMLParser::parseDoctypeToken):
2323         * html/HTMLViewSourceDocument.cpp:
2324         (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
2325         (WebCore::HTMLViewSourceDocument::createTokenizer):
2326         * html/HTMLViewSourceDocument.h:
2327         (WebCore::HTMLViewSourceDocument::create):
2328         * loader/CachedFont.cpp:
2329         (WebCore::CachedFont::ensureSVGFontData):
2330         * loader/FTPDirectoryDocument.cpp:
2331         (WebCore::FTPDirectoryDocument::FTPDirectoryDocument):
2332         * loader/FTPDirectoryDocument.h:
2333         (WebCore::FTPDirectoryDocument::create):
2334         * loader/FrameLoader.cpp:
2335         (WebCore::FrameLoader::begin):
2336         * loader/ImageDocument.cpp:
2337         (WebCore::ImageDocument::ImageDocument):
2338         * loader/ImageDocument.h:
2339         (WebCore::ImageDocument::create):
2340         (WebCore::ImageDocument::isImageDocument):
2341         * loader/PluginDocument.cpp:
2342         (WebCore::PluginDocument::PluginDocument):
2343         * loader/PluginDocument.h:
2344         (WebCore::PluginDocument::create):
2345         (WebCore::PluginDocument::isPluginDocument):
2346         * loader/TextDocument.cpp:
2347         (WebCore::TextTokenizer::checkBuffer):
2348         (WebCore::TextDocument::TextDocument):
2349         (WebCore::createTextTokenizer):
2350         * loader/TextDocument.h:
2351         (WebCore::TextDocument::create):
2352         * svg/SVGDocument.cpp:
2353         (WebCore::SVGDocument::SVGDocument):
2354         * svg/SVGDocument.h:
2355         (WebCore::SVGDocument::create):
2356         * svg/SVGElement.cpp:
2357         (WebCore::SVGElement::isSupported):
2358         * svg/SVGTests.cpp:
2359         (WebCore::SVGTests::isValid):
2360         * xml/DOMParser.cpp:
2361         (WebCore::DOMParser::parseFromString):
2362
2363 2008-06-15  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
2364
2365         Reviewed by Maciej.
2366
2367         Mac build fix.
2368
2369         * WebCore.base.exp:
2370         * WebCore.order:
2371
2372 2008-06-14  Darin Adler  <darin@apple.com>
2373
2374         Rubber stamped by Sam.
2375
2376         - new names for kjs_binding.h and kjs_proxy.h
2377
2378         * GNUmakefile.am:
2379         * WebCore.pro:
2380         * WebCore.vcproj/WebCore.vcproj:
2381         * WebCore.xcodeproj/project.pbxproj:
2382         * WebCoreSources.bkl:
2383         * bindings/js/JSAudioConstructor.h:
2384         * bindings/js/JSCustomSQLStatementCallback.cpp:
2385         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
2386         * bindings/js/JSCustomSQLTransactionCallback.cpp:
2387         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
2388         * bindings/js/JSCustomVoidCallback.cpp:
2389         * bindings/js/JSCustomXPathNSResolver.cpp:
2390         * bindings/js/JSDOMBinding.cpp: Copied from WebCore/bindings/js/kjs_binding.cpp.
2391         * bindings/js/JSDOMBinding.h: Copied from WebCore/bindings/js/kjs_binding.h.
2392         * bindings/js/JSDOMWindowBase.cpp:
2393         * bindings/js/JSDOMWindowBase.h:
2394         * bindings/js/JSDOMWindowCustom.cpp:
2395         * bindings/js/JSDOMWindowShell.cpp:
2396         * bindings/js/JSDOMWindowShell.h:
2397         * bindings/js/JSDocumentCustom.cpp:
2398         * bindings/js/JSHTMLCollectionCustom.cpp:
2399         * bindings/js/JSHTMLFrameElementCustom.cpp:
2400         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
2401         * bindings/js/JSHTMLIFrameElementCustom.cpp:
2402         * bindings/js/JSHTMLInputElementBase.h:
2403         * bindings/js/JSHTMLOptionElementConstructor.h:
2404         * bindings/js/JSImageConstructor.h:
2405         * bindings/js/JSLocationCustom.cpp:
2406         * bindings/js/JSNamedNodeMapCustom.cpp:
2407         * bindings/js/JSNamedNodesCollection.h:
2408         * bindings/js/JSNodeFilterCondition.cpp:
2409         * bindings/js/JSNodeFilterCustom.cpp:
2410         * bindings/js/JSRGBColor.h:
2411         * bindings/js/JSSVGPathSegCustom.cpp:
2412         * bindings/js/JSXMLHttpRequestConstructor.h:
2413         * bindings/js/JSXSLTProcessorConstructor.h:
2414         * bindings/js/JSXSLTProcessorCustom.cpp:
2415         * bindings/js/ScheduledAction.cpp:
2416         (WebCore::ScheduledAction::execute):
2417         * bindings/js/ScriptController.cpp: Copied from WebCore/bindings/js/kjs_proxy.cpp.
2418         * bindings/js/ScriptController.h: Copied from WebCore/bindings/js/kjs_proxy.h.
2419         * bindings/js/kjs_binding.cpp: Removed.
2420         * bindings/js/kjs_binding.h: Removed.
2421         * bindings/js/kjs_events.cpp:
2422         (WebCore::JSAbstractEventListener::handleEvent):
2423         * bindings/js/kjs_html.cpp:
2424         * bindings/js/kjs_html.h:
2425         * bindings/js/kjs_proxy.cpp: Removed.
2426         * bindings/js/kjs_proxy.h: Removed.
2427         * bindings/objc/DOMInternal.mm:
2428         * bindings/scripts/CodeGeneratorJS.pm:
2429         * bridge/jni/jni_jsobject.mm:
2430         * dom/Document.cpp:
2431         * dom/EventTarget.cpp:
2432         * dom/Node.cpp:
2433         * dom/XMLTokenizer.cpp:
2434         (WebCore::XMLTokenizer::startElementNs):
2435         * history/CachedPage.cpp:
2436         (WebCore::CachedPage::CachedPage):
2437         (WebCore::CachedPage::restore):
2438         * html/HTMLPlugInElement.cpp:
2439         * html/HTMLScriptElement.cpp:
2440         * html/HTMLTokenizer.cpp:
2441         (WebCore::HTMLTokenizer::processToken):
2442         * loader/FrameLoader.cpp:
2443         (WebCore::FrameLoader::executeScript):
2444         * page/Frame.cpp:
2445         (WebCore::Frame::scriptProxy):
2446         * page/Frame.h:
2447         * page/FramePrivate.h:
2448         * page/InspectorController.cpp:
2449         * page/JavaScriptDebugServer.cpp:
2450         * page/JavaScriptProfileNode.cpp:
2451         * page/Page.cpp:
2452         * page/gtk/FrameGtk.cpp:
2453         * page/mac/FrameMac.mm:
2454         * page/qt/FrameQt.cpp:
2455         * page/win/FrameWin.cpp:
2456         * plugins/PluginView.cpp:
2457         (WebCore::getString):
2458         * plugins/gtk/PluginViewGtk.cpp:
2459         * plugins/qt/PluginViewQt.cpp:
2460         * plugins/win/PluginViewWin.cpp:
2461         * svg/SVGDocumentExtensions.cpp:
2462         * xml/XMLHttpRequest.cpp:
2463
2464 2008-06-14  Darin Adler  <darin@apple.com>
2465
2466         Rubber stamped by Sam.
2467
2468         - renamed HTMLGenericFormElement to HTMLFormControlElement
2469
2470         * GNUmakefile.am:
2471         * WebCore.pro:
2472         * WebCore.vcproj/WebCore.vcproj:
2473         * WebCore.xcodeproj/project.pbxproj:
2474         * WebCoreSources.bkl:
2475         * html/HTMLButtonElement.cpp:
2476         (WebCore::HTMLButtonElement::HTMLButtonElement):
2477         (WebCore::HTMLButtonElement::parseMappedAttribute):
2478         (WebCore::HTMLButtonElement::defaultEventHandler):
2479         * html/HTMLButtonElement.h:
2480         * html/HTMLFieldSetElement.cpp:
2481         (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
2482         * html/HTMLFieldSetElement.h:
2483         * html/HTMLFormCollection.cpp:
2484         (WebCore::HTMLFormCollection::item):
2485         (WebCore::HTMLFormCollection::getNamedFormItem):
2486         (WebCore::HTMLFormCollection::updateNameCache):
2487         * html/HTMLFormControlElement.cpp: Copied from WebCore/html/HTMLGenericFormElement.cpp.
2488         * html/HTMLFormControlElement.h: Copied from WebCore/html/HTMLGenericFormElement.h.
2489         * html/HTMLFormElement.cpp:
2490         (WebCore::HTMLFormElement::formData):
2491         (WebCore::HTMLFormElement::submit):
2492         (WebCore::HTMLFormElement::formElementIndex):
2493         (WebCore::HTMLFormElement::registerFormElement):
2494         (WebCore::HTMLFormElement::removeFormElement):
2495         (WebCore::HTMLFormElement::elementForAlias):
2496         (WebCore::HTMLFormElement::addElementAlias):
2497         (WebCore::HTMLFormElement::getNamedElements):
2498         (WebCore::HTMLFormElement::CheckedRadioButtons::addButton):
2499         (WebCore::HTMLFormElement::CheckedRadioButtons::removeButton):
2500         * html/HTMLFormElement.h:
2501         * html/HTMLGenericFormElement.cpp: Removed.
2502         * html/HTMLGenericFormElement.h: Removed.
2503         * html/HTMLInputElement.h:
2504         * html/HTMLIsIndexElement.cpp:
2505         (WebCore::HTMLIsIndexElement::parseMappedAttribute):
2506         * html/HTMLKeygenElement.cpp:
2507         (WebCore::HTMLKeygenElement::parseMappedAttribute):
2508         * html/HTMLLegendElement.cpp:
2509         (WebCore::HTMLLegendElement::HTMLLegendElement):
2510         * html/HTMLLegendElement.h:
2511         * html/HTMLOptGroupElement.cpp:
2512         (WebCore::HTMLOptGroupElement::HTMLOptGroupElement):
2513         (WebCore::HTMLOptGroupElement::insertBefore):
2514         (WebCore::HTMLOptGroupElement::replaceChild):
2515         (WebCore::HTMLOptGroupElement::removeChild):
2516         (WebCore::HTMLOptGroupElement::appendChild):
2517         (WebCore::HTMLOptGroupElement::removeChildren):
2518         (WebCore::HTMLOptGroupElement::childrenChanged):
2519         (WebCore::HTMLOptGroupElement::parseMappedAttribute):
2520         (WebCore::HTMLOptGroupElement::attach):
2521         (WebCore::HTMLOptGroupElement::detach):
2522         * html/HTMLOptGroupElement.h:
2523         * html/HTMLOptionElement.cpp:
2524         (WebCore::HTMLOptionElement::HTMLOptionElement):
2525         (WebCore::HTMLOptionElement::attach):
2526         (WebCore::HTMLOptionElement::detach):
2527         (WebCore::HTMLOptionElement::parseMappedAttribute):
2528         (WebCore::HTMLOptionElement::childrenChanged):
2529         (WebCore::HTMLOptionElement::disabled):
2530         (WebCore::HTMLOptionElement::insertedIntoDocument):
2531         * html/HTMLOptionElement.h:
2532         * html/HTMLSelectElement.h:
2533         * html/HTMLTextAreaElement.h:
2534         * page/Frame.cpp:
2535         (WebCore::scanForForm):
2536         (WebCore::Frame::currentForm):
2537         * page/mac/FrameMac.mm:
2538         * rendering/RenderFieldset.cpp:
2539         (WebCore::RenderFieldset::RenderFieldset):
2540         * rendering/RenderFieldset.h:
2541         * rendering/RenderLegend.cpp:
2542         (WebCore::RenderLegend::RenderLegend):
2543         * rendering/RenderLegend.h:
2544         * rendering/RenderTextControl.cpp:
2545         (WebCore::RenderTextControl::createInnerTextStyle):
2546         (WebCore::RenderTextControl::updateFromElement):
2547         (WebCore::RenderTextControl::subtreeHasChanged):
2548         (WebCore::RenderTextControl::selectionChanged):
2549
2550 2008-06-14  Sam Weinig  <sam@webkit.org>
2551
2552         Windows build fix.
2553
2554         * bindings/scripts/CodeGeneratorCOM.pm:
2555
2556 2008-06-14  Darin Adler  <darin@apple.com>
2557
2558         - more build fixing
2559
2560         * platform/gtk/DragDataGtk.cpp: Added missing header.
2561         * platform/wx/DragDataWx.cpp: Ditto.
2562
2563 2008-06-14  Darin Adler  <darin@apple.com>
2564
2565         Reviewed by Sam.
2566
2567         - fix https://bugs.webkit.org/show_bug.cgi?id=19544
2568           DashboardRegion pieces are leaking
2569
2570         My recent change introduced a leak of objects owned by each DashboardRegion,
2571         because I made ~Rect non-virtual. By using a separate RefCounted class for
2572         each of Rect and DashboardRegion, the leak is gone. It's not clear if the
2573         DashboardRegion class should really exist -- it doesn't have a DOM binding,
2574         so it could conceivably be removed some day.
2575
2576         * css/DashboardRegion.h: Derive from RectBase instead of from Rect.
2577         * css/Rect.h: Added RectBase. Changed Rect to derive from RectBase.
2578
2579 2008-06-14  Darin Adler  <darin@apple.com>
2580
2581         Reviewed by Sam.
2582
2583         - https://bugs.webkit.org/show_bug.cgi?id=19545
2584           use PassRefPtr, not RefPtr, for return values
2585
2586         * css/CSSParser.cpp:
2587         (WebCore::CSSParser::parseGradient): Call release() when assigning result to avoid
2588         a little bit of refcount churn.
2589
2590         * css/CSSStyleSelector.cpp:
2591         (WebCore::CSSStyleSelector::styleRulesForElement): Changed return value to PassRefPtr.
2592         (WebCore::CSSStyleSelector::pseudoStyleRulesForElement): Ditto.
2593         * css/CSSStyleSelector.h: Ditto.
2594
2595         * svg/SVGElementInstanceList.cpp:
2596         (WebCore::SVGElementInstanceList::length): Tweaked formatting.
2597         (WebCore::SVGElementInstanceList::item): Changed return value to raw pointer.
2598         * svg/SVGElementInstanceList.h: Ditto.
2599
2600         * xml/XSLTProcessor.cpp:
2601         (WebCore::XSLTProcessor::createDocumentFromSource): Changed return value to PassRefPtr.
2602         (WebCore::XSLTProcessor::transformToDocument): Ditto.
2603         (WebCore::XSLTProcessor::transformToFragment): Ditto.
2604         * xml/XSLTProcessor.h: Ditto.
2605
2606 2008-06-14  Darin Adler  <darin@apple.com>
2607
2608         - try to fix the gtk build
2609
2610         * platform/gtk/DragDataGtk.cpp:
2611         (WebCore::DragData::createClipboard): Changed return type to PassRefPtr.
2612
2613 2008-06-14  Darin Adler  <darin@apple.com>
2614
2615         - another try at fixing the wx build
2616
2617         * platform/wx/DragDataWx.cpp:
2618         (WebCore::DragData::createClipboard): Changed return type to PassRefPtr.
2619
2620 2008-06-14  Darin Adler  <darin@apple.com>
2621
2622         - try to fix Windows build
2623
2624         * svg/graphics/SVGImageEmptyClients.h: Added missing include.
2625
2626 2008-06-14  Darin Adler  <darin@apple.com>
2627
2628         - fix wx build
2629
2630         * platform/wx/TemporaryLinkStubs.cpp: Removed unneeded Icon constructor.
2631
2632 2008-06-14  Darin Adler  <darin@apple.com>
2633
2634         Reviewed by Sam.
2635
2636         - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
2637           start ref counts at 1 instead of 0 for speed
2638
2639         * WebCore.base.exp: Added some new exports needed for functions that are now
2640         non-virtual.
2641
2642         * WebCore.xcodeproj/project.pbxproj: Moved the "icon" group to the correct
2643         location in the project. Before it was inside "appcache"!
2644
2645         * css/CSSStyleSelector.cpp:
2646         (WebCore::CSSStyleSelector::applyProperty):
2647         * dom/Clipboard.cpp:
2648         (WebCore::Clipboard::Clipboard):
2649         * editing/mac/EditorMac.mm:
2650         (WebCore::Editor::newGeneralClipboard):
2651         * editing/qt/EditorQt.cpp:
2652         (WebCore::Editor::newGeneralClipboard):
2653         * editing/wx/EditorWx.cpp:
2654         (WebCore::Editor::newGeneralClipboard):
2655         * loader/DocumentLoader.cpp:
2656         (WebCore::DocumentLoader::DocumentLoader):
2657         * loader/DocumentLoader.h:
2658         (WebCore::DocumentLoader::create):
2659         * loader/icon/IconDatabase.cpp:
2660         (WebCore::IconDatabase::defaultIcon):
2661         (WebCore::IconDatabase::setIconDataForIconURL):
2662         (WebCore::IconDatabase::setIconURLForPageURL):
2663         (WebCore::IconDatabase::getOrCreateIconRecord):
2664         (WebCore::IconDatabase::performURLImport):
2665         * loader/icon/IconDatabase.h:
2666         * loader/icon/IconRecord.cpp:
2667         (WebCore::IconRecord::IconRecord):
2668         * loader/icon/IconRecord.h:
2669         (WebCore::IconRecord::create):
2670         * page/EventHandler.h:
2671         * page/Frame.cpp:
2672         (WebCore::Frame::Frame):
2673         * page/Frame.h:
2674         (WebCore::Frame::create):
2675         * page/gtk/EventHandlerGtk.cpp:
2676         (WebCore::EventHandler::createDraggingClipboard):
2677         * page/mac/EventHandlerMac.mm:
2678         (WebCore::EventHandler::createDraggingClipboard):
2679         * page/qt/EventHandlerQt.cpp:
2680         (WebCore::EventHandler::createDraggingClipboard):
2681         * page/win/EventHandlerWin.cpp:
2682         (WebCore::EventHandler::createDraggingClipboard):
2683         * page/wx/EventHandlerWx.cpp:
2684         (WebCore::EventHandler::createDraggingClipboard):
2685         * platform/Cursor.h:
2686         (WebCore::SharedCursor::create):
2687         (WebCore::SharedCursor::~SharedCursor):
2688         (WebCore::SharedCursor::SharedCursor):
2689         * platform/DragData.h:
2690         * platform/PopupMenu.h:
2691         (WebCore::PopupMenu::create):
2692         (WebCore::PopupMenu::isActive):
2693         * platform/ScrollBar.cpp:
2694         (WebCore::Scrollbar::Scrollbar):
2695         * platform/SearchPopupMenu.h:
2696         (WebCore::SearchPopupMenu::create):
2697         * platform/graphics/FontFamily.cpp:
2698         (WebCore::FontFamily::FontFamily):
2699         (WebCore::operator==):
2700         * platform/graphics/FontFamily.h:
2701         (WebCore::FontFamily::FontFamily):
2702         (WebCore::SharedFontFamily::create):
2703         (WebCore::SharedFontFamily::SharedFontFamily):
2704         (WebCore::operator!=):
2705         (WebCore::FontFamily::next):
2706         (WebCore::FontFamily::appendFamily):
2707         (WebCore::FontFamily::releaseNext):
2708         * platform/graphics/Icon.h:
2709         * platform/graphics/gtk/IconGtk.cpp:
2710         (WebCore::Icon::Icon):
2711         (WebCore::Icon::~Icon):
2712         (WebCore::Icon::newIconForFile):
2713         * platform/graphics/mac/IconMac.mm:
2714         (WebCore::Icon::Icon):
2715         (WebCore::Icon::newIconForFile):
2716         * platform/graphics/qt/IconQt.cpp:
2717         (WebCore::Icon::Icon):
2718         (WebCore::Icon::newIconForFile):
2719         * platform/graphics/win/IconWin.cpp:
2720         (WebCore::Icon::Icon):
2721         (WebCore::Icon::~Icon):
2722         (WebCore::Icon::newIconForFile):
2723         * platform/gtk/ClipboardGtk.cpp:
2724         (WebCore::Editor::newGeneralClipboard):
2725         * platform/gtk/ClipboardGtk.h:
2726         (WebCore::ClipboardGtk::create):
2727         * platform/gtk/PlatformScrollBar.h:
2728         (WebCore::PlatformScrollbar::create):
2729         * platform/gtk/PopupMenuGtk.cpp:
2730         (WebCore::PopupMenu::PopupMenu):
2731         * platform/gtk/ScrollViewGtk.cpp:
2732         (WebCore::ScrollViewScrollbar::create):
2733         (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
2734         (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
2735         * platform/mac/ClipboardMac.h:
2736         (WebCore::ClipboardMac::create):
2737         * platform/mac/DragDataMac.mm:
2738         (WebCore::DragData::createClipboard):
2739         (WebCore::DragData::containsCompatibleContent):
2740         * platform/mac/PlatformScrollBar.h:
2741         (WebCore::PlatformScrollbar::create):
2742         (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
2743         (WebCore::PlatformScrollbar::verticalScrollbarWidth):
2744         * platform/mac/PopupMenuMac.mm:
2745         (WebCore::PopupMenu::PopupMenu):
2746         * platform/qt/ClipboardQt.h:
2747         (WebCore::ClipboardQt::create):
2748         * platform/qt/DragDataQt.cpp:
2749         (WebCore::DragData::createClipboard):
2750         * platform/qt/PlatformScrollBar.h:
2751         (WebCore::PlatformScrollbar::create):
2752         * platform/qt/PopupMenuQt.cpp:
2753         (WebCore::PopupMenu::PopupMenu):
2754         * platform/qt/ScrollViewQt.cpp:
2755         (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
2756         (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
2757         * platform/win/ClipboardWin.h:
2758         (WebCore::ClipboardWin::create):
2759         * platform/win/CursorWin.cpp:
2760         (WebCore::Cursor::Cursor):
2761         (WebCore::loadSharedCursor):
2762         * platform/win/DragDataWin.cpp:
2763         (WebCore::DragData::createClipboard):
2764         * platform/win/EditorWin.cpp:
2765         (WebCore::Editor::newGeneralClipboard):
2766         * platform/win/PlatformScrollBar.h:
2767         (WebCore::PlatformScrollbar::create):
2768         * platform/win/PopupMenuWin.cpp:
2769         (WebCore::PopupMenu::PopupMenu):
2770         (WebCore::PopupMenu::show):
2771         * platform/win/ScrollViewWin.cpp:
2772         (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
2773         (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
2774         * platform/wx/ClipboardWx.h:
2775         (WebCore::ClipboardWx::create):
2776         * platform/wx/PlatformScrollBar.h:
2777         (WebCore::PlatformScrollbar::create):
2778         * platform/wx/PopupMenuWx.cpp:
2779         (WebCore::PopupMenu::PopupMenu):
2780         * platform/wx/TemporaryLinkStubs.cpp:
2781         (Icon::Icon):
2782         (Icon::newIconForFile):
2783         * rendering/RenderLayer.cpp:
2784         (WebCore::RenderLayer::createScrollbar):
2785         * rendering/RenderListBox.cpp:
2786         (WebCore::RenderListBox::updateFromElement):
2787         * svg/graphics/SVGImage.cpp:
2788         (WebCore::SVGImage::dataChanged):
2789         * svg/graphics/SVGImageEmptyClients.h:
2790         (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
2791
2792 2008-06-14  Sam Weinig  <sam@webkit.org>
2793
2794         Reviewed by Dan Bernstein.
2795
2796         Fix for <rdar://problem/5775192>
2797         insertAdjacentHTML and insertAdjacentText are not implemented although insertAdjacentElement is.
2798
2799         - Implements insertAdjacentHTML and insertAdjacentText for HTMLElement.
2800         - Moves the insertAdjacentElement implementation from Element to HTMLElement.
2801
2802         Tests: fast/dynamic/insertAdjacentHTML.html
2803                fast/dynamic/insertAdjacentText.html
2804
2805         * dom/Element.cpp:
2806         * dom/Element.h:
2807         * dom/Element.idl:
2808         * html/HTMLElement.cpp:
2809         (WebCore::HTMLElement::insertAdjacent):
2810         (WebCore::HTMLElement::insertAdjacentElement):
2811         (WebCore::HTMLElement::insertAdjacentHTML):
2812         (WebCore::HTMLElement::insertAdjacentText):
2813         * html/HTMLElement.h:
2814         * html/HTMLElement.idl:
2815
2816 2008-06-14  Darin Adler  <darin@apple.com>
2817
2818         Reviewed by Maciej.
2819
2820         - fix https://bugs.webkit.org/show_bug.cgi?id=19538
2821           <rdar://problem/5957595> Reading transition property from the style JS gives the wrong value
2822
2823         Test: fast/dom/CSSStyleDeclaration/transition-property-names.html
2824
2825         * css/CSSPrimitiveValue.cpp:
2826         (WebCore::valueOrPropertyName): Added.
2827         (WebCore::CSSPrimitiveValue::getStringValue): Use valueOrPropertyName since the ident can either
2828         be a value or property ID.
2829         (WebCore::CSSPrimitiveValue::cssText): Ditto.
2830
2831         * css/makeprop.pl: Assign property IDs starting at 1001 instead of 1 so they can be stored along
2832         with value IDs with no ambiguity.
2833
2834 2008-06-14  Adam Barth  <abarth@webkit.org>
2835
2836         Reviewed by David Kilzer.
2837
2838         Fix typo.
2839
2840         * dom/XMLTokenizer.cpp:
2841         (WebCore::shouldAllowExternalLoad):
2842
2843 2008-06-14  Darin Adler  <darin@apple.com>
2844
2845         - fix build
2846
2847         * plugins/PluginStream.h: Move functions back into public section.
2848
2849 2008-06-14  Darin Adler  <darin@apple.com>
2850
2851         Reviewed by Sam.
2852
2853         - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
2854           start ref counts at 1 instead of 0 for speed
2855
2856         * WebCore.base.exp:
2857         * bindings/js/JSSVGMatrixCustom.cpp:
2858         (WebCore::JSSVGMatrix::multiply):
2859         (WebCore::JSSVGMatrix::inverse):
2860         (WebCore::JSSVGMatrix::translate):
2861         (WebCore::JSSVGMatrix::scale):
2862         (WebCore::JSSVGMatrix::scaleNonUniform):
2863         (WebCore::JSSVGMatrix::rotate):
2864         (WebCore::JSSVGMatrix::rotateFromVector):
2865         (WebCore::JSSVGMatrix::flipX):
2866         (WebCore::JSSVGMatrix::flipY):
2867         (WebCore::JSSVGMatrix::skewX):
2868         (WebCore::JSSVGMatrix::skewY):
2869         * bindings/js/JSSVGPODTypeWrapper.h:
2870         (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::create):
2871         (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::JSSVGPODTypeWrapperCreatorReadWrite):
2872         (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::create):
2873         (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::JSSVGPODTypeWrapperCreatorReadOnly):
2874         (WebCore::JSSVGPODTypeWrapperCreatorForList::create):
2875         (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
2876         (WebCore::JSSVGPODTypeWrapperCache::lookupOrCreateWrapper):
2877         (WebCore::JSSVGPODTypeWrapperCache::forgetWrapper):
2878         * bindings/js/JSSVGPointListCustom.cpp:
2879         (WebCore::finishGetter):
2880         (WebCore::finishSetter):
2881         (WebCore::finishSetterReadOnlyResult):
2882         (WebCore::JSSVGPointList::clear):
2883         (WebCore::JSSVGPointList::initialize):
2884         (WebCore::JSSVGPointList::getItem):
2885         (WebCore::JSSVGPointList::insertItemBefore):
2886         (WebCore::JSSVGPointList::replaceItem):
2887         (WebCore::JSSVGPointList::removeItem):
2888         (WebCore::JSSVGPointList::appendItem):
2889         * bindings/js/JSSVGTransformListCustom.cpp:
2890         (WebCore::finishGetter):
2891         (WebCore::finishSetter):
2892         (WebCore::finishSetterReadOnlyResult):
2893         (WebCore::JSSVGTransformList::clear):
2894         (WebCore::JSSVGTransformList::initialize):
2895         (WebCore::JSSVGTransformList::getItem):
2896         (WebCore::JSSVGTransformList::insertItemBefore):
2897         (WebCore::JSSVGTransformList::replaceItem):
2898         (WebCore::JSSVGTransformList::removeItem):
2899         (WebCore::JSSVGTransformList::appendItem):
2900         * bindings/scripts/CodeGeneratorJS.pm:
2901         * css/CSSFontSelector.cpp:
2902         (WebCore::CSSFontSelector::CSSFontSelector):
2903         (WebCore::CSSFontSelector::~CSSFontSelector):
2904         * css/CSSFontSelector.h:
2905         (WebCore::CSSFontSelector::create):
2906         * css/CSSStyleSelector.cpp:
2907         (WebCore::CSSStyleSelector::CSSStyleSelector):
2908         (WebCore::CSSStyleSelector::applyProperty):
2909         * dom/Attribute.cpp:
2910         (WebCore::Attribute::clone):
2911         * dom/Attribute.h:
2912         (WebCore::Attribute::create):
2913         (WebCore::Attribute::Attribute):
2914         * dom/BeforeTextInsertedEvent.h:
2915         (WebCore::BeforeTextInsertedEvent::create):
2916         * dom/BeforeUnloadEvent.h:
2917         (WebCore::BeforeUnloadEvent::create):
2918         * dom/CharacterData.cpp:
2919         (WebCore::CharacterData::dispatchModifiedEvent):
2920         * dom/ClipboardEvent.cpp:
2921         (WebCore::ClipboardEvent::ClipboardEvent):
2922         * dom/ClipboardEvent.h:
2923         (WebCore::ClipboardEvent::create):
2924         * dom/ContainerNode.cpp:
2925         (WebCore::ContainerNode::removeChild):
2926         (WebCore::dispatchChildInsertionEvents):
2927         (WebCore::dispatchChildRemovalEvents):
2928         * dom/Document.cpp:
2929         (WebCore::Document::createTextNode):
2930         (WebCore::Document::createComment):
2931         (WebCore::Document::createCDATASection):
2932         (WebCore::Document::createProcessingInstruction):
2933         (WebCore::Document::createEntityReference):
2934         (WebCore::Document::createEditingTextNode):
2935         (WebCore::Document::createEvent):
2936         (WebCore::Document::createAttributeNS):
2937         (WebCore::Document::finishedParsing):
2938         * dom/Document.h:
2939         * dom/Element.cpp:
2940         (WebCore::Element::createAttribute):
2941         * dom/Element.h:
2942         * dom/Event.cpp:
2943         (WebCore::Event::Event):
2944         * dom/Event.h:
2945         (WebCore::Event::create):
2946         * dom/EventTargetNode.cpp:
2947         (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
2948         (WebCore::EventTargetNode::dispatchWindowEvent):
2949         (WebCore::EventTargetNode::dispatchUIEvent):
2950         (WebCore::EventTargetNode::dispatchKeyEvent):
2951         (WebCore::EventTargetNode::dispatchMouseEvent):
2952         (WebCore::EventTargetNode::dispatchWheelEvent):
2953         (WebCore::EventTargetNode::dispatchHTMLEvent):
2954         (WebCore::EventTargetNode::dispatchProgressEvent):
2955         (WebCore::EventTargetNode::dispatchStorageEvent):
2956         * dom/KeyboardEvent.h:
2957         (WebCore::KeyboardEvent::create):
2958         * dom/MappedAttribute.cpp:
2959         (WebCore::MappedAttribute::clone):
2960         * dom/MappedAttribute.h:
2961         (WebCore::MappedAttribute::create):
2962         (WebCore::MappedAttribute::setDecl):
2963         (WebCore::MappedAttribute::MappedAttribute):
2964         * dom/MessageEvent.cpp:
2965         (WebCore::MessageEvent::MessageEvent):
2966         * dom/MessageEvent.h:
2967         (WebCore::MessageEvent::create):
2968         * dom/MouseEvent.cpp:
2969         (WebCore::MouseEvent::MouseEvent):
2970         (WebCore::MouseEvent::initMouseEvent):
2971         * dom/MouseEvent.h:
2972         (WebCore::MouseEvent::create):
2973         * dom/MouseRelatedEvent.cpp:
2974         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
2975         * dom/MouseRelatedEvent.h:
2976         * dom/MutationEvent.cpp:
2977         (WebCore::MutationEvent::MutationEvent):
2978         (WebCore::MutationEvent::initMutationEvent):
2979         * dom/MutationEvent.h:
2980         (WebCore::MutationEvent::create):
2981         * dom/OverflowEvent.h:
2982         (WebCore::OverflowEvent::create):
2983         * dom/ProgressEvent.h:
2984         (WebCore::ProgressEvent::create):
2985         * dom/StyledElement.cpp:
2986         (WebCore::StyledElement::getMappedAttributeDecl):
2987         (WebCore::StyledElement::setMappedAttributeDecl):
2988         (WebCore::StyledElement::removeMappedAttributeDecl):
2989         (WebCore::StyledElement::createAttribute):
2990         * dom/StyledElement.h:
2991         * dom/TextEvent.cpp:
2992         (WebCore::TextEvent::TextEvent):
2993         (WebCore::TextEvent::initTextEvent):
2994         * dom/TextEvent.h:
2995         (WebCore::TextEvent::create):
2996         * dom/UIEvent.cpp:
2997         (WebCore::UIEvent::UIEvent):
2998         (WebCore::UIEvent::initUIEvent):
2999         * dom/UIEvent.h:
3000         (WebCore::UIEvent::create):
3001         * dom/UIEventWithKeyState.h:
3002         (WebCore::UIEventWithKeyState::ctrlKey):
3003         (WebCore::UIEventWithKeyState::shiftKey):
3004         (WebCore::UIEventWithKeyState::altKey):
3005         (WebCore::UIEventWithKeyState::metaKey):
3006         (WebCore::UIEventWithKeyState::UIEventWithKeyState):
3007         * dom/WheelEvent.cpp:
3008         (WebCore::WheelEvent::WheelEvent):
3009         (WebCore::WheelEvent::initWheelEvent):
3010         * dom/WheelEvent.h:
3011         (WebCore::WheelEvent::create):
3012         * editing/AppendNodeCommand.cpp:
3013         (WebCore::AppendNodeCommand::AppendNodeCommand):
3014         * editing/AppendNodeCommand.h:
3015         (WebCore::AppendNodeCommand::create):
3016         * editing/ApplyStyleCommand.cpp:
3017         (WebCore::ApplyStyleCommand::applyBlockStyle):
3018         * editing/ApplyStyleCommand.h:
3019         (WebCore::ApplyStyleCommand::create):
3020         * editing/BreakBlockquoteCommand.h:
3021         (WebCore::BreakBlockquoteCommand::create):
3022         * editing/CompositeEditCommand.cpp:
3023         (WebCore::CompositeEditCommand::applyStyle):
3024         (WebCore::CompositeEditCommand::applyStyledElement):
3025         (WebCore::CompositeEditCommand::removeStyledElement):
3026         (WebCore::CompositeEditCommand::insertParagraphSeparator):
3027         (WebCore::CompositeEditCommand::insertLineBreak):
3028         (WebCore::CompositeEditCommand::insertNodeBefore):
3029         (WebCore::CompositeEditCommand::appendNode):
3030         (WebCore::CompositeEditCommand::removeNode):
3031         (WebCore::CompositeEditCommand::removeNodePreservingChildren):
3032         (WebCore::CompositeEditCommand::splitTextNode):
3033         (WebCore::CompositeEditCommand::splitElement):
3034         (WebCore::CompositeEditCommand::mergeIdenticalElements):
3035         (WebCore::CompositeEditCommand::wrapContentsInDummySpan):
3036         (WebCore::CompositeEditCommand::splitTextNodeContainingElement):
3037         (WebCore::CompositeEditCommand::joinTextNodes):
3038         (WebCore::CompositeEditCommand::inputText):
3039         (WebCore::CompositeEditCommand::insertTextIntoNode):
3040         (WebCore::CompositeEditCommand::deleteTextFromNode):
3041         (WebCore::CompositeEditCommand::replaceTextInNode):
3042         (WebCore::CompositeEditCommand::deleteSelection):
3043         (WebCore::CompositeEditCommand::removeCSSProperty):
3044         (WebCore::CompositeEditCommand::removeNodeAttribute):
3045         (WebCore::CompositeEditCommand::setNodeAttribute):
3046         (WebCore::CompositeEditCommand::appendBlockPlaceholder):
3047         (WebCore::CompositeEditCommand::insertBlockPlaceholder):
3048         (WebCore::CompositeEditCommand::addBlockPlaceholderIfNeeded):
3049         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3050         (WebCore::CompositeEditCommand::moveParagraphs):
3051         (WebCore::CompositeEditCommand::splitTreeToNode):
3052         * editing/CompositeEditCommand.h:
3053         (WebCore::CompositeEditCommand::isFirstCommand):
3054         * editing/CreateLinkCommand.h:
3055         (WebCore::CreateLinkCommand::create):
3056         * editing/DeleteButtonController.cpp:
3057         (WebCore::DeleteButtonController::deleteTarget):
3058         * editing/DeleteFromTextNodeCommand.cpp:
3059         (WebCore::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand):
3060         * editing/DeleteFromTextNodeCommand.h:
3061         (WebCore::DeleteFromTextNodeCommand::create):
3062         * editing/DeleteSelectionCommand.h:
3063         (WebCore::DeleteSelectionCommand::create):
3064         * editing/EditCommand.h:
3065         (WebCore::SimpleEditCommand::SimpleEditCommand):
3066         * editing/Editor.cpp:
3067         (WebCore::Editor::deleteSelectionWithSmartDelete):
3068         (WebCore::Editor::replaceSelectionWithFragment):
3069         (WebCore::Editor::removeFormattingAndStyle):
3070         (WebCore::Editor::clearLastEditCommand):
3071         (WebCore::Editor::dispatchCPPEvent):
3072         (WebCore::Editor::applyStyle):
3073         (WebCore::Editor::applyParagraphStyle):
3074         (WebCore::Editor::indent):
3075         (WebCore::Editor::outdent):
3076         (WebCore::dispatchEditableContentChangedEvents):
3077         * editing/Editor.h:
3078         * editing/EditorCommand.cpp:
3079         (WebCore::executeInsertFragment):
3080         (WebCore::executeCreateLink):
3081         (WebCore::executeFormatBlock):
3082         (WebCore::executeIndent):
3083         (WebCore::executeInsertOrderedList):
3084         (WebCore::executeInsertUnorderedList):
3085         (WebCore::executeOutdent):
3086         (WebCore::executeUnlink):
3087         * editing/FormatBlockCommand.h:
3088         (WebCore::FormatBlockCommand::create):
3089         * editing/IndentOutdentCommand.cpp:
3090         (WebCore::IndentOutdentCommand::indentRegion):
3091         (WebCore::IndentOutdentCommand::outdentParagraph):
3092         * editing/IndentOutdentCommand.h:
3093         (WebCore::IndentOutdentCommand::create):
3094         * editing/InsertIntoTextNodeCommand.cpp:
3095         (WebCore::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand):
3096         * editing/InsertIntoTextNodeCommand.h:
3097         (WebCore::InsertIntoTextNodeCommand::create):
3098         * editing/InsertLineBreakCommand.h:
3099         (WebCore::InsertLineBreakCommand::create):
3100         * editing/InsertListCommand.cpp:
3101         (WebCore::InsertListCommand::doApply):
3102         * editing/InsertListCommand.h:
3103         (WebCore::InsertListCommand::create):
3104         * editing/InsertNodeBeforeCommand.cpp:
3105         (WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand):
3106         * editing/InsertNodeBeforeCommand.h:
3107         (WebCore::InsertNodeBeforeCommand::create):
3108         * editing/InsertParagraphSeparatorCommand.cpp:
3109         (WebCore::InsertParagraphSeparatorCommand::doApply):
3110         * editing/InsertParagraphSeparatorCommand.h:
3111         (WebCore::InsertParagraphSeparatorCommand::create):
3112         * editing/InsertTextCommand.h:
3113         (WebCore::InsertTextCommand::create):
3114         * editing/JoinTextNodesCommand.cpp:
3115         (WebCore::JoinTextNodesCommand::JoinTextNodesCommand):
3116         * editing/JoinTextNodesCommand.h:
3117         (WebCore::JoinTextNodesCommand::create):
3118         * editing/MergeIdenticalElementsCommand.cpp:
3119         (WebCore::MergeIdenticalElementsCommand::MergeIdenticalElementsCommand):
3120         * editing/MergeIdenticalElementsCommand.h:
3121         (WebCore::MergeIdenticalElementsCommand::create):
3122         * editing/ModifySelectionListLevel.cpp:
3123         (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
3124         * editing/MoveSelectionCommand.cpp:
3125         (WebCore::MoveSelectionCommand::doApply):
3126         * editing/MoveSelectionCommand.h:
3127         (WebCore::MoveSelectionCommand::create):
3128         * editing/RemoveCSSPropertyCommand.cpp:
3129         (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand):
3130         * editing/RemoveCSSPropertyCommand.h:
3131         (WebCore::RemoveCSSPropertyCommand::create):
3132         * editing/RemoveFormatCommand.h:
3133         (WebCore::RemoveFormatCommand::create):
3134         * editing/RemoveNodeAttributeCommand.cpp:
3135         (WebCore::RemoveNodeAttributeCommand::RemoveNodeAttributeCommand):
3136         * editing/RemoveNodeAttributeCommand.h:
3137         (WebCore::RemoveNodeAttributeCommand::create):
3138         * editing/RemoveNodeCommand.cpp:
3139         (WebCore::RemoveNodeCommand::RemoveNodeCommand):
3140         * editing/RemoveNodeCommand.h:
3141         (WebCore::RemoveNodeCommand::create):
3142         * editing/RemoveNodePreservingChildrenCommand.cpp:
3143         (WebCore::RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand):
3144         (WebCore::RemoveNodePreservingChildrenCommand::doApply):
3145         * editing/RemoveNodePreservingChildrenCommand.h:
3146         (WebCore::RemoveNodePreservingChildrenCommand::create):
3147         * editing/ReplaceSelectionCommand.cpp:
3148         (WebCore::ReplacementFragment::hasInterchangeNewlineAtStart):
3149         (WebCore::ReplacementFragment::hasInterchangeNewlineAtEnd):
3150         (WebCore::ReplacementFragment::ReplacementFragment):
3151         * editing/ReplaceSelectionCommand.h:
3152         (WebCore::ReplaceSelectionCommand::create):
3153         * editing/SetNodeAttributeCommand.cpp:
3154         (WebCore::SetNodeAttributeCommand::SetNodeAttributeCommand):
3155         * editing/SetNodeAttributeCommand.h:
3156         (WebCore::SetNodeAttributeCommand::create):
3157         * editing/SplitElementCommand.cpp:
3158         (WebCore::SplitElementCommand::SplitElementCommand):
3159         * editing/SplitElementCommand.h:
3160         (WebCore::SplitElementCommand::create):
3161         * editing/SplitTextNodeCommand.cpp:
3162         (WebCore::SplitTextNodeCommand::SplitTextNodeCommand):
3163         * editing/SplitTextNodeCommand.h:
3164         (WebCore::SplitTextNodeCommand::create):
3165         * editing/SplitTextNodeContainingElementCommand.cpp:
3166         (WebCore::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand):
3167         * editing/SplitTextNodeContainingElementCommand.h:
3168         (WebCore::SplitTextNodeContainingElementCommand::create):
3169         * editing/TypingCommand.cpp:
3170         (WebCore::TypingCommand::deleteSelection):
3171         (WebCore::TypingCommand::deleteKeyPressed):
3172         (WebCore::TypingCommand::forwardDeleteKeyPressed):
3173         (WebCore::TypingCommand::insertText):
3174         (WebCore::TypingCommand::insertLineBreak):
3175         (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent):
3176         (WebCore::TypingCommand::insertParagraphSeparator):
3177         (WebCore::TypingCommand::insertTextRunWithoutNewlines):
3178         * editing/TypingCommand.h:
3179         (WebCore::TypingCommand::create):
3180         (WebCore::TypingCommand::smartDelete):
3181         * editing/UnlinkCommand.h:
3182         (WebCore::UnlinkCommand::create):
3183         * editing/WrapContentsInDummySpanCommand.cpp:
3184         (WebCore::WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand):
3185         * editing/WrapContentsInDummySpanCommand.h:
3186         (WebCore::WrapContentsInDummySpanCommand::create):
3187         * html/HTMLTableElement.cpp:
3188         (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
3189         (WebCore::HTMLTableElement::addSharedCellBordersDecl):
3190         (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
3191         (WebCore::HTMLTableElement::addSharedGroupDecls):
3192         * html/HTMLTokenizer.cpp:
3193         (WebCore::Token::addAttribute):
3194         * html/HTMLViewSourceDocument.cpp:
3195         (WebCore::HTMLViewSourceDocument::createContainingTable):
3196         (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
3197         (WebCore::HTMLViewSourceDocument::addLine):
3198         (WebCore::HTMLViewSourceDocument::addLink):
3199         * loader/FrameLoader.cpp:
3200         (WebCore::FrameLoader::didOpenURL):
3201         * loader/appcache/DOMApplicationCache.cpp:
3202         (WebCore::DOMApplicationCache::callListener):
3203         * page/ContextMenuController.cpp:
3204         (WebCore::ContextMenuController::contextMenuItemSelected):
3205         * page/DOMWindow.cpp:
3206         (WebCore::PostMessageTimer::PostMessageTimer):
3207         (WebCore::PostMessageTimer::fired):
3208         (WebCore::DOMWindow::postMessage):
3209         * page/DragController.cpp:
3210         (WebCore::DragController::concludeDrag):
3211         * page/EventHandler.cpp:
3212         (WebCore::EventHandler::dispatchDragEvent):
3213         (WebCore::EventHandler::keyEvent):
3214         (WebCore::EventHandler::handleTextInputEvent):
3215         * page/Frame.cpp:
3216         (WebCore::Frame::computeAndSetTypingStyle):
3217         (WebCore::Frame::shouldClose):
3218         * page/FrameView.cpp:
3219         (WebCore::FrameView::updateOverflowStatus):
3220         * page/mac/EventHandlerMac.mm:
3221         (WebCore::EventHandler::currentKeyboardEvent):
3222         * page/mac/FrameMac.mm:
3223         * platform/DeprecatedValueListImpl.cpp:
3224         (WebCore::DeprecatedValueListImpl::Private::Private):
3225         (WebCore::DeprecatedValueListImpl::DeprecatedValueListImpl):
3226         (WebCore::DeprecatedValueListImpl::copyOnWrite):
3227         * platform/graphics/FontSelector.h:
3228         * platform/graphics/GlyphPageTreeNode.cpp:
3229         (WebCore::GlyphPageTreeNode::initializePage):
3230         * platform/graphics/GlyphPageTreeNode.h:
3231         (WebCore::GlyphPage::create):
3232         (WebCore::GlyphPage::GlyphPage):
3233         * rendering/RenderLayer.cpp:
3234         (WebCore::RenderLayer::scrollToOffset):
3235         (WebCore::RenderLayer::updateOverflowStatus):
3236         (WebCore::RenderLayer::updateReflectionStyle):
3237         * rendering/style/RenderStyle.h:
3238         (WebCore::TransformOperation::~TransformOperation):
3239         (WebCore::ScaleTransformOperation::create):
3240         (WebCore::ScaleTransformOperation::ScaleTransformOperation):
3241         (WebCore::RotateTransformOperation::create):
3242         (WebCore::RotateTransformOperation::RotateTransformOperation):
3243         (WebCore::SkewTransformOperation::create):
3244         (WebCore::SkewTransformOperation::operator==):
3245         (WebCore::SkewTransformOperation::SkewTransformOperation):
3246         (WebCore::TranslateTransformOperation::create):
3247         (WebCore::TranslateTransformOperation::operator==):
3248         (WebCore::TranslateTransformOperation::TranslateTransformOperation):
3249         (WebCore::MatrixTransformOperation::create):
3250         (WebCore::MatrixTransformOperation::MatrixTransformOperation):
3251         (WebCore::StyleReflection::create):
3252         (WebCore::StyleReflection::StyleReflection):
3253         * storage/StorageEvent.cpp:
3254         (WebCore::StorageEvent::StorageEvent):
3255         (WebCore::StorageEvent::initStorageEvent):
3256         * storage/StorageEvent.h:
3257         (WebCore::StorageEvent::create):
3258         (WebCore::StorageEvent::StorageEvent):
3259         * svg/SVGAngle.cpp:
3260         (WebCore::SVGAngle::SVGAngle):
3261         * svg/SVGAngle.h:
3262         (WebCore::SVGAngle::create):
3263         * svg/SVGAnimatedTemplate.h:
3264         (WebCore::SVGAnimatedTemplate::SVGAnimatedTemplate):
3265         (WebCore::lookupOrCreateWrapper):
3266         * svg/SVGElement.cpp:
3267         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
3268         * svg/SVGElement.h:
3269         * svg/SVGMarkerElement.cpp:
3270         (WebCore::SVGMarkerElement::SVGMarkerElement):
3271         (WebCore::SVGMarkerElement::parseMappedAttribute):
3272         (WebCore::SVGMarkerElement::setOrientToAngle):
3273         * svg/SVGMarkerElement.h:
3274         * svg/SVGSVGElement.cpp:
3275         (WebCore::SVGSVGElement::createSVGAngle):
3276         * svg/SVGSVGElement.h:
3277         * svg/SVGZoomEvent.h:
3278         (WebCore::SVGZoomEvent::create):
3279         * svg/graphics/SVGImage.cpp:
3280         * xml/XMLHttpRequest.cpp:
3281         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
3282         (WebCore::XMLHttpRequest::dispatchProgressEvent):
3283         * xml/XMLHttpRequestProgressEvent.cpp:
3284         * xml/XMLHttpRequestProgressEvent.h:
3285         (WebCore::XMLHttpRequestProgressEvent::create):
3286         (WebCore::XMLHttpRequestProgressEvent::position):
3287         (WebCore::XMLHttpRequestProgressEvent::totalSize):
3288         (WebCore::XMLHttpRequestProgressEvent::XMLHttpRequestProgressEvent):
3289
3290 2008-06-13  Adam Barth  <abarth@webkit.org>
3291
3292         Reviewed by Eric Seidel.
3293
3294         https://bugs.webkit.org/show_bug.cgi?id=19199
3295
3296         Prevent external entities from loading across origins.
3297
3298         Test: http/tests/security/xss-DENIED-xsl-external-entity.xml
3299
3300         * dom/XMLTokenizer.cpp:
3301         (WebCore::shouldAllowExternalLoad):
3302         (WebCore::openFunc):
3303
3304 2008-06-13  Adam Barth  <abarth@webkit.org>
3305
3306         Reviewed by Darin Adler.
3307
3308         https://bugs.webkit.org/show_bug.cgi?id=19450
3309
3310         Allow loads of same-origin documents only.
3311
3312         Test: http/tests/security/xss-DENIED-xsl-document.xml
3313
3314         * xml/XSLTProcessor.cpp:
3315         (WebCore::docLoaderFunc):
3316
3317 2008-06-13  Adam Barth  <abarth@webkit.org>
3318
3319         Reviewed by Darin Adler.
3320
3321         Fixes <https://bugs.webkit.org/show_bug.cgi?id=15100>:
3322           XMLHttpRequest::urlMatchesDocumentDomain raises error if port
3323           information does not match exactly
3324
3325         Refactor our security check for XMLHttpRequest into SecurityOrigin so
3326         we can reuse it in other places.  This leverages our default port
3327         technology in SecurityOrigin.
3328
3329         I wasn't sure how to write a test for this because the LayoutTests run
3330         on non-default ports.
3331
3332         * platform/SecurityOrigin.cpp:
3333         (WebCore::SecurityOrigin::canRequest):
3334         * platform/SecurityOrigin.h:
3335         * xml/XMLHttpRequest.cpp:
3336         (WebCore::XMLHttpRequest::send):
3337         (WebCore::XMLHttpRequest::willSendRequest):
3338         * xml/XMLHttpRequest.h:
3339
3340 2008-06-13  Adam Barth  <abarth@webkit.org>
3341
3342         Reviewed by Eric Seidel.
3343
3344         Removed unnecessary dependencies.
3345
3346         * platform/SecurityOrigin.cpp:
3347         * platform/SecurityOrigin.h:
3348
3349 2008-06-13  Darin Adler  <darin@apple.com>
3350
3351         Reviewed by John Sullivan.
3352
3353         - added FormState argument to action policy functions
3354
3355         * loader/FrameLoader.cpp:
3356         (WebCore::FrameLoader::checkNewWindowPolicy):
3357         (WebCore::FrameLoader::checkNavigationPolicy):
3358         * loader/FrameLoaderClient.h:
3359         * svg/graphics/SVGImageEmptyClients.h:
3360         (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3361         (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3362
3363 2008-06-13  Justin Garcia  <justin.garcia@apple.com>
3364
3365         Reviewed by Jess.
3366
3367         <rdar://problem/5702248> Crash on Copy Image from the contextual menu on a broken image in Mail
3368
3369         * platform/mac/PasteboardMac.mm:
3370         (WebCore::Pasteboard::writeImage): Check to see the image loaded successfully
3371         before trying to put data for it on the Pasteboard.  Mail shouldn't really
3372         include the Copy Image menu item, but if it does and the user selects it,
3373         we shouldn't crash.
3374
3375 2008-06-11  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
3376         With help from Siraj Razick  <siraj.razick@collabora.co.uk>
3377
3378         Reviewed by Simon.
3379
3380         https://bugs.webkit.org/show_bug.cgi?id=19367
3381         [Qt] Plugins are drawn over the scrollbars
3382
3383         * plugins/qt/PluginViewQt.cpp:
3384         (WebCore::PluginView::updateWindow): Call setMask on the
3385         QX11EmbedContainer to set the plugin clipping.
3386
3387 2008-06-12  Darin Adler  <darin@apple.com>
3388
3389         - try to fix no-SVG build
3390
3391         * css/CSSComputedStyleDeclaration.cpp:
3392         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added a case for
3393         CSSPropertyWebkitMask.
3394
3395 2008-06-12  Darin Adler  <darin@apple.com>
3396
3397         - try to fix Windows build
3398
3399         * dom/Element.idl: Turn off ElementTraversal functions when generating COM.
3400         Not sure why they're failing, but turning them off for now seems OK.
3401
3402 2008-06-12  Adam Barth  <abarth@webkit.org>
3403
3404         Rubberstamped by Maciej.
3405
3406         Roll 34504 back in.
3407
3408         Test: http/tests/xmlhttprequest/access-control-basic-allow-access-control-origin-header-data-url.html
3409
3410         * platform/SecurityOrigin.cpp:
3411         (WebCore::SecurityOrigin::toString):
3412
3413 2008-06-11  Dan Bernstein  <mitz@apple.com>
3414
3415         Reviewed by Dave Hyatt.
3416
3417         - fix <rdar://problem/5876370> Safari 3.1.1 bad rendering of pages from http://www.legifrance.gouv.fr/
3418
3419         Tests: fast/parser/p-in-scope-strict.html
3420                fast/parser/p-in-scope.html
3421
3422         * html/HTMLParagraphElement.h:
3423         (WebCore::HTMLParagraphElement::endTagRequirement): Changed to require
3424         an end tag. The explicit closing of one P element by another is now
3425         done in error checking, and therefore takes scope into account, allowing
3426         for <p><button><p>, for example.
3427
3428         * html/HTMLParser.cpp:
3429         (WebCore::HTMLParser::HTMLParser): Initialize m_hasPElementInScope.
3430         (WebCore::isScopingTag): Added. Returns whether the given tag represents
3431         a scoping element as defined in HTML 5 section 8.2.3.2.
3432         (WebCore::HTMLParser::formCreateErrorCheck): Added a call to
3433         pCloserCreateErrorCheck().
3434         (WebCore::HTMLParser::ddCreateErrorCheck): Ditto.
3435         (WebCore::HTMLParser::dtCreateErrorCheck): Ditto.
3436         (WebCore::HTMLParser::nestedPCloserCreateErrorCheck): Added for use with
3437         <li>, which both closes P elements in scope and any previous LI.
3438         (WebCore::HTMLParser::pCloserCreateErrorCheck): Added. If there is a P
3439         element in scope, acts as if a </p> tag was seen.
3440         (WebCore::HTMLParser::pCloserStrictCreateErrorCheck): Ditto, but only
3441         in strict mode. Used for <table>.
3442         (WebCore::HTMLParser::getNode): Added entries for tags that close a P
3443         element in scope.
3444         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Added
3445         code to reset m_hasPElementInScope.
3446         (WebCore::HTMLParser::pushBlock): Added code to update
3447         m_hasPElementInScope.
3448         (WebCore::HTMLParser::popOneBlockCommon): Ditto.
3449         (WebCore::HTMLParser::checkIfHasPElementInScope): Added. Updates
3450         m_hasPElementInScope.
3451
3452         * html/HTMLParser.h:
3453         (WebCore::HTMLParser::hasPElementInScope): Added. Calls
3454         checkIfHasPElementInScope() if needed and returns whether there
3455         is a P element in scope.
3456
3457 2008-06-11  Adam Barth  <abarth@webkit.org>
3458
3459         Reviewed by Sam Weinig.
3460
3461         https://bugs.webkit.org/show_bug.cgi?id=19460
3462
3463         Update the security context of a document after calling document.open
3464         or document.write.  Basically, when a script open()s a document, the
3465         document gains the security context of the script.  Our implementation
3466         now matches Firefox 3 on all these tests.
3467
3468         Tests: http/tests/security/aboutBlank/security-context-alias.html
3469                http/tests/security/aboutBlank/security-context-grandchildren-alias.html
3470                http/tests/security/aboutBlank/security-context-grandchildren.html
3471                http/tests/security/aboutBlank/security-context-window-open.html
3472                http/tests/security/aboutBlank/security-context-with-base-tag.html
3473                http/tests/security/aboutBlank/security-context-write.html
3474                http/tests/security/aboutBlank/security-context-writeln.html
3475                http/tests/security/aboutBlank/security-context.html
3476                http/tests/security/cookies/document-open.html
3477
3478         * bindings/js/JSDOMWindowBase.cpp:
3479         (WebCore::createWindow):
3480         * bindings/js/JSHTMLDocumentCustom.cpp:
3481         (WebCore::JSHTMLDocument::open):
3482         (WebCore::JSHTMLDocument::write):
3483         (WebCore::JSHTMLDocument::writeln):
3484         * dom/Document.cpp:
3485         (WebCore::Document::open):
3486         (WebCore::Document::write):
3487         (WebCore::Document::writeln):
3488         * dom/Document.h:
3489
3490 2008-06-11  Adam Barth  <abarth@webkit.org>
3491
3492         Reviewed by Sam Weinig.
3493
3494         https://bugs.webkit.org/show_bug.cgi?id=19460
3495
3496         Compute the cookie context at the same time as the SecurityOrigin.
3497
3498         Tests: http/tests/security/cookies/create-document.html
3499                http/tests/security/cookies/xmlhttprequest.html
3500
3501         * dom/Document.cpp:
3502         (WebCore::Document::cookie):
3503         (WebCore::Document::initSecurityOrigin):
3504         * dom/Document.h:
3505         * platform/SecurityOrigin.cpp:
3506         * platform/SecurityOrigin.h:
3507
3508 2008-06-11  Adam Barth  <abarth@webkit.org>
3509
3510         Reviewed and tweaked by Sam Weinig.
3511
3512         Fix for https://bugs.webkit.org/show_bug.cgi?id=19242
3513         Data URLs should set an Access-Control-Origin of "null"
3514
3515         Correctly generate "null" as the value of the Access-Control-Origin
3516         header for cross-site XMLHttpRequests for data URLs.
3517
3518         Test: http/tests/xmlhttprequest/access-control-basic-allow-access-control-origin-header-data-url.html
3519
3520         * platform/SecurityOrigin.cpp:
3521         (WebCore::SecurityOrigin::toString):
3522         * xml/XMLHttpRequest.cpp:
3523         (WebCore::XMLHttpRequest::accessControlOrigin):
3524         (WebCore::XMLHttpRequest::crossSiteAccessRequest):
3525         (WebCore::XMLHttpRequest::handleAsynchronousMethodCheckResult):
3526         * xml/XMLHttpRequest.h:
3527
3528 2008-06-11  Sam Weinig  <sam@webkit.org>
3529
3530         Reviewed by Adam Roben.
3531
3532         Add support for "*" wildcarding for Access-Control.
3533
3534         Test: http/tests/xmlhttprequest/access-control-basic-allow-star.html
3535
3536         * xml/AccessItem.cpp:
3537         (WebCore::AccessItem::AccessItem):
3538         (WebCore::AccessItem::parseAccessItem):
3539         (WebCore::AccessItem::matches):
3540
3541 2008-06-11  Justin Garcia  <justin.garcia@apple.com>
3542
3543         Reviewed by Eric.
3544
3545         <https://bugs.webkit.org/show_bug.cgi?id=19455>
3546         Crash at RenderObject::childAt during JustifyCenter
3547
3548         * editing/ApplyStyleCommand.cpp:
3549         (WebCore::ApplyStyleCommand::surroundNodeRangeWithElement): Added a FIXME.
3550         * editing/CompositeEditCommand.cpp:
3551         (WebCore::CompositeEditCommand::moveParagraphs): If we're removing a line
3552         break that consists of a single '\n' in a text node by itself, remove
3553         the whole text node instead of just emptying it out.
3554         * editing/Selection.cpp:
3555         (WebCore::Selection::validate): Added a FIXME about canonicalizing
3556         to positions that aren't candidates.