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