1 2011-01-10 François Sausset <sausset@gmail.com>
3 Reviewed by Kenneth Rohde Christiansen.
5 MathML: vertical alignment & bar thickness adjustments of fractions.
6 https://bugs.webkit.org/show_bug.cgi?id=50018
8 The fraction bar thickness default value should follow the w3c MathML 3 recommendation:
9 http://www.w3.org/TR/MathML3/chapter3.html#presm.mfrac
10 The vertical alignment of the fraction bar should be more accurate, specially with operators (+,=,...).
12 Test: mathml/presentation/fractions.xhtml
14 * rendering/mathml/RenderMathMLFraction.cpp:
15 (WebCore::RenderMathMLFraction::RenderMathMLFraction):
16 (WebCore::RenderMathMLFraction::updateFromElement):
17 (WebCore::RenderMathMLFraction::layout):
18 (WebCore::RenderMathMLFraction::paint):
19 (WebCore::RenderMathMLFraction::baselinePosition):
20 * rendering/mathml/RenderMathMLFraction.h:
22 2011-01-10 Antti Koivisto <antti@apple.com>
24 Reviewed by Alexey Proskuryakov.
26 https://bugs.webkit.org/show_bug.cgi?id=52044
27 REGRESSION(r74807): No-store is ignored within a document
29 Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
30 This matches a behavior that got lost in r74807.
32 Test: http/tests/misc/script-no-store.html
33 (by Alexey Proskuryakov)
35 * loader/cache/CachedResourceLoader.cpp:
36 (WebCore::CachedResourceLoader::determineRevalidationPolicy):
38 2011-01-10 Patrick Gansterer <paroga@webkit.org>
40 Reviewed by Laszlo Gombos.
42 [WIN] Add ProxyServerWin.cpp
43 https://bugs.webkit.org/show_bug.cgi?id=52031
45 Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
48 * CMakeListsWinCE.txt:
49 * platform/network/win/ProxyServerWin.cpp: Added.
50 (WebCore::proxyServersForURL):
52 2011-01-10 Alejandro G. Castro <alex@igalia.com>
54 Reviewed by Martin Robinson.
56 [cairo] Rendering a lot of arcs on top of each other causes time
58 https://bugs.webkit.org/show_bug.cgi?id=50869
60 We avoid the situation where we have to render the same arc
61 multiple times over itself. Now it renders just one oval and
62 moves to the end angle.
64 * platform/graphics/cairo/PathCairo.cpp:
65 (WebCore::Path::addArc):
67 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
69 Reviewed by Martin Robinson.
71 [GTK] Port text input control painting to GtkStyleContext
72 https://bugs.webkit.org/show_bug.cgi?id=51870
74 Use GtkStyleContext API to paint text input controls when building
77 No new tests. This should not change functionality.
79 * platform/gtk/RenderThemeGtk3.cpp:
80 (WebCore::RenderThemeGtk::adjustRepaintRect):
81 (WebCore::RenderThemeGtk::paintTextField):
83 2011-01-09 Tony Gentilcore <tonyg@chromium.org>
85 Reviewed by Alexey Proskuryakov.
87 Forward declare some headers where possible
88 https://bugs.webkit.org/show_bug.cgi?id=52133
90 No new tests because no new functionality.
93 * dom/BeforeLoadEvent.h:
96 * dom/StyledElement.cpp:
97 * dom/StyledElement.h:
98 * loader/DocumentLoader.h:
99 * loader/FrameLoader.h:
101 * platform/graphics/GraphicsContext.cpp:
102 * platform/graphics/GraphicsContext.h:
103 * platform/graphics/filters/FEBlend.cpp:
104 * platform/graphics/filters/FEColorMatrix.cpp:
105 * platform/graphics/filters/FEComponentTransfer.cpp:
106 * platform/graphics/filters/FEComposite.cpp:
107 * platform/graphics/filters/FEConvolveMatrix.cpp:
108 * platform/graphics/filters/FEDiffuseLighting.cpp:
109 * platform/graphics/filters/FEDisplacementMap.cpp:
110 * platform/graphics/filters/FEFlood.cpp:
111 * platform/graphics/filters/FEGaussianBlur.cpp:
112 * platform/graphics/filters/FEMerge.cpp:
113 * platform/graphics/filters/FEMorphology.cpp:
114 * platform/graphics/filters/FEOffset.cpp:
115 * platform/graphics/filters/FESpecularLighting.cpp:
116 * platform/graphics/filters/FETile.cpp:
117 * platform/graphics/filters/FETurbulence.cpp:
118 * platform/graphics/filters/FilterEffect.cpp:
119 * platform/graphics/filters/FilterEffect.h:
120 * platform/graphics/filters/SourceAlpha.cpp:
121 * platform/graphics/filters/SourceGraphic.cpp:
122 * svg/SVGElement.cpp:
124 * svg/SVGFEBlendElement.cpp:
125 * svg/SVGFEColorMatrixElement.cpp:
126 * svg/SVGFEComponentTransferElement.cpp:
127 * svg/SVGFECompositeElement.cpp:
128 * svg/SVGFEConvolveMatrixElement.cpp:
129 * svg/SVGFEConvolveMatrixElement.h:
130 * svg/SVGFEDiffuseLightingElement.cpp:
131 * svg/SVGFEDisplacementMapElement.cpp:
132 * svg/SVGFEGaussianBlurElement.cpp:
133 * svg/SVGFEImageElement.h:
134 * svg/SVGFEMergeElement.cpp:
135 * svg/SVGFEMorphologyElement.cpp:
136 * svg/SVGFEOffsetElement.cpp:
137 * svg/SVGFESpecularLightingElement.cpp:
138 * svg/SVGFETileElement.cpp:
139 * svg/SVGFETurbulenceElement.h:
140 * svg/SVGFilterPrimitiveStandardAttributes.cpp:
141 * svg/SVGFilterPrimitiveStandardAttributes.h:
142 * svg/SVGTextContentElement.cpp:
143 * svg/graphics/filters/SVGFEImage.cpp:
144 * svg/graphics/filters/SVGFEImage.h:
146 2011-01-10 Adam Roben <aroben@apple.com>
148 Windows build fix after r75313
150 * WebCore.vcproj/build-generated-files.sh: Updated for the change in
153 2011-01-10 Pavel Podivilov <podivilov@chromium.org>
155 Reviewed by Pavel Feldman.
157 Web Inspector: make properties on Array's prototype non-enumerable.
158 https://bugs.webkit.org/show_bug.cgi?id=51776
160 * inspector/front-end/utilities.js:
163 2011-01-10 Yael Aharon <yael.aharon@nokia.com>
165 Reviewed by Simon Fraser.
167 Specificity of negated selectors apparently miscalculated
168 https://bugs.webkit.org/show_bug.cgi?id=41206
170 Give negated selectors the specificity of the selector they are negating.
171 This is the same as the behavior of other browsers.
173 Test: fast/css/pseudo-not.html
175 * css/CSSSelector.cpp:
176 (WebCore::CSSSelector::specificityForOneSelector):
178 2011-01-10 Adam Roben <aroben@apple.com>
180 Windows build fix after r75353
182 * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
185 2011-01-10 John Knottenbelt <jknotten@chromium.org>
187 Reviewed by Jeremy Orlow.
189 [Chromium] Remove non-client-based Geolocation code
190 https://bugs.webkit.org/show_bug.cgi?id=50921
192 Code clean up, covered by existing tests.
194 * WebCore.gyp/WebCore.gyp:
196 * platform/chromium/ChromiumBridge.h:
197 * platform/chromium/GeolocationServiceChromium.cpp: Removed.
198 * platform/chromium/GeolocationServiceChromium.h: Removed.
200 2011-01-10 Ilya Tikhonovsky <loislo@chromium.org>
202 Reviewed by Pavel Feldman.
204 Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
205 stepIntoStatement => stepInto
206 stepOutOfFunction => stepOut
207 stepOverStatement => stepOver
209 https://bugs.webkit.org/show_bug.cgi?id=52142
211 * inspector/Inspector.idl:
212 * inspector/InspectorDebuggerAgent.cpp:
213 (WebCore::InspectorDebuggerAgent::stepOver):
214 (WebCore::InspectorDebuggerAgent::stepInto):
215 (WebCore::InspectorDebuggerAgent::stepOut):
216 * inspector/InspectorDebuggerAgent.h:
217 * inspector/front-end/ScriptsPanel.js:
218 (WebInspector.ScriptsPanel.prototype._stepOverClicked):
219 (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
220 (WebInspector.ScriptsPanel.prototype._stepOutClicked):
222 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
224 Reviewed by Martin Robinson.
226 [GTK] Port progressbar painting to GtkStyleContext
227 https://bugs.webkit.org/show_bug.cgi?id=52054
229 Use GtkStyleContext API to paint progressbars when building with
230 GTK+ 3.x. Also add support for indeterminate progressbars.
232 No new tests. This should not change functionality.
234 * platform/gtk/RenderThemeGtk.cpp:
235 * platform/gtk/RenderThemeGtk2.cpp:
236 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
237 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
238 * platform/gtk/RenderThemeGtk3.cpp:
239 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
240 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
241 (WebCore::RenderThemeGtk::paintProgressBar):
243 2011-01-10 Andreas Kling <kling@webkit.org>
245 Reviewed by Darin Adler.
247 Remove unused class "Pen" in WebCore/platform/graphics
248 https://bugs.webkit.org/show_bug.cgi?id=49955
255 * WebCore.vcproj/WebCore.vcproj:
256 * WebCore.xcodeproj/project.pbxproj:
257 * platform/graphics/Pen.cpp: Removed.
258 * platform/graphics/Pen.h: Removed.
259 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
260 * platform/graphics/wx/GraphicsContextWx.cpp:
261 * platform/graphics/wx/PenWx.cpp: Removed.
263 2011-01-10 Xan Lopez <xlopez@igalia.com>
265 Reviewed by Martin Robinson.
267 [GTK] Create intermediate libWebCore library
268 https://bugs.webkit.org/show_bug.cgi?id=52116
270 Create intermediate libWebCore.la to avoid overflowing the linker
271 in the final link stage.
273 * GNUmakefile.am: define the new library.
275 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
277 Unreviewed, rolling out r75337.
278 http://trac.webkit.org/changeset/75337
279 https://bugs.webkit.org/show_bug.cgi?id=52137
281 It made fast/dom/navigator-detached-no-crash.html crash
282 (Requested by Ossy on #webkit).
284 * platform/qt/CookieJarQt.cpp:
285 (WebCore::cookiesEnabled):
287 2011-01-09 Mark Rowe <mrowe@apple.com>
291 * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
294 2011-01-09 Dan Bernstein <mitz@apple.com>
296 Reviewed by Sam Weinig.
298 <rdar://problem/8765555> WebKit2: Search field focus ring is missing
300 Provide a focus ring visible rect to AppKit.
302 * platform/mac/ThemeMac.mm:
303 (-[WebCoreFlippedView _focusRingVisibleRect]):
304 (-[WebCoreFlippedView _focusRingClipAncestor]):
306 2011-01-09 Dirk Schulze <krit@webkit.org>
308 Reviewed by Rob Buis.
310 Move MathML renderer to rendering/mathml
311 https://bugs.webkit.org/show_bug.cgi?id=52131
313 Move all renderer of MathML to WebCore/rendering/mathml
315 No change of functionality, no new tests added.
321 * WebCore.vcproj/WebCore.vcproj:
322 * WebCore.xcodeproj/project.pbxproj:
323 * mathml/RenderMathMLBlock.cpp: Removed.
324 * mathml/RenderMathMLBlock.h: Removed.
325 * mathml/RenderMathMLFenced.cpp: Removed.
326 * mathml/RenderMathMLFenced.h: Removed.
327 * mathml/RenderMathMLFraction.cpp: Removed.
328 * mathml/RenderMathMLFraction.h: Removed.
329 * mathml/RenderMathMLMath.cpp: Removed.
330 * mathml/RenderMathMLMath.h: Removed.
331 * mathml/RenderMathMLOperator.cpp: Removed.
332 * mathml/RenderMathMLOperator.h: Removed.
333 * mathml/RenderMathMLRoot.cpp: Removed.
334 * mathml/RenderMathMLRoot.h: Removed.
335 * mathml/RenderMathMLRow.cpp: Removed.
336 * mathml/RenderMathMLRow.h: Removed.
337 * mathml/RenderMathMLSquareRoot.cpp: Removed.
338 * mathml/RenderMathMLSquareRoot.h: Removed.
339 * mathml/RenderMathMLSubSup.cpp: Removed.
340 * mathml/RenderMathMLSubSup.h: Removed.
341 * mathml/RenderMathMLUnderOver.cpp: Removed.
342 * mathml/RenderMathMLUnderOver.h: Removed.
343 * rendering/mathml: Added.
344 * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
345 * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
346 * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
347 * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
348 * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
349 * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
350 * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
351 * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
352 * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
353 * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
354 * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
355 * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
356 * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
357 * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
358 * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
359 * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
360 * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
361 * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
362 * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
363 * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
365 2011-01-08 Simon Fraser <simon.fraser@apple.com>
367 Reviewed by Alexey Proskuryakov.
369 HTMLStyleElement.disabled doesn't work (affects jQuery)
370 https://bugs.webkit.org/show_bug.cgi?id=25287
372 Fix the disabled property of a HTMLStyleElement to reflect,
373 and set the disabled state of its style sheet, as required
376 Based on initial patch by Tarun Nainani.
378 Test: fast/html/disable-style-element.html
380 * dom/StyleElement.h:
381 (WebCore::StyleElement::sheet): Make const.
383 * html/HTMLStyleElement.h:
384 * html/HTMLStyleElement.idl:
385 * html/HTMLStyleElement.cpp:
386 (WebCore::HTMLStyleElement::disabled):
387 (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
388 call through to the sheet (if any).
390 2011-01-09 Dirk Schulze <krit@webkit.org>
392 Reviewed by Nikolas Zimmermann.
394 Rename RenderForeignObject to RenderSVGForeignObject
395 https://bugs.webkit.org/show_bug.cgi?id=52129
397 Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
399 No change of functionality, no new tests.
406 * WebCore.xcodeproj/project.pbxproj:
407 * rendering/RenderingAllInOne.cpp:
408 * rendering/svg/RenderForeignObject.cpp: Removed.
409 * rendering/svg/RenderForeignObject.h: Removed.
410 * rendering/svg/RenderSVGAllInOne.cpp:
411 * rendering/svg/RenderSVGBlock.cpp:
412 (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
413 * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
414 (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
415 (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
416 (WebCore::RenderSVGForeignObject::paint):
417 (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
418 (WebCore::RenderSVGForeignObject::computeRectForRepaint):
419 (WebCore::RenderSVGForeignObject::localToParentTransform):
420 (WebCore::RenderSVGForeignObject::computeLogicalWidth):
421 (WebCore::RenderSVGForeignObject::computeLogicalHeight):
422 (WebCore::RenderSVGForeignObject::layout):
423 (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
424 (WebCore::RenderSVGForeignObject::nodeAtPoint):
425 (WebCore::RenderSVGForeignObject::mapLocalToContainer):
426 * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
427 (WebCore::RenderSVGForeignObject::renderName):
428 * svg/SVGForeignObjectElement.cpp:
429 (WebCore::SVGForeignObjectElement::createRenderer):
431 2011-01-09 Dirk Schulze <krit@webkit.org>
433 Reviewed by Nikolas Zimmermann.
435 Move all SVG renderer to WebCore/rendering/svg
436 https://bugs.webkit.org/show_bug.cgi?id=52087
438 No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
445 * WebCore.vjproj/project.vjproj:
446 * WebCore.xcodeproj/project.pbxproj:
447 * rendering/RenderForeignObject.cpp: Removed.
448 * rendering/RenderForeignObject.h: Removed.
449 * rendering/RenderSVGAllInOne.cpp: Removed.
450 * rendering/RenderSVGBlock.cpp: Removed.
451 * rendering/RenderSVGBlock.h: Removed.
452 * rendering/RenderSVGContainer.cpp: Removed.
453 * rendering/RenderSVGContainer.h: Removed.
454 * rendering/RenderSVGGradientStop.cpp: Removed.
455 * rendering/RenderSVGGradientStop.h: Removed.
456 * rendering/RenderSVGHiddenContainer.cpp: Removed.
457 * rendering/RenderSVGHiddenContainer.h: Removed.
458 * rendering/RenderSVGImage.cpp: Removed.
459 * rendering/RenderSVGImage.h: Removed.
460 * rendering/RenderSVGModelObject.cpp: Removed.
461 * rendering/RenderSVGModelObject.h: Removed.
462 * rendering/RenderSVGResource.cpp: Removed.
463 * rendering/RenderSVGResource.h: Removed.
464 * rendering/RenderSVGResourceClipper.cpp: Removed.
465 * rendering/RenderSVGResourceClipper.h: Removed.
466 * rendering/RenderSVGResourceContainer.cpp: Removed.
467 * rendering/RenderSVGResourceContainer.h: Removed.
468 * rendering/RenderSVGResourceFilter.cpp: Removed.
469 * rendering/RenderSVGResourceFilter.h: Removed.
470 * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
471 * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
472 * rendering/RenderSVGResourceGradient.cpp: Removed.
473 * rendering/RenderSVGResourceGradient.h: Removed.
474 * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
475 * rendering/RenderSVGResourceLinearGradient.h: Removed.
476 * rendering/RenderSVGResourceMarker.cpp: Removed.
477 * rendering/RenderSVGResourceMarker.h: Removed.
478 * rendering/RenderSVGResourceMasker.cpp: Removed.
479 * rendering/RenderSVGResourceMasker.h: Removed.
480 * rendering/RenderSVGResourcePattern.cpp: Removed.
481 * rendering/RenderSVGResourcePattern.h: Removed.
482 * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
483 * rendering/RenderSVGResourceRadialGradient.h: Removed.
484 * rendering/RenderSVGResourceSolidColor.cpp: Removed.
485 * rendering/RenderSVGResourceSolidColor.h: Removed.
486 * rendering/RenderSVGRoot.cpp: Removed.
487 * rendering/RenderSVGRoot.h: Removed.
488 * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
489 * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
490 * rendering/RenderSVGTransformableContainer.cpp: Removed.
491 * rendering/RenderSVGTransformableContainer.h: Removed.
492 * rendering/RenderSVGViewportContainer.cpp: Removed.
493 * rendering/RenderSVGViewportContainer.h: Removed.
494 * rendering/SVGImageBufferTools.cpp: Removed.
495 * rendering/SVGImageBufferTools.h: Removed.
496 * rendering/SVGMarkerData.h: Removed.
497 * rendering/SVGMarkerLayoutInfo.cpp: Removed.
498 * rendering/SVGMarkerLayoutInfo.h: Removed.
499 * rendering/SVGRenderSupport.cpp: Removed.
500 * rendering/SVGRenderSupport.h: Removed.
501 * rendering/SVGRenderTreeAsText.cpp: Removed.
502 * rendering/SVGRenderTreeAsText.h: Removed.
503 * rendering/SVGResources.cpp: Removed.
504 * rendering/SVGResources.h: Removed.
505 * rendering/SVGResourcesCache.cpp: Removed.
506 * rendering/SVGResourcesCache.h: Removed.
507 * rendering/SVGResourcesCycleSolver.cpp: Removed.
508 * rendering/SVGResourcesCycleSolver.h: Removed.
509 * rendering/SVGShadowTreeElements.cpp: Removed.
510 * rendering/SVGShadowTreeElements.h: Removed.
511 * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
512 * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
513 * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
514 * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
515 * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
516 * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
517 * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
518 * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
519 * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
520 * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
521 * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
522 * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
523 * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
524 * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
525 * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
526 * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
527 * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
528 * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
529 * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
530 * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
531 * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
532 * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
533 * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
534 * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
535 * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
536 * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
537 * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
538 * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
539 * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
540 * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
541 * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
542 * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
543 * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
544 * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
545 * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
546 * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
547 * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
548 * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
549 * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
550 * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
551 * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
552 * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
553 * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
554 * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
555 * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
556 * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
557 * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
558 * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
559 * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
560 * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
561 * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
562 * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
563 * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
564 * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
565 * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
566 * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
567 * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
568 * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
569 * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
570 * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
571 * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
572 * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
573 * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
574 * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
576 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
578 Reviewed by Darin Fisher.
580 https://bugs.webkit.org/show_bug.cgi?id=41441
581 createWindow method should only do window-creating without URL navigation.
582 Let client APIs know which URL a new window will start with
584 * loader/FrameLoader.cpp:
585 (WebCore::createWindow):
586 * page/ContextMenuController.cpp:
587 (WebCore::openNewWindow):
588 * page/DOMWindow.cpp:
589 (WebCore::DOMWindow::createWindow):
591 2011-01-09 Dirk Schulze <krit@webkit.org>
593 Unreviewed sort of Xcode project file.
595 * WebCore.xcodeproj/project.pbxproj:
597 2011-01-09 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
599 Reviewed by Martin Robinson.
601 Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
602 https://bugs.webkit.org/show_bug.cgi?id=48511
604 * platform/FileSystem.h:
605 * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
606 (WebCore::applicationDirectoryPath):
608 2011-01-08 Martin Robinson <mrobinson@igalia.com>
610 GTK+ Build fix. Add missing headers to the source list, fixing make dist.
612 No new tests. This is only a build change.
614 * GNUmakefile.am: Add missing headers to the source list.
616 2011-01-08 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
618 Reviewed by Martin Robinson.
620 [GTK] WebKit2 GNUmakefile is out of date from trunk
621 https://bugs.webkit.org/show_bug.cgi?id=51883
623 Added stubs for WebKit2 compilation.
625 * platform/gtk/ContextMenuGtk.cpp:
626 (WebCore::contextMenuItemVector):
627 * platform/gtk/ContextMenuItemGtk.cpp:
628 (WebCore::ContextMenuItem::ContextMenuItem):
629 (WebCore::ContextMenuItem::checked):
630 (WebCore::ContextMenuItem::enabled):
631 * platform/network/soup/AuthenticationChallenge.h:
632 (WebCore::AuthenticationChallenge::authenticationClient):
634 2011-01-08 Helder Correia <helder@sencha.com>
636 Reviewed by Simon Fraser.
638 Shadow is not drawn when filling a path with a gradient
639 https://bugs.webkit.org/show_bug.cgi?id=51982
641 This happens in CG and is related to bug 51869, this time to be fixed
642 in GraphicsContext::fillPath(const Path& path). We need to draw the
643 gradient clipped to the path on a CGLayer first, and then draw the
644 layer on the GraphicsContext.
646 Test: fast/canvas/canvas-fillPath-gradient-shadow.html
648 * platform/graphics/cg/GraphicsContextCG.cpp:
649 (WebCore::GraphicsContext::fillPath):
651 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
653 Reviewed by Kenneth Rohde Christiansen.
655 [Qt] PasteboardQt.cpp has coding-style errors
656 https://bugs.webkit.org/show_bug.cgi?id=39771
658 Update the code to follow the coding style.
660 * platform/qt/PasteboardQt.cpp:
661 (WebCore::Pasteboard::writeSelection):
662 (WebCore::Pasteboard::plainText):
663 (WebCore::Pasteboard::writePlainText):
664 (WebCore::Pasteboard::writeURL):
666 2011-01-08 Tony Gentilcore <tonyg@chromium.org>
668 Reviewed by Eric Seidel.
670 HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
671 https://bugs.webkit.org/show_bug.cgi?id=48593
673 XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
676 Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
678 * dom/StyleElement.cpp:
679 (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
680 (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
682 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
684 Reviewed by Kenneth Rohde Christiansen.
686 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
687 https://bugs.webkit.org/show_bug.cgi?id=52081
689 Test for the availability of cookie jar to return if cookies are enabled or not. The network access
690 manager always exist, not the cookie jar.
692 * platform/qt/CookieJarQt.cpp:
693 (WebCore::cookiesEnabled):
695 2011-01-08 Charlie Reis <creis@chromium.org>
697 Reviewed by Mihai Parparita.
699 Canceled frame loads can corrupt back forward list
700 https://bugs.webkit.org/show_bug.cgi?id=50254
702 Avoids changing m_currentItem until the navigation commits.
703 Also resets top-level history items if a subframe navigation is canceled.
705 * WebCore/loader/FrameLoader.cpp:
706 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
707 * WebCore/loader/HistoryController.cpp:
708 * WebCore/loader/HistoryController.h:
710 2011-01-08 Chang Shu <chang.shu@nokia.com>
712 Reviewed by Kenneth Rohde Christiansen.
714 Support createTouchList with Touch list for test automation.
715 Implemented JS/V8 custom functions for createTouchList.
716 https://bugs.webkit.org/show_bug.cgi?id=51196
718 * bindings/js/JSDocumentCustom.cpp:
719 (WebCore::JSDocument::createTouchList):
720 * bindings/v8/custom/V8DocumentCustom.cpp:
721 (WebCore::V8Document::createTouchListCallback):
723 * dom/TouchEvent.cpp:
724 (WebCore::TouchEvent::initTouchEvent):
726 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
728 Reviewed by Kenneth Rohde Christiansen.
730 [Qt] CookieJarQt.cpp has coding-style errors
731 https://bugs.webkit.org/show_bug.cgi?id=39778
733 Improve the coding style of CookieJarQt.cpp.
735 * platform/qt/CookieJarQt.cpp:
736 (WebCore::networkAccessManager):
737 (WebCore::cookiesEnabled):
739 2011-01-08 Jeff Miller <jeffm@apple.com>
741 Rubber-stamped by Dan Bernstein.
743 Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
744 https://bugs.webkit.org/show_bug.cgi?id=52114
746 * WebCore.vcproj/QTMovieWin.vcproj:
747 Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
749 2011-01-08 Dirk Schulze <krit@webkit.org>
751 Reviewed by Mihai Parparita.
753 SVG rendering clean up according to the webkit style rules 2
754 https://bugs.webkit.org/show_bug.cgi?id=52112
756 Modified the style of the license of all files in WebCore/rendering/svg to match the style
757 in WebCore/svg. Cleaned up the code according to the webkit style rules.
759 No change of functionality. No test added.
761 * rendering/svg/RenderSVGInline.cpp:
762 * rendering/svg/RenderSVGInline.h:
763 * rendering/svg/RenderSVGInlineText.cpp:
764 * rendering/svg/RenderSVGInlineText.h:
765 * rendering/svg/RenderSVGPath.cpp:
766 * rendering/svg/RenderSVGPath.h:
767 * rendering/svg/RenderSVGTSpan.cpp:
768 * rendering/svg/RenderSVGTSpan.h:
769 * rendering/svg/RenderSVGText.cpp:
770 * rendering/svg/RenderSVGText.h:
771 * rendering/svg/RenderSVGTextPath.cpp:
772 * rendering/svg/RenderSVGTextPath.h:
773 * rendering/svg/SVGInlineFlowBox.cpp:
774 * rendering/svg/SVGInlineFlowBox.h:
775 * rendering/svg/SVGInlineTextBox.cpp:
776 * rendering/svg/SVGInlineTextBox.h:
777 * rendering/svg/SVGRootInlineBox.cpp:
778 * rendering/svg/SVGRootInlineBox.h:
779 * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
780 (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
781 * rendering/svg/SVGTextQuery.cpp:
782 * rendering/svg/SVGTextQuery.h:
784 2011-01-08 Dirk Schulze <krit@webkit.org>
786 Reviewed by Mihai Parparita.
788 SVG rendering clean up according to the webkit style rules
789 https://bugs.webkit.org/show_bug.cgi?id=52107
791 Cleanup of the SVG rendering code according to the webbkit style rules.
792 Changed style of licensing texts to match the style in WebCore/svg, no change
793 of the licensing text itself.
795 * rendering/RenderForeignObject.cpp:
796 * rendering/RenderForeignObject.h:
797 * rendering/RenderSVGBlock.cpp:
798 * rendering/RenderSVGBlock.h:
799 * rendering/RenderSVGContainer.cpp:
800 * rendering/RenderSVGContainer.h:
801 * rendering/RenderSVGGradientStop.cpp:
802 * rendering/RenderSVGGradientStop.h:
803 * rendering/RenderSVGHiddenContainer.cpp:
804 * rendering/RenderSVGHiddenContainer.h:
805 (WebCore::RenderSVGHiddenContainer::renderName):
806 (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
807 (WebCore::RenderSVGHiddenContainer::requiresLayer):
808 (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
809 * rendering/RenderSVGImage.cpp:
810 * rendering/RenderSVGImage.h:
811 * rendering/RenderSVGModelObject.h:
812 * rendering/RenderSVGResource.cpp:
813 * rendering/RenderSVGResource.h:
814 * rendering/RenderSVGResourceClipper.cpp:
815 * rendering/RenderSVGResourceClipper.h:
816 * rendering/RenderSVGResourceContainer.cpp:
817 * rendering/RenderSVGResourceContainer.h:
818 * rendering/RenderSVGResourceFilter.cpp:
819 * rendering/RenderSVGResourceFilter.h:
820 * rendering/RenderSVGResourceFilterPrimitive.cpp:
821 * rendering/RenderSVGResourceFilterPrimitive.h:
822 * rendering/RenderSVGResourceGradient.cpp:
823 * rendering/RenderSVGResourceGradient.h:
824 * rendering/RenderSVGResourceLinearGradient.cpp:
825 * rendering/RenderSVGResourceLinearGradient.h:
826 * rendering/RenderSVGResourceMarker.cpp:
827 * rendering/RenderSVGResourceMarker.h:
828 * rendering/RenderSVGResourceMasker.cpp:
829 * rendering/RenderSVGResourceMasker.h:
830 * rendering/RenderSVGResourcePattern.cpp:
831 * rendering/RenderSVGResourcePattern.h:
832 * rendering/RenderSVGResourceRadialGradient.cpp:
833 * rendering/RenderSVGResourceRadialGradient.h:
834 * rendering/RenderSVGResourceSolidColor.cpp:
835 * rendering/RenderSVGResourceSolidColor.h:
836 * rendering/RenderSVGRoot.cpp:
837 (WebCore::RenderSVGRoot::nodeAtPoint):
838 * rendering/RenderSVGRoot.h:
839 * rendering/RenderSVGShadowTreeRootContainer.cpp:
840 * rendering/RenderSVGShadowTreeRootContainer.h:
841 * rendering/RenderSVGTransformableContainer.cpp:
842 (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
843 * rendering/RenderSVGTransformableContainer.h:
844 (WebCore::RenderSVGTransformableContainer::localToParentTransform):
845 (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
846 (WebCore::RenderSVGTransformableContainer::localTransform):
847 * rendering/RenderSVGViewportContainer.cpp:
848 * rendering/RenderSVGViewportContainer.h:
849 * rendering/SVGImageBufferTools.cpp:
850 * rendering/SVGImageBufferTools.h:
851 * rendering/SVGMarkerData.h:
852 * rendering/SVGMarkerLayoutInfo.cpp:
853 * rendering/SVGMarkerLayoutInfo.h:
854 * rendering/SVGRenderSupport.cpp:
855 * rendering/SVGRenderSupport.h:
856 * rendering/SVGRenderTreeAsText.cpp:
857 (WebCore::operator<<):
858 * rendering/SVGRenderTreeAsText.h:
859 * rendering/SVGResources.cpp:
860 * rendering/SVGResources.h:
861 * rendering/SVGResourcesCache.cpp:
862 * rendering/SVGResourcesCache.h:
863 * rendering/SVGResourcesCycleSolver.cpp:
864 * rendering/SVGResourcesCycleSolver.h:
865 * rendering/SVGShadowTreeElements.cpp:
866 * rendering/SVGShadowTreeElements.h:
868 2011-01-07 Adam Barth <abarth@webkit.org>
870 Rubber-stamped by Eric Seidel.
872 Move WebCore to Source
873 https://bugs.webkit.org/show_bug.cgi?id=52050
875 Update project files to understand WebCore's new location. I suspect
876 there will be some follow-up patches after we land this patch.
878 * Android.derived.jscbindings.mk:
879 * Android.jscbindings.mk:
880 * Android.v8bindings.mk:
882 * WebCore.gyp/WebCore.gyp:
885 * WebCore.vcproj/WebCore.vcproj:
886 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
887 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
889 2011-01-07 Justin Garcia <justin.garcia@apple.com>
891 Reviewed by Dan Bernstein.
893 https://bugs.webkit.org/show_bug.cgi?id=51851
894 Implement RenderSVGInlineText::localCaretRect()
896 * rendering/svg/RenderSVGInlineText.cpp:
897 (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
899 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
901 Unreviewed; Added the missing null pointer check for r75293.
904 (WebCore::Document::adoptNode):
906 2011-01-07 Stephanie Lewis <slewis@apple.com>
908 Reviewed by Geoff Garen.
910 <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
911 https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
913 Add a sampler for printing off process memory statistics.
918 2011-01-06 Ryosuke Niwa <rniwa@webkit.org>
920 Reviewed by Adam Barth.
922 onbeforeunload is broken for framesets
923 https://bugs.webkit.org/show_bug.cgi?id=19418
925 Added beforeunload event support for sub frames. WebKit's implementation tries to match
926 that of Internet Explorer as much as possible. beforeunload event is fired for each and
927 every descendent of a frame that is about to navigate.
929 When a value other than null is returned by a beforeunload handler, a confirmation dialog
930 is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
933 In addition, navigation is forbidden while beforeunload handlers are being called.
934 Setting values to location.href, location.reload, and other means of navigations are thus
935 ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
937 Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
938 NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
940 Tests: fast/events/before-unload-adopt-subframe-to-outside.html
941 fast/events/before-unload-adopt-within-subframes.html
942 fast/events/before-unload-forbidden-navigation.html
943 fast/events/before-unload-in-multiple-subframes.html
944 fast/events/before-unload-in-subframe.html
945 fast/events/before-unload-javascript-navigation.html
946 fast/events/before-unload-remove-and-add-subframe.html
947 fact/events/before-unload-remove-itself.html
948 fast/events/before-unload-with-subframes.html
950 * loader/FrameLoader.cpp:
951 (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
952 descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
953 (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
954 chrome's runBeforeUnloadConfirmPanel as needed.
955 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
956 * loader/FrameLoader.h:
957 * loader/NavigationScheduler.cpp:
958 (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
959 NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
960 (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
961 (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
962 (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
963 (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
964 * loader/NavigationScheduler.h:
965 (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
966 (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
967 when called on the last instance of NavigationDisablerForBeforeUnload.
968 (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
969 of NavigationDisablerForBeforeUnload left on the stack.
971 2011-01-07 Martin Robinson <mrobinson@igalia.com>
975 * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
976 * rendering/RenderFullScreen.cpp:
977 (RenderFullScreen::setAnimating): Guard the call to contentChanged
978 with ENABLED(ACCELERATED_COMPOSITING).
980 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
982 Unreviewed; speculative fix for Windows debug build.
984 * bindings/js/JSBindingsAllInOne.cpp:
986 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
988 Reviewed by Ojan Vafai.
990 Adopting an iframe to a child frame results in stack overflow
991 https://bugs.webkit.org/show_bug.cgi?id=52018
993 Throws an exception when a document adopts an iframe that is an ancestor
994 of the document in the frame hierarchy. New behavior matches that of Firefox.
996 Test: fast/html/adopt-parent-frame.html
999 (WebCore::Document::adoptNode):
1001 2011-01-07 Mihai Parparita <mihaip@chromium.org>
1003 Reviewed by Darin Fisher.
1005 [Chromium] Scrollbar code cleanup
1006 https://bugs.webkit.org/show_bug.cgi?id=52073
1008 Scrollbar code cleanup:
1009 - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
1010 ScrollbarThemeChromiumMac.{mm|h}
1011 - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
1012 WebThemeEngine is permanent
1013 - Fix typo in Linux scrollbar enum name
1015 No new tests (compiles).
1018 * platform/chromium/ChromiumBridge.h:
1019 * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
1020 (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
1021 * platform/chromium/ScrollbarThemeChromiumMac.mm:
1022 (WebCore::scrollbarStateToThemeState):
1023 (WebCore::ScrollbarThemeChromiumMac::paint):
1025 2011-01-07 Jer Noble <jer.noble@apple.com>
1027 GTK Linux build fix: isDocumentRunningFullScreenAnimation should
1028 be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
1030 * page/FrameView.cpp:
1032 2011-01-07 Rafael Weinstein <rafaelw@chromium.org>
1034 Reviewed by Eric Seidel.
1036 Cleanup: Fold shadowParentNode into shadowHost
1037 https://bugs.webkit.org/show_bug.cgi?id=51059
1039 Replaces all uses of shadowParentNode.
1041 No new tests because no behavior has changed.
1043 * css/CSSStyleSelector.cpp:
1044 (WebCore::CSSStyleSelector::initForStyleResolve):
1046 (WebCore::Node::shadowHost):
1047 (WebCore::Node::shadowAncestorNode):
1048 (WebCore::eventTargetRespectingSVGTargetRules):
1049 (WebCore::Node::getEventAncestors):
1051 * editing/Editor.cpp:
1052 (WebCore::Editor::findString):
1053 * page/DragController.cpp:
1054 (WebCore::asFileInput):
1055 * page/EventHandler.cpp:
1056 (WebCore::EventHandler::handleMousePressEvent):
1057 (WebCore::instanceAssociatedWithShadowTreeElement):
1058 (WebCore::EventHandler::dispatchMouseEvent):
1059 * rendering/RenderBlock.cpp:
1060 (WebCore::RenderBlock::hasLineIfEmpty):
1061 * rendering/RenderSVGShadowTreeRootContainer.cpp:
1062 (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
1063 * svg/SVGStyledElement.cpp:
1064 (WebCore::SVGStyledElement::title):
1066 2011-01-07 Chris Marrin <cmarrin@apple.com>
1070 I mistakenly included a Windows only file in a
1071 cross platform file.
1073 * platform/graphics/ca/GraphicsLayerCA.cpp:
1075 2011-01-07 Chris Marrin <cmarrin@apple.com>
1079 Get rid of include of <QuartzCore/QuartzCore.h>
1081 * platform/graphics/ca/GraphicsLayerCA.cpp:
1083 2011-01-07 Jer Noble <jer.noble@apple.com>
1085 Further build fixes. Add a ENABLE(FULLSCREEN_API) guard around
1086 the implementation of requiresCompositingfForFullScreen.
1088 * rendering/RenderLayerCompositor.cpp:
1089 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
1091 2011-01-07 Jer Noble <jer.noble@apple.com>
1093 No review, build fix only. Removed parameter who was causing
1094 a warning in Release builds.
1097 (WebCore::Document::webkitDidExitFullScreenForElement):
1099 2011-01-07 Chris Marrin <cmarrin@apple.com>
1103 Use new wkCACFLayerGetContextUserData function
1105 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1107 2011-01-07 James Robinson <jamesr@chromium.org>
1109 Fix compile bustage due to bad merge in 75276.
1111 * page/animation/AnimationController.cpp:
1112 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1114 2010-12-17 Jer Noble <jer@kokode.apple.com>
1116 Reviewed by Simon Fraser.
1118 Implement WebKit Full Screen support.
1119 https://bugs.webkit.org/show_bug.cgi?id=49481
1120 rdar://problem/8247444
1122 Mark for export all those WebCore functions needed by WebFullscreenController.
1126 2010-12-17 Jer Noble <jer@kokode.apple.com>
1128 Reviewed by Simon Fraser.
1130 Implement WebKit Full Screen support.
1131 https://bugs.webkit.org/show_bug.cgi?id=49481
1132 rdar://problem/8247444
1134 screenRect is useful for more than just HTMLMediaElements. Promote it into
1137 * dom/Element.cpp: Moved into Element from HTMLMediaElement.
1138 * dom/Element.h: Ditto.
1140 * html/HTMLMediaElement.cpp: Moved screenRect into Element.
1141 * html/HTMLMediaElement.h: Ditto.
1142 * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
1144 2010-12-17 Jer Noble <jer@kokode.apple.com>
1146 Reviewed by Simon Fraser.
1148 Implement WebKit Full Screen support.
1149 https://bugs.webkit.org/show_bug.cgi?id=49481
1150 rdar://problem/8247444
1152 The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
1153 be rendered outside its original Frame. Because of this, there are a few areas of the
1154 rendering code which need to be special cased: RenderFullScreen layers should not be clipped
1155 to the viewport, as they will almost always be rendering outside the viewport area;
1156 RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
1157 the client will likely want to reparent the platformLayer into their own fullscreen platform
1158 window; the FrameView must update the RenderFullScreen graphics layer tree separately from
1159 the root layer, as the two trees are disconnected.
1161 * page/FrameView.cpp:
1162 (WebCore::FrameView::updateCompositingLayers): Special treatment for fullscreen renderer.
1163 (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
1164 (WebCore::FrameView::paintContents): Ditto.
1165 * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
1166 * rendering/RenderLayer.cpp:
1167 (WebCore::RenderLayer::contentChanged): Add support for above.
1168 * rendering/RenderLayerBacking.cpp:
1169 (WebCore::layerOrAncestorIsFullScreen): New function.
1170 (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
1171 * rendering/RenderLayerCompositor.cpp:
1172 (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
1173 (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
1174 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
1175 * rendering/RenderLayerCompositor.h:
1177 2010-12-17 Jer Noble <jer@kokode.apple.com>
1179 Reviewed by Simon Fraser.
1181 Implemented non-accelerated fullscreen support. The Document will now vend a RenderFullScreen object for clients to
1182 use to relocate the fullscreen element subtree.
1184 https://bugs.webkit.org/show_bug.cgi?id=49481
1185 rdar://problem/8247444
1187 * css/CSSStyleSelector.cpp:
1188 (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
1189 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
1191 (WebCore::Document::Document): Initialize m_fullScreenRenderer.
1192 (WebCore::Document::detach): Call setFullScreenRenderer(0).
1193 (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
1194 (WebCore::Document::webkitWillEnterFullScreenForElement): Detach the fullscreen element to cause
1195 a new RenderFullScreen renderer to be created with the new fullscreen element.
1196 (WebCore::Document::webkitDidEnterFullScreenForElement): Notify clients of a fullscreen change
1197 here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
1198 to webkitfullscreenchange events.
1199 (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
1200 (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
1201 (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
1202 (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
1203 size; this keeps clients from having to access the renderer's style directly.
1204 (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
1206 (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
1207 (WebCore::Document::fullScreenRenderer): Accessor.
1210 (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
1211 object to insert between the fullscreen element and its parent.
1212 * page/ChromeClient.h:
1213 (WebCore::ChromeClient::fullScreenRendererChanged): Added.
1214 * rendering/MediaControlElements.cpp:
1215 (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
1217 2010-12-17 Jer Noble <jer@kokode.apple.com>
1219 Reviewed by Simon Fraser.
1221 Implement WebKit Full Screen support.
1222 https://bugs.webkit.org/show_bug.cgi?id=49481
1223 rdar://problem/8247444
1225 This patch introduces a new RenderObject type: RenderFullScreen. The RenderFullScreen renderer
1226 will be used to implement new FullScreen APIs. Because the RenderFullScreen object will be the
1227 parent of the current fullscreen element, the style rules for fullscreen objects must change to
1230 * WebCore.xcodeproj/project.pbxproj:
1231 * rendering/RenderFullScreen.cpp: Added.
1232 (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
1233 (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
1234 for RenderFullScreen objects.
1235 * rendering/RenderFullScreen.h: Added.
1236 (WebCore::RenderFullScreen::isRenderFullScreen): Added. Overrides the RenderObject version.
1237 * rendering/RenderObject.h:
1238 (WebCore::RenderObject::isRenderFullScreen): Added. Used for type-checking RenderFullScreen objects.
1239 * css/fullscreen.css: Modified the contained fullscreen styles.
1242 2011-01-07 James Robinson <jamesr@chromium.org>
1244 Revert "Implement mozilla's animationTime property"
1245 https://bugs.webkit.org/show_bug.cgi?id=51952
1247 This approach isn't quite right.
1255 * WebCore.vcproj/WebCore.vcproj:
1256 * WebCore.xcodeproj/project.pbxproj:
1257 * page/DOMWindow.cpp:
1259 * page/DOMWindow.idl:
1263 (WebCore::Page::Page):
1265 * page/animation/AnimationController.cpp:
1266 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1267 * page/animation/AnimationTimeController.cpp: Removed.
1268 * page/animation/AnimationTimeController.h: Removed.
1270 2011-01-07 Jan Erik Hanssen <jhanssen@sencha.com>
1272 Reviewed by Andreas Kling.
1274 [Qt] Black text on black buttons using a dark theme
1275 https://bugs.webkit.org/show_bug.cgi?id=35024
1277 Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
1279 * platform/qt/RenderThemeQt.cpp:
1280 (WebCore::RenderThemeQt::systemColor):
1281 * platform/qt/RenderThemeQt.h:
1283 2011-01-05 Adrienne Walker <enne@google.com>
1285 Reviewed by Kenneth Russell.
1287 Add WEBKIT_lose_context WebGL extension.
1288 https://bugs.webkit.org/show_bug.cgi?id=51492
1290 Tests: fast/canvas/webgl/context-lost-restored.html
1291 fast/canvas/webgl/context-lost.html
1294 * DerivedSources.make:
1299 * WebCore.xcodeproj/project.pbxproj:
1300 * bindings/js/JSWebGLRenderingContextCustom.cpp:
1302 (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
1303 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1304 (WebCore::toV8Object):
1305 (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
1306 * html/canvas/WebGLExtension.h:
1307 * html/canvas/WebGLRenderingContext.cpp:
1308 (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
1309 (WebCore::WebGLRenderingContext::getExtension):
1310 (WebCore::WebGLRenderingContext::getSupportedExtensions):
1311 (WebCore::WebGLRenderingContext::forceLostContext):
1312 (WebCore::WebGLRenderingContext::onLostContext):
1313 (WebCore::WebGLRenderingContext::getNumberOfExtensions):
1314 (WebCore::WebGLRenderingContext::getExtensionNumber):
1315 * html/canvas/WebGLRenderingContext.h:
1316 * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
1317 (WebCore::WebKitLoseContext::WebKitLoseContext):
1318 (WebCore::WebKitLoseContext::~WebKitLoseContext):
1319 (WebCore::WebKitLoseContext::getName):
1320 (WebCore::WebKitLoseContext::create):
1321 (WebCore::WebKitLoseContext::loseContext):
1322 * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
1323 * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
1325 2011-01-07 Chris Marrin <cmarrin@apple.com>
1329 Build fix for Chromium. Missing include.
1331 * page/animation/AnimationBase.cpp:
1333 2011-01-07 Chris Marrin <cmarrin@apple.com>
1339 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1341 2011-01-06 Gavin Barraclough <barraclough@apple.com>
1343 Reviewed by Geoff Garen.
1345 Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
1347 The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
1348 destructor early, in order to release wrappers once we know we no longer intend to use them.
1349 Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
1350 lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
1351 A sequence of events that triggers the bug would look like this:
1353 (1) Create a DOMWrapperWorld.
1354 (2) Register a timer in the world.
1355 (3) Call unregisterWorld() on the world.
1356 (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
1357 (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
1358 called forgetWorld() none exists.
1359 (6) Attempt to add a wrapper to a NULL map.
1361 Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
1364 * bindings/js/DOMWrapperWorld.cpp:
1365 (WebCore::DOMWrapperWorld::DOMWrapperWorld):
1366 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1367 (WebCore::DOMWrapperWorld::clearWrappers):
1368 * bindings/js/DOMWrapperWorld.h:
1370 2011-01-07 Chris Marrin <cmarrin@apple.com>
1372 Rubber-stamped by Simon Fraser.
1374 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1375 https://bugs.webkit.org/show_bug.cgi?id=49388
1377 Final step in unifying GraphicsLayer logic across Win and Mac. This
1378 implements the Windows side classes for PlatformCALayer and supporting
1379 classes. Also changed MediaPlayer to use new PlatformCALayerClient
1380 so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
1381 WKCACFLayerRenderer now does the task of notifying animations of their
1382 start time. Also commented out an assert in AnimationBase because
1383 AnimationController's frame time is not in sync with the new
1384 AnimationTimeController. I've opened a new bug for that issue:
1386 https://bugs.webkit.org/show_bug.cgi?id=52037
1388 This also includes the Mac side changes backed out in
1389 http://trac.webkit.org/changeset/75227.
1391 * WebCore.vcproj/WebCore.vcproj:
1392 * WebCore.vcproj/WebCoreCommon.vsprops:
1393 * WebCore.vcproj/copyForwardingHeaders.cmd:
1394 * WebCore.xcodeproj/project.pbxproj:
1396 * page/animation/AnimationBase.cpp:
1397 (WebCore::AnimationBase::freezeAtTime):
1398 (WebCore::AnimationBase::getElapsedTime):
1399 * page/animation/AnimationController.cpp:
1400 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1401 * page/animation/KeyframeAnimation.cpp:
1402 (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
1403 * platform/graphics/GraphicsLayer.h:
1404 (WebCore::GraphicsLayer::layerDidDisplay):
1405 (WebCore::GraphicsLayer::showDebugBorders):
1406 (WebCore::GraphicsLayer::showRepaintCounter):
1407 * platform/graphics/ca/GraphicsLayerCA.cpp:
1408 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
1409 (WebCore::GraphicsLayerCA::setContentsToImage):
1410 (WebCore::GraphicsLayerCA::setContentsToMedia):
1411 (WebCore::GraphicsLayerCA::layerDidDisplay):
1412 (WebCore::GraphicsLayerCA::updateSublayerList):
1413 * platform/graphics/ca/GraphicsLayerCA.h:
1414 (WebCore::GraphicsLayerCA::platformCALayer):
1415 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
1416 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
1417 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
1418 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
1419 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
1420 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
1421 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
1422 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
1423 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
1424 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
1425 * platform/graphics/ca/PlatformCAAnimation.h:
1426 * platform/graphics/ca/PlatformCALayer.h:
1427 (WebCore::PlatformCALayer::owner):
1428 (WebCore::PlatformCALayer::animationStarted):
1429 * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
1430 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1431 (PlatformCALayer::setOwner):
1432 (PlatformCALayer::create):
1433 (PlatformCALayer::PlatformCALayer):
1434 (PlatformCALayer::contents):
1435 (PlatformCALayer::setContents):
1436 * platform/graphics/ca/win: Added.
1437 * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
1438 * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
1439 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
1440 * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
1441 (WebCore::PlatformCALayerWinInternal::owner):
1442 * platform/graphics/mac/WebGLLayer.mm:
1443 (-[WebGLLayer display]):
1444 * platform/graphics/mac/WebLayer.h:
1445 * platform/graphics/mac/WebLayer.mm:
1446 (drawLayerContents):
1447 (setLayerNeedsDisplayInRect):
1448 (-[WebLayer setNeedsDisplay]):
1449 (-[WebLayer display]):
1450 * platform/graphics/mac/WebTiledLayer.mm:
1451 (-[WebTiledLayer setNeedsDisplay]):
1452 (-[WebTiledLayer display]):
1453 * platform/graphics/win/GraphicsContextCGWin.cpp:
1454 (WebCore::CGContextWithHDC):
1455 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
1456 (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
1457 (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
1458 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
1459 (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
1460 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1461 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
1462 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
1463 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
1464 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
1465 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
1466 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
1467 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
1468 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
1469 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
1470 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
1471 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
1472 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
1473 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
1474 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
1475 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
1476 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
1477 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1478 * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1479 (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
1480 (WebCore::MediaPlayerPrivate::createLayerForMovie):
1481 * platform/graphics/win/WKCACFLayerRenderer.cpp:
1482 (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
1483 (WebCore::WKCACFLayerRenderer::rootLayer):
1484 (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
1485 (WebCore::WKCACFLayerRenderer::setRootChildLayer):
1486 (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
1487 (WebCore::WKCACFLayerRenderer::destroyRenderer):
1488 (WebCore::WKCACFLayerRenderer::render):
1489 * platform/graphics/win/WKCACFLayerRenderer.h:
1490 (WebCore::WKCACFLayerRendererClient::animationsStarted):
1491 (WebCore::WKCACFLayerRendererClient::syncCompositingState):
1492 * rendering/RenderLayerBacking.cpp:
1493 (WebCore::RenderLayerBacking::showDebugBorders):
1494 (WebCore::RenderLayerBacking::showRepaintCounter):
1495 * rendering/RenderLayerCompositor.cpp:
1496 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
1497 * rendering/RenderLayerCompositor.h:
1498 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
1499 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
1500 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
1501 (WebCore::RenderLayerCompositor::notifySyncRequired):
1502 (WebCore::RenderLayerCompositor::paintContents):
1503 (WebCore::RenderLayerCompositor::showDebugBorders):
1504 (WebCore::RenderLayerCompositor::showRepaintCounter):
1506 2011-01-07 Nate Chapin <japhet@chromium.org>
1508 Reviewed by Darin Fisher.
1510 Let PingLoader send cookies if FrameLoaderClient permits it.
1511 https://bugs.webkit.org/show_bug.cgi?id=51898
1513 Test: http/tests/navigation/ping-cookie.html
1515 * loader/PingLoader.cpp:
1516 (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
1517 at load start time, since we won't be able to call
1518 FrameLoaderClient::shouldUseCredentialStorage() later.
1519 * loader/PingLoader.h:
1520 (WebCore::PingLoader::shouldUseCredentialStorage):
1522 2011-01-07 Xan Lopez <xlopez@igalia.com>
1524 Unreviewed, rolling out r75256.
1525 http://trac.webkit.org/changeset/75256
1526 https://bugs.webkit.org/show_bug.cgi?id=50869
1528 Broke GTK+ canvas tests
1530 * platform/graphics/cairo/PathCairo.cpp:
1531 (WebCore::Path::addArc):
1533 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1535 Reviewed by Martin Robinson.
1537 [GTK] Port scrollbar painting to GtkStyleContext
1538 https://bugs.webkit.org/show_bug.cgi?id=52051
1540 Use GtkStyleContext API to paint scrollbars when building with
1543 No new tests. This should not change functionality.
1545 * platform/gtk/RenderThemeGtk.h:
1546 * platform/gtk/RenderThemeGtk3.cpp:
1547 (WebCore::RenderThemeGtk::gtkScrollbarStyle):
1548 * platform/gtk/ScrollbarThemeGtk.cpp:
1549 * platform/gtk/ScrollbarThemeGtk.h:
1550 * platform/gtk/ScrollbarThemeGtk2.cpp:
1551 (WebCore::gtkStyleSetCallback):
1552 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1553 * platform/gtk/ScrollbarThemeGtk3.cpp:
1554 (WebCore::gtkStyleChangedCallback):
1555 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1556 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
1557 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
1558 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
1559 (WebCore::ScrollbarThemeGtk::paintThumb):
1560 (WebCore::ScrollbarThemeGtk::paintButton):
1562 2011-01-07 Dan Bernstein <mitz@apple.com>
1564 Reviewed by Darin Adler.
1566 <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
1567 https://bugs.webkit.org/show_bug.cgi?id=51267
1569 Test: fast/text/emphasis-avoid-ruby.html
1571 * rendering/InlineFlowBox.cpp:
1572 (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
1573 there are text emphasis marks.
1574 (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
1575 (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
1576 * rendering/InlineTextBox.cpp:
1577 (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
1578 position if the text is style with emphasis marks and there isn’t a ruby annotation that should
1579 suppress them. Otherwise returns false.
1580 (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
1582 * rendering/InlineTextBox.h:
1584 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1586 Reviewed by Martin Robinson.
1588 [cairo] Rendering a lot of arcs on top of each other causes time
1590 https://bugs.webkit.org/show_bug.cgi?id=50869
1592 We avoid the situation where we have to render the same arc
1593 multiple times over itself. Now it renders just one oval and
1594 moves to the end angle.
1596 * platform/graphics/cairo/PathCairo.cpp:
1597 (WebCore::Path::addArc):
1599 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1601 Reviewed by Martin Robinson.
1603 [GTK] Port buttons painting to GtkStyleContext
1604 https://bugs.webkit.org/show_bug.cgi?id=51812
1606 Use GtkStyleContext API to paint buttons when building with GTK+
1609 No new tests. This should not change functionality.
1611 * platform/gtk/RenderThemeGtk3.cpp:
1612 (WebCore::adjustRectForFocus):
1613 (WebCore::RenderThemeGtk::adjustRepaintRect):
1614 (WebCore::RenderThemeGtk::paintButton):
1616 2011-01-07 Zhenyao Mo <zmo@google.com>
1618 Unreviewed, build fix.
1620 * html/canvas/WebGLRenderingContext.cpp:
1621 (WebCore::WebGLRenderingContext::copyTexSubImage2D):
1623 2011-01-06 Zhenyao Mo <zmo@google.com>
1625 Reviewed by Kenneth Russell.
1627 copyTexSubImage2D shouldn't have undefined pixels
1628 https://bugs.webkit.org/show_bug.cgi?id=51559
1630 * html/canvas/WebGLRenderingContext.cpp:
1631 (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
1632 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
1633 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
1634 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
1635 * html/canvas/WebGLRenderingContext.h:
1636 * html/canvas/WebGLTexture.cpp:
1637 (WebCore::WebGLTexture::getType): Expose the type of a texture.
1638 * html/canvas/WebGLTexture.h:
1640 2011-01-07 Takashi Toyoshima <toyoshim@google.com>
1642 Reviewed by Kenneth Russell.
1644 cleanupAfterGraphicsCall() is never called in
1645 WebGLRenderingContext::checkFramebufferStatus()
1646 https://bugs.webkit.org/show_bug.cgi?id=51668
1648 No new tests. This is a trivial bug.
1650 * html/canvas/WebGLRenderingContext.cpp:
1651 (WebCore::WebGLRenderingContext::checkFramebufferStatus):
1653 2011-01-07 Mario Sanchez Prada <msanchez@igalia.com>
1655 Reviewed by Chris Fleizach.
1657 GTK: AX: atk tests need to be updated after recent changes
1658 https://bugs.webkit.org/show_bug.cgi?id=51932
1660 Make sure we can always get the right accesssible parent for an
1661 AtkObject when traversing the hierarchy bottom up.
1663 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1664 (isRootObject): New function to check whether an
1665 AccessibilityObject is the root one or not, according to the
1666 latest changes in the hierarchy.
1667 (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
1668 GAIL as the parent of the root AtkObject from WebCore.
1669 (webkit_accessible_get_parent): Use atkParentOfRootObject.
1670 (webkit_accessible_get_index_in_parent): Ditto.
1671 (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
1672 AtkObject's of role ATK_ROLE_SCROLLED_PANE.
1674 2011-01-07 Zhenyao Mo <zmo@google.com>
1676 Unreviewed, Mac 32-bit build fix.
1677 Use float instead of double in GL function arguments to avoid implicit type down casting.
1679 * html/canvas/WebGLRenderingContext.cpp:
1680 (WebCore::WebGLRenderingContext::blendColor):
1681 (WebCore::WebGLRenderingContext::clearColor):
1682 (WebCore::WebGLRenderingContext::clearDepth):
1683 (WebCore::WebGLRenderingContext::depthRange):
1684 (WebCore::WebGLRenderingContext::lineWidth):
1685 (WebCore::WebGLRenderingContext::polygonOffset):
1686 (WebCore::WebGLRenderingContext::sampleCoverage):
1687 * html/canvas/WebGLRenderingContext.h:
1688 * html/canvas/WebGLRenderingContext.idl:
1690 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
1692 Reviewed by Xan Lopez.
1694 [GTK] Port slider painting to GtkStyleContext
1695 https://bugs.webkit.org/show_bug.cgi?id=51874
1697 Use GtkStyleContext API to paint sliders when building with GTK+
1698 3.x. Also move the code to adjust media slider to its own method
1699 in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
1701 No new tests. This should not change functionality.
1703 * platform/gtk/RenderThemeGtk.cpp:
1704 (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
1705 * platform/gtk/RenderThemeGtk.h:
1706 * platform/gtk/RenderThemeGtk2.cpp:
1707 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1708 * platform/gtk/RenderThemeGtk3.cpp:
1709 (WebCore::RenderThemeGtk::paintSliderTrack):
1710 (WebCore::RenderThemeGtk::paintSliderThumb):
1711 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1713 2011-01-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1715 Reviewed by Andreas Kling.
1717 [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
1718 https://bugs.webkit.org/show_bug.cgi?id=51992
1720 Add the missing header. CString is used in debug by the calls to LOG().
1722 * fileapi/FileReader.cpp:
1724 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1726 Reviewed by Martin Robinson.
1728 Cairo's ContextShadow may mis-render some box shadows
1729 https://bugs.webkit.org/show_bug.cgi?id=51374
1731 The space required for the internal shadow of the corners was not
1732 correctly considered.
1734 * platform/graphics/cairo/ContextShadowCairo.cpp:
1735 (WebCore::ContextShadow::drawRectShadow):
1737 2011-01-06 Adam Barth <abarth@webkit.org>
1739 Reviewed by Darin Adler.
1741 REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
1742 https://bugs.webkit.org/show_bug.cgi?id=52013
1744 When excluding line numbers for composite strings, we forgot to exclude
1745 the line number for the current string!
1747 Test: fast/parser/line-number-composite-segmented-string.html
1749 * platform/text/SegmentedString.cpp:
1750 (WebCore::SegmentedString::setExcludeLineNumbers):
1752 2011-01-06 Chris Marrin <cmarrin@apple.com>
1756 Back out changes in http://trac.webkit.org/changeset/75199
1757 This breaks the Windows build. Fixing it on that side. Until
1758 then I'll back this out.
1760 2011-01-06 Jenn Braithwaite <jennb@chromium.org>
1762 Reviewed by Dmitry Titov.
1764 When a live frame is moved between pages, some plug-in DOM methods cease to function
1765 https://bugs.webkit.org/show_bug.cgi?id=45770
1767 Test: fast/frames/iframe-reparenting-plugins.html
1770 (WebCore::Frame::~Frame):
1771 (WebCore::Frame::addObserver):
1772 (WebCore::Frame::removeObserver):
1774 (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
1775 Added observer to be notified when frame is destroyed.
1777 (WebCore::Page::~Page):
1778 (WebCore::Page::refreshPlugins):
1779 PluginData no longer stores page pointer.
1780 * plugins/DOMMimeType.cpp:
1781 (WebCore::DOMMimeType::DOMMimeType):
1782 (WebCore::DOMMimeType::~DOMMimeType):
1783 (WebCore::DOMMimeType::enabledPlugin):
1784 * plugins/DOMMimeType.h:
1785 (WebCore::DOMMimeType::create):
1786 (WebCore::DOMMimeType::frameDestroyed):
1787 Store frame instead of page pointer in DOMMimeType.
1788 * plugins/DOMMimeTypeArray.cpp:
1789 (WebCore::DOMMimeTypeArray::item):
1790 (WebCore::DOMMimeTypeArray::namedItem):
1791 Provide frame to create DOMMimeType.
1792 * plugins/DOMPlugin.cpp:
1793 (WebCore::DOMPlugin::DOMPlugin):
1794 (WebCore::DOMPlugin::~DOMPlugin):
1795 (WebCore::DOMPlugin::item):
1796 (WebCore::DOMPlugin::namedItem):
1797 * plugins/DOMPlugin.h:
1798 (WebCore::DOMPlugin::create):
1799 (WebCore::DOMPlugin::frameDestroyed):
1800 Store frame instead of page pointer in DOMPlugin.
1801 * plugins/DOMPluginArray.cpp:
1802 (WebCore::DOMPluginArray::item):
1803 (WebCore::DOMPluginArray::namedItem):
1804 Provide frame to create DOMPlugin.
1805 * plugins/PluginData.cpp:
1806 (WebCore::PluginData::PluginData):
1807 (WebCore::PluginData::initPlugins):
1808 * plugins/PluginData.h:
1809 No longer stores a pointer to the page.
1810 Added page parameter to initPlugins.
1811 * plugins/PluginDataNone.cpp:
1812 (WebCore::PluginData::initPlugins):
1813 * plugins/chromium/PluginDataChromium.cpp:
1814 (WebCore::PluginData::initPlugins):
1815 * plugins/gtk/PluginDataGtk.cpp:
1816 (WebCore::PluginData::initPlugins):
1817 * plugins/wx/PluginDataWx.cpp:
1818 (WebCore::PluginData::initPlugins):
1819 Updated platforms to add (unused) page parameter to initPlugins.
1821 2011-01-05 Zhenyao Mo <zmo@google.com>
1823 Reviewed by Kenneth Russell.
1825 Define GC3D types to match GL types and use them in GraphicsContext3D
1826 https://bugs.webkit.org/show_bug.cgi?id=45557
1828 * html/canvas/WebGLRenderingContext.cpp:
1829 (WebCore::WebGLRenderingContext::readPixels):
1830 (WebCore::WebGLRenderingContext::validateTexFuncData):
1831 * platform/graphics/GraphicsContext3D.cpp:
1832 (WebCore::GraphicsContext3D::texImage2DResourceSafe):
1833 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1834 (WebCore::GraphicsContext3D::extractImageData):
1835 (WebCore::GraphicsContext3D::extractTextureData):
1836 * platform/graphics/GraphicsContext3D.h:
1837 * platform/graphics/cg/GraphicsContext3DCG.cpp:
1838 (WebCore::GraphicsContext3D::getImageData):
1839 * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1840 (WebCore::SharedGraphicsContext3D::enable):
1841 (WebCore::SharedGraphicsContext3D::disable):
1842 (WebCore::SharedGraphicsContext3D::clear):
1843 (WebCore::SharedGraphicsContext3D::drawArrays):
1844 (WebCore::SharedGraphicsContext3D::getError):
1845 (WebCore::SharedGraphicsContext3D::getIntegerv):
1846 (WebCore::SharedGraphicsContext3D::createFramebuffer):
1847 (WebCore::SharedGraphicsContext3D::createTexture):
1848 (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
1849 (WebCore::SharedGraphicsContext3D::deleteTexture):
1850 (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
1851 (WebCore::SharedGraphicsContext3D::texParameteri):
1852 (WebCore::SharedGraphicsContext3D::texImage2D):
1853 (WebCore::SharedGraphicsContext3D::texSubImage2D):
1854 (WebCore::SharedGraphicsContext3D::readPixels):
1855 (WebCore::SharedGraphicsContext3D::setActiveTexture):
1856 (WebCore::SharedGraphicsContext3D::bindTexture):
1857 (WebCore::SharedGraphicsContext3D::bindFramebuffer):
1858 * platform/graphics/gpu/SharedGraphicsContext3D.h:
1859 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1860 (WebCore::GraphicsContext3D::activeTexture):
1861 (WebCore::GraphicsContext3D::attachShader):
1862 (WebCore::GraphicsContext3D::bindAttribLocation):
1863 (WebCore::GraphicsContext3D::bindBuffer):
1864 (WebCore::GraphicsContext3D::bindFramebuffer):
1865 (WebCore::GraphicsContext3D::bindRenderbuffer):
1866 (WebCore::GraphicsContext3D::bindTexture):
1867 (WebCore::GraphicsContext3D::blendColor):
1868 (WebCore::GraphicsContext3D::blendEquation):
1869 (WebCore::GraphicsContext3D::blendEquationSeparate):
1870 (WebCore::GraphicsContext3D::blendFunc):
1871 (WebCore::GraphicsContext3D::blendFuncSeparate):
1872 (WebCore::GraphicsContext3D::bufferData):
1873 (WebCore::GraphicsContext3D::bufferSubData):
1874 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1875 (WebCore::GraphicsContext3D::clearColor):
1876 (WebCore::GraphicsContext3D::clear):
1877 (WebCore::GraphicsContext3D::clearDepth):
1878 (WebCore::GraphicsContext3D::clearStencil):
1879 (WebCore::GraphicsContext3D::colorMask):
1880 (WebCore::GraphicsContext3D::compileShader):
1881 (WebCore::GraphicsContext3D::copyTexImage2D):
1882 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1883 (WebCore::GraphicsContext3D::cullFace):
1884 (WebCore::GraphicsContext3D::depthFunc):
1885 (WebCore::GraphicsContext3D::depthMask):
1886 (WebCore::GraphicsContext3D::depthRange):
1887 (WebCore::GraphicsContext3D::detachShader):
1888 (WebCore::GraphicsContext3D::disable):
1889 (WebCore::GraphicsContext3D::disableVertexAttribArray):
1890 (WebCore::GraphicsContext3D::drawArrays):
1891 (WebCore::GraphicsContext3D::drawElements):
1892 (WebCore::GraphicsContext3D::enable):
1893 (WebCore::GraphicsContext3D::enableVertexAttribArray):
1894 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1895 (WebCore::GraphicsContext3D::framebufferTexture2D):
1896 (WebCore::GraphicsContext3D::frontFace):
1897 (WebCore::GraphicsContext3D::generateMipmap):
1898 (WebCore::GraphicsContext3D::getActiveAttrib):
1899 (WebCore::GraphicsContext3D::getActiveUniform):
1900 (WebCore::GraphicsContext3D::getAttachedShaders):
1901 (WebCore::GraphicsContext3D::getAttribLocation):
1902 (WebCore::GraphicsContext3D::getError):
1903 (WebCore::GraphicsContext3D::getString):
1904 (WebCore::GraphicsContext3D::hint):
1905 (WebCore::GraphicsContext3D::isBuffer):
1906 (WebCore::GraphicsContext3D::isEnabled):
1907 (WebCore::GraphicsContext3D::isFramebuffer):
1908 (WebCore::GraphicsContext3D::isProgram):
1909 (WebCore::GraphicsContext3D::isRenderbuffer):
1910 (WebCore::GraphicsContext3D::isShader):
1911 (WebCore::GraphicsContext3D::isTexture):
1912 (WebCore::GraphicsContext3D::lineWidth):
1913 (WebCore::GraphicsContext3D::linkProgram):
1914 (WebCore::GraphicsContext3D::pixelStorei):
1915 (WebCore::GraphicsContext3D::polygonOffset):
1916 (WebCore::GraphicsContext3D::readPixels):
1917 (WebCore::GraphicsContext3D::renderbufferStorage):
1918 (WebCore::GraphicsContext3D::sampleCoverage):
1919 (WebCore::GraphicsContext3D::scissor):
1920 (WebCore::GraphicsContext3D::stencilFunc):
1921 (WebCore::GraphicsContext3D::stencilFuncSeparate):
1922 (WebCore::GraphicsContext3D::stencilMask):
1923 (WebCore::GraphicsContext3D::stencilMaskSeparate):
1924 (WebCore::GraphicsContext3D::stencilOp):
1925 (WebCore::GraphicsContext3D::stencilOpSeparate):
1926 (WebCore::GraphicsContext3D::texParameterf):
1927 (WebCore::GraphicsContext3D::texParameteri):
1928 (WebCore::GraphicsContext3D::uniform1f):
1929 (WebCore::GraphicsContext3D::uniform1fv):
1930 (WebCore::GraphicsContext3D::uniform2f):
1931 (WebCore::GraphicsContext3D::uniform2fv):
1932 (WebCore::GraphicsContext3D::uniform3f):
1933 (WebCore::GraphicsContext3D::uniform3fv):
1934 (WebCore::GraphicsContext3D::uniform4f):
1935 (WebCore::GraphicsContext3D::uniform4fv):
1936 (WebCore::GraphicsContext3D::uniform1i):
1937 (WebCore::GraphicsContext3D::uniform1iv):
1938 (WebCore::GraphicsContext3D::uniform2i):
1939 (WebCore::GraphicsContext3D::uniform2iv):
1940 (WebCore::GraphicsContext3D::uniform3i):
1941 (WebCore::GraphicsContext3D::uniform3iv):
1942 (WebCore::GraphicsContext3D::uniform4i):
1943 (WebCore::GraphicsContext3D::uniform4iv):
1944 (WebCore::GraphicsContext3D::uniformMatrix2fv):
1945 (WebCore::GraphicsContext3D::uniformMatrix3fv):
1946 (WebCore::GraphicsContext3D::uniformMatrix4fv):
1947 (WebCore::GraphicsContext3D::useProgram):
1948 (WebCore::GraphicsContext3D::validateProgram):
1949 (WebCore::GraphicsContext3D::vertexAttrib1f):
1950 (WebCore::GraphicsContext3D::vertexAttrib1fv):
1951 (WebCore::GraphicsContext3D::vertexAttrib2f):
1952 (WebCore::GraphicsContext3D::vertexAttrib2fv):
1953 (WebCore::GraphicsContext3D::vertexAttrib3f):
1954 (WebCore::GraphicsContext3D::vertexAttrib3fv):
1955 (WebCore::GraphicsContext3D::vertexAttrib4f):
1956 (WebCore::GraphicsContext3D::vertexAttrib4fv):
1957 (WebCore::GraphicsContext3D::vertexAttribPointer):
1958 (WebCore::GraphicsContext3D::viewport):
1959 (WebCore::GraphicsContext3D::getBooleanv):
1960 (WebCore::GraphicsContext3D::getBufferParameteriv):
1961 (WebCore::GraphicsContext3D::getFloatv):
1962 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1963 (WebCore::GraphicsContext3D::getIntegerv):
1964 (WebCore::GraphicsContext3D::getProgramiv):
1965 (WebCore::GraphicsContext3D::getProgramInfoLog):
1966 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1967 (WebCore::GraphicsContext3D::getShaderiv):
1968 (WebCore::GraphicsContext3D::getShaderInfoLog):
1969 (WebCore::GraphicsContext3D::getTexParameterfv):
1970 (WebCore::GraphicsContext3D::getTexParameteriv):
1971 (WebCore::GraphicsContext3D::getUniformfv):
1972 (WebCore::GraphicsContext3D::getUniformiv):
1973 (WebCore::GraphicsContext3D::getUniformLocation):
1974 (WebCore::GraphicsContext3D::getVertexAttribfv):
1975 (WebCore::GraphicsContext3D::getVertexAttribiv):
1976 (WebCore::GraphicsContext3D::getVertexAttribOffset):
1977 (WebCore::GraphicsContext3D::texImage2D):
1978 (WebCore::GraphicsContext3D::texSubImage2D):
1979 (WebCore::GraphicsContext3D::createBuffer):
1980 (WebCore::GraphicsContext3D::createFramebuffer):
1981 (WebCore::GraphicsContext3D::createProgram):
1982 (WebCore::GraphicsContext3D::createRenderbuffer):
1983 (WebCore::GraphicsContext3D::createShader):
1984 (WebCore::GraphicsContext3D::createTexture):
1985 (WebCore::GraphicsContext3D::deleteBuffer):
1986 (WebCore::GraphicsContext3D::deleteFramebuffer):
1987 (WebCore::GraphicsContext3D::deleteProgram):
1988 (WebCore::GraphicsContext3D::deleteRenderbuffer):
1989 (WebCore::GraphicsContext3D::deleteShader):
1990 (WebCore::GraphicsContext3D::deleteTexture):
1991 (WebCore::GraphicsContext3D::sizeInBytes):
1992 (WebCore::GraphicsContext3D::synthesizeGLError):
1993 * platform/graphics/qt/GraphicsContext3DQt.cpp:
1994 (WebCore::GraphicsContext3D::activeTexture):
1995 (WebCore::GraphicsContext3D::attachShader):
1996 (WebCore::GraphicsContext3D::getAttachedShaders):
1997 (WebCore::GraphicsContext3D::bindAttribLocation):
1998 (WebCore::GraphicsContext3D::bindBuffer):
1999 (WebCore::GraphicsContext3D::bindFramebuffer):
2000 (WebCore::GraphicsContext3D::bindRenderbuffer):
2001 (WebCore::GraphicsContext3D::bindTexture):
2002 (WebCore::GraphicsContext3D::blendColor):
2003 (WebCore::GraphicsContext3D::blendEquation):
2004 (WebCore::GraphicsContext3D::blendEquationSeparate):
2005 (WebCore::GraphicsContext3D::blendFunc):
2006 (WebCore::GraphicsContext3D::blendFuncSeparate):
2007 (WebCore::GraphicsContext3D::bufferData):
2008 (WebCore::GraphicsContext3D::bufferSubData):
2009 (WebCore::GraphicsContext3D::checkFramebufferStatus):
2010 (WebCore::GraphicsContext3D::clearColor):
2011 (WebCore::GraphicsContext3D::clear):
2012 (WebCore::GraphicsContext3D::clearDepth):
2013 (WebCore::GraphicsContext3D::clearStencil):
2014 (WebCore::GraphicsContext3D::colorMask):
2015 (WebCore::GraphicsContext3D::compileShader):
2016 (WebCore::GraphicsContext3D::copyTexImage2D):
2017 (WebCore::GraphicsContext3D::copyTexSubImage2D):
2018 (WebCore::GraphicsContext3D::cullFace):
2019 (WebCore::GraphicsContext3D::depthFunc):
2020 (WebCore::GraphicsContext3D::depthMask):
2021 (WebCore::GraphicsContext3D::depthRange):
2022 (WebCore::GraphicsContext3D::detachShader):
2023 (WebCore::GraphicsContext3D::disable):
2024 (WebCore::GraphicsContext3D::disableVertexAttribArray):
2025 (WebCore::GraphicsContext3D::drawArrays):
2026 (WebCore::GraphicsContext3D::drawElements):
2027 (WebCore::GraphicsContext3D::enable):
2028 (WebCore::GraphicsContext3D::enableVertexAttribArray):
2029 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
2030 (WebCore::GraphicsContext3D::framebufferTexture2D):
2031 (WebCore::GraphicsContext3D::frontFace):
2032 (WebCore::GraphicsContext3D::generateMipmap):
2033 (WebCore::GraphicsContext3D::getActiveAttrib):
2034 (WebCore::GraphicsContext3D::getActiveUniform):
2035 (WebCore::GraphicsContext3D::getAttribLocation):
2036 (WebCore::GraphicsContext3D::getError):
2037 (WebCore::GraphicsContext3D::getString):
2038 (WebCore::GraphicsContext3D::hint):
2039 (WebCore::GraphicsContext3D::isBuffer):
2040 (WebCore::GraphicsContext3D::isEnabled):
2041 (WebCore::GraphicsContext3D::isFramebuffer):
2042 (WebCore::GraphicsContext3D::isProgram):
2043 (WebCore::GraphicsContext3D::isRenderbuffer):
2044 (WebCore::GraphicsContext3D::isShader):
2045 (WebCore::GraphicsContext3D::isTexture):
2046 (WebCore::GraphicsContext3D::linkProgram):
2047 (WebCore::GraphicsContext3D::pixelStorei):
2048 (WebCore::GraphicsContext3D::polygonOffset):
2049 (WebCore::GraphicsContext3D::readPixels):
2050 (WebCore::GraphicsContext3D::renderbufferStorage):
2051 (WebCore::GraphicsContext3D::sampleCoverage):
2052 (WebCore::GraphicsContext3D::scissor):
2053 (WebCore::GraphicsContext3D::stencilFunc):
2054 (WebCore::GraphicsContext3D::stencilFuncSeparate):
2055 (WebCore::GraphicsContext3D::stencilMask):
2056 (WebCore::GraphicsContext3D::stencilMaskSeparate):
2057 (WebCore::GraphicsContext3D::stencilOp):
2058 (WebCore::GraphicsContext3D::stencilOpSeparate):
2059 (WebCore::GraphicsContext3D::texParameterf):
2060 (WebCore::GraphicsContext3D::texParameteri):
2061 (WebCore::GraphicsContext3D::uniform1f):
2062 (WebCore::GraphicsContext3D::uniform1fv):
2063 (WebCore::GraphicsContext3D::uniform2f):
2064 (WebCore::GraphicsContext3D::uniform2fv):
2065 (WebCore::GraphicsContext3D::uniform3f):
2066 (WebCore::GraphicsContext3D::uniform3fv):
2067 (WebCore::GraphicsContext3D::uniform4f):
2068 (WebCore::GraphicsContext3D::uniform4fv):
2069 (WebCore::GraphicsContext3D::uniform1i):
2070 (WebCore::GraphicsContext3D::uniform1iv):
2071 (WebCore::GraphicsContext3D::uniform2i):
2072 (WebCore::GraphicsContext3D::uniform2iv):
2073 (WebCore::GraphicsContext3D::uniform3i):
2074 (WebCore::GraphicsContext3D::uniform3iv):
2075 (WebCore::GraphicsContext3D::uniform4i):
2076 (WebCore::GraphicsContext3D::uniform4iv):
2077 (WebCore::GraphicsContext3D::uniformMatrix2fv):
2078 (WebCore::GraphicsContext3D::uniformMatrix3fv):
2079 (WebCore::GraphicsContext3D::uniformMatrix4fv):
2080 (WebCore::GraphicsContext3D::useProgram):
2081 (WebCore::GraphicsContext3D::validateProgram):
2082 (WebCore::GraphicsContext3D::vertexAttrib1f):
2083 (WebCore::GraphicsContext3D::vertexAttrib1fv):
2084 (WebCore::GraphicsContext3D::vertexAttrib2f):
2085 (WebCore::GraphicsContext3D::vertexAttrib2fv):
2086 (WebCore::GraphicsContext3D::vertexAttrib3f):
2087 (WebCore::GraphicsContext3D::vertexAttrib3fv):
2088 (WebCore::GraphicsContext3D::vertexAttrib4f):
2089 (WebCore::GraphicsContext3D::vertexAttrib4fv):
2090 (WebCore::GraphicsContext3D::vertexAttribPointer):
2091 (WebCore::GraphicsContext3D::viewport):
2092 (WebCore::GraphicsContext3D::getBooleanv):
2093 (WebCore::GraphicsContext3D::getBufferParameteriv):
2094 (WebCore::GraphicsContext3D::getFloatv):
2095 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
2096 (WebCore::GraphicsContext3D::getIntegerv):
2097 (WebCore::GraphicsContext3D::getProgramiv):
2098 (WebCore::GraphicsContext3D::getProgramInfoLog):
2099 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
2100 (WebCore::GraphicsContext3D::getShaderiv):
2101 (WebCore::GraphicsContext3D::getShaderInfoLog):
2102 (WebCore::GraphicsContext3D::getShaderSource):
2103 (WebCore::GraphicsContext3D::getTexParameterfv):
2104 (WebCore::GraphicsContext3D::getTexParameteriv):
2105 (WebCore::GraphicsContext3D::getUniformfv):
2106 (WebCore::GraphicsContext3D::getUniformiv):
2107 (WebCore::GraphicsContext3D::getUniformLocation):
2108 (WebCore::GraphicsContext3D::getVertexAttribfv):
2109 (WebCore::GraphicsContext3D::getVertexAttribiv):
2110 (WebCore::GraphicsContext3D::getVertexAttribOffset):
2111 (WebCore::GraphicsContext3D::texImage2D):
2112 (WebCore::GraphicsContext3D::texSubImage2D):
2113 (WebCore::GraphicsContext3D::createBuffer):
2114 (WebCore::GraphicsContext3D::createFramebuffer):
2115 (WebCore::GraphicsContext3D::createProgram):
2116 (WebCore::GraphicsContext3D::createRenderbuffer):
2117 (WebCore::GraphicsContext3D::createShader):
2118 (WebCore::GraphicsContext3D::createTexture):
2119 (WebCore::GraphicsContext3D::deleteBuffer):
2120 (WebCore::GraphicsContext3D::deleteFramebuffer):
2121 (WebCore::GraphicsContext3D::deleteProgram):
2122 (WebCore::GraphicsContext3D::deleteRenderbuffer):
2123 (WebCore::GraphicsContext3D::deleteShader):
2124 (WebCore::GraphicsContext3D::deleteTexture):
2125 (WebCore::GraphicsContext3D::sizeInBytes):
2126 (WebCore::GraphicsContext3D::synthesizeGLError):
2127 (WebCore::GraphicsContext3D::getImageData):
2128 * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2129 (WebCore::GraphicsContext3D::getImageData):
2131 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2133 Reviewed by Eric Seidel.
2135 [GTK] Initial build support for WebGL
2136 https://bugs.webkit.org/show_bug.cgi?id=51716
2138 Add initial build support for WebGL and insert bits of implementation
2139 necessary for clean compilation into GraphicsContext3D.
2141 No new tests. This is just a build change.
2143 * GNUmakefile.am: Add missing files to the source lists.
2144 * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
2145 Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
2146 same across different platforms. X11 headers define the VERSION symbol, so it's
2147 necessary to undefine it, since it's used as an enum value.
2149 2011-01-06 Helder Correia <helder@sencha.com>
2151 Reviewed by Kenneth Rohde Christiansen.
2153 [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
2154 https://bugs.webkit.org/show_bug.cgi?id=52014
2156 The function is only used by RenderObject to draw box sides.
2157 The shadow branch is never used and thus can be removed.
2159 No new tests are necessary.
2161 * platform/graphics/qt/GraphicsContextQt.cpp:
2162 (WebCore::GraphicsContext::drawConvexPolygon):
2164 2011-01-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2166 Reviewed by Kenneth Rohde Christiansen.
2168 [Qt] Make sure touch is disabled in the minimal configuration
2169 https://bugs.webkit.org/show_bug.cgi?id=51316
2171 No new tests as there is no new functionality.
2175 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2177 Reviewed by Eric Seidel.
2179 [GTK] Freetype backend does not support WOFF
2180 https://bugs.webkit.org/show_bug.cgi?id=51904
2182 * CMakeListsEfl.txt: Add WOFF support to the sources list.
2183 * GNUmakefile.am: Add WOFF support to the sources list.
2184 * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
2185 (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
2186 (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
2188 2011-01-06 James Simonsen <simonjam@chromium.org>
2190 Reviewed by Darin Fisher.
2192 [Web Timing] Remove vendor prefix
2193 https://bugs.webkit.org/show_bug.cgi?id=48922
2195 * page/DOMWindow.cpp:
2196 (WebCore::DOMWindow::performance): Rename to performance.
2198 * page/DOMWindow.idl: Rename to performance and make replaceable.
2200 2011-01-06 Chris Marrin <cmarrin@apple.com>
2202 Reviewed by Simon Fraser.
2204 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2205 https://bugs.webkit.org/show_bug.cgi?id=49388
2207 Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
2208 used to communicate from PlatformCALayer to the owner. This replaces passing
2209 GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
2210 API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
2211 the PlatformCALayerClient API.
2213 This change has little impact on the Mac side but makes the Windows
2214 interface simpler, especially when handling video layers on Windows.
2216 * WebCore.xcodeproj/project.pbxproj:
2218 * platform/graphics/GraphicsLayer.h:
2219 (WebCore::GraphicsLayer::layerDidDisplay):
2220 (WebCore::GraphicsLayer::showDebugBorders):
2221 (WebCore::GraphicsLayer::showRepaintCounter):
2222 * platform/graphics/ca/GraphicsLayerCA.cpp:
2223 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
2224 (WebCore::GraphicsLayerCA::setContentsToImage):
2225 (WebCore::GraphicsLayerCA::setContentsToMedia):
2226 (WebCore::GraphicsLayerCA::layerDidDisplay):
2227 (WebCore::GraphicsLayerCA::updateSublayerList):
2228 * platform/graphics/ca/GraphicsLayerCA.h:
2229 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
2230 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
2231 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
2232 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
2233 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
2234 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
2235 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
2236 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
2237 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
2238 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
2239 (WebCore::GraphicsLayerCA::platformCALayer):
2240 * platform/graphics/ca/PlatformCALayer.h:
2241 (WebCore::PlatformCALayer::owner):
2242 (WebCore::PlatformCALayer::animationStarted):
2243 * platform/graphics/ca/PlatformCALayerClient.h: Added.
2244 (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
2245 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2246 (PlatformCALayer::setOwner):
2247 (PlatformCALayer::create):
2248 (PlatformCALayer::PlatformCALayer):
2249 (PlatformCALayer::contents):
2250 (PlatformCALayer::setContents):
2251 * platform/graphics/mac/WebGLLayer.mm:
2252 (-[WebGLLayer display]):
2253 * platform/graphics/mac/WebLayer.h:
2254 * platform/graphics/mac/WebLayer.mm:
2255 (drawLayerContents):
2256 (setLayerNeedsDisplayInRect):
2257 (-[WebLayer setNeedsDisplay]):
2258 (-[WebLayer display]):
2259 * platform/graphics/mac/WebTiledLayer.mm:
2260 (-[WebTiledLayer setNeedsDisplay]):
2261 (-[WebTiledLayer display]):
2262 * rendering/RenderLayerBacking.cpp:
2263 (WebCore::RenderLayerBacking::showDebugBorders):
2264 (WebCore::RenderLayerBacking::showRepaintCounter):
2265 * rendering/RenderLayerCompositor.cpp:
2266 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
2267 * rendering/RenderLayerCompositor.h:
2268 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
2269 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
2270 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
2271 (WebCore::RenderLayerCompositor::notifySyncRequired):
2272 (WebCore::RenderLayerCompositor::paintContents):
2273 (WebCore::RenderLayerCompositor::showDebugBorders):
2274 (WebCore::RenderLayerCompositor::showRepaintCounter):
2276 2011-01-06 Tony Gentilcore <tonyg@chromium.org>
2278 Reviewed by Eric Seidel.
2280 Allow framesets after hidden inputs
2281 https://bugs.webkit.org/show_bug.cgi?id=51998
2283 This implements the HTML5 spec update in response to:
2284 http://www.w3.org/Bugs/Public/show_bug.cgi?id=11156
2286 * html/parser/HTMLTreeBuilder.cpp:
2287 (WebCore::HTMLTreeBuilder::processStartTagForInBody):
2289 2010-12-29 Zhenyao Mo <zmo@google.com>
2291 Reviewed by Kenneth Russell.
2293 vertexAttribPointer should raise INVALID_OPERATION if stride/offset is not multiple of the type size
2294 https://bugs.webkit.org/show_bug.cgi?id=51725
2296 * html/canvas/WebGLRenderingContext.cpp:
2297 (WebCore::WebGLRenderingContext::vertexAttribPointer):
2299 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2301 Reviewed by Eric Seidel.
2303 [WINCE] Remove JSC::g_stackBase
2304 https://bugs.webkit.org/show_bug.cgi?id=51779
2306 * platform/wince/SharedTimerWinCE.cpp:
2307 (WebCore::TimerWindowWndProc):
2309 2011-01-06 Robert Hogan <robert@webkit.org>
2311 Reviewed by Antonio Gomes.
2313 [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
2315 This allows LayoutTestController to pass WebCore::Node back to
2318 Also amend nodesFromRect-links-and-text.html and
2319 nodesFromRect-inner-documents.html so that they do not produce
2320 platform-specific results.
2323 fast/dom/nodesFromRect-links-and-text.html
2324 fast/dom/nodesFromRect-inner-documents.html
2326 https://bugs.webkit.org/show_bug.cgi?id=48957
2328 * bridge/qt/qt_runtime.cpp:
2329 (JSC::Bindings::QtDRTNodeRuntime::create):
2330 (JSC::Bindings::QtDRTNodeRuntime::get):
2331 (JSC::Bindings::convertValueToQVariant):
2332 (JSC::Bindings::convertQVariantToValue):
2334 2011-01-06 Joone Hur <joone.hur@collabora.co.uk>
2336 Reviewed by Eric Seidel.
2338 WML Parser should treat line/column number in a consistent way
2339 https://bugs.webkit.org/show_bug.cgi?id=51601
2341 XML Parser treats line/column number as 1-based values, but WML ErrorHandler treat them as 0-based.
2342 Therefore, this patch allows WML ErrorHandler to use 1-based values.
2344 * dom/XMLDocumentParser.cpp:
2345 (WebCore::XMLDocumentParser::handleError): Treat line/column number as 1 based values.
2346 * dom/XMLDocumentParser.h: Make textPositionOneBased public and Add TextPosition1(m_lastErrorPosition) to keep error line/column number.
2347 * dom/XMLDocumentParserLibxml2.cpp:
2348 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2349 * dom/XMLDocumentParserQt.cpp:
2350 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2351 * wml/WMLErrorHandling.cpp:
2352 (WebCore::reportWMLError): Use 1 based value instead of 0 based value to report error line/column number.
2354 2011-01-05 Adam Roben <aroben@apple.com>
2356 Remove some dead code from WKCACFLayerRenderer
2358 Fixes <http://webkit.org/b/51954> WKCACFLayerRenderer has dead and
2359 redundant code for reacting to changes to the layer tree
2361 Reviewed by Sam Weinig.
2363 * platform/graphics/win/WKCACFLayerRenderer.cpp:
2364 * platform/graphics/win/WKCACFLayerRenderer.h:
2365 Removed didFlushContext and the HashMap it depended on. We react to
2366 changes to the layer tree in layerTreeDidChange instead.
2368 2011-01-06 Chris Fleizach <cfleizach@apple.com>
2370 Reviewed by Beth Dakin.
2372 AX: "AXExpanded" not exposed on most ARIA roles that use aria-expanded
2373 https://bugs.webkit.org/show_bug.cgi?id=51995
2375 Test: platform/mac/accessibility/aria-expanded-standard-items.html
2377 * accessibility/AccessibilityObject.cpp:
2378 (WebCore::AccessibilityObject::supportsARIAExpanded):
2379 (WebCore::AccessibilityObject::isExpanded):
2380 * accessibility/AccessibilityObject.h:
2381 * accessibility/AccessibilityRenderObject.cpp:
2382 (WebCore::AccessibilityRenderObject::isVisited):
2383 * accessibility/AccessibilityRenderObject.h:
2384 * accessibility/mac/AccessibilityObjectWrapper.mm:
2385 (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
2387 2010-12-28 Zhenyao Mo <zmo@google.com>
2389 Reviewed by Kenneth Russell.
2391 Must generate INVALID_VALUE errors for strings containing out-of-range characters
2392 https://bugs.webkit.org/show_bug.cgi?id=50929
2394 * html/canvas/WebGLRenderingContext.cpp: Validate characters according to GLSL ES 1.0 spec section 3.1.
2395 (WebCore::WebGLRenderingContext::bindAttribLocation):
2396 (WebCore::WebGLRenderingContext::getAttribLocation):
2397 (WebCore::WebGLRenderingContext::getUniformLocation):
2398 (WebCore::WebGLRenderingContext::shaderSource):
2399 (WebCore::WebGLRenderingContext::validateString): Helper function to perform the character validation.
2400 * html/canvas/WebGLRenderingContext.h: Declare validateString().
2402 2011-01-06 Yong Li <yoli@rim.com>
2404 Reviewed by Adam Barth.
2405 Add the test case that is missed in r75066.
2406 https://bugs.webkit.org/show_bug.cgi?id=48077
2408 Test case: WebCore/manual-tests/bugzilla-48077.html.
2410 2011-01-06 James Robinson <jamesr@chromium.org>
2412 Reviewed by Simon Fraser.
2414 Implement mozilla's animationTime property
2415 https://bugs.webkit.org/show_bug.cgi?id=51952
2417 Implements mozilla's animationTime property as described here:
2418 https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime
2419 and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/
2420 The property is called webkitAnimationTime as calling it the 'Start' time is not very informative.
2421 This property exposes a notion of a 'current' time to use for declarative animations and allows
2422 scripts to synchronize imperative animations with declarative ones if they choose to. Once queried
2423 this time is saved and used for all declarative animation updates until the embedder paints/composites
2424 the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example
2425 if the page is in a background tab).
2427 This patch also ensures that all declarative animations started in the same script execution block
2428 are synchronized even if some time elapses while script is running.
2430 Test: fast/animation/animation-time.html
2433 * page/DOMWindow.cpp:
2434 (WebCore::DOMWindow::webkitAnimationTime):
2436 * page/DOMWindow.idl:
2438 (WebCore::Frame::currentAnimationTime):
2441 (WebCore::Page::Page):
2443 (WebCore::Page::animationTime):
2444 * page/animation/AnimationController.cpp:
2445 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2446 * page/animation/AnimationTimeController.cpp: Added.
2447 (WebCore::AnimationTimeController::AnimationTimeController):
2448 (WebCore::AnimationTimeController::~AnimationTimeController):
2449 (WebCore::AnimationTimeController::currentAnimationTime):
2450 (WebCore::AnimationTimeController::clearCurrentAnimationTime):
2451 (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired):
2452 * page/animation/AnimationTimeController.h: Added.
2453 (WebCore::AnimationTimeController::create):
2455 2011-01-06 Abhishek Arya <inferno@chromium.org>
2457 Reviewed by Simon Fraser.
2459 Null out the parent stylesheet pointer when a css rule is removed.
2460 https://bugs.webkit.org/show_bug.cgi?id=51993
2462 Tests: fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html
2463 fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html
2465 * css/CSSRuleList.cpp:
2466 (WebCore::CSSRuleList::deleteRule):
2467 * css/CSSStyleSheet.cpp:
2468 (WebCore::CSSStyleSheet::deleteRule):
2470 2011-01-04 Adrienne Walker <enne@google.com>
2472 Reviewed by Kenneth Russell.
2474 NaN in a TypedArray should be converted to zero only for Float32Array.
2475 https://bugs.webkit.org/show_bug.cgi?id=46990
2477 Test: LayoutTests/fast/canvas/webgl/array-unit-tests.html
2479 * bindings/js/JSArrayBufferViewHelper.h:
2480 (WebCore::convertArrayValue):
2481 (WebCore::constructArrayBufferView):
2482 * html/canvas/Float32Array.h:
2483 (WebCore::Float32Array::set):
2484 (WebCore::Float32Array::item):
2486 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2488 Unreviewed Windows build fix for r75161.
2490 * platform/graphics/cg/GraphicsContextCG.cpp: Missing include added.
2492 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2494 Unreviewed WinCE build fix for r75139.
2496 Try to remove include after adding forward-declaration in r75145.
2498 * platform/graphics/Gradient.h:
2500 2011-01-06 Renata Hodovan <reni@webkit.org>
2502 Reviewed by Andreas Kling.
2504 https://bugs.webkit.org/show_bug.cgi?id=51811
2505 Merge m_height and m_width members of ImageData into the new m_size member.
2507 Image (BitmapImage, ImageSource) types in WebKit use IntSize to store their
2508 width and height argument, except ImageData. This patch refactors ImageData
2509 to follow the style of other Image types in WebKit.
2510 Using of PassRefPtrs other than argument passing is not allowed in WebKit anymore.
2511 This patch also refactors the PassRefPtr usages of ImageData.
2513 It's just a refactoring, so we don't need any new tests.
2515 * bindings/js/SerializedScriptValue.cpp:
2516 (WebCore::CloneSerializer::write):
2517 (WebCore::CloneDeserializer::readTerminal):
2518 * bindings/v8/SerializedScriptValue.cpp:
2519 (WebCore::ZigZag::Reader::readImageData):
2520 * html/ImageData.cpp:
2521 (WebCore::ImageData::create):
2522 (WebCore::ImageData::ImageData):
2524 (WebCore::ImageData::size):
2525 (WebCore::ImageData::width):
2526 (WebCore::ImageData::height):
2527 * html/canvas/CanvasRenderingContext2D.cpp:
2528 (WebCore::createEmptyImageData):
2529 (WebCore::CanvasRenderingContext2D::createImageData):
2530 (WebCore::CanvasRenderingContext2D::getImageData):
2531 * html/canvas/CanvasRenderingContext2D.h:
2532 * platform/graphics/haiku/ImageBufferHaiku.cpp:
2533 (WebCore::getImageData):
2535 2011-01-06 Yael Aharon <yael.aharon@nokia.com>
2537 Reviewed by Darin Adler.
2539 document.querySelector(':nth-child(foo)') should throw a syntax error
2540 https://bugs.webkit.org/show_bug.cgi?id=51231
2543 CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector)
2544 https://bugs.webkit.org/show_bug.cgi?id=21815
2546 Add a check in the parser that other than an+b, only "odd" or "even" would be allowed
2547 as parameters to nth selector.
2549 Tests: fast/css/css3-nth-tokens-script.html
2550 fast/css/css3-nth-tokens-style.html
2553 * css/CSSParser.cpp:
2554 (WebCore::isValidNthToken):
2557 2011-01-06 Jan Erik Hanssen <jhanssen@sencha.com>
2559 Reviewed by Andreas Kling.
2561 [Qt] crash in QNetworkReplyHandler::sendResponseIfNeeded()
2562 https://bugs.webkit.org/show_bug.cgi?id=51453
2564 Check if m_reply is NULL before accessing.
2566 * manual-tests/load-deferrer-resume-crash.html: Added.
2567 * platform/network/qt/QNetworkReplyHandler.cpp:
2568 (WebCore::QNetworkReplyHandler::setLoadMode):
2569 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2571 2011-01-06 Andras Becsi <abecsi@webkit.org>
2573 Reviewed by Csaba Osztrogonác.
2575 [Qt][V8] Fix the build when DEVICE_ORIENTATION is enabled.
2577 No new tests needed.
2579 * WebCore.pro: remove duplications and globally add RuntimeEnabledFeatures.
2581 2011-01-06 Helder Correia <helder@sencha.com>
2583 Reviewed by Kenneth Rohde Christiansen.
2585 [Qt][GTK] Use GraphicsContext::hasShadow() in port-specific code
2586 https://bugs.webkit.org/show_bug.cgi?id=51985
2588 r75139 introduced GraphicsContext::hasShadow(). This can now simplify
2589 and unify some code in the Qt and GTK ports.
2591 No new tests necessary for this refactoring.
2593 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2594 (WebCore::GraphicsContext::fillRect):
2595 (WebCore::GraphicsContext::fillRoundedRect):
2596 * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
2597 * platform/graphics/qt/GraphicsContextQt.cpp:
2598 (WebCore::GraphicsContext::drawConvexPolygon):
2599 (WebCore::GraphicsContext::fillPath):
2600 (WebCore::GraphicsContext::strokePath):
2601 (WebCore::GraphicsContext::fillRect):
2602 (WebCore::GraphicsContext::fillRoundedRect):
2604 2011-01-05 Darin Adler <darin@apple.com>
2606 Fix Chromium Mac build.
2608 * platform/graphics/Gradient.h: Forward-declare CGContextRef.
2609 This might even make it possible to remove the include of
2610 <CoreGraphics/CoreGraphics.h> for PLATFORM(WIN), but I did not
2611 do that at this time because I don't want to break the Windows
2612 build when fixing the Chromium build.
2614 2011-01-05 Xianzhu Wang <wangxianzhu@google.com>
2616 Reviewed by David Levin.
2618 Implement RemoteFontStream's skip behavior (in FontCustomPlatformData.cpp)
2619 https://bugs.webkit.org/show_bug.cgi?id=51736
2621 No new tests. This change has potential effect on @font-face CSS feature
2622 on ports using Skia. Tested on Chromium that this change won't break
2623 fast/css/font-face-remote.html. This change can make the test pass on
2624 other ports using Skia.
2626 * platform/graphics/skia/FontCustomPlatformData.cpp:
2627 (WebCore::RemoteFontStream::read):
2629 2011-01-05 Helder Correia <helder@sencha.com>
2631 Reviewed by Simon Fraser.
2633 Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac
2634 https://bugs.webkit.org/show_bug.cgi?id=51869
2636 GraphicsContext::fillRect(const FloatRect&) is clipping to the rect.
2637 The shadow is being drawn, but getting clipped to the rect being filled.
2638 The solution is to draw the gradient into a CGLayer (when a shadow is
2639 required), then render the layer to the GraphicsContext.
2641 This patch also fixes:
2642 canvas/philip/tests/2d.shadow.gradient.alpha.html
2643 canvas/philip/tests/2d.shadow.gradient.basic.html
2644 canvas/philip/tests/2d.shadow.gradient.transparent.2.html
2646 Test: fast/canvas/canvas-fillRect-gradient-shadow.html
2648 * platform/graphics/Gradient.h:
2649 * platform/graphics/cg/GradientCG.cpp:
2650 (WebCore::Gradient::paint):
2651 * platform/graphics/cg/GraphicsContextCG.cpp:
2652 (WebCore::GraphicsContext::fillRect):
2654 2011-01-05 Steve Falkenburg <sfalken@apple.com>
2656 Reviewed by Darin Adler.
2658 Debug and Release builds on Windows clobber each other
2659 https://bugs.webkit.org/show_bug.cgi?id=49185
2661 Changes the structure of WebKitBuild build products directory so we
2662 completely separate each build configuration into independent directories.
2664 Although we previously had per-configuration directories for obj, this change adds
2665 per-configuration directories for bin, lib, obj, and include. Each configuration's
2666 build products are stored within a directory inside of WebKitBuild.
2668 Most use of $(WebKitOutputDir) in the build files has been replaced by $(ConfigurationBuildDir),
2669 defined in common.vsprops to be $(WebKitOutputDir)\$(ConfigurationName).
2671 * WebCore.vcproj/QTMovieWinCommon.vsprops:
2672 * WebCore.vcproj/QTMovieWinPostBuild.cmd:
2673 * WebCore.vcproj/QTMovieWinPreBuild.cmd:
2674 * WebCore.vcproj/WebCore.make:
2675 * WebCore.vcproj/WebCore.vcproj:
2676 * WebCore.vcproj/WebCoreCommon.vsprops:
2677 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
2678 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
2679 * WebCore.vcproj/WebCoreMediaQT.vsprops:
2680 * WebCore.vcproj/WebCorePostBuild.cmd:
2681 * WebCore.vcproj/WebCorePreBuild.cmd:
2682 * WebCore.vcproj/copyForwardingHeaders.cmd:
2683 * WebCore.vcproj/copyInspectorFiles.cmd:
2685 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2687 Reviewed by Ariya Hidayat.
2689 Directly composited SVG images fail to render
2690 https://bugs.webkit.org/show_bug.cgi?id=51975
2692 There was already code, added in r67900, to detect whether an image
2693 may be directly composited, by checking to see if it's a bitmap image.
2695 However, CachedImage::image() returns the nullImage() if m_image is null,
2696 which is a BitmapImage, confusing this test.
2698 Test: compositing/images/direct-svg-image.html
2700 * loader/cache/CachedImage.cpp: Remove nullImage(), since Image has
2701 exactly the same method.
2702 (WebCore::CachedImage::image): Use Image::nullImage().
2703 * loader/cache/CachedImage.h:
2704 (WebCore::CachedImage::hasImage): New method to ask whether the m_image is
2706 * rendering/RenderLayerBacking.cpp:
2707 (WebCore::RenderLayerBacking::isDirectlyCompositedImage): Use hasImage()
2708 so that we don't test the nullImage.
2710 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2712 Reviewed by Darin Adler.
2714 Fix percentage values in radius of radial gradients
2715 https://bugs.webkit.org/show_bug.cgi?id=51979
2717 Handle percentage values for the ending size of radial gradients.
2719 Test: fast/gradients/css3-radial-gradients3.html
2721 * css/CSSGradientValue.cpp:
2722 (WebCore::CSSRadialGradientValue::resolveRadius): Add parameter for height or width, which is
2723 non-null if percentage values are allowed, and compute percentage values when we see them.
2724 (WebCore::CSSRadialGradientValue::createGradient): Pass height or width down to say that
2725 percentages are OK when resolving end radii.
2726 * css/CSSGradientValue.h: New parameter for resolveRadius.
2728 2011-01-05 James Simonsen <simonjam@chromium.org>
2730 Reviewed by Adam Barth.
2732 [Web Timing] Zero out some values on cross-origin redirects
2733 https://bugs.webkit.org/show_bug.cgi?id=49294
2735 Tests: http/tests/misc/webtiming-cross-origin-redirect.php
2736 http/tests/misc/webtiming-origins.html
2738 * loader/DocumentLoadTiming.h:
2739 (WebCore::DocumentLoadTiming::DocumentLoadTiming): Add flags for cross-origin redirects and same-origin navigation.
2740 * loader/FrameLoader.cpp:
2741 (WebCore::FrameLoader::~FrameLoader):
2742 (WebCore::FrameLoader::stopLoading): Don't overwrite previous unload times.
2743 (WebCore::FrameLoader::completed):
2744 (WebCore::FrameLoader::loadWithDocumentLoader): Remember previous URL to see if navigation is same-origin.
2745 (WebCore::FrameLoader::commitProvisionalLoad): Set flag if navigation is same-origin.
2746 * loader/FrameLoader.h:
2747 * loader/MainResourceLoader.cpp:
2748 (WebCore::MainResourceLoader::willSendRequest): Set flag on cross-origin redirects.
2749 * page/PerformanceNavigation.cpp:
2750 (WebCore::PerformanceNavigation::redirectCount): Clear if cross-origin redirect flag is set.
2751 * page/PerformanceTiming.cpp:
2752 (WebCore::PerformanceTiming::redirectStart): Ditto.
2753 (WebCore::PerformanceTiming::redirectEnd): Ditto.
2754 (WebCore::PerformanceTiming::unloadEventStart): Clear if cross-origin navigation is set.
2755 (WebCore::PerformanceTiming::unloadEventEnd): Ditto.
2757 2011-01-05 Helder Correia <helder@sencha.com>
2759 Reviewed by Ariya Hidayat.
2761 [Qt] Default focus ring is too wide
2762 https://bugs.webkit.org/show_bug.cgi?id=51854
2764 This is an intermediate step to solve this bug. Use QPalette::Highlight
2765 instead of default half-transparent black as the focus ring color.
2767 * platform/graphics/qt/GraphicsContextQt.cpp:
2768 (WebCore::drawFocusRingForPath):
2769 * platform/qt/RenderThemeQt.cpp:
2770 (WebCore::RenderThemeQt::platformFocusRingColor):
2771 * platform/qt/RenderThemeQt.h:
2773 2011-01-05 James Simonsen <simonjam@chromium.org>
2775 Reviewed by Darin Fisher.
2777 [Web Timing] requestStart and responseStart should be available even if the document is still loading
2778 https://bugs.webkit.org/show_bug.cgi?id=51368
2780 Test: http/tests/misc/webtiming-slow-load.php
2782 * page/PerformanceTiming.cpp:
2783 (WebCore::getPossiblySkewedTimeInKnownRange): Handle case where response is not yet complete.
2784 (WebCore::PerformanceTiming::resourceLoadTimeRelativeToAbsolute): Use full upper bound.
2786 2011-01-05 Chris Rogers <crogers@google.com>
2788 Reviewed by Darin Fisher.
2790 Add WebKitClient::createAudioDevice() for Chromium port of web audio API
2791 https://bugs.webkit.org/show_bug.cgi?id=51424
2793 No new tests since audio API is not yet implemented.
2795 * WebCore.gyp/WebCore.gyp:
2798 2011-01-05 Anders Carlsson <andersca@apple.com>
2804 2011-01-05 Anders Carlsson <andersca@apple.com>
2806 Attempt to fix Leopard build.
2810 2011-01-05 Evan Martin <evan@chromium.org>
2812 Reviewed by Tony Chang.
2814 [chromium] refactor complex text on Linux
2815 https://bugs.webkit.org/show_bug.cgi?id=51956
2817 Pull out TextRunWalker from FontLinux.cpp. Put it in its own file.
2818 Rename it to ComplexTextController, to match platform/graphics/mac
2821 No tests because the change is just renaming a class.
2823 * WebCore.gyp/WebCore.gyp:
2824 * platform/graphics/chromium/ComplexTextControllerLinux.cpp: Added.
2825 (WebCore::ComplexTextController::ComplexTextController):
2826 (WebCore::ComplexTextController::~ComplexTextController):
2827 (WebCore::ComplexTextController::isWordBreak):
2828 (WebCore::ComplexTextController::determineWordBreakSpacing):
2829 (WebCore::ComplexTextController::setPadding):
2830 (WebCore::ComplexTextController::reset):
2831 (WebCore::ComplexTextController::setBackwardsIteration):
2832 (WebCore::ComplexTextController::nextScriptRun):
2833 (WebCore::ComplexTextController::widthOfFullRun):
2834 (WebCore::ComplexTextController::setupFontForScriptRun):
2835 (WebCore::ComplexTextController::allocHarfbuzzFont):
2836 (WebCore::ComplexTextController::deleteGlyphArrays):
2837 (WebCore::ComplexTextController::createGlyphArrays):
2838 (WebCore::ComplexTextController::resetGlyphArrays):
2839 (WebCore::ComplexTextController::shapeGlyphs):
2840 (WebCore::ComplexTextController::setGlyphXPositions):
2841 (WebCore::ComplexTextController::normalizeSpacesAndMirrorChars):
2842 (WebCore::ComplexTextController::getNormalizedTextRun):
2843 * platform/graphics/chromium/ComplexTextControllerLinux.h: Added.
2844 (WebCore::ComplexTextController::setWordSpacingAdjustment):
2845 (WebCore::ComplexTextController::setLetterSpacingAdjustment):
2846 (WebCore::ComplexTextController::letterSpacing):
2847 (WebCore::ComplexTextController::setXOffsetToZero):
2848 (WebCore::ComplexTextController::rtl):
2849 (WebCore::ComplexTextController::glyphs):
2850 (WebCore::ComplexTextController::length):
2851 (WebCore::ComplexTextController::xPositions):
2852 (WebCore::ComplexTextController::advances):
2853 (WebCore::ComplexTextController::width):
2854 (WebCore::ComplexTextController::logClusters):
2855 (WebCore::ComplexTextController::numCodePoints):
2856 (WebCore::ComplexTextController::fontPlatformDataForScriptRun):
2857 (WebCore::ComplexTextController::isCodepointSpace):
2858 * platform/graphics/chromium/FontLinux.cpp:
2859 (WebCore::Font::drawComplexText):
2860 (WebCore::Font::floatWidthForComplexText):
2861 (WebCore::glyphIndexForXPositionInScriptRun):
2862 (WebCore::Font::offsetForPositionForComplexText):
2863 (WebCore::Font::selectionRectForComplexText):
2865 2011-01-05 Pratik Solanki <psolanki@apple.com>
2867 Reviewed by Darin Adler.
2869 Merge cf and mac header files with same name
2870 https://bugs.webkit.org/show_bug.cgi?id=51916
2872 Since most of the code in the header files is identical, we can merge them and have #if
2873 USE(CFNETWORK) to separate out the network specific parts.
2875 * WebCore.xcodeproj/project.pbxproj:
2876 * platform/network/cf/AuthenticationChallenge.h:
2877 (WebCore::AuthenticationChallenge::sender):
2878 (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
2879 * platform/network/cf/ResourceError.h:
2880 (WebCore::ResourceError::ResourceError):
2881 * platform/network/cf/ResourceRequest.h:
2882 (WebCore::ResourceRequest::ResourceRequest):
2883 * platform/network/cf/ResourceResponse.h:
2884 (WebCore::ResourceResponse::ResourceResponse):
2885 * platform/network/mac/AuthenticationChallenge.h: Removed.
2886 * platform/network/mac/ResourceError.h: Removed.
2887 * platform/network/mac/ResourceRequest.h: Removed.
2888 * platform/network/mac/ResourceResponse.h: Removed.
2890 2011-01-05 Anders Carlsson <andersca@apple.com>
2892 Reviewed by Adele Peterson.
2894 Implement word transformation
2895 https://bugs.webkit.org/show_bug.cgi?id=51943
2897 Export Editor functions needed by WebKit2.
2901 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2903 Reviewed by Dave Hyatt.
2905 Implement repeating CSS3 gradients
2906 https://bugs.webkit.org/show_bug.cgi?id=51843
2908 Add support for repeating gradients, via the new gradient functions
2909 -webkit-repeating-linear-gradient and -webkit-repeating-radial-gradient.
2911 Tests: fast/gradients/css3-repeating-linear-gradients.html
2912 fast/gradients/css3-repeating-radial-gradients.html
2914 * css/CSSGradientValue.h:
2915 (WebCore::CSSGradientValue::isRepeating): Accessor for whethe the gradient repeats.
2916 (WebCore::CSSGradientValue::CSSGradientValue): Pass CSSGradientRepeat in.
2917 (WebCore::CSSLinearGradientValue::create): Pass CSSGradientRepeat.
2918 (WebCore::CSSLinearGradientValue::CSSLinearGradientValue): Ditto
2919 (WebCore::CSSRadialGradientValue::create): Ditto.
2920 (WebCore::CSSRadialGradientValue::CSSRadialGradientValue): Ditto.
2922 * css/CSSGradientValue.cpp:
2923 (WebCore::CSSGradientValue::addStops): Pass maxLengthForRepeat, which
2924 is used for repeating radial gradients. Add code to repeat the stops,
2925 adding stops before the start, and after the end until the 0-N range is
2926 covered, where N is large enough to ensure the box is covered. Fix an issue
2927 with repeating gradients where if both stops were < 0, it would fail to clamp
2930 (WebCore::CSSLinearGradientValue::cssText): Output strings for repeating gradients.
2931 (WebCore::CSSLinearGradientValue::createGradient): maxExtent for linear gradients is 1,
2932 because they are guaranteed to fill the box already.
2933 (WebCore::CSSRadialGradientValue::cssText): Output strings for repeating gradients.
2934 (WebCore::CSSRadialGradientValue::createGradient): Compute the distance to the furthest
2935 corner in order to inform addStops() how much additional extent is required.
2937 * css/CSSParser.cpp:
2938 (WebCore::CSSParser::parseDeprecatedGradient): Old gradients never repeat.
2939 (WebCore::CSSParser::parseLinearGradient): Pass down CSSGradientRepeat.
2940 (WebCore::CSSParser::parseRadialGradient): Ditto.
2941 (WebCore::CSSParser::isGeneratedImageValue): Add repeating gradient functions.
2942 (WebCore::CSSParser::parseGeneratedImage): Ditto.
2943 * css/CSSParser.h: Pass CSSGradientRepeat to gradient functions.
2944 * platform/graphics/cg/GradientCG.cpp: Remove unused #include.
2946 2011-01-05 Martin Robinson <mrobinson@igalia.com>
2948 Reviewed by Ariya Hidayat.
2950 ContextShadow::blurLayerImage() not endian-safe
2951 https://bugs.webkit.org/show_bug.cgi?id=51822
2953 Correct the channel map in ContextShadow to reflect the different
2954 ordering of pixels on processors with different endianness.
2956 No new tests. This is covered by the existing shadow tests. It was
2957 not discovered, because all of the bots using ContextShadow are
2960 * platform/graphics/ContextShadow.cpp:
2961 (WebCore::ContextShadow::blurLayerImage): Initialize the channel mapping
2962 based on machine endianness.
2964 2011-01-05 Mihai Parparita <mihaip@chromium.org>
2966 Reviewed by Nate Chapin.
2968 [Chromium] Crash when drawing PDF plug-in scrollbars
2969 https://bugs.webkit.org/show_bug.cgi?id=51942
2971 Pepper plug-in scrollbars don't have a parent, guard against that before
2972 seeing if the parent is a FrameView.
2974 Not testable via layout tests, verified fix by hand.
2976 * platform/chromium/ScrollbarThemeChromiumMac.mm:
2977 (WebCore::ScrollbarThemeChromiumMac::paint):
2979 2011-01-05 Abhishek Arya <inferno@chromium.org>
2983 Update FIXME comment to sound better. Also initialize the block to fix compile.
2985 * rendering/RenderBlock.cpp:
2986 (WebCore::RenderBlock::removeChild):
2988 2011-01-05 Abhishek Arya <inferno@chromium.org>
2990 Reviewed by Dave Hyatt.
2992 Do not merge anonymous blocks when one of them is the one getting removed.
2993 https://bugs.webkit.org/show_bug.cgi?id=51919
2995 Test: fast/block/merge-anonymous-block-remove-child-crash.html
2997 * rendering/RenderBlock.cpp:
2998 (WebCore::RenderBlock::removeChild):
3000 2011-01-05 Ryosuke Niwa <rniwa@webkit.org>
3002 Reviewed by Eric Seidel.
3004 ApplyStyleCommand::applyRelativeFontStyleChange should take EditingStyle*
3005 https://bugs.webkit.org/show_bug.cgi?id=50641
3007 Modified applyRelativeFontStyleChange to take EditingStyle instead of CSSMutableStyleDeclaration.
3008 Also extracted the logic to obtain the font size delta from ApplyStyleCommand to EditingStyle.
3009 The font size delta is now stored as a member variable of EditingStyle as supposed to a property
3010 in CSSMutableStyleDeclration as soon as EditingStyle is instantiated.
3012 No new tests are added since this is a refactoring.
3014 * editing/ApplyStyleCommand.cpp:
3015 (WebCore::ApplyStyleCommand::doApply): Calls applyRelativeFontStyleChange.
3016 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Takes EditingStyle.
3017 * editing/ApplyStyleCommand.h:
3018 * editing/EditingStyle.cpp:
3019 (WebCore::EditingStyle::EditingStyle): Initializes m_fontSizeDelta.
3020 (WebCore::EditingStyle::init): Ditto.
3021 (WebCore::EditingStyle::extractFontSizeDelta): Extracted from applyRelativeFontStyleChange.
3022 (WebCore::EditingStyle::isEmpty): Takes care of m_fontSizeDelta.
3023 (WebCore::EditingStyle::setStyle): Calls extractFontSizeDelta.
3024 (WebCore::EditingStyle::overrideWithStyle): Ditto.
3025 (WebCore::EditingStyle::clear): Initializes m_fontSizeDelta.
3026 (WebCore::EditingStyle::copy): Calls extractFontSizeDelta.
3027 * editing/EditingStyle.h:
3028 (WebCore::EditingStyle::fontSizeDelta): Added.
3029 (WebCore::EditingStyle::hasFontSizeDelta): Added.
3032 2011-01-05 Dan Bernstein <mitz@apple.com>
3034 Reviewed by Darin Adler.
3036 <rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph
3037 https://bugs.webkit.org/show_bug.cgi?id=51915
3039 This changes the results of existing tests in fast/text.
3041 * platform/graphics/Font.h:
3042 * platform/graphics/FontFastPath.cpp:
3043 (WebCore::Font::primaryFontHasGlyphForCharacter): Added.
3044 * rendering/style/RenderStyle.cpp:
3045 * platform/graphics/qt/FontQt.cpp:
3046 (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub.
3047 (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a
3048 hyphen only if the primary font has a hyphen glyph, and otherwise return a
3051 2011-01-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3053 Reviewed by Ariya Hidayat.
3055 [Qt] [Symbian] Make CONFIG-=def_files the default configuration for trunk builds
3056 https://bugs.webkit.org/show_bug.cgi?id=51888
3058 Overrule Qt's default from qconfig.pri for non-production builds so
3059 that CONFIG(def_files) evaluates to false and QtWebKit trunk builds succeed.
3061 No new tests as there is no new functionality.
3065 2011-01-05 Sheriff Bot <webkit.review.bot@gmail.com>
3067 Unreviewed, rolling out r74778.
3068 http://trac.webkit.org/changeset/74778
3069 https://bugs.webkit.org/show_bug.cgi?id=51930
3071 Android and QtWebKit-V8 uses V8DOMWindowShell::setContext.
3072 (Requested by bbandix on #webkit).
3074 * bindings/v8/V8DOMWindowShell.cpp:
3075 (WebCore::V8DOMWindowShell::setContext):
3076 * bindings/v8/V8DOMWindowShell.h:
3078 2011-01-05 Yi Shen <yi.4.shen@nokia.com>
3080 Reviewed by Andreas Kling.
3082 [Qt] Animated GIF images does not animate 10x as expected by default.
3083 https://bugs.webkit.org/show_bug.cgi?id=36818
3085 Add a test animated GIF which should be displayed 2 times and stop.
3087 * manual-tests/animated-gif-looping.html:
3088 * manual-tests/resources/animated-2x.gif: Added.
3090 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3092 Reviewed by Martin Robinson.
3094 [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
3095 https://bugs.webkit.org/show_bug.cgi?id=51923
3097 Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
3098 ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
3100 No new tests. This should not change functionality.
3102 * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
3103 * platform/gtk/ScrollbarThemeGtk.cpp:
3104 (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
3105 * platform/gtk/ScrollbarThemeGtk.h:
3106 * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
3107 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3108 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3109 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3110 (WebCore::ScrollbarThemeGtk::paintThumb):
3111 (WebCore::ScrollbarThemeGtk::paintButton):
3112 * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
3113 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3114 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3115 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3116 (WebCore::ScrollbarThemeGtk::paintThumb):
3117 (WebCore::ScrollbarThemeGtk::paintButton):
3119 2011-01-05 Patrick Gansterer <paroga@webkit.org>
3121 Reviewed by Andreas Kling.
3123 [CMake] Fix the usage of SOURCE_GROUP
3124 https://bugs.webkit.org/show_bug.cgi?id=51739
3128 2011-01-05 Andras Becsi <abecsi@webkit.org>
3130 Reviewed by Csaba Osztrogonác.
3132 [Qt][V8] Fix the build after recent changes.
3134 No new tests needed.
3136 * WebCore.pro: Add missing files, and remove obsolete ones.
3138 2011-01-05 Yong Li <yoli@rim.com>
3140 Reviewed by Adam Barth.
3142 Suspend HTMLParserScheduler when page load is deferred to
3143 avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3144 from an external script or by events, and is blocked by a modal dialog,
3145 WebKit can parse more HTML source and also start another JS execution.
3147 https://bugs.webkit.org/show_bug.cgi?id=48077
3149 Test case: WebCore/manual-tests/bugzilla-48077.html.
3151 * dom/DocumentParser.cpp:
3152 (WebCore::DocumentParser::suspendScheduledTasks):
3153 (WebCore::DocumentParser::resumeScheduledTasks):
3154 * dom/DocumentParser.h:
3155 * html/parser/HTMLDocumentParser.cpp:
3156 (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3157 (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3158 * html/parser/HTMLParserScheduler.cpp:
3159 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3160 (WebCore::HTMLParserScheduler::suspend):
3161 (WebCore::HTMLParserScheduler::resume):
3162 * html/parser/HTMLParserScheduler.h:
3163 (WebCore::HTMLParserScheduler::isScheduledForResume):
3164 * page/PageGroupLoadDeferrer.cpp:
3165 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3166 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3168 2011-01-05 Simon Hausmann <simon.hausmann@nokia.com>
3170 Reviewed by Kenneth Rohde Christiansen, Gustavo Noronha Silva
3172 [GStreamer] MediaPlayerPrivateGStreamer::totalBytes() does not work reliably
3173 https://bugs.webkit.org/show_bug.cgi?id=51926
3175 Work around potential upstream bug: Querying a GstBin for the duration,
3176 will forward the query to all sink children. Our WebKitWebSrc however
3177 is a bin with only source children, therefore the query fails. Until
3178 this is changed upstream, this patch works around it as follows,
3179 based on suggestion by Philippe Normand and Sebastian Dröge:
3181 When the initial query fails, attempt the same query on all source
3182 pads and take the maximum length reported.
3184 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3185 (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
3187 2011-01-05 Philippe Normand <pnormand@igalia.com>
3189 Rubber-stamped by Eric Seidel.
3191 [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
3192 https://bugs.webkit.org/show_bug.cgi?id=51810
3194 Based on a patch by Mart Raudsepp.
3196 No new tests, build fix only.
3198 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3199 (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
3200 API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
3201 introduced in same version as the xoverlay API change.
3203 2011-01-05 Leo Yang <leo.yang@torchmobile.com.cn>
3205 Reviewed by Dirk Schulze.
3207 Malformed SVG causes crash in updateContainerOffset
3208 https://bugs.webkit.org/show_bug.cgi?id=44610
3210 We should check recursive <use> at the begining of
3211 WebCore::SVGUseElement::buildInstanceTree instead
3212 of at the end of it because the target element's
3213 children may cause infinite recursive <use>.
3215 Test: svg/custom/recursive-use.svg
3217 * svg/SVGUseElement.cpp:
3218 (WebCore::SVGUseElement::buildInstanceTree):
3219 (WebCore::SVGUseElement::hasCycleUseReferencing):
3220 * svg/SVGUseElement.h:
3222 2011-01-04 Antti Koivisto <antti@apple.com>
3224 Reviewed by Dan Bernstein.
3226 https://bugs.webkit.org/show_bug.cgi?id=51907
3227 Style selector should only be recalculated when the pending sheet count goes to zero
3229 Shark says this is a significant performance improvement on some sites with lots of stylesheets.
3232 (WebCore::Document::removePendingSheet):
3234 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3236 Reviewed by Martin Robinson.
3238 [GTK] Use GtkStyleContext to get platform colors
3239 https://bugs.webkit.org/show_bug.cgi?id=51830
3241 Use GtkStyleContext API to get platform colors when building with
3244 No new tests. This should not change functionality.
3246 * platform/graphics/Color.h: Add specialized constructor for GdkRGBA.
3247 * platform/graphics/gtk/ColorGtk.cpp:
3248 (WebCore::Color::Color):
3249 (WebCore::Color::operator GdkRGBA):
3250 * platform/gtk/RenderThemeGtk3.cpp:
3251 (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
3252 (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
3253 (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
3254 (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
3255 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
3256 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
3257 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
3258 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
3259 (WebCore::RenderThemeGtk::systemColor):
3261 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3263 Unreviewed. Build fix for GTK when using gtk+-3 after r75009.
3265 * platform/gtk/RenderThemeGtk3.cpp:
3266 (WebCore::RenderThemeGtk::getStockIcon): Use adoptGRef instead of
3267 adoptGRefPtr which doesn't exist.
3269 2011-01-05 Alexey Proskuryakov <ap@apple.com>
3271 Reviewed by Sam Weinig.
3273 https://bugs.webkit.org/show_bug.cgi?id=51903
3274 Tell UI process which subframe is largest
3276 * WebCore.exp.in: Exported FrameView::contentsSize().
3278 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3280 Unreviewed. GTK build fix.
3282 WK2: Support Accessibility
3283 https://bugs.webkit.org/show_bug.cgi?id=51859
3285 * page/FrameView.cpp:
3286 (WebCore::FrameView::axObjectCache):
3288 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
3290 Unreviewed, rolling out r74992.
3291 http://trac.webkit.org/changeset/74992
3292 https://bugs.webkit.org/show_bug.cgi?id=51917
3294 Crash in HTMLDocumentParser::suspendScheduledTasks()
3295 (Requested by tkent on #webkit).
3297 * dom/DocumentParser.cpp:
3298 * dom/DocumentParser.h:
3299 * html/parser/HTMLDocumentParser.cpp:
3300 * html/parser/HTMLDocumentParser.h:
3301 * html/parser/HTMLParserScheduler.cpp:
3302 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3303 * html/parser/HTMLParserScheduler.h:
3304 (WebCore::HTMLParserScheduler::isScheduledForResume):
3305 * page/PageGroupLoadDeferrer.cpp:
3306 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3307 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3309 2011-01-04 Benjamin Poulain <benjamin.poulain@nokia.com>
3311 Reviewed by Kenneth Rohde Christiansen.
3313 [Qt] [WK2] Add support for non-trivial context menu action
3314 https://bugs.webkit.org/show_bug.cgi?id=51902
3316 Fix the preprocessor guard for ContextMenuItemTagSelectAll in
3317 the implementation of ContextMenuController::contextMenuItemSelected(). The guard was
3318 inconsistent with what is defined in ContextMenuItem.h.
3320 * page/ContextMenuController.cpp:
3321 (WebCore::ContextMenuController::contextMenuItemSelected):
3323 2011-01-04 Tony Gentilcore <tonyg@chromium.org>
3325 Reviewed by Ryosuke Niwa.
3327 Avoid manual ref/deref in AsyncScriptRunner by using PendingScript
3328 https://bugs.webkit.org/show_bug.cgi?id=51723
3330 ScriptElement should also be able to keep its Element+CachedScript in
3331 a PendingScript, and then executeScriptSoon can accept a PendingScript.
3332 Once HTMLScriptRunner, ScriptElement, and AsyncScriptRunner all use
3333 PendingScripts, then generic request and execute which operate on
3334 PendingScripts can be factored out to avoid code duplicate that we have.
3336 No new tests because no new functionality.
3338 * dom/AsyncScriptRunner.cpp:
3339 (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
3340 (WebCore::AsyncScriptRunner::executeScriptSoon):
3341 (WebCore::AsyncScriptRunner::timerFired):
3342 * dom/AsyncScriptRunner.h:
3343 * dom/PendingScript.h: Add ctor which sets element and cachedScript. Rename adoptElement->setElement.
3344 * dom/HTMLScriptRunner.cpp:
3345 (WebCore::HTMLScriptRunner::requestPendingScript):
3347 2011-01-04 Jeff Miller <jeffm@apple.com>
3349 Reviewed by Darin Adler.
3351 Member variable and method naming cleanup to be consistent with WebKit2.
3352 https://bugs.webkit.org/show_bug.cgi?id=51228
3354 * page/win/EventHandlerWin.cpp:
3355 (WebCore::EventHandler::eventActivatedView):
3356 Rename activatedWebView() to didActivateWebView().
3358 * platform/PlatformMouseEvent.h:
3359 Rename m_activatedWebView to m_didActivateWebView.
3361 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3362 Initialize platform-specific member variables in PlatformMouseEvent constructors.
3364 (WebCore::PlatformMouseEvent::didActivateWebView):
3365 Rename activatedWebView() to didActivateWebView().
3367 * platform/win/PlatformMouseEventWin.cpp:
3368 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3369 Rename m_activatedWebView to m_didActivateWebView.
3371 2011-01-04 Yael Aharon <yael.aharon@nokia.com>
3373 Reviewed by Darin Adler.
3375 CSS3 :nth-child selector and valid whitespace test fails
3376 https://bugs.webkit.org/show_bug.cgi?id=36279
3378 Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
3380 Test: fast/css/css3-nth-space.html
3382 * css/tokenizer.flex:
3384 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3386 Unreviewed. Build fix.
3388 WK2: Support Accessibility
3389 https://bugs.webkit.org/show_bug.cgi?id=51859
3391 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3394 2011-01-04 Cosmin Truta <ctruta@chromium.org>
3396 Reviewed by Eric Seidel.
3398 [chromium] PNG compression settings optimized for speed
3399 https://bugs.webkit.org/show_bug.cgi?id=51719
3401 Although Z_HUFFMAN_ONLY is the fastest on hard-to-compress images,
3402 it is also the slowest, by a wide margin, on easy-to-compress images.
3403 Use a more balanced configuration, based on the libpng compression defaults,
3404 but with a faster compression level (3 instead of 6), and a faster filter
3405 ("sub" instead of "all").
3407 No change in behaviour, so no new tests.
3409 * platform/image-encoders/skia/PNGImageEncoder.cpp:
3410 (WebCore::PNGImageEncoder::encode):
3412 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3414 Reviewed by Sam Weinig.
3416 WK2: Support Accessibility
3417 https://bugs.webkit.org/show_bug.cgi?id=51859
3419 WK2 doesn't use platform scroll views anymore. Accessibility code
3420 needs to have its own scroll views.
3422 Test: platform/mac/accessibility/webkit-scrollarea.html
3429 * WebCore.vcproj/WebCore.vcproj:
3430 * WebCore.xcodeproj/project.pbxproj:
3431 * accessibility/AXObjectCache.cpp:
3432 (WebCore::AXObjectCache::AXObjectCache):
3433 (WebCore::AXObjectCache::get):
3434 (WebCore::AXObjectCache::getOrCreate):
3435 (WebCore::AXObjectCache::rootObject):
3436 (WebCore::AXObjectCache::remove):
3437 (WebCore::AXObjectCache::handleScrollbarUpdate):
3438 * accessibility/AXObjectCache.h:
3439 (WebCore::AXObjectCache::handleScrollbarUpdate):
3440 * accessibility/AccessibilityARIAGrid.h:
3441 * accessibility/AccessibilityAllInOne.cpp:
3442 * accessibility/AccessibilityImageMapLink.cpp:
3443 * accessibility/AccessibilityImageMapLink.h:
3444 * accessibility/AccessibilityListBoxOption.cpp:
3445 * accessibility/AccessibilityListBoxOption.h:
3446 * accessibility/AccessibilityObject.cpp:
3447 (WebCore::AccessibilityObject::updateChildrenIfNecessary):
3448 (WebCore::AccessibilityObject::elementAccessibilityHitTest):
3449 (WebCore::AccessibilityObject::axObjectCache):
3450 (WebCore::AccessibilityObject::focusedUIElement):
3451 * accessibility/AccessibilityObject.h:
3452 (WebCore::AccessibilityObject::isAccessibilityScrollView):
3453 (WebCore::AccessibilityObject::isScrollView):
3454 (WebCore::AccessibilityObject::canSetNumericValue):
3455 (WebCore::AccessibilityObject::scrollBar):
3456 (WebCore::AccessibilityObject::size):
3457 (WebCore::AccessibilityObject::setValue):
3458 * accessibility/AccessibilityRenderObject.cpp:
3459 (WebCore::AccessibilityRenderObject::parentObject):
3460 (WebCore::AccessibilityRenderObject::accessibilityHitTest):
3461 (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
3462 (WebCore::AccessibilityRenderObject::addChildren):
3463 * accessibility/AccessibilityRenderObject.h:
3464 * accessibility/AccessibilityScrollView.cpp: Added.
3465 (WebCore::AccessibilityScrollView::AccessibilityScrollView):
3466 (WebCore::AccessibilityScrollView::create):
3467 (WebCore::AccessibilityScrollView::scrollBar):
3468 (WebCore::AccessibilityScrollView::children):
3469 (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
3470 (WebCore::AccessibilityScrollView::removeChildScrollbar):
3471 (WebCore::AccessibilityScrollView::addChildScrollbar):
3472 (WebCore::AccessibilityScrollView::addChildren):
3473 (WebCore::AccessibilityScrollView::webAreaObject):
3474 (WebCore::AccessibilityScrollView::accessibilityHitTest):
3475 (WebCore::AccessibilityScrollView::document):
3476 (WebCore::AccessibilityScrollView::elementRect):
3477 (WebCore::AccessibilityScrollView::parentObject):
3478 * accessibility/AccessibilityScrollView.h: Added.
3479 (WebCore::AccessibilityScrollView::roleValue):
3480 (WebCore::AccessibilityScrollView::scrollView):
3481 (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
3482 (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
3483 (WebCore::toAccessibilityScrollView):
3484 * accessibility/AccessibilityScrollbar.cpp:
3485 (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
3486 (WebCore::AccessibilityScrollbar::create):
3487 (WebCore::AccessibilityScrollbar::elementRect):
3488 (WebCore::AccessibilityScrollbar::document):
3489 (WebCore::AccessibilityScrollbar::orientation):
3490 (WebCore::AccessibilityScrollbar::isEnabled):
3491 (WebCore::AccessibilityScrollbar::valueForRange):
3492 (WebCore::AccessibilityScrollbar::setValue):
3493 * accessibility/AccessibilityScrollbar.h:
3494 (WebCore::AccessibilityScrollbar::setParent):
3495 (WebCore::AccessibilityScrollbar::canSetValueAttribute):
3496 (WebCore::AccessibilityScrollbar::canSetNumericValue):
3497 (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
3498 (WebCore::AccessibilityScrollbar::parentObject):
3499 (WebCore::AccessibilityScrollbar::roleValue):
3500 * accessibility/mac/AccessibilityObjectMac.mm:
3501 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3502 * accessibility/mac/AccessibilityObjectWrapper.mm:
3503 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
3504 (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
3505 (-[AccessibilityObjectWrapper position]):
3506 (-[AccessibilityObjectWrapper scrollViewParent]):
3507 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3508 (-[AccessibilityObjectWrapper accessibilityHitTest:]):
3509 (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
3511 (WebCore::Document::axObjectCache):
3512 * loader/EmptyClients.h:
3513 (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
3514 * loader/FrameLoaderClient.h:
3515 * page/FrameView.cpp:
3516 (WebCore::FrameView::~FrameView):
3517 (WebCore::FrameView::axObjectCache):
3519 * platform/ScrollView.cpp:
3520 (WebCore::ScrollView::setHasHorizontalScrollbar):
3521 (WebCore::ScrollView::setHasVerticalScrollbar):
3522 * platform/Scrollbar.cpp:
3523 (WebCore::Scrollbar::~Scrollbar):
3524 (WebCore::Scrollbar::scroll):
3525 (WebCore::Scrollbar::axObjectCache):
3526 * platform/Scrollbar.h:
3527 * platform/Widget.h:
3528 (WebCore::Widget::axObjectCache):
3530 2011-01-04 W. James MacLean <wjmaclean@chromium.org>
3532 Reviewed by Kenneth Russell.
3534 [chromium] Add support to compositor to composite to offscreen texture.
3535 https://bugs.webkit.org/show_bug.cgi?id=50833
3537 A patch to extend compositor to be able to composite into an offscreen texture instead
3538 of just directly to the display buffer. Builds on RenderSurfaceChromium support.
3539 Explicitly resets alpha channel before rendering to display.
3541 * platform/graphics/chromium/LayerRendererChromium.cpp:
3542 (WebCore::LayerRendererChromium::LayerRendererChromium):
3543 (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
3544 (WebCore::LayerRendererChromium::drawLayers):
3545 (WebCore::LayerRendererChromium::setCompositeOffscreen):
3546 (WebCore::LayerRendererChromium::useRenderSurface):
3547 (WebCore::LayerRendererChromium::setScissorToRect):
3548 * platform/graphics/chromium/LayerRendererChromium.h: