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