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