[ES5] Implement Object.keys
[WebKit-https.git] / WebCore / ChangeLog
1 2009-09-12  Oliver Hunt  <oliver@apple.com>
2
3         Reviewed by Maciej Stachowiak.
4
5         [ES5] Implement Object.keys
6         https://bugs.webkit.org/show_bug.cgi?id=29170
7
8         Switch from getPropertyNames to getOwnPropertyNames, and provide custom
9         getPropertyNames to DOMWindow, DOMWindowShell and QuarantinedObjectWrapper
10         in order to ensure correct semantics are maintained.
11
12         Test: fast/js/Object-keys.html
13
14         * bindings/js/JSDOMWindowCustom.cpp:
15         (WebCore::JSDOMWindow::getOwnPropertyNames):
16         * bindings/js/JSDOMWindowShell.cpp:
17         (WebCore::JSDOMWindowShell::getOwnPropertyNames):
18         * bindings/js/JSDOMWindowShell.h:
19         * bindings/js/JSHistoryCustom.cpp:
20         (WebCore::JSHistory::getOwnPropertyNames):
21         * bindings/js/JSLocationCustom.cpp:
22         (WebCore::JSLocation::getOwnPropertyNames):
23         * bindings/js/JSQuarantinedObjectWrapper.cpp:
24         (WebCore::JSQuarantinedObjectWrapper::getPropertyNames):
25         (WebCore::JSQuarantinedObjectWrapper::getOwnPropertyNames):
26         * bindings/js/JSQuarantinedObjectWrapper.h:
27         * bindings/js/JSStorageCustom.cpp:
28         (WebCore::JSStorage::getOwnPropertyNames):
29         * bindings/scripts/CodeGeneratorJS.pm:
30         * bridge/runtime_object.cpp:
31         (JSC::RuntimeObjectImp::getPropertyNames):
32         (JSC::RuntimeObjectImp::getOwnPropertyNames):
33         * bridge/runtime_object.h:
34
35 2009-09-12  Sam Weinig  <sam@webkit.org>
36
37         Reviewed by Anders Carlsson.
38
39         Fix for https://bugs.webkit.org/show_bug.cgi?id=29219
40         Document.elementFromPoint() should take page scroll into consideration
41
42         Test: fast/dom/elementFromPoint-relative-to-viewport.html
43
44         * dom/Document.cpp:
45         (WebCore::Document::elementFromPoint):
46         (WebCore::Document::caretRangeFromPoint):
47
48 2009-09-12  Sam Weinig  <sam@webkit.org>
49
50         Reviewed by Maciej Stachowiak.
51
52         Fix for https://bugs.webkit.org/show_bug.cgi?id=29217
53         Document.caretRangeFromPoint should take the scroll offset into account before hit testing
54
55         In accordance with the CSSOM View Module spec, Document.caretRangeFromPoint should interpret
56         the point passed to it as relative to the viewport, not the document.
57
58         Test: fast/dom/Document/CaretRangeFromPoint/hittest-relative-to-viewport.html
59
60         * dom/Document.cpp:
61         (WebCore::Document::caretRangeFromPoint):
62
63 2009-09-11  Chris Marrin  <cmarrin@apple.com>
64
65         Reviewed by Oliver Hunt.
66
67         Added some manual tests to show WebGL in action
68         https://bugs.webkit.org/show_bug.cgi?id=29215
69
70         * manual-tests/webgl: Added.
71         * manual-tests/webgl/Earth.html: Added.
72         * manual-tests/webgl/ManyPlanetsDeep.html: Added.
73         * manual-tests/webgl/SpinningBox.html: Added.
74         * manual-tests/webgl/TeapotPerPixel.html: Added.
75         * manual-tests/webgl/TeapotPerVertex.html: Added.
76         * manual-tests/webgl/resources: Added.
77         * manual-tests/webgl/resources/CanvasMatrix.js: Added.
78         * manual-tests/webgl/resources/earthmap1k.jpg: Added.
79         * manual-tests/webgl/resources/mars500x250.png: Added.
80         * manual-tests/webgl/resources/teapot.obj: Added.
81         * manual-tests/webgl/resources/utils3d.js: Added.
82  
83 2009-09-10  Chris Fleizach  <cfleizach@apple.com>
84
85         Reviewed by Darin Adler.
86
87         aria definition role spelled wrong "defintion"
88         https://bugs.webkit.org/show_bug.cgi?id=28840
89
90         Test: accessibility/aria-slider-value-change.html
91
92         * accessibility/AccessibilityRenderObject.cpp:
93         (WebCore::RoleEntry::):
94
95 2009-09-11  Erik Arvidsson  <arv@chromium.org>
96
97         Reviewed by Eric Seidel.
98
99         Fixes an assert in Node::isFocusable which was causing crashes in certain cases.
100         https://bugs.webkit.org/show_bug.cgi?id=29210
101
102         * dom/Node.cpp:
103         (WebCore::Node::isFocusable):
104
105 2009-09-11  Chris Marrin  <cmarrin@apple.com>
106
107         Reviewed by Oliver Hunt.
108
109         Added variants to uniform* and vertexAttrib* calls which take sequence<> in place of CanvasArray
110         https://bugs.webkit.org/show_bug.cgi?id=29139
111         
112         I also added a data() call to each of the CanvasArray subclasses to give back a types pointer
113         to the baseAddress().
114
115         * Configurations/FeatureDefines.xcconfig:
116         * bindings/js/JSCanvasRenderingContext3DCustom.cpp:
117         (WebCore::toArray):
118         (WebCore::):
119         (WebCore::dataFunctionf):
120         (WebCore::dataFunctioni):
121         (WebCore::dataFunctionMatrix):
122         (WebCore::JSCanvasRenderingContext3D::uniform1fv):
123         (WebCore::JSCanvasRenderingContext3D::uniform1iv):
124         (WebCore::JSCanvasRenderingContext3D::uniform2fv):
125         (WebCore::JSCanvasRenderingContext3D::uniform2iv):
126         (WebCore::JSCanvasRenderingContext3D::uniform3fv):
127         (WebCore::JSCanvasRenderingContext3D::uniform3iv):
128         (WebCore::JSCanvasRenderingContext3D::uniform4fv):
129         (WebCore::JSCanvasRenderingContext3D::uniform4iv):
130         (WebCore::JSCanvasRenderingContext3D::uniformMatrix2fv):
131         (WebCore::JSCanvasRenderingContext3D::uniformMatrix3fv):
132         (WebCore::JSCanvasRenderingContext3D::uniformMatrix4fv):
133         (WebCore::JSCanvasRenderingContext3D::vertexAttrib1fv):
134         (WebCore::JSCanvasRenderingContext3D::vertexAttrib2fv):
135         (WebCore::JSCanvasRenderingContext3D::vertexAttrib3fv):
136         (WebCore::JSCanvasRenderingContext3D::vertexAttrib4fv):
137         * html/canvas/CanvasByteArray.h:
138         (WebCore::CanvasByteArray::data):
139         * html/canvas/CanvasFloatArray.h:
140         (WebCore::CanvasFloatArray::data):
141         * html/canvas/CanvasIntArray.h:
142         (WebCore::CanvasIntArray::data):
143         * html/canvas/CanvasRenderingContext3D.cpp:
144         (WebCore::CanvasRenderingContext3D::uniform1fv):
145         (WebCore::CanvasRenderingContext3D::uniform1iv):
146         (WebCore::CanvasRenderingContext3D::uniform2fv):
147         (WebCore::CanvasRenderingContext3D::uniform2iv):
148         (WebCore::CanvasRenderingContext3D::uniform3fv):
149         (WebCore::CanvasRenderingContext3D::uniform3iv):
150         (WebCore::CanvasRenderingContext3D::uniform4fv):
151         (WebCore::CanvasRenderingContext3D::uniform4iv):
152         (WebCore::CanvasRenderingContext3D::uniformMatrix2fv):
153         (WebCore::CanvasRenderingContext3D::uniformMatrix3fv):
154         (WebCore::CanvasRenderingContext3D::uniformMatrix4fv):
155         (WebCore::CanvasRenderingContext3D::vertexAttrib1fv):
156         (WebCore::CanvasRenderingContext3D::vertexAttrib2fv):
157         (WebCore::CanvasRenderingContext3D::vertexAttrib3fv):
158         (WebCore::CanvasRenderingContext3D::vertexAttrib4fv):
159         * html/canvas/CanvasRenderingContext3D.h:
160         * html/canvas/CanvasRenderingContext3D.idl:
161         * html/canvas/CanvasShortArray.h:
162         (WebCore::CanvasShortArray::data):
163         * html/canvas/CanvasUnsignedByteArray.h:
164         (WebCore::CanvasUnsignedByteArray::data):
165         * html/canvas/CanvasUnsignedIntArray.h:
166         (WebCore::CanvasUnsignedIntArray::data):
167         * html/canvas/CanvasUnsignedShortArray.h:
168         (WebCore::CanvasUnsignedShortArray::data):
169         * platform/graphics/GraphicsContext3D.h:
170         * platform/graphics/mac/GraphicsContext3DMac.cpp:
171         (WebCore::GraphicsContext3D::uniform1fv):
172         (WebCore::GraphicsContext3D::uniform2fv):
173         (WebCore::GraphicsContext3D::uniform3fv):
174         (WebCore::GraphicsContext3D::uniform4fv):
175         (WebCore::GraphicsContext3D::uniform1iv):
176         (WebCore::GraphicsContext3D::uniform2iv):
177         (WebCore::GraphicsContext3D::uniform3iv):
178         (WebCore::GraphicsContext3D::uniform4iv):
179         (WebCore::GraphicsContext3D::uniformMatrix2fv):
180         (WebCore::GraphicsContext3D::uniformMatrix3fv):
181         (WebCore::GraphicsContext3D::uniformMatrix4fv):
182         (WebCore::GraphicsContext3D::vertexAttrib1fv):
183         (WebCore::GraphicsContext3D::vertexAttrib2fv):
184         (WebCore::GraphicsContext3D::vertexAttrib3fv):
185         (WebCore::GraphicsContext3D::vertexAttrib4fv):
186
187 2009-09-11  Fumitoshi Ukai  <ukai@chromium.org>
188
189         Reviewed by Eric Seidel.
190
191         Add ENABLE(WEB_SOCKETS) guards.
192         https://bugs.webkit.org/show_bug.cgi?id=29174
193
194         * bindings/v8/custom/V8WebSocketCustom.cpp:
195
196 2009-09-11  Eric Seidel  <eric@webkit.org>
197
198         No review, rolling out r48229.
199         http://trac.webkit.org/changeset/48229
200
201         * WebCore.base.exp:
202         * dom/Clipboard.cpp:
203         (WebCore::Clipboard::Clipboard):
204         (WebCore::Clipboard::sourceOperation):
205         * page/DragController.cpp:
206         (WebCore::DragController::DragController):
207         (WebCore::DragController::dragExited):
208         (WebCore::DragController::performDrag):
209         (WebCore::DragController::dragEnteredOrUpdated):
210         (WebCore::DragController::tryDHTMLDrag):
211         (WebCore::DragController::startDrag):
212         * page/DragController.h:
213         * page/EventHandler.cpp:
214         (WebCore::EventHandler::updateDragAndDrop):
215         (WebCore::EventHandler::dragSourceMovedTo):
216         (WebCore::EventHandler::handleDrag):
217         * page/EventHandler.h:
218
219 2009-09-11  Michelangelo De Simone  <micdesim@gmail.com>
220
221         Fix the build.
222
223         * html/ValidityState.cpp:
224         (WebCore::ValidityState::typeMismatch):
225
226 2009-09-11  Michelangelo De Simone  <micdesim@gmail.com>
227
228         Reviewed by Antti Koivisto.
229
230         https://bugs.webkit.org/show_bug.cgi?id=27456
231         Added support for static validation of url in
232         ValidityState, for url state inputs.
233         From HTML5 specs:
234         http://www.whatwg.org/specs/web-apps/current-work/#url-state
235
236         Test: fast/forms/ValidityState-typeMismatch-url.html
237
238         * html/ValidityState.cpp:
239         (WebCore::ValidityState::typeMismatch):
240
241 2009-09-11  Evan Stade  <estade@chromium.org>
242
243         Reviewed by Darin Adler.
244
245         Revert r47992: Expose functions to change the focus ring color for
246         Linux Chromium.
247
248         As Darin Fisher has pointed out, there is a better way to do this.
249
250         * rendering/RenderThemeChromiumLinux.cpp:
251         (WebCore::RenderThemeChromiumLinux::RenderThemeChromiumLinux):
252         * rendering/RenderThemeChromiumLinux.h:
253
254 2009-09-11  Alexey Proskuryakov  <ap@webkit.org>
255
256         Reviewed by Geoff Garen.
257
258         https://bugs.webkit.org/show_bug.cgi?id=29207
259         Add checks for using WebCore JS context on secondary threads
260
261         * bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::commonJSGlobalData):
262         Set the new debug-only mainThreadOnly flag.
263
264 2009-09-11  Brian Weinstein  <bweinstein@apple.com>
265
266         Reviewed by Timothy Hatcher.
267
268         The inspector should have scope bars.
269         https://bugs.webkit.org/show_bug.cgi?id=14353
270         
271         Add scope bars to the console, so the user can choose which category
272         of messages they want to see (All, Errors, Warnings, Logs), and they
273         can choose from one or more of {Errors, Warnings, Logs}.
274
275         * inspector/front-end/ConsoleView.js:
276         (WebInspector.ConsoleView.createFilterElement):
277         (WebInspector.ConsoleView):
278         (WebInspector.ConsoleView.prototype._updateFilter):
279         (WebInspector.ConsoleView.prototype.filter):
280         (WebInspector.ConsoleView.prototype.attach):
281         * inspector/front-end/inspector.css:
282         * inspector/front-end/inspector.html:
283
284 2009-09-11  Yusuke Sato  <yusukes@chromium.org>
285
286         Reviewed by Darin Fisher.
287
288         [Chromium] Complex text doesn't show up with text stroking
289         https://bugs.webkit.org/show_bug.cgi?id=28707
290
291         Added extra NULL checks for HDC. This is the second fix for issue 28707,
292         and the fix is similar to http://trac.webkit.org/changeset/45482.
293
294         * platform/graphics/chromium/FontChromiumWin.cpp:
295         (WebCore::Font::drawComplexText):
296         * platform/graphics/chromium/UniscribeHelper.cpp:
297         (WebCore::UniscribeHelper::draw):
298
299 2009-09-11  Cameron McCormack  <cam@mcc.id.au>
300
301         Reviewed by Eric Seidel.
302
303         Make ElementTimeControl methods return void and not throw.
304         https://bugs.webkit.org/show_bug.cgi?id=28831
305
306         SVG 1.1 erratum:
307         http://www.w3.org/2003/01/REC-SVG11-20030114-errata#elementtimecontrol-interface
308
309         Test: svg/dom/smil-methods.svg
310
311         * svg/ElementTimeControl.h: Change return type from bool to void and remove exception argument.
312         * svg/ElementTimeControl.idl: Change return type from bool to void and remove raises claus.
313         * svg/SVGAnimationElement.cpp:
314         (WebCore::SVGAnimationElement::beginElement): Change return type from bool to void and remove exception argument.
315         (WebCore::SVGAnimationElement::beginElementAt): Ditto.
316         (WebCore::SVGAnimationElement::endElement): Ditto.
317         (WebCore::SVGAnimationElement::endElementAt): Ditto.
318         * svg/SVGAnimationElement.h: Ditto.
319
320 2009-09-11  Chris Marrin  <cmarrin@apple.com>
321
322         Reviewed by Oliver Hunt.
323
324         Added support for texImage2D which takes CanvasArray
325         https://bugs.webkit.org/show_bug.cgi?id=29191
326
327         * bindings/js/JSCanvasRenderingContext3DCustom.cpp:
328         (WebCore::JSCanvasRenderingContext3D::texImage2D):
329         * platform/graphics/mac/GraphicsContext3DMac.cpp:
330         (WebCore::GraphicsContext3D::texImage2D):
331
332 2009-09-11  Steve Falkenburg  <sfalken@apple.com>
333
334         Reviewed by Darin Adler.
335
336         Allow WebKit clients to opt out of high resolution timers on Windows.
337         https://bugs.webkit.org/show_bug.cgi?id=29192
338
339         * page/Settings.cpp:
340         (WebCore::Settings::setShouldUseHighResolutionTimers): Added.
341         * page/Settings.h: Added getter/setter for shouldUseHighResolutionTimers.
342         (WebCore::Settings::shouldUseHighResolutionTimers): Added.
343         * platform/win/SharedTimerWin.cpp:
344         (WebCore::setSharedTimerFireTime): Don't run high resolution timer code if it is disabled.
345
346 2009-09-11  Christian Plesner Hansen  <christian.plesner.hansen@gmail.com>
347
348         Reviewed by Adam Barth.
349
350         [v8] Share persistent context handles between events        
351         Change events to use a single ref-counted shared persistent handle
352         to the context in which to run, rather than create a new
353         persistent handle for each new event which puts pressure on the
354         gc.
355         
356         https://bugs.webkit.org/show_bug.cgi?id=29077
357
358         * bindings/v8/ScheduledAction.cpp:
359         (WebCore::ScheduledAction::execute):
360         * bindings/v8/SharedPersistent.h: Added.
361         (WebCore::SharedPersistent::set):
362         (WebCore::SharedPersistent::get):
363         (WebCore::SharedPersistent::disposeHandle):
364         (WebCore::SharedPersistent::create):
365         (WebCore::SharedPersistent::SharedPersistent):
366         * bindings/v8/V8AbstractEventListener.cpp:
367         (WebCore::V8AbstractEventListener::V8AbstractEventListener):
368         (WebCore::V8AbstractEventListener::handleEvent):
369         * bindings/v8/V8AbstractEventListener.h:
370         * bindings/v8/V8IsolatedWorld.cpp:
371         (WebCore::V8IsolatedWorld::V8IsolatedWorld):
372         (WebCore::V8IsolatedWorld::~V8IsolatedWorld):
373         * bindings/v8/V8IsolatedWorld.h:
374         (WebCore::V8IsolatedWorld::context):
375         (WebCore::V8IsolatedWorld::shared_context):
376         * bindings/v8/V8Proxy.cpp:
377         (WebCore::V8Proxy::evaluateInNewContext):
378         (WebCore::V8Proxy::createWrapperFromCacheSlowCase):
379         (WebCore::V8Proxy::isContextInitialized):
380         (WebCore::V8Proxy::updateDocumentWrapperCache):
381         (WebCore::V8Proxy::clearDocumentWrapperCache):
382         (WebCore::V8Proxy::disposeContextHandles):
383         (WebCore::V8Proxy::clearForClose):
384         (WebCore::V8Proxy::clearForNavigation):
385         (WebCore::V8Proxy::setSecurityToken):
386         (WebCore::V8Proxy::updateDocument):
387         (WebCore::V8Proxy::initContextIfNeeded):
388         (WebCore::V8Proxy::shared_context):
389         (WebCore::V8Proxy::mainWorldContext):
390         (WebCore::V8Proxy::setContextDebugId):
391         * bindings/v8/V8Proxy.h:
392         (WebCore::V8Proxy::V8Proxy):
393         (WebCore::V8Proxy::context):
394         (WebCore::V8Proxy::shared_context):
395
396 2009-09-11  Anton Muhin  <antonm@chromium.org>
397
398         Reviewed by David Levin.
399
400         Create a real handle (one which would save an object from GC).
401         https://bugs.webkit.org/show_bug.cgi?id=29150
402
403         * bindings/v8/V8Binding.cpp:
404         (WebCore::v8ExternalString):
405
406 2009-09-11  Anton Muhin  <antonm@chromium.org>
407
408         Reviewed by David Levin.
409
410         Inline WebCore::v8String as it only invokes WebCore::v8ExternalString.
411         https://bugs.webkit.org/show_bug.cgi?id=29152
412
413         * bindings/v8/V8Binding.cpp:
414         * bindings/v8/V8Binding.h:
415         (WebCore::v8String):
416
417 2009-09-11  Ariya Hidayat  <ariya.hidayat@nokia.com>
418
419         Reviewed by Simon Hausmann.
420
421         Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
422         renaming.
423
424         * ChangeLog-2009-06-16:
425
426 2009-09-11  Thiago Macieira  <thiago.macieira@nokia.com>
427
428         Reviewed by Simon Hausmann.
429
430         Use LIBS_PRIVATE on Qt/Mac.
431
432         On the Mac, it means "-framework ApplicationServices -framework Carbon
433         -framework AppKit" are no longer part of the default LIBS in Qt
434         applications. This required a lot of fixes where we used Mac-specific
435         code in Qt.
436
437         * WebCore.pro:
438
439 2009-09-11  Cameron McCormack  <cam@mcc.id.au>
440
441         Reviewed by Eric Seidel.
442
443         Remove duplicated WK_{u,l}cfirst subs from CodeGeneratorV8.pm
444         https://bugs.webkit.org/show_bug.cgi?id=29165
445
446         * bindings/scripts/CodeGeneratorV8.pm: Remove WK_ucfirst and
447         WK_lcfirst, and call the ones in CodeGenerator.pm instead.
448
449 2009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>
450
451         Reviewed by Darin Adler.
452
453         https://bugs.webkit.org/show_bug.cgi?id=29132
454         Symbian winscw compiler fails compiling WebCore/text/RegularExpression.cpp.
455
456         Add RegularExpression class qualifier before Private.
457
458         * platform/text/RegularExpression.cpp:
459
460 2009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>
461
462         Reviewed by Darin Adler.
463
464         https://bugs.webkit.org/show_bug.cgi?id=29131
465         Use a different variadic macro format for Symbian compiler.
466         
467         Use arg... instead of ellipsis in variadic macro.        
468
469         * platform/StaticConstructors.h:
470
471 2009-09-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
472
473         Reviewed by Simon Hausmann.
474
475         https://bugs.webkit.org/show_bug.cgi?id=28806
476
477         [Qt] Make the WebInspector available as a QWidget.
478
479         * WebCore.pro:
480
481 2009-09-11  Simon Hausmann  <simon.hausmann@nokia.com>
482
483         Unreviewed fix for the Web Inspector with the Qt build.
484
485         Re-generate the Qt resource file by running
486         WebKitTools/Scripts/generate-qt-inspector-resource
487
488         * inspector/front-end/WebKit.qrc:
489
490 2009-09-11  Simon Hausmann  <simon.hausmann@nokia.com>
491
492         Fix the Qt build, remove stray semicolon from function definition.
493
494         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
495         (WebCore::MediaPlayerPrivate::buffered):
496
497 2009-09-10  Adam Barth  <abarth@webkit.org>
498
499         Reviewed by Sam Weinig.
500
501         Detect mixed content
502         https://bugs.webkit.org/show_bug.cgi?id=29003
503
504         Detect some basic kinds of mixed content (HTTP content loaded into an
505         HTTPS context).  This new detection logic isn't perfect, but it's a
506         place to start.
507
508         Tests: http/tests/security/mixedContent/about-blank-iframe-in-main-frame.html
509                http/tests/security/mixedContent/data-url-iframe-in-main-frame.html
510                http/tests/security/mixedContent/data-url-script-in-iframe.html
511                http/tests/security/mixedContent/insecure-css-in-iframe.html
512                http/tests/security/mixedContent/insecure-css-in-main-frame.html
513                http/tests/security/mixedContent/insecure-iframe-in-iframe.html
514                http/tests/security/mixedContent/insecure-iframe-in-main-frame.html
515                http/tests/security/mixedContent/insecure-image-in-iframe.html
516                http/tests/security/mixedContent/insecure-image-in-main-frame.html
517                http/tests/security/mixedContent/insecure-script-in-iframe.html
518                http/tests/security/mixedContent/redirect-http-to-https-iframe-in-main-frame.html
519                http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html
520                http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html
521                http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
522
523         * loader/DocLoader.cpp:
524         (WebCore::DocLoader::canRequest):
525         (WebCore::DocLoader::requestResource):
526         (WebCore::DocLoader::checkCacheObjectStatus):
527         * loader/FrameLoader.cpp:
528         (WebCore::FrameLoader::isMixedContent):
529         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
530         (WebCore::FrameLoader::checkIfRunInsecureContent):
531         * loader/FrameLoader.h:
532         * loader/MainResourceLoader.cpp:
533         (WebCore::MainResourceLoader::willSendRequest):
534
535 2009-09-10  Mark Rowe  <mrowe@apple.com>
536
537         Fix the Windows build.
538
539         Restore platform/mock to the header search path after it was removed in r48270.
540
541         * WebCore.vcproj/WebCoreCommon.vsprops:
542
543 2009-09-08  Timothy Hatcher  <timothy@apple.com>
544
545         Web Inspector: Move the option to create a new style rule under the Styles' gear menu.
546
547         https://bugs.webkit.org/show_bug.cgi?id=29039
548
549         Reviewed by Sam Weinig.
550
551         * inspector/front-end/StylesSidebarPane.js:
552         (WebInspector.StylesSidebarPane): Add "New Style Rule" option to the gear menu.
553         (WebInspector.StylesSidebarPane.prototype._update): Check instanceof BlankStylePropertiesSection instead.
554         (WebInspector.StylesSidebarPane.prototype._changeSetting): Added. Keeps the color format setting selected
555         while calling the correct action.
556         (WebInspector.StylesSidebarPane.prototype._createNewRule): Creates a new section and edits the selector.
557         (WebInspector.StylesSidebarPane.prototype.addBlankSection): Insert the section in a cleaner way.
558         (WebInspector.StylesSidebarPane.prototype.removeSection): Added. Removes the passed in section.
559         (WebInspector.StylesSidebarPane.prototype.appropriateSelectorForNode): Return an empty string if there is no node.
560         (WebInspector.StylePropertiesSection.prototype.expand): Removed the check for _blank.
561         (WebInspector.StylePropertiesSection.prototype.startEditingSelector): No need for the context, the original selector
562         is remembered by the editing code.
563         (WebInspector.StylePropertiesSection.prototype.editingSelectorCancelled): Do nothing. The original text is already
564         restored by the editing code.
565         (WebInspector.BlankStylePropertiesSection): Call the StylePropertiesSection constructor with appropriate data.
566         Remove event listener code.
567         (WebInspector.BlankStylePropertiesSection.prototype.expand): Added. Does nothing to prevent expanding.
568         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.callback): Correctly construct the
569         WebInspector.CSSStyleDeclaration. Call editingSelectorCancelled instead of editingCancelled.
570         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted): Renamed from editingCommitted to
571         override the base class.
572         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCancelled): Remove the section.
573         (WebInspector.BlankStylePropertiesSection.prototype.makeNormal): Removed event listener code. Removed the delete lines
574         since they were doing nothing (deleting nonexistent properties that exist only on the prototype.) Change prototypes at
575         the end to correctly swtich to a real StylePropertiesSection.
576         * inspector/front-end/inspector.js:
577         (WebInspector.startEditing.editingCancelled): Ceck for null/undefined callbacks.
578         (WebInspector.startEditing.editingCommitted): Ditto.
579
580 2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
581
582         Reviewed by Eric Seidel.
583
584         [Qt] Fix comparison between signed and unsigned integer warnings
585         https://bugs.webkit.org/show_bug.cgi?id=29162
586
587         No functional change.
588
589         * bridge/qt/qt_runtime.cpp:
590         (JSC::Bindings::findMethodIndex):
591         * platform/MIMETypeRegistry.cpp:
592         (WebCore::initializeSupportedImageMIMETypes):
593         (WebCore::initializeSupportedImageMIMETypesForEncoding):
594         * platform/graphics/qt/GraphicsContextQt.cpp:
595         (WebCore::GraphicsContext::drawFocusRing):
596         * platform/graphics/qt/ImageDecoderQt.cpp:
597         (WebCore::ImageDecoderQt::duration):
598         (WebCore::ImageDecoderQt::imageAtIndex):
599         * plugins/qt/PluginPackageQt.cpp:
600         (WebCore::PluginPackage::fetchInfo):
601
602 2009-09-10  Martin Robinson  <martin.james.robinson@gmail.com>
603
604         Reviewed by Gustavo Noronha.
605
606         Build fix for GTK+ after r48267.
607
608         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
609         (WebCore::MediaPlayerPrivate::buffered):
610
611 2009-09-08  John Abd-El-Malek  <jam@chromium.org>
612
613         Reviewed by Dimitri Glazkov.
614
615         Remove unneeded define for ActiveX.
616         https://bugs.webkit.org/show_bug.cgi?id=29054
617
618         * rendering/RenderPartObject.cpp:
619         (WebCore::createClassIdToTypeMap):
620         (WebCore::serviceTypeForClassId):
621         (WebCore::RenderPartObject::updateWidget):
622
623 2009-09-10  Mark Rowe  <mrowe@apple.com>
624
625         Rubber-stamped by Sam Weinig.
626
627         Don't copy IDL files in to the built framework.
628
629         * WebCore.xcodeproj/project.pbxproj:
630
631 2009-09-10  Xiaomei Ji  <xji@chromium.org>
632
633         Reviewed by Eric Seidel.
634
635         Implment Range.expand().
636         https://bugs.webkit.org/show_bug.cgi?id=27632
637
638         Test: fast/dom/Range/range-expand.html
639
640         * dom/Range.cpp:
641         (WebCore::Range::expand):
642         * dom/Range.h:
643         * dom/Range.idl:
644
645 2009-09-10  Fumitoshi Ukai  <ukai@chromium.org>
646
647         Reviewed by Alexey Proskuryakov.
648
649         WebSocket API implementation.
650         https://bugs.webkit.org/show_bug.cgi?id=28038
651         
652         Add build systems for GNUmakefile.am, WebCore.xcodeproj and
653         WebCore.vcproj.
654         Add websockets directory and WebSocket.idl in qt build system.
655         Tests will be landed once the code is completed and functional.
656
657         * DerivedSources.cpp:
658         * GNUmakefile.am:
659         * WebCore.pro:
660         * WebCore.vcproj/WebCore.vcproj:
661         * WebCore.vcproj/WebCoreCommon.vsprops:
662         * WebCore.xcodeproj/project.pbxproj:
663         * bindings/js/JSDOMWindowCustom.cpp:
664         (WebCore::JSDOMWindow::webSocket):
665         * bindings/js/JSEventTarget.cpp:
666         (WebCore::toJS):
667         (WebCore::toEventTarget):
668         * dom/EventTarget.cpp:
669         (WebCore::EventTarget::toWebSocket):
670         * dom/EventTarget.h:
671         * page/DOMWindow.idl:
672         * websockets/WebSocket.cpp:
673         (WebCore::ProcessWebSocketEventTask::create):
674         (WebCore::ProcessWebSocketEventTask::performTask):
675         (WebCore::ProcessWebSocketEventTask::ProcessWebSocketEventTask):
676         (WebCore::isValidProtocolString):
677         (WebCore::WebSocket::connect):
678         (WebCore::WebSocket::send):
679         (WebCore::WebSocket::close):
680         (WebCore::WebSocket::bufferedAmount):
681         (WebCore::WebSocket::addEventListener):
682         (WebCore::WebSocket::removeEventListener):
683         (WebCore::WebSocket::dispatchEvent):
684         (WebCore::WebSocket::didConnect):
685         (WebCore::WebSocket::didReceiveMessage):
686         (WebCore::WebSocket::didClose):
687         (WebCore::WebSocket::dispatchOpenEvent):
688         (WebCore::WebSocket::dispatchMessageEvent):
689         (WebCore::WebSocket::dispatchCloseEvent):
690         * websockets/WebSocket.h:
691         (WebCore::WebSocket::create):
692         (WebCore::WebSocket::):
693         (WebCore::WebSocket::setOnopen):
694         (WebCore::WebSocket::onopen):
695         (WebCore::WebSocket::setOnmessage):
696         (WebCore::WebSocket::onmessage):
697         (WebCore::WebSocket::setOnclose):
698         (WebCore::WebSocket::onclose):
699         (WebCore::WebSocket::toWebSocket):
700         (WebCore::WebSocket::eventListeners):
701         (WebCore::WebSocket::refEventTarget):
702         (WebCore::WebSocket::derefEventTarget):
703         * websockets/WebSocketChannel.cpp: Added.
704         * websockets/WebSocketChannel.h: Added.
705         * websockets/WebSocketChannelClient.h: Added.
706         * websockets/WebSocketHandshake.cpp: Added.
707         * websockets/WebSocketHandshake.h: Added.
708
709 2009-09-10  Albert J. Wong  <ajwong@chromium.org>
710
711         No review, windows build fix only.
712         
713         Spurious semicolon causing parse error in chromium build on windows.
714
715         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
716         (WebCore::MediaPlayerPrivate::buffered):
717
718 2009-09-10  Albert J. Wong  <ajwong@chromium.org>
719
720         No review, build fix only.
721
722         Adding in a missed include from the last patch that is breaking the
723         chromium build.
724
725         * rendering/RenderThemeChromiumMac.mm: include TimeRanges.h
726
727 2009-09-10  Alpha Lam  <hclam@chromium.org>
728
729         Reviewed by Eric Carlson.
730
731         HTMLMediaElement buffered attribute should report a list of time ranges
732         https://bugs.webkit.org/show_bug.cgi?id=29041
733
734         Changed MediaPlayerPrivateInterface and MediaPlayer's definition to
735         report a list of buffered time ranges as WebCore::TimeRanges. This
736         change also got rid of the maxTimeBuffered() method.
737
738         No new tests since this is a API change.
739
740         * html/HTMLMediaElement.cpp:
741         (WebCore::HTMLMediaElement::percentLoaded):
742         Use MediaPlaier::buffered() instead of maxTimeBuffered().
743         (WebCore::HTMLMediaElement::buffered):
744         ditto.
745         * platform/graphics/MediaPlayer.cpp:
746         (WebCore::NullMediaPlayerPrivate::buffered):
747         Use MediaPlayerPrivateInterface::buffered() instead of maxTimeBuffered().
748         (WebCore::MediaPlayer::buffered):
749         ditto.
750         * platform/graphics/MediaPlayer.h:
751         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
752         * platform/graphics/MediaPlayerPrivate.h:
753         ditto.
754         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
755         Implements PassRefPtr<TimeRanges> buffered();
756         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
757         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
758         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
759         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
760         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
761         (WebCore::MediaPlayerPrivate::buffered):
762         Implementation of buffered().
763         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
764         Implements PassRefPtr<TimeRanegs> buffered().
765         * platform/graphics/qt/MediaPlayerPrivatePhonon.h:
766         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
767         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
768         Implements PassRefPtr<TimeRanges> buffered().
769         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
770         Removed maxTimeBuffered() and defines PassRefPtr<TimeRanges> buffered().
771         * platform/graphics/wince/MediaPlayerPrivateWince.h:
772         ditto.
773         * rendering/RenderThemeChromiumMac.mm:
774         (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack):
775         Use buffered() instead of maxTimeBuffered().
776         * rendering/RenderThemeChromiumSkia.cpp:
777         ditto.
778         * rendering/RenderThemeMac.mm:
779         (WebCore::RenderThemeMac::paintMediaSliderTrack):
780         ditto.
781
782 2009-09-10  Cameron McCormack  <cam@mcc.id.au>
783
784         Reviewed by Eric Seidel.
785
786         Make bindings generators more aware of IDL dependencies
787         https://bugs.webkit.org/show_bug.cgi?id=29114
788
789         Make the JS and ObjC bindings generators able to output dependency
790         rules for DerivedSources.make to consume.  These rules make a given
791         generated binding class file header, JSWhatever.h, depend on Whatever's
792         ancestor interfaces.
793
794         * DerivedSources.make: Pass --write-dependencies to generate-bindings.pl
795         when generating JS and ObjC bindings.  Include dependency fies that are
796         generated due to that.
797         * bindings/scripts/CodeGenerator.pm: Make
798         AddMethodsConstantsAndAttributesFromParentClasses accumulate a list of
799         the ancestor interfaces that were visited.
800         * bindings/scripts/CodeGeneratorJS.pm: Optionally write out a dependency
801         file.
802         * bindings/scripts/CodeGeneratorObjC.pm: Ditto.
803         * bindings/scripts/generate-bindings.pl: Add a --write-dependencies
804         option.
805
806 2009-09-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
807
808         Reviewed by Xan Lopez and Dan Winship.
809
810         Give all requests to libsoup, to let it queue, and schedule them
811         itself, instead of throttling the number of requests in WebCore.
812
813         * platform/network/ResourceRequestBase.cpp:
814         * platform/network/soup/ResourceRequestSoup.cpp:
815         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
816
817 2009-09-10  Jian Li  <jianli@chromium.org>
818
819         Reviewed by Eric Seidel.
820
821         [V8] Make XMLHttpRequest.send handle File object.
822         https://bugs.webkit.org/show_bug.cgi?id=28924
823
824         Test: http/tests/local/send-dragged-file.html
825
826         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
827         (WebCore::CALLBACK_FUNC_DECL):
828
829 2009-09-10  Zoltan Horvath  <zoltan@webkit.org>
830
831         Reviewed by Darin Adler.
832
833         Use fastNew and fastDelete instead of operator new and delete for CSSSelector class. 
834         https://bugs.webkit.org/show_bug.cgi?id=25930
835
836         Change using of operator new to fastNew and operator delete to
837         fastDeleteSkippingDestructor for CSSSelector class to avoid mismatched function call.
838
839         This change fixes valgrind's 'mismatched free' notification.
840
841         * css/CSSParser.cpp:
842         (WebCore::CSSParser::~CSSParser):
843         (WebCore::CSSParser::createFloatingSelector):
844         * css/CSSSelectorList.cpp:
845         (WebCore::CSSSelectorList::adoptSelectorVector):
846
847 2009-09-10  Steve Block  <steveblock@google.com>
848
849         Reviewed by Darin Adler.
850
851         Geolocation does not correctly handle reentrant calls from callbacks.
852         https://bugs.webkit.org/show_bug.cgi?id=29040
853
854         Tests: fast/dom/Geolocation/reentrant-error.html
855                fast/dom/Geolocation/reentrant-success.html
856
857         * page/Geolocation.cpp: Modified.
858         (WebCore::Geolocation::handleError): Modified. Call sendError directly, clearing notifier lists before making callback.
859         (WebCore::Geolocation::makeSuccessCallbacks): Modified. Call sendPosition directly, clearing notifier lists before making callback.
860         * page/Geolocation.h: Modified. Deleted sendErrorToXX and sendPositionToXXX methods.
861
862 2009-09-10  Erik Arvidsson  <arv@chromium.org>
863
864         Reviewed by Eric Seidel.
865
866         Fixes issue where focused elements did not get blur and focus events when the window was blurred and focused.
867         https://bugs.webkit.org/show_bug.cgi?id=27105
868
869         Test: fast/events/blur-focus-window-should-blur-focus-element.html
870
871         * page/FocusController.cpp:
872         (WebCore::dispatchEventsOnWindowAndFocusedNode):
873         (WebCore::FocusController::setFocused):
874         (WebCore::FocusController::setActive):
875
876 2009-09-10  Adam Roben  <aroben@apple.com>
877
878         Make the play/pause button in <video> controls indicate the button's
879         action, not the movie state
880
881         This matches the Mac behavior, iTunes, and many other media players.
882
883         No test possible.
884
885         Fixes <http://webkit.org/b/29126> Play/pause button in <video>
886         controls shows the wrong image
887
888         Reviewed by Eric Carlson.
889
890         * rendering/RenderMediaControls.cpp:
891         (WebCore::RenderMediaControls::paintMediaControlsPart): Reversed when
892         we show the play vs. pause artwork, so that the button reflects what
893         will happen when you click it, rather than the current state of the
894         movie.
895
896 2009-09-09  Steve Block  <steveblock@google.com>
897
898         Reviewed by Maciej Stachowiak.
899
900         Geolocation Coordinates::toString() prints bogus values for unspecified properties.
901         https://bugs.webkit.org/show_bug.cgi?id=29080
902
903         Test: fast/dom/Geolocation/position-string.html
904
905         * GNUmakefile.am: Modified. Removes Geoposition.cpp and Coordinates.cpp.
906         * WebCore.gypi: Modified. Removes Geoposition.cpp and Coordinates.cpp.
907         * WebCore.pro: Modified. Removes Geoposition.cpp and Coordinates.cpp.
908         * WebCore.vcproj/WebCore.vcproj: Modified. Removes Geoposition.cpp and Coordinates.cpp.
909         * WebCore.xcodeproj/project.pbxproj: Modified. Removes Geoposition.cpp and Coordinates.cpp.
910         * WebCoreSources.bkl: Modified. Removes Geoposition.cpp and Coordinates.cpp.
911         * page/Coordinates.cpp: Removed.
912         * page/Coordinates.h: Modified. Removes toString method.
913         * page/Coordinates.idl: Modified. Removes toString method.
914         * page/Geoposition.cpp: Removed.
915         * page/Geoposition.h: Modified. Removes toString method.
916         * page/Geoposition.idl: Modified. Removes toString method.
917
918 2009-09-09  Steve Block  <steveblock@google.com>
919
920         Reviewed by Adam Barth.
921
922         Correctly applies the Geolocation timeout property.
923         https://bugs.webkit.org/show_bug.cgi?id=27256
924
925         If a timeout is specified, the timer is started as soon as the location acquistion process starts.
926         If a position fix is not obtained within the timeout interval, the position request is cancelled
927         and the error callback (if specified) is invoked. If a position fix is obtained within the timeout
928         interval, the timer is stopped. Permissions are then requested from the user if required. See
929         http://www.w3.org/TR/geolocation-API/#position-options.
930
931         Note that this logic means that the time required to obtain permissions from the user is not
932         included in the timeout interval.
933
934         Tests: fast/dom/Geolocation/timeout.html
935                fast/dom/Geolocation/timeout-zero.html
936
937         * page/Geolocation.cpp: Modified.
938         (WebCore::Geolocation::GeoNotifier::GeoNotifier): Modified. Takes Geolocation object as parameter.
939         (WebCore::Geolocation::GeoNotifier::hasZeroTimeout): Added. Determines whether this request has a zero timeout.
940         (WebCore::Geolocation::GeoNotifier::startTimerIfNeeded): Renamed from startTimer. Starts the timer if a timeout was specified.
941         (WebCore::Geolocation::GeoNotifier::timerFired): Modified. Calls the error callback if specified, and reports the timeout to the Geolocation object.
942         (WebCore::Geolocation::getCurrentPosition): Modified. Calls maybeStartTimer when starting the location acquisition process.
943         (WebCore::Geolocation::watchPosition): Modified. Calls maybeStartTimer when starting the location acquisition process.
944         (WebCore::Geolocation::requestTimedOut): Added. Cancels a request when it times out.
945         (WebCore::Geolocation::setIsAllowed): Modified. No longer starts timers.
946         (WebCore::Geolocation::sendPosition): Modified. No longer stops timers.
947         (WebCore::Geolocation::stopTimer): Added. Stops the timers for a vector of notifiers.
948         (WebCore::Geolocation::stopTimersForOneShots): Added. Stops the timers for all one-shots.
949         (WebCore::Geolocation::stopTimersForWatchers): Added. Stops the timers for all watchers.
950         (WebCore::Geolocation::stopTimers): Added. Stops the timers for all requests.
951         (WebCore::Geolocation::geolocationServicePositionChanged): Modfified. Stops the timers for all requests.
952         * page/Geolocation.h: Modified.
953         (WebCore::Geolocation::GeoNotifier::create): Modified. Takes Geolocation object as parameter.
954
955 2009-09-09  Chris Fleizach  <cfleizach@apple.com>
956
957         AX notifications should be an ENUM type instead of strings
958         https://bugs.webkit.org/show_bug.cgi?id=28963
959
960         Build fix for Qt.
961
962         * accessibility/AXObjectCache.h:
963         (WebCore::AXObjectCache::postNotification):
964         (WebCore::AXObjectCache::postPlatformNotification):
965
966 2009-09-08  Chris Fleizach  <cfleizach@apple.com>
967
968         Reviewed by Darin Adler.
969
970         AX notifications should be an ENUM type instead of strings
971         https://bugs.webkit.org/show_bug.cgi?id=28963
972
973         Moves AX notifications over to an ENUM type instead of
974         using the actual string values that are used on OS X.
975
976         * accessibility/AXObjectCache.cpp:
977         (WebCore::AXObjectCache::postNotification):
978         (WebCore::AXObjectCache::selectedChildrenChanged):
979         * accessibility/AXObjectCache.h:
980         (WebCore::AXObjectCache::):
981         * accessibility/AccessibilityRenderObject.cpp:
982         (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
983         * accessibility/chromium/AXObjectCacheChromium.cpp:
984         (WebCore::AXObjectCache::postPlatformNotification):
985         * accessibility/gtk/AXObjectCacheAtk.cpp:
986         (WebCore::AXObjectCache::postPlatformNotification):
987         * accessibility/mac/AXObjectCacheMac.mm:
988         (WebCore::AXObjectCache::postPlatformNotification):
989         * accessibility/win/AXObjectCacheWin.cpp:
990         (WebCore::AXObjectCache::postPlatformNotification):
991         * dom/Document.cpp:
992         (WebCore::Document::implicitClose):
993         * dom/Element.cpp:
994         (WebCore::Element::updateAfterAttributeChanged):
995         * editing/Editor.cpp:
996         (WebCore::Editor::respondToChangedContents):
997         * editing/mac/SelectionControllerMac.mm:
998         (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
999         * html/HTMLInputElement.cpp:
1000         (WebCore::HTMLInputElement::setChecked):
1001         * page/FrameView.cpp:
1002         (WebCore::FrameView::layout):
1003         * rendering/RenderTextControl.cpp:
1004         (WebCore::RenderTextControl::setInnerTextValue):
1005
1006 2009-09-08  Adam Barth  <abarth@webkit.org>
1007
1008         Reviewed by Eric Seidel.
1009
1010         Missing checkout for getSVGDocument()
1011         https://bugs.webkit.org/show_bug.cgi?id=29064
1012
1013         The V8 code generator didn't understand SVGCheckSecurityDocument.
1014
1015         Tests: http/tests/security/xss-DENIED-getSVGDocument-iframe.html
1016                http/tests/security/xss-DENIED-getSVGDocument-object.html
1017
1018         * bindings/scripts/CodeGeneratorV8.pm:
1019
1020 2009-09-09  Cameron McCormack  <cam@mcc.id.au>
1021
1022         Reviewed by Eric Seidel.
1023
1024         Make SVGStyleElement inherit from SVGLangSpace
1025         https://bugs.webkit.org/show_bug.cgi?id=29058
1026
1027         Required by SVG 1.1 Second Edition:
1028         http://dev.w3.org/SVG/profiles/1.1F2/publish/styling.html#InterfaceSVGStyleElement
1029
1030         Test: svg/dom/SVGStyleElement/style-langspace.html
1031
1032         * svg/SVGStyleElement.cpp: Drop methods xmlspace and setXmlspace.
1033         (WebCore::SVGStyleElement::SVGStyleElement): Add SVGLangSpace()
1034         initializer.
1035         (WebCore::SVGStyleElement::parseMappedAttribute): Call
1036         parseMappedAttribute on SVGLangSpace.
1037         * svg/SVGStyleElement.h: Drop xmlspace and setXmlspace declarations.
1038         * svg/SVGStyleElement.idl: Drop xmlspace attribute and add SVGLangSpace
1039         as a superinterface.
1040
1041 2009-09-09  Nate Chapin  <japhet@chromium.org>
1042
1043         Reviewed by David Levin.
1044
1045         Remove unnecessary includes and forward declarations in V8Proxy.h
1046
1047         https://bugs.webkit.org/show_bug.cgi?id=29111
1048
1049         * bindings/v8/V8Proxy.h:
1050
1051 2009-07-30  Eric Seidel  <eric@webkit.org>
1052
1053         Reviewed by Adam Barth.
1054
1055         Add more position constructors
1056         positionBeforeNode, positionAfterNode
1057         firstPositionInNode, lastPositionInNode
1058         https://bugs.webkit.org/show_bug.cgi?id=25494
1059
1060         I also added a lastOffsetInNode and deployed it to a couple places.
1061
1062         There are no callers to these new constructors yet, but those
1063         will be coming in future patches.
1064
1065         * dom/Position.cpp:
1066         (WebCore::Position::computeOffsetInContainerNode):
1067         * dom/Position.h:
1068         (WebCore::positionBeforeNode):
1069         (WebCore::positionAfterNode):
1070         (WebCore::lastOffsetInNode):
1071         (WebCore::firstPositionInNode):
1072         (WebCore::lastPositionInNode):
1073         * editing/ApplyStyleCommand.cpp:
1074         * editing/TextIterator.cpp:
1075         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
1076         * editing/htmlediting.cpp:
1077         (WebCore::lastOffsetForEditing):
1078
1079 2009-04-30  Eric Seidel  <eric@webkit.org>
1080
1081         Reviewed by Adam Barth.
1082
1083         Rename positionBeforeNode to positionInParentBeforeNode
1084         and positionAfterNode to positionInParentAfterNode
1085         in preparation for adding a positionBeforeNode
1086         which returns a neighbor-anchored position.
1087         https://bugs.webkit.org/show_bug.cgi?id=25494
1088
1089         No functional changes, thus no tests.
1090
1091         * dom/PositionConstructors.h:
1092         (WebCore::positionInParentBeforeNode):
1093         (WebCore::positionInParentAfterNode):
1094         * dom/PositionIterator.cpp:
1095         (WebCore::PositionIterator::operator Position):
1096         * editing/ApplyStyleCommand.cpp:
1097         (WebCore::ApplyStyleCommand::applyInlineStyle):
1098         * editing/CompositeEditCommand.cpp:
1099         (WebCore::CompositeEditCommand::positionOutsideTabSpan):
1100         (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
1101         (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
1102         * editing/CreateLinkCommand.cpp:
1103         (WebCore::CreateLinkCommand::doApply):
1104         * editing/DeleteButtonController.cpp:
1105         (WebCore::DeleteButtonController::deleteTarget):
1106         * editing/DeleteSelectionCommand.cpp:
1107         (WebCore::DeleteSelectionCommand::initializeStartEnd):
1108         (WebCore::updatePositionForNodeRemoval):
1109         * editing/InsertLineBreakCommand.cpp:
1110         (WebCore::InsertLineBreakCommand::doApply):
1111         * editing/InsertListCommand.cpp:
1112         (WebCore::InsertListCommand::doApply):
1113         * editing/InsertParagraphSeparatorCommand.cpp:
1114         (WebCore::InsertParagraphSeparatorCommand::doApply):
1115         * editing/InsertTextCommand.cpp:
1116         (WebCore::InsertTextCommand::input):
1117         * editing/ReplaceSelectionCommand.cpp:
1118         (WebCore::ReplaceSelectionCommand::positionAtStartOfInsertedContent):
1119         (WebCore::ReplaceSelectionCommand::doApply):
1120         * editing/VisibleSelection.cpp:
1121         (WebCore::VisibleSelection::adjustSelectionToAvoidCrossingEditingBoundaries):
1122         * editing/htmlediting.cpp:
1123         (WebCore::firstEditablePositionAfterPositionInRoot):
1124         (WebCore::lastEditablePositionBeforePositionInRoot):
1125         (WebCore::rangeCompliantEquivalent):
1126         (WebCore::positionBeforeContainingSpecialElement):
1127         (WebCore::positionAfterContainingSpecialElement):
1128         (WebCore::positionBeforeTabSpan):
1129
1130 2009-04-30  Eric Seidel  <eric@webkit.org>
1131
1132         Reviewed by Adam Barth.
1133
1134         Re-organize position creation functions in preparation for adding more
1135         https://bugs.webkit.org/show_bug.cgi?id=25494
1136
1137         Make position functions inline to avoid ref-churn.
1138         Remove startPosition/endPosition as they were only used in one place.
1139
1140         No functional changes, thus no tests.
1141
1142         * dom/Position.cpp:
1143         * dom/Position.h:
1144         (WebCore::positionBeforeNode):
1145         (WebCore::positionAfterNode):
1146         * editing/SelectionController.cpp:
1147         (WebCore::SelectionController::moveTo):
1148         * editing/TypingCommand.cpp:
1149         * editing/htmlediting.cpp:
1150         * editing/htmlediting.h:
1151         (WebCore::firstDeepEditingPositionForNode):
1152         (WebCore::lastDeepEditingPositionForNode):
1153         * rendering/RenderObject.cpp:
1154
1155 2009-09-09  Kevin Watters  <kevinwatters@gmail.com>
1156
1157         Reviewed by Kevin Ollivier.
1158         
1159         [wx] Add wxSize conversions for IntSize.
1160         https://bugs.webkit.org/show_bug.cgi?id=29104
1161
1162         * platform/graphics/IntSize.h:
1163         * platform/graphics/wx/IntSizeWx.cpp: Added.
1164         (WebCore::IntSize::IntSize):
1165         (WebCore::IntSize::operator wxSize):
1166
1167 2009-09-09  Yaar Schnitman  <yaar@chromium.org>
1168
1169         Reviewed by David Levin.
1170         
1171         Chromium uses its own config.h file that was forked from webkit's config.h.
1172         By merging in Chromium's defines, Chromium would again be able to use webkit's
1173         config.h.
1174
1175         https://bugs.webkit.org/show_bug.cgi?id=28882 
1176
1177         * config.h: Added chromium-specific defines. 
1178
1179 2009-09-09  Jens Alfke  <snej@chromium.org>
1180
1181         Reviewed by Eric Seidel.
1182
1183         Initialize DataTransfer's effectAllowed and dropEffect properties correctly
1184         according to HTML5 spec (sec. 7.9.2-7.9.3).
1185         https://bugs.webkit.org/show_bug.cgi?id=26700
1186         - At the start of a drag operation, the value of effectAllowed should be
1187           the string "uninitialized".
1188         - At end of dragstart handler, if effectAllowed hasn't been set yet, it
1189           should be set to "copy".
1190         - on dragenter and dragover event, dropEffect should be initialized to a
1191           default value based on the value of effectAllowed.
1192         - at end of dragenter and dragover the dropEffect should be set to "none"
1193           if the value set by the handler doesn't match the effectAllowed.
1194         - on dragleave event, dropEffect should be "none".
1195         - on drop event, dropEffect should be the previously negotiated value.
1196
1197         Test: fast/events/drag-dropeffect.html
1198
1199         * WebCore.base.exp:
1200             Added a parameter to EventHandler::dragSourceMovedTo.
1201         * dom/Clipboard.cpp:
1202         (WebCore::Clipboard::Clipboard):
1203             Initialize m_effectAllowed to "uninitialized".
1204         (WebCore::Clipboard::sourceOperation):
1205             Treat "uninitialized" as meaning no value has been set.
1206         * page/DragController.cpp:
1207         (WebCore::DragController::DragController):
1208             Initialize new member m_destinationDragOperation.
1209         (WebCore::DragController::dragExited):
1210             Set m_destinationDragOperation to none on dragExit.
1211         (WebCore::DragController::performDrag):
1212             Set m_destinationDragOperation to current dropEffect.
1213         (WebCore::DragController::dragEnteredOrUpdated):
1214             Make sure to clear the operation if drag source doesn't allow it.
1215         (WebCore::DragController::tryDHTMLDrag):
1216             Set a default value for the dst drag op before sending dragEnter/Over.
1217         (WebCore::DragController::startDrag):
1218             Clear m_destinationDragOperation at start of drag.
1219         * page/DragController.h:
1220         (WebCore::DragController::destinationDragOperation):
1221             Added new member m_destinationDragOperation, and its public getter.
1222         * page/EventHandler.cpp:
1223         (WebCore::EventHandler::updateDragAndDrop):
1224             dropEffect should be 'none' during dropleave handler, per spec.
1225         (WebCore::EventHandler::dragSourceMovedTo):
1226             Added DragOperation parameter, so the handler sees the current dropEffect.
1227         (WebCore::EventHandler::handleDrag):
1228             Assume DragOperationEvery for non-DHTML drags.
1229         * page/EventHandler.h:
1230             Added DragOperation parameter to dragSourceMovedTo().
1231
1232 2009-09-09  Dumitru Daniliuc  <dumi@chromium.org>
1233
1234         Reviewed by Dimitri Glazkov.
1235
1236         1. Adding support/bindings for read-only transactions.
1237         2. Disallowing the SQLITE_*_VIEW and REINDEX operations in the
1238         private browsing mode.
1239         3. Adding an authorizer test.
1240
1241         https://bugs.webkit.org/show_bug.cgi?id=28918
1242
1243         Test: storage/test-authorizer.html
1244
1245         * bindings/js/JSDatabaseCustom.cpp:
1246         (WebCore::createTransaction): Parses all arguments and executes a
1247         transaction.
1248         (WebCore::JSDatabase::transaction): Refactored to use
1249         createTransaction().
1250         (WebCore::JSDatabase::readTransaction): Added to execute read-only
1251         transactions using createTransaction().
1252         * bindings/v8/custom/V8CustomBinding.h: Added the binding for
1253         Database::readTransaction().
1254         * bindings/v8/custom/V8DatabaseCustom.cpp:
1255         (WebCore::createTransaction): Parses all arguments and executes a
1256         transaction.
1257         (WebCore::transaction): Refactored to use createTransaction().
1258         (WebCore::readTransaction): Added to execute read-only
1259         transactions using createTransaction().
1260         * storage/Database.cpp:
1261         (WebCore::Database::transaction): Added support for read-only
1262         transactions.
1263         * storage/Database.h: Added support for read-only transactions.
1264         * storage/Database.idl: Added support for read-only transactions.
1265         * storage/DatabaseAuthorizer.cpp:
1266         (WebCore::DatabaseAuthorizer::createTempTable): Make it obvious
1267         that the statement will be denied in private browsing mode and
1268         read-only transactions.
1269         (WebCore::DatabaseAuthorizer::dropTempTable): Same.
1270         (WebCore::DatabaseAuthorizer::createTempIndex): Same.
1271         (WebCore::DatabaseAuthorizer::dropTempIndex): Same.
1272         (WebCore::DatabaseAuthorizer::createTempTrigger): Same.
1273         (WebCore::DatabaseAuthorizer::dropTempTrigger): Same.
1274         (WebCore::DatabaseAuthorizer::createView): Deny in private
1275         browsing mode and read-only transactions.
1276         (WebCore::DatabaseAuthorizer::createTempView): Same.
1277         (WebCore::DatabaseAuthorizer::dropView): Same.
1278         (WebCore::DatabaseAuthorizer::dropTempView): Same.
1279         (WebCore::DatabaseAuthorizer::allowReindex): Same.
1280         * storage/DatabaseAuthorizer.h:
1281         * storage/SQLTransaction.cpp: Added support for read-only
1282         transactions.
1283         (WebCore::SQLTransaction::create):
1284         (WebCore::SQLTransaction::SQLTransaction):
1285         (WebCore::SQLTransaction::executeSQL):
1286         (WebCore::SQLTransaction::acquireLock):
1287         * storage/SQLTransaction.h:
1288         * storage/SQLTransactionCoordinator.cpp:
1289         (WebCore::SQLTransactionCoordinator::acquireLock): Added a new
1290         parameter in preparation for a change that will allow multiple
1291         read-only transactions on the same DB to run concurrently.
1292         * storage/SQLTransactionCoordinator.h:
1293
1294 2009-09-09  Dave Hyatt  <hyatt@apple.com>
1295
1296         Reviewed by Adam Roben.
1297
1298         https://bugs.webkit.org/show_bug.cgi?id=29102, add support for user stylesheet injection.  This is similar
1299         to user script injection but allows for user stylesheets to be added.  The stylesheets are applied immediately
1300         to all Frames in the PageGroup.
1301
1302         Added userscripts/simple-stylesheet.html test case.
1303
1304         * WebCore.base.exp:
1305         * WebCore.gypi:
1306         * WebCore.vcproj/WebCore.vcproj:
1307         * WebCore.xcodeproj/project.pbxproj:
1308         * css/CSSStyleSelector.cpp:
1309         (WebCore::CSSStyleSelector::CSSStyleSelector):
1310         * css/CSSStyleSelector.h:
1311         * dom/Document.cpp:
1312         (WebCore::Document::Document):
1313         (WebCore::Document::attach):
1314         (WebCore::Document::pageGroupUserSheets):
1315         (WebCore::Document::clearPageGroupUserSheets):
1316         (WebCore::Document::recalcStyleSelector):
1317         * dom/Document.h:
1318         * loader/PlaceholderDocument.cpp:
1319         (WebCore::PlaceholderDocument::attach):
1320         * page/PageGroup.cpp:
1321         (WebCore::PageGroup::addUserStyleSheet):
1322         (WebCore::PageGroup::removeUserContentForWorld):
1323         (WebCore::PageGroup::removeAllUserContent):
1324         * page/PageGroup.h:
1325         (WebCore::PageGroup::userStyleSheets):
1326         * page/UserStyleSheet.h: Added.
1327         (WebCore::UserStyleSheet::UserStyleSheet):
1328         (WebCore::UserStyleSheet::source):
1329         (WebCore::UserStyleSheet::url):
1330         (WebCore::UserStyleSheet::patterns):
1331         (WebCore::UserStyleSheet::worldID):
1332         * page/UserStyleSheetTypes.h: Added.
1333
1334 2009-09-09  Carol Szabo  <carol.szabo@nokia.com>
1335
1336         Reviewed by Ariya Hidayat.
1337
1338         [Qt] CSS Style -webkit-box-shadow is not rendered correctly on
1339         Qt platform
1340         https://bugs.webkit.org/show_bug.cgi?id=23291
1341
1342         * platform/graphics/qt/GraphicsContextQt.cpp:
1343         (WebCore::GraphicsContext::drawRect):
1344         (WebCore::GraphicsContext::strokeArc):
1345         (WebCore::GraphicsContext::drawConvexPolygon):
1346         (WebCore::GraphicsContext::fillPath):
1347         (WebCore::GraphicsContext::strokePath):
1348         (WebCore::GraphicsContext::fillRect):
1349         (WebCore::GraphicsContext::fillRoundedRect):
1350          Added the ability to draw shadows for all these curves.
1351
1352 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1353
1354         Reviewed by Simon Hausmann.
1355
1356         Add the qwebgraphicsitem.cpp to the build system.
1357
1358         https://bugs.webkit.org/show_bug.cgi?id=28862
1359
1360         * WebCore.pro:
1361
1362 2009-09-09  Kevin Watters  <kevinwatters@gmail.com>
1363
1364         Reviewed by Kevin Ollivier.
1365
1366         [wx port] Move functions in TemporaryLinkStubs.cpp out to files where
1367         they belong.
1368
1369         https://bugs.webkit.org/show_bug.cgi?id=29088
1370
1371         * editing/wx/EditorWx.cpp:
1372         (WebCore::Editor::showColorPanel):
1373         (WebCore::Editor::showFontPanel):
1374         (WebCore::Editor::showStylesPanel):
1375         * platform/graphics/wx/GraphicsContextWx.cpp:
1376         (WebCore::GraphicsContext::setPlatformShadow):
1377         (WebCore::GraphicsContext::clearPlatformShadow):
1378         (WebCore::GraphicsContext::beginTransparencyLayer):
1379         (WebCore::GraphicsContext::endTransparencyLayer):
1380         (WebCore::GraphicsContext::clearRect):
1381         (WebCore::GraphicsContext::strokeRect):
1382         (WebCore::GraphicsContext::setLineCap):
1383         (WebCore::GraphicsContext::setLineJoin):
1384         (WebCore::GraphicsContext::setMiterLimit):
1385         (WebCore::GraphicsContext::setAlpha):
1386         (WebCore::GraphicsContext::addInnerRoundedRectClip):
1387         * platform/graphics/wx/IconWx.cpp: Added.
1388         (WebCore::Icon::~Icon):
1389         (WebCore::Icon::createIconForFile):
1390         (WebCore::Icon::createIconForFiles):
1391         (WebCore::Icon::paint):
1392         * platform/graphics/wx/ImageWx.cpp:
1393         (WebCore::Image::loadPlatformResource):
1394         (WebCore::Image::drawPattern):
1395         * platform/wx/CursorWx.cpp:
1396         (WebCore::moveCursor):
1397         * platform/wx/FileChooserWx.cpp: Added.
1398         (WebCore::FileChooser::basenameForWidth):
1399         * platform/wx/KURLWx.cpp: Added.
1400         (WebCore::KURL::fileSystemPath):
1401         * platform/wx/SSLKeyGeneratorWx.cpp: Added.
1402         (WebCore::getSupportedKeySizes):
1403         (WebCore::signedPublicKeyAndChallengeString):
1404         * platform/wx/SearchPopupMenuWx.cpp: Added.
1405         (WebCore::SearchPopupMenu::SearchPopupMenu):
1406         (WebCore::SearchPopupMenu::saveRecentSearches):
1407         (WebCore::SearchPopupMenu::loadRecentSearches):
1408         (WebCore::SearchPopupMenu::enabled):
1409         * platform/wx/SharedBufferWx.cpp: Added.
1410         (WebCore::SharedBuffer::createWithContentsOfFile):
1411         * platform/wx/SystemTimeWx.cpp: Added.
1412         (WebCore::userIdleTime):
1413         * platform/wx/TemporaryLinkStubs.cpp: Removed.
1414         * platform/wx/TextBreakIteratorInternalICUWx.cpp: Added.
1415         (WebCore::currentSearchLocaleID):
1416         (WebCore::currentTextBreakLocaleID):
1417         * platform/wx/WidgetWx.cpp:
1418         (WebCore::Widget::setIsSelected):
1419
1420 2009-09-09  Steve Block  <steveblock@google.com>
1421
1422         Reviewed by Adam Barth.
1423
1424         Geolocation incorrectly calls error callback in case of exception in success callback.
1425         https://bugs.webkit.org/show_bug.cgi?id=27255
1426
1427         Test: fast/dom/Geolocation/callback-exception.html
1428
1429         * bindings/js/JSCustomPositionCallback.cpp: Modified.
1430         (WebCore::JSCustomPositionCallback::handleEvent): Modified. Removed raisedException out param.
1431         * bindings/js/JSCustomPositionCallback.h: Modified. Removed raisedException out param from handleEvent method and made handleEvent private.
1432         * bindings/js/JSCustomPositionErrorCallback.h: Modified. Made handleEvent private.
1433         * page/Geolocation.cpp: Modified.
1434         (WebCore::Geolocation::sendPosition): Modified. No longer call error callback in case of exception in success callback.
1435         * page/PositionCallback.h: Modified. Removed raisedException out param from handleEvent method.
1436
1437 2009-09-09  Steve Block  <steveblock@google.com>
1438
1439         Reviewed by Darin Adler.
1440
1441         When Geolocation permission is denied, stops watches as well as one-shots.
1442         https://bugs.webkit.org/show_bug.cgi?id=28305.
1443
1444         Tests: fast/dom/Geolocation/watch.html
1445                fast/dom/Geolocation/permission-denied-stops-watches.html
1446
1447         * page/Geolocation.cpp: Modified.
1448         (WebCore::Geolocation::setIsAllowed): Modified. Marks the permission error as fatal.
1449         (WebCore::Geolocation::handleError): Modified. If the error is fatal, stops watchers as well as one-shots.
1450         * page/PositionError.h: Modified.
1451         (WebCore::PositionError::setIsFatal): Added. Marks an error as fatal.
1452         (WebCore::PositionError::isFatal): Added. Determines whether an error is fatal.
1453
1454 2009-09-09  Roland Steiner  <rolandsteiner@google.com>
1455
1456         Reviewed by Eric Seidel.
1457
1458         Bug 28964 -  [Chromium] ChromiumDataObject should have getter/setter interface
1459
1460         Added getter/setter methods and trivial inline implementations for each.
1461         (Note that they are not yet actually used.)
1462         Once the Chromium code is changed to use them instead of directly accessing the
1463         member variables, the member variables should be made private and cleaned up.
1464
1465         No new tests (no functional behavior changed).
1466
1467         * platform/chromium/ChromiumDataObject.h:
1468         (WebCore::ChromiumDataObject::mainURL):
1469         (WebCore::ChromiumDataObject::setMainURL):
1470         (WebCore::ChromiumDataObject::mainURLTitle):
1471         (WebCore::ChromiumDataObject::setMainURLTitle):
1472         (WebCore::ChromiumDataObject::textPlain):
1473         (WebCore::ChromiumDataObject::setTextPlain):
1474         (WebCore::ChromiumDataObject::textHTML):
1475         (WebCore::ChromiumDataObject::setTextHTML):
1476         (WebCore::ChromiumDataObject::htmlBaseURL):
1477         (WebCore::ChromiumDataObject::setHTMLBaseURL):
1478         (WebCore::ChromiumDataObject::content):
1479         (WebCore::ChromiumDataObject::releaseContent):
1480         (WebCore::ChromiumDataObject::setContent):
1481         (WebCore::ChromiumDataObject::contentFileExtension):
1482         (WebCore::ChromiumDataObject::setContentFileExtension):
1483         (WebCore::ChromiumDataObject::contentFileName):
1484         (WebCore::ChromiumDataObject::setContentFileName):
1485         (WebCore::ChromiumDataObject::fileNames):
1486         (WebCore::ChromiumDataObject::setFileNames):
1487         (WebCore::ChromiumDataObject::takeFileNames):
1488
1489 2009-09-08  Pat Bradley  <vincent.bradley@nokia.com>
1490
1491         Reviewed by Ariya Hidayat.
1492
1493         [Qt] locale date displays incorrect date format in symbian.
1494         https://bugs.webkit.org/show_bug.cgi?id=29032
1495
1496         strftime() in Symbian does not support #
1497         Layout tests cannot be run on Symbian yet, so they are not updated.
1498
1499         * runtime/DatePrototype.cpp:
1500         (JSC::formatLocaleDate):
1501
1502 2009-09-09  Rohini Ananth <rohini.ananth@nokia.com>
1503
1504         Reviewed by Simon Hausmann.
1505
1506         NPAPI Plugin NPP_AsFile not working on Qt Webkit
1507         https://bugs.webkit.org/show_bug.cgi?id=29068
1508
1509         * platform/qt/FileSystemQt.cpp:
1510         (WebCore::openTemporaryFile)
1511         Autoremove property of QTemporaryFile has been set to false. Hence closeFile() just closes and does not delete the file.
1512         This solves the deletion of created temp file in PluginStream::destroyStream() before passing to plugin in NPP_AsFile.
1513
1514 2009-09-08  Oliver Hunt  <oliver@apple.com>
1515
1516         Reviewed by NOBODY (Build fix).
1517
1518         Remove a few incorrect changes I left in.
1519
1520         * bindings/scripts/CodeGeneratorJS.pm:
1521
1522 2009-09-08  Oliver Hunt  <oliver@apple.com>
1523
1524         Reviewed by Sam Weinig.
1525
1526         Support numeric index getters in bindings
1527         https://bugs.webkit.org/show_bug.cgi?id=29067
1528
1529         Add HasNumericIndexGetter to indicate a non-custom getter that
1530         returns a number.  The numeric index getter also uses PropertySlot's
1531         setValue rather than setCustomIndex to avoid an additional indirect
1532         call.
1533
1534         * bindings/js/JSCanvasByteArrayCustom.cpp:
1535         * bindings/js/JSCanvasFloatArrayCustom.cpp:
1536         * bindings/js/JSCanvasIntArrayCustom.cpp:
1537         * bindings/js/JSCanvasShortArrayCustom.cpp:
1538         * bindings/js/JSCanvasUnsignedByteArrayCustom.cpp:
1539         * bindings/js/JSCanvasUnsignedIntArrayCustom.cpp:
1540         * bindings/js/JSCanvasUnsignedShortArrayCustom.cpp:
1541         * bindings/scripts/CodeGeneratorJS.pm:
1542         * html/canvas/CanvasByteArray.h:
1543         (WebCore::CanvasByteArray::item):
1544         * html/canvas/CanvasByteArray.idl:
1545         * html/canvas/CanvasFloatArray.h:
1546         (WebCore::CanvasFloatArray::get):
1547         (WebCore::CanvasFloatArray::item):
1548         * html/canvas/CanvasFloatArray.idl:
1549         * html/canvas/CanvasIntArray.h:
1550         (WebCore::CanvasIntArray::get):
1551         (WebCore::CanvasIntArray::item):
1552         * html/canvas/CanvasIntArray.idl:
1553         * html/canvas/CanvasPixelArray.idl:
1554         * html/canvas/CanvasShortArray.h:
1555         (WebCore::CanvasShortArray::get):
1556         (WebCore::CanvasShortArray::item):
1557         * html/canvas/CanvasShortArray.idl:
1558         * html/canvas/CanvasUnsignedByteArray.h:
1559         (WebCore::CanvasUnsignedByteArray::get):
1560         (WebCore::CanvasUnsignedByteArray::item):
1561         * html/canvas/CanvasUnsignedByteArray.idl:
1562         * html/canvas/CanvasUnsignedIntArray.h:
1563         (WebCore::CanvasUnsignedIntArray::get):
1564         (WebCore::CanvasUnsignedIntArray::item):
1565         * html/canvas/CanvasUnsignedIntArray.idl:
1566         * html/canvas/CanvasUnsignedShortArray.h:
1567         (WebCore::CanvasUnsignedShortArray::item):
1568         * html/canvas/CanvasUnsignedShortArray.idl:
1569
1570 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
1571
1572         wx build fix for 2.8.
1573
1574         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
1575         (wxRenderer_DrawScrollbar):
1576
1577 2009-09-08  Jens Alfke  <snej@chromium.org>
1578
1579         Reviewed by Eric Seidel.
1580
1581         In Mac Chromium, clicking below the last line of an editable area (textarea or
1582         contenteditable) should put the caret at the end of the last line, as in Mac Safari.
1583
1584         Tests: LayoutTests/editing/selection/click-in-margins-inside-editable-div.html
1585                LayoutTests/editing/selection/click-in-padding-with-multiple-line-boxes.html
1586
1587         * page/Settings.cpp:
1588         (WebCore::Settings::Settings): Change #if PLATFORM_MAC to be Mac-Chrome-inclusive.
1589
1590 2009-09-08  Dave Hyatt  <hyatt@apple.com>
1591
1592         Reviewed by Mark Rowe.
1593
1594         Make sure not to do an early return when a data URL stylesheet successfully loads.  We need to still
1595         clear the old cached sheet out of all existing Frames.  Fixes the data URL stylesheet layout test failure.
1596
1597         * page/Page.cpp:
1598         (WebCore::Page::userStyleSheetLocationChanged):
1599
1600 2009-09-08  Sam Weinig  <sam@webkit.org>
1601
1602         Fix windows build.
1603
1604         * dom/Document.idl:
1605
1606 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
1607
1608         More robust wx build fix for 2.9.
1609
1610         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
1611         (wxRenderer_DrawScrollbar):
1612
1613 2009-09-08  Sam Weinig  <sam@webkit.org>
1614
1615         Reviewed by Timothy Hatcher.
1616
1617         Fix for https://bugs.webkit.org/show_bug.cgi?id=27046
1618         Implement CSSOM DocumentView.caretRangeFromPoint
1619
1620         Tests: fast/dom/Document/CaretRangeFromPoint/basic.html
1621                fast/dom/Document/CaretRangeFromPoint/replace-element.html
1622
1623         * dom/Document.cpp:
1624         (WebCore::Document::caretRangeFromPoint):
1625         * dom/Document.h:
1626         * dom/Document.idl:
1627
1628 2009-09-08  Kevin Ollivier  <kevino@theolliviers.com>
1629
1630         wx build fix, generate derived sources earlier in order to make sure
1631         they're found by the build system when generating the list of sources to build.
1632
1633         * wscript:
1634
1635 2009-09-08  Nate Chapin  <japhet@chromium.org>
1636
1637         Reviewed by Dimitri Glazkov.
1638
1639         <iterator> include in V8Proxy.h is spurious and causing ObjC compile issues for Chromium.
1640
1641         Test: Chromium mac canary build is fixed.
1642
1643         * bindings/v8/V8Proxy.h: Remove <iterator> include.
1644
1645 2009-09-08  Xan Lopez  <xlopez@igalia.com>
1646
1647         Unreviewed attempt to fix the GTK+ build.
1648
1649         * GNUmakefile.am:
1650
1651 2009-09-04  Dave Hyatt  <hyatt@apple.com>
1652
1653         Reviewed by Eric Seidel.
1654
1655         https://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the page's user stylesheet in
1656         parsed form.  Allows the sheet to survive across destruction/re-creation of the CSSStyleSelector.
1657
1658         * css/CSSStyleSelector.cpp:
1659         (WebCore::CSSStyleSelector::CSSStyleSelector):
1660         * css/CSSStyleSelector.h:
1661         * dom/Document.cpp:
1662         (WebCore::Document::attach):
1663         (WebCore::Document::pageUserSheet):
1664         (WebCore::Document::clearPageUserSheet):
1665         (WebCore::Document::recalcStyleSelector):
1666         * dom/Document.h:
1667         * loader/PlaceholderDocument.cpp:
1668         (WebCore::PlaceholderDocument::attach):
1669         * page/Page.cpp:
1670         (WebCore::Page::userStyleSheetLocationChanged):
1671         * page/Settings.cpp:
1672         (WebCore::Settings::setUserStyleSheetLocation):
1673
1674 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1675
1676         Unreviewed buildfix.
1677
1678         Fix Qt build after 48167, by adding the new cpp/h files
1679         added to WebCore.gypi to WebCore.pro as well.
1680
1681         * WebCore.pro:
1682
1683 2009-09-08  Xan Lopez  <xlopez@igalia.com>
1684
1685         Reviewed by Gustavo Noronha.
1686
1687         should not pass URI fragments to libsoup
1688         https://bugs.webkit.org/show_bug.cgi?id=28687
1689
1690         Strip the fragment from the URI before passing it to soup, since
1691         it forwards it to servers in some cases (like when using a proxy)
1692         which confuses them and makes them return 403/404.
1693
1694         * platform/network/soup/ResourceHandleSoup.cpp:
1695         (WebCore::startHttp):
1696         (WebCore::):
1697
1698 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1699
1700         Reviewed by Simon Hausmann.
1701
1702         Add QGraphicsScene events support to the Qt platform events.
1703
1704         * platform/PlatformMouseEvent.h:
1705         * platform/PlatformWheelEvent.h:
1706         * platform/qt/PlatformMouseEventQt.cpp:
1707         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1708         * platform/qt/WheelEventQt.cpp:
1709         (WebCore::PlatformWheelEvent::applyDelta):
1710         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1711
1712 2009-09-08  Michael Nordman  <michaeln@google.com>
1713
1714         Reviewed by Eric Seidel.
1715
1716         [Chromium] Cleanup: remove a few deprecated methods.
1717         https://bugs.webkit.org/show_bug.cgi?id=28960
1718
1719         No new tests, just syntactic sugar.
1720
1721         * platform/network/chromium/ResourceRequest.h:
1722         * platform/network/chromium/ResourceResponse.h:
1723
1724 2009-09-08  Yongjun Zhang  <yongjun.zhang@nokia.com>
1725
1726         Reviewed by Ariya Hidayat.
1727
1728         https://bugs.webkit.org/show_bug.cgi?id=28981
1729
1730         [Qt] make npapi.h compile in winscw compiler.
1731
1732         Add XP_SYMBIAN macro to identify Symbian OS; this macro should be used for Symbian
1733         specific changes in npapi.h.
1734         Undefine XP_WIN when building for Symbian to avoid including Windows specific code.
1735
1736         * bridge/npapi.h:
1737
1738 2009-09-08  Oliver Hunt  <oliver@apple.com>
1739
1740         Reviewed by Geoff Garen.
1741
1742         Web Inspector assertion failure related to marking
1743         https://bugs.webkit.org/show_bug.cgi?id=28997
1744
1745         When wrapping the callback the JSInspectorCallbackWrapper creator was using
1746         inheritorID for the prototype structure which is unsafe for anything other
1747         than a pure JS object.  Instead we now create a new structure, which while
1748         inefficient is not problematic as this code is not hit frequently.
1749
1750         * bindings/js/JSInspectorCallbackWrapper.cpp:
1751         (WebCore::JSInspectorCallbackWrapper::wrap):
1752
1753 2009-09-08  Kelly Norton  <knorton@google.com>
1754
1755         Reviewed by Dimitri Glazkov.
1756
1757         Add missing extension to the file entry in WebCore.vcproj.
1758
1759         * WebCore.vcproj/WebCore.vcproj: Added "cpp".
1760
1761 2009-09-08  Jian Li  <jianli@chromium.org>
1762
1763         Reviewed by David Levin.
1764
1765         dataTransfer.types() should not return Files if file list is empty in the clipboard.
1766         https://bugs.webkit.org/show_bug.cgi?id=28891
1767
1768         We change the behavior to handle the empty file list in order to match the spec.
1769
1770         Tested by clipboard-file-access.html.
1771
1772         * platform/mac/ClipboardMac.mm:
1773         (WebCore::addHTMLClipboardTypesForCocoaType):
1774         (WebCore::ClipboardMac::types):
1775
1776 2009-09-08  Steve VanDeBogart  <vandebo@chromium.org>
1777
1778         Reviewed by Eric Seidel.
1779
1780         Handle middle click in Chromium like QT
1781         https://bugs.webkit.org/show_bug.cgi?id=28696
1782
1783         Tested by middle-click-onpaste.html.
1784
1785         * platform/Pasteboard.h:
1786         * platform/chromium/ChromiumBridge.h:
1787         * platform/chromium/ClipboardChromium.cpp:
1788         (WebCore::ClipboardChromium::getData):
1789         * platform/chromium/PasteboardChromium.cpp:
1790         (WebCore::Pasteboard::Pasteboard):
1791         (WebCore::Pasteboard::isSelectionMode):
1792         (WebCore::Pasteboard::setSelectionMode):
1793         (WebCore::Pasteboard::canSmartReplace):
1794         (WebCore::Pasteboard::plainText):
1795         (WebCore::Pasteboard::documentFragment):
1796         * platform/chromium/PasteboardPrivate.h:
1797         (WebCore::PasteboardPrivate::):
1798
1799 2009-09-08  Kelly Norton  <knorton@google.com>
1800
1801         Reviewed by Eric Seidel.
1802
1803         WebInspector: Adds a timeline agent to InspectorController that collects
1804         high-level timing data about event dispatch, layout, painting and HTML
1805         parsing and makes it available to Inspector.
1806         https://bugs.webkit.org/show_bug.cgi?id=25503
1807
1808         * WebCore.gypi:
1809         * WebCore.xcodeproj/project.pbxproj:
1810         * dom/Document.cpp:
1811         (WebCore::Document::recalcStyle):
1812         * dom/Document.h:
1813         (WebCore::Document::inspectorTimelineAgent):
1814         * dom/Node.cpp:
1815         (WebCore::Node::dispatchGenericEvent):
1816         * html/HTMLTokenizer.cpp:
1817         (WebCore::HTMLTokenizer::write):
1818         * inspector/DOMDispatchTimelineItem.cpp: Added.
1819         (WebCore::DOMDispatchTimelineItem::DOMDispatchTimelineItem):
1820         (WebCore::DOMDispatchTimelineItem::convertToScriptObject):
1821         * inspector/DOMDispatchTimelineItem.h: Added.
1822         (WebCore::DOMDispatchTimelineItem::~DOMDispatchTimelineItem):
1823         * inspector/InspectorBackend.cpp:
1824         (WebCore::InspectorBackend::enableTimeline):
1825         (WebCore::InspectorBackend::disableTimeline):
1826         (WebCore::InspectorBackend::timelineEnabled):
1827         * inspector/InspectorBackend.h:
1828         * inspector/InspectorBackend.idl:
1829         * inspector/InspectorController.cpp:
1830         (WebCore::InspectorController::setFrontendProxyObject):
1831         (WebCore::InspectorController::close):
1832         (WebCore::InspectorController::resetScriptObjects):
1833         (WebCore::InspectorController::enableTimeline):
1834         (WebCore::InspectorController::disableTimeline):
1835         (WebCore::InspectorController::timelineEnabled):
1836         * inspector/InspectorController.h:
1837         (WebCore::InspectorController::timelineAgent):
1838         * inspector/InspectorFrontend.cpp:
1839         (WebCore::InspectorFrontend::timelineWasEnabled):
1840         (WebCore::InspectorFrontend::timelineWasDisabled):
1841         (WebCore::InspectorFrontend::addItemToTimeline):
1842         * inspector/InspectorFrontend.h:
1843         * inspector/InspectorTimelineAgent.cpp: Added.
1844         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
1845         (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
1846         (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
1847         (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
1848         (WebCore::InspectorTimelineAgent::willLayout):
1849         (WebCore::InspectorTimelineAgent::didLayout):
1850         (WebCore::InspectorTimelineAgent::willRecalculateStyle):
1851         (WebCore::InspectorTimelineAgent::didRecalculateStyle):
1852         (WebCore::InspectorTimelineAgent::willPaint):
1853         (WebCore::InspectorTimelineAgent::didPaint):
1854         (WebCore::InspectorTimelineAgent::willWriteHTML):
1855         (WebCore::InspectorTimelineAgent::didWriteHTML):
1856         (WebCore::InspectorTimelineAgent::reset):
1857         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
1858         (WebCore::InspectorTimelineAgent::currentTimeInMilliseconds):
1859         (WebCore::InspectorTimelineAgent::sessionTimeInMilliseconds):
1860         * inspector/InspectorTimelineAgent.h: Added.
1861         * inspector/TimelineItem.cpp: Added.
1862         (WebCore::TimelineItem::TimelineItem):
1863         (WebCore::TimelineItem::addToTimeline):
1864         (WebCore::TimelineItem::convertToScriptObject):
1865         (WebCore::TimelineItem::convertChildrenToScriptArray):
1866         (WebCore::TimelineItem::addChildItem):
1867         * inspector/TimelineItem.h: Added.
1868         (WebCore::):
1869         (WebCore::TimelineItem::~TimelineItem):
1870         (WebCore::TimelineItem::previous):
1871         (WebCore::TimelineItem::releasePrevious):
1872         (WebCore::TimelineItem::setEndTime):
1873         (WebCore::TimelineItem::type):
1874         * inspector/front-end/TimelineAgent.js: Added.
1875         (WebInspector.TimelineAgent):
1876         (WebInspector.addItemToTimeline):
1877         (WebInspector.timelineWasEnabled):
1878         (WebInspector.timelineWasDisabled):
1879         * inspector/front-end/inspector.html:
1880         * page/FrameView.cpp:
1881         (WebCore::FrameView::layout):
1882         (WebCore::FrameView::paintContents):
1883         * page/FrameView.h:
1884         (WebCore::FrameView::inspectorTimelineAgent):
1885         * page/Page.cpp:
1886         (WebCore::Page::inspectorTimelineAgent):
1887         * page/Page.h:
1888
1889 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1890
1891         Reviewed by Simon Hausmann.
1892
1893         [Qt] Fix unused variable warnings
1894         https://bugs.webkit.org/show_bug.cgi?id=29018
1895
1896         No functional change, no tests.
1897
1898         * history/qt/HistoryItemQt.cpp:
1899         (WebCore::HistoryItem::restoreState):
1900         * platform/graphics/qt/ImageBufferQt.cpp:
1901         (WebCore::putImageData):
1902         * platform/qt/RenderThemeQt.cpp:
1903         (WebCore::RenderThemeQt::paintMenuList):
1904
1905 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1906
1907         Reviewed by Ariya Hidayat.
1908
1909         [Qt] Use the declaration order in initializer lists
1910         https://bugs.webkit.org/show_bug.cgi?id=29017
1911
1912         No functional change, no new tests.
1913
1914         * platform/graphics/qt/FontCacheQt.cpp:
1915         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
1916         * platform/network/qt/QNetworkReplyHandler.cpp:
1917         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1918
1919 2009-09-08  Kent Tamura  <tkent@chromium.org>
1920
1921         Reviewed by Eric Seidel.
1922
1923         Implement ValidityState::typeMismatch() for <input type=number>.
1924         https://bugs.webkit.org/show_bug.cgi?id=28934
1925
1926         Test: fast/forms/ValidityState-typeMismatch-number.html
1927
1928         * html/HTMLInputElement.cpp:
1929         (WebCore::HTMLInputElement::formStringToDouble):
1930         * html/HTMLInputElement.h:
1931         * html/ValidityState.cpp:
1932         (WebCore::ValidityState::typeMismatch):
1933         * html/ValidityState.h:
1934
1935 2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1936
1937         Reviewed by Gustavo Noronha.
1938
1939         [Gtk] Another attempt of a buildfix.
1940
1941         * GNUmakefile.am: Modified. Remove some extra IDL files added in r48153.
1942
1943 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1944
1945         Reviewed by Simon Hausmann.
1946
1947         [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
1948         https://bugs.webkit.org/show_bug.cgi?id=28865
1949
1950         Save the QCursor as a property in WidgetQt::setCursor
1951         and actually change the cursor in QWebView::event() by making use
1952         of the QEvent::DynamicPropertyChange event type.
1953         When unsetCursor() is called on the QWidget we can fallback to
1954         the cursor set by WebCore.
1955
1956         Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
1957                  Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
1958
1959         * platform/qt/WidgetQt.cpp:
1960         (WebCore::Widget::setCursor):
1961
1962 2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1963
1964         Reviewed by Gustavo Noronha.
1965
1966         [Gtk] Buildfix for build error introduced in r48150.
1967
1968         * GNUmakefile.am: Modified. Added missing IDL files.
1969
1970 2009-09-08  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
1971
1972         Reviewed by Tor Arne Vestbø.
1973
1974         [Qt] Buildfix. Build error caused by r48150.
1975
1976         * WebCore.pro: missing IDL files added
1977
1978 2009-09-07  Chris Marrin  <cmarrin@apple.com>
1979
1980         Reviewed by Oliver Hunt.
1981
1982         Update Canvas 3D implementation to match spec
1983         https://bugs.webkit.org/show_bug.cgi?id=29010
1984
1985         This adds several new CanvasXXXArray classes each of which has a custom constructor
1986         and custom getters and setters. Also changed CanvasRenderingContext3D and GraphicsContext3D
1987         to match the new and changed API.
1988
1989         * DerivedSources.make:
1990         * WebCore.xcodeproj/project.pbxproj:
1991         * bindings/js/JSCanvasArrayBufferConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1992         * bindings/js/JSCanvasArrayBufferConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1993         * bindings/js/JSCanvasArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1994         * bindings/js/JSCanvasByteArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1995         * bindings/js/JSCanvasByteArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1996         * bindings/js/JSCanvasByteArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
1997         * bindings/js/JSCanvasFloatArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
1998         * bindings/js/JSCanvasFloatArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
1999         * bindings/js/JSCanvasFloatArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2000         * bindings/js/JSCanvasIntArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
2001         * bindings/js/JSCanvasIntArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
2002         * bindings/js/JSCanvasIntArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2003         * bindings/js/JSCanvasRenderingContext3DCustom.cpp:
2004         (WebCore::JSCanvasRenderingContext3D::bufferData):
2005         (WebCore::JSCanvasRenderingContext3D::bufferSubData):
2006         (WebCore::JSCanvasRenderingContext3D::texImage2D):
2007         (WebCore::JSCanvasRenderingContext3D::texSubImage2D):
2008         * bindings/js/JSCanvasShortArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
2009         * bindings/js/JSCanvasShortArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
2010         * bindings/js/JSCanvasShortArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2011         * bindings/js/JSCanvasUnsignedByteArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
2012         * bindings/js/JSCanvasUnsignedByteArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
2013         * bindings/js/JSCanvasUnsignedByteArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2014         * bindings/js/JSCanvasUnsignedIntArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
2015         * bindings/js/JSCanvasUnsignedIntArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
2016         * bindings/js/JSCanvasUnsignedIntArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2017         * bindings/js/JSCanvasUnsignedShortArrayConstructor.cpp: Added with properties svn:eol-style and svn:mime-type.
2018         * bindings/js/JSCanvasUnsignedShortArrayConstructor.h: Added with properties svn:eol-style and svn:mime-type.
2019         * bindings/js/JSCanvasUnsignedShortArrayCustom.cpp: Added with properties svn:eol-style and svn:mime-type.
2020         * bindings/js/JSDOMWindowCustom.cpp:
2021         (WebCore::JSDOMWindow::canvasArrayBuffer):
2022         (WebCore::JSDOMWindow::canvasByteArray):
2023         (WebCore::JSDOMWindow::canvasUnsignedByteArray):
2024         (WebCore::JSDOMWindow::canvasIntArray):
2025         (WebCore::JSDOMWindow::canvasUnsignedIntArray):
2026         (WebCore::JSDOMWindow::canvasShortArray):
2027         (WebCore::JSDOMWindow::canvasUnsignedShortArray):
2028         (WebCore::JSDOMWindow::canvasFloatArray):
2029         * html/HTMLCanvasElement.cpp:
2030         (WebCore::HTMLCanvasElement::getContext):
2031         (WebCore::HTMLCanvasElement::paint):
2032         * html/canvas/CanvasArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2033         * html/canvas/CanvasArray.h: Added with properties svn:eol-style and svn:mime-type.
2034         * html/canvas/CanvasArray.idl: Added.
2035         * html/canvas/CanvasArrayBuffer.cpp: Added with properties svn:eol-style and svn:mime-type.
2036         * html/canvas/CanvasArrayBuffer.h: Added with properties svn:eol-style and svn:mime-type.
2037         * html/canvas/CanvasArrayBuffer.idl: Added.
2038         * html/canvas/CanvasByteArray.cpp:
2039         * html/canvas/CanvasByteArray.h:
2040         * html/canvas/CanvasByteArray.idl:
2041         * html/canvas/CanvasFloatArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2042         * html/canvas/CanvasFloatArray.h: Added with properties svn:eol-style and svn:mime-type.
2043         * html/canvas/CanvasFloatArray.idl: Added.
2044         * html/canvas/CanvasIntArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2045         * html/canvas/CanvasIntArray.h: Added with properties svn:eol-style and svn:mime-type.
2046         * html/canvas/CanvasIntArray.idl: Added.
2047         * html/canvas/CanvasRenderingContext3D.cpp:
2048         (WebCore::CanvasRenderingContext3D::CanvasRenderingContext3D):
2049         (WebCore::CanvasRenderingContext3D::markContextChanged):
2050         (WebCore::CanvasRenderingContext3D::beginPaint):
2051         (WebCore::CanvasRenderingContext3D::endPaint):
2052         (WebCore::CanvasRenderingContext3D::reshape):
2053         (WebCore::CanvasRenderingContext3D::sizeInBytes):
2054         (WebCore::CanvasRenderingContext3D::bindTexture):
2055         (WebCore::CanvasRenderingContext3D::bufferData):
2056         (WebCore::CanvasRenderingContext3D::bufferSubData):
2057         (WebCore::CanvasRenderingContext3D::checkFramebufferStatus):
2058         (WebCore::CanvasRenderingContext3D::clear):
2059         (WebCore::CanvasRenderingContext3D::createBuffer):
2060         (WebCore::CanvasRenderingContext3D::createFramebuffer):
2061         (WebCore::CanvasRenderingContext3D::createTexture):
2062         (WebCore::CanvasRenderingContext3D::createProgram):
2063         (WebCore::CanvasRenderingContext3D::createRenderbuffer):
2064         (WebCore::CanvasRenderingContext3D::createShader):
2065         (WebCore::CanvasRenderingContext3D::deleteBuffer):
2066         (WebCore::CanvasRenderingContext3D::deleteFramebuffer):
2067         (WebCore::CanvasRenderingContext3D::deleteProgram):
2068         (WebCore::CanvasRenderingContext3D::deleteRenderbuffer):
2069         (WebCore::CanvasRenderingContext3D::deleteShader):
2070         (WebCore::CanvasRenderingContext3D::deleteTexture):
2071         (WebCore::CanvasRenderingContext3D::drawArrays):
2072         (WebCore::CanvasRenderingContext3D::drawElements):
2073         (WebCore::CanvasRenderingContext3D::getBoolean):
2074         (WebCore::CanvasRenderingContext3D::getBooleanv):
2075         (WebCore::CanvasRenderingContext3D::getBufferParameteri):
2076         (WebCore::CanvasRenderingContext3D::getBufferParameteriv):
2077         (WebCore::CanvasRenderingContext3D::getFloat):
2078         (WebCore::CanvasRenderingContext3D::getFloatv):
2079         (WebCore::CanvasRenderingContext3D::getFramebufferAttachmentParameteri):
2080         (WebCore::CanvasRenderingContext3D::getFramebufferAttachmentParameteriv):
2081         (WebCore::CanvasRenderingContext3D::getInteger):
2082         (WebCore::CanvasRenderingContext3D::getIntegerv):
2083         (WebCore::CanvasRenderingContext3D::getProgrami):
2084         (WebCore::CanvasRenderingContext3D::getProgramiv):
2085         (WebCore::CanvasRenderingContext3D::getProgramInfoLog):
2086         (WebCore::CanvasRenderingContext3D::getRenderbufferParameteri):
2087         (WebCore::CanvasRenderingContext3D::getRenderbufferParameteriv):
2088         (WebCore::CanvasRenderingContext3D::getShaderi):
2089         (WebCore::CanvasRenderingContext3D::getShaderiv):
2090         (WebCore::CanvasRenderingContext3D::getShaderInfoLog):
2091         (WebCore::CanvasRenderingContext3D::getShaderSource):
2092         (WebCore::CanvasRenderingContext3D::getTexParameterf):
2093         (WebCore::CanvasRenderingContext3D::getTexParameterfv):
2094         (WebCore::CanvasRenderingContext3D::getTexParameteri):
2095         (WebCore::CanvasRenderingContext3D::getTexParameteriv):
2096         (WebCore::CanvasRenderingContext3D::getUniformf):
2097         (WebCore::CanvasRenderingContext3D::getUniformfv):
2098         (WebCore::CanvasRenderingContext3D::getUniformi):
2099         (WebCore::CanvasRenderingContext3D::getUniformiv):
2100         (WebCore::CanvasRenderingContext3D::getUniformLocation):
2101         (WebCore::CanvasRenderingContext3D::getVertexAttribf):
2102         (WebCore::CanvasRenderingContext3D::getVertexAttribfv):
2103         (WebCore::CanvasRenderingContext3D::getVertexAttribi):
2104         (WebCore::CanvasRenderingContext3D::getVertexAttribiv):
2105         (WebCore::CanvasRenderingContext3D::getVertexAttribOffset):
2106         (WebCore::CanvasRenderingContext3D::texImage2D):
2107         (WebCore::CanvasRenderingContext3D::texParameterf):
2108         (WebCore::CanvasRenderingContext3D::texParameteri):
2109         (WebCore::CanvasRenderingContext3D::texSubImage2D):
2110         (WebCore::CanvasRenderingContext3D::uniform1f):
2111         (WebCore::CanvasRenderingContext3D::uniform1fv):
2112         (WebCore::CanvasRenderingContext3D::uniform1i):
2113         (WebCore::CanvasRenderingContext3D::uniform1iv):
2114         (WebCore::CanvasRenderingContext3D::uniform2f):
2115         (WebCore::CanvasRenderingContext3D::uniform2fv):
2116         (WebCore::CanvasRenderingContext3D::uniform2i):
2117         (WebCore::CanvasRenderingContext3D::uniform2iv):
2118         (WebCore::CanvasRenderingContext3D::uniform3f):
2119         (WebCore::CanvasRenderingContext3D::uniform3fv):
2120         (WebCore::CanvasRenderingContext3D::uniform3i):
2121         (WebCore::CanvasRenderingContext3D::uniform3iv):
2122         (WebCore::CanvasRenderingContext3D::uniform4f):
2123         (WebCore::CanvasRenderingContext3D::uniform4fv):
2124         (WebCore::CanvasRenderingContext3D::uniform4i):
2125         (WebCore::CanvasRenderingContext3D::uniform4iv):
2126         (WebCore::CanvasRenderingContext3D::uniformMatrix2fv):
2127         (WebCore::CanvasRenderingContext3D::uniformMatrix3fv):
2128         (WebCore::CanvasRenderingContext3D::uniformMatrix4fv):
2129         (WebCore::CanvasRenderingContext3D::useProgram):
2130         (WebCore::CanvasRenderingContext3D::validateProgram):
2131         (WebCore::CanvasRenderingContext3D::vertexAttrib1f):
2132         (WebCore::CanvasRenderingContext3D::vertexAttrib1fv):
2133         (WebCore::CanvasRenderingContext3D::vertexAttrib2f):
2134         (WebCore::CanvasRenderingContext3D::vertexAttrib2fv):
2135         (WebCore::CanvasRenderingContext3D::vertexAttrib3f):
2136         (WebCore::CanvasRenderingContext3D::vertexAttrib3fv):
2137         (WebCore::CanvasRenderingContext3D::vertexAttrib4f):
2138         (WebCore::CanvasRenderingContext3D::vertexAttrib4fv):
2139         (WebCore::CanvasRenderingContext3D::vertexAttribPointer):
2140         (WebCore::CanvasRenderingContext3D::viewport):
2141         * html/canvas/CanvasRenderingContext3D.h:
2142         * html/canvas/CanvasRenderingContext3D.idl:
2143         * html/canvas/CanvasShortArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2144         * html/canvas/CanvasShortArray.h: Added with properties svn:eol-style and svn:mime-type.
2145         * html/canvas/CanvasShortArray.idl: Added.
2146         * html/canvas/CanvasTexture.cpp:
2147         (WebCore::CanvasTexture::CanvasTexture):
2148         * html/canvas/CanvasTexture.h:
2149         (WebCore::CanvasTexture::isCubeMapRWrapModeInitialized):
2150         (WebCore::CanvasTexture::setCubeMapRWrapModeInitialized):
2151         * html/canvas/CanvasUnsignedByteArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2152         * html/canvas/CanvasUnsignedByteArray.h: Added with properties svn:eol-style and svn:mime-type.
2153          * html/canvas/CanvasUnsignedByteArray.idl: Added.
2154         * html/canvas/CanvasUnsignedIntArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2155         * html/canvas/CanvasUnsignedIntArray.h: Added with properties svn:eol-style and svn:mime-type.
2156         * html/canvas/CanvasUnsignedIntArray.idl: Added.
2157         * html/canvas/CanvasUnsignedShortArray.cpp: Added with properties svn:eol-style and svn:mime-type.
2158         * html/canvas/CanvasUnsignedShortArray.h: Added with properties svn:eol-style and svn:mime-type.
2159         * html/canvas/CanvasUnsignedShortArray.idl: Added.
2160         * page/DOMWindow.idl:
2161         * platform/graphics/GraphicsContext3D.h:
2162         * platform/graphics/mac/GraphicsContext3DMac.cpp:
2163         (WebCore::GraphicsContext3D::beginPaint):
2164         (WebCore::GraphicsContext3D::endPaint):
2165         (WebCore::GraphicsContext3D::bindTexture):
2166         (WebCore::GraphicsContext3D::bufferData):
2167         (WebCore::GraphicsContext3D::bufferSubData):
2168         (WebCore::GraphicsContext3D::checkFramebufferStatus):
2169         (WebCore::GraphicsContext3D::drawArrays):
2170         (WebCore::GraphicsContext3D::drawElements):
2171         (WebCore::GraphicsContext3D::texParameterf):
2172         (WebCore::GraphicsContext3D::texParameteri):
2173         (WebCore::GraphicsContext3D::uniform1f):
2174         (WebCore::GraphicsContext3D::uniform1fv):
2175         (WebCore::GraphicsContext3D::uniform2f):
2176         (WebCore::GraphicsContext3D::uniform2fv):
2177         (WebCore::GraphicsContext3D::uniform3f):
2178         (WebCore::GraphicsContext3D::uniform3fv):
2179         (WebCore::GraphicsContext3D::uniform4f):
2180         (WebCore::GraphicsContext3D::uniform4fv):
2181         (WebCore::GraphicsContext3D::uniform1i):
2182         (WebCore::GraphicsContext3D::uniform1iv):
2183         (WebCore::GraphicsContext3D::uniform2i):
2184         (WebCore::GraphicsContext3D::uniform2iv):
2185         (WebCore::GraphicsContext3D::uniform3i):
2186         (WebCore::GraphicsContext3D::uniform3iv):
2187         (WebCore::GraphicsContext3D::uniform4i):
2188         (WebCore::GraphicsContext3D::uniform4iv):
2189         (WebCore::GraphicsContext3D::uniformMatrix2fv):
2190         (WebCore::GraphicsContext3D::uniformMatrix3fv):
2191         (WebCore::GraphicsContext3D::uniformMatrix4fv):
2192         (WebCore::GraphicsContext3D::vertexAttrib1f):
2193         (WebCore::GraphicsContext3D::vertexAttrib1fv):
2194         (WebCore::GraphicsContext3D::vertexAttrib2f):
2195         (WebCore::GraphicsContext3D::vertexAttrib2fv):
2196         (WebCore::GraphicsContext3D::vertexAttrib3f):
2197         (WebCore::GraphicsContext3D::vertexAttrib3fv):
2198         (WebCore::GraphicsContext3D::vertexAttrib4f):
2199         (WebCore::GraphicsContext3D::vertexAttrib4fv):
2200         (WebCore::GraphicsContext3D::vertexAttribPointer):
2201         (WebCore::GraphicsContext3D::getBoolean):
2202         (WebCore::GraphicsContext3D::getBooleanv):
2203         (WebCore::GraphicsContext3D::getFloat):
2204         (WebCore::GraphicsContext3D::getFloatv):
2205         (WebCore::GraphicsContext3D::getInteger):
2206         (WebCore::GraphicsContext3D::getIntegerv):
2207         (WebCore::GraphicsContext3D::getBufferParameteri):
2208         (WebCore::GraphicsContext3D::getBufferParameteriv):
2209         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteri):
2210         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
2211         (WebCore::GraphicsContext3D::getProgrami):
2212         (WebCore::GraphicsContext3D::getProgramiv):
2213         (WebCore::GraphicsContext3D::getRenderbufferParameteri):
2214         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
2215         (WebCore::GraphicsContext3D::getShaderi):
2216         (WebCore::GraphicsContext3D::getShaderiv):
2217         (WebCore::GraphicsContext3D::getTexParameterf):
2218         (WebCore::GraphicsContext3D::getTexParameterfv):
2219         (WebCore::GraphicsContext3D::getTexParameteri):
2220         (WebCore::GraphicsContext3D::getTexParameteriv):
2221         (WebCore::GraphicsContext3D::getUniformf):
2222         (WebCore::GraphicsContext3D::getUniformfv):
2223         (WebCore::GraphicsContext3D::getUniformi):
2224         (WebCore::GraphicsContext3D::getUniformiv):
2225         (WebCore::GraphicsContext3D::getVertexAttribf):
2226         (WebCore::GraphicsContext3D::getVertexAttribfv):
2227         (WebCore::GraphicsContext3D::getVertexAttribi):
2228         (WebCore::GraphicsContext3D::getVertexAttribiv):
2229         (WebCore::GraphicsContext3D::getVertexAttribOffset):
2230         (WebCore::GraphicsContext3D::texImage2D):
2231         (WebCore::GraphicsContext3D::texSubImage2D):
2232         (WebCore::GraphicsContext3D::sizeInBytes):
2233
2234 2009-09-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2235
2236         Reviewed by Timothy Hatcher.
2237
2238         Make m_windowVisible more consistent with the actual visibility of the inspector.
2239
2240         * inspector/InspectorController.cpp:
2241         (WebCore::InspectorController::setWindowVisible):
2242
2243 2009-09-07  Adam Barth  <abarth@webkit.org>
2244
2245         Unreviewed speculative build fix for Snow Leopard.
2246
2247         * platform/GeolocationService.cpp:
2248         (WebCore::createGeolocationServiceNull):
2249
2250 2009-09-07  Steve Block  <steveblock@google.com>
2251
2252         Reviewed by Adam Barth.
2253
2254         Adds a mock Geolocation service. This will be used to provide predictable behavior of the
2255         Geolocation API for use in LayoutTests. Later changes will integrate the the mock
2256         Geolocation service with DumpRenderTree.
2257         https://bugs.webkit.org/show_bug.cgi?id=28264
2258
2259         The mock Geolocation service returns a fixed position or error. This position or error can be
2260         set through static methods on the GeolocationService class. The position or error is shared
2261         between all instances of the mock Geolocation service.
2262
2263         Implementation details.
2264         The GeolocationService object maintains a pointer to a factory function which it uses to create
2265         Geolocation service instances. Each platform implementing Geolocation sets this pointer
2266         to the factory function for their platform's implementation. When the mock Geolocation service
2267         is activated, the factory function pointer is reset to the factory function for the mock service.
2268
2269         Test: fast/dom/Geolocation/error.html
2270
2271         * WebCore.base.exp: Modified. Exports GeolocationServiceMock methods.
2272         * GNUMakefile.am: Modified. Added GeolocationServiceMock files.
2273         * WebCore.gypi: Modified. Added GeolocationServiceMock files.
2274         * WebCore.pro: Modified. Added GeolocationServiceMock files.
2275         * WebCore.vcproj/WebCore.vcproj: Modified. Added GeolocationServiceMock files.
2276         * WebCore.vcproj/WebCoreCommon.vsprops: Modified. Added mock directory to includes.
2277         * WebCore.xcodeproj/project.pbxproj: Modified. Added GeolocationServiceMock files and exports some headers.
2278         * WebCoreSources.bkl: Modified. Added GeolocationServiceMock files.
2279         * page/ChromeClient.h: Modified. Fixed comment.
2280         * page/Geolocation.cpp: Modified.
2281         (WebCore::Geolocation::setIsAllowed): Modified. Fixed error string.
2282         * platform/GeolocationService.cpp: Modified.
2283         (WebCore::createGeolocationServiceNull): Added. Returns null in place of a Geolocation service. Used to avoid link errors on platforms where Geolocation is not implemented.
2284         (WebCore::GeolocationService::create): Added. Uses the factory function pointer to create a Geolocation service implementation.
2285         (WebCore::GeolocationService::useMock): Added. Configures the GeolocationServie to use the mock implementation.
2286         * platform/GeolocationService.h: Modified.
2287         * platform/mock: Added.
2288         * platform/mock/GeolocationServiceMock.cpp: Added.
2289         (WebCore::GeolocationServiceMock::create): Added. Creates a GeolocationServiceMock object.
2290         (WebCore::GeolocationServiceMock::GeolocationServiceMock): Added. Constructor.
2291         (WebCore::GeolocationServiceMock::~GeolocationServiceMock): Added. Destructor.
2292         (WebCore::GeolocationServiceMock::setPosition): Added. Sets the position that will be returned by the object.
2293         (WebCore::GeolocationServiceMock::setError): Added. Sets the error that will be returned by the object.
2294         (WebCore::GeolocationServiceMock::startUpdating): Added. GeolocationService implementation. Starts the service.
2295         (WebCore::GeolocationServiceMock::stopUpdating): Added. GeolocationService implementation. Stops the service.
2296         (WebCore::GeolocationServiceMock::timerFired): Added. Used to provide an asynchronous callback when the service is started.
2297         (WebCore::GeolocationServiceMock::makeGeolocationCallbackFromAllInstances): Added. Used to call back when the position or error is updated.
2298         (WebCore::GeolocationServiceMock::makeGeolocationCallback): Added. Used to call back when the service starts.
2299         (WebCore::GeolocationServiceMock::initStatics): Added. Initializes statics members with constructors.
2300         (WebCore::GeolocationServiceMock::cleanUpStatics): Added. Cleans up static members with constructors.
2301         * platform/mock/GeolocationServiceMock.h: Added.
2302         (WebCore::GeolocationServiceMock::lastPosition): Added. Returns the fixed position.
2303         (WebCore::GeolocationServiceMock::lastError): Added. Returns the fixed error.
2304         * platform/gtk/GeolocationServiceGtk.cpp: Modified.
2305         (WebCore::GeolocationServiceGtk::create): Added. Creates an instance of GeolocationServiceGtk.
2306         * platform/gtk/GeolocationServiceGtk.h: Modified.
2307         * platform/mac/GeolocationServiceMac.h: Modified.
2308         * platform/mac/GeolocationServiceMac.mm: Modified.
2309         (WebCore::GeolocationServiceMac::create): Added. Creates an instance of GeolocationServiceMac.
2310
2311 2009-09-07  Adam Barth  <abarth@webkit.org>
2312
2313         Reviewed by Dimitri Glazkov.
2314
2315         https://bugs.webkit.org/show_bug.cgi?id=28985
2316
2317         We need to be slightly more careful about how we pick up a script
2318         execution context.  In particular, we were getting the wrong document
2319         for frames that had been navigated somewhere else.
2320
2321         In the long term, we should think about a better algorithm for
2322         computing the script context.
2323
2324         Fixes LayoutTests/http/tests/xmlhttprequest/detaching-frame-2.html
2325
2326         * bindings/v8/V8Proxy.cpp:
2327         (WebCore::V8Proxy::retrieveFrame):
2328
2329 2009-09-07  Kevin Ollivier  <kevino@theolliviers.com>
2330
2331         wx build fix for 2.8 compilation.
2332
2333         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
2334         (wxRenderer_DrawScrollbar):
2335
2336 2009-09-07  Drew Wilson  <atwilson@google.com>
2337
2338         Unreviewed build fix.
2339
2340         Reverting r48121 to fix Windows build errors.
2341
2342         * DerivedSources.cpp:
2343         * GNUmakefile.am:
2344         * WebCore.xcodeproj/project.pbxproj:
2345         * bindings/js/JSDOMWindowCustom.cpp:
2346         * bindings/js/JSEventTarget.cpp:
2347         (WebCore::toJS):
2348         (WebCore::toEventTarget):
2349         * dom/EventTarget.cpp:
2350         * dom/EventTarget.h:
2351         * page/DOMWindow.idl:
2352         * websockets/WebSocket.cpp:
2353         (WebCore::WebSocket::connect):
2354         (WebCore::WebSocket::send):
2355         (WebCore::WebSocket::close):
2356         (WebCore::WebSocket::bufferedAmount):
2357         (WebCore::WebSocket::addEventListener):
2358         (WebCore::WebSocket::removeEventListener):
2359         (WebCore::WebSocket::dispatchEvent):
2360         (WebCore::WebSocket::didConnect):
2361         (WebCore::WebSocket::didReceiveMessage):
2362         (WebCore::WebSocket::didClose):
2363         (WebCore::WebSocket::dispatchOpenEvent):
2364         (WebCore::WebSocket::dispatchMessageEvent):
2365         (WebCore::WebSocket::dispatchCloseEvent):
2366         * websockets/WebSocket.h:
2367         (WebCore::WebSocket::create):
2368         (WebCore::WebSocket::):
2369         (WebCore::WebSocket::setOnopen):
2370         (WebCore::WebSocket::onopen):
2371         (WebCore::WebSocket::setOnmessage):
2372         (WebCore::WebSocket::onmessage):
2373         (WebCore::WebSocket::setOnclose):
2374         (WebCore::WebSocket::onclose):
2375         (WebCore::WebSocket::toWebSocket):
2376         (WebCore::WebSocket::refEventTarget):
2377         (WebCore::WebSocket::derefEventTarget):
2378         * websockets/WebSocketChannel.cpp: Removed.
2379         * websockets/WebSocketChannel.h: Removed.
2380         * websockets/WebSocketChannelClient.h: Removed.
2381         * websockets/WebSocketHandshake.cpp: Removed.
2382         * websockets/WebSocketHandshake.h: Removed.
2383
2384 2009-09-07  Drew Wilson  <atwilson@google.com>
2385
2386         Unreviewed speculative build fix.
2387
2388         Reverted previous build fix as it didn't fix the problem.
2389
2390         * bindings/js/JSEventTarget.cpp:
2391         (WebCore::toEventTarget):
2392
2393 2009-09-07  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2394
2395         Unreviewed, build fix.
2396
2397         [Qt] Fix build after SHARED_WORKERS are enabled by default (r48131)
2398
2399         * WebCore.pro:
2400
2401 2009-09-07  Drew Wilson  <atwilson@google.com>
2402
2403         Unreviewed build fix.
2404
2405         Temporarily removed depenency between JSEventTarget.cpp and WebSocket.h in an attempt to fix a windows build break.
2406
2407         * bindings/js/JSEventTarget.cpp:
2408         (WebCore::toEventTarget):
2409
2410 2009-09-07  Drew Wilson  <atwilson@google.com>
2411
2412         Reviewed by David Levin.
2413
2414         Enable SHARED_WORKERS by default.
2415         https://bugs.webkit.org/show_bug.cgi?id=28959
2416
2417         Tests (enabled in a separate patch):
2418                fast/workers/shared-worker-constructor.html
2419                fast/workers/shared-worker-context-gc.html
2420                fast/workers/shared-worker-event-listener.html
2421                fast/workers/shared-worker-exception.html
2422                fast/workers/shared-worker-frame-lifecycle.html
2423                fast/workers/shared-worker-gc.html
2424                fast/workers/shared-worker-lifecycle.html
2425                fast/workers/shared-worker-load-error.html
2426                fast/workers/shared-worker-location.html
2427                fast/workers/shared-worker-navigator.html
2428                fast/workers/shared-worker-replace-global-constructor.html
2429                fast/workers/shared-worker-replace-self.html
2430                fast/workers/shared-worker-shared.html
2431                fast/workers/shared-worker-simple.html
2432                http/tests/workers/shared-worker-importScripts.html
2433                http/tests/workers/shared-worker-redirect.html
2434                http/tests/xmlhttprequest/workers/shared-worker-close.html
2435                http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
2436                http/tests/xmlhttprequest/workers/shared-worker-methods.html
2437                http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html
2438
2439         * config.h: Removed some whitespace/touched the file to force a full rebuild on the build-bots.
2440         * Configurations/FeatureDefines.xcconfig:
2441         * WebCore.pro:
2442         * WebCore.vcproj/WebCoreCommon.vsprops:
2443         * WebCore.vcproj/build-generated-files.sh:
2444         * dom/DOMWindow.idl: Removed unnecessary whitespace to force a rebuild on the build-bots to pickup the flag change.
2445         * workers/DefaultSharedWorkerRepository.cpp:
2446         (WebCore::SharedWorkerScriptLoader::load):
2447         Clean up bitrot in SharedWorker code - DenyCrossOriginRedirect is now DenyCrossOriginRequests.
2448         * workers/SharedWorkerContext.cpp:
2449         (WebCore::SharedWorkerContext::dispatchConnect):
2450         Clean up bitrot - updated SharedWorker code to reflect new MessageEvent API.
2451
2452 2009-09-07  Xan Lopez  <xlopez@igalia.com>
2453
2454         Unreviewed build fix.
2455
2456         Add new file to sources list.
2457
2458         * GNUmakefile.am:
2459
2460 2009-09-07  Kevin Ollivier  <kevino@theolliviers.com>
2461
2462         wx build fixes for wx SVN trunk. 
2463
2464         * config.h:
2465         * platform/wx/RenderThemeWx.cpp:
2466         (WebCore::RenderThemeWx::paintButton):
2467         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
2468         (WebCore::drawTextWithSpacing):
2469         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp:
2470         (wxRenderer_DrawScrollbar):
2471
2472 2009-09-07  Chris Hills <chaz@chaz6.com>
2473
2474         Reviewed by Tor Arne Vestbø.
2475
2476         [Qt] Use direct includes for Phonon, not the pretty ones
2477
2478         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
2479
2480 2009-09-07  Fumitoshi Ukai  <ukai@chromium.org>
2481
2482         Reviewed by Alexey Proskuryakov.
2483
2484         WebSocket API implementation.
2485         https://bugs.webkit.org/show_bug.cgi?id=28038
2486         
2487         Add build systems only for GNUmakefile.am and WebCore.xcodeproj now.
2488         Other build systems will be updated once the code is functional.
2489         Tests will be landed once the code is completed and functional.
2490
2491         * DerivedSources.cpp:
2492         * GNUmakefile.am:
2493         * WebCore.xcodeproj/project.pbxproj:
2494         * bindings/js/JSDOMWindowCustom.cpp:
2495         (WebCore::JSDOMWindow::webSocket):
2496         * bindings/js/JSEventTarget.cpp:
2497         (WebCore::toJS):
2498         (WebCore::toEventTarget):
2499         * dom/EventTarget.cpp:
2500         (WebCore::EventTarget::toWebSocket):
2501         * dom/EventTarget.h:
2502         * page/DOMWindow.idl:
2503         * websockets/WebSocket.cpp:
2504         (WebCore::ProcessWebSocketEventTask::create):
2505         (WebCore::ProcessWebSocketEventTask::performTask):
2506         (WebCore::ProcessWebSocketEventTask::ProcessWebSocketEventTask):
2507         (WebCore::isValidProtocolString):
2508         (WebCore::WebSocket::connect):
2509         (WebCore::WebSocket::send):
2510         (WebCore::WebSocket::close):
2511         (WebCore::WebSocket::bufferedAmount):
2512         (WebCore::WebSocket::addEventListener):
2513         (WebCore::WebSocket::removeEventListener):
2514         (WebCore::WebSocket::dispatchEvent):
2515         (WebCore::WebSocket::didConnect):
2516         (WebCore::WebSocket::didReceiveMessage):
2517         (WebCore::WebSocket::didClose):
2518         (WebCore::WebSocket::dispatchOpenEvent):
2519         (WebCore::WebSocket::dispatchMessageEvent):
2520         (WebCore::WebSocket::dispatchCloseEvent):
2521         * websockets/WebSocket.h:
2522         (WebCore::WebSocket::create):
2523         (WebCore::WebSocket::):
2524         (WebCore::WebSocket::setOnopen):
2525         (WebCore::WebSocket::onopen):
2526         (WebCore::WebSocket::setOnmessage):
2527         (WebCore::WebSocket::onmessage):
2528         (WebCore::WebSocket::setOnclose):
2529         (WebCore::WebSocket::onclose):
2530         (WebCore::WebSocket::toWebSocket):
2531         (WebCore::WebSocket::eventListeners):
2532         (WebCore::WebSocket::refEventTarget):
2533         (WebCore::WebSocket::derefEventTarget):
2534         * websockets/WebSocketChannel.cpp: Added.
2535         * websockets/WebSocketChannel.h: Added.
2536         * websockets/WebSocketChannelClient.h: Added.
2537         * websockets/WebSocketHandshake.cpp: Added.
2538         * websockets/WebSocketHandshake.h: Added.
2539
2540 2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
2541
2542         Reviewed by Xan Lopez.
2543
2544         https://bugs.webkit.org/show_bug.cgi?id=26854
2545         [GTK] Needs API to allow more control over outgoing requests
2546
2547         Add infrastructure required to provide the new
2548         WebKitNetworkResponse object in our API.
2549
2550         * GNUmakefile.am: Add new files to the build.
2551         * platform/network/soup/ResourceRequestSoup.cpp:
2552         (WebCore::ResourceRequest::updateFromSoupMessage):
2553         * platform/network/soup/ResourceResponse.h:
2554         * platform/network/soup/ResourceResponseSoup.cpp: Added.
2555         (WebCore::ResourceResponse::toSoupMessage):
2556
2557 2009-09-07  Mads Ager  <ager@chromium.org>
2558
2559         Reviewed by Adam Barth.
2560
2561         [V8] Cleanup document/frame null-checking in V8DOMWindowCustom.cpp
2562         https://bugs.webkit.org/show_bug.cgi?id=29009
2563
2564         Be consistent in document and frame null checks.
2565
2566         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2567         (WebCore::V8Custom::WindowSetTimeoutImpl):
2568         (WebCore::ACCESSOR_GETTER):
2569         (WebCore::ACCESSOR_SETTER):
2570         (WebCore::CALLBACK_FUNC_DECL):
2571         (WebCore::NAMED_PROPERTY_GETTER):
2572         (WebCore::V8Custom::ClearTimeoutImpl):
2573
2574 2009-09-07  Xan Lopez  <xlopez@igalia.com>
2575
2576         Reviewed by Gustavo Noronha.
2577
2578         [Soup] Limit the number of connections
2579         https://bugs.webkit.org/show_bug.cgi?id=18431
2580
2581         Increase the maximum number of per host and total connections to
2582         similar values than those used by the other modern browsers. Seems
2583         to significantly improve page loading time in many cases.
2584
2585         * platform/network/soup/ResourceHandleSoup.cpp:
2586         (WebCore::ensureSessionIsInitialized):
2587
2588 2009-09-07  Michael Nordman  <michaeln@google.com>
2589
2590         Reviewed by Darin Fisher.
2591
2592         Various minor chromium appcache modifications.
2593         https://bugs.webkit.org/show_bug.cgi?id=28960
2594
2595         No new tests.
2596
2597         * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp:
2598           Fix a null pointer exception.
2599         (WebCore::ACCESSOR_GETTER):
2600         * platform/network/chromium/ResourceRequest.h:
2601           Switch from appCache 'context' to 'host' terminology.
2602           Note: leaving the old deprecated accessors in place until the matching
2603           change in chrome is landed to use the new accessors.
2604         (WebCore::ResourceRequest::ResourceRequest):
2605         (WebCore::ResourceRequest::appCacheHostID):
2606         (WebCore::ResourceRequest::setAppCacheHostID):
2607         (WebCore::ResourceRequest::appCacheContextID):
2608         (WebCore::ResourceRequest::setAppCacheContextID):
2609         * platform/network/chromium/ResourceResponse.h:
2610           Add an appCacheManifestURL getter/setter.
2611           Drop the 'get' prefix from the appCacheID getter.
2612           Note: leaving the old deprecated 'get' prefixed accessor in place until the matching
2613           change in chrome is landed to use the new accessor.
2614         (WebCore::ResourceResponse::appCacheID):
2615         (WebCore::ResourceResponse::appCacheManifestURL):
2616         (WebCore::ResourceResponse::setAppCacheManifestURL):
2617         (WebCore::ResourceResponse::getAppCacheID):
2618
2619 2009-09-07  Michael Nordman  <michaeln@google.com>
2620
2621         Reviewed by Alexey Proskuryakov.
2622
2623         https://bugs.webkit.org/show_bug.cgi?id=28359
2624         Cleanup: Undo some accidental changes around DOMApplicationCache.
2625         - Restore support for constructing a DOMApplicationCache object with a null frame ptr.
2626         - Return a non-null object for window.applicationCache when the feature is disabled.
2627         - Simplify the swapCache method.
2628
2629         Test: http/tests/appcache/disabled.html
2630
2631         * loader/appcache/DOMApplicationCache.cpp:
2632         (WebCore::DOMApplicationCache::DOMApplicationCache):
2633         (WebCore::DOMApplicationCache::swapCache):
2634         (WebCore::DOMApplicationCache::scriptExecutionContext):
2635         * loader/appcache/DOMApplicationCache.h:
2636         * page/DOMWindow.cpp:
2637         (WebCore::DOMWindow::applicationCache):
2638
2639 2009-09-06  Yael Aharon  <yael.aharon@nokia.com>
2640
2641         Reviewed by Darin Adler.
2642
2643         hostname and host are mixed up when manipulating anchor elements.
2644         https://bugs.webkit.org/show_bug.cgi?id=28954
2645
2646         handle the case of port 0.
2647
2648         * html/HTMLAnchorElement.cpp:
2649         (WebCore::HTMLAnchorElement::host):
2650
2651 2009-09-06  Erik Arvidsson  <arv@chromium.org>
2652
2653         Reviewed by Eric Seidel.
2654
2655         Make hidden elements not focusable.
2656
2657         Clean up supportsFocus and isFocusable.
2658         supportsFocus now strictly means that the node can be focused by default.
2659         This is true for links, form controls and content editable elements for example.
2660         isFocusable means that the user can actually focus it.
2661         All (2) calls to supportsFocus have been updated to take this into account.
2662         
2663         Make a elements without href work correctly as well.
2664
2665         https://bugs.webkit.org/show_bug.cgi?id=27099
2666
2667         Tests: fast/events/click-focus-anchor.html
2668                fast/events/tab-focus-anchor.html
2669                fast/events/tab-focus-hidden.html
2670
2671         * dom/Element.cpp:
2672         (WebCore::Element::focus):
2673         * dom/Node.cpp:
2674         (WebCore::Node::supportsFocus):
2675         (WebCore::Node::isFocusable):
2676         * dom/Node.h:
2677         * html/HTMLAnchorElement.cpp:
2678         (WebCore::HTMLAnchorElement::supportsFocus):
2679         (WebCore::HTMLAnchorElement::isMouseFocusable):
2680         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
2681         * html/HTMLAnchorElement.h:
2682         * html/HTMLAreaElement.cpp:
2683         (WebCore::HTMLAreaElement::supportsFocus):
2684         * html/HTMLAreaElement.h:
2685         * html/HTMLElement.cpp:
2686         (WebCore::HTMLElement::supportsFocus):
2687         * html/HTMLElement.h:
2688         * html/HTMLFieldSetElement.cpp:
2689         (WebCore::HTMLFieldSetElement::supportsFocus):
2690         * html/HTMLFieldSetElement.h:
2691         * html/HTMLFormControlElement.cpp:
2692         (WebCore::HTMLFormControlElement::supportsFocus):
2693         (WebCore::HTMLFormControlElement::isFocusable):
2694         * html/HTMLFrameElementBase.cpp:
2695         (WebCore::HTMLFrameElementBase::supportsFocus):
2696         * html/HTMLFrameElementBase.h:
2697         * html/HTMLLegendElement.cpp:
2698         (WebCore::HTMLLegendElement::supportsFocus):
2699         * html/HTMLLegendElement.h:
2700         * html/HTMLOptGroupElement.cpp:
2701         (WebCore::HTMLOptGroupElement::supportsFocus):
2702         (WebCore::HTMLOptGroupElement::isFocusable):
2703         * html/HTMLOptGroupElement.h:
2704         * html/HTMLOptionElement.cpp:
2705         (WebCore::HTMLOptionElement::supportsFocus):
2706         (WebCore::HTMLOptionElement::isFocusable):
2707         * html/HTMLOptionElement.h:
2708         * page/EventHandler.cpp:
2709         (WebCore::EventHandler::dispatchMouseEvent):
2710         * page/FocusController.cpp:
2711         (WebCore::FocusController::advanceFocus):
2712         * svg/SVGAElement.cpp:
2713         (WebCore::SVGAElement::supportsFocus):
2714         (WebCore::SVGAElement::isFocusable):
2715         * wml/WMLAElement.cpp:
2716         (WebCore::WMLAElement::supportsFocus):
2717         * wml/WMLAElement.h:
2718         * wml/WMLFormControlElement.cpp:
2719         (WebCore::WMLFormControlElement::supportsFocus):
2720         (WebCore::WMLFormControlElement::isFocusable):
2721         * wml/WMLFormControlElement.h:
2722
2723 2009-09-06  Joel Stanley  <joel@jms.id.au>
2724
2725         Reviewed by Dimitri Glazkov.
2726
2727         Expose functions to set the caret blink interval for Linux Chromium.
2728         Default value is set to that of RenderTheme::caretBlankInterval().
2729         Uses caretBlinkIntervalInternal to avoid overriding
2730         RenderThemeChromiumSkia::caretBlankInterval to preserve the disabling
2731         of blinking caret required for layout tests.
2732         https://bugs.webkit.org/show_bug.cgi?id=28931
2733
2734         * rendering/RenderThemeChromiumLinux.cpp:
2735         (WebCore::RenderThemeChromiumLinux::RenderThemeChromiumLinux):
2736         (WebCore::RenderThemeChromiumLinux::setCaretBlinkInterval):
2737         (WebCore::RenderThemeChromiumLinux::caretBlinkIntervalInternal):
2738         * rendering/RenderThemeChromiumLinux.h:
2739
2740 2009-09-06  Ada Chan  <adachan@apple.com>
2741
2742         Remove an extra </File> in WebCore.vcproj.
2743
2744         * WebCore.vcproj/WebCore.vcproj:
2745
2746 2009-09-06  Timothy Hatcher  <timothy@apple.com>
2747
2748         Adds a persistent setting for color format in the Web Inspector.
2749
2750         https://bugs.webkit.org/show_bug.cgi?id=28889
2751
2752         Reviewed by Dan Bernstein.
2753
2754         * English.lproj/localizedStrings.js: New strings.
2755         * inspector/front-end/Color.js: Minor style fixes.
2756         (WebInspector.Color.prototype.toString): Added. Replaces the individual
2757         "toFoo" functions. Takes a optional arguments for the color format to return.
2758         * inspector/front-end/Images/paneSettingsButtons.png: Added.
2759         * inspector/front-end/StylesSidebarPane.js:
2760         (WebInspector.StylesSidebarPane.prototype._changeColorFormat): Update the sections to show
2761         the new color format.
2762         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay):
2763         Use the new toString function on Color.
2764         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor): Use the persistent setting
2765         to format colors by default. Add a tooltip for the color swatch.
2766         * inspector/front-end/inspector.css: New styles for the settings menu.
2767         * inspector/front-end/inspector.js:
2768         (WebInspector.loaded): Initilize the colorFormat preference.
2769
2770 2009-09-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2771
2772         Reviewed by Eric Seidel.
2773
2774         [Qt] Remove Qt v4.6 check from the prefetchDNS implementation
2775         https://bugs.webkit.org/show_bug.cgi?id=28993
2776
2777         * platform/network/qt/DnsPrefetchHelper.cpp:
2778         * platform/network/qt/DnsPrefetchHelper.h:
2779
2780 2009-09-06  Cameron McCormack  <cam@mcc.id.au>
2781
2782         Reviewed by Eric Seidel.
2783
2784         Drop <definition-src> support
2785         https://bugs.webkit.org/show_bug.cgi?id=28991
2786
2787         http://dev.w3.org/SVG/profiles/1.1F2/publish/changes.html#FontsChapter
2788
2789         * DerivedSources.cpp: Remove references to definition-src.
2790         * DerivedSources.make: Ditto.
2791         * GNUmakefile.am: Ditto.
2792         * WebCore.gypi: Ditto.
2793         * WebCore.pro: Ditto.
2794         * WebCore.vcproj/WebCore.vcproj: Ditto.
2795         * WebCore.xcodeproj/project.pbxproj: Ditto.
2796         * bindings/objc/DOM.mm:
2797         (WebCore::createElementClassMap): Ditto.
2798         * bindings/objc/DOMSVG.h: Ditto.
2799         * bindings/v8/DerivedSourcesAllInOne.cpp: Ditto.
2800         * bindings/v8/V8DOMWrapper.cpp: Ditto.
2801         * bindings/v8/V8Index.cpp: Ditto.
2802         * bindings/v8/V8Index.h: Ditto.
2803         * svg/SVGAllInOne.cpp: Ditto.
2804         * svg/SVGDefinitionSrcElement.cpp: Removed.
2805         * svg/SVGDefinitionSrcElement.h: Removed.
2806         * svg/SVGDefinitionSrcElement.idl: Removed.
2807         * svg/SVGFontFaceElement.cpp:
2808         (WebCore::SVGFontFaceElement::rebuildFontFace): Don't search for
2809         definition-src child.
2810         * svg/svgtags.in: Remove definition-src.
2811
2812 2009-09-05  Dimitri Glazkov  <dglazkov@chromium.org>
2813
2814         Unreviewed, build fix.
2815
2816         [Chromium] Roll out http://trac.webkit.org/changeset/48094, because the
2817         logic of retrieving default caret blink interval was incorrect (non-existent)
2818         and caused layout test flakiness.
2819
2820         * rendering/RenderThemeChromiumLinux.cpp:
2821         * rendering/RenderThemeChromiumLinux.h:
2822
2823 2009-09-05  Jian Li  <jianli@chromium.org>
2824
2825         Reviewed by NOBODY (Chromium reliability build break).
2826
2827         Back up partial change in r48072 in order to fix chromium reliability build break.
2828
2829         * bindings/v8/V8AbstractEventListener.cpp:
2830         (WebCore::V8AbstractEventListener::invokeEventHandler):
2831
2832 2009-09-05  Nicolas Weber  <thakis@chromium.org>
2833
2834         Reviewed by Darin Fisher.
2835
2836         https://bugs.webkit.org/show_bug.cgi?id=28975
2837         Fix file upload on chrome/mac. Images that have "Hide Extension" set,
2838         such as screenshots by default, can now be uploaded to sites such as
2839         imgur.com.
2840
2841         * platform/FileSystem.h:
2842         Add pathGetDisplayFileName().
2843         * platform/chromium/FileChooserChromium.cpp:
2844         (WebCore::FileChooser::basenameForWidth):
2845         Call pathGetDisplayFileName() instead of pathGetFileName().
2846         * platform/chromium/FileSystemChromiumLinux.cpp:
2847         (WebCore::pathGetDisplayFileName):
2848         Implement pathGetDisplayFileName() by delegating to pathGetFileName().
2849         * platform/chromium/FileSystemChromiumMac.mm:
2850         (WebCore::pathGetFileName):
2851         Now returns a real filename instead of a presentational one, which
2852         fixes the problem addressed by this change.
2853         (WebCore::pathGetDisplayFileName):
2854         New function that returns a presentational filename; does what
2855         pathGetDisplayFileName() did prior to this patch.
2856         * platform/chromium/FileSystemChromiumWin.cpp:
2857         (WebCore::pathGetDisplayFileName):
2858         Implement pathGetDisplayFileName() by delegating to pathGetFileName().
2859
2860 2009-09-05  Joel Stanley  <joel@jms.id.au>
2861
2862         Reviewed by David Levin.
2863
2864         Expose functions to set the caret blink interval for Linux Chromium.
2865         https://bugs.webkit.org/show_bug.cgi?id=28931
2866
2867         * rendering/RenderThemeChromiumLinux.cpp:
2868         (WebCore::RenderThemeChromiumLinux::setCaretBlinkInterval):
2869         (WebCore::RenderThemeChromiumLinux::caretBlinkInterval):
2870         * rendering/RenderThemeChromiumLinux.h:
2871
2872 2009-09-04  Dmitry Titov  <dimich@chromium.org>
2873
2874         Reviewed by David Levin.
2875
2876         Prevent UI freeze in case when too many timers are in the timer queue.
2877         https://bugs.webkit.org/show_bug.cgi?id=23865
2878
2879         The fix measures the elapsed time while executing timers. If we have too many
2880         timers and it takes significant time to fire, quit the loop and reschedule.
2881         This lets the run loop process user input (close the window for example).
2882
2883         * platform/ThreadTimers.h:
2884         * platform/ThreadTimers.cpp:
2885         (WebCore::ThreadTimers::sharedTimerFiredInternal):
2886         (WebCore::ThreadTimers::fireTimersInNestedEventLoop):
2887         Removed functions and members used before to grab a list of all expired timers.
2888         Now we fetch one by one, measuring time and quitting the loop if it takes too long.
2889         * platform/Timer.cpp:
2890         (WebCore::TimerBase::isActive):
2891         (WebCore::TimerBase::setNextFireTime):
2892         Since timers are now fired one by one, there is no need to keep track of updated timers.
2893         * manual-tests/input-starved-by-timers.html: Manual test that attempts to freeze browser by
2894         creating of enough timers. It then keeps UI frozen and after 10 seconds starts to drain the timers
2895         so the browser un-freezes. This is instead of a regular layout test because we don't have a way
2896         to inject an input events via regular run loop in DRT - instead they are directly dispatched by
2897         eventSender, which does not reproduce the UI freeze that happens with real input.
2898
2899 2009-09-04  Anders Carlsson  <andersca@apple.com>
2900
2901         Reviewed by Adele Peterson.
2902
2903         <rdar://problem/7201063>
2904         
2905         Detach any custom scrollbars before detaching the document.
2906         
2907         * page/Frame.cpp:
2908         (WebCore::Frame::setView):
2909
2910 2009-09-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2911
2912                 Unreviewed, build fix.
2913
2914                 Remove remaining references to UserStyleSheetLoader after r48075.
2915
2916                 * WebCore.gypi:
2917                 * WebCore.xcodeproj/project.pbxproj:
2918                 * page/qt/FrameQt.cpp:
2919                 * page/wince/FrameWince.cpp:
2920
2921 2009-09-04  Michelangelo De Simone  <micdesim@gmail.com>
2922
2923                 Reviewed by David Levin.
2924
2925                 https://bugs.webkit.org/show_bug.cgi?id=28988
2926                 Minor fix: "novalidate" attribute renamed in "noValidate", according to
2927                 HTML5 specs:
2928                 http://www.whatwg.org/specs/web-apps/current-work/#dom-fs-novalidate
2929
2930                 * html/HTMLFormElement.cpp:
2931                 (WebCore::HTMLFormElement::noValidate):
2932                 (WebCore::HTMLFormElement::setNoValidate):
2933                 * html/HTMLFormElement.h:
2934                 * html/HTMLFormElement.idl:
2935
2936 2009-09-04  Dmitry Titov  <dimich@chromium.org>
2937
2938         Reviewed by David Levin.
2939
2940         Remove unused line of code from WorkerContext
2941         https://bugs.webkit.org/show_bug.cgi?id=28990
2942
2943         * workers/WorkerContext.cpp:
2944         (WebCore::WorkerContext::importScripts):
2945
2946 2009-09-04  Darin Adler  <darin@apple.com>
2947
2948         Reviewed by Oliver Hunt.
2949
2950         Fix assertion seen when running buildbot.
2951
2952         * bindings/js/JSDOMBinding.h:
2953         (WebCore::DOMObjectWithGlobalPointer::createStructure): Create the structure without
2954         the HasDefaultMark bit since this has a custom mark function.
2955
2956 2009-09-04  Dave Hyatt  <hyatt@apple.com>
2957
2958         Reviewed by Adam Roben.
2959
2960         https://bugs.webkit.org/show_bug.cgi?id=28984, remove the remote stylesheet loader on Mac/Qt.
2961         Make sure the other code path (now used by everybody) can handle data URLs.
2962
2963         As per the post on webkit-dev, the ability to work remotely isn't working properly anyway (it doesn't
2964         hold up the pending sheet count, so you'd just FOUC on every Web page), and it's extremely unlikely
2965         that anybody is relying on this support.
2966         
2967         Tor Arne agreed it was ok to disable (he enabled it on the Qt side), and only Mac/Qt were using this
2968         code.
2969
2970         * WebCore.pro:
2971         * WebCore.xcodeproj/project.pbxproj:
2972         * dom/Document.cpp:
2973         (WebCore::Document::userStyleSheet):
2974         * dom/Document.h:
2975         * loader/FrameLoader.cpp:
2976         (WebCore::FrameLoader::begin):
2977         * loader/UserStyleSheetLoader.cpp: Removed.
2978         * loader/UserStyleSheetLoader.h: Removed.
2979         * page/Frame.cpp:
2980         (WebCore::Frame::reapplyStyles):
2981         * page/Frame.h:
2982         * page/Page.cpp:
2983         (WebCore::Page::userStyleSheetLocationChanged):
2984         (WebCore::Page::userStyleSheet):
2985         * page/mac/FrameMac.mm:
2986         * page/qt/FrameQt.cpp:
2987
2988 2009-09-04  Mikhail Naganov  <mnaganov@chromium.org>
2989
2990         Reviewed by Timothy Hatcher.
2991
2992         Add "sampling profiler" preference, simplify data display when it's set.
2993
2994         https://bugs.webkit.org/show_bug.cgi?id=28969
2995
2996         * inspector/front-end/ProfileDataGridTree.js:
2997         (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
2998         (WebInspector.ProfileDataGridNode.prototype.get data):
2999         * inspector/front-end/ProfileView.js:
3000         (WebInspector.ProfileView):
3001         * inspector/front-end/inspector.js:
3002
3003 2009-09-04  Jian Li  <jianli@chromium.org>
3004
3005         Reviewed by Adam Barth.
3006
3007         [V8] Run-time exception in onmessage handler is not forwarded to the worker object.
3008         https://bugs.webkit.org/show_bug.cgi?id=28980
3009
3010         Tested by worker-close.html.
3011
3012         * bindings/v8/ScriptFunctionCall.cpp:
3013         * bindings/v8/V8AbstractEventListener.cpp:
3014         (WebCore::V8AbstractEventListener::invokeEventHandler):
3015         * bindings/v8/V8Utilities.cpp:
3016         (WebCore::getScriptExecutionContext):
3017         (WebCore::reportException):
3018         * bindings/v8/V8Utilities.h:
3019         (WebCore::getScriptExecutionContext):
3020         * bindings/v8/custom/V8MessageChannelConstructor.cpp:
3021         (WebCore::CALLBACK_FUNC_DECL):
3022         * bindings/v8/custom/V8SharedWorkerCustom.cpp:
3023         (WebCore::CALLBACK_FUNC_DECL):
3024         * bindings/v8/custom/V8WorkerCustom.cpp:
3025         (WebCore::CALLBACK_FUNC_DECL):
3026         * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
3027         (WebCore::CALLBACK_FUNC_DECL):
3028         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
3029         (WebCore::CALLBACK_FUNC_DECL):
3030
3031 2009-09-04  Dave Hyatt  <hyatt@apple.com>
3032
3033         Reviewed by Anders Carlsson.
3034
3035         Remove unused m_sheet variable and setCSSStyleSheet methods.
3036
3037         * dom/Document.cpp:
3038         * dom/Document.h:
3039
3040 2009-09-04  Anders Carlsson  <andersca@apple.com>
3041
3042         Reviewed by David Hyatt and Adele Peterson.
3043
3044         (Based on a patch from Adele).
3045         
3046         Fix <rdar://problem/7185875>.
3047         
3048         * page/Frame.cpp:
3049         (WebCore::Frame::setView):
3050         Detach any custom scroll bars from the old view.
3051         
3052         * page/FrameView.cpp:
3053         (WebCore::FrameView::detachCustomScrollbars):
3054         Simplify the check (and make it work when body is null) by just checking that the scroll bar owner is
3055         not a RenderPart object.
3056
3057         * rendering/RenderObject.cpp:
3058         (WebCore::RenderObject::destroy):
3059         ASSERT that frame() is not null here and also add a null check so that release builds won't crash.
3060
3061 2009-09-04  Dave Hyatt  <hyatt@apple.com>
3062
3063         Reviewed by Adam Roben.
3064
3065         Make m_userStyleSheetLoader in Frame an OwnPtr.
3066
3067         * page/Frame.cpp:
3068         (WebCore::Frame::Frame):
3069         (WebCore::Frame::~Frame):
3070         * page/Frame.h:
3071         * page/mac/FrameMac.mm:
3072         (WebCore::Frame::setUserStyleSheetLocation):
3073         (WebCore::Frame::setUserStyleSheet):
3074
3075 2009-09-04  Timothy Hatcher  <timothy@apple.com>
3076
3077         Show color swatches in the Web Inspector before the color text so clicking them will not
3078         shift the swatch. Also makes multiple swatches in the single property toggle the color format.
3079
3080         https://bugs.webkit.org/show_bug.cgi?id=28978
3081
3082         Reviewed by Darin Adler.
3083
3084         * inspector/front-end/StylesSidebarPane.js:
3085         (WebInspector.StylePropertyTreeElement.prototype.updateTitle): Some refactoring to consolidate
3086         the processing we do on the property value. This eliminated the old nickname code, since the new
3087         WebInspector.Color class handles this. We could also simplify the color regex since more
3088         is handled by the Color class. Also no longer uses innerHTML for the linkify code.
3089         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processValue): Helper function to
3090         process a value given a regex and processor functions. 
3091         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL): Make an anchor for the
3092         URL with "url()" syntax surrounding it.
3093         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor): Makes a color, if
3094         there was an exception just return a text node.
3095         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay.changeTo):
3096         Moved from later in the file.
3097         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay): Ditto.
3098         * inspector/front-end/inspector.css:
3099
3100 2009-09-04  Mark Mentovai  <mark@chromium.org>
3101
3102         Reviewed by Dave Hyatt.
3103
3104         https://bugs.webkit.org/show_bug.cgi?id=28614
3105
3106         Account for scrollbar state changes that occur during layout.
3107
3108         * platform/ScrollView.cpp:
3109         (WebCore::ScrollView::updateScrollbars):
3110
3111         Perform a layout prior to checking whether the scrollbar modes are
3112         off, on, or automatic.  The modes may change during layout.
3113
3114         * WebCore.base.exp:
3115         * WebCore.order:
3116         * page/Frame.cpp:
3117         (WebCore::Frame::createView):
3118         * page/FrameView.cpp:
3119         (WebCore::FrameView::FrameView):
3120         (WebCore::FrameView::resetScrollbars):
3121         (WebCore::FrameView::layout):
3122         * page/FrameView.h:
3123         * platform/ScrollView.h:
3124
3125         Eliminate duplicated (and incorrect) scrollbar mode tracking between
3126         FrameView and ScrollView.
3127
3128 2009-09-04  Yael Aharon  <yael.aharon@nokia.com>
3129
3130         Reviewed by Darin Adler.
3131
3132         hostname and host are mixed up when manipulating anchor elements.
3133         https://bugs.webkit.org/show_bug.cgi?id=28954
3134
3135         Swapped the implementation of host and hostname, and made sure not to return
3136         the port number if it is default for the given protocol. 
3137         FireFox also avoids returning the protocol number if it is default.
3138
3139         Test: fast/dom/Element/hostname-host.html
3140
3141         * html/HTMLAnchorElement.cpp:
3142         (WebCore::HTMLAnchorElement::host):
3143         (WebCore::HTMLAnchorElement::hostname):
3144         * page/SecurityOrigin.cpp:
3145         (WebCore::SecurityOrigin::isDefaultPortForProtocol):
3146         * page/SecurityOrigin.h:
3147
3148 2009-09-04  Anders Carlsson  <andersca@apple.com>
3149
3150         Reviewed by Darin Adler and Steve Falkenburg.
3151
3152         Fix <rdar://problem/7192902>.
3153
3154         Add the necessary plumbing for having QTMovieWin use WebCore timers.
3155         
3156         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
3157         (WebCore::TaskTimer::initialize):
3158         Create the timer and call QTMovieWin::setTaskTimerFuncs.
3159         
3160         (WebCore::TaskTimer::setTaskTimerDelay):
3161         Start the timer.
3162         
3163         (WebCore::TaskTimer::stopTaskTimer):
3164         Stop the timer.
3165         
3166         (WebCore::TaskTimer::fired):
3167         Call QTMovieWin::taskTimerFired().
3168         
3169         (WebCore::MediaPlayerPrivate::load):
3170         Initialize the Task timer.
3171         
3172         * platform/graphics/win/QTMovieWin.cpp:
3173         (updateTaskTimer):
3174         Call the global stopTaskTimer function and setTaskTimerDelay.
3175         
3176         (QTMovieWin::taskTimerFired):
3177         Make this a member function.
3178         
3179         (QTMovieWin::setTaskTimerFuncs):
3180         Set the global function pointers.
3181         
3182         (QTMovieWin::initializeQuickTime):
3183         (DllMain):
3184         No need to use the QT shared timer.
3185         * platform/graphics/win/QTMovieWin.h:
3186
3187 2009-09-04  Tony Chang  <tony@chromium.org>
3188
3189         Reviewed by David Levin.
3190
3191         Fix Chromium Win compile.  Missing return statement in
3192         WebCore::RenderThemeChromiumSkia::paintSliderThumb.
3193         https://bugs.webkit.org/show_bug.cgi?id=28974
3194
3195         No new tests, build fix.
3196
3197         * rendering/RenderThemeChromiumSkia.cpp:
3198         (WebCore::RenderThemeChromiumSkia::paintSliderThumb):
3199
3200 2009-09-04  Dimitri Glazkov  <dglazkov@chromium.org>
3201
3202         Unreviewed, build fix.
3203
3204         [Chromium] Rolling out http://trac.webkit.org/changeset/48035, because it broke
3205         the build.
3206         https://bugs.webkit.org/show_bug.cgi?id=28696
3207
3208 2009-09-04  Anders Carlsson  <andersca@apple.com>
3209
3210         Fix vcproj file.
3211
3212         * WebCore.vcproj/WebCore.vcproj:
3213
3214 2009-09-03  Dave Hyatt  <hyatt@apple.com>
3215
3216         Reviewed by Adam Roben.
3217
3218         https://bugs.webkit.org/show_bug.cgi?id=28890, make simple user script injection work.
3219         
3220         This patch adds new API for adding and removing user scripts from page groups.  User scripts
3221         are bundled together in isolated worlds (you can have multiple scripts together in the same
3222         world).
3223
3224         Added userscripts/ directory for holding new tests (along with a simple test of script injection).
3225
3226         * WebCore.base.exp:
3227         * WebCore.vcproj/WebCore.vcproj:
3228         * WebCore.xcodeproj/project.pbxproj:
3229         * bindings/js/ScriptController.cpp:
3230         (WebCore::ScriptController::evaluateInIsolatedWorld):
3231         * bindings/js/ScriptController.h:
3232         * bindings/v8/ScriptController.cpp:
3233         (WebCore::ScriptController::evaluateInIsolatedWorld):
3234         * bindings/v8/ScriptController.h:
3235         * loader/FrameLoader.cpp:
3236         (WebCore::FrameLoader::finishedParsing):
3237         (WebCore::FrameLoader::dispatchDocumentElementAvailable):
3238         * page/Frame.cpp:
3239         (WebCore::Frame::injectUserScripts):
3240         (WebCore::Frame::injectUserScriptsForWorld):
3241         * page/Frame.h:
3242         * page/PageGroup.cpp:
3243         (WebCore::PageGroup::~PageGroup):
3244         (WebCore::PageGroup::addUserScript):
3245         (WebCore::PageGroup::removeUserContentForWorld):
3246         (WebCore::PageGroup::removeAllUserContent):
3247         * page/PageGroup.h:
3248         (WebCore::PageGroup::userScripts):
3249         * page/UserScript.h: Added.
3250         (WebCore::UserScript::UserScript):
3251         (WebCore::UserScript::source):
3252         (WebCore::UserScript::url):
3253         (WebCore::UserScript::patterns):
3254         (WebCore::UserScript::worldID):
3255         (WebCore::UserScript::injectionTime):
3256         * page/UserScriptTypes.h: Added.
3257         (WebCore::):
3258
3259 2009-09-04  Alexey Proskuryakov  <ap@apple.com>
3260
3261         Reviewed by Eric Seidel.
3262
3263         https://bugs.webkit.org/show_bug.cgi?id=26402
3264         Crashes when using a detached DocumentType node
3265
3266         Test: fast/dom/DOMImplementation/detached-doctype.html
3267
3268         DocumentType nodes are the only one that can have null document(), and they can never have
3269         children, so they are a degenerate case for NodeLists.
3270
3271         * dom/Node.cpp:
3272         (WebCore::Node::childNodes): Don't try register node list with document if there's no
3273         document. Since there are no changes possible for a DocumentType's node list, this is not
3274         necessary.
3275         (WebCore::Node::registerDynamicNodeList): Ditto.
3276         (WebCore::Node::unregisterDynamicNodeList): Ditto. I couldn't find a scenario where this
3277         was invoked for a DocumentType node, but I also couldn't prove that it can't be (the
3278         de-registration code path that I saw taken was via Node destructor, and that already has
3279         a null check for document).
3280
3281         * bindings/js/JSNodeCustom.cpp:
3282         (WebCore::JSNode::addEventListener): Bail out if there is no document (just as we already do
3283         if there is no window).
3284         (WebCore::JSNode::removeEventListener): Ditto.
3285
3286 2009-09-04  Xan Lopez  <xlopez@igalia.com>
3287
3288         Reviewed by Gustavo Noronha.
3289
3290         [GTK] loadFinished never emitted
3291         https://bugs.webkit.org/show_bug.cgi?id=28935
3292
3293         Do not report errors right away from
3294         ResourceHandle::start. Instead return true and schedule an error
3295         to be reported in the handle later. Otherwise WebCore gets
3296         confused and thinks the resource never finished loading, making it
3297         not emit the finished status.
3298
3299         * platform/network/soup/ResourceHandleSoup.cpp:
3300         (WebCore::startHttp):
3301         (WebCore::):
3302
3303 2009-09-04  Ben Murdoch  <benm@google.com>
3304
3305         Reviewed by Eric Seidel.
3306
3307         [V8] DOM Storage bindings: Event Handler should create StorageEvents
3308         https://bugs.webkit.org/show_bug.cgi?id=28942
3309         
3310         Tests:
3311         Causes the following tests that were failing with V8 to pass:
3312         * storage/domstorage/localstorage/onstorage-attribute-setwindow.html
3313         * storage/domstorage/localstorage/complex-keys.html
3314         * storage/domstorage/localstorage/onstorage-attribute-markup.html
3315         * storage/domstorage/localstorage/simple-events.html
3316         * storage/domstorage/localstorage/onstorage-attribute-set-attribute.html
3317         * storage/domstorage/localstorage/index-get-and-set.html
3318         * storage/domstorage/sessionstorage/onstorage-attribute-setwindow.html
3319         * storage/domstorage/sessionstorage/onstorage-attribute-markup.html
3320         * storage/domstorage/sessionstorage/simple-events.html
3321         * storage/domstorage/sessionstorage/onstorage-attribute-set-attribute.html
3322         * storage/domstorage/sessionstorage/index-get-and-set.html
3323
3324         Code changes:
3325         * bindings/v8/V8DOMWrapper.cpp:
3326         (WebCore::V8DOMWrapper::convertEventToV8Object):  Create StorageEvents.
3327         * bindings/v8/custom/V8StorageCustom.cpp:
3328         (WebCore::storageGetter): Check if we are retrieving the length property and return the number of items in the object rather than a property named length when invoking the getItem() member of local/sessionStorage.
3329
3330 2009-09-03  Pavel Feldman  <pfeldman@chromium.org>
3331
3332         Reviewed by Timothy Hatcher.
3333
3334         https://bugs.webkit.org/show_bug.cgi?id=28911
3335
3336         * WebCore.gypi:
3337         * WebCore.vcproj/WebCore.vcproj:
3338         * inspector/InspectorBackend.cpp:
3339         (WebCore::InspectorBackend::dispatchOnInjectedScript):
3340         * inspector/InspectorBackend.h:
3341         * inspector/InspectorBackend.idl:
3342         * inspector/front-end/ConsoleView.js:
3343         (WebInspector.ConsoleView.prototype.doEvalInWindow):
3344         (WebInspector.ConsoleView.prototype._formatarray):
3345         (WebInspector.ConsoleView.prototype._formatnode):
3346         * inspector/front-end/DOMAgent.js:
3347         * inspector/front-end/ElementsPanel.js:
3348         (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
3349         (WebInspector.ElementsPanel.prototype.searchCanceled):
3350         (WebInspector.ElementsPanel.prototype.performSearch):
3351         * inspector/front-end/InjectedScript.js:
3352         (InjectedScript.dispatch):
3353         * inspector/front-end/InjectedScriptAccess.js: Added.
3354         (InjectedScriptAccess._installHandler.InjectedScriptAccess.methodName):
3355         (InjectedScriptAccess._installHandler):
3356         * inspector/front-end/MetricsSidebarPane.js:
3357         (WebInspector.MetricsSidebarPane.prototype.update):
3358         (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
3359         * inspector/front-end/ObjectPropertiesSection.js:
3360         (WebInspector.ObjectPropertiesSection.prototype.update):
3361         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
3362         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
3363         * inspector/front-end/PropertiesSidebarPane.js:
3364         (WebInspector.PropertiesSidebarPane.prototype.update):
3365         * inspector/front-end/ResourcesPanel.js:
3366         (WebInspector.ResourceSidebarTreeElement.prototype.ondblclick):
3367         * inspector/front-end/ScriptsPanel.js:
3368         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
3369         * inspector/front-end/StylesSidebarPane.js:
3370         (WebInspector.StylesSidebarPane.prototype.update):
3371         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
3372         (WebInspector.BlankStylePropertiesSection.prototype.editingCommitted):
3373         (WebInspector.StylePropertyTreeElement.prototype):
3374         * inspector/front-end/inspector.html:
3375
3376 2009-09-04  Tony Chang  <tony@chromium.org>
3377
3378         Reviewed by Eric Seidel.
3379
3380         Implement <input type="range"> for Chromium Linux by painting
3381         the slider and the thumb using skia.
3382         https://bugs.webkit.org/show_bug.cgi?id=28928
3383
3384         Covered by existing tests (we're currently hitting an assert for them).
3385
3386         * rendering/RenderThemeChromiumLinux.cpp:
3387         (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
3388         * rendering/RenderThemeChromiumLinux.h:
3389         * rendering/RenderThemeChromiumSkia.cpp:
3390         (WebCore::drawVertLine):
3391         (WebCore::drawHorizLine):
3392         (WebCore::drawBox):
3393         (WebCore::RenderThemeChromiumSkia::paintSliderTrack):
3394         (WebCore::RenderThemeChromiumSkia::paintSliderThumb):
3395         * rendering/RenderThemeChromiumSkia.h:
3396
3397 2009-09-04  Kent Tamura  <tkent@chromium.org>
3398
3399         Reviewed by Eric Seidel.
3400
3401         - Implement <input type=color> as a text field.
3402         - ValidityState::typeMismatch supports for type=color.
3403         https://bugs.webkit.org/show_bug.cgi?id=28966
3404
3405         Tests: fast/forms/ValidityState-patternMismatch-unsupported.html
3406                fast/forms/ValidityState-typeMismatch-color.html
3407
3408         * html/HTMLInputElement.cpp:
3409         (WebCore::HTMLInputElement::valueMissing):
3410         (WebCore::HTMLInputElement::patternMismatch):
3411         (WebCore::HTMLInputElement::setInputType):
3412         (WebCore::HTMLInputElement::formControlType):
3413         (WebCore::HTMLInputElement::saveFormControlState):
3414         (WebCore::HTMLInputElement::restoreFormControlState):
3415         (WebCore::HTMLInputElement::accessKeyAction):
3416         (WebCore::HTMLInputElement::rendererIsNeeded):
3417         (WebCore::HTMLInputElement::createRenderer):
3418         (WebCore::HTMLInputElement::appendFormData):
3419         (WebCore::HTMLInputElement::valueWithDefault):
3420         (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
3421         (WebCore::HTMLInputElement::defaultEventHandler):
3422         (WebCore::HTMLInputElement::isRequiredFormControl):
3423         (WebCore::HTMLInputElement::dataList):
3424         * html/HTMLInputElement.h:
3425         (WebCore::HTMLInputElement::):
3426         (WebCore::HTMLInputElement::isTextField):
3427         * html/ValidityState.cpp:
3428         (WebCore::ValidityState::typeMismatch):
3429         (WebCore::ValidityState::isValidColorString):
3430         * html/ValidityState.h:
3431
3432 2009-09-04  Mads Ager  <ager@chromium.org>
3433
3434         Reviewed by David Levin.
3435
3436         [V8] Crash when updating document cache
3437         https://bugs.webkit.org/show_bug.cgi?id=28965
3438
3439         Initialization of a V8 JavaScript context can fail.  When that
3440         happens, do not attempt to update the document wrapper cache.
3441
3442         This code path is exercised by http/tests/security/javascriptURL/javascriptURL-in-new-iframe.html.
3443
3444         * bindings/v8/V8Proxy.cpp:
3445         (WebCore::V8Proxy::updateDocument):
3446
3447 2009-09-04  Yaar Schnitman  <yaar@chromium.org>
3448
3449         Reviewed by Eric Seidel.
3450
3451         Two bugs:
3452
3453         https://bugs.webkit.org/show_bug.cgi?id=25489
3454         CSS property background-position is now serialized in shorthand string as
3455         background-position-x background-position-y, as the specification requires
3456         (See http://www.w3.org/TR/2008/WD-css3-background-20080910/#the-background-position).
3457         
3458
3459         https://bugs.webkit.org/show_bug.cgi?id=26541
3460         CSS background-color is now be serialized before other background properties, 
3461         as CSS specification requires (See http://dev.w3.org/csswg/cssom/#css-value).  
3462
3463         An existing layout test that accepted wrong order and skipped position test 
3464         had to be modified.
3465
3466         * css/CSSMutableStyleDeclaration.cpp:
3467         (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
3468
3469 2009-09-03  Kent Tamura  <tkent@chromium.org>
3470
3471         Reviewed by David Levin.
3472
3473         Add support for HTMLTextAreaElement.textLength
3474         https://bugs.webkit.org/show_bug.cgi?id=28929
3475
3476         Test: fast/forms/textarea-textlength.html
3477
3478         * html/HTMLTextAreaElement.h:
3479         (WebCore::HTMLTextAreaElement::textLength):
3480         * html/HTMLTextAreaElement.idl:
3481
3482 2009-09-03  Alexey Proskuryakov  <ap@apple.com>
3483
3484         Reviewed by Darin Adler.
3485
3486         <rdar://problem/7180197>, https://bugs.webkit.org/show_bug.cgi?id=28822
3487         REGRESSION(r31231): Creating document with current document's DOCTYPE causes crashes
3488
3489         Test: fast/dom/DOMImplementation/createDocument-with-used-doctype.html
3490
3491         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocument): Even though we
3492         cannot raise an exception immediately out of fear of breaking Acid3, we shouldn't use a
3493         DocumentType node in two documents.
3494
3495 2009-09-03  Brady Eidson  <beidson@apple.com>
3496
3497         Reviewed by Sam Weinig.
3498
3499         Page Cache should support pages with Frames.
3500         https://bugs.webkit.org/show_bug.cgi?id=13631
3501
3502         Tests: fast/events/pageshow-pagehide-on-back-cached-with-frames.html
3503                fast/loader/frames-with-unload-handlers-in-page-cache.html
3504
3505         * loader/FrameLoader.cpp:
3506         (WebCore::FrameLoader::canCachePageContainingThisFrame):
3507         (WebCore::FrameLoader::logCanCacheFrameDecision):
3508
3509 2009-09-03  Steve VanDeBogart  <vandebo@chromium.org>
3510
3511         Reviewed by Eric Seidel.
3512
3513         Handle middle click in Chromium like QT
3514         https://bugs.webkit.org/show_bug.cgi?id=28696
3515
3516         Tested by middle-click-onpaste.html.
3517
3518         * platform/Pasteboard.h:
3519         * platform/chromium/ChromiumBridge.h:
3520         * platform/chromium/ClipboardChromium.cpp:
3521         (WebCore::ClipboardChromium::getData):
3522         * platform/chromium/PasteboardChromium.cpp:
3523         (WebCore::Pasteboard::Pasteboard):
3524         (WebCore::Pasteboard::isSelectionMode):
3525         (WebCore::Pasteboard::setSelectionMode):
3526         (WebCore::Pasteboard::canSmartReplace):
3527         (WebCore::Pasteboard::plainText):
3528         (WebCore::Pasteboard::documentFragment):
3529         * platform/chromium/PasteboardPrivate.h:
3530         (WebCore::PasteboardPrivate::):
3531
3532 2009-09-03  Brady Eidson  <beidson@apple.com>
3533
3534         Reviewed by Sam Weinig.
3535
3536         More partial work towards "Page Cache should support pages with Frames"
3537         https://bugs.webkit.org/show_bug.cgi?id=13631
3538
3539         Fix a bug where subframes weren't asked if they were cacheable.
3540
3541         No new tests, especially since page caching for frames isn't turned on yet.
3542         A layout test will come in my next patch, which enables frames in the page cache.
3543
3544         * loader/FrameLoader.cpp:
3545         (WebCore::FrameLoader::canCachePageContainingThisFrame):
3546
3547 2009-09-03  Adam Barth  <abarth@webkit.org>
3548
3549         Reviewed by eric@webkit.org.
3550
3551         https://bugs.webkit.org/show_bug.cgi?id=24696
3552
3553         Added mixed content methods to FrameLoaderClient.
3554
3555         * loader/EmptyClients.h:
3556         (WebCore::EmptyFrameLoaderClient::didDisplayInsecureContent):
3557         (WebCore::EmptyFrameLoaderClient::didRunInsecureContent):
3558         * loader/FrameLoaderClient.h:
3559
3560 2009-09-03  Kevin Watters  <kevinwatters@gmail.com>
3561
3562         Reviewed by Kevin Ollivier.
3563
3564         [wx] Frames support
3565         https://bugs.webkit.org/show_bug.cgi?id=19041
3566
3567         * page/wx/EventHandlerWx.cpp:
3568         (WebCore::EventHandler::passMousePressEventToSubframe):
3569         (WebCore::EventHandler::passMouseMoveEventToSubframe):
3570         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
3571         (WebCore::EventHandler::passWheelEventToWidget):
3572         (WebCore::EventHandler::tabsToAllControls):
3573         (WebCore::EventHandler::passSubframeEventToSubframe):
3574         (WebCore::EventHandler::passMouseDownEventToWidget):
3575         * platform/wx/RenderThemeWx.cpp:
3576         (WebCore::nativeWindowForRenderObject):
3577         (WebCore::RenderThemeWx::paintButton):