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