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