Split two-clause assertions into two separate assertions.
[WebKit-https.git] / WebCore / ChangeLog
1 2009-12-08  Christian Dywan  <christian@twotoasts.de>
2
3         Reviewed by Xan Lopez.
4
5         * platform/network/soup/DNSSoup.cpp:
6         (WebCore::prefetchDNS): Conditionalize prefetching on
7         the libSoup version.
8
9 2009-12-08  Nikolas Zimmermann  <nzimmermann@rim.com>
10
11         Rubber-stamped by Maciej Stachowiak.
12
13         Turn on (SVG) Filters for Win.
14         https://bugs.webkit.org/show_bug.cgi?id=32224
15
16         * WebCore.vcproj/WebCoreCommon.vsprops:
17         * WebCore.vcproj/build-generated-files.sh:
18         * bindings/scripts/CodeGeneratorCOM.pm: Touch file to assure a world rebuild. Hopefully.
19
20 2009-12-08  Carol Szabo  <carol.szabo@nokia.com>
21
22         Reviewed by Darin Adler.
23
24         CSS Counter Nesting still does not work according to the spec.
25         https://bugs.webkit.org/show_bug.cgi?id=31723
26
27         Test: fast/css/counters/nesting.html
28
29         * rendering/RenderCounter.cpp:
30         (WebCore::findPlaceForCounter):
31         Replaced the faulty counter insertion algorithm with one that works.
32
33 2009-12-08  John Sullivan  <sullivan@apple.com>
34
35         Add isAutofilled getter to match existing setter.
36
37         Reviewed by Ada Chan.
38
39         * bindings/objc/DOMHTML.mm:
40         (-[DOMHTMLInputElement _isAutofilled]):
41         Implemented new cover function.
42         
43         * bindings/objc/DOMPrivate.h:
44         Declared new cover function.
45
46 2009-12-08  Dominik Röttsches  <dominik.roettsches@access-company.com>
47
48         Reviewed by Gustavo Noronha Silva.
49
50         [Gtk] Create a TextBreakIterator implementation based on GLib (without ICU)
51         https://bugs.webkit.org/show_bug.cgi?id=31469
52
53         Added a TextBreakIterator implementation based on GLib and pango,
54         which allows compiling WebCore without ICU.
55
56         * GNUmakefile.am:
57         * platform/text/gtk/TextBreakIteratorGtk.cpp: Added.
58         (WebCore::):
59         (WebCore::setUpIterator):
60         (WebCore::characterBreakIterator):
61         (WebCore::cursorMovementIterator):
62         (WebCore::wordBreakIterator):
63         (WebCore::lineBreakIterator):
64         (WebCore::sentenceBreakIterator):
65         (WebCore::textBreakFirst):
66         (WebCore::textBreakLast):
67         (WebCore::textBreakNext):
68         (WebCore::textBreakPrevious):
69         (WebCore::textBreakPreceding):
70         (WebCore::textBreakFollowing):
71         (WebCore::textBreakCurrent):
72         (WebCore::isTextBreak):
73
74 2009-12-08  Alexander Pavlov  <apavlov@chromium.org>
75
76         Reviewed by Pavel Feldman.
77
78         Change the way cookies are retrieved in the WebInspector frontend.
79
80         Moved the cookie filtering from the native code into the frontend so that
81         all cookies can be retrieved regardless of the associated domain
82         (required for certain audits to run.)
83         https://bugs.webkit.org/show_bug.cgi?id=32160
84
85         Test: inspector/cookie-resource-match.html
86
87         * inspector/InspectorBackend.cpp:
88         (WebCore::InspectorBackend::getCookies):
89         * inspector/InspectorBackend.h:
90         * inspector/InspectorBackend.idl:
91         * inspector/InspectorController.cpp:
92         (WebCore::InspectorController::getCookies):
93         * inspector/InspectorController.h:
94         * inspector/front-end/CookieItemsView.js:
95         (WebInspector.CookieItemsView.prototype.update.callback):
96         (WebInspector.CookieItemsView.prototype.update):
97         (WebInspector.CookieItemsView.prototype._cookiesForDomain):
98         * inspector/front-end/DOMAgent.js:
99         (WebInspector.Cookies.getCookiesAsync):
100         (WebInspector.Cookies.cookieMatchesResourceURL):
101         (WebInspector.Cookies.cookieDomainMatchesResourceDomain):
102         * inspector/front-end/Resource.js:
103         (WebInspector.Resource):
104         (WebInspector.Resource.prototype.get documentURL):
105         (WebInspector.Resource.prototype.set documentURL):
106         * inspector/front-end/inspector.js:
107         (WebInspector.addResource):
108
109 2009-12-08  Nikolas Zimmermann  <nzimmermann@rim.com>
110
111         Not reviewed. Touch svgtags.in, in order to force SVGNames.* regeneration. Praying for gtk bot to be fixed :-)
112
113         * svg/svgtags.in:
114
115 2009-12-08  Nikolas Zimmermann  <nzimmermann@rim.com>
116
117         Not reviewed. Trying to force a rebuild on the Gtk slave. If that doesn't work, someone must force a rebuild from scratch.
118
119         * bindings/scripts/CodeGeneratorJS.pm:
120
121 2009-12-06  Pavel Feldman  <pfeldman@chromium.org>
122
123         Reviewed by Timothy Hatcher.
124
125         Web Inspector: provide custom context menu in the front-end window.
126
127         https://bugs.webkit.org/show_bug.cgi?id=32200
128
129         * English.lproj/localizedStrings.js:
130         * GNUmakefile.am:
131         * WebCore.gypi:
132         * WebCore.pro:
133         * WebCore.vcproj/WebCore.vcproj:
134         * WebCore.xcodeproj/project.pbxproj:
135         * bindings/js/JSInspectorFrontendHostCustom.cpp:
136         (WebCore::JSInspectorFrontendHost::showContextMenu):
137         * inspector/InspectorFrontend.cpp:
138         (WebCore::InspectorFrontend::contextMenuItemSelected):
139         (WebCore::InspectorFrontend::contextMenuCleared):
140         * inspector/InspectorFrontend.h:
141         * inspector/InspectorFrontendHost.cpp:
142         (WebCore::InspectorFrontendHost::InspectorFrontendHost):
143         (WebCore::InspectorFrontendHost::~InspectorFrontendHost):
144         (WebCore::InspectorFrontendHost::showContextMenu):
145         (WebCore::InspectorFrontendHost::contextMenuItemSelected):
146         (WebCore::InspectorFrontendHost::contextMenuCleared):
147         * inspector/InspectorFrontendHost.h:
148         (WebCore::InspectorFrontendHost::MenuSelectionHandler::create):
149         (WebCore::InspectorFrontendHost::MenuSelectionHandler::~MenuSelectionHandler):
150         (WebCore::InspectorFrontendHost::MenuSelectionHandler::disconnect):
151         (WebCore::InspectorFrontendHost::MenuSelectionHandler::contextMenuItemSelected):
152         (WebCore::InspectorFrontendHost::MenuSelectionHandler::contextMenuCleared):
153         (WebCore::InspectorFrontendHost::MenuSelectionHandler::MenuSelectionHandler):
154         * inspector/InspectorFrontendHost.idl:
155         * inspector/front-end/ContextMenu.js: Added.
156         * inspector/front-end/WebKit.qrc:
157         * inspector/front-end/inspector.html:
158         * inspector/front-end/inspector.js:
159         (WebInspector.loaded):
160         (WebInspector.documentContextMenu):
161         * page/ContextMenuController.cpp:
162         (WebCore::ContextMenuController::ContextMenuController):
163         (WebCore::ContextMenuController::clearContextMenu):
164         (WebCore::ContextMenuController::handleContextMenuEvent):
165         (WebCore::ContextMenuController::showContextMenu):
166         (WebCore::ContextMenuController::createContextMenu):
167         (WebCore::ContextMenuController::contextMenuItemSelected):
168         * page/ContextMenuController.h:
169         * page/ContextMenuSelectionHandler.h: Added.
170         (WebCore::ContextMenuSelectionHandler::ContextMenuSelectionHandler):
171         (WebCore::ContextMenuSelectionHandler::~ContextMenuSelectionHandler):
172         * platform/ContextMenu.cpp:
173         (WebCore::ContextMenu::checkOrEnableIfNeeded):
174         * platform/ContextMenuItem.h:
175
176 2009-12-08  Andras Becsi  <abecsi@inf.u-szeged.hu>
177
178         Rubber-stamped by Kenneth Rohde Christiansen.
179
180         [Qt] Build fix of duplicated platform/graphics/filters/FEGaussianBlur.cpp in WebCore.pro after enabled svg filters.
181
182         No new tests needed.
183         * WebCore.pro:
184
185 2009-12-07  Shinichiro Hamaji  <hamaji@chromium.org>
186
187         Reviewed by Darin Adler.
188
189         Add a function to show render tree for debugging
190         https://bugs.webkit.org/show_bug.cgi?id=31288
191
192         No new tests because this just adds a function for debugging.
193
194         * rendering/RenderObject.cpp:
195         (WebCore::RenderObject::showRenderObject):
196         (WebCore::RenderObject::showRenderTreeAndMark):
197         (showRenderTree):
198         * rendering/RenderObject.h:
199
200 2009-12-07  Victor Wang  <victorw@chromium.org>
201
202         Reviewed by Dimitri Glazkov.
203
204         Implement NamedPropertyEnumerator and IndexedPropertyEnumerator for
205         V8 NPObject. This should make the object enumerable and fix the
206         enumeration issue in layout test plugins/netscape-enumerate.html.
207
208         Also fix some existing style issues per webkit style guidelines.
209
210         https://bugs.webkit.org/show_bug.cgi?id=32254
211
212         Test: plugins/netscape-enumerate.html
213
214         * bindings/v8/V8NPObject.cpp:
215         (npObjectInvokeImpl):
216         (npObjectInvokeDefaultHandler):
217         (npObjectGetProperty):
218         (npObjectPropertyEnumerator):
219         (npObjectNamedPropertyEnumerator):
220         (npObjectIndexedPropertyEnumerator):
221         (createV8ObjectForNPObject):
222
223 2009-12-07  Fumitoshi Ukai  <ukai@chromium.org>
224
225         Reviewed by Alexey Proskuryakov.
226
227         Fragments now make WebSocket URL parsing fail.
228         https://bugs.webkit.org/show_bug.cgi?id=32144
229
230         * websockets/WebSocket.cpp:
231         (WebCore::WebSocket::connect):
232
233 2009-12-07  Fumitoshi Ukai  <ukai@chromium.org>
234
235         Reviewed by Darin Adler.
236
237         Fix wrong length parsing in WebSocket.
238         https://bugs.webkit.org/show_bug.cgi?id=32203
239
240         * websockets/WebSocketChannel.cpp:
241         (WebCore::WebSocketChannel::didReceiveData):
242
243 2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>
244
245         Rubber-stamped by Maciej Stachowiak.
246
247         Turn on (SVG) Filters for Qt.
248         https://bugs.webkit.org/show_bug.cgi?id=32224
249
250         * WebCore.pro:
251
252 2009-12-07  Evan Martin  <evan@chromium.org>
253
254         Reviewed by Eric Seidel.
255
256         Chromium: theme scrollbars to match GTK theme.
257         Add functions to RenderThemeChromiumLinux to change the scrollbar
258         color.
259
260         Since the change is to the Chromium WebKit API layer, testing will
261         be in Chromium's test shell.
262         http://bugs.webkit.org/show_bug.cgi?id=32048
263
264         Patch from Markus Gutschke <markus@chromium.org>.
265
266         * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
267         (WebCore::saturateAndBrighten):
268         (WebCore::outlineColor):
269         (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
270         (WebCore::ScrollbarThemeChromiumLinux::paintThumb):
271         * rendering/RenderThemeChromiumLinux.cpp:
272         (WebCore::RenderThemeChromiumLinux::setScrollbarColors):
273         * rendering/RenderThemeChromiumLinux.h:
274         (WebCore::RenderThemeChromiumLinux::thumbInactiveColor):
275         (WebCore::RenderThemeChromiumLinux::thumbActiveColor):
276         (WebCore::RenderThemeChromiumLinux::trackColor):
277
278 2009-12-08  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
279
280         Reviewed by Xan Lopez.
281
282         [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that
283         https://bugs.webkit.org/show_bug.cgi?id=32247
284
285         Allow creating a ResourceResponse from a SoupMessage.
286
287         Covered by API test.
288
289         * platform/network/soup/ResourceResponse.h:
290         (WebCore::ResourceResponse::ResourceResponse):
291         * platform/network/soup/ResourceResponseSoup.cpp:
292         (WebCore::ResourceResponse::updateFromSoupMessage):
293
294 2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>
295
296         Not reviewed. Reverting problematic patch, causing errors.
297
298         Revert r51789 (Avoid zero division during SVGPaintServerPattern::setup()). Crashes on all Windows slaves.
299         Reopen bug https://bugs.webkit.org/show_bug.cgi?id=29912.
300
301         * svg/graphics/SVGPaintServerPattern.cpp:
302         (WebCore::SVGPaintServerPattern::setup):
303
304 2009-12-07  Kent Tamura  <tkent@chromium.org>
305
306         Reviewed by Darin Adler.
307
308         Add support for HTMLInputElement::stepUp() and stepDown() for
309         type=number and type=range.
310         https://bugs.webkit.org/show_bug.cgi?id=27451
311
312         Our implementation of stepUp() and stepDown() rounds the resultant
313         value to conform to the step value.
314         Change the number-string conversion method for RenderSlider to be
315         consistent with type=number.
316
317         Tests: fast/forms/input-step-number.html
318                fast/forms/input-step-range.html
319                fast/forms/input-step-unsupported.html
320
321         * html/HTMLInputElement.cpp:
322         (WebCore::HTMLInputElement::rangeUnderflow): Unify the code for NUMBER and RANGE.
323         (WebCore::HTMLInputElement::rangeOverflow): Unify the code for NUMBER and RANGE.
324         (WebCore::HTMLInputElement::minimum): Renamed from rangeMinimum(), and support for NUMBER.
325         (WebCore::HTMLInputElement::maximum): Renamed from rangeMaximum(), and support for NUMBER.
326         (WebCore::HTMLInputElement::stepBase):
327         (WebCore::HTMLInputElement::stepMismatch): Use stepBase().
328         (WebCore::HTMLInputElement::applyStepForNumberOrRange):
329         (WebCore::HTMLInputElement::stepUp):
330         (WebCore::HTMLInputElement::stepDown):
331         (WebCore::HTMLInputElement::formStringFromDouble):
332         * html/HTMLInputElement.h:
333         (WebCore::HTMLInputElement::stepUp):
334         (WebCore::HTMLInputElement::stepDown):
335         * html/HTMLInputElement.idl: Add stepUp() and stepDown().
336         * rendering/RenderSlider.cpp:
337         (WebCore::SliderRange::SliderRange): Sync with rangeMinimum()/rangeMaximum() renaming.
338         (WebCore::RenderSlider::updateFromElement): Use formStringFromDouble().
339         (WebCore::RenderSlider::setValueForPosition): Use formStringFromDouble().
340
341 2009-12-07  Albert J. Wong  <ajwong@chromium.org>
342
343         Not reviewed: Chromium build fix try 2 (dumb error).
344
345         * bindings/v8/ScriptValue.h:
346         (WebCore::ScriptValue::getString):
347
348 2009-12-07  Albert J. Wong  <ajwong@chromium.org>
349
350         Not reviewed: Chromium build fix.
351
352         Fix Chromium build break caused by an added dependency from
353         ScriptControllerBase to JSDOMWindowShell, and an API change in
354         ScriptValue.
355
356         * bindings/ScriptControllerBase.cpp:
357         (WebCore::ScriptController::executeIfJavaScriptURL):
358         * bindings/v8/ScriptValue.h:
359         (WebCore::ScriptValue::getString):
360
361 2009-12-07  Enrica Casucci  <enrica@apple.com>
362
363         Reviewed by Darin Adler.
364
365         REGRESSION(4.0.4-42a12): Indent does not work for twice modified with background text in gmail.
366         <rdar://problem/7442387>
367         https://bugs.webkit.org/show_bug.cgi?id=32233
368         
369         Fixes problem in re-creating the correct hierarchy under the new block.
370         Added extensive testing to cover all the cases.
371
372         Test: editing/execCommand/indent-with-style2.html
373
374         * editing/CompositeEditCommand.cpp:
375         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
376
377 2009-12-07  Dmitry Titov  <dimich@chromium.org>
378
379         Rubber-stamped by Darin Adler.
380
381         Remove ENABLE_SHARED_SCRIPT flags
382         https://bugs.webkit.org/show_bug.cgi?id=32245
383         This patch was obtained by "git revert" command and then un-reverting of ChangeLog files.
384
385         * Configurations/FeatureDefines.xcconfig:
386         * GNUmakefile.am:
387         * WebCore.pro:
388
389 2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>
390
391         Not reviewed. Force JS binding regeneration, eventually fixing the broken tests on the bots.
392
393         * bindings/scripts/CodeGeneratorJS.pm:
394
395 2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>
396
397         Not reviewed. Try to fix mac builds by touching svgtags.in - I only tried from-scratch builds.
398
399         * svg/svgtags.in:
400
401 2009-12-07  Gavin Barraclough  <barraclough@apple.com>
402
403         Reviewed by Oliver Hunt.
404
405         https://bugs.webkit.org/show_bug.cgi?id=32184
406         Handle out-of-memory conditions with JSC Ropes with a JS exception, rather than crashing.
407         Switch from using fastMalloc to tryFastMalloc, pass an ExecState to record the exception on.
408
409         * bindings/ScriptControllerBase.cpp:
410         (WebCore::ScriptController::executeIfJavaScriptURL):
411         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
412         (WebCore::toHTMLCanvasStyle):
413         (WebCore::JSCanvasRenderingContext2D::setFillColor):
414         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
415         (WebCore::JSCanvasRenderingContext2D::setShadow):
416         * bindings/js/ScriptCallStack.cpp:
417         (WebCore::ScriptCallStack::ScriptCallStack):
418         (WebCore::ScriptCallStack::initialize):
419         * bindings/js/ScriptValue.cpp:
420         (WebCore::ScriptValue::getString):
421         * bindings/js/ScriptValue.h:
422         * bindings/js/SerializedScriptValue.cpp:
423         (WebCore::SerializingTreeWalker::convertIfTerminal):
424         * bindings/objc/WebScriptObject.mm:
425         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
426         * page/Console.cpp:
427         (WebCore::Console::addMessage):
428
429 2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>
430
431         Reviewed by Holger Hans Peter Freyther.
432
433         Turn on (SVG) Filters support, by default.
434         https://bugs.webkit.org/show_bug.cgi?id=32224
435
436         Only enable filters on mac for now, skipped all affected tests on the other platforms.
437         Will enable them one after another, to minimize breakage.
438
439         * Configurations/FeatureDefines.xcconfig: Enable FILTERS build flag.
440
441 2009-12-07  Kent Tamura  <tkent@chromium.org>
442
443         Reviewed by Darin Adler.
444
445         Fix a bug that KURL rejects a host name which has an IPv4 address
446         inside an IPv6 form like [::127.0.0.1].
447         https://bugs.webkit.org/show_bug.cgi?id=29913
448
449         * platform/KURL.cpp:
450         (WebCore::characterClassTable): Add IPv6Char to '.'.
451
452 2009-12-07  Brady Eidson  <beidson@apple.com>
453
454         Reviewed by Sam Weinig.
455
456         <rdar://problem/7443417> - Closing a window opened with "New windows open with: Same Page" results in crash in ::~HistoryItem
457
458         The HistoryItem copy constructor has one very specific use case - to support the feature of a WebView copying another WebView's
459         BackForwardList.  That constructor wasn't initializing its m_document pointer, leading to this crash in the destructor.
460
461         * history/HistoryItem.cpp:
462         (WebCore::HistoryItem::~HistoryItem): Change the setDocument(0) to an ASSERT that the document is already 0. A HistoryItem cannot
463           outlive its Document and Documents will always clear the back-pointer in their ::detach() method.
464         (WebCore::HistoryItem::HistoryItem): Missed the m_document initializer in the copy constructor. Also remove an invalid assertion
465           about the original items m_cachedPage object (which is irrelevant to the copy).
466
467 2009-12-07  Dmitry Titov  <dimich@chromium.org>
468
469         Reviewed by Darin Adler.
470
471         Remove partial SharedScript implementation.
472         https://bugs.webkit.org/show_bug.cgi?id=32237
473         The patch was obtained by running "git revert" command and then un-reverting WebCore/ChangeLog.
474
475         * DerivedSources.make:
476         * SharedScript/SharedScriptContext.cpp: Removed.
477         * SharedScript/SharedScriptContext.h: Removed.
478         * SharedScript/SharedScriptContext.idl: Removed.
479         * SharedScript/SharedScriptController.h: Removed.
480         * SharedScript/WebKitSharedScript.cpp: Removed.
481         * SharedScript/WebKitSharedScript.h: Removed.
482         * SharedScript/WebKitSharedScript.idl: Removed.
483         * SharedScript/WebKitSharedScriptRepository.cpp: Removed.
484         * SharedScript/WebKitSharedScriptRepository.h: Removed.
485         * WebCore.vcproj/WebCore.vcproj:
486         * WebCore.xcodeproj/project.pbxproj:
487         * dom/Document.cpp:
488         (WebCore::Document::detach):
489         * dom/EventTarget.cpp:
490         * dom/EventTarget.h:
491         * dom/ScriptExecutionContext.h:
492
493 2009-12-07  Alexey Proskuryakov  <ap@apple.com>
494
495         Reviewed by Nikolas Zimmermann.
496
497         https://bugs.webkit.org/show_bug.cgi?id=32226
498         Random crashes in WebSocket tests on Leopard Debug builbot
499
500         * platform/network/SocketStreamHandleBase.cpp: (WebCore::SocketStreamHandleBase::close):
501         Make sure the object still exists when setting m_state.
502
503 2009-12-07  Shiki Okasaka  <shiki@google.com>
504
505         Reviewed by Dirk Schulze.
506
507         Avoid zero division during SVGPaintServerPattern::setup()
508         https://bugs.webkit.org/show_bug.cgi?id=29912
509
510         Fix zero division bugs in SVGPaintServerPattern::setup() that occurred
511         if the tile of a pattern was bigger than the pattern and the pattern
512         size was < 0.5, and if the attribute overflow was set to visible.
513
514         Test: svg/custom/small-pattern.html
515
516         * svg/graphics/SVGPaintServerPattern.cpp:
517         (WebCore::SVGPaintServerPattern::setup):
518
519 2009-12-07  Kenneth Russell  <kbr@google.com>
520
521         Reviewed by Dimitri Glazkov.
522
523         [v8] WebCore::WebGLArrayBufferInternal::byteLengthAttrGetter NULL pointer
524         https://bugs.webkit.org/show_bug.cgi?id=31889
525
526         Fixed bug in handling of zero-argument constructor call.
527
528         Test: fast/canvas/webgl/bug-31889.html
529
530         * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
531         (WebCore::CALLBACK_FUNC_DECL):
532
533 2009-12-07  Gyuyoung Kim  <gyuyoung@gmail.com>
534
535         Reviewed by Eric Seidel.
536
537         https://bugs.webkit.org/show_bug.cgi?id=32024
538         [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER
539
540         Fix build errors when javascript-debugger is disabled on GTK
541
542         * GNUmakefile.am:
543
544 2009-12-07  Dan Bernstein  <mitz@apple.com>
545
546         Reviewed by Darin Adler.
547
548         Fixed <rdar://problem/7437820> Weird selection artifacts
549
550         Tests: fast/repaint/block-selection-gap-stale-cache-2.html
551                fast/repaint/block-selection-gap-stale-cache.html
552
553         Instead of caching the block selection gaps’ bounds in the RenderView at setSelection()
554         time, cache them in each RenderLayer at paint time. This prevents the cache from getting
555         stale due to layout changes and overflow scrolling.
556
557         * rendering/RenderBlock.cpp:
558         (WebCore::RenderBlock::selectionGapRectsForRepaint): Account for overflow scroll.
559         (WebCore::RenderBlock::paintSelection): Update the enclosing layer’s selection gaps bounds.
560         * rendering/RenderLayer.cpp:
561         (WebCore::RenderLayer::addBlockSelectionGapsBounds): Added. Updates the selection gaps
562         bounds to include the given rect.
563         (WebCore::RenderLayer::clearBlockSelectionGapsBounds): Added. Recursively clears the cached
564         selection gaps bounds.
565         (WebCore::RenderLayer::repaintBlockSelectionGaps): Added. Recursively invalidates the
566         selection gaps bounds.
567         * rendering/RenderLayer.h:
568         * rendering/RenderView.cpp:
569         (WebCore::RenderView::setSelection): Clear the layer-level selection gaps bounds instead
570         of the view-level cache.
571         (WebCore::RenderView::clearSelection): Changed to call repaintBlockSelectionGaps().
572         * rendering/RenderView.h:
573
574 2009-12-07  Philippe Normand  <pnormand@igalia.com>
575
576         Reviewed by Gustavo Noronha.
577
578         Fixed whitelist comment and removed useless (tags, sdp) mimetypes
579         from it. Also, GStreamer doesn't handle directly SMIL.
580
581         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
582         (WebCore::mimeTypeCache):
583
584 2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
585
586         Reviewed by Xan Lopez.
587
588         https://bugs.webkit.org/show_bug.cgi?id=25415
589         [GTK][ATK] Please implement support for get_text_at_offset
590
591         Eliminate the segfaults which occur when accessing the text interface now
592         implemented by text controls.
593
594         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
595         (getPangoLayoutForAtk):
596
597 2009-12-07  Gustavo Noronha Silva  <gns@gnome.org>
598
599         Reviewed by Xan Lopez.
600
601         Turn the MediaPlayer supported types blacklist into a whitelist
602
603         [GTK] REGRESSION: webkit thinks it can render PDFs
604         https://bugs.webkit.org/show_bug.cgi?id=32183
605
606         Covered by API test.
607
608         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
609         (WebCore::mimeTypeCache):
610
611 2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
612
613         Reviewed by Xan Lopez.
614
615         https://bugs.webkit.org/show_bug.cgi?id=25524
616         [Gtk] Expose the title attribute to assistive technologies
617
618         Expose 'alt' attribute from images as accessible name.
619         Expose the 'title' core HTML attribute as accessible description.
620         This is a modified version of the original fix submitted by Mario Sanchez Prada,
621         adjusted so that it doesn't impact other platforms.
622
623         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
624         (webkit_accessible_get_name):
625         (webkit_accessible_get_description):
626
627 2009-12-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
628
629         Reviewed by Simon Hausmann.
630
631         [Qt] Fix support for generic font families
632
633         By not propagating the resolved font family in FontCacheQt and
634         only concidering the font description we ended up passing the
635         generic font families to Qt directly. Since most systems don't
636         have a mapping for these font families we ended up using the
637         default font in most cases.
638
639         * platform/graphics/qt/FontCacheQt.cpp:
640         * platform/graphics/qt/FontPlatformData.h:
641         * platform/graphics/qt/FontPlatformDataQt.cpp:
642
643 2009-12-06  Oliver Hunt  <oliver@apple.com>
644
645         Reviewed by Maciej Stachowiak.
646
647         Object.getOwnPropertyDescriptor() allows cross-frame access
648         https://bugs.webkit.org/show_bug.cgi?id=32119
649
650         Make all implementations of getOwnPropertyDescriptor that have
651         cross domain restrictions simply fail immediately on cross domain
652         access, rather than trying to mimic the behaviour of normal
653         property access.
654
655         Test: http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html
656
657         * bindings/js/JSDOMWindowCustom.cpp:
658         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
659         * bindings/js/JSHistoryCustom.cpp:
660         (WebCore::JSHistory::getOwnPropertyDescriptorDelegate):
661         * bindings/js/JSLocationCustom.cpp:
662         (WebCore::JSLocation::getOwnPropertyDescriptorDelegate):
663         * bindings/scripts/CodeGeneratorJS.pm:
664
665 2009-12-07  Steve Block  <steveblock@google.com>
666
667         Reviewed by Adam Barth.
668
669         Moves JSC-specific functions from jni_utility and moves them to new jsc/jni_utility_private files.
670         https://bugs.webkit.org/show_bug.cgi?id=32157
671
672         Build fix only, no new tests.
673
674         * WebCore.xcodeproj/project.pbxproj: Modified. Add jni_utility_private.[cpp|h].
675         * bridge/jni/jni_instance.cpp: Modified. Include jni_utility_private.h for JSC.
676         * bridge/jni/jni_jsobject.mm: Modified. Include jni_utility_private.h for JSC.
677         * bridge/jni/jni_objc.mm: Modified. Include jni_utility_private.h for JSC.
678         * bridge/jni/jni_runtime.cpp: Modified. Include jni_utility_private.h for JSC.
679         * bridge/jni/jni_utility.cpp: Modified. Removed convertValueToJValue and convertArrayInstanceToJavaArray.
680         * bridge/jni/jni_utility.h: Modified. Removed convertValueToJValue and dispatchJNICall.
681         * bridge/jni/jsc: Added.
682         * bridge/jni/jsc/jni_utility_private.cpp: Added.
683         (JSC::Bindings::convertArrayInstanceToJavaArray):
684         (JSC::Bindings::convertValueToJValue):
685         * bridge/jni/jsc/jni_utility_private.h: Added. Header for convertValueToJValue and dispatchJNICall.
686         * platform/android/TemporaryLinkStubs.cpp: Modified. Include jni_utility_private.h for JSC.
687
688 2009-12-06  Oliver Hunt  <oliver@apple.com>
689
690         Reviewed by Maciej Stachowiak.
691
692         texImage2D pixel junk for transparency
693         https://bugs.webkit.org/show_bug.cgi?id=32188
694
695         Use kCGBlendModeCopy when drawing an image to the intermediate context
696         used to create a GL texture.
697
698         No test as we don't currently have any mechanism to retrieve pixel data
699         from the webgl context.
700
701         * platform/graphics/mac/GraphicsContext3DMac.cpp:
702         (WebCore::imageToTexture):
703
704 2009-12-03  Philippe Normand  <pnormand@igalia.com>
705
706         Reviewed by Gustavo Noronha.
707
708         Advertize audio/ogg correctly and refactored mime-type cache
709         building.
710
711         [GTK] Recognize oga as audio/ogg
712         https://bugs.webkit.org/show_bug.cgi?id=31990
713
714         Test: media/media-can-play-ogg.html
715
716         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
717         (WebCore::mimeTypeCache):
718
719 2009-12-05  Alexey Proskuryakov  <ap@apple.com>
720
721         Reviewed by Eric Seidel.
722
723         https://bugs.webkit.org/show_bug.cgi?id=32175
724         REGRESSION: websocket/tests/url-parsing.html is crashing on Leopard Bot
725
726         * platform/network/cf/SocketStreamHandleCFNet.cpp:
727         (WebCore::SocketStreamHandle::readStreamCallback): Call platformClose() to unschedule both
728         streams, guaranteeing that there will be no callbacks after SocketStreamHandle is destroyed.
729         (WebCore::SocketStreamHandle::writeStreamCallback): Edited a comment a bit.
730
731 2009-12-05  Adam Langley  <agl@google.com>
732
733         Reviewed by Adam Barth.
734
735         Check that a CSS format() argument is of a valid type.
736
737         https://bugs.webkit.org/show_bug.cgi?id=31815
738         http://code.google.com/p/chromium/issues/detail?id=28582
739
740         Test: fast/css/url-format-non-string.html
741
742         * css/CSSParser.cpp:
743         (WebCore::CSSParser::parseFontFaceSrc):
744
745 2009-12-04  Adam Langley  <agl@google.com>
746
747         Reviewed by Eric Seidel.
748
749         Chromium: make rounded borders heavier.
750
751         Skia draws its rounded corners differently from the other ports.
752         Whereas they have anti-aliased clipping regions, Skia only has 1-bit
753         regions. (Which is technically more correct, but somewhat unhelpful
754         for us.) Instead, with Skia we use a layer and collect all the
755         clipping paths in effect. When the state is popped, we paint
756         transparency outside the clipping paths and merge the layer down.
757
758         This appears to cause rounded borders to look a little thin, which is
759         addressed in this patch.
760
761         This is well covered by existing tests but will require new baselines
762         in the Chromium tree.
763
764         https://bugs.webkit.org/show_bug.cgi?id=31778
765
766         * platform/graphics/skia/GraphicsContextSkia.cpp:
767         (WebCore::GraphicsContext::addInnerRoundedRectClip):
768
769 2009-12-04  Simon Fraser  <simon.fraser@apple.com>
770
771         Reviewed by Dan Bernstein.
772
773         <rdar://problem/7441571> Hardware-backed layers are skipped when printing
774         
775         When printing, set the PaintBehaviorFlattenCompositingLayers flag so that compositing layers
776         paint. This also causes 3D transforms to be flattened to 2D.
777
778         Test: printing/compositing-layer-printing.html
779
780         * page/FrameView.cpp:
781         (WebCore::FrameView::paintContents):
782
783 2009-12-04  Oliver Hunt  <oliver@apple.com>
784
785         Reviewed by Beth Dakin.
786
787         Fix up some issues in my SVGListTraits change from yesterday.
788
789         * svg/SVGListTraits.h:
790         (WebCore::):
791
792 2009-12-04  Albert J. Wong  <ajwong@chromium.org>
793
794         Not reviewed: chromium build fix.
795
796         Fix Chromium build break caused by moving of isDefaultPortForProtocol() and
797         portAllowed() into KURL.h/KURL.cpp.  Cloning code.
798
799         * platform/KURLGoogle.cpp:
800         (WebCore::isDefaultPortForProtocol):
801         (WebCore::portAllowed):
802
803 2009-12-04  Pavel Feldman  <pfeldman@chromium.org>
804
805         Reviewed by Timothy Hatcher.
806
807         Web Inspector: Remove suppress highlight when restoring selected node.
808
809         https://bugs.webkit.org/show_bug.cgi?id=32152
810
811         * inspector/front-end/ElementsPanel.js:
812         (WebInspector.ElementsPanel.prototype.setDocument.selectNode):
813         (WebInspector.ElementsPanel.prototype.setDocument.selectLastSelectedNode):
814         (WebInspector.ElementsPanel.prototype.setDocument):
815
816 2009-12-04  Dirk Schulze  <krit@webkit.org>
817
818         Reviewed by Nikolas Zimmermann.
819
820         Gradient SVG animation demonstrates tearing at animation extremes
821         https://bugs.webkit.org/show_bug.cgi?id=11929
822
823         The focalPoint of a radial gradient is temporarly substracted by
824         the centralPoint, if the focalPoint is not in the radius of the
825         gradient. This is needed to calculate a new postion of the focalPoint
826         according to the specification. But the new focalPoint needs to be
827         moved by the centralPoint after this calculation, which is not the case
828         at the moment. This patch fixes this issue. It was also introduced a
829         deviation of maximal 0.2% for Cairo to get around the fixed point numbers
830         in Cairo.
831
832         W3C-SVG-1.1/pservers-grad-13-b needed an update. The missing adjustment
833         of the new focalPoint caused wrong results for the last three tests.
834
835         Test: svg/custom/radial-gradient-with-outstanding-focalPoint.svg
836
837         * svg/SVGRadialGradientElement.cpp:
838         (WebCore::SVGRadialGradientElement::buildGradient):
839
840 2009-12-04  Anton Muhin  <antonm@chromium.org>
841
842         Reviewed by Dmitry Titov.
843
844         Do not use WebCore::String::String(const UChar*, int length) to convert
845         short v8 strings.
846
847         Plus added string traits.
848         https://bugs.webkit.org/show_bug.cgi?id=31415
849
850         * bindings/v8/V8Binding.cpp:
851         (WebCore::):
852         (WebCore::v8StringToWebCoreString):
853
854 2009-12-04  Chris Fleizach  <cfleizach@apple.com>
855
856         Reviewed by Darin Adler.
857
858         REGRESSION: AX: buttons now extremely repetitive
859         https://bugs.webkit.org/show_bug.cgi?id=32164
860
861         Test: platform/mac/accessibility/button-shouldnot-have-axvalue.html
862
863         * accessibility/AccessibilityObject.h:
864         (WebCore::AccessibilityObject::isButton):
865         * accessibility/mac/AccessibilityObjectWrapper.mm:
866         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
867
868 2009-12-04  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
869
870         Reviewed by Darin Adler.
871
872         Check whether the right side of a string append is non-empty
873         https://bugs.webkit.org/show_bug.cgi?id=32151
874
875         Especially beneficial for CachedScript::script() method
876         which usually appends an empty string returned by flush()
877         to its m_script member. m_script is often hundreds of kbytes
878         which is duplated without reason.
879
880         * platform/text/String.cpp:
881         (WebCore::String::append):
882
883 2009-12-04  Enrica Casucci  <enrica@apple.com>
884
885         Reviewed by John Sullivan.
886
887         Mail.app crashes when indenting table pasted from Numbers.app.
888         <rdar://problem/7209507>
889         https://bugs.webkit.org/show_bug.cgi?id=32166
890
891         Test: LayoutTests/editing/execCommand/indent-partial-table.html
892         
893         * editing/IndentOutdentCommand.cpp:
894         (WebCore::IndentOutdentCommand::indentRegion): Added test to verify that the end of the paragraph
895         after the selection has not been moved.
896
897 2009-12-04  Alexey Proskuryakov  <ap@apple.com>
898
899         Reviewed by Darin Adler.
900
901         https://bugs.webkit.org/show_bug.cgi?id=32085
902         WebSocket should block the same ports that are blocked for resource loading
903
904         Test: websocket/tests/url-parsing.html
905
906         * page/SecurityOrigin.cpp:
907         (WebCore::SecurityOrigin::SecurityOrigin):
908         (WebCore::SecurityOrigin::localURLSchemes):
909         * page/SecurityOrigin.h:
910         Move isDefaultPortForProtocol() to KURL, because that's a better place for it (SecurityOrigin
911         is not even in WebCore/platform directory).
912
913         * html/HTMLAnchorElement.cpp:
914         (WebCore::HTMLAnchorElement::host):
915         (WebCore::HTMLAnchorElement::setHost):
916         (WebCore::HTMLAnchorElement::setPort):
917         Updated for the new location of isDefaultPortForProtocol().
918
919         * platform/KURL.cpp:
920         (WebCore::KURL::protocolIs): In an assertion, compare to "javascript" case-insensitively,
921         since the function doesn't require lower case input.
922         (WebCore::isDefaultPortForProtocol): Moved from SecurityOrigin.
923         (WebCore::portAllowed): Moved from ResourceHandle.
924         * platform/KURL.h:
925
926         * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::create): Updated for the
927         new location of portAllowed().
928
929         * websockets/WebSocket.cpp: (WebCore::WebSocket::connect): Per the spec, raise a SECURITY_ERR
930         if trying to connect to a blocked port.
931
932 2009-12-04  Benjamin Poulain  <benjamin.poulain@nokia.com>
933
934         Reviewed by Kenneth Rohde Christiansen.
935
936         [Qt] WebKit crashes when loading certain SVG images
937         https://bugs.webkit.org/show_bug.cgi?id=29443
938
939         Remove FontFallbackListQt and rely on the common FontFallbackList
940         to handle the fonts. FontCache and FontPlatformData have been
941         updated to work with the common FontFallbackList.
942
943         In the previous implementation, FontPlatformDataCacheKey
944         was a clone of FontPlatformData with the hashing
945         capabilities added in order to use it as a key in the cache's
946         hashmap. FontPlatformData has been modified to handle the hashing
947         function directly so the data are not copied twice in memory.
948
949         FontFallbackList::fontDataAt() from FontFallbackListQt was a copy of
950         code from FontCache::getFontData() and FontFallbackList::fontDataAt().
951         The behavior is similar except currFamily->family().length() was
952         not tested and the fallback fonts selector were not used.
953
954         Existing tests cover the change.
955
956         * WebCore.pro:
957         * platform/graphics/qt/FontCacheQt.cpp:
958         (WebCore::FontCache::platformInit):
959         (WebCore::FontCache::getFontDataForCharacters):
960         (WebCore::FontCache::getSimilarFontPlatformData):
961         (WebCore::FontCache::getLastResortFallbackFont):
962         (WebCore::FontCache::getTraitsInFamily):
963         (WebCore::FontCache::createFontPlatformData):
964         * platform/graphics/qt/FontCustomPlatformData.cpp:
965         (WebCore::FontCustomPlatformData::fontPlatformData):
966         * platform/graphics/qt/FontFallbackListQt.cpp:
967         Removed. We now use the implementation from FontFallbackList.cpp
968         * platform/graphics/qt/FontPlatformData.h:
969         Add hashing capabilities to be able to use the data with the FontCache.
970         This was previously done in FontCacheQt.cpp
971         (WebCore::FontPlatformDataPrivate::FontPlatformDataPrivate):
972         (WebCore::FontPlatformData::FontPlatformData):
973         (WebCore::FontPlatformData::isHashTableDeletedValue):
974         (WebCore::FontPlatformData::font):
975         (WebCore::FontPlatformData::size):
976         (WebCore::FontPlatformData::family):
977         (WebCore::FontPlatformData::bold):
978         (WebCore::FontPlatformData::italic):
979         (WebCore::FontPlatformData::smallCaps):
980         (WebCore::FontPlatformData::pixelSize):
981         * platform/graphics/qt/FontPlatformDataQt.cpp:
982         (WebCore::FontPlatformData::FontPlatformData):
983         (WebCore::FontPlatformData::~FontPlatformData):
984         (WebCore::FontPlatformData::operator=):
985         (WebCore::FontPlatformData::operator==):
986         (WebCore::FontPlatformData::hash):
987
988 2009-12-04  Adam Treat  <atreat@rim.com>
989
990         Reviewed by Dan Bernstein.
991
992         Fix wrong assert that was only working through sheer luck.
993         https://bugs.webkit.org/show_bug.cgi?id=32162
994
995         * platform/text/BidiContext.cpp:
996         (WebCore::BidiContext::create):
997
998 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
999
1000         Reviewed by Simon Hausmann.
1001
1002         [Qt] Allow removing 'qrc' as a local security origin scheme
1003
1004         * page/SecurityOrigin.cpp:
1005
1006 2009-12-04  Zoltan Horvath  <zoltan@webkit.org>
1007
1008         Reviewed by Eric Seidel.
1009
1010         Allow custom memory allocation control for WebCore's CollectionCache
1011         https://bugs.webkit.org/show_bug.cgi?id=32109
1012
1013         Inherits the following class from FastAllocBase because it is
1014         instantiated by 'new':
1015
1016         struct name            - instantiated at: WebCore/'location'
1017
1018         struct CollectionCache - dom/Document.cpp:4029
1019
1020         * html/CollectionCache.h:
1021
1022 2009-12-04  Steve Block  <steveblock@google.com>
1023
1024         Reviewed by Darin Adler.
1025
1026         Fixes a crashing bug in Geolocation when a watch is cleared from some callbacks. 
1027         https://bugs.webkit.org/show_bug.cgi?id=32111
1028
1029         In Geolocation::GeoNotifier::timerFired, a JS callback may be invoked if a
1030         fatal error was registered on this GeoNotifier or if this request has timed
1031         out. If the request is a watch, and is cleared by a call to clearWatch in the
1032         callback, the GeoNotifier object will be destroyed. We must therefore cache the
1033         m_geolocation member to allow us to call Geolocation::fatalErrorOccurred or
1034         Geolocation::requestTimedOut.
1035
1036         Tests: fast/dom/Geolocation/permission-denied-already-clear-watch.html
1037                fast/dom/Geolocation/timeout-clear-watch.html
1038
1039         * page/Geolocation.cpp: Modified.
1040         (WebCore::Geolocation::GeoNotifier::timerFired): Modified. Cache the m_geolocation member before invoking the JS callback.
1041
1042 2009-12-04  Zoltan Horvath  <zoltan@webkit.org>
1043
1044         Reviewed by Eric Seidel.
1045
1046         Allow custom memory allocation control for 2 classes of the platform directory in WebCore
1047         https://bugs.webkit.org/show_bug.cgi?id=
1048
1049         Inherits the following class from Noncopyable because it is instantiated
1050         by 'new' and no need to be copyable:
1051
1052         class/struct name         - instantiated at: WebCore/'location'
1053
1054         class SharedTimer         - (its child class) workers/WorkerRunLoop.cpp:91
1055
1056         Inherits the following class from FastAllocBase because it is
1057         instantiated by 'new':
1058
1059         class TransformOperations - rendering/style/RenderStyle.h:1175
1060
1061         Noncopyable.h's include added to SharedTimer.h.
1062
1063         * platform/SharedTimer.h:
1064         * platform/graphics/transforms/TransformOperations.h:
1065
1066 2009-12-04  Xan Lopez  <xlopez@igalia.com>
1067
1068         Reviewed by Gustavo Noronha.
1069
1070         [GTK]Enable DNS prefetching
1071         https://bugs.webkit.org/show_bug.cgi?id=23846
1072
1073         Enable DNS prefetching.
1074
1075         Based on a patch by José Millán.
1076
1077         * platform/network/soup/DNSSoup.cpp:
1078         (WebCore::prefetchDNS):
1079
1080 2009-12-04  Zoltan Horvath  <zoltan@webkit.org>
1081
1082         Reviewed by Eric Seidel.
1083
1084         Allow custom memory allocation control for the svg directory in WebCore
1085         https://bugs.webkit.org/show_bug.cgi?id=
1086
1087         Inherits the following classes from Noncopyable because these are instantiated
1088         by 'new' and no need to be copyable:
1089
1090         class/struct name           - instantiated at: WebCore/'location'
1091
1092         struct ResourceSet          - svg/graphics/SVGResource.cpp:148
1093         class SVGFontData           - css/CSSFontFaceSource.cpp:156
1094         class SVGDocumentExtensions - dom/Document.cpp:3962
1095         class SVGViewSpec           - svg/SVGSVGElement.cpp:191
1096
1097         * svg/SVGDocumentExtensions.h:
1098         * svg/SVGFontData.h:
1099         * svg/SVGViewSpec.h:
1100         * svg/graphics/SVGResource.cpp:
1101
1102 2009-12-03  Chris Fleizach  <cfleizach@apple.com>
1103
1104         Reviewed by Beth Dakin.
1105
1106         WAI-ARIA: aria-activedescendant doesn't work as intended
1107         https://bugs.webkit.org/show_bug.cgi?id=32100
1108
1109         Fixes a number of issues regarding the "tree" role and aria-activedescendant.
1110         1. The indexes were being reported incorrectly by treeitems.
1111         2. aria-activedescendant changes were not being sent to the containing item.
1112         3. The tree's selected rows need to consult aria-activedescendant.
1113         4. Since a tree changes what it returns as its children (it returns its rows)
1114            the mac-specific array indexing methods need to correctly handle the tree case.
1115
1116         Tests: platform/mac/accessibility/aria-tree-activedescendant.html
1117                platform/mac/accessibility/aria-tree-index-of-items.html
1118
1119         * accessibility/AXObjectCache.h:
1120         (WebCore::AXObjectCache::):
1121         * accessibility/AccessibilityRenderObject.cpp:
1122         (WebCore::AccessibilityRenderObject::shouldFocusActiveDescendant):
1123         (WebCore::AccessibilityRenderObject::activeDescendant):
1124         (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
1125         (WebCore::AccessibilityRenderObject::ariaTreeSelectedRows):
1126         * accessibility/mac/AXObjectCacheMac.mm:
1127         (WebCore::AXObjectCache::postPlatformNotification):
1128         * accessibility/mac/AccessibilityObjectWrapper.mm:
1129         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1130         (-[AccessibilityObjectWrapper accessibilityIndexOfChild:]):
1131         (-[AccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):
1132         * accessibility/win/AXObjectCacheWin.cpp:
1133         (WebCore::AXObjectCache::postPlatformNotification):
1134
1135 2009-12-03  Zoltan Horvath  <zoltan@webkit.org>
1136
1137         Reviewed by Eric Seidel.
1138
1139         Allow custom memory allocation control for the xml directory in WebCore
1140         https://bugs.webkit.org/show_bug.cgi?id=
1141
1142         Inherits the following class from Noncopyable because it is instantiated 
1143         by 'new' and no need to be copyable:
1144
1145         class/struct name               - instantiated at: WebCore/'location'
1146
1147         struct XMLHttpRequestStaticData - xml/XMLHttpRequest.cpp:134
1148
1149         Inherits the following classes from FastAllocBase because these are instantiated by 'new':
1150
1151         class NodeTest                  - xml/XPathGrammar.y:258
1152         class NodeSet                   - xml/XPathValue.cpp:52
1153         struct EvaluationContext        - xml/XPathExpressionNode.cpp:40
1154
1155         * xml/XMLHttpRequest.cpp:
1156         * xml/XPathExpressionNode.h:
1157         * xml/XPathNodeSet.h:
1158         * xml/XPathStep.h:
1159
1160 2009-12-03  Drew Wilson  <atwilson@chromium.org>
1161
1162         Reviewed by Adam Barth.
1163
1164         New History changes do not compile for Chromium/V8
1165         https://bugs.webkit.org/show_bug.cgi?id=32148
1166
1167         Existing tests suffice (just trying to get code to compile).
1168
1169         * WebCore.gypi:
1170         Added V8HistoryCustom.cpp and other missing files.
1171         * bindings/v8/custom/V8CustomBinding.h:
1172         Added custom handlers for History.pushState()/replaceState().
1173         * bindings/v8/custom/V8HistoryCustom.cpp: Added.
1174         Added custom handlers for History.pushState()/replaceState().
1175         * history/BackForwardListChromium.cpp:
1176         (WebCore::BackForwardList::pushStateItem):
1177         Stubbed out this routine for now - will implement in the future.
1178
1179 2009-12-03  Adam Barth  <abarth@webkit.org>
1180
1181         Reviewed by Eric Seidel.
1182
1183         OwnPtr<XBLBindingManager> Document::m_bindingManager;
1184         https://bugs.webkit.org/show_bug.cgi?id=32147
1185
1186         The document actually owns the bindingManager.  That's what the code
1187         should say.
1188
1189         * dom/Document.cpp:
1190         (WebCore::Document::~Document):
1191         * dom/Document.h:
1192         (WebCore::Document::bindingManager):
1193
1194 2009-12-03  Adam Barth  <abarth@webkit.org>
1195
1196         Reviewed by Eric Seidel.
1197
1198         OwnPtr<Tokenizer> Document::m_tokenizer;
1199         https://bugs.webkit.org/show_bug.cgi?id=32145
1200
1201         The document actually owns the tokenizer.  That's what the code should say.
1202
1203         * dom/Document.cpp:
1204         (WebCore::Document::removedLastRef):
1205         (WebCore::Document::~Document):
1206         (WebCore::Document::cancelParsing):
1207         (WebCore::Document::implicitOpen):
1208         (WebCore::Document::implicitClose):
1209         * dom/Document.h:
1210         (WebCore::Document::tokenizer):
1211
1212 2009-12-03  Adam Barth  <abarth@webkit.org>
1213
1214         Reviewed by Eric Seidel.
1215
1216         OwnPtr<RenderArena> Document::m_renderArena;
1217         https://bugs.webkit.org/show_bug.cgi?id=32146
1218
1219         The document owns the renderArena.  That's what the code should say.
1220
1221         * dom/Document.cpp:
1222         (WebCore::Document::Document): Also, removed a redundant initialization
1223         of the tokenizer that I missed in my previous patch.
1224         (WebCore::Document::~Document):
1225         (WebCore::Document::attach):
1226         (WebCore::Document::detach):
1227         * dom/Document.h:
1228         (WebCore::Document::renderArena):
1229
1230 2009-12-03  Drew Wilson  <atwilson@chromium.org>
1231
1232         Rolling back r51633 because it causes a chromium perf regression.
1233
1234         * platform/graphics/SimpleFontData.h:
1235         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
1236
1237 2009-12-03  Adam Barth  <abarth@webkit.org>
1238
1239         Reviewed by Eric Seidel.
1240
1241         The code should say that Document owns DocLoader
1242         https://bugs.webkit.org/show_bug.cgi?id=32143
1243
1244         It's the truth.
1245
1246         * dom/Document.cpp:
1247         (WebCore::Document::~Document):
1248         * dom/Document.h:
1249         (WebCore::Document::docLoader):
1250
1251 2009-12-03  Chris Fleizach  <cfleizach@apple.com>
1252
1253         Reviewed by Eric Seidel.
1254
1255         AX: VO just says "term" on many web sites
1256         https://bugs.webkit.org/show_bug.cgi?id=32139
1257
1258         Test: platform/mac/accessibility/definition-list-term.html
1259
1260         * accessibility/AccessibilityRenderObject.cpp:
1261         (WebCore::AccessibilityRenderObject::accessibilityDescription):
1262         * accessibility/mac/AccessibilityObjectWrapper.mm:
1263         (-[AccessibilityObjectWrapper subrole]):
1264         (-[AccessibilityObjectWrapper roleDescription]):
1265
1266 2009-12-03  Chris Fleizach  <cfleizach@apple.com>
1267
1268         Reviewed by Beth Dakin.
1269
1270         Implement WAI-ARIA scrollbar role and related property aria-orientation
1271         https://bugs.webkit.org/show_bug.cgi?id=32126
1272
1273         Test: accessibility/aria-scrollbar-role.html
1274
1275         * accessibility/AccessibilityObject.cpp:
1276         (WebCore::createARIARoleMap):
1277         * accessibility/AccessibilityObject.h:
1278         (WebCore::AccessibilityObject::isScrollbar):
1279         * accessibility/AccessibilityRenderObject.cpp:
1280         (WebCore::AccessibilityRenderObject::valueForRange):
1281         (WebCore::AccessibilityRenderObject::orientation):
1282         (WebCore::AccessibilityRenderObject::canHaveChildren):
1283         * accessibility/AccessibilityRenderObject.h:
1284         * accessibility/mac/AccessibilityObjectWrapper.mm:
1285         (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
1286         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1287         * html/HTMLAttributeNames.in:
1288
1289 2009-12-03  Dan Bernstein  <mitz@apple.com>
1290
1291         Reviewed by Darin Adler.
1292
1293         Fixed <rdar://problem/7401617> Selection painting issue in hardware-
1294         accelerated layers
1295         which is another part of https://bugs.webkit.org/show_bug.cgi?id=23628
1296         Fix selection painting to do container-relative repaints
1297
1298         Test: fast/repaint/block-selection-gap-in-composited-layer.html
1299
1300         * rendering/RenderBlock.cpp:
1301         (WebCore::RenderBlock::selectionGapRectsForRepaint): Compute and paint
1302         gap rects in the coordinate space of the repaint container.
1303         * rendering/RenderLayerCompositor.cpp:
1304         (WebCore::RenderLayerCompositor::recursiveRepaintLayerRect): Added a
1305         FIXME.
1306         * rendering/RenderView.cpp:
1307         (WebCore::RenderView::setSelection): Map block selection gap rects from
1308         the repaint container’s coordinate space to the view’s coordinate space
1309         before adding them to the cached selection bounds.
1310         (WebCore::RenderView::clearSelection): Changed to use
1311         repaintRectangleInViewAndCompositedLayers() so that the selection rect
1312         is invalidated in composited layers as well.
1313
1314 2009-12-03  Jonathan Dixon  <joth@chromium.org>
1315
1316         Reviewed by Dimitri Glazkov.
1317
1318         Bug 32066 - Add enable geolocation flag to WebCore::Settings for Chromium
1319         https://bugs.webkit.org/show_bug.cgi?id=32066
1320
1321         Adds geolocationEnabled in Settings for runtime control of geolocaiton features. This defaults to ON
1322         as it is intended as a development and testing aid, not a user control. To completely remove geolocation
1323         from a given port, the compile time ENABLE_GEOLOCATION should still be used.
1324         Adding placeholder GeolocationServiceChromium implementation, as this is required to allows
1325         ENABLE_GEOLOCATION to be defined (in turn required for testing), even though this patch does not
1326         make that the default just yet.
1327
1328         * WebCore.gypi:
1329         * page/Settings.cpp:
1330         (WebCore::Settings::Settings): Add new m_geolocationEnabled flag default value
1331         (WebCore::Settings::setGeolocationEnabled): Setter for  m_geolocationEnabled flag
1332         * page/Settings.h:
1333         (WebCore::Settings::geolocationEnabled):  Add m_geolocationEnabled flag
1334         * platform/chromium/GeolocationServiceChromium.cpp: Added.
1335         (WebCore::GeolocationServiceChromium::GeolocationServiceChromium): Place holder GeolocationServiceChromium)
1336         (WebCore::createGeolocationService): factory function, only required when ENABLED(GEOLOCATION) is true
1337
1338 2009-12-03  Enrica Casucci  <enrica@apple.com>
1339
1340         Reviewed by John Sullivan.
1341
1342         SpinTracer: 349 spins in Mail at WebCore::Editor::advanceToNextMisspelling(bool)
1343         <rdar://problem/7198592>
1344         https://bugs.webkit.org/show_bug.cgi?id=32129
1345
1346         Fixed the way the next paragraph is calculated.
1347         I've added a repro case in Safari and attached it to the Bugzilla bug.
1348
1349         * editing/Editor.cpp:
1350         (WebCore::findFirstMisspellingOrBadGrammarInRange): Changed the way we move to the
1351         next paragraph in the loop.
1352
1353 2009-12-03  Oliver Hunt  <oliver@apple.com>
1354
1355         Build fix
1356
1357         * svg/SVGListTraits.h:
1358         (WebCore::):
1359
1360 2009-12-03  Oliver Hunt  <oliver@apple.com>
1361
1362         Build fix
1363
1364         * svg/SVGListTraits.h:
1365         (WebCore::):
1366
1367 2009-12-03  Brady Eidson  <beidson@apple.com>
1368
1369         No wonder editing WebCore.exp repeatedly while I worked on this patch never seemed to stick.
1370
1371         Long live our auto-generated overlords that I didn't know about...  
1372
1373         * WebCore.base.exp:
1374
1375 2009-12-03  Oliver Hunt  <oliver@apple.com>
1376
1377         Reviewed by Dan Bernstein.
1378
1379         REGRESSION (r51627): 3 SVG tests are failing
1380         https://bugs.webkit.org/show_bug.cgi?id=32117
1381
1382         Null checking Items in the SVGList is insufficient as items may
1383         be floats, etc so add SVGListTraits::isNull and add appropriate
1384         specializations.
1385
1386         Test: svg/dom/svglist-exception-on-out-bounds-error.html
1387
1388         * svg/SVGList.h:
1389         (WebCore::SVGListTypeOperations::isNull):
1390         (WebCore::SVGList::initialize):
1391         (WebCore::SVGList::insertItemBefore):
1392         (WebCore::SVGList::replaceItem):
1393         (WebCore::SVGList::appendItem):
1394         * svg/SVGListTraits.h:
1395         (WebCore::):
1396
1397 2009-12-03  Brady Eidson  <beidson@apple.com>
1398
1399         No review - release build fix.
1400
1401         * history/HistoryItem.cpp:
1402         (WebCore::HistoryItem::documentDetached):
1403
1404 2009-12-03  Brady Eidson  <beidson@apple.com>
1405
1406         No review - release build fix.
1407
1408         * loader/HistoryController.cpp:
1409         (WebCore::HistoryController::pushState):
1410
1411 2009-12-03  Enrica Casucci  <enrica@apple.com>
1412
1413         Reviewed by Adele Peterson.
1414
1415         Multiple Undos removes the last posted comment and/or the ones before it.
1416         <rdar://problem/6557066>
1417         https://bugs.webkit.org/show_bug.cgi?id=32079
1418         
1419         The fix consists in preventing Undos and Redos to be applied to elements that
1420         are no longer editable. We do not attempt to remove the commands from the queue.
1421         It is a relatively simple fix that comes with a little extra overhead for the apply
1422         and unapply methods where we are now performing the editability check.
1423
1424         Test: editing/undo/undo-indent-noneditable.html
1425
1426         * editing/AppendNodeCommand.cpp:
1427         (WebCore::AppendNodeCommand::doApply):
1428         (WebCore::AppendNodeCommand::doUnapply):
1429         * editing/DeleteFromTextNodeCommand.cpp:
1430         (WebCore::DeleteFromTextNodeCommand::doApply):
1431         (WebCore::DeleteFromTextNodeCommand::doUnapply):
1432         * editing/InsertIntoTextNodeCommand.cpp:
1433         (WebCore::InsertIntoTextNodeCommand::doApply):
1434         (WebCore::InsertIntoTextNodeCommand::doUnapply):
1435         * editing/InsertNodeBeforeCommand.cpp:
1436         (WebCore::InsertNodeBeforeCommand::doApply):
1437         (WebCore::InsertNodeBeforeCommand::doUnapply):
1438         * editing/JoinTextNodesCommand.cpp:
1439         (WebCore::JoinTextNodesCommand::doApply):
1440         (WebCore::JoinTextNodesCommand::doUnapply):
1441         * editing/MergeIdenticalElementsCommand.cpp:
1442         (WebCore::MergeIdenticalElementsCommand::doApply):
1443         (WebCore::MergeIdenticalElementsCommand::doUnapply):
1444         * editing/RemoveNodeCommand.cpp:
1445         (WebCore::RemoveNodeCommand::doApply):
1446         (WebCore::RemoveNodeCommand::doUnapply):
1447         * editing/SplitElementCommand.cpp:
1448         (WebCore::SplitElementCommand::executeApply):
1449         (WebCore::SplitElementCommand::doUnapply):
1450         * editing/SplitTextNodeCommand.cpp:
1451         (WebCore::SplitTextNodeCommand::doApply):
1452         (WebCore::SplitTextNodeCommand::doUnapply):
1453         * editing/WrapContentsInDummySpanCommand.cpp:
1454         (WebCore::WrapContentsInDummySpanCommand::doUnapply):
1455         (WebCore::WrapContentsInDummySpanCommand::doReapply):
1456
1457 2009-12-03  Brady Eidson  <beidson@apple.com>
1458
1459         Reviewed by Sam Weinig.
1460
1461         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1462
1463         Tests: fast/loader/stateobjects/document-destroyed-navigate-back.html
1464                fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html
1465                fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
1466                fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
1467                fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html
1468                fast/loader/stateobjects/pushstate-object-types.html
1469                fast/loader/stateobjects/pushstate-then-replacestate.html
1470                fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
1471                fast/loader/stateobjects/replacestate-then-pushstate.html
1472                http/tests/loading/state-object-security-exception.html
1473
1474         Derived sources and project file changes:
1475         * DerivedSources.cpp:
1476         * DerivedSources.make:
1477         * GNUmakefile.am
1478         * WebCore.pro
1479         * WebCore.vcproj/WebCore.vcproj:
1480         * WebCore.xcodeproj/project.pbxproj:
1481
1482         Add the new PopStateEvent:
1483         * dom/PopStateEvent.cpp: Added.
1484         (WebCore::PopStateEvent::PopStateEvent):
1485         (WebCore::PopStateEvent::initPopStateEvent):
1486         * dom/PopStateEvent.h: Added.
1487         (WebCore::PopStateEvent::create):
1488         (WebCore::PopStateEvent::isPopStateEvent):
1489         (WebCore::PopStateEvent::state):
1490         * dom/PopStateEvent.idl: Added.
1491         * bindings/js/JSPopStateEventCustom.cpp: Added.
1492         (WebCore::JSPopStateEvent::initPopStateEvent):
1493         (WebCore::JSPopStateEvent::state):
1494         * bindings/js/JSEventCustom.cpp:
1495         (WebCore::toJS):
1496         * dom/Event.cpp:
1497         (WebCore::Event::isPopStateEvent):
1498         * dom/Event.h:
1499         * dom/EventNames.h:
1500
1501         Add the "onpopstate" attribute:
1502         * html/HTMLAttributeNames.in:
1503         * html/HTMLBodyElement.cpp:
1504         (WebCore::HTMLBodyElement::parseMappedAttribute):
1505         * html/HTMLBodyElement.idl:
1506         * html/HTMLFrameSetElement.cpp:
1507         (WebCore::HTMLFrameSetElement::parseMappedAttribute):
1508         * html/HTMLFrameSetElement.h:
1509         * html/HTMLFrameSetElement.idl:
1510         * page/DOMWindow.h:
1511         * page/DOMWindow.idl:
1512
1513         Add pushState and replaceState management to the loader and history machinery:
1514         * bindings/js/JSHistoryCustom.cpp:
1515         (WebCore::JSHistory::pushState):
1516         (WebCore::JSHistory::replaceState):
1517         * loader/HistoryController.cpp:
1518         (WebCore::HistoryController::updateForSameDocumentNavigation): Augmented from "scrollToAnchor()", combining
1519           both the same-document fragment scroll case with the new same-document state object activation case.
1520         (WebCore::HistoryController::pushState):
1521         (WebCore::HistoryController::replaceState):
1522         * loader/HistoryController.h:
1523         * history/BackForwardList.cpp:
1524         (WebCore::BackForwardList::addItem): Use insertItemAfterCurrent.
1525         (WebCore::BackForwardList::insertItemAfterCurrent): Optionally insert the item without clearing the forward
1526           list, as pushStateItem might've selectively cleared only certain items, with the bulk of the forward list
1527           meant to remain.
1528         (WebCore::BackForwardList::pushStateItem): Clear the forward list *only* for the state item's document, then 
1529           insert the new item.
1530         (WebCore::BackForwardList::removeItem):
1531         * history/BackForwardList.h:
1532         * page/History.cpp:
1533         (WebCore::History::urlForState):
1534         (WebCore::History::stateObjectAdded):
1535         * page/History.h:
1536         * page/History.idl:
1537
1538         Let HistoryItems and Documents associate with each other, as well as letting HistoryItems contain state objects:
1539         * history/HistoryItem.cpp:
1540         (WebCore::HistoryItem::HistoryItem):
1541         (WebCore::HistoryItem::~HistoryItem):
1542         (WebCore::HistoryItem::setStateObject):
1543         (WebCore::HistoryItem::setDocument):
1544         (WebCore::HistoryItem::documentDetached):
1545         * history/HistoryItem.h:
1546         (WebCore::HistoryItem::stateObject):
1547         (WebCore::HistoryItem::document):
1548         * dom/Document.cpp:
1549         (WebCore::Document::detach): Notify all back/forward history items owned by this Document that it
1550           is going away.
1551         (WebCore::Document::registerHistoryItem): Manage the list of back/forward history items this document owns.
1552         (WebCore::Document::unregisterHistoryItem): Ditto.
1553         * dom/Document.h:
1554
1555         Add the ability for Documents, DocumentLoaders, and FrameLoaderClients to be notified when a Documents
1556         URL changes as the result of pushState(), replaceState(), or a popstate navigation:
1557         * dom/Document.cpp:
1558         (WebCore::Document::implicitClose): If there's a pending state object, dispatch the popstate event.
1559         (WebCore::Document::updateURLForPushOrReplaceState):
1560         (WebCore::Document::statePopped): If loading is complete, dispatch the popstate event. Otherwise, set 
1561           the pending state object.
1562         * loader/DocumentLoader.cpp:
1563         (WebCore::DocumentLoader::replaceRequestURLForSameDocumentNavigation):
1564         * loader/DocumentLoader.h:
1565         * loader/FrameLoaderClient.h:
1566         * loader/EmptyClients.h:
1567         (WebCore::EmptyFrameLoaderClient::dispatchDidChangeStateObjectForPageForFrame):
1568
1569         Change handling of "loading a HistoryItem" to distinguish between new-Document navigations and same-Document
1570         navigations, combining the old concept of anchor scrolls with the new concept of state object navigations:
1571         * loader/FrameLoader.cpp:
1572         (WebCore::FrameLoader::loadInSameDocument):
1573         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
1574         (WebCore::FrameLoader::navigateWithinDocument):
1575         (WebCore::FrameLoader::navigateToDifferentDocument):
1576         (WebCore::FrameLoader::loadItem):
1577         * loader/FrameLoader.h:
1578         * page/Page.cpp:
1579         (WebCore::Page::goToItem): Changed to allow state object activations to pass through without the load stopping.
1580
1581 2009-12-03  Pavel Feldman  <pfeldman@chromium.org>
1582
1583         Not reviewed: chromium build fix.
1584         r51621 changed JS bindings only, broke v8's.
1585
1586         * bindings/v8/ScriptFunctionCall.cpp:
1587         (WebCore::ScriptFunctionCall::appendArgument):
1588         * bindings/v8/ScriptFunctionCall.h:
1589
1590 2009-12-03  Dimitri Glazkov  <dglazkov@chromium.org>
1591
1592         Reviewed by Adam Barth.
1593
1594         [V8] Attributes and NamedNodeMaps aren't tracked correctly and may be prematurely garbage-collected.
1595         https://bugs.webkit.org/show_bug.cgi?id=32094
1596
1597         Covered by existing test: LayoutTests/fast/dom/Attr/access-after-element-destruction.html
1598
1599         * bindings/v8/DOMObjectsInclude.h:
1600         * bindings/v8/V8DOMWrapper.cpp:
1601         (WebCore::V8DOMWrapper::getTemplate):
1602         (WebCore::V8DOMWrapper::convertToV8Object):
1603         (WebCore::V8DOMWrapper::convertNamedNodeMapToV8Object):
1604         * bindings/v8/V8DOMWrapper.h:
1605         * bindings/v8/V8GCController.cpp:
1606         (WebCore::ObjectGrouperVisitor::visitDOMWrapper):
1607         * bindings/v8/custom/V8CustomBinding.h:
1608
1609 2009-12-03  Pavel Feldman  <pfeldman@chromium.org>
1610
1611         Reviewed by Timothy Hatcher.
1612
1613         Chromium: Add support for settings containing ":"
1614
1615         https://bugs.webkit.org/show_bug.cgi?id=32118
1616
1617         * inspector/front-end/WatchExpressionsSidebarPane.js:
1618         (WebInspector.WatchExpressionsSection):
1619
1620 2009-12-03  Rafael Antognolli  <antognolli@profusion.mobi>, Kenneth Christiansen <kenneth@webkit.org>
1621
1622         Reviewed by Simon Fraser.
1623
1624         repaint events from outside the viewport aren't received
1625         https://bugs.webkit.org/show_bug.cgi?id=32081
1626
1627         When using a tiled backing store for painting, you need to receive
1628         event from outside the viewport. Setting the viewport to the size
1629         of the contents is not an option if you want to make use of WebCore's
1630         infrastructure for drawing scrollbars etc.
1631
1632         A new property, paintsEntireContents, has been introduced for the
1633         above use-case. It is settable, as tiling will be optional for Qt,
1634         and for the not yet upstreamed EFL port, there will be two different
1635         views, where only one of them are tiled.
1636
1637         No change in behavior, so no new tests added.
1638
1639         * page/FrameView.cpp:
1640         (WebCore::FrameView::repaintContentRectangle):
1641         * platform/ScrollView.cpp:
1642         (WebCore::ScrollView::ScrollView):
1643         (WebCore::ScrollView::setPaintsEntireContents):
1644         (WebCore::ScrollView::wheelEvent):
1645         * platform/ScrollView.h:
1646         (WebCore::ScrollView::paintsEntireContents):
1647
1648 2009-11-23  Jeremy Moskovich  <jeremy@chromium.org>
1649
1650         Reviewed by Eric Seidel.
1651
1652         Switch Chrome/Mac to use Core Text APIs rather than ATSUI APIs.
1653         https://bugs.webkit.org/show_bug.cgi?id=31802
1654
1655         No test since this is already covered by existing pixel tests.
1656
1657         * platform/graphics/SimpleFontData.h: Change #ifdef to define getNSFont() on Chrome/Mac .
1658         * platform/graphics/mac/ComplexTextControllerCoreText.cpp: Provide forward declarations
1659         of Core Text functions that are public on 10.6 but SPI on 10.5.
1660
1661 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1662
1663         Reviewed by Timothy Hatcher.
1664
1665         Web Inspector: Simplify the settings support in inspector controller.
1666
1667         https://bugs.webkit.org/show_bug.cgi?id=32076
1668
1669         Test: inspector/settings-set-get.html
1670
1671         * WebCore.Inspector.exp:
1672         * bindings/js/JSInspectorFrontendHostCustom.cpp:
1673         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
1674         * inspector/InspectorClient.h:
1675         * inspector/InspectorController.cpp:
1676         (WebCore::InspectorController::~InspectorController):
1677         (WebCore::InspectorController::setting):
1678         (WebCore::InspectorController::setSetting):
1679         (WebCore::InspectorController::setWindowVisible):
1680         (WebCore::InspectorController::attachWindow):
1681         (WebCore::InspectorController::setAttachedWindowHeight):
1682         (WebCore::InspectorController::storeLastActivePanel):
1683         (WebCore::InspectorController::scriptObjectReady):
1684         (WebCore::InspectorController::showWindow):
1685         (WebCore::InspectorController::enableResourceTracking):
1686         (WebCore::InspectorController::disableResourceTracking):
1687         (WebCore::InspectorController::ensureResourceTrackingSettingsLoaded):
1688         (WebCore::InspectorController::enableProfiler):
1689         (WebCore::InspectorController::disableProfiler):
1690         (WebCore::InspectorController::enableDebuggerFromFrontend):
1691         (WebCore::InspectorController::disableDebugger):
1692         * inspector/InspectorController.h:
1693         * inspector/InspectorFrontendHost.cpp:
1694         (WebCore::InspectorFrontendHost::setting):
1695         (WebCore::InspectorFrontendHost::setSetting):
1696         * inspector/InspectorFrontendHost.h:
1697         * inspector/InspectorFrontendHost.idl:
1698         * loader/EmptyClients.h:
1699         (WebCore::EmptyInspectorClient::populateSetting):
1700         (WebCore::EmptyInspectorClient::storeSetting):
1701
1702 2009-12-03  Ben Murdoch  <benm@google.com>
1703
1704         Reviewed by Brady Eidson.
1705
1706         [Android] notifyHistoryItemChanged() should pass a pointer to the HistoryItem that changed.
1707         https://bugs.webkit.org/show_bug.cgi?id=31915
1708
1709         No change in functionality so no new tests required.
1710
1711         * history/HistoryItem.cpp:
1712         (WebCore::defaultNotifyHistoryItemChanged): Update this function to pass the HistoryItem that is being changed.
1713         (WebCore::HistoryItem::setAlternateTitle): Update call to notifyHistoryItemChanged to include the new parameter.
1714         (WebCore::HistoryItem::setURLString): ditto.
1715         (WebCore::HistoryItem::setOriginalURLString): ditto.
1716         (WebCore::HistoryItem::setReferrer): ditto.
1717         (WebCore::HistoryItem::setTitle): ditto.
1718         (WebCore::HistoryItem::setTarget): ditto.
1719         (WebCore::HistoryItem::setDocumentState): On Android, add a call to notifyHistoryItemChanged. See bug for a discussion of why this is needed.
1720         (WebCore::HistoryItem::clearDocumentState): ditto.
1721         (WebCore::HistoryItem::setIsTargetItem): ditto.
1722         (WebCore::HistoryItem::addChildItem): ditto.
1723         (WebCore::HistoryItem::setFormInfoFromRequest): ditto.
1724         * history/HistoryItem.h: Update signature of notifyHistoryItemChanged.
1725
1726 2009-12-03  Ben Murdoch  <benm@google.com>
1727
1728         Reviewed by Brady Eidson.
1729
1730         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1731         https://bugs.webkit.org/show_bug.cgi?id=31914
1732
1733         This change adds three new methods on the FrameLoaderClient interface to receive notifications when the BackForwardList changes.
1734
1735         No new tests required. Functionality on all platforms upstream remains the same. Android is the first platform to make use of these callbacks.
1736
1737         * history/BackForwardList.cpp:
1738         (WebCore::BackForwardList::addItem): Execute the callback.
1739         (WebCore::BackForwardList::goBack): ditto.
1740         (WebCore::BackForwardList::goForward): ditto.
1741         (WebCore::BackForwardList::goToItem): ditto.
1742         (WebCore::BackForwardList::setCapacity): dito.
1743         * loader/EmptyClients.h:
1744         (WebCore::EmptyFrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation for the callback that does nothing.
1745         (WebCore::EmptyFrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto.
1746         (WebCore::EmptyFrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto.
1747         * loader/FrameLoaderClient.h:
1748
1749 2009-12-03  Ben Murdoch  <benm@google.com>
1750
1751         Reviewed by Brady Eidson.
1752
1753         [Android] Upstream WebCore/history/android: Require some platform specific state attached to HistoryItem.
1754         https://bugs.webkit.org/show_bug.cgi?id=31913
1755
1756         Android stores information such as the zoom scale factor and bridge back to the Java counterpart with HistoryItem.
1757
1758         No new tests required as this is Android specific code.
1759
1760         * history/HistoryItem.h: Add Android specific member data to HistoryItem.
1761         * history/android: Added.
1762         * history/android/AndroidWebHistoryBridge.h: Added.
1763         * history/android/HistoryItemAndroid.cpp: Added, provides implementation for Android specific member functions in HistoryItem.
1764         (WebCore::HistoryItem::bridge): Added.
1765         (WebCore::HistoryItem::setBridge): Added.
1766
1767 2009-12-03  Oliver Hunt  <oliver@apple.com>
1768
1769         Reviewed by Maciej Stachowiak.
1770
1771         NULL ptr in SVGPathSegList::getPathSegAtLength()
1772         https://bugs.webkit.org/show_bug.cgi?id=30313
1773
1774         Add exception checks to SVGPathSegList's implementation to catch (and propagate) exceptions.
1775         Add null checks to SVGList's content manipulation functions to prevent
1776         null values from entering the list in the first place.
1777
1778         Test: svg/dom/svgpath-out-of-bounds-getPathSeg.html
1779
1780         * svg/SVGList.h:
1781         (WebCore::SVGList::initialize):
1782         (WebCore::SVGList::insertItemBefore):
1783         (WebCore::SVGList::replaceItem):
1784         (WebCore::SVGList::appendItem):
1785         * svg/SVGPathElement.cpp:
1786         (WebCore::SVGPathElement::getPathSegAtLength):
1787         * svg/SVGPathElement.h:
1788         * svg/SVGPathElement.idl:
1789         * svg/SVGPathSegList.cpp:
1790         (WebCore::SVGPathSegList::getPathSegAtLength):
1791         (WebCore::SVGPathSegList::toPathData):
1792         (WebCore::SVGPathSegList::createAnimated):
1793         * svg/SVGPathSegList.h:
1794
1795 2009-12-02  Yusuke Sato  <yusukes@chromium.org>
1796
1797         Reviewed by Eric Seidel.
1798
1799         Sanitize web fonts using the OTS library 
1800         https://bugs.webkit.org/show_bug.cgi?id=31106
1801
1802         Add support for OpenType sanitizer (OTS). It parses OpenType files (from @font-face)
1803         and attempts to validate and sanitize them. We hope this reduces the attack surface
1804         of the system font libraries.
1805
1806         * WebCore.gyp/WebCore.gyp: Added dependency to (chromium_src_dir)/third_party/ots/ library.
1807         * WebCore.gypi: Added new files below.
1808         * WebCore.xcodeproj/project.pbxproj: Ditto.
1809         * platform/graphics/chromium/FontCustomPlatformData.cpp: Validate and transcode a web font.
1810         (WebCore::createFontCustomPlatformData):
1811         * platform/graphics/mac/FontCustomPlatformData.cpp: Ditto.
1812         (WebCore::createFontCustomPlatformData):
1813         * platform/graphics/opentype/OpenTypeSanitizer.cpp: Added.
1814         (WebCore::OpenTypeSanitizer::sanitize):
1815         * platform/graphics/opentype/OpenTypeSanitizer.h: Added.
1816         (WebCore::OpenTypeSanitizer::OpenTypeSanitizer):
1817
1818 2009-12-02  Oliver Hunt  <oliver@apple.com>
1819
1820         Reviewed by Sam Weinig.
1821
1822         Web Inspector frontend heap allocates ScriptFunctionCall which is unsafe
1823         https://bugs.webkit.org/show_bug.cgi?id=32098
1824
1825         Fix is simply to make the ScriptFunctionCall stack allocated as nature intended.
1826         Doing this required adding an appendArgument(char*) to ScriptFunctionCall so
1827         that an explicit String cast would not be necessary.
1828
1829         To prevent something like this happening again in future i've added private
1830         operator new implementations to ScriptFunctionCall making this type of mistake
1831         produce errors when compiling.
1832
1833         Test case: Inspector tests now pass with GC on every alloc enabled.
1834
1835         * bindings/js/ScriptFunctionCall.cpp:
1836         (WebCore::ScriptFunctionCall::appendArgument):
1837         * bindings/js/ScriptFunctionCall.h:
1838         (WebCore::ScriptFunctionCall::operator new):
1839         (WebCore::ScriptFunctionCall::operator new[]):
1840         * inspector/InspectorFrontend.cpp:
1841         (WebCore::InspectorFrontend::addConsoleMessage):
1842         (WebCore::InspectorFrontend::updateConsoleMessageRepeatCount):
1843         (WebCore::InspectorFrontend::addResource):
1844         (WebCore::InspectorFrontend::updateResource):
1845         (WebCore::InspectorFrontend::removeResource):
1846         (WebCore::InspectorFrontend::updateFocusedNode):
1847         (WebCore::InspectorFrontend::setAttachedWindow):
1848         (WebCore::InspectorFrontend::addRecordToTimeline):
1849         (WebCore::InspectorFrontend::parsedScriptSource):
1850         (WebCore::InspectorFrontend::failedToParseScriptSource):
1851         (WebCore::InspectorFrontend::addProfileHeader):
1852         (WebCore::InspectorFrontend::setRecordingProfile):
1853         (WebCore::InspectorFrontend::didGetProfileHeaders):
1854         (WebCore::InspectorFrontend::didGetProfile):
1855         (WebCore::InspectorFrontend::pausedScript):
1856         (WebCore::InspectorFrontend::setDocument):
1857         (WebCore::InspectorFrontend::setDetachedRoot):
1858         (WebCore::InspectorFrontend::setChildNodes):
1859         (WebCore::InspectorFrontend::childNodeCountUpdated):
1860         (WebCore::InspectorFrontend::childNodeInserted):
1861         (WebCore::InspectorFrontend::childNodeRemoved):
1862         (WebCore::InspectorFrontend::attributesUpdated):
1863         (WebCore::InspectorFrontend::didRemoveNode):
1864         (WebCore::InspectorFrontend::didGetChildNodes):
1865         (WebCore::InspectorFrontend::didApplyDomChange):
1866         (WebCore::InspectorFrontend::didGetEventListenersForNode):
1867         (WebCore::InspectorFrontend::didGetCookies):
1868         (WebCore::InspectorFrontend::didDispatchOnInjectedScript):
1869         (WebCore::InspectorFrontend::addDatabase):
1870         (WebCore::InspectorFrontend::selectDatabase):
1871         (WebCore::InspectorFrontend::didGetDatabaseTableNames):
1872         (WebCore::InspectorFrontend::addDOMStorage):
1873         (WebCore::InspectorFrontend::selectDOMStorage):
1874         (WebCore::InspectorFrontend::didGetDOMStorageEntries):
1875         (WebCore::InspectorFrontend::didSetDOMStorageItem):
1876         (WebCore::InspectorFrontend::didRemoveDOMStorageItem):
1877         (WebCore::InspectorFrontend::updateDOMStorage):
1878         (WebCore::InspectorFrontend::addNodesToSearchResult):
1879         (WebCore::InspectorFrontend::evaluateForTestInFrontend):
1880         * inspector/InspectorFrontend.h:
1881
1882 2009-12-02  Dave Hyatt  <hyatt@apple.com>
1883
1884         Reviewed by Darin Adler.
1885
1886         https://bugs.webkit.org/show_bug.cgi?id=32072, clean up invalid @-rule error handling so that we
1887         pass more CSS test suite stuff.  Make the grammar stop enforcing the ordering of @namespace vs.
1888         @variables vs. @import.  Just let the parser handle that instead.  This simplifies the grammar and
1889         makes error handling deal with more cases correctly.
1890
1891         Added fast/css/namespaces/namespaces-invalid-at-rules.xml
1892
1893         * css/CSSGrammar.y:
1894         * css/CSSParser.cpp:
1895         (WebCore::CSSParser::CSSParser):
1896         (WebCore::CSSParser::parseRule):
1897         (WebCore::CSSParser::createCharsetRule):
1898         (WebCore::CSSParser::createImportRule):
1899         (WebCore::CSSParser::createMediaRule):
1900         (WebCore::CSSParser::createKeyframesRule):
1901         (WebCore::CSSParser::createStyleRule):
1902         (WebCore::CSSParser::createFontFaceRule):
1903         (WebCore::CSSParser::addNamespace):
1904         (WebCore::CSSParser::createVariablesRule):
1905         * css/CSSParser.h:
1906
1907 2009-12-02  Yusuke Sato  <yusukes@chromium.org>
1908
1909         Reviewed by Dan Bernstein.
1910
1911         Safari/Chromium for Windows fails to load CJK WebFonts
1912         https://bugs.webkit.org/show_bug.cgi?id=31804
1913         
1914         * platform/graphics/opentype/OpenTypeUtilities.cpp:
1915         (WebCore::renameAndActivateFont): Load a remote font even if the font has 2 or more faces.
1916
1917 2009-12-02  Avi Drissman  <avi@chromium.org>
1918
1919         Reviewed by Darin Fisher.
1920
1921         Chromium: Need tickmarks in scrollbar
1922         https://bugs.webkit.org/show_bug.cgi?id=32069
1923
1924         * WebCore.gyp/WebCore.gyp:
1925         * WebCore.gypi:
1926         * platform/chromium/ScrollbarThemeChromiumMac.h: Added.
1927         * platform/chromium/ScrollbarThemeChromiumMac.mm: Added.
1928
1929 2009-11-13  Timothy Hatcher  <timothy@apple.com>
1930
1931         Expose a function to set the value of an input element on behalf of the user.
1932         This function will dispatch the change event so the page is notified when autofill
1933         happens. Also dispatch a change event when a select element is changed by autofill.
1934
1935         <rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
1936
1937         Reviewed by Darin Adler.
1938
1939         * WebCore.xcodeproj/project.pbxproj: Added the DOMHTMLInputElementPrivate.h header.
1940         * bindings/objc/DOMHTML.mm:
1941         (-[DOMHTMLSelectElement _activateItemAtIndex:]): Call setSelectedIndexByUser instead so
1942         a change event is fired. This method is called by Safari autofill.
1943         * dom/Document.cpp:
1944         (WebCore::Document::setFocusedNode): Use dispatchFormControlChangeEvent instead
1945         of dispatching the change event directly to be consistent.
1946         * html/HTMLFormControlElement.cpp:
1947         (WebCore::HTMLInputElement::setValueForUser): Added. Calls setValue with the sendChangeEvent
1948         (WebCore::HTMLInputElement::setValue): Added the optional sendChangeEvent argument. Mimics setChecked.
1949         * html/HTMLInputElement.h:
1950         * html/HTMLInputElement.idl: Added setValueForUser for non-JS languages.
1951         * html/InputElement.h: Added setValueForUser.
1952
1953 2009-12-02  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1954
1955         Reviewed by Timothy Hatcher.
1956
1957         Web Inspector: DOM tree selection disappears upon page refresh.
1958
1959         https://bugs.webkit.org/show_bug.cgi?id=31142
1960
1961         Test: inspector/elements-panel-selection-on-refresh.html
1962
1963         * inspector/InjectedScriptHost.cpp:
1964         (WebCore::InjectedScriptHost::pushNodeByPathToFrontend):
1965         * inspector/InjectedScriptHost.h:
1966         * inspector/InjectedScriptHost.idl:
1967         * inspector/InspectorBackend.h:
1968         * inspector/InspectorController.cpp:
1969         (WebCore::InspectorController::close):
1970         (WebCore::InspectorController::releaseDOMAgent):
1971         (WebCore::InspectorController::resetScriptObjects):
1972         * inspector/InspectorDOMAgent.cpp:
1973         (WebCore::InspectorDOMAgent::~InspectorDOMAgent):
1974         (WebCore::InspectorDOMAgent::reset):
1975         (WebCore::InspectorDOMAgent::setDocument):
1976         (WebCore::InspectorDOMAgent::pushDocumentToFrontend):
1977         (WebCore::InspectorDOMAgent::nodeForPath):
1978         (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
1979         * inspector/InspectorDOMAgent.h:
1980         * inspector/front-end/DOMAgent.js:
1981         (WebInspector.DOMNode.prototype._renumber):
1982         (WebInspector.DOMAgent.prototype._setDocument):
1983         * inspector/front-end/ElementsPanel.js:
1984         (WebInspector.ElementsPanel.prototype.reset):
1985         (WebInspector.ElementsPanel.prototype.setDocument.selectDefaultNode):
1986         (WebInspector.ElementsPanel.prototype.setDocument.selectLastSelectedNode):
1987         (WebInspector.ElementsPanel.prototype.setDocument):
1988         * inspector/front-end/InjectedScript.js:
1989         (InjectedScript.pushNodeByPathToFrontend):
1990         * inspector/front-end/InjectedScriptAccess.js:
1991
1992 2009-12-01  Dave Hyatt  <hyatt@apple.com>
1993
1994         Reviewed by Dan Bernstein.
1995
1996         https://bugs.webkit.org/show_bug.cgi?id=32045, make sure escape sequences work with
1997         all the @-rules we support.  When escape sequences are present, the lexical scanner
1998         just returns a generic token name: ATKEYWORD.  We have to process the escape sequences
1999         and then recheck against the rules we support with the final processed name.  If we
2000         find a match, we mutate the token value to the appropriate rule name token, e.g.,
2001         NAMESPACE_SYM.
2002
2003         Added fast/css/namespaces/namespaces-escapes.xml
2004
2005         * css/CSSParser.cpp:
2006         (WebCore::CSSParser::lex):
2007         (WebCore::CSSParser::recheckAtKeyword):
2008         (WebCore::CSSParser::text):
2009         * css/CSSParser.h:
2010
2011 2009-12-02  Anton Muhin  <antonm@chromium.org>
2012
2013         Reviewed by Adam Barth.:w
2014
2015         Allow to skip thread checks when accessing DOMDataStore for processes
2016         which run V8 in single thread mode.
2017         https://bugs.webkit.org/show_bug.cgi?id=31877
2018
2019         Should be covered by buildbots.
2020
2021         * bindings/v8/V8DOMMap.cpp:
2022         (WebCore::getDOMDataStore):
2023         (WebCore::enableFasterDOMStoreAccess):
2024         (WebCore::getDOMNodeMap):
2025         (WebCore::getDOMObjectMap):
2026         (WebCore::getActiveDOMObjectMap):
2027         (WebCore::getDOMSVGElementInstanceMap):
2028         (WebCore::getDOMSVGObjectWithContextMap):
2029         * bindings/v8/V8DOMMap.h:
2030
2031 2009-12-02  Yury Semikhatsky  <yurys@chromium.org>
2032
2033         Reviewed by Pavel Feldman.
2034
2035         Code clean up: remove ScriptObjectQuarantine.* as a whole.
2036
2037         https://bugs.webkit.org/show_bug.cgi?id=32060
2038
2039         * GNUmakefile.am:
2040         * WebCore.gypi:
2041         * WebCore.pro:
2042         * WebCore.vcproj/WebCore.vcproj:
2043         * WebCore.xcodeproj/project.pbxproj:
2044         * WebCoreSources.bkl:
2045         * bindings/js/JSBindingsAllInOne.cpp:
2046         * bindings/js/ScriptObjectQuarantine.cpp: Removed.
2047         * bindings/js/ScriptObjectQuarantine.h: Removed.
2048         * bindings/js/ScriptValue.cpp:
2049         (WebCore::ScriptValue::quarantineValue):
2050         * bindings/js/ScriptValue.h:
2051         * bindings/v8/ScriptObjectQuarantine.cpp: Removed.
2052         * bindings/v8/ScriptObjectQuarantine.h: Removed.
2053         * bindings/v8/ScriptValue.h:
2054         (WebCore::ScriptValue::quarantineValue):
2055         * inspector/ConsoleMessage.cpp:
2056         (WebCore::ConsoleMessage::ConsoleMessage):
2057         * inspector/InspectorController.cpp:
2058         * inspector/InspectorDatabaseResource.cpp:
2059         (WebCore::InspectorDatabaseResource::bind):
2060         * inspector/InspectorFrontend.cpp:
2061
2062 2009-12-02  Fumitoshi Ukai  <ukai@chromium.org>
2063
2064         Reviewed by Alexey Proskuryakov.
2065
2066         WebSocket handshake check query component of URL
2067         https://bugs.webkit.org/show_bug.cgi?id=31617
2068
2069         Tests: websocket/tests/url-with-credential.html
2070                websocket/tests/url-with-empty-query.html
2071                websocket/tests/url-with-fragment.html
2072                websocket/tests/url-with-query-for-no-query.html
2073                websocket/tests/url-with-query.html
2074
2075         * platform/KURLGoogle.cpp:
2076         (WebCore::KURL::query): returns a null if query is not specified and returns an empty if query is specified but empty.
2077         * websockets/WebSocketHandshake.cpp:
2078         (WebCore::resourceName): added. add query component to path if specified.
2079         (WebCore::WebSocketHandshake::clientLocation):
2080         (WebCore::WebSocketHandshake::clientHandshakeMessage):
2081
2082 2009-12-01  David Levin  <levin@chromium.org>
2083
2084         Reviewed by Eric Seidel.
2085
2086         Incorrect code in WebGLRenderingContext.cpp
2087         https://bugs.webkit.org/show_bug.cgi?id=32046
2088
2089         Fix incorrect code that happened to work. != has higher precendence than &.
2090         The simplest fix is to remove the "!= 0" which violates WebKit style
2091         guidelines anyway.
2092
2093         Also added periods to few comments in the same function.
2094
2095         * html/canvas/WebGLRenderingContext.cpp:
2096         (WebCore::WebGLRenderingContext::validateIndexArray):
2097
2098 2009-12-01  Kent Tamura  <tkent@chromium.org>
2099
2100         Reviewed by Darin Adler.
2101
2102         Change [Reflect] to [ConvertNullToNullString, Reflect] for min, max,
2103         pattern and step attributes of HTMLInputElement.
2104         https://bugs.webkit.org/show_bug.cgi?id=31708
2105
2106         * html/HTMLInputElement.idl:
2107
2108 2009-12-01  Chris Fleizach  <cfleizach@apple.com>
2109
2110         Reviewed by Darin Adler.
2111
2112         WAI-ARIA: implement support for ARIA drag and drop
2113         https://bugs.webkit.org/show_bug.cgi?id=32007
2114
2115         Test: platform/mac/accessibility/aria-drag-drop.html
2116
2117         * accessibility/AccessibilityObject.h:
2118         (WebCore::AccessibilityObject::supportsARIADropping):
2119         (WebCore::AccessibilityObject::supportsARIADragging):
2120         (WebCore::AccessibilityObject::isARIAGrabbed):
2121         (WebCore::AccessibilityObject::setARIAGrabbed):
2122         (WebCore::AccessibilityObject::determineARIADropEffects):
2123         * accessibility/AccessibilityRenderObject.cpp:
2124         (WebCore::AccessibilityRenderObject::supportsARIADropping):
2125         (WebCore::AccessibilityRenderObject::supportsARIADragging):
2126         (WebCore::AccessibilityRenderObject::isARIAGrabbed):
2127         (WebCore::AccessibilityRenderObject::setARIAGrabbed):
2128         (WebCore::AccessibilityRenderObject::determineARIADropEffects):
2129         * accessibility/AccessibilityRenderObject.h:
2130         * accessibility/mac/AccessibilityObjectWrapper.mm:
2131         (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
2132         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
2133         (-[AccessibilityObjectWrapper accessibilityIsAttributeSettable:]):
2134         (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
2135         * html/HTMLAttributeNames.in:
2136
2137 2009-12-01  Adam Barth  <abarth@webkit.org>
2138
2139         https://bugs.webkit.org/show_bug.cgi?id=21288
2140
2141         Unreviewed port of @sandbox to V8.
2142
2143         * bindings/v8/ScriptController.cpp:
2144         (WebCore::ScriptController::isEnabled):
2145         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2146         (WebCore::createWindow):
2147
2148 2009-12-01  Patrik Persson  <patrik.j.persson@ericsson.com>
2149
2150         Reviewed by Darin Adler.
2151
2152         Implement HTML5 sandbox attribute for iframes.
2153         http://www.w3.org/TR/html5/text-level-semantics.html#attr-iframe-sandbox
2154         https://bugs.webkit.org/show_bug.cgi?id=21288
2155
2156         Tests: fast/frames/sandboxed-iframe-attribute-parsing.html
2157                fast/frames/sandboxed-iframe-forms.html
2158                fast/frames/sandboxed-iframe-navigation-allowed.html
2159                fast/frames/sandboxed-iframe-navigation-parent.html
2160                fast/frames/sandboxed-iframe-navigation-targetlink.html
2161                fast/frames/sandboxed-iframe-navigation-windowopen.html
2162                fast/frames/sandboxed-iframe-plugins.html
2163                fast/frames/sandboxed-iframe-scripting.html
2164                fast/frames/sandboxed-iframe-storage.html
2165                http/tests/security/sandboxed-iframe-document-cookie.html
2166                http/tests/security/sandboxed-iframe-modify-self.html
2167                http/tests/security/xss-DENIED-sandboxed-iframe.html
2168                http/tests/xmlhttprequest/access-control-sandboxed-iframe-allow.html
2169                http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied-without-wildcard.html
2170                http/tests/xmlhttprequest/access-control-sandboxed-iframe-denied.html
2171
2172         * bindings/js/JSDOMWindowCustom.cpp: sandboxing navigation
2173         (WebCore::createWindow):
2174         * bindings/js/ScriptController.cpp: sandboxing scripts
2175         (WebCore::ScriptController::isEnabled):
2176         * dom/Document.cpp:
2177         (WebCore::Document::processHttpEquiv):
2178         (WebCore::Document::cookie): raise exception when accessed from sandbox
2179         (WebCore::Document::setCookie): raise exception when accessed from sandbox
2180         (WebCore::Document::initSecurityContext): updae sandbox status
2181         (WebCore::Document::updateSandboxFlags):
2182         * dom/Document.h:
2183         * dom/Document.idl:
2184         * html/HTMLAppletElement.cpp: sandboxing applets
2185         (WebCore::HTMLAppletElement::createRenderer):
2186         (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
2187         (WebCore::HTMLAppletElement::canEmbedJava):
2188         * html/HTMLAppletElement.h:
2189         * html/HTMLAttributeNames.in:
2190         * html/HTMLFrameOwnerElement.cpp: management of sandbox flags as stated in attribute
2191         (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement):
2192         (WebCore::HTMLFrameOwnerElement::setSandboxFlags):
2193         * html/HTMLFrameOwnerElement.h:
2194         (WebCore::HTMLFrameOwnerElement::sandboxFlags):
2195         * html/HTMLIFrameElement.cpp: sandbox attribute parsing
2196         (WebCore::parseSandboxAttribute):
2197         (WebCore::HTMLIFrameElement::parseMappedAttribute):
2198         * html/HTMLIFrameElement.idl:
2199         * inspector/InspectorController.cpp:
2200         (WebCore::InspectorController::getCookies):
2201         * loader/CrossOriginAccessControl.cpp:
2202         (WebCore::passesAccessControlCheck):
2203         * loader/FrameLoader.cpp:
2204         (WebCore::FrameLoader::FrameLoader):
2205         (WebCore::FrameLoader::init):
2206         (WebCore::FrameLoader::submitForm): sandboxing forms
2207         (WebCore::FrameLoader::requestObject): sandboxing plugins
2208         (WebCore::FrameLoader::shouldAllowNavigation): sandboxing navigation
2209         (WebCore::FrameLoader::updateSandboxFlags): propagation of sandbox flags
2210         * loader/FrameLoader.h:
2211         (WebCore::FrameLoader::ownerElementSandboxFlagsChanged):
2212         (WebCore::FrameLoader::isSandboxed):
2213         (WebCore::FrameLoader::sandboxFlags):
2214         * loader/FrameLoaderTypes.h:
2215         (WebCore::):
2216         * page/DOMWindow.cpp: disable storage and databases in sandboxed frames
2217         (WebCore::DOMWindow::sessionStorage):
2218         (WebCore::DOMWindow::localStorage):
2219         (WebCore::DOMWindow::openDatabase):
2220         * page/SecurityOrigin.cpp: added sandboxing status
2221         (WebCore::SecurityOrigin::SecurityOrigin):
2222         (WebCore::SecurityOrigin::canAccess):
2223         (WebCore::SecurityOrigin::canRequest):
2224         (WebCore::SecurityOrigin::toString):
2225         * page/SecurityOrigin.h:
2226         (WebCore::SecurityOrigin::setSandboxFlags):
2227         (WebCore::SecurityOrigin::isSandboxed):
2228         (WebCore::SecurityOrigin::canAccessDatabase):
2229         (WebCore::SecurityOrigin::canAccessStorage):
2230         * websockets/WebSocketChannel.cpp:
2231         (WebCore::WebSocketChannel::didReceiveData):
2232
2233 2009-12-01  Chris Fleizach  <cfleizach@apple.com>
2234
2235         Reviewed by David Kilzer.
2236
2237         ARIA: support a way to create a static text object
2238         https://bugs.webkit.org/show_bug.cgi?id=32030
2239
2240         Test: accessibility/aria-text-role.html
2241
2242         * accessibility/AccessibilityObject.cpp:
2243         (WebCore::createARIARoleMap):
2244         * accessibility/AccessibilityRenderObject.cpp:
2245         (WebCore::AccessibilityRenderObject::stringValue):
2246         (WebCore::AccessibilityRenderObject::isDescendantOfBarrenParent):
2247         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2248         (WebCore::AccessibilityRenderObject::text):
2249         * accessibility/AccessibilityRenderObject.h:
2250
2251 2009-12-01  Oliver Hunt  <oliver@apple.com>
2252
2253         Reviewed by Maciej Stachowiak.
2254
2255         Inspector crashes when collecting on every allocation
2256         https://bugs.webkit.org/show_bug.cgi?id=32044
2257
2258         The crash is caused by the prototype wrapper object getting collected
2259         when allocating the object that is going to use it as a prototype.
2260         Because the only reference to the prototype wrapper is through the
2261         new object's Structure it does not get marked automatically.
2262
2263         * bindings/js/JSInspectedObjectWrapper.cpp:
2264         (WebCore::JSInspectedObjectWrapper::wrap):
2265         * bindings/js/JSInspectorCallbackWrapper.cpp:
2266         (WebCore::JSInspectorCallbackWrapper::wrap):
2267
2268 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2269
2270         Reviewed by Simon Fraser.
2271
2272         Add SVG animation test framework with 'snapshot' functionality
2273         https://bugs.webkit.org/show_bug.cgi?id=31897
2274
2275         Add 'sampleSVGAnimationForElementAtTime' method to the LayoutTestController,
2276         for the use within the new SVG animation test framework (LayoutTests/svg/animations/)
2277
2278         layoutTestController.sampleAnimationAtTime(<svg animation id>, <absolute time>, <svg element id>);
2279         to sample a svg animateMotion/animateColor/animate/set element at certain times.
2280
2281         After the desired SVG animation starts and calling the method above, it's immediately forwarded to
2282         the desired sampling time. After JS returns from the 'sampleSVGAnimationForElementAtTime' method
2283         a callback is fired used to sample the animation value at the target time. It's modelled similar
2284         to the CSS animation/transition testing framework, inspired by
2285         LayoutTests/animations/animation-test-helpers.js.
2286
2287         Though it has been extended to integrate within the fast/js/js-test-* framework, that's used for
2288         the SVG dynamic-updates tests, to simplify test creation, by utilizing script-tests/* only.
2289
2290         Adding a simple testcase testing the DRT methods, it will soon be extended to test animVal/baseVal
2291         interaction, while animating.
2292
2293         Test: svg/animations/animVal-basics.html
2294
2295         * WebCore.base.exp:
2296         * WebCore.xcodeproj/project.pbxproj:
2297         * svg/SVGDocumentExtensions.cpp:
2298         (WebCore::SVGDocumentExtensions::sampleAnimationAtTime):
2299         * svg/SVGDocumentExtensions.h:
2300         * svg/animation/SMILTimeContainer.cpp:
2301         (WebCore::SMILTimeContainer::SMILTimeContainer):
2302         (WebCore::SMILTimeContainer::sampleAnimationAtTime):
2303         (WebCore::SMILTimeContainer::updateAnimations):
2304         * svg/animation/SMILTimeContainer.h:
2305
2306 2009-12-01  Jens Alfke  <snej@chromium.org>
2307
2308         Reviewed by Darin Adler.
2309
2310         Add convenience methods to Element and QualifiedName that take
2311         char* instead of AtomicString, in preparation for removing the
2312         implicit conversion between the two types (30187).
2313         https://bugs.webkit.org/show_bug.cgi?id=31749
2314
2315         * dom/Element.cpp:
2316         (WebCore::Element::setCStringAttribute):  Equivalent to setAttribute.
2317         * dom/Element.h:
2318         * dom/QualifiedName.cpp:
2319         (WebCore::QualifiedName::init):  Shared impl of both constructors
2320         (WebCore::QualifiedName::QualifiedName):  New c'tor taking char*.
2321         * dom/QualifiedName.h:
2322         * platform/network/HTTPHeaderMap.cpp:
2323         (WebCore::CaseFoldingCStringTranslator):  Enables lookup by C string
2324         (WebCore::HTTPHeaderMap::get):  New variant that takes C string
2325         (WebCore::HTTPHeaderMap::contains):  New variant that takes C string
2326         (WebCore::HTTPHeaderMap::add):  New variant that takes C string
2327         * platform/network/HTTPHeaderMap.h:
2328         (WebCore::HTTPHeaderMap::get):
2329         (WebCore::HTTPHeaderMap::add):
2330         * platform/network/ResourceRequestBase.cpp:
2331         (WebCore::ResourceRequestBase::httpHeaderField):  New variant that takes C string
2332         * platform/network/ResourceRequestBase.h:
2333         (WebCore::ResourceRequestBase::setHTTPHeaderField):  Use symbolic names for headers
2334         * platform/network/ResourceResponseBase.cpp:
2335         (WebCore::ResourceResponseBase::httpHeaderField):  New variant that takes C string
2336         * platform/network/ResourceResponseBase.h:
2337
2338 2009-12-01  Alexey Proskuryakov  <ap@apple.com>
2339
2340         More Windows build fix.
2341
2342         * platform/network/cf/CredentialStorageCFNet.cpp:
2343         (WebCore::CredentialStorage::getFromPersistentStorage):
2344
2345 2009-12-01  Alexey Proskuryakov  <ap@apple.com>
2346
2347         Windows build fix.
2348
2349         * platform/network/cf/CredentialStorageCFNet.cpp: Include RetainPtr.h.
2350
2351 2009-12-01  Alexey Proskuryakov  <ap@apple.com>
2352
2353         Reviewed by Darin Adler.
2354
2355         https://bugs.webkit.org/show_bug.cgi?id=32036
2356         Implement CredentialStorage::getFromPersistentStorage for CFNetwork
2357
2358         * platform/network/cf/CredentialStorageCFNet.cpp:
2359         (WebCore::CredentialStorage::getFromPersistentStorage):
2360
2361 2009-12-01  Daniel Bates  <dbates@webkit.org>
2362
2363         Reviewed by Pavel Feldman.
2364
2365         https://bugs.webkit.org/show_bug.cgi?id=32001
2366
2367         Added missing localized strings (that I left out of the patch for bug #21554):
2368         %d × %d pixels
2369         %d × %d pixels (Natural: %d × %d pixels)
2370
2371         Also, changed formatting of these stings to conform with existing ones (added
2372         a space on both sides of the multiply sign).
2373
2374         * English.lproj/localizedStrings.js: Added stings.
2375         * inspector/front-end/ElementsTreeOutline.js:
2376         (WebInspector.ElementsTreeElement.prototype.createTooltipForImageNode):
2377
2378 2009-12-01  Dave Hyatt  <hyatt@apple.com>
2379
2380         Reviewed by Simon Fraser.
2381
2382         Fix for bug 32032, empty namespaces should be allowed in @namespace directives in CSS.
2383
2384         Added fast/css/namespaces/namespaces-empty.xml
2385
2386         * css/CSSStyleSheet.cpp:
2387         (WebCore::CSSStyleSheet::addNamespace):
2388         (WebCore::CSSStyleSheet::determineNamespace):
2389
2390 2009-12-01  Joseph Pecoraro  <joepeck@webkit.org>
2391
2392         Reviewed by Timothy Hatcher.
2393
2394         Web Inspector: Escape key in the Search Field should be more User Friendly
2395         https://bugs.webkit.org/show_bug.cgi?id=32005
2396
2397         * inspector/front-end/inspector.js:
2398         (WebInspector.loaded): add mousedown listener on the search field
2399         (WebInspector.searchFieldManualFocus): user clicked to focus on the search field
2400         (WebInspector.searchKeyDown): handle escape
2401
2402 2009-12-01  Dave Hyatt  <hyatt@apple.com>
2403
2404         Reviewed by David Kilzer.
2405
2406         @namespace directives need to use "maybe_space" in the "maybe_ns_prefix" portion of the grammar to match
2407         the spec.  Not doing so prevent comments from being used immmediately after the namespace prefix.
2408
2409         Added fast/css/namespaces-comments.xml
2410
2411         * css/CSSGrammar.y:
2412
2413 2009-12-01  Yael Aharon  <yael.aharon@nokia.com>
2414
2415         Reviewed by Timothy Hatcher.
2416
2417         Reloading WebInspector from context menu is closing it instead of reloading.
2418         https://bugs.webkit.org/show_bug.cgi?id=32004
2419
2420         When reloading WebInspector, don't delete its m_page.
2421
2422         * inspector/InspectorController.cpp:
2423         (WebCore::InspectorController::close):
2424
2425 2009-12-01  Steve Block  <steveblock@google.com>
2426
2427         Reviewed by Dimitri Glazkov.
2428
2429         Adds V8 bindings for Geolocation.
2430         https://bugs.webkit.org/show_bug.cgi?id=30206
2431
2432         Also adds Geolocation files to Chrome build files.
2433
2434         * WebCore.gyp/WebCore.gyp: Modified. Corrects list of Geolocation IDL files.
2435         * WebCore.gypi: Modified. Adds Geolocation files.
2436         * bindings/v8/DOMObjectsInclude.h: Modified. Adds Geolocation includes.
2437         * bindings/v8/DerivedSourcesAllInOne.cpp: Modified. Adds Geolocation files.
2438         * bindings/v8/V8Index.cpp: Modified. Includes Geolocation generated headers.
2439         * bindings/v8/V8Index.h: Modified. Adds Geolocation types to DOM_OBJECT_TYPES.
2440         * bindings/v8/custom/V8CoordinatesCustom.cpp: Added. Handles optional properties.
2441         * bindings/v8/custom/V8CustomBinding.h: Modified. Declares callbacks and getters.
2442         * bindings/v8/custom/V8CustomPositionCallback.cpp: Added.
2443         (WebCore::V8CustomPositionCallback::V8CustomPositionCallback): Added. Constructor.
2444         (WebCore::V8CustomPositionCallback::~V8CustomPositionCallback): Added. Destructor.
2445         (WebCore::V8CustomPositionCallback::handleEvent): Added. Invokes callback.
2446         * bindings/v8/custom/V8CustomPositionCallback.h: Added.
2447         (WebCore::V8CustomPositionCallback::create): Added. Factory method.
2448         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp: Added.
2449         (WebCore::V8CustomPositionErrorCallback::V8CustomPositionErrorCallback): Added. Constructor.
2450         (WebCore::V8CustomPositionErrorCallback::~V8CustomPositionErrorCallback): Added. Destructor.
2451         (WebCore::V8CustomPositionErrorCallback::handleEvent): Added. Invokes callback.
2452         * bindings/v8/custom/V8CustomPositionErrorCallback.h: Added.
2453         (WebCore::V8CustomPositionErrorCallback::create): Added. Factory method.
2454         * bindings/v8/custom/V8GeolocationCustom.cpp: Added.
2455         (WebCore::throwTypeMismatchException): Added. Throws a type mismatch error.
2456         (WebCore::createPositionCallback): Added. Handles type checking for successCallback argument.
2457         (WebCore::createPositionErrorCallback): Added. Handles type checking for errorCallback argument.
2458         (WebCore::createPositionOptions): Added. Handles type checking for positionOptions argument.
2459
2460 2009-12-01  Yury Semikhatsky  <yurys@chromium.org>
2461
2462         Reviewed by Adam Barth.
2463
2464         Provide a way to get ScriptState for the inspected page.
2465
2466         https://bugs.webkit.org/show_bug.cgi?id=32020
2467
2468         * bindings/v8/ScriptController.cpp:
2469         (WebCore::ScriptController::mainWorldScriptState):
2470         * bindings/v8/ScriptController.h:
2471         * bindings/v8/ScriptState.cpp:
2472         (WebCore::scriptStateFromPage):
2473
2474 2009-12-01  Chris Marrin  <cmarrin@apple.com>
2475
2476         Reviewed by Adam Roben.
2477
2478         Changed mallocs to fastMallocs and frees to fastFrees in GraphicsContext3D. Also added error returns
2479         https://bugs.webkit.org/show_bug.cgi?id=30778
2480
2481         * platform/graphics/mac/GraphicsContext3DMac.cpp:
2482         (WebCore::GraphicsContext3D::getProgramInfoLog):
2483         (WebCore::GraphicsContext3D::getShaderInfoLog):
2484         (WebCore::GraphicsContext3D::getShaderSource):
2485         (WebCore::imageToTexture):
2486
2487 2009-12-01  Mads Ager  <ager@chromium.org>
2488
2489         Reviewed by Eric Seidel.
2490
2491         [V8] Don't crash in DOMWindow event getter in OOM situations
2492         https://bugs.webkit.org/show_bug.cgi?id=32017
2493
2494         Add missing null handle checks in DOMWindow event property
2495         accessors.  V8Proxy::context(frame) can return a null handle in
2496         OOM situations either if failing to initialize a context or if an
2497         OOM is handled gracefully and javascript is disabled.
2498
2499         No new tests because we don't have a good way to test
2500         out-of-memory bugs.
2501
2502         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2503         (WebCore::ACCESSOR_GETTER):
2504         (WebCore::ACCESSOR_SETTER):
2505
2506 2009-12-01  Chris Marrin  <cmarrin@apple.com>
2507
2508         Reviewed by Oliver Hunt.
2509
2510         Updated HTMLCanvasElement to accept "experimental-webgl" as the context name.
2511         https://bugs.webkit.org/show_bug.cgi?id=31672
2512
2513         * html/HTMLCanvasElement.cpp:
2514         (WebCore::HTMLCanvasElement::getContext):
2515
2516 2009-12-01  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
2517
2518         Not reviewed: chromium build fix, added missing import.
2519
2520         * inspector/InspectorFrontendHost.cpp:
2521
2522 2009-12-01  Pavel Feldman  <pfeldman@chromium.org>
2523
2524         Not reviewed: fix windows build via unexcluding generated files from
2525         project.
2526
2527         * WebCore.vcproj/WebCore.vcproj:
2528
2529 2009-12-01  Mark Rowe  <mrowe@apple.com>
2530
2531         Stop copying IDL files in to the WebCore framework wrapper.
2532
2533         * WebCore.xcodeproj/project.pbxproj:
2534
2535 2009-12-01  Mark Rowe  <mrowe@apple.com>
2536
2537         Fix the Tiger build by making the Xcode project compatible with Xcode 2.4.
2538
2539         This was probably broken by hand-editing the project file as Xcode itself
2540         knows how to keep project files to a backwards-compatible subset of its format.
2541
2542         * WebCore.xcodeproj/project.pbxproj:
2543
2544 2009-12-01  Pavel Feldman  <pfeldman@chromium.org>
2545
2546         Not reviewed: windows build fix (bad vcproj in r51528).
2547
2548         * WebCore.vcproj/WebCore.vcproj:
2549
2550 2009-11-27  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
2551
2552         Reviewed by Timothy Hatcher.
2553
2554         Web Inspector: Split InspectorBackend into three parts: backend,
2555         injected script host and frontend host.
2556         
2557         https://bugs.webkit.org/show_bug.cgi?id=31888
2558
2559         * DerivedSources.make:
2560         * GNUmakefile.am:
2561         * WebCore.gypi:
2562         * WebCore.pro:
2563         * WebCore.vcproj/WebCore.vcproj:
2564         * WebCore.xcodeproj/project.pbxproj:
2565         * WebCoreSources.bkl:
2566         * bindings/js/JSBindingsAllInOne.cpp:
2567         * bindings/js/JSInspectorBackendCustom.cpp: Removed.
2568         * bindings/js/JSInspectorFrontendHostCustom.cpp: Added.
2569         (WebCore::JSInspectorFrontendHost::search):
2570         (WebCore::JSInspectorFrontendHost::setting):
2571         (WebCore::JSInspectorFrontendHost::setSetting):
2572         * bindings/js/ScriptObject.cpp:
2573         (WebCore::ScriptGlobalObject::set):
2574         * bindings/js/ScriptObject.h:
2575         * bindings/v8/DOMObjectsInclude.h:
2576         * bindings/v8/DerivedSourcesAllInOne.cpp:
2577         * bindings/v8/ScriptObject.cpp:
2578         (WebCore::ScriptGlobalObject::set):
2579         * bindings/v8/ScriptObject.h:
2580         * bindings/v8/V8Index.cpp:
2581         * bindings/v8/V8Index.h:
2582         * bindings/v8/custom/V8CustomBinding.h:
2583         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp: Added.
2584         (WebCore::CALLBACK_FUNC_DECL):
2585         * bindings/v8/custom/V8InspectorBackendCustom.cpp: Removed.
2586         * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp: Added.
2587         (WebCore::CALLBACK_FUNC_DECL):
2588         * inspector/InjectedScriptHost.cpp: Added.
2589         (WebCore::InjectedScriptHost::InjectedScriptHost):
2590         (WebCore::InjectedScriptHost::~InjectedScriptHost):
2591         (WebCore::InjectedScriptHost::copyText):
2592         (WebCore::InjectedScriptHost::nodeForId):
2593         (WebCore::InjectedScriptHost::wrapObject):
2594         (WebCore::InjectedScriptHost::unwrapObject):
2595         (WebCore::InjectedScriptHost::pushNodePathToFrontend):
2596         (WebCore::InjectedScriptHost::addNodesToSearchResult):
2597         (WebCore::InjectedScriptHost::currentCallFrame):
2598         (WebCore::InjectedScriptHost::databaseForId):
2599         (WebCore::InjectedScriptHost::selectDatabase):
2600         (WebCore::InjectedScriptHost::selectDOMStorage):
2601         (WebCore::InjectedScriptHost::reportDidDispatchOnInjectedScript):
2602         (WebCore::InjectedScriptHost::inspectorDOMAgent):
2603         (WebCore::InjectedScriptHost::inspectorFrontend):
2604         * inspector/InjectedScriptHost.h: Added.
2605         (WebCore::InjectedScriptHost::create):
2606         (WebCore::InjectedScriptHost::inspectorController):
2607         (WebCore::InjectedScriptHost::disconnectController):
2608         * inspector/InjectedScriptHost.idl: Added.
2609         * inspector/InspectorBackend.cpp:
2610         (WebCore::InspectorBackend::InspectorBackend):
2611         (WebCore::InspectorBackend::storeLastActivePanel):
2612         (WebCore::InspectorBackend::toggleNodeSearch):
2613         (WebCore::InspectorBackend::resourceTrackingEnabled):
2614         (WebCore::InspectorBackend::debuggerEnabled):
2615         (WebCore::InspectorBackend::enableDebugger):
2616         (WebCore::InspectorBackend::disableDebugger):
2617         (WebCore::InspectorBackend::addBreakpoint):
2618         (WebCore::InspectorBackend::updateBreakpoint):
2619         (WebCore::InspectorBackend::removeBreakpoint):
2620         (WebCore::InspectorBackend::pauseInDebugger):
2621         (WebCore::InspectorBackend::resumeDebugger):
2622         (WebCore::InspectorBackend::stepOverStatementInDebugger):
2623         (WebCore::InspectorBackend::stepIntoStatementInDebugger):
2624         (WebCore::InspectorBackend::stepOutOfFunctionInDebugger):
2625         (WebCore::InspectorBackend::pauseOnExceptions):
2626         (WebCore::InspectorBackend::setPauseOnExceptions):
2627         (WebCore::InspectorBackend::profilerEnabled):
2628         (WebCore::InspectorBackend::enableProfiler):
2629         (WebCore::InspectorBackend::disableProfiler):
2630         (WebCore::InspectorBackend::startProfiling):
2631         (WebCore::InspectorBackend::stopProfiling):
2632         (WebCore::InspectorBackend::getProfileHeaders):
2633         (WebCore::InspectorBackend::getProfile):
2634         (WebCore::InspectorBackend::currentCallFrame):
2635         (WebCore::InspectorBackend::highlightDOMNode):
2636         (WebCore::InspectorBackend::hideDOMNodeHighlight):
2637         (WebCore::InspectorBackend::getCookies):
2638         (WebCore::InspectorBackend::deleteCookie):
2639         (WebCore::InspectorBackend::didEvaluateForTestInFrontend):
2640         (WebCore::InspectorBackend::nodeForId):
2641         * inspector/InspectorBackend.h:
2642         (WebCore::InspectorBackend::create):
2643         * inspector/InspectorBackend.idl:
2644         * inspector/InspectorController.cpp:
2645         (WebCore::InspectorController::InspectorController):
2646         (WebCore::InspectorController::~InspectorController):
2647         (WebCore::InspectorController::inspectedPageDestroyed):
2648         (WebCore::InspectorController::windowScriptObjectAvailable):
2649         * inspector/InspectorController.h:
2650         (WebCore::InspectorController::inspectorFrontendHost):
2651         (WebCore::InspectorController::injectedScriptHost):
2652         * inspector/InspectorFrontendHost.cpp: Added.
2653         (WebCore::InspectorFrontendHost::InspectorFrontendHost):
2654         (WebCore::InspectorFrontendHost::~InspectorFrontendHost):
2655         (WebCore::InspectorFrontendHost::loaded):
2656         (WebCore::InspectorFrontendHost::attach):
2657         (WebCore::InspectorFrontendHost::detach):
2658         (WebCore::InspectorFrontendHost::closeWindow):
2659         (WebCore::InspectorFrontendHost::windowUnloading):
2660         (WebCore::InspectorFrontendHost::setAttachedWindowHeight):
2661         (WebCore::InspectorFrontendHost::moveWindowBy):
2662         (WebCore::InspectorFrontendHost::localizedStringsURL):
2663         (WebCore::InspectorFrontendHost::hiddenPanels):
2664         (WebCore::InspectorFrontendHost::platform):
2665         (WebCore::InspectorFrontendHost::port):
2666         (WebCore::InspectorFrontendHost::addResourceSourceToFrame):
2667         (WebCore::InspectorFrontendHost::addSourceToFrame):
2668         * inspector/InspectorFrontendHost.h: Added.
2669         (WebCore::InspectorFrontendHost::create):
2670         (WebCore::InspectorFrontendHost::inspectorController):
2671         (WebCore::InspectorFrontendHost::disconnectController):
2672         * inspector/InspectorFrontendHost.idl: Added.
2673         * inspector/front-end/Breakpoint.js:
2674         (WebInspector.Breakpoint.prototype.set condition):
2675         * inspector/front-end/BreakpointsSidebarPane.js:
2676         (WebInspector.BreakpointsSidebarPane.prototype.addBreakpoint):
2677         (WebInspector.BreakpointsSidebarPane.prototype.removeBreakpoint):
2678         (WebInspector.BreakpointsSidebarPane.prototype._breakpointEnableChanged):
2679         * inspector/front-end/ConsoleView.js:
2680         (WebInspector.ConsoleView.prototype.clearMessages):
2681         * inspector/front-end/CookieItemsView.js:
2682         (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
2683         * inspector/front-end/DOMAgent.js:
2684         (WebInspector.DOMAgent.prototype.getChildNodesAsync):
2685         (WebInspector.DOMAgent.prototype.setAttributeAsync):
2686         (WebInspector.DOMAgent.prototype.removeAttributeAsync):
2687         (WebInspector.DOMAgent.prototype.setTextNodeValueAsync):
2688         (WebInspector.Cookies.getCookiesAsync):
2689         (WebInspector.EventListeners.getEventListenersForNodeAsync):
2690         * inspector/front-end/DOMStorage.js:
2691         (WebInspector.DOMStorage.prototype.getEntries):
2692         (WebInspector.DOMStorage.prototype.setItem):
2693         (WebInspector.DOMStorage.prototype.removeItem):
2694         * inspector/front-end/Database.js:
2695         (WebInspector.Database.prototype.getTableNames):
2696         * inspector/front-end/ElementsPanel.js:
2697         (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
2698         (WebInspector.ElementsPanel.prototype.hide):
2699         (WebInspector.ElementsPanel.prototype.reset):
2700         (WebInspector.ElementsPanel.prototype.handleCopyEvent):
2701         (WebInspector.ElementsPanel.prototype._nodeSearchButtonClicked):
2702         * inspector/front-end/ElementsTreeOutline.js:
2703         (WebInspector.ElementsTreeOutline.prototype.set focusedDOMNode.restoreHighlightToHoveredNode):
2704         (WebInspector.ElementsTreeOutline.prototype.set focusedDOMNode):
2705         ():
2706         * inspector/front-end/EventListenersSidebarPane.js:
2707         (WebInspector.EventListenersSidebarPane.prototype):
2708         * inspector/front-end/InjectedScript.js:
2709         (InjectedScript._evaluateAndWrap):
2710         (InjectedScript.performSearch.addNodesToResults):
2711         (InjectedScript.getCallFrames):
2712         (InjectedScript._callFrameForId):
2713         (InjectedScript._clearConsoleMessages):
2714         (InjectedScript._inspectObject):
2715         (InjectedScript._copy):
2716         (InjectedScript._ensureCommandLineAPIInstalled):
2717         (InjectedScript._window):
2718         (InjectedScript._nodeForId):
2719         (InjectedScript._objectForId):
2720         (InjectedScript.pushNodeToFrontend):
2721         (InjectedScript.executeSql):
2722         (InjectedScript.executeSql.errorCallback):
2723         (InjectedScript.executeSql.queryTransaction):
2724         * inspector/front-end/InjectedScriptAccess.js:
2725         (InjectedScriptAccess._installHandler.InjectedScriptAccess.methodName):
2726         (InjectedScriptAccess._installHandler):
2727         * inspector/front-end/InspectorBackendStub.js: Added.
2728         (.WebInspector.InspectorBackendStub):
2729         (.WebInspector.InspectorBackendStub.prototype.wrapCallback):
2730         (.WebInspector.InspectorBackendStub.prototype.platform):
2731         (.WebInspector.InspectorBackendStub.prototype.port):
2732         (.WebInspector.InspectorBackendStub.prototype.closeWindow):
2733         (.WebInspector.InspectorBackendStub.prototype.attach):
2734         (.WebInspector.InspectorBackendStub.prototype.detach):
2735         (.WebInspector.InspectorBackendStub.prototype.storeLastActivePanel):
2736         (.WebInspector.InspectorBackendStub.prototype.clearMessages):
2737         (.WebInspector.InspectorBackendStub.prototype.searchingForNode):
2738         (.WebInspector.InspectorBackendStub.prototype.search):
2739         (.WebInspector.InspectorBackendStub.prototype.toggleNodeSearch):
2740         (.WebInspector.InspectorBackendStub.prototype.setAttachedWindowHeight):
2741         (.WebInspector.InspectorBackendStub.prototype.moveByUnrestricted):
2742         (.WebInspector.InspectorBackendStub.prototype.addResourceSourceToFrame):
2743         (.WebInspector.InspectorBackendStub.prototype.addSourceToFrame):
2744         (.WebInspector.InspectorBackendStub.prototype.getResourceDocumentNode):
2745         (.WebInspector.InspectorBackendStub.prototype.highlightDOMNode):
2746         (.WebInspector.InspectorBackendStub.prototype.hideDOMNodeHighlight):
2747         (.WebInspector.InspectorBackendStub.prototype.inspectedWindow):
2748         (.WebInspector.InspectorBackendStub.prototype.loaded):
2749         (.WebInspector.InspectorBackendStub.prototype.localizedStringsURL):
2750         (.WebInspector.InspectorBackendStub.prototype.windowUnloading):
2751         (.WebInspector.InspectorBackendStub.prototype.hiddenPanels):
2752         (.WebInspector.InspectorBackendStub.prototype.debuggerEnabled):
2753         (.WebInspector.InspectorBackendStub.prototype.enableResourceTracking):
2754         (.WebInspector.InspectorBackendStub.prototype.disableResourceTracking):
2755         (.WebInspector.InspectorBackendStub.prototype.resourceTrackingEnabled):
2756         (.WebInspector.InspectorBackendStub.prototype.enableDebugger):
2757         (.WebInspector.InspectorBackendStub.prototype.disableDebugger):
2758         (.WebInspector.InspectorBackendStub.prototype.addBreakpoint):
2759         (.WebInspector.InspectorBackendStub.prototype.removeBreakpoint):
2760         (.WebInspector.InspectorBackendStub.prototype.updateBreakpoint):
2761         (.WebInspector.InspectorBackendStub.prototype.pauseInDebugger):
2762         (.WebInspector.InspectorBackendStub.prototype.pauseOnExceptions):
2763         (.WebInspector.InspectorBackendStub.prototype.setPauseOnExceptions):
2764         (.WebInspector.InspectorBackendStub.prototype.resumeDebugger):
2765         (.WebInspector.InspectorBackendStub.prototype.profilerEnabled):
2766         (.WebInspector.InspectorBackendStub.prototype.enableProfiler):
2767         (.WebInspector.InspectorBackendStub.prototype.disableProfiler):
2768         (.WebInspector.InspectorBackendStub.prototype.startProfiling):
2769         (.WebInspector.InspectorBackendStub.prototype.stopProfiling):
2770         (.WebInspector.InspectorBackendStub.prototype.getProfileHeaders):
2771         (.WebInspector.InspectorBackendStub.prototype.getProfile):
2772         (.WebInspector.InspectorBackendStub.prototype.takeHeapSnapshot):
2773         (.WebInspector.InspectorBackendStub.prototype.databaseTableNames):
2774         (.WebInspector.InspectorBackendStub.prototype.stepIntoStatementInDebugger):
2775         (.WebInspector.InspectorBackendStub.prototype.stepOutOfFunctionInDebugger):
2776         (.WebInspector.InspectorBackendStub.prototype.stepOverStatementInDebugger):
2777         (.WebInspector.InspectorBackendStub.prototype.setSetting):
2778         (.WebInspector.InspectorBackendStub.prototype.dispatchOnInjectedScript):
2779         (.WebInspector.InspectorBackendStub.prototype.releaseWrapperObjectGroup):
2780         (.WebInspector.InspectorBackendStub.prototype.setting):
2781         * inspector/front-end/InspectorControllerStub.js:
2782         * inspector/front-end/InspectorFrontendHostStub.js: Added.
2783         (.WebInspector.InspectorFrontendHostStub):
2784         (.WebInspector.InspectorFrontendHostStub.prototype.platform):
2785         (.WebInspector.InspectorFrontendHostStub.prototype.port):
2786         (.WebInspector.InspectorFrontendHostStub.prototype.closeWindow):
2787         (.WebInspector.InspectorFrontendHostStub.prototype.attach):
2788         (.WebInspector.InspectorFrontendHostStub.prototype.detach):
2789         (.WebInspector.InspectorFrontendHostStub.prototype.search):
2790         (.WebInspector.InspectorFrontendHostStub.prototype.setAttachedWindowHeight):
2791         (.WebInspector.InspectorFrontendHostStub.prototype.moveWindowBy):
2792         (.WebInspector.InspectorFrontendHostStub.prototype.addResourceSourceToFrame):
2793         (.WebInspector.InspectorFrontendHostStub.prototype.addSourceToFrame):
2794         (.WebInspector.InspectorFrontendHostStub.prototype.loaded):
2795         (.WebInspector.InspectorFrontendHostStub.prototype.localizedStringsURL):
2796         (.WebInspector.InspectorFrontendHostStub.prototype.hiddenPanels):
2797         (.WebInspector.InspectorFrontendHostStub.prototype.setSetting):
2798         (.WebInspector.InspectorFrontendHostStub.prototype.setting):
2799         * inspector/front-end/ProfileView.js:
2800         (WebInspector.CPUProfileView):
2801         (WebInspector.CPUProfileType.prototype.buttonClicked):
2802         * inspector/front-end/ProfilesPanel.js:
2803         (WebInspector.ProfilesPanel.prototype._updateInterface):
2804         (WebInspector.ProfilesPanel.prototype._enableProfiling):
2805         (WebInspector.ProfilesPanel.prototype._toggleProfiling):
2806         * inspector/front-end/ResourcesPanel.js:
2807         (WebInspector.ResourcesPanel.prototype.reset):
2808         (WebInspector.ResourcesPanel.prototype._toggleLargerResources):
2809         (WebInspector.ResourcesPanel.prototype._enableResourceTracking):
2810         (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
2811         * inspector/front-end/ScriptView.js:
2812         (WebInspector.ScriptView.prototype.setupSourceFrameIfNeeded):
2813         * inspector/front-end/ScriptsPanel.js:
2814         (WebInspector.ScriptsPanel.prototype.show):
2815         (WebInspector.ScriptsPanel.prototype.addScript):
2816         (WebInspector.ScriptsPanel.prototype.attachDebuggerWhenShown):
2817         (WebInspector.ScriptsPanel.prototype.reset):
2818         (WebInspector.ScriptsPanel.prototype.canShowResource):
2819         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
2820         (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu):
2821         (WebInspector.ScriptsPanel.prototype._updatePauseOnExceptionsButton):
2822         (WebInspector.ScriptsPanel.prototype._updateDebuggerButtons):
2823         (WebInspector.ScriptsPanel.prototype._enableDebugging):
2824         (WebInspector.ScriptsPanel.prototype._toggleDebugging):
2825         (WebInspector.ScriptsPanel.prototype._togglePauseOnExceptions):
2826         (WebInspector.ScriptsPanel.prototype._togglePause):
2827         (WebInspector.ScriptsPanel.prototype._stepOverClicked):
2828         (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
2829         (WebInspector.ScriptsPanel.prototype._stepOutClicked):
2830         * inspector/front-end/SourceView.js:
2831         (WebInspector.SourceView.prototype.setupSourceFrameIfNeeded):
2832         (WebInspector.SourceView.prototype.performSearch.findSearchMatches):
2833         (WebInspector.SourceView.prototype.performSearch):
2834         * inspector/front-end/StylesSidebarPane.js:
2835         (WebInspector.StylesSidebarPane.prototype._changeColorFormat):
2836         * inspector/front-end/TestController.js:
2837         (WebInspector.TestController.prototype.notifyDone):
2838         * inspector/front-end/TimelinePanel.js:
2839         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
2840         * inspector/front-end/WatchExpressionsSidebarPane.js:
2841         (WebInspector.WatchExpressionsSection.prototype.update):
2842         (WebInspector.WatchExpressionsSection.prototype.loadSavedExpressions):
2843         (WebInspector.WatchExpressionsSection.prototype.saveExpressions):
2844         * inspector/front-end/WebKit.qrc:
2845         * inspector/front-end/inspector.html:
2846         * inspector/front-end/inspector.js:
2847         (WebInspector.pendingDispatches.0.get platform):
2848         (WebInspector.get port):
2849         (WebInspector.set currentPanel):
2850         (WebInspector._createPanels):
2851         (WebInspector._loadPreferences):
2852         (WebInspector.set attached):
2853         (WebInspector._updateHoverHighlight):
2854         (WebInspector.loaded):
2855         (windowLoaded):
2856         (WebInspector.windowUnload):
2857         (WebInspector.close):
2858         (WebInspector.toolbarDrag):
2859         (WebInspector.UIString):
2860
2861 2009-11-30  Shinichiro Hamaji  <hamaji@chromium.org>
2862
2863         Reviewed by Dan Bernstein.
2864
2865         css2.1/t1205-c566-list-stl-00-e-ag.html is failing
2866         https://bugs.webkit.org/show_bug.cgi?id=23264
2867         css2.1/t1205-c565-list-pos-00-b.html is failing
2868         https://bugs.webkit.org/show_bug.cgi?id=23263
2869
2870         Ignore whitespaces after list markers.
2871         Rendering of this was already done for the case where inside=false.
2872         This fixes the rendering of inside=true case and calcInlinePrefWidths.
2873
2874         Test: fast/lists/calc-width-with-space.html
2875
2876         * rendering/RenderBlock.cpp:
2877         (WebCore::RenderBlock::calcInlinePrefWidths):
2878         * rendering/RenderBlockLineLayout.cpp:
2879         (WebCore::RenderBlock::findNextLineBreak):
2880
2881 2009-11-30  Fumitoshi Ukai  <ukai@chromium.org>
2882
2883         Unreviewed Chromium build fix introduced by r51212
2884
2885         Fix scriptStateFromNode and ScriptStateFromPage to take DOMWrapperWorld
2886         as the first argument.
2887         Move mainThreadNormalWorld() to ScriptState.{h,cpp}.
2888         Add debuggerWorld() and pluginWorld() in ScriptState.h.
2889
2890         * bindings/v8/ScriptController.cpp:
2891         * bindings/v8/ScriptController.h:
2892         * bindings/v8/ScriptState.cpp:
2893         (WebCore::scriptStateFromNode):
2894         (WebCore::scriptStateFromPage):
2895         (WebCore::mainThreadNormalWorld):
2896         * bindings/v8/ScriptState.h:
2897         (WebCore::debuggerWorld):
2898         (WebCore::pluginWorld):
2899
2900 2009-11-30  Enrica Casucci  <enrica@apple.com>
2901
2902         Reviewed by Darin Adler.
2903
2904         Can focus but not type into content editable block that contains only non-editable content.
2905         <rdar://problem/5982901>
2906         https://bugs.webkit.org/show_bug.cgi?id=31750
2907         
2908         The goal is to change the way we choose a visible position
2909         after hit detection, by preferring a visually equivalent editable
2910         position if available. By doing this, it is possible to add content
2911         to an editable block that initially contains only non editable elements.
2912
2913         Test: editing/selection/mixed-editability-10.html
2914
2915         * WebCore.base.exp: Changed to match the new signature of downstream
2916         and upstream in the Position class.
2917         * dom/Position.cpp:
2918         (WebCore::Position::atEditingBoundary): Added.
2919         (WebCore::Position::upstream): Modified to allow to cross the boundary
2920         between editable and non editable content if required.
2921         (WebCore::Position::downstream): Modified to allow to cross the boundary
2922         between editable and non editable content if required.
2923         (WebCore::Position::isCandidate): Modified to qualify as candidates positions
2924         that are at the editability boundary.
2925         (WebCore::Position::getInlineBoxAndOffset): Modified to retrieve the inline box
2926         to be used in calculating the caret rectangle.
2927         * dom/Position.h:
2928         (WebCore::Position::):
2929         * dom/PositionIterator.cpp:
2930         (WebCore::PositionIterator::atEditingBoundary): Added.
2931         (WebCore::PositionIterator::isCandidate): Modified to qualify as candidates positions
2932         that are at the editability boundary.
2933         * dom/PositionIterator.h:
2934         * editing/htmlediting.cpp:
2935         (WebCore::firstEditablePositionAfterPositionInRoot): Modified to accept not only
2936         descendants of the editable container, but the container itself.
2937         (WebCore::lastEditablePositionBeforePositionInRoot): Modified to accept not only
2938         descendants of the editable container, but the container itself.
2939         * rendering/RenderObject.cpp:
2940         (WebCore::RenderObject::createVisiblePosition): Added logic to prefer an editable position,
2941         if available.
2942         * rendering/RenderText.cpp:
2943         (WebCore::RenderText::isAllCollapsibleWhitespace): Added.
2944         * rendering/RenderText.h:
2945
2946 2009-11-30  Kevin Ollivier  <kevino@theolliviers.com>
2947
2948         wx build fix, add header needed for wx build.
2949
2950         * css/CSSFontFaceSrcValue.cpp:
2951
2952 2009-11-30  Mark Rowe  <mrowe@apple.com>
2953
2954         Reviewed by David Kilzer.
2955
2956         <rdar://problem/7424387> WebCore binary missing symbols when built for x86_64 from a machine that cannot run x86_64 binaries
2957
2958         The check for whether WTF_USE_PLUGIN_HOST_PROCESS is defined occurs under the native architecture of the build machine.
2959         If that is 32-bit then WTF_USE_PLUGIN_HOST_PROCESS will not be defined.  We work around this by forcing the check to
2960         be performed against the x86_64 architecture.
2961
2962         * DerivedSources.make:
2963
2964 2009-11-30  Beth Dakin  <bdakin@apple.com>
2965
2966         Reviewed by Oliver Hunt.
2967
2968         Fix for https://bugs.webkit.org/show_bug.cgi?id=32000 Crash in 
2969         Safari caused by extreme column-gap and column-width values 
2970         -and corresponding-
2971         <rdar://problem/7425433>
2972
2973         Prevent desiredColumnCount from being less than 1 since it is used 
2974         as a divisor.
2975         * rendering/RenderBlock.cpp:
2976         (WebCore::RenderBlock::calcColumnWidth):
2977
2978 2009-11-30  Alexey Proskuryakov  <ap@apple.com>
2979
2980         Reviewed by Oliver Hunt.
2981
2982         https://bugs.webkit.org/show_bug.cgi?id=31659
2983         Connection must be closed in case of Web Socket handshake error
2984
2985         The network connection was closed, but the close event wasn't dispatched.
2986
2987         Tested by websocket/tests/handshake-error.html, which is un-skipped now.
2988
2989         * platform/network/cf/SocketStreamHandleCFNet.cpp: (WebCore::SocketStreamHandle::platformClose):
2990         Call client didHandle() method. This looks strange in CFNetwork implementation, because
2991         it's the client that asked to close the stream, so it shouldn't need the callback. It makes
2992         more sense in cross-process implementation, because closing is async there.
2993
2994 2009-11-30  Gavin Barraclough  <barraclough@apple.com>
2995
2996         Reviewed by Geoff Garen.
2997
2998         Bug 31859 - Make world selection for JSC IsolatedWorlds automagical.
2999
3000         WebCore presently has to explicitly specify the world before entering into JSC,
3001         which is a little fragile (particularly since property access via a
3002         getter/setter might invoke execution). Instead derive the current world from
3003         the lexical global object.
3004
3005         Remove the last uses of mainThreadCurrentWorld(), so the world is always obtained via
3006         currentWorld().  Switch this to obtain the world from the ExecsState's lexical global
3007         object instead.  Remove the call/construct/evaluate 'InWorld' methods, since these
3008         are no longer necessary.
3009
3010         * WebCore.base.exp:
3011         * bindings/js/JSCallbackData.cpp:
3012         (WebCore::JSCallbackData::invokeCallback):
3013         * bindings/js/JSCallbackData.h:
3014         (WebCore::JSCallbackData::JSCallbackData):
3015         * bindings/js/JSCustomXPathNSResolver.cpp:
3016         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
3017         * bindings/js/JSDOMBinding.cpp:
3018         (WebCore::currentWorld):
3019         (WebCore::mainThreadNormalWorld):
3020         * bindings/js/JSDOMBinding.h:
3021         (WebCore::WebCoreJSClientData::WebCoreJSClientData):
3022         * bindings/js/JSDOMWindowBase.cpp:
3023         (WebCore::JSDOMWindowBase::updateDocument):
3024         * bindings/js/JSDOMWindowBase.h:
3025         * bindings/js/JSEventListener.cpp:
3026         (WebCore::JSEventListener::handleEvent):
3027         (WebCore::JSEventListener::reportError):
3028         * bindings/js/JSHTMLDocumentCustom.cpp:
3029         (WebCore::JSHTMLDocument::open):
3030         * bindings/js/JSNodeFilterCondition.cpp:
3031         (WebCore::JSNodeFilterCondition::acceptNode):
3032         * bindings/js/JSQuarantinedObjectWrapper.cpp:
3033         (WebCore::JSQuarantinedObjectWrapper::construct):
3034         (WebCore::JSQuarantinedObjectWrapper::call):
3035         * bindings/js/ScheduledAction.cpp:
3036         (WebCore::ScheduledAction::executeFunctionInContext):
3037         * bindings/js/ScriptController.cpp:
3038         (WebCore::ScriptController::evaluateInWorld):
3039         (WebCore::ScriptController::initScript):
3040         (WebCore::ScriptController::updateDocument):
3041         * bindings/js/ScriptFunctionCall.cpp:
3042         (WebCore::ScriptFunctionCall::call):
3043         (WebCore::ScriptFunctionCall::construct):
3044         * bindings/js/ScriptObjectQuarantine.cpp:
3045         (WebCore::getQuarantinedScriptObject):
3046         * bindings/js/ScriptState.cpp:
3047         (WebCore::scriptStateFromNode):
3048         (WebCore::scriptStateFromPage):
3049         * bindings/js/ScriptState.h:
3050         * bindings/js/WorkerScriptController.cpp:
3051         (WebCore::WorkerScriptController::evaluate):
3052         * bindings/objc/WebScriptObject.mm:
3053         (-[WebScriptObject callWebScriptMethod:withArguments:]):
3054         (-[WebScriptObject evaluateWebScript:]):
3055         * bridge/NP_jsobject.cpp:
3056         (_NPN_InvokeDefault):
3057         (_NPN_Invoke):
3058         (_NPN_Evaluate):
3059         (_NPN_Construct):
3060         * bridge/jni/jni_jsobject.mm:
3061         (JavaJSObject::call):
3062         (JavaJSObject::eval):
3063         * dom/NodeFilter.h:
3064         (WebCore::NodeFilter::acceptNode):
3065         * dom/NodeIterator.h:
3066         (WebCore::NodeIterator::nextNode):
3067         (WebCore::NodeIterator::previousNode):
3068         * dom/TreeWalker.h:
3069         (WebCore::TreeWalker::parentNode):
3070         (WebCore::TreeWalker::firstChild):
3071         (WebCore::TreeWalker::lastChild):
3072         (WebCore::TreeWalker::previousSibling):
3073         (WebCore::TreeWalker::nextSibling):
3074         (WebCore::TreeWalker::previousNode):
3075         (WebCore::TreeWalker::nextNode):
3076         * inspector/InspectorController.cpp:
3077         (WebCore::InspectorController::windowScriptObjectAvailable):
3078         (WebCore::InspectorController::didEvaluateForTestInFrontend):
3079         * inspector/JavaScriptCallFrame.cpp:
3080         (WebCore::JavaScriptCallFrame::evaluate):
3081
3082 2009-11-30  Eric Carlson  <eric.carlson@apple.com>
3083
3084         Reviewed by Simon Fraser.
3085
3086         All HTML5 media element events should be regular events
3087         https://bugs.webkit.org/show_bug.cgi?id=30513
3088
3089         * html/HTMLMediaElement.cpp:
3090         (WebCore::HTMLMediaElement::selectMediaResource):
3091         (WebCore::HTMLMediaElement::noneSupported):
3092         (WebCore::HTMLMediaElement::mediaEngineError):
3093         (WebCore::HTMLMediaElement::setNetworkState):
3094         (WebCore::HTMLMediaElement::userCancelledLoad):
3095             Call scheduleEvent instead of scheduleProgressEvent.
3096         (WebCore::HTMLMediaElement::progressEventTimerFired):
3097             Call scheduleEvent instead of scheduleProgressEvent. Call renderer->updateFromElement
3098             after scheduling a 'progress' event so the controller will update download
3099             progress indicator.
3100         * html/HTMLMediaElement.h:
3101             Remove scheduleProgressEvent prototype.
3102
3103 2009-11-30  Joseph Pecoraro  <joepeck@webkit.org>
3104
3105         Reviewed by Pavel Feldman.
3106
3107         Web Inspector: Wrong console output for Regexp escape sequence
3108         https://bugs.webkit.org/show_bug.cgi?id=31538
3109
3110         Updated inspector/console-format.html
3111
3112         * inspector/front-end/ConsoleView.js:
3113         (WebInspector.ConsoleView.createDividerElement): style issues.
3114         (WebInspector.ConsoleView.createFilterElement): style issues.
3115         (WebInspector.ConsoleView): added _customFormatters table.
3116         (WebInspector.ConsoleView.prototype.updateMessageRepeatCount): style isses.
3117         (WebInspector.ConsoleView.prototype._incrementErrorWarningCount): style issues.
3118         (WebInspector.ConsoleView.prototype._format): simplified delegation to formatter logic.
3119         (WebInspector.ConsoleView.prototype._formatobject):
3120         (WebInspector.ConsoleView.prototype._formatnode):
3121         (WebInspector.ConsoleView.prototype._printArray):
3122         (WebInspector.ConsoleMessage.prototype._format): commented and broke down the algorithm into parts.
3123         (WebInspector.ConsoleMessage.prototype._formatWithSubstitutionString.append): handle substitution string formatting.
3124         (WebInspector.ConsoleMessage.prototype._formatIndividualValue): handling individual value formatting.
3125         (WebInspector.ConsoleCommandResult):
3126         * inspector/front-end/InjectedScript.js: simplified regex formatting.
3127         * inspector/front-end/inspector.js:
3128         (WebInspector.linkifyStringAsFragment): converted new RegExp to literal for performance benefits.
3129         * inspector/front-end/utilities.js: 
3130         (Element.prototype.hasStyleClass): update inaccurate comment.
3131         (String.prototype.trimURL): converted new RegExp to literal for performance benefits.
3132
3133 2009-11-30  Erik Arvidsson  <arv@chromium.org>
3134
3135         Reviewed by Adam Barth.
3136
3137         Clean up V8 bindings for CSSStyleDeclaration and CSSVariableDeclaration
3138         https://bugs.webkit.org/show_bug.cgi?id=31895
3139
3140         No new tests. This is already covered by:
3141                 fast/dom/CSSStyleDeclaration/css-computed-style-item.html
3142                 fast/dom/CSSStyleDeclaration/css-style-item.html
3143
3144         * bindings/v8/V8Collection.h:
3145         (WebCore::collectionStringIndexedPropertyGetter):
3146         (WebCore::setCollectionStringIndexedGetter):
3147         * bindings/v8/V8DOMWrapper.cpp:
3148         (WebCore::V8DOMWrapper::getTemplate):
3149
3150 2009-11-30  Steve Block  <steveblock@google.com>
3151
3152         Reviewed by Eric Seidel.
3153
3154         Adds include of wtf/StdLibExtras.h for DEFINE_STATIC_LOCAL in V8 ScriptController.
3155         https://bugs.webkit.org/show_bug.cgi?id=31932
3156
3157         Build fix only, no new tests.
3158
3159         * bindings/v8/ScriptController.cpp: Modified. Adds include of wtf/StdLibExtras.h.
3160
3161 2009-11-30  Steve Block  <steveblock@google.com>
3162
3163         Reviewed by Eric Seidel.
3164
3165         Adds PassOwnPtr include to ScriptExecutionContext.h.
3166         https://bugs.webkit.org/show_bug.cgi?id=31929
3167
3168         Build fix only, no new tests.
3169
3170         * dom/ScriptExecutionContext.h: Modified. Adds PassOwnPtr include.
3171
3172 2009-11-30  Dirk Schulze  <krit@webkit.org>
3173
3174         Reviewed by Nikolas Zimmermann.
3175
3176         REGRESSION (r49757): masking-mask-01-b.svg rendered incorrectly
3177         [https://bugs.webkit.org/show_bug.cgi?id=31980]
3178
3179         It turns out, that we did not handle maskUnits="userSpaceOnUse"
3180         correctly. We just need to move the context of the maskImage
3181         if maskContentUnits="objectBoundingBox". The context gets scaled
3182         on this unit combination, so we have to substract the position of
3183         the targetRect. On userSpaceOnUse the position just depends on the
3184         position of the mask element.
3185         I added a test with some senseless and reasonable values for size
3186         and postion of the mask and it's contents. I also used every
3187         combination of maskUnits and maskContentUnits to be sure, that it
3188         is fixed this time.
3189
3190         Test: svg/custom/mask-with-all-units.svg
3191
3192         * svg/SVGMaskElement.cpp:
3193         (WebCore::SVGMaskElement::drawMaskerContent):
3194
3195 2009-11-30  Steve Block  <steveblock@google.com>
3196
3197         Reviewed by Eric Seidel.
3198
3199         Adds ENABLE(INSPECTOR) guards around DOMWindow::inspectorTimelineAgent.
3200         https://bugs.webkit.org/show_bug.cgi?id=31928
3201
3202         Build fix only, no new tests.
3203
3204         * page/DOMWindow.cpp: Modified. Adds ENABLE(INSPECTOR) guards around DOMWindow::inspectorTimelineAgent.
3205
3206 2009-11-30  Steve Block  <steveblock@google.com>
3207
3208         Reviewed by Eric Seidel.
3209
3210         Adds SHARED_WORKERS guards to V8 WorkerContextExecutionProxy.
3211         https://bugs.webkit.org/show_bug.cgi?id=31926
3212
3213         Build fix only, no new tests.
3214
3215         * bindings/v8/WorkerContextExecutionProxy.cpp:
3216         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
3217         (WebCore::WorkerContextExecutionProxy::convertToV8Object):
3218         (WebCore::WorkerContextExecutionProxy::convertEventTargetToV8Object):
3219
3220 2009-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
3221
3222         Reviewed by Kenneth Rohde Christiansen.
3223
3224         Chrome::contentsSizeChanged() is called when the content size has not changed
3225         https://bugs.webkit.org/show_bug.cgi?id=31978
3226
3227         Do not trigger contentsSizeChaned() is the new size is the same as the old one.
3228
3229         * page/FrameView.cpp:
3230         (WebCore::FrameView::setContentsSize):
3231
3232 2009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3233
3234         Reviewed by Kenneth Rohde Christiansen.
3235
3236         [Qt] Fix some compiler warnings seen on QtWebKit/Mac
3237         https://bugs.webkit.org/show_bug.cgi?id=31962
3238
3239         No new tests as there is no functional change.
3240
3241         * platform/network/ResourceHandle.h: Make destructor virtual as 
3242         after r50772 ResourceHandle has virtual functions.
3243
3244         * plugins/mac/PluginPackageMac.cpp: 
3245         (WebCore::PluginPackage::fetchInfo): Fix typo WTF is a namespace
3246         not a label
3247
3248         * plugins/mac/PluginViewMac.cpp:
3249         (WebCore::PluginView::setNPWindowIfNeeded): Add l to the format
3250         specifier
3251
3252 2009-11-30  Xan Lopez  <xlopez@igalia.com>
3253
3254         Reviewed by Gustavo Noronha.
3255
3256         Add new headers to sources list.
3257
3258         * GNUmakefile.am:
3259
3260 2009-11-30  Girish Ramakrishnan  <girish@forwardbias.in>
3261
3262         Reviewed by Holger Freyther.
3263
3264         [Qt] Mac Plugins : Get context menu to work in QGraphicsView
3265         
3266         Flash expects the value in record.where to be the global position for
3267         displaying the context menu.
3268         
3269         https://bugs.webkit.org/show_bug.cgi?id=31979
3270
3271         * plugins/mac/PluginViewMac.cpp:
3272         (WebCore::PluginView::handleMouseEvent):
3273
3274 2009-11-30  Steve Block  <steveblock@google.com>
3275
3276         Reviewed by Eric Seidel.
3277
3278         Adds PLATFORM(CHROMIUM) guards around memory usage code in V8GCController.
3279         https://bugs.webkit.org/show_bug.cgi?id=31925
3280
3281         This code uses ChromiumBridge and Chromium-specific constant values not
3282         appropriate for other platforms such as Android.
3283
3284         Build fix only, no new tests.
3285
3286         * bindings/v8/V8GCController.cpp: Modified. Adds PLATFORM(CHROMIUM) around Chromium-specific code.
3287
3288 2009-11-29  Brent Fulgham  <bfulgham@webkit.org>
3289
3290         Build fix.
3291
3292         Correct draw signature used in ImageCairoWin.cpp.
3293
3294         * platform/graphics/win/ImageCairoWin.cpp:
3295         (WebCore::BitmapImage::getHBITMAPOfSize):
3296         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
3297
3298 2009-11-28  Oliver Hunt  <oliver@apple.com>
3299
3300         Reviewed by Sam Weinig.
3301
3302         postMessage should serialize File objects
3303         https://bugs.webkit.org/show_bug.cgi?id=31955
3304
3305         Update SerializedScriptValue to include support for
3306         File objects in the serialized object graph.
3307
3308         * bindings/js/SerializedScriptValue.cpp:
3309         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
3310         (WebCore::SerializingTreeWalker::convertIfTerminal):
3311         (WebCore::DeserializingTreeWalker::convertIfTerminal):
3312         * bindings/js/SerializedScriptValue.h:
3313         (WebCore::SerializedScriptValueData::):
3314         (WebCore::SerializedScriptValueData::asString):
3315
3316 2009-11-29  Simon Fraser  <simon.fraser@apple.com>
3317
3318         Reviewed by Dan Bernstein.
3319
3320         Optimize the hierarchy rebuilding of compositing layers
3321         https://bugs.webkit.org/show_bug.cgi?id=31879
3322         
3323         When updating the compositing layer hierarchy, instead of removing all
3324         child layers and then re-adding them one by one, build a vector of child
3325         layers, and set them in one go.
3326         
3327         * platform/graphics/GraphicsLayer.h:
3328         * platform/graphics/GraphicsLayer.cpp:
3329         (WebCore::GraphicsLayer::setChildren): New method that takes a Vector of child
3330         GraphicsLayers.
3331         
3332         * platform/graphics/mac/GraphicsLayerCA.h: Override setChildren().
3333         * platform/graphics/win/GraphicsLayerCACF.h: Ditto.
3334         * platform/graphics/mac/GraphicsLayerCA.mm: 
3335         (WebCore::GraphicsLayerCA::setChildren): Implement setChildren() to 
3336         set the bit that notes that sublayers changed.
3337         * platform/graphics/win/GraphicsLayerCACF.cpp:
3338         (WebCore::GraphicsLayerCACF::setChildren): Implement setChildren() to 
3339         udpate sublayers, with a note that this is not efficient.
3340         
3341         * rendering/RenderLayerCompositor.h:
3342         * rendering/RenderLayerCompositor.cpp:
3343         (WebCore::RenderLayerCompositor::updateCompositingLayers):
3344         When updating compositing layers, use the faster updateLayerTreeGeometry() if
3345         we know that no layer hierarchy changes are needed, and, at the root, use
3346         the vector returned from rebuildCompositingLayerTree() to attach the root
3347         layer.
3348         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Changed to
3349         collect child layers into Vectors of GraphicsLayers, which can be set as
3350         layer children in one go.
3351         (WebCore::RenderLayerCompositor::updateLayerTreeGeometry): Split out from
3352         rebuildCompositingLayerTree() for simplicity, and called when we just need to
3353         update layer geometry, without doing any reparenting.
3354
3355 2009-11-29  Daniel Bates  <dbates@webkit.org>
3356
3357         Reviewed by Adam Barth.
3358
3359         https://bugs.webkit.org/show_bug.cgi?id=31971
3360
3361         Updated comment to reflect latest XSSAuditor bindings.
3362
3363         No functionality was changed. So, no new tests.
3364
3365         * page/XSSAuditor.h:
3366
3367 2009-11-29  Daniel Bates  <dbates@webkit.org>
3368
3369         Reviewed by Eric Seidel.
3370
3371         https://bugs.webkit.org/show_bug.cgi?id=31969
3372
3373         Removes unnecessary #include files.
3374
3375         No functionality was changed. So, no new tests.
3376
3377         * css/CSSComputedStyleDeclaration.cpp: Removed include CachedImage.h, and
3378         Pair.h
3379         * css/CSSCursorImageValue.cpp: Removed include RenderStyle.h
3380         * css/CSSFontFaceSrcValue.cpp: Removed include Node.h
3381         * css/CSSFontSelector.cpp: Removed include NodeList.h
3382         * css/CSSGradientValue.cpp: Removed include GraphicsContext.h, ImageBuffer.h
3383         * css/CSSImageValue.cpp: Removed include RenderStyle.h
3384         * css/CSSImportRule.cpp: Removed include MediaList.h
3385         * css/CSSMutableStyleDeclaration.cpp: Removed include CSSProperty.h
3386         * css/CSSRule.cpp: Removed include CSSStyleSheet.h
3387         * css/CSSStyleSelector.cpp: Removed include CSSFontFace.h,
3388         CSSFontFaceSource.h, and CSSProperty.h
3389         * page/EventSource.h: Removed include EventListener.h
3390
3391 2009-11-29  Daniel Bates  <dbates@webkit.org>
3392
3393         Reviewed by Eric Seidel.
3394
3395         https://bugs.webkit.org/show_bug.cgi?id=31965
3396
3397         Removed #include KeyframeList.h from CSSStyleSelector.h. Instead,
3398         forward declared it.
3399
3400         As a side effect, we need to #include KeyframeList.h in
3401         RenderLayerBacking.cpp.
3402
3403         No functionality was changed. So, no new tests.
3404
3405         * css/CSSStyleSelector.cpp:
3406         * css/CSSStyleSelector.h: Removed #include KeyframeList.h
3407         * rendering/RenderLayerBacking.cpp: Added #include KeyframeList.h
3408
3409 2009-11-29  Shu Chang  <Chang.Shu@nokia.com>
3410
3411         Reviewed by Eric Seidel.
3412
3413         Continue to search for matching node in the case where multiple nodes
3414         have the same id.
3415         https://bugs.webkit.org/show_bug.cgi?id=31428
3416
3417         Test: fast/dom/Element/id-in-node-list-index01.html
3418
3419         * dom/DynamicNodeList.cpp:
3420         (WebCore::DynamicNodeList::itemWithName):
3421
3422 2009-11-29  Daniel Bates  <dbates@webkit.org>
3423
3424         Reviewed by Eric Seidel.
3425
3426         https://bugs.webkit.org/show_bug.cgi?id=31966
3427
3428         Removed #include RenderStyle.h from file KeyframeAnimation.h. Instead,
3429         forward declared it.
3430
3431         No functionality was changed. So, no new tests.
3432
3433         * page/animation/KeyframeAnimation.cpp:
3434         * page/animation/KeyframeAnimation.h:
3435
3436 2009-11-29  Daniel Bates  <dbates@webkit.org>
3437
3438         Unreviewed, fix change log entry date.
3439
3440         For some reason, bugzilla-tool did not update the date in the change
3441         log entry for my last commit (r51468). So, this commit fixes the date
3442         of that entry.
3443
3444 2009-11-29  Daniel Bates  <dbates@webkit.org>
3445
3446         Reviewed by Dan Bernstein.
3447
3448         https://bugs.webkit.org/show_bug.cgi?id=31964
3449
3450         Removed #include StringImpl, StyleImage. Instead, forward declared them.
3451         Also, we can substitute #include <wtf/PassRefPtr.h> for #include PlatformString.h,
3452         since it seems we only really used it to include PassRefPtr.h.
3453
3454         No functionality was changed. So, no new tests.
3455
3456         * rendering/style/ContentData.h:
3457
3458 2009-11-29  Zoltan Horvath  <zoltan@webkit.org>
3459
3460         Reviewed by Eric Seidel.
3461
3462         Allow custom memory allocation control for classes of the rendering and storage directory in WebCore
3463         https://bugs.webkit.org/show_bug.cgi?id=31906
3464
3465         Inherits the following classes from Noncopyable because these are instantiated
3466         by 'new' and no need to be copyable:
3467
3468         class/struct name               - instantiated at: WebCore/'location'
3469
3470         class SQLTransactionClient      - storage/DatabaseThread.cpp:45
3471         class SQLTransactionCoordinator - storage/DatabaseThread.cpp:46
3472         class OriginUsageRecord         - storage/OriginQuotaManager.cpp:66
3473         class DatabaseTracker           - storage/DatabaseTracker.cpp:62
3474         class ScrollbarTheme            - (its child class) rendering/RenderScrollbarTheme.cpp:35
3475         class RenderSelectionInfoBase   - (its child class) rendering/RenderView.cpp:310
3476         class RenderOverflow            - rendering/RenderBox.cpp:2846
3477
3478         Inherits the following classes from FastAllocBase because these are instantiated by 'new':
3479
3480         struct FillLayer                - css/CSSStyleSelector.cpp:197
3481         struct ShadowData               - rendering/style/ShadowData.cpp:35
3482         class CounterContent            - css/CSSStyleSelector.cpp:4111
3483
3484         * platform/ScrollbarTheme.h:
3485         * rendering/RenderOverflow.h:
3486         * rendering/RenderSelectionInfo.h:
3487         * rendering/style/CounterContent.h:
3488         * rendering/style/FillLayer.h:
3489         * rendering/style/ShadowData.h:
3490         * storage/DatabaseTracker.h:
3491         * storage/OriginUsageRecord.h:
3492         * storage/SQLTransactionClient.h:
3493         * storage/SQLTransactionCoordinator.h:
3494
3495 2009-11-28  Adam Barth  <abarth@webkit.org>
3496
3497         Reviewed by Dimitri Glazkov.
3498
3499         [Chromium] Sify compose button alerts error
3500         https://bugs.webkit.org/show_bug.cgi?id=31394
3501
3502         Test: http/tests/security/calling-versus-current.html
3503
3504         We're supposed to use the calling context for security checks.  In JSC
3505         land, this is the lexicalGlobalObject.
3506
3507         * bindings/v8/V8Proxy.cpp:
3508         (WebCore::V8Proxy::canAccessPrivate):
3509
3510 2009-11-27  Shinichiro Hamaji  <hamaji@chromium.org>
3511
3512         Unreviewed Chromium build fix introduced by r51428.
3513
3514         [Chromium] Ignore line-height CSS property for PushButton
3515         https://bugs.webkit.org/show_bug.cgi?id=31712
3516
3517         * rendering/RenderThemeChromiumSkia.cpp:
3518         (WebCore::RenderThemeChromiumSkia::adjustButtonStyle):
3519
3520 2009-11-27  Shinichiro Hamaji  <hamaji@chromium.org>
3521
3522         Unreviewed Chromium test fix by reverting r51413.
3523
3524         [v8] Do not check the thread when accessing DOMDataStore
3525         https://bugs.webkit.org/show_bug.cgi?id=31877
3526
3527         * bindings/v8/V8DOMMap.cpp:
3528         (WebCore::getDOMNodeMap):
3529         (WebCore::getDOMObjectMap):
3530         (WebCore::getActiveDOMObjectMap):
3531         (WebCore::getDOMSVGElementInstanceMap):
3532         (WebCore::getDOMSVGObjectWithContextMap):
3533
3534 2009-11-27  Daniel Bates  <dbates@webkit.org>
3535
3536         Unreviewed, comment fix.
3537
3538         Corrected misspelling of the word "implemented".
3539
3540         * inspector/front-end/InjectedScriptAccess.js:
3541
3542 2009-11-27  Daniel Bates  <dbates@webkit.org>
3543
3544         Reviewed by Adam Barth.
3545
3546         https://bugs.webkit.org/show_bug.cgi?id=31940
3547
3548         Makes the error messages more descriptive when we refuse to load an object/embed or
3549         refuse to load from the document base URL.
3550
3551         * page/XSSAuditor.cpp:
3552         (WebCore::XSSAuditor::canLoadObject): Changed console message to be more descriptive.
3553         (WebCore::XSSAuditor::canSetBaseElementURL): Ditto.
3554
3555 2009-11-27  Yury Semikhatsky  <yurys@chromium.org>
3556
3557         Reviewed by Pavel Feldman.
3558
3559         This is a WebCore part of the fix that allows to view plugin
3560         resources loaded by plugins.
3561
3562         https://bugs.webkit.org/show_bug.cgi?id=31832
3563
3564         * inspector/InspectorController.cpp:
3565         (WebCore::InspectorController::willSendRequest):
3566         (WebCore::InspectorController::didReceiveResponse):
3567         (WebCore::InspectorController::didReceiveContentLength):
3568         (WebCore::InspectorController::didFinishLoading):
3569         (WebCore::InspectorController::didFailLoading):
3570         * inspector/InspectorController.h:
3571         * inspector/InspectorResource.cpp:
3572         (WebCore::InspectorResource::addLength):
3573         * loader/ResourceLoadNotifier.cpp:
3574         (WebCore::ResourceLoadNotifier::didFailToLoad):
3575         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
3576         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
3577         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
3578         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
3579
3580 2009-11-27  Yury Semikhatsky  <yurys@chromium.org>
3581
3582         Reviewed by Pavel Feldman.
3583
3584         Instead of generating negative identifiers for cached resources in
3585    &n