[wx] Unreviewed build fix, fix the codepaths run under each CPU type.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-06-20  Kevin Ollivier  <kevino@theolliviers.com>
2
3         [wx] Unreviewed build fix, fix the codepaths run under each CPU type.
4
5         * platform/image-decoders/wx/ImageDecoderWx.cpp:
6         (WebCore::ImageFrame::asNewNativeImage):
7
8 2011-06-20  Ryosuke Niwa  <rniwa@webkit.org>
9
10         Reviewed by Ojan Vafai.
11
12         FrameSelection::modify should take verticalDisplacement instead of verticalDistance
13         https://bugs.webkit.org/show_bug.cgi?id=62932
14
15         Added new VerticalDirection enum to the argument list of FrameSelection::modify that takes
16         verticalDistance.  Also changed the type of verticalDistance from int to unsigned int
17         to accidentally pass a negative distance in the future.
18
19         * editing/EditorCommand.cpp:
20         (WebCore::verticalScrollDistance): Returns unsigned int instead of int.
21         (WebCore::executeMovePageDown): Calls FrameSelection::modify.
22         (WebCore::executeMovePageDownAndModifySelection): Ditto.
23         (WebCore::executeMovePageUp): Ditto.
24         (WebCore::executeMovePageUpAndModifySelection): Ditto.
25         * editing/FrameSelection.cpp:
26         (WebCore::FrameSelection::modify): Takes VerticalDirection as an argument.
27         * editing/FrameSelection.h:
28
29 2011-06-20  Anders Carlsson  <andersca@apple.com>
30
31         Reviewed by Adam Barth.
32
33         Don't use PassRefPtr variables in the V8 bindings generator
34         https://bugs.webkit.org/show_bug.cgi?id=62947
35
36         * bindings/scripts/CodeGeneratorV8.pm:
37
38 2011-06-20  Adam Barth  <abarth@webkit.org>
39
40         Reviewed by Alexey Proskuryakov.
41
42         ASSERT in WebCore::HTMLToken::appendToAttributeName when visiting www.nba.com
43         https://bugs.webkit.org/show_bug.cgi?id=61774
44
45         This ASSERT triggers for the same underlying issue that causes
46         Bug 62971: When we tokenize a </script> tag, we don't realize that
47         we've already consumed the "</script>" from the input stream when we
48         extracted the previous token.  That causes the source tracker to be
49         out-of-sync, triggering the incorrect view-source highlighting and this
50         ASSERT.
51
52         For now, let's just silence the assert while we work on Bug 62971.
53
54         Test: fast/parser/attributes-on-close-script.html
55
56         * html/parser/HTMLToken.h:
57         (WebCore::HTMLToken::appendToAttributeName):
58         (WebCore::AtomicHTMLToken::initializeAttributes):
59
60 2011-06-20  Andras Becsi  <abecsi@webkit.org>
61
62         Unreviewed build fix.
63
64         [Qt][V8] Include missing UnusedParam.h.
65
66         No new tests needed.
67
68         * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
69
70 2011-06-20  Andras Becsi  <abecsi@webkit.org>
71
72         Rubber-stamped by Csaba Osztrogon√°c.
73
74         [Qt][V8] Remove non-existing headers from project file.
75
76         No new tests needed.
77
78         * WebCore.pro: Remove ChildThreadDOMData.h and MainThreadDOMData.h,
79         since they have been already removed earlier from tree.
80
81 2011-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
82
83         Reviewed by Xan Lopez.
84
85         [GTK] Split libWebCore into two libWebCore and libWebCoreGtk
86         https://bugs.webkit.org/show_bug.cgi?id=60539
87
88         libWebCore contains all the webcore files except the ones actually
89         using gtk while libWebCoreGtk contains only the files using
90         gtk. It allows us to build a common WebCore lib and two different
91         gtk WebCore libs depending on the gtk version. In WeKit2 gtk2 is
92         not supported, but the plugin process needs to be built using gtk2
93         because plugins like flash still use gtk2. For WebKit2, we build
94         the common libWebCore and two libWebCoreGtk, one using gtk3 and
95         the other one using gtk2.
96
97         * GNUmakefile.am:
98         * GNUmakefile.list.am:
99
100 2011-06-20  Mike Reed  <reed@google.com>
101
102         Reviewed by Stephen White.
103
104         [Skia] remove repeated calls to setColor, which ignored global-alpha (previous setupPaintFor... already set the color+alpha)
105         https://bugs.webkit.org/show_bug.cgi?id=62988
106
107         No new tests. removing redundant calls
108
109         * platform/graphics/chromium/FontLinux.cpp:
110         (WebCore::Font::drawGlyphs):
111
112 2011-06-19  Martin Robinson  <mrobinson@igalia.com>
113
114         Reviewed by Xan Lopez.
115
116         [GTK] ASSERTION FAILED: it != gFontDataCache->end() in FontCache.cpp:318
117         https://bugs.webkit.org/show_bug.cgi?id=62942
118
119         Fix the == operator overload of the FreeType FontPlatformData to properly make the
120         distinction between the hash table deleted value and the hash table empty value.
121
122         No new tests. This is covered by existing tests, which should no longer
123         hit assertions.
124
125         * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
126         (WebCore::FontPlatformData::operator==): Reorder the logic for determining if two
127         FontPlatformData instances are equal. Do a pointer comparison on the Fontconfig patterns,
128         instead of using FcPatternEqual. If the two Fontconfig patterns have different pointers
129         they were created at different times and the overload should return false.
130
131 2011-06-20  Ilya Tikhonovsky  <loislo@chromium.org>
132
133         Reviewed by Yury Semikhatsky.
134
135         Web Inspector: It would be useful to be able to pause on element's style change.
136         https://bugs.webkit.org/show_bug.cgi?id=62982
137
138         Current workaround is to use mutation events but it's awkward and doesn't
139         compare _usability-wise_ to what could be implemented as native support in web inspector.
140         In complex applications, being able to see which code causes element to change its style is indispensable.
141
142         * inspector/InspectorDOMDebuggerAgent.cpp:
143         (WebCore::InspectorDOMDebuggerAgent::didInvalidateStyleAttr):
144         * inspector/InspectorDOMDebuggerAgent.h:
145         * inspector/InspectorInstrumentation.cpp:
146         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
147
148 2011-06-19  Mads Ager  <ager@chromium.org>
149
150         Reviewed by Adam Barth.
151
152         [V8] Fix WebGL bindings for subarrays
153         https://bugs.webkit.org/show_bug.cgi?id=62864
154
155         Mark WebGL subarrays as independent of other DOM objects in the
156         V8 bindings. This allows us to clean them up independently which
157         greatly improves performance.
158
159         * bindings/v8/V8Proxy.h:
160         (WebCore::toV8Independent):
161         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
162         (WebCore::constructWebGLArrayWithArrayBufferArgument):
163         (WebCore::constructWebGLArray):
164
165 2011-06-20  Yuta Kitamura  <yutak@chromium.org>
166
167         Unreviewed build fix for Chromium Clang builders.
168
169         * platform/graphics/FontFallbackList.h: Declare SVGTextRunRenderingContext as class, not struct.
170
171 2011-06-20  MORITA Hajime <morrita@google.com>
172
173         Unreviewed GTK build fix.
174         This change touched the file to make the build happen.
175
176         * dom/EventTarget.cpp:
177
178 2011-06-20  Nikolas Zimmermann  <nzimmermann@rim.com>
179
180         Reviewed by Rob Buis.
181
182         Integrate SVG Fonts within GlyphPage concept, removing the special SVG code paths from Font, making it possible to reuse the simple text code path for SVG Fonts
183         https://bugs.webkit.org/show_bug.cgi?id=59085
184
185         font substitution doesn't work for HTML text using SVG fonts
186         https://bugs.webkit.org/show_bug.cgi?id=17608
187
188         Selection rects are wrong for text with SVG fonts
189         https://bugs.webkit.org/show_bug.cgi?id=25460
190
191         With @font-face, SVG fonts only work as primary, non-segmented
192         https://bugs.webkit.org/show_bug.cgi?id=32227
193
194         When using SVG fonts with @font-face word-spacing and text-align: justify are not being honored
195         https://bugs.webkit.org/show_bug.cgi?id=34236
196
197         SVG @font-face breaks text-overflow: ellipsis
198         https://bugs.webkit.org/show_bug.cgi?id=36840
199
200         REGRESSION: SVG Font selection problems
201         https://bugs.webkit.org/show_bug.cgi?id=41934
202
203         Tests: svg/custom/svg-fonts-fallback.xhtml (for bug 17608, extended the original test from Mark Ambachtsheer)
204                svg/custom/svg-fonts-segmented.xhtml (for bug 32227)
205                svg/custom/svg-fonts-word-spacing.html (for bug 34236, from Michael Lewis)
206                svg/text/select-text-svgfont.html (for bug 25460/41934, from Emil Schutte)
207                svg/text/text-overflow-ellipsis-svgfont.html (for 36840, from Emil Schutte)
208
209         Rewrite the SVG Fonts support to fully integrate within the GlyphPage concept and the "simple" code path used to render platform fonts.
210         That means the special logic for measuring text using SVG Fonts, calculating offset for positions, computing selection rects etc. is all gone now.
211         There's no difference anymore between using a native font or a SVG Font, in terms of these operations.
212
213         This makes text selection using SVG Fonts possible again.
214
215         * features.pri: Temporarily turn of SVG Fonts for Qt, as long as QRawFont support is not available and the fast path is disabled.
216         * page/DOMWindow.idl: Touched file to force Qt regenerating the bindings.
217         * platform/graphics/Font.cpp: Remove SVG Font special cases, the simple code path now handles SVG Fonts as well.
218         (WebCore::Font::drawText):
219         (WebCore::Font::drawEmphasisMarks):
220         (WebCore::Font::width):
221         (WebCore::Font::selectionRectForText):
222         (WebCore::Font::offsetForPosition):
223         (WebCore::Font::codePath):
224         * platform/graphics/Font.h: Pass TextRun to drawGlyphBuffer/drawEmphasisMarks. Add new glyphDataAndPageForCharacter() method which returns a pair
225                                     std::pair<GlyphData, GlyphPage*>, so we know the associated GlyphPage for a certain GlyphData object, which is needed to properly
226                                     handle font fallback glyph matching for SVG Fonts..
227         (WebCore::Font::fontList): Add FontFallbackList accessor.
228         * platform/graphics/FontFallbackList.h: Add getters/setters for glyphPageZero -- SVG Fonts support needs access to these objects from SVGTextRunRenderingContext.
229         (WebCore::FontFallbackList::glyphPageZero):
230         (WebCore::FontFallbackList::glyphPages):
231         (WebCore::FontFallbackList::setGlyphPageZero):
232         (WebCore::FontFallbackList::setGlyphPages):
233         * platform/graphics/FontFastPath.cpp:
234         (WebCore::Font::glyphDataForCharacter): Move implementation to glyphDataAndPageForCharacter(), and use that method from here.
235         (WebCore::Font::glyphDataAndPageForCharacter): Does the same as before, just returns an additional GlyphPage* pointer.
236         (WebCore::Font::getEmphasisMarkGlyphData): Remove SVG Fonts special case.
237         (WebCore::Font::drawGlyphBuffer): Ditto.
238         * platform/graphics/FontMetrics.h:
239         (WebCore::scaleEmToUnits): Refactored scaleEmToUnits free function from SimpleFontDataMac/CGWin to share with SVGFontData/SVGTextRunRenderingContext.
240         * platform/graphics/GlyphPageTreeNode.cpp:
241         (WebCore::fill): Stop skipping SVG Fonts, they now also fill the GlyphPage using the glyphs defined in the SVG Font.
242         * platform/graphics/SVGGlyph.h: s/isValid/isPartOfLigature/. Its usage has been changed.
243         (WebCore::SVGGlyph::SVGGlyph):
244         (WebCore::SVGGlyph::operator==):
245         * platform/graphics/SimpleFontData.cpp: Change font size to be a float, not an int.
246         (WebCore::SimpleFontData::SimpleFontData):
247         * platform/graphics/SimpleFontData.h: Add new pure virtual methods to the AdditionalFontData interface, to be implemented in SVGFontData.
248         (WebCore::SimpleFontData::widthForGlyph): Call widthForSVGGlyph, if we encounter a SVG glyph.
249         * platform/graphics/TextRun.h: 
250         * platform/graphics/WidthIterator.cpp:
251         (WebCore::WidthIterator::glyphDataForCharacter):
252         (WebCore::WidthIterator::advance):
253         * platform/graphics/WidthIterator.h: Store several new members needed for SVG Fonts support (last processed glyph name used for kerning pair lookup)
254                                              and a map mapping each character of a text to its arabic-form (if needed, to perform SVG glyph selection for Arabic text).
255         (WebCore::WidthIterator::run):
256         (WebCore::WidthIterator::runWidthSoFar):
257         (WebCore::WidthIterator::lastGlyphName):
258         (WebCore::WidthIterator::setLastGlyphName):
259         (WebCore::WidthIterator::arabicForms):
260         * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp: Use new scaleEmToUnits free function from FontMetrics.h.
261         * platform/graphics/mac/SimpleFontDataMac.mm: Ditto.
262         * platform/graphics/win/SimpleFontDataCGWin.cpp: Ditto.
263         * rendering/svg/SVGTextMetrics.cpp:
264         (WebCore::SVGTextMetrics::SVGTextMetrics):
265         (WebCore::constructTextRun):
266         (WebCore::SVGTextMetrics::measureCharacterRange):
267         * rendering/svg/SVGTextMetrics.h:
268         * rendering/svg/SVGTextRunRenderingContext.cpp: Remove drawTextUsingSVGFont/floatWidthUsingSVGFont/selectionRectForTextUsingSVGFont/offsetForPositionForTextUsingSVGFont.
269         (WebCore::firstParentRendererForNonTextNode): Don't assert node() exists, doesn't hold true for generated render objects.
270         (WebCore::renderObjectFromRun): Renamed from referencingRenderObjectFromRun.
271         (WebCore::SVGTextRunRenderingContext::floatWidthUsingSVGFont): Remove extra "extraCharsAvailable" parameter, now solves via TextRun::charactersLength().
272         (WebCore::calculateEmUnitToPixelScaleFactor): Add helper method.
273         (WebCore::SVGTextRunRenderingContext::drawSVGGlyphs): Main drawing method, this actually creates/renders Paths.
274         (WebCore::SVGTextRunRenderingContext::glyphDataForCharacter): Part 1/2 of SVG Glyph selection code.
275         * rendering/svg/SVGTextRunRenderingContext.h:
276         * svg/SVGAltGlyphElement.cpp:
277         (WebCore::SVGAltGlyphElement::hasValidGlyphElement):
278         * svg/SVGAltGlyphElement.h:
279         * svg/SVGFontData.cpp:
280         (WebCore::calculateEmUnitToPixelScaleFactor): Add helper method.
281         (WebCore::SVGFontData::initializeFontData): Changed font size from int to float.
282         (WebCore::SVGFontData::widthForSVGGlyph): Lookup a SVGGlyph from a Glyph using the glyph table in SVGFontElement and calculate its width.
283         (WebCore::SVGFontData::applySVGGlyphSelection): Part 2/2 of SVG Glyph selection code.
284         (WebCore::SVGFontData::fillSVGGlyphPage): Fill GlyphPage using glyphs defined in the SVG Font.
285         * svg/SVGFontData.h:
286         * svg/SVGFontElement.cpp:
287         (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Enable ligature registration for the use within GlyphPage.
288         (WebCore::SVGFontElement::ensureGlyphCache):
289         * svg/SVGGlyphMap.h:
290         (WebCore::SVGGlyphMap::addGlyphByUnicodeString): Remove setting isValid, it's not needed anymore and gone.
291         * svg/svgtags.in: Surround vkern in ENABLE_SVG_FONTS block.
292
293 2011-06-19  MORITA Hajime  <morrita@google.com>
294
295         Reviewed by Dimitri Glazkov.
296
297         The internals object should have createShadowContentElement()
298         https://bugs.webkit.org/show_bug.cgi?id=62432
299
300         This change:
301         - added Internals::createShadowContentElement(), which creates,
302           ShadowContentElement instance which includes all host children,
303         - added Internals::elementRenderTreeAsText() to help content layout testing, and
304         - Unabstracted ShadowContentElement by giving a default shouldInclude() implementation.
305         
306         Test: fast/dom/shadow/create-content-element.html
307
308         * WebCore.exp.in:
309         * dom/ShadowContentElement.cpp:
310         (WebCore::ShadowContentElement::create): Added.
311         (WebCore::ShadowContentElement::ShadowContentElement):
312         (WebCore::ShadowContentElement::~ShadowContentElement):
313         (WebCore::ShadowContentElement::shouldInclude): Gave a default implementation which always returns true.
314         * dom/ShadowContentElement.h:
315         * html/HTMLSummaryElement.cpp:
316         (WebCore::SummaryContentElement::SummaryContentElement):
317         * rendering/RenderTreeAsText.cpp:
318         (WebCore::externalRepresentation): Factored out for supportin per-element render tree dump.
319         * rendering/RenderTreeAsText.h:
320         * testing/Internals.cpp:
321         (WebCore::Internals::createShadowContentElement): Added.
322         (WebCore::Internals::elementRenderTreeAsText): dded.
323         * testing/Internals.h:
324         * testing/Internals.idl:
325
326 2011-06-19  Keishi Hattori  <keishi@webkit.org>
327
328         Reviewed by Kent Tamura.
329
330         Clicking indeterminate checkbox should flip checkedness state
331         https://bugs.webkit.org/show_bug.cgi?id=62262
332
333         Test: fast/forms/checkbox-click-indeterminate.html
334
335         * html/CheckboxInputType.cpp:
336         (WebCore::CheckboxInputType::willDispatchClick): Changed to flip checked flag when indeterminate.
337
338 2011-06-19  Adam Bergkvist  <adam.bergkvist@ericsson.com>
339
340         Reviewed by Martin Robinson.
341
342         [GTK] Enable Media Stream feature and make it default on
343         https://bugs.webkit.org/show_bug.cgi?id=60394
344
345         * GNUmakefile.am:
346
347 2011-06-19  Una Sabovic  <una.sabovic@palm.com>
348
349         Reviewed by Darin Adler.
350
351         Optimization: avoid call to clearRect() when bgColor is valid when painting the root background in RenderBoxModelObject::paintFillLayerExtended
352         https://bugs.webkit.org/show_bug.cgi?id=62908
353
354         When root layers base color is fully transparent backgroundRect was cleared before bgColor is applied.
355         Instead of clearing the rect we apply CompositeCopy operation when painting the background color.
356
357         No new tests. This is an optimization, it doesn't change any existing functionality.
358
359         * platform/graphics/GraphicsContext.cpp:
360         (WebCore::GraphicsContext::fillRect):
361         * platform/graphics/GraphicsContext.h:
362         * rendering/RenderBoxModelObject.cpp:
363         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
364
365 2011-06-19  Dirk Schulze  <krit@webkit.org>
366
367         Reviewed by Nikolas Zimmermann.
368
369         SVGAnimatorFactory does not support SVGNumber
370         https://bugs.webkit.org/show_bug.cgi?id=62938
371
372         Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368
373         This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGNumber. With the new animator for the
374         With the new animator for SVGNumber we also support the scientific notation, and everything else that's supported by
375         the SVGNumber parsing, removing the SVGAnimate* specific number parsing functionality.
376
377         Moving the content of SVGAnimatedType header into its own cpp.
378         
379         Changed behavior of parseNumberFromString(). It checks if the String simply consits of a number now. parseNumberFromString()
380         is using genericParseNumber() for parsing numbers. But this method just stops at the first char that does not belong to a number and
381         returns true. I added a check if the current char pointer is at the last char of the String and return false if not.
382
383         Tests: svg/animations/svgnumber-animation-1.html
384                svg/animations/svgnumber-animation-2.html
385                svg/animations/svgnumber-animation-3.html
386
387         * CMakeLists.txt: Added new files to build system.
388         * GNUmakefile.list.am: Ditto.
389         * WebCore.gypi: Ditto.
390         * WebCore.pro: Ditto.
391         * WebCore.xcodeproj/project.pbxproj: Ditto.
392         * svg/SVGAllInOne.cpp: Ditto.
393         * svg/SVGAnimateElement.cpp: Use SVGAnimatedNumberAnimator for animations of SVGNumbers.
394         (WebCore::SVGAnimateElement::SVGAnimateElement):
395         (WebCore::SVGAnimateElement::calculateAnimatedValue):
396         (WebCore::SVGAnimateElement::calculateFromAndToValues):
397         (WebCore::SVGAnimateElement::calculateFromAndByValues):
398         (WebCore::SVGAnimateElement::resetToBaseValue):
399         (WebCore::SVGAnimateElement::applyResultsToTarget):
400         (WebCore::SVGAnimateElement::calculateDistance):
401         * svg/SVGAnimateElement.h: Remove floats for value storage. This is done by SVGAnimatedTypes now.
402         * svg/SVGAnimatedNumber.cpp: Added. Animator for SVGNumbers.
403         (WebCore::SVGAnimatedNumberAnimator::SVGAnimatedNumberAnimator):
404         (WebCore::SVGAnimatedNumberAnimator::constructFromString):
405         (WebCore::SVGAnimatedNumberAnimator::calculateFromAndToValues):
406         (WebCore::SVGAnimatedNumberAnimator::calculateFromAndByValues):
407         (WebCore::SVGAnimatedNumberAnimator::calculateAnimatedValue):
408         (WebCore::SVGAnimatedNumberAnimator::calculateDistance):
409         * svg/SVGAnimatedNumber.h:
410         (WebCore::SVGAnimatedNumberAnimator::~SVGAnimatedNumberAnimator):
411         * svg/SVGAnimatedType.cpp: Added. Moved content from header to cpp.
412         (WebCore::SVGAnimatedType::SVGAnimatedType):
413         (WebCore::SVGAnimatedType::~SVGAnimatedType):
414         (WebCore::SVGAnimatedType::createAngle):
415         (WebCore::SVGAnimatedType::createLength):
416         (WebCore::SVGAnimatedType::createNumber):
417         (WebCore::SVGAnimatedType::angle):
418         (WebCore::SVGAnimatedType::length):
419         (WebCore::SVGAnimatedType::number):
420         (WebCore::SVGAnimatedType::valueAsString):
421         (WebCore::SVGAnimatedType::setValueAsString):
422         * svg/SVGAnimatedType.h: Removed method create(). Allways call type specific create funtcions.
423         * svg/SVGAnimatorFactory.h:
424         (WebCore::SVGAnimatorFactory::create):
425         * svg/SVGParserUtilities.cpp:
426         (WebCore::parseNumberFromString): Check if String simply consits of a number. Return false otherwise.
427
428 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
429
430         Reviewed by Darin Adler.
431
432         Separate concerns of loading file icons and choosing files.
433         https://bugs.webkit.org/show_bug.cgi?id=62931
434
435         Loading an icon and choosing files have similar async nature, but completely different
436         lifetimes: FileChooser should only exist when we are actually attempting to choose a file,
437         not anytime we need to render an input with a proper icon.
438
439         This patch introduces FileIconLoader, a separate abstraction for loading an icon, and removes
440         any notion of an icon from the FileChooser.
441
442         Also, the loaded icon is now stored on the RenderFileUploadControl, which better matches its
443         purpose.
444
445         Refactoring, covered by existing tests.
446
447         * CMakeLists.txt: Added FileIconLoader to build system.
448         * GNUmakefile.list.am: Ditto.
449         * WebCore.exp.in: Updated.
450         * WebCore.gypi: Added FileIconLoader to build system.
451         * WebCore.pro: Ditto.
452         * WebCore.vcproj/WebCore.vcproj: Ditto.
453         * WebCore.xcodeproj/project.pbxproj: Ditto.
454         * loader/EmptyClients.h: Updated.
455         (WebCore::EmptyChromeClient::loadIconForFiles): Renamed function to better reflect what it does.
456         * page/Chrome.cpp:
457         (WebCore::Chrome::loadIconForFiles): Ditto.
458         * page/Chrome.h: Ditto.
459         * page/ChromeClient.h: Ditto.
460         * platform/FileChooser.cpp:
461         (WebCore::FileChooser::FileChooser): Removed now-unnecessary bool.
462         (WebCore::FileChooser::create): Removed the tangled web.
463         (WebCore::FileChooser::clear): Removed icon-related code.
464         (WebCore::FileChooser::chooseFiles): Ditto.
465         * platform/FileChooser.h:
466         * platform/FileIconLoader.cpp: Copied from Source/WebCore/platform/FileChooser.cpp.
467         (WebCore::FileIconLoaderClient::~FileIconLoaderClient): Added.
468         (WebCore::FileIconLoader::create): Added.
469         (WebCore::FileIconLoader::disconnectClient): Added.
470         (WebCore::FileIconLoader::notifyFinished): Added.
471         (WebCore::FileIconLoader::FileIconLoader): Added.
472         * platform/FileIconLoader.h: Copied from Source/WebCore/platform/FileChooser.cpp.
473         * rendering/RenderFileUploadControl.cpp:
474         (WebCore::RenderFileUploadControl::RenderFileUploadControl): Added new member initializations.
475         (WebCore::RenderFileUploadControl::~RenderFileUploadControl): Added FileIconLoader disconnect.s
476         (WebCore::RenderFileUploadControl::requestIcon): Added a helper.
477         (WebCore::RenderFileUploadControl::valueChanged): Changed to request an icon load.
478         (WebCore::RenderFileUploadControl::updateRendering): Added implementation of FileIconLoaderClient func.
479         (WebCore::RenderFileUploadControl::updateFromElement): Added clearing of icon.
480         (WebCore::RenderFileUploadControl::maxFilenameWidth): Changed to use new member directly.
481         (WebCore::RenderFileUploadControl::paintObject): Ditto.
482         (WebCore::RenderFileUploadControl::fileTextValue): Ditto.
483         * rendering/RenderFileUploadControl.h: Updated decls.
484
485 2011-06-19  Michael Saboff  <msaboff@apple.com>
486
487         Reviewed by Darin Adler.
488
489         Add notify handler to trigger MemoryPressureHandler in all builds
490         https://bugs.webkit.org/show_bug.cgi?id=62679
491
492         Removed SIGUSR2 trigger and added a notify trigger for the
493         MemoryPressureHandler.  The notify trigger is enabled for all builds.
494
495         No test added as only added new memory pressure trigger.
496
497         * platform/mac/MemoryPressureHandlerMac.mm:
498         (WebCore::MemoryPressureHandler::install):
499
500 2011-06-19  Robert Hogan  <robert@webkit.org>
501
502         Reviewed by Alexey Proskuryakov.
503
504         [Qt] Qt Counterpart for http://trac.webkit.org/changeset/42078
505         https://bugs.webkit.org/show_bug.cgi?id=62514
506
507         * platform/network/qt/ResourceHandleQt.cpp:
508         (WebCore::WebCoreSynchronousLoader::willSendRequest):
509
510 2011-06-18  Yufeng Shen  <miletus@chromium.org>
511
512         Reviewed by Darin Fisher.
513
514         Adding "force" filed to Touch Event
515         https://bugs.webkit.org/show_bug.cgi?id=62766
516
517         * dom/Document.cpp:
518         (WebCore::Document::createTouch):
519         * dom/Document.h:
520         * dom/Document.idl:
521         * dom/Touch.cpp:
522         (WebCore::Touch::Touch):
523         * dom/Touch.h:
524         (WebCore::Touch::create):
525         (WebCore::Touch::webkitForce):
526         * dom/Touch.idl:
527         * page/EventHandler.cpp:
528         (WebCore::EventHandler::handleTouchEvent):
529         * platform/PlatformTouchPoint.h:
530         (WebCore::PlatformTouchPoint::force):
531
532 2011-06-18  Jer Noble  <jer.noble@apple.com>
533
534         Reviewed by Darin Adler.
535
536         Rename Document::setContainsFullScreenElementRecursively
537         https://bugs.webkit.org/show_bug.cgi?id=62528
538
539         No new tests; no net change in functionality, so this is covered by existing tests.
540
541         The name of setContainsFullScreenElementRecursively is confusing, since it doesn't actually use
542         recursion, and it walks the ancestor tree instead of the descendent tree (as recursive might
543         otherwise imply).  Move the function into Element, turn it into a member function, and change 
544         the behavior so that the function operates on the called object's parents (as opposed to the 
545         object itself).
546
547         * dom/Element.h:
548         * dom/Element.cpp:
549         (WebCore::parentCrossingFrameBoundaries): Added.
550         (WebCore::Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries): Renamed and 
551             moved from Document.
552         (WebCore::Element::willRemove): Use the newly renamed function.
553         (WebCore::Element::insertedIntoTree): Ditto.
554         * dom/Document.h:
555         * dom/Document.cpp:
556         (WebCore::Document::webkitWillEnterFullScreenForElement): Ditto.
557         (WebCore::Document::webkitWillExitFullScreenForElement): Ditto.
558         (WebCore::Document::fullScreenElementRemoved): Ditto.
559
560 2011-06-18  Alice Boxhall  <aboxhall@chromium.org>
561
562         Reviewed by Chris Fleizach.
563
564         Accessibility description for an element should make use of aria-labelledby.
565         https://bugs.webkit.org/show_bug.cgi?id=61995
566
567         Tests: accessibility/aria-labelledby-overrides-aria-label.html
568
569         * accessibility/AccessibilityRenderObject.cpp:
570         (WebCore::AccessibilityRenderObject::title): Don't return value from aria-labelledby.
571         (WebCore::AccessibilityRenderObject::ariaAccessibilityDescription): Return value from aria-labelledby in preference to value from aria-label.
572
573 2011-06-18  Christoph Mende  <mende.christoph@gmail.com>
574
575         Reviewed by Darin Adler.
576
577         compilation fails with libpng-1.5
578         https://bugs.webkit.org/show_bug.cgi?id=61738
579
580         * platform/image-encoders/skia/PNGImageEncoder.cpp:
581         (WebCore::writeOutput): Use getter function instead of direct access
582
583 2011-06-18  Jeremy Moskovich  <jeremy@chromium.org>
584
585         Reviewed by Eric Seidel.
586
587         Set text-align:-webkit-match-parent for li elements in the default style sheet.
588         https://bugs.webkit.org/show_bug.cgi?id=57232
589
590         Test: fast/css/list-item-text-align.html
591
592         * css/html.css:
593         (li): Specify text-align:-webkit-match-parent .
594
595 2011-06-18  Holger Hans Peter Freyther  <holger@moiji-mobile.com>
596
597         Reviewed by Brent Fulgham.
598
599         [misc] JSC/wtf/text/*.h should not be included via #include ""
600         https://bugs.webkit.org/show_bug.cgi?id=60836
601
602         Adam Barth pointed out that one should not include files from
603         JavaScriptCore/wtf/text using #include "File.h". This change
604         is addressing it.
605
606         * CMakeListsEfl.txt: Remove JavaScriptCore/wtf/text.
607         * CMakeListsWinCE.txt: Remove JavaScriptCore/wtf/text.
608         * platform/graphics/freetype/FontCacheFreeType.cpp: Change CString.h include.
609         * platform/graphics/pango/FontCachePango.cpp: Change CString.h include.
610         * platform/graphics/wx/FontPlatformData.h: Change StringImpl.h include.
611         * platform/network/soup/ResourceHandleSoup.cpp: Change CString.h include.
612         * platform/network/soup/SocketStreamHandleSoup.cpp: Change CString.h include.
613
614 2011-06-18  Sam Weinig  <sam@webkit.org>
615
616         Reviewed by Darin Adler.
617
618         REGRESSION (r63854-63958): placeholder not shown for number inputs
619         https://bugs.webkit.org/show_bug.cgi?id=61095
620
621         Refactor HTMLInputElement supportsPlaceholder support to delegate to the
622         InputType. Make BaseTextInputType and NumberInputType return true, matching
623         the current HTML5 spec.
624
625         * html/BaseTextInputType.cpp:
626         (WebCore::BaseTextInputType::supportsPlaceholder):
627         * html/BaseTextInputType.h:
628         Add override implementation of supportsPlaceholder that returns true.
629
630         * html/HTMLInputElement.cpp:
631         (WebCore::HTMLInputElement::supportsPlaceholder):
632         Delegate to the InputType.
633
634         * html/InputType.cpp:
635         (WebCore::InputType::supportsPlaceholder):
636         * html/InputType.h:
637         Add base implementation of supportsPlaceholder that returns false.
638
639         * html/NumberInputType.cpp:
640         (WebCore::NumberInputType::supportsPlaceholder):
641         * html/NumberInputType.h:
642         Add override implementation of supportsPlaceholder that returns true.
643
644 2011-06-18  Sheriff Bot  <webkit.review.bot@gmail.com>
645
646         Unreviewed, rolling out r89154.
647         http://trac.webkit.org/changeset/89154
648         https://bugs.webkit.org/show_bug.cgi?id=62926
649
650         It broke debug build on Qt (Requested by Ossy_weekend on
651         #webkit).
652
653         * platform/network/qt/ResourceHandleQt.cpp:
654
655 2011-06-18  Sheriff Bot  <webkit.review.bot@gmail.com>
656
657         Unreviewed, rolling out r89189.
658         http://trac.webkit.org/changeset/89189
659         https://bugs.webkit.org/show_bug.cgi?id=62925
660
661         It broke Qt build (Requested by Ossy_weekend on #webkit).
662
663         * bindings/scripts/test/TestInterface.idl:
664         * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
665         * css/CSSCharsetRule.idl:
666         * css/CSSFontFaceRule.idl:
667         * css/CSSImportRule.idl:
668         * css/CSSPageRule.idl:
669         * css/CSSRule.idl:
670         * css/CSSStyleRule.idl:
671         * css/CSSUnknownRule.idl:
672         * css/CSSValue.idl:
673         * css/Counter.idl:
674         * css/RGBColor.idl:
675         * css/Rect.idl:
676         * css/StyleSheet.idl:
677         * css/WebKitCSSKeyframeRule.idl:
678         * css/WebKitCSSTransformValue.idl:
679         * dom/Attr.idl:
680         * dom/CDATASection.idl:
681         * dom/ClientRect.idl:
682         * dom/Comment.idl:
683         * dom/DOMCoreException.idl:
684         * dom/DOMStringMap.idl:
685         * dom/DocumentType.idl:
686         * dom/Entity.idl:
687         * dom/EntityReference.idl:
688         * dom/EventException.idl:
689         * dom/GeneratedStream.idl:
690         * dom/MessageChannel.idl:
691         * dom/NodeIterator.idl:
692         * dom/Notation.idl:
693         * dom/ProcessingInstruction.idl:
694         * dom/RangeException.idl:
695         * dom/Touch.idl:
696         * dom/TreeWalker.idl:
697         * fileapi/DOMFileSystem.idl:
698         * fileapi/DOMFileSystemSync.idl:
699         * fileapi/DirectoryReaderSync.idl:
700         * fileapi/File.idl:
701         * fileapi/FileEntrySync.idl:
702         * fileapi/FileError.idl:
703         * fileapi/FileException.idl:
704         * fileapi/Metadata.idl:
705         * fileapi/OperationNotAllowedException.idl:
706         * fileapi/WebKitFlags.idl:
707         * html/DOMSettableTokenList.idl:
708         * html/HTMLAppletElement.idl:
709         * html/HTMLAreaElement.idl:
710         * html/HTMLBRElement.idl:
711         * html/HTMLBaseElement.idl:
712         * html/HTMLBaseFontElement.idl:
713         * html/HTMLBlockquoteElement.idl:
714         * html/HTMLBodyElement.idl:
715         * html/HTMLDListElement.idl:
716         * html/HTMLDataListElement.idl:
717         * html/HTMLDetailsElement.idl:
718         * html/HTMLDirectoryElement.idl:
719         * html/HTMLEmbedElement.idl:
720         * html/HTMLFontElement.idl:
721         * html/HTMLFormElement.idl:
722         * html/HTMLFrameElement.idl:
723         * html/HTMLFrameSetElement.idl:
724         * html/HTMLHRElement.idl:
725         * html/HTMLHeadElement.idl:
726         * html/HTMLHeadingElement.idl:
727         * html/HTMLHtmlElement.idl:
728         * html/HTMLIFrameElement.idl:
729         * html/HTMLImageElement.idl:
730         * html/HTMLIsIndexElement.idl:
731         * html/HTMLLIElement.idl:
732         * html/HTMLLabelElement.idl:
733         * html/HTMLLegendElement.idl:
734         * html/HTMLLinkElement.idl:
735         * html/HTMLMapElement.idl:
736         * html/HTMLMarqueeElement.idl:
737         * html/HTMLMenuElement.idl:
738         * html/HTMLMetaElement.idl:
739         * html/HTMLMeterElement.idl:
740         * html/HTMLModElement.idl:
741         * html/HTMLOListElement.idl:
742         * html/HTMLOptGroupElement.idl:
743         * html/HTMLOptionElement.idl:
744         * html/HTMLParagraphElement.idl:
745         * html/HTMLParamElement.idl:
746         * html/HTMLPreElement.idl:
747         * html/HTMLProgressElement.idl:
748         * html/HTMLQuoteElement.idl:
749         * html/HTMLScriptElement.idl:
750         * html/HTMLSourceElement.idl:
751         * html/HTMLStyleElement.idl:
752         * html/HTMLTableCaptionElement.idl:
753         * html/HTMLTableCellElement.idl:
754         * html/HTMLTableColElement.idl:
755         * html/HTMLTitleElement.idl:
756         * html/HTMLTrackElement.idl:
757         * html/HTMLUListElement.idl:
758         * html/ImageData.idl:
759         * html/MediaError.idl:
760         * html/SpellcheckRange.idl:
761         * html/TextMetrics.idl:
762         * html/ValidityState.idl:
763         * html/VoidCallback.idl:
764         * html/canvas/ArrayBuffer.idl:
765         * html/canvas/ArrayBufferView.idl:
766         * html/canvas/CanvasPattern.idl:
767         * html/canvas/CanvasPixelArray.idl:
768         * html/canvas/CanvasRenderingContext.idl:
769         * html/canvas/DataView.idl:
770         * html/canvas/OESStandardDerivatives.idl:
771         * html/canvas/OESTextureFloat.idl:
772         * html/canvas/WebGLActiveInfo.idl:
773         * html/canvas/WebGLBuffer.idl:
774         * html/canvas/WebGLContextAttributes.idl:
775         * html/canvas/WebGLFramebuffer.idl:
776         * html/canvas/WebGLProgram.idl:
777         * html/canvas/WebGLRenderbuffer.idl:
778         * html/canvas/WebGLShader.idl:
779         * html/canvas/WebGLTexture.idl:
780         * html/canvas/WebGLUniformLocation.idl:
781         * html/canvas/WebGLVertexArrayObjectOES.idl:
782         * html/canvas/WebKitLoseContext.idl:
783         * inspector/ScriptProfile.idl:
784         * inspector/ScriptProfileNode.idl:
785         * page/AbstractView.idl:
786         * page/BarInfo.idl:
787         * page/Coordinates.idl:
788         * page/Geoposition.idl:
789         * page/MemoryInfo.idl:
790         * page/NavigatorUserMediaError.idl:
791         * page/Performance.idl:
792         * page/PerformanceNavigation.idl:
793         * page/PerformanceTiming.idl:
794         * page/PositionError.idl:
795         * page/Screen.idl:
796         * page/SpeechInputEvent.idl:
797         * page/SpeechInputResult.idl:
798         * page/WebKitAnimation.idl:
799         * page/WebKitPoint.idl:
800         * page/WorkerNavigator.idl:
801         * plugins/DOMMimeType.idl:
802         * storage/Database.idl:
803         * storage/DatabaseSync.idl:
804         * storage/IDBAny.idl:
805         * storage/IDBCursorWithValue.idl:
806         * storage/IDBDatabaseError.idl:
807         * storage/IDBDatabaseException.idl:
808         * storage/IDBKey.idl:
809         * storage/IDBVersionChangeEvent.idl:
810         * storage/IDBVersionChangeRequest.idl:
811         * storage/SQLError.idl:
812         * storage/SQLException.idl:
813         * storage/SQLResultSet.idl:
814         * svg/SVGAElement.idl:
815         * svg/SVGAltGlyphElement.idl:
816         * svg/SVGAngle.idl:
817         * svg/SVGAnimateColorElement.idl:
818         * svg/SVGAnimateElement.idl:
819         * svg/SVGAnimateMotionElement.idl:
820         * svg/SVGAnimateTransformElement.idl:
821         * svg/SVGAnimatedAngle.idl:
822         * svg/SVGAnimatedBoolean.idl:
823         * svg/SVGAnimatedEnumeration.idl:
824         * svg/SVGAnimatedInteger.idl:
825         * svg/SVGAnimatedLength.idl:
826         * svg/SVGAnimatedLengthList.idl:
827         * svg/SVGAnimatedNumber.idl:
828         * svg/SVGAnimatedNumberList.idl:
829         * svg/SVGAnimatedPreserveAspectRatio.idl:
830         * svg/SVGAnimatedRect.idl:
831         * svg/SVGAnimatedString.idl:
832         * svg/SVGAnimatedTransformList.idl:
833         * svg/SVGCircleElement.idl:
834         * svg/SVGClipPathElement.idl:
835         * svg/SVGColor.idl:
836         * svg/SVGComponentTransferFunctionElement.idl:
837         * svg/SVGCursorElement.idl:
838         * svg/SVGDefsElement.idl:
839         * svg/SVGDescElement.idl:
840         * svg/SVGElement.idl:
841         * svg/SVGEllipseElement.idl:
842         * svg/SVGExternalResourcesRequired.idl:
843         * svg/SVGFEBlendElement.idl:
844         * svg/SVGFEColorMatrixElement.idl:
845         * svg/SVGFEComponentTransferElement.idl:
846         * svg/SVGFECompositeElement.idl:
847         * svg/SVGFEConvolveMatrixElement.idl:
848         * svg/SVGFEDiffuseLightingElement.idl:
849         * svg/SVGFEDisplacementMapElement.idl:
850         * svg/SVGFEDistantLightElement.idl:
851         * svg/SVGFEFloodElement.idl:
852         * svg/SVGFEFuncAElement.idl:
853         * svg/SVGFEFuncBElement.idl:
854         * svg/SVGFEFuncGElement.idl:
855         * svg/SVGFEFuncRElement.idl:
856         * svg/SVGFEImageElement.idl:
857         * svg/SVGFEMergeElement.idl:
858         * svg/SVGFEMergeNodeElement.idl:
859         * svg/SVGFEOffsetElement.idl:
860         * svg/SVGFEPointLightElement.idl:
861         * svg/SVGFESpecularLightingElement.idl:
862         * svg/SVGFESpotLightElement.idl:
863         * svg/SVGFETileElement.idl:
864         * svg/SVGFETurbulenceElement.idl:
865         * svg/SVGFilterPrimitiveStandardAttributes.idl:
866         * svg/SVGFitToViewBox.idl:
867         * svg/SVGFontElement.idl:
868         * svg/SVGFontFaceElement.idl:
869         * svg/SVGFontFaceFormatElement.idl:
870         * svg/SVGFontFaceNameElement.idl:
871         * svg/SVGFontFaceSrcElement.idl:
872         * svg/SVGFontFaceUriElement.idl:
873         * svg/SVGForeignObjectElement.idl:
874         * svg/SVGGElement.idl:
875         * svg/SVGGlyphElement.idl:
876         * svg/SVGGradientElement.idl:
877         * svg/SVGHKernElement.idl:
878         * svg/SVGImageElement.idl:
879         * svg/SVGLangSpace.idl:
880         * svg/SVGLength.idl:
881         * svg/SVGLengthList.idl:
882         * svg/SVGLineElement.idl:
883         * svg/SVGLinearGradientElement.idl:
884         * svg/SVGMPathElement.idl:
885         * svg/SVGMaskElement.idl:
886         * svg/SVGMatrix.idl:
887         * svg/SVGMetadataElement.idl:
888         * svg/SVGMissingGlyphElement.idl:
889         * svg/SVGNumber.idl:
890         * svg/SVGNumberList.idl:
891         * svg/SVGPaint.idl:
892         * svg/SVGPathSeg.idl:
893         * svg/SVGPathSegArcAbs.idl:
894         * svg/SVGPathSegArcRel.idl:
895         * svg/SVGPathSegClosePath.idl:
896         * svg/SVGPathSegCurvetoCubicAbs.idl:
897         * svg/SVGPathSegCurvetoCubicRel.idl:
898         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
899         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
900         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
901         * svg/SVGPathSegCurvetoQuadraticRel.idl:
902         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
903         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
904         * svg/SVGPathSegLinetoAbs.idl:
905         * svg/SVGPathSegLinetoHorizontalAbs.idl:
906         * svg/SVGPathSegLinetoHorizontalRel.idl:
907         * svg/SVGPathSegLinetoRel.idl:
908         * svg/SVGPathSegLinetoVerticalAbs.idl:
909         * svg/SVGPathSegLinetoVerticalRel.idl:
910         * svg/SVGPathSegList.idl:
911         * svg/SVGPathSegMovetoAbs.idl:
912         * svg/SVGPathSegMovetoRel.idl:
913         * svg/SVGPatternElement.idl:
914         * svg/SVGPoint.idl:
915         * svg/SVGPointList.idl:
916         * svg/SVGPolygonElement.idl:
917         * svg/SVGPolylineElement.idl:
918         * svg/SVGPreserveAspectRatio.idl:
919         * svg/SVGRadialGradientElement.idl:
920         * svg/SVGRect.idl:
921         * svg/SVGRectElement.idl:
922         * svg/SVGRenderingIntent.idl:
923         * svg/SVGScriptElement.idl:
924         * svg/SVGSetElement.idl:
925         * svg/SVGStopElement.idl:
926         * svg/SVGStringList.idl:
927         * svg/SVGSwitchElement.idl:
928         * svg/SVGSymbolElement.idl:
929         * svg/SVGTRefElement.idl:
930         * svg/SVGTSpanElement.idl:
931         * svg/SVGTextElement.idl:
932         * svg/SVGTextPathElement.idl:
933         * svg/SVGTextPositioningElement.idl:
934         * svg/SVGTitleElement.idl:
935         * svg/SVGTransform.idl:
936         * svg/SVGTransformList.idl:
937         * svg/SVGTransformable.idl:
938         * svg/SVGURIReference.idl:
939         * svg/SVGUnitTypes.idl:
940         * svg/SVGUseElement.idl:
941         * svg/SVGVKernElement.idl:
942         * svg/SVGViewElement.idl:
943         * svg/SVGViewSpec.idl:
944         * svg/SVGZoomAndPan.idl:
945         * svg/SVGZoomEvent.idl:
946         * testing/Internals.idl:
947         * webaudio/AudioChannelMerger.idl:
948         * webaudio/AudioChannelSplitter.idl:
949         * webaudio/AudioDestinationNode.idl:
950         * webaudio/AudioGain.idl:
951         * webaudio/AudioGainNode.idl:
952         * webaudio/AudioProcessingEvent.idl:
953         * webaudio/AudioSourceNode.idl:
954         * webaudio/BiquadFilterNode.idl:
955         * webaudio/ConvolverNode.idl:
956         * webaudio/DelayNode.idl:
957         * webaudio/DynamicsCompressorNode.idl:
958         * webaudio/HighPass2FilterNode.idl:
959         * webaudio/JavaScriptAudioNode.idl:
960         * webaudio/LowPass2FilterNode.idl:
961         * webaudio/OfflineAudioCompletionEvent.idl:
962         * workers/SharedWorker.idl:
963         * workers/SharedWorkerContext.idl:
964         * workers/WorkerLocation.idl:
965         * xml/XMLHttpRequestException.idl:
966         * xml/XMLHttpRequestProgressEvent.idl:
967         * xml/XPathException.idl:
968
969 2011-06-17  Mark Pilgrim  <pilgrim@chromium.org>
970
971         Reviewed by Darin Adler.
972
973         Remove LegacyDefaultOptionalArguments flag from IDL files where it would not change behavior
974         https://bugs.webkit.org/show_bug.cgi?id=62904
975
976         After bug 62750, there are many IDL files that contain the new
977         LegacyDefaultOptionalArguments flag that don't actually need it.
978         Some examples:
979
980             - the IDL file contains no functions
981             - the IDL file contains only functions with no arguments
982             - the IDL file contains functions, *all* of which use the
983               [RequiresAllArguments=raise] extended attribute
984
985         This patch simplifies such IDL files by removing the
986         LegacyDefaultOptionalArguments flag and (if needed) removing the
987         [RequiresAllArguments=raise] extended attribute from each function
988         declaration. This patch does not make any required arguments optional
989         or any optional arguments required. It changes no behavior at all.
990
991         No new tests needed, all existing tests pass.
992
993         * bindings/scripts/test/TestInterface.idl:
994         * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
995         * css/CSSCharsetRule.idl:
996         * css/CSSFontFaceRule.idl:
997         * css/CSSImportRule.idl:
998         * css/CSSPageRule.idl:
999         * css/CSSRule.idl:
1000         * css/CSSStyleRule.idl:
1001         * css/CSSUnknownRule.idl:
1002         * css/CSSValue.idl:
1003         * css/Counter.idl:
1004         * css/RGBColor.idl:
1005         * css/Rect.idl:
1006         * css/StyleSheet.idl:
1007         * css/WebKitCSSKeyframeRule.idl:
1008         * css/WebKitCSSTransformValue.idl:
1009         * dom/Attr.idl:
1010         * dom/CDATASection.idl:
1011         * dom/ClientRect.idl:
1012         * dom/Comment.idl:
1013         * dom/DOMCoreException.idl:
1014         * dom/DOMStringMap.idl:
1015         * dom/DocumentType.idl:
1016         * dom/Entity.idl:
1017         * dom/EntityReference.idl:
1018         * dom/EventException.idl:
1019         * dom/GeneratedStream.idl:
1020         * dom/MessageChannel.idl:
1021         * dom/NodeIterator.idl:
1022         * dom/Notation.idl:
1023         * dom/ProcessingInstruction.idl:
1024         * dom/RangeException.idl:
1025         * dom/Touch.idl:
1026         * dom/TreeWalker.idl:
1027         * fileapi/DOMFileSystem.idl:
1028         * fileapi/DOMFileSystemSync.idl:
1029         * fileapi/DirectoryReaderSync.idl:
1030         * fileapi/File.idl:
1031         * fileapi/FileEntrySync.idl:
1032         * fileapi/FileError.idl:
1033         * fileapi/FileException.idl:
1034         * fileapi/Metadata.idl:
1035         * fileapi/OperationNotAllowedException.idl:
1036         * fileapi/WebKitFlags.idl:
1037         * html/DOMSettableTokenList.idl:
1038         * html/HTMLAppletElement.idl:
1039         * html/HTMLAreaElement.idl:
1040         * html/HTMLBRElement.idl:
1041         * html/HTMLBaseElement.idl:
1042         * html/HTMLBaseFontElement.idl:
1043         * html/HTMLBlockquoteElement.idl:
1044         * html/HTMLBodyElement.idl:
1045         * html/HTMLDListElement.idl:
1046         * html/HTMLDataListElement.idl:
1047         * html/HTMLDetailsElement.idl:
1048         * html/HTMLDirectoryElement.idl:
1049         * html/HTMLEmbedElement.idl:
1050         * html/HTMLFontElement.idl:
1051         * html/HTMLFormElement.idl:
1052         * html/HTMLFrameElement.idl:
1053         * html/HTMLFrameSetElement.idl:
1054         * html/HTMLHRElement.idl:
1055         * html/HTMLHeadElement.idl:
1056         * html/HTMLHeadingElement.idl:
1057         * html/HTMLHtmlElement.idl:
1058         * html/HTMLIFrameElement.idl:
1059         * html/HTMLImageElement.idl:
1060         * html/HTMLIsIndexElement.idl:
1061         * html/HTMLLIElement.idl:
1062         * html/HTMLLabelElement.idl:
1063         * html/HTMLLegendElement.idl:
1064         * html/HTMLLinkElement.idl:
1065         * html/HTMLMapElement.idl:
1066         * html/HTMLMarqueeElement.idl:
1067         * html/HTMLMenuElement.idl:
1068         * html/HTMLMetaElement.idl:
1069         * html/HTMLMeterElement.idl:
1070         * html/HTMLModElement.idl:
1071         * html/HTMLOListElement.idl:
1072         * html/HTMLOptGroupElement.idl:
1073         * html/HTMLOptionElement.idl:
1074         * html/HTMLParagraphElement.idl:
1075         * html/HTMLParamElement.idl:
1076         * html/HTMLPreElement.idl:
1077         * html/HTMLProgressElement.idl:
1078         * html/HTMLQuoteElement.idl:
1079         * html/HTMLScriptElement.idl:
1080         * html/HTMLSourceElement.idl:
1081         * html/HTMLStyleElement.idl:
1082         * html/HTMLTableCaptionElement.idl:
1083         * html/HTMLTableCellElement.idl:
1084         * html/HTMLTableColElement.idl:
1085         * html/HTMLTitleElement.idl:
1086         * html/HTMLTrackElement.idl:
1087         * html/HTMLUListElement.idl:
1088         * html/ImageData.idl:
1089         * html/MediaError.idl:
1090         * html/SpellcheckRange.idl:
1091         * html/TextMetrics.idl:
1092         * html/ValidityState.idl:
1093         * html/VoidCallback.idl:
1094         * html/canvas/ArrayBuffer.idl:
1095         * html/canvas/ArrayBufferView.idl:
1096         * html/canvas/CanvasPattern.idl:
1097         * html/canvas/CanvasPixelArray.idl:
1098         * html/canvas/CanvasRenderingContext.idl:
1099         * html/canvas/DataView.idl:
1100         * html/canvas/OESStandardDerivatives.idl:
1101         * html/canvas/OESTextureFloat.idl:
1102         * html/canvas/WebGLActiveInfo.idl:
1103         * html/canvas/WebGLBuffer.idl:
1104         * html/canvas/WebGLContextAttributes.idl:
1105         * html/canvas/WebGLFramebuffer.idl:
1106         * html/canvas/WebGLProgram.idl:
1107         * html/canvas/WebGLRenderbuffer.idl:
1108         * html/canvas/WebGLShader.idl:
1109         * html/canvas/WebGLTexture.idl:
1110         * html/canvas/WebGLUniformLocation.idl:
1111         * html/canvas/WebGLVertexArrayObjectOES.idl:
1112         * html/canvas/WebKitLoseContext.idl:
1113         * inspector/ScriptProfile.idl:
1114         * inspector/ScriptProfileNode.idl:
1115         * page/AbstractView.idl:
1116         * page/BarInfo.idl:
1117         * page/Coordinates.idl:
1118         * page/Geoposition.idl:
1119         * page/MemoryInfo.idl:
1120         * page/NavigatorUserMediaError.idl:
1121         * page/Performance.idl:
1122         * page/PerformanceNavigation.idl:
1123         * page/PerformanceTiming.idl:
1124         * page/PositionError.idl:
1125         * page/Screen.idl:
1126         * page/SpeechInputEvent.idl:
1127         * page/SpeechInputResult.idl:
1128         * page/WebKitAnimation.idl:
1129         * page/WebKitPoint.idl:
1130         * page/WorkerNavigator.idl:
1131         * plugins/DOMMimeType.idl:
1132         * storage/Database.idl:
1133         * storage/DatabaseSync.idl:
1134         * storage/IDBAny.idl:
1135         * storage/IDBCursorWithValue.idl:
1136         * storage/IDBDatabaseError.idl:
1137         * storage/IDBDatabaseException.idl:
1138         * storage/IDBKey.idl:
1139         * storage/IDBVersionChangeEvent.idl:
1140         * storage/IDBVersionChangeRequest.idl:
1141         * storage/SQLError.idl:
1142         * storage/SQLException.idl:
1143         * storage/SQLResultSet.idl:
1144         * svg/SVGAElement.idl:
1145         * svg/SVGAltGlyphElement.idl:
1146         * svg/SVGAngle.idl:
1147         * svg/SVGAnimateColorElement.idl:
1148         * svg/SVGAnimateElement.idl:
1149         * svg/SVGAnimateMotionElement.idl:
1150         * svg/SVGAnimateTransformElement.idl:
1151         * svg/SVGAnimatedAngle.idl:
1152         * svg/SVGAnimatedBoolean.idl:
1153         * svg/SVGAnimatedEnumeration.idl:
1154         * svg/SVGAnimatedInteger.idl:
1155         * svg/SVGAnimatedLength.idl:
1156         * svg/SVGAnimatedLengthList.idl:
1157         * svg/SVGAnimatedNumber.idl:
1158         * svg/SVGAnimatedNumberList.idl:
1159         * svg/SVGAnimatedPreserveAspectRatio.idl:
1160         * svg/SVGAnimatedRect.idl:
1161         * svg/SVGAnimatedString.idl:
1162         * svg/SVGAnimatedTransformList.idl:
1163         * svg/SVGCircleElement.idl:
1164         * svg/SVGClipPathElement.idl:
1165         * svg/SVGColor.idl:
1166         * svg/SVGComponentTransferFunctionElement.idl:
1167         * svg/SVGCursorElement.idl:
1168         * svg/SVGDefsElement.idl:
1169         * svg/SVGDescElement.idl:
1170         * svg/SVGElement.idl:
1171         * svg/SVGEllipseElement.idl:
1172         * svg/SVGExternalResourcesRequired.idl:
1173         * svg/SVGFEBlendElement.idl:
1174         * svg/SVGFEColorMatrixElement.idl:
1175         * svg/SVGFEComponentTransferElement.idl:
1176         * svg/SVGFECompositeElement.idl:
1177         * svg/SVGFEConvolveMatrixElement.idl:
1178         * svg/SVGFEDiffuseLightingElement.idl:
1179         * svg/SVGFEDisplacementMapElement.idl:
1180         * svg/SVGFEDistantLightElement.idl:
1181         * svg/SVGFEFloodElement.idl:
1182         * svg/SVGFEFuncAElement.idl:
1183         * svg/SVGFEFuncBElement.idl:
1184         * svg/SVGFEFuncGElement.idl:
1185         * svg/SVGFEFuncRElement.idl:
1186         * svg/SVGFEImageElement.idl:
1187         * svg/SVGFEMergeElement.idl:
1188         * svg/SVGFEMergeNodeElement.idl:
1189         * svg/SVGFEOffsetElement.idl:
1190         * svg/SVGFEPointLightElement.idl:
1191         * svg/SVGFESpecularLightingElement.idl:
1192         * svg/SVGFESpotLightElement.idl:
1193         * svg/SVGFETileElement.idl:
1194         * svg/SVGFETurbulenceElement.idl:
1195         * svg/SVGFilterPrimitiveStandardAttributes.idl:
1196         * svg/SVGFitToViewBox.idl:
1197         * svg/SVGFontElement.idl:
1198         * svg/SVGFontFaceElement.idl:
1199         * svg/SVGFontFaceFormatElement.idl:
1200         * svg/SVGFontFaceNameElement.idl:
1201         * svg/SVGFontFaceSrcElement.idl:
1202         * svg/SVGFontFaceUriElement.idl:
1203         * svg/SVGForeignObjectElement.idl:
1204         * svg/SVGGElement.idl:
1205         * svg/SVGGlyphElement.idl:
1206         * svg/SVGGradientElement.idl:
1207         * svg/SVGHKernElement.idl:
1208         * svg/SVGImageElement.idl:
1209         * svg/SVGLangSpace.idl:
1210         * svg/SVGLength.idl:
1211         * svg/SVGLengthList.idl:
1212         * svg/SVGLineElement.idl:
1213         * svg/SVGLinearGradientElement.idl:
1214         * svg/SVGMPathElement.idl:
1215         * svg/SVGMaskElement.idl:
1216         * svg/SVGMatrix.idl:
1217         * svg/SVGMetadataElement.idl:
1218         * svg/SVGMissingGlyphElement.idl:
1219         * svg/SVGNumber.idl:
1220         * svg/SVGNumberList.idl:
1221         * svg/SVGPaint.idl:
1222         * svg/SVGPathSeg.idl:
1223         * svg/SVGPathSegArcAbs.idl:
1224         * svg/SVGPathSegArcRel.idl:
1225         * svg/SVGPathSegClosePath.idl:
1226         * svg/SVGPathSegCurvetoCubicAbs.idl:
1227         * svg/SVGPathSegCurvetoCubicRel.idl:
1228         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
1229         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
1230         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
1231         * svg/SVGPathSegCurvetoQuadraticRel.idl:
1232         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
1233         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
1234         * svg/SVGPathSegLinetoAbs.idl:
1235         * svg/SVGPathSegLinetoHorizontalAbs.idl:
1236         * svg/SVGPathSegLinetoHorizontalRel.idl:
1237         * svg/SVGPathSegLinetoRel.idl:
1238         * svg/SVGPathSegLinetoVerticalAbs.idl:
1239         * svg/SVGPathSegLinetoVerticalRel.idl:
1240         * svg/SVGPathSegList.idl:
1241         * svg/SVGPathSegMovetoAbs.idl:
1242         * svg/SVGPathSegMovetoRel.idl:
1243         * svg/SVGPatternElement.idl:
1244         * svg/SVGPoint.idl:
1245         * svg/SVGPointList.idl:
1246         * svg/SVGPolygonElement.idl:
1247         * svg/SVGPolylineElement.idl:
1248         * svg/SVGPreserveAspectRatio.idl:
1249         * svg/SVGRadialGradientElement.idl:
1250         * svg/SVGRect.idl:
1251         * svg/SVGRectElement.idl:
1252         * svg/SVGRenderingIntent.idl:
1253         * svg/SVGScriptElement.idl:
1254         * svg/SVGSetElement.idl:
1255         * svg/SVGStopElement.idl:
1256         * svg/SVGStringList.idl:
1257         * svg/SVGSwitchElement.idl:
1258         * svg/SVGSymbolElement.idl:
1259         * svg/SVGTRefElement.idl:
1260         * svg/SVGTSpanElement.idl:
1261         * svg/SVGTextElement.idl:
1262         * svg/SVGTextPathElement.idl:
1263         * svg/SVGTextPositioningElement.idl:
1264         * svg/SVGTitleElement.idl:
1265         * svg/SVGTransform.idl:
1266         * svg/SVGTransformList.idl:
1267         * svg/SVGTransformable.idl:
1268         * svg/SVGURIReference.idl:
1269         * svg/SVGUnitTypes.idl:
1270         * svg/SVGUseElement.idl:
1271         * svg/SVGVKernElement.idl:
1272         * svg/SVGViewElement.idl:
1273         * svg/SVGViewSpec.idl:
1274         * svg/SVGZoomAndPan.idl:
1275         * svg/SVGZoomEvent.idl:
1276         * testing/Internals.idl:
1277         * webaudio/AudioChannelMerger.idl:
1278         * webaudio/AudioChannelSplitter.idl:
1279         * webaudio/AudioDestinationNode.idl:
1280         * webaudio/AudioGain.idl:
1281         * webaudio/AudioGainNode.idl:
1282         * webaudio/AudioProcessingEvent.idl:
1283         * webaudio/AudioSourceNode.idl:
1284         * webaudio/BiquadFilterNode.idl:
1285         * webaudio/ConvolverNode.idl:
1286         * webaudio/DelayNode.idl:
1287         * webaudio/DynamicsCompressorNode.idl:
1288         * webaudio/HighPass2FilterNode.idl:
1289         * webaudio/JavaScriptAudioNode.idl:
1290         * webaudio/LowPass2FilterNode.idl:
1291         * webaudio/OfflineAudioCompletionEvent.idl:
1292         * workers/SharedWorker.idl:
1293         * workers/SharedWorkerContext.idl:
1294         * workers/WorkerLocation.idl:
1295         * xml/XMLHttpRequestException.idl:
1296         * xml/XMLHttpRequestProgressEvent.idl:
1297         * xml/XPathException.idl:
1298
1299 2011-06-17  Dirk Schulze  <krit@webkit.org>
1300
1301         Reviewed by Rob Buis.
1302
1303         SVGAnimation should use direct unit animation for SVGAngle
1304         https://bugs.webkit.org/show_bug.cgi?id=62807
1305
1306         Follow up of "SVGAnimation should use direct unit animation for SVGLength": https://bugs.webkit.org/show_bug.cgi?id=61368
1307         This patch continues the conversion to the new concept of SVGAnimatorFactory with SVGAngle. We can animate the SVG primitive datatype SVGAngle
1308         with different unit types now.
1309         Removed number and unit parser from SVGAnimateElement. This is not needed anymore.
1310
1311         Tests: svg/animations/svgangle-animation-deg-to-grad.html
1312                svg/animations/svgangle-animation-deg-to-rad.html
1313                svg/animations/svgangle-animation-grad-to-deg.html
1314                svg/animations/svgangle-animation-grad-to-rad.html
1315                svg/animations/svgangle-animation-rad-to-deg.html
1316                svg/animations/svgangle-animation-rad-to-grad.html
1317
1318         * CMakeLists.txt: Added SVGAnimatedAngle.cpp.
1319         * GNUmakefile.list.am: Ditto.
1320         * WebCore.gypi: Ditto.
1321         * WebCore.pro: Ditto.
1322         * WebCore.xcodeproj/project.pbxproj: Ditto.
1323         * svg/SVGAllInOne.cpp: Ditto.
1324         * svg/SVGAnimateElement.cpp: Make use of SVGAnimator for AnimatedAngle.
1325         (WebCore::SVGAnimateElement::SVGAnimateElement):
1326         (WebCore::SVGAnimateElement::determineAnimatedAttributeType): Ditto.
1327         (WebCore::SVGAnimateElement::calculateAnimatedValue): Ditto.
1328         (WebCore::SVGAnimateElement::calculateFromAndToValues): Ditto.
1329         (WebCore::SVGAnimateElement::calculateFromAndByValues): Ditto.
1330         (WebCore::SVGAnimateElement::resetToBaseValue): Ditto.
1331         (WebCore::SVGAnimateElement::applyResultsToTarget): Ditto.
1332         (WebCore::SVGAnimateElement::calculateDistance): Ditto.
1333         * svg/SVGAnimateElement.h:
1334         * svg/SVGAnimatedAngle.cpp: Added. Added SVGAnimatedAngleAnimator for animation of SVGAngles.
1335         (WebCore::SVGAnimatedAngleAnimator::SVGAnimatedAngleAnimator):
1336         (WebCore::sharedSVGAngle):
1337         (WebCore::SVGAnimatedAngleAnimator::constructFromString):
1338         (WebCore::SVGAnimatedAngleAnimator::calculateFromAndToValues):
1339         (WebCore::SVGAnimatedAngleAnimator::calculateFromAndByValues):
1340         (WebCore::SVGAnimatedAngleAnimator::calculateAnimatedValue):
1341         (WebCore::SVGAnimatedAngleAnimator::calculateDistance):
1342         * svg/SVGAnimatedAngle.h:
1343         (WebCore::SVGAnimatedAngleAnimator::~SVGAnimatedAngleAnimator):
1344         * svg/SVGAnimatedLength.cpp:
1345         (WebCore::sharedSVGLength): Use an ExceptionCode for SVGLength::setValueAsString.
1346         * svg/SVGAnimatedType.h:
1347         (WebCore::SVGAnimatedType::create):
1348         (WebCore::SVGAnimatedType::createAngle):
1349         (WebCore::SVGAnimatedType::createLength):
1350         (WebCore::SVGAnimatedType::~SVGAnimatedType):
1351         (WebCore::SVGAnimatedType::angle):
1352         (WebCore::SVGAnimatedType::valueAsString):
1353         (WebCore::SVGAnimatedType::setValueAsString):
1354         (WebCore::SVGAnimatedType::SVGAnimatedType):
1355         * svg/SVGAnimatorFactory.h:
1356         (WebCore::SVGAnimatorFactory::create):
1357         * svg/SVGLength.cpp:
1358         (WebCore::SVGLength::setValueAsString): Added an ExceptionCode for consistency reasons and as preparation for future error handling.
1359         * svg/SVGLength.h:
1360         * svg/SVGParserUtilities.cpp:
1361         (WebCore::parseNumberFromString): Added number parser for String objects.
1362         * svg/SVGParserUtilities.h:
1363
1364 2011-06-17  Anna Cavender  <annacc@chromium.org>
1365
1366         Reviewed by Eric Carlson.
1367
1368         Adding initial interfaces and stubs for track
1369         https://bugs.webkit.org/show_bug.cgi?id=60379
1370
1371         This marks the first patch of a series to implement out-of-band
1372         <track> support in WebKit. This patch adds some of the core header files
1373         and their corresponding stub .cpp files.
1374  
1375         No new tests because feature is hidden behind VIDEO_TRACK feature
1376         define, which is turned off.
1377
1378         * CMakeLists.txt:
1379         * WebCore.gyp/WebCore.gyp:
1380         * WebCore.gypi:
1381         * WebCore.pri:
1382         * WebCore.pro:
1383         * WebCore.xcodeproj/project.pbxproj:
1384         * html/CueIndex.cpp: Added.
1385         * html/CueIndex.h: Added.
1386         * html/LoadableTextTrack.cpp: Added.
1387         * html/LoadableTextTrack.h: Added.
1388         * html/LoadableTextTrackImpl.cpp: Added.
1389         * html/LoadableTextTrackImpl.h: Added.
1390         * html/MutableTextTrack.cpp: Added.
1391         * html/MutableTextTrack.h: Added.
1392         * html/MutableTextTrackImpl.cpp: Added.
1393         * html/MutableTextTrackImpl.h: Added.
1394         * html/TextTrack.cpp: Added.
1395         * html/TextTrack.h: Added.
1396         * html/TextTrackCue.cpp: Added.
1397         * html/TextTrackCue.h: Added.
1398         * html/TextTrackCueList.cpp: Added.
1399         * html/TextTrackCueList.h: Added.
1400         * html/TextTrackPrivate.h: Added.
1401         * loader/CueLoader.cpp: Added.
1402         * loader/CueLoader.h: Added.
1403         * platform/track/CueParser.cpp: Added.
1404         * platform/track/CueParser.h: Added.
1405         * platform/track/CueParserPrivate.h: Added.
1406
1407 2011-06-17  Dmitry Lomov  <dslomov@google.com>
1408
1409         Reviewed by Adam Barth.
1410
1411         https://bugs.webkit.org/show_bug.cgi?id=62653
1412         [V8][Chromium] Make StringCache in V8 bindings per-isolate
1413         This moves StringCache into V8BindingPerIsolateData.
1414
1415         * bindings/v8/V8Binding.cpp:
1416         (WebCore::cachedStringCallback):
1417         (WebCore::StringCache::remove):
1418         (WebCore::StringCache::v8ExternalStringSlow):
1419         * bindings/v8/V8Binding.h:
1420         (WebCore::StringCache::StringCache):
1421         (WebCore::StringCache::v8ExternalString):
1422         (WebCore::StringCache::clearOnGC):
1423         (WebCore::V8BindingPerIsolateData::stringCache):
1424         (WebCore::v8ExternalString):
1425         * bindings/v8/V8GCController.cpp:
1426         (WebCore::V8GCController::gcPrologue):
1427
1428 2011-06-17  Julien Chaffraix  <jchaffraix@webkit.org>
1429
1430         Reviewed by Darin Adler.
1431
1432         Assertion failure in SVGTextLayoutEngine constructor (!m_layoutAttributes.isEmpty())
1433         https://bugs.webkit.org/show_bug.cgi?id=62884
1434
1435         Test: svg/custom/assert-empty-layout-attributes.svg
1436
1437         * rendering/svg/SVGRootInlineBox.cpp:
1438         (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation): Added a early return here.
1439         It is not needed to do the text layout algorithm if you don't have any layout information as
1440         your size is (0, 0) anyway.
1441
1442 2011-06-17  Alexey Proskuryakov  <ap@apple.com>
1443
1444         Reviewed by Dan Bernstein.
1445
1446         https://bugs.webkit.org/show_bug.cgi?id=62913
1447         Use ICU search collator when available
1448
1449         <rdar://problem/8830218> Search on a webpage in Safari conflates some Czech characters
1450         <rdar://problem/8468873> Safari search doesn't strip Hamza
1451
1452         This changes behaviors that depend on system language, and isn't practically testable.
1453
1454         * editing/TextIterator.cpp: (WebCore::createSearcher): Ask ICU for search collator, if available.
1455
1456 2011-06-17  Sheriff Bot  <webkit.review.bot@gmail.com>
1457
1458         Unreviewed, rolling out r89143.
1459         http://trac.webkit.org/changeset/89143
1460         https://bugs.webkit.org/show_bug.cgi?id=62912
1461
1462         Possible Chromeos test breakage (Requested by senorblanco on
1463         #webkit).
1464
1465         * platform/KURLGoogle.cpp:
1466         (WebCore::encodeWithURLEscapeSequences):
1467
1468 2011-06-17  Jer Noble  <jer.noble@apple.com>
1469
1470         Reviewed by Ada Chan.
1471
1472         Playing video from the manifest crashes on Windows
1473         https://bugs.webkit.org/show_bug.cgi?id=62901
1474
1475         No new tests. This will be covered by existing App Cache tests.
1476
1477         Two related fixes.  1) Null-check the CFStringRef and CFURLRef created in QTMovie::load() before
1478         passing them to CFRelease().  2) Use CFURL to create an appropriate file-URL on windows in 
1479         createFileURLForApplicationCacheResource.
1480
1481         * html/HTMLMediaElement.cpp:
1482         (WebCore::createFileURLForApplicationCacheResource):
1483         * platform/graphics/win/QTMovie.cpp:
1484         (QTMovie::load):
1485
1486 2011-06-17  Abhishek Arya  <inferno@chromium.org>
1487
1488         Reviewed by Dave Hyatt.
1489
1490         When we lose ability to propagate floats, need to find topmost
1491         parent with that overhanging float, and then iterate over its
1492         sibling blocks to remove the float.
1493         https://bugs.webkit.org/show_bug.cgi?id=62875
1494
1495         Test: fast/block/float/float-not-removed-from-next-sibling5.html
1496
1497         * rendering/RenderBlock.cpp:
1498         (WebCore::RenderBlock::styleDidChange):
1499         (WebCore::RenderBlock::hasOverhangingFloat):
1500         * rendering/RenderBlock.h:
1501
1502 2011-06-17  Vsevolod Vlasov  <vsevik@chromium.org>
1503
1504         Reviewed by Pavel Feldman.
1505
1506         Web Inspector: Network panel does not show main resource content for iframes deleted from the document
1507         https://bugs.webkit.org/show_bug.cgi?id=62810
1508
1509         Test: http/tests/inspector/network/network-iframe-load-and-delete.html
1510
1511         * inspector/InspectorInstrumentation.cpp:
1512         (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
1513         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
1514         * inspector/InspectorInstrumentation.h:
1515         (WebCore::InspectorInstrumentation::didFinishLoading):
1516         (WebCore::InspectorInstrumentation::didFailLoading):
1517         * inspector/InspectorPageAgent.cpp:
1518         (WebCore::cachedResourceContent):
1519         (WebCore::mainResourceContent):
1520         (WebCore::InspectorPageAgent::sharedBufferContent):
1521         (WebCore::InspectorPageAgent::resourceContent):
1522         (WebCore::InspectorPageAgent::getResourceContent):
1523         (WebCore::InspectorPageAgent::searchInResources):
1524         * inspector/InspectorPageAgent.h:
1525         * inspector/InspectorResourceAgent.cpp:
1526         (WebCore::InspectorResourceAgent::didReceiveResponse):
1527         (WebCore::InspectorResourceAgent::didFinishLoading):
1528         (WebCore::InspectorResourceAgent::didFailLoading):
1529         (WebCore::InspectorResourceAgent::didReceiveXHRResponse):
1530         (WebCore::InspectorResourceAgent::getResourceContent):
1531         * inspector/InspectorResourceAgent.h:
1532         * inspector/InspectorStyleSheet.cpp:
1533         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
1534         * inspector/NetworkResourcesData.cpp:
1535         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
1536         (WebCore::NetworkResourcesData::setResourceType):
1537         (WebCore::NetworkResourcesData::resourceType):
1538         (WebCore::NetworkResourcesData::addResourceSharedBuffer):
1539         * inspector/NetworkResourcesData.h:
1540         (WebCore::NetworkResourcesData::ResourceData::type):
1541         (WebCore::NetworkResourcesData::ResourceData::setType):
1542         (WebCore::NetworkResourcesData::ResourceData::buffer):
1543         (WebCore::NetworkResourcesData::ResourceData::setBuffer):
1544         (WebCore::NetworkResourcesData::ResourceData::textEncodingName):
1545         (WebCore::NetworkResourcesData::ResourceData::setTextEncodingName):
1546         * loader/ResourceLoadNotifier.cpp:
1547         (WebCore::ResourceLoadNotifier::didFailToLoad):
1548         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
1549         * loader/appcache/ApplicationCacheGroup.cpp:
1550         (WebCore::ApplicationCacheGroup::didFinishLoading):
1551         (WebCore::ApplicationCacheGroup::didFail):
1552
1553 2011-06-17  Darin Adler  <darin@apple.com>
1554
1555         Fix clang build.
1556
1557         * loader/LinkLoader.h: Use struct, not class, to forward-declare struct.
1558
1559 2011-06-17  Chris Evans  <cevans@chromium.org>
1560
1561         Reviewed by Adam Barth.
1562
1563         Detect mixed-scripting involving https -> http redirects
1564         https://bugs.webkit.org/show_bug.cgi?id=62846
1565
1566         Test: http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
1567
1568         * loader/cache/CachedResourceLoader.cpp:
1569         (WebCore::CachedResourceLoader::checkInsecureContent):
1570         (WebCore::CachedResourceLoader::canRequest): break out insecure content logic.
1571         * loader/cache/CachedResourceLoader.h:
1572         * loader/cache/CachedResourceRequest.cpp:
1573         (WebCore::CachedResourceRequest::willSendRequest): check the redirect target for possible insecure content issues.
1574
1575 2011-06-12  Robert Hogan  <robert@webkit.org>
1576
1577         Reviewed by Alexey Proskuryakov.
1578
1579         [Qt] Qt Counterpart for http://trac.webkit.org/changeset/42078
1580         https://bugs.webkit.org/show_bug.cgi?id=62514
1581
1582         * platform/network/qt/ResourceHandleQt.cpp:
1583         (WebCore::WebCoreSynchronousLoader::willSendRequest):
1584
1585 2011-06-17  Mark Pilgrim  <pilgrim@chromium.org>
1586
1587         Reviewed by Adam Barth.
1588
1589         Change IDL code generator to require all arguments by default
1590         https://bugs.webkit.org/show_bug.cgi?id=62750
1591
1592         As per discussion on public-webapps, WebIDL is changing the default
1593         behavior to require all function arguments by default and raise an
1594         exception when an argument is missing. (This behavior is currently
1595         opt-in in WebKit's IDL system, on a function-by-function basis, with
1596         the "RequiresAllArguments=Raise" flag.) To order to match WebIDL as
1597         closely as possible, this patch adds an interface-level
1598         "LegacyDefaultOptionalArguments" flag and sets it on all existing IDL
1599         files (500+), then changes the code generator Perl scripts to behave
1600         the old way in the presence of the flag.
1601
1602         No new tests required, all existing tests still pass.
1603
1604         * bindings/scripts/CodeGeneratorJS.pm: 
1605         * bindings/scripts/CodeGeneratorV8.pm:
1606         * bindings/scripts/test/TestCallback.idl:
1607         * bindings/scripts/test/TestInterface.idl:
1608         * bindings/scripts/test/TestMediaQueryListListener.idl:
1609         * bindings/scripts/test/TestObj.idl:
1610         * bindings/scripts/test/TestSerializedScriptValueInterface.idl:
1611         * css/CSSCharsetRule.idl:
1612         * css/CSSFontFaceRule.idl:
1613         * css/CSSImportRule.idl:
1614         * css/CSSMediaRule.idl:
1615         * css/CSSPageRule.idl:
1616         * css/CSSPrimitiveValue.idl:
1617         * css/CSSRule.idl:
1618         * css/CSSRuleList.idl:
1619         * css/CSSStyleDeclaration.idl:
1620         * css/CSSStyleRule.idl:
1621         * css/CSSStyleSheet.idl:
1622         * css/CSSUnknownRule.idl:
1623         * css/CSSValue.idl:
1624         * css/CSSValueList.idl:
1625         * css/Counter.idl:
1626         * css/MediaList.idl:
1627         * css/MediaQueryList.idl:
1628         * css/MediaQueryListListener.idl:
1629         * css/RGBColor.idl:
1630         * css/Rect.idl:
1631         * css/StyleMedia.idl:
1632         * css/StyleSheet.idl:
1633         * css/StyleSheetList.idl:
1634         * css/WebKitCSSKeyframeRule.idl:
1635         * css/WebKitCSSKeyframesRule.idl:
1636         * css/WebKitCSSMatrix.idl:
1637         * css/WebKitCSSTransformValue.idl:
1638         * dom/Attr.idl:
1639         * dom/BeforeLoadEvent.idl:
1640         * dom/BeforeProcessEvent.idl:
1641         * dom/CDATASection.idl:
1642         * dom/CharacterData.idl:
1643         * dom/ClientRect.idl:
1644         * dom/ClientRectList.idl:
1645         * dom/Clipboard.idl:
1646         * dom/Comment.idl:
1647         * dom/CompositionEvent.idl:
1648         * dom/CustomEvent.idl:
1649         * dom/DOMCoreException.idl:
1650         * dom/DOMImplementation.idl:
1651         * dom/DOMStringList.idl:
1652         * dom/DOMStringMap.idl:
1653         * dom/DataTransferItem.idl:
1654         * dom/DataTransferItems.idl:
1655         * dom/DeviceMotionEvent.idl:
1656         * dom/DeviceOrientationEvent.idl:
1657         * dom/Document.idl:
1658         * dom/DocumentFragment.idl:
1659         * dom/DocumentType.idl:
1660         * dom/Element.idl:
1661         * dom/Entity.idl:
1662         * dom/EntityReference.idl:
1663         * dom/ErrorEvent.idl:
1664         * dom/Event.idl:
1665         * dom/EventException.idl:
1666         * dom/EventListener.idl:
1667         * dom/EventTarget.idl:
1668         * dom/ExclusiveTrackList.idl:
1669         * dom/GeneratedStream.idl:
1670         * dom/HashChangeEvent.idl:
1671         * dom/KeyboardEvent.idl:
1672         * dom/MessageChannel.idl:
1673         * dom/MessageEvent.idl:
1674         * dom/MessagePort.idl:
1675         * dom/MouseEvent.idl:
1676         * dom/MultipleTrackList.idl:
1677         * dom/MutationEvent.idl:
1678         * dom/NamedNodeMap.idl:
1679         * dom/Node.idl:
1680         * dom/NodeFilter.idl:
1681         * dom/NodeIterator.idl:
1682         * dom/NodeList.idl:
1683         * dom/Notation.idl:
1684         * dom/OverflowEvent.idl:
1685         * dom/PageTransitionEvent.idl:
1686         * dom/PopStateEvent.idl:
1687         * dom/ProcessingInstruction.idl:
1688         * dom/ProgressEvent.idl:
1689         * dom/Range.idl:
1690         * dom/RangeException.idl:
1691         * dom/RequestAnimationFrameCallback.idl:
1692         * dom/Stream.idl:
1693         * dom/StreamEvent.idl:
1694         * dom/StreamList.idl:
1695         * dom/StringCallback.idl:
1696         * dom/Text.idl:
1697         * dom/TextEvent.idl:
1698         * dom/Touch.idl:
1699         * dom/TouchEvent.idl:
1700         * dom/TouchList.idl:
1701         * dom/TrackList.idl:
1702         * dom/TreeWalker.idl:
1703         * dom/UIEvent.idl:
1704         * dom/WebKitAnimationEvent.idl:
1705         * dom/WebKitTransitionEvent.idl:
1706         * dom/WheelEvent.idl:
1707         * fileapi/Blob.idl:
1708         * fileapi/DOMFileSystem.idl:
1709         * fileapi/DOMFileSystemSync.idl:
1710         * fileapi/DirectoryEntry.idl:
1711         * fileapi/DirectoryEntrySync.idl:
1712         * fileapi/DirectoryReader.idl:
1713         * fileapi/DirectoryReaderSync.idl:
1714         * fileapi/EntriesCallback.idl:
1715         * fileapi/Entry.idl:
1716         * fileapi/EntryArray.idl:
1717         * fileapi/EntryArraySync.idl:
1718         * fileapi/EntryCallback.idl:
1719         * fileapi/EntrySync.idl:
1720         * fileapi/ErrorCallback.idl:
1721         * fileapi/File.idl:
1722         * fileapi/FileCallback.idl:
1723         * fileapi/FileEntry.idl:
1724         * fileapi/FileEntrySync.idl:
1725         * fileapi/FileError.idl:
1726         * fileapi/FileException.idl:
1727         * fileapi/FileList.idl:
1728         * fileapi/FileReader.idl:
1729         * fileapi/FileReaderSync.idl:
1730         * fileapi/FileSystemCallback.idl:
1731         * fileapi/FileWriter.idl:
1732         * fileapi/FileWriterCallback.idl:
1733         * fileapi/FileWriterSync.idl:
1734         * fileapi/Metadata.idl:
1735         * fileapi/MetadataCallback.idl:
1736         * fileapi/OperationNotAllowedException.idl:
1737         * fileapi/WebKitBlobBuilder.idl:
1738         * fileapi/WebKitFlags.idl:
1739         * html/DOMFormData.idl:
1740         * html/DOMSettableTokenList.idl:
1741         * html/DOMTokenList.idl:
1742         * html/DOMURL.idl:
1743         * html/HTMLAllCollection.idl:
1744         * html/HTMLAnchorElement.idl:
1745         * html/HTMLAppletElement.idl:
1746         * html/HTMLAreaElement.idl:
1747         * html/HTMLAudioElement.idl:
1748         * html/HTMLBRElement.idl:
1749         * html/HTMLBaseElement.idl:
1750         * html/HTMLBaseFontElement.idl:
1751         * html/HTMLBlockquoteElement.idl:
1752         * html/HTMLBodyElement.idl:
1753         * html/HTMLButtonElement.idl:
1754         * html/HTMLCanvasElement.idl:
1755         * html/HTMLCollection.idl:
1756         * html/HTMLDListElement.idl:
1757         * html/HTMLDataListElement.idl:
1758         * html/HTMLDetailsElement.idl:
1759         * html/HTMLDirectoryElement.idl:
1760         * html/HTMLDivElement.idl:
1761         * html/HTMLDocument.idl:
1762         * html/HTMLElement.idl:
1763         * html/HTMLEmbedElement.idl:
1764         * html/HTMLFieldSetElement.idl:
1765         * html/HTMLFontElement.idl:
1766         * html/HTMLFormElement.idl:
1767         * html/HTMLFrameElement.idl:
1768         * html/HTMLFrameSetElement.idl:
1769         * html/HTMLHRElement.idl:
1770         * html/HTMLHeadElement.idl:
1771         * html/HTMLHeadingElement.idl:
1772         * html/HTMLHtmlElement.idl:
1773         * html/HTMLIFrameElement.idl:
1774         * html/HTMLImageElement.idl:
1775         * html/HTMLInputElement.idl:
1776         * html/HTMLIsIndexElement.idl:
1777         * html/HTMLKeygenElement.idl:
1778         * html/HTMLLIElement.idl:
1779         * html/HTMLLabelElement.idl:
1780         * html/HTMLLegendElement.idl:
1781         * html/HTMLLinkElement.idl:
1782         * html/HTMLMapElement.idl:
1783         * html/HTMLMarqueeElement.idl:
1784         * html/HTMLMediaElement.idl:
1785         * html/HTMLMenuElement.idl:
1786         * html/HTMLMetaElement.idl:
1787         * html/HTMLMeterElement.idl:
1788         * html/HTMLModElement.idl:
1789         * html/HTMLOListElement.idl:
1790         * html/HTMLObjectElement.idl:
1791         * html/HTMLOptGroupElement.idl:
1792         * html/HTMLOptionElement.idl:
1793         * html/HTMLOptionsCollection.idl:
1794         * html/HTMLOutputElement.idl:
1795         * html/HTMLParagraphElement.idl:
1796         * html/HTMLParamElement.idl:
1797         * html/HTMLPreElement.idl:
1798         * html/HTMLProgressElement.idl:
1799         * html/HTMLQuoteElement.idl:
1800         * html/HTMLScriptElement.idl:
1801         * html/HTMLSelectElement.idl:
1802         * html/HTMLSourceElement.idl:
1803         * html/HTMLStyleElement.idl:
1804         * html/HTMLTableCaptionElement.idl:
1805         * html/HTMLTableCellElement.idl:
1806         * html/HTMLTableColElement.idl:
1807         * html/HTMLTableElement.idl:
1808         * html/HTMLTableRowElement.idl:
1809         * html/HTMLTableSectionElement.idl:
1810         * html/HTMLTextAreaElement.idl:
1811         * html/HTMLTitleElement.idl:
1812         * html/HTMLTrackElement.idl:
1813         * html/HTMLUListElement.idl:
1814         * html/HTMLVideoElement.idl:
1815         * html/ImageData.idl:
1816         * html/MediaError.idl:
1817         * html/SpellcheckRange.idl:
1818         * html/SpellcheckRangeList.idl:
1819         * html/TextMetrics.idl:
1820         * html/TimeRanges.idl:
1821         * html/ValidityState.idl:
1822         * html/VoidCallback.idl:
1823         * html/canvas/ArrayBuffer.idl:
1824         * html/canvas/ArrayBufferView.idl:
1825         * html/canvas/CanvasGradient.idl:
1826         * html/canvas/CanvasPattern.idl:
1827         * html/canvas/CanvasPixelArray.idl:
1828         * html/canvas/CanvasRenderingContext.idl:
1829         * html/canvas/CanvasRenderingContext2D.idl:
1830         * html/canvas/DataView.idl:
1831         * html/canvas/Float32Array.idl:
1832         * html/canvas/Float64Array.idl:
1833         * html/canvas/Int16Array.idl:
1834         * html/canvas/Int32Array.idl:
1835         * html/canvas/Int8Array.idl:
1836         * html/canvas/OESStandardDerivatives.idl:
1837         * html/canvas/OESTextureFloat.idl:
1838         * html/canvas/OESVertexArrayObject.idl:
1839         * html/canvas/Uint16Array.idl:
1840         * html/canvas/Uint32Array.idl:
1841         * html/canvas/Uint8Array.idl:
1842         * html/canvas/WebGLActiveInfo.idl:
1843         * html/canvas/WebGLBuffer.idl:
1844         * html/canvas/WebGLContextAttributes.idl:
1845         * html/canvas/WebGLContextEvent.idl:
1846         * html/canvas/WebGLFramebuffer.idl:
1847         * html/canvas/WebGLProgram.idl:
1848         * html/canvas/WebGLRenderbuffer.idl:
1849         * html/canvas/WebGLRenderingContext.idl:
1850         * html/canvas/WebGLShader.idl:
1851         * html/canvas/WebGLTexture.idl:
1852         * html/canvas/WebGLUniformLocation.idl:
1853         * html/canvas/WebGLVertexArrayObjectOES.idl:
1854         * html/canvas/WebKitLoseContext.idl:
1855         * inspector/InjectedScriptHost.idl:
1856         * inspector/InspectorFrontendHost.idl:
1857         * inspector/JavaScriptCallFrame.idl:
1858         * inspector/ScriptProfile.idl:
1859         * inspector/ScriptProfileNode.idl:
1860         * loader/appcache/DOMApplicationCache.idl:
1861         * notifications/Notification.idl:
1862         * notifications/NotificationCenter.idl:
1863         * page/AbstractView.idl:
1864         * page/BarInfo.idl:
1865         * page/Console.idl:
1866         * page/Coordinates.idl:
1867         * page/Crypto.idl:
1868         * page/DOMSelection.idl:
1869         * page/DOMWindow.idl:
1870         * page/EventSource.idl:
1871         * page/Geolocation.idl:
1872         * page/Geoposition.idl:
1873         * page/History.idl:
1874         * page/Location.idl:
1875         * page/MemoryInfo.idl:
1876         * page/Navigator.idl:
1877         * page/NavigatorUserMediaError.idl:
1878         * page/NavigatorUserMediaErrorCallback.idl:
1879         * page/NavigatorUserMediaSuccessCallback.idl:
1880         * page/Performance.idl:
1881         * page/PerformanceNavigation.idl:
1882         * page/PerformanceTiming.idl:
1883         * page/PositionCallback.idl:
1884         * page/PositionError.idl:
1885         * page/PositionErrorCallback.idl:
1886         * page/Screen.idl:
1887         * page/SpeechInputEvent.idl:
1888         * page/SpeechInputResult.idl:
1889         * page/SpeechInputResultList.idl:
1890         * page/WebKitAnimation.idl:
1891         * page/WebKitAnimationList.idl:
1892         * page/WebKitPoint.idl:
1893         * page/WorkerNavigator.idl:
1894         * plugins/DOMMimeType.idl:
1895         * plugins/DOMMimeTypeArray.idl:
1896         * plugins/DOMPlugin.idl:
1897         * plugins/DOMPluginArray.idl:
1898         * storage/Database.idl:
1899         * storage/DatabaseCallback.idl:
1900         * storage/DatabaseSync.idl:
1901         * storage/IDBAny.idl:
1902         * storage/IDBCursor.idl:
1903         * storage/IDBCursorWithValue.idl:
1904         * storage/IDBDatabase.idl:
1905         * storage/IDBDatabaseError.idl:
1906         * storage/IDBDatabaseException.idl:
1907         * storage/IDBFactory.idl:
1908         * storage/IDBIndex.idl:
1909         * storage/IDBKey.idl:
1910         * storage/IDBKeyRange.idl:
1911         * storage/IDBObjectStore.idl:
1912         * storage/IDBRequest.idl:
1913         * storage/IDBTransaction.idl:
1914         * storage/IDBVersionChangeEvent.idl:
1915         * storage/IDBVersionChangeRequest.idl:
1916         * storage/SQLError.idl:
1917         * storage/SQLException.idl:
1918         * storage/SQLResultSet.idl:
1919         * storage/SQLResultSetRowList.idl:
1920         * storage/SQLStatementCallback.idl:
1921         * storage/SQLStatementErrorCallback.idl:
1922         * storage/SQLTransaction.idl:
1923         * storage/SQLTransactionCallback.idl:
1924         * storage/SQLTransactionErrorCallback.idl:
1925         * storage/SQLTransactionSync.idl:
1926         * storage/SQLTransactionSyncCallback.idl:
1927         * storage/Storage.idl:
1928         * storage/StorageEvent.idl:
1929         * storage/StorageInfo.idl:
1930         * storage/StorageInfoErrorCallback.idl:
1931         * storage/StorageInfoQuotaCallback.idl:
1932         * storage/StorageInfoUsageCallback.idl:
1933         * svg/ElementTimeControl.idl:
1934         * svg/SVGAElement.idl:
1935         * svg/SVGAltGlyphElement.idl:
1936         * svg/SVGAngle.idl:
1937         * svg/SVGAnimateColorElement.idl:
1938         * svg/SVGAnimateElement.idl:
1939         * svg/SVGAnimateMotionElement.idl:
1940         * svg/SVGAnimateTransformElement.idl:
1941         * svg/SVGAnimatedAngle.idl:
1942         * svg/SVGAnimatedBoolean.idl:
1943         * svg/SVGAnimatedEnumeration.idl:
1944         * svg/SVGAnimatedInteger.idl:
1945         * svg/SVGAnimatedLength.idl:
1946         * svg/SVGAnimatedLengthList.idl:
1947         * svg/SVGAnimatedNumber.idl:
1948         * svg/SVGAnimatedNumberList.idl:
1949         * svg/SVGAnimatedPreserveAspectRatio.idl:
1950         * svg/SVGAnimatedRect.idl:
1951         * svg/SVGAnimatedString.idl:
1952         * svg/SVGAnimatedTransformList.idl:
1953         * svg/SVGAnimationElement.idl:
1954         * svg/SVGCircleElement.idl:
1955         * svg/SVGClipPathElement.idl:
1956         * svg/SVGColor.idl:
1957         * svg/SVGComponentTransferFunctionElement.idl:
1958         * svg/SVGCursorElement.idl:
1959         * svg/SVGDefsElement.idl:
1960         * svg/SVGDescElement.idl:
1961         * svg/SVGDocument.idl:
1962         * svg/SVGElement.idl:
1963         * svg/SVGElementInstance.idl:
1964         * svg/SVGElementInstanceList.idl:
1965         * svg/SVGEllipseElement.idl:
1966         * svg/SVGException.idl:
1967         * svg/SVGExternalResourcesRequired.idl:
1968         * svg/SVGFEBlendElement.idl:
1969         * svg/SVGFEColorMatrixElement.idl:
1970         * svg/SVGFEComponentTransferElement.idl:
1971         * svg/SVGFECompositeElement.idl:
1972         * svg/SVGFEConvolveMatrixElement.idl:
1973         * svg/SVGFEDiffuseLightingElement.idl:
1974         * svg/SVGFEDisplacementMapElement.idl:
1975         * svg/SVGFEDistantLightElement.idl:
1976         * svg/SVGFEDropShadowElement.idl:
1977         * svg/SVGFEFloodElement.idl:
1978         * svg/SVGFEFuncAElement.idl:
1979         * svg/SVGFEFuncBElement.idl:
1980         * svg/SVGFEFuncGElement.idl:
1981         * svg/SVGFEFuncRElement.idl:
1982         * svg/SVGFEGaussianBlurElement.idl:
1983         * svg/SVGFEImageElement.idl:
1984         * svg/SVGFEMergeElement.idl:
1985         * svg/SVGFEMergeNodeElement.idl:
1986         * svg/SVGFEMorphologyElement.idl:
1987         * svg/SVGFEOffsetElement.idl:
1988         * svg/SVGFEPointLightElement.idl:
1989         * svg/SVGFESpecularLightingElement.idl:
1990         * svg/SVGFESpotLightElement.idl:
1991         * svg/SVGFETileElement.idl:
1992         * svg/SVGFETurbulenceElement.idl:
1993         * svg/SVGFilterElement.idl:
1994         * svg/SVGFilterPrimitiveStandardAttributes.idl:
1995         * svg/SVGFitToViewBox.idl:
1996         * svg/SVGFontElement.idl:
1997         * svg/SVGFontFaceElement.idl:
1998         * svg/SVGFontFaceFormatElement.idl:
1999         * svg/SVGFontFaceNameElement.idl:
2000         * svg/SVGFontFaceSrcElement.idl:
2001         * svg/SVGFontFaceUriElement.idl:
2002         * svg/SVGForeignObjectElement.idl:
2003         * svg/SVGGElement.idl:
2004         * svg/SVGGlyphElement.idl:
2005         * svg/SVGGradientElement.idl:
2006         * svg/SVGHKernElement.idl:
2007         * svg/SVGImageElement.idl:
2008         * svg/SVGLangSpace.idl:
2009         * svg/SVGLength.idl:
2010         * svg/SVGLengthList.idl:
2011         * svg/SVGLineElement.idl:
2012         * svg/SVGLinearGradientElement.idl:
2013         * svg/SVGLocatable.idl:
2014         * svg/SVGMPathElement.idl:
2015         * svg/SVGMarkerElement.idl:
2016         * svg/SVGMaskElement.idl:
2017         * svg/SVGMatrix.idl:
2018         * svg/SVGMetadataElement.idl:
2019         * svg/SVGMissingGlyphElement.idl:
2020         * svg/SVGNumber.idl:
2021         * svg/SVGNumberList.idl:
2022         * svg/SVGPaint.idl:
2023         * svg/SVGPathElement.idl:
2024         * svg/SVGPathSeg.idl:
2025         * svg/SVGPathSegArcAbs.idl:
2026         * svg/SVGPathSegArcRel.idl:
2027         * svg/SVGPathSegClosePath.idl:
2028         * svg/SVGPathSegCurvetoCubicAbs.idl:
2029         * svg/SVGPathSegCurvetoCubicRel.idl:
2030         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
2031         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
2032         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
2033         * svg/SVGPathSegCurvetoQuadraticRel.idl:
2034         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
2035         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
2036         * svg/SVGPathSegLinetoAbs.idl:
2037         * svg/SVGPathSegLinetoHorizontalAbs.idl:
2038         * svg/SVGPathSegLinetoHorizontalRel.idl:
2039         * svg/SVGPathSegLinetoRel.idl:
2040         * svg/SVGPathSegLinetoVerticalAbs.idl:
2041         * svg/SVGPathSegLinetoVerticalRel.idl:
2042         * svg/SVGPathSegList.idl:
2043         * svg/SVGPathSegMovetoAbs.idl:
2044         * svg/SVGPathSegMovetoRel.idl:
2045         * svg/SVGPatternElement.idl:
2046         * svg/SVGPoint.idl:
2047         * svg/SVGPointList.idl:
2048         * svg/SVGPolygonElement.idl:
2049         * svg/SVGPolylineElement.idl:
2050         * svg/SVGPreserveAspectRatio.idl:
2051         * svg/SVGRadialGradientElement.idl:
2052         * svg/SVGRect.idl:
2053         * svg/SVGRectElement.idl:
2054         * svg/SVGRenderingIntent.idl:
2055         * svg/SVGSVGElement.idl:
2056         * svg/SVGScriptElement.idl:
2057         * svg/SVGSetElement.idl:
2058         * svg/SVGStopElement.idl:
2059         * svg/SVGStringList.idl:
2060         * svg/SVGStylable.idl:
2061         * svg/SVGStyleElement.idl:
2062         * svg/SVGSwitchElement.idl:
2063         * svg/SVGSymbolElement.idl:
2064         * svg/SVGTRefElement.idl:
2065         * svg/SVGTSpanElement.idl:
2066         * svg/SVGTests.idl:
2067         * svg/SVGTextContentElement.idl:
2068         * svg/SVGTextElement.idl:
2069         * svg/SVGTextPathElement.idl:
2070         * svg/SVGTextPositioningElement.idl:
2071         * svg/SVGTitleElement.idl:
2072         * svg/SVGTransform.idl:
2073         * svg/SVGTransformList.idl:
2074         * svg/SVGTransformable.idl:
2075         * svg/SVGURIReference.idl:
2076         * svg/SVGUnitTypes.idl:
2077         * svg/SVGUseElement.idl:
2078         * svg/SVGVKernElement.idl:
2079         * svg/SVGViewElement.idl:
2080         * svg/SVGViewSpec.idl:
2081         * svg/SVGZoomAndPan.idl:
2082         * svg/SVGZoomEvent.idl:
2083         * testing/Internals.idl:
2084         * webaudio/AudioBuffer.idl:
2085         * webaudio/AudioBufferSourceNode.idl:
2086         * webaudio/AudioChannelMerger.idl:
2087         * webaudio/AudioChannelSplitter.idl:
2088         * webaudio/AudioContext.idl:
2089         * webaudio/AudioDestinationNode.idl:
2090         * webaudio/AudioGain.idl:
2091         * webaudio/AudioGainNode.idl:
2092         * webaudio/AudioListener.idl:
2093         * webaudio/AudioNode.idl:
2094         * webaudio/AudioPannerNode.idl:
2095         * webaudio/AudioParam.idl:
2096         * webaudio/AudioProcessingEvent.idl:
2097         * webaudio/AudioSourceNode.idl:
2098         * webaudio/BiquadFilterNode.idl:
2099         * webaudio/ConvolverNode.idl:
2100         * webaudio/DelayNode.idl:
2101         * webaudio/DynamicsCompressorNode.idl:
2102         * webaudio/HighPass2FilterNode.idl:
2103         * webaudio/JavaScriptAudioNode.idl:
2104         * webaudio/LowPass2FilterNode.idl:
2105         * webaudio/OfflineAudioCompletionEvent.idl:
2106         * webaudio/RealtimeAnalyserNode.idl:
2107         * websockets/CloseEvent.idl:
2108         * websockets/WebSocket.idl:
2109         * workers/AbstractWorker.idl:
2110         * workers/DedicatedWorkerContext.idl:
2111         * workers/SharedWorker.idl:
2112         * workers/SharedWorkerContext.idl:
2113         * workers/Worker.idl:
2114         * workers/WorkerContext.idl:
2115         * workers/WorkerLocation.idl:
2116         * xml/DOMParser.idl:
2117         * xml/XMLHttpRequest.idl:
2118         * xml/XMLHttpRequestException.idl:
2119         * xml/XMLHttpRequestProgressEvent.idl:
2120         * xml/XMLHttpRequestUpload.idl:
2121         * xml/XMLSerializer.idl:
2122         * xml/XPathEvaluator.idl:
2123         * xml/XPathException.idl:
2124         * xml/XPathExpression.idl:
2125         * xml/XPathNSResolver.idl:
2126         * xml/XPathResult.idl:
2127         * xml/XSLTProcessor.idl:
2128
2129 2011-06-17  Cary Clark  <caryclark@google.com>
2130
2131         Reviewed by Mihai Parparita.
2132
2133         Exclude isCALayerContext check if building Chrome to use Skia on Mac.
2134         https://bugs.webkit.org/show_bug.cgi?id=62859
2135
2136         No new tests. This change does not affect existing functionality.
2137
2138         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2139         (WebCore::ScrollbarThemeChromiumMac::paint):
2140         Add a conditional to always set drawing into layer to false if
2141         Skia is the WebKit rendering engine. Once USE(SKIA) is enabled,
2142         this condition can be removed.
2143
2144 2011-06-17  Gavin Peters  <gavinp@chromium.org>
2145
2146         Reviewed by Adam Barth.
2147
2148         refactor HTMLLinkElement to allow Link header implementation
2149         https://bugs.webkit.org/show_bug.cgi?id=51941
2150
2151         This change moves the LinkRelAttribute helper struct into its own
2152         file in html/, since the LinkRelAttribute is used by the LinkLoader,
2153         and leaving it in HTMLLinkElement would have been too circular for
2154         my tastes.
2155
2156         The new LinkLoader class contains the loader code for icons, dns
2157         prefetching and prefetch/prerender/subresource into a common
2158         LinkLoader.  This is a step in getting the Link header working in
2159         WebKit, as discussed in webkit-dev For more information, see
2160         thread "beforeload & link
2161         (esp rel prefetch)".
2162
2163         No new tests, since this is a refactoring.
2164
2165         * CMakeLists.txt:
2166         * GNUmakefile.list.am:
2167         * WebCore.gypi:
2168         * WebCore.pro:
2169         * WebCore.vcproj/WebCore.vcproj:
2170         * WebCore.xcodeproj/project.pbxproj:
2171         * html/HTMLLinkElement.cpp:
2172         (WebCore::HTMLLinkElement::HTMLLinkElement):
2173         (WebCore::HTMLLinkElement::~HTMLLinkElement):
2174         (WebCore::HTMLLinkElement::parseMappedAttribute):
2175         (WebCore::HTMLLinkElement::shouldLoadLink):
2176         (WebCore::HTMLLinkElement::process):
2177         (WebCore::HTMLLinkElement::linkLoaded):
2178         (WebCore::HTMLLinkElement::linkLoadingErrored):
2179         * html/HTMLLinkElement.h:
2180         * html/LinkRelAttribute.cpp: Added.
2181         (WebCore::LinkRelAttribute::LinkRelAttribute):
2182         * html/LinkRelAttribute.h: Added.
2183         * html/parser/HTMLPreloadScanner.cpp:
2184         (WebCore::HTMLNames::PreloadTask::relAttributeIsStyleSheet):
2185         * loader/LinkLoader.cpp: Added.
2186         (WebCore::LinkLoader::LinkLoader):
2187         (WebCore::LinkLoader::~LinkLoader):
2188         (WebCore::LinkLoader::linkLoadedTimerFired):
2189         (WebCore::LinkLoader::notifyFinished):
2190         (WebCore::LinkLoader::loadLink):
2191         * loader/LinkLoader.h: Added.
2192         * loader/LinkLoaderClient.h: Added.
2193         (WebCore::LinkLoaderClient::~LinkLoaderClient):
2194
2195 2011-06-17  Annie Sullivan  <sullivan@chromium.org>
2196
2197         Reviewed by Ryosuke Niwa.
2198
2199         div can be a child of span on InsertParagraph
2200         https://bugs.webkit.org/show_bug.cgi?id=62687
2201
2202         Handle the special case where the insertion point is the first position in the enclosing block node.
2203         The div for the new paragraph should be inserted as a child of the enclosing block node, otherwise
2204         it could be inserted as a child of a span or other inline element.
2205
2206         * editing/InsertParagraphSeparatorCommand.cpp:
2207         (WebCore::InsertParagraphSeparatorCommand::doApply):
2208
2209 2011-06-17  Eric Uhrhane  <ericu@chromium.org>
2210
2211         Reviewed by Adam Barth.
2212
2213         [filesystem/Chromium] Filesystem paths need proper URL escaping
2214         https://bugs.webkit.org/show_bug.cgi?id=62811
2215
2216         Fix http://code.google.com/p/chromium/issues/detail?id=78860 by making
2217         KURLChromium.cpp's escaping code actually work.
2218
2219         Make encodeWithURLEscapeSequences call into googleurl to do proper
2220         escaping.  Tested in WebKit/chromium/tests/KURLTest.cpp.
2221         * platform/KURLGoogle.cpp:
2222         (WebCore::encodeWithURLEscapeSequences):
2223
2224 2011-06-17  Julien Chaffraix  <jchaffraix@google.com>
2225
2226         Reviewed by Darin Adler.
2227
2228         Avoid extra work in RenderStyle::visitedDependentColor
2229         https://bugs.webkit.org/show_bug.cgi?id=62868
2230
2231         Refactoring only, no new test required.
2232
2233         The code used to cache the result of borderStyleForColorProperty. However
2234         the value was either overwritten inside colorIncludingFallback or there was
2235         not border. Thus I removed borderStyleForColorProperty and inlined the logic in
2236         colorIncludingFallback.
2237
2238         This shows some nice performance improvements on the bug page (table of 22k rows with a link
2239         for each row). Using pprof, the time spend in RenderStyle::visitedDependentColor is reduced
2240         by ~10%, mostly due to removing the call to borderStyleForColorProperty.
2241
2242         * rendering/style/RenderStyle.cpp:
2243         (WebCore::RenderStyle::colorIncludingFallback): We now calculate the borderStyle
2244         inside this function (which was already the case I just made it explicit). Also
2245         simplified the final 'if' as the border will be set only for the right CSS border
2246         properties.
2247
2248         (WebCore::RenderStyle::visitedDependentColor): Removed the |borderStyle| variable
2249         as it was never read.
2250
2251         * rendering/style/RenderStyle.h: Removed the parameter.
2252
2253 2011-06-16  Pavel Podivilov  <podivilov@chromium.org>
2254
2255         Reviewed by Yury Semikhatsky.
2256
2257         Web Inspector: breakpointsWithoutSourceFile values should be a maps, not arrays.
2258         https://bugs.webkit.org/show_bug.cgi?id=62714
2259
2260         * inspector/front-end/DebuggerPresentationModel.js:
2261         (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpoints):
2262         (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles):
2263         (WebInspector.DebuggerPresentationModel.prototype._restoreBreakpointsFromSettings):
2264         (WebInspector.DebuggerPresentationModel.prototype._saveBreakpoints):
2265         (WebInspector.DebuggerPresentationModel.prototype._reset):
2266         * inspector/front-end/Settings.js:
2267         (WebInspector.Settings):
2268         (WebInspector.Settings.prototype._set):
2269
2270 2011-06-17  Joone Hur  <joone.hur@collabora.co.uk>
2271
2272         Reviewed by Martin Robinson.
2273
2274         [GTK] Replace GdkRectangle by cairo_rectangle_int_t
2275         https://bugs.webkit.org/show_bug.cgi?id=60687
2276
2277         Replace GdkRectangle by cairo_rectangle_int_t.
2278
2279         * GNUmakefile.list.am: Added IntRectCairo.cpp instead of IntRectGtk.cpp
2280         * platform/graphics/IntRect.h: IntRect class can be instantiated through the given cairo_rectangle_int_t 
2281         instead of GdkRectangle.
2282         * platform/graphics/cairo/IntRectCairo.cpp: Add the constructor and operator for handling cairo_rectangle_int_t.
2283         (WebCore::IntRect::IntRect): 
2284         (WebCore::IntRect::operator cairo_rectangle_int_t):
2285         * platform/graphics/gtk/IntRectGtk.cpp: Include this file only for Gtk+2.
2286         * platform/gtk/GtkPluginWidget.cpp: Replace GdkRectangle by cairo_rectangle_int_t.
2287         (WebCore::GtkPluginWidget::invalidateRect):
2288
2289 2011-06-17  Alexander Pavlov  <apavlov@chromium.org>
2290
2291         Reviewed by David Hyatt.
2292
2293         Web Inspector: support for emulating element's pseudo class state in styleRulesForElement()
2294         https://bugs.webkit.org/show_bug.cgi?id=61070
2295
2296         This patch is a slight rework of a solution by Alexander Udalov.
2297         It is supposed to help implement a feature in Web Inspector to examine
2298         style rules matched for different states of a given element.
2299         Web Inspector is supposed to pass a mask of ForcePseudoClassFlags to
2300         styleRulesForElement(), so that it will filter only the rules whose state
2301         (a set of pseudo classes in their selectors) matches a given
2302         mask, ignoring the state of the element itself.
2303         DoNotForcePseudoClassMask is the default behaviour; it always examines
2304         the state of a given element to make a match.
2305
2306         Tests will be provided in a subsequent Web Inspector change employing this functionality.
2307
2308         * css/CSSStyleSelector.cpp:
2309         (WebCore::CSSStyleSelector::initForStyleResolve):
2310         (WebCore::CSSStyleSelector::styleRulesForElement):
2311         (WebCore::CSSStyleSelector::pseudoStyleRulesForElement):
2312         (WebCore::CSSStyleSelector::checkSelector):
2313         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
2314         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
2315         * css/CSSStyleSelector.h:
2316
2317 2011-06-17  Yury Semikhatsky  <yurys@chromium.org>
2318
2319         Reviewed by Pavel Feldman.
2320
2321         Web Inspector: support preview mode for live edit changes
2322         https://bugs.webkit.org/show_bug.cgi?id=62851
2323
2324         Debugger.editScriptSource command now supports preview flag.
2325
2326         * bindings/js/ScriptDebugServer.cpp:
2327         (WebCore::ScriptDebugServer::editScriptSource):
2328         * bindings/js/ScriptDebugServer.h:
2329         * bindings/v8/ScriptDebugServer.cpp:
2330         (WebCore::ScriptDebugServer::editScriptSource):
2331         * bindings/v8/ScriptDebugServer.h:
2332         * inspector/Inspector.json:
2333         * inspector/InspectorDebuggerAgent.cpp:
2334         (WebCore::InspectorDebuggerAgent::editScriptSource):
2335         * inspector/InspectorDebuggerAgent.h:
2336
2337 2011-06-09  Hans Wennborg  <hans@chromium.org>
2338
2339         Reviewed by Tony Gentilcore.
2340
2341         IndexedDB: backingStoreMap is per backing store, not per database
2342         https://bugs.webkit.org/show_bug.cgi?id=62382
2343
2344         IDBFactoryBackendImpl::m_backingStoreMap should contain an entry per
2345         backing store, not per database. Otherwise, we might accidentally open
2346         the same backing store more than once, which is dangerous.
2347
2348         Also tweak the code that chooses backing store type. It should be
2349         simple: we default to SQLite; if LevelDB is specifically requested, we
2350         use that. If LevelDB is requested and there is a SQLite database, we
2351         migrate.
2352
2353         No new tests, just cleaning up the code.
2354
2355         * storage/IDBFactoryBackendImpl.cpp:
2356         (WebCore::IDBFactoryBackendImpl::addIDBBackingStore):
2357         (WebCore::IDBFactoryBackendImpl::removeIDBBackingStore):
2358         (WebCore::IDBFactoryBackendImpl::open):
2359         (WebCore::IDBFactoryBackendImpl::migrateFromSQLiteToLevelDB):
2360         * storage/IDBFactoryBackendImpl.h:
2361
2362 2011-06-17  Andrey Adaikin  <aandrey@google.com>
2363
2364         Reviewed by Pavel Feldman.
2365
2366         Web Inspector: Source code which includes non-Latin character does not correspond to line number field on Inspector
2367         https://bugs.webkit.org/show_bug.cgi?id=62845
2368
2369         * inspector/front-end/TextViewer.js:
2370         (WebInspector.TextViewer.prototype._syncLineHeight):
2371         (WebInspector.TextEditorGutterPanel):
2372         (WebInspector.TextEditorGutterChunk.prototype.set expanded):
2373
2374 2011-06-16  Yury Semikhatsky  <yurys@chromium.org>
2375
2376         Reviewed by Pavel Feldman.
2377
2378         Web Inspector: return description of the changes applied in response to editScriptSource command
2379         https://bugs.webkit.org/show_bug.cgi?id=62801
2380
2381         Return description of the changes made in response to Debugger.editScriptSource command.
2382
2383         * bindings/js/ScriptDebugServer.cpp:
2384         (WebCore::ScriptDebugServer::editScriptSource):
2385         * bindings/js/ScriptDebugServer.h:
2386         * bindings/v8/DebuggerScript.js:
2387         ():
2388         * bindings/v8/ScriptDebugServer.cpp:
2389         (WebCore::ScriptDebugServer::editScriptSource):
2390         * bindings/v8/ScriptDebugServer.h:
2391         * inspector/Inspector.json:
2392
2393 2011-06-16  Gabor Loki  <loki@webkit.org>
2394
2395         [Qt] Unreviewed, build fix after r89118.
2396
2397         * dom/XMLDocumentParserQt.cpp:
2398         (WebCore::XMLDocumentParser::initializeParserContext):
2399
2400 2011-06-16  Yuta Kitamura  <yutak@chromium.org>
2401
2402         Unreviewed, rolling out r89073.
2403         http://trac.webkit.org/changeset/89073
2404         https://bugs.webkit.org/show_bug.cgi?id=62783
2405
2406         Broke Chromium Clang build.
2407
2408         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
2409         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
2410         (wkScrollbarPainterPaint):
2411         * platform/chromium/ScrollbarThemeChromiumMac.h:
2412         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2413         (WebCore::ScrollbarThemeChromiumMac::paint):
2414
2415 2011-06-16  Jeffrey Pfau  <jpfau@apple.com>
2416
2417         Reviewed by Alexey Proskuryakov.
2418
2419         Using null bytes when setting innerHTML in XTHML results in assertion and a crash due to null-pointer dereference
2420         https://bugs.webkit.org/show_bug.cgi?id=61053
2421
2422         XML parsing in-memory XML chunks now passes around a string object instead of a C string, ensuring null characters are properly handled.
2423
2424         Tests: fast/parser/xhtml-innerhtml-null-byte-first.xhtml
2425                fast/parser/xhtml-innerhtml-null-byte.xhtml
2426
2427         * dom/XMLDocumentParser.h:
2428         * dom/XMLDocumentParserLibxml2.cpp:
2429         (WebCore::XMLParserContext::createMemoryParser):
2430         (WebCore::XMLDocumentParser::initializeParserContext):
2431         (WebCore::XMLDocumentParser::appendFragmentSource):
2432
2433 2011-06-16  Robin Dunn  <robin@alldunn.com>
2434
2435         Reviewed by Kevin Ollivier.
2436
2437         [wx] Account for differing byte order when decoding images in the PPC build.
2438         
2439         https://bugs.webkit.org/show_bug.cgi?id=62830
2440
2441         * platform/image-decoders/wx/ImageDecoderWx.cpp:
2442         (WebCore::ImageFrame::asNewNativeImage):
2443
2444 2011-06-16  Darin Adler  <darin@apple.com>
2445
2446         Reviewed by Dan Bernstein.
2447
2448         REGRESSION (r89035): HTMLTableRowsCollection constructor crashes; depends on compiler order of evaluation
2449         https://bugs.webkit.org/show_bug.cgi?id=62836
2450
2451         Covered by existing tests on platforms where it occurs.
2452
2453         * html/HTMLTableRowsCollection.cpp:
2454         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection): Add a call to get()
2455         to prevent the passing behavior of PassRefPtr from kicking in and changing the
2456         table pointer to 0, possibly before it is dereferenced.
2457
2458 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2459
2460         Unreviewed, rolling out r89055.
2461         http://trac.webkit.org/changeset/89055
2462         https://bugs.webkit.org/show_bug.cgi?id=62835
2463
2464         Caused failures on all ports except GTK (Requested by
2465         mrobinson on #webkit).
2466
2467         * platform/network/soup/ResourceHandleSoup.cpp:
2468         (WebCore::statusWillBeHandledBySoup):
2469         (WebCore::soupErrorShouldCauseLoadFailure):
2470         (WebCore::convertSoupErrorToResourceError):
2471         (WebCore::sendRequestCallback):
2472
2473 2011-06-16  Ryosuke Niwa  <rniwa@webkit.org>
2474
2475         Reviewed by Darin Adler.
2476
2477         Support logical line movement in vertical writing mode
2478         https://bugs.webkit.org/show_bug.cgi?id=62743
2479
2480         Fixed the bug by making xOffsetForVerticalNavigation (now called lineDirectionPointForVerticalNavigation)
2481         aware of writing modes. Also extracted absoluteLineDirectionPointToLocalPointInBlock from previousLinePosition
2482         and nextLinePosition to convert a line direction point to a physical point relative to a root inline box.
2483
2484         Tests: editing/selection/vertical-lr-ltr-extend-line-backward-br.html
2485                editing/selection/vertical-lr-ltr-extend-line-forward-br.html
2486                editing/selection/vertical-rl-ltr-extend-line-backward-br.html
2487                editing/selection/vertical-rl-ltr-extend-line-backward-p.html
2488                editing/selection/vertical-rl-ltr-extend-line-backward-wrap.html
2489                editing/selection/vertical-rl-ltr-extend-line-forward-br.html
2490                editing/selection/vertical-rl-ltr-extend-line-forward-p.html
2491                editing/selection/vertical-rl-ltr-extend-line-forward-wrap.html
2492                editing/selection/vertical-rl-rtl-extend-line-backward-br.html
2493                editing/selection/vertical-rl-rtl-extend-line-backward-p.html
2494                editing/selection/vertical-rl-rtl-extend-line-forward-br.html
2495                editing/selection/vertical-rl-rtl-extend-line-forward-p.html
2496
2497         * editing/FrameSelection.cpp:
2498         (WebCore::FrameSelection::modifyExtendingForward): Calls lineDirectionPointForBlockDirectionNavigation.
2499         (WebCore::FrameSelection::modifyMovingForward): Ditto.
2500         (WebCore::FrameSelection::modifyExtendingBackward): Ditto.
2501         (WebCore::FrameSelection::modifyMovingBackward): Ditto.
2502         (WebCore::FrameSelection::modify): Ditto.
2503         (WebCore::FrameSelection::lineDirectionPointForBlockDirectionNavigation): Renamed from
2504         xPosForVerticalArrowNavigation; calls VisiblePosition::lineDirectionPointForVerticalNavigation.
2505         * editing/FrameSelection.h:
2506         * editing/VisiblePosition.cpp:
2507         (WebCore::VisiblePosition::lineDirectionPointForBlockDirectionNavigation): Renamed from
2508         xOffsetForVerticalNavigation. Returns line direction point instead of visual x coordinate.
2509         * editing/VisiblePosition.h:
2510         * editing/visible_units.cpp:
2511         (WebCore::absoluteLineDirectionPointToLocalPointInBlock): Extracted from previousLinePosition and
2512         nextLinePosition. Takes care or writing modes.
2513         (WebCore::previousLinePosition): Calls absoluteLineDirectionPointToLocalPointInBlock.
2514         (WebCore::nextLinePosition): Ditto.
2515         * editing/visible_units.h:
2516         * rendering/RootInlineBox.cpp:
2517         (WebCore::RootInlineBox::closestLeafChildForPoint): Added; takes a physical point and calls
2518         closestLeafChildForLogicalLeftPosition with logical x.
2519         * rendering/RootInlineBox.h:
2520
2521 2011-06-16  Nate Chapin  <japhet@chromium.org>
2522
2523         Reviewed by Alexey Proskuryakov.
2524
2525         Set the referrer on a ResourceRequest from a WorkerThreadableLoader
2526         as soon as the request reaches the main thread and remove the
2527         optionalOutgoingReferrer parameter from some functions.
2528         https://bugs.webkit.org/show_bug.cgi?id=62806
2529
2530         * loader/DocumentThreadableLoader.cpp:
2531         (WebCore::DocumentThreadableLoader::loadResourceSynchronously):
2532         (WebCore::DocumentThreadableLoader::create):
2533         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
2534         (WebCore::DocumentThreadableLoader::loadRequest):
2535         * loader/DocumentThreadableLoader.h:
2536         * loader/ResourceLoadScheduler.cpp:
2537         (WebCore::ResourceLoadScheduler::scheduleSubresourceLoad):
2538         * loader/ResourceLoadScheduler.h:
2539         * loader/SubresourceLoader.cpp:
2540         (WebCore::SubresourceLoader::create):
2541         * loader/SubresourceLoader.h:
2542         * loader/WorkerThreadableLoader.cpp:
2543         (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
2544
2545 2011-06-16  Eric Seidel  <eric@webkit.org>
2546
2547         Reviewed by Adam Barth.
2548
2549         FrameLoader doesn't need completeURL or baseURL
2550         https://bugs.webkit.org/show_bug.cgi?id=62818
2551
2552         No functional change, thus no tests.
2553
2554         * html/HTMLPlugInImageElement.cpp:
2555         (WebCore::HTMLPlugInImageElement::isImageType):
2556         (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
2557         * inspector/InspectorPageAgent.cpp:
2558         (WebCore::InspectorPageAgent::open):
2559         * loader/FrameLoader.cpp:
2560         * loader/FrameLoader.h:
2561         * loader/NavigationScheduler.cpp:
2562         (WebCore::NavigationScheduler::scheduleLocationChange):
2563         * page/History.cpp:
2564         (WebCore::History::urlForState):
2565
2566 2011-06-16  Dawit Alemayehu  <adawit@kde.org>
2567
2568         Reviewed by Antonio Gomes.
2569
2570         Support for gnash flash player plugin in QtWebKit
2571
2572         [Qt] Support for the gnash flash player plugin
2573         https://bugs.webkit.org/show_bug.cgi?id=62283
2574
2575         No new tests needed. Existing nsplugin tests are sufficient.
2576
2577         * plugins/qt/PluginPackageQt.cpp:
2578         (WebCore::PluginPackage::load):
2579
2580 2011-06-16  Sailesh Agrawal  <sail@chromium.org>
2581
2582         Reviewed by Mihai Parparita.
2583
2584         [Chromium] Draw search tickmarks on overlay scrollbars
2585         https://bugs.webkit.org/show_bug.cgi?id=62783
2586
2587         This change adds search tickmark support for overlay scrollbars. Tickmarks are only drawn when the scroll track is visible.
2588
2589         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:Split the scrollbar drawing code into a track and knob version.
2590         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
2591         (wkScrollbarPainterPaint):
2592         (wkScrollbarPainterPaintTrack):
2593         (wkScrollbarPainterPaintKnob):
2594         * platform/chromium/ScrollbarThemeChromiumMac.h:
2595         * platform/chromium/ScrollbarThemeChromiumMac.mm:Factor out the paint tickmark code and call it from the overlay scrollbar drawing code.
2596         (WebCore::ScrollbarThemeChromiumMac::paint):
2597         (WebCore::ScrollbarThemeChromiumMac::paintTickmarks):
2598
2599 2011-06-16  Geoffrey Garen  <ggaren@apple.com>
2600
2601         Reviewed by Oliver Hunt.
2602
2603         Introduced SlotVisitor into the project
2604         https://bugs.webkit.org/show_bug.cgi?id=62820
2605
2606         This resolves a class vs typedef forward declaration issue, and gives all
2607         exported symbols the correct names.
2608
2609         * dom/EventListener.h:
2610         * dom/Node.h:
2611         * dom/NodeFilterCondition.h:
2612
2613 2011-06-16  Abhishek Arya  <inferno@chromium.org>
2614
2615         Reviewed by Adam Barth.
2616
2617         RefPtr frame since it can get removed in
2618         FrameLoader::finishedParsing.
2619         https://bugs.webkit.org/show_bug.cgi?id=62812
2620
2621         Tests: already tested by fast/parser/document-write-into-initial-document.html.
2622
2623         * dom/Document.cpp:
2624         (WebCore::Document::finishedParsing):
2625
2626 2011-06-16  Sailesh Agrawal  <sail@chromium.org>
2627
2628         Reviewed by Mihai Parparita.
2629
2630         [Chromium] Update forked ScrollAnimatorChromiumMac.mm/h
2631         https://bugs.webkit.org/show_bug.cgi?id=62779
2632
2633         Updated ScrollAnimatorChromiumMac.mm/h with the latest code in WebCore/platform/mac/ScrollAnimatorMac.mm/h
2634
2635         * platform/chromium/ScrollAnimatorChromiumMac.h:
2636         (WebCore::ScrollAnimatorChromiumMac::setNeedsScrollerStyleUpdate):
2637         (WebCore::ScrollAnimatorChromiumMac::needsScrollerStyleUpdate):
2638         * platform/chromium/ScrollAnimatorChromiumMac.mm:
2639         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
2640         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
2641         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
2642         (WebCore::ScrollAnimatorChromiumMac::scroll):
2643         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPointForScrollAnimation):
2644         (WebCore::isScrollingLeftAndShouldNotRubberBand):
2645         (WebCore::isScrollingRightAndShouldNotRubberBand):
2646         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
2647         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
2648         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
2649         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
2650         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
2651         (WebCore::ScrollAnimatorChromiumMac::setIsActive):
2652         (WebCore::ScrollAnimatorChromiumMac::updateScrollerStyle):
2653         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
2654         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
2655         (wkScrollbarPainterControllerStyle):
2656
2657 2011-06-16  Sailesh Agrawal  <sail@chromium.org>
2658
2659         Reviewed by Mihai Parparita.
2660
2661         [Chromium] Overlay scrollbars leave glitches on web content
2662         https://bugs.webkit.org/show_bug.cgi?id=62383
2663
2664         Enable overlay scrollbars on Chromium Mac.
2665
2666         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
2667         (preferredScrollerStyle):
2668
2669 2011-06-16  una sabovic  <una.sabovic@palm.com>
2670
2671         Reviewed by Simon Fraser.
2672
2673         Optimization: do a single fillRect when painting the root background in RenderBoxModelObject::paintFillLayerExtended
2674         https://bugs.webkit.org/show_bug.cgi?id=62593
2675
2676         When painting the root background, instead of doing two fillRects blend the base with background color and do a single fillRect.
2677         
2678         No new tests. This is an optimization and it doesn't change any existing functionality.
2679
2680         * rendering/RenderBoxModelObject.cpp:
2681         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2682
2683 2011-06-16  Ryosuke Niwa  <rniwa@webkit.org>
2684
2685         Reviewed by Eric Seidel.
2686
2687         Consider padding and border when looking for the next/previous line position
2688         https://bugs.webkit.org/show_bug.cgi?id=55481
2689
2690         The bug was caused by previousLinePosition and nextLinePosition passing y coordinate
2691         above the line in some cases. Fixed the bug by passing the larger of selectionTop and logicalTop.
2692
2693         This patch is based on a patch originally written by Mario Sanchez Prada <msanchez@igalia.com>.
2694
2695         Test: editing/selection/move-vertically-with-paddings-borders.html
2696
2697         * editing/visible_units.cpp:
2698         (WebCore::previousLinePosition):
2699         (WebCore::nextLinePosition):
2700         * rendering/RootInlineBox.h:
2701         (WebCore::RootInlineBox::blockDirectionPointInLine):
2702
2703 2011-06-16  Keunsoon Lee  <keunsoon.lee@samsung.com>
2704
2705         Reviewed by Martin Robinson.
2706
2707         [SOUP] Abnormal operation if server sends 5xx status code without HTTP body
2708         https://bugs.webkit.org/show_bug.cgi?id=60875
2709
2710         Handle status code 4xx and 5xx after receiving HTTP body
2711
2712         Webkit soup port premises that server always sends error page
2713         in case server sends error code, 4xx and 5xx.
2714         But, sometimes there is no HTTP body for error page.
2715         In that case, Webkit does nothing or tries to download the HTTP response
2716         according to received MIME Type even if there is no HTTP body. (abnormal operation)
2717
2718         With this modification,
2719         Browser will show received error page if server sends error page.
2720         Or it will show its own error page from each port if server sends nothing.
2721
2722         Modified algorithm
2723         1) libsoup sends status code 4xx or 5xx (client error or server error)
2724         2) Webkit soup port orders to accumulate HTTP body chunks to libsoup.
2725         3) Webkit soup port ignores gotHeadersCallback, contentSniffedCallback and gotChunkCallback.
2726         4) Webkit soup port checks there is HTTP body or not on sendRequestCallback and;
2727              4-1) if there is HTTP body, calls didReceiveResponse()
2728              4-2) if there is no HTTP body, calls didFail() - prevent the abnormal operation
2729
2730         Test: http/tests/loading/status-code-error-without-response-body.html
2731
2732         * platform/network/soup/ResourceHandleSoup.cpp:
2733         (WebCore::statusWillBeHandledBySoup):
2734             Add a new condition, SOUP_STATUS_IS_CLIENT_ERROR() and SOUP_STATUS_IS_SERVER_ERROR()
2735         (WebCore::soupErrorAndHaveNotReceivedBody):
2736             Add a new helper function, it checks received body is exist if soup sends error code
2737         (WebCore::soupErrorShouldCauseLoadFailure):
2738            Add a new condition, soupErrorAndHaveNotReceivedBody()
2739         (WebCore::convertSoupErrorToResourceError):
2740            Add a new condition, soupErrorAndHaveNotReceivedBody()
2741         (WebCore::sendRequestCallback):
2742            Check handle->client() again, because didReceiveResponse() can make it zero
2743
2744 2011-06-16  Vsevolod Vlasov  <vsevik@chromium.org>
2745
2746         Reviewed by Pavel Feldman.
2747
2748         Web Inspector: Network panel shows incorrect query parameters when url has fragment.
2749         https://bugs.webkit.org/show_bug.cgi?id=62723
2750
2751         * English.lproj/localizedStrings.js:
2752         * inspector/front-end/HAREntry.js:
2753         (WebInspector.HAREntry.prototype._buildRequest):
2754         (WebInspector.HAREntry.prototype._buildRequestURL):
2755         * inspector/front-end/Resource.js:
2756         (WebInspector.Resource.prototype.set url):
2757         (WebInspector.Resource.prototype.get queryParameters):
2758         * inspector/front-end/ResourceHeadersView.js:
2759         (WebInspector.ResourceHeadersView):
2760         (WebInspector.ResourceHeadersView.prototype._refreshUrlFragment):
2761
2762 2011-06-16  Dimitri Glazkov  <dglazkov@chromium.org>
2763
2764         Clang fix after r89039.
2765
2766         * rendering/RenderThemeMac.h: Removed spurious constipation.
2767         * rendering/RenderThemeMac.mm:
2768         (WebCore::RenderThemeMac::fileListNameForWidth): Ditto.
2769
2770 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2771
2772         Unreviewed, rolling out r89026.
2773         http://trac.webkit.org/changeset/89026
2774         https://bugs.webkit.org/show_bug.cgi?id=62804
2775
2776         These patches were likely correct.  I'll investigate the
2777         browser_test failures. (Requested by abarth on #webkit).
2778
2779         * WebCore.exp.in:
2780         * bindings/js/ScheduledAction.cpp:
2781         (WebCore::ScheduledAction::execute):
2782         * bindings/js/ScriptController.cpp:
2783         (WebCore::ScriptController::ScriptController):
2784         (WebCore::ScriptController::processingUserGesture):
2785         * bindings/js/ScriptController.h:
2786         * bindings/v8/ScriptController.cpp:
2787         (WebCore::ScriptController::ScriptController):
2788         (WebCore::ScriptController::processingUserGesture):
2789         * bindings/v8/ScriptController.h:
2790         * dom/Event.cpp:
2791         * dom/Event.h:
2792         * dom/UserGestureIndicator.cpp:
2793         (WebCore::isDefinite):
2794         (WebCore::UserGestureIndicator::UserGestureIndicator):
2795         (WebCore::UserGestureIndicator::~UserGestureIndicator):
2796         * dom/UserGestureIndicator.h:
2797         (WebCore::UserGestureIndicator::processingUserGesture):
2798         * html/HTMLMediaElement.cpp:
2799         (WebCore::HTMLMediaElement::removedFromDocument):
2800         (WebCore::HTMLMediaElement::load):
2801         (WebCore::HTMLMediaElement::play):
2802         (WebCore::HTMLMediaElement::pause):
2803         (WebCore::HTMLMediaElement::beginScrubbing):
2804         (WebCore::HTMLMediaElement::resume):
2805         * html/HTMLMediaElement.h:
2806         * html/HTMLMediaElement.idl:
2807         * html/HTMLVideoElement.cpp:
2808         (WebCore::HTMLVideoElement::webkitEnterFullscreen):
2809         * html/HTMLVideoElement.h:
2810         (WebCore::HTMLVideoElement::webkitEnterFullScreen):
2811         * html/HTMLVideoElement.idl:
2812         * html/MediaDocument.cpp:
2813         (WebCore::MediaDocument::defaultEventHandler):
2814         * html/shadow/MediaControlElements.cpp:
2815         (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
2816         * html/shadow/TextControlInnerElements.cpp:
2817         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
2818
2819 2011-06-16  Dimitri Glazkov  <dglazkov@chromium.org>
2820
2821         [Qt] Build fix after r89039.
2822
2823         * WebCore.pro: Added StringTruncator to build system.
2824         * platform/qt/RenderThemeQt.cpp: Reverted previous change.
2825
2826 2011-06-16  Dimitri Glazkov  <dglazkov@chromium.org>
2827
2828         [Qt] Build fix after r89039.
2829
2830         * platform/qt/RenderThemeQt.cpp: Added StringTruncator include.
2831
2832 2011-06-16  Dimitri Glazkov  <dglazkov@chromium.org>
2833
2834         [Qt] Build fix after r89039.
2835
2836         * platform/qt/RenderThemeQt.h: Renamed local variable f to font.
2837
2838 2011-06-16  Dimitri Glazkov  <dglazkov@chromium.org>
2839
2840         [Qt] Build fix after r89039.
2841
2842         * platform/qt/RenderThemeQt.h: Move decl out of ENABLE(VIDEO) ifdef.
2843
2844 2011-06-15  Dimitri Glazkov  <dglazkov@chromium.org>
2845
2846         Reviewed by Kent Tamura.
2847
2848         Move FileChooser::basenameForWidth to RenderTheme::fileListNameForWidth, eliminate gnarly FileChooserFoo proliferation.
2849         https://bugs.webkit.org/show_bug.cgi?id=62748
2850
2851         Refactoring, covered by existing tests.
2852
2853         * CMakeListsEfl.txt: Removed FileChooserFoo from build system.
2854         * CMakeListsWinCE.txt: Ditto.
2855         * GNUmakefile.list.am: Ditto.
2856         * WebCore.gypi: Ditto.
2857         * WebCore.order: Ditto.
2858         * WebCore.pro: Ditto.
2859         * WebCore.vcproj/WebCore.vcproj: Ditto.
2860         * WebCore.xcodeproj/project.pbxproj: Ditto.
2861         * platform/FileChooser.h: Removed baseNameForWidth decl.
2862         * platform/FileSystem.h: Removed now-unnecessary Chromium-specific cruft.
2863         * platform/android/FileChooserAndroid.cpp: Removed.
2864         * platform/brew/FileChooserBrew.cpp: Removed.
2865         * platform/chromium/FileChooserChromium.cpp: Removed.
2866         * platform/chromium/FileSystemChromiumLinux.cpp: Removed now-unnecessary code.
2867         * platform/chromium/FileSystemChromiumMac.mm: Ditto.
2868         * platform/chromium/FileSystemChromiumWin.cpp: Ditto.
2869         * platform/efl/FileChooserEfl.cpp: Removed.
2870         * platform/gtk/FileChooserGtk.cpp: Removed.
2871         * platform/gtk/RenderThemeGtk.cpp:
2872         (WebCore::stringByAdoptingFileSystemRepresentation): Moved from FileChooserGtk.
2873         (WebCore::RenderThemeGtk::fileListNameForWidth): Ditto.
2874         * platform/gtk/RenderThemeGtk.h: Added decl.
2875         * platform/haiku/FileChooserHaiku.cpp: Removed.
2876         * platform/mac/FileChooserMac.mm: Removed.
2877         * platform/qt/FileChooserQt.cpp: Removed.
2878         * platform/qt/RenderThemeQt.cpp:
2879         (WebCore::RenderThemeQt::RenderThemeQt): Moved from FileChooserQt.
2880         (WebCore::RenderThemeQt::fileListNameForWidth): Ditto.
2881         * platform/qt/RenderThemeQt.h: Adde decl.
2882         * platform/win/FileChooserWin.cpp: Removed.
2883         * platform/wx/FileChooserWx.cpp: Removed.
2884         * rendering/RenderFileUploadControl.cpp:
2885         (WebCore::RenderFileUploadControl::fileTextValue): Changed to use RenderTheme.
2886         * rendering/RenderTheme.cpp:
2887         (WebCore::RenderTheme::fileListNameForWidth): Added default impl.
2888         * rendering/RenderTheme.h: Added decl.
2889         * rendering/RenderThemeMac.h: Ditto.
2890         * rendering/RenderThemeMac.mm:
2891         (WebCore::RenderThemeMac::fileListNameForWidth): Added default Mac impl.
2892
2893 2011-06-16  Vsevolod Vlasov  <vsevik@chromium.org>
2894
2895         Reviewed by Pavel Feldman.
2896
2897         Web Inspector: Cache XHR content in backend, do not use initialContentSet for XHRs.
2898         https://bugs.webkit.org/show_bug.cgi?id=61205
2899
2900         Added inspector backend cache for XHR content.
2901
2902         Tests: http/tests/inspector/network/network-xhr-async.html
2903                http/tests/inspector/network/network-xhr-sync.html
2904
2905         * CMakeLists.txt:
2906         * GNUmakefile.list.am:
2907         * WebCore.gypi:
2908         * WebCore.pro:
2909         * WebCore.vcproj/WebCore.vcproj:
2910         * WebCore.xcodeproj/project.pbxproj:
2911         * fileapi/FileReaderLoader.cpp:
2912         (WebCore::FileReaderLoader::didReceiveResponse):
2913         * fileapi/FileReaderLoader.h:
2914         * inspector/Inspector.json:
2915         * inspector/InspectorInstrumentation.cpp:
2916         (WebCore::InspectorInstrumentation::didReceiveXHRResponseImpl):
2917         (WebCore::InspectorInstrumentation::willLoadXHRSynchronouslyImpl):
2918         (WebCore::InspectorInstrumentation::didLoadXHRSynchronouslyImpl):
2919         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
2920         * inspector/InspectorInstrumentation.h:
2921         (WebCore::InspectorInstrumentation::didReceiveXHRResponse):
2922         (WebCore::InspectorInstrumentation::willLoadXHRSynchronously):
2923         (WebCore::InspectorInstrumentation::didLoadXHRSynchronously):
2924         * inspector/InspectorResourceAgent.cpp:
2925         (WebCore::InspectorResourceAgent::willSendRequest):
2926         (WebCore::InspectorResourceAgent::didReceiveResponse):
2927         (WebCore::InspectorResourceAgent::setInitialXHRContent):
2928         (WebCore::InspectorResourceAgent::didReceiveXHRResponse):
2929         (WebCore::InspectorResourceAgent::willLoadXHRSynchronously):
2930         (WebCore::InspectorResourceAgent::didLoadXHRSynchronously):
2931         (WebCore::InspectorResourceAgent::getResourceContent):
2932         (WebCore::InspectorResourceAgent::mainFrameNavigated):
2933         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
2934         * inspector/InspectorResourceAgent.h:
2935         * inspector/NetworkResourcesData.cpp: Added.
2936         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
2937         (WebCore::NetworkResourcesData::ResourceData::content):
2938         (WebCore::NetworkResourcesData::ResourceData::appendContent):
2939         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
2940         (WebCore::NetworkResourcesData::NetworkResourcesData):
2941         (WebCore::NetworkResourcesData::~NetworkResourcesData):
2942         (WebCore::NetworkResourcesData::resourceCreated):
2943         (WebCore::NetworkResourcesData::responseReceived):
2944         (WebCore::NetworkResourcesData::didReceiveXHRResponse):
2945         (WebCore::NetworkResourcesData::addResourceContent):
2946         (WebCore::NetworkResourcesData::isXHR):
2947         (WebCore::NetworkResourcesData::data):
2948         (WebCore::NetworkResourcesData::clear):
2949         (WebCore::NetworkResourcesData::ensureNoDataForIdentifier):
2950         (WebCore::NetworkResourcesData::ensureFreeSpace):
2951         * inspector/NetworkResourcesData.h: Added.
2952         (WebCore::NetworkResourcesData::ResourceData::identifier):
2953         (WebCore::NetworkResourcesData::ResourceData::loaderId):
2954         (WebCore::NetworkResourcesData::ResourceData::frameId):
2955         (WebCore::NetworkResourcesData::ResourceData::setFrameId):
2956         (WebCore::NetworkResourcesData::ResourceData::url):
2957         (WebCore::NetworkResourcesData::ResourceData::setUrl):
2958         (WebCore::NetworkResourcesData::ResourceData::isXHR):
2959         (WebCore::NetworkResourcesData::ResourceData::setIsXHR):
2960         (WebCore::NetworkResourcesData::ResourceData::hasContent):
2961         (WebCore::NetworkResourcesData::ResourceData::isContentPurged):
2962         (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
2963         * inspector/front-end/NetworkManager.js:
2964         (WebInspector.NetworkManager.prototype.requestContent):
2965         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
2966         * inspector/front-end/NetworkPanel.js:
2967         (WebInspector.NetworkPanel.prototype._appendResource):
2968         (WebInspector.NetworkPanel.prototype._frameNavigated):
2969         * loader/DocumentThreadableLoader.cpp:
2970         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2971         (WebCore::DocumentThreadableLoader::receivedCancellation):
2972         (WebCore::DocumentThreadableLoader::loadRequest):
2973         * loader/DocumentThreadableLoader.h:
2974         * loader/ThreadableLoaderClient.h:
2975         (WebCore::ThreadableLoaderClient::didReceiveResponse):
2976         (WebCore::ThreadableLoaderClient::didReceiveAuthenticationCancellation):
2977         * loader/ThreadableLoaderClientWrapper.h:
2978         (WebCore::ThreadableLoaderClientWrapper::didReceiveResponse):
2979         (WebCore::ThreadableLoaderClientWrapper::didReceiveAuthenticationCancellation):
2980         * loader/WorkerThreadableLoader.cpp:
2981         (WebCore::workerContextDidReceiveResponse):
2982         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
2983         (WebCore::workerContextDidReceiveAuthenticationCancellation):
2984         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveAuthenticationCancellation):
2985         * loader/WorkerThreadableLoader.h:
2986         * notifications/Notification.cpp:
2987         (WebCore::Notification::didReceiveResponse):
2988         (WebCore::Notification::didReceiveAuthenticationCancellation):
2989         * notifications/Notification.h:
2990         * page/EventSource.cpp:
2991         (WebCore::EventSource::didReceiveResponse):
2992         * page/EventSource.h:
2993         * workers/WorkerScriptLoader.cpp:
2994         (WebCore::WorkerScriptLoader::didReceiveResponse):
2995         (WebCore::WorkerScriptLoader::didReceiveAuthenticationCancellation):
2996         * workers/WorkerScriptLoader.h:
2997         * xml/XMLHttpRequest.cpp:
2998         (WebCore::XMLHttpRequest::createRequest):
2999         (WebCore::XMLHttpRequest::didReceiveResponse):
3000         (WebCore::XMLHttpRequest::didReceiveAuthenticationCancellation):
3001         * xml/XMLHttpRequest.h:
3002
3003 2011-06-16  Julien Chaffraix  <jchaffraix@webkit.org>
3004
3005         Reviewed by Darin Adler.
3006
3007         HTMLTable should cache its 'rows' collection results
3008         https://bugs.webkit.org/show_bug.cgi?id=62800
3009
3010         Test: perf/table-rows-length-caching.html
3011
3012         Currently all our HTMLCollection's are recreated on call. This means that
3013         we don't cache the information about the collection between calls to, for
3014         example, table.rows.
3015
3016         This change adds a CollectionCache to HTMLTableElement. It is similar to what
3017         is done for HTMLFormElement.
3018
3019         * html/HTMLTableElement.cpp:
3020         (WebCore::HTMLTableElement::collectionCache): This method does
3021         lazy initialization of the table's collectionCache.
3022         * html/HTMLTableElement.h: Added a new member and the previous
3023         method.
3024
3025         * html/HTMLTableRowsCollection.cpp:
3026         (WebCore::HTMLTableRowsCollection::HTMLTableRowsCollection): Pass
3027         the HTMLTableElement's CollectionCache so that we reuse the cached
3028         results.
3029
3030 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3031
3032         Unreviewed, rolling out r89025.
3033         http://trac.webkit.org/changeset/89025
3034         https://bugs.webkit.org/show_bug.cgi?id=62799
3035
3036         "Some layout tests fail" (Requested by yurys on #webkit).
3037
3038         * CMakeLists.txt:
3039         * GNUmakefile.list.am:
3040         * WebCore.gypi:
3041         * WebCore.pro:
3042         * WebCore.vcproj/WebCore.vcproj:
3043         * WebCore.xcodeproj/project.pbxproj:
3044         * fileapi/FileReaderLoader.cpp:
3045         (WebCore::FileReaderLoader::didReceiveResponse):
3046         * fileapi/FileReaderLoader.h:
3047         * inspector/Inspector.json:
3048         * inspector/InspectorInstrumentation.cpp:
3049         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
3050         * inspector/InspectorInstrumentation.h:
3051         * inspector/InspectorResourceAgent.cpp:
3052         (WebCore::InspectorResourceAgent::willSendRequest):
3053         (WebCore::InspectorResourceAgent::didReceiveResponse):
3054         (WebCore::InspectorResourceAgent::setInitialXHRContent):
3055         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
3056         * inspector/InspectorResourceAgent.h:
3057         * inspector/NetworkResourcesData.cpp: Removed.
3058         * inspector/NetworkResourcesData.h: Removed.
3059         * inspector/front-end/NetworkManager.js:
3060         (WebInspector.NetworkManager.prototype.requestContent):
3061         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
3062         * inspector/front-end/NetworkPanel.js:
3063         (WebInspector.NetworkPanel.prototype._appendResource):
3064         (WebInspector.NetworkPanel.prototype._frameNavigated):
3065         * loader/DocumentThreadableLoader.cpp:
3066         (WebCore::DocumentThreadableLoader::didReceiveResponse):
3067         (WebCore::DocumentThreadableLoader::receivedCancellation):
3068         (WebCore::DocumentThreadableLoader::loadRequest):
3069         * loader/DocumentThreadableLoader.h:
3070         * loader/ThreadableLoaderClient.h:
3071         (WebCore::ThreadableLoaderClient::didReceiveResponse):
3072         (WebCore::ThreadableLoaderClient::didReceiveAuthenticationCancellation):
3073         * loader/ThreadableLoaderClientWrapper.h:
3074         (WebCore::ThreadableLoaderClientWrapper::didReceiveResponse):
3075         (WebCore::ThreadableLoaderClientWrapper::didReceiveAuthenticationCancellation):
3076         * loader/WorkerThreadableLoader.cpp:
3077         (WebCore::workerContextDidReceiveResponse):
3078         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
3079         (WebCore::workerContextDidReceiveAuthenticationCancellation):
3080         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveAuthenticationCancellation):
3081         * loader/WorkerThreadableLoader.h:
3082         * notifications/Notification.cpp:
3083         (WebCore::Notification::didReceiveResponse):
3084         (WebCore::Notification::didReceiveAuthenticationCancellation):
3085         * notifications/Notification.h:
3086         * page/EventSource.cpp:
3087         (WebCore::EventSource::didReceiveResponse):
3088         * page/EventSource.h:
3089         * workers/WorkerScriptLoader.cpp:
3090         (WebCore::WorkerScriptLoader::didReceiveResponse):
3091         (WebCore::WorkerScriptLoader::didReceiveAuthenticationCancellation):
3092         * workers/WorkerScriptLoader.h:
3093         * xml/XMLHttpRequest.cpp:
3094         (WebCore::XMLHttpRequest::createRequest):
3095         (WebCore::XMLHttpRequest::didReceiveResponse):
3096         (WebCore::XMLHttpRequest::didReceiveAuthenticationCancellation):
3097         * xml/XMLHttpRequest.h:
3098
3099 2011-06-16  Vitaly Repeshko  <vitalyr@chromium.org>
3100
3101         Unreviewed.
3102
3103         Revert Adam's user gesture patch series r89002, r89005, r89007, r89018
3104         https://bugs.webkit.org/show_bug.cgi?id=62796
3105
3106         The patches broke chromium browser tests.
3107
3108         * WebCore.exp.in:
3109         * bindings/js/ScheduledAction.cpp:
3110         (WebCore::ScheduledAction::execute):
3111         * bindings/js/ScriptController.cpp:
3112         (WebCore::ScriptController::ScriptController):
3113         (WebCore::ScriptController::processingUserGesture):
3114         (WebCore::ScriptController::isJavaScriptAnchorNavigation):
3115         * bindings/js/ScriptController.h:
3116         (WebCore::ScriptController::setProcessingTimerCallback):
3117         * bindings/v8/ScriptController.cpp:
3118         (WebCore::ScriptController::ScriptController):
3119         (WebCore::ScriptController::processingUserGesture):
3120         * bindings/v8/ScriptController.h:
3121         (WebCore::ScriptController::setProcessingTimerCallback):
3122         * dom/Event.cpp:
3123         (WebCore::Event::fromUserGesture):
3124         * dom/Event.h:
3125         * dom/UserGestureIndicator.cpp:
3126         (WebCore::UserGestureIndicator::UserGestureIndicator):
3127         (WebCore::UserGestureIndicator::~UserGestureIndicator):
3128         * dom/UserGestureIndicator.h:
3129         (WebCore::UserGestureIndicator::processingUserGesture):
3130         (WebCore::UserGestureIndicator::getUserGestureState):
3131         * html/HTMLMediaElement.cpp:
3132         (WebCore::HTMLMediaElement::removedFromDocument):
3133         (WebCore::HTMLMediaElement::load):
3134         (WebCore::HTMLMediaElement::play):
3135         (WebCore::HTMLMediaElement::pause):
3136         (WebCore::HTMLMediaElement::beginScrubbing):
3137         (WebCore::HTMLMediaElement::resume):
3138         (WebCore::HTMLMediaElement::processingUserGesture):
3139         * html/HTMLMediaElement.h:
3140         * html/HTMLMediaElement.idl:
3141         * html/HTMLVideoElement.cpp:
3142         (WebCore::HTMLVideoElement::webkitEnterFullscreen):
3143         * html/HTMLVideoElement.h:
3144         (WebCore::HTMLVideoElement::webkitEnterFullScreen):
3145         * html/HTMLVideoElement.idl:
3146         * html/MediaDocument.cpp:
3147         (WebCore::MediaDocument::defaultEventHandler):
3148         * html/shadow/MediaControlElements.cpp:
3149         (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
3150         * html/shadow/TextControlInnerElements.cpp:
3151         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
3152
3153 2011-06-16  Vsevolod Vlasov  <vsevik@chromium.org>
3154
3155         Reviewed by Yury Semikhatsky.
3156
3157         Web Inspector: Cache XHR content in backend, do not use initialContentSet for XHRs.
3158         https://bugs.webkit.org/show_bug.cgi?id=61205
3159
3160         Added inspector backend cache for XHR content.
3161
3162         Tests: http/tests/inspector/network/network-xhr-async.html
3163                http/tests/inspector/network/network-xhr-sync.html
3164
3165         * CMakeLists.txt:
3166         * GNUmakefile.list.am:
3167         * WebCore.gypi:
3168         * WebCore.pro:
3169         * WebCore.vcproj/WebCore.vcproj:
3170         * WebCore.xcodeproj/project.pbxproj:
3171         * fileapi/FileReaderLoader.cpp:
3172         (WebCore::FileReaderLoader::didReceiveResponse):
3173         * fileapi/FileReaderLoader.h:
3174         * inspector/Inspector.json:
3175         * inspector/InspectorInstrumentation.cpp:
3176         (WebCore::InspectorInstrumentation::didReceiveXHRResponseImpl):
3177         (WebCore::InspectorInstrumentation::willLoadXHRSynchronouslyImpl):
3178         (WebCore::InspectorInstrumentation::didLoadXHRSynchronouslyImpl):
3179         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
3180         * inspector/InspectorInstrumentation.h:
3181         (WebCore::InspectorInstrumentation::didReceiveXHRResponse):
3182         (WebCore::InspectorInstrumentation::willLoadXHRSynchronously):
3183         (WebCore::InspectorInstrumentation::didLoadXHRSynchronously):
3184         * inspector/InspectorResourceAgent.cpp:
3185         (WebCore::InspectorResourceAgent::willSendRequest):
3186         (WebCore::InspectorResourceAgent::didReceiveResponse):
3187         (WebCore::InspectorResourceAgent::setInitialXHRContent):
3188         (WebCore::InspectorResourceAgent::didReceiveXHRResponse):
3189         (WebCore::InspectorResourceAgent::willLoadXHRSynchronously):
3190         (WebCore::InspectorResourceAgent::didLoadXHRSynchronously):
3191         (WebCore::InspectorResourceAgent::getResourceContent):
3192         (WebCore::InspectorResourceAgent::mainFrameNavigated):
3193         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
3194         * inspector/InspectorResourceAgent.h:
3195         * inspector/NetworkResourcesData.cpp: Added.
3196         (WebCore::NetworkResourcesData::ResourceData::ResourceData):
3197         (WebCore::NetworkResourcesData::ResourceData::content):
3198         (WebCore::NetworkResourcesData::ResourceData::appendContent):
3199         (WebCore::NetworkResourcesData::ResourceData::purgeContent):
3200         (WebCore::NetworkResourcesData::NetworkResourcesData):
3201         (WebCore::NetworkResourcesData::~NetworkResourcesData):
3202         (WebCore::NetworkResourcesData::resourceCreated):
3203         (WebCore::NetworkResourcesData::responseReceived):
3204         (WebCore::NetworkResourcesData::didReceiveXHRResponse):
3205         (WebCore::NetworkResourcesData::addResourceContent):
3206         (WebCore::NetworkResourcesData::isXHR):
3207         (WebCore::NetworkResourcesData::data):
3208         (WebCore::NetworkResourcesData::clear):
3209         (WebCore::NetworkResourcesData::ensureFreeSpace):
3210         * inspector/NetworkResourcesData.h: Added.
3211         (WebCore::NetworkResourcesData::ResourceData::identifier):
3212         (WebCore::NetworkResourcesData::ResourceData::loaderId):
3213         (WebCore::NetworkResourcesData::ResourceData::frameId):
3214         (WebCore::NetworkResourcesData::ResourceData::setFrameId):
3215         (WebCore::NetworkResourcesData::ResourceData::url):
3216         (WebCore::NetworkResourcesData::ResourceData::setUrl):
3217         (WebCore::NetworkResourcesData::ResourceData::isXHR):
3218         (WebCore::NetworkResourcesData::ResourceData::setIsXHR):
3219         (WebCore::NetworkResourcesData::ResourceData::hasContent):
3220         (WebCore::NetworkResourcesData::ResourceData::isContentPurged):
3221         (WebCore::NetworkResourcesData::ResourceData::setIsContentPurged):
3222         * inspector/front-end/NetworkManager.js:
3223         (WebInspector.NetworkManager.prototype.requestContent):
3224         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
3225         * inspector/front-end/NetworkPanel.js:
3226         (WebInspector.NetworkPanel.prototype._appendResource):
3227         (WebInspector.NetworkPanel.prototype._frameNavigated):
3228         * loader/DocumentThreadableLoader.cpp:
3229         (WebCore::DocumentThreadableLoader::didReceiveResponse):
3230         (WebCore::DocumentThreadableLoader::receivedCancellation):
3231         (WebCore::DocumentThreadableLoader::loadRequest):
3232         * loader/DocumentThreadableLoader.h:
3233         * loader/ThreadableLoaderClient.h:
3234         (WebCore::ThreadableLoaderClient::didReceiveResponse):
3235         (WebCore::ThreadableLoaderClient::didReceiveAuthenticationCancellation):
3236         * loader/ThreadableLoaderClientWrapper.h:
3237         (WebCore::ThreadableLoaderClientWrapper::didReceiveResponse):
3238         (WebCore::ThreadableLoaderClientWrapper::didReceiveAuthenticationCancellation):
3239         * loader/WorkerThreadableLoader.cpp:
3240         (WebCore::workerContextDidReceiveResponse):
3241         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveResponse):
3242         (WebCore::workerContextDidReceiveAuthenticationCancellation):
3243         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveAuthenticationCancellation):
3244         * loader/WorkerThreadableLoader.h:
3245         * notifications/Notification.cpp:
3246         (WebCore::Notification::didReceiveResponse):
3247         (WebCore::Notification::didReceiveAuthenticationCancellation):
3248         * notifications/Notification.h:
3249         * page/EventSource.cpp:
3250         (WebCore::EventSource::didReceiveResponse):
3251         * page/EventSource.h:
3252         * workers/WorkerScriptLoader.cpp:
3253         (WebCore::WorkerScriptLoader::didReceiveResponse):
3254         (WebCore::WorkerScriptLoader::didReceiveAuthenticationCancellation):
3255         * workers/WorkerScriptLoader.h:
3256         * xml/XMLHttpRequest.cpp:
3257         (WebCore::XMLHttpRequest::createRequest):
3258         (WebCore::XMLHttpRequest::didReceiveResponse):
3259         (WebCore::XMLHttpRequest::didReceiveAuthenticationCancellation):
3260         * xml/XMLHttpRequest.h:
3261
3262 2011-06-16  Hayato Ito  <hayato@chromium.org>
3263
3264         Reviewed by Hajime Morita.
3265
3266         Show child elements of a shadow host in Node::showTreeForThisAcrossFrame.
3267         https://bugs.webkit.org/show_bug.cgi?id=62782
3268
3269         To make an implementation simple, get rid of traverseNextNodeAcrossFrame
3270         and traverse each Node recursively.
3271
3272         No new tests since the function is only available in debug builds.
3273
3274         * dom/Node.cpp:
3275         (WebCore::showSubTreeAcrossFrame):
3276         (WebCore::Node::showTreeForThisAcrossFrame):
3277
3278 2011-06-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3279
3280         Reviewed by Kent Tamura.
3281
3282         [EFL] Move Initialization of defaultFontSize to top of file.
3283         https://bugs.webkit.org/show_bug.cgi?id=62787
3284
3285         * platform/efl/RenderThemeEfl.cpp: Move Initialize code of defaultFontSize to top.
3286
3287 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3288
3289         Unreviewed, rolling out r88796.
3290         http://trac.webkit.org/changeset/88796
3291         https://bugs.webkit.org/show_bug.cgi?id=62790
3292
3293         It made fast/dom/nodesFromRect-basic.html time out on Qt,
3294         64-bit, debug mode (Requested by Ossy on #webkit).
3295
3296         * bridge/qt/qt_runtime.cpp:
3297         (JSC::Bindings::convertValueToQVariant):
3298
3299 2011-06-16  Adam Barth  <abarth@webkit.org>
3300
3301         Reviewed by Eric Seidel.
3302
3303         Remove HTMLVideoElement::processingUserGesture
3304         https://bugs.webkit.org/show_bug.cgi?id=62784
3305
3306         HTMLMediaElement shouldn't have its own notion of the user gesture
3307         state.  It should just use the normal user gesture state.  Also,
3308         there's no point in having the bindings send the user gesture state in
3309         a boolean parameter.
3310
3311         * WebCore.exp.in:
3312         * html/HTMLMediaElement.cpp:
3313         (WebCore::HTMLMediaElement::removedFromDocument):
3314         (WebCore::HTMLMediaElement::load):
3315         (WebCore::HTMLMediaElement::play):
3316         (WebCore::HTMLMediaElement::pause):
3317         (WebCore::HTMLMediaElement::beginScrubbing):
3318         (WebCore::HTMLMediaElement::resume):
3319         * html/HTMLMediaElement.h:
3320         * html/HTMLMediaElement.idl:
3321         * html/HTMLVideoElement.cpp:
3322         (WebCore::HTMLVideoElement::webkitEnterFullscreen):
3323         * html/HTMLVideoElement.h:
3324         (WebCore::HTMLVideoElement::webkitEnterFullScreen):
3325         * html/HTMLVideoElement.idl:
3326         * html/MediaDocument.cpp:
3327         (WebCore::MediaDocument::defaultEventHandler):
3328         * html/shadow/MediaControlElements.cpp:
3329         (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
3330
3331 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3332
3333         Unreviewed, rolling out r89011.
3334         http://trac.webkit.org/changeset/89011
3335         https://bugs.webkit.org/show_bug.cgi?id=62789
3336
3337         Broke mac build (Requested by vitalyr_ on #webkit).
3338
3339         * platform/chromium/ScrollAnimatorChromiumMac.h:
3340         * platform/chromium/ScrollAnimatorChromiumMac.mm:
3341         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
3342         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
3343         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
3344         (WebCore::ScrollAnimatorChromiumMac::scroll):
3345         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
3346         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
3347         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
3348         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
3349         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
3350         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
3351         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
3352
3353 2011-06-16  Sailesh Agrawal  <sail@chromium.org>
3354
3355         Reviewed by James Robinson.
3356
3357         [Chromium] Update forked ScrollAnimatorChromiumMac.mm/h
3358         https://bugs.webkit.org/show_bug.cgi?id=62779
3359
3360         Updated ScrollAnimatorChromiumMac.mm/h with the latest code in WebCore/platform/mac/ScrollAnimatorMac.mm/h
3361
3362         * platform/chromium/ScrollAnimatorChromiumMac.h:
3363         (WebCore::ScrollAnimatorChromiumMac::setNeedsScrollerStyleUpdate):
3364         (WebCore::ScrollAnimatorChromiumMac::needsScrollerStyleUpdate):
3365         * platform/chromium/ScrollAnimatorChromiumMac.mm:
3366         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
3367         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
3368         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
3369         (WebCore::ScrollAnimatorChromiumMac::scroll):
3370         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPointForScrollAnimation):
3371         (WebCore::isScrollingLeftAndShouldNotRubberBand):
3372         (WebCore::isScrollingRightAndShouldNotRubberBand):
3373         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
3374         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
3375         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
3376         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
3377         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
3378         (WebCore::ScrollAnimatorChromiumMac::setIsActive):
3379         (WebCore::ScrollAnimatorChromiumMac::updateScrollerStyle):
3380         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
3381         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
3382         (wkScrollbarPainterControllerStyle):
3383
3384 2011-06-15  Mikhail Naganov  <mnaganov@chromium.org>
3385
3386         Reviewed by Pavel Feldman.
3387
3388         WebInspector [Chromium]: Make heap snapshots UI more responsive.
3389         https://bugs.webkit.org/show_bug.cgi?id=62360
3390
3391         Two changes have been made:
3392           - when we request elements, sort array only partially;
3393           - when populating children, do it in batches;
3394
3395         * WebCore.gypi:
3396         * WebCore.vcproj/WebCore.vcproj:
3397         * inspector/front-end/DetailedHeapshotGridNodes.js:
3398         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.callSerialize):
3399         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.childrenRetrieved):
3400         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren):
3401         * inspector/front-end/HeapSnapshot.js:
3402         (WebInspector.HeapSnapshotFilteredOrderedIterator):
3403         (WebInspector.HeapSnapshotFilteredOrderedIterator.prototype.serializeNextItems):
3404         (WebInspector.HeapSnapshotFilteredOrderedIterator.prototype.sortAndRewind):
3405         (WebInspector.HeapSnapshotEdgesProvider.prototype.sort):
3406         (WebInspector.HeapSnapshotNodesProvider.prototype.sort):
3407         * inspector/front-end/HeapSnapshotWorker.js:
3408         * inspector/front-end/PartialQuickSort.js: Added.
3409         * inspector/front-end/WebKit.qrc:
3410         * inspector/front-end/inspector.html:
3411
3412 2011-06-15  Adam Barth  <abarth@webkit.org>
3413
3414         Reviewed by Eric Seidel.
3415
3416         Remove Event::fromUserGesture
3417         https://bugs.webkit.org/show_bug.cgi?id=62778
3418
3419         This function is a remnant from the old user-gesture design.  The list
3420         of events here is redundant with our selection of call sites for
3421         setting the user gesture indicator.
3422
3423         As part of this patch, I've also cleaned up the implementation of
3424         UserGestureIndicator itself to always be definite about whether we're
3425         processing a user gesture.  We now start out in a definite state (no
3426         user gesture) and inductively state in a definite state.
3427
3428         * WebCore.exp.in:
3429         * bindings/js/ScriptController.cpp:
3430         (WebCore::ScriptController::processingUserGesture):
3431         * bindings/v8/ScriptController.cpp:
3432         (WebCore::ScriptController::processingUserGesture):
3433         * dom/Event.cpp:
3434         * dom/Event.h:
3435         * dom/UserGestureIndicator.cpp:
3436         (WebCore::isDefinite):
3437         (WebCore::UserGestureIndicator::UserGestureIndicator):
3438         (WebCore::UserGestureIndicator::~UserGestureIndicator):
3439         * dom/UserGestureIndicator.h:
3440         (WebCore::UserGestureIndicator::processingUserGesture):
3441         * html/MediaDocument.cpp:
3442         (WebCore::MediaDocument::defaultEventHandler):
3443         * html/shadow/MediaControlElements.cpp:
3444         (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
3445         * html/shadow/TextControlInnerElements.cpp:
3446         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
3447
3448 2011-06-08  Keishi Hattori  <keishi@webkit.org>
3449
3450         Reviewed by Kent Tamura.
3451
3452         Fix range element not updating when value attribute is set with JS
3453         https://bugs.webkit.org/show_bug.cgi?id=61857
3454
3455         Test: fast/forms/range-set-attribute.html
3456
3457         * html/RangeInputType.cpp:
3458       &