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