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