889af0bf0fd334ff795273a6712ca1b25d9da3b6
[WebKit-https.git] / WebCore / ChangeLog
1 2009-11-12  Sam Weinig  <sam@webkit.org>
2
3         Reviewed by Oliver Hunt.
4
5         Fix for <rdar://problem/7267951>
6         Canvas methods should reject uses of NaN and Infinity.
7
8         Test: fast/canvas/canvas-with-illegal-args.html
9
10         * html/canvas/CanvasRenderingContext2D.cpp:
11         (WebCore::CanvasRenderingContext2D::scale):
12         (WebCore::CanvasRenderingContext2D::rotate):
13         (WebCore::CanvasRenderingContext2D::translate):
14         (WebCore::CanvasRenderingContext2D::transform):
15         (WebCore::CanvasRenderingContext2D::setTransform):
16
17 2009-11-12  Pavel Feldman  <pfeldman@chromium.org>
18
19         Reviewed by Timothy Hatcher.
20
21         Web Inspector: profile timeline panel, fix obvious problems.
22
23         https://bugs.webkit.org/show_bug.cgi?id=31432
24
25         * inspector/front-end/AbstractTimelinePanel.js:
26         (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):
27         * inspector/front-end/TimelinePanel.js:
28         (WebInspector.TimelinePanel.prototype._setWindowPosition):
29         (WebInspector.TimelineCalculator):
30         (WebInspector.TimelineCalculator.prototype.get minimumBoundary):
31         (WebInspector.TimelineCalculator.prototype.get maximumBoundary):
32         (WebInspector.TimelineCalculator.prototype.reset):
33         (WebInspector.TimelineCalculator.prototype.updateBoundaries):
34         (WebInspector.TimelineCalculator.prototype.formatValue):
35         (WebInspector.TimelineGraph):
36         (WebInspector.TimelineGraph.prototype.refresh):
37         * inspector/front-end/utilities.js:
38         (Element.prototype.hasStyleClass):
39
40 2009-11-12  Pavel Feldman  <pfeldman@chromium.org>
41
42         Reviewed by Timothy Hatcher.
43
44         Web Inspector: preload status bar button glyphs
45         in order to prevent them from flickering.
46
47         https://bugs.webkit.org/show_bug.cgi?id=31439
48
49         * inspector/front-end/inspector.js:
50         (preloadImages):
51
52 2009-11-12  Adam Roben  <aroben@apple.com>
53
54         Replace worldIDs with world objects
55
56         Part of <http://webkit.org/b/31414> Implement new SPI for dealing with
57         user scripts/stylesheets and isolated worlds
58
59         Reviewed by Sam Weinig.
60
61         Covered by existing tests.
62
63         * WebCore.base.exp: Update exported symbols to match what now exists
64         and is needed by WebKit.
65
66         * bindings/js/ScheduledAction.cpp:
67         (WebCore::ScheduledAction::execute): Updated for function rename.
68
69         * bindings/js/ScriptController.cpp: Removed code that dealt with
70         worldIDs.
71         (WebCore::ScriptController::createWorld): Added. Returns a new world
72         suitable for use on the main thread.
73         (WebCore::ScriptController::executeScriptInWorld): Renamed from
74         executeScriptInIsolatedWorld, since this works just fine with a
75         "normal" world.
76
77         * bindings/js/ScriptController.h: Added createWorld, removed functions
78         that took worldIDs, renamed executeScriptInIsolatedWorld to
79         executeScriptInWorld.
80
81         * page/Frame.cpp:
82         (WebCore::Frame::injectUserScripts):
83         (WebCore::Frame::injectUserScriptsForWorld):
84         Updated for changes to UserScriptMap and ScriptController.
85
86         * page/Frame.h: Changed injectUserScriptsForWorld to take a
87         DOMWrapperWorld* instead of a worldID.
88
89         * page/PageGroup.cpp:
90         (WebCore::PageGroup::addUserScriptToWorld):
91         (WebCore::PageGroup::addUserStyleSheetToWorld):
92         (WebCore::PageGroup::removeUserScriptFromWorld):
93         (WebCore::PageGroup::removeUserStyleSheetFromWorld):
94         (WebCore::PageGroup::removeUserScriptsFromWorld):
95         (WebCore::PageGroup::removeUserStyleSheetsFromWorld):
96         * page/PageGroup.h:
97         Changed these functions to take a DOMWrapperWorld* instead of a
98         worldID. Also updated for changes to UserScript and UserStyleSheet.
99
100         * page/UserScript.h:
101         * page/UserStyleSheet.h: Changed not to hold a worldID, since it was
102         never used.
103
104         * page/UserScriptTypes.h:
105         * page/UserStyleSheetTypes.h: Changed UserScriptMap and
106         UserStyleSheetMap to use a RefPtr<DOMWrapperWorld> instead of a
107         worldID as their key type.
108
109
110 2009-11-12  Brian Weinstein  <bweinstein@apple.com>
111
112         Reviewed by Tim Hatcher.
113
114         Fixes <http://webkit.org/b/31260>.
115         Web Inspector: Main Resources Other than HTML are mis-detected.
116         
117         Even if the resource is a main resource, look at its CachedResource type, 
118         because it might be an image, stylesheet, or JavaScript file, and we
119         want to show them all correctly.
120
121         * inspector/InspectorResource.cpp:
122         (WebCore::InspectorResource::cachedResourceType): Move this method out so it can be called in multiple places.
123         (WebCore::InspectorResource::type): 
124         * inspector/InspectorResource.h:
125
126 2009-11-12  Jens Alfke  <snej@chromium.org>
127
128         Reviewed by Dimitri Glazkov.
129
130         Table-driven setup for V8 binding template callback functions. 100k in code savings.
131         https://bugs.webkit.org/show_bug.cgi?id=31420
132
133         * bindings/scripts/CodeGeneratorV8.pm:  Change generated ConfigureXXXTemplate fn
134             to call configureTemplate().
135         * bindings/v8/V8Binding.cpp:
136         (WebCore::configureTemplate):  New function; does all the standard configuration work.
137         (WebCore::createCallback):  De-inlined wrapper for FunctionTemplate creation.
138         * bindings/v8/V8Binding.h:
139         * bindings/v8/V8Proxy.cpp:
140         (WebCore::batchConfigureAttributes):  Just wrapped the very long fn parameter list.
141         (WebCore::batchConfigureCallbacks):  New function, used by configureTemplate.
142         (WebCore::batchConfigureConstants):  Just wrapped the very long fn parameter list.
143         * bindings/v8/V8Proxy.h:
144
145 2009-11-12  Dumitru Daniliuc  <dumi@chromium.org>
146
147         Unreviewed, fix Chromium build after http://trac.webkit.org/changeset/50876.
148
149         * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
150
151 2009-11-12  Eric Carlson  <eric.carlson@apple.com>
152
153         Reviewed by Dan Bernstein.
154
155         <rdar://problem/7388969> Add DOM API for fullscreen video
156         
157         DOM API for fullscreen <video>.
158
159         Tests: media/media-fullscreen-inline.html
160                media/media-fullscreen-not-in-document.html
161
162         * dom/EventNames.h:
163             Add webkitbeginfullscreen and webkitendfullscreen.
164
165         * html/HTMLAttributeNames.in:
166             Add onwebkitbeginfullscreen and onwebkitendfullscreen.
167
168         * html/HTMLMediaElement.cpp:
169         (WebCore::HTMLMediaElement::parseMappedAttribute):
170             Deal with onwebkitbeginfullscreen and onwebkitendfullscreen.
171         (WebCore::HTMLMediaElement::enterFullscreen):
172             Schedule webkitbeginfullscreenEvent event, don't set m_isFullscreen unless we
173             actually do enter fullscreen.
174         (WebCore::HTMLMediaElement::exitFullscreen):
175             Schedule webkitendfullscreenEvent event.
176         (WebCore::HTMLMediaElement::webkitEnterFullScreen):
177         (WebCore::HTMLMediaElement::webkitExitFullScreen):
178         (WebCore::HTMLMediaElement::webkitSupportsFullscreen):
179         (WebCore::HTMLMediaElement::webkitDisplayingFullscreen):
180             New, access to fullscreen properties and methods.
181
182         * html/HTMLMediaElement.h:
183         * html/HTMLMediaElement.idl:
184             Declare methods needed for fullscreen API.
185
186         * html/HTMLVideoElement.cpp:
187         (WebCore::HTMLVideoElement::supportsFullscreen):
188             Return false if a movie does not have video.
189
190         * page/DOMWindow.h:
191             Add webkitbeginfullscreen and webkitendfullscreen.
192
193 2009-11-12  Adam Barth  <abarth@webkit.org>
194
195         Reviewed by Dimitri Glazkov.
196
197         [Chromium] Sify compose button alerts error
198         https://bugs.webkit.org/show_bug.cgi?id=31394
199
200         Test: http/tests/security/calling-versus-current.html
201
202         We're supposed to use the calling context for security checks.  In JSC
203         land, this is the lexicalGlobalObject.
204
205         * bindings/v8/V8Proxy.cpp:
206         (WebCore::V8Proxy::canAccessPrivate):
207
208 2009-11-12  Daniel Bates  <dbates@webkit.org>
209
210         Reviewed by Darin Adler.
211
212         https://bugs.webkit.org/show_bug.cgi?id=30291
213
214         Fixes an issue where the returned drop effect is incorrect when
215         effectAllowed == "uninitialized".
216
217         According to section 7.9.2 of the HTML 5 spec.
218         <http://dev.w3.org/html5/spec/Overview.html#the-dragevent-and-datatransfer-interfaces>
219         when effectAllowed = "uninitialized" the resulting dropEffect should be the
220         user-specified dropEffect (i.e. "copy", "move", "link") and "none" for any
221         other case.
222         
223         No test cases are included because we have an existing test case from
224         bug #24731.
225
226         * dom/Clipboard.cpp:
227         (WebCore::dragOpFromIEOp): Added case for op == "uninitialized".
228
229 2009-11-12  Pavel Feldman  <pfeldman@chromium.org>
230
231         Reviewed by Timothy Hatcher.
232
233         Web Inspector: Do not highlight node on refresh.
234
235         https://bugs.webkit.org/show_bug.cgi?id=31419
236
237         * inspector/front-end/ElementsPanel.js:
238         (WebInspector.ElementsPanel.prototype.reset):
239
240 2009-11-12  Pavel Feldman  <pfeldman@chromium.org>
241
242         Reviewed by Timothy Hatcher.
243
244         Web Inspector: Minor timeline fixes.
245
246         https://bugs.webkit.org/show_bug.cgi?id=31417
247
248         * inspector/front-end/TimelinePanel.js:
249         (WebInspector.TimelinePanel.prototype._getRecordDetails):
250         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
251         (WebInspector.TimelineRecordTreeElement.prototype._updateDetails):
252         (WebInspector.TimelineRecordTreeElement.prototype.refresh):
253
254 2009-11-12  Alexey Proskuryakov  <ap@apple.com>
255
256         SnowLeopard build fix.
257
258         Renamed initWithClient to initWithAuthenticationClient.
259
260         * platform/network/mac/AuthenticationMac.mm:
261         (-[WebCoreAuthenticationClientAsChallengeSender initWithAuthenticationClient:]):
262         (WebCore::AuthenticationChallenge::setAuthenticationClient):
263
264 2009-11-12  Chris Fleizach  <cfleizach@apple.com>
265
266         Reviewed by Darin Adler.
267
268         ARIA: add alert type roles
269         https://bugs.webkit.org/show_bug.cgi?id=31392
270
271         Test: platform/mac/accessibility/aria-alerts.html
272
273         * accessibility/AccessibilityObject.h:
274         * accessibility/AccessibilityRenderObject.cpp:
275         * accessibility/mac/AccessibilityObjectWrapper.mm:
276
277 2009-11-11  Alexey Proskuryakov  <ap@apple.com>
278
279         Reviewed by Darin Adler.
280
281         https://bugs.webkit.org/show_bug.cgi?id=31386
282         Make Mac AuthenticationChallenge usable from cross-platform code
283
284         No change in behavior, so no tests.
285
286         * platform/network/ResourceHandle.cpp:
287         (WebCore::ResourceHandle::clearAuthentication):
288         * platform/network/ResourceHandleInternal.h:
289         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
290         Don't store m_currentCFChallenge, which was only used for a single assertion. Unlike the
291         NSURLConnection case, CF challenge doesn't carry a sender with it, so the copy in web challenge
292         is identical.
293
294         * platform/network/cf/AuthenticationChallenge.h:
295         (WebCore::AuthenticationChallenge::setAuthenticationClient): Added a setter to match the new
296         Mac interface. Previously, one had to create a new AuthenticationChallenge to replace client.
297
298         * platform/network/cf/ResourceHandleCFNet.cpp:
299         (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Fixed assertions after removal
300         of m_currentCFChallenge. Also, there is no need to set client now, as it's guaranteed to
301         be already set.
302
303         * platform/network/mac/AuthenticationChallenge.h:
304         (WebCore::AuthenticationChallenge::m_sender): Explained the existence of this member to the
305         best of my understanding.
306         (WebCore::AuthenticationChallenge::m_nsChallenge): Renamed from m_macChallenge to prevent
307         confusion with "mac" and "web" challenges in ResourceHandleInternal.
308
309         * platform/network/mac/AuthenticationMac.mm:
310         (WebCoreAuthenticationClientAsChallengeSender): Added a Obj-C wrapper for AuthenticationClient,
311         making it possible to use the latter with NSURLAuthenticationChallenge.
312         (WebCore::AuthenticationChallenge::AuthenticationChallenge): Updated for m_macChallenge ->
313         m_nsChallenge renaming.
314         (WebCore::AuthenticationChallenge::setAuthenticationClient): Wrap the client in Obj-C and
315         set it as sender (or unset, if client is null).
316
317         * platform/network/mac/ResourceHandleMac.mm:
318         (WebCoreResourceHandleAsDelegate) WebCoreResourceHandleAsDelegate no longer doubles as
319         authentication challenge sender.
320         (WebCore::ResourceHandle::~ResourceHandle): A navigation can happen underneath an
321         authentication sheet.
322         (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Form m_currentWebChallenge
323         using the new setAuthenticationClient() method.
324         (WebCore::ResourceHandle::didCancelAuthenticationChallenge): Fixed an incorrect assertion.
325         Since didCancelAuthenticationChallenge is called by connection, the passed challenge is
326         the original Mac one, not the one we created for use with authentication sheet. I don't
327         know when a connection would cancel authentication in practice, so I haven't tested this.
328
329 2009-11-12  Patrick Mueller  <Patrick_Mueller@us.ibm.com>
330
331         Reviewed by Timothy Hatcher.
332
333         Web Inspector: breakpoint sidebar entries should allow click over entire list item
334         https://bugs.webkit.org/show_bug.cgi?id=31411
335
336         No new tests; no new functionality, small usability change. 
337
338         * inspector/front-end/BreakpointsSidebarPane.js:
339         (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement):
340         (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement.breakpointClicked):
341
342 2009-11-12  Patrick Mueller  <Patrick_Mueller@us.ibm.com>
343
344         Reviewed by Timothy Hatcher.
345
346         Web Inspector: breakpoints in named evals are not restored after a reload
347         https://bugs.webkit.org/show_bug.cgi?id=31375
348
349         Manual test added
350
351         * inspector/front-end/ScriptsPanel.js:
352         (WebInspector.ScriptsPanel.prototype.addScript):
353         * manual-tests/inspector/bp-in-named-eval-after-reload.html: Added.
354
355 2009-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
356
357         Reviewed by Kenneth Rohde Christiansen.
358
359         Custom printing shrink factors
360         https://bugs.webkit.org/show_bug.cgi?id=29042
361
362         This reverts commit r49769. The public API for this needs to be reviewed
363         before its inclusion in Qt.
364
365         * page/PrintContext.cpp:
366         (WebCore::PrintContext::begin):
367         * page/Settings.cpp:
368         (WebCore::Settings::Settings):
369         * page/Settings.h:
370
371 2009-11-12  Alexander Pavlov  <apavlov@chromium.org>
372
373         Reviewed by Pavel Feldman.
374
375         Web Inspector: Resource errors/warnings not shown in the Resource tree.
376
377         Error/Warning bubbles are not displayed next to the resource in the 
378         Resources panel if those occur before the resource is attached to the tree.
379         https://bugs.webkit.org/show_bug.cgi?id=31404
380
381         Test: manual-tests/inspector/styled-error-bubbles-in-scripts.html
382
383         * inspector/front-end/AbstractTimelinePanel.js:
384         (WebInspector.AbstractTimelinePanel.prototype.removeItem):
385         * inspector/front-end/ResourcesPanel.js:
386         (WebInspector.ResourceSidebarTreeElement.prototype.onattach):
387
388 2009-11-12  Philippe Normand  <pnormand@igalia.com>
389
390         Reviewed by Jan Alonzo.
391
392         https://bugs.webkit.org/show_bug.cgi?id=31047
393         [GTK] Failing test media/video-played-ranges-1.html
394
395         Follow-up of r50726, don't block the UI thread when calling
396         gst_element_get_state(). Also fixed a compilation warning and some
397         static casts.
398
399         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
400         (WebCore::playbackPosition):
401         (WebCore::MediaPlayerPrivate::seek):
402         (WebCore::MediaPlayerPrivate::setRate):
403
404 2009-11-12  Philippe Normand  <pnormand@igalia.com>
405
406         Reviewed by Jan Alonzo.
407
408         https://bugs.webkit.org/show_bug.cgi?id=31047
409         [GTK] Failing test media/video-played-ranges-1.html
410
411         don't pause pipeline if already paused, same for play()
412
413         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
414         (WebCore::MediaPlayerPrivate::play):
415         (WebCore::MediaPlayerPrivate::pause):
416
417 2009-11-12  Kinuko Yasuda  <kinuko@google.com>
418
419         Reviewed by David Levin.
420
421         Support Gtk scrollwheel behavior for horizontal scrollbars on Linux
422         Chromium too.
423         https://bugs.webkit.org/show_bug.cgi?id=31292
424
425         No new tests. (Corresponding test for Gtk+ is
426         platform/gtk/scrollbars/overflow-scrollbar-horizontal-wheel-scroll.html)
427
428         * page/EventHandler.cpp:
429         * page/chromium/EventHandlerChromium.cpp:
430
431 2009-11-12  Yuta Kitamura  <yutak@chromium.org>
432
433         Reviewed by Eric Seidel.
434
435         Prevent text inside a multi-column block from being split into columns.
436         
437         If the tentative height of a multi-column block was too small, we need to
438         expand the block height and try to layout again, in order to prevent text
439         from being split into different columns.
440
441         CSS Multicolumn text is split awkwardly
442         https://bugs.webkit.org/show_bug.cgi?id=22249
443
444         Test: fast/multicol/single-line.html
445
446         * rendering/RenderBlock.cpp:
447         (WebCore::RenderBlock::layoutColumns):
448         * rendering/RenderBlock.h:
449         * rendering/RenderLineBoxList.cpp:
450         (WebCore::RenderLineBoxList::paint):
451         * rendering/RenderView.h:
452         (WebCore::RenderView::setTruncatedAt):
453         (WebCore::RenderView::setMinimumColumnHeight):
454         (WebCore::RenderView::minimumColumnHeight):
455
456 2009-11-11  Kent Tamura  <tkent@chromium.org>
457
458         Reviewed by Darin Adler.
459
460         Fix a bug that RenderFileUploadControl isn't initialized with multiple files.
461         https://bugs.webkit.org/show_bug.cgi?id=31195
462
463         Test: fast/forms/input-file-re-render.html
464
465         * rendering/RenderFileUploadControl.cpp:
466         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
467
468 2009-11-09  Dumitru Daniliuc  <dumi@chromium.org>
469
470         Reviewed by Dimitri Glazkov.
471
472         Fixing Chromium's POSIX VFS implementation, by adding the required
473         "used file descriptors" logic.
474
475         https://bugs.webkit.org/show_bug.cgi?id=31275
476
477         * platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp:
478
479 2009-11-11  Chris Fleizach  <cfleizach@apple.com>
480
481         Reviewed by Oliver Hunt.
482
483         need to implement aria tree roles
484         https://bugs.webkit.org/show_bug.cgi?id=31284
485
486         Tests: platform/mac/accessibility/aria-multiselectable.html
487                platform/mac/accessibility/aria-tree.html
488
489         * accessibility/AccessibilityList.cpp:
490         (WebCore::AccessibilityList::accessibilityIsIgnored):
491         * accessibility/AccessibilityObject.cpp:
492         (WebCore::AccessibilityObject::ariaTreeRows):
493         (WebCore::AccessibilityObject::ariaTreeItemContent):
494         (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
495         * accessibility/AccessibilityObject.h:
496         (WebCore::):
497         (WebCore::AccessibilityObject::isTree):
498         (WebCore::AccessibilityObject::isTreeItem):
499         (WebCore::AccessibilityObject::setIsExpanded):
500         (WebCore::AccessibilityObject::canSetExpandedAttribute):
501         (WebCore::AccessibilityObject::hierarchicalLevel):
502         (WebCore::AccessibilityObject::setSelectedRows):
503         (WebCore::AccessibilityObject::performDefaultAction):
504         * accessibility/AccessibilityRenderObject.cpp:
505         (WebCore::AccessibilityRenderObject::hierarchicalLevel):
506         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
507         (WebCore::AccessibilityRenderObject::isExpanded):
508         (WebCore::AccessibilityRenderObject::setElementAttributeValue):
509         (WebCore::AccessibilityRenderObject::elementAttributeValue):
510         (WebCore::AccessibilityRenderObject::setIsExpanded):
511         (WebCore::AccessibilityRenderObject::isSelected):
512         (WebCore::AccessibilityRenderObject::setSelected):
513         (WebCore::AccessibilityRenderObject::setSelectedRows):
514         (WebCore::createARIARoleMap):
515         (WebCore::AccessibilityRenderObject::canSetExpandedAttribute):
516         (WebCore::AccessibilityRenderObject::ariaTreeSelectedRows):
517         (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
518         (WebCore::AccessibilityRenderObject::selectedChildren):
519         * accessibility/AccessibilityRenderObject.h:
520         * accessibility/mac/AccessibilityObjectMac.mm:
521         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
522         * accessibility/mac/AccessibilityObjectWrapper.mm:
523         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
524         (RoleEntry::):
525         (-[AccessibilityObjectWrapper subrole]):
526         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
527         (-[AccessibilityObjectWrapper accessibilityIsAttributeSettable:]):
528         (-[AccessibilityObjectWrapper accessibilityPerformShowMenuAction]):
529         (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
530         (-[AccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
531         * html/HTMLAttributeNames.in:
532
533 2009-11-11  Brent Fulgham  <bfulgham@webkit.org>
534
535         Build fix after @r50760 with ENABLE_FILTERS.
536
537         * platform/graphics/filters/SourceAlpha.cpp:
538         (WebCore::SourceAlpha::apply): Supply ColorSpace to fillRect.
539         * svg/graphics/filters/SVGFEFlood.cpp: Supply ColorSpace argument
540           to fillRect.
541
542 2009-11-11  Fumitoshi Ukai  <ukai@chromium.org>
543
544         Reviewed by Alexey Proskuryakov.
545
546         Fix WebSocket frame parser of frame_type with high-order bit set.
547         https://bugs.webkit.org/show_bug.cgi?id=30668
548
549         If buffer is smaller than frame's length, it should break the loop
550         instead of reading next byte.
551
552         Tests: websocket/tests/frame-length-longer-than-buffer.html
553                websocket/tests/frame-length-skip.html
554
555         * websockets/WebSocketChannel.cpp:
556         (WebCore::WebSocketChannel::didReceiveData):
557
558 2009-11-11  Yusuke Sato  <yusukes@chromium.org>
559
560         Reviewed by Adam Barth.
561
562         [chromium] Remove t2embed.dll functions from FontCustomPlatformData.cpp for Chromium
563         https://bugs.webkit.org/show_bug.cgi?id=31345
564
565         Remove dependency on t2embed.dll so that Chromium for Windows can start even if t2embed.dll cannot be accessed.
566
567         * platform/graphics/chromium/FontCustomPlatformData.cpp:
568         (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Remove TTDeleteEmbeddedFont() call. Always use RemoveFontMemResourceEx().
569         (WebCore::FontCustomPlatformData::fontPlatformData): Remove TTGetNewFontName() call.
570         (WebCore::createFontCustomPlatformData): Remove TTLoadEmbeddedFont() call. Always use AddFontMemResourceEx() via renameAndActivateFont() in opentype/OpenTypeUtility.h. Remove EOTStream class as well.
571
572 2009-11-11  Beth Dakin  <bdakin@apple.com>
573
574         Build fix. No review needed.
575
576         * platform/graphics/gtk/FontGtk.cpp:
577         (WebCore::Font::drawComplexText):
578
579 2009-11-11  Beth Dakin  <bdakin@apple.com>
580
581         Build fix. No review needed.
582
583         * platform/graphics/cairo/FontCairo.cpp:
584         (WebCore::Font::drawGlyphs):
585
586 2009-11-11  Beth Dakin  <bdakin@apple.com>
587
588         Windows build fix. No review needed. 
589
590         * platform/graphics/win/FontCGWin.cpp:
591         (WebCore::Font::drawGlyphs):
592
593 2009-11-11  Beth Dakin  <bdakin@apple.com>
594
595         Reviewed by Simon Fraser.
596
597         Fix for https://bugs.webkit.org/show_bug.cgi?id=31382
598         Make -webkit-color-correction work with shadows
599
600         From canvas, just send DeviceColorSpace to setShadow() for now. 
601         Will fix soon when I address https://bugs.webkit.org/show_bug.cgi?id=31319
602         * html/canvas/CanvasRenderingContext2D.cpp:
603         (WebCore::CanvasRenderingContext2D::setShadow):
604         (WebCore::CanvasRenderingContext2D::applyShadow):
605
606         setShadow() and setPlatformShadow() now take a ColorSpace.
607         * platform/graphics/GraphicsContext.cpp:
608         (WebCore::GraphicsContext::setShadow):
609         * platform/graphics/GraphicsContext.h:
610         * platform/graphics/cg/GraphicsContextCG.cpp:
611         (WebCore::createCGColorWithColorSpace): New helper to create a 
612         color in a ColorSpace.
613         (WebCore::setCGFillColor): Call new helper.
614         (WebCore::setCGStrokeColor): Call new helper.
615         (WebCore::GraphicsContext::setPlatformShadow): Call new helper.
616         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
617         (WebCore::GraphicsContext::setPlatformShadow):
618
619         Send appropriate ColorSpace to setShadow().
620         * platform/graphics/mac/FontMac.mm:
621         (WebCore::Font::drawGlyphs):
622         * rendering/EllipsisBox.cpp:
623         (WebCore::EllipsisBox::paint):
624         * rendering/InlineFlowBox.cpp:
625         (WebCore::InlineFlowBox::paintTextDecorations):
626         * rendering/InlineTextBox.cpp:
627         (WebCore::paintTextWithShadows):
628         (WebCore::InlineTextBox::paintDecoration):
629         * rendering/RenderBoxModelObject.cpp:
630         (WebCore::RenderBoxModelObject::paintBoxShadow):
631         * rendering/SVGInlineTextBox.cpp:
632         (WebCore::SVGInlineTextBox::paintCharacters):
633         * rendering/SVGRenderSupport.cpp:
634         (WebCore::SVGRenderBase::prepareToRenderSVGContent):
635
636         Attempt to keep ports building.
637         * platform/graphics/cairo/GraphicsContextCairo.cpp:
638         (WebCore::GraphicsContext::setPlatformShadow):
639         * platform/graphics/qt/GraphicsContextQt.cpp:
640         (WebCore::GraphicsContext::setPlatformShadow):
641         * platform/graphics/skia/GraphicsContextSkia.cpp:
642         (WebCore::GraphicsContext::setPlatformShadow):
643         * platform/graphics/wince/GraphicsContextWince.cpp:
644         (WebCore::GraphicsContext::setPlatformShadow):
645         * platform/graphics/wx/GraphicsContextWx.cpp:
646         (WebCore::GraphicsContext::setPlatformShadow):
647
648 2009-11-11  Kent Tamura  <tkent@chromium.org>
649
650         Reviewed by Darin Adler.
651
652         Print the file text of a file upload control in DumpRenderTree for ease of tests.
653         https://bugs.webkit.org/show_bug.cgi?id=31195
654
655         * rendering/RenderFileUploadControl.cpp:
656         (WebCore::RenderFileUploadControl::paintObject):
657         (WebCore::RenderFileUploadControl::fileTextValue):
658         * rendering/RenderFileUploadControl.h:
659         (WebCore::RenderFileUploadControl::isFileUploadControl):
660         (WebCore::toRenderFileUploadControl):
661         * rendering/RenderObject.h:
662         (WebCore::RenderObject::isFileUploadControl):
663         * rendering/RenderTreeAsText.cpp:
664         (WebCore::operator<<):
665
666 2009-11-11  Gavin Barraclough  <barraclough@apple.com>
667
668         Reviewed by Sam Weinig.
669
670         DOM Wrappers for some nodes may not be marked.
671         https://bugs.webkit.org/show_bug.cgi?id=31380
672
673         Some markChildren methods are calling getCachedDOMNodeWrapper, which will find
674         the wrapper for the current world only.  This means that wrappers may be GC'ed
675         prematurely, and properties lost.
676
677         Move to a model more like markDOMObjectWrapper, mark wrappers for all worlds.
678
679         * bindings/js/JSAttrCustom.cpp:
680         (WebCore::JSAttr::markChildren):
681         * bindings/js/JSDOMBinding.cpp:
682         (WebCore::markDOMNodeWrapper):
683         * bindings/js/JSDOMBinding.h:
684         * bindings/js/JSNamedNodeMapCustom.cpp:
685         (WebCore::JSNamedNodeMap::markChildren):
686         * bindings/js/JSNodeCustom.cpp:
687         (WebCore::JSNode::markChildren):
688         * bindings/js/JSSVGElementInstanceCustom.cpp:
689         (WebCore::JSSVGElementInstance::markChildren):
690         * bindings/js/JSStyleSheetCustom.cpp:
691         (WebCore::JSStyleSheet::markChildren):
692
693 2009-11-11  Ben Murdoch  <benm@google.com>
694
695         Reviewed by Darin Adler.
696
697         bindings/js/ScriptObject.cpp is missing and ENABLE(INSPECTOR) guard.
698         https://bugs.webkit.org/show_bug.cgi?id=31384
699
700         No functionality change so no tests required.
701
702         * bindings/js/ScriptObject.cpp: Add ENABLE(INSPECTOR) guard around the JSInspectorBackend.h include.
703
704 2009-11-11  Jens Alfke  <snej@chromium.org>
705
706         Reviewed by Dimitri Glazkov.
707
708         The Big De-Inlining. 450k code size reduction (32-bit x86.)
709         - Various inline functions in V8Binding.h made non-inline.
710         - Some renaming for consistency.
711         - New function createRawTemplate().
712         https://bugs.webkit.org/show_bug.cgi?id=31383
713
714         * bindings/scripts/CodeGeneratorV8.pm:
715         * bindings/v8/V8Binding.cpp:
716         (WebCore::v8DOMWrapperToNative):
717         (WebCore::v8ValueToWebCoreString):
718         (WebCore::v8ValueToAtomicWebCoreString):
719         (WebCore::toInt32):
720         (WebCore::toWebCoreString):
721         (WebCore::toWebCoreStringWithNullCheck):
722         (WebCore::toAtomicWebCoreStringWithNullCheck):
723         (WebCore::toWebCoreStringWithNullOrUndefinedCheck):
724         (WebCore::isUndefinedOrNull):
725         (WebCore::v8Boolean):
726         (WebCore::v8UndetectableString):
727         (WebCore::v8StringOrNull):
728         (WebCore::v8StringOrUndefined):
729         (WebCore::v8StringOrFalse):
730         (WebCore::v8StringToWebCoreString):
731         (WebCore::v8ExternalString):
732         (WebCore::createRawTemplate):  New function.
733         * bindings/v8/V8Binding.h:
734         (WebCore::v8DOMWrapperTo):
735         (WebCore::v8DOMWrapperToNode):
736         (WebCore::v8StringToWebCoreString):
737         (WebCore::v8StringToAtomicWebCoreString):
738
739 2009-11-11  Jens Alfke  <snej@chromium.org>
740
741         Reviewed by Dimitri Glazkov.
742
743         More V8 de-inlining (outlining?) Abstracted a chunk of boilerplate code from every
744         event-listener setter into a new subroutine transferHiddenDependency().
745         https://bugs.webkit.org/show_bug.cgi?id=31377
746
747         * bindings/scripts/CodeGeneratorV8.pm:  Replace boilerplate with call to transferHiddenDependency().
748         * bindings/v8/V8Utilities.cpp:
749         (WebCore::transferHiddenDependency):  New.
750         * bindings/v8/V8Utilities.h:  Declaration of transferHiddenDependency.
751
752 2009-11-11  Brian Weinstein  <bweinstein@apple.com>
753
754         Reviewed by Beth Dakin.
755
756         If we are on Windows, don't try and get the kCGColorSpaceSRGB ColorSpace,
757         because there is a CG bug preventing this from working.
758
759         * platform/graphics/cg/GraphicsContextCG.cpp:
760         (WebCore::sRGBColorSpaceRef):
761
762 2009-11-11  Pavel Feldman  <pfeldman@chromium.org>
763
764         Reviewed by Timothy Hatcher.
765
766         Check that if Storage panel exists before calling its methods
767
768         https://bugs.webkit.org/show_bug.cgi?id=31343
769
770         * inspector/front-end/inspector.js:
771         (WebInspector.addDatabase):
772         (WebInspector.addCookieDomain):
773         (WebInspector.addDOMStorage):
774         (WebInspector.updateDOMStorage):
775
776 2009-11-11  Jens Alfke  <snej@chromium.org>
777
778         Reviewed by Dimitri Glazkov.
779
780         De-inline convertNodeToV8Object(), which expands to a lot of asm code and is inlined 136
781         times in the generated V8 bindings.
782         https://bugs.webkit.org/show_bug.cgi?id=31368
783
784         * bindings/v8/V8DOMWrapper.cpp:
785         (WebCore::V8DOMWrapper::convertNodeToV8Object):  Moved body here from .h file
786         * bindings/v8/V8DOMWrapper.h:  Removed inline method body.
787
788 2009-11-11  Jessie Berlin  <jberlin@webkit.org>
789
790         Reviewed by Timothy Hatcher.
791
792         Display the correct summary in the web inspector for the shorthands
793         border-color, border-width, border-style, margin, and padding.
794         https://bugs.webkit.org/show_bug.cgi?id=7987
795
796         Test: fast/css/shorthands-four-values.html
797
798         * css/CSSMutableStyleDeclaration.cpp:
799         (WebCore::CSSMutableStyleDeclaration::get4Values):
800         Display the summary information in the same way the shorthand would be
801         specified in a css rule.
802
803 2009-11-11  Jens Alfke  <snej@chromium.org>
804
805         Reviewed by Dimitri Glazkov.
806
807         Make V8 bindings return NULL handles instead of calling v8::Undefined(). This has equivalent
808         meaning to the caller, saves code, and appears to save a few cycles at runtime too.
809         https://bugs.webkit.org/show_bug.cgi?id=31367
810
811         * bindings/scripts/CodeGeneratorV8.pm: Change "v8::Undefined()" to "v8::Handle<v8::Value>()"
812
813 2009-11-11  Jens Alfke  <snej@chromium.org>
814
815         Reviewed by Dimitri Glazkov.
816
817         Optimize V8 getDOMNodeMap(), a hot function in Dromaeo DOM tests, by increasing inlining.
818
819         * bindings/v8/DOMData.cpp:
820         (WebCore::DOMData::getCurrent):  Moved getCurrentMainThread to MainThreadDOMData::getCurrent
821             so it can be inlined by its caller.
822         * bindings/v8/DOMData.h:
823         * bindings/v8/MainThreadDOMData.cpp:
824         (WebCore::MainThreadDOMData::getCurrent):  Moved here from DOMData.cpp.
825         (WebCore::MainThreadDOMData::getMainThreadStore):  Added UNLIKELY macro to improve codegen.
826         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):  Combination of getCurrentMainThread
827             and getStore, which inline both calls together.
828         * bindings/v8/MainThreadDOMData.h:
829         (WebCore::MainThreadDOMData::getStore):  Broke out nonvirtual getMainThreadStore for inlineability.
830         * bindings/v8/V8DOMMap.cpp:
831         (WebCore::getDOMNodeMap):  Call new getCurrentMainThreadStore, which is faster.
832
833 2009-11-11  Nate Chapin  <japhet@chromium.org>
834
835         Reviewed by Dimitri Glazkov.
836
837         Add methods to KURLGoogle.cpp declared in http://trac.webkit.org/changeset/50784 but not defined when using KURLGoogle.
838
839         https://bugs.webkit.org/show_bug.cgi?id=31357
840
841         * platform/KURLGoogle.cpp:
842         (WebCore::isSchemeFirstChar):
843         (WebCore::isSchemeChar):
844         (WebCore::KURL::hasPort):
845         (WebCore::KURL::removePort):
846         (WebCore::protocolIsValid):
847
848 2009-11-11  Brent Fulgham  <bfulgham@webkit.org>
849
850         Build fix, no reviewed.
851
852         Correct setPlatformFillColor and setPlatformStrokeColor calls
853         to match new ColorSpace-supporting signatures.
854
855         * platform/graphics/win/GraphicsContextCairoWin.cpp:  Add the
856           color space to the set[...]Color calls.
857
858 2009-11-10  Alexey Proskuryakov  <ap@apple.com>
859
860         Reviewed by Sam Weinig.
861
862         https://bugs.webkit.org/show_bug.cgi?id=31327
863         Clean up SocketStreamHandleClient interface
864
865         No change in behavior.
866
867         * platform/network/SocketStreamHandleClient.h: Removed willOpenStream and willSendData.
868         (WebCore::SocketStreamHandleClient::willOpenStream): Removed. This is currently not used by
869         the only client (WebSocketChannel), and it's not clear what this callback's semantics
870         should be.
871         (WebCore::SocketStreamHandleClient::willSendData): Ditto.
872         (WebCore::SocketStreamHandleClient::receivedCancellation): Removed, because it was misplaced.
873         For ResourceHandle, this method is called when the user cancels authentication sheet,
874         not when something happens with the stream.
875
876         * websockets/WebSocketChannel.h: Some WebSocketChannel methods were virtual without any
877         reason. Also, added didReceiveAuthenticationChallenge/didCancelAuthenticationChallenge.
878
879         * websockets/WebSocketChannel.cpp: Adjusted for the above change. Authentication-related
880         callbacks have no real implementation yet.
881
882 2009-11-11  Zoltan Horvath  <zoltan@webkit.org>
883
884         Reviewed by Eric Seidel.
885
886         Allow custom memory allocation control for the part of page directory in WebCore
887         https://bugs.webkit.org/show_bug.cgi?id=31350
888
889         Inherits the following classes from Noncopyable because these are instantiated
890         by 'new' and these are no need to be copyable:
891
892         class DragController         - instantiated at: WebCore/page/Page.cpp:107
893         class FocusController        - instantiated at: WebCore/page/Page.cpp:109
894         class Settings               - instantiated at: WebCore/page/Page.cpp:116
895         class PluginHalter           - instantiated at: WebCore/page/Page.cpp:160
896         struct ScheduledEvent        - instantiated at: WebCore/page/FrameView.cpp:1275
897         class UserScript             - instantiated at: WebCore/page/PageGroup.cpp:208
898         struct EventHandlerDragState - instantiated at: WebCore/page/EventHandler.cpp:182
899         class XSSAuditor             - instantiated at: WebCore/bindings/js/ScriptController.cpp:70
900         class UserStyleSheet         - instantiated at: WebCore/page/PageGroup.cpp:222
901
902         Inherits PropertyWrapperBase class from Noncopyable because (its child class) 
903         PropertyWrapper is instantiated by 'new' in 
904         WebCore/page/animation/AnimationBase.cpp:564 it is no need to be copyable.
905
906         * page/DragController.h:
907         * page/EventHandler.h:
908         * page/FocusController.h:
909         * page/FrameView.cpp:
910         * page/PluginHalter.h:
911         * page/Settings.h:
912         * page/UserScript.h:
913         * page/UserStyleSheet.h:
914         * page/XSSAuditor.h:
915         * page/animation/AnimationBase.cpp:
916
917 2009-11-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
918
919         Reviewed by Kenneth Rohde Christiansen.
920
921         https://bugs.webkit.org/show_bug.cgi?id=31323
922         Fix a few compiler warnings
923
924         No new tests as there is no new functionality.
925
926         * editing/htmlediting.cpp:
927         (WebCore::isRenderedAsNonInlineTableImageOrHR): Use explicit
928         parentheses to silence gcc 4.4 -Wparentheses warnings
929
930 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
931
932         Reviewed by Mark Rowe.
933
934         Set m_hasPendingGeometryChange to true by default, so that
935         at least one call to NPP_SetWindow is executed, which is
936         needed by the DRT plugin testing framework.
937
938         * plugins/PluginView.cpp:
939         (WebCore::PluginView::PluginView):
940
941 2009-11-11  Csaba Osztrogonác  <ossy@webkit.org>
942
943         Rubber-stamped by Kenneth Rohde Christiansen.
944
945         https://bugs.webkit.org/show_bug.cgi?id=31348
946         [Qt] Remove unnecessary LUT creator from WebCore.pro
947
948         * WebCore.pro:
949
950 2009-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
951
952         Reviewed by Tor Arne Vestbø.
953
954         Introduce a function for querying the input method status
955         in QWebPageClient.
956
957         * platform/qt/QWebPageClient.h:
958
959 2009-11-11  Benjamin Otte  <otte@gnome.org>
960
961         Reviewed by Jan Alonzo.
962
963         [GTK] Black artifacts in youtube.com/html5
964
965         Paint the video to the given size. It's the job of the callers to keep
966         track of aspect ratio. RenderVideo.cpp does it for the <video>
967         element.
968         https://bugs.webkit.org/show_bug.cgi?id=30925
969
970         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
971         (WebCore::MediaPlayerPrivate::paint):
972
973 2009-11-11  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
974
975         Reviewed by Reviewed by Jan Alonzo.
976
977         https://bugs.webkit.org/show_bug.cgi?id=30901
978         [Gtk] Need to de-lint the Atk a11y code
979
980         Cleaned up some missed capitalization style-guideline violations.
981
982         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
983
984 2009-11-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
985
986         Reviewed by Eric Seidel.
987
988         [Qt] Make the default style background color valid.
989         Currently the color is transparent but invalid, this causes
990         list boxes in QtWebKit to be drawn with a black background
991         since r49242.
992         https://bugs.webkit.org/show_bug.cgi?id=31295
993
994         * rendering/style/RenderStyle.h:
995         (WebCore::InheritedFlags::initialBackgroundColor):
996         * rendering/style/StyleBackgroundData.cpp:
997         (WebCore::StyleBackgroundData::StyleBackgroundData):
998
999 2009-11-10  Gavin Barraclough  <barraclough@apple.com>
1000
1001         Reviewed by Geoff Garen.
1002
1003         Simplify the ownership model for worlds - rather than having a pair of weak references
1004         between DOMWrapperWorld and ScriptController/ScriptCachedFrameData, give the latter an
1005         ref pointer to the former.  This reduces complexity & cost of the caching entries in the
1006         back forward cache.
1007
1008         * WebCore.base.exp:
1009         * bindings/js/JSDOMBinding.cpp:
1010         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1011         * bindings/js/JSDOMBinding.h:
1012         (WebCore::DOMWrapperWorld::forgetDocument):
1013         * bindings/js/ScriptCachedFrameData.cpp:
1014         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1015         (WebCore::ScriptCachedFrameData::restore):
1016         (WebCore::ScriptCachedFrameData::clear):
1017         * bindings/js/ScriptCachedFrameData.h:
1018         * bindings/js/ScriptController.cpp:
1019         (WebCore::ScriptController::~ScriptController):
1020         (WebCore::ScriptController::clearWindowShell):
1021         (WebCore::ScriptController::initScript):
1022         (WebCore::ScriptController::updateDocument):
1023         * bindings/js/ScriptController.h:
1024
1025 2009-11-10  Shinichiro Hamaji  <hamaji@chromium.org>
1026
1027         Reviewed by Darin Adler.
1028
1029         rename counter to makeCounterNode in RenderCounter.cpp
1030         https://bugs.webkit.org/show_bug.cgi?id=31289
1031
1032         No new test because this is just a small refactoring.
1033
1034         * rendering/RenderCounter.cpp:
1035         (WebCore::findPlaceForCounter):
1036         (WebCore::makeCounterNode):
1037         (WebCore::RenderCounter::originalText):
1038
1039 2009-11-10  Daniel Bates  <dbates@webkit.org>
1040
1041         Reviewed by Oliver Hunt.
1042
1043         https://bugs.webkit.org/show_bug.cgi?id=30754
1044
1045         Patch 2 of 2.
1046
1047         Removed method EventHandler::dragSourceMovedTo, since it is no longer
1048         needed. This method fired a drag event whenever the mouse moved, but
1049         section 7.9.4 of the HTML 5 spec. defines the drag-and-drop processing
1050         model independent of when the mouse moves. See "Among other changes..."
1051         in the change log for patch 1 for more details.
1052
1053         * WebCore.DragSupport.exp:
1054         * page/EventHandler.cpp: Removed method EventHandler::dragSourceMovedTo.
1055         (WebCore::EventHandler::handleDrag): Updated comment about reentrancy issue.
1056         * page/EventHandler.h:
1057
1058 2009-11-10  Daniel Bates  <dbates@webkit.org>
1059
1060         Reviewed by Oliver Hunt.
1061
1062         https://bugs.webkit.org/show_bug.cgi?id=30754
1063
1064         Patch 1 of 2.
1065
1066         As per Section 7.9.4 of the HTML 5 spec. <http://dev.w3.org/html5/spec/Overview.html#drag-and-drop-processing-model>,
1067         the drag event should always fire before the dragover event.
1068
1069         In fixing this bug, this patch also makes our drag processing model
1070         conform to the HTML 5 spec.
1071
1072         Among the changes, this patch ensures that the drag event isn't fired outside
1073         of the drag-and-drop processing loop, WebCore::EventHandler::updateDragAndDrop.
1074         Currently, the drag event is fired whenever the mouse button is down and the OS
1075         detects the mouse moved. But, as per the spec, the drag event should
1076         fire approx. every 350ms so long as the mouse button is down.
1077
1078         Test: fast/events/drag-and-drop-fire-drag-dragover.html
1079
1080         * page/EventHandler.cpp:
1081         (WebCore::EventHandler::clear):
1082         (WebCore::EventHandler::canHandleDragAndDropForTarget): Formerly named handleDragAndDropForTarget.
1083         Modified to determine when we are in the correct instance of EventHandler to service the drag
1084         and drop operation.
1085         (WebCore::EventHandler::updateDragAndDrop): Moved code from WebCore::EventHandler::dragSourceMovedTo
1086         into this method.
1087         (WebCore::EventHandler::cancelDragAndDrop):
1088         (WebCore::EventHandler::performDragAndDrop):
1089         (WebCore::EventHandler::clearDragState):
1090         * page/EventHandler.h: Added field m_shouldOnlyFireDragOverEvent to determine whether
1091         we should fire both drag and dragover events or only the dragover event.
1092
1093 2009-11-10  Vitaly Repeshko  <vitalyr@chromium.org>
1094
1095         Reviewed by Dimitri Glazkov.
1096
1097         [V8] Fix crash in V8CustomXPathNSResolver (http://crbug.com/26726).
1098         https://bugs.webkit.org/show_bug.cgi?id=31301
1099
1100         Tested by new fast/xpath/xpath-detached-iframe-resolver-crash.html.
1101
1102         Allowed passing V8Proxy for the calling JS context:
1103         * bindings/v8/V8DOMWrapper.h:
1104         (WebCore::V8DOMWrapper::getXPathNSResolver):
1105         * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
1106         (WebCore::V8CustomXPathNSResolver::create):
1107         (WebCore::V8CustomXPathNSResolver::V8CustomXPathNSResolver):
1108         (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
1109         * bindings/v8/custom/V8CustomXPathNSResolver.h:
1110         * bindings/v8/custom/V8DocumentCustom.cpp:
1111         (WebCore::CALLBACK_FUNC_DECL):
1112
1113 2009-11-10  Yael Aharon  <yael.aharon@nokia.com>
1114
1115         Reviewed by Timothy Hatcher.
1116
1117         Implement URL decomposition IDL attributes for HTMLAnchorElement.
1118         https://bugs.webkit.org/show_bug.cgi?id=29972.
1119
1120         Add methods for setting different parts of the URL in href attribute.
1121
1122         Tests: fast/dom/HTMLAnchorElement/set-href-attribute-hash.html
1123                fast/dom/HTMLAnchorElement/set-href-attribute-host.html
1124                fast/dom/HTMLAnchorElement/set-href-attribute-hostname.html
1125                fast/dom/HTMLAnchorElement/set-href-attribute-pathname.html
1126                fast/dom/HTMLAnchorElement/set-href-attribute-port.html
1127                fast/dom/HTMLAnchorElement/set-href-attribute-protocol.html
1128                fast/dom/HTMLAnchorElement/set-href-attribute-search.html
1129
1130         * bindings/js/JSLocationCustom.cpp:
1131         (WebCore::JSLocation::setPort):
1132         * html/HTMLAnchorElement.cpp:
1133         (WebCore::parsePortFromStringPosition):
1134         (WebCore::HTMLAnchorElement::setHash):
1135         (WebCore::HTMLAnchorElement::setHost):
1136         (WebCore::HTMLAnchorElement::setHostname):
1137         (WebCore::HTMLAnchorElement::setPathname):
1138         (WebCore::HTMLAnchorElement::setPort):
1139         (WebCore::HTMLAnchorElement::setProtocol):
1140         (WebCore::HTMLAnchorElement::setSearch):
1141         * html/HTMLAnchorElement.h:
1142         * html/HTMLAnchorElement.idl:
1143         * loader/FrameLoader.cpp:
1144         (WebCore::FrameLoader::iconURL):
1145         * platform/KURL.cpp:
1146         (WebCore::KURL::removePort):
1147         (WebCore::KURL::setPort):
1148         (WebCore::KURL::prettyURL):
1149         (WebCore::protocolIsValid):
1150         * platform/KURL.h:
1151         (WebCore::KURL::canSetHostOrPort):
1152         (WebCore::KURL::canSetPathname):
1153         (WebCore::KURL::hasPort):
1154         * platform/network/soup/ResourceHandleSoup.cpp:
1155         (WebCore::):
1156
1157 2009-11-10  Nate Chapin  <japhet@chromium.org>
1158
1159         Unreviewed, fix Chromium build after http://trac.webkit.org/changeset/50760.
1160
1161         * platform/chromium/PopupMenuChromium.cpp:
1162         (WebCore::PopupContainer::paintBorder):
1163         (WebCore::PopupListBox::paint):
1164         (WebCore::PopupListBox::paintRow):
1165         * platform/graphics/chromium/TransparencyWin.cpp:
1166         (WebCore::TransparencyWin::setupLayerForWhiteLayer):
1167         * platform/graphics/skia/GraphicsContextSkia.cpp:
1168         (WebCore::GraphicsContext::fillRect):
1169         (WebCore::GraphicsContext::fillRoundedRect):
1170         (WebCore::GraphicsContext::setPlatformFillColor):
1171         (WebCore::GraphicsContext::setPlatformStrokeColor):
1172         * rendering/RenderMediaControlsChromium.cpp:
1173         (WebCore::paintMediaSlider):
1174         (WebCore::paintMediaVolumeSlider):
1175         (WebCore::paintMediaTimelineContainer):
1176         * rendering/RenderThemeChromiumMac.mm:
1177         (WebCore::RenderThemeChromiumMac::paintMenuListButton):
1178
1179 2009-11-10  Brady Eidson  <beidson@apple.com>
1180
1181         Reviewed by Sam Weinig.
1182
1183         Repro crash saving pcmag.com article as a webarchive.
1184         <rdar://problem/7381219> and https://webkit.org/b/31322
1185
1186         Test: http/tests/webarchive/cross-origin-stylesheet-crash.html
1187
1188         * css/CSSStyleSheet.cpp:
1189         (WebCore::CSSStyleSheet::addSubresourceStyleURLs): Walk the stylesheet itself instead
1190           of creating a CSSRuleList (and subjecting ourselves to the security origin check)
1191
1192 2009-11-10  Beth Dakin  <bdakin@apple.com>
1193
1194         Attempt 2 to fix Tiger build. No review needed.
1195
1196         * platform/graphics/cg/GraphicsContextCG.cpp:
1197         (WebCore::deviceRGBColorSpaceRef):
1198         (WebCore::sRGBColorSpaceRef):
1199
1200 2009-11-10  Kevin Ollivier  <kevino@theolliviers.com>
1201
1202         wx build fix. Changes needed after r50760.
1203
1204         * platform/graphics/wx/GraphicsContextWx.cpp:
1205         (WebCore::GraphicsContext::GraphicsContext):
1206         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp:
1207         (WebCore::drawTextWithSpacing):
1208
1209 2009-11-10  Alexey Proskuryakov  <ap@apple.com>
1210
1211         Qt build fix.
1212
1213         * platform/network/ResourceHandle.h: Only inherit from AuthenticationClient on platforms
1214         that use ResourceHandle as a delegate (Mac, CFNetwork, Curl).
1215
1216 2009-11-10  Beth Dakin  <bdakin@apple.com>
1217
1218         Tiger build fix. No review needed.
1219
1220         * platform/graphics/cg/GraphicsContextCG.cpp:
1221         (WebCore::sRGBColorSpaceRef):
1222
1223 2009-11-10  Alexey Proskuryakov  <ap@apple.com>
1224
1225         Reviewed by Dan Bernstein.
1226
1227         https://bugs.webkit.org/show_bug.cgi?id=31312
1228         Decouple authentication panel callbacks from ResourceHandle
1229
1230         No change in functionality.
1231
1232         SocketStreamHandle also needs to request credentials, so it's not appropriate to store
1233         ResourceHandle as delegate.
1234
1235         * WebCore.vcproj/WebCore.vcproj:
1236         * platform/network/AuthenticationClient.h: Added.
1237         Added a new interface for listening to authentication panel notifications.
1238
1239         * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what
1240         it wants with the project file.
1241
1242         (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an
1243         interface class.
1244         (WebCore::AuthenticationClient::deref): Ditto.
1245
1246         * platform/network/ResourceHandle.h:
1247         (WebCore::ResourceHandle::refAuthenticationClient): Ditto.
1248         (WebCore::ResourceHandle::derefAuthenticationClient): Ditto.
1249
1250         * platform/network/cf/AuthenticationCF.cpp:
1251         (WebCore::AuthenticationChallenge::AuthenticationChallenge):
1252         (WebCore::AuthenticationChallenge::platformCompare):
1253         * platform/network/cf/AuthenticationChallenge.h:
1254         (WebCore::AuthenticationChallenge::authenticationClient):
1255         * platform/network/chromium/AuthenticationChallenge.h:
1256         (WebCore::AuthenticationChallenge::authenticationClient):
1257         * platform/network/curl/AuthenticationChallenge.h:
1258         (WebCore::AuthenticationChallenge::authenticationClient):
1259         Keeping a reference to AuthenticationClient, not to ResourceHandle.
1260
1261 2009-11-10  Beth Dakin  <bdakin@apple.com>
1262
1263        Second attempted gtk build fix. No review needed.
1264
1265         * html/canvas/CanvasStyle.cpp:
1266         (WebCore::CanvasStyle::applyStrokeColor):
1267
1268
1269 2009-11-10  Gavin Barraclough  <barraclough@apple.com>
1270
1271         Reviewed by Geoff Garen.
1272
1273         Fix back/forwards cache with JSC isolated worlds.
1274         https://bugs.webkit.org/show_bug.cgi?id=31310
1275         <rdar://problem/7328111> Cached back navigation doesn't restore global object in extension isolated world
1276
1277         Store the global object for all worlds, not just the normal world.
1278         Also maintain bidirectional weak references between the ScriptCachedFrameData and the DOMWrapperWorld,
1279         so we can forget global objects if a world goes away.
1280
1281         * bindings/js/JSDOMBinding.cpp:
1282         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1283         * bindings/js/JSDOMBinding.h:
1284         (WebCore::DOMWrapperWorld::rememberScriptCachedFrameData):
1285         (WebCore::DOMWrapperWorld::forgetScriptCachedFrameData):
1286         * bindings/js/ScriptCachedFrameData.cpp:
1287         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1288         (WebCore::ScriptCachedFrameData::forgetWorld):
1289         (WebCore::ScriptCachedFrameData::domWindow):
1290         (WebCore::ScriptCachedFrameData::restore):
1291         (WebCore::ScriptCachedFrameData::clear):
1292         * bindings/js/ScriptCachedFrameData.h:
1293         * bindings/js/ScriptController.h:
1294
1295 2009-11-10  Csaba Osztrogonác  <ossy@webkit.org>
1296
1297         [Qt] Unreviewed buildfix after r50760.
1298
1299         * platform/graphics/qt/GraphicsContextQt.cpp:
1300         (WebCore::GraphicsContext::GraphicsContext):
1301
1302 2009-11-10  Beth Dakin  <bdakin@apple.com>
1303
1304         Attempted build fix. (No review needed.)
1305
1306         * GNUmakefile.am: Adding ColorSpace.h
1307
1308 2009-11-10  Brian Weinstein  <bweinstein@apple.com>
1309
1310         Reviewed by NOBODY - Build Fix.
1311
1312         Updated function calls to take a ColorSpace argument, passing
1313         in DeviceColorSpace for now - this should be fixed. Also added
1314         ColorSpace.h to WebCore project.
1315
1316         * WebCore.vcproj/WebCore.vcproj:
1317         * platform/graphics/win/FontCGWin.cpp:
1318         (WebCore::Font::drawGlyphs):
1319         * platform/graphics/win/GraphicsContextCGWin.cpp:
1320         (WebCore::GraphicsContext::GraphicsContext):
1321         * platform/win/PopupMenuWin.cpp:
1322         (WebCore::PopupMenu::paint):
1323         * platform/win/WebCoreTextRenderer.cpp:
1324         (WebCore::doDrawTextAtPoint):
1325         * rendering/RenderThemeSafari.cpp:
1326         (WebCore::RenderThemeSafari::paintMenuListButton):
1327
1328 2009-11-10  Jens Alfke  <snej@chromium.org>
1329
1330         Reviewed by Darin Adler.
1331
1332         Optimizations to Element::getAttribute
1333         https://bugs.webkit.org/show_bug.cgi?id=30926
1334
1335         * dom/Element.cpp:
1336         (WebCore::Element::getAttribute):  User case-insensitive compare instead of lowercasing the name.
1337         * dom/NamedAttrMap.cpp:
1338         (WebCore::NamedNodeMap::getAttributeItem):  Avoid redundant compares, and do fast/likely compares first.
1339         * platform/text/PlatformString.h:
1340         (WebCore::equalPossiblyIgnoringCase):  New inline method, used by both of the above.
1341
1342 2009-11-10  Beth Dakin  <bdakin@apple.com>
1343
1344         Reviewed by Darin Adler.
1345
1346         Fix for <rdar://problem/7059710> 
1347         -and corresponding-
1348         https://bugs.webkit.org/show_bug.cgi?id=31196 Implement -webkit-
1349         color-correction for CSS colors
1350
1351         New exported symbol for GraphicsContext::fillColor() which now 
1352         accepts a ColorSpace as an optional parameter.
1353         * WebCore.base.exp:
1354
1355         Added a new file, ColorSpace.h, to define the ColorSpace enum.
1356         * WebCore.xcodeproj/project.pbxproj:
1357
1358         Computed Style for -webkit-color-correction
1359         * css/CSSComputedStyleDeclaration.cpp:
1360         (WebCore::):
1361         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1362
1363         Parse -webkit-color-correction
1364         * css/CSSParser.cpp:
1365         (WebCore::CSSParser::parseValue):
1366
1367        Map CSS identifiers to the appropriate values of the ColorSpace enum
1368         * css/CSSPrimitiveValueMappings.h:
1369         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1370         (WebCore::CSSPrimitiveValue::operator ColorSpace):
1371
1372         New property -webkit-color-correction
1373         * css/CSSPropertyNames.in:
1374
1375         Map -webkit-color-correction into the RenderStyle.
1376         * css/CSSStyleSelector.cpp:
1377         (WebCore::CSSStyleSelector::applyProperty):
1378
1379         Add new value sRGB.
1380         * css/CSSValueKeywords.in:
1381
1382         Comment out the reference to sRGB since it will now be inherited as 
1383         a value from CSSValueKeywords.
1384         * css/SVGCSSValueKeywords.in:
1385
1386         Definition of the ColorSpace enum.
1387         * platform/graphics/ColorSpace.h: Added.
1388         (WebCore::):
1389
1390         These functions all now take a ColorSpace as a parameter.
1391         * platform/graphics/GraphicsContext.cpp:
1392         (WebCore::GraphicsContext::setStrokeColor):
1393         (WebCore::GraphicsContext::setFillColor):
1394         (WebCore::GraphicsContext::drawHighlightForText):
1395
1396         Return the appropriate ColorSpace.
1397         (WebCore::GraphicsContext::strokeColorSpace):
1398         (WebCore::GraphicsContext::fillColorSpace):
1399
1400         These functions all call other functions which require a ColorSpace 
1401         as a parameter.
1402         (WebCore::GraphicsContext::setStrokePattern):
1403         (WebCore::GraphicsContext::setFillPattern):
1404         (WebCore::GraphicsContext::setStrokeGradient):
1405         (WebCore::GraphicsContext::setFillGradient):
1406
1407         All of the GraphicsContext functions that take a Color should now 
1408         also take a ColorSpace.
1409         * platform/graphics/GraphicsContext.h:
1410
1411         Added new member variables stokeColorSpace and fillColorSpace.
1412         * platform/graphics/GraphicsContextPrivate.h:
1413         (WebCore::GraphicsContextState::GraphicsContextState):
1414
1415         Attempt to keep the Cairo port building with all of the massive 
1416         changes to GraphicsContext.        
1417         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1418         (WebCore::GraphicsContext::fillRect):
1419         (WebCore::GraphicsContext::setPlatformFillColor):
1420         (WebCore::GraphicsContext::setPlatformStrokeColor):
1421         (WebCore::GraphicsContext::fillRoundedRect):
1422
1423         
1424         * platform/graphics/cg/GraphicsContextCG.cpp:
1425         (WebCore::sRGBColorSpaceRef): New static function that returns a 
1426         CGColorSpaceRef for the sRGB color space.
1427         (WebCore::deviceRGBColorSpaceRef): New static function that returns 
1428         a CGColorSpaceRef for the device RGB color space.
1429
1430         (WebCore::setCGFillColor): Now takes a ColorSpace parameter and 
1431         sets the fill color to the specified color in the given ColorSpace.
1432         (WebCore::setCGStrokeColor): Same, but for stroke.
1433
1434         (WebCore::setCGFillColorSpace): New static to set the 
1435         CGFillColorSpace to the given ColorSpace
1436         (WebCore::setCGStrokeColorSpace): Same, but for stroke.
1437
1438         Send ColorSpaces when appropriate, set ColorSpaces when 
1439         appropriate, and check ColorSpaces when appropriate.
1440         (WebCore::GraphicsContext::GraphicsContext):
1441         (WebCore::GraphicsContext::drawRect):
1442         (WebCore::GraphicsContext::drawLine):
1443         (WebCore::GraphicsContext::fillPath):
1444         (WebCore::GraphicsContext::strokePath):
1445         (WebCore::GraphicsContext::fillRect):
1446         (WebCore::GraphicsContext::fillRoundedRect):
1447         (WebCore::GraphicsContext::strokeRect):
1448         (WebCore::GraphicsContext::drawLineForText):
1449         (WebCore::GraphicsContext::setPlatformStrokeColor):
1450         (WebCore::GraphicsContext::setPlatformFillColor):
1451
1452         Attempt to keep Haiku building.
1453         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
1454         (WebCore::GraphicsContext::fillRect):
1455         (WebCore::GraphicsContext::fillRoundedRect):
1456         (WebCore::GraphicsContext::setPlatformStrokeColor):
1457         (WebCore::GraphicsContext::setPlatformFillColor):
1458
1459         Attempt to keep QT building.
1460         * platform/graphics/qt/GraphicsContextQt.cpp:
1461         (WebCore::GraphicsContext::fillRect):
1462         (WebCore::GraphicsContext::fillRoundedRect):
1463         (WebCore::GraphicsContext::setPlatformStrokeColor):
1464         (WebCore::GraphicsContext::setPlatformFillColor):
1465
1466         Attempt to keep Wince building.
1467         * platform/graphics/wince/GraphicsContextWince.cpp:
1468         (WebCore::GraphicsContext::fillRect):
1469         (WebCore::GraphicsContext::setPlatformFillColor):
1470         (WebCore::GraphicsContext::setPlatformStrokeColor):
1471         (WebCore::GraphicsContext::clearRect):
1472         (WebCore::GraphicsContext::fillRoundedRect):
1473         (WebCore::GraphicsContext::setPlatformShadow):
1474
1475         Attempt to keep WX building.
1476         * platform/graphics/wx/GraphicsContextWx.cpp:
1477         (WebCore::GraphicsContext::fillRect):
1478         (WebCore::GraphicsContext::fillRoundedRect):
1479         (WebCore::GraphicsContext::setPlatformStrokeColor):
1480         (WebCore::GraphicsContext::setPlatformFillColor):
1481
1482         Added functions colorSpace() and setColorSpace()
1483         * rendering/style/RenderStyle.h:
1484         (WebCore::InheritedFlags::colorSpace):
1485         (WebCore::InheritedFlags::setColorSpace):
1486
1487         The ColorSpace is stored here.
1488         * rendering/style/StyleRareInheritedData.cpp:
1489         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
1490         (WebCore::StyleRareInheritedData::operator==):
1491         * rendering/style/StyleRareInheritedData.h:
1492
1493         All of these call sites call GraphicsContext functions which now 
1494         require ColorSpaces.
1495         * editing/SelectionController.cpp:
1496         (WebCore::SelectionController::paintCaret):
1497         * html/canvas/CanvasRenderingContext2D.cpp:
1498         (WebCore::CanvasRenderingContext2D::drawTextInternal):
1499         * html/canvas/CanvasStyle.cpp:
1500         (WebCore::CanvasStyle::applyStrokeColor):
1501         (WebCore::CanvasStyle::applyFillColor):
1502         * inspector/InspectorController.cpp:
1503         (WebCore::drawOutlinedQuad):
1504         * page/FrameView.cpp:
1505         (WebCore::FrameView::paintContents):
1506         * platform/ScrollbarTheme.h:
1507         (WebCore::ScrollbarTheme::paintScrollCorner):
1508         * platform/ScrollbarThemeComposite.cpp:
1509         (WebCore::ScrollbarThemeComposite::paintScrollCorner):
1510         * platform/graphics/Image.cpp:
1511         (WebCore::Image::fillWithSolidColor):
1512         * platform/graphics/mac/FontMac.mm:
1513         (WebCore::Font::drawGlyphs):
1514         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1515         (WebCore::MediaPlayerPrivate::paint):
1516         * rendering/EllipsisBox.cpp:
1517         (WebCore::EllipsisBox::paint):
1518         * rendering/InlineFlowBox.cpp:
1519         (WebCore::InlineFlowBox::paintTextDecorations):
1520         * rendering/InlineTextBox.cpp:
1521         (WebCore::updateGraphicsContext):
1522         (WebCore::paintTextWithShadows):
1523         (WebCore::InlineTextBox::paint):
1524         (WebCore::InlineTextBox::paintSelection):
1525         (WebCore::InlineTextBox::paintCompositionBackground):
1526         (WebCore::InlineTextBox::paintDecoration):
1527         (WebCore::InlineTextBox::paintTextMatchMarker):
1528         (WebCore::InlineTextBox::paintCompositionUnderline):
1529         * rendering/InlineTextBox.h:
1530         * rendering/RenderBlock.cpp:
1531         (WebCore::RenderBlock::fillHorizontalSelectionGap):
1532         (WebCore::RenderBlock::fillVerticalSelectionGap):
1533         (WebCore::RenderBlock::fillLeftSelectionGap):
1534         (WebCore::RenderBlock::fillRightSelectionGap):
1535         * rendering/RenderBoxModelObject.cpp:
1536         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
1537         (WebCore::RenderBoxModelObject::paintBoxShadow):
1538         * rendering/RenderFileUploadControl.cpp:
1539         (WebCore::RenderFileUploadControl::paintObject):
1540         * rendering/RenderFrameSet.cpp:
1541         (WebCore::RenderFrameSet::paintColumnBorder):
1542         (WebCore::RenderFrameSet::paintRowBorder):
1543         * rendering/RenderImage.cpp:
1544         (WebCore::RenderImage::paintReplaced):
1545         * rendering/RenderLayer.cpp:
1546         (WebCore::RenderLayer::paintScrollCorner):
1547         (WebCore::RenderLayer::paintResizer):
1548         * rendering/RenderListBox.cpp:
1549         (WebCore::RenderListBox::paintItemForeground):
1550         (WebCore::RenderListBox::paintItemBackground):
1551         * rendering/RenderListMarker.cpp:
1552         (WebCore::RenderListMarker::paint):
1553         * rendering/RenderObject.cpp:
1554         (WebCore::RenderObject::drawLineForBoxSide):
1555         (WebCore::RenderObject::drawArcForBoxSide):
1556         * rendering/RenderReplaced.cpp:
1557         (WebCore::RenderReplaced::paint):
1558         * rendering/RenderScrollbarTheme.cpp:
1559         (WebCore::RenderScrollbarTheme::paintScrollCorner):
1560         * rendering/RenderThemeMac.mm:
1561         (WebCore::RenderThemeMac::paintMenuListButton):
1562         * rendering/RenderView.cpp:
1563         (WebCore::RenderView::paintBoxDecorations):
1564         * rendering/RenderWidget.cpp:
1565         (WebCore::RenderWidget::paint):
1566         * rendering/SVGInlineTextBox.cpp:
1567         (WebCore::SVGInlineTextBox::paintSelection):
1568         * svg/graphics/SVGPaintServerGradient.cpp:
1569         (WebCore::SVGPaintServerGradient::setup):
1570         * svg/graphics/SVGPaintServerSolid.cpp:
1571         (WebCore::SVGPaintServerSolid::setup):
1572
1573 2009-11-10  Keishi Hattori  <casey.hattori@gmail.com>
1574
1575         Reviewed by Timothy Hatcher.
1576
1577         Web Inspector: Speed up syntax highlighter
1578         https://bugs.webkit.org/show_bug.cgi?id=31291
1579
1580         * inspector/front-end/SourceFrame.js:
1581         (WebInspector.SourceFrame.prototype._loaded):
1582         (WebInspector.SourceSyntaxHighlighter.prototype.process.moveToNextLine): Replace the line content node.
1583         (WebInspector.SourceSyntaxHighlighter.prototype.process):
1584         (WebInspector.SourceSyntaxHighlighter.prototype.appendNonToken):
1585         (WebInspector.SourceSyntaxHighlighter.prototype.syntaxHighlightNode):
1586         (WebInspector.CSSSourceSyntaxHighlighter):
1587         (WebInspector.JavaScriptSourceSyntaxHighlighter):
1588
1589 2009-11-09  Jeremy Orlow  <jorlow@chromium.org>
1590
1591         Reviewed by Eric Seidel.
1592
1593         Remove session storage setting
1594         https://bugs.webkit.org/show_bug.cgi?id=31279
1595
1596         Remove session storage from Settings.  It was added temporarily so we could
1597         disable it by default at runtime in Chromium.  We now disable these things in a
1598         different way, so it's time to remove it.  Qt also depended on this setting for
1599         a short period of time, but after talking to them we agreed that it should be
1600         removed.
1601
1602         This bug is the second half of https://bugs.webkit.org/show_bug.cgi?id=30602
1603
1604         * page/DOMWindow.cpp:
1605         (WebCore::DOMWindow::sessionStorage):
1606         * page/Settings.cpp:
1607         (WebCore::Settings::Settings):
1608         * page/Settings.h:
1609
1610 2009-11-10  Dan Bernstein  <mitz@apple.com>
1611
1612         Reviewed by Eric Carlson and Darin Adler.
1613
1614         WebCore part of making full-screen video pause during scrubbing.
1615
1616         * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing()
1617         and HTMLMediaElement::endScrubbing().
1618
1619 2009-11-10  Anton Muhin  <antonm@chromium.org>
1620
1621         Reviewed by Adam Barth.
1622
1623         Reapply 50562 reverted by 50588 due to issues with sandboxing (should be fine now).
1624         https://bugs.webkit.org/show_bug.cgi?id=31051
1625
1626         * bindings/v8/V8GCController.cpp:
1627         (WebCore::V8GCController::gcEpilogue):
1628         (WebCore::V8GCController::checkMemoryUsage):
1629         * bindings/v8/V8GCController.h:
1630         * bindings/v8/V8Proxy.cpp:
1631         (WebCore::V8Proxy::evaluate):
1632         (WebCore::V8Proxy::runScript):
1633         (WebCore::V8Proxy::callFunction):
1634
1635 2009-11-10  Zoltan Horvath  <zoltan@webkit.org>
1636
1637         Reviewed by Darin Adler.
1638
1639         Allow custom memory allocation control for the part of loader directory in WebCore
1640         https://bugs.webkit.org/show_bug.cgi?id=31161
1641
1642         Inherits the following classes from Noncopyable because these are instantiated
1643         by 'new' and these are no need to be copyable:
1644
1645         class Request - WebCore/loader/loader.cpp:100
1646         struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
1647         class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
1648         class ApplicationCacheHost -  WebCore/loader/DocumentLoader.cpp:151
1649         class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
1650         struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169
1651
1652         Inherits ThreadableLoaderClient class from Noncopyable because (its child class) 
1653         MainThreadBridge is instantiated by 'new' in 
1654         WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.
1655
1656         ThreadableLoaderClient's inheriting has been changed to public.
1657
1658         * loader/ImageLoader.cpp:
1659         * loader/ProgressTracker.cpp:
1660         * loader/RedirectScheduler.cpp:
1661         * loader/Request.h:
1662         * loader/ThreadableLoaderClient.h:
1663         * loader/WorkerThreadableLoader.h:
1664         * loader/appcache/ApplicationCacheHost.h:
1665         * loader/appcache/ApplicationCacheStorage.h:
1666
1667 2009-11-10  Philippe Normand  <pnormand@igalia.com>
1668
1669         Reviewed by Eric Seidel.
1670
1671         https://bugs.webkit.org/show_bug.cgi?id=31047
1672         [GTK] Failing test media/video-played-ranges-1.html
1673
1674         WebKit coding style fixes.
1675
1676         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1677         (WebCore::mediaPlayerPrivateMessageCallback):
1678         (WebCore::MediaPlayerPrivate::naturalSize):
1679         (WebCore::MediaPlayerPrivate::paint):
1680         (WebCore::mimeTypeCache):
1681
1682 2009-11-10  Oliver Hunt  <oliver@apple.com>
1683
1684         Remove build failure introduced by earlier build fix.
1685
1686         * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
1687
1688 2009-11-10  Oliver Hunt  <oliver@apple.com>
1689
1690         Is this the last build fix? grep tells me yes.
1691
1692         * bindings/v8/custom/V8DocumentCustom.cpp:
1693         (WebCore::CALLBACK_FUNC_DECL):
1694
1695 2009-11-10  Oliver Hunt  <oliver@apple.com>
1696
1697         Hopefully the last one.  Why aren't these autogenerated?
1698
1699         * bindings/v8/V8DOMWrapper.cpp:
1700         (WebCore::V8DOMWrapper::setIndexedPropertiesToExternalArray):
1701         (WebCore::V8DOMWrapper::getTemplate):
1702         (WebCore::V8DOMWrapper::convertToV8Object):
1703
1704 2009-11-10  Oliver Hunt  <oliver@apple.com>
1705
1706         Another chrome build fix.
1707
1708         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
1709         (WebCore::CALLBACK_FUNC_DECL):
1710
1711 2009-11-10  Oliver Hunt  <oliver@apple.com>
1712
1713         Yet another chrome buildfix
1714
1715         * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
1716         (WebCore::CALLBACK_FUNC_DECL):
1717         * bindings/v8/custom/V8WebGLArrayCustom.h:
1718         (WebCore::constructCanvasArray):
1719         * bindings/v8/custom/V8WebGLByteArrayCustom.cpp:
1720         (WebCore::CALLBACK_FUNC_DECL):
1721         (WebCore::INDEXED_PROPERTY_GETTER):
1722         (WebCore::INDEXED_PROPERTY_SETTER):
1723         * bindings/v8/custom/V8WebGLFloatArrayCustom.cpp:
1724         (WebCore::CALLBACK_FUNC_DECL):
1725         (WebCore::INDEXED_PROPERTY_GETTER):
1726         (WebCore::INDEXED_PROPERTY_SETTER):
1727         * bindings/v8/custom/V8WebGLIntArrayCustom.cpp:
1728         (WebCore::CALLBACK_FUNC_DECL):
1729         (WebCore::INDEXED_PROPERTY_GETTER):
1730         (WebCore::INDEXED_PROPERTY_SETTER):
1731         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1732         (WebCore::CALLBACK_FUNC_DECL):
1733         (WebCore::vertexAttribAndUniformHelperf):
1734         (WebCore::uniformHelperi):
1735         (WebCore::uniformMatrixHelper):
1736         * bindings/v8/custom/V8WebGLShortArrayCustom.cpp:
1737         (WebCore::CALLBACK_FUNC_DECL):
1738         (WebCore::INDEXED_PROPERTY_GETTER):
1739         (WebCore::INDEXED_PROPERTY_SETTER):
1740         * bindings/v8/custom/V8WebGLUnsignedByteArrayCustom.cpp:
1741         (WebCore::CALLBACK_FUNC_DECL):
1742         (WebCore::INDEXED_PROPERTY_GETTER):
1743         (WebCore::INDEXED_PROPERTY_SETTER):
1744         * bindings/v8/custom/V8WebGLUnsignedIntArrayCustom.cpp:
1745         (WebCore::CALLBACK_FUNC_DECL):
1746         (WebCore::INDEXED_PROPERTY_GETTER):
1747         (WebCore::INDEXED_PROPERTY_SETTER):
1748         * bindings/v8/custom/V8WebGLUnsignedShortArrayCustom.cpp:
1749         (WebCore::CALLBACK_FUNC_DECL):
1750         (WebCore::INDEXED_PROPERTY_GETTER):
1751         (WebCore::INDEXED_PROPERTY_SETTER):
1752
1753 2009-11-10  Oliver Hunt  <oliver@apple.com>
1754
1755         Chrome build fix.
1756
1757         * bindings/v8/V8Index.h:
1758
1759 2009-11-10  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1760
1761         Reviewed by Reviewed by Jan Alonzo.
1762
1763         https://bugs.webkit.org/show_bug.cgi?id=30901
1764         [Gtk] Need to de-lint the Atk a11y code
1765
1766         Removal of various and sundry style-violating nits.
1767
1768         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1769
1770 2009-11-10  Philippe Normand  <pnormand@igalia.com>
1771
1772         Reviewed by Jan Alonzo.
1773
1774         https://bugs.webkit.org/show_bug.cgi?id=31047
1775         [GTK] Failing test media/video-played-ranges-1.html
1776
1777         Fix playback rate setter by remembering the rate was changed. Also
1778         correctly handle reverse playback by doing a seek from end to
1779         beginning of the media.
1780
1781         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1782         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
1783         (WebCore::MediaPlayerPrivate::currentTime):
1784         (WebCore::MediaPlayerPrivate::seek):
1785         (WebCore::MediaPlayerPrivate::hasAudio):
1786         (WebCore::MediaPlayerPrivate::setVolume):
1787         (WebCore::MediaPlayerPrivate::setRate):
1788         (WebCore::MediaPlayerPrivate::updateStates):
1789         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
1790
1791 2009-11-10  Oliver Hunt  <oliver@apple.com>
1792
1793         Reviewed by Maciej Stachowiak.
1794
1795         Rename 3D Canvas related classes to use WebGL prefix
1796         https://bugs.webkit.org/show_bug.cgi?id=29095
1797
1798         Automatic rename of all WebGL related types from Canvas* to
1799         WebGL* per more recent version of the WebGL spec.
1800
1801         Due to the automatic rename I've removed the 600+ line change list.
1802
1803 2009-11-09  Dirk Schulze  <krit@webkit.org>
1804
1805         Reviewed by Oliver Hunt.
1806
1807         SVG feDisplacementMap is not implemented
1808         [https://bugs.webkit.org/show_bug.cgi?id=31255]
1809
1810         This is the implementation of the SVG filter effect
1811         feDisplacementMap. 
1812
1813         Test: svg/filters/feDisplacementMap.svg
1814
1815         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
1816         (WebCore::FEDisplacementMap::apply):
1817
1818 2009-11-09  Kent Tamura  <tkent@chromium.org>
1819
1820         Reviewed by Darin Adler.
1821
1822         Add a comment about null strings and hash functions.
1823         https://bugs.webkit.org/show_bug.cgi?id=29118
1824
1825         * platform/text/StringHash.h:
1826
1827 2009-11-09  Martin Robinson  <martin.james.robinson@gmail.com>
1828
1829         Reviewed by Darin Adler.
1830
1831         Compiler warnings in InspectorResource.h
1832         https://bugs.webkit.org/show_bug.cgi?id=29231
1833
1834         Fix compilation warnings by removing addition operation on an enum type.
1835
1836         * inspector/InspectorResource.h:
1837         (WebCore::InspectorResource::):
1838         (WebCore::InspectorResource::Changes::hasChange):
1839         (WebCore::InspectorResource::Changes::set):
1840         (WebCore::InspectorResource::Changes::setAll):
1841
1842 2009-11-09  Anders Carlsson  <andersca@apple.com>
1843
1844         Reviewed by Darin Adler and Dan Bernstein.
1845
1846         <rdar://problem/7328395>
1847         https://bugs.webkit.org/show_bug.cgi?id=31277
1848
1849         When an object tag's style changes (for example when child nodes are added/removed),
1850         reuse its Frame (if it has one) instead of creating multiple Frames.
1851
1852         Test: fast/dom/HTMLObjectElement/children-changed.html
1853
1854         * loader/FrameLoader.cpp:
1855         (WebCore::FrameLoader::requestObject):
1856
1857 2009-11-09  Norbert Leser  <norbert.leser@nokia.com>
1858
1859         Reviewed by Kenneth Rohde Christiansen.
1860
1861         Moved macro MMP_RULES (LINKEROPTION) into symbian instead of symbian-sbsv2,
1862         since adjustment of RW-section base address will be needed for all new symbian
1863         tool chains, specifically for arm and gcc compilation targets.
1864         Also, change target address to 0xE00000 to be sufficient for all targets.
1865
1866         * WebCore.pro:
1867
1868 2009-11-09  Pavel Feldman  <pfeldman@chromium.org>
1869
1870         Reviewed by Timothy Hatcher.
1871
1872         Web Inspector: Crash when inspecting
1873         WebCore\manual-tests\inspector\dom-mutation.html
1874
1875         https://bugs.webkit.org/show_bug.cgi?id=31259
1876
1877         * inspector/InspectorDOMAgent.cpp:
1878         (WebCore::InspectorDOMAgent::handleEvent):
1879
1880 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1881
1882         Reviewed by Kenneth Rohde Christiansen.
1883
1884         [Qt] Few classes have virtual functions but non-virtual destructor
1885         https://bugs.webkit.org/show_bug.cgi?id=31269
1886
1887         No new tests as there is no functional change.
1888
1889         * platform/qt/QWebPageClient.h:
1890         (QWebPageClient::~QWebPageClient): Add virtual destructor.
1891
1892 2009-11-09  Yael Aharon  <yael.aharon@nokia.com>
1893
1894         Reviewed by Kenneth Rohde Christiansen.
1895
1896         [Qt] Allow setting HTTP headers with empty value in XMLHTTPRequest
1897         https://bugs.webkit.org/show_bug.cgi?id=31140
1898
1899         QtNetwork interprets null string as request to remove the header, not add it.
1900         Replace null values with empty values before passing them to QtNetwork.
1901
1902         Test: http/tests/xmlhttprequest/xmlhttprequest-setrequestheader-no-value.html
1903
1904         * platform/network/qt/ResourceRequestQt.cpp:
1905         (WebCore::ResourceRequest::toNetworkRequest):
1906
1907 2009-11-09  Vadim Zeitlin  <vadim@wxwidgets.org>
1908
1909         Reviewed by Kevin Ollivier.
1910
1911         [wx] Fix handling of alpha channel when using wxWidgets 2.9: it was
1912         simply ignored before resulting in transparent areas being black in PNG
1913         images for example.
1914         
1915         https://bugs.webkit.org/show_bug.cgi?id=30823
1916
1917         * platform/image-decoders/wx/ImageDecoderWx.cpp:
1918         (WebCore::RGBA32Buffer::asNewNativeImage):
1919
1920 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1921
1922         Reviewed by Kenneth Rohde Christiansen.
1923
1924         Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
1925         https://bugs.webkit.org/show_bug.cgi?id=31040
1926
1927         No new tests as there is no functional change.
1928
1929         * dom/Document.cpp:
1930         (WebCore::Document::recalcStyleSelector):
1931         * editing/TextIterator.cpp:
1932         (WebCore::pushFullyClippedState):
1933         * editing/VisibleSelection.cpp:
1934         (WebCore::VisibleSelection::appendTrailingWhitespace):
1935         * html/HTMLLinkElement.cpp:
1936         (WebCore::HTMLLinkElement::process):
1937         * loader/RedirectScheduler.cpp:
1938         (WebCore::RedirectScheduler::mustLockBackForwardList):
1939         * loader/appcache/ApplicationCacheGroup.cpp:
1940         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
1941         * platform/graphics/qt/FontCacheQt.cpp:
1942         (WebCore::FontPlatformDataCacheKey::computeHash):
1943         * rendering/RenderBlock.cpp:
1944         (WebCore::RenderBlock::handleRunInChild):
1945         * rendering/RenderBox.cpp:
1946         (WebCore::RenderBox::calcHeight):
1947         * rendering/RenderTextControlMultiLine.cpp:
1948         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
1949         * rendering/style/RenderStyle.cpp:
1950         (WebCore::RenderStyle::diff):
1951         * svg/SVGAnimateElement.cpp:
1952         (WebCore::parseNumberValueAndUnit):
1953         * svg/SVGAnimationElement.cpp:
1954         (WebCore::SVGAnimationElement::startedActiveInterval):
1955         * svg/SVGPreserveAspectRatio.cpp:
1956         (WebCore::SVGPreserveAspectRatio::getCTM):
1957
1958 2009-11-09  Shinichiro Hamaji  <hamaji@chromium.org>
1959
1960         Reviewed by Dimitri Glazkov.
1961
1962         Win chromium is slow to draw transparent texts
1963         https://bugs.webkit.org/show_bug.cgi?id=31258
1964
1965         Clip graphics context to reduce calculation.
1966
1967         No new tests because this change only affects performance.
1968
1969         * platform/graphics/chromium/FontChromiumWin.cpp:
1970         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
1971         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
1972
1973 2009-11-09  Carol Szabo  <carol.szabo@nokia.com>
1974
1975         Reviewed by Darin Adler.
1976
1977         showTree(CounterNode*) generates too little info and has too many spaces.
1978         https://bugs.webkit.org/show_bug.cgi?id=31212
1979
1980         No new tests as the change has no functional effect it is just for
1981         improved debugging.
1982
1983         * rendering/CounterNode.cpp:
1984         (WebCore::showTreeAndMark):
1985         Changed to also show addresses of parent, next and previous
1986         siblings.
1987
1988 2009-11-09  Stuart Morgan  <stuartmorgan@chromium.org>
1989
1990         Reviewed by Darin Adler.
1991
1992         Moves Mac implementation of setUseSecureKeyboardEntry to Frame.cpp and
1993         enables it PLATFORM(CHROMIUM) in addition to PLATFORM(MAC).
1994
1995         https://bugs.webkit.org/show_bug.cgi?id=31083
1996
1997         No new tests; implementation is unchanged.
1998
1999         * page/Frame.cpp:
2000         (WebCore::Frame::setUseSecureKeyboardEntry):
2001         * page/mac/FrameMac.mm:
2002
2003 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2004
2005         Reviewed by Jan Alonzo.
2006
2007         Make XP_UNIX tests consistent
2008         https://bugs.webkit.org/show_bug.cgi?id=31250
2009
2010         No new tests as there is no functional change.
2011
2012         * plugins/PluginView.cpp:
2013         (WebCore::PluginView::setFrameRect): Test if XP_UNIX is defined
2014         instead of the value of the macro
2015
2016         * plugins/gtk/PluginViewGtk.cpp:
2017         (WebCore::PluginView::setNPWindowIfNeeded): Test if the XP_UNIX is
2018         defined instead of using the PLATFORM macro to be consistent
2019         (WebCore::PluginView::getValue): Ditto.
2020
2021 2009-11-09  Kevin Watters  <kevinwatters@gmail.com>
2022
2023         Reviewed by Darin Adler.
2024
2025         Thunk to the main thread from ~Database to deref Database's m_document.
2026
2027         If the Database was the Document's last referrer, then ~Document occurs on the
2028         Database thread, and ASSERT(!m_styleRecalcTimer.isActive()) hits a main thread
2029         ASSERT in debug builds.
2030
2031         * storage/Database.cpp:
2032         (WebCore::derefDocument):
2033         (WebCore::Database::~Database):
2034
2035 2009-11-09  Mark Mentovai  <mark@chromium.org>
2036
2037         Reviewed by Dan Bernstein.
2038
2039         Track "can have scrollbar" state within FrameView independently of the
2040         individual scrollbar states in ScrollView.
2041
2042         rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
2043         REGRESSION (r48064): mint.com loses scrollbars after coming out of
2044         edit mode.
2045
2046         rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
2047         REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
2048
2049         Test: fast/overflow/scrollbar-restored.html
2050
2051         * WebCore.base.exp:
2052         * page/FrameView.cpp:
2053         (WebCore::FrameView::FrameView):
2054         (WebCore::FrameView::resetScrollbars):
2055         (WebCore::FrameView::setCanHaveScrollbars):
2056         (WebCore::FrameView::updateCanHaveScrollbars):
2057         (WebCore::FrameView::layout):
2058         * page/FrameView.h:
2059         * platform/ScrollView.h:
2060
2061 2009-11-09  Keishi Hattori  <casey.hattori@gmail.com>
2062
2063         Reviewed by Timothy Hatcher.
2064
2065         Web Inspector: CSS syntax highlighter doesn't recognize negative numbers
2066         https://bugs.webkit.org/show_bug.cgi?id=31257
2067
2068         * inspector/front-end/SourceFrame.js:
2069
2070 2009-11-09  Alexander Pavlov  <apavlov@chromium.org>
2071
2072         Reviewed by Timothy Hatcher.
2073
2074         Web Inspector: Debugger shortcuts (F8, F10, F11) have no effect if the Console view is open
2075         https://bugs.webkit.org/show_bug.cgi?id=31252
2076
2077         Route F1-F12 keypresses in the Console view to the current panel if there is one.
2078
2079         Test: manual-tests/inspector/debugger-shortcuts-with-console-opened.html
2080
2081         * inspector/front-end/ConsoleView.js:
2082         (WebInspector.ConsoleView.prototype._promptKeyDown):
2083         * inspector/front-end/utilities.js:
2084         ():
2085         * manual-tests/inspector/debugger-shortcuts-with-console-opened.html: Added.
2086
2087 2009-11-09  Yael Aharon  <yael.aharon@nokia.com>
2088
2089         Reviewed by Kenneth Rohde Christiansen.
2090
2091         [Qt] Pass credentials provided by XMLHTTPRequest to the network request.
2092         https://bugs.webkit.org/show_bug.cgi?id=31208
2093
2094         After r42483, the credentials are no longer passed to the network request
2095         in the URL of the request.
2096         Pass the credentials from XMLHTTPRequest to the network request, the same
2097         way that other ports do.
2098
2099         After this patch LayoutTests/http/xmlhttprequest/basic-auth.html passes.
2100
2101         * platform/network/qt/ResourceHandleQt.cpp:
2102         (WebCore::ResourceHandle::start):
2103         (WebCore::ResourceHandle::loadResourceSynchronously):
2104
2105 2009-11-09  Zoltan Horvath  <zoltan@webkit.org>
2106
2107         Unreviewed.
2108
2109         https://bugs.webkit.org/show_bug.cgi?id=31161
2110
2111         Roll back r50657 because it breaks the MAC builds.
2112
2113         * loader/ImageLoader.cpp:
2114         * loader/ProgressTracker.cpp:
2115         * loader/RedirectScheduler.cpp:
2116         * loader/Request.h:
2117         * loader/ThreadableLoaderClient.h:
2118         * loader/WorkerThreadableLoader.h:
2119         * loader/appcache/ApplicationCacheHost.h:
2120         * loader/appcache/ApplicationCacheStorage.h:
2121         * loader/icon/IconDatabaseClient.h:
2122
2123 2009-11-09  Zoltan Horvath  <zoltan@webkit.org>
2124
2125         Reviewed by Darin Adler.
2126
2127         Allow custom memory allocation control for the part of loader directory in WebCore
2128         https://bugs.webkit.org/show_bug.cgi?id=31161
2129
2130         Inherits the following classes from Noncopyable because these are instantiated
2131         by 'new' and these are no need to be copyable:
2132
2133         class Request - WebCore/loader/loader.cpp:100
2134         struct ScheduledRedirection - WebCore/loader/RedirectScheduler.cpp:164
2135         class IconDatabaseClient - WebCore/loader/icon/IconDatabase.cpp:89
2136         class ApplicationCacheStorage - WebCore/loader/appcache/ApplicationCacheStorage.cpp:1121
2137         class ApplicationCacheHost -  WebCore/loader/DocumentLoader.cpp:151
2138         class ImageEventSender - WebCore/loader/ImageLoader.cpp:54
2139         struct ProgressItem - WebCore/loader/ProgressTracker.cpp:169
2140
2141         Inherits ThreadableLoaderClient class from Noncopyable because (its child class) 
2142         MainThreadBridge is instantiated by 'new' in 
2143         WebCore/loader/WorkerThreadableLoader.cpp:59 it is no need to be copyable.
2144
2145         ThreadableLoaderClient's inheriting has been changed to public.
2146
2147         * loader/ImageLoader.cpp:
2148         * loader/ProgressTracker.cpp:
2149         * loader/RedirectScheduler.cpp:
2150         * loader/Request.h:
2151         * loader/ThreadableLoaderClient.h:
2152         * loader/WorkerThreadableLoader.h:
2153         * loader/appcache/ApplicationCacheHost.h:
2154         * loader/appcache/ApplicationCacheStorage.h:
2155         * loader/icon/IconDatabaseClient.h:
2156
2157 2009-11-09  Zoltan Horvath  <zoltan@webkit.org>
2158
2159         Reviewed by Darin Adler.
2160
2161         Allow custom memory allocation control for WebCore's DocLoader
2162         https://bugs.webkit.org/show_bug.cgi?id=31163
2163
2164         Inherits DocLoader class from Noncopyable because it is
2165         instantiated by 'new' in WebCore/dom/Document.cpp:370 and 
2166         it is no need to be copyable.
2167
2168         * loader/DocLoader.h:
2169
2170 2009-11-09  Zoltan Horvath  <zoltan@webkit.org>
2171
2172         Reviewed by Darin Adler.
2173
2174         Allow custom memory allocation control for WebCore's Tokenizer
2175         https://bugs.webkit.org/show_bug.cgi?id=31162
2176
2177         Inherits Tokenizer class from Noncopyable because (its child class)
2178         ImageTokenizer instantiated by 'new' in WebCore/loader/ImageDocument.cpp:178 
2179         and it is no need to be copyable.
2180
2181         * dom/Tokenizer.h:
2182
2183 2009-11-09  Zoltan Horvath  <zoltan@webkit.org>
2184
2185         Reviewed by Darin Adler.
2186
2187         Allow custom memory allocation control for WebCore's DeleteButtonController
2188         https://bugs.webkit.org/show_bug.cgi?id=31105
2189
2190         Inherits DeleteButtonController class from Noncopyable because it is 
2191         instantiated by 'new' in WebCore/editing/Editor.cpp:919 and
2192         it is no need to be copyable.  
2193
2194         * editing/DeleteButtonController.h:
2195
2196 2009-11-09  Martin Robinson  <martin.james.robinson@gmail.com>
2197
2198         Reviewed by Jan Alonzo.
2199
2200         [GTK] Expose Page::tabKeyCyclesThroughElements in the API
2201         https://bugs.webkit.org/show_bug.cgi?id=30482
2202
2203         Expose Page::tabKeyCyclesThroughElements as a property of
2204         WebKitWebView.
2205
2206         No new tests; fast/events/keypress-insert-tab.html is no longer skipped.
2207
2208         * platform/gtk/KeyEventGtk.cpp: Correct m_text for tab key presses.
2209         (WebCore::singleCharacterString):
2210
2211 2009-11-09  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
2212
2213         Reviewed by Xan Lopez.
2214
2215         https://bugs.webkit.org/show_bug.cgi?id=25415
2216         [GTK][ATK] Please implement support for get_text_at_offset
2217
2218         Fix a crasher that occurred with text which included newline
2219         chars in the markup.
2220
2221         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2222         (convertUniCharToUTF8):
2223
2224 2009-11-05  Jakub Wieczorek  <faw217@gmail.com>
2225
2226         Reviewed by Holger Freyther.
2227
2228         [Qt] The XML tokenizer reports a parse error twice if it occurs before the document element is found.
2229         https://bugs.webkit.org/show_bug.cgi?id=31144
2230
2231         XMLTokenizer::doEnd() uses an additional logic to report a parse failure in
2232         documents that end prematurely but are not considered invalid by QXmlStream.
2233         This is to stay compatible with the libxml2 implementation.
2234         However, that code path would be also hit in situations when it should not,
2235         i.e. the error would have already been caught and handled. As a result, the
2236         same error would be reported twice.
2237
2238         No new tests, because the problem is already covered by
2239         fast/parser/xml-declaration-missing-ending-mark.html.
2240
2241         * dom/XMLTokenizerQt.cpp:
2242         (WebCore::XMLTokenizer::doEnd):
2243
2244 2009-11-08  Keishi Hattori  <casey.hattori@gmail.com>
2245
2246         Reviewed by Pavel Feldman.
2247
2248         Web Inspector: Inspector should support copy() in the command line
2249         https://bugs.webkit.org/show_bug.cgi?id=31238
2250
2251         * inspector/InspectorBackend.cpp:
2252         (WebCore::InspectorBackend::copyText): Added.
2253         * inspector/InspectorBackend.h: Added copyText
2254         * inspector/InspectorBackend.idl: Added copyText
2255         * inspector/front-end/InjectedScript.js:
2256         (InjectedScript._copy): Added.
2257         (InjectedScript._ensureCommandLineAPIInstalled):
2258
2259 2009-11-08  Drew Wilson  <atwilson@chromium.org>
2260
2261         Reviewed by Dimitri Glazkov.
2262
2263         V8 WorkerContextExecutionProxy does not handle SharedWorkers
2264         https://bugs.webkit.org/show_bug.cgi?id=31226
2265
2266         Now checks to see what type of context is active and creates the
2267         appropriate wrapper (DEDICATEDWORKERCONTEXT vs SHAREDWORKERCONTEXT).
2268
2269         Added support for converting to SharedWorkers and SharedWorkerContexts.
2270
2271         Test: Existing layout tests cover this case (start passing in Chrome).
2272
2273         * bindings/v8/WorkerContextExecutionProxy.cpp:
2274         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
2275         Now generates the right type of DOMWrapper for SharedWorkerContexts.
2276         (WebCore::WorkerContextExecutionProxy::convertToV8Object):
2277         Added support for SHAREDWORKERCONTEXT.
2278         (WebCore::WorkerContextExecutionProxy::convertEventTargetToV8Object):
2279         Added support for SharedWorker and SharedWorkerContext.
2280
2281 2009-11-08  Johnny Ding  <johnnyding.webkit@gmail.com>
2282
2283         Reviewed by Dimitri Glazkov.
2284
2285         https://bugs.webkit.org/show_bug.cgi?id=31224
2286         [V8] Return StyleSheet object instead of HTMLStyleElement w/document.styleSheets named property getter.
2287
2288         Test: fast/dom/StyleSheet/get-stylesheet-byname.html
2289
2290         * bindings/v8/custom/V8StyleSheetListCustom.cpp:
2291         (WebCore::NAMED_PROPERTY_GETTER):
2292
2293 2009-11-08  Pavel Feldman  <pfeldman@chromium.org>
2294
2295         Reviewed by Timothy Hatcher.
2296
2297         Web Inspector: "Search again" on scripts panel switches
2298         to the script this search started with.
2299
2300         https://bugs.webkit.org/show_bug.cgi?id=31243
2301
2302         * inspector/front-end/Panel.js:
2303         (WebInspector.Panel.prototype.jumpToNextSearchResult):
2304
2305 2009-11-08  Kent Tamura  <tkent@chromium.org>
2306
2307         Reviewed by Darin Adler.
2308
2309         Simplify Icon interface.
2310         https://bugs.webkit.org/show_bug.cgi?id=31154
2311
2312         - Remove Icon::createIconForFile().  createIconForFiles() covers
2313           createIconForFile()'s role.
2314         - Remove FileChooser::chooseIcon()
2315         - Change the parameter types of FileChooser constructor and the
2316           factory method, String -> const Vector<String>&, in order to
2317           support initialization with multiple files.
2318         - Remove the icon loading code in IconChromiumWin.cpp, which
2319           doesn't work because of the sandbox.
2320
2321         No tests because it's just a refactoring.
2322
2323         * platform/FileChooser.cpp:
2324         (WebCore::FileChooser::FileChooser):
2325         (WebCore::FileChooser::create):
2326         (WebCore::FileChooser::chooseFile):
2327         (WebCore::FileChooser::chooseFiles):
2328         * platform/FileChooser.h:
2329         * platform/graphics/Icon.h:
2330         * platform/graphics/chromium/IconChromiumLinux.cpp:
2331         * platform/graphics/chromium/IconChromiumMac.cpp:
2332         * platform/graphics/chromium/IconChromiumWin.cpp:
2333         (WebCore::Icon::createIconForFiles):
2334         * platform/graphics/gtk/IconGtk.cpp:
2335         (WebCore::Icon::createIconForFiles):
2336         * platform/graphics/haiku/IconHaiku.cpp:
2337         * platform/graphics/mac/IconMac.mm:
2338         (WebCore::Icon::createIconForFiles):
2339         * platform/graphics/qt/IconQt.cpp:
2340         (WebCore::Icon::createIconForFiles):
2341         * platform/graphics/win/IconWin.cpp:
2342         (WebCore::Icon::createIconForFiles):
2343         * platform/graphics/wx/IconWx.cpp:
2344         * rendering/RenderFileUploadControl.cpp:
2345         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
2346
2347 2009-11-08  Daniel Bates  <dbates@webkit.org>
2348
2349         Reviewed by Adam Barth.
2350
2351         https://bugs.webkit.org/show_bug.cgi?id=31098
2352
2353         Allows same-origin plugin-based content to load.
2354
2355         Test: http/tests/security/xssAuditor/object-src-inject.html
2356
2357         * page/XSSAuditor.cpp:
2358         (WebCore::XSSAuditor::canLoadExternalScriptFromSrc): Modified to call XSSAuditor::isSameOriginResource.
2359         (WebCore::XSSAuditor::canLoadObject): Ditto.
2360         (WebCore::XSSAuditor::canSetBaseElementURL): Ditto. 
2361         (WebCore::XSSAuditor::isSameOriginResource): Added.
2362         * page/XSSAuditor.h:
2363
2364 2009-11-08  David Levin  <levin@chromium.org>
2365
2366         Reviewed by NOBODY (chromium build fix).
2367
2368         * platform/network/HTTPParsers.cpp:
2369         (WebCore::parseDate): Changed this to not
2370         use a date parser that needs ExecState passed.
2371         
2372 2009-11-08  David Levin  <levin@chromium.org>
2373
2374         Unreviewed build fix for chromium.
2375
2376         * platform/graphics/skia/GraphicsContextSkia.cpp:
2377         (WebCore::GraphicsContext::fillPath):
2378         (WebCore::GraphicsContext::fillRect):
2379         (WebCore::GraphicsContext::strokePath):
2380         (WebCore::GraphicsContext::strokeRect):
2381
2382 2009-11-08  David Levin  <levin@chromium.org>
2383
2384         Unreviewed build fix for chromium.
2385
2386         Build fix for https://bugs.webkit.org/show_bug.cgi?id=31219
2387         Clean up GraphicsContext's current concept of ColorSpace
2388
2389         * platform/graphics/skia/GraphicsContextSkia.cpp:
2390         (WebCore::GraphicsContext::fillPath):
2391         (WebCore::GraphicsContext::fillRect):
2392         (WebCore::GraphicsContext::strokePath):
2393         (WebCore::GraphicsContext::strokeRect):
2394
2395 2009-11-08  Pavel Feldman  <pfeldman@chromium.org>
2396
2397         Reviewed by Timothy Hatcher.
2398
2399         Web Inspector: [REGRESSION] committing style edit
2400         clears elements panel selection.
2401
2402         https://bugs.webkit.org/show_bug.cgi?id=31242
2403
2404         * inspector/front-end/ElementsTreeOutline.js:
2405         (WebInspector.ElementsTreeOutline.prototype.update):
2406         * inspector/front-end/StylesSidebarPane.js:
2407         (WebInspector.StylePropertyTreeElement.prototype.):
2408         (WebInspector.StylePropertyTreeElement.prototype):
2409
2410 2009-11-08  Janne Koskinen  <janne.p.koskinen@digia.com>
2411
2412         Reviewed by Holger Freyther.
2413
2414         ResourceRequest to be class instead of struct
2415         https://bugs.webkit.org/show_bug.cgi?id=30670
2416
2417         Started as a compilation fix for Symbian where the compiler makes a distinction between
2418         class and struct in function argument signatures.
2419         Changed all forward declarations of ResourceRequest to have class in the forward
2420         declaration instead of struct and changed the definition of ResourceRequest to be class
2421         and added access qualifiers where missing. Additionally two references of friend
2422         struct ResourceRequestBase changed to class instead.
2423
2424         * history/HistoryItem.h:
2425         * inspector/InspectorController.h:
2426         * inspector/InspectorResource.h:
2427         * loader/DocumentThreadableLoader.h:
2428         * loader/FrameLoaderClient.h:
2429         * loader/MainResourceLoader.h:
2430         * loader/ResourceLoadNotifier.h:
2431         * loader/SubresourceLoader.h:
2432         * loader/SubresourceLoaderClient.h:
2433         * loader/ThreadableLoader.h:
2434         * loader/WorkerThreadableLoader.h:
2435         * loader/appcache/ApplicationCache.h:
2436         * loader/appcache/ApplicationCacheHost.h:
2437         * platform/CrossThreadCopier.h:
2438         * platform/network/ResourceHandle.h:
2439         * platform/network/ResourceHandleClient.h:
2440         * platform/network/ResourceRequestBase.h:
2441         * platform/network/cf/ResourceRequest.h:
2442         * platform/network/cf/ResourceRequestCFNet.h:
2443         * platform/network/chromium/ResourceRequest.h:
2444         * platform/network/curl/ResourceRequest.h:
2445         * platform/network/qt/ResourceRequest.h:
2446         * platform/network/soup/ResourceRequest.h:
2447         * xml/XMLHttpRequest.h:
2448
2449 2009-11-08  Dan Bernstein  <mitz@apple.com>
2450
2451         Reviewed by Simon Fraser.
2452
2453         <rdar://problem/7363434> Crash inside RenderObject::localToAbsolute
2454         below FrameView::layout
2455         https://bugs.webkit.org/show_bug.cgi?id=31093
2456
2457         Test: fast/block/positioning/relative-positioned-inline-container.html
2458
2459         In <http://trac.webkit.org/changeset/19148>, setStaticY() was changed
2460         to mark the object for layout, doing so without marking its ancestors.
2461         However, RenderBlock::skipLeadingWhitespace and
2462         RenderBlock::skipTrailingWhitespace() call setStaticY() on a relative-
2463         positioned inline container, causing it to be marked for layout without
2464         ever going back to give it layout, and thus layout could end with a
2465         dirty object still in the tree, leading to all sorts of badness.
2466
2467         The fix is to revert setStaticY() to not marking the object dirty, and
2468         instead do it in the call sites that require it, which are in
2469         RenderBlock and RenderFlexibleBox.
2470
2471         * rendering/RenderBlock.cpp:
2472         (WebCore::RenderBlock::adjustPositionedBlock):
2473         * rendering/RenderFlexibleBox.cpp:
2474         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
2475         (WebCore::RenderFlexibleBox::layoutVerticalBox):
2476         * rendering/RenderLayer.cpp:
2477         * rendering/RenderLayer.h:
2478         (WebCore::RenderLayer::setStaticY):
2479
2480 2009-11-07  Daniel Bates  <dbates@webkit.org>
2481
2482         Reviewed by Darin Adler.
2483
2484         https://bugs.webkit.org/show_bug.cgi?id=20780
2485         
2486         Fixes an issue where the onchange event handler is not fired when the 
2487         input field is autocompleted.
2488         
2489         We cannot test this using DRT since DRT cannot emulate autocompletion.
2490         So, a manual-test is included.
2491
2492         Tests: manual-tests/autocompletion-fire-onchange.html
2493
2494         * manual-tests/autocompletion-fire-onchange.html: Added.
2495         * rendering/RenderTextControl.cpp:
2496         (WebCore::RenderTextControl::setInnerTextValue):
2497
2498 2009-11-07  Benjamin Otte  <otte@gnome.org>
2499
2500         Reviewed by Holger Freyther.
2501
2502         Mark redrawn areas on image surfaces as dirty.
2503
2504         This is required to conform to the Cairo API, but is currently only
2505         used by debugging tools like cairo-trace.
2506
2507         * platform/graphics/cairo/ImageBufferCairo.cpp:
2508         (WebCore::ImageBuffer::platformTransformColorSpace):
2509         (WebCore::putImageData):
2510
2511 2009-11-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
2512
2513         Reviewed by Xan Lopez.
2514
2515         https://bugs.webkit.org/show_bug.cgi?id=30878
2516         [Gtk] atk_text_get_text() fails in entries when the end_offset is -1
2517
2518         If the end_offset is -1, use the String length as the end_offset.
2519
2520         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2521         (webkit_accessible_text_get_text):
2522
2523 2009-11-06  Beth Dakin  <bdakin@apple.com>
2524
2525         Reviewed by Adele Peterson.
2526
2527         Fix for https://bugs.webkit.org/show_bug.cgi?id=31219 Clean up 
2528         GraphicsContext's current concept of ColorSpace
2529
2530         ColorSpace is now called ColorType. The variables on the state we 
2531         appropriately re-named as well. I removed strokeColorSpace() and 
2532         fillColorSpace() from GraphicsContext since they were never called. 
2533
2534         * platform/graphics/GraphicsContext.cpp:
2535         (WebCore::GraphicsContext::setStrokeColor):
2536         (WebCore::GraphicsContext::setFillColor):
2537         (WebCore::GraphicsContext::setStrokePattern):
2538         (WebCore::GraphicsContext::setFillPattern):
2539         (WebCore::GraphicsContext::setStrokeGradient):
2540         (WebCore::GraphicsContext::setFillGradient):
2541         * platform/graphics/GraphicsContext.h:
2542         (WebCore::):
2543         * platform/graphics/GraphicsContextPrivate.h:
2544         (WebCore::GraphicsContextState::GraphicsContextState):
2545         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2546         (WebCore::GraphicsContext::fillPath):
2547         (WebCore::GraphicsContext::strokePath):
2548         * platform/graphics/cg/GraphicsContextCG.cpp:
2549         (WebCore::calculateDrawingMode):
2550         (WebCore::GraphicsContext::drawPath):
2551         (WebCore::GraphicsContext::fillPath):
2552         (WebCore::GraphicsContext::strokePath):
2553         (WebCore::GraphicsContext::fillRect):
2554         (WebCore::GraphicsContext::strokeRect):
2555         * platform/graphics/qt/GraphicsContextQt.cpp:
2556         (WebCore::GraphicsContext::fillPath):
2557         (WebCore::GraphicsContext::strokePath):
2558         (WebCore::GraphicsContext::fillRect):
2559         * platform/graphics/wince/GraphicsContextWince.cpp:
2560         (WebCore::GraphicsContext::fillPath):
2561         (WebCore::GraphicsContext::fillRect):
2562
2563 2009-11-06  Brian Weinstein  <bweinstein@apple.com>
2564
2565         Reviewed by Tim Hatcher.
2566
2567         Fixes <http://webkit.org/b/31177>.
2568         Web Inspector: Bind backspace to delete cookies and DOM Storage.
2569         
2570         Refactor editing code from DOMStorageDataGrid to DataGrid, so other
2571         places in the inspector can use editing in DataGrid (added a FIXME for
2572         some stuff that needs to be generalized).
2573         
2574         Also added deleting functionality to DataGrid, and implemented it for
2575         Cookies and DOM Storage. The reason this patch is so big is because of
2576         the refactoring of editing code, which won't be used yet in a cross-datagrid
2577         way, but should be able to.
2578         
2579         Additionally, moved the callbacks members from DOMStorageDataGrid to
2580         DOMStorageItemsView, which allowed us to delete DOMStorageDataGrid, to 
2581         make the architecture of DOM Storage look a lot more like the Cookies view.
2582         
2583         Lastly, added a preventDefault call in ElementsTreeOutline to prevent the 
2584         inspector from beeping at you when you delete an element.
2585
2586         * WebCore.gypi: Removed DOMStorageDataGrid.
2587         * WebCore.vcproj/WebCore.vcproj: Removed DOMStorageDataGrid.
2588         * inspector/front-end/CookieItemsView.js:
2589         (WebInspector.CookieItemsView.prototype.dataGridForCookies):
2590         (WebInspector.CookieItemsView.prototype._deleteButtonClicked):
2591         (WebInspector.CookieItemsView.prototype._deleteCookieCallback):
2592         * inspector/front-end/DOMStorageDataGrid.js: Removed.
2593         * inspector/front-end/DOMStorageItemsView.js:
2594         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
2595         (WebInspector.DOMStorageItemsView.prototype._deleteButtonClicked):
2596         (WebInspector.DOMStorageItemsView.prototype._refreshButtonClicked):
2597         (WebInspector.DOMStorageItemsView.prototype._editingCallback):
2598         (WebInspector.DOMStorageItemsView.prototype.deleteSelectedRow):
2599         (WebInspector.DOMStorageItemsView.prototype._deleteCallback):
2600         * inspector/front-end/DataGrid.js:
2601         (WebInspector.DataGrid):
2602         (WebInspector.DataGrid.prototype._ondblclick): Moved from DOMStorageDataGrid to DataGrid + Refactoring.
2603         (WebInspector.DataGrid.prototype._startEditingColumnOfDataGridNode): Ditto.
2604         (WebInspector.DataGrid.prototype._startEditing): Ditto.
2605         (WebInspector.DataGrid.prototype._editingCommitted.moveToNextIfNeeded): Ditto.
2606         (WebInspector.DataGrid.prototype._editingCommitted): Ditto.
2607         (WebInspector.DataGrid.prototype._editingCancelled): Ditto.
2608         (WebInspector.DataGrid.prototype.handleKeyEvent): Added case for delete/backspace.
2609         * inspector/front-end/ElementsTreeOutline.js:
2610         (WebInspector.ElementsTreeOutline.prototype.handleKeyEvent): Added preventDefault call.
2611         * inspector/front-end/WebKit.qrc: Removed DOMStorageDataGrid.
2612         * inspector/front-end/inspector.html: Removed DOMStorageDataGrid.
2613
2614 2009-11-06  Geoffrey Garen  <ggaren@apple.com>
2615
2616         Qt build fix: added an ExecState parameter.
2617
2618         * bridge/qt/qt_runtime.cpp:
2619         (JSC::Bindings::convertValueToQVariant):
2620         (JSC::Bindings::convertQVariantToValue):
2621
2622 2009-11-06  Geoffrey Garen  <ggaren@apple.com>
2623
2624         https://bugs.webkit.org/show_bug.cgi?id=31197
2625         Implemented a timezone cache not based on Mac OS X's notify_check API.
2626
2627         Updated for JavaScriptCore internal API change.
2628
2629         * bridge/qt/qt_runtime.cpp:
2630         (JSC::Bindings::convertValueToQVariant):
2631         (JSC::Bindings::convertQVariantToValue): Updated for namespace change.
2632
2633         * platform/network/HTTPParsers.cpp:
2634         (WebCore::parseDate): Pass 0 for ExecState, since we don't have one.
2635         (This function probably shouldn't be using a JavaScript date parser
2636         to begin with, but oh well.)
2637
2638 2009-11-06  Anantanarayanan G Iyengar  <ananta@chromium.org>
2639
2640         Reviewed by Adam Barth.
2641
2642         The associated webkit bug is https://bugs.webkit.org/show_bug.cgi?id=31067,
2643         which affects Chromium only.
2644         
2645         Changes to V8HTMLDocumentCustom.cpp are as below:-
2646         1. The HTMLDocumentOpen function would cause a crash in Chromium if
2647            there was no calling javascript context. We now check for this case
2648            and pass in NULL to the HTMLDocument::open function which can handle
2649            a NULL document parameter.
2650         2. The other functions like HTMLDocumentWrite, HTMLDocumentWriteln, etc
2651            had ASSERTS for a NULL caller frame, which was bogus as it would crash
2652            anyway. We now check for this case and return a failure.
2653            
2654         Changes to V8DOMWindowCustom.cpp are as below:-
2655         1. Instead of failing the window.open call made by NPAPI for lack of a
2656            calling javascript context, we now use the entered context as the calling
2657            context.
2658
2659         Tests: plugins/document-open.html
2660                plugins/window-open.html
2661
2662         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2663         (WebCore::CALLBACK_FUNC_DECL):
2664         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
2665         (WebCore::CALLBACK_FUNC_DECL):
2666
2667 2009-11-06  Steve Block  <steveblock@google.com>
2668
2669         Reviewed by Eric Seidel.
2670
2671         Geolocation error code UNKNOWN_ERROR is deprecated.
2672         https://bugs.webkit.org/show_bug.cgi?id=31184
2673
2674         Remove this error code from PositionError, both for use from C++ code and from the JS object.
2675
2676         Updated fast/dom/Geolocation/error.html to test this.
2677
2678         * page/PositionError.h: Modified.
2679         (WebCore::PositionError::): Remove ErrorCode::UNKNOWN_ERROR.
2680         * page/PositionError.idl: Modified. Remove UNKNOWN_ERROR constant.
2681         * page/Geolocation.cpp: Modified.
2682         (WebCore::Geolocation::startRequest): Replace UNKNOWN_ERROR with POSITION_UNAVAILABLE.
2683         * platform/gtk/GeolocationServiceGtk.cpp: Modified.
2684         (WebCore::GeolocationServiceGtk::startUpdating): Replace UNKNOWN_ERROR with POSITION_UNAVAILABLE.
2685
2686 2009-11-06  Dirk Schulze  <krit@webkit.org>
2687
2688         Reviewed by Nikolas Zimmermann.
2689
2690         feMorphology filter is not implemented
2691         [https://bugs.webkit.org/show_bug.cgi?id=5863]
2692
2693         The Implementation of feMorphology.
2694         
2695         Test: We have allready a test for feMorphology
2696               svg/W3C-SVG-1.1/filters-morph-01-f.svg
2697
2698         * svg/graphics/filters/SVGFEMorphology.cpp:
2699         (WebCore::FEMorphology::apply):
2700
2701 2009-11-06  Steve Block  <steveblock@google.com>
2702
2703         Reviewed by Eric Seidel.
2704
2705         V8DOMWindowCustom.cpp is missing WEB_SOCKETS guard on include.
2706         https://bugs.webkit.org/show_bug.cgi?id=31209
2707
2708         Build fix only. No new tests possible.
2709
2710         * bindings/v8/custom/V8DOMWindowCustom.cpp: Modified. Added WEB_SOCKETS guard on inclue of WebSockets.h.
2711
2712 2009-11-06  Drew Wilson  <atwilson@chromium.org>
2713
2714         Reviewed by David Levin.
2715
2716         V8 bindings do not support SharedWorkers as event targets
2717         https://bugs.webkit.org/show_bug.cgi?id=31199
2718
2719         No new tests because existing layout tests suffice (they currently
2720         crash on Chromium)
2721
2722         * bindings/v8/V8DOMWrapper.cpp:
2723         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
2724         Added clause to create a DOM wrapper for SharedWorkers.
2725
2726 2009-11-06  Anton Muhin  <antonm@chromium.org>
2727
2728         Reviewed by Adam Barth.
2729
2730         Do not unnecessarly synchronzie in weak reference callbacks.
2731         https://bugs.webkit.org/show_bug.cgi?id=31191
2732
2733         * bindings/v8/DOMData.h:
2734         (WebCore::DOMData::handleWeakObject):
2735
2736 2009-11-06  Alexander Pavlov  <apavlov@chromium.org>
2737
2738         Reviewed by Pavel Feldman.
2739
2740         Fix resource content search.
2741         https://bugs.webkit.org/show_bug.cgi?id=31202
2742
2743         * inspector/front-end/AbstractTimelinePanel.js:
2744         (WebInspector.AbstractTimelinePanel.prototype.refresh):
2745         (WebInspector.AbstractTimelinePanel.prototype.removeItem):
2746         * inspector/front-end/TimelinePanel.js:
2747         (WebInspector.TimelineGraph.prototype.refresh):
2748
2749 2009-11-05  Yuta Kitamura  <yutak@chromium.org>
2750
2751         Reviewed by Eric Seidel.
2752
2753         Fix ASSERT(currentStyle = renderStyle()).
2754         https://bugs.webkit.org/show_bug.cgi?id=31152
2755
2756         * dom/Element.cpp:
2757         (WebCore::Element::pseudoStyleCacheIsInvalid): We should have used "==" instead of "=".
2758
2759 2009-11-05  Alpha Lam  <hclam@chromium.org>
2760
2761         Revert 50562 because it broke Chromium. Not reviewed since this is a build fix and revert.
2762
2763         * bindings/v8/V8GCController.cpp:
2764         (WebCore::V8GCController::gcEpilogue):
2765         * bindings/v8/V8GCController.h:
2766         * bindings/v8/V8Proxy.cpp:
2767         (WebCore::V8Proxy::evaluate):
2768         (WebCore::V8Proxy::runScript):
2769         (WebCore::V8Proxy::callFunction):
2770
2771 2009-11-05  Adam Barth  <abarth@webkit.org>
2772
2773         Reviewed by Sam Weinig.
2774
2775         Cross-domain access to stylesheet text should not be allowed
2776         https://bugs.webkit.org/show_bug.cgi?id=20527
2777
2778         Check whether whether the current document can read the cssRules from
2779         the style sheet.  Firefox throws a security error here, but we return
2780         null instead because that's what we usually do in these cases.
2781
2782         Test: http/tests/security/cannot-read-cssrules-redirect.html
2783               http/tests/security/cannot-read-cssrules.html
2784
2785         * css/CSSStyleSheet.cpp:
2786         (WebCore::CSSStyleSheet::cssRules):
2787
2788 2009-11-05  Steve Block  <steveblock@google.com>
2789
2790         Reviewed by Eric Seidel.
2791
2792         If the Geolocation service fails to start, invoke the error callback asynchronously.
2793         https://bugs.webkit.org/show_bug.cgi?id=28276
2794
2795         All Geolocation callbacks must be invoked asynchronously.
2796         See http://www.w3.org/TR/geolocation-API/#geolocation_interface
2797
2798         No new tests possible with current LayoutTestController.
2799
2800         * page/Geolocation.cpp:
2801         (WebCore::Geolocation::getCurrentPosition): Modified. Asserts that startRequest returned a notifier.
2802         (WebCore::Geolocation::watchPosition): Modified. Asserts that startRequest returned a notifier.
2803         (WebCore::Geolocation::startRequest): Modified. If the Geolocation service fails to start, set a fatal error on the notifier.
2804
2805 2009-11-05  Chris Jerdonek  <chris.jerdonek@gmail.com>
2806
2807         Reviewed by Eric Seidel.
2808
2809         Removed the "this is part of the KDE project" comments from 
2810         all *.h, *.cpp, *.idl, and *.pm files.
2811         
2812         https://bugs.webkit.org/show_bug.cgi?id=31167
2813         
2814         The maintenance and architecture page in the project wiki lists
2815         this as a task.
2816         
2817         This change includes no changes or additions to test cases 
2818         since the change affects only comments.
2819
2820         * bindings/scripts/CodeGeneratorV8.pm:
2821         * bindings/scripts/IDLParser.pm:
2822         * bindings/scripts/IDLStructure.pm:
2823         * css/CSSInheritedValue.cpp:
2824         * css/CSSInitialValue.cpp:
2825         * css/CSSMediaRule.cpp:
2826         * css/CSSNamespace.h:
2827         * css/CSSProperty.cpp:
2828         * css/CSSProperty.h:
2829         * css/CSSRuleList.cpp:
2830         * css/CSSRuleList.h:
2831         * css/CSSSelector.h:
2832         * css/CSSValueList.cpp:
2833         * css/FontValue.cpp:
2834         * css/MediaFeatureNames.cpp:
2835         * css/MediaFeatureNames.h:
2836         * css/Pair.h:
2837         * css/SVGCSSStyleSelector.cpp:
2838         * css/ShadowValue.cpp:
2839         * css/StyleSheet.cpp:
2840         * css/StyleSheetList.cpp:
2841         * css/maketokenizer:
2842         * dom/BeforeUnloadEvent.cpp:
2843         * dom/BeforeUnloadEvent.h:
2844         * dom/CSSMappedAttributeDeclaration.cpp:
2845         * dom/EventNames.cpp:
2846         * dom/EventTarget.cpp:
2847         * dom/MappedAttributeEntry.h:
2848         * dom/MouseRelatedEvent.h:
2849         * dom/RangeException.h:
2850         * dom/StyleElement.h:
2851         * dom/Tokenizer.h:
2852         * html/HTMLHeadElement.h:
2853         * html/HTMLHeadingElement.cpp:
2854         * html/HTMLHeadingElement.h:
2855         * html/HTMLHtmlElement.h:
2856         * html/HTMLImageLoader.h:
2857         * html/HTMLMetaElement.h:
2858         * html/HTMLModElement.cpp:
2859         * html/HTMLModElement.h:
2860         * html/HTMLOptionsCollection.cpp:
2861         * html/HTMLPlugInElement.cpp:
2862         * html/HTMLPreElement.cpp:
2863         * html/HTMLPreElement.h:
2864         * html/HTMLTableCellElement.cpp:
2865         * html/HTMLTableCellElement.h:
2866         * html/HTMLTableColElement.cpp:
2867         * html/HTMLTableColElement.h:
2868         * html/HTMLTablePartElement.cpp:
2869         * html/HTMLTablePartElement.h:
2870         * html/HTMLTitleElement.h:
2871         * page/MouseEventWithHitTestResults.h:
2872         * platform/StaticConstructors.h:
2873         * platform/text/AtomicStringImpl.h:
2874         * platform/text/qt/TextBreakIteratorQt.cpp:
2875         * rendering/AutoTableLayout.h:
2876         * rendering/CounterNode.cpp:
2877         * rendering/EllipsisBox.cpp:
2878         * rendering/EllipsisBox.h:
2879         * rendering/FixedTableLayout.cpp:
2880         * rendering/FixedTableLayout.h:
2881         * rendering/HitTestRequest.h:
2882         * rendering/HitTestResult.h:
2883         * rendering/InlineRunBox.h:
2884         * rendering/PointerEventsHitRules.cpp:
2885         * rendering/PointerEventsHitRules.h:
2886         * rendering/RenderBR.cpp:
2887         * rendering/RenderBR.h:
2888         * rendering/RenderButton.cpp:
2889         * rendering/RenderButton.h:
2890         * rendering/RenderFieldset.cpp:
2891         * rendering/RenderFrameSet.cpp:
2892         * rendering/RenderListItem.cpp:
2893         * rendering/RenderTableRow.cpp:
2894         * rendering/RenderView.h:
2895         * rendering/RootInlineBox.h:
2896         * rendering/SVGInlineTextBox.cpp:
2897         * rendering/SVGInlineTextBox.h:
2898         * rendering/TableLayout.h:
2899         * rendering/break_lines.h:
2900         * rendering/style/SVGRenderStyle.cpp:
2901         * rendering/style/SVGRenderStyle.h:
2902         * rendering/style/SVGRenderStyleDefs.cpp:
2903         * rendering/style/SVGRenderStyleDefs.h:
2904         * svg/GradientAttributes.h:
2905         * svg/LinearGradientAttributes.h:
2906         * svg/PatternAttributes.h:
2907         * svg/RadialGradientAttributes.h:
2908         * svg/SVGAElement.cpp:
2909         * svg/SVGAngle.idl:
2910         * svg/SVGAnimateColorElement.cpp:
2911         * svg/SVGAnimateColorElement.h:
2912         * svg/SVGAnimateElement.cpp:
2913         * svg/SVGAnimateElement.h:
2914         * svg/SVGAnimateTransformElement.h:
2915         * svg/SVGAnimatedPathData.cpp:
2916         * svg/SVGAnimatedPathData.h:
2917         * svg/SVGAnimatedPoints.cpp:
2918         * svg/SVGAnimatedPoints.h:
2919         * svg/SVGAnimationElement.cpp:
2920         * svg/SVGCircleElement.cpp:
2921         * svg/SVGClipPathElement.cpp:
2922         * svg/SVGColor.cpp:
2923         * svg/SVGColor.idl:
2924         * svg/SVGComponentTransferFunctionElement.cpp:
2925         * svg/SVGComponentTransferFunctionElement.h:
2926         * svg/SVGCursorElement.cpp:
2927         * svg/SVGDefsElement.cpp:
2928         * svg/SVGDescElement.cpp:
2929         * svg/SVGDescElement.h:
2930         * svg/SVGDocument.idl:
2931         * svg/SVGElement.idl:
2932         * svg/SVGElementInstanceList.cpp:
2933         * svg/SVGElementInstanceList.h:
2934         * svg/SVGEllipseElement.cpp:
2935         * svg/SVGExternalResourcesRequired.cpp:
2936         * svg/SVGFEBlendElement.cpp:
2937         * svg/SVGFEBlendElement.h:
2938         * svg/SVGFEColorMatrixElement.cpp:
2939         * svg/SVGFEColorMatrixElement.h:
2940         * svg/SVGFEComponentTransferElement.cpp:
2941         * svg/SVGFEComponentTransferElement.h:
2942         * svg/SVGFECompositeElement.cpp:
2943         * svg/SVGFECompositeElement.h:
2944         * svg/SVGFEFloodElement.cpp:
2945         * svg/SVGFEFloodElement.h:
2946         * svg/SVGFEFuncAElement.cpp:
2947         * svg/SVGFEFuncAElement.h:
2948         * svg/SVGFEFuncBElement.cpp:
2949         * svg/SVGFEFuncBElement.h:
2950         * svg/SVGFEFuncGElement.cpp:
2951         * svg/SVGFEFuncGElement.h:
2952         * svg/SVGFEFuncRElement.cpp:
2953         * svg/SVGFEFuncRElement.h:
2954         * svg/SVGFEGaussianBlurElement.cpp:
2955         * svg/SVGFEGaussianBlurElement.h:
2956         * svg/SVGFEImageElement.cpp:
2957         * svg/SVGFEMergeElement.cpp:
2958         * svg/SVGFEMergeElement.h:
2959         * svg/SVGFEMergeNodeElement.cpp:
2960         * svg/SVGFEOffsetElement.cpp:
2961         * svg/SVGFEOffsetElement.h:
2962         * svg/SVGFETileElement.cpp:
2963         * svg/SVGFETileElement.h:
2964         * svg/SVGFETurbulenceElement.cpp:
2965         * svg/SVGFETurbulenceElement.h:
2966         * svg/SVGFilterElement.cpp:
2967         * svg/SVGGElement.cpp:
2968         * svg/SVGGradientElement.cpp:
2969         * svg/SVGHKernElement.idl:
2970         * svg/SVGLangSpace.cpp:
2971         * svg/SVGLangSpace.h:
2972         * svg/SVGLength.cpp:
2973         * svg/SVGLength.h:
2974         * svg/SVGLength.idl:
2975         * svg/SVGLengthList.cpp:
2976         * svg/SVGLengthList.h:
2977         * svg/SVGLineElement.cpp:
2978         * svg/SVGLinearGradientElement.h:
2979         * svg/SVGList.h:
2980         * svg/SVGListTraits.h:
2981         * svg/SVGLocatable.h:
2982         * svg/SVGMaskElement.cpp:
2983         * svg/SVGMatrix.idl:
2984         * svg/SVGMetadataElement.cpp:
2985         * svg/SVGMetadataElement.h:
2986         * svg/SVGMetadataElement.idl:
2987         * svg/SVGNumber.idl:
2988         * svg/SVGNumberList.cpp:
2989         * svg/SVGNumberList.h:
2990         * svg/SVGPaint.cpp:
2991         * svg/SVGPathElement.cpp:
2992         * svg/SVGPathSeg.h:
2993         * svg/SVGPathSegArc.cpp:
2994         * svg/SVGPathSegArc.h:
2995         * svg/SVGPathSegClosePath.cpp:
2996         * svg/SVGPathSegClosePath.h:
2997         * svg/SVGPathSegCurvetoCubic.cpp:
2998         * svg/SVGPathSegCurvetoCubic.h:
2999         * svg/SVGPathSegCurvetoCubicSmooth.cpp:
3000         * svg/SVGPathSegCurvetoCubicSmooth.h:
3001         * svg/SVGPathSegCurvetoQuadratic.cpp:
3002         * svg/SVGPathSegCurvetoQuadratic.h:
3003         * svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
3004         * svg/SVGPathSegCurvetoQuadraticSmooth.h:
3005         * svg/SVGPathSegLineto.cpp:
3006         * svg/SVGPathSegLineto.h:
3007         * svg/SVGPathSegLinetoHorizontal.cpp:
3008         * svg/SVGPathSegLinetoHorizontal.h:
3009         * svg/SVGPathSegLinetoVertical.cpp:
3010         * svg/SVGPathSegLinetoVertical.h:
3011         * svg/SVGPathSegMoveto.cpp:
3012         * svg/SVGPathSegMoveto.h:
3013         * svg/SVGPatternElement.cpp:
3014         * svg/SVGPoint.idl:
3015         * svg/SVGPointList.cpp:
3016         * svg/SVGPointList.h:
3017         * svg/SVGPolyElement.cpp:
3018         * svg/SVGPolygonElement.cpp:
3019         * svg/SVGPolygonElement.h:
3020         * svg/SVGPolylineElement.cpp:
3021         * svg/SVGPolylineElement.h:
3022         * svg/SVGPreserveAspectRatio.cpp:
3023         * svg/SVGPreserveAspectRatio.h:
3024         * svg/SVGRadialGradientElement.h:
3025         * svg/SVGRect.idl:
3026         * svg/SVGRectElement.cpp:
3027         * svg/SVGRenderingIntent.h:
3028         * svg/SVGSVGElement.idl:
3029         * svg/SVGScriptElement.cpp:
3030         * svg/SVGSetElement.cpp:
3031         * svg/SVGSetElement.h:
3032         * svg/SVGStopElement.cpp:
3033         * svg/SVGStringList.cpp:
3034         * svg/SVGStringList.h:
3035         * svg/SVGStylable.cpp:
3036         * svg/SVGStylable.h:
3037         * svg/SVGStyleElement.cpp:
3038         * svg/SVGStyleElement.h:
3039         * svg/SVGStyledElement.h:
3040         * svg/SVGStyledLocatableElement.cpp:
3041         * svg/SVGStyledLocatableElement.h:
3042         * svg/SVGStyledTransformableElement.cpp:
3043         * svg/SVGStyledTransformableElement.h:
3044         * svg/SVGSwitchElement.cpp:
3045         * svg/SVGSymbolElement.cpp:
3046         * svg/SVGTRefElement.cpp:
3047         * svg/SVGTSpanElement.cpp:
3048         * svg/SVGTSpanElement.h:
3049         * svg/SVGTests.h:
3050         * svg/SVGTextElement.cpp:
3051         * svg/SVGTextElement.h:
3052         * svg/SVGTextPathElement.cpp:
3053         * svg/SVGTextPositioningElement.cpp:
3054         * svg/SVGTextPositioningElement.h:
3055         * svg/SVGTitleElement.cpp:
3056         * svg/SVGTitleElement.h:
3057         * svg/SVGTransform.cpp:
3058         * svg/SVGTransform.h:
3059         * svg/SVGTransform.idl:
3060         * svg/SVGTransformList.cpp:
3061         * svg/SVGTransformList.h:
3062         * svg/SVGTransformable.h:
3063         * svg/SVGURIReference.h:
3064         * svg/SVGUnitTypes.h:
3065         * svg/SVGUseElement.cpp:
3066         * svg/SVGViewElement.cpp:
3067         * svg/SVGZoomAndPan.cpp:
3068         * svg/SVGZoomAndPan.h:
3069         * svg/SVGZoomEvent.cpp:
3070
3071 2009-11-05  Jeremy Orlow  <jorlow@chromium.org>
3072
3073         Reviewed by Dimitri Glazkov.
3074
3075         REGRESSION Clean up security origin usage in DOM Storage.
3076         https://bugs.webkit.org/show_bug.cgi?id=31188
3077
3078         Clean up security origin usage in DOM Storage.  This fixes a bug in my
3079         refactoring here: https://bugs.webkit.org/show_bug.cgi?id=31149
3080
3081         Instead of having StorageAreaSync's constructor (which is called in the
3082         constructor for StorageAreaImpl) calling a method on StoargeAreaImpl to get the
3083         database identifier, simply have StorageAreaImpl pass the identifier into
3084         StorageAreaSync.
3085
3086         No test because there's no change in externally observable behavior.
3087
3088         * storage/StorageAreaImpl.cpp:
3089         (WebCore::StorageAreaImpl::StorageAreaImpl):
3090         * storage/StorageAreaImpl.h:
3091         * storage/StorageAreaSync.cpp:
3092         (WebCore::StorageAreaSync::create):
3093         (WebCore::StorageAreaSync::StorageAreaSync):
3094         * storage/StorageAreaSync.h:
3095
3096 2009-11-05  Scott Violet  <sky@google.com>
3097
3098         Reviewed by Dimitri Glazkov.
3099
3100         Need notification of scrolling frame
3101         https://bugs.webkit.org/show_bug.cgi?id=31145
3102
3103         Adds FrameLoaderClient::didChangeScrollOffset that is called when
3104         the frame scrolls. This will be used to know when history state
3105         needs to be updated.
3106
3107         * loader/FrameLoaderClient.h:
3108         (WebCore::FrameLoaderClient::didChangeScrollOffset):
3109         * page/FrameView.cpp:
3110         (WebCore::FrameView::valueChanged):
3111
3112 2009-11-05  Kenneth Russell  <kbr@google.com>
3113
3114         Reviewed by Dimitri Glazkov.
3115
3116         [V8] Update bindings to use new API for external arrays
3117         https://bugs.webkit.org/show_bug.cgi?id=31181
3118
3119         No new tests; covered by existing WebGL tests.
3120
3121         * bindings/v8/V8DOMWrapper.cpp:
3122         (WebCore::V8DOMWrapper::setIndexedPropertiesToExternalArray):
3123         (WebCore::V8DOMWrapper::getTemplate):
3124         (WebCore::V8DOMWrapper::convertToV8Object):
3125         * bindings/v8/V8DOMWrapper.h:
3126         * bindings/v8/custom/V8CanvasArrayCustom.h:
3127         (WebCore::constructCanvasArray):
3128
3129 2009-11-05  Alpha Lam  <hclam@chromium.org>
3130
3131         Not reviewed, Chromium build fix.
3132
3133         50561 introduces a custom method for SVGMatrix, we need to implement
3134         this in V8.
3135
3136         * bindings/v8/custom/V8CustomBinding.h:
3137         Adding definition for V8SVGMatrixMultiply.
3138         * bindings/v8/custom/V8SVGMatrixCustom.cpp:
3139         (WebCore::CALLBACK_FUNC_DECL):
3140         Implement V8SVGMatrixMultiply according to the same method in JSC.
3141
3142 2009-11-05  Jeremy Orlow  <jorlow@chromium.org>
3143
3144         Revert 50569 since it broke QT.  Build fix and just a revert, so no review.
3145
3146         * page/DOMWindow.cpp:
3147         (WebCore::DOMWindow::sessionStorage):
3148         * page/Settings.cpp:
3149         (WebCore::Settings::Settings):
3150         (WebCore::Settings::setSessionStorageEnabled):
3151         * page/Settings.h:
3152         (WebCore::Settings::sessionStorageEnabled):
3153
3154 2009-11-05  Pavel Feldman  <pfeldman@chromium.org>
3155
3156         Reviewed by Timothy Hatcher.
3157
3158         REGRESSION: Web Inspector doesn't show CSS rules properly for iframes
3159
3160         https://bugs.webkit.org/show_bug.cgi?id=30884
3161
3162         Test: inspector/styles-iframe.html
3163
3164         * inspector/front-end/DOMAgent.js:
3165         (WebInspector.DOMNode):
3166         * inspector/front-end/InjectedScript.js:
3167         (InjectedScript.getStyles):
3168         (InjectedScript.getComputedStyle):
3169         (InjectedScript.addStyleSelector):
3170         * inspector/front-end/TestController.js:
3171         (WebInspector.TestController.prototype.notifyDone):
3172         (WebInspector.TestController.prototype.runAfterPendingDispatches):
3173         (WebInspector.evaluateForTestInFrontend.invokeMethod):
3174         (WebInspector.evaluateForTestInFrontend):
3175
3176 2009-11-05  Vitaly Repeshko  <vitalyr@chromium.org>
3177
3178         Reviewed by Geoffrey Garen and Dimitri Glazkov.
3179
3180         Rehashing of EventListenerMap leads to loss of EvenListenerList.
3181         https://bugs.webkit.org/show_bug.cgi?id=31027
3182
3183         Tested by new fast/events/event-listener-map-rehash-crash.html.
3184
3185         EventListenerMap modified to store pointers to listener vectors:
3186         * dom/EventTarget.cpp:
3187         (WebCore::EventTargetData::~EventTargetData):
3188         (WebCore::EventTarget::addEventListener):
3189         (WebCore::EventTarget::removeEventListener):
3190         (WebCore::EventTarget::fireEventListeners):
3191         (WebCore::EventTarget::getEventListeners):
3192         (WebCore::EventTarget::removeAllEventListeners):
3193         * dom/EventTarget.h:
3194
3195         Usages updated after interface changes:
3196         * inspector/InspectorDOMAgent.cpp:
3197         (WebCore::InspectorDOMAgent::getEventListenersForNode):
3198         * svg/SVGUseElement.cpp:
3199         (WebCore::SVGUseElement::transferEventListenersToShadowTree):
3200
3201 2009-11-05  Dan Kegel  <dank@chromium.org>
3202
3203         Reviewed by Dmitri Titov.
3204
3205         Add missing initialization for m_createdByParser.
3206         https://bugs.webkit.org/show_bug.cgi?id=31089
3207
3208         Test: fast/dom/beforeload/pi-before-load.xhtml in Valgrind
3209
3210         * dom/ProcessingInstruction.cpp:
3211         (WebCore::ProcessingInstruction::ProcessingInstruction):
3212
3213 2009-11-04  Jeremy Orlow  <jorlow@chromium.org>
3214
3215         Reviewed by Adam Barth.
3216
3217         DOM Storage runtime flag changes
3218         https://bugs.webkit.org/show_bug.cgi?id=30602
3219
3220         Part 2/2.
3221
3222         Revert my changes to Settings and instead implement DOM Storage enabling via
3223         the methods agreed upon in https://bugs.webkit.org/show_bug.cgi?id=30240
3224
3225         This stuff was (intentionally) never exposed to web pages or DRT, so there's no
3226         LayoutTest visible changes and thus no tests.
3227
3228         * bindings/v8/custom/V8CustomBinding.h:
3229         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3230         (WebCore::ACCESSOR_RUNTIME_ENABLER):
3231         * page/DOMWindow.cpp:
3232         (WebCore::DOMWindow::sessionStorage):
3233         * page/DOMWindow.idl:
3234         * page/Settings.cpp:
3235         (WebCore::Settings::Settings):
3236         * page/Settings.h:
3237         * storage/Storage.cpp:
3238         (WebCore::Storage::setLocalStorageAvailable):
3239         (WebCore::Storage::localStorageAvailable):
3240         (WebCore::Storage::setSessionStorageAvailable):
3241         (WebCore::Storage::sessionStorageAvailable):
3242         * storage/Storage.h:
3243
3244 2009-11-05  Jian Li  <jianli@chromium.org>
3245
3246         Reviewed by Pavel Feldman.
3247
3248         Bug 31108 - [V8] REGRESSION: Pause on exception is broken
3249         https://bugs.webkit.org/show_bug.cgi?id=31108
3250
3251         * bindings/v8/V8AbstractEventListener.cpp:
3252         (WebCore::V8AbstractEventListener::invokeEventHandler):
3253         * bindings/v8/V8Utilities.cpp:
3254         (WebCore::reportException):
3255
3256 2009-11-05  Jian Li  <jianli@chromium.org>
3257
3258         Reviewed by Dmitri Titov.
3259
3260         We should not bubble up events if we drag something to an iframe that
3261         has an invalid source.
3262         https://bugs.webkit.org/show_bug.cgi?id=30469
3263
3264         Test: http/tests/misc/bubble-drag-events.html
3265
3266         * page/EventHandler.cpp:
3267         (WebCore::EventHandler::handleDragAndDropForTarget):
3268         (WebCore::EventHandler::updateDragAndDrop):
3269         (WebCore::EventHandler::cancelDragAndDrop):
3270         (WebCore::EventHandler::performDragAndDrop):
3271         * page/EventHandler.h:
3272         (WebCore::EventHandler::):
3273
3274 2009-11-05  Pavel Feldman  <pfeldman@chromium.org>
3275
3276         Reviewed by Timothy Hatcher.
3277
3278         Web Inspector: speed up Timelines Clear by a factor of thousands.
3279
3280         https://bugs.webkit.org/show_bug.cgi?id=31160
3281
3282         * inspector/front-end/utilities.js:
3283         (Element.prototype.removeChildren):
3284
3285 2009-11-05  Anton Muhin  <antonm@chromium.org>
3286
3287         Reviewed by Adam Barth.
3288
3289         If high memory usage is detected, hint to V8 that it might be due
3290         to external objects retained by V8 objects.
3291         https://bugs.webkit.org/show_bug.cgi?id=31051
3292
3293         * bindings/v8/V8GCController.cpp:
3294         (WebCore::GetMemoryUsageInMB):
3295         (WebCore::V8GCController::gcEpilogue):
3296         (WebCore::V8GCController::checkMemoryUsage):
3297         * bindings/v8/V8GCController.h:
3298         * bindings/v8/V8Proxy.cpp:
3299         (WebCore::V8Proxy::evaluate):
3300         (WebCore::V8Proxy::runScript):
3301         (WebCore::V8Proxy::callFunction):
3302
3303 2009-11-05  Jeff Schiller  <codedread@gmail.com>
3304
3305         Reviewed by Simon Fraser.
3306
3307         Correct order of matrix multiplication for SVGMatrix.
3308         https://bugs.webkit.org/show_bug.cgi?id=16062
3309
3310         Test: svg/dom/SVGMatrix-interface.xhtml
3311
3312         * bindings/js/JSSVGMatrixCustom.cpp:
3313         (WebCore::JSSVGMatrix::multiply):
3314         * svg/SVGMatrix.idl:
3315
3316 2009-11-04  Pavel Feldman  <pfeldman@chromium.org>
3317
3318         Reviewed by Timothy Hatcher.
3319
3320         Web Inspector: Make resource-related records in timeline
3321         actually take some time.
3322
3323         https://bugs.webkit.org/show_bug.cgi?id=31139
3324
3325         * English.lproj/localizedStrings.js:
3326         * inspector/front-end/TimelinePanel.js:
3327         (WebInspector.TimelinePanel):
3328         (WebInspector.TimelinePanel.prototype._formatRecord):
3329         (WebInspector.TimelinePanel.prototype._getRecordDetails):
3330         (WebInspector.TimelinePanel.prototype.reset):
3331
3332 2009-11-04  Jeremy Orlow  <jorlow@chromium.org>
3333
3334         Reviewed by Darin Fisher.
3335
3336         Simplify LocalStorageThread
3337         https://bugs.webkit.org/show_bug.cgi?id=30935
3338
3339         This is a re-submit of 50519.  LocalStorageTask should have never been ref
3340         counted.  I've removed that and switched a PassRefPtr over to a PassOwnPtr.
3341
3342         On LocalStoragethread: Remove reference counting. Get rid of locking. Make some
3343         of the method names a bit more clear. Assert proper thread usage. Join rather
3344         than detaching the thread and doing an ad-hoc form of join. Avoid touching
3345         variables on the background thread when simple to do so.  Also create a generic
3346         scheduleTask function rather than one for each task.
3347
3348         No behavior should have changed.
3349
3350         * storage/LocalStorageTask.h:
3351         * storage/LocalStorageThread.cpp:
3352         (WebCore::LocalStorageThread::create):
3353         (WebCore::LocalStorageThread::LocalStorageThread):
3354         (WebCore::LocalStorageThread::~LocalStorageThread):
3355         (WebCore::LocalStorageThread::start):
3356         (WebCore::LocalStorageThread::threadEntryPointCallback):
3357         (WebCore::LocalStorageThread::threadEntryPoint):
3358         (WebCore::LocalStorageThread::scheduleTask):
3359         (WebCore::LocalStorageThread::terminate):
3360         (WebCore::LocalStorageThread::performTerminate):
3361         * storage/LocalStorageThread.h:
3362         * storage/StorageSyncManager.cpp:
3363         (WebCore::StorageSyncManager::StorageSyncManager):
3364         (WebCore::StorageSyncManager::~StorageSyncManager):
3365         (WebCore::StorageSyncManager::scheduleImport):
3366         (WebCore::StorageSyncManager::scheduleSync):
3367         * storage/StorageSyncManager.h:
3368
3369 2009-11-04  Jeremy Orlow  <jorlow@chromium.org>
3370
3371         Reviewed by Darin Fisher.
3372
3373         Calling databaseIdentifier on LocalStorage's background thread is not safe.
3374         https://bugs.webkit.org/show_bug.cgi?id=31149
3375
3376         Calling SecurityOrigin::databaseIdentifier on LocalStorage's background thread
3377         is not safe.  databaseIdentifier does a bunch of string concatenation which
3378         ref-counts StringImpls in some cases.  This was caught by valgrind thread
3379         sanitizer: http://code.google.com/p/chromium/issues/detail?id=25645
3380
3381         There's no way to test for such racyness, unfortunately.
3382
3383         * storage/StorageAreaSync.cpp:
3384         (WebCore::StorageAreaSync::StorageAreaSync):
3385         (WebCore::StorageAreaSync::performImport):
3386         * storage/StorageAreaSync.h:
3387         * storage/StorageSyncManager.cpp:
3388         (WebCore::StorageSyncManager::fullDatabaseFilename):
3389         * storage/StorageSyncManager.h:
3390
3391 2009-11-03  Jeremy Orlow  <jorlow@chromium.org>
3392
3393         Reviewed by Darin Fisher.
3394
3395         Clean up StorageAreaSync
3396         https://bugs.webkit.org/show_bug.cgi?id=31100
3397
3398         Major fixes: Break the ref count cycle for StorageArea on the main
3399         thread, not the background thread since the latter is not safe.
3400         Length() needs to block on the import completing.
3401
3402         Small fixes: setItem needs to handle the copy on write case even if it
3403         has an exception.  setItem and removeItem should just bail from the
3404         the function if the value hasn't changed rather than wrapping the end
3405         in an if block.  Clear should only send an event if it wasn't already
3406         cleared.  StorageAreaSync should assert that the final sync was
3407         scheduled.
3408
3409         * storage/StorageAreaImpl.cpp:
3410         (WebCore::StorageAreaImpl::length):
3411           Forgot to block on the import.
3412         (WebCore::StorageAreaImpl::key):
3413         (WebCore::StorageAreaImpl::setItem):
3414           Handle the copy on write case even when there's an exception.
3415         (WebCore::StorageAreaImpl::removeItem):
3416         (WebCore::StorageAreaImpl::clear):
3417         * storage/StorageAreaSync.cpp:
3418         (WebCore::StorageAreaSync::~StorageAreaSync):
3419         (WebCore::StorageAreaSync::scheduleFinalSync):
3420         (WebCore::StorageAreaSync::performImport):
3421         (WebCore::StorageAreaSync::markImported):
3422         (WebCore::StorageAreaSync::blockUntilImportComplete):
3423         * storage/StorageAreaSync.h:
3424
3425 2009-11-05  Zoltan Horvath  <zoltan@webkit.org>
3426
3427         Reviewed by Eric Seidel.
3428
3429         Allow custom memory allocation control for WebCore's CachedResource
3430         https://bugs.webkit.org/show_bug.cgi?id=31114
3431
3432         Inherits CachedResource class from Noncopyable because its (its child
3433         class) CachedCSSStyleSheet instantiated by 'new' in WebCore/loader/Cache.cpp:75 
3434         and it is no need to be copyable.
3435
3436         * loader/CachedResource.h:
3437
3438 2009-11-04  Mark Mentovai  <mark@chromium.org>
3439
3440         Reviewed by Mark Rowe.
3441
3442         Separate the difference between HAVE(CGINTERPOLATION_MEDIUM), which
3443         is true when building on 10.6 or later, and USE(CGINTERPOLATION_MEDIUM)
3444         which is true when targeting 10.6 or later.
3445
3446         HAVE(CGINTERPOLATION_MEDIUM) indicates that kCGInterpolationMedium
3447         is present in the CGInterpolationQuality enum, and must be handled
3448         by a switch that has cases for each enumerated value.
3449
3450         USE(CGINTERPOLATION_MEDIUM) indicates that the product will only run
3451         on 10.6 or later, and that CoreGraphics will understand when
3452         InterpolationMedium is mapped to kCGInterpolationMedium at runtime.
3453
3454         * platform/graphics/cg/GraphicsContextCG.cpp:
3455         (WebCore::GraphicsContext::setImageInterpolationQuality):
3456         (WebCore::GraphicsContext::imageInterpolationQuality):
3457
3458 2009-11-04  Dan Kegel  <dank@chromium.org>
3459
3460         Reviewed by Alexey Proskuryakov.
3461
3462         Fix buffer overrun in WebCore::Page::userStyleSheetLocationChanged()
3463         https://bugs.webkit.org/show_bug.cgi?id=31138
3464
3465         Test: LayoutTests/platform/mac/fast/loader/user-stylesheet-fast-path.html in Valgrind
3466
3467         * page/Page.cpp:
3468         (WebCore::Page::userStyleSheetLocationChanged):
3469
3470 2009-11-04  Timothy Hatcher  <timothy@apple.com>
3471
3472         Update the Web Inspector Timeline panel to better match the mock-up.
3473
3474         https://bugs.webkit.org/show_bug.cgi?id=31150
3475
3476         Reviewed by Pavel Feldman.
3477
3478         * inspector/front-end/TimelinePanel.js:
3479         (WebInspector.TimelinePanel.prototype._getRecordDetails):
3480         (WebInspector.TimelinePanel.prototype._dragWindow):
3481         (WebInspector.TimelinePanel.prototype._resizeWindowLeft):
3482         (WebInspector.TimelinePanel.prototype._resizeWindowRight):
3483         (WebInspector.TimelineCategoryTreeElement.prototype.onattach):
3484         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
3485         (WebInspector.TimelineRecordTreeElement.prototype.refresh):
3486         (WebInspector.TimelineCategoryGraph):
3487         * inspector/front-end/inspector.css:
3488
3489 2009-11-05  Justin Garcia  <justin.garcia@apple.com>
3490
3491         Reviewed by Adele Peterson.
3492
3493         https://bugs.webkit.org/show_bug.cgi?id=25439
3494         Deleting when in front of a block image removes character from previous paragraph
3495
3496         Added editing/deleting/25439-{1,2,3}.html
3497
3498         * editing/DeleteSelectionCommand.cpp:
3499         (WebCore::DeleteSelectionCommand::mergeParagraphs): Block images, tables and HRs cannot 
3500         be made inline with other content.  Instead of merging, just move the caret to just before 
3501         the selection we deleted.
3502         * editing/htmlediting.cpp:
3503         (WebCore::firstInSpecialElement): Added a FIXME.  This function begins iterating up from pos.node(), which 
3504         doesn't necessarily contain pos (suppose pos was [img, 0]).
3505         (WebCore::lastInSpecialElement): Ditto.
3506         (WebCore::isRenderedAsNonInlineTableImageOrHR): Moved from visible_units.cpp.  Added a check for non-inline images.
3507         * editing/htmlediting.h:
3508         * editing/visible_units.cpp:
3509         (WebCore::startOfParagraph): Use moved/renamed function.  Removed FIXME.  The problem causing 
3510         5027702 is now squarely in first/lastInSpecialElement
3511         (WebCore::endOfParagraph): Ditto.
3512         
3513 2009-11-04  Enrica Casucci  <enrica@apple.com>
3514
3515         Reviewed by Adele Peterson.
3516
3517         Hang in Mail on attempting to change indent level.
3518         <rdar://problem/7131805>
3519         https://bugs.webkit.org/show_bug.cgi?id=31127
3520
3521         The hang was caused by an infinite loop inside outdentRegion.
3522         The code did not account for the fact that, when a list item
3523         contains multiple paragraphs, outdent moves all paragraphs at
3524         once, invalidating some of the positions we keep track of in the loop.
3525         Some code refactoring has also been done to minimize duplicated code.
3526         
3527         Test: editing/execCommand/outdent-multiparagraph-list.html
3528
3529         * editing/IndentOutdentCommand.cpp:
3530         (WebCore::IndentOutdentCommand::indentRegion): Moved code in common with
3531         outdentRegion to doApply.
3532         (WebCore::IndentOutdentCommand::outdentRegion): Fixed endless loop.
3533         (WebCore::IndentOutdentCommand::doApply): Some code refactoring.
3534         * editing/IndentOutdentCommand.h: Added VisiblePosition parameters to
3535         indentRegion and outdentRegion.
3536
3537 2009-11-04  Alpha Lam  <hclam@chromium.org>
3538
3539         Reviewed by Eric Carlson.
3540
3541         Volume slider doesn't have a thumb
3542         https://bugs.webkit.org/show_bug.cgi?id=31135
3543
3544         Fixed an incorrect if statement that prevents volume slider
3545         being updated.
3546
3547         The statement checks if the slider value equals to the current
3548         volume value of the media control to avoid updating the volume
3549         slider. Updating the volume slider control shouldn't be within
3550         this condition because we explicitly set them to be equals
3551         during creation of the controls and also when mouse events are
3552         received on the volume control.
3553
3554         No new tests because existing code breaks:
3555         LayoutTests/media/video-volume-slider.html
3556
3557         It should now start passing on Chromium.
3558
3559         * rendering/MediaControlElements.cpp:
3560         (WebCore::MediaControlVolumeSliderElement::update):
3561         Update the volume slider regardless of the current volume value
3562         of the media control.
3563
3564 2009-11-04  Jenn Braithwaite  <jennb@chromium.org>
3565
3566         Reviewed by David Levin.
3567
3568         Need to properly disable applicationCache at runtime
3569         https://bugs.webkit.org/show_bug.cgi?id=30417
3570
3571         Adding applicationCacheEnabled bit to V8 RuntimeEnabledFeatures.
3572
3573         No new exposed functionality, so no new tests.
3574
3575         * bindings/v8/RuntimeEnabledFeatures.cpp:
3576         * bindings/v8/RuntimeEnabledFeatures.h:
3577         (WebCore::RuntimeEnabledFeatures::setApplicationCacheEnabled):
3578         (WebCore::RuntimeEnabledFeatures::applicationCacheEnabled):
3579         * bindings/v8/custom/V8CustomBinding.h:
3580         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3581         (WebCore::ACCESSOR_RUNTIME_ENABLER):
3582         * page/DOMWindow.idl:
3583
3584 2009-11-04  Alexey Proskuryakov  <ap@apple.com>
3585
3586         Reviewed by Dan Bernstein.
3587
3588         https://bugs.webkit.org/show_bug.cgi?id=31143
3589         Assertion failure in CredentialStorage::set() when proxy credentials are being set
3590
3591         No test, cannot test proxy behavior.
3592
3593         * platform/network/CredentialStorage.cpp: (WebCore::CredentialStorage::set): Account for the
3594         possibility of null url. Release mode changes are likely inconsequential - e.g. we used to
3595         add "://" to origin set, which is weird, but safe.
3596
3597 2009-11-04  Patrick Mueller  <Patrick_Mueller@us.ibm.com>
3598
3599         Reviewed by Timothy Hatcher.
3600
3601         Web Inspector: Leftover Breakpoints in the Sidebar Pane
3602         https://bugs.webkit.org/show_bug.cgi?id=30659
3603
3604         No new tests.
3605
3606         * inspector/front-end/ScriptsPanel.js:
3607         (WebInspector.ScriptsPanel.prototype.addScript):
3608
3609 2009-11-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3610
3611         Reviewed by Timothy Hatcher.
3612
3613         WebInspector: Use a different method to identify the webkit port in
3614         InspectorBackent::platform().
3615         This corrects the inspector expected behavior with Qt on Windows.
3616         https://bugs.webkit.org/show_bug.cgi?id=31116
3617
3618         * inspector/InspectorBackend.cpp:
3619         (WebCore::InspectorBackend::platform):
3620         (WebCore::InspectorBackend::port):
3621         * inspector/InspectorBackend.h:
3622         * inspector/InspectorBackend.idl:
3623         * inspector/front-end/InspectorControllerStub.js:
3624         (.WebInspector.InspectorControllerStub.prototype.port):
3625         * inspector/front-end/inspector.css:
3626         * inspector/front-end/inspector.js:
3627         (WebInspector.loaded):
3628         (WebInspector.toolbarDragStart):
3629
3630 2009-11-04  Benjamin Otte  <otte@gnome.org>
3631
3632         Reviewed by Gustavo Noronha.
3633
3634         Update Cairo requirement to 1.6.
3635
3636         Also remove all conditional code and workarounds for older versions of
3637         Cairo.
3638         In particular, gain image quality by removing the use of
3639         CAIRO_FILTER_NEAREST when rendering images and use the default
3640         bilinear filter instead.
3641         https://bugs.webkit.org/show_bug.cgi?id=19266
3642
3643         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3644         (WebCore::GraphicsContext::clipOut):
3645         * platform/graphics/cairo/ImageCairo.cpp:
3646         (WebCore::BitmapImage::draw):
3647         (WebCore::BitmapImage::drawPattern):
3648         * platform/graphics/cairo/PathCairo.cpp:
3649         (WebCore::Path::isEmpty):
3650         (WebCore::Path::boundingRect):
3651         * platform/gtk/RenderThemeGtk.cpp:
3652         (WebCore::paintMozWidget):
3653
3654 2009-11-04  Kevin Ollivier  <kevino@theolliviers.com>
3655
3656         wx build fix. Restore removed string conversion after cleanup.
3657
3658         * platform/graphics/wx/FontPlatformDataWx.cpp:
3659         (WebCore::FontPlatformData::computeHash):
3660
3661 2009-11-04  Chris Fleizach  <cfleizach@apple.com>
3662
3663         Reviewed by Beth Dakin.
3664
3665         Need to implement ARIA role="combobox"
3666         https://bugs.webkit.org/show_bug.cgi?id=31096
3667
3668         Test: accessibility/aria-combobox.html
3669
3670         * accessibility/AccessibilityObject.h:
3671         (WebCore::AccessibilityObject::isComboBox):
3672         (WebCore::AccessibilityObject::isExpanded):
3673         (WebCore::AccessibilityObject::expandObject):
3674         (WebCore::AccessibilityObject::increment):
3675         (WebCore::AccessibilityObject::decrement):
3676         * accessibility/AccessibilityRenderObject.cpp:
3677         (WebCore::AccessibilityRenderObject::expandObject):
3678         (WebCore::AccessibilityRenderObject::isExpanded):
3679         (WebCore::createARIARoleMap):
3680         * accessibility/AccessibilityRenderObject.h:
3681         * accessibility/mac/AccessibilityObjectWrapper.mm:
3682         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
3683         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3684         (-[AccessibilityObjectWrapper accessibilityPerformShowMenuAction]):
3685         * html/HTMLAttributeNames.in:
3686
3687 2009-11-04  Kelly Norton  <knorton@google.com>
3688
3689         Reviewed by Pavel Feldman.
3690
3691         Fixes naming inconsistencies in TimelineRecordFactory.
3692         https://bugs.webkit.org/show_bug.cgi?id=31132
3693
3694         * inspector/InspectorTimelineAgent.cpp:
3695         (WebCore::InspectorTimelineAgent::willPaint):
3696         (WebCore::InspectorTimelineAgent::willChangeXHRReadyState):
3697         (WebCore::InspectorTimelineAgent::willLoadXHR):
3698         (WebCore::InspectorTimelineAgent::willEvaluateScript):
3699         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
3700         (WebCore::InspectorTimelineAgent::didReceiveResourceResponse):
3701         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
3702         * inspector/TimelineRecordFactory.cpp:
3703         (WebCore::TimelineRecordFactory::createXHRReadyStateChangeRecord):
3704         (WebCore::TimelineRecordFactory::createXHRLoadRecord):
3705         (WebCore::TimelineRecordFactory::createEvaluateScriptRecord):
3706         (WebCore::TimelineRecordFactory::createMarkTimelineRecord):
3707         (WebCore::TimelineRecordFactory::createResourceSendRequestRecord):
3708         (WebCore::TimelineRecordFactory::createResourceReceiveResponseRecord):
3709         (WebCore::TimelineRecordFactory::createResourceFinishRecord):
3710         (WebCore::TimelineRecordFactory::createPaintRecord):
3711         * inspector/TimelineRecordFactory.h:
3712
3713 2009-11-04  Eric Z. Ayers  <zundel@google.com>
3714
3715         Reviewed by Pavel Feldman.
3716
3717         Followon to bug 31080, which protects Timeline
3718         instrumentation in the case where InspectorTimelineAgent
3719         is enabled or disabled during an event dispatch.
3720         
3721         https://bugs.webkit.org/show_bug.cgi?id=31121
3722
3723         * bindings/v8/V8Proxy.cpp:
3724         (WebCore::V8Proxy::evaluate):
3725         * dom/Document.cpp:
3726         (WebCore::Document::recalcStyle):
3727         * dom/Node.cpp:
3728         (WebCore::Node::dispatchGenericEvent):
3729         * html/HTMLTokenizer.cpp:
3730         (WebCore::HTMLTokenizer::write):
3731         * page/DOMWindow.cpp:
3732         (WebCore::DOMWindow::inspectorTimelineAgent):
3733         (WebCore::DOMWindow::dispatchEvent):
3734         * page/DOMWindow.h:
3735         * page/FrameView.cpp:
3736         (WebCore::FrameView::layout):
3737         (WebCore::FrameView::paintContents):
3738         * xml/XMLHttpRequest.cpp:
3739         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
3740
3741 2009-11-04  Jeremy Orlow  <jorlow@chromium.org>
3742
3743         Revert 50519 while I work out what went wrong.
3744
3745         * storage/LocalStorageThread.cpp:
3746         (WebCore::LocalStorageThread::create):
3747         (WebCore::LocalStorageThread::LocalStorageThread):
3748         (WebCore::LocalStorageThread::start):
3749         (WebCore::LocalStorageThread::localStorageThreadStart):
3750         (WebCore::LocalStorageThread::localStorageThread):
3751         (WebCore::LocalStorageThread::scheduleImport):
3752         (WebCore::LocalStorageThread::scheduleSync):
3753         (WebCore::LocalStorageThread::terminate):
3754         (WebCore::LocalStorageThread::performTerminate):
3755         * storage/LocalStorageThread.h:
3756         * storage/StorageSyncManager.cpp:
3757         (WebCore::StorageSyncManager::StorageSyncManager):
3758         (WebCore::StorageSyncManager::~StorageSyncManager):
3759         (WebCore::StorageSyncManager::scheduleImport):
3760         (WebCore::StorageSyncManager::scheduleSync):
3761         * storage/StorageSyncManager.h:
3762
3763 2009-11-04  Pavel Feldman  <pfeldman@chromium.org>
3764
3765         Reviewed by Timothy Hatcher.
3766
3767         Web Inspector: Add basic support for resource events and marks.
3768         Couple of drive-by fixes. Enabling the panel!
3769
3770         https://bugs.webkit.org/show_bug.cgi?id=31130
3771
3772         * English.lproj/localizedStrings.js:
3773         * inspector/front-end/TimelinePanel.js:
3774         (WebInspector.TimelinePanel):
3775         (WebInspector.TimelinePanel.prototype._formatRecord):
3776         (WebInspector.TimelinePanel.prototype._getRecordDetails):
3777         (WebInspector.TimelinePanel.prototype.reset):
3778         (WebInspector.TimelineCategoryTreeElement.prototype._onCheckboxClicked):
3779         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
3780         * inspector/front-end/inspector.js:
3781         (WebInspector._createPanels):
3782
3783 2009-11-03  Jeremy Orlow  <jorlow@chromium.org>
3784
3785         Reviewed by Darin Fisher.
3786
3787         Simplify LocalStorageThread
3788         https://bugs.webkit.org/show_bug.cgi?id=30935
3789
3790         On LocalStoragethread: Remove reference counting. Get rid of locking. Make some
3791         of the method names a bit more clear. Assert proper thread usage. Join rather
3792         than detaching the thread and doing an ad-hoc form of join. Avoid touching
3793         variables on the background thread when simple to do so.  Also create a generic
3794         scheduleTask function rather than one for each task.
3795
3796         No behavior should have changed.
3797
3798         * storage/LocalStorageThread.cpp:
3799         (WebCore::LocalStorageThread::create):
3800         (WebCore::LocalStorageThread::LocalStorageThread):
3801         (WebCore::LocalStorageThread::~LocalStorageThread):
3802         (WebCore::LocalStorageThread::start):
3803         (WebCore::LocalStorageThread::threadEntryPointCallback):
3804         (WebCore::LocalStorageThread::threadEntryPoint):
3805         (WebCore::LocalStorageThread::scheduleTask):
3806         (WebCore::LocalStorageThread::terminate):
3807         (WebCore::LocalStorageThread::performTerminate):
3808         * storage/LocalStorageThread.h:
3809         * storage/StorageSyncManager.cpp:
3810         (WebCore::StorageSyncManager::StorageSyncManager):
3811         (WebCore::StorageSyncManager::~StorageSyncManager):
3812         (WebCore::StorageSyncManager::scheduleImport):
3813         (WebCore::StorageSyncManager::scheduleSync):
3814         * storage/StorageSyncManager.h:
3815
3816 2009-11-04  Vadim Zeitlin  <vadim@wxwidgets.org>
3817
3818         Reviewed by Eric Seidel.
3819
3820         [wx] Small cleanup: avoid unnecessary wxString::mb_str() calls.
3821
3822         * platform/graphics/wx/FontPlatformDataWx.cpp:
3823         (WebCore::FontPlatformData::computeHash):
3824
3825 2009-11-04  Kelly Norton  <knorton@google.com>
3826
3827         Reviewed by Pavel Feldman.
3828
3829         Adds lightweight network resources to InspectorTimelineAgent.
3830         https://bugs.webkit.org/show_bug.cgi?id=31065
3831
3832         * inspector/InspectorController.cpp:
3833         (WebCore::InspectorController::willSendRequest):
3834         (WebCore::InspectorController::didReceiveResponse):
3835         (WebCore::InspectorController::didFinishLoading):
3836         (WebCore::InspectorController::didFailLoading):
3837         * inspector/InspectorTimelineAgent.cpp:
3838         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
3839         (WebCore::InspectorTimelineAgent::didReceiveResourceResponse):
3840         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
3841         * inspector/InspectorTimelineAgent.h:
3842         (WebCore::):
3843         * inspector/TimelineRecordFactory.cpp:
3844         (WebCore::TimelineRecordFactory::createResourceSendRequestTimelineRecord):
3845         (WebCore::TimelineRecordFactory::createResourceReceiveResponseTimelineRecord):
3846         (WebCore::TimelineRecordFactory::createResourceFinishTimelineRecord):
3847         * inspector/TimelineRecordFactory.h:
3848         * inspector/front-end/TimelineAgent.js:
3849
3850 2009-11-04  Yael Aharon  <yael.aharon@nokia.com>
3851
3852         Reviewed by Tor Arne Vestbø.
3853
3854         [Qt] ASSERT failure when receiving 401 HTTP Authentication response.
3855         https://bugs.webkit.org/show_bug.cgi?id=31077
3856
3857         Allow sending the response body under the same conditions that we
3858         allow it to finish without reporting an error.
3859
3860         * platform/network/qt/QNetworkReplyHandler.cpp:
3861         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
3862
3863 2009-11-04  Adam Roben  <aroben@apple.com>
3864
3865         Sort WebCore.base.exp
3866
3867         Rubber-stamped by Dan Bernstein.
3868
3869         * WebCore.base.exp: Sorted.
3870
3871 2009-11-04  Csaba Osztrogonác  <ossy@webkit.org>
3872
3873         Unreviewed rollout.
3874
3875         Revert r50496 because it broke all layout tests on QtBuildBot.
3876
3877         * WebCore.pro:
3878         * platform/graphics/qt/FontCacheQt.cpp:
3879         (WebCore::fontCache):
3880         (WebCore::FontCache::FontCache):
3881         (WebCore::FontCache::getTraitsInFamily):
3882         (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
3883         (WebCore::FontPlatformDataCacheKey::isHashTableDeletedValue):
3884         (WebCore::FontPlatformDataCacheKey::):
3885         (WebCore::FontPlatformDataCacheKey::operator==):
3886         (WebCore::FontPlatformDataCacheKey::hash):
3887         (WebCore::FontPlatformDataCacheKey::computeHash):
3888         (WebCore::FontPlatformDataCacheKey::hashTableDeletedSize):
3889         (WebCore::FontPlatformDataCacheKeyHash::hash):
3890         (WebCore::FontPlatformDataCacheKeyHash::equal):
3891         (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
3892         (WebCore::FontPlatformDataCacheKeyTraits::constructDeletedValue):
3893         (WebCore::FontPlatformDataCacheKeyTraits::isDeletedValue):
3894         (WebCore::FontCache::getCachedFontPlatformData):
3895         (WebCore::FontCache::getCachedFontData):
3896         (WebCore::FontCache::getLastResortFallbackFont):
3897         (WebCore::FontCache::releaseFontData):
3898         (WebCore::FontCache::purgeInactiveFontData):
3899         (WebCore::FontCache::addClient):
3900         (WebCore::FontCache::removeClient):
3901         (WebCore::FontCache::invalidate):
3902         * platform/graphics/qt/FontFallbackListQt.cpp: Added.
3903         (WebCore::FontFallbackList::FontFallbackList):
3904         (WebCore::FontFallbackList::invalidate):
3905         (WebCore::FontFallbackList::releaseFontData):
3906         (WebCore::FontFallbackList::determinePitch):
3907         (WebCore::FontFallbackList::fontDataAt):
3908         (WebCore::FontFallbackList::fontDataForCharacters):
3909         (WebCore::FontFallbackList::setPlatformFont):
3910         * platform/graphics/qt/FontPlatformData.h:
3911         (WebCore::FontPlatformData::pixelSize):
3912         * platform/graphics/qt/FontPlatformDataQt.cpp:
3913         (WebCore::FontPlatformData::FontPlatformData):
3914
3915 2009-11-04  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
3916
3917         Reviewed by Jan Alonzo.
3918
3919         https://bugs.webkit.org/show_bug.cgi?id=31044
3920         [Gtk] assertion when webkit_accessible_get_index_in_parent attempts to get parent of the web view
3921
3922         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3923         (atkParentOfWebView):
3924         (webkit_accessible_get_index_in_parent):
3925         (webkit_accessible_get_parent):
3926
3927 2009-11-04  Dominik Röttsches  <dominik.roettsches@access-company.com>
3928
3929         Reviewed by Eric Seidel.
3930
3931         https://bugs.webkit.org/show_bug.cgi?id=15914
3932         [GTK] Implement Unicode functionality using GLib
3933
3934         Initial version of this patch by Jürg Billeter and Naiem Shaik.
3935         Patch 2/4 - Moving TextCodecs to GLib
3936         
3937         Added probing for a hard-coded lists of text encodings.
3938         The basis of this list is taken from the encodings supported by iconv,
3939         then extended by e.g. tis-620, windows-1251, euc-kr, windows-1253 and
3940         a number of Chinese ones.
3941
3942         Probing is necessary with the current design of text codecs
3943         as iconv/GLib do not support enumerating available encodings.
3944
3945         * GNUmakefile.am:
3946         * platform/ThreadGlobalData.cpp:
3947         (WebCore::ThreadGlobalData::ThreadGlobalData):
3948         (WebCore::ThreadGlobalData::~ThreadGlobalData):
3949         * platform/text/TextEncoding.cpp:
3950         (WebCore::TextEncoding::encode):
3951         * platform/text/TextEncodingRegistry.cpp:
3952         (WebCore::buildBaseTextCodecMaps):
3953         (WebCore::extendTextCodecMaps):
3954         * platform/text/gtk/TextCodecGtk.cpp: Added.
3955         (WebCore::):
3956         (WebCore::newTextCodecGtk):
3957         (WebCore::TextCodecGtk::isEncodingAvailable):
3958         (WebCore::TextCodecGtk::registerEncodingNames):
3959         (WebCore::TextCodecGtk::registerCodecs):
3960         (WebCore::TextCodecGtk::registerBaseEncodingNames):
3961         (WebCore::TextCodecGtk::registerBaseCodecs):
3962         (WebCore::TextCodecGtk::registerExtendedEncodingNames):
3963         (WebCore::TextCodecGtk::registerExtendedCodecs):
3964         (WebCore::TextCodecGtk::TextCodecGtk):
3965         (WebCore::TextCodecGtk::~TextCodecGtk):
3966         (WebCore::TextCodecGtk::releaseIConv):
3967         (WebCore::TextCodecGtk::createIConvDecoder):
3968         (WebCore::TextCodecGtk::createIConvEncoder):
3969         (WebCore::TextCodecGtk::decode):
3970         (WebCore::TextCodecGtk::encode):
3971         * platform/text/gtk/TextCodecGtk.h: Added.
3972
3973 2009-11-04  Martin Robinson  <martin.james.robinson@gmail.com>
3974
3975         Reviewed by Jan Alonzo.
3976
3977         [GTK] Enable DOM clipboard and drag-and-drop access
3978         https://bugs.webkit.org/show_bug.cgi?id=30623
3979
3980         Unify redudant methods which will always return the same value.
3981
3982         * platform/gtk/PasteboardGtk.cpp:
3983         (WebCore::Pasteboard::writeSelection):
3984         * platform/gtk/PasteboardHelper.h:
3985
3986 2009-11-04  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
3987
3988         Reviewed by Jan Alonzo.
3989
3990         https://bugs.webkit.org/show_bug.cgi?id=31035
3991         [GTK] some accessibility tests hitting assertion in debug builds
3992
3993         Removes the assertions in webkit_accessible_ref_child; adds sanity checks.
3994         Any app or AT can attempt to ref a child at a bogus index.
3995
3996         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3997         (webkit_accessible_ref_child):
3998
3999 2009-11-04  Benjamin Otte  <otte@gnome.org>
4000
4001         Reviewed by Jan Alonzo.
4002
4003         [gtk] Use gst_element_class_set_details_simple()
4004
4005         Cosmetic change, just code simplification
4006
4007         * platform/graphics/gtk/VideoSinkGStreamer.cpp:
4008         (webkit_video_sink_base_init):
4009 2009-11-04  Kelly Norton  <knorton@google.com>
4010
4011         Reviewed by Timothy Hatcher.
4012
4013         Adds paint rectangle information to TimelineAgent's didPaint callback.
4014         https://bugs.webkit.org/show_bug.cgi?id=31087
4015
4016         * inspector/InspectorTimelineAgent.cpp:
4017         (WebCore::InspectorTimelineAgent::willPaint):
4018         * inspector/InspectorTimelineAgent.h:
4019         * inspector/TimelineRecordFactory.cpp:
4020         (WebCore::TimelineRecordFactory::createPaintTimelineRecord):
4021         * inspector/TimelineRecordFactory.h:
4022         * page/FrameView.cpp:
4023         (WebCore::FrameView::paintContents):
4024
4025 2009-11-04  Jaime Yap  <jaimeyap@google.com>
4026
4027         Reviewed by Timothy Hatcher.
4028
4029         This patch adds API to the console object for annotating the
4030         inspector timeline. This allows developers to mark logical
4031         checkpoints in their apps and have them overlaid in the event
4032         record tree.
4033
4034         tests updated: LayoutTests/fast/dom/Window/window-properties.html
4035         https://bugs.webkit.org/show_bug.cgi?id=31082
4036
4037
4038         * inspector/InspectorController.cpp:
4039         (WebCore::InspectorController::markTimeline):
4040         * inspector/InspectorController.h:
4041         * inspector/InspectorTimelineAgent.cpp:
4042         (WebCore::InspectorTimelineAgent::didMarkTimeline):
4043         * inspector/InspectorTimelineAgent.h:
4044         (WebCore::):
4045         * inspector/TimelineRecordFactory.cpp:
4046         (WebCore::TimelineRecordFactory::createMarkTimelineRecord):
4047         * inspector/TimelineRecordFactory.h:
4048         * inspector/front-end/TimelineAgent.js:
4049         * page/Console.cpp:
4050         (WebCore::Console::markTimeline):
4051         * page/Console.h:
4052         * page/Console.idl:
4053
4054 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
4055
4056         Unreviewed build fix for WebInspector with Qt build.
4057
4058         Simply re-generate the Qt resource file by running
4059         WebKitTools/Scripts/generate-qt-inspector-resource
4060
4061         * inspector/front-end/WebKit.qrc:
4062
4063 2009-11-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
4064
4065         Reviewed by Simon Hausmann.
4066
4067         [Qt] Handle fonts like the other ports
4068
4069         Remove FontFallbackListQt and rely on the common FontFallbackList
4070         to handle the fonts. FontCache and FontPlatformData have been
4071         updated to work with the common FontFallbackList.
4072
4073         In the previous implementation, FontPlatformDataCacheKey
4074         was a clone of FontPlatformData with the hashing
4075         capabilities added in order to use it as a key in the cache's
4076         hashmap. FontPlatformData has been modified to handle the hashing
4077         function directly so the data are not copied twice in memory.
4078
4079         FontFallbackList::fontDataAt() from FontFallbackListQt was a copy of
4080         code from FontCache::getFontData() and FontFallbackList::fontDataAt().
4081         The behavior is similar except currFamily->family().length() was
4082         not tested and the fallback fonts selector were not used.
4083
4084         https://bugs.webkit.org/show_bug.cgi?id=29856
4085
4086         Test: svg/text/text-font-invalid.html
4087
4088         * WebCore.pro:
4089         * platform/graphics/qt/FontCacheQt.cpp:
4090         (WebCore::FontCache::platformInit):
4091         (WebCore::FontCache::getFontDataForCharacters):
4092         (WebCore::FontCache::getSimilarFontPlatformData):
4093         (WebCore::FontCache::getLastResortFallbackFont):
4094         (WebCore::FontCache::getTraitsInFamily):
4095         (WebCore::FontCache::createFontPlatformData):
4096         * platform/graphics/qt/FontFallbackListQt.cpp:
4097         Removed. We now use the implementation from FontFallbackList.cpp
4098         * platform/graphics/qt/FontPlatformData.h:
4099         Add hashing capabilities to be able to use the data with the FontCache.
4100         This was previously done in FontCacheQt.cpp
4101         (WebCore::FontPlatformData::FontPlatformData):
4102         Added a boolean to identify deleted value in the hash table.
4103         (WebCore::FontPlatformData::isHashTableDeletedValue):
4104         (WebCore::FontPlatformData::hash):
4105         (WebCore::FontPlatformData::operator==):
4106         * platform/graphics/qt/FontPlatformDataQt.cpp:
4107         (WebCore::FontPlatformData::FontPlatformData):
4108
4109 2009-11-03  Dan Bernstein  <mitz@apple.com>
4110
4111         Leopard build fix
4112
4113         * platform/network/mac/AuthenticationMac.mm:
4114         (WebCore::mac):
4115         (WebCore::core):
4116
4117 2009-11-03  Dan Bernstein  <mitz@apple.com>
4118
4119         Reviewed by Alexey Proskuryakov.
4120
4121         Fix an assertion failure in core(NSURLProtectionSpace *) by handling NTLM
4122         authentication in AuthenticationMac
4123
4124         * platform/network/mac/AuthenticationMac.mm:
4125
4126 2009-11-03  Eric Z. Ayers  <zundel@google.com>
4127
4128         Reviewed by Timothy Hatcher.
4129
4130         Fixes a problem where the timeline instrumentation crashes if
4131         timeline profiling is enabled or disabled in the middle of an
4132         event dispatch.
4133
4134         https://bugs.webkit.org/show_bug.cgi?id=31080
4135
4136         Test: inspector/timeline-trivial.html
4137
4138         * bindings/js/ScriptController.cpp:
4139         (WebCore::ScriptController::evaluateInWorld):
4140         (WebCore::ScriptController::processingUserGestureEvent):
4141         * inspector/InspectorTimelineAgent.cpp:
4142         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
4143         * page/DOMTimer.cpp:
4144         (WebCore::DOMTimer::fired):
4145
4146 2009-11-03  Dan Bernstein  <mitz@apple.com>
4147
4148         Reviewed by Dave Hyatt.
4149
4150         Allow a frame to go back to copy-on-scroll when it ceases being overlapped
4151
4152         The code was not testing slow-scrolling frames for overlappedness, thinking the answer
4153         would not matter. That is not the case if the only reason for the slow-scrolling is
4154         being overlapped.
4155
4156         * page/FrameView.cpp:
4157         (WebCore::FrameView::useSlowRepaintsIfNotOverlapped): Added. Returns whether there is any
4158         reason besides being overlapped that the frame would need to fully repaint on scroll.
4159         * page/FrameView.h:
4160         * rendering/RenderWidget.cpp:
4161         (WebCore::RenderWidget::paint): Use useSlowRepaintsIfNotOverlapped().
4162
4163 2009-11-03  Dmitry Titov  <dimich@chromium.org>
4164
4165         Not reviewed, Qt build fix.
4166
4167         Need to use right capitalization for include file.
4168
4169         * page/Navigator.cpp:
4170
4171 2009-11-03  Pavel Feldman  <pfeldman@chromium.org>
4172
4173         Reviewed by Timothy Hatcher.
4174
4175         Web Inspector: Migrate from top bar filters to check boxes in Timeline.
4176
4177         https://bugs.webkit.org/show_bug.cgi?id=31081
4178
4179         * inspector/front-end/AbstractTimelinePanel.js:
4180         (WebInspector.AbstractTimelinePanel.prototype.showCategory):
4181         (WebInspector.AbstractTimelinePanel.prototype.hideCategory):
4182         (WebInspector.AbstractTimelinePanel.prototype.filter):
4183         * inspector/front-end/TimelinePanel.js:
4184         (WebInspector.TimelinePanel):
4185         (WebInspector.TimelineCategoryTreeElement.prototype.onattach):
4186         (WebInspector.TimelineCategoryTreeElement.prototype._onCheckboxClick):
4187         (WebInspector.TimelineCategoryGraph.prototype.clearChunks):
4188         (WebInspector.TimelineCategoryGraph.prototype.set dimmed):
4189         * inspector/front-end/inspector.css:
4190
4191 2009-11-03  Pavel Feldman  <pfeldman@chromium.org>
4192
4193         Reviewed by Timothy Hatcher.
4194
4195         Web Inspector: clear overview on Clear action and panel reset.
4196
4197         https://bugs.webkit.org/show_bug.cgi?id=31078
4198
4199         * inspector/front-end/TimelinePanel.js:
4200         (WebInspector.TimelinePanel.prototype._getRecordDetails):
4201         (WebInspector.TimelinePanel.prototype.reset):
4202
4203 2009-11-03  Yaar Schnitman  <yaar@chromium.org>
4204
4205         Reviewed by Dimitri Glazkov.
4206
4207         Imported action and rules python files that WebCore.gyp depends on. 
4208         These files used to live in chromium.org and deal mostly with auto-generation
4209         of code by wrapping existing webkit perl scripts.
4210
4211         https://bugs.webkit.org/show_bug.cgi?id=31071
4212
4213         * WebCore.gyp/WebCore.gyp: Fixed paths in actions and rules.
4214         * WebCore.gyp/scripts/action_csspropertynames.py: Added.
4215         * WebCore.gyp/scripts/action_cssvaluekeywords.py: Added.
4216         * WebCore.gyp/scripts/action_makenames.py: Added.
4217         * WebCore.gyp/scripts/action_maketokenizer.py: Added.
4218         * WebCore.gyp/scripts/action_useragentstylesheets.py: Added.
4219         * WebCore.gyp/scripts/rule_binding.py: Added.
4220         * WebCore.gyp/scripts/rule_bison.py: Added.
4221         * WebCore.gyp/scripts/rule_gperf.py: Added.
4222
4223 2009-11-03  Bradley Green  <brg@chromium.org>
4224
4225         Reviewed by Dmitry Titov.
4226
4227         Implement window.navigator.registerProtocolHandler in webkit,
4228         https://bugs.webkit.org/b/29651
4229
4230         Also implemented its sister API window.navigator.registerContentHandler.
4231
4232         These methods are as described in the HTML5 specification which can be
4233         found here,
4234         http://dev.w3.org/html5/spec/Overview.html#dom-navigator-registerprotocolhandler
4235         http://dev.w3.org/html5/spec/Overview.html#dom-navigator-registercontenthandler
4236
4237         As specified in the document, the behavior of the browser is determined
4238         by the current registered handler.  The state of a registered handler
4239         can change at any time, with the user clearing a registered handler,
4240         registering a different page as handler, or deferring the hander to the
4241         OS.  If webkit was to track the state of the currently registered
4242         handlers, it would need more APIs and complexity to keep in sync with
4243         user actions reported to webkit from the UA.  For simplicity, the state
4244         of protocol handlers should be kept isolated from webkit and webkit only
4245         notifies the UA that a page has made the call.  The UA is then
4246         responsible for correctly handling the registerProtocolHandler call and
4247         the redirects which result from registration.
4248
4249         We do however follow the specification in insuring that the reserved
4250         schemes and mimeTypes are not passed to the UA as custom handler
4251         registration tests.  We also insure that the "%s" token is present as
4252         required by the specification.
4253
4254         Updated test expectations for window.clientInformation and navigator
4255         objects.
4256
4257         Tests: fast/dom/registerContentHandler.html
4258                fast/dom/registerProtocolHandler.html
4259
4260         * page/Chrome.cpp:
4261         (WebCore::Chrome::registerProtocolHandler):
4262         (WebCore::Chrome::registerContentHandler):
4263         * page/Chrome.h:
4264         * page/ChromeClient.h:
4265         (WebCore::ChromeClient::registerProtocolHandler):
4266         (WebCore::ChromeClient::registerContentHandler):
4267         * page/Navigator.cpp:
4268         (WebCore::verifyCustomHandlerURL):
4269         (WebCore::verifyProtocolHandlerScheme):
4270         (WebCore::Navigator::registerProtocolHandler):
4271         (WebCore::verifyProtocolHandlerMimeType):
4272         (WebCore::Navigator::registerContentHandler):
4273         * page/Navigator.h:
4274         * page/Navigator.idl:
4275
4276 2009-11-03  Brady Eidson  <beidson@apple.com>
4277
4278         Reviewed by Darin Adler.
4279
4280         https://bugs.webkit.org/show_bug.cgi?id=31079 - Remove #include "Page.h" from Document.h
4281
4282         No new tests. (No change in functionality)
4283
4284         * dom/Document.cpp:
4285         (WebCore::Document::inspectorTimelineAgent): Moved from Document.h
4286         * dom/Document.h:
4287
4288         Include "Page.h" directly:
4289         * html/HTMLVideoElement.cpp:
4290         * loader/RedirectScheduler.cpp:
4291         * page/History.cpp:
4292         * rendering/MediaControlElements.cpp:
4293         * storage/StorageAreaImpl.cpp:
4294
4295 2009-11-03  Keishi Hattori  <casey.hattori@gmail.com>
4296
4297         Reviewed by Timothy Hatcher.
4298<