2011-01-08 Charlie Reis <creis@chromium.org>
[WebKit.git] / Source / WebCore / ChangeLog
1 2011-01-08  Charlie Reis  <creis@chromium.org>
2
3         Reviewed by Mihai Parparita.
4
5         Canceled frame loads can corrupt back forward list
6         https://bugs.webkit.org/show_bug.cgi?id=50254
7
8         Avoids changing m_currentItem until the navigation commits.
9         Also resets top-level history items if a subframe navigation is canceled.
10
11         * WebCore/loader/FrameLoader.cpp:
12         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
13         * WebCore/loader/HistoryController.cpp:
14         * WebCore/loader/HistoryController.h:
15
16 2011-01-08  Chang Shu  <chang.shu@nokia.com>
17
18         Reviewed by Kenneth Rohde Christiansen.
19
20         Support createTouchList with Touch list for test automation.
21         Implemented JS/V8 custom functions for createTouchList.
22         https://bugs.webkit.org/show_bug.cgi?id=51196
23
24         * bindings/js/JSDocumentCustom.cpp:
25         (WebCore::JSDocument::createTouchList):
26         * bindings/v8/custom/V8DocumentCustom.cpp:
27         (WebCore::V8Document::createTouchListCallback):
28         * dom/Document.idl:
29         * dom/TouchEvent.cpp:
30         (WebCore::TouchEvent::initTouchEvent):
31
32 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
33
34         Reviewed by Kenneth Rohde Christiansen.
35
36         [Qt] CookieJarQt.cpp has coding-style errors
37         https://bugs.webkit.org/show_bug.cgi?id=39778
38
39         Improve the coding style of CookieJarQt.cpp.
40
41         * platform/qt/CookieJarQt.cpp:
42         (WebCore::networkAccessManager):
43         (WebCore::cookiesEnabled):
44
45 2011-01-08  Jeff Miller  <jeffm@apple.com>
46
47         Rubber-stamped by Dan Bernstein.
48
49         Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
50         https://bugs.webkit.org/show_bug.cgi?id=52114
51
52         * WebCore.vcproj/QTMovieWin.vcproj:
53         Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
54
55 2011-01-08  Dirk Schulze  <krit@webkit.org>
56
57         Reviewed by Mihai Parparita.
58
59         SVG rendering clean up according to the webkit style rules 2
60         https://bugs.webkit.org/show_bug.cgi?id=52112
61
62         Modified the style of the license of all files in WebCore/rendering/svg to match the style
63         in WebCore/svg. Cleaned up the code according to the webkit style rules.
64
65         No change of functionality. No test added.
66
67         * rendering/svg/RenderSVGInline.cpp:
68         * rendering/svg/RenderSVGInline.h:
69         * rendering/svg/RenderSVGInlineText.cpp:
70         * rendering/svg/RenderSVGInlineText.h:
71         * rendering/svg/RenderSVGPath.cpp:
72         * rendering/svg/RenderSVGPath.h:
73         * rendering/svg/RenderSVGTSpan.cpp:
74         * rendering/svg/RenderSVGTSpan.h:
75         * rendering/svg/RenderSVGText.cpp:
76         * rendering/svg/RenderSVGText.h:
77         * rendering/svg/RenderSVGTextPath.cpp:
78         * rendering/svg/RenderSVGTextPath.h:
79         * rendering/svg/SVGInlineFlowBox.cpp:
80         * rendering/svg/SVGInlineFlowBox.h:
81         * rendering/svg/SVGInlineTextBox.cpp:
82         * rendering/svg/SVGInlineTextBox.h:
83         * rendering/svg/SVGRootInlineBox.cpp:
84         * rendering/svg/SVGRootInlineBox.h:
85         * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
86         (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
87         * rendering/svg/SVGTextQuery.cpp:
88         * rendering/svg/SVGTextQuery.h:
89
90 2011-01-08  Dirk Schulze  <krit@webkit.org>
91
92         Reviewed by Mihai Parparita.
93
94         SVG rendering clean up according to the webkit style rules
95         https://bugs.webkit.org/show_bug.cgi?id=52107
96
97         Cleanup of the SVG rendering code according to the webbkit style rules.
98         Changed style of licensing texts to match the style in WebCore/svg, no change
99         of the licensing text itself.
100
101         * rendering/RenderForeignObject.cpp:
102         * rendering/RenderForeignObject.h:
103         * rendering/RenderSVGBlock.cpp:
104         * rendering/RenderSVGBlock.h:
105         * rendering/RenderSVGContainer.cpp:
106         * rendering/RenderSVGContainer.h:
107         * rendering/RenderSVGGradientStop.cpp:
108         * rendering/RenderSVGGradientStop.h:
109         * rendering/RenderSVGHiddenContainer.cpp:
110         * rendering/RenderSVGHiddenContainer.h:
111         (WebCore::RenderSVGHiddenContainer::renderName):
112         (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
113         (WebCore::RenderSVGHiddenContainer::requiresLayer):
114         (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
115         * rendering/RenderSVGImage.cpp:
116         * rendering/RenderSVGImage.h:
117         * rendering/RenderSVGModelObject.h:
118         * rendering/RenderSVGResource.cpp:
119         * rendering/RenderSVGResource.h:
120         * rendering/RenderSVGResourceClipper.cpp:
121         * rendering/RenderSVGResourceClipper.h:
122         * rendering/RenderSVGResourceContainer.cpp:
123         * rendering/RenderSVGResourceContainer.h:
124         * rendering/RenderSVGResourceFilter.cpp:
125         * rendering/RenderSVGResourceFilter.h:
126         * rendering/RenderSVGResourceFilterPrimitive.cpp:
127         * rendering/RenderSVGResourceFilterPrimitive.h:
128         * rendering/RenderSVGResourceGradient.cpp:
129         * rendering/RenderSVGResourceGradient.h:
130         * rendering/RenderSVGResourceLinearGradient.cpp:
131         * rendering/RenderSVGResourceLinearGradient.h:
132         * rendering/RenderSVGResourceMarker.cpp:
133         * rendering/RenderSVGResourceMarker.h:
134         * rendering/RenderSVGResourceMasker.cpp:
135         * rendering/RenderSVGResourceMasker.h:
136         * rendering/RenderSVGResourcePattern.cpp:
137         * rendering/RenderSVGResourcePattern.h:
138         * rendering/RenderSVGResourceRadialGradient.cpp:
139         * rendering/RenderSVGResourceRadialGradient.h:
140         * rendering/RenderSVGResourceSolidColor.cpp:
141         * rendering/RenderSVGResourceSolidColor.h:
142         * rendering/RenderSVGRoot.cpp:
143         (WebCore::RenderSVGRoot::nodeAtPoint):
144         * rendering/RenderSVGRoot.h:
145         * rendering/RenderSVGShadowTreeRootContainer.cpp:
146         * rendering/RenderSVGShadowTreeRootContainer.h:
147         * rendering/RenderSVGTransformableContainer.cpp:
148         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
149         * rendering/RenderSVGTransformableContainer.h:
150         (WebCore::RenderSVGTransformableContainer::localToParentTransform):
151         (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
152         (WebCore::RenderSVGTransformableContainer::localTransform):
153         * rendering/RenderSVGViewportContainer.cpp:
154         * rendering/RenderSVGViewportContainer.h:
155         * rendering/SVGImageBufferTools.cpp:
156         * rendering/SVGImageBufferTools.h:
157         * rendering/SVGMarkerData.h:
158         * rendering/SVGMarkerLayoutInfo.cpp:
159         * rendering/SVGMarkerLayoutInfo.h:
160         * rendering/SVGRenderSupport.cpp:
161         * rendering/SVGRenderSupport.h:
162         * rendering/SVGRenderTreeAsText.cpp:
163         (WebCore::operator<<):
164         * rendering/SVGRenderTreeAsText.h:
165         * rendering/SVGResources.cpp:
166         * rendering/SVGResources.h:
167         * rendering/SVGResourcesCache.cpp:
168         * rendering/SVGResourcesCache.h:
169         * rendering/SVGResourcesCycleSolver.cpp:
170         * rendering/SVGResourcesCycleSolver.h:
171         * rendering/SVGShadowTreeElements.cpp:
172         * rendering/SVGShadowTreeElements.h:
173
174 2011-01-07  Adam Barth  <abarth@webkit.org>
175
176         Rubber-stamped by Eric Seidel.
177
178         Move WebCore to Source
179         https://bugs.webkit.org/show_bug.cgi?id=52050
180
181         Update project files to understand WebCore's new location.  I suspect
182         there will be some follow-up patches after we land this patch.
183
184         * Android.derived.jscbindings.mk:
185         * Android.jscbindings.mk:
186         * Android.v8bindings.mk:
187         * GNUmakefile.am:
188         * WebCore.gyp/WebCore.gyp:
189         * WebCore.pri:
190         * WebCore.pro:
191         * WebCore.vcproj/WebCore.vcproj:
192         * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
193         * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
194
195 2011-01-07  Justin Garcia  <justin.garcia@apple.com>
196
197         Reviewed by Dan Bernstein.
198
199         https://bugs.webkit.org/show_bug.cgi?id=51851
200         Implement RenderSVGInlineText::localCaretRect()
201
202         * rendering/svg/RenderSVGInlineText.cpp:
203         (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
204
205 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
206
207         Unreviewed; Added the missing null pointer check for r75293.
208
209         * dom/Document.cpp:
210         (WebCore::Document::adoptNode):
211
212 2011-01-07  Stephanie Lewis  <slewis@apple.com>
213
214         Reviewed by Geoff Garen.
215
216          <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
217         https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
218         
219         Add a sampler for printing off process memory statistics.
220         Export file mode.
221
222         * WebCore.exp.in:
223
224 2011-01-06  Ryosuke Niwa  <rniwa@webkit.org>
225
226         Reviewed by Adam Barth.
227
228         onbeforeunload is broken for framesets
229         https://bugs.webkit.org/show_bug.cgi?id=19418
230
231         Added beforeunload event support for sub frames. WebKit's implementation tries to match
232         that of Internet Explorer as much as possible. beforeunload event is fired for each and
233         every descendent of a frame that is about to navigate.
234
235         When a value other than null is returned by a beforeunload handler, a confirmation dialog
236         is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
237         for main frames.
238
239         In addition, navigation is forbidden while beforeunload handlers are being called.
240         Setting values to location.href, location.reload, and other means of navigations are thus
241         ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
242
243         Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
244         NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
245
246         Tests: fast/events/before-unload-adopt-subframe-to-outside.html
247                fast/events/before-unload-adopt-within-subframes.html
248                fast/events/before-unload-forbidden-navigation.html
249                fast/events/before-unload-in-multiple-subframes.html
250                fast/events/before-unload-in-subframe.html
251                fast/events/before-unload-javascript-navigation.html
252                fast/events/before-unload-remove-and-add-subframe.html
253                fact/events/before-unload-remove-itself.html
254                fast/events/before-unload-with-subframes.html
255
256        * loader/FrameLoader.cpp:
257        (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
258        descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
259        (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
260        chrome's runBeforeUnloadConfirmPanel as needed.
261        (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
262        * loader/FrameLoader.h:
263        * loader/NavigationScheduler.cpp:
264        (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
265        NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
266        (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
267        (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
268        (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
269        (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
270        * loader/NavigationScheduler.h:
271        (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
272        (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
273        when called on the last instance of NavigationDisablerForBeforeUnload.
274        (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
275        of NavigationDisablerForBeforeUnload left on the stack.
276
277 2011-01-07  Martin Robinson  <mrobinson@igalia.com>
278
279         Build fix for GTK+.
280
281         * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
282         * rendering/RenderFullScreen.cpp:
283         (RenderFullScreen::setAnimating): Guard the call to contentChanged
284         with ENABLED(ACCELERATED_COMPOSITING).
285
286 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
287
288         Unreviewed; speculative fix for Windows debug build.
289
290         * bindings/js/JSBindingsAllInOne.cpp:
291
292 2011-01-07  Ryosuke Niwa  <rniwa@webkit.org>
293
294         Reviewed by Ojan Vafai.
295
296         Adopting an iframe to a child frame results in stack overflow
297         https://bugs.webkit.org/show_bug.cgi?id=52018
298
299         Throws an exception when a document adopts an iframe that is an ancestor
300         of the document in the frame hierarchy. New behavior matches that of Firefox.
301
302         Test: fast/html/adopt-parent-frame.html
303
304         * dom/Document.cpp:
305         (WebCore::Document::adoptNode):
306
307 2011-01-07  Mihai Parparita  <mihaip@chromium.org>
308
309         Reviewed by Darin Fisher.
310
311         [Chromium] Scrollbar code cleanup
312         https://bugs.webkit.org/show_bug.cgi?id=52073
313
314         Scrollbar code cleanup:
315         - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
316           ScrollbarThemeChromiumMac.{mm|h}
317         - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
318           WebThemeEngine is permanent
319         - Fix typo in Linux scrollbar enum name
320
321         No new tests (compiles).
322
323         * WebCore.gypi:
324         * platform/chromium/ChromiumBridge.h:
325         * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
326         (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
327         * platform/chromium/ScrollbarThemeChromiumMac.mm:
328         (WebCore::scrollbarStateToThemeState):
329         (WebCore::ScrollbarThemeChromiumMac::paint):
330
331 2011-01-07  Jer Noble  <jer.noble@apple.com>
332
333         GTK Linux build fix: isDocumentRunningFullScreenAnimation should
334         be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
335
336         * page/FrameView.cpp:
337
338 2011-01-07  Rafael Weinstein  <rafaelw@chromium.org>
339
340         Reviewed by Eric Seidel.
341
342         Cleanup: Fold shadowParentNode into shadowHost
343         https://bugs.webkit.org/show_bug.cgi?id=51059
344
345         Replaces all uses of shadowParentNode.
346
347         No new tests because no behavior has changed.
348
349         * css/CSSStyleSelector.cpp:
350         (WebCore::CSSStyleSelector::initForStyleResolve):
351         * dom/Node.cpp:
352         (WebCore::Node::shadowHost):
353         (WebCore::Node::shadowAncestorNode):
354         (WebCore::eventTargetRespectingSVGTargetRules):
355         (WebCore::Node::getEventAncestors):
356         * dom/Node.h:
357         * editing/Editor.cpp:
358         (WebCore::Editor::findString):
359         * page/DragController.cpp:
360         (WebCore::asFileInput):
361         * page/EventHandler.cpp:
362         (WebCore::EventHandler::handleMousePressEvent):
363         (WebCore::instanceAssociatedWithShadowTreeElement):
364         (WebCore::EventHandler::dispatchMouseEvent):
365         * rendering/RenderBlock.cpp:
366         (WebCore::RenderBlock::hasLineIfEmpty):
367         * rendering/RenderSVGShadowTreeRootContainer.cpp:
368         (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
369         * svg/SVGStyledElement.cpp:
370         (WebCore::SVGStyledElement::title):
371
372 2011-01-07  Chris Marrin  <cmarrin@apple.com>
373
374         Unreviewed.
375
376         I mistakenly included a Windows only file in a
377         cross platform file. 
378
379         * platform/graphics/ca/GraphicsLayerCA.cpp:
380
381 2011-01-07  Chris Marrin  <cmarrin@apple.com>
382
383         Unreviewed.
384
385         Get rid of include of <QuartzCore/QuartzCore.h>
386
387         * platform/graphics/ca/GraphicsLayerCA.cpp:
388
389 2011-01-07  Jer Noble  <jer.noble@apple.com>
390
391         Further build fixes.  Add a ENABLE(FULLSCREEN_API) guard around
392         the implementation of requiresCompositingfForFullScreen.
393
394         * rendering/RenderLayerCompositor.cpp:
395         (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
396
397 2011-01-07  Jer Noble  <jer.noble@apple.com>
398
399         No review, build fix only.  Removed parameter who was causing
400         a warning in Release builds.
401
402         * dom/Document.cpp:
403         (WebCore::Document::webkitDidExitFullScreenForElement):
404
405 2011-01-07  Chris Marrin  <cmarrin@apple.com>
406
407         Unreviewed.
408
409         Use new wkCACFLayerGetContextUserData function
410
411         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
412
413 2011-01-07  James Robinson  <jamesr@chromium.org>
414
415         Fix compile bustage due to bad merge in 75276.
416
417         * page/animation/AnimationController.cpp:
418         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
419
420 2010-12-17  Jer Noble  <jer@kokode.apple.com>
421
422         Reviewed by Simon Fraser.
423
424         Implement WebKit Full Screen support.
425         https://bugs.webkit.org/show_bug.cgi?id=49481
426         rdar://problem/8247444
427
428         Mark for export all those WebCore functions needed by WebFullscreenController.
429
430         * WebCore.exp.in:
431
432 2010-12-17  Jer Noble  <jer@kokode.apple.com>
433
434         Reviewed by Simon Fraser.
435
436         Implement WebKit Full Screen support.
437         https://bugs.webkit.org/show_bug.cgi?id=49481
438         rdar://problem/8247444
439         
440         screenRect is useful for more than just HTMLMediaElements.  Promote it into
441         Element.
442
443         * dom/Element.cpp: Moved into Element from HTMLMediaElement.
444         * dom/Element.h: Ditto.
445         * dom/Node.cpp:
446         * html/HTMLMediaElement.cpp: Moved screenRect into Element.
447         * html/HTMLMediaElement.h: Ditto.
448         * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
449
450 2010-12-17  Jer Noble  <jer@kokode.apple.com>
451
452         Reviewed by Simon Fraser.
453
454         Implement WebKit Full Screen support.
455         https://bugs.webkit.org/show_bug.cgi?id=49481
456         rdar://problem/8247444
457
458         The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
459         be rendered outside its original Frame. Because of this, there are a few areas of the
460         rendering code which need to be special cased: RenderFullScreen layers should not be clipped
461         to the viewport, as they will almost always be rendering outside the viewport area;
462         RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
463         the client will likely want to reparent the platformLayer into their own fullscreen platform
464         window; the FrameView must update the RenderFullScreen graphics layer tree separately from
465         the root layer, as the two trees are disconnected.
466
467         * page/FrameView.cpp:
468         (WebCore::FrameView::updateCompositingLayers):  Special treatment for fullscreen renderer.
469         (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
470         (WebCore::FrameView::paintContents): Ditto.
471         * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
472         * rendering/RenderLayer.cpp: 
473         (WebCore::RenderLayer::contentChanged): Add support for above.
474         * rendering/RenderLayerBacking.cpp:
475         (WebCore::layerOrAncestorIsFullScreen): New function.
476         (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
477         * rendering/RenderLayerCompositor.cpp:
478         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
479         (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
480         (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
481         * rendering/RenderLayerCompositor.h:
482
483 2010-12-17  Jer Noble  <jer@kokode.apple.com>
484
485         Reviewed by Simon Fraser.
486
487         Implemented non-accelerated fullscreen support.  The Document will now vend a RenderFullScreen object for clients to
488         use to relocate the fullscreen element subtree.
489
490         https://bugs.webkit.org/show_bug.cgi?id=49481
491         rdar://problem/8247444
492
493         * css/CSSStyleSelector.cpp:
494         (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
495         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
496         * dom/Document.cpp:
497         (WebCore::Document::Document): Initialize m_fullScreenRenderer.
498         (WebCore::Document::detach): Call setFullScreenRenderer(0).
499         (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
500         (WebCore::Document::webkitWillEnterFullScreenForElement):  Detach the fullscreen element to cause
501             a new RenderFullScreen renderer to be created with the new fullscreen element.
502         (WebCore::Document::webkitDidEnterFullScreenForElement):  Notify clients of a fullscreen change
503             here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
504             to webkitfullscreenchange events.
505         (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
506         (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
507         (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
508         (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
509             size; this keeps clients from having to access the renderer's style directly.
510         (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
511         * dom/Document.h:
512         (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
513         (WebCore::Document::fullScreenRenderer): Accessor.
514         * dom/Document.idl:
515         * dom/Node.cpp:
516         (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
517             object to insert between the fullscreen element and its parent.
518         * page/ChromeClient.h:
519         (WebCore::ChromeClient::fullScreenRendererChanged): Added.
520         * rendering/MediaControlElements.cpp:
521         (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
522
523 2010-12-17  Jer Noble  <jer@kokode.apple.com>
524
525         Reviewed by Simon Fraser.
526
527         Implement WebKit Full Screen support.
528         https://bugs.webkit.org/show_bug.cgi?id=49481
529         rdar://problem/8247444
530         
531         This patch introduces a new RenderObject type: RenderFullScreen.  The RenderFullScreen renderer 
532         will be used to implement new FullScreen APIs.  Because the RenderFullScreen object will be the
533         parent of the current fullscreen element, the style rules for fullscreen objects must change to
534         match.
535         
536         * WebCore.xcodeproj/project.pbxproj:
537         * rendering/RenderFullScreen.cpp: Added.
538         (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
539         (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
540             for RenderFullScreen objects.
541         * rendering/RenderFullScreen.h: Added.
542         (WebCore::RenderFullScreen::isRenderFullScreen): Added.  Overrides the RenderObject version.
543         * rendering/RenderObject.h:
544         (WebCore::RenderObject::isRenderFullScreen): Added.  Used for type-checking RenderFullScreen objects.
545         * css/fullscreen.css:  Modified the contained fullscreen styles.
546
547
548 2011-01-07  James Robinson  <jamesr@chromium.org>
549
550         Revert "Implement mozilla's animationTime property"
551         https://bugs.webkit.org/show_bug.cgi?id=51952
552
553         This approach isn't quite right.
554
555         * Android.mk:
556         * CMakeLists.txt:
557         * GNUmakefile.am:
558         * WebCore.exp.in:
559         * WebCore.gypi:
560         * WebCore.pro:
561         * WebCore.vcproj/WebCore.vcproj:
562         * WebCore.xcodeproj/project.pbxproj:
563         * page/DOMWindow.cpp:
564         * page/DOMWindow.h:
565         * page/DOMWindow.idl:
566         * page/Frame.cpp:
567         * page/Frame.h:
568         * page/Page.cpp:
569         (WebCore::Page::Page):
570         * page/Page.h:
571         * page/animation/AnimationController.cpp:
572         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
573         * page/animation/AnimationTimeController.cpp: Removed.
574         * page/animation/AnimationTimeController.h: Removed.
575
576 2011-01-07  Jan Erik Hanssen  <jhanssen@sencha.com>
577
578         Reviewed by Andreas Kling.
579
580         [Qt] Black text on black buttons using a dark theme
581         https://bugs.webkit.org/show_bug.cgi?id=35024
582
583         Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
584
585         * platform/qt/RenderThemeQt.cpp:
586         (WebCore::RenderThemeQt::systemColor):
587         * platform/qt/RenderThemeQt.h:
588
589 2011-01-05  Adrienne Walker  <enne@google.com>
590
591         Reviewed by Kenneth Russell.
592
593         Add WEBKIT_lose_context WebGL extension.
594         https://bugs.webkit.org/show_bug.cgi?id=51492
595
596         Tests: fast/canvas/webgl/context-lost-restored.html
597                fast/canvas/webgl/context-lost.html
598
599         * CMakeLists.txt:
600         * DerivedSources.make:
601         * GNUmakefile.am:
602         * WebCore.gypi:
603         * WebCore.pri:
604         * WebCore.pro:
605         * WebCore.xcodeproj/project.pbxproj:
606         * bindings/js/JSWebGLRenderingContextCustom.cpp:
607         (WebCore::toJS):
608         (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
609         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
610         (WebCore::toV8Object):
611         (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
612         * html/canvas/WebGLExtension.h:
613         * html/canvas/WebGLRenderingContext.cpp:
614         (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
615         (WebCore::WebGLRenderingContext::getExtension):
616         (WebCore::WebGLRenderingContext::getSupportedExtensions):
617         (WebCore::WebGLRenderingContext::forceLostContext):
618         (WebCore::WebGLRenderingContext::onLostContext):
619         (WebCore::WebGLRenderingContext::getNumberOfExtensions):
620         (WebCore::WebGLRenderingContext::getExtensionNumber):
621         * html/canvas/WebGLRenderingContext.h:
622         * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
623         (WebCore::WebKitLoseContext::WebKitLoseContext):
624         (WebCore::WebKitLoseContext::~WebKitLoseContext):
625         (WebCore::WebKitLoseContext::getName):
626         (WebCore::WebKitLoseContext::create):
627         (WebCore::WebKitLoseContext::loseContext):
628         * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
629         * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
630
631 2011-01-07  Chris Marrin  <cmarrin@apple.com>
632
633         Unreviewed.
634
635         Build fix for Chromium. Missing include.
636
637         * page/animation/AnimationBase.cpp:
638
639 2011-01-07  Chris Marrin  <cmarrin@apple.com>
640
641         Unreviewed.
642
643         Build fix.
644
645         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
646
647 2011-01-06  Gavin Barraclough  <barraclough@apple.com>
648
649         Reviewed by Geoff Garen.
650
651         Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
652
653         The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
654         destructor early, in order to release wrappers once we know we no longer intend to use them.
655         Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
656         lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
657         A sequence of events that triggers the bug would look like this:
658
659         (1) Create a DOMWrapperWorld.
660         (2) Register a timer in the world.
661         (3) Call unregisterWorld() on the world.
662         (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
663         (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
664             called forgetWorld() none exists.
665         (6) Attempt to add a wrapper to a NULL map.
666
667         Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
668
669         * WebCore.exp.in:
670         * bindings/js/DOMWrapperWorld.cpp:
671         (WebCore::DOMWrapperWorld::DOMWrapperWorld):
672         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
673         (WebCore::DOMWrapperWorld::clearWrappers):
674         * bindings/js/DOMWrapperWorld.h:
675
676 2011-01-07  Chris Marrin  <cmarrin@apple.com>
677
678         Rubber-stamped by Simon Fraser.
679
680         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
681         https://bugs.webkit.org/show_bug.cgi?id=49388
682
683         Final step in unifying GraphicsLayer logic across Win and Mac. This 
684         implements the Windows side classes for PlatformCALayer and supporting
685         classes. Also changed MediaPlayer to use new PlatformCALayerClient
686         so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
687         WKCACFLayerRenderer now does the task of notifying animations of their
688         start time. Also commented out an assert in AnimationBase because
689         AnimationController's frame time is not in sync with the new 
690         AnimationTimeController. I've opened a new bug for that issue:
691
692             https://bugs.webkit.org/show_bug.cgi?id=52037
693             
694         This also includes the Mac side changes backed out in 
695         http://trac.webkit.org/changeset/75227.
696
697         * WebCore.vcproj/WebCore.vcproj:
698         * WebCore.vcproj/WebCoreCommon.vsprops:
699         * WebCore.vcproj/copyForwardingHeaders.cmd:
700         * WebCore.xcodeproj/project.pbxproj:
701         * config.h:
702         * page/animation/AnimationBase.cpp:
703         (WebCore::AnimationBase::freezeAtTime):
704         (WebCore::AnimationBase::getElapsedTime):
705         * page/animation/AnimationController.cpp:
706         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
707         * page/animation/KeyframeAnimation.cpp:
708         (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
709         * platform/graphics/GraphicsLayer.h:
710         (WebCore::GraphicsLayer::layerDidDisplay):
711         (WebCore::GraphicsLayer::showDebugBorders):
712         (WebCore::GraphicsLayer::showRepaintCounter):
713         * platform/graphics/ca/GraphicsLayerCA.cpp:
714         (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
715         (WebCore::GraphicsLayerCA::setContentsToImage):
716         (WebCore::GraphicsLayerCA::setContentsToMedia):
717         (WebCore::GraphicsLayerCA::layerDidDisplay):
718         (WebCore::GraphicsLayerCA::updateSublayerList):
719         * platform/graphics/ca/GraphicsLayerCA.h:
720         (WebCore::GraphicsLayerCA::platformCALayer):
721         (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
722         (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
723         (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
724         (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
725         (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
726         (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
727         (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
728         (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
729         (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
730         (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
731         * platform/graphics/ca/PlatformCAAnimation.h:
732         * platform/graphics/ca/PlatformCALayer.h:
733         (WebCore::PlatformCALayer::owner):
734         (WebCore::PlatformCALayer::animationStarted):
735         * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
736         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
737         (PlatformCALayer::setOwner):
738         (PlatformCALayer::create):
739         (PlatformCALayer::PlatformCALayer):
740         (PlatformCALayer::contents):
741         (PlatformCALayer::setContents):
742         * platform/graphics/ca/win: Added.
743         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
744         * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
745         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
746         * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
747         (WebCore::PlatformCALayerWinInternal::owner):
748         * platform/graphics/mac/WebGLLayer.mm:
749         (-[WebGLLayer display]):
750         * platform/graphics/mac/WebLayer.h:
751         * platform/graphics/mac/WebLayer.mm:
752         (drawLayerContents):
753         (setLayerNeedsDisplayInRect):
754         (-[WebLayer setNeedsDisplay]):
755         (-[WebLayer display]):
756         * platform/graphics/mac/WebTiledLayer.mm:
757         (-[WebTiledLayer setNeedsDisplay]):
758         (-[WebTiledLayer display]):
759         * platform/graphics/win/GraphicsContextCGWin.cpp:
760         (WebCore::CGContextWithHDC):
761         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
762         (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
763         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
764         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
765         (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
766         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
767         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
768         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
769         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
770         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
771         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
772         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
773         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
774         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
775         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
776         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
777         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
778         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
779         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
780         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
781         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
782         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
783         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
784         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
785         (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
786         (WebCore::MediaPlayerPrivate::createLayerForMovie):
787         * platform/graphics/win/WKCACFLayerRenderer.cpp:
788         (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
789         (WebCore::WKCACFLayerRenderer::rootLayer):
790         (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
791         (WebCore::WKCACFLayerRenderer::setRootChildLayer):
792         (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
793         (WebCore::WKCACFLayerRenderer::destroyRenderer):
794         (WebCore::WKCACFLayerRenderer::render):
795         * platform/graphics/win/WKCACFLayerRenderer.h:
796         (WebCore::WKCACFLayerRendererClient::animationsStarted):
797         (WebCore::WKCACFLayerRendererClient::syncCompositingState):
798         * rendering/RenderLayerBacking.cpp:
799         (WebCore::RenderLayerBacking::showDebugBorders):
800         (WebCore::RenderLayerBacking::showRepaintCounter):
801         * rendering/RenderLayerCompositor.cpp:
802         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
803         * rendering/RenderLayerCompositor.h:
804         (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
805         (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
806         (WebCore::RenderLayerCompositor::notifyAnimationStarted):
807         (WebCore::RenderLayerCompositor::notifySyncRequired):
808         (WebCore::RenderLayerCompositor::paintContents):
809         (WebCore::RenderLayerCompositor::showDebugBorders):
810         (WebCore::RenderLayerCompositor::showRepaintCounter):
811
812 2011-01-07  Nate Chapin  <japhet@chromium.org>
813
814         Reviewed by Darin Fisher.
815
816         Let PingLoader send cookies if FrameLoaderClient permits it.
817         https://bugs.webkit.org/show_bug.cgi?id=51898
818
819         Test: http/tests/navigation/ping-cookie.html
820
821         * loader/PingLoader.cpp:
822         (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
823             at load start time, since we won't be able to call 
824             FrameLoaderClient::shouldUseCredentialStorage() later.
825         * loader/PingLoader.h:
826         (WebCore::PingLoader::shouldUseCredentialStorage):
827
828 2011-01-07  Xan Lopez  <xlopez@igalia.com>
829
830         Unreviewed, rolling out r75256.
831         http://trac.webkit.org/changeset/75256
832         https://bugs.webkit.org/show_bug.cgi?id=50869
833
834         Broke GTK+ canvas tests
835
836         * platform/graphics/cairo/PathCairo.cpp:
837         (WebCore::Path::addArc):
838
839 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
840
841         Reviewed by Martin Robinson.
842
843         [GTK] Port scrollbar painting to GtkStyleContext
844         https://bugs.webkit.org/show_bug.cgi?id=52051
845
846         Use GtkStyleContext API to paint scrollbars when building with
847         GTK+ 3.x.
848
849         No new tests. This should not change functionality.
850
851         * platform/gtk/RenderThemeGtk.h:
852         * platform/gtk/RenderThemeGtk3.cpp:
853         (WebCore::RenderThemeGtk::gtkScrollbarStyle):
854         * platform/gtk/ScrollbarThemeGtk.cpp:
855         * platform/gtk/ScrollbarThemeGtk.h:
856         * platform/gtk/ScrollbarThemeGtk2.cpp:
857         (WebCore::gtkStyleSetCallback):
858         (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
859         * platform/gtk/ScrollbarThemeGtk3.cpp:
860         (WebCore::gtkStyleChangedCallback):
861         (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
862         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
863         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
864         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
865         (WebCore::ScrollbarThemeGtk::paintThumb):
866         (WebCore::ScrollbarThemeGtk::paintButton):
867
868 2011-01-07  Dan Bernstein  <mitz@apple.com>
869
870         Reviewed by Darin Adler.
871
872         <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
873         https://bugs.webkit.org/show_bug.cgi?id=51267
874
875         Test: fast/text/emphasis-avoid-ruby.html
876
877         * rendering/InlineFlowBox.cpp:
878         (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
879         there are text emphasis marks.
880         (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
881         (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
882         * rendering/InlineTextBox.cpp:
883         (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
884         position if the text is style with emphasis marks and there isn’t a ruby annotation that should
885         suppress them. Otherwise returns false.
886         (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
887         be painted.
888         * rendering/InlineTextBox.h:
889
890 2011-01-07  Alejandro G. Castro  <alex@igalia.com>
891
892         Reviewed by Martin Robinson.
893
894         [cairo] Rendering a lot of arcs on top of each other causes time
895         outs in some tests
896         https://bugs.webkit.org/show_bug.cgi?id=50869
897
898         We avoid the situation where we have to render the same arc
899         multiple times over itself. Now it renders just one oval and
900         moves to the end angle.
901
902         * platform/graphics/cairo/PathCairo.cpp:
903         (WebCore::Path::addArc):
904
905 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
906
907         Reviewed by Martin Robinson.
908
909         [GTK] Port buttons painting to GtkStyleContext
910         https://bugs.webkit.org/show_bug.cgi?id=51812
911
912         Use GtkStyleContext API to paint buttons when building with GTK+
913         3.x.
914
915         No new tests. This should not change functionality.
916
917         * platform/gtk/RenderThemeGtk3.cpp:
918         (WebCore::adjustRectForFocus):
919         (WebCore::RenderThemeGtk::adjustRepaintRect):
920         (WebCore::RenderThemeGtk::paintButton):
921
922 2011-01-07  Zhenyao Mo  <zmo@google.com>
923
924         Unreviewed, build fix.
925
926         * html/canvas/WebGLRenderingContext.cpp:
927         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
928
929 2011-01-06  Zhenyao Mo  <zmo@google.com>
930
931         Reviewed by Kenneth Russell.
932
933         copyTexSubImage2D shouldn't have undefined pixels
934         https://bugs.webkit.org/show_bug.cgi?id=51559
935
936         * html/canvas/WebGLRenderingContext.cpp:
937         (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
938         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
939         (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
940         (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
941         * html/canvas/WebGLRenderingContext.h:
942         * html/canvas/WebGLTexture.cpp:
943         (WebCore::WebGLTexture::getType): Expose the type of a texture.
944         * html/canvas/WebGLTexture.h:
945
946 2011-01-07  Takashi Toyoshima  <toyoshim@google.com>
947
948         Reviewed by Kenneth Russell.
949
950         cleanupAfterGraphicsCall() is never called in
951         WebGLRenderingContext::checkFramebufferStatus()
952         https://bugs.webkit.org/show_bug.cgi?id=51668
953
954         No new tests. This is a trivial bug.
955
956         * html/canvas/WebGLRenderingContext.cpp:
957         (WebCore::WebGLRenderingContext::checkFramebufferStatus):
958
959 2011-01-07  Mario Sanchez Prada  <msanchez@igalia.com>
960
961         Reviewed by Chris Fleizach.
962
963         GTK: AX: atk tests need to be updated after recent changes
964         https://bugs.webkit.org/show_bug.cgi?id=51932
965
966         Make sure we can always get the right accesssible parent for an
967         AtkObject when traversing the hierarchy bottom up.
968
969         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
970         (isRootObject): New function to check whether an
971         AccessibilityObject is the root one or not, according to the
972         latest changes in the hierarchy.
973         (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
974         GAIL as the parent of the root AtkObject from WebCore.
975         (webkit_accessible_get_parent): Use atkParentOfRootObject.
976         (webkit_accessible_get_index_in_parent): Ditto.
977         (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
978         AtkObject's of role ATK_ROLE_SCROLLED_PANE.
979
980 2011-01-07  Zhenyao Mo  <zmo@google.com>
981
982         Unreviewed, Mac 32-bit build fix.
983         Use float instead of double in GL function arguments to avoid implicit type down casting.
984
985         * html/canvas/WebGLRenderingContext.cpp:
986         (WebCore::WebGLRenderingContext::blendColor):
987         (WebCore::WebGLRenderingContext::clearColor):
988         (WebCore::WebGLRenderingContext::clearDepth):
989         (WebCore::WebGLRenderingContext::depthRange):
990         (WebCore::WebGLRenderingContext::lineWidth):
991         (WebCore::WebGLRenderingContext::polygonOffset):
992         (WebCore::WebGLRenderingContext::sampleCoverage):
993         * html/canvas/WebGLRenderingContext.h:
994         * html/canvas/WebGLRenderingContext.idl:
995
996 2011-01-07  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
997
998         Reviewed by Xan Lopez.
999
1000         [GTK] Port slider painting to GtkStyleContext
1001         https://bugs.webkit.org/show_bug.cgi?id=51874
1002
1003         Use GtkStyleContext API to paint sliders when building with GTK+
1004         3.x. Also move the code to adjust media slider to its own method
1005         in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
1006
1007         No new tests. This should not change functionality.
1008
1009         * platform/gtk/RenderThemeGtk.cpp:
1010         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
1011         * platform/gtk/RenderThemeGtk.h:
1012         * platform/gtk/RenderThemeGtk2.cpp:
1013         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1014         * platform/gtk/RenderThemeGtk3.cpp:
1015         (WebCore::RenderThemeGtk::paintSliderTrack):
1016         (WebCore::RenderThemeGtk::paintSliderThumb):
1017         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1018
1019 2011-01-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1020
1021         Reviewed by Andreas Kling.
1022
1023         [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
1024         https://bugs.webkit.org/show_bug.cgi?id=51992
1025
1026         Add the missing header. CString is used in debug by the calls to LOG().
1027
1028         * fileapi/FileReader.cpp:
1029
1030 2011-01-07  Alejandro G. Castro  <alex@igalia.com>
1031
1032         Reviewed by Martin Robinson.
1033
1034         Cairo's ContextShadow may mis-render some box shadows
1035         https://bugs.webkit.org/show_bug.cgi?id=51374
1036
1037         The space required for the internal shadow of the corners was not
1038         correctly considered.
1039
1040         * platform/graphics/cairo/ContextShadowCairo.cpp:
1041         (WebCore::ContextShadow::drawRectShadow):
1042
1043 2011-01-06  Adam Barth  <abarth@webkit.org>
1044
1045         Reviewed by Darin Adler.
1046
1047         REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
1048         https://bugs.webkit.org/show_bug.cgi?id=52013
1049
1050         When excluding line numbers for composite strings, we forgot to exclude
1051         the line number for the current string!
1052
1053         Test: fast/parser/line-number-composite-segmented-string.html
1054
1055         * platform/text/SegmentedString.cpp:
1056         (WebCore::SegmentedString::setExcludeLineNumbers):
1057
1058 2011-01-06  Chris Marrin  <cmarrin@apple.com>
1059
1060         Unreviewed.
1061
1062         Back out changes in http://trac.webkit.org/changeset/75199
1063         This breaks the Windows build. Fixing it on that side. Until
1064         then I'll back this out.
1065
1066 2011-01-06  Jenn Braithwaite  <jennb@chromium.org>
1067
1068         Reviewed by Dmitry Titov.
1069
1070         When a live frame is moved between pages, some plug-in DOM methods cease to function
1071         https://bugs.webkit.org/show_bug.cgi?id=45770
1072
1073         Test: fast/frames/iframe-reparenting-plugins.html
1074
1075         * page/Frame.cpp:
1076         (WebCore::Frame::~Frame):
1077         (WebCore::Frame::addObserver):
1078         (WebCore::Frame::removeObserver):
1079         * page/Frame.h:
1080         (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
1081         Added observer to be notified when frame is destroyed.
1082         * page/Page.cpp:
1083         (WebCore::Page::~Page):
1084         (WebCore::Page::refreshPlugins):
1085         PluginData no longer stores page pointer.
1086         * plugins/DOMMimeType.cpp:
1087         (WebCore::DOMMimeType::DOMMimeType):
1088         (WebCore::DOMMimeType::~DOMMimeType):
1089         (WebCore::DOMMimeType::enabledPlugin):
1090         * plugins/DOMMimeType.h:
1091         (WebCore::DOMMimeType::create):
1092         (WebCore::DOMMimeType::frameDestroyed):
1093         Store frame instead of page pointer in DOMMimeType.
1094         * plugins/DOMMimeTypeArray.cpp:
1095         (WebCore::DOMMimeTypeArray::item):
1096         (WebCore::DOMMimeTypeArray::namedItem):
1097         Provide frame to create DOMMimeType.
1098         * plugins/DOMPlugin.cpp:
1099         (WebCore::DOMPlugin::DOMPlugin):
1100         (WebCore::DOMPlugin::~DOMPlugin):
1101         (WebCore::DOMPlugin::item):
1102         (WebCore::DOMPlugin::namedItem):
1103         * plugins/DOMPlugin.h:
1104         (WebCore::DOMPlugin::create):
1105         (WebCore::DOMPlugin::frameDestroyed):
1106         Store frame instead of page pointer in DOMPlugin.
1107         * plugins/DOMPluginArray.cpp:
1108         (WebCore::DOMPluginArray::item):
1109         (WebCore::DOMPluginArray::namedItem):
1110         Provide frame to create DOMPlugin.
1111         * plugins/PluginData.cpp:
1112         (WebCore::PluginData::PluginData):
1113         (WebCore::PluginData::initPlugins):
1114         * plugins/PluginData.h:
1115         No longer stores a pointer to the page.
1116         Added page parameter to initPlugins.
1117         * plugins/PluginDataNone.cpp:
1118         (WebCore::PluginData::initPlugins):
1119         * plugins/chromium/PluginDataChromium.cpp:
1120         (WebCore::PluginData::initPlugins):
1121         * plugins/gtk/PluginDataGtk.cpp:
1122         (WebCore::PluginData::initPlugins):
1123         * plugins/wx/PluginDataWx.cpp:
1124         (WebCore::PluginData::initPlugins):
1125         Updated platforms to add (unused) page parameter to initPlugins.
1126
1127 2011-01-05  Zhenyao Mo  <zmo@google.com>
1128
1129         Reviewed by Kenneth Russell.
1130
1131         Define GC3D types to match GL types and use them in GraphicsContext3D
1132         https://bugs.webkit.org/show_bug.cgi?id=45557
1133
1134         * html/canvas/WebGLRenderingContext.cpp:
1135         (WebCore::WebGLRenderingContext::readPixels):
1136         (WebCore::WebGLRenderingContext::validateTexFuncData):
1137         * platform/graphics/GraphicsContext3D.cpp:
1138         (WebCore::GraphicsContext3D::texImage2DResourceSafe):
1139         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1140         (WebCore::GraphicsContext3D::extractImageData):
1141         (WebCore::GraphicsContext3D::extractTextureData):
1142         * platform/graphics/GraphicsContext3D.h:
1143         * platform/graphics/cg/GraphicsContext3DCG.cpp:
1144         (WebCore::GraphicsContext3D::getImageData):
1145         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1146         (WebCore::SharedGraphicsContext3D::enable):
1147         (WebCore::SharedGraphicsContext3D::disable):
1148         (WebCore::SharedGraphicsContext3D::clear):
1149         (WebCore::SharedGraphicsContext3D::drawArrays):
1150         (WebCore::SharedGraphicsContext3D::getError):
1151         (WebCore::SharedGraphicsContext3D::getIntegerv):
1152         (WebCore::SharedGraphicsContext3D::createFramebuffer):
1153         (WebCore::SharedGraphicsContext3D::createTexture):
1154         (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
1155         (WebCore::SharedGraphicsContext3D::deleteTexture):
1156         (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
1157         (WebCore::SharedGraphicsContext3D::texParameteri):
1158         (WebCore::SharedGraphicsContext3D::texImage2D):
1159         (WebCore::SharedGraphicsContext3D::texSubImage2D):
1160         (WebCore::SharedGraphicsContext3D::readPixels):
1161         (WebCore::SharedGraphicsContext3D::setActiveTexture):
1162         (WebCore::SharedGraphicsContext3D::bindTexture):
1163         (WebCore::SharedGraphicsContext3D::bindFramebuffer):
1164         * platform/graphics/gpu/SharedGraphicsContext3D.h:
1165         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1166         (WebCore::GraphicsContext3D::activeTexture):
1167         (WebCore::GraphicsContext3D::attachShader):
1168         (WebCore::GraphicsContext3D::bindAttribLocation):
1169         (WebCore::GraphicsContext3D::bindBuffer):
1170         (WebCore::GraphicsContext3D::bindFramebuffer):
1171         (WebCore::GraphicsContext3D::bindRenderbuffer):
1172         (WebCore::GraphicsContext3D::bindTexture):
1173         (WebCore::GraphicsContext3D::blendColor):
1174         (WebCore::GraphicsContext3D::blendEquation):
1175         (WebCore::GraphicsContext3D::blendEquationSeparate):
1176         (WebCore::GraphicsContext3D::blendFunc):
1177         (WebCore::GraphicsContext3D::blendFuncSeparate):
1178         (WebCore::GraphicsContext3D::bufferData):
1179         (WebCore::GraphicsContext3D::bufferSubData):
1180         (WebCore::GraphicsContext3D::checkFramebufferStatus):
1181         (WebCore::GraphicsContext3D::clearColor):
1182         (WebCore::GraphicsContext3D::clear):
1183         (WebCore::GraphicsContext3D::clearDepth):
1184         (WebCore::GraphicsContext3D::clearStencil):
1185         (WebCore::GraphicsContext3D::colorMask):
1186         (WebCore::GraphicsContext3D::compileShader):
1187         (WebCore::GraphicsContext3D::copyTexImage2D):
1188         (WebCore::GraphicsContext3D::copyTexSubImage2D):
1189         (WebCore::GraphicsContext3D::cullFace):
1190         (WebCore::GraphicsContext3D::depthFunc):
1191         (WebCore::GraphicsContext3D::depthMask):
1192         (WebCore::GraphicsContext3D::depthRange):
1193         (WebCore::GraphicsContext3D::detachShader):
1194         (WebCore::GraphicsContext3D::disable):
1195         (WebCore::GraphicsContext3D::disableVertexAttribArray):
1196         (WebCore::GraphicsContext3D::drawArrays):
1197         (WebCore::GraphicsContext3D::drawElements):
1198         (WebCore::GraphicsContext3D::enable):
1199         (WebCore::GraphicsContext3D::enableVertexAttribArray):
1200         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1201         (WebCore::GraphicsContext3D::framebufferTexture2D):
1202         (WebCore::GraphicsContext3D::frontFace):
1203         (WebCore::GraphicsContext3D::generateMipmap):
1204         (WebCore::GraphicsContext3D::getActiveAttrib):
1205         (WebCore::GraphicsContext3D::getActiveUniform):
1206         (WebCore::GraphicsContext3D::getAttachedShaders):
1207         (WebCore::GraphicsContext3D::getAttribLocation):
1208         (WebCore::GraphicsContext3D::getError):
1209         (WebCore::GraphicsContext3D::getString):
1210         (WebCore::GraphicsContext3D::hint):
1211         (WebCore::GraphicsContext3D::isBuffer):
1212         (WebCore::GraphicsContext3D::isEnabled):
1213         (WebCore::GraphicsContext3D::isFramebuffer):
1214         (WebCore::GraphicsContext3D::isProgram):
1215         (WebCore::GraphicsContext3D::isRenderbuffer):
1216         (WebCore::GraphicsContext3D::isShader):
1217         (WebCore::GraphicsContext3D::isTexture):
1218         (WebCore::GraphicsContext3D::lineWidth):
1219         (WebCore::GraphicsContext3D::linkProgram):
1220         (WebCore::GraphicsContext3D::pixelStorei):
1221         (WebCore::GraphicsContext3D::polygonOffset):
1222         (WebCore::GraphicsContext3D::readPixels):
1223         (WebCore::GraphicsContext3D::renderbufferStorage):
1224         (WebCore::GraphicsContext3D::sampleCoverage):
1225         (WebCore::GraphicsContext3D::scissor):
1226         (WebCore::GraphicsContext3D::stencilFunc):
1227         (WebCore::GraphicsContext3D::stencilFuncSeparate):
1228         (WebCore::GraphicsContext3D::stencilMask):
1229         (WebCore::GraphicsContext3D::stencilMaskSeparate):
1230         (WebCore::GraphicsContext3D::stencilOp):
1231         (WebCore::GraphicsContext3D::stencilOpSeparate):
1232         (WebCore::GraphicsContext3D::texParameterf):
1233         (WebCore::GraphicsContext3D::texParameteri):
1234         (WebCore::GraphicsContext3D::uniform1f):
1235         (WebCore::GraphicsContext3D::uniform1fv):
1236         (WebCore::GraphicsContext3D::uniform2f):
1237         (WebCore::GraphicsContext3D::uniform2fv):
1238         (WebCore::GraphicsContext3D::uniform3f):
1239         (WebCore::GraphicsContext3D::uniform3fv):
1240         (WebCore::GraphicsContext3D::uniform4f):
1241         (WebCore::GraphicsContext3D::uniform4fv):
1242         (WebCore::GraphicsContext3D::uniform1i):
1243         (WebCore::GraphicsContext3D::uniform1iv):
1244         (WebCore::GraphicsContext3D::uniform2i):
1245         (WebCore::GraphicsContext3D::uniform2iv):
1246         (WebCore::GraphicsContext3D::uniform3i):
1247         (WebCore::GraphicsContext3D::uniform3iv):
1248         (WebCore::GraphicsContext3D::uniform4i):
1249         (WebCore::GraphicsContext3D::uniform4iv):
1250         (WebCore::GraphicsContext3D::uniformMatrix2fv):
1251         (WebCore::GraphicsContext3D::uniformMatrix3fv):
1252         (WebCore::GraphicsContext3D::uniformMatrix4fv):
1253         (WebCore::GraphicsContext3D::useProgram):
1254         (WebCore::GraphicsContext3D::validateProgram):
1255         (WebCore::GraphicsContext3D::vertexAttrib1f):
1256         (WebCore::GraphicsContext3D::vertexAttrib1fv):
1257         (WebCore::GraphicsContext3D::vertexAttrib2f):
1258         (WebCore::GraphicsContext3D::vertexAttrib2fv):
1259         (WebCore::GraphicsContext3D::vertexAttrib3f):
1260         (WebCore::GraphicsContext3D::vertexAttrib3fv):
1261         (WebCore::GraphicsContext3D::vertexAttrib4f):
1262         (WebCore::GraphicsContext3D::vertexAttrib4fv):
1263         (WebCore::GraphicsContext3D::vertexAttribPointer):
1264         (WebCore::GraphicsContext3D::viewport):
1265         (WebCore::GraphicsContext3D::getBooleanv):
1266         (WebCore::GraphicsContext3D::getBufferParameteriv):
1267         (WebCore::GraphicsContext3D::getFloatv):
1268         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1269         (WebCore::GraphicsContext3D::getIntegerv):
1270         (WebCore::GraphicsContext3D::getProgramiv):
1271         (WebCore::GraphicsContext3D::getProgramInfoLog):
1272         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1273         (WebCore::GraphicsContext3D::getShaderiv):
1274         (WebCore::GraphicsContext3D::getShaderInfoLog):
1275         (WebCore::GraphicsContext3D::getTexParameterfv):
1276         (WebCore::GraphicsContext3D::getTexParameteriv):
1277         (WebCore::GraphicsContext3D::getUniformfv):
1278         (WebCore::GraphicsContext3D::getUniformiv):
1279         (WebCore::GraphicsContext3D::getUniformLocation):
1280         (WebCore::GraphicsContext3D::getVertexAttribfv):
1281         (WebCore::GraphicsContext3D::getVertexAttribiv):
1282         (WebCore::GraphicsContext3D::getVertexAttribOffset):
1283         (WebCore::GraphicsContext3D::texImage2D):
1284         (WebCore::GraphicsContext3D::texSubImage2D):
1285         (WebCore::GraphicsContext3D::createBuffer):
1286         (WebCore::GraphicsContext3D::createFramebuffer):
1287         (WebCore::GraphicsContext3D::createProgram):
1288         (WebCore::GraphicsContext3D::createRenderbuffer):
1289         (WebCore::GraphicsContext3D::createShader):
1290         (WebCore::GraphicsContext3D::createTexture):
1291         (WebCore::GraphicsContext3D::deleteBuffer):
1292         (WebCore::GraphicsContext3D::deleteFramebuffer):
1293         (WebCore::GraphicsContext3D::deleteProgram):
1294         (WebCore::GraphicsContext3D::deleteRenderbuffer):
1295         (WebCore::GraphicsContext3D::deleteShader):
1296         (WebCore::GraphicsContext3D::deleteTexture):
1297         (WebCore::GraphicsContext3D::sizeInBytes):
1298         (WebCore::GraphicsContext3D::synthesizeGLError):
1299         * platform/graphics/qt/GraphicsContext3DQt.cpp:
1300         (WebCore::GraphicsContext3D::activeTexture):
1301         (WebCore::GraphicsContext3D::attachShader):
1302         (WebCore::GraphicsContext3D::getAttachedShaders):
1303         (WebCore::GraphicsContext3D::bindAttribLocation):
1304         (WebCore::GraphicsContext3D::bindBuffer):
1305         (WebCore::GraphicsContext3D::bindFramebuffer):
1306         (WebCore::GraphicsContext3D::bindRenderbuffer):
1307         (WebCore::GraphicsContext3D::bindTexture):
1308         (WebCore::GraphicsContext3D::blendColor):
1309         (WebCore::GraphicsContext3D::blendEquation):
1310         (WebCore::GraphicsContext3D::blendEquationSeparate):
1311         (WebCore::GraphicsContext3D::blendFunc):
1312         (WebCore::GraphicsContext3D::blendFuncSeparate):
1313         (WebCore::GraphicsContext3D::bufferData):
1314         (WebCore::GraphicsContext3D::bufferSubData):
1315         (WebCore::GraphicsContext3D::checkFramebufferStatus):
1316         (WebCore::GraphicsContext3D::clearColor):
1317         (WebCore::GraphicsContext3D::clear):
1318         (WebCore::GraphicsContext3D::clearDepth):
1319         (WebCore::GraphicsContext3D::clearStencil):
1320         (WebCore::GraphicsContext3D::colorMask):
1321         (WebCore::GraphicsContext3D::compileShader):
1322         (WebCore::GraphicsContext3D::copyTexImage2D):
1323         (WebCore::GraphicsContext3D::copyTexSubImage2D):
1324         (WebCore::GraphicsContext3D::cullFace):
1325         (WebCore::GraphicsContext3D::depthFunc):
1326         (WebCore::GraphicsContext3D::depthMask):
1327         (WebCore::GraphicsContext3D::depthRange):
1328         (WebCore::GraphicsContext3D::detachShader):
1329         (WebCore::GraphicsContext3D::disable):
1330         (WebCore::GraphicsContext3D::disableVertexAttribArray):
1331         (WebCore::GraphicsContext3D::drawArrays):
1332         (WebCore::GraphicsContext3D::drawElements):
1333         (WebCore::GraphicsContext3D::enable):
1334         (WebCore::GraphicsContext3D::enableVertexAttribArray):
1335         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1336         (WebCore::GraphicsContext3D::framebufferTexture2D):
1337         (WebCore::GraphicsContext3D::frontFace):
1338         (WebCore::GraphicsContext3D::generateMipmap):
1339         (WebCore::GraphicsContext3D::getActiveAttrib):
1340         (WebCore::GraphicsContext3D::getActiveUniform):
1341         (WebCore::GraphicsContext3D::getAttribLocation):
1342         (WebCore::GraphicsContext3D::getError):
1343         (WebCore::GraphicsContext3D::getString):
1344         (WebCore::GraphicsContext3D::hint):
1345         (WebCore::GraphicsContext3D::isBuffer):
1346         (WebCore::GraphicsContext3D::isEnabled):
1347         (WebCore::GraphicsContext3D::isFramebuffer):
1348         (WebCore::GraphicsContext3D::isProgram):
1349         (WebCore::GraphicsContext3D::isRenderbuffer):
1350         (WebCore::GraphicsContext3D::isShader):
1351         (WebCore::GraphicsContext3D::isTexture):
1352         (WebCore::GraphicsContext3D::linkProgram):
1353         (WebCore::GraphicsContext3D::pixelStorei):
1354         (WebCore::GraphicsContext3D::polygonOffset):
1355         (WebCore::GraphicsContext3D::readPixels):
1356         (WebCore::GraphicsContext3D::renderbufferStorage):
1357         (WebCore::GraphicsContext3D::sampleCoverage):
1358         (WebCore::GraphicsContext3D::scissor):
1359         (WebCore::GraphicsContext3D::stencilFunc):
1360         (WebCore::GraphicsContext3D::stencilFuncSeparate):
1361         (WebCore::GraphicsContext3D::stencilMask):
1362         (WebCore::GraphicsContext3D::stencilMaskSeparate):
1363         (WebCore::GraphicsContext3D::stencilOp):
1364         (WebCore::GraphicsContext3D::stencilOpSeparate):
1365         (WebCore::GraphicsContext3D::texParameterf):
1366         (WebCore::GraphicsContext3D::texParameteri):
1367         (WebCore::GraphicsContext3D::uniform1f):
1368         (WebCore::GraphicsContext3D::uniform1fv):
1369         (WebCore::GraphicsContext3D::uniform2f):
1370         (WebCore::GraphicsContext3D::uniform2fv):
1371         (WebCore::GraphicsContext3D::uniform3f):
1372         (WebCore::GraphicsContext3D::uniform3fv):
1373         (WebCore::GraphicsContext3D::uniform4f):
1374         (WebCore::GraphicsContext3D::uniform4fv):
1375         (WebCore::GraphicsContext3D::uniform1i):
1376         (WebCore::GraphicsContext3D::uniform1iv):
1377         (WebCore::GraphicsContext3D::uniform2i):
1378         (WebCore::GraphicsContext3D::uniform2iv):
1379         (WebCore::GraphicsContext3D::uniform3i):
1380         (WebCore::GraphicsContext3D::uniform3iv):
1381         (WebCore::GraphicsContext3D::uniform4i):
1382         (WebCore::GraphicsContext3D::uniform4iv):
1383         (WebCore::GraphicsContext3D::uniformMatrix2fv):
1384         (WebCore::GraphicsContext3D::uniformMatrix3fv):
1385         (WebCore::GraphicsContext3D::uniformMatrix4fv):
1386         (WebCore::GraphicsContext3D::useProgram):
1387         (WebCore::GraphicsContext3D::validateProgram):
1388         (WebCore::GraphicsContext3D::vertexAttrib1f):
1389         (WebCore::GraphicsContext3D::vertexAttrib1fv):
1390         (WebCore::GraphicsContext3D::vertexAttrib2f):
1391         (WebCore::GraphicsContext3D::vertexAttrib2fv):
1392         (WebCore::GraphicsContext3D::vertexAttrib3f):
1393         (WebCore::GraphicsContext3D::vertexAttrib3fv):
1394         (WebCore::GraphicsContext3D::vertexAttrib4f):
1395         (WebCore::GraphicsContext3D::vertexAttrib4fv):
1396         (WebCore::GraphicsContext3D::vertexAttribPointer):
1397         (WebCore::GraphicsContext3D::viewport):
1398         (WebCore::GraphicsContext3D::getBooleanv):
1399         (WebCore::GraphicsContext3D::getBufferParameteriv):
1400         (WebCore::GraphicsContext3D::getFloatv):
1401         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1402         (WebCore::GraphicsContext3D::getIntegerv):
1403         (WebCore::GraphicsContext3D::getProgramiv):
1404         (WebCore::GraphicsContext3D::getProgramInfoLog):
1405         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1406         (WebCore::GraphicsContext3D::getShaderiv):
1407         (WebCore::GraphicsContext3D::getShaderInfoLog):
1408         (WebCore::GraphicsContext3D::getShaderSource):
1409         (WebCore::GraphicsContext3D::getTexParameterfv):
1410         (WebCore::GraphicsContext3D::getTexParameteriv):
1411         (WebCore::GraphicsContext3D::getUniformfv):
1412         (WebCore::GraphicsContext3D::getUniformiv):
1413         (WebCore::GraphicsContext3D::getUniformLocation):
1414         (WebCore::GraphicsContext3D::getVertexAttribfv):
1415         (WebCore::GraphicsContext3D::getVertexAttribiv):
1416         (WebCore::GraphicsContext3D::getVertexAttribOffset):
1417         (WebCore::GraphicsContext3D::texImage2D):
1418         (WebCore::GraphicsContext3D::texSubImage2D):
1419         (WebCore::GraphicsContext3D::createBuffer):
1420         (WebCore::GraphicsContext3D::createFramebuffer):
1421         (WebCore::GraphicsContext3D::createProgram):
1422         (WebCore::GraphicsContext3D::createRenderbuffer):
1423         (WebCore::GraphicsContext3D::createShader):
1424         (WebCore::GraphicsContext3D::createTexture):
1425         (WebCore::GraphicsContext3D::deleteBuffer):
1426         (WebCore::GraphicsContext3D::deleteFramebuffer):
1427         (WebCore::GraphicsContext3D::deleteProgram):
1428         (WebCore::GraphicsContext3D::deleteRenderbuffer):
1429         (WebCore::GraphicsContext3D::deleteShader):
1430         (WebCore::GraphicsContext3D::deleteTexture):
1431         (WebCore::GraphicsContext3D::sizeInBytes):
1432         (WebCore::GraphicsContext3D::synthesizeGLError):
1433         (WebCore::GraphicsContext3D::getImageData):
1434         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
1435         (WebCore::GraphicsContext3D::getImageData):
1436
1437 2011-01-06  Martin Robinson  <mrobinson@igalia.com>
1438
1439         Reviewed by Eric Seidel.
1440
1441         [GTK] Initial build support for WebGL
1442         https://bugs.webkit.org/show_bug.cgi?id=51716
1443
1444         Add initial build support for WebGL and insert bits of implementation
1445         necessary for clean compilation into GraphicsContext3D.
1446
1447         No new tests. This is just a build change.
1448
1449         * GNUmakefile.am: Add missing files to the source lists.
1450         * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
1451         Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
1452         same across different platforms. X11 headers define the VERSION symbol, so it's
1453         necessary to undefine it, since it's used as an enum value.
1454
1455 2011-01-06  Helder Correia  <helder@sencha.com>
1456
1457         Reviewed by Kenneth Rohde Christiansen.
1458
1459         [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
1460         https://bugs.webkit.org/show_bug.cgi?id=52014
1461
1462         The function is only used by RenderObject to draw box sides.
1463         The shadow branch is never used and thus can be removed.
1464
1465         No new tests are necessary.
1466
1467         * platform/graphics/qt/GraphicsContextQt.cpp:
1468         (WebCore::GraphicsContext::drawConvexPolygon):
1469
1470 2011-01-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1471
1472         Reviewed by Kenneth Rohde Christiansen.
1473
1474         [Qt] Make sure touch is disabled in the minimal configuration
1475         https://bugs.webkit.org/show_bug.cgi?id=51316
1476
1477         No new tests as there is no new functionality.
1478
1479         * features.pri:
1480
1481 2011-01-06  Martin Robinson  <mrobinson@igalia.com>
1482
1483         Reviewed by Eric Seidel.
1484
1485         [GTK] Freetype backend does not support WOFF
1486         https://bugs.webkit.org/show_bug.cgi?id=51904
1487
1488         * CMakeListsEfl.txt: Add WOFF support to the sources list.
1489         * GNUmakefile.am: Add WOFF support to the sources list.
1490         * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
1491         (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
1492         (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
1493
1494 2011-01-06  James Simonsen  <simonjam@chromium.org>
1495
1496         Reviewed by Darin Fisher.
1497
1498         [Web Timing] Remove vendor prefix
1499         https://bugs.webkit.org/show_bug.cgi?id=48922
1500
1501         * page/DOMWindow.cpp:
1502         (WebCore::DOMWindow::performance): Rename to performance.
1503         * page/DOMWindow.h:
1504         * page/DOMWindow.idl: Rename to performance and make replaceable.
1505
1506 2011-01-06  Chris Marrin  <cmarrin@apple.com>
1507
1508         Reviewed by Simon Fraser.
1509
1510         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1511         https://bugs.webkit.org/show_bug.cgi?id=49388
1512
1513         Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
1514         used to communicate from PlatformCALayer to the owner. This replaces passing
1515         GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
1516         API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
1517         the PlatformCALayerClient API.
1518
1519         This change has little impact on the Mac side but makes the Windows
1520         interface simpler, especially when handling video layers on Windows.
1521
1522         * WebCore.xcodeproj/project.pbxproj:
1523         * config.h:
1524         * platform/graphics/GraphicsLayer.h:
1525         (WebCore::GraphicsLayer::layerDidDisplay):
1526         (WebCore::GraphicsLayer::showDebugBorders):
1527         (WebCore::GraphicsLayer::showRepaintCounter):
1528         * platform/graphics/ca/GraphicsLayerCA.cpp:
1529         (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
1530         (WebCore::GraphicsLayerCA::setContentsToImage):
1531         (WebCore::GraphicsLayerCA::setContentsToMedia):
1532         (WebCore::GraphicsLayerCA::layerDidDisplay):
1533         (WebCore::GraphicsLayerCA::updateSublayerList):
1534         * platform/graphics/ca/GraphicsLayerCA.h:
1535         (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
1536         (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
1537         (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
1538         (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
1539         (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
1540         (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
1541         (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
1542         (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
1543         (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
1544         (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
1545         (WebCore::GraphicsLayerCA::platformCALayer):
1546         * platform/graphics/ca/PlatformCALayer.h:
1547         (WebCore::PlatformCALayer::owner):
1548         (WebCore::PlatformCALayer::animationStarted):
1549         * platform/graphics/ca/PlatformCALayerClient.h: Added.
1550         (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
1551         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1552         (PlatformCALayer::setOwner):
1553         (PlatformCALayer::create):
1554         (PlatformCALayer::PlatformCALayer):
1555         (PlatformCALayer::contents):
1556         (PlatformCALayer::setContents):
1557         * platform/graphics/mac/WebGLLayer.mm:
1558         (-[WebGLLayer display]):
1559         * platform/graphics/mac/WebLayer.h:
1560         * platform/graphics/mac/WebLayer.mm:
1561         (drawLayerContents):
1562         (setLayerNeedsDisplayInRect):
1563         (-[WebLayer setNeedsDisplay]):
1564         (-[WebLayer display]):
1565         * platform/graphics/mac/WebTiledLayer.mm:
1566         (-[WebTiledLayer setNeedsDisplay]):
1567         (-[WebTiledLayer display]):
1568         * rendering/RenderLayerBacking.cpp:
1569         (WebCore::RenderLayerBacking::showDebugBorders):
1570         (WebCore::RenderLayerBacking::showRepaintCounter):
1571         * rendering/RenderLayerCompositor.cpp:
1572         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
1573         * rendering/RenderLayerCompositor.h:
1574         (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
1575         (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
1576         (WebCore::RenderLayerCompositor::notifyAnimationStarted):
1577         (WebCore::RenderLayerCompositor::notifySyncRequired):
1578         (WebCore::RenderLayerCompositor::paintContents):
1579         (WebCore::RenderLayerCompositor::showDebugBorders):
1580         (WebCore::RenderLayerCompositor::showRepaintCounter):
1581
1582 2011-01-06  Tony Gentilcore  <tonyg@chromium.org>
1583
1584         Reviewed by Eric Seidel.
1585
1586         Allow framesets after hidden inputs
1587         https://bugs.webkit.org/show_bug.cgi?id=51998
1588
1589         This implements the HTML5 spec update in response to:
1590         http://www.w3.org/Bugs/Public/show_bug.cgi?id=11156
1591
1592         * html/parser/HTMLTreeBuilder.cpp:
1593         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
1594
1595 2010-12-29  Zhenyao Mo  <zmo@google.com>
1596
1597         Reviewed by Kenneth Russell.
1598
1599         vertexAttribPointer should raise INVALID_OPERATION if stride/offset is not multiple of the type size
1600         https://bugs.webkit.org/show_bug.cgi?id=51725
1601
1602         * html/canvas/WebGLRenderingContext.cpp:
1603         (WebCore::WebGLRenderingContext::vertexAttribPointer):
1604
1605 2011-01-06  Patrick Gansterer  <paroga@webkit.org>
1606
1607         Reviewed by Eric Seidel.
1608
1609         [WINCE] Remove JSC::g_stackBase
1610         https://bugs.webkit.org/show_bug.cgi?id=51779
1611
1612         * platform/wince/SharedTimerWinCE.cpp:
1613         (WebCore::TimerWindowWndProc):
1614
1615 2011-01-06  Robert Hogan  <robert@webkit.org>
1616
1617         Reviewed by Antonio Gomes.
1618
1619         [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
1620
1621         This allows LayoutTestController to pass WebCore::Node back to
1622         layout tests.
1623
1624         Also amend nodesFromRect-links-and-text.html and
1625         nodesFromRect-inner-documents.html so that they do not produce
1626         platform-specific results.
1627
1628         Unskip:
1629         fast/dom/nodesFromRect-links-and-text.html
1630         fast/dom/nodesFromRect-inner-documents.html
1631
1632         https://bugs.webkit.org/show_bug.cgi?id=48957
1633
1634         * bridge/qt/qt_runtime.cpp:
1635         (JSC::Bindings::QtDRTNodeRuntime::create):
1636         (JSC::Bindings::QtDRTNodeRuntime::get):
1637         (JSC::Bindings::convertValueToQVariant):
1638         (JSC::Bindings::convertQVariantToValue):
1639
1640 2011-01-06  Joone Hur  <joone.hur@collabora.co.uk>
1641
1642         Reviewed by Eric Seidel.
1643
1644         WML Parser should treat line/column number in a consistent way
1645         https://bugs.webkit.org/show_bug.cgi?id=51601
1646
1647         XML Parser treats line/column number as 1-based values, but WML ErrorHandler treat them as 0-based.
1648         Therefore, this patch allows WML ErrorHandler to use 1-based values.
1649
1650         * dom/XMLDocumentParser.cpp:
1651         (WebCore::XMLDocumentParser::handleError): Treat line/column number as 1 based values.
1652         * dom/XMLDocumentParser.h: Make textPositionOneBased public and Add TextPosition1(m_lastErrorPosition) to keep error line/column number.
1653         * dom/XMLDocumentParserLibxml2.cpp:
1654         (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition. 
1655         * dom/XMLDocumentParserQt.cpp:
1656         (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition. 
1657         * wml/WMLErrorHandling.cpp:
1658         (WebCore::reportWMLError): Use 1 based value instead of 0 based value to report error line/column number.
1659
1660 2011-01-05  Adam Roben  <aroben@apple.com>
1661
1662         Remove some dead code from WKCACFLayerRenderer
1663
1664         Fixes <http://webkit.org/b/51954> WKCACFLayerRenderer has dead and
1665         redundant code for reacting to changes to the layer tree
1666
1667         Reviewed by Sam Weinig.
1668
1669         * platform/graphics/win/WKCACFLayerRenderer.cpp:
1670         * platform/graphics/win/WKCACFLayerRenderer.h:
1671         Removed didFlushContext and the HashMap it depended on. We react to
1672         changes to the layer tree in layerTreeDidChange instead.
1673
1674 2011-01-06  Chris Fleizach  <cfleizach@apple.com>
1675
1676         Reviewed by Beth Dakin.
1677
1678         AX: "AXExpanded" not exposed on most ARIA roles that use aria-expanded
1679         https://bugs.webkit.org/show_bug.cgi?id=51995
1680
1681         Test: platform/mac/accessibility/aria-expanded-standard-items.html
1682
1683         * accessibility/AccessibilityObject.cpp:
1684         (WebCore::AccessibilityObject::supportsARIAExpanded):
1685         (WebCore::AccessibilityObject::isExpanded):
1686         * accessibility/AccessibilityObject.h:
1687         * accessibility/AccessibilityRenderObject.cpp:
1688         (WebCore::AccessibilityRenderObject::isVisited):
1689         * accessibility/AccessibilityRenderObject.h:
1690         * accessibility/mac/AccessibilityObjectWrapper.mm:
1691         (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
1692
1693 2010-12-28  Zhenyao Mo  <zmo@google.com>
1694
1695         Reviewed by Kenneth Russell.
1696
1697         Must generate INVALID_VALUE errors for strings containing out-of-range characters
1698         https://bugs.webkit.org/show_bug.cgi?id=50929
1699
1700         * html/canvas/WebGLRenderingContext.cpp: Validate characters according to GLSL ES 1.0 spec section 3.1.
1701         (WebCore::WebGLRenderingContext::bindAttribLocation):
1702         (WebCore::WebGLRenderingContext::getAttribLocation):
1703         (WebCore::WebGLRenderingContext::getUniformLocation):
1704         (WebCore::WebGLRenderingContext::shaderSource):
1705         (WebCore::WebGLRenderingContext::validateString): Helper function to perform the character validation.
1706         * html/canvas/WebGLRenderingContext.h: Declare validateString().
1707
1708 2011-01-06  Yong Li  <yoli@rim.com>
1709
1710         Reviewed by Adam Barth.
1711         Add the test case that is missed in r75066.
1712         https://bugs.webkit.org/show_bug.cgi?id=48077
1713
1714         Test case: WebCore/manual-tests/bugzilla-48077.html.
1715
1716 2011-01-06  James Robinson  <jamesr@chromium.org>
1717
1718         Reviewed by Simon Fraser.
1719
1720         Implement mozilla's animationTime property
1721         https://bugs.webkit.org/show_bug.cgi?id=51952
1722
1723         Implements mozilla's animationTime property as described here:
1724         https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime
1725         and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/
1726         The property is called webkitAnimationTime as calling it the 'Start' time is not very informative.
1727         This property exposes a notion of a 'current' time to use for declarative animations and allows
1728         scripts to synchronize imperative animations with declarative ones if they choose to.  Once queried
1729         this time is saved and used for all declarative animation updates until the embedder paints/composites
1730         the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example
1731         if the page is in a background tab).
1732
1733         This patch also ensures that all declarative animations started in the same script execution block
1734         are synchronized even if some time elapses while script is running.
1735
1736         Test: fast/animation/animation-time.html
1737
1738         * WebCore.gypi:
1739         * page/DOMWindow.cpp:
1740         (WebCore::DOMWindow::webkitAnimationTime):
1741         * page/DOMWindow.h:
1742         * page/DOMWindow.idl:
1743         * page/Frame.cpp:
1744         (WebCore::Frame::currentAnimationTime):
1745         * page/Frame.h:
1746         * page/Page.cpp:
1747         (WebCore::Page::Page):
1748         * page/Page.h:
1749         (WebCore::Page::animationTime):
1750         * page/animation/AnimationController.cpp:
1751         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1752         * page/animation/AnimationTimeController.cpp: Added.
1753         (WebCore::AnimationTimeController::AnimationTimeController):
1754         (WebCore::AnimationTimeController::~AnimationTimeController):
1755         (WebCore::AnimationTimeController::currentAnimationTime):
1756         (WebCore::AnimationTimeController::clearCurrentAnimationTime):
1757         (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired):
1758         * page/animation/AnimationTimeController.h: Added.
1759         (WebCore::AnimationTimeController::create):
1760
1761 2011-01-06  Abhishek Arya  <inferno@chromium.org>
1762
1763         Reviewed by Simon Fraser.
1764
1765         Null out the parent stylesheet pointer when a css rule is removed.
1766         https://bugs.webkit.org/show_bug.cgi?id=51993
1767
1768         Tests: fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html
1769                fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html
1770
1771         * css/CSSRuleList.cpp:
1772         (WebCore::CSSRuleList::deleteRule):
1773         * css/CSSStyleSheet.cpp:
1774         (WebCore::CSSStyleSheet::deleteRule):
1775
1776 2011-01-04  Adrienne Walker  <enne@google.com>
1777
1778         Reviewed by Kenneth Russell.
1779
1780         NaN in a TypedArray should be converted to zero only for Float32Array.
1781         https://bugs.webkit.org/show_bug.cgi?id=46990
1782
1783         Test: LayoutTests/fast/canvas/webgl/array-unit-tests.html
1784
1785         * bindings/js/JSArrayBufferViewHelper.h:
1786         (WebCore::convertArrayValue):
1787         (WebCore::constructArrayBufferView):
1788         * html/canvas/Float32Array.h:
1789         (WebCore::Float32Array::set):
1790         (WebCore::Float32Array::item):
1791
1792 2011-01-06  Patrick Gansterer  <paroga@webkit.org>
1793
1794         Unreviewed Windows build fix for r75161.
1795
1796         * platform/graphics/cg/GraphicsContextCG.cpp: Missing include added.
1797
1798 2011-01-06  Patrick Gansterer  <paroga@webkit.org>
1799
1800         Unreviewed WinCE build fix for r75139.
1801
1802         Try to remove include after adding forward-declaration in r75145.
1803
1804         * platform/graphics/Gradient.h:
1805
1806 2011-01-06  Renata Hodovan  <reni@webkit.org>
1807
1808         Reviewed by Andreas Kling.
1809
1810         https://bugs.webkit.org/show_bug.cgi?id=51811
1811         Merge m_height and m_width members of ImageData into the new m_size member.
1812
1813         Image (BitmapImage, ImageSource) types in WebKit use IntSize to store their
1814         width and height argument, except ImageData. This patch refactors ImageData
1815         to follow the style of other Image types in WebKit.
1816         Using of PassRefPtrs other than argument passing is not allowed in WebKit anymore.
1817         This patch also refactors the PassRefPtr usages of ImageData.
1818
1819         It's just a refactoring, so we don't need any new tests.
1820
1821         * bindings/js/SerializedScriptValue.cpp:
1822         (WebCore::CloneSerializer::write):
1823         (WebCore::CloneDeserializer::readTerminal):
1824         * bindings/v8/SerializedScriptValue.cpp:
1825         (WebCore::ZigZag::Reader::readImageData):
1826         * html/ImageData.cpp:
1827         (WebCore::ImageData::create):
1828         (WebCore::ImageData::ImageData):
1829         * html/ImageData.h:
1830         (WebCore::ImageData::size):
1831         (WebCore::ImageData::width):
1832         (WebCore::ImageData::height):
1833         * html/canvas/CanvasRenderingContext2D.cpp:
1834         (WebCore::createEmptyImageData):
1835         (WebCore::CanvasRenderingContext2D::createImageData):
1836         (WebCore::CanvasRenderingContext2D::getImageData):
1837         * html/canvas/CanvasRenderingContext2D.h:
1838         * platform/graphics/haiku/ImageBufferHaiku.cpp:
1839         (WebCore::getImageData):
1840
1841 2011-01-06  Yael Aharon  <yael.aharon@nokia.com>
1842
1843         Reviewed by Darin Adler.
1844
1845         document.querySelector(':nth-child(foo)') should throw a syntax error
1846         https://bugs.webkit.org/show_bug.cgi?id=51231
1847
1848         Also fixes 
1849         CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector)
1850         https://bugs.webkit.org/show_bug.cgi?id=21815
1851
1852         Add a check in the parser that other than an+b, only "odd" or "even" would be allowed
1853         as parameters to nth selector.
1854
1855         Tests: fast/css/css3-nth-tokens-script.html
1856                fast/css/css3-nth-tokens-style.html
1857
1858         * css/CSSGrammar.y:
1859         * css/CSSParser.cpp:
1860         (WebCore::isValidNthToken):
1861         * css/CSSParser.h:
1862
1863 2011-01-06  Jan Erik Hanssen  <jhanssen@sencha.com>
1864
1865         Reviewed by Andreas Kling.
1866
1867         [Qt] crash in QNetworkReplyHandler::sendResponseIfNeeded()
1868         https://bugs.webkit.org/show_bug.cgi?id=51453
1869
1870         Check if m_reply is NULL before accessing.
1871
1872         * manual-tests/load-deferrer-resume-crash.html: Added.
1873         * platform/network/qt/QNetworkReplyHandler.cpp:
1874         (WebCore::QNetworkReplyHandler::setLoadMode):
1875         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1876
1877 2011-01-06  Andras Becsi  <abecsi@webkit.org>
1878
1879         Reviewed by Csaba Osztrogonác.
1880
1881         [Qt][V8] Fix the build when DEVICE_ORIENTATION is enabled.
1882
1883         No new tests needed.
1884
1885         * WebCore.pro: remove duplications and globally add RuntimeEnabledFeatures.
1886
1887 2011-01-06  Helder Correia  <helder@sencha.com>
1888
1889         Reviewed by Kenneth Rohde Christiansen.
1890
1891         [Qt][GTK] Use GraphicsContext::hasShadow() in port-specific code
1892         https://bugs.webkit.org/show_bug.cgi?id=51985
1893
1894         r75139 introduced GraphicsContext::hasShadow(). This can now simplify
1895         and unify some code in the Qt and GTK ports.
1896
1897         No new tests necessary for this refactoring.
1898
1899         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1900         (WebCore::GraphicsContext::fillRect):
1901         (WebCore::GraphicsContext::fillRoundedRect):
1902         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
1903         * platform/graphics/qt/GraphicsContextQt.cpp:
1904         (WebCore::GraphicsContext::drawConvexPolygon):
1905         (WebCore::GraphicsContext::fillPath):
1906         (WebCore::GraphicsContext::strokePath):
1907         (WebCore::GraphicsContext::fillRect):
1908         (WebCore::GraphicsContext::fillRoundedRect):
1909
1910 2011-01-05  Darin Adler  <darin@apple.com>
1911
1912         Fix Chromium Mac build.
1913
1914         * platform/graphics/Gradient.h: Forward-declare CGContextRef.
1915         This might even make it possible to remove the include of
1916         <CoreGraphics/CoreGraphics.h> for PLATFORM(WIN), but I did not
1917         do that at this time because I don't want to break the Windows
1918         build when fixing the Chromium build.
1919
1920 2011-01-05  Xianzhu Wang  <wangxianzhu@google.com>
1921
1922         Reviewed by David Levin.
1923
1924         Implement RemoteFontStream's skip behavior (in FontCustomPlatformData.cpp)
1925         https://bugs.webkit.org/show_bug.cgi?id=51736
1926
1927         No new tests. This change has potential effect on @font-face CSS feature
1928         on ports using Skia. Tested on Chromium that this change won't break
1929         fast/css/font-face-remote.html. This change can make the test pass on
1930         other ports using Skia.
1931
1932         * platform/graphics/skia/FontCustomPlatformData.cpp:
1933         (WebCore::RemoteFontStream::read):
1934
1935 2011-01-05  Helder Correia  <helder@sencha.com>
1936
1937         Reviewed by Simon Fraser.
1938
1939         Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac
1940         https://bugs.webkit.org/show_bug.cgi?id=51869
1941
1942         GraphicsContext::fillRect(const FloatRect&) is clipping to the rect.
1943         The shadow is being drawn, but getting clipped to the rect being filled.
1944         The solution is to draw the gradient into a CGLayer (when a shadow is
1945         required), then render the layer to the GraphicsContext.
1946
1947         This patch also fixes:
1948         canvas/philip/tests/2d.shadow.gradient.alpha.html
1949         canvas/philip/tests/2d.shadow.gradient.basic.html
1950         canvas/philip/tests/2d.shadow.gradient.transparent.2.html
1951
1952         Test: fast/canvas/canvas-fillRect-gradient-shadow.html
1953
1954         * platform/graphics/Gradient.h:
1955         * platform/graphics/cg/GradientCG.cpp:
1956         (WebCore::Gradient::paint):
1957         * platform/graphics/cg/GraphicsContextCG.cpp:
1958         (WebCore::GraphicsContext::fillRect):
1959
1960 2011-01-05  Steve Falkenburg  <sfalken@apple.com>
1961
1962         Reviewed by Darin Adler.
1963
1964         Debug and Release builds on Windows clobber each other
1965         https://bugs.webkit.org/show_bug.cgi?id=49185
1966
1967         Changes the structure of WebKitBuild build products directory so we
1968         completely separate each build configuration into independent directories.
1969         
1970         Although we previously had per-configuration directories for obj, this change adds
1971         per-configuration directories for bin, lib, obj, and include. Each configuration's
1972         build products are stored within a directory inside of WebKitBuild.
1973         
1974         Most use of $(WebKitOutputDir) in the build files has been replaced by $(ConfigurationBuildDir),
1975         defined in common.vsprops to be $(WebKitOutputDir)\$(ConfigurationName).
1976
1977         * WebCore.vcproj/QTMovieWinCommon.vsprops:
1978         * WebCore.vcproj/QTMovieWinPostBuild.cmd:
1979         * WebCore.vcproj/QTMovieWinPreBuild.cmd:
1980         * WebCore.vcproj/WebCore.make:
1981         * WebCore.vcproj/WebCore.vcproj:
1982         * WebCore.vcproj/WebCoreCommon.vsprops:
1983         * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
1984         * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
1985         * WebCore.vcproj/WebCoreMediaQT.vsprops:
1986         * WebCore.vcproj/WebCorePostBuild.cmd:
1987         * WebCore.vcproj/WebCorePreBuild.cmd:
1988         * WebCore.vcproj/copyForwardingHeaders.cmd:
1989         * WebCore.vcproj/copyInspectorFiles.cmd:
1990
1991 2011-01-05  Simon Fraser  <simon.fraser@apple.com>
1992
1993         Reviewed by Ariya Hidayat.
1994
1995         Directly composited SVG images fail to render
1996         https://bugs.webkit.org/show_bug.cgi?id=51975
1997         
1998         There was already code, added in r67900, to detect whether an image
1999         may be directly composited, by checking to see if it's a bitmap image.
2000         
2001         However, CachedImage::image() returns the nullImage() if m_image is null,
2002         which is a BitmapImage, confusing this test.
2003
2004         Test: compositing/images/direct-svg-image.html
2005
2006         * loader/cache/CachedImage.cpp: Remove nullImage(), since Image has
2007         exactly the same method.
2008         (WebCore::CachedImage::image): Use Image::nullImage().
2009         * loader/cache/CachedImage.h:
2010         (WebCore::CachedImage::hasImage): New method to ask whether the m_image is
2011         non-null.
2012         * rendering/RenderLayerBacking.cpp:
2013         (WebCore::RenderLayerBacking::isDirectlyCompositedImage): Use hasImage()
2014         so that we don't test the nullImage.
2015
2016 2011-01-05  Simon Fraser  <simon.fraser@apple.com>
2017
2018         Reviewed by Darin Adler.
2019
2020         Fix percentage values in radius of radial gradients
2021         https://bugs.webkit.org/show_bug.cgi?id=51979
2022         
2023         Handle percentage values for the ending size of radial gradients.
2024
2025         Test: fast/gradients/css3-radial-gradients3.html
2026
2027         * css/CSSGradientValue.cpp:
2028         (WebCore::CSSRadialGradientValue::resolveRadius): Add parameter for height or width, which is
2029         non-null if percentage values are allowed, and compute percentage values when we see them.
2030         (WebCore::CSSRadialGradientValue::createGradient): Pass height or width down to say that
2031         percentages are OK when resolving end radii.
2032         * css/CSSGradientValue.h: New parameter for resolveRadius.
2033
2034 2011-01-05  James Simonsen  <simonjam@chromium.org>
2035
2036         Reviewed by Adam Barth.
2037
2038         [Web Timing] Zero out some values on cross-origin redirects
2039         https://bugs.webkit.org/show_bug.cgi?id=49294
2040
2041         Tests: http/tests/misc/webtiming-cross-origin-redirect.php
2042                http/tests/misc/webtiming-origins.html
2043
2044         * loader/DocumentLoadTiming.h:
2045         (WebCore::DocumentLoadTiming::DocumentLoadTiming): Add flags for cross-origin redirects and same-origin navigation.
2046         * loader/FrameLoader.cpp:
2047         (WebCore::FrameLoader::~FrameLoader):
2048         (WebCore::FrameLoader::stopLoading): Don't overwrite previous unload times.
2049         (WebCore::FrameLoader::completed):
2050         (WebCore::FrameLoader::loadWithDocumentLoader): Remember previous URL to see if navigation is same-origin.
2051         (WebCore::FrameLoader::commitProvisionalLoad): Set flag if navigation is same-origin.
2052         * loader/FrameLoader.h:
2053         * loader/MainResourceLoader.cpp:
2054         (WebCore::MainResourceLoader::willSendRequest): Set flag on cross-origin redirects.
2055         * page/PerformanceNavigation.cpp:
2056         (WebCore::PerformanceNavigation::redirectCount): Clear if cross-origin redirect flag is set.
2057         * page/PerformanceTiming.cpp:
2058         (WebCore::PerformanceTiming::redirectStart): Ditto.
2059         (WebCore::PerformanceTiming::redirectEnd): Ditto.
2060         (WebCore::PerformanceTiming::unloadEventStart): Clear if cross-origin navigation is set.
2061         (WebCore::PerformanceTiming::unloadEventEnd): Ditto.
2062
2063 2011-01-05  Helder Correia  <helder@sencha.com>
2064
2065         Reviewed by Ariya Hidayat.
2066
2067         [Qt] Default focus ring is too wide
2068         https://bugs.webkit.org/show_bug.cgi?id=51854
2069
2070         This is an intermediate step to solve this bug. Use QPalette::Highlight
2071         instead of default half-transparent black as the focus ring color.
2072
2073         * platform/graphics/qt/GraphicsContextQt.cpp:
2074         (WebCore::drawFocusRingForPath):
2075         * platform/qt/RenderThemeQt.cpp:
2076         (WebCore::RenderThemeQt::platformFocusRingColor):
2077         * platform/qt/RenderThemeQt.h:
2078
2079 2011-01-05  James Simonsen  <simonjam@chromium.org>
2080
2081         Reviewed by Darin Fisher.
2082
2083         [Web Timing] requestStart and responseStart should be available even if the document is still loading
2084         https://bugs.webkit.org/show_bug.cgi?id=51368
2085
2086         Test: http/tests/misc/webtiming-slow-load.php
2087
2088         * page/PerformanceTiming.cpp:
2089         (WebCore::getPossiblySkewedTimeInKnownRange): Handle case where response is not yet complete.
2090         (WebCore::PerformanceTiming::resourceLoadTimeRelativeToAbsolute): Use full upper bound.
2091
2092 2011-01-05  Chris Rogers  <crogers@google.com>
2093
2094         Reviewed by Darin Fisher.
2095
2096         Add WebKitClient::createAudioDevice() for Chromium port of web audio API
2097         https://bugs.webkit.org/show_bug.cgi?id=51424
2098
2099         No new tests since audio API is not yet implemented.
2100
2101         * WebCore.gyp/WebCore.gyp:
2102         * WebCore.gypi:
2103
2104 2011-01-05  Anders Carlsson  <andersca@apple.com>
2105
2106         Try again.
2107
2108         * WebCore.exp.in:
2109
2110 2011-01-05  Anders Carlsson  <andersca@apple.com>
2111
2112         Attempt to fix Leopard build.
2113
2114         * WebCore.exp.in:
2115
2116 2011-01-05  Evan Martin  <evan@chromium.org>
2117
2118         Reviewed by Tony Chang.
2119
2120         [chromium] refactor complex text on Linux
2121         https://bugs.webkit.org/show_bug.cgi?id=51956
2122
2123         Pull out TextRunWalker from FontLinux.cpp.  Put it in its own file.
2124         Rename it to ComplexTextController, to match platform/graphics/mac
2125         more closely.
2126
2127         No tests because the change is just renaming a class.
2128
2129         * WebCore.gyp/WebCore.gyp:
2130         * platform/graphics/chromium/ComplexTextControllerLinux.cpp: Added.
2131         (WebCore::ComplexTextController::ComplexTextController):
2132         (WebCore::ComplexTextController::~ComplexTextController):
2133         (WebCore::ComplexTextController::isWordBreak):
2134         (WebCore::ComplexTextController::determineWordBreakSpacing):
2135         (WebCore::ComplexTextController::setPadding):
2136         (WebCore::ComplexTextController::reset):
2137         (WebCore::ComplexTextController::setBackwardsIteration):
2138         (WebCore::ComplexTextController::nextScriptRun):
2139         (WebCore::ComplexTextController::widthOfFullRun):
2140         (WebCore::ComplexTextController::setupFontForScriptRun):
2141         (WebCore::ComplexTextController::allocHarfbuzzFont):
2142         (WebCore::ComplexTextController::deleteGlyphArrays):
2143         (WebCore::ComplexTextController::createGlyphArrays):
2144         (WebCore::ComplexTextController::resetGlyphArrays):
2145         (WebCore::ComplexTextController::shapeGlyphs):
2146         (WebCore::ComplexTextController::setGlyphXPositions):
2147         (WebCore::ComplexTextController::normalizeSpacesAndMirrorChars):
2148         (WebCore::ComplexTextController::getNormalizedTextRun):
2149         * platform/graphics/chromium/ComplexTextControllerLinux.h: Added.
2150         (WebCore::ComplexTextController::setWordSpacingAdjustment):
2151         (WebCore::ComplexTextController::setLetterSpacingAdjustment):
2152         (WebCore::ComplexTextController::letterSpacing):
2153         (WebCore::ComplexTextController::setXOffsetToZero):
2154         (WebCore::ComplexTextController::rtl):
2155         (WebCore::ComplexTextController::glyphs):
2156         (WebCore::ComplexTextController::length):
2157         (WebCore::ComplexTextController::xPositions):
2158         (WebCore::ComplexTextController::advances):
2159         (WebCore::ComplexTextController::width):
2160         (WebCore::ComplexTextController::logClusters):
2161         (WebCore::ComplexTextController::numCodePoints):
2162         (WebCore::ComplexTextController::fontPlatformDataForScriptRun):
2163         (WebCore::ComplexTextController::isCodepointSpace):
2164         * platform/graphics/chromium/FontLinux.cpp:
2165         (WebCore::Font::drawComplexText):
2166         (WebCore::Font::floatWidthForComplexText):
2167         (WebCore::glyphIndexForXPositionInScriptRun):
2168         (WebCore::Font::offsetForPositionForComplexText):
2169         (WebCore::Font::selectionRectForComplexText):
2170
2171 2011-01-05  Pratik Solanki  <psolanki@apple.com>
2172
2173         Reviewed by Darin Adler.
2174
2175         Merge cf and mac header files with same name
2176         https://bugs.webkit.org/show_bug.cgi?id=51916
2177
2178         Since most of the code in the header files is identical, we can merge them and have #if
2179         USE(CFNETWORK) to separate out the network specific parts.
2180
2181         * WebCore.xcodeproj/project.pbxproj:
2182         * platform/network/cf/AuthenticationChallenge.h:
2183         (WebCore::AuthenticationChallenge::sender):
2184         (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
2185         * platform/network/cf/ResourceError.h:
2186         (WebCore::ResourceError::ResourceError):
2187         * platform/network/cf/ResourceRequest.h:
2188         (WebCore::ResourceRequest::ResourceRequest):
2189         * platform/network/cf/ResourceResponse.h:
2190         (WebCore::ResourceResponse::ResourceResponse):
2191         * platform/network/mac/AuthenticationChallenge.h: Removed.
2192         * platform/network/mac/ResourceError.h: Removed.
2193         * platform/network/mac/ResourceRequest.h: Removed.
2194         * platform/network/mac/ResourceResponse.h: Removed.
2195
2196 2011-01-05  Anders Carlsson  <andersca@apple.com>
2197
2198         Reviewed by Adele Peterson.
2199
2200         Implement word transformation
2201         https://bugs.webkit.org/show_bug.cgi?id=51943
2202
2203         Export Editor functions needed by WebKit2.
2204
2205         * WebCore.exp.in:
2206
2207 2011-01-05  Simon Fraser  <simon.fraser@apple.com>
2208
2209         Reviewed by Dave Hyatt.
2210
2211         Implement repeating CSS3 gradients
2212         https://bugs.webkit.org/show_bug.cgi?id=51843
2213         
2214         Add support for repeating gradients, via the new gradient functions
2215         -webkit-repeating-linear-gradient and -webkit-repeating-radial-gradient.
2216
2217         Tests: fast/gradients/css3-repeating-linear-gradients.html
2218                fast/gradients/css3-repeating-radial-gradients.html
2219
2220         * css/CSSGradientValue.h:
2221         (WebCore::CSSGradientValue::isRepeating): Accessor for whethe the gradient repeats.
2222         (WebCore::CSSGradientValue::CSSGradientValue): Pass CSSGradientRepeat in.
2223         (WebCore::CSSLinearGradientValue::create): Pass CSSGradientRepeat.
2224         (WebCore::CSSLinearGradientValue::CSSLinearGradientValue): Ditto
2225         (WebCore::CSSRadialGradientValue::create): Ditto.
2226         (WebCore::CSSRadialGradientValue::CSSRadialGradientValue): Ditto.
2227
2228         * css/CSSGradientValue.cpp:
2229         (WebCore::CSSGradientValue::addStops): Pass maxLengthForRepeat, which
2230         is used for repeating radial gradients. Add code to repeat the stops,
2231         adding stops before the start, and after the end until the 0-N range is
2232         covered, where N is large enough to ensure the box is covered. Fix an issue
2233         with repeating gradients where if both stops were < 0, it would fail to clamp
2234         them to 0.
2235         
2236         (WebCore::CSSLinearGradientValue::cssText): Output strings for repeating gradients.
2237         (WebCore::CSSLinearGradientValue::createGradient): maxExtent for linear gradients is 1,
2238         because they are guaranteed to fill the box already.
2239         (WebCore::CSSRadialGradientValue::cssText): Output strings for repeating gradients.
2240         (WebCore::CSSRadialGradientValue::createGradient): Compute the distance to the furthest
2241         corner in order to inform addStops() how much additional extent is required.
2242
2243         * css/CSSParser.cpp:
2244         (WebCore::CSSParser::parseDeprecatedGradient): Old gradients never repeat.
2245         (WebCore::CSSParser::parseLinearGradient): Pass down CSSGradientRepeat.
2246         (WebCore::CSSParser::parseRadialGradient): Ditto.
2247         (WebCore::CSSParser::isGeneratedImageValue): Add repeating gradient functions.
2248         (WebCore::CSSParser::parseGeneratedImage): Ditto.
2249         * css/CSSParser.h: Pass CSSGradientRepeat to gradient functions.
2250         * platform/graphics/cg/GradientCG.cpp: Remove unused #include.
2251
2252 2011-01-05  Martin Robinson  <mrobinson@igalia.com>
2253
2254         Reviewed by Ariya Hidayat.
2255
2256         ContextShadow::blurLayerImage() not endian-safe
2257         https://bugs.webkit.org/show_bug.cgi?id=51822
2258
2259         Correct the channel map in ContextShadow to reflect the different
2260         ordering of pixels on processors with different endianness.
2261
2262         No new tests. This is covered by the existing shadow tests. It was
2263         not discovered, because all of the bots using ContextShadow are
2264         little-endian.
2265
2266         * platform/graphics/ContextShadow.cpp:
2267         (WebCore::ContextShadow::blurLayerImage): Initialize the channel mapping
2268         based on machine endianness.
2269
2270 2011-01-05  Mihai Parparita  <mihaip@chromium.org>
2271
2272         Reviewed by Nate Chapin.
2273
2274         [Chromium] Crash when drawing PDF plug-in scrollbars
2275         https://bugs.webkit.org/show_bug.cgi?id=51942
2276
2277         Pepper plug-in scrollbars don't have a parent, guard against that before
2278         seeing if the parent is a FrameView.
2279
2280         Not testable via layout tests, verified fix by hand.
2281         
2282         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2283         (WebCore::ScrollbarThemeChromiumMac::paint):
2284
2285 2011-01-05  Abhishek Arya  <inferno@chromium.org>
2286
2287         Unreviewed.
2288
2289         Update FIXME comment to sound better. Also initialize the block to fix compile.
2290
2291         * rendering/RenderBlock.cpp:
2292         (WebCore::RenderBlock::removeChild):
2293
2294 2011-01-05  Abhishek Arya  <inferno@chromium.org>
2295
2296         Reviewed by Dave Hyatt.
2297
2298         Do not merge anonymous blocks when one of them is the one getting removed.
2299         https://bugs.webkit.org/show_bug.cgi?id=51919
2300
2301         Test: fast/block/merge-anonymous-block-remove-child-crash.html
2302
2303         * rendering/RenderBlock.cpp:
2304         (WebCore::RenderBlock::removeChild):
2305
2306 2011-01-05  Ryosuke Niwa  <rniwa@webkit.org>
2307
2308         Reviewed by Eric Seidel.
2309
2310         ApplyStyleCommand::applyRelativeFontStyleChange should take EditingStyle*
2311         https://bugs.webkit.org/show_bug.cgi?id=50641
2312
2313         Modified applyRelativeFontStyleChange to take EditingStyle instead of CSSMutableStyleDeclaration.
2314         Also extracted the logic to obtain the font size delta from ApplyStyleCommand to EditingStyle.
2315         The font size delta is now stored as a member variable of EditingStyle as supposed to a property
2316         in CSSMutableStyleDeclration as soon as EditingStyle is instantiated.
2317
2318         No new tests are added since this is a refactoring.
2319
2320         * editing/ApplyStyleCommand.cpp:
2321         (WebCore::ApplyStyleCommand::doApply): Calls applyRelativeFontStyleChange.
2322         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Takes EditingStyle.
2323         * editing/ApplyStyleCommand.h:
2324         * editing/EditingStyle.cpp:
2325         (WebCore::EditingStyle::EditingStyle): Initializes m_fontSizeDelta.
2326         (WebCore::EditingStyle::init): Ditto.
2327         (WebCore::EditingStyle::extractFontSizeDelta): Extracted from applyRelativeFontStyleChange.
2328         (WebCore::EditingStyle::isEmpty): Takes care of m_fontSizeDelta.
2329         (WebCore::EditingStyle::setStyle): Calls extractFontSizeDelta.
2330         (WebCore::EditingStyle::overrideWithStyle): Ditto.
2331         (WebCore::EditingStyle::clear): Initializes m_fontSizeDelta.
2332         (WebCore::EditingStyle::copy): Calls extractFontSizeDelta.
2333         * editing/EditingStyle.h:
2334         (WebCore::EditingStyle::fontSizeDelta): Added.
2335         (WebCore::EditingStyle::hasFontSizeDelta): Added.
2336         * editing/Editor.h:
2337
2338 2011-01-05  Dan Bernstein  <mitz@apple.com>
2339
2340         Reviewed by Darin Adler.
2341
2342         <rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph
2343         https://bugs.webkit.org/show_bug.cgi?id=51915
2344
2345         This changes the results of existing tests in fast/text.
2346
2347         * platform/graphics/Font.h:
2348         * platform/graphics/FontFastPath.cpp:
2349         (WebCore::Font::primaryFontHasGlyphForCharacter): Added.
2350         * rendering/style/RenderStyle.cpp:
2351         * platform/graphics/qt/FontQt.cpp:
2352         (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub.
2353         (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a
2354         hyphen only if the primary font has a hyphen glyph, and otherwise return a
2355         hyphen-minus.
2356
2357 2011-01-05  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2358
2359         Reviewed by Ariya Hidayat.
2360
2361         [Qt] [Symbian] Make CONFIG-=def_files the default configuration for trunk builds
2362         https://bugs.webkit.org/show_bug.cgi?id=51888
2363
2364         Overrule Qt's default from qconfig.pri for non-production builds so
2365         that CONFIG(def_files) evaluates to false and QtWebKit trunk builds succeed.
2366
2367         No new tests as there is no new functionality.
2368
2369         * WebCore.pro:
2370
2371 2011-01-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2372
2373         Unreviewed, rolling out r74778.
2374         http://trac.webkit.org/changeset/74778
2375         https://bugs.webkit.org/show_bug.cgi?id=51930
2376
2377         Android and QtWebKit-V8 uses V8DOMWindowShell::setContext.
2378         (Requested by bbandix on #webkit).
2379
2380         * bindings/v8/V8DOMWindowShell.cpp:
2381         (WebCore::V8DOMWindowShell::setContext):
2382         * bindings/v8/V8DOMWindowShell.h:
2383
2384 2011-01-05  Yi Shen  <yi.4.shen@nokia.com>
2385
2386         Reviewed by Andreas Kling.
2387
2388         [Qt] Animated GIF images does not animate 10x as expected by default.
2389         https://bugs.webkit.org/show_bug.cgi?id=36818
2390
2391         Add a test animated GIF which should be displayed 2 times and stop.
2392
2393         * manual-tests/animated-gif-looping.html:
2394         * manual-tests/resources/animated-2x.gif: Added.
2395
2396 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
2397
2398         Reviewed by Martin Robinson.
2399
2400         [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
2401         https://bugs.webkit.org/show_bug.cgi?id=51923
2402
2403         Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
2404         ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
2405
2406         No new tests. This should not change functionality.
2407
2408         * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
2409         * platform/gtk/ScrollbarThemeGtk.cpp:
2410         (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
2411         * platform/gtk/ScrollbarThemeGtk.h:
2412         * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
2413         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
2414         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
2415         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
2416         (WebCore::ScrollbarThemeGtk::paintThumb):
2417         (WebCore::ScrollbarThemeGtk::paintButton):
2418         * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
2419         (WebCore::ScrollbarThemeGtk::updateThemeProperties):
2420         (WebCore::ScrollbarThemeGtk::paintTrackBackground):
2421         (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
2422         (WebCore::ScrollbarThemeGtk::paintThumb):
2423         (WebCore::ScrollbarThemeGtk::paintButton):
2424
2425 2011-01-05  Patrick Gansterer  <paroga@webkit.org>
2426
2427         Reviewed by Andreas Kling.
2428
2429         [CMake] Fix the usage of SOURCE_GROUP
2430         https://bugs.webkit.org/show_bug.cgi?id=51739
2431
2432         * CMakeLists.txt:
2433
2434 2011-01-05  Andras Becsi  <abecsi@webkit.org>
2435
2436         Reviewed by Csaba Osztrogonác.
2437
2438         [Qt][V8] Fix the build after recent changes.
2439
2440         No new tests needed.
2441
2442         * WebCore.pro: Add missing files, and remove obsolete ones.
2443
2444 2011-01-05  Yong Li  <yoli@rim.com>
2445
2446         Reviewed by Adam Barth.
2447
2448         Suspend HTMLParserScheduler when page load is deferred to
2449         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
2450         from an external script or by events, and is blocked by a modal dialog,
2451         WebKit can parse more HTML source and also start another JS execution.
2452         
2453         https://bugs.webkit.org/show_bug.cgi?id=48077
2454
2455         Test case: WebCore/manual-tests/bugzilla-48077.html.
2456
2457         * dom/DocumentParser.cpp:
2458         (WebCore::DocumentParser::suspendScheduledTasks):
2459         (WebCore::DocumentParser::resumeScheduledTasks):
2460         * dom/DocumentParser.h:
2461         * html/parser/HTMLDocumentParser.cpp:
2462         (WebCore::HTMLDocumentParser::suspendScheduledTasks):
2463         (WebCore::HTMLDocumentParser::resumeScheduledTasks):
2464         * html/parser/HTMLParserScheduler.cpp:
2465         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
2466         (WebCore::HTMLParserScheduler::suspend):
2467         (WebCore::HTMLParserScheduler::resume):
2468         * html/parser/HTMLParserScheduler.h:
2469         (WebCore::HTMLParserScheduler::isScheduledForResume):
2470         * page/PageGroupLoadDeferrer.cpp:
2471         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
2472         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
2473
2474 2011-01-05  Simon Hausmann  <simon.hausmann@nokia.com>
2475
2476         Reviewed by Kenneth Rohde Christiansen, Gustavo Noronha Silva
2477
2478         [GStreamer] MediaPlayerPrivateGStreamer::totalBytes() does not work reliably
2479         https://bugs.webkit.org/show_bug.cgi?id=51926
2480
2481         Work around potential upstream bug: Querying a GstBin for the duration,
2482         will forward the query to all sink children. Our WebKitWebSrc however
2483         is a bin with only source children, therefore the query fails. Until
2484         this is changed upstream, this patch works around it as follows,
2485         based on suggestion by Philippe Normand and Sebastian Dröge:
2486
2487         When the initial query fails, attempt the same query on all source
2488         pads and take the maximum length reported.
2489
2490         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2491         (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
2492
2493 2011-01-05  Philippe Normand  <pnormand@igalia.com>
2494
2495         Rubber-stamped by Eric Seidel.
2496
2497         [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
2498         https://bugs.webkit.org/show_bug.cgi?id=51810
2499
2500         Based on a patch by Mart Raudsepp.
2501
2502         No new tests, build fix only.
2503
2504         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
2505         (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
2506         API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
2507         introduced in same version as the xoverlay API change.
2508
2509 2011-01-05  Leo Yang  <leo.yang@torchmobile.com.cn>
2510
2511         Reviewed by Dirk Schulze.
2512
2513         Malformed SVG causes crash in updateContainerOffset
2514         https://bugs.webkit.org/show_bug.cgi?id=44610
2515
2516         We should check recursive <use> at the begining of
2517         WebCore::SVGUseElement::buildInstanceTree instead
2518         of at the end of it because the target element's
2519         children may cause infinite recursive <use>.
2520
2521         Test: svg/custom/recursive-use.svg
2522
2523         * svg/SVGUseElement.cpp:
2524         (WebCore::SVGUseElement::buildInstanceTree):
2525         (WebCore::SVGUseElement::hasCycleUseReferencing):
2526         * svg/SVGUseElement.h:
2527
2528 2011-01-04  Antti Koivisto  <antti@apple.com>
2529
2530         Reviewed by Dan Bernstein.
2531
2532         https://bugs.webkit.org/show_bug.cgi?id=51907
2533         Style selector should only be recalculated when the pending sheet count goes to zero
2534         
2535         Shark says this is a significant performance improvement on some sites with lots of stylesheets.
2536
2537         * dom/Document.cpp:
2538         (WebCore::Document::removePendingSheet):
2539
2540 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
2541
2542         Reviewed by Martin Robinson.
2543
2544         [GTK] Use GtkStyleContext to get platform colors
2545         https://bugs.webkit.org/show_bug.cgi?id=51830
2546
2547         Use GtkStyleContext API to get platform colors when building with
2548         GTK+ 3.x.
2549
2550         No new tests. This should not change functionality.
2551
2552         * platform/graphics/Color.h: Add specialized constructor for GdkRGBA.
2553         * platform/graphics/gtk/ColorGtk.cpp:
2554         (WebCore::Color::Color):
2555         (WebCore::Color::operator GdkRGBA):
2556         * platform/gtk/RenderThemeGtk3.cpp:
2557         (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
2558         (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
2559         (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
2560         (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
2561         (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
2562         (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
2563         (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
2564         (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
2565         (WebCore::RenderThemeGtk::systemColor):
2566
2567 2011-01-05  Carlos Garcia Campos  <cgarcia@igalia.com>
2568
2569         Unreviewed. Build fix for GTK when using gtk+-3 after r75009.
2570
2571         * platform/gtk/RenderThemeGtk3.cpp:
2572         (WebCore::RenderThemeGtk::getStockIcon): Use adoptGRef instead of
2573         adoptGRefPtr which doesn't exist.
2574
2575 2011-01-05  Alexey Proskuryakov  <ap@apple.com>
2576
2577         Reviewed by Sam Weinig.
2578
2579         https://bugs.webkit.org/show_bug.cgi?id=51903
2580         Tell UI process which subframe is largest
2581
2582         * WebCore.exp.in: Exported FrameView::contentsSize().
2583
2584 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
2585
2586         Unreviewed. GTK build fix.
2587
2588         WK2: Support Accessibility
2589         https://bugs.webkit.org/show_bug.cgi?id=51859
2590
2591         * page/FrameView.cpp:
2592         (WebCore::FrameView::axObjectCache):
2593
2594 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2595
2596         Unreviewed, rolling out r74992.
2597         http://trac.webkit.org/changeset/74992
2598         https://bugs.webkit.org/show_bug.cgi?id=51917
2599
2600         Crash in HTMLDocumentParser::suspendScheduledTasks()
2601         (Requested by tkent on #webkit).
2602
2603         * dom/DocumentParser.cpp:
2604         * dom/DocumentParser.h:
2605         * html/parser/HTMLDocumentParser.cpp:
2606         * html/parser/HTMLDocumentParser.h:
2607         * html/parser/HTMLParserScheduler.cpp:
2608         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
2609         * html/parser/HTMLParserScheduler.h:
2610         (WebCore::HTMLParserScheduler::isScheduledForResume):
2611         * page/PageGroupLoadDeferrer.cpp:
2612         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
2613         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
2614
2615 2011-01-04  Benjamin Poulain  <benjamin.poulain@nokia.com>
2616
2617         Reviewed by Kenneth Rohde Christiansen.
2618
2619         [Qt] [WK2] Add support for non-trivial context menu action
2620         https://bugs.webkit.org/show_bug.cgi?id=51902
2621
2622         Fix the preprocessor guard for ContextMenuItemTagSelectAll in
2623         the implementation of ContextMenuController::contextMenuItemSelected(). The guard was
2624         inconsistent with what is defined in ContextMenuItem.h.
2625
2626         * page/ContextMenuController.cpp:
2627         (WebCore::ContextMenuController::contextMenuItemSelected):
2628
2629 2011-01-04  Tony Gentilcore  <tonyg@chromium.org>
2630
2631         Reviewed by Ryosuke Niwa.
2632
2633         Avoid manual ref/deref in AsyncScriptRunner by using PendingScript
2634         https://bugs.webkit.org/show_bug.cgi?id=51723
2635
2636         ScriptElement should also be able to keep its Element+CachedScript in
2637         a PendingScript, and then executeScriptSoon can accept a PendingScript.
2638         Once HTMLScriptRunner, ScriptElement, and AsyncScriptRunner all use
2639         PendingScripts, then generic request and execute which operate on
2640         PendingScripts can be factored out to avoid code duplicate that we have.
2641
2642         No new tests because no new functionality.
2643
2644         * dom/AsyncScriptRunner.cpp:
2645         (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
2646         (WebCore::AsyncScriptRunner::executeScriptSoon):
2647         (WebCore::AsyncScriptRunner::timerFired):
2648         * dom/AsyncScriptRunner.h:
2649         * dom/PendingScript.h: Add ctor which sets element and cachedScript. Rename adoptElement->setElement.
2650         * dom/HTMLScriptRunner.cpp:
2651         (WebCore::HTMLScriptRunner::requestPendingScript):
2652
2653 2011-01-04  Jeff Miller  <jeffm@apple.com>
2654
2655         Reviewed by Darin Adler.
2656
2657         Member variable and method naming cleanup to be consistent with WebKit2.
2658         https://bugs.webkit.org/show_bug.cgi?id=51228
2659
2660         * page/win/EventHandlerWin.cpp:
2661         (WebCore::EventHandler::eventActivatedView):
2662         Rename activatedWebView() to didActivateWebView().
2663         
2664         * platform/PlatformMouseEvent.h:
2665         Rename m_activatedWebView to m_didActivateWebView.
2666         
2667         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2668         Initialize platform-specific member variables in PlatformMouseEvent constructors.
2669         
2670         (WebCore::PlatformMouseEvent::didActivateWebView):
2671         Rename activatedWebView() to didActivateWebView().
2672
2673         * platform/win/PlatformMouseEventWin.cpp:
2674         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2675         Rename m_activatedWebView to m_didActivateWebView.
2676
2677 2011-01-04  Yael Aharon  <yael.aharon@nokia.com>
2678
2679         Reviewed by Darin Adler.
2680
2681         CSS3 :nth-child selector and valid whitespace test fails
2682         https://bugs.webkit.org/show_bug.cgi?id=36279
2683
2684         Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
2685
2686         Test: fast/css/css3-nth-space.html
2687
2688         * css/tokenizer.flex:
2689
2690 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
2691
2692         Unreviewed. Build fix.
2693
2694         WK2: Support Accessibility
2695         https://bugs.webkit.org/show_bug.cgi?id=51859
2696
2697         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2698         (fallbackObject):
2699
2700 2011-01-04  Cosmin Truta  <ctruta@chromium.org>
2701
2702         Reviewed by Eric Seidel.
2703
2704         [chromium] PNG compression settings optimized for speed
2705         https://bugs.webkit.org/show_bug.cgi?id=51719
2706
2707         Although Z_HUFFMAN_ONLY is the fastest on hard-to-compress images,
2708         it is also the slowest, by a wide margin, on easy-to-compress images.
2709         Use a more balanced configuration, based on the libpng compression defaults,
2710         but with a faster compression level (3 instead of 6), and a faster filter
2711         ("sub" instead of "all").
2712
2713         No change in behaviour, so no new tests.
2714
2715         * platform/image-encoders/skia/PNGImageEncoder.cpp:
2716         (WebCore::PNGImageEncoder::encode):
2717
2718 2011-01-04  Chris Fleizach  <cfleizach@apple.com>
2719
2720         Reviewed by Sam Weinig.
2721
2722         WK2: Support Accessibility
2723         https://bugs.webkit.org/show_bug.cgi?id=51859
2724
2725         WK2 doesn't use platform scroll views anymore. Accessibility code
2726         needs to have its own scroll views. 
2727
2728         Test: platform/mac/accessibility/webkit-scrollarea.html
2729
2730         * CMakeLists.txt:
2731         * GNUmakefile.am:
2732         * WebCore.exp.in:
2733         * WebCore.gypi:
2734         * WebCore.pro:
2735         * WebCore.vcproj/WebCore.vcproj:
2736         * WebCore.xcodeproj/project.pbxproj:
2737         * accessibility/AXObjectCache.cpp:
2738         (WebCore::AXObjectCache::AXObjectCache):
2739         (WebCore::AXObjectCache::get):
2740         (WebCore::AXObjectCache::getOrCreate):
2741         (WebCore::AXObjectCache::rootObject):
2742         (WebCore::AXObjectCache::remove):
2743         (WebCore::AXObjectCache::handleScrollbarUpdate):
2744         * accessibility/AXObjectCache.h:
2745         (WebCore::AXObjectCache::handleScrollbarUpdate):
2746         * accessibility/AccessibilityARIAGrid.h:
2747         * accessibility/AccessibilityAllInOne.cpp:
2748         * accessibility/AccessibilityImageMapLink.cpp:
2749         * accessibility/AccessibilityImageMapLink.h:
2750         * accessibility/AccessibilityListBoxOption.cpp:
2751         * accessibility/AccessibilityListBoxOption.h:
2752         * accessibility/AccessibilityObject.cpp:
2753         (WebCore::AccessibilityObject::updateChildrenIfNecessary):
2754         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
2755         (WebCore::AccessibilityObject::axObjectCache):
2756         (WebCore::AccessibilityObject::focusedUIElement):
2757         * accessibility/AccessibilityObject.h:
2758         (WebCore::AccessibilityObject::isAccessibilityScrollView):
2759         (WebCore::AccessibilityObject::isScrollView):
2760         (WebCore::AccessibilityObject::canSetNumericValue):
2761         (WebCore::AccessibilityObject::scrollBar):
2762         (WebCore::AccessibilityObject::size):
2763         (WebCore::AccessibilityObject::setValue):
2764         * accessibility/AccessibilityRenderObject.cpp:
2765         (WebCore::AccessibilityRenderObject::parentObject):
2766         (WebCore::AccessibilityRenderObject::accessibilityHitTest):
2767         (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
2768         (WebCore::AccessibilityRenderObject::addChildren):
2769         * accessibility/AccessibilityRenderObject.h:
2770         * accessibility/AccessibilityScrollView.cpp: Added.
2771         (WebCore::AccessibilityScrollView::AccessibilityScrollView):
2772         (WebCore::AccessibilityScrollView::create):
2773         (WebCore::AccessibilityScrollView::scrollBar):
2774         (WebCore::AccessibilityScrollView::children):
2775         (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
2776         (WebCore::AccessibilityScrollView::removeChildScrollbar):
2777         (WebCore::AccessibilityScrollView::addChildScrollbar):
2778         (WebCore::AccessibilityScrollView::addChildren):
2779         (WebCore::AccessibilityScrollView::webAreaObject):
2780         (WebCore::AccessibilityScrollView::accessibilityHitTest):
2781         (WebCore::AccessibilityScrollView::document):
2782         (WebCore::AccessibilityScrollView::elementRect):
2783         (WebCore::AccessibilityScrollView::parentObject):
2784         * accessibility/AccessibilityScrollView.h: Added.
2785         (WebCore::AccessibilityScrollView::roleValue):
2786         (WebCore::AccessibilityScrollView::scrollView):
2787         (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
2788         (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
2789         (WebCore::toAccessibilityScrollView):
2790         * accessibility/AccessibilityScrollbar.cpp:
2791         (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
2792         (WebCore::AccessibilityScrollbar::create):
2793         (WebCore::AccessibilityScrollbar::elementRect):
2794         (WebCore::AccessibilityScrollbar::document):
2795         (WebCore::AccessibilityScrollbar::orientation):
2796         (WebCore::AccessibilityScrollbar::isEnabled):
2797         (WebCore::AccessibilityScrollbar::valueForRange):
2798         (WebCore::AccessibilityScrollbar::setValue):
2799         * accessibility/AccessibilityScrollbar.h:
2800         (WebCore::AccessibilityScrollbar::setParent):
2801         (WebCore::AccessibilityScrollbar::canSetValueAttribute):
2802         (WebCore::AccessibilityScrollbar::canSetNumericValue):
2803         (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
2804         (WebCore::AccessibilityScrollbar::parentObject):
2805         (WebCore::AccessibilityScrollbar::roleValue):
2806         * accessibility/mac/AccessibilityObjectMac.mm:
2807         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
2808         * accessibility/mac/AccessibilityObjectWrapper.mm:
2809         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
2810         (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
2811         (-[AccessibilityObjectWrapper position]):
2812         (-[AccessibilityObjectWrapper scrollViewParent]):
2813         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
2814         (-[AccessibilityObjectWrapper accessibilityHitTest:]):
2815         (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
2816         * dom/Document.cpp:
2817         (WebCore::Document::axObjectCache):
2818         * loader/EmptyClients.h:
2819         (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
2820         * loader/FrameLoaderClient.h:
2821         * page/FrameView.cpp:
2822         (WebCore::FrameView::~FrameView):
2823         (WebCore::FrameView::axObjectCache):
2824         * page/FrameView.h:
2825         * platform/ScrollView.cpp:
2826         (WebCore::ScrollView::setHasHorizontalScrollbar):
2827         (WebCore::ScrollView::setHasVerticalScrollbar):
2828         * platform/Scrollbar.cpp:
2829         (WebCore::Scrollbar::~Scrollbar):
2830         (WebCore::Scrollbar::scroll):
2831         (WebCore::Scrollbar::axObjectCache):
2832         * platform/Scrollbar.h:
2833         * platform/Widget.h:
2834         (WebCore::Widget::axObjectCache):
2835
2836 2011-01-04  W. James MacLean  <wjmaclean@chromium.org>
2837
2838         Reviewed by Kenneth Russell.
2839
2840         [chromium] Add support to compositor to composite to offscreen texture.
2841         https://bugs.webkit.org/show_bug.cgi?id=50833
2842
2843         A patch to extend compositor to be able to composite into an offscreen texture instead
2844         of just directly to the display buffer. Builds on RenderSurfaceChromium support.
2845         Explicitly resets alpha channel before rendering to display.
2846
2847         * platform/graphics/chromium/LayerRendererChromium.cpp:
2848         (WebCore::LayerRendererChromium::LayerRendererChromium):
2849         (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
2850         (WebCore::LayerRendererChromium::drawLayers):
2851         (WebCore::LayerRendererChromium::setCompositeOffscreen):
2852         (WebCore::LayerRendererChromium::useRenderSurface):
2853         (WebCore::LayerRendererChromium::setScissorToRect):
2854         * platform/graphics/chromium/LayerRendererChromium.h:
2855         (WebCore::LayerRendererChromium::isCompositingOffscreen):
2856         (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
2857
2858 2011-01-04  Evan Martin  <evan@chromium.org>
2859
2860         Reviewed by Tony Chang.
2861
2862         [chromium] depend on harfbuzz explicitly
2863         https://bugs.webkit.org/show_bug.cgi?id=51895
2864
2865         platform/graphics/chromium uses Harfbuzz directly.  Rather than
2866         expecting Skia to adjust the include paths, be explicit about
2867         the dependency.
2868
2869         * WebCore.gyp/WebCore.gyp:
2870
2871 2011-01-04  Darin Adler  <darin@apple.com>
2872
2873         Reviewed by Brady Eidson.
2874
2875         Add back/forward encoding and decoding to WebKit2
2876         https://bugs.webkit.org/show_bug.cgi?id=51901
2877
2878         * WebCore.exp.in: Export functions used in WebKit2.
2879
2880         * history/HistoryItem.cpp:
2881         (WebCore::HistoryItem::encodeBackForwardTree): Use references instead of pointers.
2882         (WebCore::HistoryItem::encodeBackForwardTreeNode): Ditto.
2883         (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
2884         * history/HistoryItem.h: Ditto.
2885         * platform/network/FormData.cpp:
2886         (WebCore::encode): Ditto.
2887         (WebCore::decode): Ditto.
2888         (WebCore::FormData::encodeForBackForward): Ditto.
2889         (WebCore::FormData::decodeForBackForward): Ditto.
2890         * platform/network/FormData.h: Ditto.
2891
2892 2011-01-04  Xiaomei Ji  <xji@chromium.org>
2893
2894         Reviewed by Dan Bernstein.
2895
2896         Implement sel.modify('move', 'left'/'right', 'lineBoundary').
2897         https://bugs.webkit.org/show_bug.cgi?id=33435
2898
2899         * editing/SelectionController.cpp:
2900         (WebCore::SelectionController::modifyMovingRight):
2901         (WebCore::SelectionController::modifyMovingLeft):
2902         * editing/visible_units.cpp:
2903         (WebCore::logicalStartOfLine):
2904         (WebCore::logicalEndOfLine):
2905         (WebCore::leftBoundaryOfLine):
2906         (WebCore::rightBoundaryOfLine):
2907         * editing/visible_units.h:
2908
2909 2011-01-04  Martin Robinson  <mrobinson@igalia.com>
2910
2911         Reviewed by Xan Lopez.
2912
2913         [GTK] Use the default CSS text input control border width of relying on the GTK+ theme
2914         https://bugs.webkit.org/show_bug.cgi?id=51887
2915
2916         Do not rely on the GTK+ theme to determine text control borders. This simplifies
2917         the RenderTheme code, prevents metrics differences between GTK+ 2.x and 3.x and
2918         doesn't break the rendering of any theme that I've encountered.
2919
2920         * platform/gtk/RenderThemeGtk.cpp:
2921         (WebCore::RenderThemeGtk::adjustSearchFieldStyle): No longer call setTextInputBorders, but
2922         still disable any border radius.
2923         * platform/gtk/RenderThemeGtk.h: Remove setTextInputBorders and no longer override the
2924         default style of text areas and text input controls.
2925         * platform/gtk/RenderThemeGtk2.cpp: Ditto.
2926         * platform/gtk/RenderThemeGtk3.cpp: Ditto.
2927
2928 2011-01-03  Martin Robinson  <mrobinson@igalia.com>
2929
2930         Reviewed by Darin Adler.
2931
2932         Remove the last non-GObject usage of PlatformRefPtr and move the code to GRefPtr
2933         https://bugs.webkit.org/show_bug.cgi?id=51846
2934
2935         No new tests. This should not introduce any functional changes.
2936
2937         Changed all references to PlatformRefPtr in GTK+ code to GRefPtr. Changed
2938         all references to PlatformRefPtr in Brew code to RefPtr.
2939
2940 2011-01-04  David Kilzer  <ddkilzer@apple.com>
2941
2942         <http://webkit.org/b/51890> Move ResourceLoadPriority.h into WebCore/platform/network
2943
2944         Reviewed by Antti Koivisto.
2945
2946         This is needed to prevent a WebCore/platform policy violation in
2947         my next patch.
2948
2949         * WebCore.gypi: Updated for moved header.
2950         * WebCore.pro: Ditto.
2951         * WebCore.vcproj/WebCore.vcproj: Ditto.
2952         * WebCore.xcodeproj/project.pbxproj: Ditto.
2953         * platform/network/ResourceLoadPriority.h: Renamed from WebCore/loader/ResourceLoadPriority.h.
2954
2955 2011-01-04  Brady Eidson  <beidson@apple.com>
2956
2957         Reviewed by a spell checker.
2958
2959         * storage/StorageMap.h: mesured?  Really?
2960
2961 2011-01-04  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
2962
2963         Reviewed by Xan Lopez.
2964
2965         [GTK] Port stock icon painting to GtkStyleContext
2966         https://bugs.webkit.org/show_bug.cgi?id=51764
2967
2968         Port stock icon painting for media and search input elements to
2969         GtkStyleContext. Also create the initial machinery for accessing
2970         style contexts for all GTK+ 3.x based widgets.
2971
2972         No new tests. This should not change functionality.
2973
2974         * platform/gtk/RenderThemeGtk.cpp:
2975         (WebCore::paintGdkPixbuf):
2976         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
2977         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
2978         (WebCore::RenderThemeGtk::paintMediaButton):
2979         * platform/gtk/RenderThemeGtk.h:
2980         * platform/gtk/RenderThemeGtk2.cpp:
2981         (WebCore::RenderThemeGtk::getStockIcon):
2982         * platform/gtk/RenderThemeGtk3.cpp:
2983         (WebCore::gtkStyleChangedCallback):
2984         (WebCore::styleContextMap):
2985         (WebCore::getStyleContext):
2986         (WebCore::RenderThemeGtk::paintMenuList):
2987
2988 2010-12-31  Antti Koivisto  <antti@apple.com>
2989
2990         Reviewed by Dave Hyatt.
2991
2992         Scripts should not be executed before preceding stylesheets are loaded
2993         https://bugs.webkit.org/show_bug.cgi?id=8852
2994
2995         Block inline script execution on pending stylesheet loads. This matches
2996         other browsers and HTML5.
2997
2998         Tests: fast/tokenizer/inline-script-stylesheet-write.html
2999                fast/tokenizer/inline-script-stylesheet.html
3000
3001         * dom/PendingScript.cpp:
3002         (WebCore::PendingScript::releaseElementAndClear):
3003         * dom/PendingScript.h:
3004         (WebCore::PendingScript::PendingScript):
3005         (WebCore::PendingScript::operator=):
3006         (WebCore::PendingScript::startingPosition):
3007         (WebCore::PendingScript::setStartingPosition):
3008         * html/HTMLLinkElement.cpp:
3009         (WebCore::HTMLLinkElement::process):
3010         
3011         This fixes an unrelated bug with beforeload events that was exposed by the other
3012         changes (fast/dom/beforeload/remove-link-in-beforeload-listener.html).
3013         
3014         * html/parser/HTMLScriptRunner.cpp:
3015         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
3016         (WebCore::HTMLScriptRunner::runScript):
3017
3018 2011-01-04  Xianzhu Wang  <wangxianzhu@google.com>
3019
3020         Reviewed by Darin Adler.
3021
3022         Let DataView.getInt8() and DataView.setInt8() use int8_t instead of
3023         ambiguous 'char' to fix fast/canvas/webgl/data-view-test.html failure
3024         on ARM.
3025         https://bugs.webkit.org/show_bug.cgi?id=51861
3026
3027         By the way, changed other getIntXX() and setIntXX() methods to use
3028         more precise integer types.
3029
3030         * bindings/js/JSDataViewCustom.cpp:
3031         (WebCore::setDataViewMember):
3032         * bindings/v8/custom/V8DataViewCustom.cpp:
3033         (WebCore::V8DataView::getInt8Callback):
3034         (WebCore::V8DataView::setInt8Callback):
3035         * html/canvas/DataView.cpp:
3036         (WebCore::DataView::getInt8):
3037         (WebCore::DataView::setInt8):
3038         * html/canvas/DataView.h:
3039         * html/canvas/DataView.idl:
3040
3041 2011-01-04  Yong Li  <yoli@rim.com>
3042
3043         Reviewed by Adam Barth.
3044
3045         Suspend HTMLParserScheduler when page load is deferred to
3046         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3047         from an external script or by events, and is blocked by a modal dialog,
3048         WebKit can parse more HTML source and also start another JS execution.
3049         
3050         https://bugs.webkit.org/show_bug.cgi?id=48077
3051
3052         Test case: WebCore/manual-tests/bugzilla-48077.html.
3053
3054         * dom/DocumentParser.cpp:
3055         (WebCore::DocumentParser::suspendScheduledTasks):
3056         (WebCore::DocumentParser::resumeScheduledTasks):
3057         * dom/DocumentParser.h:
3058         * html/parser/HTMLDocumentParser.cpp:
3059         (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3060         (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3061         * html/parser/HTMLParserScheduler.cpp:
3062         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3063         (WebCore::HTMLParserScheduler::suspend):
3064         (WebCore::HTMLParserScheduler::resume):
3065         * html/parser/HTMLParserScheduler.h:
3066         (WebCore::HTMLParserScheduler::isScheduledForResume):
3067         * page/PageGroupLoadDeferrer.cpp:
3068         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3069         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3070
3071 2011-01-04  Tony Gentilcore  <tonyg@chromium.org>
3072
3073         Unreviewed build fix.
3074
3075         Include glib-object.h for GObject
3076         https://bugs.webkit.org/show_bug.cgi?id=51876
3077
3078         * bindings/gobject/DOMObjectCache.cpp:
3079
3080 2011-01-04  Ryosuke Niwa  <rniwa@webkit.org>
3081
3082         Reviewed by Dan Bernstein.
3083
3084         Clicking on the first or the last letter of LTR/RTL text in a RTL/LTR block puts caret on the opposite side.
3085         https://bugs.webkit.org/show_bug.cgi?id=50992
3086
3087         Fixed the bug by interchanging the offset when the direction of inline text box and the containing block
3088         does not match. Reused the code added by http://trac.webkit.org/changeset/73553.
3089
3090         Test: editing/selection/caret-bidi-first-and-last-letters.html
3091
3092         * rendering/InlineTextBox.cpp:
3093         (WebCore::InlineTextBox::offsetForPosition):
3094
3095 2010-12-29  Tony Gentilcore  <tonyg@chromium.org>
3096
3097         Reviewed by Darin Adler.
3098
3099         Remove 2 unnecessary includes from Document.h
3100         https://bugs.webkit.org/show_bug.cgi?id=51727
3101
3102         No new tests because no changed functionality.
3103
3104         * dom/Document.cpp:
3105         * dom/Document.h:
3106         * editing/Editor.cpp:
3107         * editing/SpellChecker.h:
3108         * editing/SplitTextNodeCommand.cpp:
3109         * editing/TextCheckingHelper.cpp:
3110         * page/FrameView.cpp:
3111         * page/Page.cpp:
3112         * rendering/HitTestResult.cpp:
3113         * rendering/InlineTextBox.cpp:
3114         * rendering/InlineTextBox.h:
3115         * rendering/svg/SVGInlineFlowBox.cpp:
3116
3117 2011-01-04  Patrick Gansterer  <paroga@webkit.org>
3118
3119         Unreviewed WinCE build fix.
3120
3121         * CMakeListsWinCE.txt: Added missing include directories, files and libraries.
3122
3123 2011-01-04  Yi Shen  <yi.4.shen@nokia.com>
3124
3125         Reviewed by Simon Hausmann.
3126
3127         Provide an interface to require using fullscreen mediaplayer
3128         https://bugs.webkit.org/show_bug.cgi?id=51133
3129
3130         Only video should be displayed in fullscreen when 
3131         requiresFullscreenForVideoPlayback is specified.
3132
3133         No new tests because no client implements requiresFullscreenForVideoPlayback yet.
3134
3135         * html/HTMLMediaElement.cpp:
3136         (WebCore::HTMLMediaElement::updatePlayState):
3137
3138 2011-01-04  Benjamin Poulain  <benjamin.poulain@nokia.com>
3139
3140         Reviewed by Kenneth Rohde Christiansen.
3141
3142         [Qt] [WK2] create an initial implementation of the context menu handling for WebKit 2
3143         https://bugs.webkit.org/show_bug.cgi?id=51825
3144
3145         Implement contextMenuItemVector() for Qt, this method is used in WebKit 2 to get the
3146         platform independent menu informations.
3147
3148         * platform/qt/ContextMenuQt.cpp:
3149         (WebCore::contextMenuItemVector):
3150
3151 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
3152
3153         Unreviewed, rolling out r74960.
3154         http://trac.webkit.org/changeset/74960
3155         https://bugs.webkit.org/show_bug.cgi?id=51868
3156
3157         Rollout since we hit an assert after this patch. (Requested by
3158         krit on #webkit).
3159
3160         * svg/SVGUseElement.cpp:
3161         (WebCore::SVGUseElement::buildInstanceTree):
3162
3163 2011-01-04  Sheriff Bot  <webkit.review.bot@gmail.com>
3164
3165         Unreviewed, rolling out r74961.
3166         http://trac.webkit.org/changeset/74961
3167         https://bugs.webkit.org/show_bug.cgi?id=51867
3168
3169         breaks 32/64-bits debug bots build (Requested by philn-tp on
3170         #webkit).
3171
3172         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3173         (WebCore::GStreamerGWorld::setWindowOverlay):
3174
3175 2011-01-03  Philippe Normand  <pnormand@igalia.com>
3176
3177         Rubber-stamped by Eric Seidel.
3178
3179         [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
3180         https://bugs.webkit.org/show_bug.cgi?id=51810
3181
3182         Based on a patch by Mart Raudsepp.
3183
3184         No new tests, build fix only.
3185
3186         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3187         (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
3188         API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
3189         introduced in same version as the xoverlay API change.
3190
3191 2011-01-04  Leo Yang  <leo.yang@torchmobile.com.cn>
3192
3193         Reviewed by Dirk Schulze.
3194
3195         Malformed SVG causes crash in updateContainerOffset
3196         https://bugs.webkit.org/show_bug.cgi?id=44610
3197
3198         We should check recursive <use> at the begining of
3199         WebCore::SVGUseElement::buildInstanceTree instead
3200         of at the end of it because the target element's
3201         children may cause infinite recursive <use>.
3202
3203         Test: svg/custom/recursive-use.svg
3204
3205         * svg/SVGUseElement.cpp:
3206         (WebCore::SVGUseElement::buildInstanceTree):
3207
3208 2011-01-04  Kent Tamura  <tkent@chromium.org>
3209
3210         Unreviewed, build fix.
3211
3212         Try to fix Clang build.
3213
3214         * css/CSSParser.cpp:
3215         (WebCore::valueFromSideKeyword):
3216         (WebCore::CSSParser::parseLinearGradient):
3217
3218 2011-01-03  Julie-Jeongeun-Kim  <Jeongeun.Kim@obigo.com>
3219
3220         Reviewed by Darin Adler.
3221
3222         HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
3223         https://bugs.webkit.org/show_bug.cgi?id=48596
3224         
3225         border attribute was not parsed in HTMLObjectElement.
3226         I added code for it as HTMLImageElement handled.
3227
3228         new test:fast/html/object-border.html
3229
3230         * html/HTMLObjectElement.cpp:
3231         (WebCore::HTMLObjectElement::parseMappedAttribute):
3232
3233 2011-01-03  Darin Adler  <darin@apple.com>
3234
3235         Try to fix Chromium build.
3236
3237         * history/HistoryItem.cpp:
3238         (WebCore::HistoryItem::encodeBackForwardTreeNode): Added a V8 case here.
3239         Not sure this ever will be used with V8.
3240         (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
3241
3242 2011-01-03  Darin Adler  <darin@apple.com>
3243
3244         Try to fix Leopard build.
3245
3246         * history/HistoryItem.cpp: Use a consistent type, uint64_t, for the
3247         size variable.
3248
3249 2011-01-03  Abhishek Arya  <inferno@chromium.org>
3250
3251         Reviewed by Darin Adler.
3252
3253         Fixes before child calculation when adding anonymous childs to table parts.
3254         https://bugs.webkit.org/show_bug.cgi?id=50932
3255
3256         Fix in r74364 was incomplete. When before child is equal to the table part(to
3257         which the new child is getting added), it confuses the table part to add it
3258         incorrectly as an after child. The patch fixes by passing the before child as
3259         the table part's first child.
3260
3261         Tests: fast/css-generated-content/table-before-after-child-add.html
3262                fast/css-generated-content/table-cell-before-after-child-add.html
3263                fast/css-generated-content/table-row-before-after-child-add.html
3264                fast/css-generated-content/table-row-before-after-child-add.html
3265
3266         * rendering/RenderTable.cpp:
3267         (WebCore::RenderTable::addChild):
3268         * rendering/RenderTableRow.cpp:
3269         (WebCore::RenderTableRow::addChild):
3270         * rendering/RenderTableSection.cpp:
3271         (WebCore::RenderTableSection::addChild):
3272
3273 2011-01-03  Dan Bernstein  <mitz@apple.com>
3274
3275         Reviewed by Simon Fraser.
3276
3277         Shrink HTMLTableCellElement
3278         https://bugs.webkit.org/show_bug.cgi?id=51858
3279
3280         * html/HTMLTableCellElement.cpp:
3281         (WebCore::HTMLTableCellElement::HTMLTableCellElement): Removed intialization of m_row and
3282         m_col.
3283         * html/HTMLTableCellElement.h: Removed m_row and m_col and their accessors.
3284
3285 2011-01-03  Darin Adler  <darin@apple.com>
3286
3287         Fix build.
3288
3289         * platform/network/FormData.cpp:
3290         (WebCore::FormData::create): Roll back uint8_t change.
3291         (WebCore::FormData::flatten): Ditto.
3292         (WebCore::FormData::flattenToString): Ditto.
3293         (WebCore::encode): Ditto.
3294         (WebCore::decode): Ditto.
3295         (WebCore::FormData::encodeForBackForward):
3296         * platform/network/FormData.h: Ditto.
3297         * platform/network/mac/FormDataStreamMac.mm:
3298         (WebCore::advanceCurrentStream): Ditto.
3299
3300 2011-01-03  Darin Adler  <darin@apple.com>
3301
3302         Reviewed by Brady Eidson.
3303
3304         Add code to encode/decode the back/forward tree
3305         https://bugs.webkit.org/show_bug.cgi?id=51853
3306
3307         * history/HistoryItem.cpp:
3308         (WebCore::HistoryItem::encodeBackForwardTree): Added.
3309         (WebCore::HistoryItem::encodeBackForwardTreeNode): Added.
3310         (WebCore::HistoryItem::decodeBackForwardTree): Added.
3311         * history/HistoryItem.h: Added functions above.
3312
3313         * platform/network/FormData.cpp:
3314         (WebCore::FormData::create): Changed type to Vector<uint8_t> instead of
3315         Vector<char>. This type is used in our newer code for vectors of bytes.
3316         (WebCore::FormData::flatten): Ditto.
3317         (WebCore::FormData::flattenToString): Ditto. Had to add a cast here.
3318         (WebCore::FormData::encodeForBackForward): Added.
3319         (WebCore::FormData::decodeForBackForward): Added.
3320         * platform/network/FormData.h: Changed type to Vector<uint8_t> instead of
3321         Vector<char>. Also made some single-argument constructors explicit.
3322         Also added the new functions.
3323
3324         * platform/network/mac/FormDataStreamMac.mm:
3325         (WebCore::advanceCurrentStream): Changed to use uint8_t to match above.
3326
3327 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
3328
3329         Attempt to fix GTK build.
3330
3331         * platform/graphics/gtk/FontGtk.cpp:
3332         (WebCore::drawGlyphsShadow):
3333
3334 2011-01-03  Helder Correia  <helder@sencha.com>
3335
3336         Reviewed by Simon Fraser.
3337
3338         ContextShadow can avoid code duplication for getting the CTM
3339         https://bugs.webkit.org/show_bug.cgi?id=51799
3340
3341         ContextShadow defines its own getTransformationMatrixFromContext()
3342         which does exactly the same as GraphicsContext::getCTM().
3343
3344         Existing tests: fast/canvas/canvas*shadow*html
3345
3346         * platform/graphics/ContextShadow.cpp:
3347         (WebCore::ContextShadow::mustUseContextShadow):
3348         (WebCore::ContextShadow::adjustBlurDistance):
3349         (WebCore::ContextShadow::calculateLayerBoundingRect):
3350         * platform/graphics/ContextShadow.h:
3351         * platform/graphics/cairo/ContextShadowCairo.cpp:
3352         (WebCore::ContextShadow::beginShadowLayer):
3353         (WebCore::ContextShadow::endShadowLayer):
3354         (WebCore::ContextShadow::drawRectShadowWithoutTiling):
3355         * platform/graphics/cairo/FontCairo.cpp:
3356         (WebCore::drawGlyphsShadow):
3357         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3358         (WebCore::drawPathShadow):
3359         * platform/graphics/cairo/ImageCairo.cpp:
3360         (WebCore::BitmapImage::draw):
3361         * platform/graphics/gtk/FontGtk.cpp:
3362         (WebCore::drawGlyphsShadow):
3363         * platform/graphics/qt/ContextShadowQt.cpp:
3364         (WebCore::ContextShadow::beginShadowLayer):
3365         (WebCore::ContextShadow::endShadowLayer):
3366         * platform/graphics/qt/FontQt.cpp:
3367         (WebCore::drawTextCommon):
3368         * platform/graphics/qt/GraphicsContextQt.cpp:
3369         (WebCore::GraphicsContext::fillPath):
3370         (WebCore::GraphicsContext::strokePath):
3371         (WebCore::GraphicsContext::fillRect):
3372         (WebCore::GraphicsContext::fillRoundedRect):
3373         * platform/graphics/qt/ImageQt.cpp:
3374         (WebCore::BitmapImage::draw):
3375         * platform/graphics/qt/StillImageQt.cpp:
3376         (WebCore::StillImage::draw):
3377
3378 2011-01-03  Darin Adler  <darin@apple.com>
3379
3380         Reviewed by Dan Bernstein.
3381
3382         InsertTextCommand::m_charactersAdded is unused
3383         https://bugs.webkit.org/show_bug.cgi?id=51849
3384
3385         * editing/InsertTextCommand.cpp:
3386         (WebCore::InsertTextCommand::InsertTextCommand): Don't initialize m_charactersAdded.
3387         (WebCore::InsertTextCommand::input): Don't update m_charactersAdded.
3388         * editing/InsertTextCommand.h: Removed charactersAdded function and
3389         m_charactersAdded data member.
3390
3391 2011-01-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3392
3393         Reviewed by Martin Robinson.
3394
3395         [GTK] Move paintMenuListButton() to RenderThemeGtk.cpp
3396         https://bugs.webkit.org/show_bug.cgi?id=51832
3397
3398         Method paintMenuListButton() contains code common to both gtk 2
3399         and 3, so it can be moved to RenderThemeGtk.cpp instead of
3400         duplicating it.
3401
3402         * platform/gtk/RenderThemeGtk.cpp:
3403         (WebCore::RenderThemeGtk::paintMenuListButton):
3404         * platform/gtk/RenderThemeGtk2.cpp:
3405         * platform/gtk/RenderThemeGtk3.cpp:
3406
3407 2011-01-03  Pratik Solanki  <psolanki@apple.com>
3408
3409         Reviewed by Darin Adler.
3410
3411         https://bugs.webkit.org/show_bug.cgi?id=51850
3412         Put CFNetwork loader code inside USE(CFNETWORK)
3413
3414         Add USE(CFNETWORK) macros around all the cf/mac network files. Also added all CFNetwork
3415         files to the WebCore Xcode project.
3416
3417         * WebCore.xcodeproj/project.pbxproj:
3418         * loader/cf/ResourceLoaderCFNet.cpp:
3419         * loader/mac/ResourceLoaderMac.mm:
3420         * platform/network/cf/AuthenticationCF.cpp:
3421         * platform/network/cf/AuthenticationCF.h:
3422         * platform/network/cf/CookieJarCFNet.cpp:
3423         * platform/network/cf/CookieStorageCFNet.cpp:
3424         * platform/network/cf/CookieStorageCFNet.h:
3425         * platform/network/cf/CredentialStorageCFNet.cpp:
3426         * platform/network/cf/FormDataStreamCFNet.cpp:
3427         * platform/network/cf/FormDataStreamCFNet.h:
3428         * platform/network/cf/LoaderRunLoopCF.cpp:
3429         * platform/network/cf/LoaderRunLoopCF.h:
3430         * platform/network/cf/ResourceError.h:
3431         * platform/network/cf/ResourceHandleCFNet.cpp:
3432         * platform/network/cf/ResourceRequest.h:
3433         * platform/network/cf/ResourceRequestCFNet.cpp:
3434         * platform/network/cf/ResourceRequestCFNet.h:
3435         * platform/network/cf/ResourceResponse.h:
3436         * platform/network/cf/ResourceResponseCFNet.cpp:
3437         * platform/network/mac/AuthenticationMac.h:
3438         * platform/network/mac/AuthenticationMac.mm:
3439         * platform/network/mac/FormDataStreamMac.h:
3440         * platform/network/mac/FormDataStreamMac.mm:
3441         * platform/network/mac/ResourceError.h:
3442         * platform/network/mac/ResourceHandleMac.mm:
3443         * platform/network/mac/ResourceRequest.h:
3444         * platform/network/mac/ResourceRequestMac.mm:
3445         * platform/network/mac/ResourceResponse.h:
3446         * platform/network/mac/ResourceResponseMac.mm:
3447
3448 2011-01-03  Yi Shen  <yi.4.shen@nokia.com>
3449
3450         Reviewed by Adam Barth.
3451
3452         [Qt] Add SelectAll option to the context menu for the editor
3453         https://bugs.webkit.org/show_bug.cgi?id=50049
3454
3455         Enable SelectAll for the Qt context menu.
3456
3457         * page/ContextMenuController.cpp:
3458         (WebCore::ContextMenuController::populate):
3459         * platform/ContextMenuItem.h:
3460         * platform/LocalizationStrategy.h:
3461         * platform/LocalizedStrings.cpp:
3462         (WebCore::contextMenuItemTagSelectAll):
3463         * platform/LocalizedStrings.h:
3464
3465 2011-01-03  Dan Bernstein  <mitz@apple.com>
3466
3467         Reviewed by Darin Adler.
3468
3469         Shrink RootInlineBox
3470         https://bugs.webkit.org/show_bug.cgi?id=51847
3471
3472         * rendering/RootInlineBox.cpp:
3473         (WebCore::RootInlineBox::alignBoxesInBlockDirection): Changed to use the baselineType()
3474         accessor.
3475         * rendering/RootInlineBox.h: Rolled m_baselineType into a bitfield. Changed its type to
3476         unsigned because otherwise MSVC treats it as signed.
3477         (WebCore::RootInlineBox::baselineType): Added a cast.
3478
3479 2011-01-03  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
3480
3481         Reviewed by Martin Robinson.
3482
3483         [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
3484         https://bugs.webkit.org/show_bug.cgi?id=50698
3485
3486         Fix DOM bindings generation to no longer include the now-gone
3487         webkitprivate.h header, including the appropriate replacements
3488         instead.
3489
3490         * bindings/scripts/CodeGeneratorGObject.pm:
3491
3492 2011-01-03  Brady Eidson  <beidson@apple.com>
3493
3494         Reviewed by Darin Adler.
3495
3496         Add Encode/Decode machinery Darin and I plan to work with for back/forward stuff in WebKit2.
3497
3498         * ForwardingHeaders/wtf/Decoder.h: Added.
3499         * ForwardingHeaders/wtf/Encoder.h: Added.
3500
3501 2011-01-03  Chris Fleizach  <cfleizach@apple.com>
3502
3503         Reviewed by Darin Adler.
3504
3505         AX: Regression: WebKit no longer auto-scrolls with VoiceOver navigation
3506         https://bugs.webkit.org/show_bug.cgi?id=51833
3507
3508         Make sure the web area returns the contentsSize, not the same size as what is displayed.
3509
3510         Test: platform/mac/accessibility/webarea-size-equals-content-size.html
3511
3512         * accessibility/AccessibilityRenderObject.cpp:
3513         (WebCore::AccessibilityRenderObject::boundingBoxRect):
3514
3515 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
3516
3517         Fix warning in 32-bit builds.
3518
3519         * css/CSSGradientValue.cpp:
3520         (WebCore::CSSLinearGradientValue::createGradient):
3521
3522 2011-01-03  Benjamin C Meyer  <bmeyer@rim.com>
3523
3524         Reviewed by Daniel Bates.
3525
3526         In the cmake build system move logic related to ENABLE_NOTIFICATIONS into its own block.
3527         https://bugs.webkit.org/show_bug.cgi?id=51827
3528
3529         * CMakeLists.txt:
3530
3531 2011-01-03  Dan Bernstein  <mitz@apple.com>
3532
3533         Reviewed by Simon Fraser.
3534
3535         Remove the unused RenderTableCell::m_percentageHeight
3536         https://bugs.webkit.org/show_bug.cgi?id=51837
3537
3538         * rendering/RenderTableCell.cpp:
3539         (WebCore::RenderTableCell::RenderTableCell): Removed initialization of m_percentageHeight.
3540         * rendering/RenderTableCell.h: Removed m_percentageHeight.
3541
3542 2011-01-03  Simon Fraser  <simon.fraser@apple.com>
3543
3544         Reviewed by David Hyatt.
3545
3546         Implement -webkit-linear-gradient and -webkit-radial-gradient
3547         https://bugs.webkit.org/show_bug.cgi?id=28152
3548
3549         Add support for -webkit-radial-gradients.
3550
3551         Tests: fast/gradients/css3-radial-gradients.html
3552                fast/gradients/css3-radial-gradients2.html
3553
3554         * css/CSSGradientValue.cpp:
3555         (WebCore::blend): Used to blend colors, which is necessary when truncating
3556         the start of radial gradients.
3557         (WebCore::GradientStop): Small struct to aid gradient stop processing.
3558         (WebCore::CSSGradientValue::addStops): Rename 'positions' to 'stops', and store
3559         the color so that we can blend it when truncating radial gradients. Changed
3560         to handle both linear and radial gradients.
3561         (WebCore::CSSRadialGradientValue::cssText): Update to follow the spec.
3562         (WebCore::CSSRadialGradientValue::resolveRadius): Stylistic change.
3563         (WebCore::distanceToClosestCorner): New utility method.
3564         (WebCore::distanceToFarthestCorner): Ditto.
3565         (WebCore::CSSRadialGradientValue::createGradient): New logic to deal with shape and
3566         fill rules.
3567
3568         * css/CSSGradientValue.h:
3569         (WebCore::CSSGradientValue::isLinearGradient): Color-stop processing needs to know what
3570         kind of gradient it's dealing with, so add new isFooGradient methods.
3571         (WebCore::CSSGradientValue::isRadialGradient): Ditto.
3572         (WebCore::CSSLinearGradientValue::isLinearGradient):
3573         (WebCore::CSSRadialGradientValue::setShape): New setters for shape, size etc.
3574         (WebCore::CSSRadialGradientValue::setSizingBehavior):
3575         (WebCore::CSSRadialGradientValue::setEndHorizontalSize):
3576         (WebCore::CSSRadialGradientValue::setEndVerticalSize):
3577         (WebCore::CSSRadialGradientValue::isRadialGradient):
3578
3579         * css/CSSParser.h: