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