71de6f98dce9cd26086b554385e6dedb987f8205
[WebKit.git] / Source / WebCore / ChangeLog
1 2011-11-23  Philippe Normand  <pnormand@igalia.com>
2
3         [GStreamer] improper usage of gst_object_ref_sink
4         https://bugs.webkit.org/show_bug.cgi?id=73014
5
6         Reviewed by Martin Robinson.
7
8         No new tests. Existing tests cover this already.
9
10         * platform/graphics/gstreamer/GRefPtrGStreamer.cpp:
11         (WTF::adoptGRef): Ensure this is called with non-floating GstObjects.
12         (WTF::GstElement): Replace gst_object_ref_sink with
13         gst_object_ref+gst_object_sink like advised in the GstObject documentation.
14         (WTF::GstPad): Ditto.
15         * platform/graphics/gstreamer/GRefPtrGStreamer.h:
16
17 2011-11-23  Yury Semikhatsky  <yurys@chromium.org>
18
19         Web Inspector: split console agent into worker and page console agents
20         https://bugs.webkit.org/show_bug.cgi?id=73019
21
22         InspectorConsoleAgent now has two descendants: WorkerConsoleAgent and PageConsoleAgent
23         which encapsulate functionality specific for the type of inspected instance.
24
25         Reviewed by Pavel Feldman.
26
27         * CMakeLists.txt:
28         * GNUmakefile.list.am:
29         * Target.pri:
30         * WebCore.gypi:
31         * WebCore.vcproj/WebCore.vcproj:
32         * WebCore.xcodeproj/project.pbxproj:
33         * inspector/InspectorConsoleAgent.cpp:
34         (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
35         (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
36         (WebCore::InspectorConsoleAgent::clearMessages):
37         (WebCore::InspectorConsoleAgent::addMessageToConsole):
38         (WebCore::InspectorConsoleAgent::resourceRetrievedByXMLHttpRequest):
39         (WebCore::InspectorConsoleAgent::didReceiveResponse):
40         (WebCore::InspectorConsoleAgent::didFailLoading):
41         (WebCore::InspectorConsoleAgent::addConsoleMessage):
42         * inspector/InspectorConsoleAgent.h:
43         * inspector/InspectorController.cpp:
44         (WebCore::InspectorController::InspectorController):
45         * inspector/InspectorStyleTextEditor.cpp:
46         * inspector/InspectorStyleTextEditor.h:
47         * inspector/PageConsoleAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.cpp.
48         (WebCore::PageConsoleAgent::PageConsoleAgent):
49         (WebCore::PageConsoleAgent::~PageConsoleAgent):
50         (WebCore::PageConsoleAgent::clearMessages):
51         (WebCore::PageConsoleAgent::addInspectedNode):
52         (WebCore::PageConsoleAgent::developerExtrasEnabled):
53         * inspector/PageConsoleAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
54         * inspector/PageDebuggerAgent.cpp:
55         * inspector/PageDebuggerAgent.h:
56         * inspector/PageRuntimeAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
57         (WebCore::PageRuntimeAgent::PageRuntimeAgent): PageRuntimeAgent was moved into its own file.
58         (WebCore::PageRuntimeAgent::~PageRuntimeAgent):
59         (WebCore::PageRuntimeAgent::scriptStateForFrameId):
60         (WebCore::PageRuntimeAgent::getDefaultInspectedState):
61         * inspector/PageRuntimeAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
62         * inspector/WorkerConsoleAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
63         (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
64         (WebCore::WorkerConsoleAgent::~WorkerConsoleAgent):
65         (WebCore::WorkerConsoleAgent::addInspectedNode):
66         (WebCore::WorkerConsoleAgent::developerExtrasEnabled):
67         * inspector/WorkerConsoleAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
68         * inspector/WorkerDebuggerAgent.cpp:
69         * inspector/WorkerDebuggerAgent.h:
70         * inspector/WorkerInspectorController.cpp:
71         (WebCore::WorkerInspectorController::WorkerInspectorController):
72         * inspector/WorkerInspectorController.h:
73         * inspector/WorkerRuntimeAgent.cpp: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
74         (WebCore::WorkerRuntimeAgent::WorkerRuntimeAgent): WorkerRuntimeAgent was moved into its own file.
75         (WebCore::WorkerRuntimeAgent::~WorkerRuntimeAgent):
76         (WebCore::WorkerRuntimeAgent::scriptStateForFrameId):
77         (WebCore::WorkerRuntimeAgent::getDefaultInspectedState):
78         * inspector/WorkerRuntimeAgent.h: Copied from Source/WebCore/inspector/PageDebuggerAgent.h.
79
80 2011-11-23  Alexander Pavlov  <apavlov@chromium.org>
81
82         Web Inspector: warning icon for unrecognized style rule should have tooltip
83         https://bugs.webkit.org/show_bug.cgi?id=50638
84
85         Reviewed by Yury Semikhatsky.
86
87         * English.lproj/localizedStrings.js: Add new tooltip strings.
88         * inspector/front-end/CSSCompletions.js:
89         (WebInspector.CSSCompletions.prototype.keySet): Added.
90         * inspector/front-end/StylesSidebarPane.js: Create a separate IMG element for an exclamation mark.
91         * inspector/front-end/elementsPanel.css:
92         (.styles-section .properties li.not-parsed-ok img.exclamation-mark):
93
94 2011-11-23  Halton Huo  <halton.huo@intel.com>
95
96         [EFL] Add zlib depend when freetype is used.
97         https://bugs.webkit.org/show_bug.cgi?id=66365
98
99         Unreviewed build fix.
100
101         When freetype is enabled, uncompress() function is used by
102         WOFFFileFormat.cpp. Since zlib is not required by freetype, we need to
103         add libz as dependency for fix linking issue.
104
105         No new test because this change is only to fix linking issue.
106
107         * PlatformEfl.cmake: add ZLIB as dependency when using freetype
108
109 2011-11-23  Mihnea Ovidenie  <mihnea@adobe.com>
110
111         CSS Exclusions: parse the shorthand "wrap" property
112         https://bugs.webkit.org/show_bug.cgi?id=71905
113
114         Reviewed by Dean Jackson.
115
116         Test: fast/exclusions/wrap-parsing.html
117
118         * css/CSSComputedStyleDeclaration.cpp:
119         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
120         * css/CSSMutableStyleDeclaration.cpp:
121         (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
122         * css/CSSParser.cpp:
123         (WebCore::CSSParser::parseValue):
124         * css/CSSProperty.cpp:
125         (WebCore::CSSProperty::isInheritedProperty):
126         * css/CSSPropertyLonghand.cpp:
127         (WebCore::initShorthandMap):
128         * css/CSSPropertyNames.in:
129         * css/CSSStyleApplyProperty.cpp:
130         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
131         * css/CSSStyleSelector.cpp:
132         (WebCore::CSSStyleSelector::applyProperty):
133
134 2011-11-23  Alexandru Chiculita  <achicu@adobe.com>
135
136         [CSS Filters] WebKit crashes when changing the filter
137         https://bugs.webkit.org/show_bug.cgi?id=72723
138
139         Reviewed by Simon Fraser.
140
141         There are three things fixed with this patch:
142         1. The list of effects wasn't cleared when the FilterOperations were changed.
143         2. The sourceImage was going to be 0, because the m_sourceGraphicBuffer.release()
144         was also clearing the reference to m_sourceGraphicBuffer. Next time the build() method
145         was called m_graphicsBufferAttached was set to false, but the m_sourceGraphicBuffer was
146         not regenerated, because the size was not invalidated.
147         3. maxEffectRects were not updated when a new list of effects was built.
148          
149         Test: css3/filters/crash-filter-change.html
150
151         * rendering/FilterEffectRenderer.cpp:
152         (WebCore::FilterEffectRenderer::build):
153         (WebCore::FilterEffectRenderer::prepare):
154         * rendering/FilterEffectRenderer.h:
155         (WebCore::FilterEffectRenderer::setSourceImageRect):
156
157 2011-11-23  Elliot Poger  <epoger@google.com>
158
159         [Skia] fix duplicate symbol __ZN7WebCore11BitmapImage16initPlatformDataEv error
160         https://bugs.webkit.org/show_bug.cgi?id=72954
161
162         Reviewed by Adam Barth.
163
164         * WebCore.gyp/WebCore.gyp:
165
166 2011-11-18  Pavel Podivilov  <podivilov@chromium.org>
167
168         Web Inspector: add integration test for compiler source maps.
169         https://bugs.webkit.org/show_bug.cgi?id=72730
170
171         Reviewed by Pavel Feldman.
172
173         Test: http/tests/inspector/compiler-source-mapping-debug.html
174
175         * inspector/front-end/DebuggerPresentationModel.js:
176         (WebInspector.DebuggerPresentationModel.prototype._bindScriptToRawSourceCode):
177         (WebInspector.DebuggerPresentationModel.prototype.setCompilerSourceMapping):
178         (WebInspector.DebuggerPresentationModel.prototype.evaluateInSelectedCallFrame):
179         (WebInspector.DebuggerPresentationModel.prototype.get executionLineLocation):
180         (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor):
181         (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation):
182         (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor):
183
184 2011-11-23  Martin Robinson  <mrobinson@igalia.com>
185
186         Build fix for GTK+.
187
188         * platform/graphics/gtk/DrawingBufferGtk.cpp:
189         (WebCore::DrawingBuffer::DrawingBuffer): Update signature and ASSERT
190         for the GTK+ port.
191
192 2011-11-23  Rafael Weinstein  <rafaelw@chromium.org>
193
194         Remove notifyChange from the public interface of CSSMutableStyleDeclaration
195         https://bugs.webkit.org/show_bug.cgi?id=72660
196
197         Reviewed by Ojan Vafai.
198
199         No tests needed. This is only a refactor.
200
201         * css/CSSMutableStyleDeclaration.cpp:
202         (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration):
203         (WebCore::CSSMutableStyleDeclaration::addParsedProperty):
204         * css/CSSMutableStyleDeclaration.h:
205         (WebCore::CSSMutableStyleDeclaration::setProperty):
206         (WebCore::CSSMutableStyleDeclaration::removeProperty):
207         (WebCore::CSSMutableStyleDeclaration::removePropertiesInSet):
208         * css/CSSStyleSelector.cpp:
209         (WebCore::leftToRightDeclaration):
210         (WebCore::rightToLeftDeclaration):
211         * editing/ApplyStyleCommand.cpp:
212         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
213         * html/HTMLElement.cpp:
214         (WebCore::HTMLElement::setContentEditable):
215
216 2011-11-23  Scott Graham  <scottmg@chromium.org>
217
218         Adding gamepad support
219         https://bugs.webkit.org/show_bug.cgi?id=69451
220
221         Reviewed by Darin Fisher.
222
223         Plumb gamepad data access through platform.
224
225         Test: gamepad/gamepad-polling-access.html
226
227         * WebCore.gypi:
228         * page/Navigator.cpp:
229         (WebCore::Navigator::webkitGamepads):
230         * page/Navigator.h:
231         * platform/Gamepads.h: Added.
232         * platform/chromium/GamepadsChromium.cpp: Added.
233         (WebCore::sampleGamepads):
234         * platform/chromium/PlatformSupport.h:
235
236 2011-11-23  Dmitry Lomov  <dslomov@google.com>
237
238         Get rid of WebCore dependencies from TypedArray implementation types
239         https://bugs.webkit.org/show_bug.cgi?id=72783
240
241         Reviewed by David Levin.
242
243         Remove WebCore specific logic for neutering Typed Array implementations.
244
245         * bindings/scripts/CodeGeneratorJS.pm:
246         (GenerateImplementation):
247         * bindings/scripts/CodeGeneratorV8.pm:
248         * html/canvas/ArrayBuffer.cpp:
249         (WTF::ArrayBuffer::transfer):
250         * html/canvas/ArrayBuffer.h:
251         * html/canvas/ArrayBufferView.cpp:
252         (WTF::ArrayBufferView::neuter):
253         * html/canvas/ArrayBufferView.h:
254         * html/canvas/DataView.cpp:
255         (WebCore::DataView::neuter):
256         * html/canvas/DataView.h:
257         * html/canvas/Float32Array.h:
258         * html/canvas/Float64Array.h:
259         * html/canvas/Int16Array.h:
260         * html/canvas/Int32Array.h:
261         * html/canvas/Int8Array.h:
262         * html/canvas/Uint16Array.h:
263         * html/canvas/Uint32Array.h:
264         * html/canvas/Uint8Array.h:
265
266 2011-11-23  Raul Hudea  <rhudea@adobe.com>
267
268         First step towards http://webkit.org/b/70025
269
270         Allow -webkit-transform to be have effect to SVG elements.
271         Currently, the CSS transform takes precedence over the SVG transform attribute
272
273         Allow SVG elements to be transformed using webkit-transform
274         https://bugs.webkit.org/show_bug.cgi?id=71309
275
276         Reviewed by Nikolas Zimmermann.
277
278         Tests: svg/clip-path/clip-path-css-transform-1.svg
279                svg/clip-path/clip-path-css-transform-2.svg
280                svg/custom/clip-path-with-css-transform-1.svg
281                svg/custom/clip-path-with-css-transform-2.svg
282                svg/custom/pointer-events-image-css-transform.svg
283                svg/custom/pointer-events-text-css-transform.svg
284                svg/dom/css-transforms.xhtml
285                svg/dynamic-updates/SVG-dynamic-css-transform.html
286                svg/dynamic-updates/SVGClipPathElement-css-transform-influences-hitTesting.html
287                svg/transforms/svg-css-transforms-clip-path.xhtml
288                svg/transforms/svg-css-transforms.xhtml
289
290         * manual-tests/svg-animation-css-transform.html: Added.
291         * manual-tests/svg-css-animate-compound.html: Added.
292         * manual-tests/svg-css-transition-compound.html: Added.
293         * rendering/svg/RenderSVGModelObject.cpp:
294         (WebCore::RenderSVGModelObject::styleWillChange):
295
296         Set the updateTransform flag on SVG elements whenever a CSS transform is present on the style
297
298         * svg/SVGStyledTransformableElement.cpp:
299         (WebCore::SVGStyledTransformableElement::animatedLocalTransform):
300
301         Use the RenderStyle's transform (if it exists) over the SVG's transform
302
303         * svg/SVGTextElement.cpp:
304         (WebCore::SVGTextElement::animatedLocalTransform):
305
306         Use the RenderStyle's transform (if it exists) over the SVG's transform
307
308 2011-11-23  Rafael Weinstein  <rafaelw@chromium.org>
309
310         [MutationObservers] Cleanup duplicated code in Element & CharacterData
311         https://bugs.webkit.org/show_bug.cgi?id=72986
312
313         Reviewed by Ojan Vafai.
314
315         This patch creates a MutationObserverInterestGroup which represents the set
316         of MutationObservers which should receive all mutations of a given type generated
317         from a specific node.
318
319         No tests needed. This patch is only a refactor.
320
321         * dom/CharacterData.cpp:
322         (WebCore::CharacterData::dispatchModifiedEvent):
323         * dom/ChildListMutationScope.cpp:
324         (WebCore::MutationAccumulationRouter::ChildListMutationAccumulator::ChildListMutationAccumulator):
325         (WebCore::MutationAccumulationRouter::ChildListMutationAccumulator::enqueueMutationRecord):
326         (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
327         * dom/Element.cpp:
328         (WebCore::enqueueAttributesMutationRecord):
329         * dom/WebKitMutationObserver.cpp:
330         (WebCore::MutationObserverInterestGroup::createForChildListMutation):
331         (WebCore::MutationObserverInterestGroup::createForCharacterDataMutation):
332         (WebCore::MutationObserverInterestGroup::createForAttributesMutation):
333         (WebCore::MutationObserverInterestGroup::MutationObserverInterestGroup):
334         (WebCore::MutationObserverInterestGroup::isOldValueRequested):
335         (WebCore::MutationObserverInterestGroup::enqueueMutationRecord):
336         * dom/WebKitMutationObserver.h:
337         (WebCore::MutationObserverInterestGroup::isEmpty):
338         (WebCore::MutationObserverInterestGroup::hasOldValue):
339
340 2011-11-23  Marc-Andre Decoste  <mad@chromium.org>
341
342         [chromium] HDC leak in Uniscribe Helper
343         https://bugs.webkit.org/show_bug.cgi?id=68598
344
345         Reviewed by Darin Fisher.
346
347         For some reason the Script functions on Windows sometimes return
348         E_PENDING even with a non-NULL DC, so we must handle that case.
349         Also, we should not use the screen DC to select font since this
350         refreshes the whole desktop, so I added a cached compatible DC.
351
352         Note that this doesn't reproduce with WebKit alone, it only reproduces
353         within Chrome, so we can't write a WebKit test for it. A chromium
354         browser test will be added once this change gets rolled in the
355         chromium DEPS file.
356
357         * platform/graphics/chromium/UniscribeHelper.cpp:
358         (WebCore::UniscribeHelper::shape):
359         (WebCore::UniscribeHelper::EnsureCachedDCCreated):
360         (WebCore::UniscribeHelper::fillShapes):
361         * platform/graphics/chromium/UniscribeHelper.h:
362
363 2011-11-23  Anna Cavender  <annacc@chromium.org>
364
365         Move readyState from TextTrack to HTMLTrackElement
366         https://bugs.webkit.org/show_bug.cgi?id=72553
367
368         Reviewed by Eric Carlson.
369
370         * html/HTMLTrackElement.cpp:
371         (WebCore::HTMLTrackElement::HTMLTrackElement):
372             Set initial readyState to NONE.
373         (WebCore::HTMLTrackElement::didCompleteLoad):
374             Set readyState based on load completed status.
375         (WebCore::HTMLTrackElement::setReadyState):
376             This replaces textTrackReadyStateChanged() because only LoadableTextTrack
377             needs to notify HTMLTrackElement of readyState changes (i.e.
378             textTrackReadyStateChanged() is no longer required of TextTrackClient).
379         * html/HTMLTrackElement.h:
380             ReadyState enum and m_readyState member variable moved from TextTrack.
381         (WebCore::HTMLTrackElement::readyState):
382             New: readyState() getter.
383         * html/HTMLTrackElement.idl:
384             Add readyState attribute and associated constants.
385
386         * html/LoadableTextTrack.cpp:
387         (WebCore::LoadableTextTrack::loadTimerFired): Set readyState on HTMLTrackElement.
388         (WebCore::LoadableTextTrack::cueLoadingStarted): Ditto.
389         (WebCore::LoadableTextTrack::cueLoadingCompleted): Move code to set readyState
390             to HTMLTrackElement (it can set it based on loading status).
391
392         * html/TextTrack.cpp: Remove readyState from TextTrack.
393         (WebCore::TextTrack::TextTrack): Ditto.
394         * html/TextTrack.h: Ditto.
395         * html/TextTrack.idl: Ditto.
396
397 2011-11-23  Raphael Kubo da Costa  <kubo@profusion.mobi>
398
399         [CMake] Move the top-level logic to the top-level directory.
400         https://bugs.webkit.org/show_bug.cgi?id=72685
401
402         Reviewed by Brent Fulgham.
403
404         No new tests, this is a buildsystem changes.
405
406         * CMakeLists.txt: Adjust the Source/ directory.
407         * PlatformBlackBerry.cmake: Ditto.
408
409 2011-11-23  Mihnea Ovidenie  <mihnea@adobe.com>
410
411         CSS Exclusions: update the name of the shape CSS properties
412         https://bugs.webkit.org/show_bug.cgi?id=71898
413         Instead of a single wrap-shape property, we have wrap-shape-inside and wrap-shape-outside.
414
415         Reviewed by Dean Jackson.
416
417         Tests: fast/exclusions/parsing-wrap-shape-inside.html
418                fast/exclusions/parsing-wrap-shape-outside.html
419
420         * css/CSSComputedStyleDeclaration.cpp:
421         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
422         * css/CSSParser.cpp:
423         (WebCore::CSSParser::parseValue):
424         (WebCore::CSSParser::parseWrapShape):
425         * css/CSSParser.h:
426         * css/CSSProperty.cpp:
427         (WebCore::CSSProperty::isInheritedProperty):
428         * css/CSSPropertyNames.in:
429         * css/CSSStyleSelector.cpp:
430         (WebCore::CSSStyleSelector::applyProperty):
431         * rendering/style/RenderStyle.cpp:
432         (WebCore::RenderStyle::diff):
433         * rendering/style/RenderStyle.h:
434         (WebCore::InheritedFlags::setWrapShapeInside):
435         (WebCore::InheritedFlags::wrapShapeInside):
436         (WebCore::InheritedFlags::setWrapShapeOutside):
437         (WebCore::InheritedFlags::wrapShapeOutside):
438         (WebCore::InheritedFlags::initialWrapShapeInside):
439         (WebCore::InheritedFlags::initialWrapShapeOutside):
440         * rendering/style/StyleRareNonInheritedData.cpp:
441         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
442         (WebCore::StyleRareNonInheritedData::operator==):
443         * rendering/style/StyleRareNonInheritedData.h:
444
445 2011-11-23  Andrey Kosyakov  <caseq@chromium.org>
446
447         Web Inspector: [Extensions API] avoid exception in initExtensions() if elements panel is not present
448         https://bugs.webkit.org/show_bug.cgi?id=73007
449
450         Reviewed by Yury Semikhatsky.
451
452         * inspector/front-end/ExtensionServer.js:
453
454 2011-11-23  Brian Salomon  <bsalomon@google.com>
455
456         Use new name for pixel config field of GrTextureDesc
457         https://bugs.webkit.org/show_bug.cgi?id=72543
458
459         Reviewed by Stephen White.
460
461         Tested by every canvas2d layout test.
462
463         * platform/graphics/skia/ImageBufferSkia.cpp:
464         (WebCore::createAcceleratedCanvas):
465
466 2011-11-23  Emil A Eklund  <eae@chromium.org>
467
468         Change remaining scrollTop/Left/Width/Height methods back to int
469         https://bugs.webkit.org/show_bug.cgi?id=72771
470
471         Reviewed by Eric Seidel.
472
473         Change remaining scrollTop/Left/Width/Height, setScrollLeft/Top and
474         verticalScrollbarWidth, horizontalScrollbarHeight methods back to int as
475         scrolling will remain int based to line up with device pixels.
476
477         No new tests.
478
479         * rendering/RenderBox.cpp:
480         (WebCore::RenderBox::scrollWidth):
481         (WebCore::RenderBox::scrollHeight):
482         (WebCore::RenderBox::scrollLeft):
483         (WebCore::RenderBox::scrollTop):
484         (WebCore::RenderBox::setScrollLeft):
485         (WebCore::RenderBox::setScrollTop):
486         (WebCore::RenderBox::verticalScrollbarWidth):
487         (WebCore::RenderBox::horizontalScrollbarHeight):
488         * rendering/RenderBox.h:
489         (WebCore::RenderBox::scrollbarLogicalHeight):
490         * rendering/RenderListBox.cpp:
491         (WebCore::RenderListBox::verticalScrollbarWidth):
492         (WebCore::RenderListBox::scrollHeight):
493         (WebCore::RenderListBox::scrollLeft):
494         (WebCore::RenderListBox::setScrollLeft):
495         (WebCore::RenderListBox::scrollTop):
496         (WebCore::RenderListBox::setScrollTop):
497         * rendering/RenderListBox.h:
498         * rendering/RenderTextControlSingleLine.cpp:
499         (WebCore::RenderTextControlSingleLine::scrollWidth):
500         (WebCore::RenderTextControlSingleLine::scrollHeight):
501         (WebCore::RenderTextControlSingleLine::scrollLeft):
502         (WebCore::RenderTextControlSingleLine::scrollTop):
503         (WebCore::RenderTextControlSingleLine::setScrollLeft):
504         (WebCore::RenderTextControlSingleLine::setScrollTop):
505         * rendering/RenderTextControlSingleLine.h:
506
507 2011-11-22  Kenneth Russell  <kbr@google.com>
508
509         [chromium] Support Core Animation plugins in compositor
510         https://bugs.webkit.org/show_bug.cgi?id=72921
511
512         Reviewed by Stephen White.
513
514         Added support to PluginLayerChromium and CCPluginLayerImpl for
515         using an IOSurface as the backing store for a plugin. Added minimal
516         ARB_texture_rectangle support to Extensions3D.h and a Chromium-
517         specific extension for binding an IOSurface to a texture.
518
519         These changes themselves do not have any effect. A follow-on
520         Chromium CL will make the switch to this new code path.
521
522         Tested manually both with and without the Chromium side changes;
523         Chromium's DumpRenderTree port does not support Core Animation
524         plugins. Ran video and Stage3D in Flash, and Unity 3D content, to
525         verify.
526
527         * platform/graphics/Extensions3D.h:
528         * platform/graphics/chromium/Extensions3DChromium.h:
529         * platform/graphics/chromium/LayerRendererChromium.cpp:
530         (WebCore::LayerRendererChromium::initialize):
531         (WebCore::LayerRendererChromium::pluginLayerTexRectProgram):
532         (WebCore::LayerRendererChromium::pluginLayerTexRectProgramFlip):
533         * platform/graphics/chromium/LayerRendererChromium.h:
534         * platform/graphics/chromium/PluginLayerChromium.cpp:
535         (WebCore::PluginLayerChromium::PluginLayerChromium):
536         (WebCore::PluginLayerChromium::setIOSurfaceProperties):
537         (WebCore::PluginLayerChromium::getIOSurfaceId):
538         (WebCore::PluginLayerChromium::pushPropertiesTo):
539         * platform/graphics/chromium/PluginLayerChromium.h:
540         * platform/graphics/chromium/ShaderChromium.cpp:
541         (WebCore::FragmentShaderRGBATexRectFlipAlpha::getShaderString):
542         (WebCore::FragmentShaderRGBATexRectAlpha::getShaderString):
543         * platform/graphics/chromium/ShaderChromium.h:
544         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
545         (PluginProgramBinding::TexStretchPluginProgramBinding::set):
546         (PluginProgramBinding::TexTransformPluginProgramBinding::set):
547         (WebCore::CCPluginLayerImpl::CCPluginLayerImpl):
548         (WebCore::CCPluginLayerImpl::~CCPluginLayerImpl):
549         (WebCore::CCPluginLayerImpl::draw):
550         (WebCore::CCPluginLayerImpl::setIOSurfaceProperties):
551         (WebCore::CCPluginLayerImpl::cleanupResources):
552         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
553
554 2011-11-22  Daniel Cheng  <dcheng@chromium.org>
555
556         [chromium] Fix plumbing for differentiating between clipboard/selection pastes.
557         https://bugs.webkit.org/show_bug.cgi?id=72056
558
559         Reviewed by Tony Chang.
560
561         Add a buffer parameter when retrieving the clipboard sequence number and fix several call
562         sites that incorrectly assume use of the standard buffer in pastes.
563
564         * platform/chromium/ChromiumDataObject.cpp:
565         (WebCore::ChromiumDataObject::types):
566         (WebCore::ChromiumDataObject::getData):
567         (WebCore::ChromiumDataObject::containsFilenames):
568         * platform/chromium/ChromiumDataObject.h:
569         * platform/chromium/ClipboardChromium.cpp:
570         (WebCore::ClipboardChromium::ClipboardChromium):
571         (WebCore::ClipboardChromium::getData):
572         (WebCore::ClipboardChromium::platformClipboardChanged):
573         * platform/chromium/ClipboardUtilitiesChromium.cpp:
574         (WebCore::currentPasteboardBuffer):
575         * platform/chromium/ClipboardUtilitiesChromium.h:
576         * platform/chromium/DataTransferItemChromium.cpp:
577         (WebCore::DataTransferItemChromium::getAsString):
578         * platform/chromium/PlatformSupport.h:
579
580 2011-11-22  Andrey Kosyakov  <caseq@chromium.org>
581
582         Layout Test inspector/extensions/extensions-events.html is timing out
583         https://bugs.webkit.org/show_bug.cgi?id=72966
584
585         Reviewed by Pavel Feldman.
586
587         - always bind to {add,remove}EventListener() of event target, not WebInspector.Object
588
589         * inspector/front-end/ExtensionServer.js:
590         (WebInspector.ExtensionServer.prototype._registerAutosubscriptionHandler):
591
592 2011-11-22  Adam Klein  <adamk@chromium.org>
593
594         Move splitView.css (added in r100991) to the correct target.
595
596         * WebCore.gypi:
597
598 2011-11-22  Andreas Kling  <kling@webkit.org>
599
600         CSSProperty: Remove unnecessary operator overloads.
601         <http://webkit.org/b/72953>
602
603         Reviewed by Antti Koivisto.
604
605         * css/CSSProperty.cpp:
606         * css/CSSProperty.h:
607
608             Remove operator= and operator== from CSSProperty. They were neither
609             implemented correctly nor used anywhere.
610
611 2011-11-22  Andreas Kling  <kling@webkit.org>
612
613         CSSStyleDeclaration: Kill FIXME in setProperty().
614         <http://webkit.org/b/72958>
615
616         Reviewed by Antonio Gomes.
617
618         Remove FIXME about possibly throwing an exception when setProperty()
619         is called with an invalid property name. CSSOM specifies that the
620         method should simply return in this case.
621
622         Spec: http://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-setproperty
623
624         * css/CSSStyleDeclaration.cpp:
625         (WebCore::CSSStyleDeclaration::setProperty):
626
627 2011-11-22  Shinya Kawanaka  <shinyak@google.com>
628
629         Spellcheck should be able to run asynchronously.
630         https://bugs.webkit.org/show_bug.cgi?id=71991
631
632         Reviewed by Hajime Morita.
633
634         Run asynchronous spell checker if both asynchronous flag and unified text checker flag are ON.
635
636         When multiple asynchronous spellchecking are requested, only the first request will be processed.
637
638         Test: editing/spelling/spellcheck-async.html
639
640         * editing/Editor.cpp:
641         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
642           Uses asynchronous spell checker if asynchronous flag is ON.
643
644 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
645
646         Web Inspector: [SuggestBox] Grayed prompt displayed with non-collapsed selection in place
647         https://bugs.webkit.org/show_bug.cgi?id=72951
648
649         Reviewed by Pavel Feldman.
650
651         * inspector/front-end/TextPrompt.js:
652         (WebInspector.TextPrompt.prototype.complete):
653
654 2011-11-22  Pavel Feldman  <pfeldman@google.com>
655
656         Not reviewed: fix inspector front-end compilation.
657
658         * inspector/front-end/externs.js:
659         (WebInspector.showPanel):
660
661 2011-11-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
662
663         Add WebCore platform interface needed by updated MediaStream API design
664         https://bugs.webkit.org/show_bug.cgi?id=70895
665
666         Reviewed by Adam Barth.
667
668         This is one in a series of patches that update the MediaStream feature
669         to use WebCore platform interfaces.
670
671         Tests will be provided by http://webkit.org/b/56587
672
673         * GNUmakefile.list.am:
674         * WebCore.gypi:
675         * mediastream/LocalMediaStream.cpp:
676         (WebCore::LocalMediaStream::stopTimerFired):
677         * mediastream/MediaStream.h:
678         * mediastream/MediaStreamTrack.cpp:
679         (WebCore::MediaStreamTrack::setEnabled):
680         * mediastream/PeerConnection.cpp:
681         (WebCore::PeerConnection::didRemoveRemoteStream):
682         * mediastream/UserMediaRequest.cpp:
683         (WebCore::UserMediaRequest::start):
684         * mediastream/UserMediaRequest.h:
685         * platform/mediastream/MediaStreamCenter.cpp: Added.
686         (WebCore::MediaStreamCenter::instance):
687         (WebCore::MediaStreamCenter::endLocalMediaStream):
688         (WebCore::MediaStreamCenter::MediaStreamCenter):
689         (WebCore::MediaStreamCenter::~MediaStreamCenter):
690         (WebCore::MediaStreamCenter::queryMediaStreamSources):
691         (WebCore::MediaStreamCenter::didSetMediaStreamTrackEnabled):
692         (WebCore::MediaStreamCenter::didStopLocalMediaStream):
693         * platform/mediastream/MediaStreamCenter.h: Added.
694         (WebCore::MediaStreamSourcesQueryClient::~MediaStreamSourcesQueryClient):
695         * platform/mediastream/MediaStreamDescriptor.h:
696         (WebCore::MediaStreamDescriptorOwner::~MediaStreamDescriptorOwner):
697         (WebCore::MediaStreamDescriptor::owner):
698         (WebCore::MediaStreamDescriptor::setOwner):
699
700 2011-11-22  Pavel Feldman  <pfeldman@google.com>
701
702         Web Inspector: remove Inspector::bringToFront from the protocol.
703         https://bugs.webkit.org/show_bug.cgi?id=72937
704
705         Inspector::bringToFront protocol method is currently used on the backend
706         in order to reveal the front-end window. We should do that by means of
707         the inspector client interface instead.
708
709         Reviewed by Yury Semikhatsky.
710
711         * inspector/Inspector.json:
712         * inspector/InspectorClient.h:
713         * inspector/InspectorController.cpp:
714         (WebCore::InspectorController::show):
715         * loader/EmptyClients.h:
716         (WebCore::EmptyInspectorClient::bringFrontendToFront):
717
718 2011-11-21  Andrey Kosyakov  <caseq@chromium.org>
719
720         Web Inspector: [Extensions API][refactoring] remove dependencies on the ExtensionsServer from most of the insepctor
721         https://bugs.webkit.org/show_bug.cgi?id=72899
722
723         Reviewed by Pavel Feldman.
724
725         * inspector/front-end/ElementsPanel.js:
726         (WebInspector.ElementsPanel.prototype._selectedNodeChanged):
727         * inspector/front-end/ExtensionServer.js:
728         (WebInspector.ExtensionServer.prototype._notifyResourceContentCommitted):
729         (WebInspector.ExtensionServer.prototype._notifyElementsSelectionChanged):
730         * inspector/front-end/Resource.js:
731         (WebInspector.Resource.prototype.addRevision):
732         * inspector/front-end/externs.js:
733
734 2011-11-22  Zoltan Horvath  <zoltan@webkit.org>
735
736         [Qt] Build fix for MHTML support
737
738         * Target.pri: Add missing includepath.
739
740 2011-11-22  Vsevolod Vlasov  <vsevik@chromium.org>
741
742         Web Inspector: Extract SplitView from Panel.createSidebar() method and reuse in Elements and Scripts panels.
743         https://bugs.webkit.org/show_bug.cgi?id=72920
744
745         Reviewed by Pavel Feldman.
746
747         * WebCore.gypi:
748         * WebCore.vcproj/WebCore.vcproj:
749         * inspector/compile-front-end.sh:
750         * inspector/front-end/ApplicationCacheModel.js:
751         * inspector/front-end/AuditsPanel.js:
752         (WebInspector.AuditsPanel):
753         * inspector/front-end/ElementsPanel.js:
754         (WebInspector.ElementsPanel):
755         (WebInspector.ElementsPanel.prototype.wasShown):
756         (WebInspector.ElementsPanel.prototype.sidebarResized):
757         (WebInspector.ElementsPanel.prototype.toggleSearchingForNode):
758         * inspector/front-end/NetworkPanel.js:
759         (WebInspector.NetworkPanel.prototype.wasShown):
760         (WebInspector.NetworkPanel.prototype._showResource):
761         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
762         (WebInspector.NetworkPanel.prototype._toggleGridMode):
763         (WebInspector.NetworkPanel.prototype._toggleViewingResourceMode):
764         * inspector/front-end/Panel.js:
765         (WebInspector.Panel.prototype.wasShown):
766         (WebInspector.Panel.prototype.createSplitView):
767         (WebInspector.Panel.prototype.createSplitViewWithSidebarTree):
768         (WebInspector.Panel.prototype.sidebarResized):
769         * inspector/front-end/ProfilesPanel.js:
770         (WebInspector.ProfilesPanel.prototype._reset):
771         (WebInspector.ProfilesPanel.prototype.sidebarResized):
772         * inspector/front-end/ResourcesPanel.js:
773         (WebInspector.ResourcesPanel.prototype.sidebarResized):
774         * inspector/front-end/ScriptsPanel.js:
775         (WebInspector.ScriptsPanel.prototype.wasShown):
776         (WebInspector.ScriptsPanel.prototype.sidebarResized):
777         * inspector/front-end/SplitView.js: Added.
778         (WebInspector.SplitView):
779         * inspector/front-end/TimelineOverviewPane.js:
780         (WebInspector.TimelineOverviewPane.prototype.sidebarResized):
781         * inspector/front-end/TimelinePanel.js:
782         (WebInspector.TimelinePanel):
783         (WebInspector.TimelinePanel.prototype.sidebarResized):
784         (WebInspector.TimelinePanel.prototype._refreshRecords):
785         * inspector/front-end/WebKit.qrc:
786         * inspector/front-end/auditsPanel.css:
787         * inspector/front-end/elementsPanel.css:
788         * inspector/front-end/inspector.css:
789         (.sidebar):
790         * inspector/front-end/inspector.html:
791         * inspector/front-end/networkLogView.css:
792         * inspector/front-end/networkPanel.css:
793         (#network-views):
794         * inspector/front-end/profilesPanel.css:
795         (#profile-views):
796         * inspector/front-end/resourcesPanel.css:
797         * inspector/front-end/scriptsPanel.css:
798         (#scripts-split-view):
799         * inspector/front-end/splitView.css: Added.
800         * inspector/front-end/timelinePanel.css:
801         (.timeline .sidebar):
802         (.timeline-sidebar-background):
803         (#resources-container-content):
804
805 2011-11-22  Sheriff Bot  <webkit.review.bot@gmail.com>
806
807         Unreviewed, rolling out r100988.
808         http://trac.webkit.org/changeset/100988
809         https://bugs.webkit.org/show_bug.cgi?id=72941
810
811         "Broke pixel tests on Chromium-Linux" (Requested by kbalazs on
812         #webkit).
813
814         * platform/graphics/filters/FEConvolveMatrix.cpp:
815         (WebCore::FEConvolveMatrix::platformApplySoftware):
816         * platform/graphics/filters/FEConvolveMatrix.h:
817         * platform/graphics/filters/FEGaussianBlur.cpp:
818         (WebCore::FEGaussianBlur::platformApply):
819         * platform/graphics/filters/FEGaussianBlur.h:
820         * platform/graphics/filters/FELighting.cpp:
821         (WebCore::FELighting::platformApplyGeneric):
822         * platform/graphics/filters/FELighting.h:
823         * platform/graphics/filters/FEMorphology.cpp:
824         (WebCore::FEMorphology::platformApply):
825         * platform/graphics/filters/FEMorphology.h:
826         * platform/graphics/filters/FETurbulence.cpp:
827         (WebCore::FETurbulence::platformApplySoftware):
828         * platform/graphics/filters/FETurbulence.h:
829         * platform/graphics/filters/arm/FELightingNEON.cpp:
830         * platform/graphics/filters/arm/FELightingNEON.h:
831         (WebCore::FELighting::platformApplyNeon):
832
833 2011-11-21  Balazs Kelemen  <kbalazs@webkit.org>
834
835         Enable ParallelJobs by default
836         https://bugs.webkit.org/show_bug.cgi?id=70032
837
838         Reviewed by Zoltan Herczeg.
839
840         Covered by existing tests.
841
842         According to measurements on Mac and Linux it is a
843         considerable speedup for SVG on multicore.
844
845         Remove the ENABLE(PARALLEL_JOBS) guard. Fix the Windows build
846         by qualifying ParallelJobs with the WTF namespace (otherwise
847         MSVC believes it belongs to WebCore which is likely a compiler bug).
848
849         * platform/graphics/filters/FEConvolveMatrix.cpp:
850         (WebCore::FEConvolveMatrix::setInteriorPixelsWorker):
851         (WebCore::FEConvolveMatrix::platformApplySoftware):
852         * platform/graphics/filters/FEConvolveMatrix.h:
853         * platform/graphics/filters/FEGaussianBlur.cpp:
854         (WebCore::FEGaussianBlur::platformApplyWorker):
855         (WebCore::FEGaussianBlur::platformApply):
856         * platform/graphics/filters/FEGaussianBlur.h:
857         * platform/graphics/filters/FELighting.cpp:
858         (WebCore::FELighting::platformApplyGenericWorker):
859         (WebCore::FELighting::platformApplyGeneric):
860         * platform/graphics/filters/FELighting.h:
861         * platform/graphics/filters/FEMorphology.cpp:
862         (WebCore::FEMorphology::platformApplyWorker):
863         (WebCore::FEMorphology::platformApply):
864         * platform/graphics/filters/FEMorphology.h:
865         * platform/graphics/filters/FETurbulence.cpp:
866         (WebCore::FETurbulence::fillRegionWorker):
867         (WebCore::FETurbulence::platformApplySoftware):
868         * platform/graphics/filters/FETurbulence.h:
869         * platform/graphics/filters/arm/FELightingNEON.cpp:
870         (WebCore::FELighting::platformApplyNeonWorker):
871         * platform/graphics/filters/arm/FELightingNEON.h:
872         (WebCore::FELighting::platformApplyNeon):
873
874 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
875
876         Web Inspector: [protocol] actual JSON messages do not conform to Inspector.json in CSS
877         https://bugs.webkit.org/show_bug.cgi?id=72733
878
879         Reviewed by Pavel Feldman.
880
881         * inspector/Inspector.json:
882         * inspector/InspectorCSSAgent.cpp:
883         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
884         * inspector/InspectorCSSAgent.h:
885         * inspector/InspectorStyleSheet.cpp:
886         (WebCore::InspectorStyle::buildArrayForComputedStyle):
887         * inspector/InspectorStyleSheet.h:
888         * inspector/front-end/CSSStyleModel.js:
889         (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync):
890         (WebInspector.CSSStyleDeclaration.parseComputedStylePayload):
891
892 2011-11-22  Pavel Feldman  <pfeldman@google.com>
893
894         Web Inspector: strip unused InspectorController methods.
895         https://bugs.webkit.org/show_bug.cgi?id=72886
896
897         This is a follow up to the https://bugs.webkit.org/show_bug.cgi?id=63009.
898         I am now able to remove following InspectorController methods:
899         ::startUserInitiatedProfiling,
900         ::isRecordingUserInitiatedProfile,
901         ::stopUserInitiatedProfiling,
902         ::showAndEnableDebugger,
903         ::debuggerEnabled,
904         ::disableDebugger,
905         ::startTimelineProfiler,
906         ::stopTimelineProfiler,
907         ::timelineProfilerEnabled,
908         ::showConsole.
909
910         Reviewed by Yury Semikhatsky.
911
912         * WebCore.exp.in:
913         * WebCore.order:
914         * inspector/Inspector.json:
915         * inspector/InspectorAgent.cpp:
916         (WebCore::InspectorAgent::setFrontend):
917         * inspector/InspectorAgent.h:
918         * inspector/InspectorController.cpp:
919         (WebCore::InspectorController::InspectorController):
920         (WebCore::InspectorController::connectFrontend):
921         * inspector/InspectorController.h:
922         * inspector/InspectorDebuggerAgent.cpp:
923         (WebCore::InspectorDebuggerAgent::enable):
924         (WebCore::InspectorDebuggerAgent::disable):
925         * inspector/InspectorDebuggerAgent.h:
926         * inspector/InspectorInstrumentation.cpp:
927         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
928         * inspector/InspectorProfilerAgent.cpp:
929         (WebCore::InspectorProfilerAgent::resetState):
930         (WebCore::InspectorProfilerAgent::clearFrontend):
931         (WebCore::InspectorProfilerAgent::restore):
932         (WebCore::InspectorProfilerAgent::start):
933         (WebCore::InspectorProfilerAgent::stop):
934         * inspector/InspectorProfilerAgent.h:
935         * inspector/InspectorTimelineAgent.cpp:
936         (WebCore::InspectorTimelineAgent::start):
937         (WebCore::InspectorTimelineAgent::stop):
938         * inspector/InspectorTimelineAgent.h:
939         * inspector/front-end/DebuggerModel.js:
940         (WebInspector.DebuggerModel.prototype.enableDebugger):
941         (WebInspector.DebuggerModel.prototype.disableDebugger):
942         * inspector/front-end/TimelineManager.js:
943         (WebInspector.TimelineManager.prototype.start):
944         (WebInspector.TimelineManager.prototype.stop):
945         (WebInspector.TimelineManager.prototype._started):
946         (WebInspector.TimelineManager.prototype._stopped):
947         * inspector/front-end/inspector.js:
948
949 2011-11-17  Nat Duca  <nduca@chromium.org>
950
951         [chromium] Route willDraw/setNeedsRedraw to CCInputHandler and fix double-drawing issues that result
952         https://bugs.webkit.org/show_bug.cgi?id=72688
953
954         This allows CCInputFilter and CCLayerTreeHostImpl to
955         perform requestAnimationFrame-style animations. The bulk of
956         work here is to make the scheduler recover gracefully when you
957         call setNeedsRedraw inside scheduledActionDraw.
958
959         Reviewed by James Robinson.
960
961         * WebCore.gypi:
962         * platform/graphics/chromium/cc/CCInputHandler.h:
963         (WebCore::CCInputHandlerTarget::CCInputHandlerTarget):
964         (WebCore::CCInputHandlerTarget::~CCInputHandlerTarget):
965         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
966         (WebCore::CCLayerTreeHostImpl::currentTimeMs):
967         (WebCore::CCLayerTreeHostImpl::setNeedsRedraw):
968         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
969         * platform/graphics/chromium/cc/CCScheduler.cpp:
970         (WebCore::CCScheduler::CCScheduler):
971         (WebCore::CCScheduler::setVisible):
972         (WebCore::CCScheduler::setNeedsRedraw):
973         (WebCore::CCScheduler::beginFrame):
974         (WebCore::CCScheduler::processScheduledActions):
975         * platform/graphics/chromium/cc/CCScheduler.h:
976         * platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
977         (WebCore::CCSchedulerStateMachine::CCSchedulerStateMachine):
978         (WebCore::CCSchedulerStateMachine::nextAction):
979         (WebCore::CCSchedulerStateMachine::updateState):
980         (WebCore::CCSchedulerStateMachine::setInsideVSync):
981         (WebCore::CCSchedulerStateMachine::setOutsideVSync):
982         * platform/graphics/chromium/cc/CCSchedulerStateMachine.h:
983         * platform/graphics/chromium/cc/CCScrollController.h: Removed.
984         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
985         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
986         (WebCore::CCThreadProxy::scheduledActionDrawAndSwap):
987
988 2011-11-22  Alexander Pavlov  <apavlov@chromium.org>
989
990         Web Inspector: Design of the autocomplete suggest
991         https://bugs.webkit.org/show_bug.cgi?id=72798
992
993         Reviewed by Pavel Feldman.
994
995         Implemented a combination of grayed text for the first/only completion and hid
996         the suggest box for a single suggestion (the grayed text is displayed instead.)
997         Drive-by fix for the "trailing spaces in the prompt" issue
998         (got regressed when the suggest box was introduced for the first time.)
999
1000         * inspector/front-end/ConsoleView.js:
1001         (WebInspector.ConsoleView): Fix the "trailing spaces" issue
1002         * inspector/front-end/TextPrompt.js:
1003         (WebInspector.TextPrompt):
1004         (WebInspector.TextPrompt.prototype.renderAsBlock): Fix the "trailing spaces" issue
1005         (WebInspector.TextPrompt.prototype._attachInternal):
1006         (WebInspector.TextPrompt.prototype.acceptAutoComplete):
1007         (WebInspector.TextPrompt.prototype._completionsReady):
1008         (WebInspector.TextPrompt.prototype.applySuggestion):
1009         (WebInspector.TextPrompt.prototype.acceptSuggestion):
1010         (WebInspector.TextPrompt.SuggestBox.prototype._completionsReady):
1011
1012 2011-11-21  David Barr  <davidbarr@chromium.org>
1013
1014         REGRESSION(r98542): Chromium: CSS text is rendered on page
1015         https://bugs.webkit.org/show_bug.cgi?id=71703
1016
1017         Reviewed by Dimitri Glazkov.
1018
1019         Matched UA declarations uncacheable when using simpleDefaultStyleSheet.
1020
1021         Test: fast/css/style-tag-display-none.html
1022
1023         * css/CSSStyleSelector.cpp:
1024         (WebCore::CSSStyleSelector::matchUARules):
1025
1026 2011-11-21  Rob Brackett  <rob@robbrackett.com>
1027         
1028         If an event listener is a function, it should be called and not checked for handleEvent.
1029         This also covers callbacks, which follow the same spec but are implemented separately.
1030         https://bugs.webkit.org/show_bug.cgi?id=62518
1031
1032         Reviewed by Sam Weinig.
1033
1034         Tests: fast/events/dispatch-to-function-with-handle-event.html
1035                fast/js/callback-function-with-handle-event.html
1036
1037         * bindings/js/JSCallbackData.cpp:
1038         (WebCore::JSCallbackData::invokeCallback):
1039         * bindings/js/JSEventListener.cpp:
1040         (WebCore::JSEventListener::handleEvent):
1041
1042 2011-11-21  Rakesh KN  <rakesh.kn@motorola.com>
1043
1044         Need support for dirname attribute
1045         https://bugs.webkit.org/show_bug.cgi?id=65542
1046
1047         Reviewed by Eric Seidel.
1048
1049         Implemented 'dirname' form attribute.
1050
1051         Tests: fast/forms/form-dirname-attribute.html
1052                fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html
1053                fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor.html
1054                fast/forms/submit-form-with-dirname-attribute.html
1055
1056         * html/HTMLAttributeNames.in:
1057         Added "dirname" attribute.
1058         * html/HTMLInputElement.idl:
1059         Add "dirName" property to HTMLInputElement interface.
1060         * html/HTMLTextAreaElement.cpp:
1061         (WebCore::HTMLTextAreaElement::appendFormData):
1062         Append dirname form data.
1063         * html/HTMLTextAreaElement.idl:
1064         Add "dirName" property to HTMLTextAreaElement interface.
1065         * html/HTMLTextFormControlElement.cpp:
1066         (WebCore::parentHTMLElement):
1067         Helper function which returns only HTML parent element.
1068         (WebCore::HTMLTextFormControlElement::directionForFormData):
1069         Helper function for finding directionality of the Element.
1070         * html/HTMLTextFormControlElement.h:
1071         Helper function for finding directionality of the Element.
1072         * html/TextFieldInputType.cpp:
1073         (WebCore::TextFieldInputType::appendFormData):
1074         Append dirname form data.
1075         * html/TextFieldInputType.h:
1076         Append dirname form data.
1077
1078 2011-11-21  Joshua Bell  <jsbell@chromium.org>
1079
1080         IndexedDB: Close database connections, abort transactions, and terminate requests on stop()
1081         https://bugs.webkit.org/show_bug.cgi?id=72066
1082
1083         Reviewed by Tony Chang.
1084
1085         No new tests; addresses race conditions on document navigate/script context stop.
1086
1087         * dom/DocumentEventQueue.cpp:
1088         (WebCore::DocumentEventQueue::enqueueEvent):
1089         * dom/DocumentEventQueue.h:
1090         * dom/EventQueue.h:
1091         * storage/IDBDatabase.cpp:
1092         (WebCore::IDBDatabase::IDBDatabase):
1093         (WebCore::IDBDatabase::~IDBDatabase):
1094         (WebCore::IDBDatabase::transaction):
1095         (WebCore::IDBDatabase::close):
1096         (WebCore::IDBDatabase::onVersionChange):
1097         (WebCore::IDBDatabase::enqueueEvent):
1098         (WebCore::IDBDatabase::stop):
1099         * storage/IDBDatabase.h:
1100         * storage/IDBFactory.cpp:
1101         (WebCore::IDBFactory::IDBFactory):
1102         (WebCore::IDBFactory::getDatabaseNames):
1103         (WebCore::IDBFactory::open):
1104         (WebCore::IDBFactory::deleteDatabase):
1105         * storage/IDBFactory.h:
1106         * storage/IDBObjectStore.cpp:
1107         (WebCore::IDBObjectStore::IDBObjectStore):
1108         (WebCore::IDBObjectStore::name):
1109         (WebCore::IDBObjectStore::keyPath):
1110         (WebCore::IDBObjectStore::indexNames):
1111         (WebCore::IDBObjectStore::get):
1112         (WebCore::IDBObjectStore::add):
1113         (WebCore::IDBObjectStore::put):
1114         (WebCore::IDBObjectStore::deleteFunction):
1115         (WebCore::IDBObjectStore::clear):
1116         (WebCore::IDBObjectStore::createIndex):
1117         (WebCore::IDBObjectStore::index):
1118         (WebCore::IDBObjectStore::deleteIndex):
1119         (WebCore::IDBObjectStore::openCursor):
1120         * storage/IDBObjectStore.h:
1121         * storage/IDBRequest.cpp:
1122         (WebCore::IDBRequest::IDBRequest):
1123         (WebCore::IDBRequest::abort):
1124         (WebCore::IDBRequest::onSuccess):
1125         (WebCore::IDBRequest::onSuccessWithContinuation):
1126         (WebCore::IDBRequest::stop):
1127         (WebCore::IDBRequest::dispatchEvent):
1128         (WebCore::IDBRequest::enqueueEvent):
1129         * storage/IDBRequest.h:
1130         * storage/IDBTransaction.cpp:
1131         (WebCore::IDBTransaction::IDBTransaction):
1132         (WebCore::IDBTransaction::abort):
1133         (WebCore::IDBTransaction::onAbort):
1134         (WebCore::IDBTransaction::onComplete):
1135         (WebCore::IDBTransaction::dispatchEvent):
1136         (WebCore::IDBTransaction::stop):
1137         (WebCore::IDBTransaction::enqueueEvent):
1138         * storage/IDBTransaction.h:
1139         * storage/IDBTransactionBackendImpl.cpp:
1140         (WebCore::IDBTransactionBackendImpl::abort):
1141         (WebCore::IDBTransactionBackendImpl::commit):
1142         * workers/WorkerEventQueue.cpp:
1143         (WebCore::WorkerEventQueue::enqueueEvent):
1144         * workers/WorkerEventQueue.h:
1145
1146 2011-11-21  James Robinson  <jamesr@chromium.org>
1147
1148         [chromium] Avoid pushing dirty tiles to the impl layer
1149         https://bugs.webkit.org/show_bug.cgi?id=72765
1150
1151         Reviewed by Kenneth Russell.
1152
1153         If a tile has invalidations at pushPropertiesTo, then we know the contents of that tile are no longer valid even
1154         if they still have valid backing textures. This avoids pushing that texture to the impl side so it is not
1155         displayed to the user. The texture is still kept around (managed by the TextureManager) so that when we later do
1156         decide to update the contents for that tile we can use partial results if they are still valid.
1157
1158         Covered by new unit test in TiledLayerChromiumTest.cpp
1159
1160         * platform/graphics/chromium/TiledLayerChromium.cpp:
1161         (WebCore::UpdatableTile::isDirty):
1162         (WebCore::TiledLayerChromium::updateTileSizeAndTilingOption):
1163         (WebCore::TiledLayerChromium::setTileSize):
1164         (WebCore::TiledLayerChromium::setLayerTreeHost):
1165         (WebCore::TiledLayerChromium::createTiler):
1166         (WebCore::TiledLayerChromium::updateCompositorResources):
1167         (WebCore::TiledLayerChromium::pushPropertiesTo):
1168         * platform/graphics/chromium/TiledLayerChromium.h:
1169         (WebCore::TiledLayerChromium::setTextureFormat):
1170         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
1171         (WebCore::CCTiledLayerImpl::hasTileAt):
1172         (WebCore::CCTiledLayerImpl::drawTiles):
1173         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
1174
1175 2011-11-21  Simon Hausmann  <simon.hausmann@nokia.com>
1176
1177         [Qt] Speed up debug builds.
1178         https://bugs.webkit.org/show_bug.cgi?id=72882
1179
1180         Reviewed by Tor Arne Vestbø.
1181
1182         * Target.pri: Make BUILDING_WebCore available earlier, so it can be
1183         used by the build system.
1184
1185 2011-11-17  Robert Hogan  <robert@webkit.org>
1186
1187         CSS 2.1 failure: empty-inline-003.htm fails
1188         https://bugs.webkit.org/show_bug.cgi?id=72638
1189
1190         Reviewed by Ryosuke Niwa.
1191
1192         Empty inline elements need to share their inline height with siblings.
1193
1194         * rendering/RenderBlockLineLayout.cpp:
1195         (WebCore::inlineFlowRequiresLineBox): In strict mode, add a LineBox for an empty element if it is
1196         going to affect the line-height.
1197         (WebCore::requiresLineBox): Pass LineInfo to inlineFlowRequiresLineBox
1198         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Pass LineInfo to inlineFlowRequiresLineBox
1199
1200 2011-11-21  Adrienne Walker  <enne@google.com>
1201
1202         [chromium] Remove incorrect render surface layer list asserts from compositor
1203         https://bugs.webkit.org/show_bug.cgi?id=72744
1204
1205         Reviewed by James Robinson.
1206
1207         These asserts are incorrect, because it's valid for the default render
1208         surface to be created but to have a root layer that doesn't draw. It
1209         won't get added to the single render surface and it'll have an empty
1210         layer list.
1211
1212         Test: compositor_unittests
1213
1214         * platform/graphics/chromium/LayerRendererChromium.cpp:
1215         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
1216         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1217         (WebCore::CCLayerTreeHost::paintLayerContents):
1218         (WebCore::CCLayerTreeHost::updateCompositorResources):
1219
1220 2011-11-21  Andreas Kling  <kling@webkit.org>
1221
1222         StyleSheet: Move completeURL() to CSSStyleSheet.
1223         <http://webkit.org/b/72888>
1224
1225         Reviewed by Antti Koivisto.
1226
1227         Since completeURL() is only used on CSSStyleSheets, move it there (and make
1228         it non-virtual) to make StyleSheet a little leaner.
1229
1230         * css/CSSStyleSheet.cpp:
1231         (WebCore::CSSStyleSheet::completeURL):
1232         * css/CSSStyleSheet.h:
1233         * css/StyleSheet.cpp:
1234         * css/StyleSheet.h:
1235
1236 2011-11-21  Robin Dunn  <robin@alldunn.com>
1237
1238         [wx] Fix image translation calculations.
1239         https://bugs.webkit.org/show_bug.cgi?id=72892
1240
1241         Reviewed by Kevin Ollivier.
1242
1243         * platform/graphics/wx/ImageWx.cpp:
1244         (WebCore::Image::drawPattern):
1245
1246 2011-11-21  Scott Graham  <scottmg@chromium.org>
1247
1248         copyright comment style to C from C++ for gamepad module
1249         https://bugs.webkit.org/show_bug.cgi?id=72894
1250
1251         Reviewed by Sam Weinig.
1252
1253         Just changes comment format, no code/test changes.
1254
1255         * Modules/gamepad/Gamepad.cpp:
1256         * Modules/gamepad/Gamepad.h:
1257         * Modules/gamepad/Gamepad.idl:
1258         * Modules/gamepad/GamepadList.cpp:
1259         * Modules/gamepad/GamepadList.h:
1260         * Modules/gamepad/GamepadList.idl:
1261
1262 2011-11-21  Andreas Kling  <kling@webkit.org>
1263
1264         JSC/CSSOM: Merge root() for style declaration objects.
1265         <http://webkit.org/b/72881>
1266
1267         Reviewed by Antti Koivisto.
1268
1269         Fold root(CSSMutableStyleDeclaration*) into root(CSSStyleDeclaration*),
1270         removing a duplicated chunk and making it a little easier on the eyes.
1271
1272         * bindings/js/JSDOMBinding.h:
1273         (WebCore::root):
1274
1275 2011-11-21  Igor Oliveira  <igor.oliveira@openbossa.org>
1276
1277         [WK2][Qt] Move Accelerated Composite animations to UIProcess
1278         https://bugs.webkit.org/show_bug.cgi?id=72753
1279         
1280         Add helper method to synchronize animations in TextureMapper.
1281
1282         Reviewed by Noam Rosenthal.
1283
1284         * platform/graphics/texmap/TextureMapperNode.cpp:
1285         (WebCore::TextureMapperNode::syncAnimationsRecursively):
1286         * platform/graphics/texmap/TextureMapperNode.h:
1287
1288 2011-11-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1289
1290         Unreviewed, rolling out r100913.
1291         http://trac.webkit.org/changeset/100913
1292         https://bugs.webkit.org/show_bug.cgi?id=72885
1293
1294         "Break Windows build" (Requested by kbalazs on #webkit).
1295
1296         * platform/graphics/filters/FEConvolveMatrix.cpp:
1297         (WebCore::FEConvolveMatrix::platformApplySoftware):
1298         * platform/graphics/filters/FEConvolveMatrix.h:
1299         * platform/graphics/filters/FEGaussianBlur.cpp:
1300         (WebCore::FEGaussianBlur::platformApply):
1301         * platform/graphics/filters/FEGaussianBlur.h:
1302         * platform/graphics/filters/FELighting.cpp:
1303         (WebCore::FELighting::platformApplyGeneric):
1304         * platform/graphics/filters/FELighting.h:
1305         * platform/graphics/filters/FEMorphology.cpp:
1306         (WebCore::FEMorphology::platformApply):
1307         * platform/graphics/filters/FEMorphology.h:
1308         * platform/graphics/filters/FETurbulence.cpp:
1309         (WebCore::FETurbulence::platformApplySoftware):
1310         * platform/graphics/filters/FETurbulence.h:
1311         * platform/graphics/filters/arm/FELightingNEON.cpp:
1312         * platform/graphics/filters/arm/FELightingNEON.h:
1313         (WebCore::FELighting::platformApplyNeon):
1314
1315 2011-11-21  Balazs Kelemen  <kbalazs@webkit.org>
1316
1317         Enable ParallelJobs by default
1318         https://bugs.webkit.org/show_bug.cgi?id=70032
1319
1320         Reviewed by Zoltan Herczeg.
1321
1322         Covered by existing tests.
1323
1324         According to measurements on Mac and Linux it is a
1325         considerable speedup for SVG on multicore.
1326
1327         Remove the ENABLE(PARALLEL_JOBS) guard. Fix the Windows build
1328         by qualifying ParallelJobs with the WTF namespace (otherwise
1329         MSVC believes it belongs to WebCore which is likely a compiler bug).
1330
1331         * platform/graphics/filters/FEConvolveMatrix.cpp:
1332         (WebCore::FEConvolveMatrix::setInteriorPixelsWorker):
1333         (WebCore::FEConvolveMatrix::platformApplySoftware):
1334         * platform/graphics/filters/FEConvolveMatrix.h:
1335         * platform/graphics/filters/FEGaussianBlur.cpp:
1336         (WebCore::FEGaussianBlur::platformApplyWorker):
1337         (WebCore::FEGaussianBlur::platformApply):
1338         * platform/graphics/filters/FEGaussianBlur.h:
1339         * platform/graphics/filters/FELighting.cpp:
1340         (WebCore::FELighting::platformApplyGenericWorker):
1341         (WebCore::FELighting::platformApplyGeneric):
1342         * platform/graphics/filters/FELighting.h:
1343         * platform/graphics/filters/FEMorphology.cpp:
1344         (WebCore::FEMorphology::platformApplyWorker):
1345         (WebCore::FEMorphology::platformApply):
1346         * platform/graphics/filters/FEMorphology.h:
1347         * platform/graphics/filters/FETurbulence.cpp:
1348         (WebCore::FETurbulence::fillRegionWorker):
1349         (WebCore::FETurbulence::platformApplySoftware):
1350         * platform/graphics/filters/FETurbulence.h:
1351         * platform/graphics/filters/arm/FELightingNEON.cpp:
1352         (WebCore::FELighting::platformApplyNeonWorker):
1353         * platform/graphics/filters/arm/FELightingNEON.h:
1354         (WebCore::FELighting::platformApplyNeon):
1355
1356 2011-11-21  Antti Koivisto  <antti@apple.com>
1357
1358         Remove CSSStyleSelector::m_additionalAttributeStyleDecls field
1359         https://bugs.webkit.org/show_bug.cgi?id=72876
1360
1361         Reviewed by Andreas Kling.
1362
1363         There is no reason for this temporary to be a field.
1364
1365         * css/CSSStyleSelector.cpp:
1366         (WebCore::CSSStyleSelector::matchAllRules):
1367         * css/CSSStyleSelector.h:
1368
1369 2011-11-21  Pavel Feldman  <pfeldman@google.com>
1370
1371         Web Inspector: [REGRESSION] Assertion failed in ScriptsPanel.js
1372         https://bugs.webkit.org/show_bug.cgi?id=72877
1373
1374         Reviewed by Yury Semikhatsky.
1375
1376         * inspector/front-end/ScriptsPanel.js:
1377
1378 2011-11-18  Pavel Feldman  <pfeldman@google.com>
1379
1380         Web Inspector: get rid of Panel::reset in the front-end.
1381         https://bugs.webkit.org/show_bug.cgi?id=72587
1382
1383         I'm slowly getting rid of the Inspector protocol domain. It currently
1384         contains methods that did not find their home in the meaningful domains.
1385         This change removes reset protocol method.
1386
1387         Reviewed by Yury Semikhatsky.
1388
1389         * inspector/Inspector.json:
1390         * inspector/InspectorAgent.cpp:
1391         (WebCore::InspectorAgent::didCommitLoad):
1392         * inspector/InspectorDebuggerAgent.cpp:
1393         (WebCore::InspectorDebuggerAgent::didClearMainFrameWindowObject):
1394         * inspector/InspectorDebuggerAgent.h:
1395         * inspector/InspectorInstrumentation.cpp:
1396         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
1397         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1398         * inspector/front-end/ApplicationCacheModel.js:
1399         (WebInspector.ApplicationCacheModel.prototype._frameNavigated):
1400         (WebInspector.ApplicationCacheModel.prototype._frameDetached):
1401         * inspector/front-end/DebuggerModel.js:
1402         (WebInspector.DebuggerModel.prototype._globalObjectCleared):
1403         (WebInspector.DebuggerDispatcher.prototype.globalObjectCleared):
1404         * inspector/front-end/DebuggerPresentationModel.js:
1405         (WebInspector.DebuggerPresentationModel):
1406         (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
1407         * inspector/front-end/ExtensionServer.js:
1408         (WebInspector.ExtensionServer):
1409         (WebInspector.ExtensionServer.prototype._mainFrameNavigated):
1410         * inspector/front-end/JavaScriptContextManager.js:
1411         (WebInspector.JavaScriptContextManager.prototype._frameDetached):
1412         (WebInspector.FrameEvaluationContext.prototype.get frameId):
1413         * inspector/front-end/NetworkLog.js:
1414         (WebInspector.NetworkLog):
1415         (WebInspector.NetworkLog.prototype._mainFrameNavigated):
1416         * inspector/front-end/NetworkPanel.js:
1417         (WebInspector.NetworkLogView):
1418         (WebInspector.NetworkLogView.prototype._mainFrameNavigated):
1419         * inspector/front-end/ResourceTreeModel.js:
1420         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
1421         (WebInspector.ResourceTreeModel.prototype._frameDetached):
1422         (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
1423         * inspector/front-end/ResourcesPanel.js:
1424         (WebInspector.ResourcesPanel.prototype._reset):
1425         (WebInspector.ResourcesPanel.prototype._frameDetached):
1426         * inspector/front-end/ScriptsPanel.js:
1427         (WebInspector.ScriptsPanel.prototype._debuggerWasDisabled):
1428         (WebInspector.ScriptsPanel.prototype._reset):
1429         * inspector/front-end/WorkerManager.js:
1430         (WebInspector.WorkerManager):
1431         (WebInspector.WorkerManager.prototype._mainFrameNavigated):
1432         * inspector/front-end/inspector.js:
1433
1434 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
1435
1436         Web Inspector: introduce InspectorFrontendAPI for actions initiated from the application menu.
1437         https://bugs.webkit.org/show_bug.cgi?id=62985
1438
1439         Both: inspector protocol and WebCore/InspectorController have a number of unnecessary
1440         methods for plumbing the menu action handlers through the WebKit and WebCore.
1441         I intend to remove this menu support from the protocol and WebCore/InspectorController API.
1442         I am starting with exposing the new front-end API in the WebCore and using it in the WebKit/mac port.
1443         WebKit/win and WebKit2 to follow.
1444
1445         Reviewed by Yury Semikhatsky.
1446
1447         * WebCore.exp.in:
1448         * WebCore.gypi:
1449         * WebCore.vcproj/WebCore.vcproj:
1450         * inspector/InspectorFrontendClientLocal.cpp:
1451         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
1452         (WebCore::InspectorFrontendClientLocal::frontendLoaded):
1453         (WebCore::InspectorFrontendClientLocal::setAttachedWindow):
1454         (WebCore::InspectorFrontendClientLocal::isDebuggingEnabled):
1455         (WebCore::InspectorFrontendClientLocal::setDebuggingEnabled):
1456         (WebCore::InspectorFrontendClientLocal::isJavaScriptProfilingEnabled):
1457         (WebCore::InspectorFrontendClientLocal::setJavaScriptProfilingEnabled):
1458         (WebCore::InspectorFrontendClientLocal::isTimelineProfilingEnabled):
1459         (WebCore::InspectorFrontendClientLocal::setTimelineProfilingEnabled):
1460         (WebCore::InspectorFrontendClientLocal::isProfilingJavaScript):
1461         (WebCore::InspectorFrontendClientLocal::startProfilingJavaScript):
1462         (WebCore::InspectorFrontendClientLocal::stopProfilingJavaScript):
1463         (WebCore::InspectorFrontendClientLocal::evaluateAsBoolean):
1464         (WebCore::InspectorFrontendClientLocal::evaluateOnLoad):
1465         * inspector/InspectorFrontendClientLocal.h:
1466         * inspector/front-end/InspectorFrontendAPI.js: Added.
1467         (InspectorFrontendAPI.isDebuggingEnabled):
1468         (InspectorFrontendAPI.setDebuggingEnabled):
1469         (InspectorFrontendAPI.isJavaScriptProfilingEnabled):
1470         (InspectorFrontendAPI.setJavaScriptProfilingEnabled):
1471         (InspectorFrontendAPI.isTimelineProfilingEnabled):
1472         (InspectorFrontendAPI.setTimelineProfilingEnabled):
1473         (InspectorFrontendAPI.isProfilingJavaScript):
1474         (InspectorFrontendAPI.startProfilingJavaScript):
1475         (InspectorFrontendAPI.stopProfilingJavaScript):
1476         (InspectorFrontendAPI.setAttachedWindow):
1477         * inspector/front-end/ProfileView.js:
1478         (WebInspector.CPUProfileType):
1479         (WebInspector.CPUProfileType.prototype.isRecordingProfile):
1480         (WebInspector.CPUProfileType.prototype.startRecordingProfile):
1481         (WebInspector.CPUProfileType.prototype.stopRecordingProfile):
1482         * inspector/front-end/ProfilesPanel.js:
1483         (WebInspector.ProfilesPanel.prototype.get profilerEnabled):
1484         (WebInspector.ProfilesPanel.prototype.enableProfiler):
1485         (WebInspector.ProfilesPanel.prototype.disableProfiler):
1486         * inspector/front-end/ScriptsPanel.js:
1487         (WebInspector.ScriptsPanel):
1488         (WebInspector.ScriptsPanel.prototype.get debuggingEnabled):
1489         (WebInspector.ScriptsPanel.prototype.enableDebugging):
1490         (WebInspector.ScriptsPanel.prototype.disableDebugging):
1491         (WebInspector.ScriptsPanel.prototype.toggleDebugging):
1492         * inspector/front-end/TimelinePanel.js:
1493         (WebInspector.TimelinePanel.prototype._memoryOverviewItemSelected):
1494         (WebInspector.TimelinePanel.prototype.setTimelineProfilingEnabled):
1495         (WebInspector.TimelinePanel.prototype.get timelineProfilingEnabled):
1496         * inspector/front-end/WebKit.qrc:
1497         * inspector/front-end/inspector.html:
1498         * inspector/front-end/inspector.js:
1499
1500 2011-11-18  Alexander Pavlov  <apavlov@chromium.org>
1501
1502         Web Inspector: [Protocol] Retain a single universal method for loading a required combination of element styles
1503         https://bugs.webkit.org/show_bug.cgi?id=72701
1504
1505         Reviewed by Pavel Feldman.
1506
1507         * inspector/Inspector.json:
1508         * inspector/InspectorCSSAgent.cpp:
1509         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
1510         (WebCore::InspectorCSSAgent::getInlineStylesForNode):
1511         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
1512         * inspector/InspectorCSSAgent.h:
1513         * inspector/front-end/AuditRules.js:
1514         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
1515         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles.inlineCallback):
1516         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles.matchedCallback):
1517         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
1518         * inspector/front-end/CSSStyleModel.js:
1519         (WebInspector.CSSStyleModel.prototype.getMatchedStylesAsync):
1520         (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync):
1521         (WebInspector.CSSStyleModel.prototype.getInlineStylesAsync):
1522         * inspector/front-end/MetricsSidebarPane.js:
1523         (WebInspector.MetricsSidebarPane.prototype._innerUpdate):
1524         * inspector/front-end/StylesSidebarPane.js:
1525         (WebInspector.StylesSidebarPane.prototype.get forcedPseudoClasses):
1526         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate):
1527         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate.inlineCallback):
1528         (WebInspector.StylesSidebarPane.prototype._executeRebuildUpdate.computedCallback):
1529         (WebInspector.StylesSidebarPane.prototype._innerUpdate):
1530
1531 2011-11-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1532
1533         Unreviewed, rolling out r100856.
1534         http://trac.webkit.org/changeset/100856
1535         https://bugs.webkit.org/show_bug.cgi?id=72867
1536
1537         New test fast/css/style-tag-display-none.html fails on
1538         Chromium (Requested by steveblock on #webkit).
1539
1540         * css/CSSStyleSelector.cpp:
1541         (WebCore::CSSStyleSelector::matchUARules):
1542
1543 2011-11-21  Jochen Eisinger  <jochen@chromium.org>
1544
1545         Implement Meta referrer
1546         https://bugs.webkit.org/show_bug.cgi?id=72674
1547
1548         Reviewed by Adam Barth.
1549
1550         http://wiki.whatwg.org/wiki/Meta_referrer
1551
1552         Tests: http/tests/security/referrer-policy-always.html
1553                http/tests/security/referrer-policy-default.html
1554                http/tests/security/referrer-policy-https-always.html
1555                http/tests/security/referrer-policy-https-default.html
1556                http/tests/security/referrer-policy-https-never.html
1557                http/tests/security/referrer-policy-https-origin.html
1558                http/tests/security/referrer-policy-never.html
1559                http/tests/security/referrer-policy-origin.html
1560                http/tests/security/referrer-policy-redirect.html
1561                http/tests/security/referrer-policy-rel-noreferrer.html
1562
1563         * WebCore.exp.in: updated
1564         * dom/Document.cpp:
1565         (WebCore::Document::Document):
1566         (WebCore::Document::processReferrerPolicy):
1567         * dom/Document.h:
1568         (WebCore::Document::referrerPolicy):
1569         * html/HTMLAnchorElement.cpp:
1570         (WebCore::HTMLAnchorElement::handleClick):
1571         * html/HTMLMetaElement.cpp:
1572         (WebCore::HTMLMetaElement::process):
1573         * loader/FrameLoader.cpp:
1574         (WebCore::FrameLoader::loadFrameRequest):
1575         (WebCore::FrameLoader::loadResourceSynchronously):
1576         * loader/PingLoader.cpp:
1577         (WebCore::PingLoader::loadImage):
1578         (WebCore::PingLoader::sendPing):
1579         (WebCore::PingLoader::reportContentSecurityPolicyViolation):
1580         * loader/SubframeLoader.cpp:
1581         (WebCore::SubframeLoader::loadSubframe):
1582         * loader/SubresourceLoader.cpp:
1583         (WebCore::SubresourceLoader::create):
1584         * page/SecurityPolicy.cpp:
1585         (WebCore::SecurityPolicy::generateReferrerHeader):
1586         * page/SecurityPolicy.h:
1587
1588 2011-11-21  Vsevolod Vlasov  <vsevik@chromium.org>
1589
1590         Web Inspector: ApplicationCache view should show navigator.onLine indicator.
1591         https://bugs.webkit.org/show_bug.cgi?id=72618
1592
1593         Reviewed by Pavel Feldman.
1594
1595         * inspector/InspectorApplicationCacheAgent.cpp:
1596         (WebCore::InspectorApplicationCacheAgent::enable):
1597         * inspector/front-end/ApplicationCacheItemsView.js:
1598         (WebInspector.ApplicationCacheItemsView):
1599         (WebInspector.ApplicationCacheItemsView.prototype.wasShown):
1600         * inspector/front-end/ApplicationCacheModel.js:
1601         (WebInspector.ApplicationCacheModel):
1602         (WebInspector.ApplicationCacheModel.prototype.get onLine):
1603         (WebInspector.ApplicationCacheModel.prototype._networkStateUpdated):
1604         * inspector/front-end/ResourcesPanel.js:
1605         (WebInspector.ResourcesPanel.prototype.showApplicationCache):
1606         (WebInspector.ResourcesPanel.prototype._applicationCacheNetworkStateChanged):
1607
1608 2011-11-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1609
1610         Unreviewed. Fix make distcheck build.
1611
1612         * GNUmakefile.list.am:
1613
1614 2011-11-21  Dominic Mazzoni  <dmazzoni@google.com>
1615
1616         Accessibility: Multiselect list boxes need to report the active option in addition to which items are selected.
1617         https://bugs.webkit.org/show_bug.cgi?id=72479
1618
1619         Reviewed by Chris Fleizach.
1620
1621         Test: accessibility/multiselect-list-reports-active-option.html
1622
1623         * accessibility/AccessibilityListBoxOption.cpp:
1624         (WebCore::AccessibilityListBoxOption::isSelectedOptionActive):
1625         * accessibility/AccessibilityListBoxOption.h:
1626         * accessibility/AccessibilityObject.h:
1627         (WebCore::AccessibilityObject::isSelectedOptionActive):
1628
1629 2011-11-21  Yuta Kitamura  <yutak@chromium.org>
1630
1631         [Qt] WebSocket close tests are failing
1632         https://bugs.webkit.org/show_bug.cgi?id=72865
1633
1634         Reviewed by Simon Hausmann.
1635
1636         * platform/network/qt/SocketStreamHandleQt.cpp:
1637         (WebCore::SocketStreamHandlePrivate::close):
1638         Emit didCloseSocketStream() callback even before the connection is established.
1639         Call m_socket->abort() to prevent "connected" signal from firing.
1640
1641 2011-11-21  Shinya Kawanaka  <shinyak@google.com>
1642
1643         Refactoring: SpellChecker::requestCheckingFor should take Range instead of Node.
1644         https://bugs.webkit.org/show_bug.cgi?id=72847
1645
1646         Reviewed by Hajime Morita.
1647
1648         Covered by existing test.
1649
1650         * editing/Editor.cpp:
1651         (WebCore::Editor::replaceSelectionWithFragment):
1652           Passes Range to requestCheckingFor instead of Node.
1653         * editing/SpellChecker.cpp:
1654           Changed argument type from Node to Range.
1655           The corresponding changes are also done in dependent methods.
1656         (WebCore::SpellChecker::initRequest):
1657         (WebCore::SpellChecker::clearRequest):
1658         (WebCore::SpellChecker::canCheckAsynchronously):
1659         (WebCore::SpellChecker::isBusy):
1660         (WebCore::SpellChecker::isValid):
1661         (WebCore::SpellChecker::isCheckable):
1662         (WebCore::SpellChecker::requestCheckingFor):
1663           Changed argument type from Node to Range.
1664         (WebCore::SpellChecker::doRequestCheckingFor):
1665         (WebCore::SpellChecker::didCheck):
1666         * editing/SpellChecker.h:
1667
1668 2011-11-20  Kenichi Ishibashi  <bashi@chromium.org>
1669
1670         [Chromium] Remove old getFontFamilyForCharacters() and familyForChars() APIs.
1671         https://bugs.webkit.org/show_bug.cgi?id=72844
1672
1673         Respects bold and italic properties that is given by fontconfig.
1674
1675         Reviewed by Darin Fisher.
1676
1677         * platform/graphics/chromium/FontCacheLinux.cpp:
1678         (WebCore::FontCache::getFontDataForCharacters): Removed #if and old logic.
1679
1680 2011-11-20  Noel Gordon  <noel.gordon@gmail.com>
1681
1682         [chromium] Remove qt/QtMobileWebStyle from the gyp projects
1683         https://bugs.webkit.org/show_bug.cgi?id=72843
1684
1685         Reviewed by Antonio Gomes.
1686
1687         platform/qt/QtMobileWebStyle.{h,cpp} were removed in r100123
1688
1689         * WebCore.gypi: remove platform/qt/QtMobileWebStyle.{h,cpp}
1690
1691 2011-11-20  Kentaro Hara  <haraken@chromium.org>
1692
1693         Unreviewed. Rebaselined run-bindings-tests results.
1694
1695         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp:
1696         (WebDOMFloat64Array::WebDOMFloat64Array):
1697         (WebDOMFloat64Array::impl):
1698         (toWebCore):
1699         (toWebKit):
1700         * bindings/scripts/test/CPP/WebDOMFloat64Array.h:
1701
1702 2011-11-20  Adam Barth  <abarth@webkit.org>
1703
1704         REGRESSION(r100691): Safari error pages and Growl notifications fail to load stylesheets
1705         https://bugs.webkit.org/show_bug.cgi?id=72836
1706
1707         Reviewed by Sam Weinig.
1708
1709         This patch removes a (minor) security mitigation.  Previously, we tried
1710         sequester "directory listings" into unique origins to make it more
1711         difficult for an attacker to crawl the user's local file system.
1712         Unfortunately, this mitigation doesn't really buy us much security
1713         because if the attacker has access to local files, we've probably lost
1714         anyway.
1715
1716         The larger problem, however, is that this condition is overly
1717         complicated and has broken in sublte ways several times in its
1718         (relatively short) lifetime.  In the cases reported in this bug, we see
1719         that this check affects error pages in Safari and Growl notifications,
1720         even those have nothing to do with directory listings.
1721
1722         If we have our heart set on this directory listing mitigation, we'll
1723         need a more robust way of triggering the behavior than examining URLs
1724         and guess whether they contain directory listings.  For example, if we
1725         implement Allow-From or Access-Control-Deny-Origin, then the embedder
1726         can supply those policies along with the directory listings.  Those
1727         seem like much better solutions than the in-engine hack this patch
1728         removes.
1729
1730         * page/SecurityOrigin.cpp:
1731         (WebCore::shouldTreatAsUniqueOrigin):
1732
1733 2011-10-17  Antonio Gomes  <agomes@rim.com>
1734
1735         Pass a Frame* parameter in EditorClient::respondToChangedSelection
1736         https://bugs.webkit.org/show_bug.cgi?id=70248
1737
1738         Reviewed by Ryosuke Niwa.
1739
1740         Most of the port specific implementations of EditorClient::respondToChangedSelection
1741         (like EditorClient{Qt,Gtk,etc}) are wrongly relying on FocusController::focusedOrMainFrame
1742         method to get the Frame where the selection is happening on.
1743         It is not right, since a selection can be easily triggered in an inner
1744         frame that is not focused.
1745
1746         No new tests since it is a hard thing to test without
1747         to hook into editor client in layout tests. We could
1748         change the "Dumped Delegate" messages, but it would
1749         require a rebasile of +1200 for a minor change.
1750
1751         * editing/Editor.cpp: Pass the Frame on where the selection is changing to the client.
1752         (WebCore::Editor::respondToChangedSelection): Ditto.
1753         (WebCore::Editor::changeSelectionAfterCommand): Ditto.
1754         (WebCore::EmptyEditorClient::respondToChangedSelection):
1755         * page/EditorClient.h:  Pass Frame* to indicate where the selection is happening.
1756         * loader/EmptyClients.h: Changed signature as per base class change.
1757
1758 2011-11-17  Mark Rowe  <mrowe@apple.com>
1759
1760         <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
1761         switch away from the deprecated APIs.
1762
1763         Reviewed by Sam Weinig.
1764
1765         * platform/mac/WebCoreNSStringExtras.mm:
1766         * platform/network/cf/SocketStreamHandleCFNet.cpp:
1767         (WebCore::SocketStreamHandle::reportErrorToClient):
1768
1769 2011-11-19  Kevin Ollivier  <kevino@theolliviers.com>
1770
1771         [wx] C++ bindings build fix for move of array classes to WTF.
1772         
1773         * bindings/scripts/CodeGeneratorCPP.pm:
1774         (GetCPPTypeGetter):
1775         (GetNamespaceForClass):
1776         (GenerateHeader):
1777         (GenerateImplementation):
1778
1779 2011-11-19  Scott Graham  <scottmg@chromium.org>
1780
1781         Move gamepad to Modules/ (+ some cleanup)
1782         https://bugs.webkit.org/show_bug.cgi?id=72785
1783
1784         Reviewed by Adam Barth.
1785
1786         Move main files from page/ to Modules/gamepad/. #include guard the
1787         gamepad header inclusions in Navigator.cpp to avoid including for
1788         ports that do not enable GAMEPAD.
1789
1790         * Modules/gamepad/Gamepad.cpp: Renamed from Source/WebCore/page/Gamepad.cpp.
1791         (WebCore::Gamepad::Gamepad):
1792         (WebCore::Gamepad::axes):
1793         (WebCore::Gamepad::buttons):
1794         (WebCore::Gamepad::~Gamepad):
1795         * Modules/gamepad/Gamepad.h: Renamed from Source/WebCore/page/Gamepad.h.
1796         * Modules/gamepad/Gamepad.idl: Renamed from Source/WebCore/page/Gamepad.idl.
1797         * Modules/gamepad/GamepadList.cpp: Renamed from Source/WebCore/page/GamepadList.cpp.
1798         (WebCore::GamepadList::~GamepadList):
1799         (WebCore::GamepadList::set):
1800         (WebCore::GamepadList::length):
1801         (WebCore::GamepadList::item):
1802         * Modules/gamepad/GamepadList.h: Renamed from Source/WebCore/page/GamepadList.h.
1803         (WebCore::GamepadList::create):
1804         (WebCore::GamepadList::GamepadList):
1805         * Modules/gamepad/GamepadList.idl: Renamed from Source/WebCore/page/GamepadList.idl.
1806         * WebCore.gyp/WebCore.gyp:
1807         * WebCore.gypi:
1808         * page/Navigator.cpp:
1809
1810 2011-11-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1811
1812         Unreviewed, rolling out r100834.
1813         http://trac.webkit.org/changeset/100834
1814         https://bugs.webkit.org/show_bug.cgi?id=72806
1815
1816         this patch makes Qt run-webkit-test exit before finishing
1817         (Requested by igoroliveira on #webkit).
1818
1819         * platform/graphics/texmap/TextureMapperNode.cpp:
1820         * platform/graphics/texmap/TextureMapperNode.h:
1821
1822 2011-11-19  Huang Dongsung  <luxtella@company100.net>
1823
1824         Remove WebCore/ForwardingHeaders/runtime/JSObjectWithGlobalObject.h because
1825         JSObjectWithGlobalObject.h has been removed.
1826         https://bugs.webkit.org/show_bug.cgi?id=72794
1827
1828         r94701 removed JSObjectWithGlobalObject.h.
1829
1830         Reviewed by Oliver Hunt.
1831
1832         * ForwardingHeaders/runtime/JSObjectWithGlobalObject.h: Removed.
1833
1834 2011-11-19  Vsevolod Vlasov  <vsevik@chromium.org>
1835
1836         Web Inspector:[protocol] actual JSON messages do not conform to Inspector.json in InspectorApplicationCacheAgent.cpp
1837         https://bugs.webkit.org/show_bug.cgi?id=72734
1838
1839         Reviewed by Timothy Hatcher.
1840
1841         * inspector/Inspector.json:
1842
1843 2011-11-19  David Barr  <davidbarr@chromium.org>
1844
1845         REGRESSION(r98542): Chromium: CSS text is rendered on page
1846         https://bugs.webkit.org/show_bug.cgi?id=71703
1847
1848         Reviewed by Antti Koivisto.
1849
1850         Matched UA declarations uncacheable when using simpleDefaultStyleSheet.
1851
1852         Test: fast/css/style-tag-display-none.html
1853
1854         * css/CSSStyleSelector.cpp:
1855         (WebCore::CSSStyleSelector::matchUARules):
1856
1857 2011-11-19  Jay Civelli  <jcivelli@chromium.org>
1858
1859         When loading a MHTML document, make sure we set the base URL before
1860         we notify the frame was committed (so the document has the right base
1861         URL when the notification happens). 
1862         https://bugs.webkit.org/show_bug.cgi?id=72788
1863
1864         Reviewed by Adam Barth.
1865
1866         * loader/FrameLoader.cpp:
1867         (WebCore::FrameLoader::receivedFirstData):
1868
1869 2011-11-19  Adam Barth  <abarth@webkit.org>
1870
1871         Integrate Source/WTF with the Chromium build system
1872         https://bugs.webkit.org/show_bug.cgi?id=72790
1873
1874         Reviewed by Eric Seidel.
1875
1876         Add a dependency on the new WTF.
1877
1878         * WebCore.gyp/WebCore.gyp:
1879
1880 2011-11-18  Takashi Toyoshima  <toyoshim@chromium.org>
1881
1882         [Chromium] [WebSocket] export WebSocketChannel interface for plugins
1883         https://bugs.webkit.org/show_bug.cgi?id=72016
1884
1885         Reviewed by Darin Fisher.
1886
1887         Add a interface to send raw binary data.
1888         This interface is used by WebWebSocketChannel implementation
1889         in WebKit API.
1890
1891         No new tests because just export a interface.
1892
1893         * websockets/WebSocketChannel.cpp:
1894         (WebCore::WebSocketChannel::send):
1895         * websockets/WebSocketChannel.h:
1896
1897 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
1898
1899         https://bugs.webkit.org/show_bug.cgi?id=72591
1900         Remove document.width / document.height
1901
1902         Reviewed by Darin Adler.
1903
1904         Removed document.width/document.height from JS bindings,
1905         but keeping the same for ObjC bindings. Also it should use
1906         document.body.clientWidth and document.body.clientHeight instead.
1907
1908         * html/HTMLDocument.idl:
1909
1910 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
1911
1912         Fix the GTK+ build.
1913
1914         * page/Navigator.idl: Properly disable the webkitGamepads API if gamepad
1915         isn't enabled at compile time.
1916
1917 2011-11-18  Daniel Bates  <dbates@rim.com>
1918
1919         Add CMake build infrastructure for the BlackBerry port
1920         https://bugs.webkit.org/show_bug.cgi?id=72768
1921
1922         Reviewed by Antonio Gomes.
1923
1924         * CMakeLists.txt: At this time the BlackBerry port doesn't support generating
1925           DOM bindings from the SVG IDLs. See WebKit bug #72773.
1926         * PlatformBlackBerry.cmake: Added.
1927
1928 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
1929
1930         Unreviewed, rolling out r100826.
1931         http://trac.webkit.org/changeset/100826
1932         https://bugs.webkit.org/show_bug.cgi?id=72786
1933
1934         Broke Chromium Mac build (Requested by aklein on #webkit).
1935
1936         * page/ChromeClient.h:
1937         * page/FrameView.cpp:
1938         * page/FrameView.h:
1939         * platform/ScrollView.cpp:
1940         (WebCore::ScrollView::wheelEvent):
1941         * platform/ScrollView.h:
1942         * platform/ScrollableArea.h:
1943         (WebCore::ScrollableArea::scrollbarStyleChanged):
1944         * platform/mac/ScrollAnimatorMac.mm:
1945         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
1946
1947 2011-11-18  Alpha Lam  <hclam@chromium.org>
1948
1949         [chromium] composited layers are blurry with a zoom-in page scale factor
1950         https://bugs.webkit.org/show_bug.cgi?id=71225
1951
1952         Reviewed by James Robinson.
1953
1954         Pass contents scale factor to the compositor such that it can:
1955         1. Adjust contentBounds() of the compositoer layers with content scale.
1956         2. Apply the content scale in the painter for texture update in better resolution.
1957         3. Apply the content scale to the dirty rect in CanvasLayerTextureUpdater.
1958
1959         This change fixed blurry problem for all tiled layer types and is not limited to
1960         position:fixed layers.
1961
1962         Tests: compositing/geometry/fixed-position-composited-page-scale-down.html
1963                compositing/geometry/fixed-position-composited-page-scale.html
1964                compositing/geometry/fixed-position-iframe-composited-page-scale-down.html
1965                compositing/geometry/fixed-position-iframe-composited-page-scale.html
1966                compositing/geometry/fixed-position-transform-composited-page-scale-down.html
1967                compositing/geometry/fixed-position-transform-composited-page-scale.html
1968
1969         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1970         (WebCore::GraphicsLayerChromium::setTransform):
1971         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1972         (WebCore::GraphicsLayerChromium::updateContentsScale):
1973         (WebCore::GraphicsLayerChromium::contentsScale):
1974         (WebCore::GraphicsLayerChromium::deviceOrPageScaleFactorChanged):
1975         * platform/graphics/chromium/GraphicsLayerChromium.h:
1976         * platform/graphics/chromium/ImageLayerChromium.cpp:
1977         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
1978         (WebCore::ImageLayerChromium::needsContentsScale):
1979         * platform/graphics/chromium/ImageLayerChromium.h:
1980         * platform/graphics/chromium/LayerChromium.cpp:
1981         (WebCore::LayerChromium::LayerChromium):
1982         (WebCore::LayerChromium::setContentsScale):
1983         * platform/graphics/chromium/LayerChromium.h:
1984         (WebCore::LayerChromium::needsContentsScale):
1985         (WebCore::LayerChromium::contentsScale):
1986         * platform/graphics/chromium/LayerTextureUpdater.h:
1987         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
1988         (WebCore::LayerTextureUpdaterCanvas::paintContents):
1989         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
1990         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
1991         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
1992         * platform/graphics/chromium/TiledLayerChromium.cpp:
1993         (WebCore::TiledLayerChromium::needsContentsScale):
1994         (WebCore::TiledLayerChromium::contentBounds):
1995         (WebCore::TiledLayerChromium::prepareToUpdate):
1996         * platform/graphics/chromium/TiledLayerChromium.h:
1997
1998 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
1999
2000         [WK2][Qt] Move Accelerated Composite animations to UIProcess
2001         https://bugs.webkit.org/show_bug.cgi?id=72753
2002
2003         Add helper method to synchronize animations in TextureMapper.
2004
2005         Reviewed by Noam Rosenthal.
2006
2007         * platform/graphics/texmap/TextureMapperNode.cpp:
2008         (WebCore::TextureMapperNode::syncAnimationsRecursively):
2009         * platform/graphics/texmap/TextureMapperNode.h:
2010
2011 2011-11-18  Scott Graham  <scottmg@chromium.org>
2012
2013         IDL changes for gamepad support
2014         https://bugs.webkit.org/show_bug.cgi?id=71753
2015
2016         Reviewed by Adam Barth.
2017
2018         IDL changes and associated plumbing to expose list of gamepad objects
2019         on navigator object (per current spec). Full patch is
2020         https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence
2021         test until more plumbing in future patches.
2022
2023         Test: gamepad/gamepad-api.html
2024
2025         * WebCore.gypi:
2026         * bindings/generic/RuntimeEnabledFeatures.h:
2027         (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled):
2028         (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled):
2029         * page/Gamepad.cpp: Added.
2030         (WebCore::Gamepad::Gamepad):
2031         (WebCore::Gamepad::axes):
2032         (WebCore::Gamepad::buttons):
2033         (WebCore::Gamepad::~Gamepad):
2034         * page/Gamepad.h: Added.
2035         * page/Gamepad.idl: Added.
2036         * page/GamepadList.cpp: Added.
2037         (WebCore::GamepadList::~GamepadList):
2038         (WebCore::GamepadList::set):
2039         (WebCore::GamepadList::length):
2040         (WebCore::GamepadList::item):
2041         * page/GamepadList.h: Added.
2042         (WebCore::GamepadList::create):
2043         (WebCore::GamepadList::GamepadList):
2044         * page/GamepadList.idl: Added.
2045         * page/Navigator.cpp:
2046         (WebCore::Navigator::webkitGamepads):
2047         * page/Navigator.h:
2048         * page/Navigator.idl:
2049
2050 2011-11-18  Sheriff Bot  <webkit.review.bot@gmail.com>
2051
2052         Unreviewed, rolling out r100693.
2053         http://trac.webkit.org/changeset/100693
2054         https://bugs.webkit.org/show_bug.cgi?id=72779
2055
2056         This patch caused a rendering regression (see bug 72770)
2057         (Requested by philip__ on #webkit).
2058
2059         * rendering/RenderObject.cpp:
2060         (WebCore::RenderObject::setStyle):
2061         * rendering/style/RenderStyle.cpp:
2062         (WebCore::RenderStyle::diff):
2063
2064 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
2065
2066         Reflection on composited element doesn't update if the element changes to show no content
2067         https://bugs.webkit.org/show_bug.cgi?id=72774
2068
2069         Reviewed by Chris Marrin.
2070         
2071         When a style change results in a reflected element losing its backing store,
2072         we need to clear the backing stores on the layer clones as well.
2073
2074         Test: compositing/reflections/become-simple-composited-reflection.html
2075
2076         * platform/graphics/ca/GraphicsLayerCA.cpp:
2077         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
2078
2079 2011-11-18  Daniel Cheng  <dcheng@chromium.org>
2080
2081         [chromium] Use correct backing store for ChromiumDataObject in pasteboard writes.
2082         https://bugs.webkit.org/show_bug.cgi?id=72767
2083
2084         Reviewed by Tony Chang.
2085
2086         Covered by existing tests.
2087
2088         * editing/chromium/EditorChromium.cpp:
2089         (WebCore::Editor::newGeneralClipboard):
2090         * page/chromium/EventHandlerChromium.cpp:
2091         (WebCore::EventHandler::createDraggingClipboard):
2092         * platform/chromium/ChromiumDataObject.cpp:
2093         (WebCore::ChromiumDataObject::types):
2094         (WebCore::ChromiumDataObject::getData):
2095         (WebCore::ChromiumDataObject::containsFilenames):
2096         (WebCore::ChromiumDataObject::ChromiumDataObject):
2097         * platform/chromium/ChromiumDataObject.h:
2098         (WebCore::ChromiumDataObject::createFromPasteboard):
2099         (WebCore::ChromiumDataObject::create):
2100         (WebCore::ChromiumDataObject::storageMode):
2101         * platform/chromium/ClipboardChromium.cpp:
2102         (WebCore::ClipboardChromium::hasData):
2103
2104 2011-11-18  Chris Evans  <cevans@google.com>
2105
2106         Crash with ranges across a detached, reparented node tree
2107         https://bugs.webkit.org/show_bug.cgi?id=72757
2108
2109         Reviewed by Adam Barth.
2110
2111         Test: fast/dom/move-detached-child-in-range.html
2112
2113         * dom/RangeBoundaryPoint.h:
2114         (WebCore::RangeBoundaryPoint::childBefore): protect the raw child node from getting pulled from under us.
2115
2116 2011-11-18  Beth Dakin  <bdakin@apple.com>
2117
2118         https://bugs.webkit.org/show_bug.cgi?id=72551
2119         When the recommended scrollbar style changes, WKView's tracking options should 
2120         adjust accordingly
2121         -and corresponding-
2122         <rdar://problem/10409328>
2123
2124         Reviewed by Darin Adler.
2125
2126         This new ChromeClient function is called when the recommended scrollbar style 
2127         changes. This way, WebKit can respond to the change by adjusting its mouse 
2128         tracking.
2129         * page/ChromeClient.h:
2130         (WebCore::ChromeClient::recommendedScrollbarStyleDidChange):
2131
2132         Existing ScrollableArea function scrollbarStyleChanged() now takes an int 
2133         indicating the new scrollbar style and a bool indicating whether it is necessary 
2134         to force an update. It used to be the case that this function was ONLY used to 
2135         force an update (and only called when an updated was needed), but now that it must 
2136         also call into the ChromeClient, it is necessary to include a bool tracking 
2137         whether we need to force an update. New implementation on FrameView is responsible 
2138         for calling ChromeClient, and then that calls into the pre-existing ScrollView 
2139         function for the forceUpdate part.
2140         * page/FrameView.cpp:
2141         (WebCore::FrameView::scrollbarStyleChanged):
2142         * page/FrameView.h:
2143         * platform/ScrollView.cpp:
2144         (WebCore::ScrollView:: scrollbarStyleChanged):
2145         * platform/ScrollView.h:
2146         * platform/ScrollableArea.h:
2147         (WebCore::ScrollableArea::scrollbarStyleChanged):
2148         * platform/mac/ScrollAnimatorMac.mm:
2149         (WebCore::ScrollAnimatorMac::updateScrollerStyle):
2150
2151 2011-11-18  Kelly Norton  <knorton@google.com>
2152
2153         Fixes several more void functions in RenderObject that return values.
2154         https://bugs.webkit.org/show_bug.cgi?id=72750
2155
2156         Reviewed by Adam Barth.
2157
2158         * rendering/RenderBlock.cpp:
2159         (WebCore::RenderBlock::updateBeforeAfterContent):
2160         (WebCore::RenderBlock::addChildToContinuation):
2161         (WebCore::RenderBlock::addChildToAnonymousColumnBlocks):
2162         (WebCore::RenderBlock::addChild):
2163         (WebCore::RenderBlock::addChildIgnoringContinuation):
2164
2165 2011-11-18  Shawn Singh  <shawnsingh@chromium.org>
2166
2167         [chromium] Add some useful text to existing debug dump
2168         https://bugs.webkit.org/show_bug.cgi?id=72576
2169
2170         Reviewed by James Robinson.
2171
2172         No new tests needed.
2173
2174         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2175         (WebCore::CCLayerImpl::dumpLayerProperties):
2176         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
2177         (WebCore::CCRenderSurface::dumpSurface):
2178
2179 2011-11-18  Xiaomei Ji  <xji@chromium.org>
2180
2181         REGRESSION: rtl horizontal scrollbar / resize bug - Body shifts on resize when scrolled all the way to the left
2182         https://bugs.webkit.org/show_bug.cgi?id=70395
2183
2184         Reviewed by Tony Chang.
2185
2186         This patch fixes the problem in Mac and Chromium Mac.
2187    
2188         The existing test fast/dom/rtl-scroll-to-leftmost-and-resize.html seems does not really work in Mac DRT
2189         (the browswer window is not resized). It works in Chromium-Mac. And Chromium-Mac's code
2190         is forked from Mac.
2191
2192         * platform/chromium/ScrollAnimatorChromiumMac.mm:
2193         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
2194         * platform/mac/ScrollAnimatorMac.mm:
2195         (WebCore::ScrollAnimatorMac::immediateScrollToPoint):
2196
2197 2011-11-18  Martin Robinson  <mrobinson@igalia.com>
2198
2199         REGRESSION (r99924): broke 2 pasteboard tests on GTK
2200         https://bugs.webkit.org/show_bug.cgi?id=72131
2201
2202         Reviewed by Tony Chang.
2203
2204         * platform/gtk/ClipboardGtk.cpp:
2205         (WebCore::ClipboardGtk::clearData): Call clearAll now.
2206         (WebCore::ClipboardGtk::clearAllData): Call clearAllExceptFilenames now.
2207         * platform/gtk/DataObjectGtk.cpp:
2208         (WebCore::DataObjectGtk::clearAllExceptFilenames): Renamed from clear.
2209         (WebCore::DataObjectGtk::clearAll): Added this method which also clear filenames.
2210         * platform/gtk/DataObjectGtk.h:
2211         * platform/gtk/PasteboardGtk.cpp: Call clear before setting new clipboard data.
2212         (WebCore::Pasteboard::writeSelection): Ditto.
2213         (WebCore::Pasteboard::writePlainText): Ditto.
2214         (WebCore::Pasteboard::writeURL): Ditto.
2215         (WebCore::Pasteboard::writeImage): Ditto.
2216         * platform/gtk/PasteboardHelper.cpp:
2217         (WebCore::clearClipboardContentsCallback): Use the clearAll method now.
2218
2219 2011-11-18  Vineet Chaudhary  <vineet.chaudhary@motorola.com>
2220
2221         Access key should work on all elements.
2222         https://bugs.webkit.org/show_bug.cgi?id=71854
2223
2224         Reviewed by Ryosuke Niwa.
2225
2226         All HTML elements can have the accesskey content attribute set.
2227         Specification http://dev.w3.org/html5/spec/Overview.html#the-accesskey-attribute
2228         Adding "accessKey" attribute to HTMLElement.idl file as [Reflect].
2229
2230         Test: fast/forms/access-key-for-all-elements.html
2231
2232         * bindings/objc/PublicDOMInterfaces.h: Moved properties form subclass to base class.
2233         * html/BaseButtonInputType.cpp: 
2234         (WebCore::BaseButtonInputType::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2235         * html/BaseButtonInputType.h: Ditto
2236         * html/BaseCheckableInputType.cpp:
2237         (WebCore::BaseCheckableInputType::accessKeyAction): Ditto
2238         * html/BaseCheckableInputType.h: Ditto
2239         * html/HTMLAnchorElement.cpp:
2240         (WebCore::HTMLAnchorElement::accessKeyAction): Ditto
2241         * html/HTMLAnchorElement.h: Ditto
2242         * html/HTMLAnchorElement.idl: Removed redundant IDL attribute entries.
2243         * html/HTMLAreaElement.idl: Removed redundant IDL attribute entries.
2244         * html/HTMLButtonElement.cpp:
2245         (WebCore::HTMLButtonElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2246         * html/HTMLButtonElement.h: Ditto
2247         * html/HTMLButtonElement.idl: Removed redundant IDL attribute entries.
2248         * html/HTMLElement.cpp:
2249         (WebCore::HTMLElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2250         If the element does not have a defined activation behavior, fire a click event at the element.
2251         * html/HTMLElement.h: Ditto
2252         * html/HTMLElement.idl: Added accessKey IDL attribute.
2253         * html/HTMLInputElement.cpp:
2254         (WebCore::HTMLInputElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2255         * html/HTMLInputElement.h: Ditto
2256         * html/HTMLInputElement.idl: Removed redundant IDL attribute entries.
2257         * html/HTMLLabelElement.cpp:
2258         (WebCore::HTMLLabelElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2259         * html/HTMLLabelElement.h: Ditto
2260         * html/HTMLLabelElement.idl: Removed redundant IDL attribute entries.
2261         * html/HTMLLegendElement.cpp:
2262         (WebCore::HTMLLegendElement::accessKeyAction): Renamed variable sendToAnyElement to sendMouseEvents.
2263         * html/HTMLLegendElement.h: Ditto
2264         * html/HTMLLegendElement.idl: Removed redundant IDL attribute entries.
2265         * html/HTMLOptGroupElement.h: Renamed variable sendToAnyElement to sendMouseEvents.
2266         * html/HTMLSelectElement.cpp:
2267         (WebCore::HTMLSelectElement::accessKeyAction): Ditto
2268         * html/HTMLSelectElement.h: Ditto
2269         * html/HTMLTextAreaElement.h: Ditto
2270         * html/HTMLTextAreaElement.idl: Removed redundant IDL attribute entries.
2271         * html/HiddenInputType.h: Renamed variable sendToAnyElement to sendMouseEvents.
2272         * html/InputType.h: Ditto
2273         * html/RangeInputType.cpp:
2274         (WebCore::RangeInputType::accessKeyAction): Ditto
2275         * html/RangeInputType.h: Ditto
2276
2277 2011-11-18  Simon Fraser  <simon.fraser@apple.com>
2278
2279         Appearance of compound transform animations under apps linked on SnowLeopard is incorrect
2280         https://bugs.webkit.org/show_bug.cgi?id=72641
2281         and
2282         <rdar://problem/10314267>
2283
2284         Reviewed by Dean Jackson.
2285
2286         GraphicsLayerCA contains a "linked on or after" check to account for a bug in
2287         Core Animation on SnowLeopard and earlier, which is that CA would apply the list
2288         of animations in reverse order.
2289         
2290         Our previous fix was incorrect, because it only adjusted the 'additive' property
2291         of the animation list based on ordering, rather than flipping the entire list.
2292         This change reverses the list of animations before giving them to CA, which fixes
2293         the bug.
2294                 
2295         Test: animations/additive-transform-animations.html
2296
2297         * platform/graphics/ca/GraphicsLayerCA.cpp:
2298         (WebCore::GraphicsLayerCA::appendToUncommittedAnimations):
2299         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
2300         * platform/graphics/ca/GraphicsLayerCA.h:
2301
2302 2011-11-18  Tim Horton  <timothy_horton@apple.com>
2303
2304         -webkit-cross-fade rendered incorrectly in overflow divs
2305         https://bugs.webkit.org/show_bug.cgi?id=72693
2306         <rdar://problem/10468564>
2307
2308         Reviewed by Simon Fraser.
2309
2310         Respect the desired source rectangle when rendering the cross-fade.
2311
2312         Test: css3/images/cross-fade-overflow-position.html
2313
2314         * platform/graphics/CrossfadeGeneratedImage.cpp:
2315         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
2316         (WebCore::CrossfadeGeneratedImage::draw):
2317         (WebCore::CrossfadeGeneratedImage::drawPattern):
2318         * platform/graphics/CrossfadeGeneratedImage.h:
2319
2320 2011-11-18  Raphael Kubo da Costa  <kubo@profusion.mobi>
2321
2322         Unreviewed build fix; r100686 broke the EFL build when Geolocation
2323         support is enabled.
2324
2325         * platform/efl/GeolocationServiceEfl.cpp: Only declare
2326         s_factoryFunction if CLIENT_BASED_GEOLOCATION is off, otherwise it is
2327         also declared in GeolocationService.cpp.
2328
2329 2011-11-18  Igor Oliveira  <igor.oliveira@openbossa.org>
2330
2331         [TextureMapper] computePerspectiveTransformIfNeeded is called twice in TextureMapperNode::syncCompositingState
2332         https://bugs.webkit.org/show_bug.cgi?id=72727
2333
2334         TextureMapperNode::computeAllTransforms already has a call to TextureMapperNode::computePerspectiveTransformIfNeeded,
2335         so it does not need to be called again after TextureMapperNode::computeAllTransforms.
2336
2337         Reviewed by Noam Rosenthal.
2338
2339         * platform/graphics/texmap/TextureMapperNode.cpp:
2340         (WebCore::TextureMapperNode::syncCompositingState):
2341
2342 2011-11-18  Mihnea Ovidenie  <mihnea@adobe.com>
2343
2344         Fix compilation warning in ComplexTextControllerCoreText.mm
2345         https://bugs.webkit.org/show_bug.cgi?id=72702
2346
2347         Reviewed by Andreas Kling.
2348
2349         No functionality changed, so no new tests.
2350
2351         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
2352         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
2353
2354 2011-11-18  Pavel Feldman  <pfeldman@google.com>
2355
2356         Not reviewed: restore front-end compilability via updating externs and JS generator.
2357
2358         * inspector/front-end/ElementsPanel.js:
2359         (WebInspector.ElementsPanel.prototype.jumpToNextSearchResult):
2360         (WebInspector.ElementsPanel.prototype.jumpToPreviousSearchResult):
2361         * inspector/front-end/externs.js:
2362         (WebInspector.showPanelForAnchorNavigation):
2363         * inspector/generate-protocol-externs:
2364
2365 2011-11-17  Pavel Feldman  <pfeldman@google.com>
2366
2367         Web Inspector: dispatch messages from the front-end to the backend asynchronously.
2368         https://bugs.webkit.org/show_bug.cgi?id=72621
2369
2370         We should align the way we dispatch messages from the front-end to backend across the environments:
2371           - WebKit has it synchronoulsly
2372           - Chromium has it asynchronously
2373           - Remote debugging has it asynchronously
2374         Making it asynchronous made a number of flaky Qt tests pass.
2375
2376         Tests uncovered console agent problem that was also fixed.
2377
2378         Reviewed by Yury Semikhatsky.
2379
2380         * inspector/InspectorConsoleAgent.cpp:
2381         (WebCore::InspectorConsoleAgent::clearFrontend):
2382         * inspector/InspectorFrontendClient.h:
2383         * inspector/InspectorFrontendClientLocal.cpp:
2384         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
2385         (WebCore::InspectorBackendDispatchTask::dispatch):
2386         (WebCore::InspectorBackendDispatchTask::reset):
2387         (WebCore::InspectorBackendDispatchTask::onTimer):
2388         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
2389         (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
2390         (WebCore::InspectorFrontendClientLocal::sendMessageToBackend):
2391         * inspector/InspectorFrontendClientLocal.h:
2392
2393 2011-11-18  Iain Merrick  <husky@google.com>
2394
2395         [chromium] Pass screen refresh rate into compositor.
2396         https://bugs.webkit.org/show_bug.cgi?id=71040
2397
2398         Reviewed by Tony Gentilcore.
2399
2400         Covered by CCLayerTreeHostTest.
2401
2402         * platform/PlatformScreen.h:
2403         * platform/chromium/PlatformScreenChromium.cpp:
2404         (WebCore::screenRefreshRate):
2405         * platform/chromium/PlatformSupport.h:
2406         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2407         (WebCore::CCSettings::CCSettings):
2408         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2409         (WebCore::CCThreadProxy::initializeImplOnImplThread):
2410
2411 2011-11-18  Alexandru Chiculita  <achicu@adobe.com>
2412
2413         [CSSShaders] Implement the computed style for mesh parameters of the custom() filter
2414         https://bugs.webkit.org/show_bug.cgi?id=72478
2415
2416         Reviewed by Dean Jackson.
2417
2418         Added parsing and computed style for the mesh rows, columns, mesh box type 
2419         (filter-box, border-box, content-box and padding-box) and the detached mode.
2420         
2421         Also fixed a case where "custom(none, 10, 10 filter-box)" was incorrectly
2422         treated as "custom(none, 10)".
2423
2424         * css/CSSComputedStyleDeclaration.cpp:
2425         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
2426         * css/CSSParser.cpp:
2427         (WebCore::CSSParser::parseCustomFilter): Fixed a case where invalid syntax was parsed as correct syntax.
2428         * css/CSSPrimitiveValueMappings.h:
2429         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2430         (WebCore::CSSPrimitiveValue::operator CustomFilterOperation::MeshBoxType):
2431         * css/CSSStyleSelector.cpp:
2432         (WebCore::CSSStyleSelector::createCustomFilterOperation):
2433         * css/CSSValueList.h:
2434         (WebCore::CSSValueListIterator::isPrimitiveValue):
2435         * platform/graphics/filters/CustomFilterOperation.h:
2436
2437 2011-11-18  Adam Barth  <abarth@webkit.org>
2438
2439         Remove unneeded include (and ifdef) from V8DOMWindowCustom.cpp
2440         https://bugs.webkit.org/show_bug.cgi?id=72705
2441
2442         Reviewed by Eric Seidel.
2443
2444         Death to ifdefs!
2445
2446         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2447
2448 2011-11-18  Adam Barth  <abarth@webkit.org>
2449
2450         Move some mediastream related files into the mediastream directory
2451         https://bugs.webkit.org/show_bug.cgi?id=72695
2452
2453         Reviewed by Eric Seidel.
2454
2455         Just moving the files to the proper directory.
2456
2457         * GNUmakefile.list.am:
2458         * WebCore.gypi:
2459         * mediastream/NavigatorUserMediaError.h: Renamed from Source/WebCore/page/NavigatorUserMediaError.h.
2460         (WebCore::NavigatorUserMediaError::create):
2461         (WebCore::NavigatorUserMediaError::~NavigatorUserMediaError):
2462         (WebCore::NavigatorUserMediaError::code):
2463         (WebCore::NavigatorUserMediaError::NavigatorUserMediaError):
2464         * mediastream/NavigatorUserMediaError.idl: Renamed from Source/WebCore/page/NavigatorUserMediaError.idl.
2465         * mediastream/NavigatorUserMediaErrorCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.h.
2466         (WebCore::NavigatorUserMediaErrorCallback::~NavigatorUserMediaErrorCallback):
2467         * mediastream/NavigatorUserMediaErrorCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaErrorCallback.idl.
2468         * mediastream/NavigatorUserMediaSuccessCallback.h: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.h.
2469         (WebCore::NavigatorUserMediaSuccessCallback::~NavigatorUserMediaSuccessCallback):
2470         * mediastream/NavigatorUserMediaSuccessCallback.idl: Renamed from Source/WebCore/page/NavigatorUserMediaSuccessCallback.idl.
2471
2472 2011-11-18  Andrey Kosyakov  <caseq@chromium.org>
2473
2474         Web Inspector: [Extensions API] Provide a way for extension to create a status bar icon
2475         https://bugs.webkit.org/show_bug.cgi?id=45955
2476
2477         Reviewed by Pavel Feldman.
2478
2479         * inspector/front-end/ExtensionAPI.js:
2480         (injectedExtensionAPI.ExtensionPanelImpl.prototype.createStatusBarButton):
2481         (injectedExtensionAPI):
2482         (injectedExtensionAPI.ButtonImpl.prototype.update):
2483         * inspector/front-end/ExtensionPanel.js:
2484         (WebInspector.ExtensionPanel):
2485         (WebInspector.ExtensionPanel.prototype.get statusBarItems):
2486         (WebInspector.ExtensionPanel.prototype.addStatusBarItem):
2487         (WebInspector.ExtensionButton):
2488         (WebInspector.ExtensionButton.prototype.update):
2489         (WebInspector.ExtensionButton.prototype._onClicked):
2490         * inspector/front-end/ExtensionServer.js:
2491         (WebInspector.ExtensionServer):
2492         (WebInspector.ExtensionServer.prototype.notifyButtonClicked):
2493         (WebInspector.ExtensionServer.prototype._onCreateStatusBarButton):
2494         (WebInspector.ExtensionServer.prototype._onUpdateButton):
2495         (WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
2496         * inspector/front-end/inspector.css:
2497         (button.status-bar-item.extension):
2498
2499 2011-11-18  Tommy Widenflycht  <tommyw@google.com>
2500
2501         MediaStream API: Merging the PeerConnectionHandler.h files
2502         https://bugs.webkit.org/show_bug.cgi?id=72611
2503
2504         Reviewed by Adam Barth.
2505
2506         No actual code changes.
2507
2508         * GNUmakefile.am:
2509         * GNUmakefile.list.am:
2510         * WebCore.gyp/WebCore.gyp:
2511         * WebCore.gypi:
2512         * platform/mediastream/PeerConnectionHandler.h: Renamed from Source/WebCore/platform/mediastream/chromium/PeerConnectionHandler.h.
2513         * platform/mediastream/gstreamer/PeerConnectionHandler.h: Removed.
2514
2515 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
2516
2517         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
2518         https://bugs.webkit.org/show_bug.cgi?id=72597
2519
2520         Reviewed by Kenneth Rohde Christiansen.
2521
2522         Moved code that queries the third party cookie policy from QWebSettings
2523         out of WebCore. Instead NetworkingContext has now the interface that allows
2524         delegating the functionality into WebKit/qt.
2525
2526         In order to do that we need to pass the NetworkingContext around, which is used to
2527         retrieve the cookie jar and the originating frame object pointer.
2528
2529         * platform/network/NetworkingContext.h: Add interface.
2530         * platform/network/qt/QNetworkReplyHandler.cpp:
2531         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler): Pass NetworkingContext to ResourceRequest::toNetworkRequest.
2532         (WebCore::QNetworkReplyHandler::redirect): Ditto.
2533         * platform/network/qt/ResourceRequest.h: Replaced originatingObject parameter with NetworkingContext, which can
2534         also provide the same plus more (cookie jar, policy callback).
2535         * platform/network/qt/ResourceRequestQt.cpp:
2536         (WebCore::ResourceRequest::toNetworkRequest): Ditto.
2537         * platform/qt/CookieJarQt.cpp: Simplify to use NetworkingContext to get cookie jar and
2538         call new thirdPartyCookiePolicyPermits API that takes the context as parameter.
2539         (WebCore::networkingContext):
2540         (WebCore::setCookies):
2541         (WebCore::cookies):
2542         (WebCore::cookieRequestHeaderFieldValue):
2543         (WebCore::cookiesEnabled):
2544         * platform/qt/ThirdPartyCookiesQt.cpp: Replace up-casting to QWebFrame and use of QWebSettings
2545         with useage of NetworkingContext.
2546         (WebCore::thirdPartyCookiePolicyPermits):
2547         * platform/qt/ThirdPartyCookiesQt.h:
2548
2549 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
2550
2551         crash: WebCore::FontPlatformData::roundsGlyphAdvances on Lion
2552         https://bugs.webkit.org/show_bug.cgi?id=71997
2553
2554         Reviewed by Dan Bernstein.
2555
2556         The cause is a null dereference of a fontData that is stored in
2557         ComplexTextRun. The fontData is initialized by using the
2558         fontCache, but it could be null when the font is in fallback
2559         list. The reason a font from the fallback list might not be in the
2560         font Cache is that it may be a web font. Before looking up the
2561         fontCache, try to see whether the font is in the fallback list.
2562
2563         No new tests. We don't have webfonts that can produce the problem.
2564
2565         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
2566         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): See fallback list first, then lookup cache.
2567
2568 2011-11-17  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2569
2570         Remove initProgressEvent method
2571         https://bugs.webkit.org/show_bug.cgi?id=71340
2572
2573         Reviewed by Adam Barth.
2574
2575         This method has been removed from the spec draft.
2576         http://www.w3.org/TR/progress-events/#interface-progressevent
2577
2578         No new tests. Removed method.
2579
2580         * dom/ProgressEvent.cpp:
2581         * dom/ProgressEvent.h:
2582         * dom/ProgressEvent.idl:
2583
2584 2011-11-17  Eunmi Lee  <eunmi15.lee@samsung.com>
2585
2586         [EFL] Move keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() to the
2587         EflKeyboardUtilities.cpp to use in the WebKit2
2588         https://bugs.webkit.org/show_bug.cgi?id=62451
2589
2590         Reviewed by Martin Robinson.
2591
2592         The keyIdentifierForEvasKeyName() and windowsKeyCodeForEvasKeyName() were static functions
2593         in the PlatformKeyboardEventEfl.cpp. But they are also needed in the WebKit2 EFL port, so I
2594         moved them to the separated file - EflKeyboardUtilities.cpp.
2595
2596         * PlatformEfl.cmake:
2597         * platform/efl/EflKeyboardUtilities.cpp: Copied from Source/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp.
2598         (WebCore::createKeyMap):
2599         (WebCore::createWindowsKeyMap):
2600         (WebCore::keyIdentifierForEvasKeyName):
2601         (WebCore::windowsKeyCodeForEvasKeyName):
2602         * platform/efl/EflKeyboardUtilities.h: Added.
2603         * platform/efl/PlatformKeyboardEventEfl.cpp:
2604
2605 2011-11-17  Martin Robinson  <mrobinson@igalia.com>
2606
2607         [GTK] The process freezes when you right click on windowless Flash
2608         https://bugs.webkit.org/show_bug.cgi?id=69123
2609
2610         Reviewed by Xan Lopez.
2611
2612         No new tests. I tried to create a layout test that exercised this
2613         issue, but it appears that EventSender clicks do not trigger
2614         it. This is covered by the manual tests containing Flash.
2615
2616         * plugins/PluginPackage.cpp:
2617         (WebCore::PluginPackage::determineQuirks): Always activate the
2618         windowless Flash quirk if on x86_64 and X11.
2619         * plugins/gtk/PluginViewGtk.cpp:
2620         (WebCore::PluginView::handleMouseEvent): Avoid sending right-click
2621         events if we have the quirk.
2622
2623 2011-11-17  Peter Rybin  <peter.rybin@gmail.com>
2624
2625         Web Inspector: clear fixme in generator script
2626         https://bugs.webkit.org/show_bug.cgi?id=71372
2627
2628         Remove unnecessary field name map and update license year number.
2629
2630         Reviewed by Pavel Feldman.
2631
2632         * inspector/CodeGeneratorInspector.py:
2633
2634 2011-11-17  Raphael Kubo da Costa  <kubo@profusion.mobi>
2635
2636         [EFL] Clean up the use of DATA_DIR in the buildsystem
2637         https://bugs.webkit.org/show_bug.cgi?id=72681
2638
2639         Reviewed by Daniel Bates.
2640
2641         Add the -DDATA_DIR definition here instead of defining it globally in
2642         OptionsEfl.cmake, as WebCore is the only place which needs it.
2643
2644         No new tests, this is a buildsystem change.
2645
2646         * PlatformEfl.cmake:
2647
2648 2011-11-17  Adam Klein  <adamk@chromium.org>
2649
2650         Move JS recursion counter from V8Proxy to V8BindingPerIsolateData
2651         https://bugs.webkit.org/show_bug.cgi?id=72645
2652
2653         Reviewed by Adam Barth.
2654
2655         With the JS recursion level stored as a member of V8Proxy, it's tied
2656         to a frame. But this is incorrect, as there's no reason that a JS call
2657         stack need be restricted to a single frame (see my new test case for
2658         an example of code going across frames).
2659
2660         In order to get the correct accounting of JS recursion level, per-Isolate
2661         is the right granularity (per dslomov), which is what this patch accomplishes.
2662
2663         Test: storage/indexeddb/transaction-abort-with-js-recursion-cross-frame.html
2664
2665         * bindings/v8/V8Binding.cpp:
2666         (WebCore::V8BindingPerIsolateData::V8BindingPerIsolateData):
2667         * bindings/v8/V8Binding.h:
2668         (WebCore::V8BindingPerIsolateData::recursionLevel):
2669         (WebCore::V8BindingPerIsolateData::incrementRecursionLevel):
2670         (WebCore::V8BindingPerIsolateData::decrementRecursionLevel):
2671         (WebCore::V8RecursionScope::V8RecursionScope):
2672         (WebCore::V8RecursionScope::~V8RecursionScope):
2673         * bindings/v8/V8Proxy.cpp:
2674         (WebCore::incrementRecursionLevel):
2675         (WebCore::decrementRecursionLevel):
2676         (WebCore::recursionLevel):
2677         (WebCore::V8Proxy::V8Proxy):
2678         (WebCore::V8Proxy::runScript):
2679         (WebCore::V8Proxy::callFunction):
2680         (WebCore::V8Proxy::didLeaveScriptContext):
2681         * bindings/v8/V8Proxy.h:
2682
2683 2011-11-17  Robin Cao  <robin.cao@torchmobile.com.cn>
2684
2685         [chromium] Font::drawComplexText can not draw a segment of text run
2686         https://bugs.webkit.org/show_bug.cgi?id=72095
2687
2688         Reviewed by Adam Barth.
2689
2690         drawComplexText() should respect the 'from' and 'to' arguments.
2691         Drawing the whole text run may result in text overlapping.
2692
2693         Test: platform/chromium-linux/fast/text/international/draw-complex-text-from-to.html
2694
2695         * platform/graphics/chromium/ComplexTextControllerLinux.cpp:
2696         (WebCore::ComplexTextController::glyphsForRange):
2697         * platform/graphics/chromium/ComplexTextControllerLinux.h:
2698         * platform/graphics/chromium/FontLinux.cpp:
2699         (WebCore::Font::drawComplexText):
2700
2701 2011-11-17  Adam Barth  <abarth@webkit.org>
2702
2703         Unique SecurityOrigins shouldn't remember their old schemes and hosts
2704         https://bugs.webkit.org/show_bug.cgi?id=71745
2705
2706         Reviewed by Darin Adler.
2707
2708         This is the final step in this series of patches.
2709
2710         This patch removes the forceUnique flag from SecurityOrigin::create.
2711         Now, we create unique origins without passing in the document's URL,
2712         preventing information from the document's URL from leaking into the
2713         unique origin.
2714
2715         * WebCore.exp.in:
2716         * dom/Document.cpp:
2717         (WebCore::Document::setIsViewSource):
2718         (WebCore::Document::initSecurityContext):
2719         * loader/cache/MemoryCache.cpp:
2720         (WebCore::MemoryCache::getOriginsWithCache):
2721             - Update this callsite to use createFromString, which does exactly
2722               what this code is doing manually.
2723         * page/SecurityOrigin.cpp:
2724         (WebCore::SecurityOrigin::create):
2725         * page/SecurityOrigin.h:
2726
2727 2011-11-17  Vincent Scheib  <scheib@chromium.org>
2728
2729         Pointer Lock: Page Settings unecessary
2730         https://bugs.webkit.org/show_bug.cgi?id=72662
2731
2732         Reviewed by Darin Fisher.
2733
2734         No new tests.
2735
2736         * page/Settings.cpp:
2737         (WebCore::Settings::Settings):
2738         * page/Settings.h:
2739
2740 2011-11-17  James Robinson  <jamesr@chromium.org>
2741
2742         [chromium] Disable incremental uploading in threaded compositing path
2743         https://bugs.webkit.org/show_bug.cgi?id=72669
2744
2745         Reviewed by Kenneth Russell.
2746
2747         Since we don't currently support atomic incremental uploads, incremental uploads in the threaded path result in
2748         very strange-looking texture popping as tiles come in on pages that require more than 16 tile uploads per frame.
2749         This disables that logic (by setting the upload limit per frame to 99999) until we handle the incremental
2750         updates in an atomic fashion.
2751
2752         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2753         (WebCore::CCThreadProxy::scheduledActionUpdateMoreResources):
2754
2755 2011-11-06  Nat Duca  <nduca@chromium.org>
2756
2757         [chromium] Fix handling of setNeedsCommit and setNeedsAnimate in threaded mode
2758         https://bugs.webkit.org/show_bug.cgi?id=71638
2759
2760         Reviewed by James Robinson.
2761
2762         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2763         (WebCore::CCThreadProxy::CCThreadProxy):
2764         (WebCore::CCThreadProxy::setNeedsAnimate):
2765         (WebCore::CCThreadProxy::beginFrameAndCommit):
2766
2767 2011-11-17  Adam Barth  <abarth@webkit.org>
2768
2769         Remove bogus ASSERT.
2770
2771         * page/SecurityOrigin.cpp:
2772         (WebCore::SecurityOrigin::SecurityOrigin):
2773
2774 2011-11-17  Peter Kasting  <pkasting@google.com>
2775
2776         Unreviewed, rolling out r100698.
2777         http://trac.webkit.org/changeset/100698
2778         https://bugs.webkit.org/show_bug.cgi?id=72239
2779
2780         This change wasn't the problem either.
2781
2782         * dom/Document.cpp:
2783         (WebCore::Document::implicitClose):
2784
2785 2011-11-17  David Reveman  <reveman@chromium.org>
2786
2787         [Chromium] Calls to paintContentsIfDirty() and updateCompositorResources() should be balanced.
2788         https://bugs.webkit.org/show_bug.cgi?id=72630
2789
2790         Reviewed by James Robinson.
2791
2792         Layer property changes during paintContent() can leave the layer
2793         in an invalid state as paintContentsIfDirty() has been called
2794         without a matching updateCompositorResources() call. Removing
2795         conditionals around these calls ensure they are balanced.
2796
2797         This patch is tested by the following unit test:
2798         - CCLayerTreeHostTestOpacityChange.runMultiThread
2799
2800         * platform/graphics/chromium/ContentLayerChromium.cpp:
2801         (WebCore::ContentLayerChromium::paintContentsIfDirty):
2802         * platform/graphics/chromium/VideoLayerChromium.cpp:
2803         (WebCore::VideoLayerChromium::updateCompositorResources):
2804         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2805         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
2806         (WebCore::CCLayerTreeHost::paintLayerContents):
2807         (WebCore::CCLayerTreeHost::updateCompositorResources):
2808         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2809
2810 2011-11-17  Peter Kasting  <pkasting@google.com>
2811
2812         Unreviewed, rolling out r100584.
2813         http://trac.webkit.org/changeset/100584
2814         https://bugs.webkit.org/show_bug.cgi?id=72239
2815
2816         See if this change caused Linux dbg crashes.
2817
2818         * dom/Document.cpp:
2819         (WebCore::Document::implicitClose):
2820
2821 2011-11-17  Adam Barth  <abarth@webkit.org>
2822
2823         Remove cargo-cult copy/pasting of ScriptExecutionContext namespace
2824         https://bugs.webkit.org/show_bug.cgi?id=72676
2825
2826         Reviewed by Eric Seidel.
2827
2828         It looks like this cargo-cult started with initDNSPrefetch being hacked
2829         into setSecurityOrigin.  I've removed this hack along with the
2830         copy/paste code.
2831
2832         * dom/DOMImplementation.cpp:
2833         * dom/Document.cpp:
2834         (WebCore::Document::setIsViewSource):
2835         (WebCore::Document::open):
2836         (WebCore::Document::initSecurityContext):
2837         (WebCore::Document::setSecurityOrigin):
2838         * dom/Document.h:
2839         * xml/XSLTProcessor.cpp:
2840
2841 2011-11-17  Peter Kasting  <pkasting@google.com>
2842
2843         Unreviewed, rolling out r100676.
2844         http://trac.webkit.org/changeset/100676
2845         https://bugs.webkit.org/show_bug.cgi?id=72393
2846
2847         Looks like r100572 was not the source of the crashes.
2848
2849         * bindings/js/ScriptDebugServer.cpp:
2850         (WebCore::ScriptDebugServer::canSetScriptSource):
2851         * bindings/js/ScriptDebugServer.h:
2852         * bindings/v8/ScriptDebugServer.cpp:
2853         (WebCore::ScriptDebugServer::stepOutOfFunction):
2854         (WebCore::ScriptDebugServer::canSetScriptSource):
2855         * bindings/v8/ScriptDebugServer.h:
2856         * inspector/CodeGeneratorInspector.py:
2857         * inspector/Inspector.json:
2858         * inspector/InspectorDebuggerAgent.cpp:
2859         (WebCore::InspectorDebuggerAgent::getCapabilities):
2860         * inspector/InspectorDebuggerAgent.h:
2861         * inspector/front-end/DebuggerModel.js:
2862         (WebInspector.DebuggerModel):
2863         (WebInspector.DebuggerModel.prototype.enableDebugger):
2864         (WebInspector.DebuggerModel.prototype.disableDebugger):
2865         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
2866         * inspector/front-end/DebuggerPresentationModel.js:
2867         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
2868         * inspector/front-end/Settings.js:
2869
2870 2011-11-17  Konstantin Scheglov  <scheglov@google.com>
2871
2872         Absolute child is not repainted when parent opacity changes
2873         https://bugs.webkit.org/show_bug.cgi?id=68777
2874
2875         Reviewed by Simon Fraser.
2876
2877         First time when we change opacity for parent we don't have layer, so
2878         diff=StyleDifferenceRepaint is used instead of diff=StyleDifferenceRepaintLayer.
2879         Layer is created later, in styleDidChange().
2880         So, when we recalculate later diff, we now check for diff=StyleDifferenceRepaintLayer and
2881         performs repaintIncludingDescendants().
2882
2883         Test: fast/layers/layer-absolute-parent-opacity.html
2884
2885         * rendering/RenderObject.cpp:
2886         (WebCore::RenderObject::setStyle): Call repaintIncludingDescendants() instead of repaint().
2887         * rendering/style/RenderStyle.cpp:
2888         (WebCore::RenderStyle::diff): Add ContextSensitivePropertyOpacity when change opacity.
2889
2890 2011-11-17  Nate Chapin  <japhet@chromium.org>
2891
2892         r100311 dropped a RefPtr that is very
2893         helpful. Add it back.
2894         https://bugs.webkit.org/show_bug.cgi?id=72647
2895
2896         Reviewed by Adam Barth.
2897
2898         http/tests/misc/xslt-bad-import.html should
2899         stop crashing in full chromium builds.
2900
2901         * loader/cache/CachedResourceLoader.cpp:
2902         (WebCore::CachedResourceLoader::loadDone):
2903
2904 2011-11-17  Adam Barth  <abarth@webkit.org>
2905
2906         Refactor SecurityOrigin::create to be easier to understand
2907         https://bugs.webkit.org/show_bug.cgi?id=72342
2908
2909         Reviewed by Eric Seidel.
2910
2911         Over time, the SecurityOrigin constructor has grown a bit out of
2912         control.  This patch attempts to separate the different concerns into
2913         free functions.  The general approach is to put more logic in the
2914         "create" function and introduce a simple constructor for unique
2915         origins.
2916
2917         This patch shouldn't change any behavior.
2918
2919         * page/SecurityOrigin.cpp:
2920         (WebCore::schemeRequiresAuthority):
2921         (WebCore::shouldUseInnerURL):
2922         (WebCore::extractInnerURL):
2923         (WebCore::isDirectory):
2924         (WebCore::shouldTreatAsUniqueOrigin):
2925         (WebCore::SecurityOrigin::SecurityOrigin):
2926         (WebCore::SecurityOrigin::create):
2927         (WebCore::SecurityOrigin::createUnique):
2928         (WebCore::SecurityOrigin::databaseIdentifier):
2929         * page/SecurityOrigin.h:
2930
2931 2011-11-17  Shawn Singh  <shawnsingh@chromium.org>
2932
2933         [chromium] Fix minor style nit in CCLayerImpl
2934         https://bugs.webkit.org/show_bug.cgi?id=71070
2935
2936         Reviewed by James Robinson.
2937
2938         Fixes if-statements on several settors to follow WebKit
2939         conventions. Existing CCLayerImplTest unit tests already cover
2940         this change.
2941
2942         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
2943         (WebCore::CCLayerImpl::setBounds):
2944         (WebCore::CCLayerImpl::setMaskLayer):
2945         (WebCore::CCLayerImpl::setReplicaLayer):
2946         (WebCore::CCLayerImpl::setDrawsContent):
2947         (WebCore::CCLayerImpl::setAnchorPoint):
2948         (WebCore::CCLayerImpl::setAnchorPointZ):
2949         (WebCore::CCLayerImpl::setBackgroundColor):
2950         (WebCore::CCLayerImpl::setMasksToBounds):
2951         (WebCore::CCLayerImpl::setOpaque):
2952         (WebCore::CCLayerImpl::setOpacity):
2953         (WebCore::CCLayerImpl::setPosition):
2954         (WebCore::CCLayerImpl::setPreserves3D):
2955         (WebCore::CCLayerImpl::setZoomAnimatorTransform):
2956         (WebCore::CCLayerImpl::setSublayerTransform):
2957         (WebCore::CCLayerImpl::setTransform):
2958         (WebCore::CCLayerImpl::setDebugBorderColor):
2959         (WebCore::CCLayerImpl::setDebugBorderWidth):
2960         (WebCore::CCLayerImpl::setContentBounds):
2961         (WebCore::CCLayerImpl::setScrollPosition):
2962         (WebCore::CCLayerImpl::setScrollDelta):
2963         (WebCore::CCLayerImpl::setScaleDelta):
2964         (WebCore::CCLayerImpl::setDoubleSided):
2965
2966 2011-11-17  Michael Saboff  <msaboff@apple.com>
2967
2968         Leaks seen in MemoryPressureHandlerMac.mm on Leaks bot
2969         https://bugs.webkit.org/show_bug.cgi?id=72416
2970
2971         Added code to release _cache_event_source and _timer_event_source
2972         after they are canceled.  Also added defensive code to
2973         clean up the _timer_event_source in uninstall().
2974
2975         Reviewed by Geoffrey Garen.
2976
2977         No new tests, fixing leaks caught by leaks bot.
2978
2979         * platform/mac/MemoryPressureHandlerMac.mm:
2980         (WebCore::MemoryPressureHandler::uninstall):
2981         (WebCore::MemoryPressureHandler::holdOff):
2982
2983 2011-11-17  Ken Buchanan <kenrb@chromium.org>
2984
2985         Crash from positioned generated content under run-in
2986         https://bugs.webkit.org/show_bug.cgi?id=70456
2987
2988         Reviewed by David Hyatt.
2989
2990         Modified handling of run-in children to clear generated children
2991         before removing the parent from the render tree. This caused problems
2992         with absolute positioned children being not properly removed from the
2993         positioned object list of the RenderView.
2994
2995         * rendering/RenderBlock.cpp:
2996         (WebCore::RenderBlock::handleRunInChild):
2997
2998 2011-11-17  Peter Kasting  <pkasting@google.com>
2999
3000         Unreviewed, rolling out r100572.
3001         https://bugs.webkit.org/show_bug.cgi?id=72393
3002         https://bugs.webkit.org/show_bug.cgi?id=72651
3003
3004         May have caused seg faults on Chromium Linux dbg bot.
3005
3006         * bindings/js/ScriptDebugServer.cpp:
3007         * bindings/js/ScriptDebugServer.h:
3008         * bindings/v8/ScriptDebugServer.cpp:
3009         (WebCore::ScriptDebugServer::stepOutOfFunction):
3010         * bindings/v8/ScriptDebugServer.h:
3011         * inspector/CodeGeneratorInspector.py:
3012         * inspector/Inspector.json:
3013         * inspector/InspectorDebuggerAgent.cpp:
3014         * inspector/InspectorDebuggerAgent.h:
3015         * inspector/front-end/DebuggerModel.js:
3016         (WebInspector.DebuggerModel):
3017         (WebInspector.DebuggerModel.prototype.enableDebugger):
3018         (WebInspector.DebuggerModel.prototype.disableDebugger):
3019         * inspector/front-end/DebuggerPresentationModel.js:
3020         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
3021         * inspector/front-end/Settings.js:
3022
3023 2011-11-17  Sheriff Bot  <webkit.review.bot@gmail.com>
3024
3025         Unreviewed, rolling out r100652.
3026         http://trac.webkit.org/changeset/100652
3027         https://bugs.webkit.org/show_bug.cgi?id=72648
3028
3029         "Caused outline-offset-min-assert.html to assert on debug
3030         builds" (Requested by mwenge2 on #webkit).
3031
3032         * rendering/RenderObject.cpp:
3033         (WebCore::RenderObject::paintOutline):
3034
3035 2011-11-17  Mark Rowe  <mrowe@apple.com>
3036
3037         <http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
3038
3039         Reviewed by Simon Fraser.
3040
3041         * platform/graphics/cg/ImageBufferDataCG.cpp:
3042         (WebCore::haveVImageRoundingErrorFix): When not targeting Snow Leopard we always have the fix.
3043
3044 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
3045
3046         AX: The scrollArea is not correctly returning the scrollbars
3047         https://bugs.webkit.org/show_bug.cgi?id=70247
3048
3049         Reviewed by Beth Dakin.
3050
3051         A few bugs that were preventing this from working.
3052            1) In accessibilityAttributeValue: when an element did not have a renderer() we were returning earlier than we should have
3053            2) We were not updating and clearing the scrollbars correctly when children were cleared or when asked for.
3054
3055         Test: platform/mac/accessibility/scrollbars.html
3056
3057         * accessibility/AccessibilityScrollView.cpp:
3058         (WebCore::AccessibilityScrollView::scrollBar):
3059         (WebCore::AccessibilityScrollView::clearChildren):
3060         * accessibility/AccessibilityScrollView.h:
3061         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
3062         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
3063
3064 2011-11-14  Adam Barth  <abarth@webkit.org>
3065
3066         Unique origins shouldn't remember their scheme, host, or port
3067         https://bugs.webkit.org/show_bug.cgi?id=72308
3068
3069         Reviewed by Eric Seidel.
3070
3071         This patch contains the bulk (all?) of the behavior differences in this
3072         patch series.  Unique origins shouldn't remember their schemes.  Doing
3073         so causes some privileges (e.g., local access) to leak into unique
3074         origins.
3075
3076         * page/SecurityOrigin.cpp:
3077         (WebCore::SecurityOrigin::SecurityOrigin):
3078             - Explicitly clear out the protocol, host, and port for unique
3079               origins.  A future patch will refactor all this code to be more
3080               elegant.
3081         * platform/SchemeRegistry.cpp:
3082         (WebCore::schemesWithUniqueOrigins):
3083             - Merge "about" and "javascript" in with the general case now that
3084               we don't have a separate notion of an empty origin.
3085
3086 2011-11-17  Chris Fleizach  <cfleizach@apple.com>
3087
3088         AX: cleanup style and naming and code in accessibility search mechanism
3089         https://bugs.webkit.org/show_bug.cgi?id=72570
3090
3091         Reviewed by Beth Dakin.
3092
3093         Cleanup the naming and code style within the element searching mechanism.
3094
3095         * accessibility/AccessibilityObject.cpp:
3096         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatch):
3097         (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
3098         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
3099         (WebCore::AccessibilityObject::findMatchingObjects):
3100         * accessibility/AccessibilityObject.h:
3101         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
3102         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
3103
3104 2011-11-17  Julien Chaffraix  <jchaffraix@webkit.org>
3105
3106         CSS table with 100% width can overflow their containing block
3107         https://bugs.webkit.org/show_bug.cgi?id=72180
3108
3109         Reviewed by David Hyatt.
3110
3111         Tests: fast/table/table-in-table-percent-width-collapsing-border-quirks-mode.html
3112                fast/table/table-in-table-percent-width-collapsing-border.html
3113                fast/table/table-in-table-percent-width-quirks-mode.html
3114                fast/table/table-in-table-percent-width.html
3115
3116         After r97555, we would include the borders in a CSS table's logical width even if the 'width'
3117         property was a percent. This does not match what Firefox and IE are doing. Thus don't apply
3118         this behavior to percent 'width'.
3119
3120         * rendering/RenderTable.cpp:
3121         (WebCore::RenderTable::computeLogicalWidth):
3122
3123 2011-11-17  Adrienne Walker  <enne@google.com>
3124
3125         [chromium] Implicitly skip render surfaces that won't be drawn
3126         https://bugs.webkit.org/show_bug.cgi?id=71038
3127
3128         Rather than having redundant checks in three places for how to walk
3129         through a render surface list, instead don't add render surfaces that
3130         don't need to get rendered to the render surface list.
3131
3132         Reviewed by James Robinson.
3133
3134         Covered by existing layout tests and unit tests.
3135
3136         * platform/graphics/chromium/LayerRendererChromium.cpp:
3137         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
3138         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3139         (WebCore::CCLayerTreeHost::paintLayerContents):
3140         (WebCore::CCLayerTreeHost::updateCompositorResources):
3141         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
3142         (WebCore::calculateDrawTransformsAndVisibilityInternal):
3143
3144 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
3145
3146         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
3147         https://bugs.webkit.org/show_bug.cgi?id=72595
3148
3149         Reviewed by Noam Rosenthal.
3150
3151         Removed QWebElement and QtDRTNode usage that reached from WebCore into
3152         WebKit/qt and replaced it with the ability to register custom JSValue
3153         conversion functions. The old code has been moved to WebKit/qt.
3154
3155         * bridge/qt/qt_instance.cpp:
3156         (JSC::Bindings::QtInstance::QtInstance): Remove unnecessary meta type registration
3157         (now done in QtWebElementRuntime::initialize in WebKit/qt).
3158         * bridge/qt/qt_runtime.cpp:
3159         (JSC::Bindings::registerCustomType):
3160         (JSC::Bindings::convertValueToQVariant):
3161         (JSC::Bindings::convertQVariantToValue):
3162         * bridge/qt/qt_runtime.h:
3163
3164 2011-11-17  Fady Samuel  <fsamuel@chromium.org>
3165
3166         Pass Aspect Ratio to RenderStyle
3167         https://bugs.webkit.org/show_bug.cgi?id=72350
3168
3169         Reviewed by Ojan Vafai.
3170
3171         * css/CSSComputedStyleDeclaration.cpp:
3172         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3173         * css/CSSStyleApplyProperty.cpp:
3174         (WebCore::ApplyPropertyAspectRatio::applyInheritValue):
3175         (WebCore::ApplyPropertyAspectRatio::applyInitialValue):
3176         (WebCore::ApplyPropertyAspectRatio::applyValue):
3177         (WebCore::ApplyPropertyAspectRatio::createHandler):
3178         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
3179         * css/CSSStyleSelector.cpp:
3180         (WebCore::CSSStyleSelector::applyProperty):
3181         * css/CSSValue.h:
3182         (WebCore::CSSValue::isAspectRatioValue):
3183         * rendering/style/RenderStyle.h:
3184         (WebCore::InheritedFlags::hasAspectRatio):
3185         (WebCore::InheritedFlags::aspectRatio):
3186         (WebCore::InheritedFlags::aspectRatioDenominator):
3187         (WebCore::InheritedFlags::aspectRatioNumerator):
3188         (WebCore::InheritedFlags::setHasAspectRatio):
3189         (WebCore::InheritedFlags::setAspectRatioDenominator):
3190         (WebCore::InheritedFlags::setAspectRatioNumerator):
3191         (WebCore::InheritedFlags::initialHasAspectRatio):
3192         (WebCore::InheritedFlags::initialAspectRatioDenominator):
3193         (WebCore::InheritedFlags::initialAspectRatioNumerator):
3194         * rendering/style/StyleRareNonInheritedData.cpp:
3195         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3196         (WebCore::StyleRareNonInheritedData::operator==):
3197         * rendering/style/StyleRareNonInheritedData.h:
3198
3199 2011-11-09  Robert Hogan  <robert@webkit.org>
3200
3201         CSS 2.1 failure: outline-color-* tests fail
3202         https://bugs.webkit.org/show_bug.cgi?id=71931
3203
3204         Reviewed by Julien Chaffraix.
3205
3206         WebKit wasn't displaying the top block in these tests because it did not paint the outline
3207         of divs with zero size.
3208
3209         * rendering/RenderObject.cpp:
3210         (WebCore::RenderObject::paintOutline): paint the outline even when the block has zero size
3211
3212 2011-11-17  Sergio Villar Senin  <svillar@igalia.com>
3213
3214         [GTK] plugins/get-url-notify-with-url-that-fails-to-load.html on bots after r100466
3215         https://bugs.webkit.org/show_bug.cgi?id=72613
3216
3217         Reviewed by Martin Robinson.
3218
3219         Do not assume that a SoupRequest always exists, it is not
3220         generated for example when the provided URL is
3221         invalid. ResourceHandle::platformSetDefersLoading was crashing
3222         because of that.
3223
3224         * platform/network/soup/ResourceHandleSoup.cpp:
3225         (WebCore::ResourceHandle::platformSetDefersLoading):
3226
3227 2011-11-17  Vsevolod Vlasov  <vsevik@chromium.org>
3228
3229         Web Inspector: Remove onlineDetectionEnabled from Preferences
3230         https://bugs.webkit.org/show_bug.cgi?id=72617
3231
3232         Reviewed by Pavel Feldman.
3233
3234         * inspector/front-end/ApplicationCacheItemsView.js:
3235         (WebInspector.ApplicationCacheItemsView):
3236         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
3237         * inspector/front-end/Settings.js:
3238
3239 2011-11-17  Ken Buchanan  <kenrb@chromium.org>
3240
3241         Crash from nested tables with generated content
3242         https://bugs.webkit.org/show_bug.cgi?id=68811
3243
3244         Reviewed by David Hyatt.
3245
3246         When adding a child to a table that has generated content, this change
3247         ensures that we leave alone any generated content renderers that belong
3248         to descendants in the tree. They don't need to be touched, and doing so
3249         can create confusion about who the content belongs to.
3250
3251         This patch also simplifies some existing code for finding pseudoelement
3252         renderers. 
3253
3254         * rendering/RenderBlock.cpp:
3255         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
3256         * rendering/RenderObject.cpp:
3257         (WebCore::RenderObject::addChild):
3258         (WebCore::RenderObject::isBeforeAfterContentGeneratedByAncestor): Added
3259         * rendering/RenderObject.h:
3260         (WebCore::RenderObject::findAfterContentRenderer): Deleted
3261         (WebCore::RenderObject::findBeforeContentRenderer): Deleted
3262         * rendering/RenderObjectChildList.cpp:
3263         (WebCore::RenderObjectChildList::beforePseudoElementRenderer):
3264         (WebCore::RenderObjectChildList::afterPseudoElementRenderer):
3265         * rendering/RenderTable.cpp:
3266         (WebCore::RenderTable::addChild):
3267         * rendering/RenderTableRow.cpp:
3268         (WebCore::RenderTableRow::addChild):
3269         * rendering/RenderTableSection.cpp:
3270         (WebCore::RenderTableSection::addChild):
3271
3272 2011-11-17  Patrick Gansterer  <paroga@webkit.org>
3273
3274         Unreviewed WinCE build fix for r94119.
3275
3276         MSVC throws multiply defined symbols linker error when using local class in inline function.
3277
3278         * bindings/js/JSDictionary.h:
3279         (WebCore::JSDictionary::IdentitySetter::identitySetter):
3280         (WebCore::JSDictionary::tryGetProperty):
3281
3282 2011-11-17  Eric Carlson  <eric.carlson@apple.com>
3283
3284         TextTrackList not sorted correctly
3285         https://bugs.webkit.org/show_bug.cgi?id=72545
3286
3287         Reviewed by Darin Adler.
3288
3289         Test: media/track/track-texttracks.html
3290
3291         * WebCore.xcodeproj/project.pbxproj: Add TextTrack.h to WebCore private headers because 
3292             it is included by HTMLMediaElement.h.
3293         * html/LoadableTextTrack.cpp:
3294         (WebCore::LoadableTextTrack::LoadableTextTrack): Pass track type to base class constructor.
3295         (WebCore::LoadableTextTrack::trackElementIndex): New, return the <track> element's tree order
3296             for sorting.
3297         * html/LoadableTextTrack.h:
3298
3299         * html/TextTrack.cpp:
3300         (WebCore::TextTrack::TextTrack): Set track type.
3301         * html/TextTrack.h:
3302         (WebCore::TextTrack::create): Ditto.
3303         (WebCore::TextTrack::trackType): Ditto.
3304
3305         * html/track/TextTrackList.cpp:
3306         (TextTrackList::length): Update to deal with two TextTrack vectors.
3307         (TextTrackList::item): Ditto.
3308         (TextTrackList::append): Ditto.
3309         (TextTrackList::remove): Ditto
3310         * html/track/TextTrackList.h: Store the two types of TextTracks in separate Vectors to make
3311             it simpler to keep them in the correct order.
3312
3313 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
3314
3315         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
3316         https://bugs.webkit.org/show_bug.cgi?id=72596
3317
3318         Reviewed by Kenneth Rohde Christiansen.
3319
3320         We don't need to use QWebSettings here, because we now propagate the DNS prefetch
3321         setting to WebCore::Settings and the rest of WebCore checks the setting before calling
3322         WebCore::prefetchDNS.
3323
3324         * platform/network/qt/DnsPrefetchHelper.cpp:
3325         (WebCore::prefetchDNS): Removed the use of QWebSettings.
3326         * platform/network/qt/DnsPrefetchHelper.h: Remove offending qwebsettings.h inclusion.
3327
3328 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
3329
3330         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
3331         https://bugs.webkit.org/show_bug.cgi?id=72594
3332
3333         Reviewed by Kenneth Rohde Christiansen.
3334
3335         Move the cache for the resource pixmaps into ImageQt.cpp.
3336
3337         * platform/graphics/Image.h: Add Qt specific setter for resource pixmaps.
3338         * platform/graphics/qt/ImageQt.cpp: Moved resource pixmap hash from qwebsettings.
3339         (earlyClearGraphics):
3340         (graphics):
3341         (loadResourcePixmap):
3342         (WebCore::Image::setPlatformResource):
3343
3344 2011-11-17  Zeno Albisser  <zeno@webkit.org>
3345
3346         [Qt][WK2] Touch/Mouse events are delivered with wrong coordinates.
3347         https://bugs.webkit.org/show_bug.cgi?id=72604
3348
3349         When using the QtViewportInterationEngine for zooming/panning,
3350         no additional scroll offset should be applied to input events
3351         by the ScrollView.
3352
3353         This patch is based on work by Andreas Kling.
3354
3355         Reviewed by Kenneth Rohde Christiansen.
3356
3357         * platform/ScrollView.cpp:
3358         (WebCore::ScrollView::windowToContents):
3359         (WebCore::ScrollView::contentsToWindow):
3360
3361 2011-11-17  Ben Murdoch  <benm@google.com>
3362
3363         Unreviewed build fix.
3364
3365         Fix the Windows builds by adding WorkerEventQueue.cpp|h to the
3366         vcproj. Build break was introduced in
3367         https://bugs.webkit.org/show_bug.cgi?id=72528
3368
3369         * WebCore.vcproj/WebCore.vcproj: Add missing files.
3370
3371 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
3372
3373         CSS Exclusions: parse the wrap-margin and wrap-padding properties
3374         https://bugs.webkit.org/show_bug.cgi?id=71900
3375
3376         Reviewed by Dean Jackson.
3377
3378         Tests: fast/exclusions/wrap-margin-parsing.html
3379                fast/exclusions/wrap-padding-parsing.html
3380
3381         * css/CSSComputedStyleDeclaration.cpp:
3382         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3383         * css/CSSParser.cpp:
3384         (WebCore::isSimpleLengthPropertyID):
3385         (WebCore::CSSParser::parseValue):
3386         * css/CSSProperty.cpp:
3387         (WebCore::CSSProperty::isInheritedProperty):
3388         * css/CSSPropertyNames.in:
3389         * css/CSSStyleApplyProperty.cpp:
3390         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
3391         * css/CSSStyleSelector.cpp:
3392         (WebCore::CSSStyleSelector::applyProperty):
3393         * rendering/style/RenderStyle.cpp:
3394         (WebCore::RenderStyle::diff):
3395         * rendering/style/RenderStyle.h:
3396         (WebCore::InheritedFlags::wrapPadding):
3397         (WebCore::InheritedFlags::setWrapPadding):
3398         (WebCore::InheritedFlags::initialWrapPadding):
3399         (WebCore::InheritedFlags::wrapMargin):
3400         (WebCore::InheritedFlags::setWrapMargin):
3401         (WebCore::InheritedFlags::initialWrapMargin):
3402         * rendering/style/StyleRareNonInheritedData.cpp:
3403         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3404         (WebCore::StyleRareNonInheritedData::operator==):
3405         * rendering/style/StyleRareNonInheritedData.h:
3406
3407 2011-11-17  Kenichi Ishibashi  <bashi@chromium.org>
3408
3409         [chromium] don't call fontconfig twice in complex text path
3410         https://bugs.webkit.org/show_bug.cgi?id=38701
3411
3412         Adds a new API for getting font family. For now, FontCacheLinux calls the new API, but don't use additional properties for compatibility. The old API will be removed when Chromium is ready to use new API.
3413
3414         Reviewed by Tony Chang.
3415
3416         No new tests. No behavior changes for now.
3417
3418         * platform/chromium/PlatformSupport.h: Added FontFamily struct and changed the declaration of getFontFamilyForCharacters().
3419         * platform/graphics/chromium/FontCacheLinux.cpp:
3420         (WebCore::FontCache::getFontDataForCharacters): Uses new PlatformSupport::getFontFamilyForCharacters().
3421         * platform/graphics/chromium/FontPlatformDataLinux.h:
3422         (WebCore::FontPlatformData::setFakeBold): Added.
3423         (WebCore::FontPlatformData::setFakeItalic): Added.
3424
3425 2011-11-17  Mario Sanchez Prada  <msanchez@igalia.com>
3426
3427         [GTK] Consider parent AtkObject in webkit_accessible_get_parent(), if already set
3428         https://bugs.webkit.org/show_bug.cgi?id=72525
3429
3430         Reviewed by Xan Lopez.
3431
3432         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3433         (webkit_accessible_get_parent): Call to the implementation of
3434         atk_object_get_parent in AtkObject class to check whether a parent
3435         AtkObject has been previously set, before trying to find one.
3436
3437 2011-11-17  Pavel Feldman  <pfeldman@google.com>
3438
3439         Not reviewed: fix IE user agents strings in the inspector.
3440
3441         * inspector/front-end/SettingsScreen.js:
3442         (WebInspector.SettingsScreen.prototype._createUserAgentSelectRowElement.get const):
3443
3444 2011-11-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3445
3446         Make use-fixed-layout work reliable
3447         https://bugs.webkit.org/show_bug.cgi?id=72511
3448
3449         Reviewed by Simon Hausmann.
3450
3451         Always send a viewport update per page load as we depend on that,
3452         to reset all viewport handling before doing layout.
3453
3454         * page/Page.cpp:
3455         (WebCore::Page::updateViewportArguments):
3456
3457 2011-11-16  Alexander Pavlov  <apavlov@chromium.org>
3458
3459         Web Inspector: inspector follows javascript: hrefs as relative
3460         https://bugs.webkit.org/show_bug.cgi?id=72373
3461
3462         javascript: hrefs should never be linkified for security.
3463
3464         Reviewed by Yury Semikhatsky.
3465
3466         * inspector/front-end/ElementsTreeOutline.js:
3467         (WebInspector.ElementsTreeElement.prototype._buildAttributeDOM):
3468         * inspector/front-end/ResourceUtils.js:
3469         (WebInspector.completeURL):
3470
3471 2011-11-17  Nikolas Zimmermann  <nzimmermann@rim.com>
3472
3473         Not reviewed. Fix 32bit builds.
3474
3475         * platform/ClockGeneric.cpp:
3476         (ClockGeneric::now): Use narrowPrecisionToFloat.
3477         * rendering/FilterEffectRenderer.cpp:
3478         (WebCore::FilterEffectRenderer::build): Use it correctly.
3479
3480 2011-11-17  Dominic Mazzoni  <dmazzoni@google.com>
3481
3482         Accessibility: Chromium requires an AX notification when an iframe loads.
3483         https://bugs.webkit.org/show_bug.cgi?id=72239
3484
3485         When a document finishes loading, we were sending an AXLoadComplete if it
3486         was the top document. Now, if it's a document in an iframe, send an
3487         AXLayoutComplete on the iframe.
3488
3489         Reviewed by Chris Fleizach.
3490
3491         Test: accessibility/loading-iframe-sends-notification.html
3492
3493         * dom/Document.cpp:
3494         (WebCore::Document::implicitClose):
3495
3496 2011-11-16  Mark Rowe  <mrowe@apple.com>
3497
3498         <http://webkit.org/b/72574> Remove unnecessary use of CarbonCore APIs from Audio code
3499
3500         Reviewed by Andy Estes.
3501
3502         * platform/audio/mac/AudioDestinationMac.cpp:
3503         (WebCore::AudioDestinationMac::AudioDestinationMac): Switch from using the Carbon Component Manager
3504         to using AudioUnit's own component interface.
3505         (WebCore::AudioDestinationMac::~AudioDestinationMac): Ditto.
3506         * platform/audio/mac/AudioFileReaderMac.cpp:
3507         (WebCore::AudioFileReader::AudioFileReader): Remove an unncessary trip through the Carbon File Manager
3508         when converting a char* path to a CFURLRef representing the same.
3509
3510 2011-11-17  Adam Barth  <abarth@webkit.org>
3511
3512         CSP report-only mode doesn't work from an HTTP header
3513         https://bugs.webkit.org/show_bug.cgi?id=71958
3514
3515         Reviewed by Eric Seidel.
3516
3517         "It's tested or it's broken." -- Adam Leventhal
3518
3519         Test: http/tests/security/contentSecurityPolicy/report-only-from-header.php
3520
3521         * loader/FrameLoader.cpp:
3522         (WebCore::FrameLoader::didBeginDocument):
3523
3524 2011-11-15  Pavel Feldman  <pfeldman@google.com>
3525
3526         Web Inspector: introduce Debugger domain capabilities concept.
3527         https://bugs.webkit.org/show_bug.cgi?id=72393
3528
3529         Many of the Preferences that we have in Settings.js and override in DevTools.js
3530         are really not preferences, but capabilities. Protocol clients should have a way
3531         of figuring out whether some capability is present before using it.
3532
3533         Reviewed by Yury Semikhatsky.
3534
3535         * bindings/js/ScriptDebugServer.cpp:
3536         (WebCore::ScriptDebugServer::canSetScriptSource):
3537         * bindings/js/ScriptDebugServer.h:
3538         * bindings/v8/ScriptDebugServer.cpp:
3539         (WebCore::ScriptDebugServer::canSetScriptSource):
3540         * bindings/v8/ScriptDebugServer.h:
3541         * inspector/CodeGeneratorInspector.py:
3542         * inspector/Inspector.json:
3543         * inspector/InspectorDebuggerAgent.cpp:
3544         (WebCore::InspectorDebuggerAgent::getCapabilities):
3545         * inspector/InspectorDebuggerAgent.h:
3546         * inspector/front-end/DebuggerModel.js:
3547         (WebInspector.DebuggerModel):
3548         (WebInspector.DebuggerModel.prototype.enableDebugger):
3549         (WebInspector.DebuggerModel.prototype.canSetScriptSource):
3550         * inspector/front-end/DebuggerPresentationModel.js:
3551         (WebInspector.DebuggerPresentationModel.prototype.canEditScriptSource):
3552         * inspector/front-end/Settings.js:
3553
3554 2011-11-17  Mihnea Ovidenie  <mihnea@adobe.com>
3555
3556         CSS exclusions: parse the wrap-flow and wrap-through properties
3557         https://bugs.webkit.org/show_bug.cgi?id=71904
3558
3559         Reviewed by Dean Jackson.
3560
3561         Tests: fast/exclusions/wrap-flow-parsing.html
3562                fast/exclusions/wrap-through-parsing.html
3563
3564         * css/CSSComputedStyleDeclaration.cpp:
3565         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3566         * css/CSSParser.cpp:
3567         (WebCore::CSSParser::parseValue):
3568         * css/CSSPrimitiveValueMappings.h:
3569         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3570         (WebCore::CSSPrimitiveValue::operator WrapFlow):
3571         (WebCore::CSSPrimitiveValue::operator WrapThrough):
3572         * css/CSSProperty.cpp:
3573         (WebCore::CSSProperty::isInheritedProperty):
3574         * css/CSSPropertyNames.in:
3575         * css/CSSStyleSelector.cpp:
3576         (WebCore::CSSStyleSelector::applyProperty):
3577         * css/CSSValueKeywords.in:
3578         * rendering/style/RenderStyle.cpp:
3579         (WebCore::RenderStyle::diff):
3580         * rendering/style/RenderStyle.h:
3581         (WebCore::InheritedFlags::wrapFlow):
3582         (WebCore::InheritedFlags::wrapThrough):
3583         (WebCore::InheritedFlags::setWrapFlow):
3584         (WebCore::InheritedFlags::setWrapThrough):
3585         (WebCore::InheritedFlags::initialWrapFlow):
3586         (WebCore::InheritedFlags::initialWrapThrough):
3587         * rendering/style/RenderStyleConstants.h:
3588         * rendering/style/StyleRareNonInheritedData.cpp:
3589         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3590         (WebCore::StyleRareNonInheritedData::operator==):
3591         * rendering/style/StyleRareNonInheritedData.h:
3592
3593 2011-11-16  Dean Jackson  <dino@apple.com>
3594
3595         Implement filter function shorthands
3596         https://bugs.webkit.org/show_bug.cgi?id=68475
3597
3598         Reviewed by Simon Fraser.
3599
3600         Implement the shorthand functions for filter effects.
3601         This includes grayscale, sepia, invert, hue-rotate, saturate,
3602         opacity, gamma, drop-shadow and blur. At the moment sharpen
3603         and url are not supported.
3604
3605         CSSParser needed to be updated because it was mistakenly
3606         clamping saturation values to [0,1]. Any positive number
3607         is allowed so you can produce super-saturated images.
3608
3609         The biggest change was the API to FilterEffectRenderer. It now
3610         builds a list of effects and applies the filter itself.
3611
3612         Note that the drop-shadow and blur operations don't yet
3613         provide accurate results because they produce an output image
3614         that is larger than the input. See
3615         https://bugs.webkit.org/show_bug.cgi?id=71929
3616         https://bugs.webkit.org/show_bug.cgi?id=71930
3617
3618         While I was there, I fixed a small style issue in
3619         CustomFilterOperation.
3620
3621         Tests: css3/filters/effect-blur.html
3622                css3/filters/effect-combined.html
3623                css3/filters/effect-drop-shadow.html
3624                css3/filters/effect-gamma.html
3625                css3/filters/effect-grayscale.html
3626                css3/filters/effect-hue-rotate.html
3627                css3/filters/effect-invert.html
3628                css3/filters/effect-opacity.html
3629                css3/filters/effect-saturate.html
3630                css3/filters/effect-sepia.html
3631
3632         * WebCore.xcodeproj/project.pbxproj: Add StyleShader.h to
3633         the project (missing from earlier commit).
3634         * css/CSSParser.cpp:
3635         (WebCore::CSSParser::isValidFilterArgument): Don't clamp
3636         saturate to [0,1]
3637         * platform/graphics/filters/CustomFilterOperation.h:
3638         * rendering/FilterEffectRenderer.cpp:
3639         (WebCore::endMatrixRow):
3640         (WebCore::lastMatrixRow):
3641         (WebCore::FilterEffectRenderer::FilterEffectRenderer):
3642         (WebCore::FilterEffectRenderer::inputContext):
3643         (WebCore::FilterEffectRenderer::build):
3644         (WebCore::FilterEffectRenderer::prepare):
3645         (WebCore::FilterEffectRenderer::apply):
3646         * rendering/FilterEffectRenderer.h:
3647         (WebCore::FilterEffectRenderer::setSourceImageRect):
3648         (WebCore::FilterEffectRenderer::output):
3649         (WebCore::FilterEffectRenderer::setMaxEffectRects):
3650         (WebCore::FilterEffectRenderer::lastEffect):
3651         * rendering/RenderLayer.cpp:
3652         (WebCore::RenderLayer::paintLayer):
3653         (WebCore::RenderLayer::updateOrRemoveFilterEffect):
3654         (WebCore::RenderLayer::updateFilterBackingStore):
3655
3656 2011-11-16  Kentaro Hara  <haraken@chromium.org>
3657
3658         Remove all custom constructors of Events from JSC
3659         https://bugs.webkit.org/show_bug.cgi?id=72577
3660
3661         Reviewed by Adam Barth.
3662
3663         - Makes CodeGeneratorJS.pm generate Event constructors
3664         if [ConstructorTemplate=Event] IDL is specified.
3665         - Removes EventConstructors.h and JSEventConstructors.cpp.
3666         - Replaces all JSC custom constructors of Events
3667         with the generated code by [ConstructorTemplate=Event] IDL.
3668
3669         Tests: fast/events/constructors/before-load-event-constructor.html
3670                fast/events/constructors/close-event-constructor.html
3671                fast/events/constructors/custom-event-constructor.html
3672                fast/events/constructors/error-event-constructor.html
3673                fast/events/constructors/event-constructors.html
3674                fast/events/constructors/hash-change-event-constructor.html
3675                fast/events/constructors/message-event-constructor.html
3676                fast/events/constructors/overflow-event-constructor.html
3677                fast/events/constructors/page-transition-event-constructor.html
3678                fast/events/constructors/pop-state-event-constructor.html
3679                fast/events/constructors/progress-event-constructor.html
3680                fast/events/constructors/track-event-constructor.html
3681                fast/events/constructors/webkit-animation-event-constructor.html
3682                fast/events/constructors/webkit-transition-event-constructor.html
3683
3684         * bindings/generic/EventConstructors.h: Removed. This is what we wanted to do in this patch.
3685         * bindings/js/JSEventConstructors.cpp: Ditto.
3686         * GNUmakefile.list.am: Removed EventConstructors.h and JSEventConstructors.cpp.
3687         * Target.pri: Ditto.
3688         * UseJSC.cmake: Ditto.
3689         * WebCore.gypi: Ditto.
3690         * WebCore.vcproj/WebCore.vcproj: Ditto.
3691         * WebCore.xcodeproj/project.pbxproj: Ditto.
3692         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
3693
3694         * bindings/scripts/CodeGeneratorJS.pm:
3695         (GenerateHeader): Added JSDictionary.h.
3696         (GenerateConstructorDeclaration): Added a header for fillXXXXEventInit(...).
3697         (GenerateConstructorDefinition): Generates an Event constructor. The generated code is the same as the code that had been written in JSEventConstructors.cpp.
3698         (IsConstructable): Judges if a given interface is constructable.
3699         (IsConstructorTemplate): Judges if a given interface has a given template, e.g. judges if an interface has [ConstructorTemplate=Event].
3700
3701         * bindings/scripts/test/TestEventConstructor.idl: Changed 'CustomConstructor=Event' to 'ConstructorTemplate=Event'. We should have changed this in r100108.
3702         * bindings/scripts/test/JS/JSTestEventConstructor.cpp: Updated a run-bindings-tests result.
3703         (WebCore::JSTestEventConstructorConstructor::constructJSTestEventConstructor):
3704         (WebCore::fillTestEventConstructorInit):
3705         * bindings/scripts/test/JS/JSTestEventConstructor.h: Ditto.
3706         * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Ditto.
3707         (WebCore::V8TestEventConstructor::constructorCallback):
3708         (WebCore::fillTestEventConstructorInit):
3709         * bindings/scripts/test/V8/V8TestEventConstructor.h: Ditto.
3710
3711         * dom/BeforeLoadEvent.idl: In essence, replaced [JSCustomConstructor] IDL with [JSConstructorTemplate=Event] IDL.
3712         * dom/CustomEvent.idl: Ditto.
3713         * dom/ErrorEvent.idl: Ditto.
3714         * dom/Event.idl: Ditto.
3715         * dom/HashChangeEvent.idl: Ditto.
3716         * dom/MessageEvent.idl: Ditto.
3717         * dom/OverflowEvent.idl: Ditto.
3718         * dom/PageTransitionEvent.idl: Ditto.
3719         * dom/PopStateEvent.idl: Ditto.
3720         * dom/ProgressEvent.idl: Ditto.
3721         * dom/WebKitAnimationEvent.idl: Ditto.
3722         * dom/WebKitTransitionEvent.idl: Ditto.
3723         * html/track/TrackEvent.idl: Ditto.
3724         * websockets/CloseEvent.idl: Ditto.
3725
3726 2011-11-16  Dean Jackson  <dino@apple.com>
3727
3728         Build fix for Apple WebKit due to r100560.
3729         When I removed the violating header file it lost the
3730         reference to Color.
3731
3732         No review.
3733
3734         * platform/graphics/filters/FilterOperation.h:
3735
3736 2011-11-16  Dean Jackson  <dino@apple.com>
3737
3738         DropShadowFilterOperation violates platform isolation
3739         https://bugs.webkit.org/show_bug.cgi?id=72544
3740
3741         Reviewed by Simon Fraser.
3742
3743         Move ShadowData properties into the DropShadowFilterOperation
3744         to avoid depending on something outside platform.
3745
3746         * css/CSSComputedStyleDeclaration.cpp:
3747         (WebCore::CSSComputedStyleDeclaration::valueForFilter):
3748         * css/CSSStyleSelector.cpp:
3749         (WebCore::CSSStyleSelector::createFilterOperations):
3750         * platform/graphics/filters/FilterOperation.h:
3751         (WebCore::DropShadowFilterOperation::create):
3752         (WebCore::DropShadowFilterOperation::x):
3753         (WebCore::DropShadowFilterOperation::y):
3754         (WebCore::DropShadowFilterOperation::stdDeviation):
3755         (WebCore::DropShadowFilterOperation::color):
3756         (WebCore::DropShadowFilterOperation::operator==):
3757         (WebCore::DropShadowFilterOperation::DropShadowFilterOperation):
3758
3759 2011-11-16  Adam Bergkvist  <adam.bergkvist@ericsson.com>
3760
3761         Use a simple page client for user consent in getUserMedia()
3762         https://bugs.webkit.org/show_bug.cgi?id=70897
3763
3764         Reviewed by Adam Barth.
3765
3766         This is one in a series of patches that update the MediaStream feature
3767         to use WebCore platform interfaces.
3768
3769         Covered by existing tests.
3770
3771         * GNUmakefile.list.am:
3772         * WebCore.gypi:
3773         * mediastream/MediaStreamClient.h: Removed.
3774         * mediastream/MediaStreamController.cpp: Removed.
3775         * mediastream/MediaStreamController.h: Removed.
3776         * mediastream/MediaStreamFrameController.cpp: Removed.
3777         * mediastream/MediaStreamFrameController.h: Removed.
3778         * mediastream/UserMediaClient.h: Added.
3779         (WebCore::UserMediaClient::~UserMediaClient):
3780         * mediastream/UserMediaRequest.cpp: Added.
3781         (WebCore::UserMediaRequest::create):
3782         (WebCore::UserMediaRequest::UserMediaRequest):
3783         (WebCore::UserMediaRequest::~UserMediaRequest):
3784         (WebCore::UserMediaRequest::start):
3785         (WebCore::UserMediaRequest::mediaStreamSourcesQueryCompleted):
3786         (WebCore::UserMediaRequest::succeed):
3787         (WebCore::UserMediaRequest::fail):
3788         (WebCore::UserMediaRequest::contextDestroyed):
3789         (WebCore::UserMediaRequest::parseOptions):
3790         * mediastream/UserMediaRequest.h: Added.
3791         (WebCore::UserMediaRequest::audio):
3792         (WebCore::UserMediaRequest::video):
3793         (WebCore::UserMediaRequest::cameraPreferenceUser):
3794         (WebCore::UserMediaRequest::cameraPreferenceEnvironment):
3795         (WebCore::UserMediaRequest::successCallback):
3796         (WebCore::UserMediaRequest::errorCallback):
3797         * page/CallbackTask.h: Removed.
3798         * page/Frame.cpp:
3799         (WebCore::Frame::Frame):
3800         (WebCore::Frame::~Frame):
3801         (WebCore::Frame::pageDestroyed):
3802         (WebCore::Frame::transferChildFrameToNewDocument):
3803         * page/Frame.h:
3804         * page/Navigator.cpp:
3805         (WebCore::Navigator::webkitGetUserMedia):
3806         * page/NavigatorUserMediaErrorCallback.h:
3807         * page/Page.cpp:
3808         (WebCore::Page::Page):
3809         (WebCore::Page::~Page):
3810         (WebCore::Page::PageClients::PageClients):
3811         * page/Page.h:
3812         (WebCore::Page::userMediaClient):
3813
3814 2011-11-16  David Grogan  <dgrogan@chromium.org>
3815
3816         instantiate WorkerEventQueue in WorkerContext
3817         https://bugs.webkit.org/show_bug.cgi?id=72528
3818
3819         Reviewed by David Levin.
3820
3821         No new tests - nothing uses it yet.
3822
3823         * workers/WorkerContext.cpp:
3824         (WebCore::WorkerContext::WorkerContext):
3825         Instantiate WorkerEventQueue in InitializerList
3826
3827         * workers/WorkerEventQueue.h:
3828         Don't inherit from RefCounted, WorkerContext has an OwnPtr to it
3829
3830 2011-11-16  Kentaro Hara  <haraken@chromium.org>
3831
3832         Unreviewed. Rebaselined run-bindings-tests results.
3833
3834         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
3835         (WebCore::JSTestEventConstructor::JSTestEventConstructor):
3836         (WebCore::JSTestEventConstructorOwner::finalize):
3837         * bindings/scripts/test/JS/JSTestEventConstructor.h:
3838         (WebCore::JSTestEventConstructor::impl):
3839         (WebCore::JSTestEventConstructor::releaseImpl):
3840         * bindings/scripts/test/JS/JSTestInterface.cpp:
3841         (WebCore::JSTestInterface::JSTestInterface):
3842         (WebCore::JSTestInterfaceOwner::finalize):
3843         * bindings/scripts/test/JS/JSTestInterface.h:
3844         (WebCore::JSTestInterface::impl):
3845         (WebCore::JSTestInterface::releaseImpl):
3846         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
3847         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
3848         (WebCore::JSTestMediaQueryListListenerOwner::finalize):
3849         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
3850         (WebCore::JSTestMediaQueryListListener::impl):
3851         (WebCore::JSTestMediaQueryListListener::releaseImpl):
3852         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
3853         (WebCore::JSTestNamedConstructor::JSTestNamedConstructor):
3854         (WebCore::JSTestNamedConstructorOwner::finalize):
3855         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
3856         (WebCore::JSTestNamedConstructor::impl):
3857         (WebCore::JSTestNamedConstructor::releaseImpl):
3858         * bindings/scripts/test/JS/JSTestObj.cpp:
3859         (WebCore::JSTestObj::JSTestObj):
3860         (WebCore::JSTestObjOwner::finalize):
3861         * bindings/scripts/test/JS/JSTestObj.h:
3862         (WebCore::JSTestObj::impl):
3863         (WebCore::JSTestObj::releaseImpl):
3864         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
3865         (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
3866         (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
3867         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
3868         (WebCore::JSTestSerializedScriptValueInterface::impl):
3869         (WebCore::JSTestSerializedScriptValueInterface::releaseImpl):
3870
3871 2011-11-16  Jay Civelli  <jcivelli@chromium.org>
3872
3873         Make sure MHTML documents use the domain of the MHTML file.
3874         https://bugs.webkit.org/show_bug.cgi?id=72445
3875
3876         Reviewed by Adam Barth.
3877
3878         * dom/Document.h:
3879         (WebCore::Document::setBaseURL):
3880         * loader/FrameLoader.cpp:
3881         (WebCore::FrameLoader::receivedFirstData):
3882
3883 2011-11-16  Julien Chaffraix  <jchaffraix@webkit.org>
3884
3885         Update supported display list after -webkit-grid and -webkit-inline-grid addition
3886         https://bugs.webkit.org/show_bug.cgi?id=72559
3887
3888         Reviewed by Tony Chang.
3889
3890         * css/CSSParser.cpp:
3891         (WebCore::CSSParser::parseValue): Added the 2 new supported
3892         values (forgotten in the previous change).
3893
3894 2011-11-11  Adrienne Walker  <enne@google.com>
3895
3896         [chromium] Expose mock scrollbars to window.internals
3897         https://bugs.webkit.org/show_bug.cgi?id=72195
3898
3899         Reviewed by James Robinson.
3900
3901         * testing/Internals.cpp:
3902         (WebCore::Internals::setMockScrollbarsEnabled):
3903         * testing/Internals.h:
3904         * testing/Internals.idl:
3905
3906 2011-11-16  Michael Nordman  <michaeln@google.com>
3907
3908         ApplicationCache manifest should work with any MIME type.
3909         https://bugs.webkit.org/show_bug.cgi?id=72082
3910
3911         Reviewed by Alexey Proskuryakov.
3912
3913         * loader/appcache/ApplicationCacheGroup.cpp:
3914         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse): Remove the test for a particular type.
3915
3916 2011-11-16  Daniel Sievers  <sievers@chromium.org>
3917
3918         [Chromium] Avoid color mask operations for root layers
3919         https://bugs.webkit.org/show_bug.cgi?id=72452
3920
3921         Instead of relying on the combination of clearing the surface and initializing
3922         the alpha channel to 1.0 followed by disabling alpha in the color mask when
3923         rendering the root layer tiles, add shaders to support writing out opaque layers
3924         (alpha channel values written as 1.0).
3925
3926         Reviewed by James Robinson.
3927
3928         No functional change made that requires new tests.
3929
3930         * platform/graphics/chromium/LayerRendererChromium.cpp:
3931         (WebCore::LayerRendererChromium::drawLayersInternal):
3932         (WebCore::LayerRendererChromium::initializeSharedObjects):
3933         (WebCore::LayerRendererChromium::tilerProgramOpaque):
3934         (WebCore::LayerRendererChromium::tilerProgramOpaqueAA):
3935         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaque):
3936         (WebCore::LayerRendererChromium::tilerProgramSwizzleOpaqueAA):
3937         (WebCore::LayerRendererChromium::cleanupSharedObjects):
3938         * platform/graphics/chromium/LayerRendererChromium.h:
3939         * platform/graphics/chromium/ShaderChromium.cpp:
3940         (WebCore::FragmentTexOpaqueBinding::FragmentTexOpaqueBinding):
3941         (WebCore::FragmentTexOpaqueBinding::init):
3942         (WebCore::FragmentShaderRGBATexOpaque::getShaderString):
3943         (WebCore::FragmentShaderRGBATexSwizzleOpaque::getShaderString):
3944         (WebCore::FragmentTexClampOpaqueAABinding::FragmentTexClampOpaqueAABinding):
3945         (WebCore::FragmentTexClampOpaqueAABinding::init):
3946         (WebCore::FragmentShaderRGBATexClampOpaqueAA::getShaderString):
3947         (WebCore::FragmentShaderRGBATexClampSwizzleOpaqueAA::getShaderString):
3948         * platform/graphics/chromium/ShaderChromium.h:
3949         (WebCore::FragmentTexOpaqueBinding::alphaLocation):
3950         (WebCore::FragmentTexOpaqueBinding::samplerLocation):
3951         (WebCore::FragmentTexClampOpaqueAABinding::alphaLocation):
3952         (WebCore::FragmentTexClampOpaqueAABinding::samplerLocation):
3953         (WebCore::FragmentTexClampOpaqueAABinding::fragmentTexTransformLocation):
3954         (WebCore::FragmentTexClampOpaqueAABinding::edgeLocation):
3955         * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp:
3956         (WebCore::CCTiledLayerImpl::draw):
3957         * platform/graphics/chromium/cc/CCTiledLayerImpl.h:
3958
3959 2011-11-16  Tim Horton  <timothy_horton@apple.com>
3960
3961         Implement CSS3 Images cross-fade() image function
3962         https://bugs.webkit.org/show_bug.cgi?id=52162
3963         <rdar://problem/10209254>
3964
3965         Reviewed by Simon Fraser.
3966
3967         Render -webkit-cross-fade. Only cross-fades entirely composed of images will render for now,
3968         cross-fades involving generated images are not yet implemented.
3969
3970         Reorganize GeneratedImage to be the base class for GeneratorGeneratedImage and CrossfadeGeneratedImage.
3971
3972         Add a pending state to CSSImageGeneratorValue, which is used to enable the pending-images loading
3973         mechanism for -webkit-cross-fade's sub-images. Rework the logic in CSSStyleSelector to support pending
3974         generated images.
3975         
3976         Support parsing fractional values for the cross-fade amount (for example, 0.5 = 50%). Clamp cross-fade
3977         amount to 0-1 range.
3978
3979         Tests: css3/images/cross-fade-invalidation.html
3980                css3/images/cross-fade-simple.html
3981                css3/images/cross-fade-sizing.html
3982                css3/images/cross-fade-tiled.html
3983
3984         * CMakeLists.txt:
3985         * GNUmakefile.list.am:
3986         * Target.pri:
3987         * WebCore.gypi:
3988         * WebCore.xcodeproj/project.pbxproj:
3989         * css/CSSCanvasValue.h:
3990         (WebCore::CSSCanvasValue::isPending):
3991         (WebCore::CSSCanvasValue::loadSubimages):
3992         * css/CSSCrossfadeValue.cpp:
3993         (WebCore::CSSCrossfadeValue::isPending):
3994         (WebCore::CSSCrossfadeValue::loadSubimages):
3995         (WebCore::subimageIsPending):
3996         (WebCore::loadSubimage):
3997         (WebCore::cachedImageForCSSValue):
3998         (WebCore::CSSCrossfadeValue::image):
3999         (WebCore::CSSCrossfadeValue::crossfadeChanged):
4000         * css/CSSCrossfadeValue.h:
4001         (WebCore::CSSCrossfadeValue::create):
4002         (WebCore::CSSCrossfadeValue::~CSSCrossfadeValue):
4003         (WebCore::CSSCrossfadeValue::fixedSize):
4004         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
4005         (WebCore::CSSCrossfadeValue::CrossfadeObserverProxy::CrossfadeObserverProxy):
4006         * css/CSSGradientValue.cpp:
4007         (WebCore::CSSGradientValue::image):
4008         * css/CSSGradientValue.h:
4009         (WebCore::CSSGradientValue::isPending):
4010         (WebCore::CSSGradientValue::loadSubimages):
4011         * css/CSSImageGeneratorValue.cpp:
4012         (WebCore::CSSImageGeneratorValue::generatedOrPendingImage):
4013         (WebCore::CSSImageGeneratorValue::generatedImage):
4014         (WebCore::CSSImageGeneratorValue::isPending):
4015         (WebCore::CSSImageGeneratorValue::loadSubimages):
4016         * css/CSSImageGeneratorValue.h:
4017         * css/CSSParser.cpp:
4018         (WebCore::CSSParser::parseCrossfade):
4019         * css/CSSStyleSelector.cpp:
4020         (WebCore::CSSStyleSelector::styleImage):
4021         (WebCore::CSSStyleSelector::generatedOrPendingFromValue):
4022         (WebCore::CSSStyleSelector::loadPendingImage):
4023         (WebCore::CSSStyleSelector::loadPendingImages):
4024         * css/CSSStyleSelector.h:
4025         * platform/graphics/BitmapImage.h:
4026         * platform/graphics/CrossfadeGeneratedImage.cpp: Added.
4027         (WebCore::CrossfadeGeneratedImage::CrossfadeGeneratedImage):
4028         (WebCore::CrossfadeGeneratedImage::~CrossfadeGeneratedImage):
4029         (WebCore::CrossfadeGeneratedImage::drawCrossfade):
4030         (WebCore::CrossfadeGeneratedImage::draw):
4031         (WebCore::CrossfadeGeneratedImage::drawPattern):
4032         (WebCore::CrossfadeGeneratedImage::imageChanged):
4033         * platform/graphics/CrossfadeGeneratedImage.h: Added.
4034         (WebCore::CrossfadeGeneratedImage::create):
4035         (WebCore::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
4036         (WebCore::CrossfadeSubimageObserverProxy::setReady):
4037         * platform/graphics/GeneratedImage.h:
4038         (WebCore::GeneratedImage::GeneratedImage):
4039         * platform/graphics/GeneratorGeneratedImage.cpp: Renamed from Source/WebCore/platform/graphics/GeneratedImage.cpp.
4040         (WebCore::GeneratorGeneratedImage::draw):
4041         (WebCore::GeneratorGeneratedImage::drawPattern):
4042         (WebCore::GeneratedImage::computeIntrinsicDimensions):
4043         * platform/graphics/GeneratorGeneratedImage.h: Copied from Source/WebCore/platform/graphics/GeneratedImage.h.
4044         (WebCore::GeneratorGeneratedImage::create):
4045         (WebCore::GeneratorGeneratedImage::~GeneratorGeneratedImage):
4046         (WebCore::GeneratorGeneratedImage::GeneratorGeneratedImage):
4047         * platform/graphics/Image.h:
4048         * platform/graphics/ImageBuffer.h:
4049         * rendering/style/StylePendingImage.h:
4050         (WebCore::StylePendingImage::create):
4051         (WebCore::StylePendingImage::data):
4052         (WebCore::StylePendingImage::cssImageValue):
4053         (WebCore::StylePendingImage::cssImageGeneratorValue):
4054         (WebCore::StylePendingImage::StylePendingImage):
4055
4056
4057 2011-11-16  Dan Bernstein  <mitz@apple.com>
4058
4059         WebCore part of <rdar://problem/10262242> Add API for paginated display
4060         https://bugs.webkit.org/show_bug.cgi?id=72537
4061
4062         Reviewed by Anders Carlsson.
4063
4064         * WebCore.exp.in: Exported Page::pageCount().
4065         * page/Page.cpp:
4066         (WebCore::Page::pageCount): Added this getter.
4067         * page/Page.h:
4068
4069 2011-11-16  Shawn Singh  <shawnsingh@chromium.org>
4070
4071         [chromium] Track property changes for render surfaces.
4072         https://bugs.webkit.org/show_bug.cgi?id=72521
4073
4074         Reviewed by James Robinson.
4075
4076         Created CCRenderSurfaceTest for testing.
4077
4078         * platform/graphics/chromium/LayerRendererChromium.cpp:
4079         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
4080         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
4081         (WebCore::CCLayerImpl::resetPropertyChangedFlagForSubtree):
4082         * platform/graphics/chromium/cc/CCLayerImpl.h:
4083         * platform/graphics/chromium/cc/CCRenderSurface.cpp:
4084         (WebCore::CCRenderSurface::CCRenderSurface):
4085         (WebCore::CCRenderSurface::setClipRect):
4086         (WebCore::CCRenderSurface::setContentRect):
4087         (WebCore::CCRenderSurface::surfacePropertyChanged):
4088         * platform/graphics/chromium/cc/CCRenderSurface.h:
4089         (WebCore::CCRenderSurface::resetPropertyChangedFlag):
4090
4091 2011-11-16  Ben Wells  <benwells@chromium.org>
4092
4093         Seaming on border corners with mixed colour alpha borders
4094         https://bugs.webkit.org/show_bug.cgi?id=70471
4095
4096         Reviewed by Simon Fraser.
4097
4098         Seaming is fixed by antialiasing mitred corners for edges that have alpha and are joining
4099         a side that is of a different color.
4100
4101         Test: fast/borders/border-mixed-alpha.html
4102
4103         * rendering/RenderBoxModelObject.cpp:
4104         (WebCore::colorNeedsAntiAliasAtCorner):
4105         (WebCore::RenderBoxModelObject::paintOneBorderSide):
4106
4107 2011-11-16  Sam Weinig  <sam@webkit.org>
4108
4109         JS wrappers of DOM objects should have no-op constructors
4110         https://bugs.webkit.org/show_bug.cgi?id=72556
4111
4112         Reviewed by Geoffrey Garen.
4113
4114         Stop using a RefPtr to hold DOM objects contained by JavaScript
4115         wrappers and instead use a raw pointer. We were already releasing
4116         the underlying object before the destructor ran (via the finalizer)
4117         so the default behavior of destroying the RefPtr is always unnecessary
4118         busy work. 
4119
4120         * bindings/js/JSCSSValueCustom.cpp:
4121         (WebCore::JSCSSValueOwner::finalize):
4122         * bindings/js/JSNodeCustom.cpp:
4123         (WebCore::JSNodeOwner::finalize):
4124         (WebCore::JSNode::visitChildren):
4125         Call releaseImpl() instead of clearImpl().
4126
4127         * bindings/scripts/CodeGeneratorJS.pm:
4128         (GenerateHeader):
4129         Stop storing m_impl in a RefPtr and instead use a raw pointer. Switch
4130         clearImpl() to releaseImpl(), which explicitly derefs the pointer and
4131         clear it.
4132
4133         (GenerateImplementation):
4134         Use leakPtr() to explicitly adopt the PassRefPtr into the raw pointer.
4135         Change default finalize to call releaseImpl() instead of clearImpl().
4136
4137 2011-11-16  Michael Saboff  <msaboff@apple.com>
4138
4139         Enable 8 Bit Strings in JavaScriptCore
4140         https://bugs.webkit.org/show_bug.cgi?id=71337
4141
4142         This patch turns on 8 bit strings in StringImpl and enables
4143         their use in JavaScriptCore. Some of the changes are to
4144         turn on code that had been staged (Lexer.cpp, Identifier.cpp,
4145         SmallStrings.cpp and some of StringImpl.{h,cpp}).
4146         Other changes are minor fixes to make 8 bit strings work
4147         (UString.h, StringImpl::getData16SlowCase()).
4148         Changed StringBuffer to be a templated class based on character
4149         type.  This change riplled into WebCore code as well.
4150
4151         Reviewed by Geoffrey Garen.
4152
4153         No new tests - Changes in response to refactoring StringBuffer to
4154         be a template on character type.
4155
4156         * css/CSSParser.cpp:
4157         (WebCore::quoteCSSString):
4158         * css/CSSPrimitiveValue.cpp:
4159         (WebCore::formatNumber):
4160         * dom/Document.cpp:
4161         (WebCore::canonicalizedTitle):
4162         * platform/Length.cpp:
4163         (WebCore::newCoordsArray):
4164         * platform/sql/SQLiteStatement.cpp:
4165         (WebCore::SQLiteStatement::prepare):
4166         * platform/text/TextCodecUTF16.cpp:
4167         (WebCore::TextCodecUTF16::decode):
4168         * platform/text/TextCodecUTF8.cpp:
4169         (WebCore::TextCodecUTF8::decode):
4170         * rendering/RenderText.cpp:
4171         (WebCore::makeCapitalized):
4172         * xml/XSLTProcessorLibxslt.cpp:
4173         (WebCore::writeToStringBuilder):
4174
4175 2011-11-16  Alexandre Elias  <aelias@google.com>
4176
4177         [chromium] Improvements for page scale delta during commit
4178         https://bugs.webkit.org/show_bug.cgi?id=72471
4179
4180         Reviewed by James Robinson.
4181
4182         Page scale now follows the same commit flow as scroll position:
4183         the delta is folded into m_pageScale at BFAC time, and a "sent" value
4184         is preserved for temporary use until the commit finishes.
4185
4186         I also merged setPageScaleFactor and setPageScaleFactorLimits into one
4187         function on the impl side.  The reason is that setPageFactor must
4188         be applied after the limits are updated, but on the other hand setting
4189         the limits first may cause an unnecessary clamp of the scale delta.
4190         Merging the methods avoids this bind.
4191
4192         No new tests. (planning to add later: https://bugs.webkit.org/show_bug.cgi?id=71529)
4193
4194         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
4195         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
4196         (WebCore::CCLayerTreeHost::applyScrollAndScale):
4197         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
4198         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
4199         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
4200         (WebCore::CCLayerTreeHostImpl::setPageScaleFactorAndLimits):
4201         (WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
4202         (WebCore::CCLayerTreeHostImpl::setScaleDelta):