1 2011-01-10 Antti Koivisto <antti@apple.com>
3 Reviewed by Alexey Proskuryakov.
5 https://bugs.webkit.org/show_bug.cgi?id=52044
6 REGRESSION(r74807): No-store is ignored within a document
8 Don't use cached resources with Cache-control: no-store (unless cache policy is CachePolicyHistoryBuffer).
9 This matches a behavior that got lost in r74807.
11 Test: http/tests/misc/script-no-store.html
12 (by Alexey Proskuryakov)
14 * loader/cache/CachedResourceLoader.cpp:
15 (WebCore::CachedResourceLoader::determineRevalidationPolicy):
17 2011-01-10 Patrick Gansterer <paroga@webkit.org>
19 Reviewed by Laszlo Gombos.
21 [WIN] Add ProxyServerWin.cpp
22 https://bugs.webkit.org/show_bug.cgi?id=52031
24 Add stub implementation to fix ENABLE_NETSCAPE_PLUGIN_API on WinCE.
27 * CMakeListsWinCE.txt:
28 * platform/network/win/ProxyServerWin.cpp: Added.
29 (WebCore::proxyServersForURL):
31 2011-01-10 Alejandro G. Castro <alex@igalia.com>
33 Reviewed by Martin Robinson.
35 [cairo] Rendering a lot of arcs on top of each other causes time
37 https://bugs.webkit.org/show_bug.cgi?id=50869
39 We avoid the situation where we have to render the same arc
40 multiple times over itself. Now it renders just one oval and
41 moves to the end angle.
43 * platform/graphics/cairo/PathCairo.cpp:
44 (WebCore::Path::addArc):
46 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
48 Reviewed by Martin Robinson.
50 [GTK] Port text input control painting to GtkStyleContext
51 https://bugs.webkit.org/show_bug.cgi?id=51870
53 Use GtkStyleContext API to paint text input controls when building
56 No new tests. This should not change functionality.
58 * platform/gtk/RenderThemeGtk3.cpp:
59 (WebCore::RenderThemeGtk::adjustRepaintRect):
60 (WebCore::RenderThemeGtk::paintTextField):
62 2011-01-09 Tony Gentilcore <tonyg@chromium.org>
64 Reviewed by Alexey Proskuryakov.
66 Forward declare some headers where possible
67 https://bugs.webkit.org/show_bug.cgi?id=52133
69 No new tests because no new functionality.
72 * dom/BeforeLoadEvent.h:
75 * dom/StyledElement.cpp:
76 * dom/StyledElement.h:
77 * loader/DocumentLoader.h:
78 * loader/FrameLoader.h:
80 * platform/graphics/GraphicsContext.cpp:
81 * platform/graphics/GraphicsContext.h:
82 * platform/graphics/filters/FEBlend.cpp:
83 * platform/graphics/filters/FEColorMatrix.cpp:
84 * platform/graphics/filters/FEComponentTransfer.cpp:
85 * platform/graphics/filters/FEComposite.cpp:
86 * platform/graphics/filters/FEConvolveMatrix.cpp:
87 * platform/graphics/filters/FEDiffuseLighting.cpp:
88 * platform/graphics/filters/FEDisplacementMap.cpp:
89 * platform/graphics/filters/FEFlood.cpp:
90 * platform/graphics/filters/FEGaussianBlur.cpp:
91 * platform/graphics/filters/FEMerge.cpp:
92 * platform/graphics/filters/FEMorphology.cpp:
93 * platform/graphics/filters/FEOffset.cpp:
94 * platform/graphics/filters/FESpecularLighting.cpp:
95 * platform/graphics/filters/FETile.cpp:
96 * platform/graphics/filters/FETurbulence.cpp:
97 * platform/graphics/filters/FilterEffect.cpp:
98 * platform/graphics/filters/FilterEffect.h:
99 * platform/graphics/filters/SourceAlpha.cpp:
100 * platform/graphics/filters/SourceGraphic.cpp:
101 * svg/SVGElement.cpp:
103 * svg/SVGFEBlendElement.cpp:
104 * svg/SVGFEColorMatrixElement.cpp:
105 * svg/SVGFEComponentTransferElement.cpp:
106 * svg/SVGFECompositeElement.cpp:
107 * svg/SVGFEConvolveMatrixElement.cpp:
108 * svg/SVGFEConvolveMatrixElement.h:
109 * svg/SVGFEDiffuseLightingElement.cpp:
110 * svg/SVGFEDisplacementMapElement.cpp:
111 * svg/SVGFEGaussianBlurElement.cpp:
112 * svg/SVGFEImageElement.h:
113 * svg/SVGFEMergeElement.cpp:
114 * svg/SVGFEMorphologyElement.cpp:
115 * svg/SVGFEOffsetElement.cpp:
116 * svg/SVGFESpecularLightingElement.cpp:
117 * svg/SVGFETileElement.cpp:
118 * svg/SVGFETurbulenceElement.h:
119 * svg/SVGFilterPrimitiveStandardAttributes.cpp:
120 * svg/SVGFilterPrimitiveStandardAttributes.h:
121 * svg/SVGTextContentElement.cpp:
122 * svg/graphics/filters/SVGFEImage.cpp:
123 * svg/graphics/filters/SVGFEImage.h:
125 2011-01-10 Adam Roben <aroben@apple.com>
127 Windows build fix after r75313
129 * WebCore.vcproj/build-generated-files.sh: Updated for the change in
132 2011-01-10 Pavel Podivilov <podivilov@chromium.org>
134 Reviewed by Pavel Feldman.
136 Web Inspector: make properties on Array's prototype non-enumerable.
137 https://bugs.webkit.org/show_bug.cgi?id=51776
139 * inspector/front-end/utilities.js:
142 2011-01-10 Yael Aharon <yael.aharon@nokia.com>
144 Reviewed by Simon Fraser.
146 Specificity of negated selectors apparently miscalculated
147 https://bugs.webkit.org/show_bug.cgi?id=41206
149 Give negated selectors the specificity of the selector they are negating.
150 This is the same as the behavior of other browsers.
152 Test: fast/css/pseudo-not.html
154 * css/CSSSelector.cpp:
155 (WebCore::CSSSelector::specificityForOneSelector):
157 2011-01-10 Adam Roben <aroben@apple.com>
159 Windows build fix after r75353
161 * WebCore.vcproj/WebCoreCommon.vsprops: Added rendering/mathml to the
164 2011-01-10 John Knottenbelt <jknotten@chromium.org>
166 Reviewed by Jeremy Orlow.
168 [Chromium] Remove non-client-based Geolocation code
169 https://bugs.webkit.org/show_bug.cgi?id=50921
171 Code clean up, covered by existing tests.
173 * WebCore.gyp/WebCore.gyp:
175 * platform/chromium/ChromiumBridge.h:
176 * platform/chromium/GeolocationServiceChromium.cpp: Removed.
177 * platform/chromium/GeolocationServiceChromium.h: Removed.
179 2011-01-10 Ilya Tikhonovsky <loislo@chromium.org>
181 Reviewed by Pavel Feldman.
183 Web Inspector: protocol related change. Rename stepIntoStatement, stepOutOfFunction, stepOverStatement.
184 stepIntoStatement => stepInto
185 stepOutOfFunction => stepOut
186 stepOverStatement => stepOver
188 https://bugs.webkit.org/show_bug.cgi?id=52142
190 * inspector/Inspector.idl:
191 * inspector/InspectorDebuggerAgent.cpp:
192 (WebCore::InspectorDebuggerAgent::stepOver):
193 (WebCore::InspectorDebuggerAgent::stepInto):
194 (WebCore::InspectorDebuggerAgent::stepOut):
195 * inspector/InspectorDebuggerAgent.h:
196 * inspector/front-end/ScriptsPanel.js:
197 (WebInspector.ScriptsPanel.prototype._stepOverClicked):
198 (WebInspector.ScriptsPanel.prototype._stepIntoClicked):
199 (WebInspector.ScriptsPanel.prototype._stepOutClicked):
201 2011-01-10 Carlos Garcia Campos <cgarcia@igalia.com>
203 Reviewed by Martin Robinson.
205 [GTK] Port progressbar painting to GtkStyleContext
206 https://bugs.webkit.org/show_bug.cgi?id=52054
208 Use GtkStyleContext API to paint progressbars when building with
209 GTK+ 3.x. Also add support for indeterminate progressbars.
211 No new tests. This should not change functionality.
213 * platform/gtk/RenderThemeGtk.cpp:
214 * platform/gtk/RenderThemeGtk2.cpp:
215 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
216 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
217 * platform/gtk/RenderThemeGtk3.cpp:
218 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar):
219 (WebCore::RenderThemeGtk::animationDurationForProgressBar):
220 (WebCore::RenderThemeGtk::paintProgressBar):
222 2011-01-10 Andreas Kling <kling@webkit.org>
224 Reviewed by Darin Adler.
226 Remove unused class "Pen" in WebCore/platform/graphics
227 https://bugs.webkit.org/show_bug.cgi?id=49955
234 * WebCore.vcproj/WebCore.vcproj:
235 * WebCore.xcodeproj/project.pbxproj:
236 * platform/graphics/Pen.cpp: Removed.
237 * platform/graphics/Pen.h: Removed.
238 * platform/graphics/haiku/GraphicsContextHaiku.cpp:
239 * platform/graphics/wx/GraphicsContextWx.cpp:
240 * platform/graphics/wx/PenWx.cpp: Removed.
242 2011-01-10 Xan Lopez <xlopez@igalia.com>
244 Reviewed by Martin Robinson.
246 [GTK] Create intermediate libWebCore library
247 https://bugs.webkit.org/show_bug.cgi?id=52116
249 Create intermediate libWebCore.la to avoid overflowing the linker
250 in the final link stage.
252 * GNUmakefile.am: define the new library.
254 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
256 Unreviewed, rolling out r75337.
257 http://trac.webkit.org/changeset/75337
258 https://bugs.webkit.org/show_bug.cgi?id=52137
260 It made fast/dom/navigator-detached-no-crash.html crash
261 (Requested by Ossy on #webkit).
263 * platform/qt/CookieJarQt.cpp:
264 (WebCore::cookiesEnabled):
266 2011-01-09 Mark Rowe <mrowe@apple.com>
270 * WebCore.xcodeproj/project.pbxproj: Copy SVGResourcesCache.h in to PrivateHeaders
273 2011-01-09 Dan Bernstein <mitz@apple.com>
275 Reviewed by Sam Weinig.
277 <rdar://problem/8765555> WebKit2: Search field focus ring is missing
279 Provide a focus ring visible rect to AppKit.
281 * platform/mac/ThemeMac.mm:
282 (-[WebCoreFlippedView _focusRingVisibleRect]):
283 (-[WebCoreFlippedView _focusRingClipAncestor]):
285 2011-01-09 Dirk Schulze <krit@webkit.org>
287 Reviewed by Rob Buis.
289 Move MathML renderer to rendering/mathml
290 https://bugs.webkit.org/show_bug.cgi?id=52131
292 Move all renderer of MathML to WebCore/rendering/mathml
294 No change of functionality, no new tests added.
300 * WebCore.vcproj/WebCore.vcproj:
301 * WebCore.xcodeproj/project.pbxproj:
302 * mathml/RenderMathMLBlock.cpp: Removed.
303 * mathml/RenderMathMLBlock.h: Removed.
304 * mathml/RenderMathMLFenced.cpp: Removed.
305 * mathml/RenderMathMLFenced.h: Removed.
306 * mathml/RenderMathMLFraction.cpp: Removed.
307 * mathml/RenderMathMLFraction.h: Removed.
308 * mathml/RenderMathMLMath.cpp: Removed.
309 * mathml/RenderMathMLMath.h: Removed.
310 * mathml/RenderMathMLOperator.cpp: Removed.
311 * mathml/RenderMathMLOperator.h: Removed.
312 * mathml/RenderMathMLRoot.cpp: Removed.
313 * mathml/RenderMathMLRoot.h: Removed.
314 * mathml/RenderMathMLRow.cpp: Removed.
315 * mathml/RenderMathMLRow.h: Removed.
316 * mathml/RenderMathMLSquareRoot.cpp: Removed.
317 * mathml/RenderMathMLSquareRoot.h: Removed.
318 * mathml/RenderMathMLSubSup.cpp: Removed.
319 * mathml/RenderMathMLSubSup.h: Removed.
320 * mathml/RenderMathMLUnderOver.cpp: Removed.
321 * mathml/RenderMathMLUnderOver.h: Removed.
322 * rendering/mathml: Added.
323 * rendering/mathml/RenderMathMLBlock.cpp: Copied from Source/WebCore/mathml/RenderMathMLBlock.cpp.
324 * rendering/mathml/RenderMathMLBlock.h: Copied from Source/WebCore/mathml/RenderMathMLBlock.h.
325 * rendering/mathml/RenderMathMLFenced.cpp: Copied from Source/WebCore/mathml/RenderMathMLFenced.cpp.
326 * rendering/mathml/RenderMathMLFenced.h: Copied from Source/WebCore/mathml/RenderMathMLFenced.h.
327 * rendering/mathml/RenderMathMLFraction.cpp: Copied from Source/WebCore/mathml/RenderMathMLFraction.cpp.
328 * rendering/mathml/RenderMathMLFraction.h: Copied from Source/WebCore/mathml/RenderMathMLFraction.h.
329 * rendering/mathml/RenderMathMLMath.cpp: Copied from Source/WebCore/mathml/RenderMathMLMath.cpp.
330 * rendering/mathml/RenderMathMLMath.h: Copied from Source/WebCore/mathml/RenderMathMLMath.h.
331 * rendering/mathml/RenderMathMLOperator.cpp: Copied from Source/WebCore/mathml/RenderMathMLOperator.cpp.
332 * rendering/mathml/RenderMathMLOperator.h: Copied from Source/WebCore/mathml/RenderMathMLOperator.h.
333 * rendering/mathml/RenderMathMLRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLRoot.cpp.
334 * rendering/mathml/RenderMathMLRoot.h: Copied from Source/WebCore/mathml/RenderMathMLRoot.h.
335 * rendering/mathml/RenderMathMLRow.cpp: Copied from Source/WebCore/mathml/RenderMathMLRow.cpp.
336 * rendering/mathml/RenderMathMLRow.h: Copied from Source/WebCore/mathml/RenderMathMLRow.h.
337 * rendering/mathml/RenderMathMLSquareRoot.cpp: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.cpp.
338 * rendering/mathml/RenderMathMLSquareRoot.h: Copied from Source/WebCore/mathml/RenderMathMLSquareRoot.h.
339 * rendering/mathml/RenderMathMLSubSup.cpp: Copied from Source/WebCore/mathml/RenderMathMLSubSup.cpp.
340 * rendering/mathml/RenderMathMLSubSup.h: Copied from Source/WebCore/mathml/RenderMathMLSubSup.h.
341 * rendering/mathml/RenderMathMLUnderOver.cpp: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.cpp.
342 * rendering/mathml/RenderMathMLUnderOver.h: Copied from Source/WebCore/mathml/RenderMathMLUnderOver.h.
344 2011-01-08 Simon Fraser <simon.fraser@apple.com>
346 Reviewed by Alexey Proskuryakov.
348 HTMLStyleElement.disabled doesn't work (affects jQuery)
349 https://bugs.webkit.org/show_bug.cgi?id=25287
351 Fix the disabled property of a HTMLStyleElement to reflect,
352 and set the disabled state of its style sheet, as required
355 Based on initial patch by Tarun Nainani.
357 Test: fast/html/disable-style-element.html
359 * dom/StyleElement.h:
360 (WebCore::StyleElement::sheet): Make const.
362 * html/HTMLStyleElement.h:
363 * html/HTMLStyleElement.idl:
364 * html/HTMLStyleElement.cpp:
365 (WebCore::HTMLStyleElement::disabled):
366 (WebCore::HTMLStyleElement::setDisabled): Getter and setter for disabled
367 call through to the sheet (if any).
369 2011-01-09 Dirk Schulze <krit@webkit.org>
371 Reviewed by Nikolas Zimmermann.
373 Rename RenderForeignObject to RenderSVGForeignObject
374 https://bugs.webkit.org/show_bug.cgi?id=52129
376 Rename RenderForeignObject to RenderSVGForeignObject to match the naming schema in render/svg.
378 No change of functionality, no new tests.
385 * WebCore.xcodeproj/project.pbxproj:
386 * rendering/RenderingAllInOne.cpp:
387 * rendering/svg/RenderForeignObject.cpp: Removed.
388 * rendering/svg/RenderForeignObject.h: Removed.
389 * rendering/svg/RenderSVGAllInOne.cpp:
390 * rendering/svg/RenderSVGBlock.cpp:
391 (WebCore::RenderSVGBlock::updateBoxModelInfoFromStyle):
392 * rendering/svg/RenderSVGForeignObject.cpp: Copied from Source/WebCore/rendering/svg/RenderForeignObject.cpp.
393 (WebCore::RenderSVGForeignObject::RenderSVGForeignObject):
394 (WebCore::RenderSVGForeignObject::~RenderSVGForeignObject):
395 (WebCore::RenderSVGForeignObject::paint):
396 (WebCore::RenderSVGForeignObject::clippedOverflowRectForRepaint):
397 (WebCore::RenderSVGForeignObject::computeRectForRepaint):
398 (WebCore::RenderSVGForeignObject::localToParentTransform):
399 (WebCore::RenderSVGForeignObject::computeLogicalWidth):
400 (WebCore::RenderSVGForeignObject::computeLogicalHeight):
401 (WebCore::RenderSVGForeignObject::layout):
402 (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
403 (WebCore::RenderSVGForeignObject::nodeAtPoint):
404 (WebCore::RenderSVGForeignObject::mapLocalToContainer):
405 * rendering/svg/RenderSVGForeignObject.h: Copied from Source/WebCore/rendering/svg/RenderForeignObject.h.
406 (WebCore::RenderSVGForeignObject::renderName):
407 * svg/SVGForeignObjectElement.cpp:
408 (WebCore::SVGForeignObjectElement::createRenderer):
410 2011-01-09 Dirk Schulze <krit@webkit.org>
412 Reviewed by Nikolas Zimmermann.
414 Move all SVG renderer to WebCore/rendering/svg
415 https://bugs.webkit.org/show_bug.cgi?id=52087
417 No change of functionality. Just moved all SVG renderer to WebCore/rendering/svg.
424 * WebCore.vjproj/project.vjproj:
425 * WebCore.xcodeproj/project.pbxproj:
426 * rendering/RenderForeignObject.cpp: Removed.
427 * rendering/RenderForeignObject.h: Removed.
428 * rendering/RenderSVGAllInOne.cpp: Removed.
429 * rendering/RenderSVGBlock.cpp: Removed.
430 * rendering/RenderSVGBlock.h: Removed.
431 * rendering/RenderSVGContainer.cpp: Removed.
432 * rendering/RenderSVGContainer.h: Removed.
433 * rendering/RenderSVGGradientStop.cpp: Removed.
434 * rendering/RenderSVGGradientStop.h: Removed.
435 * rendering/RenderSVGHiddenContainer.cpp: Removed.
436 * rendering/RenderSVGHiddenContainer.h: Removed.
437 * rendering/RenderSVGImage.cpp: Removed.
438 * rendering/RenderSVGImage.h: Removed.
439 * rendering/RenderSVGModelObject.cpp: Removed.
440 * rendering/RenderSVGModelObject.h: Removed.
441 * rendering/RenderSVGResource.cpp: Removed.
442 * rendering/RenderSVGResource.h: Removed.
443 * rendering/RenderSVGResourceClipper.cpp: Removed.
444 * rendering/RenderSVGResourceClipper.h: Removed.
445 * rendering/RenderSVGResourceContainer.cpp: Removed.
446 * rendering/RenderSVGResourceContainer.h: Removed.
447 * rendering/RenderSVGResourceFilter.cpp: Removed.
448 * rendering/RenderSVGResourceFilter.h: Removed.
449 * rendering/RenderSVGResourceFilterPrimitive.cpp: Removed.
450 * rendering/RenderSVGResourceFilterPrimitive.h: Removed.
451 * rendering/RenderSVGResourceGradient.cpp: Removed.
452 * rendering/RenderSVGResourceGradient.h: Removed.
453 * rendering/RenderSVGResourceLinearGradient.cpp: Removed.
454 * rendering/RenderSVGResourceLinearGradient.h: Removed.
455 * rendering/RenderSVGResourceMarker.cpp: Removed.
456 * rendering/RenderSVGResourceMarker.h: Removed.
457 * rendering/RenderSVGResourceMasker.cpp: Removed.
458 * rendering/RenderSVGResourceMasker.h: Removed.
459 * rendering/RenderSVGResourcePattern.cpp: Removed.
460 * rendering/RenderSVGResourcePattern.h: Removed.
461 * rendering/RenderSVGResourceRadialGradient.cpp: Removed.
462 * rendering/RenderSVGResourceRadialGradient.h: Removed.
463 * rendering/RenderSVGResourceSolidColor.cpp: Removed.
464 * rendering/RenderSVGResourceSolidColor.h: Removed.
465 * rendering/RenderSVGRoot.cpp: Removed.
466 * rendering/RenderSVGRoot.h: Removed.
467 * rendering/RenderSVGShadowTreeRootContainer.cpp: Removed.
468 * rendering/RenderSVGShadowTreeRootContainer.h: Removed.
469 * rendering/RenderSVGTransformableContainer.cpp: Removed.
470 * rendering/RenderSVGTransformableContainer.h: Removed.
471 * rendering/RenderSVGViewportContainer.cpp: Removed.
472 * rendering/RenderSVGViewportContainer.h: Removed.
473 * rendering/SVGImageBufferTools.cpp: Removed.
474 * rendering/SVGImageBufferTools.h: Removed.
475 * rendering/SVGMarkerData.h: Removed.
476 * rendering/SVGMarkerLayoutInfo.cpp: Removed.
477 * rendering/SVGMarkerLayoutInfo.h: Removed.
478 * rendering/SVGRenderSupport.cpp: Removed.
479 * rendering/SVGRenderSupport.h: Removed.
480 * rendering/SVGRenderTreeAsText.cpp: Removed.
481 * rendering/SVGRenderTreeAsText.h: Removed.
482 * rendering/SVGResources.cpp: Removed.
483 * rendering/SVGResources.h: Removed.
484 * rendering/SVGResourcesCache.cpp: Removed.
485 * rendering/SVGResourcesCache.h: Removed.
486 * rendering/SVGResourcesCycleSolver.cpp: Removed.
487 * rendering/SVGResourcesCycleSolver.h: Removed.
488 * rendering/SVGShadowTreeElements.cpp: Removed.
489 * rendering/SVGShadowTreeElements.h: Removed.
490 * rendering/svg/RenderForeignObject.cpp: Copied from Source/WebCore/rendering/RenderForeignObject.cpp.
491 * rendering/svg/RenderForeignObject.h: Copied from Source/WebCore/rendering/RenderForeignObject.h.
492 * rendering/svg/RenderSVGAllInOne.cpp: Copied from Source/WebCore/rendering/RenderSVGAllInOne.cpp.
493 * rendering/svg/RenderSVGBlock.cpp: Copied from Source/WebCore/rendering/RenderSVGBlock.cpp.
494 * rendering/svg/RenderSVGBlock.h: Copied from Source/WebCore/rendering/RenderSVGBlock.h.
495 * rendering/svg/RenderSVGContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGContainer.cpp.
496 * rendering/svg/RenderSVGContainer.h: Copied from Source/WebCore/rendering/RenderSVGContainer.h.
497 * rendering/svg/RenderSVGGradientStop.cpp: Copied from Source/WebCore/rendering/RenderSVGGradientStop.cpp.
498 * rendering/svg/RenderSVGGradientStop.h: Copied from Source/WebCore/rendering/RenderSVGGradientStop.h.
499 * rendering/svg/RenderSVGHiddenContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.cpp.
500 * rendering/svg/RenderSVGHiddenContainer.h: Copied from Source/WebCore/rendering/RenderSVGHiddenContainer.h.
501 * rendering/svg/RenderSVGImage.cpp: Copied from Source/WebCore/rendering/RenderSVGImage.cpp.
502 * rendering/svg/RenderSVGImage.h: Copied from Source/WebCore/rendering/RenderSVGImage.h.
503 * rendering/svg/RenderSVGModelObject.cpp: Copied from Source/WebCore/rendering/RenderSVGModelObject.cpp.
504 * rendering/svg/RenderSVGModelObject.h: Copied from Source/WebCore/rendering/RenderSVGModelObject.h.
505 * rendering/svg/RenderSVGResource.cpp: Copied from Source/WebCore/rendering/RenderSVGResource.cpp.
506 * rendering/svg/RenderSVGResource.h: Copied from Source/WebCore/rendering/RenderSVGResource.h.
507 * rendering/svg/RenderSVGResourceClipper.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.cpp.
508 * rendering/svg/RenderSVGResourceClipper.h: Copied from Source/WebCore/rendering/RenderSVGResourceClipper.h.
509 * rendering/svg/RenderSVGResourceContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.cpp.
510 * rendering/svg/RenderSVGResourceContainer.h: Copied from Source/WebCore/rendering/RenderSVGResourceContainer.h.
511 * rendering/svg/RenderSVGResourceFilter.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.cpp.
512 * rendering/svg/RenderSVGResourceFilter.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilter.h.
513 * rendering/svg/RenderSVGResourceFilterPrimitive.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.cpp.
514 * rendering/svg/RenderSVGResourceFilterPrimitive.h: Copied from Source/WebCore/rendering/RenderSVGResourceFilterPrimitive.h.
515 * rendering/svg/RenderSVGResourceGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.cpp.
516 * rendering/svg/RenderSVGResourceGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceGradient.h.
517 * rendering/svg/RenderSVGResourceLinearGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.cpp.
518 * rendering/svg/RenderSVGResourceLinearGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceLinearGradient.h.
519 * rendering/svg/RenderSVGResourceMarker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.cpp.
520 * rendering/svg/RenderSVGResourceMarker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMarker.h.
521 * rendering/svg/RenderSVGResourceMasker.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.cpp.
522 * rendering/svg/RenderSVGResourceMasker.h: Copied from Source/WebCore/rendering/RenderSVGResourceMasker.h.
523 * rendering/svg/RenderSVGResourcePattern.cpp: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.cpp.
524 * rendering/svg/RenderSVGResourcePattern.h: Copied from Source/WebCore/rendering/RenderSVGResourcePattern.h.
525 * rendering/svg/RenderSVGResourceRadialGradient.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.cpp.
526 * rendering/svg/RenderSVGResourceRadialGradient.h: Copied from Source/WebCore/rendering/RenderSVGResourceRadialGradient.h.
527 * rendering/svg/RenderSVGResourceSolidColor.cpp: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.cpp.
528 * rendering/svg/RenderSVGResourceSolidColor.h: Copied from Source/WebCore/rendering/RenderSVGResourceSolidColor.h.
529 * rendering/svg/RenderSVGRoot.cpp: Copied from Source/WebCore/rendering/RenderSVGRoot.cpp.
530 * rendering/svg/RenderSVGRoot.h: Copied from Source/WebCore/rendering/RenderSVGRoot.h.
531 * rendering/svg/RenderSVGShadowTreeRootContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.cpp.
532 * rendering/svg/RenderSVGShadowTreeRootContainer.h: Copied from Source/WebCore/rendering/RenderSVGShadowTreeRootContainer.h.
533 * rendering/svg/RenderSVGTransformableContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.cpp.
534 * rendering/svg/RenderSVGTransformableContainer.h: Copied from Source/WebCore/rendering/RenderSVGTransformableContainer.h.
535 * rendering/svg/RenderSVGViewportContainer.cpp: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.cpp.
536 * rendering/svg/RenderSVGViewportContainer.h: Copied from Source/WebCore/rendering/RenderSVGViewportContainer.h.
537 * rendering/svg/SVGImageBufferTools.cpp: Copied from Source/WebCore/rendering/SVGImageBufferTools.cpp.
538 * rendering/svg/SVGImageBufferTools.h: Copied from Source/WebCore/rendering/SVGImageBufferTools.h.
539 * rendering/svg/SVGMarkerData.h: Copied from Source/WebCore/rendering/SVGMarkerData.h.
540 * rendering/svg/SVGMarkerLayoutInfo.cpp: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.cpp.
541 * rendering/svg/SVGMarkerLayoutInfo.h: Copied from Source/WebCore/rendering/SVGMarkerLayoutInfo.h.
542 * rendering/svg/SVGRenderSupport.cpp: Copied from Source/WebCore/rendering/SVGRenderSupport.cpp.
543 * rendering/svg/SVGRenderSupport.h: Copied from Source/WebCore/rendering/SVGRenderSupport.h.
544 * rendering/svg/SVGRenderTreeAsText.cpp: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.cpp.
545 * rendering/svg/SVGRenderTreeAsText.h: Copied from Source/WebCore/rendering/SVGRenderTreeAsText.h.
546 * rendering/svg/SVGResources.cpp: Copied from Source/WebCore/rendering/SVGResources.cpp.
547 * rendering/svg/SVGResources.h: Copied from Source/WebCore/rendering/SVGResources.h.
548 * rendering/svg/SVGResourcesCache.cpp: Copied from Source/WebCore/rendering/SVGResourcesCache.cpp.
549 * rendering/svg/SVGResourcesCache.h: Copied from Source/WebCore/rendering/SVGResourcesCache.h.
550 * rendering/svg/SVGResourcesCycleSolver.cpp: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.cpp.
551 * rendering/svg/SVGResourcesCycleSolver.h: Copied from Source/WebCore/rendering/SVGResourcesCycleSolver.h.
552 * rendering/svg/SVGShadowTreeElements.cpp: Copied from Source/WebCore/rendering/SVGShadowTreeElements.cpp.
553 * rendering/svg/SVGShadowTreeElements.h: Copied from Source/WebCore/rendering/SVGShadowTreeElements.h.
555 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
557 Reviewed by Darin Fisher.
559 https://bugs.webkit.org/show_bug.cgi?id=41441
560 createWindow method should only do window-creating without URL navigation.
561 Let client APIs know which URL a new window will start with
563 * loader/FrameLoader.cpp:
564 (WebCore::createWindow):
565 * page/ContextMenuController.cpp:
566 (WebCore::openNewWindow):
567 * page/DOMWindow.cpp:
568 (WebCore::DOMWindow::createWindow):
570 2011-01-09 Dirk Schulze <krit@webkit.org>
572 Unreviewed sort of Xcode project file.
574 * WebCore.xcodeproj/project.pbxproj:
576 2011-01-09 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
578 Reviewed by Martin Robinson.
580 Changes to add Process Launcher and Thread Launcher implementation to the WebKit2 GTK port.
581 https://bugs.webkit.org/show_bug.cgi?id=48511
583 * platform/FileSystem.h:
584 * platform/gtk/FileSystemGtk.cpp: Implement function to get a binary's path
585 (WebCore::applicationDirectoryPath):
587 2011-01-08 Martin Robinson <mrobinson@igalia.com>
589 GTK+ Build fix. Add missing headers to the source list, fixing make dist.
591 No new tests. This is only a build change.
593 * GNUmakefile.am: Add missing headers to the source list.
595 2011-01-08 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
597 Reviewed by Martin Robinson.
599 [GTK] WebKit2 GNUmakefile is out of date from trunk
600 https://bugs.webkit.org/show_bug.cgi?id=51883
602 Added stubs for WebKit2 compilation.
604 * platform/gtk/ContextMenuGtk.cpp:
605 (WebCore::contextMenuItemVector):
606 * platform/gtk/ContextMenuItemGtk.cpp:
607 (WebCore::ContextMenuItem::ContextMenuItem):
608 (WebCore::ContextMenuItem::checked):
609 (WebCore::ContextMenuItem::enabled):
610 * platform/network/soup/AuthenticationChallenge.h:
611 (WebCore::AuthenticationChallenge::authenticationClient):
613 2011-01-08 Helder Correia <helder@sencha.com>
615 Reviewed by Simon Fraser.
617 Shadow is not drawn when filling a path with a gradient
618 https://bugs.webkit.org/show_bug.cgi?id=51982
620 This happens in CG and is related to bug 51869, this time to be fixed
621 in GraphicsContext::fillPath(const Path& path). We need to draw the
622 gradient clipped to the path on a CGLayer first, and then draw the
623 layer on the GraphicsContext.
625 Test: fast/canvas/canvas-fillPath-gradient-shadow.html
627 * platform/graphics/cg/GraphicsContextCG.cpp:
628 (WebCore::GraphicsContext::fillPath):
630 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
632 Reviewed by Kenneth Rohde Christiansen.
634 [Qt] PasteboardQt.cpp has coding-style errors
635 https://bugs.webkit.org/show_bug.cgi?id=39771
637 Update the code to follow the coding style.
639 * platform/qt/PasteboardQt.cpp:
640 (WebCore::Pasteboard::writeSelection):
641 (WebCore::Pasteboard::plainText):
642 (WebCore::Pasteboard::writePlainText):
643 (WebCore::Pasteboard::writeURL):
645 2011-01-08 Tony Gentilcore <tonyg@chromium.org>
647 Reviewed by Eric Seidel.
649 HTML5 Conformance Test failure: approved/xhtml5/html_style_in_comment.xhtml
650 https://bugs.webkit.org/show_bug.cgi?id=48593
652 XHTML <style> blocks, unlike HTML <style> blocks, should respect HTML
655 Test: fast/parser/xhtml-html-comment-in-style-block.xhtml
657 * dom/StyleElement.cpp:
658 (WebCore::isValidStyleChild): Remove the COMMENT_NODE check as the HTML parser doesn't add COMMENT_NODEs as children of style blocks.
659 (WebCore::StyleElement::process): Factored out a condition that must remain in sync.
661 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
663 Reviewed by Kenneth Rohde Christiansen.
665 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
666 https://bugs.webkit.org/show_bug.cgi?id=52081
668 Test for the availability of cookie jar to return if cookies are enabled or not. The network access
669 manager always exist, not the cookie jar.
671 * platform/qt/CookieJarQt.cpp:
672 (WebCore::cookiesEnabled):
674 2011-01-08 Charlie Reis <creis@chromium.org>
676 Reviewed by Mihai Parparita.
678 Canceled frame loads can corrupt back forward list
679 https://bugs.webkit.org/show_bug.cgi?id=50254
681 Avoids changing m_currentItem until the navigation commits.
682 Also resets top-level history items if a subframe navigation is canceled.
684 * WebCore/loader/FrameLoader.cpp:
685 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
686 * WebCore/loader/HistoryController.cpp:
687 * WebCore/loader/HistoryController.h:
689 2011-01-08 Chang Shu <chang.shu@nokia.com>
691 Reviewed by Kenneth Rohde Christiansen.
693 Support createTouchList with Touch list for test automation.
694 Implemented JS/V8 custom functions for createTouchList.
695 https://bugs.webkit.org/show_bug.cgi?id=51196
697 * bindings/js/JSDocumentCustom.cpp:
698 (WebCore::JSDocument::createTouchList):
699 * bindings/v8/custom/V8DocumentCustom.cpp:
700 (WebCore::V8Document::createTouchListCallback):
702 * dom/TouchEvent.cpp:
703 (WebCore::TouchEvent::initTouchEvent):
705 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
707 Reviewed by Kenneth Rohde Christiansen.
709 [Qt] CookieJarQt.cpp has coding-style errors
710 https://bugs.webkit.org/show_bug.cgi?id=39778
712 Improve the coding style of CookieJarQt.cpp.
714 * platform/qt/CookieJarQt.cpp:
715 (WebCore::networkAccessManager):
716 (WebCore::cookiesEnabled):
718 2011-01-08 Jeff Miller <jeffm@apple.com>
720 Rubber-stamped by Dan Bernstein.
722 Fix QTMovieWin.vcproj to account for moving WebCore to Source\WebCore
723 https://bugs.webkit.org/show_bug.cgi?id=52114
725 * WebCore.vcproj/QTMovieWin.vcproj:
726 Add an extra .. to some InheritedPropertySheets entries since WebCore is now one level deeper.
728 2011-01-08 Dirk Schulze <krit@webkit.org>
730 Reviewed by Mihai Parparita.
732 SVG rendering clean up according to the webkit style rules 2
733 https://bugs.webkit.org/show_bug.cgi?id=52112
735 Modified the style of the license of all files in WebCore/rendering/svg to match the style
736 in WebCore/svg. Cleaned up the code according to the webkit style rules.
738 No change of functionality. No test added.
740 * rendering/svg/RenderSVGInline.cpp:
741 * rendering/svg/RenderSVGInline.h:
742 * rendering/svg/RenderSVGInlineText.cpp:
743 * rendering/svg/RenderSVGInlineText.h:
744 * rendering/svg/RenderSVGPath.cpp:
745 * rendering/svg/RenderSVGPath.h:
746 * rendering/svg/RenderSVGTSpan.cpp:
747 * rendering/svg/RenderSVGTSpan.h:
748 * rendering/svg/RenderSVGText.cpp:
749 * rendering/svg/RenderSVGText.h:
750 * rendering/svg/RenderSVGTextPath.cpp:
751 * rendering/svg/RenderSVGTextPath.h:
752 * rendering/svg/SVGInlineFlowBox.cpp:
753 * rendering/svg/SVGInlineFlowBox.h:
754 * rendering/svg/SVGInlineTextBox.cpp:
755 * rendering/svg/SVGInlineTextBox.h:
756 * rendering/svg/SVGRootInlineBox.cpp:
757 * rendering/svg/SVGRootInlineBox.h:
758 * rendering/svg/SVGTextLayoutEngineBaseline.cpp: Brace was misplaced accoring to check-webkit-style.
759 (WebCore::SVGTextLayoutEngineBaseline::calculateGlyphOrientationAngle):
760 * rendering/svg/SVGTextQuery.cpp:
761 * rendering/svg/SVGTextQuery.h:
763 2011-01-08 Dirk Schulze <krit@webkit.org>
765 Reviewed by Mihai Parparita.
767 SVG rendering clean up according to the webkit style rules
768 https://bugs.webkit.org/show_bug.cgi?id=52107
770 Cleanup of the SVG rendering code according to the webbkit style rules.
771 Changed style of licensing texts to match the style in WebCore/svg, no change
772 of the licensing text itself.
774 * rendering/RenderForeignObject.cpp:
775 * rendering/RenderForeignObject.h:
776 * rendering/RenderSVGBlock.cpp:
777 * rendering/RenderSVGBlock.h:
778 * rendering/RenderSVGContainer.cpp:
779 * rendering/RenderSVGContainer.h:
780 * rendering/RenderSVGGradientStop.cpp:
781 * rendering/RenderSVGGradientStop.h:
782 * rendering/RenderSVGHiddenContainer.cpp:
783 * rendering/RenderSVGHiddenContainer.h:
784 (WebCore::RenderSVGHiddenContainer::renderName):
785 (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer):
786 (WebCore::RenderSVGHiddenContainer::requiresLayer):
787 (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
788 * rendering/RenderSVGImage.cpp:
789 * rendering/RenderSVGImage.h:
790 * rendering/RenderSVGModelObject.h:
791 * rendering/RenderSVGResource.cpp:
792 * rendering/RenderSVGResource.h:
793 * rendering/RenderSVGResourceClipper.cpp:
794 * rendering/RenderSVGResourceClipper.h:
795 * rendering/RenderSVGResourceContainer.cpp:
796 * rendering/RenderSVGResourceContainer.h:
797 * rendering/RenderSVGResourceFilter.cpp:
798 * rendering/RenderSVGResourceFilter.h:
799 * rendering/RenderSVGResourceFilterPrimitive.cpp:
800 * rendering/RenderSVGResourceFilterPrimitive.h:
801 * rendering/RenderSVGResourceGradient.cpp:
802 * rendering/RenderSVGResourceGradient.h:
803 * rendering/RenderSVGResourceLinearGradient.cpp:
804 * rendering/RenderSVGResourceLinearGradient.h:
805 * rendering/RenderSVGResourceMarker.cpp:
806 * rendering/RenderSVGResourceMarker.h:
807 * rendering/RenderSVGResourceMasker.cpp:
808 * rendering/RenderSVGResourceMasker.h:
809 * rendering/RenderSVGResourcePattern.cpp:
810 * rendering/RenderSVGResourcePattern.h:
811 * rendering/RenderSVGResourceRadialGradient.cpp:
812 * rendering/RenderSVGResourceRadialGradient.h:
813 * rendering/RenderSVGResourceSolidColor.cpp:
814 * rendering/RenderSVGResourceSolidColor.h:
815 * rendering/RenderSVGRoot.cpp:
816 (WebCore::RenderSVGRoot::nodeAtPoint):
817 * rendering/RenderSVGRoot.h:
818 * rendering/RenderSVGShadowTreeRootContainer.cpp:
819 * rendering/RenderSVGShadowTreeRootContainer.h:
820 * rendering/RenderSVGTransformableContainer.cpp:
821 (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
822 * rendering/RenderSVGTransformableContainer.h:
823 (WebCore::RenderSVGTransformableContainer::localToParentTransform):
824 (WebCore::RenderSVGTransformableContainer::setNeedsTransformUpdate):
825 (WebCore::RenderSVGTransformableContainer::localTransform):
826 * rendering/RenderSVGViewportContainer.cpp:
827 * rendering/RenderSVGViewportContainer.h:
828 * rendering/SVGImageBufferTools.cpp:
829 * rendering/SVGImageBufferTools.h:
830 * rendering/SVGMarkerData.h:
831 * rendering/SVGMarkerLayoutInfo.cpp:
832 * rendering/SVGMarkerLayoutInfo.h:
833 * rendering/SVGRenderSupport.cpp:
834 * rendering/SVGRenderSupport.h:
835 * rendering/SVGRenderTreeAsText.cpp:
836 (WebCore::operator<<):
837 * rendering/SVGRenderTreeAsText.h:
838 * rendering/SVGResources.cpp:
839 * rendering/SVGResources.h:
840 * rendering/SVGResourcesCache.cpp:
841 * rendering/SVGResourcesCache.h:
842 * rendering/SVGResourcesCycleSolver.cpp:
843 * rendering/SVGResourcesCycleSolver.h:
844 * rendering/SVGShadowTreeElements.cpp:
845 * rendering/SVGShadowTreeElements.h:
847 2011-01-07 Adam Barth <abarth@webkit.org>
849 Rubber-stamped by Eric Seidel.
851 Move WebCore to Source
852 https://bugs.webkit.org/show_bug.cgi?id=52050
854 Update project files to understand WebCore's new location. I suspect
855 there will be some follow-up patches after we land this patch.
857 * Android.derived.jscbindings.mk:
858 * Android.jscbindings.mk:
859 * Android.v8bindings.mk:
861 * WebCore.gyp/WebCore.gyp:
864 * WebCore.vcproj/WebCore.vcproj:
865 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
866 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
868 2011-01-07 Justin Garcia <justin.garcia@apple.com>
870 Reviewed by Dan Bernstein.
872 https://bugs.webkit.org/show_bug.cgi?id=51851
873 Implement RenderSVGInlineText::localCaretRect()
875 * rendering/svg/RenderSVGInlineText.cpp:
876 (WebCore::RenderSVGInlineText::localCaretRect): Implemented.
878 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
880 Unreviewed; Added the missing null pointer check for r75293.
883 (WebCore::Document::adoptNode):
885 2011-01-07 Stephanie Lewis <slewis@apple.com>
887 Reviewed by Geoff Garen.
889 <rdar://problem/8649617> Migrate memory tracking from Safari to WebKit
890 https://bugs.webkit.org/show_bug.cgi?id=50799 Add Memory Sampler to WebKit
892 Add a sampler for printing off process memory statistics.
897 2011-01-06 Ryosuke Niwa <rniwa@webkit.org>
899 Reviewed by Adam Barth.
901 onbeforeunload is broken for framesets
902 https://bugs.webkit.org/show_bug.cgi?id=19418
904 Added beforeunload event support for sub frames. WebKit's implementation tries to match
905 that of Internet Explorer as much as possible. beforeunload event is fired for each and
906 every descendent of a frame that is about to navigate.
908 When a value other than null is returned by a beforeunload handler, a confirmation dialog
909 is shown for each handler (calls chrome's runBeforeUnloadConfirmPanel) just like it is done
912 In addition, navigation is forbidden while beforeunload handlers are being called.
913 Setting values to location.href, location.reload, and other means of navigations are thus
914 ignored while beforeunload event handler is being ran, matching Internet Explorer's behavior.
916 Because navigation needs to prevented globally, NavigationDisablerForBeforeUnload is added to
917 NavigationScheduler.h, which is instantiated as a RAII object in FrameLoader::shouldClose.
919 Tests: fast/events/before-unload-adopt-subframe-to-outside.html
920 fast/events/before-unload-adopt-within-subframes.html
921 fast/events/before-unload-forbidden-navigation.html
922 fast/events/before-unload-in-multiple-subframes.html
923 fast/events/before-unload-in-subframe.html
924 fast/events/before-unload-javascript-navigation.html
925 fast/events/before-unload-remove-and-add-subframe.html
926 fact/events/before-unload-remove-itself.html
927 fast/events/before-unload-with-subframes.html
929 * loader/FrameLoader.cpp:
930 (WebCore::FrameLoader::shouldClose): Calls fireBeforeUnloadEvent on m_frame and m_frame's
931 descendents. Returns true only if every call to fireBeforeUnloadEvent returned true.
932 (WebCore::FrameLoader::fireBeforeUnloadEvent): Fires a beforeunload event and calls
933 chrome's runBeforeUnloadConfirmPanel as needed.
934 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Calls shouldClose for all frames.
935 * loader/FrameLoader.h:
936 * loader/NavigationScheduler.cpp:
937 (WebCore::NavigationScheduler::shouldScheduleNavigation): Checks the nullity of Page and calls
938 NavigationDisablerForBeforeUnload::isNavigationAllowed when url is not javascript scheme.
939 (WebCore::NavigationScheduler::scheduleRedirect): Calls shouldScheduleNavigation.
940 (WebCore::NavigationScheduler::scheduleLocationChange): Ditto.
941 (WebCore::NavigationScheduler::scheduleRefresh): Ditto.
942 (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
943 * loader/NavigationScheduler.h:
944 (WebCore::NavigationDisablerForBeforeUnload::NavigationDisablerForBeforeUnload): Disables navigation.
945 (WebCore::NavigationDisablerForBeforeUnload::~NavigationDisablerForBeforeUnload): Enables navigation
946 when called on the last instance of NavigationDisablerForBeforeUnload.
947 (WebCore::NavigationDisablerForBeforeUnload::isNavigationAllowed): Returns true if there are no instance
948 of NavigationDisablerForBeforeUnload left on the stack.
950 2011-01-07 Martin Robinson <mrobinson@igalia.com>
954 * GNUmakefile.am: Add RenderFullScreen.cpp to the sources list.
955 * rendering/RenderFullScreen.cpp:
956 (RenderFullScreen::setAnimating): Guard the call to contentChanged
957 with ENABLED(ACCELERATED_COMPOSITING).
959 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
961 Unreviewed; speculative fix for Windows debug build.
963 * bindings/js/JSBindingsAllInOne.cpp:
965 2011-01-07 Ryosuke Niwa <rniwa@webkit.org>
967 Reviewed by Ojan Vafai.
969 Adopting an iframe to a child frame results in stack overflow
970 https://bugs.webkit.org/show_bug.cgi?id=52018
972 Throws an exception when a document adopts an iframe that is an ancestor
973 of the document in the frame hierarchy. New behavior matches that of Firefox.
975 Test: fast/html/adopt-parent-frame.html
978 (WebCore::Document::adoptNode):
980 2011-01-07 Mihai Parparita <mihaip@chromium.org>
982 Reviewed by Darin Fisher.
984 [Chromium] Scrollbar code cleanup
985 https://bugs.webkit.org/show_bug.cgi?id=52073
987 Scrollbar code cleanup:
988 - Remove ScrollbarThemeMac.{mm|h} from the mac sources list, we use
989 ScrollbarThemeChromiumMac.{mm|h}
990 - Remove USE_WEB_THEME_ENGINE_TO_PAINT_THUMB #define now that switch to
991 WebThemeEngine is permanent
992 - Fix typo in Linux scrollbar enum name
994 No new tests (compiles).
997 * platform/chromium/ChromiumBridge.h:
998 * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
999 (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
1000 * platform/chromium/ScrollbarThemeChromiumMac.mm:
1001 (WebCore::scrollbarStateToThemeState):
1002 (WebCore::ScrollbarThemeChromiumMac::paint):
1004 2011-01-07 Jer Noble <jer.noble@apple.com>
1006 GTK Linux build fix: isDocumentRunningFullScreenAnimation should
1007 be protected both by ENABLE(FULLSCREEN_API) && USE(ACCELERATED_COMPOSITING)
1009 * page/FrameView.cpp:
1011 2011-01-07 Rafael Weinstein <rafaelw@chromium.org>
1013 Reviewed by Eric Seidel.
1015 Cleanup: Fold shadowParentNode into shadowHost
1016 https://bugs.webkit.org/show_bug.cgi?id=51059
1018 Replaces all uses of shadowParentNode.
1020 No new tests because no behavior has changed.
1022 * css/CSSStyleSelector.cpp:
1023 (WebCore::CSSStyleSelector::initForStyleResolve):
1025 (WebCore::Node::shadowHost):
1026 (WebCore::Node::shadowAncestorNode):
1027 (WebCore::eventTargetRespectingSVGTargetRules):
1028 (WebCore::Node::getEventAncestors):
1030 * editing/Editor.cpp:
1031 (WebCore::Editor::findString):
1032 * page/DragController.cpp:
1033 (WebCore::asFileInput):
1034 * page/EventHandler.cpp:
1035 (WebCore::EventHandler::handleMousePressEvent):
1036 (WebCore::instanceAssociatedWithShadowTreeElement):
1037 (WebCore::EventHandler::dispatchMouseEvent):
1038 * rendering/RenderBlock.cpp:
1039 (WebCore::RenderBlock::hasLineIfEmpty):
1040 * rendering/RenderSVGShadowTreeRootContainer.cpp:
1041 (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement):
1042 * svg/SVGStyledElement.cpp:
1043 (WebCore::SVGStyledElement::title):
1045 2011-01-07 Chris Marrin <cmarrin@apple.com>
1049 I mistakenly included a Windows only file in a
1050 cross platform file.
1052 * platform/graphics/ca/GraphicsLayerCA.cpp:
1054 2011-01-07 Chris Marrin <cmarrin@apple.com>
1058 Get rid of include of <QuartzCore/QuartzCore.h>
1060 * platform/graphics/ca/GraphicsLayerCA.cpp:
1062 2011-01-07 Jer Noble <jer.noble@apple.com>
1064 Further build fixes. Add a ENABLE(FULLSCREEN_API) guard around
1065 the implementation of requiresCompositingfForFullScreen.
1067 * rendering/RenderLayerCompositor.cpp:
1068 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
1070 2011-01-07 Jer Noble <jer.noble@apple.com>
1072 No review, build fix only. Removed parameter who was causing
1073 a warning in Release builds.
1076 (WebCore::Document::webkitDidExitFullScreenForElement):
1078 2011-01-07 Chris Marrin <cmarrin@apple.com>
1082 Use new wkCACFLayerGetContextUserData function
1084 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1086 2011-01-07 James Robinson <jamesr@chromium.org>
1088 Fix compile bustage due to bad merge in 75276.
1090 * page/animation/AnimationController.cpp:
1091 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1093 2010-12-17 Jer Noble <jer@kokode.apple.com>
1095 Reviewed by Simon Fraser.
1097 Implement WebKit Full Screen support.
1098 https://bugs.webkit.org/show_bug.cgi?id=49481
1099 rdar://problem/8247444
1101 Mark for export all those WebCore functions needed by WebFullscreenController.
1105 2010-12-17 Jer Noble <jer@kokode.apple.com>
1107 Reviewed by Simon Fraser.
1109 Implement WebKit Full Screen support.
1110 https://bugs.webkit.org/show_bug.cgi?id=49481
1111 rdar://problem/8247444
1113 screenRect is useful for more than just HTMLMediaElements. Promote it into
1116 * dom/Element.cpp: Moved into Element from HTMLMediaElement.
1117 * dom/Element.h: Ditto.
1119 * html/HTMLMediaElement.cpp: Moved screenRect into Element.
1120 * html/HTMLMediaElement.h: Ditto.
1121 * WebCore.exp.in: Modify the exports list to reflect the new symbol name.
1123 2010-12-17 Jer Noble <jer@kokode.apple.com>
1125 Reviewed by Simon Fraser.
1127 Implement WebKit Full Screen support.
1128 https://bugs.webkit.org/show_bug.cgi?id=49481
1129 rdar://problem/8247444
1131 The RenderFullScreen is intended to be used by clients of that API to allow a DOM subtree to
1132 be rendered outside its original Frame. Because of this, there are a few areas of the
1133 rendering code which need to be special cased: RenderFullScreen layers should not be clipped
1134 to the viewport, as they will almost always be rendering outside the viewport area;
1135 RenderFullScreen graphics layers should not be reparented by the RenderLayerCompositor, as
1136 the client will likely want to reparent the platformLayer into their own fullscreen platform
1137 window; the FrameView must update the RenderFullScreen graphics layer tree separately from
1138 the root layer, as the two trees are disconnected.
1140 * page/FrameView.cpp:
1141 (WebCore::FrameView::updateCompositingLayers): Special treatment for fullscreen renderer.
1142 (WebCore::FrameView::syncCompositingStateRecursive): Ditto.
1143 (WebCore::FrameView::paintContents): Ditto.
1144 * rendering/RenderLayer.h: Add a new ContentChangeType enum entry for FullScreen.
1145 * rendering/RenderLayer.cpp:
1146 (WebCore::RenderLayer::contentChanged): Add support for above.
1147 * rendering/RenderLayerBacking.cpp:
1148 (WebCore::layerOrAncestorIsFullScreen): New function.
1149 (WebCore::RenderLayerBacking::updateCompositedBounds): Do not clip if the layerOrAncestorIsFullScreen.
1150 * rendering/RenderLayerCompositor.cpp:
1151 (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Special treatment for fullscreen renderer.
1152 (WebCore::RenderLayerCompositor::requiresCompositingLayer): Ditto.
1153 (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen): Ditto.
1154 * rendering/RenderLayerCompositor.h:
1156 2010-12-17 Jer Noble <jer@kokode.apple.com>
1158 Reviewed by Simon Fraser.
1160 Implemented non-accelerated fullscreen support. The Document will now vend a RenderFullScreen object for clients to
1161 use to relocate the fullscreen element subtree.
1163 https://bugs.webkit.org/show_bug.cgi?id=49481
1164 rdar://problem/8247444
1166 * css/CSSStyleSelector.cpp:
1167 (WebCore::loadFullScreenRulesIfNeeded): Change webkitFullScreen -> webkitIsFullScreen.
1168 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Ditto.
1170 (WebCore::Document::Document): Initialize m_fullScreenRenderer.
1171 (WebCore::Document::detach): Call setFullScreenRenderer(0).
1172 (WebCore::Document::nodeWillBeRemoved): Replicate the logic in webkitWillEnterFullScreenForElement.
1173 (WebCore::Document::webkitWillEnterFullScreenForElement): Detach the fullscreen element to cause
1174 a new RenderFullScreen renderer to be created with the new fullscreen element.
1175 (WebCore::Document::webkitDidEnterFullScreenForElement): Notify clients of a fullscreen change
1176 here, rather in "willEnter", to avoid reentrancy problems when clients remove nodes in response
1177 to webkitfullscreenchange events.
1178 (WebCore::Document::webkitWillExitFullScreenForElement): Recalculate the fullscreen element's style.
1179 (WebCore::Document::webkitDidExitFullScreenForElement): Ditto.
1180 (WebCore::Document::setFullScreenRenderer): Accessor for m_fullScreenRenderer.
1181 (WebCore::Document::setFullScreenRendererSize): Set the style on the m_fullScreenRenderer with a new
1182 size; this keeps clients from having to access the renderer's style directly.
1183 (WebCore::Document::setFullScreenRendererBackgroundColor): Ditto.
1185 (WebCore::Document::webkitIsFullScreen): Change webkitFullScreen -> webkitIsFullScreen.
1186 (WebCore::Document::fullScreenRenderer): Accessor.
1189 (WebCore::Node::createRendererIfNeeded): If the document is in fullscreen mode, create a RenderFullScreen
1190 object to insert between the fullscreen element and its parent.
1191 * page/ChromeClient.h:
1192 (WebCore::ChromeClient::fullScreenRendererChanged): Added.
1193 * rendering/MediaControlElements.cpp:
1194 (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): Change webkitFullScreen -> webkitIsFullScreen.
1196 2010-12-17 Jer Noble <jer@kokode.apple.com>
1198 Reviewed by Simon Fraser.
1200 Implement WebKit Full Screen support.
1201 https://bugs.webkit.org/show_bug.cgi?id=49481
1202 rdar://problem/8247444
1204 This patch introduces a new RenderObject type: RenderFullScreen. The RenderFullScreen renderer
1205 will be used to implement new FullScreen APIs. Because the RenderFullScreen object will be the
1206 parent of the current fullscreen element, the style rules for fullscreen objects must change to
1209 * WebCore.xcodeproj/project.pbxproj:
1210 * rendering/RenderFullScreen.cpp: Added.
1211 (RenderFullScreen::setAnimating): Sets the m_isAnimating flag.
1212 (RenderFullScreen::createFullScreenStyle): Returns a new RenderStyle containing the default stye
1213 for RenderFullScreen objects.
1214 * rendering/RenderFullScreen.h: Added.
1215 (WebCore::RenderFullScreen::isRenderFullScreen): Added. Overrides the RenderObject version.
1216 * rendering/RenderObject.h:
1217 (WebCore::RenderObject::isRenderFullScreen): Added. Used for type-checking RenderFullScreen objects.
1218 * css/fullscreen.css: Modified the contained fullscreen styles.
1221 2011-01-07 James Robinson <jamesr@chromium.org>
1223 Revert "Implement mozilla's animationTime property"
1224 https://bugs.webkit.org/show_bug.cgi?id=51952
1226 This approach isn't quite right.
1234 * WebCore.vcproj/WebCore.vcproj:
1235 * WebCore.xcodeproj/project.pbxproj:
1236 * page/DOMWindow.cpp:
1238 * page/DOMWindow.idl:
1242 (WebCore::Page::Page):
1244 * page/animation/AnimationController.cpp:
1245 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1246 * page/animation/AnimationTimeController.cpp: Removed.
1247 * page/animation/AnimationTimeController.h: Removed.
1249 2011-01-07 Jan Erik Hanssen <jhanssen@sencha.com>
1251 Reviewed by Andreas Kling.
1253 [Qt] Black text on black buttons using a dark theme
1254 https://bugs.webkit.org/show_bug.cgi?id=35024
1256 Implement RenderThemeQt::systemColor to apply the correct colors from the current Qt style.
1258 * platform/qt/RenderThemeQt.cpp:
1259 (WebCore::RenderThemeQt::systemColor):
1260 * platform/qt/RenderThemeQt.h:
1262 2011-01-05 Adrienne Walker <enne@google.com>
1264 Reviewed by Kenneth Russell.
1266 Add WEBKIT_lose_context WebGL extension.
1267 https://bugs.webkit.org/show_bug.cgi?id=51492
1269 Tests: fast/canvas/webgl/context-lost-restored.html
1270 fast/canvas/webgl/context-lost.html
1273 * DerivedSources.make:
1278 * WebCore.xcodeproj/project.pbxproj:
1279 * bindings/js/JSWebGLRenderingContextCustom.cpp:
1281 (WebCore::JSWebGLRenderingContext::getSupportedExtensions):
1282 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1283 (WebCore::toV8Object):
1284 (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallback):
1285 * html/canvas/WebGLExtension.h:
1286 * html/canvas/WebGLRenderingContext.cpp:
1287 (WebCore::WebGLRenderingContext::WebGLRenderingContextRestoreTimer::fired):
1288 (WebCore::WebGLRenderingContext::getExtension):
1289 (WebCore::WebGLRenderingContext::getSupportedExtensions):
1290 (WebCore::WebGLRenderingContext::forceLostContext):
1291 (WebCore::WebGLRenderingContext::onLostContext):
1292 (WebCore::WebGLRenderingContext::getNumberOfExtensions):
1293 (WebCore::WebGLRenderingContext::getExtensionNumber):
1294 * html/canvas/WebGLRenderingContext.h:
1295 * html/canvas/WebKitLoseContext.cpp: Copied from WebCore/html/canvas/WebGLExtension.h.
1296 (WebCore::WebKitLoseContext::WebKitLoseContext):
1297 (WebCore::WebKitLoseContext::~WebKitLoseContext):
1298 (WebCore::WebKitLoseContext::getName):
1299 (WebCore::WebKitLoseContext::create):
1300 (WebCore::WebKitLoseContext::loseContext):
1301 * html/canvas/WebKitLoseContext.h: Copied from WebCore/html/canvas/WebGLExtension.h.
1302 * html/canvas/WebKitLoseContext.idl: Copied from WebCore/html/canvas/WebGLExtension.h.
1304 2011-01-07 Chris Marrin <cmarrin@apple.com>
1308 Build fix for Chromium. Missing include.
1310 * page/animation/AnimationBase.cpp:
1312 2011-01-07 Chris Marrin <cmarrin@apple.com>
1318 * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1320 2011-01-06 Gavin Barraclough <barraclough@apple.com>
1322 Reviewed by Geoff Garen.
1324 Bug 52035 - Unregistering DOMWrapperWorlds is unsafe
1326 The method DOMWrapperWorld::unregisterWorld() effectively calls the DOMWrapperWorld's
1327 destructor early, in order to release wrappers once we know we no longer intend to use them.
1328 Whilst it is okay to have a method to throw away wrappers (assuming we know we're willing to
1329 lose any state stored on them) it is not okay to deregister the world from the JSGlobalData.
1330 A sequence of events that triggers the bug would look like this:
1332 (1) Create a DOMWrapperWorld.
1333 (2) Register a timer in the world.
1334 (3) Call unregisterWorld() on the world.
1335 (4) Timer goes off, code is executed in the world, creates a Node not attached to a Document.
1336 (5) We attempt to lookup a wrapper map for the world on the JSGlobalData, but because we've
1337 called forgetWorld() none exists.
1338 (6) Attempt to add a wrapper to a NULL map.
1340 Fix the problem by not removing the JSGlobalData's wrapper map until the world really goes away.
1343 * bindings/js/DOMWrapperWorld.cpp:
1344 (WebCore::DOMWrapperWorld::DOMWrapperWorld):
1345 (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1346 (WebCore::DOMWrapperWorld::clearWrappers):
1347 * bindings/js/DOMWrapperWorld.h:
1349 2011-01-07 Chris Marrin <cmarrin@apple.com>
1351 Rubber-stamped by Simon Fraser.
1353 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1354 https://bugs.webkit.org/show_bug.cgi?id=49388
1356 Final step in unifying GraphicsLayer logic across Win and Mac. This
1357 implements the Windows side classes for PlatformCALayer and supporting
1358 classes. Also changed MediaPlayer to use new PlatformCALayerClient
1359 so it can use PlatformCALayer directly rather than a dummy GraphicsLayer.
1360 WKCACFLayerRenderer now does the task of notifying animations of their
1361 start time. Also commented out an assert in AnimationBase because
1362 AnimationController's frame time is not in sync with the new
1363 AnimationTimeController. I've opened a new bug for that issue:
1365 https://bugs.webkit.org/show_bug.cgi?id=52037
1367 This also includes the Mac side changes backed out in
1368 http://trac.webkit.org/changeset/75227.
1370 * WebCore.vcproj/WebCore.vcproj:
1371 * WebCore.vcproj/WebCoreCommon.vsprops:
1372 * WebCore.vcproj/copyForwardingHeaders.cmd:
1373 * WebCore.xcodeproj/project.pbxproj:
1375 * page/animation/AnimationBase.cpp:
1376 (WebCore::AnimationBase::freezeAtTime):
1377 (WebCore::AnimationBase::getElapsedTime):
1378 * page/animation/AnimationController.cpp:
1379 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
1380 * page/animation/KeyframeAnimation.cpp:
1381 (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty):
1382 * platform/graphics/GraphicsLayer.h:
1383 (WebCore::GraphicsLayer::layerDidDisplay):
1384 (WebCore::GraphicsLayer::showDebugBorders):
1385 (WebCore::GraphicsLayer::showRepaintCounter):
1386 * platform/graphics/ca/GraphicsLayerCA.cpp:
1387 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
1388 (WebCore::GraphicsLayerCA::setContentsToImage):
1389 (WebCore::GraphicsLayerCA::setContentsToMedia):
1390 (WebCore::GraphicsLayerCA::layerDidDisplay):
1391 (WebCore::GraphicsLayerCA::updateSublayerList):
1392 * platform/graphics/ca/GraphicsLayerCA.h:
1393 (WebCore::GraphicsLayerCA::platformCALayer):
1394 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
1395 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
1396 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
1397 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
1398 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
1399 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
1400 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
1401 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
1402 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
1403 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
1404 * platform/graphics/ca/PlatformCAAnimation.h:
1405 * platform/graphics/ca/PlatformCALayer.h:
1406 (WebCore::PlatformCALayer::owner):
1407 (WebCore::PlatformCALayer::animationStarted):
1408 * platform/graphics/ca/PlatformCALayerClient.h: Copied from WebCore/platform/graphics/ca/PlatformCALayerClient.h.
1409 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1410 (PlatformCALayer::setOwner):
1411 (PlatformCALayer::create):
1412 (PlatformCALayer::PlatformCALayer):
1413 (PlatformCALayer::contents):
1414 (PlatformCALayer::setContents):
1415 * platform/graphics/ca/win: Added.
1416 * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: Added.
1417 * platform/graphics/ca/win/PlatformCALayerWin.cpp: Added.
1418 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: Added.
1419 * platform/graphics/ca/win/PlatformCALayerWinInternal.h: Added.
1420 (WebCore::PlatformCALayerWinInternal::owner):
1421 * platform/graphics/mac/WebGLLayer.mm:
1422 (-[WebGLLayer display]):
1423 * platform/graphics/mac/WebLayer.h:
1424 * platform/graphics/mac/WebLayer.mm:
1425 (drawLayerContents):
1426 (setLayerNeedsDisplayInRect):
1427 (-[WebLayer setNeedsDisplay]):
1428 (-[WebLayer display]):
1429 * platform/graphics/mac/WebTiledLayer.mm:
1430 (-[WebTiledLayer setNeedsDisplay]):
1431 (-[WebTiledLayer display]):
1432 * platform/graphics/win/GraphicsContextCGWin.cpp:
1433 (WebCore::CGContextWithHDC):
1434 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
1435 (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
1436 (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
1437 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
1438 (WebCore::MediaPlayerPrivateFullscreenWindow::rootChildLayer):
1439 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1440 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::~LayerClient):
1441 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerRespondsToLayoutChanges):
1442 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerAnimationStarted):
1443 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOrientation):
1444 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerPaintContents):
1445 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowDebugBorders):
1446 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerShowRepaintCounter):
1447 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerIncrementRepaintCount):
1448 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerContentsOpaque):
1449 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerDrawsContent):
1450 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayerDidDisplay):
1451 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
1452 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
1453 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
1454 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
1455 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
1456 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1457 * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1458 (WebCore::MediaPlayerPrivate::movieNewImageAvailable):
1459 (WebCore::MediaPlayerPrivate::createLayerForMovie):
1460 * platform/graphics/win/WKCACFLayerRenderer.cpp:
1461 (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer):
1462 (WebCore::WKCACFLayerRenderer::rootLayer):
1463 (WebCore::WKCACFLayerRenderer::addPendingAnimatedLayer):
1464 (WebCore::WKCACFLayerRenderer::setRootChildLayer):
1465 (WebCore::WKCACFLayerRenderer::setNeedsDisplay):
1466 (WebCore::WKCACFLayerRenderer::destroyRenderer):
1467 (WebCore::WKCACFLayerRenderer::render):
1468 * platform/graphics/win/WKCACFLayerRenderer.h:
1469 (WebCore::WKCACFLayerRendererClient::animationsStarted):
1470 (WebCore::WKCACFLayerRendererClient::syncCompositingState):
1471 * rendering/RenderLayerBacking.cpp:
1472 (WebCore::RenderLayerBacking::showDebugBorders):
1473 (WebCore::RenderLayerBacking::showRepaintCounter):
1474 * rendering/RenderLayerCompositor.cpp:
1475 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
1476 * rendering/RenderLayerCompositor.h:
1477 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
1478 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
1479 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
1480 (WebCore::RenderLayerCompositor::notifySyncRequired):
1481 (WebCore::RenderLayerCompositor::paintContents):
1482 (WebCore::RenderLayerCompositor::showDebugBorders):
1483 (WebCore::RenderLayerCompositor::showRepaintCounter):
1485 2011-01-07 Nate Chapin <japhet@chromium.org>
1487 Reviewed by Darin Fisher.
1489 Let PingLoader send cookies if FrameLoaderClient permits it.
1490 https://bugs.webkit.org/show_bug.cgi?id=51898
1492 Test: http/tests/navigation/ping-cookie.html
1494 * loader/PingLoader.cpp:
1495 (WebCore::PingLoader::PingLoader): Set m_shouldUseCredentialStorage
1496 at load start time, since we won't be able to call
1497 FrameLoaderClient::shouldUseCredentialStorage() later.
1498 * loader/PingLoader.h:
1499 (WebCore::PingLoader::shouldUseCredentialStorage):
1501 2011-01-07 Xan Lopez <xlopez@igalia.com>
1503 Unreviewed, rolling out r75256.
1504 http://trac.webkit.org/changeset/75256
1505 https://bugs.webkit.org/show_bug.cgi?id=50869
1507 Broke GTK+ canvas tests
1509 * platform/graphics/cairo/PathCairo.cpp:
1510 (WebCore::Path::addArc):
1512 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1514 Reviewed by Martin Robinson.
1516 [GTK] Port scrollbar painting to GtkStyleContext
1517 https://bugs.webkit.org/show_bug.cgi?id=52051
1519 Use GtkStyleContext API to paint scrollbars when building with
1522 No new tests. This should not change functionality.
1524 * platform/gtk/RenderThemeGtk.h:
1525 * platform/gtk/RenderThemeGtk3.cpp:
1526 (WebCore::RenderThemeGtk::gtkScrollbarStyle):
1527 * platform/gtk/ScrollbarThemeGtk.cpp:
1528 * platform/gtk/ScrollbarThemeGtk.h:
1529 * platform/gtk/ScrollbarThemeGtk2.cpp:
1530 (WebCore::gtkStyleSetCallback):
1531 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1532 * platform/gtk/ScrollbarThemeGtk3.cpp:
1533 (WebCore::gtkStyleChangedCallback):
1534 (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk):
1535 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
1536 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
1537 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
1538 (WebCore::ScrollbarThemeGtk::paintThumb):
1539 (WebCore::ScrollbarThemeGtk::paintButton):
1541 2011-01-07 Dan Bernstein <mitz@apple.com>
1543 Reviewed by Darin Adler.
1545 <rdar://problem/8783318> Text emphasis marks should not appear over characters that have ruby annotations
1546 https://bugs.webkit.org/show_bug.cgi?id=51267
1548 Test: fast/text/emphasis-avoid-ruby.html
1550 * rendering/InlineFlowBox.cpp:
1551 (WebCore::InlineFlowBox::placeBoxesInBlockDirection): Use getEmphasisMarkPosition() to check if
1552 there are text emphasis marks.
1553 (WebCore::InlineFlowBox::addTextBoxVisualOverflow): Ditto.
1554 (WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Ditto.
1555 * rendering/InlineTextBox.cpp:
1556 (WebCore::InlineTextBox::getEmphasisMarkPosition): Added. Returns true and sets the emphasis mark
1557 position if the text is style with emphasis marks and there isn’t a ruby annotation that should
1558 suppress them. Otherwise returns false.
1559 (WebCore::InlineTextBox::paint): Use getEmphasisMarkPosition() to check if emphasis marks should
1561 * rendering/InlineTextBox.h:
1563 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1565 Reviewed by Martin Robinson.
1567 [cairo] Rendering a lot of arcs on top of each other causes time
1569 https://bugs.webkit.org/show_bug.cgi?id=50869
1571 We avoid the situation where we have to render the same arc
1572 multiple times over itself. Now it renders just one oval and
1573 moves to the end angle.
1575 * platform/graphics/cairo/PathCairo.cpp:
1576 (WebCore::Path::addArc):
1578 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com>
1580 Reviewed by Martin Robinson.
1582 [GTK] Port buttons painting to GtkStyleContext
1583 https://bugs.webkit.org/show_bug.cgi?id=51812
1585 Use GtkStyleContext API to paint buttons when building with GTK+
1588 No new tests. This should not change functionality.
1590 * platform/gtk/RenderThemeGtk3.cpp:
1591 (WebCore::adjustRectForFocus):
1592 (WebCore::RenderThemeGtk::adjustRepaintRect):
1593 (WebCore::RenderThemeGtk::paintButton):
1595 2011-01-07 Zhenyao Mo <zmo@google.com>
1597 Unreviewed, build fix.
1599 * html/canvas/WebGLRenderingContext.cpp:
1600 (WebCore::WebGLRenderingContext::copyTexSubImage2D):
1602 2011-01-06 Zhenyao Mo <zmo@google.com>
1604 Reviewed by Kenneth Russell.
1606 copyTexSubImage2D shouldn't have undefined pixels
1607 https://bugs.webkit.org/show_bug.cgi?id=51559
1609 * html/canvas/WebGLRenderingContext.cpp:
1610 (WebCore::WebGLRenderingContext::copyTexImage2D): Refactor to share some code with copyTexSubImage2D through helper function clip2D.
1611 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Initialize undefined pixels to 0.
1612 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Seperate the validation of level from validateTexFuncParameters.
1613 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Ditto.
1614 * html/canvas/WebGLRenderingContext.h:
1615 * html/canvas/WebGLTexture.cpp:
1616 (WebCore::WebGLTexture::getType): Expose the type of a texture.
1617 * html/canvas/WebGLTexture.h:
1619 2011-01-07 Takashi Toyoshima <toyoshim@google.com>
1621 Reviewed by Kenneth Russell.
1623 cleanupAfterGraphicsCall() is never called in
1624 WebGLRenderingContext::checkFramebufferStatus()
1625 https://bugs.webkit.org/show_bug.cgi?id=51668
1627 No new tests. This is a trivial bug.
1629 * html/canvas/WebGLRenderingContext.cpp:
1630 (WebCore::WebGLRenderingContext::checkFramebufferStatus):
1632 2011-01-07 Mario Sanchez Prada <msanchez@igalia.com>
1634 Reviewed by Chris Fleizach.
1636 GTK: AX: atk tests need to be updated after recent changes
1637 https://bugs.webkit.org/show_bug.cgi?id=51932
1639 Make sure we can always get the right accesssible parent for an
1640 AtkObject when traversing the hierarchy bottom up.
1642 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1643 (isRootObject): New function to check whether an
1644 AccessibilityObject is the root one or not, according to the
1645 latest changes in the hierarchy.
1646 (atkParentOfRootObject): Gets the appropriate AtkObject from GTK's
1647 GAIL as the parent of the root AtkObject from WebCore.
1648 (webkit_accessible_get_parent): Use atkParentOfRootObject.
1649 (webkit_accessible_get_index_in_parent): Ditto.
1650 (atkRole): Expose AccessibilityObjects with ScrollAreaRole as
1651 AtkObject's of role ATK_ROLE_SCROLLED_PANE.
1653 2011-01-07 Zhenyao Mo <zmo@google.com>
1655 Unreviewed, Mac 32-bit build fix.
1656 Use float instead of double in GL function arguments to avoid implicit type down casting.
1658 * html/canvas/WebGLRenderingContext.cpp:
1659 (WebCore::WebGLRenderingContext::blendColor):
1660 (WebCore::WebGLRenderingContext::clearColor):
1661 (WebCore::WebGLRenderingContext::clearDepth):
1662 (WebCore::WebGLRenderingContext::depthRange):
1663 (WebCore::WebGLRenderingContext::lineWidth):
1664 (WebCore::WebGLRenderingContext::polygonOffset):
1665 (WebCore::WebGLRenderingContext::sampleCoverage):
1666 * html/canvas/WebGLRenderingContext.h:
1667 * html/canvas/WebGLRenderingContext.idl:
1669 2011-01-07 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
1671 Reviewed by Xan Lopez.
1673 [GTK] Port slider painting to GtkStyleContext
1674 https://bugs.webkit.org/show_bug.cgi?id=51874
1676 Use GtkStyleContext API to paint sliders when building with GTK+
1677 3.x. Also move the code to adjust media slider to its own method
1678 in RenderThemeGtk.cpp since it's common to both gtk 2 and 3.
1680 No new tests. This should not change functionality.
1682 * platform/gtk/RenderThemeGtk.cpp:
1683 (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
1684 * platform/gtk/RenderThemeGtk.h:
1685 * platform/gtk/RenderThemeGtk2.cpp:
1686 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1687 * platform/gtk/RenderThemeGtk3.cpp:
1688 (WebCore::RenderThemeGtk::paintSliderTrack):
1689 (WebCore::RenderThemeGtk::paintSliderThumb):
1690 (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1692 2011-01-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1694 Reviewed by Andreas Kling.
1696 [Qt] [WK2] QtWebKit does not build in debug, FileReader.cpp does not compile
1697 https://bugs.webkit.org/show_bug.cgi?id=51992
1699 Add the missing header. CString is used in debug by the calls to LOG().
1701 * fileapi/FileReader.cpp:
1703 2011-01-07 Alejandro G. Castro <alex@igalia.com>
1705 Reviewed by Martin Robinson.
1707 Cairo's ContextShadow may mis-render some box shadows
1708 https://bugs.webkit.org/show_bug.cgi?id=51374
1710 The space required for the internal shadow of the corners was not
1711 correctly considered.
1713 * platform/graphics/cairo/ContextShadowCairo.cpp:
1714 (WebCore::ContextShadow::drawRectShadow):
1716 2011-01-06 Adam Barth <abarth@webkit.org>
1718 Reviewed by Darin Adler.
1720 REGRESSION (r74663): ASSERTION FAILED: m_tokenizer->lineNumber() == line.zeroBasedInt()
1721 https://bugs.webkit.org/show_bug.cgi?id=52013
1723 When excluding line numbers for composite strings, we forgot to exclude
1724 the line number for the current string!
1726 Test: fast/parser/line-number-composite-segmented-string.html
1728 * platform/text/SegmentedString.cpp:
1729 (WebCore::SegmentedString::setExcludeLineNumbers):
1731 2011-01-06 Chris Marrin <cmarrin@apple.com>
1735 Back out changes in http://trac.webkit.org/changeset/75199
1736 This breaks the Windows build. Fixing it on that side. Until
1737 then I'll back this out.
1739 2011-01-06 Jenn Braithwaite <jennb@chromium.org>
1741 Reviewed by Dmitry Titov.
1743 When a live frame is moved between pages, some plug-in DOM methods cease to function
1744 https://bugs.webkit.org/show_bug.cgi?id=45770
1746 Test: fast/frames/iframe-reparenting-plugins.html
1749 (WebCore::Frame::~Frame):
1750 (WebCore::Frame::addObserver):
1751 (WebCore::Frame::removeObserver):
1753 (WebCore::FrameDestructionObserver::~FrameDestructionObserver):
1754 Added observer to be notified when frame is destroyed.
1756 (WebCore::Page::~Page):
1757 (WebCore::Page::refreshPlugins):
1758 PluginData no longer stores page pointer.
1759 * plugins/DOMMimeType.cpp:
1760 (WebCore::DOMMimeType::DOMMimeType):
1761 (WebCore::DOMMimeType::~DOMMimeType):
1762 (WebCore::DOMMimeType::enabledPlugin):
1763 * plugins/DOMMimeType.h:
1764 (WebCore::DOMMimeType::create):
1765 (WebCore::DOMMimeType::frameDestroyed):
1766 Store frame instead of page pointer in DOMMimeType.
1767 * plugins/DOMMimeTypeArray.cpp:
1768 (WebCore::DOMMimeTypeArray::item):
1769 (WebCore::DOMMimeTypeArray::namedItem):
1770 Provide frame to create DOMMimeType.
1771 * plugins/DOMPlugin.cpp:
1772 (WebCore::DOMPlugin::DOMPlugin):
1773 (WebCore::DOMPlugin::~DOMPlugin):
1774 (WebCore::DOMPlugin::item):
1775 (WebCore::DOMPlugin::namedItem):
1776 * plugins/DOMPlugin.h:
1777 (WebCore::DOMPlugin::create):
1778 (WebCore::DOMPlugin::frameDestroyed):
1779 Store frame instead of page pointer in DOMPlugin.
1780 * plugins/DOMPluginArray.cpp:
1781 (WebCore::DOMPluginArray::item):
1782 (WebCore::DOMPluginArray::namedItem):
1783 Provide frame to create DOMPlugin.
1784 * plugins/PluginData.cpp:
1785 (WebCore::PluginData::PluginData):
1786 (WebCore::PluginData::initPlugins):
1787 * plugins/PluginData.h:
1788 No longer stores a pointer to the page.
1789 Added page parameter to initPlugins.
1790 * plugins/PluginDataNone.cpp:
1791 (WebCore::PluginData::initPlugins):
1792 * plugins/chromium/PluginDataChromium.cpp:
1793 (WebCore::PluginData::initPlugins):
1794 * plugins/gtk/PluginDataGtk.cpp:
1795 (WebCore::PluginData::initPlugins):
1796 * plugins/wx/PluginDataWx.cpp:
1797 (WebCore::PluginData::initPlugins):
1798 Updated platforms to add (unused) page parameter to initPlugins.
1800 2011-01-05 Zhenyao Mo <zmo@google.com>
1802 Reviewed by Kenneth Russell.
1804 Define GC3D types to match GL types and use them in GraphicsContext3D
1805 https://bugs.webkit.org/show_bug.cgi?id=45557
1807 * html/canvas/WebGLRenderingContext.cpp:
1808 (WebCore::WebGLRenderingContext::readPixels):
1809 (WebCore::WebGLRenderingContext::validateTexFuncData):
1810 * platform/graphics/GraphicsContext3D.cpp:
1811 (WebCore::GraphicsContext3D::texImage2DResourceSafe):
1812 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1813 (WebCore::GraphicsContext3D::extractImageData):
1814 (WebCore::GraphicsContext3D::extractTextureData):
1815 * platform/graphics/GraphicsContext3D.h:
1816 * platform/graphics/cg/GraphicsContext3DCG.cpp:
1817 (WebCore::GraphicsContext3D::getImageData):
1818 * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1819 (WebCore::SharedGraphicsContext3D::enable):
1820 (WebCore::SharedGraphicsContext3D::disable):
1821 (WebCore::SharedGraphicsContext3D::clear):
1822 (WebCore::SharedGraphicsContext3D::drawArrays):
1823 (WebCore::SharedGraphicsContext3D::getError):
1824 (WebCore::SharedGraphicsContext3D::getIntegerv):
1825 (WebCore::SharedGraphicsContext3D::createFramebuffer):
1826 (WebCore::SharedGraphicsContext3D::createTexture):
1827 (WebCore::SharedGraphicsContext3D::deleteFramebuffer):
1828 (WebCore::SharedGraphicsContext3D::deleteTexture):
1829 (WebCore::SharedGraphicsContext3D::framebufferTexture2D):
1830 (WebCore::SharedGraphicsContext3D::texParameteri):
1831 (WebCore::SharedGraphicsContext3D::texImage2D):
1832 (WebCore::SharedGraphicsContext3D::texSubImage2D):
1833 (WebCore::SharedGraphicsContext3D::readPixels):
1834 (WebCore::SharedGraphicsContext3D::setActiveTexture):
1835 (WebCore::SharedGraphicsContext3D::bindTexture):
1836 (WebCore::SharedGraphicsContext3D::bindFramebuffer):
1837 * platform/graphics/gpu/SharedGraphicsContext3D.h:
1838 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1839 (WebCore::GraphicsContext3D::activeTexture):
1840 (WebCore::GraphicsContext3D::attachShader):
1841 (WebCore::GraphicsContext3D::bindAttribLocation):
1842 (WebCore::GraphicsContext3D::bindBuffer):
1843 (WebCore::GraphicsContext3D::bindFramebuffer):
1844 (WebCore::GraphicsContext3D::bindRenderbuffer):
1845 (WebCore::GraphicsContext3D::bindTexture):
1846 (WebCore::GraphicsContext3D::blendColor):
1847 (WebCore::GraphicsContext3D::blendEquation):
1848 (WebCore::GraphicsContext3D::blendEquationSeparate):
1849 (WebCore::GraphicsContext3D::blendFunc):
1850 (WebCore::GraphicsContext3D::blendFuncSeparate):
1851 (WebCore::GraphicsContext3D::bufferData):
1852 (WebCore::GraphicsContext3D::bufferSubData):
1853 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1854 (WebCore::GraphicsContext3D::clearColor):
1855 (WebCore::GraphicsContext3D::clear):
1856 (WebCore::GraphicsContext3D::clearDepth):
1857 (WebCore::GraphicsContext3D::clearStencil):
1858 (WebCore::GraphicsContext3D::colorMask):
1859 (WebCore::GraphicsContext3D::compileShader):
1860 (WebCore::GraphicsContext3D::copyTexImage2D):
1861 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1862 (WebCore::GraphicsContext3D::cullFace):
1863 (WebCore::GraphicsContext3D::depthFunc):
1864 (WebCore::GraphicsContext3D::depthMask):
1865 (WebCore::GraphicsContext3D::depthRange):
1866 (WebCore::GraphicsContext3D::detachShader):
1867 (WebCore::GraphicsContext3D::disable):
1868 (WebCore::GraphicsContext3D::disableVertexAttribArray):
1869 (WebCore::GraphicsContext3D::drawArrays):
1870 (WebCore::GraphicsContext3D::drawElements):
1871 (WebCore::GraphicsContext3D::enable):
1872 (WebCore::GraphicsContext3D::enableVertexAttribArray):
1873 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
1874 (WebCore::GraphicsContext3D::framebufferTexture2D):
1875 (WebCore::GraphicsContext3D::frontFace):
1876 (WebCore::GraphicsContext3D::generateMipmap):
1877 (WebCore::GraphicsContext3D::getActiveAttrib):
1878 (WebCore::GraphicsContext3D::getActiveUniform):
1879 (WebCore::GraphicsContext3D::getAttachedShaders):
1880 (WebCore::GraphicsContext3D::getAttribLocation):
1881 (WebCore::GraphicsContext3D::getError):
1882 (WebCore::GraphicsContext3D::getString):
1883 (WebCore::GraphicsContext3D::hint):
1884 (WebCore::GraphicsContext3D::isBuffer):
1885 (WebCore::GraphicsContext3D::isEnabled):
1886 (WebCore::GraphicsContext3D::isFramebuffer):
1887 (WebCore::GraphicsContext3D::isProgram):
1888 (WebCore::GraphicsContext3D::isRenderbuffer):
1889 (WebCore::GraphicsContext3D::isShader):
1890 (WebCore::GraphicsContext3D::isTexture):
1891 (WebCore::GraphicsContext3D::lineWidth):
1892 (WebCore::GraphicsContext3D::linkProgram):
1893 (WebCore::GraphicsContext3D::pixelStorei):
1894 (WebCore::GraphicsContext3D::polygonOffset):
1895 (WebCore::GraphicsContext3D::readPixels):
1896 (WebCore::GraphicsContext3D::renderbufferStorage):
1897 (WebCore::GraphicsContext3D::sampleCoverage):
1898 (WebCore::GraphicsContext3D::scissor):
1899 (WebCore::GraphicsContext3D::stencilFunc):
1900 (WebCore::GraphicsContext3D::stencilFuncSeparate):
1901 (WebCore::GraphicsContext3D::stencilMask):
1902 (WebCore::GraphicsContext3D::stencilMaskSeparate):
1903 (WebCore::GraphicsContext3D::stencilOp):
1904 (WebCore::GraphicsContext3D::stencilOpSeparate):
1905 (WebCore::GraphicsContext3D::texParameterf):
1906 (WebCore::GraphicsContext3D::texParameteri):
1907 (WebCore::GraphicsContext3D::uniform1f):
1908 (WebCore::GraphicsContext3D::uniform1fv):
1909 (WebCore::GraphicsContext3D::uniform2f):
1910 (WebCore::GraphicsContext3D::uniform2fv):
1911 (WebCore::GraphicsContext3D::uniform3f):
1912 (WebCore::GraphicsContext3D::uniform3fv):
1913 (WebCore::GraphicsContext3D::uniform4f):
1914 (WebCore::GraphicsContext3D::uniform4fv):
1915 (WebCore::GraphicsContext3D::uniform1i):
1916 (WebCore::GraphicsContext3D::uniform1iv):
1917 (WebCore::GraphicsContext3D::uniform2i):
1918 (WebCore::GraphicsContext3D::uniform2iv):
1919 (WebCore::GraphicsContext3D::uniform3i):
1920 (WebCore::GraphicsContext3D::uniform3iv):
1921 (WebCore::GraphicsContext3D::uniform4i):
1922 (WebCore::GraphicsContext3D::uniform4iv):
1923 (WebCore::GraphicsContext3D::uniformMatrix2fv):
1924 (WebCore::GraphicsContext3D::uniformMatrix3fv):
1925 (WebCore::GraphicsContext3D::uniformMatrix4fv):
1926 (WebCore::GraphicsContext3D::useProgram):
1927 (WebCore::GraphicsContext3D::validateProgram):
1928 (WebCore::GraphicsContext3D::vertexAttrib1f):
1929 (WebCore::GraphicsContext3D::vertexAttrib1fv):
1930 (WebCore::GraphicsContext3D::vertexAttrib2f):
1931 (WebCore::GraphicsContext3D::vertexAttrib2fv):
1932 (WebCore::GraphicsContext3D::vertexAttrib3f):
1933 (WebCore::GraphicsContext3D::vertexAttrib3fv):
1934 (WebCore::GraphicsContext3D::vertexAttrib4f):
1935 (WebCore::GraphicsContext3D::vertexAttrib4fv):
1936 (WebCore::GraphicsContext3D::vertexAttribPointer):
1937 (WebCore::GraphicsContext3D::viewport):
1938 (WebCore::GraphicsContext3D::getBooleanv):
1939 (WebCore::GraphicsContext3D::getBufferParameteriv):
1940 (WebCore::GraphicsContext3D::getFloatv):
1941 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1942 (WebCore::GraphicsContext3D::getIntegerv):
1943 (WebCore::GraphicsContext3D::getProgramiv):
1944 (WebCore::GraphicsContext3D::getProgramInfoLog):
1945 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1946 (WebCore::GraphicsContext3D::getShaderiv):
1947 (WebCore::GraphicsContext3D::getShaderInfoLog):
1948 (WebCore::GraphicsContext3D::getTexParameterfv):
1949 (WebCore::GraphicsContext3D::getTexParameteriv):
1950 (WebCore::GraphicsContext3D::getUniformfv):
1951 (WebCore::GraphicsContext3D::getUniformiv):
1952 (WebCore::GraphicsContext3D::getUniformLocation):
1953 (WebCore::GraphicsContext3D::getVertexAttribfv):
1954 (WebCore::GraphicsContext3D::getVertexAttribiv):
1955 (WebCore::GraphicsContext3D::getVertexAttribOffset):
1956 (WebCore::GraphicsContext3D::texImage2D):
1957 (WebCore::GraphicsContext3D::texSubImage2D):
1958 (WebCore::GraphicsContext3D::createBuffer):
1959 (WebCore::GraphicsContext3D::createFramebuffer):
1960 (WebCore::GraphicsContext3D::createProgram):
1961 (WebCore::GraphicsContext3D::createRenderbuffer):
1962 (WebCore::GraphicsContext3D::createShader):
1963 (WebCore::GraphicsContext3D::createTexture):
1964 (WebCore::GraphicsContext3D::deleteBuffer):
1965 (WebCore::GraphicsContext3D::deleteFramebuffer):
1966 (WebCore::GraphicsContext3D::deleteProgram):
1967 (WebCore::GraphicsContext3D::deleteRenderbuffer):
1968 (WebCore::GraphicsContext3D::deleteShader):
1969 (WebCore::GraphicsContext3D::deleteTexture):
1970 (WebCore::GraphicsContext3D::sizeInBytes):
1971 (WebCore::GraphicsContext3D::synthesizeGLError):
1972 * platform/graphics/qt/GraphicsContext3DQt.cpp:
1973 (WebCore::GraphicsContext3D::activeTexture):
1974 (WebCore::GraphicsContext3D::attachShader):
1975 (WebCore::GraphicsContext3D::getAttachedShaders):
1976 (WebCore::GraphicsContext3D::bindAttribLocation):
1977 (WebCore::GraphicsContext3D::bindBuffer):
1978 (WebCore::GraphicsContext3D::bindFramebuffer):
1979 (WebCore::GraphicsContext3D::bindRenderbuffer):
1980 (WebCore::GraphicsContext3D::bindTexture):
1981 (WebCore::GraphicsContext3D::blendColor):
1982 (WebCore::GraphicsContext3D::blendEquation):
1983 (WebCore::GraphicsContext3D::blendEquationSeparate):
1984 (WebCore::GraphicsContext3D::blendFunc):
1985 (WebCore::GraphicsContext3D::blendFuncSeparate):
1986 (WebCore::GraphicsContext3D::bufferData):
1987 (WebCore::GraphicsContext3D::bufferSubData):
1988 (WebCore::GraphicsContext3D::checkFramebufferStatus):
1989 (WebCore::GraphicsContext3D::clearColor):
1990 (WebCore::GraphicsContext3D::clear):
1991 (WebCore::GraphicsContext3D::clearDepth):
1992 (WebCore::GraphicsContext3D::clearStencil):
1993 (WebCore::GraphicsContext3D::colorMask):
1994 (WebCore::GraphicsContext3D::compileShader):
1995 (WebCore::GraphicsContext3D::copyTexImage2D):
1996 (WebCore::GraphicsContext3D::copyTexSubImage2D):
1997 (WebCore::GraphicsContext3D::cullFace):
1998 (WebCore::GraphicsContext3D::depthFunc):
1999 (WebCore::GraphicsContext3D::depthMask):
2000 (WebCore::GraphicsContext3D::depthRange):
2001 (WebCore::GraphicsContext3D::detachShader):
2002 (WebCore::GraphicsContext3D::disable):
2003 (WebCore::GraphicsContext3D::disableVertexAttribArray):
2004 (WebCore::GraphicsContext3D::drawArrays):
2005 (WebCore::GraphicsContext3D::drawElements):
2006 (WebCore::GraphicsContext3D::enable):
2007 (WebCore::GraphicsContext3D::enableVertexAttribArray):
2008 (WebCore::GraphicsContext3D::framebufferRenderbuffer):
2009 (WebCore::GraphicsContext3D::framebufferTexture2D):
2010 (WebCore::GraphicsContext3D::frontFace):
2011 (WebCore::GraphicsContext3D::generateMipmap):
2012 (WebCore::GraphicsContext3D::getActiveAttrib):
2013 (WebCore::GraphicsContext3D::getActiveUniform):
2014 (WebCore::GraphicsContext3D::getAttribLocation):
2015 (WebCore::GraphicsContext3D::getError):
2016 (WebCore::GraphicsContext3D::getString):
2017 (WebCore::GraphicsContext3D::hint):
2018 (WebCore::GraphicsContext3D::isBuffer):
2019 (WebCore::GraphicsContext3D::isEnabled):
2020 (WebCore::GraphicsContext3D::isFramebuffer):
2021 (WebCore::GraphicsContext3D::isProgram):
2022 (WebCore::GraphicsContext3D::isRenderbuffer):
2023 (WebCore::GraphicsContext3D::isShader):
2024 (WebCore::GraphicsContext3D::isTexture):
2025 (WebCore::GraphicsContext3D::linkProgram):
2026 (WebCore::GraphicsContext3D::pixelStorei):
2027 (WebCore::GraphicsContext3D::polygonOffset):
2028 (WebCore::GraphicsContext3D::readPixels):
2029 (WebCore::GraphicsContext3D::renderbufferStorage):
2030 (WebCore::GraphicsContext3D::sampleCoverage):
2031 (WebCore::GraphicsContext3D::scissor):
2032 (WebCore::GraphicsContext3D::stencilFunc):
2033 (WebCore::GraphicsContext3D::stencilFuncSeparate):
2034 (WebCore::GraphicsContext3D::stencilMask):
2035 (WebCore::GraphicsContext3D::stencilMaskSeparate):
2036 (WebCore::GraphicsContext3D::stencilOp):
2037 (WebCore::GraphicsContext3D::stencilOpSeparate):
2038 (WebCore::GraphicsContext3D::texParameterf):
2039 (WebCore::GraphicsContext3D::texParameteri):
2040 (WebCore::GraphicsContext3D::uniform1f):
2041 (WebCore::GraphicsContext3D::uniform1fv):
2042 (WebCore::GraphicsContext3D::uniform2f):
2043 (WebCore::GraphicsContext3D::uniform2fv):
2044 (WebCore::GraphicsContext3D::uniform3f):
2045 (WebCore::GraphicsContext3D::uniform3fv):
2046 (WebCore::GraphicsContext3D::uniform4f):
2047 (WebCore::GraphicsContext3D::uniform4fv):
2048 (WebCore::GraphicsContext3D::uniform1i):
2049 (WebCore::GraphicsContext3D::uniform1iv):
2050 (WebCore::GraphicsContext3D::uniform2i):
2051 (WebCore::GraphicsContext3D::uniform2iv):
2052 (WebCore::GraphicsContext3D::uniform3i):
2053 (WebCore::GraphicsContext3D::uniform3iv):
2054 (WebCore::GraphicsContext3D::uniform4i):
2055 (WebCore::GraphicsContext3D::uniform4iv):
2056 (WebCore::GraphicsContext3D::uniformMatrix2fv):
2057 (WebCore::GraphicsContext3D::uniformMatrix3fv):
2058 (WebCore::GraphicsContext3D::uniformMatrix4fv):
2059 (WebCore::GraphicsContext3D::useProgram):
2060 (WebCore::GraphicsContext3D::validateProgram):
2061 (WebCore::GraphicsContext3D::vertexAttrib1f):
2062 (WebCore::GraphicsContext3D::vertexAttrib1fv):
2063 (WebCore::GraphicsContext3D::vertexAttrib2f):
2064 (WebCore::GraphicsContext3D::vertexAttrib2fv):
2065 (WebCore::GraphicsContext3D::vertexAttrib3f):
2066 (WebCore::GraphicsContext3D::vertexAttrib3fv):
2067 (WebCore::GraphicsContext3D::vertexAttrib4f):
2068 (WebCore::GraphicsContext3D::vertexAttrib4fv):
2069 (WebCore::GraphicsContext3D::vertexAttribPointer):
2070 (WebCore::GraphicsContext3D::viewport):
2071 (WebCore::GraphicsContext3D::getBooleanv):
2072 (WebCore::GraphicsContext3D::getBufferParameteriv):
2073 (WebCore::GraphicsContext3D::getFloatv):
2074 (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
2075 (WebCore::GraphicsContext3D::getIntegerv):
2076 (WebCore::GraphicsContext3D::getProgramiv):
2077 (WebCore::GraphicsContext3D::getProgramInfoLog):
2078 (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
2079 (WebCore::GraphicsContext3D::getShaderiv):
2080 (WebCore::GraphicsContext3D::getShaderInfoLog):
2081 (WebCore::GraphicsContext3D::getShaderSource):
2082 (WebCore::GraphicsContext3D::getTexParameterfv):
2083 (WebCore::GraphicsContext3D::getTexParameteriv):
2084 (WebCore::GraphicsContext3D::getUniformfv):
2085 (WebCore::GraphicsContext3D::getUniformiv):
2086 (WebCore::GraphicsContext3D::getUniformLocation):
2087 (WebCore::GraphicsContext3D::getVertexAttribfv):
2088 (WebCore::GraphicsContext3D::getVertexAttribiv):
2089 (WebCore::GraphicsContext3D::getVertexAttribOffset):
2090 (WebCore::GraphicsContext3D::texImage2D):
2091 (WebCore::GraphicsContext3D::texSubImage2D):
2092 (WebCore::GraphicsContext3D::createBuffer):
2093 (WebCore::GraphicsContext3D::createFramebuffer):
2094 (WebCore::GraphicsContext3D::createProgram):
2095 (WebCore::GraphicsContext3D::createRenderbuffer):
2096 (WebCore::GraphicsContext3D::createShader):
2097 (WebCore::GraphicsContext3D::createTexture):
2098 (WebCore::GraphicsContext3D::deleteBuffer):
2099 (WebCore::GraphicsContext3D::deleteFramebuffer):
2100 (WebCore::GraphicsContext3D::deleteProgram):
2101 (WebCore::GraphicsContext3D::deleteRenderbuffer):
2102 (WebCore::GraphicsContext3D::deleteShader):
2103 (WebCore::GraphicsContext3D::deleteTexture):
2104 (WebCore::GraphicsContext3D::sizeInBytes):
2105 (WebCore::GraphicsContext3D::synthesizeGLError):
2106 (WebCore::GraphicsContext3D::getImageData):
2107 * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2108 (WebCore::GraphicsContext3D::getImageData):
2110 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2112 Reviewed by Eric Seidel.
2114 [GTK] Initial build support for WebGL
2115 https://bugs.webkit.org/show_bug.cgi?id=51716
2117 Add initial build support for WebGL and insert bits of implementation
2118 necessary for clean compilation into GraphicsContext3D.
2120 No new tests. This is just a build change.
2122 * GNUmakefile.am: Add missing files to the source lists.
2123 * platform/graphics/GraphicsContext3D.h: Include IntSize.h as it's used below.
2124 Include typedefs necessary for WebGL on GTK+ and consolidate typdefs which are the
2125 same across different platforms. X11 headers define the VERSION symbol, so it's
2126 necessary to undefine it, since it's used as an enum value.
2128 2011-01-06 Helder Correia <helder@sencha.com>
2130 Reviewed by Kenneth Rohde Christiansen.
2132 [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
2133 https://bugs.webkit.org/show_bug.cgi?id=52014
2135 The function is only used by RenderObject to draw box sides.
2136 The shadow branch is never used and thus can be removed.
2138 No new tests are necessary.
2140 * platform/graphics/qt/GraphicsContextQt.cpp:
2141 (WebCore::GraphicsContext::drawConvexPolygon):
2143 2011-01-06 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2145 Reviewed by Kenneth Rohde Christiansen.
2147 [Qt] Make sure touch is disabled in the minimal configuration
2148 https://bugs.webkit.org/show_bug.cgi?id=51316
2150 No new tests as there is no new functionality.
2154 2011-01-06 Martin Robinson <mrobinson@igalia.com>
2156 Reviewed by Eric Seidel.
2158 [GTK] Freetype backend does not support WOFF
2159 https://bugs.webkit.org/show_bug.cgi?id=51904
2161 * CMakeListsEfl.txt: Add WOFF support to the sources list.
2162 * GNUmakefile.am: Add WOFF support to the sources list.
2163 * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
2164 (WebCore::createFontCustomPlatformData): Call the WOFF decoder when appropriate.
2165 (WebCore::FontCustomPlatformData::supportsFormat): Advertise support for WOFF.
2167 2011-01-06 James Simonsen <simonjam@chromium.org>
2169 Reviewed by Darin Fisher.
2171 [Web Timing] Remove vendor prefix
2172 https://bugs.webkit.org/show_bug.cgi?id=48922
2174 * page/DOMWindow.cpp:
2175 (WebCore::DOMWindow::performance): Rename to performance.
2177 * page/DOMWindow.idl: Rename to performance and make replaceable.
2179 2011-01-06 Chris Marrin <cmarrin@apple.com>
2181 Reviewed by Simon Fraser.
2183 Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
2184 https://bugs.webkit.org/show_bug.cgi?id=49388
2186 Changed PlatformCALayer API. Added PlatformCALayerClient abstract class which is
2187 used to communicate from PlatformCALayer to the owner. This replaces passing
2188 GraphicsLayerCA pointer when creating PlatformCALayer. It also includes the
2189 API that used to be in PlatformCALayerLayout. GraphicsLayerCA now implements
2190 the PlatformCALayerClient API.
2192 This change has little impact on the Mac side but makes the Windows
2193 interface simpler, especially when handling video layers on Windows.
2195 * WebCore.xcodeproj/project.pbxproj:
2197 * platform/graphics/GraphicsLayer.h:
2198 (WebCore::GraphicsLayer::layerDidDisplay):
2199 (WebCore::GraphicsLayer::showDebugBorders):
2200 (WebCore::GraphicsLayer::showRepaintCounter):
2201 * platform/graphics/ca/GraphicsLayerCA.cpp:
2202 (WebCore::GraphicsLayerCA::platformCALayerAnimationStarted):
2203 (WebCore::GraphicsLayerCA::setContentsToImage):
2204 (WebCore::GraphicsLayerCA::setContentsToMedia):
2205 (WebCore::GraphicsLayerCA::layerDidDisplay):
2206 (WebCore::GraphicsLayerCA::updateSublayerList):
2207 * platform/graphics/ca/GraphicsLayerCA.h:
2208 (WebCore::GraphicsLayerCA::platformCALayerLayoutSublayersOfLayer):
2209 (WebCore::GraphicsLayerCA::platformCALayerRespondsToLayoutChanges):
2210 (WebCore::GraphicsLayerCA::platformCALayerContentsOrientation):
2211 (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
2212 (WebCore::GraphicsLayerCA::platformCALayerShowDebugBorders):
2213 (WebCore::GraphicsLayerCA::platformCALayerShowRepaintCounter):
2214 (WebCore::GraphicsLayerCA::platformCALayerIncrementRepaintCount):
2215 (WebCore::GraphicsLayerCA::platformCALayerContentsOpaque):
2216 (WebCore::GraphicsLayerCA::platformCALayerDrawsContent):
2217 (WebCore::GraphicsLayerCA::platformCALayerLayerDidDisplay):
2218 (WebCore::GraphicsLayerCA::platformCALayer):
2219 * platform/graphics/ca/PlatformCALayer.h:
2220 (WebCore::PlatformCALayer::owner):
2221 (WebCore::PlatformCALayer::animationStarted):
2222 * platform/graphics/ca/PlatformCALayerClient.h: Added.
2223 (WebCore::PlatformCALayerClient::~PlatformCALayerClient):
2224 * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2225 (PlatformCALayer::setOwner):
2226 (PlatformCALayer::create):
2227 (PlatformCALayer::PlatformCALayer):
2228 (PlatformCALayer::contents):
2229 (PlatformCALayer::setContents):
2230 * platform/graphics/mac/WebGLLayer.mm:
2231 (-[WebGLLayer display]):
2232 * platform/graphics/mac/WebLayer.h:
2233 * platform/graphics/mac/WebLayer.mm:
2234 (drawLayerContents):
2235 (setLayerNeedsDisplayInRect):
2236 (-[WebLayer setNeedsDisplay]):
2237 (-[WebLayer display]):
2238 * platform/graphics/mac/WebTiledLayer.mm:
2239 (-[WebTiledLayer setNeedsDisplay]):
2240 (-[WebTiledLayer display]):
2241 * rendering/RenderLayerBacking.cpp:
2242 (WebCore::RenderLayerBacking::showDebugBorders):
2243 (WebCore::RenderLayerBacking::showRepaintCounter):
2244 * rendering/RenderLayerCompositor.cpp:
2245 (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
2246 * rendering/RenderLayerCompositor.h:
2247 (WebCore::RenderLayerCompositor::compositorShowDebugBorders):
2248 (WebCore::RenderLayerCompositor::compositorShowRepaintCounter):
2249 (WebCore::RenderLayerCompositor::notifyAnimationStarted):
2250 (WebCore::RenderLayerCompositor::notifySyncRequired):
2251 (WebCore::RenderLayerCompositor::paintContents):
2252 (WebCore::RenderLayerCompositor::showDebugBorders):
2253 (WebCore::RenderLayerCompositor::showRepaintCounter):
2255 2011-01-06 Tony Gentilcore <tonyg@chromium.org>
2257 Reviewed by Eric Seidel.
2259 Allow framesets after hidden inputs
2260 https://bugs.webkit.org/show_bug.cgi?id=51998
2262 This implements the HTML5 spec update in response to:
2263 http://www.w3.org/Bugs/Public/show_bug.cgi?id=11156
2265 * html/parser/HTMLTreeBuilder.cpp:
2266 (WebCore::HTMLTreeBuilder::processStartTagForInBody):
2268 2010-12-29 Zhenyao Mo <zmo@google.com>
2270 Reviewed by Kenneth Russell.
2272 vertexAttribPointer should raise INVALID_OPERATION if stride/offset is not multiple of the type size
2273 https://bugs.webkit.org/show_bug.cgi?id=51725
2275 * html/canvas/WebGLRenderingContext.cpp:
2276 (WebCore::WebGLRenderingContext::vertexAttribPointer):
2278 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2280 Reviewed by Eric Seidel.
2282 [WINCE] Remove JSC::g_stackBase
2283 https://bugs.webkit.org/show_bug.cgi?id=51779
2285 * platform/wince/SharedTimerWinCE.cpp:
2286 (WebCore::TimerWindowWndProc):
2288 2011-01-06 Robert Hogan <robert@webkit.org>
2290 Reviewed by Antonio Gomes.
2292 [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
2294 This allows LayoutTestController to pass WebCore::Node back to
2297 Also amend nodesFromRect-links-and-text.html and
2298 nodesFromRect-inner-documents.html so that they do not produce
2299 platform-specific results.
2302 fast/dom/nodesFromRect-links-and-text.html
2303 fast/dom/nodesFromRect-inner-documents.html
2305 https://bugs.webkit.org/show_bug.cgi?id=48957
2307 * bridge/qt/qt_runtime.cpp:
2308 (JSC::Bindings::QtDRTNodeRuntime::create):
2309 (JSC::Bindings::QtDRTNodeRuntime::get):
2310 (JSC::Bindings::convertValueToQVariant):
2311 (JSC::Bindings::convertQVariantToValue):
2313 2011-01-06 Joone Hur <joone.hur@collabora.co.uk>
2315 Reviewed by Eric Seidel.
2317 WML Parser should treat line/column number in a consistent way
2318 https://bugs.webkit.org/show_bug.cgi?id=51601
2320 XML Parser treats line/column number as 1-based values, but WML ErrorHandler treat them as 0-based.
2321 Therefore, this patch allows WML ErrorHandler to use 1-based values.
2323 * dom/XMLDocumentParser.cpp:
2324 (WebCore::XMLDocumentParser::handleError): Treat line/column number as 1 based values.
2325 * dom/XMLDocumentParser.h: Make textPositionOneBased public and Add TextPosition1(m_lastErrorPosition) to keep error line/column number.
2326 * dom/XMLDocumentParserLibxml2.cpp:
2327 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2328 * dom/XMLDocumentParserQt.cpp:
2329 (WebCore::XMLDocumentParser::XMLDocumentParser): Initialize m_lastErrorPosition.
2330 * wml/WMLErrorHandling.cpp:
2331 (WebCore::reportWMLError): Use 1 based value instead of 0 based value to report error line/column number.
2333 2011-01-05 Adam Roben <aroben@apple.com>
2335 Remove some dead code from WKCACFLayerRenderer
2337 Fixes <http://webkit.org/b/51954> WKCACFLayerRenderer has dead and
2338 redundant code for reacting to changes to the layer tree
2340 Reviewed by Sam Weinig.
2342 * platform/graphics/win/WKCACFLayerRenderer.cpp:
2343 * platform/graphics/win/WKCACFLayerRenderer.h:
2344 Removed didFlushContext and the HashMap it depended on. We react to
2345 changes to the layer tree in layerTreeDidChange instead.
2347 2011-01-06 Chris Fleizach <cfleizach@apple.com>
2349 Reviewed by Beth Dakin.
2351 AX: "AXExpanded" not exposed on most ARIA roles that use aria-expanded
2352 https://bugs.webkit.org/show_bug.cgi?id=51995
2354 Test: platform/mac/accessibility/aria-expanded-standard-items.html
2356 * accessibility/AccessibilityObject.cpp:
2357 (WebCore::AccessibilityObject::supportsARIAExpanded):
2358 (WebCore::AccessibilityObject::isExpanded):
2359 * accessibility/AccessibilityObject.h:
2360 * accessibility/AccessibilityRenderObject.cpp:
2361 (WebCore::AccessibilityRenderObject::isVisited):
2362 * accessibility/AccessibilityRenderObject.h:
2363 * accessibility/mac/AccessibilityObjectWrapper.mm:
2364 (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
2366 2010-12-28 Zhenyao Mo <zmo@google.com>
2368 Reviewed by Kenneth Russell.
2370 Must generate INVALID_VALUE errors for strings containing out-of-range characters
2371 https://bugs.webkit.org/show_bug.cgi?id=50929
2373 * html/canvas/WebGLRenderingContext.cpp: Validate characters according to GLSL ES 1.0 spec section 3.1.
2374 (WebCore::WebGLRenderingContext::bindAttribLocation):
2375 (WebCore::WebGLRenderingContext::getAttribLocation):
2376 (WebCore::WebGLRenderingContext::getUniformLocation):
2377 (WebCore::WebGLRenderingContext::shaderSource):
2378 (WebCore::WebGLRenderingContext::validateString): Helper function to perform the character validation.
2379 * html/canvas/WebGLRenderingContext.h: Declare validateString().
2381 2011-01-06 Yong Li <yoli@rim.com>
2383 Reviewed by Adam Barth.
2384 Add the test case that is missed in r75066.
2385 https://bugs.webkit.org/show_bug.cgi?id=48077
2387 Test case: WebCore/manual-tests/bugzilla-48077.html.
2389 2011-01-06 James Robinson <jamesr@chromium.org>
2391 Reviewed by Simon Fraser.
2393 Implement mozilla's animationTime property
2394 https://bugs.webkit.org/show_bug.cgi?id=51952
2396 Implements mozilla's animationTime property as described here:
2397 https://developer.mozilla.org/en/DOM/window.mozAnimationStartTime
2398 and http://hacks.mozilla.org/2010/08/more-efficient-javascript-animations-with-mozrequestanimationframe/
2399 The property is called webkitAnimationTime as calling it the 'Start' time is not very informative.
2400 This property exposes a notion of a 'current' time to use for declarative animations and allows
2401 scripts to synchronize imperative animations with declarative ones if they choose to. Once queried
2402 this time is saved and used for all declarative animation updates until the embedder paints/composites
2403 the next frame and clears it, or 15ms elapse (in case the embedder isn't producing frames, for example
2404 if the page is in a background tab).
2406 This patch also ensures that all declarative animations started in the same script execution block
2407 are synchronized even if some time elapses while script is running.
2409 Test: fast/animation/animation-time.html
2412 * page/DOMWindow.cpp:
2413 (WebCore::DOMWindow::webkitAnimationTime):
2415 * page/DOMWindow.idl:
2417 (WebCore::Frame::currentAnimationTime):
2420 (WebCore::Page::Page):
2422 (WebCore::Page::animationTime):
2423 * page/animation/AnimationController.cpp:
2424 (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2425 * page/animation/AnimationTimeController.cpp: Added.
2426 (WebCore::AnimationTimeController::AnimationTimeController):
2427 (WebCore::AnimationTimeController::~AnimationTimeController):
2428 (WebCore::AnimationTimeController::currentAnimationTime):
2429 (WebCore::AnimationTimeController::clearCurrentAnimationTime):
2430 (WebCore::AnimationTimeController::clearCurrentAnimationTimeTimerFired):
2431 * page/animation/AnimationTimeController.h: Added.
2432 (WebCore::AnimationTimeController::create):
2434 2011-01-06 Abhishek Arya <inferno@chromium.org>
2436 Reviewed by Simon Fraser.
2438 Null out the parent stylesheet pointer when a css rule is removed.
2439 https://bugs.webkit.org/show_bug.cgi?id=51993
2441 Tests: fast/dom/StyleSheet/removed-media-rule-deleted-parent-crash.html
2442 fast/dom/StyleSheet/removed-stylesheet-rule-deleted-parent-crash.html
2444 * css/CSSRuleList.cpp:
2445 (WebCore::CSSRuleList::deleteRule):
2446 * css/CSSStyleSheet.cpp:
2447 (WebCore::CSSStyleSheet::deleteRule):
2449 2011-01-04 Adrienne Walker <enne@google.com>
2451 Reviewed by Kenneth Russell.
2453 NaN in a TypedArray should be converted to zero only for Float32Array.
2454 https://bugs.webkit.org/show_bug.cgi?id=46990
2456 Test: LayoutTests/fast/canvas/webgl/array-unit-tests.html
2458 * bindings/js/JSArrayBufferViewHelper.h:
2459 (WebCore::convertArrayValue):
2460 (WebCore::constructArrayBufferView):
2461 * html/canvas/Float32Array.h:
2462 (WebCore::Float32Array::set):
2463 (WebCore::Float32Array::item):
2465 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2467 Unreviewed Windows build fix for r75161.
2469 * platform/graphics/cg/GraphicsContextCG.cpp: Missing include added.
2471 2011-01-06 Patrick Gansterer <paroga@webkit.org>
2473 Unreviewed WinCE build fix for r75139.
2475 Try to remove include after adding forward-declaration in r75145.
2477 * platform/graphics/Gradient.h:
2479 2011-01-06 Renata Hodovan <reni@webkit.org>
2481 Reviewed by Andreas Kling.
2483 https://bugs.webkit.org/show_bug.cgi?id=51811
2484 Merge m_height and m_width members of ImageData into the new m_size member.
2486 Image (BitmapImage, ImageSource) types in WebKit use IntSize to store their
2487 width and height argument, except ImageData. This patch refactors ImageData
2488 to follow the style of other Image types in WebKit.
2489 Using of PassRefPtrs other than argument passing is not allowed in WebKit anymore.
2490 This patch also refactors the PassRefPtr usages of ImageData.
2492 It's just a refactoring, so we don't need any new tests.
2494 * bindings/js/SerializedScriptValue.cpp:
2495 (WebCore::CloneSerializer::write):
2496 (WebCore::CloneDeserializer::readTerminal):
2497 * bindings/v8/SerializedScriptValue.cpp:
2498 (WebCore::ZigZag::Reader::readImageData):
2499 * html/ImageData.cpp:
2500 (WebCore::ImageData::create):
2501 (WebCore::ImageData::ImageData):
2503 (WebCore::ImageData::size):
2504 (WebCore::ImageData::width):
2505 (WebCore::ImageData::height):
2506 * html/canvas/CanvasRenderingContext2D.cpp:
2507 (WebCore::createEmptyImageData):
2508 (WebCore::CanvasRenderingContext2D::createImageData):
2509 (WebCore::CanvasRenderingContext2D::getImageData):
2510 * html/canvas/CanvasRenderingContext2D.h:
2511 * platform/graphics/haiku/ImageBufferHaiku.cpp:
2512 (WebCore::getImageData):
2514 2011-01-06 Yael Aharon <yael.aharon@nokia.com>
2516 Reviewed by Darin Adler.
2518 document.querySelector(':nth-child(foo)') should throw a syntax error
2519 https://bugs.webkit.org/show_bug.cgi?id=51231
2522 CSSNthSelector parsing code is illegible and buggy (allows "n3" as a valid selector)
2523 https://bugs.webkit.org/show_bug.cgi?id=21815
2525 Add a check in the parser that other than an+b, only "odd" or "even" would be allowed
2526 as parameters to nth selector.
2528 Tests: fast/css/css3-nth-tokens-script.html
2529 fast/css/css3-nth-tokens-style.html
2532 * css/CSSParser.cpp:
2533 (WebCore::isValidNthToken):
2536 2011-01-06 Jan Erik Hanssen <jhanssen@sencha.com>
2538 Reviewed by Andreas Kling.
2540 [Qt] crash in QNetworkReplyHandler::sendResponseIfNeeded()
2541 https://bugs.webkit.org/show_bug.cgi?id=51453
2543 Check if m_reply is NULL before accessing.
2545 * manual-tests/load-deferrer-resume-crash.html: Added.
2546 * platform/network/qt/QNetworkReplyHandler.cpp:
2547 (WebCore::QNetworkReplyHandler::setLoadMode):
2548 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2550 2011-01-06 Andras Becsi <abecsi@webkit.org>
2552 Reviewed by Csaba Osztrogonác.
2554 [Qt][V8] Fix the build when DEVICE_ORIENTATION is enabled.
2556 No new tests needed.
2558 * WebCore.pro: remove duplications and globally add RuntimeEnabledFeatures.
2560 2011-01-06 Helder Correia <helder@sencha.com>
2562 Reviewed by Kenneth Rohde Christiansen.
2564 [Qt][GTK] Use GraphicsContext::hasShadow() in port-specific code
2565 https://bugs.webkit.org/show_bug.cgi?id=51985
2567 r75139 introduced GraphicsContext::hasShadow(). This can now simplify
2568 and unify some code in the Qt and GTK ports.
2570 No new tests necessary for this refactoring.
2572 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2573 (WebCore::GraphicsContext::fillRect):
2574 (WebCore::GraphicsContext::fillRoundedRect):
2575 * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
2576 * platform/graphics/qt/GraphicsContextQt.cpp:
2577 (WebCore::GraphicsContext::drawConvexPolygon):
2578 (WebCore::GraphicsContext::fillPath):
2579 (WebCore::GraphicsContext::strokePath):
2580 (WebCore::GraphicsContext::fillRect):
2581 (WebCore::GraphicsContext::fillRoundedRect):
2583 2011-01-05 Darin Adler <darin@apple.com>
2585 Fix Chromium Mac build.
2587 * platform/graphics/Gradient.h: Forward-declare CGContextRef.
2588 This might even make it possible to remove the include of
2589 <CoreGraphics/CoreGraphics.h> for PLATFORM(WIN), but I did not
2590 do that at this time because I don't want to break the Windows
2591 build when fixing the Chromium build.
2593 2011-01-05 Xianzhu Wang <wangxianzhu@google.com>
2595 Reviewed by David Levin.
2597 Implement RemoteFontStream's skip behavior (in FontCustomPlatformData.cpp)
2598 https://bugs.webkit.org/show_bug.cgi?id=51736
2600 No new tests. This change has potential effect on @font-face CSS feature
2601 on ports using Skia. Tested on Chromium that this change won't break
2602 fast/css/font-face-remote.html. This change can make the test pass on
2603 other ports using Skia.
2605 * platform/graphics/skia/FontCustomPlatformData.cpp:
2606 (WebCore::RemoteFontStream::read):
2608 2011-01-05 Helder Correia <helder@sencha.com>
2610 Reviewed by Simon Fraser.
2612 Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac
2613 https://bugs.webkit.org/show_bug.cgi?id=51869
2615 GraphicsContext::fillRect(const FloatRect&) is clipping to the rect.
2616 The shadow is being drawn, but getting clipped to the rect being filled.
2617 The solution is to draw the gradient into a CGLayer (when a shadow is
2618 required), then render the layer to the GraphicsContext.
2620 This patch also fixes:
2621 canvas/philip/tests/2d.shadow.gradient.alpha.html
2622 canvas/philip/tests/2d.shadow.gradient.basic.html
2623 canvas/philip/tests/2d.shadow.gradient.transparent.2.html
2625 Test: fast/canvas/canvas-fillRect-gradient-shadow.html
2627 * platform/graphics/Gradient.h:
2628 * platform/graphics/cg/GradientCG.cpp:
2629 (WebCore::Gradient::paint):
2630 * platform/graphics/cg/GraphicsContextCG.cpp:
2631 (WebCore::GraphicsContext::fillRect):
2633 2011-01-05 Steve Falkenburg <sfalken@apple.com>
2635 Reviewed by Darin Adler.
2637 Debug and Release builds on Windows clobber each other
2638 https://bugs.webkit.org/show_bug.cgi?id=49185
2640 Changes the structure of WebKitBuild build products directory so we
2641 completely separate each build configuration into independent directories.
2643 Although we previously had per-configuration directories for obj, this change adds
2644 per-configuration directories for bin, lib, obj, and include. Each configuration's
2645 build products are stored within a directory inside of WebKitBuild.
2647 Most use of $(WebKitOutputDir) in the build files has been replaced by $(ConfigurationBuildDir),
2648 defined in common.vsprops to be $(WebKitOutputDir)\$(ConfigurationName).
2650 * WebCore.vcproj/QTMovieWinCommon.vsprops:
2651 * WebCore.vcproj/QTMovieWinPostBuild.cmd:
2652 * WebCore.vcproj/QTMovieWinPreBuild.cmd:
2653 * WebCore.vcproj/WebCore.make:
2654 * WebCore.vcproj/WebCore.vcproj:
2655 * WebCore.vcproj/WebCoreCommon.vsprops:
2656 * WebCore.vcproj/WebCoreGeneratedCairo.vsprops:
2657 * WebCore.vcproj/WebCoreGeneratedCommon.vsprops:
2658 * WebCore.vcproj/WebCoreMediaQT.vsprops:
2659 * WebCore.vcproj/WebCorePostBuild.cmd:
2660 * WebCore.vcproj/WebCorePreBuild.cmd:
2661 * WebCore.vcproj/copyForwardingHeaders.cmd:
2662 * WebCore.vcproj/copyInspectorFiles.cmd:
2664 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2666 Reviewed by Ariya Hidayat.
2668 Directly composited SVG images fail to render
2669 https://bugs.webkit.org/show_bug.cgi?id=51975
2671 There was already code, added in r67900, to detect whether an image
2672 may be directly composited, by checking to see if it's a bitmap image.
2674 However, CachedImage::image() returns the nullImage() if m_image is null,
2675 which is a BitmapImage, confusing this test.
2677 Test: compositing/images/direct-svg-image.html
2679 * loader/cache/CachedImage.cpp: Remove nullImage(), since Image has
2680 exactly the same method.
2681 (WebCore::CachedImage::image): Use Image::nullImage().
2682 * loader/cache/CachedImage.h:
2683 (WebCore::CachedImage::hasImage): New method to ask whether the m_image is
2685 * rendering/RenderLayerBacking.cpp:
2686 (WebCore::RenderLayerBacking::isDirectlyCompositedImage): Use hasImage()
2687 so that we don't test the nullImage.
2689 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2691 Reviewed by Darin Adler.
2693 Fix percentage values in radius of radial gradients
2694 https://bugs.webkit.org/show_bug.cgi?id=51979
2696 Handle percentage values for the ending size of radial gradients.
2698 Test: fast/gradients/css3-radial-gradients3.html
2700 * css/CSSGradientValue.cpp:
2701 (WebCore::CSSRadialGradientValue::resolveRadius): Add parameter for height or width, which is
2702 non-null if percentage values are allowed, and compute percentage values when we see them.
2703 (WebCore::CSSRadialGradientValue::createGradient): Pass height or width down to say that
2704 percentages are OK when resolving end radii.
2705 * css/CSSGradientValue.h: New parameter for resolveRadius.
2707 2011-01-05 James Simonsen <simonjam@chromium.org>
2709 Reviewed by Adam Barth.
2711 [Web Timing] Zero out some values on cross-origin redirects
2712 https://bugs.webkit.org/show_bug.cgi?id=49294
2714 Tests: http/tests/misc/webtiming-cross-origin-redirect.php
2715 http/tests/misc/webtiming-origins.html
2717 * loader/DocumentLoadTiming.h:
2718 (WebCore::DocumentLoadTiming::DocumentLoadTiming): Add flags for cross-origin redirects and same-origin navigation.
2719 * loader/FrameLoader.cpp:
2720 (WebCore::FrameLoader::~FrameLoader):
2721 (WebCore::FrameLoader::stopLoading): Don't overwrite previous unload times.
2722 (WebCore::FrameLoader::completed):
2723 (WebCore::FrameLoader::loadWithDocumentLoader): Remember previous URL to see if navigation is same-origin.
2724 (WebCore::FrameLoader::commitProvisionalLoad): Set flag if navigation is same-origin.
2725 * loader/FrameLoader.h:
2726 * loader/MainResourceLoader.cpp:
2727 (WebCore::MainResourceLoader::willSendRequest): Set flag on cross-origin redirects.
2728 * page/PerformanceNavigation.cpp:
2729 (WebCore::PerformanceNavigation::redirectCount): Clear if cross-origin redirect flag is set.
2730 * page/PerformanceTiming.cpp:
2731 (WebCore::PerformanceTiming::redirectStart): Ditto.
2732 (WebCore::PerformanceTiming::redirectEnd): Ditto.
2733 (WebCore::PerformanceTiming::unloadEventStart): Clear if cross-origin navigation is set.
2734 (WebCore::PerformanceTiming::unloadEventEnd): Ditto.
2736 2011-01-05 Helder Correia <helder@sencha.com>
2738 Reviewed by Ariya Hidayat.
2740 [Qt] Default focus ring is too wide
2741 https://bugs.webkit.org/show_bug.cgi?id=51854
2743 This is an intermediate step to solve this bug. Use QPalette::Highlight
2744 instead of default half-transparent black as the focus ring color.
2746 * platform/graphics/qt/GraphicsContextQt.cpp:
2747 (WebCore::drawFocusRingForPath):
2748 * platform/qt/RenderThemeQt.cpp:
2749 (WebCore::RenderThemeQt::platformFocusRingColor):
2750 * platform/qt/RenderThemeQt.h:
2752 2011-01-05 James Simonsen <simonjam@chromium.org>
2754 Reviewed by Darin Fisher.
2756 [Web Timing] requestStart and responseStart should be available even if the document is still loading
2757 https://bugs.webkit.org/show_bug.cgi?id=51368
2759 Test: http/tests/misc/webtiming-slow-load.php
2761 * page/PerformanceTiming.cpp:
2762 (WebCore::getPossiblySkewedTimeInKnownRange): Handle case where response is not yet complete.
2763 (WebCore::PerformanceTiming::resourceLoadTimeRelativeToAbsolute): Use full upper bound.
2765 2011-01-05 Chris Rogers <crogers@google.com>
2767 Reviewed by Darin Fisher.
2769 Add WebKitClient::createAudioDevice() for Chromium port of web audio API
2770 https://bugs.webkit.org/show_bug.cgi?id=51424
2772 No new tests since audio API is not yet implemented.
2774 * WebCore.gyp/WebCore.gyp:
2777 2011-01-05 Anders Carlsson <andersca@apple.com>
2783 2011-01-05 Anders Carlsson <andersca@apple.com>
2785 Attempt to fix Leopard build.
2789 2011-01-05 Evan Martin <evan@chromium.org>
2791 Reviewed by Tony Chang.
2793 [chromium] refactor complex text on Linux
2794 https://bugs.webkit.org/show_bug.cgi?id=51956
2796 Pull out TextRunWalker from FontLinux.cpp. Put it in its own file.
2797 Rename it to ComplexTextController, to match platform/graphics/mac
2800 No tests because the change is just renaming a class.
2802 * WebCore.gyp/WebCore.gyp:
2803 * platform/graphics/chromium/ComplexTextControllerLinux.cpp: Added.
2804 (WebCore::ComplexTextController::ComplexTextController):
2805 (WebCore::ComplexTextController::~ComplexTextController):
2806 (WebCore::ComplexTextController::isWordBreak):
2807 (WebCore::ComplexTextController::determineWordBreakSpacing):
2808 (WebCore::ComplexTextController::setPadding):
2809 (WebCore::ComplexTextController::reset):
2810 (WebCore::ComplexTextController::setBackwardsIteration):
2811 (WebCore::ComplexTextController::nextScriptRun):
2812 (WebCore::ComplexTextController::widthOfFullRun):
2813 (WebCore::ComplexTextController::setupFontForScriptRun):
2814 (WebCore::ComplexTextController::allocHarfbuzzFont):
2815 (WebCore::ComplexTextController::deleteGlyphArrays):
2816 (WebCore::ComplexTextController::createGlyphArrays):
2817 (WebCore::ComplexTextController::resetGlyphArrays):
2818 (WebCore::ComplexTextController::shapeGlyphs):
2819 (WebCore::ComplexTextController::setGlyphXPositions):
2820 (WebCore::ComplexTextController::normalizeSpacesAndMirrorChars):
2821 (WebCore::ComplexTextController::getNormalizedTextRun):
2822 * platform/graphics/chromium/ComplexTextControllerLinux.h: Added.
2823 (WebCore::ComplexTextController::setWordSpacingAdjustment):
2824 (WebCore::ComplexTextController::setLetterSpacingAdjustment):
2825 (WebCore::ComplexTextController::letterSpacing):
2826 (WebCore::ComplexTextController::setXOffsetToZero):
2827 (WebCore::ComplexTextController::rtl):
2828 (WebCore::ComplexTextController::glyphs):
2829 (WebCore::ComplexTextController::length):
2830 (WebCore::ComplexTextController::xPositions):
2831 (WebCore::ComplexTextController::advances):
2832 (WebCore::ComplexTextController::width):
2833 (WebCore::ComplexTextController::logClusters):
2834 (WebCore::ComplexTextController::numCodePoints):
2835 (WebCore::ComplexTextController::fontPlatformDataForScriptRun):
2836 (WebCore::ComplexTextController::isCodepointSpace):
2837 * platform/graphics/chromium/FontLinux.cpp:
2838 (WebCore::Font::drawComplexText):
2839 (WebCore::Font::floatWidthForComplexText):
2840 (WebCore::glyphIndexForXPositionInScriptRun):
2841 (WebCore::Font::offsetForPositionForComplexText):
2842 (WebCore::Font::selectionRectForComplexText):
2844 2011-01-05 Pratik Solanki <psolanki@apple.com>
2846 Reviewed by Darin Adler.
2848 Merge cf and mac header files with same name
2849 https://bugs.webkit.org/show_bug.cgi?id=51916
2851 Since most of the code in the header files is identical, we can merge them and have #if
2852 USE(CFNETWORK) to separate out the network specific parts.
2854 * WebCore.xcodeproj/project.pbxproj:
2855 * platform/network/cf/AuthenticationChallenge.h:
2856 (WebCore::AuthenticationChallenge::sender):
2857 (WebCore::AuthenticationChallenge::nsURLAuthenticationChallenge):
2858 * platform/network/cf/ResourceError.h:
2859 (WebCore::ResourceError::ResourceError):
2860 * platform/network/cf/ResourceRequest.h:
2861 (WebCore::ResourceRequest::ResourceRequest):
2862 * platform/network/cf/ResourceResponse.h:
2863 (WebCore::ResourceResponse::ResourceResponse):
2864 * platform/network/mac/AuthenticationChallenge.h: Removed.
2865 * platform/network/mac/ResourceError.h: Removed.
2866 * platform/network/mac/ResourceRequest.h: Removed.
2867 * platform/network/mac/ResourceResponse.h: Removed.
2869 2011-01-05 Anders Carlsson <andersca@apple.com>
2871 Reviewed by Adele Peterson.
2873 Implement word transformation
2874 https://bugs.webkit.org/show_bug.cgi?id=51943
2876 Export Editor functions needed by WebKit2.
2880 2011-01-05 Simon Fraser <simon.fraser@apple.com>
2882 Reviewed by Dave Hyatt.
2884 Implement repeating CSS3 gradients
2885 https://bugs.webkit.org/show_bug.cgi?id=51843
2887 Add support for repeating gradients, via the new gradient functions
2888 -webkit-repeating-linear-gradient and -webkit-repeating-radial-gradient.
2890 Tests: fast/gradients/css3-repeating-linear-gradients.html
2891 fast/gradients/css3-repeating-radial-gradients.html
2893 * css/CSSGradientValue.h:
2894 (WebCore::CSSGradientValue::isRepeating): Accessor for whethe the gradient repeats.
2895 (WebCore::CSSGradientValue::CSSGradientValue): Pass CSSGradientRepeat in.
2896 (WebCore::CSSLinearGradientValue::create): Pass CSSGradientRepeat.
2897 (WebCore::CSSLinearGradientValue::CSSLinearGradientValue): Ditto
2898 (WebCore::CSSRadialGradientValue::create): Ditto.
2899 (WebCore::CSSRadialGradientValue::CSSRadialGradientValue): Ditto.
2901 * css/CSSGradientValue.cpp:
2902 (WebCore::CSSGradientValue::addStops): Pass maxLengthForRepeat, which
2903 is used for repeating radial gradients. Add code to repeat the stops,
2904 adding stops before the start, and after the end until the 0-N range is
2905 covered, where N is large enough to ensure the box is covered. Fix an issue
2906 with repeating gradients where if both stops were < 0, it would fail to clamp
2909 (WebCore::CSSLinearGradientValue::cssText): Output strings for repeating gradients.
2910 (WebCore::CSSLinearGradientValue::createGradient): maxExtent for linear gradients is 1,
2911 because they are guaranteed to fill the box already.
2912 (WebCore::CSSRadialGradientValue::cssText): Output strings for repeating gradients.
2913 (WebCore::CSSRadialGradientValue::createGradient): Compute the distance to the furthest
2914 corner in order to inform addStops() how much additional extent is required.
2916 * css/CSSParser.cpp:
2917 (WebCore::CSSParser::parseDeprecatedGradient): Old gradients never repeat.
2918 (WebCore::CSSParser::parseLinearGradient): Pass down CSSGradientRepeat.
2919 (WebCore::CSSParser::parseRadialGradient): Ditto.
2920 (WebCore::CSSParser::isGeneratedImageValue): Add repeating gradient functions.
2921 (WebCore::CSSParser::parseGeneratedImage): Ditto.
2922 * css/CSSParser.h: Pass CSSGradientRepeat to gradient functions.
2923 * platform/graphics/cg/GradientCG.cpp: Remove unused #include.
2925 2011-01-05 Martin Robinson <mrobinson@igalia.com>
2927 Reviewed by Ariya Hidayat.
2929 ContextShadow::blurLayerImage() not endian-safe
2930 https://bugs.webkit.org/show_bug.cgi?id=51822
2932 Correct the channel map in ContextShadow to reflect the different
2933 ordering of pixels on processors with different endianness.
2935 No new tests. This is covered by the existing shadow tests. It was
2936 not discovered, because all of the bots using ContextShadow are
2939 * platform/graphics/ContextShadow.cpp:
2940 (WebCore::ContextShadow::blurLayerImage): Initialize the channel mapping
2941 based on machine endianness.
2943 2011-01-05 Mihai Parparita <mihaip@chromium.org>
2945 Reviewed by Nate Chapin.
2947 [Chromium] Crash when drawing PDF plug-in scrollbars
2948 https://bugs.webkit.org/show_bug.cgi?id=51942
2950 Pepper plug-in scrollbars don't have a parent, guard against that before
2951 seeing if the parent is a FrameView.
2953 Not testable via layout tests, verified fix by hand.
2955 * platform/chromium/ScrollbarThemeChromiumMac.mm:
2956 (WebCore::ScrollbarThemeChromiumMac::paint):
2958 2011-01-05 Abhishek Arya <inferno@chromium.org>
2962 Update FIXME comment to sound better. Also initialize the block to fix compile.
2964 * rendering/RenderBlock.cpp:
2965 (WebCore::RenderBlock::removeChild):
2967 2011-01-05 Abhishek Arya <inferno@chromium.org>
2969 Reviewed by Dave Hyatt.
2971 Do not merge anonymous blocks when one of them is the one getting removed.
2972 https://bugs.webkit.org/show_bug.cgi?id=51919
2974 Test: fast/block/merge-anonymous-block-remove-child-crash.html
2976 * rendering/RenderBlock.cpp:
2977 (WebCore::RenderBlock::removeChild):
2979 2011-01-05 Ryosuke Niwa <rniwa@webkit.org>
2981 Reviewed by Eric Seidel.
2983 ApplyStyleCommand::applyRelativeFontStyleChange should take EditingStyle*
2984 https://bugs.webkit.org/show_bug.cgi?id=50641
2986 Modified applyRelativeFontStyleChange to take EditingStyle instead of CSSMutableStyleDeclaration.
2987 Also extracted the logic to obtain the font size delta from ApplyStyleCommand to EditingStyle.
2988 The font size delta is now stored as a member variable of EditingStyle as supposed to a property
2989 in CSSMutableStyleDeclration as soon as EditingStyle is instantiated.
2991 No new tests are added since this is a refactoring.
2993 * editing/ApplyStyleCommand.cpp:
2994 (WebCore::ApplyStyleCommand::doApply): Calls applyRelativeFontStyleChange.
2995 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Takes EditingStyle.
2996 * editing/ApplyStyleCommand.h:
2997 * editing/EditingStyle.cpp:
2998 (WebCore::EditingStyle::EditingStyle): Initializes m_fontSizeDelta.
2999 (WebCore::EditingStyle::init): Ditto.
3000 (WebCore::EditingStyle::extractFontSizeDelta): Extracted from applyRelativeFontStyleChange.
3001 (WebCore::EditingStyle::isEmpty): Takes care of m_fontSizeDelta.
3002 (WebCore::EditingStyle::setStyle): Calls extractFontSizeDelta.
3003 (WebCore::EditingStyle::overrideWithStyle): Ditto.
3004 (WebCore::EditingStyle::clear): Initializes m_fontSizeDelta.
3005 (WebCore::EditingStyle::copy): Calls extractFontSizeDelta.
3006 * editing/EditingStyle.h:
3007 (WebCore::EditingStyle::fontSizeDelta): Added.
3008 (WebCore::EditingStyle::hasFontSizeDelta): Added.
3011 2011-01-05 Dan Bernstein <mitz@apple.com>
3013 Reviewed by Darin Adler.
3015 <rdar://problem/8799835> hyphenate-character: auto should fall back to hyphen-minus if the primary font lacks a hyphen glyph
3016 https://bugs.webkit.org/show_bug.cgi?id=51915
3018 This changes the results of existing tests in fast/text.
3020 * platform/graphics/Font.h:
3021 * platform/graphics/FontFastPath.cpp:
3022 (WebCore::Font::primaryFontHasGlyphForCharacter): Added.
3023 * rendering/style/RenderStyle.cpp:
3024 * platform/graphics/qt/FontQt.cpp:
3025 (WebCore::Font::primaryFontHasGlyphForCharacter): Added a stub.
3026 (WebCore::RenderStyle::hyphenString): For hyphenate-character: auto, return a
3027 hyphen only if the primary font has a hyphen glyph, and otherwise return a
3030 2011-01-05 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3032 Reviewed by Ariya Hidayat.
3034 [Qt] [Symbian] Make CONFIG-=def_files the default configuration for trunk builds
3035 https://bugs.webkit.org/show_bug.cgi?id=51888
3037 Overrule Qt's default from qconfig.pri for non-production builds so
3038 that CONFIG(def_files) evaluates to false and QtWebKit trunk builds succeed.
3040 No new tests as there is no new functionality.
3044 2011-01-05 Sheriff Bot <webkit.review.bot@gmail.com>
3046 Unreviewed, rolling out r74778.
3047 http://trac.webkit.org/changeset/74778
3048 https://bugs.webkit.org/show_bug.cgi?id=51930
3050 Android and QtWebKit-V8 uses V8DOMWindowShell::setContext.
3051 (Requested by bbandix on #webkit).
3053 * bindings/v8/V8DOMWindowShell.cpp:
3054 (WebCore::V8DOMWindowShell::setContext):
3055 * bindings/v8/V8DOMWindowShell.h:
3057 2011-01-05 Yi Shen <yi.4.shen@nokia.com>
3059 Reviewed by Andreas Kling.
3061 [Qt] Animated GIF images does not animate 10x as expected by default.
3062 https://bugs.webkit.org/show_bug.cgi?id=36818
3064 Add a test animated GIF which should be displayed 2 times and stop.
3066 * manual-tests/animated-gif-looping.html:
3067 * manual-tests/resources/animated-2x.gif: Added.
3069 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3071 Reviewed by Martin Robinson.
3073 [GTK] Fork code of ScrollbarThemeGtk that will differ for GTK+ 3
3074 https://bugs.webkit.org/show_bug.cgi?id=51923
3076 Split out pieces of ScrollbarThemeGtk into ScrollbarThemeGtk2 and
3077 ScrollbarThemeGtk3 that will differ between GTK+ 2 and GTK+ 3.
3079 No new tests. This should not change functionality.
3081 * GNUmakefile.am: Add ScrollbarThemeGtk2.cpp and ScrollbarThemeGtk3.cpp
3082 * platform/gtk/ScrollbarThemeGtk.cpp:
3083 (WebCore::ScrollbarThemeGtk::updateScrollbarsFrameThickness):
3084 * platform/gtk/ScrollbarThemeGtk.h:
3085 * platform/gtk/ScrollbarThemeGtk2.cpp: Added.
3086 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3087 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3088 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3089 (WebCore::ScrollbarThemeGtk::paintThumb):
3090 (WebCore::ScrollbarThemeGtk::paintButton):
3091 * platform/gtk/ScrollbarThemeGtk3.cpp: Added.
3092 (WebCore::ScrollbarThemeGtk::updateThemeProperties):
3093 (WebCore::ScrollbarThemeGtk::paintTrackBackground):
3094 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground):
3095 (WebCore::ScrollbarThemeGtk::paintThumb):
3096 (WebCore::ScrollbarThemeGtk::paintButton):
3098 2011-01-05 Patrick Gansterer <paroga@webkit.org>
3100 Reviewed by Andreas Kling.
3102 [CMake] Fix the usage of SOURCE_GROUP
3103 https://bugs.webkit.org/show_bug.cgi?id=51739
3107 2011-01-05 Andras Becsi <abecsi@webkit.org>
3109 Reviewed by Csaba Osztrogonác.
3111 [Qt][V8] Fix the build after recent changes.
3113 No new tests needed.
3115 * WebCore.pro: Add missing files, and remove obsolete ones.
3117 2011-01-05 Yong Li <yoli@rim.com>
3119 Reviewed by Adam Barth.
3121 Suspend HTMLParserScheduler when page load is deferred to
3122 avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3123 from an external script or by events, and is blocked by a modal dialog,
3124 WebKit can parse more HTML source and also start another JS execution.
3126 https://bugs.webkit.org/show_bug.cgi?id=48077
3128 Test case: WebCore/manual-tests/bugzilla-48077.html.
3130 * dom/DocumentParser.cpp:
3131 (WebCore::DocumentParser::suspendScheduledTasks):
3132 (WebCore::DocumentParser::resumeScheduledTasks):
3133 * dom/DocumentParser.h:
3134 * html/parser/HTMLDocumentParser.cpp:
3135 (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3136 (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3137 * html/parser/HTMLParserScheduler.cpp:
3138 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3139 (WebCore::HTMLParserScheduler::suspend):
3140 (WebCore::HTMLParserScheduler::resume):
3141 * html/parser/HTMLParserScheduler.h:
3142 (WebCore::HTMLParserScheduler::isScheduledForResume):
3143 * page/PageGroupLoadDeferrer.cpp:
3144 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3145 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3147 2011-01-05 Simon Hausmann <simon.hausmann@nokia.com>
3149 Reviewed by Kenneth Rohde Christiansen, Gustavo Noronha Silva
3151 [GStreamer] MediaPlayerPrivateGStreamer::totalBytes() does not work reliably
3152 https://bugs.webkit.org/show_bug.cgi?id=51926
3154 Work around potential upstream bug: Querying a GstBin for the duration,
3155 will forward the query to all sink children. Our WebKitWebSrc however
3156 is a bin with only source children, therefore the query fails. Until
3157 this is changed upstream, this patch works around it as follows,
3158 based on suggestion by Philippe Normand and Sebastian Dröge:
3160 When the initial query fails, attempt the same query on all source
3161 pads and take the maximum length reported.
3163 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3164 (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
3166 2011-01-05 Philippe Normand <pnormand@igalia.com>
3168 Rubber-stamped by Eric Seidel.
3170 [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
3171 https://bugs.webkit.org/show_bug.cgi?id=51810
3173 Based on a patch by Mart Raudsepp.
3175 No new tests, build fix only.
3177 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3178 (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
3179 API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
3180 introduced in same version as the xoverlay API change.
3182 2011-01-05 Leo Yang <leo.yang@torchmobile.com.cn>
3184 Reviewed by Dirk Schulze.
3186 Malformed SVG causes crash in updateContainerOffset
3187 https://bugs.webkit.org/show_bug.cgi?id=44610
3189 We should check recursive <use> at the begining of
3190 WebCore::SVGUseElement::buildInstanceTree instead
3191 of at the end of it because the target element's
3192 children may cause infinite recursive <use>.
3194 Test: svg/custom/recursive-use.svg
3196 * svg/SVGUseElement.cpp:
3197 (WebCore::SVGUseElement::buildInstanceTree):
3198 (WebCore::SVGUseElement::hasCycleUseReferencing):
3199 * svg/SVGUseElement.h:
3201 2011-01-04 Antti Koivisto <antti@apple.com>
3203 Reviewed by Dan Bernstein.
3205 https://bugs.webkit.org/show_bug.cgi?id=51907
3206 Style selector should only be recalculated when the pending sheet count goes to zero
3208 Shark says this is a significant performance improvement on some sites with lots of stylesheets.
3211 (WebCore::Document::removePendingSheet):
3213 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3215 Reviewed by Martin Robinson.
3217 [GTK] Use GtkStyleContext to get platform colors
3218 https://bugs.webkit.org/show_bug.cgi?id=51830
3220 Use GtkStyleContext API to get platform colors when building with
3223 No new tests. This should not change functionality.
3225 * platform/graphics/Color.h: Add specialized constructor for GdkRGBA.
3226 * platform/graphics/gtk/ColorGtk.cpp:
3227 (WebCore::Color::Color):
3228 (WebCore::Color::operator GdkRGBA):
3229 * platform/gtk/RenderThemeGtk3.cpp:
3230 (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
3231 (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
3232 (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
3233 (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
3234 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
3235 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
3236 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
3237 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
3238 (WebCore::RenderThemeGtk::systemColor):
3240 2011-01-05 Carlos Garcia Campos <cgarcia@igalia.com>
3242 Unreviewed. Build fix for GTK when using gtk+-3 after r75009.
3244 * platform/gtk/RenderThemeGtk3.cpp:
3245 (WebCore::RenderThemeGtk::getStockIcon): Use adoptGRef instead of
3246 adoptGRefPtr which doesn't exist.
3248 2011-01-05 Alexey Proskuryakov <ap@apple.com>
3250 Reviewed by Sam Weinig.
3252 https://bugs.webkit.org/show_bug.cgi?id=51903
3253 Tell UI process which subframe is largest
3255 * WebCore.exp.in: Exported FrameView::contentsSize().
3257 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3259 Unreviewed. GTK build fix.
3261 WK2: Support Accessibility
3262 https://bugs.webkit.org/show_bug.cgi?id=51859
3264 * page/FrameView.cpp:
3265 (WebCore::FrameView::axObjectCache):
3267 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
3269 Unreviewed, rolling out r74992.
3270 http://trac.webkit.org/changeset/74992
3271 https://bugs.webkit.org/show_bug.cgi?id=51917
3273 Crash in HTMLDocumentParser::suspendScheduledTasks()
3274 (Requested by tkent on #webkit).
3276 * dom/DocumentParser.cpp:
3277 * dom/DocumentParser.h:
3278 * html/parser/HTMLDocumentParser.cpp:
3279 * html/parser/HTMLDocumentParser.h:
3280 * html/parser/HTMLParserScheduler.cpp:
3281 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3282 * html/parser/HTMLParserScheduler.h:
3283 (WebCore::HTMLParserScheduler::isScheduledForResume):
3284 * page/PageGroupLoadDeferrer.cpp:
3285 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3286 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3288 2011-01-04 Benjamin Poulain <benjamin.poulain@nokia.com>
3290 Reviewed by Kenneth Rohde Christiansen.
3292 [Qt] [WK2] Add support for non-trivial context menu action
3293 https://bugs.webkit.org/show_bug.cgi?id=51902
3295 Fix the preprocessor guard for ContextMenuItemTagSelectAll in
3296 the implementation of ContextMenuController::contextMenuItemSelected(). The guard was
3297 inconsistent with what is defined in ContextMenuItem.h.
3299 * page/ContextMenuController.cpp:
3300 (WebCore::ContextMenuController::contextMenuItemSelected):
3302 2011-01-04 Tony Gentilcore <tonyg@chromium.org>
3304 Reviewed by Ryosuke Niwa.
3306 Avoid manual ref/deref in AsyncScriptRunner by using PendingScript
3307 https://bugs.webkit.org/show_bug.cgi?id=51723
3309 ScriptElement should also be able to keep its Element+CachedScript in
3310 a PendingScript, and then executeScriptSoon can accept a PendingScript.
3311 Once HTMLScriptRunner, ScriptElement, and AsyncScriptRunner all use
3312 PendingScripts, then generic request and execute which operate on
3313 PendingScripts can be factored out to avoid code duplicate that we have.
3315 No new tests because no new functionality.
3317 * dom/AsyncScriptRunner.cpp:
3318 (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
3319 (WebCore::AsyncScriptRunner::executeScriptSoon):
3320 (WebCore::AsyncScriptRunner::timerFired):
3321 * dom/AsyncScriptRunner.h:
3322 * dom/PendingScript.h: Add ctor which sets element and cachedScript. Rename adoptElement->setElement.
3323 * dom/HTMLScriptRunner.cpp:
3324 (WebCore::HTMLScriptRunner::requestPendingScript):
3326 2011-01-04 Jeff Miller <jeffm@apple.com>
3328 Reviewed by Darin Adler.
3330 Member variable and method naming cleanup to be consistent with WebKit2.
3331 https://bugs.webkit.org/show_bug.cgi?id=51228
3333 * page/win/EventHandlerWin.cpp:
3334 (WebCore::EventHandler::eventActivatedView):
3335 Rename activatedWebView() to didActivateWebView().
3337 * platform/PlatformMouseEvent.h:
3338 Rename m_activatedWebView to m_didActivateWebView.
3340 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3341 Initialize platform-specific member variables in PlatformMouseEvent constructors.
3343 (WebCore::PlatformMouseEvent::didActivateWebView):
3344 Rename activatedWebView() to didActivateWebView().
3346 * platform/win/PlatformMouseEventWin.cpp:
3347 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3348 Rename m_activatedWebView to m_didActivateWebView.
3350 2011-01-04 Yael Aharon <yael.aharon@nokia.com>
3352 Reviewed by Darin Adler.
3354 CSS3 :nth-child selector and valid whitespace test fails
3355 https://bugs.webkit.org/show_bug.cgi?id=36279
3357 Teach the tokenizer to allow white spaces around [+/-] signs in nth constructs.
3359 Test: fast/css/css3-nth-space.html
3361 * css/tokenizer.flex:
3363 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3365 Unreviewed. Build fix.
3367 WK2: Support Accessibility
3368 https://bugs.webkit.org/show_bug.cgi?id=51859
3370 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3373 2011-01-04 Cosmin Truta <ctruta@chromium.org>
3375 Reviewed by Eric Seidel.
3377 [chromium] PNG compression settings optimized for speed
3378 https://bugs.webkit.org/show_bug.cgi?id=51719
3380 Although Z_HUFFMAN_ONLY is the fastest on hard-to-compress images,
3381 it is also the slowest, by a wide margin, on easy-to-compress images.
3382 Use a more balanced configuration, based on the libpng compression defaults,
3383 but with a faster compression level (3 instead of 6), and a faster filter
3384 ("sub" instead of "all").
3386 No change in behaviour, so no new tests.
3388 * platform/image-encoders/skia/PNGImageEncoder.cpp:
3389 (WebCore::PNGImageEncoder::encode):
3391 2011-01-04 Chris Fleizach <cfleizach@apple.com>
3393 Reviewed by Sam Weinig.
3395 WK2: Support Accessibility
3396 https://bugs.webkit.org/show_bug.cgi?id=51859
3398 WK2 doesn't use platform scroll views anymore. Accessibility code
3399 needs to have its own scroll views.
3401 Test: platform/mac/accessibility/webkit-scrollarea.html
3408 * WebCore.vcproj/WebCore.vcproj:
3409 * WebCore.xcodeproj/project.pbxproj:
3410 * accessibility/AXObjectCache.cpp:
3411 (WebCore::AXObjectCache::AXObjectCache):
3412 (WebCore::AXObjectCache::get):
3413 (WebCore::AXObjectCache::getOrCreate):
3414 (WebCore::AXObjectCache::rootObject):
3415 (WebCore::AXObjectCache::remove):
3416 (WebCore::AXObjectCache::handleScrollbarUpdate):
3417 * accessibility/AXObjectCache.h:
3418 (WebCore::AXObjectCache::handleScrollbarUpdate):
3419 * accessibility/AccessibilityARIAGrid.h:
3420 * accessibility/AccessibilityAllInOne.cpp:
3421 * accessibility/AccessibilityImageMapLink.cpp:
3422 * accessibility/AccessibilityImageMapLink.h:
3423 * accessibility/AccessibilityListBoxOption.cpp:
3424 * accessibility/AccessibilityListBoxOption.h:
3425 * accessibility/AccessibilityObject.cpp:
3426 (WebCore::AccessibilityObject::updateChildrenIfNecessary):
3427 (WebCore::AccessibilityObject::elementAccessibilityHitTest):
3428 (WebCore::AccessibilityObject::axObjectCache):
3429 (WebCore::AccessibilityObject::focusedUIElement):
3430 * accessibility/AccessibilityObject.h:
3431 (WebCore::AccessibilityObject::isAccessibilityScrollView):
3432 (WebCore::AccessibilityObject::isScrollView):
3433 (WebCore::AccessibilityObject::canSetNumericValue):
3434 (WebCore::AccessibilityObject::scrollBar):
3435 (WebCore::AccessibilityObject::size):
3436 (WebCore::AccessibilityObject::setValue):
3437 * accessibility/AccessibilityRenderObject.cpp:
3438 (WebCore::AccessibilityRenderObject::parentObject):
3439 (WebCore::AccessibilityRenderObject::accessibilityHitTest):
3440 (WebCore::AccessibilityRenderObject::updateChildrenIfNecessary):
3441 (WebCore::AccessibilityRenderObject::addChildren):
3442 * accessibility/AccessibilityRenderObject.h:
3443 * accessibility/AccessibilityScrollView.cpp: Added.
3444 (WebCore::AccessibilityScrollView::AccessibilityScrollView):
3445 (WebCore::AccessibilityScrollView::create):
3446 (WebCore::AccessibilityScrollView::scrollBar):
3447 (WebCore::AccessibilityScrollView::children):
3448 (WebCore::AccessibilityScrollView::updateChildrenIfNecessary):
3449 (WebCore::AccessibilityScrollView::removeChildScrollbar):
3450 (WebCore::AccessibilityScrollView::addChildScrollbar):
3451 (WebCore::AccessibilityScrollView::addChildren):
3452 (WebCore::AccessibilityScrollView::webAreaObject):
3453 (WebCore::AccessibilityScrollView::accessibilityHitTest):
3454 (WebCore::AccessibilityScrollView::document):
3455 (WebCore::AccessibilityScrollView::elementRect):
3456 (WebCore::AccessibilityScrollView::parentObject):
3457 * accessibility/AccessibilityScrollView.h: Added.
3458 (WebCore::AccessibilityScrollView::roleValue):
3459 (WebCore::AccessibilityScrollView::scrollView):
3460 (WebCore::AccessibilityScrollView::accessibilityIsIgnored):
3461 (WebCore::AccessibilityScrollView::isAccessibilityScrollView):
3462 (WebCore::toAccessibilityScrollView):
3463 * accessibility/AccessibilityScrollbar.cpp:
3464 (WebCore::AccessibilityScrollbar::AccessibilityScrollbar):
3465 (WebCore::AccessibilityScrollbar::create):
3466 (WebCore::AccessibilityScrollbar::elementRect):
3467 (WebCore::AccessibilityScrollbar::document):
3468 (WebCore::AccessibilityScrollbar::orientation):
3469 (WebCore::AccessibilityScrollbar::isEnabled):
3470 (WebCore::AccessibilityScrollbar::valueForRange):
3471 (WebCore::AccessibilityScrollbar::setValue):
3472 * accessibility/AccessibilityScrollbar.h:
3473 (WebCore::AccessibilityScrollbar::setParent):
3474 (WebCore::AccessibilityScrollbar::canSetValueAttribute):
3475 (WebCore::AccessibilityScrollbar::canSetNumericValue):
3476 (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
3477 (WebCore::AccessibilityScrollbar::parentObject):
3478 (WebCore::AccessibilityScrollbar::roleValue):
3479 * accessibility/mac/AccessibilityObjectMac.mm:
3480 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3481 * accessibility/mac/AccessibilityObjectWrapper.mm:
3482 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
3483 (-[AccessibilityObjectWrapper remoteAccessibilityParentObject]):
3484 (-[AccessibilityObjectWrapper position]):
3485 (-[AccessibilityObjectWrapper scrollViewParent]):
3486 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3487 (-[AccessibilityObjectWrapper accessibilityHitTest:]):
3488 (-[AccessibilityObjectWrapper accessibilitySetValue:forAttribute:]):
3490 (WebCore::Document::axObjectCache):
3491 * loader/EmptyClients.h:
3492 (WebCore::EmptyFrameLoaderClient::accessibilityRemoteObject):
3493 * loader/FrameLoaderClient.h:
3494 * page/FrameView.cpp:
3495 (WebCore::FrameView::~FrameView):
3496 (WebCore::FrameView::axObjectCache):
3498 * platform/ScrollView.cpp:
3499 (WebCore::ScrollView::setHasHorizontalScrollbar):
3500 (WebCore::ScrollView::setHasVerticalScrollbar):
3501 * platform/Scrollbar.cpp:
3502 (WebCore::Scrollbar::~Scrollbar):
3503 (WebCore::Scrollbar::scroll):
3504 (WebCore::Scrollbar::axObjectCache):
3505 * platform/Scrollbar.h:
3506 * platform/Widget.h:
3507 (WebCore::Widget::axObjectCache):
3509 2011-01-04 W. James MacLean <wjmaclean@chromium.org>
3511 Reviewed by Kenneth Russell.
3513 [chromium] Add support to compositor to composite to offscreen texture.
3514 https://bugs.webkit.org/show_bug.cgi?id=50833
3516 A patch to extend compositor to be able to composite into an offscreen texture instead
3517 of just directly to the display buffer. Builds on RenderSurfaceChromium support.
3518 Explicitly resets alpha channel before rendering to display.
3520 * platform/graphics/chromium/LayerRendererChromium.cpp:
3521 (WebCore::LayerRendererChromium::LayerRendererChromium):
3522 (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
3523 (WebCore::LayerRendererChromium::drawLayers):
3524 (WebCore::LayerRendererChromium::setCompositeOffscreen):
3525 (WebCore::LayerRendererChromium::useRenderSurface):
3526 (WebCore::LayerRendererChromium::setScissorToRect):
3527 * platform/graphics/chromium/LayerRendererChromium.h:
3528 (WebCore::LayerRendererChromium::isCompositingOffscreen):
3529 (WebCore::LayerRendererChromium::getOffscreenLayerTexture):
3531 2011-01-04 Evan Martin <evan@chromium.org>
3533 Reviewed by Tony Chang.
3535 [chromium] depend on harfbuzz explicitly
3536 https://bugs.webkit.org/show_bug.cgi?id=51895
3538 platform/graphics/chromium uses Harfbuzz directly. Rather than
3539 expecting Skia to adjust the include paths, be explicit about
3542 * WebCore.gyp/WebCore.gyp:
3544 2011-01-04 Darin Adler <darin@apple.com>
3546 Reviewed by Brady Eidson.
3548 Add back/forward encoding and decoding to WebKit2
3549 https://bugs.webkit.org/show_bug.cgi?id=51901
3551 * WebCore.exp.in: Export functions used in WebKit2.
3553 * history/HistoryItem.cpp:
3554 (WebCore::HistoryItem::encodeBackForwardTree): Use references instead of pointers.
3555 (WebCore::HistoryItem::encodeBackForwardTreeNode): Ditto.
3556 (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
3557 * history/HistoryItem.h: Ditto.
3558 * platform/network/FormData.cpp:
3559 (WebCore::encode): Ditto.
3560 (WebCore::decode): Ditto.
3561 (WebCore::FormData::encodeForBackForward): Ditto.
3562 (WebCore::FormData::decodeForBackForward): Ditto.
3563 * platform/network/FormData.h: Ditto.
3565 2011-01-04 Xiaomei Ji <xji@chromium.org>
3567 Reviewed by Dan Bernstein.
3569 Implement sel.modify('move', 'left'/'right', 'lineBoundary').
3570 https://bugs.webkit.org/show_bug.cgi?id=33435
3572 * editing/SelectionController.cpp:
3573 (WebCore::SelectionController::modifyMovingRight):
3574 (WebCore::SelectionController::modifyMovingLeft):
3575 * editing/visible_units.cpp:
3576 (WebCore::logicalStartOfLine):
3577 (WebCore::logicalEndOfLine):
3578 (WebCore::leftBoundaryOfLine):
3579 (WebCore::rightBoundaryOfLine):
3580 * editing/visible_units.h:
3582 2011-01-04 Martin Robinson <mrobinson@igalia.com>
3584 Reviewed by Xan Lopez.
3586 [GTK] Use the default CSS text input control border width of relying on the GTK+ theme
3587 https://bugs.webkit.org/show_bug.cgi?id=51887
3589 Do not rely on the GTK+ theme to determine text control borders. This simplifies
3590 the RenderTheme code, prevents metrics differences between GTK+ 2.x and 3.x and
3591 doesn't break the rendering of any theme that I've encountered.
3593 * platform/gtk/RenderThemeGtk.cpp:
3594 (WebCore::RenderThemeGtk::adjustSearchFieldStyle): No longer call setTextInputBorders, but
3595 still disable any border radius.
3596 * platform/gtk/RenderThemeGtk.h: Remove setTextInputBorders and no longer override the
3597 default style of text areas and text input controls.
3598 * platform/gtk/RenderThemeGtk2.cpp: Ditto.
3599 * platform/gtk/RenderThemeGtk3.cpp: Ditto.
3601 2011-01-03 Martin Robinson <mrobinson@igalia.com>
3603 Reviewed by Darin Adler.
3605 Remove the last non-GObject usage of PlatformRefPtr and move the code to GRefPtr
3606 https://bugs.webkit.org/show_bug.cgi?id=51846
3608 No new tests. This should not introduce any functional changes.
3610 Changed all references to PlatformRefPtr in GTK+ code to GRefPtr. Changed
3611 all references to PlatformRefPtr in Brew code to RefPtr.
3613 2011-01-04 David Kilzer <ddkilzer@apple.com>
3615 <http://webkit.org/b/51890> Move ResourceLoadPriority.h into WebCore/platform/network
3617 Reviewed by Antti Koivisto.
3619 This is needed to prevent a WebCore/platform policy violation in
3622 * WebCore.gypi: Updated for moved header.
3623 * WebCore.pro: Ditto.
3624 * WebCore.vcproj/WebCore.vcproj: Ditto.
3625 * WebCore.xcodeproj/project.pbxproj: Ditto.
3626 * platform/network/ResourceLoadPriority.h: Renamed from WebCore/loader/ResourceLoadPriority.h.
3628 2011-01-04 Brady Eidson <beidson@apple.com>
3630 Reviewed by a spell checker.
3632 * storage/StorageMap.h: mesured? Really?
3634 2011-01-04 Carlos Garcia Campos <cgarcia@igalia.com> and Martin Robinson <mrobinson@igalia.com>
3636 Reviewed by Xan Lopez.
3638 [GTK] Port stock icon painting to GtkStyleContext
3639 https://bugs.webkit.org/show_bug.cgi?id=51764
3641 Port stock icon painting for media and search input elements to
3642 GtkStyleContext. Also create the initial machinery for accessing
3643 style contexts for all GTK+ 3.x based widgets.
3645 No new tests. This should not change functionality.
3647 * platform/gtk/RenderThemeGtk.cpp:
3648 (WebCore::paintGdkPixbuf):
3649 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
3650 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
3651 (WebCore::RenderThemeGtk::paintMediaButton):
3652 * platform/gtk/RenderThemeGtk.h:
3653 * platform/gtk/RenderThemeGtk2.cpp:
3654 (WebCore::RenderThemeGtk::getStockIcon):
3655 * platform/gtk/RenderThemeGtk3.cpp:
3656 (WebCore::gtkStyleChangedCallback):
3657 (WebCore::styleContextMap):
3658 (WebCore::getStyleContext):
3659 (WebCore::RenderThemeGtk::paintMenuList):
3661 2010-12-31 Antti Koivisto <antti@apple.com>
3663 Reviewed by Dave Hyatt.
3665 Scripts should not be executed before preceding stylesheets are loaded
3666 https://bugs.webkit.org/show_bug.cgi?id=8852
3668 Block inline script execution on pending stylesheet loads. This matches
3669 other browsers and HTML5.
3671 Tests: fast/tokenizer/inline-script-stylesheet-write.html
3672 fast/tokenizer/inline-script-stylesheet.html
3674 * dom/PendingScript.cpp:
3675 (WebCore::PendingScript::releaseElementAndClear):
3676 * dom/PendingScript.h:
3677 (WebCore::PendingScript::PendingScript):
3678 (WebCore::PendingScript::operator=):
3679 (WebCore::PendingScript::startingPosition):
3680 (WebCore::PendingScript::setStartingPosition):
3681 * html/HTMLLinkElement.cpp:
3682 (WebCore::HTMLLinkElement::process):
3684 This fixes an unrelated bug with beforeload events that was exposed by the other
3685 changes (fast/dom/beforeload/remove-link-in-beforeload-listener.html).
3687 * html/parser/HTMLScriptRunner.cpp:
3688 (WebCore::HTMLScriptRunner::sourceFromPendingScript):
3689 (WebCore::HTMLScriptRunner::runScript):
3691 2011-01-04 Xianzhu Wang <wangxianzhu@google.com>
3693 Reviewed by Darin Adler.
3695 Let DataView.getInt8() and DataView.setInt8() use int8_t instead of
3696 ambiguous 'char' to fix fast/canvas/webgl/data-view-test.html failure
3698 https://bugs.webkit.org/show_bug.cgi?id=51861
3700 By the way, changed other getIntXX() and setIntXX() methods to use
3701 more precise integer types.
3703 * bindings/js/JSDataViewCustom.cpp:
3704 (WebCore::setDataViewMember):
3705 * bindings/v8/custom/V8DataViewCustom.cpp:
3706 (WebCore::V8DataView::getInt8Callback):
3707 (WebCore::V8DataView::setInt8Callback):
3708 * html/canvas/DataView.cpp:
3709 (WebCore::DataView::getInt8):
3710 (WebCore::DataView::setInt8):
3711 * html/canvas/DataView.h:
3712 * html/canvas/DataView.idl:
3714 2011-01-04 Yong Li <yoli@rim.com>
3716 Reviewed by Adam Barth.
3718 Suspend HTMLParserScheduler when page load is deferred to
3719 avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3720 from an external script or by events, and is blocked by a modal dialog,
3721 WebKit can parse more HTML source and also start another JS execution.
3723 https://bugs.webkit.org/show_bug.cgi?id=48077
3725 Test case: WebCore/manual-tests/bugzilla-48077.html.
3727 * dom/DocumentParser.cpp:
3728 (WebCore::DocumentParser::suspendScheduledTasks):
3729 (WebCore::DocumentParser::resumeScheduledTasks):
3730 * dom/DocumentParser.h:
3731 * html/parser/HTMLDocumentParser.cpp:
3732 (WebCore::HTMLDocumentParser::suspendScheduledTasks):
3733 (WebCore::HTMLDocumentParser::resumeScheduledTasks):
3734 * html/parser/HTMLParserScheduler.cpp:
3735 (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3736 (WebCore::HTMLParserScheduler::suspend):
3737 (WebCore::HTMLParserScheduler::resume):
3738 * html/parser/HTMLParserScheduler.h:
3739 (WebCore::HTMLParserScheduler::isScheduledForResume):
3740 * page/PageGroupLoadDeferrer.cpp:
3741 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3742 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3744 2011-01-04 Tony Gentilcore <tonyg@chromium.org>
3746 Unreviewed build fix.
3748 Include glib-object.h for GObject
3749 https://bugs.webkit.org/show_bug.cgi?id=51876
3751 * bindings/gobject/DOMObjectCache.cpp:
3753 2011-01-04 Ryosuke Niwa <rniwa@webkit.org>
3755 Reviewed by Dan Bernstein.
3757 Clicking on the first or the last letter of LTR/RTL text in a RTL/LTR block puts caret on the opposite side.
3758 https://bugs.webkit.org/show_bug.cgi?id=50992
3760 Fixed the bug by interchanging the offset when the direction of inline text box and the containing block
3761 does not match. Reused the code added by http://trac.webkit.org/changeset/73553.
3763 Test: editing/selection/caret-bidi-first-and-last-letters.html
3765 * rendering/InlineTextBox.cpp:
3766 (WebCore::InlineTextBox::offsetForPosition):
3768 2010-12-29 Tony Gentilcore <tonyg@chromium.org>
3770 Reviewed by Darin Adler.
3772 Remove 2 unnecessary includes from Document.h
3773 https://bugs.webkit.org/show_bug.cgi?id=51727
3775 No new tests because no changed functionality.
3779 * editing/Editor.cpp:
3780 * editing/SpellChecker.h:
3781 * editing/SplitTextNodeCommand.cpp:
3782 * editing/TextCheckingHelper.cpp:
3783 * page/FrameView.cpp:
3785 * rendering/HitTestResult.cpp:
3786 * rendering/InlineTextBox.cpp:
3787 * rendering/InlineTextBox.h:
3788 * rendering/svg/SVGInlineFlowBox.cpp:
3790 2011-01-04 Patrick Gansterer <paroga@webkit.org>
3792 Unreviewed WinCE build fix.
3794 * CMakeListsWinCE.txt: Added missing include directories, files and libraries.
3796 2011-01-04 Yi Shen <yi.4.shen@nokia.com>
3798 Reviewed by Simon Hausmann.
3800 Provide an interface to require using fullscreen mediaplayer
3801 https://bugs.webkit.org/show_bug.cgi?id=51133
3803 Only video should be displayed in fullscreen when
3804 requiresFullscreenForVideoPlayback is specified.
3806 No new tests because no client implements requiresFullscreenForVideoPlayback yet.
3808 * html/HTMLMediaElement.cpp:
3809 (WebCore::HTMLMediaElement::updatePlayState):
3811 2011-01-04 Benjamin Poulain <benjamin.poulain@nokia.com>
3813 Reviewed by Kenneth Rohde Christiansen.
3815 [Qt] [WK2] create an initial implementation of the context menu handling for WebKit 2
3816 https://bugs.webkit.org/show_bug.cgi?id=51825
3818 Implement contextMenuItemVector() for Qt, this method is used in WebKit 2 to get the
3819 platform independent menu informations.
3821 * platform/qt/ContextMenuQt.cpp:
3822 (WebCore::contextMenuItemVector):
3824 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
3826 Unreviewed, rolling out r74960.
3827 http://trac.webkit.org/changeset/74960
3828 https://bugs.webkit.org/show_bug.cgi?id=51868
3830 Rollout since we hit an assert after this patch. (Requested by
3833 * svg/SVGUseElement.cpp:
3834 (WebCore::SVGUseElement::buildInstanceTree):
3836 2011-01-04 Sheriff Bot <webkit.review.bot@gmail.com>
3838 Unreviewed, rolling out r74961.
3839 http://trac.webkit.org/changeset/74961
3840 https://bugs.webkit.org/show_bug.cgi?id=51867
3842 breaks 32/64-bits debug bots build (Requested by philn-tp on
3845 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3846 (WebCore::GStreamerGWorld::setWindowOverlay):
3848 2011-01-03 Philippe Normand <pnormand@igalia.com>
3850 Rubber-stamped by Eric Seidel.
3852 [GStreamer] build fails with gstreamer core 0.10.31 and -plugins-base 0.10.30
3853 https://bugs.webkit.org/show_bug.cgi?id=51810
3855 Based on a patch by Mart Raudsepp.
3857 No new tests, build fix only.
3859 * platform/graphics/gstreamer/GStreamerGWorld.cpp:
3860 (WebCore::GStreamerGWorld::setWindowOverlay): Use the new xoverlay
3861 API if the GST_CHECK_PLUGINS_BASE_VERSION macro is defined. It was
3862 introduced in same version as the xoverlay API change.
3864 2011-01-04 Leo Yang <leo.yang@torchmobile.com.cn>
3866 Reviewed by Dirk Schulze.
3868 Malformed SVG causes crash in updateContainerOffset
3869 https://bugs.webkit.org/show_bug.cgi?id=44610
3871 We should check recursive <use> at the begining of
3872 WebCore::SVGUseElement::buildInstanceTree instead
3873 of at the end of it because the target element's
3874 children may cause infinite recursive <use>.
3876 Test: svg/custom/recursive-use.svg
3878 * svg/SVGUseElement.cpp:
3879 (WebCore::SVGUseElement::buildInstanceTree):
3881 2011-01-04 Kent Tamura <tkent@chromium.org>
3883 Unreviewed, build fix.
3885 Try to fix Clang build.
3887 * css/CSSParser.cpp:
3888 (WebCore::valueFromSideKeyword):
3889 (WebCore::CSSParser::parseLinearGradient):
3891 2011-01-03 Julie-Jeongeun-Kim <Jeongeun.Kim@obigo.com>
3893 Reviewed by Darin Adler.
3895 HTML5 Conformance Test failure: approved/xhtml5/object_border_pixel.xhtml
3896 https://bugs.webkit.org/show_bug.cgi?id=48596
3898 border attribute was not parsed in HTMLObjectElement.
3899 I added code for it as HTMLImageElement handled.
3901 new test:fast/html/object-border.html
3903 * html/HTMLObjectElement.cpp:
3904 (WebCore::HTMLObjectElement::parseMappedAttribute):
3906 2011-01-03 Darin Adler <darin@apple.com>
3908 Try to fix Chromium build.
3910 * history/HistoryItem.cpp:
3911 (WebCore::HistoryItem::encodeBackForwardTreeNode): Added a V8 case here.
3912 Not sure this ever will be used with V8.
3913 (WebCore::HistoryItem::decodeBackForwardTree): Ditto.
3915 2011-01-03 Darin Adler <darin@apple.com>
3917 Try to fix Leopard build.
3919 * history/HistoryItem.cpp: Use a consistent type, uint64_t, for the
3922 2011-01-03 Abhishek Arya <inferno@chromium.org>
3924 Reviewed by Darin Adler.
3926 Fixes before child calculation when adding anonymous childs to table parts.
3927 https://bugs.webkit.org/show_bug.cgi?id=50932
3929 Fix in r74364 was incomplete. When before child is equal to the table part(to
3930 which the new child is getting added), it confuses the table part to add it
3931 incorrectly as an after child. The patch fixes by passing the before child as
3932 the table part's first child.
3934 Tests: fast/css-generated-content/table-before-after-child-add.html
3935 fast/css-generated-content/table-cell-before-after-child-add.html
3936 fast/css-generated-content/table-row-before-after-child-add.html
3937 fast/css-generated-content/table-row-before-after-child-add.html
3939 * rendering/RenderTable.cpp:
3940 (WebCore::RenderTable::addChild):
3941 * rendering/RenderTableRow.cpp:
3942 (WebCore::RenderTableRow::addChild):
3943 * rendering/RenderTableSection.cpp:
3944 (WebCore::RenderTableSection::addChild):
3946 2011-01-03 Dan Bernstein <mitz@apple.com>
3948 Reviewed by Simon Fraser.
3950 Shrink HTMLTableCellElement
3951 https://bugs.webkit.org/show_bug.cgi?id=51858
3953 * html/HTMLTableCellElement.cpp:
3954 (WebCore::HTMLTableCellElement::HTMLTableCellElement): Removed intialization of m_row and
3956 * html/HTMLTableCellElement.h: Removed m_row and m_col and their accessors.
3958 2011-01-03 Darin Adler <darin@apple.com>
3962 * platform/network/FormData.cpp:
3963 (WebCore::FormData::create): Roll back uint8_t change.
3964 (WebCore::FormData::flatten): Ditto.
3965 (WebCore::FormData::flattenToString): Ditto.
3966 (WebCore::encode): Ditto.
3967 (WebCore::decode): Ditto.
3968 (WebCore::FormData::encodeForBackForward):
3969 * platform/network/FormData.h: Ditto.
3970 * platform/network/mac/FormDataStreamMac.mm:
3971 (WebCore::advanceCurrentStream): Ditto.
3973 2011-01-03 Darin Adler <darin@apple.com>
3975 Reviewed by Brady Eidson.
3977 Add code to encode/decode the back/forward tree
3978 https://bugs.webkit.org/show_bug.cgi?id=51853
3980 * history/HistoryItem.cpp:
3981 (WebCore::HistoryItem::encodeBackForwardTree): Added.
3982 (WebCore::HistoryItem::encodeBackForwardTreeNode): Added.
3983 (WebCore::HistoryItem::decodeBackForwardTree): Added.
3984 * history/HistoryItem.h: Added functions above.
3986 * platform/network/FormData.cpp:
3987 (WebCore::FormData::create): Changed type to Vector<uint8_t> instead of
3988 Vector<char>. This type is used in our newer code for vectors of bytes.
3989 (WebCore::FormData::flatten): Ditto.
3990 (WebCore::FormData::flattenToString): Ditto. Had to add a cast here.
3991 (WebCore::FormData::encodeForBackForward): Added.
3992 (WebCore::FormData::decodeForBackForward): Added.
3993 * platform/network/FormData.h: Changed type to Vector<uint8_t> instead of
3994 Vector<char>. Also made some single-argument constructors explicit.
3995 Also added the new functions.
3997 * platform/network/mac/FormDataStreamMac.mm:
3998 (WebCore::advanceCurrentStream): Changed to use uint8_t to match above.
4000 2011-01-03 Simon Fraser <simon.fraser@apple.com>
4002 Attempt to fix GTK build.
4004 * platform/graphics/gtk/FontGtk.cpp:
4005 (WebCore::drawGlyphsShadow):
4007 2011-01-03 Helder Correia <helder@sencha.com>
4009 Reviewed by Simon Fraser.
4011 ContextShadow can avoid code duplication for getting the CTM
4012 https://bugs.webkit.org/show_bug.cgi?id=51799
4014 ContextShadow defines its own getTransformationMatrixFromContext()
4015 which does exactly the same as GraphicsContext::getCTM().
4017 Existing tests: fast/canvas/canvas*shadow*html
4019 * platform/graphics/ContextShadow.cpp:
4020 (WebCore::ContextShadow::mustUseContextShadow):
4021 (WebCore::ContextShadow::adjustBlurDistance):
4022 (WebCore::ContextShadow::calculateLayerBoundingRect):
4023 * platform/graphics/ContextShadow.h:
4024 * platform/graphics/cairo/ContextShadowCairo.cpp:
4025 (WebCore::ContextShadow::beginShadowLayer):
4026 (WebCore::ContextShadow::endShadowLayer):
4027 (WebCore::ContextShadow::drawRectShadowWithoutTiling):
4028 * platform/graphics/cairo/FontCairo.cpp:
4029 (WebCore::drawGlyphsShadow):
4030 * platform/graphics/cairo/GraphicsContextCairo.cpp:
4031 (WebCore::drawPathShadow):
4032 * platform/graphics/cairo/ImageCairo.cpp:
4033 (WebCore::BitmapImage::draw):
4034 * platform/graphics/gtk/FontGtk.cpp:
4035 (WebCore::drawGlyphsShadow):
4036 * platform/graphics/qt/ContextShadowQt.cpp:
4037 (WebCore::ContextShadow::beginShadowLayer):
4038 (WebCore::ContextShadow::endShadowLayer):
4039 * platform/graphics/qt/FontQt.cpp:
4040 (WebCore::drawTextCommon):
4041 * platform/graphics/qt/GraphicsContextQt.cpp:
4042 (WebCore::GraphicsContext::fillPath):
4043 (WebCore::GraphicsContext::strokePath):
4044 (WebCore::GraphicsContext::fillRect):
4045 (WebCore::GraphicsContext::fillRoundedRect):
4046 * platform/graphics/qt/ImageQt.cpp:
4047 (WebCore::BitmapImage::draw):
4048 * platform/graphics/qt/StillImageQt.cpp:
4049 (WebCore::StillImage::draw):
4051 2011-01-03 Darin Adler <darin@apple.com>
4053 Reviewed by Dan Bernstein.
4055 InsertTextCommand::m_charactersAdded is unused
4056 https://bugs.webkit.org/show_bug.cgi?id=51849
4058 * editing/InsertTextCommand.cpp:
4059 (WebCore::InsertTextCommand::InsertTextCommand): Don't initialize m_charactersAdded.
4060 (WebCore::InsertTextCommand::input): Don't update m_charactersAdded.
4061 * editing/InsertTextCommand.h: Removed charactersAdded function and
4062 m_charactersAdded data member.
4064 2011-01-03 Carlos Garcia Campos <cgarcia@igalia.com>
4066 Reviewed by Martin Robinson.
4068 [GTK] Move paintMenuListButton() to RenderThemeGtk.cpp
4069 https://bugs.webkit.org/show_bug.cgi?id=51832
4071 Method paintMenuListButton() contains code common to both gtk 2
4072 and 3, so it can be moved to RenderThemeGtk.cpp instead of
4075 * platform/gtk/RenderThemeGtk.cpp:
4076 (WebCore::RenderThemeGtk::paintMenuListButton):
4077 * platform/gtk/RenderThemeGtk2.cpp:
4078 * platform/gtk/RenderThemeGtk3.cpp:
4080 2011-01-03 Pratik Solanki <psolanki@apple.com>
4082 Reviewed by Darin Adler.
4084 https://bugs.webkit.org/show_bug.cgi?id=51850
4085 Put CFNetwork loader code inside USE(CFNETWORK)
4087 Add USE(CFNETWORK) macros around all the cf/mac network files. Also added all CFNetwork
4088 files to the WebCore Xcode project.
4090 * WebCore.xcodeproj/project.pbxproj:
4091 * loader/cf/ResourceLoaderCFNet.cpp:
4092 * loader/mac/ResourceLoaderMac.mm:
4093 * platform/network/cf/AuthenticationCF.cpp:
4094 * platform/network/cf/AuthenticationCF.h:
4095 * platform/network/cf/CookieJarCFNet.cpp:
4096 * platform/network/cf/CookieStorageCFNet.cpp:
4097 * platform/network/cf/CookieStorageCFNet.h:
4098 * platform/network/cf/CredentialStorageCFNet.cpp:
4099 * platform/network/cf/FormDataStreamCFNet.cpp:
4100 * platform/network/cf/FormDataStreamCFNet.h:
4101 * platform/network/cf/LoaderRunLoopCF.cpp:
4102 * platform/network/cf/LoaderRunLoopCF.h:
4103 * platform/network/cf/ResourceError.h:
4104 * platform/network/cf/ResourceHandleCFNet.cpp:
4105 * platform/network/cf/ResourceRequest.h:
4106 * platform/network/cf/ResourceRequestCFNet.cpp:
4107 * platform/network/cf/ResourceRequestCFNet.h:
4108 * platform/network/cf/ResourceResponse.h:
4109 * platform/network/cf/ResourceResponseCFNet.cpp:
4110 * platform/network/mac/AuthenticationMac.h:
4111 * platform/network/mac/AuthenticationMac.mm:
4112 * platform/network/mac/FormDataStreamMac.h:
4113 * platform/network/mac/FormDataStreamMac.mm:
4114 * platform/network/mac/ResourceError.h:
4115 * platform/network/mac/ResourceHandleMac.mm:
4116 * platform/network/mac/ResourceRequest.h:
4117 * platform/network/mac/ResourceRequestMac.mm:
4118 * platform/network/mac/ResourceResponse.h:
4119 * platform/network/mac/ResourceResponseMac.mm:
4121 2011-01-03 Yi Shen <yi.4.shen@nokia.com>
4123 Reviewed by Adam Barth.
4125 [Qt] Add SelectAll option to the context menu for the editor
4126 https://bugs.webkit.org/show_bug.cgi?id=50049
4128 Enable SelectAll for the Qt context menu.
4130 * page/ContextMenuController.cpp:
4131 (WebCore::ContextMenuController::populate):
4132 * platform/ContextMenuItem.h:
4133 * platform/LocalizationStrategy.h:
4134 * platform/LocalizedStrings.cpp:
4135 (WebCore::contextMenuItemTagSelectAll):
4136 * platform/LocalizedStrings.h:
4138 2011-01-03 Dan Bernstein <mitz@apple.com>
4140 Reviewed by Darin Adler.
4142 Shrink RootInlineBox
4143 https://bugs.webkit.org/show_bug.cgi?id=51847
4145 * rendering/RootInlineBox.cpp:
4146 (WebCore::RootInlineBox::alignBoxesInBlockDirection): Changed to use the baselineType()
4148 * rendering/RootInlineBox.h: Rolled m_baselineType into a bitfield. Changed its type to
4149 unsigned because otherwise MSVC treats it as signed.
4150 (WebCore::RootInlineBox::baselineType): Added a cast.
4152 2011-01-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
4154 Reviewed by Martin Robinson.
4156 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
4157 https://bugs.webkit.org/show_bug.cgi?id=50698
4159 Fix DOM bindings generation to no longer include the now-gone
4160 webkitprivate.h header, including the appropriate replacements
4163 * bindings/scripts/CodeGeneratorGObject.pm:
4165 2011-01-03 Brady Eidson <beidson@apple.com>
4167 Reviewed by Darin Adler.
4169 Add Encode/Decode machinery Darin and I plan to work with for back/forward stuff in WebKit2.
4171 * ForwardingHeaders/wtf/Decoder.h: Added.
4172 * ForwardingHeaders/wtf/Encoder.h: Added.
4174 2011-01-03 Chris Fleizach <cfleizach@apple.com>
4176 Reviewed by Darin Adler.
4178 AX: Regression: WebKit no longer auto-scrolls with VoiceOver navigation
4179 https://bugs.webkit.org/show_bug.cgi?id=51833
4181 Make sure the web area returns the contentsSize, not the same size as what is displayed.
4183 Test: platform/mac/accessibility/webarea-size-equals-content-size.html
4185 * accessibility/AccessibilityRenderObject.cpp:
4186 (WebCore::AccessibilityRenderObject::boundingBoxRect):
4188 2011-01-03 Simon Fraser <simon.fraser@apple.com>
4190 Fix warning in 32-bit builds.
4192 * css/CSSGradientValue.cpp:
4193 (WebCore::CSSLinearGradientValue::createGradient):
4195 2011-01-03 Benjamin C Meyer <bmeyer@rim.com>
4197 Reviewed by Daniel Bates.
4199 In the cmake build system move logic related to ENABLE_NOTIFICATIONS into its own block.
4200 https://bugs.webkit.org/show_bug.cgi?id=51827