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