2011-05-18 Emil A Eklund <eae@chromium.org>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-05-18  Emil A Eklund  <eae@chromium.org>
2
3         Reviewed by Darin Adler.
4
5         Change RenderTextControl::hitInnerTextElement to use IntPoint
6         https://bugs.webkit.org/show_bug.cgi?id=61003
7
8         Covered by existing tests.
9
10         * rendering/RenderTextControl.cpp:
11         (WebCore::RenderTextControl::hitInnerTextElement):
12         * rendering/RenderTextControl.h:
13         * rendering/RenderTextControlMultiLine.cpp:
14         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
15         * rendering/RenderTextControlSingleLine.cpp:
16         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
17
18 2011-05-18  Chris Fleizach  <cfleizach@apple.com>
19
20         Reviewed by Maciej Stachowiak.
21
22         WK2: VoiceOver cannot move focus into a web area programmatically
23         https://bugs.webkit.org/show_bug.cgi?id=60661
24
25         Accessibility code relies on the ability to bring focus to the containing widget view.
26         In WK2, that message needs to be propagated to the UI process.
27
28         * page/ChromeClient.h:
29         (WebCore::ChromeClient::makeFirstResponder):
30         * page/mac/ChromeMac.mm:
31         (WebCore::Chrome::focusNSView):
32         * platform/mac/WidgetMac.mm:
33         (WebCore::Widget::setFocus):
34
35 2011-05-18  Alok Priyadarshi  <alokp@chromium.org> and Adrienne Walker  <enne@google.com>
36
37         Reviewed by James Robinson.
38
39         [chromium] Split canvas from LayerTilerChromium
40         https://bugs.webkit.org/show_bug.cgi?id=60719
41
42         LayerTilerChromium now just does tiling. It delegates the task of painting and updating textures to LayerTextureUpdater.
43         Also abstracted LayerTextureSubImage to upload texture pixels.
44
45         * WebCore.gypi:
46         * platform/chromium/TraceEvent.h:
47         * platform/graphics/chromium/ContentLayerChromium.cpp:
48         (WebCore::ContentLayerChromium::create):
49         (WebCore::ContentLayerChromium::ContentLayerChromium):
50         (WebCore::ContentLayerChromium::~ContentLayerChromium):
51         (WebCore::ContentLayerChromium::paintContentsIfDirty):
52         (WebCore::ContentLayerChromium::cleanupResources):
53         (WebCore::ContentLayerChromium::setLayerRenderer):
54         (WebCore::ContentLayerChromium::createTextureUpdater):
55         (WebCore::ContentLayerChromium::drawsContent):
56         (WebCore::ContentLayerChromium::createTilerIfNeeded):
57         (WebCore::ContentLayerChromium::updateCompositorResources):
58         * platform/graphics/chromium/ContentLayerChromium.h:
59         * platform/graphics/chromium/ImageLayerChromium.cpp:
60         (WebCore::ImageLayerTextureUpdater::ImageLayerTextureUpdater):
61         (WebCore::ImageLayerTextureUpdater::~ImageLayerTextureUpdater):
62         (WebCore::ImageLayerTextureUpdater::orientation):
63         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
64         (WebCore::ImageLayerTextureUpdater::updateTextureRect):
65         (WebCore::ImageLayerTextureUpdater::imageRect):
66         (WebCore::ImageLayerChromium::paintContentsIfDirty):
67         (WebCore::ImageLayerChromium::updateCompositorResources):
68         (WebCore::ImageLayerChromium::createTextureUpdater):
69         * platform/graphics/chromium/ImageLayerChromium.h:
70         * platform/graphics/chromium/LayerPainterChromium.h: Added.
71         * platform/graphics/chromium/LayerRendererChromium.cpp:
72         (WebCore::LayerRendererChromium::create):
73         (WebCore::LayerRendererChromium::LayerRendererChromium):
74         (WebCore::LayerRendererChromium::updateRootLayerContents):
75         (WebCore::LayerRendererChromium::drawRootLayer):
76         (WebCore::LayerRendererChromium::updateAndDrawLayers):
77         (WebCore::LayerRendererChromium::updateLayers):
78         * platform/graphics/chromium/LayerRendererChromium.h:
79         * platform/graphics/chromium/LayerTextureSubImage.cpp: Added.
80         (WebCore::LayerTextureSubImage::LayerTextureSubImage):
81         (WebCore::LayerTextureSubImage::~LayerTextureSubImage):
82         (WebCore::LayerTextureSubImage::setSubImageSize):
83         (WebCore::LayerTextureSubImage::upload):
84         (WebCore::LayerTextureSubImage::uploadWithTexSubImage):
85         (WebCore::LayerTextureSubImage::uploadWithMapTexSubImage):
86         * platform/graphics/chromium/LayerTextureSubImage.h: Copied from Source/WebCore/platform/chromium/TraceEvent.h.
87         * platform/graphics/chromium/LayerTextureUpdater.h: Copied from Source/WebCore/platform/chromium/TraceEvent.h.
88         (WebCore::LayerTextureUpdater::LayerTextureUpdater):
89         (WebCore::LayerTextureUpdater::~LayerTextureUpdater):
90         (WebCore::LayerTextureUpdater::context):
91         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp: Added.
92         (WebCore::LayerTextureUpdaterCanvas::LayerTextureUpdaterCanvas):
93         (WebCore::LayerTextureUpdaterCanvas::paintContents):
94         (WebCore::LayerTextureUpdaterBitmap::LayerTextureUpdaterBitmap):
95         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
96         (WebCore::LayerTextureUpdaterBitmap::updateTextureRect):
97         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h: Added.
98         (WebCore::LayerTextureUpdaterCanvas::~LayerTextureUpdaterCanvas):
99         (WebCore::LayerTextureUpdaterCanvas::contentRect):
100         (WebCore::LayerTextureUpdaterBitmap::~LayerTextureUpdaterBitmap):
101         (WebCore::LayerTextureUpdaterBitmap::orientation):
102         * platform/graphics/chromium/LayerTilerChromium.cpp:
103         (WebCore::LayerTilerChromium::create):
104         (WebCore::LayerTilerChromium::LayerTilerChromium):
105         (WebCore::LayerTilerChromium::setTileSize):
106         (WebCore::LayerTilerChromium::prepareToUpdate):
107         (WebCore::LayerTilerChromium::updateRect):
108         (WebCore::LayerTilerChromium::draw):
109         * platform/graphics/chromium/LayerTilerChromium.h:
110         (WebCore::LayerTilerChromium::Tile::Tile):
111         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
112         (WebCore::CCHeadsUpDisplay::draw):
113
114 2011-05-18  Mark Pilgrim  <pilgrim@chromium.org>
115
116         Reviewed by Tony Chang.
117
118         IndexedDB put() should fail adding to object store that uses
119         out-of-line keys and has no key generator and the key parameter
120         was not provided
121         https://bugs.webkit.org/show_bug.cgi?id=58609
122
123         Out-of-line keys means that objectStore->m_keyPath is null in ::put(),
124         no key generator means that objectStore->autoIncrement() is false, and
125         key parameter was not provided means that prpKey will be a null pointer.
126         The combination of these 3 should throw a DATA_ERR.
127
128         Test: storage/indexeddb/mozilla/key-requirements-put-no-key.html
129
130         * storage/IDBObjectStoreBackendImpl.cpp:
131         (WebCore::IDBObjectStoreBackendImpl::put):
132
133 2011-05-18  Chris Rogers  <crogers@google.com>
134
135         Reviewed by James Robinson.
136
137         EqualPowerPanner is not using the correct azimuth range for stereo panning
138         https://bugs.webkit.org/show_bug.cgi?id=61085
139
140         No new tests since audio API is not yet implemented.
141
142         * platform/audio/EqualPowerPanner.cpp:
143         (WebCore::EqualPowerPanner::pan):
144
145 2011-05-18  Yi Shen  <yi.4.shen@nokia.com>
146
147         Reviewed by Andreas Kling.
148
149         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
150         https://bugs.webkit.org/show_bug.cgi?id=33179
151
152         Fill the missing key text for the EnterKey event.
153
154         Tests: fast/events/onsearch-enter.html
155
156         * platform/qt/PlatformKeyboardEventQt.cpp:
157         (WebCore::keyTextForKeyEvent):
158
159 2011-05-17  Timothy Hatcher  <timothy@apple.com>
160
161         Update the the context menu to reflect the system search provider on Mac.
162
163         <rdar://problem/9198419>
164
165         Reviewed by Sam Weinig.
166
167         * English.lproj/Localizable.strings: Updated.
168         * Source/WebCore/WebCore.exp.in: Added _wkCopyDefaultSearchProviderDisplayName.
169         * platform/DefaultLocalizationStrategy.cpp:
170         (WebCore::DefaultLocalizationStrategy::contextMenuItemTagSearchWeb): Use wkCopyDefaultSearchProviderDisplayName to
171         create the string.
172         * platform/mac/WebCoreSystemInterface.h: Added wkCopyDefaultSearchProviderDisplayName.
173         * platform/mac/WebCoreSystemInterface.mm: Ditto.
174
175 2011-05-18  Rob Buis  <rbuis@rim.com>
176
177         Reviewed by Nikolas Zimmermann.
178
179         Marker test from ietestcenter fails
180         https://bugs.webkit.org/show_bug.cgi?id=60721
181
182         Change <marker> renderer creation behaviour to always create the renderer. This fixes
183         the problem that no marker is rendered when display=none is set on the <marker>. The
184         specification states that display=none should have no influence on <marker> usage:
185         "The ‘display’ property does not apply to the ‘marker’ element; thus, ..., and ‘marker’
186         elements are available for referencing even when the ‘display’ property on the ‘marker’
187         element or any of its ancestors is set to none."
188
189         Tests: svg/W3C-SVG-1.1-SE/painting-marker-07-f.svg
190                svg/custom/painting-marker-07-f-inherit.svg
191
192         * svg/SVGMarkerElement.h:
193         (WebCore::SVGMarkerElement::rendererIsNeeded):
194
195 2011-05-18  Alexis Menard  <alexis.menard@openbossa.org>, Simon Hausmann  <simon.hausmann@nokia.com>
196
197         Reviewed by Eric Carlson.
198
199         MediaElements fails to load the data in some cases.
200         https://bugs.webkit.org/show_bug.cgi?id=60760
201
202         WebKitWebSourceGStreamer is the interface between WebKit and GStreamer
203         that uses the ResourceHandle API to request data and pass it down. For
204         our builds it is absolutely essential that we have a NetworkingContext
205         available there, in order to get access to the QNetworkAccessManager.
206         No access means we basically cannot load the video. The WebSource gains
207         access to the NetworkingContext through a WebCore::Frame pointer it has.
208
209         MediaPlayerPrivateGStreamer is responsible for propagating a pointer of
210         the WebCore::Frame to the WebKitWebSource in
211         mediaPlayerPrivateSourceChangedCallback. In there we used the MediaPlayer's
212         frameView() accessor to access the frame. However the frameView() member
213         is only set through the render tree's RenderVideo, which is rather unreliable
214         given that some sites create "fake" video tags initially that only become
215         visible later (or never).
216
217         A more reliable way is to simply use the document of the MediaPlayerClient,
218         which is provided at constructor time.
219
220         Test: http/tests/media/media-can-load-when-hidden.html
221
222         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
223         (WebCore::MediaPlayerPrivateGStreamer::sourceChanged):
224
225 2011-05-18  Adrienne Walker  <enne@google.com>
226
227         Reviewed by James Robinson.
228
229         [chromium] Check HUD texture reserve status before using texture
230         https://bugs.webkit.org/show_bug.cgi?id=61082
231
232         This only changes behavior behind a flag, so shouldn't impact any tests.
233
234         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
235         (WebCore::CCHeadsUpDisplay::draw):
236
237 2011-05-18  Oliver Hunt  <oliver@apple.com>
238
239         Reviewed by Sam Weinig.
240
241         JSGlobalObject and some others do GC allocation during initialization, which can cause heap corruption
242         https://bugs.webkit.org/show_bug.cgi?id=61090
243
244         Rather than having Constructor objects create their structure
245         as part of initialisation, we now pass their expected structure
246         in as an argument.  This required fixing the few custom Constructors
247         and the code generator.
248
249         * bindings/js/JSAudioConstructor.cpp:
250         (WebCore::JSAudioConstructor::JSAudioConstructor):
251         * bindings/js/JSAudioConstructor.h:
252         * bindings/js/JSDOMGlobalObject.h:
253         (WebCore::getDOMConstructor):
254           Pass the Constructor objects structure in as an argument
255         * bindings/js/JSImageConstructor.cpp:
256         (WebCore::JSImageConstructor::JSImageConstructor):
257         * bindings/js/JSImageConstructor.h:
258         * bindings/js/JSOptionConstructor.cpp:
259         (WebCore::JSOptionConstructor::JSOptionConstructor):
260         * bindings/js/JSOptionConstructor.h:
261         * bindings/scripts/CodeGeneratorJS.pm:
262
263 2011-05-18  Abhishek Arya  <inferno@chromium.org>
264
265         Reviewed by Beth Dakin.
266
267         Remove removeChild on table caption since destroy call
268         already does that.
269         https://bugs.webkit.org/show_bug.cgi?id=61083
270
271         Test: fast/table/table-captions-child-visible-crash.html
272
273         * rendering/RenderTable.cpp:
274         (WebCore::RenderTable::recalcCaption):
275
276 2011-05-18  Evan Martin  <evan@chromium.org>
277
278         Reviewed by Tony Chang.
279
280         [chromium] make action_derivedsourcesallinone.py quiet
281         https://bugs.webkit.org/show_bug.cgi?id=61081
282
283         In gyp, it's the responsibility of the build system to print what actions are doing;
284         for example, the compile command is generally silent, while the build system prints
285         "compiling".
286
287         Make this program behave like a compiler: silent on success.
288
289         * WebCore.gyp/scripts/action_derivedsourcesallinone.py:
290         delete a print statement.
291
292 2011-05-18  David Kilzer  <ddkilzer@apple.com>
293
294         <http://webkit.org/b/61078> Use toHTTPPipeliningPriority() in initializeMaximumHTTPConnectionCountPerHost()
295
296         Reviewed by Joseph Pecoraro.
297
298         * platform/network/cf/ResourceRequestCFNet.cpp:
299         (WebCore::initializeMaximumHTTPConnectionCountPerHost): Use
300         toHTTPPipeliningPriority() to convert arguments passed to
301         wkSetHTTPPipeliningMaximumPriority() and
302         wkSetHTTPPipeliningMinimumFastLanePriority().
303
304 2011-05-18  Erik Arvidsson  <arv@chromium.org>
305
306         Reviewed by Ojan Vafai.
307
308         event.clientX/clientY is 0/0 in a click generated through a label
309         https://bugs.webkit.org/show_bug.cgi?id=56606
310
311         This copies the coordinates from the underlying event to the simulated mouse event if the underlying event
312         is a mouse event.
313
314         This makes us match Firefox and IE.
315
316         Test: fast/events/simulated-click-coords.html
317
318         * dom/MouseEvent.cpp:
319         (WebCore::SimulatedMouseEvent::SimulatedMouseEvent):
320
321 2011-05-18  Nikolas Zimmermann  <nzimmermann@rim.com>
322
323         Not reviewed. Sorted XCode project file.
324
325         * WebCore.xcodeproj/project.pbxproj:
326
327 2011-05-18  Alexander Pavlov  <apavlov@chromium.org>
328
329         Reviewed by Pavel Feldman.
330
331         Web Inspector: Non-color CSS property values can get a color-picker
332         https://bugs.webkit.org/show_bug.cgi?id=61056
333
334         * inspector/front-end/CSSKeywordCompletions.js:
335         (WebInspector.CSSKeywordCompletions.forProperty):
336         (WebInspector.CSSKeywordCompletions.isColorAwareProperty):
337         * inspector/front-end/StylesSidebarPane.js:
338         (WebInspector.StylePropertyTreeElement.prototype.updateTitle):
339
340 2011-05-18  Pratik Solanki  <psolanki@apple.com>
341
342         Reviewed by Dan Bernstein.
343
344         Don't use DEFINE_STATIC_LOCAL with an unsigned
345         https://bugs.webkit.org/show_bug.cgi?id=61026
346
347         * storage/StorageTracker.cpp:
348         (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase): DEFINE_STATIC_LOCAL is meant
349         for objects, not unsigned ints. We can just use static here.
350
351 2011-05-18  Rob Buis  <rbuis@rim.com>
352
353         Reviewed by Nikolas Zimmermann.
354
355         NULL deref when SVG elements have table styles 
356         https://bugs.webkit.org/show_bug.cgi?id=45561
357
358         Restrict computed CSS values for SVG display property to block, inline or none.
359
360         Tests: svg/custom/display-table-caption-foreignObject.svg
361                svg/custom/display-table-caption-inherit-foreignObject.xhtml
362                svg/custom/display-table-caption-inherit-text.xhtml
363                svg/custom/display-table-caption-text.svg
364
365         * css/CSSStyleSelector.cpp:
366         (WebCore::SVGDisplayPropertyGuard::SVGDisplayPropertyGuard):
367         (WebCore::SVGDisplayPropertyGuard::~SVGDisplayPropertyGuard):
368         (WebCore::isAcceptableForSVGElement):
369         (WebCore::CSSStyleSelector::applyProperty):
370
371 2011-05-18  Pavel Feldman  <pfeldman@google.com>
372
373         Reviewed by Yury Semikhatsky.
374
375         Web Inspector: [REGRESSION] Completion while on a breakpoint is not working.
376         https://bugs.webkit.org/show_bug.cgi?id=60811
377
378         Test: inspector/debugger/debugger-completions-on-call-frame.html
379
380         * inspector/InjectedScriptSource.js:
381         * inspector/front-end/ConsoleView.js:
382         (WebInspector.ConsoleView.prototype.completions.else.evaluated):
383         * inspector/front-end/DebuggerPresentationModel.js:
384         (WebInspector.PresenationCallFrame.prototype.get variables):
385         * inspector/front-end/ScriptsPanel.js:
386         (WebInspector.ScriptsPanel.prototype.selectedCallFrameVariables):
387
388 2011-05-18  Nikolas Zimmermann  <nzimmermann@rim.com>
389
390         Reviewed by Rob Buis.
391
392         All animated SVG enum properties are now ints
393         https://bugs.webkit.org/show_bug.cgi?id=10749
394
395         DECLARE/DEFINE_ANIMATED_ENUMERATION created fooBaseVal()/setFooBaseVal() methods that take int parameters, and stored all enum types as integers.
396         Modify the SVG DOM API to store real enums, and get rid of any int<->enum conversions. It's now impossible to change any enum values to undefined
397         types, which is the root of several filter security bugs in the past, that were fixed by adding workarounds.
398         (Usual workaround: svgAttributeChanged(): if fooAttr has been changed from SVG DOM, and if it's an enum, check whether the enum is in range, or fix it up.)
399
400         Using a type-safe internal representation for these enum values we can get rid of ugly int<->enum conversions.
401         A lot of parseMappedAttribute() functions duplicated the code for parsing enum values (eg. userSpaceOnUse/objectBoundingBox unit values, in pattern/filter/mask/etc..)
402         Add dozens of new SVGPropertyTraits<EnumType> specializations for all enums we expose to JS, and offer static fromString/toString conversion methods in single places.
403         Use the new SVGPropertyTraits everywhere in svg/.
404
405         This also fixes SVG DOM <-> XML DOM synchronization for SVGAnimatedEnumeration types.
406         Example: <clipPath clipPathUnits="objectBoundingBox">
407         myClipPath.clipPathUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE;
408         alert(myClipPath.getAttribute('clipPathUnits')); <- without this patch it says "1", now it says "userSpaceOnUse" as expected, and as other browsers do.
409         We're now properly converting the enum values to strings.
410
411         Add testcases for all SVGAnimatedEnumeration objects used in the SVG DOM API. Found several small bugs:
412         - SVGFEConvolveMatrix 'edgeMode' SVG DOM <-> XML DOM synchronization was not working, because of a typo: s/operatorAttr/edgeModeAttr
413         - SVGFEConvolveMatrix was missing an synchronizeProperty() implementation, disabling SVG <-> XML DOM synchronization completly.
414
415         Tests: svg/dom/SVGAnimatedEnumeration-SVGClipPathElement.html
416                svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.html
417                svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement.html
418                svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement.html
419                svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement.html
420                svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement.html
421                svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement.html
422                svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement.html
423                svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement.html
424                svg/dom/SVGAnimatedEnumeration-SVGFilterElement.html
425                svg/dom/SVGAnimatedEnumeration-SVGGradientElement.html
426                svg/dom/SVGAnimatedEnumeration-SVGMarkerElement.html
427                svg/dom/SVGAnimatedEnumeration-SVGMaskElement.html
428                svg/dom/SVGAnimatedEnumeration-SVGPatternElement.html
429                svg/dom/SVGAnimatedEnumeration-SVGTextContentElement.html
430                svg/dom/SVGAnimatedEnumeration-SVGTextPathElement.html
431
432         Fixes existing svg/dynamic-update/SVGTextContentElement-svgdom-lengthAdjust-prop.html where I found the bug initially.
433
434         * GNUmakefile.list.am: Add svg/properties/SVGAnimatedEnumerationPropertyTearOff.h to build.
435         * WebCore.gypi: Ditto.
436         * WebCore.pro: Ditto.
437         * WebCore.vcproj/WebCore.vcproj: Ditto.
438         * WebCore.xcodeproj/project.pbxproj: Ditto.
439         * bindings/scripts/CodeGeneratorV8.pm: Add V8 magic, to avoid ambigious conversion warning in toV8(PassRefPtr<SVGAnimatedEnumeration>).
440         * platform/graphics/GraphicsTypes.h: Cleanup GradientSpreadMethod, as the SVG dependency is gone.
441         * platform/graphics/filters/FEBlend.cpp:
442         (WebCore::FEBlend::apply): Turn early-returns (introduce in security patches a while ago) into ASSERTs, as the underlying bug has been fixed.
443         * platform/graphics/filters/FEDisplacementMap.cpp:
444         (WebCore::FEDisplacementMap::apply): Ditto.
445         * rendering/svg/RenderSVGResourceClipper.h: Remove toUnitType() usage, the clipPathUnits() provided by SVGClipPathElement have the correct enum type now.
446         (WebCore::RenderSVGResourceClipper::clipPathUnits):
447         * rendering/svg/RenderSVGResourceFilter.h: Remove toUnitType() usage, the filterUnits()/primitiveUnits() provided by SVGFilterElement have the correct enum type now.
448         (WebCore::RenderSVGResourceFilter::filterUnits):
449         (WebCore::RenderSVGResourceFilter::primitiveUnits):
450         * rendering/svg/RenderSVGResourceGradient.cpp: Add helper method platformSpreadMethodFromSVGType() converting from SVGGradientElement::SVGSpreadMethodType to GradientSpreadMethod (platform).
451         (WebCore::RenderSVGResourceGradient::applyResource):
452         * rendering/svg/RenderSVGResourceGradient.h: Ditto.
453         * rendering/svg/RenderSVGResourceLinearGradient.cpp:
454         (WebCore::RenderSVGResourceLinearGradient::buildGradient): Use platformSpreadMethodFromSVGType().
455         * rendering/svg/RenderSVGResourceMarker.h: Remove toUnitType() usage, the markerUnits() provided by SVGMarkerElement have the correct enum type now.
456         (WebCore::RenderSVGResourceMarker::markerUnits):
457         * rendering/svg/RenderSVGResourceMasker.h: Remove toUnitType() usage, the maskUnits()/maskContentUnits() provided by SVGMaskElement have the correct enum type now.
458         (WebCore::RenderSVGResourceMasker::maskUnits):
459         (WebCore::RenderSVGResourceMasker::maskContentUnits):
460         * rendering/svg/RenderSVGResourceRadialGradient.cpp:
461         (WebCore::RenderSVGResourceRadialGradient::buildGradient): Use platformSpreadMethodFromSVGType().
462         * rendering/svg/SVGRenderTreeAsText.cpp:
463         (WebCore::operator<<): Use SVGPropertyTraits<SomeSVGEnumType>::toString() to convert from enum to string, remove code duplication.
464         (WebCore::writeCommonGradientProperties):
465         * rendering/svg/SVGTextChunkBuilder.cpp:
466         (WebCore::SVGTextChunkBuilder::addTextChunk): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
467         * rendering/svg/SVGTextLayoutEngine.cpp:
468         (WebCore::SVGTextLayoutEngine::parentDefinesTextLength): Ditto.
469         (WebCore::SVGTextLayoutEngine::beginTextPathLayout): Ditto.
470         * svg/GradientAttributes.h: Change spread method type from platform GradientSpreadMethod to SVGSpreadMethodType.
471         (WebCore::GradientAttributes::GradientAttributes):
472         (WebCore::GradientAttributes::spreadMethod):
473         (WebCore::GradientAttributes::setSpreadMethod):
474         * svg/SVGAnimatedBoolean.idl: Enable potential exception raising on baseVal setting for the primitive types.
475         * svg/SVGAnimatedEnumeration.h: Switch from generic SVGAnimatedStaticPropertyTearOff<int> to new SVGAnimatedEnumerationPropertyTearOff<EnumType>.
476         * svg/SVGAnimatedEnumeration.idl: Enable potential exception raising on baseVal setting for the primitive types.
477                                           Only SVGAnimatedEnumeration makes use of this if the assigned value is out of range.
478         * svg/SVGAnimatedInteger.idl: Ditto.
479         * svg/SVGAnimatedNumber.idl: Ditto.
480         * svg/SVGAnimatedString.idl: Ditto.
481         * svg/SVGClipPathElement.cpp:
482         (WebCore::SVGClipPathElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EnumType>::fromString(attr->value()).
483         * svg/SVGClipPathElement.h:
484         * svg/SVGComponentTransferFunctionElement.cpp:
485         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement): Initialize type to identity, not unknown, as per spec.
486         (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EnumType>::fromString(attr->value()).
487         (WebCore::SVGComponentTransferFunctionElement::transferFunction): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
488         * svg/SVGComponentTransferFunctionElement.h: Remove svgAttributeChanged() method, that verified the enum value is not out of range.
489                                                      It's not possible anymore for these values to go out of range.
490         * svg/SVGFEBlendElement.cpp:
491         (WebCore::SVGFEBlendElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<BlendModeType>::fromString(attr->value()).
492         (WebCore::SVGFEBlendElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
493         (WebCore::SVGFEBlendElement::build): Ditto.
494         * svg/SVGFEBlendElement.h: Add SVGPropertyTraits<BlendModeType> specializations.
495         * svg/SVGFEColorMatrixElement.cpp:
496         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<ColorMatrixType>::fromString(attr->value()).
497         (WebCore::SVGFEColorMatrixElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now..
498         (WebCore::SVGFEColorMatrixElement::build): Ditto.
499         * svg/SVGFEColorMatrixElement.h: Add SVGPropertyTraits<ColorMatrixType> specializations.
500         * svg/SVGFECompositeElement.cpp:
501         (WebCore::SVGFECompositeElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<CompositeOperationType>::fromString(attr->value()).
502         (WebCore::SVGFECompositeElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
503         (WebCore::SVGFECompositeElement::build): Ditto.
504         * svg/SVGFECompositeElement.h: Add SVGPropertyTraits<CompositeOperationType> specializations.
505         * svg/SVGFEConvolveMatrixElement.cpp: Fix typo, edgeMode needs to be associated with SVGNames::edgeModeAttr, not SVGNames::operatorAttr.
506         (WebCore::SVGFEConvolveMatrixElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EdgeModeType>::fromString(attr->value()).
507         (WebCore::SVGFEConvolveMatrixElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
508         (WebCore::SVGFEConvolveMatrixElement::synchronizeProperty): Add missing synchronizeProperty() implementation, otherwhise SVG DOM <-> XML DOM is not in sync.
509         (WebCore::SVGFEConvolveMatrixElement::build): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
510         * svg/SVGFEConvolveMatrixElement.h: Add SVGPropertyTraits<EdgeModeType> specializations.
511         * svg/SVGFEDisplacementMapElement.cpp:
512         (WebCore::SVGFEDisplacementMapElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<ChannelSelectorType>::fromString(attr->value()).
513         (WebCore::SVGFEDisplacementMapElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
514         (WebCore::SVGFEDisplacementMapElement::svgAttributeChanged): Remove range validation for enum types, they are always in range now.
515         (WebCore::SVGFEDisplacementMapElement::build): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
516         * svg/SVGFEDisplacementMapElement.h: Add SVGPropertyTraits<ChannelSelectorType> specializations.
517         * svg/SVGFEMorphologyElement.cpp:
518         (WebCore::SVGFEMorphologyElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<MorphologyOperatorType>::fromString(attr->value()).
519         (WebCore::SVGFEMorphologyElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
520         (WebCore::SVGFEMorphologyElement::build): Ditto.
521         * svg/SVGFEMorphologyElement.h: Add SVGPropertyTraits<MorphologyOperatorType> specializations.
522         * svg/SVGFETurbulenceElement.cpp:
523         (WebCore::SVGFETurbulenceElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<SVGStitchOptions/TurbulenceType>::fromString(attr->value()).
524         (WebCore::SVGFETurbulenceElement::setFilterEffectAttribute): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
525         (WebCore::SVGFETurbulenceElement::build): Ditto.
526         * svg/SVGFETurbulenceElement.h: Add SVGPropertyTraits<SVGStitchOptions/TurbulenceType> specializations.
527         * svg/SVGFilterElement.cpp:
528         (WebCore::SVGFilterElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<SVGUnitType>::fromString(attr->value()).
529         * svg/SVGFilterElement.h:
530         * svg/SVGGradientElement.cpp:
531         (WebCore::SVGGradientElement::SVGGradientElement): Missing spread method default initialization: set it to 'pad' as per spec.
532         (WebCore::SVGGradientElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<SVGUnitType/SVGSpreadMethodType>::fromString(attr->value()).
533         * svg/SVGGradientElement.h: Add SVGPropertyTraits<SVGSpreadMethodType> specializations.
534         * svg/SVGLinearGradientElement.cpp:
535         (WebCore::SVGLinearGradientElement::collectGradientAttributes): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
536         * svg/SVGMarkerElement.cpp:
537         (WebCore::SVGMarkerElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EnumType>::fromString(attr->value()).
538         (WebCore::SVGMarkerElement::synchronizeOrientType): Add a custom synchronization method, that handles orientType/orientAngle -> orientAttr synchronization, which is special
539                                                             as it depends on to other SVG DOM objects (SVGAnimatedAngle and SVGAnimatedEnumeration). All covered by new tests.
540         (WebCore::SVGMarkerElement::orientTypeAnimated): Custom tear off creation method, which would usually be generated by the DECLARE_ANIMATED_... macros.
541         * svg/SVGMarkerElement.h: Add SVGPropertyTraits<SVGMarkerUnitsType/SVGMarkerOrientType> specializations.
542         (WebCore::SVGMarkerElement::orientType): Add custom property handling for the 'orientType' SVGAnimatedEnumeration object, as it has special demands, based on 'orientAngle'.
543         (WebCore::SVGMarkerElement::orientTypeBaseValue): Ditto.
544         (WebCore::SVGMarkerElement::setOrientTypeBaseValue): Ditto.
545         * svg/SVGMaskElement.cpp:
546         (WebCore::SVGMaskElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EnumType>::fromString(attr->value()).
547         * svg/SVGMaskElement.h:
548         * svg/SVGPatternElement.cpp:
549         (WebCore::SVGPatternElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<EnumType>::fromString(attr->value()).
550         * svg/SVGPatternElement.h:
551         * svg/SVGRadialGradientElement.cpp:
552         (WebCore::SVGRadialGradientElement::collectGradientAttributes): Remove int->enum casting for SVGAnimatedEnumeration types, they are enums now.
553         * svg/SVGTextContentElement.cpp:
554         (WebCore::SVGTextContentElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<SVGLengthAdjustType>::fromString(attr->value()).
555         * svg/SVGTextContentElement.h: Add SVGPropertyTraits<SVGLengthAdjustType> specializations.
556         * svg/SVGTextPathElement.cpp:
557         (WebCore::SVGTextPathElement::parseMappedAttribute): Convert attribute parsing to use SVGPropertyTraits<SVGTextPathMethodType/SVGTextPathSpacingType>::fromString(attr->value()).
558         * svg/SVGTextPathElement.h: Add SVGPropertyTraits<SVGTextPathMethodType/SVGTextPathSpacingType> specializations.
559         * svg/SVGUnitTypes.h: Add SVGPropertyTraits<SVGUnitType> specializations.
560         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: Added. SVGAnimatedEnumerationPropertyTearOff inherits from SVGAnimatedStaticPropertyTearOff<int>.
561                                                                   SVGAnimatedEnumeration remains a typedef to SVGAnimatedStaticPropertyTearOff<int>, to have a common base
562                                                                   class for all enum types. This special tear off object, overrides setBaseVal, to verify the incoming int
563                                                                   is within the enum range, otherwhise raise an SVG DOM exception. This makes it impossible to make any of
564                                                                   the enums go out of range anymore (which lead to security bugs in the past).
565         (WebCore::SVGAnimatedEnumerationPropertyTearOff::setBaseVal):
566         (WebCore::SVGAnimatedEnumerationPropertyTearOff::create):
567         (WebCore::SVGAnimatedEnumerationPropertyTearOff::SVGAnimatedEnumerationPropertyTearOff):
568         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
569         (WebCore::SVGAnimatedStaticPropertyTearOff::setBaseVal): Made this method virtual, to SVGAnimatedEnumerationPropertyTearOff can override the default behaviour. Also added an ExceptionCode param.
570         (WebCore::SVGAnimatedStaticPropertyTearOff::~SVGAnimatedStaticPropertyTearOff):
571
572 2011-05-18  Kinuko Yasuda  <kinuko@chromium.org>
573
574         Reviewed by David Levin.
575
576         Expose webkitStorageInfo.requestQuota() for Quota API if QUOTA flag is enabled
577         https://bugs.webkit.org/show_bug.cgi?id=59681
578
579         Test: storage/storageinfo-request-quota.html
580
581         * CMakeLists.txt:
582         * CodeGenerators.pri:
583         * DerivedSources.cpp:
584         * DerivedSources.make:
585         * GNUmakefile.am:
586         * GNUmakefile.list.am:
587         * WebCore.gypi:
588         * WebCore.vcproj/WebCore.vcproj:
589         * WebCore.xcodeproj/project.pbxproj:
590         * storage/StorageInfo.idl: Added requestQuota().
591         * storage/StorageInfoQuotaCallback.idl: Added.
592
593 2011-05-18  Renata Hodovan  <reni@webkit.org>
594
595         Reviewed by Nikolas Zimmermann.
596
597         Apply the ParallelJobs support to FEGaussianBlur
598         https://bugs.webkit.org/show_bug.cgi?id=61049
599
600         The Gaussian blur filter of SVG can consume lots of resources if it is
601         applied to a large area. The computation can be distributed to multiple
602         cores if the architecture supports.
603         The average performance progression is about 15% on dual-core machines.
604
605         Developed in cooperation with Gabor Loki and Zoltan Herczeg.
606
607
608         * platform/graphics/filters/FEGaussianBlur.cpp:
609         (WebCore::FEGaussianBlur::platformApplyWorker):
610         (WebCore::FEGaussianBlur::platformApply):
611         * platform/graphics/filters/FEGaussianBlur.h:
612
613 2011-05-18  Pavel Feldman  <pfeldman@google.com>
614
615         Reviewed by Yury Semikhatsky.
616
617         Web Inspector: make parentId for frame optional.
618         https://bugs.webkit.org/show_bug.cgi?id=61032
619
620         * inspector/Inspector.json:
621         * inspector/InspectorPageAgent.cpp:
622         (WebCore::InspectorPageAgent::buildObjectForFrame):
623         * inspector/front-end/ResourceTreeModel.js:
624         (WebInspector.ResourceTreeModel.prototype._addFrame):
625
626 2011-05-18  Gabor Loki  <loki@webkit.org>
627
628         Reviewed by Nikolas Zimmermann.
629
630         Apply the ParallelJobs support to FELighting
631         https://bugs.webkit.org/show_bug.cgi?id=61048
632
633         The lighting filter of SVG can consume lots of resources if it is
634         applied to a large area. The computation can be distributed to multiple
635         cores if the architecture supports.
636         The average performance progression is 10-20% on dual-core machines.
637
638         Developed in cooperation with Zoltan Herczeg.
639
640         * platform/graphics/filters/FELighting.cpp:
641         (WebCore::FELighting::platformApplyGenericPaint):
642         (WebCore::FELighting::platformApplyGenericWorker):
643         (WebCore::FELighting::platformApplyGeneric):
644         * platform/graphics/filters/FELighting.h:
645         * platform/graphics/filters/arm/FELightingNEON.cpp:
646         (WebCore::FELighting::platformApplyNeonWorker):
647         * platform/graphics/filters/arm/FELightingNEON.h:
648         (WebCore::FELighting::platformApplyNeon):
649
650 2011-05-18  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
651
652         Reviewed by Andreas Kling.
653
654         [Qt] Fix tst_QWebFrame::getSetStaticProperty() autotest
655         https://bugs.webkit.org/show_bug.cgi?id=60984
656
657         The code for converting objects to QVariantMap was causing exception,
658         that was "leaking" to the next evaluation. One situation was reading
659         the property 'localStorage' when we do not have a proper security
660         origin, which throws a SECURITY_ERR.
661
662         Now, we will simply not include on the QVariantMap those properties,
663         and make sure that we clean the exception if necessary.
664
665         * bridge/qt/qt_runtime.cpp:
666         (JSC::Bindings::convertValueToQVariantMap):
667         Extracted function that performs conversion from JSObject to a QVariantMap. This
668         functions makes sure that exception is clean after its execution.
669
670         (JSC::Bindings::convertValueToQVariant):
671         Use the previous function. Add a comment explaining the choice of distance value.
672
673 2011-05-18  Ilya Tikhonovsky  <loislo@chromium.org>
674
675         Reviewed by Yury Semikhatsky.
676
677         Web Inspector: scripts panel file selector element doesn't track keyboard events 
678         https://bugs.webkit.org/show_bug.cgi?id=61047
679
680         * inspector/front-end/ScriptsPanel.js:
681         (WebInspector.ScriptsPanel):
682
683 2011-05-16  Pavel Podivilov  <podivilov@chromium.org>
684
685         Reviewed by Yury Semikhatsky.
686
687         Web Inspector: refactoring: ScriptDebugListener::didParseSource has too many parameters.
688         https://bugs.webkit.org/show_bug.cgi?id=60900
689
690         * bindings/js/ScriptDebugServer.cpp:
691         (WebCore::ScriptDebugServer::dispatchDidParseSource):
692         * bindings/v8/ScriptDebugServer.cpp:
693         (WebCore::ScriptDebugServer::dispatchDidParseSource):
694         * inspector/InspectorDebuggerAgent.cpp:
695         (WebCore::InspectorDebuggerAgent::getScriptSource):
696         (WebCore::InspectorDebuggerAgent::didParseSource):
697         * inspector/InspectorDebuggerAgent.h:
698         * inspector/ScriptDebugListener.h:
699         (WebCore::ScriptDebugListener::Script::Script):
700
701 2011-05-18  Alexander Pavlov  <apavlov@chromium.org>
702
703         Reviewed by Pavel Feldman.
704
705         Web Inspector: model-based CSS editing does not update @import-ed stylesheet resources
706         https://bugs.webkit.org/show_bug.cgi?id=60966
707
708         Imported stylesheets didn't use to be returned by InspectorCSSAgent.
709
710         * inspector/InspectorCSSAgent.cpp:
711         (WebCore::InspectorCSSAgent::getAllStyleSheets):
712         (WebCore::InspectorCSSAgent::collectStyleSheets):
713         * inspector/InspectorCSSAgent.h:
714
715 2011-05-18  Pavel Feldman  <pfeldman@google.com>
716
717         Reviewed by Yury Semikhatsky.
718
719         Web Inspector: make "Id" suffixes use consistent case.
720         https://bugs.webkit.org/show_bug.cgi?id=61028
721
722         * inspector/InjectedScriptSource.js:
723         * inspector/Inspector.json:
724         * inspector/InspectorConsoleAgent.cpp:
725         (WebCore::InspectorConsoleAgent::addMessageToConsole):
726         * inspector/InspectorConsoleAgent.h:
727         * inspector/InspectorConsoleInstrumentation.h:
728         (WebCore::InspectorInstrumentation::addMessageToConsole):
729         * inspector/InspectorDebuggerAgent.cpp:
730         (WebCore::parseLocation):
731         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
732         (WebCore::InspectorDebuggerAgent::editScriptSource):
733         (WebCore::InspectorDebuggerAgent::getScriptSource):
734         (WebCore::InspectorDebuggerAgent::didParseSource):
735         * inspector/InspectorDebuggerAgent.h:
736         * inspector/InspectorInstrumentation.cpp:
737         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
738         * inspector/InspectorInstrumentation.h:
739         * inspector/InspectorResourceAgent.cpp:
740         (WebCore::buildObjectForResourceResponse):
741         * inspector/ScriptDebugListener.h:
742         * inspector/front-end/DebuggerModel.js:
743         (WebInspector.DebuggerModel.prototype.scriptForSourceID):
744         (WebInspector.DebuggerModel.prototype.queryScripts):
745         (WebInspector.DebuggerModel.prototype.editScriptSource):
746         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
747         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
748         (WebInspector.DebuggerDispatcher.prototype.scriptParsed):
749         (WebInspector.DebuggerDispatcher.prototype.breakpointResolved):
750         * inspector/front-end/DebuggerPresentationModel.js:
751         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didReceiveSource):
752         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
753         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didRequestSourceMapping):
754         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
755         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
756         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
757         (WebInspector.DebuggerPresentationModel.prototype._scriptForSourceFileId):
758         (WebInspector.DebuggerPresentationModel.prototype._createSourceFileId):
759         (WebInspector.PresenationCallFrame):
760         * inspector/front-end/NetworkManager.js:
761         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
762         * inspector/front-end/Script.js:
763         (WebInspector.Script):
764         (WebInspector.Script.prototype.requestSource):
765         (WebInspector.Script.prototype.editSource):
766         * inspector/front-end/SourceFile.js:
767         (WebInspector.SourceFile.prototype.forceLoadContent):
768         (WebInspector.SourceFile.prototype._concatenateScriptsContent):
769         (WebInspector.SourceMapping.prototype._sourceLocationToScriptLocation):
770         (WebInspector):
771
772 2011-05-18  Sheriff Bot  <webkit.review.bot@gmail.com>
773
774         Unreviewed, rolling out r86747.
775         http://trac.webkit.org/changeset/86747
776         https://bugs.webkit.org/show_bug.cgi?id=61039
777
778         Breaks JSC debugger tests. (Requested by pfeldman on #webkit).
779
780         * inspector/InjectedScriptSource.js:
781         ():
782         * inspector/Inspector.json:
783         * inspector/InspectorConsoleAgent.cpp:
784         (WebCore::InspectorConsoleAgent::addMessageToConsole):
785         * inspector/InspectorConsoleAgent.h:
786         * inspector/InspectorConsoleInstrumentation.h:
787         (WebCore::InspectorInstrumentation::addMessageToConsole):
788         * inspector/InspectorDebuggerAgent.cpp:
789         (WebCore::parseLocation):
790         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
791         (WebCore::InspectorDebuggerAgent::editScriptSource):
792         (WebCore::InspectorDebuggerAgent::getScriptSource):
793         (WebCore::InspectorDebuggerAgent::didParseSource):
794         * inspector/InspectorDebuggerAgent.h:
795         * inspector/InspectorInstrumentation.cpp:
796         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
797         * inspector/InspectorInstrumentation.h:
798         * inspector/InspectorResourceAgent.cpp:
799         (WebCore::buildObjectForResourceResponse):
800         * inspector/ScriptDebugListener.h:
801         * inspector/front-end/DebuggerModel.js:
802         (WebInspector.DebuggerModel.prototype.scriptForSourceID):
803         (WebInspector.DebuggerModel.prototype.queryScripts):
804         (WebInspector.DebuggerModel.prototype.editScriptSource):
805         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
806         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
807         (WebInspector.DebuggerDispatcher.prototype.scriptParsed):
808         (WebInspector.DebuggerDispatcher.prototype.breakpointResolved):
809         * inspector/front-end/DebuggerPresentationModel.js:
810         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didReceiveSource):
811         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
812         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didRequestSourceMapping):
813         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
814         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
815         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
816         (WebInspector.DebuggerPresentationModel.prototype._scriptForSourceFileId):
817         (WebInspector.DebuggerPresentationModel.prototype._createSourceFileId):
818         (WebInspector.PresenationCallFrame):
819         * inspector/front-end/NetworkManager.js:
820         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
821         * inspector/front-end/Script.js:
822         (WebInspector.Script):
823         (WebInspector.Script.prototype.requestSource):
824         (WebInspector.Script.prototype.editSource):
825         * inspector/front-end/SourceFile.js:
826         (WebInspector.SourceFile.prototype.forceLoadContent):
827         (WebInspector.SourceFile.prototype._concatenateScriptsContent):
828         (WebInspector.SourceMapping.prototype._sourceLocationToScriptLocation):
829         (WebInspector):
830
831 2011-05-18  Abhishek Arya  <inferno@chromium.org>
832
833         Reviewed by Dirk Schulze.
834
835         When SMIL element is getting removed, make sure to remove it
836         from target's animation elements list.
837         https://bugs.webkit.org/show_bug.cgi?id=60980
838
839         Test: svg/animations/smil-element-not-removed-crash.html
840
841         * svg/animation/SVGSMILElement.cpp:
842         (WebCore::SVGSMILElement::~SVGSMILElement):
843
844 2011-05-18  Pavel Feldman  <pfeldman@google.com>
845
846         Reviewed by Yury Semikhatsky.
847
848         Web Inspector: make "Id" suffixes use consistent case.
849         https://bugs.webkit.org/show_bug.cgi?id=61028
850
851         * inspector/InjectedScriptSource.js:
852         * inspector/Inspector.json:
853         * inspector/InspectorConsoleAgent.cpp:
854         (WebCore::InspectorConsoleAgent::addMessageToConsole):
855         * inspector/InspectorConsoleAgent.h:
856         * inspector/InspectorConsoleInstrumentation.h:
857         (WebCore::InspectorInstrumentation::addMessageToConsole):
858         * inspector/InspectorDebuggerAgent.cpp:
859         (WebCore::parseLocation):
860         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
861         (WebCore::InspectorDebuggerAgent::editScriptSource):
862         (WebCore::InspectorDebuggerAgent::getScriptSource):
863         (WebCore::InspectorDebuggerAgent::didParseSource):
864         * inspector/InspectorDebuggerAgent.h:
865         * inspector/InspectorInstrumentation.cpp:
866         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
867         * inspector/InspectorInstrumentation.h:
868         * inspector/InspectorResourceAgent.cpp:
869         (WebCore::buildObjectForResourceResponse):
870         * inspector/ScriptDebugListener.h:
871         * inspector/front-end/DebuggerModel.js:
872         (WebInspector.DebuggerModel.prototype.scriptForSourceID):
873         (WebInspector.DebuggerModel.prototype.queryScripts):
874         (WebInspector.DebuggerModel.prototype.editScriptSource):
875         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
876         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
877         (WebInspector.DebuggerDispatcher.prototype.scriptParsed):
878         (WebInspector.DebuggerDispatcher.prototype.breakpointResolved):
879         * inspector/front-end/DebuggerPresentationModel.js:
880         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didReceiveSource):
881         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
882         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didRequestSourceMapping):
883         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
884         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
885         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
886         (WebInspector.DebuggerPresentationModel.prototype._scriptForSourceFileId):
887         (WebInspector.DebuggerPresentationModel.prototype._createSourceFileId):
888         (WebInspector.PresenationCallFrame):
889         * inspector/front-end/NetworkManager.js:
890         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
891         * inspector/front-end/Script.js:
892         (WebInspector.Script):
893         (WebInspector.Script.prototype.requestSource):
894         (WebInspector.Script.prototype.editSource):
895         * inspector/front-end/SourceFile.js:
896         (WebInspector.SourceFile.prototype.forceLoadContent):
897         (WebInspector.SourceFile.prototype._concatenateScriptsContent):
898         (WebInspector.SourceMapping.prototype._sourceLocationToScriptLocation):
899         (WebInspector):
900
901 2011-05-18  Pavel Feldman  <pfeldman@google.com>
902
903         Reviewed by Yury Semikhatsky.
904
905         Web Inspector: do not reveal line -1 when navigating to anchor without line specified.
906         https://bugs.webkit.org/show_bug.cgi?id=60971
907
908         * inspector/front-end/ResourcesPanel.js:
909         (WebInspector.ResourcesPanel.prototype.showAnchorLocation):
910         * inspector/front-end/ScriptsPanel.js:
911         (WebInspector.ScriptsPanel.prototype.showAnchorLocation.):
912         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
913         * inspector/front-end/inspector.js:
914         (WebInspector._showAnchorLocation):
915
916 2011-05-18  Kent Tamura  <tkent@chromium.org>
917
918         Reviewed by Hajime Morita.
919
920         valueMissing validity for <select> is lame when selecting a value by a key operation
921         https://bugs.webkit.org/show_bug.cgi?id=61021
922
923         We missed updating validity in case that SelectElement::defaultEventHandler
924         update selections.  So, SelectElement::setSelectedIndex() updates validity.
925
926         * dom/SelectElement.cpp:
927         (WebCore::SelectElement::setSelectedIndex): Call SelectElement::updateValidity().
928         * html/HTMLSelectElement.cpp:
929         (WebCore::HTMLSelectElement::setSelectedIndex):
930           Remove unnecessary setNeedsValidityCheck() call.
931           SelectElement::setSlectedIndex() calls it.
932         (WebCore::HTMLSelectElement::setSelectedIndexByUser): ditto.
933
934 2011-05-17  Mikhail Naganov  <mnaganov@chromium.org>
935
936         Reviewed by Pavel Feldman.
937
938         Web Inspector: [Chromium] Enable detailed heap snapshots by default.
939         https://bugs.webkit.org/show_bug.cgi?id=60286
940
941         * inspector/front-end/ProfilesPanel.js:
942
943 2011-05-17  Mikhail Naganov  <mnaganov@chromium.org>
944
945         Reviewed by Pavel Feldman.
946
947         Web Inspector: [Chromium] Make retaining paths list of the Detailed
948         heap snapshots view resizable.
949         https://bugs.webkit.org/show_bug.cgi?id=60960
950
951         * inspector/front-end/DetailedHeapshotView.js:
952         (WebInspector.DetailedHeapshotView.prototype.resize):
953         (WebInspector.DetailedHeapshotView.prototype._startRetainersHeaderDragging):
954         (WebInspector.DetailedHeapshotView.prototype._retainersHeaderDragging):
955         (WebInspector.DetailedHeapshotView.prototype._endRetainersHeaderDragging):
956         (WebInspector.DetailedHeapshotView.prototype._updateRetainmentViewHeight):
957         * inspector/front-end/heapProfiler.css:
958
959 2011-05-16  Jeremy Noble  <jer.noble@apple.com>
960
961         Reviewed by Darin Adler.
962
963         Disable keyboard input (with exceptions) in full-screen mode.
964         https://bugs.webkit.org/show_bug.cgi?id=60943
965
966         Tests: fullscreen/full-screen-keyboard-disabled.html
967                fullscreen/full-screen-keyboard-enabled.html
968
969         * page/EventHandler.cpp:
970         (WebCore::EventHandler::isKeyEventAllowedInFullScreen): Added.  Implements the 
971             list of allowed keyboard events in the proposed API.
972         (WebCore::EventHandler::keyEvent): Discard events which are not allowed in
973             full-screen mode.
974         * page/EventHandler.h:
975
976 2011-05-17  Nikolas Zimmermann  <nzimmermann@rim.com>
977
978         Reviewed by Dirk Schulze.
979
980         Refactor TextRun creation
981         https://bugs.webkit.org/show_bug.cgi?id=60255
982
983         Add constructTextRun() methods to RenderBlock/InlineTextBox and use it in various places in rendering/.
984         The long-term goal is to remove the ugly eight parameters catch-it-all TextRun constructor, and
985         replace it with explicit setters/getters. To avoid expanding dozens of callsites, when removing
986         the catch-it-all constructor, these helper functions are introduced, which hide the details of
987         creating a TextRun.
988
989         Furthermore it will be used to remove the platform layering violation, that TextRun stores
990         RenderObject pointers for the sake of SVG Fonts support, see bug 60254.
991
992         No change in functionaliy, no new tests.
993
994         * rendering/EllipsisBox.cpp:
995         (WebCore::EllipsisBox::paint):
996         (WebCore::EllipsisBox::selectionRect):
997         (WebCore::EllipsisBox::paintSelection):
998         * rendering/InlineTextBox.cpp:
999         (WebCore::InlineTextBox::selectionRect):
1000         (WebCore::InlineTextBox::paint):
1001         (WebCore::InlineTextBox::paintSelection):
1002         (WebCore::InlineTextBox::paintCompositionBackground):
1003         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1004         (WebCore::InlineTextBox::paintTextMatchMarker):
1005         (WebCore::InlineTextBox::computeRectForReplacementMarker):
1006         (WebCore::InlineTextBox::offsetForPosition):
1007         (WebCore::InlineTextBox::positionForOffset):
1008         (WebCore::InlineTextBox::constructTextRun):
1009         * rendering/InlineTextBox.h:
1010         * rendering/RenderBlock.cpp:
1011         (WebCore::RenderBlock::constructTextRunAllowTrailingExpansion):
1012         * rendering/RenderBlock.h:
1013         * rendering/RenderEmbeddedObject.cpp:
1014         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
1015         * rendering/RenderFileUploadControl.cpp:
1016         (WebCore::RenderFileUploadControl::paintObject):
1017         (WebCore::RenderFileUploadControl::computePreferredLogicalWidths):
1018         * rendering/RenderImage.cpp:
1019         (WebCore::RenderImage::setImageSizeForAltText):
1020         (WebCore::RenderImage::paintReplaced):
1021         * rendering/RenderListBox.cpp:
1022         (WebCore::RenderListBox::updateFromElement):
1023         * rendering/RenderTextControl.cpp:
1024         (WebCore::RenderTextControl::getAvgCharWidth):
1025
1026 2011-05-17  Jeremy Noble  <jer.noble@apple.com>
1027
1028         Reviewed by Darin Adler.
1029
1030         Removing a full-screen element or ancestor from the DOM should trigger exiting full-screen mode.
1031         https://bugs.webkit.org/show_bug.cgi?id=60997
1032
1033         Tests: fullscreen/full-screen-remove-ancestor.html
1034                fullscreen/full-screen-remove-children.html
1035                fullscreen/full-screen-remove.html
1036
1037         * dom/Document.cpp:
1038         (WebCore::Document::fullScreenChangeDelayTimerFired): If the target node was removed from the document
1039             make sure to message the documentElement() as well.
1040         (WebCore::Document::fullScreenElementRemoved): Cancel full screen mode.
1041
1042 2011-05-17  Yuta Kitamura  <yutak@chromium.org>
1043
1044         Reviewed by Kent Tamura.
1045
1046         WebSocket: Add CLOSING state
1047         https://bugs.webkit.org/show_bug.cgi?id=60878
1048
1049         No new tests are added because there is no change in functionality.
1050
1051         * platform/network/SocketStreamHandleBase.h:
1052         * websockets/WebSocket.h:
1053         * websockets/WebSocket.idl:
1054
1055 2011-05-16  MORITA Hajime  <morrita@google.com>
1056
1057         Reviewed by Dimitri Glazkov.
1058
1059         [Refactoring] ShadowContentElement should be part of dom/
1060         https://bugs.webkit.org/show_bug.cgi?id=59117
1061
1062         - Moved html/shadow/ShadowContentElement.h to dom/ShadowContentElement.h
1063         - Pulled ShadowContentElement up to a subclass of StyledElement, from HTMLDivElement
1064         - Added ShadowContentElement.cpp
1065         - Extracted ShadowContentSelector.{cpp,h} from ShadowRoot.{cpp,h}
1066         
1067         No new tests, no behavior change.
1068
1069         * CMakeLists.txt:
1070         * GNUmakefile.list.am:
1071         * WebCore.gypi:
1072         * WebCore.pro:
1073         * WebCore.vcproj/WebCore.vcproj:
1074         * WebCore.xcodeproj/project.pbxproj:
1075         * dom/DOMAllInOne.cpp: Added new ShadowContentSelector.cpp and ShadowContentElement.cpp.
1076         * dom/Node.h: 
1077         (WebCore::Node::forceReattach): Moved from static local function to share between classes.
1078         * dom/ShadowContentElement.cpp: Copied from Source/WebCore/html/shadow/ShadowContentElement.h.
1079         (WebCore::ShadowContentElement::attach):
1080         * dom/ShadowContentElement.h: Copied from Source/WebCore/html/shadow/ShadowContentElement.h.
1081         (WebCore::ShadowContentElement::ShadowContentElement):
1082         (WebCore::ShadowContentElement::isShadowBoundary):
1083         (WebCore::ShadowContentElement::rendererIsNeeded):
1084         (WebCore::ShadowContentElement::createRenderer):
1085         * dom/ShadowContentSelector.cpp: Copied from Source/WebCore/html/shadow/ShadowContentElement.h.
1086         (WebCore::ShadowContentSelector::ShadowContentSelector):
1087         (WebCore::ShadowContentSelector::~ShadowContentSelector):
1088         (WebCore::ShadowContentSelector::attachChildrenFor):
1089         * dom/ShadowContentSelector.h: Renamed from Source/WebCore/html/shadow/ShadowContentElement.h.
1090         (WebCore::ShadowContentSelector::shadowRoot):
1091         (WebCore::ShadowContentSelector::activeElement):
1092         (WebCore::ShadowContentSelector::currentInstance):
1093         * dom/ShadowRoot.cpp:
1094         (WebCore::ShadowRoot::recalcStyle):
1095         * html/HTMLDetailsElement.cpp:
1096         (WebCore::DetailsContentElement::DetailsContentElement):
1097         (WebCore::DetailsSummaryElement::DetailsSummaryElement):
1098         * html/HTMLSummaryElement.cpp:
1099         (WebCore::SummaryContentElement::SummaryContentElement):
1100
1101 2011-05-17  Cris Neckar  <cdn@chromium.org>
1102
1103         Reviewed by Adam Barth.
1104
1105         Clear the image from ImageLoader rather than clearing the ImageLoader in HTMLObjectElement::renderFallbackContent.
1106         https://bugs.webkit.org/show_bug.cgi?id=61005
1107
1108         Test: http/tests/loading/nested_bad_objects.php
1109
1110         * html/HTMLObjectElement.cpp:
1111         (WebCore::HTMLObjectElement::renderFallbackContent):
1112
1113 2011-05-17  Chris Rogers  <crogers@google.com>
1114
1115         Reviewed by Kenneth Russell.
1116
1117         Make sure that AudioNode gets re-enabled after having been disconnected and re-connected.
1118         https://bugs.webkit.org/show_bug.cgi?id=60995
1119
1120         No new tests since audio API is not yet implemented.
1121
1122         * webaudio/AudioNode.cpp:
1123         (WebCore::AudioNode::ref):
1124
1125 2011-05-17  Brady Eidson  <beidson@apple.com>
1126
1127         Reviewed by Darin Adler.
1128
1129         <rdar://problem/9366728> and https://webkit.org/b/60796
1130         Crash when code inside a ResourceLoadDelegate method calls [WebView stopLoading:]
1131
1132         Break up ResourceLoader::didCancel() into willCancel() and didCancel(), and making them pure virtual.
1133         This change has the following benefits:
1134           - Managing ResourceLoader state can be in the base class; Subclasses no longer need to protect
1135             themselves, check these variables as often, or ASSERT them.
1136           - ResourceLoader subclasses no longer have to call the base class ::didCancel
1137           - ResourceLoader::cancel becomes more capable of handling reentrancy with the design that the 
1138             cancellation is completed inside the last call.
1139
1140         No new tests - No change in behavior for previous tests, and new test would require API usage outside
1141         the scope of DumpRenderTree.
1142
1143         * loader/ResourceLoader.cpp:
1144         (WebCore::ResourceLoader::ResourceLoader):
1145         (WebCore::ResourceLoader::cancel): Moved from ResourceLoader::didCancel, and does all of that same work
1146           except it interposes calls to "willCancel" and "didCancel" as required to maintain the same behavior.
1147         * loader/ResourceLoader.h: Added pure virtual didCancel() and willCancel().
1148
1149         Split-up into willCancel() and didCancel(), based on when the base class didCancel() used to be called:
1150         * loader/MainResourceLoader.cpp:
1151         (WebCore::MainResourceLoader::willCancel):
1152         (WebCore::MainResourceLoader::didCancel):
1153         * loader/MainResourceLoader.h:
1154
1155         Split-up into willCancel() and didCancel(), based on when the "reached terminal state" flag used to be checked:
1156         * loader/NetscapePlugInStreamLoader.cpp:
1157         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Call the entry point cancel() instead of the old didCancel()
1158         (WebCore::NetscapePlugInStreamLoader::willCancel):
1159         (WebCore::NetscapePlugInStreamLoader::didCancel):
1160         * loader/NetscapePlugInStreamLoader.h:
1161
1162         Split-up into willCancel() and didCancel(), based on when the "reached terminal state" flag used to be checked:
1163         * loader/SubresourceLoader.cpp:
1164         (WebCore::SubresourceLoader::willCancel):
1165         (WebCore::SubresourceLoader::didCancel):
1166         * loader/SubresourceLoader.h:
1167
1168 2011-05-17  Nat Duca  <nduca@chromium.org>
1169
1170         Reviewed by James Robinson.
1171
1172         [chromium] Always set layerRenderer, even on non-drawn-layers
1173         https://bugs.webkit.org/show_bug.cgi?id=60977
1174
1175         This is a defensive fixe for crbug.com/82799, in which
1176         a RenderLayer could not prepare itself because its owning layerImpl
1177         had no associated layerRenderer. The underlying issue is that we
1178         sometimes put renderSurfaces onto the list that won't actually render.
1179         For now, the priority is to reduce fragility so that invisible layers
1180         dont lead to crashers. We do this by being more agressive about 
1181         binding CCLayerImpls to the LayerRenderer, doing it all the time rather
1182         than only when we think it will get rendered.
1183
1184         * platform/graphics/chromium/LayerRendererChromium.cpp:
1185         (WebCore::LayerRendererChromium::paintLayerContents):
1186
1187 2011-05-17  Anders Carlsson  <andersca@apple.com>
1188
1189         Fix the clang build.
1190
1191         * rendering/RenderText.h:
1192         (WebCore::RenderText::nodeAtPoint):
1193         nodeAtPoint should take a const IntPoint reference.
1194
1195 2011-05-17  Erik Arvidsson  <arv@chromium.org>
1196
1197         Reviewed by Ryosuke Niwa.
1198
1199         document.activeElement doesn't point to the focused frame
1200         https://bugs.webkit.org/show_bug.cgi?id=49509
1201
1202         This makes us match IE and Firefox and there is an ongoing WHATWG discussion to make the spec match this.
1203
1204         Test: fast/dom/HTMLDocument/active-element-frames.html
1205
1206         * html/HTMLDocument.cpp:
1207         (WebCore::HTMLDocument::activeElement): Walk up the frame tree from the focusedFrame to find the active frame if any.
1208
1209 2011-05-17  Emil A Eklund  <eae@chromium.org>
1210
1211         Reviewed by Eric Seidel.
1212
1213         Change nodeAtPoint to take IntPoint instead of int x, int y
1214         https://bugs.webkit.org/show_bug.cgi?id=60663
1215
1216         Change nodeAtPoint to take a single const IntPoint& instead of a pair of
1217         ints for the location.
1218
1219         Covered by existing tests.
1220
1221         * platform/graphics/FloatPoint.h:
1222         (WebCore::flooredIntPoint):
1223         * rendering/EllipsisBox.cpp:
1224         (WebCore::EllipsisBox::nodeAtPoint):
1225         * rendering/EllipsisBox.h:
1226         * rendering/InlineBox.cpp:
1227         (WebCore::InlineBox::nodeAtPoint):
1228         * rendering/InlineBox.h:
1229         * rendering/InlineFlowBox.cpp:
1230         (WebCore::InlineFlowBox::nodeAtPoint):
1231         * rendering/InlineFlowBox.h:
1232         * rendering/InlineTextBox.cpp:
1233         (WebCore::InlineTextBox::nodeAtPoint):
1234         * rendering/InlineTextBox.h:
1235         * rendering/RenderBlock.cpp:
1236         (WebCore::RenderBlock::nodeAtPoint):
1237         (WebCore::RenderBlock::hitTestContents):
1238         * rendering/RenderBlock.h:
1239         * rendering/RenderBox.cpp:
1240         (WebCore::RenderBox::nodeAtPoint):
1241         * rendering/RenderBox.h:
1242         * rendering/RenderFrameSet.cpp:
1243         (WebCore::RenderFrameSet::nodeAtPoint):
1244         * rendering/RenderFrameSet.h:
1245         * rendering/RenderImage.cpp:
1246         (WebCore::RenderImage::nodeAtPoint):
1247         * rendering/RenderImage.h:
1248         * rendering/RenderInline.cpp:
1249         (WebCore::RenderInline::nodeAtPoint):
1250         * rendering/RenderInline.h:
1251         * rendering/RenderLineBoxList.cpp:
1252         (WebCore::RenderLineBoxList::hitTest):
1253         * rendering/RenderListBox.cpp:
1254         (WebCore::RenderListBox::nodeAtPoint):
1255         * rendering/RenderListBox.h:
1256         * rendering/RenderObject.cpp:
1257         (WebCore::RenderObject::hitTest):
1258         (WebCore::RenderObject::nodeAtPoint):
1259         * rendering/RenderObject.h:
1260         * rendering/RenderTable.cpp:
1261         (WebCore::RenderTable::nodeAtPoint):
1262         * rendering/RenderTable.h:
1263         * rendering/RenderTableRow.cpp:
1264         (WebCore::RenderTableRow::nodeAtPoint):
1265         * rendering/RenderTableRow.h:
1266         * rendering/RenderTableSection.cpp:
1267         (WebCore::RenderTableSection::nodeAtPoint):
1268         * rendering/RenderTableSection.h:
1269         * rendering/RenderText.h:
1270         (WebCore::RenderText::nodeAtPoint):
1271         * rendering/RenderTextControlMultiLine.cpp:
1272         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
1273         * rendering/RenderTextControlMultiLine.h:
1274         * rendering/RenderTextControlSingleLine.cpp:
1275         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
1276         * rendering/RenderTextControlSingleLine.h:
1277         * rendering/RenderWidget.cpp:
1278         (WebCore::RenderWidget::nodeAtPoint):
1279         * rendering/RenderWidget.h:
1280         * rendering/RootInlineBox.cpp:
1281         (WebCore::RootInlineBox::nodeAtPoint):
1282         * rendering/RootInlineBox.h:
1283         * rendering/svg/RenderSVGForeignObject.cpp:
1284         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
1285         (WebCore::RenderSVGForeignObject::nodeAtPoint):
1286         * rendering/svg/RenderSVGForeignObject.h:
1287         * rendering/svg/RenderSVGModelObject.cpp:
1288         (WebCore::RenderSVGModelObject::nodeAtPoint):
1289         * rendering/svg/RenderSVGModelObject.h:
1290         * rendering/svg/RenderSVGRoot.cpp:
1291         (WebCore::RenderSVGRoot::nodeAtPoint):
1292         * rendering/svg/RenderSVGRoot.h:
1293         * rendering/svg/RenderSVGText.cpp:
1294         (WebCore::RenderSVGText::nodeAtFloatPoint):
1295         (WebCore::RenderSVGText::nodeAtPoint):
1296         * rendering/svg/RenderSVGText.h:
1297
1298 2011-05-17  Andrew Wilson  <atwilson@chromium.org>
1299
1300         Unreviewed, rolling out r86647.
1301         http://trac.webkit.org/changeset/86647
1302         https://bugs.webkit.org/show_bug.cgi?id=56814
1303
1304         Broke tests downstream in Chromium
1305
1306         * dom/DocumentMarker.h:
1307         (WebCore::DocumentMarker::operator==):
1308         (WebCore::DocumentMarker::operator!=):
1309         * dom/DocumentMarkerController.cpp:
1310         (WebCore::DocumentMarkerController::addMarker):
1311         (WebCore::DocumentMarkerController::copyMarkers):
1312         (WebCore::DocumentMarkerController::removeMarkers):
1313         (WebCore::DocumentMarkerController::markerContainingPoint):
1314         (WebCore::DocumentMarkerController::markersInRange):
1315         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
1316         (WebCore::DocumentMarkerController::removeMarkersFromList):
1317         (WebCore::DocumentMarkerController::repaintMarkers):
1318         (WebCore::DocumentMarkerController::shiftMarkers):
1319         (WebCore::DocumentMarkerController::setMarkersActive):
1320         (WebCore::DocumentMarkerController::hasMarkers):
1321         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
1322         (WebCore::DocumentMarkerController::showMarkers):
1323         * dom/DocumentMarkerController.h:
1324         * editing/CompositeEditCommand.cpp:
1325         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
1326         * editing/DeleteSelectionCommand.cpp:
1327         (WebCore::DeleteSelectionCommand::originalStringForAutocorrectionAtBeginningOfSelection):
1328         * editing/Editor.cpp:
1329         (WebCore::Editor::selectionStartHasMarkerFor):
1330         * editing/SpellingCorrectionController.cpp:
1331         (WebCore::SpellingCorrectionController::respondToChangedSelection):
1332         * editing/SpellingCorrectionController.h:
1333         (WebCore::SpellingCorrectionController::shouldStartTimerFor):
1334         * rendering/HitTestResult.cpp:
1335         (WebCore::HitTestResult::spellingToolTip):
1336         (WebCore::HitTestResult::replacedString):
1337         * rendering/InlineTextBox.cpp:
1338         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1339         (WebCore::InlineTextBox::paintTextMatchMarker):
1340         (WebCore::InlineTextBox::computeRectForReplacementMarker):
1341         (WebCore::InlineTextBox::paintDocumentMarkers):
1342         * rendering/svg/SVGInlineFlowBox.cpp:
1343         (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer):
1344
1345 2011-05-17  Andrew Wilson  <atwilson@chromium.org>
1346
1347         Unreviewed, rolling out r86656.
1348         http://trac.webkit.org/changeset/86656
1349
1350         Broke tests downstream in Chromium
1351
1352         * editing/SpellingCorrectionController.cpp:
1353         (WebCore::markersHaveIdenticalDescription):
1354         (WebCore::SpellingCorrectionController::recordSpellcheckerResponseForModifiedCorrection):
1355         (WebCore::SpellingCorrectionController::processMarkersOnTextToBeReplacedByResult):
1356
1357 2011-05-17  Yufeng Shen  <miletus@chromium.org>
1358
1359         Reviewed by Darin Fisher.
1360
1361         Make WebKit expose extra touch information
1362         https://bugs.webkit.org/show_bug.cgi?id=59030
1363
1364         * dom/Document.cpp:
1365         (WebCore::Document::createTouch):
1366         * dom/Document.h:
1367         * dom/Document.idl:
1368         * dom/Touch.cpp:
1369         (WebCore::Touch::Touch):
1370         * dom/Touch.h:
1371         (WebCore::Touch::create):
1372         (WebCore::Touch::webkitRadiusX):
1373         (WebCore::Touch::webkitRadiusY):
1374         (WebCore::Touch::webkitRotationAngle):
1375         * dom/Touch.idl:
1376         * page/EventHandler.cpp:
1377         (WebCore::EventHandler::handleTouchEvent):
1378         * platform/PlatformTouchPoint.h:
1379         (WebCore::PlatformTouchPoint::radiusX):
1380         (WebCore::PlatformTouchPoint::radiusY):
1381         (WebCore::PlatformTouchPoint::rotationAngle):
1382
1383 2011-05-17  Eric Seidel  <eric@webkit.org>
1384
1385         Reviewed by Ryosuke Niwa.
1386
1387         Add a LineLayoutState object to hold global state during line layout
1388         https://bugs.webkit.org/show_bug.cgi?id=60113
1389
1390         Like LayoutState for layout(), LineLayoutState keeps track of global information
1391         during an entire linebox tree layout pass (aka layoutInlineChildren).
1392
1393         For now it just holds isFullLayout and the logicalRepaintTop/Bottom.
1394         It's possible we should hold the useRepaintBounds bool as well as
1395         the startLine and endLine RootInlineBox pointers.
1396
1397         No change in behavior, thus no tests.
1398
1399         * rendering/RenderBlock.cpp:
1400         (WebCore::RenderBlock::layoutBlock):
1401         * rendering/RenderBlock.h:
1402         * rendering/RenderBlockLineLayout.cpp:
1403         (WebCore::LineLayoutState::LineLayoutState):
1404         (WebCore::LineLayoutState::markForFullLayout):
1405         (WebCore::LineLayoutState::isFullLayout):
1406         (WebCore::LineLayoutState::setRepaintRange):
1407         (WebCore::LineLayoutState::updateRepaintRangeFromBox):
1408         (WebCore::LineLayoutState::startLine):
1409         (WebCore::LineLayoutState::endLine):
1410         (WebCore::deleteLineRange):
1411         (WebCore::RenderBlock::layoutRunsAndFloats):
1412         (WebCore::RenderBlock::layoutInlineChildren):
1413         (WebCore::RenderBlock::checkFloatsInCleanLine):
1414         (WebCore::RenderBlock::determineStartPosition):
1415         (WebCore::RenderBlock::determineEndPosition):
1416         (WebCore::RenderBlock::matchedEndLine):
1417
1418 2011-05-17  Andreas Kling  <kling@webkit.org>
1419
1420         Reviewed by Kenneth Rohde Christiansen.
1421
1422         Area element doesn't update region when dynamically altered.
1423         https://bugs.webkit.org/show_bug.cgi?id=54636
1424
1425         Recompute the clickable region after the "shape" or "coords" attribute
1426         of an area element is changed.
1427
1428         Test: fast/images/imagemap-dynamic-area-updates.html
1429
1430         * html/HTMLAreaElement.cpp:
1431         (WebCore::HTMLAreaElement::parseMappedAttribute):
1432         (WebCore::HTMLAreaElement::invalidateCachedRegion):
1433         * html/HTMLAreaElement.h:
1434
1435 2011-05-09  Luiz Agostini  <luiz.agostini@openbossa.org>
1436
1437         Reviewed by Kenneth Rohde Christiansen.
1438
1439         [Qt] Redirection of HTTP POST (3xx) incorrectly includes original POST data
1440         https://bugs.webkit.org/show_bug.cgi?id=60440
1441
1442         Makes sure that the HTTP headers Content-type and Content-length are not included in
1443         the requests that do not have any content.
1444
1445         Tests: http/tests/navigation/post-301-response.html
1446                http/tests/navigation/post-302-response.html
1447                http/tests/navigation/post-303-response.html
1448                http/tests/navigation/post-307-response.html
1449
1450         * platform/network/qt/QNetworkReplyHandler.cpp:
1451         (WebCore::QNetworkReplyHandler::sendNetworkRequest):
1452
1453 2011-05-17  Andreas Kling  <kling@webkit.org>
1454
1455         Reviewed by Benjamin Poulain.
1456
1457         [Qt] GraphicsLayerQtImpl: Remove an unused variable.
1458
1459         * platform/graphics/qt/GraphicsLayerQt.cpp:
1460         (WebCore::GraphicsLayerQtImpl::paint):
1461
1462 2011-05-17  Pavel Feldman  <pfeldman@google.com>
1463
1464         Reviewed by Yury Semikhatsky.
1465
1466         Web Inspector: navigating from elements panel does not show source view.
1467         https://bugs.webkit.org/show_bug.cgi?id=60970
1468
1469         * inspector/front-end/TextViewer.js:
1470         (WebInspector.TextViewer.prototype.highlightLine):
1471         (WebInspector.TextEditorChunkedPanel.prototype.makeLineAChunk):
1472
1473 2011-05-17  Sam Magnuson  <smagnuson@netflix.com>
1474
1475         Reviewed by Kenneth Rohde Christiansen.
1476
1477         [Qt] Node that have both an opacity and a transform animation on them seem not to fire.
1478         https://bugs.webkit.org/show_bug.cgi?id=40841
1479
1480         Test: compositing/animation/busy-indicator.html
1481
1482         * platform/graphics/qt/GraphicsLayerQt.cpp:
1483         (WebCore::GraphicsLayerQtImpl::recache):
1484         (WebCore::GraphicsLayerQtImpl::flushChanges):
1485         (WebCore::GraphicsLayerQt::setContentsToImage):
1486         (WebCore::TransformAnimationQt::getAnimatedProperty):
1487         (WebCore::OpacityAnimationQt::getAnimatedProperty):
1488         (WebCore::GraphicsLayerQt::addAnimation):
1489
1490 2011-05-17  Grace Kloba  <klobag@chromium.org>
1491
1492         Reviewed by Kenneth Russell.
1493
1494         GraphicsContext3DSkia needs to honor the platform Sk_x_SHIFT value instead of assuming BGRA color
1495         https://bugs.webkit.org/show_bug.cgi?id=60965
1496
1497         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
1498         (WebCore::GraphicsContext3D::getImageData):
1499
1500 2011-05-17  Alexander Pavlov  <apavlov@chromium.org>
1501
1502         Reviewed by Yury Semikhatsky.
1503
1504         Web Inspector: Enter/Tab after editing a CSS property does not invoke editor on next field
1505         https://bugs.webkit.org/show_bug.cgi?id=60962
1506
1507         * inspector/front-end/ElementsPanel.js:
1508         (WebInspector.ElementsPanel.prototype.updateStyles):
1509
1510 2011-05-17  Sheriff Bot  <webkit.review.bot@gmail.com>
1511
1512         Unreviewed, rolling out r86660.
1513         http://trac.webkit.org/changeset/86660
1514         https://bugs.webkit.org/show_bug.cgi?id=60958
1515
1516         broke search in console panel (Requested by podivilov on
1517         #webkit).
1518
1519         * inspector/front-end/ConsoleView.js:
1520         (WebInspector.ConsoleView.prototype.show):
1521         (WebInspector.ConsoleView.prototype.afterShow):
1522         (WebInspector.ConsoleView.prototype.hide):
1523         (WebInspector.ConsoleView.prototype.addMessage):
1524         (WebInspector.ConsoleView.prototype.clearMessages):
1525         * inspector/front-end/DebuggerPresentationModel.js:
1526         (WebInspector.DebuggerPresentationModel):
1527         * inspector/front-end/Drawer.js:
1528         (WebInspector.Drawer.prototype.set visibleView):
1529         (WebInspector.Drawer.prototype.show.animationFinished):
1530         (WebInspector.Drawer.prototype.show):
1531         * inspector/front-end/Panel.js:
1532         (WebInspector.Panel):
1533         * inspector/front-end/ResourceTreeModel.js:
1534         (WebInspector.ResourceTreeModel):
1535         * inspector/front-end/inspector.html:
1536         * inspector/front-end/inspector.js:
1537         (WebInspector._createPanels):
1538
1539 2011-05-17  Alexis Menard  <alexis.menard@openbossa.org>
1540
1541         Unreviewed warning fix introduced by r86377.
1542
1543         * rendering/RenderFieldset.cpp:
1544         (WebCore::RenderFieldset::paintMask):
1545
1546 2011-05-17  Yuta Kitamura  <yutak@chromium.org>
1547
1548         Reviewed by Kent Tamura.
1549
1550         WebSocket: Uninline methods in ThreadableWebSocketChannelClientWrapper
1551         https://bugs.webkit.org/show_bug.cgi?id=60945
1552
1553         Add ThreadableWebSocketChannelClientWrapper.cpp. Uninline methods in this class and
1554         move these definitions into .cpp in order to allow further modifications in this class.
1555
1556         No new tests, as this is just refactoring.
1557
1558         * CMakeLists.txt:
1559         * GNUmakefile.list.am:
1560         * WebCore.gypi:
1561         * WebCore.pro:
1562         * WebCore.vcproj/WebCore.vcproj:
1563         * WebCore.xcodeproj/project.pbxproj:
1564         * websockets/ThreadableWebSocketChannelClientWrapper.cpp: Added.
1565         (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
1566         (WebCore::ThreadableWebSocketChannelClientWrapper::create):
1567         (WebCore::ThreadableWebSocketChannelClientWrapper::clearSyncMethodDone):
1568         (WebCore::ThreadableWebSocketChannelClientWrapper::setSyncMethodDone):
1569         (WebCore::ThreadableWebSocketChannelClientWrapper::syncMethodDone):
1570         (WebCore::ThreadableWebSocketChannelClientWrapper::sent):
1571         (WebCore::ThreadableWebSocketChannelClientWrapper::setSent):
1572         (WebCore::ThreadableWebSocketChannelClientWrapper::bufferedAmount):
1573         (WebCore::ThreadableWebSocketChannelClientWrapper::setBufferedAmount):
1574         (WebCore::ThreadableWebSocketChannelClientWrapper::clearClient):
1575         (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
1576         (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
1577         (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
1578         (WebCore::ThreadableWebSocketChannelClientWrapper::suspend):
1579         (WebCore::ThreadableWebSocketChannelClientWrapper::resume):
1580         (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingEvents):
1581         * websockets/ThreadableWebSocketChannelClientWrapper.h:
1582
1583 2011-05-17  Andreas Kling  <andreas.kling@nokia.com>
1584
1585         Reviewed by Kenneth Rohde Christiansen.
1586
1587         [Qt] Support shadowed text in fast font path.
1588         https://bugs.webkit.org/show_bug.cgi?id=60462
1589
1590         * platform/graphics/Font.cpp:
1591         (WebCore::Font::drawText): Remove complex path shortcut for shadowed text.
1592
1593         * platform/graphics/qt/FontQt.cpp:
1594         (WebCore::Font::drawGlyphs): Paint shadows for simple text.
1595
1596 2011-05-17  Andreas Kling  <kling@webkit.org>
1597
1598         Reviewed by Kenneth Rohde Christiansen.
1599
1600         [Qt] Construct GraphicsLayerQtImpl::State with correct values.
1601         https://bugs.webkit.org/show_bug.cgi?id=60902
1602
1603         The GraphicsLayerQtImpl initial state should match the initial values
1604         of the corresponding GraphicsLayer flags.
1605
1606         * platform/graphics/qt/GraphicsLayerQt.cpp:
1607         (WebCore::GraphicsLayerQtImpl::State::State):
1608
1609 2011-05-12  Hans Wennborg  <hans@chromium.org>
1610
1611         Reviewed by Steve Block.
1612
1613         IndexedDB: Index population should ignore records without key for index
1614         https://bugs.webkit.org/show_bug.cgi?id=60697
1615
1616         When populating a new index, records which do not have a key on the
1617         index's key path should be ignored.
1618
1619         * storage/IDBObjectStoreBackendImpl.cpp:
1620
1621 2011-05-17  Young Han Lee  <joybro@company100.net>
1622
1623         Reviewed by Csaba Osztrogonác.
1624
1625         [Texmap][Qt] Enable strict PassOwnPtr for Qt with texmap enabled.
1626         https://bugs.webkit.org/show_bug.cgi?id=60947
1627
1628         No new tests. Build fix.
1629
1630         * platform/graphics/qt/TextureMapperQt.cpp:
1631         (WebCore::TextureMapper::create):
1632         * platform/graphics/qt/TextureMapperQt.h:
1633         (WebCore::TextureMapperQt::create):
1634         * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
1635         (WebCore::GraphicsLayer::create):
1636
1637 2011-05-17  Alexander Pavlov  <apavlov@chromium.org>
1638
1639         Reviewed by Yury Semikhatsky.
1640
1641         Web Inspector: Increment/decrement of very big CSS numeric values results in invalid CSS
1642         https://bugs.webkit.org/show_bug.cgi?id=60890
1643
1644         * inspector/front-end/MetricsSidebarPane.js:
1645         (WebInspector.MetricsSidebarPane.prototype._handleKeyDown):
1646         * inspector/front-end/StylesSidebarPane.js:
1647         (WebInspector.StylesSidebarPane.alteredFloatNumber):
1648         (WebInspector.StylePropertyTreeElement.prototype):
1649
1650 2011-05-17  Pavel Podivilov  <podivilov@chromium.org>
1651
1652         Reviewed by Yury Semikhatsky.
1653
1654         Web Inspector: merge ConsoleView into ConsolePanel.
1655         https://bugs.webkit.org/show_bug.cgi?id=54670
1656
1657         Console view in drawer looks exactly the same as console panel. Merging ConsoleView and ConsolePanel together
1658         will allow us to reuse panel's functionality (e.g. resizable sidebar) even when console is docked.
1659
1660         * inspector/front-end/ConsoleView.js:
1661         (WebInspector.ConsolePanel.prototype.get toolbarItemLabel):
1662         (WebInspector.ConsolePanel.prototype.show):
1663         (WebInspector.ConsolePanel.prototype.hide):
1664         (WebInspector.ConsolePanel.prototype.showInDrawer):
1665         (WebInspector.ConsolePanel.prototype.afterShowInDrawer):
1666         (WebInspector.ConsolePanel.prototype.hideInDrawer):
1667         (WebInspector.ConsolePanel.prototype.addMessage):
1668         (WebInspector.ConsolePanel.prototype.clearMessages):
1669         * inspector/front-end/DebuggerPresentationModel.js:
1670         (WebInspector.DebuggerPresentationModel):
1671         * inspector/front-end/Drawer.js:
1672         (WebInspector.Drawer.prototype.set visibleView):
1673         (WebInspector.Drawer.prototype.show.animationFinished):
1674         (WebInspector.Drawer.prototype.show):
1675         * inspector/front-end/Panel.js:
1676         (WebInspector.Panel):
1677         * inspector/front-end/ResourceTreeModel.js:
1678         (WebInspector.ResourceTreeModel):
1679         * inspector/front-end/inspector.html:
1680         * inspector/front-end/inspector.js:
1681         (WebInspector._createPanels):
1682
1683 2011-05-16  Yuta Kitamura  <yutak@chromium.org>
1684
1685         Reviewed by Kent Tamura.
1686
1687         WebSocket: WebSocketHandshake prints a carriage return to console
1688         https://bugs.webkit.org/show_bug.cgi?id=60880
1689
1690         * websockets/WebSocketHandshake.cpp:
1691         (WebCore::WebSocketHandshake::readStatusLine):
1692         WebSocketHandshake should not print a carriage return to console. To fix this,
1693         we first check whether the status line ends with CRLF. After that,
1694         we can print the first (lineLength - 2) characters of the status line
1695         which do not contain a carriage return.
1696
1697 2011-05-16  MORITA Hajime  <morrita@google.com>
1698
1699         Unreviewed build fix for r86647, which broke SUPPORT_AUTOCORRECTION_PANEL.
1700
1701         * editing/SpellingCorrectionController.cpp:
1702         (WebCore::markersHaveIdenticalDescription):
1703         (WebCore::SpellingCorrectionController::recordSpellcheckerResponseForModifiedCorrection):
1704         (WebCore::SpellingCorrectionController::processMarkersOnTextToBeReplacedByResult):
1705
1706 2011-05-16  Kent Tamura  <tkent@chromium.org>
1707
1708         Fix Leopard build.
1709
1710         * html/HTMLInputElement.cpp:
1711         (WebCore::HTMLInputElement::stepUpFromRenderer): Use double instead of int.
1712
1713 2011-05-16  James Robinson  <jamesr@chromium.org>
1714
1715         Reviewed by Kenneth Russell.
1716
1717         [chromium] Decouple LayerChromium/CCLayerImpl trees
1718         https://bugs.webkit.org/show_bug.cgi?id=58830
1719
1720         Makes the CCLayerImpl tree self-hosting and provides an explicit step
1721         to synchronize the LayerChromium tree to the CCLayerImpl tree.
1722         Tested by compositing/ layout tests and by unit tests in WebKit/chromium.
1723
1724         * WebCore.gypi:
1725         * platform/graphics/chromium/CanvasLayerChromium.cpp:
1726         (WebCore::CanvasLayerChromium::createCCLayerImpl):
1727         * platform/graphics/chromium/LayerChromium.cpp:
1728         (WebCore::LayerChromium::LayerChromium):
1729         (WebCore::LayerChromium::~LayerChromium):
1730         (WebCore::LayerChromium::cleanupResources):
1731         (WebCore::LayerChromium::dumpLayer):
1732         (WebCore::LayerChromium::dumpLayerProperties):
1733         (WebCore::LayerChromium::createCCLayerImpl):
1734         (WebCore::LayerChromium::ccLayerImpl):
1735         * platform/graphics/chromium/LayerChromium.h:
1736         (WebCore::LayerChromium::id):
1737         (WebCore::LayerChromium::setCCLayerImpl):
1738         * platform/graphics/chromium/LayerRendererChromium.cpp:
1739         (WebCore::LayerRendererChromium::updateAndDrawLayers):
1740         (WebCore::LayerRendererChromium::updateLayers):
1741         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1742         (WebCore::LayerRendererChromium::updateCompositorResourcesRecursive):
1743         * platform/graphics/chromium/LayerRendererChromium.h:
1744         * platform/graphics/chromium/PluginLayerChromium.cpp:
1745         (WebCore::PluginLayerChromium::createCCLayerImpl):
1746         * platform/graphics/chromium/TreeSynchronizer.cpp: Added.
1747         (WebCore::TreeSynchronizer::addCCLayerImplsToMapRecursive):
1748         (WebCore::TreeSynchronizer::synchronizeTreeRecursive):
1749         (WebCore::TreeSynchronizer::synchronizeTrees):
1750         * platform/graphics/chromium/TreeSynchronizer.h:
1751         * platform/graphics/chromium/VideoLayerChromium.cpp:
1752         (WebCore::VideoLayerChromium::createCCLayerImpl):
1753         * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
1754         (WebCore::CCCanvasLayerImpl::CCCanvasLayerImpl):
1755         * platform/graphics/chromium/cc/CCCanvasLayerImpl.h:
1756         (WebCore::CCCanvasLayerImpl::create):
1757         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1758         (WebCore::CCLayerImpl::CCLayerImpl):
1759         (WebCore::CCLayerImpl::addChild):
1760         (WebCore::CCLayerImpl::removeFromParent):
1761         (WebCore::CCLayerImpl::removeAllChildren):
1762         (WebCore::CCLayerImpl::clearChildList):
1763         (WebCore::CCLayerImpl::descendantsDrawsContent):
1764         (WebCore::CCLayerImpl::drawsContent):
1765         (WebCore::CCLayerImpl::updateCompositorResources):
1766         * platform/graphics/chromium/cc/CCLayerImpl.h:
1767         (WebCore::CCLayerImpl::create):
1768         (WebCore::CCLayerImpl::parent):
1769         (WebCore::CCLayerImpl::children):
1770         (WebCore::CCLayerImpl::setMaskLayer):
1771         (WebCore::CCLayerImpl::maskLayer):
1772         (WebCore::CCLayerImpl::setReplicaLayer):
1773         (WebCore::CCLayerImpl::replicaLayer):
1774         (WebCore::CCLayerImpl::id):
1775         (WebCore::CCLayerImpl::owner):
1776         (WebCore::CCLayerImpl::setParent):
1777         * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp:
1778         (WebCore::CCPluginLayerImpl::CCPluginLayerImpl):
1779         * platform/graphics/chromium/cc/CCPluginLayerImpl.h:
1780         (WebCore::CCPluginLayerImpl::create):
1781         * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
1782         (WebCore::CCVideoLayerImpl::CCVideoLayerImpl):
1783         * platform/graphics/chromium/cc/CCVideoLayerImpl.h:
1784         (WebCore::CCVideoLayerImpl::create):
1785
1786 2011-05-16  Naoki Takano  <takano.naoki@gmail.com>
1787
1788         Reviewed by Kent Tamura.
1789
1790         HTML5 Number Spinbox displays a 0 in situations where a 0 is not between the min and max.
1791         https://bugs.webkit.org/show_bug.cgi?id=60871
1792
1793         Test: fast/forms/input-stepup-stepdown-from-renderer.html
1794
1795         In number input type, if the value is not a number, including empty, the currect valued is assumed 0.
1796         But we have to handle it separately from the case when the value is actuall "0".
1797
1798         * html/HTMLInputElement.cpp:
1799         (WebCore::HTMLInputElement::stepUpFromRenderer): Added cliping for default value.
1800
1801 2011-05-16  Adam Barth  <abarth@webkit.org>
1802
1803         Reviewed by Eric Seidel.
1804
1805         Remove bogus ASSERT in Document::setCompatibilityMode
1806         https://bugs.webkit.org/show_bug.cgi?id=60935
1807
1808         The ASSERT is invalid when the parser is in the initial state and the
1809         document is non-empty, which is strange but not impossible.
1810
1811         Test: fast/parser/append-child-followed-by-document-write.html
1812
1813         * dom/Document.cpp:
1814         (WebCore::Document::setCompatibilityMode):
1815
1816 2011-05-16  MORITA Hajime  <morrita@google.com>
1817
1818         Reviewed by Tony Chang.
1819
1820         [Refactoring] Member variables of DocumentMarker should be encapsulated.        
1821         https://bugs.webkit.org/show_bug.cgi?id=56814
1822
1823         - Moved DocumentMarker's member variables to private and added getters for them.
1824         - Added DocumentMarker setters and constructors, which contain assertions against m_type values
1825           because description and activeMatch are used with specific type of MarkerType.
1826         - Moved chromium's WebKit::WebFrameImpl::addMarker() to DocumentMarkerController because
1827           it accesses DocumentMarker internals.
1828         - Moved a version of DMC::addMarker() to private and add alternatives that hide
1829           internals of DocumentMarker. (The internal will be renewed by upcoming change.)
1830         
1831         * dom/DocumentMarker.h:
1832         (WebCore::DocumentMarker::type):
1833         (WebCore::DocumentMarker::startOffset):
1834         (WebCore::DocumentMarker::endOffset):
1835         (WebCore::DocumentMarker::description):
1836         (WebCore::DocumentMarker::hasDescription):
1837         (WebCore::DocumentMarker::activeMatch):
1838         (WebCore::DocumentMarker::clearDescription):
1839         (WebCore::DocumentMarker::setStartOffset):
1840         (WebCore::DocumentMarker::setEndOffset):
1841         (WebCore::DocumentMarker::operator==):
1842         (WebCore::DocumentMarker::DocumentMarker):
1843         (WebCore::DocumentMarker::shiftOffsets):
1844         (WebCore::DocumentMarker::setActiveMatch):
1845         * dom/DocumentMarkerController.cpp:
1846         (WebCore::DocumentMarkerController::addMarker):
1847         (WebCore::DocumentMarkerController::addTextMatchMarker):
1848         (WebCore::DocumentMarkerController::copyMarkers):
1849         (WebCore::DocumentMarkerController::removeMarkers):
1850         (WebCore::DocumentMarkerController::markerContainingPoint):
1851         (WebCore::DocumentMarkerController::markersInRange):
1852         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
1853         (WebCore::DocumentMarkerController::removeMarkersFromList):
1854         (WebCore::DocumentMarkerController::repaintMarkers):
1855         (WebCore::DocumentMarkerController::shiftMarkers):
1856         (WebCore::DocumentMarkerController::setMarkersActive):
1857         (WebCore::DocumentMarkerController::hasMarkers):
1858         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
1859         (WebCore::DocumentMarkerController::showMarkers):
1860         * dom/DocumentMarkerController.h:
1861         * editing/CompositeEditCommand.cpp:
1862         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
1863         * editing/DeleteSelectionCommand.cpp:
1864         (WebCore::DeleteSelectionCommand::originalStringForAutocorrectionAtBeginningOfSelection):
1865         * editing/Editor.cpp:
1866         (WebCore::Editor::selectionStartHasMarkerFor):
1867         * editing/SpellingCorrectionController.cpp:
1868         (WebCore::SpellingCorrectionController::respondToChangedSelection):
1869         * editing/SpellingCorrectionController.h:
1870         (WebCore::SpellingCorrectionController::shouldStartTimerFor):
1871         * rendering/HitTestResult.cpp:
1872         (WebCore::HitTestResult::spellingToolTip):
1873         (WebCore::HitTestResult::replacedString):
1874         * rendering/InlineTextBox.cpp:
1875         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1876         (WebCore::InlineTextBox::paintTextMatchMarker):
1877         (WebCore::InlineTextBox::computeRectForReplacementMarker):
1878         (WebCore::InlineTextBox::paintDocumentMarkers):
1879         * rendering/svg/SVGInlineFlowBox.cpp:
1880         (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer):
1881
1882 2011-05-16  Martin Robinson  <mrobinson@igalia.com>
1883
1884         Fix the Cairo build for older versions of GTK+.
1885
1886         * platform/gtk/GtkWidgetBackingStoreX11.cpp: Include GtkVersioning.h to
1887         satisfy older versions of GTK+ 2.x.
1888
1889 2011-05-16  Ian Henderson  <ianh@apple.com>
1890
1891         Reviewed by Joseph Pecoraro.
1892
1893         Page::goToItem doesn't work while loading is deferred
1894         https://bugs.webkit.org/show_bug.cgi?id=60412
1895
1896         If goToItem is called while loading is deferred, save the arguments
1897         and try again later instead of doing nothing.
1898
1899         Test: loader/navigation-while-deferring-loads.html
1900
1901         * loader/FrameLoader.cpp:
1902         (WebCore::FrameLoader::setDefersLoading):
1903         Pipe the "defersLoading" state into HistoryController.
1904         * loader/HistoryController.cpp:
1905         (WebCore::HistoryController::HistoryController):
1906         (WebCore::HistoryController::goToItem):
1907         Save the HistoryItem and FrameLoadType if loading is deferred.
1908         (WebCore::HistoryController::setDefersLoading):
1909         If we have a saved HistoryItem after resuming, try going to it.
1910         * loader/HistoryController.h:
1911         * page/Page.cpp:
1912         (WebCore::Page::goToItem):
1913         No longer bail early if loading is deferred, since HistoryController
1914         now handles this case.
1915
1916 2011-05-16  Andrew Wilson  <atwilson@chromium.org>
1917
1918         Unreviewed, rolling out r86625.
1919         http://trac.webkit.org/changeset/86625
1920         https://bugs.webkit.org/show_bug.cgi?id=60719
1921
1922         Caused failed assertion on Chromium gpu canary bots
1923
1924         * WebCore.gypi:
1925         * platform/chromium/TraceEvent.h:
1926         * platform/graphics/chromium/ContentLayerChromium.cpp:
1927         (WebCore::ContentLayerChromium::create):
1928         (WebCore::ContentLayerChromium::ContentLayerChromium):
1929         (WebCore::ContentLayerChromium::~ContentLayerChromium):
1930         (WebCore::ContentLayerChromium::paintContentsIfDirty):
1931         (WebCore::ContentLayerChromium::setLayerRenderer):
1932         (WebCore::ContentLayerChromium::createTilerIfNeeded):
1933         (WebCore::ContentLayerChromium::updateCompositorResources):
1934         * platform/graphics/chromium/ContentLayerChromium.h:
1935         (WebCore::ContentLayerChromium::drawsContent):
1936         * platform/graphics/chromium/ImageLayerChromium.cpp:
1937         (WebCore::ImageLayerChromium::paintContentsIfDirty):
1938         (WebCore::ImageLayerChromium::updateCompositorResources):
1939         * platform/graphics/chromium/ImageLayerChromium.h:
1940         * platform/graphics/chromium/LayerPainterChromium.h: Removed.
1941         * platform/graphics/chromium/LayerRendererChromium.cpp:
1942         (WebCore::LayerRendererChromium::create):
1943         (WebCore::LayerRendererChromium::LayerRendererChromium):
1944         (WebCore::LayerRendererChromium::updateRootLayerContents):
1945         (WebCore::LayerRendererChromium::drawRootLayer):
1946         (WebCore::LayerRendererChromium::updateAndDrawLayers):
1947         (WebCore::LayerRendererChromium::updateLayers):
1948         * platform/graphics/chromium/LayerRendererChromium.h:
1949         * platform/graphics/chromium/LayerTextureSubImage.cpp: Removed.
1950         * platform/graphics/chromium/LayerTextureSubImage.h: Removed.
1951         * platform/graphics/chromium/LayerTextureUpdater.h: Removed.
1952         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp: Removed.
1953         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h: Removed.
1954         * platform/graphics/chromium/LayerTilerChromium.cpp:
1955         (WebCore::LayerTilerChromium::create):
1956         (WebCore::LayerTilerChromium::LayerTilerChromium):
1957         (WebCore::LayerTilerChromium::setLayerRenderer):
1958         (WebCore::LayerTilerChromium::setTileSize):
1959         (WebCore::LayerTilerChromium::update):
1960         (WebCore::LayerTilerChromium::uploadCanvas):
1961         (WebCore::LayerTilerChromium::updateFromPixels):
1962         (WebCore::LayerTilerChromium::draw):
1963         * platform/graphics/chromium/LayerTilerChromium.h:
1964         (WebCore::LayerTilerChromium::Tile::Tile):
1965         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
1966         (WebCore::CCHeadsUpDisplay::draw):
1967
1968 2011-05-16  Antti Koivisto  <antti@apple.com>
1969
1970         Reviewed by Dave Kilzer.
1971
1972         https://bugs.webkit.org/show_bug.cgi?id=60927
1973         fastCheckSelector() does not inline correctly in all cases
1974
1975         Use anonymous namespace instead of static qualifier to get internal linkage.
1976         Use functions as template arguments instead of classes.
1977
1978         * css/CSSStyleSelector.cpp:
1979         (WebCore::CSSStyleSelector::SelectorChecker::fastCheckSelector):
1980
1981 2011-05-16  Chris Rogers  <crogers@google.com>
1982
1983         Unreviewed build fix.
1984
1985         Just return "nullptr" to fix compile errors
1986         https://bugs.webkit.org/show_bug.cgi?id=60932
1987
1988         * platform/audio/mac/AudioBusMac.mm:
1989         (WebCore::AudioBus::loadPlatformResource):
1990         * platform/audio/mac/AudioFileReaderMac.cpp:
1991         (WebCore::AudioFileReader::createBus):
1992
1993 2011-05-16  Emil A Eklund  <eae@chromium.org>
1994
1995         Reviewed by Eric Seidel.
1996
1997         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
1998         https://bugs.webkit.org/show_bug.cgi?id=60743
1999
2000         Change RenderView::documentRect to compute rect once rather than four times.
2001         Replace all uses of docTop/Right/Bottom/Left/Width/Height with documentRect to
2002         simplify the code and reduce complexity.
2003
2004         Covered by existing tests.
2005
2006         * WebCore.exp.in:
2007         * page/FrameView.cpp:
2008         (WebCore::FrameView::adjustViewSize):
2009         (WebCore::FrameView::forceLayoutForPagination):
2010         * page/PrintContext.cpp:
2011         (WebCore::PrintContext::computePageRects):
2012         * rendering/RenderBox.cpp:
2013         (WebCore::RenderBox::paintRootBoxFillLayers):
2014         * rendering/RenderLayerCompositor.cpp:
2015         (WebCore::RenderLayerCompositor::updateRootLayerPosition):
2016         * rendering/RenderView.cpp:
2017         (WebCore::RenderView::documentRect):
2018         * rendering/RenderView.h:
2019
2020 2011-05-16  Tony Chang  <tony@chromium.org>
2021
2022         Reviewed by Adam Barth.
2023
2024         [chromium] shard V8DerivedSources into 19 files
2025         https://bugs.webkit.org/show_bug.cgi?id=60926
2026
2027         This reduces the clobber build time by 4s on my machine.  It helps
2028         by making the slowest to compile V8DerivedSources faster (and thus
2029         more parallelizable).  With 8 files, the 3 slowest are 23s, 18s and
2030         10s.  With 19 files, the 3 slowest are 16s, 10s, and 10s.
2031
2032         * WebCore.gyp/WebCore.gyp:
2033         * storage/IDBObjectStore.h: Fix a missing include that was working
2034           because a different .cpp file before it was including the header.
2035
2036 2011-05-16  Chris Rogers  <crogers@google.com>
2037
2038         Unreviewed build fix.
2039
2040         Fix web audio enabled mac port compile errors
2041         https://bugs.webkit.org/show_bug.cgi?id=60930
2042
2043         * platform/audio/mac/AudioBusMac.mm:
2044         (WebCore::AudioBus::loadPlatformResource):
2045         * platform/audio/mac/AudioFileReaderMac.cpp:
2046         (WebCore::AudioFileReader::createBus):
2047
2048 2011-05-16  Eric Seidel  <eric@webkit.org>
2049
2050         Reviewed by Adam Barth.
2051
2052         Document why RenderBlockLineLayout has its own deleteLineBoxTree implementation
2053         https://bugs.webkit.org/show_bug.cgi?id=60925
2054
2055         I suspect this difference is really just papering over other bugs
2056         but now that I finally understand the difference, I should at least
2057         document it for others.
2058
2059         * rendering/RenderBlockLineLayout.cpp:
2060         (WebCore::deleteLineRange):
2061         (WebCore::RenderBlock::determineStartPosition):
2062
2063 2011-05-16  Alok Priyadarshi  <alokp@chromium.org>
2064
2065         Reviewed by James Robinson.
2066
2067         [chromium] Split canvas from LayerTilerChromium
2068         https://bugs.webkit.org/show_bug.cgi?id=60719
2069
2070         LayerTilerChromium now just does tiling. It delegates the task of painting and updating textures to LayerTextureUpdater.
2071         Also abstracted LayerTextureSubImage to upload texture pixels.
2072
2073         * WebCore.gypi:
2074         * platform/chromium/TraceEvent.h:
2075         * platform/graphics/chromium/ContentLayerChromium.cpp:
2076         (WebCore::ContentLayerChromium::create):
2077         (WebCore::ContentLayerChromium::ContentLayerChromium):
2078         (WebCore::ContentLayerChromium::~ContentLayerChromium):
2079         (WebCore::ContentLayerChromium::paintContentsIfDirty):
2080         (WebCore::ContentLayerChromium::cleanupResources):
2081         (WebCore::ContentLayerChromium::setLayerRenderer):
2082         (WebCore::ContentLayerChromium::createTextureUpdater):
2083         (WebCore::ContentLayerChromium::drawsContent):
2084         (WebCore::ContentLayerChromium::createTilerIfNeeded):
2085         (WebCore::ContentLayerChromium::updateCompositorResources):
2086         * platform/graphics/chromium/ContentLayerChromium.h:
2087         * platform/graphics/chromium/ImageLayerChromium.cpp:
2088         (WebCore::ImageLayerTextureUpdater::ImageLayerTextureUpdater):
2089         (WebCore::ImageLayerTextureUpdater::~ImageLayerTextureUpdater):
2090         (WebCore::ImageLayerTextureUpdater::orientation):
2091         (WebCore::ImageLayerTextureUpdater::prepareToUpdate):
2092         (WebCore::ImageLayerTextureUpdater::updateTextureRect):
2093         (WebCore::ImageLayerTextureUpdater::imageRect):
2094         (WebCore::ImageLayerChromium::paintContentsIfDirty):
2095         (WebCore::ImageLayerChromium::updateCompositorResources):
2096         (WebCore::ImageLayerChromium::createTextureUpdater):
2097         * platform/graphics/chromium/ImageLayerChromium.h:
2098         * platform/graphics/chromium/LayerPainterChromium.h: Added.
2099         * platform/graphics/chromium/LayerRendererChromium.cpp:
2100         (WebCore::LayerRendererChromium::create):
2101         (WebCore::LayerRendererChromium::LayerRendererChromium):
2102         (WebCore::LayerRendererChromium::updateRootLayerContents):
2103         (WebCore::LayerRendererChromium::drawRootLayer):
2104         (WebCore::LayerRendererChromium::updateAndDrawLayers):
2105         (WebCore::LayerRendererChromium::updateLayers):
2106         * platform/graphics/chromium/LayerRendererChromium.h:
2107         * platform/graphics/chromium/LayerTextureSubImage.cpp: Added.
2108         (WebCore::LayerTextureSubImage::LayerTextureSubImage):
2109         (WebCore::LayerTextureSubImage::~LayerTextureSubImage):
2110         (WebCore::LayerTextureSubImage::setSubImageSize):
2111         (WebCore::LayerTextureSubImage::upload):
2112         (WebCore::LayerTextureSubImage::uploadWithTexSubImage):
2113         (WebCore::LayerTextureSubImage::uploadWithMapTexSubImage):
2114         * platform/graphics/chromium/LayerTextureSubImage.h: Added.
2115         * platform/graphics/chromium/LayerTextureUpdater.h: Added.
2116         (WebCore::LayerTextureUpdater::LayerTextureUpdater):
2117         (WebCore::LayerTextureUpdater::~LayerTextureUpdater):
2118         (WebCore::LayerTextureUpdater::context):
2119         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp: Added.
2120         (WebCore::LayerTextureUpdaterCanvas::LayerTextureUpdaterCanvas):
2121         (WebCore::LayerTextureUpdaterCanvas::paintContents):
2122         (WebCore::LayerTextureUpdaterBitmap::LayerTextureUpdaterBitmap):
2123         (WebCore::LayerTextureUpdaterBitmap::prepareToUpdate):
2124         (WebCore::LayerTextureUpdaterBitmap::updateTextureRect):
2125         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h: Added.
2126         (WebCore::LayerTextureUpdaterCanvas::~LayerTextureUpdaterCanvas):
2127         (WebCore::LayerTextureUpdaterCanvas::contentRect):
2128         (WebCore::LayerTextureUpdaterBitmap::~LayerTextureUpdaterBitmap):
2129         (WebCore::LayerTextureUpdaterBitmap::orientation):
2130         * platform/graphics/chromium/LayerTilerChromium.cpp:
2131         (WebCore::LayerTilerChromium::create):
2132         (WebCore::LayerTilerChromium::LayerTilerChromium):
2133         (WebCore::LayerTilerChromium::setTileSize):
2134         (WebCore::LayerTilerChromium::prepareToUpdate):
2135         (WebCore::LayerTilerChromium::updateRect):
2136         (WebCore::LayerTilerChromium::draw):
2137         * platform/graphics/chromium/LayerTilerChromium.h:
2138         (WebCore::LayerTilerChromium::Tile::Tile):
2139         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
2140         (WebCore::CCHeadsUpDisplay::draw):
2141
2142 2011-05-16  Andrew Wilson  <atwilson@chromium.org>
2143
2144         Unreviewed prospective build fix/workaround for chromium ARM compiler error.
2145
2146         * platform/graphics/GraphicsLayer.cpp:
2147         (WebCore::GraphicsLayer::animationNameForTransition):
2148
2149 2011-05-16  Martin Robinson  <mrobinson@igalia.com>
2150
2151         Reviewed by Anders Carlsson.
2152
2153         [GTK] [WebKit2] Provide a fast version of the backing store for X11
2154         https://bugs.webkit.org/show_bug.cgi?id=60912
2155
2156         No new tests. This will be covered by WebKit2 pixel tests.
2157
2158         * GNUmakefile.list.am: Added new GtkWidgetBackingStore source and header files.
2159         * platform/gtk/GtkWidgetBackingStore.h: Added.
2160         * platform/gtk/GtkWidgetBackingStoreCairo.cpp: Added this implementation of the backing
2161         store that uses Cairo and has the same performance characteristics as the WebKit2 implementaiton.
2162         * platform/gtk/GtkWidgetBackingStoreX11.cpp: Added this implementation of the backing
2163         store that uses X11 directly and has better performance than the Cairo version.
2164
2165 2011-05-16  Chris Rogers  <crogers@google.com>
2166
2167         Reviewed by senorblanco@chromium.org.
2168
2169         Add DynamicsCompressorNode implementation
2170         https://bugs.webkit.org/show_bug.cgi?id=60682
2171
2172         No new tests since audio API is not yet implemented.
2173
2174         * DerivedSources.make:
2175         * WebCore.gypi:
2176         * WebCore.xcodeproj/project.pbxproj:
2177         * platform/audio/DynamicsCompressor.cpp: Added.
2178         (WebCore::DynamicsCompressor::DynamicsCompressor):
2179         (WebCore::DynamicsCompressor::initializeParameters):
2180         (WebCore::DynamicsCompressor::parameterValue):
2181         (WebCore::DynamicsCompressor::setEmphasisStageParameters):
2182         (WebCore::DynamicsCompressor::setEmphasisParameters):
2183         (WebCore::DynamicsCompressor::process):
2184         (WebCore::DynamicsCompressor::reset):
2185         * platform/audio/DynamicsCompressor.h: Added.
2186         (WebCore::DynamicsCompressor::isStereo):
2187         (WebCore::DynamicsCompressor::sampleRate):
2188         (WebCore::DynamicsCompressor::nyquist):
2189         * platform/audio/DynamicsCompressorKernel.cpp: Added.
2190         (WebCore::saturate):
2191         (WebCore::DynamicsCompressorKernel::DynamicsCompressorKernel):
2192         (WebCore::DynamicsCompressorKernel::setPreDelayTime):
2193         (WebCore::DynamicsCompressorKernel::process):
2194         (WebCore::DynamicsCompressorKernel::reset):
2195         * platform/audio/DynamicsCompressorKernel.h: Added.
2196         (WebCore::DynamicsCompressorKernel::latencyFrames):
2197         (WebCore::DynamicsCompressorKernel::sampleRate):
2198         * platform/audio/ZeroPole.cpp: Added.
2199         (WebCore::ZeroPole::process):
2200         * platform/audio/ZeroPole.h: Added.
2201         (WebCore::ZeroPole::ZeroPole):
2202         (WebCore::ZeroPole::reset):
2203         (WebCore::ZeroPole::setZero):
2204         (WebCore::ZeroPole::setPole):
2205         (WebCore::ZeroPole::zero):
2206         (WebCore::ZeroPole::pole):
2207         * webaudio/AudioContext.cpp:
2208         (WebCore::AudioContext::createDynamicsCompressor):
2209         * webaudio/AudioContext.h:
2210         * webaudio/AudioContext.idl:
2211         * webaudio/AudioNode.h:
2212         * webaudio/DynamicsCompressorNode.cpp: Added.
2213         (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
2214         (WebCore::DynamicsCompressorNode::~DynamicsCompressorNode):
2215         (WebCore::DynamicsCompressorNode::process):
2216         (WebCore::DynamicsCompressorNode::reset):
2217         (WebCore::DynamicsCompressorNode::initialize):
2218         (WebCore::DynamicsCompressorNode::uninitialize):
2219         * webaudio/DynamicsCompressorNode.h: Added.
2220         (WebCore::DynamicsCompressorNode::create):
2221         * webaudio/DynamicsCompressorNode.idl: Added.
2222
2223 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
2224
2225         Reviewed by Antti Koivisto.
2226
2227         Fix for Bug 43704 - Web font is printed as blank if it is not cached
2228         https://bugs.webkit.org/show_bug.cgi?id=43704
2229
2230         In setting printing, we should not validate resources already cached
2231         for the document. If we do, web fonts used for screen are revalidated
2232         and possiby reloaded. Then the fonts can be shown as blank on print.
2233         This patch won't save the case where screen and print use different web
2234         fonts. Nonetheless, this is an improvement.
2235
2236         No new tests because there seems to be no good way to test print images.
2237
2238         * editing/Editor.cpp:
2239         (WebCore::Editor::paste): Use ResourceCacheValidationSuppressor instead of explicitly allowing/disallowing stale resources.
2240         * loader/cache/CachedResourceLoader.h:
2241         (WebCore::ResourceCacheValidationSuppressor::ResourceCacheValidationSuppressor): RAII class for allowing/disallowing stale resources.
2242         (WebCore::ResourceCacheValidationSuppressor::~ResourceCacheValidationSuppressor):
2243         * page/DragController.cpp:
2244         (WebCore::DragController::concludeEditDrag): Use ResourceCacheValidationSuppressor instead of explicitly allowing/disallowing stale resources.
2245         * page/Frame.cpp:
2246         (WebCore::Frame::setPrinting): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
2247
2248 2011-05-16  Dan Bernstein  <mitz@apple.com>
2249
2250         Reviewed by Darin Adler.
2251
2252         <rdar://problem/9446653> REGRESSION (r84750): Moving by word stops at apostrophe mid-word
2253         https://bugs.webkit.org/show_bug.cgi?id=60915
2254
2255         CFStringTokenizer’s kCFStringTokenizerUnitWord considers “Here’s” as two separate tokens.
2256         Switching to CFStringTokenizer in r84750 was an attempt to address an issue with Japanese word
2257         boundaries for searches with WebFindOptionsAtWordStarts, but it turned out to be insufficient,
2258         and in r86387 the Japanese word issue was addressed independently of text boundaries, so just
2259         revert r84750.
2260
2261         * platform/text/mac/TextBoundaries.mm:
2262         (WebCore::findNextWordFromIndex):
2263
2264 2011-05-16  David Kilzer  <ddkilzer@apple.com>
2265
2266         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
2267         <rdar://problem/9446430>
2268
2269         Reviewed by Mark Rowe.
2270
2271         * Configurations/Base.xcconfig: Fixed typo.
2272
2273 2011-05-16  Jon Lee  <jonlee@apple.com>
2274
2275         Fix for broken regression tests. Adding null pointer check
2276
2277         * page/FrameView.cpp:
2278         (WebCore::FrameView::didAddHorizontalScrollbar):
2279         (WebCore::FrameView::willRemoveHorizontalScrollbar):
2280
2281 2011-05-16  Adrienne Walker  <enne@google.com>
2282
2283         Reviewed by James Robinson.
2284
2285         [chromium] Remove unused member variables from LayerRendererChromium
2286         https://bugs.webkit.org/show_bug.cgi?id=60899
2287
2288         These should have been removed when tiling was enabled for root
2289         layers.
2290
2291         * platform/graphics/chromium/LayerRendererChromium.h:
2292
2293 2011-05-16  Andrew Wilson  <atwilson@chromium.org>
2294
2295         Unreviewed, rolling out r86589.
2296         http://trac.webkit.org/changeset/86589
2297         https://bugs.webkit.org/show_bug.cgi?id=54670
2298
2299         Broke chromium inspector tests.
2300
2301         * inspector/front-end/ConsoleView.js:
2302         (WebInspector.ConsoleView.prototype.show):
2303         (WebInspector.ConsoleView.prototype.afterShow):
2304         (WebInspector.ConsoleView.prototype.hide):
2305         (WebInspector.ConsoleView.prototype.addMessage):
2306         (WebInspector.ConsoleView.prototype.clearMessages):
2307         * inspector/front-end/DebuggerPresentationModel.js:
2308         (WebInspector.DebuggerPresentationModel):
2309         * inspector/front-end/Drawer.js:
2310         (WebInspector.Drawer.prototype.set visibleView):
2311         (WebInspector.Drawer.prototype.show.animationFinished):
2312         (WebInspector.Drawer.prototype.show):
2313         * inspector/front-end/Panel.js:
2314         (WebInspector.Panel):
2315         * inspector/front-end/ResourceTreeModel.js:
2316         (WebInspector.ResourceTreeModel):
2317         * inspector/front-end/inspector.html:
2318         * inspector/front-end/inspector.js:
2319         (WebInspector._createPanels):
2320
2321 2011-05-16  Brian Weinstein  <bweinstein@apple.com>
2322
2323         Reviewed by Enrica Casucci.
2324
2325         REGRESSION (r86542): Dropping URL onto Desktop creates broken Internet Shortcut file.
2326         
2327         r86477 fixed this bug by using latin1 as the CString's encoding instead of ascii, but r86542
2328         undid this change.
2329         
2330         Change it back to latin1 to fix the bug.
2331
2332         * platform/win/ClipboardWin.cpp:
2333         (WebCore::ClipboardWin::writeURL):
2334
2335 2011-05-16  Jeremy Noble  <jer.noble@apple.com>
2336
2337         Unreviewed; build fix for non-SnowLeopard builds.
2338
2339         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Wrap definition 
2340             of layerIsDescendentOf in a #if check.
2341
2342 2011-05-16  Pavel Podivilov  <podivilov@chromium.org>
2343
2344         Reviewed by Yury Semikhatsky.
2345
2346         Web Inspector: merge ConsoleView into ConsolePanel.
2347         https://bugs.webkit.org/show_bug.cgi?id=54670
2348
2349         Console view in drawer looks exactly the same as console panel. Merging ConsoleView and ConsolePanel together
2350         will allow us to reuse panel's functionality (e.g. resizable sidebar) even when console is docked.
2351
2352         * inspector/front-end/ConsoleView.js:
2353         (WebInspector.ConsolePanel.prototype.get toolbarItemLabel):
2354         (WebInspector.ConsolePanel.prototype.show):
2355         (WebInspector.ConsolePanel.prototype.hide):
2356         (WebInspector.ConsolePanel.prototype.showInDrawer):
2357         (WebInspector.ConsolePanel.prototype.afterShowInDrawer):
2358         (WebInspector.ConsolePanel.prototype.hideInDrawer):
2359         (WebInspector.ConsolePanel.prototype.addMessage):
2360         (WebInspector.ConsolePanel.prototype.clearMessages):
2361         * inspector/front-end/DebuggerPresentationModel.js:
2362         (WebInspector.DebuggerPresentationModel):
2363         * inspector/front-end/Drawer.js:
2364         (WebInspector.Drawer.prototype.set visibleView):
2365         (WebInspector.Drawer.prototype.show.animationFinished):
2366         (WebInspector.Drawer.prototype.show):
2367         * inspector/front-end/Panel.js:
2368         (WebInspector.Panel):
2369         * inspector/front-end/ResourceTreeModel.js:
2370         (WebInspector.ResourceTreeModel):
2371         * inspector/front-end/inspector.html:
2372         * inspector/front-end/inspector.js:
2373         (WebInspector._createPanels):
2374
2375 2011-05-13  Jer Noble  <jer.noble@apple.com>
2376
2377         Reviewed by Simon Fraser.
2378
2379         Video is blank, controller is misplaced on trailers.apple.com movie in fullscreen (with two screens)
2380         https://bugs.webkit.org/show_bug.cgi?id=60826
2381
2382         Listen for a WebKitLayerHostChanged notification and, if the affected layer is an
2383         ancestor layer of the qtMovieLayer, tear down the layer and recreate it the
2384         next time setVisible(true) is called.
2385
2386         * dom/Document.cpp:
2387         (WebCore::Document::webkitDidEnterFullScreenForElement):  Call setFullScreenRootLayer(0) 
2388             before disabling animation on the full screen renderer.
2389         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
2390         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2391         (WebCore::MediaPlayerPrivateQTKit::createQTMovie): Register an observer for the new 
2392             WebKitLayerHostChanged notification.
2393         (WebCore::layerIsDescendentOf): Added.
2394         (WebCore::MediaPlayerPrivateQTKit::layerHostChanged): Added.  If the changed
2395             layer is an ancestor of the movie layer, tear down rendering and re-
2396             create the next time setVisible(true) is called.
2397         (-[WebCoreMovieObserver layerHostChanged:]):  Added ObjC listener wrapper.
2398
2399 2011-05-16  Adam Barth  <abarth@webkit.org>
2400
2401         Reviewed by Darin Adler.
2402
2403         Remove disable-javascript-urls CSP directive
2404         https://bugs.webkit.org/show_bug.cgi?id=60874
2405
2406         After talking this out with various folks in the CSP working group, we
2407         decided that this syntax isn't the right way to approach this issue.
2408         If we want to address the use case of enabling JavaScript URLs
2409         separately from inline script, we'll probably just make
2410
2411           script-src javascript:
2412
2413         work that way.
2414
2415         * page/ContentSecurityPolicy.cpp:
2416         (WebCore::ContentSecurityPolicy::ContentSecurityPolicy):
2417         (WebCore::ContentSecurityPolicy::allowJavaScriptURLs):
2418         (WebCore::ContentSecurityPolicy::addDirective):
2419         * page/ContentSecurityPolicy.h:
2420
2421 2011-05-16  Jon Lee  <jonlee@apple.com>
2422
2423        Reviewed by Simon Fraser.
2424
2425        Can't horizontally scroll iframes and overflow because wheel events are always accepted
2426        https://bugs.webkit.org/show_bug.cgi?id=60779
2427
2428        * dom/Document.cpp:
2429        (WebCore::Document::Document): Initialize wheel event handler count
2430        (WebCore::Document::didAddWheelEventHandler): Increment count, and tell the main frame
2431        to recalculate the total number of wheel event handlers in all of its frames' documents
2432        (WebCore::Document::didRemoveWheelEventHandler): Reverse of previous method
2433        * dom/Document.h:
2434        (WebCore::Document::wheelEventHandlerCount): Access the count
2435        * dom/Node.cpp:
2436        (WebCore::tryAddEventListener): If the event listener is a mouse wheel event, then
2437        tell the document to increment its count
2438        (WebCore::tryRemoveEventListener): Reverse of previous method
2439
2440        * page/ChromeClient.h: Two new methods:
2441          numWheelEventHandlersChanged: WebProcess tells UIProcess to update its cached
2442            count of total wheel event handlers, which in this case only include horizontal
2443            scrollbars and mouse wheel JS handlers
2444          shouldRubberBandInDirection: allow the UIProcess to provide some control over
2445            whether rubber banding is allowed when scrolling in a particular direction
2446        * loader/EmptyClients.h:
2447        (WebCore::EmptyChromeClient::numWheelEventHandlersChanged): Default empty impl
2448        (WebCore::EmptyChromeClient::shouldRubberBandInDirection): Default empty impl
2449        * page/EventHandler.cpp:
2450        (WebCore::EventHandler::handleWheelEvent): Remove a redundant pointer check
2451        * page/Frame.cpp:
2452        (WebCore::Frame::setDocument): When the frame's document changes, calculate that
2453        document's total wheel event handlers, and notify the UIProcess
2454        (WebCore::Frame::notifyChromeClientWheelEventHandlerCountChanged): Performs a crawl
2455        of the frame tree to aggregate the count
2456        * page/Frame.h:
2457
2458        * platform/ScrollableArea.h: Virtualize didAddHorizontalScrollbar and
2459        willRemoveHorizontalScrollbar for overriding in RenderLayer and FrameView
2460        (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMinimumPosition): Returns true if there is
2461        no scrollbar or the scroller position is in the minimum scroll position.
2462        (WebCore::ScrollableArea::isHorizontalScrollerPinnedToMaximumPosition): Converse of the above.
2463        (WebCore::ScrollableArea::shouldRubberBandInDirection): Default impl
2464        * page/FrameView.cpp:
2465        (WebCore::FrameView::didAddHorizontalScrollbar): Updates the frame's document's count
2466        (WebCore::FrameView::willRemoveHorizontalScrollbar): Updates the frame's document's
2467        count
2468        (WebCore::FrameView::shouldRubberBandInDirection): Connective glue
2469        * page/FrameView.h: Adding overriding methods from ScrollableArea
2470        * rendering/RenderLayer.cpp: Similar functionality to FrameView
2471        (WebCore::RenderLayer::didAddHorizontalScrollbar):
2472        (WebCore::RenderLayer::willRemoveHorizontalScrollbar):
2473        * rendering/RenderLayer.h:
2474        
2475        * platform/mac/ScrollAnimatorMac.h: Fix typo of "momentum"
2476        * platform/mac/ScrollAnimatorMac.mm:
2477        (WebCore::ScrollAnimatorMac::ScrollAnimatorMac): Fix typo of "momentum"
2478        (WebCore::ScrollAnimatorMac::smoothScrollWithEvent): Fix typo of "coalesced"
2479        (WebCore::ScrollAnimatorMac::beginScrollGesture): Fix typo of "coalesced"
2480        (WebCore::ScrollAnimatorMac::snapRubberBand): Fix typo of "momentum"
2481        
2482        (WebCore::ScrollAnimatorMac::handleWheelEvent): New logic for determining whether
2483        to allow rubber-banding based on the area's scroll position and the wheel event.
2484        Could prevent accepting the wheel event. Also, fix typo of "momentum"
2485        (WebCore::isScrollingLeftAndShouldNotRubberBand): Inline helper function for logic
2486        (WebCore::isScrollingRightAndShouldNotRubberBand): Inline helper function for logic
2487
2488 2011-05-16  Leandro Gracia Gil  <leandrogracia@chromium.org>
2489
2490         Reviewed by Tony Gentilcore.
2491
2492         Media Stream API: add local stream requests.
2493         https://bugs.webkit.org/show_bug.cgi?id=60177
2494
2495         Add the code and messages for requesting the generation of local streams and getting the reply back.
2496
2497         Tests for the Media Stream API will be provided by the bug 56587.
2498         One test is re-enabled with this patch.
2499
2500         Test: fast/dom/MediaStream/argument-types.html
2501
2502         * GNUmakefile.list.am:
2503         * WebCore.gypi:
2504         * WebCore.pro:
2505         * WebCore.vcproj/WebCore.vcproj:
2506         * WebCore.xcodeproj/project.pbxproj:
2507         * page/CallbackTask.h: Added.
2508         (WebCore::CallbackTask1::create):
2509         (WebCore::CallbackTask1::performTask):
2510         (WebCore::CallbackTask1::Scheduler::scheduleCallback):
2511         (WebCore::CallbackTask1::CallbackTask1):
2512         * page/MediaStreamClient.h:
2513         * page/MediaStreamController.cpp:
2514         (WebCore::MediaStreamController::isClientAvailable):
2515         (WebCore::MediaStreamController::unregisterFrameController):
2516         (WebCore::MediaStreamController::registerRequest):
2517         (WebCore::MediaStreamController::registerStream):
2518         (WebCore::MediaStreamController::generateStream):
2519         (WebCore::MediaStreamController::streamGenerated):
2520         (WebCore::MediaStreamController::streamGenerationFailed):
2521         * page/MediaStreamController.h:
2522         * page/MediaStreamFrameController.cpp:
2523         (WebCore::MediaStreamFrameController::GenerateStreamRequest::GenerateStreamRequest):
2524         (WebCore::MediaStreamFrameController::GenerateStreamRequest::~GenerateStreamRequest):
2525         (WebCore::MediaStreamFrameController::GenerateStreamRequest::isGenerateStreamRequest):
2526         (WebCore::MediaStreamFrameController::GenerateStreamRequest::abort):
2527         (WebCore::MediaStreamFrameController::GenerateStreamRequest::successCallback):
2528         (WebCore::MediaStreamFrameController::GenerateStreamRequest::errorCallback):
2529         (WebCore::::unregisterAll):
2530         (WebCore::::detachEmbedder):
2531         (WebCore::MediaStreamFrameController::MediaStreamFrameController):
2532         (WebCore::MediaStreamFrameController::pageController):
2533         (WebCore::MediaStreamFrameController::unregister):
2534         (WebCore::MediaStreamFrameController::enterDetachedState):
2535         (WebCore::MediaStreamFrameController::isClientAvailable):
2536         (WebCore::MediaStreamFrameController::disconnectFrame):
2537         (WebCore::MediaStreamFrameController::parseGenerateStreamOptions):
2538         (WebCore::MediaStreamFrameController::generateStream):
2539         (WebCore::MediaStreamFrameController::streamGenerated):
2540         (WebCore::MediaStreamFrameController::streamGenerationFailed):
2541         * page/MediaStreamFrameController.h:
2542         (WebCore::MediaStreamFrameController::ClientBase::ClientBase):
2543         (WebCore::MediaStreamFrameController::ClientBase::~ClientBase):
2544         (WebCore::MediaStreamFrameController::ClientBase::mediaStreamFrameController):
2545         (WebCore::MediaStreamFrameController::ClientBase::clientId):
2546         (WebCore::MediaStreamFrameController::ClientBase::isStream):
2547         (WebCore::MediaStreamFrameController::ClientBase::isGeneratedStream):
2548         (WebCore::MediaStreamFrameController::ClientBase::detachEmbedder):
2549         (WebCore::MediaStreamFrameController::ClientBase::associateFrameController):
2550         (WebCore::MediaStreamFrameController::ClientBase::unregisterClient):
2551         (WebCore::MediaStreamFrameController::StreamClient::StreamClient):
2552         (WebCore::MediaStreamFrameController::StreamClient::~StreamClient):
2553         (WebCore::MediaStreamFrameController::StreamClient::isStream):
2554         (WebCore::MediaStreamFrameController::StreamClient::unregister):
2555         (WebCore::MediaStreamFrameController::IdGenerator::IdGenerator):
2556         (WebCore::MediaStreamFrameController::IdGenerator::getNextId):
2557         (WebCore::MediaStreamFrameController::ClientMapBase::ClientMapBase):
2558         * page/Navigator.cpp:
2559         (WebCore::Navigator::webkitGetUserMedia):
2560         * page/NavigatorUserMediaErrorCallback.h:
2561
2562 2011-05-16  Pavel Podivilov  <podivilov@chromium.org>
2563
2564         Reviewed by Yury Semikhatsky.
2565
2566         Web Inspector: debuggerWasEnabled notification should not be send to front-end on navigation.
2567         https://bugs.webkit.org/show_bug.cgi?id=60888
2568
2569         * inspector/InspectorController.cpp:
2570         (WebCore::InspectorController::disableDebugger):
2571         * inspector/InspectorDebuggerAgent.cpp:
2572         (WebCore::InspectorDebuggerAgent::enable):
2573         (WebCore::InspectorDebuggerAgent::disable):
2574         (WebCore::InspectorDebuggerAgent::restore):
2575         (WebCore::InspectorDebuggerAgent::clearFrontend):
2576         * inspector/InspectorDebuggerAgent.h:
2577
2578 2011-05-16  Yury Semikhatsky  <yurys@chromium.org>
2579
2580         Unreviewed. Windows build fix.
2581
2582         * inspector/InspectorConsoleInstrumentation.h:
2583         (WebCore::InspectorInstrumentation::consoleMarkTimeline):
2584
2585 2011-05-16  Yury Semikhatsky  <yurys@chromium.org>
2586
2587         Unreviewed. Build fix.
2588
2589         * inspector/InspectorInstrumentation.h:
2590         (WebCore::InspectorInstrumentation::willStartWorkerContext):
2591
2592 2011-05-11  Yury Semikhatsky  <yurys@chromium.org>
2593
2594         Reviewed by Pavel Feldman.
2595
2596         Web Inspector: use InstrumentingAgents to access agents from InspectorInstrumentation
2597         https://bugs.webkit.org/show_bug.cgi?id=60624
2598
2599         InspectorInstrumentation retrieves inspector agents from corresponding InstrumentingAgents
2600         instance. Each agent notifies InstrumentingAgents whenever it wants to receive notifications
2601         about changes in WebCore.
2602
2603         * inspector/InspectorAgent.cpp:
2604         (WebCore::InspectorAgent::InspectorAgent):
2605         (WebCore::InspectorAgent::inspectedPageDestroyed):
2606         * inspector/InspectorAgent.h:
2607         * inspector/InspectorConsoleInstrumentation.h:
2608         (WebCore::InspectorInstrumentation::addMessageToConsole):
2609         (WebCore::InspectorInstrumentation::consoleCount):
2610         (WebCore::InspectorInstrumentation::startConsoleTiming):
2611         (WebCore::InspectorInstrumentation::stopConsoleTiming):
2612         (WebCore::InspectorInstrumentation::consoleMarkTimeline):
2613         (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsole):
2614         (WebCore::InspectorInstrumentation::addProfile):
2615         (WebCore::InspectorInstrumentation::profilerEnabled):
2616         (WebCore::InspectorInstrumentation::getCurrentUserInitiatedProfileName):
2617         * inspector/InspectorController.cpp:
2618         (WebCore::InspectorController::InspectorController):
2619         (WebCore::InspectorController::inspectedPageDestroyed):
2620         (WebCore::InspectorController::didClearWindowObjectInWorld):
2621         (WebCore::InspectorController::inspectedPage):
2622         * inspector/InspectorController.h:
2623         * inspector/InspectorDatabaseInstrumentation.h: FAST_RETURN_IF_NO_FRONTENDS macros
2624         is used for early return in common case when inspector is not opened. In this
2625         case inspector instrumentation costs one additional check of a static field.
2626         (WebCore::InspectorInstrumentation::didOpenDatabase):
2627         * inspector/InspectorInstrumentation.cpp:
2628         (WebCore::InspectorInstrumentation::instrumentingAgents):
2629         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
2630         (WebCore::InspectorInstrumentation::inspectedPageDestroyedImpl):
2631         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
2632         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
2633         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
2634         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
2635         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
2636         (WebCore::InspectorInstrumentation::didModifyDOMAttrImpl):
2637         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
2638         (WebCore::InspectorInstrumentation::mouseDidMoveOverElementImpl):
2639         (WebCore::InspectorInstrumentation::handleMousePressImpl):
2640         (WebCore::InspectorInstrumentation::characterDataModifiedImpl):
2641         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
2642         (WebCore::InspectorInstrumentation::didScheduleResourceRequestImpl):
2643         (WebCore::InspectorInstrumentation::didInstallTimerImpl):
2644         (WebCore::InspectorInstrumentation::didRemoveTimerImpl):
2645         (WebCore::InspectorInstrumentation::willCallFunctionImpl):
2646         (WebCore::InspectorInstrumentation::willChangeXHRReadyStateImpl):
2647         (WebCore::InspectorInstrumentation::willDispatchEventImpl):
2648         (WebCore::InspectorInstrumentation::willDispatchEventOnWindowImpl):
2649         (WebCore::InspectorInstrumentation::willEvaluateScriptImpl):
2650         (WebCore::InspectorInstrumentation::willFireTimerImpl):
2651         (WebCore::InspectorInstrumentation::willLayoutImpl):
2652         (WebCore::InspectorInstrumentation::willLoadXHRImpl):
2653         (WebCore::InspectorInstrumentation::willPaintImpl):
2654         (WebCore::InspectorInstrumentation::willRecalculateStyleImpl):
2655         (WebCore::InspectorInstrumentation::applyUserAgentOverrideImpl):
2656         (WebCore::InspectorInstrumentation::willSendRequestImpl):
2657         (WebCore::InspectorInstrumentation::continueAfterPingLoaderImpl):
2658         (WebCore::InspectorInstrumentation::markResourceAsCachedImpl):
2659         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
2660         (WebCore::InspectorInstrumentation::willReceiveResourceDataImpl):
2661         (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
2662         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
2663         (WebCore::InspectorInstrumentation::didReceiveContentLengthImpl):
2664         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
2665         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
2666         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
2667         (WebCore::InspectorInstrumentation::scriptImportedImpl):
2668         (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
2669         (WebCore::InspectorInstrumentation::loadEventFiredImpl):
2670         (WebCore::InspectorInstrumentation::frameDetachedFromParentImpl):
2671         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
2672         (WebCore::InspectorInstrumentation::willWriteHTMLImpl):
2673         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
2674         (WebCore::InspectorInstrumentation::consoleCountImpl):
2675         (WebCore::InspectorInstrumentation::startConsoleTimingImpl):
2676         (WebCore::InspectorInstrumentation::stopConsoleTimingImpl):
2677         (WebCore::InspectorInstrumentation::consoleMarkTimelineImpl):
2678         (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsoleImpl):
2679         (WebCore::InspectorInstrumentation::addProfileImpl):
2680         (WebCore::InspectorInstrumentation::getCurrentUserInitiatedProfileNameImpl):
2681         (WebCore::InspectorInstrumentation::profilerEnabledImpl):
2682         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
2683         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
2684         (WebCore::InspectorInstrumentation::didStartWorkerContextImpl):
2685         (WebCore::InspectorInstrumentation::didCreateWorkerImpl):
2686         (WebCore::InspectorInstrumentation::didDestroyWorkerImpl):
2687         (WebCore::InspectorInstrumentation::didCreateWebSocketImpl):
2688         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequestImpl):
2689         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponseImpl):
2690         (WebCore::InspectorInstrumentation::didCloseWebSocketImpl):
2691         (WebCore::InspectorInstrumentation::networkStateChangedImpl):
2692         (WebCore::InspectorInstrumentation::updateApplicationCacheStatusImpl):
2693         (WebCore::InspectorInstrumentation::hasFrontend):
2694         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
2695         (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent):
2696         (WebCore::InspectorInstrumentation::retrieveTimelineAgent):
2697         * inspector/InspectorInstrumentation.h:
2698         (WebCore::InspectorInstrumentation::bindInstrumentingAgents):
2699         (WebCore::InspectorInstrumentation::unbindInstrumentingAgents):
2700         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorld):
2701         (WebCore::InspectorInstrumentation::inspectedPageDestroyed):
2702         (WebCore::InspectorInstrumentation::willInsertDOMNode):
2703         (WebCore::InspectorInstrumentation::didInsertDOMNode):
2704         (WebCore::InspectorInstrumentation::willRemoveDOMNode):
2705         (WebCore::InspectorInstrumentation::willModifyDOMAttr):
2706         (WebCore::InspectorInstrumentation::didModifyDOMAttr):
2707         (WebCore::InspectorInstrumentation::didInvalidateStyleAttr):
2708         (WebCore::InspectorInstrumentation::mouseDidMoveOverElement):
2709         (WebCore::InspectorInstrumentation::handleMousePress):
2710         (WebCore::InspectorInstrumentation::characterDataModified):
2711         (WebCore::InspectorInstrumentation::willSendXMLHttpRequest):
2712         (WebCore::InspectorInstrumentation::didScheduleResourceRequest):
2713         (WebCore::InspectorInstrumentation::didInstallTimer):
2714         (WebCore::InspectorInstrumentation::didRemoveTimer):
2715         (WebCore::InspectorInstrumentation::willCallFunction):
2716         (WebCore::InspectorInstrumentation::willChangeXHRReadyState):
2717         (WebCore::InspectorInstrumentation::willDispatchEvent):
2718         (WebCore::InspectorInstrumentation::willDispatchEventOnWindow):
2719         (WebCore::InspectorInstrumentation::willEvaluateScript):
2720         (WebCore::InspectorInstrumentation::willFireTimer):
2721         (WebCore::InspectorInstrumentation::willLayout):
2722         (WebCore::InspectorInstrumentation::willLoadXHR):
2723         (WebCore::InspectorInstrumentation::willPaint):
2724         (WebCore::InspectorInstrumentation::willRecalculateStyle):
2725         (WebCore::InspectorInstrumentation::applyUserAgentOverride):
2726         (WebCore::InspectorInstrumentation::willSendRequest):
2727         (WebCore::InspectorInstrumentation::continueAfterPingLoader):
2728         (WebCore::InspectorInstrumentation::markResourceAsCached):
2729         (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCache):
2730         (WebCore::InspectorInstrumentation::willReceiveResourceData):
2731         (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
2732         (WebCore::InspectorInstrumentation::continueAfterXFrameOptionsDenied):
2733         (WebCore::InspectorInstrumentation::continueWithPolicyDownload):
2734         (WebCore::InspectorInstrumentation::continueWithPolicyIgnore):
2735         (WebCore::InspectorInstrumentation::didReceiveContentLength):
2736         (WebCore::InspectorInstrumentation::didFinishLoading):
2737         (WebCore::InspectorInstrumentation::didFailLoading):
2738         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequest):
2739         (WebCore::InspectorInstrumentation::scriptImported):
2740         (WebCore::InspectorInstrumentation::domContentLoadedEventFired):
2741         (WebCore::InspectorInstrumentation::loadEventFired):
2742         (WebCore::InspectorInstrumentation::frameDetachedFromParent):
2743         (WebCore::InspectorInstrumentation::didCommitLoad):
2744         (WebCore::InspectorInstrumentation::willWriteHTML):
2745         (WebCore::InspectorInstrumentation::didUseDOMStorage):
2746         (WebCore::InspectorInstrumentation::willStartWorkerContext):
2747         (WebCore::InspectorInstrumentation::didStartWorkerContext):
2748         (WebCore::InspectorInstrumentation::didCreateWorker):
2749         (WebCore::InspectorInstrumentation::didDestroyWorker):
2750         (WebCore::InspectorInstrumentation::didCreateWebSocket):
2751         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequest):
2752         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponse):
2753         (WebCore::InspectorInstrumentation::didCloseWebSocket):
2754         (WebCore::InspectorInstrumentation::networkStateChanged):
2755         (WebCore::InspectorInstrumentation::updateApplicationCacheStatus):
2756         (WebCore::InspectorInstrumentation::hasFrontend):
2757         (WebCore::InspectorInstrumentation::instrumentingAgentsForContext):
2758         (WebCore::InspectorInstrumentation::instrumentingAgentsForPage):
2759         (WebCore::InspectorInstrumentation::instrumentingAgentsForFrame):
2760         (WebCore::InspectorInstrumentation::instrumentingAgentsWithFrontendForFrame):
2761         (WebCore::InspectorInstrumentation::instrumentingAgentsWithFrontendForPage):
2762         (WebCore::InspectorInstrumentation::instrumentingAgentsWithFrontendForContext):
2763         (WebCore::InspectorInstrumentation::instrumentingAgentsWithFrontendForDocument):
2764
2765 2011-05-16  Vsevolod Vlasov  <vsevik@chromium.org>
2766
2767         Reviewed by Pavel Feldman.
2768
2769         Web Inspector: Move Resources Panel search to backend
2770         https://bugs.webkit.org/show_bug.cgi?id=59596
2771
2772         * inspector/Inspector.json:
2773         * inspector/InspectorPageAgent.cpp:
2774         (WebCore::decodeMainResource):
2775         (WebCore::InspectorPageAgent::resourceContent):
2776         (WebCore::cachedResourcesForFrame):
2777         (WebCore::InspectorPageAgent::getCookies):
2778         (WebCore::InspectorPageAgent::deleteCookie):
2779         (WebCore::createSearchRegexSource):
2780         (WebCore::countRegularExpressionMatches):
2781         (WebCore::buildObjectForSearchMatch):
2782         (WebCore::InspectorPageAgent::searchInResources):
2783         (WebCore::InspectorPageAgent::domContentEventFired):
2784         (WebCore::InspectorPageAgent::loadEventFired):
2785         (WebCore::InspectorPageAgent::frameNavigated):
2786         (WebCore::InspectorPageAgent::frameDetached):
2787         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
2788         * inspector/InspectorPageAgent.h:
2789         * inspector/front-end/ResourcesPanel.js:
2790         (WebInspector.ResourcesPanel.prototype._showResourceView):
2791         (WebInspector.ResourcesPanel.prototype.performSearch.searchInEditedResource):
2792         (WebInspector.ResourcesPanel.prototype.performSearch.callback):
2793         (WebInspector.ResourcesPanel.prototype.performSearch):
2794         (WebInspector.ResourcesPanel.prototype._ensureViewSearchPerformed):
2795         (WebInspector.ResourcesPanel.prototype._showSearchResult.callback):
2796         (WebInspector.ResourcesPanel.prototype._showSearchResult):
2797         (WebInspector.ResourcesPanel.prototype._resetSearchResults):
2798         (WebInspector.ResourcesPanel.prototype.searchCanceled):
2799         (WebInspector.ResourcesPanel.prototype.jumpToNextSearchResult):
2800         (WebInspector.ResourcesPanel.prototype.jumpToPreviousSearchResult):
2801         (WebInspector.FrameTreeElement.prototype.resourceByURL):
2802         (WebInspector.FrameResourceTreeElement.prototype._resetSearchResults):
2803         (WebInspector.FrameResourceTreeElement.prototype.get searchMatchesCount):
2804         (WebInspector.FrameResourceTreeElement.prototype.searchMatchesFound):
2805         (WebInspector.ResourcesSearchController):
2806         (WebInspector.ResourcesSearchController.prototype.nextSearchResult):
2807         (WebInspector.ResourcesSearchController.prototype.previousSearchResult):
2808         (WebInspector.ResourcesSearchController.prototype._searchResult):
2809         (WebInspector.SearchResultsTreeElementsTraverser):
2810         (WebInspector.SearchResultsTreeElementsTraverser.prototype.first):
2811         (WebInspector.SearchResultsTreeElementsTraverser.prototype.last):
2812         (WebInspector.SearchResultsTreeElementsTraverser.prototype.next):
2813         (WebInspector.SearchResultsTreeElementsTraverser.prototype.previous):
2814         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traverseNext):
2815         (WebInspector.SearchResultsTreeElementsTraverser.prototype._elementHasSearchResults):
2816         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traversePrevious):
2817         (WebInspector.SearchResultsTreeElementsTraverser.prototype._lastTreeElement):
2818         * inspector/front-end/SourceFrame.js:
2819         (WebInspector.SourceFrame.createSearchRegex):
2820         (WebInspector.SourceFrame.prototype.performSearch.doFindSearchMatches):
2821         (WebInspector.SourceFrame.prototype.performSearch):
2822         (WebInspector.SourceFrame.prototype.hasSearchResults):
2823         (WebInspector.SourceFrame.prototype.jumpToFirstSearchResult):
2824         (WebInspector.SourceFrame.prototype.jumpToLastSearchResult):
2825         (WebInspector.SourceFrame.prototype.jumpToNextSearchResult):
2826         (WebInspector.SourceFrame.prototype.jumpToPreviousSearchResult):
2827         (WebInspector.SourceFrame.prototype.jumpToSearchResult):
2828         (WebInspector.SourceFrame.prototype._collectRegexMatches):
2829         * inspector/front-end/utilities.js:
2830         ():
2831
2832 2011-05-16  Andreas Kling  <kling@webkit.org>
2833
2834         Reviewed by Darin Adler.
2835
2836         CSS: Fast path for 'px' lengths should be case-insensitive.
2837         https://bugs.webkit.org/show_bug.cgi?id=60703
2838
2839         No new tests, this is an optimization that avoids creating
2840         a full CSSParser to parse the value.
2841
2842         * css/CSSParser.cpp:
2843         (WebCore::parseSimpleLengthValue):
2844
2845 2011-05-16  Naiem Shaik  <naiem.shaik@gmail.com>
2846
2847         Reviewed by Adam Barth.
2848
2849         This is for fixing build break in webgl due to https://bugs.webkit.org/show_bug.cgi?id=59861
2850         The bug raised for fixing this is https://bugs.webkit.org/show_bug.cgi?id=60867
2851
2852         No new tests. This does not change any functionality.
2853
2854         * platform/graphics/gtk/GraphicsContext3DGtk.cpp:
2855         (WebCore::GraphicsContext3D::create):
2856         * platform/graphics/gtk/GraphicsContext3DInternal.cpp:
2857         (WebCore::GraphicsContext3DInternal::create):
2858         * platform/graphics/gtk/GraphicsContext3DInternal.h:
2859
2860 2011-05-16  Pavel Feldman  <pfeldman@chromium.org>
2861
2862         Reviewed by Yury Semikhatsky.
2863
2864         Web Inspector: parse edited attributes by means of InspectorDOMAgent.
2865         https://bugs.webkit.org/show_bug.cgi?id=60807
2866
2867         This change moves attribute parsing from the front-end to the backend. 
2868
2869         * inspector/InspectorDOMAgent.cpp:
2870         (WebCore::InspectorDOMAgent::setAttribute):
2871         * inspector/front-end/DOMAgent.js:
2872         (WebInspector.DOMNode.prototype.setAttribute):
2873         * inspector/front-end/ElementsTreeOutline.js:
2874         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted.moveToNextAttributeIfNeeded):
2875         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted):
2876
2877 2011-05-16  Nikolas Zimmermann  <nzimmermann@rim.com>
2878
2879         Not reviewed.
2880
2881         Switch from Vector<UChar> to StringBuilder in dom/
2882         https://bugs.webkit.org/show_bug.cgi?id=57843
2883
2884         Incorporate comment from Darin/Andreas.
2885
2886         * dom/DatasetDOMStringMap.cpp:
2887         (WebCore::convertAttributeNameToPropertyName): Use 'character' local, instead of charaters[i].
2888         (WebCore::convertPropertyNameToAttributeName): Ditto.
2889
2890 2011-05-16  Alexander Pavlov  <apavlov@chromium.org>
2891
2892         Reviewed by Pavel Feldman.
2893
2894         Web Inspector: Fix SourceJavaScriptTokenizer keyword parsing
2895         https://bugs.webkit.org/show_bug.cgi?id=60773
2896
2897         * inspector/front-end/SourceJavaScriptTokenizer.js:
2898         (WebInspector.SourceJavaScriptTokenizer.prototype.nextToken):
2899         * inspector/front-end/SourceJavaScriptTokenizer.re2js:
2900
2901 2011-05-16  Nikolas Zimmermann  <nzimmermann@rim.com>
2902
2903         Reviewed by Darin Adler.
2904
2905         Switch from Vector<UChar> to StringBuilder in dom/
2906         https://bugs.webkit.org/show_bug.cgi?id=57843
2907
2908         * dom/DatasetDOMStringMap.cpp:
2909         (WebCore::convertAttributeNameToPropertyName):
2910         (WebCore::convertPropertyNameToAttributeName):
2911         * dom/Range.cpp:
2912         (WebCore::Range::toString):
2913         * dom/ScriptElement.cpp:
2914         (WebCore::ScriptElement::scriptContent):
2915
2916 2011-05-05  Pavel Podivilov  <podivilov@chromium.org>
2917
2918         Reviewed by Pavel Feldman.
2919
2920         Web Inspector: move double click handling from TextEditor to SourceFrame.
2921         https://bugs.webkit.org/show_bug.cgi?id=60271
2922
2923         It is SourceFrame's responsibility to check if content is editable and
2924         to configure TextEditor component (e.g. set editable range) when user
2925         tries to initiate editing.
2926
2927         * inspector/front-end/ResourceView.js:
2928         (WebInspector.ResourceSourceFrame.prototype.doubleClick):
2929         (WebInspector.RevisionSourceFrame.prototype.doubleClick):
2930         * inspector/front-end/SourceFrame.js:
2931         (WebInspector.SourceFrame.prototype.beforeTextChanged):
2932         (WebInspector.SourceFrame.prototype.afterTextChanged):
2933         (WebInspector.SourceFrame.prototype.doubleClick):
2934         (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
2935         (WebInspector.SourceFrame.prototype.commitEditing):
2936         (WebInspector.SourceFrame.prototype.cancelEditing):
2937         (WebInspector.SourceFrame.prototype._setReadOnly):
2938         * inspector/front-end/TextViewer.js:
2939         (WebInspector.TextViewer.prototype.set readOnly):
2940         (WebInspector.TextViewer.prototype._enterInternalTextChangeMode):
2941         (WebInspector.TextViewer.prototype._exitInternalTextChangeMode):
2942         (WebInspector.TextViewer.prototype._doubleClick):
2943         (WebInspector.TextViewer.prototype._commitEditing):
2944         (WebInspector.TextViewer.prototype._cancelEditing):
2945         (WebInspector.TextViewerDelegate.prototype.doubleClick):
2946         (WebInspector.TextViewerDelegate.prototype.beforeTextChanged):
2947         (WebInspector.TextViewerDelegate.prototype.afterTextChanged):
2948
2949 2011-05-15  Robert Hogan  <robert@webkit.org>
2950
2951         Reviewed by Yury Semikhatsky.
2952
2953         [Qt] Fix crash in inspector/console/console-long-eval-crash.html
2954         https://bugs.webkit.org/show_bug.cgi?id=60858
2955
2956         The client may be gone when sendMessageToBackend() is called.
2957
2958         * inspector/InspectorFrontendHost.cpp:
2959         (WebCore::InspectorFrontendHost::sendMessageToBackend):
2960
2961 2011-05-16  Nikolas Zimmermann  <nzimmermann@rim.com>
2962
2963         Reviewed by Dirk Schulze.
2964
2965         Replace direct StringConcatenate usage, by using operator+ (again)
2966         https://bugs.webkit.org/show_bug.cgi?id=60700
2967
2968         Remove makeString() usage everywhere, instead directly use operator+.
2969
2970         * accessibility/AccessibilityObject.cpp:
2971         (WebCore::AccessibilityObject::listMarkerTextForNodeAndPosition):
2972         * bindings/js/JSDOMWindowBase.cpp:
2973         * bindings/js/ScriptDebugServer.cpp:
2974         (WebCore::ScriptDebugServer::setBreakpoint):
2975         * bindings/v8/V8Proxy.cpp:
2976         (WebCore::V8Proxy::reportUnsafeAccessTo):
2977         * css/CSSMutableStyleDeclaration.cpp:
2978         (WebCore::CSSMutableStyleDeclaration::borderSpacingValue):
2979         * dom/ExceptionBase.cpp:
2980         (WebCore::ExceptionBase::ExceptionBase):
2981         * dom/XMLDocumentParser.cpp:
2982         (WebCore::XMLDocumentParser::handleError):
2983         * html/FTPDirectoryDocument.cpp:
2984         (WebCore::processFileDateString):
2985         * inspector/CodeGeneratorInspector.pm:
2986         * inspector/InspectorConsoleAgent.cpp:
2987         (WebCore::InspectorConsoleAgent::count):
2988         (WebCore::InspectorConsoleAgent::didReceiveResponse):
2989         * inspector/InspectorDOMAgent.cpp:
2990         * inspector/InspectorDOMDebuggerAgent.cpp:
2991         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
2992         * inspector/InspectorDebuggerAgent.cpp:
2993         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
2994         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2995         * loader/FrameLoader.cpp:
2996         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
2997         (WebCore::FrameLoader::checkIfRunInsecureContent):
2998         (WebCore::FrameLoader::shouldAllowNavigation):
2999         * loader/archive/cf/LegacyWebArchive.cpp:
3000         (WebCore::LegacyWebArchive::createFromSelection):
3001         * loader/cache/CachedResourceLoader.cpp:
3002         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
3003         * page/ContentSecurityPolicy.cpp:
3004         (WebCore::CSPDirective::CSPDirective):
3005         (WebCore::ContentSecurityPolicy::checkSourceAndReportViolation):
3006         * page/DOMWindow.cpp:
3007         (WebCore::DOMWindow::postMessageTimerFired):
3008         (WebCore::DOMWindow::crossDomainAccessErrorMessage):
3009         * page/PageSerializer.cpp:
3010         (WebCore::SerializerMarkupAccumulator::SerializerMarkupAccumulator):
3011         (WebCore::SerializerMarkupAccumulator::appendElement):
3012         (WebCore::PageSerializer::urlForBlankFrame):
3013         * page/PrintContext.cpp:
3014         (WebCore::PrintContext::pageProperty):
3015         (WebCore::PrintContext::pageSizeAndMarginsInPixels):
3016         * platform/efl/PlatformKeyboardEventEfl.cpp:
3017         (WebCore::createKeyMap):
3018         (WebCore::createWindowsKeyMap):
3019         * platform/efl/RenderThemeEfl.cpp:
3020         (WebCore::RenderThemeEfl::formatMediaControlsCurrentTime):
3021         * platform/graphics/GraphicsLayer.cpp:
3022         (WebCore::GraphicsLayer::animationNameForTransition):
3023         * platform/graphics/brew/ImageBrew.cpp:
3024         (WebCore::Image::loadPlatformResource):
3025         * platform/graphics/ca/GraphicsLayerCA.cpp:
3026         (WebCore::animationIdentifier):
3027         * platform/graphics/cg/ImageBufferCG.cpp:
3028         (WebCore::CGImageToDataURL):
3029         * platform/graphics/gtk/ImageBufferGtk.cpp:
3030         (WebCore::ImageBuffer::toDataURL):
3031         * platform/graphics/haiku/ImageBufferHaiku.cpp:
3032         (WebCore::ImageBuffer::toDataURL):
3033         * platform/graphics/qt/ImageBufferQt.cpp:
3034         (WebCore::ImageBuffer::toDataURL):
3035         * platform/graphics/skia/ImageBufferSkia.cpp:
3036         (WebCore::ImageToDataURL):
3037         * platform/network/CredentialStorage.cpp:
3038         (WebCore::originStringFromURL):
3039         * platform/network/cf/SocketStreamHandleCFNet.cpp:
3040         (WebCore::SocketStreamHandle::reportErrorToClient):
3041         * platform/sql/SQLiteDatabase.cpp:
3042         (WebCore::SQLiteDatabase::setSynchronous):
3043         * platform/text/wince/TextCodecWinCE.cpp:
3044         (WebCore::LanguageManager::LanguageManager):
3045         * platform/win/ClipboardUtilitiesWin.cpp:
3046         * platform/win/ClipboardWin.cpp:
3047         (WebCore::ClipboardWin::writeURL):
3048         * platform/win/FileSystemWin.cpp:
3049         (WebCore::listDirectory):
3050         * platform/win/LanguageWin.cpp:
3051         (WebCore::platformDefaultLanguage):
3052         * platform/win/PathWalker.cpp:
3053         (WebCore::PathWalker::PathWalker):
3054         * platform/win/SystemInfo.cpp:
3055         (WebCore::osVersionForUAString):
3056         (WebCore::windowsVersionForUAString):
3057         * plugins/PluginStream.cpp:
3058         (WebCore::PluginStream::startStream):
3059         * svg/SVGAngle.cpp:
3060         (WebCore::SVGAngle::valueAsString):
3061         * svg/SVGLength.cpp:
3062         (WebCore::SVGLength::valueAsString):
3063         * svg/SVGPaint.cpp:
3064         (WebCore::SVGPaint::cssText):
3065         * svg/SVGPointList.cpp:
3066         (WebCore::SVGPointList::valueAsString):
3067         * svg/SVGPreserveAspectRatio.cpp:
3068         (WebCore::SVGPreserveAspectRatio::valueAsString):
3069         * svg/SVGTransform.cpp:
3070         (WebCore::SVGTransform::valueAsString):
3071         * svg/SVGTransformList.cpp:
3072         * svg/SVGUseElement.cpp:
3073         (WebCore::dumpInstanceTree):
3074         * websockets/WebSocket.cpp:
3075         (WebCore::WebSocket::connect):
3076         * websockets/WebSocketChannel.cpp:
3077         (WebCore::WebSocketChannel::didFail):
3078         (WebCore::WebSocketChannel::appendToBuffer):
3079         * websockets/WebSocketHandshake.cpp:
3080         (WebCore::WebSocketHandshake::readServerHandshake):
3081
3082 2011-05-12  Yury Semikhatsky  <yurys@chromium.org>
3083
3084         Reviewed by Pavel Feldman.
3085
3086         Web Inspector: inspector console should be searchable
3087         https://bugs.webkit.org/show_bug.cgi?id=60711
3088
3089         Search now works for Console panel. It shows number of matching console entries
3090         and allows to jump to the next matching console entry. Also the matches count
3091         is dynamically updated when new messages are added to the console.
3092
3093         ResourceTreeModel and DebuggerPresentationModel now listen to console events instead
3094         of being called directly from ConsoleView.
3095
3096         * inspector/front-end/ConsolePanel.js:
3097         (WebInspector.ConsolePanel):
3098         (WebInspector.ConsolePanel.prototype.show):
3099         (WebInspector.ConsolePanel.prototype.hide):
3100         (WebInspector.ConsolePanel.prototype.searchCanceled):
3101         (WebInspector.ConsolePanel.prototype.performSearch):
3102         (WebInspector.ConsolePanel.prototype.jumpToNextSearchResult):
3103         (WebInspector.ConsolePanel.prototype.jumpToPreviousSearchResult):
3104         (WebInspector.ConsolePanel.prototype._clearCurrentSearchResultHighlight):
3105         (WebInspector.ConsolePanel.prototype._jumpToSearchResult):
3106         (WebInspector.ConsolePanel.prototype._consoleMessageAdded):
3107         (WebInspector.ConsolePanel.prototype._consoleCleared):
3108         * inspector/front-end/ConsoleView.js:
3109         (WebInspector.ConsoleView.prototype.addMessage):
3110         (WebInspector.ConsoleView.prototype.clearMessages):
3111         (WebInspector.ConsoleMessage.prototype.clearHighlight):
3112         (WebInspector.ConsoleMessage.prototype.highlightSearchResults):
3113         (WebInspector.ConsoleMessage.prototype.matchesRegex):
3114         (WebInspector.ConsoleMessage.prototype.toMessageElement):
3115         (WebInspector.ConsoleCommand.prototype.clearHighlight):
3116         (WebInspector.ConsoleCommand.prototype.highlightSearchResults):
3117         (WebInspector.ConsoleCommand.prototype.matchesRegex):
3118         (WebInspector.ConsoleCommand.prototype.toMessageElement):
3119         (WebInspector.ConsoleCommand.prototype._formatCommand):
3120         * inspector/front-end/DebuggerPresentationModel.js:
3121         (WebInspector.DebuggerPresentationModel):
3122         (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles):
3123         (WebInspector.DebuggerPresentationModel.prototype._consoleMessageAdded):
3124         (WebInspector.DebuggerPresentationModel.prototype._consoleCleared):
3125         * inspector/front-end/ResourceTreeModel.js:
3126         (WebInspector.ResourceTreeModel):
3127         (WebInspector.ResourceTreeModel.prototype._consoleMessageAdded):
3128         * inspector/front-end/ScriptsPanel.js:
3129         (WebInspector.ScriptsPanel):
3130         (WebInspector.ScriptsPanel.prototype._consoleMessagesCleared):
3131         * inspector/front-end/utilities.js:
3132         ():
3133
3134 2011-05-16  Adam Barth  <abarth@webkit.org>
3135
3136         [Qt] QtPlatformPlugin create methods should use PassOwnPtr
3137         https://bugs.webkit.org/show_bug.cgi?id=60873
3138
3139         * plugins/qt/PluginViewQt.cpp:
3140         (WebCore::PluginView::platformStart):
3141
3142 2011-05-15  Adam Barth  <abarth@webkit.org>
3143
3144         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
3145
3146         * platform/graphics/qt/GraphicsLayerQt.cpp:
3147         (WebCore::GraphicsLayerQt::GraphicsLayerQt):
3148         (WebCore::GraphicsLayer::create):
3149
3150 2011-05-15  Adam Barth  <abarth@webkit.org>
3151
3152         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
3153
3154         * platform/text/qt/TextCodecQt.cpp:
3155         (WebCore::newTextCodecQt):
3156
3157 2011-05-15  Adam Barth  <abarth@webkit.org>
3158
3159         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
3160
3161         * platform/network/qt/QNetworkReplyHandler.cpp:
3162         (WebCore::QNetworkReplyWrapper::release):
3163         (WebCore::QNetworkReplyWrapper::receiveMetaData):
3164         (WebCore::QNetworkReplyWrapper::receiveSniffedMIMEType):
3165         (WebCore::QNetworkReplyHandler::release):
3166         (WebCore::QNetworkReplyHandler::finish):
3167         (WebCore::QNetworkReplyHandler::redirect):
3168         (WebCore::QNetworkReplyHandler::start):
3169
3170 2011-05-15  Adam Barth  <abarth@webkit.org>
3171
3172         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
3173
3174         * dom/XMLDocumentParserQt.cpp:
3175         (WebCore::XMLDocumentParser::doEnd):
3176
3177 2011-05-15  Kenichi Ishibashi  <bashi@chromium.org>
3178
3179         Reviewed by Kent Tamura.
3180
3181         <output>, <meter> and <progress> elements with display:block can be focused if you try to tab to it
3182         https://bugs.webkit.org/show_bug.cgi?id=60602
3183
3184         HTMLFormControlElement::isFocusable() returns true when the element is
3185         visible as a block element.  However, for output, meter, and progress
3186         elements, the function should not return true unless they have
3187         tabindex attributes.  Override supportsFocus() of these elements to
3188         apply the result of Node::supportsFocus() because it takes care of
3189         whether the element has tabindex or not.
3190
3191         Test: fast/forms/focus-with-display-block.html
3192
3193         * html/HTMLFormControlElement.h: Made supportsFocus() protected.
3194         * html/HTMLMeterElement.cpp:
3195         (WebCore::HTMLMeterElement::supportsFocus): Added.
3196         * html/HTMLMeterElement.h:
3197         * html/HTMLOutputElement.cpp:
3198         (WebCore::HTMLOutputElement::supportsFocus): Added.
3199         * html/HTMLOutputElement.h:
3200         * html/HTMLProgressElement.cpp:
3201         (WebCore::HTMLProgressElement::supportsFocus): Added.
3202         * html/HTMLProgressElement.h:
3203
3204 2011-05-15  Jon Lee  <jonlee@apple.com>
3205
3206         Reviewed by Dan Bernstein.
3207
3208         Missing migration from Editor::TextCheckingOptions to TextCheckingType in SpellingCorrectionController.cpp
3209         https://bugs.webkit.org/show_bug.cgi?id=60870
3210
3211         * editing/SpellingCorrectionController.cpp:
3212         (WebCore::SpellingCorrectionController::correctionPanelTimerFired): Migrating to using TextCheckingType
3213
3214 2011-05-15  Geoffrey Garen  <ggaren@apple.com>
3215
3216         Reviewed by Gavin Barraclough.
3217
3218         https://bugs.webkit.org/show_bug.cgi?id=59699
3219         Global object is recreated on teardown, for no good reason
3220         
3221         (Another partial fix for <rdar://problem/9417875> REGRESSION: SunSpider
3222         ~7% slower in browser than on command line (was 17%))
3223         
3224         I'm basically rolling out http://trac.webkit.org/changeset/49786 because
3225
3226         (a) it created this performance problem
3227         
3228         and
3229         
3230         (b) a more complete fix, which obsoletes http://trac.webkit.org/changeset/49786,
3231         was committed in http://trac.webkit.org/changeset/53439.
3232         
3233         Tested with the file attached to https://bugs.webkit.org/show_bug.cgi?id=29832.
3234
3235         * page/Frame.cpp:
3236         (WebCore::Frame::~Frame): Don't create a new window every time we destroy
3237         a frame.
3238
3239 2011-05-12  MORITA Hajime  <morrita@google.com>
3240
3241         ShadowContentElement should affect the order of renderer children
3242         https://bugs.webkit.org/show_bug.cgi?id=59157
3243
3244         Introduced ShadowContentSelector to collect and forward content
3245         children for each ShadowContentElement. ShadowRoot collects child
3246         nodes of its host (we call these children "content children"), and
3247         the descendant ShadowContentElement pulls that these content
3248         children and put it under its child during
3249         ShadowContentElement::attach().
3250         
3251         Content children no longer create its renderer during its normal
3252         attach() phase (called "light" phase). And they create it during
3253         attach() as a content children instead (called "forwarded phase").
3254         These phases are detected by NodeRendererFactory and represented
3255         as NodeRendererFactory::AttachPhase value AttachContentLight and
3256         AttachContentForwarded.
3257         
3258         Tests: fast/html/details-add-details-child-1.html
3259                fast/html/details-add-details-child-2.html
3260                fast/html/details-nested-1.html
3261                fast/html/details-nested-2.html
3262
3263         * dom/Element.cpp:
3264         (WebCore::Element::attach):
3265         (WebCore::Element::childrenChanged):
3266         * dom/Node.cpp:
3267         (WebCore::NodeRendererFactory::NodeRendererFactory):
3268         (WebCore::NodeRendererFactory::shouldCreateRenderer):
3269         (WebCore::NodeRendererFactory::nextRenderer):
3270         (WebCore::NodeRendererFactory::createRendererIfNeeded):
3271         * dom/ShadowRoot.cpp:
3272         (WebCore::forceReattach):
3273         (WebCore::ShadowContentSelector::shadowRoot):
3274         (WebCore::ShadowContentSelector::activeElement):
3275         (WebCore::ShadowContentSelector::currentInstance):
3276         (WebCore::ShadowContentSelector::ShadowContentSelector):
3277         (WebCore::ShadowContentSelector::~ShadowContentSelector):
3278         (WebCore::ShadowContentSelector::attachChildrenFor):
3279         (WebCore::ShadowContentElement::attach):
3280         (WebCore::ShadowRoot::recalcStyle):
3281         (WebCore::ShadowRoot::activeContentContainer):
3282         (WebCore::ShadowRoot::hostChildrenChanged):
3283         (WebCore::ShadowRoot::attach):
3284         * dom/ShadowRoot.h:
3285         * html/shadow/ShadowContentElement.h:
3286         (WebCore::ShadowContentElement::rendererIsNeeded):
3287         * rendering/RenderDetails.cpp:
3288         * rendering/RenderDetails.h:
3289
3290 2011-05-13  MORITA Hajime  <morrita@google.com>
3291
3292         Reviewed by Ryosuke Niwa.
3293
3294         Refactoring: Editor::TextCheckingOptions should be replaced with TextCheckingType
3295         https://bugs.webkit.org/show_bug.cgi?id=57088
3296
3297         Removed Editor::TextCheckingOptions and replaced it with TextCheckingTypeMask
3298         No new tests, no behavior change.
3299
3300         * editing/Editor.cpp:
3301         (WebCore::Editor::replaceSelectionWithFragment):
3302         (WebCore::Editor::markMisspellingsAfterTypingToWord):
3303         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
3304         (WebCore::Editor::markMisspellingsAndBadGrammar):
3305         (WebCore::Editor::resolveTextCheckingTypeMask):
3306         * editing/Editor.h:
3307         * platform/text/TextChecking.h: Added TextCheckingTypeShowCorrectionPanel
3308
3309 2011-05-15  Ilya Tikhonovsky  <loislo@chromium.org>
3310
3311         Reviewed by Yury Semikhatsky.
3312
3313         Web Inspector: chromium renderer crash at eval in console.
3314
3315         https://bugs.webkit.org/show_bug.cgi?id=60616
3316         Renderer of inspected page is crashing when modal dialog
3317         has been opened via console eval and page is reloaded.
3318
3319         Test: inspector/console/console-long-eval-crash.html
3320
3321         * inspector/CodeGeneratorInspector.pm:
3322         * inspector/InspectorController.cpp:
3323         (WebCore::InspectorController::connectFrontend):
3324         (WebCore::InspectorController::dispatchMessageFromFrontend):
3325         * inspector/InspectorController.h:
3326
3327 2011-05-15  Eric Carlson  <eric.carlson@apple.com>
3328
3329         Reviewed by Maciej Stachowiak.
3330
3331         Use new AVAssetReferenceRestrictions to prevent cross site media references
3332         https://bugs.webkit.org/show_bug.cgi?id=60791
3333         <rdar://problem/9374202>
3334
3335         Test: http/tests/media/video-cross-site.html
3336
3337         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
3338         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Set restriction
3339             to prevent cross-domain references from being followed.
3340
3341 2011-05-15  Arno Renevier  <arno@renevier.net>
3342
3343         Reviewed by Darin Adler.
3344
3345         remove unecessary includes from Source/WebCore/html/HTMLFrameElementBase.cpp
3346         https://bugs.webkit.org/show_bug.cgi?id=60775
3347
3348         No new tests. This change only impacts compilation.
3349
3350         * html/HTMLFrameElementBase.cpp:
3351
3352 2011-05-14  Malcolm MacLeod  <malcolm.macleod@tshwanedje.com>
3353
3354         Reviewed by Kevin Ollivier.
3355
3356         [wx] Fix strokeArc and fillRoundedRect drawing, and add clipPath support.
3357         
3358         https://bugs.webkit.org/show_bug.cgi?id=60847
3359
3360         * platform/graphics/wx/GraphicsContextWx.cpp:
3361         (WebCore::GraphicsContext::strokeArc):
3362         (WebCore::GraphicsContext::clipConvexPolygon):
3363         (WebCore::GraphicsContext::fillRoundedRect):
3364         (WebCore::GraphicsContext::drawFocusRing):
3365         (WebCore::GraphicsContext::clipOut):
3366         (WebCore::GraphicsContext::clipPath):
3367         (WebCore::GraphicsContext::clip):
3368         (WebCore::GraphicsContext::addInnerRoundedRectClip):
3369
3370 2011-05-14  Eric Carlson  <eric.carlson@apple.com>
3371
3372         Reviewed by Dan Bernstein.
3373
3374         HTTP video-on-demand streams frequently have live stream UI
3375         https://bugs.webkit.org/show_bug.cgi?id=60849
3376         <rdar://problem/9440502>
3377
3378         No new tests, we don't currently have tests for http live streams. Changes verified manually.
3379
3380         * html/HTMLMediaElement.cpp:
3381         (WebCore::HTMLMediaElement::mediaPlayerDurationChanged): Reset the media controls so
3382             a duration change which identifies a format will be picked up.
3383         (WebCore::HTMLMediaElement::mediaPlayerCharacteristicChanged): New, reset media controls
3384             so they can be reconfigured for the media file characteristics.
3385         * html/HTMLMediaElement.h:
3386
3387         * platform/graphics/MediaPlayer.cpp:
3388         (WebCore::MediaPlayer::characteristicChanged): New, pass through to the element.
3389         * platform/graphics/MediaPlayer.h:
3390         (WebCore::MediaPlayerClient::mediaPlayerCharacteristicChanged):
3391
3392         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
3393         (WebCore::MediaPlayerPrivateAVFoundation::setHasVideo): Call characteristicChanged when
3394             setting changes.
3395         (WebCore::MediaPlayerPrivateAVFoundation::setHasAudio): Ditto.
3396         (WebCore::MediaPlayerPrivateAVFoundation::setHasClosedCaptions): Ditto.
3397         (WebCore::MediaPlayerPrivateAVFoundation::loadedTimeRangesChanged): Move the duration
3398             change notification logic to invalidateCachedDuration.
3399         (WebCore::MediaPlayerPrivateAVFoundation::invalidateCachedDuration): New, invalidate
3400             the cached duration and notify the element when it changes.
3401         (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification): Call invalidateCachedDuration
3402             for the DurationChanged notification.
3403         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: Define DurationChanged.
3404
3405         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
3406         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration): Don't check asset or
3407             item duration until they have been loaded.
3408         (WebCore::itemKVOProperties): Listen for&nbs