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