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