2011-01-11 Matthew Delaney <mdelaney@apple.com>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-01-11  Matthew Delaney  <mdelaney@apple.com>
2
3         Reviewed by Simon Fraser.
4
5         Max area bound needed in creation of IOSurface in ImageBufferCG.cpp
6         https://bugs.webkit.org/show_bug.cgi?id=52172
7
8         Tests: fast/canvas/canvas-large-dimensions.html
9
10         * platform/graphics/cg/ImageBufferCG.cpp:
11         (WebCore::ImageBuffer::ImageBuffer):
12
13 2011-01-12  Daniel Bates  <dbates@rim.com>
14             And Benjamin C Meyer  <bmeyer@rim.com>
15
16         Build fix when building with Inspector disabled
17         https://bugs.webkit.org/show_bug.cgi?id=52313
18
19         After changeset 75604 <http://trac.webkit.org/changeset/75604> it's not
20         possible to build when the Inspector is disabled.
21
22         * inspector/InspectorInstrumentation.h:
23         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus): Fix build breakage when building
24         with Inspector disabled and Offline Web Applications enabled by moving macro guard condition
25         ENABLE(INSPECTOR) && ENABLE(OFFLINE_WEB_APPLICATIONS) into function body. This makes us also
26         consistent with the form we use for InspectorInstrumentation::networkStateChanged() and other
27         InspectorInstrumentation functions.
28         * loader/appcache/ApplicationCacheGroup.cpp:
29         (WebCore::ApplicationCacheGroup::didReceiveData): Fix build breakage when building with Inspector
30         disabled by adding ENABLE(INSPECTOR) guard around code that references the instance variable
31         ApplicationCacheGroup::m_currentResourceIdentifier as this variable only exists when building
32         with the Inspector.
33         (WebCore::ApplicationCacheGroup::didFinishLoading): Ditto.
34         (WebCore::ApplicationCacheGroup::didFail): Ditto.
35
36 2011-01-12  Chris Marrin  <cmarrin@apple.com>
37
38         Unreviewed.
39
40         Fix a build issue from http://trac.webkit.org/changeset/75639.
41
42         * platform/graphics/GraphicsLayer.h:
43         (WebCore::GraphicsLayer::contentsScale):
44         (WebCore::GraphicsLayer::setContentsScale):
45
46 2011-01-12  Chris Marrin  <cmarrin@apple.com>
47
48         Reviewed by Kevin Decker.
49
50         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
51         rdar://problem/8824974
52
53         This prevents the rootLayer (with the WebKit rendered content) from going becoming
54         a tiled layer when zoomed, and when there is other layered content on the page.
55         This speeds up zooming a lot and avoids some buggy behavior in CA with a very large
56         number of layers.
57         
58         * rendering/RenderLayer.cpp:
59         (WebCore::RenderLayer::paintsWithTransform):
60         * rendering/RenderLayer.h:
61         * rendering/RenderLayerBacking.cpp:
62         (WebCore::RenderLayerBacking::paintingGoesToWindow):
63
64 2011-01-12  Chris Marrin  <cmarrin@apple.com>
65
66         Reviewed by Simon Fraser.
67         
68         Pages with accelerated layers lose subpixel-AA and become blurry when a scale factor is applied
69         rdar://problem/8824974
70
71         When scaled, WebKit renders the page content at the scaled up size, so there are no
72         scaling artifacts. But content drawn into a layer's backing store does not scale up.
73         This is made worse by the fact that the root page contents become layered when there
74         are other accelerated compositing layers present (video, plugins, etc.).
75         
76         Plumb scaling factor from Frame::scalePage() down into all layers with content. It
77         eventually calls CALayer::setContentsScale which renders to a backing store whose dimensions
78         are scaled, causing them to render larger and appear pixel perfect at the scaled
79         page size.
80  
81          * page/Frame.cpp:
82          (WebCore::Frame::updateContentsScale):
83          (WebCore::Frame::scalePage):
84          * page/Frame.h:
85          * platform/graphics/GraphicsLayer.h:
86          * platform/graphics/ca/GraphicsLayerCA.cpp:
87          (WebCore::GraphicsLayerCA::setContentsScale):
88          (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
89          * platform/graphics/ca/GraphicsLayerCA.h:
90          (WebCore::GraphicsLayerCA::contentsScale):
91          * platform/graphics/ca/PlatformCALayer.h:
92          * platform/graphics/ca/mac/PlatformCALayerMac.mm:
93          (PlatformCALayer::contentsScale):
94          (PlatformCALayer::setContentsScale):
95          * rendering/RenderLayer.cpp:
96          (WebCore::RenderLayer::updateContentsScale):
97          * rendering/RenderLayer.h:
98          * rendering/RenderLayerBacking.cpp:
99          (WebCore::RenderLayerBacking::createGraphicsLayer):
100          (WebCore::RenderLayerBacking::updateForegroundLayer):
101          (WebCore::RenderLayerBacking::updateMaskLayer):
102          (WebCore::RenderLayerBacking::updateContentsScale):
103          * rendering/RenderLayerBacking.h:
104          * rendering/RenderLayerCompositor.cpp:
105          (WebCore::RenderLayerCompositor::updateContentsScale):
106          * rendering/RenderLayerCompositor.h:
107  
108 2011-01-12  Stephen White  <senorblanco@chromium.org>
109
110         Reviewed by James Robinson.
111
112         Fix DrawingBuffer issues for depth/stencil, extensions, etc.
113         https://bugs.webkit.org/show_bug.cgi?id=52310
114
115         1)  GL_TEXTURE is not a valid argument to glFramebufferTexture2D()
116         (should be GL_TEXTURE_2D).
117         2)  Support for the multisampling extension was being checked after
118         the DrawingBuffer constructor was called, which calls multisample()
119         to check for the extension.
120         3)  If depth or stencil is set, the corresponding framebuffers must
121         be created in the DrawingBuffer constructor.
122         4)  GL_DEPTH_STENCIL is not a valid framebuffer internal type in
123         GLES2.  Must use GL_OES_DEPTH24_STENCIL8, and check for the
124         OES_packed_depth_stencil extension.
125
126         * platform/graphics/chromium/DrawingBufferChromium.cpp:
127         (WebCore::DrawingBuffer::DrawingBuffer):
128         Record the extension support in the constructor.  Create all the
129         secondary drawing buffers (for multisampling, depth/stencil).
130         * platform/graphics/gpu/DrawingBuffer.cpp:
131         (WebCore::DrawingBuffer::create):
132         Check for the extensions before calling the DrawingBuffer constructor.
133         (WebCore::DrawingBuffer::createSecondaryBuffers):
134         Refactor creation of the secondary buffers from DrawingBufferMac.mm to
135         here.
136         (WebCore::DrawingBuffer::reset):
137         Use DEPTH24_STENCIL8 format, not DEPTH_STENCIL.  Use
138         DEPTH_COMPONENT16, not DEPTH_COMPONENT.
139         Use GL_TEXTURE_2D, not GL_TEXTURE (for glFramebufferTexture2D).
140         * platform/graphics/gpu/DrawingBuffer.h:
141         Refactor createSecondaryBuffers().  Add extension support arguments to
142         constructor.  Add support for packed_depth_stencil extension.
143         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
144         (WebCore::DrawingBuffer::DrawingBuffer):
145         Record extension support in constructor.  Refactor out creation of
146         secondary buffers.
147
148 2011-01-12  Beth Dakin  <bdakin@apple.com>
149
150         Reviewed by Anders Carlsson.
151
152         Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose
153         fixed layout through WebKit SPI
154         -and corresponding-
155         <rdar://problem/8844464>
156
157         Export symbols for ScrollView::setUseFixedLayout() and 
158         ScrollView::setFixedLayoutSize()
159         * WebCore.exp.in:
160
161 2011-01-12  Robert Hogan  <robert@webkit.org>
162
163         Reviewed by Kenneth Rohde Christiansen.
164
165         [Qt] Search input field doesn't have cancel button
166
167         Add a cancel button to the search field and make it customizable
168         by the client. For now, use the close dialog button associated
169         with the application's style as the default.
170
171         Unskip a bunch of search field related tests that pass now:
172
173         fast/forms/search-cancel-button-mouseup.html
174         fast/forms/search-rtl.html
175         fast/forms/search-abs-pos-cancel-button.html
176         fast/forms/search-styled.html
177         fast/forms/search-transformed.html
178         fast/forms/search-zoomed.html
179         fast/forms/search-cancel-button-style-sharing.html
180         fast/forms/search-display-none-cancel-button.html
181         fast/forms/search-placeholder-value-changed.html
182         fast/repaint/search-field-cancel.html
183         fast/forms/search-cancel-button-events.html
184
185         https://bugs.webkit.org/show_bug.cgi?id=42887
186
187         * platform/graphics/qt/ImageQt.cpp:
188         (loadResourcePixmap):
189         * platform/qt/RenderThemeQt.cpp:
190         (WebCore::RenderThemeQt::isControlStyled):
191         (WebCore::RenderThemeQt::computeSizeBasedOnStyle):
192         (WebCore::RenderThemeQt::paintSearchField):
193         (WebCore::RenderThemeQt::adjustSearchFieldStyle):
194         (WebCore::RenderThemeQt::adjustSearchFieldCancelButtonStyle):
195         (WebCore::RenderThemeQt::convertToPaintingRect):
196         (WebCore::RenderThemeQt::paintSearchFieldCancelButton):
197         * platform/qt/RenderThemeQt.h:
198
199 2011-01-12  Andrey Kosyakov  <caseq@chromium.org>
200
201         Reviewed by Pavel Feldman.
202
203         Web Inspector: cookie table is multiplied after repeated switching to cookies tab in network item view
204         Only create cookiesTable is it hasn't been done yet.
205         https://bugs.webkit.org/show_bug.cgi?id=52303
206
207         * inspector/front-end/ResourceCookiesView.js:
208         (WebInspector.ResourceCookiesView.prototype.show):
209
210 2011-01-12  Koan-Sin Tan  <koansin.tan@gmail.com>
211
212         Reviewed by Martin Robinson.
213
214         [Gtk] WebKitGtk+ doesn't build on Mac OS X 10.6
215         https://bugs.webkit.org/show_bug.cgi?id=50867
216
217         * config.h: Don't disallow ctype for (OS(DARWIN) && PLATFORM(GTK))
218         Many GTK+ related files include <libintl.h> or <glib/gi18n-lib.h>.
219         On Mac, <libintl.h> includes <xlocale.h>. <xclocale.h> includes 
220         <xlocale/_ctype.h>, which uses isacii().
221         * platform/UUID.cpp:
222         (WebCore::createCanonicalUUIDString): For OS(DARWIN) && !PLATFORM(CF)
223         use the Chromium Linux UUID generation.
224
225 2011-01-12  Simon Fraser  <simon.fraser@apple.com>
226
227         Reviewed by Eric Seidel.
228
229         [CSS Gradients] One color stop should not paint anything for linear-gradient
230         https://bugs.webkit.org/show_bug.cgi?id=52259
231         
232         Share color stop parsing code between linear and radial gradients.
233         Consider the gradient invalid if it has less than two color stops.
234
235         * css/CSSParser.cpp:
236         (WebCore::CSSParser::parseLinearGradient):
237         (WebCore::CSSParser::parseRadialGradient):
238         (WebCore::CSSParser::parseGradientColorStops):
239         * css/CSSParser.h:
240
241 2011-01-12  Mikhail Naganov  <mnaganov@chromium.org>
242
243         Reviewed by Pavel Feldman.
244
245         Fix inconsistencies in Inspector strings found by the new check-inspector-strings script.
246
247         https://bugs.webkit.org/show_bug.cgi?id=52295
248
249         * English.lproj/localizedStrings.js:
250         * inspector/front-end/BreakpointsSidebarPane.js:
251         (WebInspector.EventListenerBreakpointsSidebarPane):
252         * inspector/front-end/ProfilesPanel.js:
253         (WebInspector.ProfilesPanel.prototype.setRecordingProfile):
254         * inspector/front-end/Resource.js:
255         (WebInspector.Resource.Type.toString):
256         * inspector/front-end/ResourcesPanel.js:
257         (WebInspector.ResourceRevisionTreeElement):
258         * inspector/front-end/utilities.js:
259         ():
260
261 2011-01-12  Yury Semikhatsky  <yurys@chromium.org>
262
263         Unreviewed. Fix WML compilation on Mac.
264
265         * wml/WMLInputElement.cpp:
266         (WebCore::WMLInputElement::setValue):
267         (WebCore::WMLInputElement::setValueForUser):
268         (WebCore::WMLInputElement::initialize):
269         (WebCore::WMLInputElement::validateInputMask):
270         * wml/WMLSelectElement.cpp:
271         (WebCore::WMLSelectElement::listBoxSelectItem):
272
273 2011-01-12  Justin Schuh  <jschuh@chromium.org>
274
275         Unreviewed build fix for debug strict compiles.
276
277         Use fprintf for debug statements instead of fwrite, which caused compile failures
278         in debug strict mode because of failure to check the fwrite return value.
279
280         No behavior changed.
281
282         * rendering/CounterNode.cpp:
283         (WebCore::showTreeAndMark):
284
285 2010-12-29  Yury Semikhatsky  <yurys@chromium.org>
286
287         Reviewed by Pavel Feldman.
288
289         inspector/timeline-network-resource.html fails when run twice
290         https://bugs.webkit.org/show_bug.cgi?id=37394
291
292         Send didReceiveResponse notification to the timeline agent from ResourceLoadNotifier
293         instead of ResourceLoader::didReceiveResponse to cover the cases when resources
294         are loaded from memory cache.
295
296         Network notifications are now sent to InspectorInstrumentation which dispatches
297         them to interested agents and InspectorController.
298
299         * inspector/Inspector.idl:
300         * inspector/InspectorApplicationCacheAgent.cpp:
301         (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
302         * inspector/InspectorController.cpp:
303         (WebCore::InspectorController::InspectorController):
304         (WebCore::InspectorController::didCommitLoad):
305         (WebCore::InspectorController::willSendRequest):
306         (WebCore::InspectorController::didReceiveResponse):
307         (WebCore::InspectorController::didFailLoading):
308         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
309         * inspector/InspectorController.h:
310         * inspector/InspectorInstrumentation.cpp:
311         (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
312         (WebCore::InspectorInstrumentation::willSendRequestImpl):
313         (WebCore::InspectorInstrumentation::markResourceAsCachedImpl):
314         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
315         (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
316         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
317         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
318         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
319         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
320         (WebCore::InspectorInstrumentation::scriptImportedImpl):
321         (WebCore::InspectorInstrumentation::retrieveResourceAgent):
322         * inspector/InspectorInstrumentation.h:
323         (WebCore::InspectorInstrumentation::identifierForInitialRequest):
324         (WebCore::InspectorInstrumentation::willSendRequest):
325         (WebCore::InspectorInstrumentation::markResourceAsCached):
326         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
327         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
328         (WebCore::InspectorInstrumentation::didReceiveContentLength):
329         (WebCore::InspectorInstrumentation::didFinishLoading):
330         (WebCore::InspectorInstrumentation::didFailLoading):
331         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
332         (WebCore::InspectorInstrumentation::scriptImported):
333         * inspector/InspectorResourceAgent.cpp:
334         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
335         * inspector/InspectorResourceAgent.h:
336         * inspector/InspectorTimelineAgent.cpp:
337         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
338         * inspector/InspectorTimelineAgent.h:
339         * inspector/TimelineRecordFactory.cpp:
340         (WebCore::TimelineRecordFactory::createResourceSendRequestData):
341         * inspector/TimelineRecordFactory.h:
342         * inspector/front-end/NetworkManager.js:
343         (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
344         * inspector/front-end/TimelinePanel.js:
345         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
346         * loader/FrameLoader.cpp:
347         (WebCore::FrameLoader::loadedResourceFromMemoryCache):
348         * loader/ResourceLoadNotifier.cpp:
349         (WebCore::ResourceLoadNotifier::didReceiveResponse):
350         (WebCore::ResourceLoadNotifier::didFailToLoad):
351         (WebCore::ResourceLoadNotifier::assignIdentifierToInitialRequest):
352         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
353         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
354         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
355         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
356         (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages):
357         * loader/ResourceLoader.cpp:
358         (WebCore::ResourceLoader::didReceiveResponse):
359         * loader/appcache/ApplicationCacheGroup.cpp:
360         (WebCore::ApplicationCacheGroup::createResourceHandle):
361         (WebCore::ApplicationCacheGroup::didReceiveResponse):
362         (WebCore::ApplicationCacheGroup::didReceiveData):
363         (WebCore::ApplicationCacheGroup::didFinishLoading):
364         (WebCore::ApplicationCacheGroup::didFail):
365         * loader/appcache/ApplicationCacheGroup.h:
366         * workers/DefaultSharedWorkerRepository.cpp:
367         (WebCore::SharedWorkerScriptLoader::notifyFinished):
368         * workers/Worker.cpp:
369         (WebCore::Worker::notifyFinished):
370         * workers/WorkerContext.cpp:
371         (WebCore::WorkerContext::importScripts):
372         * xml/XMLHttpRequest.cpp:
373         (WebCore::XMLHttpRequest::didFinishLoading):
374
375 2011-01-12  Pavel Podivilov  <podivilov@chromium.org>
376
377         Reviewed by Pavel Feldman.
378
379         Web Inspector: do not replace all tabs with spaces when editing script source
380         https://bugs.webkit.org/show_bug.cgi?id=52291
381
382         * inspector/front-end/SourceFrame.js:
383         (WebInspector.SourceFrame.prototype.setContent):
384         (WebInspector.SourceFrame.prototype._editLine):
385
386 2011-01-11  Jeremy Orlow  <jorlow@chromium.org>
387
388         Reviewed by Nate Chapin.
389
390         Enforce READ_ONLY transactions in IndexedDB
391         https://bugs.webkit.org/show_bug.cgi?id=52229
392
393         Add READ_ONLY_ERR and return it whenever delete or put
394         are called.  Note that IDBCursor's delete and update
395         are simply aliases for delete/put, which is why no
396         extra code is required to handle those cases.
397
398         Test: storage/indexeddb/transaction-read-only.html
399
400         * dom/ExceptionCode.cpp:
401         * storage/IDBCursorBackendImpl.cpp:
402         (WebCore::IDBCursorBackendImpl::deleteFunction):
403         * storage/IDBDatabase.idl:
404         * storage/IDBDatabaseException.h:
405         * storage/IDBDatabaseException.idl:
406         * storage/IDBObjectStoreBackendImpl.cpp:
407         (WebCore::IDBObjectStoreBackendImpl::put):
408         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
409         (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
410
411 2011-01-11  Philippe Normand  <pnormand@igalia.com>
412
413         Reviewed by Eric Seidel.
414
415         [GTK] minimal build breaks in RenderThemeGtk3
416         https://bugs.webkit.org/show_bug.cgi?id=52202
417
418         * platform/gtk/RenderThemeGtk3.cpp: Added VIDEO guards around
419         initMediaColors().
420
421 2011-01-11  Philippe Normand  <pnormand@igalia.com>
422
423         Reviewed by Eric Carlson.
424
425         [GStreamer] PlatformVideoWindowMac implementation
426         https://bugs.webkit.org/show_bug.cgi?id=50770
427
428         This new implementation will be used on Mac OS to display the
429         fullscreen video window with the GStreamer-based media player.
430
431         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
432         (WebCore::gstGWorldSyncMessageCallback):
433         * platform/graphics/gstreamer/PlatformVideoWindow.h:
434         (WebCore::PlatformVideoWindow::window):
435         * platform/graphics/gstreamer/PlatformVideoWindowMac.mm:
436         (PlatformVideoWindow::PlatformVideoWindow):
437         (PlatformVideoWindow::~PlatformVideoWindow):
438         (PlatformVideoWindow::prepareForOverlay):
439
440 2011-01-11  Simon Fraser  <simon.fraser@apple.com>
441
442         Reviewed by Dan Bernstein.
443
444         Webkit crashes when a gradient is applied using the first-line pseudo element
445         https://bugs.webkit.org/show_bug.cgi?id=52225
446         
447         When a pseudostyle references images, we fail to register/unregister
448         the relevant RenderObjects as clients of the image in the style.
449         For gradients, this caused a crash.
450         
451         This patch fixes the crash by returning a null gradient image in this
452         situation.
453
454         Test: fast/gradients/gradient-on-pseudoelement-crash.html
455
456         * css/CSSGradientValue.cpp:
457         (WebCore::CSSGradientValue::image):
458
459 2011-01-11  Andy Estes  <aestes@apple.com>
460
461         Reviewed by Darin Adler.
462
463         REGRESSION (r71562): servePendingRequests() no longer called when
464         resources are done loading.
465         https://bugs.webkit.org/show_bug.cgi?id=52264
466         <rdar://problem/8767429>
467         
468         In r71562, servePendingRequests() is no longer called in Loader's
469         didFinishLoading(), didFail() and didReceiveResponse() methods. Since
470         r71562 was intended only as a refactoring, these calls should be
471         restored. At least one WebKit-based Mac OS X application relies on this
472         for correct behavior.
473
474         * loader/cache/CachedResourceLoader.cpp:
475         (WebCore::CachedResourceLoader::loadDone): Call
476         resourceLoadScheduler()->servePendingRequests().
477
478 2011-01-11  Patrick Gansterer  <paroga@webkit.org>
479
480         Reviewed by Eric Seidel.
481
482         Add Document::setContent()
483         https://bugs.webkit.org/show_bug.cgi?id=52085
484
485         Add a method to Document to set the whole content at once.
486         This removes the hack of the insert method in the xml parser
487         and is a predecessor to feed the xml parser with raw data.
488
489         * dom/Document.cpp:
490         (WebCore::Document::setContent):
491         * dom/Document.h:
492         * dom/XMLDocumentParser.cpp:
493         (WebCore::XMLDocumentParser::insert): Added ASSERT_NOT_REACHED().
494         * loader/cache/CachedFont.cpp:
495         (WebCore::CachedFont::ensureSVGFontData): Use setContent.
496         * xml/DOMParser.cpp:
497         (WebCore::DOMParser::parseFromString): Ditto.
498         * xml/XMLHttpRequest.cpp:
499         (WebCore::XMLHttpRequest::responseXML): Ditto.
500         * xml/XSLTProcessor.cpp:
501         (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
502
503 2011-01-11  Brent Fulgham  <bfulgham@webkit.org>
504
505         Unreviewed build fix.
506
507         * platform/graphics/cairo/PathCairo.cpp:
508         (WebCore::Path::addArc): Switch to MathExtra's piFloat define,
509         rather than M_PI which is not always available.
510
511 2011-01-11  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>
512
513         Reviewed by Adam Barth.
514
515         Use plug-in DB for extensions to MIME type convertion
516
517         Plugins extension to MIME type conversion was not used in the
518         frameLoader. This was causing some fallback to be use which as the side
519         effect of loosing all the <OBJECT> parameters or <EMBED> attributes.
520         This patch ensure that we try to convert the extension to MIME type
521         using the plugin database beofre using this fallback.
522
523         Attribute lost with Flash plugin without mime type set
524         https://bugs.webkit.org/show_bug.cgi?id=50657
525
526         Test: plugins/no-mime-with-valid-extension.html
527
528         * loader/FrameLoader.cpp:
529         (WebCore::FrameLoader::defaultObjectContentType): Use PluginDatabase for MIME
530
531 2011-01-11  James Simonsen  <simonjam@chromium.org>
532
533         Reviewed by Eric Seidel.
534
535         [Web Timing] Rename sslHandshakeStart to secureConnectionStart
536         https://bugs.webkit.org/show_bug.cgi?id=52239
537
538         * page/PerformanceTiming.cpp:
539         (WebCore::PerformanceTiming::secureConnectionStart):
540         * page/PerformanceTiming.h:
541         * page/PerformanceTiming.idl:
542
543 2011-01-11  Adam Barth  <abarth@webkit.org>
544
545         Reviewed by Eric Seidel.
546
547         Introduce the notion of a "display-isolated" URL scheme for use by
548         Chrome-internal URLs
549         https://bugs.webkit.org/show_bug.cgi?id=50182
550
551         This patch actually makes the display-isolated schemes display
552         isolated.  The behavior should be the same as the previous iteration of
553         this patch, but re-organized a bit because reading the access white
554         list is expensive.
555
556         * page/SecurityOrigin.cpp:
557         (WebCore::SecurityOrigin::isAccessToURLWhiteListed):
558         (WebCore::SecurityOrigin::canDisplay):
559         * page/SecurityOrigin.h:
560         * platform/SchemeRegistry.cpp:
561         * platform/SchemeRegistry.h:
562
563 2011-01-11  Mihai Parparita  <mihaip@chromium.org>
564
565         Reviewed by Darin Fisher.
566
567         Scroll event should be fired asynchronously
568         https://bugs.webkit.org/show_bug.cgi?id=45631
569
570         Tests: fast/events/fire-scroll-event.html
571                fast/events/fire-scroll-event-element.html
572                fast/events/scroll-event-phase.html
573
574         Makes scroll events fire asynchronously to be in compliance with the
575         CSSOM View Module and consistent with Gecko, Opera and (to some degree)
576         IE.
577         
578         Implemented via the EventQueue class added by r74062 (EventQueue now
579         has a convenience enqueueScrollEvent method).
580
581         * dom/EventQueue.cpp:
582         (WebCore::EventQueue::enqueueScrollEvent):
583         (WebCore::EventQueue::pendingEventTimerFired):
584         * dom/EventQueue.h:
585         * page/EventHandler.cpp:
586         (WebCore::EventHandler::sendScrollEvent):
587         * rendering/RenderLayer.cpp:
588         (WebCore::RenderLayer::scrollToOffset):
589         * rendering/RenderListBox.cpp:
590         (WebCore::RenderListBox::valueChanged):
591
592 2011-01-11  Patrick Gansterer  <paroga@webkit.org>
593
594         Unreviewed WinCE build fix for r75523.
595
596         * platform/wince/DragDataWinCE.cpp: Added missing include.
597
598 2011-01-11  Abhishek Arya  <inferno@chromium.org>
599
600         Reviewed by Dimitri Glazkov.
601
602         RefPtr the FrameView to prevent scrollbar from getting deleted inside
603         its scroll event.
604         https://bugs.webkit.org/show_bug.cgi?id=52238
605
606         Test: scrollbars/scrollable-iframe-remove-crash.html
607
608         * page/DOMWindow.cpp:
609         (WebCore::DOMWindow::scrollTo):
610
611 2011-01-08  Dimitri Glazkov  <dglazkov@chromium.org>
612
613         Reviewed by David Hyatt.
614
615         Make pseudo-style resolution less hard-coded when used to select a shadow node
616         https://bugs.webkit.org/show_bug.cgi?id=46595
617
618         Essentially implements the plumbing for the XBL2 pseudo attribute:
619         http://dev.w3.org/2006/xbl2/#the-pseudo-attribute
620
621         Test: fast/css/unknown-pseudo-element-matching.html
622
623         * css/CSSGrammar.y: Changed to handle specifier_list structure with the
624             CSSParser::updateSpecifierWithElementName helper, added logic to
625             keep unknown pseudo-element selectors at the top of the selector chain,
626             so that we can easily check for them and grab them, and also because
627             they would either not match anything or act as a descendant selector
628             (descendant into a shadow DOM subtree that is), not a specifier.
629         * css/CSSParser.cpp:
630         (WebCore::CSSParser::updateSpecifiersWithElementName): Generalized/combined
631             the logic adding element name to selectors and added the special case
632             to handle unknown pseudo-element selectors.
633         * css/CSSParser.h: Added def.
634         * css/CSSSelector.cpp:
635         (WebCore::CSSSelector::pseudoId): Removed any mention of PseudoSliderThumb/SLIDER_THUMB.
636         (WebCore::nameToPseudoTypeMap): Ditto.
637         (WebCore::CSSSelector::extractPseudoType): Ditto.
638         * css/CSSSelector.h: Added a new ShadowDescendant relation type,
639             removed PseudoSliderThumb def.
640         (WebCore::CSSSelector::isUnknownPseudoElement): Added a helper method.
641         * css/CSSSelectorList.cpp:
642         (WebCore::SelectorHasUnknownPseudoElementFunctor::operator()): Added a functor
643             to check for an unknown pseudo-element in the list.
644         (WebCore::CSSSelectorList::hasUnknownPseudoElements): Added.
645         * css/CSSSelectorList.h: Added a def.
646         * css/CSSStyleSelector.cpp:
647         (WebCore::CSSRuleSet::getPseudoRules): Added accessor to pseudo-element hash.
648         (WebCore::CSSStyleSelector::matchRules): Added matching pseudo elements.
649         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector): Added handling
650             of ShadowDescendant relation.
651         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Enabled handling
652             of unknown pseudo-element selectors.
653         (WebCore::CSSRuleSet::addRule): Added populating unknown pseudo-element hash.
654         * css/html.css:
655         (input[type="range"]::-webkit-slider-thumb): Added previously-hard-coded
656             display:block.
657         * dom/Element.h:
658         (WebCore::Element::shadowPseudoId): Added new virtual method to allow
659             elements to provide the value of pseudo-element selector they would match.
660         * dom/Node.cpp:
661         (WebCore::Node::querySelector): Added checking for unknown pseudo-element selectors,
662             so that we can throw a SYNTAX_ERR if found.
663         (WebCore::Node::querySelectorAll): Ditto.
664         * html/shadow/SliderThumbElement.h:
665         (WebCore::SliderThumbElement::shadowPseudoId): Added to return "-webkit-slider-thumb";
666         * rendering/RenderSlider.cpp:
667         (WebCore::RenderSlider::createThumbStyle): Changed to use the new styleForElement logic.
668         * rendering/style/RenderStyleConstants.h: Removed SLIDER_THUMB.
669
670 2011-01-11  Dean Jackson  <dino@apple.com>
671
672         Reviewed by Simon Fraser.
673
674         https://bugs.webkit.org/show_bug.cgi?id=52233
675
676         WebKitCSSMatrix constructor should accept 'none'
677         as a valid string parameter.
678
679         * css/WebKitCSSMatrix.cpp:
680         (WebCore::WebKitCSSMatrix::setMatrixValue):
681
682 2011-01-11  James Robinson  <jamesr@chromium.org>
683
684         Reviewed by Dimitri Glazkov.
685
686         Set all RenderBlocks as replaced when an inline display type is specified
687         https://bugs.webkit.org/show_bug.cgi?id=50858
688
689         When a RenderBlock is created for an element with a specified display:inline style,
690         it should always be treated as inline-block.  This situations often comes up for form
691         controls.  Previously, RenderBlock::styleWillChange set the replaced flag for display
692         values of inline-block, inline-table, and inline-table and a number of subclasses of
693         RenderBlock set the replaced flag in styleDidChange for a display:inline.  However
694         sometimes new subclasses would miss this step leading to bugs (such as with RenderDetails).
695         This patch sets the replaced flag for all inline display types in RenderBlock::styleWillChange.
696
697         Code cleanup only, no change in behavior so no new tests.
698
699         * rendering/RenderBlock.cpp:
700         (WebCore::RenderBlock::styleWillChange):
701         * rendering/RenderButton.cpp:
702         (WebCore::RenderButton::styleDidChange):
703         * rendering/RenderFieldset.cpp:
704         * rendering/RenderFieldset.h:
705         * rendering/RenderFileUploadControl.cpp:
706         (WebCore::RenderFileUploadControl::styleDidChange):
707         * rendering/RenderListBox.cpp:
708         * rendering/RenderListBox.h:
709         * rendering/RenderMenuList.cpp:
710         (WebCore::RenderMenuList::styleDidChange):
711         * rendering/RenderSlider.cpp:
712         (WebCore::RenderSlider::styleDidChange):
713         * rendering/RenderTextControl.cpp:
714         (WebCore::RenderTextControl::styleDidChange):
715
716 2011-01-11  Dimitri Glazkov  <dglazkov@chromium.org>
717
718         Reviewed by Eric Seidel.
719
720         REGRESSION(r71934) Can't type in search edit field on skin-one.com
721         https://bugs.webkit.org/show_bug.cgi?id=52195
722
723         Restored the original behavior, where the selectstart event is not
724         dispatched when selection changes inside of the shadow DOM.
725
726         * dom/Node.cpp:
727         (WebCore::determineDispatchBehavior): Moved EventDispatchBehavior-determining
728             logic into a helper function, also added a check to keep selectstart
729                 events inside of the shadow DOM.
730         (WebCore::Node::dispatchGenericEvent): Changed to use the helper function.
731
732 2011-01-11  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
733
734         Reviewed by Eric Seidel.
735
736         [Qt] Provide plugin coordinates to windowless plugins on Symbian.
737         https://bugs.webkit.org/show_bug.cgi?id=52213
738
739         * plugins/symbian/PluginViewSymbian.cpp:
740         (WebCore::PluginView::setNPWindowIfNeeded):
741
742 2011-01-10  Zhenyao Mo  <zmo@google.com>
743
744         Reviewed by Kenneth Russell.
745
746         Need to consider UNPACK_ALIGNMENT in GraphicsContext3D::texImage2DResourceSafe
747         https://bugs.webkit.org/show_bug.cgi?id=52068
748
749         * html/canvas/WebGLRenderingContext.cpp:
750         (WebCore::WebGLRenderingContext::copyTexImage2D): Use computeImageSizeInBytes.
751         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
752         (WebCore::WebGLRenderingContext::readPixels): Ditto, and fix a bug on generating the wrong error.
753         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
754         (WebCore::WebGLRenderingContext::validateTexFuncData): Use computeImageSizeInBytes.
755         * platform/graphics/GraphicsContext3D.cpp:
756         (WebCore::GraphicsContext3D::texImage2DResourceSafe): Add a new parameter alignment.
757         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters): Add more supported format/type.
758         (WebCore::GraphicsContext3D::computeImageSizeInBytes): Added.
759         * platform/graphics/GraphicsContext3D.h:
760
761 2011-01-10  Enrica Casucci  <enrica@apple.com>
762
763         Reviewed by Alexey Proskuryakov.
764
765         Paste and drag and drop use different code paths to interact with the pasteboard.
766         https://bugs.webkit.org/show_bug.cgi?id=52093
767         The change consists in a refactoring of the code to have only one class that
768         deals with the pasteboard on Mac.
769
770         No new tests. A test is already available for this
771         (editing/pasteboard/drag-image-to-contenteditable-in-iframe.html) but had incorrect results.
772
773         * WebCore.exp.in:
774         * loader/EmptyClients.h: Added two Mac only methods to call into WebKit to use functionality
775         that is in NSURLExtras.
776         (WebCore::EmptyEditorClient::canonicalizeURL):
777         (WebCore::EmptyEditorClient::canonicalizeURLString):
778         * page/DragController.cpp:
779         The following methods have been changed to pass a pointer to the Frame object
780         to the DragData class.
781         (WebCore::documentFragmentFromDragData):
782         (WebCore::DragController::performDrag):
783         (WebCore::DragController::dispatchTextInputEventFor):
784         (WebCore::DragController::concludeEditDrag):
785         * page/EditorClient.h: Added two Mac only methods to call into WebKit to use functionality
786         that is in NSURLExtras.
787         The following files have been modified to pass the Frame object to the DragData method calls.
788         * page/chromium/DragControllerChromium.cpp:
789         (WebCore::DragController::dragOperation):
790         * page/gtk/DragControllerGtk.cpp:
791         (WebCore::DragController::dragOperation):
792         * page/mac/DragControllerMac.mm:
793         (WebCore::DragController::dragOperation):
794         * page/qt/DragControllerQt.cpp:
795         (WebCore::DragController::dragOperation):
796         * page/win/DragControllerWin.cpp:
797         (WebCore::DragController::dragOperation):
798         * platform/DragData.h: Removed Mac specific constructor and reference to PasteboardHelper class.
799         * platform/Pasteboard.h: Added public constructor to create a Pasteboard object from an NSPasteboard.
800         The following files were all modified to match the new parameters of the methods listed.
801         * platform/android/DragDataAndroid.cpp:
802         (WebCore::DragData::asPlainText):
803         (WebCore::DragData::containsURL):
804         (WebCore::DragData::asURL):
805         (WebCore::DragData::asFragment):
806         * platform/chromium/DragDataChromium.cpp:
807         (WebCore::DragData::containsURL):
808         (WebCore::DragData::asURL):
809         (WebCore::DragData::asPlainText):
810         (WebCore::DragData::containsCompatibleContent):
811         (WebCore::DragData::asFragment):
812         * platform/gtk/DragDataGtk.cpp:
813         (WebCore::DragData::asPlainText):
814         (WebCore::DragData::containsCompatibleContent):
815         (WebCore::DragData::containsURL):
816         (WebCore::DragData::asURL):
817         (WebCore::DragData::asFragment):
818         * platform/haiku/DragDataHaiku.cpp:
819         (WebCore::DragData::asPlainText):
820         (WebCore::DragData::containsURL):
821         (WebCore::DragData::asURL):
822         (WebCore::DragData::asFragment):
823         * platform/mac/DragDataMac.mm:
824         (WebCore::DragData::DragData):
825         (WebCore::DragData::asPlainText):
826         (WebCore::insertablePasteboardTypes):
827         (WebCore::DragData::containsCompatibleContent):
828         (WebCore::DragData::containsURL):
829         (WebCore::DragData::asURL):
830         (WebCore::DragData::asFragment):
831         * platform/mac/PasteboardMac.mm:
832         (WebCore::Pasteboard::getBestURL):
833         (WebCore::Pasteboard::asURL):
834         * platform/qt/DragDataQt.cpp:
835         (WebCore::DragData::asPlainText):
836         (WebCore::DragData::containsCompatibleContent):
837         (WebCore::DragData::containsURL):
838         (WebCore::DragData::asURL):
839         (WebCore::DragData::asFragment):
840         * platform/win/DragDataWin.cpp:
841         (WebCore::DragData::containsURL):
842         (WebCore::DragData::asURL):
843         (WebCore::DragData::asPlainText):
844         (WebCore::DragData::containsCompatibleContent):
845         (WebCore::DragData::asFragment):
846         * platform/wince/DragDataWinCE.cpp:
847         (WebCore::DragData::containsURL):
848         (WebCore::DragData::asURL):
849         (WebCore::DragData::asPlainText):
850         (WebCore::DragData::asFragment):
851         * platform/wx/DragDataWx.cpp:
852         (WebCore::DragData::asPlainText):
853         (WebCore::DragData::containsURL):
854         (WebCore::DragData::asURL):
855         (WebCore::DragData::asFragment):
856
857 2011-01-11  Abhishek Arya  <inferno@chromium.org>
858
859         Reviewed by Dimitri Glazkov.
860
861         RefPtr text node in setOuterText since calling appendData
862         on a text node can fire away dom event listener which might
863         remove the text node from underneath.
864         https://bugs.webkit.org/show_bug.cgi?id=52163
865
866         Test: fast/dom/text-node-append-data-remove-crash.html
867
868         * html/HTMLElement.cpp:
869         (WebCore::HTMLElement::setOuterText):
870
871 2011-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
872
873         Reviewed by Martin Robinson.
874
875         [GTK] Add support for <meter> element
876         https://bugs.webkit.org/show_bug.cgi?id=48713
877
878         * GNUmakefile.am: Enable meter element.
879
880 2011-01-11  Csaba Osztrogonác  <ossy@webkit.org>
881
882         Unreviewed buildfix.
883
884         [Qt][V8] Add missing include for debug build.
885
886         * loader/cache/CachedResourceLoader.cpp:
887
888 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
889
890         Reviewed by Yury Semikhatsky.
891
892         Web Inspector: redirects are lost from the network panel upon navigation.
893         https://bugs.webkit.org/show_bug.cgi?id=52210
894
895         * inspector/front-end/NetworkManager.js:
896         (WebInspector.NetworkManager.prototype.didCommitLoadForFrame):
897
898 2011-01-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
899
900         Reviewed by Kenneth Rohde Christiansen.
901
902         [Qt] Remove uses of QFuture since it isn't supported on all platforms.
903         https://bugs.webkit.org/show_bug.cgi?id=51204
904
905         * platform/network/qt/QtNAMThreadSafeProxy.cpp:
906         (WebCore::QtNAMThreadSafeProxy::QtNAMThreadSafeProxy):
907         (WebCore::QtNAMThreadSafeProxy::localCookiesForUrl):
908         (WebCore::QtNAMThreadSafeProxy::localWillLoadFromCache):
909         * platform/network/qt/QtNAMThreadSafeProxy.h:
910         (WebCore::QtNAMThreadSafeProxy::cookiesForUrl):
911         (WebCore::QtNAMThreadSafeProxy::willLoadFromCache):
912
913 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
914
915         Reviewed by Pavel Feldman.
916
917         Web Inspector: recreate script view after live edit.
918         https://bugs.webkit.org/show_bug.cgi?id=51751
919
920         * inspector/front-end/Script.js:
921         (WebInspector.Script.prototype.set source):
922         * inspector/front-end/ScriptView.js:
923         (WebInspector.ScriptView):
924         * inspector/front-end/ScriptsPanel.js:
925         (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
926         (WebInspector.ScriptsPanel.prototype.editScriptSource):
927         (WebInspector.ScriptsPanel.prototype.viewRecreated):
928         * inspector/front-end/SourceFrame.js:
929         (WebInspector.SourceFrame.prototype._doEditLine):
930
931 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
932
933         Reviewed by Pavel Feldman.
934
935         Web Inspector: frameDetachedFromParent notification handler is missing in NetworkManager.
936         https://bugs.webkit.org/show_bug.cgi?id=52205
937
938         * inspector/front-end/NetworkManager.js:
939         (WebInspector.NetworkManager.prototype.frameDetachedFromParent):
940
941 2011-01-11  Alexander Pavlov  <apavlov@chromium.org>
942
943         Reviewed by Pavel Feldman.
944
945         Web Inspector: "Audit present state" always disabled
946         https://bugs.webkit.org/show_bug.cgi?id=52199
947
948         Removed all traces of resource tracking checks, as we have it no more.
949
950         * English.lproj/localizedStrings.js:
951         * inspector/front-end/AuditLauncherView.js:
952         (WebInspector.AuditLauncherView.prototype._createLauncherUI):
953         * inspector/front-end/AuditsPanel.js:
954
955 2011-01-11  Pavel Podivilov  <podivilov@chromium.org>
956
957         Reviewed by Pavel Feldman.
958
959         Web Inspector: move delayed search implementation to SourceFrame.
960         https://bugs.webkit.org/show_bug.cgi?id=51753
961
962         * inspector/front-end/SourceFrame.js:
963         (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
964         (WebInspector.SourceFrame.prototype.findSearchMatches):
965         (WebInspector.SourceFrame.prototype.cancelFindSearchMatches):
966         * inspector/front-end/SourceView.js:
967         (WebInspector.SourceView.prototype.hide):
968         (WebInspector.SourceView.prototype.searchCanceled):
969         (WebInspector.SourceView.prototype.performSearch.didFindSearchMatches):
970         (WebInspector.SourceView.prototype.performSearch):
971
972 2011-01-11  Ilya Tikhonovsky  <loislo@chromium.org>
973
974         Reviewed by Pavel Feldman.
975
976         Web Inspector: innerFirstChild has a side effect which should be called explicitly.
977
978         If a node is a frame's owner then innerFirstChild method
979         subscribes DOMAgent instance to the frame's doc's events.
980         I think this should be done explicitly when we meet with
981         the node for the first time. As I understand it happens
982         in buildArrayForContainerChildren method.
983
984         https://bugs.webkit.org/show_bug.cgi?id=52204
985
986         * inspector/InspectorDOMAgent.cpp:
987         (WebCore::InspectorDOMAgent::startListeningFrameDoc):
988         (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
989         (WebCore::InspectorDOMAgent::innerFirstChild):
990         * inspector/InspectorDOMAgent.h:
991
992 2011-01-11  Adam Roben  <aroben@apple.com>
993
994         Delete WKCACFLayer.{cpp,h}
995
996         These have been unused since r75262
997
998         * platform/graphics/win/WKCACFLayer.cpp: Removed.
999         * platform/graphics/win/WKCACFLayer.h: Removed.
1000
1001 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
1002
1003         Reviewed by Yury Semikhatsky.
1004
1005         Web Inspector: [regression] Cookies view does not allow columns resize.
1006         https://bugs.webkit.org/show_bug.cgi?id=51877
1007
1008         * inspector/front-end/CookieItemsView.js:
1009         (WebInspector.CookieItemsView.prototype._updateWithCookies):
1010
1011 2011-01-11  Noel Gordon  <noel.gordon@gmail.com>
1012
1013          Reviewed by James Robinson.
1014
1015          [chromium] canvas.toDataURL("image/jpeg") should composite onto black.
1016          https://bugs.webkit.org/show_bug.cgi?id=51237
1017
1018          The Canvas specification requires that the canvas image is composited using
1019          the Porter-Duff operator source-over onto a black background; the resultant
1020          image should be JPEG encoded and returned as a dataURL.  To composite image
1021          A and background B, for any Porter-Duff operator, produce pixels I with
1022
1023             I = c(A)F(A) + c(B)F(B)
1024
1025          where, F(X) is the fraction [0.0-1.0] contributed to the composite by image
1026          X, and c(X) are the premultiplied RGB color components of image X.  Note by
1027          definition, c(B) = 0 since the background is black, so I = c(A)F(A).  Since
1028          F(A) = 1 in Porter-Duff operator source-over, the composited pixels satisfy
1029          I = c(A).  Hence, to conform to the Canvas spec, pass the premultiplied RGB
1030          color components of the canvas image to the JPEG encoder.
1031
1032          Covered by canvas/philip/tests/toDataURL.jpeg.alpha.html
1033
1034          * platform/image-encoders/skia/JPEGImageEncoder.cpp:
1035          (WebCore::preMultipliedBGRAtoRGB): Use Porter-Duff source-over black.
1036
1037 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
1038
1039         Reviewed by Yury Semikhatsky.
1040
1041         Chromium DevTools: get rid of APU-related code in WebKit/chromium.
1042         https://bugs.webkit.org/show_bug.cgi?id=52152
1043
1044         * inspector/InspectorController.cpp:
1045         (WebCore::InspectorController::restoreInspectorStateFromCookie):
1046         (WebCore::InspectorController::setInjectedScriptSource):
1047         * inspector/InspectorState.cpp:
1048         (WebCore::InspectorState::InspectorState):
1049         * inspector/InspectorState.h:
1050         * inspector/front-end/inspector.js:
1051
1052 2011-01-11  Pavel Feldman  <pfeldman@chromium.org>
1053
1054         Reviewed by Yury Semikhatsky.
1055
1056         Web Inspector: [REGRESSION] Load timing is requested
1057         for all resources (not only for the main one).
1058         https://bugs.webkit.org/show_bug.cgi?id=51749
1059
1060         * inspector/InspectorController.cpp:
1061         (WebCore::InspectorController::willSendRequest):
1062         * loader/ResourceLoadNotifier.cpp:
1063         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
1064
1065 2011-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
1066
1067         Reviewed by Martin Robinson.
1068
1069         [GTK] GRefPtr should not be used with Gtk widgets
1070         https://bugs.webkit.org/show_bug.cgi?id=51241
1071
1072         GRefPtr breaks the widget life-cycle, the main problem is
1073         that GRefPtr calls g_object_unref() when it's destroyed,
1074         which is undesirable for widgets. In gtk+ widgets are created with
1075         a floating reference and when added to a container, the container
1076         takes the ownership of the widget consuming the floating
1077         reference. So you don't usually need to call g_object_ref/unref on
1078         widgets (only for some operations like reparent a widget) and
1079         toplevel widgets are destroyed with gtk_widget_destroy().
1080
1081         * platform/ContextMenuItem.h:
1082         * platform/gtk/ContextMenuGtk.cpp:
1083         (WebCore::ContextMenu::ContextMenu):
1084         (WebCore::ContextMenu::~ContextMenu):
1085         (WebCore::ContextMenu::setPlatformDescription):
1086         * platform/gtk/ContextMenuItemGtk.cpp:
1087         (WebCore::ContextMenuItem::ContextMenuItem):
1088         (WebCore::ContextMenuItem::releasePlatformDescription):
1089         (WebCore::ContextMenuItem::type):
1090         (WebCore::ContextMenuItem::action):
1091         (WebCore::ContextMenuItem::setAction):
1092         (WebCore::ContextMenuItem::title):
1093         (WebCore::ContextMenuItem::setTitle):
1094         (WebCore::ContextMenuItem::platformSubMenu):
1095         (WebCore::ContextMenuItem::setSubMenu):
1096         (WebCore::ContextMenuItem::setChecked):
1097         (WebCore::ContextMenuItem::setEnabled):
1098
1099 2010-10-10  David Hyatt  <hyatt@apple.com>
1100
1101         Reviewed by Simon Fraser.
1102
1103         https://bugs.webkit.org/show_bug.cgi?id=51119, transformed 
1104         elements not responding properly to :hover after r73385.  
1105         Just use the entire document area as the hit test area, 
1106         since there appears to be a rounding bug/issues with relying 
1107         on float math when mapping the hit test area into
1108         transformed coordinates.
1109
1110         * rendering/RenderLayer.cpp:
1111         (WebCore::RenderLayer::hitTest):
1112
1113 2011-01-10  Stephen White  <senorblanco@chromium.org>
1114
1115         Reviewed by James Robinson.
1116
1117         Fix canvas->canvas draws on the GPU path.
1118         https://bugs.webkit.org/show_bug.cgi?id=52141
1119         
1120         Two problems:  according to the canvas spec, both source and
1121         destination rects can have negative width or height, but this shouldn't
1122         cause the image to be flipped.  So we need to normalize the rects (in
1123         the software path, this is done by BitmapImage*::draw).  Secondly, in
1124         the FBO->FBO path, the image needs to be flipped vertically, since it
1125         is drawn upside down.  We were doing this by flipping the destination
1126         rect, but this doesn't work if the source rect is not the entire image,
1127         since we extract the wrong part of the image.  Fixed by flipping the
1128         source rect instead (and flipping it within the image buffer's height,
1129         not the source rect's height).
1130
1131         Covered by fast/canvas/drawImage-with-negative-source-destination.html.
1132
1133
1134         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
1135         Put normalizeRect() in global scope.
1136         * platform/graphics/skia/ImageBufferSkia.cpp:
1137         (WebCore::ImageBuffer::draw):
1138         Fix as above:  normalize both source and dest rects, and flip the
1139         source rect instead of the dest rect.
1140         * platform/graphics/skia/ImageSkia.cpp:
1141         (WebCore::normalizeRect):
1142         Put normalizeRect() in global scope.
1143
1144 2011-01-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1145
1146         Reviewed by Csaba Osztrogonác.
1147
1148         [Qt] Baseline qt_minimal configuration
1149         https://bugs.webkit.org/show_bug.cgi?id=51313
1150
1151         No new tests as there is no new functionality.
1152
1153         * platform/graphics/qt/GraphicsLayerQt.cpp: Fix the location of the
1154         QT_NO_ANIMATION guard.
1155
1156         * platform/qt/WheelEventQt.cpp:
1157         (WebCore::PlatformWheelEvent::applyDelta): Fix the location of the
1158         QT_NO_WHEELEVENT guard.
1159
1160 2011-01-10  Joe Mason  <jmason@rim.com>
1161
1162         Reviewed by Alexey Proskuryakov.
1163
1164         WebSockets: unbounded buffer growth when server sends bad data
1165         https://bugs.webkit.org/show_bug.cgi?id=51253
1166
1167         Fail a websocket handshake after 1024 bytes without a newline, or if it
1168         contains a null byte before the first newline.
1169
1170         Tests: http/tests/websocket/tests/handshake-fail-by-maxlength.html
1171                http/tests/websocket/tests/handshake-fail-by-prepended-null.html
1172
1173         * websockets/WebSocketHandshake.cpp:
1174         (WebCore::WebSocketHandshake::readStatusLine):
1175
1176 2011-01-10  Adam Barth  <abarth@webkit.org>
1177
1178         Reviewed by Darin Adler.
1179
1180         Introduce the notion of a "display-isolated" URL scheme for use by
1181         Chrome-internal URLs
1182         https://bugs.webkit.org/show_bug.cgi?id=50182
1183
1184         This patch adds the basic plumbing for display-isolated URL schemes.
1185         Originally, this patch also had the functional change, but I've split
1186         that off into a separate patch because the original patch caused a
1187         performance regression.
1188
1189         * page/SecurityOrigin.cpp:
1190         (WebCore::SecurityOrigin::canDisplay):
1191         * platform/SchemeRegistry.cpp:
1192         (WebCore::displayIsolatedURLSchemes):
1193         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
1194         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
1195         (WebCore::SchemeRegistry::localSchemes):
1196         (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
1197         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
1198         (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
1199         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
1200         * platform/SchemeRegistry.h:
1201
1202 2011-01-10  Jer Noble  <jer.noble@apple.com>
1203
1204         Reviewed by Simon Fraser.
1205
1206         https://bugs.webkit.org/show_bug.cgi?id=52095
1207         REGRESSION (r75277): 2 test cases (<1%) had incorrect layout
1208         
1209         Fixes tests:
1210             fullscreen/full-screen-remove-ancestor.html
1211             fullscreen/full-screen-remove.html
1212             
1213         Previously, the above tests were failing because DRT dumped the contents of their
1214         <script> tags, though all the explicit tests were passing.  This was caused by
1215         the document's render tree being left in an inconsistent state when a full screen
1216         element's ancestor was removed from the DOM.
1217         
1218         In nodeWillBeRemoved(), match the code in webkitDidExitFullScreen().
1219         Don't detach the documentElement, but rather simply call recalcStyle(Force).
1220
1221         * dom/Document.cpp:
1222         (WebCore::Document::nodeWillBeRemoved):
1223         * rendering/RenderFullScreen.cpp:
1224         (RenderFullScreen::setAnimating): #if ENABLED -> # if USE
1225         * rendering/RenderFullScreen.h:
1226         (WebCore::RenderFullScreen::RenderFullScreen): RenderFullScreen should be an anonymous renderer.
1227
1228 2011-01-10  Martin Robinson  <mrobinson@igalia.com>
1229
1230         Reviewed by Xan Lopez.
1231
1232         [GTK] Remove use of deprecated GTK+ methods before the 1.3.10 release
1233         https://bugs.webkit.org/show_bug.cgi?id=52173
1234
1235         No new tests. This is only a build fix.
1236
1237         * platform/gtk/GRefPtrGtk.cpp: Guard the GdkCursor specialization against GTK+ 3.x.
1238         In GTK+ 3.x, GdkCursor is just a GObject.
1239         * platform/gtk/GRefPtrGtk.h: Ditto.
1240
1241 2011-01-10  Geoffrey Garen  <ggaren@apple.com>
1242
1243         Reviewed by Oliver Hunt.
1244
1245         Moved Collector.* => Heap.*, since the file contains a class named "Heap".
1246
1247         * ForwardingHeaders/runtime/Collector.h: Removed.
1248         * ForwardingHeaders/runtime/Heap.h: Copied from WebCore/ForwardingHeaders/runtime/Collector.h.
1249         * WebCore.vcproj/WebCore.vcproj:
1250         * bindings/js/GCController.cpp:
1251         * bindings/js/ScriptGCEvent.cpp:
1252
1253 2011-01-10  Leonid Ebril  <leonid.ebril@nokia.com>
1254
1255         Reviewed by Kenneth Rohde Christiansen.
1256
1257         https://bugs.webkit.org/show_bug.cgi?id=51879
1258
1259         Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite  
1260         plugin if Flash 10 or newer (for Symbian platform), setting a nulled 
1261         window handler on destroy crashes WebKit.
1262
1263         * plugins/symbian/PluginPackageSymbian.cpp:
1264         (WebCore::PluginPackage::fetchInfo):
1265         (WebCore::PluginPackage::determineQuirks):
1266
1267 2011-01-10  Martin Robinson  <mrobinson@igalia.com>
1268
1269         Reviewed by Xan Lopez.
1270
1271         [GTK] Remove unecessary RenderThemeGtk and WidgetRenderingContext code
1272         https://bugs.webkit.org/show_bug.cgi?id=52170
1273
1274         Remove unnecessary code from RenderThemeGtk3 and RenderThemeGtk now that the
1275         GtkStyleContext port is complete. Also remove WidgetRenderingContextGtk3 and
1276         move WidgetRenderingRenderingContextGtk2 to WidgetRenderingContext and make it
1277         GTK+ 2.x only. Some methods have been moved to RenderThemeGtk2 since they are
1278         GTK+ 2.x only now.
1279
1280         No new tests. This should not change functionality.
1281
1282         * GNUmakefile.am: Remove WidgetRenderingContextGtk3 and gtk3drawing.c
1283         * platform/gtk/RenderThemeGtk.cpp:
1284         (WebCore::RenderThemeGtk::RenderThemeGtk):
1285         (WebCore::gtkIconState): Made this method static. It isn't used outside RenderThemeGtk.
1286         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): Updated to refelct gtkIconState change.
1287         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): Ditto.
1288         (WebCore::RenderThemeGtk::paintMediaButton): Ditto
1289         * platform/gtk/RenderThemeGtk.h: Move a few methods which are now GTK+ 2.x only.
1290         * platform/gtk/RenderThemeGtk2.cpp:
1291         (WebCore::RenderThemeGtk::platformInit): Added this platform initialization method
1292         that is only used for GTK+ 2.x at the moment.
1293         (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
1294         (WebCore::getGtkStateType): Made this method static.
1295         (WebCore::RenderThemeGtk::getIndicatorMetrics): Moved this here from RenderThemeGtk.
1296         (WebCore::setToggleSize): Updated to reflect changes to getGtkStateType.
1297         (WebCore::RenderThemeGtk::paintButton): Ditto.
1298         (WebCore::RenderThemeGtk::paintSliderTrack): Ditto.
1299         (WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
1300         * platform/gtk/RenderThemeGtk3.cpp:
1301         (WebCore::RenderThemeGtk::gtkScrollbarStyle): Moved to the top of the file.
1302         (WebCore::RenderThemeGtk::platformInit): Added.
1303         (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
1304         (WebCore::RenderThemeGtk::initMediaColors): Changed to use the GtkStyleContext API to
1305         fetch these colors. This was the last dependency on the old API.
1306         * platform/gtk/WidgetRenderingContext.cpp: Renamed from Source/WebCore/platform/gtk/WidgetRenderingContextGtk2.cpp.
1307         * platform/gtk/WidgetRenderingContext.h: Made GTK+ 2.x only.
1308         * platform/gtk/WidgetRenderingContextGtk3.cpp: Removed.
1309         * platform/gtk/gtk3drawing.c: Removed.
1310         * platform/gtk/gtkdrawing.h: Made GTK+ 2.x only.
1311
1312 2011-01-10  Benjamin Poulain  <benjamin.poulain@nokia.com>
1313
1314         Reviewed by Kenneth Rohde Christiansen.
1315
1316         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
1317         https://bugs.webkit.org/show_bug.cgi?id=52081
1318
1319         Test for the availability of cookie jar to return if cookies are enabled or not.
1320
1321         * platform/qt/CookieJarQt.cpp:
1322         (WebCore::cookiesEnabled):
1323
1324 2011-01-10  W. James MacLean  <wjmaclean@chromium.org>
1325
1326         Reviewed by Kenneth Russell.
1327
1328         [chromium] Enable reuse of RenderSurface for drawing.
1329         https://bugs.webkit.org/show_bug.cgi?id=51928
1330
1331         Modifies RenderSurfaceChromium::prepareContentsTexture to avoid trying to 'reserve' a texture
1332         that is already reserved, should an attempt be made to re-select a previously drawn render surface
1333         in order to continue drawing to it. This use case appears when compositing into an offscreen texture.
1334
1335         Covered by existing test (compositing/geometry/fixed-position.html) when offscreen compositing enabled.
1336
1337         * platform/graphics/chromium/LayerTexture.h:
1338         (WebCore::LayerTexture::isReserved):
1339         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1340         (WebCore::RenderSurfaceChromium::prepareContentsTexture):
1341         * platform/graphics/chromium/TextureManager.cpp:
1342         (WebCore::TextureManager::isProtected):
1343         * platform/graphics/chromium/TextureManager.h:
1344
1345 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1346
1347         Reviewed by Xan Lopez.
1348
1349         [GTK] Port combo box painting to GtkStyleContext
1350         https://bugs.webkit.org/show_bug.cgi?id=51828
1351
1352         Use GtkStyleContext API to paint combo boxes when building with
1353         GTK+ 3.x. Method paintButton() has been factored out and the new
1354         static method renderButton() is used by both paintButton() and
1355         paintMenuList().
1356
1357         No new tests. This should not change functionality.
1358
1359         * platform/gtk/RenderThemeGtk3.cpp:
1360         (WebCore::RenderThemeGtk::adjustRepaintRect):
1361         (WebCore::renderButton):
1362         (WebCore::RenderThemeGtk::paintButton):
1363         (WebCore::getComboBoxMetrics):
1364         (WebCore::RenderThemeGtk::popupInternalPaddingLeft):
1365         (WebCore::RenderThemeGtk::popupInternalPaddingRight):
1366         (WebCore::RenderThemeGtk::popupInternalPaddingTop):
1367         (WebCore::RenderThemeGtk::popupInternalPaddingBottom):
1368         (WebCore::RenderThemeGtk::paintMenuList):
1369
1370 2011-01-10  Evan Martin  <evan@chromium.org>
1371
1372         Reviewed by Tony Chang.
1373
1374         [chromium] simplify complex glyph positioning code
1375         https://bugs.webkit.org/show_bug.cgi?id=52159
1376
1377         Before, we had roughly same code duplicated for RTL and LTR.
1378         Now, use the same code for both directions by being careful about
1379         flipping signs where appropriate.
1380
1381         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
1382         (WebCore::ComplexTextController::shapeGlyphs):
1383         (WebCore::ComplexTextController::setGlyphXPositions):
1384
1385 2011-01-10  Alejandro G. Castro  <alex@igalia.com>
1386
1387         Reviewed by Xan Lopez.
1388
1389         [GTK] Fix gtk2 compilation for master
1390         https://bugs.webkit.org/show_bug.cgi?id=51885
1391
1392         * platform/gtk/GtkVersioning.h: Replaced the 2.24.0 check with
1393         2.23.0 to avoid using the old symbols in the 2.23 releases. Added
1394         support for gdk_pixmap_get_size before the 2.23.4.
1395         * platform/gtk/WidgetRenderingContextGtk2.cpp:
1396         (WebCore::WidgetRenderingContext::WidgetRenderingContext):
1397         Replaced the old gdk_drawable_get_size with gdk_pixmap_get_size.
1398
1399 2011-01-10  Ryosuke Niwa  <rniwa@webkit.org>
1400
1401         Unreviewed; build fix for r75385.
1402
1403         * rendering/mathml/RenderMathMLFraction.cpp:
1404         (WebCore::RenderMathMLFraction::paint):
1405
1406 2011-01-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1407
1408         Unreviewed, rolling out r75341.
1409         http://trac.webkit.org/changeset/75341
1410         https://bugs.webkit.org/show_bug.cgi?id=52157
1411
1412         Regressions on several pixel tests (Requested by jorlow on
1413         #webkit).
1414
1415         * platform/graphics/cg/GraphicsContextCG.cpp:
1416         (WebCore::GraphicsContext::fillPath):
1417
1418 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1419
1420         Reviewed by Martin Robinson.
1421
1422         [GTK] Port check and radio button painting to GtkStyleContext
1423         https://bugs.webkit.org/show_bug.cgi?id=51815
1424
1425         Use GtkStyleContext API to paint check and radio buttons when
1426         building with GTK+ 3.x.
1427
1428         No new tests. This should not change functionality.
1429
1430         * platform/gtk/RenderThemeGtk3.cpp:
1431         (WebCore::RenderThemeGtk::adjustRepaintRect):
1432         (WebCore::setToggleSize):
1433         (WebCore::paintToggle):
1434         (WebCore::RenderThemeGtk::setCheckboxSize):
1435         (WebCore::RenderThemeGtk::paintCheckbox):
1436         (WebCore::RenderThemeGtk::setRadioSize):
1437         (WebCore::RenderThemeGtk::paintRadio):
1438
1439 2011-01-10  François Sausset  <sausset@gmail.com>
1440
1441         Reviewed by Kenneth Rohde Christiansen.
1442
1443         MathML: vertical alignment & bar thickness adjustments of fractions.
1444         https://bugs.webkit.org/show_bug.cgi?id=50018
1445
1446         The fraction bar thickness default value should follow the w3c MathML 3 recommendation:
1447         http://www.w3.org/TR/MathML3/chapter3.html#presm.mfrac
1448         The vertical alignment of the fraction bar should be more accurate, specially with operators (+,=,...).
1449
1450         Test: mathml/presentation/fractions.xhtml
1451
1452         * rendering/mathml/RenderMathMLFraction.cpp:
1453         (WebCore::RenderMathMLFraction::RenderMathMLFraction):
1454         (WebCore::RenderMathMLFraction::updateFromElement):
1455         (WebCore::RenderMathMLFraction::layout):
1456         (WebCore::RenderMathMLFraction::paint):
1457         (WebCore::RenderMathMLFraction::baselinePosition):
1458         * rendering/mathml/RenderMathMLFraction.h:
1459
1460 2011-01-10  Antti Koivisto  <antti@apple.com>
1461
1462         Reviewed by Alexey Proskuryakov.
1463
1464         https://bugs.webkit.org/show_bug.cgi?id=52044
1465         REGRESSION(r74807): No-store is ignored within a document
1466         
1467         Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
1468         This matches a behavior that got lost in r74807.
1469
1470         Test: http/tests/misc/script-no-store.html
1471         (by Alexey Proskuryakov)
1472
1473         * loader/cache/CachedResourceLoader.cpp:
1474         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
1475
1476 2011-01-10  Patrick Gansterer  <paroga@webkit.org>
1477
1478         Reviewed by Laszlo Gombos.
1479
1480         [WIN] Add ProxyServerWin.cpp
1481         https://bugs.webkit.org/show_bug.cgi?id=52031
1482
1483         Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
1484
1485         * CMakeLists.txt:
1486         * CMakeListsWinCE.txt:
1487         * platform/network/win/ProxyServerWin.cpp: Added.
1488         (WebCore::proxyServersForURL):
1489
1490 2011-01-10  Alejandro G. Castro  <alex@igalia.com>
1491
1492         Reviewed by Martin Robinson.
1493
1494         [cairo] Rendering a lot of arcs on top of each other causes time
1495         outs in some tests
1496         https://bugs.webkit.org/show_bug.cgi?id=50869
1497
1498         We avoid the situation where we have to render the same arc
1499         multiple times over itself. Now it renders just one oval and
1500         moves to the end angle.
1501
1502         * platform/graphics/cairo/PathCairo.cpp:
1503         (WebCore::Path::addArc):
1504
1505 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1506
1507         Reviewed by Martin Robinson.
1508
1509         [GTK] Port text input control painting to GtkStyleContext
1510         https://bugs.webkit.org/show_bug.cgi?id=51870
1511
1512         Use GtkStyleContext API to paint text input controls when building
1513         with GTK+ 3.x.
1514
1515         No new tests. This should not change functionality.
1516
1517         * platform/gtk/RenderThemeGtk3.cpp:
1518         (WebCore::RenderThemeGtk::adjustRepaintRect):
1519         (WebCore::RenderThemeGtk::paintTextField):
1520
1521 2011-01-09  Tony Gentilcore  <tonyg@chromium.org>
1522
1523         Reviewed by Alexey Proskuryakov.
1524
1525         Forward declare some headers where possible
1526         https://bugs.webkit.org/show_bug.cgi?id=52133
1527
1528         No new tests because no new functionality.
1529
1530         * css/CSSValue.h:
1531         * dom/BeforeLoadEvent.h:
1532         * dom/Event.cpp:
1533         * dom/Event.h:
1534         * dom/StyledElement.cpp:
1535         * dom/StyledElement.h:
1536         * loader/DocumentLoader.h:
1537         * loader/FrameLoader.h:
1538         * page/Frame.h:
1539         * platform/graphics/GraphicsContext.cpp:
1540         * platform/graphics/GraphicsContext.h:
1541         * platform/graphics/filters/FEBlend.cpp:
1542         * platform/graphics/filters/FEColorMatrix.cpp:
1543         * platform/graphics/filters/FEComponentTransfer.cpp:
1544         * platform/graphics/filters/FEComposite.cpp:
1545         * platform/graphics/filters/FEConvolveMatrix.cpp:
1546         * platform/graphics/filters/FEDiffuseLighting.cpp:
1547         * platform/graphics/filters/FEDisplacementMap.cpp:
1548         * platform/graphics/filters/FEFlood.cpp:
1549         * platform/graphics/filters/FEGaussianBlur.cpp:
1550         * platform/graphics/filters/FEMerge.cpp:
1551         * platform/graphics/filters/FEMorphology.cpp:
1552         * platform/graphics/filters/FEOffset.cpp:
1553         * platform/graphics/filters/FESpecularLighting.cpp:
1554         * platform/graphics/filters/FETile.cpp:
1555         * platform/graphics/filters/FETurbulence.cpp:
1556         * platform/graphics/filters/FilterEffect.cpp:
1557         * platform/graphics/filters/FilterEffect.h:
1558         * platform/graphics/filters/SourceAlpha.cpp:
1559         * platform/graphics/filters/SourceGraphic.cpp:
1560         * svg/SVGElement.cpp:
1561         * svg/SVGElement.h:
1562         * svg/SVGFEBlendElement.cpp:
1563         * svg/SVGFEColorMatrixElement.cpp:
1564         * svg/SVGFEComponentTransferElement.cpp:
1565         * svg/SVGFECompositeElement.cpp:
1566         * svg/SVGFEConvolveMatrixElement.cpp:
1567         * svg/SVGFEConvolveMatrixElement.h:
1568         * svg/SVGFEDiffuseLightingElement.cpp:
1569         * svg/SVGFEDisplacementMapElement.cpp:
1570         * svg/SVGFEGaussianBlurElement.cpp:
1571         * svg/SVGFEImageElement.h:
1572         * svg/SVGFEMergeElement.cpp:
1573         * svg/SVGFEMorphologyElement.cpp:
1574         * svg/SVGFEOffsetElement.cpp:
1575         * svg/SVGFESpecularLightingElement.cpp:
1576         * svg/SVGFETileElement.cpp:
1577         * svg/SVGFETurbulenceElement.h:
1578         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1579         * svg/SVGFilterPrimitiveStandardAttributes.h:
1580         * svg/SVGTextContentElement.cpp:
1581         * svg/graphics/filters/SVGFEImage.cpp:
1582         * svg/graphics/filters/SVGFEImage.h:
1583
1584 2011-01-10  Adam Roben  <aroben@apple.com>
1585
1586         Windows build fix after r75313
1587
1588         * WebCore.vcproj/build-generated-files.sh: Updated for the change in
1589         this script's path.
1590
1591 2011-01-10  Pavel Podivilov  <podivilov@chromium.org>
1592
1593         Reviewed by Pavel Feldman.
1594
1595         Web Inspector: make properties on Array's prototype non-enumerable.
1596         https://bugs.webkit.org/show_bug.cgi?id=51776
1597
1598         * inspector/front-end/utilities.js:
1599         ():
1600
1601 2011-01-10  Yael Aharon  <yael.aharon@nokia.com>
1602
1603         Reviewed by Simon Fraser.
1604
1605         Specificity of negated selectors apparently miscalculated
1606         https://bugs.webkit.org/show_bug.cgi?id=41206
1607
1608         Give negated selectors the specificity of the selector they are negating.
1609         This is the same as the behavior of other browsers.
1610
1611         Test: fast/css/pseudo-not.html
1612
1613         * css/CSSSelector.cpp:
1614         (WebCore::CSSSelector::specificityForOneSelector):
1615
1616 2011-01-10  Adam Roben  <aroben@apple.com>
1617
1618         Windows build fix after r75353
1619
1620         * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
1621         include path.
1622
1623 2011-01-10  John Knottenbelt  <jknotten@chromium.org>
1624
1625         Reviewed by Jeremy Orlow.
1626
1627         [Chromium] Remove non-client-based Geolocation code
1628         https://bugs.webkit.org/show_bug.cgi?id=50921
1629
1630         Code clean up, covered by existing tests.
1631
1632         * WebCore.gyp/WebCore.gyp:
1633         * WebCore.gypi:
1634         * platform/chromium/ChromiumBridge.h:
1635         * platform/chromium/GeolocationServiceChromium.cpp: Removed.
1636         * platform/chromium/GeolocationServiceChromium.h: Removed.
1637
1638 2011-01-10  Ilya Tikhonovsky  <loislo@chromium.org>
1639
1640         Reviewed by Pavel Feldman.
1641
1642         Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
1643         stepIntoStatement => stepInto
1644         stepOutOfFunction => stepOut
1645         stepOverStatement => stepOver
1646
1647         https://bugs.webkit.org/show_bug.cgi?id=52142
1648
1649         * inspector/Inspector.idl:
1650         * inspector/InspectorDebuggerAgent.cpp:
1651         (WebCore::InspectorDebuggerAgent::stepOver):
1652         (WebCore::InspectorDebuggerAgent::stepInto):
1653         (WebCore::InspectorDebuggerAgent::stepOut):
1654         * inspector/InspectorDebuggerAgent.h:
1655         * inspector/front-end/ScriptsPanel.js:
1656         (WebInspector.ScriptsPanel.prototype._stepOverClicked):
1657         (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
1658         (WebInspector.ScriptsPanel.prototype._stepOutClicked):
1659
1660 2011-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1661
1662         Reviewed by Martin Robinson.
1663
1664         [GTK] Port progressbar painting to GtkStyleContext
1665         https://bugs.webkit.org/show_bug.cgi?id=52054
1666
1667         Use GtkStyleContext API to paint progressbars when building with
1668         GTK+ 3.x. Also add support for indeterminate progressbars.
1669
1670         No new tests. This should not change functionality.
1671
1672         * platform/gtk/RenderThemeGtk.cpp:
1673         * platform/gtk/RenderThemeGtk2.cpp:
1674         (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
1675         (WebCore::RenderThemeGtk::animationDurationForProgressBar):
1676         * platform/gtk/RenderThemeGtk3.cpp:
1677         (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
1678         (WebCore::RenderThemeGtk::animationDurationForProgressBar):
1679         (WebCore::RenderThemeGtk::paintProgressBar):
1680
1681 2011-01-10  Andreas Kling  <kling@webkit.org>
1682
1683         Reviewed by Darin Adler.
1684
1685         Remove unused class "Pen" in WebCore/platform/graphics
1686         https://bugs.webkit.org/show_bug.cgi?id=49955
1687
1688         * Android.mk:
1689         * CMakeLists.txt:
1690         * GNUmakefile.am:
1691         * WebCore.gypi:
1692         * WebCore.pro:
1693         * WebCore.vcproj/WebCore.vcproj:
1694         * WebCore.xcodeproj/project.pbxproj:
1695         * platform/graphics/Pen.cpp: Removed.
1696         * platform/graphics/Pen.h: Removed.
1697         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
1698         * platform/graphics/wx/GraphicsContextWx.cpp:
1699         * platform/graphics/wx/PenWx.cpp: Removed.
1700
1701 2011-01-10  Xan Lopez  <xlopez@igalia.com>
1702
1703         Reviewed by Martin Robinson.
1704
1705         [GTK] Create intermediate libWebCore library
1706         https://bugs.webkit.org/show_bug.cgi?id=52116
1707
1708         Create intermediate libWebCore.la to avoid overflowing the linker
1709         in the final link stage.
1710
1711         * GNUmakefile.am: define the new library.
1712
1713 2011-01-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1714
1715         Unreviewed, rolling out r75337.
1716         http://trac.webkit.org/changeset/75337
1717         https://bugs.webkit.org/show_bug.cgi?id=52137
1718
1719         It made fast/dom/navigator-detached-no-crash.html crash
1720         (Requested by Ossy on #webkit).
1721
1722         * platform/qt/CookieJarQt.cpp:
1723         (WebCore::cookiesEnabled):
1724
1725 2011-01-09  Mark Rowe  <mrowe@apple.com>
1726
1727         Fix the build.
1728
1729         * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
1730         once more.
1731
1732 2011-01-09  Dan Bernstein  <mitz@apple.com>
1733
1734         Reviewed by Sam Weinig.
1735
1736         <rdar://problem/8765555> WebKit2: Search field focus ring is missing
1737
1738         Provide a focus ring visible rect to AppKit.
1739
1740         * platform/mac/ThemeMac.mm:
1741         (-[WebCoreFlippedView _focusRingVisibleRect]):
1742         (-[WebCoreFlippedView _focusRingClipAncestor]):
1743
1744 2011-01-09  Dirk Schulze  <krit@webkit.org>
1745
1746         Reviewed by Rob Buis.
1747
1748         Move MathML renderer to rendering/mathml
1749         https://bugs.webkit.org/show_bug.cgi?id=52131
1750
1751         Move all renderer of MathML to WebCore/rendering/mathml
1752
1753         No change of functionality, no new tests added.
1754
1755         * CMakeLists.txt:
1756         * GNUmakefile.am:
1757         * WebCore.gypi:
1758         * WebCore.pro:
1759         * WebCore.vcproj/WebCore.vcproj:
1760         * WebCore.xcodeproj/project.pbxproj:
1761         * mathml/RenderMathMLBlock.cpp: Removed.
1762         * mathml/RenderMathMLBlock.h: Removed.
1763         * mathml/RenderMathMLFenced.cpp: Removed.
1764         * mathml/RenderMathMLFenced.h: Removed.
1765         * mathml/RenderMathMLFraction.cpp: Removed.
1766         * mathml/RenderMathMLFraction.h: Removed.
1767         * mathml/RenderMathMLMath.cpp: Removed.
1768         * mathml/RenderMathMLMath.h: Removed.
1769         * mathml/RenderMathMLOperator.cpp: Removed.
1770         * mathml/RenderMathMLOperator.h: Removed.
1771         * mathml/RenderMathMLRoot.cpp: Removed.
1772         * mathml/RenderMathMLRoot.h: Removed.
1773         * mathml/RenderMathMLRow.cpp: Removed.
1774         * mathml/RenderMathMLRow.h: Removed.
1775         * mathml/RenderMathMLSquareRoot.cpp: Removed.
1776         * mathml/RenderMathMLSquareRoot.h: Removed.
1777         * mathml/RenderMathMLSubSup.cpp: Removed.
1778         * mathml/RenderMathMLSubSup.h: Removed.
1779         * mathml/RenderMathMLUnderOver.cpp: Removed.
1780         * mathml/RenderMathMLUnderOver.h: Removed.
1781         * rendering/mathml: Added.
1782         * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
1783         * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
1784         * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
1785         * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
1786         * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
1787         * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
1788         * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
1789         * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
1790         * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
1791         * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
1792         * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
1793         * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
1794         * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
1795         * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
1796         * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
1797         * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
1798         * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
1799         * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
1800         * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
1801         * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
1802
1803 2011-01-08  Simon Fraser  <simon.fraser@apple.com>
1804
1805         Reviewed by Alexey Proskuryakov.
1806
1807         HTMLStyleElement.disabled doesn't work (affects jQuery)
1808         https://bugs.webkit.org/show_bug.cgi?id=25287
1809         
1810         Fix the disabled property of a HTMLStyleElement to reflect,
1811         and set the disabled state of its style sheet, as required
1812         by DOM1 etc.
1813
1814         Based on initial patch by Tarun Nainani.
1815
1816         Test: fast/html/disable-style-element.html
1817
1818         * dom/StyleElement.h:
1819         (WebCore::StyleElement::sheet): Make const.
1820         
1821         * html/HTMLStyleElement.h:
1822         * html/HTMLStyleElement.idl:
1823         * html/HTMLStyleElement.cpp:
1824         (WebCore::HTMLStyleElement::disabled): 
1825         (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
1826         call through to the sheet (if any).
1827
1828 2011-01-09  Dirk Schulze  <krit@webkit.org>
1829
1830         Reviewed by Nikolas Zimmermann.
1831
1832         Rename RenderForeignObject to RenderSVGForeignObject
1833         https://bugs.webkit.org/show_bug.cgi?id=52129
1834
1835         Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
1836
1837         No change of functionality, no new tests.
1838
1839         * Android.mk:
1840         * CMakeLists.txt:
1841         * GNUmakefile.am:
1842         * WebCore.gypi:
1843         * WebCore.pro:
1844         * WebCore.xcodeproj/project.pbxproj:
1845         * rendering/RenderingAllInOne.cpp:
1846         * rendering/svg/RenderForeignObject.cpp: Removed.
1847         * rendering/svg/RenderForeignObject.h: Removed.
1848         * rendering/svg/RenderSVGAllInOne.cpp:
1849         * rendering/svg/RenderSVGBlock.cpp:
1850         (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
1851         * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
1852         (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
1853         (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
1854         (WebCore::RenderSVGForeignObject::paint):
1855         (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
1856         (WebCore::RenderSVGForeignObject::computeRectForRepaint):
1857         (WebCore::RenderSVGForeignObject::localToParentTransform):
1858         (WebCore::RenderSVGForeignObject::computeLogicalWidth):
1859         (WebCore::RenderSVGForeignObject::computeLogicalHeight):
1860         (WebCore::RenderSVGForeignObject::layout):
1861         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
1862         (WebCore::RenderSVGForeignObject::nodeAtPoint):
1863         (WebCore::RenderSVGForeignObject::mapLocalToContainer):
1864         * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
1865         (WebCore::RenderSVGForeignObject::renderName):
1866         * svg/SVGForeignObjectElement.cpp:
1867         (WebCore::SVGForeignObjectElement::createRenderer):
1868
1869 2011-01-09  Dirk Schulze  <krit@webkit.org>
1870
1871         Reviewed by Nikolas Zimmermann.
1872
1873         Move all SVG renderer to WebCore/rendering/svg
1874         https://bugs.webkit.org/show_bug.cgi?id=52087
1875
1876         No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
1877
1878         * Android.mk:
1879         * CMakeLists.txt:
1880         * GNUmakefile.am:
1881         * WebCore.gypi:
1882         * WebCore.pro:
1883         * WebCore.vjproj/project.vjproj:
1884         * WebCore.xcodeproj/project.pbxproj:
1885         * rendering/RenderForeignObject.cpp: Removed.
1886         * rendering/RenderForeignObject.h: Removed.
1887         * rendering/RenderSVGAllInOne.cpp: Removed.
1888         * rendering/RenderSVGBlock.cpp: Removed.
1889         * rendering/RenderSVGBlock.h: Removed.
1890         * rendering/RenderSVGContainer.cpp: Removed.
1891         * rendering/RenderSVGContainer.h: Removed.
1892         * rendering/RenderSVGGradientStop.cpp: Removed.
1893         * rendering/RenderSVGGradientStop.h: Removed.
1894         * rendering/RenderSVGHiddenContainer.cpp: Removed.
1895         * rendering/RenderSVGHiddenContainer.h: Removed.
1896         * rendering/RenderSVGImage.cpp: Removed.
1897         * rendering/RenderSVGImage.h: Removed.
1898         * rendering/RenderSVGModelObject.cpp: Removed.
1899         * rendering/RenderSVGModelObject.h: Removed.
1900         * rendering/RenderSVGResource.cpp: Removed.
1901         * rendering/RenderSVGResource.h: Removed.
1902         * rendering/RenderSVGResourceClipper.cpp: Removed.
1903         * rendering/RenderSVGResourceClipper.h: Removed.
1904         * rendering/RenderSVGResourceContainer.cpp: Removed.
1905         * rendering/RenderSVGResourceContainer.h: Removed.
1906         * rendering/RenderSVGResourceFilter.cpp: Removed.
1907         * rendering/RenderSVGResourceFilter.h: Removed.
1908         * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
1909         * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
1910         * rendering/RenderSVGResourceGradient.cpp: Removed.
1911         * rendering/RenderSVGResourceGradient.h: Removed.
1912         * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
1913         * rendering/RenderSVGResourceLinearGradient.h: Removed.
1914         * rendering/RenderSVGResourceMarker.cpp: Removed.
1915         * rendering/RenderSVGResourceMarker.h: Removed.
1916         * rendering/RenderSVGResourceMasker.cpp: Removed.
1917         * rendering/RenderSVGResourceMasker.h: Removed.
1918         * rendering/RenderSVGResourcePattern.cpp: Removed.
1919         * rendering/RenderSVGResourcePattern.h: Removed.
1920         * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
1921         * rendering/RenderSVGResourceRadialGradient.h: Removed.
1922         * rendering/RenderSVGResourceSolidColor.cpp: Removed.
1923         * rendering/RenderSVGResourceSolidColor.h: Removed.
1924         * rendering/RenderSVGRoot.cpp: Removed.
1925         * rendering/RenderSVGRoot.h: Removed.
1926         * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
1927         * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
1928         * rendering/RenderSVGTransformableContainer.cpp: Removed.
1929         * rendering/RenderSVGTransformableContainer.h: Removed.
1930         * rendering/RenderSVGViewportContainer.cpp: Removed.
1931         * rendering/RenderSVGViewportContainer.h: Removed.
1932         * rendering/SVGImageBufferTools.cpp: Removed.
1933         * rendering/SVGImageBufferTools.h: Removed.
1934         * rendering/SVGMarkerData.h: Removed.
1935         * rendering/SVGMarkerLayoutInfo.cpp: Removed.
1936         * rendering/SVGMarkerLayoutInfo.h: Removed.
1937         * rendering/SVGRenderSupport.cpp: Removed.
1938         * rendering/SVGRenderSupport.h: Removed.
1939         * rendering/SVGRenderTreeAsText.cpp: Removed.
1940         * rendering/SVGRenderTreeAsText.h: Removed.
1941         * rendering/SVGResources.cpp: Removed.
1942         * rendering/SVGResources.h: Removed.
1943         * rendering/SVGResourcesCache.cpp: Removed.
1944         * rendering/SVGResourcesCache.h: Removed.
1945         * rendering/SVGResourcesCycleSolver.cpp: Removed.
1946         * rendering/SVGResourcesCycleSolver.h: Removed.
1947         * rendering/SVGShadowTreeElements.cpp: Removed.
1948         * rendering/SVGShadowTreeElements.h: Removed.
1949         * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
1950         * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
1951         * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
1952         * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
1953         * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
1954         * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
1955         * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
1956         * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
1957         * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
1958         * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
1959         * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
1960         * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
1961         * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
1962         * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
1963         * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
1964         * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
1965         * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
1966         * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
1967         * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
1968         * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
1969         * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
1970         * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
1971         * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
1972         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
1973         * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
1974         * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
1975         * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
1976         * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
1977         * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
1978         * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
1979         * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
1980         * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
1981         * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
1982         * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
1983         * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
1984         * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
1985         * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
1986         * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
1987         * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
1988         * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
1989         * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
1990         * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
1991         * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
1992         * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
1993         * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
1994         * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
1995         * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
1996         * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
1997         * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
1998         * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
1999         * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
2000         * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
2001         * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
2002         * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
2003         * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
2004         * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
2005         * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
2006         * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
2007         * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
2008         * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
2009         * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
2010         * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
2011         * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
2012         * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
2013
2014 2011-01-09  Xianzhu Wang  <phnixwxz@gmail.com>
2015
2016         Reviewed by Darin Fisher.
2017
2018         https://bugs.webkit.org/show_bug.cgi?id=41441
2019         createWindow method should only do window-creating without URL navigation.
2020         Let client APIs know which URL a new window will start with
2021
2022         * loader/FrameLoader.cpp:
2023         (WebCore::createWindow):
2024         * page/ContextMenuController.cpp:
2025         (WebCore::openNewWindow):
2026         * page/DOMWindow.cpp:
2027         (WebCore::DOMWindow::createWindow):
2028
2029 2011-01-09  Dirk Schulze  <krit@webkit.org>
2030
2031         Unreviewed sort of Xcode project file.
2032
2033         * WebCore.xcodeproj/project.pbxproj:
2034
2035 2011-01-09  Amruth Raj  <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
2036
2037         Reviewed by Martin Robinson.
2038
2039         Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
2040         https://bugs.webkit.org/show_bug.cgi?id=48511
2041
2042         * platform/FileSystem.h: 
2043         * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
2044         (WebCore::applicationDirectoryPath):
2045
2046 2011-01-08  Martin Robinson  <mrobinson@igalia.com>
2047
2048         GTK+ Build fix. Add missing headers to the source list, fixing make dist.
2049
2050         No new tests. This is only a build change.
2051
2052         * GNUmakefile.am: Add missing headers to the source list.
2053
2054 2011-01-08 Amruth Raj  <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
2055
2056         Reviewed by Martin Robinson.
2057
2058         [GTK] WebKit2 GNUmakefile is out of date from trunk
2059         https://bugs.webkit.org/show_bug.cgi?id=51883
2060
2061         Added stubs for WebKit2 compilation.
2062
2063         * platform/gtk/ContextMenuGtk.cpp:
2064         (WebCore::contextMenuItemVector):
2065         * platform/gtk/ContextMenuItemGtk.cpp:
2066         (WebCore::ContextMenuItem::ContextMenuItem):
2067         (WebCore::ContextMenuItem::checked):
2068         (WebCore::ContextMenuItem::enabled):
2069         * platform/network/soup/AuthenticationChallenge.h:
2070         (WebCore::AuthenticationChallenge::authenticationClient):
2071
2072 2011-01-08  Helder Correia  <helder@sencha.com>
2073
2074         Reviewed by Simon Fraser.
2075
2076         Shadow is not drawn when filling a path with a gradient
2077         https://bugs.webkit.org/show_bug.cgi?id=51982
2078
2079         This happens in CG and is related to bug 51869, this time to be fixed
2080         in GraphicsContext::fillPath(const Path& path). We need to draw the
2081         gradient clipped to the path on a CGLayer first, and then draw the
2082         layer on the GraphicsContext.
2083
2084         Test: fast/canvas/canvas-fillPath-gradient-shadow.html
2085
2086         * platform/graphics/cg/GraphicsContextCG.cpp:
2087         (WebCore::GraphicsContext::fillPath):
2088
2089 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
2090
2091         Reviewed by Kenneth Rohde Christiansen.
2092
2093         [Qt] PasteboardQt.cpp has coding-style errors
2094         https://bugs.webkit.org/show_bug.cgi?id=39771
2095
2096         Update the code to follow the coding style.
2097
2098         * platform/qt/PasteboardQt.cpp:
2099         (WebCore::Pasteboard::writeSelection):
2100         (WebCore::Pasteboard::plainText):
2101         (WebCore::Pasteboard::writePlainText):
2102         (WebCore::Pasteboard::writeURL):
2103
2104 2011-01-08  Tony Gentilcore  <tonyg@chromium.org>
2105
2106         Reviewed by Eric Seidel.
2107
2108         HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
2109         https://bugs.webkit.org/show_bug.cgi?id=48593
2110
2111         XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
2112         comments.
2113
2114         Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
2115
2116         * dom/StyleElement.cpp:
2117         (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
2118         (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
2119
2120 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
2121
2122         Reviewed by Kenneth Rohde Christiansen.
2123
2124         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
2125         https://bugs.webkit.org/show_bug.cgi?id=52081
2126
2127         Test for the availability of cookie jar to return if cookies are enabled or not. The network access
2128         manager always exist, not the cookie jar.
2129
2130         * platform/qt/CookieJarQt.cpp:
2131         (WebCore::cookiesEnabled):
2132
2133 2011-01-08  Charlie Reis  <creis@chromium.org>
2134
2135         Reviewed by Mihai Parparita.
2136
2137         Canceled frame loads can corrupt back forward list
2138         https://bugs.webkit.org/show_bug.cgi?id=50254
2139
2140         Avoids changing m_currentItem until the navigation commits.
2141         Also resets top-level history items if a subframe navigation is canceled.
2142
2143         * WebCore/loader/FrameLoader.cpp:
2144         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2145         * WebCore/loader/HistoryController.cpp:
2146         * WebCore/loader/HistoryController.h:
2147
2148 2011-01-08  Chang Shu  <chang.shu@nokia.com>
2149
2150         Reviewed by Kenneth Rohde Christiansen.
2151
2152         Support createTouchList with Touch list for test automation.
2153         Implemented JS/V8 custom functions for createTouchList.
2154         https://bugs.webkit.org/show_bug.cgi?id=51196
2155
2156         * bindings/js/JSDocumentCustom.cpp:
2157         (WebCore::JSDocument::createTouchList):
2158         * bindings/v8/custom/V8DocumentCustom.cpp:
2159         (WebCore::V8Document::createTouchListCallback):
2160         * dom/Document.idl:
2161         * dom/TouchEvent.cpp:
2162         (WebCore::TouchEvent::initTouchEvent):
2163
2164 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
2165
2166         Reviewed by Kenneth Rohde Christiansen.
2167
2168         [Qt] CookieJarQt.cpp has coding-style errors
2169         https://bugs.webkit.org/show_bug.cgi?id=39778
2170
2171         Improve the coding style of CookieJarQt.cpp.
2172
2173         * platform/qt/CookieJarQt.cpp:
2174         (WebCore::networkAccessManager):
2175         (WebCore::cookiesEnabled):
2176
2177 2011-01-08  Jeff Miller  <jeffm@apple.com>
2178
2179         Rubber-stamped by Dan Bernstein.
2180
2181         Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
2182         https://bugs.webkit.org/show_bug.cgi?id=52114
2183
2184         * WebCore.vcproj/QTMovieWin.vcproj:
2185         Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
2186
2187 2011-01-08  Dirk Schulze  <krit@webkit.org>
2188
2189         Reviewed by Mihai Parparita.
2190
2191         SVG rendering clean up according to the webkit style rules 2
2192         https://bugs.webkit.org/show_bug.cgi?id=52112
2193
2194         Modified the style of the license of all files in WebCore/rendering/svg to match the style
2195         in WebCore/svg. Cleaned up the code according to the webkit style rules.
2196
2197         No change of functionality. No test added.
2198
2199         * rendering/svg/RenderSVGInline.cpp:
2200         * rendering/svg/RenderSVGInline.h:
2201         * rendering/svg/RenderSVGInlineText.cpp:
2202         * rendering/svg/RenderSVGInlineText.h:
2203         * rendering/svg/RenderSVGPath.cpp:
2204         * rendering/svg/RenderSVGPath.h:
2205         * rendering/svg/RenderSVGTSpan.cpp:
2206         * rendering/svg/RenderSVGTSpan.h:
2207         * rendering/svg/RenderSVGText.cpp:
2208         * rendering/svg/RenderSVGText.h:
2209         * rendering/svg/RenderSVGTextPath.cpp:
2210         * rendering/svg/RenderSVGTextPath.h:
2211         * rendering/svg/SVGInlineFlowBox.cpp:
2212         * rendering/svg/SVGInlineFlowBox.h:
2213         * rendering/svg/SVGInlineTextBox.cpp:
2214         * rendering/svg/SVGInlineTextBox.h:
2215         * rendering/svg/SVGRootInlineBox.cpp:
2216         * rendering/svg/SVGRootInlineBox.h:
2217         * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
2218         (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
2219         * rendering/svg/SVGTextQuery.cpp:
2220         * rendering/svg/SVGTextQuery.h:
2221
2222 2011-01-08  Dirk Schulze  <krit@webkit.org>
2223
2224         Reviewed by Mihai Parparita.
2225
2226         SVG rendering clean up according to the webkit style rules
2227         https://bugs.webkit.org/show_bug.cgi?id=52107
2228
2229         Cleanup of the SVG rendering code according to the webbkit style rules.
2230         Changed style of licensing texts to match the style in WebCore/svg, no change
2231         of the licensing text itself.
2232
2233         * rendering/RenderForeignObject.cpp:
2234         * rendering/RenderForeignObject.h:
2235         * rendering/RenderSVGBlock.cpp:
2236         * rendering/RenderSVGBlock.h:
2237         * rendering/RenderSVGContainer.cpp:
2238         * rendering/RenderSVGContainer.h:
2239         * rendering/RenderSVGGradientStop.cpp:
2240         * rendering/RenderSVGGradientStop.h:
2241         * rendering/RenderSVGHiddenContainer.cpp:
2242         * rendering/RenderSVGHiddenContainer.h:
2243         (WebCore::RenderSVGHiddenContainer::renderName):
2244         (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
2245         (WebCore::RenderSVGHiddenContainer::requiresLayer):
2246         (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
2247         * rendering/RenderSVGImage.cpp:
2248         * rendering/RenderSVGImage.h:
2249         * rendering/RenderSVGModelObject.h:
2250         * rendering/RenderSVGResource.cpp:
2251         * rendering/RenderSVGResource.h:
2252         * rendering/RenderSVGResourceClipper.cpp:
2253         * rendering/RenderSVGResourceClipper.h:
2254         * rendering/RenderSVGResourceContainer.cpp:
2255         * rendering/RenderSVGResourceContainer.h:
2256         * rendering/RenderSVGResourceFilter.cpp:
2257         * rendering/RenderSVGResourceFilter.h:
2258         * rendering/RenderSVGResourceFilterPrimitive.cpp:
2259         * rendering/RenderSVGResourceFilterPrimitive.h:
2260         * rendering/RenderSVGResourceGradient.cpp:
2261         * rendering/RenderSVGResourceGradient.h:
2262         * rendering/RenderSVGResourceLinearGradient.cpp:
2263         * rendering/RenderSVGResourceLinearGradient.h:
2264         * rendering/RenderSVGResourceMarker.cpp:
2265         * rendering/RenderSVGResourceMarker.h:
2266         * rendering/RenderSVGResourceMasker.cpp:
2267         * rendering/RenderSVGResourceMasker.h:
2268         * rendering/RenderSVGResourcePattern.cpp:
2269         * rendering/RenderSVGResourcePattern.h:
2270         * rendering/RenderSVGResourceRadialGradient.cpp:
2271         * rendering/RenderSVGResourceRadialGradient.h:
2272         * rendering/RenderSVGResourceSolidColor.cpp:
2273         * rendering/RenderSVGResourceSolidColor.h:
2274         * rendering/RenderSVGRoot.cpp:
2275         (WebCore::RenderSVGRoot::nodeAtPoint):
2276         * rendering/RenderSVGRoot.h:
2277         * rendering/RenderSVGShadowTreeRootContainer.cpp:
2278         * rendering/RenderSVGShadowTreeRootContainer.h:
2279         * rendering/RenderSVGTransformableContainer.cpp:
2280         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
2281         * rendering/RenderSVGTransformableContainer.h:
2282         (WebCore::RenderSVGTransformableContainer::localToParentTransform):
2283         (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
2284         (WebCore::RenderSVGTransformableContainer::localTransform):
2285         * rendering/RenderSVGViewportContainer.cpp:
2286         * rendering/RenderSVGViewportContainer.h:
2287         * rendering/SVGImageBufferTools.cpp:
2288         * rendering/SVGImageBufferTools.h:
2289         * rendering/SVGMarkerData.h:
2290         * rendering/SVGMarkerLayoutInfo.cpp:
2291         * rendering/SVGMarkerLayoutInfo.h:
2292         * rendering/SVGRenderSupport.cpp:
2293         * rendering/SVGRenderSupport.h:
2294         * rendering/SVGRenderTreeAsText.cpp:
2295         (WebCore::operator<<):
2296         * rendering/SVGRenderTreeAsText.h:
2297         * rendering/SVGResources.cpp:
2298         * rendering/SVGResources.h:
2299         * rendering/SVGResourcesCache.cpp:
2300         * rendering/SVGResourcesCache.h:
2301         * rendering/SVGResourcesCycleSolver.cpp:
2302         * rendering/SVGResourcesCycleSolver.h:
2303         * rendering/SVGShadowTreeElements.cpp:
2304         * rendering/SVGShadowTreeElements.h:
2305
2306 2011-01-07  Adam Barth  <abarth@webkit.org>
2307
2308         Rubber-stamped by Eric Seidel.
2309
2310         Move WebCore to Source
2311         https://bugs.webkit.org/show_bug.cgi?id=52050
2312
2313         Update project files to understand WebCore's new location.  I suspect
2314         there will be some follow-up patches after we land this patch.
2315
2316         * Android.derived.jscbindings.mk:
2317         * Android.jscbindings.mk:
2318         * Android.v8bindings.mk:
2319         * GNUmakefile.am:
2320         * WebCore.gyp/WebCore.gyp:
2321         * WebCore.pri:
2322         * WebCore.pro:
2323         * WebCore.vcproj/WebCore.vcproj:
2324         * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
2325         * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
2326
2327 2011-01-07  Justin Garcia  <justin.garcia@apple.com>
2328
2329         Reviewed by Dan Bernstein.
2330
2331         https://bugs.webkit.org/show_bug.cgi?id=51851
2332         Implement RenderSVGInlineText::localCaretRect()
2333
2334         * rendering/svg/RenderSVGInlineText.cpp:
2335         (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
2336
2337 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
2338
2339         Unreviewed; Added the missing null pointer check for r75293.
2340
2341         * dom/Document.cpp:
2342         (WebCore::Document::adoptNode):
2343
2344 2011-01-07  Stephanie Lewis  <slewis@apple.com>
2345
2346         Reviewed by Geoff Garen.
2347
2348          <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
2349         https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
2350         
2351         Add a sampler for printing off process memory statistics.
2352         Export file mode.
2353
2354         * WebCore.exp.in:
2355
2356 2011-01-06  Ryosuke Niwa  <rniwa@webkit.org>
2357
2358         Reviewed by Adam Barth.
2359
2360         onbeforeunload is broken for framesets
2361         https://bugs.webkit.org/show_bug.cgi?id=19418
2362
2363         Added beforeunload event support for sub frames. WebKit's implementation tries to match
2364         that of Internet Explorer as much as possible. beforeunload event is fired for each and
2365         every descendent of a frame that is about to navigate.
2366
2367         When a value other than null is returned by a beforeunload handler, a confirmation dialog
2368         is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
2369         for main frames.
2370
2371         In addition, navigation is forbidden while beforeunload handlers are being called.
2372         Setting values to location.href, location.reload, and other means of navigations are thus
2373         ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
2374
2375         Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
2376         NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
2377
2378         Tests: fast/events/before-unload-adopt-subframe-to-outside.html
2379                fast/events/before-unload-adopt-within-subframes.html
2380                fast/events/before-unload-forbidden-navigation.html
2381                fast/events/before-unload-in-multiple-subframes.html
2382                fast/events/before-unload-in-subframe.html
2383                fast/events/before-unload-javascript-navigation.html
2384                fast/events/before-unload-remove-and-add-subframe.html
2385                fact/events/before-unload-remove-itself.html
2386                fast/events/before-unload-with-subframes.html
2387
2388        * loader/FrameLoader.cpp:
2389        (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
2390        descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
2391        (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
2392        chrome's runBeforeUnloadConfirmPanel as needed.
2393        (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
2394        * loader/FrameLoader.h:
2395        * loader/NavigationScheduler.cpp:
2396        (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
2397        NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
2398        (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
2399        (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
2400        (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
2401        (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
2402        * loader/NavigationScheduler.h:
2403        (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
2404        (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
2405        when called on the last instance of NavigationDisablerForBeforeUnload.
2406        (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
2407        of NavigationDisablerForBeforeUnload left on the stack.
2408
2409 2011-01-07  Martin Robinson  <mrobinson@igalia.com>
2410
2411         Build fix for GTK+.
2412
2413         * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
2414         * rendering/RenderFullScreen.cpp:
2415         (RenderFullScreen::setAnimating): Guard the call to contentChanged
2416         with ENABLED(ACCELERATED_COMPOSITING).
2417
2418 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
2419
2420         Unreviewed; speculative fix for Windows debug build.
2421
2422         * bindings/js/JSBindingsAllInOne.cpp:
2423
2424 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
2425
2426         Reviewed by Ojan Vafai.
2427
2428         Adopting an iframe to a child frame results in stack overflow
2429         https://bugs.webkit.org/show_bug.cgi?id=52018
2430
2431         Throws an exception when a document adopts an iframe that is an ancestor
2432         of the document in the frame hierarchy. New behavior matches that of Firefox.
2433
2434         Test: fast/html/adopt-parent-frame.html
2435
2436         * dom/Document.cpp:
2437         (WebCore::Document::adoptNode):
2438
2439 2011-01-07  Mihai Parparita  <mihaip@chromium.org>
2440
2441         Reviewed by Darin Fisher.
2442
2443         [Chromium] Scrollbar code cleanup
2444         https://bugs.webkit.org/show_bug.cgi?id=52073
2445
2446         Scrollbar code cleanup:
2447         - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
2448           ScrollbarThemeChromiumMac.{mm|h}
2449         - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
2450           WebThemeEngine is permanent
2451         - Fix typo in Linux scrollbar enum name
2452
2453         No new tests (compiles).
2454
2455         * WebCore.gypi:
2456         * platform/chromium/ChromiumBridge.h:
2457         * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
2458         (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
2459         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2460         (WebCore::scrollbarStateToThemeState):
2461         (WebCore::ScrollbarThemeChromiumMac::paint):
2462
2463 2011-01-07  Jer Noble  <jer.noble@apple.com>
2464
2465         GTK Linux build fix: isDocumentRunningFullScreenAnimation should
2466         be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
2467
2468         * page/FrameView.cpp:
2469
2470 2011-01-07  Rafael Weinstein  <rafaelw@chromium.org>
2471
2472         Reviewed by Eric Seidel.
2473
2474         Cleanup: Fold shadowParentNode into shadowHost
2475         https://bugs.webkit.org/show_bug.cgi?id=51059
2476
2477         Replaces all uses of shadowParentNode.
2478
2479         No new tests because no behavior has changed.
2480
2481         * css/CSSStyleSelector.cpp:
2482         (WebCore::CSSStyleSelector::initForStyleResolve):
2483         * dom/Node.cpp:
2484         (WebCore::Node::shadowHost):
2485         (WebCore::Node::shadowAncestorNode):
2486         (WebCore::eventTargetRespectingSVGTargetRules):
2487         (WebCore::Node::getEventAncestors):
2488         * dom/Node.h:
2489         * editing/Editor.cpp:
2490         (WebCore::Editor::findString):
2491         * page/DragController.cpp:
2492         (WebCore::asFileInput):
2493         * page/EventHandler.cpp:
2494         (WebCore::EventHandler::handleMousePressEvent):
2495         (WebCore::instanceAssociatedWithShadowTreeElement):
2496         (WebCore::EventHandler::dispatchMouseEvent):
2497         * rendering/RenderBlock.cpp:
2498         (WebCore::RenderBlock::hasLineIfEmpty):
2499         * rendering/RenderSVGShadowTreeRootContainer.cpp:
2500         (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
2501         * svg/SVGStyledElement.cpp:
2502         (WebCore::SVGStyledElement::title):
2503
2504 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2505
2506         Unreviewed.
2507
2508         I mistakenly included a Windows only file in a
2509         cross platform file. 
2510
2511         * platform/graphics/ca/GraphicsLayerCA.cpp:
2512
2513 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2514
2515         Unreviewed.
2516
2517         Get rid of include of <QuartzCore/QuartzCore.h>
2518
2519         * platform/graphics/ca/GraphicsLayerCA.cpp:
2520
2521 2011-01-07  Jer Noble  <jer.noble@apple.com>
2522
2523         Further build fixes.  Add a ENABLE(FULLSCREEN_API) guard around
2524         the implementation of requiresCompositingfForFullScreen.
2525
2526         * rendering/RenderLayerCompositor.cpp:
2527         (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
2528
2529 2011-01-07  Jer Noble  <jer.noble@apple.com>
2530
2531         No review, build fix only.  Removed parameter who was causing
2532         a warning in Release builds.
2533
2534         * dom/Document.cpp:
2535         (WebCore::Document::webkitDidExitFullScreenForElement):
2536
2537 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2538
2539         Unreviewed.
2540
2541         Use new wkCACFLayerGetContextUserData function
2542
2543         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2544
2545 2011-01-07  James Robinson  <jamesr@chromium.org>
2546
2547         Fix compile bustage due to bad merge in 75276.
2548
2549         * page/animation/AnimationController.cpp:
2550         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2551
2552 2010-12-17  Jer Noble  <jer@kokode.apple.com>
2553
2554         Reviewed by Simon Fraser.
2555
2556         Implement WebKit Full Screen support.
2557         https://bugs.webkit.org/show_bug.cgi?id=49481
2558         rdar://problem/8247444
2559
2560         Mark for export all those WebCore functions needed by WebFullscreenController.
2561
2562         * WebCore.exp.in:
2563
2564 2010-12-17  Jer Noble  <jer@kokode.apple.com>
2565
2566         Reviewed by Simon Fraser.
2567
2568         Implement WebKit Full Screen support.
2569         https://bugs.webkit.org/show_bug.cgi?id=49481
2570         rdar://problem/8247444
2571         
2572         screenRect is useful for more than just HTMLMediaElements.  Promote it into
2573         Element.
2574
2575         * dom/Element.cpp: Moved into Element from HTMLMediaElement.
2576         * dom/Element.h: Ditto.
2577         * dom/Node.cpp:
2578         * html/HTMLMediaElement.cpp: Moved screenRect into Element.
2579         * html/HTMLMediaElement.h: Ditto.
2580         * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
2581
2582 2010-12-17  Jer Noble  <jer@kokode.apple.com>
2583
2584         Reviewed by Simon Fraser.
2585
2586         Implement WebKit Full Screen support.
2587         https://bugs.webkit.org/show_bug.cgi?id=49481
2588         rdar://problem/8247444
2589
2590         The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
2591         be rendered outside its original Frame. Because of this, there are a few areas of the
2592         rendering code which need to be special cased: RenderFullScreen layers should not be clipped
2593         to the viewport, as they will almost always be rendering outside the viewport area;
2594         RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
2595         the client will likely want to reparent the platformLayer into their own fullscreen platform
2596         window; the FrameView must update the RenderFullScreen graphics layer tree separately from
2597         the root layer, as the two trees are disconnected.
2598
2599         * page/FrameView.cpp:
2600         (WebCore::FrameView::updateCompositingLayers):  Special treatment for fullscreen renderer.
2601         (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
2602         (WebCore::FrameView::paintContents): Ditto.
2603         * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
2604         * rendering/RenderLayer.cpp: 
2605         (WebCore::RenderLayer::contentChanged): Add support for above.
2606         * rendering/RenderLayerBacking.cpp:
2607         (WebCore::layerOrAncestorIsFullScreen): New function.
2608         (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
2609         * rendering/RenderLayerCompositor.cpp:
2610         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
2611         (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
2612         (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
2613         * rendering/RenderLayerCompositor.h:
2614
2615 2010-12-17  Jer Noble  <jer@kokode.apple.com>
2616
2617         Reviewed by Simon Fraser.
2618
2619         Implemented non-accelerated fullscreen support.  The Document will now vend a RenderFullScreen object for clients to
2620         use to relocate the fullscreen element subtree.
2621
2622         https://bugs.webkit.org/show_bug.cgi?id=49481
2623         rdar://problem/8247444
2624
2625         * css/CSSStyleSelector.cpp:
2626         (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
2627         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
2628         * dom/Document.cpp:
2629         (WebCore::Document::Document): Initialize m_fullScreenRenderer.
2630         (WebCore::Document::detach): Call setFullScreenRenderer(0).
2631         (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
2632         (WebCore::Document::webkitWillEnterFullScreenForElement):  Detach the fullscreen element to cause
2633             a new RenderFullScreen renderer to be created with the new fullscreen element.
2634         (WebCore::Document::webkitDidEnterFullScreenForElement):  Notify clients of a fullscreen change
2635             here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
2636             to webkitfullscreenchange events.
2637         (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
2638         (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
2639         (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
2640         (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
2641             size; this keeps clients from having to access the renderer's style directly.
2642         (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
2643         * dom/Document.h:
2644         (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
2645         (WebCore::Document::fullScreenRenderer): Accessor.
2646         * dom/Document.idl:
2647         * dom/Node.cpp:
2648         (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
2649             object to insert between the fullscreen element and its parent.
2650         * page/ChromeClient.h:
2651         (WebCore::ChromeClient::fullScreenRendererChanged): Added.
2652         * rendering/MediaControlElements.cpp:
2653         (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
2654
2655 2010-12-17  Jer Noble  <jer@kokode.apple.com>
2656
2657         Reviewed by Simon Fraser.
2658
2659         Implement WebKit Full Screen support.
2660         https://bugs.webkit.org/show_bug.cgi?id=49481
2661         rdar://problem/8247444
2662         
2663         This patch introduces a new RenderObject type: RenderFullScreen.  The RenderFullScreen renderer 
2664         will be used to implement new FullScreen APIs.  Because the RenderFullScreen object will be the
2665         parent of the current fullscreen element, the style rules for fullscreen objects must change to
2666         match.
2667         
2668         * WebCore.xcodeproj/project.pbxproj:
2669         * rendering/RenderFullScreen.cpp: Added.
2670         (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
2671         (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
2672             for RenderFullScreen objects.
2673         * rendering/RenderFullScreen.h: Added.
2674         (WebCore::RenderFullScreen::isRenderFullScreen): Added.  Overrides the RenderObject version.
2675         * rendering/RenderObject.h:
2676         (WebCore::RenderObject::isRenderFullScreen): Added.  Used for type-checking RenderFullScreen objects.
2677         * css/fullscreen.css:  Modified the contained fullscreen styles.
2678
2679
2680 2011-01-07  James Robinson  <jamesr@chromium.org>
2681
2682         Revert "Implement mozilla's animationTime property"
2683         https://bugs.webkit.org/show_bug.cgi?id=51952
2684
2685         This approach isn't quite right.
2686
2687         * Android.mk:
2688         * CMakeLists.txt:
2689         * GNUmakefile.am:
2690         * WebCore.exp.in:
2691         * WebCore.gypi:
2692         * WebCore.pro:
2693         * WebCore.vcproj/WebCore.vcproj:
2694         * WebCore.xcodeproj/project.pbxproj:
2695         * page/DOMWindow.cpp:
2696         * page/DOMWindow.h:
2697         * page/DOMWindow.idl:
2698         * page/Frame.cpp:
2699         * page/Frame.h:
2700         * page/Page.cpp:
2701         (WebCore::Page::Page):
2702         * page/Page.h:
2703         * page/animation/AnimationController.cpp:
2704         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2705         * page/animation/AnimationTimeController.cpp: Removed.
2706         * page/animation/AnimationTimeController.h: Removed.
2707
2708 2011-01-07  Jan Erik Hanssen  <jhanssen@sencha.com>
2709
2710         Reviewed by Andreas Kling.
2711
2712         [Qt] Black text on black buttons using a dark theme
2713         https://bugs.webkit.org/show_bug.cgi?id=35024
2714
2715         Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
2716
2717         * platform/qt/RenderThemeQt.cpp:
2718         (WebCore::RenderThemeQt::systemColor):
2719         * platform/qt/RenderThemeQt.h:
2720
2721 2011-01-05  Adrienne Walker  <enne@google.com>
2722
2723         Reviewed by Kenneth Russell.
2724
2725         Add WEBKIT_lose_context WebGL extension.
2726         https://bugs.webkit.org/show_bug.cgi?id=51492
2727
2728         Tests: fast/canvas/webgl/context-lost-restored.html
2729                fast/canvas/webgl/context-lost.html
2730
2731         * CMakeLists.txt:
2732         * DerivedSources.make:
2733         * GNUmakefile.am:
2734         * WebCore.gypi:
2735         * WebCore.pri:
2736         * WebCore.pro:
2737         * WebCore.xcodeproj/project.pbxproj:
2738         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2739         (WebCore::toJS):
2740         (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
2741         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2742         (WebCore::toV8Object):
2743         (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
2744         * html/canvas/WebGLExtension.h:
2745         * html/canvas/WebGLRenderingContext.cpp:
2746         (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
2747         (WebCore::WebGLRenderingContext::getExtension):
2748         (WebCore::WebGLRenderingContext::getSupportedExtensions):
2749         (WebCore::WebGLRenderingContext::forceLostContext):
2750         (WebCore::WebGLRenderingContext::onLostContext):
2751         (WebCore::WebGLRenderingContext::getNumberOfExtensions):
2752         (WebCore::WebGLRenderingContext::getExtensionNumber):
2753         * html/canvas/WebGLRenderingContext.h:
2754         * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
2755         (WebCore::WebKitLoseContext::WebKitLoseContext):
2756         (WebCore::WebKitLoseContext::~WebKitLoseContext):
2757         (WebCore::WebKitLoseContext::getName):
2758         (WebCore::WebKitLoseContext::create):
2759         (WebCore::WebKitLoseContext::loseContext):
2760         * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
2761         * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
2762
2763 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2764
2765         Unreviewed.
2766
2767         Build fix for Chromium. Missing include.
2768
2769         * page/animation/AnimationBase.cpp:
2770
2771 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2772
2773         Unreviewed.
2774
2775         Build fix.
2776
2777         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2778
2779 2011-01-06  Gavin Barraclough  <barraclough@apple.com>
2780
2781         Reviewed by Geoff Garen.
2782
2783         Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
2784
2785         The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
2786         destructor early, in order to release wrappers once we know we no longer intend to use them.
2787         Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
2788         lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
2789         A sequence of events that triggers the bug would look like this:
2790
2791         (1) Create a DOMWrapperWorld.
2792         (2) Register a timer in the world.
2793         (3) Call unregisterWorld() on the world.
2794         (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
2795         (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
2796             called forgetWorld() none exists.
2797         (6) Attempt to add a wrapper to a NULL map.
2798
2799         Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
2800
2801         * WebCore.exp.in:
2802         * bindings/js/DOMWrapperWorld.cpp:
2803         (WebCore::DOMWrapperWorld::DOMWrapperWorld):
2804         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
2805         (WebCore::DOMWrapperWorld::clearWrappers):
2806         * bindings/js/DOMWrapperWorld.h:
2807
2808 2011-01-07  Chris Marrin  <cmarrin@apple.com>
2809
2810         Rubber-stamped by Simon Fraser.
2811
2812         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2813         https://bugs.webkit.org/show_bug.cgi?id=49388
2814
2815         Final step in unifying GraphicsLayer logic across Win and Mac. This 
2816         implements the Windows side classes for PlatformCALayer and supporting
2817         classes. Also changed MediaPlayer to use new PlatformCALayerClient
2818         so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
2819         WKCACFLayerRenderer now does the task of notifying animations of their
2820         start time. Also commented out an assert in AnimationBase because
2821         AnimationController's frame time is not in sync with the new 
2822         AnimationTimeController. I've opened a new bug for that issue:
2823
2824             https://bugs.webkit.org/show_bug.cgi?id=52037
2825             
2826         This also includes the Mac side changes backed out in 
2827         http://trac.webkit.org/changeset/75227.
2828
2829         * WebCore.vcproj/WebCore.vcproj:
2830         * WebCore.vcproj/WebCoreCommon.vsprops:
2831         * WebCore.vcproj/copyForwardingHeaders.cmd:
2832         * WebCore.xcodeproj/project.pbxproj:
2833         * config.h:
2834         * page/animation/AnimationBase.cpp:
2835         (WebCore::AnimationBase::freezeAtTime):
2836         (WebCore::AnimationBase::getElapsedTime):
2837         * page/animation/AnimationController.cpp:
2838         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2839         * page/animation/KeyframeAnimation.cpp:
2840         (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
2841         * platform/graphics/GraphicsLayer.h:
2842         (WebCore::GraphicsLayer::layerDidDisplay):
2843         (WebCore::GraphicsLayer::showDebugBorders):
2844         (WebCore::GraphicsLayer::showRepaintCounter):
2845         * platform/graphics/ca/GraphicsLayerCA.cpp:
2846         (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
2847         (WebCore::GraphicsLayerCA::setContentsToImage):
2848         (WebCore::GraphicsLayerCA::setContentsToMedia):
2849         (WebCore::GraphicsLayerCA::layerDidDisplay):
2850         (WebCore::GraphicsLayerCA::updateSublayerList):
2851         * platform/graphics/ca/GraphicsLayerCA.h:
2852         (WebCore::GraphicsLayerCA::platformCALayer):
2853         (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
2854         (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
2855         (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
2856         (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
2857         (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
2858         (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
2859         (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
2860         (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
2861         (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
2862         (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
2863         * platform/graphics/ca/PlatformCAAnimation.h:
2864         * platform/graphics/ca/PlatformCALayer.h:
2865         (WebCore::PlatformCALayer::owner):
2866         (WebCore::PlatformCALayer::animationStarted):
2867         * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
2868         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2869         (PlatformCALayer::setOwner):
2870         (PlatformCALayer::create):
2871         (PlatformCALayer::PlatformCALayer):
2872         (PlatformCALayer::contents):
2873         (PlatformCALayer::setContents):
2874         * platform/graphics/ca/win: Added.
2875         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
2876         * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
2877         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
2878         * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
2879         (WebCore::PlatformCALayerWinInternal::owner):
2880         * platform/graphics/mac/WebGLLayer.mm:
2881         (-[WebGLLayer display]):
2882         * platform/graphics/mac/WebLayer.h:
2883         * platform/graphics/mac/WebLayer.mm:
2884         (drawLayerContents):
2885         (setLayerNeedsDisplayInRect):
2886         (-[WebLayer setNeedsDisplay]):
2887         (-[WebLayer display]):
2888         * platform/graphics/mac/WebTiledLayer.mm:
2889         (-[WebTiledLayer setNeedsDisplay]):
2890         (-[WebTiledLayer display]):
2891         * platform/graphics/win/GraphicsContextCGWin.cpp:
2892         (WebCore::CGContextWithHDC):
2893         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
2894         (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
2895         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
2896         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
2897         (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
2898         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
2899         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
2900         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
2901         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
2902         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
2903         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
2904         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
2905         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
2906         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
2907         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
2908         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
2909         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
2910         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
2911         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
2912         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
2913         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
2914         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
2915         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
2916         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
2917         (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
2918         (WebCore::MediaPlayerPrivate::createLayerForMovie):
2919         * platform/graphics/win/WKCACFLayerRenderer.cpp:
2920         (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
2921         (WebCore::WKCACFLayerRenderer::rootLayer):
2922         (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
2923         (WebCore::WKCACFLayerRenderer::setRootChildLayer):
2924         (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
2925         (WebCore::WKCACFLayerRenderer::destroyRenderer):
2926         (WebCore::WKCACFLayerRenderer::render):
2927         * platform/graphics/win/WKCACFLayerRenderer.h:
2928         (WebCore::WKCACFLayerRendererClient::animationsStarted):
2929         (WebCore::WKCACFLayerRendererClient::syncCompositingState):
2930         * rendering/RenderLayerBacking.cpp:
2931         (WebCore::RenderLayerBacking::showDebugBorders):
2932         (WebCore::RenderLayerBacking::showRepaintCounter):
2933         * rendering/RenderLayerCompositor.cpp:
2934         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
2935         * rendering/RenderLayerCompositor.h:
2936         (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
2937         (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
2938         (WebCore::RenderLayerCompositor::notifyAnimationStarted):
2939         (WebCore::RenderLayerCompositor::notifySyncRequired):
2940         (WebCore::RenderLayerCompositor::paintContents):
2941         (WebCore::RenderLayerCompositor::showDebugBorders):
2942         (WebCore::RenderLayerCompositor::showRepaintCounter):
2943
2944 2011-01-07  Nate Chapin  <japhet@chromium.org>
2945
2946         Reviewed by Darin Fisher.
2947
2948         Let PingLoader send cookies if FrameLoaderClient permits it.
2949         https://bugs.webkit.org/show_bug.cgi?id=51898
2950
2951         Test: http/tests/navigation/ping-cookie.html
2952
2953         * loader/PingLoader.cpp:
2954         (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
2955             at load start time, since we won't be able to call 
2956             FrameLoaderClient::shouldUseCredentialStorage() later.
2957         * loader/PingLoader.h:
2958         (WebCore::PingLoader::shouldUseCredentialStorage):
2959
2960 2011-01-07  Xan Lopez  <xlopez@igalia.com>
2961
2962         Unreviewed, rolling out r75256.
2963         http://trac.webkit.org/changeset/75256
2964         https://bugs.webkit.org/show_bug.cgi?id=50869
2965
2966         Broke GTK+ canvas tests
2967
2968         * platform/graphics/cairo/PathCairo.cpp:
2969         (WebCore::Path::addArc):
2970
2971 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
2972
2973         Reviewed by Martin Robinson.
2974
2975         [GTK] Port scrollbar painting to GtkStyleContext
2976         https://bugs.webkit.org/show_bug.cgi?id=52051
2977
2978         Use GtkStyleContext API to paint scrollbars when building with
2979         GTK+ 3.x.
2980
2981         No new tests. This should not change functionality.
2982
2983         * platform/gtk/RenderThemeGtk.h:
2984         * platform/gtk/RenderThemeGtk3.cpp:
2985         (WebCore::RenderThemeGtk::gtkScrollbarStyle):
2986         * platform/gtk/ScrollbarThemeGtk.cpp:
2987         * platform/gtk/ScrollbarThemeGtk.h:
2988         * platform/gtk/ScrollbarThemeGtk2.cpp:
2989         (WebCore::gtkStyleSetCallback):
2990         (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
2991         * platform/gtk/ScrollbarThemeGtk3.cpp:
2992         (WebCore::gtkStyleChangedCallback):
2993         (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
2994         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
2995         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
2996         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
2997         (WebCore::ScrollbarThemeGtk::paintThumb):
2998         (WebCore::ScrollbarThemeGtk::paintButton):
2999
3000 2011-01-07  Dan Bernstein  <mitz@apple.com>
3001
3002         Reviewed by Darin Adler.
3003
3004         <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
3005         https://bugs.webkit.org/show_bug.cgi?id=51267
3006
3007         Test: fast/text/emphasis-avoid-ruby.html
3008
3009         * rendering/InlineFlowBox.cpp:
3010         (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
3011         there are text emphasis marks.
3012         (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
3013         (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
3014         * rendering/InlineTextBox.cpp:
3015         (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
3016         position if the text is style with emphasis marks and there isn’t a ruby annotation that should
3017         suppress them. Otherwise returns false.
3018         (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
3019         be painted.
3020         * rendering/InlineTextBox.h:
3021
3022 2011-01-07  Alejandro G. Castro  <alex@igalia.com>
3023
3024         Reviewed by Martin Robinson.
3025
3026         [cairo] Rendering a lot of arcs on top of each other causes time
3027         outs in some tests
3028         https://bugs.webkit.org/show_bug.cgi?id=50869
3029
3030         We avoid the situation where we have to render the same arc
3031         multiple times over itself. Now it renders just one oval and
3032         moves to the end angle.
3033
3034         * platform/graphics/cairo/PathCairo.cpp:
3035         (WebCore::Path::addArc):
3036
3037 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
3038
3039         Reviewed by Martin Robinson.
3040
3041         [GTK] Port buttons painting to GtkStyleContext
3042         https://bugs.webkit.org/show_bug.cgi?id=51812
3043
3044         Use GtkStyleContext API to paint buttons when building with GTK+
3045         3.x.
3046
3047         No new tests. This should not change functionality.
3048
3049         * platform/gtk/RenderThemeGtk3.cpp:
3050         (WebCore::adjustRectForFocus):
3051         (WebCore::RenderThemeGtk::adjustRepaintRect):
3052         (WebCore::RenderThemeGtk::paintButton):
3053
3054 2011-01-07  Zhenyao Mo  <zmo@google.com>
3055
3056         Unreviewed, build fix.
3057
3058         * html/canvas/WebGLRenderingContext.cpp:
3059         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
3060
3061 2011-01-06  Zhenyao Mo  <zmo@google.com>
3062
3063         Reviewed by Kenneth Russell.
3064
3065         copyTexSubImage2D shouldn't have undefined pixels
3066         https://bugs.webkit.org/show_bug.cgi?id=51559
3067
3068         * html/canvas/WebGLRenderingContext.cpp:
3069         (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
3070         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
3071         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
3072         (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
3073         * html/canvas/WebGLRenderingContext.h:
3074         * html/canvas/WebGLTexture.cpp:
3075         (WebCore::WebGLTexture::getType): Expose the type of a texture.
3076         * html/canvas/WebGLTexture.h:
3077
3078 2011-01-07  Takashi Toyoshima  <toyoshim@google.com>
3079
3080         Reviewed by Kenneth Russell.
3081
3082         cleanupAfterGraphicsCall() is never called in
3083         WebGLRenderingContext::checkFramebufferStatus()
3084         https://bugs.webkit.org/show_bug.cgi?id=51668
3085
3086         No new tests. This is a trivial bug.
3087
3088         * html/canvas/WebGLRenderingContext.cpp:
3089         (WebCore::WebGLRenderingContext::checkFramebufferStatus):
3090
3091 2011-01-07  Mario Sanchez Prada  <msanchez@igalia.com>
3092
3093         Reviewed by Chris Fleizach.
3094
3095         GTK: AX: atk tests need to be updated after recent changes
3096         https://bugs.webkit.org/show_bug.cgi?id=51932
3097
3098         Make sure we can always get the right accesssible parent for an
3099         AtkObject when traversing the hierarchy bottom up.
3100
3101         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3102         (isRootObject): New function to check whether an
3103         AccessibilityObject is the root one or not, according to the
3104         latest changes in the hierarchy.
3105         (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
3106         GAIL as the parent of the root AtkObject from WebCore.
3107         (webkit_accessible_get_parent): Use atkParentOfRootObject.
3108         (webkit_accessible_get_index_in_parent): Ditto.
3109         (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
3110         AtkObject's of role ATK_ROLE_SCROLLED_PANE.
3111
3112 2011-01-07  Zhenyao Mo  <zmo@google.com>
3113
3114         Unreviewed, Mac 32-bit build fix.
3115         Use float instead of double in GL function arguments to avoid implicit type down casting.
3116
3117         * html/canvas/WebGLRenderingContext.cpp:
3118         (WebCore::WebGLRenderingContext::blendColor):
3119         (WebCore::WebGLRenderingContext::clearColor):
3120         (WebCore::WebGLRenderingContext::clearDepth):
3121         (WebCore::WebGLRenderingContext::depthRange):
3122         (WebCore::WebGLRenderingContext::lineWidth):
3123         (WebCore::WebGLRenderingContext::polygonOffset):
3124         (WebCore::WebGLRenderingContext::sampleCoverage):
3125         * html/canvas/WebGLRenderingContext.h:
3126         * html/canvas/WebGLRenderingContext.idl:
3127
3128 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
3129
3130         Reviewed by Xan Lopez.
3131
3132         [GTK] Port slider painting to GtkStyleContext
3133         https://bugs.webkit.org/show_bug.cgi?id=51874
3134
3135         Use GtkStyleContext API to paint sliders when building with GTK+
3136         3.x. Also move the code to adjust media slider to its own method
3137         in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
3138
3139         No new tests. This should not change functionality.
3140
3141         * platform/gtk/RenderThemeGtk.cpp:
3142         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
3143         * platform/gtk/RenderThemeGtk.h:
3144         * platform/gtk/RenderThemeGtk2.cpp:
3145         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3146         * platform/gtk/RenderThemeGtk3.cpp:
3147         (WebCore::RenderThemeGtk::paintSliderTrack):
3148         (WebCore::RenderThemeGtk::paintSliderThumb):
3149         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
3150
3151 2011-01-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
3152
3153         Reviewed by Andreas Kling.
3154
3155         [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
3156         https://bugs.webkit.org/show_bug.cgi?id=51992
3157
3158         Add the missing header. CString is used in debug by the calls to LOG().
3159
3160         * fileapi/FileReader.cpp:
3161
3162 2011-01-07  Alejandro G. Castro  <alex@igalia.com>
3163
3164         Reviewed by Martin Robinson.
3165
3166         Cairo's ContextShadow may mis-render some box shadows
3167         https://bugs.webkit.org/show_bug.cgi?id=51374
3168
3169         The space required for the internal shadow of the corners was not
3170         correctly considered.
3171
3172         * platform/graphics/cairo/ContextShadowCairo.cpp:
3173         (WebCore::ContextShadow::drawRectShadow):
3174
3175 2011-01-06  Adam Barth  <abarth@webkit.org>
3176
3177         Reviewed by Darin Adler.
3178
3179         REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
3180         https://bugs.webkit.org/show_bug.cgi?id=52013
3181
3182         When excluding line numbers for composite strings, we forgot to exclude
3183         the line number for the current string!
3184
3185         Test: fast/parser/line-number-composite-segmented-string.html
3186
3187         * platform/text/SegmentedString.cpp:
3188         (WebCore::SegmentedString::setExcludeLineNumbers):
3189
3190 2011-01-06  Chris Marrin  <cmarrin@apple.com>
3191
3192         Unreviewed.
3193
3194         Back out changes in http://trac.webkit.org/changeset/75199
3195         This breaks the Windows build. Fixing it on that side. Until
3196         then I'll back this out.
3197
3198 2011-01-06  Jenn Braithwaite  <jennb@chromium.org>
3199
3200         Reviewed by Dmitry Titov.
3201
3202         When a live frame is moved between pages, some plug-in DOM methods cease to function
3203         https://bugs.webkit.org/show_bug.cgi?id=45770
3204
3205         Test: fast/frames/iframe-reparenting-plugins.html
3206
3207         * page/Frame.cpp:
3208         (WebCore::Frame::~Frame):
3209         (WebCore::Frame::addObserver):
3210         (WebCore::Frame::removeObserver):
3211         * page/Frame.h:
3212         (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
3213         Added observer to be notified when frame is destroyed.
3214         * page/Page.cpp:
3215         (WebCore::Page::~Page):
3216         (WebCore::Page::refreshPlugins):
3217         PluginData no longer stores page pointer.
3218         * plugins/DOMMimeType.cpp:
3219         (WebCore::DOMMimeType::DOMMimeType):
3220         (WebCore::DOMMimeType::~DOMMimeType):
3221         (WebCore::DOMMimeType::enabledPlugin):
3222         * plugins/DOMMimeType.h:
3223         (WebCore::DOMMimeType::create):
3224         (WebCore::DOMMimeType::frameDestroyed):
3225         Store frame instead of page pointer in DOMMimeType.
3226         * plugins/DOMMimeTypeArray.cpp:
3227         (WebCore::DOMMimeTypeArray::item):
3228         (WebCore::DOMMimeTypeArray::namedItem):
3229         Provide frame to create DOMMimeType.
3230         * plugins/DOMPlugin.cpp:
3231         (WebCore::DOMPlugin::DOMPlugin):
3232         (WebCore::DOMPlugin::~DOMPlugin):
3233         (WebCore::DOMPlugin::item):
3234         (WebCore::DOMPlugin::namedItem):
3235         * plugins/DOMPlugin.h:
3236         (WebCore::DOMPlugin::create):
3237         (WebCore::DOMPlugin::frameDestroyed):
3238         Store frame instead of page pointer in DOMPlugin.
3239         * plugins/DOMPluginArray.cpp:
3240         (WebCore::DOMPluginArray::item):
3241         (WebCore::DOMPluginArray::namedItem):
3242         Provide frame to create DOMPlugin.
3243         * plugins/PluginData.cpp:
3244         (WebCore::PluginData::PluginData):
3245         (WebCore::PluginData::initPlugins):
3246         * plugins/PluginData.h:
3247         No longer stores a pointer to the page.
3248         Added page parameter to initPlugins.
3249         * plugins/PluginDataNone.cpp:
3250         (WebCore::PluginData::initPlugins):
3251         * plugins/chromium/PluginDataChromium.cpp:
3252         (WebCore::PluginData::initPlugins):
3253         * plugins/gtk/PluginDataGtk.cpp:
3254         (WebCore::PluginData::initPlugins):
3255         * plugins/wx/PluginDataWx.cpp:
3256         (WebCore::PluginData::initPlugins):
3257         Updated platforms to add (unused) page parameter to initPlugins.
3258
3259 2011-01-05  Zhenyao Mo  <zmo@google.com>
3260
3261         Reviewed by Kenneth Russell.
3262
3263         Define GC3D types to match GL types and use them in GraphicsContext3D
3264         https://bugs.webkit.org/show_bug.cgi?id=45557
3265
3266         * html/canvas/WebGLRenderingContext.cpp:
3267         (WebCore::WebGLRenderingContext::readPixels):
3268         (WebCore::WebGLRenderingContext::validateTexFuncData):
3269         * platform/graphics/GraphicsContext3D.cpp:
3270         (WebCore::GraphicsContext3D::texImage2DResourceSafe):
3271         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
3272         (WebCore::GraphicsContext3D::extractImageData):
3273         (WebCore::GraphicsContext3D::extractTextureData):
3274         * platform/graphics/GraphicsContext3D.h:
3275         * platform/graphics/cg/GraphicsContext3DCG.cpp:
3276         (WebCore::GraphicsContext3D::getImageData):
3277         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
3278         (WebCore::SharedGraphicsContext3D::enable):
3279         (WebCore::SharedGraphicsContext3D::disable):
3280         (WebCore::SharedGraphicsContext3D::clear):
3281         (WebCore::SharedGraphicsContext3D::drawArrays):
3282         (WebCore::SharedGraphicsContext3D::getError):
3283         (WebCore::SharedGraphicsContext3D::getIntegerv):
3284         (WebCore::SharedGraphicsContext3D::createFramebuffer):
3285         (WebCore::SharedGraphicsContext3D::createTexture):
3286         (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
3287         (WebCore::SharedGraphicsContext3D::deleteTexture):
3288         (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
3289         (WebCore::SharedGraphicsContext3D::texParameteri):
3290         (WebCore::SharedGraphicsContext3D::texImage2D):
3291         (WebCore::SharedGraphicsContext3D::texSubImage2D):
3292         (WebCore::SharedGraphicsContext3D::readPixels):
3293         (WebCore::SharedGraphicsContext3D::setActiveTexture):
3294         (WebCore::SharedGraphicsContext3D::bindTexture):
3295         (WebCore::SharedGraphicsContext3D::bindFramebuffer):
3296         * platform/graphics/gpu/SharedGraphicsContext3D.h:
3297         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3298         (WebCore::GraphicsContext3D::activeTexture):
3299         (WebCore::GraphicsContext3D::attachShader):
3300         (WebCore::GraphicsContext3D::bindAttribLocation):
3301         (WebCore::GraphicsContext3D::bindBuffer):
3302         (WebCore::GraphicsContext3D::bindFramebuffer):
3303         (WebCore::GraphicsContext3D::bindRenderbuffer):
3304         (WebCore::GraphicsContext3D::bindTexture):
3305         (WebCore::GraphicsContext3D::blendColor):
3306         (WebCore::GraphicsContext3D::blendEquation):
3307         (WebCore::GraphicsContext3D::blendEquationSeparate):
3308         (WebCore::GraphicsContext3D::blendFunc):
3309         (WebCore::GraphicsContext3D::blendFuncSeparate):
3310         (WebCore::GraphicsContext3D::bufferData):
3311         (WebCore::GraphicsContext3D::bufferSubData):
3312         (WebCore::GraphicsContext3D::checkFramebufferStatus):
3313         (WebCore::GraphicsContext3D::clearColor):
3314         (WebCore::GraphicsContext3D::clear):
3315         (WebCore::GraphicsContext3D::clearDepth):
3316         (WebCore::GraphicsContext3D::clearStencil):
3317         (WebCore::GraphicsContext3D::colorMask):
3318         (WebCore::GraphicsContext3D::compileShader):
3319         (WebCore::GraphicsContext3D::copyTexImage2D):
3320         (WebCore::GraphicsContext3D::copyTexSubImage2D):
3321         (WebCore::GraphicsContext3D::cullFace):
3322         (WebCore::GraphicsContext3D::depthFunc):
3323         (WebCore::GraphicsContext3D::depthMask):
3324         (WebCore::GraphicsContext3D::depthRange):
3325         (WebCore::GraphicsContext3D::detachShader):
3326         (WebCore::GraphicsContext3D::disable):
3327         (WebCore::GraphicsContext3D::disableVertexAttribArray):
3328         (WebCore::GraphicsContext3D::drawArrays):
3329         (WebCore::GraphicsContext3D::drawElements):
3330         (WebCore::GraphicsContext3D::enable):
3331         (WebCore::GraphicsContext3D::enableVertexAttribArray):
3332         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
3333         (WebCore::GraphicsContext3D::framebufferTexture2D):
3334         (WebCore::GraphicsContext3D::frontFace):
3335         (WebCore::GraphicsContext3D::generateMipmap):
3336         (WebCore::GraphicsContext3D::getActiveAttrib):
3337         (WebCore::GraphicsContext3D::getActiveUniform):
3338         (WebCore::GraphicsContext3D::getAttachedShaders):
3339         (WebCore::GraphicsContext3D::getAttribLocation):
3340         (WebCore::GraphicsContext3D::getError):
3341         (WebCore::GraphicsContext3D::getString):
3342         (WebCore::GraphicsContext3D::hint):
3343         (WebCore::GraphicsContext3D::isBuffer):
3344         (WebCore::GraphicsContext3D::isEnabled):
3345         (WebCore::GraphicsContext3D::isFramebuffer):
3346         (WebCore::GraphicsContext3D::isProgram):
3347         (WebCore::GraphicsContext3D::isRenderbuffer):
3348         (WebCore::GraphicsContext3D::isShader):
3349         (WebCore::GraphicsContext3D::isTexture):
3350         (WebCore::GraphicsContext3D::lineWidth):
3351         (WebCore::GraphicsContext3D::linkProgram):
3352         (WebCore::GraphicsContext3D::pixelStorei):
3353         (WebCore::GraphicsContext3D::polygonOffset):
3354         (WebCore::GraphicsContext3D::readPixels):
3355         (WebCore::GraphicsContext3D::renderbufferStorage):
3356         (WebCore::GraphicsContext3D::sampleCoverage):
3357         (WebCore::GraphicsContext3D::scissor):
3358         (WebCore::GraphicsContext3D::stencilFunc):
3359         (WebCore::GraphicsContext3D::stencilFuncSeparate):
3360         (WebCore::GraphicsContext3D::stencilMask):
3361         (WebCore::GraphicsContext3D::stencilMaskSeparate):
3362         (WebCore::GraphicsContext3D::stencilOp):
3363         (WebCore::GraphicsContext3D::stencilOpSeparate):
3364         (WebCore::GraphicsContext3D::texParameterf):
3365         (WebCore::GraphicsContext3D::texParameteri):
3366         (WebCore::GraphicsContext3D::uniform1f):
3367         (WebCore::GraphicsContext3D::uniform1fv):
3368         (WebCore::GraphicsContext3D::uniform2f):
3369         (WebCore::GraphicsContext3D::uniform2fv):
3370         (WebCore::GraphicsContext3D::uniform3f):
3371         (WebCore::GraphicsContext3D::uniform3fv):
3372         (WebCore::GraphicsContext3D::uniform4f):
3373         (WebCore::GraphicsContext3D::uniform4fv):
3374         (WebCore::GraphicsContext3D::uniform1i):
3375         (WebCore::GraphicsContext3D::uniform1iv):
3376         (WebCore::GraphicsContext3D::uniform2i):
3377         (WebCore::GraphicsContext3D::uniform2iv):
3378         (WebCore::GraphicsContext3D::uniform3i):
3379         (WebCore::GraphicsContext3D::uniform3iv):
3380         (WebCore::GraphicsContext3D::uniform4i):
3381         (WebCore::GraphicsContext3D::uniform4iv):
3382         (WebCore::GraphicsContext3D::uniformMatrix2fv):
3383         (WebCore::GraphicsContext3D::uniformMatrix3fv):
3384         (WebCore::GraphicsContext3D::uniformMatrix4fv):
3385         (WebCore::GraphicsContext3D::useProgram):
3386         (WebCore::GraphicsContext3D::validateProgram):
3387         (WebCore::GraphicsContext3D::vertexAttrib1f):
3388         (WebCore::GraphicsContext3D::vertexAttrib1fv):
3389         (WebCore::GraphicsContext3D::vertexAttrib2f):
3390         (WebCore::GraphicsContext3D::vertexAttrib2fv):
3391         (WebCore::GraphicsContext3D::vertexAttrib3f):
3392         (WebCore::GraphicsContext3D::vertexAttrib3fv):
3393         (WebCore::GraphicsContext3D::vertexAttrib4f):
3394         (WebCore::GraphicsContext3D::vertexAttrib4fv):
3395         (WebCore::GraphicsContext3D::vertexAttribPointer):
3396         (WebCore::GraphicsContext3D::viewport):
3397         (WebCore::GraphicsContext3D::getBooleanv):
3398         (WebCore::GraphicsContext3D::getBufferParameteriv):
3399         (WebCore::GraphicsContext3D::getFloatv):
3400         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
3401         (WebCore::GraphicsContext3D::getIntegerv):
3402         (WebCore::GraphicsContext3D::getProgramiv):
3403         (WebCore::GraphicsContext3D::getProgramInfoLog):
3404         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
3405         (WebCore::GraphicsContext3D::getShaderiv):
3406         (WebCore::GraphicsContext3D::getShaderInfoLog):
3407         (WebCore::GraphicsContext3D::getTexParameterfv):
3408         (WebCore::GraphicsContext3D::getTexParameteriv):
3409         (WebCore::GraphicsContext3D::getUniformfv):
3410         (WebCore::GraphicsContext3D::getUniformiv):
3411         (WebCore::GraphicsContext3D::getUniformLocation):
3412         (WebCore::GraphicsContext3D::getVertexAttribfv):
3413         (WebCore::GraphicsContext3D::getVertexAttribiv):
3414         (WebCore::GraphicsContext3D::getVertexAttribOffset):
3415         (WebCore::GraphicsContext3D::texImage2D):
3416         (WebCore::GraphicsContext3D::texSubImage2D):
3417         (WebCore::GraphicsContext3D::createBuffer):
3418         (WebCore::GraphicsContext3D::createFramebuffer):
3419         (WebCore::GraphicsContext3D::createProgram):
3420         (WebCore::GraphicsContext3D::createRenderbuffer):
3421         (WebCore::GraphicsContext3D::createShader):
3422         (WebCore::GraphicsContext3D::createTexture):
3423         (WebCore::GraphicsContext3D::deleteBuffer):
3424         (WebCore::GraphicsContext3D::deleteFramebuffer):
3425         (WebCore::GraphicsContext3D::deleteProgram):
3426         (WebCore::GraphicsContext3D::deleteRenderbuffer):
3427         (WebCore::GraphicsContext3D::deleteShader):
3428         (WebCore::GraphicsContext3D::deleteTexture):
3429         (WebCore::GraphicsContext3D::sizeInBytes):
3430         (WebCore::GraphicsContext3D::synthesizeGLError):
3431         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3432         (WebCore::GraphicsContext3D::activeTexture):
3433         (WebCore::GraphicsContext3D::attachShader):
3434         (WebCore::GraphicsContext3D::getAttachedShaders):
3435         (WebCore::GraphicsContext3D::bindAttribLocation):
3436         (WebCore::GraphicsContext3D::bindBuffer):
3437         (WebCore::GraphicsContext3D::bindFramebuffer):
3438         (WebCore::GraphicsContext3D::bindRenderbuffer):
3439         (WebCore::GraphicsContext3D::bindTexture):
3440         (WebCore::GraphicsContext3D::blendColor):
3441         (WebCore::GraphicsContext3D::blendEquation):
3442         (WebCore::GraphicsContext3D::blendEquationSeparate):
3443         (WebCore::GraphicsContext3D::blendFunc):
3444         (WebCore::GraphicsContext3D::blendFuncSeparate):
3445         (WebCore::GraphicsContext3D::bufferData):
3446         (WebCore::GraphicsContext3D::bufferSubData):
3447         (WebCore::GraphicsContext3D::checkFramebufferStatus):
3448         (WebCore::GraphicsContext3D::clearColor):
3449         (WebCore::GraphicsContext3D::clear):
3450         (WebCore::GraphicsContext3D::clearDepth):
3451         (WebCore::GraphicsContext3D::clearStencil):
3452         (WebCore::GraphicsContext3D::colorMask):
3453         (WebCore::GraphicsContext3D::compileShader):
3454         (WebCore::GraphicsContext3D::copyTexImage2D):
3455         (WebCore::GraphicsContext3D::copyTexSubImage2D):
3456         (WebCore::GraphicsContext3D::cullFace):
3457         (WebCore::GraphicsContext3D::depthFunc):
3458         (WebCore::GraphicsContext3D::depthMask):
3459         (WebCore::GraphicsContext3D::depthRange):
3460         (WebCore::GraphicsContext3D::detachShader):
3461         (WebCore::GraphicsContext3D::disable):
3462         (WebCore::GraphicsContext3D::disableVertexAttribArray):
3463         (WebCore::GraphicsContext3D::drawArrays):