Unreviewed test fix for r97050.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-10-10  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Unreviewed test fix for r97050.
4
5         * inspector/front-end/DebuggerPresentationModel.js:
6         (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
7
8 2011-10-10  Andreas Kling  <kling@webkit.org>
9
10         Shrink RenderListItem on 64-bit.
11         https://bugs.webkit.org/show_bug.cgi?id=69751
12
13         Reviewed by Kenneth Rohde Christiansen.
14
15         Rearrange members to utilize the padding at the end of RenderBlock.
16         This shrinks RenderListItem by 8 bytes on 64-bit, reducing memory consumption
17         by 60 kB when loading the full HTML5 spec.
18
19         * rendering/RenderListItem.h:
20
21 2011-10-10  Andreas Kling  <kling@webkit.org>
22
23         Shrink RootInlineBox.
24         https://bugs.webkit.org/show_bug.cgi?id=69707
25
26         Reviewed by Antti Koivisto.
27
28         Move the bitfields from RootInlineBox up into its base class (InlineFlowBox.)
29         This shrinks RootInlineBox by one CPU word without growing InlineFlowBox.
30         Enum bitfields were changed to "unsigned" for the MSVC signedness quirk.
31
32         Also move one 32-bit member to the head of RootInlineBox so it falls into the
33         padding at the end of InlineFlowBox on 64-bit.
34
35         This reduces memory consumption by 780 kB (on 64-bit) when loading the full
36         HTML5 spec.
37
38         * rendering/InlineFlowBox.h:
39         (WebCore::InlineFlowBox::InlineFlowBox):
40         * rendering/RootInlineBox.cpp:
41         (WebCore::RootInlineBox::RootInlineBox):
42         (WebCore::RootInlineBox::lineBreakBidiStatus):
43         * rendering/RootInlineBox.h:
44
45 2011-10-10  Pavel Podivilov  <podivilov@chromium.org>
46
47         Unreviewed, attempt to fix chromium mac build after r97034.
48
49         * platform/ScrollAnimatorNone.h:
50
51 2011-10-10  Ilya Tikhonovsky  <loislo@chromium.org>
52
53         Web Inspector: small memory leak in scripts panel.
54         https://bugs.webkit.org/show_bug.cgi?id=69744
55
56         Scripts panel doesn't clean the list of child views.
57
58         Reviewed by Yury Semikhatsky.
59
60         * inspector/front-end/DebuggerPresentationModel.js:
61         (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
62         * inspector/front-end/ScriptsPanel.js:
63         (WebInspector.ScriptsPanel.prototype._uiSourceCodeRemoved):
64
65 2011-10-07  Yury Semikhatsky  <yurys@chromium.org>
66
67         Web Inspector: allow to start WorkerContext paused
68         https://bugs.webkit.org/show_bug.cgi?id=69635
69
70         Allow to pause WorkerContext on start.
71
72         Reviewed by Pavel Feldman.
73
74         * bindings/v8/ScriptDebugServer.cpp:
75         (WebCore::ScriptDebugServer::setPauseOnNextStatement):
76         * bindings/v8/WorkerScriptDebugServer.cpp:
77         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause):
78         * bindings/v8/WorkerScriptDebugServer.h:
79         * inspector/InspectorController.cpp:
80         (WebCore::InspectorController::InspectorController):
81         * inspector/InspectorInstrumentation.cpp:
82         (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
83         * inspector/InspectorInstrumentation.h:
84         * inspector/InspectorRuntimeAgent.cpp:
85         (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
86         (WebCore::InspectorRuntimeAgent::~InspectorRuntimeAgent):
87         (WebCore::InspectorRuntimeAgent::pauseWorkerContext): this method will start
88         running worker message loop in "debug" mode, i.e. it will process only inspector
89         tasks until method InspectorRuntimeAgent::resume is called.
90         (WebCore::InspectorRuntimeAgent::resume):
91         * inspector/InspectorRuntimeAgent.h:
92         * inspector/WorkerDebuggerAgent.cpp:
93         * inspector/WorkerDebuggerAgent.h:
94         * inspector/WorkerInspectorController.cpp:
95         (WebCore::WorkerInspectorController::WorkerInspectorController):
96         (WebCore::WorkerInspectorController::resume): method which is called from WebKit layer
97         when it is known that inspector state was restored and it is OK to resume worker execution.
98         * inspector/WorkerInspectorController.h:
99         * workers/DedicatedWorkerThread.cpp:
100         (WebCore::DedicatedWorkerThread::create):
101         (WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
102         * workers/DedicatedWorkerThread.h:
103         * workers/SharedWorkerThread.cpp:
104         (WebCore::SharedWorkerThread::create):
105         (WebCore::SharedWorkerThread::SharedWorkerThread):
106         * workers/SharedWorkerThread.h:
107         * workers/WorkerMessagingProxy.cpp:
108         (WebCore::WorkerMessagingProxy::startWorkerContext):
109         (WebCore::WorkerMessagingProxy::disconnectFromInspector):
110         (WebCore::WorkerMessagingProxy::sendMessageToInspector):
111         * workers/WorkerThread.cpp:
112         (WebCore::WorkerThreadStartupData::create):
113         (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
114         (WebCore::WorkerThread::WorkerThread): WorkerThread is passed a booleand flag indicating
115         whether the context should be paused and wait for explicit resume command before it
116         starts running its script.
117         (WebCore::WorkerThread::workerThread):
118         * workers/WorkerThread.h:
119
120 2011-10-10  Sheriff Bot  <webkit.review.bot@gmail.com>
121
122         Unreviewed, rolling out r97045.
123         http://trac.webkit.org/changeset/97045
124         https://bugs.webkit.org/show_bug.cgi?id=69746
125
126         makes apple bots very crashy :( (Requested by kling on
127         #webkit).
128
129         * css/CSSStyleApplyProperty.cpp:
130         (WebCore::ApplyPropertyColor::applyInheritValue):
131         * page/animation/AnimationBase.cpp:
132         (WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor):
133         (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint):
134         (WebCore::AnimationBase::ensurePropertyMap):
135         * platform/graphics/Color.h:
136         (WebCore::Color::Color):
137         * rendering/style/BorderValue.h:
138         (WebCore::BorderValue::BorderValue):
139         (WebCore::BorderValue::isTransparent):
140         (WebCore::BorderValue::operator==):
141         (WebCore::BorderValue::color):
142         * rendering/style/OutlineValue.h:
143         (WebCore::OutlineValue::operator==):
144         * rendering/style/RenderStyle.h:
145         (WebCore::InheritedFlags::setBorderLeftColor):
146         (WebCore::InheritedFlags::setBorderRightColor):
147         (WebCore::InheritedFlags::setBorderTopColor):
148         (WebCore::InheritedFlags::setBorderBottomColor):
149         (WebCore::InheritedFlags::setOutlineColor):
150         (WebCore::InheritedFlags::setColumnRuleColor):
151         (WebCore::InheritedFlags::fillPaintColor):
152         (WebCore::InheritedFlags::strokePaintColor):
153         (WebCore::InheritedFlags::borderLeftColor):
154         (WebCore::InheritedFlags::borderRightColor):
155         (WebCore::InheritedFlags::borderTopColor):
156         (WebCore::InheritedFlags::borderBottomColor):
157         (WebCore::InheritedFlags::backgroundColor):
158         (WebCore::InheritedFlags::color):
159         (WebCore::InheritedFlags::columnRuleColor):
160         (WebCore::InheritedFlags::outlineColor):
161         (WebCore::InheritedFlags::textEmphasisColor):
162         (WebCore::InheritedFlags::textFillColor):
163         (WebCore::InheritedFlags::textStrokeColor):
164         (WebCore::InheritedFlags::stopColor):
165         (WebCore::InheritedFlags::floodColor):
166         (WebCore::InheritedFlags::lightingColor):
167
168 2011-10-06  Andreas Kling  <kling@webkit.org>
169
170         Shrink BorderValue.
171         https://bugs.webkit.org/show_bug.cgi?id=69521
172
173         Reviewed by Antti Koivisto.
174
175         Unroll BorderValue's Color member so we can pack the color's validity flag
176         in BorderValue's bitfield.
177
178         This shrinks BorderValue by 32 bit, which in turn shrinks BorderData by
179         16 bytes. This reduces memory consumption by 760 kB when loading the full
180         HTML5 spec.
181
182         * platform/graphics/Color.h:
183         (WebCore::Color::Color):
184
185             Allow construction of Color objects with specific validity.
186
187         * rendering/style/BorderValue.h:
188         (WebCore::BorderValue::BorderValue):
189         (WebCore::BorderValue::isTransparent):
190         (WebCore::BorderValue::operator==):
191         (WebCore::BorderValue::setColor):
192         (WebCore::BorderValue::color):
193         * rendering/style/OutlineValue.h:
194         (WebCore::OutlineValue::operator==):
195
196             Unroll m_color into BorderValue by splitting it into an RGBA32 and a bool.
197             Made those variables private and added color(), setColor() accessors.
198
199         * rendering/style/RenderStyle.h:
200         (WebCore::InheritedFlags::setBorderLeftColor):
201         (WebCore::InheritedFlags::setBorderRightColor):
202         (WebCore::InheritedFlags::setBorderTopColor):
203         (WebCore::InheritedFlags::setBorderBottomColor):
204         (WebCore::InheritedFlags::setOutlineColor):
205         (WebCore::InheritedFlags::setColumnRuleColor):
206
207             Added a SET_BORDERVALUE_COLOR macro and use that instead of SET_VAR
208             when setting BorderValue colors.
209
210         (WebCore::InheritedFlags::fillPaintColor):
211         (WebCore::InheritedFlags::strokePaintColor):
212         (WebCore::InheritedFlags::borderLeftColor):
213         (WebCore::InheritedFlags::borderRightColor):
214         (WebCore::InheritedFlags::borderTopColor):
215         (WebCore::InheritedFlags::borderBottomColor):
216         (WebCore::InheritedFlags::backgroundColor):
217         (WebCore::InheritedFlags::color):
218         (WebCore::InheritedFlags::columnRuleColor):
219         (WebCore::InheritedFlags::outlineColor):
220         (WebCore::InheritedFlags::textEmphasisColor):
221         (WebCore::InheritedFlags::textFillColor):
222         (WebCore::InheritedFlags::textStrokeColor):
223         (WebCore::InheritedFlags::stopColor):
224         (WebCore::InheritedFlags::floodColor):
225         (WebCore::InheritedFlags::lightingColor):
226
227             Made color getters return "Color" instead of "const Color&" since
228             BorderValue no longer has an actual object to return the reference to.
229
230         * css/CSSStyleApplyProperty.cpp:
231         (WebCore::ApplyPropertyColor::applyInheritValue):
232         * page/animation/AnimationBase.cpp:
233         (WebCore::PropertyWrapperColor::PropertyWrapperColor):
234         (WebCore::PropertyWrapperColor::blend):
235         (WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor):
236         (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint):
237         (WebCore::AnimationBase::ensurePropertyMap):
238
239             Adapt to RenderStyle color getters now returning "Color" instead of
240             "const Color&".
241
242 2011-10-09  Yury Semikhatsky  <yurys@chromium.org>
243
244         Missing m_notificationPresenter initialization in WorkerThread constructor
245         https://bugs.webkit.org/show_bug.cgi?id=69741
246
247         Added missing m_notificationPresenter(0)
248
249         Reviewed by Pavel Feldman.
250
251         * workers/WorkerThread.cpp:
252         (WebCore::WorkerThread::WorkerThread):
253
254 2011-10-09  Daniel Bates  <dbates@webkit.org>
255
256         Another attempt to fix the Leopard Intel Debug build after changeset 97034 <http://trac.webkit.org/changeset/97034>
257         (https://bugs.webkit.org/show_bug.cgi?id=68035)
258
259         * page/FrameView.cpp:
260         (WebCore::FrameView::zoomAnimatorTransformChanged): Explicitly convert a double precision result
261         to a single precision result. I am unsure if this fix is correct. We need to look into this some
262         more. See <https://bugs.webkit.org/show_bug.cgi?id=69739> for more details.
263
264 2011-10-09  Daniel Bates  <dbates@webkit.org>
265
266         Attempt to fix the Leopard Intel Debug build after changeset 97034 <http://trac.webkit.org/changeset/97034>
267         (https://bugs.webkit.org/show_bug.cgi?id=68035)
268
269         * page/FrameView.cpp:
270         (WebCore::FrameView::zoomAnimatorTransformChanged): Explicitly convert double precision result to
271         an integer. I am unsure if this fix is correct. We need to look into this some more. See
272         <https://bugs.webkit.org/show_bug.cgi?id=69739> for more details.
273
274 2011-10-09  Luke Macpherson   <macpherson@chromium.org>
275
276         Fix Lion, Leopard and Snow Leopard builds after changeset 97034 <http://trac.webkit.org/changeset/97034>
277         (https://bugs.webkit.org/show_bug.cgi?id=68035)
278         https://bugs.webkit.org/show_bug.cgi?id=69735
279
280         Reviewed by Daniel Bates.
281
282         * testing/Internals.cpp:
283         Mark unused parameters to prevent compile errors when GESTURE_EVENTS and SMOOTH_SCROLLING are disabled.
284         (WebCore::Internals::setEnableScrollAnimator):
285         (WebCore::Internals::setZoomAnimatorTransform):
286         (WebCore::Internals::setZoomParameters):
287
288 2011-10-09  Kent Tamura  <tkent@chromium.org>
289
290         Remove redundant code of HTMLSelectElement.
291         https://bugs.webkit.org/show_bug.cgi?id=69701
292
293         Reviewed by Darin Adler.
294
295         No new tests, just a refactoring.
296
297         * html/HTMLSelectElement.cpp:
298         (WebCore::HTMLSelectElement::deselectItems):
299         Rename inner deselectItems() to deselectItemsWithoutValidation().
300         (WebCore::HTMLSelectElement::setSelectedIndex):
301         Rename a callsite of another setSelectedIndex() to setSelectedIndexInternal().
302         (WebCore::HTMLSelectElement::setSelectedIndexByUser):
303         ditto, and update a callsite of updateSelectedState().
304         (WebCore::HTMLSelectElement::listBoxSelectItem):
305         Update a callsite of updateSelectedState().
306         (WebCore::HTMLSelectElement::activeSelectionEndListIndex):
307         Update a callsite of lastSelectedListIndex().
308         (WebCore::HTMLSelectElement::selectAll):
309         Update callsites of functions which are changed to non-static.
310         (WebCore::HTMLSelectElement::saveLastSelection):
311         Merge a static function and a non-static function.
312         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): ditto.
313         (WebCore::HTMLSelectElement::setActiveSelectionEndIndex): ditto.
314         (WebCore::HTMLSelectElement::updateListBoxSelection): ditto.
315         (WebCore::HTMLSelectElement::listBoxOnChange): ditto.
316         (WebCore::HTMLSelectElement::menuListOnChange): ditto.
317         (WebCore::HTMLSelectElement::scrollToSelection): ditto.
318         (WebCore::HTMLSelectElement::setOptionsChangedOnRenderer): Made this non-static.
319         (WebCore::HTMLSelectElement::setRecalcListItems):
320         Merge a static function and a non-static function.
321         (WebCore::HTMLSelectElement::selectedIndex): ditto.
322         (WebCore::HTMLSelectElement::setSelectedIndexInternal):
323         Made this non-static, and renamed from setSelectedIndex() because
324         of conflict with an existing function.
325         (WebCore::HTMLSelectElement::optionToListIndex):
326         Merge a static function and a non-static function.
327         (WebCore::HTMLSelectElement::listToOptionIndex): ditto.
328         (WebCore::HTMLSelectElement::dispatchFocusEvent):
329         Update a callsite of function which is changed to no-staic.
330         (WebCore::HTMLSelectElement::dispatchBlurEvent): ditto.
331         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
332         Made this non-static, and renamed from deselectItems() to avoid conflict.
333         (WebCore::HTMLSelectElement::restoreFormControlState):
334         Update a callsite of function which is changed to no-staic.
335         (WebCore::HTMLSelectElement::reset): ditto.
336         (WebCore::HTMLSelectElement::platformHandleKeydownEvent): Made this non-static.
337         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): ditto.
338         (WebCore::HTMLSelectElement::updateSelectedState): ditto.
339         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): ditto.
340         (WebCore::HTMLSelectElement::defaultEventHandler):
341         Merged a static function and a non-static function.
342         (WebCore::HTMLSelectElement::lastSelectedListIndex): Made this non-static.
343         (WebCore::HTMLSelectElement::typeAheadFind): ditto.
344         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): ditto.
345         * html/HTMLSelectElement.h:
346         * html/HTMLSelectElementWin.cpp:
347         (WebCore::HTMLSelectElement::platformHandleKeydownEvent): Made this non-static.
348
349 2011-10-09  Adam Barth  <abarth@webkit.org>
350
351         CSP should log unrecognized directives to the console
352         https://bugs.webkit.org/show_bug.cgi?id=69728
353
354         Reviewed by Sam Weinig.
355
356         Several of the web developers who have been experimenting with CSP have
357         run into trouble with directives we don't support.  For example, one
358         developer was confused for a while why image-src didn't do what he
359         expected.  Logging a message to the console will help these folks
360         figure out what's going on.
361
362         * page/ContentSecurityPolicy.cpp:
363         (WebCore::ContentSecurityPolicy::reportUnrecognizedDirective):
364         (WebCore::ContentSecurityPolicy::addDirective):
365         * page/ContentSecurityPolicy.h:
366
367 2011-10-09  W. James MacLean  <wjmaclean@chromium.org>
368
369         [chromium] Zoom animator front-end
370         https://bugs.webkit.org/show_bug.cgi?id=68035
371
372         Adds necessary components to ScrollAnimatorNone to support a zoom animation
373         feature. Includes test infrastructure via testing/Internals to capture
374         in-progress texture scaling (zoom-animator-scale-test.html) as well as a
375         final view --- after pageScaleFactor has been applied --- in zoom-animator-scale-test2.html.
376
377         Removes temporary test fields from Settings.
378
379         Reviewed by Kenneth Russell.
380
381         Test: platform/chromium/compositing/zoom-animator-scale-test2.html
382
383         * page/EventHandler.cpp:
384         (WebCore::EventHandler::handleGestureEvent):
385         * page/FrameView.cpp:
386         (WebCore::FrameView::zoomAnimatorTransformChanged):
387         * page/FrameView.h:
388         * page/Settings.cpp:
389         (WebCore::Settings::Settings):
390         * page/Settings.h:
391         * platform/ScrollAnimator.cpp:
392         (WebCore::ScrollAnimator::ScrollAnimator):
393         (WebCore::ScrollAnimator::notifyZoomChanged):
394         (WebCore::ScrollAnimator::zoomTranslation):
395         (WebCore::ScrollAnimator::resetZoom):
396         (WebCore::ScrollAnimator::setZoomParametersForTest):
397         * platform/ScrollAnimator.h:
398         (WebCore::ScrollAnimator::zoomScale):
399         * platform/ScrollAnimatorNone.cpp:
400         (WebCore::ScrollAnimatorNone::ZoomData::ZoomData):
401         (WebCore::ScrollAnimatorNone::ZoomData::animateZoom):
402         (WebCore::ScrollAnimatorNone::ScrollAnimatorNone):
403         (WebCore::ScrollAnimatorNone::zoom):
404         (WebCore::ScrollAnimatorNone::handleGestureEvent):
405         (WebCore::ScrollAnimatorNone::animationTimerFired):
406         * platform/ScrollAnimatorNone.h:
407         * platform/ScrollableArea.cpp:
408         (WebCore::ScrollableArea::zoomAnimatorTransformChanged):
409         * platform/ScrollableArea.h:
410         * testing/Internals.cpp:
411         (WebCore::Internals::setEnableScrollAnimator):
412         (WebCore::Internals::setZoomAnimatorTransform):
413         (WebCore::Internals::getPageScaleFactor):
414         (WebCore::Internals::setZoomParameters):
415         * testing/Internals.h:
416         * testing/Internals.idl:
417
418 2011-10-09  Dan Bernstein  <mitz@apple.com>
419
420         <rdar://problem/9484496> REGRESSION (WebKit2): Checkboxes and radio buttons are drawn 1 pixel too high, not repainted properly
421         https://bugs.webkit.org/show_bug.cgi?id=69727
422
423         Reviewed by Anders Carlsson.
424
425         * platform/mac/ThemeMac.mm: Made WebCoreFlippedView an NSControl subclass so that the NSButtonCell
426         used to draw checkboxes and radio buttons can make it its controlView, and consequently check and
427         obey its flippedness.
428
429 2011-10-09  Benjamin Poulain  <benjamin@webkit.org>
430
431         Do not compare the first glyph to itself in Font::drawGlyphBuffer()
432         https://bugs.webkit.org/show_bug.cgi?id=69715
433
434         Reviewed by Andreas Kling.
435
436         When looking for glyphs with similar properties, we should
437         skip the first one since the comparison of fontData 
438         and offset will always fail.
439
440         This is covered by the existing tests.
441
442         * platform/graphics/FontFastPath.cpp:
443         (WebCore::Font::drawGlyphBuffer):
444
445 2011-10-08  Justin Schuh  <jschuh@chromium.org>
446
447         Make ThreadGlobalData members use OwnPtr
448         https://bugs.webkit.org/show_bug.cgi?id=69710
449
450         Reviewed by Adam Barth.
451
452         No functional changes. No new tests required.
453
454         * platform/ThreadGlobalData.cpp:
455         (WebCore::ThreadGlobalData::ThreadGlobalData):
456         (WebCore::ThreadGlobalData::~ThreadGlobalData):
457         (WebCore::ThreadGlobalData::destroy):
458         * platform/ThreadGlobalData.h:
459
460 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
461
462         Add static version of JSCell::getConstructData
463         https://bugs.webkit.org/show_bug.cgi?id=69673
464
465         Reviewed by Geoffrey Garen.
466
467         No new tests.
468
469         Added static version of getConstructData to all classes that 
470         override it and changed the virtual versions to call the static 
471         versions.  This is the first step in de-virtualizing JSCell::getConstructData.
472
473         * bindings/js/JSAudioConstructor.cpp:
474         (WebCore::JSAudioConstructor::getConstructData):
475         * bindings/js/JSAudioConstructor.h:
476         * bindings/js/JSImageConstructor.cpp:
477         (WebCore::JSImageConstructor::getConstructData):
478         * bindings/js/JSImageConstructor.h:
479         * bindings/js/JSOptionConstructor.cpp:
480         (WebCore::JSOptionConstructor::getConstructData):
481         * bindings/js/JSOptionConstructor.h:
482         * bindings/scripts/CodeGeneratorJS.pm:
483         (GenerateConstructorDeclaration):
484         (GenerateConstructorDefinition):
485         * bindings/scripts/test/JS/JSTestInterface.cpp:
486         (WebCore::JSTestInterfaceConstructor::getConstructData):
487         * bridge/runtime_object.cpp:
488         (JSC::Bindings::RuntimeObject::getConstructData):
489         * bridge/runtime_object.h:
490
491 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
492
493         Add static version of JSCell::getOwnPropertySlot
494         https://bugs.webkit.org/show_bug.cgi?id=69593
495
496         Reviewed by Geoffrey Garen.
497
498         No new tests.
499
500         Added static version of getOwnPropertySlot to every class that overrides
501         JSCell::getOwnPropertySlot.  The virtual versions now call the static versions.
502         This is the first step in de-virtualizing JSCell::getOwnPropertySlot.
503
504         * bindings/js/JSDOMWindowShell.cpp:
505         (WebCore::JSDOMWindowShell::getOwnPropertySlot):
506         * bindings/js/JSDOMWindowShell.h:
507         * bridge/objc/objc_runtime.h:
508         * bridge/objc/objc_runtime.mm:
509         (JSC::Bindings::ObjcFallbackObjectImp::getOwnPropertySlot):
510         * bridge/qt/qt_runtime.cpp:
511         (JSC::Bindings::QtRuntimeMetaMethod::getOwnPropertySlot):
512         (JSC::Bindings::QtRuntimeConnectionMethod::getOwnPropertySlot):
513         * bridge/qt/qt_runtime.h:
514         * bridge/runtime_array.cpp:
515         (JSC::RuntimeArray::getOwnPropertySlot):
516         * bridge/runtime_array.h:
517         * bridge/runtime_method.cpp:
518         (JSC::RuntimeMethod::getOwnPropertySlot):
519         * bridge/runtime_method.h:
520         * bridge/runtime_object.cpp:
521         (JSC::Bindings::RuntimeObject::getOwnPropertySlot):
522         * bridge/runtime_object.h:
523
524 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
525
526         [GTK] Implement drag and drop support in WebKit2
527         https://bugs.webkit.org/show_bug.cgi?id=63706
528
529         Reviewed by Philippe Normand.
530
531         * platform/DragData.h:
532         * platform/gtk/DataObjectGtk.cpp:
533         (WebCore::DataObjectGtk::text): Mark as const.
534         (WebCore::DataObjectGtk::markup): Ditto.
535         (WebCore::DataObjectGtk::urlLabel): Ditto.
536         * platform/gtk/DataObjectGtk.h: Remove unused member
537         m_dragContext.
538         (WebCore::DataObjectGtk::url): Mark as const.
539         (WebCore::DataObjectGtk::uriList): Ditto.
540         (WebCore::DataObjectGtk::filenames): Ditto.
541         (WebCore::DataObjectGtk::image): Ditto.
542         (WebCore::DataObjectGtk::hasText): Ditto.
543         (WebCore::DataObjectGtk::hasMarkup): Ditto.
544         (WebCore::DataObjectGtk::hasURIList): Ditto.
545         (WebCore::DataObjectGtk::hasURL): Ditto.
546         (WebCore::DataObjectGtk::hasFilenames): Ditto.
547         (WebCore::DataObjectGtk::hasImage): Ditto.
548         * platform/gtk/DragIcon.cpp: Added. A helper which takes care of
549         creating a transparent drag window for drags.
550         * platform/gtk/DragIcon.h: Added.
551
552 2011-10-08  Abhishek Arya  <inferno@chromium.org>
553
554         Add support for ADDRESS_SANITIZER in RenderArena
555         allocate, free calls.
556         https://bugs.webkit.org/show_bug.cgi?id=69636
557
558         Reviewed by Darin Adler.
559
560         Use malloc, free directly without using the debug header. Otherwise,
561         we won't be able to detect out of bounds access in debug header.
562
563         * rendering/RenderArena.cpp:
564         (WebCore::RenderArena::allocate):
565         (WebCore::RenderArena::free):
566
567 2011-10-08  Kent Tamura  <tkent@chromium.org>
568
569         Remove some static functions of HTMLSelectElement
570         https://bugs.webkit.org/show_bug.cgi?id=69621
571
572         Reviewed by Darin Adler.
573
574         Merge a static function and the corresponding non-static member function
575         into one function if there are no other callers of the static function.
576
577         No new tests, just a refactoring.
578
579         * html/HTMLFormControlElement.h:
580         Make formControlName() protected because it is called from
581         HTMLSelectElement.
582         * html/HTMLSelectElement.cpp:
583         (WebCore::HTMLSelectElement::parseMappedAttribute):
584         Remove two argument of parseMultipleAttribute().
585         (WebCore::HTMLSelectElement::selectAll):
586         Merged the static function and the member function.
587         (WebCore::HTMLSelectElement::dispatchFocusEvent): ditto.
588         (WebCore::HTMLSelectElement::dispatchBlurEvent): ditto.
589         (WebCore::HTMLSelectElement::saveFormControlState): ditto.
590         (WebCore::HTMLSelectElement::restoreFormControlState):
591         (WebCore::HTMLSelectElement::parseMultipleAttribute):
592          - Make this non-static member function.
593          - Use reattachIfAttached().
594         (WebCore::HTMLSelectElement::appendFormData): Merged.
595         (WebCore::HTMLSelectElement::reset): ditto.
596         (WebCore::HTMLSelectElement::insertedIntoTree): ditto.
597         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): ditto.
598         (WebCore::HTMLSelectElement::length): Merged with optionCount().
599         * html/HTMLSelectElement.h:
600
601 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
602
603         Unreviewed, rolling out r96996.
604         http://trac.webkit.org/changeset/96996
605         https://bugs.webkit.org/show_bug.cgi?id=69697
606
607         It broke all tests on the Qt bot (Requested by Ossy_night on
608         #webkit).
609
610         * WebCore.exp.in:
611         * bindings/js/JSCallbackData.cpp:
612         (WebCore::JSCallbackData::invokeCallback):
613         * bindings/js/JSCustomXPathNSResolver.cpp:
614         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
615         * bindings/js/JSErrorHandler.cpp:
616         (WebCore::JSErrorHandler::handleEvent):
617         * bindings/js/JSEventListener.cpp:
618         (WebCore::JSEventListener::handleEvent):
619         * bindings/js/JSHTMLAllCollectionCustom.cpp:
620         (WebCore::JSHTMLAllCollection::getCallDataVirtual):
621         * bindings/js/JSHTMLAppletElementCustom.cpp:
622         (WebCore::JSHTMLAppletElement::getCallDataVirtual):
623         * bindings/js/JSHTMLEmbedElementCustom.cpp:
624         (WebCore::JSHTMLEmbedElement::getCallDataVirtual):
625         * bindings/js/JSHTMLObjectElementCustom.cpp:
626         (WebCore::JSHTMLObjectElement::getCallDataVirtual):
627         * bindings/js/JSInjectedScriptHostCustom.cpp:
628         (WebCore::JSInjectedScriptHost::evaluate):
629         * bindings/js/JSPluginElementFunctions.cpp:
630         (WebCore::runtimeObjectGetCallData):
631         * bindings/scripts/CodeGeneratorJS.pm:
632         (GenerateHeader):
633         * bridge/objc/objc_runtime.h:
634         * bridge/objc/objc_runtime.mm:
635         (JSC::Bindings::ObjcFallbackObjectImp::getCallDataVirtual):
636         * bridge/qt/qt_runtime.cpp:
637         (JSC::Bindings::QtRuntimeMetaMethod::getCallDataVirtual):
638         (JSC::Bindings::QtRuntimeConnectionMethod::call):
639         (JSC::Bindings::QtRuntimeConnectionMethod::getCallDataVirtual):
640         (JSC::Bindings::isJavaScriptFunction):
641         * bridge/qt/qt_runtime.h:
642         * bridge/runtime_method.cpp:
643         (JSC::RuntimeMethod::getCallDataVirtual):
644         * bridge/runtime_method.h:
645         * bridge/runtime_object.cpp:
646         (JSC::Bindings::RuntimeObject::getCallDataVirtual):
647         * bridge/runtime_object.h:
648
649 2011-10-08  Ryosuke Niwa  <rniwa@webkit.org>
650
651         Snow Leopard build fix after r96976. Apparently we just need a full rebuild.
652
653         * config.h:
654
655 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
656
657         Add static version of JSCell::deleteProperty
658         https://bugs.webkit.org/show_bug.cgi?id=69659
659
660         Reviewed by Geoffrey Garen.
661
662         No new tests.
663
664         Added static version of both versions of put to all classes that 
665         override them and changed the virtual versions to call the static 
666         versions.  This is the first step in de-virtualizing JSCell::deleteProperty.
667
668         * bridge/objc/objc_runtime.h:
669         * bridge/objc/objc_runtime.mm:
670         (JSC::Bindings::ObjcFallbackObjectImp::deleteProperty):
671         * bridge/runtime_array.cpp:
672         (JSC::RuntimeArray::deleteProperty):
673         * bridge/runtime_array.h:
674         * bridge/runtime_object.cpp:
675         (JSC::Bindings::RuntimeObject::deleteProperty):
676         * bridge/runtime_object.h:
677
678 2011-10-07  Justin Schuh  <jschuh@chromium.org>
679
680         Make isXMLMIMEType regex use TLS
681         https://bugs.webkit.org/show_bug.cgi?id=69665
682
683         Reviewed by Adam Barth.
684
685         Test: fast/workers/worker-multi-startup.html
686
687         * dom/DOMImplementation.cpp:
688         (WebCore::XMLMIMETypeRegExp::XMLMIMETypeRegExp):
689         (WebCore::XMLMIMETypeRegExp::~XMLMIMETypeRegExp):
690         (WebCore::XMLMIMETypeRegExp::isXMLMIMEType):
691         (WebCore::DOMImplementation::isXMLMIMEType):
692         * dom/DOMImplementation.h:
693         * platform/ThreadGlobalData.cpp:
694         (WebCore::ThreadGlobalData::ThreadGlobalData):
695         (WebCore::ThreadGlobalData::destroy):
696         * platform/ThreadGlobalData.h:
697         (WebCore::ThreadGlobalData::xmlTypeRegExp):
698
699 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
700
701         Unreviewed, rolling out r96847.
702         http://trac.webkit.org/changeset/96847
703         https://bugs.webkit.org/show_bug.cgi?id=69684
704
705         may have caused memory regression on win chromium (Requested
706         by simonjam on #webkit).
707
708         * platform/graphics/chromium/FontChromiumWin.cpp:
709         (WebCore::Font::drawGlyphs):
710
711 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
712
713         Remove getCallDataVirtual methods
714         https://bugs.webkit.org/show_bug.cgi?id=69186
715
716         Reviewed by Geoffrey Garen.
717
718         No new tests.
719
720         Removed all getCallDataVirtual methods and replaced their call sites 
721         with an explicit lookup in the MethodTable.
722
723         * WebCore.exp.in:
724         * bindings/js/JSCallbackData.cpp:
725         (WebCore::JSCallbackData::invokeCallback):
726         * bindings/js/JSCustomXPathNSResolver.cpp:
727         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
728         * bindings/js/JSErrorHandler.cpp:
729         (WebCore::JSErrorHandler::handleEvent):
730         * bindings/js/JSEventListener.cpp:
731         (WebCore::JSEventListener::handleEvent):
732         * bindings/js/JSHTMLAllCollectionCustom.cpp:
733         * bindings/js/JSHTMLAppletElementCustom.cpp:
734         * bindings/js/JSHTMLEmbedElementCustom.cpp:
735         * bindings/js/JSHTMLObjectElementCustom.cpp:
736         * bindings/js/JSInjectedScriptHostCustom.cpp:
737         (WebCore::JSInjectedScriptHost::evaluate):
738         * bindings/js/JSPluginElementFunctions.cpp:
739         (WebCore::runtimeObjectGetCallData):
740         * bindings/scripts/CodeGeneratorJS.pm:
741         (GenerateHeader):
742         * bridge/objc/objc_runtime.h:
743         * bridge/objc/objc_runtime.mm:
744         * bridge/qt/qt_runtime.cpp:
745         (JSC::Bindings::QtRuntimeConnectionMethod::call):
746         (JSC::Bindings::isJavaScriptFunction):
747         * bridge/qt/qt_runtime.h:
748         (JSC::Bindings::QtRuntimeMetaMethod::createStructure):
749         (JSC::Bindings::QtRuntimeConnectionMethod::createStructure):
750         * bridge/runtime_method.cpp:
751         * bridge/runtime_method.h:
752         * bridge/runtime_object.cpp:
753         * bridge/runtime_object.h:
754
755 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
756
757         Add static version of JSCell::put
758         https://bugs.webkit.org/show_bug.cgi?id=69382
759
760         Reviewed by Geoffrey Garen.
761
762         No new tests.
763
764         Added static version of both versions of put to all classes that 
765         override them and changed the virtual versions to call the static 
766         versions.
767
768         * bindings/scripts/CodeGeneratorJS.pm:
769         (GenerateHeader):
770         (GenerateImplementation):
771         * bindings/scripts/test/JS/JSTestObj.cpp:
772         (WebCore::JSTestObj::put):
773         * bindings/scripts/test/JS/JSTestObj.h:
774         * bridge/objc/objc_runtime.h:
775         * bridge/objc/objc_runtime.mm:
776         (JSC::Bindings::ObjcFallbackObjectImp::put):
777         * bridge/runtime_array.cpp:
778         (JSC::RuntimeArray::put):
779         * bridge/runtime_array.h:
780         * bridge/runtime_object.cpp:
781         (JSC::Bindings::RuntimeObject::put):
782         * bridge/runtime_object.h:
783
784 2011-10-07  Anantanarayanan G Iyengar  <ananta@chromium.org>
785
786          https://bugs.webkit.org/show_bug.cgi?id=69471
787
788          We now wrap the window script NPObject which is requested by NPAPI plugins for
789          scripting. The wrapped NPObject pointer maintains a weak reference to the
790          window script NPObject and is cleared out when the window script object is destroyed.
791          The NPObject wrapper is destroyed when the last outstanding reference is released.
792
793          Reviewed by Nate Chapin.
794
795          No tests added as there is no change in functionality.
796
797         * WebCore.gypi:
798         * bindings/v8/NPObjectWrapper.cpp: Added.
799         (WebCore::NPObjectWrapper::NPObjectWrapper):
800         (WebCore::NPObjectWrapper::create):
801         (WebCore::NPObjectWrapper::clear):
802         (WebCore::NPObjectWrapper::getWrapper):
803         (WebCore::NPObjectWrapper::getUnderlyingNPObject):
804         (WebCore::NPObjectWrapper::getObjectForCall):
805         (WebCore::NPObjectWrapper::NPAllocate):
806         (WebCore::NPObjectWrapper::NPDeallocate):
807         (WebCore::NPObjectWrapper::NPPInvalidate):
808         (WebCore::NPObjectWrapper::NPHasMethod):
809         (WebCore::NPObjectWrapper::NPInvoke):
810         (WebCore::NPObjectWrapper::NPInvokeDefault):
811         (WebCore::NPObjectWrapper::NPHasProperty):
812         (WebCore::NPObjectWrapper::NPGetProperty):
813         (WebCore::NPObjectWrapper::NPSetProperty):
814         (WebCore::NPObjectWrapper::NPRemoveProperty):
815         (WebCore::NPObjectWrapper::NPNEnumerate):
816         (WebCore::NPObjectWrapper::NPNConstruct):
817         (WebCore::NPObjectWrapper::NPInvokePrivate):
818         * bindings/v8/NPObjectWrapper.h: Added.
819         * bindings/v8/NPV8Object.cpp:
820         (_NPN_EvaluateHelper):
821         * bindings/v8/ScriptController.cpp:
822         (WebCore::ScriptController::ScriptController):
823         (WebCore::ScriptController::clearScriptObjects):
824         (WebCore::ScriptController::windowScriptNPObject):
825         * bindings/v8/ScriptController.h:
826
827 2011-10-07  Antoine Labour  <piman@chromium.org>
828
829         Webkit API for compositor
830         https://bugs.webkit.org/show_bug.cgi?id=69107
831
832         Reviewed by Darin Fisher.
833
834         Covered by existing compositing tests.
835
836         * platform/graphics/chromium/ContentLayerChromium.h: 
837
838 2011-10-07  Ben Wells  <benwells@chromium.org>
839
840         CSS text-transform should apply to select elements
841         https://bugs.webkit.org/show_bug.cgi?id=69503
842
843         Reviewed by Ojan Vafai.
844
845         Select elements are drawn in two ways depending on whether they are multiple and what their size is.
846         Neither method previously handled text-transforms. Both of these rendering styles are now updated to transform
847         their text correctly.
848
849         Test: fast/css/text-transform-select.html
850
851         * rendering/RenderListBox.cpp:
852         (WebCore::RenderListBox::updateFromElement):
853         (WebCore::RenderListBox::paintItemForeground):
854         * rendering/RenderMenuList.cpp:
855         (WebCore::RenderMenuList::updateOptionsWidth):
856         (WebCore::RenderMenuList::setText):
857         (WebCore::RenderMenuList::itemText):
858         * rendering/RenderText.cpp:
859         (WebCore::makeCapitalized):
860         (WebCore::applyTextTransform):
861         (WebCore::RenderText::setTextInternal):
862         (WebCore::RenderText::textWithoutTranscoding):
863         * rendering/RenderText.h:
864
865 2011-10-07  Tony Chang  <tony@chromium.org>
866
867         fix a crash when loading non-html multipart data
868         https://bugs.webkit.org/show_bug.cgi?id=69675
869
870         Reviewed by Adam Barth.
871
872         setupForReplaceByMIMEType calls DocumentWriter::end().  This leads to
873         a crash on Mac because WebHTMLRepresentation() calls commitLoad(nil),
874         which tries to write to the DocumentWriter.  By just inlining the code
875         to load the last page, we avoid this crash (and makes the non-html
876         multipart code more like the html multipart code).
877
878         * loader/DocumentLoader.cpp:
879         (WebCore::DocumentLoader::maybeFinishLoadingMultipartContent):
880
881 2011-10-07  Sergey Glazunov  <serg.glazunov@gmail.com>
882
883         XSLT-generated document should inherit its SecurityOrigin from the source document
884         https://bugs.webkit.org/show_bug.cgi?id=69661
885
886         Reviewed by Adam Barth.
887
888         Test: http/tests/security/xss-DENIED-xsl-document-securityOrigin.xml
889
890         * xml/XSLTProcessor.cpp:
891         (WebCore::XSLTProcessor::createDocumentFromSource):
892
893 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
894
895         Unreviewed, rolling out r96944.
896         http://trac.webkit.org/changeset/96944
897         https://bugs.webkit.org/show_bug.cgi?id=69662
898
899         Caused many tests to crash on Snow Leopard (Requested by rniwa
900         on #webkit).
901
902         * css/CSSStyleApplyProperty.cpp:
903         (WebCore::ApplyPropertyColor::applyInheritValue):
904         * page/animation/AnimationBase.cpp:
905         (WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor):
906         (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint):
907         (WebCore::AnimationBase::ensurePropertyMap):
908         * platform/graphics/Color.h:
909         (WebCore::Color::Color):
910         * rendering/style/BorderValue.h:
911         (WebCore::BorderValue::BorderValue):
912         (WebCore::BorderValue::isTransparent):
913         (WebCore::BorderValue::operator==):
914         (WebCore::BorderValue::color):
915         * rendering/style/OutlineValue.h:
916         (WebCore::OutlineValue::operator==):
917         * rendering/style/RenderStyle.h:
918         (WebCore::InheritedFlags::setBorderLeftColor):
919         (WebCore::InheritedFlags::setBorderRightColor):
920         (WebCore::InheritedFlags::setBorderTopColor):
921         (WebCore::InheritedFlags::setBorderBottomColor):
922         (WebCore::InheritedFlags::setOutlineColor):
923         (WebCore::InheritedFlags::setColumnRuleColor):
924         (WebCore::InheritedFlags::fillPaintColor):
925         (WebCore::InheritedFlags::strokePaintColor):
926         (WebCore::InheritedFlags::borderLeftColor):
927         (WebCore::InheritedFlags::borderRightColor):
928         (WebCore::InheritedFlags::borderTopColor):
929         (WebCore::InheritedFlags::borderBottomColor):
930         (WebCore::InheritedFlags::backgroundColor):
931         (WebCore::InheritedFlags::color):
932         (WebCore::InheritedFlags::columnRuleColor):
933         (WebCore::InheritedFlags::outlineColor):
934         (WebCore::InheritedFlags::textEmphasisColor):
935         (WebCore::InheritedFlags::textFillColor):
936         (WebCore::InheritedFlags::textStrokeColor):
937         (WebCore::InheritedFlags::stopColor):
938         (WebCore::InheritedFlags::floodColor):
939         (WebCore::InheritedFlags::lightingColor):
940
941 2011-10-07  David Hyatt  <hyatt@apple.com>
942
943         https://bugs.webkit.org/show_bug.cgi?id=69658
944         
945         [CSS3 Regions] Box painting of overflow into regions is incorrect because children were being
946         incorrectly clamped to their containing block region ranges. Change the clamping model so that
947         renderRegionForLine no longer does it. A block will now truly have an accurate range across
948         all the regions that paint it. Instead, do the clamping at the time a child box asks the containing
949         block for its information. At that time clamp to the start and end regions, so that we never ask
950         a containing block for info about a region that it doesn't exist in.
951
952         Reviewed by Anders Carlsson.
953
954         Added new test in fast/regions and updated an old result to be correct.
955
956         * rendering/RenderBlock.cpp:
957         (WebCore::RenderBlock::pageLogicalHeightForOffset):
958         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
959         (WebCore::RenderBlock::regionAtBlockOffset):
960         (WebCore::RenderBlock::clampToStartAndEndRegions):
961         * rendering/RenderBlock.h:
962         * rendering/RenderBox.cpp:
963         (WebCore::RenderBox::borderBoxRectInRegion):
964         (WebCore::RenderBox::containingBlockLogicalWidthForContentInRegion):
965         (WebCore::RenderBox::renderBoxRegionInfo):
966         * rendering/RenderFlowThread.cpp:
967         (WebCore::RenderFlowThread::renderRegionForLine):
968         (WebCore::RenderFlowThread::regionLogicalWidthForLine):
969         (WebCore::RenderFlowThread::regionLogicalHeightForLine):
970         (WebCore::RenderFlowThread::regionRemainingLogicalHeightForLine):
971         (WebCore::RenderFlowThread::mapFromFlowToRegion):
972         (WebCore::RenderFlowThread::setRegionRangeForBox):
973         * rendering/RenderFlowThread.h:
974
975 2011-10-07  Chang Shu  <cshu@webkit.org>
976
977         Remove compile time flag ENABLE_PASSWORD_ECHO
978         https://bugs.webkit.org/show_bug.cgi?id=69647
979
980         As we have runtime flag in the page/Settings, we should remove this redundant compile time flag.
981
982         Reviewed by Andreas Kling.
983
984         * config.h:
985         * page/Settings.cpp:
986         (WebCore::Settings::Settings):
987
988 2011-10-07  Chris Fleizach  <cfleizach@apple.com>
989
990         Bug 69562 - AccessibilityImageMapLink holds onto it's parent even after it's been freed
991         https://bugs.webkit.org/show_bug.cgi?id=69562
992
993         Some fake objects, like AXImageMapLink, have weak references to their parent's (since they are fake objects and
994         need some connection to the parent). However, if the parent disappears before the child, then we're left with a 
995         out of date reference to that parent.
996
997         The fix is to allow these elements to clear their parentage when the parent goes away.
998
999         Reviewed by Darin Adler.
1000
1001         Test: accessibility/image-map-update-parent-crash.html
1002
1003         * accessibility/AccessibilityMenuListOption.cpp:
1004         (WebCore::AccessibilityMenuListOption::isVisible):
1005         * accessibility/AccessibilityMenuListPopup.cpp:
1006         (WebCore::AccessibilityMenuListPopup::isOffScreen):
1007         (WebCore::AccessibilityMenuListPopup::isEnabled):
1008         (WebCore::AccessibilityMenuListPopup::press):
1009         (WebCore::AccessibilityMenuListPopup::addChildren):
1010         (WebCore::AccessibilityMenuListPopup::childrenChanged):
1011         * accessibility/AccessibilityMockObject.h:
1012         (WebCore::AccessibilityMockObject::detachFromParent):
1013         * accessibility/AccessibilityObject.cpp:
1014         (WebCore::AccessibilityObject::clearChildren):
1015         * accessibility/AccessibilityObject.h:
1016         (WebCore::AccessibilityObject::detachFromParent):
1017         * accessibility/AccessibilitySlider.cpp:
1018         (WebCore::AccessibilitySliderThumb::elementRect):
1019         * accessibility/AccessibilityTableColumn.cpp:
1020         (WebCore::AccessibilityTableColumn::headerObjectForSection):
1021
1022 2011-10-07  Andreas Kling  <kling@webkit.org>
1023
1024         Pack StyleRareNonInheritedData even harder on 64-bit.
1025         https://bugs.webkit.org/show_bug.cgi?id=69648
1026
1027         Reviewed by Benjamin Poulain.
1028
1029         Rearrange the members of StyleRareNonInheritedData to fold as much
1030         as possible into the padding at the end of RefCounted.
1031
1032         This shrinks StyleRareNonInheritedData by 16 bytes on 64-bit,
1033         reducing memory consumption by another 140 kB when loading the
1034         full HTML5 spec.
1035
1036         * rendering/style/StyleRareNonInheritedData.cpp:
1037         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1038         * rendering/style/StyleRareNonInheritedData.h:
1039
1040 2011-10-07  Cary Clark  <caryclark@google.com>
1041
1042         Enable color profiles, unless profile is grayscale
1043         https://bugs.webkit.org/show_bug.cgi?id=69622
1044         https://bugs.webkit.org/show_bug.cgi?id=49950
1045         http://code.google.com/p/chromium/issues/detail?id=80844
1046
1047         Further specialize the earlier fix described in 49950 to
1048         allow color profiles in YCbCr images, but disallow color
1049         profiles marked as grayData.
1050         (see http://www.color.org/ICC1v42_2006-05.pdf 7.2.6 )
1051
1052         Reviewed by Adam Barth.
1053
1054         Test: fast/images/gray-scale-jpeg-with-color-profile.html
1055               fast/images/color-jpeg-with-color-profile.html
1056
1057         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1058         (WebCore::readColorProfile):
1059         (WebCore::JPEGImageReader::decode):
1060
1061 2011-10-07  Chris Fleizach  <cfleizach@apple.com>
1062
1063         AX: re-organize fake elements to use new AccessibilityMockObject
1064         https://bugs.webkit.org/show_bug.cgi?id=69588
1065
1066         This adds an AccessibilityMockObject for "fake" elements to descend from.
1067         Its benefit is to consolidate the various ways that these fake elements are setting
1068         and returning their parent objects.
1069
1070         No functional change, hence no new tests.
1071
1072         Reviewed by Jon Honeycutt.
1073
1074         * CMakeLists.txt:
1075         * GNUmakefile.list.am:
1076         * WebCore.gypi:
1077         * WebCore.pro:
1078         * WebCore.vcproj/WebCore.vcproj:
1079         * WebCore.xcodeproj/project.pbxproj:
1080         * accessibility/AccessibilityARIAGrid.cpp:
1081         (WebCore::AccessibilityARIAGrid::addChildren):
1082         * accessibility/AccessibilityImageMapLink.cpp:
1083         (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
1084         * accessibility/AccessibilityImageMapLink.h:
1085         (WebCore::AccessibilityImageMapLink::node):
1086         * accessibility/AccessibilityMenuList.cpp:
1087         (WebCore::AccessibilityMenuList::addChildren):
1088         * accessibility/AccessibilityMenuList.h:
1089         (WebCore::toAccessibilityMenuList):
1090         * accessibility/AccessibilityMenuListOption.cpp:
1091         (WebCore::AccessibilityMenuListOption::AccessibilityMenuListOption):
1092         (WebCore::AccessibilityMenuListOption::isVisible):
1093         * accessibility/AccessibilityMenuListOption.h:
1094         * accessibility/AccessibilityMenuListPopup.cpp:
1095         (WebCore::AccessibilityMenuListPopup::AccessibilityMenuListPopup):
1096         (WebCore::AccessibilityMenuListPopup::isOffScreen):
1097         (WebCore::AccessibilityMenuListPopup::isEnabled):
1098         (WebCore::AccessibilityMenuListPopup::menuListOptionAccessibilityObject):
1099         (WebCore::AccessibilityMenuListPopup::press):
1100         (WebCore::AccessibilityMenuListPopup::addChildren):
1101         (WebCore::AccessibilityMenuListPopup::childrenChanged):
1102         (WebCore::AccessibilityMenuListPopup::didUpdateActiveOption):
1103         * accessibility/AccessibilityMenuListPopup.h:
1104         * accessibility/AccessibilityMockObject.cpp: Added.
1105         (WebCore::AccessibilityMockObject::AccessibilityMockObject):
1106         (WebCore::AccessibilityMockObject::~AccessibilityMockObject):
1107         * accessibility/AccessibilityMockObject.h: Added.
1108         (WebCore::AccessibilityMockObject::parentObject):
1109         (WebCore::AccessibilityMockObject::setParent):
1110         (WebCore::AccessibilityMockObject::detachFromParent):
1111         * accessibility/AccessibilitySlider.cpp:
1112         (WebCore::AccessibilitySlider::addChildren):
1113         (WebCore::AccessibilitySliderThumb::AccessibilitySliderThumb):
1114         (WebCore::AccessibilitySliderThumb::elementRect):
1115         * accessibility/AccessibilitySlider.h:
1116         * accessibility/AccessibilityTable.cpp:
1117         (WebCore::AccessibilityTable::addChildren):
1118         (WebCore::AccessibilityTable::headerContainer):
1119         * accessibility/AccessibilityTable.h:
1120         (WebCore::toAccessibilityTable):
1121         * accessibility/AccessibilityTableColumn.cpp:
1122         (WebCore::AccessibilityTableColumn::AccessibilityTableColumn):
1123         (WebCore::AccessibilityTableColumn::setParent):
1124         (WebCore::AccessibilityTableColumn::headerObject):
1125         (WebCore::AccessibilityTableColumn::headerObjectForSection):
1126         (WebCore::AccessibilityTableColumn::accessibilityIsIgnored):
1127         (WebCore::AccessibilityTableColumn::addChildren):
1128         * accessibility/AccessibilityTableColumn.h:
1129         * accessibility/AccessibilityTableHeaderContainer.cpp:
1130         (WebCore::AccessibilityTableHeaderContainer::AccessibilityTableHeaderContainer):
1131         (WebCore::AccessibilityTableHeaderContainer::accessibilityIsIgnored):
1132         (WebCore::AccessibilityTableHeaderContainer::addChildren):
1133         * accessibility/AccessibilityTableHeaderContainer.h:
1134
1135 2011-10-07  Nate Chapin  <japhet@chromium.org>
1136
1137         Make IconLoader a CachedResourceClient instead of a SubresourceLoaderClient.
1138         This is one of the steps required to remove the SubresourceLoaderClient interface,
1139         which will simplify the layering in the loader.
1140         https://bugs.webkit.org/show_bug.cgi?id=69567
1141
1142         Reviewed by Adam Barth.
1143
1144         No new tests, no functionality change intended.
1145
1146         * CMakeLists.txt:
1147         * GNUmakefile.list.am:
1148         * WebCore.gypi:
1149         * WebCore.pro:
1150         * WebCore.vcproj/WebCore.vcproj:
1151         * WebCore.xcodeproj/project.pbxproj:
1152         * loader/cache/CachedRawResource.cpp: Added.
1153         * loader/cache/CachedRawResource.h: Added.
1154         * loader/cache/CachedResource.cpp:
1155         * loader/cache/CachedResource.h:
1156         (WebCore::CachedResource::ignoreForRequestCount): Renamed and generalized from isLinkResource(),
1157             which was only used to decided whether the CachedResource should count toward
1158             CachedResourceLoader::requestCount().
1159         * loader/cache/CachedResourceLoader.cpp:
1160         * loader/cache/CachedResourceLoader.h:
1161         * loader/cache/CachedResourceRequest.cpp:
1162         * loader/cache/CachedResourceRequest.h:
1163         * loader/icon/IconLoader.cpp: Get a CachedResource instead of a SubresourceLoader.
1164         (WebCore::IconLoader::notifyFinished): Merge in the status code check that was in didReceiveResponse(),
1165             since we won't be checking any callbacks before the load completes.
1166         * loader/icon/IconLoader.h:
1167
1168 2011-10-07  Adam Bergkvist  <adam.bergkvist@ericsson.com>
1169
1170         Add WebCore platform interfaces needed by updated PeerConnection design
1171         https://bugs.webkit.org/show_bug.cgi?id=68460
1172
1173         Reviewed by Adam Barth.
1174
1175         Added the PeerConnection platform files to WebCore/platform/mediastream
1176
1177         Currently not testable.
1178
1179         * GNUmakefile.am:
1180         * GNUmakefile.list.am:
1181         * WebCore.gyp/WebCore.gyp:
1182         * WebCore.gypi:
1183         * platform/mediastream/MediaStreamComponent.h: Added.
1184         (WebCore::MediaStreamComponent::create):
1185         (WebCore::MediaStreamComponent::source):
1186         (WebCore::MediaStreamComponent::enabled):
1187         (WebCore::MediaStreamComponent::setEnabled):
1188         (WebCore::MediaStreamComponent::MediaStreamComponent):
1189         * platform/mediastream/MediaStreamDescriptor.h: Added.
1190         (WebCore::MediaStreamDescriptor::create):
1191         (WebCore::MediaStreamDescriptor::owner):
1192         (WebCore::MediaStreamDescriptor::setOwner):
1193         (WebCore::MediaStreamDescriptor::label):
1194         (WebCore::MediaStreamDescriptor::component):
1195         (WebCore::MediaStreamDescriptor::numberOfComponents):
1196         (WebCore::MediaStreamDescriptor::ended):
1197         (WebCore::MediaStreamDescriptor::setEnded):
1198         (WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
1199         * platform/mediastream/MediaStreamSource.h: Added.
1200         (WebCore::MediaStreamSource::create):
1201         (WebCore::MediaStreamSource::id):
1202         (WebCore::MediaStreamSource::type):
1203         (WebCore::MediaStreamSource::name):
1204         (WebCore::MediaStreamSource::muted):
1205         (WebCore::MediaStreamSource::setMuted):
1206         (WebCore::MediaStreamSource::MediaStreamSource):
1207         * platform/mediastream/PeerHandler.cpp: Added.
1208         (WebCore::PeerHandler::PeerHandler):
1209         (WebCore::PeerHandler::~PeerHandler):
1210         (WebCore::PeerHandler::produceInitialOffer):
1211         (WebCore::PeerHandler::handleInitialOffer):
1212         (WebCore::PeerHandler::processSDP):
1213         (WebCore::PeerHandler::processPendingStreams):
1214         (WebCore::PeerHandler::sendDataStreamMessage):
1215         (WebCore::PeerHandler::stop):
1216         * platform/mediastream/PeerHandler.h: Added.
1217         (WebCore::PeerHandlerClient::~PeerHandlerClient):
1218         (WebCore::PeerHandler::create):
1219
1220 2011-10-07  Vineet Chaudary  <vineet.chaudhary@motorola.com>
1221
1222         background-color affects the font color in disabled textarea.
1223         https://bugs.webkit.org/show_bug.cgi?id=65361
1224
1225         Reviewed by Darin Adler.
1226
1227         For the transparent/translucent background colors use lightening fortext color.
1228
1229         * rendering/RenderTextControl.cpp:
1230         (WebCore::disabledTextColor):
1231
1232 2011-10-07  David Barr  <davidbarr@chromium.org>
1233
1234         Implement currentColor support for box-shadow and text-shadow
1235         https://bugs.webkit.org/show_bug.cgi?id=68218
1236
1237         Reviewed by Simon Fraser.
1238
1239         Test: fast/box-shadow/box-shadow-currentcolor.html
1240
1241         * css/CSSParser.cpp:
1242         (WebCore::CSSParser::parseShadow): Add CSSValueCurrentcolor to supported keywords.
1243
1244 2011-10-07  Pavel Feldman  <pfeldman@google.com>
1245
1246         Web Inspector: add Audits panel to the compilation.
1247         https://bugs.webkit.org/show_bug.cgi?id=69633
1248
1249         Reviewed by Yury Semikhatsky.
1250
1251         * inspector/compile-front-end.sh:
1252         * inspector/front-end/AuditCategories.js:
1253         * inspector/front-end/AuditLauncherView.js:
1254         * inspector/front-end/AuditResultView.js:
1255         * inspector/front-end/AuditRules.js:
1256         (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
1257         (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
1258         (WebInspector.AuditRules.CacheControlRule.prototype.handleNonCacheableResources):
1259         * inspector/front-end/AuditsPanel.js:
1260         (WebInspector.AuditsPanel):
1261         * inspector/front-end/NetworkLog.js:
1262         * inspector/front-end/treeoutline.js:
1263
1264 2011-10-07  Andreas Kling  <kling@webkit.org>
1265
1266         Functions that return "const Color" should simply return "Color".
1267
1268         Rubber-stamped by Antti Koivisto.
1269
1270         * rendering/RenderLayerBacking.cpp:
1271         (WebCore::RenderLayerBacking::rendererBackgroundColor):
1272         * rendering/RenderLayerBacking.h:
1273         * rendering/RenderTable.h:
1274         (WebCore::RenderTable::bgColor):
1275         * rendering/style/RenderStyle.cpp:
1276         (WebCore::RenderStyle::colorIncludingFallback):
1277         (WebCore::RenderStyle::visitedDependentColor):
1278         * rendering/style/RenderStyle.h:
1279
1280 2011-10-07  Pavel Feldman  <pfeldman@google.com>
1281
1282         Web Inspector: TypeError: Cannot read property 'styleSheetId' of undefined in tests.
1283         https://bugs.webkit.org/show_bug.cgi?id=69634
1284
1285         Reviewed by Yury Semikhatsky.
1286
1287         * inspector/front-end/CSSStyleModel.js:
1288         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
1289
1290 2011-10-06  Andreas Kling  <kling@webkit.org>
1291
1292         Shrink BorderValue.
1293         https://bugs.webkit.org/show_bug.cgi?id=69521
1294
1295         Reviewed by Antti Koivisto.
1296
1297         Unroll BorderValue's Color member so we can pack the color's validity flag
1298         in BorderValue's bitfield.
1299
1300         This shrinks BorderValue by 32 bit, which in turn shrinks BorderData by
1301         16 bytes. This reduces memory consumption by 760 kB when loading the full
1302         HTML5 spec.
1303
1304         * platform/graphics/Color.h:
1305         (WebCore::Color::Color):
1306
1307             Allow construction of Color objects with specific validity.
1308
1309         * rendering/style/BorderValue.h:
1310         (WebCore::BorderValue::BorderValue):
1311         (WebCore::BorderValue::isTransparent):
1312         (WebCore::BorderValue::operator==):
1313         (WebCore::BorderValue::setColor):
1314         (WebCore::BorderValue::color):
1315         * rendering/style/OutlineValue.h:
1316         (WebCore::OutlineValue::operator==):
1317
1318             Unroll m_color into BorderValue by splitting it into an RGBA32 and a bool.
1319             Made those variables private and added color(), setColor() accessors.
1320
1321         * rendering/style/RenderStyle.h:
1322         (WebCore::InheritedFlags::setBorderLeftColor):
1323         (WebCore::InheritedFlags::setBorderRightColor):
1324         (WebCore::InheritedFlags::setBorderTopColor):
1325         (WebCore::InheritedFlags::setBorderBottomColor):
1326         (WebCore::InheritedFlags::setOutlineColor):
1327         (WebCore::InheritedFlags::setColumnRuleColor):
1328
1329             Added a SET_BORDERVALUE_COLOR macro and use that instead of SET_VAR
1330             when setting BorderValue colors.
1331
1332         (WebCore::InheritedFlags::fillPaintColor):
1333         (WebCore::InheritedFlags::strokePaintColor):
1334         (WebCore::InheritedFlags::borderLeftColor):
1335         (WebCore::InheritedFlags::borderRightColor):
1336         (WebCore::InheritedFlags::borderTopColor):
1337         (WebCore::InheritedFlags::borderBottomColor):
1338         (WebCore::InheritedFlags::backgroundColor):
1339         (WebCore::InheritedFlags::color):
1340         (WebCore::InheritedFlags::columnRuleColor):
1341         (WebCore::InheritedFlags::outlineColor):
1342         (WebCore::InheritedFlags::textEmphasisColor):
1343         (WebCore::InheritedFlags::textFillColor):
1344         (WebCore::InheritedFlags::textStrokeColor):
1345         (WebCore::InheritedFlags::stopColor):
1346         (WebCore::InheritedFlags::floodColor):
1347         (WebCore::InheritedFlags::lightingColor):
1348
1349             Made color getters return "Color" instead of "const Color&" since
1350             BorderValue no longer has an actual object to return the reference to.
1351
1352         * css/CSSStyleApplyProperty.cpp:
1353         (WebCore::ApplyPropertyColor::applyInheritValue):
1354         * page/animation/AnimationBase.cpp:
1355         (WebCore::PropertyWrapperColor::PropertyWrapperColor):
1356         (WebCore::PropertyWrapperColor::blend):
1357         (WebCore::PropertyWrapperMaybeInvalidColor::PropertyWrapperMaybeInvalidColor):
1358         (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint):
1359         (WebCore::AnimationBase::ensurePropertyMap):
1360
1361             Adapt to RenderStyle color getters now returning "Color" instead of
1362             "const Color&".
1363
1364 2011-10-07  Philippe Normand  <pnormand@igalia.com>
1365
1366         [GStreamer] webkitwebsrc: avoid GST_BOILERPLATE_FULL
1367         https://bugs.webkit.org/show_bug.cgi?id=69630
1368
1369         Reviewed by Martin Robinson.
1370
1371         Use G_DEFINE_TYPE_WITH_CODE instead of GST_BOILERPLATE_FULL and
1372         replace use of gst_ghost_pad_new_no_target_from_template() and
1373         gst_ghost_pad_set_target() with a single call to
1374         gst_ghost_pad_new_from_template(). These changes keep the element
1375         compatible with GStreamer 0.10 while preparing the port to 0.11.
1376
1377         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1378         (webkit_web_src_class_init):
1379         (webkit_web_src_init):
1380
1381 2011-10-07  Martin Robinson  <mrobinson@igalia.com>
1382
1383         [Freetype] Pseudo-italics do not work
1384         https://bugs.webkit.org/show_bug.cgi?id=40856
1385
1386         Reviewed by Philippe Normand.
1387
1388         * platform/graphics/freetype/FontPlatformData.h: Add the font description as an argument initializeWithFontFace.
1389         * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
1390         (WebCore::FontPlatformData::FontPlatformData): Pass the font description to initializeWithFontFace.
1391         (WebCore::FontPlatformData::initializeWithFontFace): If we were asked for an italic font and we were
1392         given one that wasn't oblique or italic, activate the synthetic oblique bit.
1393
1394 2011-10-07  Philippe Normand  <pnormand@igalia.com>
1395
1396         [GStreamer] avoid direct access to GstMessage structure field
1397         https://bugs.webkit.org/show_bug.cgi?id=69629
1398
1399         Reviewed by Martin Robinson.
1400
1401         Use gst_message_get_structure() instead of direct access to the
1402         structure field. No direct benefit apart from compatibility with
1403         GStreamer 0.11.
1404
1405         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
1406         (WebCore::gstGWorldSyncMessageCallback):
1407         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1408         (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
1409         (WebCore::MediaPlayerPrivateGStreamer::mediaLocationChanged):
1410
1411 2011-10-07  Pavel Feldman  <pfeldman@google.com>
1412
1413         Web Inspector: add timeline panel to the compilation.
1414         https://bugs.webkit.org/show_bug.cgi?id=69628
1415
1416         Reviewed by Yury Semikhatsky.
1417
1418         * inspector/compile-front-end.sh:
1419         * inspector/front-end/SidebarTreeElement.js:
1420         (WebInspector.SidebarTreeElement):
1421         * inspector/front-end/SourceCSSTokenizer.js:
1422         (WebInspector.SourceCSSTokenizer.prototype.nextToken):
1423         * inspector/front-end/SourceCSSTokenizer.re2js:
1424         * inspector/front-end/SourceHTMLTokenizer.js:
1425         (WebInspector.SourceHTMLTokenizer.prototype.nextToken):
1426         * inspector/front-end/SourceHTMLTokenizer.re2js:
1427         * inspector/front-end/SourceJavaScriptTokenizer.js:
1428         (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
1429         * inspector/front-end/SourceJavaScriptTokenizer.re2js:
1430         * inspector/front-end/TimelineGrid.js:
1431         * inspector/front-end/TimelineOverviewPane.js:
1432         (WebInspector.TimelineOverviewPane.prototype._createTimelineCategoryStatusBarCheckbox):
1433         * inspector/front-end/TimelinePanel.js:
1434         (WebInspector.TimelinePanel.prototype._createEventDivider):
1435         (WebInspector.TimelinePanel.prototype._addRecordToTimeline):
1436         (WebInspector.TimelinePanel.prototype._findParentRecord):
1437         (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
1438         (WebInspector.TimelinePanel.prototype.updateMainViewWidth):
1439         (WebInspector.TimelinePanel.prototype.onResize):
1440         (WebInspector.TimelinePanel.prototype._windowChanged):
1441         (WebInspector.TimelinePanel.prototype._refreshRecords):
1442         (WebInspector.TimelineRecordGraphRow.prototype._onClick):
1443         (WebInspector.TimelinePanel.FormattedRecord):
1444         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
1445         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
1446
1447 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1448
1449         Unreviewed, rolling out r96892.
1450         http://trac.webkit.org/changeset/96892
1451         https://bugs.webkit.org/show_bug.cgi?id=69626
1452
1453         it broke windows canary bots (Requested by podivilov on
1454         #webkit).
1455
1456         * WebCore.gyp/scripts/rule_binding.py:
1457
1458 2011-10-07  Andreas Kling  <kling@webkit.org>
1459
1460         Shrink StyleInheritedData.
1461         https://bugs.webkit.org/show_bug.cgi?id=69625
1462
1463         Reviewed by Antti Koivisto.
1464
1465         Rearrange the members of StyleInheritedData to fold as much
1466         as possible into the padding at the end of RefCounted.
1467
1468         This shrinks StyleInheritedData by 8 bytes on 64-bit, reducing
1469         memory consumption by 500 kB when loading the full HTML5 spec.
1470
1471         * rendering/style/StyleInheritedData.cpp:
1472         (WebCore::StyleInheritedData::StyleInheritedData):
1473         * rendering/style/StyleInheritedData.h:
1474
1475 2011-10-07  Pavel Feldman  <pfeldman@google.com>
1476
1477         Web Inspector: make ScriptsPanel compile
1478         https://bugs.webkit.org/show_bug.cgi?id=69623
1479
1480         Reviewed by Yury Semikhatsky.
1481
1482         * inspector/compile-front-end.sh:
1483         * inspector/front-end/CallStackSidebarPane.js:
1484         (WebInspector.CallStackSidebarPane.prototype.update):
1485         (WebInspector.CallStackSidebarPane.prototype._placardSelected):
1486         * inspector/front-end/DebuggerModel.js:
1487         * inspector/front-end/JavaScriptSourceFrame.js:
1488         (WebInspector.JavaScriptSourceFrame):
1489         * inspector/front-end/KeyboardShortcut.js:
1490         * inspector/front-end/Object.js:
1491         * inspector/front-end/ObjectPropertiesSection.js:
1492         * inspector/front-end/ScopeChainSidebarPane.js:
1493         (WebInspector.ScopeChainSidebarPane.prototype.update):
1494         * inspector/front-end/ScriptsPanel.js:
1495         (WebInspector.ScriptsPanel.prototype._setScriptSourceIsBeingEdited):
1496         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
1497         (WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked):
1498         (WebInspector.SourceFrameDelegateForScriptsPanel):
1499         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.requestContent):
1500         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.debuggingSupported):
1501         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setBreakpoint):
1502         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.updateBreakpoint):
1503         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.removeBreakpoint):
1504         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.findBreakpoint):
1505         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.continueToLine):
1506         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.canEditScriptSource):
1507         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setScriptSource):
1508         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.setScriptSourceIsBeingEdited):
1509         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.debuggerPaused):
1510         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.evaluateInSelectedCallFrame):
1511         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.releaseEvaluationResult):
1512         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
1513         * inspector/front-end/StatusBarButton.js:
1514         * inspector/front-end/WatchExpressionsSidebarPane.js:
1515         (WebInspector.WatchExpressionsSection.prototype.update.appendResult):
1516         (WebInspector.WatchExpressionsSection.prototype.update):
1517         (WebInspector.WatchExpressionTreeElement.prototype.startEditing):
1518         * inspector/front-end/WorkerManager.js:
1519         (WebInspector.WorkerManager.prototype._openInspectorWindow):
1520         (WebInspector.WorkerManager.prototype._pageInspectorClosing):
1521         (WebInspector.DedicatedWorkerMessageForwarder.prototype._receiveMessage):
1522         * inspector/front-end/WorkersSidebarPane.js:
1523         (WebInspector.WorkersSidebarPane.prototype.removeWorker):
1524         * inspector/front-end/externs.js:
1525         (WebInspector.linkifyURL):
1526         (InjectedFakeWorker):
1527         * inspector/front-end/inspector.js:
1528
1529 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1530
1531         Unreviewed, rolling out r96879.
1532         http://trac.webkit.org/changeset/96879
1533         https://bugs.webkit.org/show_bug.cgi?id=69618
1534
1535         Broke CCLayerTreeHostTestShortlived1 on chromium mac.
1536         (Requested by podivilov on #webkit).
1537
1538         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1539
1540 2011-10-07  Pavel Feldman  <pfeldman@google.com>
1541
1542         Web Inspector: add ResourcesPanel to the compilation.
1543         https://bugs.webkit.org/show_bug.cgi?id=69612
1544
1545         Reviewed by Yury Semikhatsky.
1546
1547         * inspector/compile-front-end.sh:
1548         * inspector/front-end/ApplicationCacheItemsView.js:
1549         (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid):
1550         * inspector/front-end/NetworkPanel.js:
1551         * inspector/front-end/ResourceView.js:
1552         * inspector/front-end/ResourcesPanel.js:
1553         (WebInspector.ResourcesPanel.prototype.showAnchorLocation):
1554         (WebInspector.ResourcesPanel.prototype.showResource):
1555         (WebInspector.BaseStorageTreeElement.prototype.isEventWithinDisclosureTriangle):
1556         (WebInspector.FrameTreeElement.prototype.frameNavigated):
1557         (WebInspector.StorageCategoryView):
1558         (WebInspector.SearchResultsTreeElementsTraverser.prototype.last):
1559         * inspector/front-end/externs.js:
1560         (WebInspector.openRequestInNetworkPanel):
1561
1562 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1563
1564         Unreviewed, rolling out r96909.
1565         http://trac.webkit.org/changeset/96909
1566         https://bugs.webkit.org/show_bug.cgi?id=69616
1567
1568         Broke chromium mac compilation (Requested by podivilov on
1569         #webkit).
1570
1571         * platform/graphics/chromium/ContentLayerChromium.h:
1572
1573 2011-10-07  Vsevolod Vlasov  <vsevik@chromium.org>
1574
1575         Web Inspector: Element highlighting does not highlight padding/border/margin for inline elements.
1576         https://bugs.webkit.org/show_bug.cgi?id=69558
1577
1578         Reviewed by Pavel Feldman.
1579
1580         * inspector/DOMNodeHighlighter.cpp:
1581
1582 2011-10-07  Mario Sanchez Prada  <msanchez@igalia.com>
1583
1584         [GTK] Don't expose objects with unknown role on GTK
1585         https://bugs.webkit.org/show_bug.cgi?id=69561
1586
1587         Reviewed by Chris Fleizach.
1588
1589         Ignore accessibility objects in accessibilityPlatformIncludesObject.
1590
1591         Test: platform/gtk/accessibility/unknown-roles-not-exposed.html
1592
1593         * accessibility/gtk/AccessibilityObjectAtk.cpp:
1594         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
1595         For unknown accessibility objects, return IgnoreObject.
1596
1597 2011-10-07  Pavel Feldman  <pfeldman@chromium.org>
1598
1599         Web Inspector: add Elements and Network panels to the compilation
1600         https://bugs.webkit.org/show_bug.cgi?id=69604
1601
1602         Reviewed by Yury Semikhatsky.
1603
1604         * inspector/compile-front-end.sh:
1605         * inspector/front-end/BreakpointsSidebarPane.js:
1606         (WebInspector.XHRBreakpointsSidebarPane.prototype._addButtonClicked):
1607         (WebInspector.XHRBreakpointsSidebarPane.prototype._labelClicked):
1608         * inspector/front-end/DOMAgent.js:
1609         * inspector/front-end/DOMBreakpointsSidebarPane.js:
1610         * inspector/front-end/DataGrid.js:
1611         (WebInspector.DataGrid.prototype._startEditingConfig):
1612         * inspector/front-end/Drawer.js:
1613         * inspector/front-end/ElementsPanel.js:
1614         (WebInspector.ElementsPanel.prototype._hideSearchHighlights):
1615         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
1616         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes.collapseDimmed):
1617         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes):
1618         (WebInspector.ElementsPanel.prototype._registerShortcuts):
1619         * inspector/front-end/ElementsTreeOutline.js:
1620         (WebInspector.ElementsTreeElement.prototype._startEditingAttribute):
1621         (WebInspector.ElementsTreeElement.prototype._startEditingTextNode):
1622         (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
1623         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
1624         * inspector/front-end/GoToLineDialog.js:
1625         (WebInspector.GoToLineDialog._show):
1626         * inspector/front-end/MetricsSidebarPane.js:
1627         (WebInspector.MetricsSidebarPane.prototype.startEditing):
1628         * inspector/front-end/NetworkPanel.js:
1629         (WebInspector.NetworkLogView.prototype._onLoadEventFired):
1630         (WebInspector.NetworkLogView.prototype._domContentLoadedEventFired):
1631         (WebInspector.NetworkLogView.prototype._updateOffscreenRows):
1632         (WebInspector.NetworkLogView.prototype._removeAllNodeHighlights):
1633         (WebInspector.NetworkPanel.prototype._resourceByAnchor):
1634         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
1635         * inspector/front-end/ObjectPropertiesSection.js:
1636         (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
1637         * inspector/front-end/Panel.js:
1638         * inspector/front-end/Popover.js:
1639         * inspector/front-end/SourceFrame.js:
1640         (WebInspector.SourceFrame.prototype._editBreakpointCondition):
1641         * inspector/front-end/StylesSidebarPane.js:
1642         (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
1643         (WebInspector.StylePropertyTreeElement.prototype):
1644         * inspector/front-end/TimelineGrid.js:
1645         * inspector/front-end/UIUtils.js:
1646         (WebInspector.EditingConfig):
1647         (WebInspector.startEditing.editingCancelled):
1648         (WebInspector.startEditing.editingCommitted):
1649         (WebInspector.formatLocalized):
1650         (WebInspector.openLinkExternallyLabel):
1651         (WebInspector.openInNetworkPanelLabel):
1652         (WebInspector.copyLinkAddressLabel):
1653         * inspector/front-end/externs.js:
1654         (WebInspector.extensionServer.notifyObjectSelected):
1655         (WebInspector.openResource):
1656         * inspector/front-end/inspector.js:
1657         (WebInspector.resourceForURL):
1658
1659 2011-10-07  Anna Cavender  <annacc@chromium.org>
1660
1661         Change enum value names for TextTrack::readyState and TextTrack::mode
1662         https://bugs.webkit.org/show_bug.cgi?id=69603
1663
1664         Reviewed by David Levin.
1665
1666         No new tests. No new functionality.
1667
1668         * html/LoadableTextTrack.cpp:
1669         (WebCore::LoadableTextTrack::trackLoadStarted):
1670         (WebCore::LoadableTextTrack::trackLoadError):
1671         (WebCore::LoadableTextTrack::trackLoadCompleted):
1672         * html/TextTrack.cpp:
1673         (WebCore::TextTrack::TextTrack):
1674         (WebCore::TextTrack::setMode):
1675         * html/TextTrack.h:
1676
1677 2011-10-07  Anna Cavender  <annacc@chromium.org>
1678
1679         Adding parens in WebVTTParser.cpp to appease compiler preferences.
1680         https://bugs.webkit.org/show_bug.cgi?id=69602
1681
1682         Reviewed by David Levin.
1683
1684         No new tests. No new functionality.
1685
1686         * html/track/WebVTTParser.cpp:
1687         (WebCore::WebVTTParser::constructTreeFromToken):
1688
1689 2011-10-06  Antoine Labour  <piman@chromium.org>
1690
1691         Webkit API for compositor
1692         https://bugs.webkit.org/show_bug.cgi?id=69107
1693
1694         Reviewed by Darin Fisher.
1695
1696         Covered by existing compositing tests.
1697
1698         * platform/graphics/chromium/ContentLayerChromium.h: 
1699
1700 2011-10-06  Kent Tamura  <tkent@chromium.org>
1701
1702         Remove SelectElement class
1703         https://bugs.webkit.org/show_bug.cgi?id=69518
1704
1705         Reviewed by Ryosuke Niwa.
1706
1707         SelectElement used to be an abstract class for HTMLSelectElement
1708         and WMLSelectElement. SelectElement is not needed anymore because
1709         WML was removed.
1710
1711         This patch just removes SelectElement by moving SelectElement
1712         functions to HTMLSelectElement.
1713
1714         No new tests. Just a refactoring.
1715
1716         * WebCore.vcproj/WebCore.vcproj:
1717         Rename dom\SelectElementWin.cpp to html\HTMLSelectElementWin.cpp.
1718         * accessibility/AccessibilityListBoxOption.cpp:
1719         (WebCore::AccessibilityListBoxOption::setSelected):
1720         Remove unnecessary cast.
1721         * accessibility/AccessibilityRenderObject.cpp:
1722         (WebCore::AccessibilityRenderObject::stringValue):
1723         Use HTMLSelectElement instead of SelectElement.
1724         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1725         (optionFromSelection): ditto.
1726         (webkit_accessible_selection_get_selection_count): ditto.
1727         * accessibility/gtk/AXObjectCacheAtk.cpp:
1728         (notifyChildrenSelectionChange): ditto.
1729         * dom/OptionElement.cpp:
1730         (WebCore::OptionElement::optionIndex): ditto.
1731         * dom/OptionElement.h: ditto.
1732         * dom/SelectElement.cpp:
1733         (WebCore::SelectElementData::checkListItems): ditto.
1734         (WebCore::SelectElementData::listItems): ditto.
1735         * dom/SelectElementWin.cpp: Removed.
1736         * dom/SelectElement.h: Removed SelectElement class declaration.
1737         * html/HTMLSelectElement.cpp: Move functions from SelectElement.cpp.
1738         (WebCore::HTMLSelectElement::selectedIndex):
1739         Removed 'SelectElement::' because the function is moved to HTMLSelectElement.
1740         (WebCore::HTMLSelectElement::deselectItems): dito.
1741         (WebCore::HTMLSelectElement::setSelectedIndex): dito.
1742         (WebCore::HTMLSelectElement::setSelectedIndexByUser): ditto.
1743         (WebCore::HTMLSelectElement::activeSelectionEndListIndex): ditto.
1744         (WebCore::HTMLSelectElement::length): ditto.
1745         (WebCore::HTMLSelectElement::saveFormControlState): ditto.
1746         (WebCore::HTMLSelectElement::restoreFormControlState): ditto.
1747         (WebCore::HTMLSelectElement::parseMappedAttribute): ditto.
1748         (WebCore::HTMLSelectElement::selectAll): ditto.
1749         (WebCore::HTMLSelectElement::appendFormData): ditto.
1750         (WebCore::HTMLSelectElement::optionToListIndex): ditto.
1751         (WebCore::HTMLSelectElement::listToOptionIndex): ditto.
1752         (WebCore::HTMLSelectElement::recalcListItems): ditto.
1753         (WebCore::HTMLSelectElement::setRecalcListItems): ditto.
1754         (WebCore::HTMLSelectElement::reset): ditto.
1755         (WebCore::HTMLSelectElement::dispatchFocusEvent): ditto.
1756         (WebCore::HTMLSelectElement::dispatchBlurEvent): ditto.
1757         (WebCore::HTMLSelectElement::defaultEventHandler): ditto.
1758         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): ditto.
1759         (WebCore::HTMLSelectElement::setActiveSelectionEndIndex): ditto.
1760         (WebCore::HTMLSelectElement::updateListBoxSelection): ditto.
1761         (WebCore::HTMLSelectElement::menuListOnChange): ditto.
1762         (WebCore::HTMLSelectElement::listBoxOnChange): ditto.
1763         (WebCore::HTMLSelectElement::saveLastSelection): ditto.
1764         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): ditto.
1765         (WebCore::HTMLSelectElement::scrollToSelection): ditto.
1766         (WebCore::HTMLSelectElement::insertedIntoTree): ditto.
1767         (WebCore::nextValidIndex): Moved from SelectElement.cpp.
1768         (WebCore::nextSelectableListIndex): ditto.
1769         (WebCore::previousSelectableListIndex): ditto.
1770         (WebCore::firstSelectableListIndex): ditto.
1771         (WebCore::lastSelectableListIndex): ditto.
1772         (WebCore::nextSelectableListIndexPageAway): ditto.
1773         (WebCore::HTMLSelectElement::setOptionsChangedOnRenderer): ditto.
1774         (WebCore::HTMLSelectElement::parseMultipleAttribute): ditto.
1775         (WebCore::HTMLSelectElement::platformHandleKeydownEvent): ditto.
1776         (WebCore::HTMLSelectElement::menuListDefaultEventHandler): ditto.
1777         (WebCore::HTMLSelectElement::updateSelectedState): ditto.
1778         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): ditto.
1779         (WebCore::HTMLSelectElement::lastSelectedListIndex): ditto.
1780         (WebCore::stripLeadingWhiteSpace): ditto.
1781         (WebCore::HTMLSelectElement::typeAheadFind): ditto.
1782         (WebCore::HTMLSelectElement::optionCount): ditto.
1783         (WebCore::toSelectElement): ditto.
1784         * html/HTMLSelectElementWin.cpp: Copied from Source/WebCore/dom/SelectElementWin.cpp.
1785         (WebCore::HTMLSelectElement::platformHandleKeydownEvent):
1786         * html/HTMLSelectElement.h: Removed 'virtual' of SelectElement functions.
1787         (WebCore::HTMLSelectElement::size):
1788         (WebCore::HTMLSelectElement::multiple):
1789         (WebCore::HTMLSelectElement::listItems):
1790         (WebCore::HTMLSelectElement::updateValidity):
1791         * rendering/RenderListBox.cpp: Replace SelectElement with HTMLSelectElement
1792         (WebCore::RenderListBox::RenderListBox):
1793         (WebCore::RenderListBox::scrollToRevealSelection):
1794         (WebCore::RenderListBox::addFocusRingRects):
1795         (WebCore::RenderListBox::paintItemForeground):
1796         (WebCore::RenderListBox::paintItemBackground):
1797         (WebCore::RenderListBox::panScroll):
1798         (WebCore::RenderListBox::autoscroll):
1799         (WebCore::RenderListBox::valueChanged):
1800         * rendering/RenderMenuList.cpp: Replace SelectElement with HTMLSelectElement
1801         (WebCore::RenderMenuList::RenderMenuList):
1802         (WebCore::RenderMenuList::setTextFromOption):
1803         (WebCore::RenderMenuList::showPopup):
1804         (WebCore::RenderMenuList::valueChanged):
1805         (WebCore::RenderMenuList::listBoxSelectItem):
1806         (WebCore::RenderMenuList::multiple):
1807         (WebCore::RenderMenuList::didSetSelectedIndex):
1808         (WebCore::RenderMenuList::didUpdateActiveOption):
1809         (WebCore::RenderMenuList::itemText):
1810         (WebCore::RenderMenuList::itemAccessibilityText):
1811         (WebCore::RenderMenuList::itemToolTip):
1812         (WebCore::RenderMenuList::itemIsEnabled):
1813         (WebCore::RenderMenuList::itemStyle):
1814         (WebCore::RenderMenuList::itemBackgroundColor):
1815         (WebCore::RenderMenuList::listSize):
1816         (WebCore::RenderMenuList::selectedIndex):
1817         (WebCore::RenderMenuList::itemIsSeparator):
1818         (WebCore::RenderMenuList::itemIsLabel):
1819         (WebCore::RenderMenuList::itemIsSelected):
1820         (WebCore::RenderMenuList::setTextFromItem):
1821
1822 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1823
1824         Unreviewed, rolling out r96896.
1825         http://trac.webkit.org/changeset/96896
1826         https://bugs.webkit.org/show_bug.cgi?id=69601
1827
1828         broke windows and mac chromium builds (Requested by simonjam
1829         on #webkit).
1830
1831         * platform/graphics/chromium/ContentLayerChromium.h:
1832
1833 2011-10-06  Antoine Labour  <piman@chromium.org>
1834
1835         Webkit API for compositor
1836         https://bugs.webkit.org/show_bug.cgi?id=69107
1837
1838         Reviewed by Darin Fisher.
1839
1840         Covered by existing compositing tests.
1841
1842         * platform/graphics/chromium/ContentLayerChromium.h: 
1843
1844 2011-10-06  Joseph Pecoraro  <joepeck@webkit.org>
1845
1846         Reviewed by Kent Tamura.
1847
1848         Pass "accept" mime type information into FileChooser at all call sites
1849         https://bugs.webkit.org/show_bug.cgi?id=69592
1850
1851         No new tests. This only exposes some more information to
1852         WebKit ports, no functionality change in WebCore.
1853
1854         * html/FileInputType.cpp:
1855         (WebCore::FileInputType::receiveDropForDirectoryUpload):
1856
1857 2011-10-06  Kent Tamura  <tkent@chromium.org>
1858
1859         [JSC binding] Fix inconsistent behavior of DOMStringMap
1860         https://bugs.webkit.org/show_bug.cgi?id=53752
1861
1862         Reviewed by Darin Adler.
1863
1864         The dataset behavior was inconsistent. The get operation handled
1865         data-* attributes first, and the put and delete operations handled
1866         JavaScript properties first.
1867
1868         Like Firefox and Opera, the put and delete operations should
1869         handle data-* attribute first.
1870
1871         * bindings/js/JSDOMStringMapCustom.cpp:
1872         (WebCore::JSDOMStringMap::deleteProperty):
1873          Handles DOMStringMap first, then returns false if the DOMStringMap makes an error.
1874         (WebCore::JSDOMStringMap::putDelegate): ditto.
1875
1876 2011-10-06  Nico Weber  <thakis@chromium.org>
1877
1878         [chromium] Let rule_binding use os.execvp() instead of subprocess.call() to spawn fewer processes.
1879         https://bugs.webkit.org/show_bug.cgi?id=69589
1880
1881         Reviewed by Adam Barth.
1882
1883         When building with `make -j40`, all the binding rules are built en bloc. Since this script currently
1884         uses subprocess.call(), that actually spawns 80 processes at once. OS X has a max process limit of
1885         255 by default, so the build used to fail with
1886         "open2: fork failed: Resource temporarily unavailable at ../bindings/scripts/preprocessor.pm line 60"
1887         As a fix, use execvp() instead, which replaces the current process instead of spawning a new one.
1888
1889         * WebCore.gyp/scripts/rule_binding.py:
1890
1891 2011-10-06  Anders Carlsson  <andersca@apple.com>
1892
1893         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
1894         https://bugs.webkit.org/show_bug.cgi?id=69586
1895
1896         Reviewed by Darin Adler.
1897
1898         * Configurations/Base.xcconfig:
1899         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
1900         
1901         * WebCore.xcodeproj/project.pbxproj:
1902         When building with clang, we don't need to run the check-for-global-initializers and
1903         check-for-exit-time-destructors anymore.
1904         
1905         * platform/graphics/filters/FEGaussianBlur.cpp:
1906         (gaussianKernelFactor):
1907         (WebCore::FEGaussianBlur::calculateKernelSize):
1908         (WebCore::FEGaussianBlur::calculateStdDeviation):
1909         Change the gaussian kernel factor global to be an inline function instead.
1910
1911 2011-10-06  Anders Carlsson  <andersca@apple.com>
1912
1913         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
1914         https://bugs.webkit.org/show_bug.cgi?id=69584
1915
1916         Reviewed by Darin Adler.
1917
1918         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
1919
1920         * bindings/js/JSLazyEventListener.cpp:
1921         * dom/Node.cpp:
1922         * dom/Range.cpp:
1923         * history/CachedPage.cpp:
1924         * loader/SubresourceLoader.cpp:
1925         * loader/cache/CachedResource.cpp:
1926         * page/Frame.cpp:
1927         * page/Page.cpp:
1928         * rendering/BidiRun.cpp:
1929         * rendering/RenderObject.cpp:
1930         * svg/SVGElementInstance.cpp:
1931         * xml/XMLHttpRequest.cpp:
1932
1933 2011-10-06  James Robinson  <jamesr@chromium.org>
1934
1935         [chromium] Remove USE(THREADED_COMPOSITING) from the tree
1936         https://bugs.webkit.org/show_bug.cgi?id=69489
1937
1938         Reviewed by Darin Fisher.
1939
1940         This macro isn't needed any more since the logic it guarded is guarded by a runtime switch.
1941
1942         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1943
1944 2011-10-06  David Grogan  <dgrogan@chromium.org>
1945
1946         Return null for the value of IDB key cursors instead of ASSERTing
1947         https://bugs.webkit.org/show_bug.cgi?id=69131
1948         
1949         This is in support of the IndexedDB performance improvement here:
1950         http://codereview.chromium.org/7834006/
1951
1952         Reviewed by Tony Chang.
1953
1954         * storage/IDBCursorBackendImpl.cpp:
1955         (WebCore::IDBCursorBackendImpl::value):
1956
1957 2011-10-06  Alexey Proskuryakov  <ap@apple.com>
1958
1959         [Mac] Should be able to scroll embedded PDFs using mouse
1960         https://bugs.webkit.org/show_bug.cgi?id=69579
1961
1962         Reviewed by Darin Adler.
1963
1964         Hit testing doesn't find scrollbars installed by a plug-in, so mouse events don't work.
1965
1966         As we want to use WebKit scrollbars with PDF plug-in, a cleaner long-term solution would be
1967         to have a base class under PluginViewBase that can handle scrolling instead of doing that
1968         in PluginView and Plugin.
1969
1970         * plugins/PluginViewBase.h:
1971         (WebCore::PluginViewBase::horizontalScrollbar):
1972         (WebCore::PluginViewBase::verticalScrollbar):
1973         Added accessors for scrollbars installed by plug-in.
1974
1975         * rendering/nodeAtPoint.cpp: (WebCore::RenderEmbeddedObject::nodeAtPoint):
1976         Like RenderLayer, add scrollbars to hit result after normal  hit testing.
1977
1978         * rendering/RenderEmbeddedObject.h: Added a nodeAtPoint override.
1979
1980         * rendering/RenderWidget.h: Made nodeAtPoint() protected instead of private, so that
1981         RenderEmbeddedObject could call it.
1982
1983 2011-10-06  Dan Bernstein  <mitz@apple.com>
1984
1985         <rdar://problem/9717490> Flash of white when navigating daringfireball.net
1986         https://bugs.webkit.org/show_bug.cgi?id=69581
1987
1988         Reviewed by Darin Adler.
1989
1990         * platform/ScrollView.cpp:
1991         (WebCore::ScrollView::updateScrollbars): Moved the calls to Scrollbar::setEnabled() into the code
1992         section where invalidation is suppressed if necessary, so that they do not trigger premature invalidation.
1993
1994 2011-10-06  Dan Bernstein  <mitz@apple.com>
1995
1996         Added a comment explaining code added in r96834.
1997
1998         Suggested by Darin Adler.
1999
2000         * editing/FrameSelection.cpp:
2001         (WebCore::FrameSelection::updateAppearance):
2002
2003 2011-10-05  Ryosuke Niwa  <rniwa@webkit.org>
2004
2005         Deleting line break before h1 converts h1 to span
2006         https://bugs.webkit.org/show_bug.cgi?id=45784
2007
2008         Reviewed by Enrica Casucci.
2009
2010         This patch fundamentally alters the kind of styles we preserve while merging or moving paragraphs.
2011         StylizedMarkupAccumulator no longer wraps nodes by computed style when it's not annotating for interchange.
2012         Instead, it accumulates implicit and inline styles of ancestors of the serialized contents.
2013
2014         The most significant code change is in StyledMarkupAccumulator::serializeNodes where we setup m_wrappingStyle
2015         by merging implicit and inline style of ancestors with mergeInlineAndImplicitStyleOfElement. Because it walks up
2016         the DOM tree upwards, it should not be overriding any CSS properties. Consequently, mergeStyle,
2017         mergeInlineStyleOfElement, and mergeInlineAndImplicitStyleOfElement are modified to take CSSPropertyOverrideMode.
2018
2019         New behavior matches that of Internet Explorer and Firefox when merging paragraphs.
2020
2021         Tests: editing/deleting/merge-paragraph-from-address.html
2022                editing/deleting/merge-paragraph-from-h6-with-style-2.html
2023                editing/deleting/merge-paragraph-from-h6-with-style.html
2024                editing/deleting/merge-paragraph-from-h6.html
2025                editing/deleting/merge-paragraph-from-listing.html
2026                editing/deleting/merge-paragraph-from-p-with-style-2.html
2027                editing/deleting/merge-paragraph-from-p-with-style-3.html
2028                editing/deleting/merge-paragraph-from-p-with-style.html
2029                editing/deleting/merge-paragraph-into-h1-with-style.html
2030                editing/deleting/merge-paragraph-into-h1.html
2031                editing/deleting/merge-paragraph-into-pre.html
2032
2033         * css/CSSValueList.cpp:
2034         (WebCore::CSSValueList::hasValue): Made const.
2035         * css/CSSValueList.h:
2036         * editing/ApplyStyleCommand.cpp:
2037         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Calls mergeInlineStyleOfElement.
2038         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Ditto.
2039         * editing/EditingStyle.cpp:
2040         (WebCore::copyEditingProperties): Takes a boolean includeBackgroundColor.
2041         (WebCore::isEditingProperty): Extracted from elementIsStyledSpanOrHTMLEquivalent.
2042         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent): Calls isEditingProperty.
2043         (WebCore::EditingStyle::mergeTypingStyle): Calls mergeStyle.
2044         (WebCore::EditingStyle::mergeInlineStyleOfElement): Takes CSSPropertyOverrideMode.
2045         (WebCore::elementMatchesAndPropertyIsNotInInlineStyleDecl): Added.
2046         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement): Added.
2047         (WebCore::mergeTextDecorationValues): Extracted from mergeStyle.
2048         (WebCore::EditingStyle::mergeStyle): Takes CSSPropertyOverrideMode.
2049         * editing/EditingStyle.h:
2050         * editing/ReplaceSelectionCommand.cpp:
2051         (WebCore::nodeToSplitToAvoidPastingIntoInlineNodesWithStyle): Extracted from doApply.
2052         (WebCore::ReplaceSelectionCommand::doApply): Calls nodeToSplitToAvoidPastingIntoInlineNodesWithStyle.
2053         (WebCore::ReplaceSelectionCommand::performTrivialReplace): Exit early when we need to split the tree to avoid
2054         pasting into inline nodes with style. Also remove a collapsed or spurious br.
2055         * editing/markup.cpp:
2056         (WebCore::StyledMarkupAccumulator::serializeNodes):
2057
2058 2011-10-06  Abhishek Arya  <inferno@chromium.org>
2059
2060         Crash in VisiblePosition::canonicalPosition.
2061         https://bugs.webkit.org/show_bug.cgi?id=69568
2062
2063         Reviewed by Ryosuke Niwa.
2064
2065         Move the position's containerNode calculation after layout is
2066         complete(in updateLayoutIgnorePendingStylesheets).        
2067
2068         Test: editing/selection/selection-plugin-clear-crash.html
2069
2070         * editing/VisiblePosition.cpp:
2071         (WebCore::VisiblePosition::canonicalPosition):
2072
2073 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
2074
2075         Unreviewed, rolling out r96861.
2076         http://trac.webkit.org/changeset/96861
2077         https://bugs.webkit.org/show_bug.cgi?id=69573
2078
2079         This patch didn't compile on windows (Requested by annacc on
2080         #webkit).
2081
2082         * html/track/WebVTTParser.cpp:
2083         (WebCore::WebVTTParser::constructTreeFromToken):
2084
2085 2011-10-06  Anna Cavender  <annacc@chromium.org>
2086
2087         Adding parens in WebVTTParser.cpp to appease compiler preferences.
2088         https://bugs.webkit.org/show_bug.cgi?id=69460
2089
2090         Reviewed by David Levin.
2091
2092         No new tests. No new functionality.
2093
2094         * html/track/WebVTTParser.cpp:
2095         (WebCore::WebVTTParser::constructTreeFromToken):
2096
2097 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
2098
2099         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
2100         https://bugs.webkit.org/show_bug.cgi?id=69009
2101
2102         Reviewed by Simon Fraser.
2103
2104         Upcoming patches may make use of absoluteBoundingBoxRect on a const RenderObject, so this needed to be fixed.
2105         Making useTransforms default to true instead of false and replacing instances of absoluteBoundingBoxRect() to
2106         absoluteBoundingBoxRectIgnoringTransforms() partially addreses // FIXME: useTransforms should go away eventually.
2107
2108         * WebCore.exp.in:
2109         * dom/Element.cpp:
2110         (WebCore::Element::screenRect):
2111         * dom/Node.cpp:
2112         (WebCore::Node::getRect):
2113         (WebCore::Node::renderRect):
2114         * html/shadow/SliderThumbElement.cpp:
2115         (WebCore::SliderThumbElement::setPositionFromPoint):
2116         * html/shadow/TextControlInnerElements.cpp:
2117         (WebCore::InputFieldSpeechButtonElement::startSpeechInput):
2118         * inspector/DOMNodeHighlighter.cpp:
2119         * plugins/IFrameShimSupport.cpp:
2120         (WebCore::getPluginOcclusions):
2121         * rendering/RenderBlock.cpp:
2122         (WebCore::RenderBlock::absoluteRects):
2123         (WebCore::RenderBlock::absoluteQuads):
2124         * rendering/RenderBlock.h:
2125         * rendering/RenderBox.cpp:
2126         (WebCore::RenderBox::absoluteRects):
2127         (WebCore::RenderBox::absoluteQuads):
2128         * rendering/RenderBox.h:
2129         * rendering/RenderFileUploadControl.cpp:
2130         (WebCore::RenderFileUploadControl::paintObject):
2131         * rendering/RenderIFrame.cpp:
2132         (WebCore::RenderIFrame::flattenFrame):
2133         * rendering/RenderInline.cpp:
2134         (WebCore::RenderInline::absoluteRects):
2135         (WebCore::RenderInline::culledInlineAbsoluteRects):
2136         (WebCore::RenderInline::absoluteQuads):
2137         (WebCore::RenderInline::culledInlineAbsoluteQuads):
2138         * rendering/RenderInline.h:
2139         * rendering/RenderMenuList.cpp:
2140         (WebCore::RenderMenuList::showPopup):
2141         * rendering/RenderObject.cpp:
2142         (WebCore::RenderObject::absoluteBoundingBoxRect):
2143         (WebCore::RenderObject::addAbsoluteRectForLayer):
2144         (WebCore::RenderObject::paintingRootRect):
2145         * rendering/RenderObject.h:
2146         (WebCore::RenderObject::absoluteRects):
2147         (WebCore::RenderObject::absoluteBoundingBoxRectIgnoringTransforms):
2148         (WebCore::RenderObject::absoluteQuads):
2149         * rendering/RenderText.cpp:
2150         (WebCore::RenderText::absoluteRects):
2151         (WebCore::RenderText::absoluteQuads):
2152         * rendering/RenderText.h:
2153         * rendering/RenderTextControlSingleLine.cpp:
2154         (WebCore::RenderTextControlSingleLine::showPopup):
2155         * rendering/RenderThemeSafari.cpp:
2156         (WebCore::RenderThemeSafari::paintSearchFieldCancelButton):
2157         (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration):
2158         (WebCore::RenderThemeSafari::paintSearchFieldResultsButton):
2159         * rendering/RenderView.cpp:
2160         (WebCore::RenderView::absoluteRects):
2161         (WebCore::RenderView::absoluteQuads):
2162         * rendering/RenderView.h:
2163         * rendering/svg/RenderSVGBlock.cpp:
2164         (WebCore::RenderSVGBlock::absoluteRects):
2165         * rendering/svg/RenderSVGBlock.h:
2166         * rendering/svg/RenderSVGHiddenContainer.cpp:
2167         (WebCore::RenderSVGHiddenContainer::absoluteQuads):
2168         * rendering/svg/RenderSVGHiddenContainer.h:
2169         * rendering/svg/RenderSVGInline.cpp:
2170         (WebCore::RenderSVGInline::absoluteQuads):
2171         * rendering/svg/RenderSVGInline.h:
2172         * rendering/svg/RenderSVGModelObject.cpp:
2173         (WebCore::RenderSVGModelObject::absoluteRects):
2174         (WebCore::RenderSVGModelObject::absoluteQuads):
2175         * rendering/svg/RenderSVGModelObject.h:
2176         * rendering/svg/RenderSVGText.cpp:
2177         (WebCore::RenderSVGText::absoluteQuads):
2178         * rendering/svg/RenderSVGText.h:
2179         * testing/Internals.cpp:
2180         (WebCore::Internals::boundingBox):
2181
2182 2011-10-06  Simon Hausmann  <simon.hausmann@nokia.com>
2183
2184         [Qt][Wk2] Fix build with Qt 5 when QtScript is built as standalone module
2185         https://bugs.webkit.org/show_bug.cgi?id=69520
2186
2187         Reviewed by Csaba Osztrogonác.
2188
2189         * WebCore.pri: Use qt5 scope.
2190         * WebCore.pro: Use qt5 scope and pull in QtScript for the time being.
2191
2192 2011-10-06  Tony Chang  <tony@chromium.org>
2193
2194         last frame of a multipart response is not displayed
2195         https://bugs.webkit.org/show_bug.cgi?id=69449
2196
2197         Reviewed by Adam Barth.
2198
2199         Test: http/tests/multipart/load-last-non-html-frame.php
2200
2201         * loader/DocumentLoader.cpp:
2202         (WebCore::DocumentLoader::maybeFinishLoadingMultipartContent): for non-progressive load pages, commit the load so the
2203             last frame will be displayed.
2204         * loader/DocumentLoader.h:
2205         * loader/MainResourceLoader.cpp:
2206         (WebCore::MainResourceLoader::didFinishLoading):
2207
2208 2011-10-06  Gavin Peters  <gavinp@chromium.org>
2209
2210         conditionalize m_cachedScript stacks to just Chromium port
2211         https://bugs.webkit.org/show_bug.cgi?id=69537
2212
2213         New stack saving telemetry code in ScriptElement shouldn't have
2214         been put in all ports; just narrowing it to the chromium port will
2215         save other ports the memory hit of this diagnostic code.
2216
2217         Reviewed by Nate Chapin.
2218
2219         No new tests.
2220
2221         * dom/ScriptElement.cpp:
2222         (WebCore::ScriptElement::ScriptElement):
2223         (WebCore::ScriptElement::requestScript):
2224         (WebCore::ScriptElement::stopLoadRequest):
2225         (WebCore::ScriptElement::notifyFinished):
2226         * dom/ScriptElement.h:
2227
2228 2011-10-06  Arthur Hsu  <arthurhsu@chromium.org>
2229
2230         Ensure font loaded before calling Skia to drawPosText in Chrome sandbox
2231         https://bugs.webkit.org/show_bug.cgi?id=69370
2232
2233         Reviewed by James Robinson.
2234
2235         * platform/graphics/chromium/FontChromiumWin.cpp:
2236         (WebCore::Font::drawGlyphs):
2237
2238 2011-10-06  Chris Rogers  <crogers@google.com>
2239
2240         BiquadFilterNode must not reset filter state if type attribute is set to the same type
2241         https://bugs.webkit.org/show_bug.cgi?id=69485
2242
2243         Reviewed by Kenneth Russell.
2244
2245         No new tests.  This particular case is difficult to test with a layout test using OfflineAudioContext.
2246
2247         * webaudio/BiquadProcessor.cpp:
2248         (WebCore::BiquadProcessor::setType):
2249         * webaudio/BiquadProcessor.h:
2250
2251 2011-10-06  Raphael Kubo da Costa  <kubo@profusion.mobi>
2252
2253         [EFL] Do not create cairo surfaces with the wrong size for form elements
2254         https://bugs.webkit.org/show_bug.cgi?id=69533
2255
2256         Reviewed by Ryosuke Niwa.
2257
2258         RenderThemeEfl::cacheThemePartResizeAndReset resizes the Ecore_Evas
2259         associated with an entry, but did not reset the `size` attribute of the
2260         struct -- in practice, this meant the subsequent call to
2261         themePartCacheEntrySurfaceCreate would create a cairo surface with the
2262         previous size, thus rendering an element with the wrong size.
2263
2264         No new tests, this is triggered by running running pixel tests for
2265         running, in this order, fast/forms/button-sizes.html,
2266         fast/forms/input-appearance-preventDefault.html,
2267         fast/forms/input-appearance-spinbutton-disabled-readonly.html,
2268         fast/forms/input-appearance-width.html,
2269         fast/forms/input-button-sizes.html,
2270         fast/forms/input-placeholder-text-indent.html and
2271         fast/forms/input-text-click-inside.html (!).
2272
2273         * platform/efl/RenderThemeEfl.cpp:
2274         (WebCore::RenderThemeEfl::cacheThemePartResizeAndReset): Reset the
2275         size attribute when resizing the canvas.
2276
2277 2011-10-06  Chris Rogers  <crogers@google.com>
2278
2279         Make sure OfflineAudioContext can not be created with a sample-rate less than 44.1KHz
2280         https://bugs.webkit.org/show_bug.cgi?id=69483
2281
2282         Reviewed by Kenneth Russell.
2283
2284         No new tests.
2285
2286         * webaudio/AudioBuffer.cpp:
2287         (WebCore::AudioBuffer::create):
2288         * webaudio/AudioContext.cpp:
2289         (WebCore::AudioContext::createBuffer):
2290
2291 2011-10-06  David Hyatt  <hyatt@apple.com>
2292
2293         https://bugs.webkit.org/show_bug.cgi?id=69544
2294         
2295         [CSS3 Regions] Compute the starting and ending regions of a block, so that we can clamp
2296         descendants to those regions. This is preparation for having true overflow in the boxes
2297         in each region, and it's also a performance optimization to reduce the amount of
2298         region walking that the RenderFlowThread is doing.
2299
2300         Add a range map to RenderFlowThread to cache the start/end regions for each box.
2301         
2302         Amend everyone who calls renderRegionForLine to pass in the box that is making the query.
2303         This box is then used to clamp to start and end regions so that any regions outside of that
2304         range will never be examined.
2305
2306         Reviewed by Dan Bernstein.
2307
2308         Test: fast/regions/top-overflow-out-of-second-region.html
2309
2310         * rendering/RenderBlock.cpp:
2311         (WebCore::RenderBlock::layoutBlock):
2312         (WebCore::RenderBlock::hasNextPage):
2313         (WebCore::RenderBlock::pageLogicalHeightForOffset):
2314         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
2315         (WebCore::RenderBlock::regionAtBlockOffset):
2316         * rendering/RenderFlowThread.cpp:
2317         (WebCore::RenderFlowThread::~RenderFlowThread):
2318         (WebCore::RenderFlowThread::layout):
2319         (WebCore::RenderFlowThread::renderRegionForLine):
2320         (WebCore::RenderFlowThread::regionLogicalWidthForLine):
2321         (WebCore::RenderFlowThread::regionLogicalHeightForLine):
2322         (WebCore::RenderFlowThread::regionRemainingLogicalHeightForLine):
2323         (WebCore::RenderFlowThread::mapFromFlowToRegion):
2324         (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
2325         (WebCore::RenderFlowThread::logicalWidthChangedInRegions):
2326         (WebCore::RenderFlowThread::setRegionRangeForBox):
2327         (WebCore::RenderFlowThread::getRegionRangeForBox):
2328         * rendering/RenderFlowThread.h:
2329         * rendering/RenderRegion.cpp:
2330         (WebCore::RenderRegion::takeRenderBoxRegionInfo):
2331         (WebCore::RenderRegion::removeRenderBoxRegionInfo):
2332         * rendering/RenderRegion.h:
2333
2334 2011-10-05  Gavin Barraclough  <barraclough@apple.com>
2335
2336         Add explicit JSGlobalThis type.
2337         https://bugs.webkit.org/show_bug.cgi?id=69478
2338
2339         Reviewed by Darin Adler.
2340
2341         JSC supports a split global object, as used by WebCore for the Window. As a stage
2342         of making this visible to JSC, make it so that if the global this value is not the
2343         global object itself, it must be a subclass of JSGlobalThis.
2344
2345         * ForwardingHeaders/runtime/JSGlobalThis.h: Added.
2346             - Added forwarding header.
2347         * bindings/js/JSDOMGlobalObject.cpp:
2348         (WebCore::JSDOMGlobalObject::finishCreation):
2349         * bindings/js/JSDOMGlobalObject.h:
2350             - finishCreation takes a JSGlobalThis, or thisValue is implicit.
2351         * bindings/js/JSDOMWindowShell.h:
2352             - Make the window shell a subclass of JSGlobalThis.
2353         * bindings/js/JSWorkerContextBase.cpp:
2354         (WebCore::JSWorkerContextBase::finishCreation):
2355             - Don't pass the thisValue to JSGlobalObject::finishCreation.
2356         * bindings/js/JSWorkerContextBase.h:
2357         * bindings/scripts/CodeGeneratorJS.pm:
2358         (GenerateHeader):
2359             - Don't pass the thisValue to JSGlobalObject::finishCreation,
2360               for worker contexts.
2361
2362 2011-10-06  Anna Cavender  <annacc@chromium.org>
2363
2364         Fix CodeGeneratorV8 for EnabledAtRuntime when class has no parent class.
2365         https://bugs.webkit.org/show_bug.cgi?id=69480
2366
2367         Reviewed by Adam Barth.
2368
2369         No new tests. No new functionality, yet.
2370
2371         * bindings/scripts/CodeGeneratorV8.pm:
2372
2373 2011-10-06  Dan Bernstein  <mitz@apple.com>
2374
2375         <rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selected node is removed
2376
2377         Reviewed by Ryosuke Niwa.
2378
2379         Test: editing/selection/invalid-in-RenderView.html
2380
2381         * editing/FrameSelection.cpp:
2382         (WebCore::FrameSelection::updateAppearance): Ensure that the VisibleSelection used to set the selection
2383         in the RenderView is valid, by reconstructing it from the current selection.
2384
2385 2011-10-06  Andreas Kling  <kling@webkit.org>
2386
2387         InlineBox's virtualLogicalHeight() partially limited to builds with SVG.
2388         https://bugs.webkit.org/show_bug.cgi?id=69538
2389
2390         Reviewed by Dan Bernstein.
2391
2392         Remove erroneous ENABLE(SVG) guards around the initialization and use
2393         of InlineBox::hasVirtualLogicalHeight.
2394
2395         This variable is used by TrailingFloatsRootInlineBox and should always
2396         be respected regardless of SVG support.
2397
2398         * rendering/InlineBox.cpp:
2399         (WebCore::InlineBox::logicalHeight):
2400         * rendering/InlineBox.h:
2401         (WebCore::InlineBox::InlineBox):
2402
2403 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2404
2405         [GTK] Implement cache model for WebKit2
2406         https://bugs.webkit.org/show_bug.cgi?id=68434
2407
2408         Reviewed by Martin Robinson.
2409
2410         Add a function to FileSystem to get the free space of the file
2411         system where the given path is on.
2412
2413         * platform/FileSystem.h:
2414         * platform/gtk/FileSystemGtk.cpp:
2415         (WebCore::getVolumeFreeSizeForPath):
2416
2417 2011-10-06  Sergey Glazunov  <serg.glazunov@gmail.com>
2418
2419         Add check for JavaScript URLs in HTMLPlugInImageElement::allowedToLoadFrameURL
2420         https://bugs.webkit.org/show_bug.cgi?id=68813
2421
2422         Reviewed by Adam Barth.
2423
2424         Test: http/tests/security/xss-DENIED-object-element.html
2425
2426         * html/HTMLPlugInImageElement.cpp:
2427         (WebCore::HTMLPlugInImageElement::allowedToLoadFrameURL):
2428
2429 2011-10-06  Yury Semikhatsky  <yurys@chromium.org>
2430
2431         Web Inspector: avoid assertion failure in ~InspectorDebuggerAgent in case of workers
2432         https://bugs.webkit.org/show_bug.cgi?id=69534
2433
2434         Make sure frontend is disconnected before WorkerInspectorController is destroyed.
2435
2436         Reviewed by Pavel Feldman.
2437
2438         * inspector/WorkerInspectorController.cpp:
2439         (WebCore::WorkerInspectorController::~WorkerInspectorController):
2440
2441 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
2442
2443         https://bugs.webkit.org/show_bug.cgi?id=69492
2444         [Mac] Should be able to scroll embedded PDFs from keyboard
2445
2446         Reviewed by Darin Adler.
2447
2448         * WebCore.exp.in: Export ScrollableArea::scroll.
2449
2450         * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::defaultEventHandler): Call base
2451         class default event handler, so that events on focused plug-in elements would fall through
2452         to EventHandler::defaultKeyboardEventHandler.
2453
2454         * plugins/PluginViewBase.h: (WebCore::PluginViewBase::scroll): Added a method that's called
2455         on a plug-in when WebCore asks it to scroll. Plug-in cannot really know what key events
2456         result in scroll actions.
2457
2458         * rendering/RenderEmbeddedObject.cpp:
2459         (WebCore::RenderEmbeddedObject::scroll):
2460         (WebCore::RenderEmbeddedObject::logicalScroll):
2461         * rendering/RenderEmbeddedObject.h:
2462         Ask plug-in to scroll when EventHandler::scrollOverflow() is called.
2463
2464 2011-10-06  Konstantin Scheglov  <scheglov@google.com>
2465
2466         REGRESSION (r95852?): Disappearing Border on bugs.webkit.org attachments <table>
2467         https://bugs.webkit.org/show_bug.cgi?id=69296
2468
2469         Reviewed by David Hyatt.
2470
2471         Test: fast/table/border-collapsing/cached-69296.html
2472
2473         Remember BorderValue in CollapsedBorderValue by value.
2474         See https://bugs.webkit.org/show_bug.cgi?id=69296#c7 for motivation.
2475
2476         * rendering/style/CollapsedBorderValue.h:
2477         (WebCore::CollapsedBorderValue::CollapsedBorderValue):
2478         (WebCore::CollapsedBorderValue::width):
2479         (WebCore::CollapsedBorderValue::style):
2480         (WebCore::CollapsedBorderValue::exists):
2481         (WebCore::CollapsedBorderValue::isTransparent):
2482         (WebCore::CollapsedBorderValue::operator==):
2483         * rendering/RenderTableCell.cpp:
2484         (WebCore::RenderTableCell::collapsedStartBorder):
2485         (WebCore::RenderTableCell::collapsedEndBorder):
2486         (WebCore::RenderTableCell::collapsedBeforeBorder):
2487         (WebCore::RenderTableCell::collapsedAfterBorder):
2488
2489 2011-10-06  Gavin Peters  <gavinp@chromium.org>
2490
2491         save resource zeroing stacks in ScriptElement for debugging
2492         https://bugs.webkit.org/show_bug.cgi?id=69453
2493
2494         The state machine tracking how m_cachedScript gets zeroed shows that sometimes we get
2495         two notifyFinished() events in a ScriptElement, which can crash chrome (see chrome bug
2496         75604).  This patch will save a stack in the ScriptElement when this happens, so that if
2497         we do later crash, we can see how we did the first zeroing.
2498
2499         See http://code.google.com/p/chromium/issues/detail?id=75604 for the chromium bug that
2500         this change will help track down.
2501
2502         Reviewed by Nate Chapin.
2503
2504         No new tests, this shouldn't affect output at all, and isn't particularly testable.
2505
2506         * dom/ScriptElement.cpp:
2507         (WebCore::ScriptElement::ScriptElement):
2508         (WebCore::ScriptElement::stopLoadRequest):
2509         (WebCore::ScriptElement::notifyFinished):
2510         * dom/ScriptElement.h:
2511
2512 2011-10-06  Rémi Duraffort  <remi.duraffort@st.com>
2513
2514         Fix compilation by adding some missing ENABLE(VIDEO|XSLT)
2515         https://bugs.webkit.org/show_bug.cgi?id=69522
2516
2517         Unreviewed build fix
2518
2519         * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
2520         * bindings/v8/custom/V8HTMLAudioElementConstructor.h:
2521         * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
2522
2523 2011-10-06  Pavel Feldman  <pfeldman@google.com>
2524
2525         Web Inspector: add Styles and Metrics sidebars to the compilation.
2526         https://bugs.webkit.org/show_bug.cgi?id=69529
2527
2528         Reviewed by Yury Semikhatsky.
2529
2530         * inspector/compile-front-end.sh:
2531         * inspector/front-end/CSSCompletions.js:
2532         (WebInspector.CSSCompletions.requestCSSNameCompletions):
2533         * inspector/front-end/CSSKeywordCompletions.js:
2534         (WebInspector.CSSKeywordCompletions.forProperty):
2535         (WebInspector.CSSKeywordCompletions.isColorAwareProperty):
2536         * inspector/front-end/Checkbox.js:
2537         * inspector/front-end/ElementsPanel.js:
2538         * inspector/front-end/MetricsSidebarPane.js:
2539         (WebInspector.MetricsSidebarPane.prototype._updateMetrics):
2540         (WebInspector.MetricsSidebarPane.prototype.startEditing):
2541         (WebInspector.MetricsSidebarPane.prototype._handleKeyDown):
2542         * inspector/front-end/SourceCSSTokenizer.js:
2543         (WebInspector.SourceCSSTokenizer):
2544         * inspector/front-end/SourceCSSTokenizer.re2js:
2545         * inspector/front-end/StylesSidebarPane.js:
2546         (WebInspector.StylesSidebarPane.prototype.update):
2547         (WebInspector.StylesSidebarPane.prototype._rebuildUpdate):
2548         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
2549         (WebInspector.StylePropertiesSection.prototype.onpopulate):
2550         (WebInspector.StylePropertiesSection.prototype.startEditingSelector):
2551         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
2552         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
2553         (WebInspector.ComputedStylePropertiesSection.prototype.onpopulate):
2554         (WebInspector.BlankStylePropertiesSection.prototype.makeNormal):
2555         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
2556         (WebInspector.StylePropertyTreeElement.prototype):
2557         * inspector/front-end/externs.js:
2558         (WebInspector.linkifyResourceAsNode):
2559         (Element.prototype.scrollIntoViewIfNeeded):
2560         (Element.prototype.selectionLeftOffset):
2561         * inspector/front-end/inspector.js:
2562         * inspector/front-end/utilities.js:
2563
2564 2011-10-06  Pavel Feldman  <pfeldman@google.com>
2565
2566         Web Inspector: extract DOMPresentation, make EventListenersSidebar compile
2567         https://bugs.webkit.org/show_bug.cgi?id=69527
2568
2569         Reviewed by Yury Semikhatsky.
2570
2571         * WebCore.gypi:
2572         * WebCore.vcproj/WebCore.vcproj:
2573         * inspector/compile-front-end.sh:
2574         * inspector/front-end/DOMAgent.js:
2575         (WebInspector.DOMNode.prototype.nodeNameInCorrectCase):
2576         (WebInspector.DOMNode.prototype.moveTo):
2577         (WebInspector.DOMNode.prototype.isXMLNode):
2578         * inspector/front-end/DOMBreakpointsSidebarPane.js:
2579         (WebInspector.DOMBreakpointsSidebarPane.prototype._setBreakpoint):
2580         * inspector/front-end/DOMPresentation.js: Added.
2581         (WebInspector.DOMPresentation.decorateNodeLabel):
2582         (WebInspector.DOMPresentation.linkifyNodeReference):
2583         (WebInspector.DOMPresentation.linkifyNodeById):
2584         * inspector/front-end/ElementsPanel.js:
2585         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
2586         * inspector/front-end/ElementsTreeOutline.js:
2587         (WebInspector.ElementsTreeOutline.prototype.set rootDOMNode):
2588         * inspector/front-end/EventListenersSidebarPane.js:
2589         * inspector/front-end/ObjectPropertiesSection.js:
2590         * inspector/front-end/PropertiesSection.js:
2591         * inspector/front-end/Section.js:
2592         * inspector/front-end/StylesSidebarPane.js:
2593         (WebInspector.StylesSidebarPane.prototype._rebuildStyleRules):
2594         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
2595         * inspector/front-end/WebKit.qrc:
2596         * inspector/front-end/inspector.html:
2597
2598 2011-10-06  Pavel Feldman  <pfeldman@google.com>
2599
2600         Web Inspector: add all Resource panel views to the compilation.
2601         https://bugs.webkit.org/show_bug.cgi?id=69526
2602
2603         Reviewed by Yury Semikhatsky.
2604
2605         * inspector/compile-front-end.sh:
2606         * inspector/front-end/CookieItemsView.js:
2607         (WebInspector.CookieItemsView.prototype._contextMenu):
2608         (WebInspector.Cookies.cookieMatchesResourceURL):
2609         * inspector/front-end/CookiesTable.js:
2610         (WebInspector.CookiesTable):
2611         (WebInspector.CookiesTable.prototype._onDeleteFromGrid):
2612         * inspector/front-end/DOMStorageItemsView.js:
2613         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
2614         * inspector/front-end/DataGrid.js:
2615         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid.comparator):
2616         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid):
2617         (WebInspector.DataGrid.createSortableDataGrid):
2618         * inspector/front-end/DatabaseQueryView.js:
2619         (WebInspector.DatabaseQueryView.prototype._queryFinished):
2620         * inspector/front-end/DatabaseTableView.js:
2621         (WebInspector.DatabaseTableView.prototype._queryFinished):
2622         * inspector/front-end/ResourcesPanel.js:
2623         (WebInspector.ResourcesPanel.prototype.reset):
2624         (WebInspector.ResourcesPanel.prototype.showDatabase):
2625         * inspector/front-end/TextPrompt.js:
2626
2627 2011-10-06  Pavel Feldman  <pfeldman@google.com>
2628
2629         Web Inspector: add all Resource panel views to the compilation.
2630         https://bugs.webkit.org/show_bug.cgi?id=69526
2631
2632         Reviewed by Yury Semikhatsky.
2633
2634         * inspector/compile-front-end.sh:
2635         * inspector/front-end/CookieItemsView.js:
2636         (WebInspector.CookieItemsView.prototype._contextMenu):
2637         (WebInspector.Cookies.cookieMatchesResourceURL):
2638         * inspector/front-end/CookiesTable.js:
2639         (WebInspector.CookiesTable):
2640         (WebInspector.CookiesTable.prototype._onDeleteFromGrid):
2641         * inspector/front-end/DOMStorageItemsView.js:
2642         (WebInspector.DOMStorageItemsView.prototype._dataGridForDOMStorageEntries):
2643         * inspector/front-end/DataGrid.js:
2644         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid.comparator):
2645         (WebInspector.DataGrid.createSortableDataGrid.sortDataGrid):
2646         (WebInspector.DataGrid.createSortableDataGrid):
2647         * inspector/front-end/DatabaseQueryView.js:
2648         (WebInspector.DatabaseQueryView.prototype._queryFinished):
2649         * inspector/front-end/DatabaseTableView.js:
2650         (WebInspector.DatabaseTableView.prototype._queryFinished):
2651         * inspector/front-end/ResourcesPanel.js:
2652         (WebInspector.ResourcesPanel.prototype.reset):
2653         (WebInspector.ResourcesPanel.prototype.showDatabase):
2654         * inspector/front-end/TextPrompt.js:
2655
2656 2011-10-06  Sheriff Bot  <webkit.review.bot@gmail.com>
2657
2658         Unreviewed, rolling out r96791.
2659         http://trac.webkit.org/changeset/96791
2660         https://bugs.webkit.org/show_bug.cgi?id=69528
2661
2662         webkit_unit_tests broken on Mac and Win (Requested by
2663         hwennborg on #webkit).
2664
2665         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2666
2667 2011-10-05  Mikhail Naganov  <mnaganov@chromium.org>
2668
2669         Web Inspector: [Chromium] Heap Snapshot colors legend help popup is not shown.
2670         https://bugs.webkit.org/show_bug.cgi?id=69482
2671
2672         Reviewed by Yury Semikhatsky.
2673
2674         * inspector/front-end/DetailedHeapshotView.js:
2675         (WebInspector.DetailedHeapshotView.prototype._helpClicked):
2676
2677 2011-10-05  Pavel Feldman  <pfeldman@google.com>
2678
2679         Web Inspector: add 10 more front-end classes to the compilation process.
2680         https://bugs.webkit.org/show_bug.cgi?id=69445
2681
2682         Reviewed by Yury Semikhatsky.
2683
2684         * inspector/compile-front-end.sh:
2685         * inspector/front-end/HAREntry.js:
2686         * inspector/front-end/HandlerRegistry.js:
2687         * inspector/front-end/IFrameView.js:
2688         * inspector/front-end/JavaScriptSourceFrame.js:
2689         * inspector/front-end/PanelEnablerView.js:
2690         (WebInspector.PanelEnablerView):
2691         * inspector/front-end/PartialQuickSort.js:
2692         * inspector/front-end/PropertiesSidebarPane.js:
2693         (WebInspector.PropertiesSidebarPane.prototype.update.fillSection):
2694         (WebInspector.PropertiesSidebarPane.prototype.update):
2695         * inspector/front-end/ShowMoreDataGridNode.js:
2696         * inspector/front-end/SidebarTreeElement.js:
2697         * inspector/front-end/TimelineAgent.js:
2698         * inspector/front-end/WelcomeView.js:
2699         * inspector/front-end/externs.js:
2700         (WebInspector.addMainEventListeners):
2701
2702 2011-10-05  Pavel Feldman  <pfeldman@google.com>
2703
2704         Web Inspector: make ElementsTreeOutline compile
2705         https://bugs.webkit.org/show_bug.cgi?id=69439
2706
2707         Reviewed by Yury Semikhatsky.
2708
2709         * inspector/compile-front-end.sh:
2710         * inspector/front-end/DOMAgent.js:
2711         * inspector/front-end/DOMSyntaxHighlighter.js:
2712         * inspector/front-end/ElementsPanel.js:
2713         (WebInspector.ElementsPanel.get this):
2714         (WebInspector.ElementsPanel):
2715         (WebInspector.ElementsPanel.prototype._populateContextMenu):
2716         (WebInspector.ElementsPanel.prototype._inspectElementRequested):
2717         * inspector/front-end/ElementsTreeOutline.js:
2718         (WebInspector.ElementsTreeOutline):
2719         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired.focusElement):
2720         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired):
2721         (WebInspector.ElementsTreeOutline.prototype._updateModifiedNodes):
2722         (WebInspector.ElementsTreeOutline.prototype._populateContextMenu):
2723         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
2724         (WebInspector.ElementsTreeElement.prototype._startEditingAttribute):
2725         (WebInspector.ElementsTreeElement.prototype._startEditingTextNode):
2726         (WebInspector.ElementsTreeElement.prototype._startEditingTagName):
2727         (WebInspector.ElementsTreeElement.prototype._startEditingAsHTML):
2728         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback):
2729         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted):
2730         ():
2731         * inspector/front-end/externs.js:
2732         (WebInspector.highlightDOMNode):
2733         (WebInspector.resourceURLForRelatedNode):
2734
2735 2011-10-06  Pavel Feldman  <pfeldman@google.com>
2736
2737         Web Inspector: Inspector fails to start if there was at least one watch expression.
2738         https://bugs.webkit.org/show_bug.cgi?id=69516
2739
2740         Reviewed by Yury Semikhatsky.
2741
2742         * inspector/front-end/ConsoleView.js:
2743         * inspector/front-end/WatchExpressionsSidebarPane.js:
2744         (WebInspector.WatchExpressionsSidebarPane):
2745
2746 2011-10-06  Dominic Cooney   <dominicc@chromium.org>
2747
2748         Don't make virtual calls in Node::parentNode.
2749         https://bugs.webkit.org/show_bug.cgi?id=69266
2750
2751         Reviewed by Antti Koivisto.
2752
2753         ShadowRoot and SVGShadowRoot remain semantically separate (eg
2754         isShadowRoot/isSVGShadowRoot) but share a flag
2755         (IsShadowRootOrSVGShadowRootFlag, hitherto IsShadowRootFlag just
2756         for ShadowRoot). In combination with IsSVGFlag ShadowRoot (false)
2757         can be distinguished from SVGShadowRoot (true). This lets us make
2758         isSVGShadowRoot non-virtual.
2759
2760         No change in behavior => No new tests.
2761
2762         * dom/Node.cpp:
2763         (WebCore::Node::shadowHost):
2764         * dom/Node.h:
2765         (WebCore::Node::isSVGShadowRoot):
2766         (WebCore::Node::isShadowRoot):
2767         (WebCore::Node::parentNode):
2768         (WebCore::Node::parentNodeGuaranteedHostFree):
2769         * rendering/svg/SVGShadowTreeElements.cpp:
2770         (WebCore::SVGShadowTreeContainerElement::SVGShadowTreeContainerElement):
2771         (WebCore::SVGShadowTreeRootElement::SVGShadowTreeRootElement):
2772         * rendering/svg/SVGShadowTreeElements.h:
2773         * svg/SVGElement.cpp:
2774         (WebCore::SVGElement::SVGElement):
2775         * svg/SVGElement.h:
2776         * svg/SVGGElement.cpp:
2777         (WebCore::SVGGElement::SVGGElement):
2778         * svg/SVGGElement.h:
2779         * svg/SVGStyledElement.cpp:
2780         (WebCore::SVGStyledElement::SVGStyledElement):
2781         * svg/SVGStyledElement.h:
2782         * svg/SVGStyledLocatableElement.cpp:
2783         (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
2784         * svg/SVGStyledLocatableElement.h:
2785         * svg/SVGStyledTransformableElement.cpp:
2786         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
2787         * svg/SVGStyledTransformableElement.h:
2788
2789 2011-10-06  John Knottenbelt  <jknotten@chromium.org>
2790
2791         Take pageScaleFactor into account for MouseRelatedEvents.
2792         https://bugs.webkit.org/show_bug.cgi?id=67592
2793
2794         Reviewed by Tony Gentilcore.
2795
2796         Tests: fast/events/page-scaled-mouse-click-iframe.html
2797                fast/events/page-scaled-mouse-click.html
2798
2799         * dom/MouseRelatedEvent.cpp:
2800         (WebCore::contentsScrollOffset):
2801         (WebCore::MouseRelatedEvent::MouseRelatedEvent):
2802         (WebCore::frameScaleFactor):
2803         (WebCore::MouseRelatedEvent::computePageLocation):
2804         (WebCore::MouseRelatedEvent::computeRelativePosition):
2805
2806 2011-10-03  Hans Wennborg  <hans@chromium.org>
2807
2808         IndexedDB: Remove SQLite-LevelDB migration code
2809         https://bugs.webkit.org/show_bug.cgi?id=69264
2810
2811         Reviewed by Tony Chang.
2812
2813         Remove migration functionality.
2814
2815         Just removing code, so no new tests.
2816
2817         * storage/IDBFactoryBackendImpl.cpp:
2818         (WebCore::IDBFactoryBackendImpl::open):
2819         * storage/IDBFactoryBackendImpl.h:
2820
2821 2011-10-06  James Robinson  <jamesr@chromium.org>
2822
2823         [chromium] Remove USE(THREADED_COMPOSITING) from the tree
2824         https://bugs.webkit.org/show_bug.cgi?id=69489
2825
2826         Reviewed by Darin Fisher.
2827
2828         This macro isn't needed any more since the logic it guarded is guarded by a runtime switch.
2829
2830         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2831
2832 2011-10-05  Kentaro Hara  <haraken@chromium.org>
2833
2834         Refactor IDL attributes about constructor
2835         https://bugs.webkit.org/show_bug.cgi?id=69074
2836
2837         Reviewed by Adam Barth.
2838
2839         Currently, IDL attributes about constructor are confusing:
2840
2841         - [CustomConstructFunction] means that there is a custom constructor for JSC.
2842         - [V8CustomConstructor] means that there is a custom constructor for V8.
2843         - [CustomConstructor] exists in CodeGenerator*.pm but is not used in any IDL files.
2844         - For almost all IDL files, [CustomConstructFunction] and [V8CustomConstructor] are used at the same time.
2845         - ObjC, CPP and GObject bindings do not support custom constructors.
2846
2847         This patch makes the following changes:
2848
2849         - Rename [CustomConstructFunction] to [JSCustomConstructor].
2850         - [JSCustomConstructor] means that there is a custom constructor for JSC.
2851         - [V8CustomConstructor] means that there is a custom constructor for V8.
2852         - [CustomConstructor] means that there is a custom constructor for both JSC and V8.
2853
2854         No new tests. No change in behavior. Confirm that build succeeds.
2855
2856         * bindings/scripts/CodeGeneratorJS.pm: Removed [CustomConstructFunction] and added [JSCustomConstructor]
2857         (GenerateHeader):
2858         (GenerateAttributesHashTable):
2859         (GenerateImplementation):
2860         (GenerateConstructorDefinition):
2861         * css/WebKitCSSMatrix.idl: Renamed [CustomConstructFunction] to [JSCustomConstructor]. If both [JSCustomConstructor] and [V8CustomConstructor] are specified, then we replaced them with [CustomConstructor].
2862         * dom/CustomEvent.idl: Ditto.
2863         * dom/ErrorEvent.idl: Ditto.
2864         * dom/Event.idl: Ditto.
2865         * dom/HashChangeEvent.idl: Ditto.
2866         * dom/MessageChannel.idl: Ditto.
2867         * dom/MessageEvent.idl: Ditto.
2868         * dom/PageTransitionEvent.idl: Ditto.
2869         * dom/PopStateEvent.idl: Ditto.
2870         * dom/ProgressEvent.idl: Ditto.
2871         * dom/WebKitAnimationEvent.idl: Ditto.
2872         * html/DOMFormData.idl: Ditto.
2873         * html/canvas/ArrayBuffer.idl: Ditto.
2874         * html/canvas/DataView.idl: Ditto.
2875         * html/canvas/Float32Array.idl: Ditto.
2876         * html/canvas/Float64Array.idl: Ditto.
2877         * html/canvas/Int16Array.idl: Ditto.
2878         * html/canvas/Int32Array.idl: Ditto.
2879         * html/canvas/Int8Array.idl: Ditto.
2880         * html/canvas/Uint16Array.idl: Ditto.
2881         * html/canvas/Uint32Array.idl: Ditto.
2882         * html/canvas/Uint8Array.idl: Ditto.
2883         * p2p/PeerConnection.idl: Ditto.
2884         * page/EventSource.idl: Ditto.
2885         * page/WebKitPoint.idl: Ditto.
2886         * webaudio/AudioContext.idl: Ditto.
2887         * websockets/CloseEvent.idl: Ditto.
2888         * websockets/WebSocket.idl: Ditto.
2889         * workers/SharedWorker.idl: Ditto.
2890         * workers/Worker.idl: Ditto.
2891         * xml/XMLHttpRequest.idl: Ditto.
2892         * xml/XSLTProcessor.idl: Ditto.
2893
2894 2011-10-03  Andy Estes  <aestes@apple.com>
2895
2896         Add the option to suppress rendering until the document's load event fires.
2897         https://bugs.webkit.org/show_bug.cgi?id=69298
2898
2899         Reviewed by Simon Fraser.
2900
2901         Add a WebCore setting that suppresses painting and compositing layer
2902         updates until the document's load event fires. This masks the effects
2903         of incremental rendering (for clients that opt in) by ensuring that all
2904         sub-resources have loaded and a full layout has taken place before
2905         painting the document for the first time.
2906
2907         No tests currently possible. Testing this would require the ability for
2908         DRT to dump state while resources are loading, which it doesn't
2909         currently do.
2910
2911         * dom/Document.cpp:
2912         (WebCore::Document::implicitClose): If rendering was previously
2913         suppressed, force a repaint and compositing layer update.
2914         (WebCore::Document::visualUpdatesAllowed): Add a helper method to
2915         determine if the document is in a state where rendering is allowed.
2916         * dom/Document.h:
2917         * page/Settings.cpp:
2918         (WebCore::Settings::Settings):
2919         * page/Settings.h:
2920         (WebCore::Settings::setSuppressIncrementalRendering):
2921         (WebCore::Settings::suppressIncrementalRendering):
2922         * rendering/RenderLayer.cpp:
2923         (WebCore::shouldSuppressPaintingLayer): Encapsulate the FOUC and
2924         painting suppression checks into a single helper function for
2925         readability's sake.
2926         (WebCore::RenderLayer::paintLayer):
2927         * rendering/RenderLayerCompositor.cpp:
2928         (WebCore::RenderLayerCompositor::updateCompositingLayers): If we should
2929         suppress compositing layer updates and the load event has yet to fire,
2930         return early.
2931
2932 2011-10-05  Yuta Kitamura  <yutak@chromium.org>
2933
2934         WebSocket: Add extensions attribute
2935         https://bugs.webkit.org/show_bug.cgi?id=69408
2936
2937         Reviewed by Kent Tamura.
2938
2939         Add WebSocket's "extensions" attribute as specified in the WebSocket API
2940         <http://dev.w3.org/html5/websockets/#the-websocket-interface>.
2941
2942         WebSocket protocol extension is not implemented at all, thus this attribute
2943         always returns an empty string.
2944
2945         Test: http/tests/websocket/tests/hybi/extensions.html
2946               http/tests/websocket/tests/hixie76/undefined-attributes.html (updated)
2947
2948         * websockets/WebSocket.cpp:
2949         (WebCore::WebSocket::extensions):
2950         If the hixie-76 protocol is chosen, we need to return "undefined" in order to
2951         keep behavior of the ports which have not used the newer hybi protocol yet.
2952         * websockets/WebSocket.h:
2953         * websockets/WebSocket.idl:
2954
2955 2011-10-05  Dominic Cooney  <dominicc@chromium.org>
2956
2957         IsShadowRootFlag should not depend on whether a ShadowRoot is attached to a host.
2958         https://bugs.webkit.org/show_bug.cgi?id=69406
2959
2960         Reviewed by Hajime Morita.
2961
2962         No change in behavior => No new tests.
2963
2964         * dom/Node.cpp:
2965         (WebCore::Node::setShadowHost): Don't twiddle the flag.
2966         * dom/Node.h:
2967         * dom/ShadowRoot.cpp:
2968         (WebCore::ShadowRoot::ShadowRoot): Set the IsShadowRootFlag on creation.
2969         * dom/TreeScope.cpp:
2970         (WebCore::TreeScope::TreeScope): Let ShadowRoot set creation flags.
2971         * dom/TreeScope.h:
2972
2973 2011-10-05  Chris Rogers  <crogers@google.com>
2974
2975         Define a log2f() function for Windows in wtf/MathExtras.h
2976         https://bugs.webkit.org/show_bug.cgi?id=69491
2977
2978         Reviewed by Darin Adler.
2979
2980         No new tests. This change is tested in existing layout tests.
2981
2982         * webaudio/AudioParamTimeline.cpp:
2983         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
2984
2985 2011-10-05  Erik Arvidsson  <arv@chromium.org>
2986
2987         window.location.href and others needlessly decodes URI-encoded characters
2988         https://bugs.webkit.org/show_bug.cgi?id=30225
2989
2990         Reviewed by Darin Adler.
2991
2992         Don't decode KURL::path() and stop using KURL::deprecatedString() in Location methods.
2993
2994         This slightly changes how we parse data and javascript URLs (non hierarchical URLs) to
2995         not encode so aggressively.
2996
2997         * fileapi/DOMFileSystemBase.cpp:
2998         (WebCore::DOMFileSystemBase::crackFileSystemURL): Manually decode path()
2999         * loader/FrameLoader.cpp:
3000         (WebCore::FrameLoader::defaultObjectContentType): Manually decode path()
3001         * page/Location.cpp:
3002         (WebCore::Location::href): Use string() instead of deprecatedString()
3003         * page/Location.h:
3004         (WebCore::Location::toString): Inline call to href()
3005         * platform/KURL.cpp:
3006         (WebCore::KURL::path): Don't decode.
3007         (WebCore::escapeAndAppendNonHierarchicalPart): Rename escapeAndAppendFragment to escapeAndAppendNonHierarchicalPart
3008                                                        since this is now used for more than just fragments.
3009         (WebCore::KURL::parse): Don't decode
3010         * platform/KURLGoogle.cpp:
3011         (WebCore::KURL::path): Remove out of date comment
3012         * platform/qt/KURLQt.cpp:
3013         (WebCore::KURL::fileSystemPath): Manually decode path()
3014         * platform/win/ClipboardWin.cpp:
3015         (WebCore::createGlobalHDropContent): Manually decode path()
3016         * workers/WorkerLocation.cpp:
3017         (WebCore::WorkerLocation::href): Use string() instead of deprecatedString()
3018         * workers/WorkerLocation.h:
3019         (WebCore::WorkerLocation::toString): Inline call to href()
3020
3021 2011-10-05  Darin Adler  <darin@apple.com>
3022
3023         [Mac] Use four more named cursors if present
3024         https://bugs.webkit.org/show_bug.cgi?id=69488
3025
3026         Reviewed by Dan Bernstein.
3027
3028         * platform/mac/CursorMac.mm:
3029         (WebCore::Cursor::ensurePlatformCursor): Use the names "Help", "Cell",
3030         "ZoomIn", and "ZoomOut" to get those cursors. Structure the code so it
3031         falls back if the cursors are not present.
3032
3033 2011-10-05  Tony Chang  <tony@chromium.org>
3034
3035         force margin:auto to 0 in flex items
3036         https://bugs.webkit.org/show_bug.cgi?id=69475
3037
3038         Reviewed by Ojan Vafai.
3039
3040         The spec used to say the margin had a value of flex(1 0 0), but changed to just be 0.
3041
3042         * rendering/RenderFlexibleBox.cpp:
3043         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
3044         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
3045
3046 2011-10-05  Dean Jackson  <dino@apple.com>
3047
3048         Computed style for filter property
3049         https://bugs.webkit.org/show_bug.cgi?id=68477
3050
3051         Reviewed by Simon Fraser.
3052
3053         Reports the computed style for the new -webkit-filter
3054         property value.
3055
3056         Test: css3/filters/filter-property-computed-style.html
3057
3058         * css/CSSComputedStyleDeclaration.cpp:
3059         (WebCore::computedFilter):
3060         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3061
3062 2011-10-05  Jer Noble  <jer.noble@apple.com>
3063
3064         Enable WEB_AUDIO by default in the WebKit/mac port.
3065         https://bugs.webkit.org/show_bug.cgi?id=68587
3066
3067         Reviewed by Simon Fraser.
3068
3069         No new tests; existing webaudio/ layout tests cover this.
3070
3071         * Configurations/FeatureDefines.xcconfig:
3072         * WebCore.xcodeproj/project.pbxproj: Add a build step which copies audio resources to
3073             the WebCore.framework bundle.
3074
3075 2011-10-03  Ojan Vafai  <ojan@chromium.org>
3076
3077         [flexbox] take marginBeforeForChild into account when positioning children
3078         https://bugs.webkit.org/show_bug.cgi?id=69313
3079
3080         Reviewed by Tony Chang.
3081
3082         * rendering/RenderFlexibleBox.cpp:
3083         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
3084
3085 2011-10-05  Vangelis Kokkevis  <vangelis@chromium.org>
3086
3087         Switching threaded compositor from a compile time option to a
3088         run time one.
3089         https://bugs.webkit.org/show_bug.cgi?id=69391
3090
3091         Reviewed by Darin Fisher.
3092
3093         Mostly converted #if USE(THREADED_COMPOSITING) to a regular if statements.
3094         In addition, CCLayerTreeHost::scheduleComposite() is removed as it wasn't being
3095         called from anywhere, 
3096
3097         No new tests as it doesn't add new functionality.
3098
3099         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3100         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
3101         (WebCore::CCLayerTreeHost::setNeedsRedraw):
3102         (WebCore::CCLayerTreeHost::composite):
3103         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
3104         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3105         (WebCore::CCSingleThreadProxy::setNeedsCommitThenRedraw):
3106         (WebCore::CCSingleThreadProxy::compositeImmediately):
3107         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
3108
3109 2011-10-05  Dean Jackson  <dino@apple.com>
3110
3111         Parse '-webkit-filter' property syntax
3112         https://bugs.webkit.org/show_bug.cgi?id=68473
3113
3114         Reviewed by Nikolas Zimmermann.
3115
3116         Parse the new -webkit-filter property, looking for shorthand
3117         functions then testing number, type and value of parameters.
3118
3119         Note that support for drop-shadow() was omitted from this
3120         patch because parsing CSS shadow syntax was going to require some
3121         refactoring of the box and text shadow code. The followup
3122         bug is https://bugs.webkit.org/show_bug.cgi?id=69108.
3123
3124         Also, computed style will return null for filters at the moment.
3125         That's https://bugs.webkit.org/show_bug.cgi?id=68477.
3126
3127         Tests: css3/filters/filter-property-parsing-invalid.html
3128                css3/filters/filter-property-parsing.html
3129
3130         * CMakeLists.txt:
3131         * CodeGenerators.pri:
3132         * DerivedSources.cpp:
3133         * DerivedSources.make:
3134         * GNUmakefile.list.am:
3135         * WebCore.gypi:
3136         * WebCore.pro:
3137         * WebCore.vcproj/WebCore.vcproj:
3138         * WebCore.xcodeproj/project.pbxproj:
3139             Build files updated for new WebKitCSSFilterValue classes.
3140         * bindings/js/JSCSSValueCustom.cpp:
3141         (WebCore::toJS):
3142         * bindings/objc/DOMCSS.mm:
3143             Test if value is WebKitCSSFilterValue.
3144         * css/CSSParser.cpp:
3145         (WebCore::filterInfoForName):
3146         (WebCore::CSSParser::isValidFilterArgument):
3147         (WebCore::CSSParser::parseFilter):
3148         * css/CSSParser.h:
3149         * css/CSSStyleSelector.cpp:
3150         (WebCore::CSSStyleSelector::applyProperty):
3151         (WebCore::filterOperationForType):
3152         (WebCore::CSSStyleSelector::createFilterOperations):
3153         * css/CSSStyleSelector.h:
3154             Handle the new shorthand functions in -webkit-filter.
3155         * css/CSSValue.h:
3156         (WebCore::CSSValue::isWebKitCSSFilterValue):
3157             Add virtual function that returns false here.
3158         * css/WebKitCSSFilterValue.cpp: Added.
3159         (WebCore::WebKitCSSFilterValue::WebKitCSSFilterValue):
3160         (WebCore::WebKitCSSFilterValue::~WebKitCSSFilterValue):
3161         (WebCore::WebKitCSSFilterValue::cssText):
3162         * css/WebKitCSSFilterValue.h: Added.
3163         (WebCore::WebKitCSSFilterValue::create):
3164         (WebCore::WebKitCSSFilterValue::operationType):
3165         (WebCore::WebKitCSSFilterValue::isWebKitCSSFilterValue):
3166         * css/WebKitCSSFilterValue.idl: Added.
3167             WebKitCSSFilterValue modelled closely on WebKitCSSTransformValue,
3168             basically identifying the type of operation in a CSSValueList.
3169         * page/DOMWindow.idl:
3170             New WebKitCSSFilterValue constructor.
3171         * platform/graphics/filters/FilterOperation.h:
3172         (WebCore::BlurFilterOperation::create):
3173         (WebCore::BlurFilterOperation::stdDeviationX):
3174         (WebCore::BlurFilterOperation::stdDeviationY):
3175         (WebCore::BlurFilterOperation::BlurFilterOperation):
3176         (WebCore::SharpenFilterOperation::create):
3177         (WebCore::SharpenFilterOperation::radius):
3178         (WebCore::SharpenFilterOperation::threshold):
3179         (WebCore::SharpenFilterOperation::SharpenFilterOperation):
3180             Use Length rather than double for parameters that are CSS lengths.
3181
3182 2011-10-05  Chris Rogers  <crogers@google.com>
3183
3184         Fix Windows build - it doesn't have a log2f() function...
3185         https://bugs.webkit.org/show_bug.cgi?id=69473
3186
3187         Unreviewed build fix.
3188
3189         * webaudio/AudioParamTimeline.cpp:
3190         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
3191
3192 2011-10-05  James Robinson  <jamesr@chromium.org>
3193
3194         [chromium] ASSERT triggered when gpu process lost in single-threaded compositing path
3195         https://bugs.webkit.org/show_bug.cgi?id=69467
3196
3197         Reviewed by Kenneth Russell.
3198
3199         Shuffles debug-only bookkeeping around to more closely match what we do in the threaded path and not trip a
3200         false-positive ASSERT().
3201
3202         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
3203         (WebCore::CCSingleThreadProxy::doComposite):
3204
3205 2011-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
3206
3207         Unreviewed, rolling out r96756.
3208         http://trac.webkit.org/changeset/96756
3209         https://bugs.webkit.org/show_bug.cgi?id=69472
3210
3211         Many builds broken due to WTFGetBacktrace not being exported
3212         from JavaScriptCore (Requested by aroben on #webkit).
3213
3214         * dom/ScriptElement.cpp:
3215         (WebCore::ScriptElement::ScriptElement):
3216         (WebCore::ScriptElement::stopLoadRequest):
3217         (WebCore::ScriptElement::notifyFinished):
3218         * dom/ScriptElement.h:
3219
3220 2011-10-05  Gavin Peters  <gavinp@chromium.org>
3221
3222         save resource zeroing stacks in ScriptElement for debugging
3223         https://bugs.webkit.org/show_bug.cgi?id=69453
3224
3225         The state machine tracking how m_cachedScript gets zeroed shows that sometimes we get
3226         two notifyFinished() events in a ScriptElement, which can crash chrome (see chrome bug
3227         75604).  This patch will save a stack in the ScriptElement when this happens, so that if
3228         we do later crash, we can see how we did the first zeroing.
3229
3230         See http://code.google.com/p/chromium/issues/detail?id=75604 for the chromium bug that
3231         this change will help track down.
3232
3233         Reviewed by Nate Chapin.
3234
3235         No new tests, this shouldn't affect output at all, and isn't particularly testable.
3236
3237         * dom/ScriptElement.cpp:
3238         (WebCore::ScriptElement::ScriptElement):
3239         (WebCore::ScriptElement::stopLoadRequest):
3240         (WebCore::ScriptElement::notifyFinished):
3241         * dom/ScriptElement.h:
3242
3243 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
3244
3245         More build fix.
3246
3247         * WebCore.exp.in: Made a typo in a last minute change for my 32-bit build fix.
3248
3249 2011-10-05  Anna Cavender  <annacc@chromium.org>
3250
3251         Fix CueParser::didFinishLoading to match changes in ThreadableLoaderClient
3252         https://bugs.webkit.org/show_bug.cgi?id=69456
3253
3254         Reviewed by David Levin.
3255
3256         No new tests. No new functionality.
3257
3258         * html/track/CueParser.cpp:
3259         (WebCore::CueParser::didFinishLoading):
3260         * html/track/CueParser.h:
3261
3262 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
3263
3264         32-bit build fix.
3265
3266         * WebCore.exp.in: In 32-bit, WebCore needs to export both NSSize and CGSize constructors.
3267         In 64-bit, NSSize is just a typedef for CGSize. Also fixed conversion operators, for good measure.
3268
3269 2011-10-05  Jer Noble  <jer.noble@apple.com>
3270
3271         WEB_AUDIO does not compile on Leopard 32-bit.
3272         https://bugs.webkit.org/show_bug.cgi?id=69292
3273
3274         Reviewed by Simon Fraser.
3275
3276         No new tests; covered by all existing audio tests.
3277
3278         Use of float and double within the WEB_AUDIO implementation have been harmonized, with most
3279         calculations done using floats, with narrowPrecisionToFloat() added when necessary to
3280         narrow double results down to floats, and with float constants initialized with float values:
3281         * platform/audio/AudioBus.cpp:
3282         (WebCore::AudioBus::AudioBus):
3283         (WebCore::AudioBus::createByMixingToMono):
3284         * platform/audio/AudioBus.h:
3285         (WebCore::AudioBus::sampleRate):
3286         (WebCore::AudioBus::setSampleRate):
3287         * platform/audio/AudioDSPKernel.h:
3288         (WebCore::AudioDSPKernel::AudioDSPKernel):
3289         (WebCore::AudioDSPKernel::sampleRate):
3290         * platform/audio/AudioDSPKernelProcessor.cpp:
3291         (WebCore::AudioDSPKernelProcessor::AudioDSPKernelProcessor):
3292         * platform/audio/AudioDSPKernelProcessor.h:
3293         * platform/audio/AudioDestination.h:
3294         * platform/audio/AudioFileReader.h:
3295         * platform/audio/AudioProcessor.h:
3296         (WebCore::AudioProcessor::AudioProcessor):
3297         (WebCore::AudioProcessor::sampleRate):
3298         * platform/audio/AudioUtilities.cpp:
3299         (WebCore::AudioUtilities::decibelsToLinear):
3300         (WebCore::AudioUtilities::linearToDecibels):
3301         (WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
3302         * platform/audio/AudioUtilities.h:
3303         * platform/audio/DynamicsCompressor.cpp:
3304         (WebCore::DynamicsCompressor::DynamicsCompressor):
3305         (WebCore::DynamicsCompressor::initializeParameters):
3306         (WebCore::DynamicsCompressor::parameterValue):
3307         (WebCore::DynamicsCompressor::setEmphasisStageParameters):
3308         (WebCore::DynamicsCompressor::process):
3309         * platform/audio/DynamicsCompressor.h:
3310         (WebCore::DynamicsCompressor::sampleRate):
3311         (WebCore::DynamicsCompressor::nyquist):
3312         * platform/audio/DynamicsCompressorKernel.cpp:
3313         (WebCore::saturate):
3314         (WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
3315         (WebCore::DynamicsCompressorKernel::process):
3316         * platform/audio/DynamicsCompressorKernel.h:
3317         * platform/audio/EqualPowerPanner.cpp:
3318         (WebCore::EqualPowerPanner::EqualPowerPanner):
3319         * platform/audio/EqualPowerPanner.h:
3320         * platform/audio/HRTFDatabase.cpp:
3321         (WebCore::HRTFDatabase::create):
3322         (WebCore::HRTFDatabase::HRTFDatabase):
3323         * platform/audio/HRTFDatabase.h:
3324         (WebCore::HRTFDatabase::sampleRate):
3325         * platform/audio/HRTFDatabaseLoader.cpp:
3326         (WebCore::HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary):
3327         (WebCore::HRTFDatabaseLoader::HRTFDatabaseLoader):
3328         * platform/audio/HRTFDatabaseLoader.h:
3329         (WebCore::HRTFDatabaseLoader::databaseSampleRate):
3330         * platform/audio/HRTFElevation.cpp:
3331         (WebCore::HRTFElevation::calculateSymmetricKernelsForAzimuthElevation):
3332         (WebCore::HRTFElevation::calculateKernelsForAzimuthElevation):
3333         (WebCore::HRTFElevation::createForSubject):
3334         (WebCore::HRTFElevation::createByInterpolatingSlices):
3335         * platform/audio/HRTFElevation.h:
3336         (WebCore::HRTFElevation::sampleRate):
3337         (WebCore::HRTFElevation::HRTFElevation):
3338         * platform/audio/HRTFKernel.cpp:
3339         (WebCore::extractAverageGroupDelay):
3340         (WebCore::HRTFKernel::HRTFKernel):
3341         (WebCore::HRTFKernel::createInterpolatedKernel):
3342         * platform/audio/HRTFKernel.h:
3343         (WebCore::HRTFKernel::create):
3344         (WebCore::HRTFKernel::frameDelay):
3345         (WebCore::HRTFKernel::sampleRate):
3346         (WebCore::HRTFKernel::HRTFKernel):
3347         * platform/audio/HRTFPanner.cpp:
3348         (WebCore::HRTFPanner::HRTFPanner):
3349         (WebCore::HRTFPanner::fftSizeForSampleRate):
3350         * platform/audio/HRTFPanner.h:
3351         (WebCore::HRTFPanner::sampleRate):
3352         * platform/audio/Panner.cpp:
3353         (WebCore::Panner::create):
3354         * platform/audio/Panner.h:
3355         * platform/audio/chromium/AudioBusChromium.cpp:
3356         (WebCore::AudioBus::loadPlatformResource):
3357         * platform/audio/mac/AudioBusMac.mm:
3358         (WebCore::AudioBus::loadPlatformResource):
3359         * platform/audio/mac/AudioDestinationMac.cpp:
3360         (WebCore::AudioDestination::create):
3361         (WebCore::AudioDestination::hardwareSampleRate):
3362         (WebCore::AudioDestinationMac::AudioDestinationMac):
3363         * platform/audio/mac/AudioDestinationMac.h:
3364         (WebCore::AudioDestinationMac::sampleRate):
3365         * platform/audio/mac/AudioFileReaderMac.cpp:
3366         (WebCore::AudioFileReader::createBus):
3367         (WebCore::createBusFromAudioFile):
3368         (WebCore::createBusFromInMemoryAudioFile):
3369         * platform/audio/mac/AudioFileReaderMac.h:
3370         * webaudio/AsyncAudioDecoder.cpp:
3371         (WebCore::AsyncAudioDecoder::decodeAsync):
3372         (WebCore::AsyncAudioDecoder::DecodingTask::create):
3373         (WebCore::AsyncAudioDecoder::DecodingTask::DecodingTask):
3374         * webaudio/AsyncAudioDecoder.h:
3375         (WebCore::AsyncAudioDecoder::DecodingTask::sampleRate):
3376         * webaudio/AudioBasicProcessorNode.cpp:
3377         (WebCore::AudioBasicProcessorNode::AudioBasicProcessorNode):
3378         * webaudio/AudioBasicProcessorNode.h:
3379         * webaudio/AudioBuffer.cpp:
3380         (WebCore::AudioBuffer::create):
3381         (WebCore::AudioBuffer::createFromAudioFileData):
3382         (WebCore::AudioBuffer::AudioBuffer):
3383         * webaudio/AudioBuffer.h:
3384         (WebCore::AudioBuffer::sampleRate):
3385         * webaudio/AudioBufferSourceNode.cpp:
3386         (WebCore::AudioBufferSourceNode::create):
3387         (WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
3388         (WebCore::AudioBufferSourceNode::process):
3389         (WebCore::AudioBufferSourceNode::renderFromBuffer):
3390         * webaudio/AudioBufferSourceNode.h:
3391         * webaudio/AudioChannelMerger.cpp:
3392         (WebCore::AudioChannelMerger::AudioChannelMerger):
3393         * webaudio/AudioChannelMerger.h:
3394         (WebCore::AudioChannelMerger::create):
3395         * webaudio/AudioChannelSplitter.cpp:
3396         (WebCore::AudioChannelSplitter::AudioChannelSplitter):
3397         * webaudio/AudioChannelSplitter.h:
3398         (WebCore::AudioChannelSplitter::create):
3399         * webaudio/AudioContext.cpp:
3400         (WebCore::AudioContext::createOfflineContext):
3401         (WebCore::AudioContext::AudioContext):
3402         (WebCore::AudioContext::createBuffer):
3403         * webaudio/AudioContext.h:
3404         (WebCore::AudioContext::sampleRate):
3405         * webaudio/AudioDestinationNode.cpp:
3406         (WebCore::AudioDestinationNode::AudioDestinationNode):
3407         * webaudio/AudioDestinationNode.h:
3408         * webaudio/AudioGainNode.cpp:
3409         (WebCore::AudioGainNode::AudioGainNode):
3410         * webaudio/AudioGainNode.h:
3411         (WebCore::AudioGainNode::create):
3412         * webaudio/AudioListener.cpp:
3413         (WebCore::AudioListener::AudioListener):
3414         * webaudio/AudioListener.h:
3415         (WebCore::AudioListener::setPosition):
3416         (WebCore::AudioListener::setOrientation):
3417         (WebCore::AudioListener::setVelocity):
3418         * webaudio/AudioNode.cpp:
3419         (WebCore::AudioNode::AudioNode):
3420         * webaudio/AudioNode.h:
3421         (WebCore::AudioNode::sampleRate):
3422         * webaudio/AudioPannerNode.cpp:
3423         (WebCore::AudioPannerNode::AudioPannerNode):
3424         (WebCore::AudioPannerNode::getAzimuthElevation):
3425         * webaudio/AudioPannerNode.h:
3426         (WebCore::AudioPannerNode::create):
3427         * webaudio/AudioParam.cpp:
3428         (WebCore::AudioParam::value):
3429         (WebCore::AudioParam::smoothedValue):
3430         (WebCore::AudioParam::smooth):
3431         (WebCore::AudioParam::calculateSampleAccurateValues):
3432         * webaudio/AudioParamTimeline.cpp:
3433         (WebCore::AudioParamTimeline::valueForContextTime):
3434         (WebCore::timeToSampleFrame):
3435         (WebCore::AudioParamTimeline::valuesForTimeRangeImpl):
3436         * webaudio/AudioSourceNode.h:
3437         (WebCore::AudioSourceNode::AudioSourceNode):
3438         * webaudio/BiquadFilterNode.cpp:
3439         (WebCore::BiquadFilterNode::BiquadFilterNode):
3440         * webaudio/BiquadFilterNode.h:
3441         (WebCore::BiquadFilterNode::create):
3442         * webaudio/BiquadProcessor.cpp:
3443         (WebCore::BiquadProcessor::BiquadProcessor):
3444         * webaudio/BiquadProcessor.h:
3445         * webaudio/ConvolverNode.cpp:
3446         (WebCore::ConvolverNode::ConvolverNode):
3447         * webaudio/ConvolverNode.h:
3448         (WebCore::ConvolverNode::create):
3449         * webaudio/DefaultAudioDestinationNode.cpp:
3450         (WebCore::DefaultAudioDestinationNode::initialize):
3451         * webaudio/DefaultAudioDestinationNode.h:
3452         (WebCore::DefaultAudioDestinationNode::sampleRate):
3453         * webaudio/DelayDSPKernel.cpp:
3454         (WebCore::DelayDSPKernel::DelayDSPKernel):
3455         (WebCore::DelayDSPKernel::process):
3456         * webaudio/DelayDSPKernel.h:
3457         * webaudio/DelayNode.cpp:
3458         (WebCore::DelayNode::DelayNode):
3459         * webaudio/DelayNode.h:
3460         (WebCore::DelayNode::create):
3461         * webaudio/DelayProcessor.cpp:
3462         (WebCore::DelayProcessor::DelayProcessor):
3463         * webaudio/DelayProcessor.h:
3464         * webaudio/DynamicsCompressorNode.cpp:
3465         (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
3466         * webaudio/DynamicsCompressorNode.h:
3467         (WebCore::DynamicsCompressorNode::create):
3468         * webaudio/HighPass2FilterNode.cpp:
3469         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
3470         * webaudio/HighPass2FilterNode.h:
3471         (WebCore::HighPass2FilterNode::create):
3472         * webaudio/JavaScriptAudioNode.cpp:
3473         (WebCore::JavaScriptAudioNode::create):
3474         (WebCore::JavaScriptAudioNode::JavaScriptAudioNode):
3475         (WebCore::JavaScriptAudioNode::initialize):
3476         * webaudio/JavaScriptAudioNode.h:
3477         * webaudio/LowPass2FilterNode.cpp:
3478         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
3479         * webaudio/LowPass2FilterNode.h:
3480         (WebCore::LowPass2FilterNode::create):
3481         * webaudio/OfflineAudioDestinationNode.h:
3482         (WebCore::OfflineAudioDestinationNode::sampleRate):
3483         * webaudio/RealtimeAnalyserNode.cpp:
3484         (WebCore::RealtimeAnalyserNode::RealtimeAnalyserNode):
3485         * webaudio/RealtimeAnalyserNode.h:
3486         (WebCore::RealtimeAnalyserNode::create):