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