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