Remove duplicate files from WebCore.vcproj
[WebKit-https.git] / WebCore / ChangeLog
1 2010-11-30  Adam Roben  <aroben@apple.com>
2
3         Remove duplicate files from WebCore.vcproj
4
5         Rubber-stamped by Steve Falkenburg.
6
7         * WebCore.vcproj/WebCore.vcproj:
8
9 2010-11-30  Adam Roben  <aroben@apple.com>
10
11         Let VS do its thang with WebCore.vcproj
12
13         I just removed and readded AnimationBase.cpp.
14
15         Rubber-stamped by Steve Falkenburg.
16
17         * WebCore.vcproj/WebCore.vcproj:
18
19 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
20
21         Reviewed by Chris Fleizach.
22
23         ASSERT failing for combo boxes when selection changes
24         https://bugs.webkit.org/show_bug.cgi?id=50062
25
26         Don't call listBoxOnChange for elements using menu lists.
27
28         Test: fast/forms/select-option-accesskey-crash.html
29
30         * dom/SelectElement.cpp:
31         (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
32         to decide whether to call menuListOnChange() or listBoxOnChange()
33         instead of always calling listBoxOnChange().
34
35 2010-11-30  Andreas Kling  <kling@webkit.org>
36
37         Reviewed by Dirk Schulze.
38
39         GraphicsContext: Remove "current path" and have strokePath, fillPath and clipPath take a Path argument.
40         https://bugs.webkit.org/show_bug.cgi?id=48516
41
42         No new tests, this is refactoring only.
43
44         fillPath() -> fillPath(const Path&)
45         strokePath() -> strokePath(const Path&)
46         clipPath(WindRule) -> clipPath(const Path&, WindRule)
47
48         drawPath() was only used by CG, so made it PLATFORM(CG) specific.
49
50         The Qt, CG and Cairo implementations are best-effort.
51         For the rest, I've put beginPath/addPath and FIXMEs in the three affected methods.
52
53         * WebCore.exp.in:
54         * html/canvas/CanvasRenderingContext2D.cpp:
55         (WebCore::CanvasRenderingContext2D::fill):
56         (WebCore::CanvasRenderingContext2D::stroke):
57         * inspector/InspectorController.cpp:
58         (WebCore::drawOutlinedQuad):
59         * mathml/RenderMathMLRoot.cpp:
60         (WebCore::RenderMathMLRoot::paint):
61         * mathml/RenderMathMLSquareRoot.cpp:
62         (WebCore::RenderMathMLSquareRoot::paint):
63         * platform/graphics/GraphicsContext.h:
64         * platform/graphics/GraphicsContextPrivate.h:
65         * platform/graphics/cairo/GraphicsContextCairo.cpp:
66         (WebCore::GraphicsContext::fillPath):
67         (WebCore::GraphicsContext::strokePath):
68         (WebCore::GraphicsContext::clipPath):
69         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
70         * platform/graphics/cg/GraphicsContextCG.cpp:
71         (WebCore::GraphicsContext::drawEllipse):
72         (WebCore::addConvexPolygonToPath):
73         (WebCore::GraphicsContext::drawConvexPolygon):
74         (WebCore::GraphicsContext::clipConvexPolygon):
75         (WebCore::GraphicsContext::drawPath):
76         (WebCore::GraphicsContext::fillPath):
77         (WebCore::GraphicsContext::strokePath):
78         (WebCore::GraphicsContext::fillRoundedRect):
79         (WebCore::GraphicsContext::clipPath):
80         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
81         (WebCore::GraphicsContext::strokePath):
82         (WebCore::GraphicsContext::fillPath):
83         * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
84         (WebCore::GraphicsContext::fillPath):
85         (WebCore::GraphicsContext::strokePath):
86         (WebCore::GraphicsContext::clipPath):
87         * platform/graphics/qt/GraphicsContextQt.cpp:
88         (WebCore::GraphicsContext::restorePlatformState):
89         (WebCore::GraphicsContext::fillPath):
90         (WebCore::GraphicsContext::strokePath):
91         (WebCore::GraphicsContext::clipPath):
92         (WebCore::GraphicsContext::strokeRect):
93         (WebCore::GraphicsContext::translate):
94         (WebCore::GraphicsContext::rotate):
95         (WebCore::GraphicsContext::scale):
96         (WebCore::GraphicsContext::concatCTM):
97         * platform/graphics/skia/GraphicsContextSkia.cpp:
98         (WebCore::GraphicsContext::clipPath):
99         (WebCore::GraphicsContext::fillPath):
100         (WebCore::GraphicsContext::strokePath):
101         * platform/graphics/wince/GraphicsContextWinCE.cpp:
102         (WebCore::GraphicsContext::fillPath):
103         (WebCore::GraphicsContext::strokePath):
104         (WebCore::GraphicsContext::clipPath):
105         * platform/graphics/wx/GraphicsContextWx.cpp:
106         (WebCore::GraphicsContext::clipPath):
107         (WebCore::GraphicsContext::fillPath):
108         (WebCore::GraphicsContext::strokePath):
109         * rendering/RenderBoxModelObject.cpp:
110         (WebCore::RenderBoxModelObject::paintBorder):
111         (WebCore::RenderBoxModelObject::paintBoxShadow):
112         * rendering/RenderEmbeddedObject.cpp:
113         (WebCore::RenderEmbeddedObject::paintReplaced):
114         * rendering/RenderObject.cpp:
115         (WebCore::RenderObject::drawBoxSideFromPath):
116         * rendering/RenderSVGResource.h:
117         (WebCore::RenderSVGResource::postApplyResource):
118         * rendering/RenderSVGResourceClipper.cpp:
119         (WebCore::RenderSVGResourceClipper::pathOnlyClipping):
120         * rendering/RenderSVGResourceFilter.cpp:
121         (WebCore::RenderSVGResourceFilter::postApplyResource):
122         * rendering/RenderSVGResourceFilter.h:
123         * rendering/RenderSVGResourceGradient.cpp:
124         (WebCore::RenderSVGResourceGradient::applyResource):
125         * rendering/RenderSVGResourceGradient.h:
126         * rendering/RenderSVGResourcePattern.cpp:
127         (WebCore::RenderSVGResourcePattern::postApplyResource):
128         * rendering/RenderSVGResourcePattern.h:
129         * rendering/RenderSVGResourceSolidColor.cpp:
130         (WebCore::RenderSVGResourceSolidColor::postApplyResource):
131         * rendering/RenderSVGResourceSolidColor.h:
132         * rendering/SVGRenderSupport.cpp:
133         (WebCore::SVGRenderSupport::finishRenderSVGContent):
134         * rendering/svg/RenderSVGPath.cpp:
135         (WebCore::RenderSVGPath::fillAndStrokePath):
136         * rendering/svg/SVGInlineTextBox.cpp:
137         (WebCore::SVGInlineTextBox::releasePaintingResource):
138         (WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting):
139         (WebCore::SVGInlineTextBox::paintDecorationWithStyle):
140         * rendering/svg/SVGInlineTextBox.h:
141         * svg/SVGFont.cpp:
142         (WebCore::Font::drawTextUsingSVGFont):
143
144 2010-11-30  Alexey Proskuryakov  <ap@apple.com>
145
146         Reviewed by Darin Adler and Geoff Garen.
147
148         https://bugs.webkit.org/show_bug.cgi?id=44152
149         <rdar://problem/8324423> CSSOM should match DOM in discarding wrapper-less parents.
150
151         We have existing behaviors where parent objects in detached subtrees are not preserved:
152         - if a root of a node tree doesn't have a wrapper, it's immediately destroyed, making
153         its children parentNode attribute null;
154         - relationship between a <style> or <link> node and its stylesheet is immediately broken
155         when the node is removed from document (in this case, regardless of wrapper existence).
156
157         Both match Firefox. For consistency, CSSOM should do the same. In fact, it already partially
158         does - CSSRule.parentRule gets zeroed out when the parent rule is destroyed.
159
160         Tests: fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
161                fast/dom/StyleSheet/detached-stylesheet-without-wrapper.html
162
163         * css/StyleSheet.cpp: (WebCore::StyleSheet::~StyleSheet): Clear out child rule parent.
164
165         * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::insertedIntoDocument): Keep
166         the new assertion from firing. This function was adding a rule to style sheet, without
167         telling the rule about it.
168
169 2010-11-30  Steve Falkenburg  <sfalken@apple.com>
170
171         Reviewed by Adam Roben.
172
173         All projects on Windows should use cmd files for build events
174         https://bugs.webkit.org/show_bug.cgi?id=50213
175
176         * WebCore.vcproj/QTMovieWinCommon.vsprops:
177         * WebCore.vcproj/QTMovieWinPostBuild.cmd: Added.
178         * WebCore.vcproj/QTMovieWinPreBuild.cmd: Added.
179         * WebCore.vcproj/WebCoreCommon.vsprops:
180         * WebCore.vcproj/WebCorePostBuild.cmd: Added.
181         * WebCore.vcproj/WebCorePreBuild.cmd: Added.
182
183 2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>
184
185         Unreviewed, rolling out r72914.
186         http://trac.webkit.org/changeset/72914
187         https://bugs.webkit.org/show_bug.cgi?id=50241
188
189         "pfeldman has a revision management patch both for CSS and JS"
190         (Requested by apavlov on #webkit).
191
192         * English.lproj/localizedStrings.js:
193         * inspector/InspectorStyleSheet.cpp:
194         (WebCore::InspectorStyleSheet::reparseStyleSheet):
195         * inspector/front-end/CSSStyleModel.js:
196         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
197         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
198         (WebInspector.CSSStyleSheet.prototype.getText):
199         (WebInspector.CSSStyleSheet.prototype.setText):
200         * inspector/front-end/ResourcesPanel.js:
201         (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
202         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
203
204 2010-11-25  Satish Sampath  <satish@chromium.org>
205
206         Reviewed by Kent Tamura.
207
208         Fix rendering of speech button when setting the attribute dynamically.
209         https://bugs.webkit.org/show_bug.cgi?id=50077
210
211         * html/HTMLInputElement.cpp:
212         (WebCore::HTMLInputElement::parseMappedAttribute):
213         * rendering/RenderTextControlSingleLine.cpp:
214         (WebCore::RenderTextControlSingleLine::speechAttributeChanged):
215         * rendering/RenderTextControlSingleLine.h:
216
217 2010-11-30  Alexander Pavlov  <apavlov@chromium.org>
218
219         Reviewed by Yury Semikhatsky.
220
221         Web Inspector: Enable switching between revisions of stylesheets
222         https://bugs.webkit.org/show_bug.cgi?id=50227
223
224         Drive-by fix: styleSheetChanged() call needed after a stylesheet reparsing on setStyleSheetText2().
225
226         * English.lproj/localizedStrings.js:
227         * inspector/InspectorStyleSheet.cpp:
228         (WebCore::InspectorStyleSheet::reparseStyleSheet):
229         * inspector/front-end/CSSStyleModel.js:
230         (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
231         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
232         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
233         (WebInspector.CSSStyleSheet.prototype.getText):
234         * inspector/front-end/ResourcesPanel.js:
235         (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
236         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
237         (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
238
239 2010-11-30  John Knottenbelt  <jknotten@chromium.org>
240
241         Reviewed by David Levin.
242
243         V8 binding for DOMTimeStamp should be Number, not Date
244         https://bugs.webkit.org/show_bug.cgi?id=49963
245
246         Test: fast/dom/domtimestamp-is-number.html
247
248         * bindings/scripts/CodeGeneratorV8.pm:
249
250 2010-11-30  Renata Hodovan  <reni@inf.u-szeged.hu>
251
252         Reviewed by Andreas Kling.
253
254         [Qt] Leak with GraphicsContext::takeOwnershipOfPlatformContext()
255         https://bugs.webkit.org/show_bug.cgi?id=49916
256
257         Change the order of calling QPainter::device() and QPainter::end(), so device() will return with a valid device.
258         No new test is needed.
259
260         * platform/graphics/qt/GraphicsContextQt.cpp:
261         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
262
263 2010-11-30  Patrick Gansterer  <paroga@webkit.org>
264
265         Reviewed by Andreas Kling.
266
267         Move generator logic into main CMakeLists.txt file
268         https://bugs.webkit.org/show_bug.cgi?id=49885
269
270         Also make the generator calls more portable.
271
272         * CMakeLists.txt:
273
274 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
275
276         Unreviewed, rolling out r72902.
277         http://trac.webkit.org/changeset/72902
278         https://bugs.webkit.org/show_bug.cgi?id=50062
279
280         This change is causing layout test failures on the Tests bots
281         for the mac platform.
282
283         * dom/SelectElement.cpp:
284         (WebCore::SelectElement::accessKeySetSelectedIndex):
285
286 2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>
287
288         Unreviewed, rolling out r72764.
289         http://trac.webkit.org/changeset/72764
290         https://bugs.webkit.org/show_bug.cgi?id=50215
291
292         This change is causing assertion failures on the debug bots.
293         (Requested by mrobinson on #webkit).
294
295         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
296         (webkit_accessible_get_name):
297         (webkit_accessible_detach):
298
299 2010-11-30  Pavel Feldman  <pfeldman@chromium.org>
300
301         Reviewed by Yury Semikhatsky.
302
303         Web Inspector: make copy(node) work in console.
304         https://bugs.webkit.org/show_bug.cgi?id=50180
305
306         * inspector/front-end/InjectedScript.js:
307         (injectedScriptConstructor.):
308
309 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
310
311         Reviewed by Darin Adler.
312
313         ASSERT failing for combo boxes when selection changes
314         https://bugs.webkit.org/show_bug.cgi?id=50062
315
316         Don't call listBoxOnChange for elements using menu lists.
317
318         Test: accessibility/select-menulist-crash.html
319
320         * dom/SelectElement.cpp:
321         (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
322         to decide whether to call menuListOnChange() or listBoxOnChange()
323         instead of always calling listBoxOnChange().
324
325 2010-11-30  Helder Correia  <helder@sencha.com>
326
327         Reviewed by Kenneth Rohde Christiansen.
328
329         [Qt] Path stroke shadow has incorrect behavior when using ctx.scale(x,y)
330         https://bugs.webkit.org/show_bug.cgi?id=50198
331
332         Handle the special case when scaling is used and translate the shadow
333         offset accordingly. The correct behavior is ensured in ContextShadow
334         already, the issue only happens when using a non-blur shadow.
335
336         Test: fast/canvas/canvas-scale-strokePath-shadow.html
337
338         * platform/graphics/qt/GraphicsContextQt.cpp:
339         (WebCore::GraphicsContext::strokePath):
340
341 2010-11-30  Helder Correia  <helder@sencha.com>
342
343         Reviewed by Kenneth Rohde Christiansen.
344
345         [Qt] Path filling should keep shadow offset after context scaling
346         https://bugs.webkit.org/show_bug.cgi?id=50194
347
348         Handle the special case when scaling is used and translate the shadow
349         offset accordingly. The correct behavior is ensured in ContextShadow
350         already, the issue only happens when using a non-blur shadow.
351
352         Test: fast/canvas/canvas-scale-fillPath-shadow.html
353
354         * platform/graphics/qt/GraphicsContextQt.cpp:
355         (WebCore::GraphicsContext::fillPath):
356
357 2010-11-30  Yury Semikhatsky  <yurys@chromium.org>
358
359         Reviewed by Pavel Feldman.
360
361         Web Inspector: make ScriptCallStack and ScriptArguments reference counted
362         https://bugs.webkit.org/show_bug.cgi?id=50156
363
364         No new tests. This refactoring is covered with existing inspector tests.
365
366         * bindings/js/JSConsoleCustom.cpp:
367         (WebCore::JSConsole::profile):
368         (WebCore::JSConsole::profileEnd):
369         * bindings/js/ScriptCallStackFactory.cpp:
370         (WebCore::createScriptCallStack):
371         (WebCore::createScriptArguments):
372         * bindings/js/ScriptCallStackFactory.h:
373         * bindings/scripts/CodeGeneratorJS.pm:
374         * bindings/scripts/CodeGeneratorV8.pm:
375         * bindings/scripts/test/JS/JSTestObj.cpp:
376         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
377         * bindings/scripts/test/V8/V8TestObj.cpp:
378         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
379         * bindings/v8/ScriptCallStackFactory.cpp:
380         (WebCore::createScriptCallStack):
381         (WebCore::createScriptArguments):
382         * bindings/v8/ScriptCallStackFactory.h:
383         * bindings/v8/V8ConsoleMessage.cpp:
384         (WebCore::V8ConsoleMessage::handler):
385         (WebCore::V8ConsoleMessage::dispatchNow):
386         * bindings/v8/V8ConsoleMessage.h:
387         * bindings/v8/custom/V8ConsoleCustom.cpp:
388         (WebCore::V8Console::traceCallback):
389         (WebCore::V8Console::assertCallback):
390         (WebCore::V8Console::profileCallback):
391         (WebCore::V8Console::profileEndCallback):
392         * inspector/ConsoleMessage.cpp:
393         (WebCore::ConsoleMessage::ConsoleMessage):
394         * inspector/ConsoleMessage.h:
395         * inspector/InspectorController.cpp:
396         (WebCore::InspectorController::addMessageToConsole):
397         (WebCore::InspectorController::startGroup):
398         * inspector/InspectorController.h:
399         * inspector/ScriptArguments.cpp:
400         (WebCore::ScriptArguments::create):
401         * inspector/ScriptArguments.h:
402         * inspector/ScriptCallFrame.h:
403         * inspector/ScriptCallStack.cpp:
404         (WebCore::ScriptCallStack::create):
405         (WebCore::ScriptCallStack::at):
406         (WebCore::ScriptCallStack::size):
407         * inspector/ScriptCallStack.h:
408         * page/Console.cpp:
409         (WebCore::Console::addMessage):
410         (WebCore::Console::debug):
411         (WebCore::Console::error):
412         (WebCore::Console::info):
413         (WebCore::Console::log):
414         (WebCore::Console::dir):
415         (WebCore::Console::dirxml):
416         (WebCore::Console::trace):
417         (WebCore::Console::assertCondition):
418         (WebCore::Console::count):
419         (WebCore::Console::markTimeline):
420         (WebCore::Console::profile):
421         (WebCore::Console::profileEnd):
422         (WebCore::Console::timeEnd):
423         (WebCore::Console::group):
424         (WebCore::Console::groupCollapsed):
425         (WebCore::Console::warn):
426         * page/Console.h:
427
428 2010-11-29  Dan Bernstein  <mitz@apple.com>
429
430         Build fix for non-ICU platforms after r72887.
431
432         * editing/TextIterator.cpp:
433         (WebCore::SearchBuffer::prependContext):
434
435 2010-11-29  Dan Bernstein  <mitz@apple.com>
436
437         Reviewed by Darin Adler.
438
439         WebCore part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
440         https://bugs.webkit.org/show_bug.cgi?id=50038
441
442         Test: editing/text-iterator/findString.html
443
444         * GNUmakefile.am: Added FindOptions.h.
445         * WebCore.exp.in: Export the new methods that take FindOptions.
446         * WebCore.gypi: Added FindOptions.h.
447         * WebCore.pro: Added FindOptions.h and TextBoundaries.{cpp,h}.
448         * WebCore.vcproj/WebCore.vcproj: Added FindOptions.h.
449         * WebCore.xcodeproj/project.pbxproj: Added FindOptions.h and TextBoundaries.cpp.
450         * editing/Editor.cpp:
451         (WebCore::Editor::firstVisibleRange): Changed to use FindOptions.
452         (WebCore::Editor::lastVisibleRange): Ditto.
453         (WebCore::Editor::nextVisibleRange): Ditto.
454         (WebCore::Editor::findString): Ditto.
455         (WebCore::Editor::countMatchesForText): Ditto.
456         * editing/Editor.h: Added a version of findString() that takes FindOptions. Changed
457         countMatchesForText() to take FindOptions. Made nextVisibleRange() private and changed it
458         and firstVisibleRange() and lastVisibleRange() to take FindOptions.
459         * editing/FindOptions.h: Added.
460         * editing/TextIterator.cpp:
461         Augmented SearchBuffer with an optional prefix, which is not searched, but provides context
462         for determining word boundaries.
463         (WebCore::isSeparator): Added. Identifies a class of characters used to determine where
464         “words” are embedded in a word.
465         (WebCore::SearchBuffer::SearchBuffer): Changed to take FindOptions. Added initialization of
466         m_options, m_prefixLength and m_needsMoreContext.
467         (WebCore::SearchBuffer::append): Adjust m_prefixLength as part of the prefix gets pushed out
468         of the buffer.
469         (WebCore::SearchBuffer::needsMoreContext): Added.
470         (WebCore::SearchBuffer::prependContext): Added.
471         (WebCore::SearchBuffer::isWordStartMatch): Added.
472         (WebCore::SearchBuffer::search): Changed to account for the context prefix. When searching
473         only for word prefix matches, maintains enough context before a tentative match when moving
474         it to the beginning of the buffer. Reject matches that are not at word starts if requested.
475         Adjust m_prefixLength when pushing characters out of the buffer.
476         (WebCore::findPlainText): Changed to work with FindOptions. Feed the search buffer with context
477         if and as long as it requires more of it.
478         * editing/TextIterator.h: Added a version of findPlainText() that takes FindOptions.
479         * editing/visible_units.cpp: Moved {end,start}Of{First,Last}WordBoundary to TextBoundaries.cpp.
480         * page/Page.cpp:
481         (WebCore::Page::findString): Changed to work with FindOptions.
482         (WebCore::Page::markAllMatchesForText): Ditto.
483         * page/Page.h: Added FindOptions-based findString() and markAllMatchesForText().
484         * platform/text/TextBoundaries.cpp:
485         (WebCore::endOfFirstWordBoundaryContext): Moved here from visible_units.cpp.
486         (WebCore::startOfLastWordBoundaryContext): Ditto.
487         * platform/text/TextBoundaries.h:
488
489 2010-11-29  Dai Mikurube  <dmikurube@google.com>
490
491         Reviewed by Kent Tamura.
492
493         when empty, clicking "down" on outer-spin-button returns "max value"
494         https://bugs.webkit.org/show_bug.cgi?id=45491
495
496         Modified stepping-up/down from renderer
497         - to clamp steps,
498         - to handle empty values (described below), and
499         - to apply them for range type inputs.
500
501         Stepping-up/down for empty values are handled "the empty as 0."
502         For example :
503         * If 0 is in-range, and matches to step value
504           "down" -> -step
505           "up" -> +step
506           If -step or +step is out of range, new value should be 0.
507
508         * If 0 is smaller than the minimum value
509           "down" -> the minimum value
510           "up" -> the minimum value
511
512         * If 0 is larger than the maximum value
513           "down" -> the maximum value
514           "up" -> the maximum value
515
516         * If 0 is in-range, but not matched to step value
517           "down" -> smaler matched value nearest to 0.
518             e.g. <input type=number min=-100 step=3> -> -1
519           "up" -> larger matched value nearest to 0.
520             e.g. <input type=number min=-100 step=3> -> 2
521
522         As for date/datetime-local/month/time/week types, the empty is assumed as "current local date/time".
523         As for datetime type, the empty is assumed as "current date/time in UTC".
524
525         As for range input types, changed stepping from renderer to use stepUpFromRenderer().
526         It was calculated with stepUp() from RangeInputType::handleKeydownEvent().
527
528         Test: fast/forms/input-stepup-stepdown-from-renderer.html
529
530         * html/BaseDateAndTimeInputType.cpp:
531         (WebCore::BaseDateAndTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
532         * html/BaseDateAndTimeInputType.h:
533         * html/DateTimeInputType.cpp:
534         (WebCore::DateTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current UTC time
535         * html/DateTimeInputType.h:
536         * html/HTMLInputElement.cpp:
537         (WebCore::HTMLInputElement::stepUpFromRenderer): Modified it to clamp steps, support empty values and support range type inputs
538         * html/HTMLInputElement.h:
539         (WebCore::HTMLInputElement::isRangeControl):
540         * html/InputType.cpp:
541         (WebCore::InputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns 0
542         * html/InputType.h:
543         * html/MonthInputType.cpp:
544         (WebCore::MonthInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local month
545         * html/MonthInputType.h:
546         * html/RangeInputType.cpp:
547         (WebCore::RangeInputType::handleKeydownEvent): Added comments and modified it to use stepUpFromRenderer()
548         * html/TimeInputType.cpp:
549         (WebCore::TimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
550         * html/TimeInputType.h:
551         * manual-tests/input-type-datetime-default-value.html: Added manual tests for default values of date/time inputs since they are "the current local/UTC time", which cannot be tested automatically.
552
553 2010-11-29  Adam Barth  <abarth@webkit.org>
554
555         Reviewed by Darin Adler.
556
557         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
558         https://bugs.webkit.org/show_bug.cgi?id=50182
559
560         A display-isolated URL can only be displayed (e.g., put in an iframe,
561         hyperlinked to) by documents from that scheme.  In a sense, this is a
562         generalization of some of the protections we give file URLs, but
563         instead of lumping them all together into one "local" bucket, this
564         patch creates a separate bucket for each scheme.
565
566         For a while, I tried using a separate bucket for each origin.  That
567         would have played nicely with what Blob URLs are trying to do, but some
568         "chrome" URL pages rely on being able to display other chrome URL
569         pages, even in different origins.  For example, the New Tab Page shows
570         thumbnails from the "thumbnail" host.
571
572         This patch also removes a bunch of unused code.  I've also propagated
573         the "deprecated" status of deprecatedCanDisplay to
574         deprecatedShouldTreatURLAsLocal because that method has no other
575         callers and is really asking for uppercase/lowercase bugs.  I dream of
576         someday removing these functions.
577
578         * page/SecurityOrigin.cpp:
579         (WebCore::SecurityOrigin::canDisplay):
580         (WebCore::SecurityOrigin::deprecatedCanDisplay):
581         * platform/SchemeRegistry.cpp:
582         (WebCore::displayIsolatedURLSchemes):
583         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
584         (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
585         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
586         (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
587         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
588         * platform/SchemeRegistry.h:
589
590 2010-11-29  Sergio Villar Senin  <svillar@igalia.com>
591
592         Reviewed by Martin Robinson.
593
594         [GTK] Leaks in SoupCache code
595         https://bugs.webkit.org/show_bug.cgi?id=50161
596
597         Fixes some memory leaks in SoupCache code.
598
599         * platform/network/soup/cache/soup-http-input-stream.c:
600         (send_async_finished): Added a missing g_object_unref.
601         * platform/network/soup/cache/webkit/soup-cache.c:
602         (get_cacheability): Added soup_header_free_param_list.
603         (webkit_soup_cache_entry_set_freshness): Ditto.
604         (webkit_soup_cache_send_response): Ditto.
605         (webkit_soup_cache_has_response): Ditto.
606
607 2010-11-29  Jian Li  <jianli@chromium.org>
608
609         Reviewed by David Levin.
610
611         Add send(ArrayBuffer) to XMLHttpRequest per XMLHttpRequest Level 2 spec
612         https://bugs.webkit.org/show_bug.cgi?id=50199
613
614         Test: http/tests/xmlhttprequest/send-array-buffer.html
615
616         * bindings/js/JSXMLHttpRequestCustom.cpp:
617         (WebCore::JSXMLHttpRequest::send):
618         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
619         (WebCore::V8XMLHttpRequest::sendCallback):
620         * xml/XMLHttpRequest.cpp:
621         (WebCore::XMLHttpRequest::send):
622         * xml/XMLHttpRequest.h:
623
624 2010-11-29  James Robinson  <jamesr@chromium.org>
625
626         [chromium] REGRESSION(72470): Crash in skia on some images
627         https://bugs.webkit.org/show_bug.cgi?id=50201
628
629         Reverts r72470
630
631         * platform/graphics/skia/ImageSkia.cpp:
632         (WebCore::computeResamplingMode):
633         (WebCore::drawResampledBitmap):
634
635 2010-11-29  Dmitry Titov  <dimich@chromium.org>
636
637         Reviewed by David Levin.
638
639         Crash when iframe transfers from one page to another and has child frames.
640         https://bugs.webkit.org/show_bug.cgi?id=50200
641
642         * page/Frame.cpp:
643         (WebCore::Frame::transferChildFrameToNewDocument):
644         avoid overriding 'didTransfer' which has the result of previous check.
645
646 2010-11-19  Ryosuke Niwa  <rniwa@webkit.org>
647
648         Reviewed by David Hyatt.
649
650         up arrow doesn't work with RTL text with word wrapping
651         https://bugs.webkit.org/show_bug.cgi?id=41987
652
653         The bug was caused by positionForPoint's not returning the correct affinity when the x coordiate
654         is to the left of the first line, and startOfLine's incorrectly moving position to the previous candidate.
655
656         Fixed the bug by returning upstream VisiblePosition in positionForPoint if the first inline text box's offset
657         is greater than 0.  Also removed the code added by http://trac.webkit.org/changeset/23608 since this changeset
658         does not add any test, and the problem described in the changelog reproduces regardless of the code's presence.
659
660         Tests: editing/selection/click-left-of-rtl-wrapping-text.html
661                editing/selection/modify-up-on-rtl-wrapping-text.html
662
663         * editing/visible_units.cpp:
664         (WebCore::startOfLine):
665         * rendering/RenderText.cpp:
666         (WebCore::RenderText::positionForPoint):
667
668 2010-11-29  Ilya Sherman  <isherman@chromium.org>
669
670         Reviewed by Kent Tamura.
671
672         Ensure that option elements are rendered with normal font weight on Windows/Linux
673         https://bugs.webkit.org/show_bug.cgi?id=50055
674
675         * WebCore.gyp/WebCore.gyp: include themeChromiumSkia.css
676         * css/themeChromiumSkia.css: Added.
677         (option): font-weight: normal !important;
678         * rendering/RenderThemeChromiumSkia.cpp:
679         (WebCore::RenderThemeChromiumSkia::extraDefaultStyleSheet): include themeChromiumSkia.css
680
681 2010-11-29  Brent Fulgham  <bfulgham@webkit.org>
682
683         Unreviewed build fix.
684
685         * WebCore.vcproj/WebCoreCairo.vsprops: Provide missing WIN_CAIRO
686           definition so that proper targets are build.
687         * platform/graphics/win/cairo/FontPlatformData.h:
688         (WebCore::FontPlatformData::orientation): Add missing implementation.
689
690 2010-11-29  Chris Rogers  <crogers@google.com>
691
692         Reviewed by Kenneth Russell.
693
694         Switch web audio code to use FloatPoint3D instead of Vector3
695         https://bugs.webkit.org/show_bug.cgi?id=50186
696
697         No new tests since audio API is not yet implemented.
698
699         * platform/audio/Cone.cpp:
700         (WebCore::ConeEffect::gain):
701         * platform/audio/Cone.h:
702         * platform/graphics/FloatPoint3D.h:
703         (WebCore::FloatPoint3D::isZero):
704         (WebCore::operator*):
705         (WebCore::FloatPoint3D::distanceTo):
706         * webaudio/AudioListener.h:
707         (WebCore::AudioListener::setPosition):
708         (WebCore::AudioListener::position):
709         (WebCore::AudioListener::setOrientation):
710         (WebCore::AudioListener::orientation):
711         (WebCore::AudioListener::setUpVector):
712         (WebCore::AudioListener::upVector):
713         (WebCore::AudioListener::setVelocity):
714         (WebCore::AudioListener::velocity):
715         * webaudio/AudioPannerNode.cpp:
716         (WebCore::AudioPannerNode::AudioPannerNode):
717         (WebCore::AudioPannerNode::getAzimuthElevation):
718         (WebCore::AudioPannerNode::dopplerRate):
719         (WebCore::AudioPannerNode::distanceConeGain):
720         * webaudio/AudioPannerNode.h:
721         (WebCore::AudioPannerNode::position):
722         (WebCore::AudioPannerNode::setPosition):
723         (WebCore::AudioPannerNode::orientation):
724         (WebCore::AudioPannerNode::setOrientation):
725         (WebCore::AudioPannerNode::velocity):
726         (WebCore::AudioPannerNode::setVelocity):
727
728 2010-11-29  Xiaomei Ji  <xji@chromium.org>
729
730         Reviewed by David Hyatt.
731
732         Right-to-left pages should be scrollable to reveal left overflow.
733         https://bugs.webkit.org/show_bug.cgi?id=23556
734
735         For RTL page, save left layout overflow and include it into the document
736         size during layout. Use the left layout overflow when scroll and paint
737         the page. Behavior on LTR page should be untouched since left layout 
738         overflow is set as 0 for LTR page.
739
740         Tests: fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll.html
741                fast/dom/horizontal-scrollbar-in-rtl.html
742                fast/dom/horizontal-scrollbar-when-dir-change.html
743                fast/dom/left-overflow-in-ltr.html
744                fast/dom/right-overflow-in-rtl.html
745
746         * page/FrameView.cpp:
747         (WebCore::FrameView::adjustViewSize): Save negative of left layout overflow as scroll X origin. And includes left layout overflow into document size.
748         * page/mac/WebCoreFrameView.h: Add methods for setting and getting scroll X origin.
749         * platform/ScrollView.cpp:
750         (WebCore::ScrollView::ScrollView):
751         (WebCore::ScrollView::maximumScrollPosition): Minus scroll X origin from maximum horizontal scroll position.
752         (WebCore::ScrollView::minimumScrollPosition):
753         (WebCore::ScrollView::adjustScrollPositionWithinRange):
754         (WebCore::ScrollView::valueChanged):
755         (WebCore::ScrollView::setScrollPosition):
756         (WebCore::ScrollView::updateScrollbars):
757         (WebCore::ScrollView::wheelEvent):
758         * platform/ScrollView.h:
759         * platform/mac/ScrollViewMac.mm:
760         (WebCore::ScrollView::platformSetContentsSize):
761         (WebCore::ScrollView::platformSetScrollPosition):
762         (WebCore::ScrollView::platformSetScrollOriginX):
763         * rendering/RenderBox.cpp:
764         (WebCore::RenderBox::styleDidChange):
765         (WebCore::RenderBox::paintRootBoxDecorations): Include left layout overflow into canvas size.
766         * rendering/RenderView.cpp:
767         (WebCore::RenderView::layout): Save left layout overflow.
768         (WebCore::RenderView::docLeft):
769         (WebCore::RenderView::docWidth): Include left layout overflow into doc width for RTL page.
770         * rendering/RenderView.h:
771
772 2010-11-29  Simon Fraser  <simon.fraser@apple.com>
773
774         Reviewed by Ojan Vafai.
775
776         bunch of pixel failures after http://trac.webkit.org/changeset/72839/
777         https://bugs.webkit.org/show_bug.cgi?id=50188
778         
779         We need to call updateLayerTransform() for reflections, and
780         table rows as well.
781
782         * rendering/RenderReplica.cpp:
783         (WebCore::RenderReplica::layout):
784         * rendering/RenderTableRow.cpp:
785         (WebCore::RenderTableRow::layout):
786         * rendering/RenderTableSection.cpp:
787         (WebCore::RenderTableSection::layoutRows):
788
789 2010-11-29  Xiaomei Ji  <xji@chromium.org>
790
791         Reviewed by David Hyatt.
792
793         Fix tab overflow problem when alignment is not left.
794         https://bugs.webkit.org/show_bug.cgi?id=25459
795
796         I checked WordPad in Windows, TextEdit in Mac, OpenOffice, and Google doc. 
797         In all of them, (when the writing mode is horizontal) when the alignment is not
798         left alignment, the length of tab is computed based on the tab's position
799         relative to the left start of line, not based on the tab's position relative 
800         to the left edge of the document.
801
802         WebKit should follow the same.
803
804         The m_xPos in each TextRun should be relative to the left start of the line, 
805         not left start of its containing block (in right alignment and center alignment,
806         left start of the line is not the same as left start of the containing block).
807         So, when the text is drawn, the width of tab is consistent with the width 
808         computed in RenderBlock::computeInlineDirectionPositionsForLine().
809
810         I did not test vertical writing mode, but I think the same rule should apply.
811
812         Test: fast/dom/tab-in-right-alignment.html
813
814         * platform/graphics/TextRun.h:
815         * rendering/InlineTextBox.cpp:
816         (WebCore::InlineTextBox::textPos):
817         * rendering/InlineTextBox.h:
818
819 2010-11-29  Mikhail Naganov  <mnaganov@chromium.org>
820
821         Reviewed by Pavel Feldman.
822
823         WebInspector: Request JSON-serialized heap snapshot from JS engine.
824         This simplifies heap snapshots interaction and API. Instead of
825         having objects representing snapshot entities, the whole snapshot
826         is transferred to WebInspector and parsed there.
827
828         https://bugs.webkit.org/show_bug.cgi?id=49974
829
830         * bindings/js/ScriptHeapSnapshot.h:
831         (WebCore::ScriptHeapSnapshot::OutputStream::~OutputStream):
832         (WebCore::ScriptHeapSnapshot::~ScriptHeapSnapshot):
833         (WebCore::ScriptHeapSnapshot::writeJSON):
834         (WebCore::ScriptHeapSnapshot::ScriptHeapSnapshot):
835         * bindings/v8/ScriptHeapSnapshot.cpp:
836         (WebCore::ScriptHeapSnapshot::writeJSON):
837         * bindings/v8/ScriptHeapSnapshot.h:
838         (WebCore::ScriptHeapSnapshot::OutputStream::~OutputStream):
839         * inspector/Inspector.idl:
840         * inspector/InspectorProfilerAgent.cpp:
841         (WebCore::InspectorProfilerAgent::getProfile):
842         * inspector/front-end/HeapSnapshotView.js:
843         (WebInspector.HeapSnapshotEdgesIterator):
844         (WebInspector.HeapSnapshotEdgesIterator.prototype.get done):
845         (WebInspector.HeapSnapshotEdgesIterator.prototype.get isElement):
846         (WebInspector.HeapSnapshotEdgesIterator.prototype.get isHidden):
847         (WebInspector.HeapSnapshotEdgesIterator.prototype.get name):
848         (WebInspector.HeapSnapshotEdgesIterator.prototype.next):
849         (WebInspector.HeapSnapshotEdgesIterator.prototype.get node):
850         (WebInspector.HeapSnapshotEdgesIterator.prototype.get nodeIndex):
851         (WebInspector.HeapSnapshotEdgesIterator.prototype._getNameOrIndex):
852         (WebInspector.HeapSnapshotEdgesIterator.prototype._getType):
853         (WebInspector.HeapSnapshotNodeWrapper):
854         (WebInspector.HeapSnapshotNodeWrapper.prototype.get edges):
855         (WebInspector.HeapSnapshotNodeWrapper.prototype.get edgesCount):
856         (WebInspector.HeapSnapshotNodeWrapper.prototype.get instancesCount):
857         (WebInspector.HeapSnapshotNodeWrapper.prototype.get isHidden):
858         (WebInspector.HeapSnapshotNodeWrapper.prototype.get name):
859         (WebInspector.HeapSnapshotNodeWrapper.prototype.get selfSize):
860         (WebInspector.HeapSnapshotNodeWrapper.prototype._getName):
861         (WebInspector.HeapSnapshotNodeWrapper.prototype._getEdges):
862         (WebInspector.HeapSnapshotNodeWrapper.prototype._getType):
863         (WebInspector.HeapSnapshot):
864         (WebInspector.HeapSnapshot.prototype._init):
865         (WebInspector.HeapSnapshot.prototype.get rootEdges):
866         (WebInspector.HeapSnapshotView.prototype.snapshotLoaded):
867         (WebInspector.HeapSnapshotView.prototype._loadProfile.processLoadedSnapshot):
868         (WebInspector.HeapSnapshotView.prototype._loadProfile):
869         (WebInspector.HeapSnapshotView.prototype._convertSnapshot):
870         (WebInspector.HeapSnapshotView.prototype._prepareProfile.mergeRetainers):
871         (WebInspector.HeapSnapshotView.prototype._prepareProfile):
872         (WebInspector.HeapSnapshotView.prototype._sortData):
873         * inspector/front-end/ProfilesPanel.js:
874         (WebInspector.ProfilesPanel):
875         (WebInspector.ProfilesPanel.prototype.addHeapSnapshotChunk):
876         (WebInspector.ProfilesPanel.prototype.finishHeapSnapshot):
877         * inspector/front-end/inspector.js:
878         (WebInspector.addHeapSnapshotChunk):
879         (WebInspector.finishHeapSnapshot):
880
881 2010-11-29  Simon Fraser  <simon.fraser@apple.com>
882
883         Reviewed by Dave Hyatt.
884
885         layer()->currentTransform() is stale when layout changes the box size
886         https://bugs.webkit.org/show_bug.cgi?id=50175
887         
888         RenderLayer::updateTransform() is fairly expensive, so we
889         have to avoid calling it from RenderBox::applyLayerTransformToRect()
890         every time. This requires that we update the layer's transform
891         during layout, instead of from updateLayerPositions() which is too late.
892         
893         So call updateLayerTransform() from the various layout methods
894         on renderers that can be transformed, and remove it from 
895         updateLayerPositions().
896
897         Test: fast/overflow/overflow-update-transform.html
898
899         * rendering/RenderBlock.cpp:
900         (WebCore::RenderBlock::layoutBlock):
901         (WebCore::RenderBlock::layoutOnlyPositionedObjects):
902         * rendering/RenderBox.cpp:
903         (WebCore::RenderBox::applyLayerTransformToRect):
904         (WebCore::RenderBox::updateLayerTransform):
905         * rendering/RenderBox.h:
906         * rendering/RenderEmbeddedObject.cpp:
907         (WebCore::RenderEmbeddedObject::layout):
908         * rendering/RenderFlexibleBox.cpp:
909         (WebCore::RenderFlexibleBox::layoutBlock):
910         * rendering/RenderIFrame.cpp:
911         (WebCore::RenderIFrame::layout):
912         * rendering/RenderLayer.cpp:
913         (WebCore::RenderLayer::updateLayerPositions):
914         * rendering/RenderReplaced.cpp:
915         (WebCore::RenderReplaced::layout):
916         * rendering/RenderTable.cpp:
917         (WebCore::RenderTable::layout):
918
919 2010-11-29  Chris Rogers  <crogers@google.com>
920
921         Reviewed by Kenneth Russell.
922
923         Add remaining custom JSC web audio bindings
924         https://bugs.webkit.org/show_bug.cgi?id=50172
925
926         No new tests since audio API is not yet implemented.
927
928         * bindings/js/JSAudioBufferSourceNodeCustom.cpp: Added.
929         (WebCore::JSAudioBufferSourceNode::setBuffer):
930         * bindings/js/JSConvolverNodeCustom.cpp: Added.
931         (WebCore::JSConvolverNode::setBuffer):
932         * bindings/js/JSJavaScriptAudioNodeCustom.cpp: Added.
933         (WebCore::JSJavaScriptAudioNode::markChildren):
934         * webaudio/AudioBufferSourceNode.idl:
935         * webaudio/ConvolverNode.idl:
936
937 2010-11-29  Yael Aharon  <yael.aharon@nokia.com>
938
939         Reviewed by Darin Adler.
940
941         HTMLFormElement.elements doesn't include fieldsets
942         https://bugs.webkit.org/show_bug.cgi?id=48193
943
944         Add fieldset and keygen to the list of form collection elements, by making them enumeratable.
945         This patch does not add object element to the list. A separate bug will do that.
946
947         Test: fast/forms/form-collection-elements.html
948
949         * html/HTMLFieldSetElement.h:
950         (WebCore::HTMLFieldSetElement::isEnumeratable):
951         * html/HTMLKeygenElement.h:
952         (WebCore::HTMLKeygenElement::isEnumeratable):
953
954 2010-11-29  Xan Lopez  <xlopez@igalia.com>
955
956         Reviewed by Martin Robinson.
957
958         Get distcheck going.
959
960         * GNUmakefile.am:
961
962 2010-11-29  Alexey Proskuryakov  <ap@apple.com>
963
964         Reviewed by Darin Adler.
965
966         https://bugs.webkit.org/show_bug.cgi?id=50181
967         CSS style declarations don't GC protect parents
968
969         Test: fast/dom/StyleSheet/gc-declaration-parent-rule.html
970
971         * bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::markChildren):
972         Protect the parent rule.
973
974 2010-11-29  Ilya Tikhonovsky  <loislo@chromium.org>
975
976         Reviewed by Pavel Feldman.
977
978         Web Inspector: UI fix. In Timeline, Paint events "Location" value is displayed
979         in a confusing manner. The format string should be changed from %d x %d
980         pattern to (%d, %d).
981
982         https://bugs.webkit.org/show_bug.cgi?id=50178
983
984         * English.lproj/localizedStrings.js:
985         * inspector/front-end/TimelinePanel.js:
986         (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
987
988 2010-11-29  Darin Adler  <darin@apple.com>
989
990         Reviewed by Andreas Kling.
991
992         Remove a couple unneeded overflow checks
993         https://bugs.webkit.org/show_bug.cgi?id=49816
994
995         * platform/text/TextCodecUTF16.cpp:
996         (WebCore::TextCodecUTF16::encode): Use an ASSERT instead of
997         an overflow check with CRASH.
998
999 2010-11-29  Tony Chang  <tony@chromium.org>
1000
1001         Unreviewed, disable warnings again on chromium linux
1002
1003         * WebCore.gyp/WebCore.gyp:
1004
1005 2010-11-29  Cosmin Truta  <ctruta@chromium.org>
1006
1007         Reviewed by Nikolas Zimmermann.
1008
1009         getBoundingClientRect: Do not truncate the coordinates to integers
1010         https://bugs.webkit.org/show_bug.cgi?id=48110
1011
1012         Remove the float-to-int coordinate conversions inside getBoundingClientRect,
1013         to comply with the CSSOM View Module API.
1014
1015         Tests: fast/dom/Element/getBoundingClientRect.html
1016                fast/dom/Range/getBoundingClientRect.html
1017                svg/zoom/page/zoom-getBoundingClientRect.xhtml
1018                svg/zoom/page/zoom-zoom-coords.xhtml
1019
1020         * dom/ClientRect.cpp:
1021         (WebCore::ClientRect::ClientRect): Added overload to allow a FloatRect argument.
1022         * dom/ClientRect.h:
1023         (WebCore::ClientRect::create): Ditto.
1024         * dom/Element.cpp:
1025         (Element::getBoundingClientRect): Removed conversion from FloatRect to IntRect.
1026         * dom/Range.cpp:
1027         (WebCore::Range::getBoundingClientRect): Ditto.
1028         * rendering/RenderObject.h:
1029         (adjustIntRectForAbsoluteZoom): Removed.
1030         (adjustFloatRectForAbsoluteZoom): Added.
1031         * rendering/style/RenderStyle.h:
1032         (adjustFloatForAbsoluteZoom): Added.
1033
1034 2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>
1035
1036         Reviewed by Darin Adler.
1037
1038         Converge means of querying a parent node into one way, which is Node::parentNode.
1039         https://bugs.webkit.org/show_bug.cgi?id=49686
1040
1041         A follow-up to r72259, which explicitly forbids further use of Node::parent by
1042         making it private.
1043
1044         No change in behavior, so no new tests.
1045
1046         * dom/Document.cpp:
1047         (WebCore::Document::styleForElementIgnoringPendingStylesheets): Changed to use parentNode.
1048         (WebCore::Document::hoveredNodeDetached): Ditto.
1049         (WebCore::Document::activeChainNodeDetached): Ditto.
1050         * dom/Node.h: Made Node::parent private.
1051         * page/SpatialNavigation.cpp:
1052         (WebCore::canBeScrolledIntoView): Changed to use parentNode.
1053         * xml/XSLTProcessorQt.cpp:
1054         (WebCore::XSLTProcessor::transformToString): Ditto.
1055
1056 2010-11-29  Tony Chang  <tony@chromium.org>
1057
1058         Reviewed by James Robinson.
1059
1060         [chromium] try to enable WebCore compiler warnings on linux
1061         https://bugs.webkit.org/show_bug.cgi?id=50168
1062
1063         * WebCore.gyp/WebCore.gyp:
1064         * platform/graphics/chromium/FontLinux.cpp:
1065         (WebCore::TextRunWalker::setPadding):
1066         (WebCore::TextRunWalker::setGlyphXPositions):
1067         (WebCore::glyphIndexForXPositionInScriptRun):
1068
1069 2010-11-29  Alexey Proskuryakov  <ap@apple.com>
1070
1071         Reviewed by Darin Adler.
1072
1073         https://bugs.webkit.org/show_bug.cgi?id=50165
1074         CSS style rules don't GC protect parents
1075
1076         Tests: fast/dom/StyleSheet/gc-parent-rule.html
1077                fast/dom/StyleSheet/gc-parent-stylesheet.html
1078
1079         * bindings/js/JSCSSRuleCustom.cpp: (WebCore::JSCSSRule::markChildren): Mark parents. The code
1080         is super naive compared to what we have for nodes - but CSSOM has shallow hierarchies, so
1081         it should be OK.
1082
1083         * css/CSSRule.idl: Added CustomMarkFunction.
1084
1085 2010-11-29  Gavin Peters  <gavinp@chromium.org>
1086
1087         Reviewed by Adam Barth.
1088
1089         Web page can prevent WebKit from loading subresources on other
1090         pages (cache poisoning)
1091         https://bugs.webkit.org/show_bug.cgi?id=35404
1092
1093         Tests: http/tests/misc/unloadable-script.html
1094                loader/reload-subresource-when-type-changes.html
1095
1096         * loader/cache/MemoryCache.cpp:
1097         (WebCore::MemoryCache::requestResource):
1098
1099 2010-11-29  Simon Fraser  <simon.fraser@apple.com>
1100
1101         Reviewed by Dan Bernstein.
1102
1103         Crash in WebCore::CSSStyleSelector::loadPendingImages
1104         https://bugs.webkit.org/show_bug.cgi?id=50149
1105         
1106         Null-check style->boxReflect() when loading pending style images.
1107
1108         Test: fast/reflections/pending-reflection-mask-crash.html
1109
1110         * css/CSSStyleSelector.cpp:
1111         (WebCore::CSSStyleSelector::loadPendingImages):
1112
1113 2010-11-29  Pavel Feldman  <pfeldman@chromium.org>
1114
1115         Reviewed by Yury Semikhatsky.
1116
1117         Web Inspector: crash upon inspecting user style sheet.
1118         https://bugs.webkit.org/show_bug.cgi?id=50109
1119
1120         * inspector/InspectorStyleSheet.cpp:
1121         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
1122
1123 2010-11-29  Patrick Gansterer  <paroga@webkit.org>
1124
1125         Reviewed by Adam Roben.
1126
1127         [WINCE] Implement WebCore::directoryName
1128         https://bugs.webkit.org/show_bug.cgi?id=50031
1129
1130         Also fix handling of paths without path separator.
1131
1132         * platform/wince/FileSystemWinCE.cpp:
1133         (WebCore::reverseFindPathSeparator):
1134         (WebCore::makeAllDirectories):
1135         (WebCore::pathGetFileName):
1136         (WebCore::directoryName):
1137
1138 2010-11-29  Patrick Gansterer  <paroga@webkit.org>
1139
1140         Reviewed by Adam Roben.
1141
1142         Simplify directoryName in FileSystemWin.cpp
1143         https://bugs.webkit.org/show_bug.cgi?id=50028
1144
1145         * platform/win/FileSystemWin.cpp:
1146         (WebCore::directoryName):
1147
1148 2010-11-24  Dimitri Glazkov  <dglazkov@chromium.org>
1149
1150         Reviewed by Darin Adler.
1151
1152         REGRESSION (r71934): Main search field at Apple tech specs does not accept typing
1153         https://bugs.webkit.org/show_bug.cgi?id=49868
1154
1155         The problem here was that the inner text element of search input was first laid out as
1156         disabled and thus with a 0-height. This would prevent a hit test to ever reach it, even
1157         if it's enabled.
1158
1159         Test: fast/forms/disabled-search-input.html
1160
1161         * rendering/RenderBlock.cpp:
1162         (WebCore::RenderBlock::hasLineIfEmpty): Removed a check for textarea that is no longer necessary.
1163         * rendering/TextControlInnerElements.cpp:
1164         (WebCore::RenderTextControlInnerBlock::hasLineIfEmpty): Added an override to ensure that
1165             an empty inner text element is always one-line high.
1166
1167 2010-11-29  W. James MacLean  <wjmaclean@chromium.org>
1168
1169        Reviewed by Dirk Schulze.
1170
1171        Large input numbers cause overflow during SVG parsing, leading to crash
1172        https://bugs.webkit.org/show_bug.cgi?id=49546
1173
1174        Values outside the range supported by float lead to Infinity() or NaN()
1175        during parsing, leading to subsequent crashes. Modified
1176        parser to verify number is in the supported range, and return false if not.
1177
1178        Tests: svg/custom/svg-parse-overflow-1.html
1179               svg/custom/svg-parse-overflow-2.html
1180               svg/custom/svg-parse-overflow-3.html
1181               svg/custom/svg-parse-overflow-4.html
1182               svg/custom/svg-parse-overflow-5.html
1183
1184        * svg/SVGParserUtilities.cpp:
1185        (WebCore::isValidRange):
1186        (WebCore::genericParseNumber):
1187
1188 2010-11-29  Yury Semikhatsky  <yurys@chromium.org>
1189
1190         Reviewed by Pavel Feldman.
1191
1192         Web Inspector: display name of an object constructor as the object's type
1193         https://bugs.webkit.org/show_bug.cgi?id=50063
1194
1195         Name of the function that has created given object is used as the object's
1196         type when it's displayed in the inspector front-end(in case of V8). Before
1197         this change, it was always a value of the object's constructor.name property
1198         which is confusing in some cases(see the test).
1199
1200         Removed check for jsEngine from the InjectedScript.js, all VM-specific code
1201         is now encapsulated on the bindings layer.
1202
1203         Test: inspector/console-object-constructor-name.html
1204
1205         * bindings/js/JSInjectedScriptHostCustom.cpp:
1206         (WebCore::InjectedScriptHost::createInjectedScript):
1207         (WebCore::JSInjectedScriptHost::constructorName):
1208         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
1209         (WebCore::InjectedScriptHost::createInjectedScript):
1210         (WebCore::V8InjectedScriptHost::constructorNameCallback):
1211         * inspector/InjectedScriptHost.idl:
1212         * inspector/front-end/InjectedScript.js:
1213         (injectedScriptConstructor.):
1214
1215 2010-11-29  Jeremy Moskovich  <jeremy@chromium.org>
1216
1217         Reviewed by Eric Seidel.
1218
1219         https://bugs.webkit.org/show_bug.cgi?id=24346
1220
1221         Remove temporary workaround to load Gears plugin.
1222
1223         * html/HTMLObjectElement.cpp:
1224         (WebCore::HTMLObjectElement::rendererIsNeeded):
1225
1226 2010-11-29  Yael Aharon  <yael.aharon@nokia.com>
1227
1228         Reviewed by Antonio Gomes.
1229
1230         Spatial Navigation: Store more information in FocusCandidate
1231         https://bugs.webkit.org/show_bug.cgi?id=50153
1232
1233         More information should be stored in FocusCandidate, to avoid
1234         recalculating it when running the spatial navigation algorithm.
1235
1236         No new tests, since this is code refactoring only.
1237
1238         * page/FocusController.cpp:
1239         (WebCore::updateFocusCandidateIfNeeded):
1240         (WebCore::FocusController::findFocusCandidateInContainer):
1241         (WebCore::FocusController::advanceFocusDirectionallyInContainer):
1242         * page/SpatialNavigation.cpp:
1243         (WebCore::FocusCandidate::FocusCandidate):
1244         (WebCore::canBeScrolledIntoView):
1245         * page/SpatialNavigation.h:
1246         (WebCore::FocusCandidate::FocusCandidate):
1247
1248 2010-11-29  Dimitri Glazkov  <dglazkov@chromium.org>
1249
1250         Reviewed by Darin Adler.
1251
1252         Use the right focusable check to avoid multiple focus/blur events being fired from inside of the shadow DOM.
1253         https://bugs.webkit.org/show_bug.cgi?id=49977
1254
1255         * editing/SelectionController.cpp:
1256         (WebCore::SelectionController::setFocusedNodeIfNeeded): Added a FIXME to remove redundant code.
1257         * page/EventHandler.cpp:
1258         (WebCore::EventHandler::dispatchMouseEvent): Changed to use isMouseFocusable, which is what shadow DOM elements
1259             override, and added a FIXME to convert to use shadow DOM-aware traversal instead of render tree traversal.
1260
1261         Test: fast/events/shadow-boundary-crossing-2.html
1262
1263 2010-11-29  Adam Roben  <aroben@apple.com>
1264
1265         Windows build fix after r72715
1266
1267         * WebCore.vcproj/WebCore.vcproj: Add a missing </File> tag to fix an
1268         XML syntax error.
1269
1270 2010-11-29  Bernhard Bauer  <bauerb@chromium.org>
1271
1272         Reviewed by Jeremy Orlow.
1273
1274         Remove databaseFileName from IDBFactoryBackendImpl
1275         https://bugs.webkit.org/show_bug.cgi?id=50150
1276
1277         No new tests, since functionality is unchanged.
1278
1279         * storage/IDBFactoryBackendImpl.cpp:
1280         (WebCore::openSQLiteDatabase):
1281         * storage/IDBFactoryBackendImpl.h:
1282
1283 2010-11-29  Philippe Normand  <pnormand@igalia.com>
1284
1285         Reviewed by Xan Lopez.
1286
1287         [GStreamer] take video sink ownership with gst_object API
1288         https://bugs.webkit.org/show_bug.cgi?id=49011
1289
1290         Use gst_object_ref_sink instead of g_object_ref_sink to avoid
1291         possible leaks.
1292
1293         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1294         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
1295
1296 2010-11-29  Jan Erik Hanssen  <jhanssen@sencha.com>
1297
1298         Reviewed by Kenneth Rohde Christiansen.
1299
1300         QtWebKit asserts when selecting elided text.
1301         https://bugs.webkit.org/show_bug.cgi?id=45391
1302
1303         Ensure that the length passed to fromRawDataWithoutRef() does
1304         not exceed the length of the string.
1305
1306         * platform/graphics/qt/FontQt.cpp:
1307         (WebCore::Font::selectionRectForSimpleText):
1308
1309 2010-11-26  Alexander Pavlov  <apavlov@chromium.org>
1310
1311         Reviewed by Pavel Feldman.
1312
1313         Web Inspector: Styles Gear Menu Choice to Display Colors "As Authored"
1314         https://bugs.webkit.org/show_bug.cgi?id=31614
1315
1316         * English.lproj/localizedStrings.js:
1317         * inspector/front-end/Color.js:
1318         (WebInspector.Color.prototype.toString):
1319         (WebInspector.Color.prototype._parse.this.rgba.set 0):
1320         (WebInspector.Color.prototype._parse.set WebInspector):
1321         (WebInspector.Color.prototype._parse):
1322         * inspector/front-end/StylesSidebarPane.js:
1323         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.nextFormat):
1324         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.processColor.changeColorDisplay):
1325
1326 2010-11-29  Helder Correia  <helder@sencha.com>
1327
1328         Reviewed by Kenneth Rohde Christiansen.
1329
1330         [Qt] fillRect shadow has incorrect behavior when using ctx.scale(x,y)
1331         https://bugs.webkit.org/show_bug.cgi?id=50141
1332
1333         Don't apply scaling transformation to shadow offsets.
1334
1335         Test: fast/canvas/canvas-scale-fillRect-shadow.html
1336
1337         * platform/graphics/ContextShadow.h:
1338         * platform/graphics/qt/ContextShadowQt.cpp:
1339         (WebCore::ContextShadow::beginShadowLayer):
1340         (WebCore::ContextShadow::endShadowLayer):
1341         * platform/graphics/qt/GraphicsContextQt.cpp:
1342         (WebCore::GraphicsContext::fillRect):
1343
1344 2010-11-28  Dimitri Glazkov  <dglazkov@chromium.org>
1345
1346         Reviewed by Darin Adler.
1347
1348         Default event handlers should also be using event retargeting.
1349         https://bugs.webkit.org/show_bug.cgi?id=49986
1350
1351         Test: fast/events/shadow-boundary-crossing-2.html
1352
1353         * dom/EventContext.cpp:
1354         (WebCore::EventContext::defaultEventHandler): Added.
1355         * dom/EventContext.h: Added decl.
1356         * dom/Node.cpp:
1357         (WebCore::Node::dispatchGenericEvent): Changed to use event retargeting for
1358             default event handlers.
1359
1360 2010-11-23  MORITA Hajime  <morrita@google.com>
1361
1362         Reviewed by Kent Tamura.
1363
1364         REGRESSION: Text on <input type="search"> is not spellchecked.
1365         https://bugs.webkit.org/show_bug.cgi?id=49651
1366
1367         TextControlInnerElement::isSpellCheckingEnabled() didn't consider 
1368         non-root shadow elelements and always went false for <input type="search>.
1369         This change unifies shadow and host handling into Element::isSpellCheckingEnabled().
1370         
1371         Test: editing/spelling/spellcheck-attribute.html
1372         
1373         * dom/Element.cpp:
1374         (WebCore::Element::isSpellCheckingEnabled):
1375         * rendering/TextControlInnerElements.cpp:
1376         * rendering/TextControlInnerElements.h:
1377
1378 2010-11-28  Antonio Gomes  <agomes@rim.com>
1379
1380         Reviewed by Kenneth Rohde Christiansen.
1381
1382         Spatial Navigation: use isSpatialNaviagtionEnabled from SpatialNavigation.h in HTMLInputElement::defaultEventHandler
1383         https://bugs.webkit.org/show_bug.cgi?id=50131
1384
1385         For all isSpatialNavigationEnabled calls throughout WebCore, we decided to use the static method in
1386         SpatialNavigation.h instead of directly checking from the one in Settings.h. Reason: in a soon future,
1387         there  will be a isCaretBrowsing check incorporated into this method (and probably renaming it accordingly)
1388         to avoid feature conflicts (spatial navigation x caret browsing).
1389
1390         No new tests needed.
1391
1392         * html/HTMLInputElement.cpp:
1393         (WebCore::HTMLInputElement::defaultEventHandler):
1394
1395 2010-11-27  Benjamin Kalman  <kalman@chromium.org>
1396
1397         Reviewed by Darin Adler.
1398
1399         Move Position::EditingBoundaryCrossingRule to a new header file
1400         https://bugs.webkit.org/show_bug.cgi?id=49630
1401
1402         * GNUmakefile.am:
1403         * WebCore.exp.in:
1404         * WebCore.gypi:
1405         * WebCore.pro:
1406         * WebCore.vcproj/WebCore.vcproj:
1407         * WebCore.xcodeproj/project.pbxproj:
1408         * dom/Position.cpp:
1409         (WebCore::downstreamIgnoringEditingBoundaries):
1410         (WebCore::upstreamIgnoringEditingBoundaries):
1411         * dom/Position.h:
1412         * editing/DeleteSelectionCommand.cpp:
1413         (WebCore::DeleteSelectionCommand::doApply):
1414         * editing/EditingBoundary.h: Added.
1415         * editing/visible_units.cpp:
1416         (WebCore::startOfParagraph):
1417         (WebCore::endOfParagraph):
1418         (WebCore::isStartOfParagraph):
1419         (WebCore::isEndOfParagraph):
1420         * editing/visible_units.h:
1421         * rendering/RenderObject.cpp:
1422         (WebCore::RenderObject::createVisiblePosition):
1423
1424 2010-11-26  Rob Buis  <rwlbuis@gmail.com>
1425
1426         Reviewed by Simon Fraser.
1427
1428         Percentage z offset in transform-origin should make the property invalid
1429         https://bugs.webkit.org/show_bug.cgi?id=48704
1430
1431         Discard transform-origin property when parsing invalid Z value.
1432
1433         Test: fast/css/transform-origin-parsing.html
1434
1435         * css/CSSParser.cpp:
1436         (WebCore::CSSParser::parseTransformOriginShorthand):
1437         (WebCore::CSSParser::parseTransformOrigin):
1438         * css/CSSParser.h:
1439
1440 2010-11-26  Dan Bernstein  <mitz@apple.com>
1441
1442         Reviewed by Antti Koivisto.
1443
1444         <rdar://problem/8681368> Avoid unnecessary calls to CTFontGetPlatformFont()
1445         https://bugs.webkit.org/show_bug.cgi?id=50096
1446
1447         No new test, since functionality is unchanged.
1448
1449         * platform/graphics/chromium/CrossProcessFontLoading.mm:
1450         (WebCore::FontPlatformData::loadFont): Removed the ATSUFontID argument.
1451         * platform/graphics/cocoa/FontPlatformData.h:
1452         (WebCore::FontPlatformData::FontPlatformData): Ditto.
1453         (WebCore::FontPlatformData::operator==): Removed comparison of font IDs.
1454         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
1455         (WebCore::FontPlatformData::loadFont): Removed the ATSUFontID argument.
1456         (WebCore::FontPlatformData::FontPlatformData): Updated.
1457         (WebCore::FontPlatformData::operator=): Removed copying of font ID.
1458         (WebCore::FontPlatformData::setFont): Removed setting of font ID.
1459         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1460         (WebCore::initializeATSUStyle): Call CTFontGetPlatformFont() here if necessary.
1461         * platform/graphics/mac/FontCustomPlatformData.cpp:
1462         (WebCore::FontCustomPlatformData::fontPlatformData): Updated for FontPlatformData change.
1463         (WebCore::createFontCustomPlatformData): Updated for FontCustomPlatformData change.
1464         * platform/graphics/mac/FontCustomPlatformData.h:
1465         (WebCore::FontCustomPlatformData::FontCustomPlatformData): Removed ATSUFontID argument and
1466         data member.
1467         * platform/graphics/mac/SimpleFontDataATSUI.mm:
1468         (WebCore::SimpleFontData::checkShapesArabic): Call CTFontGetPlatformFont() here if necessary.
1469
1470 2010-11-26  François Sausset  <sausset@gmail.com>
1471
1472         Reviewed by Daniel Bates.
1473
1474         MathML: code cleaning needed in MathMLInlineContainerElement.cpp
1475         https://bugs.webkit.org/show_bug.cgi?id=50069
1476
1477         Unnecessary namespace was removed and style was adjusted.
1478
1479         * mathml/MathMLInlineContainerElement.cpp:
1480         (WebCore::MathMLInlineContainerElement::createRenderer):
1481
1482 2010-11-26  Andrei Popescu  <andreip@google.com>
1483
1484         Reviewed by Jeremy Orlow.
1485
1486         IDBDatabase and IDBObjectStore remove* methods should be renamed to delete*
1487         https://bugs.webkit.org/show_bug.cgi?id=50113
1488
1489         Modified exisiting layout tests to cover this change.
1490
1491         * storage/IDBDatabase.cpp:
1492         (WebCore::IDBDatabase::deleteObjectStore):
1493         * storage/IDBDatabase.h:
1494         * storage/IDBDatabase.idl:
1495         * storage/IDBDatabaseBackendImpl.cpp:
1496         (WebCore::IDBDatabaseBackendImpl::deleteObjectStore):
1497         (WebCore::IDBDatabaseBackendImpl::deleteObjectStoreInternal):
1498         * storage/IDBDatabaseBackendImpl.h:
1499         * storage/IDBDatabaseBackendInterface.h:
1500         * storage/IDBObjectStore.cpp:
1501         (WebCore::IDBObjectStore::deleteFunction):
1502         (WebCore::IDBObjectStore::deleteIndex):
1503         * storage/IDBObjectStore.h:
1504         * storage/IDBObjectStore.idl:
1505         * storage/IDBObjectStoreBackendImpl.cpp:
1506         (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
1507         (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
1508         (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
1509         (WebCore::IDBObjectStoreBackendImpl::deleteIndexInternal):
1510         * storage/IDBObjectStoreBackendImpl.h:
1511         * storage/IDBObjectStoreBackendInterface.h:
1512
1513 2010-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
1514
1515         Unreviewed, rolling out r72701.
1516         http://trac.webkit.org/changeset/72701
1517         https://bugs.webkit.org/show_bug.cgi?id=50114
1518
1519         REGRESSION: bad transform matrix on content layer (Requested
1520         by backer on #webkit).
1521
1522         * WebCore.gypi:
1523         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1524         (WebCore::Canvas2DLayerChromium::updateContents):
1525         * platform/graphics/chromium/Canvas2DLayerChromium.h:
1526         * platform/graphics/chromium/ContentLayerChromium.cpp:
1527         (WebCore::ContentLayerChromium::cleanupResources):
1528         (WebCore::ContentLayerChromium::updateContents):
1529         (WebCore::ContentLayerChromium::updateTextureRect):
1530         (WebCore::ContentLayerChromium::draw):
1531         * platform/graphics/chromium/ContentLayerChromium.h:
1532         * platform/graphics/chromium/ImageLayerChromium.cpp:
1533         (WebCore::ImageLayerChromium::updateContents):
1534         * platform/graphics/chromium/ImageLayerChromium.h:
1535         * platform/graphics/chromium/LayerChromium.h:
1536         (WebCore::LayerChromium::contentsDirty):
1537         (WebCore::LayerChromium::updateContents):
1538         (WebCore::LayerChromium::draw):
1539         * platform/graphics/chromium/LayerRendererChromium.cpp:
1540         (WebCore::LayerRendererChromium::LayerRendererChromium):
1541         (WebCore::LayerRendererChromium::prepareToDrawLayers):
1542         (WebCore::LayerRendererChromium::drawLayers):
1543         (WebCore::LayerRendererChromium::updateLayersRecursive):
1544         (WebCore::LayerRendererChromium::useRenderSurface):
1545         (WebCore::LayerRendererChromium::drawLayer):
1546         (WebCore::LayerRendererChromium::initializeSharedObjects):
1547         (WebCore::LayerRendererChromium::cleanupSharedObjects):
1548         * platform/graphics/chromium/LayerRendererChromium.h:
1549         * platform/graphics/chromium/LayerTexture.cpp: Removed.
1550         * platform/graphics/chromium/LayerTexture.h: Removed.
1551         * platform/graphics/chromium/PluginLayerChromium.cpp:
1552         (WebCore::PluginLayerChromium::updateContents):
1553         * platform/graphics/chromium/PluginLayerChromium.h:
1554         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1555         (WebCore::RenderSurfaceChromium::RenderSurfaceChromium):
1556         (WebCore::RenderSurfaceChromium::cleanupResources):
1557         (WebCore::RenderSurfaceChromium::prepareContentsTexture):
1558         * platform/graphics/chromium/RenderSurfaceChromium.h:
1559         * platform/graphics/chromium/TextureManager.cpp: Removed.
1560         * platform/graphics/chromium/TextureManager.h: Removed.
1561         * platform/graphics/chromium/VideoLayerChromium.cpp:
1562         (WebCore::VideoLayerChromium::updateContents):
1563         * platform/graphics/chromium/VideoLayerChromium.h:
1564         * platform/graphics/chromium/WebGLLayerChromium.cpp:
1565         (WebCore::WebGLLayerChromium::updateContents):
1566         * platform/graphics/chromium/WebGLLayerChromium.h:
1567
1568 2010-11-26  Jeremy Orlow  <jorlow@chromium.org>
1569
1570         Unreviewed build fix.
1571
1572         * storage/IDBIndex.cpp:
1573         (WebCore::IDBIndex::openCursor):
1574         (WebCore::IDBIndex::openKeyCursor):
1575         * storage/IDBObjectStore.cpp:
1576         (WebCore::IDBObjectStore::openCursor):
1577
1578 2010-11-26  Sergio Villar Senin  <svillar@igalia.com>
1579
1580         Reviewed by Xan Lopez.
1581
1582         [GTK] SoupCache should not ignore loader's conditional requests
1583         https://bugs.webkit.org/show_bug.cgi?id=50101
1584
1585         SoupCache must not handle WebKit loader conditional requests and
1586         thus should never return its own cached response if any. This was
1587         causing frequent resource load failures as WebCore was trying to
1588         revalidate its own resources and was not getting any expected
1589         result.
1590
1591         * platform/network/soup/cache/webkit/soup-cache.c:
1592         (webkit_soup_cache_has_response): check the presence of
1593         conditional request headers when deciding whether the cache has a
1594         valid response for a given request.
1595
1596 2010-11-26  Jeremy Orlow  <jorlow@chromium.org>
1597
1598         Reviewed by Steve Block.
1599
1600         Make IDBKeyRange match the spec
1601         https://bugs.webkit.org/show_bug.cgi?id=50105
1602
1603         Remove flags and instead add two booleans for being open.
1604         Change left to lower and right to upper everywhere.
1605
1606         * storage/IDBIndexBackendImpl.cpp:
1607         (WebCore::IDBIndexBackendImpl::openCursorInternal):
1608         * storage/IDBKey.cpp:
1609         (WebCore::IDBKey::lowerCursorWhereFragment):
1610         (WebCore::IDBKey::upperCursorWhereFragment):
1611         * storage/IDBKey.h:
1612         * storage/IDBKeyRange.cpp:
1613         (WebCore::IDBKeyRange::IDBKeyRange):
1614         (WebCore::IDBKeyRange::only):
1615         (WebCore::IDBKeyRange::lowerBound):
1616         (WebCore::IDBKeyRange::upperBound):
1617         (WebCore::IDBKeyRange::bound):
1618         (WebCore::IDBKeyRange::lowerWhereClauseComparisonOperator):
1619         (WebCore::IDBKeyRange::upperWhereClauseComparisonOperator):
1620         * storage/IDBKeyRange.h:
1621         (WebCore::IDBKeyRange::create):
1622         (WebCore::IDBKeyRange::lower):
1623         (WebCore::IDBKeyRange::upper):
1624         (WebCore::IDBKeyRange::lowerOpen):
1625         (WebCore::IDBKeyRange::upperOpen):
1626         * storage/IDBKeyRange.idl:
1627         * storage/IDBObjectStoreBackendImpl.cpp:
1628         (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
1629
1630 2010-11-25  Jeremy Orlow  <jorlow@chromium.org>
1631
1632         Reviewed by Steve Block.
1633
1634         Convert open*Cursor and createIndex over to using OptionsObject
1635         https://bugs.webkit.org/show_bug.cgi?id=50093
1636
1637         Add IDBKeyRange to OptionsObject's parsing abilities. Switch
1638         more APIs over to using it.
1639
1640         * bindings/v8/OptionsObject.cpp:
1641         (WebCore::OptionsObject::getKeyDOMStringList):
1642         (WebCore::OptionsObject::getKeyKeyRange):
1643         * bindings/v8/OptionsObject.h:
1644         * storage/IDBIndex.cpp:
1645         (WebCore::IDBIndex::openCursor):
1646         (WebCore::IDBIndex::openKeyCursor):
1647         * storage/IDBIndex.h:
1648         (WebCore::IDBIndex::openCursor):
1649         (WebCore::IDBIndex::openKeyCursor):
1650         * storage/IDBIndex.idl:
1651         * storage/IDBObjectStore.cpp:
1652         (WebCore::IDBObjectStore::createIndex):
1653         (WebCore::IDBObjectStore::openCursor):
1654         * storage/IDBObjectStore.h:
1655         (WebCore::IDBObjectStore::createIndex):
1656         (WebCore::IDBObjectStore::openCursor):
1657         * storage/IDBObjectStore.idl:
1658
1659 2010-11-25  Jeremy Orlow  <jorlow@chromium.org>
1660
1661         Reviewed by Steve Block.
1662
1663         Clean up IDBDatabase.transaction and add checks to IDBTransaction.objectStore
1664         https://bugs.webkit.org/show_bug.cgi?id=50081
1665
1666         IDBDatabase.transaction should use the new optional OptionsObject way
1667         of taking optional paramters. Modify that object to get numbers and
1668         domStringLists from it. Verify that any requested resources exist and
1669         return an exception if not.
1670
1671         When IDBTransaction.objectStore is called, verify that it's one of the
1672         requested resources. Also verify that it still exists. Plumb the
1673         exception code to make this work.
1674
1675         Tests: storage/indexeddb/create-and-remove-object-store.html
1676                storage/indexeddb/transaction-and-objectstore-calls.html
1677
1678         * bindings/v8/OptionsObject.cpp:
1679         (WebCore::OptionsObject::getKeyInteger):
1680         (WebCore::OptionsObject::getKeyString):
1681         (WebCore::OptionsObject::getKeyDOMStringList):
1682         * bindings/v8/OptionsObject.h:
1683         * storage/IDBDatabase.cpp:
1684         (WebCore::IDBDatabase::createObjectStore):
1685         (WebCore::IDBDatabase::transaction):
1686         * storage/IDBDatabase.h:
1687         (WebCore::IDBDatabase::transaction):
1688         * storage/IDBDatabase.idl:
1689         * storage/IDBDatabaseBackendImpl.cpp:
1690         (WebCore::IDBDatabaseBackendImpl::transaction):
1691         * storage/IDBTransaction.cpp:
1692         (WebCore::IDBTransaction::objectStore):
1693         * storage/IDBTransactionBackendImpl.cpp:
1694         (WebCore::IDBTransactionBackendImpl::IDBTransactionBackendImpl):
1695         (WebCore::IDBTransactionBackendImpl::objectStore):
1696         * storage/IDBTransactionBackendImpl.h:
1697         * storage/IDBTransactionBackendInterface.h:
1698
1699 2010-11-26  Mario Sanchez Prada  <msanchez@igalia.com>
1700
1701         Reviewed by Xan Lopez.
1702
1703         [GTK] events missing when a document is (re)loaded
1704         https://bugs.webkit.org/show_bug.cgi?id=25831
1705
1706         Make sure webArea returns a proper name and that a signal
1707         'state-change::defunct' is emitted when detaching the wrapper.
1708
1709         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1710         (webkit_accessible_get_name): Returns the current document's title
1711         as fallback mechanism for webArea objects.
1712         (webkit_accessible_detach): Emit 'state-change::defunct' function
1713         as soon as the wrapper is detached from the related core object.
1714
1715 2010-11-26  Sergio Villar Senin  <svillar@igalia.com>
1716
1717         Reviewed by Xan Lopez.
1718
1719         [Gtk] ASSERT(d->m_response.isNull()) in contentSniffedCallback
1720         https://bugs.webkit.org/show_bug.cgi?id=50083
1721
1722         ResourceHandleSoup should not listen to content-sniffed signal
1723         when content sniffing is not enabled. This will prevent us
1724         reaching an assertion on content-sniffed callback
1725
1726         * platform/network/soup/ResourceHandleSoup.cpp:
1727         (WebCore::startHttp):
1728         * platform/network/soup/cache/soup-request-http.c:
1729         (conditional_get_ready_cb): added a comment with the
1730         possible fix for a pure libsoup HTTP cache.
1731         (send_async_cb): prevent an early object finalization adding a
1732         reference.
1733         (webkit_soup_request_http_send_async): Ditto.
1734
1735 2010-11-26  Renata Hodovan  <reni@inf.u-szeged.hu>
1736
1737         Reviewed by Antonio Gomes.
1738
1739         [Qt] Remove empty ScrollView::platformInit/platformDestroy
1740         https://bugs.webkit.org/show_bug.cgi?id=50079
1741
1742         No new test is needed.
1743
1744         * platform/ScrollView.cpp:
1745         (WebCore::ScrollView::wheelEvent):
1746         * platform/qt/ScrollViewQt.cpp:
1747
1748 2010-11-26  Pavel Feldman  <pfeldman@chromium.org>
1749
1750         Not reviewed. Fixing inspector tests.
1751
1752         * inspector/front-end/Resource.js:
1753         (WebInspector.Resource.prototype.set timing):
1754
1755 2010-11-25  Pavel Feldman  <pfeldman@chromium.org>
1756
1757         Reviewed by Yury Semikhatsky.
1758
1759         Web Inspector: UI polish for Network and Resources panels.
1760         https://bugs.webkit.org/show_bug.cgi?id=50100
1761
1762         - Fixed timing inconsistencies
1763         - Made grid user-selectable
1764         - Selection in network panel is made on name column only
1765
1766         * inspector/front-end/NetworkPanel.js:
1767         (WebInspector.NetworkPanel):
1768         (WebInspector.NetworkPanel.prototype._toggleGridMode):
1769         (WebInspector.NetworkDataGridNode.prototype.createCells):
1770         (WebInspector.NetworkDataGridNode.prototype.select):
1771         (WebInspector.NetworkDataGridNode.prototype.get selectable):
1772         (WebInspector.NetworkDataGridNode.prototype._createTimelineCell):
1773         (WebInspector.NetworkDataGridNode.prototype.refreshGraph):
1774         (WebInspector.NetworkDataGridNode.prototype._refreshLabelPositions):
1775         * inspector/front-end/Popover.js:
1776         (WebInspector.PopoverHelper):
1777         (WebInspector.PopoverHelper.prototype.setTimeout):
1778         (WebInspector.PopoverHelper.prototype._mouseMove):
1779         (WebInspector.PopoverHelper.prototype._handleMouseAction):
1780         * inspector/front-end/Resource.js:
1781         (WebInspector.Resource.prototype.get responseReceivedTime):
1782         (WebInspector.Resource.prototype.set endTime):
1783         (WebInspector.Resource.prototype.set timing):
1784         * inspector/front-end/ResourceManager.js:
1785         (WebInspector.ResourceManager.prototype.didReceiveResponse):
1786         (WebInspector.ResourceManager.prototype.didFinishLoading):
1787         * inspector/front-end/ResourcesPanel.js:
1788         (WebInspector.FrameResourceTreeElement.prototype._ondragstart):
1789         * inspector/front-end/networkPanel.css:
1790         (.network-sidebar .data-grid td:not(.network-summary)):
1791         (.network-sidebar .data-grid td.name-column):
1792         (.network.panel:not(.viewing-resource) .network-sidebar td.name-column:hover):
1793         (.network-timing-row):
1794         (.network-timing-bar):
1795         (.network-timing-bar-title):
1796         (.resource-timing-view):
1797
1798 2010-11-26  Helder Correia  <helder@sencha.com>
1799
1800         Reviewed by Ariya Hidayat.
1801
1802         [Qt] Blur shadow for rectangle fill
1803         https://bugs.webkit.org/show_bug.cgi?id=44488
1804
1805         Shadow color opacity needs to be set when blurring shadow with
1806         ContextShadow.
1807
1808         Test: fast/canvas/canvas-fillRect-shadow.html
1809
1810         * platform/graphics/qt/GraphicsContextQt.cpp:
1811         (WebCore::GraphicsContext::fillRect):
1812
1813 2010-11-26  Hans Wennborg  <hans@chromium.org>
1814
1815         Reviewed by Jeremy Orlow.
1816
1817         IndexedDB: Rename IDBDatabase.objectStores to objectStoreNames
1818         https://bugs.webkit.org/show_bug.cgi?id=50102
1819
1820         Rename as per the spec: http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#database-interface
1821
1822         * manual-tests/indexeddb-persists.html:
1823         * storage/IDBDatabase.h:
1824         (WebCore::IDBDatabase::objectStoreNames):
1825         * storage/IDBDatabase.idl:
1826         * storage/IDBDatabaseBackendImpl.cpp:
1827         (WebCore::IDBDatabaseBackendImpl::objectStoreNames):
1828         (WebCore::IDBDatabaseBackendImpl::setVersion):
1829         (WebCore::IDBDatabaseBackendImpl::transaction):
1830         * storage/IDBDatabaseBackendImpl.h:
1831         * storage/IDBDatabaseBackendInterface.h:
1832
1833 2010-11-26  Andrei Popescu  <andreip@google.com>
1834
1835         Reviewed by Jeremy Orlow.
1836
1837         IDBFactory::open should not have a description argument.
1838         https://bugs.webkit.org/show_bug.cgi?id=50087
1839
1840         Modified exisiting tests to cover this change.
1841
1842         * storage/IDBDatabaseBackendImpl.cpp:
1843         (WebCore::setMetaData):
1844         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
1845         (WebCore::IDBDatabaseBackendImpl::setVersionInternal):
1846         * storage/IDBDatabaseBackendImpl.h:
1847         (WebCore::IDBDatabaseBackendImpl::create):
1848         * storage/IDBDatabaseBackendInterface.h:
1849         * storage/IDBFactory.cpp:
1850         (WebCore::IDBFactory::open):
1851         * storage/IDBFactory.h:
1852         * storage/IDBFactory.idl:
1853         * storage/IDBFactoryBackendImpl.cpp:
1854         (WebCore::IDBFactoryBackendImpl::open):
1855         * storage/IDBFactoryBackendImpl.h:
1856         * storage/IDBFactoryBackendInterface.h:
1857
1858 2010-11-25  Kenichi Ishibashi  <bashi@google.com>
1859
1860         Reviewed by Kent Tamura.
1861
1862         Assertion failure by resetting <output> twice
1863         https://bugs.webkit.org/show_bug.cgi?id=50095
1864
1865         Don't call setTextContentInternal() when the value wouldn't
1866         be changed.
1867
1868         Test: fast/forms/output-reset-assertion-failed.html
1869
1870         * html/HTMLOutputElement.cpp:
1871         (WebCore::HTMLOutputElement::HTMLOutputElement): Calls
1872         setTextContentInternal() if and only if needed.
1873         (WebCore::HTMLOutputElement::reset): Ditto.
1874         (WebCore::HTMLOutputElement::setValue): Ditto.
1875         (WebCore::HTMLOutputElement::setDefaultValue): Ditto.
1876
1877 2010-11-24  Ryosuke Niwa  <rniwa@webkit.org>
1878
1879         Crash when moving caret around a word with a first-letter rule and whitespace is not collapsible.
1880         https://bugs.webkit.org/show_bug.cgi?id=49652
1881
1882         Fixed the crash by giving the correct end offset to emitText in handleTextNode.
1883
1884         This patch does not fix a bug in TextIterator that incorrectly calculates
1885         the end offset of a word with a first-letter rule as demonstrated in the layout test
1886         because fixing the bug requires an overhaul of TextIterator and new behavior is consistent
1887         with the case when whitespace is collapsible.
1888
1889         Test: editing/text-iterator/first-letter-word-boundary.html
1890
1891         * editing/TextIterator.cpp:
1892         (WebCore::TextIterator::handleTextNode):
1893
1894 2010-11-25  Mike Lawther  <mikelawther@chromium.org>
1895
1896         Reviewed by Kent Tamura.
1897
1898         Fix typos in CSS grammar (HERZ -> HERTZ)
1899         https://bugs.webkit.org/show_bug.cgi?id=50094
1900
1901         * css/CSSGrammar.y:
1902         * css/CSSParser.cpp:
1903         (WebCore::CSSParser::lex):
1904         * css/tokenizer.flex:
1905
1906 2010-11-25  Antti Koivisto  <antti@apple.com>
1907
1908         Reviewed by Dan Bernstein.
1909
1910         https://bugs.webkit.org/show_bug.cgi?id=50078
1911         Simplify CachedResource error handling code by getting rid of the m_httpStatusCodeErrorOccurred boolean.
1912
1913         * loader/cache/CachedImage.cpp:
1914         (WebCore::CachedImage::CachedImage):
1915         * loader/cache/CachedImage.h:
1916         (WebCore::CachedImage::shouldIgnoreHTTPStatusCodeErrors):
1917         * loader/cache/CachedResource.h:
1918         (WebCore::CachedResource::shouldIgnoreHTTPStatusCodeErrors):
1919         (WebCore::CachedResource::httpStatusCodeErrorOccurred):
1920         * loader/loader.cpp:
1921         (WebCore::Loader::didReceiveData):
1922
1923 2010-11-25  Andreas Kling  <kling@webkit.org>
1924
1925         Reviewed by Tor Arne Vestbø.
1926
1927         [Qt] Remove unnecessary save/restore in GraphicsContext::drawConvexPolygon()
1928         https://bugs.webkit.org/show_bug.cgi?id=50085
1929
1930         * platform/graphics/qt/GraphicsContextQt.cpp:
1931         (WebCore::GraphicsContext::drawConvexPolygon):
1932         Remember the previous antialiasing mode and reset it after we're done.
1933
1934 2010-11-25  Ben Murdoch  <benm@google.com>
1935
1936         Reviewed by Steve Block.
1937
1938         Potential crash in JavaClassV8.cpp
1939         https://bugs.webkit.org/show_bug.cgi?id=50016
1940
1941         It is possible that we attempt to free uninitialised
1942         memory in the JavaClass destrctor when using V8 in the
1943         case that the JVM could not find the class in the constructor.
1944
1945         It turns out that the troublesome m_name is not acutally
1946         used anywhere, so we remove it in this patch.
1947
1948         No new tests, just removing dead code.
1949
1950         * bridge/jni/v8/JavaClassV8.cpp: Remove unused m_name.
1951         * bridge/jni/v8/JavaClassV8.h: Ditto.
1952
1953 2010-11-25  Hans Wennborg  <hans@chromium.org>
1954
1955         Reviewed by Jeremy Orlow.
1956
1957         IndexedDB: Better errors for not yet implemented features
1958         https://bugs.webkit.org/show_bug.cgi?id=50075
1959
1960         Raise an exception if createObjectStore is called with autoIncrement
1961         set to true.
1962
1963         Be a little bit more explicit in IDBBindingUtilities that we don't
1964         allow using Date objects as keys yet.
1965
1966         * bindings/v8/IDBBindingUtilities.cpp:
1967         (WebCore::createIDBKeyFromValue):
1968         * storage/IDBDatabase.cpp:
1969         (WebCore::IDBDatabase::createObjectStore):
1970         * storage/IDBObjectStoreBackendImpl.cpp:
1971         (WebCore::IDBObjectStoreBackendImpl::putInternal):
1972
1973 2010-11-25  Pavel Feldman  <pfeldman@chromium.org>
1974
1975         Reviewed by Yury Semikhatsky.
1976
1977         Web Inspector: highlight diffs of revisions against base version.
1978         https://bugs.webkit.org/show_bug.cgi?id=50088
1979
1980         * inspector/front-end/CSSStyleModel.js:
1981         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
1982         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
1983         * inspector/front-end/ResourcesPanel.js:
1984         (WebInspector.ResourcesPanel):
1985         (WebInspector.ResourcesPanel.prototype.show):
1986         (WebInspector.ResourcesPanel.prototype._showResourceView.callback):
1987         (WebInspector.ResourcesPanel.prototype._showResourceView):
1988         (WebInspector.ResourcesPanel.prototype._applyDiffMarkup):
1989         (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
1990         * inspector/front-end/SourceFrame.js:
1991         (WebInspector.SourceFrame.prototype.markDiff):
1992         (WebInspector.SourceFrame.prototype._createViewerIfNeeded):
1993         (WebInspector.SourceFrame.prototype._updateDiffDecorations.addDecorations):
1994         (WebInspector.SourceFrame.prototype._updateDiffDecorations):
1995         (WebInspector.SourceFrame.prototype._removeDiffDecorations):
1996         * inspector/front-end/SourceView.js:
1997         * inspector/front-end/textViewer.css:
1998         (.webkit-line-number):
1999         (.diff-container .webkit-added-line .webkit-line-content):
2000         (.diff-container .webkit-removed-line .webkit-line-content):
2001         (.diff-container .webkit-changed-line .webkit-line-content):
2002         * inspector/front-end/utilities.js:
2003
2004 2010-11-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2005
2006         Unreviewed, rolling out r72732.
2007         http://trac.webkit.org/changeset/72732
2008         https://bugs.webkit.org/show_bug.cgi?id=50089
2009
2010         Made Qt bot sad and crashy (Requested by Ossy on #webkit).
2011
2012         * platform/network/qt/QNetworkReplyHandler.cpp:
2013         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2014         * platform/network/qt/QNetworkReplyHandler.h:
2015         * platform/network/qt/ResourceHandleQt.cpp:
2016         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
2017         (WebCore::WebCoreSynchronousLoader::didFail):
2018         (WebCore::ResourceHandle::loadResourceSynchronously):
2019
2020 2010-11-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2021
2022         Unreviewed, rolling out r72734.
2023         http://trac.webkit.org/changeset/72734
2024         https://bugs.webkit.org/show_bug.cgi?id=50086
2025
2026         Backing out 72732 which made Qt sad and crashy (Requested by
2027         kling on #webkit).
2028
2029         * platform/network/qt/ResourceHandleQt.cpp:
2030         (WebCore::ResourceHandle::loadResourceSynchronously):
2031
2032 2010-11-25  Andreas Kling  <kling@webkit.org>
2033
2034         Unreviewed crash fix for Qt 4.6.x.
2035
2036         Check that QNetworkReplyHandler::reply() doesn't return null before
2037         using it (this code needs to work for Qt 4.6 as well.)
2038
2039         * platform/network/qt/ResourceHandleQt.cpp:
2040         (WebCore::ResourceHandle::loadResourceSynchronously):
2041
2042 2010-11-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2043
2044         Unreviewed, rolling out r72727.
2045         http://trac.webkit.org/changeset/72727
2046         https://bugs.webkit.org/show_bug.cgi?id=50084
2047
2048         Broke dom-breakpoints test on chromium win (Requested by
2049         podivilov on #webkit).
2050
2051         * inspector/InspectorController.cpp:
2052         (WebCore::InspectorController::setNativeBreakpoint):
2053         * inspector/InspectorDOMAgent.cpp:
2054         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
2055         (WebCore::InspectorDOMAgent::discardBindings):
2056         (WebCore::InspectorDOMAgent::setDOMBreakpoint):
2057         (WebCore::InspectorDOMAgent::removeDOMBreakpoint):
2058         (WebCore::InspectorDOMAgent::descriptionForDOMEvent):
2059         (WebCore::InspectorDOMAgent::removeBreakpointsForNode):
2060         (WebCore::InspectorDOMAgent::createBreakpointId):
2061         * inspector/InspectorDOMAgent.h:
2062         * inspector/front-end/BreakpointManager.js:
2063         (WebInspector.BreakpointManager.prototype.reset):
2064         (WebInspector.BreakpointManager.prototype.createDOMBreakpoint):
2065         (WebInspector.BreakpointManager.prototype._updateNativeBreakpointsInSettings):
2066         (WebInspector.BreakpointManager.prototype.restoreBreakpoints):
2067         (WebInspector.BreakpointManager.prototype.restoreDOMBreakpoints):
2068         (WebInspector.DOMBreakpoint):
2069         (WebInspector.DOMBreakpoint.prototype.populateLabelElement):
2070         (WebInspector.EventListenerBreakpoint):
2071         (WebInspector.XHRBreakpoint):
2072         * inspector/front-end/BreakpointsSidebarPane.js:
2073         (WebInspector.BreakpointsSidebarPane):
2074         (WebInspector.BreakpointsSidebarPane.prototype.reset):
2075         (WebInspector.EventListenerBreakpointsSidebarPane):
2076         (WebInspector.EventListenerBreakpointsSidebarPane.prototype.reset):
2077         * inspector/front-end/DOMAgent.js:
2078         (WebInspector.DOMAgent.prototype._setDocument):
2079         * inspector/front-end/ElementsPanel.js:
2080         (WebInspector.ElementsPanel.prototype.reset):
2081         * inspector/front-end/ElementsTreeOutline.js:
2082         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu.handlerFunction):
2083         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
2084         * inspector/front-end/ScriptsPanel.js:
2085         (WebInspector.ScriptsPanel.prototype.reset):
2086         * inspector/front-end/inspector.js:
2087         (WebInspector.reset):
2088         (WebInspector.didCommitLoad):
2089
2090 2010-11-25  Peter Hartmann  <peter.hartmann@nokia.com>
2091
2092         Reviewed by Andreas Kling.
2093
2094         [Qt] enable usage of synchronous HTTP feature in Qt
2095         https://bugs.webkit.org/show_bug.cgi?id=37191
2096
2097         Currently, we spin an event loop when doing synchronous calls to
2098         wait for completion. This patch uses synchronous requests in Qt,
2099         if available, and spins the event loop as a fallback solution.
2100         Patch by Simon Hausmann and Peter Hartmann.
2101
2102         * platform/network/qt/QNetworkReplyHandler.cpp:
2103         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2104         * platform/network/qt/QNetworkReplyHandler.h:
2105         * platform/network/qt/ResourceHandleQt.cpp:
2106         (WebCore::WebCoreSynchronousLoader::setReplyFinished):
2107         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
2108         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
2109         (WebCore::WebCoreSynchronousLoader::didFail):
2110         (WebCore::WebCoreSynchronousLoader::waitForCompletion):
2111         (WebCore::ResourceHandle::loadResourceSynchronously):
2112
2113 2010-11-25  Hans Wennborg  <hans@chromium.org>
2114
2115         Reviewed by Jeremy Orlow.
2116
2117         V8 Bindings: remove faulty include in OptionsObject.h
2118         https://bugs.webkit.org/show_bug.cgi?id=50073
2119
2120         There is no <wtf/NonCopyable.h>, and the code doesn't try to use it
2121         either.
2122
2123         No new functionality, no new tests.
2124
2125         * bindings/v8/OptionsObject.h:
2126
2127 2010-11-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2128
2129         Reviewed by Simon Hausmann.
2130
2131         Actually handle targetDensityDpi in computeViewportAttributes
2132         https://bugs.webkit.org/show_bug.cgi?id=50068
2133
2134         * dom/ViewportArguments.cpp:
2135         (WebCore::computeViewportAttributes):
2136
2137 2010-11-25  Jeremy Orlow  <jorlow@chromium.org>
2138
2139         Reviewed by Steve Block.
2140
2141         Add an OptionsObject class for IndexedDB (and later Geolocation)
2142         https://bugs.webkit.org/show_bug.cgi?id=50030
2143
2144         Geolocation and IndexedDB both have the concept of an optional
2145         parameter that has various options supplied with it.  In
2146         Geolocation this was done with custom bindings, but I'm trying to
2147         avoid that for IndexedDB.  
2148
2149         This first patch implements it in V8 and makes createObjectStore use it.
2150         The next patch will cover Geolocation and JSC.
2151
2152         Test: storage/indexeddb/create-object-store-options.html
2153
2154         * WebCore.gypi:
2155         * bindings/scripts/CodeGeneratorV8.pm:
2156         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
2157         (WebDOMTestObj::optionsObject):
2158         * bindings/scripts/test/CPP/WebDOMTestObj.h:
2159         * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
2160         * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
2161         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp:
2162         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
2163         (webkit_dom_test_obj_options_object):
2164         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
2165         * bindings/scripts/test/JS/JSTestObj.cpp:
2166         (WebCore::jsTestObjPrototypeFunctionOptionsObject):
2167         * bindings/scripts/test/JS/JSTestObj.h:
2168         * bindings/scripts/test/ObjC/DOMTestObj.h:
2169         * bindings/scripts/test/ObjC/DOMTestObj.mm:
2170         (-[DOMTestObj optionsObject:ooo:]):
2171         * bindings/scripts/test/TestObj.idl:
2172         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2173         (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
2174         * bindings/scripts/test/V8/V8TestObj.cpp:
2175         (WebCore::TestObjInternal::optionsObjectCallback):
2176         * bindings/v8/OptionsObject.cpp: Added.
2177         (WebCore::OptionsObject::OptionsObject):
2178         (WebCore::OptionsObject::~OptionsObject):
2179         (WebCore::OptionsObject::operator=):
2180         (WebCore::OptionsObject::undefinedOrNull):
2181         (WebCore::OptionsObject::getKeyBool):
2182         (WebCore::OptionsObject::getKeyString):
2183         (WebCore::OptionsObject::getKey):
2184         * bindings/v8/OptionsObject.h:
2185         * bindings/js/OptionsObject.h:
2186         * storage/IDBDatabase.cpp:
2187         (WebCore::IDBDatabase::createObjectStore):
2188         * storage/IDBDatabase.h:
2189         (WebCore::IDBDatabase::createObjectStore):
2190         * storage/IDBDatabase.idl:
2191
2192 2010-11-24  Pavel Podivilov  <podivilov@chromium.org>
2193
2194         Reviewed by Yury Semikhatsky.
2195
2196         Web Inspector: set DOM breakpoints by path.
2197         https://bugs.webkit.org/show_bug.cgi?id=50017
2198
2199         This change is needed to be able to push DOM breakpoints for all URL's to backend
2200         at frontend load.
2201
2202         * inspector/InspectorController.cpp:
2203         (WebCore::InspectorController::setNativeBreakpoint):
2204         * inspector/InspectorDOMAgent.cpp:
2205         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
2206         (WebCore::InspectorDOMAgent::discardBindings):
2207         (WebCore::InspectorDOMAgent::setDOMBreakpoint):
2208         (WebCore::InspectorDOMAgent::removeDOMBreakpoint):
2209         (WebCore::InspectorDOMAgent::descriptionForDOMEvent):
2210         (WebCore::InspectorDOMAgent::removeBreakpointsForNode):
2211         * inspector/InspectorDOMAgent.h:
2212         * inspector/front-end/BreakpointManager.js:
2213         (WebInspector.BreakpointManager.prototype.reset):
2214         (WebInspector.BreakpointManager.prototype.createDOMBreakpoint):
2215         (WebInspector.BreakpointManager.prototype._updateNativeBreakpointsInSettings):
2216         (WebInspector.BreakpointManager.prototype.restoreBreakpoints):
2217         (WebInspector.DOMBreakpoint):
2218         (WebInspector.DOMBreakpoint.prototype._setNodeId):
2219         (WebInspector.DOMBreakpoint.prototype.populateLabelElement):
2220         (WebInspector.EventListenerBreakpoint):
2221         (WebInspector.XHRBreakpoint):
2222         * inspector/front-end/BreakpointsSidebarPane.js:
2223         (WebInspector.BreakpointsSidebarPane):
2224         (WebInspector.BreakpointsSidebarPane.prototype._reset):
2225         (WebInspector.EventListenerBreakpointsSidebarPane):
2226         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._reset):
2227         * inspector/front-end/DOMAgent.js:
2228         (WebInspector.DOMAgent.prototype._setDocument):
2229         * inspector/front-end/ElementsPanel.js:
2230         (WebInspector.ElementsPanel.prototype.reset):
2231         * inspector/front-end/ElementsTreeOutline.js:
2232         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu.handlerFunction):
2233         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
2234         * inspector/front-end/ScriptsPanel.js:
2235         (WebInspector.ScriptsPanel.prototype.reset):
2236         * inspector/front-end/inspector.js:
2237         (WebInspector.reset):
2238         (WebInspector.didCommitLoad):
2239
2240 2010-11-25  Pavel Feldman  <pfeldman@chromium.org>
2241
2242         Reviewed by Yury Semikhatsky.
2243
2244         Web Inspector: reuse code for recreating resource views.
2245         https://bugs.webkit.org/show_bug.cgi?id=50066
2246
2247         * inspector/front-end/NetworkItemView.js:
2248         (WebInspector.NetworkItemView):
2249         * inspector/front-end/NetworkPanel.js:
2250         (WebInspector.NetworkPanel.prototype.refreshResource):
2251         * inspector/front-end/ResourceManager.js:
2252         (WebInspector.ResourceManager.resourceViewTypeMatchesResource):
2253         (WebInspector.ResourceManager.resourceViewForResource):
2254         (WebInspector.ResourceManager.recreateResourceView):
2255         * inspector/front-end/ResourcesPanel.js:
2256         (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
2257
2258 2010-11-25  Hans Wennborg  <hans@chromium.org>
2259
2260         Reviewed by Jeremy Orlow.
2261
2262         IndexedDB: Disallow inserting records with NULL keys
2263         https://bugs.webkit.org/show_bug.cgi?id=50033
2264
2265         Disallow inserting records with null keys into the object store.
2266
2267         * storage/IDBKey.h:
2268         * storage/IDBObjectStoreBackendImpl.cpp:
2269         (WebCore::IDBObjectStoreBackendImpl::putInternal):
2270
2271 2010-11-25  Philippe Normand  <pnormand@igalia.com>
2272
2273         Rubber-stamped by Xan Lopez.
2274
2275         g_signal_accumulator_first_wins was introduced in glib 2.27.1 so
2276         no need to use our version if that version of glib is used during
2277         the build.
2278
2279         * platform/gtk/GtkVersioning.c:
2280         * platform/gtk/GtkVersioning.h:
2281
2282 2010-11-24  Jian Li  <jianli@chromium.org>
2283
2284         Reviewed by Kenneth Russell.
2285
2286         Implement DataView interface from Typed Array specification
2287         https://bugs.webkit.org/show_bug.cgi?id=46541
2288
2289         Test: fast/canvas/webgl/data-view-test.html
2290
2291         * CMakeLists.txt:
2292         * DerivedSources.make:
2293         * GNUmakefile.am:
2294         * WebCore.gypi:
2295         * WebCore.pri:
2296         * WebCore.pro:
2297         * WebCore.xcodeproj/project.pbxproj:
2298         * bindings/generic/RuntimeEnabledFeatures.h:
2299         (WebCore::RuntimeEnabledFeatures::dataViewEnabled):
2300         * bindings/js/JSArrayBufferViewHelper.h:
2301         (WebCore::constructArrayBufferViewWithArrayBufferArgument):
2302         (WebCore::constructArrayBufferView):
2303         * bindings/js/JSDOMWindowCustom.cpp:
2304         (WebCore::JSDOMWindow::dataView):
2305         * bindings/js/JSDataViewCustom.cpp: Added.
2306         * bindings/js/JSFloat32ArrayCustom.cpp:
2307         (WebCore::JSFloat32ArrayConstructor::constructJSFloat32Array):
2308         * bindings/js/JSInt16ArrayCustom.cpp:
2309         (WebCore::JSInt16ArrayConstructor::constructJSInt16Array):
2310         * bindings/js/JSInt32ArrayCustom.cpp:
2311         (WebCore::JSInt32ArrayConstructor::constructJSInt32Array):
2312         * bindings/js/JSInt8ArrayCustom.cpp:
2313         (WebCore::JSInt8ArrayConstructor::constructJSInt8Array):
2314         * bindings/js/JSUint16ArrayCustom.cpp:
2315         (WebCore::JSUint16ArrayConstructor::constructJSUint16Array):
2316         * bindings/js/JSUint32ArrayCustom.cpp:
2317         (WebCore::JSUint32ArrayConstructor::constructJSUint32Array):
2318         * bindings/js/JSUint8ArrayCustom.cpp:
2319         (WebCore::JSUint8ArrayConstructor::constructJSUint8Array):
2320         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
2321         (WebCore::constructWebGLArrayWithArrayBufferArgument):
2322         (WebCore::constructWebGLArray):
2323         * bindings/v8/custom/V8DataViewCustom.cpp: Added.
2324         * html/canvas/ArrayBufferView.h:
2325         (WebCore::ArrayBufferView::isDataView):
2326         * html/canvas/DataView.cpp: Added.
2327         * html/canvas/DataView.h: Added.
2328         * html/canvas/DataView.idl: Added.
2329         * page/DOMWindow.idl:
2330
2331 2010-11-24  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>
2332
2333         Reviewed by Martin Robinson.
2334
2335         [GTK] Windowless plugins gets broken key input
2336         https://bugs.webkit.org/show_bug.cgi?id=49927
2337
2338         When converting the GdkEvent to XEvent we need to send the
2339         hardware_keycode as XEvent::keycode. Instead we where sending
2340         the GdkEvent::keyval. This is already tested by
2341         plugins/keyboard-events.html, but a bug in the test plugin was
2342         resulting in false positive.
2343
2344         * plugins/gtk/PluginViewGtk.cpp:
2345         (WebCore::PluginView::handleKeyboardEvent):
2346
2347 2010-11-24  Eric Uhrhane  <ericu@chromium.org>
2348
2349         Reviewed by David Levin.
2350
2351         Implement FileWriterSync
2352         https://bugs.webkit.org/show_bug.cgi?id=49939
2353
2354         Tests to follow in a separate CL, once the test framework in 47680 goes in.
2355
2356         Build file changes to add FileWriterBase and FileWriterBaseCallback.
2357         * CMakeLists.txt:
2358         * GNUmakefile.am:
2359         * WebCore.gypi:
2360         * WebCore.pro:
2361         * WebCore.vcproj/WebCore.vcproj:
2362         * WebCore.xcodeproj/project.pbxproj:
2363
2364         FileWriterSync doesn't turn out to need to be an ActiveDOMObject.
2365         * bindings/scripts/CodeGeneratorV8.pm:
2366
2367         Added new AsyncFileWriter::waitForOperationToComplete to enable
2368         synchronous calls.
2369         * fileapi/AsyncFileWriter.h:
2370
2371         Added a way to get a FileSystemSync.
2372         * fileapi/DOMFileSystemSync.cpp:
2373         * fileapi/FileEntrySync.cpp:
2374         * fileapi/FileEntrySync.h:
2375         * fileapi/FileEntrySync.idl:
2376
2377         Added an error code for OK, rather than just having 0 everywhere.
2378         * fileapi/FileError.h:
2379
2380         Turned FileWriterCallback into FileWriterBaseCallback.
2381         * fileapi/FileSystemCallbacks.cpp:
2382         * fileapi/FileSystemCallbacks.h:
2383
2384         Refactored out a common base class, FileWriterBase, for FileWriter and
2385         FileWriterSync.
2386         * fileapi/FileWriter.cpp:
2387         * fileapi/FileWriter.h:
2388         * fileapi/FileWriterBase.cpp: Added.
2389         * fileapi/FileWriterBase.h: Added.
2390         * fileapi/FileWriterBaseCallback.h: Added.
2391         * fileapi/FileWriterSync.cpp:
2392         * fileapi/FileWriterSync.h:
2393
2394         Small tweaks to deal with the base class refactoring.
2395         * fileapi/DOMFileSystem.cpp:
2396         * fileapi/DOMFileSystemSync.h:
2397
2398         Removed "CallWith=ScriptExecutionContext", as FileWriterSync doesn't actually need it.
2399         * fileapi/FileWriterSync.idl:
2400
2401 2010-11-24  Martin Robinson  <mrobinson@igalia.com>
2402
2403         Reviewed by Xan Lopez.
2404
2405         Build fix for GTK+. There were some typos in my last build fix
2406         and the empty command (semicolon) seems to be necessary for wildcard
2407         rule chains.
2408
2409         * GNUmakefile.am: Small build fixes.
2410
2411 2010-11-24  James Robinson  <jamesr@chromium.org>
2412
2413         Reviewed by Kenneth Russell.
2414
2415         [chromium] Compositor needs to manage its VRAM use
2416         https://bugs.webkit.org/show_bug.cgi?id=49629
2417
2418         This adds a basic texture manager to the Chromium compositor to limit the amount of VRAM
2419         used by compositor textures and switches ContentLayerChromium, ImageLayerChromium, and
2420         RenderSurfaceChromium to use managed LayerTexture.  The other *LayerChromium classes (Canvas,
2421         Video, and WebGL) and the root layer are still unmanaged.
2422
2423         The TextureManager works by providing tokens to callers that want to use a managed texture.
2424         The token can be used to request a texture, see if the previously requested texture is still
2425         available, and to protect/unprotect textures when they cannot be collected.  Whenever a
2426         texture is created the manager attempts to free up the least recently used textures until the
2427         total memory use is below the provided threshhold.  If the manager cannot satisfy the memory
2428         limit it will not return any new textures until some old textures are released.
2429
2430         A LayerTexture wraps a TextureManager token, size, and format.  A LayerChromium can check if a
2431         previously requested texture is still available for use and reserve the LayerTexture's underlying
2432         storage between the updateContentsIfDirty() and the draw() call.
2433
2434         Also changes LayerChromium from having separate contentsDirty()/updateContents() calls to a single
2435         updateContentsIfDirty().
2436
2437         Tests: compositing/lots-of-img-layers-with-opacity.html
2438                compositing/lots-of-img-layers.html
2439
2440         * WebCore.gypi:
2441         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
2442         (WebCore::Canvas2DLayerChromium::updateContentsIfDirty):
2443         * platform/graphics/chromium/Canvas2DLayerChromium.h:
2444         * platform/graphics/chromium/ContentLayerChromium.cpp:
2445         (WebCore::ContentLayerChromium::cleanupResources):
2446         (WebCore::ContentLayerChromium::updateContentsIfDirty):
2447         (WebCore::ContentLayerChromium::updateTextureRect):
2448         (WebCore::ContentLayerChromium::draw):
2449         * platform/graphics/chromium/ContentLayerChromium.h:
2450         * platform/graphics/chromium/ImageLayerChromium.cpp:
2451         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2452         * platform/graphics/chromium/ImageLayerChromium.h:
2453         * platform/graphics/chromium/LayerChromium.h:
2454         (WebCore::LayerChromium::updateContentsIfDirty):
2455         (WebCore::LayerChromium::draw):
2456         * platform/graphics/chromium/LayerRendererChromium.cpp:
2457         (WebCore::LayerRendererChromium::LayerRendererChromium):
2458         (WebCore::LayerRendererChromium::prepareToDrawLayers):
2459         (WebCore::LayerRendererChromium::drawLayers):
2460         (WebCore::LayerRendererChromium::updateLayersRecursive):
2461         (WebCore::LayerRendererChromium::useRenderSurface):
2462         (WebCore::LayerRendererChromium::drawLayer):
2463         (WebCore::LayerRendererChromium::initializeSharedObjects):
2464         (WebCore::LayerRendererChromium::cleanupSharedObjects):
2465         * platform/graphics/chromium/LayerRendererChromium.h:
2466         (WebCore::LayerRendererChromium::renderSurfaceSharedValues):
2467         (WebCore::LayerRendererChromium::textureManager):
2468         * platform/graphics/chromium/LayerTexture.cpp: Added.
2469         (WebCore::LayerTexture::LayerTexture):
2470         (WebCore::LayerTexture::~LayerTexture):
2471         (WebCore::LayerTexture::isValid):
2472         (WebCore::LayerTexture::reserve):
2473         (WebCore::LayerTexture::unreserve):
2474         (WebCore::LayerTexture::bindTexture):
2475         (WebCore::LayerTexture::framebufferTexture2D):
2476         * platform/graphics/chromium/LayerTexture.h: Added.
2477         (WebCore::LayerTexture::create):
2478         * platform/graphics/chromium/PluginLayerChromium.cpp:
2479         (WebCore::PluginLayerChromium::updateContentsIfDirty):
2480         * platform/graphics/chromium/PluginLayerChromium.h:
2481         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2482         (WebCore::RenderSurfaceChromium::SharedValues::SharedValues):
2483         (WebCore::RenderSurfaceChromium::SharedValues::~SharedValues):
2484         (WebCore::RenderSurfaceChromium::RenderSurfaceChromium):
2485         (WebCore::RenderSurfaceChromium::cleanupResources):
2486         (WebCore::RenderSurfaceChromium::prepareContentsTexture):
2487         (WebCore::RenderSurfaceChromium::draw):
2488         * platform/graphics/chromium/RenderSurfaceChromium.h:
2489         (WebCore::RenderSurfaceChromium::SharedValues::shaderProgram):
2490         (WebCore::RenderSurfaceChromium::SharedValues::shaderSamplerLocation):
2491         (WebCore::RenderSurfaceChromium::SharedValues::shaderMatrixLocation):
2492         (WebCore::RenderSurfaceChromium::SharedValues::shaderAlphaLocation):
2493         (WebCore::RenderSurfaceChromium::SharedValues::initialized):
2494         * platform/graphics/chromium/TextureManager.cpp: Added.
2495         (WebCore::memoryUseBytes):
2496         (WebCore::TextureManager::TextureManager):
2497         (WebCore::TextureManager::getToken):
2498         (WebCore::TextureManager::releaseToken):
2499         (WebCore::TextureManager::hasTexture):
2500         (WebCore::TextureManager::protectTexture):
2501         (WebCore::TextureManager::unprotectTexture):
2502         (WebCore::TextureManager::reduceMemoryToLimit):
2503         (WebCore::TextureManager::addTexture):
2504         (WebCore::TextureManager::removeTexture):
2505         (WebCore::TextureManager::requestTexture):
2506         * platform/graphics/chromium/TextureManager.h: Added.
2507         (WebCore::TextureManager::create):
2508         * platform/graphics/chromium/VideoLayerChromium.cpp:
2509         (WebCore::VideoLayerChromium::updateContentsIfDirty):
2510         * platform/graphics/chromium/VideoLayerChromium.h:
2511         * platform/graphics/chromium/WebGLLayerChromium.cpp:
2512         (WebCore::WebGLLayerChromium::updateContentsIfDirty):
2513         * platform/graphics/chromium/WebGLLayerChromium.h:
2514
2515 2010-11-24  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>
2516
2517         Reviewed by Martin Robinson.
2518
2519         [GTK] response.isNull() assert when using directory file URI
2520         https://bugs.webkit.org/show_bug.cgi?id=49018
2521
2522         Do ensure that didReceiveResponse happens before any call to
2523         didReceiveData. That was not true for file:// URIs pointing to
2524         directories and thus was triggering an assertion.
2525
2526         Test: platform/gtk/fast/loader/crash-display-local-directory.html
2527
2528         * platform/network/soup/ResourceHandleSoup.cpp:
2529         (WebCore::gotHeadersCallback):
2530         (WebCore::contentSniffedCallback):
2531         (WebCore::parseDataUrl):
2532         (WebCore::sendRequestCallback):
2533         (WebCore::readCallback):
2534
2535 2010-11-24  Xan Lopez  <xlopez@igalia.com>
2536
2537         Reviewed by Martin Robinson.
2538
2539         * bindings/gobject/WebKitDOMBinding.h: fix stlye nit.
2540
2541 2010-11-24  Xan Lopez  <xlopez@igalia.com>
2542
2543         Reviewed by Martin Robinson.
2544
2545         [GTK] Make kit() methods return the proper type instead of gpointer
2546         https://bugs.webkit.org/show_bug.cgi?id=50034
2547
2548         Change kit() methods to return proper type pointer.
2549
2550         * bindings/gobject/WebKitDOMBinding.cpp: change implementions of
2551         kit methods.
2552         * bindings/gobject/WebKitDOMBinding.h: change their declarations.
2553         * bindings/scripts/CodeGeneratorGObject.pm: change the generated
2554         kit() methods.
2555
2556 2010-11-24  Martin Robinson  <mrobinson@igalia.com>
2557
2558         Reviewed by Xan Lopez.
2559
2560         [GTK] DerivedSources/WebCore/DocTypeStrings.cpp is generated for every build
2561         https://bugs.webkit.org/show_bug.cgi?id=50032
2562
2563         Instead of listing two targets for rules that have two outputs, make
2564         a dependency chain. This fixes the issue where some files are generated
2565         unconditionally. Also remove all unnecessary semicolons from the file.
2566
2567         No new tests as this is just a build fix.
2568
2569         * GNUmakefile.am: Fix GNUmake dependency issue.
2570
2571 2010-11-24  Nico Weber  <nicolasweber@gmx.de>
2572
2573         Reviewed by Adam Barth.
2574
2575         Chromium/Mac: Make scaled images un-ugly when using the webkit image decoders
2576         https://bugs.webkit.org/show_bug.cgi?id=49965
2577
2578         Probably covered by existing tests whose expectations were overwritten
2579         in http://trac.webkit.org/changeset/70858
2580
2581         * platform/image-decoders/cg/ImageDecoderCG.cpp:
2582         (WebCore::RGBA32Buffer::asNewNativeImage):
2583
2584 2010-11-24  Alexander Pavlov  <apavlov@chromium.org>
2585
2586         Reviewed by Pavel Feldman.
2587
2588         Web Inspector: Crash when inspecting http://alphaarnhem.nl/beta/
2589         https://bugs.webkit.org/show_bug.cgi?id=50025
2590
2591         @font-face rules were improperly handled by source data extractor.
2592
2593         * css/CSSParser.cpp:
2594         (WebCore::CSSParser::CSSParser):
2595         (WebCore::CSSParser::parseDeclaration):
2596         (WebCore::CSSParser::createStyleRule):
2597         (WebCore::CSSParser::markRuleBodyStart):
2598         (WebCore::CSSParser::markPropertyStart):
2599         (WebCore::CSSParser::markPropertyEnd):
2600         * css/CSSParser.h:
2601
2602 2010-11-24  Cris Neckar  <cdn@chromium.org>
2603
2604         Reviewed by Adam Barth.
2605
2606         Added check when parsing local fonts to ensure that a value's unit type is either string or ident.
2607         https://bugs.webkit.org/show_bug.cgi?id=49883
2608
2609         Test: fast/css/local_font_invalid.html
2610
2611         * css/CSSParser.cpp:
2612         (WebCore::CSSParser::parseFontFaceSrc):
2613
2614 2010-11-24  Pavel Feldman  <pfeldman@chromium.org>
2615
2616         Reviewed by Yury Semikhatsky.
2617
2618         Web Inspector: place local modifications to under original
2619         resource nodes in the resource panel.
2620         https://bugs.webkit.org/show_bug.cgi?id=50029
2621
2622         * English.lproj/localizedStrings.js:
2623         * inspector/Inspector.idl:
2624         * inspector/InspectorController.cpp:
2625         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
2626         (WebCore::InspectorController::scriptImported):
2627         * inspector/InspectorResourceAgent.cpp:
2628         (WebCore::InspectorResourceAgent::setInitialContent):
2629         * inspector/InspectorResourceAgent.h:
2630         * inspector/front-end/CSSStyleModel.js:
2631         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
2632         (WebInspector.CSSStyleModel.prototype.addRule):
2633         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
2634         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
2635         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
2636         (WebInspector.CSSProperty.prototype.setText):
2637         (WebInspector.CSSProperty.prototype.setDisabled.callback):
2638         (WebInspector.CSSProperty.prototype.setDisabled):
2639         (WebInspector.CSSStyleSheet.prototype.setText):
2640         * inspector/front-end/NetworkPanel.js:
2641         (WebInspector.NetworkPanel.prototype.refreshResource):
2642         * inspector/front-end/Resource.js:
2643         (WebInspector.Resource.prototype.set content):
2644         (WebInspector.Resource.prototype.get contentTimestamp):
2645         (WebInspector.Resource.prototype.setInitialContent):
2646         * inspector/front-end/ResourceManager.js:
2647         (WebInspector.ResourceManager):
2648         (WebInspector.ResourceManager.prototype.setInitialContent):
2649         * inspector/front-end/ResourcesPanel.js:
2650         (WebInspector.ResourcesPanel):
2651         (WebInspector.ResourcesPanel.prototype.reset):
2652         (WebInspector.ResourcesPanel.prototype._innerShowView):
2653         (WebInspector.FrameResourceTreeElement):
2654         (WebInspector.FrameResourceTreeElement.prototype._errorsWarningsUpdated):
2655         (WebInspector.FrameResourceTreeElement.prototype._contentChanged.else.finished):
2656         (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
2657         (WebInspector.ResourceRevisionTreeElement):
2658         * inspector/front-end/SourceFrame.js:
2659         (WebInspector.SourceFrame.prototype.get scrollTop):
2660         (WebInspector.SourceFrame.prototype.set scrollTop):
2661         * inspector/front-end/SourceView.js:
2662         (WebInspector.SourceView.prototype.get scrollTop):
2663         (WebInspector.SourceView.prototype.set scrollTop):
2664         (WebInspector.SourceView.prototype._editLine):
2665         (WebInspector.SourceView.prototype._editLineComplete):
2666         * inspector/front-end/StylesSidebarPane.js:
2667         (WebInspector.StylePropertyTreeElement.prototype):
2668
2669 2010-11-24  Andrey Kosyakov  <caseq@chromium.org>
2670
2671         Reviewed by Pavel Feldman.
2672
2673         Web Inspector: extension API cleanup
2674         https://bugs.webkit.org/show_bug.cgi?id=50019
2675
2676         * inspector/front-end/ElementsPanel.js:
2677         (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged):
2678         (WebInspector.ElementsPanel):
2679         * inspector/front-end/ExtensionAPI.js: See bug for summary of extension API changes.
2680         (WebInspector.injectedExtensionAPI.Resources.resourceDispatch):
2681         (WebInspector.injectedExtensionAPI):
2682         (WebInspector.injectedExtensionAPI.Resources.prototype.getHAR):
2683         (WebInspector.injectedExtensionAPI.ResourceImpl.prototype.getContent):
2684         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
2685         (WebInspector.injectedExtensionAPI.PanelImpl):
2686         (WebInspector.injectedExtensionAPI.PanelWithSidebarImpl):
2687         (WebInspector.injectedExtensionAPI.PanelWithSidebarImpl.prototype.createSidebarPane):
2688         (WebInspector.injectedExtensionAPI.PanelWithSidebarImpl.prototype.createWatchExpressionSidebarPane):
2689         (WebInspector.injectedExtensionAPI.ElementsPanel):
2690         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setHeight):
2691         (WebInspector.injectedExtensionAPI.Audits.prototype.addCategory):
2692         (WebInspector.injectedExtensionAPI.AuditCategoryImpl.auditResultDispatch):
2693         (WebInspector.injectedExtensionAPI.AuditCategoryImpl):
2694         (WebInspector.injectedExtensionAPI.AuditResultImpl.prototype.get Severity):
2695         (WebInspector.injectedExtensionAPI.InspectedWindow):
2696         (WebInspector.injectedExtensionAPI.InspectedWindow.prototype.eval):
2697         * inspector/front-end/ExtensionCommon.js:
2698         (WebInspector.commonExtensionSymbols):
2699         * inspector/front-end/ExtensionServer.js:
2700         (WebInspector.ExtensionServer):
2701         (WebInspector.ExtensionServer.prototype.notifyObjectSelected):
2702         (WebInspector.ExtensionServer.prototype.notifyResourceFinished):
2703         (WebInspector.ExtensionServer.prototype.notifyPageLoaded):
2704         (WebInspector.ExtensionServer.prototype.notifyPageDOMContentLoaded):
2705         (WebInspector.ExtensionServer.prototype._onCreatePanel):
2706         (WebInspector.ExtensionServer.prototype._onReload):
2707         (WebInspector.ExtensionServer.prototype._onGetHAR):
2708         (WebInspector.ExtensionServer.prototype._onGetResourceContent):
2709         (WebInspector.ExtensionServer.prototype._onAddAuditCategory):
2710         (WebInspector.ExtensionServer.prototype._buildExtensionAPIInjectedScript):
2711         * inspector/front-end/HAREntry.js:
2712         (WebInspector.HARLog):
2713         (WebInspector.HARLog.prototype.build):
2714         (WebInspector.HARLog.prototype._convertResource):
2715         * inspector/front-end/inspector.js:
2716         (WebInspector.domContentEventFired):
2717         (WebInspector.loadEventFired):
2718         (WebInspector.didCommitLoad):
2719
2720 2010-11-23  Jeremy Orlow  <jorlow@chromium.org>
2721
2722         Reviewed by Steve Block.
2723
2724         Fix minor errors in IndexedDB
2725         https://bugs.webkit.org/show_bug.cgi?id=49970
2726
2727         * Remove SNAPSHOT_READ per spec.
2728         * Assert that the transaction that changes the db is a setVersion
2729           transaction.
2730         * When an objectStore already exists, throw a CONSTRAINT_ERR.
2731         * When not in a setVersion transaction, throw a NOT_ALLOWED_ERR.
2732
2733         Test: storage/indexeddb/createAndRemoveObjectStore.html
2734
2735         * storage/IDBDatabase.cpp:
2736         (WebCore::IDBDatabase::createObjectStore):
2737         * storage/IDBDatabaseBackendImpl.cpp:
2738         (WebCore::IDBDatabaseBackendImpl::createObjectStore):
2739         * storage/IDBTransaction.h:
2740         * storage/IDBTransaction.idl:
2741
2742 2010-11-24  Philippe Normand  <pnormand@igalia.com>
2743
2744         Reviewed by Xan Lopez.
2745
2746         [GStreamer] pause webkitvideosink during fullscreen video playback
2747         https://bugs.webkit.org/show_bug.cgi?id=48824
2748
2749         Added an identity element before the webkitvideosink so that when
2750         fullscreen video is active the element can drop the incoming
2751         buffers so that webkitvideosink appears paused.
2752
2753         * platform/graphics/gstreamer/GStreamerGWorld.cpp:
2754         (WebCore::GStreamerGWorld::enterFullscreen):
2755         (WebCore::GStreamerGWorld::exitFullscreen):
2756         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2757         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
2758
2759 2010-11-24  Avi Drissman  <avi@google.com>
2760
2761         Reviewed by Antonio Gomes.
2762
2763         Add preference to not select when right-clicked
2764         https://bugs.webkit.org/show_bug.cgi?id=23351
2765
2766         Test: editing/selection/context-menu-text-selection.html
2767
2768         * editing/EditingBehavior.h:
2769         (WebCore::EditingBehavior::shouldSelectOnContextualMenuClick):
2770         * page/EventHandler.cpp:
2771         (WebCore::EventHandler::sendContextMenuEvent):
2772
2773 2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
2774
2775         Reviewed by Csaba Osztrogonác.
2776
2777         Make build-webkit --minimal build with ENABLE_INSPECTOR=0.
2778         https://bugs.webkit.org/show_bug.cgi?id=49975
2779
2780         No new tests needed.
2781
2782         * features.pri: Make the Qt buildsystem aware
2783         that the inspector is enabled by default.
2784
2785 2010-11-24  Martin Robinson  <mrobinson@igalia.com>
2786
2787         Reviewed by Xan Lopez.
2788
2789         [GTK] The WebKitWebView should expose a set of signals encapsulating the behavior of the EditorClient
2790         https://bugs.webkit.org/show_bug.cgi?id=49143
2791
2792         * platform/gtk/GtkVersioning.c:
2793         (g_signal_accumulator_first_wins): Add g_signal_accumulator_first_wins for versions of
2794         GLib before 2.28.
2795         * platform/gtk/GtkVersioning.h:
2796
2797 2010-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
2798
2799         Unreviewed, rolling out r72499.
2800         http://trac.webkit.org/changeset/72499
2801         https://bugs.webkit.org/show_bug.cgi?id=50022
2802
2803         This change is causing crashes on the bots. (Requested by
2804         mrobinson on #webkit).
2805
2806         * accessibility/AccessibilityMenuListOption.cpp:
2807         (WebCore::AccessibilityMenuListOption::nameForMSAA):
2808         * accessibility/AccessibilityMenuListOption.h:
2809         * accessibility/gtk/AXObjectCacheAtk.cpp:
2810         (WebCore::AXObjectCache::postPlatformNotification):
2811         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2812         (setAtkStateSetFromCoreObject):
2813         (optionFromList):
2814         (optionFromSelection):
2815         (webkit_accessible_selection_add_selection):
2816         (webkit_accessible_selection_clear_selection):
2817         (webkit_accessible_selection_get_selection_count):
2818         (webkit_accessible_selection_is_child_selected):
2819         (webkit_accessible_selection_remove_selection):
2820         (webkit_accessible_text_get_text):
2821         (getInterfaceMaskFromObject):
2822         * platform/gtk/PopupMenuGtk.cpp:
2823         (WebCore::PopupMenuGtk::show):
2824
2825 2010-11-24  Patrick Gansterer  <paroga@webkit.org>
2826
2827         Reviewed by Csaba Osztrogonác.
2828
2829         Simplify makeprop.pl
2830         https://bugs.webkit.org/show_bug.cgi?id=49925
2831
2832         Don't generate CSSPropertyNamesHash.h.
2833         Instead generate CSSPropertyNames directly.
2834
2835         * GNUmakefile.am: Removed rule for CSSPropertyNamesHash.h.
2836         * css/makeprop.pl:
2837
2838 2010-11-24  Patrick Gansterer  <paroga@webkit.org>
2839
2840         Reviewed by Csaba Osztrogonác.
2841
2842         Remove Bakefile build system files
2843         https://bugs.webkit.org/show_bug.cgi?id=49983
2844
2845         r53757 only removed the content, but not the files.
2846         This patch removes that empty files.
2847
2848         * WebCoreSources.bkl: Removed.
2849         * webcore-base.bkl: Removed.
2850         * webcore-wx.bkl: Removed.
2851
2852 2010-11-24  Renata Hodovan  <reni@inf.u-szeged.hu>
2853
2854         Reviewed by Andreas Kling.
2855
2856         [Qt] GraphicsContext: Clean up Qt/WebCore type conversion functions
2857         https://bugs.webkit.org/show_bug.cgi?id=49919
2858
2859         Add ASSERT_NOT_REACHED() if the given WebCore type doesn't have an equivalent type in Qt.
2860         Also change the return value of toQtLineJoin() from Qt::MiterJoin to the default Qt::SvgMiterJoin,
2861         because the previous one doesn't work currently.
2862
2863         No new test is needed.
2864
2865         * platform/graphics/qt/GraphicsContextQt.cpp:
2866         (WebCore::GraphicsContext::toQtCompositionMode):
2867         (WebCore::toQtLineCap):
2868         (WebCore::toQtLineJoin):
2869         (WebCore::toQPenStyle):
2870         (WebCore::toQtFillRule):
2871
2872 2010-11-24  Patrick Gansterer  <paroga@webkit.org>
2873
2874         Reviewed by Csaba Osztrogonác.
2875
2876         Simplify makevalues.pl
2877         https://bugs.webkit.org/show_bug.cgi?id=49926
2878
2879         Don't generate CSSValueKeywordsHash.h.
2880         Instead generate CSSValueKeywords.cpp directly. 
2881
2882         * GNUmakefile.am: Removed rule for CSSValueKeywordsHash.h.
2883         * css/makevalues.pl:
2884
2885 2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
2886
2887         Reviewed by Kenneth Rohde Christiansen.
2888
2889         Make WebKit2 compile with !ENABLE(INSPECTOR).
2890         https://bugs.webkit.org/show_bug.cgi?id=49973
2891
2892         No new tests needed.
2893
2894         * bindings/js/ScriptHeapSnapshot.h:
2895         * bindings/js/ScriptProfile.cpp:
2896         * bindings/js/ScriptProfile.h:
2897         * inspector/InspectorDebuggerAgent.cpp:
2898         * inspector/InspectorDebuggerAgent.h:
2899         * inspector/InspectorProfilerAgent.cpp:
2900         * inspector/InspectorProfilerAgent.h:
2901         * inspector/ScriptBreakpoint.h:
2902
2903 2010-11-24  Patrick Gansterer  <paroga@webkit.org>
2904
2905         Reviewed by Csaba Osztrogonác.
2906
2907         Simplify make-hash-tools.pl
2908         https://bugs.webkit.org/show_bug.cgi?id=49922
2909
2910         HashTools.h does not need to be generated, because it only contains static code.
2911
2912         * html/DocTypeStrings.gperf: Include findDoctypeEntry function.
2913         * make-hash-tools.pl: Do not generate HashTools.h.
2914         * platform/ColorData.gperf: Include findColor function.
2915         * platform/HashTools.h: Added.
2916
2917 2010-11-24  Andreas Kling  <kling@webkit.org>
2918
2919         Reviewed by Simon Hausmann.
2920
2921         [Qt] Pass Qt::TextBypassShaping flag when calculating shadow layer rects
2922
2923         Without this, we could end up with a slightly too small shadow layer
2924         for some string/font combinations.
2925
2926         * platform/graphics/qt/FontQt.cpp:
2927         (WebCore::drawTextCommon):
2928
2929 2010-11-22  Pavel Feldman  <pfeldman@chromium.org>
2930
2931         Reviewed by Yury Semikhatsky.
2932
2933         Web Inspector: add timing tab to the network item view.
2934         https://bugs.webkit.org/show_bug.cgi?id=49920
2935
2936         * WebCore.gypi:
2937         * WebCore.vcproj/WebCore.vcproj:
2938         * inspector/front-end/NetworkItemView.js:
2939         (WebInspector.NetworkItemView):
2940         * inspector/front-end/NetworkPanel.js:
2941         (WebInspector.NetworkPanel.prototype._showPopover):
2942         * inspector/front-end/Resource.js:
2943         (WebInspector.Resource.prototype.set timing):
2944         * inspector/front-end/ResourceTimingView.js: Added.
2945         (WebInspector.ResourceTimingView):
2946         (WebInspector.ResourceTimingView.prototype.show):
2947         (WebInspector.ResourceTimingView.prototype._refresh):
2948         (WebInspector.ResourceTimingView.createTimingTable):
2949         * inspector/front-end/WebKit.qrc:
2950         * inspector/front-end/inspector.html:
2951         * inspector/front-end/networkPanel.css:
2952         (#network-views .network-item-view .tabbed-pane-header):
2953         (.resource-timing-view):
2954         (.resource-timing-view table):
2955         (.resource-timing-view .network-timing-bar):
2956         (.resource-timing-view .network-timing-bar.proxy):
2957         (.resource-timing-view .network-timing-bar.dns):
2958         (.resource-timing-view .network-timing-bar.connecting):
2959         (.resource-timing-view .network-timing-bar.ssl):
2960         (.resource-timing-view .network-timing-bar.sending):
2961         (.resource-timing-view .network-timing-bar.waiting):
2962         (.resource-timing-view .network-timing-bar.receiving):
2963         (.resource-timing-view.visible):
2964
2965 2010-11-24  Pavel Feldman  <pfeldman@chromium.org>
2966
2967         Not reviewed. Follow up to r72652 (style id change in inspector).
2968
2969         * inspector/front-end/AuditRules.js:
2970         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
2971
2972 2010-11-22  Pavel Feldman  <pfeldman@chromium.org>
2973
2974         Reviewed by Yury Semikhatsky.
2975
2976         Web Inspector: refactor ResourceView hierarchy.
2977         https://bugs.webkit.org/show_bug.cgi?id=49864
2978
2979         This refactoring splits ResourceView.js into:
2980             NetworkItemView.js (tabbed pane)
2981             ResourceHeadersView.js (header tab)
2982             ResourceCookiesView.js (cookies tab)
2983             ResourceView.js (base class for content tab).
2984         CookiesTable was extracted from CookieItemsView and
2985         brushed up. headersVisible flag has been removed.
2986
2987         * English.lproj/localizedStrings.js:
2988         * WebCore.gypi:
2989         * WebCore.vcproj/WebCore.vcproj:
2990         * inspector/front-end/CookieItemsView.js:
2991         (WebInspector.CookieItemsView):
2992         (WebInspector.CookieItemsView.prototype.get statusBarItems):
2993         (WebInspector.CookieItemsView.prototype.hide):
2994         (WebInspector.CookieItemsView.prototype.resize):
2995         (WebInspector.CookieItemsView.prototype._updateWithCookies):
2996         (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
2997         (WebInspector.CookieItemsView.prototype._deleteCookie):
2998         (WebInspector.CookieItemsView.prototype._deleteButtonClicked):
2999         (WebInspector.CookieItemsView.prototype._refreshButtonClicked):
3000         (WebInspector.SimpleCookiesTable):
3001         (WebInspector.SimpleCookiesTable.prototype.setCookies):
3002         (WebInspector.SimpleCookiesTable.prototype.resize):
3003         * inspector/front-end/CookiesTable.js: Added.
3004         (WebInspector.CookiesTable):
3005         (WebInspector.CookiesTable.prototype.updateWidths):
3006         (WebInspector.CookiesTable.prototype.setCookies):
3007         (WebInspector.CookiesTable.prototype.addCookiesFolder):
3008         (WebInspector.CookiesTable.prototype.get selectedCookie):
3009         (WebInspector.CookiesTable.prototype._rebuildTable):
3010         (WebInspector.CookiesTable.prototype.reset):
3011         (WebInspector.CookiesTable.prototype._populateNode):
3012         (WebInspector.CookiesTable.prototype._totalSize):
3013         (WebInspector.CookiesTable.prototype._sortCookies.localeCompare):
3014         (WebInspector.CookiesTable.prototype._sortCookies.numberCompare):
3015         (WebInspector.CookiesTable.prototype._sortCookies.expiresCompare):
3016         (WebInspector.CookiesTable.prototype._sortCookies):
3017         (WebInspector.CookiesTable.prototype._createGridNode):
3018         (WebInspector.CookiesTable.prototype._onDeleteFromGrid):
3019         * inspector/front-end/FileSystemView.js:
3020         (WebInspector.FileSystemView.prototype._selectFileSystemTab):
3021         (WebInspector.FileSystemView.prototype.selectTemporaryFileSystemTab):
3022         * inspector/front-end/FontView.js:
3023         (WebInspector.FontView.prototype.hasContent):
3024         (WebInspector.FontView.prototype._createContentIfNeeded):
3025         (WebInspector.FontView.prototype.show):
3026         (WebInspector.FontView.prototype.updateFontPreviewSize):
3027         * inspector/front-end/ImageView.js:
3028         (WebInspector.ImageView.prototype.hasContent):
3029         (WebInspector.ImageView.prototype.show):
3030         * inspector/front-end/NetworkItemView.js: Added.
3031         (WebInspector.NetworkItemView):
3032         (WebInspector.NetworkItemView.prototype.show):
3033         (WebInspector.NetworkItemView.prototype._selectTab):
3034         (WebInspector.NetworkItemView.prototype._tabSelected):
3035         (WebInspector.NetworkItemView.prototype.resize):
3036         (WebInspector.NetworkItemView.prototype.selectContentTab):
3037         * inspector/front-end/NetworkPanel.js:
3038         (WebInspector.NetworkPanel.prototype.show):
3039         (WebInspector.NetworkPanel.prototype.refreshResource):
3040         (WebInspector.NetworkPanel.prototype._showResource):
3041         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
3042         * inspector/front-end/ResourceCookiesView.js: Added.
3043         (WebInspector.ResourceCookiesView):
3044         (WebInspector.ResourceCookiesView.prototype.show):
3045         * inspector/front-end/ResourceHeadersView.js: Added.
3046         (WebInspector.ResourceHeadersView):
3047         (WebInspector.ResourceHeadersView.prototype._refreshURL):
3048         (WebInspector.ResourceHeadersView.prototype._refreshQueryString):
3049         (WebInspector.ResourceHeadersView.prototype._refreshFormData):
3050         (WebInspector.ResourceHeadersView.prototype._refreshRequestPayload):
3051         (WebInspector.ResourceHeadersView.prototype._refreshParms):
3052         (WebInspector.ResourceHeadersView.prototype._toggleURLdecoding):
3053         (WebInspector.ResourceHeadersView.prototype._getHeaderValue):
3054         (WebInspector.ResourceHeadersView.prototype._refreshRequestHeaders):
3055         (WebInspector.ResourceHeadersView.prototype._refreshResponseHeaders):
3056         (WebInspector.ResourceHeadersView.prototype._refreshHTTPInformation):
3057         (WebInspector.ResourceHeadersView.prototype._refreshHeaders):
3058         * inspector/front-end/ResourceView.js:
3059         (WebInspector.ResourceView):
3060         (WebInspector.ResourceView.prototype.hasContent):
3061         * inspector/front-end/ResourcesPanel.js:
3062         (WebInspector.ResourcesPanel.prototype.show):
3063         (WebInspector.ResourcesPanel.prototype.showResource):
3064         (WebInspector.ResourcesPanel.prototype._showResourceView):
3065         * inspector/front-end/ScriptsPanel.js:
3066         (WebInspector.ScriptsPanel.prototype.show):
3067         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
3068         * inspector/front-end/SourceView.js:
3069         (WebInspector.SourceView):
3070         (WebInspector.SourceView.prototype.show):
3071         (WebInspector.SourceView.prototype.hide):
3072         (WebInspector.SourceView.prototype.resize):
3073         (WebInspector.SourceView.prototype.setupSourceFrameIfNeeded):
3074         (WebInspector.SourceView.prototype.hasContent):
3075         (WebInspector.SourceView.prototype.updateLocalContent):
3076         (WebInspector.SourceView.prototype.selectLocalContentTab):
3077         * inspector/front-end/StylesSidebarPane.js:
3078         * inspector/front-end/TabbedPane.js:
3079         (WebInspector.TabbedPane):
3080         (WebInspector.TabbedPane.prototype.appendTab):
3081         (WebInspector.TabbedPane.prototype.selectTab):
3082         (WebInspector.TabbedPane.prototype._showTab):
3083         (WebInspector.TabbedPane.prototype._hideTab):
3084         * inspector/front-end/WebKit.qrc:
3085         * inspector/front-end/inspector.css:
3086         (.webkit-line-gutter-backdrop):
3087         (.resource-view):
3088         (.resource-view.visible):
3089         (.resource-view.font):
3090         (.resource-view.image > .image):
3091         (.resource-view.image > .info):
3092         (.storage-view):
3093         (.storage-view .data-grid):
3094         (.storage-empty-view, .storage-view .storage-table-error):
3095         (.storage-view .storage-table-error):
3096         * inspector/front-end/inspector.html:
3097         * inspector/front-end/networkPanel.css:
3098         (.network-cell-subtitle):
3099         (.network-header-subtitle):
3100         (#network-views .network-item-view .tabbed-pane-header):
3101         (#network-views.small .network-item-view .tabbed-pane-header):
3102         (.network-item-view):
3103         (.network-item-view.visible):
3104         (.network-item-view .tabbed-pane-header):
3105         (.network-item-view .scope-bar li):
3106         (.resource-headers-view):
3107         (.resource-headers-view.visible):
3108         (.resource-headers-view .outline-disclosure .parent):
3109         (.resource-headers-view .outline-disclosure .children li):
3110         (.resource-headers-view .outline-disclosure li.expanded .header-count):
3111         (.resource-headers-view .outline-disclosure .header-name):
3112         (.resource-headers-view .outline-disclosure .header-value):
3113         (.resource-headers-view .outline-disclosure .raw-form-data):
3114         (.resource-cookies-view):
3115         (.resource-cookies-view.visible):
3116         (.resource-cookies-view .data-grid):
3117         (.resource-cookies-view .data-grid .row-group):
3118
3119 2010-11-24  Pavel Feldman  <pfeldman@chromium.org>
3120
3121         Reviewed by Yury Semikhatsky.
3122
3123         Web Inspector: add "Locally modified" group into the resource panel.
3124         https://bugs.webkit.org/show_bug.cgi?id=50005
3125
3126         * English.lproj/localizedStrings.js:
3127         * inspector/front-end/ResourcesPanel.js:
3128         (WebInspector.ResourcesPanel):
3129         (WebInspector.ResourcesPanel.prototype.reset):
3130         (WebInspector.ResourcesPanel.prototype.addLocallyModifiedRevision):
3131         (WebInspector.ResourcesPanel.prototype._innerShowView):
3132         (WebInspector.BaseStorageTreeElement.prototype.set titleText):
3133         (WebInspector.LocallyModifiedResourceTreeElement):
3134         (WebInspector.LocallyModifiedResourceTreeElement.prototype.onselect):
3135         (WebInspector.LocallyModifiedResourceTreeElement.prototype.gcRevisions):
3136         (WebInspector.LocallyModifiedRevisionTreeElement):
3137         (WebInspector.LocallyModifiedRevisionTreeElement.prototype.onattach):
3138         (WebInspector.LocallyModifiedRevisionTreeElement.prototype.onselect):
3139         (WebInspector.LocallyModifiedRevisionTreeElement.prototype._ondragstart):
3140
3141 2010-11-24  Pavel Feldman  <pfeldman@chromium.org>
3142
3143         Reviewed by Yury Semikhatsky.
3144
3145         Web Inspector: pass style id to front-end as Object, not string.
3146         https://bugs.webkit.org/show_bug.cgi?id=49971
3147
3148         * inspector/Inspector.idl:
3149         * inspector/InspectorCSSAgent.cpp:
3150         (WebCore::InspectorCSSAgent::getStylesForNode2):
3151         (WebCore::InspectorCSSAgent::getStyleSheetText2):
3152         (WebCore::InspectorCSSAgent::setPropertyText2):
3153         (WebCore::InspectorCSSAgent::toggleProperty2):
3154         (WebCore::InspectorCSSAgent::setRuleSelector2):
3155         * inspector/InspectorCSSAgent.h:
3156         * inspector/InspectorStyleSheet.cpp:
3157         (WebCore::InspectorStyle::buildObjectForStyle):
3158         (WebCore::InspectorStyleSheet::finalURL):
3159         (WebCore::InspectorStyleSheet::ruleForId):
3160         (WebCore::InspectorStyleSheet::buildObjectForStyleSheet):
3161         (WebCore::InspectorStyleSheet::buildObjectForRule):
3162         (WebCore::InspectorStyleSheet::text):
3163         (WebCore::InspectorStyleSheet::ruleOrStyleId):
3164         (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
3165         (WebCore::InspectorStyleSheetForInlineStyle::text):
3166         * inspector/InspectorStyleSheet.h:
3167         (WebCore::InspectorCSSId::InspectorCSSId):
3168         (WebCore::InspectorCSSId::isEmpty):
3169         (WebCore::InspectorCSSId::styleSheetId):
3170         (WebCore::InspectorCSSId::ordinal):
3171         (WebCore::InspectorCSSId::asInspectorValue):
3172         (WebCore::InspectorStyleSheet::id):
3173         (WebCore::InspectorStyleSheetForInlineStyle::styleForId):
3174         * inspector/front-end/CSSStyleModel.js:
3175         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
3176         (WebInspector.CSSStyleModel.prototype.addRule):
3177         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
3178         (WebInspector.CSSStyleDeclaration.prototype.insertPropertyAt):
3179         (WebInspector.CSSProperty.prototype.setText):
3180         (WebInspector.CSSProperty.prototype.setDisabled.callback):
3181         (WebInspector.CSSProperty.prototype.setDisabled):
3182         (WebInspector.CSSStyleSheet.createForId):
3183         (WebInspector.CSSStyleSheet.prototype.setText):
3184
3185 2010-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
3186
3187         Unreviewed, rolling out r72647.
3188         http://trac.webkit.org/changeset/72647
3189         https://bugs.webkit.org/show_bug.cgi?id=50009
3190
3191         breaks the http layout tests (Requested by philn-tp on
3192         #webkit).
3193
3194         * platform/network/soup/ResourceHandleSoup.cpp:
3195         (WebCore::sendRequestCallback):
3196         (WebCore::startHttp):
3197         (WebCore::ResourceHandle::platformSetDefersLoading):
3198
3199 2010-11-23  Philippe Normand  <pnormand@igalia.com>
3200
3201         Reviewed by Martin Robinson.
3202
3203         [soup] implement ResourceHandle::platformSetDefersLoading
3204         https://bugs.webkit.org/show_bug.cgi?id=44158
3205
3206         * platform/network/soup/ResourceHandleSoup.cpp:
3207         (WebCore::ResourceHandle::platformSetDefersLoading): Implemented
3208         using the soup_session_{,un}pause_message APIs.
3209
3210 2010-11-22  Abhishek Arya  <inferno@chromium.org>
3211
3212         Reviewed by Adam Barth.
3213
3214         r71925 broke the chrome new tab page. r71925 blocked drag and drop
3215         of same security origin objects onto themselves if their origin is
3216         marked unique. We need to allow drag and drop in that scenario.
3217         https://bugs.webkit.org/show_bug.cgi?id=49098
3218
3219         Test: http/tests/security/drag-drop-same-unique-origin.html
3220
3221         * page/SecurityOrigin.cpp:
3222         (WebCore::SecurityOrigin::canReceiveDragData):
3223
3224 2010-11-23  Cris Neckar  <cdn@chromium.org>
3225
3226         Reviewed by Dimitri Glazkov.
3227
3228         Removed unneeded conversions to RenderBlock.
3229         https://bugs.webkit.org/show_bug.cgi?id=49896
3230
3231         Test: fast/css/input-search-table-column-crash.html
3232
3233         * rendering/RenderTextControlSingleLine.cpp:
3234         (WebCore::RenderTextControlSingleLine::adjustControlHeightBasedOnLineHeight):
3235
3236 2010-11-23  Ryosuke Niwa  <rniwa@webkit.org>
3237
3238         Reviewed by Adam Barth.
3239
3240         XMLDocumentParser::notifyFinished calls ScriptController's executeScript without updating isEvaluated flag
3241         https://bugs.webkit.org/show_bug.cgi?id=49701
3242
3243         Fixed the bug by calling ScriptElement's executeScript, which sets isEvaluated flag to true.
3244
3245         Test: fast/dom/script-clone-rerun-src.xhtml
3246
3247         * dom/XMLDocumentParser.cpp:
3248         (WebCore::XMLDocumentParser::notifyFinished):
3249
3250 2010-11-23  Sheriff Bot  <webkit.review.bot@gmail.com>
3251
3252         Unreviewed, rolling out r72628.
3253         http://trac.webkit.org/changeset/72628
3254         https://bugs.webkit.org/show_bug.cgi?id=49994
3255
3256         This patch is causing layout-test failtures on GTK Linux
3257         64-bit Debug (Requested by ctguil on #webkit).
3258
3259         * accessibility/AccessibilityRenderObject.cpp:
3260         (WebCore::AccessibilityRenderObject::renderParentObject):
3261         (WebCore::AccessibilityRenderObject::addChildren):
3262         * accessibility/AccessibilityRenderObject.h:
3263         * accessibility/chromium/AccessibilityObjectChromium.cpp:
3264         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3265
3266 2010-11-23  Xan Lopez  <xlopez@igalia.com>
3267
3268         Reviewed by Martin Robinson.
3269
3270         [GTK] Fix IFrame DOM bindings API
3271         https://bugs.webkit.org/show_bug.cgi?id=49980
3272
3273         Fix IFrame API naming. It needs special casing because of the two
3274         consecutive capital letters.
3275
3276         * bindings/scripts/CodeGeneratorGObject.pm:
3277
3278 2010-11-23  Shimeng (Simon) Wang  <swang@google.com>
3279
3280         Reviewed by Steve Block.
3281
3282         Use platform bridge to set scroll position.
3283         https://bugs.webkit.org/show_bug.cgi?id=49550
3284
3285         Refactoring only.  Existing tests shall suffice.
3286
3287         * platform/android/PlatformBridge.h:
3288         * platform/android/ScrollViewAndroid.cpp:
3289         (WebCore::ScrollView::platformSetScrollPosition):
3290
3291 2010-11-23  Andreas Kling  <kling@webkit.org>
3292
3293         Reviewed by Tor Arne Vestbø.
3294
3295         [Qt] Selecting shadowed text causes rendering artifacts
3296         https://bugs.webkit.org/show_bug.cgi?id=49990
3297
3298         When selecting text starting from the end of a word, we need to use
3299         the X coordinate of the start of the substring when calculating the
3300         bounding rect for a ContextShadow.
3301
3302         * platform/graphics/qt/FontQt.cpp:
3303         (WebCore::drawTextCommon):
3304
3305 2010-11-23  Chris Guillory  <chris.guillory@google.com>
3306
3307         Reviewed by Dimitri Glazkov.
3308
3309         Include the FrameView widget of a RenderWidget in the accessibility tree.
3310         https://bugs.webkit.org/show_bug.cgi?id=49106
3311
3312         Include render widget children in the accessibility tree for not mac webkit ports.
3313
3314         Test: accessibility/iframe-has-document.html
3315
3316         * accessibility/AccessibilityRenderObject.cpp:
3317         (WebCore::AccessibilityRenderObject::renderParentObject):
3318         (WebCore::AccessibilityRenderObject::addChildren):
3319         (WebCore::AccessibilityRenderObject::addRenderWidgetChildren):
3320         * accessibility/AccessibilityRenderObject.h:
3321         * accessibility/chromium/AccessibilityObjectChromium.cpp:
3322         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
3323
3324 2010-11-23  Chris Rogers  <crogers@google.com>
3325
3326         Reviewed by Alexey Proskuryakov.
3327
3328         Add .responseType and .response to XMLHttpRequest
3329         https://bugs.webkit.org/show_bug.cgi?id=49633
3330
3331         Tests: fast/xmlhttprequest/xmlhttprequest-responsetype-abort.html
3332                fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer.html
3333                fast/xmlhttprequest/xmlhttprequest-responsetype-document.html
3334                fast/xmlhttprequest/xmlhttprequest-responsetype-text.html
3335
3336         * bindings/js/JSXMLHttpRequestCustom.cpp:
3337         (WebCore::JSXMLHttpRequest::markChildren):
3338         (WebCore::JSXMLHttpRequest::open):
3339         (WebCore::JSXMLHttpRequest::response):
3340         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
3341         (WebCore::V8XMLHttpRequest::responseAccessorGetter):
3342         * xml/XMLHttpRequest.cpp:
3343         (WebCore::XMLHttpRequest::XMLHttpRequest):
3344         (WebCore::XMLHttpRequest::responseText):
3345         (WebCore::XMLHttpRequest::responseXML):
3346         (WebCore::XMLHttpRequest::responseBlob):
3347         (WebCore::XMLHttpRequest::responseArrayBuffer):
3348         (WebCore::XMLHttpRequest::setResponseType):
3349         (WebCore::XMLHttpRequest::responseType):
3350         (WebCore::XMLHttpRequest::setAsBlob):
3351         (WebCore::XMLHttpRequest::open):
3352         (WebCore::XMLHttpRequest::clearResponse):
3353         (WebCore::XMLHttpRequest::didFinishLoading):
3354         (WebCore::XMLHttpRequest::didReceiveData):
3355         * xml/XMLHttpRequest.h:
3356         (WebCore::XMLHttpRequest::asBlob):
3357         (WebCore::XMLHttpRequest::optionalResponseXML):
3358         (WebCore::XMLHttpRequest::optionalResponseBlob):
3359         (WebCore::XMLHttpRequest::responseTypeCode):
3360         (WebCore::XMLHttpRequest::optionalResponseArrayBuffer):
3361         * xml/XMLHttpRequest.idl:
3362
3363 2010-11-23  Abhishek Arya  <inferno@chromium.org>
3364
3365         Reviewed by Adam Barth.
3366
3367         dispatchEvent call in EventSource endRequest can lead to calling endRequest
3368         again which frees up the pending activity. Make sure we have request in flight
3369         to prevent that from happening.
3370         https://bugs.webkit.org/show_bug.cgi?id=49448
3371
3372         Test: http/tests/eventsource/eventsource-status-error-iframe-crash.html
3373
3374         * page/EventSource.cpp:
3375         (WebCore::EventSource::endRequest):
3376         (WebCore::EventSource::close):
3377
3378 2010-11-23  Sheriff Bot  <webkit.review.bot@gmail.com>
3379
3380         Unreviewed, rolling out r72618.
3381         http://trac.webkit.org/changeset/72618
3382         https://bugs.webkit.org/show_bug.cgi?id=49987
3383
3384         "Newly added test is failing on Chromium-linux, patch author
3385         said to rollout" (Requested by jparent on #webkit).
3386
3387         * editing/EditingBehavior.h:
3388         * page/EventHandler.cpp:
3389         (WebCore::EventHandler::sendContextMenuEvent):
3390
3391 2010-11-23  Avi Drissman  <avi@google.com>
3392
3393         Reviewed by Antonio Gomes.
3394
3395         Add preference to not select when right-clicked
3396         https://bugs.webkit.org/show_bug.cgi?id=23351
3397
3398         Test: editing/selection/context-menu-text-selection.html
3399
3400         * editing/EditingBehavior.h:
3401         (WebCore::EditingBehavior::shouldSelectOnContextualMenuClick):
3402         * page/EventHandler.cpp:
3403         (WebCore::EventHandler::sendContextMenuEvent):
3404
3405 2010-11-23  Alexander Pavlov  <apavlov@chromium.org>
3406
3407         Reviewed by Pavel Feldman.
3408
3409         Web Inspector: [STYLES] invalid color values are not marked as such.
3410         https://bugs.webkit.org/show_bug.cgi?id=49960
3411
3412         Properties having a valid structure but invalid values will also
3413         be marked as non-parsedOk in the Styles pane.
3414
3415         * css/CSSGrammar.y:
3416         * inspector/InspectorStyleSheet.cpp:
3417         (WebCore::InspectorStyle::populateObjectWithStyleProperties):
3418
3419 2010-11-23  Adam Bergkvist  <adam.bergkvist@ericsson.com>
3420
3421         Reviewed by Martin Robinson.
3422
3423         [GTK] Building with Blob support fails
3424         https://bugs.webkit.org/show_bug.cgi?id=49724
3425
3426         Build fix.
3427
3428         * GNUmakefile.am:
3429         * platform/gtk/FileSystemGtk.cpp:
3430         (WebCore::seekFile): Not implemented.
3431
3432 2010-11-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3433
3434         Reviewed by Andreas Kling.
3435
3436         Make setShouldDelegateScrolling not a real setting, so that it works
3437         similar to the related setUseFixedLayout and setPaintEntireContents
3438         options which are all in ScrollView.
3439
3440         * page/FrameView.cpp:
3441         * page/FrameView.h:
3442         * page/Settings.cpp:
3443         (WebCore::Settings::Settings):
3444         * page/Settings.h:
3445         * platform/ScrollView.cpp:
3446         (WebCore::ScrollView::ScrollView):
3447         (WebCore::ScrollView::setDelegatesScrolling):
3448         * platform/ScrollView.h:
3449         (WebCore::ScrollView::delegatesScrolling):
3450
3451 2010-11-23  Adam Roben  <aroben@apple.com>
3452
3453         Don't rely on DocumentLoader outliving the load/unload events
3454
3455         DocumentLoader::m_documentLoadTiming is used to record how long firing
3456         the load event took. But the DocumentLoader was being destroyed while
3457         the event was being dispatched (due to a call to document.open), which
3458         meant that when we tried to record the time when the load event
3459         finished, we were writing into freed memory. We now protect the
3460         DocumentLoader using a RefPtr. (I initially made a change where we
3461         would only access the DocumentLoader after the event has finished
3462         firing, but it seemed possible that a different DocumentLoader could
3463         have come into existence by then, which would cause us to record the
3464         times on the wrong DocumentLoadTiming struct.)
3465
3466         I only saw a crash when firing the load event, but the code for timing
3467         the unload event seemed like it was vulnerable to the same issue, so I
3468         made the same fix for it.
3469
3470         Fixes <http://webkit.org/b/49972> REGRESSION (r72415?): Crash in
3471         DOMWindow::dispatchTimedEvent when running fast/dom/onload-open.html
3472
3473         Reviewed by Darin Fisher.
3474
3475         * loader/FrameLoader.cpp:
3476         (WebCore::FrameLoader::stopLoading):
3477         * page/DOMWindow.cpp:
3478         (WebCore::DOMWindow::dispatchLoadEvent):
3479         Protect the DocumentLoader (and thus its DocumentLoadTiming) with a
3480         RefPtr.
3481
3482 2010-11-17  Zhenyao Mo  <zmo@google.com>
3483
3484         Reviewed by Kenneth Russell.
3485
3486         readPixels should generate INVALID_ENUM if only one of type/format mismatch UNSIGNED_BYTE/RGBA
3487         https://bugs.webkit.org/show_bug.cgi?id=49673
3488
3489         Test: fast/canvas/webgl/read-pixels-test.html
3490
3491         * html/canvas/WebGLRenderingContext.cpp:
3492         (WebCore::WebGLRenderingContext::readPixels):
3493
3494 2010-11-23  Alexander Pavlov  <apavlov@chromium.org>
3495
3496         Reviewed by Pavel Feldman.
3497
3498         Web Inspector: [STYLES] Use strike through as an 'overridden' marker.
3499         https://bugs.webkit.org/show_bug.cgi?id=49961
3500
3501         "line-through" is used for inactive properties overridden within the same style.
3502
3503         * inspector/front-end/inspector.css:
3504         (.styles-section .properties .overloaded, .styles-section .properties .inactive, .styles-section .properties .disabled):
3505
3506 2010-11-23  Yael Aharon  <yael.aharon@nokia.com>
3507
3508         Reviewed by Antonio Gomes.
3509
3510         Spatial Navigation: Code cleanup
3511         https://bugs.webkit.org/show_bug.cgi?id=49442
3512
3513         Remove code that is not used anymore after http://trac.webkit.org/changeset/72522.
3514         Added const to canBeScrolledIntoView.
3515         No new tests because this is only code cleanup.
3516
3517         * page/FocusController.cpp:
3518         * page/FocusController.h:
3519         * page/SpatialNavigation.cpp:
3520         (WebCore::canBeScrolledIntoView):
3521         * page/SpatialNavigation.h:
3522
3523 2010-11-23  Jeremy Orlow  <jorlow@chromium.org>
3524
3525         Reviewed by Steve Block.
3526
3527         Remove unimplemented (and untested) methods from IndexedDB
3528         https://bugs.webkit.org/show_bug.cgi?id=49911
3529
3530         * storage/IDBCursor.idl:
3531         * storage/IDBDatabase.idl:
3532
3533 2010-11-18  Satish Sampath  <satish@chromium.org>
3534
3535         Reviewed by Jeremy Orlow.
3536
3537         For speech input event, send an event object containing all the recognition results and metadata.
3538         https://bugs.webkit.org/show_bug.cgi?id=49736
3539
3540         Currently the speech input event 'onwebkitspeechchange' receives no parameters. WebCore already
3541         has the full list of recognition results and populates only the top result into the input field
3542         automatically. In this patch we pass a SpeechInputEvent object to the event handler, and the JS
3543         code can access the full list of results via "event.results.length", "results[i].utterance" and
3544         "results[i].confidence". Also updated mock object with appropriate methods to test multiple results.
3545
3546         Test: fast/speech/input-onspeechchange-event.html
3547
3548         * CMakeLists.txt:
3549         * GNUmakefile.am:
3550         * WebCore.gypi:
3551         * WebCore.pri:
3552         * WebCore.pro:
3553         * WebCore.xcodeproj/project.pbxproj:
3554         * bindings/js/JSEventCustom.cpp:
3555         (WebCore::toJS): Added new event
3556         * bindings/v8/custom/V8EventCustom.cpp:
3557         (WebCore::toV8): Added new event
3558         * dom/Event.cpp:
3559         (WebCore::Event::isSpeechInputEvent):
3560         * dom/Event.h:
3561         * html/HTMLInputElement.cpp:
3562         * html/HTMLInputElement.h:
3563         * page/SpeechInputEvent.h: New file implementing SpeechInputEvent.idl
3564         (WebCore::SpeechInputEvent::~SpeechInputEvent):
3565         (WebCore::SpeechInputEvent::create):
3566         (WebCore::SpeechInputEvent::isSpeechInputEvent):
3567         (WebCore::SpeechInputEvent::results):
3568         (WebCore::SpeechInputEvent::SpeechInputEvent):
3569         * page/SpeechInputEvent.idl: New file defining SpeechInputEvent object
3570         * page/SpeechInputListener.h:
3571         * page/SpeechInputResult.cpp:
3572         (WebCore::SpeechInputResult::create):
3573         * page/SpeechInputResult.h:
3574         * page/SpeechInputResult.idl: New file defining a single SpeechInputResult object
3575         * page/SpeechInputResultList.h: New file implementing SpeechInputResultList.idl
3576         (WebCore::SpeechInputResultList::create):
3577         (WebCore::SpeechInputResultList::length):
3578         (WebCore::SpeechInputResultList::item):
3579         (WebCore::SpeechInputResultList::SpeechInputResultList):
3580         * page/SpeechInputResultList.idl: New file defining a list of SpeechInputResult objects
3581         * platform/mock/SpeechInputClientMock.cpp:
3582         (WebCore::SpeechInputClientMock::addRecognitionResult): Renamed method and added one parameter.
3583         (WebCore::SpeechInputClientMock::clearResults):
3584         (WebCore::SpeechInputClientMock::timerFired):
3585         * platform/mock/SpeechInputClientMock.h:
3586         * rendering/TextControlInnerElements.cpp:
3587         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult): Pass new event object to handler.
3588
3589 2010-11-22  Alexey Proskuryakov  <ap@apple.com>
3590
3591         Reviewed by Darin Adler.
3592
3593         https://bugs.webkit.org/show_bug.cgi?id=49860
3594         CSS style rules don't GC protect objects reachable as their properties
3595
3596         Test: fast/dom/StyleSheet/gc-rule-children-wrappers.html
3597
3598         * Android.jscbindings.mk:
3599         * CMakeLists.txt:
3600         * GNUmakefile.am:
3601         * WebCore.gypi: