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