2011-01-17 Yi Shen <yi.4.shen@nokia.com>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-01-17  Yi Shen  <yi.4.shen@nokia.com>
2
3         Reviewed by Andreas Kling.
4
5         [Qt] Extend the Platform Plugin to support full screen video handler
6         https://bugs.webkit.org/show_bug.cgi?id=51249
7
8         Make MediaPlayerPrivateQt support a fullscreen player.
9
10         No new tests because LayoutTests/media/media-fullscreen-inline.html already exists.
11         However, this test failed for Qt (QtMediaPlayer) due to durationchange event getting fired twice.
12         So, still skip it for Qt.
13
14         * WebCore.pro:
15         * features.pri:
16         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
17         (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
18         (WebCore::MediaPlayerPrivateQt::removeVideoItem):
19         (WebCore::MediaPlayerPrivateQt::restoreVideoItem):
20         * platform/graphics/qt/MediaPlayerPrivateQt.h:
21         (WebCore::MediaPlayerPrivateQt::supportsFullscreen):
22         (WebCore::MediaPlayerPrivateQt::mediaPlayer):
23
24 2011-01-17  Anthony Ricaud  <rik@webkit.org>
25
26         Reviewed by Kent Tamura.
27
28         [HTML5] Revert display:none on datalist
29         https://bugs.webkit.org/show_bug.cgi?id=52214
30
31         * css/html.css:
32
33 2011-01-17  Pavel Feldman  <pfeldman@chromium.org>
34
35         Reviewed by Yury Semikhatsky.
36
37         Web Inspector: simplify debugger enabling routine.
38         https://bugs.webkit.org/show_bug.cgi?id=52472
39
40         * inspector/Inspector.idl:
41         * inspector/InspectorController.cpp:
42         (WebCore::InspectorController::restoreDebugger):
43         (WebCore::InspectorController::showAndEnableDebugger):
44         (WebCore::InspectorController::enableDebugger):
45         * inspector/InspectorController.h:
46         * inspector/front-end/DebuggerModel.js:
47         * inspector/front-end/ScriptsPanel.js:
48         (WebInspector.ScriptsPanel.prototype.show):
49         (WebInspector.ScriptsPanel.prototype._toggleDebugging):
50
51 2011-01-17  Pavel Podivilov  <podivilov@chromium.org>
52
53         Reviewed by Pavel Feldman.
54
55         Web Inspector: refactoring: encapsulate lazy initialization of SourceFrame.
56         https://bugs.webkit.org/show_bug.cgi?id=51738
57
58         Extract content loading logic from SourceView and ScriptView to ContentProvider implementations.
59         Pass ContentProvider in SourceFrame constructor to allow SourceFrame manage it's lazy initialization.
60
61         * inspector/front-end/ScriptView.js:
62         (WebInspector.ScriptView):
63         (WebInspector.SourceFrameContentProviderForScript):
64         (WebInspector.SourceFrameContentProviderForScript.prototype.requestContent.didRequestSource):
65         (WebInspector.SourceFrameContentProviderForScript.prototype.requestContent):
66         (WebInspector.SourceFrameContentProviderForScript.prototype.scripts):
67         * inspector/front-end/ScriptsPanel.js:
68         (WebInspector.ScriptsPanel.prototype._addScript):
69         (WebInspector.ScriptsPanel.prototype.sourceFrameForScript):
70         (WebInspector.ScriptsPanel.prototype._sourceFrameForResource):
71         * inspector/front-end/SourceFrame.js:
72         (WebInspector.SourceFrame):
73         (WebInspector.SourceFrame.prototype.set visible):
74         (WebInspector.SourceFrame.prototype._createTextViewer):
75         (WebInspector.SourceFrame.prototype._breakpointAdded):
76         (WebInspector.SourceFrame.prototype._breakpoints):
77         (WebInspector.SourceFrame.prototype._sourceIDForLine):
78         (WebInspector.SourceFrame.prototype._sourceIDSet):
79         (WebInspector.SourceFrameContentProvider):
80         (WebInspector.SourceFrameContentProvider.prototype.requestContent):
81         (WebInspector.SourceFrameContentProvider.prototype.scripts):
82         * inspector/front-end/SourceView.js:
83         (WebInspector.SourceView):
84         (WebInspector.SourceView.prototype.show):
85         (WebInspector.SourceView.prototype.resize):
86         (WebInspector.SourceView.prototype.performSearch.didFindSearchMatches):
87         (WebInspector.SourceView.prototype.performSearch):
88         (WebInspector.SourceView.prototype.revealLine):
89         (WebInspector.SourceView.prototype.highlightLine):
90         (WebInspector.SourceView.prototype._jumpToSearchResult):
91         (WebInspector.SourceFrameContentProviderForResource):
92         (WebInspector.SourceFrameContentProviderForResource.prototype.requestContent):
93         (WebInspector.SourceFrameContentProviderForResource.prototype.scripts):
94
95 2011-01-17  John Knottenbelt  <jknotten@chromium.org>
96
97         Reviewed by Jeremy Orlow.
98
99         GeolocationController should call stopUpdating on destruction
100         https://bugs.webkit.org/show_bug.cgi?id=52216
101
102         Test: fast/dom/Geolocation/window-close-crash.html
103
104         * page/GeolocationController.cpp:
105         (WebCore::GeolocationController::~GeolocationController):
106
107 2011-01-17  Pavel Feldman  <pfeldman@chromium.org>
108
109         Not reviewed: Qt build fix.
110
111         * inspector/InspectorInstrumentation.h:
112
113 2011-01-16  Pavel Feldman  <pfeldman@chromium.org>
114
115         Reviewed by Yury Semikhatsky.
116
117         Web Inspector: make WebCore use InspectorInstrumentation
118         for instrumentation calls.
119         https://bugs.webkit.org/show_bug.cgi?id=52532
120
121         This change makes WebCore classes issue instrumentation signals
122         by means of InspectorInstrumentation interface. It covered migration
123         for Document, FrameLoader, Database, DOMStorage, etc. It fixed
124         instrumentation handling for Console as well. This all is a part
125         of story described in the bug 52510.
126
127         * dom/Document.cpp:
128         (WebCore::Document::finishedParsing):
129         * dom/Document.h:
130         * dom/ScriptExecutionContext.h:
131         * inspector/InspectorBrowserDebuggerAgent.cpp:
132         (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
133         (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
134         (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
135         (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
136         (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
137         (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
138         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
139         (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
140         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
141         * inspector/InspectorBrowserDebuggerAgent.h:
142         (WebCore::InspectorBrowserDebuggerAgent::create):
143         * inspector/InspectorConsoleAgent.cpp:
144         (WebCore::InspectorConsoleAgent::stopTiming):
145         (WebCore::InspectorConsoleAgent::count):
146         * inspector/InspectorConsoleAgent.h:
147         * inspector/InspectorController.cpp:
148         (WebCore::InspectorController::InspectorController):
149         (WebCore::InspectorController::~InspectorController):
150         (WebCore::InspectorController::handleMousePress):
151         (WebCore::InspectorController::didClearWindowObjectInWorld):
152         (WebCore::PostWorkerNotificationToFrontendTask::performTask):
153         * inspector/InspectorController.h:
154         * inspector/InspectorDOMAgent.h:
155         * inspector/InspectorDOMStorageAgent.h:
156         * inspector/InspectorDatabaseAgent.cpp:
157         * inspector/InspectorDatabaseAgent.h:
158         * inspector/InspectorFrontendHost.cpp:
159         * inspector/InspectorFrontendHost.h:
160         * inspector/InspectorInstrumentation.cpp:
161         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
162         (WebCore::InspectorInstrumentation::inspectedPageDestroyedImpl):
163         (WebCore::InspectorInstrumentation::mouseDidMoveOverElementImpl):
164         (WebCore::InspectorInstrumentation::handleMousePressImpl):
165         (WebCore::InspectorInstrumentation::mainResourceFiredLoadEventImpl):
166         (WebCore::InspectorInstrumentation::mainResourceFiredDOMContentEventImpl):
167         (WebCore::InspectorInstrumentation::frameDetachedFromParentImpl):
168         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
169         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
170         (WebCore::InspectorInstrumentation::consoleCountImpl):
171         (WebCore::InspectorInstrumentation::startConsoleTimingImpl):
172         (WebCore::InspectorInstrumentation::stopConsoleTimingImpl):
173         (WebCore::InspectorInstrumentation::consoleMarkTimelineImpl):
174         (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsoleImpl):
175         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
176         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
177         (WebCore::InspectorInstrumentation::didCreateWorkerImpl):
178         (WebCore::InspectorInstrumentation::didDestroyWorkerImpl):
179         (WebCore::InspectorInstrumentation::didCreateWebSocketImpl):
180         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequestImpl):
181         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponseImpl):
182         (WebCore::InspectorInstrumentation::didCloseWebSocketImpl):
183         (WebCore::InspectorInstrumentation::networkStateChangedImpl):
184         (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl):
185         * inspector/InspectorInstrumentation.h:
186         (WebCore::InspectorInstrumentation::inspectorControllerCreated):
187         (WebCore::InspectorInstrumentation::inspectorControllerDeleted):
188         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorld):
189         (WebCore::InspectorInstrumentation::inspectedPageDestroyed):
190         (WebCore::InspectorInstrumentation::willInsertDOMNode):
191         (WebCore::InspectorInstrumentation::didInsertDOMNode):
192         (WebCore::InspectorInstrumentation::willRemoveDOMNode):
193         (WebCore::InspectorInstrumentation::willModifyDOMAttr):
194         (WebCore::InspectorInstrumentation::didModifyDOMAttr):
195         (WebCore::InspectorInstrumentation::mouseDidMoveOverElement):
196         (WebCore::InspectorInstrumentation::handleMousePress):
197         (WebCore::InspectorInstrumentation::characterDataModified):
198         (WebCore::InspectorInstrumentation::willSendXMLHttpRequest):
199         (WebCore::InspectorInstrumentation::didScheduleResourceRequest):
200         (WebCore::InspectorInstrumentation::didInstallTimer):
201         (WebCore::InspectorInstrumentation::didRemoveTimer):
202         (WebCore::InspectorInstrumentation::willCallFunction):
203         (WebCore::InspectorInstrumentation::willChangeXHRReadyState):
204         (WebCore::InspectorInstrumentation::willDispatchEvent):
205         (WebCore::InspectorInstrumentation::willDispatchEventOnWindow):
206         (WebCore::InspectorInstrumentation::willEvaluateScript):
207         (WebCore::InspectorInstrumentation::willFireTimer):
208         (WebCore::InspectorInstrumentation::willLayout):
209         (WebCore::InspectorInstrumentation::willLoadXHR):
210         (WebCore::InspectorInstrumentation::willPaint):
211         (WebCore::InspectorInstrumentation::willRecalculateStyle):
212         (WebCore::InspectorInstrumentation::identifierForInitialRequest):
213         (WebCore::InspectorInstrumentation::willSendRequest):
214         (WebCore::InspectorInstrumentation::markResourceAsCached):
215         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
216         (WebCore::InspectorInstrumentation::willReceiveResourceData):
217         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
218         (WebCore::InspectorInstrumentation::didReceiveContentLength):
219         (WebCore::InspectorInstrumentation::didFinishLoading):
220         (WebCore::InspectorInstrumentation::didFailLoading):
221         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
222         (WebCore::InspectorInstrumentation::scriptImported):
223         (WebCore::InspectorInstrumentation::mainResourceFiredLoadEvent):
224         (WebCore::InspectorInstrumentation::mainResourceFiredDOMContentEvent):
225         (WebCore::InspectorInstrumentation::frameDetachedFromParent):
226         (WebCore::InspectorInstrumentation::didCommitLoad):
227         (WebCore::InspectorInstrumentation::willWriteHTML):
228         (WebCore::InspectorInstrumentation::didOpenDatabase):
229         (WebCore::InspectorInstrumentation::didUseDOMStorage):
230         (WebCore::InspectorInstrumentation::didCreateWorker):
231         (WebCore::InspectorInstrumentation::didDestroyWorker):
232         (WebCore::InspectorInstrumentation::didCreateWebSocket):
233         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
234         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
235         (WebCore::InspectorInstrumentation::didCloseWebSocket):
236         (WebCore::InspectorInstrumentation::networkStateChanged):
237         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus):
238         (WebCore::InspectorInstrumentation::addMessageToConsole):
239         (WebCore::InspectorInstrumentation::consoleCount):
240         (WebCore::InspectorInstrumentation::startConsoleTiming):
241         (WebCore::InspectorInstrumentation::stopConsoleTiming):
242         (WebCore::InspectorInstrumentation::consoleMarkTimeline):
243         (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsole):
244         (WebCore::InspectorInstrumentation::inspectorControllerForContext):
245         (WebCore::InspectorInstrumentation::inspectorControllerForFrame):
246         (WebCore::InspectorInstrumentation::inspectorControllerForPage):
247         (WebCore::InspectorInstrumentation::inspectorControllerWithFrontendForContext):
248         (WebCore::InspectorInstrumentation::inspectorControllerWithFrontendForDocument):
249         (WebCore::InspectorInstrumentation::inspectorControllerWithFrontendForFrame):
250         (WebCore::InspectorInstrumentation::inspectorControllerWithFrontendForPage):
251         * inspector/InspectorState.cpp:
252         * loader/FrameLoader.cpp:
253         (WebCore::FrameLoader::detachFromParent):
254         (WebCore::FrameLoader::dispatchDidClearWindowObjectInWorld):
255         (WebCore::FrameLoader::dispatchDidCommitLoad):
256         * page/Chrome.cpp:
257         (WebCore::Chrome::mouseDidMoveOverElement):
258         * page/Console.cpp:
259         (WebCore::Console::addMessage):
260         (WebCore::Console::count):
261         (WebCore::Console::markTimeline):
262         (WebCore::Console::profile):
263         (WebCore::Console::time):
264         (WebCore::Console::timeEnd):
265         (WebCore::Console::group):
266         (WebCore::Console::groupCollapsed):
267         (WebCore::Console::groupEnd):
268         * page/DOMWindow.cpp:
269         (WebCore::DOMWindow::sessionStorage):
270         (WebCore::DOMWindow::localStorage):
271         (WebCore::DOMWindow::dispatchLoadEvent):
272         * page/EventHandler.cpp:
273         (WebCore::EventHandler::handleMousePressEvent):
274         * page/Page.cpp:
275         (WebCore::Page::~Page):
276         * storage/Database.cpp:
277         (WebCore::Database::openDatabase):
278         * workers/AbstractWorker.cpp:
279         (WebCore::AbstractWorker::onDestroyWorker):
280         * workers/SharedWorker.cpp:
281         (WebCore::SharedWorker::create):
282         * workers/Worker.cpp:
283         (WebCore::Worker::create):
284         * workers/WorkerMessagingProxy.cpp:
285
286 2011-01-17  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
287
288         Unreviewed, rolling out r75923.
289
290         GTK guy rolls out the r75914.
291
292         * platform/efl/ScrollViewEfl.cpp:
293         (WebCore::ScrollView::platformInit):
294
295 2011-01-17  Helder Correia  <helder@sencha.com>
296
297         Reviewed by Kenneth Rohde Christiansen.
298
299         [Qt] fast/canvas/canvas-fillPath-gradient-shadow.html does not pass
300         https://bugs.webkit.org/show_bug.cgi?id=52556
301
302         The shadow color opacity needs to be set on the shadow painter.
303         Additionally, the gradient brush should be transformed.
304
305         * platform/graphics/qt/GraphicsContextQt.cpp:
306         (WebCore::GraphicsContext::fillPath):
307
308 2011-01-17  No'am Rosenthal  <noam.rosenthal@nokia.com>
309
310         Reviewed by Kenneth Rohde Christiansen.
311
312         [Qt] Background image rendering is slow
313         https://bugs.webkit.org/show_bug.cgi?id=50527
314
315         When tiling a scaled pixmap in Image::drawPattern, scale the tile
316         first and only then draw it to the target. Do so only when drawing
317         more than one tile.
318
319         Tests in fast/backgrounds/size cover this.
320
321         * platform/graphics/qt/ImageQt.cpp:
322         (WebCore::Image::drawPattern):
323
324 2011-01-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
325
326         Reviewed by Simon Hausmann.
327
328         [Qt] [Symbian] Fix building NPAPI support
329         https://bugs.webkit.org/show_bug.cgi?id=51981
330
331         Make sure that npapi.h is always included outside of the extern "C"
332         linkage declaration block.
333
334         No new tests as there is no new functionality.
335
336         * bridge/npruntime.h:
337
338 2011-01-17  Philippe Normand  <pnormand@igalia.com>
339
340         Unreviewed, rolling out r75914.
341         http://trac.webkit.org/changeset/75914
342         https://bugs.webkit.org/show_bug.cgi?id=49177
343
344         multiple crashes on GTK
345
346         * platform/ScrollView.cpp:
347         (WebCore::ScrollView::removeChild):
348         (WebCore::ScrollView::wheelEvent):
349         * platform/gtk/MainFrameScrollbarGtk.cpp:
350         (MainFrameScrollbarGtk::attachAdjustment):
351         (MainFrameScrollbarGtk::gtkValueChanged):
352         * platform/gtk/ScrollViewGtk.cpp:
353         (WebCore::ScrollView::platformInit):
354         (WebCore::ScrollView::platformAddChild):
355         (WebCore::ScrollView::platformRemoveChild):
356
357 2011-01-17  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
358
359         Unreviewed build fix.
360
361         Bug 49177's patch enabled platformInit() in super class(ScrollView).
362         But, it didn't removed the function in ScrollViewEfl.cpp.
363
364         * platform/efl/ScrollViewEfl.cpp:
365
366 2011-01-16  Dan Bernstein  <mitz@apple.com>
367
368         Reviewed by Sam Weinig.
369
370         <rdar://problem/8871903> REGRESSION (r75897): Crash with 0-by-0 iframe in scaled WebView
371
372         Avoid use of FloatRect::enclosingBoundingBox(), which can stretch an empty
373         quad to a non-empty rect.
374
375         * rendering/RenderWidget.cpp:
376         (WebCore::RenderWidget::setWidget):
377         (WebCore::RenderWidget::updateWidgetPosition):
378
379 2011-01-16  Martin Robinson  <mrobinson@igalia.com>
380
381         Reviewed by Xan Lopez.
382
383         [GTK] fast/events/scroll-after-click-on-tab-index has been failing on the bots
384         https://bugs.webkit.org/show_bug.cgi?id=49177
385
386         * platform/ScrollView.cpp: Move the platform guards around a little. GTK+
387         now shares the implementation of platformAddChild and platformRemoveChild,
388         but has its own implementation of removeChild, which knows how to inform
389         main frame scrollbars that they no longer control the WebCore scrollbar.
390         * platform/gtk/MainFrameScrollbarGtk.cpp:
391         (MainFrameScrollbarGtk::attachAdjustment): If we are attaching the same adjustment
392         that we already have, bail out early. Apply the value changed signal handler
393         after configuring the adjustment. We don't want our reset of the adjustment to
394         stomp on WebCore values.
395         (MainFrameScrollbarGtk::gtkValueChanged): Do not adjust the value if the WebCore
396         state already matches ours. This prevents some unnecessary recursion
397         * platform/gtk/ScrollViewGtk.cpp:
398         (WebCore::ScrollView::removeChild): Added, special cases main frame scrollbars
399         which need their adjustments detached.
400
401 2011-01-13  Yuzo Fujishima  <yuzo@google.com>
402
403         Reviewed by Antti Koivisto.
404
405         Fix for Bug 52427 - Inconsistent use of m_cache in CachedResourceLoader
406         https://bugs.webkit.org/show_bug.cgi?id=52427
407
408         In constructor/destructor of CachedResourceLoader, m_cache has been
409         used to call MemoryCache::addCachedResourceLoader/removeCachedResourceLoader
410         while cache() is used everywhere else.
411
412         Actually addCachedResourceLoader/removeCachedResourceLoader need not be called at all.
413         Remove the call sites and make MemoryCache non-friend of CachedResourceLoader.
414
415         No new tests because the behavior remains the same.
416
417         * loader/cache/CachedResourceLoader.cpp:
418         (WebCore::CachedResourceLoader::CachedResourceLoader):
419         (WebCore::CachedResourceLoader::~CachedResourceLoader):
420         * loader/cache/CachedResourceLoader.h:
421         * loader/cache/MemoryCache.cpp:
422         * loader/cache/MemoryCache.h:
423
424 2011-01-16  Adam Barth  <abarth@webkit.org>
425
426         Rubber-stamped by Eric Seidel.
427
428         Move WebKit into Source
429         https://bugs.webkit.org/show_bug.cgi?id=52530
430
431         * WebCore.gyp/WebCore.gyp:
432         * WebCore.pri:
433         * WebCore.pro:
434
435 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
436
437         Reviewed by Dan Bernstein.
438
439         frame-removed-during-resize.html test crashes (shows up as image-map-2.html crash)
440         https://bugs.webkit.org/show_bug.cgi?id=52549
441
442         Fix regression from r75900; m_widget->setFrameRect() can run script that
443         clears m_widget, so null-check it before calling setBoundsSize().
444         
445         Tested by fast/replaced/frame-removed-during-resize.html
446
447         * rendering/RenderWidget.cpp:
448         (WebCore::RenderWidget::setWidgetGeometry):
449
450 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
451
452         Keep Leopard build happy.
453
454         * platform/mac/WidgetMac.mm:
455         (WebCore::Widget::setBoundsSize):
456
457 2011-01-16  Robert Hogan  <robert@webkit.org>
458
459         Reviewed by Andreas Kling.
460
461         [Qt] plugins/keyboard-events.html fails after r72717
462         https://bugs.webkit.org/show_bug.cgi?id=50050
463
464         * plugins/qt/PluginViewQt.cpp:
465         (WebCore::setXKeyEventSpecificFields): map event text to keycode
466
467 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
468
469         Reviewed by Dan Bernstein.
470
471         Issues with iframes and plugins when the WebView is scaled.
472         <rdar://problem/6213380>
473         
474         When _scaleWebView has been called on a WebView, iframes
475         in WebKit1 render and hit-test incorrectly, and plug-ins don't scale up.
476         This is caused by AppKit NSViews not playing nicely with the scale
477         applied through style.
478         
479         Work around most of these issues by adjusting the bounds size
480         of widgets to allow iframe contents to paint with the correct scale,
481         and fix various places in the code where we relied on coordinate
482         transforms via NSViews (which ignore CSS transforms).
483
484         * WebCore.exp.in:
485         * platform/Widget.cpp:
486         (WebCore::Widget::setBoundsSize):
487         * platform/Widget.h:
488         * platform/mac/WidgetMac.mm:
489         (WebCore::Widget::setBoundsSize):
490         (WebCore::Widget::paint):
491         * rendering/RenderLayerCompositor.cpp:
492         (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame):
493         * rendering/RenderWidget.cpp:
494         (WebCore::RenderWidget::setWidgetGeometry):
495         (WebCore::RenderWidget::setWidget):
496         (WebCore::RenderWidget::updateWidgetPosition):
497         * rendering/RenderWidget.h:
498
499 2011-01-16  Simon Fraser  <simon.fraser@apple.com>
500
501         Reviewed by Dan Bernstein.
502
503         RenderView needs to take transforms on its layer into account
504         https://bugs.webkit.org/show_bug.cgi?id=52536
505         
506         The RenderView's coordinate mapping methods failed to
507         take into account a transform on the RenderView's layer.
508
509         No tests because it's not possible to get a transform
510         on the RenderView's layer through content.
511
512         * rendering/RenderView.cpp:
513         (WebCore::RenderView::mapLocalToContainer):
514         (WebCore::RenderView::mapAbsoluteToLocalPoint):
515
516 2011-01-15  Sheriff Bot  <webkit.review.bot@gmail.com>
517
518         Unreviewed, rolling out r75708.
519         http://trac.webkit.org/changeset/75708
520         https://bugs.webkit.org/show_bug.cgi?id=52521
521
522         Breaks Qt build if mobility is not installed. (Requested by
523         benjaminp on #webkit).
524
525         * WebCore.pro:
526         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
527         (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
528         * platform/graphics/qt/MediaPlayerPrivateQt.h:
529         (WebCore::MediaPlayerPrivateQt::supportsFullscreen):
530
531 2011-01-15  David Kilzer  <ddkilzer@apple.com>
532
533         <http://webkit.org/b/52512> REGRESSION(r73818): range.cloneContents() ignores end offset
534
535         Reviewed by Adele Peterson.
536
537         The fix for Bug 50710 in r73799 introduced an off-by-one error
538         when copying nodes to a local NodeVector for processing.  A fix
539         was attempted for Bug 50854 in r73818, but instead of stopping
540         at the end offset, it iterates through all the sibling nodes
541         because the loop variable (i) is never incremented.  To clean
542         this up, revert back to the code in r73799 and fix the
543         off-by-one error.
544
545         Test: fast/dom/Range/range-clone-contents.html
546
547         * dom/Range.cpp:
548         (WebCore::Range::processContents): Fix the loop that copies
549         nodes to a local NodeVector by restoring the code from r73799
550         and fixing the off-by-one error.
551
552 2011-01-15  Adam Barth  <abarth@webkit.org>
553
554         Rubber-stamped by Eric Seidel.
555
556         Move WebKit2 into Source
557         https://bugs.webkit.org/show_bug.cgi?id=52438
558
559         * WebCore.pro:
560
561 2011-01-15  Joone Hur  <joone.hur@collabora.co.uk>
562
563         Reviewed by Martin Robinson.
564
565         [GTK] Linux build with FileSystem API enabled fails
566         https://bugs.webkit.org/show_bug.cgi?id=43878
567
568         This patch allows WebKitGtk+ to build with FileSystem API option.
569
570         No new tests because no new functionality.
571
572         * GNUmakefile.am: Included AsyncFileSystem.h,cpp and Excluded duplicated JSFileException.h,cpp.
573         * bindings/js/JSDirectoryEntryCustom.cpp: Included ExceptionCode.h.
574
575 2011-01-14  Sam Magnuson  <smagnuso@gmail.com>
576
577         Reviewed by Kenneth Rohde Christiansen.
578
579         [Qt] Compile with QT_NO_GRAPHICSVIEW
580         https://bugs.webkit.org/show_bug.cgi?id=49750
581
582         * platform/graphics/qt/GraphicsLayerQt.cpp:
583         * platform/graphics/qt/GraphicsLayerQt.h:
584         * platform/qt/PlatformMouseEventQt.cpp:
585
586 2011-01-14  Tony Chang  <tony@chromium.org>
587
588         Reviewed by Alexey Proskuryakov.
589
590         Strip NUL character when copying text on Windows
591         https://bugs.webkit.org/show_bug.cgi?id=52236
592
593         Test: editing/pasteboard/copy-null-characters.html
594
595         * editing/Editor.cpp:
596         (WebCore::Editor::selectedText):
597         * platform/mac/PasteboardMac.mm:
598         (WebCore::Pasteboard::writeSelection): Use editor()->selectedText() which matches the other platforms.
599
600 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
601
602         Reviewed by Antti Koivisto.
603
604         Rename cache() to memoryCache()
605         https://bugs.webkit.org/show_bug.cgi?id=52433
606
607         No new tests because the behavior remains the same.
608
609         * WebCore.exp.in:
610         * WebCore.order:
611         * history/PageCache.cpp:
612         (WebCore::PageCache::releaseAutoreleasedPagesNow):
613         * inspector/InspectorResourceAgent.cpp:
614         (WebCore::InspectorResourceAgent::cachedResource):
615         * loader/FrameLoader.cpp:
616         (WebCore::FrameLoader::tellClientAboutPastMemoryCacheLoads):
617         * loader/archive/cf/LegacyWebArchive.cpp:
618         (WebCore::LegacyWebArchive::create):
619         * loader/cache/CachedImage.cpp:
620         (WebCore::CachedImage::allClientsRemoved):
621         (WebCore::CachedImage::data):
622         * loader/cache/CachedResource.cpp:
623         (WebCore::CachedResource::~CachedResource):
624         (WebCore::CachedResource::addClientToSet):
625         (WebCore::CachedResource::removeClient):
626         (WebCore::CachedResource::setDecodedSize):
627         (WebCore::CachedResource::setEncodedSize):
628         (WebCore::CachedResource::didAccessDecodedData):
629         * loader/cache/CachedResourceLoader.cpp:
630         (WebCore::CachedResourceLoader::CachedResourceLoader):
631         (WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
632         (WebCore::CachedResourceLoader::requestResource):
633         (WebCore::CachedResourceLoader::revalidateResource):
634         (WebCore::CachedResourceLoader::loadResource):
635         (WebCore::CachedResourceLoader::clearPreloads):
636         (WebCore::CachedResourceLoader::printPreloadStats):
637         * loader/cache/CachedResourceRequest.cpp:
638         (WebCore::CachedResourceRequest::load):
639         (WebCore::CachedResourceRequest::didFail):
640         (WebCore::CachedResourceRequest::didReceiveResponse):
641         * loader/cache/MemoryCache.cpp:
642         (WebCore::memoryCache):
643         * loader/cache/MemoryCache.h:
644
645 2011-01-14  Dan Bernstein  <mitz@apple.com>
646
647         Reviewed by Simon Fraser.
648
649         WebCore part of <rdar://problem/8441312> Crash in -[NSView _invalidateGStatesForTree]
650
651         * WebCore.exp.in: Export RenderWidget::suspendWidgetHierarchyUpdates() and
652         RenderWidget::resumeWidgetHierarchyUpdates().
653         * manual-tests/plug-in-mutates-NSView-hierarchy-during-resize.html: Added.
654         * rendering/RenderWidget.cpp:
655         (WebCore::RenderWidget::setWidgetGeometry): Removed the assertion that widget hierarchy updates
656         are disabled. When this assertion was added, this condition was a subset of the “calling out to
657         plug-in code is forbidden” condition, hence the assertion was valid. The WebKit part of this
658         change now suspends widget hierarchy updates even at times where plug-in code is expected to be
659         called, which invalidates the assertion.
660
661 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
662
663         Unreviewed build fix.
664
665         Fix Qt build after r75837
666         https://bugs.webkit.org/show_bug.cgi?id=52494
667
668         * rendering/style/StyleRareInheritedData.cpp:
669         * rendering/style/StyleRareNonInheritedData.cpp:
670
671 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
672
673         Unreviewed build fix.
674
675         Fix Qt build after r75837
676         https://bugs.webkit.org/show_bug.cgi?id=52494
677
678         * rendering/style/RenderStyle.cpp:
679
680 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
681
682         Unreviewed build fix.
683
684         Fix Qt build after r75837
685         https://bugs.webkit.org/show_bug.cgi?id=52494
686
687         * editing/EditorCommand.cpp:
688
689 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
690
691         Unreviewed build fix.
692
693         Fix Qt build after r75837
694         https://bugs.webkit.org/show_bug.cgi?id=52494
695
696         * editing/ApplyStyleCommand.cpp:
697
698 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
699
700         Unreviewed build fix.
701
702         Fix Qt build after r75837
703         https://bugs.webkit.org/show_bug.cgi?id=52494
704
705         * css/CSSStyleSelector.cpp:
706
707 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
708
709         Unreviewed build fix.
710
711         Fix Qt build after r75837
712         https://bugs.webkit.org/show_bug.cgi?id=52494
713
714         * rendering/InlineFlowBox.h:
715         * rendering/RenderBoxModelObject.h:
716
717 2011-01-14  Tony Gentilcore  <tonyg@chromium.org>
718
719         Reviewed by David Levin.
720
721         Do some forward declaration in RenderStyle.h
722         https://bugs.webkit.org/show_bug.cgi?id=52453
723
724         No new tests because no new functionality.
725
726         * css/CSSComputedStyleDeclaration.cpp:
727         * css/CSSStyleSelector.cpp:
728         * editing/Editor.cpp:
729         * page/EventHandler.cpp:
730         * rendering/EllipsisBox.cpp:
731         * rendering/InlineBox.cpp:
732         * rendering/InlineTextBox.cpp:
733         * rendering/RenderBlock.cpp:
734         * rendering/RenderBlock.h:
735         * rendering/RenderBox.cpp:
736         * rendering/RenderBox.h:
737         * rendering/RenderEmbeddedObject.cpp:
738         * rendering/RenderFieldset.cpp:
739         * rendering/RenderFileUploadControl.cpp:
740         * rendering/RenderFrameSet.cpp:
741         * rendering/RenderHTMLCanvas.cpp:
742         * rendering/RenderImageResource.cpp:
743         * rendering/RenderInputSpeech.cpp:
744         * rendering/RenderLayer.h:
745         * rendering/RenderLineBoxList.cpp:
746         * rendering/RenderListBox.cpp:
747         * rendering/RenderMediaControlsChromium.cpp:
748         * rendering/RenderObject.cpp:
749         * rendering/RenderObject.h:
750         * rendering/RenderObjectChildList.cpp:
751         * rendering/RenderProgress.cpp:
752         * rendering/RenderScrollbarPart.cpp:
753         * rendering/RenderTable.cpp:
754         * rendering/RenderTable.h:
755         * rendering/RenderTableCell.cpp:
756         * rendering/RenderTableRow.cpp:
757         * rendering/RenderTableSection.cpp:
758         * rendering/RenderTheme.cpp:
759         * rendering/RenderThemeChromiumSkia.cpp:
760         * rendering/RenderThemeChromiumWin.cpp:
761         * rendering/RootInlineBox.cpp:
762         * rendering/style/RenderStyle.cpp:
763         * rendering/style/RenderStyle.h:
764         * rendering/style/StyleRareInheritedData.cpp:
765
766 2011-01-14  Ryosuke Niwa  <rniwa@webkit.org>
767
768         Reviewed by Eric Seidel.
769
770         Stop instantiating legacy editing positions in AccessibilityRenderObject.cpp, Element.cpp,
771         BreakBlockquoteCommand.cpp, CompositeEditCommand.cpp, and DeleteButtonController.cpp
772         https://bugs.webkit.org/show_bug.cgi?id=52481
773
774         Removed instantiation of legacy editing positions.
775         Calls to Position::Position are replaced by calls to Position's convenience functions.
776         
777         Also fixed firstPositionInOrBeforeNode and lastPositionInOrAfterNode so that
778         they instantiate right positions for text nodes.
779
780         * accessibility/AccessibilityRenderObject.cpp:
781         (WebCore::AccessibilityRenderObject::setSelectedTextRange):
782         * dom/Element.cpp:
783         (WebCore::Element::updateFocusAppearance):
784         * editing/BreakBlockquoteCommand.cpp:
785         (WebCore::BreakBlockquoteCommand::doApply):
786         * editing/CompositeEditCommand.cpp:
787         (WebCore::CompositeEditCommand::inputText):
788         (WebCore::CompositeEditCommand::rebalanceWhitespaceAt):
789         (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
790         (WebCore::CompositeEditCommand::moveParagraphs):
791         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
792         (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
793         (WebCore::CompositeEditCommand::splitTreeToNode):
794         * editing/DeleteButtonController.cpp:
795         (WebCore::enclosingDeletableElement):
796         * editing/htmlediting.h:
797         (WebCore::firstPositionInOrBeforeNode): Instantiates firstPositionInNode instead of
798         positionBeforeNode for a text node.
799         (WebCore::lastPositionInOrAfterNode): Ditto.
800
801 2011-01-14  Helder Correia  <helder@sencha.com>
802
803         Reviewed by Simon Fraser.
804
805         Shadow is not drawn when filling a path with a gradient
806         https://bugs.webkit.org/show_bug.cgi?id=51982
807
808         This happens in CG and is related to bug 51869, this time to be fixed
809         in GraphicsContext::fillPath(const Path& path). We need to draw the
810         gradient clipped to the path on a CGLayer first, and then draw the
811         layer on the GraphicsContext.
812
813         Test: fast/canvas/canvas-fillPath-gradient-shadow.html
814
815         * platform/graphics/cg/GraphicsContextCG.cpp:
816         (WebCore::GraphicsContext::fillPath):
817
818 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
819
820         Reviewed by Adam Roben.
821
822         Layer syncing should go through the compositor
823         https://bugs.webkit.org/show_bug.cgi?id=52486
824
825         Rather than have FrameView go directly to GraphicsLayer to
826         sync pending changes, route the call through RenderLayerCompositor.
827         
828         Add a FIXME about an existing issue with flushing and subframes.
829         
830         No behavior change, so no tests.
831
832         * page/FrameView.cpp:
833         (WebCore::FrameView::syncCompositingStateForThisFrame):
834         * rendering/RenderLayerBacking.cpp:
835         (WebCore::RenderLayerBacking::notifySyncRequired):
836         * rendering/RenderLayerCompositor.cpp:
837         (WebCore::RenderLayerCompositor::scheduleLayerFlush):
838         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
839         * rendering/RenderLayerCompositor.h:
840         (WebCore::RenderLayerCompositor::notifySyncRequired):
841
842 2011-01-14  Abhishek Arya  <inferno@chromium.org>
843
844         Reviewed by David Hyatt.
845
846         Fix parent block calculation when trying to find top most node
847         containing "this" float.
848         https://bugs.webkit.org/show_bug.cgi?id=51711
849
850         Replace use of containingBlock and traverse the parents directly
851         to check for float existence. containingBlock can skip parents and
852         jump to the RenderView directly which will cause floats to not get
853         cleared from intermediate parents.
854
855         Test: fast/block/float/floats-not-cleared-crash.html
856
857         * rendering/RenderBox.cpp:
858         (WebCore::RenderBox::removeFloatingOrPositionedChildFromBlockLists):
859
860 2011-01-14  Adam Klein  <adamk@chromium.org>
861
862         Reviewed by Darin Fisher.
863
864         [Chromium] Replace BackForwardListClient with BackForwardControllerClient/BackForwardList
865         https://bugs.webkit.org/show_bug.cgi?id=42237
866
867         Remove Chromium-specific implementation from WebCore.
868
869         No tests added; this refactor should be covered by existing history-exercising tests.
870
871         * WebCore.gyp/WebCore.gyp:
872         * WebCore.gypi:
873         * history/BackForwardListChromium.cpp: Removed.
874         * history/BackForwardListImpl.h:
875
876 2011-01-12  Satish Sampath  <satish@chromium.org>
877
878         Reviewed by Dimitri Glazkov.
879
880         Fix a crash when accessing speech input from script.
881         https://bugs.webkit.org/show_bug.cgi?id=52325
882
883         Test: fast/speech/speech-input-scripting.html
884
885         * html/HTMLInputElement.cpp:
886         (WebCore::HTMLInputElement::parseMappedAttribute): Recreate renderer when speech input is enabled/disabled.
887         * rendering/RenderTextControlSingleLine.cpp: Remove unused code.
888         * rendering/RenderTextControlSingleLine.h:
889         * rendering/TextControlInnerElements.cpp: Take self references before firing events and check for renderer validity after.
890         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
891         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
892         (WebCore::InputFieldSpeechButtonElement::detach):
893
894 2011-01-14  Abhishek Arya  <inferno@chromium.org>
895
896         Reviewed by David Hyatt.
897
898         Prevent merging of anonymous blocks if one of them is already getting
899         destroyed.
900         https://bugs.webkit.org/show_bug.cgi?id=52402
901
902         Test: fast/block/merge-anonymous-block-remove-child-crash2.html
903
904         * rendering/RenderBlock.cpp:
905         (WebCore::RenderBlock::RenderBlock): initialize m_beingDestroyed to false.
906         (WebCore::RenderBlock::destroy): set m_beingDestroyed to true.
907         (WebCore::canMergeContiguousAnonymousBlocks): do not merge if any or prev or next is being destroyed.
908         (WebCore::RenderBlock::removeChild): remove the hack previously done for preventing oldChild merging with nextBlock's next sibling.
909         * rendering/RenderBlock.h:
910         (WebCore::RenderBlock::beingDestroyed): public function for m_beingDestroyed.
911
912 2011-01-14  Pavel Feldman  <pfeldman@chromium.org>
913
914         Not reviewed. Follow up to r75791: fix missing dispatch.
915         https://bugs.webkit.org/show_bug.cgi?id=52442
916
917         * inspector/front-end/DebuggerModel.js:
918         (WebInspector.DebuggerDispatcher.prototype.breakpointResolved):
919
920 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
921
922         Reviewed by Adam Roben.
923
924         Issues with contentsScale in GraphicsLayerCA
925         https://bugs.webkit.org/show_bug.cgi?id=52463
926
927         Fix various issues with the recent contentsScale changes:
928
929         * platform/graphics/ca/GraphicsLayerCA.cpp:
930         (WebCore::GraphicsLayerCA::GraphicsLayerCA): Initialize m_contentsScale to 1.
931         (WebCore::GraphicsLayerCA::updateContentsScale): Only do a setNeedsDisplay()
932         if the layer draws content, otherwise we'll create backing store for empty layers.
933         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer): Be sure to set contentsScale
934         on the new (tiled or untiled) layer.
935         (WebCore::GraphicsLayerCA::cloneLayer): Clones need contentsScale too.
936
937 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
938
939         Let Xcode have it's way with the project file.
940
941         * WebCore.xcodeproj/project.pbxproj:
942
943 2011-01-14  Simon Fraser  <simon.fraser@apple.com>
944
945         Reviewed by Anders Carlsson.
946
947         Refactor some FrameView::syncCompositingState code
948         https://bugs.webkit.org/show_bug.cgi?id=52459
949
950         Refactor some code in FrameView related to synchronizing
951         compositing layer state.
952         
953         * page/FrameView.cpp:
954         (WebCore::FrameView::syncCompositingStateForThisFrame):
955         (WebCore::FrameView::syncCompositingStateRecursive):
956         (WebCore::FrameView::paintContents):
957         * page/FrameView.h:
958
959 2011-01-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
960
961         Reviewed by Eric Seidel.
962
963         [Qt] Fix build problem introduced by http://trac.webkit.org/changeset/75713
964         https://bugs.webkit.org/show_bug.cgi?id=30179
965
966         * plugins/symbian/PluginViewSymbian.cpp:
967
968 2011-01-14  Carlos Garcia Campos  <cgarcia@igalia.com>
969
970         Reviewed by Martin Robinson.
971
972         [GTK] Add volume slider to media player
973         https://bugs.webkit.org/show_bug.cgi?id=51532
974
975         * css/mediaControlsGtk.css:
976         (audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel):
977         (audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container):
978         (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
979         * platform/gtk/RenderThemeGtk.cpp:
980         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
981         (WebCore::RenderThemeGtk::paintMediaVolumeSliderContainer):
982         (WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack):
983         (WebCore::RenderThemeGtk::paintMediaVolumeSliderThumb):
984         * platform/gtk/RenderThemeGtk.h:
985         * platform/gtk/RenderThemeGtk2.cpp:
986         (WebCore::RenderThemeGtk::paintSliderTrack):
987         (WebCore::RenderThemeGtk::paintSliderThumb):
988         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
989         * platform/gtk/RenderThemeGtk3.cpp:
990         (WebCore::RenderThemeGtk::paintSliderTrack):
991         (WebCore::RenderThemeGtk::paintSliderThumb):
992         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
993
994 2011-01-14  Joone Hur  <joone.hur@collabora.co.uk>
995
996         Reviewed by David Levin.
997
998         [GTK] Convert use of raw pointers to GOwnPtr in FileSystemGtk.cpp
999         https://bugs.webkit.org/show_bug.cgi?id=52434
1000
1001         No new tests. This code will be tested when an implementation 
1002         of beginDragWithFiles is complete. 
1003
1004         * platform/gtk/FileSystemGtk.cpp:
1005         (WebCore::filenameToString): Use GOwnPtr instead of gchar pointer.
1006         (WebCore::fileSystemRepresentation): Ditto.
1007         (WebCore::filenameForDisplay): Ditto.
1008         (WebCore::pathGetFileName): Ditto.
1009
1010 2011-01-14  Pavel Podivilov  <podivilov@chromium.org>
1011
1012         Reviewed by Yury Semikhatsky.
1013
1014         Web Inspector: breakpoint text snippet in breakpoints sidebar pane disappears after reload.
1015         https://bugs.webkit.org/show_bug.cgi?id=52215
1016
1017         * inspector/front-end/Breakpoint.js:
1018         (WebInspector.Breakpoint):
1019         (WebInspector.Breakpoint.prototype.populateLabelElement):
1020         * inspector/front-end/Script.js:
1021         (WebInspector.Script.prototype.get linesCount):
1022         (WebInspector.Script.prototype.sourceLine):
1023         (WebInspector.Script.prototype.sourceLine.didRequestSource):
1024         (WebInspector.Script.prototype.set source):
1025         (WebInspector.Script.prototype.requestSource.didGetScriptSource):
1026         (WebInspector.Script.prototype.requestSource):
1027         * inspector/front-end/ScriptView.js:
1028         (WebInspector.ScriptView.prototype.setupSourceFrameIfNeeded.didRequestSource):
1029         (WebInspector.ScriptView.prototype.setupSourceFrameIfNeeded):
1030         * inspector/front-end/SourceFrame.js:
1031         (WebInspector.SourceFrame.prototype._addBreakpoint):
1032         * inspector/front-end/utilities.js:
1033         (String.prototype.findAll):
1034
1035 2011-01-14  Pavel Podivilov  <podivilov@chromium.org>
1036
1037         Reviewed by Yury Semikhatsky.
1038
1039         Web Inspector: provide script column offset to frontend.
1040         https://bugs.webkit.org/show_bug.cgi?id=52377
1041
1042         * bindings/js/ScriptDebugServer.cpp:
1043         (WebCore::ScriptDebugServer::dispatchDidParseSource):
1044         * bindings/js/ScriptSourceCode.h:
1045         (WebCore::ScriptSourceCode::ScriptSourceCode):
1046         * bindings/v8/DebuggerScript.js:
1047         ():
1048         * bindings/v8/ScriptDebugServer.cpp:
1049         (WebCore::ScriptDebugServer::dispatchDidParseSource):
1050         * inspector/Inspector.idl:
1051         * inspector/InspectorDebuggerAgent.cpp:
1052         (WebCore::InspectorDebuggerAgent::didParseSource):
1053         * inspector/InspectorDebuggerAgent.h:
1054         * inspector/ScriptDebugListener.h:
1055         * inspector/front-end/DebuggerModel.js:
1056         (WebInspector.DebuggerModel.prototype.parsedScriptSource):
1057         * inspector/front-end/Script.js:
1058         (WebInspector.Script):
1059
1060 2011-01-14  Ilya Tikhonovsky  <loislo@chromium.org>
1061
1062         Unreviewed one line fix for console-xhr-logging test.
1063
1064         The problem was introduced at r75788.
1065
1066         * inspector/InspectorBrowserDebuggerAgent.cpp:
1067         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
1068
1069 2011-01-13  Yury Semikhatsky  <yurys@chromium.org>
1070
1071         Reviewed by Pavel Feldman.
1072
1073         Web Inspector: extract console related functionality into InspectorConsoleAgent
1074         https://bugs.webkit.org/show_bug.cgi?id=52282
1075
1076         * CMakeLists.txt:
1077         * GNUmakefile.am:
1078         * WebCore.gypi:
1079         * WebCore.pro:
1080         * inspector/CodeGeneratorInspector.pm:
1081         * inspector/ConsoleMessage.cpp:
1082         (WebCore::ConsoleMessage::~ConsoleMessage):
1083         * inspector/ConsoleMessage.h:
1084         * inspector/Inspector.idl:
1085         * inspector/InspectorConsoleAgent.cpp: Added.
1086         (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
1087         (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
1088         (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
1089         (WebCore::InspectorConsoleAgent::clearConsoleMessages):
1090         (WebCore::InspectorConsoleAgent::reset):
1091         (WebCore::InspectorConsoleAgent::setFrontend):
1092         (WebCore::InspectorConsoleAgent::addMessageToConsole):
1093         (WebCore::InspectorConsoleAgent::startTiming):
1094         (WebCore::InspectorConsoleAgent::stopTiming):
1095         (WebCore::InspectorConsoleAgent::count):
1096         (WebCore::InspectorConsoleAgent::resourceRetrievedByXMLHttpRequest):
1097         (WebCore::InspectorConsoleAgent::didReceiveResponse):
1098         (WebCore::InspectorConsoleAgent::didFailLoading):
1099         (WebCore::InspectorConsoleAgent::addConsoleMessage):
1100         * inspector/InspectorConsoleAgent.h: Added.
1101         * inspector/InspectorController.cpp:
1102         (WebCore::InspectorController::InspectorController):
1103         (WebCore::InspectorController::clearConsoleMessages):
1104         (WebCore::InspectorController::connectFrontend):
1105         (WebCore::InspectorController::disconnectFrontend):
1106         (WebCore::InspectorController::didCommitLoad):
1107         * inspector/InspectorController.h:
1108         (WebCore::InspectorController::consoleAgent):
1109         * inspector/InspectorInstrumentation.cpp:
1110         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
1111         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
1112         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
1113         (WebCore::InspectorInstrumentation::addMessageToConsole):
1114         (WebCore::InspectorInstrumentation::count):
1115         (WebCore::InspectorInstrumentation::startTiming):
1116         (WebCore::InspectorInstrumentation::stopTiming):
1117         (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsole):
1118         * inspector/InspectorInstrumentation.h:
1119         * inspector/InspectorProfilerAgent.cpp:
1120         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
1121         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
1122         * inspector/front-end/ConsoleView.js:
1123         (WebInspector.ConsoleView):
1124         (WebInspector.ConsoleView.prototype.addConsoleMessage):
1125         (WebInspector.ConsoleView.prototype.updateConsoleMessageExpiredCount):
1126         (WebInspector.ConsoleView.prototype.consoleMessagesCleared):
1127         * inspector/front-end/inspector.js:
1128         * page/Console.cpp:
1129         (WebCore::Console::addMessage):
1130         (WebCore::Console::count):
1131         (WebCore::Console::profile):
1132         (WebCore::Console::time):
1133         (WebCore::Console::timeEnd):
1134         (WebCore::Console::group):
1135         (WebCore::Console::groupCollapsed):
1136         (WebCore::Console::groupEnd):
1137         * page/Console.h:
1138         * page/Console.idl:
1139
1140 2011-01-14  Pavel Feldman  <pfeldman@chromium.org>
1141
1142         Reviewed by Yury Semikhatsky.
1143
1144         Web Inspector: do not use this as protocol message
1145         dispatcher in models / agents.
1146         https://bugs.webkit.org/show_bug.cgi?id=52442
1147
1148         Models should never for InspectorBackend.registerDomainDispatcher("foo", this).
1149         There should be a clear way to tell whether method is being called
1150         from within front-end or by the backend.
1151
1152         * inspector/front-end/DOMAgent.js:
1153         (WebInspector.DOMAgent):
1154         (WebInspector.DOMAgent.prototype.nodeForId):
1155         (WebInspector.DOMAgent.prototype._bindNodes):
1156         (WebInspector.DOMAgent.prototype._removeBreakpoints):
1157         (WebInspector.DOMDispatcher):
1158         (WebInspector.DOMDispatcher.prototype.setDocument):
1159         (WebInspector.DOMDispatcher.prototype.attributesUpdated):
1160         (WebInspector.DOMDispatcher.prototype.characterDataModified):
1161         (WebInspector.DOMDispatcher.prototype.setChildNodes):
1162         (WebInspector.DOMDispatcher.prototype.setDetachedRoot):
1163         (WebInspector.DOMDispatcher.prototype.childNodeCountUpdated):
1164         (WebInspector.DOMDispatcher.prototype.childNodeInserted):
1165         (WebInspector.DOMDispatcher.prototype.childNodeRemoved):
1166         (WebInspector.DOMDispatcher.prototype.didCommitLoad):
1167         (WebInspector.ApplicationCacheDispatcher):
1168         (WebInspector.ApplicationCacheDispatcher.prototype.getApplicationCachesAsync):
1169         (WebInspector.ApplicationCacheDispatcher.prototype.updateApplicationCacheStatus):
1170         (WebInspector.ApplicationCacheDispatcher.prototype.updateNetworkState):
1171         * inspector/front-end/DOMStorage.js:
1172         (WebInspector.DOMStorageDispatcher):
1173         (WebInspector.DOMStorageDispatcher.prototype.addDOMStorage):
1174         (WebInspector.DOMStorageDispatcher.prototype.selectDOMStorage):
1175         (WebInspector.DOMStorageDispatcher.prototype.updateDOMStorage):
1176         * inspector/front-end/Database.js:
1177         (WebInspector.Database.prototype.executeSql):
1178         (WebInspector.DatabaseDispatcher):
1179         (WebInspector.DatabaseDispatcher.prototype.addDatabase):
1180         (WebInspector.DatabaseDispatcher.prototype.selectDatabase):
1181         (WebInspector.DatabaseDispatcher.prototype.sqlTransactionSucceeded):
1182         (WebInspector.DatabaseDispatcher.prototype.sqlTransactionFailed):
1183         * inspector/front-end/DebuggerModel.js:
1184         (WebInspector.DebuggerModel):
1185         (WebInspector.DebuggerModel.prototype._pausedScript):
1186         (WebInspector.DebuggerModel.prototype._resumedScript):
1187         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
1188         (WebInspector.DebuggerModel.prototype._failedToParseScriptSource):
1189         (WebInspector.DebuggerDispatcher):
1190         (WebInspector.DebuggerDispatcher.prototype.pausedScript):
1191         (WebInspector.DebuggerDispatcher.prototype.resumedScript):
1192         (WebInspector.DebuggerDispatcher.prototype.parsedScriptSource):
1193         (WebInspector.DebuggerDispatcher.prototype.failedToParseScriptSource):
1194         * inspector/front-end/FileSystemView.js:
1195         (WebInspector.FileSystemDispatcher):
1196         (WebInspector.FileSystemDispatcher.prototype.getFileSystemPathsAsync):
1197         (WebInspector.FileSystemDispatcher.prototype.didGetFileSystemPath):
1198         (WebInspector.FileSystemDispatcher.prototype.didGetFileSystemError):
1199         (WebInspector.FileSystemDispatcher.prototype.didGetFileSystemDisabled):
1200         * inspector/front-end/ProfilesPanel.js:
1201         (WebInspector.ProfilesPanel):
1202         (WebInspector.ProfilesPanel.prototype._addProfileHeader):
1203         (WebInspector.ProfilesPanel.prototype._removeProfileHeader):
1204         (WebInspector.ProfilesPanel.prototype._addHeapSnapshotChunk):
1205         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot):
1206         (WebInspector.ProfilesPanel.prototype._setRecordingProfile):
1207         (WebInspector.ProfilerDispatcher):
1208         (WebInspector.ProfilerDispatcher.prototype.profilerWasEnabled):
1209         (WebInspector.ProfilerDispatcher.prototype.profilerWasDisabled):
1210         (WebInspector.ProfilerDispatcher.prototype.resetProfiles):
1211         (WebInspector.ProfilerDispatcher.prototype.addProfileHeader):
1212         (WebInspector.ProfilerDispatcher.prototype.addHeapSnapshotChunk):
1213         (WebInspector.ProfilerDispatcher.prototype.finishHeapSnapshot):
1214         (WebInspector.ProfilerDispatcher.prototype.setRecordingProfile):
1215         (WebInspector.ProfileSidebarTreeElement.prototype.ondelete):
1216         * inspector/front-end/ResourceTreeModel.js:
1217         (WebInspector.ResourceTreeModel):
1218         * inspector/front-end/TimelinePanel.js:
1219         (WebInspector.TimelinePanel):
1220         (WebInspector.TimelinePanel.prototype._timelineProfilerWasStarted):
1221         (WebInspector.TimelinePanel.prototype._timelineProfilerWasStopped):
1222         (WebInspector.TimelinePanel.prototype._addRecordToTimeline):
1223         (WebInspector.TimelineDispatcher):
1224         (WebInspector.TimelineDispatcher.prototype.timelineProfilerWasStarted):
1225         (WebInspector.TimelineDispatcher.prototype.timelineProfilerWasStopped):
1226         (WebInspector.TimelineDispatcher.prototype.addRecordToTimeline):
1227
1228 2011-01-14  Csaba Osztrogonác  <ossy@webkit.org>
1229
1230         [Qt][V8] Unreviewed buildfix after r75788.
1231
1232         * inspector/InspectorBrowserDebuggerAgent.cpp:
1233
1234 2011-01-12  Ilya Tikhonovsky  <loislo@chromium.org>
1235
1236         Reviewed by Yury Semikhatsky.
1237
1238         Web Inspector: Extract BrowserDebuggerAgent from InspectorController, InspectorDOMAgent and InspectorDebugger agent.
1239         We have some methods of Debugger which are related to DOM.
1240         Lets extract these methods to BrowserDebugger agent.
1241
1242         http://bugs.webkit.org/show_bug.cgi?id=52294
1243
1244         * CMakeLists.txt:
1245         * WebCore.gypi:
1246         * WebCore.pro:
1247         * WebCore.vcproj/WebCore.vcproj:
1248         * WebCore.xcodeproj/project.pbxproj:
1249         * inspector/CodeGeneratorInspector.pm:
1250         * inspector/Inspector.idl:
1251         * inspector/InspectorBrowserDebuggerAgent.cpp: Added.
1252         (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
1253         (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
1254         (WebCore::InspectorBrowserDebuggerAgent::discardBindings):
1255         (WebCore::InspectorBrowserDebuggerAgent::setEventListenerBreakpoint):
1256         (WebCore::InspectorBrowserDebuggerAgent::removeEventListenerBreakpoint):
1257         (WebCore::InspectorBrowserDebuggerAgent::didInsertDOMNode):
1258         (WebCore::InspectorBrowserDebuggerAgent::didRemoveDOMNode):
1259         (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
1260         (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
1261         (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
1262         (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
1263         (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
1264         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
1265         (WebCore::InspectorBrowserDebuggerAgent::hasBreakpoint):
1266         (WebCore::InspectorBrowserDebuggerAgent::updateSubtreeBreakpoints):
1267         (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
1268         (WebCore::InspectorBrowserDebuggerAgent::setXHRBreakpoint):
1269         (WebCore::InspectorBrowserDebuggerAgent::removeXHRBreakpoint):
1270         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
1271         (WebCore::InspectorBrowserDebuggerAgent::clearForPageNavigation):
1272         * inspector/InspectorBrowserDebuggerAgent.h: Added.
1273         (WebCore::InspectorBrowserDebuggerAgent::create):
1274         * inspector/InspectorController.cpp:
1275         (WebCore::InspectorController::InspectorController):
1276         (WebCore::InspectorController::inspectedPageDestroyed):
1277         (WebCore::InspectorController::didCommitLoad):
1278         (WebCore::InspectorController::enableDebuggerFromFrontend):
1279         (WebCore::InspectorController::disableDebugger):
1280         (WebCore::InspectorController::restoreStickyBreakpoints):
1281         (WebCore::InspectorController::restoreStickyBreakpoint):
1282         * inspector/InspectorController.h:
1283         * inspector/InspectorDOMAgent.cpp:
1284         (WebCore::InspectorDOMAgent::discardBindings):
1285         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1286         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1287         * inspector/InspectorDOMAgent.h:
1288         * inspector/InspectorInstrumentation.cpp:
1289         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1290         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1291         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1292         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1293         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1294         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1295         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1296
1297 2011-01-14  Andrey Kosyakov  <caseq@chromium.org>
1298
1299         Reviewed by Pavel Feldman.
1300
1301         Web Inspector: redirected resources not handled properly in Network panel
1302         https://bugs.webkit.org/show_bug.cgi?id=52292
1303
1304         * inspector/Inspector.idl: Do not pass isMainResource to identifierForInitialRequest() (it's useless, as we may hit provisional load)
1305         * inspector/InspectorInstrumentation.cpp: Ditto.
1306         (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
1307         * inspector/InspectorResourceAgent.cpp: Ditto.
1308         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
1309         * inspector/InspectorResourceAgent.h: Ditto.
1310         * inspector/InspectorInstrumentation.cpp: Ditto.
1311         (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl): Fix main resource detection.
1312         * inspector/front-end/AuditsPanel.js: WebInspector.networkResources now returns array, not map.
1313         * inspector/front-end/ConsoleView.js: User WebInspector.resourceById() to get resource
1314         (WebInspector.ConsoleMessage.prototype._formatMessage):
1315         * inspector/front-end/ExtensionServer.js: Ditto.
1316         (WebInspector.ExtensionServer.prototype._onRevealAndSelectResource):
1317         (WebInspector.ExtensionServer.prototype._onGetResourceContent):
1318         * inspector/front-end/HAREntry.js: WebInspector.networkResources now returns array, not map
1319         (WebInspector.HARLog.prototype.build):
1320         (WebInspector.HARLog.prototype._convertResource):
1321         * inspector/front-end/NetworkManager.js:
1322         (WebInspector.NetworkManager): Use appendResource, not refreshResource, when adding a new resource.
1323         (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
1324         (WebInspector.NetworkManager.prototype.willSendRequest):
1325         (WebInspector.NetworkManager.prototype.didLoadResourceFromMemoryCache):
1326         (WebInspector.NetworkManager.prototype.setInitialContent):
1327         (WebInspector.NetworkManager.prototype.didCommitLoadForFrame):
1328         (WebInspector.NetworkManager.prototype.didCreateWebSocket):
1329         (WebInspector.NetworkManager.prototype._createResource): always register resource URL with ResourceTreeModel
1330         (WebInspector.NetworkManager.prototype._appendRedirect):
1331         * inspector/front-end/NetworkPanel.js:
1332         (WebInspector.NetworkPanel):
1333         (WebInspector.NetworkPanel.prototype.get resources):
1334         (WebInspector.NetworkPanel.prototype.resourceById):
1335         (WebInspector.NetworkPanel.prototype.appendResource): Add resource as new iff appendResource was added.
1336         (WebInspector.NetworkPanel.prototype.refreshResource): ditto.
1337         (WebInspector.NetworkPanel.prototype.mainResourceChanged): Clear console upon arrival of new main resource.
1338         * inspector/front-end/ResourceTreeModel.js: Expose unbindResourceURL, bind resources automatically upon creation.
1339         (WebInspector.ResourceTreeModel.prototype._clearResources):
1340         (WebInspector.ResourceTreeModel.prototype.unbindResourceURL):
1341         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
1342         (WebInspector.ResourceTreeModel.prototype.createResource):
1343         * inspector/front-end/inspector.js:
1344         (WebInspector.resourceById):
1345
1346 2011-01-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1347
1348         Unreviewed, rolling out r75783.
1349         http://trac.webkit.org/changeset/75783
1350         https://bugs.webkit.org/show_bug.cgi?id=52439
1351
1352         a bit strange but the same patch have broken mac builds at
1353         linking stage. (Requested by loislo2 on #webkit).
1354
1355         * CMakeLists.txt:
1356         * GNUmakefile.am:
1357         * WebCore.gypi:
1358         * WebCore.pro:
1359         * WebCore.vcproj/WebCore.vcproj:
1360         * WebCore.xcodeproj/project.pbxproj:
1361         * inspector/CodeGeneratorInspector.pm:
1362         * inspector/Inspector.idl:
1363         * inspector/InspectorBrowserDebuggerAgent.cpp: Removed.
1364         * inspector/InspectorBrowserDebuggerAgent.h: Removed.
1365         * inspector/InspectorController.cpp:
1366         (WebCore::InspectorController::InspectorController):
1367         (WebCore::InspectorController::inspectedPageDestroyed):
1368         (WebCore::InspectorController::didCommitLoad):
1369         (WebCore::InspectorController::enableDebuggerFromFrontend):
1370         (WebCore::InspectorController::disableDebugger):
1371         (WebCore::InspectorController::restoreStickyBreakpoints):
1372         (WebCore::InspectorController::restoreStickyBreakpoint):
1373         (WebCore::InspectorController::setEventListenerBreakpoint):
1374         (WebCore::InspectorController::removeEventListenerBreakpoint):
1375         (WebCore::InspectorController::hasEventListenerBreakpoint):
1376         (WebCore::InspectorController::setXHRBreakpoint):
1377         (WebCore::InspectorController::removeXHRBreakpoint):
1378         (WebCore::InspectorController::hasXHRBreakpoint):
1379         * inspector/InspectorController.h:
1380         * inspector/InspectorDOMAgent.cpp:
1381         (WebCore::InspectorDOMAgent::discardBindings):
1382         (WebCore::InspectorDOMAgent::setDOMBreakpoint):
1383         (WebCore::InspectorDOMAgent::removeDOMBreakpoint):
1384         (WebCore::InspectorDOMAgent::shouldBreakOnNodeInsertion):
1385         (WebCore::InspectorDOMAgent::shouldBreakOnNodeRemoval):
1386         (WebCore::InspectorDOMAgent::shouldBreakOnAttributeModification):
1387         (WebCore::InspectorDOMAgent::descriptionForDOMEvent):
1388         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1389         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1390         (WebCore::InspectorDOMAgent::hasBreakpoint):
1391         (WebCore::InspectorDOMAgent::updateSubtreeBreakpoints):
1392         * inspector/InspectorDOMAgent.h:
1393         * inspector/InspectorInstrumentation.cpp:
1394         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1395         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1396         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1397         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1398         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1399         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1400         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1401
1402 2011-01-12  Ilya Tikhonovsky  <loislo@chromium.org>
1403
1404         Reviewed by Yury Semikhatsky.
1405
1406         Web Inspector: Extract BrowserDebuggerAgent from InspectorController, InspectorDOMAgent and InspectorDebugger agent.
1407         We have some methods of Debugger which are related to DOM.
1408         Lets extract these methods to BrowserDebugger agent.
1409
1410         http://bugs.webkit.org/show_bug.cgi?id=52294
1411
1412         * CMakeLists.txt:
1413         * WebCore.gypi:
1414         * WebCore.pro:
1415         * WebCore.vcproj/WebCore.vcproj:
1416         * WebCore.xcodeproj/project.pbxproj:
1417         * inspector/CodeGeneratorInspector.pm:
1418         * inspector/Inspector.idl:
1419         * inspector/InspectorBrowserDebuggerAgent.cpp: Added.
1420         (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
1421         (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
1422         (WebCore::InspectorBrowserDebuggerAgent::discardBindings):
1423         (WebCore::InspectorBrowserDebuggerAgent::setEventListenerBreakpoint):
1424         (WebCore::InspectorBrowserDebuggerAgent::removeEventListenerBreakpoint):
1425         (WebCore::InspectorBrowserDebuggerAgent::didInsertDOMNode):
1426         (WebCore::InspectorBrowserDebuggerAgent::didRemoveDOMNode):
1427         (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
1428         (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
1429         (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
1430         (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
1431         (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
1432         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
1433         (WebCore::InspectorBrowserDebuggerAgent::hasBreakpoint):
1434         (WebCore::InspectorBrowserDebuggerAgent::updateSubtreeBreakpoints):
1435         (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
1436         (WebCore::InspectorBrowserDebuggerAgent::setXHRBreakpoint):
1437         (WebCore::InspectorBrowserDebuggerAgent::removeXHRBreakpoint):
1438         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
1439         (WebCore::InspectorBrowserDebuggerAgent::clearForPageNavigation):
1440         * inspector/InspectorBrowserDebuggerAgent.h: Added.
1441         (WebCore::InspectorBrowserDebuggerAgent::create):
1442         * inspector/InspectorController.cpp:
1443         (WebCore::InspectorController::InspectorController):
1444         (WebCore::InspectorController::inspectedPageDestroyed):
1445         (WebCore::InspectorController::didCommitLoad):
1446         (WebCore::InspectorController::enableDebuggerFromFrontend):
1447         (WebCore::InspectorController::disableDebugger):
1448         (WebCore::InspectorController::restoreStickyBreakpoints):
1449         (WebCore::InspectorController::restoreStickyBreakpoint):
1450         * inspector/InspectorController.h:
1451         * inspector/InspectorDOMAgent.cpp:
1452         (WebCore::InspectorDOMAgent::discardBindings):
1453         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1454         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1455         * inspector/InspectorDOMAgent.h:
1456         * inspector/InspectorInstrumentation.cpp:
1457         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1458         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1459         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1460         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1461         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1462         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1463         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1464
1465 2011-01-14  Pavel Feldman  <pfeldman@chromium.org>
1466
1467         Not reviewed: build fix.
1468
1469         * WebCore.vcproj/WebCore.vcproj:
1470
1471 2011-01-14  Pavel Feldman  <pfeldman@chromium.org>
1472
1473         Reviewed by Yury Semikhatsky.
1474
1475         Web Inspector: extract InspectorSettings from InspectorState,
1476         simplify it.
1477         https://bugs.webkit.org/show_bug.cgi?id=52429
1478
1479         * CMakeLists.txt:
1480         * GNUmakefile.am:
1481         * WebCore.gypi:
1482         * WebCore.pro:
1483         * WebCore.xcodeproj/project.pbxproj:
1484         * inspector/InspectorClient.h:
1485         * inspector/InspectorController.cpp:
1486         (WebCore::InspectorController::InspectorController):
1487         (WebCore::InspectorController::inspectorStartsAttached):
1488         (WebCore::InspectorController::setInspectorStartsAttached):
1489         (WebCore::InspectorController::setInspectorAttachedHeight):
1490         (WebCore::InspectorController::inspectorAttachedHeight):
1491         (WebCore::InspectorController::setMonitoringXHREnabled):
1492         (WebCore::InspectorController::restoreDebugger):
1493         (WebCore::InspectorController::restoreProfiler):
1494         (WebCore::InspectorController::ensureSettingsLoaded):
1495         (WebCore::InspectorController::enableProfiler):
1496         (WebCore::InspectorController::disableProfiler):
1497         (WebCore::InspectorController::enableDebuggerFromFrontend):
1498         (WebCore::InspectorController::disableDebugger):
1499         * inspector/InspectorController.h:
1500         * inspector/InspectorSettings.cpp: Added.
1501         (WebCore::InspectorSettings::InspectorSettings):
1502         (WebCore::InspectorSettings::getBoolean):
1503         (WebCore::InspectorSettings::setBoolean):
1504         (WebCore::InspectorSettings::getLong):
1505         (WebCore::InspectorSettings::setLong):
1506         (WebCore::InspectorSettings::registerBoolean):
1507         (WebCore::InspectorSettings::registerLong):
1508         * inspector/InspectorSettings.h: Added.
1509         * inspector/InspectorState.cpp:
1510         (WebCore::InspectorState::InspectorState):
1511         (WebCore::InspectorState::setValue):
1512         (WebCore::InspectorState::setObject):
1513         (WebCore::InspectorState::registerBoolean):
1514         (WebCore::InspectorState::registerString):
1515         (WebCore::InspectorState::registerLong):
1516         (WebCore::InspectorState::registerObject):
1517         (WebCore::InspectorState::Property::create):
1518         * inspector/InspectorState.h:
1519         (WebCore::InspectorState::setBoolean):
1520         (WebCore::InspectorState::setString):
1521         (WebCore::InspectorState::setLong):
1522
1523 2011-01-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1524
1525         Unreviewed, rolling out r75774.
1526         http://trac.webkit.org/changeset/75774
1527         https://bugs.webkit.org/show_bug.cgi?id=52431
1528
1529         gtk builds were broken (Requested by loislo2 on #webkit).
1530
1531         * CMakeLists.txt:
1532         * WebCore.gypi:
1533         * WebCore.pro:
1534         * WebCore.vcproj/WebCore.vcproj:
1535         * WebCore.xcodeproj/project.pbxproj:
1536         * inspector/CodeGeneratorInspector.pm:
1537         * inspector/Inspector.idl:
1538         * inspector/InspectorBrowserDebuggerAgent.cpp: Removed.
1539         * inspector/InspectorBrowserDebuggerAgent.h: Removed.
1540         * inspector/InspectorController.cpp:
1541         (WebCore::InspectorController::InspectorController):
1542         (WebCore::InspectorController::inspectedPageDestroyed):
1543         (WebCore::InspectorController::didCommitLoad):
1544         (WebCore::InspectorController::enableDebuggerFromFrontend):
1545         (WebCore::InspectorController::disableDebugger):
1546         (WebCore::InspectorController::restoreStickyBreakpoints):
1547         (WebCore::InspectorController::restoreStickyBreakpoint):
1548         (WebCore::InspectorController::setEventListenerBreakpoint):
1549         (WebCore::InspectorController::removeEventListenerBreakpoint):
1550         (WebCore::InspectorController::hasEventListenerBreakpoint):
1551         (WebCore::InspectorController::setXHRBreakpoint):
1552         (WebCore::InspectorController::removeXHRBreakpoint):
1553         (WebCore::InspectorController::hasXHRBreakpoint):
1554         * inspector/InspectorController.h:
1555         * inspector/InspectorDOMAgent.cpp:
1556         (WebCore::InspectorDOMAgent::discardBindings):
1557         (WebCore::InspectorDOMAgent::setDOMBreakpoint):
1558         (WebCore::InspectorDOMAgent::removeDOMBreakpoint):
1559         (WebCore::InspectorDOMAgent::shouldBreakOnNodeInsertion):
1560         (WebCore::InspectorDOMAgent::shouldBreakOnNodeRemoval):
1561         (WebCore::InspectorDOMAgent::shouldBreakOnAttributeModification):
1562         (WebCore::InspectorDOMAgent::descriptionForDOMEvent):
1563         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1564         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1565         (WebCore::InspectorDOMAgent::hasBreakpoint):
1566         (WebCore::InspectorDOMAgent::updateSubtreeBreakpoints):
1567         * inspector/InspectorDOMAgent.h:
1568         * inspector/InspectorInstrumentation.cpp:
1569         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1570         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1571         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1572         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1573         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1574         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1575         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1576
1577 2011-01-12  Ilya Tikhonovsky  <loislo@chromium.org>
1578
1579         Reviewed by Yury Semikhatsky.
1580
1581         Web Inspector: Extract BrowserDebuggerAgent from InspectorController, InspectorDOMAgent and InspectorDebugger agent.
1582         We have some methods of Debugger which are related to DOM.
1583         Lets extract these methods to BrowserDebugger agent.
1584
1585         http://bugs.webkit.org/show_bug.cgi?id=52294
1586
1587         * CMakeLists.txt:
1588         * WebCore.gypi:
1589         * WebCore.pro:
1590         * WebCore.vcproj/WebCore.vcproj:
1591         * WebCore.xcodeproj/project.pbxproj:
1592         * inspector/CodeGeneratorInspector.pm:
1593         * inspector/Inspector.idl:
1594         * inspector/InspectorBrowserDebuggerAgent.cpp: Added.
1595         (WebCore::InspectorBrowserDebuggerAgent::InspectorBrowserDebuggerAgent):
1596         (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
1597         (WebCore::InspectorBrowserDebuggerAgent::discardBindings):
1598         (WebCore::InspectorBrowserDebuggerAgent::setEventListenerBreakpoint):
1599         (WebCore::InspectorBrowserDebuggerAgent::removeEventListenerBreakpoint):
1600         (WebCore::InspectorBrowserDebuggerAgent::didInsertDOMNode):
1601         (WebCore::InspectorBrowserDebuggerAgent::didRemoveDOMNode):
1602         (WebCore::InspectorBrowserDebuggerAgent::setDOMBreakpoint):
1603         (WebCore::InspectorBrowserDebuggerAgent::removeDOMBreakpoint):
1604         (WebCore::InspectorBrowserDebuggerAgent::willInsertDOMNode):
1605         (WebCore::InspectorBrowserDebuggerAgent::willRemoveDOMNode):
1606         (WebCore::InspectorBrowserDebuggerAgent::willModifyDOMAttr):
1607         (WebCore::InspectorBrowserDebuggerAgent::descriptionForDOMEvent):
1608         (WebCore::InspectorBrowserDebuggerAgent::hasBreakpoint):
1609         (WebCore::InspectorBrowserDebuggerAgent::updateSubtreeBreakpoints):
1610         (WebCore::InspectorBrowserDebuggerAgent::pauseOnNativeEventIfNeeded):
1611         (WebCore::InspectorBrowserDebuggerAgent::setXHRBreakpoint):
1612         (WebCore::InspectorBrowserDebuggerAgent::removeXHRBreakpoint):
1613         (WebCore::InspectorBrowserDebuggerAgent::willSendXMLHttpRequest):
1614         (WebCore::InspectorBrowserDebuggerAgent::clearForPageNavigation):
1615         * inspector/InspectorBrowserDebuggerAgent.h: Added.
1616         (WebCore::InspectorBrowserDebuggerAgent::create):
1617         * inspector/InspectorController.cpp:
1618         (WebCore::InspectorController::InspectorController):
1619         (WebCore::InspectorController::inspectedPageDestroyed):
1620         (WebCore::InspectorController::didCommitLoad):
1621         (WebCore::InspectorController::enableDebuggerFromFrontend):
1622         (WebCore::InspectorController::disableDebugger):
1623         (WebCore::InspectorController::restoreStickyBreakpoints):
1624         (WebCore::InspectorController::restoreStickyBreakpoint):
1625         * inspector/InspectorController.h:
1626         * inspector/InspectorDOMAgent.cpp:
1627         (WebCore::InspectorDOMAgent::discardBindings):
1628         (WebCore::InspectorDOMAgent::didInsertDOMNode):
1629         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
1630         * inspector/InspectorDOMAgent.h:
1631         * inspector/InspectorInstrumentation.cpp:
1632         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1633         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1634         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1635         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1636         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1637         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1638         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1639
1640 2011-01-13  Kent Tamura  <tkent@chromium.org>
1641
1642         Reviewed by Dimitri Glazkov.
1643
1644         Implement form validation message UI
1645         https://bugs.webkit.org/show_bug.cgi?id=48980
1646
1647         * Add four internal pseudo selectors:
1648           - -webkit-validation-bubble
1649           - -webkit-validation-bubble-message
1650           - -webkit-validation-bubble-top-outer-arrow
1651           - -webkit-validation-bubble-top-inner-arrow
1652
1653         * Implement ValidationMessage functions
1654           Show the message for <the number of characters> / 20.0 seconds.
1655
1656         No new tests because the feature is disabled by default for now and the
1657         new behavior is strongly timing-dependent.
1658
1659         * css/CSSStyleSelector.cpp:
1660         (WebCore::CSSStyleSelector::canShareStyleWithElement):
1661           Do not share a style with elements with different shadowPseudoId().
1662         * css/html.css: Define appearance for the internal selectors.
1663         (::-webkit-validation-bubble):
1664         (::-webkit-validation-bubble-message):
1665         (::-webkit-validation-bubble-top-outer-arrow):
1666         (::-webkit-validation-bubble-top-inner-arrow):
1667         * dom/Node.cpp:
1668         (WebCore::Node::createRendererIfNeeded):
1669           Allow to add shadow renderers even if canHaveChildren() returns false.
1670         * html/HTMLFormControlElement.cpp:
1671         (WebCore::HTMLFormControlElement::detach):
1672           Remove m_validationMessage immediately because we can't use
1673           hideVisibleValidationMessage(), which calls a ValidationMessage function later.
1674         (WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
1675           - Don't create ValidationMessage if the message is empty.
1676           - Remove the check for message equality.
1677         (WebCore::HTMLFormControlElement::hideVisibleValidationMessage):
1678           Don't remove m_validationMessage immediately. We shouldn't make the
1679           element needsLayout() state in this context.
1680         * html/ValidationMessage.cpp:
1681         (WebCore::ValidationMessage::~ValidationMessage):
1682           hideMessage() -> deleteBubbleTree() renaming.
1683         (WebCore::ValidationMessage::setMessage): Implemented.
1684         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
1685           Added. This updates the validation message and starts the timer to hide it.
1686         (WebCore::ElementWithPseudoId):
1687           Added to help implementations of styled shadow nodes.
1688         (WebCore::ValidationMessage::buildBubbleTree): Added.
1689         (WebCore::ValidationMessage::requestToHideMessage): Added.
1690         (WebCore::ValidationMessage::deleteBubbleTree):
1691           Renamed from hideMessage(), and implemented.
1692         * html/ValidationMessage.h: Add declarations.
1693
1694 2011-01-13  Dan Bernstein  <mitz@apple.com>
1695
1696         Reviewed by Alexey Proskuryakov.
1697
1698         <rdar://problem/8827065> REGRESSION (r71884): Cross-origin XHR fails if willSendRequest changes the URL
1699         https://bugs.webkit.org/show_bug.cgi?id=52419
1700
1701         Test: http/tests/loading/cross-origin-XHR-willLoadRequest.html
1702
1703         * loader/ResourceLoader.cpp:
1704         (WebCore::ResourceLoader::init): Complete r74453 by ensuring that m_request is only set after
1705         willSendRequest(). Otherwise, willSendRequest() ends up calling into
1706         ThreadableDocumentRequest::willSendRequest(), which cancels the request.
1707
1708 2011-01-13  Dan Bernstein  <mitz@apple.com>
1709
1710         Reviewed by Mark Rowe.
1711
1712         Don’t try to compile InjectedScriptSource.js into WebCore.
1713
1714         * WebCore.xcodeproj/project.pbxproj:
1715
1716 2011-01-13  Mike Thole  <mthole@apple.com>
1717
1718         Reviewed by Darin Adler and Brady Eidson.
1719
1720         The pageScaleFactor() should be saved/restored along with the scroll position
1721         https://bugs.webkit.org/show_bug.cgi?id=52406
1722         <rdar://problem/8714412>
1723
1724         * history/HistoryItem.cpp:
1725         (WebCore::HistoryItem::HistoryItem): Initialize m_pageScaleFactor.
1726         (WebCore::HistoryItem::pageScaleFactor): Added getter.
1727         (WebCore::HistoryItem::setPageScaleFactor): Added setter.
1728         (WebCore::HistoryItem::encodeBackForwardTreeNode): Encode m_pageScaleFactor.
1729         (WebCore::HistoryItem::decodeBackForwardTree): Decode m_pageScaleFactor.
1730         * history/HistoryItem.h:
1731         * loader/HistoryController.cpp:
1732         (WebCore::HistoryController::saveScrollPositionAndViewStateToItem): Save the page scale factor...
1733         (WebCore::HistoryController::restoreScrollPositionAndViewState): ...and restore it here.
1734
1735 2011-01-13  Evan Martin  <evan@chromium.org>
1736
1737         Reviewed by Tony Chang.
1738
1739         [chromium] drop backwards iteration in Linux complex text code
1740         https://bugs.webkit.org/show_bug.cgi?id=52403
1741
1742         ComplexTextController previously supported iterating through the text in
1743         both directions, but this resulted in duplicate code for each path.
1744         Instead, by being more careful about flipping signs where appropriate,
1745         we can refactor the code into one code path.
1746
1747         No tests, just a refactoring; should be covered by existing tests.
1748
1749         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
1750         (WebCore::ComplexTextController::ComplexTextController):
1751         (WebCore::ComplexTextController::reset):
1752         (WebCore::ComplexTextController::nextScriptRun):
1753         * platform/graphics/chromium/ComplexTextControllerLinux.h:
1754         * platform/graphics/chromium/FontLinux.cpp:
1755         (WebCore::glyphIndexForXPositionInScriptRun):
1756         (WebCore::Font::selectionRectForComplexText):
1757
1758 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
1759
1760         Reviewed by Darin Adler.
1761
1762         Flip input[type=range] to use the new shadow DOM model.
1763         https://bugs.webkit.org/show_bug.cgi?id=52317
1764
1765         This is a straight-up flip, minimal change to the logic, which will be
1766         refactored in a follow-up patch.
1767
1768         Covered by existing tests.
1769
1770         * css/CSSStyleSelector.cpp:
1771         (WebCore::CSSStyleSelector::initForStyleResolve): Changed to use either
1772             host or parent node to find parent.
1773         * html/HTMLInputElement.cpp:
1774         (WebCore::HTMLInputElement::updateType): Added logic for destroying/creating
1775             shadow DOM subtree.
1776         * html/InputType.cpp:
1777         (WebCore::InputType::createShadowSubtree): Added empty decl.
1778         (WebCore::InputType::destroyShadowSubtree): Added a method to destroy
1779             shadow subtree.
1780         * html/InputType.h: Added defs.
1781         * html/RangeInputType.cpp:
1782         (WebCore::RangeInputType::createShadowSubtree): Added a virtual method to create
1783             slider thumb.
1784         * html/RangeInputType.h: Adde def.
1785         * html/shadow/SliderThumbElement.cpp: Added temporary RenderSliderThumb class
1786             to handle cascading appearance.
1787         (WebCore::RenderSliderThumb::RenderSliderThumb): Added.
1788         (WebCore::RenderSliderThumb::layout): Moved here the logic from
1789             RenderSlider::createThumbStyle.
1790         (WebCore::SliderThumbElement::createRenderer): Added virtual method to
1791             create RenderSliderThumb instance.
1792         (WebCore::SliderThumbElement::defaultEventHandler): Changed to use HTMLDivElement
1793             as base class.
1794         (WebCore::SliderThumbElement::detach): Ditto.
1795         * html/shadow/SliderThumbElement.h:
1796         (WebCore::SliderThumbElement::SliderThumbElement): Ditto.
1797         (WebCore::SliderThumbElement::create): Ditto.
1798         (WebCore::toSliderThumbElement): Added a casting helper.
1799         * rendering/MediaControlElements.cpp:
1800         (WebCore::MediaControlInputElement::attach): Added handling of shadow DOM,
1801             since the whole method is hand-rolled.
1802         (WebCore::MediaControlInputElement::updateStyle): Ditto.
1803         * rendering/RenderSlider.cpp:
1804         (WebCore::RenderSlider::~RenderSlider): Removed unneeded code.
1805         (WebCore::RenderSlider::thumbRect): Changed to use sliderThumbElement helper.
1806         (WebCore::RenderSlider::layout): Ditto.
1807         (WebCore::RenderSlider::sliderThumbElement): Added a temporary helper to access
1808             SliderThumbElement.
1809         (WebCore::RenderSlider::mouseEventIsInThumb): Changed to use sliderThumbElement helper.
1810         (WebCore::RenderSlider::mouseEventOffsetToThumb): Ditto.
1811         (WebCore::RenderSlider::setValueForPosition): Ditto.
1812         (WebCore::RenderSlider::positionForOffset): Ditto.
1813         (WebCore::RenderSlider::currentPosition): Ditto.
1814         (WebCore::RenderSlider::trackSize): Ditto.
1815         (WebCore::RenderSlider::forwardEvent): Ditto.
1816         (WebCore::RenderSlider::inDragMode): Ditto.
1817         * rendering/RenderSlider.h: Added def.
1818
1819 2011-01-13  Adam Barth  <abarth@webkit.org>
1820
1821         Reviewed by Eric Seidel.
1822
1823         Rename RGBA32Buffer to ImageFrame
1824         https://bugs.webkit.org/show_bug.cgi?id=52363
1825
1826         RGBA32Buffer is a terrible misnomer.  ImageFrame is vastly
1827         more accurate.  More cleanup to come.
1828
1829         * WebCore.pro:
1830         * platform/graphics/ImageSource.cpp:
1831         (WebCore::ImageSource::createFrameAtIndex):
1832         (WebCore::ImageSource::frameDurationAtIndex):
1833         (WebCore::ImageSource::frameIsCompleteAtIndex):
1834         * platform/graphics/qt/ImageDecoderQt.cpp:
1835         (WebCore::ImageDecoderQt::frameBufferAtIndex):
1836         (WebCore::ImageDecoderQt::internalReadImage):
1837         (WebCore::ImageDecoderQt::internalHandleCurrentImage):
1838         * platform/graphics/qt/ImageDecoderQt.h:
1839         * platform/graphics/wince/ImageWinCE.cpp:
1840         (WebCore::ImageFrame::asNewNativeImage):
1841         * platform/image-decoders/ImageDecoder.cpp:
1842         (WebCore::ImageFrame::ImageFrame):
1843         (WebCore::ImageFrame::operator=):
1844         (WebCore::ImageFrame::clear):
1845         (WebCore::ImageFrame::zeroFill):
1846         (WebCore::ImageFrame::copyReferenceToBitmapData):
1847         (WebCore::ImageFrame::copyBitmapData):
1848         (WebCore::ImageFrame::setSize):
1849         (WebCore::ImageFrame::hasAlpha):
1850         (WebCore::ImageFrame::setHasAlpha):
1851         (WebCore::ImageFrame::setColorProfile):
1852         (WebCore::ImageFrame::setStatus):
1853         (WebCore::ImageFrame::width):
1854         (WebCore::ImageFrame::height):
1855         * platform/image-decoders/ImageDecoder.h:
1856         (WebCore::ImageFrame::ImageFrame):
1857         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
1858         (WebCore::BMPImageDecoder::frameBufferAtIndex):
1859         (WebCore::BMPImageDecoder::decode):
1860         * platform/image-decoders/bmp/BMPImageDecoder.h:
1861         * platform/image-decoders/bmp/BMPImageReader.cpp:
1862         (WebCore::BMPImageReader::decodeBMP):
1863         * platform/image-decoders/bmp/BMPImageReader.h:
1864         (WebCore::BMPImageReader::setBuffer):
1865         * platform/image-decoders/cairo/ImageDecoderCairo.cpp:
1866         (WebCore::ImageFrame::asNewNativeImage):
1867         * platform/image-decoders/cg/ImageDecoderCG.cpp:
1868         (WebCore::getPtrAsPixelData):
1869         (WebCore::ImageFrame::copyReferenceToBitmapData):
1870         (WebCore::ImageFrame::copyBitmapData):
1871         (WebCore::ImageFrame::setSize):
1872         (WebCore::ImageFrame::asNewNativeImage):
1873         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1874         (WebCore::GIFImageDecoder::frameBufferAtIndex):
1875         (WebCore::GIFImageDecoder::clearFrameBufferCache):
1876         (WebCore::GIFImageDecoder::haveDecodedRow):
1877         (WebCore::GIFImageDecoder::frameComplete):
1878         (WebCore::GIFImageDecoder::initFrameBuffer):
1879         * platform/image-decoders/gif/GIFImageDecoder.h:
1880         * platform/image-decoders/gif/GIFImageReader.cpp:
1881         (GIFImageReader::read):
1882         * platform/image-decoders/gif/GIFImageReader.h:
1883         (GIFFrameReader::GIFFrameReader):
1884         * platform/image-decoders/haiku/ImageDecoderHaiku.cpp:
1885         (WebCore::ImageFrame::asNewNativeImage):
1886         * platform/image-decoders/ico/ICOImageDecoder.cpp:
1887         (WebCore::ICOImageDecoder::frameBufferAtIndex):
1888         (WebCore::ICOImageDecoder::decode):
1889         * platform/image-decoders/ico/ICOImageDecoder.h:
1890         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1891         (WebCore::JPEGImageDecoder::frameBufferAtIndex):
1892         (WebCore::JPEGImageDecoder::outputScanlines):
1893         (WebCore::JPEGImageDecoder::jpegComplete):
1894         (WebCore::JPEGImageDecoder::decode):
1895         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
1896         * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp:
1897         (WebCore::ImageFrame::asNewNativeImage):
1898         * platform/image-decoders/png/PNGImageDecoder.cpp:
1899         (WebCore::PNGImageDecoder::frameBufferAtIndex):
1900         (WebCore::PNGImageDecoder::rowAvailable):
1901         (WebCore::PNGImageDecoder::pngComplete):
1902         * platform/image-decoders/png/PNGImageDecoder.h:
1903         (WebCore::PNGImageDecoder::isComplete):
1904         * platform/image-decoders/qt/ImageFrameQt.cpp: Copied from Source/WebCore/platform/image-decoders/qt/RGBA32BufferQt.cpp.
1905         (WebCore::ImageFrame::ImageFrame):
1906         (WebCore::ImageFrame::operator=):
1907         (WebCore::ImageFrame::clear):
1908         (WebCore::ImageFrame::zeroFill):
1909         (WebCore::ImageFrame::copyBitmapData):
1910         (WebCore::ImageFrame::setSize):
1911         (WebCore::ImageFrame::asNewNativeImage):
1912         (WebCore::ImageFrame::hasAlpha):
1913         (WebCore::ImageFrame::setHasAlpha):
1914         (WebCore::ImageFrame::setColorProfile):
1915         (WebCore::ImageFrame::setStatus):
1916         (WebCore::ImageFrame::setPixmap):
1917         (WebCore::ImageFrame::width):
1918         (WebCore::ImageFrame::height):
1919         * platform/image-decoders/qt/RGBA32BufferQt.cpp: Removed.
1920         * platform/image-decoders/skia/ImageDecoderSkia.cpp:
1921         (WebCore::ImageFrame::ImageFrame):
1922         (WebCore::ImageFrame::operator=):
1923         (WebCore::ImageFrame::clear):
1924         (WebCore::ImageFrame::zeroFill):
1925         (WebCore::ImageFrame::copyBitmapData):
1926         (WebCore::ImageFrame::setSize):
1927         (WebCore::ImageFrame::asNewNativeImage):
1928         (WebCore::ImageFrame::hasAlpha):
1929         (WebCore::ImageFrame::setHasAlpha):
1930         (WebCore::ImageFrame::setColorProfile):
1931         (WebCore::ImageFrame::setStatus):
1932         (WebCore::ImageFrame::width):
1933         (WebCore::ImageFrame::height):
1934         * platform/image-decoders/webp/WEBPImageDecoder.cpp:
1935         (WebCore::WEBPImageDecoder::frameBufferAtIndex):
1936         (WebCore::WEBPImageDecoder::decode):
1937         * platform/image-decoders/webp/WEBPImageDecoder.h:
1938         * platform/image-decoders/wx/ImageDecoderWx.cpp:
1939         (WebCore::ImageFrame::asNewNativeImage):
1940
1941 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
1942
1943         Reviewed by Darin Adler.
1944
1945         Transferring nodes between documents should be aware of the shadow DOM.
1946         https://bugs.webkit.org/show_bug.cgi?id=52399
1947
1948         No visible change in behavior at the moment.
1949
1950         Once https://bugs.webkit.org/show_bug.cgi?id=52317 lands, the following
1951         tests should no longer crash:
1952         * fast/css/pseudo-in-range-invalid-value.html
1953         * fast/css/pseudo-in-range.html
1954         * fast/forms/form-collection-elements.html
1955         * fast/forms/range-keyoperation.html
1956
1957         * dom/Document.cpp:
1958         (WebCore::Document::adoptNode): Changed to use Node::setDocumentRecursively.
1959         * dom/Node.cpp:
1960         (WebCore::Node::setDocumentRecursively): Added new method, taking existing
1961             logic and adding shadow DOM traversal.
1962         (WebCore::Node::traverseNextNode): Style fix.
1963         (WebCore::Node::traverseNextSibling): Ditto.
1964         (WebCore::Node::traversePreviousNode): Ditto.
1965         (WebCore::Node::traversePreviousNodePostOrder): Ditto.
1966         (WebCore::Node::checkReplaceChild): Changed to use setDocumentRecursively.
1967         (WebCore::Node::checkAddChild): Ditto.
1968         * dom/Node.h: Added def.
1969
1970 2011-01-12  Enrica Casucci  <enrica@apple.com>
1971
1972         Reviewed by Darin Adler.
1973
1974         WebKit2: Add support for drag and drop
1975         https://bugs.webkit.org/show_bug.cgi?id=52343
1976         <rdar://problem/7660558>
1977                
1978         This patch contains the changes required to support dropping content
1979         in WebKit on the Mac. The DragData class has been extended to provide
1980         additional context from the application (keyboard state, modal windows, etc.)
1981         as well as information of the drag pasteboard being used.
1982         The support for WebKit as drag source will be added with a separate patch.
1983
1984         * WebCore.exp.in:
1985         * page/DragController.cpp:
1986         (WebCore::DragController::dragIsMove): Added DragData parameter.
1987         (WebCore::DragController::tryDocumentDrag): Modified call to dragIsMove.
1988         (WebCore::DragController::concludeEditDrag): Same as above.
1989         * page/DragController.h: Added parameter to isCopyKeyDown.
1990         * page/mac/DragControllerMac.mm:
1991         The following methods have been modified to use the information stored
1992         in the DragData class.
1993         (WebCore::DragController::isCopyKeyDown):
1994         (WebCore::DragController::dragOperation):
1995         * platform/DragData.h:
1996         (WebCore::DragData::flags):
1997         * platform/DragData.cpp: Added default flags parameter to the constructor.
1998         * platform/mac/DragDataMac.mm:
1999         (WebCore::DragData::DragData): Added constructor that receives the name of the pasteboard to use.
2000         (WebCore::DragData::canSmartReplace):
2001         (WebCore::DragData::containsColor):
2002         (WebCore::DragData::containsFiles):
2003         (WebCore::DragData::asFilenames):
2004         (WebCore::DragData::containsPlainText):
2005         (WebCore::DragData::asPlainText):
2006         (WebCore::DragData::containsCompatibleContent):
2007         (WebCore::DragData::asURL):
2008         (WebCore::DragData::asFragment):
2009         All the following files have been modified to add the DragData
2010         parameter to isCopyKeyDown. I plan to improve this in the future
2011         and make isCopyKeyDown not platform specific.
2012         * page/android/DragControllerAndroid.cpp:
2013         (WebCore::DragController::isCopyKeyDown):
2014         * page/brew/DragControllerBrew.cpp:
2015         (WebCore::DragController::isCopyKeyDown):
2016         * page/chromium/DragControllerChromium.cpp:
2017         (WebCore::DragController::isCopyKeyDown):
2018         * page/efl/DragControllerEfl.cpp:
2019         (WebCore::DragController::isCopyKeyDown):
2020         * page/gtk/DragControllerGtk.cpp:
2021         (WebCore::DragController::isCopyKeyDown):
2022         * page/haiku/DragControllerHaiku.cpp:
2023         (WebCore::DragController::isCopyKeyDown):
2024         * page/mac/DragControllerMac.mm:
2025         (WebCore::DragController::isCopyKeyDown):
2026         (WebCore::DragController::dragOperation):
2027         * page/qt/DragControllerQt.cpp:
2028         (WebCore::DragController::isCopyKeyDown):
2029         * page/win/DragControllerWin.cpp:
2030         (WebCore::DragController::isCopyKeyDown):
2031         * page/wx/DragControllerWx.cpp:
2032         (WebCore::DragController::isCopyKeyDown):
2033
2034 2011-01-13  David Kilzer  <ddkilzer@apple.com>
2035
2036         Add missing MathMLElementFactory.h and MathMLNames.h to Xcode project
2037
2038         Not reviewed.
2039
2040         * WebCore.xcodeproj/project.pbxproj: Add missing headers.  Note
2041         that the corresponding source files were originally added to the
2042         project in r48559.
2043
2044 2011-01-12  Zhenyao Mo  <zmo@google.com>
2045
2046         Reviewed by Kenneth Russell.
2047
2048         Use GC3D types in WebGLRenderingContext and related WebGL classes
2049         https://bugs.webkit.org/show_bug.cgi?id=51908
2050
2051         * html/canvas/WebGLActiveInfo.h:
2052         (WebCore::WebGLActiveInfo::create):
2053         (WebCore::WebGLActiveInfo::type):
2054         (WebCore::WebGLActiveInfo::size):
2055         (WebCore::WebGLActiveInfo::WebGLActiveInfo):
2056         * html/canvas/WebGLBuffer.cpp:
2057         (WebCore::WebGLBuffer::associateBufferDataImpl):
2058         (WebCore::WebGLBuffer::associateBufferData):
2059         (WebCore::WebGLBuffer::associateBufferSubDataImpl):
2060         (WebCore::WebGLBuffer::associateBufferSubData):
2061         (WebCore::WebGLBuffer::byteLength):
2062         (WebCore::WebGLBuffer::getCachedMaxIndex):
2063         (WebCore::WebGLBuffer::setCachedMaxIndex):
2064         (WebCore::WebGLBuffer::setTarget):
2065         * html/canvas/WebGLBuffer.h:
2066         (WebCore::WebGLBuffer::getTarget):
2067         * html/canvas/WebGLFramebuffer.cpp:
2068         (WebCore::WebGLFramebuffer::setAttachment):
2069         (WebCore::WebGLFramebuffer::getAttachment):
2070         (WebCore::WebGLFramebuffer::getWidth):
2071         (WebCore::WebGLFramebuffer::getHeight):
2072         (WebCore::WebGLFramebuffer::getColorBufferFormat):
2073         (WebCore::WebGLFramebuffer::initializeRenderbuffers):
2074         * html/canvas/WebGLFramebuffer.h:
2075         * html/canvas/WebGLProgram.cpp:
2076         (WebCore::WebGLProgram::cacheActiveAttribLocations):
2077         (WebCore::WebGLProgram::numActiveAttribLocations):
2078         (WebCore::WebGLProgram::getActiveAttribLocation):
2079         (WebCore::WebGLProgram::isUsingVertexAttrib0):
2080         * html/canvas/WebGLProgram.h:
2081         (WebCore::WebGLProgram::getLinkCount):
2082         * html/canvas/WebGLRenderbuffer.h:
2083         (WebCore::WebGLRenderbuffer::setInternalFormat):
2084         (WebCore::WebGLRenderbuffer::getInternalFormat):
2085         (WebCore::WebGLRenderbuffer::setSize):
2086         (WebCore::WebGLRenderbuffer::getWidth):
2087         (WebCore::WebGLRenderbuffer::getHeight):
2088         * html/canvas/WebGLRenderingContext.cpp:
2089         (WebCore::WebGLRenderingContext::initializeNewContext):
2090         (WebCore::WebGLRenderingContext::sizeInBytes):
2091         (WebCore::WebGLRenderingContext::activeTexture):
2092         (WebCore::WebGLRenderingContext::bindAttribLocation):
2093         (WebCore::WebGLRenderingContext::bindBuffer):
2094         (WebCore::WebGLRenderingContext::bindFramebuffer):
2095         (WebCore::WebGLRenderingContext::bindRenderbuffer):
2096         (WebCore::WebGLRenderingContext::bindTexture):
2097         (WebCore::WebGLRenderingContext::blendColor):
2098         (WebCore::WebGLRenderingContext::blendEquation):
2099         (WebCore::WebGLRenderingContext::blendEquationSeparate):
2100         (WebCore::WebGLRenderingContext::blendFunc):
2101         (WebCore::WebGLRenderingContext::blendFuncSeparate):
2102         (WebCore::WebGLRenderingContext::bufferData):
2103         (WebCore::WebGLRenderingContext::bufferSubData):
2104         (WebCore::WebGLRenderingContext::checkFramebufferStatus):
2105         (WebCore::WebGLRenderingContext::clear):
2106         (WebCore::WebGLRenderingContext::clearColor):
2107         (WebCore::WebGLRenderingContext::clearDepth):
2108         (WebCore::WebGLRenderingContext::clearStencil):
2109         (WebCore::WebGLRenderingContext::colorMask):
2110         (WebCore::WebGLRenderingContext::copyTexImage2D):
2111         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
2112         (WebCore::WebGLRenderingContext::createShader):
2113         (WebCore::WebGLRenderingContext::cullFace):
2114         (WebCore::WebGLRenderingContext::deleteBuffer):
2115         (WebCore::WebGLRenderingContext::depthFunc):
2116         (WebCore::WebGLRenderingContext::depthMask):
2117         (WebCore::WebGLRenderingContext::depthRange):
2118         (WebCore::WebGLRenderingContext::disable):
2119         (WebCore::WebGLRenderingContext::disableVertexAttribArray):
2120         (WebCore::WebGLRenderingContext::validateElementArraySize):
2121         (WebCore::WebGLRenderingContext::validateIndexArrayConservative):
2122         (WebCore::WebGLRenderingContext::validateIndexArrayPrecise):
2123         (WebCore::WebGLRenderingContext::validateRenderingState):
2124         (WebCore::WebGLRenderingContext::drawArrays):
2125         (WebCore::WebGLRenderingContext::drawElements):
2126         (WebCore::WebGLRenderingContext::enable):
2127         (WebCore::WebGLRenderingContext::enableVertexAttribArray):
2128         (WebCore::WebGLRenderingContext::framebufferRenderbuffer):
2129         (WebCore::WebGLRenderingContext::framebufferTexture2D):
2130         (WebCore::WebGLRenderingContext::frontFace):
2131         (WebCore::WebGLRenderingContext::generateMipmap):
2132         (WebCore::WebGLRenderingContext::getActiveAttrib):
2133         (WebCore::WebGLRenderingContext::getActiveUniform):
2134         (WebCore::WebGLRenderingContext::getAttachedShaders):
2135         (WebCore::WebGLRenderingContext::getAttribLocation):
2136         (WebCore::WebGLRenderingContext::getBufferParameter):
2137         (WebCore::WebGLRenderingContext::getError):
2138         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
2139         (WebCore::WebGLRenderingContext::getParameter):
2140         (WebCore::WebGLRenderingContext::getProgramParameter):
2141         (WebCore::WebGLRenderingContext::getRenderbufferParameter):
2142         (WebCore::WebGLRenderingContext::getShaderParameter):
2143         (WebCore::WebGLRenderingContext::getTexParameter):
2144         (WebCore::WebGLRenderingContext::getUniform):
2145         (WebCore::WebGLRenderingContext::getUniformLocation):
2146         (WebCore::WebGLRenderingContext::getVertexAttrib):
2147         (WebCore::WebGLRenderingContext::getVertexAttribOffset):
2148         (WebCore::WebGLRenderingContext::hint):
2149         (WebCore::WebGLRenderingContext::isBuffer):
2150         (WebCore::WebGLRenderingContext::isEnabled):
2151         (WebCore::WebGLRenderingContext::isFramebuffer):
2152         (WebCore::WebGLRenderingContext::isProgram):
2153         (WebCore::WebGLRenderingContext::isRenderbuffer):
2154         (WebCore::WebGLRenderingContext::isShader):
2155         (WebCore::WebGLRenderingContext::isTexture):
2156         (WebCore::WebGLRenderingContext::lineWidth):
2157         (WebCore::WebGLRenderingContext::linkProgram):
2158         (WebCore::WebGLRenderingContext::pixelStorei):
2159         (WebCore::WebGLRenderingContext::polygonOffset):
2160         (WebCore::WebGLRenderingContext::readPixels):
2161         (WebCore::WebGLRenderingContext::renderbufferStorage):
2162         (WebCore::WebGLRenderingContext::sampleCoverage):
2163         (WebCore::WebGLRenderingContext::scissor):
2164         (WebCore::WebGLRenderingContext::stencilFunc):
2165         (WebCore::WebGLRenderingContext::stencilFuncSeparate):
2166         (WebCore::WebGLRenderingContext::stencilMask):
2167         (WebCore::WebGLRenderingContext::stencilMaskSeparate):
2168         (WebCore::WebGLRenderingContext::stencilOp):
2169         (WebCore::WebGLRenderingContext::stencilOpSeparate):
2170         (WebCore::WebGLRenderingContext::texImage2DBase):
2171         (WebCore::WebGLRenderingContext::texImage2DImpl):
2172         (WebCore::WebGLRenderingContext::texImage2D):
2173         (WebCore::WebGLRenderingContext::texParameter):
2174         (WebCore::WebGLRenderingContext::texParameterf):
2175         (WebCore::WebGLRenderingContext::texParameteri):
2176         (WebCore::WebGLRenderingContext::texSubImage2DBase):
2177         (WebCore::WebGLRenderingContext::texSubImage2DImpl):
2178         (WebCore::WebGLRenderingContext::texSubImage2D):
2179         (WebCore::WebGLRenderingContext::uniform1f):
2180         (WebCore::WebGLRenderingContext::uniform1fv):
2181         (WebCore::WebGLRenderingContext::uniform1i):
2182         (WebCore::WebGLRenderingContext::uniform1iv):
2183         (WebCore::WebGLRenderingContext::uniform2f):
2184         (WebCore::WebGLRenderingContext::uniform2fv):
2185         (WebCore::WebGLRenderingContext::uniform2i):
2186         (WebCore::WebGLRenderingContext::uniform2iv):
2187         (WebCore::WebGLRenderingContext::uniform3f):
2188         (WebCore::WebGLRenderingContext::uniform3fv):
2189         (WebCore::WebGLRenderingContext::uniform3i):
2190         (WebCore::WebGLRenderingContext::uniform3iv):
2191         (WebCore::WebGLRenderingContext::uniform4f):
2192         (WebCore::WebGLRenderingContext::uniform4fv):
2193         (WebCore::WebGLRenderingContext::uniform4i):
2194         (WebCore::WebGLRenderingContext::uniform4iv):
2195         (WebCore::WebGLRenderingContext::uniformMatrix2fv):
2196         (WebCore::WebGLRenderingContext::uniformMatrix3fv):
2197         (WebCore::WebGLRenderingContext::uniformMatrix4fv):
2198         (WebCore::WebGLRenderingContext::vertexAttrib1f):
2199         (WebCore::WebGLRenderingContext::vertexAttrib1fv):
2200         (WebCore::WebGLRenderingContext::vertexAttrib2f):
2201         (WebCore::WebGLRenderingContext::vertexAttrib2fv):
2202         (WebCore::WebGLRenderingContext::vertexAttrib3f):
2203         (WebCore::WebGLRenderingContext::vertexAttrib3fv):
2204         (WebCore::WebGLRenderingContext::vertexAttrib4f):
2205         (WebCore::WebGLRenderingContext::vertexAttrib4fv):
2206         (WebCore::WebGLRenderingContext::vertexAttribPointer):
2207         (WebCore::WebGLRenderingContext::viewport):
2208         (WebCore::WebGLRenderingContext::getBooleanParameter):
2209         (WebCore::WebGLRenderingContext::getBooleanArrayParameter):
2210         (WebCore::WebGLRenderingContext::getFloatParameter):
2211         (WebCore::WebGLRenderingContext::getIntParameter):
2212         (WebCore::WebGLRenderingContext::getLongParameter):
2213         (WebCore::WebGLRenderingContext::getUnsignedLongParameter):
2214         (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
2215         (WebCore::WebGLRenderingContext::getWebGLIntArrayParameter):
2216         (WebCore::WebGLRenderingContext::isTexInternalFormatColorBufferCombinationValid):
2217         (WebCore::WebGLRenderingContext::getBoundFramebufferColorFormat):
2218         (WebCore::WebGLRenderingContext::validateTextureBinding):
2219         (WebCore::WebGLRenderingContext::validateSize):
2220         (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
2221         (WebCore::WebGLRenderingContext::validateTexFuncLevel):
2222         (WebCore::WebGLRenderingContext::validateTexFuncParameters):
2223         (WebCore::WebGLRenderingContext::validateTexFuncData):
2224         (WebCore::WebGLRenderingContext::validateDrawMode):
2225         (WebCore::WebGLRenderingContext::validateStencilFunc):
2226         (WebCore::WebGLRenderingContext::validateFramebufferFuncParameters):
2227         (WebCore::WebGLRenderingContext::validateBlendEquation):
2228         (WebCore::WebGLRenderingContext::validateBlendFuncFactors):
2229         (WebCore::WebGLRenderingContext::validateCapability):
2230         (WebCore::WebGLRenderingContext::validateUniformParameters):
2231         (WebCore::WebGLRenderingContext::validateUniformMatrixParameters):
2232         (WebCore::WebGLRenderingContext::validateBufferDataParameters):
2233         (WebCore::WebGLRenderingContext::vertexAttribfImpl):
2234         (WebCore::WebGLRenderingContext::vertexAttribfvImpl):
2235         (WebCore::WebGLRenderingContext::simulateVertexAttrib0):
2236         * html/canvas/WebGLRenderingContext.h:
2237         (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
2238         * html/canvas/WebGLShader.cpp:
2239         (WebCore::WebGLShader::create):
2240         (WebCore::WebGLShader::WebGLShader):
2241         * html/canvas/WebGLShader.h:
2242         (WebCore::WebGLShader::getType):
2243         * html/canvas/WebGLTexture.cpp:
2244         (WebCore::WebGLTexture::setTarget):
2245         (WebCore::WebGLTexture::setParameteri):
2246         (WebCore::WebGLTexture::setParameterf):
2247         (WebCore::WebGLTexture::setLevelInfo):
2248         (WebCore::WebGLTexture::generateMipmapLevelInfo):
2249         (WebCore::WebGLTexture::getInternalFormat):
2250         (WebCore::WebGLTexture::getType):
2251         (WebCore::WebGLTexture::getWidth):
2252         (WebCore::WebGLTexture::getHeight):
2253         (WebCore::WebGLTexture::isNPOT):
2254         (WebCore::WebGLTexture::mapTargetToIndex):
2255         (WebCore::WebGLTexture::computeLevelCount):
2256         (WebCore::WebGLTexture::update):
2257         (WebCore::WebGLTexture::getLevelInfo):
2258         * html/canvas/WebGLTexture.h:
2259         (WebCore::WebGLTexture::LevelInfo::setInfo):
2260         * html/canvas/WebGLUniformLocation.cpp:
2261         (WebCore::WebGLUniformLocation::create):
2262         (WebCore::WebGLUniformLocation::WebGLUniformLocation):
2263         (WebCore::WebGLUniformLocation::location):
2264         * html/canvas/WebGLUniformLocation.h:
2265         * platform/graphics/GraphicsContext3D.h: Map GC3Dboolean to bool instead of unsigned char.
2266
2267 2011-01-13  Jian Li  <jianli@chromium.org>
2268
2269         Reviewed by Darin Fisher.
2270
2271         Change createObjectURL and revokeObjectURL to put under webkitURL.
2272         https://bugs.webkit.org/show_bug.cgi?id=52257
2273
2274         Note that we add "webkit" vendor prefix to URL that is introduced in
2275         the latest File API spec.
2276
2277         For the time being, we implement webkitURL as a readonly attribute
2278         instead of a constructor so that we will not expose prototype property,
2279         as required by the spec.
2280
2281         * Android.derived.jscbindings.mk:
2282         * Android.derived.v8bindings.mk:
2283         * Android.mk:
2284         * CMakeLists.txt:
2285         * DerivedSources.cpp:
2286         * DerivedSources.make:
2287         * GNUmakefile.am:
2288         * WebCore.gypi:
2289         * WebCore.pri:
2290         * WebCore.pro:
2291         * WebCore.vcproj/WebCore.vcproj:
2292         * WebCore.xcodeproj/project.pbxproj:
2293         * html/DOMURL.cpp: Added.
2294         * html/DOMURL.h: Added.
2295         * html/DOMURL.idl: Added.
2296         * inspector/front-end/NetworkPanel.js:
2297         * inspector/front-end/utilities.js:
2298         * page/DOMWindow.cpp:
2299         (WebCore::DOMWindow::webkitURL):
2300         * page/DOMWindow.h:
2301         * page/DOMWindow.idl:
2302         * workers/WorkerContext.cpp:
2303         (WebCore::WorkerContext::webkitURL):
2304         * workers/WorkerContext.h:
2305         * workers/WorkerContext.idl:
2306
2307 2011-01-13  Emil Eklund  <eae@chromium.org>
2308
2309         Reviewed by Dimitri Glazkov.
2310
2311         Setting outerText should convert CR/LF to <br>
2312         https://bugs.webkit.org/show_bug.cgi?id=52268
2313
2314         Make set outerText support line breaks (sharing the text to fragment code
2315         with setInnerText) and handle empty text nodes the same way IE does.
2316
2317         Test: fast/dom/set-outer-text.html
2318
2319         * html/HTMLElement.cpp:
2320         (WebCore::HTMLElement::textToFragment): Shared between setInnerText and setOuterText
2321         (WebCore::HTMLElement::setInnerText): Split out text parsing code.
2322         (WebCore::mergeWithNextTextNode): Split out text node merging code.
2323         (WebCore::HTMLElement::setOuterText): Added support for line breaks.
2324         * html/HTMLElement.h:
2325
2326 2011-01-13  Zhenyao Mo  <zmo@google.com>
2327
2328         Reviewed by Kenneth Russell.
2329
2330         Relax the ESSL valid charset a little bit to include " ' `
2331         https://bugs.webkit.org/show_bug.cgi?id=52396
2332
2333         * html/canvas/WebGLRenderingContext.cpp:
2334
2335 >>>>>>> .r75740
2336 2011-01-13  Adrienne Walker  <enne@google.com>
2337
2338         Reviewed by Kenneth Russell.
2339
2340         [chromium] Attempt to fix crash in tiled compositor memcpy
2341         https://bugs.webkit.org/show_bug.cgi?id=52379
2342
2343         * platform/graphics/chromium/LayerTilerChromium.cpp:
2344         (WebCore::LayerTilerChromium::update):
2345
2346 2011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
2347
2348         Unreviewed, rolling out r75725.
2349         http://trac.webkit.org/changeset/75725
2350         https://bugs.webkit.org/show_bug.cgi?id=52317
2351
2352         Caused crashes in layout tests.
2353
2354         * css/CSSStyleSelector.cpp:
2355         (WebCore::CSSStyleSelector::initForStyleResolve):
2356         * html/HTMLInputElement.cpp:
2357         (WebCore::HTMLInputElement::updateType):
2358         * html/InputType.cpp:
2359         * html/InputType.h:
2360         * html/RangeInputType.cpp:
2361         * html/RangeInputType.h:
2362         * html/shadow/SliderThumbElement.cpp:
2363         (WebCore::SliderThumbElement::defaultEventHandler):
2364         (WebCore::SliderThumbElement::detach):
2365         * html/shadow/SliderThumbElement.h:
2366         (WebCore::SliderThumbElement::SliderThumbElement):
2367         (WebCore::SliderThumbElement::create):
2368         * rendering/MediaControlElements.cpp:
2369         (WebCore::MediaControlInputElement::attach):
2370         (WebCore::MediaControlInputElement::updateStyle):
2371         * rendering/RenderSlider.cpp:
2372         (WebCore::RenderSlider::~RenderSlider):
2373         (WebCore::RenderSlider::styleDidChange):
2374         (WebCore::RenderSlider::createThumbStyle):
2375         (WebCore::RenderSlider::thumbRect):
2376         (WebCore::RenderSlider::layout):
2377         (WebCore::RenderSlider::updateFromElement):
2378         (WebCore::RenderSlider::mouseEventIsInThumb):
2379         (WebCore::RenderSlider::mouseEventOffsetToThumb):
2380         (WebCore::RenderSlider::setValueForPosition):
2381         (WebCore::RenderSlider::positionForOffset):
2382         (WebCore::RenderSlider::currentPosition):
2383         (WebCore::RenderSlider::trackSize):
2384         (WebCore::RenderSlider::forwardEvent):
2385         (WebCore::RenderSlider::inDragMode):
2386         * rendering/RenderSlider.h:
2387
2388 2011-01-12  Dimitri Glazkov  <dglazkov@chromium.org>
2389
2390         Reviewed by Darin Adler.
2391
2392         Flip input[type=range] to use the new shadow DOM model.
2393         https://bugs.webkit.org/show_bug.cgi?id=52317
2394
2395         This is a straight-up flip, minimal change to the logic, which will be
2396         refactored in a follow-up patch.
2397
2398         Covered by existing tests.
2399
2400         * css/CSSStyleSelector.cpp:
2401         (WebCore::CSSStyleSelector::initForStyleResolve): Changed to use either
2402             host or parent node to find parent.
2403         * html/HTMLInputElement.cpp:
2404         (WebCore::HTMLInputElement::updateType): Added logic for destroying/creating
2405             shadow DOM subtree.
2406         * html/InputType.cpp:
2407         (WebCore::InputType::createShadowSubtree): Added empty decl.
2408         (WebCore::InputType::destroyShadowSubtree): Added a method to destroy
2409             shadow subtree.
2410         * html/InputType.h: Added defs.
2411         * html/RangeInputType.cpp:
2412         (WebCore::RangeInputType::createShadowSubtree): Added a virtual method to create
2413             slider thumb.
2414         * html/RangeInputType.h: Adde def.
2415         * html/shadow/SliderThumbElement.cpp: Added temporary RenderSliderThumb class
2416             to handle cascading appearance.
2417         (WebCore::RenderSliderThumb::RenderSliderThumb): Added.
2418         (WebCore::RenderSliderThumb::layout): Moved here the logic from
2419             RenderSlider::createThumbStyle.
2420         (WebCore::SliderThumbElement::createRenderer): Added virtual method to
2421             create RenderSliderThumb instance.
2422         (WebCore::SliderThumbElement::defaultEventHandler): Changed to use HTMLDivElement
2423             as base class.
2424         (WebCore::SliderThumbElement::detach): Ditto.
2425         * html/shadow/SliderThumbElement.h:
2426         (WebCore::SliderThumbElement::SliderThumbElement): Ditto.
2427         (WebCore::SliderThumbElement::create): Ditto.
2428         (WebCore::toSliderThumbElement): Added a casting helper.
2429         * rendering/MediaControlElements.cpp:
2430         (WebCore::MediaControlInputElement::attach): Added handling of shadow DOM,
2431             since the whole method is hand-rolled.
2432         (WebCore::MediaControlInputElement::updateStyle): Ditto.
2433         * rendering/RenderSlider.cpp:
2434         (WebCore::RenderSlider::~RenderSlider): Removed unneeded code.
2435         (WebCore::RenderSlider::thumbRect): Changed to use sliderThumbElement helper.
2436         (WebCore::RenderSlider::layout): Ditto.
2437         (WebCore::RenderSlider::sliderThumbElement): Added a temporary helper to access
2438             SliderThumbElement.
2439         (WebCore::RenderSlider::mouseEventIsInThumb): Changed to use sliderThumbElement helper.
2440         (WebCore::RenderSlider::mouseEventOffsetToThumb): Ditto.
2441         (WebCore::RenderSlider::setValueForPosition): Ditto.
2442         (WebCore::RenderSlider::positionForOffset): Ditto.
2443         (WebCore::RenderSlider::currentPosition): Ditto.
2444         (WebCore::RenderSlider::trackSize): Ditto.
2445         (WebCore::RenderSlider::forwardEvent): Ditto.
2446         (WebCore::RenderSlider::inDragMode): Ditto.
2447         * rendering/RenderSlider.h: Added def.
2448
2449 2011-01-13  Dan Bernstein  <mitz@apple.com>
2450
2451         Reviewed by Simon Fraser.
2452
2453         <rdar://problem/8098442> Crash in Widget::setFrameRect()
2454         https://bugs.webkit.org/show_bug.cgi?id=52375
2455
2456         Test: plugins/destroy-on-setwindow.html
2457
2458         * platform/mac/WidgetMac.mm:
2459         (WebCore::Widget::setFrameRect): Protect the Widget from being deleted as a result of calling
2460         out to the view.
2461         (WebCore::Widget::getOuterView): Coding style fix.
2462         (WebCore::Widget::paint): Protect the Widget from being deleted as a result of calling out to
2463         the views. This is precautionary, since this function does not applear to access member variables
2464         after such calls.
2465         * platform/wx/WidgetWx.cpp:
2466         (WebCore::Widget::setFrameRect): Protect the Widget from being deleted as a result of calling
2467         out to the platform widget.
2468
2469 2011-01-13  Csaba Osztrogonác  <ossy@webkit.org>
2470
2471         Unreviewed buildfix after r75715.
2472
2473         * WebCore.pri:
2474         * WebCore.pro:
2475
2476 2011-01-13  Pavel Feldman  <pfeldman@chromium.org>
2477
2478         Not reviewed: Qt build fix.
2479
2480         * WebCore.pri:
2481
2482 2011-01-12  Pavel Feldman  <pfeldman@chromium.org>
2483
2484         Reviewed by Yury Semikhatsky.
2485
2486         Web Inspector: embed injected script into the backend.
2487         https://bugs.webkit.org/show_bug.cgi?id=52312
2488
2489         InjectedScript belongs to the backend of the system and
2490         should be exposed by means of protocol, not InjectedScriptAccess.
2491         This patch makes injected script a part of the backend.
2492         It introduces single manual generation step (xxd -i) that should be
2493         automated by the build scripts for all the platforms.
2494
2495         * CMakeLists.txt:
2496         * DerivedSources.make:
2497         * GNUmakefile.am:
2498         * WebCore.gyp/WebCore.gyp:
2499         * WebCore.gypi:
2500         * WebCore.pro:
2501         * WebCore.vcproj/WebCore.vcproj:
2502         * WebCore.xcodeproj/project.pbxproj:
2503         * bindings/js/JSInjectedScriptHostCustom.cpp:
2504         (WebCore::InjectedScriptHost::injectedScriptFor):
2505         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2506         (WebCore::InjectedScriptHost::injectedScriptFor):
2507         * inspector/InjectedScriptHost.cpp:
2508         (WebCore::InjectedScriptHost::injectedScriptSource):
2509         * inspector/InjectedScriptHost.h:
2510         * inspector/Inspector.idl:
2511         * inspector/InspectorController.cpp:
2512         (WebCore::InspectorController::restoreInspectorStateFromCookie):
2513         * inspector/InspectorState.cpp:
2514         (WebCore::InspectorState::InspectorState):
2515         * inspector/InspectorState.h:
2516         * inspector/front-end/InjectedScript.js: Removed.
2517         * inspector/front-end/WebKit.qrc:
2518         * inspector/front-end/inspector.html:
2519         * inspector/front-end/inspector.js:
2520         (WebInspector.doLoadedDone.propertyNamesCallback):
2521         (WebInspector.doLoadedDone):
2522         * inspector/xxd.pl: Added.
2523
2524 2011-01-13  Mikhail Naganov  <mnaganov@chromium.org>
2525
2526         Reviewed by Timothy Hatcher.
2527
2528         Web Inspector: Cleanup after r75613 -- make all UI-facing strings
2529         to be passed directly to WebInspector.UIString
2530
2531         https://bugs.webkit.org/show_bug.cgi?id=52365
2532
2533         * English.lproj/localizedStrings.js:
2534         * inspector/front-end/ApplicationCacheItemsView.js:
2535         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
2536         (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid):
2537         * inspector/front-end/AuditRules.js:
2538         (WebInspector.AuditRules.GzipRule.prototype.doRun):
2539         (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
2540         (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
2541         * inspector/front-end/BreakpointsSidebarPane.js:
2542         (WebInspector.EventListenerBreakpointsSidebarPane):
2543         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._createCategory):
2544         * inspector/front-end/CookieItemsView.js:
2545         (WebInspector.CookieItemsView.prototype._updateWithCookies):
2546         * inspector/front-end/ImageView.js:
2547         (WebInspector.ImageView.prototype._createContentIfNeeded.onImageLoad):
2548         (WebInspector.ImageView.prototype._createContentIfNeeded):
2549         * inspector/front-end/NetworkPanel.js:
2550         (WebInspector.NetworkTimeCalculator.prototype.formatValue):
2551         (WebInspector.NetworkTransferTimeCalculator.prototype.formatValue):
2552         (WebInspector.NetworkTransferDurationCalculator.prototype.formatValue):
2553         * inspector/front-end/ProfileDataGridTree.js:
2554         (WebInspector.ProfileDataGridNode.prototype.get data.formatMilliseconds):
2555         (WebInspector.ProfileDataGridNode.prototype.get data):
2556         * inspector/front-end/Resource.js:
2557         (WebInspector.Resource.Type.toUIString):
2558         (WebInspector.Resource.Type.toString):
2559         * inspector/front-end/TimelineOverviewPane.js:
2560         (WebInspector.TimelineOverviewCalculator.prototype.formatValue):
2561         * inspector/front-end/TimelinePanel.js:
2562         (WebInspector.TimelinePanel):
2563         (WebInspector.TimelineCalculator.prototype.formatValue):
2564         (WebInspector.TimelinePanel.FormattedRecord.prototype._generateAggregatedInfo):
2565         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
2566         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
2567         * inspector/front-end/utilities.js:
2568         ():
2569
2570 2011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2571
2572         Reviewed by Simon Hausmann.
2573
2574         [Qt] Need a way to inform the application when a Netscape plugin is created.
2575         https://bugs.webkit.org/show_bug.cgi?id=30179
2576
2577         Added "c" style static method for the application to hook up for
2578         receiving notifications when a plugin is created.
2579
2580         * plugins/symbian/PluginViewSymbian.cpp:
2581         (qtwebkit_setPluginCreatedCallback):
2582         (WebCore::PluginView::platformStart):
2583
2584 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
2585
2586         Reviewed by Eric Seidel.
2587
2588         [Qt] Use a black background color for the video element on Qt Mobile
2589         https://bugs.webkit.org/show_bug.cgi?id=52252
2590
2591         Use black as the background color for the video element on Qt Mobile.
2592
2593         * css/themeQtMobile.css:
2594         (video):
2595
2596 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
2597
2598         Reviewed by Eric Seidel.
2599
2600         [Qt] Use a big central media play control button for video element 
2601         https://bugs.webkit.org/show_bug.cgi?id=52315
2602
2603         When ChromeClient::requiresFullscreenForVideoPlayback() returns true,
2604         all other control buttons for the video element are hidden, except 
2605         a big centralized play button.
2606
2607         No new tests because no client implements requiresFullscreenForVideoPlayback yet.
2608
2609         * WebCore.pri:
2610         * css/mediaControlsQtFullscreen.css: Added.
2611         (audio):
2612         (audio::-webkit-media-controls-panel):
2613         (video::-webkit-media-controls-panel):
2614         (video:-webkit-full-page-media::-webkit-media-controls-panel):
2615         (audio::-webkit-media-controls-mute-button):
2616         (video::-webkit-media-controls-mute-button):
2617         (audio::-webkit-media-controls-play-button):
2618         (video::-webkit-media-controls-play-button):
2619         (audio::-webkit-media-controls-timeline-container):
2620         (video::-webkit-media-controls-timeline-container):
2621         (audio::-webkit-media-controls-current-time-display):
2622         (video::-webkit-media-controls-current-time-display):
2623         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
2624         (audio::-webkit-media-controls-timeline):
2625         (video::-webkit-media-controls-timeline):
2626         (audio::-webkit-media-controls-volume-slider-container):
2627         (video::-webkit-media-controls-volume-slider-container):
2628         (audio::-webkit-media-controls-volume-slider):
2629         (video::-webkit-media-controls-volume-slider):
2630         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
2631         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
2632         (audio::-webkit-media-controls-fullscreen-button):
2633         (video::-webkit-media-controls-fullscreen-button):
2634         (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
2635         (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
2636         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
2637         * platform/qt/RenderThemeQt.cpp:
2638         (WebCore::RenderThemeQt::extraMediaControlsStyleSheet):
2639
2640 2011-01-13  Carlos Garcia Campos  <cgarcia@igalia.com>
2641
2642         Reviewed by Xan Lopez.
2643
2644         [GTK] Paint toggle buttons inconsistent when the object state is indeterminate
2645         https://bugs.webkit.org/show_bug.cgi?id=52361
2646
2647         Check whether the object state is indeterminate to set the flag
2648         GTK_STATE_FLAG_INCONSISTENT before rendering check and radio
2649         buttons.
2650
2651         * platform/gtk/RenderThemeGtk3.cpp:
2652         (WebCore::paintToggle):
2653
2654 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
2655
2656         Reviewed by Simon Hausmann.
2657
2658         [Qt] Extend the Platform Plugin to support full screen video handler
2659         https://bugs.webkit.org/show_bug.cgi?id=51249
2660
2661         Make MediaPlayerPrivateQt support a fullscreen player.
2662
2663         No new tests because LayoutTests/media/media-fullscreen-inline.html already exists.
2664         However, this test failed for Qt (QtMediaPlayer) due to durationchange event getting fired twice.
2665         So, still skip it for Qt.
2666
2667         * WebCore.pro:
2668         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
2669         (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt):
2670         (WebCore::MediaPlayerPrivateQt::removeVideoItem):
2671         (WebCore::MediaPlayerPrivateQt::restoreVideoItem):
2672         * platform/graphics/qt/MediaPlayerPrivateQt.h:
2673         (WebCore::MediaPlayerPrivateQt::supportsFullscreen):
2674         (WebCore::MediaPlayerPrivateQt::mediaPlayer):
2675
2676 2011-01-13  Dan Bernstein  <mitz@apple.com>
2677
2678         Reviewed by Dave Hyatt.
2679
2680         <rdar://problem/8858548> Disable inheritance of text emphasis marks to ruby text
2681         https://bugs.webkit.org/show_bug.cgi?id=52359
2682
2683         Test: fast/ruby/text-emphasis.html
2684
2685         * css/html.css:
2686         (rt):
2687
2688 2011-01-13  Csaba Osztrogonác  <ossy@webkit.org>
2689
2690         Rubber-stamped by David Levin.
2691
2692         Trivial fix after r75682.
2693
2694         * loader/FrameLoader.cpp: Remove accidentally committed debug code.
2695         (WebCore::FrameLoader::shouldClose):
2696
2697 2011-01-12  Ryosuke Niwa  <rniwa@webkit.org>
2698
2699         Reviewed by Eric Seidel.
2700
2701         REGRESSION(r69831): focus() in onkeypress discards input (affects chaseonline.chase.com)
2702         https://bugs.webkit.org/show_bug.cgi?id=52241
2703
2704         The bug was caused by RenderTextControl::selection's creating a Range with m_insertText
2705         which is a shadow DOM div as both start and end containers. Fixed the bug by traversing
2706         through the descendents of m_innerText and using the right start and end containers to
2707         create a Range.
2708
2709         Test: fast/forms/focus-change-on-keypress.html
2710
2711         * rendering/RenderTextControl.cpp:
2712         (WebCore::setContainerAndOffsetForRange): Added; a helper function.
2713         (WebCore::RenderTextControl::selection): See above.
2714
2715 2011-01-12  Kenichi Ishibashi  <bashi@google.com>
2716
2717         Reviewed by Kent Tamura.
2718
2719         M_formElementsWithFormAttribute not cleared when FormAssociatedElement is inserted with a null m_form and then removed.
2720         https://bugs.webkit.org/show_bug.cgi?id=51905
2721
2722         Calls unregisterFormElementWithFormAttribute() when 'form' attribute
2723         is removed.
2724
2725         Tests: fast/forms/form-associated-element-crash.html
2726                fast/forms/form-associated-element-crash2.html
2727
2728         * html/FormAssociatedElement.cpp:
2729         (WebCore::FormAssociatedElement::formAttributeChanged):
2730
2731 2011-01-12  Kenichi Ishibashi  <bashi@google.com>
2732
2733         Reviewed by Kent Tamura.
2734
2735         M_formElementsWithFormAttribute not cleared when Node is moved to another document.
2736         https://bugs.webkit.org/show_bug.cgi?id=51418
2737
2738         Calls unregisterFormElementWithFormAttribute() when form associated elements
2739         are moved to another document.
2740
2741         Test: fast/forms/change-form-element-document-crash.html
2742
2743         * html/FormAssociatedElement.cpp:
2744         (WebCore::FormAssociatedElement::willMoveToNewOwnerDocument): Added.
2745         * html/FormAssociatedElement.h: Added willMoveToNewOwnerDocument().
2746         * html/HTMLFormControlElement.cpp:
2747         (WebCore::HTMLFormControlElement::willMoveToNewOwnerDocument): Added.
2748         * html/HTMLFormControlElement.h: Added willMoveToNewOwnerDocument().
2749         * html/HTMLObjectElement.cpp:
2750         (WebCore::HTMLObjectElement::willMoveToNewOwnerDocument): Added.
2751         * html/HTMLObjectElement.h: Added willMoveToNewOwnerDocument().
2752         * html/HTMLPlugInImageElement.h: Moves willMoveToNewOwnerDocument() to protected.
2753
2754 2011-01-12  Ryosuke Niwa  <rniwa@webkit.org>
2755
2756         Reviewed by Eric Seidel.
2757
2758         Stop instantiating legacy editing positions in ApplyBlockElementCommand and ApplyStyleCommand
2759         https://bugs.webkit.org/show_bug.cgi?id=52250
2760
2761         Removed instantiation of legacy editing positions.
2762         Calls to Position::Position are replaced by calls to Position's convenience functions.
2763
2764         Also added firstPositionInOrBeforeNode and lastPositionInOrAfterNode,
2765         which are functions that return firstPositionInNode and lastPositionInNode respectively
2766         when the specified node can have children for editing purpose and return positionBeforeNode
2767         and positionAfterNode respectively otherwise. They can be used to guarantee that we never
2768         create a bogus position like [img, 0] or [br, 0].
2769
2770         No tests are added since this is a cleanup.
2771
2772         * editing/ApplyBlockElementCommand.cpp:
2773         (WebCore::ApplyBlockElementCommand::formatSelection):
2774         * editing/ApplyStyleCommand.cpp:
2775         (WebCore::ApplyStyleCommand::applyBlockStyle):
2776         (WebCore::ApplyStyleCommand::fixRangeAndApplyInlineStyle):
2777         (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle):
2778         (WebCore::ApplyStyleCommand::removeInlineStyle):
2779         (WebCore::ApplyStyleCommand::nodeFullySelected):
2780         (WebCore::ApplyStyleCommand::nodeFullyUnselected):
2781         (WebCore::ApplyStyleCommand::splitTextAtStart):
2782         (WebCore::ApplyStyleCommand::splitTextAtEnd):
2783         (WebCore::ApplyStyleCommand::splitTextElementAtStart):
2784         (WebCore::ApplyStyleCommand::splitTextElementAtEnd):
2785         (WebCore::ApplyStyleCommand::isValidCaretPositionInTextNode):
2786         (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
2787         (WebCore::ApplyStyleCommand::mergeEndWithNextIfIdentical):
2788         (WebCore::ApplyStyleCommand::computedFontSize):
2789         (WebCore::ApplyStyleCommand::joinChildTextNodes):
2790         * editing/ApplyStyleCommand.h:
2791         * editing/htmlediting.h:
2792         (WebCore::firstPositionInOrBeforeNode): Added.
2793         (WebCore::lastPositionInOrAfterNode): Added.
2794
2795 2011-01-12  Sam Weinig  <sam@webkit.org>
2796
2797         Another build fix.
2798
2799         * platform/mac/WheelEventMac.mm:
2800         (WebCore::phaseForEvent):
2801
2802 2011-01-12  Sam Weinig  <sam@webkit.org>
2803
2804         Fix build.
2805
2806         * platform/mac/WheelEventMac.mm:
2807         (WebCore::phaseForEvent):
2808
2809 2011-01-12  Adam Barth  <abarth@webkit.org>
2810
2811         Reviewed by Darin Adler.
2812
2813         Remove premature optimization from SchemeRegistry
2814         https://bugs.webkit.org/show_bug.cgi?id=52283
2815
2816         As far as I can tell, this optimization isn't necessary.  I'm slightly
2817         unsure which benchmarks to run to demonstrate this numerically, but
2818         none of the benchmarks Chromium tracks were affected by adding a
2819         similar check for "display-isolated" schemes.
2820
2821         * platform/SchemeRegistry.cpp:
2822         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
2823
2824 2011-01-12  Beth Dakin  <bdakin@apple.com>
2825
2826         Reviewed by Anders Carlsson.
2827
2828         Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309 
2829         Expose fixed layout through WebKit SPI
2830         -and corresponding-
2831         <rdar://problem/8844464>
2832
2833         And now with getters!
2834         * WebCore.exp.in:
2835
2836 2011-01-12  Sam Weinig  <sam@webkit.org>
2837
2838         Reviewed by Anders Carlsson.
2839
2840         https://bugs.webkit.org/show_bug.cgi?id=52337
2841         PlatformWheelEvent should know about the scroll phase on the Mac
2842
2843         Add a phase parameter on Mac PlatformWheelEvents.
2844
2845         * platform/PlatformWheelEvent.h:
2846         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2847         (WebCore::PlatformWheelEvent::phase):
2848         * platform/mac/WheelEventMac.mm:
2849         (WebCore::phaseForEvent):
2850         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2851
2852 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2853
2854         Unreviewed.
2855
2856         A couple of lines of the patch for https://bugs.webkit.org/show_bug.cgi?id=52321
2857         were omitted. 
2858
2859         * platform/graphics/ca/GraphicsLayerCA.cpp:
2860         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
2861
2862 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2863
2864         Unreviewed.
2865
2866         Getting rid of an assert that was causing build failures that turns out not to be needed.
2867
2868         * rendering/RenderLayer.cpp:
2869         (WebCore::RenderLayer::paintsWithTransform):
2870
2871 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2872
2873         Unreviewed.
2874
2875         Another fix for Gtk
2876
2877         * rendering/RenderLayer.cpp:
2878         (WebCore::RenderLayer::paintsWithTransform):
2879
2880 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2881
2882         Unreviewed.
2883
2884         Fix for Gtk and Windows builds
2885
2886         * page/Frame.cpp:
2887         (WebCore::Frame::scalePage):
2888         * page/Frame.h:
2889         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2890         (PlatformCALayer::contentsScale):
2891         (PlatformCALayer::setContentsScale):
2892
2893 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2894
2895         UNreviewed.
2896
2897         Fix for the Windows build
2898
2899         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2900         (contentsScale):
2901         (setContentsScale):
2902
2903 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2904
2905         Unreviewed.
2906
2907         Another build fix
2908
2909         * platform/graphics/ca/GraphicsLayerCA.cpp:
2910         (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
2911         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2912         (PlatformCALayer::setContentsScale):
2913
2914 2011-01-11  Matthew Delaney  <mdelaney@apple.com>
2915
2916         Reviewed by Simon Fraser.
2917
2918         Max area bound needed in creation of IOSurface in ImageBufferCG.cpp
2919         https://bugs.webkit.org/show_bug.cgi?id=52172
2920
2921         Tests: fast/canvas/canvas-large-dimensions.html
2922
2923         * platform/graphics/cg/ImageBufferCG.cpp:
2924         (WebCore::ImageBuffer::ImageBuffer):
2925
2926 2011-01-12  Daniel Bates  <dbates@rim.com>
2927             And Benjamin C Meyer  <bmeyer@rim.com>
2928
2929         Build fix when building with Inspector disabled
2930         https://bugs.webkit.org/show_bug.cgi?id=52313
2931
2932         After changeset 75604 <http://trac.webkit.org/changeset/75604> it's not
2933         possible to build when the Inspector is disabled.
2934
2935         * inspector/InspectorInstrumentation.h:
2936         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus): Fix build breakage when building
2937         with Inspector disabled and Offline Web Applications enabled by moving macro guard condition
2938         ENABLE(INSPECTOR) && ENABLE(OFFLINE_WEB_APPLICATIONS) into function body. This makes us also
2939         consistent with the form we use for InspectorInstrumentation::networkStateChanged() and other
2940         InspectorInstrumentation functions.
2941         * loader/appcache/ApplicationCacheGroup.cpp:
2942         (WebCore::ApplicationCacheGroup::didReceiveData): Fix build breakage when building with Inspector
2943         disabled by adding ENABLE(INSPECTOR) guard around code that references the instance variable
2944         ApplicationCacheGroup::m_currentResourceIdentifier as this variable only exists when building
2945         with the Inspector.
2946         (WebCore::ApplicationCacheGroup::didFinishLoading): Ditto.
2947         (WebCore::ApplicationCacheGroup::didFail): Ditto.
2948
2949 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2950
2951         Unreviewed.
2952
2953         Fix a build issue from http://trac.webkit.org/changeset/75639.
2954
2955         * platform/graphics/GraphicsLayer.h:
2956         (WebCore::GraphicsLayer::contentsScale):
2957         (WebCore::GraphicsLayer::setContentsScale):
2958
2959 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2960
2961         Reviewed by Kevin Decker.
2962
2963         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
2964         rdar://problem/8824974
2965
2966         This prevents the rootLayer (with the WebKit rendered content) from going becoming
2967         a tiled layer when zoomed, and when there is other layered content on the page.
2968         This speeds up zooming a lot and avoids some buggy behavior in CA with a very large
2969         number of layers.
2970         
2971         * rendering/RenderLayer.cpp:
2972         (WebCore::RenderLayer::paintsWithTransform):
2973         * rendering/RenderLayer.h:
2974         * rendering/RenderLayerBacking.cpp:
2975         (WebCore::RenderLayerBacking::paintingGoesToWindow):
2976
2977 2011-01-12  Chris Marrin  <cmarrin@apple.com>
2978
2979         Reviewed by Simon Fraser.
2980         
2981         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
2982         rdar://problem/8824974
2983
2984         When scaled, WebKit renders the page content at the scaled up size, so there are no
2985         scaling artifacts. But content drawn into a layer's backing store does not scale up.
2986         This is made worse by the fact that the root page contents become layered when there
2987         are other accelerated compositing layers present (video, plugins, etc.).
2988         
2989         Plumb scaling factor from Frame::scalePage() down into all layers with content. It
2990         eventually calls CALayer::setContentsScale which renders to a backing store whose dimensions
2991         are scaled, causing them to render larger and appear pixel perfect at the scaled
2992         page size.
2993  
2994          * page/Frame.cpp:
2995          (WebCore::Frame::updateContentsScale):
2996          (WebCore::Frame::scalePage):
2997          * page/Frame.h:
2998          * platform/graphics/GraphicsLayer.h:
2999          * platform/graphics/ca/GraphicsLayerCA.cpp:
3000          (WebCore::GraphicsLayerCA::setContentsScale):
3001          (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
3002          * platform/graphics/ca/GraphicsLayerCA.h:
3003          (WebCore::GraphicsLayerCA::contentsScale):
3004          * platform/graphics/ca/PlatformCALayer.h:
3005          * platform/graphics/ca/mac/PlatformCALayerMac.mm:
3006          (PlatformCALayer::contentsScale):
3007          (PlatformCALayer::setContentsScale):
3008          * rendering/RenderLayer.cpp:
3009          (WebCore::RenderLayer::updateContentsScale):
3010          * rendering/RenderLayer.h:
3011          * rendering/RenderLayerBacking.cpp:
3012          (WebCore::RenderLayerBacking::createGraphicsLayer):
3013          (WebCore::RenderLayerBacking::updateForegroundLayer):
3014          (WebCore::RenderLayerBacking::updateMaskLayer):
3015          (WebCore::RenderLayerBacking::updateContentsScale):
3016          * rendering/RenderLayerBacking.h:
3017          * rendering/RenderLayerCompositor.cpp:
3018          (WebCore::RenderLayerCompositor::updateContentsScale):
3019          * rendering/RenderLayerCompositor.h:
3020  
3021 2011-01-12  Stephen White  <senorblanco@chromium.org>
3022
3023         Reviewed by James Robinson.
3024
3025         Fix DrawingBuffer issues for depth/stencil, extensions, etc.
3026         https://bugs.webkit.org/show_bug.cgi?id=52310
3027
3028         1)  GL_TEXTURE is not a valid argument to glFramebufferTexture2D()
3029         (should be GL_TEXTURE_2D).
3030         2)  Support for the multisampling extension was being checked after
3031         the DrawingBuffer constructor was called, which calls multisample()
3032         to check for the extension.
3033         3)  If depth or stencil is set, the corresponding framebuffers must
3034         be created in the DrawingBuffer constructor.
3035         4)  GL_DEPTH_STENCIL is not a valid framebuffer internal type in
3036         GLES2.  Must use GL_OES_DEPTH24_STENCIL8, and check for the
3037         OES_packed_depth_stencil extension.
3038
3039         * platform/graphics/chromium/DrawingBufferChromium.cpp:
3040         (WebCore::DrawingBuffer::DrawingBuffer):
3041         Record the extension support in the constructor.  Create all the
3042         secondary drawing buffers (for multisampling, depth/stencil).
3043         * platform/graphics/gpu/DrawingBuffer.cpp:
3044         (WebCore::DrawingBuffer::create):
3045         Check for the extensions before calling the DrawingBuffer constructor.
3046         (WebCore::DrawingBuffer::createSecondaryBuffers):
3047         Refactor creation of the secondary buffers from DrawingBufferMac.mm to
3048         here.
3049         (WebCore::DrawingBuffer::reset):
3050         Use DEPTH24_STENCIL8 format, not DEPTH_STENCIL.  Use
3051         DEPTH_COMPONENT16, not DEPTH_COMPONENT.
3052         Use GL_TEXTURE_2D, not GL_TEXTURE (for glFramebufferTexture2D).
3053         * platform/graphics/gpu/DrawingBuffer.h:
3054         Refactor createSecondaryBuffers().  Add extension support arguments to
3055         constructor.  Add support for packed_depth_stencil extension.
3056         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
3057         (WebCore::DrawingBuffer::DrawingBuffer):
3058         Record extension support in constructor.  Refactor out creation of
3059         secondary buffers.
3060
3061 2011-01-12  Beth Dakin  <bdakin@apple.com>
3062
3063         Reviewed by Anders Carlsson.
3064
3065         Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
3066         fixed layout through WebKit SPI
3067         -and corresponding-
3068         <rdar://problem/8844464>
3069
3070         Export symbols for ScrollView::setUseFixedLayout() and 
3071         ScrollView::setFixedLayoutSize()
3072         * WebCore.exp.in:
3073
3074 2011-01-12  Robert Hogan  <robert@webkit.org>
3075
3076         Reviewed by Kenneth Rohde Christiansen.
3077
3078         [Qt] Search input field doesn't have cancel button
3079
3080         Add a cancel button to the search field and make it customizable
3081         by the client. For now, use the close dialog button associated
3082         with the application's style as the default.
3083
3084         Unskip a bunch of search field related tests that pass now:
3085
3086         fast/forms/search-cancel-button-mouseup.html
3087         fast/forms/search-rtl.html
3088         fast/forms/search-abs-pos-cancel-button.html
3089         fast/forms/search-styled.html
3090         fast/forms/search-transformed.html
3091         fast/forms/search-zoomed.html
3092         fast/forms/search-cancel-button-style-sharing.html
3093         fast/forms/search-display-none-cancel-button.html
3094         fast/forms/search-placeholder-value-changed.html
3095         fast/repaint/search-field-cancel.html
3096         fast/forms/search-cancel-button-events.html
3097
3098         https://bugs.webkit.org/show_bug.cgi?id=42887
3099
3100         * platform/graphics/qt/ImageQt.cpp:
3101         (loadResourcePixmap):
3102         * platform/qt/RenderThemeQt.cpp:
3103         (WebCore::RenderThemeQt::isControlStyled):
3104         (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
3105         (WebCore::RenderThemeQt::paintSearchField):
3106         (WebCore::RenderThemeQt::adjustSearchFieldStyle):
3107         (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
3108         (WebCore::RenderThemeQt::convertToPaintingRect):
3109         (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
3110         * platform/qt/RenderThemeQt.h:
3111
3112 2011-01-12  Andrey Kosyakov  <caseq@chromium.org>
3113
3114         Reviewed by Pavel Feldman.
3115
3116         Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
3117         Only create cookiesTable is it hasn't been done yet.
3118         https://bugs.webkit.org/show_bug.cgi?id=52303
3119
3120         * inspector/front-end/ResourceCookiesView.js:
3121         (WebInspector.ResourceCookiesView.prototype.show):
3122
3123 2011-01-12  Koan-Sin Tan  <koansin.tan@gmail.com>
3124
3125         Reviewed by Martin Robinson.
3126
3127         [Gtk] WebKitGtk+ doesn't build on Mac OS X 10.6
3128         https://bugs.webkit.org/show_bug.cgi?id=50867
3129
3130         * config.h: Don't disallow ctype for (OS(DARWIN) && PLATFORM(GTK))
3131         Many GTK+ related files include <libintl.h> or <glib/gi18n-lib.h>.
3132         On Mac, <libintl.h> includes <xlocale.h>. <xclocale.h> includes 
3133         <xlocale/_ctype.h>, which uses isacii().
3134         * platform/UUID.cpp:
3135         (WebCore::createCanonicalUUIDString): For OS(DARWIN) && !PLATFORM(CF)
3136         use the Chromium Linux UUID generation.
3137
3138 2011-01-12  Simon Fraser  <simon.fraser@apple.com>
3139
3140         Reviewed by Eric Seidel.
3141
3142         [CSS Gradients] One color stop should not paint anything for linear-gradient
3143         https://bugs.webkit.org/show_bug.cgi?id=52259
3144         
3145         Share color stop parsing code between linear and radial gradients.
3146         Consider the gradient invalid if it has less than two color stops.
3147
3148         * css/CSSParser.cpp:
3149         (WebCore::CSSParser::parseLinearGradient):
3150         (WebCore::CSSParser::parseRadialGradient):
3151         (WebCore::CSSParser::parseGradientColorStops):
3152         * css/CSSParser.h:
3153
3154 2011-01-12  Mikhail Naganov  <mnaganov@chromium.org>
3155
3156         Reviewed by Pavel Feldman.
3157
3158         Fix inconsistencies in Inspector strings found by the new check-inspector-strings script.
3159
3160         https://bugs.webkit.org/show_bug.cgi?id=52295
3161
3162         * English.lproj/localizedStrings.js:
3163         * inspector/front-end/BreakpointsSidebarPane.js:
3164         (WebInspector.EventListenerBreakpointsSidebarPane):
3165         * inspector/front-end/ProfilesPanel.js:
3166         (WebInspector.ProfilesPanel.prototype.setRecordingProfile):
3167         * inspector/front-end/Resource.js:
3168         (WebInspector.Resource.Type.toString):
3169         * inspector/front-end/ResourcesPanel.js:
3170         (WebInspector.ResourceRevisionTreeElement):
3171         * inspector/front-end/utilities.js:
3172         ():
3173
3174 2011-01-12  Yury Semikhatsky  <yurys@chromium.org>
3175
3176         Unreviewed. Fix WML compilation on Mac.
3177
3178         * wml/WMLInputElement.cpp:
3179         (WebCore::WMLInputElement::setValue):
3180         (WebCore::WMLInputElement::setValueForUser):
3181         (WebCore::WMLInputElement::initialize):
3182         (WebCore::WMLInputElement::validateInputMask):
3183         * wml/WMLSelectElement.cpp:
3184         (WebCore::WMLSelectElement::listBoxSelectItem):
3185
3186 2011-01-12  Justin Schuh  <jschuh@chromium.org>
3187
3188         Unreviewed build fix for debug strict compiles.
3189
3190         Use fprintf for debug statements instead of fwrite, which caused compile failures
3191         in debug strict mode because of failure to check the fwrite return value.
3192
3193         No behavior changed.
3194
3195         * rendering/CounterNode.cpp:
3196         (WebCore::showTreeAndMark):
3197
3198 2010-12-29  Yury Semikhatsky  <yurys@chromium.org>
3199
3200         Reviewed by Pavel Feldman.
3201
3202         inspector/timeline-network-resource.html fails when run twice
3203         https://bugs.webkit.org/show_bug.cgi?id=37394
3204
3205         Send didReceiveResponse notification to the timeline agent from ResourceLoadNotifier
3206         instead of ResourceLoader::didReceiveResponse to cover the cases when resources
3207         are loaded from memory cache.
3208
3209         Network notifications are now sent to InspectorInstrumentation which dispatches
3210         them to interested agents and InspectorController.
3211
3212         * inspector/Inspector.idl:
3213         * inspector/InspectorApplicationCacheAgent.cpp:
3214         (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
3215         * inspector/InspectorController.cpp:
3216         (WebCore::InspectorController::InspectorController):
3217         (WebCore::InspectorController::didCommitLoad):
3218         (WebCore::InspectorController::willSendRequest):
3219         (WebCore::InspectorController::didReceiveResponse):
3220         (WebCore::InspectorController::didFailLoading):
3221         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
3222         * inspector/InspectorController.h:
3223         * inspector/InspectorInstrumentation.cpp:
3224         (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
3225         (WebCore::InspectorInstrumentation::willSendRequestImpl):
3226         (WebCore::InspectorInstrumentation::markResourceAsCachedImpl):
3227         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
3228         (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
3229         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
3230         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
3231         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
3232         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
3233         (WebCore::InspectorInstrumentation::scriptImportedImpl):
3234         (WebCore::InspectorInstrumentation::retrieveResourceAgent):
3235         * inspector/InspectorInstrumentation.h:
3236         (WebCore::InspectorInstrumentation::identifierForInitialRequest):
3237         (WebCore::InspectorInstrumentation::willSendRequest):
3238         (WebCore::InspectorInstrumentation::markResourceAsCached):
3239         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
3240         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
3241         (WebCore::InspectorInstrumentation::didReceiveContentLength):
3242         (WebCore::InspectorInstrumentation::didFinishLoading):
3243         (WebCore::InspectorInstrumentation::didFailLoading):
3244         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
3245         (WebCore::InspectorInstrumentation::scriptImported):
3246         * inspector/InspectorResourceAgent.cpp:
3247         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
3248         * inspector/InspectorResourceAgent.h:
3249         * inspector/InspectorTimelineAgent.cpp:
3250         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
3251         * inspector/InspectorTimelineAgent.h:
3252         * inspector/TimelineRecordFactory.cpp:
3253         (WebCore::TimelineRecordFactory::createResourceSendRequestData):
3254         * inspector/TimelineRecordFactory.h:
3255         * inspector/front-end/NetworkManager.js:
3256         (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
3257         * inspector/front-end/TimelinePanel.js:
3258         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
3259         * loader/FrameLoader.cpp:
3260         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
3261         * loader/ResourceLoadNotifier.cpp:
3262         (WebCore::ResourceLoadNotifier::didReceiveResponse):
3263         (WebCore::ResourceLoadNotifier::didFailToLoad):
3264         (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
3265         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
3266         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
3267         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
3268         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
3269         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
3270         * loader/ResourceLoader.cpp:
3271         (WebCore::ResourceLoader::didReceiveResponse):
3272         * loader/appcache/ApplicationCacheGroup.cpp:
3273         (WebCore::ApplicationCacheGroup::createResourceHandle):
3274         (WebCore::ApplicationCacheGroup::didReceiveResponse):
3275         (WebCore::ApplicationCacheGroup::didReceiveData):
3276         (WebCore::ApplicationCacheGroup::didFinishLoading):
3277         (WebCore::ApplicationCacheGroup::didFail):
3278         * loader/appcache/ApplicationCacheGroup.h:
3279         * workers/DefaultSharedWorkerRepository.cpp:
3280         (WebCore::SharedWorkerScriptLoader::notifyFinished):
3281         * workers/Worker.cpp:
3282         (WebCore::Worker::notifyFinished):
3283         * workers/WorkerContext.cpp:
3284         (WebCore::WorkerContext::importScripts):
3285         * xml/XMLHttpRequest.cpp:
3286         (WebCore::XMLHttpRequest::didFinishLoading):
3287
3288 2011-01-12  Pavel Podivilov  <podivilov@chromium.org>
3289
3290         Reviewed by Pavel Feldman.
3291
3292         Web Inspector: do not replace all tabs with spaces when editing script source
3293         https://bugs.webkit.org/show_bug.cgi?id=52291
3294
3295         * inspector/front-end/SourceFrame.js:
3296         (WebInspector.SourceFrame.prototype.setContent):
3297         (WebInspector.SourceFrame.prototype._editLine):
3298
3299 2011-01-11  Jeremy Orlow  <jorlow@chromium.org>
3300
3301         Reviewed by Nate Chapin.
3302
3303         Enforce READ_ONLY transactions in IndexedDB
3304         https://bugs.webkit.org/show_bug.cgi?id=52229
3305
3306         Add READ_ONLY_ERR and return it whenever delete or put
3307         are called.  Note that IDBCursor's delete and update
3308         are simply aliases for delete/put, which is why no
3309         extra code is required to handle those cases.
3310
3311         Test: storage/indexeddb/transaction-read-only.html
3312
3313         * dom/ExceptionCode.cpp:
3314         * storage/IDBCursorBackendImpl.cpp:
3315         (WebCore::IDBCursorBackendImpl::deleteFunction):
3316         * storage/IDBDatabase.idl:
3317         * storage/IDBDatabaseException.h:
3318         * storage/IDBDatabaseException.idl:
3319         * storage/IDBObjectStoreBackendImpl.cpp:
3320         (WebCore::IDBObjectStoreBackendImpl::put):
3321         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
3322         (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
3323
3324 2011-01-11  Philippe Normand  <pnormand@igalia.com>
3325
3326         Reviewed by Eric Seidel.
3327
3328         [GTK] minimal build breaks in RenderThemeGtk3
3329         https://bugs.webkit.org/show_bug.cgi?id=52202
3330
3331         * platform/gtk/RenderThemeGtk3.cpp: Added VIDEO guards around
3332         initMediaColors().
3333
3334 2011-01-11  Philippe Normand  <pnormand@igalia.com>
3335
3336         Reviewed by Eric Carlson.
3337
3338         [GStreamer] PlatformVideoWindowMac implementation
3339         https://bugs.webkit.org/show_bug.cgi?id=50770
3340
3341         This new implementation will be used on Mac OS to display the
3342         fullscreen video window with the GStreamer-based media player.
3343
3344         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3345         (WebCore::gstGWorldSyncMessageCallback):
3346         * platform/graphics/gstreamer/PlatformVideoWindow.h:
3347         (WebCore::PlatformVideoWindow::window):
3348         * platform/graphics/gstreamer/PlatformVideoWindowMac.mm:
3349         (PlatformVideoWindow::PlatformVideoWindow):
3350         (PlatformVideoWindow::~PlatformVideoWindow):
3351         (PlatformVideoWindow::prepareForOverlay):
3352
3353 2011-01-11  Simon Fraser  <simon.fraser@apple.com>
3354
3355         Reviewed by Dan Bernstein.
3356
3357         Webkit crashes when a gradient is applied using the first-line pseudo element
3358         https://bugs.webkit.org/show_bug.cgi?id=52225
3359         
3360         When a pseudostyle references images, we fail to register/unregister
3361         the relevant RenderObjects as clients of the image in the style.
3362         For gradients, this caused a crash.
3363         
3364         This patch fixes the crash by returning a null gradient image in this
3365         situation.
3366
3367         Test: fast/gradients/gradient-on-pseudoelement-crash.html
3368
3369         * css/CSSGradientValue.cpp:
3370         (WebCore::CSSGradientValue::image):
3371
3372 2011-01-11  Andy Estes  <aestes@apple.com>
3373
3374         Reviewed by Darin Adler.
3375
3376         REGRESSION (r71562): servePendingRequests() no longer called when
3377         resources are done loading.
3378         https://bugs.webkit.org/show_bug.cgi?id=52264
3379         <rdar://problem/8767429>
3380         
3381         In r71562, servePendingRequests() is no longer called in Loader's
3382         didFinishLoading(), didFail() and didReceiveResponse() methods. Since
3383         r71562 was intended only as a refactoring, these calls should be
3384         restored. At least one WebKit-based Mac OS X application relies on this
3385         for correct behavior.
3386
3387         * loader/cache/CachedResourceLoader.cpp:
3388         (WebCore::CachedResourceLoader::loadDone): Call
3389         resourceLoadScheduler()->servePendingRequests().
3390
3391 2011-01-11  Patrick Gansterer  <paroga@webkit.org>
3392
3393         Reviewed by Eric Seidel.
3394
3395         Add Document::setContent()
3396         https://bugs.webkit.org/show_bug.cgi?id=52085
3397
3398         Add a method to Document to set the whole content at once.
3399         This removes the hack of the insert method in the xml parser
3400         and is a predecessor to feed the xml parser with raw data.
3401
3402         * dom/Document.cpp:
3403         (WebCore::Document::setContent):
3404         * dom/Document.h:
3405         * dom/XMLDocumentParser.cpp:
3406         (WebCore::XMLDocumentParser::insert): Added ASSERT_NOT_REACHED().
3407         * loader/cache/CachedFont.cpp:
3408         (WebCore::CachedFont::ensureSVGFontData): Use setContent.
3409         * xml/DOMParser.cpp:
3410         (WebCore::DOMParser::parseFromString): Ditto.
3411         * xml/XMLHttpRequest.cpp:
3412         (WebCore::XMLHttpRequest::responseXML): Ditto.
3413         * xml/XSLTProcessor.cpp:
3414         (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
3415
3416 2011-01-11  Brent Fulgham  <bfulgham@webkit.org>
3417
3418         Unreviewed build fix.
3419
3420         * platform/graphics/cairo/PathCairo.cpp:
3421         (WebCore::Path::addArc): Switch to MathExtra's piFloat define,
3422         rather than M_PI which is not always available.
3423
3424 2011-01-11  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>
3425
3426         Reviewed by Adam Barth.
3427
3428         Use plug-in DB for extensions to MIME type convertion
3429
3430         Plugins extension to MIME type conversion was not used in the
3431         frameLoader. This was causing some fallback to be use which as the side
3432         effect of loosing all the <OBJECT> parameters or <EMBED> attributes.
3433         This patch ensure that we try to convert the extension to MIME type
3434         using the plugin database beofre using this fallback.
3435
3436         Attribute lost with Flash plugin without mime type set
3437         https://bugs.webkit.org/show_bug.cgi?id=50657
3438
3439         Test: plugins/no-mime-with-valid-extension.html
3440
3441         * loader/FrameLoader.cpp:
3442         (WebCore::FrameLoader::defaultObjectContentType): Use PluginDatabase for MIME
3443
3444 2011-01-11  James Simonsen  <simonjam@chromium.org>
3445
3446         Reviewed by Eric Seidel.
3447
3448         [Web Timing] Rename sslHandshakeStart to secureConnectionStart
3449         https://bugs.webkit.org/show_bug.cgi?id=52239
3450
3451         * page/PerformanceTiming.cpp:
3452         (WebCore::PerformanceTiming::secureConnectionStart):
3453         * page/PerformanceTiming.h:
3454         * page/PerformanceTiming.idl:
3455
3456 2011-01-11  Adam Barth  <abarth@webkit.org>
3457
3458         Reviewed by Eric Seidel.
3459
3460         Introduce the notion of a "display-isolated" URL scheme for use by
3461         Chrome-internal URLs
3462         https://bugs.webkit.org/show_bug.cgi?id=50182
3463
3464         This patch actually makes the display-isolated schemes display
3465         isolated.  The behavior should be the same as the previous iteration of
3466         this patch, but re-organized a bit because reading the access white
3467         list is expensive.
3468
3469         * page/SecurityOrigin.cpp:
3470         (WebCore::SecurityOrigin::isAccessToURLWhiteListed):
3471     &nbs