[Chromium] REGRESSION(r110596) CCQuadCullerTest.verifyCullChildLinesUpTopLeft fails...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-03-15  Dana Jansens  <danakj@chromium.org>
2
3         [Chromium] REGRESSION(r110596) CCQuadCullerTest.verifyCullChildLinesUpTopLeft fails on Windows
4         https://bugs.webkit.org/show_bug.cgi?id=81083
5
6         Reviewed by Adrienne Walker.
7
8         The surface pointer on the occlusion tracker stack is uninitialized, and
9         can be non-null, but the layer's target surface is null, causing asserts
10         to fail. Fixes the TestCCOcclusionTrackerImpl to initialize the stack's
11         surface to be null.
12
13         * platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
14         (WebCore::::enterTargetRenderSurface):
15         (WebCore::::unoccludedContentRect):
16         * platform/graphics/chromium/cc/CCOcclusionTracker.h:
17         (WebCore::CCOcclusionTrackerBase::StackObject::StackObject):
18
19 2012-03-15  David Levin  <levin@chromium.org>
20
21         Various autoresize fixes.
22         https://bugs.webkit.org/show_bug.cgi?id=81199
23
24         Reviewed by Darin Fisher.
25
26         Tested by WebViewTest additions.
27
28         * page/FrameView.cpp:
29         (WebCore::FrameView::autoSizeIfEnabled): Fixed a bug that caused a horizontal
30         scrollbar to appear when the size was width was fixed and height overflowed which
31         is one of the tests that was added.
32
33 2012-03-15  Andrey Kosyakov  <caseq@chromium.org>
34
35         Web Inspector: normalize vertical overview bars by longest bar, not by longest frame
36         https://bugs.webkit.org/show_bug.cgi?id=81231
37
38         Reviewed by Vsevolod Vlasov.
39
40         * inspector/front-end/TimelineOverviewPane.js:
41         (WebInspector.TimelineOverviewPane):
42         (WebInspector.TimelineOverviewPane.prototype.reset):
43         (WebInspector.TimelineOverviewPane.prototype.accept):
44         (WebInspector.TimelineOverviewPane.prototype.windowEndTime):
45         (WebInspector.TimelineVerticalOverview.prototype.reset):
46         (WebInspector.TimelineVerticalOverview.prototype.update):
47         (WebInspector.TimelineVerticalOverview.prototype._aggregateFrames):
48         (WebInspector.TimelineVerticalOverview.prototype._aggregateRecords):
49         (WebInspector.TimelineVerticalOverview.prototype.getWindowTimes):
50
51 2012-03-15  Andrey Kosyakov  <caseq@chromium.org>
52
53         Web Inspector: crash in InspectorTimelineAgent when trying to add children to cancelable records
54         https://bugs.webkit.org/show_bug.cgi?id=81245
55
56         Reviewed by Vsevolod Vlasov.
57
58         * inspector/InspectorTimelineAgent.cpp:
59         (WebCore::InspectorTimelineAgent::addRecordToTimeline):
60         (WebCore):
61         (WebCore::InspectorTimelineAgent::innerAddRecordToTimeline):
62         (WebCore::InspectorTimelineAgent::appendRecord):
63         (WebCore::InspectorTimelineAgent::commitCancelableRecords):
64         * inspector/InspectorTimelineAgent.h:
65         (InspectorTimelineAgent):
66
67 2012-03-15  Pavel Podivilov  <podivilov@chromium.org>
68
69         Web Inspector: live locations could be disposed twice.
70         https://bugs.webkit.org/show_bug.cgi?id=81249
71
72         Reviewed by Vsevolod Vlasov.
73
74         * inspector/front-end/ScriptMapping.js:
75         (WebInspector.MainScriptMapping.prototype._unregisterLiveLocation):
76
77 2012-03-15  Carlos Garcia Campos  <cgarcia@igalia.com>
78
79         [GTK] Implement unicode submenu items
80         https://bugs.webkit.org/show_bug.cgi?id=81117
81
82         Reviewed by Martin Robinson.
83
84         * loader/EmptyClients.h:
85         (WebCore::EmptyEditorClient::shouldShowUnicodeMenu): Just return
86         false.
87         * page/ContextMenuController.cpp:
88         (WebCore::insertUnicodeCharacter): Helper function to insert a
89         unicode character.
90         (WebCore::ContextMenuController::contextMenuItemSelected):
91         Implement unicode menu items using insertUnicodeCharacter() to
92         insert the apropriate unicode character.
93         (WebCore::ContextMenuController::createAndAppendUnicodeSubMenu):
94         Create the unicode submenu.
95         (WebCore::ContextMenuController::populate): Add unicode submenu
96         item for editable content.
97         (WebCore::ContextMenuController::checkOrEnableIfNeeded): Add
98         unicode submenu items to the switch.
99         * page/ContextMenuController.h:
100         * page/EditorClient.h:
101         (EditorClient): Add shouldShowUnicodeMenu() for GTK platform.
102         * platform/ContextMenuItem.h:
103         * platform/LocalizedStrings.h:
104         * platform/gtk/LocalizedStringsGtk.cpp:
105         (WebCore::contextMenuItemTagUnicodeInsertLRMMark): Add localized
106         string for the unicode menu item.
107         (WebCore::contextMenuItemTagUnicodeInsertRLMMark): Ditto.
108         (WebCore::contextMenuItemTagUnicodeInsertLREMark): Ditto.
109         (WebCore::contextMenuItemTagUnicodeInsertRLEMark): Ditto.
110         (WebCore::contextMenuItemTagUnicodeInsertLROMark): Ditto.
111         (WebCore::contextMenuItemTagUnicodeInsertRLOMark): Ditto.
112         (WebCore::contextMenuItemTagUnicodeInsertPDFMark): Ditto.
113         (WebCore::contextMenuItemTagUnicodeInsertZWSMark): Ditto.
114         (WebCore::contextMenuItemTagUnicodeInsertZWJMark): Ditto.
115         (WebCore::contextMenuItemTagUnicodeInsertZWNJMark): Ditto.
116
117 2012-03-15  Vsevolod Vlasov  <vsevik@chromium.org>
118
119         Web Inspector: MainScriptMapping should detect snippet scripts by means of sourceURL set before evaluation.
120         https://bugs.webkit.org/show_bug.cgi?id=81031
121
122         Reviewed by Pavel Feldman.
123
124         * inspector/front-end/SnippetsModel.js:
125         (WebInspector.SnippetsModel):
126         (WebInspector.SnippetsModel.prototype._saveSettings):
127         (WebInspector.SnippetsModel.prototype.deleteSnippet):
128         (WebInspector.SnippetsModel.prototype._snippetAdded):
129         (WebInspector.SnippetsModel.prototype._sourceURLForSnippet):
130         (WebInspector.SnippetsModel.prototype.snippetIdForSourceURL):
131         (WebInspector.SnippetsModel.prototype.snippetForSourceURL):
132         (WebInspector.Snippet.prototype.evaluate):
133         (WebInspector.SnippetsScriptMapping):
134         (WebInspector.SnippetsScriptMapping.prototype.uiLocationToRawLocation.get if):
135         (WebInspector.SnippetsScriptMapping.prototype.uiLocationToRawLocation):
136         (WebInspector.SnippetsScriptMapping.prototype._releasedUISourceCodes):
137         (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
138         (WebInspector.SnippetsScriptMapping.prototype._snippetWillBeEvaluated):
139         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved.get this):
140         (WebInspector.SnippetsScriptMapping.prototype._snippetRemoved):
141
142 2012-03-15  Kevin Ollivier  <kevino@theolliviers.com>
143
144         [wx] Unreviewed. Build fixes for Mac and DOM bindings.
145
146         * bindings/cpp/WebDOMEventTarget.cpp:
147         (toWebKit):
148         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
149         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
150
151 2012-03-14  Pavel Podivilov  <podivilov@chromium.org>
152
153         Web Inspector: extract CompilerScriptMapping from RawSourceCode.
154         https://bugs.webkit.org/show_bug.cgi?id=81088
155
156         Reviewed by Vsevolod Vlasov.
157
158         * WebCore.gypi:
159         * WebCore.vcproj/WebCore.vcproj:
160         * inspector/compile-front-end.py:
161         * inspector/front-end/CompilerScriptMapping.js: Added.
162         (WebInspector.CompilerScriptMapping):
163         (WebInspector.CompilerScriptMapping.prototype.rawLocationToUILocation):
164         (WebInspector.CompilerScriptMapping.prototype.get uiSourceCodeList):
165         (WebInspector.CompilerScriptMapping.prototype.addScript.get this):
166         (WebInspector.CompilerScriptMapping.prototype.addScript):
167         (WebInspector.CompilerScriptMapping.prototype.loadSourceMapForScript):
168         (WebInspector.CompilerScriptMapping.prototype.reset):
169         * inspector/front-end/RawSourceCode.js:
170         (WebInspector.RawSourceCode):
171         (WebInspector.RawSourceCode.prototype.setFormatted):
172         (WebInspector.RawSourceCode.prototype._resourceFinished):
173         (WebInspector.RawSourceCode.prototype._createUISourceCode):
174         (WebInspector.RawSourceCode.FormattedSourceMapping.prototype.rawLocationToUILocation):
175         * inspector/front-end/ResourceScriptMapping.js:
176         (WebInspector.ResourceScriptMapping.prototype.addScript):
177         * inspector/front-end/ScriptMapping.js:
178         (WebInspector.MainScriptMapping):
179         * inspector/front-end/WebKit.qrc:
180         * inspector/front-end/inspector.html:
181
182 2012-03-15  Peter Rybin  <peter.rybin@gmail.com>
183
184         Web Inspector: Move all includes behind ENABLE(INSPECTOR) guards
185         https://bugs.webkit.org/show_bug.cgi?id=81132
186
187         Reviewed by Yury Semikhatsky.
188
189         Include directives are moved several lines down in .cpp files and in
190         generator templates.
191
192         * inspector/CodeGeneratorInspector.py:
193         * inspector/ContentSearchUtils.cpp:
194         * inspector/DOMEditor.cpp:
195         * inspector/DOMNodeHighlighter.cpp:
196         * inspector/DOMPatchSupport.cpp:
197         * inspector/IdentifiersFactory.cpp:
198         * inspector/InjectedScript.cpp:
199         * inspector/InjectedScriptHost.cpp:
200         * inspector/InjectedScriptManager.cpp:
201         * inspector/InspectorAgent.cpp:
202         * inspector/InspectorApplicationCacheAgent.cpp:
203         * inspector/InspectorBaseAgent.cpp:
204         * inspector/InspectorCSSAgent.cpp:
205         * inspector/InspectorClient.cpp:
206         * inspector/InspectorConsoleAgent.cpp:
207         * inspector/InspectorController.cpp:
208         * inspector/InspectorCounters.cpp:
209         * inspector/InspectorDOMAgent.cpp:
210         * inspector/InspectorDOMDebuggerAgent.cpp:
211         * inspector/InspectorDOMStorageAgent.cpp:
212         * inspector/InspectorDatabaseAgent.cpp:
213         * inspector/InspectorDatabaseResource.cpp:
214         * inspector/InspectorDebuggerAgent.cpp:
215         * inspector/InspectorFileSystemAgent.cpp:
216         * inspector/InspectorFrontendClientLocal.cpp:
217         * inspector/InspectorFrontendHost.cpp:
218         * inspector/InspectorHistory.cpp:
219         * inspector/InspectorIndexedDBAgent.cpp:
220         * inspector/InspectorInstrumentation.cpp:
221         * inspector/InspectorMemoryAgent.cpp:
222         * inspector/InspectorPageAgent.cpp:
223         * inspector/InspectorProfilerAgent.cpp:
224         * inspector/InspectorResourceAgent.cpp:
225         * inspector/InspectorRuntimeAgent.cpp:
226         * inspector/InspectorState.cpp:
227         * inspector/InspectorStyleSheet.cpp:
228         * inspector/InspectorStyleTextEditor.cpp:
229         * inspector/InspectorTimelineAgent.cpp:
230         * inspector/InspectorValues.cpp:
231         * inspector/InstrumentingAgents.cpp:
232         * inspector/NetworkResourcesData.cpp:
233         * inspector/PageConsoleAgent.cpp:
234         * inspector/PageDebuggerAgent.cpp:
235         * inspector/PageRuntimeAgent.cpp:
236         * inspector/TimelineRecordFactory.cpp:
237         * inspector/WorkerConsoleAgent.cpp:
238         * inspector/WorkerDebuggerAgent.cpp:
239         * inspector/WorkerRuntimeAgent.cpp:
240
241 2012-03-15  Yury Semikhatsky  <yurys@chromium.org>
242
243         Web Inspector: improve HeapSnapshot._buildReversIndex performance
244         https://bugs.webkit.org/show_bug.cgi?id=81224
245
246         Caching node indexes and node count in local variables instead of
247         calling getters each time reduces the method run time by
248         factor of 1.5
249
250         Reviewed by Pavel Feldman.
251
252         * inspector/front-end/HeapSnapshot.js:
253         (WebInspector.HeapSnapshot.prototype._buildReverseIndex):
254
255 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
256
257         SVG Animations update baseVal instead of animVal
258         https://bugs.webkit.org/show_bug.cgi?id=12437
259
260         Rubber-stamped by Rob Buis.
261
262         Rename constructFromCopy to constructFromVariant, and currentBaseValue to currentBaseValueVariant, to clarify what it actually does.
263
264         * svg/SVGAnimateElement.cpp:
265         (WebCore::SVGAnimateElement::resetToBaseValue):
266         * svg/SVGAnimatedLength.cpp:
267         (WebCore::SVGAnimatedLengthAnimator::constructFromVariant):
268         * svg/SVGAnimatedLength.h:
269         (SVGAnimatedLengthAnimator):
270         * svg/SVGAnimatedLengthList.cpp:
271         (WebCore::SVGAnimatedLengthListAnimator::constructFromVariant):
272         * svg/SVGAnimatedLengthList.h:
273         (SVGAnimatedLengthListAnimator):
274         * svg/SVGAnimatedNumber.cpp:
275         (WebCore::SVGAnimatedNumberAnimator::constructFromVariant):
276         * svg/SVGAnimatedNumber.h:
277         (SVGAnimatedNumberAnimator):
278         * svg/SVGAnimatedNumberList.cpp:
279         (WebCore::SVGAnimatedNumberListAnimator::constructFromVariant):
280         * svg/SVGAnimatedNumberList.h:
281         (SVGAnimatedNumberListAnimator):
282         * svg/SVGAnimatedTransformList.cpp:
283         (WebCore::SVGAnimatedTransformListAnimator::constructFromVariant):
284         * svg/SVGAnimatedTransformList.h:
285         (SVGAnimatedTransformListAnimator):
286         * svg/SVGAnimatedTypeAnimator.h:
287         (WebCore::SVGAnimatedTypeAnimator::constructFromVariant):
288         * svg/properties/SVGAnimatedListPropertyTearOff.h:
289         (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValueVariant):
290         * svg/properties/SVGAnimatedProperty.h:
291         (SVGAnimatedProperty):
292         * svg/properties/SVGAnimatedPropertyTearOff.h:
293         (WebCore::SVGAnimatedPropertyTearOff::currentBaseValueVariant):
294         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
295         (WebCore::SVGAnimatedStaticPropertyTearOff::currentBaseValueVariant):
296
297 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
298
299         Enable animVal support for SVGNumberList
300         https://bugs.webkit.org/show_bug.cgi?id=81219
301
302         Reviewed by Rob Buis.
303
304         Enable animVal support for SVGNumberList. Easy patch, we just need to add the missing
305         constructFromCopy() method to SVGAnumatedNumberListAnimator and report AnimatedNumberList
306         as supporting animVal.
307
308         Covered by existing tests.
309
310         * svg/SVGAnimatedNumberList.cpp:
311         (WebCore::SVGAnimatedNumberListAnimator::constructFromCopy):
312         (WebCore):
313         * svg/SVGAnimatedNumberList.h:
314         (WebCore):
315         (SVGAnimatedNumberListAnimator):
316         * svg/SVGAnimatedType.cpp:
317         (WebCore::SVGAnimatedType::supportsAnimVal):
318         (WebCore::SVGAnimatedType::setVariantValue):
319
320 2012-03-15  Rob Buis  <rbuis@rim.com>
321
322         Fix cast-align GCC warnings
323         https://bugs.webkit.org/show_bug.cgi?id=80790
324
325         Reviewed by Nikolas Zimmermann.
326
327         * platform/graphics/WOFFFileFormat.cpp:
328         (WebCore::writeUInt32):
329         (WebCore::writeUInt16):
330         (WebCore::convertWOFFToSfnt):
331
332 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
333
334         Not reviewed. Forgot to preserve copyrights, per reviewer comment.
335
336         * svg/SVGAnimatedTransformList.cpp:
337
338 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
339
340         Enable animVal support for SVGNumber
341         https://bugs.webkit.org/show_bug.cgi?id=81212
342
343         Reviewed by Rob Buis.
344
345         Enable animVal support for SVGNumber. This aligns SVGAnimatedStaticPropertyTearOff,
346         with the other SVGListPropertyTearOff & SVGPropertyTearOff, as all support animVal now.
347         Converting the rest of the types can be done in small patches now.
348
349         Test: svg/animations/svgnumber-animation-4.html
350
351         * svg/SVGAnimatedNumber.cpp:
352         (WebCore::SVGAnimatedNumberAnimator::constructFromCopy):
353         (WebCore):
354         * svg/SVGAnimatedNumber.h:
355         (WebCore):
356         (SVGAnimatedNumberAnimator):
357         * svg/SVGAnimatedType.cpp:
358         (WebCore::SVGAnimatedType::supportsAnimVal):
359         (WebCore::SVGAnimatedType::setVariantValue):
360         * svg/properties/SVGAnimatedProperty.h:
361         (SVGAnimatedProperty):
362         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
363         (WebCore::SVGAnimatedStaticPropertyTearOff::animVal):
364         (WebCore::SVGAnimatedStaticPropertyTearOff::currentAnimatedValue):
365         (SVGAnimatedStaticPropertyTearOff):
366         (WebCore::SVGAnimatedStaticPropertyTearOff::currentBaseValue):
367         (WebCore::SVGAnimatedStaticPropertyTearOff::animationStarted):
368         (WebCore::SVGAnimatedStaticPropertyTearOff::animationEnded):
369         (WebCore::SVGAnimatedStaticPropertyTearOff::animationValueWillChange):
370         (WebCore::SVGAnimatedStaticPropertyTearOff::animationValueDidChange):
371         (WebCore::SVGAnimatedStaticPropertyTearOff::SVGAnimatedStaticPropertyTearOff):
372
373 2012-03-15  Nikolas Zimmermann  <nzimmermann@rim.com>
374
375         Enable animVal support for SVGTransformList
376         https://bugs.webkit.org/show_bug.cgi?id=80758
377
378         Reviewed by Antti Koivisto.
379
380         Enable animVal support for SVGTransformList. SVGTransformLists are only animatable
381         via <animateTransform>, not via <animate> directly. Still we can handle it in the
382         same framework as all other types used for <animate>, as we also need proper animVal
383         support for <animateTransform>.
384
385         This patch removes the special <animateTransform> implementation, and lets
386         SVGAnimateTransformElement inherit from SVGAnimateElement, just like its done
387         for SVGAnimateColorElement & SVGSetElement.
388
389         All existing code (calculateFromAndToValues/FromAndByValues/etc..) are moved from
390         SVGAnimateTransform right into the SVGAnimatedTransformListAnimator.
391
392         This doesn't change <animateTransform> behavior, it just simplies the code
393         and enables animVal support for SVGTransformLists - all covered by existing tests.
394
395         * CMakeLists.txt:
396         * GNUmakefile.list.am:
397         * Target.pri:
398         * WebCore.gypi:
399         * WebCore.xcodeproj/project.pbxproj:
400         * svg/SVGAllInOne.cpp:
401         * svg/SVGAnimateElement.cpp:
402         (WebCore::SVGAnimateElement::SVGAnimateElement):
403         (WebCore::SVGAnimateElement::determineAnimatedPropertyType):
404         (WebCore::SVGAnimateElement::calculateAnimatedValue):
405         (WebCore::SVGAnimateElement::applyResultsToTarget):
406         * svg/SVGAnimateTransformElement.cpp:
407         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
408         (WebCore::SVGAnimateTransformElement::hasValidAttributeType):
409         (WebCore::SVGAnimateTransformElement::parseAttribute):
410         * svg/SVGAnimateTransformElement.h:
411         (WebCore::SVGAnimateTransformElement::transformType):
412         (SVGAnimateTransformElement):
413         * svg/SVGAnimatedTransformList.cpp: Added.
414         (WebCore):
415         (WebCore::SVGAnimatedTransformListAnimator::SVGAnimatedTransformListAnimator):
416         (WebCore::SVGAnimatedTransformListAnimator::constructFromString):
417         (WebCore::SVGAnimatedTransformListAnimator::constructFromCopy):
418         (WebCore::SVGAnimatedTransformListAnimator::calculateFromAndToValues):
419         (WebCore::SVGAnimatedTransformListAnimator::calculateFromAndByValues):
420         (WebCore::SVGAnimatedTransformListAnimator::calculateAnimatedValue):
421         (WebCore::SVGAnimatedTransformListAnimator::calculateDistance):
422         * svg/SVGAnimatedTransformList.h:
423         (WebCore):
424         (SVGAnimatedTransformListAnimator):
425         (WebCore::SVGAnimatedTransformListAnimator::~SVGAnimatedTransformListAnimator):
426         * svg/SVGAnimatedType.cpp:
427         (WebCore::SVGAnimatedType::~SVGAnimatedType):
428         (WebCore::SVGAnimatedType::createTransformList):
429         (WebCore):
430         (WebCore::SVGAnimatedType::transformList):
431         (WebCore::SVGAnimatedType::valueAsString):
432         (WebCore::SVGAnimatedType::setValueAsString):
433         (WebCore::SVGAnimatedType::supportsAnimVal):
434         (WebCore::SVGAnimatedType::setVariantValue):
435         * svg/SVGAnimatedType.h:
436         (WebCore):
437         (SVGAnimatedType):
438         * svg/SVGAnimatorFactory.h:
439         (WebCore::SVGAnimatorFactory::create):
440         * svg/SVGGradientElement.cpp:
441         (WebCore::SVGGradientElement::parseAttribute):
442         * svg/SVGPatternElement.cpp:
443         (WebCore::SVGPatternElement::parseAttribute):
444         * svg/SVGStyledTransformableElement.cpp:
445         (WebCore::SVGStyledTransformableElement::parseAttribute):
446         * svg/SVGTextElement.cpp:
447         (WebCore::SVGTextElement::parseAttribute):
448         * svg/SVGTransform.cpp:
449         (WebCore::SVGTransform::transformTypePrefixForParsing):
450         (WebCore):
451         (WebCore::SVGTransform::valueAsString):
452         * svg/SVGTransform.h:
453         (SVGTransform):
454         * svg/SVGTransformList.cpp:
455         (WebCore::SVGTransformList::parse):
456         (WebCore):
457         * svg/SVGTransformList.h:
458         (SVGTransformList):
459         * svg/SVGTransformable.cpp:
460         (WebCore::SVGTransformable::parseTransformType):
461         * svg/SVGTransformable.h:
462         (WebCore):
463         * svg/SVGViewSpec.cpp:
464         (WebCore::SVGViewSpec::setTransform):
465
466 2012-03-13  Nikolas Zimmermann  <nzimmermann@rim.com>
467
468         Enable animVal support for SVGLengthList
469         https://bugs.webkit.org/show_bug.cgi?id=80750
470
471         Reviewed by Zoltan Herczeg.
472
473         Introduce animVal support for generic SVGList types. This aligns SVGListProperty with SVGProperty
474         in terms of animVal/baseVal support. Use this to turn on animVal support for SVGLengthList.
475
476         Extend all existing SVGLengthList tests to correctly differentiate between baseVal/animVal.
477
478         * svg/SVGAnimateElement.cpp:
479         (WebCore::SVGAnimateElement::calculateAnimatedValue):
480         * svg/SVGAnimateTransformElement.cpp:
481         (WebCore::SVGAnimateTransformElement::resetToBaseValue):
482         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
483         (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
484         * svg/SVGAnimatedLengthList.cpp:
485         (WebCore::SVGAnimatedLengthListAnimator::constructFromCopy):
486         (WebCore):
487         * svg/SVGAnimatedLengthList.h:
488         (WebCore):
489         (SVGAnimatedLengthListAnimator):
490         * svg/SVGAnimatedType.cpp:
491         (WebCore::SVGAnimatedType::supportsAnimVal):
492         (WebCore::SVGAnimatedType::setVariantValue):
493         * svg/SVGAnimatedType.h:
494         * svg/SVGAnimationElement.cpp:
495         (WebCore::SVGAnimationElement::applyAnimatedValue):
496         * svg/properties/SVGAnimatedListPropertyTearOff.h:
497         (SVGAnimatedListPropertyTearOff):
498         (WebCore::SVGAnimatedListPropertyTearOff::baseVal):
499         (WebCore::SVGAnimatedListPropertyTearOff::animVal):
500         (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList):
501         (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers):
502         (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue):
503         (WebCore::SVGAnimatedListPropertyTearOff::currentBaseValue):
504         (WebCore::SVGAnimatedListPropertyTearOff::animationStarted):
505         (WebCore::SVGAnimatedListPropertyTearOff::animationEnded):
506         (WebCore::SVGAnimatedListPropertyTearOff::synchronizeWrappersIfNeeded):
507         (WebCore::SVGAnimatedListPropertyTearOff::animationValueWillChange):
508         (WebCore::SVGAnimatedListPropertyTearOff::animationValueDidChange):
509         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
510         (WebCore::SVGAnimatedPathSegListPropertyTearOff::baseVal):
511         (WebCore::SVGAnimatedPathSegListPropertyTearOff::animVal):
512         * svg/properties/SVGAnimatedProperty.h:
513         (WebCore::SVGAnimatedProperty::isAnimating):
514         (SVGAnimatedProperty):
515         (WebCore::SVGAnimatedProperty::animationValueWillChange):
516         (WebCore::SVGAnimatedProperty::animationValueDidChange):
517         (WebCore::SVGAnimatedProperty::~SVGAnimatedProperty):
518         (WebCore::SVGAnimatedProperty::SVGAnimatedProperty):
519         * svg/properties/SVGAnimatedPropertyTearOff.h:
520         (SVGAnimatedPropertyTearOff):
521         (WebCore::SVGAnimatedPropertyTearOff::baseVal):
522         (WebCore::SVGAnimatedPropertyTearOff::animVal):
523         (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue):
524         (WebCore::SVGAnimatedPropertyTearOff::animationStarted):
525         (WebCore::SVGAnimatedPropertyTearOff::animationEnded):
526         (WebCore::SVGAnimatedPropertyTearOff::animationValueWillChange):
527         (WebCore::SVGAnimatedPropertyTearOff::animationValueDidChange):
528         (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff):
529         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
530         (WebCore::SVGAnimatedTransformListPropertyTearOff::baseVal):
531         (WebCore::SVGAnimatedTransformListPropertyTearOff::animVal):
532         * svg/properties/SVGListProperty.h:
533         (WebCore::SVGListProperty::detachListWrappers):
534         (SVGListProperty):
535         (WebCore::SVGListProperty::setValuesAndWrappers):
536         (WebCore::SVGListProperty::clearValues):
537         (WebCore::SVGListProperty::clearValuesAndWrappers):
538         (WebCore::SVGListProperty::numberOfItems):
539         (WebCore::SVGListProperty::initializeValues):
540         (WebCore::SVGListProperty::initializeValuesAndWrappers):
541         (WebCore::SVGListProperty::canGetItem):
542         (WebCore::SVGListProperty::getItemValues):
543         (WebCore::SVGListProperty::getItemValuesAndWrappers):
544         (WebCore::SVGListProperty::insertItemBeforeValues):
545         (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers):
546         (WebCore::SVGListProperty::canReplaceItem):
547         (WebCore::SVGListProperty::replaceItemValues):
548         (WebCore::SVGListProperty::replaceItemValuesAndWrappers):
549         (WebCore::SVGListProperty::canRemoveItem):
550         (WebCore::SVGListProperty::removeItemValues):
551         (WebCore::SVGListProperty::removeItemValuesAndWrappers):
552         (WebCore::SVGListProperty::appendItemValues):
553         (WebCore::SVGListProperty::appendItemValuesAndWrappers):
554         (WebCore::SVGListProperty::values):
555         (WebCore::SVGListProperty::wrappers):
556         (WebCore::SVGListProperty::SVGListProperty):
557         * svg/properties/SVGListPropertyTearOff.h:
558         (SVGListPropertyTearOff):
559         (WebCore::SVGListPropertyTearOff::create):
560         (WebCore::SVGListPropertyTearOff::removeItemFromList):
561         (WebCore::SVGListPropertyTearOff::clear):
562         (WebCore::SVGListPropertyTearOff::initialize):
563         (WebCore::SVGListPropertyTearOff::insertItemBefore):
564         (WebCore::SVGListPropertyTearOff::replaceItem):
565         (WebCore::SVGListPropertyTearOff::appendItem):
566         (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff):
567         (WebCore::SVGListPropertyTearOff::commitChange):
568         * svg/properties/SVGPathSegListPropertyTearOff.cpp:
569         (WebCore::SVGPathSegListPropertyTearOff::clear):
570         (WebCore::SVGPathSegListPropertyTearOff::getItem):
571         (WebCore::SVGPathSegListPropertyTearOff::removeItem):
572         * svg/properties/SVGPathSegListPropertyTearOff.h:
573         (WebCore::SVGPathSegListPropertyTearOff::create):
574         (WebCore::SVGPathSegListPropertyTearOff::removeItemFromList):
575         (SVGPathSegListPropertyTearOff):
576         (WebCore::SVGPathSegListPropertyTearOff::initialize):
577         (WebCore::SVGPathSegListPropertyTearOff::insertItemBefore):
578         (WebCore::SVGPathSegListPropertyTearOff::replaceItem):
579         (WebCore::SVGPathSegListPropertyTearOff::appendItem):
580         (WebCore::SVGPathSegListPropertyTearOff::SVGPathSegListPropertyTearOff):
581         (WebCore::SVGPathSegListPropertyTearOff::commitChange):
582         * svg/properties/SVGPropertyInfo.h:
583         * svg/properties/SVGStaticListPropertyTearOff.h:
584         (SVGStaticListPropertyTearOff):
585         (WebCore::SVGStaticListPropertyTearOff::clear):
586         (WebCore::SVGStaticListPropertyTearOff::initialize):
587         (WebCore::SVGStaticListPropertyTearOff::getItem):
588         (WebCore::SVGStaticListPropertyTearOff::insertItemBefore):
589         (WebCore::SVGStaticListPropertyTearOff::replaceItem):
590         (WebCore::SVGStaticListPropertyTearOff::removeItem):
591         (WebCore::SVGStaticListPropertyTearOff::appendItem):
592         (WebCore::SVGStaticListPropertyTearOff::SVGStaticListPropertyTearOff):
593         (WebCore::SVGStaticListPropertyTearOff::commitChange):
594         * svg/properties/SVGTransformListPropertyTearOff.h:
595         (WebCore::SVGTransformListPropertyTearOff::create):
596         (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
597         (WebCore::SVGTransformListPropertyTearOff::consolidate):
598         (WebCore::SVGTransformListPropertyTearOff::SVGTransformListPropertyTearOff):
599
600 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
601
602         AXDescription for HTML5 footer
603         https://bugs.webkit.org/show_bug.cgi?id=78967
604
605         Return a unique role description for the footer element.
606
607         Reviewed by Beth Dakin.
608
609         Test: platform/mac/accessibility/footer-roledescription.html
610
611         * English.lproj/Localizable.strings:+
612         * accessibility/AccessibilityObject.h:
613         * accessibility/AccessibilityRenderObject.cpp:
614         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
615         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
616         (createAccessibilityRoleMap):
617         (-[WebAccessibilityObjectWrapper subrole]):
618         (-[WebAccessibilityObjectWrapper roleDescription]):
619         * platform/LocalizedStrings.cpp:
620         (WebCore::AXFooterRoleDescriptionText):
621         (WebCore):
622         * platform/LocalizedStrings.h:
623         (WebCore):
624         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
625         (WebCore::AXFooterRoleDescriptionText):
626         (WebCore):
627         * platform/efl/LocalizedStringsEfl.cpp:
628         (WebCore::AXFooterRoleDescriptionText):
629         (WebCore):
630         * platform/gtk/LocalizedStringsGtk.cpp:
631         (WebCore::AXFooterRoleDescriptionText):
632         (WebCore):
633
634 2012-03-14  Mark Rowe  <mrowe@apple.com>
635
636         <http://webkit.org/b/81193> Ensure libWebCoreTestSupport.dylib's library identifier is set appropriately for all configurations.
637
638         Reviewed by Dan Bernstein.
639
640         * Configurations/WebCoreTestSupport.xcconfig: Switch to setting DYLIB_INSTALL_NAME_BASE
641         rather than LD_DYLIB_INSTALL_NAME. The latter is derived from the former. Ensure that
642         DYLIB_INSTALL_NAME_BASE is also set for the Production configuration.
643
644 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
645
646         AXDescription for ARIA role contentinfo incorrect
647         https://bugs.webkit.org/show_bug.cgi?id=78967
648
649         Reviewed by Beth Dakin.
650
651         Test: platform/mac/accessibility/aria-grouping-roles.html
652
653         * English.lproj/Localizable.strings:
654         * platform/LocalizedStrings.cpp:
655         (WebCore::AXARIAContentGroupText):
656
657 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
658
659         AX: ARIA tables need to support selected rows attribute/select rows changed notification
660         https://bugs.webkit.org/show_bug.cgi?id=79821
661
662         Reviewed by Beth Dakin.
663
664         Test: platform/mac/accessibility/selected-rows-table.html
665
666         * accessibility/AccessibilityARIAGrid.h:
667         (WebCore::AccessibilityARIAGrid::isMultiSelectable):
668         (AccessibilityARIAGrid):
669         * accessibility/AccessibilityRenderObject.cpp:
670         (WebCore::AccessibilityRenderObject::ariaSelectedRows):
671         * accessibility/AccessibilityTableRow.cpp:
672         (WebCore::AccessibilityTableRow::observableObject):
673         (WebCore):
674         * accessibility/AccessibilityTableRow.h:
675         (AccessibilityTableRow):
676         * accessibility/mac/AXObjectCacheMac.mm:
677         (WebCore::AXObjectCache::postPlatformNotification):
678
679 2012-03-14  James Robinson  <jamesr@chromium.org>
680
681         Platforms without USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) don't need to query the page's displayID
682         https://bugs.webkit.org/show_bug.cgi?id=81187
683
684         Reviewed by Simon Fraser.
685
686         * dom/Document.cpp:
687         (WebCore::Document::webkitRequestAnimationFrame):
688
689 2012-03-14  Chris Fleizach  <cfleizach@apple.com>
690
691         AX: embedded attachments do not report their parents correctly
692         https://bugs.webkit.org/show_bug.cgi?id=80132
693
694         When a WebHTMLView has embedded attachments in it, the AXParent of those attachments is wrong.
695         It usually points to the AXScrollView of the web area. That's because there has been no way for WebCore to
696         communicate that this attachment view should actually make believe that it's parent is within the WebCore AX tree.
697
698         We can fix that by overriding the AXParent in overriden attributes for items that are attachments.
699
700         Reviewed by Beth Dakin.
701
702         Not able to construct a layout test because the problem only manifests itself when an AX client connects to WebKit
703         through the IPC mechanism.
704
705         * accessibility/AccessibilityObject.cpp:
706         (WebCore::AccessibilityObject::detachFromParent):
707         * accessibility/AccessibilityObject.h:
708         (AccessibilityObject):
709         (WebCore::AccessibilityObject::overrideAttachmentParent):
710         * accessibility/AccessibilityRenderObject.cpp:
711         (WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
712         (WebCore::AccessibilityRenderObject::addChildren):
713         * accessibility/AccessibilityRenderObject.h:
714         (AccessibilityRenderObject):
715         * accessibility/mac/AccessibilityObjectMac.mm:
716         (WebCore::AccessibilityObject::overrideAttachmentParent):
717
718 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
719
720         Improve ContainerNode's collectNodes() performance
721         https://bugs.webkit.org/show_bug.cgi?id=80706
722
723         Reviewed by Antti Koivisto.
724
725         Bump up the size of stack allocated buffer from 1 to 11. According to the rough study I conducted,
726         this would cover 99.5% of all node collection.
727
728         Note: the actual code change was made in r110797 but I somehow mangled my patches.
729
730         * dom/ContainerNode.cpp:
731         (WebCore):
732
733 2012-03-14  Seo Sanghyeon  <sh4.seo@samsung.com>
734
735         Cleanup semicolons in IDLs
736         https://bugs.webkit.org/show_bug.cgi?id=81129
737
738         Reviewed by Kentaro Hara.
739
740         No tests. No change in behavior.
741
742         * svg/SVGAnimateColorElement.idl:
743         * svg/SVGAnimateElement.idl:
744         * svg/SVGAnimateTransformElement.idl:
745         * svg/SVGAnimatedRect.idl:
746
747 2012-03-14  Hayato Ito  <hayato@chromium.org>
748
749         Make ShadowRoot.activeElement return null if it does not contain a focused element.
750         https://bugs.webkit.org/show_bug.cgi?id=81097
751
752         Reviewed by Dimitri Glazkov.
753
754         * dom/TreeScope.cpp:
755         (WebCore::TreeScope::activeElement):
756
757 2012-03-14  Matt Falkenhagen  <falken@chromium.org>
758
759         Allow per-script font settings to be specified in layout tests
760         https://bugs.webkit.org/show_bug.cgi?id=78184
761
762         Reviewed by Hajime Morita.
763
764         This adds per-script font settings to InternalSettings, so it can be used in layout tests instead of
765         the per-script font settings support in DumpRenderTree overridePreference, which has only been implemented
766         for Chromium so far.
767
768         Test: changed fast/text/international/locale-sensitive-fonts.html to use InternalSettings
769         instead of overridePreference.
770
771         * WebCore.exp.in: Added symbols.
772         * platform/text/LocaleToScriptMapping.h: Added scriptNameToCode used by InternalSettings.
773         (WebCore):
774         * platform/text/LocaleToScriptMappingDefault.cpp:
775         (WebCore::scriptNameToCode):
776         (WebCore::localeToScriptCodeForFontSelection):
777         * platform/text/LocaleToScriptMappingICU.cpp:
778         (WebCore::scriptNameToCode):
779         (WebCore):
780         * testing/InternalSettings.cpp: Added per-script font settings.
781         (WebCore):
782         (WebCore::setFontFamily):
783         (WebCore::InternalSettings::setStandardFontFamily):
784         (WebCore::InternalSettings::setSerifFontFamily):
785         (WebCore::InternalSettings::setSansSerifFontFamily):
786         (WebCore::InternalSettings::setFixedFontFamily):
787         (WebCore::InternalSettings::setCursiveFontFamily):
788         (WebCore::InternalSettings::setFantasyFontFamily):
789         (WebCore::InternalSettings::setPictographFontFamily):
790         * testing/InternalSettings.h:
791         (InternalSettings):
792         * testing/InternalSettings.idl:
793
794 2012-03-14  Kwonjin Jeong  <gram@company100.net>
795
796         Remove obsolete constructors of CSSPrimitiveValue class.
797         https://bugs.webkit.org/show_bug.cgi?id=80971
798
799         Remove constructors of CSSPrimitiveValue that can't be
800         reached.
801
802         Reviewed by Andreas Kling.
803
804         * css/CSSPrimitiveValueMappings.h:
805
806 2012-03-14  Igor Oliveira  <igor.o@sisa.samsung.com>
807
808         Split the extra logic out of RenderBlock::updateFirstLetter
809         https://bugs.webkit.org/show_bug.cgi?id=80772
810
811         Reviewed by Julien Chaffraix.
812
813         No change in behavior expected.
814
815         * rendering/RenderBlock.cpp:
816         (WebCore::RenderBlock::updateFirstLetterStyle):
817         (WebCore::RenderBlock::createFirstLetterRenderer):
818         (WebCore::RenderBlock::updateFirstLetter):
819         (WebCore):
820         * rendering/RenderBlock.h:
821         (RenderBlock):
822
823 2012-03-14  Anders Carlsson  <andersca@apple.com>
824
825         Fix build.
826
827         * html/track/TextTrackList.cpp:
828
829 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
830
831         Build fix.
832
833         * dom/DynamicNodeList.h:
834         (DynamicSubtreeNodeList):
835
836 2012-03-14  Ryosuke Niwa  <rniwa@webkit.org>
837
838         (register|unregister)DynamicSubtreeNodeList should be called only for labels and regions node lists
839         https://bugs.webkit.org/show_bug.cgi?id=80900
840
841         Reviewed by Andreas Kling.
842
843         Cleaned up invalidation code for dynamic node lists. It seems like the existing code was utterly confused
844         about the lifetime of node lists and caches within them. First, register/unregsiterDynamicSubtreeNodeList
845         are called for all dynamic node lists even though it's only useful for labels and region node lists since
846         it's a mechanism to allow node lists to be invalidated at a node to which the node list doesn't belong.
847
848         Second, some node lists had dedicated member functions on Node to explicitly invalidate caches in
849         parsedAttribute. However, this is redundant because invalidateNodeListsCacheAfterAttributeChanged should be
850         able to invalidate caches when the attribute value changes. This patch gets rid of the last instance of such
851         function in HTMLLabelElement.
852
853         And finally, this patch restricts the callers of DynamicSubtreeNodeList::invalidateCache to be member
854         functions of NodeListsNodeData (now friends of DynamicSubtreeNodeList) to allow futher refactoring.
855
856         * dom/DynamicNodeList.cpp:
857         (WebCore::DynamicSubtreeNodeList::DynamicSubtreeNodeList): Don't register the node list since it's only
858         useful for labels and region node lists.
859         (WebCore::DynamicSubtreeNodeList::~DynamicSubtreeNodeList): Ditto.
860         * dom/DynamicNodeList.h:
861         (DynamicSubtreeNodeList):
862         * dom/Node.cpp:
863         (WebCore):
864         (WebCore::Node::registerDynamicSubtreeNodeList): The comment about now we have to invalidate caches
865         when there had no caches is incorrect because registerDynamicSubtreeNodeList is called when a node list
866         is initially created. Also, if the tree scope didn't have any caches, then this is the first node list
867         to be added to the list, so there's no point in calling InvalidateCaches (no-op).
868         (WebCore::Node::unregisterDynamicSubtreeNodeList):
869         (WebCore::Node::invalidateNodeListsCacheAfterAttributeChanged): Take care of "for" content attribute.
870         Also remove the redundant call to removeNodeListCacheIfPossible since we only invalidates node lists
871         and never remove entries from NodeListsNodeData in this function.
872         (WebCore::Node::invalidateNodeListsCacheAfterChildrenChanged): The call to removeNodeListCacheIfPossible
873         is also redundant here. Also removed the invalidation of m_listsWithCaches since it's already done in
874         invalidateCaches via invalidateCachesThatDependOnAttributes.
875         (WebCore::NodeListsNodeData::invalidateCaches): Removed the invalidation of m_labelsNodeListCache. It's
876         done in invalidateCachesThatDependOnAttributes.
877         (WebCore::NodeListsNodeData::invalidateCachesThatDependOnAttributes): Invalidate
878         m_listsInvalidatedAtDocument, which is renamed from m_listsWithCaches.
879         (WebCore::NodeListsNodeData::isEmpty):
880         * dom/Node.h:
881         (Node):
882         * dom/NodeRareData.h:
883         (NodeListsNodeData):
884         * html/HTMLLabelElement.cpp:
885         (WebCore): Removed parseAttribute since the invalidation labels node list is now done by
886         invalidateNodeListsCacheAfterAttributeChanged and invalidateNodeListsCacheAfterChildrenChanged.
887         * html/HTMLLabelElement.h:
888         (HTMLLabelElement):
889         * html/LabelsNodeList.cpp:
890         (WebCore::LabelsNodeList::LabelsNodeList):
891         (WebCore::LabelsNodeList::~LabelsNodeList):
892
893 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
894
895         Unreviewed, rolling out r110565.
896         http://trac.webkit.org/changeset/110565
897         https://bugs.webkit.org/show_bug.cgi?id=81173
898
899         chromium deps are now far enough along that the original cl
900         should work (Requested by thakis on #webkit).
901
902         * WebCore.gyp/mac/adjust_visibility.sh:
903
904 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
905
906         Unreviewed, rolling out r110641.
907         http://trac.webkit.org/changeset/110641
908         https://bugs.webkit.org/show_bug.cgi?id=81170
909
910         Causes an ASAN failure (Requested by abarth on #webkit).
911
912         * Target.pri:
913         * UseV8.cmake:
914         * WebCore.gypi:
915         * bindings/scripts/CodeGeneratorJS.pm:
916         (GenerateHeader):
917         (GenerateImplementation):
918         * bindings/scripts/CodeGeneratorV8.pm:
919         (GenerateHeader):
920         (GenerateNamedConstructorCallback):
921         (GenerateImplementation):
922         * bindings/scripts/IDLAttributes.txt:
923         * bindings/scripts/test/V8/V8Float64Array.cpp:
924         (WebCore):
925         * bindings/scripts/test/V8/V8Float64Array.h:
926         (V8Float64Array):
927         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
928         (WebCore):
929         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
930         (V8TestActiveDOMObject):
931         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
932         (WebCore):
933         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
934         (V8TestCustomNamedGetter):
935         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
936         (WebCore):
937         * bindings/scripts/test/V8/V8TestEventConstructor.h:
938         (V8TestEventConstructor):
939         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
940         (WebCore):
941         * bindings/scripts/test/V8/V8TestEventTarget.h:
942         (V8TestEventTarget):
943         * bindings/scripts/test/V8/V8TestInterface.cpp:
944         (WebCore):
945         * bindings/scripts/test/V8/V8TestInterface.h:
946         (V8TestInterface):
947         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
948         (WebCore):
949         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
950         (V8TestMediaQueryListListener):
951         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
952         (WebCore):
953         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
954         (V8TestNamedConstructor):
955         * bindings/scripts/test/V8/V8TestObj.cpp:
956         (WebCore):
957         * bindings/scripts/test/V8/V8TestObj.h:
958         (V8TestObj):
959         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
960         (WebCore):
961         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
962         (V8TestSerializedScriptValueInterface):
963         * bindings/v8/NPV8Object.cpp:
964         (WebCore::npObjectTypeInfo):
965         * bindings/v8/V8GCController.cpp:
966         (WebCore::GrouperVisitor::visitDOMWrapper):
967         * bindings/v8/WrapperTypeInfo.h:
968         (WebCore):
969         (WrapperTypeInfo):
970         * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Copied from Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp.
971         (WebCore):
972         (WebCore::toV8):
973         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
974         (WebCore::toV8):
975         (WebCore):
976         * bindings/v8/custom/V8DOMTokenListCustom.cpp: Copied from Source/WebCore/bindings/v8/custom/V8StyleSheetCustom.cpp.
977         (WebCore):
978         (WebCore::toV8):
979         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
980         (WebCore):
981         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
982         (WebCore::toV8):
983         (WebCore):
984         * bindings/v8/custom/V8StyleSheetCustom.cpp:
985         (WebCore::toV8):
986         * css/CSSStyleSheet.idl:
987         * css/StyleSheet.idl:
988         * dom/DOMStringMap.idl:
989         * dom/NamedNodeMap.idl:
990         * html/DOMTokenList.idl:
991         * html/track/TextTrackList.cpp:
992         * html/track/TextTrackList.idl:
993
994 2012-03-13  Jon Lee  <jonlee@apple.com>
995
996         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
997         https://bugs.webkit.org/show_bug.cgi?id=80922
998         <rdar://problem/11035082>
999
1000         Reviewed by Jian Li.
1001
1002         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
1003         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
1004         new API. Therefore, APIs that are common between the two will have:
1005         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
1006
1007         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
1008         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
1009
1010         * bindings/scripts/InFilesCompiler.pm: Update the script to handle the "|" flag in a conditional.
1011         (preferredConditional):
1012         (conditionalStringFromAttributeValue):
1013         (generateInterfacesHeader):
1014         (generateHeadersHeader):
1015
1016         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
1017         * WebCore.exp.in:
1018         * bindings/cpp/WebDOMEventTarget.cpp:
1019         (toWebKit):
1020         * bindings/js/JSDesktopNotificationsCustom.cpp:
1021         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
1022         * dom/EventTargetFactory.in:
1023         * notifications/Notification.cpp:
1024         * notifications/Notification.h:
1025         * notifications/Notification.idl:
1026         * notifications/NotificationCenter.cpp:
1027         * notifications/NotificationCenter.h:
1028         * notifications/NotificationCenter.idl:
1029         * notifications/NotificationContents.h:
1030         * notifications/NotificationController.cpp:
1031         * notifications/NotificationController.h:
1032         * page/DOMWindow.cpp:
1033         (WebCore::DOMWindow::~DOMWindow):
1034         (WebCore::DOMWindow::willDetachPage):
1035         (WebCore::DOMWindow::disconnectDOMWindowProperties):
1036         (WebCore::DOMWindow::clearDOMWindowProperties):
1037         (WebCore):
1038         * page/DOMWindow.h:
1039         (DOMWindow):
1040         * page/DOMWindow.idl:
1041         * page/Frame.cpp:
1042         (WebCore::Frame::willDetachPage):
1043         (WebCore::Frame::transferChildFrameToNewDocument):
1044         * workers/WorkerContext.cpp:
1045         (WebCore::WorkerContext::~WorkerContext):
1046         (WebCore):
1047         * workers/WorkerContext.h:
1048         (WorkerContext):
1049         * workers/WorkerContext.idl:
1050         * workers/WorkerThread.cpp:
1051         (WebCore::WorkerThread::WorkerThread):
1052         * workers/WorkerThread.h:
1053         (WorkerThread):
1054
1055 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1056
1057         Unreviewed, rolling out r110744.
1058         http://trac.webkit.org/changeset/110744
1059         https://bugs.webkit.org/show_bug.cgi?id=81168
1060
1061         Causes many WebAudio tests to crash in debug (Requested by
1062         abarth on #webkit).
1063
1064         * platform/audio/Biquad.cpp:
1065         (WebCore::Biquad::process):
1066
1067 2012-03-14  Brady Eidson  <beidson@apple.com>
1068
1069         <rdar://problem/11045584> and https://bugs.webkit.org/show_bug.cgi?id=81166
1070         Repro crash in compositing/iframes/page-cache-layer-tree.html
1071
1072         Reviewed by Sam Weinig.
1073
1074         No new tests. (Discovered from and covered by existing test)
1075
1076         ScriptCachedFrameData doesn't need to keep a DOMWindow:
1077         * bindings/js/ScriptCachedFrameData.cpp:
1078         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1079         * bindings/js/ScriptCachedFrameData.h:
1080         (ScriptCachedFrameData):
1081
1082         CachedFrame should grab it off the Frame directly and store it locally:
1083         * history/CachedFrame.cpp:
1084         (WebCore::CachedFrame::CachedFrame):
1085         * history/CachedFrame.h:
1086         (WebCore::CachedFrameBase::domWindow):
1087         (CachedFrameBase):
1088
1089 2012-03-14  Tony Chang  <tony@chromium.org>
1090
1091         fix negative flexing in auto sized columns
1092         https://bugs.webkit.org/show_bug.cgi?id=80069
1093
1094         Reviewed by Ojan Vafai.
1095
1096         New test cases in css3/flexbox/columns-auto-size.html.
1097
1098         * rendering/RenderFlexibleBox.cpp:
1099         (WebCore):
1100         (WebCore::RenderFlexibleBox::computeAvailableFreeSpace): Properly compute this for auto sizing columns. Previously, we would always return 0.
1101         (WebCore::RenderFlexibleBox::layoutFlexItems):
1102         (WebCore::RenderFlexibleBox::runFreeSpaceAllocationAlgorithm): Drop an unnecessary check against undefined. isSpecified covers this for us.
1103         * rendering/RenderFlexibleBox.h:
1104         (RenderFlexibleBox):
1105
1106 2012-03-14  Grace Ku  <gracek@codeaurora.org>
1107
1108         Incorrect handling of sizes in "em" when first-line changes font size
1109         https://bugs.webkit.org/show_bug.cgi?id=79526
1110
1111         Reviewed by Eric Seidel.
1112
1113         When a first-line pseudo class changes the font size, the "em" unit is handled incorrectly.
1114         It uses the paragraph's original font size (the size of the rest of the paragraph) rather than
1115         the font-size of the first-line of the paragraph.
1116
1117         This was corrected by checking if the InlineFlowBox was the first line using the existing
1118         InlineFlowBox::isFirstLineStyle() function. The corrected behaviour matches Gecko and Presto.
1119         Trident seems to get it half-wrong in the use case we are testing, painting the correct width for
1120         the border but leaving the wrong amount of space.
1121
1122         The CSS specification doc at the time of this patch specifies that ':first-line' should only support
1123         certain properties, though UAs may choose to apply more properties. Furthermore, the spec does not
1124         define the exact rendering of all cases of ':first-line'. It notes that a more precise definition
1125         may appear in future revisions.
1126
1127         Test: fast/css/pseudo-first-line-border-width.html
1128
1129         * rendering/InlineFlowBox.cpp:
1130         (WebCore::InlineFlowBox::paintBoxDecorations):
1131         * rendering/InlineFlowBox.h:
1132         (WebCore::InlineFlowBox::borderLogicalLeft):
1133         (WebCore::InlineFlowBox::borderLogicalRight):
1134         * rendering/RenderBoxModelObject.cpp:
1135         (WebCore::RenderBoxModelObject::paintBorder):
1136         (WebCore::RenderBoxModelObject::getBorderEdgeInfo):
1137         (WebCore::RenderBoxModelObject::borderObscuresBackgroundEdge):
1138         (WebCore::RenderBoxModelObject::borderObscuresBackground):
1139         * rendering/RenderBoxModelObject.h:
1140         (RenderBoxModelObject):
1141
1142 2012-03-14  Martin Robinson  <mrobinson@igalia.com>
1143
1144         Fix the TextureMapper build for GTK+.
1145
1146         No new tests. This is just a build fix.
1147
1148         * platform/graphics/cairo/GraphicsContext3DPrivate.cpp:
1149         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
1150         * platform/graphics/texmap/TextureMapper.h:
1151
1152 2012-03-12  Martin Robinson  <mrobinson@igalia.com>
1153
1154         [GTK] Menulist buttons have separators even when the theme turns them off
1155         https://bugs.webkit.org/show_bug.cgi?id=80668
1156
1157         Reviewed by Daniel Bates.
1158
1159         No new tests. GTK+ theme differences are notoriously difficult
1160         to test, because consistent results depend on having certain themes
1161         and certain versions of themes installed.
1162
1163         Instead of using the GTK_TYPE_BUTTON and GTK_TYPE_SEPARATOR tags to get the
1164         style context, use GTK_TYPE_COMBO_BOX which should provide more accurate theme settings.
1165
1166         * platform/gtk/RenderThemeGtk3.cpp:
1167         (WebCore::getComboBoxMetrics): Get metrics from a GTK_TYPE_COMBO_BOX style context.
1168         (WebCore::RenderThemeGtk::paintMenuList): Get separator settings from the GTK_TYPE_COMBO_BOX style context.
1169
1170 2012-03-14  Levi Weintraub  <leviw@chromium.org>
1171
1172         Implement proper sub-pixel support in RenderFileUploadControl
1173         https://bugs.webkit.org/show_bug.cgi?id=80881
1174
1175         Reviewed by Dimitri Glazkov.
1176
1177         Correcting improper usage of LayoutUnits when interacting with the graphics context
1178         and platform code. Specifically:
1179         - pixel snapping the clip rect and paint offsets before sending values to the
1180           graphics context in paintObject.
1181         - using on-screen (pixel snapped) values to pass off to platform code to determine
1182           the max length of the filename to be drawn.
1183
1184         No new tests. No change in behavior.
1185
1186         * rendering/RenderFileUploadControl.cpp:
1187         (WebCore::nodeWidth):
1188         (WebCore::RenderFileUploadControl::maxFilenameWidth):
1189         (WebCore::RenderFileUploadControl::paintObject):
1190
1191 2012-03-14  Joseph Pecoraro  <pecoraro@apple.com>
1192
1193         [JSC] Web Inspector: CRASH running $0, $1, etc before they are set
1194         https://bugs.webkit.org/show_bug.cgi?id=81082
1195
1196         Don't return an invalid JSValue. Check if the ScriptValue
1197         has no value and return undefined in that case.
1198
1199         Reviewed by Pavel Feldman.
1200
1201         Updated test: inspector/console/command-line-api.html
1202
1203         * bindings/js/JSInjectedScriptHostCustom.cpp:
1204         (WebCore::JSInjectedScriptHost::inspectedObject):
1205
1206 2012-03-14  James Robinson  <jamesr@chromium.org>
1207
1208         [chromium] Remove canRecoverFromContextLoss attribute, it's unused
1209         https://bugs.webkit.org/show_bug.cgi?id=81158
1210
1211         Reviewed by Stephen White.
1212
1213         Canvas accelerated no longer depends on the canRecoverFromContextLoss attribute after r110716.
1214
1215         * platform/graphics/GraphicsContext3D.h:
1216         (WebCore::GraphicsContext3D::Attributes::Attributes):
1217         (Attributes):
1218         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1219         (WebCore::SharedGraphicsContext3DImpl::get):
1220
1221 2012-03-14  Jer Noble  <jer.noble@apple.com>
1222
1223         Opening a URL in a MediaDocument does not propagate MIME type info to media element
1224         https://bugs.webkit.org/show_bug.cgi?id=81148
1225
1226         Reviewed by Eric Carlson.
1227
1228         Test: http/tests/media/media-document.html
1229
1230         Pass through the mime type from the DocumentLoader into the <source type=""> attribute of the
1231         generated video element. 
1232
1233         * html/MediaDocument.cpp:
1234         (WebCore::MediaDocumentParser::createDocumentStructure):
1235
1236 2012-03-14  Stephen White  <senorblanco@chromium.org>
1237
1238         [chromium] Fix accelerated Canvas2D with threaded compositing.
1239         https://bugs.webkit.org/show_bug.cgi?id=80998
1240
1241         Reviewed by James Robinson.
1242
1243         Covered by unit tests Canvas2DLayerChromiumTest and
1244         TreeSynchronizerTest.
1245
1246         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1247         (WebCore::Canvas2DLayerChromium::paintContentsIfDirty):
1248         (WebCore):
1249         Delay creation of the front texture for double-buffering until the
1250         first call to paintContentsIfDirty().
1251         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1252         (Canvas2DLayerChromium):
1253         Remove setTextureManager() and setLayerTreeHost(), since their job
1254         has been subsumed by paintContentsIfDirty().
1255         * platform/graphics/chromium/TreeSynchronizer.cpp:
1256         (WebCore::TreeSynchronizer::updateScrollbarLayerPointersRecursive):
1257         Perform an early-out if the passed-in layer is NULL.
1258
1259 2012-03-14  Mark Pilgrim  <pilgrim@chromium.org>
1260
1261         Move EntriesCallback to Modules/filesystem/
1262         https://bugs.webkit.org/show_bug.cgi?id=81032
1263
1264         Reviewed by Adam Barth.
1265
1266         No new tests, all existing tests pass.
1267
1268         * CMakeLists.txt:
1269         * DerivedSources.make:
1270         * DerivedSources.pri:
1271         * GNUmakefile.list.am:
1272         * Modules/filesystem/EntriesCallback.h: Copied from Source/WebCore/fileapi/EntriesCallback.h.
1273         * Modules/filesystem/EntriesCallback.idl: Copied from Source/WebCore/fileapi/EntriesCallback.idl.
1274         * Target.pri:
1275         * WebCore.gypi:
1276         * WebCore.vcproj/WebCore.vcproj:
1277         * WebCore.xcodeproj/project.pbxproj:
1278         * fileapi/EntriesCallback.h: Removed.
1279         * fileapi/EntriesCallback.idl: Removed.
1280
1281 2012-03-14  Tony Chang  <tony@chromium.org>
1282
1283         multiline column flexbox with auto height wrap too much
1284         https://bugs.webkit.org/show_bug.cgi?id=80929
1285
1286         Reviewed by David Hyatt.
1287
1288         Test: css3/flexbox/multiline-column-auto.html
1289
1290         * rendering/RenderBox.cpp:
1291         (WebCore::RenderBox::computeLogicalHeightUsing):
1292         (WebCore):
1293         (WebCore::RenderBox::computeContentLogicalHeightUsing): Pull out into a separate method.
1294         * rendering/RenderBox.h:
1295         (RenderBox):
1296         * rendering/RenderFlexibleBox.cpp:
1297         (WebCore::RenderFlexibleBox::lineBreakLength): Compute the value based on height & max-height for column layout.
1298         (WebCore):
1299         (WebCore::RenderFlexibleBox::computeNextFlexLine):
1300         * rendering/RenderFlexibleBox.h:
1301         (RenderFlexibleBox):
1302
1303 2012-03-14  Xingnan Wang  <xingnan.wang@intel.com>
1304
1305         Optimize the multiply-add in Biquad.cpp::process
1306         https://bugs.webkit.org/show_bug.cgi?id=75528
1307
1308         Reviewed by Chris Rogers.
1309
1310         Pipeline the multiply-add with SSE2 instructions and get about 20% improvement for the function.
1311
1312         * platform/audio/Biquad.cpp:
1313         (WebCore::Biquad::process):
1314
1315 2012-03-14  James Robinson  <jamesr@chromium.org>
1316
1317         [Chromium] Layout Test compositing/repaint/opacity-between-absolute.html is flaky
1318         https://bugs.webkit.org/show_bug.cgi?id=79823
1319
1320         Reviewed by Adrienne Walker.
1321
1322         LayerRendererChromium was storing a weak pointer to the current render surface in m_currentRenderSurface and
1323         using this in useRenderSurface() to avoid rebinding if we called useRenderSurface() multiple times in a row on
1324         the same surface. This pointer was never cleared, so if any subsequent surface landed at the same address this
1325         caching would misbehave and we'd fail to correctly initialize the new render surface. The caching wasn't
1326         actually buying us anything anyway since we only call useRenderSurface() once per surface per frame and we
1327         always set the viewport for the default render surface.
1328
1329         * platform/graphics/chromium/LayerRendererChromium.cpp:
1330         (WebCore::LayerRendererChromium::beginDrawingFrame):
1331         (WebCore::LayerRendererChromium::useRenderSurface):
1332
1333 2012-03-14  Zalan Bujtas  <zbujtas@gmail.com>
1334
1335         Frame flattening ASSERT(!needsLayout()) in FrameView::paintContents()
1336         https://bugs.webkit.org/show_bug.cgi?id=80155
1337
1338         Reviewed by Antti Koivisto.
1339
1340         This patch ensures that an iframe only schedules and calls parent's layout,
1341         when it is going to be flattened. Non-flattened iframe does not affect
1342         parent's layout, so normal layout flow applies. isInSubframeLayoutWithFrameFlattening()
1343         function has been added to test whether a particular child frame is changing
1344         parent's layout. This function also ensures that scheduleRelayout() and layout()
1345         are in sync of checking againts frame flattening.
1346
1347         Test: fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling-with-js-forced-layout.html
1348
1349         * page/FrameView.cpp:
1350         (WebCore::FrameView::avoidScrollbarCreation):
1351         (WebCore::FrameView::layout):
1352         (WebCore::FrameView::scheduleRelayout):
1353         (WebCore::FrameView::isInChildFrameWithFrameFlattening):
1354         (WebCore):
1355         (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive):
1356         * page/FrameView.h:
1357         (FrameView):
1358         * rendering/RenderIFrame.h:
1359         (RenderIFrame):
1360         (WebCore::RenderIFrame::renderName):
1361
1362 2012-03-14  Anders Carlsson  <andersca@apple.com>
1363
1364         Don't cap the scroll position if layout happens when a FrameView's overhangAmount is non-zero
1365         https://bugs.webkit.org/show_bug.cgi?id=81146
1366         <rdar://problem/10850075>
1367
1368         Reviewed by Beth Dakin.
1369
1370         If layout happens when a page has a non-zero overhang amount, we shouldn't cap the scroll position
1371         to be inside of the valid maximum/minimum scroll offsets because that will cause the page to jump back, which
1372         can look really bad if layout happens in response to the page being scrolled.
1373
1374         * platform/ScrollView.cpp:
1375         (WebCore::ScrollView::updateScrollbars):
1376
1377 2012-03-14  Tommy Widenflycht  <tommyw@google.com>
1378
1379         MediaStream API (JSEP): Introducing IceCandidate
1380         https://bugs.webkit.org/show_bug.cgi?id=80699
1381
1382         Reviewed by Adam Barth.
1383
1384         Patch #2 in a series of patches to change the PeerConnection from ROAP to JSEP,
1385         see bug 80589 for more information.
1386         Adding the JS object IceCandidate and its WebCore/platform sibling IceCandidateDescriptor.
1387         This object will be created both from JS and the embedder.
1388
1389         Not possible to test until the entire JSEP feature is commited.
1390
1391         * GNUmakefile.list.am:
1392         * Modules/mediastream/IceCandidate.cpp: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1393         (WebCore):
1394         (WebCore::IceCandidate::create):
1395         (WebCore::IceCandidate::IceCandidate):
1396         (WebCore::IceCandidate::~IceCandidate):
1397         (WebCore::IceCandidate::label):
1398         (WebCore::IceCandidate::candidateLine):
1399         (WebCore::IceCandidate::toSdp):
1400         (WebCore::IceCandidate::descriptor):
1401         * Modules/mediastream/IceCandidate.h: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1402         (WebCore):
1403         (IceCandidate):
1404         * Modules/mediastream/IceCandidate.idl: Added.
1405         * WebCore.gypi:
1406         * platform/mediastream/IceCandidateDescriptor.cpp: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1407         (WebCore):
1408         (WebCore::IceCandidateDescriptor::create):
1409         (WebCore::IceCandidateDescriptor::IceCandidateDescriptor):
1410         (WebCore::IceCandidateDescriptor::~IceCandidateDescriptor):
1411         (WebCore::IceCandidateDescriptor::toSdp):
1412         * platform/mediastream/IceCandidateDescriptor.h: Copied from Source/WebCore/platform/mediastream/MediaStreamCenter.cpp.
1413         (WebCore):
1414         (IceCandidateDescriptor):
1415         (WebCore::IceCandidateDescriptor::label):
1416         (WebCore::IceCandidateDescriptor::candidateLine):
1417         * platform/mediastream/MediaStreamCenter.cpp:
1418         (WebCore::MediaStreamCenter::constructSdp):
1419         (WebCore):
1420         * platform/mediastream/MediaStreamCenter.h:
1421         (WebCore):
1422         (MediaStreamCenter):
1423
1424 2012-03-14  Simon Fraser  <simon.fraser@apple.com>
1425
1426         background-visibility:hidden should create a RenderLayer
1427         https://bugs.webkit.org/show_bug.cgi?id=81134
1428
1429         Reviewed by Dean Jackson.
1430         
1431         Background-visibility:hidden has to create RenderLayers, because it's implemented
1432         via compositing and/or paint short-circuiting in RenderLayer code.
1433
1434         Test: transforms/3d/general/background-visibility-layers.html
1435
1436         * rendering/RenderBox.h:
1437         * rendering/RenderBoxModelObject.h:
1438         (WebCore::RenderBoxModelObject::requiresLayer):
1439         * rendering/RenderObject.h:
1440         (WebCore::RenderObject::hasHiddenBackface):
1441         * rendering/RenderTableRow.h:
1442
1443 2012-03-14  Raul Hudea  <rhudea@adobe.com>
1444
1445         [CSSRegions][CSSOM] Implement regionLayoutEvent
1446         https://bugs.webkit.org/show_bug.cgi?id=78882
1447
1448         Reviewed by David Hyatt.
1449
1450         Adding the regionLayoutEvent that is dispatch for all regions after each flow-thread layout.
1451
1452         Tests: fast/regions/region-event-add-to-flow.html
1453                fast/regions/region-event-remove-from-dom.html
1454                fast/regions/region-event-remove-from-flow.html
1455                fast/regions/region-event.html
1456
1457         * dom/Document.cpp:
1458         (WebCore::Document::addListenerTypeIfNeeded): Added check for regionLayoutUpdate listeners
1459         * dom/Document.h:
1460         * dom/EventNames.h:
1461         (WebCore):
1462         * dom/Node.cpp:
1463         (WebCore::Node::dispatchRegionLayoutUpdateEvent):
1464         (WebCore):
1465         * dom/Node.h:
1466         (Node):
1467         * rendering/RenderFlowThread.cpp:
1468         (WebCore::RenderFlowThread::RenderFlowThread):
1469         (WebCore::RenderFlowThread::layout): Start the event dispatch timer but only if there are regionLayoutUpdate listeners and there is at least one region that had its layout updated.
1470         (WebCore::RenderFlowThread::computeOverflowStateForRegions): Mark regions that might had a layout update
1471         (WebCore::RenderFlowThread::regionLayoutUpdateEventTimerFired):
1472         (WebCore):
1473         * rendering/RenderFlowThread.h:
1474         * rendering/RenderRegion.cpp:
1475         (WebCore::RenderRegion::RenderRegion):
1476         * rendering/RenderRegion.h:
1477         (WebCore::RenderRegion::setDispatchRegionLayoutUpdateEvent):
1478         (WebCore::RenderRegion::shouldDispatchRegionLayoutUpdateEvent):
1479         (RenderRegion):
1480
1481 2012-03-14  Pierre Rossi  <pierre.rossi@gmail.com>
1482
1483         [Qt] Add support for vertical sliders in mobile theme
1484         https://bugs.webkit.org/show_bug.cgi?id=80179
1485
1486         This makes sliders using the "slider-vertical" appearance more sensible.
1487
1488         Reviewed by Simon Hausmann.
1489
1490         No new tests, since the mobile theme still isn't used in layout tests.
1491
1492         * platform/qt/RenderThemeQtMobile.cpp:
1493         (WebCore):
1494         (WebCore::StylePainterMobile::drawProgress):
1495         (WebCore::RenderThemeQtMobile::paintSliderTrack):
1496         * platform/qt/RenderThemeQtMobile.h:
1497         (StylePainterMobile):
1498
1499 2012-03-14  Jer Noble  <jer.noble@apple.com>
1500
1501         WebProcess spins beneath [QTMovie movieFileTypes:]
1502         https://bugs.webkit.org/show_bug.cgi?id=81133
1503
1504         Reviewed by Eric Carlson.
1505
1506         No new tests; speculative fix for top WebProcess spin.
1507
1508         When checking to see if a given mime type is supported by QuickTime,
1509         immediately exclude all types that do not begin with 'audio/' or 'video/'.
1510         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1511         (WebCore::MediaPlayerPrivateQTKit::supportsType):
1512
1513 2012-03-14  Zalan Bujtas  <zbujtas@gmail.com>
1514
1515         Make RenderIFrame::flattenFrame() return earlier, when frame flattening is disabled.
1516         https://bugs.webkit.org/show_bug.cgi?id=80301
1517
1518         Reviewed by Antti Koivisto.
1519
1520         Reorganize RenderIFrame flattenFrame() code, so that it returns
1521         earlier for the normal use case, when frame flattening is disabled.
1522         It also removes leftover null check.
1523
1524         No new tests, since there's no new functionality.
1525
1526         * rendering/RenderIFrame.cpp:
1527         (WebCore::RenderIFrame::flattenFrame):
1528
1529 2012-03-14  James Robinson  <jamesr@chromium.org>
1530
1531         [chromium] Provide explicit polling API to check if the platform is capable of accelerated 2d canvas
1532         https://bugs.webkit.org/show_bug.cgi?id=80667
1533
1534         Reviewed by Darin Fisher.
1535
1536         Query the platform to see if we can instantiate a context suitable for accelerating 2d canvas. If we can't, for
1537         instance if we're on a system that can't preserve a context when the screensaver comes up, then immediately fall
1538         back to software.
1539
1540         Covered by canvas layout tests in the virtual-gpu mode.
1541
1542         * html/HTMLCanvasElement.cpp:
1543         (WebCore::HTMLCanvasElement::shouldAccelerate):
1544         * platform/chromium/PlatformSupport.h:
1545
1546 2012-03-14  Carlos Garcia Campos  <cgarcia@igalia.com>
1547
1548         [GTK] Handle printing errors in WebKit2
1549         https://bugs.webkit.org/show_bug.cgi?id=77197
1550
1551         Reviewed by Gustavo Noronha Silva.
1552
1553         * platform/gtk/ErrorsGtk.cpp:
1554         (WebCore::printError): Create a generic print error.
1555         (WebCore::printerNotFoundError): Create a print error to notify
1556         that the selected printer could not be found.
1557         (WebCore::invalidPageRangeToPrint): Create a print error when the
1558         selected page range is invalid and there are no pages to print.
1559         * platform/gtk/ErrorsGtk.h:
1560         (WebCore): Add print error doamin.
1561
1562 2012-03-14  Nikolas Zimmermann  <nzimmermann@rim.com>
1563
1564         Make SVGUseElement respect & support externalResourcesRequired
1565         https://bugs.webkit.org/show_bug.cgi?id=81109
1566
1567         Reviewed by Rob Buis.
1568
1569         Generalize the existing externalResourcesRequired support from SVGScriptElement
1570         into SVGExternalResourcesRequired, so it can be shared with SVGUseElement, which
1571         was lacking proper externalResourcesRequired support.
1572
1573         <use xlink:href="external.svg" onload="alert('hi')" externalResourcesRequired="true"/>
1574         The onload handler now fires _after_ the external resources loaded, making it possible
1575         to write reliable tests that switch from internal to external resources or the other
1576         way around. Converted the new tests in svg/dynamic-updates/SVGUseElement* to listen
1577         to SVGLoad events, to make them reliable.
1578
1579         We may be able to generalize this to cover SVGImageElement as well (the only other class which
1580         is currently supporting externalResourcesRequired - but that's more involved, so I left it TODO).
1581
1582         Covered by existing tests and the changes to the new SVGUseElement tests.
1583
1584         * svg/SVGElement.h:
1585         (SVGElement): Make haveLoadedRequiredResources() public so SVGExternalResourcesRequired can call it.
1586         * svg/SVGExternalResourcesRequired.cpp: Refactored code from SVGScriptElement, 1:1 copies w/o changes.
1587         (WebCore::SVGExternalResourcesRequired::handleAttributeChange):
1588         (WebCore::SVGExternalResourcesRequired::dispatchLoadEvent):
1589         (WebCore::SVGExternalResourcesRequired::insertedIntoDocument):
1590         (WebCore::SVGExternalResourcesRequired::finishParsingChildren):
1591         (WebCore::SVGExternalResourcesRequired::haveLoadedRequiredResources):
1592         * svg/SVGExternalResourcesRequired.h: Add new virtual functions, that must be available in classes that inherit from SVGExternalResourcesRequired.
1593         (WebCore::SVGExternalResourcesRequired::setHaveFiredLoadEvent):
1594         (WebCore::SVGExternalResourcesRequired::isParserInserted):
1595         (WebCore::SVGExternalResourcesRequired::haveFiredLoadEvent):
1596         * svg/SVGScriptElement.cpp: Refactored externalResourcesRequired handling into SVGExternalResourcesRequired.
1597         (WebCore::SVGScriptElement::svgAttributeChanged):
1598         (WebCore::SVGScriptElement::insertedIntoDocument):
1599         (WebCore::SVGScriptElement::finishParsingChildren):
1600         * svg/SVGScriptElement.h: Ditto.
1601         (WebCore::SVGScriptElement::haveLoadedRequiredResources):
1602         (WebCore::SVGScriptElement::dispatchLoadEvent):
1603         (WebCore::SVGScriptElement::setHaveFiredLoadEvent):
1604         (WebCore::SVGScriptElement::isParserInserted):
1605         (WebCore::SVGScriptElement::haveFiredLoadEvent):
1606         * svg/SVGTests.cpp: Fix obvious typo, that leads to an assertion. Always return true if we know the attributeName.
1607         (WebCore::SVGTests::handleAttributeChange):
1608         * svg/SVGTests.h:
1609         * svg/SVGTextPathElement.cpp:
1610         (WebCore::SVGTextPathElement::insertedIntoDocument): Remove ambigous call warning.
1611         * svg/SVGUseElement.cpp: Support externalResourcesRequired="true/false" + dynamic changes of it. Covered by existing tests.
1612         (WebCore::SVGUseElement::SVGUseElement):
1613         (WebCore::SVGUseElement::create):
1614         (WebCore::SVGUseElement::insertedIntoDocument):
1615         (WebCore::SVGUseElement::svgAttributeChanged):
1616         (WebCore::SVGUseElement::notifyFinished):
1617         (WebCore::SVGUseElement::finishParsingChildren):
1618         (WebCore):
1619         * svg/SVGUseElement.h: Ditto.
1620         (WebCore::SVGUseElement::haveLoadedRequiredResources):
1621         (WebCore::SVGUseElement::setHaveFiredLoadEvent):
1622         (WebCore::SVGUseElement::isParserInserted):
1623         (WebCore::SVGUseElement::haveFiredLoadEvent):
1624         * svg/svgtags.in: Pass "bool wasInsertedByParser" to SVGUseElement constructor.
1625
1626 2012-03-14  Andrew Lo  <anlo@rim.com>
1627
1628         [BlackBerry] Implement REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR using AnimationFrameRateController
1629         https://bugs.webkit.org/show_bug.cgi?id=81000
1630
1631         Add BlackBerry port for DisplayRefreshMonitor using AnimationFrameRateController.
1632         Moved refreshDisplayOnMainThread to platform independant part of header.
1633
1634         Reviewed by Antonio Gomes.
1635
1636         requestAnimationFrame already covered by tests in LayoutTests/fast/animation.
1637
1638         * PlatformBlackBerry.cmake:
1639         * platform/graphics/DisplayRefreshMonitor.cpp:
1640         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
1641         * platform/graphics/DisplayRefreshMonitor.h:
1642         (WebCore):
1643         (DisplayAnimationClient):
1644         (WebCore::DisplayAnimationClient::~DisplayAnimationClient):
1645         (DisplayRefreshMonitor):
1646         * platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp: Added.
1647         (WebCore):
1648         (WebCore::DisplayAnimationClient::DisplayAnimationClient):
1649         (WebCore::DisplayAnimationClient::animationFrameChanged):
1650         (WebCore::DisplayRefreshMonitor::~DisplayRefreshMonitor):
1651         (WebCore::DisplayRefreshMonitor::startAnimationClient):
1652         (WebCore::DisplayRefreshMonitor::stopAnimationClient):
1653         (WebCore::DisplayRefreshMonitor::requestRefreshCallback):
1654         (WebCore::DisplayRefreshMonitor::displayLinkFired):
1655
1656 2012-03-14  Yury Semikhatsky  <yurys@chromium.org>
1657
1658         Web Inspector: use class name indexes instead of class names when evaluating aggregates
1659         https://bugs.webkit.org/show_bug.cgi?id=81100
1660
1661         Class name and type name indexes are now used when calculating class aggregates
1662         in heap snapshots instead of string lookup followed by a string comparison.
1663
1664         Class names like "Window / www.webkit.org" are now left as is in the UI (it used
1665         to be trimed to just "Window").
1666
1667         Reviewed by Pavel Feldman.
1668
1669         * inspector/front-end/HeapSnapshot.js:
1670         (WebInspector.HeapSnapshotNode.prototype.get classNameIndex):
1671         (WebInspector.HeapSnapshotNode.prototype.hasType):
1672         (WebInspector.HeapSnapshot.prototype._init):
1673         (WebInspector.HeapSnapshot.prototype._buildAggregates):
1674
1675 2012-03-14  Andrey Kosyakov  <caseq@chromium.org>
1676
1677         Web Inspector: add didCancelFrame timeline event
1678         https://bugs.webkit.org/show_bug.cgi?id=80994
1679
1680         Reviewed by Pavel Feldman.
1681
1682         - add an ability to cancel certain timeline events, unless they've been followed by other events.
1683         - implement didCancelFrame() event, fired when a platform decides not to render frame after didBeginFrame() was called.
1684
1685         Test: inspector/timeline/timeline-frames.html
1686
1687         * WebCore.exp.in:
1688         * inspector/InspectorInstrumentation.cpp:
1689         (WebCore::InspectorInstrumentation::didCancelFrameImpl):
1690         (WebCore):
1691         * inspector/InspectorInstrumentation.h:
1692         (InspectorInstrumentation):
1693         (WebCore::InspectorInstrumentation::didCancelFrame):
1694         (WebCore):
1695         * inspector/InspectorTimelineAgent.cpp:
1696         (WebCore::InspectorTimelineAgent::didBeginFrame):
1697         (WebCore):
1698         (WebCore::InspectorTimelineAgent::didCancelFrame):
1699         (WebCore::InspectorTimelineAgent::appendRecord):
1700         (WebCore::InspectorTimelineAgent::pushCurrentRecord):
1701         (WebCore::InspectorTimelineAgent::pushCancelableRecord):
1702         (WebCore::InspectorTimelineAgent::commitCancelableRecords):
1703         (WebCore::InspectorTimelineAgent::cancelRecord):
1704         * inspector/InspectorTimelineAgent.h:
1705         (InspectorTimelineAgent):
1706         (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
1707         (TimelineRecordEntry):
1708         * testing/Internals.cpp:
1709         (WebCore::Internals::emitInspectorDidBeginFrame):
1710         (WebCore):
1711         (WebCore::Internals::emitInspectorDidCancelFrame):
1712         * testing/Internals.h:
1713         (Internals):
1714         * testing/Internals.idl:
1715
1716 2012-03-14  Dana Jansens  <danakj@chromium.org>
1717
1718         Region can acquire an empty span by subtracting an empty Region
1719         https://bugs.webkit.org/show_bug.cgi?id=81074
1720
1721         Reviewed by Anders Carlsson.
1722
1723         Subtracting an empty Region B from a Region A can cause A to end
1724         up with an empty span. This violates the rule that two Regions
1725         that cover the exact same area should have equal spans and segments.
1726
1727         Unit test: RegionTest.emptySpan
1728
1729         * platform/graphics/Region.cpp:
1730         (WebCore::Region::subtract):
1731
1732 2012-03-14  Simon Hausmann  <simon.hausmann@nokia.com>
1733
1734         [Textmap] Disable driver based BGRA swizzling for OpenGL/ES
1735
1736         Reviewed by Noam Rosenthal.
1737
1738         The current way of detecting swizzling support (check for GL_EXT_texture_format_BGRA8888)
1739         is unfortunately not reliable. We need a better way of detection that (filed bug 81103).
1740         In the meantime this patch reverts back to doing the swizzling in the texture mapper to
1741         get pixels back onto the screen.
1742
1743         * platform/graphics/texmap/TextureMapperGL.cpp:
1744         (WebCore::driverSupportsBGRASwizzling):
1745         (WebCore::BitmapTextureGL::updateContents):
1746
1747 2012-03-14  Leo Yang  <leo.yang@torchmobile.com.cn>
1748
1749         [BlackBerry] Upstream the BlackBerry change to platform/Cursor.h
1750         https://bugs.webkit.org/show_bug.cgi?id=81086
1751
1752         Reviewed by Rob Buis.
1753
1754         * platform/Cursor.h:
1755         (WebCore):
1756         (WebCore::Cursor::Cursor):
1757         Add the BlackBerry specific PlatformCursor.
1758         * platform/blackberry/PageClientBlackBerry.h:
1759         There was an alias named PlatformCursorHandle for PlatformCursor
1760         in the internal version of Cursor.h. But it's not necessary so it's
1761         not included in the upstreaming version of Cursor.h. As a result,
1762         use PlatformCursor directly in this file.
1763         (PageClientBlackBerry):
1764
1765 2012-03-14  Simon Hausmann  <simon.hausmann@nokia.com>
1766
1767         [Qt] RunLoopQt is missing reentrancy guards
1768         https://bugs.webkit.org/show_bug.cgi?id=80982
1769
1770         Reviewed by Tor Arne Vestbø.
1771
1772         Avoid recursive calls to RunLoop::performWork() with a simple
1773         counting mechanism, to avoid out-of-order message dispatching.
1774
1775         * platform/qt/RunLoopQt.cpp:
1776         (WebCore::RunLoop::TimerObject::TimerObject):
1777         (WebCore::RunLoop::TimerObject::performWork):
1778         (RunLoop::TimerObject):
1779
1780 2012-03-14  Ilya Tikhonovsky  <loislo@chromium.org>
1781
1782         Web Inspector: small improvement for HeapSnapshot performance ~12%.
1783         https://bugs.webkit.org/show_bug.cgi?id=81033
1784
1785         Reviewed by Yury Semikhatsky.
1786
1787         * inspector/front-end/HeapSnapshot.js:
1788         (WebInspector.HeapSnapshot.prototype.get nodeCount):
1789         (WebInspector.HeapSnapshot.prototype.get maxNodeId):
1790         (WebInspector.HeapSnapshot.prototype._buildReverseIndex):
1791         (WebInspector.HeapSnapshot.prototype.get nodeIndexes):
1792         (WebInspector.HeapSnapshot.prototype._buildNodeIndex):
1793
1794 2012-03-14  Kentaro Hara  <haraken@chromium.org>
1795
1796         Return null when shouldAllowAccessToNode() fails
1797         https://bugs.webkit.org/show_bug.cgi?id=80205
1798
1799         Reviewed by Adam Barth.
1800
1801         shouldAllowAccessToNode() is used for window.frameElement, HTMLFrameElement.contentDocument,
1802         and getSVGDocument(). The spec of window.frameElement and HTMLFrameElement.contentDocument
1803         requires that they should return null when the security check fails.
1804         Thus this patch changes the return value from undefined to null.
1805
1806         http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#navigating-nested-browsing-contexts-in-the-dom
1807         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#dom-iframe-contentdocument
1808
1809         Tests: http/tests/security/local-iFrame-from-remote.html
1810                http/tests/security/cross-frame-access-frameelement.html
1811                http/tests/security/cross-frame-access-put.html
1812
1813         * bindings/scripts/CodeGeneratorJS.pm:
1814         (GenerateImplementation):
1815         * bindings/scripts/CodeGeneratorV8.pm:
1816         (GenerateNormalAttrGetter):
1817         (GenerateFunctionCallback):
1818
1819         * bindings/scripts/test/JS/JSTestObj.cpp: Updated run-bindings-tests results.
1820         (WebCore::jsTestObjContentDocument):
1821         (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
1822         * bindings/scripts/test/V8/V8TestObj.cpp:
1823         (WebCore::TestObjInternal::contentDocumentAttrGetter):
1824         (WebCore::TestObjInternal::getSVGDocumentCallback):
1825
1826 2012-03-14  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
1827
1828         Build error: DNSSoup.cpp:30: fatal error: CString.h: No such file or
1829         directory
1830         https://bugs.webkit.org/show_bug.cgi?id=81093
1831
1832         Reviewed by Philippe Normand.
1833
1834         Fix build error introduced by r110669.
1835
1836         * platform/network/soup/DNSSoup.cpp:
1837
1838 2012-03-14  Marja Hölttä  <marja@google.com>
1839
1840         WebHTTPBody: Keep track of whether the data includes passwords.
1841         https://bugs.webkit.org/show_bug.cgi?id=81003
1842
1843         Reviewed by Darin Fisher.
1844
1845         This change enables Chrome to save HTTP bodies selectively, only
1846         if they don't contain passwords.
1847
1848         * loader/FormSubmission.cpp:
1849         (WebCore::FormSubmission::create): Check if the data contains passwords.
1850         * platform/network/FormData.cpp:
1851         (WebCore::FormData::FormData): Added containsPasswordData, setContainsPasswordData.
1852         * platform/network/FormData.h:
1853         (WebCore::FormData::containsPasswordData): Added.
1854         (WebCore::FormData::setHasPasswordData): Added.
1855         (FormData):
1856
1857 2012-03-14  Vsevolod Vlasov  <vsevik@chromium.org>
1858
1859         Web Inspector: Add snippets tab to scripts navigator.
1860         https://bugs.webkit.org/show_bug.cgi?id=81018
1861
1862         Reviewed by Pavel Feldman.
1863
1864         * English.lproj/localizedStrings.js:
1865         * inspector/front-end/ScriptsNavigator.js:
1866         (WebInspector.ScriptsNavigator):
1867         (WebInspector.ScriptsNavigator.prototype.get defaultFocusedElement):
1868         (WebInspector.ScriptsNavigator.prototype.focus):
1869         (WebInspector.ScriptsNavigator.prototype._showScriptFoldersSettingChanged):
1870         (WebInspector.ScriptsNavigator.prototype.reset):
1871         (WebInspector.ScriptsNavigator.prototype._getOrCreateFolderTreeElement):
1872         (WebInspector.ScriptsNavigator.prototype._createFolderTreeElement):
1873         (WebInspector.ScriptsNavigator.prototype._getOrCreateSnippetEvaluationsFolderTreeElement):
1874         (WebInspector.ScriptsNavigator.prototype._scriptFolderIdentifier):
1875         (WebInspector.NavigatorTreeOutline):
1876         * inspector/front-end/ScriptsPanel.js:
1877         (WebInspector.ScriptsPanel.prototype._uiSourceCodeAdded):
1878         (WebInspector.ScriptsPanel.prototype._revealExecutionLine):
1879         * inspector/front-end/SnippetsModel.js:
1880
1881 2012-03-14  Pavel Feldman  <pfeldman@chromium.org>
1882
1883         Web Inspector: Copy on the Console gives a mangled result.
1884         https://bugs.webkit.org/show_bug.cgi?id=81091
1885
1886         Reviewed by Vsevolod Vlasov.
1887
1888         * inspector/front-end/ConsoleMessage.js:
1889         (WebInspector.ConsoleMessageImpl.prototype._formatMessage):
1890         (WebInspector.ConsoleMessageImpl.prototype._populateStackTraceTreeElement):
1891
1892 2012-03-14  Nikolas Zimmermann  <nzimmermann@rim.com>
1893
1894         External <use> xlink:href references do not work
1895         https://bugs.webkit.org/show_bug.cgi?id=12499
1896
1897         Reviewed by Zoltan Herczeg.
1898
1899         Follow-up fix after r110676.
1900         Assertions are firing due last minute changes in isExternalURIReference.
1901
1902         Fix detecting local resources properly, when the given iri contains a /complex/path.
1903         Use document->completeURL() instead, and compare with the document->url() to decide
1904         if its a local reference or not.
1905
1906         If an external document load fails with an error (eg. file missing) don't assert
1907         in debug builds, instead handle it gracefully.
1908
1909         I decided to clean the code up as well, to make it more safe & obvious.
1910
1911         Test: svg/custom/use-external-crash.svg
1912
1913         * svg/SVGURIReference.cpp:
1914         (WebCore::SVGURIReference::targetElementFromIRIString):
1915         * svg/SVGURIReference.h:
1916         (WebCore::SVGURIReference::isExternalURIReference):
1917         * svg/SVGUseElement.cpp:
1918         (WebCore::SVGUseElement::externalDocument):
1919         (WebCore::SVGUseElement::buildPendingResource):
1920
1921 2012-03-14  Lars Knudsen  <lars.knudsen@nokia.com>
1922
1923         3D transformed surfaces with z>0 gets cropped
1924         https://bugs.webkit.org/show_bug.cgi?id=81009
1925
1926         Reviewed by Noam Rosenthal.
1927
1928         The scissor clipping in TextureMapperGL didn't take 3D transforms 
1929         into account when calculating the clipping region.
1930         Now, it will bail out early if the transform is not affine.
1931
1932         No new tests. Tested by current compositing layout tests.
1933
1934         * platform/graphics/texmap/TextureMapperGL.cpp:
1935         (WebCore::TextureMapperGL::beginScissorClip):
1936
1937 2012-03-14  Hajime Morrita  <morrita@chromium.org>
1938
1939         Unreviewed build fix.
1940
1941         * html/track/TextTrackList.cpp:
1942         (TextTrackList::append):
1943         (TextTrackList::remove):
1944         (TextTrackList::owner): Changed return type from HTMLMediaElement* to Node* and uninlined.
1945         * html/track/TextTrackList.h:
1946         (TextTrackList):
1947
1948 2012-03-13  Vsevolod Vlasov  <vsevik@chromium.org>
1949
1950         Web Inspector: [InspectorIndexedDB] Remote object should be released when data view is removed/updated.
1951         https://bugs.webkit.org/show_bug.cgi?id=81022
1952
1953         Reviewed by Pavel Feldman.
1954
1955         * inspector/front-end/IndexedDBViews.js:
1956         (WebInspector.IDBDataView):
1957         (WebInspector.IDBDataView.prototype._updateData.callback):
1958         (WebInspector.IDBDataView.prototype._updateData):
1959         (WebInspector.IDBDataView.prototype.get statusBarItems):
1960         (WebInspector.IDBDataView.prototype.clear):
1961         * inspector/front-end/ResourcesPanel.js:
1962         (WebInspector.IndexedDBTreeElement.prototype._indexedDBRemoved):
1963         (WebInspector.IDBDatabaseTreeElement.prototype.update):
1964         (WebInspector.IDBDatabaseTreeElement.prototype.onselect):
1965         (WebInspector.IDBDatabaseTreeElement.prototype._objectStoreRemoved):
1966         (WebInspector.IDBDatabaseTreeElement.prototype.clear):
1967         (WebInspector.IDBObjectStoreTreeElement.prototype.update):
1968         (WebInspector.IDBObjectStoreTreeElement.prototype.onselect):
1969         (WebInspector.IDBObjectStoreTreeElement.prototype._indexRemoved):
1970         (WebInspector.IDBObjectStoreTreeElement.prototype.clear):
1971         (WebInspector.IDBIndexTreeElement.prototype.onselect):
1972         (WebInspector.IDBIndexTreeElement.prototype.clear):
1973
1974 2012-03-12  Vsevolod Vlasov  <vsevik@chromium.org>
1975
1976         Web Inspector: Introduce SnippetsScriptMapping.
1977         https://bugs.webkit.org/show_bug.cgi?id=80890
1978
1979         Reviewed by Pavel Feldman.
1980
1981         * inspector/front-end/ScriptMapping.js:
1982         (WebInspector.MainScriptMapping):
1983         (WebInspector.MainScriptMapping.prototype.addScript):
1984         (WebInspector.MainScriptMapping.prototype._mappingForScript):
1985         * inspector/front-end/SnippetsModel.js:
1986         (WebInspector.SnippetsModel.prototype.snippetForId):
1987         (WebInspector.SnippetsModel.prototype.snippetForSourceURL):
1988         (WebInspector.SnippetsScriptMapping):
1989         (WebInspector.SnippetsScriptMapping.prototype.uiSourceCodeList):
1990         (WebInspector.SnippetsScriptMapping.prototype.addScript):
1991         (WebInspector.SnippetsScriptMapping.prototype._snippetAdded):
1992         (WebInspector.SnippetsScriptMapping.prototype._releaseSnippetScript.get if):
1993         (WebInspector.SnippetsScriptMapping.prototype._releaseSnippetScript):
1994         (WebInspector.SnippetsScriptMapping.prototype._snippetDeleted.get this):
1995         (WebInspector.SnippetsScriptMapping.prototype._snippetDeleted):
1996         (WebInspector.SnippetsScriptMapping.prototype.reset):
1997         (WebInspector.SnippetContentProvider):
1998
1999 2012-03-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2000
2001         Unreviewed, rolling out r110673.
2002         http://trac.webkit.org/changeset/110673
2003         https://bugs.webkit.org/show_bug.cgi?id=81090
2004
2005         "Qt minimal build broken" (Requested by yurys on #webkit).
2006
2007         * inspector/CodeGeneratorInspector.py:
2008         (CommandReturnPassModel.ByPointer.get_set_return_condition):
2009         (TypeModel.Enum.get_optional.EnumOptional.get_command_return_pass_model):
2010         (TypeModel.ValueType.ValueOptional.get_command_return_pass_model):
2011         (Generator.process_event):
2012         (Generator.process_command):
2013         * inspector/ContentSearchUtils.cpp:
2014         (WebCore::ContentSearchUtils::buildObjectForSearchMatch):
2015         (WebCore::ContentSearchUtils::searchInTextByLines):
2016         * inspector/ContentSearchUtils.h:
2017         (ContentSearchUtils):
2018         * inspector/InjectedScript.cpp:
2019         (WebCore::InjectedScript::evaluate):
2020         (WebCore::InjectedScript::callFunctionOn):
2021         (WebCore::InjectedScript::evaluateOnCallFrame):
2022         (WebCore::InjectedScript::makeEvalCall):
2023         * inspector/InjectedScript.h:
2024         (InjectedScript):
2025         * inspector/InspectorDOMDebuggerAgent.cpp:
2026         (WebCore::InspectorDOMDebuggerAgent::didInvalidateStyleAttr):
2027         (WebCore::InspectorDOMDebuggerAgent::willInsertDOMNode):
2028         (WebCore::InspectorDOMDebuggerAgent::willRemoveDOMNode):
2029         (WebCore::InspectorDOMDebuggerAgent::willModifyDOMAttr):
2030         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
2031         (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
2032         * inspector/InspectorDebuggerAgent.cpp:
2033         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
2034         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2035         (WebCore::InspectorDebuggerAgent::searchInContent):
2036         (WebCore::InspectorDebuggerAgent::setScriptSource):
2037         (WebCore::InspectorDebuggerAgent::getFunctionDetails):
2038         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
2039         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
2040         (WebCore::InspectorDebuggerAgent::didPause):
2041         (WebCore::InspectorDebuggerAgent::breakProgram):
2042         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
2043         * inspector/InspectorDebuggerAgent.h:
2044         (InspectorDebuggerAgent):
2045         * inspector/InspectorPageAgent.cpp:
2046         (WebCore::buildObjectForCookie):
2047         (WebCore::buildArrayForCookies):
2048         (WebCore::InspectorPageAgent::getCookies):
2049         (WebCore::InspectorPageAgent::getResourceTree):
2050         (WebCore::InspectorPageAgent::searchInResource):
2051         (WebCore::InspectorPageAgent::searchInResources):
2052         (WebCore::InspectorPageAgent::buildObjectForFrame):
2053         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
2054         * inspector/InspectorPageAgent.h:
2055         * inspector/InspectorRuntimeAgent.cpp:
2056         (WebCore::InspectorRuntimeAgent::evaluate):
2057         (WebCore::InspectorRuntimeAgent::callFunctionOn):
2058
2059 2012-03-14  Renata Hodovan  <reni@webkit.org>
2060
2061         External <use> xlink:href references do not work
2062         https://bugs.webkit.org/show_bug.cgi?id=12499
2063
2064         Reviewed by Nikolas Zimmermann.
2065
2066         This is a follow-up patch after r108785.
2067         In this patch we bind the previously introduced CachedSVGDocument class
2068         into the caching mechanism of SVGUseElement. The mode how external resources
2069         are handled is similar to the processing of internal ones. We build the instance
2070         and shadow tree the same way but we have to keep in mind that the requested resources
2071         maybe not loaded yet. We can check it with cachedDocumentIsStillLoading() function.
2072
2073         SVGURIReference::targetElementFromIRIString() also need to be extended. The baseURI
2074         computation needs to take the referenced documents URL into account, instead of the current documents.
2075
2076         The patch affects a lot of tests which have external resources especially in svg/batik. Because
2077         of the size of that test refactor they will be commited in a follow-up patch.
2078
2079         Tests: svg/W3C-SVG-1.2-Tiny/struct-use-recursion-01-t.svg
2080                svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t.svg
2081                svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t.svg
2082                svg/custom/use-extern-href.svg
2083                svg/custom/use-referencing-an-image-expected.svg
2084                svg/custom/use-referencing-an-image.svg
2085                svg/custom/use-referencing-indirectly-itself-expected.svg
2086                svg/custom/use-referencing-indirectly-itself.svg
2087                svg/custom/use-referencing-itself-expected.svg
2088                svg/custom/use-referencing-itself.svg
2089                svg/dynamic-updates/SVGUseElement-dom-href1-attr.html
2090                svg/dynamic-updates/SVGUseElement-dom-href2-attr.html
2091                svg/dynamic-updates/SVGUseElement-svgdom-href1-prop.html
2092                svg/dynamic-updates/SVGUseElement-svgdom-href2-prop.html
2093
2094         * loader/cache/CachedResourceLoader.cpp:
2095         (WebCore):
2096         (WebCore::CachedResourceLoader::requestSVGDocument):
2097         * loader/cache/CachedResourceLoader.h:
2098         (WebCore):
2099         (CachedResourceLoader):
2100         * page/ContentSecurityPolicy.h:
2101         * platform/KURL.cpp:
2102         (WebCore::equalIgnoringFragmentIdentifier):
2103         * platform/network/chromium/ResourceRequest.h:
2104         * svg/SVGURIReference.cpp:
2105         (WebCore::urlFromIRIStringWithFragmentIdentifier):
2106         (WebCore):
2107         (WebCore::SVGURIReference::targetElementFromIRIString):
2108         * svg/SVGURIReference.h:
2109         (SVGURIReference):
2110         (WebCore::SVGURIReference::isExternalURIReference):
2111         * svg/SVGUseElement.cpp:
2112         (WebCore::SVGUseElement::SVGUseElement):
2113         (WebCore::SVGUseElement::~SVGUseElement):
2114         (WebCore):
2115         (WebCore::SVGUseElement::referencedDocument):
2116         (WebCore::SVGUseElement::externalDocument):
2117         (WebCore::SVGUseElement::svgAttributeChanged):
2118         (WebCore::dumpInstanceTree):
2119         (WebCore::SVGUseElement::buildPendingResource):
2120         (WebCore::SVGUseElement::buildShadowAndInstanceTree):
2121         (WebCore::SVGUseElement::hasCycleUseReferencing):
2122         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
2123         (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
2124         (WebCore::SVGUseElement::notifyFinished):
2125         (WebCore::SVGUseElement::cachedDocumentIsStillLoading):
2126         (WebCore::SVGUseElement::instanceTreeIsLoading):
2127         * svg/SVGUseElement.h:
2128         (WebCore):
2129         (SVGUseElement):
2130
2131 2012-03-14  Peter Rybin  <peter.rybin@gmail.com>
2132
2133         Web Inspector: TypeBuilder: Introduce OptOutput class for optional output parameters
2134         https://bugs.webkit.org/show_bug.cgi?id=80789
2135
2136         Reviewed by Yury Semikhatsky.
2137
2138         OptOutput class is added for optional return parameters.
2139
2140         Strict mode added to Generator that makes all parameter types strict
2141         and drop pre-set default values for return parameters.
2142
2143         Debugger and Page domain is switched to strict mode.
2144
2145
2146         * inspector/CodeGeneratorInspector.py:
2147         (CommandReturnPassModel.ByPointer):
2148         (CommandReturnPassModel):
2149         (CommandReturnPassModel.OptOutput):
2150         (CommandReturnPassModel.OptOutput.__init__):
2151         (CommandReturnPassModel.OptOutput.get_return_var_type):
2152         (CommandReturnPassModel.OptOutput.get_output_argument_prefix):
2153         (CommandReturnPassModel.OptOutput.get_output_to_raw_expression):
2154         (CommandReturnPassModel.OptOutput.get_output_parameter_type):
2155         (CommandReturnPassModel.OptOutput.get_set_return_condition):
2156         (TypeModel.Enum.get_optional.EnumOptional.get_command_return_pass_model):
2157         (TypeModel.ValueType.ValueOptional.get_command_return_pass_model):
2158         (OptOutput):
2159         (Generator.process_event):
2160         (Generator.process_command):
2161         * inspector/ContentSearchUtils.cpp:
2162         (WebCore::ContentSearchUtils::buildObjectForSearchMatch):
2163         (WebCore::ContentSearchUtils::searchInTextByLines):
2164         * inspector/ContentSearchUtils.h:
2165         (ContentSearchUtils):
2166         * inspector/InjectedScript.cpp:
2167         (WebCore::InjectedScript::evaluate):
2168         (WebCore::InjectedScript::callFunctionOn):
2169         (WebCore::InjectedScript::evaluateOnCallFrame):
2170         (WebCore::InjectedScript::makeEvalCall):
2171         * inspector/InjectedScript.h:
2172         (InjectedScript):
2173         * inspector/InspectorDOMDebuggerAgent.cpp:
2174         (WebCore):
2175         * inspector/InspectorDebuggerAgent.cpp:
2176         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
2177         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2178         (WebCore::InspectorDebuggerAgent::searchInContent):
2179         (WebCore::InspectorDebuggerAgent::setScriptSource):
2180         (WebCore::InspectorDebuggerAgent::getFunctionDetails):
2181         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
2182         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
2183         (WebCore::InspectorDebuggerAgent::didPause):
2184         (WebCore::InspectorDebuggerAgent::breakProgram):
2185         (WebCore::InspectorDebuggerAgent::clearBreakDetails):
2186         * inspector/InspectorDebuggerAgent.h:
2187         (InspectorDebuggerAgent):
2188         * inspector/InspectorPageAgent.cpp:
2189         (WebCore::buildObjectForCookie):
2190         (WebCore::buildArrayForCookies):
2191         (WebCore::InspectorPageAgent::getCookies):
2192         (WebCore::InspectorPageAgent::getResourceTree):
2193         (WebCore::InspectorPageAgent::searchInResource):
2194         (WebCore::InspectorPageAgent::searchInResources):
2195         (WebCore::InspectorPageAgent::buildObjectForFrame):
2196         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
2197         * inspector/InspectorPageAgent.h:
2198         * inspector/InspectorRuntimeAgent.cpp:
2199         (WebCore::InspectorRuntimeAgent::evaluate):
2200         (WebCore::InspectorRuntimeAgent::callFunctionOn):
2201
2202 2012-03-14  Sergio Villar Senin  <svillar@igalia.com>
2203
2204         Unreviewed. Build fix for EFL after r110669.
2205
2206         * PlatformEfl.cmake: added DNSSoup.cpp
2207
2208 2012-03-13  Sergio Villar Senin  <svillar@igalia.com>
2209
2210         [GTK] Use the same DNS prefetching path than the other ports.
2211         https://bugs.webkit.org/show_bug.cgi?id=80997
2212
2213         Reviewed by Martin Robinson.
2214
2215         This patch basically reverts r56128. There is no need to add an
2216         special code path for GTK+ DNS pre-fetching because the main
2217         reason to do that (some potential changes in libsoup) is not
2218         going to happen. It also reduces the amount of DNS queries by
2219         adding a NULL hostname check.
2220
2221         No need for new tests as this just moves code around.
2222
2223         * GNUmakefile.list.am:
2224         * html/HTMLAnchorElement.cpp:
2225         (WebCore::HTMLAnchorElement::parseAttribute):
2226         * html/HTMLLinkElement.cpp:
2227         * loader/LinkLoader.cpp:
2228         (WebCore::LinkLoader::loadLink):
2229         * page/Chrome.cpp:
2230         (WebCore::Chrome::mouseDidMoveOverElement):
2231         * platform/network/DNS.h:
2232         (WebCore):
2233         * platform/network/ResourceHandle.cpp:
2234         * platform/network/ResourceHandle.h:
2235         (ResourceHandle):
2236         * platform/network/chromium/DNSChromium.cpp:
2237         * platform/network/soup/DNSSoup.cpp: restored.
2238         (WebCore):
2239         (WebCore::prefetchDNS):
2240         * platform/network/soup/ResourceHandleSoup.cpp:
2241
2242 2012-03-14  Kentaro Hara  <haraken@chromium.org>
2243
2244         Return null when shouldAllowAccessToNode() fails
2245         https://bugs.webkit.org/show_bug.cgi?id=80205
2246
2247         Reviewed by Adam Barth.
2248
2249         shouldAllowAccessToNode() is used for window.frameElement, HTMLFrameElement.contentDocument,
2250         and getSVGDocument(). The spec of window.frameElement and HTMLFrameElement.contentDocument
2251         requires that they should return null when the security check fails.
2252         Thus this patch changes the return value from undefined to null.
2253
2254         http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#navigating-nested-browsing-contexts-in-the-dom
2255         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#dom-iframe-contentdocument
2256
2257         Tests: http/tests/security/local-iFrame-from-remote.html
2258                http/tests/security/cross-frame-access-frameelement.html
2259                http/tests/security/cross-frame-access-put.html
2260
2261         * bindings/scripts/CodeGeneratorJS.pm:
2262         (GenerateImplementation):
2263         * bindings/scripts/CodeGeneratorV8.pm:
2264         (GenerateNormalAttrGetter):
2265         (GenerateFunctionCallback):
2266
2267         * bindings/scripts/test/JS/JSTestObj.cpp: Updated run-bindings-tests results.
2268         (WebCore::jsTestObjContentDocument):
2269         (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
2270         * bindings/scripts/test/V8/V8TestObj.cpp:
2271         (WebCore::TestObjInternal::contentDocumentAttrGetter):
2272         (WebCore::TestObjInternal::getSVGDocumentCallback):
2273
2274 2012-03-13  Yosifumi Inoue  <yosin@chromium.org>
2275
2276         [Forms] Hidden input element should not have labels. 
2277         https://bugs.webkit.org/show_bug.cgi?id=80403
2278
2279         Reviewed by Kent Tamura.
2280
2281         This patch changes "labels" attribute behavior for hidden input type.
2282         It returns null instead of NodeList of labels or empty node list.
2283
2284         Note: The HTML5 specification isn't clear for non-labelable element's "labels"
2285         attribute return value. Firefox and Opera return empty node list. IE returns null.
2286
2287         No new tests. Existing tests are updated.
2288
2289         * html/HTMLInputElement.cpp:
2290         (WebCore::HTMLInputElement::isLabelable): Added. Dispatch to InputType.
2291         * html/HiddenInputType.h:  Added isLabelable returning false.
2292         * html/InputType.cpp:
2293         (WebCore::InputType::isLabelable): Added. Returning true for all input types except for "hidden" type.
2294         (WebCore):
2295         * html/InputType.h:
2296         (InputType): Added isLabelable declaration.
2297
2298 2012-03-13  Yosifumi Inoue  <yosin@chromium.org>
2299
2300         [Forms] The "output" element should have labels.
2301         https://bugs.webkit.org/show_bug.cgi?id=80466
2302
2303         Reviewed by Kent Tamura.
2304
2305         This patch enables functionality of "labels" attribute for
2306         HTMLOutputElement implemented in LabelableElement which use
2307         isLabelable predicate whether an element can have label or not.
2308
2309         Update existing tests in fast/forms/label/ directory to cover
2310         the "output" element with the "labels" attribute.
2311
2312         * html/HTMLOutputElement.h: Implement virtual method isLabelable.
2313
2314 2012-03-13  Luke Macpherson   <macpherson@chromium.org>
2315
2316         Move opacity clamping into RenderStyle setter.
2317         https://bugs.webkit.org/show_bug.cgi?id=76966
2318
2319         Reviewed by Eric Seidel.
2320
2321         Covered by existing tests.
2322
2323         * css/CSSStyleSelector.cpp:
2324         (WebCore::CSSStyleSelector::applyProperty):
2325         * rendering/style/RenderStyle.h:
2326         (WebCore::RenderStyleBitfields::setOpacity):
2327
2328 2012-03-12  Igor Oliveira  <igor.o@sisa.samsung.com>
2329
2330         Split the extra logic out of RenderObjectChildList::updateBeforeAfterContent
2331         https://bugs.webkit.org/show_bug.cgi?id=80856
2332
2333         Extra part of the generated content handling logic out of RenderObjectChildList::updateBeforeAfterContent
2334
2335         Reviewed by Julien Chaffraix.
2336
2337         No change in behavior expected.
2338
2339         * rendering/RenderObjectChildList.cpp:
2340         (WebCore::RenderObjectChildList::updateBeforeAfterStyle):
2341         (WebCore::createRenderForBeforeAfterContent):
2342         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2343         * rendering/RenderObjectChildList.h:
2344         (WebCore):
2345         (RenderObjectChildList):
2346
2347 2012-03-13  Simon Fraser  <simon.fraser@apple.com>
2348
2349         Fix potential crash when loading test results
2350         https://bugs.webkit.org/show_bug.cgi?id=81062
2351         <rdar://problem/11041732>
2352         
2353         Reviewed by Dean Jackson.
2354
2355         If RenderLayerBacking::isSimpleContainerCompositingLayer() is called early,
2356         before the document has a documentElement(), then it crashes. Fix with
2357         a null check on documentElement().
2358         
2359         No test because it's timing dependent.
2360
2361         * rendering/RenderLayerBacking.cpp:
2362         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
2363
2364 2012-03-13  Dan Bernstein  <mitz@apple.com>
2365
2366         <rdar://problem/11025225> Assertion failure in RenderView::computeRectForRepaint() (!repaintContainer || repaintContainer == this) at store.apple.com
2367         https://bugs.webkit.org/show_bug.cgi?id=81051
2368
2369         Reviewed by Simon Fraser.
2370
2371         Test: ManualTests/inline-repaint-container.html.
2372
2373         * rendering/RenderInline.cpp:
2374         (WebCore::RenderInline::clippedOverflowRectForRepaint): This function was not handling the
2375         case of the repaint container being a descendant of the containing block correctly, leading
2376         to the assertion failure, but also to a correctness bug seen in the new test. If the repaint
2377         container is a descendant of the containing block, just return the rect in the repaint
2378         container coordinates.
2379
2380 2012-03-13  Dan Bernstein  <mitz@apple.com>
2381
2382         <rdar://problem/11025217> [Mac] Assertion failure in collectComplexTextRunsForCharactersCoreText
2383         https://bugs.webkit.org/show_bug.cgi?id=77044
2384
2385         Reviewed by Sam Weinig.
2386
2387         Test: platform/mac/fast/text/core-text-fallback-to-unknown-font.html
2388
2389         Handle the case of Core Text choosing a fallback font that NSFontManager cannot find by name.
2390
2391         * platform/graphics/FontCache.h:
2392         (FontCache): Made ComplexTextController a friend class.
2393         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
2394         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Removed the
2395         failing assertion, which was not true, and added code to handle the case where a font
2396         cannot be found by name by using the font as returned from Core Text.
2397
2398 2012-03-13  Erik Arvidsson  <arv@chromium.org>
2399
2400         [V8] Use v8::V8::AddImplicitReferences instead of SetHiddenValue
2401         https://bugs.webkit.org/show_bug.cgi?id=80880
2402
2403         Reviewed by Adam Barth.
2404
2405         We used to add a hidden property in the getter to the returned wrapper.
2406         With this patch we instead handle the liveness of the wrapper in the GC phase by
2407         calling v8::V8::AddHiddenReference.
2408
2409         To reduce the amount of custom code we need, the V8 code generator now supports
2410         GenerateIsReachable (as well as CustomIsReachable) which, even though different
2411         from the JSC attribute, is used in the same cases and takes the same values (even though
2412         at the moment not all JSC values are supported by V8). Interfaces that have *IsReachable
2413         also have a dependent life time (just like if V8DependentLifetime was present).
2414
2415         Second try. This time with an added include in TextTrackList.cpp.
2416
2417         No new tests. Covered by existing tests.
2418
2419         * Target.pri:
2420         * UseV8.cmake:
2421         * WebCore.gypi:
2422         * bindings/scripts/CodeGeneratorJS.pm:
2423         (GetGenerateIsReachable):
2424         (GetCustomIsReachable):
2425         (GenerateHeader):
2426         (GenerateImplementation):
2427         * bindings/scripts/CodeGeneratorV8.pm:
2428         (NeedsToVisitDOMWrapper):
2429         (GetGenerateIsReachable):
2430         (GetCustomIsReachable):
2431         (GenerateVisitDOMWrapper):
2432         (GenerateHeader):
2433         (GenerateNamedConstructorCallback):
2434         (GenerateImplementation):
2435         * bindings/scripts/IDLAttributes.txt:
2436         * bindings/scripts/test/V8/V8Float64Array.cpp:
2437         (WebCore):
2438         * bindings/scripts/test/V8/V8Float64Array.h:
2439         (V8Float64Array):
2440         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2441         (WebCore):
2442         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
2443         (V8TestActiveDOMObject):
2444         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2445         (WebCore):
2446         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
2447         (V8TestCustomNamedGetter):
2448         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2449         (WebCore):
2450         * bindings/scripts/test/V8/V8TestEventConstructor.h:
2451         (V8TestEventConstructor):
2452         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2453         (WebCore):
2454         * bindings/scripts/test/V8/V8TestEventTarget.h:
2455         (V8TestEventTarget):
2456         * bindings/scripts/test/V8/V8TestInterface.cpp:
2457         (WebCore):
2458         * bindings/scripts/test/V8/V8TestInterface.h:
2459         (V8TestInterface):
2460         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2461         (WebCore):
2462         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
2463         (V8TestMediaQueryListListener):
2464         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2465         (WebCore):
2466         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
2467         (V8TestNamedConstructor):
2468         * bindings/scripts/test/V8/V8TestObj.cpp:
2469         (WebCore):
2470         * bindings/scripts/test/V8/V8TestObj.h:
2471         (V8TestObj):
2472         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2473         (WebCore):
2474         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
2475         (V8TestSerializedScriptValueInterface):
2476         * bindings/v8/NPV8Object.cpp:
2477         (WebCore::npObjectTypeInfo):
2478         * bindings/v8/V8GCController.cpp:
2479         (WebCore::GrouperVisitor::visitDOMWrapper):
2480         * bindings/v8/WrapperTypeInfo.h:
2481         (WebCore):
2482         (WrapperTypeInfo):
2483         * bindings/v8/custom/V8CSSStyleSheetCustom.cpp: Removed.
2484         * bindings/v8/custom/V8DOMStringMapCustom.cpp:
2485         * bindings/v8/custom/V8DOMTokenListCustom.cpp: Removed.
2486         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2487         (WebCore):
2488         * bindings/v8/custom/V8NamedNodeMapCustom.cpp:
2489         * bindings/v8/custom/V8StyleSheetCustom.cpp:
2490         (WebCore::toV8):
2491         * css/CSSStyleSheet.idl:
2492         * css/StyleSheet.idl:
2493         * dom/DOMStringMap.idl:
2494         * dom/NamedNodeMap.idl:
2495         * html/DOMTokenList.idl:
2496         * html/track/TextTrackList.cpp:
2497         * html/track/TextTrackList.idl:
2498
2499 2012-03-13  Jacky Jiang  <zhajiang@rim.com>
2500
2501         MathML crash in WebCore::Node::previousSibling()
2502         https://bugs.webkit.org/show_bug.cgi?id=80773
2503
2504         Reviewed by Julien Chaffraix.
2505
2506         When adding child for msub render, if the child is mtr or mtd render,
2507         we will creat an anonymous render as the container. As the anonymous
2508         render's node is 0, accessing it directly can cause crash.
2509         We should do a valid check of the node before using. In addition to
2510         that, for msub, attach the anonymous render and it's children to render
2511         tree. For msubsup, such kind of situation should never happen based on
2512         the current codebase.
2513
2514         Test: mathml/msub-anonymous-child-render-crash.html
2515
2516         * rendering/mathml/RenderMathMLSubSup.cpp:
2517         (WebCore::RenderMathMLSubSup::addChild):
2518
2519 2012-03-13  Mihnea Ovidenie  <mihnea@adobe.com>
2520
2521         [CSSRegions]NamedFlow::getRegionsByContentNode should not return a live NodeList
2522         https://bugs.webkit.org/show_bug.cgi?id=81021
2523
2524         Reviewed by Ryosuke Niwa.
2525
2526         Reverting the original patch as we need a better solution.
2527
2528         * CMakeLists.txt:
2529         * GNUmakefile.list.am:
2530         * Target.pri:
2531         * WebCore.gypi:
2532         * WebCore.vcproj/WebCore.vcproj:
2533         * WebCore.xcodeproj/project.pbxproj:
2534         * dom/Node.cpp:
2535         (WebCore::NodeListsNodeData::invalidateCaches):
2536         (WebCore::NodeListsNodeData::isEmpty):
2537         * dom/Node.h:
2538         (Node):
2539         * dom/NodeRareData.h:
2540         (NodeListsNodeData):
2541         * dom/RegionNodeList.cpp: Removed.
2542         * dom/RegionNodeList.h: Removed.
2543         * dom/WebKitNamedFlow.cpp:
2544         * dom/WebKitNamedFlow.h:
2545         (WebKitNamedFlow):
2546         * dom/WebKitNamedFlow.idl:
2547         * rendering/RenderFlowThread.cpp:
2548         * rendering/RenderFlowThread.h:
2549         * rendering/RenderRegion.h:
2550         (RenderRegion):
2551
2552 2012-03-13  Shawn Singh  <shawnsingh@chromium.org>
2553
2554         [chromium] wrong transform causing incorrect culling
2555         https://bugs.webkit.org/show_bug.cgi?id=80471
2556
2557         Reviewed by James Robinson.
2558
2559         Unit test added to CCRenderSurfaceTest.cpp
2560
2561         In addition to using originTransform() instead of drawTransform(),
2562         this patch shuffles a bit of code so that a unit test can be
2563         easily added.
2564
2565         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2566         (WebCore::CCRenderPass::appendQuadsForRenderSurfaceLayer):
2567         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
2568         (WebCore::CCRenderSurface::createSharedQuadState):
2569         (WebCore):
2570         * platform/graphics/chromium/cc/CCRenderSurface.h:
2571         (CCRenderSurface):
2572
2573 2012-03-13  Dave Tharp  <dtharp@codeaurora.org>
2574
2575         Alternate xml-stylesheets with no title are loaded, in violation of the CSSOM draft
2576         https://bugs.webkit.org/show_bug.cgi?id=77549
2577
2578         Reviewed by David Hyatt.
2579
2580         Amended code to ignore alternate stylesheets that do not have a title attribute.
2581
2582         Test: fast/css/xml-stylesheet-alternate-no-title.xhtml
2583
2584         * dom/ProcessingInstruction.cpp:
2585         (WebCore::ProcessingInstruction::checkStyleSheet):
2586
2587 2012-03-13  Levi Weintraub  <leviw@chromium.org>
2588
2589         Revert RenderLayer::absoluteBoundingBox to an IntRect
2590         https://bugs.webkit.org/show_bug.cgi?id=81017
2591
2592         Reviewed by Eric Seidel.
2593
2594         Reverting RenderLayer::absoluteBoundingBox to an (pixel snapped) IntRect. Whenever
2595         possible, we use integers representing for absolute coordinates. This is especially
2596         relevant for methods, such as this one, that are exported and used in platform code.
2597
2598         No new tests. No change in behavior.
2599
2600         * rendering/RenderLayer.cpp:
2601         (WebCore::RenderLayer::absoluteBoundingBox):
2602         * rendering/RenderLayer.h:
2603         (RenderLayer):
2604         * rendering/RenderLayerCompositor.cpp:
2605         (WebCore::RenderLayerCompositor::requiresCompositingForPosition): This intersects
2606         the absolute bounding box with the FrameView, which uses all integer values. It's
2607         the only use of absoluteBoundingBox in WebCore.
2608
2609 2012-03-13  Nat Duca  <nduca@chromium.org>
2610
2611         [chromium] vsync ticks are needed in invisible tabs when we are still updating resources
2612         https://bugs.webkit.org/show_bug.cgi?id=80910
2613
2614         Reviewed by James Robinson.
2615
2616         * platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
2617         (WebCore::CCSchedulerStateMachine::vsyncCallbackNeeded):
2618
2619 2012-03-13  Dave Tharp  <dtharp@codeaurora.org>
2620
2621         Alternate stylesheets (without title attribute) are loaded on refresh
2622         https://bugs.webkit.org/show_bug.cgi?id=24354
2623
2624         Reviewed by David Hyatt.
2625
2626         Alternate stylesheets are now ignored in <link> tags if 
2627         they have no title attribute (per spec).
2628
2629         Tests: fast/css/link-alternate-stylesheet-1.html
2630                fast/css/link-alternate-stylesheet-2.html
2631                fast/css/link-alternate-stylesheet-3.html
2632                fast/css/link-alternate-stylesheet-4.html
2633                fast/css/link-alternate-stylesheet-5.html
2634
2635         * dom/Document.cpp:
2636         (WebCore::Document::collectActiveStylesheets):
2637
2638 2012-03-13  Dana Jansens  <danakj@chromium.org>
2639
2640         Region::contains(IntPoint) is slow
2641         https://bugs.webkit.org/show_bug.cgi?id=81008
2642
2643         Reviewed by Anders Carlsson.
2644
2645         Speed up Region::contains(IntPoint) by directly testing if the point
2646         is inside the Region's shape, rather than using a temporary 1x1 Region
2647         for the test.
2648
2649         Unit test: RegionTest.containsPoint
2650
2651         * platform/graphics/Region.cpp:
2652         (WebCore::Region::contains):
2653
2654 2012-03-13  Adrienne Walker  <enne@google.com>
2655
2656         [chromium] Mark root layer scrollbars as always opaque to disable blending
2657         https://bugs.webkit.org/show_bug.cgi?id=79951
2658
2659         Reviewed by James Robinson.
2660
2661         Now that scrollbar layers exist, mark non-overlay root scrollbars as
2662         opaque. This disables blending for correctness and performance.
2663
2664         * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
2665         (WebCore::scrollbarLayerDidChange):
2666         (WebCore::ScrollingCoordinator::frameViewHorizontalScrollbarLayerDidChange):
2667         (WebCore::ScrollingCoordinator::frameViewVerticalScrollbarLayerDidChange):
2668         * platform/graphics/chromium/LayerRendererChromium.cpp:
2669         (WebCore::LayerRendererChromium::drawTileQuad):
2670
2671 2012-03-13  Gavin Peters  <gavinp@chromium.org>
2672
2673         Remove vestigal abortEvent from image attribute.
2674         https://bugs.webkit.org/show_bug.cgi?id=80795
2675
2676         Reviewed by Adam Barth.
2677
2678         It seems we installed a listener for the abort event on images,
2679         but never ever raised them.  So this patch removes it.  This could
2680         cause different behaviour if the user sends abort events directly
2681         at an image element, although addEventListener will still work.
2682
2683         * html/HTMLImageElement.cpp:
2684         (WebCore::HTMLImageElement::parseAttribute):
2685
2686 2012-03-13  Nate Chapin  <japhet@chromium.org>
2687
2688         Rework how a CachedRawResource decides if it can be reused
2689         for a given ResourceRequest. Ensure method, body, cookie policy,
2690         and all headers match.
2691         http://bugs.webkit.org/show_bug.cgi?id=79325
2692
2693         Reviewed by Oliver Hunt.
2694
2695         Test: http/tests/cache/xhr-body.html
2696
2697         * loader/cache/CachedRawResource.cpp:
2698         (WebCore::CachedRawResource::canReuse):
2699         * loader/cache/CachedRawResource.h: Take a ResourceRequest in canReuse().
2700         * loader/cache/CachedResourceLoader.cpp:
2701         (WebCore::CachedResourceLoader::determineRevalidationPolicy): Remove Range header
2702             check, since it is now redundant.
2703
2704 2012-03-13  Rob Buis  <rbuis@rim.com>
2705
2706         Fix cast-align GCC warning
2707         https://bugs.webkit.org/show_bug.cgi?id=80790
2708
2709         Reviewed by Dan Bates.
2710
2711         This touches unpackOneRowOfBGRA8ToRGBA8.
2712
2713         * platform/graphics/GraphicsContext3D.cpp:
2714         (WebCore):
2715
2716 2012-03-12  Simon Fraser  <simon.fraser@apple.com>
2717
2718         Refactor some code that is used to check whether a layer needs backing store
2719         https://bugs.webkit.org/show_bug.cgi?id=80917
2720
2721         Reviewed by Dean Jackson.
2722
2723         Move some code out of isSimpleContainerCompositingLayer() in two new
2724         methods to make the code more self-descriptive.
2725         
2726         No behavior change, so no tests.
2727
2728         * rendering/RenderLayerBacking.cpp:
2729         (WebCore::RenderLayerBacking::paintsBoxDecorations):
2730         (WebCore::RenderLayerBacking::paintsChildren):
2731         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
2732         * rendering/RenderLayerBacking.h:
2733         (RenderLayerBacking):
2734
2735 2012-03-13  Daniel Bates  <dbates@webkit.org>
2736
2737         REGRESSION(r99369): File input button doesn't highlight when pressed
2738         https://bugs.webkit.org/show_bug.cgi?id=79385
2739
2740         Reviewed by Kent Tamura.
2741
2742         Fixes an issue where the file input button doesn't highlight on mouse press.
2743
2744         Currently we always override the active state of the button with whether
2745         a dragged file is being hovered over the file input control (i.e. can the control
2746         receive a dropped file; HTMLInputElement::canReceiveDroppedFiles()).
2747         Instead, we should only override the active state of the button when the state
2748         changes for whether we can receive dropped files (e.g. during a drag) so that
2749         we honor the active state of the button when it is pressed.
2750
2751         Test: fast/forms/file/file-input-pressed-state.html
2752
2753         * rendering/RenderFileUploadControl.cpp:
2754         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
2755         (WebCore::RenderFileUploadControl::updateFromElement):
2756         * rendering/RenderFileUploadControl.h:
2757         (RenderFileUploadControl):
2758
2759 2012-03-13  Dana Jansens  <danakj@chromium.org>
2760
2761         [chromium] Use CCOcclusionTracker for draw culling
2762         https://bugs.webkit.org/show_bug.cgi?id=80743
2763
2764         Reviewed by Adrienne Walker.
2765
2766         In this CL we enable the use of CCOcclusionTracker for draw-side
2767         culling. This means moving from a per-quad culling model to a
2768         per-layer model.
2769
2770         When calculating RenderPasses, we construct the set of passes,
2771         then iterate over layers in front-to-back order. We make
2772         CCQuadCuller instantiable, and pass it to the layer
2773         appendQuads() methods instead of the bare list, where it can
2774         filter quads before the end up in the list.
2775
2776         Covered by existing tests.
2777
2778         * platform/graphics/chromium/LayerRendererChromium.cpp:
2779         (WebCore::LayerRendererChromium::drawRenderPass):
2780         * platform/graphics/chromium/LayerRendererChromium.h:
2781         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
2782         (WebCore::CCCanvasLayerImpl::appendQuads):
2783         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
2784         (CCCanvasLayerImpl):
2785         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2786         (WebCore::CCLayerImpl::appendQuads):
2787         (WebCore::CCLayerImpl::appendGutterQuads):
2788         (WebCore::CCLayerImpl::appendDebugBorderQuad):
2789         * platform/graphics/chromium/cc/CCLayerImpl.h:
2790         (WebCore):
2791         (CCLayerImpl):
2792         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2793         (WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
2794         (WebCore::CCLayerTreeHostImpl::drawLayers):
2795         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
2796         (CCLayerTreeHostImpl):
2797         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
2798         (WebCore::CCPluginLayerImpl::appendQuads):
2799         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
2800         (CCPluginLayerImpl):
2801         * platform/graphics/chromium/cc/CCQuadCuller.cpp:
2802         (WebCore::CCQuadCuller::CCQuadCuller):
2803         (WebCore::CCQuadCuller::append):
2804         * platform/graphics/chromium/cc/CCQuadCuller.h:
2805         (WebCore):
2806         (CCQuadCuller):
2807         * platform/graphics/chromium/cc/CCRenderPass.cpp:
2808         (WebCore::CCRenderPass::appendQuadsForLayer):
2809         * platform/graphics/chromium/cc/CCRenderPass.h:
2810         (WebCore):
2811         (CCQuadList):
2812         (WebCore::CCQuadList::backToFrontBegin):
2813         (WebCore::CCQuadList::backToFrontEnd):
2814         (CCRenderPass):
2815         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.cpp:
2816         (WebCore::CCScrollbarLayerImpl::appendQuads):
2817         * platform/graphics/chromium/cc/CCScrollbarLayerImpl.h:
2818         (CCScrollbarLayerImpl):
2819         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.cpp:
2820         (WebCore::CCSolidColorLayerImpl::appendQuads):
2821         * platform/graphics/chromium/cc/CCSolidColorLayerImpl.h:
2822         (CCSolidColorLayerImpl):
2823         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
2824         (WebCore::CCTiledLayerImpl::appendQuads):
2825         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
2826         (CCTiledLayerImpl):
2827         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
2828         (WebCore::CCVideoLayerImpl::appendQuads):
2829         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
2830         (CCVideoLayerImpl):
2831
2832 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
2833
2834         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
2835         https://bugs.webkit.org/show_bug.cgi?id=78853
2836
2837         Reviewed by Adam Barth.
2838
2839         * CMakeLists.txt:
2840         * Configurations/FeatureDefines.xcconfig:
2841         * GNUmakefile.am:
2842         * GNUmakefile.list.am:
2843         * Modules/geolocation/Geolocation.cpp:
2844         (WebCore):
2845         (WebCore::createPositionError):
2846         (WebCore::Geolocation::Geolocation):
2847         (WebCore::Geolocation::stop):
2848         (WebCore::Geolocation::lastPosition):
2849         (WebCore::Geolocation::requestPermission):
2850         (WebCore::Geolocation::startUpdating):
2851         (WebCore::Geolocation::stopUpdating):
2852         * Modules/geolocation/Geolocation.h:
2853         (WebCore):
2854         (Geolocation):
2855         * Modules/geolocation/GeolocationController.cpp:
2856         * Modules/geolocation/GeolocationController.h:
2857         * Modules/geolocation/GeolocationError.h:
2858         * Modules/geolocation/GeolocationPosition.h:
2859         * Target.pri:
2860         * WebCore.exp.in:
2861         * WebCore.gypi:
2862         * WebCore.vcproj/WebCore.vcproj:
2863         * bindings/js/JSGeolocationCustom.cpp:
2864         * loader/EmptyClients.h:
2865         (EmptyChromeClient):
2866         * page/ChromeClient.h:
2867         (ChromeClient):
2868         * page/Page.cpp:
2869         (WebCore::Page::Page):
2870         * page/Page.h:
2871         (Page):
2872         * platform/GeolocationService.cpp: Removed.
2873         * platform/GeolocationService.h: Removed.
2874         * platform/mock/GeolocationClientMock.cpp:
2875         * platform/mock/GeolocationClientMock.h:
2876         * platform/mock/GeolocationServiceMock.cpp: Removed.
2877         * platform/mock/GeolocationServiceMock.h: Removed.
2878
2879 2012-03-12  Antonio Gomes  <agomes@rim.com>
2880
2881         Convert nodesFromRect tests to use Internals interface
2882         https://bugs.webkit.org/show_bug.cgi?id=80886
2883
2884         Reviewed by Ryosuke Niwa.
2885
2886         Add Internals::nodesFromRect implementation to unify
2887         the codepath for testing Document::nodesFromRect in a
2888         cross port way.
2889
2890         No new tests, since we are improving here the infra-structure
2891         for testing a specific method.
2892
2893         * testing/Internals.cpp:
2894         (WebCore::Internals::nodesFromRect):
2895         (WebCore):
2896         * testing/Internals.h:
2897         (Internals):
2898         * testing/Internals.idl:
2899
2900 2012-03-13  Philip Rogers  <pdr@google.com>
2901
2902         Fix the use of stale text fragments
2903         https://bugs.webkit.org/show_bug.cgi?id=80729
2904
2905         Reviewed by Nikolas Zimmermann.
2906
2907         Previously, we were allowing SVGTextFragments to get out of sync with the
2908         actual text in RenderSVGInlineTextBox. This patch reuses the dirty line
2909         box code in RenderText::setTextWithOffset to force
2910         clearTextFragments() when setTextWithOffset is called, preventing the use
2911         of stale SVGTextFragments.
2912
2913         Test: svg/custom/delete-text-crash.html
2914
2915         * rendering/InlineBox.h:
2916         (InlineBox):
2917         * rendering/svg/SVGInlineTextBox.cpp:
2918         (WebCore::SVGInlineTextBox::dirtyLineBoxes):
2919         (WebCore):
2920         * rendering/svg/SVGInlineTextBox.h:
2921         (SVGInlineTextBox):
2922
2923 2012-03-13  Nikolas Zimmermann  <nzimmermann@rim.com>
2924
2925         SVG Animations update baseVal instead of animVal
2926         https://bugs.webkit.org/show_bug.cgi?id=12437
2927
2928         Reviewed by Dirk Schulze.
2929
2930         Blind fix for some GC related assertions firing on v8.
2931
2932         Assure that animationStarted/animationEnded calls are happening
2933         on the same SVGAnimatedProperty. Always call animationEnded(),
2934         even if we shouldn't do anything for the target element, as its
2935         destructed, as we still have to reset m_isAnimating.
2936
2937         * svg/SVGAnimateElement.cpp:
2938         (WebCore::SVGAnimateElement::SVGAnimateElement):
2939         (WebCore::SVGAnimateElement::resetToBaseValue):
2940         (WebCore::SVGAnimateElement::targetElementWillChange):
2941         * svg/SVGAnimateElement.h:
2942         (SVGAnimateElement):
2943         * svg/properties/SVGAnimatedPropertyTearOff.h:
2944         (WebCore::SVGAnimatedPropertyTearOff::animationEnded):
2945
2946 2012-03-13  Mark Pilgrim  <pilgrim@chromium.org>
2947
2948         Move DirectoryEntry and DirectoryReader to new Modules/filesystem/ directory
2949         https://bugs.webkit.org/show_bug.cgi?id=80625
2950
2951         Reviewed by Adam Barth.
2952
2953         No new tests, all existing tests pass.
2954
2955         * CMakeLists.txt:
2956         * DerivedSources.make:
2957         * DerivedSources.pri:
2958         * GNUmakefile.am:
2959         * GNUmakefile.list.am:
2960         * Modules/filesystem: Added.
2961         * Modules/filesystem/DirectoryEntry.cpp: Copied from Source/WebCore/fileapi/DirectoryEntry.cpp.
2962         * Modules/filesystem/DirectoryEntry.h: Copied from Source/WebCore/fileapi/DirectoryEntry.h.
2963         * Modules/filesystem/DirectoryEntry.idl: Copied from Source/WebCore/fileapi/DirectoryEntry.idl.
2964         * Modules/filesystem/DirectoryEntrySync.cpp: Copied from Source/WebCore/fileapi/DirectoryEntrySync.cpp.
2965         * Modules/filesystem/DirectoryEntrySync.h: Copied from Source/WebCore/fileapi/DirectoryEntrySync.h.
2966         * Modules/filesystem/DirectoryEntrySync.idl: Copied from Source/WebCore/fileapi/DirectoryEntrySync.idl.
2967         * Modules/filesystem/DirectoryReader.cpp: Copied from Source/WebCore/fileapi/DirectoryReader.cpp.
2968         * Modules/filesystem/DirectoryReader.h: Copied from Source/WebCore/fileapi/DirectoryReader.h.
2969         * Modules/filesystem/DirectoryReader.idl: Copied from Source/WebCore/fileapi/DirectoryReader.idl.
2970         * Modules/filesystem/DirectoryReaderBase.h: Copied from Source/WebCore/fileapi/DirectoryReaderBase.h.
2971         * Modules/filesystem/DirectoryReaderSync.cpp: Copied from Source/WebCore/fileapi/DirectoryReaderSync.cpp.
2972         * Modules/filesystem/DirectoryReaderSync.h: Copied from Source/WebCore/fileapi/DirectoryReaderSync.h.
2973         * Modules/filesystem/DirectoryReaderSync.idl: Copied from Source/WebCore/fileapi/DirectoryReaderSync.idl.
2974         * Target.pri:
2975         * WebCore.gyp/WebCore.gyp:
2976         * WebCore.gypi:
2977         * WebCore.pri:
2978         * WebCore.vcproj/WebCore.vcproj:
2979         * WebCore.xcodeproj/project.pbxproj:
2980         * fileapi/DirectoryEntry.cpp: Removed.
2981         * fileapi/DirectoryEntry.h: Removed.
2982         * fileapi/DirectoryEntry.idl: Removed.
2983         * fileapi/DirectoryEntrySync.cpp: Removed.
2984         * fileapi/DirectoryEntrySync.h: Removed.
2985         * fileapi/DirectoryEntrySync.idl: Removed.
2986         * fileapi/DirectoryReader.cpp: Removed.
2987         * fileapi/DirectoryReader.h: Removed.
2988         * fileapi/DirectoryReader.idl: Removed.
2989         * fileapi/DirectoryReaderBase.h: Removed.
2990         * fileapi/DirectoryReaderSync.cpp: Removed.
2991         * fileapi/DirectoryReaderSync.h: Removed.
2992         * fileapi/DirectoryReaderSync.idl: Removed.
2993
2994 2012-03-13  Igor Oliveira  <igor.o@sisa.samsung.com>
2995
2996         animation-iteration-count does not handle floating point values correctly.
2997         https://bugs.webkit.org/show_bug.cgi?id=69531
2998
2999         Implements support for non-integers animation-iteration-count numbers.
3000         Non-integer numbers will cause the animation to end part-way through a cycle.
3001
3002         Reviewed by Dean Jackson.
3003
3004         Tests: animations/fill-mode-iteration-count-non-integer.html
3005                animations/keyframes-iteration-count-non-integer.html
3006
3007         * css/CSSComputedStyleDeclaration.cpp:
3008         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3009         * css/CSSParser.cpp:
3010         (WebCore::CSSParser::parseAnimationIterationCount):
3011         * css/CSSStyleApplyProperty.cpp:
3012         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
3013         * css/CSSStyleSelector.cpp:
3014         (WebCore::CSSStyleSelector::collectMatchingRulesForList):
3015         * page/animation/AnimationBase.cpp:
3016         (WebCore::AnimationBase::fractionalTime):
3017         (WebCore::AnimationBase::progress):
3018         * page/animation/CompositeAnimation.cpp:
3019         (WebCore::CompositeAnimation::pauseAnimationAtTime):
3020         * platform/animation/Animation.h:
3021         (WebCore::Animation::iterationCount):
3022         (WebCore::Animation::setIterationCount):
3023         (Animation):
3024         (WebCore::Animation::initialAnimationIterationCount):
3025
3026 2012-03-13  Tommy Widenflycht  <tommyw@google.com>
3027
3028         MediaStream API: Rename PeerConnection to DeprecatedPeerConnection
3029         https://bugs.webkit.org/show_bug.cgi?id=80692
3030
3031         Reviewed by Adam Barth.
3032
3033         First patch in a series of patches to change the PeerConnection from ROAP to JSEP,
3034         see bug 80589 for more information.
3035
3036         Patch covered by modified existing tests.
3037
3038         * GNUmakefile.list.am:
3039         * Modules/mediastream/DOMWindowMediaStream.idl:
3040         * Modules/mediastream/DeprecatedPeerConnection.cpp: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.cpp.
3041         (WebCore):
3042         (WebCore::DeprecatedPeerConnection::create):
3043         (WebCore::DeprecatedPeerConnection::DeprecatedPeerConnection):
3044         (WebCore::DeprecatedPeerConnection::~DeprecatedPeerConnection):
3045         (WebCore::DeprecatedPeerConnection::processSignalingMessage):
3046         (WebCore::DeprecatedPeerConnection::readyState):
3047         (WebCore::DeprecatedPeerConnection::send):
3048         (WebCore::DeprecatedPeerConnection::addStream):
3049         (WebCore::DeprecatedPeerConnection::removeStream):
3050         (WebCore::DeprecatedPeerConnection::localStreams):
3051         (WebCore::DeprecatedPeerConnection::remoteStreams):
3052         (WebCore::DeprecatedPeerConnection::close):
3053         (WebCore::DeprecatedPeerConnection::didCompleteICEProcessing):
3054         (WebCore::DeprecatedPeerConnection::didGenerateSDP):
3055         (WebCore::DeprecatedPeerConnection::didReceiveDataStreamMessage):
3056         (WebCore::DeprecatedPeerConnection::didAddRemoteStream):
3057         (WebCore::DeprecatedPeerConnection::didRemoveRemoteStream):
3058         (WebCore::DeprecatedPeerConnection::interfaceName):
3059         (WebCore::DeprecatedPeerConnection::scriptExecutionContext):
3060         (WebCore::DeprecatedPeerConnection::stop):
3061         (WebCore::DeprecatedPeerConnection::eventTargetData):
3062         (WebCore::DeprecatedPeerConnection::ensureEventTargetData):
3063         (WebCore::DeprecatedPeerConnection::scheduleInitialNegotiation):
3064         (WebCore::DeprecatedPeerConnection::initialNegotiationTimerFired):
3065         (WebCore::DeprecatedPeerConnection::ensureStreamChangeScheduled):
3066         (WebCore::DeprecatedPeerConnection::streamChangeTimerFired):
3067         (WebCore::DeprecatedPeerConnection::scheduleReadyStateChange):
3068         (WebCore::DeprecatedPeerConnection::readyStateChangeTimerFired):
3069         (WebCore::DeprecatedPeerConnection::changeReadyState):
3070         * Modules/mediastream/DeprecatedPeerConnection.h: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.h.
3071         (WebCore):
3072         (DeprecatedPeerConnection):
3073         (WebCore::DeprecatedPeerConnection::didChangeState):
3074         (WebCore::DeprecatedPeerConnection::refEventTarget):
3075         (WebCore::DeprecatedPeerConnection::derefEventTarget):
3076         * Modules/mediastream/DeprecatedPeerConnection.idl: Renamed from Source/WebCore/Modules/mediastream/PeerConnection.idl.
3077         * Modules/mediastream/SignalingCallback.h:
3078         (WebCore):
3079         (SignalingCallback):
3080         * Modules/mediastream/SignalingCallback.idl:
3081         * WebCore.gypi:
3082         * bindings/generic/RuntimeEnabledFeatures.h:
3083         (WebCore::RuntimeEnabledFeatures::webkitDeprecatedPeerConnectionEnabled):
3084         * bindings/js/JSDeprecatedPeerConnectionCustom.cpp: Renamed from Source/WebCore/bindings/js/JSPeerConnectionCustom.cpp.
3085         (WebCore):
3086         (WebCore::JSDeprecatedPeerConnectionConstructor::constructJSDeprecatedPeerConnection):
3087         * dom/EventTarget.h:
3088         (WebCore):
3089         * dom/EventTargetFactory.in:
3090         * platform/mediastream/DeprecatedPeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandler.h.
3091         (WebCore):
3092         (DeprecatedPeerConnectionHandler):
3093         * platform/mediastream/DeprecatedPeerConnectionHandlerClient.h: Renamed from Source/WebCore/platform/mediastream/PeerConnectionHandlerClient.h.
3094         (WebCore):
3095         (DeprecatedPeerConnectionHandlerClient):
3096         (WebCore::DeprecatedPeerConnectionHandlerClient::~DeprecatedPeerConnectionHandlerClient):
3097         * platform/mediastream/gstreamer/DeprecatedPeerConnectionHandler.cpp: Renamed from Source/WebCore/platform/mediastream/gstreamer/PeerConnectionHandler.cpp.
3098         (WebCore):
3099         (WebCore::DeprecatedPeerConnectionHandler::create):
3100         (WebCore::DeprecatedPeerConnectionHandler::DeprecatedPeerConnectionHandler):
3101         (WebCore::DeprecatedPeerConnectionHandler::~DeprecatedPeerConnectionHandler):
3102         (WebCore::DeprecatedPeerConnectionHandler::produceInitialOffer):
3103         (WebCore::DeprecatedPeerConnectionHandler::handleInitialOffer):
3104         (WebCore::DeprecatedPeerConnectionHandler::processSDP):
3105         (WebCore::DeprecatedPeerConnectionHandler::processPendingStreams):
3106         (WebCore::DeprecatedPeerConnectionHandler::sendDataStreamMessage):
3107         (WebCore::DeprecatedPeerConnectionHandler::stop):
3108
3109 2012-03-13  Pavel Feldman  <pfeldman@chromium.org>
3110
3111         Web Inspector: front-end compilation was broken while supporting large arrays.
3112         https://bugs.webkit.org/show_bug.cgi?id=81013
3113
3114         Reviewed by Vsevolod Vlasov.
3115
3116         * inspector/front-end/ExtensionPanel.js:
3117         * inspector/front-end/ObjectPropertiesSection.js:
3118         (WebInspector.ArrayGroupingTreeElement._populateNonIndexProperties.buildObjectFragment):
3119         * inspector/front-end/RemoteObject.js:
3120
3121 2012-03-13  Tony Chang  <tony@chromium.org>
3122
3123         flexbox's computePreferredLogicalWidth needs to take multiline into account
3124         https://bugs.webkit.org/show_bug.cgi?id=80931
3125
3126         Reviewed by Ojan Vafai.
3127
3128         Tests: css3/flexbox/multiline-shrink-to-fit-expected.html
3129                css3/flexbox/multiline-shrink-to-fit.html
3130
3131         * rendering/RenderFlexibleBox.cpp:
3132         (WebCore::RenderFlexibleBox::computePreferredLogicalWidths): Set min/max preferredLogicalWidth based on always breaking or never breaking.
3133         (WebCore::RenderFlexibleBox::computeNextFlexLine): Add a FIXME.
3134         (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Don't change the width after computePreferredWidth has been called.
3135
3136 2012-03-13  Sheriff Bot  <webkit.review.bot@gmail.com>
3137
3138         Unreviewed, rolling out r110469.
3139         http://trac.webkit.org/changeset/110469
3140         https://bugs.webkit.org/show_bug.cgi?id=81010
3141
3142         This patch still appears to crash (Requested by abarth on
3143         #webkit).
3144
3145         * page/FrameView.cpp:
3146         (WebCore::FrameView::FrameView):
3147         (WebCore::FrameView::reset):
3148         (WebCore::FrameView::repaintContentRectangle):
3149         (WebCore):
3150         (WebCore::FrameView::endDeferredRepaints):
3151         (WebCore::FrameView::doDeferredRepaints):
3152         (WebCore::FrameView::deferredRepaintTimerFired):
3153         * page/FrameView.h:
3154         (FrameView):
3155         * rendering/RenderView.cpp:
3156         (WebCore::RenderView::shouldRepaint):
3157         * svg/graphics/SVGImage.cpp:
3158         (WebCore::SVGImage::drawSVGToImageBuffer):
3159         (WebCore::SVGImage::draw):
3160         * svg/graphics/SVGImage.h:
3161         * svg/graphics/SVGImageCache.cpp:
3162         (WebCore::SVGImageCache::imageContentChanged):
3163         (WebCore::SVGImageCache::redrawTimerFired):
3164         * svg/graphics/SVGImageCache.h:
3165         (SVGImageCache):
3166
3167 2012-03-13  Max Vujovic  <mvujovic@adobe.com>
3168
3169         Add a method to window.internals to enable testing of inspector highlight rects
3170         https://bugs.webkit.org/show_bug.cgi?id=80338
3171
3172         Reviewed by Pavel Feldman.
3173
3174         Add window.internals.inspectorHighlightRects, a method which makes it possible to test the
3175         positions and sizes of inspector highlight rects.
3176
3177         Test: inspector/elements/highlight-node.html
3178
3179         * WebCore.exp.in: Export symbols.
3180         * testing/Internals.cpp:
3181         (WebCore::Internals::inspectorHighlightRects): Call InspectorController::getHighlight and
3182         return the highlight's quads as a ClientRectList.
3183         (WebCore):
3184         * testing/Internals.h:
3185         (WebCore):
3186         (Internals):
3187         * testing/Internals.idl:
3188
3189             Add inspectorHighlightRects to the window.internals interface.
3190
3191 2012-03-13  Konrad Piascik  <kpiascik@rim.com>
3192
3193         [BlackBerry] Remove sublayers before clamping just in case the layer already exists
3194         https://bugs.webkit.org/show_bug.cgi?id=80989
3195
3196         Reviewed by Antonio Gomes.
3197
3198         Discovered when trying to add a highlight sublayer for web inspector.  Since that layer
3199         may already exist in the tree we need to see if it will be pruned before we clamp on the
3200         size.
3201
3202         This was manually tested during the writing of another patch to add web inspector highlights
3203         to accelrated compositing.
3204
3205         * platform/graphics/blackberry/LayerWebKitThread.cpp:
3206         (WebCore::LayerWebKitThread::insertSublayer):
3207
3208 2012-03-13  Vsevolod Vlasov  <vsevik@chromium.org>
3209
3210         Web Inspector: Add snippets model.
3211         https://bugs.webkit.org/show_bug.cgi?id=80863
3212
3213         Reviewed by Yury Semikhatsky.
3214
3215         Test: inspector/debugger/snippets-model.html
3216
3217         * WebCore.gypi:
3218         * WebCore.vcproj/WebCore.vcproj:
3219         * inspector/compile-front-end.py:
3220         * inspector/front-end/Settings.js:
3221         (WebInspector.ExperimentsSettings):
3222         * inspector/front-end/SnippetsModel.js: Added.
3223         * inspector/front-end/WebKit.qrc:
3224         * inspector/front-end/inspector.html:
3225         * inspector/front-end/inspector.js:
3226
3227 2012-03-13  'Pavel Feldman'  <pfeldman@chromium.org>
3228
3229         Not reviewed: chromium build fix.
3230
3231         * history/CachedFrame.cpp:
3232
3233 2012-03-13  Peter Rybin  <peter.rybin@gmail.com>
3234
3235         Web Inspector: CodeGeneratorInspector.py: refactor copy-paste getter methods
3236         https://bugs.webkit.org/show_bug.cgi?id=80923
3237
3238         Reviewed by Yury Semikhatsky.
3239
3240         Several methods are combined in one using C++ templates.
3241
3242         * inspector/CodeGeneratorInspector.py:
3243
3244 2012-03-13  Rob Buis  <rbuis@rim.com>
3245
3246         [BlackBerry] Fix cast-align warning in QuotesData.cpp
3247         https://bugs.webkit.org/show_bug.cgi?id=80601
3248
3249         Reviewed by Nikolas Zimmermann.
3250
3251         Fix warning by adding variable of correct return type.
3252
3253         * rendering/style/QuotesData.cpp:
3254         (WebCore::QuotesData::create):
3255
3256 2012-03-12  Brady Eidson  <beidson@apple.com>
3257
3258         <rdar://problem/7908830> and https://bugs.webkit.org/show_bug.cgi?id=34679
3259         Location and other objects are dysfunctional after a document gets restored from page cache
3260
3261         Reviewed by Adam Barth.
3262
3263         Test: fast/loader/window-properties-restored-from-page-cache.html
3264
3265         Give DOMWindowProperties the ability to reconnect to their Frame:
3266         * page/DOMWindowProperty.cpp:
3267         (WebCore::DOMWindowProperty::reconnectFrame):
3268         * page/DOMWindowProperty.h:
3269         (DOMWindowProperty):
3270
3271         Let ApplicationCache do some extra work when reconnecting:
3272         * loader/appcache/DOMApplicationCache.cpp:
3273         (WebCore::DOMApplicationCache::reconnectFrame):
3274         (WebCore):
3275         * loader/appcache/DOMApplicationCache.h:
3276         (DOMApplicationCache):
3277
3278         Let IndexDB do some extra work when reconnecting:
3279         * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
3280         (WebCore::DOMWindowIndexedDatabase::disconnectFrame):
3281         (WebCore::DOMWindowIndexedDatabase::reconnectFrame):
3282         (WebCore::DOMWindowIndexedDatabase::webkitIndexedDB):
3283         * Modules/indexeddb/DOMWindowIndexedDatabase.h:
3284         (DOMWindowIndexedDatabase):
3285
3286         Tell the DOMWindow to suspend to the page cache:
3287         * history/CachedFrame.cpp:
3288         (WebCore::CachedFrame::CachedFrame):
3289
3290         Tell the DOMWindow to resume from the page cache:
3291         * loader/FrameLoader.cpp:
3292         (WebCore::FrameLoader::open):
3293
3294         * page/DOMWindow.cpp:
3295         (WebCore::DOMWindow::DOMWindow):
3296         (WebCore::DOMWindow::~DOMWindow): Call clearDOMWindowProperties directly instead of clear()
3297         (WebCore::DOMWindow::frameDestroyed): Ditto.
3298         (WebCore::DOMWindow::clear): Only clear if the DOMWindow is not suspended for the page cache.
3299         (WebCore::DOMWindow::suspendForPageCache): Disconnect properties and set the page cache flag.
3300         (WebCore::DOMWindow::resumeFromPageCache): Reconnect properties and revert the page cache flag.
3301         (WebCore::DOMWindow::disconnectDOMWindowProperties): Only disconnect the registered properties.
3302         (WebCore::DOMWindow::reconnectDOMWindowProperties):
3303         (WebCore::DOMWindow::clearDOMWindowProperties): Disconnect the registered properties then clear them out.
3304
3305         For all of the following, if the DOMWindow is not displayed in a frame (i.e., it is suspended), do nothing:
3306         (WebCore::DOMWindow::screen):
3307         (WebCore::DOMWindow::history):
3308         (WebCore::DOMWindow::crypto):
3309         (WebCore::DOMWindow::locationbar):
3310         (WebCore::DOMWindow::menubar):
3311         (WebCore::DOMWindow::personalbar):
3312         (WebCore::DOMWindow::scrollbars):
3313         (WebCore::DOMWindow::statusbar):
3314         (WebCore::DOMWindow::toolbar):
3315         (WebCore::DOMWindow::console):
3316         (WebCore::DOMWindow::applicationCache):
3317         (WebCore::DOMWindow::navigator):
3318         (WebCore::DOMWindow::performance):
3319         (WebCore::DOMWindow::location):
3320         (WebCore::DOMWindow::sessionStorage):
3321         (WebCore::DOMWindow::localStorage):
3322         (WebCore::DOMWindow::webkitNotifications):
3323         (WebCore::DOMWindow::postMessageTimerFired):
3324         (WebCore::DOMWindow::getSelection):
3325         (WebCore::DOMWindow::styleMedia):
3326         (WebCore::DOMWindow::webkitStorageInfo):
3327         * page/DOMWindow.h:
3328
3329 2012-03-13  Dana Jansens  <danakj@chromium.org>
3330
3331         [chromium] Use projectQuad to apply inverse mapRect
3332         https://bugs.webkit.org/show_bug.cgi?id=80741
3333
3334         Reviewed by Adrienne Walker.
3335
3336         Unit test: CCOcclusionTrackerTest3dTransform
3337                    CCOcclusionTrackerTestPerspectiveTransform
3338                    CCOcclusionTrackerTestPerspectiveTransformBehindCamera
3339
3340         * platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
3341         (WebCore::projectQuad):
3342         (WebCore):
3343         (WebCore::computeUnoccludedContentRect):
3344
3345 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3346
3347         New PageCache histogram which counts failures ignoring Settings.
3348         https://bugs.webkit.org/show_bug.cgi?id=80864
3349
3350         Reviewed by Brady Eidson.
3351
3352         Chrome has a command line switch to turn on the page cache.
3353         Currently it doesn't work, but it can cause the PageCache reasons
3354         for failure count to read lower than it should.  Add a new
3355         histogram to report the corrected value.
3356
3357         * history/PageCache.cpp:
3358         (WebCore::logCanCachePageDecision):
3359
3360 2012-03-13  George Staikos  <staikos@webkit.org>
3361
3362         Fix signed/unsigned mismatch compiler warnings.
3363         https://bugs.webkit.org/show_bug.cgi?id=80790
3364
3365         Reviewed by Alexey Proskuryakov.
3366
3367         * loader/icon/IconDatabase.cpp:
3368         (WebCore::IconDatabase::synchronousLoadDecisionForIconURL):
3369         * platform/network/MIMESniffing.cpp:
3370
3371 2012-03-13  Sheriff Bot  <webkit.review.bot@gmail.com>
3372
3373         Unreviewed, rolling out r110510.
3374         http://trac.webkit.org/changeset/110510
3375         https://bugs.webkit.org/show_bug.cgi?id=80987
3376
3377         depends on chromium r 125700, which isn't rolled into webkit
3378         yet :-/ (Requested by thakis_ on #webkit).
3379
3380         * WebCore.gyp/mac/adjust_visibility.sh:
3381
3382 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3383
3384         Make ApplicationCacheHost::canCacheInPageCache() non-const.
3385         https://bugs.webkit.org/show_bug.cgi?id=80904
3386
3387         Reviewed by Alexey Proskuryakov.
3388
3389         A const pointer to a large object like ApplicationCacheHost is not our standard
3390         practice; so remove this (implicit) one.  See also https://bugs.webkit.org/show_bug.cgi?id=80898
3391
3392         * loader/appcache/ApplicationCacheHost.cpp:
3393         (WebCore::ApplicationCacheHost::canCacheInPageCache):
3394         * loader/appcache/ApplicationCacheHost.h:
3395         (ApplicationCacheHost):
3396
3397 2012-03-13  Stephen Chenney  <schenney@chromium.org>
3398
3399         Crash in WebCore::GraphicsContext::paintingDisabled
3400         https://bugs.webkit.org/show_bug.cgi?id=80669
3401
3402         Reviewed by Nikolas Zimmermann.
3403
3404         The SVGImageBufferTools::clipToImageBuffer method deletes the clip
3405         image when it thinks it is not needed. However, there are cases when
3406         it is in fact still needed, particularly when the clip buffer is
3407         coming from higher up in the stack where it may be needed again.
3408
3409         So this patch adds a flag to only allow deletion of the image buffer
3410         if it was created at the most recent call site.
3411
3412         Tests: svg/custom/circular-clip-path-references-crash-expected.svg
3413                svg/custom/circular-clip-path-references-crash.svg
3414
3415         * rendering/svg/RenderSVGResourceClipper.cpp:
3416         (WebCore::RenderSVGResourceClipper::applyClippingToContext):
3417         * rendering/svg/RenderSVGResourceGradient.cpp:
3418         (WebCore::clipToTextMask):
3419         * rendering/svg/RenderSVGResourceMasker.cpp:
3420         (WebCore::RenderSVGResourceMasker::applyResource):
3421         * rendering/svg/SVGImageBufferTools.cpp:
3422         (WebCore::SVGImageBufferTools::clipToImageBuffer):
3423         * rendering/svg/SVGImageBufferTools.h:
3424         (SVGImageBufferTools):
3425
3426 2012-03-13  Gavin Peters  <gavinp@chromium.org>
3427
3428         Fix an enumeration name in ReasonsFrameCannotBeInPageCache.
3429         https://bugs.webkit.org/show_bug.cgi?id=80849
3430
3431         Reviewed by Brady Eidson.
3432
3433         It seems that somebody goofed, and named one of the
3434         ReasonsFrameCannotBeInPageCache antonymically.
3435
3436         * history/PageCache.cpp:
3437         (WebCore::logCanCacheFrameDecision):
3438
3439 2012-03-12  Kinuko Yasuda  <kinuko@chromium.org>
3440
3441         File upload control should use File.name() rather than File.path() to show chosen filenames
3442         https://bugs.webkit.org/show_bug.cgi?id=80970
3443
3444         In some rare cases (e.g. files from FileSystem API or files created
3445         using the newly added WebKit API) File.name has different displayName
3446         from the basename of file.path, and in the file uploader controller we
3447         should use File.name rather than File.path.
3448
3449         Reviewed by Kent Tamura.
3450
3451         No new tests: existing tests should pass as this should not change
3452         behavior in regular use cases.  (New behavior where File.name differs
3453         from File.path can be only tested in chromeos environment, therefore
3454         not adding new tests for that)
3455
3456         * platform/gtk/RenderThemeGtk.cpp:
3457         (WebCore::RenderThemeGtk::fileListNameForWidth): Updated to handle FileList.
3458         * platform/gtk/RenderThemeGtk.h:
3459         * platform/qt/RenderThemeQt.cpp:
3460         (WebCore::RenderThemeQt::fileListNameForWidth): Updated to handle FileList.
3461         * platform/qt/RenderThemeQt.h:
3462         * rendering/RenderFileUploadControl.cpp:
3463         (WebCore::RenderFileUploadControl::fileTextValue): Changed to pass FileList rather than FileList->paths().
3464         * rendering/RenderTheme.cpp:
3465         (WebCore::RenderTheme::fileListNameForWidth): Updated to handle FileList and use File.name for displaying the file name.
3466         * rendering/RenderTheme.h:
3467         * rendering/RenderThemeMac.h:
3468         * rendering/RenderThemeMac.mm:
3469         (WebCore::RenderThemeMac::fileListNameForWidth): Updated to handle FileList.
3470
3471 2012-03-13  Kinuko Yasuda  <kinuko@chromium.org>
3472
3473         Allow WebFileChooser to return extra file info (like displayName) in addition to mere file paths
3474         https://bugs.webkit.org/show_bug.cgi?id=80719
3475
3476         Reviewed by Kent Tamura.
3477
3478         No new tests: this change itself shouldn't change existing behavior.
3479
3480         * fileapi/File.cpp:
3481         (WebCore::createBlobDataForFileWithName): Renamed from createBlobDataForFileSystemFile.
3482         * fileapi/File.h:
3483         * html/FileInputType.cpp: