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