WebCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2009-05-11  Darin Adler  <darin@apple.com>
2
3         Reviewed by Dan Bernstein.
4
5         <rdar://problem/6276843> REGRESSION: TextIterator generates
6         an extra newline for ranges that start outside of body
7
8         * editing/TextIterator.cpp:
9         (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
10         Check startPos for null, not just currPos.
11
12 2009-05-11  Chris Fleizach  <cfleizach@apple.com>
13
14         Reviewed by Darin Adler.
15
16         Bug 25700: Regression:WebKit:cmd-left and cmd-right use to go to the beginning and end of a line in Mail
17         https://bugs.webkit.org/show_bug.cgi?id=25700
18
19         Keyboard selection movement handlers need to also watch for the Cmd key when Accessibility is enabled.
20         Note: This code is only used when accessibility is enabled.
21
22         * page/EventHandler.cpp:
23         (WebCore::EventHandler::handleKeyboardSelectionMovement):
24
25 2009-05-11  David Kilzer  <ddkilzer@apple.com>
26
27         Bug 25087: Test for ENABLE_FOO macros consistently in IDL files
28
29         <https://bugs.webkit.org/show_bug.cgi?id=25087>
30
31         Reviewed by Timothy Hatcher.
32
33         Change tests for ENABLE macros to check for both existence and
34         value:
35
36         - Negative:  #if !defined(ENABLE_FOO) || !ENABLE_FOO
37         - Positive:  #if defined(ENABLE_FOO) && ENABLE_FOO
38
39         * css/CSSCharsetRule.idl:
40         * css/CSSPrimitiveValue.idl:
41         * css/RGBColor.idl:
42         * dom/Attr.idl:
43         * dom/DOMCoreException.idl:
44         * dom/DOMImplementation.idl:
45         * dom/Document.idl:
46         * dom/Element.idl:
47         * dom/Event.idl:
48         * dom/EventException.idl:
49         * dom/KeyboardEvent.idl:
50         * dom/MessagePort.idl:
51         * dom/MouseEvent.idl:
52         * dom/Node.idl:
53         * dom/ProcessingInstruction.idl:
54         * dom/Range.idl:
55         * dom/RangeException.idl:
56         * dom/WheelEvent.idl:
57         * html/CanvasPixelArray.idl:
58         * html/HTMLAnchorElement.idl:
59         * html/HTMLAppletElement.idl:
60         * html/HTMLAreaElement.idl:
61         * html/HTMLBaseFontElement.idl:
62         * html/HTMLCanvasElement.idl:
63         * html/HTMLDocument.idl:
64         * html/HTMLElement.idl:
65         * html/HTMLEmbedElement.idl:
66         * html/HTMLFrameElement.idl:
67         * html/HTMLIFrameElement.idl:
68         * html/HTMLImageElement.idl:
69         * html/HTMLInputElement.idl:
70         * html/HTMLLinkElement.idl:
71         * html/HTMLObjectElement.idl:
72         * html/HTMLOptionElement.idl:
73         * html/HTMLOptionsCollection.idl:
74         * html/HTMLSelectElement.idl:
75         * html/HTMLStyleElement.idl:
76         * html/ImageData.idl:
77         * inspector/InspectorController.idl:
78         * loader/appcache/DOMApplicationCache.idl:
79         * page/Console.idl:
80         * page/Coordinates.idl:
81         * page/DOMSelection.idl:
82         * page/DOMWindow.idl:
83         * page/Geoposition.idl:
84         * page/History.idl:
85         * page/Location.idl:
86         * page/Navigator.idl:
87         * svg/SVGElementInstance.idl:
88         * svg/SVGException.idl:
89         * workers/WorkerContext.idl:
90         * xml/XMLHttpRequestException.idl:
91         * xml/XPathException.idl:
92
93 2009-05-11  Norbert Leser  <norbert.leser@nokia.com>
94
95         Reviewed by Darin Adler.
96
97         Bug 24538: class/struct mixup in forward declarations
98         https://bugs.webkit.org/show_bug.cgi?id=24538
99
100         * inspector/InspectorResource.h:
101         * loader/CachedFont.h:
102         * loader/appcache/ApplicationCache.h:
103         * rendering/RenderBlock.h:
104         * rendering/RootInlineBox.h:
105         * rendering/SVGInlineTextBox.h:
106         * svg/SVGGlyphElement.h:
107         * svg/SVGHKernElement.h:
108
109 2009-05-11  Norbert Leser  <norbert.leser@nokia.com>
110
111         Reviewed by Darin Adler.
112
113         Bug 24539: Unresolved CSSMutableStyleDeclaration
114         https://bugs.webkit.org/show_bug.cgi?id=24539
115
116         The Symbian tools can't compile and link this without this include.
117         It's not clear why this is different from other toolsets or why it affects
118         only this header file, but adding the include for now.
119
120         * editing/RemoveCSSPropertyCommand.h: Added include of CSSMutableStyleDeclaration.h.
121
122 2009-05-11  Alice Liu  <alice.liu@apple.com>
123
124         Reviewed by Dan Bernstein.
125
126         https://bugs.webkit.org/show_bug.cgi?id=25701
127         REGRESSION(r38788 & r42020): styled searchfields look wrong on Windows, affects Facebook
128
129         Test: fast/forms/search-styled.html
130
131         * css/themeWin.css:
132         Remove the overriding of -webkit-appearance for searchfields. This will cause background
133         images to not be honored when styling searchfields
134
135         * rendering/RenderThemeWin.cpp:
136         (WebCore::RenderThemeWin::adjustSearchFieldStyle):
137         * rendering/RenderThemeWin.h:
138         Re-instate final adjustments to searchfield styling that were removed in r42020
139
140 2009-05-11  Brady Eidson  <beidson@apple.com>
141
142         Fix Windows build
143
144         * platform/network/cf/ResourceHandleCFNet.cpp:
145         (WebCore::createCFURLResponseWithDefaultMIMEType):
146
147 2009-05-11  Nate Chapin  <japhet@google.com>
148
149         Reviewed by Dimitri Glazkov.
150
151         https://bugs.webkit.org/show_bug.cgi?id=25626
152         Update V8ElementCustom.cpp to match the current API of Node.
153
154         * bindings/v8/custom/V8ElementCustom.cpp:
155         (WebCore::ACCESSOR_SETTER): Changed a couple of method names to match current names.
156         (WebCore::ACCESSOR_GETTER): Changed a method name to match current name.
157
158 2009-05-11  Brady Eidson  <beidson@apple.com>
159
160         Fix Windows build
161
162         * platform/network/cf/ResourceHandleCFNet.cpp:
163         (WebCore::createCFURLResponseWithDefaultMIMEType):
164         (WebCore::WebCoreSynchronousLoader::load):
165
166 2009-05-11  Brady Eidson  <beidson@apple.com>
167
168         Fix Windows build
169
170         * platform/network/cf/ResourceHandleCFNet.cpp:
171         (WebCore::createCFURLResponseWithDefaultMIMEType):
172
173 2009-05-11  Nate Chapin  <japhet@google.com>
174
175         Reviewed by Dimitri Glazkov.
176
177         V8CustomBinding.cpp is missing a header file
178
179         https://bugs.webkit.org/show_bug.cgi?id=25644
180
181         * bindings/v8/custom/V8CustomBinding.cpp: Added #include "V8Proxy.h".
182
183 2009-05-11  Aaron Boodman  <aa@chromium.org>
184
185         Reviewed by Darin Fisher.
186
187         https://bugs.webkit.org/show_bug.cgi?id=25634
188         Change V8Proxy::retrieveActiveFrame() call sites to V8Proxy::retrieveFrameForEnteredContext().
189
190         Also, change instances of ScriptController::retrieveActiveFrame() to
191         V8::retrieveFrameForEnteredContext() for consistency.
192
193
194         See http://codereview.chromium.org/113085 for the corresponding Chromium change.
195
196         * bindings/v8/custom/V8DOMWindowCustom.cpp:
197         (WebCore::V8Custom::WindowSetLocation):
198         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
199         (WebCore::CALLBACK_FUNC_DECL):
200         * bindings/v8/custom/V8LocationCustom.cpp:
201         (WebCore::navigateIfAllowed):
202         (WebCore::ACCESSOR_SETTER):
203         (WebCore::CALLBACK_FUNC_DECL):
204
205 2009-05-11  Brady Eidson  <beidson@apple.com>
206
207         Reviewed by Darin Adler.
208
209         <rdar://problem/5972751> Local image files (BMP, ico) can be misidentified as HTML.
210
211         First part of the fix - Disable content sniffing for file resources which never should've been happening anyways.
212         Second part of the fix - If the networking layer doesn't give us back a MIME type default to "application/octet-stream".
213
214         * platform/MIMETypeRegistry.cpp:
215         (WebCore::defaultMIMEType): "application/octet-stream"
216         * platform/MIMETypeRegistry.h:
217
218         * platform/network/ResourceHandle.cpp:
219         (WebCore::ResourceHandle::create): If content sniffing is true, double check with "shouldContentSniffRequest()" which
220           might override it to false.
221         (WebCore::ResourceHandle::shouldContentSniffURL): Return false for file:// urls, true for everything else.
222         * platform/network/ResourceHandle.h:
223
224         * platform/network/cf/ResourceHandleCFNet.cpp:
225         (WebCore::createCFURLResponseWithDefaultMIMEType): Create a copy of the CFURLRequest with the default MIME type instead
226           of null.
227         (WebCore::didReceiveResponse): If the MIME type for the response is null, create a copy with the default MIME type.
228         (WebCore::WebCoreSynchronousLoader::load): Use shouldContentSniffRequest() to make synchronous loads have the same 
229           sniffing policy as asynchronous loads.  Also, correct a null MIME type by creating a copy with the default type.
230
231         * platform/network/mac/ResourceHandleMac.mm:
232         (WebCore::ResourceHandle::loadResourceSynchronously): Use shouldContentSniffRequest() to make synchronous loads have the
233           same sniffing policy as asynchronous loads.
234         (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): Set up the [NSURLResponse MIMEType] swizzling if
235           it hasn't been set up yet.
236         (_web_NSURLResponse_MIMEType): Either return the actual MIME type of the response, or the default MIME type if it's nil.
237
238         * xml/XMLHttpRequest.cpp:
239         (WebCore::XMLHttpRequest::loadRequestAsynchronously): Remove the workaround added in r29370 as it will now be covered by
240           the new mechanism.
241
242 2009-05-11  David Kilzer  <ddkilzer@apple.com>
243
244         Fix typo "APPLICATION_CAHE_DYNAMIC_ENTRIES" to "APPLICATION_CACHE_DYNAMIC_ENTRIES"
245
246         This was added in r39816 to disable dynamic entries.  They are
247         still disabled after fixing the typo since this feature define
248         is never set anywhere.
249
250         * bindings/js/JSDOMApplicationCacheCustom.cpp:
251         * loader/appcache/DOMApplicationCache.idl:
252
253 2009-05-11  Dmitry Titov  <dimich@chromium.org>
254
255         Reviewed by Alexey Proskuryakov and Adam Roben.
256
257         https://bugs.webkit.org/show_bug.cgi?id=25348
258         Change WTF::ThreadIdentifier to be an actual (but wrapped) thread id, remove ThreadMap.
259
260         Most of the change is in WTF.
261         Unless noted, all the following files changed to use the new ThreadIdentifier::isValid()
262         method instead of just doing 'if(m_threadID)' kind of checks, since ThreadIdentifier
263         is now a class rather then an integer.
264         Also, there is no need to initialize threadID in constructors to 0 now.
265
266         * dom/XMLTokenizerLibxml2.cpp:
267         (WebCore::libxmlLoaderThread): use DEFINE_STATIC_LOCAL and accessor function for static thread id,
268         since now ThreadIdentifier needs construction and we avoid having global initializers.
269         (WebCore::matchFunc): use the new accessor function.
270         (WebCore::openFunc): ditto.
271         (WebCore::createStringParser): ditto.
272         (WebCore::createMemoryParser): ditto.
273         * loader/icon/IconDatabase.cpp:
274         (WebCore::IconDatabase::open):
275         * platform/sql/SQLiteDatabase.cpp:
276         (WebCore::SQLiteDatabase::SQLiteDatabase):
277         (WebCore::SQLiteDatabase::close):
278         * storage/DatabaseThread.cpp:
279         (WebCore::DatabaseThread::start):
280         (WebCore::DatabaseThread::databaseThread): remove m_threadID from debug output.
281         * storage/LocalStorageThread.cpp:
282         (WebCore::LocalStorageThread::start):
283         (WebCore::LocalStorageThread::scheduleImport):
284         (WebCore::LocalStorageThread::scheduleSync):
285         (WebCore::LocalStorageThread::terminate):
286         * workers/WorkerThread.cpp:
287         (WebCore::WorkerThread::start):
288         (WebCore::WorkerThread::WorkerThread):
289         (WebCore::WorkerThread::start):
290
291 2009-05-11  Brady Eidson  <beidson@apple.com>
292
293         Reviewed by Darin Adler.
294
295         Remove unused header that declared one function which was never defined anywhere.
296
297         * WebCore.vcproj/WebCore.vcproj:
298         * platform/network/cf/ResourceResponseCFNet.cpp: Change to include ResourceResponse.h (which really means
299           platform/network/cf/ResourceResponse.h)
300         * platform/network/cf/ResourceResponseCFNet.h: Removed.
301
302 2009-05-11  Dimitri Glazkov  <dglazkov@chromium.org>
303
304         Reviewed by Timothy Hatcher.
305
306         https://bugs.webkit.org/show_bug.cgi?id=25213
307         Fix assert during Inspector destruction.
308
309         * inspector/InspectorController.cpp:
310         (WebCore::InspectorController::inspectedPageDestroyed): Moved closing
311             inspector above removing InspectorController object to fix JS errors,
312             added clearing inspector page ptr.
313
314 2009-05-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
315
316         Reviewed by Holger Freyther.
317
318         [Qt] Make sure that public APIs are properly exported on all Qt platforms
319         https://bugs.webkit.org/show_bug.cgi?id=25601
320
321         * WebCore.pro: Define QT_MAKEDLL for all non-static builds, not just for win
322
323 2009-05-11  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
324
325         Reviewed by Holger Freyther.
326
327         https://bugs.webkit.org/show_bug.cgi?id=24284
328
329         * WebCore.pro: duplicated values removed from INCLUDEPATH
330
331 2009-05-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
332
333         Reviewed by Eric Seidel.
334
335         Build fix Symbian; clean Up WebKit/Qt if ENABLE_NETSCAPE_PLUGIN_API=0
336         https://bugs.webkit.org/show_bug.cgi?id=24688
337
338         * WebCore.pro: Use platform independent plugin stubs if ENABLE_NETSCAPE_PLUGIN_API=0
339         * platform/qt/TemporaryLinkStubs.cpp: Remove stub functions for plugins
340
341 2009-05-10  Dan Bernstein  <mitz@apple.com>
342
343         Reviewed by Darin Adler.
344
345         - fix a crash when deactivating a document that had adopted a <form>
346           element
347
348         Test: fast/dom/HTMLFormElement/document-deactivation-callback-crash.html
349
350         * html/HTMLFormElement.cpp:
351         (WebCore::HTMLFormElement::didMoveToNewOwnerDocument): Corrected the
352         logic here: <form> elements should be registered for document activation
353         callbacks if and only if autocomplete is off.
354
355 2009-05-10  Alexey Proskuryakov  <ap@webkit.org>
356
357         Reviewed by Dan Bernstein.
358
359         <rdar://problem/6867598> REGRESSION (r42483): Have to enter credentials twice when trying
360         to view protected MobileMe video
361
362         Add a temporary workaround.
363
364         * platform/network/ResourceHandleInternal.h:
365         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
366         Added an m_useSiteSpecificQuirks boolean (Mac-only). A Frame pointer is only available when
367         starting a request, so we need to store this data for later use.
368
369         * platform/network/mac/ResourceHandleMac.mm:
370         (WebCore::ResourceHandle::start): Initialize m_useSiteSpecificQuirks.
371         (WebCore::ResourceHandle::receivedCredential): Use per-session credentials with gallery.me.com.
372
373 2009-05-10  Alexey Proskuryakov  <ap@webkit.org>
374
375         Reviewed by Dan Bernstein.
376
377         <rdar://problem/6870383> Have to enter credentials twice when downloading from a protected page
378
379         * platform/network/cf/AuthenticationCF.cpp:
380         * platform/network/cf/AuthenticationCF.h:
381         (WebCore::WebCoreCredentialStorage::set):
382         (WebCore::WebCoreCredentialStorage::get):
383         * platform/network/cf/ResourceHandleCFNet.cpp:
384         Move WebCore credential storage to AuthenticationCF, so that WebKit could use it (macthing
385         an earlier Mac change).
386
387 2009-05-10  Alexey Proskuryakov  <ap@webkit.org>
388
389         Reviewed by Dan Bernstein.
390
391         Match newer XMLHttpRequest draft and make withCredential setter raise an exception when
392         called at a wrong time.
393
394         No test, because we are waiting for a newer version of system frameworks to test the attribute.
395
396         * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::setWithCredentials):
397         * xml/XMLHttpRequest.h:
398         * xml/XMLHttpRequest.idl:
399         Raise INVALID_STATE_ERR if the state is not OPENED, or if the send() flag is true.
400
401 2009-05-10  Dan Bernstein  <mitz@apple.com>
402
403         Reviewed by Dave Kilzer.
404
405         - fix https://bugs.webkit.org/show_bug.cgi?id=25602
406           REGRESSION: fast/overflow/overflow-focus-ring.html seems double-drawn
407           on ToT
408
409         Test: fast/layers/self-painting-outline.html
410
411         * rendering/RenderLayer.cpp:
412         (WebCore::RenderLayer::paintLayer): Paint the layer's own outline only
413         if it is a self-painting layer.
414
415 2009-05-09  Dan Bernstein  <mitz@apple.com>
416
417         Reviewed by Geoffrey Garen and Mark Rowe.
418
419         - fix https://bugs.webkit.org/show_bug.cgi?id=25666
420           Assertion failure in Node::setDocument()
421           (willMoveToNewOwnerDocumentWasCalled) when adopting a <form> element
422
423         Test: fast/dom/HTMLFormElement/adopt-assertion.html
424
425         * html/HTMLFormElement.cpp:
426         (WebCore::HTMLFormElement::willMoveToNewOwnerDocument): Overrides of
427         this method are required to call the base class implementation. Do it.
428         (WebCore::HTMLFormElement::didMoveToNewOwnerDocument): Ditto.
429
430 2009-03-29  Kevin Ollivier  <kevino@theolliviers.com>
431
432         Reviewed by Maciej Stachowiak.
433
434         WebCore::DocumentLoader::mainReceivedError now asserts if error.isNull(), so
435         make sure CURL does not create empty ResourceError() objects.
436         
437         https://bugs.webkit.org/show_bug.cgi?id=24927
438
439         * platform/network/curl/ResourceHandleManager.cpp:
440         (WebCore::ResourceHandleManager::downloadTimerCallback):
441
442 2009-05-09  Gustavo Noronha Silva  <gns@gnome.org>
443
444         Build fix, adding missing files to make dist.
445
446         * GNUmakefile.am:
447
448 2009-05-08  Simon Fraser  <simon.fraser@apple.com>
449
450         Reviewed by Dan Bernstein
451         
452         https://bugs.webkit.org/show_bug.cgi?id=25656
453         
454         Reduce the inline capacity of CSSParserValueList's m_values
455         vector to reduce the size of CSSParserValueList from 544 to 160 bytes in 64-bit.
456
457         * css/CSSParserValues.h:
458
459 2009-05-08  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
460
461         Not reviewed. Used sort-Xcode-project-file to sort the XCode project file - it hasn't been done for a while.
462
463         * WebCore.xcodeproj/project.pbxproj:
464
465 2009-05-08  Dan Bernstein  <mitz@apple.com>
466
467         Reviewed by Darin Adler.
468
469         - fix <rdar://problem/6864786> REGRESSION: Crash below
470           ApplyStyleCommand::applyInlineStyleToRange when reviewing a patch in
471           Bugzilla
472
473         Test: editing/style/apply-through-end-of-document.html
474
475         * editing/ApplyStyleCommand.cpp:
476         (WebCore::ApplyStyleCommand::applyInlineStyleToRange): Added a null
477         check for the case of a range extending through the end of the document,
478         in which pastEndNode is 0.
479
480 2009-05-08  Douglas R. Davidson  <ddavidso@apple.com>
481
482         Reviewed by Beth Dakin.
483
484         <rdar://problem/6857446> REGRESSION (Safari 3-4): Contraction base 
485         marked as misspelled even though contraction is a word
486         Make sure spelling underline does not persist on words like 
487         <doesn't>.  
488
489         * editing/TypingCommand.cpp:
490         (WebCore::TypingCommand::typingAddedToOpenCommand):
491
492 2009-05-08  Kevin Watters  <kevinwatters@gmail.com>
493
494         Reviewed by Kevin Ollivier.
495
496         Make sure the path's refdata isn't deleted before we're done with the object.
497         
498         https://bugs.webkit.org/show_bug.cgi?id=25652
499
500         * platform/graphics/wx/PathWx.cpp:
501         (WebCore::Path::~Path):
502         (WebCore::Path::Path):
503         (WebCore::Path::translate):
504
505 2009-05-08  Kevin Watters  <kevinwatters@gmail.com>
506
507         Reviewed by Darin Adler.
508
509         Fix for memory leak on Mac.
510         
511         https://bugs.webkit.org/show_bug.cgi?id=25650
512
513         * platform/wx/wxcode/mac/carbon/fontprops.cpp:
514         (wxFontProperties::wxFontProperties):
515
516 2009-05-08  Beth Dakin  <bdakin@apple.com>
517
518         Reviewed by Dan Bernstein.
519
520         <rdar://problem/6857446> REGRESSION (r37591): Cannot print or 
521         preview from maps.yandex.ru
522
523         We need to fall into the stretchesToViewHeight() quirk when we are 
524         printing and we are the root and the root has percentage height OR 
525         when we are the body and the root has percentage height. Otherwise 
526         we have a height of 0 and can run into painting troubles.
527
528         * rendering/RenderBox.cpp:
529         (WebCore::RenderBox::calcHeight):
530
531 2009-05-08  Douglas Davidson  <ddavidso@apple.com>
532
533         Reviewed by Darin Adler.
534
535         Fixes for <rdar://problem/6852771>.
536         Prevent text checking replacement immediately after an apostrophe
537         and automatic link addition except immediately after typing.
538
539         * editing/Editor.cpp:
540         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
541
542 2009-05-08  Eric Carlson  <eric.carlson@apple.com>
543
544         Reviewed by Darin Adler.
545         
546         https://bugs.webkit.org/show_bug.cgi?id=25627
547         Bug 25627: HTMLMediaElement: some errors should fire on <source> elements
548
549         Update for HTML5 spec change to fire 'error' events on <source> element
550         when there is a failure while processing/loading a <source>.
551
552         Test: media/video-source-error.html
553
554         * html/HTMLMediaElement.cpp:
555         (WebCore::HTMLMediaElement::enqueueEvent): Remove white-space.
556         (WebCore::HTMLMediaElement::loadInternal): Call cancelPendingEventsAndCallbacks instead
557         of just calling m_pendingEvents.clear() as we now also need to cancel pending errors on
558         all <source> element. 
559         (WebCore::HTMLMediaElement::selectMediaResource): Call isSafeToLoadURL() here instead of in
560         loadResource() as we need to report errors differently depending on the type of failure. Use
561         KURL instead of String.
562         (WebCore::HTMLMediaElement::loadNextSourceChild): nextSourceChild -> selectNextSourceChild.
563         Fail silently when there are no more <source> canditates because that is what spec mandates.
564         Keep url as KURL instead of converting to String.
565         (WebCore::HTMLMediaElement::loadResource): ASSERT that the URL is safe to load as we now 
566         assume the safety check now done before this function. Takes KURL instead of String.
567         (WebCore::HTMLMediaElement::isSafeToLoadURL): New, checks to see if a url is safe to load, logs
568         failure if not.
569         (WebCore::HTMLMediaElement::noneSupported): MEDIA_ERR_NONE_SUPPORTED -> MEDIA_ERR_SRC_NOT_SUPPORTED
570         (WebCore::HTMLMediaElement::cancelPendingEventsAndCallbacks): New, clear all events pending on
571         the media and all source elements.
572         (WebCore::HTMLMediaElement::setNetworkState): Fire an error on the source element when the 
573         the failure happened while processing one. Only call nonSupported() when the failure happened
574         while processing media element 'src' attribute.
575         (WebCore::HTMLMediaElement::havePotentialSourceChild): nextSourceChild -> selectNextSourceChild.
576         Deal with selectNextSourceChild returning a KURL instead of a String.
577         (WebCore::HTMLMediaElement::selectNextSourceChild): Renamed from nextSourceChild, add optional
578         param to control whether or not errors are fired on a source element when it will not be used.
579         Check safety of url here instead of waiting until loadResource(). Return a KURL instead of a
580         String.
581         (WebCore::HTMLMediaElement::initialURL): nextSourceChild -> selectNextSourceChild. Keep url as
582         a KURL instead of a String.
583         * html/HTMLMediaElement.h:
584         (WebCore::HTMLMediaElement::):
585
586         * html/HTMLSourceElement.cpp:
587         (WebCore::HTMLSourceElement::HTMLSourceElement): Initialize timer related variables.
588         (WebCore::HTMLSourceElement::scheduleErrorEvent): New, start one-shot timer to fire an error
589         event ASAP.
590         (WebCore::HTMLSourceElement::cancelPendingErrorEvent): New, cancel pending error event.
591         (WebCore::HTMLSourceElement::errorEventTimerFired): New, fire error event if it has not been
592         cancelled.
593         * html/HTMLSourceElement.h:
594
595         * html/MediaError.h: 
596         (WebCore::MediaError::): MEDIA_ERR_NONE_SUPPORTED -> MEDIA_ERR_SRC_NOT_SUPPORTED
597         * html/MediaError.idl: Ditto
598
599 2009-05-08  Dan Bernstein  <mitz@apple.com>
600
601         Reviewed by Maciej Stachowiak.
602
603         - fix <rdar://problem/6859955> Undoing typed text after selecting all
604           leaves non-text areas highlighted
605
606         Test: fast/repaint/selection-clear.html
607
608         When RenderView::clearSelection() is called from
609         SelectionController::nodeWillBeRemoved(), selected renderers may already
610         be marked for layout, which means that they can no longer compute
611         their selection repaint info. Instead, an empty IntRect (or GapRects) is
612         returned, leading to incomplete repaint.
613
614         The fix is not to rely on individual renderers when clearing the
615         selection, but instead, cache the bounding rectangle of the selected
616         blocks' GapRects when setting the selection, and invalidate that
617         entire rectangle when clearing it.
618
619         * rendering/RenderView.cpp:
620         (WebCore::RenderView::setSelection): Added a parameter saying whether
621         the repainting of selected blocks should include both
622         previously-selected areas and newly-selected areas or only
623         newly-selected areas. The default is both. Also compute
624         m_cachedSelectionBounds to be the bounding rectangle of the
625         new selection's BlockSelectionInfos' GapRects.
626         (WebCore::RenderView::clearSelection): Repaint m_cachedSelectionBounds,
627         and tell setSelection() that it should not paint areas that were in
628         the old selection's BlockSelectionInfos' GapRects.
629         * rendering/RenderView.h:
630         (WebCore::RenderView::):
631
632 2009-05-08  Alexey Proskuryakov  <ap@webkit.org>
633
634         Reviewed by Maciej Stachowiak.
635
636         <rdar://problem/6868773> NPN_GetAuthenticationInfo does not work with non-permanent credentials
637
638         * WebCore.base.exp:
639         * platform/network/mac/AuthenticationMac.h:
640         (WebCore::WebCoreCredentialStorage::set):
641         (WebCore::WebCoreCredentialStorage::get):
642         * platform/network/mac/AuthenticationMac.mm:
643         * platform/network/mac/ResourceHandleMac.mm:
644         Moved WebCoreCredentialStorage to AuthenticationMac, so that it could be used from WebKit.
645
646 2009-05-08  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
647
648         Reviewed by Simon Hausmann.
649
650         Fix the Qt build, add missing JSC_HOST_CALL macros to the runtime
651         call methods.
652
653         * bridge/qt/qt_runtime.h:
654
655 2009-05-08  Jan Michael Alonzo  <jmalonzo@webkit.org>
656
657         Reviewed by Mark Rowe.
658
659         Add missing strings to localizedStrings.js
660         https://bugs.webkit.org/show_bug.cgi?id=25635
661
662         Add the strings "Delete", "Key", "Refresh" and "Value".
663
664         * English.lproj/localizedStrings.js:
665
666 2009-05-08  Robert Hogan  <robert@roberthogan.net>
667
668         Reviewed, tweaked and landed by Alexey Proskuryakov.
669
670         https://bugs.webkit.org/show_bug.cgi?id=24992
671         [Qt] crash at http://browserspy.dk/browser.php
672
673         This cannot be easily tested in DRT, because it relies on interaction with QApplication,
674         but the added assertions guard against re-introducing this issue.
675
676         * loader/FrameLoader.cpp: (WebCore::FrameLoader::didOpenURL): Don't make client calls
677         while the frame is being constructed, because the intermediate state without a document
678         is something we don't want to expose.
679
680         * page/Frame.cpp:
681         (WebCore::Frame::setJSStatusBarText): Assert that the frame has a document, which is an
682         approximation of it being in a consistent state for client calls.
683         (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
684
685 2009-05-07  Mark Rowe  <mrowe@apple.com>
686
687         Rubber-stamped by Oliver Hunt.
688
689         Fix <https://bugs.webkit.org/show_bug.cgi?id=25640>.
690         Bug 25640: Crash on quit in r43384 nightly build on Leopard w/ Safari 4 beta installed
691         
692         Roll out r43366 as it removed symbols that Safari 4 Beta uses.
693
694         * dom/XMLTokenizerLibxml2.cpp:
695         (WebCore::matchFunc):
696         (WebCore::openFunc):
697         (WebCore::createStringParser):
698         (WebCore::createMemoryParser):
699         * loader/icon/IconDatabase.cpp:
700         (WebCore::IconDatabase::open):
701         * platform/sql/SQLiteDatabase.cpp:
702         (WebCore::SQLiteDatabase::SQLiteDatabase):
703         (WebCore::SQLiteDatabase::close):
704         * storage/DatabaseThread.cpp:
705         (WebCore::DatabaseThread::DatabaseThread):
706         (WebCore::DatabaseThread::start):
707         (WebCore::DatabaseThread::databaseThread):
708         * storage/LocalStorageThread.cpp:
709         (WebCore::LocalStorageThread::LocalStorageThread):
710         (WebCore::LocalStorageThread::start):
711         (WebCore::LocalStorageThread::localStorageThread):
712         (WebCore::LocalStorageThread::scheduleImport):
713         (WebCore::LocalStorageThread::scheduleSync):
714         (WebCore::LocalStorageThread::terminate):
715         * workers/WorkerThread.cpp:
716         (WebCore::WorkerThread::WorkerThread):
717         (WebCore::WorkerThread::start):
718
719 2009-05-08  Xan Lopez  <xlopez@igalia.com>
720
721         Reviewed by Gustavo Noronha.
722
723         Unify scrolling code via adjustments and keys. Use the WebCore
724         defined constants, since that's what people are most used to at
725         this point.
726
727         * platform/gtk/ScrollViewGtk.cpp:
728         (WebCore::ScrollView::platformHandleHorizontalAdjustment):
729         (WebCore::ScrollView::platformHandleVerticalAdjustment):
730
731 2009-05-07  David Levin  <levin@chromium.org>
732
733         Reviewed by NOBODY.
734         Suggested by Oliver Hunt.
735
736         Rolling back http://trac.webkit.org/changeset/43385
737         because we have to use mac artwork for the underline on OSX.
738
739         * platform/graphics/cg/GraphicsContextCG.cpp:
740         * platform/graphics/mac/GraphicsContextMac.mm:
741         (WebCore::createPatternColor):
742         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
743         * platform/graphics/win/GraphicsContextCGWin.cpp:
744         (WebCore::setCGStrokeColor):
745         (WebCore::spellingPatternColor):
746         (WebCore::grammarPatternColor):
747         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
748
749 2009-05-07  John Grabowski  <jrg@chromium.org>
750
751         Reviewed by Simon Fraser.
752   
753         https://bugs.webkit.org/show_bug.cgi?id=25573
754         Unify use of CG-common routine for drawLineForMisspellingOrBadGrammar.
755         Cleanup for WebKit, but required for Chromium happiness.
756
757         * platform/graphics/cg/GraphicsContextCG.cpp:
758         (WebCore::spellingPatternColor):
759         (WebCore::grammarPatternColor):
760         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
761         * platform/graphics/mac/GraphicsContextMac.mm:
762         * platform/graphics/win/GraphicsContextCGWin.cpp:
763
764 2009-05-07  Darin Adler  <darin@apple.com>
765
766         Reviewed by Simon Fraser.
767
768         Bug 25575: Registered mutation event listener crashes HTMLMediaElement
769         https://bugs.webkit.org/show_bug.cgi?id=25575
770
771         Test: fast/media/video-controls-with-mutation-event-handler.html
772
773         * rendering/MediaControlElements.cpp:
774         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement): Don't call setAttribute.
775         * rendering/RenderMedia.cpp:
776         (WebCore::RenderMedia::createTimeline): Call setAttribute here.
777
778 2009-05-07  Simon Fraser  <simon.fraser@apple.com>
779
780         Rubber Stamped by Dave Hyatt
781         
782         Shuffle the data members to minimize padding.
783
784         * rendering/RenderTableSection.cpp:
785         (WebCore::RenderTableSection::RenderTableSection):
786         * rendering/RenderTableSection.h:
787
788 2009-05-07  Simon Fraser  <simon.fraser@apple.com>
789
790         Rubber Stamped by Dave Hyatt
791         
792         Shuffle the data members to make Events 8 bytes smaller in 64-bit.
793
794         * dom/Event.cpp:
795         (WebCore::Event::Event):
796         * dom/Event.h:
797
798 2009-05-07  Eric Seidel  <eric@webkit.org>
799
800         Reviewed by Beth Dakin.
801
802         Fix regression caused by r41469, add test case to prevent it from 
803         happening again.
804         https://bugs.webkit.org/show_bug.cgi?id=25252
805   
806         hasLayer() was true during removeOnlyThisLayer()/
807         updateLayerPositions()
808         which caused updateLayerPosition()'s walk up the render tree to 
809         include offsets from the layer we were about to remove.
810   
811         I'm not 100% convinced that this wasn't a bug in 
812         updateLayerPosition() or in RenderBoxModelObject::styleDidChange, 
813         because the layer in question is not the containing block for the 
814         block which gets laid out wrong. But this restores the previous 
815         behavior and adds a test.  So the next time someone is in here re-
816         factoring, they will at least know if they break something.
817   
818         Test: fast/layers/remove-only-this-layer-update.html
819
820         * rendering/RenderBoxModelObject.cpp:
821         (WebCore::RenderBoxModelObject::destroyLayer):
822         * rendering/RenderLayer.cpp:
823         (WebCore::RenderLayer::removeOnlyThisLayer):
824         * rendering/RenderObject.cpp:
825         (WebCore::RenderObject::destroy):
826         * rendering/RenderWidget.cpp:
827         (WebCore::RenderWidget::destroy):
828
829 2009-05-07  Dmitry Titov  <dimich@chromium.org>
830
831         Attempt to fix GTK build.
832
833         * platform/graphics/GlyphPageTreeNode.h: add #include <string.h> to ensure memcpy and memset are defined.
834
835 2009-05-07  Oliver Hunt  <oliver@apple.com>
836
837         Reviewed by Gavin Barraclough.
838
839         Improve native call performance
840
841         Add calling convention declarations where necessary, and update bindings
842         script to generate them as well.
843
844         * bindings/js/JSHTMLCollectionCustom.cpp:
845         (WebCore::callHTMLCollection):
846         * bindings/js/JSNodeListCustom.cpp:
847         (WebCore::callNodeList):
848         * bindings/js/JSPluginElementFunctions.cpp:
849         (WebCore::callPlugin):
850         * bindings/js/JSQuarantinedObjectWrapper.h:
851         * bindings/scripts/CodeGeneratorJS.pm:
852         * bridge/runtime_method.cpp:
853         (JSC::callRuntimeMethod):
854         * bridge/runtime_object.cpp:
855         (JSC::callRuntimeObject):
856
857 2009-05-07  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
858
859         Reviewed by Dave Hyatt.
860
861         Fixes: https://bugs.webkit.org/show_bug.cgi?id=25617
862
863         Fix memory/performance regression because of too much form control related abstraction just for WMLs sake.
864
865         Remove FormControlElement and FormControlElementWithState base classes, as the overhead is too high for the
866         gain. HTML has no benefit of that kind of abstraction, so we're going to move the functionality to Element directly.
867
868         The functions now living in FormControlElement(WithState) lived in Node/Element/HTMLFormControlElement before.
869         This patches moves all of them in a central place in Element.h, as virtual functions with an inline default implementation.
870         To avoid confusion like isEnabled() living on Node, before the creation of the FormControlElement abstraction layer, all
871         methods are renamed to clarify where they belong to. All renames are listed here:
872
873         From FormControlElement:
874         - isEnabled() -> isEnabledFormControl()
875         - isReadOnly() -> isReadOnlyFormControl()
876         - isTextControl() -> isTextFormControl()
877         - valueMatchesRenderer() -> formControlValueMatchesRenderer()
878         - setValueMatchesRenderer() -> setFormControlValueMatchesRenderer()
879         - name() -> formControlName()
880         - type() -> formControlType()
881
882         From FormControlElementWithState:
883         - saveState() -> saveFormControlState()
884         - restoreState() -> restoreFormControlState()
885
886         A lot of Element -> FormControlElement(WithState) casting is gone again, so it's not only a memory, but also a performance progression.
887
888         No testcases affected, no new tests needed.
889
890         * GNUmakefile.am:
891         * WebCore.pro:
892         * WebCore.vcproj/WebCore.vcproj:
893         * WebCore.xcodeproj/project.pbxproj:
894         * WebCoreSources.bkl:
895         * css/CSSStyleSelector.cpp:
896         (WebCore::CSSStyleSelector::canShareStyleWithElement):
897         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
898         * dom/Document.cpp:
899         (WebCore::Document::formElementsState):
900         * dom/Document.h:
901         (WebCore::Document::registerFormElementWithState):
902         (WebCore::Document::unregisterFormElementWithState):
903         * dom/Element.h:
904         (WebCore::Element::isFormControlElement):
905         (WebCore::Element::isEnabledFormControl):
906         (WebCore::Element::isReadOnlyFormControl):
907         (WebCore::Element::isTextFormControl):
908         (WebCore::Element::formControlValueMatchesRenderer):
909         (WebCore::Element::setFormControlValueMatchesRenderer):
910         (WebCore::Element::formControlName):
911         (WebCore::Element::formControlType):
912         (WebCore::Element::saveFormControlState):
913         (WebCore::Element::restoreFormControlState):
914         * dom/FormControlElement.cpp: Removed.
915         * dom/FormControlElement.h: Removed.
916         * dom/FormControlElementWithState.cpp: Removed.
917         * dom/FormControlElementWithState.h: Removed.
918         * dom/InputElement.cpp:
919         (WebCore::InputElement::setValueFromRenderer):
920         * html/HTMLButtonElement.cpp:
921         (WebCore::HTMLButtonElement::formControlType):
922         * html/HTMLButtonElement.h:
923         * html/HTMLFieldSetElement.cpp:
924         (WebCore::HTMLFieldSetElement::formControlType):
925         * html/HTMLFieldSetElement.h:
926         * html/HTMLFormControlElement.cpp:
927         (WebCore::HTMLFormControlElement::attach):
928         (WebCore::HTMLFormControlElement::formControlName):
929         (WebCore::HTMLFormControlElement::willValidate):
930         (WebCore::HTMLFormControlElementWithState::HTMLFormControlElementWithState):
931         (WebCore::HTMLFormControlElementWithState::~HTMLFormControlElementWithState):
932         (WebCore::HTMLFormControlElementWithState::willMoveToNewOwnerDocument):
933         (WebCore::HTMLFormControlElementWithState::didMoveToNewOwnerDocument):
934         (WebCore::HTMLFormControlElementWithState::finishParsingChildren):
935         * html/HTMLFormControlElement.h:
936         (WebCore::HTMLFormControlElement::isTextFormControl):
937         (WebCore::HTMLFormControlElement::isEnabledFormControl):
938         (WebCore::HTMLFormControlElement::formControlValueMatchesRenderer):
939         (WebCore::HTMLFormControlElement::setFormControlValueMatchesRenderer):
940         (WebCore::HTMLFormControlElement::isReadOnlyFormControl):
941         (WebCore::HTMLFormControlElement::type):
942         (WebCore::HTMLFormControlElement::name):
943         * html/HTMLInputElement.cpp:
944         (WebCore::HTMLInputElement::formControlName):
945         (WebCore::HTMLInputElement::formControlType):
946         (WebCore::HTMLInputElement::saveFormControlState):
947         (WebCore::HTMLInputElement::restoreFormControlState):
948         (WebCore::HTMLInputElement::parseMappedAttribute):
949         (WebCore::HTMLInputElement::detach):
950         (WebCore::HTMLInputElement::setValue):
951         (WebCore::HTMLInputElement::setFileListFromRenderer):
952         * html/HTMLInputElement.h:
953         (WebCore::HTMLInputElement::readOnly):
954         (WebCore::HTMLInputElement::isTextFormControl):
955         * html/HTMLKeygenElement.cpp:
956         (WebCore::HTMLKeygenElement::formControlType):
957         * html/HTMLKeygenElement.h:
958         * html/HTMLLegendElement.cpp:
959         (WebCore::HTMLLegendElement::formControlType):
960         * html/HTMLLegendElement.h:
961         * html/HTMLOptGroupElement.cpp:
962         (WebCore::HTMLOptGroupElement::formControlType):
963         * html/HTMLOptGroupElement.h:
964         * html/HTMLOptionElement.cpp:
965         (WebCore::HTMLOptionElement::formControlType):
966         * html/HTMLOptionElement.h:
967         * html/HTMLSelectElement.cpp:
968         (WebCore::HTMLSelectElement::formControlType):
969         (WebCore::HTMLSelectElement::saveFormControlState):
970         (WebCore::HTMLSelectElement::restoreFormControlState):
971         * html/HTMLSelectElement.h:
972         * html/HTMLTextAreaElement.cpp:
973         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
974         (WebCore::HTMLTextAreaElement::formControlType):
975         (WebCore::HTMLTextAreaElement::saveFormControlState):
976         (WebCore::HTMLTextAreaElement::restoreFormControlState):
977         (WebCore::HTMLTextAreaElement::updateValue):
978         (WebCore::HTMLTextAreaElement::setValue):
979         * html/HTMLTextAreaElement.h:
980         (WebCore::HTMLTextAreaElement::readOnly):
981         (WebCore::HTMLTextAreaElement::isTextFormControl):
982         * page/AccessibilityRenderObject.cpp:
983         (WebCore::AccessibilityRenderObject::isEnabled):
984         (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
985         * page/DragController.cpp:
986         (WebCore::DragController::concludeEditDrag):
987         * rendering/RenderMenuList.cpp:
988         (WebCore::RenderMenuList::itemIsEnabled):
989         * rendering/RenderTextControl.cpp:
990         (WebCore::updateUserModifyProperty):
991         (WebCore::RenderTextControl::setInnerTextValue):
992         * rendering/RenderTextControl.h:
993         * rendering/RenderTextControlMultiLine.cpp:
994         (WebCore::RenderTextControlMultiLine::subtreeHasChanged):
995         * rendering/RenderTextControlSingleLine.cpp:
996         (WebCore::RenderTextControlSingleLine::updateFromElement):
997         * rendering/RenderTheme.cpp:
998         (WebCore::RenderTheme::isEnabled):
999         (WebCore::RenderTheme::isReadOnlyControl):
1000         * rendering/RenderThemeChromiumMac.mm:
1001         (WebCore::RenderThemeChromiumMac::adjustMenuListStyle):
1002         * rendering/RenderThemeMac.mm:
1003         (WebCore::RenderThemeMac::adjustMenuListStyle):
1004         * rendering/RenderThemeSafari.cpp:
1005         (WebCore::RenderThemeSafari::adjustMenuListStyle):
1006         * wml/WMLFormControlElement.cpp:
1007         * wml/WMLFormControlElement.h:
1008         (WebCore::WMLFormControlElement::isReadOnlyFormControl):
1009         (WebCore::WMLFormControlElement::isTextFormControl):
1010         (WebCore::WMLFormControlElement::formControlValueMatchesRenderer):
1011         (WebCore::WMLFormControlElement::setFormControlValueMatchesRenderer):
1012         * wml/WMLInputElement.cpp:
1013         (WebCore::WMLInputElement::WMLInputElement):
1014         (WebCore::WMLInputElement::isKeyboardFocusable):
1015         (WebCore::WMLInputElement::isMouseFocusable):
1016         (WebCore::WMLInputElement::dispatchBlurEvent):
1017         (WebCore::WMLInputElement::formControlType):
1018         (WebCore::WMLInputElement::formControlName):
1019         (WebCore::WMLInputElement::setValue):
1020         (WebCore::WMLInputElement::saveFormControlState):
1021         (WebCore::WMLInputElement::restoreFormControlState):
1022         (WebCore::WMLInputElement::parseMappedAttribute):
1023         (WebCore::WMLInputElement::detach):
1024         (WebCore::WMLInputElement::appendFormData):
1025         (WebCore::WMLInputElement::init):
1026         * wml/WMLInputElement.h:
1027         (WebCore::WMLInputElement::isTextFormControl):
1028         * wml/WMLOptGroupElement.cpp:
1029         (WebCore::WMLOptGroupElement::formControlType):
1030         * wml/WMLOptGroupElement.h:
1031         * wml/WMLOptionElement.cpp:
1032         (WebCore::WMLOptionElement::formControlType):
1033         * wml/WMLOptionElement.h:
1034
1035 2009-05-07  Dmitry Titov  <dimich@chromium.org>
1036
1037         Reviewed by Alexey Proskuryakov and Adam Roben.
1038
1039         https://bugs.webkit.org/show_bug.cgi?id=25348
1040         Change WTF::ThreadIdentifier to be an actual (but wrapped) thread id, remove ThreadMap.
1041
1042         Most of the change is in WTF.
1043         Unless noted, all the following files changed to use the new ThreadIdentifier::isValid()
1044         method instead of just doing 'if(m_threadID)' kind of checks, since ThreadIdentifier
1045         is now a class rather then an integer.
1046         Also, there is no need to initialize threadID in constructors to 0 now.
1047
1048         * dom/XMLTokenizerLibxml2.cpp:
1049         (WebCore::libxmlLoaderThread): use DEFINE_STATIC_LOCAL and accessor function for static thread id,
1050         since now ThreadIdentifier needs construction and we avoid having global initializers.
1051         (WebCore::matchFunc): use the new accessor function.
1052         (WebCore::openFunc): ditto.
1053         (WebCore::createStringParser): ditto.
1054         (WebCore::createMemoryParser): ditto.
1055         * loader/icon/IconDatabase.cpp:
1056         (WebCore::IconDatabase::open):
1057         * platform/sql/SQLiteDatabase.cpp:
1058         (WebCore::SQLiteDatabase::SQLiteDatabase):
1059         (WebCore::SQLiteDatabase::close):
1060         * storage/DatabaseThread.cpp:
1061         (WebCore::DatabaseThread::start):
1062         (WebCore::DatabaseThread::databaseThread): remove m_threadID from debug output.
1063         * storage/LocalStorageThread.cpp:
1064         (WebCore::LocalStorageThread::start):
1065         (WebCore::LocalStorageThread::scheduleImport):
1066         (WebCore::LocalStorageThread::scheduleSync):
1067         (WebCore::LocalStorageThread::terminate):
1068         * workers/WorkerThread.cpp:
1069         (WebCore::WorkerThread::start):
1070         (WebCore::WorkerThread::WorkerThread):
1071         (WebCore::WorkerThread::start):
1072
1073 2009-05-07  Simon Fraser  <simon.fraser@apple.com>
1074
1075         Rubber Stamped by Dave Hyatt
1076         
1077         Shuffle the data members to minimize padding.
1078
1079         * dom/ClassNames.h:
1080
1081 2009-05-07  Simon Fraser  <simon.fraser@apple.com>
1082
1083         Reviewed by Darin Adler
1084
1085         <rdar://problem/6864062> Shrink GlyphPage from 4112 to 2576 bytes in 64-bit
1086         https://bugs.webkit.org/show_bug.cgi?id=25605
1087
1088         Shrink GlyphPage by splitting the array of GlyphData, which has lots
1089         of padding, into separate Glyph and SimpleFontData* arrays.
1090
1091         * platform/graphics/Font.h:
1092         glyphDataForCharacter has to return a GlyphData by value now.
1093         
1094         * platform/graphics/FontFastPath.cpp:
1095         (WebCore::Font::glyphDataForCharacter):
1096         Return GlyphData by value.
1097         
1098         * platform/graphics/GlyphPageTreeNode.cpp:
1099         (WebCore::GlyphPageTreeNode::initializePage):
1100         Better encapsulation of GlyphPage, using the new methods.
1101
1102         * platform/graphics/Font.h:
1103         * platform/graphics/FontFastPath.cpp:
1104         (WebCore::Font::glyphDataForCharacter):
1105         * platform/graphics/GlyphPageTreeNode.cpp:
1106         (WebCore::GlyphPageTreeNode::initializePage):
1107         * platform/graphics/GlyphPageTreeNode.h:
1108         (WebCore::GlyphData::GlyphData):
1109         (WebCore::GlyphPage::indexForCharacter):
1110         (WebCore::GlyphPage::glyphDataForCharacter):
1111         (WebCore::GlyphPage::glyphDataForIndex):
1112         (WebCore::GlyphPage::glyphAt):
1113         (WebCore::GlyphPage::fontDataForCharacter):
1114         (WebCore::GlyphPage::setGlyphDataForCharacter):
1115         (WebCore::GlyphPage::setGlyphDataForIndex):
1116         (WebCore::GlyphPage::copyFrom):
1117         (WebCore::GlyphPage::clear):
1118
1119 2009-05-07  Dimitri Glazkov  <dglazkov@chromium.org>
1120
1121         Reviewed by Darin Fisher.
1122
1123         https://bugs.webkit.org/show_bug.cgi?id=25625
1124         Implement Image/Option constructors in V8 bindings.
1125
1126         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1127         (WebCore::NAMED_PROPERTY_GETTER): Removed old JS-based code.
1128         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp: Added.
1129         * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp: Added.
1130
1131 2009-05-07  Brady Eidson  <beidson@apple.com>
1132
1133         I hate myself for doing this, but need to fix that ChangeLog entry.
1134
1135         * ChangeLog:
1136
1137 2009-05-07  Brady Eidson  <beidson@apple.com>
1138
1139         Rubberstamped by Darin Adler
1140
1141         * html/HTMLParser.cpp: Use the correct style of BUILDING_ON_* for WebCore.
1142         * html/HTMLParser.h: Ditto
1143
1144 2009-05-07  David Hyatt  <hyatt@apple.com>
1145
1146         Restore intrinsic margins to all form controls on Mac and Windows.  Some of this regressed in 43007
1147         when textareas were given explicit margins.  Some of it had already regressed earlier whenever intrinsic
1148         margins were turned off in themeWin.css.
1149
1150         Reviewed by Beth Dakin.
1151
1152         * css/html4.css:
1153         * css/themeWin.css:
1154
1155 2009-05-07  Brady Eidson  <beidson@apple.com>
1156
1157         Reviewed by Darin Adler and Alexey Proskuryakov.
1158
1159         <rdar://problem/6863795> Exception occurs in Mail when attempting to create signatures due to <head> element creation
1160
1161         * dom/Document.cpp:
1162         (WebCore::Document::implicitClose): Check shouldCreateImplicitHead() before creating it.
1163
1164         * html/HTMLParser.cpp:
1165         (WebCore::HTMLParser::handleError): Check shouldCreateImplicitHead() before creating it.
1166         (WebCore::HTMLParser::bodyCreateErrorCheck): Ditto.
1167         (WebCore::shouldCreateImplicitHead): For Tiger/Leopard when running under Mail, the implicit <head> shouldn't be created.
1168         * html/HTMLParser.h:
1169         (WebCore::shouldCreateImplicitHead): Inline implementation for non-Tiger/Leopard platforms
1170
1171 2009-05-07  Antony Sargent  <asargent@chromium.org>
1172
1173         Reviewed by Darin Fisher.
1174
1175         Fix a memory leak in V8EventListenerList::remove.
1176
1177         https://bugs.webkit.org/show_bug.cgi?id=25618
1178
1179         No new functionality so no new tests. 
1180
1181         * bindings/v8/V8EventListenerList.cpp:
1182         (WebCore::V8EventListenerList::remove):
1183
1184 2009-05-07  Darin Fisher  <darin@chromium.org>
1185
1186         Fix Chromium build bustage.
1187
1188         * bindings/v8/custom/V8HTMLFormElementCustom.cpp: Add missing
1189         HTMLCollection.h include.
1190
1191 2009-05-07  Chris Fleizach  <cfleizach@apple.com>
1192
1193         Reviewed by Beth Dakin.
1194
1195         Bug 25598: AX: if a radio button has a label and a title, the label is not exposed
1196         https://bugs.webkit.org/show_bug.cgi?id=25598
1197
1198         Test: accessibility/radio-button-title-label.html
1199
1200         * page/AccessibilityObject.h:
1201         (WebCore::AccessibilityObject::exposesTitleUIElement):
1202         * page/AccessibilityRenderObject.cpp:
1203         (WebCore::AccessibilityRenderObject::exposesTitleUIElement):
1204         (WebCore::AccessibilityRenderObject::titleUIElement):
1205         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1206         * page/AccessibilityRenderObject.h:
1207
1208 2009-05-07  Darin Fisher  <darin@chromium.org>
1209
1210         Fix Chromium build bustage.
1211
1212         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
1213         (WebCore::INDEXED_PROPERTY_GETTER): ":" should be "::"
1214
1215 2009-05-07  Xan Lopez  <xlopez@igalia.com>
1216
1217         Reviewed by Gustavo Noronha.
1218
1219         https://bugs.webkit.org/show_bug.cgi?id=25610
1220         [GTK] text.caretOffset is reportedly always 0
1221
1222         Use the right function to get the caret offset in an
1223         element. selectionStart() would only work for text
1224         controls (there's even an ASSERT when calculating the selected
1225         text range). Instead just get the selection and get the offset of
1226         the start position.
1227
1228         * page/gtk/AccessibilityObjectWrapperAtk.cpp:
1229
1230 2009-05-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1231
1232         Reviewed by Simon Hausmann.
1233
1234         [Qt] Fix support for antialiased CSS border-radius
1235         
1236         WebKit implements border-radius by drawing a double-size border,
1237         and then letting the clip constrain the border to the right width
1238         and position. This requires support for antialiased clipping, as
1239         well as painting, to get a nice smooth border.
1240         
1241         Qt only does antialiased clipping if the anti-alias flag is set
1242         at the time of clipping, so we have to enable this in the method
1243         addInnerRoundedRectClip(), as well as when we draw the border.
1244         
1245         Currently the raster-engine is the only Qt paint engine to support
1246         anti-aliased clipping, but the OpenGL and Mac paint engines could
1247         potentially support this in the future.
1248
1249         * platform/graphics/qt/GraphicsContextQt.cpp:
1250         (WebCore::GraphicsContext::strokeArc):
1251         (WebCore::GraphicsContext::addInnerRoundedRectClip):
1252
1253 2009-05-07  Adam Langley  <agl@google.com>
1254
1255         Reviewed by Eric Seidel.
1256
1257         Render empty optgroup elements.
1258
1259         https://bugs.webkit.org/show_bug.cgi?id=24900
1260
1261         Currently, optgroup elements which are empty are not rendered. The
1262         HTML specification gives no guidance on this situation.
1263
1264         However, the test for being empty is that they have no children, thus
1265         this will not render:
1266           <optgroup label="test"></optgroup>
1267         while this /will/ render (because of the text node child):
1268           <optgroup label="test"> </optgroup>
1269
1270         This patch will cause both cases to render which matches IE's and
1271         Firefox's behaviour.
1272
1273         The difference only appears when opening the select element and does
1274         not appear in the render tree. Thus, a manual layout-test is required.
1275
1276         * html/HTMLSelectElement.cpp:
1277         (WebCore::HTMLSelectElement::recalcListItems):
1278         * manual-tests/optgroup-empty-and-nested.html: Added.
1279
1280 2009-05-06  Julie Parent  <jparent@google.com>
1281
1282         Reviewed by Eric Seidel.
1283
1284         Bug 25608: Unused m_frame in ChromiumClipboard.
1285         https://bugs.webkit.org/show_bug.cgi?id=25608
1286
1287         * platform/chromium/ClipboardChromium.h:
1288         
1289         No tests added as this is only removing dead code, no functional changes.
1290
1291 2009-05-06  Dan Bernstein  <mitz@apple.com>
1292
1293         Reviewed by Simon Fraser and Justin Garcia.
1294
1295         - fix another part of <rdar://problem/6703873> Triple-click quoted line
1296           and type Return creates an extra quoted blank line
1297
1298         Test: editing/inserting/6703873-2.html
1299
1300         * editing/BreakBlockquoteCommand.cpp:
1301         (WebCore::BreakBlockquoteCommand::doApply): Corrected the logic for
1302         determining the first node that should go into the new blockquote
1303         given the split position: if it is at the end of a container, use the
1304         next node after the container. Otherwise, use the child at the
1305         position's offset.
1306
1307 2009-05-06  Kevin Ollivier  <kevino@theolliviers.com>
1308
1309         wx build fix, fixes for wx trunk builds.
1310
1311         * platform/graphics/wx/ImageWx.cpp:
1312         (WebCore::BitmapImage::draw):
1313         * platform/wx/RenderThemeWx.cpp:
1314         * platform/wx/wxcode/mac/carbon/fontprops.cpp:
1315         (wxFontProperties::wxFontProperties):
1316
1317 2009-05-06  Albert J. Wong  <ajwong@chromium.org>
1318
1319         Reviewed by Darin Fisher.
1320
1321         https://bugs.webkit.org/show_bug.cgi?id=25597
1322         Fix API drift compile errors that occurred while this was ifdef-ed out.
1323         The two big issues were that RenderObject::element() became
1324         RenderObject::node() and some of the wk* drawing functions had
1325         an extra theme parameter added to the argument list.
1326
1327         * rendering/RenderThemeChromiumMac.mm:
1328         (WebCore::RenderThemeChromiumMac::paintMediaFullscreenButton):
1329         (WebCore::RenderThemeChromiumMac::paintMediaMuteButton):
1330         (WebCore::RenderThemeChromiumMac::paintMediaPlayButton):
1331         (WebCore::RenderThemeChromiumMac::paintMediaSeekBackButton):
1332         (WebCore::RenderThemeChromiumMac::paintMediaSeekForwardButton):
1333         (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack):
1334         (WebCore::RenderThemeChromiumMac::paintMediaSliderThumb):
1335
1336 2009-05-06  Jian Li  <jianli@chromium.org>
1337
1338         Reviewed by Dimitri Glazkov.
1339
1340         https://bugs.webkit.org/show_bug.cgi?id=25385
1341         Upstream changes to V8 bindings for supporting nested workers.
1342
1343         * bindings/v8/WorkerContextExecutionProxy.cpp:
1344         (WebCore::WorkerContextExecutionProxy::ToV8Object):
1345         (WebCore::WorkerContextExecutionProxy::EventTargetToV8Object):
1346         * bindings/v8/custom/V8WorkerCustom.cpp:
1347         (WebCore::getEventListener):
1348         (WebCore::ACCESSOR_SETTER WorkerOnmessage):
1349         (WebCore::CALLBACK_FUNC_DECL WorkerAddEventListener):
1350
1351 2009-05-06  Dave Moore  <davemoore@google.com>
1352
1353         Reviewed by Dimitri Glazkov.
1354
1355         https://bugs.webkit.org/show_bug.cgi?id=25513
1356         The V8 bindings convert every javascript property to its associated css style
1357         name. It then calls functions that convert that name to an id. This makes
1358         getting or setting css styles on elements slow.
1359         
1360         The patch fixes this by caching the results of the transformation, mapping a
1361         javascript property name to its css property id. It then calls the already
1362         public webkit methods that take the id in place of the string property names.
1363
1364         * bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp:
1365
1366 2009-05-06  Nate Chapin  <japhet@google.com>
1367
1368         Reviewed by Dimitri Glazkov.
1369
1370         https://bugs.webkit.org/show_bug.cgi?id=25591
1371         Upstream V8HTMLFormElement from the Chromium repository.
1372
1373         * bindings/v8/custom/V8HTMLFormElementCustom.cpp:
1374         (WebCore::INDEXED_PROPERTY_GETTER HTMLFormElement): Upstreamed from Chromium repository
1375         (WebCore::NAMED_PROPERTY_GETTER HTMLFormElement): Changed empty element return case to return notHandledByInterceptor();
1376         (WebCore::CALLBACK_FUNC_DECL HTMLFormElementSubmit): Upstreamed from Chromium repository
1377
1378 2009-05-06  Albert J. Wong  <ajwong@chromium.org>
1379
1380         Reviewed by Dimitri Glazkov.
1381
1382         https://bugs.webkit.org/show_bug.cgi?id=25595
1383         Upstream V8CanvasPixelArrayCustom from chromium port tree.
1384
1385         * bindings/v8/V8CanvasPixelArrayCustom.cpp: Added.
1386
1387 2009-05-06  Simon Fraser  <simon.fraser@apple.com>
1388
1389         Rubber-stampted by Eric Seidel
1390
1391         Add braces to clarify logic flow in RenderObject::adjustStyleDifference.
1392         Only affects ACCELERATED_COMPOSITING builds.
1393
1394         * rendering/RenderObject.cpp:
1395         (WebCore::RenderObject::adjustStyleDifference):
1396
1397 2009-05-06  Simon Fraser  <simon.fraser@apple.com>
1398
1399         Reviewed by Dan Bernstein
1400
1401         <rdar://problem/6862550> Reduce size of RenderText in 64-bit
1402         
1403         Rearrange data members of RenderText so that an int comes
1404         first, to minimize padding.
1405
1406         * rendering/RenderText.cpp:
1407         (WebCore::RenderText::RenderText):
1408         * rendering/RenderText.h:
1409
1410 2009-05-06  Simon Fraser  <simon.fraser@apple.com>
1411
1412         Reviewed by Dan Bernstein
1413
1414         <rdar://problem/6862823> Reduce size of RenderStyle in 64-bit
1415         
1416         Rearrange data members of RenderStyle to minimize padding
1417         when building for 64-bit.
1418
1419         * rendering/style/RenderStyle.cpp:
1420         (WebCore::RenderStyle::RenderStyle):
1421         * rendering/style/RenderStyle.h:
1422         (WebCore::):
1423
1424 2009-05-06  Darin Fisher  <darin@chromium.org>
1425
1426         Reviewed by Dimitri Glazkov.
1427
1428         https://bugs.webkit.org/show_bug.cgi?id=25596
1429
1430         Fixes Chromium build bustage caused by r43317 (making
1431         RefCountedBase::m_refCount private)
1432
1433         * page/chromium/AccessibilityObjectWrapper.h:
1434         (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper):
1435
1436 2009-05-06  Hin-Chung Lam  <hclam@chromium.org>
1437
1438         Reviewed by Darin Fisher.
1439
1440         https://bugs.webkit.org/show_bug.cgi?id=25593
1441
1442         Refactor for MediaPlayerPrivate for Chromium port. Remove
1443         the implementation of MediaPlayerPrivateInferface from it.
1444
1445         * platform\graphics\chromium\MediaPlayerPrivateChromium.h:
1446
1447 2009-05-06  Simon Fraser  <simon.fraser@apple.com>
1448
1449         Reviewed by Dave Hyatt, Dan Bernstein
1450         
1451         <rdar://problem/6860197> Reduce the size of FontFallbackList in 64-bit
1452
1453         Re-order the data members of FontFallbackList to save 8 bytes when building 64-bit.
1454
1455         * platform/graphics/FontFallbackList.cpp:
1456         (WebCore::FontFallbackList::FontFallbackList):
1457         * platform/graphics/FontFallbackList.h:
1458
1459 2009-05-06  Simon Fraser  <simon.fraser@apple.com>
1460
1461         Reviewed by Darin Adler, Dan Bernstein
1462
1463         <rdar://problem/6860068> Reduce size of InlineBox in 64-bit
1464
1465         Re-order the data members of InlineBox to save 8 bytes when building 64-bit.
1466
1467         * rendering/InlineBox.h:
1468         (WebCore::InlineBox::InlineBox):
1469
1470 2009-05-06  David Levin  <levin@chromium.org>
1471
1472         Reviewed by Dimitri Glazkov.
1473
1474         https://bugs.webkit.org/show_bug.cgi?id=25588
1475         Adding the custom v8 bindings Document.location.
1476
1477         * bindings/v8/custom/V8DocumentLocationCustom.cpp: Added.
1478
1479 2009-05-06  Kevin McCullough  <kmccullough@apple.com>
1480
1481         -Clarified a comment
1482
1483         * editing/InsertParagraphSeparatorCommand.cpp:
1484         (WebCore::InsertParagraphSeparatorCommand::doApply):
1485
1486 2009-05-06  Nikolas Zimmermann  <nikolas.zimmermann@torchmobile.com>
1487
1488         Not reviewed. Fix WML enabled builds by including "MappedAttribute.h" in several places.
1489
1490         * wml/WMLAElement.cpp:
1491         * wml/WMLAccessElement.cpp:
1492         * wml/WMLBRElement.cpp:
1493         * wml/WMLCardElement.cpp:
1494         * wml/WMLDoElement.cpp:
1495         * wml/WMLElement.cpp:
1496         * wml/WMLFieldSetElement.cpp:
1497         * wml/WMLGoElement.cpp:
1498         * wml/WMLImageElement.cpp:
1499         * wml/WMLInputElement.cpp:
1500         * wml/WMLMetaElement.cpp:
1501         * wml/WMLOnEventElement.cpp:
1502         * wml/WMLOptGroupElement.cpp:
1503         * wml/WMLOptionElement.cpp:
1504         * wml/WMLPElement.cpp:
1505         * wml/WMLPostfieldElement.cpp:
1506         * wml/WMLSetvarElement.cpp:
1507         * wml/WMLTableElement.cpp:
1508         * wml/WMLTemplateElement.cpp:
1509         * wml/WMLTimerElement.cpp:
1510
1511 2009-05-06  Xan Lopez  <xlopez@igalia.com>
1512
1513         Reviewed by Gustavo Noronha.
1514
1515         https://bugs.webkit.org/show_bug.cgi?id=25526
1516         [Gtk] Additional support is needed for caret browsing
1517
1518         Emit AtkText::text-selection-changed when the selection changes
1519         and the current selection is of Range (ie, the start and end
1520         positions are different) type. This seems to match what Gecko
1521         does.
1522
1523         * editing/gtk/SelectionControllerGtk.cpp:
1524         (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
1525
1526 2009-05-05  Xan Lopez  <xlopez@igalia.com>
1527
1528         Reviewed by Gustavo Noronha.
1529
1530         https://bugs.webkit.org/show_bug.cgi?id=25526
1531         [Gtk] Additional support is needed for caret browsing
1532
1533         Emit AtkText::text-caret-moved when selection changes.
1534
1535         * GNUmakefile.am:
1536         * editing/SelectionController.h:
1537         * editing/gtk/SelectionController.cpp: Added.
1538         (WebCore::SelectionController::notifyAccessibilityForSelectionChange):
1539
1540 2009-05-06  Holger Hans Peter Freyther  <zecke@selfish.org>
1541
1542         Reviewed by Gustavo Noronha.
1543
1544         Use mozilla cursors for the previously not implemented
1545         cursors. The manual-tests/cursor.html is looking complete
1546         now.
1547
1548         * platform/gtk/CursorGtk.cpp:
1549         (WebCore::cellCursor):
1550         (WebCore::noDropCursor):
1551         (WebCore::progressCursor):
1552         (WebCore::noneCursor):
1553         (WebCore::notAllowedCursor):
1554         (WebCore::grabCursor):
1555         (WebCore::grabbingCursor):
1556         * platform/gtk/CursorGtk.h:
1557
1558 2009-05-06  Holger Hans Peter Freyther  <zecke@selfish.org>
1559
1560         Reviewed by Xan Lopez.
1561
1562         Properly indent the header file.
1563
1564         * platform/gtk/CursorGtk.h:
1565
1566 2009-05-06  Holger Hans Peter Freyther  <zecke@selfish.org>
1567
1568         Reviewed by Gustavo Noronha.
1569
1570         Use the mozilla copyright header. Use MPL1.1/GPL2.0
1571         and LGPL2.1 as the license compared to LGPL2.0.
1572
1573         * platform/gtk/CursorGtk.h:
1574
1575 2009-05-06  Holger Hans Peter Freyther  <zecke@selfish.org>
1576
1577         Reviewed by Gustavo Noronha.
1578
1579         Move PluginView::invalidateRegion from the
1580         TemporaryLinkStubs to PluginViewGtk.cpp and implement
1581         it with a call to Widget::invalidate() just like
1582         mac is doing. Optimisations would have to be window
1583         system specific.
1584
1585         * platform/gtk/TemporaryLinkStubs.cpp:
1586         * plugins/gtk/PluginViewGtk.cpp:
1587         (WebCore::PluginView::invalidateRegion):
1588
1589 2009-05-06  Jan Michael Alonzo  <jmalonzo@webkit.org>
1590
1591         Reviewed by Holger Freyther.
1592
1593         Misc fixes to InspectorClientGtk.
1594
1595         * GNUmakefile.am: Add localizedStrings.js to webinspector_DATA.
1596         This prevents copious amounts "Localized string not found" errors
1597         in the console
1598
1599 2009-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
1600
1601         Reviewed by Ariya Hidayat.
1602
1603         Fix the Qt build on Windows.
1604
1605         * platform/graphics/GraphicsContext.h:
1606         (WebCore::GraphicsContext::shouldIncludeChildWindows): Implemented dummy accessor.
1607
1608 2009-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
1609
1610         Reviewed by Tor Arne Vestbø.
1611
1612         Tweak WebCore.pro for being able to override the generated sources dir for the
1613         generated_files target.
1614
1615         * WebCore.pro:
1616
1617 2009-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
1618
1619         Reviewed by Holger Freyther.
1620
1621         Fix the Qt/Windows build, use iface instead of interface to avoid conflict
1622         with VS2005 headers.
1623
1624         * css/CSSStyleSelector.cpp:
1625         (WebCore::CSSStyleSelector::SelectorChecker::checkPseudoState):
1626
1627 2009-05-06  Joerg Bornemann  <joerg.bornemann@trolltech.com>
1628
1629         Reviewed by Simon Hausmann.
1630
1631         We need to include StringExtras.h on Windows CE to access the strdup function.
1632
1633         * plugins/PluginStream.cpp:
1634
1635 2009-05-06  Soren Gjesse  <sgjesse@chromium.org>
1636
1637         Reviewed by Eric Seidel.
1638
1639         Changed the toString behaviour for non document dom node event handlers in the V8 bindings.
1640         https://bugs.webkit.org/show_bug.cgi?id=25544
1641
1642         In the V8 bindings non document dom node event handlers are wrapped in a number of with blocks and uses an inner
1643         function. This causes the default toString on such a handler to return all this wrapper code. As some web sites
1644         use the source of an event handler to create new functions this wrapper code causes compatibility problems.
1645
1646         Create a specific toString function for these handlers which will return a function source compatible with the
1647         source returned by the JSC bindings and other browsers.
1648
1649         Test: fast/events/event-function-toString.html
1650
1651         * bindings/v8/ScriptEventListener.cpp:
1652         (WebCore::createAttributeEventListener):
1653         * bindings/v8/V8LazyEventListener.cpp:
1654         (WebCore::V8LazyEventListener::V8LazyEventListener):
1655         (WebCore::V8LazyEventListener::getListenerFunction):
1656         (WebCore::V8LazyEventListenerToString):
1657         (WebCore::V8LazyEventListener::getWrappedListenerFunction):
1658         * bindings/v8/V8LazyEventListener.h:
1659         (WebCore::V8LazyEventListener::create):
1660
1661 2009-05-06  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1662
1663         Reviewed by Simon Hausmann.
1664
1665         Build QtWebKit as a framework on Mac
1666
1667         This implies both debug and release build by default, unless
1668         one of the --debug or --release config options are passed to
1669         the build-webkit script.
1670
1671         Frameworks can be disabled by passing CONFIG+=webkit_no_framework
1672         to the build-webkit script.
1673
1674         To be able to build both debug and release targets in parallel
1675         we have to use separate output directories for the generated
1676         sources, which is not optimal, but required to avoid race conditions.
1677
1678         An optimization would be to only require this spit-up on Mac.
1679
1680         * WebCore.pro:
1681
1682 2009-05-06  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1683
1684         Reviewed by Simon Hausmann.
1685
1686         [Qt] Use $$GENERATED_SOURCES_DIR as output when running bison
1687
1688         A couple of the generators left the bison output file in the source
1689         tree, and then moved it into $$GENERATED_SOURCES_DIR, which did not
1690         work well when building release and debug configurations in parallel.
1691
1692         * WebCore.pro:
1693
1694 2009-05-06  Dan Bernstein  <mitz@apple.com>
1695
1696         Reviewed by Justin Garcia.
1697
1698         - fix an assertion failure in RemoveNodeCommand() when deleting a <br>
1699           between a block and a mail blockquote
1700
1701         Test: editing/deleting/removeNodeCommand-assert.html
1702
1703         * editing/DeleteSelectionCommand.cpp:
1704         (WebCore::DeleteSelectionCommand::mergeParagraphs): Pass the start block
1705         to prune() instead of passing m_upstreamStart.node(), because the latter
1706         may have been removed already.
1707
1708 2009-05-05  Eric Seidel  <eric@webkit.org>
1709
1710         No review, roll out only.
1711
1712         Roll out r23072 since it broke layout tests
1713
1714         * page/AccessibilityRenderObject.cpp:
1715         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1716
1717 2009-05-05  Ben Murdoch  <benm@google.com>
1718
1719         Reviewed by Eric Seidel.
1720         
1721         Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds.
1722         https://bugs.webkit.org/show_bug.cgi?id=24776
1723
1724         No functional changes, thus no tests.
1725
1726         * bindings/js/JSCustomSQLStatementCallback.cpp:
1727         * bindings/js/JSCustomSQLStatementCallback.h:
1728         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
1729         * bindings/js/JSCustomSQLStatementErrorCallback.h:
1730         * bindings/js/JSCustomSQLTransactionCallback.cpp:
1731         * bindings/js/JSCustomSQLTransactionCallback.h:
1732         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
1733         * bindings/js/JSCustomSQLTransactionErrorCallback.h:
1734         * bindings/js/JSDatabaseCustom.cpp:
1735         * bindings/js/JSSQLTransactionCustom.cpp:
1736         * loader/EmptyClients.h:
1737         * page/ChromeClient.h:
1738         * storage/ChangeVersionWrapper.cpp:
1739         * storage/ChangeVersionWrapper.h:
1740         * storage/Database.cpp:
1741         (WebCore::Database::databaseInfoTableName):
1742         * storage/Database.h:
1743         * storage/Database.idl:
1744         * storage/DatabaseTask.cpp:
1745         * storage/DatabaseTask.h:
1746         * storage/DatabaseThread.cpp:
1747         * storage/DatabaseThread.h:
1748         * storage/DatabaseTracker.cpp:
1749         * storage/DatabaseTracker.h:
1750         * storage/DatabaseTrackerClient.h:
1751         * storage/OriginQuotaManager.cpp:
1752         * storage/OriginQuotaManager.h:
1753         * storage/SQLStatement.cpp:
1754         * storage/SQLStatement.h:
1755         * storage/SQLTransaction.cpp:
1756         * storage/SQLTransaction.h:
1757         * storage/SQLTransaction.idl:
1758
1759 2009-05-05  Jeremy Moskovich  <jeremy@chromium.org>
1760
1761         Reviewed by Eric Seidel.
1762
1763         Add some documentation to InlineBox::x(),y().
1764         https://bugs.webkit.org/show_bug.cgi?id=25378
1765
1766         * rendering/InlineBox.h:
1767
1768 2009-05-05  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1769
1770         Reviewed by Eric Seidel.
1771
1772         Disable all the SVG features for WebKit/Qt if ENABLE_SVG=0 
1773         https://bugs.webkit.org/show_bug.cgi?id=24693
1774
1775         * WebCore.pro:
1776
1777 2009-05-05  Sankar Aditya Tanguturi  <sankaraditya@gmail.com>
1778
1779         Reviewed by Eric Seidel.
1780
1781         Anonymous blocks should not be exposed in accessibility tree.
1782         Part of https://bugs.webkit.org/show_bug.cgi?id=23072
1783
1784         Tests: accessibility/ignore-anonymous-block.html
1785                platform/win/accessibility/document-role.html
1786
1787         * page/AccessibilityRenderObject.cpp:
1788         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):Return
1789         true for Anonymous blocks. Matching Firefox 2.0.0.14
1790
1791 2009-05-05  Jungshik Shin  <jshin@chromium.org>
1792
1793         Reviewed by Alexey Proskuryakov.
1794
1795         http://bugs.webkit.org/show_bug.cgi?id=25487
1796
1797         For euc-kr and other 8bit Korean encodings
1798         (similar to euc-kr/windows-949), make document.charset return
1799         EUC-KR instead of windows-949. The latter is not recognized by
1800         Korean web servers.
1801
1802         Add domName method to TextEncoding to deal with cases where
1803         our internal encoding name does not match what's widely recognized
1804         by web servers. Currently, the only case is 'windows-949' (internal
1805         name) vs 'EUC-KR'.
1806
1807         Test: fast/encoding/euckr-name.html
1808
1809         * dom/Document.cpp:
1810         (WebCore::Document::encoding): Call TextEncoding.domName() instead
1811         of TextEncoding.name().
1812         * platform/text/TextEncoding.cpp:
1813         (WebCore::TextEncoding::domName): For the canonical name 'windows-949',
1814         return 'EUC-KR'. Otherwise, just return the canonical name.
1815         * platform/text/TextEncoding.h:
1816
1817 2009-05-05  Adam Langley  <agl@google.com>
1818
1819         Reviewed by Darin Adler.
1820
1821         Rendering fix for <select> elements.
1822         https://bugs.webkit.org/show_bug.cgi?id=25558
1823
1824         When switching a <select> element from display:none to default
1825         display, we would fail to invalidate the parent's pref widths in some
1826         situations:
1827
1828         When attaching the element, RenderMenuList::updateOptionsWidth would
1829         call setNeedsLayoutAndPrefWidthsRecalc before the parent pointer was
1830         set. This would mark the pref widths as dirty, but not for any parent
1831         objects.
1832
1833         When RenderObjectChildList::appendChildNode later calls
1834         setNeedsLayoutAndPrefWidthsRecalc again, with a valid parent pointer,
1835         nothing would be done because the pref widths were already dirty for.
1836         the RenderMenuList.
1837
1838         * rendering/RenderMenuList.cpp:
1839         (WebCore::RenderMenuList::updateOptionsWidth):
1840
1841 2009-05-05  Antony Sargent  <asargent@chromium.org>
1842
1843         Reviewed by Dimitri Glazkov.
1844
1845         Switch V8EventListenerList to use HashTable<T>.
1846         https://bugs.webkit.org/show_bug.cgi?id=25496
1847         
1848         This avoids some tricky issues with event listener removal in the 
1849         current implementation and has slightly better performance.
1850
1851         No new functionality so no new tests.
1852
1853         * bindings/v8/V8EventListenerList.cpp: Added V8EventListenerListIterator.
1854         * bindings/v8/V8EventListenerList.h:
1855         (WebCore::V8EventListenerList::size):
1856         * bindings/v8/WorkerContextExecutionProxy.cpp:
1857         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
1858
1859 2009-05-05  Darin Fisher  <darin@chromium.org>
1860
1861         Fixing build bustage.
1862
1863         Add some missing includes to fix the Chromium build.
1864
1865         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1866         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1867
1868 2009-05-05  Darin Fisher  <darin@chromium.org>
1869
1870         Reviewed by Darin Adler.
1871
1872         https://bugs.webkit.org/show_bug.cgi?id=25570
1873
1874         history.{back,forward,go} should always be dispatched asynchronously,
1875         even when the history navigation would just result in scrolling the
1876         page.  This matches the behavior of other browsers like IE and FF.
1877
1878         Test: fast/history/back-forward-is-asynchronous.html
1879
1880         * loader/FrameLoader.cpp:
1881         (WebCore::FrameLoader::scheduleHistoryNavigation):
1882
1883 2009-05-05  Eric Seidel  <eric@webkit.org>
1884
1885         Reviewed by Simon Fraser.
1886
1887         Add an ASSERT(useTransforms) to mapLocalToContainer implementations in SVG.
1888         https://bugs.webkit.org/show_bug.cgi?id=25532
1889         https://bugs.webkit.org/show_bug.cgi?id=25568
1890
1891         Adding this ASSERT exposed a bug in SVGPaintServerPattern::setup
1892         which was causing transformed SVG text when filled/stroked with a
1893         pattern using patternUnits=objectBoundingBox to draw incorrectly.
1894
1895         I fixed the incorrect drawing (by removing the broken code) and added
1896         two test cases to test the fix:
1897         * svg/transforms/text-with-pattern-inside-transformed-html.xhtml
1898         * svg/transforms/text-with-pattern-with-svg-transform.svg
1899
1900         * rendering/RenderSVGRoot.cpp:
1901         (WebCore::RenderSVGRoot::mapLocalToContainer):
1902         * rendering/SVGRenderSupport.cpp:
1903         (WebCore::SVGRenderBase::mapLocalToContainer):
1904         * svg/graphics/SVGPaintServerPattern.cpp:
1905         (WebCore::SVGPaintServerPattern::setup):
1906
1907 2009-05-05  Greg Bolsinga  <bolsinga@apple.com>
1908
1909         Reviewed by Sam Weinig.
1910
1911         https://bugs.webkit.org/show_bug.cgi?id=25554
1912         
1913         Support HTML5 text control input types: email, number, tel, url
1914
1915         Test: fast/html/text-field-input-types.html
1916
1917         * bindings/objc/DOMHTML.mm:
1918         (-[DOMHTMLInputElement _isTextField]): Call HTMLInputElement::isTextField directly.
1919         * html/HTMLInputElement.cpp: Use the new types where appropriate.
1920         (WebCore::HTMLInputElement::setInputType):
1921         (WebCore::HTMLInputElement::type):
1922         (WebCore::HTMLInputElement::saveState):
1923         (WebCore::HTMLInputElement::restoreState):
1924         (WebCore::HTMLInputElement::accessKeyAction):
1925         (WebCore::HTMLInputElement::rendererIsNeeded):
1926         (WebCore::HTMLInputElement::createRenderer):
1927         (WebCore::HTMLInputElement::appendFormData):
1928         (WebCore::HTMLInputElement::valueWithDefault):
1929         (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
1930         (WebCore::HTMLInputElement::defaultEventHandler):
1931         * html/HTMLInputElement.h: Ditto.
1932         (WebCore::HTMLInputElement::):
1933         (WebCore::HTMLInputElement::isTextField):
1934
1935 2009-04-01  miggilin  <mr.diggilin@gmail.com>
1936
1937         Reviewed by Kevin Ollivier.
1938
1939         Mouse wheel scrolling and keyboard shortcut support for wx.
1940         
1941         https://bugs.webkit.org/show_bug.cgi?id=24797
1942
1943         * platform/ScrollView.cpp:
1944         (WebCore::ScrollView::wheelEvent):
1945         * platform/wx/KeyboardEventWx.cpp:
1946         (WebCore::windowsKeyCodeForKeyEvent):
1947         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1948         * platform/wx/ScrollViewWx.cpp:
1949         (WebCore::ScrollView::platformSetScrollPosition):
1950
1951 2009-05-05  Kevin Ollivier  <kevino@theolliviers.com>
1952
1953         wx build fix for Windows, add missing include.
1954         
1955         https://bugs.webkit.org/show_bug.cgi?id=24798
1956
1957         * platform/wx/wxcode/win/non-kerned-drawing.cpp:
1958
1959 2009-05-05  Chris Fleizach  <cfleizach@apple.com>
1960
1961         Reviewed by Beth Dakin.
1962
1963         Bug 25574: AXImageMap children links don't respond properly to accessibilityHitTest:
1964         https://bugs.webkit.org/show_bug.cgi?id=25574
1965
1966         Enable accessibility hit-testing for image map links. 
1967         Allow image map links to return AXURLs and AXAccessKey information.
1968
1969         Test: platform/mac/accessibility/imagemap-hittest.html
1970
1971         * page/AccessibilityImageMapLink.cpp:
1972         (WebCore::AccessibilityImageMapLink::url):
1973         * page/AccessibilityImageMapLink.h:
1974         * page/AccessibilityObject.h:
1975         (WebCore::AccessibilityObject::minValueForRange):
1976         * page/AccessibilityRenderObject.cpp:
1977         (WebCore::AccessibilityRenderObject::accessibilityParentForImageMap):
1978         (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
1979         (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
1980         * page/AccessibilityRenderObject.h:
1981         * page/mac/AccessibilityObjectWrapper.mm:
1982         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
1983
1984 2009-05-05  Kevin McCullough  <kmccullough@apple.com>
1985
1986         Reviewed by Dan Bernstein.
1987
1988         <rdar://problem/6552129> Select a quote line and paste elsewhere, you
1989         get that line and an extra quoted blank line
1990         <rdar://problem/6609308> Triple-click a quoted header line, copy, paste
1991         onto an empty line makes an extra quoted line
1992
1993         - When pasting a blockquote with a newline, make sure we put the newline
1994         outside of the blockquote so that it is not quoted.
1995
1996         * editing/InsertParagraphSeparatorCommand.cpp:
1997         (WebCore::InsertParagraphSeparatorCommand::doApply):
1998
1999 2009-05-05  Jan Michael Alonzo  <jmalonzo@webkit.org>
2000
2001         Reviewed by Xan Lopez.
2002
2003         Call moz_gtk_shutdown on RenderThemeGtk destruction.
2004
2005         * platform/gtk/RenderThemeGtk.cpp:
2006         (WebCore::RenderThemeGtk::~RenderThemeGtk):
2007         * platform/gtk/RenderThemeGtk.h:
2008
2009 2009-05-05  Darin Adler  <darin@apple.com>
2010
2011         Reviewed by Steve Falkenburg.
2012
2013         <rdar://problem/6858340> REGRESSION: can't drag local HTML files into Safari because CFURLCreateWithFileSystemPath inserts "localhost"
2014
2015         * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::urlFromPath): Remove localhost.
2016
2017 2009-05-05  Peter Kasting  <pkasting@google.com>
2018
2019         Reviewed by Brady Eidson.
2020
2021         Safety-check m_documentLoader before dereferencing.  While it seems
2022         unlikely this could fail (as Safari 3 shipped without this),
2023         technically almost any call can change or reset m_documentLoader.
2024
2025         * loader/FrameLoader.cpp:
2026         (WebCore::FrameLoader::receivedFirstData):
2027
2028 2009-05-05  Dan Bernstein  <mitz@apple.com>
2029
2030         - Tiger build fix
2031
2032         * css/CSSComputedStyleDeclaration.cpp:
2033         (WebCore::toCSSIdentifier):
2034
2035 2009-05-05  Peter Kasting  <pkasting@google.com>
2036
2037         Reviewed by Eric Seidel.
2038
2039         https://bugs.webkit.org/show_bug.cgi?id=25303
2040         No need to ref the internal buffer inside the Skia ImageDecoder.
2041
2042         * platform/image-decoders/skia/ImageDecoder.h:
2043         (WebCore::RGBA32Buffer::RGBA32Buffer):
2044         (WebCore::RGBA32Buffer::operator=):
2045         (WebCore::RGBA32Buffer::clear):
2046         (WebCore::RGBA32Buffer::copyBitmapData):
2047         (WebCore::RGBA32Buffer::bitmap):
2048         (WebCore::RGBA32Buffer::setSize):
2049         (WebCore::RGBA32Buffer::width):
2050         (WebCore::RGBA32Buffer::height):
2051         (WebCore::RGBA32Buffer::hasAlpha):
2052         (WebCore::RGBA32Buffer::setStatus):
2053         (WebCore::RGBA32Buffer::setHasAlpha):
2054         (WebCore::RGBA32Buffer::setRGBA):
2055
2056 2009-05-05  Dan Bernstein  <mitz@apple.com>
2057
2058         Reviewed by Darin Adler.
2059
2060         - fix https://bugs.webkit.org/show_bug.cgi?id=24192
2061           <rdar://problem/5760774> Replying to a Mail message that contains
2062           fixed width text can change the size of the text
2063
2064         Covered by existing tests: editing/pasteboard/5027857.html
2065                                    editing/pasteboard/paste-pre-002.html
2066
2067         * css/CSSComputedStyleDeclaration.cpp:
2068         (WebCore::CSSComputedStyleDeclaration::getFontSizeCSSValuePreferringKeyword):
2069         Added. If the font-size is keyword-based, returns the keyword value
2070         instead of the pixel size.
2071         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): If
2072         font-family is a generic family, return the generic family instead of
2073         the the internal string -webkit-[serif|sans-serif|cursive|fantasy
2074         |monospace].
2075         (WebCore::CSSComputedStyleDeclaration::copyInheritableProperties):
2076         For the font-size property, prefer a keyword value over a pixel size.
2077         * css/CSSComputedStyleDeclaration.h:
2078         * editing/ApplyStyleCommand.cpp:
2079         (WebCore::StyleChange::currentlyHasStyle): For the font-size property,
2080         call getFontSizeCSSValuePreferringKeyword().
2081         * platform/graphics/FontDescription.h:
2082         (WebCore::FontDescription::keywordSize): Changed the return type to
2083         unsigned.
2084         (WebCore::FontDescription::setKeywordSize): Changed the parameter type
2085         to unsigned.
2086         (WebCore::FontDescription::m_keywordSize): Changed the type of this
2087         4-bit field to unsigned, because it takes values as high as 8.
2088
2089 2009-05-05  Oliver Hunt  <oliver@apple.com>
2090
2091         Reviewed by Maciej Stachowiak.
2092
2093         Fix http/tests/misc/DOMContentLoaded-event.html
2094
2095         The native call performance improvement removed a few places where we
2096         unintentionally performed a toThisObject conversion.  This patch updates
2097         the bindings codegen to not rely on this bug.
2098
2099         * bindings/scripts/CodeGeneratorJS.pm:
2100
2101 2009-05-05  Holger Hans Peter Freyther  <zecke@selfish.org>
2102
2103         Reviewed by Xan Lopez and Gustavo Noronha.
2104
2105         Implement WebCore::directoryName for Gtk+.
2106
2107         * platform/gtk/FileSystemGtk.cpp:
2108         (WebCore::directoryName):
2109
2110 2009-05-05  Eric Seidel  <eric@webkit.org>
2111
2112         Reviewed by Adam Roben.
2113
2114         Fix mappedAttributes() access without NULL check
2115         https://bugs.webkit.org/show_bug.cgi?id=25553
2116
2117         SVGStyledElement::getPresentationAttribute was using mappedAttributes()
2118         without checking for NULL.
2119
2120         HTMLInputElement::setInputType also doesn't NULL check, but I was not
2121         able to get it to crash with a test case so I just added an ASSERT.
2122
2123         * html/HTMLInputElement.cpp:
2124         (WebCore::HTMLInputElement::setInputType):
2125         * svg/SVGStyledElement.cpp:
2126         (WebCore::SVGStyledElement::getPresentationAttribute):
2127
2128 2009-05-05  Holger Hans Peter Freyther  <zecke@selfish.org>
2129
2130         Reviewed by Xan Lopez.
2131
2132         Implement WebCore::imageTitle for Gtk+.
2133
2134         * platform/gtk/LocalizedStringsGtk.cpp:
2135         (WebCore::imageTitle):
2136
2137 2009-05-05  Oliver Hunt  <oliver@apple.com>
2138
2139         Reviewed by Gavin Barraclough.
2140
2141         Bug 25559: Improve native function call performance
2142         <https://bugs.webkit.org/show_bug.cgi?id=25559>
2143
2144         Add forwarding header necessary for compilation, and fix debugger
2145         to correctly account for change in JSFunction behaviour.
2146
2147         * ForwardingHeaders/jit/JITCode.h: Added.
2148         * inspector/JavaScriptDebugServer.cpp:
2149         (WebCore::JavaScriptDebugServer::recompileAllJSFunctions):
2150
2151 2009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
2152
2153         Reviewed by Ariya Hidayat.
2154
2155         Make convertValueToQVariant more robust against null JSValues.
2156
2157         Don't require the caller to do the null check.
2158
2159         * bridge/qt/qt_runtime.cpp:
2160         (JSC::Bindings::convertValueToQVariant):
2161
2162 2009-05-05  Eric Seidel  <eric@webkit.org>
2163
2164         No review, just a revert.
2165
2166         Roll out http://trac.webkit.org/changeset/43213 as it caused 4 tests to crash.
2167
2168         * rendering/RenderSVGRoot.cpp:
2169         (WebCore::RenderSVGRoot::mapLocalToContainer):
2170         * rendering/SVGRenderSupport.cpp:
2171         (WebCore::SVGRenderBase::mapLocalToContainer):
2172
2173 2009-05-04  Alexey Proskuryakov  <ap@webkit.org>
2174
2175         Reviewed by Dave Hyatt.
2176
2177         <rdar://problem/6576889> REGRESSION (r35185): Cannot watch Flash movies on omg.yahoo.com
2178
2179         The problem was caused by missing <head> element - we used to create it when moving a
2180         misplaced <style> element, but we now handle those in place. Other browsers always create
2181         a <head> element.
2182
2183         There is no guarantee that a <head> element always exists - first, it can be removed with
2184         removeChild or innerHTML, and also, we don't currently create it for frameset documents, or
2185         for manually created ones (e.g. ImageDocument).
2186
2187         Test: fast/parser/head-element-for-yahoo-player.html
2188
2189         * dom/Document.cpp: (WebCore::Document::implicitClose): Create a <head> element for about:blank.
2190         A removed comment talked about rdar://3758785, but that problem doesn't re-occur even if this
2191         code is removed completely.
2192
2193         * html/HTMLHtmlElement.cpp: (WebCore::HTMLHtmlElement::checkDTD): No longer allow <script>
2194         elements as children of <html>. This isn't directly related to this bug, but it was easier
2195         to fix both at once (IE and Firefox both don't allow such mispositioned <script> elements).
2196
2197         * html/HTMLParser.cpp:
2198         (WebCore::HTMLParser::handleError): Move <script> to <head> if <body> hasn't been created yet.
2199         Create a <head> it a <body> is created implicitly to contain some other element.
2200         (WebCore::HTMLParser::bodyCreateErrorCheck): Ensure that a <head> exists when <body> is
2201         explicitly present in source.
2202         (WebCore::HTMLParser::createHead): Do the work even if <html> element hasn't been created yet.
2203
2204 2009-05-04  Jakub Wieczorek  <faw217@gmail.com>
2205
2206         Reviewed by Simon Hausmann.
2207
2208         As Qtish implementation of MIMETypeRegistry::getMIMETypeForExtension()
2209         returns the application/octet-stream mimetype when it can't associate
2210         extension with any mimetype, it can happen that the application/octet-stream
2211         mimetype will hit the list of supported image formats. For instance,
2212         it is possible when QImageReader or QImageWriter support an extension
2213         that is not in the extensions map.
2214
2215         Make sure that this mimetype is not treated as displayable image type.
2216
2217         * platform/MIMETypeRegistry.cpp:
2218         (WebCore::initializeSupportedImageMIMETypes):
2219         (WebCore::initializeSupportedImageMIMETypesForEncoding):
2220
2221 2009-05-03  Eric Seidel  <eric@webkit.org>
2222
2223         Reviewed by Simon Fraser.
2224
2225         ASSERT(useTransforms) in SVG mapLocalToContainer implementations
2226         https://bugs.webkit.org/show_bug.cgi?id=25532
2227
2228         * rendering/RenderSVGRoot.cpp:
2229         (WebCore::RenderSVGRoot::mapLocalToContainer):
2230         * rendering/SVGRenderSupport.cpp:
2231         (WebCore::SVGRenderBase::mapLocalToContainer):
2232
2233 2009-05-03  Eric Seidel  <eric@webkit.org>
2234
2235         Reviewed by Simon Fraser.
2236
2237         Remove m_absoluteBounds hack from RenderSVGText
2238         https://bugs.webkit.org/show_bug.cgi?id=25532
2239
2240         No functional changes (SVGs inside CSS transformed HTML should theoretically repaint better)
2241
2242         * rendering/RenderSVGText.cpp:
2243         (WebCore::RenderSVGText::layout):
2244         * rendering/RenderSVGText.h:
2245
2246 2009-05-03  Eric Seidel  <eric@webkit.org>
2247
2248         Reviewed by Simon Fraser.
2249
2250         Remove the vestigial calculateLocalTransform()
2251         https://bugs.webkit.org/show_bug.cgi?id=25532
2252
2253         RenderSVGContainer is now the only render which needs this
2254         function, but it no longer returns the unused bool.
2255
2256         calculateLocalTransform() previously was called by the DOM before
2257         transform updates were part of layout().
2258
2259         * rendering/RenderForeignObject.cpp:
2260         (WebCore::RenderForeignObject::layout):
2261         * rendering/RenderForeignObject.h:
2262         (WebCore::RenderForeignObject::localTransform):
2263         * rendering/RenderPath.cpp:
2264         (WebCore::RenderPath::layout):
2265         * rendering/RenderPath.h:
2266         * rendering/RenderSVGContainer.cpp:
2267         * rendering/RenderSVGContainer.h:
2268         (WebCore::RenderSVGContainer::calculateLocalTransform):
2269         * rendering/RenderSVGImage.cpp:
2270         (WebCore::RenderSVGImage::layout):
2271         * rendering/RenderSVGImage.h:
2272         * rendering/RenderSVGText.cpp:
2273         (WebCore::RenderSVGText::layout):
2274         * rendering/RenderSVGText.h:
2275         * rendering/RenderSVGTransformableContainer.cpp:
2276         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
2277         * rendering/RenderSVGTransformableContainer.h:
2278
2279 2009-05-03  Eric Seidel  <eric@webkit.org>
2280
2281         Reviewed by Simon Fraser.
2282
2283         Move more code into SVGRenderBase
2284         https://bugs.webkit.org/show_bug.cgi?id=25532
2285
2286         clippedOverflowRectForRepaint, computeRectForRepaint and mapLocalToContainer
2287         are now all shared via SVGRenderBase.
2288
2289         RenderForeignObject should also be sharing this code, but I've left it
2290         alone for now, as changing that would likely cause test changes.
2291
2292         No test changes.  It's possible that transformed <svg:image> elements will
2293         now show up with better metrics in the inspector.
2294
2295         * rendering/RenderSVGImage.cpp:
2296         (WebCore::RenderSVGImage::clippedOverflowRectForRepaint):
2297         (WebCore::RenderSVGImage::computeRectForRepaint):
2298         (WebCore::RenderSVGImage::mapLocalToContainer):
2299         * rendering/RenderSVGImage.h:
2300         * rendering/RenderSVGModelObject.cpp:
2301         (WebCore::RenderSVGModelObject::clippedOverflowRectForRepaint):
2302         (WebCore::RenderSVGModelObject::computeRectForRepaint):
2303         (WebCore::RenderSVGModelObject::mapLocalToContainer):
2304         * rendering/RenderSVGText.cpp:
2305         (WebCore::RenderSVGText::clippedOverflowRectForRepaint):
2306         (WebCore::RenderSVGText::computeRectForRepaint):
2307         (WebCore::RenderSVGText::mapLocalToContainer):
2308         * rendering/SVGRenderSupport.cpp:
2309         (WebCore::SVGRenderBase::clippedOverflowRectForRepaint):
2310         (WebCore::SVGRenderBase::computeRectForRepaint):
2311         (WebCore::SVGRenderBase::mapLocalToContainer):
2312         * rendering/SVGRenderSupport.h:
2313
2314 2009-05-03  Eric Seidel  <eric@webkit.org>
2315
2316         Reviewed by Simon Fraser.
2317
2318         Add SVGRenderBase to share logic between SVG renderers
2319         https://bugs.webkit.org/show_bug.cgi?id=25532
2320
2321         I've added an SVGRenderBase base class which is shared by
2322         all of the SVG renders now.  This patch is just moving code
2323         there are no functional changes in this patch.
2324
2325         Currently I've left these functions in SVGRenderSupport.h
2326         In a later patch I will rename SVGRenderSupport.* to SVGRenderBase.*
2327
2328         clampImageBufferSizeToViewport now takes a FrameView* which makes some code easier to read.
2329
2330         * rendering/RenderSVGBlock.h:
2331         * rendering/RenderSVGImage.h:
2332         * rendering/RenderSVGModelObject.h:
2333         * rendering/RenderSVGRoot.h:
2334         * rendering/SVGRenderSupport.cpp:
2335         (WebCore::SVGRenderBase::prepareToRenderSVGContent):
2336         (WebCore::SVGRenderBase::finishRenderSVGContent):
2337         (WebCore::clampImageBufferSizeToViewport):
2338         (WebCore::SVGRenderBase::computeContainerBoundingBox):
2339         (WebCore::SVGRenderBase::filterBoundingBoxForRenderer):
2340         * rendering/SVGRenderSupport.h:
2341         * rendering/SVGRootInlineBox.cpp:
2342         (WebCore::SVGRootInlineBoxPaintWalker::chunkStartCallback):
2343         (WebCore::SVGRootInlineBoxPaintWalker::chunkEndCallback):
2344         (WebCore::SVGRootInlineBox::paint):
2345         * svg/SVGMaskElement.cpp:
2346         (WebCore::SVGMaskElement::drawMaskerContent):
2347         * svg/SVGPatternElement.cpp:
2348         (WebCore::SVGPatternElement::buildPattern):
2349         * svg/graphics/SVGPaintServerGradient.cpp:
2350         (WebCore::createMaskAndSwapContextForTextGradient):
2351         (WebCore::clipToTextMask):
2352
2353 2009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
2354
2355         Unreviewed SVG build fix.
2356
2357         Include MappedAttribute.h after r43187.
2358
2359         * svg/SVGComponentTransferFunctionElement.cpp:
2360         * svg/SVGFEBlendElement.cpp:
2361         * svg/SVGFEColorMatrixElement.cpp:
2362         * svg/SVGFEComponentTransferElement.cpp:
2363         * svg/SVGFECompositeElement.cpp:
2364         * svg/SVGFEDiffuseLightingElement.cpp:
2365         * svg/SVGFEDisplacementMapElement.cpp:
2366         * svg/SVGFEGaussianBlurElement.cpp:
2367         * svg/SVGFEImageElement.cpp:
2368         * svg/SVGFELightElement.cpp:
2369         * svg/SVGFEMergeNodeElement.cpp:
2370         * svg/SVGFEOffsetElement.cpp:
2371         * svg/SVGFESpecularLightingElement.cpp:
2372         * svg/SVGFETileElement.cpp:
2373         * svg/SVGFETurbulenceElement.cpp:
2374         * svg/SVGFilterElement.cpp:
2375         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2376
2377 2009-05-04  Brady Eidson  <beidson@apple.com>
2378
2379         Reviewed by Sam 'The Belly' Weinig
2380
2381         <rdar://problem/6828894> - Facebook photo uploader applet broken on Leopard only
2382
2383         In r41568 we started adding a default codebase attribute to <applet> tags if they didn't specify one
2384         themselves.  Leopard's Java plug-in mishandles this case and fails to load code for the applet.
2385
2386         The spirit of r41568 can be maintained by removing the "default codebase" piece and only performing
2387         the canLoad() check if a codebase was actually set on the applet tag.
2388
2389         * html/HTMLAppletElement.cpp:
2390         (WebCore::HTMLAppletElement::createRenderer): Don't create a default codebase attribute.
2391
2392         * loader/FrameLoader.cpp:
2393         (WebCore::FrameLoader::createJavaAppletWidget): Only perform the canLoad() check if the codebase was set.
2394
2395 2009-05-04  Adam Roben  <aroben@apple.com>
2396
2397         Windows build fix
2398
2399         * html/HTMLCollection.h:
2400         * html/HTMLFormElement.h:
2401         Declare CollectionCache as a struct, not a class, to match its
2402         definition.
2403
2404 2009-05-04  Chris Fleizach  <cfleizach@apple.com>
2405
2406         Reviewed by Beth Dakin, Oliver Hunt.
2407
2408         Bug 25557: REGRESSION: Canvas elements are ignored instead of being exposed as AXImage
2409         https://bugs.webkit.org/show_bug.cgi?id=25557
2410
2411         Test: accessibility/canvas.html
2412
2413         * page/AccessibilityRenderObject.cpp:
2414         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2415         (WebCore::AccessibilityRenderObject::roleValue):
2416
2417 2009-05-04  Brady Eidson  <beidson@apple.com>
2418
2419         Fix an ancient Changelog entry where Sam Weinig flat out lied and confused my exploration of a bug.
2420
2421         * ChangeLog
2422
2423 2009-05-04  Kai Brüning  <kai@granus.net>
2424
2425         Reviewed by Eric Seidel.
2426         
2427         https://bugs.webkit.org/show_bug.cgi?id=24883
2428         24883: Bad success test in parseXMLDocumentFragment in XMLTokenizerLibxml2.cpp
2429         
2430         Fixed test whether all the chunk has been processed to correctly count utf8 bytes.
2431
2432         Test: fast/innerHTML/innerHTML-nbsp.xhtml
2433
2434         * dom/XMLTokenizerLibxml2.cpp:
2435         (WebCore::parseXMLDocumentFragment):
2436
2437 2009-05-04  Darin Adler  <darin@apple.com>
2438
2439         Reviewed by Eric Seidel.
2440
2441         Bug 24924: remove Document.h include of Attr.h and HTMLCollection.h,
2442         and NamedMappedAttrMap.h include of MappedAttribute.h
2443         https://bugs.webkit.org/show_bug.cgi?id=24924
2444
2445         Make compiles faster, and debugging info smaller.
2446
2447         * GNUmakefile.am: Added new source files.
2448         * WebCore.pro: Ditto.
2449         * WebCore.scons: Ditto.
2450         * WebCore.vcproj/WebCore.vcproj: Ditto.
2451         * WebCore.xcodeproj/project.pbxproj: Ditto.
2452         * WebCoreSources.bkl: Ditto.
2453
2454         * bindings/js/JSHTMLCollectionCustom.cpp:
2455         (WebCore::toJS): Updated for new collection type names.
2456
2457         * dom/Document.cpp:
2458         (WebCore::Document::createAttribute): Added. No longer inline.
2459         (WebCore::Document::images): Updated for new collection type names.
2460         (WebCore::Document::applets): Ditto.
2461         (WebCore::Document::embeds): Ditto.
2462         (WebCore::Document::plugins): Ditto.
2463         (WebCore::Document::objects): Ditto.
2464         (WebCore::Document::scripts): Ditto.
2465         (WebCore::Document::links): Ditto.
2466         (WebCore::Document::forms): Ditto.
2467         (WebCore::Document::anchors): Ditto.
2468         (WebCore::Document::all): Ditto.
2469         (WebCore::Document::windowNamedItems): Ditto.
2470         (WebCore::Document::documentNamedItems): Ditto.
2471         (WebCore::Document::nameCollectionInfo): Ditto.
2472
2473         * dom/Document.h: Changed around includes and forward declarations.
2474         Updated for changes to collection types.
2475
2476         * dom/NamedMappedAttrMap.h: Removed include of MappedAttribute.h.
2477
2478         * html/CollectionCache.cpp: Copied from WebCore/html/HTMLCollection.cpp.
2479         Contains the class that used to be HTMLCollection::CollectionInfo.
2480         * html/CollectionCache.h: Copied from WebCore/html/HTMLCollection.h.
2481         Ditto.
2482
2483         * html/CollectionType.h: Copied from WebCore/html/HTMLCollection.h.
2484         Has the enum that used to be HTMLCollection::Type.
2485
2486         * html/HTMLCollection.cpp:
2487         (WebCore::HTMLCollection::HTMLCollection): Update for collection type change.
2488         (WebCore::HTMLCollection::create): Ditto.
2489         (WebCore::HTMLCollection::resetCollectionInfo): Ditto.
2490         (WebCore::HTMLCollection::itemAfter): Ditto.
2491         * html/HTMLCollection.h: Ditto.
2492
2493         * html/HTMLElement.cpp:
2494         (WebCore::HTMLElement::children): Updated for new collection type names.
2495         * html/HTMLFormCollection.cpp:
2496         (WebCore::HTMLFormCollection::formCollectionInfo): Ditto.
2497         (WebCore::HTMLFormCollection::HTMLFormCollection): Ditto.
2498         * html/HTMLFormCollection.h: Ditto.
2499         * html/HTMLFormElement.h: Ditto.
2500         * html/HTMLMapElement.cpp:
2501         (WebCore::HTMLMapElement::areas): Ditto.
2502         * html/HTMLNameCollection.cpp:
2503         (WebCore::HTMLNameCollection::HTMLNameCollection): Ditto.
2504         * html/HTMLNameCollection.h:
2505         (WebCore::HTMLNameCollection::create): Ditto.
2506         * html/HTMLSelectElement.h:
2507         (WebCore::HTMLSelectElement::collectionInfo): Ditto.
2508         * html/HTMLTableElement.cpp:
2509         (WebCore::HTMLTableElement::tBodies):Ditto.
2510         * html/HTMLTableRowElement.cpp:
2511         (WebCore::HTMLTableRowElement::cells):Ditto.
2512         * html/HTMLTableRowsCollection.cpp:
2513         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection): Ditto.
2514         * html/HTMLTableSectionElement.cpp:
2515         (WebCore::HTMLTableSectionElement::rows): Ditto.
2516
2517         * bindings/js/JSDOMWindowBase.cpp: Added newly-needed includes.
2518         * bindings/js/JSHTMLFrameSetElementCustom.cpp: Ditto.
2519         * css/CSSStyleSelector.cpp: Ditto.
2520         * dom/Element.cpp: Ditto.
2521         * dom/InputElement.cpp: Ditto.
2522         * dom/NamedAttrMap.cpp: Ditto.
2523         * dom/NamedMappedAttrMap.cpp: Ditto.
2524         * dom/Node.cpp: Ditto.
2525         * dom/StyledElement.cpp: Ditto.
2526         * dom/StyledElement.h: Ditto.
2527         * editing/ApplyStyleCommand.cpp: Ditto.
2528         * editing/DeleteSelectionCommand.cpp: Ditto.
2529         * editing/Editor.cpp: Ditto.
2530         * editing/EditorCommand.cpp: Ditto.
2531         * editing/InsertParagraphSeparatorCommand.cpp: Ditto.
2532         * editing/ReplaceSelectionCommand.cpp: Ditto.
2533         * editing/markup.cpp: Ditto.
2534         * html/CanvasRenderingContext2D.cpp: Ditto.
2535         * html/HTMLAnchorElement.cpp: Ditto.
2536         * html/HTMLAppletElement.cpp: Ditto.
2537         * html/HTMLAreaElement.cpp: Ditto.
2538         * html/HTMLBRElement.cpp: Ditto.
2539         * html/HTMLBaseElement.cpp: Ditto.
2540         * html/HTMLBodyElement.cpp: Ditto.
2541         * html/HTMLButtonElement.cpp: Ditto.
2542         * html/HTMLCanvasElement.cpp: Ditto.
2543         * html/HTMLDivElement.cpp: Ditto.
2544         * html/HTMLEmbedElement.cpp: Ditto.
2545         * html/HTMLFontElement.cpp: Ditto.
2546         * html/HTMLFormControlElement.cpp: Ditto.
2547         * html/HTMLFormElement.cpp: Ditto.
2548         * html/HTMLFrameElement.cpp: Ditto.
2549         * html/HTMLFrameElementBase.cpp: Ditto.
2550         * html/HTMLFrameSetElement.cpp: Ditto.
2551         * html/HTMLHRElement.cpp: Ditto.
2552         * html/HTMLIFrameElement.cpp: Ditto.
2553         * html/HTMLImageElement.cpp: Ditto.
2554         * html/HTMLInputElement.cpp: Ditto.
2555         * html/HTMLIsIndexElement.cpp: Ditto.
2556         * html/HTMLKeygenElement.cpp: Ditto.
2557         * html/HTMLLIElement.cpp: Ditto.
2558         * html/HTMLLinkElement.cpp: Ditto.
2559         * html/HTMLMarqueeElement.cpp: Ditto.
2560         * html/HTMLMetaElement.cpp: Ditto.
2561         * html/HTMLOListElement.cpp: Ditto.
2562         * html/HTMLObjectElement.cpp: Ditto.
2563         * html/HTMLOptionElement.cpp: Ditto.
2564         * html/HTMLParagraphElement.cpp: Ditto.
2565         * html/HTMLParamElement.cpp: Ditto.
2566         * html/HTMLPlugInElement.cpp: Ditto.
2567         * html/HTMLPreElement.cpp: Ditto.
2568         * html/HTMLScriptElement.cpp: Ditto.
2569         * html/HTMLSelectElement.cpp: Ditto.
2570         * html/HTMLStyleElement.cpp: Ditto.
2571         * html/HTMLTableCaptionElement.cpp: Ditto.
2572         * html/HTMLTableCellElement.cpp: Ditto.
2573         * html/HTMLTableColElement.cpp: Ditto.
2574         * html/HTMLTablePartElement.cpp: Ditto.
2575         * html/HTMLTextAreaElement.cpp: Ditto.
2576         * html/HTMLTokenizer.cpp: Ditto.
2577         * html/HTMLUListElement.cpp: Ditto.
2578         * html/HTMLVideoElement.cpp: Ditto.
2579         * html/HTMLViewSourceDocument.cpp: Ditto.
2580         * loader/ImageDocument.cpp: Ditto.
2581         * page/Frame.cpp: Ditto.
2582         * rendering/RenderTreeAsText.cpp: Ditto.
2583         * svg/SVGAElement.cpp: Ditto.
2584         * svg/SVGAnimateMotionElement.cpp: Ditto.
2585         * svg/SVGAnimateTransformElement.cpp: Ditto.
2586         * svg/SVGAnimationElement.cpp: Ditto.
2587         * svg/SVGCircleElement.cpp: Ditto.
2588         * svg/SVGClipPathElement.cpp: Ditto.
2589         * svg/SVGCursorElement.cpp: Ditto.
2590         * svg/SVGElement.cpp: Ditto.
2591         * svg/SVGEllipseElement.cpp: Ditto.
2592         * svg/SVGExternalResourcesRequired.cpp: Ditto.
2593         * svg/SVGFitToViewBox.cpp: Ditto.
2594         * svg/SVGFontFaceElement.cpp: Ditto.
2595         * svg/SVGFontFaceUriElement.cpp: Ditto.
2596         * svg/SVGForeignObjectElement.cpp: Ditto.
2597         * svg/SVGGlyphElement.cpp: Ditto.
2598         * svg/SVGGradientElement.cpp: Ditto.
2599         * svg/SVGImageElement.cpp: Ditto.
2600         * svg/SVGLangSpace.cpp: Ditto.
2601         * svg/SVGLineElement.cpp: Ditto.
2602         * svg/SVGLinearGradientElement.cpp: Ditto.
2603         * svg/SVGMarkerElement.cpp: Ditto.
2604         * svg/SVGMaskElement.cpp: Ditto.
2605         * svg/SVGPathElement.cpp: Ditto.
2606         * svg/SVGPatternElement.cpp: Ditto.
2607         * svg/SVGPolyElement.cpp: Ditto.
2608         * svg/SVGRadialGradientElement.cpp: Ditto.
2609         * svg/SVGRectElement.cpp: Ditto.
2610         * svg/SVGSVGElement.cpp: Ditto.
2611         * svg/SVGScriptElement.cpp: Ditto.
2612         * svg/SVGStopElement.cpp: Ditto.
2613         * svg/SVGStyleElement.cpp: Ditto.
2614         * svg/SVGStyledElement.cpp: Ditto.
2615         * svg/SVGStyledTransformableElement.cpp: Ditto.
2616         * svg/SVGTests.cpp: Ditto.
2617         * svg/SVGTextContentElement.cpp: Ditto.
2618         * svg/SVGTextElement.cpp: Ditto.
2619         * svg/SVGTextPathElement.cpp: Ditto.
2620         * svg/SVGTextPositioningElement.cpp: Ditto.
2621         * svg/SVGURIReference.cpp: Ditto.
2622         * svg/SVGUseElement.cpp: Ditto.
2623         * svg/SVGViewElement.cpp: Ditto.
2624         * svg/animation/SVGSMILElement.cpp: Ditto.
2625         * xml/XPathStep.cpp: Ditto.
2626
2627 2009-05-04  Pavel Feldman  <pfeldman@chromium.org>
2628
2629         Reviewed by Timothy Hatcher.
2630
2631         Do not instantiate hidden WebInspector panels. Otherwise they are hitting unimplemented InspectorController methods.
2632         https://bugs.webkit.org/show_bug.cgi?id=25520
2633
2634         * inspector/front-end/inspector.js:
2635         (WebInspector.loaded):
2636
2637 2009-05-04  Brady Eidson <beidson@apple.com>
2638
2639         Reviewed by Darin Adler.
2640
2641         <rdar://problem/6839881> With "Mail Contents of This Page" in Safari images don't appear in the Tiger Mail compose window
2642
2643         DocumentLoader::subresource() is the implementation for the WebKit API [WebDataSource subresourceForURL:] and has 
2644         particularly sticky behavior.  
2645
2646         If the DocumentLoader represents a WebArchive, this method should return ArchiveResources from that archive.  However, we 
2647         prefer CachedResources over ArchiveResources because they might represent fresher data than what was originally loaded 
2648         from the WebArchive.
2649
2650         In some instances, CachedResources are created and associated with the DocumentLoader but not immediately run through the 
2651         loading delegate machinery.  This was always a possibility, but the Preload Scanner made this significantly more likely.
2652
2653         When this happens and someone asks the WebDataSource for a subresource, it would prefer the CachedResource over an 
2654         ArchiveResource it has even if the CachedResource hasn't been loaded yet.  The CachedResource has nil data, so no
2655         WebResource is returned, and the client thinks the subresource doesn't exist even though it does.
2656
2657         This broke Tiger Mail and probably various other WebKit applications but has a fairly straightforward fix.
2658
2659         * loader/DocumentLoader.cpp:
2660         (WebCore::DocumentLoader::subresource): If there is a CachedResource but it hasn't been loaded yet, fallback to the
2661           ArchiveResource.
2662
2663 2009-05-04  Eric Carlson  <eric.carlson@apple.com>
2664
2665         Reviewed by Adam Roben.
2666         
2667         https://bugs.webkit.org/show_bug.cgi?id=25545
2668         Bug 25545: HTMLMediaElement: display anamorphic video correctly
2669         
2670         Tell QuickTime to use clean aperture mode so movies with non-square pixels are sized
2671         and displayed correctly.
2672
2673         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2674         (WebCore::MediaPlayerPrivate::createQTMovie): Ask QuickTime to use clean aperture mode.
2675         * platform/graphics/win/QTMovieWin.cpp:
2676         (QTMovieWin::load): Ditto. Add ASSERT to ensure that static movie property array isn't 
2677         filled beyond capacity.
2678
2679 2009-05-03  Mark Rowe  <mrowe@apple.com>
2680
2681         Reviewed by Darin Adler.
2682
2683         Fix <https://bugs.webkit.org/show_bug.cgi?id=25332>.
2684         Bug 25332: Plug-in inserted in to DOM of PluginDocument fails to load
2685
2686         Only the first plug-in in a PluginDocument can use the main resource data.  For all
2687         subsequent plug-ins, such as the plug-in that ClickToFlash inserts when swapping itself
2688         out for the real Flash plug-in, we need to load the resource data in the same manner
2689         as for other embedded plug-ins.
2690
2691         * loader/FrameLoader.cpp:
2692         (WebCore::FrameLoader::loadPlugin):
2693
2694 2009-05-04  Simon Hausmann  <simon.hausmann@nokia.com>
2695
2696         Rubber-stamped by Ariya Hidayat.
2697
2698         Update the qrc file for the Web Inspector in the Qt build
2699         with missing files.
2700
2701         * inspector/front-end/WebKit.qrc:
2702
2703 2009-05-03  Eric Seidel  <eric@webkit.org>
2704
2705         Reviewed by George Staikos.
2706
2707         Move absoluteRects and absoluteQuads into RenderSVGInline and remove absoluteTransform() usage
2708         https://bugs.webkit.org/show_bug.cgi?id=25532
2709
2710         * rendering/RenderSVGInline.cpp:
2711         (WebCore::RenderSVGInline::absoluteRects):
2712         (WebCore::RenderSVGInline::absoluteQuads):
2713         * rendering/RenderSVGInline.h:
2714         * rendering/RenderSVGTSpan.cpp:
2715         * rendering/RenderSVGTSpan.h:
2716         * rendering/RenderSVGTextPath.cpp:
2717         * rendering/RenderSVGTextPath.h:
2718
2719 2009-05-03  Eric Seidel  <eric@webkit.org>
2720
2721         Reviewed by George Staikos.
2722
2723         Move RenderSVGText off of localToAbsolute()
2724         https://bugs.webkit.org/show_bug.cgi?id=25532
2725
2726         * rendering/RenderSVGText.cpp:
2727         (WebCore::RenderSVGText::absoluteRects):
2728         (WebCore::RenderSVGText::absoluteQuads):
2729
2730 2009-05-03  Eric Seidel  <eric@webkit.org>
2731
2732         Reviewed by George Staikos.
2733
2734         Remove broken absoluteTransform() code from RenderSVGInlineText
2735         https://bugs.webkit.org/show_bug.cgi?id=25532
2736
2737         This improved SVG text focus rings.
2738         This also improved SVG.getScreenCTM() results.
2739
2740         SVGSVGElement::getScreenCTM was passing "true" for the second argument in
2741         localToAbsolute, which is "fixed" it meant to pass "true" for the
2742         third argument (useTransforms).  That change alone caused no layout test changes, however
2743         before I fixed this, it was hitting ASSERT(!fixed) in RenderSVGRoot::mapLocalToContainer
2744
2745         mapLocalToContainer implementations really should be shared,
2746         but I'll do that in a later patch.
2747
2748         * rendering/RenderSVGInlineText.cpp:
2749         (WebCore::RenderSVGInlineText::styleDidChange):
2750         (WebCore::RenderSVGInlineText::absoluteQuads):
2751         (WebCore::RenderSVGInlineText::computeRepaintRectForRange):
2752         (WebCore::RenderSVGInlineText::computeRepaintQuadForRange):
2753         * rendering/RenderSVGInlineText.h:
2754         * rendering/RenderSVGRoot.cpp:
2755         (WebCore::RenderSVGRoot::mapLocalToContainer):
2756         * rendering/RenderSVGRoot.h:
2757         * rendering/RenderSVGText.cpp:
2758         (WebCore::RenderSVGText::mapLocalToContainer):
2759         * rendering/RenderSVGText.h:
2760         * svg/SVGSVGElement.cpp:
2761         (WebCore::SVGSVGElement::getScreenCTM):
2762
2763 2009-05-03  Eric Seidel  <eric@webkit.org>
2764
2765         Reviewed by George Staikos.
2766
2767         Remove dead code from RenderPath
2768         https://bugs.webkit.org/show_bug.cgi?id=25532
2769
2770         * rendering/RenderPath.cpp:
2771         * rendering/RenderPath.h:
2772
2773 2009-05-03  Eric Seidel  <eric@webkit.org>
2774
2775         Reviewed by George Staikos.
2776
2777         Share layout code between RenderSVGViewportContainer and RenderSVGContainer
2778         https://bugs.webkit.org/show_bug.cgi?id=25532
2779
2780         * rendering/RenderSVGContainer.cpp:
2781         (WebCore::RenderSVGContainer::layout):
2782         * rendering/RenderSVGContainer.h:
2783         (WebCore::RenderSVGContainer::calcViewport):
2784         * rendering/RenderSVGViewportContainer.cpp:
2785         (WebCore::RenderSVGViewportContainer::applyViewportClip):
2786         * rendering/RenderSVGViewportContainer.h:
2787
2788 2009-05-03  Eric Seidel  <eric@webkit.org>
2789
2790         Reviewed by George Staikos.
2791
2792         Remove redundant disableLayoutState() calls
2793         https://bugs.webkit.org/show_bug.cgi?id=25532
2794
2795         * rendering/RenderForeignObject.cpp:
2796         (WebCore::RenderForeignObject::layout):
2797         * rendering/RenderSVGContainer.cpp:
2798         (WebCore::RenderSVGContainer::layout):
2799         * rendering/RenderSVGViewportContainer.cpp:
2800         (WebCore::RenderSVGViewportContainer::layout):
2801
2802 2009-05-03  Eric Seidel  <eric@webkit.org>
2803
2804         Reviewed by George Staikos.
2805
2806         Simplify RenderForeignObject::paint and fix a repaint bug.
2807         Paint now calls applyTransformToPaintInfo which correctly transforms the damage rect.
2808         https://bugs.webkit.org/show_bug.cgi?id=16939
2809
2810         * rendering/RenderForeignObject.cpp:
2811         (WebCore::RenderForeignObject::paint):
2812
2813 2009-05-03  Hironori Bono  <hbono@chromium.org>
2814
2815         Reviewed by Eric Seidel.
2816
2817         Test: editing/spelling/spellcheck-attribute.html
2818
2819         Bug 14552: Add a way to disable spell checking for specific element
2820         https://bugs.webkit.org/show_bug.cgi?id=14552
2821
2822         For compatibility with Firefox, this code ascends the DOM tree when an element does
2823         not have its "spellcheck" attribute.
2824
2825         * editing/Editor.cpp:
2826         (WebCore::markMisspellingsOrBadGrammar): Retrieve the value of the "spellcheck"
2827         attribute of an element before calling a spell checker or a grammar checker.
2828         * html/HTMLAttributeNames.in: Add a "spellcheck" attribute.
2829
2830 2009-05-03  Sam Weinig  <sam@webkit.org>
2831
2832         Roll JSC API number marshaling back in one last time (I hope).
2833
2834 2009-05-03  Sam Weinig  <sam@webkit.org>
2835
2836         Roll JSC API number marshaling back out. It still breaks windows.
2837
2838 2009-05-03  Sam Weinig  <sam@webkit.org>
2839
2840         Roll JSC API number marshaling back in.
2841
2842 2009-05-02  Dan Bernstein  <mitz@apple.com>
2843
2844         Reviewed by Darin Adler.
2845
2846         - another fix for <rdar://problem/6617298> Typing delete on an unquoted
2847           blank line unquotes the preceding, quoted blank line
2848
2849         Test: editing/deleting/type-delete-after-quote-2.html
2850
2851         * editing/DeleteSelectionCommand.cpp:
2852         (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Initialize
2853         m_startsAtEmptyLine.
2854         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): When the
2855         selection starts at an empty line, do not prevent the merging of blocks.
2856         This is what allows the text after the line break to be merged into the
2857         block containing the line break. Also set m_startsAtEmptyLine to true.
2858         (WebCore::DeleteSelectionCommand::mergeParagraphs): If
2859         m_startsAtEmptyLine is true, create a placeholder BR to serve as the
2860         merge destination.
2861         * editing/DeleteSelectionCommand.h:
2862
2863 2009-05-02  Geoffrey Garen  <ggaren@apple.com>
2864
2865         Reviewed by Sam Weinig.
2866
2867         Simplified null-ish JSValues.
2868         
2869         Replaced calls to noValue() with calls to JSValue() (which is what
2870         noValue() returned). Removed noValue().
2871         
2872         Removed "JSValue()" initialiazers, since default construction happens...
2873         by default.
2874
2875         * bindings/js/JSDOMBinding.cpp:
2876         (WebCore::setDOMException):
2877         * bindings/js/JSDOMWindowCustom.cpp:
2878         (WebCore::JSDOMWindow::open):
2879         (WebCore::JSDOMWindow::showModalDialog):
2880         * bindings/js/JSEventListener.cpp:
2881         (WebCore::JSEventListener::handleEvent):
2882         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
2883         (WebCore::JSJavaScriptCallFrame::evaluate):
2884         * bindings/js/JSSQLResultSetRowListCustom.cpp:
2885         (WebCore::JSSQLResultSetRowList::item):
2886         * bindings/js/ScriptController.cpp:
2887         (WebCore::ScriptController::evaluate):
2888         * bindings/js/ScriptValue.h:
2889         (WebCore::ScriptValue::ScriptValue):
2890         (WebCore::ScriptValue::hasNoValue):
2891         * bindings/js/WorkerScriptController.cpp:
2892         (WebCore::WorkerScriptController::evaluate):
2893         * bridge/jni/jni_instance.cpp:
2894         (JavaInstance::invokeMethod):
2895         * bridge/jni/jni_runtime.cpp:
2896         (JavaField::dispatchValueFromInstance):
2897         (JavaField::dispatchSetValueToInstance):
2898         * bridge/runtime.h:
2899         (JSC::Bindings::Instance::invokeConstruct):
2900
2901 2009-05-02  Antti Koivisto  <antti@apple.com>
2902
2903         Reviewed by Dan Bernstein.
2904
2905         <rdar://problem/6631735> Crash in WebCore::CSSStyleSelector::applyProperty(int, WebCore::CSSValue*) (RenderStyle.h:454)
2906         
2907         Avoid re-entering style selector from load delegates by not issuing resource loads synchronously during attach().
2908
2909         * dom/ContainerNode.cpp:
2910         (WebCore::ContainerNode::suspendPostAttachCallbacks):
2911         (WebCore::ContainerNode::resumePostAttachCallbacks):
2912         (WebCore::ContainerNode::attach):
2913         * dom/Element.cpp:
2914         (WebCore::Element::attach):
2915         * loader/loader.cpp:
2916         (WebCore::Loader::Loader):
2917         (WebCore::Loader::servePendingRequests):
2918         (WebCore::Loader::suspendPendingRequests):
2919         (WebCore::Loader::resumePendingRequests):
2920         (WebCore::Loader::Host::servePendingRequests):
2921         * loader/loader.h:
2922         (WebCore::Loader::isSuspendingPendingRequests):
2923
2924 2009-05-02  Darin Adler  <darin@apple.com>
2925
2926         Reviewed by Dan Bernstein.
2927
2928         Bug 25352: REGRESSION(r42322): style isn't applied at bmwusa.com
2929         https://bugs.webkit.org/show_bug.cgi?id=25352
2930         rdar://problem/6823239
2931
2932         Test: http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type.html
2933
2934         * platform/network/HTTPParsers.cpp:
2935         (WebCore::extractMIMETypeFromMediaType): Allow comma as a separator.
2936
2937 2009-05-02  Darin Adler  <darin@apple.com>
2938
2939         Reviewed by Brady Eidson.
2940
2941         Bug 25491: WebFrame leak when a subframe removes itself
2942         https://bugs.webkit.org/show_bug.cgi?id=25491
2943         rdar://problem/6833859
2944
2945         Test: fast/loading/subframe-removes-itself.html
2946
2947         * loader/FrameLoader.cpp:
2948         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): When isStopping is true,
2949         treat load as complete, even if isLoadingInAPISense is still returning true.
2950
2951 2009-05-01  Sam Weinig  <sam@webkit.org>
2952
2953         Roll out JavaScriptCore API number marshaling.
2954
2955         * bindings/js/ScriptValue.cpp:
2956         (WebCore::ScriptValue::isEqual):
2957         * inspector/JavaScriptProfile.cpp:
2958         (WebCore::getHeadCallback):
2959         * inspector/JavaScriptProfileNode.cpp:
2960         (WebCore::getChildren):
2961         (WebCore::getParent):
2962         (WebCore::getHead):
2963
2964 2009-05-01  Sam Weinig  <sam@webkit.org>
2965
2966         Fix build.
2967
2968         * workers/WorkerContext.idl:
2969
2970 2009-05-01  Sam Weinig  <sam@webkit.org>
2971
2972         Reviewed by Oliver Hunt.
2973
2974         Cleanup workers code a bit.
2975
2976         * bindings/js/JSWorkerContextBase.cpp:
2977         (WebCore::toJS):
2978         * bindings/js/JSWorkerContextBase.h:
2979         * bindings/js/JSWorkerContextCustom.cpp:
2980         (WebCore::JSWorkerContext::customGetOwnPropertySlot):
2981         * workers/WorkerContext.h:
2982         (WebCore::WorkerContext::toWorkerContext):
2983         (WebCore::WorkerContext::self):
2984         (WebCore::WorkerContext::setOnmessage):
2985         (WebCore::WorkerContext::onmessage):
2986         * workers/WorkerContext.idl:
2987
2988 2009-05-01  Sam Weinig  <sam@webkit.org>
2989
2990         Reviewed by Darin Adler.
2991
2992         A little clean up.
2993
2994         * loader/FrameLoader.cpp:
2995         (WebCore::FrameLoader::createJavaAppletWidget):
2996
2997 2009-05-01  Sam Weinig  <sam@webkit.org>
2998
2999         Fix the build.
3000
3001         * bindings/js/ScriptValue.cpp:
3002         (WebCore::ScriptValue::isEqual):
3003         * inspector/JavaScriptProfile.cpp:
3004         (WebCore::getHeadCallback):
3005         * inspector/JavaScriptProfileNode.cpp:
3006         (WebCore::getChildren):
3007         (WebCore::getParent):
3008         (WebCore::getHead):
3009
3010 2009-05-01  Brady Eidson  <beidson@apple.com>
3011
3012         Reviewed by Oliver Hunt and Sam "Jon 'The Belly' Honeycutt" Weinig
3013
3014         Fix <rdar://problem/6848867> Addition of DOCTYPE node breaks Tiger Mail
3015
3016         * bindings/objc/DOMHTML.mm:
3017         (-[DOMHTMLDocument firstChild]): Add a Tiger Mail version of this method that skips DOCTYPE nodes.
3018
3019 2009-05-01  Geoffrey Garen  <ggaren@apple.com>
3020
3021         Rubber Stamped by Sam Weinig.
3022         
3023         Renamed JSValuePtr => JSValue.
3024
3025         * bindings/js/JSAttrCustom.cpp:
3026         (WebCore::JSAttr::setValue):
3027         * bindings/js/JSCDATASectionCustom.cpp:
3028         (WebCore::toJSNewlyCreated):
3029         * bindings/js/JSCSSRuleCustom.cpp:
3030         (WebCore::toJS):
3031         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3032         (WebCore::JSCSSStyleDeclaration::nameGetter):
3033         (WebCore::JSCSSStyleDeclaration::customPut):
3034         * bindings/js/JSCSSValueCustom.cpp:
3035         (WebCore::toJS):
3036         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
3037         (WebCore::toJS):
3038         (WebCore::toHTMLCanvasStyle):
3039         (WebCore::JSCanvasRenderingContext2D::strokeStyle):
3040         (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
3041         (WebCore::JSCanvasRenderingContext2D::fillStyle):
3042         (WebCore::JSCanvasRenderingContext2D::setFillStyle):
3043         (WebCore::JSCanvasRenderingContext2D::setFillColor):
3044         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
3045         (WebCore::JSCanvasRenderingContext2D::strokeRect):
3046         (WebCore::JSCanvasRenderingContext2D::drawImage):
3047         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
3048         (WebCore::JSCanvasRenderingContext2D::setShadow):
3049         (WebCore::JSCanvasRenderingContext2D::createPattern):
3050         (WebCore::JSCanvasRenderingContext2D::putImageData):
3051         (WebCore::JSCanvasRenderingContext2D::fillText):
3052         (WebCore::JSCanvasRenderingContext2D::strokeText):
3053         * bindings/js/JSClipboardCustom.cpp:
3054         (WebCore::JSClipboard::types):
3055         (WebCore::JSClipboard::clearData):
3056         (WebCore::JSClipboard::getData):
3057         (WebCore::JSClipboard::setData):
3058         (WebCore::JSClipboard::setDragImage):
3059         * bindings/js/JSConsoleCustom.cpp:
3060         (WebCore::JSConsole::profiles):
3061         * bindings/js/JSCoordinatesCustom.cpp:
3062         (WebCore::JSCoordinates::altitude):
3063         (WebCore::JSCoordinates::altitudeAccuracy):
3064         (WebCore::JSCoordinates::heading):
3065         (WebCore::JSCoordinates::speed):
3066         * bindings/js/JSCustomPositionCallback.cpp:
3067         (WebCore::JSCustomPositionCallback::handleEvent):
3068         * bindings/js/JSCustomPositionErrorCallback.cpp:
3069         (WebCore::JSCustomPositionErrorCallback::handleEvent):
3070         * bindings/js/JSCustomSQLStatementCallback.cpp:
3071         (WebCore::JSCustomSQLStatementCallback::handleEvent):
3072         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
3073         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
3074         * bindings/js/JSCustomSQLTransactionCallback.cpp:
3075         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
3076         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
3077         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
3078         * bindings/js/JSCustomVoidCallback.cpp:
3079         (WebCore::JSCustomVoidCallback::handleEvent):
3080         (WebCore::toVoidCallback):
3081         * bindings/js/JSCustomVoidCallback.h:
3082         * bindings/js/JSCustomXPathNSResolver.cpp:
3083         (WebCore::JSCustomXPathNSResolver::create):
3084         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
3085         * bindings/js/JSCustomXPathNSResolver.h:
3086         * bindings/js/JSDOMApplicationCacheCustom.cpp:
3087         (WebCore::JSDOMApplicationCache::hasItem):
3088         (WebCore::JSDOMApplicationCache::add):
3089         (WebCore::JSDOMApplicationCache::remove):
3090         (WebCore::JSDOMApplicationCache::addEventListener):
3091         (WebCore::JSDOMApplicationCache::removeEventListener):
3092         * bindings/js/JSDOMBinding.cpp:
3093         (WebCore::jsStringOrNull):
3094         (WebCore::jsOwnedStringOrNull):
3095         (WebCore::jsStringOrUndefined):
3096         (WebCore::jsStringOrFalse):
3097         (WebCore::valueToStringWithNullCheck):
3098         (WebCore::valueToStringWithUndefinedOrNullCheck):
3099         (WebCore::reportException):
3100         (WebCore::reportCurrentException):
3101         (WebCore::setDOMException):
3102         (WebCore::objectToStringFunctionGetter):
3103         * bindings/js/JSDOMBinding.h:
3104         (WebCore::getDOMObjectWrapper):
3105         (WebCore::getDOMNodeWrapper):
3106         (WebCore::toJS):
3107         * bindings/js/JSDOMGlobalObject.cpp:
3108         (WebCore::JSDOMGlobalObject::findJSEventListener):
3109         (WebCore::JSDOMGlobalObject::findOrCreateJSEventListener):
3110         (WebCore::JSDOMGlobalObject::createJSAttributeEventListener):
3111         * bindings/js/JSDOMGlobalObject.h:
3112         * bindings/js/JSDOMStringListCustom.cpp:
3113         (WebCore::JSDOMStringList::getByIndex):
3114         (WebCore::JSDOMStringList::item):
3115         * bindings/js/JSDOMWindowBase.cpp:
3116         (WebCore::JSDOMWindowBase::childFrameGetter):
3117         (WebCore::JSDOMWindowBase::indexGetter):
3118         (WebCore::JSDOMWindowBase::namedItemGetter):
3119         (WebCore::JSDOMWindowBase::getOwnPropertySlot):
3120         (WebCore::JSDOMWindowBase::put):
3121         (WebCore::JSDOMWindowBase::setReturnValueSlot):
3122         (WebCore::toJS):
3123         (WebCore::toJSDOMWindow):
3124         * bindings/js/JSDOMWindowBase.h:
3125         * bindings/js/JSDOMWindowCustom.cpp:
3126         (WebCore::JSDOMWindow::lookupGetter):
3127         (WebCore::JSDOMWindow::lookupSetter):
3128         (WebCore::JSDOMWindow::history):
3129         (WebCore::JSDOMWindow::location):
3130         (WebCore::JSDOMWindow::setLocation):
3131         (WebCore::JSDOMWindow::crypto):
3132         (WebCore::JSDOMWindow::event):
3133         (WebCore::JSDOMWindow::image):
3134         (WebCore::JSDOMWindow::option):
3135         (WebCore::JSDOMWindow::audio):
3136         (WebCore::JSDOMWindow::webKitPoint):
3137         (WebCore::JSDOMWindow::webKitCSSMatrix):
3138         (WebCore::JSDOMWindow::xmlHttpRequest):
3139         (WebCore::JSDOMWindow::xsltProcessor):
3140         (WebCore::JSDOMWindow::messageChannel):
3141         (WebCore::JSDOMWindow::worker):
3142         (WebCore::createWindow):
3143         (WebCore::JSDOMWindow::open):
3144         (WebCore::JSDOMWindow::showModalDialog):
3145         (WebCore::JSDOMWindow::postMessage):
3146         (WebCore::JSDOMWindow::setTimeout):
3147         (WebCore::JSDOMWindow::setInterval):
3148         (WebCore::JSDOMWindow::atob):
3149         (WebCore::JSDOMWindow::btoa):
3150         (WebCore::JSDOMWindow::addEventListener):
3151         (WebCore::JSDOMWindow::removeEventListener):
3152         (WebCore::toDOMWindow):
3153         * bindings/js/JSDOMWindowCustom.h:
3154         (WebCore::nonCachingStaticFunctionGetter):
3155         (WebCore::JSDOMWindow::customPut):
3156         * bindings/js/JSDOMWindowShell.cpp:
3157         (WebCore::JSDOMWindowShell::put):
3158         (WebCore::JSDOMWindowShell::putWithAttributes):
3159         (WebCore::JSDOMWindowShell::lookupGetter):
3160         (WebCore::JSDOMWindowShell::lookupSetter):
3161         (WebCore::toJS):
3162         * bindings/js/JSDOMWindowShell.h:
3163         (WebCore::JSDOMWindowShell::createStructure):
3164         * bindings/js/JSDatabaseCustom.cpp:
3165         (WebCore::JSDatabase::changeVersion):
3166         (WebCore::JSDatabase::transaction):
3167         * bindings/js/JSDocumentCustom.cpp:
3168         (WebCore::JSDocument::location):
3169         (WebCore::JSDocument::setLocation):
3170         (WebCore::toJS):
3171         * bindings/js/JSElementCustom.cpp:
3172         (WebCore::JSElement::setAttribute):
3173         (WebCore::JSElement::setAttributeNode):
3174         (WebCore::JSElement::setAttributeNS):
3175         (WebCore::JSElement::setAttributeNodeNS):
3176         (WebCore::toJSNewlyCreated):
3177         * bindings/js/JSEventCustom.cpp:
3178         (WebCore::JSEvent::clipboardData):
3179         (WebCore::toJS):
3180         * bindings/js/JSEventListener.cpp:
3181         (WebCore::JSEventListener::handleEvent):
3182         * bindings/js/JSEventTarget.cpp:
3183         (WebCore::toJS):
3184         (WebCore::toEventTarget):
3185         * bindings/js/JSEventTarget.h:
3186         * bindings/js/JSEventTargetBase.h:
3187         * bindings/js/JSGeolocationCustom.cpp:
3188         (WebCore::createPositionOptions):
3189         (WebCore::JSGeolocation::getCurrentPosition):
3190         (WebCore::JSGeolocation::watchPosition):
3191         * bindings/js/JSHTMLAllCollection.h:
3192         (WebCore::JSHTMLAllCollection::createStructure):
3193         * bindings/js/JSHTMLAppletElementCustom.cpp:
3194         (WebCore::JSHTMLAppletElement::customPut):
3195         (WebCore::JSHTMLAppletElement::nameGetter):
3196         * bindings/js/JSHTMLCollectionCustom.cpp:
3197         (WebCore::getNamedItems):
3198         (WebCore::callHTMLCollection):
3199         (WebCore::JSHTMLCollection::nameGetter):
3200         (WebCore::JSHTMLCollection::item):
3201         (WebCore::JSHTMLCollection::namedItem):
3202         (WebCore::toJS):
3203         * bindings/js/JSHTMLDocumentCustom.cpp:
3204         (WebCore::JSHTMLDocument::nameGetter):
3205         (WebCore::JSHTMLDocument::all):
3206         (WebCore::JSHTMLDocument::setAll):
3207         (WebCore::JSHTMLDocument::open):
3208         (WebCore::JSHTMLDocument::write):
3209         (WebCore::JSHTMLDocument::writeln):
3210         * bindings/js/JSHTMLEmbedElementCustom.cpp:
3211         (WebCore::JSHTMLEmbedElement::customPut):
3212         (WebCore::JSHTMLEmbedElement::nameGetter):
3213         * bindings/js/JSHTMLFormElementCustom.cpp:
3214         (WebCore::JSHTMLFormElement::nameGetter):
3215         (WebCore::JSHTMLFormElement::submit):
3216         * bindings/js/JSHTMLFrameElementCustom.cpp:
3217         (WebCore::JSHTMLFrameElement::setSrc):
3218         (WebCore::JSHTMLFrameElement::setLocation):
3219         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
3220         (WebCore::JSHTMLFrameSetElement::nameGetter):
3221         * bindings/js/JSHTMLIFrameElementCustom.cpp:
3222         (WebCore::JSHTMLIFrameElement::setSrc):
3223         * bindings/js/JSHTMLInputElementCustom.cpp:
3224         (WebCore::JSHTMLInputElement::selectionStart):
3225         (WebCore::JSHTMLInputElement::setSelectionStart):
3226         (WebCore::JSHTMLInputElement::selectionEnd):
3227         (WebCore::JSHTMLInputElement::setSelectionEnd):
3228         (WebCore::JSHTMLInputElement::setSelectionRange):
3229         * bindings/js/JSHTMLObjectElementCustom.cpp:
3230         (WebCore::JSHTMLObjectElement::customPut):
3231         (WebCore::JSHTMLObjectElement::nameGetter):
3232         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
3233         (WebCore::JSHTMLOptionsCollection::length):
3234         (WebCore::JSHTMLOptionsCollection::setLength):
3235         (WebCore::JSHTMLOptionsCollection::indexSetter):
3236         (WebCore::JSHTMLOptionsCollection::add):
3237         (WebCore::JSHTMLOptionsCollection::remove):
3238         * bindings/js/JSHTMLSelectElementCustom.cpp:
3239         (WebCore::JSHTMLSelectElement::remove):
3240         (WebCore::selectIndexSetter):
3241         (WebCore::JSHTMLSelectElement::indexSetter):
3242         * bindings/js/JSHTMLSelectElementCustom.h:
3243         * bindings/js/JSHistoryCustom.cpp:
3244         (WebCore::nonCachingStaticBackFunctionGetter):
3245         (WebCore::nonCachingStaticForwardFunctionGetter):
3246         (WebCore::nonCachingStaticGoFunctionGetter):
3247         (WebCore::JSHistory::customPut):
3248         * bindings/js/JSImageDataCustom.cpp:
3249         (WebCore::toJS):
3250         * bindings/js/JSInspectedObjectWrapper.cpp:
3251         (WebCore::JSInspectedObjectWrapper::wrap):
3252         (WebCore::JSInspectedObjectWrapper::prepareIncomingValue):
3253         * bindings/js/JSInspectedObjectWrapper.h:
3254         (WebCore::JSInspectedObjectWrapper::wrapOutgoingValue):
3255         * bindings/js/JSInspectorCallbackWrapper.cpp:
3256         (WebCore::JSInspectorCallbackWrapper::wrap):
3257         (WebCore::JSInspectorCallbackWrapper::prepareIncomingValue):
3258         * bindings/js/JSInspectorCallbackWrapper.h:
3259         (WebCore::JSInspectorCallbackWrapper::wrapOutgoingValue):
3260         * bindings/js/JSInspectorControllerCustom.cpp:
3261         (WebCore::JSInspectorController::highlightDOMNode):
3262         (WebCore::JSInspectorController::addResourceSourceToFrame):
3263         (WebCore::JSInspectorController::addSourceToFrame):
3264         (WebCore::JSInspectorController::getResourceDocumentNode):
3265         (WebCore::JSInspectorController::search):
3266         (WebCore::JSInspectorController::databaseTableNames):
3267         (WebCore::JSInspectorController::inspectedWindow):
3268         (WebCore::JSInspectorController::setting):
3269         (WebCore::JSInspectorController::setSetting):
3270         (WebCore::JSInspectorController::wrapCallback):
3271         (WebCore::JSInspectorController::currentCallFrame):
3272         (WebCore::JSInspectorController::profiles):
3273         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
3274         (WebCore::JSJavaScriptCallFrame::evaluate):
3275         (WebCore::JSJavaScriptCallFrame::thisObject):
3276         (WebCore::JSJavaScriptCallFrame::type):
3277         (WebCore::JSJavaScriptCallFrame::scopeChain):
3278         * bindings/js/JSLazyEventListener.cpp:
3279         (WebCore::JSLazyEventListener::parseCode):
3280         * bindings/js/JSLocationCustom.cpp:
3281         (WebCore::nonCachingStaticReplaceFunctionGetter):
3282         (WebCore::nonCachingStaticReloadFunctionGetter):
3283         (WebCore::nonCachingStaticAssignFunctionGetter):
3284         (WebCore::JSLocation::customPut):
3285         (WebCore::JSLocation::setHref):
3286         (WebCore::JSLocation::setProtocol):
3287         (WebCore::JSLocation::setHost):
3288         (WebCore::JSLocation::setHostname):
3289         (WebCore::JSLocation::setPort):
3290         (WebCore::JSLocation::setPathname):
3291         (WebCore::JSLocation::setSearch):
3292         (WebCore::JSLocation::setHash):
3293         (WebCore::JSLocation::replace):
3294         (WebCore::JSLocation::reload):
3295         (WebCore::JSLocation::assign):
3296         (WebCore::JSLocation::toString):
3297         (WebCore::JSLocationPrototype::customPut):
3298         * bindings/js/JSMessagePortCustom.cpp:
3299         (WebCore::JSMessagePort::startConversation):
3300         (WebCore::JSMessagePort::addEventListener):
3301         (WebCore::JSMessagePort::removeEventListener):
3302         * bindings/js/JSMimeTypeArrayCustom.cpp:
3303         (WebCore::JSMimeTypeArray::nameGetter):
3304         * bindings/js/JSNamedNodeMapCustom.cpp:
3305         (WebCore::JSNamedNodeMap::nameGetter):
3306         * bindings/js/JSNamedNodesCollection.cpp:
3307         (WebCore::JSNamedNodesCollection::lengthGetter):
3308         (WebCore::JSNamedNodesCollection::indexGetter):
3309         * bindings/js/JSNamedNodesCollection.h:
3310         (WebCore::JSNamedNodesCollection::createStructure):
3311         * bindings/js/JSNavigatorCustom.cpp:
3312         (WebCore::needsYouTubeQuirk):
3313         (WebCore::JSNavigator::appVersion):
3314         * bindings/js/JSNodeCustom.cpp:
3315         (WebCore::JSNode::insertBefore):
3316         (WebCore::JSNode::replaceChild):
3317         (WebCore::JSNode::removeChild):
3318         (WebCore::JSNode::appendChild):
3319         (WebCore::JSNode::addEventListener):
3320         (WebCore::JSNode::removeEventListener):
3321         (WebCore::createWrapper):
3322         (WebCore::toJSNewlyCreated):
3323         (WebCore::toJS):
3324         * bindings/js/JSNodeFilterCondition.cpp:
3325         (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
3326         (WebCore::JSNodeFilterCondition::acceptNode):
3327         * bindings/js/JSNodeFilterCondition.h:
3328         (WebCore::JSNodeFilterCondition::create):
3329         * bindings/js/JSNodeFilterCustom.cpp:
3330         (WebCore::JSNodeFilter::acceptNode):
3331         (WebCore::toNodeFilter):
3332         * bindings/js/JSNodeIteratorCustom.cpp:
3333         (WebCore::JSNodeIterator::nextNode):
3334         (WebCore::JSNodeIterator::previousNode):
3335         * bindings/js/JSNodeListCustom.cpp:
3336         (WebCore::callNodeList):
3337         (WebCore::JSNodeList::nameGetter):
3338         * bindings/js/JSPluginArrayCustom.cpp:
3339         (WebCore::JSPluginArray::nameGetter):
3340         * bindings/js/JSPluginCustom.cpp:
3341         (WebCore::JSPlugin::nameGetter):
3342         * bindings/js/JSPluginElementFunctions.cpp:
3343         (WebCore::runtimeObjectGetter):
3344         (WebCore::runtimeObjectPropertyGetter):
3345         (WebCore::runtimeObjectCustomPut):
3346         (WebCore::callPlugin):
3347         * bindings/js/JSPluginElementFunctions.h:
3348         * bindings/js/JSQuarantinedObjectWrapper.cpp:
3349         (WebCore::JSQuarantinedObjectWrapper::asWrapper):
3350         (WebCore::JSQuarantinedObjectWrapper::cachedValueGetter):
3351         (WebCore::JSQuarantinedObjectWrapper::transferExceptionToExecState):
3352         (WebCore::JSQuarantinedObjectWrapper::getOwnPropertySlot):
3353         (WebCore::JSQuarantinedObjectWrapper::put):
3354         (WebCore::JSQuarantinedObjectWrapper::construct):
3355         (WebCore::JSQuarantinedObjectWrapper::hasInstance):
3356         (WebCore::JSQuarantinedObjectWrapper::call):
3357         * bindings/js/JSQuarantinedObjectWrapper.h:
3358         (WebCore::JSQuarantinedObjectWrapper::createStructure):
3359         * bindings/js/JSRGBColor.cpp:
3360         (WebCore::getJSRGBColor):
3361         (jsRGBColorRed):
3362         (jsRGBColorGreen):
3363         (jsRGBColorBlue):
3364         * bindings/js/JSRGBColor.h:
3365         (WebCore::JSRGBColor::createStructure):
3366         * bindings/js/JSSQLResultSetRowListCustom.cpp:
3367         (WebCore::JSSQLResultSetRowList::item):
3368         * bindings/js/JSSQLTransactionCustom.cpp:
3369         (WebCore::JSSQLTransaction::executeSql):
3370         * bindings/js/JSSVGElementInstanceCustom.cpp:
3371         (WebCore::JSSVGElementInstance::addEventListener):
3372         (WebCore::JSSVGElementInstance::removeEventListener):
3373         (WebCore::toJS):
3374         * bindings/js/JSSVGLengthCustom.cpp:
3375         (WebCore::JSSVGLength::value):
3376         (WebCore::JSSVGLength::convertToSpecifiedUnits):
3377         * bindings/js/JSSVGMatrixCustom.cpp:
3378         (WebCore::JSSVGMatrix::inverse):
3379         (WebCore::JSSVGMatrix::rotateFromVector):
3380         * bindings/js/JSSVGPathSegCustom.cpp:
3381         (WebCore::toJS):
3382         * bindings/js/JSSVGPathSegListCustom.cpp:
3383         (WebCore::JSSVGPathSegList::clear):
3384         (WebCore::JSSVGPathSegList::initialize):
3385         (WebCore::JSSVGPathSegList::getItem):
3386         (WebCore::JSSVGPathSegList::insertItemBefore):
3387         (WebCore::JSSVGPathSegList::replaceItem):
3388         (WebCore::JSSVGPathSegList::removeItem):
3389         (WebCore::JSSVGPathSegList::appendItem):
3390         * bindings/js/JSSVGPointListCustom.cpp:
3391         (WebCore::finishGetter):
3392         (WebCore::finishSetter):
3393         (WebCore::finishSetterReadOnlyResult):
3394         (WebCore::JSSVGPointList::clear):
3395         (WebCore::JSSVGPointList::initialize):
3396         (WebCore::JSSVGPointList::getItem):
3397         (WebCore::JSSVGPointList::insertItemBefore):
3398         (WebCore::JSSVGPointList::replaceItem):
3399         (WebCore::JSSVGPointList::removeItem):
3400         (WebCore::JSSVGPointList::appendItem):
3401         * bindings/js/JSSVGTransformListCustom.cpp:
3402         (WebCore::finishGetter):
3403         (WebCore::finishSetter):
3404         (WebCore::finishSetterReadOnlyResult):
3405         (WebCore::JSSVGTransformList::clear):
3406         (WebCore::JSSVGTransformList::initialize):
3407         (WebCore::JSSVGTransformList::getItem):
3408         (WebCore::JSSVGTransformList::insertItemBefore):
3409         (WebCore::JSSVGTransformList::replaceItem):
3410         (WebCore::JSSVGTransformList::removeItem):
3411         (WebCore::JSSVGTransformList::appendItem):
3412         * bindings/js/JSStorageCustom.cpp:
3413         (WebCore::JSStorage::nameGetter):
3414         (WebCore::JSStorage::deleteProperty):
3415         (WebCore::JSStorage::customPut):
3416         * bindings/js/JSStyleSheetCustom.cpp:
3417         (WebCore::toJS):
3418         * bindings/js/JSStyleSheetListCustom.cpp:
3419         (WebCore::JSStyleSheetList::nameGetter):
3420         * bindings/js/JSTextCustom.cpp:
3421         (WebCore::toJSNewlyCreated):
3422         * bindings/js/JSTreeWalkerCustom.cpp:
3423         (WebCore::JSTreeWalker::parentNode):
3424         (WebCore::JSTreeWalker::firstChild):
3425         (WebCore::JSTreeWalker::lastChild):
3426         (WebCore::JSTreeWalker::nextSibling):
3427         (WebCore::JSTreeWalker::previousSibling):
3428         (WebCore::JSTreeWalker::previousNode):
3429         (WebCore::JSTreeWalker::nextNode):
3430         * bindings/js/JSWorkerContextCustom.cpp:
3431         (WebCore::JSWorkerContext::self):
3432         (WebCore::JSWorkerContext::setSelf):
3433         (WebCore::JSWorkerContext::xmlHttpRequest):
3434         (WebCore::JSWorkerContext::importScripts):
3435         (WebCore::JSWorkerContext::addEventListener):
3436         (WebCore::JSWorkerContext::removeEventListener):
3437         (WebCore::JSWorkerContext::setTimeout):
3438         (WebCore::JSWorkerContext::setInterval):
3439         * bindings/js/JSWorkerCustom.cpp:
3440         (WebCore::JSWorker::addEventListener):
3441         (WebCore::JSWorker::removeEventListener):
3442         * bindings/js/JSXMLHttpRequestCustom.cpp:
3443         (WebCore::JSXMLHttpRequest::open):
3444         (WebCore::JSXMLHttpRequest::setRequestHeader):
3445         (WebCore::JSXMLHttpRequest::send):
3446         (WebCore::JSXMLHttpRequest::getResponseHeader):
3447         (WebCore::JSXMLHttpRequest::overrideMimeType):
3448         (WebCore::JSXMLHttpRequest::addEventListener):
3449         (WebCore::JSXMLHttpRequest::removeEventListener):
3450         (WebCore::JSXMLHttpRequest::responseText):
3451         * bindings/js/JSXMLHttpRequestUploadCustom.cpp:
3452         (WebCore::JSXMLHttpRequestUpload::addEventListener):
3453         (WebCore::JSXMLHttpRequestUpload::removeEventListener):
3454         * bindings/js/JSXSLTProcessorCustom.cpp:
3455         (WebCore::JSXSLTProcessor::importStylesheet):
3456         (WebCore::JSXSLTProcessor::transformToFragment):
3457         (WebCore::JSXSLTProcessor::transformToDocument):
3458         (WebCore::JSXSLTProcessor::setParameter):
3459         (WebCore::JSXSLTProcessor::getParameter):
3460         (WebCore::JSXSLTProcessor::removeParameter):
3461         * bindings/js/ScheduledAction.cpp:
3462         (WebCore::ScheduledAction::create):
3463         (WebCore::ScheduledAction::ScheduledAction):
3464         (WebCore::ScheduledAction::executeFunctionInContext):
3465         * bindings/js/ScheduledAction.h:
3466         * bindings/js/ScriptCallStack.cpp:
3467         (WebCore::ScriptCallStack::ScriptCallStack):
3468         (WebCore::ScriptCallStack::initialize):
3469         * bindings/js/ScriptCallStack.h:
3470         * bindings/js/ScriptController.cpp:
3471         (WebCore::ScriptController::jsObjectForPluginElement):
3472         * bindings/js/ScriptFunctionCall.cpp:
3473         (WebCore::ScriptFunctionCall::appendArgument):
3474         (WebCore::ScriptFunctionCall::call):
3475         (WebCore::ScriptFunctionCall::construct):
3476         * bindings/js/ScriptFunctionCall.h:
3477         * bindings/js/ScriptObject.cpp:
3478         (WebCore::ScriptGlobalObject::get):
3479         * bindings/js/ScriptValue.h:
3480         (WebCore::ScriptValue::ScriptValue):
3481         (WebCore::ScriptValue::jsValue):
3482         * bindings/objc/WebScriptObject.mm:
3483         (-[WebScriptObject callWebScriptMethod:withArguments:]):
3484         (-[WebScriptObject evaluateWebScript:]):
3485         (-[WebScriptObject valueForKey:]):
3486         (-[WebScriptObject webScriptValueAtIndex:]):
3487         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
3488         * bindings/objc/WebScriptObjectPrivate.h:
3489         * bridge/NP_jsobject.cpp:
3490         (_NPN_InvokeDefault):
3491         (_NPN_Invoke):
3492         (_NPN_Evaluate):
3493         (_NPN_GetProperty):
3494         (_NPN_HasMethod):
3495         (_NPN_Construct):
3496         * bridge/c/c_instance.cpp:
3497         (JSC::Bindings::CInstance::invokeMethod):
3498         (JSC::Bindings::CInstance::invokeDefaultMethod):
3499         (JSC::Bindings::CInstance::invokeConstruct):
3500         (JSC::Bindings::CInstance::defaultValue):
3501         (JSC::Bindings::CInstance::stringValue):
3502         (JSC::Bindings::CInstance::numberValue):
3503         (JSC::Bindings::CInstance::booleanValue):
3504         (JSC::Bindings::CInstance::valueOf):
3505         * bridge/c/c_instance.h:
3506         * bridge/c/c_runtime.cpp:
3507         (JSC::Bindings::CField::valueFromInstance):
3508         (JSC::Bindings::CField::setValueToInstance):
3509         * bridge/c/c_runtime.h:
3510         * bridge/c/c_utility.cpp:
3511         (JSC::Bindings::convertValueToNPVariant):
3512         (JSC::Bindings::convertNPVariantToValue):
3513         * bridge/c/c_utility.h:
3514         * bridge/jni/jni_instance.cpp:
3515         (JavaInstance::stringValue):
3516         (JavaInstance::numberValue):
3517         (JavaInstance::booleanValue):
3518         (JavaInstance::invokeMethod):
3519         (JavaInstance::defaultValue):
3520         (JavaInstance::valueOf):
3521         * bridge/jni/jni_instance.h:
3522         * bridge/jni/jni_jsobject.h:
3523         * bridge/jni/jni_jsobject.mm:
3524         (JavaJSObject::call):
3525         (JavaJSObject::eval):
3526         (JavaJSObject::getMember):
3527         (JavaJSObject::getSlot):
3528         (JavaJSObject::convertValueToJObject):
3529         (JavaJSObject::convertJObjectToValue):
3530         * bridge/jni/jni_objc.mm:
3531         (JSC::Bindings::dispatchJNICall):
3532         * bridge/jni/jni_runtime.cpp:
3533         (JavaArray::convertJObjectToArray):
3534         (JavaField::dispatchValueFromInstance):
3535         (JavaField::valueFromInstance):
3536         (JavaField::dispatchSetValueToInstance):
3537         (JavaField::setValueToInstance):
3538         (JavaArray::setValueAt):
3539         (JavaArray::valueAt):
3540         * bridge/jni/jni_runtime.h:
3541         * bridge/jni/jni_utility.cpp:
3542         (JSC::Bindings::convertArrayInstanceToJavaArray):
3543         (JSC::Bindings::convertValueToJValue):
3544         * bridge/jni/jni_utility.h:
3545         * bridge/objc/WebScriptObject.h:
3546         * bridge/objc/objc_class.h:
3547         * bridge/objc/objc_class.mm:
3548         (JSC::Bindings::ObjcClass::fallbackObject):
3549         * bridge/objc/objc_instance.h:
3550         * bridge/objc/objc_instance.mm:
3551         (ObjcInstance::invokeMethod):
3552         (ObjcInstance::invokeDefaultMethod):
3553         (ObjcInstance::setValueOfUndefinedField):
3554         (ObjcInstance::getValueOfUndefinedField):
3555         (ObjcInstance::defaultValue):
3556         (ObjcInstance::stringValue):
3557         (ObjcInstance::numberValue):
3558         (ObjcInstance::booleanValue):
3559         (ObjcInstance::valueOf):
3560         * bridge/objc/objc_runtime.h:
3561         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
3562         * bridge/objc/objc_runtime.mm:
3563         (JSC::Bindings::ObjcField::valueFromInstance):
3564         (JSC::Bindings::convertValueToObjcObject):
3565         (JSC::Bindings::ObjcField::setValueToInstance):
3566         (JSC::Bindings::ObjcArray::setValueAt):
3567         (JSC::Bindings::ObjcArray::valueAt):
3568         (JSC::Bindings::ObjcFallbackObjectImp::put):
3569         (JSC::Bindings::callObjCFallbackObject):
3570         (JSC::Bindings::ObjcFallbackObjectImp::defaultValue):
3571         * bridge/objc/objc_utility.h:
3572         * bridge/objc/objc_utility.mm:
3573         (JSC::Bindings::convertValueToObjcValue):
3574         (JSC::Bindings::convertNSStringToString):
3575         (JSC::Bindings::convertObjcValueToValue):
3576         * bridge/runtime.h:
3577         (JSC::Bindings::Class::fallbackObject):
3578         (JSC::Bindings::Instance::setValueOfUndefinedField):
3579         (JSC::Bindings::Instance::invokeDefaultMethod):
3580         (JSC::Bindings::Instance::invokeConstruct):
3581         (JSC::Bindings::Instance::put):
3582         * bridge/runtime_array.cpp:
3583         (JSC::RuntimeArray::lengthGetter):
3584         (JSC::RuntimeArray::indexGetter):
3585         (JSC::RuntimeArray::put):
3586         * bridge/runtime_array.h:
3587         (JSC::RuntimeArray::createStructure):
3588         * bridge/runtime_method.cpp:
3589         (JSC::RuntimeMethod::lengthGetter):
3590         (JSC::callRuntimeMethod):
3591         * bridge/runtime_method.h:
3592         (JSC::RuntimeMethod::createStructure):
3593         * bridge/runtime_object.cpp:
3594         (JSC::RuntimeObjectImp::fallbackObjectGetter):
3595         (JSC::RuntimeObjectImp::fieldGetter):
3596         (JSC::RuntimeObjectImp::methodGetter):
3597         (JSC::RuntimeObjectImp::put):
3598         (JSC::RuntimeObjectImp::defaultValue):
3599         (JSC::callRuntimeObject):
3600         (JSC::callRuntimeConstructor):
3601         * bridge/runtime_object.h:
3602         (JSC::RuntimeObjectImp::createStructure):
3603         * inspector/JavaScriptCallFrame.cpp:
3604         (WebCore::JavaScriptCallFrame::evaluate):
3605         * inspector/JavaScriptCallFrame.h:
3606         * inspector/JavaScriptProfile.cpp:
3607         (WebCore::toJS):
3608         * inspector/JavaScriptProfile.h:
3609         * inspector/JavaScriptProfileNode.cpp: