WebInspector: View throughs the exception when a child view are removed by removeChil...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-10-27  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         WebInspector: View throughs the exception when a child view are removed by removeChildren call.
4         https://bugs.webkit.org/show_bug.cgi?id=71002
5
6         Another followup fix after r98225.
7
8         Reviewed by Pavel Feldman.
9
10         * inspector/front-end/DatabaseTableView.js:
11         (WebInspector.DatabaseTableView.prototype._queryFinished):
12         (WebInspector.DatabaseTableView.prototype._queryError):
13
14 2011-10-27  Vsevolod Vlasov  <vsevik@chromium.org>
15
16         Web Inspector: Execution line in selected call frame should keep showing after toggling format source.
17         https://bugs.webkit.org/show_bug.cgi?id=70906
18
19         Reviewed by Yury Semikhatsky.
20
21         Test: inspector/debugger/selected-call-frame-after-formatting-source.html
22
23         * inspector/front-end/DebuggerPresentationModel.js:
24         (WebInspector.DebuggerPresentationModel.prototype.setFormatSource):
25
26 2011-10-27  Steve Block  <steveblock@google.com>
27
28         Numerous debug build fixes
29
30         Unreviewed build fix.
31
32         No new tests, buuld fix only.
33
34         * loader/icon/IconDatabase.cpp: urlForLogging() is used by both LOG() and LOG_ERROR()
35         * storage/AbstractDatabase.h: databaseDebugName() is used by both LOG() and LOG_ERROR()
36         * storage/DatabaseTask.cpp: m_complete is only available when !LOG_DISABLED
37
38 2011-10-27  Vsevolod Vlasov  <vsevik@chromium.org>
39
40         Web Inspector: Refactor ScriptsPanel so that ConsoleView does not depend on it.
41         https://bugs.webkit.org/show_bug.cgi?id=70899
42
43         Moved methods used in console view to DebuggerPresentationModel.
44         Changed debuggerPaused handler logic so that selectedCallFrame is never null when debugger is paused.
45
46         Reviewed by Pavel Feldman.
47
48         * inspector/front-end/ConsoleView.js:
49         * inspector/front-end/DebuggerPresentationModel.js:
50         (WebInspector.DebuggerPresentationModel.prototype._debuggerPaused):
51         (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame):
52         (WebInspector.DebuggerPresentationModel.prototype.evaluateInSelectedCallFrame):
53         (WebInspector.DebuggerPresentationModel.prototype.getSelectedCallFrameVariables.propertiesCollected):
54         (WebInspector.DebuggerPresentationModel.prototype.getSelectedCallFrameVariables):
55         (WebInspector.DebuggerPresentationModel.prototype._dispatchExecutionLineChanged):
56         (WebInspector.DebuggerPresentationModel.prototype.get executionLineLocation):
57         * inspector/front-end/ScriptsPanel.js:
58         (WebInspector.ScriptsPanel.prototype._consoleCommandEvaluatedInSelectedCallFrame):
59         (WebInspector.ScriptsPanel.prototype._executionLineChanged):
60         (WebInspector.ScriptsPanel.prototype._updateExecutionLine):
61         (WebInspector.ScriptsPanel.prototype._callFrameSelected):
62         (WebInspector.ScriptsPanel.prototype._updateCallFrame):
63
64 2011-10-27  Vsevolod Vlasov  <vsevik@chromium.org>
65
66         Web Inspector: Add support for advanced search in content scripts.
67         https://bugs.webkit.org/show_bug.cgi?id=70923
68
69         Reviewed by Yury Semikhatsky.
70
71         * English.lproj/localizedStrings.js:
72         * inspector/front-end/ScriptsSearchScope.js:
73         * inspector/front-end/SettingsScreen.js:
74         (WebInspector.SettingsScreen):
75
76 2011-10-27  Ilya Tikhonovsky  <loislo@chromium.org>
77
78         Unreviewed one line fix for DOMStorageItemsView.
79         It have to use this.detachChildViews instead of this.element.removeChildren after r98225.
80
81         * inspector/front-end/DOMStorageItemsView.js:
82         (WebInspector.DOMStorageItemsView.prototype.update):
83
84 2011-10-27  Antti Koivisto  <antti@apple.com>
85
86         Matched declaration cache
87         https://bugs.webkit.org/show_bug.cgi?id=70931
88
89         Reviewed by Darin Adler.
90
91         Sets of style declarations are applied repeatedly for different elements when calculating the document style.
92         The same set of applied declarations results in the same non-inherited style, independent of the element and 
93         its context. We can use this to build a cache to speed up style applying and to share more style data for
94         reduced memory usage.
95         
96         The patch reduces RenderStyle memory use ~40% and total memory use by ~7% over HTML5 spec load.
97         It is also ~10% progression in PerformanceTests/Parser/html5-full-render.html.
98
99         * css/CSSProperty.cpp:
100         (WebCore::CSSProperty::isInheritedProperty):
101         * css/CSSProperty.h:
102         (WebCore::CSSProperty::CSSProperty):
103         (WebCore::CSSProperty::isInherited):
104         
105             We need to know which properties are inherited, something we didn't have available so far.
106         
107         * css/CSSStyleSelector.cpp:
108         (WebCore::CSSStyleSelector::matchAllRules):
109         
110             A set of declarations is only cacheable if it contains no element specific style. This way we
111             don't need to worry about cache invalidation. The whole style selector is reconstructed if the
112             stylesheets change, invalidating the cache too.
113     
114         (WebCore::CSSStyleSelector::styleForElement):
115         
116             Trigger image loads bit earlier so cached style will have them too.
117         
118         (WebCore::CSSStyleSelector::applyDeclaration):
119         (WebCore::CSSStyleSelector::applyDeclarations):
120         
121             Allow skipping over non-inherited properties.
122         
123         (WebCore::CSSStyleSelector::computeDeclarationHash):
124         
125             Hash function for declartion cache lookups.
126         
127         (WebCore::operator==):
128         (WebCore::operator!=):
129         (WebCore::CSSStyleSelector::findFromMatchedDeclarationCache):
130         
131             Lookup from cache.
132         
133         (WebCore::CSSStyleSelector::addToMatchedDeclarationCache):
134         
135             Add to cache.
136         
137         (WebCore::CSSStyleSelector::applyMatchedDeclarations):
138         
139             If cached style is found, copy the non-inherited properties from the cache and apply the inherited properties (if any) only.
140         
141             Font and zoom changes force full applying as they can affect values of other properties (this can be relaxed later).
142         
143         * css/CSSStyleSelector.h:
144         (WebCore::CSSStyleSelector::MatchResult::MatchResult):
145         
146             Cacheability bit.
147         
148         * rendering/style/RenderStyle.cpp:
149         (WebCore::RenderStyle::copyNonInheritedFrom):
150         * rendering/style/RenderStyle.h:
151         * rendering/style/SVGRenderStyle.cpp:
152         (WebCore::SVGRenderStyle::copyNonInheritedFrom):
153         * rendering/style/SVGRenderStyle.h:
154         
155             Functions for assembling RenderStyle from non-inherited parts of the cached style.
156
157 2011-10-27  Andrey Kosyakov  <caseq@chromium.org>
158
159         Web Inspector: [Extensions API] add ignoreCache flag to options of inspectedWindow.reload()
160         https://bugs.webkit.org/show_bug.cgi?id=70926
161
162         Reviewed by Pavel Feldman.
163
164         Test: http/tests/inspector/extensions-ignore-cache.html
165
166         * inspector/front-end/ExtensionServer.js:
167         (WebInspector.ExtensionServer.prototype._onReload):
168         * inspector/front-end/externs.js:
169         ():
170
171 2011-10-26  Steve Falkenburg  <sfalken@apple.com>
172
173         ResourceError doesn't support custom domains on Windows
174         https://bugs.webkit.org/show_bug.cgi?id=70983
175         <rdar://problem/10352145>
176
177         Reviewed by Oliver Hunt.
178
179         * platform/network/cf/ResourceErrorCF.cpp:
180         (WebCore::ResourceError::platformLazyInit): Add fallback case for unknown error types.
181
182 2011-10-26  Dan Bernstein  <mitz@apple.com>
183
184         Fix a slider thumb rendering regression in Chromium on OS X in r98520.
185
186         Reviewed by Anders Carlsson.
187
188         * rendering/RenderThemeMac.mm:
189         (WebCore::RenderThemeMac::paintSliderThumb): Reverted the changes to the Chromium code path.
190
191 2011-10-26  Julien Chaffraix  <jchaffraix@webkit.org>
192
193         Unreviewed, rolling out r98486.
194         http://trac.webkit.org/changeset/98486
195         https://bugs.webkit.org/show_bug.cgi?id=70748
196
197         Broke Chromium's test_expectation.txt
198
199         * platform/graphics/skia/PlatformContextSkia.cpp:
200         (WebCore::PlatformContextSkia::State::State):
201         (WebCore::PlatformContextSkia::State::cloneInheritedProperties):
202         (WebCore::PlatformContextSkia::clipPathAntiAliased):
203         (WebCore::PlatformContextSkia::restore):
204         (WebCore::PlatformContextSkia::applyAntiAliasedClipPaths):
205         * platform/graphics/skia/PlatformContextSkia.h:
206
207 2011-10-26  Dan Bernstein  <mitz@apple.com>
208
209         <rdar://problem/10350775> REGRESSION (r97032): Slider thumb is not drawn
210         https://bugs.webkit.org/show_bug.cgi?id=70891
211
212         Reviewed by Anders Carlsson.
213
214         * platform/mac/ThemeMac.mm:
215         (WebCore::ThemeMac::ensuredView): Set the WebCoreFlippedView’s size, because NSSliderCell
216         always shrinks the slider thumb to fit in the control view’s bounds.
217         * rendering/RenderThemeMac.mm:
218         (WebCore::RenderThemeMac::paintSliderThumb): Removed workaround code no longer needed after
219         r97032.
220
221 2011-10-26  Chris Rogers  <crogers@google.com>
222
223         Add AudioSourceProviderClient and setFormat() method so we can know audio stream format
224         https://bugs.webkit.org/show_bug.cgi?id=70155
225
226         Reviewed by Eric Carlson.
227
228         No new tests.  There isn't yet an implementation to test.
229
230         * html/HTMLMediaElement.cpp:
231         (WebCore::HTMLMediaElement::createMediaPlayer):
232         (WebCore::HTMLMediaElement::setAudioSourceNode):
233         Let MediaPlayer know about the MediaElementAudioSourceNode so it can callback with audio stream format information.
234         * platform/audio/AudioSourceProvider.h:
235         (WebCore::AudioSourceProvider::setClient):
236         Add abstract setClient() method so a client may know about stream format information when it becomes available.
237         * platform/audio/AudioSourceProviderClient.h: Copied from Source/WebCore/webaudio/MediaElementAudioSourceNode.h.
238         (WebCore::AudioSourceProviderClient::~AudioSourceProviderClient):
239         Add abstract class AudioSourceProviderClient which implements setFormat() to receive audio stream format information.
240         * webaudio/MediaElementAudioSourceNode.cpp:
241         (WebCore::MediaElementAudioSourceNode::setFormat):
242         Concrete implementation of setFormat() so MediaElementAudioSourceNode can create necessary audio converters.
243         * webaudio/MediaElementAudioSourceNode.h:
244         Make MediaElementAudioSourceNode implement AudioSourceProviderClient so it can get audio stream format information
245         when its setFormat() method is called.
246
247 2011-10-26  Julien Chaffraix  <jchaffraix@webkit.org>
248
249         Unreviewed, rolling out r98483.
250         http://trac.webkit.org/changeset/98483
251         https://bugs.webkit.org/show_bug.cgi?id=47156
252
253         Change is causing some crashes and ASSERTs.
254
255         * loader/cache/CachedImage.cpp:
256         (WebCore::CachedImage::lookupImageForSize):
257         (WebCore::CachedImage::lookupImageForRenderer):
258         (WebCore::CachedImage::lookupOrCreateImageForRenderer):
259         (WebCore::CachedImage::setContainerSizeForRenderer):
260         (WebCore::CachedImage::imageSizeForRenderer):
261         (WebCore::CachedImage::computeIntrinsicDimensions):
262         (WebCore::CachedImage::createImage):
263         * loader/cache/CachedImage.h:
264         * page/ChromeClient.h:
265         * rendering/ImageBySizeCache.cpp:
266         (WebCore::ImageBySizeCache::addClient):
267         (WebCore::ImageBySizeCache::removeClient):
268         (WebCore::ImageBySizeCache::imageForSize):
269         (WebCore::ImageBySizeCache::sizeForClient):
270         * rendering/ImageBySizeCache.h:
271         * rendering/RenderBoxModelObject.cpp:
272         (WebCore::RenderBoxModelObject::calculateFillTileSize):
273         (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
274         (WebCore::RenderBoxModelObject::paintNinePieceImage):
275         * rendering/RenderBoxModelObject.h:
276         * rendering/RenderImage.cpp:
277         (WebCore::RenderImage::RenderImage):
278         (WebCore::RenderImage::imageDimensionsChanged):
279         (WebCore::RenderImage::isLogicalWidthSpecified):
280         (WebCore::RenderImage::isLogicalHeightSpecified):
281         (WebCore::RenderImage::computeReplacedLogicalWidth):
282         (WebCore::RenderImage::computeReplacedLogicalHeight):
283         (WebCore::RenderImage::calcAspectRatioLogicalWidth):
284         (WebCore::RenderImage::calcAspectRatioLogicalHeight):
285         * rendering/RenderImage.h:
286         * rendering/RenderImageResource.cpp:
287         (WebCore::RenderImageResource::setContainerSizeForRenderer):
288         * rendering/RenderImageResourceStyleImage.cpp:
289         * rendering/RenderImageResourceStyleImage.h:
290         (WebCore::RenderImageResourceStyleImage::image):
291         (WebCore::RenderImageResourceStyleImage::setContainerSizeForRenderer):
292         * rendering/RenderListMarker.cpp:
293         (WebCore::RenderListMarker::computePreferredLogicalWidths):
294         * rendering/RenderReplaced.cpp:
295         (WebCore::RenderReplaced::computeIntrinsicLogicalWidth):
296         (WebCore::RenderReplaced::computeIntrinsicLogicalHeight):
297         (WebCore::RenderReplaced::computeReplacedLogicalWidth):
298         * rendering/style/StyleCachedImage.cpp:
299         (WebCore::StyleCachedImage::computeIntrinsicDimensions):
300         (WebCore::StyleCachedImage::setContainerSizeForRenderer):
301         (WebCore::StyleCachedImage::addClient):
302         (WebCore::StyleCachedImage::removeClient):
303         * rendering/style/StyleCachedImage.h:
304         * rendering/style/StyleGeneratedImage.h:
305         (WebCore::StyleGeneratedImage::setContainerSizeForRenderer):
306         * rendering/style/StyleImage.h:
307         * rendering/style/StylePendingImage.h:
308         (WebCore::StylePendingImage::setContainerSizeForRenderer):
309         * rendering/svg/RenderSVGImage.cpp:
310         (WebCore::RenderSVGImage::layout):
311         * rendering/svg/RenderSVGRoot.cpp:
312         (WebCore::RenderSVGRoot::computeIntrinsicWidth):
313         (WebCore::RenderSVGRoot::computeIntrinsicHeight):
314         (WebCore::RenderSVGRoot::computeReplacedLogicalWidth):
315         (WebCore::RenderSVGRoot::computeReplacedLogicalHeight):
316         (WebCore::RenderSVGRoot::layout):
317         (WebCore::RenderSVGRoot::paint):
318         (WebCore::RenderSVGRoot::calcViewport):
319         (WebCore::RenderSVGRoot::computeRectForRepaint):
320         * rendering/svg/RenderSVGRoot.h:
321         * svg/SVGLength.cpp:
322         (WebCore::SVGLength::determineViewport):
323         * svg/SVGSVGElement.cpp:
324         (WebCore::SVGSVGElement::SVGSVGElement):
325         (WebCore::SVGSVGElement::relativeWidthValue):
326         (WebCore::SVGSVGElement::relativeHeightValue):
327         (WebCore::SVGSVGElement::currentViewBoxRect):
328         * svg/SVGSVGElement.h:
329         (WebCore::SVGSVGElement::setContainerSize):
330         (WebCore::SVGSVGElement::containerSize):
331         (WebCore::SVGSVGElement::hasSetContainerSize):
332         * svg/graphics/SVGImage.cpp:
333         (WebCore::SVGImage::setContainerSize):
334         (WebCore::SVGImage::usesContainerSize):
335         (WebCore::SVGImage::size):
336         (WebCore::SVGImage::hasRelativeWidth):
337         (WebCore::SVGImage::hasRelativeHeight):
338         (WebCore::SVGImage::draw):
339         (WebCore::SVGImage::computeIntrinsicDimensions):
340         (WebCore::SVGImage::dataChanged):
341         * svg/graphics/SVGImage.h:
342
343 2011-10-26  Eric Carlson  <eric.carlson@apple.com>
344
345         Constructors for all TextTrack interfaces should be available on DOMWindow
346         https://bugs.webkit.org/show_bug.cgi?id=70734
347
348         Reviewed by Sam Weinig.
349         
350         window-properties-expected.txt and global-constructors-expected.txt updated for this change.
351
352         * page/DOMWindow.idl: Add HTMLTrackElement, TextTrack, and TextTrackCueList.
353
354 2011-10-25  Andy Estes  <aestes@apple.com>
355
356         REGRESSION (r93108): Shadow DOM media controls created for plug-in backed media elements.
357         https://bugs.webkit.org/show_bug.cgi?id=70872
358
359         Reviewed by Eric Carlson.
360
361         r93108 added a call to HTMLMediaElement::configureMediaControls() in
362         HTMLMediaElement::prepareForLoad(), which creates shadow DOM media
363         controls and is only appropriate to call when media elements are not
364         backed by plug-in proxies.
365
366         Resolve this by refactoring configureMediaControls() to do the right
367         thing for the plug-in proxy case by calling MediaPlayer::setControls().
368
369         * html/HTMLMediaElement.cpp:
370         (WebCore::HTMLMediaElement::attributeChanged): Call
371         configureMediaControls() directly and remove the preprocessor
372         conditional.
373         (WebCore::HTMLMediaElement::configureMediaControls): Call
374         MediaPlayer::setControls() if PLUGIN_PROXY_FOR_VIDEO is enabled.
375
376 2011-10-26  Jon Lee  <jonlee@apple.com>
377
378         selectedIndex gets set from -1 to 0 when modifying options
379         https://bugs.webkit.org/show_bug.cgi?id=70547
380         <rdar://problem/8388856>
381
382         Reviewed by Darin Adler.
383
384         Changing the text causes a recalculation of the list items, which in the menu list case
385         forces the first element to be selected. We check the value of the selected option prior,
386         and restore it if it differs.
387
388         Test: fast/dom/HTMLSelectElement/selected-index-preserved-when-option-text-changes.html
389
390         * html/HTMLOptionElement.cpp:
391         (WebCore::HTMLOptionElement::setText):
392         * html/HTMLSelectElement.h: promote usesMenuList() from private to public for use by HTMLOptionElement
393
394 2011-10-25  Alexey Proskuryakov  <ap@apple.com>
395
396         Embedded PDFs should be known to DocumentLoader
397         https://bugs.webkit.org/show_bug.cgi?id=70864
398
399         Reviewed by Darin Adler.
400
401         * WebCore.exp.in: Added exports.
402
403 2011-10-26  Mark Hahnenberg  <mhahnenberg@apple.com>
404
405         Remove getOwnPropertySlotVirtual
406         https://bugs.webkit.org/show_bug.cgi?id=70741
407
408         Reviewed by Geoffrey Garen.
409
410         No new tests.
411
412         Removed all declarations and definitions of getOwnPropertySlotVirtual.
413         Also replaced all call sites to getOwnPropertyVirtualVirtual with a 
414         corresponding lookup in the MethodTable.
415
416         * WebCore.exp.in:
417         * bindings/js/JSDOMWindowCustom.cpp:
418         (WebCore::DialogHandler::returnValue):
419         * bindings/js/JSDOMWindowShell.cpp:
420         (WebCore::JSDOMWindowShell::getOwnPropertySlot):
421         * bindings/js/JSDOMWindowShell.h:
422         * bindings/js/SerializedScriptValue.cpp:
423         (WebCore::CloneSerializer::getSparseIndex):
424         (WebCore::CloneSerializer::getProperty):
425         * bindings/scripts/CodeGeneratorJS.pm:
426         (GenerateHeader):
427         (GenerateImplementation):
428         (GenerateConstructorDeclaration):
429         (GenerateConstructorDefinition):
430         * bridge/objc/objc_runtime.h:
431         * bridge/objc/objc_runtime.mm:
432         * bridge/qt/qt_runtime.cpp:
433         * bridge/qt/qt_runtime.h:
434         * bridge/runtime_array.cpp:
435         * bridge/runtime_array.h:
436         * bridge/runtime_method.cpp:
437         * bridge/runtime_method.h:
438         * bridge/runtime_object.cpp:
439         * bridge/runtime_object.h:
440
441 2011-10-26  Alejandro G. Castro  <alex@igalia.com>
442
443         [GTK] Fix distcheck compilation
444         https://bugs.webkit.org/show_bug.cgi?id=70921
445
446         Add EventTargetFactory.in to the dist files, required after
447         r98388.
448
449         Reviewed by Martin Robinson.
450
451         * GNUmakefile.am:
452
453 2011-10-26  Michael Saboff  <msaboff@apple.com>
454
455         Increase StringImpl Flag Bits for 8 bit Strings
456         https://bugs.webkit.org/show_bug.cgi?id=70937
457
458         Increased the number of bits used for flags in StringImpl
459         from 6 to 8 bits. This frees up 2 flag bits that will be
460         used for 8-bit string support. Updated hash methods accordingly.
461         Changed hash value masking from the low bits to the high
462         bits.
463
464         Reviewed by Darin Adler.
465
466         * bindings/scripts/CodeGeneratorJS.pm:
467         (GenerateHashValue):
468
469 2011-10-26  Dimitri Glazkov  <dglazkov@chromium.org>
470
471         REGRESSION (r94887): Scrolling the HTML spec is more jerky now than it was (regression)
472         https://bugs.webkit.org/show_bug.cgi?id=70857
473
474         Revert r94887, because it regressed performance.
475
476         Rubber-stamped by Antti Koivisto.
477
478         * css/CSSStyleSelector.cpp:
479         (WebCore::CSSStyleSelector::canShareStyleWithElement):
480         (WebCore::parentStylePreventsSharing):
481         * css/SelectorChecker.cpp:
482         (WebCore::SelectorChecker::checkSelector):
483         * dom/Element.cpp:
484         (WebCore::Element::recalcStyle):
485         (WebCore::checkForSiblingStyleChanges):
486         * rendering/style/RenderStyle.cpp:
487         (WebCore::RenderStyle::RenderStyle):
488         * rendering/style/RenderStyle.h:
489         (WebCore::InheritedFlags::childrenAffectedByDirectAdjacentRules):
490         (WebCore::InheritedFlags::setChildrenAffectedByDirectAdjacentRules):
491
492 2011-10-26  Alexander Pavlov  <apavlov@chromium.org>
493
494         Web Inspector: Need workaround for the red crossed circle in the status bar not bringing up the console when clicked
495         https://bugs.webkit.org/show_bug.cgi?id=70928
496
497         Reviewed by Pavel Feldman.
498
499         * inspector/front-end/inspector.css:
500         (#error-count-img):
501         (#error-count + #warning-count-img):
502         (#warning-count-img):
503         * inspector/front-end/inspector.js:
504         (WebInspector._updateErrorAndWarningCounts):
505
506 2011-10-26  Mike Reed  <reed@google.com>
507
508         [skia] replace offscreen technique with native support for antialiased clipping
509         https://bugs.webkit.org/show_bug.cgi?id=70748
510
511         Reviewed by Stephen White.
512
513         ~100 layout tests need to be rebaselined, as the native aa-clipping differs sometimes in the low
514         bits of the result. Other than that, the results should be the same, except that now the drawing
515         can go directly to the canvas, rather than being direct offscreen and then have that result
516         "clipped" during the restore. This has the effect of allowing LCD text to be drawing inside a
517         antialiased clip area.
518
519         * platform/graphics/skia/PlatformContextSkia.cpp:
520         (WebCore::PlatformContextSkia::State::State):
521         (WebCore::PlatformContextSkia::State::cloneInheritedProperties):
522         (WebCore::PlatformContextSkia::clipPathAntiAliased):
523         (WebCore::PlatformContextSkia::restore):
524
525 2011-10-26  Nikolas Zimmermann  <nzimmermann@rim.com>
526
527         CSS 2.1 failure: background-intrinsic-*
528         https://bugs.webkit.org/show_bug.cgi?id=47156
529
530         SVGs do not work as tiled background images
531         https://bugs.webkit.org/show_bug.cgi?id=16281
532
533         Apply preserveAspectRatio and synthesize viewboxes in <img>
534         https://bugs.webkit.org/show_bug.cgi?id=34521
535
536         SVG background doesn't resize properly when dimensions are changed
537         https://bugs.webkit.org/show_bug.cgi?id=42944
538
539         Images with percent height inside a floated div should use intrinsic height.
540         https://bugs.webkit.org/show_bug.cgi?id=45439
541
542         SVG image in HTML changes size as the window is resized
543         https://bugs.webkit.org/show_bug.cgi?id=52045
544
545         Reviewed by Antti Koivisto.
546
547         Implement intrinsic sizing support for SVGImage (svg embedded through <html:img>/<svg:image>/background-image/border-image/...).
548         This is demanded by CSS 2.1, and covered by new layout tests in LayoutTests/css2.1 and several new custom testcases.
549
550         Tests: css2.1/20110323/background-intrinsic-001.htm
551                css2.1/20110323/background-intrinsic-002.htm
552                css2.1/20110323/background-intrinsic-003.htm
553                css2.1/20110323/background-intrinsic-004.htm
554                css2.1/20110323/background-intrinsic-005.htm
555                css2.1/20110323/background-intrinsic-006.htm
556                css2.1/20110323/background-intrinsic-007.htm
557                css2.1/20110323/background-intrinsic-008.htm
558                css2.1/20110323/background-intrinsic-009.htm
559                svg/as-background-image/background-image-preserveaspectRatio-support.html (adapted from testcase from bug 34521)
560                svg/as-background-image/background-image-tiled.html (reduction from bug 16281)
561                svg/as-background-image/same-image-two-instances-background-image.html
562                svg/as-image/img-preserveAspectRatio-support-1.html (reduction from bug 34521)
563                svg/as-image/same-image-two-instances.html
564                svg/as-image/svg-as-relative-image-with-explicit-size.html
565                svg/as-image/svg-image-change-content-size.xhtml (reduction from bug 42944)
566                svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html
567
568         * loader/cache/CachedImage.cpp: Enable SVGImage <-> IntSize cache.
569         (WebCore::CachedImage::lookupImageForSize): Use recently introduced ImageBySizeCache, to lookup an image for a certain size.
570         (WebCore::CachedImage::lookupImageForRenderer): Lookup image by renderer, which first looks up a size for a renderer, then uses lookupImageForSize().
571         (WebCore::createSVGImage): Refactored from createImage(), contains the SVGImage creation part only.
572         (WebCore::CachedImage::lookupOrCreateImageForRenderer): Use recently introduced ImageBySizeCache, to dynamically create copies of m_image if needed.
573         (WebCore::CachedImage::setContainerSizeForRenderer): For SVGImages, pass on container size handling to ImageBySizeCache.
574         (WebCore::CachedImage::imageSizeForRenderer): Figure out the image size, respecting per-renderer overrides, for a certain renderer.
575         (WebCore::CachedImage::computeIntrinsicDimensions): Remove unnecessary RenderObject parameter.
576         (WebCore::CachedImage::addClientForRenderer): Special variant of addClient(), overriding the existing in CachedResource.
577         (WebCore::CachedImage::removeClientForRenderer): Special variant of removeClient(), that also clears the image in the ImageBySizeCache.
578         (WebCore::CachedImage::createImage): Refactor SVGImage creation into createSVGImage() free function, to be useable from lookupOrCreateImageForRenderer().
579         * loader/cache/CachedImage.h: Expose removeClientForRenderer().
580         * page/ChromeClient.h:
581         (WebCore::ChromeClient::isSVGImageChromeClient): Used to identify whether a RenderSVGRoot is embedded through a SVGImage. Returns false, by default.
582         * rendering/ImageBySizeCache.cpp:
583         (WebCore::ImageBySizeCache::addClient): Assert the passed renderer is valid.
584         (WebCore::ImageBySizeCache::removeClient): Ditto. Allow removeClient() to be called w/o prio addClient() usage.
585         (WebCore::ImageBySizeCache::setClient): New helper function, that combines the usage of addClient/removeClient, for the use in CachedImage.
586         (WebCore::ImageBySizeCache::imageForSize): Respect empty sizes, just return 0, instead of asserting.
587         (WebCore::ImageBySizeCache::imageForRenderer): Added a helper that retrieves an image for a renderer, by lookup up its size and using imageForSize().
588         * rendering/ImageBySizeCache.h: Expose setClient() & imageForRenderer().
589         * rendering/RenderBoxModelObject.cpp: Implement CSS 2.1 intrinsic size negotiation for images.
590         (WebCore::resolveWidthForRatio): New inline helper function used bz calculateImageIntrinsicDimensions.
591         (WebCore::resolveHeightForRatio): Ditto.
592         (WebCore::resolveAgainstIntrinsicWidthOrHeightAndRatio): Ditto.
593         (WebCore::resolveAgainstIntrinsicRatio):  Ditto.
594         (WebCore::RenderBoxModelObject::calculateImageIntrinsicDimensions): New helper function, containing the main algorithm, which is a pure transcription of the spec.
595         (WebCore::RenderBoxModelObject::calculateFillTileSize): Use new calculateImageIntrinsicDimensions() helper to figure out the intrinsic size.
596         (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Propagate calculateFillTileSize() result to the image resource, via setContainerSizeForRenderer().
597         (WebCore::RenderBoxModelObject::paintNinePieceImage): Use new calculateImageIntrinsicDimensions() helper to figure out the intrinsic size.
598         * rendering/RenderBoxModelObject.h: Clarify some variable names, added calculateImageIntrinsicDimensions().
599         * rendering/RenderImage.cpp:
600         (WebCore::RenderImage::RenderImage): Use IntSize(), instead of IntSize(0, 0).
601         (WebCore::RenderImage::updateIntrinsicSizeIfNeeded): Refactored from imageDimensionsChanged().
602         (WebCore::RenderImage::imageDimensionsChanged): Use updateIntrinsicSizeIfNeeded().
603         (WebCore::RenderImage::computeReplacedLogicalWidth): Use RenderReplaced::computeReplacedLogicalWidth() exclusively. For this to work, the intrinsic size must be correct.
604         (WebCore::RenderImage::computeIntrinsicRatioInformation): Default implementation for non-SVGImages.
605         (WebCore::RenderImage::needsPreferredWidthsRecalculation): Return true, just like RenderPart, if embeddedContentBox is not null.
606         (WebCore::RenderImage::embeddedContentBox): Returns the RenderSVGRoot* renderer of the embedded SVG, if possible.
607         * rendering/RenderImage.h: Remove isLogicalWidth/HeightSpecified() / computeReplacedLogicalHeight() / calcAspectRatioLogicalWidth/Height().
608         * rendering/RenderImageResource.cpp:
609         (WebCore::RenderImageResource::setContainerSizeForRenderer): Pass around new "float containerZoomFactor" parameter.
610         * rendering/RenderImageResourceStyleImage.cpp:
611         (WebCore::RenderImageResourceStyleImage::image): embeddedContentBox() is now calling image() earlier than before. We now have to handle the case that the image is pending.
612         (WebCore::RenderImageResourceStyleImage::setContainerSizeForRenderer): Pass zoom factor.
613         * rendering/RenderImageResourceStyleImage.h:
614         * rendering/RenderListMarker.cpp:
615         (WebCore::RenderListMarker::computePreferredLogicalWidths): Pass effective zoom to setContainerSizeForRenderer().
616         * rendering/RenderReplaced.cpp:
617         (WebCore::RenderReplaced::computeIntrinsicLogicalWidth): Generalized this code, as RenderImage is using it as well now. Marginal changes needed.
618         (WebCore::RenderReplaced::computeIntrinsicLogicalHeight): Ditto.
619         (WebCore::RenderReplaced::computeReplacedLogicalWidth): Ditto.
620         * rendering/style/StyleCachedImage.cpp:
621         (WebCore::StyleCachedImage::computeIntrinsicDimensions): Stop passing m_renderer to CachedImage, it's no longer needed.
622         (WebCore::StyleCachedImage::setContainerSizeForRenderer): Add "float containerZoomFactor" parameter.
623         (WebCore::StyleCachedImage::addClient): Forward to new addClientForRenderer().
624         (WebCore::StyleCachedImage::removeClient): Call new removeClientForRenderer() instead of removeClient(), so the ImageBySizeCache is also updated.
625         * rendering/style/StyleCachedImage.h: Add "float containerZoomFactor" parameter to setContainerSizeForRenderer.
626         * rendering/style/StyleGeneratedImage.h:
627         (WebCore::StyleGeneratedImage::setContainerSizeForRenderer): Ditto.
628         * rendering/style/StyleImage.h: Ditto.
629         * rendering/style/StylePendingImage.h:
630         (WebCore::StylePendingImage::setContainerSizeForRenderer): Ditto.
631         * rendering/svg/RenderSVGImage.cpp:
632         (WebCore::RenderSVGImage::layout): Always supply a container size when embedding SVGs in <svg:image>.
633         * rendering/svg/RenderSVGRoot.cpp: Move "override container size" from SVGSVGElement into RenderSVGRoot, where it belongs.
634         (WebCore::RenderSVGRoot::isEmbeddedThroughImageElement): Add helper method to determine whether we're loaded through SVGImage.
635         (WebCore::RenderSVGRoot::computeReplacedLogicalWidth): If we have a valid container size, it has precendence (only supplied via external SVGImages).
636         (WebCore::RenderSVGRoot::computeReplacedLogicalHeight): Ditto.
637         (WebCore::RenderSVGRoot::layout): Remove calcViewport() usage, no need to track/override the viewport size anymore, all done in coputeReplacedLogical* now.
638         (WebCore::RenderSVGRoot::paint): Use borderBoxRect() which now always matches the previously computed m_viewportSize. 
639         (WebCore::RenderSVGRoot::computeRectForRepaint): Ditto.
640         * rendering/svg/RenderSVGRoot.h: Move "override container size" from SVGSVGElement into RenderSVGRoot, where it belongs.
641         (WebCore::RenderSVGRoot::containerSize):
642         (WebCore::RenderSVGRoot::setContainerSize):
643         * svg/SVGLength.cpp:
644         (WebCore::SVGLength::determineViewport): Resolve lengths against override container size in documents embedded through SVGImage.
645         * svg/SVGSVGElement.cpp: Remove "override container size" handling from SVGSVGElement.
646         (WebCore::SVGSVGElement::SVGSVGElement): Ditto.
647         (WebCore::SVGSVGElement::currentViewBoxRect): Always synthesize a viewBox, if we're embedded through SVGImage, as demanded by SVG 1.1 2nd Edition.
648         * svg/SVGSVGElement.h:
649         * svg/graphics/SVGImage.cpp:
650         (WebCore::SVGImageChromeClient::setObserver): Helper function.
651         (WebCore::SVGImageChromeClient::isSVGImageChromeClient): Return true, used to identify whether RenderSVGRoot is embedded through SVGImage.
652         (WebCore::SVGImage::setContainerZoom): Forwarded to Page::setPageZoomFactor.
653         (WebCore::SVGImage::setContainerSize): Assert that container size is not empty. We should never receive an empty container size.
654         (WebCore::SVGImage::usesContainerSize): Adapt to override container size changes, it now lives in RenderSVGRoot instead of SVGSVGElement.
655         (WebCore::SVGImage::size): New algorithm to figure out the size of an embedded SVG, as demanded by the CSS/SVG specs.
656         (WebCore::SVGImage::draw): Stop calling layout() while painting!
657         (WebCore::SVGImage::embeddedContentBox): Add helper which returns the RenderSVGRoot of the document.
658         (WebCore::SVGImage::computeIntrinsicDimensions): Implement intrinsic ratio calculation. 
659         (WebCore::SVGImage::dataChanged): Force calling FrameView::setCanHaveScrollbars(false), as SVG images now always synthesize a viewBox, and thus never receive scrollbars.
660         * svg/graphics/SVGImage.h:
661
662 2011-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
663
664         Properly suspend/resume Geolocation/DeviceMotion/DeviceOrientation objects
665         https://bugs.webkit.org/show_bug.cgi?id=70328
666
667         Reviewed by Simon Hausmann.
668
669         Also remove checks for m_client in DeviceMotionController as it can never be null.
670
671         No new tests, as the suspend/resume functionality is not fully working yet.
672
673         * dom/DeviceMotionController.cpp:
674         (WebCore::DeviceMotionController::timerFired):
675         (WebCore::DeviceMotionController::addListener):
676         (WebCore::DeviceMotionController::removeListener):
677         (WebCore::DeviceMotionController::removeAllListeners):
678         (WebCore::DeviceMotionController::suspend):
679         (WebCore::DeviceMotionController::resume):
680         * dom/DeviceMotionController.h:
681         * dom/DeviceOrientationController.cpp:
682         (WebCore::DeviceOrientationController::suspend):
683         (WebCore::DeviceOrientationController::resume):
684         * dom/DeviceOrientationController.h:
685         * dom/Document.cpp:
686         (WebCore::Document::suspendActiveDOMObjects):
687         (WebCore::Document::resumeActiveDOMObjects):
688         (WebCore::Document::stopActiveDOMObjects):
689         * dom/Document.h:
690         * dom/ScriptExecutionContext.h:
691         * page/GeolocationController.cpp:
692         (WebCore::GeolocationController::GeolocationController):
693         (WebCore::GeolocationController::removeObserver):
694         (WebCore::GeolocationController::suspend):
695         (WebCore::GeolocationController::resume):
696         * page/GeolocationController.h:
697
698 2011-10-26  Pavel Feldman  <pfeldman@google.com>
699
700         Not reviewed: follow up to 98236 - moved inspector settings initialization earlier to unbreak settings panel.
701
702         * inspector/front-end/TextEditorModel.js:
703         (WebInspector.TextEditorModel):
704
705 2011-10-26  Zalan Bujtas  <zbujtas@gmail.com>
706
707         Name viewport change event consistently.
708         https://bugs.webkit.org/show_bug.cgi?id=70901
709
710         Reviewed by Kenneth Rohde Christiansen.
711
712         Use ViewportPropertiesDidChange term consistently throughout WebKit.
713
714         No tests needed as the change is only method renaming.
715
716         * page/Chrome.cpp:
717         (WebCore::Chrome::dispatchViewportPropertiesDidChange):
718         * page/Chrome.h:
719         * page/ChromeClient.h:
720         (WebCore::ChromeClient::dispatchViewportPropertiesDidChange):
721         * page/Page.cpp:
722         (WebCore::Page::updateViewportArguments):
723
724 2011-10-25  Stephen White  <senorblanco@chromium.org>
725
726         [chromium] Canvas2D should rate-limit drawing to prevent swamping the GPU process.
727         https://bugs.webkit.org/show_bug.cgi?id=70367
728
729         Reviewed by James Robinson.
730
731         Sadly, we don't have infrastructure to test this kind of GPU swamping
732         yet.
733
734         * WebCore.gypi:
735         Add RateLimiter.* to the Chromium build.
736         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
737         (WebCore::Canvas2DLayerChromium::contentChanged):
738         When the layer is notified that the contents have changed, ping the
739         rate limiter.
740         * platform/graphics/chromium/Canvas2DLayerChromium.h:
741         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
742         (WebCore::GraphicsLayerChromium::setContentsNeedsDisplay):
743         Call (new) virtual contentChanged() on a layer when its contents have
744         been changed (e.g., by a drawing call).
745         * platform/graphics/chromium/LayerChromium.h:
746         (WebCore::LayerChromium::contentChanged):
747         New virtual contentChanged().
748         * platform/graphics/chromium/RateLimiter.cpp: Added.
749         (WebCore::RateLimiter::create):
750         Rate limiter factory function.
751         (WebCore::RateLimiter::RateLimiter):
752         (WebCore::RateLimiter::start):
753         Public API to start rate limiting a context.
754         (WebCore::RateLimiter::stop):
755         Public API to stop rate limiting a context.
756         (WebCore::RateLimiter::rateLimitContext):
757         Internal timer callback when a context should be rate limited.
758         * platform/graphics/chromium/RateLimiter.h: Added.
759         * platform/graphics/chromium/WebGLLayerChromium.cpp:
760         (WebCore::WebGLLayerChromium::WebGLLayerChromium):
761         Remove rate limiting timer and extension check (moved to RateLimiter).
762         (WebCore::WebGLLayerChromium::contentChanged):
763         The function formerly known as setTextureUpdated(), now renamed to
764         match the base class virtual contentChanged().  Call rate limiter in
765         CCLayerTreeHost (local implementation removed).
766         (WebCore::WebGLLayerChromium::setContext):
767         When the context is changed, stop the pending rate limiter on the old
768         context.  Remove extension check (moved to RateLimiter).
769         * platform/graphics/chromium/WebGLLayerChromium.h:
770         Remove rate limiting timer and extension check (moved to RateLimiter).
771         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
772         (WebCore::CCLayerTreeHost::startRateLimiter):
773         Public API for starting per-context rate limiter.
774         (WebCore::CCLayerTreeHost::stopRateLimiter):
775         Public API for stopping per-context rate limiter.
776         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
777         Implementation of per-GraphicsContext3D RateLimiter.
778
779
780 2011-10-26  Pavel Feldman  <pfeldman@chromium.org>
781
782         Not reviewed: fixing inspector extensions tests.
783
784         * inspector/front-end/ConsoleMessage.js:
785         (WebInspector.ConsoleMessageImpl):
786         * inspector/front-end/ExtensionServer.js:
787         (WebInspector.ExtensionServer.prototype._onAddConsoleMessage):
788
789 2011-10-26  Balazs Kelemen  <kbalazs@webkit.org>
790
791         ParallelJobs path of FEConvolveMatrix is erroneous
792         https://bugs.webkit.org/show_bug.cgi?id=70409
793
794         Reviewed by Zoltan Herczeg.
795
796         Covered by existing tests.
797
798         * platform/graphics/filters/FEConvolveMatrix.cpp:
799         (WebCore::FEConvolveMatrix::fastSetInteriorPixels):
800         Reject the silly idea that bytes per pixel ratio is 3 in preserveAlphaValues mode.
801         The bug was hidden so far because that computation has no effect when we are going
802         with the full inferior area in one round (in that case clipBottom and yEnd are equals
803         and the value of the expression is always 0). With ParallelJobs we process sub-areas
804         on each thread which has triggered the issue.
805
806 2011-10-26  Sheriff Bot  <webkit.review.bot@gmail.com>
807
808         Unreviewed, rolling out r98393.
809         http://trac.webkit.org/changeset/98393
810         https://bugs.webkit.org/show_bug.cgi?id=70892
811
812         "Compilation is broken on Chromium Webkit Mac Builder (dbg) "
813         (Requested by yurys on #webkit).
814
815         * platform/graphics/chromium/LayerChromium.h:
816         (WebCore::LayerChromium::setMasksToBounds):
817         (WebCore::LayerChromium::setMaskLayer):
818
819 2011-10-26  Pavel Feldman  <pfeldman@google.com>
820
821         Web Inspector: order console message parameters for better optional parameters handling.
822         https://bugs.webkit.org/show_bug.cgi?id=70809
823
824         Reviewed by Yury Semikhatsky.
825
826         * inspector/Inspector.json:
827         * inspector/front-end/ConsoleMessage.js:
828         (WebInspector.ConsoleMessageImpl):
829         (WebInspector.ConsoleMessageImpl.prototype._formatMessage):
830         * inspector/front-end/ConsoleModel.js:
831         (WebInspector.ConsoleModel.prototype._messageRepeatCountUpdated):
832         (WebInspector.ConsoleMessage.create):
833         (WebInspector.ConsoleDispatcher.prototype.messageAdded):
834         * inspector/front-end/ConsoleView.js:
835         (WebInspector.ConsoleCommandResult):
836         (WebInspector.ConsoleMessage.create):
837         * inspector/front-end/ExtensionServer.js:
838         (WebInspector.ExtensionServer.prototype._onAddConsoleMessage):
839         * inspector/front-end/NetworkManager.js:
840         (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
841         * inspector/front-end/inspector.js:
842         (WebInspector.log.logMessage):
843         (WebInspector.log):
844
845 2011-10-26  Vsevolod Vlasov  <vsevik@chromium.org>
846
847         Web Inspector: Debugger fails when there is an invalid watch expression.
848         https://bugs.webkit.org/show_bug.cgi?id=70718
849
850         Reviewed by Pavel Feldman.
851
852         Test: inspector/debugger/watch-expressions-panel-switch.html
853
854         * inspector/front-end/ScriptsPanel.js:
855         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
856
857 2011-10-26  Fady Samuel  <fsamuel@chromium.org>
858
859         Page Scale Factor broken when navigating history on pages with child frames
860         https://bugs.webkit.org/show_bug.cgi?id=70459
861
862         Reviewed by Darin Fisher.
863
864         With frameScaleFactor now always returning 1.0 for subframes and pageScaleFactor for the mainFrame,
865         and there being only a single pageScaleFactor, history for scaling is broken. Scaling history is
866         saved on a per frame basis but restored, overriding the per-page pageScaleFactor multiple times.
867         As a result, sometimes pages that have subframes end up getting a scale factor of 1.0 instead
868         of the correct scale factor that was assigned to the main frame.
869
870         No new tests because I don't know how to test this.
871
872         * loader/HistoryController.cpp:
873         (WebCore::HistoryController::restoreScrollPositionAndViewState):
874
875 2011-10-26  Sheriff Bot  <webkit.review.bot@gmail.com>
876
877         Unreviewed, rolling out r98429.
878         http://trac.webkit.org/changeset/98429
879         https://bugs.webkit.org/show_bug.cgi?id=70881
880
881         "webkit_gpu_tests fail in Chromium" (Requested by yurys on
882         #webkit).
883
884         * platform/graphics/chromium/LayerRendererChromium.cpp:
885         (WebCore::LayerRendererChromium::initialize):
886         * platform/graphics/chromium/WebGLLayerChromium.cpp:
887         (WebCore::WebGLLayerChromium::layerRendererContext):
888         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
889         (WebCore::CCHeadsUpDisplay::enabled):
890         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
891         (WebCore::CCLayerTreeHost::initialize):
892         (WebCore::CCLayerTreeHost::context):
893         (WebCore::CCLayerTreeHost::setNeedsAnimate):
894         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
895         (WebCore::CCLayerTreeHost::setNeedsRedraw):
896         (WebCore::CCLayerTreeHost::composite):
897         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
898         (WebCore::CCSettings::CCSettings):
899         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
900         (WebCore::CCThreadProxy::setThread):
901         * platform/graphics/chromium/cc/CCThreadProxy.h:
902
903 2011-10-26  Ben Wells  <benwells@chromium.org>
904
905         Canvas drawImage with SourceIn, DestinationIn, SourceOut, DestinationAtop and Copy have errors
906         https://bugs.webkit.org/show_bug.cgi?id=66920
907
908         Reviewed by James Robinson.
909
910         Test: fast/canvas/canvas-composite-image.html
911
912         Use the same method as fills to handle composited drawImage calls that will affect the whole
913         canvas. To do this code used when doing fills has been factored into seperate functions and
914         used by drawImage. Some functions used to do these types of operations have also been renamed.
915
916         * html/canvas/CanvasRenderingContext2D.cpp:
917         (WebCore::isFullCanvasCompositeMode):
918         (WebCore::CanvasRenderingContext2D::fill):
919         (WebCore::CanvasRenderingContext2D::fillRect):
920         (WebCore::CanvasRenderingContext2D::drawImage):
921         (WebCore::CanvasRenderingContext2D::calculateCompositingBufferRect):
922         (WebCore::CanvasRenderingContext2D::createCompositingBuffer):
923         (WebCore::CanvasRenderingContext2D::compositeBuffer):
924         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedDrawImage):
925         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedFill):
926         * html/canvas/CanvasRenderingContext2D.h:
927
928 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
929
930         Unreviewed, rolling out r98379.
931         http://trac.webkit.org/changeset/98379
932         https://bugs.webkit.org/show_bug.cgi?id=70875
933
934         Did not pass on JSC ports (Requested by abarth on #webkit).
935
936         * bindings/scripts/CodeGeneratorJS.pm:
937         (GenerateHeader):
938         (GenerateImplementation):
939         * bindings/scripts/CodeGeneratorV8.pm:
940         (GenerateHeader):
941         (GenerateArgumentsCountCheck):
942         (GenerateImplementation):
943         * html/canvas/CanvasRenderingContext2D.idl:
944         * page/DOMWindow.idl:
945
946 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
947
948         Unreviewed, rolling out r98346.
949         http://trac.webkit.org/changeset/98346
950         https://bugs.webkit.org/show_bug.cgi?id=70874
951
952         Breaks JSC-based bots. (Requested by pfeldman on #webkit).
953
954         * inspector/front-end/ScriptsPanel.js:
955         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
956
957 2011-10-25  Nat Duca  <nduca@chromium.org>
958
959         [chromium] Enable threaded compositing via CCThreadProxy::hasThread only
960         https://bugs.webkit.org/show_bug.cgi?id=70838
961
962         Reviewed by James Robinson.
963
964         * platform/graphics/chromium/LayerRendererChromium.cpp:
965         (WebCore::LayerRendererChromium::initialize):
966         * platform/graphics/chromium/WebGLLayerChromium.cpp:
967         (WebCore::WebGLLayerChromium::layerRendererContext):
968         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
969         (WebCore::CCHeadsUpDisplay::enabled):
970         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
971         (WebCore::CCLayerTreeHost::initialize):
972         (WebCore::CCLayerTreeHost::context):
973         (WebCore::CCLayerTreeHost::setNeedsAnimate):
974         (WebCore::CCLayerTreeHost::setNeedsCommitThenRedraw):
975         (WebCore::CCLayerTreeHost::setNeedsRedraw):
976         (WebCore::CCLayerTreeHost::composite):
977         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
978         (WebCore::CCSettings::CCSettings):
979         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
980         (WebCore::CCThreadProxy::hasThread):
981         * platform/graphics/chromium/cc/CCThreadProxy.h:
982
983 2011-10-25  Xiaomei Ji  <xji@chromium.org>
984
985         --webkit-visual-word does not work in multi-line
986         https://bugs.webkit.org/show_bug.cgi?id=61344
987
988         Reviewed by Ryosuke Niwa.
989
990         Get next or previous root inline box (which is not in the same
991         render object as the current root inline box) by traversing DOM node.
992
993         Test: editing/selection/move-by-word-visually-inline-block-positioned-element.html
994
995         * editing/visible_units.cpp:
996         (WebCore::previousRootInlineBox):
997         (WebCore::nextRootInlineBox):
998         (WebCore::leftInlineBox):
999         (WebCore::rightInlineBox):
1000
1001 2011-10-25  Adam Barth  <abarth@webkit.org>
1002
1003         JSEventTarget.cpp has a bunch of unnessary includes
1004         https://bugs.webkit.org/show_bug.cgi?id=70865
1005
1006         Reviewed by Eric Seidel.
1007
1008         In the process of removing these includes, I noticed we had a bunch of
1009         non-autogenerated code in this file, which I've now autogenerated.
1010
1011         * bindings/js/JSEventTarget.cpp:
1012         (WebCore::toEventTarget):
1013             - One subtly here is the outter static_cast, which is caused by an
1014               inheritance infelicity in JavaScriptAudioNode, which I've noted
1015               with a FIXME.  In any case, the extra static_cast shouldn't cause
1016               any trouble.
1017         * webaudio/JavaScriptAudioNode.h:
1018
1019 2011-10-25  Adam Barth  <abarth@webkit.org>
1020
1021         V8DOMWrapper.cpp has unneeded header includes
1022         https://bugs.webkit.org/show_bug.cgi?id=70863
1023
1024         Reviewed by Eric Seidel.
1025
1026         * bindings/v8/V8DOMWrapper.cpp:
1027
1028 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1029
1030         Resetting baseline for test bindings
1031
1032         Unreviewed preemptive build fix
1033
1034         No new tests.
1035
1036         * bindings/scripts/test/JS/JSTestObj.cpp:
1037         * bindings/scripts/test/JS/JSTestObj.h:
1038
1039 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1040
1041         Remove deletePropertyVirtual
1042         https://bugs.webkit.org/show_bug.cgi?id=70738
1043
1044         Reviewed by Geoffrey Garen.
1045
1046         No new tests.
1047
1048         Removed all declarations and definitions of deletePropertyVirtual.
1049         Also replaced all call sites to deletePropertyVirtual with a 
1050         corresponding lookup in the MethodTable.
1051
1052         * WebCore.exp.in:
1053         * bindings/js/JSDOMStringMapCustom.cpp:
1054         (WebCore::JSDOMStringMap::deleteProperty):
1055         * bindings/js/JSDOMWindowCustom.cpp:
1056         (WebCore::JSDOMWindow::deleteProperty):
1057         * bindings/js/JSDOMWindowShell.cpp:
1058         (WebCore::JSDOMWindowShell::deleteProperty):
1059         * bindings/js/JSDOMWindowShell.h:
1060         * bindings/js/JSHistoryCustom.cpp:
1061         (WebCore::JSHistory::deleteProperty):
1062         * bindings/js/JSLocationCustom.cpp:
1063         (WebCore::JSLocation::deleteProperty):
1064         * bindings/js/JSStorageCustom.cpp:
1065         (WebCore::JSStorage::deleteProperty):
1066         * bindings/js/ScriptObject.cpp:
1067         (WebCore::ScriptGlobalObject::remove):
1068         * bindings/objc/WebScriptObject.mm:
1069         (-[WebScriptObject removeWebScriptKey:]):
1070         * bindings/scripts/CodeGeneratorJS.pm:
1071         (GenerateHeader):
1072         * bridge/NP_jsobject.cpp:
1073         (_NPN_RemoveProperty):
1074         * bridge/jni/jni_jsobject.mm:
1075         (JavaJSObject::removeMember):
1076         * bridge/objc/objc_runtime.h:
1077         * bridge/objc/objc_runtime.mm:
1078         * bridge/runtime_array.cpp:
1079         * bridge/runtime_array.h:
1080         * bridge/runtime_object.cpp:
1081         * bridge/runtime_object.h:
1082
1083 2011-10-25  Chris Fleizach  <cfleizach@apple.com>
1084
1085         AX: WebKit does not expose HTML label for slider elements
1086         https://bugs.webkit.org/show_bug.cgi?id=70856
1087
1088         Reviewed by Darin Adler.
1089
1090         Test: platform/mac/accessibility/slider-allows-title-ui-element.html
1091
1092         * accessibility/AccessibilitySlider.h:
1093         (WebCore::AccessibilitySlider::isControl):
1094         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1095         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
1096
1097 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1098
1099         Remove putVirtual
1100         https://bugs.webkit.org/show_bug.cgi?id=70740
1101
1102         Reviewed by Geoffrey Garen.
1103
1104         No new tests.
1105
1106         Removed all declarations and definitions of putVirtual.
1107         Also replaced all call sites to putVirtual with a 
1108         corresponding lookup in the MethodTable.
1109
1110         * WebCore.exp.in:
1111         * bindings/js/JSDOMWindowCustom.cpp:
1112         * bindings/js/JSDOMWindowShell.cpp:
1113         (WebCore::JSDOMWindowShell::put):
1114         * bindings/js/JSDOMWindowShell.h:
1115         * bindings/js/JSPluginElementFunctions.cpp:
1116         (WebCore::runtimeObjectCustomPut):
1117         * bindings/js/SerializedScriptValue.cpp:
1118         (WebCore::CloneDeserializer::putProperty):
1119         * bindings/objc/WebScriptObject.mm:
1120         (-[WebScriptObject setValue:forKey:]):
1121         (-[WebScriptObject setWebScriptValueAtIndex:value:]):
1122         * bindings/scripts/CodeGeneratorJS.pm:
1123         (GenerateHeader):
1124         (GenerateImplementation):
1125         * bridge/NP_jsobject.cpp:
1126         (_NPN_SetProperty):
1127         * bridge/jni/jni_jsobject.mm:
1128         (JavaJSObject::setMember):
1129         (JavaJSObject::setSlot):
1130         * bridge/objc/objc_runtime.h:
1131         * bridge/objc/objc_runtime.mm:
1132         * bridge/qt/qt_runtime.cpp:
1133         (JSC::Bindings::convertQVariantToValue):
1134         * bridge/runtime_array.cpp:
1135         * bridge/runtime_array.h:
1136         * bridge/runtime_object.cpp:
1137         * bridge/runtime_object.h:
1138         * bridge/testqtbindings.cpp:
1139         (main):
1140
1141 2011-10-25  Adam Barth  <abarth@webkit.org>
1142
1143         EventTargetFactory.in is not sorted
1144         https://bugs.webkit.org/show_bug.cgi?id=70855
1145
1146         Reviewed by Eric Seidel.
1147
1148         This patch sorts the file.  I was not able to measure a performance
1149         difference using the microbenchmark included with this patch.
1150
1151         * dom/EventTargetFactory.in:
1152
1153 2011-10-25  Adam Barth  <abarth@webkit.org>
1154
1155         Attempt to fix the Windows build.  Windows mashes all these files into
1156         one, which doesn't respect the compilation unit rules of C++.
1157
1158         * bindings/js/JSEventCustom.cpp:
1159         * bindings/js/JSEventTarget.cpp:
1160
1161 2011-10-25  Ryosuke Niwa  <rniwa@webkit.org>
1162
1163         Moving to the start of line should not place the caret outside of the table
1164         https://bugs.webkit.org/show_bug.cgi?id=70757
1165
1166         Reviewed by Chang Shu.
1167
1168         The bug was caused by positionAvoidingFirstPositionInTable. Get rid of the function.
1169
1170         Test: editing/selection/table-lineboundary.html
1171
1172         * editing/visible_units.cpp:
1173         (WebCore::startPositionForLine):
1174
1175 2011-10-25  Beth Dakin  <bdakin@apple.com>
1176
1177         https://bugs.webkit.org/show_bug.cgi?id=70852
1178         Setting up a HiDPI base-level GraphicsContext should be more straightforward for 
1179         WebKit2
1180
1181         Reviewed by Dan Bernstein.
1182
1183         This patch removes the old cg-only GraphicsContext::setBaseCTM() api, and adds 
1184         platform-independent GraphicsContext::applyDeviceScaleFactor().
1185         * WebCore.exp.in:
1186         * platform/graphics/GraphicsContext.cpp:
1187         (WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
1188         (WebCore::GraphicsContext::applyDeviceScaleFactor):
1189         * platform/graphics/GraphicsContext.h:
1190         * platform/graphics/cg/GraphicsContextCG.cpp:
1191         (WebCore::GraphicsContext::platformApplyDeviceScaleFactor):
1192
1193         Since this patch removes GraphicsContext::setBaseCTM(), this code has been 
1194         reverted to do what it used to do before that was added; it just calls into 
1195         WebCoreSystemInterface directly.
1196         * platform/graphics/cg/ImageCG.cpp:
1197         (WebCore::Image::drawPattern):
1198
1199 2011-10-25  Anders Carlsson  <andersca@apple.com>
1200
1201         Plug-ins have to use JavaScript to find out the current device scale factor
1202         https://bugs.webkit.org/show_bug.cgi?id=67225
1203
1204         Reviewed by Darin Adler.
1205
1206         Test: platform/mac-wk2/plugins/contents-scale-factor.html
1207
1208         Add NPNVcontentsScaleFactor, as per https://wiki.mozilla.org/NPAPI:ContentsScaleFactor.
1209
1210         * plugins/npapi.h:
1211
1212 2011-10-25  Adam Klein  <adamk@chromium.org>
1213
1214         Forward declare MutationObserverEntry as a struct to fix clang build
1215         https://bugs.webkit.org/show_bug.cgi?id=70853
1216
1217         Reviewed by Ryosuke Niwa.
1218
1219         Node.h forward declared MutationObserverEntry as a class, and clang
1220         complains if the two declarations don't match.
1221
1222         * dom/Node.h:
1223
1224 2011-10-25  Dan Bernstein  <mitz@apple.com>
1225
1226         Caret can be positioned or repainted incorrectly in flipped-blocks multi-column blocks
1227         https://bugs.webkit.org/show_bug.cgi?id=70851
1228
1229         Reviewed by Dave Hyatt.
1230
1231         * manual-tests/caret-in-columns-flipped.html: Added.
1232         * rendering/RenderBlock.cpp:
1233         (WebCore::RenderBlock::adjustForColumns): Removed flipped-blocks writing mode considerations
1234         from this function, since not all callers were expecting it to account for flippedness. This makes
1235         it similar to adjustRectForColumns() in not adjusting for flippedness.
1236         * rendering/RenderBox.cpp:
1237         (WebCore::RenderBox::offsetFromContainer): In the columns case, account for flipped-blocks modes
1238         by first mapping the point and the offset to non-flipped, non-columns space, then adjusting for
1239         columns, then flipping.
1240
1241 2011-10-25  Michal Mocny  <mmocny@google.com>
1242
1243         LayerRendererChromium::setVisible called needlessly without a visibility change
1244         https://bugs.webkit.org/show_bug.cgi?id=70766
1245
1246         Reviewed by Kenneth Russell.
1247
1248         Check that visibility has actually changed before calling LayerRendererChromium::setVisible
1249
1250         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1251         (WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
1252         (WebCore::CCLayerTreeHostImpl::setVisible):
1253         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
1254
1255 2011-10-25  Anders Carlsson  <andersca@apple.com>
1256
1257         REGRESSION(97821): HistoryController::itemsAreClones crashes a lot
1258         https://bugs.webkit.org/show_bug.cgi?id=70827
1259         <rdar://problem/10342925>
1260
1261         Reviewed by Adam Barth.
1262
1263         Check that m_currentItem is non-null before passing it to itemsAreClones. While I wasn't
1264         able to make a test case that would reproduce this crash, we do check m_currentItem for null
1265         everywhere else, and the crash log indicates that this would fix the crash.
1266
1267         * loader/HistoryController.cpp:
1268         (WebCore::HistoryController::recursiveUpdateForCommit):
1269
1270 2011-10-25  Adam Barth  <abarth@webkit.org>
1271
1272         EventTarget.h shouldn't need to know about every feature and ifdef
1273         https://bugs.webkit.org/show_bug.cgi?id=70659
1274
1275         Reviewed by Darin Adler.
1276
1277         This patch follows the approach of Event.h and introduces an
1278         interfaceName virtual function that returns the name of the DOM
1279         interface for the concrete type of the object.  This function lets us
1280         remove a large number of fake dynamic casts.
1281
1282         * CMakeLists.txt:
1283         * CodeGenerators.pri:
1284         * DerivedSources.make:
1285         * GNUmakefile.am:
1286         * WebCore.gyp/WebCore.gyp:
1287         * WebCore.gyp/scripts/action_makenames.py:
1288             - Teach action_makenames how to handle the new "in" file.
1289         * WebCore.gypi:
1290         * WebCore.vcproj/WebCore.vcproj:
1291         * WebCore.xcodeproj/project.pbxproj:
1292         * bindings/js/JSEventTarget.cpp:
1293         (WebCore::toJS):
1294             - Use the new autogenerated macro to remove a large amount of
1295               feature-specific code.
1296         * bindings/js/WorkerScriptController.cpp:
1297         (WebCore::WorkerScriptController::initScript):
1298         * bindings/objc/DOM.mm:
1299         (kit):
1300             - The SVGElementInstance branch was never taken previously because
1301               SVGElementInstance::toNode returns a non-NULL value. This code
1302               was introduced in http://trac.webkit.org/changeset/42618 and
1303               doesn't appear to have ever worked as the author intended.
1304         * bindings/v8/V8DOMWrapper.cpp:
1305         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
1306             - Use the new autogenerated macro to remove a large amount of
1307               feature-specific code.
1308         * dom/EventNames.cpp:
1309         (WebCore::EventNames::EventNames):
1310         * dom/EventNames.h:
1311         * dom/EventTarget.cpp:
1312         * dom/EventTarget.h:
1313         * dom/EventTargetFactory.in: Added.
1314             - Add a new "in" file that lists all the EventTargets.
1315         * dom/LocalMediaStream.cpp:
1316         (WebCore::LocalMediaStream::interfaceName):
1317         * dom/LocalMediaStream.h:
1318         * dom/MediaStream.cpp:
1319         (WebCore::MediaStream::interfaceName):
1320         * dom/MediaStream.h:
1321         * dom/MessagePort.cpp:
1322         (WebCore::MessagePort::interfaceName):
1323         * dom/MessagePort.h:
1324         * dom/Node.cpp:
1325         (WebCore::Node::toNode):
1326         (WebCore::Node::interfaceName):
1327         * dom/Node.h:
1328         * dom/make_event_factory.pl:
1329             - Generalize make_event_factory.pl to be able to generate
1330               interfaces for different namespaces.
1331         * fileapi/FileReader.cpp:
1332         (WebCore::FileReader::interfaceName):
1333         * fileapi/FileReader.h:
1334         * fileapi/FileWriter.cpp:
1335         (WebCore::FileWriter::interfaceName):
1336         * fileapi/FileWriter.h:
1337         * loader/appcache/DOMApplicationCache.cpp:
1338         (WebCore::DOMApplicationCache::interfaceName):
1339         * loader/appcache/DOMApplicationCache.h:
1340         * notifications/Notification.cpp:
1341         (WebCore::Notification::interfaceName):
1342         * notifications/Notification.h:
1343         (WebCore::Notification::scriptExecutionContext):
1344         * p2p/PeerConnection.cpp:
1345         (WebCore::PeerConnection::interfaceName):
1346         * p2p/PeerConnection.h:
1347         * page/DOMWindow.cpp:
1348         (WebCore::DOMWindow::interfaceName):
1349         (WebCore::DOMWindow::toDOMWindow):
1350         * page/DOMWindow.h:
1351         * page/EventSource.cpp:
1352         (WebCore::EventSource::interfaceName):
1353         * page/EventSource.h:
1354         * storage/IDBDatabase.cpp:
1355         (WebCore::IDBDatabase::interfaceName):
1356         * storage/IDBDatabase.h:
1357         * storage/IDBRequest.cpp:
1358         (WebCore::IDBRequest::interfaceName):
1359         * storage/IDBRequest.h:
1360         * storage/IDBTransaction.cpp:
1361         (WebCore::IDBTransaction::interfaceName):
1362         * storage/IDBTransaction.h:
1363         * storage/IDBVersionChangeRequest.cpp:
1364         (WebCore::IDBVersionChangeRequest::interfaceName):
1365         * storage/IDBVersionChangeRequest.h:
1366         * svg/SVGElementInstance.cpp:
1367         (WebCore::SVGElementInstance::interfaceName):
1368         * svg/SVGElementInstance.h:
1369         (WebCore::SVGElementInstance::toNode):
1370         * webaudio/AudioContext.cpp:
1371         (WebCore::AudioContext::interfaceName):
1372         (WebCore::AudioContext::scriptExecutionContext):
1373         * webaudio/AudioContext.h:
1374         * webaudio/JavaScriptAudioNode.cpp:
1375         (WebCore::JavaScriptAudioNode::interfaceName):
1376         * webaudio/JavaScriptAudioNode.h:
1377         * websockets/WebSocket.cpp:
1378         (WebCore::WebSocket::interfaceName):
1379         * websockets/WebSocket.h:
1380         * workers/DedicatedWorkerContext.cpp:
1381         (WebCore::DedicatedWorkerContext::interfaceName):
1382         * workers/DedicatedWorkerContext.h:
1383         * workers/DefaultSharedWorkerRepository.cpp:
1384         (WebCore::SharedWorkerConnectTask::performTask):
1385         * workers/SharedWorker.cpp:
1386         (WebCore::SharedWorker::interfaceName):
1387         * workers/SharedWorker.h:
1388         * workers/SharedWorkerContext.cpp:
1389         (WebCore::SharedWorkerContext::interfaceName):
1390         * workers/SharedWorkerContext.h:
1391         * workers/Worker.cpp:
1392         (WebCore::Worker::interfaceName):
1393         * workers/Worker.h:
1394         * xml/XMLHttpRequest.cpp:
1395         (WebCore::XMLHttpRequest::interfaceName):
1396         * xml/XMLHttpRequest.h:
1397         * xml/XMLHttpRequestUpload.cpp:
1398         (WebCore::XMLHttpRequestUpload::interfaceName):
1399         * xml/XMLHttpRequestUpload.h:
1400
1401 2011-10-25  Pavel Podivilov  <podivilov@chromium.org>
1402
1403         Fix several minor problems in idls.
1404         https://bugs.webkit.org/show_bug.cgi?id=70811
1405
1406         Reviewed by Adam Barth.
1407
1408         This patch does not have any effect on generated bindings.
1409
1410         * dom/DataTransferItems.idl:
1411         * page/History.idl:
1412         * storage/IDBIndex.idl:
1413         * xml/XMLHttpRequest.idl:
1414
1415 2011-10-25  Nate Chapin  <japhet@chromium.org>
1416
1417         Make DocumentThreadableLoader a CachedResourceClient.
1418         This will allow us to cache ThreadableLoaderClients as
1419         appropriate in a later patch.
1420         https://bugs.webkit.org/show_bug.cgi?id=61225
1421
1422         Reviewed by Antti Koivisto.
1423
1424         No new tests, no functionality change intended.
1425
1426         * WebCore.gypi:
1427         * loader/DocumentThreadableLoader.cpp:
1428         (WebCore::DocumentThreadableLoader::notifyFinished): CachedResourceClients don't send separate callbacks
1429             for didFail() and didFinishLoading(), so we need to differentiate here.
1430         (WebCore::DocumentThreadableLoader::loadRequest): Call CachedResourceLoader::requestRawResource()
1431             instead of ResourceLoadScheduler::scheduleSubresourceLoad().
1432         * loader/DocumentThreadableLoader.h:
1433         * loader/cache/CachedRawResource.cpp:
1434         (WebCore::CachedRawResource::data): Handle the complexity of some ThreadableLoaderClients setting
1435             DoNotBufferData in ResoureLoaderOptions. If the DataBufferingPolicy is BufferData, then the
1436             'data' input parameter will contain all data received so far, and we need to determine the
1437             incremental data to forward to the clients. If the policy is DoNotBufferData, 'data' is just
1438             the incremental data.
1439         * loader/cache/CachedRawResource.h:
1440         * loader/cache/CachedResource.cpp:
1441         * loader/cache/CachedResource.h:
1442         (WebCore::CachedResource::preloadResult):
1443         (WebCore::CachedResource::didSendData):
1444         (WebCore::CachedResource::didDownloadData):
1445         (WebCore::CachedResource::setLoadFinishTime):
1446         (WebCore::CachedResource::loadFinishTime):
1447         * loader/cache/CachedResourceClient.h: Add several new callbacks needed by DocumentThreadableLoader.
1448         * loader/cache/CachedResourceRequest.cpp:
1449         (WebCore::CachedResourceRequest::didReceiveResponse): CachedResource::setResponse() can now cancel
1450             the request, so protect appropriately.
1451         * loader/cache/CachedResourceRequest.h:
1452         * loader/chromium/CachedRawResourceChromium.cpp: Added (plumb didDownloadData() to DocumentThreadableLoader).
1453         * loader/chromium/CachedResourceRequestChromium.cpp: Added (plumb didDownloadData() to DocumentThreadableLoader).
1454         * loader/chromium/DocumentThreadableLoaderChromium.cpp:
1455         * platform/network/BlobResourceHandle.cpp:
1456         (WebCore::BlobResourceHandle::notifyResponse): Protect before setting response, since it might kill us.
1457
1458 2011-10-25  Pavel Podivilov  <podivilov@chromium.org>
1459
1460         Get rid of optional parameters in the middle in IDLs.
1461         https://bugs.webkit.org/show_bug.cgi?id=70816
1462
1463         Reviewed by Adam Barth.
1464
1465         Optional parameters in the middle are prohibited by WebIDL spec.
1466
1467         * bindings/scripts/CodeGeneratorJS.pm:
1468         (GenerateHeader):
1469         (GenerateImplementation):
1470         * bindings/scripts/CodeGeneratorV8.pm:
1471         (GenerateHeader):
1472         (GenerateArgumentsCountCheck):
1473         (GenerateImplementation):
1474         * html/canvas/CanvasRenderingContext2D.idl:
1475         * page/DOMWindow.idl:
1476
1477 2011-10-25  Chris Evans  <cevans@google.com>
1478
1479         Manage the CSS property array length correctly
1480         https://bugs.webkit.org/show_bug.cgi?id=70783
1481
1482         Reviewed by Adam Barth.
1483
1484         * css/CSSParser.cpp:
1485         (WebCore::CSSParser::addProperty): don't allow max length to get out of sync with the buffer.
1486
1487 2011-10-25  Tony Chang  <tony@chromium.org>
1488
1489         avoid unnecessary layouts of flex items during the flex pass
1490         https://bugs.webkit.org/show_bug.cgi?id=70557
1491
1492         Reviewed by Ojan Vafai.
1493
1494         If the preferred size of a flex item is provided, we don't need to
1495         layout the flex item when computing the preferred size.  This allows
1496         us to only call layout on each flex item once in the common case.
1497
1498         No new tests, covered by existing tests.
1499
1500         * rendering/RenderFlexibleBox.cpp:
1501         (WebCore::RenderFlexibleBox::flowAwareLogicalWidthLengthForChild):
1502         (WebCore::RenderFlexibleBox::preferredLogicalContentWidthForFlexItem):
1503         (WebCore::RenderFlexibleBox::computePreferredLogicalWidth):
1504         (WebCore::RenderFlexibleBox::layoutAndPlaceChildrenInlineDirection):
1505         * rendering/RenderFlexibleBox.h:
1506
1507 2011-10-25  Fady Samuel  <fsamuel@chromium.org>
1508
1509         Crash in WebCore::RenderTableSection::addChild due to assert failure
1510         https://bugs.webkit.org/show_bug.cgi?id=70678
1511
1512         Reviewed by David Hyatt.
1513
1514         Tests: fast/table/table-anonymous-cell-bug.html
1515                fast/table/table-anonymous-row-bug.html
1516                fast/table/table-anonymous-section-bug.html
1517
1518         If the child being added is not a Section/Row/Cell, and the previous sibling is not anonymous, 
1519         we need to create a new anonymous Section/Row/Cell respectively, instead of failing an
1520         assert.
1521
1522         * rendering/RenderTable.cpp:
1523         (WebCore::RenderTable::addChild):
1524         * rendering/RenderTableRow.cpp:
1525         (WebCore::RenderTableRow::addChild):
1526         * rendering/RenderTableSection.cpp:
1527         (WebCore::RenderTableSection::addChild):
1528
1529 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1530
1531         Add getOwnPropertySlot to MethodTable
1532         https://bugs.webkit.org/show_bug.cgi?id=69807
1533
1534         Reviewed by Oliver Hunt.
1535
1536         No new tests.
1537
1538         * bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so 
1539         subclasses can reference it in their MethodTables.
1540
1541 2011-10-25  Simon Fraser  <simon.fraser@apple.com>
1542
1543         REGRESSION (r88580): Cursor fails to change to pointer on embedded Google maps popups
1544         https://bugs.webkit.org/show_bug.cgi?id=62797
1545
1546         Reviewed by Chris Marrin.
1547         
1548         When hit testing through transformed layers, RenderLayer would simply use
1549         the composited bounds of the layer as the localHitTestRect for hit testing sublayers.
1550         However, this broke hit testing on pages that have a composited, non-transformed layer
1551         which falls outside the bounds of its parent, composited-transformed layer, like Google
1552         Maps.
1553         
1554         Fix by mapping the hitTestRect through transforms. However this is tricky, because
1555         mapping a rect into the coordinate system of a layer can result in invalid rectangles
1556         when point projection results in a negative w component. Fix TransformationMatrix::projectPoint()
1557         to detect this case and replace X and Y with large values, and add boundsOfProjectedQuad(), which 
1558         maps rectangles with possibly-infinite location or bounds into rects which are representable
1559         in an IntRect.
1560
1561         Tests: transforms/3d/hit-testing/composited-hit-test.html
1562                transforms/3d/hit-testing/rotated-hit-test-with-child.html
1563                transforms/3d/hit-testing/rotated-hit-test2.html
1564
1565         * platform/graphics/transforms/TransformationMatrix.cpp:
1566         (WebCore::TransformationMatrix::projectPoint):
1567         (WebCore::TransformationMatrix::projectQuad):
1568         (WebCore::clampEdgeValue):
1569         (WebCore::TransformationMatrix::boundsOfProjectedQuad):
1570         * platform/graphics/transforms/TransformationMatrix.h:
1571         * rendering/HitTestingTransformState.cpp:
1572         (WebCore::HitTestingTransformState::boundsOfMappedQuad):
1573         * rendering/HitTestingTransformState.h:
1574         * rendering/RenderLayer.cpp:
1575         (WebCore::RenderLayer::hitTestLayer):
1576
1577 2011-10-25  Adrienne Walker  <enne@google.com>
1578
1579         [chromium] Batch up texture uploads so that they can be updated incrementally
1580         https://bugs.webkit.org/show_bug.cgi?id=70454
1581
1582         Reviewed by James Robinson.
1583
1584         Because texture uploads can sometimes take more than a frame to
1585         complete, collect all the uploads that need to occur in a
1586         CCTextureUpdater so that we can easily incrementally upload some of
1587         them, interleaving input and drawing so that the compositor thread
1588         continues to appear responsive during a commit.
1589
1590         This change doesn't actually interleave the commits, it just pushes
1591         the infrastructure for doing so up to the CCProxy level so that a
1592         future scheduler can make this decision.
1593
1594         VideoLayerChromium is the only layer type to not use this system. It
1595         needs to be converted to use a texture updater first and it is less of
1596         a priority than the tiled layers.
1597
1598         * WebCore.gypi:
1599         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1600         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
1601         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1602         * platform/graphics/chromium/LayerChromium.h:
1603         (WebCore::LayerChromium::updateCompositorResources):
1604         * platform/graphics/chromium/TiledLayerChromium.cpp:
1605         (WebCore::TiledLayerChromium::updateCompositorResources):
1606         * platform/graphics/chromium/TiledLayerChromium.h:
1607         * platform/graphics/chromium/VideoLayerChromium.cpp:
1608         (WebCore::VideoLayerChromium::updateCompositorResources):
1609         * platform/graphics/chromium/VideoLayerChromium.h:
1610         * platform/graphics/chromium/WebGLLayerChromium.cpp:
1611         (WebCore::WebGLLayerChromium::updateCompositorResources):
1612         * platform/graphics/chromium/WebGLLayerChromium.h:
1613         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1614         (WebCore::CCLayerTreeHost::beginCommitOnImplThread):
1615         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1616         (WebCore::CCLayerTreeHost::updateCompositorResources):
1617         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1618         * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp:
1619         (WebCore::CCSingleThreadProxy::setNeedsCommit):
1620         (WebCore::CCSingleThreadProxy::doCommit):
1621         (WebCore::CCSingleThreadProxy::commitIfNeeded):
1622         * platform/graphics/chromium/cc/CCSingleThreadProxy.h:
1623         * platform/graphics/chromium/cc/CCTextureUpdater.cpp: Added.
1624         (WebCore::CCTextureUpdater::CCTextureUpdater):
1625         (WebCore::CCTextureUpdater::~CCTextureUpdater):
1626         (WebCore::CCTextureUpdater::append):
1627         (WebCore::CCTextureUpdater::update):
1628         (WebCore::CCTextureUpdater::clear):
1629         * platform/graphics/chromium/cc/CCTextureUpdater.h: Added.
1630         (WebCore::CCTextureUpdater::allocator):
1631         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1632         (WebCore::CCThreadProxy::commitOnImplThread):
1633
1634 2011-10-24  Jer Noble  <jer.noble@apple.com>
1635
1636         compositing/video tests time out on Lion
1637         https://bugs.webkit.org/show_bug.cgi?id=70448
1638
1639         Reviewed by Simon Fraser.
1640
1641         AVFoundation will not begin loading or decoding media until a consumer for that media is present.
1642         For video-only media, this means that an AVPlayerLayer must be created and attached to the 
1643         AVPlayer before the load state will ever reach "canPlayThrough". Once the metadata for a media
1644         is loaded, create a AVPlayerLayer if the media has a video track.
1645
1646         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1647         (WebCore::MediaPlayerPrivateAVFoundation::updateStates):
1648
1649 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1650
1651         Merge endOfLine with logicalEndOfLine and startOfLine with logicalStartOfLine
1652         https://bugs.webkit.org/show_bug.cgi?id=70755
1653
1654         Reviewed by Chang Shu.
1655
1656         Merged endOfLine with logicalEndOfLine, and startOfLine with logicalStartOfLine
1657         to reduce the code duplication.
1658
1659         * editing/visible_units.cpp:
1660         (WebCore::startPositionForLine):
1661         (WebCore::startOfLine):
1662         (WebCore::logicalStartOfLine):
1663         (WebCore::endPositionForLine):
1664         (WebCore::inSameLogicalLine):
1665         (WebCore::endOfLine):
1666         (WebCore::logicalEndOfLine):
1667         * editing/visible_units.h:
1668
1669 2011-10-25  Arko Saha  <arko@motorola.com>
1670
1671         Microdata: itemtype attribute should be space-separated list to allow multiple types.
1672         https://bugs.webkit.org/show_bug.cgi?id=70501
1673
1674         Reviewed by Ryosuke Niwa.
1675
1676         Tests: fast/dom/MicroData/getitems-multiple-itemtypes.html
1677                fast/dom/MicroData/itemtype-add-remove-tokens.html
1678                fast/dom/MicroData/itemtype-attribute-test.html
1679
1680         * dom/MicroDataItemList.cpp:
1681         (WebCore::MicroDataItemList::nodeMatches):
1682         * html/DOMSettableTokenList.h:
1683         (WebCore::DOMSettableTokenList::tokens):
1684         * html/HTMLElement.cpp:
1685         (WebCore::HTMLElement::parseMappedAttribute):
1686         (WebCore::HTMLElement::setItemValueText):
1687         (WebCore::HTMLElement::itemType):
1688         (WebCore::HTMLElement::setItemType):
1689         * html/HTMLElement.h:
1690         * html/HTMLElement.idl:
1691
1692 2011-10-25  Dan Bernstein  <mitz@apple.com>
1693
1694         <rdar://problem/10337033> DOMRangeOfString:relativeTo:options has problems with -webkit-user-select: none
1695
1696         Reviewed by Adam Roben.
1697
1698         Test: added to TestWebKitAPI/Tests/mac/DOMRangeOfString.mm
1699
1700         * page/Page.cpp:
1701         (WebCore::Page::rangeOfString): This function was incorrectly adding the StartInSelection option to
1702         the initial search.
1703
1704 2011-10-25  Yury Semikhatsky  <yurys@chromium.org>
1705
1706         Web Inspector: redesign workers sidebar pane
1707         https://bugs.webkit.org/show_bug.cgi?id=70815
1708
1709         Changed workers sidebar pane design.
1710
1711         Now there is a link to worker inspector for each dedicated worker created
1712         by inspected page. The sidebar display a link to a page with list of all
1713         shared workers if there one is supported by the WebKit port. Also there
1714         is a checkbox that allows pause all new workers on first statements.
1715
1716         Reviewed by Pavel Feldman.
1717
1718         * inspector/front-end/Settings.js:
1719         * inspector/front-end/StylesSidebarPane.js:
1720         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
1721         * inspector/front-end/WorkerManager.js:
1722         (WebInspector.WorkerManager.prototype.openWorkerInspector):
1723         (WebInspector.WorkerManager.prototype._workerInspectorClosing):
1724         * inspector/front-end/WorkersSidebarPane.js:
1725         (WebInspector.WorkerListSidebarPane):
1726         (WebInspector.WorkerListSidebarPane.prototype._workerRemoved):
1727         (WebInspector.WorkerListSidebarPane.prototype._workersCleared):
1728         (WebInspector.WorkerListSidebarPane.prototype._addWorker):
1729         (WebInspector.WorkerListSidebarPane.prototype._workerItemClicked):
1730         (WebInspector.WorkerListSidebarPane.prototype._autoattachToWorkersClicked):
1731         (WebInspector.WorkerListSidebarPane.prototype._createSharedWorkersLink.link.onclick):
1732         (WebInspector.WorkerListSidebarPane.prototype._createSharedWorkersLink):
1733         * inspector/front-end/elementsPanel.css:
1734         * inspector/front-end/inspectorCommon.css:
1735         (.sidebar-separator):
1736         (.sidebar-label):
1737         * inspector/front-end/scriptsPanel.css:
1738         (.dedicated-worker-item):
1739         (#shared-workers-list):
1740         (#pause-workers-checkbox > input):
1741
1742 2011-10-25  Nico Weber  <thakis@chromium.org>
1743
1744         [chromium/mac] Fix an ODR violation.
1745         https://bugs.webkit.org/show_bug.cgi?id=70753
1746
1747         Reviewed by Anders Carlsson.
1748
1749         Both ScrollAnimatorNone and ScrollAnimatorMac define ScrollAnimator::create() on OS X.
1750         Remove the unused one.
1751
1752         * WebCore.gyp/WebCore.gyp:
1753
1754 2011-10-25  Vsevolod Vlasov  <vsevik@chromium.org>
1755
1756         Web Inspector: Debugger fails when there is an invalid watch expression.
1757         https://bugs.webkit.org/show_bug.cgi?id=70718
1758
1759         Reviewed by Pavel Feldman.
1760
1761         Test: inspector/debugger/watch-expressions-panel-switch.html
1762
1763         * inspector/front-end/ScriptsPanel.js:
1764         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
1765
1766 2011-10-24  Pavel Podivilov  <podivilov@chromium.org>
1767
1768         Web Inspector: fix empty line handling in source maps.
1769         https://bugs.webkit.org/show_bug.cgi?id=70726
1770
1771         Reviewed by Yury Semikhatsky.
1772
1773         * inspector/front-end/CompilerSourceMapping.js:
1774         (WebInspector.ClosureCompilerSourceMapping.prototype._parseMappings):
1775
1776 2011-10-25  Justin Schuh  <jschuh@chromium.org>
1777
1778         Check for empty string in parseArcFlag
1779         https://bugs.webkit.org/show_bug.cgi?id=70763
1780
1781         Reviewed by Dirk Schulze.
1782
1783         Test: svg/path-invalid.html
1784
1785         * svg/SVGParserUtilities.cpp:
1786         (WebCore::parseArcFlag):
1787
1788 2011-10-24  Pavel Podivilov  <podivilov@chromium.org>
1789
1790         Web Inspector: keep old source mapping when new one could not be loaded.
1791         https://bugs.webkit.org/show_bug.cgi?id=70729
1792
1793         Reviewed by Yury Semikhatsky.
1794
1795         * inspector/front-end/RawSourceCode.js:
1796         (WebInspector.RawSourceCode.prototype._updateSourceMapping.didCreateSourceMapping):
1797         (WebInspector.RawSourceCode.prototype._updateSourceMapping):
1798         (WebInspector.RawSourceCode.prototype._createSourceMapping.didLoadSourceMapping):
1799
1800 2011-10-25  Sachin Puranik  <sachin.puranik@motorola.com>
1801
1802         Double number step=.5 should be considered valid in <input type="number" step=".5">
1803         https://bugs.webkit.org/show_bug.cgi?id=70320
1804
1805         Reviewed by Kent Tamura.
1806
1807         Test: fast/forms/input-step-as-double.html
1808
1809         * html/parser/HTMLParserIdioms.cpp:
1810         (WebCore::parseToDoubleForNumberType): Changed the function to consider
1811         step as valid even if it starts with "."
1812
1813 2011-10-25  Alexander Pavlov  <apavlov@chromium.org>
1814
1815         Web Inspector: [Chromium] Audits panel context menu for links not working properly
1816         https://bugs.webkit.org/show_bug.cgi?id=70813
1817
1818         Reviewed by Pavel Feldman.
1819
1820         * inspector/front-end/AuditResultView.js:
1821         (WebInspector.AuditResultView):
1822         (WebInspector.AuditResultView.prototype._contextMenuEventFired):
1823
1824 2011-10-25  Vsevolod Vlasov  <vsevik@chromium.org>
1825
1826         Web Inspector: Resources panel: display the current search match index in the toolbar.
1827         https://bugs.webkit.org/show_bug.cgi?id=66050
1828
1829         Reviewed by Pavel Feldman.
1830
1831         Test: http/tests/inspector/search/resources-search-match-index.html
1832
1833         * inspector/front-end/ResourcesPanel.js:
1834         (WebInspector.ResourcesPanel.prototype.performSearch.callback):
1835         (WebInspector.ResourcesPanel.prototype.performSearch):
1836         (WebInspector.ResourcesPanel.prototype._showSearchResult.callback):
1837         (WebInspector.ResourcesPanel.prototype._showSearchResult):
1838         (WebInspector.BaseStorageTreeElement.prototype.get searchMatchesCount):
1839         (WebInspector.ResourcesSearchController):
1840         (WebInspector.ResourcesSearchController.prototype.nextSearchResult):
1841         (WebInspector.ResourcesSearchController.prototype.previousSearchResult):
1842         (WebInspector.ResourcesSearchController.prototype._searchResult):
1843         (WebInspector.SearchResultsTreeElementsTraverser.prototype.next):
1844         (WebInspector.SearchResultsTreeElementsTraverser.prototype.previous):
1845         (WebInspector.SearchResultsTreeElementsTraverser.prototype.matchIndex):
1846         (WebInspector.SearchResultsTreeElementsTraverser.prototype._elementSearchMatchesCount):
1847         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traverseNext):
1848         (WebInspector.SearchResultsTreeElementsTraverser.prototype._traversePrevious):
1849         * inspector/front-end/treeoutline.js:
1850
1851 2011-10-25  Andrey Kosyakov  <caseq@chromium.org>
1852
1853         Web Inspector: JS exception in JavaScriptSourceFrame.onShowPopover/showObjectPopover()
1854         https://bugs.webkit.org/show_bug.cgi?id=70812
1855
1856         Reviewed by Pavel Feldman.
1857
1858         Check if highlighted element is present while displaying object popover.
1859
1860         * inspector/front-end/JavaScriptSourceFrame.js:
1861         (WebInspector.JavaScriptSourceFrame.prototype.onShowPopover.showObjectPopover):
1862         (WebInspector.JavaScriptSourceFrame.prototype.onShowPopover):
1863
1864 2011-10-21  Nat Duca  <nduca@chromium.org>
1865
1866         [chromium] Route Console::time and Console::timeEnd to trace_event
1867         https://bugs.webkit.org/show_bug.cgi?id=70620
1868
1869         Reviewed by Pavel Feldman.
1870
1871         * page/Console.cpp:
1872         (WebCore::Console::time):
1873         (WebCore::Console::timeEnd):
1874
1875 2011-10-21  Andrey Kosyakov  <caseq@chromium.org>
1876
1877         Web Inspector: [Extensions API] allow extensions to specify script to be injected on reload
1878         https://bugs.webkit.org/show_bug.cgi?id=70600
1879
1880         Reviewed by Pavel Feldman.
1881
1882         - change webInspector.inspectedPage.reload() to accept multiple options in an object
1883         - add an ability to inject a script upon a page reload
1884         - return script id in addScriptToEvaluateOnLoad()
1885         - provide removeScriptToEvaluateOnLoad()
1886         - store scripts to evaluate on load in inspector state cookie
1887
1888         Test: inspector/extensions/extensions-reload.html
1889
1890         * inspector/Inspector.json:
1891         * inspector/InspectorPageAgent.cpp:
1892         (WebCore::InspectorPageAgent::InspectorPageAgent):
1893         (WebCore::InspectorPageAgent::restore):
1894         (WebCore::InspectorPageAgent::addScriptToEvaluateOnLoad):
1895         (WebCore::InspectorPageAgent::removeScriptToEvaluateOnLoad):
1896         (WebCore::InspectorPageAgent::removeAllScriptsToEvaluateOnLoad):
1897         (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
1898         (WebCore::InspectorPageAgent::frameNavigated):
1899         * inspector/InspectorPageAgent.h:
1900         * inspector/front-end/ExtensionAPI.js:
1901         (injectedExtensionAPI.InspectedWindow.prototype.reload):
1902         * inspector/front-end/ExtensionServer.js:
1903         (WebInspector.ExtensionServer.prototype._onReload):
1904         * inspector/front-end/WorkersSidebarPane.js:
1905         (WebInspector.WorkersSidebarPane.prototype.setInstrumentation.callback):
1906         (WebInspector.WorkersSidebarPane.prototype.setInstrumentation):
1907
1908 2011-10-24  Pavel Feldman  <pfeldman@google.com>
1909
1910         Web Inspector: print expired message count before remaining messages.
1911         https://bugs.webkit.org/show_bug.cgi?id=70736
1912
1913         Reviewed by Yury Semikhatsky.
1914
1915         * inspector/Inspector-0.1.json:
1916         * inspector/Inspector.json:
1917         * inspector/InspectorConsoleAgent.cpp:
1918         (WebCore::InspectorConsoleAgent::enable):
1919         (WebCore::InspectorConsoleAgent::restore):
1920         * inspector/InspectorConsoleAgent.h:
1921         * inspector/front-end/ConsoleModel.js:
1922
1923 2011-10-25  Sheriff Bot  <webkit.review.bot@gmail.com>
1924
1925         Unreviewed, rolling out r98309.
1926         http://trac.webkit.org/changeset/98309
1927         https://bugs.webkit.org/show_bug.cgi?id=70801
1928
1929         Test fails on mac (Requested by benwells on #webkit).
1930
1931         * html/canvas/CanvasRenderingContext2D.cpp:
1932         (WebCore::CanvasRenderingContext2D::fill):
1933         (WebCore::CanvasRenderingContext2D::fillRect):
1934         (WebCore::CanvasRenderingContext2D::drawImage):
1935         (WebCore::CanvasRenderingContext2D::shouldDisplayTransparencyElsewhere):
1936         (WebCore::CanvasRenderingContext2D::fillAndDisplayTransparencyElsewhere):
1937         * html/canvas/CanvasRenderingContext2D.h:
1938
1939 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1940
1941         Chromium build fix: #include window.h for HANDLE.
1942
1943         * platform/graphics/opentype/OpenTypeUtilities.h:
1944
1945 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1946
1947         Include ThreadSafeRefCounted.h since the class declared in this header file
1948         inherits from ThreadSafeRefCounted.
1949
1950         * storage/IDBIndexBackendInterface.h:
1951
1952 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
1953
1954         Fix a typo.
1955
1956         * bindings/v8/JavaScriptCallFrame.h:
1957
1958 2011-10-24  Geoffrey Garen  <ggaren@apple.com>
1959
1960         Removed SharedUChar and tightened language around its previous uses
1961         https://bugs.webkit.org/show_bug.cgi?id=70698
1962
1963         Reviewed by David Levin.
1964
1965         - Renamed "threadSafeCopy" and "crossThreadCopy" to "isolatedCopy" because
1966         the former names gave the dangerous misimpression that the resulting object
1967         was thread-safe, which is not true.
1968         
1969         - Updated a bunch of files for header dependency changes, now that
1970         CrossThreadRefCounted is gone.
1971
1972         * ForwardingHeaders/wtf/CrossThreadRefCounted.h: Removed.
1973         * WebCore.exp.in:
1974         * bindings/js/ScriptHeapSnapshot.h:
1975         * bindings/v8/SerializedScriptValue.cpp:
1976         (WebCore::SerializedScriptValue::release):
1977         (WebCore::SerializedScriptValue::SerializedScriptValue):
1978         * css/CSSPropertySourceData.h:
1979         * css/CSSValue.h:
1980         * css/StyleMedia.h:
1981         * css/WebKitCSSMatrix.h:
1982         * dom/QualifiedName.h:
1983         * fileapi/LocalFileSystem.h:
1984         (WebCore::LocalFileSystem::SystemBasePath::operator String):
1985         * history/CachedFrame.h:
1986         * history/CachedPage.h:
1987         * history/HistoryItem.h:
1988         * html/canvas/CanvasStyle.h:
1989         * inspector/InspectorResourceAgent.h:
1990         * loader/FormState.h:
1991         * loader/TextResourceDecoder.h:
1992         * loader/WorkerThreadableLoader.cpp:
1993         (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
1994         * loader/icon/IconDatabase.cpp:
1995         (WebCore::IconDatabase::open):
1996         (WebCore::IconDatabase::synchronousIconForPageURL):
1997         (WebCore::IconDatabase::synchronousIconURLForPageURL):
1998         (WebCore::IconDatabase::retainIconForPageURL):
1999         (WebCore::IconDatabase::releaseIconForPageURL):
2000         (WebCore::IconDatabase::setIconDataForIconURL):
2001         (WebCore::IconDatabase::setIconURLForPageURL):
2002         (WebCore::IconDatabase::databasePath):
2003         (WebCore::IconDatabase::defaultDatabaseFilename):
2004         (WebCore::ImportedIconURLForPageURLWorkItem::ImportedIconURLForPageURLWorkItem):
2005         (WebCore::ImportedIconDataForPageURLWorkItem::ImportedIconDataForPageURLWorkItem):
2006         * page/ContentSecurityPolicy.h:
2007         * page/Coordinates.h:
2008         (WebCore::Coordinates::isolatedCopy):
2009         * page/Geoposition.h:
2010         (WebCore::Geoposition::isolatedCopy):
2011         * page/SecurityOrigin.cpp:
2012         (WebCore::SecurityOrigin::SecurityOrigin):
2013         (WebCore::SecurityOrigin::isolatedCopy):
2014         * page/SecurityOrigin.h:
2015         * page/animation/AnimationBase.h:
2016         * platform/CrossThreadCopier.cpp:
2017         (WebCore::::copy):
2018         * platform/FileChooser.h:
2019         * platform/KURL.cpp:
2020         (WebCore::KURL::copy):
2021         * platform/cf/SchedulePair.h:
2022         * platform/network/BlobData.cpp:
2023         (WebCore::BlobDataItem::detachFromCurrentThread):
2024         (WebCore::BlobData::detachFromCurrentThread):
2025         * platform/network/HTTPHeaderMap.cpp:
2026         (WebCore::HTTPHeaderMap::copyData):
2027         * platform/network/MIMEHeader.h:
2028         * platform/network/ResourceErrorBase.cpp:
2029         (WebCore::ResourceErrorBase::copy):
2030         * platform/network/ResourceLoadInfo.h:
2031         * platform/network/ResourceRequestBase.cpp:
2032         (WebCore::ResourceRequestBase::copyData):
2033         * platform/network/ResourceResponseBase.cpp:
2034         (WebCore::ResourceResponseBase::copyData):
2035         * platform/sql/SQLValue.cpp:
2036         (WebCore::SQLValue::SQLValue):
2037         (WebCore::SQLValue::string):
2038         * rendering/style/QuotesData.h:
2039         * storage/AbstractDatabase.cpp:
2040         (WebCore::updateGuidVersionMap):
2041         (WebCore::AbstractDatabase::AbstractDatabase):
2042         (WebCore::AbstractDatabase::performOpenAndVerify):
2043         (WebCore::AbstractDatabase::stringIdentifier):
2044         (WebCore::AbstractDatabase::displayName):
2045         (WebCore::AbstractDatabase::fileName):
2046         (WebCore::AbstractDatabase::setExpectedVersion):
2047         (WebCore::AbstractDatabase::getCachedVersion):
2048         * storage/ChangeVersionWrapper.cpp:
2049         (WebCore::ChangeVersionWrapper::ChangeVersionWrapper):
2050         * storage/Database.cpp:
2051         (WebCore::Database::Database):
2052         (WebCore::Database::tableNames):
2053         * storage/DatabaseDetails.h:
2054         * storage/DatabaseTracker.cpp:
2055         (WebCore::DatabaseTracker::setDatabaseDirectoryPath):
2056         (WebCore::DatabaseTracker::databaseDirectoryPath):
2057         (WebCore::DatabaseTracker::trackerDatabasePath):
2058         (WebCore::DatabaseTracker::canEstablishDatabase):
2059         (WebCore::DatabaseTracker::originPath):
2060         (WebCore::DatabaseTracker::fullPathForDatabase):
2061         (WebCore::DatabaseTracker::populateOrigins):
2062         (WebCore::DatabaseTracker::databaseNamesForOrigin):
2063         (WebCore::DatabaseTracker::addOpenDatabase):
2064         (WebCore::DatabaseTracker::setQuota):
2065         (WebCore::DatabaseTracker::recordCreatingDatabase):
2066         (WebCore::DatabaseTracker::recordDeletingDatabase):
2067         (WebCore::DatabaseTracker::recordDeletingOrigin):
2068         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged):
2069         * storage/OriginQuotaManager.cpp:
2070         (WebCore::OriginQuotaManager::trackOrigin):
2071         (WebCore::OriginQuotaManager::addDatabase):
2072         * storage/SQLError.h:
2073         (WebCore::SQLError::message):
2074         (WebCore::SQLError::SQLError):
2075         * storage/SQLResultSetRowList.h:
2076         * storage/SQLStatement.cpp:
2077         (WebCore::SQLStatement::SQLStatement):
2078         * storage/StorageAreaSync.cpp:
2079         (WebCore::StorageAreaSync::StorageAreaSync):
2080         (WebCore::StorageAreaSync::syncTimerFired):
2081         * storage/StorageAreaSync.h:
2082         * storage/StorageMap.cpp:
2083         (WebCore::StorageMap::importItem):
2084         * storage/StorageNamespaceImpl.cpp:
2085         (WebCore::StorageNamespaceImpl::StorageNamespaceImpl):
2086         * storage/StorageSyncManager.cpp:
2087         (WebCore::StorageSyncManager::StorageSyncManager):
2088         * storage/StorageTracker.cpp:
2089         (WebCore::StorageTracker::StorageTracker):
2090         (WebCore::StorageTracker::syncImportOriginIdentifiers):
2091         (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase):
2092         (WebCore::StorageTracker::setOriginDetails):
2093         (WebCore::StorageTracker::willDeleteAllOrigins):
2094         * svg/SVGPathSeg.h:
2095         * workers/DefaultSharedWorkerRepository.cpp:
2096         (WebCore::SharedWorkerProxy::url):
2097         (WebCore::SharedWorkerProxy::name):
2098         (WebCore::SharedWorkerProxy::SharedWorkerProxy):
2099         (WebCore::DefaultSharedWorkerRepository::getProxy):
2100         * workers/SharedWorkerThread.cpp:
2101         (WebCore::SharedWorkerThread::SharedWorkerThread):
2102         * workers/WorkerMessagingProxy.cpp:
2103         (WebCore::WorkerExceptionTask::WorkerExceptionTask):
2104         (WebCore::PostMessageToPageInspectorTask::PostMessageToPageInspectorTask):
2105         * workers/WorkerRunLoop.cpp:
2106         (WebCore::WorkerRunLoop::postTaskForMode):
2107         (WebCore::WorkerRunLoop::Task::Task):
2108         * workers/WorkerThread.cpp:
2109         (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
2110
2111 2011-10-24  Adam Barth  <abarth@webkit.org>
2112
2113         Remove empty directory.
2114
2115         * p2p: Removed.
2116
2117 2011-10-24  Shawn Singh  <shawnsingh@chromium.org>
2118
2119         [chromium] Refactor painting/updating/drawing code.
2120         https://bugs.webkit.org/show_bug.cgi?id=70057
2121
2122         Reviewed by James Robinson.
2123
2124         This refactoring separates the "early exits" from the actual loop
2125         that draws layers. As part of this, it was also appropriate to
2126         clean up the way that masks and replicas are dealt with when
2127         painting and updating. The purpose of all this is to make things
2128         easier to test, and for a scissoring optimization that needs to
2129         know exatly what gets drawn. Existing layout tests were able to
2130         verify the refactoring did not change behavior.
2131
2132         * platform/graphics/chromium/LayerRendererChromium.cpp:
2133         (WebCore::LayerRendererChromium::drawLayersOntoRenderSurfaces):
2134         (WebCore::LayerRendererChromium::drawLayersInternal):
2135         (WebCore::LayerRendererChromium::drawLayer):
2136         * platform/graphics/chromium/LayerRendererChromium.h:
2137         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2138         (WebCore::CCLayerTreeHost::paintMaskAndReplicaForRenderSurface):
2139         (WebCore::CCLayerTreeHost::paintLayerContents):
2140         (WebCore::CCLayerTreeHost::updateCompositorResources):
2141         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
2142         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
2143         (WebCore::layerShouldBeAppended):
2144         (WebCore::calculateDrawTransformsAndVisibilityInternal):
2145         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
2146         (WebCore::CCLayerTreeHostCommon::calculateVisibleLayerRect):
2147
2148 2011-10-24  Luke Macpherson   <macpherson@chromium.org>
2149
2150         REGRESSION(80893): HTML5 spec takes 2s longer to load due to time spent in CSSStyleSelector
2151         https://bugs.webkit.org/show_bug.cgi?id=68944
2152
2153         Reviewed by Antti Koivisto.
2154
2155         No new tests / Covered by existing tests.
2156
2157         Removes all virtual dispatch from CSSStyleApplyProperty by converting to use static function pointers for dispatch.
2158         Uses class templates instead of function templates to allow default parameters and also to share parameter declarations across static functions.
2159         All constructor parameters become template parameters. This improves the level of compiler optimization that can be achieved.
2160         Overall this achieved a ~2% overall speedup on run-safari PerformanceTests/Parser/html5-full-render.html,
2161         and profiling showed a reduction in the time spent inside CSSStyleSelector::applyProperty().
2162
2163         * css/CSSStyleApplyProperty.cpp:
2164         (WebCore::ApplyPropertyExpanding::applyInheritValue):
2165         (WebCore::ApplyPropertyExpanding::applyInitialValue):
2166         (WebCore::ApplyPropertyExpanding::applyValue):
2167         (WebCore::ApplyPropertyExpanding::createHandler):
2168         (WebCore::ApplyPropertyDefaultBase::setValue):
2169         (WebCore::ApplyPropertyDefaultBase::value):
2170         (WebCore::ApplyPropertyDefaultBase::initial):
2171         (WebCore::ApplyPropertyDefaultBase::applyInheritValue):
2172         (WebCore::ApplyPropertyDefaultBase::applyInitialValue):
2173         (WebCore::ApplyPropertyDefaultBase::applyValue):
2174         (WebCore::ApplyPropertyDefaultBase::createHandler):
2175         (WebCore::ApplyPropertyDefault::setValue):
2176         (WebCore::ApplyPropertyDefault::applyValue):
2177         (WebCore::ApplyPropertyDefault::createHandler):
2178         (WebCore::ApplyPropertyStyleImage::applyValue):
2179         (WebCore::ApplyPropertyStyleImage::createHandler):
2180         (WebCore::ApplyPropertyAuto::setValue):
2181         (WebCore::ApplyPropertyAuto::value):
2182         (WebCore::ApplyPropertyAuto::hasAuto):
2183         (WebCore::ApplyPropertyAuto::setAuto):
2184         (WebCore::ApplyPropertyAuto::applyInheritValue):
2185         (WebCore::ApplyPropertyAuto::applyInitialValue):
2186         (WebCore::ApplyPropertyAuto::applyValue):
2187         (WebCore::ApplyPropertyAuto::createHandler):
2188         (WebCore::defaultInitialColor):
2189         (WebCore::ApplyPropertyColor::applyInheritValue):
2190         (WebCore::ApplyPropertyColor::applyInitialValue):
2191         (WebCore::ApplyPropertyColor::applyValue):
2192         (WebCore::ApplyPropertyColor::createHandler):
2193         (WebCore::ApplyPropertyDirection::applyValue):
2194         (WebCore::ApplyPropertyDirection::createHandler):
2195         (WebCore::ApplyPropertyLength::setValue):
2196         (WebCore::ApplyPropertyLength::applyValue):
2197         (WebCore::ApplyPropertyLength::createHandler):
2198         (WebCore::ApplyPropertyString::setValue):
2199         (WebCore::ApplyPropertyString::applyValue):
2200         (WebCore::ApplyPropertyString::createHandler):
2201         (WebCore::ApplyPropertyBorderRadius::setValue):
2202         (WebCore::ApplyPropertyBorderRadius::applyValue):
2203         (WebCore::ApplyPropertyBorderRadius::createHandler):
2204         (WebCore::ApplyPropertyFillLayer::applyInheritValue):
2205         (WebCore::ApplyPropertyFillLayer::applyInitialValue):
2206         (WebCore::ApplyPropertyFillLayer::applyValue):
2207         (WebCore::ApplyPropertyFillLayer::createHandler):
2208         (WebCore::ApplyPropertyComputeLength::setValue):
2209         (WebCore::ApplyPropertyComputeLength::applyValue):
2210         (WebCore::ApplyPropertyComputeLength::createHandler):
2211         (WebCore::ApplyPropertyFont::applyInheritValue):
2212         (WebCore::ApplyPropertyFont::applyInitialValue):
2213         (WebCore::ApplyPropertyFont::applyValue):
2214         (WebCore::ApplyPropertyFont::createHandler):
2215         (WebCore::ApplyPropertyFontWeight::applyValue):
2216         (WebCore::ApplyPropertyFontWeight::createHandler):
2217         (WebCore::ApplyPropertyCounter::emptyFunction):
2218         (WebCore::ApplyPropertyCounter::applyValue):
2219         (WebCore::ApplyPropertyCounter::createHandler):
2220         (WebCore::ApplyPropertyCursor::applyInheritValue):
2221         (WebCore::ApplyPropertyCursor::applyInitialValue):
2222         (WebCore::ApplyPropertyCursor::applyValue):
2223         (WebCore::ApplyPropertyCursor::createHandler):
2224         (WebCore::ApplyPropertyTextEmphasisStyle::applyInheritValue):
2225         (WebCore::ApplyPropertyTextEmphasisStyle::applyInitialValue):
2226         (WebCore::ApplyPropertyTextEmphasisStyle::applyValue):
2227         (WebCore::ApplyPropertyTextEmphasisStyle::createHandler):
2228         (WebCore::ApplyPropertyAnimation::setValue):
2229         (WebCore::ApplyPropertyAnimation::value):
2230         (WebCore::ApplyPropertyAnimation::test):
2231         (WebCore::ApplyPropertyAnimation::clear):
2232         (WebCore::ApplyPropertyAnimation::initial):
2233         (WebCore::ApplyPropertyAnimation::map):
2234         (WebCore::ApplyPropertyAnimation::accessAnimations):
2235         (WebCore::ApplyPropertyAnimation::animations):
2236         (WebCore::ApplyPropertyAnimation::applyInheritValue):
2237         (WebCore::ApplyPropertyAnimation::applyInitialValue):
2238         (WebCore::ApplyPropertyAnimation::applyValue):
2239         (WebCore::ApplyPropertyAnimation::createHandler):
2240         (WebCore::ApplyPropertyOutlineStyle::applyInheritValue):
2241         (WebCore::ApplyPropertyOutlineStyle::applyInitialValue):
2242         (WebCore::ApplyPropertyOutlineStyle::applyValue):
2243         (WebCore::ApplyPropertyOutlineStyle::createHandler):
2244         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2245         * css/CSSStyleApplyProperty.h:
2246         (WebCore::PropertyHandler::PropertyHandler):
2247         (WebCore::PropertyHandler::applyInheritValue):
2248         (WebCore::PropertyHandler::applyInitialValue):
2249         (WebCore::PropertyHandler::applyValue):
2250         (WebCore::PropertyHandler::isValid):
2251         (WebCore::PropertyHandler::inheritFunction):
2252         (WebCore::PropertyHandler::initialFunction):
2253         (WebCore::PropertyHandler::applyFunction):
2254         (WebCore::CSSStyleApplyProperty::propertyHandler):
2255         (WebCore::CSSStyleApplyProperty::setPropertyHandler):
2256         * css/CSSStyleSelector.cpp:
2257         (WebCore::CSSStyleSelector::applyProperty):
2258         * rendering/style/RenderStyle.h:
2259         (WebCore::InheritedFlags::invalidColor):
2260
2261 2011-10-24  Ben Wells  <benwells@chromium.org>
2262
2263         Canvas drawImage with SourceIn, DestinationIn, SourceOut, DestinationAtop and Copy have errors
2264         https://bugs.webkit.org/show_bug.cgi?id=66920
2265
2266         Reviewed by James Robinson.
2267
2268         Test: fast/canvas/canvas-composite-image.html
2269
2270         Use the same method as fills to handle composited drawImage calls that will affect the whole
2271         canvas. To do this code used when doing fills has been factored into seperate functions and
2272         used by drawImage. Some functions used to do these types of operations have also been renamed.
2273
2274         * html/canvas/CanvasRenderingContext2D.cpp:
2275         (WebCore::isFullCanvasCompositeMode):
2276         (WebCore::CanvasRenderingContext2D::fill):
2277         (WebCore::CanvasRenderingContext2D::fillRect):
2278         (WebCore::CanvasRenderingContext2D::drawImage):
2279         (WebCore::CanvasRenderingContext2D::calculateCompositingBufferRect):
2280         (WebCore::CanvasRenderingContext2D::createCompositingBuffer):
2281         (WebCore::CanvasRenderingContext2D::compositeBuffer):
2282         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedDrawImage):
2283         (WebCore::CanvasRenderingContext2D::fullCanvasCompositedFill):
2284         * html/canvas/CanvasRenderingContext2D.h:
2285
2286 2011-10-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2287
2288         Unreviewed, rolling out r98294 and r98306.
2289         http://trac.webkit.org/changeset/98294
2290         http://trac.webkit.org/changeset/98306
2291         https://bugs.webkit.org/show_bug.cgi?id=70790
2292
2293         the first patch broke chromium-mac and the second gclient
2294         (Requested by jchaffraix on #webkit).
2295
2296         * WebCore.gyp/WebCore.gyp:
2297
2298 2011-10-24  Ryosuke Niwa  <rniwa@webkit.org>
2299
2300         Build fix after r98300.
2301
2302         * WebCore.gypi:
2303         * WebCore.pro:
2304
2305 2011-10-24  Anders Carlsson  <andersca@apple.com>
2306
2307         It should be possible for Widget subclasses to control whether transforms affect the frame rect
2308         https://bugs.webkit.org/show_bug.cgi?id=70787
2309
2310         Reviewed by Sam Weinig.
2311
2312         Currently RenderWidget sets the frame rect of it's hosted widget to the bounding box of the transformed
2313         content box rect (unless the Widget is a frame view). It should be possible for Widget subclasses to override
2314         this behavior and have the frame rect set to the absolute content box without any transforms applied.
2315
2316         * platform/Widget.h:
2317         (WebCore::Widget::transformsAffectFrameRect):
2318         Add new member function.
2319
2320         * rendering/RenderWidget.cpp:
2321         (WebCore::RenderWidget::updateWidgetGeometry):
2322         Move shared code from setWidget and updateWidgetPosition out into a new function. If transformsAffectFrameRect returns 
2323         false, just set the frame rect to the absolute content box.
2324
2325         (WebCore::RenderWidget::setWidget):
2326         (WebCore::RenderWidget::updateWidgetPosition):
2327         Call updateWidgetGeometry.
2328
2329         * rendering/RenderWidget.h:
2330
2331 2011-10-24  Arko Saha  <arko@motorola.com>
2332
2333         Microdata: Add itemprop, itemref, itemvalue attributes.
2334         https://bugs.webkit.org/show_bug.cgi?id=69839
2335
2336         Reviewed by Ryosuke Niwa.
2337
2338         Tests: fast/dom/MicroData/itemprop-add-remove-tokens.html
2339                fast/dom/MicroData/itemprop-for-an-element-must-be-correct.html
2340                fast/dom/MicroData/itemprop-must-be-read-only.html
2341                fast/dom/MicroData/itemprop-reflected-by-itemProp-property.html
2342                fast/dom/MicroData/itemref-add-remove-tokens.html
2343                fast/dom/MicroData/itemref-attribute-reflected-by-itemRef-property.html
2344                fast/dom/MicroData/itemref-for-an-element-must-be-correct.html
2345                fast/dom/MicroData/itemref-must-be-read-only.html
2346                fast/dom/MicroData/itemvalue-reflects-data-attr-on-object-element.html
2347                fast/dom/MicroData/itemvalue-reflects-href-attr.html
2348                fast/dom/MicroData/itemvalue-reflects-src-attribute-on-img-element.html
2349                fast/dom/MicroData/itemvalue-reflects-the-content-attr-on-meta-element.html
2350                fast/dom/MicroData/itemvalue-reflects-the-src-attr.html
2351                fast/dom/MicroData/itemvalue-returns-element-itself.html
2352                fast/dom/MicroData/itemvalue-returns-null.html
2353                fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-001.html
2354                fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.html
2355
2356         * CMakeLists.txt:
2357         * GNUmakefile.list.am:
2358         * WebCore.gypi:
2359         * WebCore.pro:
2360         * WebCore.vcproj/WebCore.vcproj:
2361         * bindings/js/JSHTMLElementCustom.cpp:
2362         (WebCore::toJS):
2363         (WebCore::JSHTMLElement::itemValue):
2364         (WebCore::JSHTMLElement::setItemValue):
2365         * bindings/v8/custom/V8HTMLElementCustom.cpp:
2366         (WebCore::toV8Object):
2367         (WebCore::V8HTMLElement::itemValueAccessorGetter):
2368         (WebCore::V8HTMLElement::itemValueAccessorSetter):
2369         * dom/MicroDataItemList.cpp:
2370         * html/HTMLAnchorElement.cpp:
2371         (WebCore::HTMLAnchorElement::itemValueText):
2372         (WebCore::HTMLAnchorElement::setItemValueText):
2373         * html/HTMLAnchorElement.h:
2374         * html/HTMLAreaElement.cpp:
2375         (WebCore::HTMLAreaElement::itemValueText):
2376         (WebCore::HTMLAreaElement::setItemValueText):
2377         * html/HTMLAreaElement.h:
2378         * html/HTMLAttributeNames.in:
2379         * html/HTMLElement.cpp:
2380         (WebCore::HTMLElement::parseMappedAttribute):
2381         (WebCore::HTMLElement::itemProp): Returns element's itemprop content attribute.
2382         (WebCore::HTMLElement::setItemProp): Sets itemprop value on changing elemet's
2383         itemprop attribute.
2384         (WebCore::HTMLElement::itemRef): Returns element's itemref content attribute.
2385         (WebCore::HTMLElement::setItemRef): Sets itemref value on changing elemet's
2386         itemref attribute.
2387         (WebCore::HTMLElement::setItemValue): Sets element's itemvalue. If the element has no
2388         itemprop attribute or if element has an itemscope attribute, it throws INVALID_ACCESS_ERR
2389         exception.
2390         (WebCore::HTMLElement::itemValue): Returns the elements itemvalue.
2391
2392         If the element has no itemprop attribute it returns null.
2393         If the element has an itemscope attribute, it returns the element itself.
2394         If the element is a meta element: It acts as it would if it was reflecting the element's
2395         content content attribute.
2396         If the element is an audio, embed, iframe, img, source, track, or video element: It acts
2397         as it would if it was reflecting the element's src content attribute.
2398         If the element is an a, area, or link element: It act as it would if it was reflecting the
2399         href content attribute.
2400         If the element is an object element: It acts as  it would if it was reflecting the element's
2401         data content attribute.
2402
2403         (WebCore::HTMLElement::itemValueText):
2404         (WebCore::HTMLElement::setItemValueText):
2405         * html/HTMLElement.h:
2406         * html/HTMLElement.idl:
2407         * html/HTMLEmbedElement.cpp:
2408         (WebCore::HTMLEmbedElement::itemValueText):
2409         (WebCore::HTMLEmbedElement::setItemValueText):
2410         * html/HTMLEmbedElement.h:
2411         * html/HTMLIFrameElement.cpp:
2412         (WebCore::HTMLIFrameElement::itemValueText):
2413         (WebCore::HTMLIFrameElement::setItemValueText):
2414         * html/HTMLIFrameElement.h:
2415         * html/HTMLImageElement.cpp:
2416         (WebCore::HTMLImageElement::itemValueText):
2417         (WebCore::HTMLImageElement::setItemValueText):
2418         * html/HTMLImageElement.h:
2419         * html/HTMLLinkElement.cpp:
2420         (WebCore::HTMLLinkElement::itemValueText):
2421         (WebCore::HTMLLinkElement::setItemValueText):
2422         * html/HTMLLinkElement.h:
2423         * html/HTMLMediaElement.cpp:
2424         (WebCore::HTMLMediaElement::itemValueText):
2425         (WebCore::HTMLMediaElement::setItemValueText):
2426         * html/HTMLMediaElement.h:
2427         * html/HTMLMetaElement.cpp:
2428         (WebCore::HTMLMetaElement::itemValueText):
2429         (WebCore::HTMLMetaElement::setItemValueText):
2430         * html/HTMLMetaElement.h:
2431         * html/HTMLObjectElement.cpp:
2432         (WebCore::HTMLObjectElement::itemValueText):
2433         (WebCore::HTMLObjectElement::setItemValueText):
2434         * html/HTMLObjectElement.h:
2435         * html/HTMLSourceElement.cpp:
2436         (WebCore::HTMLSourceElement::itemValueText):
2437         (WebCore::HTMLSourceElement::setItemValueText):
2438         * html/HTMLSourceElement.h:
2439         * html/HTMLTrackElement.cpp:
2440         (WebCore::HTMLTrackElement::itemValueText):
2441         (WebCore::HTMLTrackElement::setItemValueText):
2442         * html/HTMLTrackElement.h:
2443         * html/MicroDataItemValue.cpp: Added.
2444         (WebCore::MicroDataItemValue::MicroDataItemValue):
2445         (WebCore::MicroDataItemValue::createFromString):
2446         (WebCore::MicroDataItemValue::createFromNode):
2447         * html/MicroDataItemValue.h: Added.
2448         (WebCore::MicroDataItemValue::isNode):
2449         (WebCore::MicroDataItemValue::getNode):
2450         (WebCore::MicroDataItemValue::getString):
2451
2452 2011-10-24  Joseph Pecoraro  <joepeck@webkit.org>
2453
2454         Remove unused instance variable
2455         https://bugs.webkit.org/show_bug.cgi?id=70750
2456
2457         Reviewed by Dimitri Glazkov.
2458
2459         * rendering/RenderTextControl.h:
2460
2461 2011-10-24  Nico Weber  <thakis@chromium.org>
2462
2463         [chromium/mac] Fix an ODR violation.
2464         https://bugs.webkit.org/show_bug.cgi?id=70753
2465
2466         Reviewed by Anders Carlsson.
2467
2468         Both ScrollAnimatorNone and ScrollAnimatorMac define ScrollAnimator::create() on OS X.
2469         Remove the unused one.
2470
2471         * WebCore.gyp/WebCore.gyp:
2472
2473 2011-10-24  Tim Horton  <timothy_horton@apple.com>
2474
2475         feColorMatrix doesn't use the correct default "matrix" type when no type attribute is specified
2476         https://bugs.webkit.org/show_bug.cgi?id=70035
2477         <rdar://problem/10280177>
2478
2479         Reviewed by Nikolas Zimmermann.
2480
2481         Make feColorMatrix's type attribute be "matrix" by default.
2482
2483         Test: svg/filters/feColorMatrix-default-type.svg
2484
2485         * svg/SVGFEColorMatrixElement.cpp:
2486         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
2487
2488 2011-10-24  Joshua Bell  <jsbell@chromium.org>
2489
2490         Unbreak binding generation tests
2491         https://bugs.webkit.org/show_bug.cgi?id=70768
2492
2493         Reviewed by Darin Adler.
2494
2495         Update the expected output of V8 binding tests to match
2496         results c/o https://bugs.webkit.org/show_bug.cgi?id=70065
2497
2498         * bindings/scripts/test/V8/V8TestObj.cpp:
2499         (WebCore::TestObjInternal::idbKeyCallback):
2500
2501 2011-10-21  Nat Duca  <nduca@chromium.org>
2502
2503         [chromium] Add isTraceEventEnabled to PlatformSupport.
2504         https://bugs.webkit.org/show_bug.cgi?id=70618
2505
2506         Reviewed by Darin Fisher.
2507
2508         * platform/chromium/PlatformSupport.h:
2509
2510 2011-10-24  Mihnea Ovidenie  <mihnea@adobe.com>
2511
2512         Use StringBuilder in CSSRuleList::rulesText()/CSSSelectorList::selectorsText()
2513         https://bugs.webkit.org/show_bug.cgi?id=70746
2514
2515         Reviewed by Tony Chang.
2516
2517         Covered by existing tests.
2518
2519         * css/CSSRuleList.cpp:
2520         (WebCore::CSSRuleList::rulesText):
2521         * css/CSSSelectorList.cpp:
2522         (WebCore::CSSSelectorList::selectorsText):
2523         * css/WebKitCSSKeyframesRule.cpp:
2524         (WebCore::WebKitCSSKeyframesRule::cssText): Use CSSRuleList::rulesText() method instead of explicit loop.
2525
2526 2011-10-24  Michael Saboff  <msaboff@apple.com>
2527
2528         WebKit doesn't build with recent changes to libdispatch
2529         https://bugs.webkit.org/show_bug.cgi?id=70737
2530
2531         Added initialization for new WebKitSystemInterface function 
2532         CreateVMPressureDispatchOnMainQueue.  Changed MemoryPressureHandler::install
2533         to use new function.
2534
2535         Reviewed by Geoffrey Garen.
2536
2537         No new tests.  Moved functionality to WebKitSystemInterface.
2538
2539         * WebCore.exp.in:
2540         * platform/mac/MemoryPressureHandlerMac.mm:
2541         (WebCore::MemoryPressureHandler::install):
2542         * platform/mac/WebCoreSystemInterface.h:
2543         * platform/mac/WebCoreSystemInterface.mm:
2544
2545 2011-10-24  Joshua Bell  <jsbell@chromium.org>
2546
2547         IndexedDB: Throw DATA_ERR on invalid keys, remove null key support
2548         https://bugs.webkit.org/show_bug.cgi?id=70065
2549
2550         Reviewed by Tony Chang.
2551
2552         Part 1 of a two-sided commit. Renames IDBKey::NullType to
2553         IDBKey::InvalidType. JS binding yields this type rather
2554         than throwing immediately so the correct exception type can
2555         be raised. Checks for invalid keys added to front-end classes.
2556
2557         * bindings/js/JSIDBKeyCustom.cpp:
2558         (WebCore::toJS):
2559         * bindings/scripts/CodeGeneratorV8.pm:
2560         (TypeCanFailConversion):
2561         * bindings/v8/IDBBindingUtilities.cpp:
2562         (WebCore::createIDBKeyFromValue):
2563         * bindings/v8/custom/V8IDBKeyCustom.cpp:
2564         (WebCore::toV8):
2565         * storage/IDBCursor.cpp:
2566         (WebCore::IDBCursor::continueFunction):
2567         * storage/IDBFactory.cpp:
2568         (WebCore::IDBFactory::cmp):
2569         * storage/IDBIndex.cpp:
2570         (WebCore::IDBIndex::get):
2571         (WebCore::IDBIndex::getKey):
2572         * storage/IDBKey.cpp:
2573         (WebCore::IDBKey::IDBKey):
2574         (WebCore::IDBKey::compare):
2575         * storage/IDBKey.h:
2576         (WebCore::IDBKey::createInvalid):
2577         * storage/IDBKeyRange.cpp:
2578         (WebCore::IDBKeyRange::only):
2579         (WebCore::IDBKeyRange::lowerBound):
2580         (WebCore::IDBKeyRange::upperBound):
2581         (WebCore::IDBKeyRange::bound):
2582         * storage/IDBKeyRange.h:
2583         (WebCore::IDBKeyRange::lowerBound):
2584         (WebCore::IDBKeyRange::upperBound):
2585         (WebCore::IDBKeyRange::bound):
2586         * storage/IDBKeyRange.idl:
2587         * storage/IDBLevelDBCoding.cpp:
2588         (WebCore::IDBLevelDBCoding::encodeIDBKey):
2589         (WebCore::IDBLevelDBCoding::decodeIDBKey):
2590         * storage/IDBObjectStore.cpp:
2591         (WebCore::IDBObjectStore::get):
2592         (WebCore::IDBObjectStore::add):
2593         (WebCore::IDBObjectStore::put):
2594         (WebCore::IDBObjectStore::deleteFunction):
2595         * storage/IDBObjectStoreBackendImpl.cpp:
2596         (WebCore::IDBObjectStoreBackendImpl::put):
2597         (WebCore::IDBObjectStoreBackendImpl::putInternal):
2598         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
2599         * storage/IDBSQLiteBackingStore.cpp:
2600         (WebCore::whereSyntaxForKey):
2601         (WebCore::bindKeyToQuery):
2602         (WebCore::lowerCursorWhereFragment):
2603         (WebCore::upperCursorWhereFragment):
2604         (WebCore::bindKeyToQueryWithNulls):
2605         (WebCore::keyFromQuery):
2606
2607 2011-10-24  Alok Priyadarshi  <alokp@chromium.org>
2608
2609         [chromium] Make accelerated drawing work with threaded compositing
2610         https://bugs.webkit.org/show_bug.cgi?id=70656
2611
2612         Reviewed by James Robinson.
2613
2614         Make sure that the compositor context is not used outside LayerTextureUpdater::updateTextureRect().
2615         Created a FrameBuffer class that wraps skia gpu canvas and manages GL resources.
2616
2617         * platform/graphics/chromium/ContentLayerChromium.cpp:
2618         (WebCore::ContentLayerChromium::createTextureUpdater):
2619         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
2620         (WebCore::FrameBuffer::FrameBuffer::FrameBuffer):
2621         (WebCore::FrameBuffer::FrameBuffer::~FrameBuffer):
2622         (WebCore::FrameBuffer::FrameBuffer::initialize):
2623         (WebCore::LayerTextureUpdaterSkPicture::LayerTextureUpdaterSkPicture):
2624         (WebCore::LayerTextureUpdaterSkPicture::~LayerTextureUpdaterSkPicture):
2625         (WebCore::LayerTextureUpdaterSkPicture::prepareToUpdate):
2626         (WebCore::LayerTextureUpdaterSkPicture::updateTextureRect):
2627         * platform/graphics/chromium/LayerTextureUpdaterCanvas.h:
2628         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
2629         (WebCore::CCLayerTreeHost::initialize):
2630
2631 2011-10-24  Adam Klein  <adamk@chromium.org>
2632
2633         Optimize Node::isInShadowTree to execute in constant-time
2634         https://bugs.webkit.org/show_bug.cgi?id=67686
2635
2636         Reviewed by Dimitri Glazkov.
2637
2638         No expected change in behavior, so no new tests.
2639
2640         * dom/Node.cpp:
2641         (WebCore::Node::isInShadowTree):
2642
2643 2011-10-24  Nat Duca  <nduca@chromium.org>
2644
2645         [chromium] Expose WebThread::postDelayedTask to CCThread
2646         https://bugs.webkit.org/show_bug.cgi?id=70712
2647
2648         Reviewed by James Robinson.
2649
2650         * platform/graphics/chromium/cc/CCThread.h:
2651
2652 2011-10-24  Levi Weintraub  <leviw@chromium.org>
2653
2654         <svg> fails to use explicit width and height inside <html> inside IFRAME
2655         https://bugs.webkit.org/show_bug.cgi?id=64823
2656
2657         Reviewed by Nikolas Zimmermann.
2658
2659         Checking that embedded SVG is in an SVG document before negotiating size
2660         with the host document.
2661
2662         Test: svg/as-object/svg-embedded-in-html-in-iframe.html
2663
2664         * rendering/svg/RenderSVGRoot.cpp:
2665         (WebCore::isEmbeddedThroughFrameContainingSVGDocument):
2666         (WebCore::RenderSVGRoot::computeReplacedLogicalWidth):
2667         (WebCore::RenderSVGRoot::computeReplacedLogicalHeight):
2668
2669 2011-10-24  Rafael Weinstein  <rafaelw@chromium.org>
2670
2671         Node::registeredMutationObserversOfType should be prefixed by "get"
2672         https://bugs.webkit.org/show_bug.cgi?id=70359
2673
2674         Reviewed by Ojan Vafai.
2675
2676         This change renames Node::registeredMutationObserversOfType to
2677         Node::getRegisteredMutationObserversOfType per the WebKit style guide.
2678
2679         No tests needed as the change is only method renaming.
2680
2681         * dom/CharacterData.cpp:
2682         (WebCore::CharacterData::dispatchModifiedEvent):
2683         * dom/ChildListMutationScope.cpp:
2684         (WebCore::MutationAccumulationRouter::MutationAccumulationRouter::incrementScopingLevel):
2685         * dom/Element.cpp:
2686         (WebCore::enqueueAttributesMutationRecord):
2687         * dom/Node.cpp:
2688         (WebCore::Node::getRegisteredMutationObserversOfType):
2689         * dom/Node.h:
2690
2691 2011-10-24  Mark Hahnenberg  <mhahnenberg@apple.com>
2692
2693         Rename static getOwnPropertySlot to getOwnPropertySlotByIndex
2694         https://bugs.webkit.org/show_bug.cgi?id=70271
2695
2696         Reviewed by Darin Adler.
2697
2698         No new tests.
2699
2700         Renaming versions of getOwnPropertySlot that use an unsigned as the property
2701         name to "getOwnPropertySlotByIndex" in preparation for adding them to the 
2702         MethodTable, which requires unique names for each method.
2703
2704         * bindings/js/SerializedScriptValue.cpp:
2705         (WebCore::CloneSerializer::getSparseIndex):
2706         * bindings/scripts/CodeGeneratorJS.pm:
2707         (GenerateHeader):
2708         (GenerateImplementation):
2709         * bridge/runtime_array.cpp:
2710         (JSC::RuntimeArray::getOwnPropertySlotVirtual):
2711         (JSC::RuntimeArray::getOwnPropertySlotByIndex):
2712         * bridge/runtime_array.h:
2713
2714 2011-10-24  Joshua Bell  <jsbell@chromium.org>
2715
2716         IndexedDB add should fail adding an inline and passed key simultaneously
2717         https://bugs.webkit.org/show_bug.cgi?id=58598
2718
2719         Reviewed by Tony Chang.
2720
2721         Test: storage/indexeddb/mozilla/key-requirements-inline-and-passed.html
2722
2723         Implement the spec clause: passing a key into add() or put() when
2724         the object store has a key path ("inline key") is an error.
2725
2726         * storage/IDBObjectStoreBackendImpl.cpp:
2727         (WebCore::IDBObjectStoreBackendImpl::put):
2728
2729 2011-10-24  Simon Fraser  <simon.fraser@apple.com>
2730
2731         Improve debug compositing border colors
2732         https://bugs.webkit.org/show_bug.cgi?id=70742
2733
2734         Reviewed by Dean Jackson.
2735
2736         Improve the appearance of the debug borders used to indicate compositing:
2737         1. Use green for normal layers, orange for tiled layers
2738         2. Make the repaint counter translucent
2739         3. Change the color of the repaint counter to show when accelerated drawing is enabled.
2740
2741         * platform/graphics/GraphicsLayer.cpp:
2742         (WebCore::GraphicsLayer::updateDebugIndicators):
2743         * platform/graphics/mac/WebLayer.mm:
2744         (drawLayerContents):
2745
2746 2011-10-24  Carlos Garcia Campos  <cgarcia@igalia.com>
2747
2748         [GTK] Fix make distcheck build
2749         https://bugs.webkit.org/show_bug.cgi?id=69745
2750
2751         Reviewed by Martin Robinson.
2752
2753         * GNUmakefile.am:
2754         * GNUmakefile.list.am:
2755
2756 2011-10-24  Alexander Pavlov  <apavlov@chromium.org>
2757
2758         Web Inspector: [Styles] Adding a new style rule breaks things
2759         https://bugs.webkit.org/show_bug.cgi?id=70721
2760
2761         Reviewed by Pavel Feldman.
2762
2763         We had used to swap BlankStylePropertiesSection prototype and recently got rid of this hack,
2764         but still had dependencies on the old behavior.
2765
2766         * inspector/front-end/StylesSidebarPane.js:
2767         (WebInspector.StylesSidebarPane.prototype._refreshStyleRules):
2768         (WebInspector.ComputedStylePropertiesSection.prototype.rebuildComputedTrace):
2769         (WebInspector.BlankStylePropertiesSection.prototype.get isBlank):
2770         (WebInspector.BlankStylePropertiesSection.prototype.expand):
2771         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
2772         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
2773         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCancelled):
2774         (WebInspector.BlankStylePropertiesSection.prototype.makeNormal):
2775
2776 2011-10-24  Pavel Feldman  <pfeldman@google.com>
2777
2778         Web Inspector: do not force document loading on reload (should happen on demand).
2779         https://bugs.webkit.org/show_bug.cgi?id=70724
2780
2781         Reviewed by Yury Semikhatsky.
2782
2783         * inspector/front-end/ConsoleMessage.js:
2784         (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsNode):
2785         * inspector/front-end/DOMAgent.js:
2786         (WebInspector.DOMAgent.prototype._documentUpdated):
2787         * inspector/front-end/ElementsPanel.js:
2788         (WebInspector.ElementsPanel.prototype.wasShown):
2789         * inspector/front-end/ElementsTreeOutline.js:
2790         (WebInspector.ElementsTreeOutline.prototype.setVisible):
2791
2792 2011-10-24  Eric Carlson  <eric.carlson@apple.com>
2793
2794         Drop MutableTextTrack and make TextTrack always mutable
2795         https://bugs.webkit.org/show_bug.cgi?id=62890
2796
2797         The MutableTextTrack type was removed from the spec, all text tracks are now mutable.
2798
2799         Reviewed by Sam Weinig.
2800
2801         No new tests needed, the changes just refactor existing code.
2802
2803         * CMakeLists.txt: Remove all traces of MutableTextTrack.
2804         * CodeGenerators.pri: Ditto.
2805         * DerivedSources.cpp: Ditto.
2806         * DerivedSources.make: Ditto.
2807         * GNUmakefile.list.am: Ditto.
2808         * WebCore.gypi: Ditto.
2809         * WebCore.pro: Ditto.
2810         * WebCore.xcodeproj/project.pbxproj: Ditto.
2811         * bindings/gobject/GNUmakefile.am: Ditto.
2812         * bindings/gobject/WebKitHTMLElementWrapperFactory.cpp: Ditto.
2813         * bindings/js/JSBindingsAllInOne.cpp: Ditto.
2814
2815         * bindings/js/JSTextTrackCustom.cpp: Removed.
2816
2817         * html/HTMLMediaElement.cpp:
2818         (WebCore::HTMLMediaElement::addTrack): Return a TextTrack instead of a MutableTextTrack.
2819         * html/HTMLMediaElement.h:
2820         * html/HTMLMediaElement.idl:
2821
2822         * html/LoadableTextTrack.cpp:
2823         (WebCore::LoadableTextTrack::LoadableTextTrack): Return a TextTrack instead of a MutableTextTrack.
2824
2825         * html/MutableTextTrack.cpp: Removed.
2826         * html/MutableTextTrack.h: Removed.
2827         * html/MutableTextTrack.idl: Removed.
2828
2829         * html/TextTrack.cpp:
2830         (WebCore::TextTrack::TextTrack): Remove Type parameter.
2831         (WebCore::TextTrack::addCue): New, moved from MutableTextTrack.
2832         (WebCore::TextTrack::removeCue): Ditto.
2833         (WebCore::TextTrack::newCuesLoaded): Ditto.
2834         (WebCore::TextTrack::fetchNewestCues): Ditto.
2835         * html/TextTrack.h:
2836         (WebCore::TextTrack::create): Remove Type parameter
2837         * html/TextTrack.idl: Add addCue and removeCue.
2838
2839 2011-10-24  Yury Semikhatsky  <yurys@chromium.org>
2840
2841         Web Inspector: allow debugging dedicated worker initialization
2842         https://bugs.webkit.org/show_bug.cgi?id=70723
2843
2844         Now it is possible to pause each new dedicated worker on start. The user
2845         needs to select a checkbox and then each newly created dedicated worker
2846         will be paused on the first statement until the user resumes it explicitely.
2847
2848         Reviewed by Pavel Feldman.
2849
2850         * inspector/Inspector.json: resume command is added. It is similar to GDB's run
2851         command, i.e. worker execution will be paused until explicit "resume" command is
2852         received.
2853         * inspector/InspectorInstrumentation.cpp:
2854         (WebCore::InspectorInstrumentation::shouldPauseDedicatedWorkerOnStartImpl):
2855         * inspector/InspectorInstrumentation.h:
2856         (WebCore::InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart):
2857         * inspector/InspectorRuntimeAgent.cpp:
2858         (WebCore::InspectorRuntimeAgent::resume):
2859         (WebCore::InspectorRuntimeAgent::pauseWorkerContext):
2860         * inspector/InspectorRuntimeAgent.h:
2861         * inspector/InspectorWorkerAgent.cpp:
2862         (WebCore::InspectorWorkerAgent::shouldPauseDedicatedWorkerOnStart): returns true
2863         if the user chose to automatically pause all new workers.
2864         * inspector/InspectorWorkerAgent.h:
2865         * inspector/WorkerInspectorController.cpp:
2866         (WebCore::WorkerInspectorController::resume):
2867         * inspector/front-end/WorkerManager.js:
2868         (WebInspector.WorkerManager.loaded):
2869         (WebInspector.WorkerManager.loadCompleted):
2870         (WebInspector.WorkerManager.prototype._workerCreated):
2871         (WebInspector.WorkerManager.prototype.openWorkerInspector):
2872         (WebInspector.WorkerManager.prototype._openInspectorWindow):
2873         * inspector/front-end/inspector.js:
2874         (WebInspector.loaded):
2875         * workers/Worker.cpp:
2876         (WebCore::Worker::notifyFinished):
2877         * workers/WorkerContextProxy.h:
2878         * workers/WorkerMessagingProxy.cpp:
2879         (WebCore::WorkerMessagingProxy::startWorkerContext): additional flag specifying
2880         worker initial state(paused/not paused) is added to the factory method. The flag
2881         will be carried to the corresponding WorkerThread.
2882         (WebCore::WorkerMessagingProxy::connectToInspector):
2883         * workers/WorkerMessagingProxy.h:
2884
2885 2011-10-21  Nikita Vasilyev  <me@elv1s.ru>
2886
2887         Web Inspector: Make indent configurable
2888         https://bugs.webkit.org/show_bug.cgi?id=69986
2889
2890         Add a setting to choose an indent from "8 spaces", "4 spaces" (default), "2 spaces", or "Tab character".
2891
2892         Reviewed by Pavel Feldman.
2893
2894         * English.lproj/localizedStrings.js:
2895         * inspector/front-end/SettingsScreen.js:
2896         (WebInspector.SettingsScreen):
2897         (WebInspector.SettingsScreen.prototype._createSelectSetting.get p):
2898         (WebInspector.SettingsScreen.prototype._createSelectSetting.changeListener):
2899         * inspector/front-end/TextEditorModel.js:
2900         (WebInspector.TextEditorModel):
2901         * inspector/front-end/TextViewer.js:
2902
2903 2011-10-17  Andrey Kosyakov  <caseq@chromium.org>
2904
2905         Web Inspector: add "Add to Watch" option to context menu on selection in source frame
2906         https://bugs.webkit.org/show_bug.cgi?id=69924
2907
2908         Reviewed by Pavel Feldman.
2909
2910         - added 'Add to Watch' context menu item in scripts panel;
2911         - include both default and custom items into a context menu if selection is present;
2912
2913         * inspector/front-end/ScriptsPanel.js:
2914         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
2915         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.addToWatch):
2916         * inspector/front-end/SourceFrame.js:
2917         (WebInspector.SourceFrame.prototype.populateSelectionContextMenu):
2918         (WebInspector.TextViewerDelegateForSourceFrame.prototype.populateSelectionContextMenu):
2919         (WebInspector.SourceFrameDelegate.prototype.suggestedFileName):
2920         (WebInspector.SourceFrameDelegate.prototype.addToWatch):
2921         * inspector/front-end/TextViewer.js:
2922         (WebInspector.TextViewer.prototype._contextMenu):
2923         (WebInspector.TextViewerDelegate.prototype.populateSelectionContextMenu):
2924         * inspector/front-end/WatchExpressionsSidebarPane.js:
2925         (WebInspector.WatchExpressionsSidebarPane.prototype.addExpression):
2926         (WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
2927         (WebInspector.WatchExpressionsSection.prototype.addExpression):
2928         (WebInspector.WatchExpressionsSection.prototype.addNewExpressionAndEdit):
2929         * page/ContextMenuController.cpp:
2930         (WebCore::ContextMenuController::showContextMenu):
2931
2932 2011-10-21  Alexander Pavlov  <apavlov@chromium.org>
2933
2934         Web Inspector: Audits hang on pages without img[src] elements
2935         https://bugs.webkit.org/show_bug.cgi?id=70604
2936
2937         Reviewed by Pavel Feldman.
2938
2939         Test: inspector/audits/audits-panel-noimages-functional.html
2940
2941         * inspector/front-end/AuditRules.js:
2942         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
2943
2944 2011-10-24  Deepak Sherveghar  <bpwv64@motorola.com>
2945
2946         [Qt] fast/events/media-focus-in-standalone-media-document.html fails
2947         https://bugs.webkit.org/show_bug.cgi?id=70110
2948
2949         Reviewed by Simon Hausmann.
2950
2951         ExtensionMap should also include media files mapping.
2952
2953         * platform/qt/MIMETypeRegistryQt.cpp: Added media files mapping.
2954
2955 2011-10-24  Pavel Feldman  <pfeldman@google.com>
2956
2957         Not reviewed: [chromium] follow up to 98228 - added missing css.
2958
2959         * WebCore.gypi:
2960
2961 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
2962
2963         Web Inspector: Make CSS files load upon View demand; split inspector.css into views.
2964         https://bugs.webkit.org/show_bug.cgi?id=70694
2965
2966         Reviewed by Yury Semikhatsky.
2967
2968         * WebCore.gypi:
2969         * WebCore.vcproj/WebCore.vcproj:
2970         * inspector/front-end/AuditsPanel.js:
2971         (WebInspector.AuditsPanel):
2972         * inspector/front-end/DataGrid.js:
2973         (WebInspector.DataGrid):
2974         * inspector/front-end/ElementsPanel.js:
2975         * inspector/front-end/NetworkPanel.js:
2976         (WebInspector.NetworkLogView):
2977         * inspector/front-end/PanelEnablerView.js:
2978         * inspector/front-end/ProfilesPanel.js:
2979         * inspector/front-end/ResourceView.js:
2980         (WebInspector.ResourceView):
2981         * inspector/front-end/ResourcesPanel.js:
2982         * inspector/front-end/ScriptsPanel.js:
2983         * inspector/front-end/TextViewer.js:
2984         * inspector/front-end/TimelinePanel.js:
2985         (WebInspector.TimelinePanel):
2986         * inspector/front-end/WebKit.qrc:
2987         * inspector/front-end/WelcomeView.js:
2988         (WebInspector.WelcomeView):
2989         * inspector/front-end/auditsPanel.css: Renamed from Source/WebCore/inspector/front-end/audits.css.
2990
2991 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
2992
2993         Web Inspector: make view load CSS files upon show.
2994         https://bugs.webkit.org/show_bug.cgi?id=70696
2995
2996         Reviewed by Yury Semikhatsky.
2997
2998         Test: inspector/view-css.html
2999
3000         * inspector/front-end/View.js:
3001         (WebInspector.View):
3002         (WebInspector.View.prototype._callOnVisibleChildren):
3003         (WebInspector.View.prototype._processWillShow):
3004         (WebInspector.View.prototype._processWasShown):
3005         (WebInspector.View.prototype._processWillHide):
3006         (WebInspector.View.prototype._processWasHidden):
3007         (WebInspector.View.prototype._processOnResize):
3008         (WebInspector.View.prototype.show):
3009         (WebInspector.View.prototype.detach):
3010         (WebInspector.View.prototype.registerRequiredCSS):
3011         (WebInspector.View.prototype._loadCSSIfNeeded):
3012         (WebInspector.View.prototype._doLoadCSS):
3013         (WebInspector.View.prototype._disableCSSIfNeeded):
3014         (WebInspector.View.prototype._doUnloadCSS):
3015
3016 2011-10-24  Pavel Feldman  <pfeldman@chromium.org>
3017
3018         Web Inspector: make DataGrid a view
3019         https://bugs.webkit.org/show_bug.cgi?id=70695
3020
3021         Reviewed by Yury Semikhatsky.
3022
3023         * inspector/front-end/ApplicationCacheItemsView.js:
3024         (WebInspector.ApplicationCacheItemsView.prototype._createDataGrid):
3025         * inspector/front-end/CookieItemsView.js:
3026         (WebInspector.CookieItemsView.prototype._updateWithCookies):
3027         (WebInspector.SimpleCookiesTable):
3028         (WebInspector.SimpleCookiesTable.prototype.setCookies):
3029         * inspector/front-end/CookiesTable.js:
3030         (WebInspector.CookiesTable):
3031         * inspector/front-end/DOMStorageItemsView.js:
3032         (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
3033         * inspector/front-end/DataGrid.js:
3034         (WebInspector.DataGrid):
3035         (WebInspector.DataGrid.prototype.onResize):
3036         * inspector/front-end/DatabaseQueryView.js:
3037         (WebInspector.DatabaseQueryView.prototype._queryFinished):
3038         (WebInspector.DatabaseQueryView.prototype._queryError):
3039         (WebInspector.DatabaseQueryView.prototype._appendViewQueryResult):
3040         (WebInspector.DatabaseQueryView.prototype._appendErrorQueryResult):
3041         (WebInspector.DatabaseQueryView.prototype._appendQueryResult):
3042         * inspector/front-end/DatabaseTableView.js:
3043         (WebInspector.DatabaseTableView.prototype._queryFinished):
3044         * inspector/front-end/DetailedHeapshotView.js:
3045         (WebInspector.DetailedHeapshotView.prototype.wasShown.profileCallback2):
3046         (WebInspector.DetailedHeapshotView.prototype.wasShown):
3047         (WebInspector.DetailedHeapshotView.prototype.onResize):
3048         * inspector/front-end/NetworkPanel.js:
3049         (WebInspector.NetworkLogView.prototype.onResize):
3050         (WebInspector.NetworkLogView.prototype._createTable):
3051         * inspector/front-end/ProfileView.js:
3052         * inspector/front-end/ResourceCookiesView.js:
3053         (WebInspector.ResourceCookiesView.prototype._buildCookiesTable):
3054         * inspector/front-end/ResourceView.js:
3055         (WebInspector.ResourceView):
3056
3057 2011-10-24  Yosifumi Inoue  <yosin@chromium.org>
3058
3059         [Forms] Setting defaultValue should hide an input placeholder.
3060         https://bugs.webkit.org/show_bug.cgi?id=70586
3061
3062         Reviewed by Kent Tamura.
3063
3064         Tests: fast/forms/placeholder-and-default-value-expected.html
3065                fast/forms/placeholder-and-default-value.html
3066
3067         When input element has default value, we should not display
3068         placeholder. Changing default value should tell rendering engine about
3069         changing display of input element.
3070
3071         * html/HTMLInputElement.cpp:
3072         (WebCore::HTMLInputElement::parseMappedAttribute): Calls updatePlaceholderVisibility for valueAttr if it doesn't have dirty value.
3073
3074 2011-10-23  Darin Adler  <darin@apple.com>
3075
3076         Eliminate OptionElement (second and final part)
3077         https://bugs.webkit.org/show_bug.cgi?id=70710
3078
3079         Reviewed by Kent Tamura.
3080
3081         * CMakeLists.txt: Removed OptionElement.h and OptionElement.cpp.
3082         * GNUmakefile.list.am: Ditto.
3083         * WebCore.gypi: Ditto.
3084         * WebCore.pro: Ditto.
3085         * WebCore.vcproj/WebCore.vcproj: Ditto.
3086         * WebCore.xcodeproj/project.pbxproj: Ditto.
3087         * dom/DOMAllInOne.cpp: Ditto.
3088
3089         * dom/OptionElement.cpp: Removed.
3090         * dom/OptionElement.h: Removed.
3091
3092         * html/HTMLSelectElement.cpp:
3093         (WebCore::HTMLSelectElement::saveLastSelection): Eliminate use of the
3094         toOptionElement function. Use hasTagName and toHTMLOptionElement instead.
3095         (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex): Ditto.
3096         (WebCore::HTMLSelectElement::updateListBoxSelection): Ditto.
3097         (WebCore::HTMLSelectElement::listBoxOnChange): Ditto.
3098         (WebCore::HTMLSelectElement::recalcListItems): Ditto.
3099         (WebCore::HTMLSelectElement::selectedIndex): Ditto.
3100         (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
3101         (WebCore::HTMLSelectElement::deselectItemsWithoutValidation): Ditto.
3102         (WebCore::HTMLSelectElement::saveFormControlState): Ditto.
3103         (WebCore::HTMLSelectElement::restoreFormControlState): Ditto.
3104         (WebCore::HTMLSelectElement::appendFormData): Ditto.
3105         (WebCore::HTMLSelectElement::reset): Ditto.
3106         (WebCore::HTMLSelectElement::updateSelectedState): Ditto.
3107         (WebCore::HTMLSelectElement::lastSelectedListIndex): Ditto.
3108         (WebCore::HTMLSelectElement::typeAheadFind): Ditto.
3109         (WebCore::HTMLSelectElement::accessKeySetSelectedIndex): Ditto.
3110
3111         * html/HTMLSelectElement.h: Changed the argument type of the
3112         deselectItemsWithoutValidation function to HTMLElement* since that's
3113         the type of an item in our items vector now.
3114
3115 2011-10-23  Yuzo Fujishima  <yuzo@google.com>
3116
3117         [chromium] Attempt to fix compilation error for Chromium OS.
3118
3119         Unreviewed.
3120
3121         * mediastream/MediaStreamTrack.cpp:
3122         (WebCore::MediaStreamTrack::kind):
3123
3124 2011-10-23  Adam Barth  <abarth@webkit.org>
3125
3126         <img crossorigin> should fail to load when CORS check fails
3127         https://bugs.webkit.org/show_bug.cgi?id=69732
3128
3129         Reviewed by Darin Adler.
3130
3131         When loading an image with the crossorigin attribute, the spec says
3132         that we're not supposed to load the image if the CORS check fails.
3133         This "fails fast" behavior is intended to help developers understand
3134         whether they've configured CORS correctly (instead of only catching the
3135         error later when trying to read back the canvas).
3136
3137         Our new behavior matches the spec and Firefox.
3138
3139         Test: http/tests/security/img-with-failed-cors-check-fails-to-load.html
3140
3141         * loader/ImageLoader.cpp:
3142         (WebCore::ImageLoader::notifyFinished):
3143
3144 2011-10-23  Noel Gordon  <noel.gordon@gmail.com>
3145
3146         [chromium] Remove GeolocationServiceGtk.{h,cpp} from the gyp projects
3147         https://bugs.webkit.org/show_bug.cgi?id=70702
3148
3149         Reviewed by Kent Tamura.
3150
3151         platform/gtk/GeolocationServiceGtk.{h,cpp} were removed in r97746, so
3152         remove references to these files from the gyp files.
3153
3154         * WebCore.gypi:
3155
3156 2011-10-23  Andreas Kling  <kling@webkit.org>
3157
3158         Move StyleSheet::addSubresourceStyleURLs() to CSSStyleSheet.
3159         https://bugs.webkit.org/show_bug.cgi?id=70690
3160
3161         Reviewed by Antti Koivisto.
3162
3163         This method isn't part of the StyleSheet DOM interface, nor is it used by
3164         XSLStyleSheet, so move it down to CSSStyleSheet and make it non-virtual.
3165         Also remove some nearby unneeded casts from CSSStyleSheet* to StyleSheet*.
3166
3167         * css/CSSStyleSheet.h:
3168         * css/StyleSheet.h:
3169         * html/HTMLLinkElement.cpp:
3170         (WebCore::HTMLLinkElement::isLoading):
3171         (WebCore::HTMLLinkElement::addSubresourceAttributeURLs):
3172         * html/HTMLStyleElement.cpp:
3173         (WebCore::HTMLStyleElement::addSubresourceAttributeURLs):
3174         (WebCore::HTMLStyleElement::disabled):
3175         (WebCore::HTMLStyleElement::setDisabled):
3176
3177 2011-10-23  Andreas Kling  <kling@webkit.org>
3178
3179         Remove style sheet constructors that take a style sheet parent.
3180         https://bugs.webkit.org/show_bug.cgi?id=70692
3181
3182         Reviewed by Antti Koivisto.
3183
3184         Style sheets are never directly parented by other style sheets, they always
3185         go via a rule (such as @import.)
3186
3187         * css/CSSStyleSheet.cpp:
3188         * css/CSSStyleSheet.h:
3189         (WebCore::CSSStyleSheet::create):
3190         * css/StyleSheet.cpp:
3191         * css/StyleSheet.h:
3192
3193 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
3194
3195         Add deleteProperty to the MethodTable
3196         https://bugs.webkit.org/show_bug.cgi?id=70162
3197
3198         Reviewed by Sam Weinig.
3199
3200         No new tests.
3201
3202         * WebCore.exp.in:
3203
3204 2011-10-23  Adam Barth  <abarth@webkit.org>
3205
3206         Update baselines for run-bindings-tests.
3207
3208         * bindings/scripts/test/JS/JSTestInterface.cpp:
3209         * bindings/scripts/test/JS/JSTestInterface.h:
3210         * bindings/scripts/test/JS/JSTestObj.cpp:
3211
3212 2011-10-23  Mark Hahnenberg  <mhahnenberg@apple.com>
3213
3214         Remove getConstructDataVirtual
3215         https://bugs.webkit.org/show_bug.cgi?id=70638
3216
3217         Reviewed by Darin Adler.
3218
3219         No new tests.
3220
3221         Removed all declarations and definitions of getConstructDataVirtual.
3222         Also replaced all call sites to getConstructDataVirtual with a 
3223         corresponding lookup in the MethodTable.
3224
3225         * WebCore.exp.in:
3226         * bindings/js/JSAudioConstructor.cpp:
3227         * bindings/js/JSAudioConstructor.h:
3228         * bindings/js/JSImageConstructor.cpp:
3229         * bindings/js/JSImageConstructor.h:
3230         * bindings/js/JSOptionConstructor.cpp:
3231         * bindings/js/JSOptionConstructor.h:
3232         * bindings/js/ScriptFunctionCall.cpp:
3233         (WebCore::ScriptFunctionCall::construct):
3234         * bindings/scripts/CodeGeneratorJS.pm:
3235         (GenerateConstructorDeclaration):
3236         (GenerateConstructorDefinition):
3237         * bridge/runtime_object.cpp:
3238         * bridge/runtime_object.h:
3239
3240 2011-10-22  Geoffrey Garen  <ggaren@apple.com>
3241
3242         Separated string lifetime bits from character buffer state bits
3243         https://bugs.webkit.org/show_bug.cgi?id=70673
3244
3245         Reviewed by Anders Carlsson.
3246
3247         * bindings/scripts/CodeGeneratorJS.pm:
3248         (GenerateHashValue): Updated for string hashing changes in JavaScriptCore.
3249
3250 2011-10-22  Pratik Solanki  <psolanki@apple.com>
3251
3252         HTTPBodyStream in NSURLRequest gets lost when using CFNetwork loader
3253         https://bugs.webkit.org/show_bug.cgi?id=70583
3254         <rdar://problem/10281227>
3255
3256         Reviewed by Darin Adler.
3257
3258         Call WebCore::setHTTPBody() only if we actually have a FormData. Unconditionally calling it
3259         results in us passing 0 to wkCFURLRequestSetHTTPRequestBodyParts() which resets any input
3260         stream specified by the user on the NSURLRequest. This code matches the behavior in the
3261         Foundation version of doUpdatePlatformRequest().
3262
3263         * platform/network/cf/ResourceRequestCFNet.cpp:
3264         (WebCore::ResourceRequest::doUpdatePlatformRequest):
3265
3266 2011-10-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
3267
3268         Move all MediaStream and PeerConnection related non-platform files to WebCore/mediastream
3269         https://bugs.webkit.org/show_bug.cgi?id=70233
3270
3271         Reviewed by Adam Barth.
3272
3273         Removed affected files from build systems that don't have a MEDIA_STREAM build flag.
3274
3275         No new tests since we're just moving files.
3276
3277         * CMakeLists.txt:
3278         * CodeGenerators.pri:
3279         * DerivedSources.cpp:
3280         * DerivedSources.make:
3281         * GNUmakefile.am:
3282         * GNUmakefile.list.am:
3283         * UseJSC.cmake:
3284         * WebCore.gyp/WebCore.gyp:
3285         * WebCore.gypi:
3286         * WebCore.pro:
3287         * WebCore.vcproj/WebCore.vcproj:
3288         * WebCore.xcodeproj/project.pbxproj:
3289         * bindings/js/JSBindingsAllInOne.cpp:
3290         * dom/DOMAllInOne.cpp:
3291         * dom/DispatchTask.h: Removed unused file.
3292         * dom/ScriptExecutionContext.cpp:
3293         * mediastream/LocalMediaStream.cpp: Renamed from Source/WebCore/dom/LocalMediaStream.cpp.
3294         (WebCore::LocalMediaStream::create):
3295         (WebCore::LocalMediaStream::LocalMediaStream):
3296         (WebCore::LocalMediaStream::stop):
3297         (WebCore::LocalMediaStream::stopTimerFired):
3298         (WebCore::LocalMediaStream::~LocalMediaStream):
3299         (WebCore::LocalMediaStream::toLocalMediaStream):
3300         * mediastream/LocalMediaStream.h: Renamed from Source/WebCore/dom/LocalMediaStream.h.
3301         * mediastream/LocalMediaStream.idl: Renamed from Source/WebCore/dom/LocalMediaStream.idl.
3302         * mediastream/MediaStream.cpp: Renamed from Source/WebCore/dom/MediaStream.cpp.
3303         (WebCore::MediaStream::create):
3304         (WebCore::MediaStream::MediaStream):
3305         (WebCore::MediaStream::~MediaStream):
3306         (WebCore::MediaStream::readyState):
3307         (WebCore::MediaStream::toMediaStream):
3308         (WebCore::MediaStream::streamEnded):
3309         (WebCore::MediaStream::scriptExecutionContext):
3310         (WebCore::MediaStream::eventTargetData):
3311         (WebCore::MediaStream::ensureEventTargetData):
3312         * mediastream/MediaStream.h: Renamed from Source/WebCore/dom/MediaStream.h.
3313         (WebCore::MediaStream::label):
3314         (WebCore::MediaStream::tracks):
3315         (WebCore::MediaStream::descriptor):
3316         (WebCore::MediaStream::refEventTarget):
3317         (WebCore::MediaStream::derefEventTarget):
3318         * mediastream/MediaStream.idl: Renamed from Source/WebCore/dom/MediaStream.idl.
3319         * mediastream/MediaStreamClient.h: Renamed from Source/WebCore/page/MediaStreamClient.h.
3320         (WebCore::MediaStreamClient::~MediaStreamClient):
3321         * mediastream/MediaStreamController.cpp: Renamed from Source/WebCore/page/MediaStreamController.cpp.
3322         (WebCore::MediaStreamController::Request::Request):
3323         (WebCore::MediaStreamController::Request::localId):
3324         (WebCore::MediaStreamController::Request::frameController):
3325         (WebCore::MediaStreamController::MediaStreamController):
3326         (WebCore::MediaStreamController::~MediaStreamController):
3327         (WebCore::MediaStreamController::isClientAvailable):
3328         (WebCore::MediaStreamController::unregisterFrameController):
3329         (WebCore::MediaStreamController::registerRequest):
3330         (WebCore::MediaStreamController::generateStream):
3331         (WebCore::MediaStreamController::streamGenerated):
3332         (WebCore::MediaStreamController::streamGenerationFailed):
3333         * mediastream/MediaStreamController.h: Renamed from Source/WebCore/page/MediaStreamController.h.
3334         * mediastream/MediaStreamEvent.cpp: Renamed from Source/WebCore/p2p/MediaStreamEvent.cpp.
3335         (WebCore::MediaStreamEvent::create):
3336         (WebCore::MediaStreamEvent::MediaStreamEvent):
3337         (WebCore::MediaStreamEvent::~MediaStreamEvent):
3338         (WebCore::MediaStreamEvent::initMediaStreamEvent):
3339         (WebCore::MediaStreamEvent::stream):
3340         * mediastream/MediaStreamEvent.h: Renamed from Source/WebCore/p2p/MediaStreamEvent.h.
3341         (WebCore::MediaStreamEvent::isMediaStreamEvent):
3342         * mediastream/MediaStreamEvent.idl: Renamed from Source/WebCore/p2p/MediaStreamEvent.idl.
3343         * mediastream/MediaStreamFrameController.cpp: Renamed from Source/WebCore/page/MediaStreamFrameController.cpp.
3344         (WebCore::MediaStreamFrameController::Request::~Request):
3345         (WebCore::MediaStreamFrameController::Request::scriptExecutionContext):
3346         (WebCore::MediaStreamFrameController::Request::isGenerateStreamRequest):
3347         (WebCore::MediaStreamFrameController::Request::Request):
3348         (WebCore::MediaStreamFrameController::GenerateStreamRequest::create):
3349         (WebCore::MediaStreamFrameController::GenerateStreamRequest::~GenerateStreamRequest):
3350         (WebCore::MediaStreamFrameController::GenerateStreamRequest::isGenerateStreamRequest):
3351         (WebCore::MediaStreamFrameController::GenerateStreamRequest::abort):
3352         (WebCore::MediaStreamFrameController::GenerateStreamRequest::successCallback):
3353         (WebCore::MediaStreamFrameController::GenerateStreamRequest::errorCallback):
3354         (WebCore::MediaStreamFrameController::GenerateStreamRequest::GenerateStreamRequest):
3355         (WebCore::MediaStreamFrameController::RequestMap::abort):
3356         (WebCore::MediaStreamFrameController::RequestMap::abortAll):
3357         (WebCore::MediaStreamFrameController::MediaStreamFrameController):
3358         (WebCore::MediaStreamFrameController::~MediaStreamFrameController):
3359         (WebCore::MediaStreamFrameController::securityOrigin):
3360         (WebCore::MediaStreamFrameController::scriptExecutionContext):
3361         (WebCore::MediaStreamFrameController::pageController):
3362         (WebCore::MediaStreamFrameController::enterDetachedState):
3363         (WebCore::MediaStreamFrameController::isClientAvailable):
3364         (WebCore::MediaStreamFrameController::disconnectPage):
3365         (WebCore::MediaStreamFrameController::disconnectFrame):
3366         (WebCore::MediaStreamFrameController::transferToNewPage):
3367         (WebCore::MediaStreamFrameController::parseGenerateStreamOptions):
3368         (WebCore::MediaStreamFrameController::generateStream):
3369         (WebCore::MediaStreamFrameController::streamGenerated):
3370         (WebCore::MediaStreamFrameController::streamGenerationFailed):
3371         * mediastream/MediaStreamFrameController.h: Renamed from Source/WebCore/page/MediaStreamFrameController.h.
3372         (WebCore::MediaStreamFrameController::IdGenerator::IdGenerator):
3373         (WebCore::MediaStreamFrameController::IdGenerator::getNextId):
3374         * mediastream/MediaStreamList.cpp: Renamed from Source/WebCore/dom/MediaStreamList.cpp.
3375         (WebCore::MediaStreamList::create):
3376         (WebCore::MediaStreamList::MediaStreamList):
3377         (WebCore::MediaStreamList::~MediaStreamList):
3378         (WebCore::MediaStreamList::length):
3379         (WebCore::MediaStreamList::item):
3380         (WebCore::MediaStreamList::append):
3381         (WebCore::MediaStreamList::remove):
3382         (WebCore::MediaStreamList::contains):
3383         * mediastream/MediaStreamList.h: Renamed from Source/WebCore/dom/MediaStreamList.h.
3384         * mediastream/MediaStreamList.idl: Renamed from Source/WebCore/dom/MediaStreamList.idl.
3385         * mediastream/MediaStreamRegistry.cpp: Renamed from Source/WebCore/platform/MediaStreamRegistry.cpp.
3386         (WebCore::MediaStreamRegistry::registry):
3387         (WebCore::MediaStreamRegistry::registerMediaStreamURL):
3388         (WebCore::MediaStreamRegistry::unregisterMediaStreamURL):
3389         (WebCore::MediaStreamRegistry::mediaStream):
3390         * mediastream/MediaStreamRegistry.h: Renamed from Source/WebCore/platform/MediaStreamRegistry.h.
3391         * mediastream/MediaStreamTrack.cpp: Renamed from Source/WebCore/dom/MediaStreamTrack.cpp.
3392         (WebCore::MediaStreamTrack::create):
3393         (WebCore::MediaStreamTrack::MediaStreamTrack):
3394         (WebCore::MediaStreamTrack::~MediaStreamTrack):
3395         (WebCore::MediaStreamTrack::kind):
3396         (WebCore::MediaStreamTrack::label):
3397         (WebCore::MediaStreamTrack::enabled):
3398         (WebCore::MediaStreamTrack::setEnabled):
3399         * mediastream/MediaStreamTrack.h: Renamed from Source/WebCore/dom/MediaStreamTrack.h.
3400         * mediastream/MediaStreamTrack.idl: Renamed from Source/WebCore/dom/MediaStreamTrack.idl.
3401         * mediastream/MediaStreamTrackList.cpp: Renamed from Source/WebCore/dom/MediaStreamTrackList.cpp.
3402         (WebCore::MediaStreamTrackList::create):
3403         (WebCore::MediaStreamTrackList::MediaStreamTrackList):
3404         (WebCore::MediaStreamTrackList::~MediaStreamTrackList):
3405         (WebCore::MediaStreamTrackList::length):
3406         (WebCore::MediaStreamTrackList::item):
3407         * mediastream/MediaStreamTrackList.h: Renamed from Source/WebCore/dom/MediaStreamTrackList.h.
3408         * mediastream/MediaStreamTrackList.idl: Renamed from Source/WebCore/dom/MediaStreamTrackList.idl.
3409         * mediastream/PeerConnection.cpp: Renamed from Source/WebCore/p2p/PeerConnection.cpp.
3410         (WebCore::PeerConnection::create):
3411         (WebCore::PeerConnection::PeerConnection):
3412         (WebCore::PeerConnection::~PeerConnection):
3413         (WebCore::PeerConnection::processSignalingMessage):
3414         (WebCore::PeerConnection::readyState):
3415         (WebCore::PeerConnection::send):
3416         (WebCore::PeerConnection::addStream):
3417         (WebCore::PeerConnection::removeStream):
3418         (WebCore::PeerConnection::localStreams):
3419         (WebCore::PeerConnection::remoteStreams):
3420         (WebCore::PeerConnection::close):
3421         (WebCore::PeerConnection::iceProcessingCompleted):
3422         (WebCore::PeerConnection::sdpGenerated):
3423         (WebCore::PeerConnection::dataStreamMessageReceived):
3424         (WebCore::PeerConnection::remoteStreamAdded):
3425         (WebCore::PeerConnection::remoteStreamRemoved):
3426         (WebCore::PeerConnection::toPeerConnection):
3427         (WebCore::PeerConnection::scriptExecutionContext):
3428         (WebCore::PeerConnection::stop):
3429         (WebCore::PeerConnection::eventTargetData):
3430         (WebCore::PeerConnection::ensureEventTargetData):
3431         (WebCore::PeerConnection::scheduleInitialNegotiation):
3432         (WebCore::PeerConnection::initialNegotiationTimerFired):
3433         (WebCore::PeerConnection::ensureStreamChangeScheduled):
3434         (WebCore::PeerConnection::streamChangeTimerFired):
3435         (WebCore::PeerConnection::scheduleReadyStateChange):
3436         (WebCore::PeerConnection::readyStateChangeTimerFired):
3437         (WebCore::PeerConnection::changeReadyState):
3438         * mediastream/PeerConnection.h: Renamed from Source/WebCore/p2p/PeerConnection.h.
3439         (WebCore::PeerConnection::refEventTarget):
3440         (WebCore::PeerConnection::derefEventTarget):
3441         * mediastream/PeerConnection.idl: Renamed from Source/WebCore/p2p/PeerConnection.idl.
3442         * mediastream/SignalingCallback.h: Renamed from Source/WebCore/p2p/SignalingCallback.h.
3443         (WebCore::SignalingCallback::~SignalingCallback):
3444         * mediastream/SignalingCallback.idl: Renamed from Source/WebCore/p2p/SignalingCallback.idl.
3445         * page/Frame.cpp:
3446         * page/Navigator.cpp:
3447         * page/Page.cpp:
3448
3449 2011-10-20  Pavel Feldman  <pfeldman@google.com>
3450
3451         Web Inspector: get rid of View::hide, View::set visible, View::attach,
3452         View::set visible.
3453         https://bugs.webkit.org/show_bug.cgi?id=70523
3454