1 2011-01-10 Martin Robinson <mrobinson@igalia.com>
5 [GTK] Remove use of deprecated GTK+ methods before the 1.3.10 release
6 https://bugs.webkit.org/show_bug.cgi?id=52173
8 No new tests. This is only a build fix.
10 * platform/gtk/GRefPtrGtk.cpp: Guard the GdkCursor specialization against GTK+ 3.x.
11 In GTK+ 3.x, GdkCursor is just a GObject.
12 * platform/gtk/GRefPtrGtk.h: Ditto.
14 2011-01-10 Geoffrey Garen <ggaren@apple.com>
16 Reviewed by Oliver Hunt.
18 Moved Collector.* => Heap.*, since the file contains a class named "Heap".
20 * ForwardingHeaders/runtime/Collector.h: Removed.
21 * ForwardingHeaders/runtime/Heap.h: Copied from WebCore/ForwardingHeaders/runtime/Collector.h.
22 * WebCore.vcproj/WebCore.vcproj:
23 * bindings/js/GCController.cpp:
24 * bindings/js/ScriptGCEvent.cpp:
26 2011-01-10 Leonid Ebril <leonid.ebril@nokia.com>
28 Reviewed by Kenneth Rohde Christiansen.
30 https://bugs.webkit.org/show_bug.cgi?id=51879
32 Set the PluginQuirkDontSetNullWindowHandleOnDestroy for Adobe Lite
33 plugin if Flash 10 or newer (for Symbian platform), setting a nulled
34 window handler on destroy crashes WebKit.
36 * plugins/symbian/PluginPackageSymbian.cpp:
37 (WebCore::PluginPackage::fetchInfo):
38 (WebCore::PluginPackage::determineQuirks):
40 2011-01-10 Martin Robinson <mrobinson@igalia.com>
42 Reviewed by Xan Lopez.
44 [GTK] Remove unecessary RenderThemeGtk and WidgetRenderingContext code
45 https://bugs.webkit.org/show_bug.cgi?id=52170
47 Remove unnecessary code from RenderThemeGtk3 and RenderThemeGtk now that the
48 GtkStyleContext port is complete. Also remove WidgetRenderingContextGtk3 and
49 move WidgetRenderingRenderingContextGtk2 to WidgetRenderingContext and make it
50 GTK+ 2.x only. Some methods have been moved to RenderThemeGtk2 since they are
53 No new tests. This should not change functionality.
55 * GNUmakefile.am: Remove WidgetRenderingContextGtk3 and gtk3drawing.c
56 * platform/gtk/RenderThemeGtk.cpp:
57 (WebCore::RenderThemeGtk::RenderThemeGtk):
58 (WebCore::gtkIconState): Made this method static. It isn't used outside RenderThemeGtk.
59 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): Updated to refelct gtkIconState change.
60 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): Ditto.
61 (WebCore::RenderThemeGtk::paintMediaButton): Ditto
62 * platform/gtk/RenderThemeGtk.h: Move a few methods which are now GTK+ 2.x only.
63 * platform/gtk/RenderThemeGtk2.cpp:
64 (WebCore::RenderThemeGtk::platformInit): Added this platform initialization method
65 that is only used for GTK+ 2.x at the moment.
66 (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
67 (WebCore::getGtkStateType): Made this method static.
68 (WebCore::RenderThemeGtk::getIndicatorMetrics): Moved this here from RenderThemeGtk.
69 (WebCore::setToggleSize): Updated to reflect changes to getGtkStateType.
70 (WebCore::RenderThemeGtk::paintButton): Ditto.
71 (WebCore::RenderThemeGtk::paintSliderTrack): Ditto.
72 (WebCore::RenderThemeGtk::paintSliderThumb): Ditto.
73 * platform/gtk/RenderThemeGtk3.cpp:
74 (WebCore::RenderThemeGtk::gtkScrollbarStyle): Moved to the top of the file.
75 (WebCore::RenderThemeGtk::platformInit): Added.
76 (WebCore::RenderThemeGtk::~RenderThemeGtk): Added.
77 (WebCore::RenderThemeGtk::initMediaColors): Changed to use the GtkStyleContext API to
78 fetch these colors. This was the last dependency on the old API.
79 * platform/gtk/WidgetRenderingContext.cpp: Renamed from Source/WebCore/platform/gtk/WidgetRenderingContextGtk2.cpp.
80 * platform/gtk/WidgetRenderingContext.h: Made GTK+ 2.x only.
81 * platform/gtk/WidgetRenderingContextGtk3.cpp: Removed.
82 * platform/gtk/gtk3drawing.c: Removed.
83 * platform/gtk/gtkdrawing.h: Made GTK+ 2.x only.
85 2011-01-10 Benjamin Poulain <benjamin.poulain@nokia.com>
87 Reviewed by Kenneth Rohde Christiansen.
89 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
90 https://bugs.webkit.org/show_bug.cgi?id=52081
92 Test for the availability of cookie jar to return if cookies are enabled or not.
94 * platform/qt/CookieJarQt.cpp:
95 (WebCore::cookiesEnabled):
97 2011-01-10 W. James MacLean <wjmaclean@chromium.org>
99 Reviewed by Kenneth Russell.
101 [chromium] Enable reuse of RenderSurface for drawing.
102 https://bugs.webkit.org/show_bug.cgi?id=51928
104 Modifies RenderSurfaceChromium::prepareContentsTexture to avoid trying to 'reserve' a texture
105 that is already reserved, should an attempt be made to re-select a previously drawn render surface
106 in order to continue drawing to it. This use case appears when compositing into an offscreen texture.
108 Covered by existing test (compositing/geometry/fixed-position.html) when offscreen compositing enabled.
110 * platform/graphics/chromium/LayerTexture.h:
111 (WebCore::LayerTexture::isReserved):
112 * platform/graphics/chromium/RenderSurfaceChromium.cpp:
113 (WebCore::RenderSurfaceChromium::prepareContentsTexture):
114 * platform/graphics/chromium/TextureManager.cpp:
115 (WebCore::TextureManager::isProtected):
116 * platform/graphics/chromium/TextureManager.h:
118 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
120 Reviewed by Xan Lopez.
122 [GTK] Port combo box painting to GtkStyleContext
123 https://bugs.webkit.org/show_bug.cgi?id=51828
125 Use GtkStyleContext API to paint combo boxes when building with
126 GTK+ 3.x. Method paintButton() has been factored out and the new
127 static method renderButton() is used by both paintButton() and
130 No new tests. This should not change functionality.
132 * platform/gtk/RenderThemeGtk3.cpp:
133 (WebCore::RenderThemeGtk::adjustRepaintRect):
134 (WebCore::renderButton):
135 (WebCore::RenderThemeGtk::paintButton):
136 (WebCore::getComboBoxMetrics):
137 (WebCore::RenderThemeGtk::popupInternalPaddingLeft):
138 (WebCore::RenderThemeGtk::popupInternalPaddingRight):
139 (WebCore::RenderThemeGtk::popupInternalPaddingTop):
140 (WebCore::RenderThemeGtk::popupInternalPaddingBottom):
141 (WebCore::RenderThemeGtk::paintMenuList):
143 2011-01-10 Evan Martin <evan@chromium.org>
145 Reviewed by Tony Chang.
147 [chromium] simplify complex glyph positioning code
148 https://bugs.webkit.org/show_bug.cgi?id=52159
150 Before, we had roughly same code duplicated for RTL and LTR.
151 Now, use the same code for both directions by being careful about
152 flipping signs where appropriate.
154 * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
155 (WebCore::ComplexTextController::shapeGlyphs):
156 (WebCore::ComplexTextController::setGlyphXPositions):
158 2011-01-10 Alejandro G. Castro <alex@igalia.com>
160 Reviewed by Xan Lopez.
162 [GTK] Fix gtk2 compilation for master
163 https://bugs.webkit.org/show_bug.cgi?id=51885
165 * platform/gtk/GtkVersioning.h: Replaced the 2.24.0 check with
166 2.23.0 to avoid using the old symbols in the 2.23 releases. Added
167 support for gdk_pixmap_get_size before the 2.23.4.
168 * platform/gtk/WidgetRenderingContextGtk2.cpp:
169 (WebCore::WidgetRenderingContext::WidgetRenderingContext):
170 Replaced the old gdk_drawable_get_size with gdk_pixmap_get_size.
172 2011-01-10 Ryosuke Niwa <rniwa@webkit.org>
174 Unreviewed; build fix for r75385.
176 * rendering/mathml/RenderMathMLFraction.cpp:
177 (WebCore::RenderMathMLFraction::paint):
179 2011-01-10 Sheriff Bot <webkit.review.bot@gmail.com>
181 Unreviewed, rolling out r75341.
182 http://trac.webkit.org/changeset/75341
183 https://bugs.webkit.org/show_bug.cgi?id=52157
185 Regressions on several pixel tests (Requested by jorlow on
188 * platform/graphics/cg/GraphicsContextCG.cpp:
189 (WebCore::GraphicsContext::fillPath):
191 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
193 Reviewed by Martin Robinson.
195 [GTK] Port check and radio button painting to GtkStyleContext
196 https://bugs.webkit.org/show_bug.cgi?id=51815
198 Use GtkStyleContext API to paint check and radio buttons when
199 building with GTK+ 3.x.
201 No new tests. This should not change functionality.
203 * platform/gtk/RenderThemeGtk3.cpp:
204 (WebCore::RenderThemeGtk::adjustRepaintRect):
205 (WebCore::setToggleSize):
206 (WebCore::paintToggle):
207 (WebCore::RenderThemeGtk::setCheckboxSize):
208 (WebCore::RenderThemeGtk::paintCheckbox):
209 (WebCore::RenderThemeGtk::setRadioSize):
210 (WebCore::RenderThemeGtk::paintRadio):
212 2011-01-10 François Sausset <sausset@gmail.com>
214 Reviewed by Kenneth Rohde Christiansen.
216 MathML: vertical alignment & bar thickness adjustments of fractions.
217 https://bugs.webkit.org/show_bug.cgi?id=50018
219 The fraction bar thickness default value should follow the w3c MathML 3 recommendation:
220 http://www.w3.org/TR/MathML3/chapter3.html#presm.mfrac
221 The vertical alignment of the fraction bar should be more accurate, specially with operators (+,=,...).
223 Test: mathml/presentation/fractions.xhtml
225 * rendering/mathml/RenderMathMLFraction.cpp:
226 (WebCore::RenderMathMLFraction::RenderMathMLFraction):
227 (WebCore::RenderMathMLFraction::updateFromElement):
228 (WebCore::RenderMathMLFraction::layout):
229 (WebCore::RenderMathMLFraction::paint):
230 (WebCore::RenderMathMLFraction::baselinePosition):
231 * rendering/mathml/RenderMathMLFraction.h:
233 2011-01-10 Antti Koivisto <antti@apple.com>
235 Reviewed by Alexey Proskuryakov.
237 https://bugs.webkit.org/show_bug.cgi?id=52044
238 REGRESSION(r74807): No-store is ignored within a document
240 Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
241 This matches a behavior that got lost in r74807.
243 Test: http/tests/misc/script-no-store.html
244 (by Alexey Proskuryakov)
246 * loader/cache/CachedResourceLoader.cpp:
247 (WebCore::CachedResourceLoader::determineRevalidationPolicy):
249 2011-01-10 Patrick Gansterer <paroga@webkit.org>
251 Reviewed by Laszlo Gombos.
253 [WIN] Add ProxyServerWin.cpp
254 https://bugs.webkit.org/show_bug.cgi?id=52031
256 Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
259 * CMakeListsWinCE.txt:
260 * platform/network/win/ProxyServerWin.cpp: Added.
261 (WebCore::proxyServersForURL):
263 2011-01-10 Alejandro G. Castro <alex@igalia.com>
265 Reviewed by Martin Robinson.
267 [cairo] Rendering a lot of arcs on top of each other causes time
269 https://bugs.webkit.org/show_bug.cgi?id=50869
271 We avoid the situation where we have to render the same arc
272 multiple times over itself. Now it renders just one oval and
273 moves to the end angle.
275 * platform/graphics/cairo/PathCairo.cpp:
276 (WebCore::Path::addArc):
278 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
280 Reviewed by Martin Robinson.
282 [GTK] Port text input control painting to GtkStyleContext
283 https://bugs.webkit.org/show_bug.cgi?id=51870
285 Use GtkStyleContext API to paint text input controls when building
288 No new tests. This should not change functionality.
290 * platform/gtk/RenderThemeGtk3.cpp:
291 (WebCore::RenderThemeGtk::adjustRepaintRect):
292 (WebCore::RenderThemeGtk::paintTextField):
294 2011-01-09 Tony Gentilcore <tonyg@chromium.org>
296 Reviewed by Alexey Proskuryakov.
298 Forward declare some headers where possible
299 https://bugs.webkit.org/show_bug.cgi?id=52133
301 No new tests because no new functionality.
304 * dom/BeforeLoadEvent.h:
307 * dom/StyledElement.cpp:
308 * dom/StyledElement.h:
309 * loader/DocumentLoader.h:
310 * loader/FrameLoader.h:
312 * platform/graphics/GraphicsContext.cpp:
313 * platform/graphics/GraphicsContext.h:
314 * platform/graphics/filters/FEBlend.cpp:
315 * platform/graphics/filters/FEColorMatrix.cpp:
316 * platform/graphics/filters/FEComponentTransfer.cpp:
317 * platform/graphics/filters/FEComposite.cpp:
318 * platform/graphics/filters/FEConvolveMatrix.cpp:
319 * platform/graphics/filters/FEDiffuseLighting.cpp:
320 * platform/graphics/filters/FEDisplacementMap.cpp:
321 * platform/graphics/filters/FEFlood.cpp:
322 * platform/graphics/filters/FEGaussianBlur.cpp:
323 * platform/graphics/filters/FEMerge.cpp:
324 * platform/graphics/filters/FEMorphology.cpp:
325 * platform/graphics/filters/FEOffset.cpp:
326 * platform/graphics/filters/FESpecularLighting.cpp:
327 * platform/graphics/filters/FETile.cpp:
328 * platform/graphics/filters/FETurbulence.cpp:
329 * platform/graphics/filters/FilterEffect.cpp:
330 * platform/graphics/filters/FilterEffect.h:
331 * platform/graphics/filters/SourceAlpha.cpp:
332 * platform/graphics/filters/SourceGraphic.cpp:
333 * svg/SVGElement.cpp:
335 * svg/SVGFEBlendElement.cpp:
336 * svg/SVGFEColorMatrixElement.cpp:
337 * svg/SVGFEComponentTransferElement.cpp:
338 * svg/SVGFECompositeElement.cpp:
339 * svg/SVGFEConvolveMatrixElement.cpp:
340 * svg/SVGFEConvolveMatrixElement.h:
341 * svg/SVGFEDiffuseLightingElement.cpp:
342 * svg/SVGFEDisplacementMapElement.cpp:
343 * svg/SVGFEGaussianBlurElement.cpp:
344 * svg/SVGFEImageElement.h:
345 * svg/SVGFEMergeElement.cpp:
346 * svg/SVGFEMorphologyElement.cpp:
347 * svg/SVGFEOffsetElement.cpp:
348 * svg/SVGFESpecularLightingElement.cpp:
349 * svg/SVGFETileElement.cpp:
350 * svg/SVGFETurbulenceElement.h:
351 * svg/SVGFilterPrimitiveStandardAttributes.cpp:
352 * svg/SVGFilterPrimitiveStandardAttributes.h:
353 * svg/SVGTextContentElement.cpp:
354 * svg/graphics/filters/SVGFEImage.cpp:
355 * svg/graphics/filters/SVGFEImage.h:
357 2011-01-10 Adam Roben <aroben@apple.com>
359 Windows build fix after r75313
361 * WebCore.vcproj/build-generated-files.sh: Updated for the change in
364 2011-01-10 Pavel Podivilov <podivilov@chromium.org>
366 Reviewed by Pavel Feldman.
368 Web Inspector: make properties on Array's prototype non-enumerable.
369 https://bugs.webkit.org/show_bug.cgi?id=51776
371 * inspector/front-end/utilities.js:
374 2011-01-10 Yael Aharon <yael.aharon@nokia.com>
376 Reviewed by Simon Fraser.
378 Specificity of negated selectors apparently miscalculated
379 https://bugs.webkit.org/show_bug.cgi?id=41206
381 Give negated selectors the specificity of the selector they are negating.
382 This is the same as the behavior of other browsers.
384 Test: fast/css/pseudo-not.html
386 * css/CSSSelector.cpp:
387 (WebCore::CSSSelector::specificityForOneSelector):
389 2011-01-10 Adam Roben <aroben@apple.com>
391 Windows build fix after r75353
393 * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
396 2011-01-10 John Knottenbelt <jknotten@chromium.org>
398 Reviewed by Jeremy Orlow.
400 [Chromium] Remove non-client-based Geolocation code
401 https://bugs.webkit.org/show_bug.cgi?id=50921
403 Code clean up, covered by existing tests.
405 * WebCore.gyp/WebCore.gyp:
407 * platform/chromium/ChromiumBridge.h:
408 * platform/chromium/GeolocationServiceChromium.cpp: Removed.
409 * platform/chromium/GeolocationServiceChromium.h: Removed.
411 2011-01-10 Ilya Tikhonovsky <loislo@chromium.org>
413 Reviewed by Pavel Feldman.
415 Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
416 stepIntoStatement => stepInto
417 stepOutOfFunction => stepOut
418 stepOverStatement => stepOver
420 https://bugs.webkit.org/show_bug.cgi?id=52142
422 * inspector/Inspector.idl:
423 * inspector/InspectorDebuggerAgent.cpp:
424 (WebCore::InspectorDebuggerAgent::stepOver):
425 (WebCore::InspectorDebuggerAgent::stepInto):
426 (WebCore::InspectorDebuggerAgent::stepOut):
427 * inspector/InspectorDebuggerAgent.h:
428 * inspector/front-end/ScriptsPanel.js:
429 (WebInspector.ScriptsPanel.prototype._stepOverClicked):
430 (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
431 (WebInspector.ScriptsPanel.prototype._stepOutClicked):
433 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
435 Reviewed by Martin Robinson.
437 [GTK] Port progressbar painting to GtkStyleContext
438 https://bugs.webkit.org/show_bug.cgi?id=52054
440 Use GtkStyleContext API to paint progressbars when building with
441 GTK+ 3.x. Also add support for indeterminate progressbars.
443 No new tests. This should not change functionality.
445 * platform/gtk/RenderThemeGtk.cpp:
446 * platform/gtk/RenderThemeGtk2.cpp:
447 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
448 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
449 * platform/gtk/RenderThemeGtk3.cpp:
450 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
451 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
452 (WebCore::RenderThemeGtk::paintProgressBar):
454 2011-01-10 Andreas Kling <kling@webkit.org>
456 Reviewed by Darin Adler.
458 Remove unused class "Pen" in WebCore/platform/graphics
459 https://bugs.webkit.org/show_bug.cgi?id=49955
466 * WebCore.vcproj/WebCore.vcproj:
467 * WebCore.xcodeproj/project.pbxproj:
468 * platform/graphics/Pen.cpp: Removed.
469 * platform/graphics/Pen.h: Removed.
470 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
471 * platform/graphics/wx/GraphicsContextWx.cpp:
472 * platform/graphics/wx/PenWx.cpp: Removed.
474 2011-01-10 Xan Lopez <xlopez@igalia.com>
476 Reviewed by Martin Robinson.
478 [GTK] Create intermediate libWebCore library
479 https://bugs.webkit.org/show_bug.cgi?id=52116
481 Create intermediate libWebCore.la to avoid overflowing the linker
482 in the final link stage.
484 * GNUmakefile.am: define the new library.
486 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
488 Unreviewed, rolling out r75337.
489 http://trac.webkit.org/changeset/75337
490 https://bugs.webkit.org/show_bug.cgi?id=52137
492 It made fast/dom/navigator-detached-no-crash.html crash
493 (Requested by Ossy on #webkit).
495 * platform/qt/CookieJarQt.cpp:
496 (WebCore::cookiesEnabled):
498 2011-01-09 Mark Rowe <mrowe@apple.com>
502 * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
505 2011-01-09 Dan Bernstein <mitz@apple.com>
507 Reviewed by Sam Weinig.
509 <rdar://problem/8765555> WebKit2: Search field focus ring is missing
511 Provide a focus ring visible rect to AppKit.
513 * platform/mac/ThemeMac.mm:
514 (-[WebCoreFlippedView _focusRingVisibleRect]):
515 (-[WebCoreFlippedView _focusRingClipAncestor]):
517 2011-01-09 Dirk Schulze <krit@webkit.org>
519 Reviewed by Rob Buis.
521 Move MathML renderer to rendering/mathml
522 https://bugs.webkit.org/show_bug.cgi?id=52131
524 Move all renderer of MathML to WebCore/rendering/mathml
526 No change of functionality, no new tests added.
532 * WebCore.vcproj/WebCore.vcproj:
533 * WebCore.xcodeproj/project.pbxproj:
534 * mathml/RenderMathMLBlock.cpp: Removed.
535 * mathml/RenderMathMLBlock.h: Removed.
536 * mathml/RenderMathMLFenced.cpp: Removed.
537 * mathml/RenderMathMLFenced.h: Removed.
538 * mathml/RenderMathMLFraction.cpp: Removed.
539 * mathml/RenderMathMLFraction.h: Removed.
540 * mathml/RenderMathMLMath.cpp: Removed.
541 * mathml/RenderMathMLMath.h: Removed.
542 * mathml/RenderMathMLOperator.cpp: Removed.
543 * mathml/RenderMathMLOperator.h: Removed.
544 * mathml/RenderMathMLRoot.cpp: Removed.
545 * mathml/RenderMathMLRoot.h: Removed.
546 * mathml/RenderMathMLRow.cpp: Removed.
547 * mathml/RenderMathMLRow.h: Removed.
548 * mathml/RenderMathMLSquareRoot.cpp: Removed.
549 * mathml/RenderMathMLSquareRoot.h: Removed.
550 * mathml/RenderMathMLSubSup.cpp: Removed.
551 * mathml/RenderMathMLSubSup.h: Removed.
552 * mathml/RenderMathMLUnderOver.cpp: Removed.
553 * mathml/RenderMathMLUnderOver.h: Removed.
554 * rendering/mathml: Added.
555 * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
556 * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
557 * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
558 * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
559 * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
560 * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
561 * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
562 * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
563 * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
564 * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
565 * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
566 * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
567 * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
568 * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
569 * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
570 * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
571 * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
572 * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
573 * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
574 * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
576 2011-01-08 Simon Fraser <simon.fraser@apple.com>
578 Reviewed by Alexey Proskuryakov.
580 HTMLStyleElement.disabled doesn't work (affects jQuery)
581 https://bugs.webkit.org/show_bug.cgi?id=25287
583 Fix the disabled property of a HTMLStyleElement to reflect,
584 and set the disabled state of its style sheet, as required
587 Based on initial patch by Tarun Nainani.
589 Test: fast/html/disable-style-element.html
591 * dom/StyleElement.h:
592 (WebCore::StyleElement::sheet): Make const.
594 * html/HTMLStyleElement.h:
595 * html/HTMLStyleElement.idl:
596 * html/HTMLStyleElement.cpp:
597 (WebCore::HTMLStyleElement::disabled):
598 (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
599 call through to the sheet (if any).
601 2011-01-09 Dirk Schulze <krit@webkit.org>
603 Reviewed by Nikolas Zimmermann.
605 Rename RenderForeignObject to RenderSVGForeignObject
606 https://bugs.webkit.org/show_bug.cgi?id=52129
608 Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
610 No change of functionality, no new tests.
617 * WebCore.xcodeproj/project.pbxproj:
618 * rendering/RenderingAllInOne.cpp:
619 * rendering/svg/RenderForeignObject.cpp: Removed.
620 * rendering/svg/RenderForeignObject.h: Removed.
621 * rendering/svg/RenderSVGAllInOne.cpp:
622 * rendering/svg/RenderSVGBlock.cpp:
623 (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
624 * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
625 (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
626 (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
627 (WebCore::RenderSVGForeignObject::paint):
628 (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
629 (WebCore::RenderSVGForeignObject::computeRectForRepaint):
630 (WebCore::RenderSVGForeignObject::localToParentTransform):
631 (WebCore::RenderSVGForeignObject::computeLogicalWidth):
632 (WebCore::RenderSVGForeignObject::computeLogicalHeight):
633 (WebCore::RenderSVGForeignObject::layout):
634 (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
635 (WebCore::RenderSVGForeignObject::nodeAtPoint):
636 (WebCore::RenderSVGForeignObject::mapLocalToContainer):
637 * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
638 (WebCore::RenderSVGForeignObject::renderName):
639 * svg/SVGForeignObjectElement.cpp:
640 (WebCore::SVGForeignObjectElement::createRenderer):
642 2011-01-09 Dirk Schulze <krit@webkit.org>
644 Reviewed by Nikolas Zimmermann.
646 Move all SVG renderer to WebCore/rendering/svg
647 https://bugs.webkit.org/show_bug.cgi?id=52087
649 No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
656 * WebCore.vjproj/project.vjproj:
657 * WebCore.xcodeproj/project.pbxproj:
658 * rendering/RenderForeignObject.cpp: Removed.
659 * rendering/RenderForeignObject.h: Removed.
660 * rendering/RenderSVGAllInOne.cpp: Removed.
661 * rendering/RenderSVGBlock.cpp: Removed.
662 * rendering/RenderSVGBlock.h: Removed.
663 * rendering/RenderSVGContainer.cpp: Removed.
664 * rendering/RenderSVGContainer.h: Removed.
665 * rendering/RenderSVGGradientStop.cpp: Removed.
666 * rendering/RenderSVGGradientStop.h: Removed.
667 * rendering/RenderSVGHiddenContainer.cpp: Removed.
668 * rendering/RenderSVGHiddenContainer.h: Removed.
669 * rendering/RenderSVGImage.cpp: Removed.
670 * rendering/RenderSVGImage.h: Removed.
671 * rendering/RenderSVGModelObject.cpp: Removed.
672 * rendering/RenderSVGModelObject.h: Removed.
673 * rendering/RenderSVGResource.cpp: Removed.
674 * rendering/RenderSVGResource.h: Removed.
675 * rendering/RenderSVGResourceClipper.cpp: Removed.
676 * rendering/RenderSVGResourceClipper.h: Removed.
677 * rendering/RenderSVGResourceContainer.cpp: Removed.
678 * rendering/RenderSVGResourceContainer.h: Removed.
679 * rendering/RenderSVGResourceFilter.cpp: Removed.
680 * rendering/RenderSVGResourceFilter.h: Removed.
681 * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
682 * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
683 * rendering/RenderSVGResourceGradient.cpp: Removed.
684 * rendering/RenderSVGResourceGradient.h: Removed.
685 * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
686 * rendering/RenderSVGResourceLinearGradient.h: Removed.
687 * rendering/RenderSVGResourceMarker.cpp: Removed.
688 * rendering/RenderSVGResourceMarker.h: Removed.
689 * rendering/RenderSVGResourceMasker.cpp: Removed.
690 * rendering/RenderSVGResourceMasker.h: Removed.
691 * rendering/RenderSVGResourcePattern.cpp: Removed.
692 * rendering/RenderSVGResourcePattern.h: Removed.
693 * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
694 * rendering/RenderSVGResourceRadialGradient.h: Removed.
695 * rendering/RenderSVGResourceSolidColor.cpp: Removed.
696 * rendering/RenderSVGResourceSolidColor.h: Removed.
697 * rendering/RenderSVGRoot.cpp: Removed.
698 * rendering/RenderSVGRoot.h: Removed.
699 * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
700 * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
701 * rendering/RenderSVGTransformableContainer.cpp: Removed.
702 * rendering/RenderSVGTransformableContainer.h: Removed.
703 * rendering/RenderSVGViewportContainer.cpp: Removed.
704 * rendering/RenderSVGViewportContainer.h: Removed.
705 * rendering/SVGImageBufferTools.cpp: Removed.
706 * rendering/SVGImageBufferTools.h: Removed.
707 * rendering/SVGMarkerData.h: Removed.
708 * rendering/SVGMarkerLayoutInfo.cpp: Removed.
709 * rendering/SVGMarkerLayoutInfo.h: Removed.
710 * rendering/SVGRenderSupport.cpp: Removed.
711 * rendering/SVGRenderSupport.h: Removed.
712 * rendering/SVGRenderTreeAsText.cpp: Removed.
713 * rendering/SVGRenderTreeAsText.h: Removed.
714 * rendering/SVGResources.cpp: Removed.
715 * rendering/SVGResources.h: Removed.
716 * rendering/SVGResourcesCache.cpp: Removed.
717 * rendering/SVGResourcesCache.h: Removed.
718 * rendering/SVGResourcesCycleSolver.cpp: Removed.
719 * rendering/SVGResourcesCycleSolver.h: Removed.
720 * rendering/SVGShadowTreeElements.cpp: Removed.
721 * rendering/SVGShadowTreeElements.h: Removed.
722 * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
723 * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
724 * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
725 * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
726 * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
727 * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
728 * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
729 * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
730 * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
731 * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
732 * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
733 * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
734 * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
735 * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
736 * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
737 * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
738 * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
739 * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
740 * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
741 * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
742 * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
743 * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
744 * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
745 * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
746 * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
747 * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
748 * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
749 * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
750 * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
751 * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
752 * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
753 * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
754 * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
755 * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
756 * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
757 * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
758 * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
759 * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
760 * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
761 * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
762 * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
763 * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
764 * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
765 * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
766 * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
767 * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
768 * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
769 * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
770 * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
771 * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
772 * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
773 * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
774 * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
775 * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
776 * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
777 * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
778 * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
779 * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
780 * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
781 * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
782 * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
783 * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
784 * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
785 * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
787 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
789 Reviewed by Darin Fisher.
791 https://bugs.webkit.org/show_bug.cgi?id=41441
792 createWindow method should only do window-creating without URL navigation.
793 Let client APIs know which URL a new window will start with
795 * loader/FrameLoader.cpp:
796 (WebCore::createWindow):
797 * page/ContextMenuController.cpp:
798 (WebCore::openNewWindow):
799 * page/DOMWindow.cpp:
800 (WebCore::DOMWindow::createWindow):
802 2011-01-09 Dirk Schulze <krit@webkit.org>
804 Unreviewed sort of Xcode project file.
806 * WebCore.xcodeproj/project.pbxproj:
808 2011-01-09 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
810 Reviewed by Martin Robinson.
812 Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
813 https://bugs.webkit.org/show_bug.cgi?id=48511
815 * platform/FileSystem.h:
816 * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
817 (WebCore::applicationDirectoryPath):
819 2011-01-08 Martin Robinson <mrobinson@igalia.com>
821 GTK+ Build fix. Add missing headers to the source list, fixing make dist.
823 No new tests. This is only a build change.
825 * GNUmakefile.am: Add missing headers to the source list.
827 2011-01-08 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
829 Reviewed by Martin Robinson.
831 [GTK] WebKit2 GNUmakefile is out of date from trunk
832 https://bugs.webkit.org/show_bug.cgi?id=51883
834 Added stubs for WebKit2 compilation.
836 * platform/gtk/ContextMenuGtk.cpp:
837 (WebCore::contextMenuItemVector):
838 * platform/gtk/ContextMenuItemGtk.cpp:
839 (WebCore::ContextMenuItem::ContextMenuItem):
840 (WebCore::ContextMenuItem::checked):
841 (WebCore::ContextMenuItem::enabled):
842 * platform/network/soup/AuthenticationChallenge.h:
843 (WebCore::AuthenticationChallenge::authenticationClient):
845 2011-01-08 Helder Correia <helder@sencha.com>
847 Reviewed by Simon Fraser.
849 Shadow is not drawn when filling a path with a gradient
850 https://bugs.webkit.org/show_bug.cgi?id=51982
852 This happens in CG and is related to bug 51869, this time to be fixed
853 in GraphicsContext::fillPath(const Path& path). We need to draw the
854 gradient clipped to the path on a CGLayer first, and then draw the
855 layer on the GraphicsContext.
857 Test: fast/canvas/canvas-fillPath-gradient-shadow.html
859 * platform/graphics/cg/GraphicsContextCG.cpp:
860 (WebCore::GraphicsContext::fillPath):
862 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
864 Reviewed by Kenneth Rohde Christiansen.
866 [Qt] PasteboardQt.cpp has coding-style errors
867 https://bugs.webkit.org/show_bug.cgi?id=39771
869 Update the code to follow the coding style.
871 * platform/qt/PasteboardQt.cpp:
872 (WebCore::Pasteboard::writeSelection):
873 (WebCore::Pasteboard::plainText):
874 (WebCore::Pasteboard::writePlainText):
875 (WebCore::Pasteboard::writeURL):
877 2011-01-08 Tony Gentilcore <tonyg@chromium.org>
879 Reviewed by Eric Seidel.
881 HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
882 https://bugs.webkit.org/show_bug.cgi?id=48593
884 XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
887 Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
889 * dom/StyleElement.cpp:
890 (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
891 (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
893 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
895 Reviewed by Kenneth Rohde Christiansen.
897 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
898 https://bugs.webkit.org/show_bug.cgi?id=52081
900 Test for the availability of cookie jar to return if cookies are enabled or not. The network access
901 manager always exist, not the cookie jar.
903 * platform/qt/CookieJarQt.cpp:
904 (WebCore::cookiesEnabled):
906 2011-01-08 Charlie Reis <creis@chromium.org>
908 Reviewed by Mihai Parparita.
910 Canceled frame loads can corrupt back forward list
911 https://bugs.webkit.org/show_bug.cgi?id=50254
913 Avoids changing m_currentItem until the navigation commits.
914 Also resets top-level history items if a subframe navigation is canceled.
916 * WebCore/loader/FrameLoader.cpp:
917 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
918 * WebCore/loader/HistoryController.cpp:
919 * WebCore/loader/HistoryController.h:
921 2011-01-08 Chang Shu <chang.shu@nokia.com>
923 Reviewed by Kenneth Rohde Christiansen.
925 Support createTouchList with Touch list for test automation.
926 Implemented JS/V8 custom functions for createTouchList.
927 https://bugs.webkit.org/show_bug.cgi?id=51196
929 * bindings/js/JSDocumentCustom.cpp:
930 (WebCore::JSDocument::createTouchList):
931 * bindings/v8/custom/V8DocumentCustom.cpp:
932 (WebCore::V8Document::createTouchListCallback):
934 * dom/TouchEvent.cpp:
935 (WebCore::TouchEvent::initTouchEvent):
937 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
939 Reviewed by Kenneth Rohde Christiansen.
941 [Qt] CookieJarQt.cpp has coding-style errors
942 https://bugs.webkit.org/show_bug.cgi?id=39778
944 Improve the coding style of CookieJarQt.cpp.
946 * platform/qt/CookieJarQt.cpp:
947 (WebCore::networkAccessManager):
948 (WebCore::cookiesEnabled):
950 2011-01-08 Jeff Miller <jeffm@apple.com>
952 Rubber-stamped by Dan Bernstein.
954 Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
955 https://bugs.webkit.org/show_bug.cgi?id=52114
957 * WebCore.vcproj/QTMovieWin.vcproj:
958 Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
960 2011-01-08 Dirk Schulze <krit@webkit.org>
962 Reviewed by Mihai Parparita.
964 SVG rendering clean up according to the webkit style rules 2
965 https://bugs.webkit.org/show_bug.cgi?id=52112
967 Modified the style of the license of all files in WebCore/rendering/svg to match the style
968 in WebCore/svg. Cleaned up the code according to the webkit style rules.
970 No change of functionality. No test added.
972 * rendering/svg/RenderSVGInline.cpp:
973 * rendering/svg/RenderSVGInline.h:
974 * rendering/svg/RenderSVGInlineText.cpp:
975 * rendering/svg/RenderSVGInlineText.h:
976 * rendering/svg/RenderSVGPath.cpp:
977 * rendering/svg/RenderSVGPath.h:
978 * rendering/svg/RenderSVGTSpan.cpp:
979 * rendering/svg/RenderSVGTSpan.h:
980 * rendering/svg/RenderSVGText.cpp:
981 * rendering/svg/RenderSVGText.h:
982 * rendering/svg/RenderSVGTextPath.cpp:
983 * rendering/svg/RenderSVGTextPath.h:
984 * rendering/svg/SVGInlineFlowBox.cpp:
985 * rendering/svg/SVGInlineFlowBox.h:
986 * rendering/svg/SVGInlineTextBox.cpp:
987 * rendering/svg/SVGInlineTextBox.h:
988 * rendering/svg/SVGRootInlineBox.cpp:
989 * rendering/svg/SVGRootInlineBox.h:
990 * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
991 (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
992 * rendering/svg/SVGTextQuery.cpp:
993 * rendering/svg/SVGTextQuery.h:
995 2011-01-08 Dirk Schulze <krit@webkit.org>
997 Reviewed by Mihai Parparita.
999 SVG rendering clean up according to the webkit style rules
1000 https://bugs.webkit.org/show_bug.cgi?id=52107
1002 Cleanup of the SVG rendering code according to the webbkit style rules.
1003 Changed style of licensing texts to match the style in WebCore/svg, no change
1004 of the licensing text itself.
1006 * rendering/RenderForeignObject.cpp:
1007 * rendering/RenderForeignObject.h:
1008 * rendering/RenderSVGBlock.cpp:
1009 * rendering/RenderSVGBlock.h:
1010 * rendering/RenderSVGContainer.cpp:
1011 * rendering/RenderSVGContainer.h:
1012 * rendering/RenderSVGGradientStop.cpp:
1013 * rendering/RenderSVGGradientStop.h:
1014 * rendering/RenderSVGHiddenContainer.cpp:
1015 * rendering/RenderSVGHiddenContainer.h:
1016 (WebCore::RenderSVGHiddenContainer::renderName):
1017 (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
1018 (WebCore::RenderSVGHiddenContainer::requiresLayer):
1019 (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
1020 * rendering/RenderSVGImage.cpp:
1021 * rendering/RenderSVGImage.h:
1022 * rendering/RenderSVGModelObject.h:
1023 * rendering/RenderSVGResource.cpp:
1024 * rendering/RenderSVGResource.h:
1025 * rendering/RenderSVGResourceClipper.cpp:
1026 * rendering/RenderSVGResourceClipper.h:
1027 * rendering/RenderSVGResourceContainer.cpp:
1028 * rendering/RenderSVGResourceContainer.h:
1029 * rendering/RenderSVGResourceFilter.cpp:
1030 * rendering/RenderSVGResourceFilter.h:
1031 * rendering/RenderSVGResourceFilterPrimitive.cpp:
1032 * rendering/RenderSVGResourceFilterPrimitive.h:
1033 * rendering/RenderSVGResourceGradient.cpp:
1034 * rendering/RenderSVGResourceGradient.h:
1035 * rendering/RenderSVGResourceLinearGradient.cpp:
1036 * rendering/RenderSVGResourceLinearGradient.h:
1037 * rendering/RenderSVGResourceMarker.cpp:
1038 * rendering/RenderSVGResourceMarker.h:
1039 * rendering/RenderSVGResourceMasker.cpp:
1040 * rendering/RenderSVGResourceMasker.h:
1041 * rendering/RenderSVGResourcePattern.cpp:
1042 * rendering/RenderSVGResourcePattern.h:
1043 * rendering/RenderSVGResourceRadialGradient.cpp:
1044 * rendering/RenderSVGResourceRadialGradient.h:
1045 * rendering/RenderSVGResourceSolidColor.cpp:
1046 * rendering/RenderSVGResourceSolidColor.h:
1047 * rendering/RenderSVGRoot.cpp:
1048 (WebCore::RenderSVGRoot::nodeAtPoint):
1049 * rendering/RenderSVGRoot.h:
1050 * rendering/RenderSVGShadowTreeRootContainer.cpp:
1051 * rendering/RenderSVGShadowTreeRootContainer.h:
1052 * rendering/RenderSVGTransformableContainer.cpp:
1053 (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
1054 * rendering/RenderSVGTransformableContainer.h:
1055 (WebCore::RenderSVGTransformableContainer::localToParentTransform):
1056 (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
1057 (WebCore::RenderSVGTransformableContainer::localTransform):
1058 * rendering/RenderSVGViewportContainer.cpp:
1059 * rendering/RenderSVGViewportContainer.h:
1060 * rendering/SVGImageBufferTools.cpp:
1061 * rendering/SVGImageBufferTools.h:
1062 * rendering/SVGMarkerData.h:
1063 * rendering/SVGMarkerLayoutInfo.cpp:
1064 * rendering/SVGMarkerLayoutInfo.h:
1065 * rendering/SVGRenderSupport.cpp:
1066 * rendering/SVGRenderSupport.h:
1067 * rendering/SVGRenderTreeAsText.cpp:
1068 (WebCore::operator<<):
1069 * rendering/SVGRenderTreeAsText.h:
1070 * rendering/SVGResources.cpp:
1071 * rendering/SVGResources.h:
1072 * rendering/SVGResourcesCache.cpp:
1073 * rendering/SVGResourcesCache.h:
1074 * rendering/SVGResourcesCycleSolver.cpp:
1075 * rendering/SVGResourcesCycleSolver.h:
1076 * rendering/SVGShadowTreeElements.cpp:
1077 * rendering/SVGShadowTreeElements.h:
1079 2011-01-07 Adam Barth <abarth@webkit.org>
1081 Rubber-stamped by Eric Seidel.
1083 Move WebCore to Source
1084 https://bugs.webkit.org/show_bug.cgi?id=52050
1086 Update project files to understand WebCore's new location. I suspect
1087 there will be some follow-up patches after we land this patch.
1089 * Android.derived.jscbindings.mk:
1090 * Android.jscbindings.mk:
1091 * Android.v8bindings.mk:
1093 * WebCore.gyp/WebCore.gyp:
1096 * WebCore.vcproj/WebCore.vcproj:
1097 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
1098 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
1100 2011-01-07 Justin Garcia <justin.garcia@apple.com>
1102 Reviewed by Dan Bernstein.
1104 https://bugs.webkit.org/show_bug.cgi?id=51851
1105 Implement RenderSVGInlineText::localCaretRect()
1107 * rendering/svg/RenderSVGInlineText.cpp:
1108 (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
1110 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
1112 Unreviewed; Added the missing null pointer check for r75293.
1115 (WebCore::Document::adoptNode):
1117 2011-01-07 Stephanie Lewis <slewis@apple.com>
1119 Reviewed by Geoff Garen.
1121 <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
1122 https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
1124 Add a sampler for printing off process memory statistics.
1129 2011-01-06 Ryosuke Niwa <rniwa@webkit.org>
1131 Reviewed by Adam Barth.
1133 onbeforeunload is broken for framesets
1134 https://bugs.webkit.org/show_bug.cgi?id=19418
1136 Added beforeunload event support for sub frames. WebKit's implementation tries to match
1137 that of Internet Explorer as much as possible. beforeunload event is fired for each and
1138 every descendent of a frame that is about to navigate.
1140 When a value other than null is returned by a beforeunload handler, a confirmation dialog
1141 is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
1144 In addition, navigation is forbidden while beforeunload handlers are being called.
1145 Setting values to location.href, location.reload, and other means of navigations are thus
1146 ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
1148 Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
1149 NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
1151 Tests: fast/events/before-unload-adopt-subframe-to-outside.html
1152 fast/events/before-unload-adopt-within-subframes.html
1153 fast/events/before-unload-forbidden-navigation.html
1154 fast/events/before-unload-in-multiple-subframes.html
1155 fast/events/before-unload-in-subframe.html
1156 fast/events/before-unload-javascript-navigation.html
1157 fast/events/before-unload-remove-and-add-subframe.html
1158 fact/events/before-unload-remove-itself.html
1159 fast/events/before-unload-with-subframes.html
1161 * loader/FrameLoader.cpp:
1162 (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
1163 descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
1164 (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
1165 chrome's runBeforeUnloadConfirmPanel as needed.
1166 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
1167 * loader/FrameLoader.h:
1168 * loader/NavigationScheduler.cpp:
1169 (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
1170 NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
1171 (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
1172 (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
1173 (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
1174 (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
1175 * loader/NavigationScheduler.h:
1176 (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
1177 (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
1178 when called on the last instance of NavigationDisablerForBeforeUnload.
1179 (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
1180 of NavigationDisablerForBeforeUnload left on the stack.
1182 2011-01-07 Martin Robinson <mrobinson@igalia.com>
1186 * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
1187 * rendering/RenderFullScreen.cpp:
1188 (RenderFullScreen::setAnimating): Guard the call to contentChanged
1189 with ENABLED(ACCELERATED_COMPOSITING).
1191 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
1193 Unreviewed; speculative fix for Windows debug build.
1195 * bindings/js/JSBindingsAllInOne.cpp:
1197 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
1199 Reviewed by Ojan Vafai.
1201 Adopting an iframe to a child frame results in stack overflow
1202 https://bugs.webkit.org/show_bug.cgi?id=52018
1204 Throws an exception when a document adopts an iframe that is an ancestor
1205 of the document in the frame hierarchy. New behavior matches that of Firefox.
1207 Test: fast/html/adopt-parent-frame.html
1210 (WebCore::Document::adoptNode):
1212 2011-01-07 Mihai Parparita <mihaip@chromium.org>
1214 Reviewed by Darin Fisher.
1216 [Chromium] Scrollbar code cleanup
1217 https://bugs.webkit.org/show_bug.cgi?id=52073
1219 Scrollbar code cleanup:
1220 - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
1221 ScrollbarThemeChromiumMac.{mm|h}
1222 - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
1223 WebThemeEngine is permanent
1224 - Fix typo in Linux scrollbar enum name
1226 No new tests (compiles).
1229 * platform/chromium/ChromiumBridge.h:
1230 * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
1231 (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
1232 * platform/chromium/ScrollbarThemeChromiumMac.mm:
1233 (WebCore::scrollbarStateToThemeState):
1234 (WebCore::ScrollbarThemeChromiumMac::paint):
1236 2011-01-07 Jer Noble <jer.noble@apple.com>
1238 GTK Linux build fix: isDocumentRunningFullScreenAnimation should
1239 be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
1241 * page/FrameView.cpp:
1243 2011-01-07 Rafael Weinstein <rafaelw@chromium.org>
1245 Reviewed by Eric Seidel.
1247 Cleanup: Fold shadowParentNode into shadowHost
1248 https://bugs.webkit.org/show_bug.cgi?id=51059
1250 Replaces all uses of shadowParentNode.
1252 No new tests because no behavior has changed.
1254 * css/CSSStyleSelector.cpp:
1255 (WebCore::CSSStyleSelector::initForStyleResolve):
1257 (WebCore::Node::shadowHost):
1258 (WebCore::Node::shadowAncestorNode):
1259 (WebCore::eventTargetRespectingSVGTargetRules):
1260 (WebCore::Node::getEventAncestors):
1262 * editing/Editor.cpp:
1263 (WebCore::Editor::findString):
1264 * page/DragController.cpp:
1265 (WebCore::asFileInput):
1266 * page/EventHandler.cpp:
1267 (WebCore::EventHandler::handleMousePressEvent):
1268 (WebCore::instanceAssociatedWithShadowTreeElement):
1269 (WebCore::EventHandler::dispatchMouseEvent):
1270 * rendering/RenderBlock.cpp:
1271 (WebCore::RenderBlock::hasLineIfEmpty):
1272 * rendering/RenderSVGShadowTreeRootContainer.cpp:
1273 (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
1274 * svg/SVGStyledElement.cpp:
1275 (WebCore::SVGStyledElement::title):
1277 2011-01-07 Chris Marrin <cmarrin@apple.com>
1281 I mistakenly included a Windows only file in a
1282 cross platform file.
1284 * platform/graphics/ca/GraphicsLayerCA.cpp:
1286 2011-01-07 Chris Marrin <cmarrin@apple.com>
1290 Get rid of include of <QuartzCore/QuartzCore.h>
1292 * platform/graphics/ca/GraphicsLayerCA.cpp:
1294 2011-01-07 Jer Noble <jer.noble@apple.com>
1296 Further build fixes. Add a ENABLE(FULLSCREEN_API) guard around
1297 the implementation of requiresCompositingfForFullScreen.
1299 * rendering/RenderLayerCompositor.cpp:
1300 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
1302 2011-01-07 Jer Noble <jer.noble@apple.com>
1304 No review, build fix only. Removed parameter who was causing
1305 a warning in Release builds.
1308 (WebCore::Document::webkitDidExitFullScreenForElement):
1310 2011-01-07 Chris Marrin <cmarrin@apple.com>
1314 Use new wkCACFLayerGetContextUserData function
1316 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1318 2011-01-07 James Robinson <jamesr@chromium.org>
1320 Fix compile bustage due to bad merge in 75276.
1322 * page/animation/AnimationController.cpp:
1323 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1325 2010-12-17 Jer Noble <jer@kokode.apple.com>
1327 Reviewed by Simon Fraser.
1329 Implement WebKit Full Screen support.
1330 https://bugs.webkit.org/show_bug.cgi?id=49481
1331 rdar://problem/8247444
1333 Mark for export all those WebCore functions needed by WebFullscreenController.
1337 2010-12-17 Jer Noble <jer@kokode.apple.com>
1339 Reviewed by Simon Fraser.
1341 Implement WebKit Full Screen support.
1342 https://bugs.webkit.org/show_bug.cgi?id=49481
1343 rdar://problem/8247444
1345 screenRect is useful for more than just HTMLMediaElements. Promote it into
1348 * dom/Element.cpp: Moved into Element from HTMLMediaElement.
1349 * dom/Element.h: Ditto.
1351 * html/HTMLMediaElement.cpp: Moved screenRect into Element.
1352 * html/HTMLMediaElement.h: Ditto.
1353 * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
1355 2010-12-17 Jer Noble <jer@kokode.apple.com>
1357 Reviewed by Simon Fraser.
1359 Implement WebKit Full Screen support.
1360 https://bugs.webkit.org/show_bug.cgi?id=49481
1361 rdar://problem/8247444
1363 The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
1364 be rendered outside its original Frame. Because of this, there are a few areas of the
1365 rendering code which need to be special cased: RenderFullScreen layers should not be clipped
1366 to the viewport, as they will almost always be rendering outside the viewport area;
1367 RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
1368 the client will likely want to reparent the platformLayer into their own fullscreen platform
1369 window; the FrameView must update the RenderFullScreen graphics layer tree separately from
1370 the root layer, as the two trees are disconnected.
1372 * page/FrameView.cpp:
1373 (WebCore::FrameView::updateCompositingLayers): Special treatment for fullscreen renderer.
1374 (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
1375 (WebCore::FrameView::paintContents): Ditto.
1376 * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
1377 * rendering/RenderLayer.cpp:
1378 (WebCore::RenderLayer::contentChanged): Add support for above.
1379 * rendering/RenderLayerBacking.cpp:
1380 (WebCore::layerOrAncestorIsFullScreen): New function.
1381 (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
1382 * rendering/RenderLayerCompositor.cpp:
1383 (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
1384 (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
1385 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
1386 * rendering/RenderLayerCompositor.h:
1388 2010-12-17 Jer Noble <jer@kokode.apple.com>
1390 Reviewed by Simon Fraser.
1392 Implemented non-accelerated fullscreen support. The Document will now vend a RenderFullScreen object for clients to
1393 use to relocate the fullscreen element subtree.
1395 https://bugs.webkit.org/show_bug.cgi?id=49481
1396 rdar://problem/8247444
1398 * css/CSSStyleSelector.cpp:
1399 (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
1400 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
1402 (WebCore::Document::Document): Initialize m_fullScreenRenderer.
1403 (WebCore::Document::detach): Call setFullScreenRenderer(0).
1404 (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
1405 (WebCore::Document::webkitWillEnterFullScreenForElement): Detach the fullscreen element to cause
1406 a new RenderFullScreen renderer to be created with the new fullscreen element.
1407 (WebCore::Document::webkitDidEnterFullScreenForElement): Notify clients of a fullscreen change
1408 here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
1409 to webkitfullscreenchange events.
1410 (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
1411 (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
1412 (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
1413 (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
1414 size; this keeps clients from having to access the renderer's style directly.
1415 (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
1417 (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
1418 (WebCore::Document::fullScreenRenderer): Accessor.
1421 (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
1422 object to insert between the fullscreen element and its parent.
1423 * page/ChromeClient.h:
1424 (WebCore::ChromeClient::fullScreenRendererChanged): Added.
1425 * rendering/MediaControlElements.cpp:
1426 (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
1428 2010-12-17 Jer Noble <jer@kokode.apple.com>
1430 Reviewed by Simon Fraser.
1432 Implement WebKit Full Screen support.
1433 https://bugs.webkit.org/show_bug.cgi?id=49481
1434 rdar://problem/8247444
1436 This patch introduces a new RenderObject type: RenderFullScreen. The RenderFullScreen renderer
1437 will be used to implement new FullScreen APIs. Because the RenderFullScreen object will be the
1438 parent of the current fullscreen element, the style rules for fullscreen objects must change to
1441 * WebCore.xcodeproj/project.pbxproj:
1442 * rendering/RenderFullScreen.cpp: Added.
1443 (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
1444 (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
1445 for RenderFullScreen objects.
1446 * rendering/RenderFullScreen.h: Added.
1447 (WebCore::RenderFullScreen::isRenderFullScreen): Added. Overrides the RenderObject version.
1448 * rendering/RenderObject.h:
1449 (WebCore::RenderObject::isRenderFullScreen): Added. Used for type-checking RenderFullScreen objects.
1450 * css/fullscreen.css: Modified the contained fullscreen styles.
1453 2011-01-07 James Robinson <jamesr@chromium.org>
1455 Revert "Implement mozilla's animationTime property"
1456 https://bugs.webkit.org/show_bug.cgi?id=51952
1458 This approach isn't quite right.
1466 * WebCore.vcproj/WebCore.vcproj:
1467 * WebCore.xcodeproj/project.pbxproj:
1468 * page/DOMWindow.cpp:
1470 * page/DOMWindow.idl:
1474 (WebCore::Page::Page):
1476 * page/animation/AnimationController.cpp:
1477 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1478 * page/animation/AnimationTimeController.cpp: Removed.
1479 * page/animation/AnimationTimeController.h: Removed.
1481 2011-01-07 Jan Erik Hanssen <jhanssen@sencha.com>
1483 Reviewed by Andreas Kling.
1485 [Qt] Black text on black buttons using a dark theme
1486 https://bugs.webkit.org/show_bug.cgi?id=35024
1488 Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
1490 * platform/qt/RenderThemeQt.cpp:
1491 (WebCore::RenderThemeQt::systemColor):
1492 * platform/qt/RenderThemeQt.h:
1494 2011-01-05 Adrienne Walker <enne@google.com>
1496 Reviewed by Kenneth Russell.
1498 Add WEBKIT_lose_context WebGL extension.
1499 https://bugs.webkit.org/show_bug.cgi?id=51492
1501 Tests: fast/canvas/webgl/context-lost-restored.html
1502 fast/canvas/webgl/context-lost.html
1505 * DerivedSources.make:
1510 * WebCore.xcodeproj/project.pbxproj:
1511 * bindings/js/JSWebGLRenderingContextCustom.cpp:
1513 (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
1514 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1515 (WebCore::toV8Object):
1516 (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
1517 * html/canvas/WebGLExtension.h:
1518 * html/canvas/WebGLRenderingContext.cpp:
1519 (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
1520 (WebCore::WebGLRenderingContext::getExtension):
1521 (WebCore::WebGLRenderingContext::getSupportedExtensions):
1522 (WebCore::WebGLRenderingContext::forceLostContext):
1523 (WebCore::WebGLRenderingContext::onLostContext):
1524 (WebCore::WebGLRenderingContext::getNumberOfExtensions):
1525 (WebCore::WebGLRenderingContext::getExtensionNumber):
1526 * html/canvas/WebGLRenderingContext.h:
1527 * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
1528 (WebCore::WebKitLoseContext::WebKitLoseContext):
1529 (WebCore::WebKitLoseContext::~WebKitLoseContext):
1530 (WebCore::WebKitLoseContext::getName):
1531 (WebCore::WebKitLoseContext::create):
1532 (WebCore::WebKitLoseContext::loseContext):
1533 * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
1534 * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
1536 2011-01-07 Chris Marrin <cmarrin@apple.com>
1540 Build fix for Chromium. Missing include.
1542 * page/animation/AnimationBase.cpp:
1544 2011-01-07 Chris Marrin <cmarrin@apple.com>
1550 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1552 2011-01-06 Gavin Barraclough <barraclough@apple.com>
1554 Reviewed by Geoff Garen.
1556 Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
1558 The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
1559 destructor early, in order to release wrappers once we know we no longer intend to use them.
1560 Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
1561 lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
1562 A sequence of events that triggers the bug would look like this:
1564 (1) Create a DOMWrapperWorld.
1565 (2) Register a timer in the world.
1566 (3) Call unregisterWorld() on the world.
1567 (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
1568 (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
1569 called forgetWorld() none exists.
1570 (6) Attempt to add a wrapper to a NULL map.
1572 Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
1575 * bindings/js/DOMWrapperWorld.cpp:
1576 (WebCore::DOMWrapperWorld::DOMWrapperWorld):
1577 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1578 (WebCore::DOMWrapperWorld::clearWrappers):
1579 * bindings/js/DOMWrapperWorld.h:
1581 2011-01-07 Chris Marrin <cmarrin@apple.com>
1583 Rubber-stamped by Simon Fraser.
1585 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1586 https://bugs.webkit.org/show_bug.cgi?id=49388
1588 Final step in unifying GraphicsLayer logic across Win and Mac. This
1589 implements the Windows side classes for PlatformCALayer and supporting
1590 classes. Also changed MediaPlayer to use new PlatformCALayerClient
1591 so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
1592 WKCACFLayerRenderer now does the task of notifying animations of their
1593 start time. Also commented out an assert in AnimationBase because
1594 AnimationController's frame time is not in sync with the new
1595 AnimationTimeController. I've opened a new bug for that issue:
1597 https://bugs.webkit.org/show_bug.cgi?id=52037
1599 This also includes the Mac side changes backed out in
1600 http://trac.webkit.org/changeset/75227.
1602 * WebCore.vcproj/WebCore.vcproj:
1603 * WebCore.vcproj/WebCoreCommon.vsprops:
1604 * WebCore.vcproj/copyForwardingHeaders.cmd:
1605 * WebCore.xcodeproj/project.pbxproj:
1607 * page/animation/AnimationBase.cpp:
1608 (WebCore::AnimationBase::freezeAtTime):
1609 (WebCore::AnimationBase::getElapsedTime):
1610 * page/animation/AnimationController.cpp:
1611 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1612 * page/animation/KeyframeAnimation.cpp:
1613 (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
1614 * platform/graphics/GraphicsLayer.h:
1615 (WebCore::GraphicsLayer::layerDidDisplay):
1616 (WebCore::GraphicsLayer::showDebugBorders):
1617 (WebCore::GraphicsLayer::showRepaintCounter):
1618 * platform/graphics/ca/GraphicsLayerCA.cpp:
1619 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
1620 (WebCore::GraphicsLayerCA::setContentsToImage):
1621 (WebCore::GraphicsLayerCA::setContentsToMedia):
1622 (WebCore::GraphicsLayerCA::layerDidDisplay):
1623 (WebCore::GraphicsLayerCA::updateSublayerList):
1624 * platform/graphics/ca/GraphicsLayerCA.h:
1625 (WebCore::GraphicsLayerCA::platformCALayer):
1626 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
1627 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
1628 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
1629 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
1630 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
1631 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
1632 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
1633 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
1634 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
1635 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
1636 * platform/graphics/ca/PlatformCAAnimation.h:
1637 * platform/graphics/ca/PlatformCALayer.h:
1638 (WebCore::PlatformCALayer::owner):
1639 (WebCore::PlatformCALayer::animationStarted):
1640 * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
1641 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1642 (PlatformCALayer::setOwner):
1643 (PlatformCALayer::create):
1644 (PlatformCALayer::PlatformCALayer):
1645 (PlatformCALayer::contents):
1646 (PlatformCALayer::setContents):
1647 * platform/graphics/ca/win: Added.
1648 * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
1649 * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
1650 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
1651 * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
1652 (WebCore::PlatformCALayerWinInternal::owner):
1653 * platform/graphics/mac/WebGLLayer.mm:
1654 (-[WebGLLayer display]):
1655 * platform/graphics/mac/WebLayer.h:
1656 * platform/graphics/mac/WebLayer.mm:
1657 (drawLayerContents):
1658 (setLayerNeedsDisplayInRect):
1659 (-[WebLayer setNeedsDisplay]):
1660 (-[WebLayer display]):
1661 * platform/graphics/mac/WebTiledLayer.mm:
1662 (-[WebTiledLayer setNeedsDisplay]):
1663 (-[WebTiledLayer display]):
1664 * platform/graphics/win/GraphicsContextCGWin.cpp:
1665 (WebCore::CGContextWithHDC):
1666 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
1667 (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
1668 (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
1669 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
1670 (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
1671 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1672 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
1673 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
1674 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
1675 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
1676 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
1677 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
1678 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
1679 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
1680 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
1681 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
1682 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
1683 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
1684 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
1685 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
1686 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
1687 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
1688 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1689 * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1690 (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
1691 (WebCore::MediaPlayerPrivate::createLayerForMovie):
1692 * platform/graphics/win/WKCACFLayerRenderer.cpp:
1693 (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
1694 (WebCore::WKCACFLayerRenderer::rootLayer):
1695 (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
1696 (WebCore::WKCACFLayerRenderer::setRootChildLayer):
1697 (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
1698 (WebCore::WKCACFLayerRenderer::destroyRenderer):
1699 (WebCore::WKCACFLayerRenderer::render):
1700 * platform/graphics/win/WKCACFLayerRenderer.h:
1701 (WebCore::WKCACFLayerRendererClient::animationsStarted):
1702 (WebCore::WKCACFLayerRendererClient::syncCompositingState):
1703 * rendering/RenderLayerBacking.cpp:
1704 (WebCore::RenderLayerBacking::showDebugBorders):
1705 (WebCore::RenderLayerBacking::showRepaintCounter):
1706 * rendering/RenderLayerCompositor.cpp:
1707 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
1708 * rendering/RenderLayerCompositor.h:
1709 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
1710 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
1711 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
1712 (WebCore::RenderLayerCompositor::notifySyncRequired):
1713 (WebCore::RenderLayerCompositor::paintContents):
1714 (WebCore::RenderLayerCompositor::showDebugBorders):
1715 (WebCore::RenderLayerCompositor::showRepaintCounter):
1717 2011-01-07 Nate Chapin <japhet@chromium.org>
1719 Reviewed by Darin Fisher.
1721 Let PingLoader send cookies if FrameLoaderClient permits it.
1722 https://bugs.webkit.org/show_bug.cgi?id=51898
1724 Test: http/tests/navigation/ping-cookie.html
1726 * loader/PingLoader.cpp:
1727 (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
1728 at load start time, since we won't be able to call
1729 FrameLoaderClient::shouldUseCredentialStorage() later.
1730 * loader/PingLoader.h:
1731 (WebCore::PingLoader::shouldUseCredentialStorage):
1733 2011-01-07 Xan Lopez <xlopez@igalia.com>
1735 Unreviewed, rolling out r75256.
1736 http://trac.webkit.org/changeset/75256
1737 https://bugs.webkit.org/show_bug.cgi?id=50869
1739 Broke GTK+ canvas tests
1741 * platform/graphics/cairo/PathCairo.cpp:
1742 (WebCore::Path::addArc):
1744 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1746 Reviewed by Martin Robinson.
1748 [GTK] Port scrollbar painting to GtkStyleContext
1749 https://bugs.webkit.org/show_bug.cgi?id=52051
1751 Use GtkStyleContext API to paint scrollbars when building with
1754 No new tests. This should not change functionality.
1756 * platform/gtk/RenderThemeGtk.h:
1757 * platform/gtk/RenderThemeGtk3.cpp:
1758 (WebCore::RenderThemeGtk::gtkScrollbarStyle):
1759 * platform/gtk/ScrollbarThemeGtk.cpp:
1760 * platform/gtk/ScrollbarThemeGtk.h:
1761 * platform/gtk/ScrollbarThemeGtk2.cpp:
1762 (WebCore::gtkStyleSetCallback):
1763 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1764 * platform/gtk/ScrollbarThemeGtk3.cpp:
1765 (WebCore::gtkStyleChangedCallback):
1766 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1767 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
1768 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
1769 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
1770 (WebCore::ScrollbarThemeGtk::paintThumb):
1771 (WebCore::ScrollbarThemeGtk::paintButton):
1773 2011-01-07 Dan Bernstein <mitz@apple.com>
1775 Reviewed by Darin Adler.
1777 <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
1778 https://bugs.webkit.org/show_bug.cgi?id=51267
1780 Test: fast/text/emphasis-avoid-ruby.html
1782 * rendering/InlineFlowBox.cpp:
1783 (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
1784 there are text emphasis marks.
1785 (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
1786 (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
1787 * rendering/InlineTextBox.cpp:
1788 (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
1789 position if the text is style with emphasis marks and there isn’t a ruby annotation that should
1790 suppress them. Otherwise returns false.
1791 (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
1793 * rendering/InlineTextBox.h:
1795 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1797 Reviewed by Martin Robinson.
1799 [cairo] Rendering a lot of arcs on top of each other causes time
1801 https://bugs.webkit.org/show_bug.cgi?id=50869
1803 We avoid the situation where we have to render the same arc
1804 multiple times over itself. Now it renders just one oval and
1805 moves to the end angle.
1807 * platform/graphics/cairo/PathCairo.cpp:
1808 (WebCore::Path::addArc):
1810 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1812 Reviewed by Martin Robinson.
1814 [GTK] Port buttons painting to GtkStyleContext
1815 https://bugs.webkit.org/show_bug.cgi?id=51812
1817 Use GtkStyleContext API to paint buttons when building with GTK+
1820 No new tests. This should not change functionality.
1822 * platform/gtk/RenderThemeGtk3.cpp:
1823 (WebCore::adjustRectForFocus):
1824 (WebCore::RenderThemeGtk::adjustRepaintRect):
1825 (WebCore::RenderThemeGtk::paintButton):
1827 2011-01-07 Zhenyao Mo <zmo@google.com>
1829 Unreviewed, build fix.
1831 * html/canvas/WebGLRenderingContext.cpp:
1832 (WebCore::WebGLRenderingContext::copyTexSubImage2D):
1834 2011-01-06 Zhenyao Mo <zmo@google.com>
1836 Reviewed by Kenneth Russell.
1838 copyTexSubImage2D shouldn't have undefined pixels
1839 https://bugs.webkit.org/show_bug.cgi?id=51559
1841 * html/canvas/WebGLRenderingContext.cpp:
1842 (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
1843 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
1844 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
1845 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
1846 * html/canvas/WebGLRenderingContext.h:
1847 * html/canvas/WebGLTexture.cpp:
1848 (WebCore::WebGLTexture::getType): Expose the type of a texture.
1849 * html/canvas/WebGLTexture.h:
1851 2011-01-07 Takashi Toyoshima <toyoshim@google.com>
1853 Reviewed by Kenneth Russell.
1855 cleanupAfterGraphicsCall() is never called in
1856 WebGLRenderingContext::checkFramebufferStatus()
1857 https://bugs.webkit.org/show_bug.cgi?id=51668
1859 No new tests. This is a trivial bug.
1861 * html/canvas/WebGLRenderingContext.cpp:
1862 (WebCore::WebGLRenderingContext::checkFramebufferStatus):
1864 2011-01-07 Mario Sanchez Prada <msanchez@igalia.com>
1866 Reviewed by Chris Fleizach.
1868 GTK: AX: atk tests need to be updated after recent changes
1869 https://bugs.webkit.org/show_bug.cgi?id=51932
1871 Make sure we can always get the right accesssible parent for an
1872 AtkObject when traversing the hierarchy bottom up.
1874 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1875 (isRootObject): New function to check whether an
1876 AccessibilityObject is the root one or not, according to the
1877 latest changes in the hierarchy.
1878 (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
1879 GAIL as the parent of the root AtkObject from WebCore.
1880 (webkit_accessible_get_parent): Use atkParentOfRootObject.
1881 (webkit_accessible_get_index_in_parent): Ditto.
1882 (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
1883 AtkObject's of role ATK_ROLE_SCROLLED_PANE.
1885 2011-01-07 Zhenyao Mo <zmo@google.com>
1887 Unreviewed, Mac 32-bit build fix.
1888 Use float instead of double in GL function arguments to avoid implicit type down casting.
1890 * html/canvas/WebGLRenderingContext.cpp:
1891 (WebCore::WebGLRenderingContext::blendColor):
1892 (WebCore::WebGLRenderingContext::clearColor):
1893 (WebCore::WebGLRenderingContext::clearDepth):
1894 (WebCore::WebGLRenderingContext::depthRange):
1895 (WebCore::WebGLRenderingContext::lineWidth):
1896 (WebCore::WebGLRenderingContext::polygonOffset):
1897 (WebCore::WebGLRenderingContext::sampleCoverage):
1898 * html/canvas/WebGLRenderingContext.h:
1899 * html/canvas/WebGLRenderingContext.idl:
1901 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
1903 Reviewed by Xan Lopez.
1905 [GTK] Port slider painting to GtkStyleContext
1906 https://bugs.webkit.org/show_bug.cgi?id=51874
1908 Use GtkStyleContext API to paint sliders when building with GTK+
1909 3.x. Also move the code to adjust media slider to its own method
1910 in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
1912 No new tests. This should not change functionality.
1914 * platform/gtk/RenderThemeGtk.cpp:
1915 (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
1916 * platform/gtk/RenderThemeGtk.h:
1917 * platform/gtk/RenderThemeGtk2.cpp:
1918 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1919 * platform/gtk/RenderThemeGtk3.cpp:
1920 (WebCore::RenderThemeGtk::paintSliderTrack):
1921 (WebCore::RenderThemeGtk::paintSliderThumb):
1922 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1924 2011-01-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1926 Reviewed by Andreas Kling.
1928 [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
1929 https://bugs.webkit.org/show_bug.cgi?id=51992
1931 Add the missing header. CString is used in debug by the calls to LOG().
1933 * fileapi/FileReader.cpp:
1935 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1937 Reviewed by Martin Robinson.
1939 Cairo's ContextShadow may mis-render some box shadows
1940 https://bugs.webkit.org/show_bug.cgi?id=51374
1942 The space required for the internal shadow of the corners was not
1943 correctly considered.
1945 * platform/graphics/cairo/ContextShadowCairo.cpp:
1946 (WebCore::ContextShadow::drawRectShadow):
1948 2011-01-06 Adam Barth <abarth@webkit.org>
1950 Reviewed by Darin Adler.
1952 REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
1953 https://bugs.webkit.org/show_bug.cgi?id=52013
1955 When excluding line numbers for composite strings, we forgot to exclude
1956 the line number for the current string!
1958 Test: fast/parser/line-number-composite-segmented-string.html
1960 * platform/text/SegmentedString.cpp:
1961 (WebCore::SegmentedString::setExcludeLineNumbers):
1963 2011-01-06 Chris Marrin <cmarrin@apple.com>
1967 Back out changes in http://trac.webkit.org/changeset/75199
1968 This breaks the Windows build. Fixing it on that side. Until
1969 then I'll back this out.
1971 2011-01-06 Jenn Braithwaite <jennb@chromium.org>
1973 Reviewed by Dmitry Titov.
1975 When a live frame is moved between pages, some plug-in DOM methods cease to function
1976 https://bugs.webkit.org/show_bug.cgi?id=45770
1978 Test: fast/frames/iframe-reparenting-plugins.html
1981 (WebCore::Frame::~Frame):
1982 (WebCore::Frame::addObserver):
1983 (WebCore::Frame::removeObserver):
1985 (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
1986 Added observer to be notified when frame is destroyed.
1988 (WebCore::Page::~Page):
1989 (WebCore::Page::refreshPlugins):
1990 PluginData no longer stores page pointer.
1991 * plugins/DOMMimeType.cpp:
1992 (WebCore::DOMMimeType::DOMMimeType):
1993 (WebCore::DOMMimeType::~DOMMimeType):
1994 (WebCore::DOMMimeType::enabledPlugin):
1995 * plugins/DOMMimeType.h:
1996 (WebCore::DOMMimeType::create):
1997 (WebCore::DOMMimeType::frameDestroyed):
1998 Store frame instead of page pointer in DOMMimeType.
1999 * plugins/DOMMimeTypeArray.cpp:
2000 (WebCore::DOMMimeTypeArray::item):
2001 (WebCore::DOMMimeTypeArray::namedItem):
2002 Provide frame to create DOMMimeType.
2003 * plugins/DOMPlugin.cpp:
2004 (WebCore::DOMPlugin::DOMPlugin):
2005 (WebCore::DOMPlugin::~DOMPlugin):
2006 (WebCore::DOMPlugin::item):
2007 (WebCore::DOMPlugin::namedItem):
2008 * plugins/DOMPlugin.h:
2009 (WebCore::DOMPlugin::create):
2010 (WebCore::DOMPlugin::frameDestroyed):
2011 Store frame instead of page pointer in DOMPlugin.
2012 * plugins/DOMPluginArray.cpp:
2013 (WebCore::DOMPluginArray::item):
2014 (WebCore::DOMPluginArray::namedItem):
2015 Provide frame to create DOMPlugin.
2016 * plugins/PluginData.cpp:
2017 (WebCore::PluginData::PluginData):
2018 (WebCore::PluginData::initPlugins):
2019 * plugins/PluginData.h:
2020 No longer stores a pointer to the page.
2021 Added page parameter to initPlugins.
2022 * plugins/PluginDataNone.cpp:
2023 (WebCore::PluginData::initPlugins):
2024 * plugins/chromium/PluginDataChromium.cpp:
2025 (WebCore::PluginData::initPlugins):
2026 * plugins/gtk/PluginDataGtk.cpp:
2027 (WebCore::PluginData::initPlugins):
2028 * plugins/wx/PluginDataWx.cpp:
2029 (WebCore::PluginData::initPlugins):
2030 Updated platforms to add (unused) page parameter to initPlugins.
2032 2011-01-05 Zhenyao Mo <zmo@google.com>
2034 Reviewed by Kenneth Russell.
2036 Define GC3D types to match GL types and use them in GraphicsContext3D
2037 https://bugs.webkit.org/show_bug.cgi?id=45557
2039 * html/canvas/WebGLRenderingContext.cpp:
2040 (WebCore::WebGLRenderingContext::readPixels):
2041 (WebCore::WebGLRenderingContext::validateTexFuncData):
2042 * platform/graphics/GraphicsContext3D.cpp:
2043 (WebCore::GraphicsContext3D::texImage2DResourceSafe):
2044 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
2045 (WebCore::GraphicsContext3D::extractImageData):
2046 (WebCore::GraphicsContext3D::extractTextureData):
2047 * platform/graphics/GraphicsContext3D.h:
2048 * platform/graphics/cg/GraphicsContext3DCG.cpp:
2049 (WebCore::GraphicsContext3D::getImageData):
2050 * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2051 (WebCore::SharedGraphicsContext3D::enable):
2052 (WebCore::SharedGraphicsContext3D::disable):
2053 (WebCore::SharedGraphicsContext3D::clear):
2054 (WebCore::SharedGraphicsContext3D::drawArrays):
2055 (WebCore::SharedGraphicsContext3D::getError):
2056 (WebCore::SharedGraphicsContext3D::getIntegerv):
2057 (WebCore::SharedGraphicsContext3D::createFramebuffer):
2058 (WebCore::SharedGraphicsContext3D::createTexture):
2059 (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
2060 (WebCore::SharedGraphicsContext3D::deleteTexture):
2061 (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
2062 (WebCore::SharedGraphicsContext3D::texParameteri):
2063 (WebCore::SharedGraphicsContext3D::texImage2D):
2064 (WebCore::SharedGraphicsContext3D::texSubImage2D):
2065 (WebCore::SharedGraphicsContext3D::readPixels):
2066 (WebCore::SharedGraphicsContext3D::setActiveTexture):
2067 (WebCore::SharedGraphicsContext3D::bindTexture):
2068 (WebCore::SharedGraphicsContext3D::bindFramebuffer):
2069 * platform/graphics/gpu/SharedGraphicsContext3D.h:
2070 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
2071 (WebCore::GraphicsContext3D::activeTexture):
2072 (WebCore::GraphicsContext3D::attachShader):
2073 (WebCore::GraphicsContext3D::bindAttribLocation):
2074 (WebCore::GraphicsContext3D::bindBuffer):
2075 (WebCore::GraphicsContext3D::bindFramebuffer):
2076 (WebCore::GraphicsContext3D::bindRenderbuffer):
2077 (WebCore::GraphicsContext3D::bindTexture):
2078 (WebCore::GraphicsContext3D::blendColor):
2079 (WebCore::GraphicsContext3D::blendEquation):
2080 (WebCore::GraphicsContext3D::blendEquationSeparate):
2081 (WebCore::GraphicsContext3D::blendFunc):
2082 (WebCore::GraphicsContext3D::blendFuncSeparate):
2083 (WebCore::GraphicsContext3D::bufferData):
2084 (WebCore::GraphicsContext3D::bufferSubData):
2085 (WebCore::GraphicsContext3D::checkFramebufferStatus):
2086 (WebCore::GraphicsContext3D::clearColor):
2087 (WebCore::GraphicsContext3D::clear):
2088 (WebCore::GraphicsContext3D::clearDepth):
2089 (WebCore::GraphicsContext3D::clearStencil):
2090 (WebCore::GraphicsContext3D::colorMask):
2091 (WebCore::GraphicsContext3D::compileShader):
2092 (WebCore::GraphicsContext3D::copyTexImage2D):
2093 (WebCore::GraphicsContext3D::copyTexSubImage2D):
2094 (WebCore::GraphicsContext3D::cullFace):
2095 (WebCore::GraphicsContext3D::depthFunc):
2096 (WebCore::GraphicsContext3D::depthMask):
2097 (WebCore::GraphicsContext3D::depthRange):
2098 (WebCore::GraphicsContext3D::detachShader):
2099 (WebCore::GraphicsContext3D::disable):
2100 (WebCore::GraphicsContext3D::disableVertexAttribArray):
2101 (WebCore::GraphicsContext3D::drawArrays):
2102 (WebCore::GraphicsContext3D::drawElements):
2103 (WebCore::GraphicsContext3D::enable):
2104 (WebCore::GraphicsContext3D::enableVertexAttribArray):
2105 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
2106 (WebCore::GraphicsContext3D::framebufferTexture2D):
2107 (WebCore::GraphicsContext3D::frontFace):
2108 (WebCore::GraphicsContext3D::generateMipmap):
2109 (WebCore::GraphicsContext3D::getActiveAttrib):
2110 (WebCore::GraphicsContext3D::getActiveUniform):
2111 (WebCore::GraphicsContext3D::getAttachedShaders):
2112 (WebCore::GraphicsContext3D::getAttribLocation):
2113 (WebCore::GraphicsContext3D::getError):
2114 (WebCore::GraphicsContext3D::getString):
2115 (WebCore::GraphicsContext3D::hint):
2116 (WebCore::GraphicsContext3D::isBuffer):
2117 (WebCore::GraphicsContext3D::isEnabled):
2118 (WebCore::GraphicsContext3D::isFramebuffer):
2119 (WebCore::GraphicsContext3D::isProgram):
2120 (WebCore::GraphicsContext3D::isRenderbuffer):
2121 (WebCore::GraphicsContext3D::isShader):
2122 (WebCore::GraphicsContext3D::isTexture):
2123 (WebCore::GraphicsContext3D::lineWidth):
2124 (WebCore::GraphicsContext3D::linkProgram):
2125 (WebCore::GraphicsContext3D::pixelStorei):
2126 (WebCore::GraphicsContext3D::polygonOffset):
2127 (WebCore::GraphicsContext3D::readPixels):
2128 (WebCore::GraphicsContext3D::renderbufferStorage):
2129 (WebCore::GraphicsContext3D::sampleCoverage):
2130 (WebCore::GraphicsContext3D::scissor):
2131 (WebCore::GraphicsContext3D::stencilFunc):
2132 (WebCore::GraphicsContext3D::stencilFuncSeparate):
2133 (WebCore::GraphicsContext3D::stencilMask):
2134 (WebCore::GraphicsContext3D::stencilMaskSeparate):
2135 (WebCore::GraphicsContext3D::stencilOp):
2136 (WebCore::GraphicsContext3D::stencilOpSeparate):
2137 (WebCore::GraphicsContext3D::texParameterf):
2138 (WebCore::GraphicsContext3D::texParameteri):
2139 (WebCore::GraphicsContext3D::uniform1f):
2140 (WebCore::GraphicsContext3D::uniform1fv):
2141 (WebCore::GraphicsContext3D::uniform2f):
2142 (WebCore::GraphicsContext3D::uniform2fv):
2143 (WebCore::GraphicsContext3D::uniform3f):
2144 (WebCore::GraphicsContext3D::uniform3fv):
2145 (WebCore::GraphicsContext3D::uniform4f):
2146 (WebCore::GraphicsContext3D::uniform4fv):
2147 (WebCore::GraphicsContext3D::uniform1i):
2148 (WebCore::GraphicsContext3D::uniform1iv):
2149 (WebCore::GraphicsContext3D::uniform2i):
2150 (WebCore::GraphicsContext3D::uniform2iv):
2151 (WebCore::GraphicsContext3D::uniform3i):
2152 (WebCore::GraphicsContext3D::uniform3iv):
2153 (WebCore::GraphicsContext3D::uniform4i):
2154 (WebCore::GraphicsContext3D::uniform4iv):
2155 (WebCore::GraphicsContext3D::uniformMatrix2fv):
2156 (WebCore::GraphicsContext3D::uniformMatrix3fv):
2157 (WebCore::GraphicsContext3D::uniformMatrix4fv):
2158 (WebCore::GraphicsContext3D::useProgram):
2159 (WebCore::GraphicsContext3D::validateProgram):
2160 (WebCore::GraphicsContext3D::vertexAttrib1f):
2161 (WebCore::GraphicsContext3D::vertexAttrib1fv):
2162 (WebCore::GraphicsContext3D::vertexAttrib2f):
2163 (WebCore::GraphicsContext3D::vertexAttrib2fv):
2164 (WebCore::GraphicsContext3D::vertexAttrib3f):
2165 (WebCore::GraphicsContext3D::vertexAttrib3fv):
2166 (WebCore::GraphicsContext3D::vertexAttrib4f):
2167 (WebCore::GraphicsContext3D::vertexAttrib4fv):
2168 (WebCore::GraphicsContext3D::vertexAttribPointer):
2169 (WebCore::GraphicsContext3D::viewport):
2170 (WebCore::GraphicsContext3D::getBooleanv):
2171 (WebCore::GraphicsContext3D::getBufferParameteriv):
2172 (WebCore::GraphicsContext3D::getFloatv):
2173 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
2174 (WebCore::GraphicsContext3D::getIntegerv):
2175 (WebCore::GraphicsContext3D::getProgramiv):
2176 (WebCore::GraphicsContext3D::getProgramInfoLog):
2177 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
2178 (WebCore::GraphicsContext3D::getShaderiv):
2179 (WebCore::GraphicsContext3D::getShaderInfoLog):
2180 (WebCore::GraphicsContext3D::getTexParameterfv):
2181 (WebCore::GraphicsContext3D::getTexParameteriv):
2182 (WebCore::GraphicsContext3D::getUniformfv):
2183 (WebCore::GraphicsContext3D::getUniformiv):
2184 (WebCore::GraphicsContext3D::getUniformLocation):
2185 (WebCore::GraphicsContext3D::getVertexAttribfv):
2186 (WebCore::GraphicsContext3D::getVertexAttribiv):
2187 (WebCore::GraphicsContext3D::getVertexAttribOffset):
2188 (WebCore::GraphicsContext3D::texImage2D):
2189 (WebCore::GraphicsContext3D::texSubImage2D):
2190 (WebCore::GraphicsContext3D::createBuffer):
2191 (WebCore::GraphicsContext3D::createFramebuffer):
2192 (WebCore::GraphicsContext3D::createProgram):
2193 (WebCore::GraphicsContext3D::createRenderbuffer):
2194 (WebCore::GraphicsContext3D::createShader):
2195 (WebCore::GraphicsContext3D::createTexture):
2196 (WebCore::GraphicsContext3D::deleteBuffer):
2197 (WebCore::GraphicsContext3D::deleteFramebuffer):
2198 (WebCore::GraphicsContext3D::deleteProgram):
2199 (WebCore::GraphicsContext3D::deleteRenderbuffer):
2200 (WebCore::GraphicsContext3D::deleteShader):
2201 (WebCore::GraphicsContext3D::deleteTexture):
2202 (WebCore::GraphicsContext3D::sizeInBytes):
2203 (WebCore::GraphicsContext3D::synthesizeGLError):
2204 * platform/graphics/qt/GraphicsContext3DQt.cpp:
2205 (WebCore::GraphicsContext3D::activeTexture):
2206 (WebCore::GraphicsContext3D::attachShader):
2207 (WebCore::GraphicsContext3D::getAttachedShaders):
2208 (WebCore::GraphicsContext3D::bindAttribLocation):
2209 (WebCore::GraphicsContext3D::bindBuffer):
2210 (WebCore::GraphicsContext3D::bindFramebuffer):
2211 (WebCore::GraphicsContext3D::bindRenderbuffer):
2212 (WebCore::GraphicsContext3D::bindTexture):
2213 (WebCore::GraphicsContext3D::blendColor):
2214 (WebCore::GraphicsContext3D::blendEquation):
2215 (WebCore::GraphicsContext3D::blendEquationSeparate):
2216 (WebCore::GraphicsContext3D::blendFunc):
2217 (WebCore::GraphicsContext3D::blendFuncSeparate):
2218 (WebCore::GraphicsContext3D::bufferData):
2219 (WebCore::GraphicsContext3D::bufferSubData):
2220 (WebCore::GraphicsContext3D::checkFramebufferStatus):
2221 (WebCore::GraphicsContext3D::clearColor):
2222 (WebCore::GraphicsContext3D::clear):
2223 (WebCore::GraphicsContext3D::clearDepth):
2224 (WebCore::GraphicsContext3D::clearStencil):
2225 (WebCore::GraphicsContext3D::colorMask):
2226 (WebCore::GraphicsContext3D::compileShader):
2227 (WebCore::GraphicsContext3D::copyTexImage2D):
2228 (WebCore::GraphicsContext3D::copyTexSubImage2D):
2229 (WebCore::GraphicsContext3D::cullFace):
2230 (WebCore::GraphicsContext3D::depthFunc):
2231 (WebCore::GraphicsContext3D::depthMask):
2232 (WebCore::GraphicsContext3D::depthRange):
2233 (WebCore::GraphicsContext3D::detachShader):
2234 (WebCore::GraphicsContext3D::disable):
2235 (WebCore::GraphicsContext3D::disableVertexAttribArray):
2236 (WebCore::GraphicsContext3D::drawArrays):
2237 (WebCore::GraphicsContext3D::drawElements):
2238 (WebCore::GraphicsContext3D::enable):
2239 (WebCore::GraphicsContext3D::enableVertexAttribArray):
2240 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
2241 (WebCore::GraphicsContext3D::framebufferTexture2D):
2242 (WebCore::GraphicsContext3D::frontFace):
2243 (WebCore::GraphicsContext3D::generateMipmap):
2244 (WebCore::GraphicsContext3D::getActiveAttrib):
2245 (WebCore::GraphicsContext3D::getActiveUniform):
2246 (WebCore::GraphicsContext3D::getAttribLocation):
2247 (WebCore::GraphicsContext3D::getError):
2248 (WebCore::GraphicsContext3D::getString):
2249 (WebCore::GraphicsContext3D::hint):
2250 (WebCore::GraphicsContext3D::isBuffer):
2251 (WebCore::GraphicsContext3D::isEnabled):
2252 (WebCore::GraphicsContext3D::isFramebuffer):
2253 (WebCore::GraphicsContext3D::isProgram):
2254 (WebCore::GraphicsContext3D::isRenderbuffer):
2255 (WebCore::GraphicsContext3D::isShader):
2256 (WebCore::GraphicsContext3D::isTexture):
2257 (WebCore::GraphicsContext3D::linkProgram):
2258 (WebCore::GraphicsContext3D::pixelStorei):
2259 (WebCore::GraphicsContext3D::polygonOffset):
2260 (WebCore::GraphicsContext3D::readPixels):
2261 (WebCore::GraphicsContext3D::renderbufferStorage):
2262 (WebCore::GraphicsContext3D::sampleCoverage):
2263 (WebCore::GraphicsContext3D::scissor):
2264 (WebCore::GraphicsContext3D::stencilFunc):
2265 (WebCore::GraphicsContext3D::stencilFuncSeparate):
2266 (WebCore::GraphicsContext3D::stencilMask):
2267 (WebCore::GraphicsContext3D::stencilMaskSeparate):
2268 (WebCore::GraphicsContext3D::stencilOp):
2269 (WebCore::GraphicsContext3D::stencilOpSeparate):
2270 (WebCore::GraphicsContext3D::texParameterf):
2271 (WebCore::GraphicsContext3D::texParameteri):
2272 (WebCore::GraphicsContext3D::uniform1f):
2273 (WebCore::GraphicsContext3D::uniform1fv):
2274 (WebCore::GraphicsContext3D::uniform2f):
2275 (WebCore::GraphicsContext3D::uniform2fv):
2276 (WebCore::GraphicsContext3D::uniform3f):
2277 (WebCore::GraphicsContext3D::uniform3fv):
2278 (WebCore::GraphicsContext3D::uniform4f):
2279 (WebCore::GraphicsContext3D::uniform4fv):
2280 (WebCore::GraphicsContext3D::uniform1i):
2281 (WebCore::GraphicsContext3D::uniform1iv):
2282 (WebCore::GraphicsContext3D::uniform2i):
2283 (WebCore::GraphicsContext3D::uniform2iv):
2284 (WebCore::GraphicsContext3D::uniform3i):
2285 (WebCore::GraphicsContext3D::uniform3iv):
2286 (WebCore::GraphicsContext3D::uniform4i):
2287 (WebCore::GraphicsContext3D::uniform4iv):
2288 (WebCore::GraphicsContext3D::uniformMatrix2fv):
2289 (WebCore::GraphicsContext3D::uniformMatrix3fv):
2290 (WebCore::GraphicsContext3D::uniformMatrix4fv):
2291 (WebCore::GraphicsContext3D::useProgram):
2292 (WebCore::GraphicsContext3D::validateProgram):
2293 (WebCore::GraphicsContext3D::vertexAttrib1f):
2294 (WebCore::GraphicsContext3D::vertexAttrib1fv):
2295 (WebCore::GraphicsContext3D::vertexAttrib2f):
2296 (WebCore::GraphicsContext3D::vertexAttrib2fv):
2297 (WebCore::GraphicsContext3D::vertexAttrib3f):
2298 (WebCore::GraphicsContext3D::vertexAttrib3fv):
2299 (WebCore::GraphicsContext3D::vertexAttrib4f):
2300 (WebCore::GraphicsContext3D::vertexAttrib4fv):
2301 (WebCore::GraphicsContext3D::vertexAttribPointer):
2302 (WebCore::GraphicsContext3D::viewport):
2303 (WebCore::GraphicsContext3D::getBooleanv):
2304 (WebCore::GraphicsContext3D::getBufferParameteriv):
2305 (WebCore::GraphicsContext3D::getFloatv):
2306 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
2307 (WebCore::GraphicsContext3D::getIntegerv):
2308 (WebCore::GraphicsContext3D::getProgramiv):
2309 (WebCore::GraphicsContext3D::getProgramInfoLog):
2310 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
2311 (WebCore::GraphicsContext3D::getShaderiv):
2312 (WebCore::GraphicsContext3D::getShaderInfoLog):
2313 (WebCore::GraphicsContext3D::getShaderSource):
2314 (WebCore::GraphicsContext3D::getTexParameterfv):
2315 (WebCore::GraphicsContext3D::getTexParameteriv):
2316 (WebCore::GraphicsContext3D::getUniformfv):
2317 (WebCore::GraphicsContext3D::getUniformiv):
2318 (WebCore::GraphicsContext3D::getUniformLocation):
2319 (WebCore::GraphicsContext3D::getVertexAttribfv):
2320 (WebCore::GraphicsContext3D::getVertexAttribiv):
2321 (WebCore::GraphicsContext3D::getVertexAttribOffset):
2322 (WebCore::GraphicsContext3D::texImage2D):
2323 (WebCore::GraphicsContext3D::texSubImage2D):
2324 (WebCore::GraphicsContext3D::createBuffer):
2325 (WebCore::GraphicsContext3D::createFramebuffer):
2326 (WebCore::GraphicsContext3D::createProgram):
2327 (WebCore::GraphicsContext3D::createRenderbuffer):
2328 (WebCore::GraphicsContext3D::createShader):
2329 (WebCore::GraphicsContext3D::createTexture):
2330 (WebCore::GraphicsContext3D::deleteBuffer):
2331 (WebCore::GraphicsContext3D::deleteFramebuffer):
2332 (WebCore::GraphicsContext3D::deleteProgram):
2333 (WebCore::GraphicsContext3D::deleteRenderbuffer):
2334 (WebCore::GraphicsContext3D::deleteShader):
2335 (WebCore::GraphicsContext3D::deleteTexture):
2336 (WebCore::GraphicsContext3D::sizeInBytes):
2337 (WebCore::GraphicsContext3D::synthesizeGLError):
2338 (WebCore::GraphicsContext3D::getImageData):
2339 * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2340 (WebCore::GraphicsContext3D::getImageData):
2342 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2344 Reviewed by Eric Seidel.
2346 [GTK] Initial build support for WebGL
2347 https://bugs.webkit.org/show_bug.cgi?id=51716
2349 Add initial build support for WebGL and insert bits of implementation
2350 necessary for clean compilation into GraphicsContext3D.
2352 No new tests. This is just a build change.
2354 * GNUmakefile.am: Add missing files to the source lists.
2355 * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
2356 Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
2357 same across different platforms. X11 headers define the VERSION symbol, so it's
2358 necessary to undefine it, since it's used as an enum value.
2360 2011-01-06 Helder Correia <helder@sencha.com>
2362 Reviewed by Kenneth Rohde Christiansen.
2364 [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
2365 https://bugs.webkit.org/show_bug.cgi?id=52014
2367 The function is only used by RenderObject to draw box sides.
2368 The shadow branch is never used and thus can be removed.
2370 No new tests are necessary.
2372 * platform/graphics/qt/GraphicsContextQt.cpp:
2373 (WebCore::GraphicsContext::drawConvexPolygon):
2375 2011-01-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2377 Reviewed by Kenneth Rohde Christiansen.
2379 [Qt] Make sure touch is disabled in the minimal configuration
2380 https://bugs.webkit.org/show_bug.cgi?id=51316
2382 No new tests as there is no new functionality.
2386 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2388 Reviewed by Eric Seidel.
2390 [GTK] Freetype backend does not support WOFF
2391 https://bugs.webkit.org/show_bug.cgi?id=51904
2393 * CMakeListsEfl.txt: Add WOFF support to the sources list.
2394 * GNUmakefile.am: Add WOFF support to the sources list.
2395 * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
2396 (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
2397 (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
2399 2011-01-06 James Simonsen <simonjam@chromium.org>
2401 Reviewed by Darin Fisher.
2403 [Web Timing] Remove vendor prefix
2404 https://bugs.webkit.org/show_bug.cgi?id=48922
2406 * page/DOMWindow.cpp:
2407 (WebCore::DOMWindow::performance): Rename to performance.
2409 * page/DOMWindow.idl: Rename to performance and make replaceable.
2411 2011-01-06 Chris Marrin <cmarrin@apple.com>
2413 Reviewed by Simon Fraser.
2415 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2416 https://bugs.webkit.org/show_bug.cgi?id=49388
2418 Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
2419 used to communicate from PlatformCALayer to the owner. This replaces passing
2420 GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
2421 API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
2422 the PlatformCALayerClient API.
2424 This change has little impact on the Mac side but makes the Windows
2425 interface simpler, especially when handling video layers on Windows.
2427 * WebCore.xcodeproj/project.pbxproj:
2429 * platform/graphics/GraphicsLayer.h:
2430 (WebCore::GraphicsLayer::layerDidDisplay):
2431 (WebCore::GraphicsLayer::showDebugBorders):
2432 (WebCore::GraphicsLayer::showRepaintCounter):
2433 * platform/graphics/ca/GraphicsLayerCA.cpp:
2434 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
2435 (WebCore::GraphicsLayerCA::setContentsToImage):
2436 (WebCore::GraphicsLayerCA::setContentsToMedia):
2437 (WebCore::GraphicsLayerCA::layerDidDisplay):
2438 (WebCore::GraphicsLayerCA::updateSublayerList):
2439 * platform/graphics/ca/GraphicsLayerCA.h:
2440 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
2441 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
2442 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
2443 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
2444 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
2445 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
2446 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
2447 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
2448 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
2449 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
2450 (WebCore::GraphicsLayerCA::platformCALayer):
2451 * platform/graphics/ca/PlatformCALayer.h:
2452 (WebCore::PlatformCALayer::owner):
2453 (WebCore::PlatformCALayer::animationStarted):
2454 * platform/graphics/ca/PlatformCALayerClient.h: Added.
2455 (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
2456 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2457 (PlatformCALayer::setOwner):
2458 (PlatformCALayer::create):
2459 (PlatformCALayer::PlatformCALayer):
2460 (PlatformCALayer::contents):
2461 (PlatformCALayer::setContents):
2462 * platform/graphics/mac/WebGLLayer.mm:
2463 (-[WebGLLayer display]):
2464 * platform/graphics/mac/WebLayer.h:
2465 * platform/graphics/mac/WebLayer.mm:
2466 (drawLayerContents):
2467 (setLayerNeedsDisplayInRect):
2468 (-[WebLayer setNeedsDisplay]):
2469 (-[WebLayer display]):
2470 * platform/graphics/mac/WebTiledLayer.mm:
2471 (-[WebTiledLayer setNeedsDisplay]):
2472 (-[WebTiledLayer display]):
2473 * rendering/RenderLayerBacking.cpp:
2474 (WebCore::RenderLayerBacking::showDebugBorders):
2475 (WebCore::RenderLayerBacking::showRepaintCounter):
2476 * rendering/RenderLayerCompositor.cpp:
2477 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
2478 * rendering/RenderLayerCompositor.h:
2479 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
2480 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
2481 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
2482 (WebCore::RenderLayerCompositor::notifySyncRequired):
2483 (WebCore::RenderLayerCompositor::paintContents):
2484 (WebCore::RenderLayerCompositor::showDebugBorders):
2485 (WebCore::RenderLayerCompositor::showRepaintCounter):
2487 2011-01-06 Tony Gentilcore <tonyg@chromium.org>
2489 Reviewed by Eric Seidel.
2491 Allow framesets after hidden inputs
2492 https://bugs.webkit.org/show_bug.cgi?id=51998
2494 This implements the HTML5 spec update in response to:
2495 http://www.w3.org/Bugs/Public/show_bug.cgi?id=11156
2497 * html/parser/HTMLTreeBuilder.cpp:
2498 (WebCore::HTMLTreeBuilder::processStartTagForInBody):
2500 2010-12-29 Zhenyao Mo <zmo@google.com>
2502 Reviewed by Kenneth Russell.
2504 vertexAttribPointer should raise INVALID_OPERATION if stride/offset is not multiple of the type size
2505 https://bugs.webkit.org/show_bug.cgi?id=51725
2507 * html/canvas/WebGLRenderingContext.cpp:
2508 (WebCore::WebGLRenderingContext::vertexAttribPointer):
2510 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2512 Reviewed by Eric Seidel.
2514 [WINCE] Remove JSC::g_stackBase
2515 https://bugs.webkit.org/show_bug.cgi?id=51779
2517 * platform/wince/SharedTimerWinCE.cpp:
2518 (WebCore::TimerWindowWndProc):
2520 2011-01-06 Robert Hogan <robert@webkit.org>
2522 Reviewed by Antonio Gomes.
2524 [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
2526 This allows LayoutTestController to pass WebCore::Node back to
2529 Also amend nodesFromRect-links-and-text.html and
2530 nodesFromRect-inner-documents.html so that they do not produce
2531 platform-specific results.
2534 fast/dom/nodesFromRect-links-and-text.html
2535 fast/dom/nodesFromRect-inner-documents.html
2537 https://bugs.webkit.org/show_bug.cgi?id=48957
2539 * bridge/qt/qt_runtime.cpp:
2540 (JSC::Bindings::QtDRTNodeRuntime::create):
2541 (JSC::Bindings::QtDRTNodeRuntime::get):
2542 (JSC::Bindings::convertValueToQVariant):
2543 (JSC::Bindings::convertQVariantToValue):
2545 2011-01-06 Joone Hur <joone.hur@collabora.co.uk>
2547 Reviewed by Eric Seidel.
2549 WML Parser should treat line/column number in a consistent way
2550 https://bugs.webkit.org/show_bug.cgi?id=51601
2552 XML Parser treats line/column number as 1-based values, but WML ErrorHandler treat them as 0-based.
2553 Therefore, this patch allows WML ErrorHandler to use 1-based values.
2555 * dom/XMLDocumentParser.cpp:
2556 (WebCore::XMLDocumentParser::handleError): Treat line/column number as 1 based values.
2557 * dom/XMLDocumentParser.h: Make textPositionOneBased public and Add TextPosition1(m_lastErrorPosition) to keep error line/column number.
2558 * dom/XMLDocumentParserLibxml2.cpp:
2559 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2560 * dom/XMLDocumentParserQt.cpp:
2561 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2562 * wml/WMLErrorHandling.cpp:
2563 (WebCore::reportWMLError): Use 1 based value instead of 0 based value to report error line/column number.
2565 2011-01-05 Adam Roben <aroben@apple.com>
2567 Remove some dead code from WKCACFLayerRenderer
2569 Fixes <http://webkit.org/b/51954> WKCACFLayerRenderer has dead and
2570 redundant code for reacting to changes to the layer tree
2572 Reviewed by Sam Weinig.
2574 * platform/graphics/win/WKCACFLayerRenderer.cpp:
2575 * platform/graphics/win/WKCACFLayerRenderer.h:
2576 Removed didFlushContext and the HashMap it depended on. We react to
2577 changes to the layer tree in layerTreeDidChange instead.
2579 2011-01-06 Chris Fleizach <cfleizach@apple.com>
2581 Reviewed by Beth Dakin.
2583 AX: "AXExpanded" not exposed on most ARIA roles that use aria-expanded
2584 https://bugs.webkit.org/show_bug.cgi?id=51995
2586 Test: platform/mac/accessibility/aria-expanded-standard-items.html
2588 * accessibility/AccessibilityObject.cpp:
2589 (WebCore::AccessibilityObject::supportsARIAExpanded):
2590 (WebCore::AccessibilityObject::isExpanded):
2591 * accessibility/AccessibilityObject.h:
2592 * accessibility/AccessibilityRenderObject.cpp:
2593 (WebCore::AccessibilityRenderObject::isVisited):
2594 * accessibility/AccessibilityRenderObject.h:
2595 * accessibility/mac/AccessibilityObjectWrapper.mm:
2596 (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
2598 2010-12-28 Zhenyao Mo <zmo@google.com>
2600 Reviewed by Kenneth Russell.
2602 Must generate INVALID_VALUE errors for strings containing out-of-range characters
2603 https://bugs.webkit.org/show_bug.cgi?id=50929
2605 * html/canvas/WebGLRenderingContext.cpp: Validate characters according to GLSL ES 1.0 spec section 3.1.
2606 (WebCore::WebGLRenderingContext::bindAttribLocation):
2607 (WebCore::WebGLRenderingContext::getAttribLocation):
2608 (WebCore::WebGLRenderingContext::getUniformLocation):
2609 (WebCore::WebGLRenderingContext::shaderSource):
2610 (WebCore::WebGLRenderingContext::validateString): Helper function to perform the character validation.
2611 * html/canvas/WebGLRenderingContext.h: Declare validateString().
2613 2011-01-06 Yong Li <yoli@rim.com>
2615 Reviewed by Adam Barth.
2616 Add the test case that is missed in r75066.
2617 https://bugs.webkit.org/show_bug.cgi?id=48077
2619 Test case: WebCore/manual-tests/bugzilla-48077.html.
2621 2011-01-06 James Robinson <jamesr@chromium.org>
2623 Reviewed by Simon Fraser.
2625 Implement mozilla's animationTime property
2626 https://bugs.webkit.org/show_bug.cgi?id=51952
2628 Implements mozilla's animationTime property as described here:
2629 https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime
2630 and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/
2631 The property is called webkitAnimationTime as calling it the 'Start' time is not very informative.
2632 This property exposes a notion of a 'current' time to use for declarative animations and allows
2633 scripts to synchronize imperative animations with declarative ones if they choose to. Once queried
2634 this time is saved and used for all declarative animation updates until the embedder paints/composites
2635 the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example
2636 if the page is in a background tab).
2638 This patch also ensures that all declarative animations started in the same script execution block
2639 are synchronized even if some time elapses while script is running.
2641 Test: fast/animation/animation-time.html
2644 * page/DOMWindow.cpp:
2645 (WebCore::DOMWindow::webkitAnimationTime):
2647 * page/DOMWindow.idl:
2649 (WebCore::Frame::currentAnimationTime):
2652 (WebCore::Page::Page):
2654 (WebCore::Page::animationTime):
2655 * page/animation/AnimationController.cpp:
2656 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2657 * page/animation/AnimationTimeController.cpp: Added.
2658 (WebCore::AnimationTimeController::AnimationTimeController):
2659 (WebCore::AnimationTimeController::~AnimationTimeController):
2660 (WebCore::AnimationTimeController::currentAnimationTime):
2661 (WebCore::AnimationTimeController::clearCurrentAnimationTime):
2662 (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired):
2663 * page/animation/AnimationTimeController.h: Added.
2664 (WebCore::AnimationTimeController::create):
2666 2011-01-06 Abhishek Arya <inferno@chromium.org>
2668 Reviewed by Simon Fraser.
2670 Null out the parent stylesheet pointer when a css rule is removed.
2671 https://bugs.webkit.org/show_bug.cgi?id=51993
2673 Tests: fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html
2674 fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html
2676 * css/CSSRuleList.cpp:
2677 (WebCore::CSSRuleList::deleteRule):
2678 * css/CSSStyleSheet.cpp:
2679 (WebCore::CSSStyleSheet::deleteRule):
2681 2011-01-04 Adrienne Walker <enne@google.com>
2683 Reviewed by Kenneth Russell.
2685 NaN in a TypedArray should be converted to zero only for Float32Array.
2686 https://bugs.webkit.org/show_bug.cgi?id=46990
2688 Test: LayoutTests/fast/canvas/webgl/array-unit-tests.html
2690 * bindings/js/JSArrayBufferViewHelper.h:
2691 (WebCore::convertArrayValue):
2692 (WebCore::constructArrayBufferView):
2693 * html/canvas/Float32Array.h:
2694 (WebCore::Float32Array::set):
2695 (WebCore::Float32Array::item):
2697 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2699 Unreviewed Windows build fix for r75161.
2701 * platform/graphics/cg/GraphicsContextCG.cpp: Missing include added.
2703 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2705 Unreviewed WinCE build fix for r75139.
2707 Try to remove include after adding forward-declaration in r75145.
2709 * platform/graphics/Gradient.h:
2711 2011-01-06 Renata Hodovan <reni@webkit.org>
2713 Reviewed by Andreas Kling.
2715 https://bugs.webkit.org/show_bug.cgi?id=51811
2716 Merge m_height and m_width members of ImageData into the new m_size member.
2718 Image (BitmapImage, ImageSource) types in WebKit use IntSize to store their
2719 width and height argument, except ImageData. This patch refactors ImageData
2720 to follow the style of other Image types in WebKit.
2721 Using of PassRefPtrs other than argument passing is not allowed in WebKit anymore.
2722 This patch also refactors the PassRefPtr usages of ImageData.
2724 It's just a refactoring, so we don't need any new tests.
2726 * bindings/js/SerializedScriptValue.cpp:
2727 (WebCore::CloneSerializer::write):
2728 (WebCore::CloneDeserializer::readTerminal):
2729 * bindings/v8/SerializedScriptValue.cpp:
2730 (WebCore::ZigZag::Reader::readImageData):
2731 * html/ImageData.cpp:
2732 (WebCore::ImageData::create):
2733 (WebCore::ImageData::ImageData):
2735 (WebCore::ImageData::size):
2736 (WebCore::ImageData::width):
2737 (WebCore::ImageData::height):
2738 * html/canvas/CanvasRenderingContext2D.cpp:
2739 (WebCore::createEmptyImageData):
2740 (WebCore::CanvasRenderingContext2D::createImageData):
2741 (WebCore::CanvasRenderingContext2D::getImageData):
2742 * html/canvas/CanvasRenderingContext2D.h:
2743 * platform/graphics/haiku/ImageBufferHaiku.cpp:
2744 (WebCore::getImageData):
2746 2011-01-06 Yael Aharon <yael.aharon@nokia.com>
2748 Reviewed by Darin Adler.
2750 document.querySelector(':nth-child(foo)') should throw a syntax error
2751 https://bugs.webkit.org/show_bug.cgi?id=51231
2754 CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector)
2755 https://bugs.webkit.org/show_bug.cgi?id=21815
2757 Add a check in the parser that other than an+b, only "odd" or "even" would be allowed
2758 as parameters to nth selector.
2760 Tests: fast/css/css3-nth-tokens-script.html
2761 fast/css/css3-nth-tokens-style.html
2764 * css/CSSParser.cpp:
2765 (WebCore::isValidNthToken):
2768 2011-01-06 Jan Erik Hanssen <jhanssen@sencha.com>
2770 Reviewed by Andreas Kling.
2772 [Qt] crash in QNetworkReplyHandler::sendResponseIfNeeded()
2773 https://bugs.webkit.org/show_bug.cgi?id=51453
2775 Check if m_reply is NULL before accessing.
2777 * manual-tests/load-deferrer-resume-crash.html: Added.
2778 * platform/network/qt/QNetworkReplyHandler.cpp:
2779 (WebCore::QNetworkReplyHandler::setLoadMode):
2780 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2782 2011-01-06 Andras Becsi <abecsi@webkit.org>
2784 Reviewed by Csaba Osztrogonác.
2786 [Qt][V8] Fix the build when DEVICE_ORIENTATION is enabled.
2788 No new tests needed.
2790 * WebCore.pro: remove duplications and globally add RuntimeEnabledFeatures.
2792 2011-01-06 Helder Correia <helder@sencha.com>
2794 Reviewed by Kenneth Rohde Christiansen.
2796 [Qt][GTK] Use GraphicsContext::hasShadow() in port-specific code
2797 https://bugs.webkit.org/show_bug.cgi?id=51985
2799 r75139 introduced GraphicsContext::hasShadow(). This can now simplify
2800 and unify some code in the Qt and GTK ports.
2802 No new tests necessary for this refactoring.
2804 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2805 (WebCore::GraphicsContext::fillRect):
2806 (WebCore::GraphicsContext::fillRoundedRect):
2807 * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
2808 * platform/graphics/qt/GraphicsContextQt.cpp:
2809 (WebCore::GraphicsContext::drawConvexPolygon):
2810 (WebCore::GraphicsContext::fillPath):
2811 (WebCore::GraphicsContext::strokePath):
2812 (WebCore::GraphicsContext::fillRect):
2813 (WebCore::GraphicsContext::fillRoundedRect):
2815 2011-01-05 Darin Adler <darin@apple.com>
2817 Fix Chromium Mac build.
2819 * platform/graphics/Gradient.h: Forward-declare CGContextRef.
2820 This might even make it possible to remove the include of
2821 <CoreGraphics/CoreGraphics.h> for PLATFORM(WIN), but I did not
2822 do that at this time because I don't want to break the Windows
2823 build when fixing the Chromium build.
2825 2011-01-05 Xianzhu Wang <wangxianzhu@google.com>
2827 Reviewed by David Levin.
2829 Implement RemoteFontStream's skip behavior (in FontCustomPlatformData.cpp)
2830 https://bugs.webkit.org/show_bug.cgi?id=51736
2832 No new tests. This change has potential effect on @font-face CSS feature
2833 on ports using Skia. Tested on Chromium that this change won't break
2834 fast/css/font-face-remote.html. This change can make the test pass on
2835 other ports using Skia.
2837 * platform/graphics/skia/FontCustomPlatformData.cpp:
2838 (WebCore::RemoteFontStream::read):
2840 2011-01-05 Helder Correia <helder@sencha.com>
2842 Reviewed by Simon Fraser.
2844 Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac
2845 https://bugs.webkit.org/show_bug.cgi?id=51869
2847 GraphicsContext::fillRect(const FloatRect&) is clipping to the rect.
2848 The shadow is being drawn, but getting clipped to the rect being filled.
2849 The solution is to draw the gradient into a CGLayer (when a shadow is
2850 required), then render the layer to the GraphicsContext.
2852 This patch also fixes:
2853 canvas/philip/tests/2d.shadow.gradient.alpha.html
2854 canvas/philip/tests/2d.shadow.gradient.basic.html
2855 canvas/philip/tests/2d.shadow.gradient.transparent.2.html
2857 Test: fast/canvas/canvas-fillRect-gradient-shadow.html
2859 * platform/graphics/Gradient.h:
2860 * platform/graphics/cg/GradientCG.cpp:
2861 (WebCore::Gradient::paint):
2862 * platform/graphics/cg/GraphicsContextCG.cpp:
2863 (WebCore::GraphicsContext::fillRect):
2865 2011-01-05 Steve Falkenburg <sfalken@apple.com>
2867 Reviewed by Darin Adler.
2869 Debug and Release builds on Windows clobber each other
2870 https://bugs.webkit.org/show_bug.cgi?id=49185
2872 Changes the structure of WebKitBuild build products directory so we
2873 completely separate each build configuration into independent directories.
2875 Although we previously had per-configuration directories for obj, this change adds
2876 per-configuration directories for bin, lib, obj, and include. Each configuration's
2877 build products are stored within a directory inside of WebKitBuild.
2879 Most use of $(WebKitOutputDir) in the build files has been replaced by $(ConfigurationBuildDir),
2880 defined in common.vsprops to be $(WebKitOutputDir)\$(ConfigurationName).
2882 * WebCore.vcproj/QTMovieWinCommon.vsprops:
2883 * WebCore.vcproj/QTMovieWinPostBuild.cmd:
2884 * WebCore.vcproj/QTMovieWinPreBuild.cmd:
2885 * WebCore.vcproj/WebCore.make:
2886 * WebCore.vcproj/WebCore.vcproj:
2887 * WebCore.vcproj/WebCoreCommon.vsprops:
2888 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
2889 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
2890 * WebCore.vcproj/WebCoreMediaQT.vsprops:
2891 * WebCore.vcproj/WebCorePostBuild.cmd:
2892 * WebCore.vcproj/WebCorePreBuild.cmd:
2893 * WebCore.vcproj/copyForwardingHeaders.cmd:
2894 * WebCore.vcproj/copyInspectorFiles.cmd:
2896 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2898 Reviewed by Ariya Hidayat.
2900 Directly composited SVG images fail to render
2901 https://bugs.webkit.org/show_bug.cgi?id=51975
2903 There was already code, added in r67900, to detect whether an image
2904 may be directly composited, by checking to see if it's a bitmap image.
2906 However, CachedImage::image() returns the nullImage() if m_image is null,
2907 which is a BitmapImage, confusing this test.
2909 Test: compositing/images/direct-svg-image.html
2911 * loader/cache/CachedImage.cpp: Remove nullImage(), since Image has
2912 exactly the same method.
2913 (WebCore::CachedImage::image): Use Image::nullImage().
2914 * loader/cache/CachedImage.h:
2915 (WebCore::CachedImage::hasImage): New method to ask whether the m_image is
2917 * rendering/RenderLayerBacking.cpp:
2918 (WebCore::RenderLayerBacking::isDirectlyCompositedImage): Use hasImage()
2919 so that we don't test the nullImage.
2921 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2923 Reviewed by Darin Adler.
2925 Fix percentage values in radius of radial gradients
2926 https://bugs.webkit.org/show_bug.cgi?id=51979
2928 Handle percentage values for the ending size of radial gradients.
2930 Test: fast/gradients/css3-radial-gradients3.html
2932 * css/CSSGradientValue.cpp:
2933 (WebCore::CSSRadialGradientValue::resolveRadius): Add parameter for height or width, which is
2934 non-null if percentage values are allowed, and compute percentage values when we see them.
2935 (WebCore::CSSRadialGradientValue::createGradient): Pass height or width down to say that
2936 percentages are OK when resolving end radii.
2937 * css/CSSGradientValue.h: New parameter for resolveRadius.
2939 2011-01-05 James Simonsen <simonjam@chromium.org>
2941 Reviewed by Adam Barth.
2943 [Web Timing] Zero out some values on cross-origin redirects
2944 https://bugs.webkit.org/show_bug.cgi?id=49294
2946 Tests: http/tests/misc/webtiming-cross-origin-redirect.php
2947 http/tests/misc/webtiming-origins.html
2949 * loader/DocumentLoadTiming.h:
2950 (WebCore::DocumentLoadTiming::DocumentLoadTiming): Add flags for cross-origin redirects and same-origin navigation.
2951 * loader/FrameLoader.cpp:
2952 (WebCore::FrameLoader::~FrameLoader):
2953 (WebCore::FrameLoader::stopLoading): Don't overwrite previous unload times.
2954 (WebCore::FrameLoader::completed):
2955 (WebCore::FrameLoader::loadWithDocumentLoader): Remember previous URL to see if navigation is same-origin.
2956 (WebCore::FrameLoader::commitProvisionalLoad): Set flag if navigation is same-origin.
2957 * loader/FrameLoader.h:
2958 * loader/MainResourceLoader.cpp:
2959 (WebCore::MainResourceLoader::willSendRequest): Set flag on cross-origin redirects.
2960 * page/PerformanceNavigation.cpp:
2961 (WebCore::PerformanceNavigation::redirectCount): Clear if cross-origin redirect flag is set.
2962 * page/PerformanceTiming.cpp:
2963 (WebCore::PerformanceTiming::redirectStart): Ditto.
2964 (WebCore::PerformanceTiming::redirectEnd): Ditto.
2965 (WebCore::PerformanceTiming::unloadEventStart): Clear if cross-origin navigation is set.
2966 (WebCore::PerformanceTiming::unloadEventEnd): Ditto.
2968 2011-01-05 Helder Correia <helder@sencha.com>
2970 Reviewed by Ariya Hidayat.
2972 [Qt] Default focus ring is too wide
2973 https://bugs.webkit.org/show_bug.cgi?id=51854
2975 This is an intermediate step to solve this bug. Use QPalette::Highlight
2976 instead of default half-transparent black as the focus ring color.
2978 * platform/graphics/qt/GraphicsContextQt.cpp:
2979 (WebCore::drawFocusRingForPath):
2980 * platform/qt/RenderThemeQt.cpp:
2981 (WebCore::RenderThemeQt::platformFocusRingColor):
2982 * platform/qt/RenderThemeQt.h:
2984 2011-01-05 James Simonsen <simonjam@chromium.org>
2986 Reviewed by Darin Fisher.
2988 [Web Timing] requestStart and responseStart should be available even if the document is still loading
2989 https://bugs.webkit.org/show_bug.cgi?id=51368
2991 Test: http/tests/misc/webtiming-slow-load.php
2993 * page/PerformanceTiming.cpp:
2994 (WebCore::getPossiblySkewedTimeInKnownRange): Handle case where response is not yet complete.
2995 (WebCore::PerformanceTiming::resourceLoadTimeRelativeToAbsolute): Use full upper bound.
2997 2011-01-05 Chris Rogers <crogers@google.com>
2999 Reviewed by Darin Fisher.
3001 Add WebKitClient::createAudioDevice() for Chromium port of web audio API
3002 https://bugs.webkit.org/show_bug.cgi?id=51424
3004 No new tests since audio API is not yet implemented.
3006 * WebCore.gyp/WebCore.gyp:
3009 2011-01-05 Anders Carlsson <andersca@apple.com>
3015 2011-01-05 Anders Carlsson <andersca@apple.com>
3017 Attempt to fix Leopard build.
3021 2011-01-05 Evan Martin <evan@chromium.org>
3023 Reviewed by Tony Chang.
3025 [chromium] refactor complex text on Linux
3026 https://bugs.webkit.org/show_bug.cgi?id=51956
3028 Pull out TextRunWalker from FontLinux.cpp. Put it in its own file.
3029 Rename it to ComplexTextController, to match platform/graphics/mac
3032 No tests because the change is just renaming a class.
3034 * WebCore.gyp/WebCore.gyp:
3035 * platform/graphics/chromium/ComplexTextControllerLinux.cpp: Added.
3036 (WebCore::ComplexTextController::ComplexTextController):
3037 (WebCore::ComplexTextController::~ComplexTextController):
3038 (WebCore::ComplexTextController::isWordBreak):
3039 (WebCore::ComplexTextController::determineWordBreakSpacing):
3040 (WebCore::ComplexTextController::setPadding):
3041 (WebCore::ComplexTextController::reset):
3042 (WebCore::ComplexTextController::setBackwardsIteration):
3043 (WebCore::ComplexTextController::nextScriptRun):
3044 (WebCore::ComplexTextController::widthOfFullRun):
3045 (WebCore::ComplexTextController::setupFontForScriptRun):
3046 (WebCore::ComplexTextController::allocHarfbuzzFont):
3047 (WebCore::ComplexTextController::deleteGlyphArrays):
3048 (WebCore::ComplexTextController::createGlyphArrays):
3049 (WebCore::ComplexTextController::resetGlyphArrays):
3050 (WebCore::ComplexTextController::shapeGlyphs):
3051 (WebCore::ComplexTextController::setGlyphXPositions):
3052 (WebCore::ComplexTextController::normalizeSpacesAndMirrorChars):
3053 (WebCore::ComplexTextController::getNormalizedTextRun):
3054 * platform/graphics/chromium/ComplexTextControllerLinux.h: Added.
3055 (WebCore::ComplexTextController::setWordSpacingAdjustment):
3056 (WebCore::ComplexTextController::setLetterSpacingAdjustment):
3057 (WebCore::ComplexTextController::letterSpacing):
3058 (WebCore::ComplexTextController::setXOffsetToZero):
3059 (WebCore::ComplexTextController::rtl):
3060 (WebCore::ComplexTextController::glyphs):
3061 (WebCore::ComplexTextController::length):
3062 (WebCore::ComplexTextController::xPositions):
3063 (WebCore::ComplexTextController::advances):
3064 (WebCore::ComplexTextController::width):
3065 (WebCore::ComplexTextController::logClusters):
3066 (WebCore::ComplexTextController::numCodePoints):
3067 (WebCore::ComplexTextController::fontPlatformDataForScriptRun):
3068 (WebCore::ComplexTextController::isCodepointSpace):
3069 * platform/graphics/chromium/FontLinux.cpp:
3070 (WebCore::Font::drawComplexText):
3071 (WebCore::Font::floatWidthForComplexText):
3072 (WebCore::glyphIndexForXPositionInScriptRun):
3073 (WebCore::Font::offsetForPositionForComplexText):
3074 (WebCore::Font::selectionRectForComplexText):
3076 2011-01-05 Pratik Solanki <psolanki@apple.com>
3078 Reviewed by Darin Adler.
3080 Merge cf and mac header files with same name
3081 https://bugs.webkit.org/show_bug.cgi?id=51916
3083 Since most of the code in the header files is identical, we can merge them and have #if
3084 USE(CFNETWORK) to separate out the network specific parts.
3086 * WebCore.xcodeproj/project.pbxproj:
3087 * platform/network/cf/AuthenticationChallenge.h:
3088 (WebCore::AuthenticationChallenge::sender):
3089 (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
3090 * platform/network/cf/ResourceError.h:
3091 (WebCore::ResourceError::ResourceError):
3092 * platform/network/cf/ResourceRequest.h:
3093 (WebCore::ResourceRequest::ResourceRequest):
3094 * platform/network/cf/ResourceResponse.h:
3095 (WebCore::ResourceResponse::ResourceResponse):
3096 * platform/network/mac/AuthenticationChallenge.h: Removed.
3097 * platform/network/mac/ResourceError.h: Removed.
3098 * platform/network/mac/ResourceRequest.h: Removed.
3099 * platform/network/mac/ResourceResponse.h: Removed.
3101 2011-01-05 Anders Carlsson <andersca@apple.com>
3103 Reviewed by Adele Peterson.
3105 Implement word transformation
3106 https://bugs.webkit.org/show_bug.cgi?id=51943
3108 Export Editor functions needed by WebKit2.
3112 2011-01-05 Simon Fraser <simon.fraser@apple.com>
3114 Reviewed by Dave Hyatt.
3116 Implement repeating CSS3 gradients
3117 https://bugs.webkit.org/show_bug.cgi?id=51843
3119 Add support for repeating gradients, via the new gradient functions
3120 -webkit-repeating-linear-gradient and -webkit-repeating-radial-gradient.
3122 Tests: fast/gradients/css3-repeating-linear-gradients.html
3123 fast/gradients/css3-repeating-radial-gradients.html
3125 * css/CSSGradientValue.h:
3126 (WebCore::CSSGradientValue::isRepeating): Accessor for whethe the gradient repeats.
3127 (WebCore::CSSGradientValue::CSSGradientValue): Pass CSSGradientRepeat in.
3128 (WebCore::CSSLinearGradientValue::create): Pass CSSGradientRepeat.
3129 (WebCore::CSSLinearGradientValue::CSSLinearGradientValue): Ditto
3130 (WebCore::CSSRadialGradientValue::create): Ditto.
3131 (WebCore::CSSRadialGradientValue::CSSRadialGradientValue): Ditto.
3133 * css/CSSGradientValue.cpp:
3134 (WebCore::CSSGradientValue::addStops): Pass maxLengthForRepeat, which
3135 is used for repeating radial gradients. Add code to repeat the stops,
3136 adding stops before the start, and after the end until the 0-N range is
3137 covered, where N is large enough to ensure the box is covered. Fix an issue
3138 with repeating gradients where if both stops were < 0, it would fail to clamp
3141 (WebCore::CSSLinearGradientValue::cssText): Output strings for repeating gradients.
3142 (WebCore::CSSLinearGradientValue::createGradient): maxExtent for linear gradients is 1,
3143 because they are guaranteed to fill the box already.
3144 (WebCore::CSSRadialGradientValue::cssText): Output strings for repeating gradients.
3145 (WebCore::CSSRadialGradientValue::createGradient): Compute the distance to the furthest
3146 corner in order to inform addStops() how much additional extent is required.
3148 * css/CSSParser.cpp:
3149 (WebCore::CSSParser::parseDeprecatedGradient): Old gradients never repeat.
3150 (WebCore::CSSParser::parseLinearGradient): Pass down CSSGradientRepeat.
3151 (WebCore::CSSParser::parseRadialGradient): Ditto.
3152 (WebCore::CSSParser::isGeneratedImageValue): Add repeating gradient functions.
3153 (WebCore::CSSParser::parseGeneratedImage): Ditto.
3154 * css/CSSParser.h: Pass CSSGradientRepeat to gradient functions.
3155 * platform/graphics/cg/GradientCG.cpp: Remove unused #include.
3157 2011-01-05 Martin Robinson <mrobinson@igalia.com>
3159 Reviewed by Ariya Hidayat.
3161 ContextShadow::blurLayerImage() not endian-safe
3162 https://bugs.webkit.org/show_bug.cgi?id=51822
3164 Correct the channel map in ContextShadow to reflect the different
3165 ordering of pixels on processors with different endianness.
3167 No new tests. This is covered by the existing shadow tests. It was
3168 not discovered, because all of the bots using ContextShadow are
3171 * platform/graphics/ContextShadow.cpp:
3172 (WebCore::ContextShadow::blurLayerImage): Initialize the channel mapping
3173 based on machine endianness.
3175 2011-01-05 Mihai Parparita <mihaip@chromium.org>
3177 Reviewed by Nate Chapin.
3179 [Chromium] Crash when drawing PDF plug-in scrollbars
3180 https://bugs.webkit.org/show_bug.cgi?id=51942
3182 Pepper plug-in scrollbars don't have a parent, guard against that before
3183 seeing if the parent is a FrameView.
3185 Not testable via layout tests, verified fix by hand.
3187 * platform/chromium/ScrollbarThemeChromiumMac.mm:
3188 (WebCore::ScrollbarThemeChromiumMac::paint):
3190 2011-01-05 Abhishek Arya <inferno@chromium.org>
3194 Update FIXME comment to sound better. Also initialize the block to fix compile.
3196 * rendering/RenderBlock.cpp:
3197 (WebCore::RenderBlock::removeChild):
3199 2011-01-05 Abhishek Arya <inferno@chromium.org>
3201 Reviewed by Dave Hyatt.
3203 Do not merge anonymous blocks when one of them is the one getting removed.
3204 https://bugs.webkit.org/show_bug.cgi?id=51919
3206 Test: fast/block/merge-anonymous-block-remove-child-crash.html
3208 * rendering/RenderBlock.cpp:
3209 (WebCore::RenderBlock::removeChild):
3211 2011-01-05 Ryosuke Niwa <rniwa@webkit.org>
3213 Reviewed by Eric Seidel.
3215 ApplyStyleCommand::applyRelativeFontStyleChange should take EditingStyle*
3216 https://bugs.webkit.org/show_bug.cgi?id=50641
3218 Modified applyRelativeFontStyleChange to take EditingStyle instead of CSSMutableStyleDeclaration.
3219 Also extracted the logic to obtain the font size delta from ApplyStyleCommand to EditingStyle.
3220 The font size delta is now stored as a member variable of EditingStyle as supposed to a property
3221 in CSSMutableStyleDeclration as soon as EditingStyle is instantiated.
3223 No new tests are added since this is a refactoring.
3225 * editing/ApplyStyleCommand.cpp:
3226 (WebCore::ApplyStyleCommand::doApply): Calls applyRelativeFontStyleChange.
3227 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Takes EditingStyle.
3228 * editing/ApplyStyleCommand.h:
3229 * editing/EditingStyle.cpp:
3230 (WebCore::EditingStyle::EditingStyle): Initializes m_fontSizeDelta.
3231 (WebCore::EditingStyle::init): Ditto.
3232 (WebCore::EditingStyle::extractFontSizeDelta): Extracted from applyRelativeFontStyleChange.
3233 (WebCore::EditingStyle::isEmpty): Takes care of m_fontSizeDelta.
3234 (WebCore::EditingStyle::setStyle): Calls extractFontSizeDelta.
3235 (WebCore::EditingStyle::overrideWithStyle): Ditto.
3236 (WebCore::EditingStyle::clear): Initializes m_fontSizeDelta.
3237 (WebCore::EditingStyle::copy): Calls extractFontSizeDelta.
3238 * editing/EditingStyle.h:
3239 (WebCore::EditingStyle::fontSizeDelta): Added.
3240 (WebCore::EditingStyle::hasFontSizeDelta): Added.
3243 2011-01-05 Dan Bernstein <mitz@apple.com>
3245 Reviewed by Darin Adler.
3247 <rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph
3248 https://bugs.webkit.org/show_bug.cgi?id=51915
3250 This changes the results of existing tests in fast/text.
3252 * platform/graphics/Font.h:
3253 * platform/graphics/FontFastPath.cpp:
3254 (WebCore::Font::primaryFontHasGlyphForCharacter): Added.
3255 * rendering/style/RenderStyle.cpp:
3256 * platform/graphics/qt/FontQt.cpp:
3257 (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub.
3258 (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a
3259 hyphen only if the primary font has a hyphen glyph, and otherwise return a
3262 2011-01-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3264 Reviewed by Ariya Hidayat.
3266 [Qt] [Symbian] Make CONFIG-=def_files the default configuration for trunk builds
3267 https://bugs.webkit.org/show_bug.cgi?id=51888
3269 Overrule Qt's default from qconfig.pri for non-production builds so
3270 that CONFIG(def_files) evaluates to false and QtWebKit trunk builds succeed.
3272 No new tests as there is no new functionality.
3276 2011-01-05 Sheriff Bot <webkit.review.bot@gmail.com>
3278 Unreviewed, rolling out r74778.
3279 http://trac.webkit.org/changeset/74778
3280 https://bugs.webkit.org/show_bug.cgi?id=51930
3282 Android and QtWebKit-V8 uses V8DOMWindowShell::setContext.
3283 (Requested by bbandix on #webkit).
3285 * bindings/v8/V8DOMWindowShell.cpp:
3286 (WebCore::V8DOMWindowShell::setContext):
3287 * bindings/v8/V8DOMWindowShell.h:
3289 2011-01-05 Yi Shen <yi.4.shen@nokia.com>
3291 Reviewed by Andreas Kling.
3293 [Qt] Animated GIF images does not animate 10x as expected by default.
3294 https://bugs.webkit.org/show_bug.cgi?id=36818
3296 Add a test animated GIF which should be displayed 2 times and stop.
3298 * manual-tests/animated-gif-looping.html:
3299 * manual-tests/resources/animated-2x.gif: Added.
3301 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3303 Reviewed by Martin Robinson.
3305 [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
3306 https://bugs.webkit.org/show_bug.cgi?id=51923
3308 Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
3309 ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
3311 No new tests. This should not change functionality.
3313 * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
3314 * platform/gtk/ScrollbarThemeGtk.cpp:
3315 (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
3316 * platform/gtk/ScrollbarThemeGtk.h:
3317 * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
3318 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3319 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3320 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3321 (WebCore::ScrollbarThemeGtk::paintThumb):
3322 (WebCore::ScrollbarThemeGtk::paintButton):
3323 * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
3324 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3325 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3326 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3327 (WebCore::ScrollbarThemeGtk::paintThumb):
3328 (WebCore::ScrollbarThemeGtk::paintButton):
3330 2011-01-05 Patrick Gansterer <paroga@webkit.org>
3332 Reviewed by Andreas Kling.
3334 [CMake] Fix the usage of SOURCE_GROUP
3335 https://bugs.webkit.org/show_bug.cgi?id=51739
3339 2011-01-05 Andras Becsi <abecsi@webkit.org>
3341 Reviewed by Csaba Osztrogonác.
3343 [Qt][V8] Fix the build after recent changes.
3345 No new tests needed.
3347 * WebCore.pro: Add missing files, and remove obsolete ones.
3349 2011-01-05 Yong Li <yoli@rim.com>
3351 Reviewed by Adam Barth.
3353 Suspend HTMLParserScheduler when page load is deferred to
3354 avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3355 from an external script or by events, and is blocked by a modal dialog,
3356 WebKit can parse more HTML source and also start another JS execution.
3358 https://bugs.webkit.org/show_bug.cgi?id=48077
3360 Test case: WebCore/manual-tests/bugzilla-48077.html.
3362 * dom/DocumentParser.cpp:
3363 (WebCore::DocumentParser::suspendScheduledTasks):
3364 (WebCore::DocumentParser::resumeScheduledTasks):
3365 * dom/DocumentParser.h:
3366 * html/parser/HTMLDocumentParser.cpp:
3367 (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3368 (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3369 * html/parser/HTMLParserScheduler.cpp:
3370 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3371 (WebCore::HTMLParserScheduler::suspend):
3372 (WebCore::HTMLParserScheduler::resume):
3373 * html/parser/HTMLParserScheduler.h:
3374 (WebCore::HTMLParserScheduler::isScheduledForResume):
3375 * page/PageGroupLoadDeferrer.cpp:
3376 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3377 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3379 2011-01-05 Simon Hausmann <simon.hausmann@nokia.com>
3381 Reviewed by Kenneth Rohde Christiansen, Gustavo Noronha Silva
3383 [GStreamer] MediaPlayerPrivateGStreamer::totalBytes() does not work reliably
3384 https://bugs.webkit.org/show_bug.cgi?id=51926
3386 Work around potential upstream bug: Querying a GstBin for the duration,
3387 will forward the query to all sink children. Our WebKitWebSrc however
3388 is a bin with only source children, therefore the query fails. Until
3389 this is changed upstream, this patch works around it as follows,
3390 based on suggestion by Philippe Normand and Sebastian Dröge:
3392 When the initial query fails, attempt the same query on all source
3393 pads and take the maximum length reported.
3395 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3396 (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
3398 2011-01-05 Philippe Normand <pnormand@igalia.com>
3400 Rubber-stamped by Eric Seidel.
3402 [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
3403 https://bugs.webkit.org/show_bug.cgi?id=51810
3405 Based on a patch by Mart Raudsepp.
3407 No new tests, build fix only.
3409 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3410 (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
3411 API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
3412 introduced in same version as the xoverlay API change.
3414 2011-01-05 Leo Yang <leo.yang@torchmobile.com.cn>
3416 Reviewed by Dirk Schulze.
3418 Malformed SVG causes crash in updateContainerOffset
3419 https://bugs.webkit.org/show_bug.cgi?id=44610
3421 We should check recursive <use> at the begining of
3422 WebCore::SVGUseElement::buildInstanceTree instead
3423 of at the end of it because the target element's
3424 children may cause infinite recursive <use>.
3426 Test: svg/custom/recursive-use.svg
3428 * svg/SVGUseElement.cpp:
3429 (WebCore::SVGUseElement::buildInstanceTree):
3430 (WebCore::SVGUseElement::hasCycleUseReferencing):
3431 * svg/SVGUseElement.h:
3433 2011-01-04 Antti Koivisto <antti@apple.com>
3435 Reviewed by Dan Bernstein.
3437 https://bugs.webkit.org/show_bug.cgi?id=51907
3438 Style selector should only be recalculated when the pending sheet count goes to zero
3440 Shark says this is a significant performance improvement on some sites with lots of stylesheets.
3443 (WebCore::Document::removePendingSheet):
3445 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3447 Reviewed by Martin Robinson.
3449 [GTK] Use GtkStyleContext to get platform colors
3450 https://bugs.webkit.org/show_bug.cgi?id=51830
3452 Use GtkStyleContext API to get platform colors when building with
3455 No new tests. This should not change functionality.
3457 * platform/graphics/Color.h: Add specialized constructor for GdkRGBA.
3458 * platform/graphics/gtk/ColorGtk.cpp:
3459 (WebCore::Color::Color):
3460 (WebCore::Color::operator GdkRGBA):
3461 * platform/gtk/RenderThemeGtk3.cpp:
3462 (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
3463 (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
3464 (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
3465 (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
3466 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
3467 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
3468 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
3469 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
3470 (WebCore::RenderThemeGtk::systemColor):
3472 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3474 Unreviewed. Build fix for GTK when using gtk+-3 after r75009.
3476 * platform/gtk/RenderThemeGtk3.cpp:
3477 (WebCore::RenderThemeGtk::getStockIcon): Use adoptGRef instead of
3478 adoptGRefPtr which doesn't exist.
3480 2011-01-05 Alexey Proskuryakov <ap@apple.com>
3482 Reviewed by Sam Weinig.
3484 https://bugs.webkit.org/show_bug.cgi?id=51903
3485 Tell UI process which subframe is largest
3487 * WebCore.exp.in: Exported FrameView::contentsSize().
3489 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3491 Unreviewed. GTK build fix.
3493 WK2: Support Accessibility
3494 https://bugs.webkit.org/show_bug.cgi?id=51859
3496 * page/FrameView.cpp:
3497 (WebCore::FrameView::axObjectCache):
3499 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
3501 Unreviewed, rolling out r74992.
3502 http://trac.webkit.org/changeset/74992
3503 https://bugs.webkit.org/show_bug.cgi?id=51917
3505 Crash in HTMLDocumentParser::suspendScheduledTasks()
3506 (Requested by tkent on #webkit).
3508 * dom/DocumentParser.cpp:
3509 * dom/DocumentParser.h:
3510 * html/parser/HTMLDocumentParser.cpp:
3511 * html/parser/HTMLDocumentParser.h:
3512 * html/parser/HTMLParserScheduler.cpp:
3513 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3514 * html/parser/HTMLParserScheduler.h:
3515 (WebCore::HTMLParserScheduler::isScheduledForResume):
3516 * page/PageGroupLoadDeferrer.cpp:
3517 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3518 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3520 2011-01-04 Benjamin Poulain <benjamin.poulain@nokia.com>
3522 Reviewed by Kenneth Rohde Christiansen.
3524 [Qt] [WK2] Add support for non-trivial context menu action
3525 https://bugs.webkit.org/show_bug.cgi?id=51902
3527 Fix the preprocessor guard for ContextMenuItemTagSelectAll in
3528 the implementation of ContextMenuController::contextMenuItemSelected(). The guard was
3529 inconsistent with what is defined in ContextMenuItem.h.
3531 * page/ContextMenuController.cpp:
3532 (WebCore::ContextMenuController::contextMenuItemSelected):
3534 2011-01-04 Tony Gentilcore <tonyg@chromium.org>
3536 Reviewed by Ryosuke Niwa.
3538 Avoid manual ref/deref in AsyncScriptRunner by using PendingScript
3539 https://bugs.webkit.org/show_bug.cgi?id=51723
3541 ScriptElement should also be able to keep its Element+CachedScript in
3542 a PendingScript, and then executeScriptSoon can accept a PendingScript.
3543 Once HTMLScriptRunner, ScriptElement, and AsyncScriptRunner all use
3544 PendingScripts, then generic request and execute which operate on
3545 PendingScripts can be factored out to avoid code duplicate that we have.
3547 No new tests because no new functionality.
3549 * dom/AsyncScriptRunner.cpp:
3550 (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
3551 (WebCore::AsyncScriptRunner::executeScriptSoon):
3552 (WebCore::AsyncScriptRunner::timerFired):
3553 * dom/AsyncScriptRunner.h:
3554 * dom/PendingScript.h: Add ctor which sets element and cachedScript. Rename adoptElement->setElement.
3555 * dom/HTMLScriptRunner.cpp:
3556 (WebCore::HTMLScriptRunner::requestPendingScript):
3558 2011-01-04 Jeff Miller <jeffm@apple.com>
3560 Reviewed by Darin Adler.
3562 Member variable and method naming cleanup to be consistent with WebKit2.
3563 https://bugs.webkit.org/show_bug.cgi?id=51228
3565 * page/win/EventHandlerWin.cpp:
3566 (WebCore::EventHandler::eventActivatedView):
3567 Rename activatedWebView() to didActivateWebView().
3569 * platform/PlatformMouseEvent.h:
3570 Rename m_activatedWebView to m_didActivateWebView.
3572 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3573 Initialize platform-specific member variables in PlatformMouseEvent constructors.
3575 (WebCore::PlatformMouseEvent::didActivateWebView):
3576 Rename activatedWebView() to didActivateWebView().
3578 * platform/win/PlatformMouseEventWin.cpp:
3579 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3580 Rename m_activatedWebView to m_didActivateWebView.
3582 2011-01-04 Yael Aharon <yael.aharon@nokia.com>
3584 Reviewed by Darin Adler.
3586 CSS3 :nth-child selector and valid whitespace test fails
3587 https://bugs.webkit.org/show_bug.cgi?id=36279
3589 Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
3591 Test: fast/css/css3-nth-space.html
3593 * css/tokenizer.flex:
3595 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3597 Unreviewed. Build fix.
3599 WK2: Support Accessibility
3600 https://bugs.webkit.org/show_bug.cgi?id=51859
3602 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3605 2011-01-04 Cosmin Truta <ctruta@chromium.org>
3607 Reviewed by Eric Seidel.
3609 [chromium] PNG compression settings optimized for speed
3610 https://bugs.webkit.org/show_bug.cgi?id=51719
3612 Although Z_HUFFMAN_ONLY is the fastest on hard-to-compress images,
3613 it is also the slowest, by a wide margin, on easy-to-compress images.
3614 Use a more balanced configuration, based on the libpng compression defaults,
3615 but with a faster compression level (3 instead of 6), and a faster filter
3616 ("sub" instead of "all").
3618 No change in behaviour, so no new tests.
3620 * platform/image-encoders/skia/PNGImageEncoder.cpp:
3621 (WebCore::PNGImageEncoder::encode):
3623 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3625 Reviewed by Sam Weinig.
3627 WK2: Support Accessibility
3628 https://bugs.webkit.org/show_bug.cgi?id=51859
3630 WK2 doesn't use platform scroll views anymore. Accessibility code
3631 needs to have its own scroll views.
3633 Test: platform/mac/accessibility/webkit-scrollarea.html
3640 * WebCore.vcproj/WebCore.vcproj:
3641 * WebCore.xcodeproj/project.pbxproj:
3642 * accessibility/AXObjectCache.cpp:
3643 (WebCore::AXObjectCache::AXObjectCache):
3644 (WebCore::AXObjectCache::get):
3645 (WebCore::AXObjectCache::getOrCreate):
3646 (WebCore::AXObjectCache::rootObject):
3647 (WebCore::AXObjectCache::remove):
3648 (WebCore::AXObjectCache::handleScrollbarUpdate):
3649 * accessibility/AXObjectCache.h:
3650 (WebCore::AXObjectCache::handleScrollbarUpdate):
3651 * accessibility/AccessibilityARIAGrid.h:
3652 * accessibility/AccessibilityAllInOne.cpp:
3653 * accessibility/AccessibilityImageMapLink.cpp:
3654 * accessibility/AccessibilityImageMapLink.h:
3655 * accessibility/AccessibilityListBoxOption.cpp:
3656 * accessibility/AccessibilityListBoxOption.h:
3657 * accessibility/AccessibilityObject.cpp:
3658 (WebCore::AccessibilityObject::updateChildrenIfNecessary):
3659 (WebCore::AccessibilityObject::elementAccessibilityHitTest):
3660 (WebCore::AccessibilityObject::axObjectCache):
3661 (WebCore::AccessibilityObject::focusedUIElement):
3662 * accessibility/AccessibilityObject.h:
3663 (WebCore::AccessibilityObject::isAccessibilityScrollView):
3664 (WebCore::AccessibilityObject::isScrollView):
3665 (WebCore::AccessibilityObject::canSetNumericValue):
3666 (WebCore::AccessibilityObject::scrollBar):
3667 (WebCore::AccessibilityObject::size):
3668 (WebCore::AccessibilityObject::setValue):
3669 * accessibility/AccessibilityRenderObject.cpp:
3670 (WebCore::AccessibilityRenderObject::parentObject):
3671 (WebCore::AccessibilityRenderObject::accessibilityHitTest):
3672 (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
3673 (WebCore::AccessibilityRenderObject::addChildren):
3674 * accessibility/AccessibilityRenderObject.h:
3675 * accessibility/AccessibilityScrollView.cpp: Added.
3676 (WebCore::AccessibilityScrollView::AccessibilityScrollView):
3677 (WebCore::AccessibilityScrollView::create):
3678 (WebCore::AccessibilityScrollView::scrollBar):
3679 (WebCore::AccessibilityScrollView::children):
3680 (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
3681 (WebCore::AccessibilityScrollView::removeChildScrollbar):
3682 (WebCore::AccessibilityScrollView::addChildScrollbar):
3683 (WebCore::AccessibilityScrollView::addChildren):
3684 (WebCore::AccessibilityScrollView::webAreaObject):
3685 (WebCore::AccessibilityScrollView::accessibilityHitTest):
3686 (WebCore::AccessibilityScrollView::document):
3687 (WebCore::AccessibilityScrollView::elementRect):
3688 (WebCore::AccessibilityScrollView::parentObject):
3689 * accessibility/AccessibilityScrollView.h: Added.
3690 (WebCore::AccessibilityScrollView::roleValue):
3691 (WebCore::AccessibilityScrollView::scrollView):
3692 (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
3693 (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
3694 (WebCore::toAccessibilityScrollView):
3695 * accessibility/AccessibilityScrollbar.cpp:
3696 (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
3697 (WebCore::AccessibilityScrollbar::create):
3698 (WebCore::AccessibilityScrollbar::elementRect):
3699 (WebCore::AccessibilityScrollbar::document):
3700 (WebCore::AccessibilityScrollbar::orientation):
3701 (WebCore::AccessibilityScrollbar::isEnabled):
3702 (WebCore::AccessibilityScrollbar::valueForRange):
3703 (WebCore::AccessibilityScrollbar::setValue):
3704 * accessibility/AccessibilityScrollbar.h:
3705 (WebCore::AccessibilityScrollbar::setParent):
3706 (WebCore::AccessibilityScrollbar::canSetValueAttribute):
3707 (WebCore::AccessibilityScrollbar::canSetNumericValue):
3708 (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
3709 (WebCore::AccessibilityScrollbar::parentObject):
3710 (WebCore::AccessibilityScrollbar::roleValue):
3711 * accessibility/mac/AccessibilityObjectMac.mm:
3712 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3713 * accessibility/mac/AccessibilityObjectWrapper.mm:
3714 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
3715 (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
3716 (-[AccessibilityObjectWrapper position]):
3717 (-[AccessibilityObjectWrapper scrollViewParent]):
3718 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3719 (-[AccessibilityObjectWrapper accessibilityHitTest:]):
3720 (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
3722 (WebCore::Document::axObjectCache):
3723 * loader/EmptyClients.h:
3724 (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
3725 * loader/FrameLoaderClient.h:
3726 * page/FrameView.cpp:
3727 (WebCore::FrameView::~FrameView):
3728 (WebCore::FrameView::axObjectCache):
3730 * platform/ScrollView.cpp:
3731 (WebCore::ScrollView::setHasHorizontalScrollbar):
3732 (WebCore::ScrollView::setHasVerticalScrollbar):
3733 * platform/Scrollbar.cpp:
3734 (WebCore::Scrollbar::~Scrollbar):
3735 (WebCore::Scrollbar::scroll):
3736 (WebCore::Scrollbar::axObjectCache):
3737 * platform/Scrollbar.h:
3738 * platform/Widget.h:
3739 (WebCore::Widget::axObjectCache):
3741 2011-01-04 W. James MacLean <wjmaclean@chromium.org>
3743 Reviewed by Kenneth Russell.
3745 [chromium] Add support to compositor to composite to offscreen texture.
3746 https://bugs.webkit.org/show_bug.cgi?id=50833
3748 A patch to extend compositor to be able to composite into an offscreen texture instead
3749 of just directly to the display buffer. Builds on RenderSurfaceChromium support.
3750 Explicitly resets alpha channel before rendering to display.
3752 * platform/graphics/chromium/LayerRendererChromium.cpp:
3753 (WebCore::LayerRendererChromium::LayerRendererChromium):
3754 (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
3755 (WebCore::LayerRendererChromium::drawLayers):
3756 (WebCore::LayerRendererChromium::setCompositeOffscreen):
3757 (WebCore::LayerRendererChromium::useRenderSurface):
3758 (WebCore::LayerRendererChromium::setScissorToRect):
3759 * platform/graphics/chromium/LayerRendererChromium.h:
3760 (WebCore::LayerRendererChromium::isCompositingOffscreen):
3761 (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
3763 2011-01-04 Evan Martin <evan@chromium.org>
3765 Reviewed by Tony Chang.
3767 [chromium] depend on harfbuzz explicitly
3768 https://bugs.webkit.org/show_bug.cgi?id=51895
3770 platform/graphics/chromium uses Harfbuzz directly. Rather than
3771 expecting Skia to adjust the include paths, be explicit about
3774 * WebCore.gyp/WebCore.gyp:
3776 2011-01-04 Darin Adler <darin@apple.com>
3778 Reviewed by Brady Eidson.
3780 Add back/forward encoding and decoding to WebKit2
3781 https://bugs.webkit.org/show_bug.cgi?id=51901
3783 * WebCore.exp.in: Export functions used in WebKit2.
3785 * history/HistoryItem.cpp:
3786 (WebCore::HistoryItem::encodeBackForwardTree): Use references instead of pointers.
3787 (WebCore::HistoryItem::encodeBackForwardTreeNode): Ditto.
3788 (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
3789 * history/HistoryItem.h: Ditto.
3790 * platform/network/FormData.cpp:
3791 (WebCore::encode): Ditto.
3792 (WebCore::decode): Ditto.
3793 (WebCore::FormData::encodeForBackForward): Ditto.
3794 (WebCore::FormData::decodeForBackForward): Ditto.
3795 * platform/network/FormData.h: Ditto.
3797 2011-01-04 Xiaomei Ji <xji@chromium.org>
3799 Reviewed by Dan Bernstein.
3801 Implement sel.modify('move', 'left'/'right', 'lineBoundary').
3802 https://bugs.webkit.org/show_bug.cgi?id=33435
3804 * editing/SelectionController.cpp:
3805 (WebCore::SelectionController::modifyMovingRight):
3806 (WebCore::SelectionController::modifyMovingLeft):
3807 * editing/visible_units.cpp:
3808 (WebCore::logicalStartOfLine):
3809 (WebCore::logicalEndOfLine):
3810 (WebCore::leftBoundaryOfLine):
3811 (WebCore::rightBoundaryOfLine):
3812 * editing/visible_units.h:
3814 2011-01-04 Martin Robinson <mrobinson@igalia.com>
3816 Reviewed by Xan Lopez.
3818 [GTK] Use the default CSS text input control border width of relying on the GTK+ theme
3819 https://bugs.webkit.org/show_bug.cgi?id=51887
3821 Do not rely on the GTK+ theme to determine text control borders. This simplifies
3822 the RenderTheme code, prevents metrics differences between GTK+ 2.x and 3.x and
3823 doesn't break the rendering of any theme that I've encountered.
3825 * platform/gtk/RenderThemeGtk.cpp:
3826 (WebCore::RenderThemeGtk::adjustSearchFieldStyle): No longer call setTextInputBorders, but
3827 still disable any border radius.
3828 * platform/gtk/RenderThemeGtk.h: Remove setTextInputBorders and no longer override the
3829 default style of text areas and text input controls.
3830 * platform/gtk/RenderThemeGtk2.cpp: Ditto.
3831 * platform/gtk/RenderThemeGtk3.cpp: Ditto.
3833 2011-01-03 Martin Robinson <mrobinson@igalia.com>
3835 Reviewed by Darin Adler.
3837 Remove the last non-GObject usage of PlatformRefPtr and move the code to GRefPtr
3838 https://bugs.webkit.org/show_bug.cgi?id=51846
3840 No new tests. This should not introduce any functional changes.
3842 Changed all references to PlatformRefPtr in GTK+ code to GRefPtr. Changed
3843 all references to PlatformRefPtr in Brew code to RefPtr.
3845 2011-01-04 David Kilzer <ddkilzer@apple.com>
3847 <http://webkit.org/b/51890> Move ResourceLoadPriority.h into WebCore/platform/network
3849 Reviewed by Antti Koivisto.
3851 This is needed to prevent a WebCore/platform policy violation in
3854 * WebCore.gypi: Updated for moved header.
3855 * WebCore.pro: Ditto.
3856 * WebCore.vcproj/WebCore.vcproj: Ditto.
3857 * WebCore.xcodeproj/project.pbxproj: Ditto.
3858 * platform/network/ResourceLoadPriority.h: Renamed from WebCore/loader/ResourceLoadPriority.h.
3860 2011-01-04 Brady Eidson <beidson@apple.com>
3862 Reviewed by a spell checker.
3864 * storage/StorageMap.h: mesured? Really?
3866 2011-01-04 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
3868 Reviewed by Xan Lopez.
3870 [GTK] Port stock icon painting to GtkStyleContext
3871 https://bugs.webkit.org/show_bug.cgi?id=51764
3873 Port stock icon painting for media and search input elements to
3874 GtkStyleContext. Also create the initial machinery for accessing
3875 style contexts for all GTK+ 3.x based widgets.
3877 No new tests. This should not change functionality.
3879 * platform/gtk/RenderThemeGtk.cpp:
3880 (WebCore::paintGdkPixbuf):
3881 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
3882 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
3883 (WebCore::RenderThemeGtk::paintMediaButton):
3884 * platform/gtk/RenderThemeGtk.h:
3885 * platform/gtk/RenderThemeGtk2.cpp:
3886 (WebCore::RenderThemeGtk::getStockIcon):
3887 * platform/gtk/RenderThemeGtk3.cpp:
3888 (WebCore::gtkStyleChangedCallback):
3889 (WebCore::styleContextMap):
3890 (WebCore::getStyleContext):
3891 (WebCore::RenderThemeGtk::paintMenuList):
3893 2010-12-31 Antti Koivisto <antti@apple.com>
3895 Reviewed by Dave Hyatt.
3897 Scripts should not be executed before preceding stylesheets are loaded
3898 https://bugs.webkit.org/show_bug.cgi?id=8852
3900 Block inline script execution on pending stylesheet loads. This matches
3901 other browsers and HTML5.
3903 Tests: fast/tokenizer/inline-script-stylesheet-write.html
3904 fast/tokenizer/inline-script-stylesheet.html
3906 * dom/PendingScript.cpp:
3907 (WebCore::PendingScript::releaseElementAndClear):
3908 * dom/PendingScript.h:
3909 (WebCore::PendingScript::PendingScript):
3910 (WebCore::PendingScript::operator=):
3911 (WebCore::PendingScript::startingPosition):
3912 (WebCore::PendingScript::setStartingPosition):
3913 * html/HTMLLinkElement.cpp:
3914 (WebCore::HTMLLinkElement::process):
3916 This fixes an unrelated bug with beforeload events that was exposed by the other
3917 changes (fast/dom/beforeload/remove-link-in-beforeload-listener.html).
3919 * html/parser/HTMLScriptRunner.cpp:
3920 (WebCore::HTMLScriptRunner::sourceFromPendingScript):
3921 (WebCore::HTMLScriptRunner::runScript):
3923 2011-01-04 Xianzhu Wang <wangxianzhu@google.com>
3925 Reviewed by Darin Adler.
3927 Let DataView.getInt8() and DataView.setInt8() use int8_t instead of
3928 ambiguous 'char' to fix fast/canvas/webgl/data-view-test.html failure
3930 https://bugs.webkit.org/show_bug.cgi?id=51861
3932 By the way, changed other getIntXX() and setIntXX() methods to use
3933 more precise integer types.
3935 * bindings/js/JSDataViewCustom.cpp:
3936 (WebCore::setDataViewMember):
3937 * bindings/v8/custom/V8DataViewCustom.cpp:
3938 (WebCore::V8DataView::getInt8Callback):
3939 (WebCore::V8DataView::setInt8Callback):
3940 * html/canvas/DataView.cpp:
3941 (WebCore::DataView::getInt8):
3942 (WebCore::DataView::setInt8):
3943 * html/canvas/DataView.h:
3944 * html/canvas/DataView.idl:
3946 2011-01-04 Yong Li <yoli@rim.com>
3948 Reviewed by Adam Barth.
3950 Suspend HTMLParserScheduler when page load is deferred to
3951 avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3952 from an external script or by events, and is blocked by a modal dialog,
3953 WebKit can parse more HTML source and also start another JS execution.
3955 https://bugs.webkit.org/show_bug.cgi?id=48077
3957 Test case: WebCore/manual-tests/bugzilla-48077.html.
3959 * dom/DocumentParser.cpp:
3960 (WebCore::DocumentParser::suspendScheduledTasks):
3961 (WebCore::DocumentParser::resumeScheduledTasks):
3962 * dom/DocumentParser.h:
3963 * html/parser/HTMLDocumentParser.cpp:
3964 (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3965 (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3966 * html/parser/HTMLParserScheduler.cpp:
3967 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3968 (WebCore::HTMLParserScheduler::suspend):
3969 (WebCore::HTMLParserScheduler::resume):
3970 * html/parser/HTMLParserScheduler.h:
3971 (WebCore::HTMLParserScheduler::isScheduledForResume):
3972 * page/PageGroupLoadDeferrer.cpp:
3973 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3974 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3976 2011-01-04 Tony Gentilcore <tonyg@chromium.org>
3978 Unreviewed build fix.
3980 Include glib-object.h for GObject
3981 https://bugs.webkit.org/show_bug.cgi?id=51876
3983 * bindings/gobject/DOMObjectCache.cpp:
3985 2011-01-04 Ryosuke Niwa <rniwa@webkit.org>
3987 Reviewed by Dan Bernstein.
3989 Clicking on the first or the last letter of LTR/RTL text in a RTL/LTR block puts caret on the opposite side.
3990 https://bugs.webkit.org/show_bug.cgi?id=50992
3992 Fixed the bug by interchanging the offset when the direction of inline text box and the containing block
3993 does not match. Reused the code added by http://trac.webkit.org/changeset/73553.
3995 Test: editing/selection/caret-bidi-first-and-last-letters.html
3997 * rendering/InlineTextBox.cpp:
3998 (WebCore::InlineTextBox::offsetForPosition):
4000 2010-12-29 Tony Gentilcore <tonyg@chromium.org>
4002 Reviewed by Darin Adler.
4004 Remove 2 unnecessary includes from Document.h
4005 https://bugs.webkit.org/show_bug.cgi?id=51727
4007 No new tests because no changed functionality.
4011 * editing/Editor.cpp:
4012 * editing/SpellChecker.h:
4013 * editing/SplitTextNodeCommand.cpp:
4014 * editing/TextCheckingHelper.cpp:
4015 * page/FrameView.cpp:
4017 * rendering/HitTestResult.cpp:
4018 * rendering/InlineTextBox.cpp:
4019 * rendering/InlineTextBox.h:
4020 * rendering/svg/SVGInlineFlowBox.cpp:
4022 2011-01-04 Patrick Gansterer <paroga@webkit.org>
4024 Unreviewed WinCE build fix.
4026 * CMakeListsWinCE.txt: Added missing include directories, files and libraries.
4028 2011-01-04 Yi Shen <yi.4.shen@nokia.com>
4030 Reviewed by Simon Hausmann.
4032 Provide an interface to require using fullscreen mediaplayer
4033 https://bugs.webkit.org/show_bug.cgi?id=51133
4035 Only video should be displayed in fullscreen when
4036 requiresFullscreenForVideoPlayback is specified.
4038 No new tests because no client implements requiresFullscreenForVideoPlayback yet.
4040 * html/HTMLMediaElement.cpp:
4041 (WebCore::HTMLMediaElement::updatePlayState):
4043 2011-01-04 Benjamin Poulain <benjamin.poulain@nokia.com>
4045 Reviewed by Kenneth Rohde Christiansen.
4047 [Qt] [WK2] create an initial implementation of the context menu handling for WebKit 2
4048 https://bugs.webkit.org/show_bug.cgi?id=51825
4050 Implement contextMenuItemVector() for Qt, this method is used in WebKit 2 to get the
4051 platform independent menu informations.
4053 * platform/qt/ContextMenuQt.cpp:
4054 (WebCore::contextMenuItemVector):
4056 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
4058 Unreviewed, rolling out r74960.
4059 http://trac.webkit.org/changeset/74960
4060 https://bugs.webkit.org/show_bug.cgi?id=51868
4062 Rollout since we hit an assert after this patch. (Requested by
4065 * svg/SVGUseElement.cpp:
4066 (WebCore::SVGUseElement::buildInstanceTree):
4068 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
4070 Unreviewed, rolling out r74961.
4071 http://trac.webkit.org/changeset/74961
4072 https://bugs.webkit.org/show_bug.cgi?id=51867
4074 breaks 32/64-bits debug bots build (Requested by philn-tp on
4077 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
4078 (WebCore::GStreamerGWorld::setWindowOverlay):
4080 2011-01-03 Philippe Normand <pnormand@igalia.com>
4082 Rubber-stamped by Eric Seidel.
4084 [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
4085 https://bugs.webkit.org/show_bug.cgi?id=51810
4087 Based on a patch by Mart Raudsepp.
4089 No new tests, build fix only.
4091 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
4092 (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
4093 API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
4094 introduced in same version as the xoverlay API change.
4096 2011-01-04 Leo Yang <leo.yang@torchmobile.com.cn>
4098 Reviewed by Dirk Schulze.
4100 Malformed SVG causes crash in updateContainerOffset
4101 https://bugs.webkit.org/show_bug.cgi?id=44610
4103 We should check recursive <use> at the begining of
4104 WebCore::SVGUseElement::buildInstanceTree instead
4105 of at the end of it because the target element's
4106 children may cause infinite recursive <use>.
4108 Test: svg/custom/recursive-use.svg
4110 * svg/SVGUseElement.cpp:
4111 (WebCore::SVGUseElement::buildInstanceTree):
4113 2011-01-04 Kent Tamura <tkent@chromium.org>
4115 Unreviewed, build fix.
4117 Try to fix Clang build.
4119 * css/CSSParser.cpp:
4120 (WebCore::valueFromSideKeyword):
4121 (WebCore::CSSParser::parseLinearGradient):
4123 2011-01-03 Julie-Jeongeun-Kim <Jeongeun.Kim@obigo.com>
4125 Reviewed by Darin Adler.
4127 HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
4128 https://bugs.webkit.org/show_bug.cgi?id=48596
4130 border attribute was not parsed in HTMLObjectElement.
4131 I added code for it as HTMLImageElement handled.
4133 new test:fast/html/object-border.html
4135 * html/HTMLObjectElement.cpp:
4136 (WebCore::HTMLObjectElement::parseMappedAttribute):
4138 2011-01-03 Darin Adler <darin@apple.com>
4140 Try to fix Chromium build.
4142 * history/HistoryItem.cpp:
4143 (WebCore::HistoryItem::encodeBackForwardTreeNode): Added a V8 case here.
4144 Not sure this ever will be used with V8.
4145 (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
4147 2011-01-03 Darin Adler <darin@apple.com>
4149 Try to fix Leopard build.
4151 * history/HistoryItem.cpp: Use a consistent type, uint64_t, for the
4154 2011-01-03 Abhishek Arya <inferno@chromium.org>
4156 Reviewed by Darin Adler.
4158 Fixes before child calculation when adding anonymous childs to table parts.
4159 https://bugs.webkit.org/show_bug.cgi?id=50932
4161 Fix in r74364 was incomplete. When before child is equal to the table part(to
4162 which the new child is getting added), it confuses the table part to add it
4163 incorrectly as an after child. The patch fixes by passing the before child as
4164 the table part's first child.
4166 Tests: fast/css-generated-content/table-before-after-child-add.html
4167 fast/css-generated-content/table-cell-before-after-child-add.html
4168 fast/css-generated-content/table-row-before-after-child-add.html
4169 fast/css-generated-content/table-row-before-after-child-add.html
4171 * rendering/RenderTable.cpp:
4172 (WebCore::RenderTable::addChild):
4173 * rendering/RenderTableRow.cpp:
4174 (WebCore::RenderTableRow::addChild):
4175 * rendering/RenderTableSection.cpp:
4176 (WebCore::RenderTableSection::addChild):
4178 2011-01-03 Dan Bernstein <mitz@apple.com>
4180 Reviewed by Simon Fraser.
4182 Shrink HTMLTableCellElement
4183 https://bugs.webkit.org/show_bug.cgi?id=51858
4185 * html/HTMLTableCellElement.cpp:
4186 (WebCore::HTMLTableCellElement::HTMLTableCellElement): Removed intialization of m_row and
4188 * html/HTMLTableCellElement.h: Removed m_row and m_col and their accessors.
4190 2011-01-03 Darin Adler <darin@apple.com>
4194 * platform/network/FormData.cpp:
4195 (WebCore::FormData::create): Roll back uint8_t change.