af610d033adc5f5f5039a7ba1e23d3b696e079dc
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-11-17  Raphael Kubo da Costa  <kubo@profusion.mobi>
2
3         [EFL] Clean up the use of DATA_DIR in the buildsystem
4         https://bugs.webkit.org/show_bug.cgi?id=72681
5
6         Reviewed by Daniel Bates.
7
8         Add the -DDATA_DIR definition here instead of defining it globally in
9         OptionsEfl.cmake, as WebCore is the only place which needs it.
10
11         No new tests, this is a buildsystem change.
12
13         * PlatformEfl.cmake:
14
15 2011-11-17  Adam Klein  <adamk@chromium.org>
16
17         Move JS recursion counter from V8Proxy to V8BindingPerIsolateData
18         https://bugs.webkit.org/show_bug.cgi?id=72645
19
20         Reviewed by Adam Barth.
21
22         With the JS recursion level stored as a member of V8Proxy, it's tied
23         to a frame. But this is incorrect, as there's no reason that a JS call
24         stack need be restricted to a single frame (see my new test case for
25         an example of code going across frames).
26
27         In order to get the correct accounting of JS recursion level, per-Isolate
28         is the right granularity (per dslomov), which is what this patch accomplishes.
29
30         Test: storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html
31
32         * bindings/v8/V8Binding.cpp:
33         (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
34         * bindings/v8/V8Binding.h:
35         (WebCore::V8BindingPerIsolateData::recursionLevel):
36         (WebCore::V8BindingPerIsolateData::incrementRecursionLevel):
37         (WebCore::V8BindingPerIsolateData::decrementRecursionLevel):
38         (WebCore::V8RecursionScope::V8RecursionScope):
39         (WebCore::V8RecursionScope::~V8RecursionScope):
40         * bindings/v8/V8Proxy.cpp:
41         (WebCore::incrementRecursionLevel):
42         (WebCore::decrementRecursionLevel):
43         (WebCore::recursionLevel):
44         (WebCore::V8Proxy::V8Proxy):
45         (WebCore::V8Proxy::runScript):
46         (WebCore::V8Proxy::callFunction):
47         (WebCore::V8Proxy::didLeaveScriptContext):
48         * bindings/v8/V8Proxy.h:
49
50 2011-11-17  Robin Cao  <robin.cao@torchmobile.com.cn>
51
52         [chromium] Font::drawComplexText can not draw a segment of text run
53         https://bugs.webkit.org/show_bug.cgi?id=72095
54
55         Reviewed by Adam Barth.
56
57         drawComplexText() should respect the 'from' and 'to' arguments.
58         Drawing the whole text run may result in text overlapping.
59
60         Test: platform/chromium-linux/fast/text/international/draw-complex-text-from-to.html
61
62         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
63         (WebCore::ComplexTextController::glyphsForRange):
64         * platform/graphics/chromium/ComplexTextControllerLinux.h:
65         * platform/graphics/chromium/FontLinux.cpp:
66         (WebCore::Font::drawComplexText):
67
68 2011-11-17  Adam Barth  <abarth@webkit.org>
69
70         Unique SecurityOrigins shouldn't remember their old schemes and hosts
71         https://bugs.webkit.org/show_bug.cgi?id=71745
72
73         Reviewed by Darin Adler.
74
75         This is the final step in this series of patches.
76
77         This patch removes the forceUnique flag from SecurityOrigin::create.
78         Now, we create unique origins without passing in the document's URL,
79         preventing information from the document's URL from leaking into the
80         unique origin.
81
82         * WebCore.exp.in:
83         * dom/Document.cpp:
84         (WebCore::Document::setIsViewSource):
85         (WebCore::Document::initSecurityContext):
86         * loader/cache/MemoryCache.cpp:
87         (WebCore::MemoryCache::getOriginsWithCache):
88             - Update this callsite to use createFromString, which does exactly
89               what this code is doing manually.
90         * page/SecurityOrigin.cpp:
91         (WebCore::SecurityOrigin::create):
92         * page/SecurityOrigin.h:
93
94 2011-11-17  Vincent Scheib  <scheib@chromium.org>
95
96         Pointer Lock: Page Settings unecessary
97         https://bugs.webkit.org/show_bug.cgi?id=72662
98
99         Reviewed by Darin Fisher.
100
101         No new tests.
102
103         * page/Settings.cpp:
104         (WebCore::Settings::Settings):
105         * page/Settings.h:
106
107 2011-11-17  James Robinson  <jamesr@chromium.org>
108
109         [chromium] Disable incremental uploading in threaded compositing path
110         https://bugs.webkit.org/show_bug.cgi?id=72669
111
112         Reviewed by Kenneth Russell.
113
114         Since we don't currently support atomic incremental uploads, incremental uploads in the threaded path result in
115         very strange-looking texture popping as tiles come in on pages that require more than 16 tile uploads per frame.
116         This disables that logic (by setting the upload limit per frame to 99999) until we handle the incremental
117         updates in an atomic fashion.
118
119         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
120         (WebCore::CCThreadProxy::scheduledActionUpdateMoreResources):
121
122 2011-11-06  Nat Duca  <nduca@chromium.org>
123
124         [chromium] Fix handling of setNeedsCommit and setNeedsAnimate in threaded mode
125         https://bugs.webkit.org/show_bug.cgi?id=71638
126
127         Reviewed by James Robinson.
128
129         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
130         (WebCore::CCThreadProxy::CCThreadProxy):
131         (WebCore::CCThreadProxy::setNeedsAnimate):
132         (WebCore::CCThreadProxy::beginFrameAndCommit):
133
134 2011-11-17  Adam Barth  <abarth@webkit.org>
135
136         Remove bogus ASSERT.
137
138         * page/SecurityOrigin.cpp:
139         (WebCore::SecurityOrigin::SecurityOrigin):
140
141 2011-11-17  Peter Kasting  <pkasting@google.com>
142
143         Unreviewed, rolling out r100698.
144         http://trac.webkit.org/changeset/100698
145         https://bugs.webkit.org/show_bug.cgi?id=72239
146
147         This change wasn't the problem either.
148
149         * dom/Document.cpp:
150         (WebCore::Document::implicitClose):
151
152 2011-11-17  David Reveman  <reveman@chromium.org>
153
154         [Chromium] Calls to paintContentsIfDirty() and updateCompositorResources() should be balanced.
155         https://bugs.webkit.org/show_bug.cgi?id=72630
156
157         Reviewed by James Robinson.
158
159         Layer property changes during paintContent() can leave the layer
160         in an invalid state as paintContentsIfDirty() has been called
161         without a matching updateCompositorResources() call. Removing
162         conditionals around these calls ensure they are balanced.
163
164         This patch is tested by the following unit test:
165         - CCLayerTreeHostTestOpacityChange.runMultiThread
166
167         * platform/graphics/chromium/ContentLayerChromium.cpp:
168         (WebCore::ContentLayerChromium::paintContentsIfDirty):
169         * platform/graphics/chromium/VideoLayerChromium.cpp:
170         (WebCore::VideoLayerChromium::updateCompositorResources):
171         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
172         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
173         (WebCore::CCLayerTreeHost::paintLayerContents):
174         (WebCore::CCLayerTreeHost::updateCompositorResources):
175         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
176
177 2011-11-17  Peter Kasting  <pkasting@google.com>
178
179         Unreviewed, rolling out r100584.
180         http://trac.webkit.org/changeset/100584
181         https://bugs.webkit.org/show_bug.cgi?id=72239
182
183         See if this change caused Linux dbg crashes.
184
185         * dom/Document.cpp:
186         (WebCore::Document::implicitClose):
187
188 2011-11-17  Adam Barth  <abarth@webkit.org>
189
190         Remove cargo-cult copy/pasting of ScriptExecutionContext namespace
191         https://bugs.webkit.org/show_bug.cgi?id=72676
192
193         Reviewed by Eric Seidel.
194
195         It looks like this cargo-cult started with initDNSPrefetch being hacked
196         into setSecurityOrigin.  I've removed this hack along with the
197         copy/paste code.
198
199         * dom/DOMImplementation.cpp:
200         * dom/Document.cpp:
201         (WebCore::Document::setIsViewSource):
202         (WebCore::Document::open):
203         (WebCore::Document::initSecurityContext):
204         (WebCore::Document::setSecurityOrigin):
205         * dom/Document.h:
206         * xml/XSLTProcessor.cpp:
207
208 2011-11-17  Peter Kasting  <pkasting@google.com>
209
210         Unreviewed, rolling out r100676.
211         http://trac.webkit.org/changeset/100676
212         https://bugs.webkit.org/show_bug.cgi?id=72393
213
214         Looks like r100572 was not the source of the crashes.
215
216         * bindings/js/ScriptDebugServer.cpp:
217         (WebCore::ScriptDebugServer::canSetScriptSource):
218         * bindings/js/ScriptDebugServer.h:
219         * bindings/v8/ScriptDebugServer.cpp:
220         (WebCore::ScriptDebugServer::stepOutOfFunction):
221         (WebCore::ScriptDebugServer::canSetScriptSource):
222         * bindings/v8/ScriptDebugServer.h:
223         * inspector/CodeGeneratorInspector.py:
224         * inspector/Inspector.json:
225         * inspector/InspectorDebuggerAgent.cpp:
226         (WebCore::InspectorDebuggerAgent::getCapabilities):
227         * inspector/InspectorDebuggerAgent.h:
228         * inspector/front-end/DebuggerModel.js:
229         (WebInspector.DebuggerModel):
230         (WebInspector.DebuggerModel.prototype.enableDebugger):
231         (WebInspector.DebuggerModel.prototype.disableDebugger):
232         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
233         * inspector/front-end/DebuggerPresentationModel.js:
234         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
235         * inspector/front-end/Settings.js:
236
237 2011-11-17  Konstantin Scheglov  <scheglov@google.com>
238
239         Absolute child is not repainted when parent opacity changes
240         https://bugs.webkit.org/show_bug.cgi?id=68777
241
242         Reviewed by Simon Fraser.
243
244         First time when we change opacity for parent we don't have layer, so
245         diff=StyleDifferenceRepaint is used instead of diff=StyleDifferenceRepaintLayer.
246         Layer is created later, in styleDidChange().
247         So, when we recalculate later diff, we now check for diff=StyleDifferenceRepaintLayer and
248         performs repaintIncludingDescendants().
249
250         Test: fast/layers/layer-absolute-parent-opacity.html
251
252         * rendering/RenderObject.cpp:
253         (WebCore::RenderObject::setStyle): Call repaintIncludingDescendants() instead of repaint().
254         * rendering/style/RenderStyle.cpp:
255         (WebCore::RenderStyle::diff): Add ContextSensitivePropertyOpacity when change opacity.
256
257 2011-11-17  Nate Chapin  <japhet@chromium.org>
258
259         r100311 dropped a RefPtr that is very
260         helpful. Add it back.
261         https://bugs.webkit.org/show_bug.cgi?id=72647
262
263         Reviewed by Adam Barth.
264
265         http/tests/misc/xslt-bad-import.html should
266         stop crashing in full chromium builds.
267
268         * loader/cache/CachedResourceLoader.cpp:
269         (WebCore::CachedResourceLoader::loadDone):
270
271 2011-11-17  Adam Barth  <abarth@webkit.org>
272
273         Refactor SecurityOrigin::create to be easier to understand
274         https://bugs.webkit.org/show_bug.cgi?id=72342
275
276         Reviewed by Eric Seidel.
277
278         Over time, the SecurityOrigin constructor has grown a bit out of
279         control.  This patch attempts to separate the different concerns into
280         free functions.  The general approach is to put more logic in the
281         "create" function and introduce a simple constructor for unique
282         origins.
283
284         This patch shouldn't change any behavior.
285
286         * page/SecurityOrigin.cpp:
287         (WebCore::schemeRequiresAuthority):
288         (WebCore::shouldUseInnerURL):
289         (WebCore::extractInnerURL):
290         (WebCore::isDirectory):
291         (WebCore::shouldTreatAsUniqueOrigin):
292         (WebCore::SecurityOrigin::SecurityOrigin):
293         (WebCore::SecurityOrigin::create):
294         (WebCore::SecurityOrigin::createUnique):
295         (WebCore::SecurityOrigin::databaseIdentifier):
296         * page/SecurityOrigin.h:
297
298 2011-11-17  Shawn Singh  <shawnsingh@chromium.org>
299
300         [chromium] Fix minor style nit in CCLayerImpl
301         https://bugs.webkit.org/show_bug.cgi?id=71070
302
303         Reviewed by James Robinson.
304
305         Fixes if-statements on several settors to follow WebKit
306         conventions. Existing CCLayerImplTest unit tests already cover
307         this change.
308
309         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
310         (WebCore::CCLayerImpl::setBounds):
311         (WebCore::CCLayerImpl::setMaskLayer):
312         (WebCore::CCLayerImpl::setReplicaLayer):
313         (WebCore::CCLayerImpl::setDrawsContent):
314         (WebCore::CCLayerImpl::setAnchorPoint):
315         (WebCore::CCLayerImpl::setAnchorPointZ):
316         (WebCore::CCLayerImpl::setBackgroundColor):
317         (WebCore::CCLayerImpl::setMasksToBounds):
318         (WebCore::CCLayerImpl::setOpaque):
319         (WebCore::CCLayerImpl::setOpacity):
320         (WebCore::CCLayerImpl::setPosition):
321         (WebCore::CCLayerImpl::setPreserves3D):
322         (WebCore::CCLayerImpl::setZoomAnimatorTransform):
323         (WebCore::CCLayerImpl::setSublayerTransform):
324         (WebCore::CCLayerImpl::setTransform):
325         (WebCore::CCLayerImpl::setDebugBorderColor):
326         (WebCore::CCLayerImpl::setDebugBorderWidth):
327         (WebCore::CCLayerImpl::setContentBounds):
328         (WebCore::CCLayerImpl::setScrollPosition):
329         (WebCore::CCLayerImpl::setScrollDelta):
330         (WebCore::CCLayerImpl::setScaleDelta):
331         (WebCore::CCLayerImpl::setDoubleSided):
332
333 2011-11-17  Michael Saboff  <msaboff@apple.com>
334
335         Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
336         https://bugs.webkit.org/show_bug.cgi?id=72416
337
338         Added code to release _cache_event_source and _timer_event_source
339         after they are canceled.  Also added defensive code to
340         clean up the _timer_event_source in uninstall().
341
342         Reviewed by Geoffrey Garen.
343
344         No new tests, fixing leaks caught by leaks bot.
345
346         * platform/mac/MemoryPressureHandlerMac.mm:
347         (WebCore::MemoryPressureHandler::uninstall):
348         (WebCore::MemoryPressureHandler::holdOff):
349
350 2011-11-17  Ken Buchanan <kenrb@chromium.org>
351
352         Crash from positioned generated content under run-in
353         https://bugs.webkit.org/show_bug.cgi?id=70456
354
355         Reviewed by David Hyatt.
356
357         Modified handling of run-in children to clear generated children
358         before removing the parent from the render tree. This caused problems
359         with absolute positioned children being not properly removed from the
360         positioned object list of the RenderView.
361
362         * rendering/RenderBlock.cpp:
363         (WebCore::RenderBlock::handleRunInChild):
364
365 2011-11-17  Peter Kasting  <pkasting@google.com>
366
367         Unreviewed, rolling out r100572.
368         https://bugs.webkit.org/show_bug.cgi?id=72393
369         https://bugs.webkit.org/show_bug.cgi?id=72651
370
371         May have caused seg faults on Chromium Linux dbg bot.
372
373         * bindings/js/ScriptDebugServer.cpp:
374         * bindings/js/ScriptDebugServer.h:
375         * bindings/v8/ScriptDebugServer.cpp:
376         (WebCore::ScriptDebugServer::stepOutOfFunction):
377         * bindings/v8/ScriptDebugServer.h:
378         * inspector/CodeGeneratorInspector.py:
379         * inspector/Inspector.json:
380         * inspector/InspectorDebuggerAgent.cpp:
381         * inspector/InspectorDebuggerAgent.h:
382         * inspector/front-end/DebuggerModel.js:
383         (WebInspector.DebuggerModel):
384         (WebInspector.DebuggerModel.prototype.enableDebugger):
385         (WebInspector.DebuggerModel.prototype.disableDebugger):
386         * inspector/front-end/DebuggerPresentationModel.js:
387         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
388         * inspector/front-end/Settings.js:
389
390 2011-11-17  Sheriff Bot  <webkit.review.bot@gmail.com>
391
392         Unreviewed, rolling out r100652.
393         http://trac.webkit.org/changeset/100652
394         https://bugs.webkit.org/show_bug.cgi?id=72648
395
396         "Caused outline-offset-min-assert.html to assert on debug
397         builds" (Requested by mwenge2 on #webkit).
398
399         * rendering/RenderObject.cpp:
400         (WebCore::RenderObject::paintOutline):
401
402 2011-11-17  Mark Rowe  <mrowe@apple.com>
403
404         <http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
405
406         Reviewed by Simon Fraser.
407
408         * platform/graphics/cg/ImageBufferDataCG.cpp:
409         (WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.
410
411 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
412
413         AX: The scrollArea is not correctly returning the scrollbars
414         https://bugs.webkit.org/show_bug.cgi?id=70247
415
416         Reviewed by Beth Dakin.
417
418         A few bugs that were preventing this from working.
419            1) In accessibilityAttributeValue: when an element did not have a renderer() we were returning earlier than we should have
420            2) We were not updating and clearing the scrollbars correctly when children were cleared or when asked for.
421
422         Test: platform/mac/accessibility/scrollbars.html
423
424         * accessibility/AccessibilityScrollView.cpp:
425         (WebCore::AccessibilityScrollView::scrollBar):
426         (WebCore::AccessibilityScrollView::clearChildren):
427         * accessibility/AccessibilityScrollView.h:
428         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
429         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
430
431 2011-11-14  Adam Barth  <abarth@webkit.org>
432
433         Unique origins shouldn't remember their scheme, host, or port
434         https://bugs.webkit.org/show_bug.cgi?id=72308
435
436         Reviewed by Eric Seidel.
437
438         This patch contains the bulk (all?) of the behavior differences in this
439         patch series.  Unique origins shouldn't remember their schemes.  Doing
440         so causes some privileges (e.g., local access) to leak into unique
441         origins.
442
443         * page/SecurityOrigin.cpp:
444         (WebCore::SecurityOrigin::SecurityOrigin):
445             - Explicitly clear out the protocol, host, and port for unique
446               origins.  A future patch will refactor all this code to be more
447               elegant.
448         * platform/SchemeRegistry.cpp:
449         (WebCore::schemesWithUniqueOrigins):
450             - Merge "about" and "javascript" in with the general case now that
451               we don't have a separate notion of an empty origin.
452
453 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
454
455         AX: cleanup style and naming and code in accessibility search mechanism
456         https://bugs.webkit.org/show_bug.cgi?id=72570
457
458         Reviewed by Beth Dakin.
459
460         Cleanup the naming and code style within the element searching mechanism.
461
462         * accessibility/AccessibilityObject.cpp:
463         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatch):
464         (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
465         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
466         (WebCore::AccessibilityObject::findMatchingObjects):
467         * accessibility/AccessibilityObject.h:
468         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
469         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
470
471 2011-11-17  Julien Chaffraix  <jchaffraix@webkit.org>
472
473         CSS table with 100% width can overflow their containing block
474         https://bugs.webkit.org/show_bug.cgi?id=72180
475
476         Reviewed by David Hyatt.
477
478         Tests: fast/table/table-in-table-percent-width-collapsing-border-quirks-mode.html
479                fast/table/table-in-table-percent-width-collapsing-border.html
480                fast/table/table-in-table-percent-width-quirks-mode.html
481                fast/table/table-in-table-percent-width.html
482
483         After r97555, we would include the borders in a CSS table's logical width even if the 'width'
484         property was a percent. This does not match what Firefox and IE are doing. Thus don't apply
485         this behavior to percent 'width'.
486
487         * rendering/RenderTable.cpp:
488         (WebCore::RenderTable::computeLogicalWidth):
489
490 2011-11-17  Adrienne Walker  <enne@google.com>
491
492         [chromium] Implicitly skip render surfaces that won't be drawn
493         https://bugs.webkit.org/show_bug.cgi?id=71038
494
495         Rather than having redundant checks in three places for how to walk
496         through a render surface list, instead don't add render surfaces that
497         don't need to get rendered to the render surface list.
498
499         Reviewed by James Robinson.
500
501         Covered by existing layout tests and unit tests.
502
503         * platform/graphics/chromium/LayerRendererChromium.cpp:
504         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
505         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
506         (WebCore::CCLayerTreeHost::paintLayerContents):
507         (WebCore::CCLayerTreeHost::updateCompositorResources):
508         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
509         (WebCore::calculateDrawTransformsAndVisibilityInternal):
510
511 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
512
513         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
514         https://bugs.webkit.org/show_bug.cgi?id=72595
515
516         Reviewed by Noam Rosenthal.
517
518         Removed QWebElement and QtDRTNode usage that reached from WebCore into
519         WebKit/qt and replaced it with the ability to register custom JSValue
520         conversion functions. The old code has been moved to WebKit/qt.
521
522         * bridge/qt/qt_instance.cpp:
523         (JSC::Bindings::QtInstance::QtInstance): Remove unnecessary meta type registration
524         (now done in QtWebElementRuntime::initialize in WebKit/qt).
525         * bridge/qt/qt_runtime.cpp:
526         (JSC::Bindings::registerCustomType):
527         (JSC::Bindings::convertValueToQVariant):
528         (JSC::Bindings::convertQVariantToValue):
529         * bridge/qt/qt_runtime.h:
530
531 2011-11-17  Fady Samuel  <fsamuel@chromium.org>
532
533         Pass Aspect Ratio to RenderStyle
534         https://bugs.webkit.org/show_bug.cgi?id=72350
535
536         Reviewed by Ojan Vafai.
537
538         * css/CSSComputedStyleDeclaration.cpp:
539         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
540         * css/CSSStyleApplyProperty.cpp:
541         (WebCore::ApplyPropertyAspectRatio::applyInheritValue):
542         (WebCore::ApplyPropertyAspectRatio::applyInitialValue):
543         (WebCore::ApplyPropertyAspectRatio::applyValue):
544         (WebCore::ApplyPropertyAspectRatio::createHandler):
545         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
546         * css/CSSStyleSelector.cpp:
547         (WebCore::CSSStyleSelector::applyProperty):
548         * css/CSSValue.h:
549         (WebCore::CSSValue::isAspectRatioValue):
550         * rendering/style/RenderStyle.h:
551         (WebCore::InheritedFlags::hasAspectRatio):
552         (WebCore::InheritedFlags::aspectRatio):
553         (WebCore::InheritedFlags::aspectRatioDenominator):
554         (WebCore::InheritedFlags::aspectRatioNumerator):
555         (WebCore::InheritedFlags::setHasAspectRatio):
556         (WebCore::InheritedFlags::setAspectRatioDenominator):
557         (WebCore::InheritedFlags::setAspectRatioNumerator):
558         (WebCore::InheritedFlags::initialHasAspectRatio):
559         (WebCore::InheritedFlags::initialAspectRatioDenominator):
560         (WebCore::InheritedFlags::initialAspectRatioNumerator):
561         * rendering/style/StyleRareNonInheritedData.cpp:
562         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
563         (WebCore::StyleRareNonInheritedData::operator==):
564         * rendering/style/StyleRareNonInheritedData.h:
565
566 2011-11-09  Robert Hogan  <robert@webkit.org>
567
568         CSS 2.1 failure: outline-color-* tests fail
569         https://bugs.webkit.org/show_bug.cgi?id=71931
570
571         Reviewed by Julien Chaffraix.
572
573         WebKit wasn't displaying the top block in these tests because it did not paint the outline
574         of divs with zero size.
575
576         * rendering/RenderObject.cpp:
577         (WebCore::RenderObject::paintOutline): paint the outline even when the block has zero size
578
579 2011-11-17  Sergio Villar Senin  <svillar@igalia.com>
580
581         [GTK] plugins/get-url-notify-with-url-that-fails-to-load.html on bots after r100466
582         https://bugs.webkit.org/show_bug.cgi?id=72613
583
584         Reviewed by Martin Robinson.
585
586         Do not assume that a SoupRequest always exists, it is not
587         generated for example when the provided URL is
588         invalid. ResourceHandle::platformSetDefersLoading was crashing
589         because of that.
590
591         * platform/network/soup/ResourceHandleSoup.cpp:
592         (WebCore::ResourceHandle::platformSetDefersLoading):
593
594 2011-11-17  Vsevolod Vlasov  <vsevik@chromium.org>
595
596         Web Inspector: Remove onlineDetectionEnabled from Preferences
597         https://bugs.webkit.org/show_bug.cgi?id=72617
598
599         Reviewed by Pavel Feldman.
600
601         * inspector/front-end/ApplicationCacheItemsView.js:
602         (WebInspector.ApplicationCacheItemsView):
603         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
604         * inspector/front-end/Settings.js:
605
606 2011-11-17  Ken Buchanan  <kenrb@chromium.org>
607
608         Crash from nested tables with generated content
609         https://bugs.webkit.org/show_bug.cgi?id=68811
610
611         Reviewed by David Hyatt.
612
613         When adding a child to a table that has generated content, this change
614         ensures that we leave alone any generated content renderers that belong
615         to descendants in the tree. They don't need to be touched, and doing so
616         can create confusion about who the content belongs to.
617
618         This patch also simplifies some existing code for finding pseudoelement
619         renderers. 
620
621         * rendering/RenderBlock.cpp:
622         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
623         * rendering/RenderObject.cpp:
624         (WebCore::RenderObject::addChild):
625         (WebCore::RenderObject::isBeforeAfterContentGeneratedByAncestor): Added
626         * rendering/RenderObject.h:
627         (WebCore::RenderObject::findAfterContentRenderer): Deleted
628         (WebCore::RenderObject::findBeforeContentRenderer): Deleted
629         * rendering/RenderObjectChildList.cpp:
630         (WebCore::RenderObjectChildList::beforePseudoElementRenderer):
631         (WebCore::RenderObjectChildList::afterPseudoElementRenderer):
632         * rendering/RenderTable.cpp:
633         (WebCore::RenderTable::addChild):
634         * rendering/RenderTableRow.cpp:
635         (WebCore::RenderTableRow::addChild):
636         * rendering/RenderTableSection.cpp:
637         (WebCore::RenderTableSection::addChild):
638
639 2011-11-17  Patrick Gansterer  <paroga@webkit.org>
640
641         Unreviewed WinCE build fix for r94119.
642
643         MSVC throws multiply defined symbols linker error when using local class in inline function.
644
645         * bindings/js/JSDictionary.h:
646         (WebCore::JSDictionary::IdentitySetter::identitySetter):
647         (WebCore::JSDictionary::tryGetProperty):
648
649 2011-11-17  Eric Carlson  <eric.carlson@apple.com>
650
651         TextTrackList not sorted correctly
652         https://bugs.webkit.org/show_bug.cgi?id=72545
653
654         Reviewed by Darin Adler.
655
656         Test: media/track/track-texttracks.html
657
658         * WebCore.xcodeproj/project.pbxproj: Add TextTrack.h to WebCore private headers because 
659             it is included by HTMLMediaElement.h.
660         * html/LoadableTextTrack.cpp:
661         (WebCore::LoadableTextTrack::LoadableTextTrack): Pass track type to base class constructor.
662         (WebCore::LoadableTextTrack::trackElementIndex): New, return the <track> element's tree order
663             for sorting.
664         * html/LoadableTextTrack.h:
665
666         * html/TextTrack.cpp:
667         (WebCore::TextTrack::TextTrack): Set track type.
668         * html/TextTrack.h:
669         (WebCore::TextTrack::create): Ditto.
670         (WebCore::TextTrack::trackType): Ditto.
671
672         * html/track/TextTrackList.cpp:
673         (TextTrackList::length): Update to deal with two TextTrack vectors.
674         (TextTrackList::item): Ditto.
675         (TextTrackList::append): Ditto.
676         (TextTrackList::remove): Ditto
677         * html/track/TextTrackList.h: Store the two types of TextTracks in separate Vectors to make
678             it simpler to keep them in the correct order.
679
680 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
681
682         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
683         https://bugs.webkit.org/show_bug.cgi?id=72596
684
685         Reviewed by Kenneth Rohde Christiansen.
686
687         We don't need to use QWebSettings here, because we now propagate the DNS prefetch
688         setting to WebCore::Settings and the rest of WebCore checks the setting before calling
689         WebCore::prefetchDNS.
690
691         * platform/network/qt/DnsPrefetchHelper.cpp:
692         (WebCore::prefetchDNS): Removed the use of QWebSettings.
693         * platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.
694
695 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
696
697         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
698         https://bugs.webkit.org/show_bug.cgi?id=72594
699
700         Reviewed by Kenneth Rohde Christiansen.
701
702         Move the cache for the resource pixmaps into ImageQt.cpp.
703
704         * platform/graphics/Image.h: Add Qt specific setter for resource pixmaps.
705         * platform/graphics/qt/ImageQt.cpp: Moved resource pixmap hash from qwebsettings.
706         (earlyClearGraphics):
707         (graphics):
708         (loadResourcePixmap):
709         (WebCore::Image::setPlatformResource):
710
711 2011-11-17  Zeno Albisser  <zeno@webkit.org>
712
713         [Qt][WK2] Touch/Mouse events are delivered with wrong coordinates.
714         https://bugs.webkit.org/show_bug.cgi?id=72604
715
716         When using the QtViewportInterationEngine for zooming/panning,
717         no additional scroll offset should be applied to input events
718         by the ScrollView.
719
720         This patch is based on work by Andreas Kling.
721
722         Reviewed by Kenneth Rohde Christiansen.
723
724         * platform/ScrollView.cpp:
725         (WebCore::ScrollView::windowToContents):
726         (WebCore::ScrollView::contentsToWindow):
727
728 2011-11-17  Ben Murdoch  <benm@google.com>
729
730         Unreviewed build fix.
731
732         Fix the Windows builds by adding WorkerEventQueue.cpp|h to the
733         vcproj. Build break was introduced in
734         https://bugs.webkit.org/show_bug.cgi?id=72528
735
736         * WebCore.vcproj/WebCore.vcproj: Add missing files.
737
738 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
739
740         CSS Exclusions: parse the wrap-margin and wrap-padding properties
741         https://bugs.webkit.org/show_bug.cgi?id=71900
742
743         Reviewed by Dean Jackson.
744
745         Tests: fast/exclusions/wrap-margin-parsing.html
746                fast/exclusions/wrap-padding-parsing.html
747
748         * css/CSSComputedStyleDeclaration.cpp:
749         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
750         * css/CSSParser.cpp:
751         (WebCore::isSimpleLengthPropertyID):
752         (WebCore::CSSParser::parseValue):
753         * css/CSSProperty.cpp:
754         (WebCore::CSSProperty::isInheritedProperty):
755         * css/CSSPropertyNames.in:
756         * css/CSSStyleApplyProperty.cpp:
757         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
758         * css/CSSStyleSelector.cpp:
759         (WebCore::CSSStyleSelector::applyProperty):
760         * rendering/style/RenderStyle.cpp:
761         (WebCore::RenderStyle::diff):
762         * rendering/style/RenderStyle.h:
763         (WebCore::InheritedFlags::wrapPadding):
764         (WebCore::InheritedFlags::setWrapPadding):
765         (WebCore::InheritedFlags::initialWrapPadding):
766         (WebCore::InheritedFlags::wrapMargin):
767         (WebCore::InheritedFlags::setWrapMargin):
768         (WebCore::InheritedFlags::initialWrapMargin):
769         * rendering/style/StyleRareNonInheritedData.cpp:
770         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
771         (WebCore::StyleRareNonInheritedData::operator==):
772         * rendering/style/StyleRareNonInheritedData.h:
773
774 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
775
776         [chromium] don't call fontconfig twice in complex text path
777         https://bugs.webkit.org/show_bug.cgi?id=38701
778
779         Adds a new API for getting font family. For now, FontCacheLinux calls the new API, but don't use additional properties for compatibility. The old API will be removed when Chromium is ready to use new API.
780
781         Reviewed by Tony Chang.
782
783         No new tests. No behavior changes for now.
784
785         * platform/chromium/PlatformSupport.h: Added FontFamily struct and changed the declaration of getFontFamilyForCharacters().
786         * platform/graphics/chromium/FontCacheLinux.cpp:
787         (WebCore::FontCache::getFontDataForCharacters): Uses new PlatformSupport::getFontFamilyForCharacters().
788         * platform/graphics/chromium/FontPlatformDataLinux.h:
789         (WebCore::FontPlatformData::setFakeBold): Added.
790         (WebCore::FontPlatformData::setFakeItalic): Added.
791
792 2011-11-17  Mario Sanchez Prada  <msanchez@igalia.com>
793
794         [GTK] Consider parent AtkObject in webkit_accessible_get_parent(), if already set
795         https://bugs.webkit.org/show_bug.cgi?id=72525
796
797         Reviewed by Xan Lopez.
798
799         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
800         (webkit_accessible_get_parent): Call to the implementation of
801         atk_object_get_parent in AtkObject class to check whether a parent
802         AtkObject has been previously set, before trying to find one.
803
804 2011-11-17  Pavel Feldman  <pfeldman@google.com>
805
806         Not reviewed: fix IE user agents strings in the inspector.
807
808         * inspector/front-end/SettingsScreen.js:
809         (WebInspector.SettingsScreen.prototype._createUserAgentSelectRowElement.get const):
810
811 2011-11-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
812
813         Make use-fixed-layout work reliable
814         https://bugs.webkit.org/show_bug.cgi?id=72511
815
816         Reviewed by Simon Hausmann.
817
818         Always send a viewport update per page load as we depend on that,
819         to reset all viewport handling before doing layout.
820
821         * page/Page.cpp:
822         (WebCore::Page::updateViewportArguments):
823
824 2011-11-16  Alexander Pavlov  <apavlov@chromium.org>
825
826         Web Inspector: inspector follows javascript: hrefs as relative
827         https://bugs.webkit.org/show_bug.cgi?id=72373
828
829         javascript: hrefs should never be linkified for security.
830
831         Reviewed by Yury Semikhatsky.
832
833         * inspector/front-end/ElementsTreeOutline.js:
834         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
835         * inspector/front-end/ResourceUtils.js:
836         (WebInspector.completeURL):
837
838 2011-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
839
840         Not reviewed. Fix 32bit builds.
841
842         * platform/ClockGeneric.cpp:
843         (ClockGeneric::now): Use narrowPrecisionToFloat.
844         * rendering/FilterEffectRenderer.cpp:
845         (WebCore::FilterEffectRenderer::build): Use it correctly.
846
847 2011-11-17  Dominic Mazzoni  <dmazzoni@google.com>
848
849         Accessibility: Chromium requires an AX notification when an iframe loads.
850         https://bugs.webkit.org/show_bug.cgi?id=72239
851
852         When a document finishes loading, we were sending an AXLoadComplete if it
853         was the top document. Now, if it's a document in an iframe, send an
854         AXLayoutComplete on the iframe.
855
856         Reviewed by Chris Fleizach.
857
858         Test: accessibility/loading-iframe-sends-notification.html
859
860         * dom/Document.cpp:
861         (WebCore::Document::implicitClose):
862
863 2011-11-16  Mark Rowe  <mrowe@apple.com>
864
865         <http://webkit.org/b/72574> Remove unnecessary use of CarbonCore APIs from Audio code
866
867         Reviewed by Andy Estes.
868
869         * platform/audio/mac/AudioDestinationMac.cpp:
870         (WebCore::AudioDestinationMac::AudioDestinationMac): Switch from using the Carbon Component Manager
871         to using AudioUnit's own component interface.
872         (WebCore::AudioDestinationMac::~AudioDestinationMac): Ditto.
873         * platform/audio/mac/AudioFileReaderMac.cpp:
874         (WebCore::AudioFileReader::AudioFileReader): Remove an unncessary trip through the Carbon File Manager
875         when converting a char* path to a CFURLRef representing the same.
876
877 2011-11-17  Adam Barth  <abarth@webkit.org>
878
879         CSP report-only mode doesn't work from an HTTP header
880         https://bugs.webkit.org/show_bug.cgi?id=71958
881
882         Reviewed by Eric Seidel.
883
884         "It's tested or it's broken." -- Adam Leventhal
885
886         Test: http/tests/security/contentSecurityPolicy/report-only-from-header.php
887
888         * loader/FrameLoader.cpp:
889         (WebCore::FrameLoader::didBeginDocument):
890
891 2011-11-15  Pavel Feldman  <pfeldman@google.com>
892
893         Web Inspector: introduce Debugger domain capabilities concept.
894         https://bugs.webkit.org/show_bug.cgi?id=72393
895
896         Many of the Preferences that we have in Settings.js and override in DevTools.js
897         are really not preferences, but capabilities. Protocol clients should have a way
898         of figuring out whether some capability is present before using it.
899
900         Reviewed by Yury Semikhatsky.
901
902         * bindings/js/ScriptDebugServer.cpp:
903         (WebCore::ScriptDebugServer::canSetScriptSource):
904         * bindings/js/ScriptDebugServer.h:
905         * bindings/v8/ScriptDebugServer.cpp:
906         (WebCore::ScriptDebugServer::canSetScriptSource):
907         * bindings/v8/ScriptDebugServer.h:
908         * inspector/CodeGeneratorInspector.py:
909         * inspector/Inspector.json:
910         * inspector/InspectorDebuggerAgent.cpp:
911         (WebCore::InspectorDebuggerAgent::getCapabilities):
912         * inspector/InspectorDebuggerAgent.h:
913         * inspector/front-end/DebuggerModel.js:
914         (WebInspector.DebuggerModel):
915         (WebInspector.DebuggerModel.prototype.enableDebugger):
916         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
917         * inspector/front-end/DebuggerPresentationModel.js:
918         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
919         * inspector/front-end/Settings.js:
920
921 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
922
923         CSS exclusions: parse the wrap-flow and wrap-through properties
924         https://bugs.webkit.org/show_bug.cgi?id=71904
925
926         Reviewed by Dean Jackson.
927
928         Tests: fast/exclusions/wrap-flow-parsing.html
929                fast/exclusions/wrap-through-parsing.html
930
931         * css/CSSComputedStyleDeclaration.cpp:
932         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
933         * css/CSSParser.cpp:
934         (WebCore::CSSParser::parseValue):
935         * css/CSSPrimitiveValueMappings.h:
936         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
937         (WebCore::CSSPrimitiveValue::operator WrapFlow):
938         (WebCore::CSSPrimitiveValue::operator WrapThrough):
939         * css/CSSProperty.cpp:
940         (WebCore::CSSProperty::isInheritedProperty):
941         * css/CSSPropertyNames.in:
942         * css/CSSStyleSelector.cpp:
943         (WebCore::CSSStyleSelector::applyProperty):
944         * css/CSSValueKeywords.in:
945         * rendering/style/RenderStyle.cpp:
946         (WebCore::RenderStyle::diff):
947         * rendering/style/RenderStyle.h:
948         (WebCore::InheritedFlags::wrapFlow):
949         (WebCore::InheritedFlags::wrapThrough):
950         (WebCore::InheritedFlags::setWrapFlow):
951         (WebCore::InheritedFlags::setWrapThrough):
952         (WebCore::InheritedFlags::initialWrapFlow):
953         (WebCore::InheritedFlags::initialWrapThrough):
954         * rendering/style/RenderStyleConstants.h:
955         * rendering/style/StyleRareNonInheritedData.cpp:
956         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
957         (WebCore::StyleRareNonInheritedData::operator==):
958         * rendering/style/StyleRareNonInheritedData.h:
959
960 2011-11-16  Dean Jackson  <dino@apple.com>
961
962         Implement filter function shorthands
963         https://bugs.webkit.org/show_bug.cgi?id=68475
964
965         Reviewed by Simon Fraser.
966
967         Implement the shorthand functions for filter effects.
968         This includes grayscale, sepia, invert, hue-rotate, saturate,
969         opacity, gamma, drop-shadow and blur. At the moment sharpen
970         and url are not supported.
971
972         CSSParser needed to be updated because it was mistakenly
973         clamping saturation values to [0,1]. Any positive number
974         is allowed so you can produce super-saturated images.
975
976         The biggest change was the API to FilterEffectRenderer. It now
977         builds a list of effects and applies the filter itself.
978
979         Note that the drop-shadow and blur operations don't yet
980         provide accurate results because they produce an output image
981         that is larger than the input. See
982         https://bugs.webkit.org/show_bug.cgi?id=71929
983         https://bugs.webkit.org/show_bug.cgi?id=71930
984
985         While I was there, I fixed a small style issue in
986         CustomFilterOperation.
987
988         Tests: css3/filters/effect-blur.html
989                css3/filters/effect-combined.html
990                css3/filters/effect-drop-shadow.html
991                css3/filters/effect-gamma.html
992                css3/filters/effect-grayscale.html
993                css3/filters/effect-hue-rotate.html
994                css3/filters/effect-invert.html
995                css3/filters/effect-opacity.html
996                css3/filters/effect-saturate.html
997                css3/filters/effect-sepia.html
998
999         * WebCore.xcodeproj/project.pbxproj: Add StyleShader.h to
1000         the project (missing from earlier commit).
1001         * css/CSSParser.cpp:
1002         (WebCore::CSSParser::isValidFilterArgument): Don't clamp
1003         saturate to [0,1]
1004         * platform/graphics/filters/CustomFilterOperation.h:
1005         * rendering/FilterEffectRenderer.cpp:
1006         (WebCore::endMatrixRow):
1007         (WebCore::lastMatrixRow):
1008         (WebCore::FilterEffectRenderer::FilterEffectRenderer):
1009         (WebCore::FilterEffectRenderer::inputContext):
1010         (WebCore::FilterEffectRenderer::build):
1011         (WebCore::FilterEffectRenderer::prepare):
1012         (WebCore::FilterEffectRenderer::apply):
1013         * rendering/FilterEffectRenderer.h:
1014         (WebCore::FilterEffectRenderer::setSourceImageRect):
1015         (WebCore::FilterEffectRenderer::output):
1016         (WebCore::FilterEffectRenderer::setMaxEffectRects):
1017         (WebCore::FilterEffectRenderer::lastEffect):
1018         * rendering/RenderLayer.cpp:
1019         (WebCore::RenderLayer::paintLayer):
1020         (WebCore::RenderLayer::updateOrRemoveFilterEffect):
1021         (WebCore::RenderLayer::updateFilterBackingStore):
1022
1023 2011-11-16  Kentaro Hara  <haraken@chromium.org>
1024
1025         Remove all custom constructors of Events from JSC
1026         https://bugs.webkit.org/show_bug.cgi?id=72577
1027
1028         Reviewed by Adam Barth.
1029
1030         - Makes CodeGeneratorJS.pm generate Event constructors
1031         if [ConstructorTemplate=Event] IDL is specified.
1032         - Removes EventConstructors.h and JSEventConstructors.cpp.
1033         - Replaces all JSC custom constructors of Events
1034         with the generated code by [ConstructorTemplate=Event] IDL.
1035
1036         Tests: fast/events/constructors/before-load-event-constructor.html
1037                fast/events/constructors/close-event-constructor.html
1038                fast/events/constructors/custom-event-constructor.html
1039                fast/events/constructors/error-event-constructor.html
1040                fast/events/constructors/event-constructors.html
1041                fast/events/constructors/hash-change-event-constructor.html
1042                fast/events/constructors/message-event-constructor.html
1043                fast/events/constructors/overflow-event-constructor.html
1044                fast/events/constructors/page-transition-event-constructor.html
1045                fast/events/constructors/pop-state-event-constructor.html
1046                fast/events/constructors/progress-event-constructor.html
1047                fast/events/constructors/track-event-constructor.html
1048                fast/events/constructors/webkit-animation-event-constructor.html
1049                fast/events/constructors/webkit-transition-event-constructor.html
1050
1051         * bindings/generic/EventConstructors.h: Removed. This is what we wanted to do in this patch.
1052         * bindings/js/JSEventConstructors.cpp: Ditto.
1053         * GNUmakefile.list.am: Removed EventConstructors.h and JSEventConstructors.cpp.
1054         * Target.pri: Ditto.
1055         * UseJSC.cmake: Ditto.
1056         * WebCore.gypi: Ditto.
1057         * WebCore.vcproj/WebCore.vcproj: Ditto.
1058         * WebCore.xcodeproj/project.pbxproj: Ditto.
1059         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
1060
1061         * bindings/scripts/CodeGeneratorJS.pm:
1062         (GenerateHeader): Added JSDictionary.h.
1063         (GenerateConstructorDeclaration): Added a header for fillXXXXEventInit(...).
1064         (GenerateConstructorDefinition): Generates an Event constructor. The generated code is the same as the code that had been written in JSEventConstructors.cpp.
1065         (IsConstructable): Judges if a given interface is constructable.
1066         (IsConstructorTemplate): Judges if a given interface has a given template, e.g. judges if an interface has [ConstructorTemplate=Event].
1067
1068         * bindings/scripts/test/TestEventConstructor.idl: Changed 'CustomConstructor=Event' to 'ConstructorTemplate=Event'. We should have changed this in r100108.
1069         * bindings/scripts/test/JS/JSTestEventConstructor.cpp: Updated a run-bindings-tests result.
1070         (WebCore::JSTestEventConstructorConstructor::constructJSTestEventConstructor):
1071         (WebCore::fillTestEventConstructorInit):
1072         * bindings/scripts/test/JS/JSTestEventConstructor.h: Ditto.
1073         * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Ditto.
1074         (WebCore::V8TestEventConstructor::constructorCallback):
1075         (WebCore::fillTestEventConstructorInit):
1076         * bindings/scripts/test/V8/V8TestEventConstructor.h: Ditto.
1077
1078         * dom/BeforeLoadEvent.idl: In essence, replaced [JSCustomConstructor] IDL with [JSConstructorTemplate=Event] IDL.
1079         * dom/CustomEvent.idl: Ditto.
1080         * dom/ErrorEvent.idl: Ditto.
1081         * dom/Event.idl: Ditto.
1082         * dom/HashChangeEvent.idl: Ditto.
1083         * dom/MessageEvent.idl: Ditto.
1084         * dom/OverflowEvent.idl: Ditto.
1085         * dom/PageTransitionEvent.idl: Ditto.
1086         * dom/PopStateEvent.idl: Ditto.
1087         * dom/ProgressEvent.idl: Ditto.
1088         * dom/WebKitAnimationEvent.idl: Ditto.
1089         * dom/WebKitTransitionEvent.idl: Ditto.
1090         * html/track/TrackEvent.idl: Ditto.
1091         * websockets/CloseEvent.idl: Ditto.
1092
1093 2011-11-16  Dean Jackson  <dino@apple.com>
1094
1095         Build fix for Apple WebKit due to r100560.
1096         When I removed the violating header file it lost the
1097         reference to Color.
1098
1099         No review.
1100
1101         * platform/graphics/filters/FilterOperation.h:
1102
1103 2011-11-16  Dean Jackson  <dino@apple.com>
1104
1105         DropShadowFilterOperation violates platform isolation
1106         https://bugs.webkit.org/show_bug.cgi?id=72544
1107
1108         Reviewed by Simon Fraser.
1109
1110         Move ShadowData properties into the DropShadowFilterOperation
1111         to avoid depending on something outside platform.
1112
1113         * css/CSSComputedStyleDeclaration.cpp:
1114         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
1115         * css/CSSStyleSelector.cpp:
1116         (WebCore::CSSStyleSelector::createFilterOperations):
1117         * platform/graphics/filters/FilterOperation.h:
1118         (WebCore::DropShadowFilterOperation::create):
1119         (WebCore::DropShadowFilterOperation::x):
1120         (WebCore::DropShadowFilterOperation::y):
1121         (WebCore::DropShadowFilterOperation::stdDeviation):
1122         (WebCore::DropShadowFilterOperation::color):
1123         (WebCore::DropShadowFilterOperation::operator==):
1124         (WebCore::DropShadowFilterOperation::DropShadowFilterOperation):
1125
1126 2011-11-16  Adam Bergkvist  <adam.bergkvist@ericsson.com>
1127
1128         Use a simple page client for user consent in getUserMedia()
1129         https://bugs.webkit.org/show_bug.cgi?id=70897
1130
1131         Reviewed by Adam Barth.
1132
1133         This is one in a series of patches that update the MediaStream feature
1134         to use WebCore platform interfaces.
1135
1136         Covered by existing tests.
1137
1138         * GNUmakefile.list.am:
1139         * WebCore.gypi:
1140         * mediastream/MediaStreamClient.h: Removed.
1141         * mediastream/MediaStreamController.cpp: Removed.
1142         * mediastream/MediaStreamController.h: Removed.
1143         * mediastream/MediaStreamFrameController.cpp: Removed.
1144         * mediastream/MediaStreamFrameController.h: Removed.
1145         * mediastream/UserMediaClient.h: Added.
1146         (WebCore::UserMediaClient::~UserMediaClient):
1147         * mediastream/UserMediaRequest.cpp: Added.
1148         (WebCore::UserMediaRequest::create):
1149         (WebCore::UserMediaRequest::UserMediaRequest):
1150         (WebCore::UserMediaRequest::~UserMediaRequest):
1151         (WebCore::UserMediaRequest::start):
1152         (WebCore::UserMediaRequest::mediaStreamSourcesQueryCompleted):
1153         (WebCore::UserMediaRequest::succeed):
1154         (WebCore::UserMediaRequest::fail):
1155         (WebCore::UserMediaRequest::contextDestroyed):
1156         (WebCore::UserMediaRequest::parseOptions):
1157         * mediastream/UserMediaRequest.h: Added.
1158         (WebCore::UserMediaRequest::audio):
1159         (WebCore::UserMediaRequest::video):
1160         (WebCore::UserMediaRequest::cameraPreferenceUser):
1161         (WebCore::UserMediaRequest::cameraPreferenceEnvironment):
1162         (WebCore::UserMediaRequest::successCallback):
1163         (WebCore::UserMediaRequest::errorCallback):
1164         * page/CallbackTask.h: Removed.
1165         * page/Frame.cpp:
1166         (WebCore::Frame::Frame):
1167         (WebCore::Frame::~Frame):
1168         (WebCore::Frame::pageDestroyed):
1169         (WebCore::Frame::transferChildFrameToNewDocument):
1170         * page/Frame.h:
1171         * page/Navigator.cpp:
1172         (WebCore::Navigator::webkitGetUserMedia):
1173         * page/NavigatorUserMediaErrorCallback.h:
1174         * page/Page.cpp:
1175         (WebCore::Page::Page):
1176         (WebCore::Page::~Page):
1177         (WebCore::Page::PageClients::PageClients):
1178         * page/Page.h:
1179         (WebCore::Page::userMediaClient):
1180
1181 2011-11-16  David Grogan  <dgrogan@chromium.org>
1182
1183         instantiate WorkerEventQueue in WorkerContext
1184         https://bugs.webkit.org/show_bug.cgi?id=72528
1185
1186         Reviewed by David Levin.
1187
1188         No new tests - nothing uses it yet.
1189
1190         * workers/WorkerContext.cpp:
1191         (WebCore::WorkerContext::WorkerContext):
1192         Instantiate WorkerEventQueue in InitializerList
1193
1194         * workers/WorkerEventQueue.h:
1195         Don't inherit from RefCounted, WorkerContext has an OwnPtr to it
1196
1197 2011-11-16  Kentaro Hara  <haraken@chromium.org>
1198
1199         Unreviewed. Rebaselined run-bindings-tests results.
1200
1201         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1202         (WebCore::JSTestEventConstructor::JSTestEventConstructor):
1203         (WebCore::JSTestEventConstructorOwner::finalize):
1204         * bindings/scripts/test/JS/JSTestEventConstructor.h:
1205         (WebCore::JSTestEventConstructor::impl):
1206         (WebCore::JSTestEventConstructor::releaseImpl):
1207         * bindings/scripts/test/JS/JSTestInterface.cpp:
1208         (WebCore::JSTestInterface::JSTestInterface):
1209         (WebCore::JSTestInterfaceOwner::finalize):
1210         * bindings/scripts/test/JS/JSTestInterface.h:
1211         (WebCore::JSTestInterface::impl):
1212         (WebCore::JSTestInterface::releaseImpl):
1213         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1214         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
1215         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
1216         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
1217         (WebCore::JSTestMediaQueryListListener::impl):
1218         (WebCore::JSTestMediaQueryListListener::releaseImpl):
1219         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1220         (WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
1221         (WebCore::JSTestNamedConstructorOwner::finalize):
1222         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
1223         (WebCore::JSTestNamedConstructor::impl):
1224         (WebCore::JSTestNamedConstructor::releaseImpl):
1225         * bindings/scripts/test/JS/JSTestObj.cpp:
1226         (WebCore::JSTestObj::JSTestObj):
1227         (WebCore::JSTestObjOwner::finalize):
1228         * bindings/scripts/test/JS/JSTestObj.h:
1229         (WebCore::JSTestObj::impl):
1230         (WebCore::JSTestObj::releaseImpl):
1231         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1232         (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
1233         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
1234         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
1235         (WebCore::JSTestSerializedScriptValueInterface::impl):
1236         (WebCore::JSTestSerializedScriptValueInterface::releaseImpl):
1237
1238 2011-11-16  Jay Civelli  <jcivelli@chromium.org>
1239
1240         Make sure MHTML documents use the domain of the MHTML file.
1241         https://bugs.webkit.org/show_bug.cgi?id=72445
1242
1243         Reviewed by Adam Barth.
1244
1245         * dom/Document.h:
1246         (WebCore::Document::setBaseURL):
1247         * loader/FrameLoader.cpp:
1248         (WebCore::FrameLoader::receivedFirstData):
1249
1250 2011-11-16  Julien Chaffraix  <jchaffraix@webkit.org>
1251
1252         Update supported display list after -webkit-grid and -webkit-inline-grid addition
1253         https://bugs.webkit.org/show_bug.cgi?id=72559
1254
1255         Reviewed by Tony Chang.
1256
1257         * css/CSSParser.cpp:
1258         (WebCore::CSSParser::parseValue): Added the 2 new supported
1259         values (forgotten in the previous change).
1260
1261 2011-11-11  Adrienne Walker  <enne@google.com>
1262
1263         [chromium] Expose mock scrollbars to window.internals
1264         https://bugs.webkit.org/show_bug.cgi?id=72195
1265
1266         Reviewed by James Robinson.
1267
1268         * testing/Internals.cpp:
1269         (WebCore::Internals::setMockScrollbarsEnabled):
1270         * testing/Internals.h:
1271         * testing/Internals.idl:
1272
1273 2011-11-16  Michael Nordman  <michaeln@google.com>
1274
1275         ApplicationCache manifest should work with any MIME type.
1276         https://bugs.webkit.org/show_bug.cgi?id=72082
1277
1278         Reviewed by Alexey Proskuryakov.
1279
1280         * loader/appcache/ApplicationCacheGroup.cpp:
1281         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse): Remove the test for a particular type.
1282
1283 2011-11-16  Daniel Sievers  <sievers@chromium.org>
1284
1285         [Chromium] Avoid color mask operations for root layers
1286         https://bugs.webkit.org/show_bug.cgi?id=72452
1287
1288         Instead of relying on the combination of clearing the surface and initializing
1289         the alpha channel to 1.0 followed by disabling alpha in the color mask when
1290         rendering the root layer tiles, add shaders to support writing out opaque layers
1291         (alpha channel values written as 1.0).
1292
1293         Reviewed by James Robinson.
1294
1295         No functional change made that requires new tests.
1296
1297         * platform/graphics/chromium/LayerRendererChromium.cpp:
1298         (WebCore::LayerRendererChromium::drawLayersInternal):
1299         (WebCore::LayerRendererChromium::initializeSharedObjects):
1300         (WebCore::LayerRendererChromium::tilerProgramOpaque):
1301         (WebCore::LayerRendererChromium::tilerProgramOpaqueAA):
1302         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaque):
1303         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaqueAA):
1304         (WebCore::LayerRendererChromium::cleanupSharedObjects):
1305         * platform/graphics/chromium/LayerRendererChromium.h:
1306         * platform/graphics/chromium/ShaderChromium.cpp:
1307         (WebCore::FragmentTexOpaqueBinding::FragmentTexOpaqueBinding):
1308         (WebCore::FragmentTexOpaqueBinding::init):
1309         (WebCore::FragmentShaderRGBATexOpaque::getShaderString):
1310         (WebCore::FragmentShaderRGBATexSwizzleOpaque::getShaderString):
1311         (WebCore::FragmentTexClampOpaqueAABinding::FragmentTexClampOpaqueAABinding):
1312         (WebCore::FragmentTexClampOpaqueAABinding::init):
1313         (WebCore::FragmentShaderRGBATexClampOpaqueAA::getShaderString):
1314         (WebCore::FragmentShaderRGBATexClampSwizzleOpaqueAA::getShaderString):
1315         * platform/graphics/chromium/ShaderChromium.h:
1316         (WebCore::FragmentTexOpaqueBinding::alphaLocation):
1317         (WebCore::FragmentTexOpaqueBinding::samplerLocation):
1318         (WebCore::FragmentTexClampOpaqueAABinding::alphaLocation):
1319         (WebCore::FragmentTexClampOpaqueAABinding::samplerLocation):
1320         (WebCore::FragmentTexClampOpaqueAABinding::fragmentTexTransformLocation):
1321         (WebCore::FragmentTexClampOpaqueAABinding::edgeLocation):
1322         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
1323         (WebCore::CCTiledLayerImpl::draw):
1324         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1325
1326 2011-11-16  Tim Horton  <timothy_horton@apple.com>
1327
1328         Implement CSS3 Images cross-fade() image function
1329         https://bugs.webkit.org/show_bug.cgi?id=52162
1330         <rdar://problem/10209254>
1331
1332         Reviewed by Simon Fraser.
1333
1334         Render -webkit-cross-fade. Only cross-fades entirely composed of images will render for now,
1335         cross-fades involving generated images are not yet implemented.
1336
1337         Reorganize GeneratedImage to be the base class for GeneratorGeneratedImage and CrossfadeGeneratedImage.
1338
1339         Add a pending state to CSSImageGeneratorValue, which is used to enable the pending-images loading
1340         mechanism for -webkit-cross-fade's sub-images. Rework the logic in CSSStyleSelector to support pending
1341         generated images.
1342         
1343         Support parsing fractional values for the cross-fade amount (for example, 0.5 = 50%). Clamp cross-fade
1344         amount to 0-1 range.
1345
1346         Tests: css3/images/cross-fade-invalidation.html
1347                css3/images/cross-fade-simple.html
1348                css3/images/cross-fade-sizing.html
1349                css3/images/cross-fade-tiled.html
1350
1351         * CMakeLists.txt:
1352         * GNUmakefile.list.am:
1353         * Target.pri:
1354         * WebCore.gypi:
1355         * WebCore.xcodeproj/project.pbxproj:
1356         * css/CSSCanvasValue.h:
1357         (WebCore::CSSCanvasValue::isPending):
1358         (WebCore::CSSCanvasValue::loadSubimages):
1359         * css/CSSCrossfadeValue.cpp:
1360         (WebCore::CSSCrossfadeValue::isPending):
1361         (WebCore::CSSCrossfadeValue::loadSubimages):
1362         (WebCore::subimageIsPending):
1363         (WebCore::loadSubimage):
1364         (WebCore::cachedImageForCSSValue):
1365         (WebCore::CSSCrossfadeValue::image):
1366         (WebCore::CSSCrossfadeValue::crossfadeChanged):
1367         * css/CSSCrossfadeValue.h:
1368         (WebCore::CSSCrossfadeValue::create):
1369         (WebCore::CSSCrossfadeValue::~CSSCrossfadeValue):
1370         (WebCore::CSSCrossfadeValue::fixedSize):
1371         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
1372         (WebCore::CSSCrossfadeValue::CrossfadeObserverProxy::CrossfadeObserverProxy):
1373         * css/CSSGradientValue.cpp:
1374         (WebCore::CSSGradientValue::image):
1375         * css/CSSGradientValue.h:
1376         (WebCore::CSSGradientValue::isPending):
1377         (WebCore::CSSGradientValue::loadSubimages):
1378         * css/CSSImageGeneratorValue.cpp:
1379         (WebCore::CSSImageGeneratorValue::generatedOrPendingImage):
1380         (WebCore::CSSImageGeneratorValue::generatedImage):
1381         (WebCore::CSSImageGeneratorValue::isPending):
1382         (WebCore::CSSImageGeneratorValue::loadSubimages):
1383         * css/CSSImageGeneratorValue.h:
1384         * css/CSSParser.cpp:
1385         (WebCore::CSSParser::parseCrossfade):
1386         * css/CSSStyleSelector.cpp:
1387         (WebCore::CSSStyleSelector::styleImage):
1388         (WebCore::CSSStyleSelector::generatedOrPendingFromValue):
1389         (WebCore::CSSStyleSelector::loadPendingImage):
1390         (WebCore::CSSStyleSelector::loadPendingImages):
1391         * css/CSSStyleSelector.h:
1392         * platform/graphics/BitmapImage.h:
1393         * platform/graphics/CrossfadeGeneratedImage.cpp: Added.
1394         (WebCore::CrossfadeGeneratedImage::CrossfadeGeneratedImage):
1395         (WebCore::CrossfadeGeneratedImage::~CrossfadeGeneratedImage):
1396         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
1397         (WebCore::CrossfadeGeneratedImage::draw):
1398         (WebCore::CrossfadeGeneratedImage::drawPattern):
1399         (WebCore::CrossfadeGeneratedImage::imageChanged):
1400         * platform/graphics/CrossfadeGeneratedImage.h: Added.
1401         (WebCore::CrossfadeGeneratedImage::create):
1402         (WebCore::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
1403         (WebCore::CrossfadeSubimageObserverProxy::setReady):
1404         * platform/graphics/GeneratedImage.h:
1405         (WebCore::GeneratedImage::GeneratedImage):
1406         * platform/graphics/GeneratorGeneratedImage.cpp: Renamed from Source/WebCore/platform/graphics/GeneratedImage.cpp.
1407         (WebCore::GeneratorGeneratedImage::draw):
1408         (WebCore::GeneratorGeneratedImage::drawPattern):
1409         (WebCore::GeneratedImage::computeIntrinsicDimensions):
1410         * platform/graphics/GeneratorGeneratedImage.h: Copied from Source/WebCore/platform/graphics/GeneratedImage.h.
1411         (WebCore::GeneratorGeneratedImage::create):
1412         (WebCore::GeneratorGeneratedImage::~GeneratorGeneratedImage):
1413         (WebCore::GeneratorGeneratedImage::GeneratorGeneratedImage):
1414         * platform/graphics/Image.h:
1415         * platform/graphics/ImageBuffer.h:
1416         * rendering/style/StylePendingImage.h:
1417         (WebCore::StylePendingImage::create):
1418         (WebCore::StylePendingImage::data):
1419         (WebCore::StylePendingImage::cssImageValue):
1420         (WebCore::StylePendingImage::cssImageGeneratorValue):
1421         (WebCore::StylePendingImage::StylePendingImage):
1422
1423
1424 2011-11-16  Dan Bernstein  <mitz@apple.com>
1425
1426         WebCore part of <rdar://problem/10262242> Add API for paginated display
1427         https://bugs.webkit.org/show_bug.cgi?id=72537
1428
1429         Reviewed by Anders Carlsson.
1430
1431         * WebCore.exp.in: Exported Page::pageCount().
1432         * page/Page.cpp:
1433         (WebCore::Page::pageCount): Added this getter.
1434         * page/Page.h:
1435
1436 2011-11-16  Shawn Singh  <shawnsingh@chromium.org>
1437
1438         [chromium] Track property changes for render surfaces.
1439         https://bugs.webkit.org/show_bug.cgi?id=72521
1440
1441         Reviewed by James Robinson.
1442
1443         Created CCRenderSurfaceTest for testing.
1444
1445         * platform/graphics/chromium/LayerRendererChromium.cpp:
1446         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
1447         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1448         (WebCore::CCLayerImpl::resetPropertyChangedFlagForSubtree):
1449         * platform/graphics/chromium/cc/CCLayerImpl.h:
1450         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
1451         (WebCore::CCRenderSurface::CCRenderSurface):
1452         (WebCore::CCRenderSurface::setClipRect):
1453         (WebCore::CCRenderSurface::setContentRect):
1454         (WebCore::CCRenderSurface::surfacePropertyChanged):
1455         * platform/graphics/chromium/cc/CCRenderSurface.h:
1456         (WebCore::CCRenderSurface::resetPropertyChangedFlag):
1457
1458 2011-11-16  Ben Wells  <benwells@chromium.org>
1459
1460         Seaming on border corners with mixed colour alpha borders
1461         https://bugs.webkit.org/show_bug.cgi?id=70471
1462
1463         Reviewed by Simon Fraser.
1464
1465         Seaming is fixed by antialiasing mitred corners for edges that have alpha and are joining
1466         a side that is of a different color.
1467
1468         Test: fast/borders/border-mixed-alpha.html
1469
1470         * rendering/RenderBoxModelObject.cpp:
1471         (WebCore::colorNeedsAntiAliasAtCorner):
1472         (WebCore::RenderBoxModelObject::paintOneBorderSide):
1473
1474 2011-11-16  Sam Weinig  <sam@webkit.org>
1475
1476         JS wrappers of DOM objects should have no-op constructors
1477         https://bugs.webkit.org/show_bug.cgi?id=72556
1478
1479         Reviewed by Geoffrey Garen.
1480
1481         Stop using a RefPtr to hold DOM objects contained by JavaScript
1482         wrappers and instead use a raw pointer. We were already releasing
1483         the underlying object before the destructor ran (via the finalizer)
1484         so the default behavior of destroying the RefPtr is always unnecessary
1485         busy work. 
1486
1487         * bindings/js/JSCSSValueCustom.cpp:
1488         (WebCore::JSCSSValueOwner::finalize):
1489         * bindings/js/JSNodeCustom.cpp:
1490         (WebCore::JSNodeOwner::finalize):
1491         (WebCore::JSNode::visitChildren):
1492         Call releaseImpl() instead of clearImpl().
1493
1494         * bindings/scripts/CodeGeneratorJS.pm:
1495         (GenerateHeader):
1496         Stop storing m_impl in a RefPtr and instead use a raw pointer. Switch
1497         clearImpl() to releaseImpl(), which explicitly derefs the pointer and
1498         clear it.
1499
1500         (GenerateImplementation):
1501         Use leakPtr() to explicitly adopt the PassRefPtr into the raw pointer.
1502         Change default finalize to call releaseImpl() instead of clearImpl().
1503
1504 2011-11-16  Michael Saboff  <msaboff@apple.com>
1505
1506         Enable 8 Bit Strings in JavaScriptCore
1507         https://bugs.webkit.org/show_bug.cgi?id=71337
1508
1509         This patch turns on 8 bit strings in StringImpl and enables
1510         their use in JavaScriptCore. Some of the changes are to
1511         turn on code that had been staged (Lexer.cpp, Identifier.cpp,
1512         SmallStrings.cpp and some of StringImpl.{h,cpp}).
1513         Other changes are minor fixes to make 8 bit strings work
1514         (UString.h, StringImpl::getData16SlowCase()).
1515         Changed StringBuffer to be a templated class based on character
1516         type.  This change riplled into WebCore code as well.
1517
1518         Reviewed by Geoffrey Garen.
1519
1520         No new tests - Changes in response to refactoring StringBuffer to
1521         be a template on character type.
1522
1523         * css/CSSParser.cpp:
1524         (WebCore::quoteCSSString):
1525         * css/CSSPrimitiveValue.cpp:
1526         (WebCore::formatNumber):
1527         * dom/Document.cpp:
1528         (WebCore::canonicalizedTitle):
1529         * platform/Length.cpp:
1530         (WebCore::newCoordsArray):
1531         * platform/sql/SQLiteStatement.cpp:
1532         (WebCore::SQLiteStatement::prepare):
1533         * platform/text/TextCodecUTF16.cpp:
1534         (WebCore::TextCodecUTF16::decode):
1535         * platform/text/TextCodecUTF8.cpp:
1536         (WebCore::TextCodecUTF8::decode):
1537         * rendering/RenderText.cpp:
1538         (WebCore::makeCapitalized):
1539         * xml/XSLTProcessorLibxslt.cpp:
1540         (WebCore::writeToStringBuilder):
1541
1542 2011-11-16  Alexandre Elias  <aelias@google.com>
1543
1544         [chromium] Improvements for page scale delta during commit
1545         https://bugs.webkit.org/show_bug.cgi?id=72471
1546
1547         Reviewed by James Robinson.
1548
1549         Page scale now follows the same commit flow as scroll position:
1550         the delta is folded into m_pageScale at BFAC time, and a "sent" value
1551         is preserved for temporary use until the commit finishes.
1552
1553         I also merged setPageScaleFactor and setPageScaleFactorLimits into one
1554         function on the impl side.  The reason is that setPageFactor must
1555         be applied after the limits are updated, but on the other hand setting
1556         the limits first may cause an unnecessary clamp of the scale delta.
1557         Merging the methods avoids this bind.
1558
1559         No new tests. (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)
1560
1561         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1562         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1563         (WebCore::CCLayerTreeHost::applyScrollAndScale):
1564         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
1565         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1566         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1567         (WebCore::CCLayerTreeHostImpl::setPageScaleFactorAndLimits):
1568         (WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
1569         (WebCore::CCLayerTreeHostImpl::setScaleDelta):
1570         (WebCore::CCLayerTreeHostImpl::applyScaleDeltaToScrollLayer):
1571         (WebCore::CCLayerTreeHostImpl::scrollRootLayer):
1572         (WebCore::CCLayerTreeHostImpl::processScrollDeltas):
1573         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1574
1575 2011-11-16  Joshua Bell  <jsbell@chromium.org>
1576
1577         IndexedDB: Reduce nested key depth threshold, re-enable flaky test
1578         https://bugs.webkit.org/show_bug.cgi?id=72529
1579
1580         Reviewed by Adam Barth.
1581
1582         Drop maximum array key depth from 20k to 2k.
1583
1584         * bindings/v8/IDBBindingUtilities.cpp:
1585
1586 2011-11-16  Nate Chapin  <japhet@chromium.org>
1587
1588         Fix incorrect multipart handling in r100311.
1589         SubresourceLoader::didReceiveData() is getting called
1590         twice, which has unintended side effects.
1591         https://bugs.webkit.org/show_bug.cgi?id=72436
1592
1593         Reviewed by Adam Barth.
1594
1595         http/tests/multipart/invalid-image-data.html should stop
1596         asserting after this.
1597
1598         * loader/SubresourceLoader.cpp:
1599         (WebCore::SubresourceLoader::didReceiveResponse):
1600         (WebCore::SubresourceLoader::didReceiveData):
1601         (WebCore::SubresourceLoader::sendDataToResource):
1602         * loader/SubresourceLoader.h:
1603
1604 2011-11-16  Justin Schuh  <jschuh@chromium.org>
1605
1606         Clear SVG filter client when its node is detached
1607         https://bugs.webkit.org/show_bug.cgi?id=71741
1608
1609         Reviewed by Eric Seidel.
1610
1611         Test: svg/filters/reparent-animated-filter-target.html
1612
1613         * rendering/svg/SVGResourcesCache.cpp:
1614         (WebCore::SVGResourcesCache::clientDestroyed):
1615
1616 2011-11-16  John Bates  <jbates@google.com>
1617
1618         Page/layer flashes after GPU-accelerated CSS transition
1619         https://bugs.webkit.org/show_bug.cgi?id=72343
1620
1621         LayerRendererChromium was resizing the window to 1x1 at initialization.
1622         In some cases, there is no drawLayers before switching back to
1623         software rendering. This left the window resized to 1x1 and the
1624         following software paints would therefore not be visible. This change
1625         moves the reshape call into drawLayers so that it will only be called
1626         if rendering will occur.
1627
1628         Reviewed by James Robinson.
1629
1630         New test: CCLayerTreeHostImplTest.reshapeNotCalledUntilDraw.
1631
1632         * platform/graphics/chromium/LayerRendererChromium.cpp:
1633         (WebCore::LayerRendererChromium::viewportChanged):
1634         (WebCore::LayerRendererChromium::doViewportChanged):
1635         (WebCore::LayerRendererChromium::drawLayersInternal):
1636         * platform/graphics/chromium/LayerRendererChromium.h:
1637
1638 2011-11-16  Alexandre Elias  <aelias@google.com>
1639
1640         [chromium] Add null pointer check in setDeviceScaleFactor
1641         https://bugs.webkit.org/show_bug.cgi?id=72464
1642
1643         Reviewed by James Robinson.
1644
1645         No new tests. (Tiny fix.)
1646
1647         * page/Page.cpp:
1648         (WebCore::Page::setDeviceScaleFactor):
1649
1650 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1651
1652         Unreviewed, rolling out r100438.
1653         http://trac.webkit.org/changeset/100438
1654         https://bugs.webkit.org/show_bug.cgi?id=72536
1655
1656         Broke unit tests (Requested by jamesr_ on #webkit).
1657
1658         * platform/PlatformScreen.h:
1659         * platform/chromium/PlatformScreenChromium.cpp:
1660         * platform/chromium/PlatformSupport.h:
1661         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1662         (WebCore::CCSettings::CCSettings):
1663         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1664         (WebCore::CCThreadProxy::initializeImplOnImplThread):
1665
1666 2011-11-16  Andy Estes  <aestes@apple.com>
1667
1668         Assertion failure in LayerFlushScheduler::resume() when running some layout tests in WebKitTestRunner
1669         https://bugs.webkit.org/show_bug.cgi?id=72535
1670
1671         Reviewed by Anders Carlsson.
1672
1673         LayerFlushScheduler attempted to use a counter strategy for calls to
1674         suspend() and resume(), which allowed us to assert that these calls
1675         were balanced. Unfortunately it is hard to guarantee this in WebKit2,
1676         where we sometimes try to call suspend() before we've entered
1677         compositing mode (hence before we have a LayerTreeHost and a
1678         LayerFlushScheduler). When we later call resume(), this call ends up
1679         being unbalanced and asserts.
1680
1681         For now, remove the assertions and allow unbalanced calls to suspend()
1682         and resume().
1683
1684         * platform/graphics/ca/LayerFlushScheduler.cpp:
1685         (WebCore::LayerFlushScheduler::suspend):
1686         (WebCore::LayerFlushScheduler::resume):
1687         * platform/graphics/ca/LayerFlushScheduler.h:
1688         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
1689         (WebCore::LayerFlushScheduler::LayerFlushScheduler):
1690         (WebCore::LayerFlushScheduler::runLoopObserverCallback):
1691         (WebCore::LayerFlushScheduler::schedule):
1692
1693 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1694
1695         Unreviewed, rolling out r100473.
1696         http://trac.webkit.org/changeset/100473
1697         https://bugs.webkit.org/show_bug.cgi?id=72534
1698
1699         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
1700
1701         * CMakeLists.txt:
1702         * GNUmakefile.list.am:
1703         * Target.pri:
1704         * WebCore.gypi:
1705         * rendering/RenderBlock.cpp:
1706         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
1707         * rendering/RenderObject.cpp:
1708         (WebCore::RenderObject::createObject):
1709         (WebCore::RenderObject::addChild):
1710         * rendering/RenderObject.h:
1711         * rendering/RenderTable.cpp:
1712         (WebCore::RenderTable::addChild):
1713         * rendering/RenderTable.h:
1714         * rendering/RenderTableCaption.cpp: Removed.
1715         * rendering/RenderTableCaption.h: Removed.
1716
1717 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1718
1719         Unreviewed, rolling out r100479.
1720         http://trac.webkit.org/changeset/100479
1721         https://bugs.webkit.org/show_bug.cgi?id=72533
1722
1723         "Broke the Mac Build" (Requested by mwenge2 on #webkit).
1724
1725         * WebCore.vcproj/WebCore.vcproj:
1726         * WebCore.xcodeproj/project.pbxproj:
1727         * rendering/RenderingAllInOne.cpp:
1728
1729 2011-11-16  Chris Fleizach  <cfleizach@apple.com>
1730
1731         WebKitTestRunner needs to support accessibility-related DRT APIs
1732         https://bugs.webkit.org/show_bug.cgi?id=42131
1733
1734         Minor changes needed to support AX testing in WKTestRunner.
1735
1736         Reviewed by Beth Dakin.
1737
1738         * WebCore.exp.in:
1739              Expose focusedUIElementForPage so that the WK2 injected bundle can retrieve it.
1740         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1741         (accessibilitySearchKeyForString):
1742             Remove an unncessary assert that was causing issues with the WK2 test run.
1743
1744 2011-11-16  Sergio Villar Senin  <svillar@igalia.com>
1745
1746         [Soup] Somet tests fail with FAIL Unexpected response data received: Wrong method: GET
1747         https://bugs.webkit.org/show_bug.cgi?id=69219
1748
1749         Reviewed by Martin Robinson.
1750
1751         Do not stop appending data to the request body if any of the blob
1752         items to upload is not accesible.
1753
1754         * platform/network/soup/ResourceHandleSoup.cpp:
1755         (WebCore::addEncodedBlobToSoupMessageBody):
1756
1757 2011-11-16  Beth Dakin  <bdakin@apple.com>
1758
1759         https://bugs.webkit.org/show_bug.cgi?id=72400
1760         Scrollbar uiStateTransitionProgress requires tracking the mouse all the time
1761         -and corresponding-
1762         <rdar://problem/10409328>
1763
1764         Reviewed by Darin Adler.
1765
1766         This patch makes it so we track the mouse all the time when we have legacy 
1767         scrollbars (rather than only tracking the mouse when the window is key). When 
1768         we're in that mode, we want to do as little work as possible when handling the 
1769         mouseMoved event so that this extra tracking has little to no performance impact. 
1770         Also, we don't want to change basic behaviors by having normal web content hover 
1771         effects start happening when a window is in the background. So this patch also 
1772         introduces a way to handle a mouseMoved event that will only affect scrollbars.
1773
1774         EventHandler::mouseMoved() and EventHandler::handleMouseEvent() both now take a 
1775         boolean parameter that indicates if we are only updating scrollbars. If that is 
1776         the case, then we make our HitTestRequest ReadOnly, and we return early once 
1777         updateLastScrollbarUnderMouse() is called.
1778         * WebCore.exp.in:
1779         * page/EventHandler.cpp:
1780         (WebCore::EventHandler::mouseMoved):
1781         (WebCore::EventHandler::handleMouseMoveEvent):
1782
1783         In addition to calling Scrollbar::mouseExited() when appropriate, this function 
1784         now calls a new function, Scrollbar::mouseEntered() when appropriate. 
1785         (WebCore::EventHandler::updateLastScrollbarUnderMouse):
1786         * page/EventHandler.h:
1787
1788         Scrollbar::mouseMoved() used to be responsible for calling 
1789         ScrollAnimator::mouseEnteredScrollbar(), but now Scrollbar::mouseEntered() takes 
1790         care of that instead, much like how Scrollbar::mouseExited() takes care of calling 
1791         the animator's exit function.
1792         * platform/Scrollbar.cpp:
1793         (WebCore::Scrollbar::mouseMoved):
1794         (WebCore::Scrollbar::mouseEntered):
1795         * platform/Scrollbar.h:
1796
1797 2011-11-16  Andreas Kling  <kling@webkit.org>
1798
1799         CSSValue: isInheritedValue() doesn't need a dedicated bit.
1800         <http://webkit.org/b/72514>
1801
1802         Reviewed by Antti Koivisto.
1803
1804         Remove CSSValue::m_isInherited and have isInheritedValue() check the
1805         class type instead. There's no compelling reason for CSSInheritedValue
1806         to have a dedicated bit, since nobody subclasses it anyway.
1807
1808         * css/CSSValue.h:
1809         (WebCore::CSSValue::isInheritedValue):
1810         (WebCore::CSSValue::CSSValue):
1811
1812 2011-11-16  Robert Hogan  <robert@webkit.org>
1813
1814         Fix build on Windows and Mac after r100473
1815
1816         Unreviewed, fix build.
1817
1818         * WebCore.vcproj/WebCore.vcproj:
1819         * WebCore.xcodeproj/project.pbxproj:
1820         * rendering/RenderingAllInOne.cpp:
1821
1822 2011-11-16  Philip Rogers  <pdr@google.com>
1823
1824         Remove extra GraphicsContextStateSaver restore() call.
1825         https://bugs.webkit.org/show_bug.cgi?id=72497
1826
1827         Reviewed by Andreas Kling.
1828
1829         * html/canvas/CanvasRenderingContext2D.cpp:
1830         (WebCore::CanvasRenderingContext2D::drawTextInternal):
1831
1832 2011-11-08  Robert Hogan  <robert@webkit.org>
1833
1834         CSS 2.1 failure: border-collapse-offset-002.htm fails
1835         https://bugs.webkit.org/show_bug.cgi?id=71705
1836
1837         Table captions are implemented as children of the table but have a special
1838         requirement to expand to the full width of the table rather than just the 'available'
1839         width, i.e. the full width minus padding and borders.
1840
1841         To accomodate this create a RenderTableCaption object that reimplements containingBlockLogicalWidthForContent()
1842         to return the full width of the containing block (i.e. the table) rather than the available width.
1843
1844         Reviewed by Antti Koivisto.
1845
1846         * CMakeLists.txt: Add RenderTableCaption.[cpp|h]
1847         * GNUmakefile.list.am: Add RenderTableCaption.[cpp|h]
1848         * Target.pri: Add RenderTableCaption.[cpp|h]
1849         * WebCore.gypi: Add RenderTableCaption.[cpp|h]
1850         * rendering/RenderBlock.cpp:
1851         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): Use RenderTableCaption
1852         * rendering/RenderObject.cpp:
1853         (WebCore::RenderObject::createObject): Add RenderTableCaption.[cpp|h]
1854         (WebCore::RenderObject::addChild): ditto
1855         * rendering/RenderObject.h:
1856         (WebCore::RenderObject::isTableCaption):
1857         * rendering/RenderTable.cpp:
1858         (WebCore::RenderTable::addChild):
1859         * rendering/RenderTable.h:
1860         * rendering/RenderTableCaption.cpp: Added.
1861         (WebCore::RenderTableCaption::RenderTableCaption): Implement RenderTableCaption
1862         (WebCore::RenderTableCaption::~RenderTableCaption):
1863         (WebCore::RenderTableCaption::containingBlockLogicalWidthForContent): Return the containing block's full width rather than it's available width.
1864         * rendering/RenderTableCaption.h: Added.
1865         (WebCore::RenderTableCaption::isTableCaption):
1866         (WebCore::toRenderTableCaption):
1867
1868 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
1869
1870         [Gtk] display:none has no effect on <option> element.
1871         https://bugs.webkit.org/show_bug.cgi?id=72370
1872
1873         Reviewed by Martin Robinson.
1874
1875         * platform/gtk/GtkPopupMenu.cpp:
1876         (WebCore::GtkPopupMenu::appendItem):
1877         * platform/gtk/PopupMenuGtk.cpp:
1878         (WebCore::PopupMenuGtk::createGtkActionForMenuItem):
1879
1880 2011-11-16  Dan Winship  <danw@gnome.org>
1881
1882         [GTK] Fix platformDefersLoading to handle non-http requests, and
1883         to not use broken-ish libsoup APIs.
1884         https://bugs.webkit.org/show_bug.cgi?id=72227
1885
1886         Reviewed by Martin Robinson.
1887
1888         * platform/network/ResourceHandleInternal.h:
1889         * platform/network/soup/ResourceHandleSoup.cpp:
1890         (WebCore::sendRequestCallback):
1891         (WebCore::startHTTPRequest):
1892         (WebCore::hasBeenSent):
1893         (WebCore::ResourceHandle::platformSetDefersLoading):
1894         (WebCore::readCallback): rather than deferring by using
1895         soup_session_pause_message(), let the read complete, but just don't
1896         process the result until we're no longer deferred.
1897         (WebCore::startNonHTTPRequest): Don't start the request if
1898         it's deferred.
1899
1900 2011-11-16  Vsevolod Vlasov  <vsevik@chromium.org>
1901
1902         Web Inspector: Application cache status should be updated after swapCache().
1903         https://bugs.webkit.org/show_bug.cgi?id=72123
1904
1905         Reviewed by Pavel Feldman.
1906
1907         Application cache view resources and status are now updated after swapCache() call.
1908         Refresh button removed from application cache view.
1909         Application cache inspector tests are moved to their own folder.
1910
1911         Tests: http/tests/inspector/appcache/appcache-iframe-manifests.html
1912                http/tests/inspector/appcache/appcache-manifest-with-non-existing-file.html
1913                http/tests/inspector/appcache/appcache-swap.html
1914
1915         * inspector/front-end/ApplicationCacheItemsView.js:
1916         (WebInspector.ApplicationCacheItemsView):
1917         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
1918         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
1919         (WebInspector.ApplicationCacheItemsView.prototype._maybeUpdate):
1920         (WebInspector.ApplicationCacheItemsView.prototype._markDirty):
1921         (WebInspector.ApplicationCacheItemsView.prototype.updateStatus):
1922         (WebInspector.ApplicationCacheItemsView.prototype._updateCallback):
1923         (WebInspector.ApplicationCacheItemsView.prototype._deleteCallback):
1924         * loader/appcache/ApplicationCacheGroup.cpp:
1925         (WebCore::ApplicationCacheGroup::setNewestCache):
1926         (WebCore::ApplicationCacheGroup::makeObsolete):
1927         (WebCore::ApplicationCacheGroup::setUpdateStatus):
1928         * loader/appcache/ApplicationCacheHost.cpp:
1929         (WebCore::ApplicationCacheHost::notifyDOMApplicationCache):
1930         (WebCore::ApplicationCacheHost::swapCache):
1931
1932 2011-11-16  Eric Carlson  <eric.carlson@apple.com>
1933
1934         addTrack() must throw an exception if 'kind' is unknown
1935         https://bugs.webkit.org/show_bug.cgi?id=71915
1936
1937         Reviewed by Philippe Normand.
1938
1939         Tests: media/track/track-addtrack-kind.html
1940                media/track/track-kind.html
1941
1942         * html/HTMLMediaElement.cpp:
1943         (WebCore::HTMLMediaElement::textTrackKindChanged): New. Will be implemented for 62885.
1944         (WebCore::HTMLMediaElement::addTrack): Throw if  'kind' is not a known value.
1945         (WebCore::HTMLMediaElement::addTextTrack): Call textTracks(), it will allocate the track
1946             list object if necessary.
1947         (WebCore::HTMLMediaElement::textTracks): Never return NULL, a TextTrackList with no tracks
1948             is allowed.
1949         * html/HTMLMediaElement.h:
1950         (WebCore::HTMLMediaElement::addTrack): Add variants to deal with optional parameters plus
1951             a mandatory ExceptionCode parameter.
1952         * html/HTMLMediaElement.idl: addTrack can generate an exception.
1953
1954         * html/HTMLTrackElement.cpp:
1955         (WebCore::HTMLTrackElement::attributeChanged): kind, label, and srclang attribute changes should
1956             percolate down the the TextTrack.
1957         (WebCore::HTMLTrackElement::kind): Return the TextTrack kind because it is not necessarily the
1958             same as the attribute value.
1959         (WebCore::HTMLTrackElement::ensureTrack): Only pass legal 'kind' keywords to create a TextTrack.
1960         (WebCore::HTMLTrackElement::textTrackKindChanged): Notify parent element, if any.
1961         * html/HTMLTrackElement.h:
1962
1963         * html/TextTrack.cpp:
1964         (WebCore::TextTrack::subtitlesKeyword): New, return legal kind attribute value.
1965         (WebCore::TextTrack::captionsKeyword): Ditto.
1966         (WebCore::TextTrack::descriptionsKeyword): Ditto.
1967         (WebCore::TextTrack::chaptersKeyword): Ditto.
1968         (WebCore::TextTrack::metadataKeyword): Ditto.
1969         (WebCore::TextTrack::TextTrack): Call setKind to make sure m_kind is always set to legal value.
1970         (WebCore::TextTrack::isValidKindKeyword): New, validate 'kind' value.
1971         (WebCore::TextTrack::setKind): Only allow legal values.
1972         * html/TextTrack.h:
1973         (WebCore::TextTrack::kind):
1974         (WebCore::TextTrack::label):
1975         (WebCore::TextTrack::setLabel):
1976         (WebCore::TextTrack::language):
1977         (WebCore::TextTrack::setLanguage):
1978         (WebCore::TextTrack::readyState):
1979         (WebCore::TextTrack::mode):
1980
1981 2011-11-16  Andreas Kling  <kling@webkit.org>
1982
1983         CSSValue: Clean up initial value construction.
1984         <http://webkit.org/b/72502>
1985
1986         Reviewed by Antti Koivisto.
1987
1988         Instead of determining whether a given CSSInitialValue is 'implicit' or not by
1989         querying the CSSValue::ClassType (InitialClass vs. ImplicitInitialClass),
1990         add a protected CSSValue member and set it from the CSSInitialValue constructor.
1991
1992         Also get rid of the CSSValue::m_isInitial bit since we can now replace the
1993         checks by classType() == InitialClass.
1994
1995         No new tests, this is a cleanup.
1996
1997         * css/CSSInitialValue.h:
1998         (WebCore::CSSInitialValue::CSSInitialValue):
1999
2000             Poke 'implicit' constructor argument into CSSValue::m_isImplicit.
2001
2002         * css/CSSValue.cpp:
2003         (WebCore::CSSValue::cssText):
2004         (WebCore::CSSValue::destroy):
2005
2006             Remove ImplicitInitialClass cases.
2007
2008         * css/CSSValue.h:
2009         (WebCore::CSSValue::isImplicitInitialValue):
2010         (WebCore::CSSValue::isInitialValue):
2011         (WebCore::CSSValue::CSSValue):
2012
2013 2011-11-16  Antaryami Pandia  <antaryami.pandia@motorola.com>
2014
2015         Remove unnecessary if check from RenderListBox::paintItemForeground.
2016         https://bugs.webkit.org/show_bug.cgi?id=72488
2017
2018         Reviewed by Andreas Kling.
2019
2020         * rendering/RenderListBox.cpp:
2021         (WebCore::RenderListBox::paintItemForeground):
2022
2023 2011-11-15  Simon Hausmann  <simon.hausmann@nokia.com>
2024
2025         [Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions
2026
2027         Reviewed by Tor Arne Vestbø.
2028
2029         * Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.
2030
2031 2011-11-16  Iain Merrick  <husky@google.com>
2032
2033         [chromium] Pass screen refresh rate into compositor.
2034         https://bugs.webkit.org/show_bug.cgi?id=71040
2035
2036         Reviewed by Tony Gentilcore.
2037
2038         * platform/PlatformScreen.h:
2039         * platform/chromium/PlatformScreenChromium.cpp:
2040         (WebCore::screenRefreshRate):
2041         * platform/chromium/PlatformSupport.h:
2042         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2043         (WebCore::CCSettings::CCSettings):
2044         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2045         (WebCore::CCThreadProxy::initializeImplOnImplThread):
2046
2047 2011-11-15  Andrey Kosyakov  <caseq@chromium.org>
2048
2049         Web Inspector: [Extensions API] drop ExtensionSidebarPane.onUpdated, use callbacks instead
2050         https://bugs.webkit.org/show_bug.cgi?id=72388
2051
2052         Reviewed by Pavel Feldman.
2053
2054         Tests: inspector/extensions/extensions-panel.html
2055                inspector/extensions/extensions-sidebar.html
2056
2057         - fire ExtensionSidebarPane.on{Hidden,Shown} for non-iframe content (experssions/objects);
2058         - drop ExtensionsSidebarPane.onUpdated, provide callback for setObject()/setExpression() instead;
2059         - fix an exception when a page is replaced with object/expression.
2060
2061          inspector/front-end/ExtensionAPI.js:
2062         (injectedExtensionAPI.ExtensionSidebarPaneImpl):
2063         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setExpression):
2064         (injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setObject):
2065         * inspector/front-end/ExtensionPanel.js:
2066         (WebInspector.ExtensionNotifierView):
2067         (WebInspector.ExtensionNotifierView.prototype.wasShown):
2068         (WebInspector.ExtensionNotifierView.prototype.willHide):
2069         (WebInspector.ExtensionSidebarPane.prototype.setObject):
2070         (WebInspector.ExtensionSidebarPane.prototype.setExpression):
2071         (WebInspector.ExtensionSidebarPane.prototype.setPage):
2072         (WebInspector.ExtensionSidebarPane.prototype._onEvaluate):
2073         (WebInspector.ExtensionSidebarPane.prototype._makeObjectPropertiesView):
2074         (WebInspector.ExtensionSidebarPane.prototype._setObject):
2075         * inspector/front-end/ExtensionServer.js:
2076         (WebInspector.ExtensionServer.prototype._onSetSidebarContent.callback):
2077         (WebInspector.ExtensionServer.prototype._onSetSidebarContent):
2078         (WebInspector.ExtensionServer.prototype._dispatchCallback):
2079         * inspector/front-end/View.js:
2080         (WebInspector.View.prototype.detach):
2081
2082 2011-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
2083
2084         Unreviewed, rolling out r100266.
2085         http://trac.webkit.org/changeset/100266
2086
2087         Broke WTR.
2088
2089         * Target.pri:
2090
2091 2011-11-16  Per-Erik Brodin  <per-erik.brodin@ericsson.com>
2092
2093         [GTK] fast/events/event-creation.html fails creating MediaStreamEvent
2094         https://bugs.webkit.org/show_bug.cgi?id=70720
2095
2096         Reviewed by Philippe Normand.
2097
2098         Added missing overriding of Event::interfaceName()
2099
2100         * mediastream/MediaStreamEvent.cpp:
2101         (WebCore::MediaStreamEvent::stream): Changed return value to raw pointer.
2102         (WebCore::MediaStreamEvent::interfaceName): Added back from r98044.
2103         * mediastream/MediaStreamEvent.h:
2104         * mediastream/MediaStreamEvent.idl: Changed module name to "events".
2105
2106 2011-11-16  Mario Sanchez Prada  <msanchez@igalia.com>
2107
2108         [GTK] Use GQuark's in the ATK wrapper to get and set arbitrary data
2109         https://bugs.webkit.org/show_bug.cgi?id=72394
2110
2111         Reviewed by Martin Robinson.
2112
2113         No new functionality, no new tests needed.
2114
2115         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2116         (webkit_accessible_class_init): Initialize GQuarks.
2117         (getGailTextUtilForAtk): Use gailTextUtilQuark.
2118         (getPangoLayoutForAtk): Remove unused call to
2119         g_object_set_data_full, since that data is no used anywhere.
2120         (webkitAccessibleHyperlinkImplGetHyperlink): Use hyperlinkObjectQuark.
2121
2122 2011-11-15  Alexandru Chiculita  <achicu@adobe.com>
2123
2124         [CSSShaders] Implement the style cached resources and computed style for the shader urls
2125         https://bugs.webkit.org/show_bug.cgi?id=72378
2126
2127         Reviewed by Dean Jackson.
2128
2129         Test: css3/filters/custom-filter-property-computed-style.html
2130
2131         * GNUmakefile.list.am:
2132         * Target.pri:
2133         * WebCore.gypi:
2134         * WebCore.vcproj/WebCore.vcproj:
2135         * WebCore.xcodeproj/project.pbxproj:
2136         * css/CSSComputedStyleDeclaration.cpp:
2137         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
2138         * css/CSSStyleSelector.cpp:
2139         (WebCore::CSSStyleSelector::CSSStyleSelector):
2140         (WebCore::CSSStyleSelector::styleForKeyframe):
2141         (WebCore::CSSStyleSelector::pseudoStyleForElement):
2142         (WebCore::CSSStyleSelector::styleForPage):
2143         (WebCore::CSSStyleSelector::applyMatchedDeclarations):
2144         (WebCore::CSSStyleSelector::styleShader):
2145         (WebCore::CSSStyleSelector::cachedOrPendingStyleShaderFromValue):
2146         (WebCore::CSSStyleSelector::loadPendingShaders):
2147         (WebCore::CSSStyleSelector::createCustomFilterOperation):
2148         (WebCore::CSSStyleSelector::createFilterOperations):
2149         * css/CSSStyleSelector.h:
2150         * css/WebKitCSSShaderValue.cpp:
2151         (WebCore::WebKitCSSShaderValue::WebKitCSSShaderValue):
2152         (WebCore::WebKitCSSShaderValue::~WebKitCSSShaderValue):
2153         (WebCore::WebKitCSSShaderValue::cachedShader):
2154         (WebCore::WebKitCSSShaderValue::cachedOrPendingShader):
2155         * css/WebKitCSSShaderValue.h:
2156         * loader/cache/CachedResource.cpp:
2157         (WebCore::defaultPriorityForResourceType):
2158         * loader/cache/CachedResource.h:
2159         * loader/cache/CachedResourceLoader.cpp:
2160         (WebCore::createResource):
2161         (WebCore::CachedResourceLoader::requestShader):
2162         (WebCore::CachedResourceLoader::checkInsecureContent):
2163         (WebCore::CachedResourceLoader::canRequest):
2164         * loader/cache/CachedResourceLoader.h:
2165         * loader/cache/CachedShader.cpp:
2166         (WebCore::CachedShader::CachedShader):
2167         (WebCore::CachedShader::~CachedShader):
2168         * loader/cache/CachedShader.h:
2169         * platform/graphics/filters/CustomFilterOperation.h:
2170         * rendering/style/RenderStyle.h:
2171         (WebCore::InheritedFlags::filter):
2172         * rendering/style/StyleCachedShader.cpp:
2173         (WebCore::StyleCachedShader::StyleCachedShader):
2174         (WebCore::StyleCachedShader::cssValue):
2175         * rendering/style/StyleCachedShader.h:
2176         (WebCore::StyleCachedShader::create):
2177         * rendering/style/StylePendingShader.h:
2178         (WebCore::StylePendingShader::create):
2179         (WebCore::StylePendingShader::cssValue):
2180         (WebCore::StylePendingShader::cssShaderValue):
2181         (WebCore::StylePendingShader::StylePendingShader):
2182         * rendering/style/StyleShader.h:
2183         (WebCore::StyleShader::~StyleShader):
2184         (WebCore::StyleShader::isCachedShader):
2185         (WebCore::StyleShader::isPendingShader):
2186         (WebCore::StyleShader::StyleShader):
2187
2188 2011-11-15  Sergio Villar Senin  <svillar@igalia.com>
2189
2190         [WK2] [GTK] fast/css/webkit-mask-crash-fieldset-legend.html asserts WebKitWebProcess
2191         https://bugs.webkit.org/show_bug.cgi?id=69510
2192
2193         Reviewed by Simon Fraser.
2194
2195         End the current transparency layer before early returning from
2196         paintMask() when there is a maskBoxImage which is still being
2197         loaded. This will balance the previous call to
2198         beginTransparencyLayer().
2199
2200         * rendering/InlineFlowBox.cpp:
2201         (WebCore::InlineFlowBox::paintMask):
2202
2203 2011-11-15  Darin Adler  <darin@apple.com>
2204
2205         Incorrect type checks in RenderTheme media code
2206         https://bugs.webkit.org/show_bug.cgi?id=72184
2207
2208         Reviewed by Eric Carlson.
2209
2210         No tests added. Ideally this patch should be revised to add tests!
2211
2212         * accessibility/AccessibilityMediaControls.cpp:
2213         (WebCore::AccessibilityMediaControl::create): Use mediaControlElementType.
2214         (WebCore::AccessibilityMediaControl::controlType): Ditto.
2215         (WebCore::AccessibilityMediaTimeline::valueDescription): Use early return
2216         rather than an assertion to check type of input element.
2217
2218         * html/shadow/MediaControlElements.cpp:
2219         (WebCore::mediaControlElementType): Added. A type-safe way to get the
2220         media control element type after checking isMediaControlElement but with
2221         no other assumptions.
2222         * html/shadow/MediaControlElements.h: Added mediaControlElementType.
2223
2224         * platform/efl/RenderThemeEfl.cpp:
2225         (WebCore::RenderThemeEfl::paintMediaPlayButton): Use mediaControlElementType.
2226         (WebCore::RenderThemeEfl::paintMediaSeekBackButton): Use mediaControlElementType.
2227         (WebCore::RenderThemeEfl::paintMediaSeekForwardButton): Use mediaControlElementType.
2228         * platform/gtk/RenderThemeGtk.cpp:
2229         (WebCore::RenderThemeGtk::paintMediaPlayButton): Check isMediaControlElement and
2230         use mediaControlElementType.
2231         * rendering/RenderThemeMac.mm:
2232         (WebCore::RenderThemeMac::paintMediaMuteButton): Ditto. Also remove uneeded
2233         redundant null check.
2234         (WebCore::RenderThemeMac::paintMediaPlayButton): Ditto.
2235         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton): Ditto.
2236
2237 2011-11-15  Jeff Timanus  <twiz@chromium.org>
2238
2239         [chromium] During tear down, prevent the WebGLLayerChromium instance from attempting to stop a timer for a NULL context.
2240         https://bugs.webkit.org/show_bug.cgi?id=72423
2241
2242         Reviewed by Kenneth Russell.
2243
2244         * platform/graphics/chromium/WebGLLayerChromium.cpp:
2245         (WebCore::WebGLLayerChromium::setDrawingBuffer):
2246
2247 2011-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2248
2249         Rebaseline generated WebCore bindings
2250
2251         Unreviewed build fix
2252
2253         No new tests.
2254
2255         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2256         (WebCore::isObservable):
2257         (WebCore::JSTestEventConstructorOwner::isReachableFromOpaqueRoots):
2258         (WebCore::JSTestEventConstructorOwner::finalize):
2259         * bindings/scripts/test/JS/JSTestEventConstructor.h:
2260         (WebCore::JSTestEventConstructor::clearImpl):
2261         (WebCore::wrapperOwner):
2262         (WebCore::wrapperContext):
2263         * bindings/scripts/test/JS/JSTestInterface.cpp:
2264         (WebCore::JSTestInterfaceOwner::finalize):
2265         * bindings/scripts/test/JS/JSTestInterface.h:
2266         (WebCore::JSTestInterface::clearImpl):
2267         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2268         (WebCore::isObservable):
2269         (WebCore::JSTestMediaQueryListListenerOwner::isReachableFromOpaqueRoots):
2270         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
2271         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
2272         (WebCore::JSTestMediaQueryListListener::clearImpl):
2273         (WebCore::wrapperOwner):
2274         (WebCore::wrapperContext):
2275         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
2276         (WebCore::JSTestNamedConstructorOwner::finalize):
2277         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
2278         (WebCore::JSTestNamedConstructor::clearImpl):
2279         * bindings/scripts/test/JS/JSTestObj.cpp:
2280         (WebCore::isObservable):
2281         (WebCore::JSTestObjOwner::isReachableFromOpaqueRoots):
2282         (WebCore::JSTestObjOwner::finalize):
2283         * bindings/scripts/test/JS/JSTestObj.h:
2284         (WebCore::JSTestObj::clearImpl):
2285         (WebCore::wrapperOwner):
2286         (WebCore::wrapperContext):
2287         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2288         (WebCore::isObservable):
2289         (WebCore::JSTestSerializedScriptValueInterfaceOwner::isReachableFromOpaqueRoots):
2290         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
2291         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
2292         (WebCore::JSTestSerializedScriptValueInterface::clearImpl):
2293         (WebCore::wrapperOwner):
2294         (WebCore::wrapperContext):
2295
2296 2011-11-15  Jeff Timanus  <twiz@chromium.org>
2297
2298         Patch removing duplicated code in the setup of the DrawingBuffer used
2299         to host the back-buffer for WebGL contents.
2300         https://bugs.webkit.org/show_bug.cgi?id=72327
2301
2302         Reviewed by Kenneth Russell.
2303
2304         * html/canvas/WebGLRenderingContext.cpp:
2305         (WebCore::WebGLRenderingContext::copyTexImage2D):
2306         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
2307         (WebCore::WebGLRenderingContext::readPixels):
2308
2309 2011-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
2310
2311         JS DOM wrappers depend on destructor to deref impl RefPtrs
2312         https://bugs.webkit.org/show_bug.cgi?id=72341
2313
2314         Reviewed by Sam Weinig.
2315
2316         No new tests.
2317
2318         Added clearing of impl RefPtrs to JS DOM wrapper nodes and removed the default 
2319         wrapperOwner function in favor of generating all WeakHandleOwners and wrapperOwner functions.
2320
2321         * bindings/js/JSCSSValueCustom.cpp:
2322         (WebCore::JSCSSValueOwner::finalize):
2323         * bindings/js/JSDOMBinding.h:
2324         * bindings/js/JSNodeCustom.cpp:
2325         (WebCore::JSNodeOwner::finalize):
2326         * bindings/scripts/CodeGeneratorJS.pm:
2327         (GenerateHeader):
2328         (GenerateImplementation):
2329
2330 2011-11-15  Joseph Pecoraro  <pecoraro@apple.com>
2331
2332         Web Inspector: Share Highlight Code for Drawing Outlined Quad
2333         https://bugs.webkit.org/show_bug.cgi?id=72451
2334
2335         Reviewed by Timothy Hatcher.
2336
2337         * inspector/DOMNodeHighlighter.cpp:
2338
2339 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
2340
2341         Unreviewed, rolling out r100308.
2342         http://trac.webkit.org/changeset/100308
2343         https://bugs.webkit.org/show_bug.cgi?id=72450
2344
2345         Introduces WebGL conformance test regressions. (Requested by
2346         twiz on #webkit).
2347
2348         * html/canvas/WebGLRenderingContext.cpp:
2349         (WebCore::WebGLRenderingContext::copyTexImage2D):
2350         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
2351         (WebCore::WebGLRenderingContext::readPixels):
2352
2353 2011-11-15  James Robinson  <jamesr@chromium.org>
2354
2355         Rollout http://trac.webkit.org/changeset/99813, caused some crashes in
2356         TiledLayerChromium::updateCompositorResources()
2357
2358         * WebCore.gypi:
2359         * platform/graphics/chromium/BitmapCanvasLayerTextureUpdater.cpp: Removed.
2360         * platform/graphics/chromium/BitmapCanvasLayerTextureUpdater.h: Removed.
2361         * platform/graphics/chromium/CanvasLayerTextureUpdater.cpp: Removed.
2362         * platform/graphics/chromium/CanvasLayerTextureUpdater.h: Removed.
2363         * platform/graphics/chromium/ContentLayerChromium.cpp:
2364         (WebCore::ContentLayerChromium::createTextureUpdater):
2365         * platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.h: Removed.
2366         * platform/graphics/chromium/ImageLayerChromium.cpp:
2367         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
2368         * platform/graphics/chromium/LayerRendererChromium.cpp:
2369         * platform/graphics/chromium/LayerTextureUpdater.h:
2370         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp: Renamed from Source/WebCore/platform/graphics/chromium/FrameBufferSkPictureCanvasLayerTextureUpdater.cpp.
2371         (WebCore::FrameBuffer::FrameBuffer::FrameBuffer):
2372         (WebCore::FrameBuffer::FrameBuffer::~FrameBuffer):
2373         (WebCore::FrameBuffer::FrameBuffer::initialize):
2374         (WebCore::LayerTextureUpdaterCanvas::LayerTextureUpdaterCanvas):
2375         (WebCore::LayerTextureUpdaterCanvas::paintContents):
2376         (WebCore::LayerTextureUpdaterBitmap::create):
2377         (WebCore::LayerTextureUpdaterBitmap::LayerTextureUpdaterBitmap):
2378         (WebCore::LayerTextureUpdaterBitmap::sampledTexelFormat):
2379         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
2380         (WebCore::LayerTextureUpdaterBitmap::updateTextureRect):
2381         (WebCore::LayerTextureUpdaterSkPicture::create):
2382         (WebCore::LayerTextureUpdaterSkPicture::LayerTextureUpdaterSkPicture):
2383         (WebCore::LayerTextureUpdaterSkPicture::~LayerTextureUpdaterSkPicture):
2384         (WebCore::LayerTextureUpdaterSkPicture::sampledTexelFormat):
2385         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
2386         (WebCore::LayerTextureUpdaterSkPicture::updateTextureRect):
2387         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h: Added.
2388         (WebCore::LayerTextureUpdaterCanvas::contentRect):
2389         (WebCore::LayerTextureUpdaterBitmap::orientation):
2390         (WebCore::LayerTextureUpdaterSkPicture::orientation):
2391         * platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.cpp: Removed.
2392         * platform/graphics/chromium/SkPictureCanvasLayerTextureUpdater.h: Removed.
2393         * platform/graphics/chromium/TiledLayerChromium.cpp:
2394         (WebCore::UpdatableTile::UpdatableTile):
2395         (WebCore::UpdatableTile::texture):
2396         (WebCore::TiledLayerChromium::updateCompositorResources):
2397         (WebCore::TiledLayerChromium::pushPropertiesTo):
2398         (WebCore::TiledLayerChromium::createTile):
2399         (WebCore::TiledLayerChromium::protectTileTextures):
2400         (WebCore::TiledLayerChromium::prepareToUpdate):
2401         * platform/graphics/chromium/cc/CCTextureUpdater.cpp:
2402         (WebCore::CCTextureUpdater::append):
2403         (WebCore::CCTextureUpdater::update):
2404         * platform/graphics/chromium/cc/CCTextureUpdater.h:
2405
2406 2011-11-15  Julien Chaffraix  <jchaffraix@webkit.org>
2407
2408         Add the needed plumbing to parse display: -webkit-inline-grid
2409         https://bugs.webkit.org/show_bug.cgi?id=72438
2410
2411         Reviewed by Tony Chang.
2412
2413         Test: fast/css-grid-layout/display-grid-set-get.html
2414
2415         Added the needed constants and plugged everything together.
2416         Again we treat display: -webkit-inline-grid like display: none
2417         for the moment.
2418
2419         * css/CSSParser.cpp:
2420         (WebCore::CSSParser::parseValue):
2421         * css/CSSPrimitiveValueMappings.h:
2422         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2423         * css/CSSValueKeywords.in:
2424         * rendering/RenderObject.cpp:
2425         (WebCore::RenderObject::createObject):
2426         * rendering/style/RenderStyleConstants.h:
2427
2428 2011-11-15  W. James MacLean  <wjmaclean@chromium.org>
2429
2430         [chromium] Move setVisibleRect() calls into calculateDrawTransformAndVisibility()
2431         https://bugs.webkit.org/show_bug.cgi?id=72162
2432
2433         Reviewed by Kenneth Russell.
2434
2435         Refactoring of existing functionality, so uses existing tests.
2436
2437         * platform/graphics/chromium/LayerRendererChromium.cpp:
2438         (WebCore::LayerRendererChromium::drawLayer):
2439         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2440         (WebCore::paintContentsIfDirty):
2441         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
2442         (WebCore::CCLayerTreeHost::paintLayerContents):
2443         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
2444         (WebCore::walkLayersAndCalculateVisibleLayerRects):
2445         (WebCore::CCLayerTreeHostCommon::calculateDrawTransformsAndVisibility):
2446
2447 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
2448
2449         Unreviewed, rolling out r100340.
2450         http://trac.webkit.org/changeset/100340
2451         https://bugs.webkit.org/show_bug.cgi?id=72448
2452
2453         Caused assertion failure in Win dbg canary. (Requested by
2454         pkasting on #webkit).
2455
2456         * platform/graphics/chromium/LayerRendererChromium.cpp:
2457         (WebCore::LayerRendererChromium::LayerRendererChromium):
2458         (WebCore::LayerRendererChromium::viewportChanged):
2459         (WebCore::LayerRendererChromium::drawLayersInternal):
2460         * platform/graphics/chromium/LayerRendererChromium.h:
2461
2462 2011-11-15  Julien Chaffraix  <jchaffraix@webkit.org>
2463
2464         Switch table indexing to unsigned
2465         https://bugs.webkit.org/show_bug.cgi?id=72083
2466
2467         Reviewed by Darin Adler.
2468
2469         No expected change in behavior.
2470
2471         All of the code is now using unsigned for indexing!
2472
2473         * rendering/FixedTableLayout.cpp:
2474         (WebCore::FixedTableLayout::layout):
2475         * rendering/RenderTable.cpp:
2476         (WebCore::RenderTable::colElement):
2477         (WebCore::RenderTable::cellAbove):
2478         * rendering/RenderTableSection.cpp:
2479         (WebCore::RenderTableSection::splitColumn):
2480         Added some ASSERTs to make sure we don't underflow. Looking at how
2481         the different variables are populated, they should not be reached.
2482
2483         * rendering/RenderTableCell.cpp:
2484         (WebCore::RenderTableCell::colSpan):
2485         (WebCore::RenderTableCell::rowSpan):
2486         Those 2 functions promotes HTMLTableCellElement's int to unsigned
2487         which should be fine as we make sure their are positive. Also HTML5
2488         makes those 2 fields "unsigned long" which goes in the same direction.
2489
2490         * rendering/AutoTableLayout.cpp:
2491         (WebCore::AutoTableLayout::layout):
2492         * rendering/RenderTableSection.cpp:
2493         (WebCore::RenderTableSection::nodeAtPoint):
2494         Rewrote a couple of reverse iterating to be able to use unsigned
2495         without overflowing.
2496
2497         * rendering/AutoTableLayout.cpp:
2498         (WebCore::AutoTableLayout::recalcColumn):
2499         (WebCore::AutoTableLayout::fullRecalc):
2500         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
2501         (WebCore::AutoTableLayout::insertSpanCell):
2502         * rendering/AutoTableLayout.h:
2503         * rendering/FixedTableLayout.cpp:
2504         (WebCore::FixedTableLayout::calcWidthArray):
2505         * rendering/RenderTable.cpp:
2506         (WebCore::RenderTable::splitColumn):
2507         (WebCore::RenderTable::appendColumn):
2508         (WebCore::RenderTable::recalcSections):
2509         * rendering/RenderTable.h:
2510         (WebCore::RenderTable::getColumnPos):
2511         (WebCore::RenderTable::spanOfEffCol):
2512         (WebCore::RenderTable::effColToCol):
2513         * rendering/RenderTableCell.cpp:
2514         (WebCore::RenderTableCell::styleOrColLogicalWidth):
2515         (WebCore::CollapsedBorders::nextBorder):
2516         * rendering/RenderTableCell.h:
2517         * rendering/RenderTableCol.cpp:
2518         (WebCore::RenderTableCol::updateFromElement):
2519         * rendering/RenderTableCol.h:
2520         (WebCore::RenderTableCol::span):
2521         (WebCore::RenderTableCol::setSpan):
2522         * rendering/RenderTableSection.cpp:
2523         (WebCore::RenderTableSection::addCell):
2524         (WebCore::RenderTableSection::setCellLogicalWidths):
2525         (WebCore::RenderTableSection::layoutRows):
2526         (WebCore::RenderTableSection::calcOuterBorderBefore):
2527         (WebCore::RenderTableSection::calcOuterBorderAfter):
2528         (WebCore::RenderTableSection::calcOuterBorderStart):
2529         (WebCore::RenderTableSection::calcOuterBorderEnd):
2530         (WebCore::RenderTableSection::paintObject):
2531         (WebCore::RenderTableSection::appendColumn):
2532         * rendering/RenderTableSection.h:
2533         (WebCore::RenderTableSection::cellAt):
2534         (WebCore::RenderTableSection::primaryCellAt):
2535         (WebCore::RenderTableSection::getBaseline):
2536         Mechanical change int -> unsigned.
2537
2538 2011-11-15  Andy Estes  <aestes@apple.com>
2539
2540         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
2541         https://bugs.webkit.org/show_bug.cgi?id=72106
2542
2543         Reviewed by Anders Carlsson.
2544
2545         Add a class that encapsulates the logic of scheduling, enabling and
2546         invalidating a run loop observer that fires before Core Animation's
2547         commit observer. Clients can subclass LayerFlushSchedulerClient and
2548         implement flushLayers(), which will be called by the observer.
2549
2550         * WebCore.exp.in:
2551         * WebCore.xcodeproj/project.pbxproj:
2552         * platform/graphics/ca/LayerFlushScheduler.cpp: Added.
2553         (WebCore::LayerFlushScheduler::suspend): Suspend scheduling by
2554         invalidating the run loop observer. Keep a count of calls to suspend()
2555         in m_suspendCount.
2556         (WebCore::LayerFlushScheduler::resume): Decrement m_suspendCount.
2557         Install the run loop observer when it reaches 0.
2558         * platform/graphics/ca/LayerFlushSchedulerClient.h: Added.
2559         (WebCore::LayerFlushSchedulerClient::~LayerFlushSchedulerClient):
2560         * platform/graphics/ca/LayerFlushScheduler.h: Added.
2561         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp: Added.
2562         (LayerFlushScheduler::LayerFlushScheduler):
2563         (LayerFlushScheduler::~LayerFlushScheduler):
2564         (LayerFlushScheduler::runLoopObserverCallback): Call flushLayers() on
2565         the LayerFlushSchedulerClient.
2566         (LayerFlushScheduler::schedule): Install the run loop observer.
2567         (LayerFlushScheduler::invalidate): Remove the run loop
2568         observer if it is installed.
2569
2570 2011-11-15  Adam Klein  <adamk@chromium.org>
2571
2572         [v8] Use throwError instead of compiling and running script in handleMaxRecursionDepthExceeded
2573         https://bugs.webkit.org/show_bug.cgi?id=72432
2574
2575         Reviewed by Adam Barth.
2576
2577         * bindings/v8/V8Proxy.cpp:
2578         (WebCore::handleMaxRecursionDepthExceeded):
2579
2580 2011-11-15  Vincent Scheib  <scheib@chromium.org>
2581
2582         Pointer Lock: Refactoring: PointerLock.idl: Dropping webkit prefix
2583         https://bugs.webkit.org/show_bug.cgi?id=72431
2584
2585         Reviewed by Adam Barth.
2586
2587         * page/PointerLock.cpp:
2588         (WebCore::PointerLock::lock):
2589         (WebCore::PointerLock::unlock):
2590         (WebCore::PointerLock::isLocked):
2591         * page/PointerLock.h:
2592         * page/PointerLock.idl:
2593
2594 2011-11-15  Nat Duca  <nduca@chromium.org>
2595
2596         [chromium] Fuse MainThread and CCThread
2597         https://bugs.webkit.org/show_bug.cgi?id=72426
2598
2599         Reviewed by James Robinson.
2600
2601         * WebCore.gypi:
2602         * platform/graphics/chromium/LayerRendererChromium.cpp:
2603         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2604         (WebCore::CCLayerTreeHost::CCLayerTreeHost):
2605         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2606         * platform/graphics/chromium/cc/CCMainThread.cpp: Removed.
2607         * platform/graphics/chromium/cc/CCMainThread.h: Removed.
2608         * platform/graphics/chromium/cc/CCMainThreadTask.h: Removed.
2609         * platform/graphics/chromium/cc/CCProxy.cpp:
2610         (WebCore::CCProxy::setMainThread):
2611         (WebCore::CCProxy::mainThread):
2612         (WebCore::CCProxy::setImplThread):
2613         (WebCore::CCProxy::implThread):
2614         (WebCore::CCProxy::isMainThread):
2615         (WebCore::CCProxy::isImplThread):
2616         (WebCore::CCProxy::~CCProxy):
2617         * platform/graphics/chromium/cc/CCProxy.h:
2618         * platform/graphics/chromium/cc/CCScopedThreadProxy.h: Renamed from Source/WebCore/platform/graphics/chromium/cc/CCScopedMainThreadProxy.h.
2619         (WebCore::CCScopedThreadProxy::create):
2620         (WebCore::CCScopedThreadProxy::postTask):
2621         (WebCore::CCScopedThreadProxy::shutdown):
2622         (WebCore::CCScopedThreadProxy::CCScopedThreadProxy):
2623         (WebCore::CCScopedThreadProxy::runTaskIfNotShutdown):
2624         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
2625         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2626         (WebCore::CCThreadProxy::CCThreadProxy):
2627         (WebCore::CCThreadProxy::compositeAndReadback):
2628         (WebCore::CCThreadProxy::finishAllRendering):
2629         (WebCore::CCThreadProxy::initializeLayerRenderer):
2630         (WebCore::CCThreadProxy::setNeedsAnimate):
2631         (WebCore::CCThreadProxy::setNeedsCommit):
2632         (WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
2633         (WebCore::CCThreadProxy::setNeedsRedraw):
2634         (WebCore::CCThreadProxy::setVisible):
2635         (WebCore::CCThreadProxy::start):
2636         (WebCore::CCThreadProxy::stop):
2637         (WebCore::CCThreadProxy::obtainBeginFrameAndCommitTaskFromCCThread):
2638         (WebCore::CCThreadProxy::createBeginFrameAndCommitTaskOnImplThread):
2639         (WebCore::CCThreadProxy::beginFrameAndCommit):
2640         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
2641         (WebCore::CCThreadProxy::initializeImplOnImplThread):
2642         * platform/graphics/chromium/cc/CCThreadProxy.h:
2643
2644 2011-11-15  Vincent Scheib  <scheib@chromium.org>
2645
2646         Pointer Lock: Refactor: MouseEvent.idl movementX/Y
2647         https://bugs.webkit.org/show_bug.cgi?id=72427
2648
2649         - [Conditional...] vs #if defined
2650         - Runtime enabled
2651         - .movementX/Y prefixed with 'webkit'
2652
2653         Reviewed by Adam Barth.
2654
2655         No new tests.
2656
2657         * bindings/generic/RuntimeEnabledFeatures.h:
2658         (WebCore::RuntimeEnabledFeatures::webkitMovementXEnabled):
2659         (WebCore::RuntimeEnabledFeatures::webkitMovementYEnabled):
2660         * dom/MouseEvent.idl:
2661         * dom/MouseRelatedEvent.h:
2662         (WebCore::MouseRelatedEvent::webkitMovementX):
2663         (WebCore::MouseRelatedEvent::webkitMovementY):
2664
2665 2011-10-28  Ojan Vafai  <ojan@chromium.org>
2666
2667         implement flex-align for flex-flow: column
2668         https://bugs.webkit.org/show_bug.cgi?id=70754
2669
2670         Reviewed by David Hyatt.
2671
2672         Tests: css3/flexbox/flex-align-column.html
2673                css3/flexbox/line-wrapping.html
2674
2675         * rendering/RenderBox.cpp:
2676         (WebCore::RenderBox::sizesToIntrinsicLogicalWidth):
2677         When flexitems are column, they should size to the intrinsic width unless flex-flow is stretch.
2678
2679         * rendering/RenderFlexibleBox.cpp:
2680         (WebCore::RenderFlexibleBox::alignChildrenBlockDirection):
2681         This was just using the wrong, non-flow-aware method.
2682
2683 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
2684
2685         Rename ReferrerPolicy to clarify its meaning
2686         https://bugs.webkit.org/show_bug.cgi?id=72420
2687
2688         Reviewed by Nate Chapin.
2689
2690         On the one hand, even if the ReferrerPolicy was set to SendReferrer, the
2691         referrer wasn't necessarily send. On the other hand, I want to use the
2692         name ReferrerPolicy when implementing the meta referrer tag.
2693
2694         No change in behavior expected so no test.
2695
2696         * html/HTMLAnchorElement.cpp:
2697         (WebCore::HTMLAnchorElement::handleClick):
2698         (WebCore::handleLinkClick):
2699         * loader/FrameLoader.cpp:
2700         (WebCore::FrameLoader::changeLocation):
2701         (WebCore::FrameLoader::urlSelected):
2702         (WebCore::FrameLoader::loadFrameRequest):
2703         * loader/FrameLoader.h:
2704         * loader/FrameLoaderTypes.h:
2705         * loader/NavigationScheduler.cpp:
2706         (WebCore::ScheduledHistoryNavigation::fire):
2707         (WebCore::ScheduledFormSubmission::fire):
2708         * page/ContextMenuController.cpp:
2709         (WebCore::openNewWindow):
2710         (WebCore::ContextMenuController::contextMenuItemSelected):
2711         * WebCore.exp.in: updated.
2712
2713 2011-11-15  Adam Klein  <adamk@chromium.org>
2714
2715         Factor out V8Proxy's max recursion depth handling code
2716         https://bugs.webkit.org/show_bug.cgi?id=72422
2717
2718         Reviewed by Nate Chapin.
2719
2720         Previously, V8Proxy used slightly different code to handle stack limit
2721         violations depending on whether they occured in runScript or
2722         callFunction. As described in http://webkit.org/b/72063, I intend to
2723         expand the usage of m_recursion when calling into script. This patch
2724         is intended to unify the existing handling code, making it easier to
2725         move elsewhere without causing unintended side-effects.
2726
2727         No tests changed, as the only change in behavior is the string passed
2728         to RangeError in the runScript case, and it's not mentioned anywhere
2729         in the LayoutTests.
2730
2731         * bindings/v8/V8Proxy.cpp:
2732         (WebCore::handleMaxRecursionDepthExceeded):
2733         (WebCore::V8Proxy::runScript): Use callFunction's factored-out code.
2734         (WebCore::V8Proxy::callFunction): Simplify and factor out code into handleMaxRecursionDepthExceeded.
2735
2736 2011-11-15  Jessie Berlin  <jberlin@apple.com>
2737
2738         NSURLRequest leak beneath ResourceRequest::setStorageSession seen on Leaks bot.
2739         https://bugs.webkit.org/show_bug.cgi?id=72419
2740
2741         Reviewed by Adam Roben.
2742
2743         Adopt the copied NSURLRequest.
2744
2745         * platform/network/mac/ResourceRequestMac.mm:
2746         (WebCore::ResourceRequest::setStorageSession):
2747
2748 2011-11-15  John Bates  <jbates@google.com>
2749
2750         Page/layer flashes after GPU-accelerated CSS transition
2751         https://bugs.webkit.org/show_bug.cgi?id=72343
2752
2753         LayerRendererChromium was resizing the window to 1x1 at initialization.
2754         In some cases, there is no drawLayers before switching back to
2755         software rendering. This left the window resized to 1x1 and the
2756         following software paints would therefore not be visible. This change
2757         moves the reshape call into drawLayers so that it will only be called
2758         if rendering will occur.
2759
2760         Reviewed by James Robinson.
2761
2762         New test: CCLayerTreeHostImplTest.reshapeNotCalledUntilDraw.
2763
2764         * platform/graphics/chromium/LayerRendererChromium.cpp:
2765         (WebCore::LayerRendererChromium::viewportChanged):
2766         (WebCore::LayerRendererChromium::doViewportChanged):
2767         (WebCore::LayerRendererChromium::drawLayersInternal):
2768         * platform/graphics/chromium/LayerRendererChromium.h:
2769
2770 2011-11-15  Julien Chaffraix  <jchaffraix@webkit.org>
2771
2772         Add the needed plumbing to parse display: -webkit-grid
2773         https://bugs.webkit.org/show_bug.cgi?id=72331
2774
2775         Reviewed by Tony Chang.
2776
2777         Test: fast/css-grid-layout/display-grid-set-get.html
2778
2779         Added parsing support for display: -webkit-grid. From a rendering perspective,
2780         the value is equivalent to display: none until we properly implement it.
2781
2782         * css/CSSParser.cpp:
2783         (WebCore::CSSParser::parseValue):
2784         * css/CSSPrimitiveValueMappings.h:
2785         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2786         * css/CSSValueKeywords.in:
2787         * rendering/style/RenderStyleConstants.h:
2788         Added the new CSS value and plumbed the parsing and style application of
2789         the new value.
2790
2791         * css/CSSPrimitiveValueMappings.h:
2792         (WebCore::CSSPrimitiveValue::operator EDisplay):
2793         Added an ASSERT here as I bumped into some non-trivial issues due to bug 72296.
2794         -wap-marquee was offsetting the new value and was wrongly casted by the CSSPrimitiveValueMapping
2795         logic outside the EDisplay range which would lead to crashes.
2796
2797         * rendering/RenderObject.cpp:
2798         (WebCore::RenderObject::createObject):
2799         Fixed the indentation to follow our coding rules.
2800
2801 2011-11-15  Vincent Scheib  <scheib@chromium.org>
2802
2803         Mouse Lock: Renaming to 'Pointer Lock': MouseLockable to PointerLock
2804         https://bugs.webkit.org/show_bug.cgi?id=72315
2805
2806         Reviewed by Dimitri Glazkov.
2807
2808         * WebCore.gypi:
2809         * page/Navigator.cpp:
2810         (WebCore::Navigator::webkitPointer):
2811         * page/Navigator.h:
2812         * page/Navigator.idl:
2813         * page/PointerLock.cpp: Renamed from Source/WebCore/page/MouseLockable.cpp.
2814         (WebCore::PointerLock::PointerLock):
2815         (WebCore::PointerLock::~PointerLock):
2816         (WebCore::PointerLock::webkitLock):
2817         (WebCore::PointerLock::webkitUnlock):
2818         (WebCore::PointerLock::webkitIsLocked):
2819         * page/PointerLock.h: Renamed from Source/WebCore/page/MouseLockable.h.
2820         (WebCore::PointerLock::create):
2821         * page/PointerLock.idl: Renamed from Source/WebCore/page/MouseLockable.idl.
2822
2823 2011-10-28  Ojan Vafai  <ojan@chromium.org>
2824
2825         Overflow and relayout are broken in the new flexboxes
2826         https://bugs.webkit.org/show_bug.cgi?id=71161
2827
2828         Reviewed by David Hyatt.
2829
2830         Tests: css3/flexbox/auto-height-dynamic.html
2831                css3/flexbox/flex-item-child-overflow-expected.html
2832                css3/flexbox/flex-item-child-overflow.html
2833
2834         * rendering/RenderFlexibleBox.cpp:
2835         (WebCore::RenderFlexibleBox::layoutBlock):
2836         -Always set the logical height to 0 to start with to ensure we don't
2837         use the height from the previous layout when we are computing the
2838         intrinsic size of the flexbox.
2839         -Call computeOverflow after computeLogicalHeight so that flex-item's children's
2840         overflow is properly rendered.
2841
2842         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
2843         -Now that we setLogicalHeight in layoutBlock, we no longer need to do it here.
2844         -Refactor flipping code. The behavior is the same, but the variable names are just
2845         more correct.
2846
2847 2011-10-28  Ojan Vafai  <ojan@chromium.org>
2848
2849         Overflow and relayout are broken in the new flexboxes
2850         https://bugs.webkit.org/show_bug.cgi?id=71161
2851
2852         Reviewed by David Hyatt.
2853
2854         Tests: css3/flexbox/auto-height-dynamic.html
2855                css3/flexbox/flex-item-child-overflow-expected.html
2856                css3/flexbox/flex-item-child-overflow.html
2857
2858         * rendering/RenderFlexibleBox.cpp:
2859         (WebCore::RenderFlexibleBox::layoutBlock):
2860         -Always set the logical height to 0 to start with to ensure we don't
2861         use the height from the previous layout when we are computing the
2862         intrinsic size of the flexbox.
2863         -Call computeOverflow after computeLogicalHeight so that flex-item's children's
2864         overflow is properly rendered.
2865
2866         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
2867         -Now that we setLogicalHeight in layoutBlock, we no longer need to do it here.
2868         -Refactor flipping code. The behavior is the same, but the variable names are just
2869         more correct.
2870
2871 2011-11-15  Nate Chapin  <japhet@chromium.org>
2872
2873         CachedResourceRequest is now the only SubresourceLoaderClient
2874         Merge CachedResourceRequest into SubresourceLoader and delete
2875         the SubresourceLoaderClient interface. A few items were moved
2876         to CachedResource instead of SubresourceLoader.
2877         https://bugs.webkit.org/show_bug.cgi?id=71149
2878
2879         Reviewed by Adam Barth.
2880
2881         * CMakeLists.txt:
2882         * GNUmakefile.list.am:
2883         * WebCore.gypi:
2884         * WebCore.pro:
2885         * WebCore.vcproj/WebCore.vcproj:
2886         * WebCore.xcodeproj/project.pbxproj:
2887         * loader/ResourceLoadScheduler.cpp:
2888         * loader/ResourceLoadScheduler.h:
2889         * loader/ResourceLoader.cpp:
2890         * loader/SubresourceLoader.cpp:
2891         (WebCore::SubresourceLoader::SubresourceLoader):
2892         (WebCore::SubresourceLoader::create):
2893         (WebCore::SubresourceLoader::init): Do work that had previously been
2894             done in SubresourceLoader::create() after the constructor.
2895         (WebCore::SubresourceLoader::willSendRequest):
2896         (WebCore::SubresourceLoader::didSendData):
2897         (WebCore::SubresourceLoader::didReceiveResponse):
2898         (WebCore::SubresourceLoader::didReceiveData):
2899         (WebCore::SubresourceLoader::didReceiveCachedMetadata):
2900         (WebCore::SubresourceLoader::didFinishLoading):
2901         (WebCore::SubresourceLoader::didFail):
2902         (WebCore::SubresourceLoader::willCancel):
2903         (WebCore::SubresourceLoader::releaseResources): Do the cleanup work that was
2904             duplicated throughout the various terminal CachedResourceRequest callbacks.
2905         * loader/SubresourceLoader.h: Fix indentation style issues.
2906         * loader/SubresourceLoaderClient.h: Removed.
2907         * loader/cache/CachedImage.cpp:
2908         * loader/cache/CachedRawResource.cpp:
2909         * loader/cache/CachedResource.cpp:
2910         (WebCore::cachedResourceTypeToTargetType):
2911         (WebCore::CachedResource::load): Do the work that had been done in
2912             CachedResourceRequest::load().
2913         (WebCore::CachedResource::finish):
2914         (WebCore::CachedResource::setResponse):
2915         (WebCore::CachedResource::stopLoading):
2916         * loader/cache/CachedResource.h:
2917         (WebCore::CachedResource::canDelete):
2918         * loader/cache/CachedResourceLoader.cpp:
2919         * loader/cache/CachedResourceRequest.cpp: Removed.
2920         * loader/cache/CachedResourceRequest.h: Removed.
2921         * loader/cf/SubresourceLoaderCF.cpp:
2922         * loader/chromium/CachedResourceRequestChromium.cpp: Removed.
2923         * loader/chromium/SubresourceLoaderChromium.cpp:
2924
2925 2011-11-15  Anders Carlsson  <andersca@apple.com>
2926
2927         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
2928         https://bugs.webkit.org/show_bug.cgi?id=72397
2929
2930         Reviewed by Dan Bernstein.
2931
2932         screenToWindow and windowToScreen already use root view coordinates everywhere, with the
2933         exception of Mac WebKit1 which doesn't even implement the functions.
2934
2935         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
2936         (-[WebAccessibilityObjectWrapper position]):
2937         * loader/EmptyClients.h:
2938         * page/Chrome.cpp:
2939         (WebCore::Chrome::screenToRootView):
2940         (WebCore::Chrome::rootViewToScreen):
2941         * page/Chrome.h:
2942         * page/ChromeClient.h:
2943         * platform/HostWindow.h:
2944         * platform/ScrollView.cpp:
2945         (WebCore::ScrollView::contentsToScreen):
2946         (WebCore::ScrollView::screenToContents):
2947         * platform/chromium/PopupContainer.cpp:
2948         (WebCore::PopupContainer::layoutAndCalculateWidgetRect):
2949         (WebCore::PopupContainer::refresh):
2950
2951 2011-11-15  Jeff Timanus  <twiz@chromium.org>
2952
2953         Patch removing duplicated code in the setup of the DrawingBuffer used
2954         to host the back-buffer for WebGL contents.
2955         https://bugs.webkit.org/show_bug.cgi?id=72327
2956
2957         Reviewed by Julien Chaffraix.
2958
2959         * html/canvas/WebGLRenderingContext.cpp:
2960         (WebCore::WebGLRenderingContext::copyTexImage2D):
2961         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
2962         (WebCore::WebGLRenderingContext::readPixels):
2963
2964 2011-11-15  Eugene Nalimov  <enal@google.com>
2965
2966         Event listener for active DOM object that is also DOM node can be garbage collected prematurely.
2967         https://bugs.webkit.org/show_bug.cgi?id=70421 
2968
2969         Reviewed by Adam Barth.
2970
2971         Problem demonstrated itself when HTMLAudioElement was changed to become active DOM object.
2972         Before that there were no DOM objects that simultaneously were nodes and active objects.
2973         DOM object could be held in one of 3 maps -- node map, active objects map, and all other
2974         objects map, and HTMLAudioElement should be in 2 maps simultaneously. When it was in the
2975         active DOM objects map only, its event listener could be garbage collected, because special
2976         code that groups listeners with wrappers could handle only wrappers for objects in the node
2977         map. If we put HTMLAudioElement into nodes map, it would not be active DOM node, and can be
2978         garbage collected prematurely itself (see https://bugs.webkit.org/show_bug.cgi?id=66878).
2979         Fix is to introduce 4th map -- active nodes map, and change the code accordingly.
2980
2981         Test: media/audio-garbage-collect.html
2982
2983         * bindings/scripts/CodeGeneratorV8.pm:
2984         (GenerateNamedConstructorCallback):
2985         (GetDomMapFunction):
2986         * bindings/v8/DOMDataStore.cpp:
2987         (WebCore::DOMDataStore::DOMDataStore):
2988         (WebCore::DOMDataStore::getDOMWrapperMap):
2989         (WebCore::DOMDataStore::weakNodeCallback):
2990         * bindings/v8/DOMDataStore.h:
2991         (WebCore::DOMDataStore::activeDomNodeMap):
2992         * bindings/v8/ScopedDOMDataStore.cpp:
2993         (WebCore::ScopedDOMDataStore::ScopedDOMDataStore):
2994         (WebCore::ScopedDOMDataStore::~ScopedDOMDataStore):
2995         * bindings/v8/StaticDOMDataStore.cpp:
2996         (WebCore::StaticDOMDataStore::StaticDOMDataStore):
2997         * bindings/v8/StaticDOMDataStore.h:
2998         * bindings/v8/V8DOMMap.cpp:
2999         (WebCore::getActiveDOMNodeMap):
3000         (WebCore::removeAllDOMObjects):
3001         (WebCore::visitActiveDOMNodes):
3002         * bindings/v8/V8DOMMap.h:
3003         * bindings/v8/V8DOMWrapper.cpp:
3004         (WebCore::V8DOMWrapper::setJSWrapperForDOMNode):
3005         (WebCore::V8DOMWrapper::getWrapperSlow):
3006         * bindings/v8/V8GCController.cpp:
3007         (WebCore::GCPrologueSpecialCase):
3008         (WebCore::void):
3009         (WebCore::Node):
3010         (WebCore::GCPrologueVisitor::visitDOMWrapper):
3011         (WebCore::V8GCController::gcPrologue):
3012         (WebCore::GCEpilogueHelper::GCEpilogueSpecialCase):
3013         (WebCore::GCEpilogueVisitor::visitDOMWrapper):
3014         (WebCore::V8GCController::gcEpilogue):
3015         * dom/Node.h:
3016         (WebCore::Node::isActiveNode):
3017         * html/HTMLAudioElement.h:
3018         (WebCore::HTMLAudioElement::isActiveNode):
3019
3020 2011-11-15  David Kilzer  <ddkilzer@apple.com>
3021
3022         Remove useless const modifier from KURL::init
3023         <http://webkit.org/b/72387>
3024
3025         Reviewed by Darin Adler.
3026
3027         * platform/KURL.cpp:
3028         (WebCore::KURL::init): Remove useless const.
3029
3030 2011-11-14  Anders Carlsson  <andersca@apple.com>
3031
3032         HostWindow invalidation functions should use root view coordinates
3033         https://bugs.webkit.org/show_bug.cgi?id=72338
3034
3035         Reviewed by Dan Bernstein.
3036
3037         Rename invalidateWindow to invalidateRootView, and invalidateContentsAndWindow
3038         to invalidateContentsAndRootView. Make sure that the rects passed to the renamed functions
3039         are in root view coordinates by changing contentsToWindow calls to contentsToRootView.
3040         
3041         In practice this doesn't matter because for all platforms except Mac WebKit1, root view coordinates
3042         and window coordinates are equivalent, and Mac WebKit1 doesn't use these invalidation functions.
3043
3044         * loader/EmptyClients.h:
3045         * page/Chrome.cpp:
3046         (WebCore::Chrome::invalidateRootView):
3047         (WebCore::Chrome::invalidateContentsAndRootView):
3048         * page/Chrome.h:
3049         * page/ChromeClient.h:
3050         * page/Frame.cpp:
3051         (WebCore::Frame::tiledBackingStorePaintEnd):
3052         * page/FrameView.cpp:
3053         (WebCore::FrameView::invalidateRect):
3054         (WebCore::FrameView::scrollContentsFastPath):
3055         * platform/HostWindow.h:
3056         * platform/ScrollView.cpp:
3057         (WebCore::ScrollView::rectToCopyOnScroll):
3058         (WebCore::ScrollView::scrollContents):
3059         (WebCore::ScrollView::wheelEvent):
3060         * platform/chromium/FramelessScrollView.cpp:
3061         (WebCore::FramelessScrollView::invalidateRect):
3062         * svg/graphics/SVGImage.cpp:
3063         (WebCore::SVGImageChromeClient::invalidateContentsAndRootView):
3064
3065 2011-11-15  Philip Rogers  <pdr@google.com>
3066
3067         Implement maxWidth for fillText and strokeText, fixing the canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface.html test.
3068         https://bugs.webkit.org/show_bug.cgi?id=61528
3069
3070         Reviewed by Stephen White.
3071
3072         Tests: fast/canvas/2d.text.draw.fill.maxWidth.gradient.html
3073                fast/canvas/2d.text.draw.fill.maxWidth.negative.html
3074                fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html
3075                fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html
3076
3077         * html/canvas/CanvasRenderingContext2D.cpp:
3078         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3079
3080 2011-11-15  Carlos Garcia Campos  <cgarcia@igalia.com>
3081
3082         [GTK] Implement download support in WebKit2
3083         https://bugs.webkit.org/show_bug.cgi?id=72258
3084
3085         Reviewed by Martin Robinson.
3086
3087         Add common download errors to ErrorsGtk.
3088
3089         * platform/gtk/ErrorsGtk.cpp:
3090         (WebCore::downloadNetworkError):
3091         (WebCore::downloadCancelledByUserError):
3092         (WebCore::downloadDestinationError):
3093         * platform/gtk/ErrorsGtk.h:
3094
3095 2011-11-15  Cary Clark  <caryclark@google.com>
3096
3097         [chromium-mac] Enable vertical text using Skia
3098         https://bugs.webkit.org/show_bug.cgi?id=72137
3099
3100         Use Skia to draw vertical text. This is much
3101         faster and has higher fidelity than the old method
3102         of drawing text on a path.
3103
3104         The graphics context passed to Skia has been
3105         rotated 90 degrees but the character advances
3106         have not, so it is necessary to unrotate the canvas,
3107         and re-rotate the positions.
3108
3109         This generates correct output (or, at least,
3110         consistent with Chromium CG on Mac) for all vertical
3111         text tests, one of which is mentioned below.
3112         
3113         Reviewed by Stephen White.
3114
3115         Test: fast/writing-mode/text-orientation-basic.html
3116
3117         * platform/graphics/skia/FontSkia.cpp:
3118         (WebCore::setupPaint):
3119         (WebCore::Font::drawGlyphs):
3120
3121 2011-11-15  Philip Rogers  <pdr@google.com>
3122
3123         Fix SVG hit testing when padding is present
3124         https://bugs.webkit.org/show_bug.cgi?id=37325
3125
3126         Reviewed by Nikolas Zimmermann.
3127
3128         Test: svg/hittest/svg-padding.xhtml
3129
3130         * rendering/svg/RenderSVGRoot.cpp:
3131         (WebCore::RenderSVGRoot::nodeAtPoint):
3132
3133 2011-11-15  Pavel Feldman  <pfeldman@google.com>
3134
3135         Web Inspector: move generic code from DevTools.js into the WebCore.
3136         https://bugs.webkit.org/show_bug.cgi?id=72377
3137
3138         re-landing r100269.
3139
3140         Reviewed by Yury Semikhatsky.
3141
3142         * English.lproj/localizedStrings.js:
3143         * inspector/front-end/InspectorFrontendHostStub.js:
3144         (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
3145         * inspector/front-end/ProfilesPanel.js:
3146         * inspector/front-end/Resource.js:
3147         * inspector/front-end/Settings.js:
3148         * inspector/front-end/UIUtils.js:
3149         (WebInspector.setToolbarColors):
3150         (WebInspector.resetToolbarColors):
3151         * inspector/front-end/inspector.js:
3152
3153 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3154
3155         Unreviewed, rolling out r100269.
3156         http://trac.webkit.org/changeset/100269
3157         https://bugs.webkit.org/show_bug.cgi?id=72383
3158
3159         "Broke dozens of tests due to exception in loadingFinished"
3160         (Requested by tonyg-cr on #webkit).
3161
3162         * English.lproj/localizedStrings.js:
3163         * inspector/front-end/InspectorFrontendHostStub.js:
3164         (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
3165         * inspector/front-end/ProfilesPanel.js:
3166         * inspector/front-end/Resource.js:
3167         * inspector/front-end/Settings.js:
3168         * inspector/front-end/UIUtils.js:
3169         * inspector/front-end/inspector.js:
3170
3171 2011-11-15  Alexander Pavlov  <apavlov@chromium.org>
3172
3173         font property does not show up as "shorthand" in inspector
3174         https://bugs.webkit.org/show_bug.cgi?id=15598
3175
3176         Reviewed by Nikolas Zimmermann.
3177
3178         The "font" CSS property is turned into a real shorthand, as its longhands used to float around
3179         in the resulting style declaration without any reference to their underlying "font" property.
3180
3181         Test: fast/css/font-shorthand.html
3182
3183         * css/CSSMutableStyleDeclaration.cpp:
3184         (WebCore::CSSMutableStyleDeclaration::getPropertyValue): Extracted the "font" value building into fontValue().
3185         (WebCore::CSSMutableStyleDeclaration::appendFontLonghandValueIfExplicit): Added
3186         (WebCore::CSSMutableStyleDeclaration::fontValue): Build the "font" value from longhands.
3187         * css/CSSMutableStyleDeclaration.h:
3188         * css/CSSParser.cpp:
3189         (WebCore::CSSParser::addProperty): Added optional "implicit" parameter.
3190         (WebCore::CSSParser::parseFont): Build respective longhands instead of the shorthand "font" property.
3191         * css/CSSParser.h: Added optional "implicit" parameter to addProperty().
3192         * css/CSSPropertyLonghand.cpp:
3193         (WebCore::initShorthandMap): Added "font" shorthand map entry.
3194         * css/CSSStyleSelector.cpp:
3195         (WebCore::CSSStyleSelector::applyPropertyToStyle): Separated the property application from the instance setup.
3196         (WebCore::CSSStyleSelector::applyPropertyToCurrentStyle): Added.
3197         * css/CSSStyleSelector.h: Made updateFont() public.
3198         * css/FontValue.cpp:
3199         (WebCore::FontValue::customCssText): Made use of StringBuilder.
3200         * html/canvas/CanvasRenderingContext2D.cpp:
3201         (WebCore::CanvasRenderingContext2D::setFont): Apply "font" longhands rather than the (non-existent) "font" property.
3202         * inspector/front-end/StylesSidebarPane.js:
3203         (WebInspector.StylesSidebarPane.prototype._markUsedProperties): Removed a workaround for "font" not being a shorthand.
3204         * page/animation/AnimationBase.cpp:
3205         (WebCore::addShorthandProperties): Removed a workaround for "font" not being a shorthand.
3206
3207 2011-11-15  Pierre Rossi  <pierre.rossi@gmail.com>
3208
3209         [Qt] Clean up the remaining duplicate code after the RenderThemeQt refactoring.
3210         https://bugs.webkit.org/show_bug.cgi?id=72262
3211
3212         Reviewed by Antonio Gomes.
3213
3214         No new tests needed, this is purely cosmetic.
3215
3216         * platform/qt/RenderThemeQStyle.cpp:
3217         (WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
3218         * platform/qt/RenderThemeQStyle.h:
3219         * platform/qt/RenderThemeQt.cpp:
3220         (WebCore::RenderThemeQt::adjustMenuListButtonStyle): remove the call to resetBorderRadius()
3221         since the mobile theme actually didn't do this.
3222         * platform/qt/RenderThemeQtMobile.cpp:
3223         (WebCore::RenderThemeQtMobile::adjustMenuListStyle):
3224
3225 2011-11-15  Pavel Feldman  <pfeldman@google.com>
3226
3227         Web Inspector: move generic code from DevTools.js into the WebCore.
3228         https://bugs.webkit.org/show_bug.cgi?id=72377
3229
3230         This includes support for themed toolbar, remote debugging routines,
3231         removes a couple of obsolete overrides from the DevTools.js
3232
3233         Reviewed by Yury Semikhatsky.
3234
3235         * English.lproj/localizedStrings.js:
3236         * inspector/front-end/InspectorFrontendHostStub.js:
3237         (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
3238         * inspector/front-end/ProfilesPanel.js:
3239         * inspector/front-end/Resource.js:
3240         * inspector/front-end/Settings.js:
3241         * inspector/front-end/UIUtils.js:
3242         (WebInspector.setToolbarColors):
3243         (WebInspector.resetToolbarColors):
3244         * inspector/front-end/inspector.js:
3245
3246 2011-11-15  Simon Hausmann  <simon.hausmann@nokia.com>
3247
3248         [Qt] Centralize hide_symbols and ensure all libs are built with symbol visibility & bsymbolic_functions
3249
3250         Reviewed by Tor Arne Vestbø.
3251
3252         * Target.pri: Eliminate duplicated symbol stuff that lives now in default_post.prf.
3253
3254 2011-11-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3255
3256         Unreviewed, rolling out r100213.
3257         http://trac.webkit.org/changeset/100213
3258         https://bugs.webkit.org/show_bug.cgi?id=72371
3259
3260         "Breaks test_shell_tests" (Requested by tonyg-cr on #webkit).
3261
3262         * page/SecurityOrigin.cpp:
3263         (WebCore::SecurityOrigin::SecurityOrigin):
3264         * platform/SchemeRegistry.cpp:
3265         (WebCore::schemesWithUniqueOrigins):
3266
3267 2011-11-15  Alpha Lam  <hclam@chromium.org>
3268
3269         [chromium] scroll deltas are cleared during commit to the main thread
3270         https://bugs.webkit.org/show_bug.cgi?id=71916
3271
3272         Reviewed by James Robinson.
3273
3274         Patch is covered by unit test.
3275
3276         Add a member m_sentScrollDelta to CCLayerImpl to keep track of the scroll delta being
3277         sent to the main thread during commit. This gives a simpler approach to keep tracking of a
3278         layer's scroll delta in impl thread.
3279
3280         * platform/graphics/chromium/LayerChromium.h:
3281         (WebCore::LayerChromium::sentScrollDelta):
3282         * platform/graphics/chromium/cc/CCLayerImpl.h:
3283         (WebCore::CCLayerImpl::sentScrollDelta):
3284         (WebCore::CCLayerImpl::setSentScrollDelta):
3285         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3286         (WebCore::CCLayerTreeHostImpl::processScrollDeltas):
3287         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
3288
3289 2011-11-15  Simon Hausmann  <simon.hausmann@nokia.com>
3290
3291         [Qt] REGRESSION(100123): It made inspector tests crash
3292         https://bugs.webkit.org/show_bug.cgi?id=72274
3293
3294         Reviewed by Tor Arne Vestbø.
3295
3296         * platform/qt/RenderThemeQStyle.h: Remove uninitialized and duplicated
3297         m_page member that should really come from RenderThemeQt.
3298
3299 2011-11-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3300
3301         Unreviewed. Fix build breaks when EFL port is built.
3302
3303         * CMakeLists.txt:
3304         * UseJSC.cmake:
3305
3306 2011-11-15  Noel Gordon  <noel.gordon@gmail.com>
3307
3308         Make ImageFrame member getAddr() public
3309         https://bugs.webkit.org/show_bug.cgi?id=72321
3310
3311         Reviewed by Adam Barth.
3312
3313         Make ImageFrame member getAddr() public to allow ImageFrame users access to the
3314         underlying frame pixels if needed. Image decoders, for example, could with care
3315         use this service to write decoded pixels direct to the ImageFrame pixel buffer,
3316         avoiding intermeadiate data copies from temporary decoded pixel row buffers and
3317         the decoding performance loss that that entails.
3318
3319         No new tests, refactoring only.
3320
3321         * platform/image-decoders/ImageDecoder.h:
3322         (WebCore::ImageFrame::getAddr):
3323
3324 2011-11-14  Alexander Pavlov  <apavlov@chromium.org>
3325
3326         Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
3327         https://bugs.webkit.org/show_bug.cgi?id=72261
3328
3329         Reviewed by Pavel Feldman.
3330
3331         Test: inspector/styles/svg-style.xhtml
3332
3333         * inspector/InspectorStyleSheet.cpp:
3334         (WebCore::InspectorStyleSheet::inlineStyleSheetText):
3335
3336 2011-11-15  Kent Tamura  <tkent@chromium.org>
3337
3338         [V8] Fix incorrect handling of JavaScript properties in DOMStringMap
3339         https://bugs.webkit.org/show_bug.cgi?id=53578
3340
3341         Reviewed by Adam Barth.
3342
3343         Follows a JSC behavior change by r96893.
3344
3345         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
3346         (WebCore::V8DOMStringMap::namedPropertyGetter):
3347         Propagate to the JavaScript object if the DOMStringMap object
3348         doesn't have the requested item.
3349         (WebCore::V8DOMStringMap::namedPropertyDeleter): ditto.
3350         (WebCore::V8DOMStringMap::namedPropertySetter):
3351         Try to set a property to only a DOMStringMap object.
3352
3353 2011-11-14  Pavel Feldman  <pfeldman@google.com>
3354
3355         Web Inspector: Command line $x fails for 3 of 4 types of XPath query
3356         https://bugs.webkit.org/show_bug.cgi?id=72276
3357
3358         Reviewed by Timothy Hatcher.
3359
3360         Test: inspector/console/console-xpath.html
3361
3362         * inspector/InjectedScriptSource.js:
3363         (.):
3364
3365 2011-11-14  Ryosuke Niwa  <rniwa@webkit.org>
3366
3367         Fix the change log entry for r59190.
3368
3369         * ChangeLog-2010-05-24:
3370
3371 2011-11-14  Dmitry Lomov  <dslomov@google.com>
3372         
3373         [V8][Chromium]Serialize dense arrays densly
3374         https://bugs.webkit.org/show_bug.cgi?id=72198
3375         This patch ensures that:
3376         - Dense arrays are serialized densly, and not as name-value pairs
3377         - Sparse arrays are allocated as sparse on deserialization.
3378         The criteria to choose whether to serialize densly or sparsely is the size
3379         of a resulting serialized stream.
3380
3381         Reviewed by David Levin.
3382
3383         Test: fast/dom/Window/window-postmessage-arrays.html
3384
3385         * bindings/v8/SerializedScriptValue.cpp:
3386         (WebCore::V8ObjectMap::Writer::writeDenseArray):
3387         (WebCore::V8ObjectMap::Writer::writeGenerateFreshSparseArray):
3388         (WebCore::V8ObjectMap::Writer::writeGenerateFreshDenseArray):
3389         (WebCore::V8ObjectMap::Serializer::writeDenseArray):
3390         (WebCore::V8ObjectMap::Serializer::AbstractObjectState::execDepth):
3391         (WebCore::V8ObjectMap::Serializer::AbstractObjectState::serializeProperties):
3392         (WebCore::V8ObjectMap::Serializer::ObjectState::advance):
3393         (WebCore::V8ObjectMap::Serializer::DenseArrayState::DenseArrayState):
3394         (WebCore::V8ObjectMap::Serializer::DenseArrayState::advance):
3395         (WebCore::V8ObjectMap::Serializer::DenseArrayState::objectDone):
3396         (WebCore::V8ObjectMap::Serializer::SparseArrayState::SparseArrayState):
3397         (WebCore::V8ObjectMap::Serializer::SparseArrayState::advance):
3398         (WebCore::V8ObjectMap::Serializer::serializeDensely):
3399         (WebCore::V8ObjectMap::Serializer::startArrayState):
3400         (WebCore::V8ObjectMap::Serializer::startObjectState):
3401         (WebCore::V8ObjectMap::Serializer::doSerialize):
3402         (WebCore::V8ObjectMap::Reader::read):
3403         (WebCore::V8ObjectMap::Deserializer::newSparseArray):
3404         (WebCore::V8ObjectMap::Deserializer::completeSparseArray):
3405         (WebCore::V8ObjectMap::Deserializer::completeDenseArray):
3406
3407 2011-11-14  Alexandre Elias  <aelias@google.com>
3408
3409         [chromium] Fix scaleDelta zoom-out visibility rect bug
3410         https://bugs.webkit.org/show_bug.cgi?id=72208
3411
3412         Since the scroll is no longer applied at the top layer of the layer
3413         tree, the scaleDelta transformation needs to be moved down to the
3414         same level.
3415
3416         Also fix zoomAnimator to be applied the same way.  I removed zoom
3417         animator layout tests, as they aren't testing the actual impl-side
3418         codepath, and are hard to continue supporting -- we should cover zoom
3419         features with unit tests in the future.
3420
3421         Reviewed by James Robinson.
3422
3423         No new tests (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)
3424
3425         * platform/graphics/chromium/LayerChromium.h:
3426         (WebCore::LayerChromium::scaleDelta):
3427         * platform/graphics/chromium/LayerRendererChromium.cpp:
3428         (WebCore::LayerRendererChromium::drawLayersInternal):
3429         * platform/graphics/chromium/LayerRendererChromium.h:
3430         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3431         (WebCore::CCLayerImpl::CCLayerImpl):
3432         (WebCore::CCLayerImpl::setScaleDelta):
3433         * platform/graphics/chromium/cc/CCLayerImpl.h:
3434         (WebCore::CCLayerImpl::scaleDelta):
3435         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
3436         (WebCore::calculateDrawTransformsAndVisibilityInternal):
3437         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3438         (WebCore::CCLayerTreeHostImpl::setScaleDelta):
3439         (WebCore::CCLayerTreeHostImpl::setZoomAnimatorTransform):
3440
3441 2011-11-14  Chris Fleizach  <cfleizach@apple.com>
3442
3443         WebProcess crashes when trying to display your "uploaded videos" page on Facebook
3444         https://bugs.webkit.org/show_bug.cgi?id=72334
3445
3446         Reviewed by Beth Dakin.
3447
3448         Protect against documents without frames.
3449
3450         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
3451         (-[WebAccessibilityObjectWrapper remoteAccessibilityParentObject]):
3452
3453 2011-11-14  Oliver Hunt  <oliver@apple.com>
3454
3455         More V8 build fixes.
3456
3457         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
3458         (WebCore::setWebGLArrayHelper):
3459
3460 2011-11-14  Oliver Hunt  <oliver@apple.com>
3461
3462         Fix V8 build again.
3463
3464         * bindings/scripts/CodeGeneratorV8.pm:
3465         * bindings/scripts/test/V8/V8Float64Array.cpp:
3466         (WTF::Float64Array::neuterBinding):
3467
3468 2011-11-14  Oliver Hunt  <oliver@apple.com>
3469
3470         Fix V8 build.
3471
3472         * bindings/scripts/CodeGeneratorV8.pm:
3473         * bindings/scripts/test/V8/V8Float64Array.cpp:
3474         (WTF::Float64Array::neuterBinding):
3475
3476 2011-11-14  Oliver Hunt  <oliver@apple.com>
3477
3478         Start migrating typed array impl types to WTF
3479         https://bugs.webkit.org/show_bug.cgi?id=72336
3480
3481         Reviewed by Geoffrey Garen.
3482
3483         Move typed arrays from WebCore namespace to WTF, and
3484         start reducing dependencies on WebCore types.
3485
3486         * bindings/js/JSArrayBufferViewHelper.h:
3487         (WebCore::setWebGLArrayHelper):
3488         * bindings/scripts/CodeGeneratorJS.pm:
3489         (IsTypedArrayType):
3490         (AddClassForwardIfNeeded):
3491         (GenerateImplementation):
3492         * bindings/scripts/CodeGeneratorV8.pm:
3493         (IsTypedArrayType):
3494         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Added.
3495         (WebDOMFloat64Array::WebDOMFloat64Array):
3496         (WebDOMFloat64Array::impl):
3497         (toWebCore):
3498         (toWebKit):
3499         * bindings/scripts/test/CPP/WebDOMFloat64Array.h: Added.
3500         (WebDOMFloat64Array::~WebDOMFloat64Array):
3501         * bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp: Added.
3502         (WebKit::kit):
3503         (WebKit::core):
3504         (webkit_dom_float64array_finalize):
3505         (webkit_dom_float64array_set_property):
3506         (webkit_dom_float64array_get_property):
3507         (webkit_dom_float64array_constructed):
3508         (webkit_dom_float64array_class_init):
3509         (webkit_dom_float64array_init):
3510         (WebKit::wrapFloat64Array):
3511         * bindings/scripts/test/GObject/WebKitDOMFloat64Array.h: Added.
3512         * bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h: Added.
3513         * bindings/scripts/test/JS/JSFloat64Array.cpp: Added.
3514         (WebCore::JSFloat64ArrayConstructor::JSFloat64ArrayConstructor):
3515         (WebCore::JSFloat64ArrayConstructor::finishCreation):
3516         (WebCore::JSFloat64ArrayConstructor::getOwnPropertySlot):
3517         (WebCore::JSFloat64ArrayConstructor::getOwnPropertyDescriptor):
3518         (WebCore::JSFloat64ArrayConstructor::getConstructData):
3519         (WebCore::getJSFloat64ArrayPrototypeTable):
3520         (WebCore::JSFloat64ArrayPrototype::self):
3521         (WebCore::getJSFloat64ArrayTable):
3522         (WebCore::JSFloat64Array::JSFloat64Array):
3523         (WebCore::JSFloat64Array::finishCreation):
3524         (WebCore::JSFloat64Array::createPrototype):
3525         (WebCore::JSFloat64Array::getOwnPropertySlot):
3526         (WebCore::JSFloat64Array::getOwnPropertyDescriptor):
3527         (WebCore::JSFloat64Array::getOwnPropertySlotByIndex):
3528         (WebCore::jsFloat64ArrayConstructor):
3529         (WebCore::JSFloat64Array::put):
3530         (WebCore::JSFloat64Array::putByIndex):
3531         (WebCore::JSFloat64Array::getOwnPropertyNames):
3532         (WebCore::JSFloat64Array::getConstructor):
3533         (WebCore::JSFloat64Array::getByIndex):
3534         (WebCore::toFloat64Array):
3535         (WTF::Float64Array::neuterBinding):
3536         * bindings/scripts/test/JS/JSFloat64Array.h: Added.
3537         (WebCore::JSFloat64Array::create):
3538         (WebCore::JSFloat64Array::createStructure):
3539         (WebCore::JSFloat64Array::impl):
3540         (WebCore::JSFloat64ArrayPrototype::create):
3541         (WebCore::JSFloat64ArrayPrototype::createStructure):
3542         (WebCore::JSFloat64ArrayPrototype::JSFloat64ArrayPrototype):
3543         (WebCore::JSFloat64ArrayConstructor::create):
3544         (WebCore::JSFloat64ArrayConstructor::createStructure):
3545         * bindings/scripts/test/ObjC/DOMFloat64Array.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
3546         * bindings/scripts/test/ObjC/DOMFloat64Array.mm: Copied from Source/WebCore/html/canvas/Float32Array.cpp.
3547         (core):
3548         (kit):
3549         * bindings/scripts/test/ObjC/DOMFloat64ArrayInternal.h: Copied from Source/WebCore/html/canvas/Int16Array.cpp.
3550         * bindings/scripts/test/TestTypedArray.idl: Copied from Source/WebCore/html/canvas/Float64Array.cpp.
3551         * bindings/scripts/test/V8/V8Float64Array.cpp: Added.
3552         (WebCore::Float64ArrayInternal::V8_USE):
3553         (WebCore::ConfigureV8Float64ArrayTemplate):
3554         (WebCore::V8Float64Array::GetRawTemplate):
3555         (WebCore::V8Float64Array::GetTemplate):
3556         (WebCore::V8Float64Array::HasInstance):
3557         (WebCore::V8Float64Array::wrapSlow):
3558         (WTF::Float64Array::neuterBinding):
3559         (WebCore::V8Float64Array::derefObject):
3560         * bindings/scripts/test/V8/V8Float64Array.h: Added.
3561         (WebCore::V8Float64Array::toNative):
3562         (WebCore::V8Float64Array::existingWrapper):
3563         (WebCore::V8Float64Array::wrap):
3564         (WebCore::toV8):
3565         * fileapi/FileReader.h:
3566         * fileapi/FileReaderLoader.h:
3567         * fileapi/FileReaderSync.h:
3568         * fileapi/WebKitBlobBuilder.h:
3569         * html/HTMLMediaElement.h:
3570         * html/canvas/ArrayBuffer.cpp:
3571         * html/canvas/ArrayBuffer.h:
3572         * html/canvas/ArrayBufferView.cpp:
3573         (WTF::ArrayBufferView::setImpl):
3574         (WTF::ArrayBufferView::setRangeImpl):
3575         (WTF::ArrayBufferView::zeroRangeImpl):
3576         (WTF::ArrayBufferView::neuter):
3577         * html/canvas/ArrayBufferView.h:
3578         * html/canvas/Float32Array.cpp:
3579         * html/canvas/Float32Array.h:
3580         (WTF::Float32Array::set):
3581         * html/canvas/Float64Array.cpp:
3582         * html/canvas/Float64Array.h:
3583         (WTF::Float64Array::set):
3584         * html/canvas/Int16Array.cpp:
3585         * html/canvas/Int16Array.h:
3586         (WTF::Int16Array::set):
3587         * html/canvas/Int32Array.cpp:
3588         * html/canvas/Int32Array.h:
3589         (WTF::Int32Array::set):
3590         * html/canvas/Int8Array.cpp:
3591         * html/canvas/Int8Array.h:
3592         (WTF::Int8Array::set):
3593         * html/canvas/IntegralTypedArrayBase.h:
3594         * html/canvas/TypedArrayBase.h:
3595         (WTF::TypedArrayBase::set):
3596         (WTF::TypedArrayBase::setRange):
3597         (WTF::TypedArrayBase::zeroRange):
3598         * html/canvas/Uint16Array.cpp:
3599         * html/canvas/Uint16Array.h:
3600         (WTF::Uint16Array::set):
3601         * html/canvas/Uint32Array.cpp:
3602         * html/canvas/Uint32Array.h:
3603         (WTF::Uint32Array::set):
3604         * html/canvas/Uint8Array.cpp:
3605         * html/canvas/Uint8Array.h:
3606         (WTF::Uint8Array::set):
3607         * html/canvas/WebGLBuffer.h:
3608         * page/Crypto.h:
3609         * webaudio/AsyncAudioDecoder.h:
3610         * webaudio/AudioBuffer.cpp:
3611         (WebCore::AudioBuffer::AudioBuffer):
3612         (WebCore::AudioBuffer::zero):
3613         * webaudio/AudioContext.h:
3614         * webaudio/JavaScriptAudioNode.h:
3615         * webaudio/RealtimeAnalyser.h:
3616         * webaudio/RealtimeAnalyserNode.h:
3617         * webaudio/WaveShaperNode.h:
3618         * websockets/ThreadableWebSocketChannel.h:
3619         * websockets/WebSocket.h:
3620         * websockets/WebSocketChannel.h:
3621         * xml/XMLHttpRequest.h:
3622
3623 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
3624
3625         Add --css-grid-layout to build-webkit and the build systems
3626         https://bugs.webkit.org/show_bug.cgi?id=72320
3627
3628         Reviewed by Ojan Vafai.
3629
3630         * Configurations/FeatureDefines.xcconfig:
3631
3632 2011-11-14  Daniel Bates  <dbates@rim.com>
3633
3634         Remove unnecessary #include SVGResourcesCache.h in SVGDocumentExtensions.h; use forward declaration
3635         https://bugs.webkit.org/show_bug.cgi?id=72335
3636
3637         Reviewed by Eric Seidel.
3638
3639         It's sufficient to forward declare SVGResourcesCache in SVGDocumentExtensions.h and #include SVGResourcesCache.h
3640         in SVGDocumentExtensions.cpp. This will reduce the number of files we need to re-compile after the file
3641         SVGResourcesCache.h has been modified. Currently we #include SVGResourcesCache.h in SVGDocumentExtensions.h.
3642
3643         * rendering/svg/RenderSVGBlock.cpp: Include SVGResourcesCache.h.
3644         * rendering/svg/RenderSVGContainer.cpp: Ditto.
3645         * rendering/svg/RenderSVGForeignObject.cpp: Ditto.
3646         * rendering/svg/RenderSVGImage.cpp: Ditto.
3647         * rendering/svg/RenderSVGInline.cpp: Ditto.
3648         * rendering/svg/RenderSVGModelObject.cpp: Ditto.
3649         * rendering/svg/RenderSVGPath.cpp: Ditto.
3650         * rendering/svg/RenderSVGResource.cpp: Ditto.
3651         * rendering/svg/RenderSVGResourceClipper.cpp: Ditto.
3652         * rendering/svg/RenderSVGResourceContainer.cpp: Ditto.
3653         * rendering/svg/RenderSVGRoot.cpp: Ditto.
3654         * rendering/svg/RenderSVGText.cpp: Ditto.
3655         * rendering/svg/SVGInlineTextBox.cpp: Ditto.
3656         * rendering/svg/SVGRenderSupport.cpp: Ditto.
3657         * svg/SVGDocumentExtensions.cpp: Ditto.
3658         * svg/SVGDocumentExtensions.h: Forward declare SVGResourcesCache.
3659
3660 2011-11-14  Rafael Weinstein  <rafaelw@chromium.org>
3661
3662         [MutationObservers] Add histogram collection for usage of DOM Mutation Events
3663         https://bugs.webkit.org/show_bug.cgi?id=72316
3664
3665         Reviewed by Ryosuke Niwa.
3666
3667         This patch adds six calls in ~Document() which simply pipe-out to the embedder
3668         the (already-collected) bits of whether varous DOM Mutation Events were registered
3669         on the document.
3670
3671         No tests needed. No functional changes.
3672
3673         * dom/Document.cpp:
3674         (WebCore::histogramMutationEventUsage):
3675         (WebCore::Document::~Document):
3676
3677 2011-11-14  Simon Fraser  <simon.fraser@apple.com>
3678
3679         div with webkit-transform + webkit-box-reflect disappears when switching tabs
3680         https://bugs.webkit.org/show_bug.cgi?id=53355
3681
3682         Reviewed by Dean Jackson.
3683
3684         Tickle Core Animation into updating the layer's content property when
3685         switching back to a tab which has composited reflections. This hack is
3686         needed becuase reflections involve sharing layer contents between layers.
3687
3688         * platform/graphics/mac/WebLayer.mm:
3689         (-[WebLayer actionForKey:]):
3690
3691 2011-11-14  Adam Barth  <abarth@webkit.org>
3692
3693         Unique origins shouldn't remember their scheme, host, or port
3694         https://bugs.webkit.org/show_bug.cgi?id=72308
3695
3696         Reviewed by Eric Seidel.
3697
3698         This patch contains the bulk (all?) of the behavior differences in this
3699         patch series.  Unique origins shouldn't remember their schemes.  Doing
3700         so causes some privileges (e.g., local access) to leak into unique
3701         origins.
3702
3703         * page/SecurityOrigin.cpp:
3704         (WebCore::SecurityOrigin::SecurityOrigin):
3705             - Explicitly clear out the protocol, host, and port for unique
3706               origins.  A future patch will refactor all this code to be more
3707               elegant.
3708         * platform/SchemeRegistry.cpp:
3709         (WebCore::schemesWithUniqueOrigins):
3710             - Merge "about" and "javascript" in with the general case now that
3711               we don't have a separate notion of an empty origin.
3712
3713 2011-11-14  Adam Barth  <abarth@webkit.org>
3714
3715         Don't special-case "data" URLs in drag-and-drop logic
3716         https://bugs.webkit.org/show_bug.cgi?id=72322
3717
3718         Reviewed by Eric Seidel.
3719
3720         See the bug for more details.
3721
3722         Test: editing/pasteboard/drag-drop-to-data-url.html
3723
3724         * page/SecurityOrigin.cpp:
3725         (WebCore::SecurityOrigin::canReceiveDragData):
3726
3727 2011-11-14  Adrienne Walker  <enne@google.com>
3728
3729         [chromium] Pipe compositor commit/swap up to WebWidgetClient
3730         https://bugs.webkit.org/show_bug.cgi?id=72041
3731
3732         Reviewed by Darin Fisher.
3733
3734         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3735         (WebCore::CCLayerTreeHost::didCommitAndDrawFrame):
3736         (WebCore::CCLayerTreeHost::didCompleteSwapBuffers):
3737         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3738         (WebCore::CCSingleThreadProxy::doComposite):
3739         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
3740         (WebCore::CCThreadProxy::onSwapBuffersCompleteOnImplThread):
3741         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
3742         (WebCore::CCThreadProxy::didCommitAndDrawFrame):
3743         (WebCore::CCThreadProxy::didCompleteSwapBuffers):
3744         * platform/graphics/chromium/cc/CCThreadProxy.h:
3745
3746 2011-11-14  Tony Chang  <tony@chromium.org>
3747
3748         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
3749         https://bugs.webkit.org/show_bug.cgi?id=72196
3750
3751         Reviewed by Ojan Vafai.
3752
3753         * Configurations/FeatureDefines.xcconfig:
3754         * css/CSSComputedStyleDeclaration.cpp:
3755         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3756         * css/CSSFlexValue.cpp:
3757         * css/CSSFlexValue.h:
3758         * css/CSSParser.cpp:
3759         (WebCore::CSSParser::parseValue):
3760         (WebCore::CSSParser::parseFlex):
3761         * css/CSSPrimitiveValueMappings.h:
3762         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3763         * css/CSSProperty.cpp:
3764         (WebCore::CSSProperty::isInheritedProperty):
3765         * css/CSSPropertyNames.in:
3766         * css/CSSStyleApplyProperty.cpp:
3767         (WebCore::ApplyPropertyLength::applyValue):
3768         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
3769         * css/CSSStyleSelector.cpp:
3770         (WebCore::CSSStyleSelector::applyProperty):
3771         * css/CSSValue.cpp:
3772         (WebCore::CSSValue::cssText):
3773         (WebCore::CSSValue::destroy):
3774         * css/CSSValue.h:
3775         * css/CSSValueKeywords.in:
3776         * rendering/RenderFlexibleBox.cpp:
3777         * rendering/RenderFlexibleBox.h:
3778         * rendering/RenderObject.cpp:
3779         (WebCore::RenderObject::createObject):
3780         * rendering/RenderObject.h:
3781         (WebCore::RenderObject::isFlexibleBoxIncludingDeprecated):
3782         * rendering/style/RenderStyle.cpp:
3783         (WebCore::RenderStyle::RenderStyle):
3784         (WebCore::RenderStyle::diff):
3785         * rendering/style/RenderStyle.h:
3786         * rendering/style/RenderStyleConstants.h:
3787         * rendering/style/StyleFlexibleBoxData.cpp:
3788         * rendering/style/StyleFlexibleBoxData.h:
3789         * rendering/style/StyleRareNonInheritedData.cpp:
3790         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3791         (WebCore::StyleRareNonInheritedData::operator==):
3792         * rendering/style/StyleRareNonInheritedData.h:
3793
3794 2011-11-14  Vincent Scheib  <scheib@chromium.org>
3795
3796         Mouse Lock: Renaming to 'Pointer Lock': Runtime Enable Flags
3797         https://bugs.webkit.org/show_bug.cgi?id=72303
3798
3799         Reviewed by Darin Fisher.
3800
3801         * bindings/generic/RuntimeEnabledFeatures.cpp:
3802         * bindings/generic/RuntimeEnabledFeatures.h:
3803         (WebCore::RuntimeEnabledFeatures::webkitPointerLockEnabled):
3804         (WebCore::RuntimeEnabledFeatures::setWebkitPointerLockEnabled):
3805         (WebCore::RuntimeEnabledFeatures::webkitPointerEnabled):
3806         * page/Settings.cpp:
3807         (WebCore::Settings::Settings):
3808         * page/Settings.h:
3809         (WebCore::Settings::setPointerLockEnabled):
3810         (WebCore::Settings::PointerLockEnabled):
3811
3812 2011-11-14  Sheriff Bot  <webkit.review.bot@gmail.com>
3813
3814         Unreviewed, rolling out r100176.
3815         http://trac.webkit.org/changeset/100176
3816         https://bugs.webkit.org/show_bug.cgi?id=72309
3817
3818         it broke the Mac builds (missing symbols) in a non-obvious way
3819         (Requested by jchaffraix on #webkit).
3820
3821         * CMakeLists.txt:
3822         * GNUmakefile.list.am:
3823         * Target.pri:
3824         * WebCore.gypi:
3825         * bindings/js/JSWebGLRenderingContextCustom.cpp:
3826         (WebCore::toJS):
3827         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
3828         (WebCore::toV8Object):
3829         * html/canvas/WebGLExperimentalCompressedTextures.cpp: Removed.
3830         * html/canvas/WebGLExperimentalCompressedTextures.h: Removed.
3831         * html/canvas/WebGLExperimentalCompressedTextures.idl: Removed.
3832         * html/canvas/WebGLExtension.h:
3833         * html/canvas/WebGLRenderingContext.cpp:
3834         (WebCore::WebGLRenderingContext::getExtension):
3835         (WebCore::WebGLRenderingContext::getParameter):
3836         (WebCore::WebGLRenderingContext::getSupportedExtensions):
3837         * html/canvas/WebGLRenderingContext.h:
3838         * platform/graphics/Extensions3D.h:
3839         * platform/graphics/GraphicsContext3D.h:
3840         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
3841         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3842         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3843
3844 2011-11-14  Tony Chang  <tony@chromium.org>
3845
3846         remove -wap-marquee css propery value
3847         https://bugs.webkit.org/show_bug.cgi?id=72296
3848
3849         Reviewed by Adam Barth.
3850
3851         This css value is no longer used.
3852
3853         * css/CSSValueKeywords.in:
3854
3855 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
3856
3857         Crash in RenderTableSection::splitColumn
3858         https://bugs.webkit.org/show_bug.cgi?id=70171
3859
3860         Reviewed by David Hyatt.
3861
3862         Tests: fast/table/crash-splitColumn-2.html
3863                fast/table/crash-splitColumn-3.html
3864                fast/table/crash-splitColumn.html
3865
3866         The old code would not take into account the fact that each RenderTableSection
3867         can set its m_needsCellRecalc flag independently of the rest.
3868
3869         This means that you cannot assume that you can always split or append columns to
3870         all the sections. Our approach is to skip sections needing cell recalc in several
3871         parts of the code as they will be properly reset to the table's representations
3872         during a cell recalc.
3873
3874         * rendering/RenderTable.cpp:
3875         (WebCore::RenderTable::splitColumn):
3876         (WebCore::RenderTable::appendColumn):
3877         Skip sections needing cell recalc as they will be properly updated later.
3878
3879         * rendering/RenderTableSection.cpp:
3880         (WebCore::RenderTableSection::addCell):
3881         Ignore a section needing cell recalc as addCell will be called after sync'ing
3882         the internal column representation in recalcCells.
3883
3884         (WebCore::RenderTableSection::recalcCells):
3885         Clear the flag at the beginning of the function to activate the previous functions.
3886         Added a comment as to why this is fine.
3887
3888         (WebCore::RenderTableSection::appendColumn):
3889         Added an ASSERT. If we need cell recalc, we should NEVER update m_grid outside
3890         of recalcCells().
3891
3892 2011-11-14  Adam Barth  <abarth@webkit.org>
3893
3894         Remove the concept of an empty SecurityOrigin
3895         https://bugs.webkit.org/show_bug.cgi?id=72287
3896
3897         Reviewed by Eric Seidel.
3898
3899         This concept is fragile and doesn't exist in the specs.  Previous
3900         patches have removed most of the code relying upon this function.  This
3901         patch removes a couple stragglers.
3902
3903         * page/DOMWindow.cpp:
3904         (WebCore::DOMWindow::postMessage):
3905             - This check should really be about unique origins because it
3906               doesn't make sense to target postMessages at unique origins, as
3907               explained in the comment.
3908         * page/SecurityOrigin.cpp:
3909         * page/SecurityOrigin.h:
3910
3911 2011-11-14  Adam Barth  <abarth@webkit.org>
3912
3913         SecurityContext::isSecureTransitionTo should not refer to empty security origins
3914         https://bugs.webkit.org/show_bug.cgi?id=72277
3915
3916         Reviewed by Eric Seidel.
3917
3918         Now that we're tracking the "failed to initialized SecurityOrigin"
3919         state explicitly, we should use that to determine whether we can make a
3920         secure transition.
3921
3922         * dom/SecurityContext.cpp:
3923         (WebCore::SecurityContext::isSecureTransitionTo):
3924
3925 2011-11-14  Vincent Scheib  <scheib@chromium.org>
3926
3927         Mouse Lock: Renaming to 'Pointer Lock': ENABLE Flags
3928         https://bugs.webkit.org/show_bug.cgi?id=72286
3929
3930         Reviewed by Adam Barth.
3931
3932         * bindings/generic/RuntimeEnabledFeatures.cpp:
3933         * bindings/generic/RuntimeEnabledFeatures.h:
3934         * dom/MouseEvent.idl:
3935         * dom/MouseRelatedEvent.h:
3936         * page/MouseLockable.cpp:
3937         * page/MouseLockable.h:
3938         * page/MouseLockable.idl:
3939         * page/Navigator.cpp:
3940         * page/Navigator.h:
3941         * page/Navigator.idl:
3942         * page/Settings.cpp:
3943         (WebCore::Settings::Settings):
3944         * page/Settings.h:
3945
3946 2011-11-14  Anna Cavender  <annacc@chromium.org>
3947
3948         Remove TextTrackCueIndex and TextTrackCueSet.  No longer needed.
3949         https://bugs.webkit.org/show_bug.cgi?id=72216
3950
3951         Reviewed by Sam Weinig.
3952
3953         No new tests. No new functionality.
3954
3955         * CMakeLists.txt:
3956         * GNUmakefile.list.am:
3957         * Target.pri:
3958         * WebCore.gypi:
3959         * WebCore.xcodeproj/project.pbxproj:
3960         * html/TextTrackCueIndex.cpp: Removed.
3961         * html/TextTrackCueIndex.h: Removed.
3962
3963 2011-10-10  Robert Hogan  <robert@webkit.org>
3964
3965         CSS 2.1 failure: border-spacing-applies-to-015.htm
3966         https://bugs.webkit.org/show_bug.cgi?id=69773
3967
3968         Reviewed by David Hyatt.
3969
3970         The CSS test suite expects UAs to allow multiple captions per table.
3971         Replace m_caption with a Vector called m_captions.
3972
3973         * rendering/RenderTable.cpp:
3974         (WebCore::RenderTable::RenderTable):
3975         (WebCore::RenderTable::addChild):
3976         (WebCore::RenderTable::removeChild):
3977         (WebCore::RenderTable::adjustLogicalHeightForCaption):
3978         (WebCore::RenderTable::layout):
3979         (WebCore::RenderTable::addOverflowFromChildren):
3980         (WebCore::RenderTable::paintObject):
3981         (WebCore::RenderTable::subtractCaptionRect):
3982         (WebCore::RenderTable::computePreferredLogicalWidths):
3983         (WebCore::RenderTable::nextColElement):
3984         (WebCore::RenderTable::colElement):
3985         (WebCore::RenderTable::recalcCaption):
3986         (WebCore::RenderTable::recalcSections):
3987         (WebCore::RenderTable::overflowClipRect):
3988         (WebCore::RenderTable::nodeAtPoint):
3989         * rendering/RenderTable.h:
3990
3991 2011-11-14  Gregg Tavares  <gman@google.com>
3992
3993         Implement WEBGL_EXPERIMENTAL_compressed_textures WebGL extension
3994         https://bugs.webkit.org/show_bug.cgi?id=72086
3995
3996         Reviewed by Kenneth Russell.
3997
3998         No new tests. Will write final test once on hardware.
3999
4000         * CMakeLists.txt:
4001         * GNUmakefile.list.am:
4002         * WebCore.gypi:
4003         * WebCore.pro:
4004         * bindings/js/JSWebGLRenderingContextCustom.cpp:
4005         (WebCore::toJS):
4006         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
4007         (WebCore::toV8Object):
4008         * html/canvas/WebGLExperimentalCompressedTextures.cpp: Added.
4009         (WebCore::WebGLExperimentalCompressedTextures::WebGLExperimentalCompressedTextures):
4010         (WebCore::WebGLExperimentalCompressedTextures::~WebGLExperimentalCompressedTextures):
4011         (WebCore::WebGLExperimentalCompressedTextures::getName):
4012         (WebCore::WebGLExperimentalCompressedTextures::create):
4013         (WebCore::WebGLExperimentalCompressedTextures::supported):
4014         (WebCore::WebGLExperimentalCompressedTextures::validateCompressedTexFormat):
4015         (WebCore::WebGLExperimentalCompressedTextures::validateCompressedTexFuncData):
4016         (WebCore::WebGLExperimentalCompressedTextures::validateCompressedTexSubDimensions):
4017         (WebCore::WebGLExperimentalCompressedTextures::compressedTexImage2D):
4018         (WebCore::WebGLExperimentalCompressedTextures::compressedTexSubImage2D):
4019         (WebCore::WebGLExperimentalCompressedTextures::getCompressedTextureFormats):
4020         * html/canvas/WebGLExperimentalCompressedTextures.h: Added.
4021         * html/canvas/WebGLExperimentalCompressedTextures.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
4022         * html/canvas/WebGLExtension.h:
4023         * html/canvas/WebGLRenderingContext.cpp:
4024         (WebCore::WebGLRenderingContext::getExtension):
4025         (WebCore::WebGLRenderingContext::getParameter):
4026         (WebCore::WebGLRenderingContext::getSupportedExtensions):
4027         * html/canvas/WebGLRenderingContext.h:
4028         * platform/graphics/Extensions3D.h:
4029         * platform/graphics/GraphicsContext3D.h:
4030         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
4031         (WebCore::GraphicsContext3D::compressedTexImage2D):
4032         (WebCore::GraphicsContext3D::compressedTexSubImage2D):
4033         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
4034         (WebCore::GraphicsContext3D::compressedTexImage2D):
4035         (WebCore::GraphicsContext3D::compressedTexSubImage2D):
4036         * platform/graphics/qt/GraphicsContext3DQt.cpp:
4037         (WebCore::GraphicsContext3D::compressedTexImage2D):
4038         (WebCore::GraphicsContext3D::compressedTexSubImage2D):
4039
4040 2011-11-14  Michael Nordman  <michaeln@google.com>
4041
4042         Return more complete error and exception messages when a
4043         WebSQLDatabase function fails. Produce console logging
4044         for openDatabase() errors and vacuum errors. Add a lastErrorMessage
4045         accessor to the DatabaseSync interface.
4046         https://bugs.webkit.org/show_bug.cgi?id=71575
4047
4048         Reviewed by David Levin.
4049
4050         Yes, see LayoutTests/ChangeLog in this patch.
4051
4052         * platform/sql/SQLiteDatabase.cpp:
4053         (WebCore::SQLiteDatabase::SQLiteDatabase):
4054         (WebCore::SQLiteDatabase::open):
4055         (WebCore::SQLiteDatabase::close):
4056         (WebCore::SQLiteDatabase::lastError):
4057         (WebCore::SQLiteDatabase::lastErrorMsg):
4058         (WebCore::SQLiteDatabase:: runVacuumCommand):
4059         (WebCore::SQLiteDatabase:: runIncrementalVacuumCommand):
4060         Reflect errors in the open() method in lastError() and lastErrorMsg().
4061         Return an error codes for runVacuumCommand() and runIncrementalVacuumCommand().
4062
4063         * platform/sql/SQLiteDatabase.h:
4064         * storage/AbstractDatabase.cpp:
4065         (WebCore::formatErrorMessage):
4066         (WebCore::AbstractDatabase::performOpenAndVerify):
4067         (WebCore::AbstractDatabase::logErrorMessage):
4068         During openAndVerify, produce formatted error messages that include what was being done, the sqlite error code,
4069         and the sqlite error message. Add a helper to log message to the console.
4070
4071         * storage/AbstractDatabase.h:
4072         * storage/ChangeVersionWrapper.cpp:
4073         (WebCore::ChangeVersionWrapper::performPreflight):
4074         (WebCore::ChangeVersionWrapper::performPostflight):
4075         * storage/Database.cpp:
4076         (WebCore::Database::openDatabase):
4077         (WebCore::Database::openAndVerifyVersion):
4078         (WebCore::Database::performOpenAndVerify):
4079         * storage/Database.h:
4080         * storage/DatabaseSync.cpp:
4081         (WebCore::DatabaseSync::openDatabaseSync):
4082         (WebCore::DatabaseSync::changeVersion):
4083         (WebCore::DatabaseSync::runTransaction):
4084         * storage/DatabaseSync.h:
4085         (WebCore::DatabaseSync::lastErrorMessage):
4086         (WebCore::DatabaseSync::setLastErrorMessage):
4087         * storage/DatabaseSync.idl:
4088         Add a lastErrorMessage attribute so javascript callers can
4089         retrieve more detailed information about what went wrong.
4090
4091         * storage/DatabaseTask.cpp:
4092         (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask):
4093         (WebCore::Database::DatabaseOpenTask::doPerformTask):
4094         * storage/DatabaseTask.h:
4095         (WebCore::Database::DatabaseOpenTask::create):
4096         Return an errorMessage in addition to the exception code.
4097
4098         * storage/SQLError.h:
4099         (WebCore::SQLError::create):
4100         Add helpers to produced formatted error messages.
4101
4102         * storage/SQLStatement.cpp:
4103         (WebCore::SQLStatement::execute):
4104         * storage/SQLStatementSync.cpp:
4105         (WebCore::SQLStatementSync::execute):
4106         * storage/SQLTransaction.cpp: