[Qt] Report zero width for zero size fonts
[WebKit-https.git] / WebCore / ChangeLog
1 2010-12-06  Robert Hogan  <robert@webkit.org>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [Qt] Report zero width for zero size fonts
6
7         Report zero width when font size is zero.
8
9         Fixes fast/text/font-size-zero.html
10
11         https://bugs.webkit.org/show_bug.cgi?id=50539
12
13         * platform/graphics/qt/FontQt.cpp:
14         (WebCore::Font::floatWidthForSimpleText):
15         (WebCore::Font::floatWidthForComplexText):
16
17 2010-12-03  Yury Semikhatsky  <yurys@chromium.org>
18
19         Reviewed by Pavel Feldman.
20
21         [v8] Web Inspector: remove duplicate code for capturing stack trace
22         https://bugs.webkit.org/show_bug.cgi?id=50461
23
24         No new tests. Covered with existing inspector tests.
25
26         * bindings/js/ScriptCallStackFactory.cpp:
27         (WebCore::createScriptCallStack):
28         * bindings/js/ScriptCallStackFactory.h:
29         * bindings/v8/ScriptCallStackFactory.cpp:
30         (WebCore::toScriptCallFrame):
31         (WebCore::toScriptCallFramesVector):
32         (WebCore::createScriptCallStack):
33         * bindings/v8/ScriptCallStackFactory.h:
34         * bindings/v8/V8ConsoleMessage.cpp:
35         (WebCore::V8ConsoleMessage::handler):
36         * inspector/ScriptCallFrame.cpp:
37         (WebCore::ScriptCallFrame::ScriptCallFrame):
38         (WebCore::ScriptCallFrame::isEqual):
39         (WebCore::ScriptCallFrame::buildInspectorObject):
40         * inspector/ScriptCallFrame.h:
41         (WebCore::ScriptCallFrame::sourceURL):
42         * inspector/ScriptCallStack.h:
43         * inspector/TimelineRecordFactory.cpp:
44         (WebCore::TimelineRecordFactory::createGenericRecord):
45         * inspector/front-end/ConsoleView.js:
46         (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement):
47
48 2010-12-06  Sergio Villar Senin  <svillar@igalia.com>
49
50         Reviewed by Martin Robinson.
51
52         [GTK] webkit_soup_cache_clear() does not delete all entries in the cache
53         https://bugs.webkit.org/show_bug.cgi?id=50462
54
55         Do not use g_hash_table_foreach to remove entries from the cache
56         entries hashtable. Iterate over a list of entries to remove them
57         from the hash table.
58
59         * platform/network/soup/ResourceHandleSoup.cpp:
60         * platform/network/soup/cache/webkit/soup-cache.c:
61         (remove_cache_item):
62         (webkit_soup_cache_finalize):
63         (clear_cache_item):
64         (webkit_soup_cache_clear):
65
66 2010-12-05  Kent Tamura  <tkent@chromium.org>
67
68         Unreviewed. Run sort-Xcode-project-file.
69
70         * WebCore.xcodeproj/project.pbxproj:
71
72 2010-11-30  Luiz Agostini  <luiz.agostini@openbossa.org>
73
74         Reviewed by Darin Adler.
75
76         HTML5 <details> and <summary> initial implementation
77         https://bugs.webkit.org/show_bug.cgi?id=50309
78
79         HTML5 <details> and <summary> elements initial implementation. The main objective is
80         to add the files for html element and renderers, and to get rid of build system issues
81         in future patches.
82
83         See: http://www.w3.org/TR/html5/interactive-elements.html#the-details-element
84              http://www.w3.org/TR/html5/interactive-elements.html#the-summary-element
85
86         build systems
87
88         * CMakeLists.txt:
89         * DerivedSources.cpp:
90         * DerivedSources.make:
91         * GNUmakefile.am:
92         * WebCore.gypi:
93         * WebCore.pri:
94         * WebCore.pro:
95         * WebCore.vcproj/WebCore.vcproj:
96         * WebCore.xcodeproj/project.pbxproj:
97         * bindings/gobject/GNUmakefile.am:
98
99         Some css properties to the new html elements.
100
101         * css/html.css:
102         (details):
103         (summary):
104
105         New html element associated with the corresponding tag.
106
107         * html/HTMLAttributeNames.in:
108         * html/HTMLTagNames.in:
109
110         1 html element and 3 renderers were added.
111
112         * html/HTMLDetailsElement.cpp: Added.
113         * html/HTMLDetailsElement.h: Added.
114         * html/HTMLDetailsElement.idl: Added.
115         * html/HTMLElementsAllInOne.cpp:
116         * rendering/RenderDetails.cpp: Added.
117         * rendering/RenderDetails.h: Added.
118         * rendering/RenderDetailsMarker.cpp: Added.
119         * rendering/RenderDetailsMarker.h: Added.
120         * rendering/RenderSummary.cpp: Added.
121         * rendering/RenderSummary.h: Added.
122         * rendering/RenderingAllInOne.cpp:
123
124         New renderer type checkers.
125
126         * rendering/RenderObject.h:
127         (WebCore::RenderObject::isDetails):
128         (WebCore::RenderObject::isDetailsMarker):
129         (WebCore::RenderObject::isSummary):
130
131 2010-12-05  Rob Buis  <rwlbuis@gmail.com>
132
133         Reviewed by Nikolas Zimmermann.
134
135         createSVGTransformFromMatrix(undefined) => NULL ptr
136         https://bugs.webkit.org/show_bug.cgi?id=49564
137
138         Throw TYPE_MISMATCH_ERR when using undefined or null as value for matrix parameter.
139
140         * svg/SVGTransformList.idl:
141         * svg/properties/SVGTransformListPropertyTearOff.h:
142         (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
143
144 2010-12-05  Alejandro G. Castro  <alex@igalia.com>
145
146         Reviewed by Xan Lopez.
147
148         [GTK] Fix compilation warnings reported by clang
149         https://bugs.webkit.org/show_bug.cgi?id=50252
150
151         * platform/graphics/Path.h: CairoPath is now a class, not a
152         struct.
153         * platform/network/soup/ResourceHandleSoup.cpp:
154         (WebCore::sendRequestCallback): Cast the status_code to int.
155
156 2010-12-05  Alejandro G. Castro  <alex@igalia.com>
157
158         Reviewed by Martin Robinson.
159
160         [GTK] Remove setColor functions it was replicated in
161         CairoUtilities: setSourceRGBAFromColor.
162
163         * platform/graphics/cairo/GraphicsContextCairo.cpp:
164         (WebCore::setPlatformFill):
165         (WebCore::setPlatformStroke):
166         (WebCore::fillRectSourceOver):
167         (WebCore::GraphicsContext::drawRect):
168         (WebCore::GraphicsContext::drawLine):
169         (WebCore::GraphicsContext::drawEllipse):
170         (WebCore::GraphicsContext::strokeArc):
171         (WebCore::GraphicsContext::drawConvexPolygon):
172         (WebCore::GraphicsContext::drawFocusRing):
173         (WebCore::GraphicsContext::fillRoundedRect):
174
175 2010-12-05  Adam Roben  <aroben@apple.com>
176
177         Windows production build fix
178
179         Put spaces after trailing backslashes when setting
180         %WebKitVSPropsRedirectionDir%. According to MSDN
181         <http://msdn.microsoft.com/en-us/library/2kzfk8c7(v=VS.80).aspx>:
182
183            A backslash ( \ ) followed by a newline character is interpreted as
184            a space in the command; use a backslash at the end of a line to
185            continue a command onto the next line. NMAKE interprets the
186            backslash literally if any other character, including a space or
187            tab, follows the backslash.
188
189         * WebCore.vcproj/WebCore.make:
190
191 2010-12-05  Robert Hogan  <robert@webkit.org>
192
193         Reviewed by Andreas Kling.
194
195         [Qt] Zero-sized font does not yet work
196
197         Fix fast/text/font-size-zero.html
198
199         Copy other ports by setting minimumFontSize to 0 for DRT runs,
200         copy a fix to SimpleFontData from chromium/safari, and set font
201         size in FontPlatformData to zero if size zero is requested
202         and QFont::pixelSize otherwise. (Note that QFont doesn't accept
203         a pixel size of zero).
204
205         Also fix QFont::setPixelSize in FontPlatformData to use
206         description.computedPixelSize rather than computedSize and
207         pixelSize() rather than pointSizeF - since the latter gets
208         set to -1 if pixelSize is set at all.
209
210         https://bugs.webkit.org/show_bug.cgi?id=49759
211
212         * platform/graphics/qt/FontPlatformData.h:
213         (WebCore::FontPlatformDataPrivate::FontPlatformDataPrivate):
214         (WebCore::FontPlatformData::pixelSize):
215         * platform/graphics/qt/FontPlatformDataQt.cpp:
216         (WebCore::FontPlatformData::FontPlatformData):
217         * platform/graphics/qt/FontQt.cpp:
218         (WebCore::drawTextCommon):
219         * platform/graphics/qt/SimpleFontDataQt.cpp:
220         (WebCore::SimpleFontData::platformInit):
221         (WebCore::SimpleFontData::platformGlyphInit):
222         (WebCore::SimpleFontData::platformCharWidthInit):
223
224 2010-12-04  Daniel Bates  <dbates@rim.com>
225
226         Reviewed by Darin Adler.
227
228         Add support for lower-armenian and upper-armenian
229         https://bugs.webkit.org/show_bug.cgi?id=49641
230
231         Implement support for list-style-types lower-armenian and upper-armenian
232         for lowercase Armenian and uppercase Armenian numerals, respectively.
233
234         Tests: fast/lists/w3-css3-lower-armenian.html
235                fast/lists/w3-css3-upper-armenian.html
236
237         * css/CSSPrimitiveValueMappings.h:
238         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added enum values LowerArmenian
239         and UpperArmenian.
240         * css/CSSValueKeywords.in: Added "upper-armenian" and "lower-armenian".
241         * inspector/front-end/SourceCSSTokenizer.re2js: Ditto.
242         * rendering/RenderListMarker.cpp:
243         (WebCore::effectiveListMarkerType): Added enum values LowerArmenian
244         and UpperArmenian.
245         (WebCore::listMarkerSuffix): Ditto.
246         (WebCore::listMarkerText): Ditto.
247         (WebCore::RenderListMarker::paint): Ditto.
248         (WebCore::RenderListMarker::computePreferredLogicalWidths): Ditto.
249         (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
250         * rendering/style/RenderStyleConstants.h: Ditto.
251
252 2010-12-04  Dan Bernstein  <mitz@apple.com>
253
254         Reviewed by Sam Weinig.
255
256         WebCore part of <rdar://problem/8145955> Add text search API for counting/marking/highlighting matches in a range
257         https://bugs.webkit.org/show_bug.cgi?id=50530
258
259         * WebCore.exp.in: Export Range version of countMatchesForText().
260         * editing/Editor.cpp:
261         (WebCore::isFrameInRange): Added this helper method.
262         (WebCore::Editor::countMatchesForText): Added a Range parameter and restricted the result to
263         matches that occur in the range.
264         * editing/Editor.h:
265
266 2010-12-04  Gavin Peters  <gavinp@chromium.org>
267
268         Reviewed by Adam Barth.
269
270         Implement onload events for <link rel=prefetch>
271         https://bugs.webkit.org/show_bug.cgi?id=50187
272
273         Tests: fast/dom/HTMLLinkElement/link-and-subresource-test.html
274                fast/dom/HTMLLinkElement/prefetch-onload.html
275
276         * html/HTMLLinkElement.cpp:
277         (WebCore::HTMLLinkElement::HTMLLinkElement):
278         (WebCore::HTMLLinkElement::~HTMLLinkElement):
279         (WebCore::HTMLLinkElement::parseMappedAttribute):
280         (WebCore::HTMLLinkElement::process):
281         (WebCore::HTMLLinkElement::onloadTimerFired):
282         (WebCore::HTMLLinkElement::notifyFinished):
283         * html/HTMLLinkElement.h:
284         * loader/cache/CachedResource.cpp:
285         (WebCore::CachedResource::data):
286
287 2010-12-04  Xan Lopez  <xlopez@igalia.com>
288
289         Reviewed by Martin Robinson.
290
291         [GTK] Drop GdkDrawable usage, it's deprecated in GTK+3.x and we can use GdkWindow
292         https://bugs.webkit.org/show_bug.cgi?id=50451
293
294         GdkDrawable has been removed in GTK+3.x. To cope with this we can
295         actually stop using it altogether, since GdkWindow is just a
296         typedef for it and that seems to be good enough for us.
297
298         * platform/graphics/GraphicsContext.h: s/GdkDrawable/GdkWindow/.
299         * platform/graphics/cairo/GraphicsContextCairo.cpp:
300         (WebCore::GraphicsContext::gdkWindow): ditto.
301         * platform/gtk/GtkVersioning.h: declare GDK_WINDOW_XWINDOW for GTK 3.x builds.
302         * platform/gtk/PlatformScreenGtk.cpp:
303         (WebCore::screenAvailableRect): s/GdkDrawable/GdkWindow/.
304         * platform/gtk/WidgetGtk.cpp:
305         (WebCore::gdkWindow): ditto.
306         (WebCore::Widget::setCursor): ditto.
307         * platform/gtk/WidgetRenderingContextGtk2.cpp: ditto.
308
309 2010-12-03  Dimitri Glazkov  <dglazkov@chromium.org>
310
311         Reviewed by Darin Adler.
312
313         REGRESSION(r71934): input event fires twice when editing text inside a text input.
314         https://bugs.webkit.org/show_bug.cgi?id=50477
315
316         Now that events escape the shadow DOM boundary, the input event is fired twice
317         for each input, once triggered by editing, once triggered by value change.
318
319         Test: fast/forms/text-input-event.html
320
321         * dom/InputElement.cpp:
322         (WebCore::InputElement::setValueFromRenderer): Added a check to ensure editable fields
323             don't fire an extra input event.
324
325 2010-12-03  Sheriff Bot  <webkit.review.bot@gmail.com>
326
327         Unreviewed, rolling out r73302.
328         http://trac.webkit.org/changeset/73302
329         https://bugs.webkit.org/show_bug.cgi?id=50499
330
331         Causes crashes in debug LayoutTests (Requested by xan_ on
332         #webkit).
333
334         * accessibility/AccessibilityRenderObject.cpp:
335         (WebCore::AccessibilityRenderObject::renderParentObject):
336         (WebCore::AccessibilityRenderObject::addChildren):
337         * accessibility/AccessibilityRenderObject.h:
338         * accessibility/chromium/AccessibilityObjectChromium.cpp:
339         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
340
341 2010-12-01  Ilya Tikhonovsky  <loislo@chromium.org>
342
343         Reviewed by Pavel Feldman.
344
345         Web Inspector: Inspector protocol cleanup task.
346
347         The patch has just small renames and adjustments for the protocol things.
348         'handler' keyword in idl file was replaced with 'domain'.
349         'domain' property was assigned for the each backend to frontend messages.
350         At the next step WebInspector wrapper functions will be removed and 'agents' will be called directly.
351
352         https://bugs.webkit.org/show_bug.cgi?id=50337
353
354         * inspector/CodeGeneratorInspector.pm:
355         * inspector/Inspector.idl:
356         * inspector/front-end/inspector.js:
357         (WebInspector_syncDispatch):
358
359 2010-12-03  Alexander Pavlov  <apavlov@chromium.org>
360
361         Reviewed by Yury Semikhatsky.
362
363         Web Inspector: Duplicate "!important" for !important properties displayed in the Styles pane
364         https://bugs.webkit.org/show_bug.cgi?id=50460
365
366         * inspector/front-end/StylesSidebarPane.js:
367         * inspector/front-end/inspector.css:
368
369 2010-12-03  Xan Lopez  <xlopez@igalia.com>
370
371         Unreviewed build fix.
372
373         The JS code generator includes headers unconditionally, so we need
374         to generate them unconditionally and disable the feature. The
375         WebAudio files hadn't been added to our sources list.
376
377         * GNUmakefile.am:
378
379 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
380
381         Unreviewed build fix.
382
383         Try to fix EFL build after r73273.
384
385         * CMakeLists.txt:
386
387 2010-12-03  Chris Guillory  <chris.guillory@google.com>
388
389         Reviewed by Chris Fleizach.
390
391         Include the FrameView widget of a RenderWidget in the accessibility tree.
392         https://bugs.webkit.org/show_bug.cgi?id=49106
393
394         Include render widget children in the accessibility tree for not mac webkit ports.
395
396         * accessibility/AccessibilityRenderObject.cpp:
397         (WebCore::AccessibilityRenderObject::renderParentObject):
398         (WebCore::AccessibilityRenderObject::addChildren):
399         (WebCore::AccessibilityRenderObject::addRenderWidgetChildren):
400         * accessibility/AccessibilityRenderObject.h:
401         * accessibility/chromium/AccessibilityObjectChromium.cpp:
402         (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
403
404 2010-11-30  Abhishek Arya  <inferno@chromium.org>
405
406         Reviewed by Dave Hyatt.
407
408         Don't clone an anonymous block, instead create a new one in splitBlocks. Also,
409         when beforeChild is not in one of our children, then do the processing first
410         to get its anonymous container before calling splitBlocks.
411         https://bugs.webkit.org/show_bug.cgi?id=49928
412
413         Tests: fast/multicol/span/anonymous-before-child-parent-crash.html
414                fast/multicol/span/anonymous-split-block-crash.html
415
416         * rendering/RenderBlock.cpp:
417         (WebCore::RenderBlock::splitBlocks):
418         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
419
420 2010-12-03  Mark Rowe  <mrowe@apple.com>
421
422         Reviewed by Eric Seidel.
423
424         Animated GIF animates much more slowly in Safari than Firefox
425         <rdar://problem/7689300> / <http://webkit.org/b/26455>
426
427         Adopt Firefox's behavior for frame duration clamping. Images that specify a frame duration
428         of <= 10ms are treated as having a frame duration of 100ms, while all other images use the
429         frame duration that they specify.
430
431         ImageIO currently implements its own clamping of frame durations (<rdar://problem/7689297>)
432         which will result in this change having no observable effect on platforms where it is used
433         until an updated version of ImageIO becomes available.
434
435         * platform/graphics/ImageSource.cpp:
436         (WebCore::ImageSource::frameDurationAtIndex): Update the formatting of the comment and style
437         of the code to match that in ImageSourceCG.
438         * platform/graphics/cg/ImageSourceCG.cpp:
439         (WebCore::ImageSource::frameDurationAtIndex):
440
441 2010-12-03  Chris Rogers  <crogers@google.com>
442
443         Unreviewed build fix.
444
445         Fix M_E compile error on Chromium Win
446         https://bugs.webkit.org/show_bug.cgi?id=50479
447
448         * platform/audio/AudioUtilities.cpp:
449         (WebCore::AudioUtilities::discreteTimeConstantForSampleRate):
450
451 2010-12-03  Chris Rogers  <crogers@google.com>
452
453         Unreviewed build fix.
454
455         Try to fix GTK build due to recent web audio makefile changes (disable ENABLE_WEB_AUDIO explicitly)
456         https://bugs.webkit.org/show_bug.cgi?id=50478
457
458         * GNUmakefile.am:
459
460 2010-12-03  Simon Fraser  <simon.fraser@apple.com>
461
462         Reviewed by Dirk Schulze.
463
464         Clean up some text-related code on GraphicsContext
465         https://bugs.webkit.org/show_bug.cgi?id=50464
466
467         Save 8 bytes in GraphicsContextState by rearranging the
468         data members to reduce padding.
469
470         * platform/graphics/GraphicsContextPrivate.h:
471         (WebCore::GraphicsContextState::GraphicsContextState):
472
473 2010-12-03  Simon Fraser  <simon.fraser@apple.com>
474
475         Another Chromium build fix.
476
477         * platform/graphics/skia/GraphicsContextSkia.cpp:
478         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
479
480 2010-12-03  Simon Fraser  <simon.fraser@apple.com>
481
482         Fix Chromium build.
483
484         * platform/graphics/skia/PlatformContextSkia.h:
485
486 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
487
488         Reviewed by Andreas Kling.
489
490         [CMake] Remove WebCore_IDL_PURE_FILES
491         https://bugs.webkit.org/show_bug.cgi?id=50445
492
493         * CMakeLists.txt:
494
495 2010-12-03  Jia Pu  <jpu@apple.com>
496
497         Reviewed by Darin Adler.
498
499         Need to move all code that applies correction into correction panel callback.
500         https://bugs.webkit.org/show_bug.cgi?id=50426
501         <rdar://problem/8720832>
502
503         No new test, since there's no behavioral change.
504
505         This patch is to prepare WebKit to work with upcoming AppKit changes. The main changes are:
506         1. Moved all calls to applyCorrectionPanelInfo() into handleCorrectionPanelResult().
507         2. Added more user dictionary learning code.
508         3. Removed m_ prefix in all member variables of CorrectionPanelInfo.
509
510         * editing/CorrectionPanelInfo.h: Remove m_ prefix on member variables. Added ReasonForDismissingCorrectionPanel enum type.
511
512         * editing/Editor.cpp: Moved all calls to applyCorrectionPanelInfo() into handleCorrectionPanelResult().
513           Adopted new member variable naming in class CorrectionPanelInfo.
514         (WebCore::Editor::respondToChangedSelection):
515         (WebCore::Editor::~Editor):
516         (WebCore::Editor::markMisspellingsAfterTypingToWord):
517         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
518         (WebCore::Editor::correctionPanelTimerFired):
519         (WebCore::Editor::handleCorrectionPanelResult):
520         (WebCore::Editor::startCorrectionPanelTimer):
521         (WebCore::Editor::stopCorrectionPanelTimer):
522         (WebCore::Editor::handleCancelOperation):
523         (WebCore::Editor::dismissCorrectionPanel):
524         (WebCore::Editor::applyCorrectionPanelInfo):
525
526         * editing/Editor.h: Changed signature of dismissCorrectionPanel to use ReasonForDismissingCorrectionPanel.
527
528         * loader/EmptyClients.h: Ditto.
529         (WebCore::EmptyEditorClient::dismissCorrectionPanel):
530
531         * page/EditorClient.h: Ditto.
532
533 2010-12-03  Pavel Feldman  <pfeldman@chromium.org>
534
535         Reviewed by Yury Semikhatsky.
536
537         Web Inspector: reveal in elements panel does not switch the panel itself.
538         https://bugs.webkit.org/show_bug.cgi?id=50408
539
540         * inspector/front-end/ElementsTreeOutline.js:
541         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired.focusElement):
542         (WebInspector.ElementsTreeOutline.prototype._contextMenuEventFired):
543         * inspector/front-end/ObjectPropertiesSection.js:
544         (WebInspector.ObjectPropertyTreeElement.prototype._contextMenuEventFired):
545
546 2010-12-03  Simon Fraser  <simon.fraser@apple.com>
547
548         Reviewed by Nikolas Zimmermann.
549
550         Clean up some text-related code on GraphicsContext
551         https://bugs.webkit.org/show_bug.cgi?id=50464
552
553         Use defined types for textDrawingMode and it's associated flags.
554
555         * html/canvas/CanvasRenderingContext2D.cpp:
556         (WebCore::CanvasRenderingContext2D::drawTextInternal):
557         * platform/graphics/GraphicsContext.cpp:
558         (WebCore::GraphicsContext::textDrawingMode):
559         (WebCore::GraphicsContext::setTextDrawingMode):
560         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
561         * platform/graphics/GraphicsContext.h:
562         * platform/graphics/GraphicsContextPrivate.h:
563         (WebCore::GraphicsContextState::GraphicsContextState):
564         * platform/graphics/cairo/FontCairo.cpp:
565         (WebCore::drawGlyphsShadow):
566         (WebCore::Font::drawGlyphs):
567         * platform/graphics/cg/GraphicsContextCG.cpp:
568         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
569         * platform/graphics/chromium/FontLinux.cpp:
570         (WebCore::Font::drawGlyphs):
571         (WebCore::Font::drawComplexText):
572         * platform/graphics/gtk/FontGtk.cpp:
573         (WebCore::drawGlyphsShadow):
574         (WebCore::Font::drawComplexText):
575         * platform/graphics/mac/FontMac.mm:
576         (WebCore::Font::drawGlyphs):
577         * platform/graphics/openvg/PainterOpenVG.cpp:
578         (WebCore::PlatformPainterState::PlatformPainterState):
579         (WebCore::PainterOpenVG::textDrawingMode):
580         (WebCore::PainterOpenVG::setTextDrawingMode):
581         (WebCore::PainterOpenVG::drawText):
582         * platform/graphics/qt/FontQt.cpp:
583         (WebCore::drawTextCommon):
584         * platform/graphics/skia/PlatformContextSkia.cpp:
585         (WebCore::PlatformContextSkia::State::State):
586         (WebCore::PlatformContextSkia::getTextDrawingMode):
587         (WebCore::PlatformContextSkia::setTextDrawingMode):
588         * platform/graphics/skia/SkiaFontWin.cpp:
589         (WebCore::windowsCanHandleTextDrawing):
590         (WebCore::paintSkiaText):
591         * platform/graphics/texmap/TextureMapper.h:
592         (WebCore::TextureMapper::setTextDrawingMode):
593         (WebCore::TextureMapper::textDrawingMode):
594         (WebCore::TextureMapper::TextureMapper):
595         * platform/graphics/win/FontCGWin.cpp:
596         (WebCore::drawGDIGlyphs):
597         (WebCore::Font::drawGlyphs):
598         * platform/graphics/wince/GraphicsContextWinCE.cpp:
599         (WebCore::GraphicsContext::drawText):
600         * rendering/InlineTextBox.cpp:
601         (WebCore::updateGraphicsContext):
602         * rendering/RenderSVGResourceGradient.cpp:
603         (WebCore::RenderSVGResourceGradient::applyResource):
604         * rendering/RenderSVGResourcePattern.cpp:
605         (WebCore::RenderSVGResourcePattern::applyResource):
606         * rendering/RenderSVGResourceSolidColor.cpp:
607         (WebCore::RenderSVGResourceSolidColor::applyResource):
608         * svg/SVGFont.cpp:
609         (WebCore::Font::drawTextUsingSVGFont):
610
611 2010-12-03  Chris Rogers  <crogers@google.com>
612
613         Reviewed by Kenneth Russell.
614
615         First steps to adding web audio files to build systems
616         https://bugs.webkit.org/show_bug.cgi?id=49952
617
618         No new tests since audio API is not yet implemented.
619
620         * CMakeLists.txt:
621         * DerivedSources.make:
622         * ForwardingHeaders/wtf/Complex.h: Added.
623         * GNUmakefile.am:
624         * WebCore.gyp/WebCore.gyp:
625         * WebCore.gypi:
626         * WebCore.pri:
627         * WebCore.pro:
628         * bindings/js/JSDOMWindowCustom.cpp:
629         (WebCore::JSDOMWindow::audioContext):
630         * features.pri:
631         * page/DOMWindow.idl:
632         * platform/audio/HRTFElevation.cpp:
633
634 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
635
636         Reviewed by David Levin.
637
638         Use String::adopt in TextCodecWinCE::decode
639         https://bugs.webkit.org/show_bug.cgi?id=50319
640
641         * platform/text/wince/TextCodecWinCE.cpp:
642         (WebCore::TextCodecWinCE::decode):
643
644 2010-12-03  Brady Eidson  <beidson@apple.com>
645
646         Reviewed by Anders Carlsson.
647
648         Groundwork for <rdar://problem/7660733> and https://bugs.webkit.org/show_bug.cgi?id=50191
649         WebKit2 Authentication Support
650
651         * WebCore.exp.in:
652
653         Expose the AuthenticationClient for WK2 platforms (Windows already does this):
654         * platform/network/mac/AuthenticationChallenge.h:
655         * platform/network/mac/AuthenticationMac.mm:
656         (-[WebCoreAuthenticationClientAsChallengeSender client]):
657         (WebCore::AuthenticationChallenge::authenticationClient):
658
659         * platform/network/qt/AuthenticationChallenge.h:
660         (WebCore::AuthenticationChallenge::authenticationClient):
661
662 2010-12-03  Ryosuke Niwa  <rniwa@webkit.org>
663
664         Reviewed by Darin Adler.
665
666         REGRESSION: Crash when deleting text after textarea's value is modified on input event
667         https://bugs.webkit.org/show_bug.cgi?id=49962
668
669         The crash was caused by TypingCommand::deleteKeyPressed's reusing a typing command for
670         textarea's shadow DOM after its input event handler rewrote the value set by the typing command.
671         Because the reused typing command's ending selection was pointing at a shadow node
672         that has been detached from the document when the event handler set the new value,
673         rootEditableElement of the ending selection was null and caused the crash.
674
675         Fixed the bug by updating the ending selection of the last typing command when it differsfrom
676         that of the current selection held by the SelectionController in TypingCommand::deleteKeyPressed.
677         Also fixed similar bugs in forwardDeleteKeyPressed and insertText, and insertTextRunWithoutNewlines.
678
679         Tests: editing/input/set-value-on-input-and-delete.html
680                editing/input/set-value-on-input-and-forward-delete.html
681                editing/input/set-value-on-input-and-type-input.html
682                editing/input/set-value-on-input-and-type-textarea.html
683
684         * editing/InsertTextCommand.h: Added TypingCommand as a friend because it needs to update selection.
685         * editing/TypingCommand.cpp:
686         (WebCore::TypingCommand::deleteKeyPressed): Updates the last typing command's selection as needed.
687         (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
688         (WebCore::TypingCommand::insertText): Ditto.
689         (WebCore::TypingCommand::updateSelectionIfDifferentFromCurrentSelection): Added.
690         (WebCore::TypingCommand::insertTextRunWithoutNewlines): Updates InsertTextCommand's selection as needed.
691         * editing/TypingCommand.h:
692
693 2010-12-03  Daniel Cheng  <dcheng@chromium.org>
694
695         Reviewed by Tony Chang.
696
697         Dragging and dropping into an empty document crashes WebKit.
698         https://bugs.webkit.org/show_bug.cgi?id=48793
699
700         Remove the assert and update callers to check for a null return value.
701
702         Test: manual-tests/drop-in-empty-doc.html
703
704         * manual-tests/drop-in-empty-doc.html: Added.
705         * manual-tests/resources/drop-in-empty-doc.xhtml: Added.
706         * page/DragController.cpp:
707         (WebCore::elementUnderMouse):
708         (WebCore::DragController::tryDocumentDrag):
709         (WebCore::DragController::concludeEditDrag):
710
711 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
712
713         Reviewed by Andreas Kling.
714
715         Move Inspector generator logic into main CMakeLists.txt file
716         https://bugs.webkit.org/show_bug.cgi?id=50445
717
718         * CMakeLists.txt:
719
720 2010-12-03 Patrick Gansterer <paroga@webkit.org>
721
722         Reviewed by Andreas Kling.
723
724         Move StringWx.cpp into wtf directory
725         https://bugs.webkit.org/show_bug.cgi?id=50060
726
727         * WebCore.gypi:
728         * platform/text/wx/StringWx.cpp: Removed.
729
730 2010-12-03  Dimitri Glazkov  <dglazkov@chromium.org>
731
732         Reviewed by Darin Adler.
733
734         REGRESSION(r72783): DOMActivate fires multiple times from input type=file
735         https://bugs.webkit.org/show_bug.cgi?id=50396
736
737         Test: fast/events/shadow-boundary-crossing-2.html
738
739         * dom/EventContext.cpp: Reverted changes made in r72783.
740         * dom/EventContext.h: Ditto.
741         * dom/Node.cpp:
742         (WebCore::Node::containsIncludingShadowDOM): Added.
743         (WebCore::Node::dispatchGenericEvent): Reverted changes made in r72783.
744         * dom/Node.h: Added decl.
745         * html/HTMLLabelElement.cpp:
746         (WebCore::HTMLLabelElement::defaultEventHandler): Reverted changes made in r72783.
747
748 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
749
750         Reviewed by Andreas Kling.
751
752         Move StringBrew.cpp into wtf directory
753         https://bugs.webkit.org/show_bug.cgi?id=50058
754
755         * platform/text/brew/StringBrew.cpp: Removed.
756
757 2010-12-03  Patrick Gansterer  <paroga@webkit.org>
758
759         Reviewed by Andreas Kling.
760
761         Move StringHaiku.cpp into wtf directory
762         https://bugs.webkit.org/show_bug.cgi?id=50057
763
764         * platform/text/haiku/StringHaiku.cpp: Removed.
765
766 2010-12-03  Jessie Berlin  <jberlin@apple.com>
767
768         Reviewed by Sam Weinig.
769
770         Need a WebKit2 Equivalent of WebSecurityOrigin
771         https://bugs.webkit.org/show_bug.cgi?id=50170
772
773         * WebCore.exp.in:
774         Export the symbol for SecurityOrigin::createFromDatabaseIdentifier.
775
776 2010-12-03  Andras Becsi  <abecsi@inf.u-szeged.hu>
777
778         Unreviewed build fix after r73254.
779
780         [Qt][V8] Add missing headers to $headerIncludes rather than $implIncludes
781         because headers are needed by the generated .h files.
782
783         No new tests needed.
784
785         * bindings/scripts/CodeGeneratorV8.pm:
786
787 2010-12-03  Nikolas Zimmermann  <nzimmermann@rim.com>
788
789         Reviewed by Dirk Schulze.
790
791         1336 files in WebCore rebuild when you touch SVGNames
792         https://bugs.webkit.org/show_bug.cgi?id=42025
793
794         Remove global SVGNames.h dependency, as SVGAnimatedPropertyMacros.h included it.
795         This requires to add the SVGNames.h include to lots of cpp files.
796
797         No functional changes, thus no new tests.
798
799         * css/CSSCursorImageValue.cpp:
800         * css/CSSFontFaceSource.cpp:
801         * dom/Node.cpp:
802         * loader/cache/CachedFont.cpp:
803         * rendering/RenderSVGResourceClipper.cpp:
804         * rendering/RenderSVGResourceFilter.cpp:
805         * rendering/RenderSVGTransformableContainer.cpp:
806         * rendering/RenderSVGViewportContainer.cpp:
807         * rendering/SVGRenderTreeAsText.cpp:
808         * rendering/SVGResources.cpp:
809         * rendering/svg/RenderSVGTextPath.cpp:
810         * rendering/svg/SVGRootInlineBox.cpp:
811         * svg/SVGAnimateElement.cpp:
812         * svg/SVGAnimateMotionElement.cpp:
813         * svg/SVGAnimateTransformElement.cpp:
814         * svg/SVGDefsElement.cpp:
815         * svg/SVGFEBlendElement.cpp:
816         * svg/SVGFEDisplacementMapElement.cpp:
817         * svg/SVGFEMergeElement.cpp:
818         * svg/SVGFEMergeNodeElement.cpp:
819         * svg/SVGFEOffsetElement.cpp:
820         * svg/SVGFETileElement.cpp:
821         * svg/SVGFETurbulenceElement.cpp:
822         * svg/SVGFont.cpp:
823         * svg/SVGGElement.cpp:
824         * svg/SVGImageElement.cpp:
825         * svg/SVGLength.cpp:
826         * svg/SVGMPathElement.cpp:
827         * svg/SVGPathElement.cpp:
828         * svg/SVGPathSegList.cpp:
829         * svg/SVGStyledTransformableElement.cpp:
830         * svg/SVGSymbolElement.cpp:
831         * svg/SVGTextContentElement.cpp:
832         * svg/SVGTextElement.cpp:
833         * svg/SVGTextPathElement.cpp:
834         * svg/SVGUseElement.cpp:
835         * svg/SVGViewSpec.cpp:
836         * svg/animation/SMILTimeContainer.cpp:
837         * svg/properties/SVGAnimatedPropertyMacros.h:
838         * svg/properties/SVGPathSegListPropertyTearOff.cpp:
839
840 2010-12-02  Philippe Normand  <pnormand@igalia.com>
841
842         Reviewed by Martin Robinson.
843
844         [GStreamer] hasVideo/Audio return false until the pipeline reaches PAUSED
845         https://bugs.webkit.org/show_bug.cgi?id=50382
846
847         Go to PAUSED even if preload is deactivated. In that case don't
848         process the GStreamer state changes until commitLoad() has been
849         called. This patch also fixes hasVideo and hasAudio methods,
850         making them reactive to the playbin2 audio/video tags-changed
851         signals.
852
853         Test: media/controls-without-preload.html
854
855         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
856         (WebCore::mediaPlayerPrivateMessageCallback):
857         (WebCore::mediaPlayerPrivateVideoTagsChangedCallback):
858         (WebCore::mediaPlayerPrivateAudioTagsChangedCallback):
859         (WebCore::mediaPlayerPrivateAudioTagsChangeTimeoutCallback):
860         (WebCore::mediaPlayerPrivateVideoTagsChangeTimeoutCallback):
861         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
862         (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
863         (WebCore::MediaPlayerPrivateGStreamer::load):
864         (WebCore::MediaPlayerPrivateGStreamer::commitLoad):
865         (WebCore::MediaPlayerPrivateGStreamer::videoTagsChanged):
866         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVideoTags):
867         (WebCore::MediaPlayerPrivateGStreamer::audioTagsChanged):
868         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfAudioTags):
869         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
870         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
871         (WebCore::MediaPlayerPrivateGStreamer::hasVideo):
872         (WebCore::MediaPlayerPrivateGStreamer::hasAudio):
873         (WebCore::MediaPlayerPrivateGStreamer::loadDelayed):
874
875 2010-12-03  Nikolas Zimmermann  <nzimmermann@rim.com>
876
877         Reviewed by Dirk Schulze.
878
879         Finish splitting DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for the remaining SVGAnimated* types
880         https://bugs.webkit.org/show_bug.cgi?id=50440
881
882         Continuing the work on bug 42025: Introduce (DECLARE|DEFINE)_ANIMATED_(ANGLE|BOOLEAN|INTEGER|PRESERVEASPECTRATIO|RECT).
883         The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.
884
885         No functional changes, thus no new tests.
886
887         * svg/SVGAElement.cpp:
888         * svg/SVGAElement.h:
889         * svg/SVGAnimatedAngle.h:
890         * svg/SVGAnimatedBoolean.h:
891         * svg/SVGAnimatedInteger.h:
892         * svg/SVGAnimatedPreserveAspectRatio.h:
893         * svg/SVGAnimatedRect.h:
894         * svg/SVGAnimationElement.cpp:
895         * svg/SVGAnimationElement.h:
896         (WebCore::SVGAnimationElement::calculateDistance):
897         (WebCore::SVGAnimationElement::animationPath):
898         * svg/SVGCircleElement.cpp:
899         * svg/SVGCircleElement.h:
900         * svg/SVGClipPathElement.cpp:
901         * svg/SVGClipPathElement.h:
902         * svg/SVGCursorElement.cpp:
903         * svg/SVGCursorElement.h:
904         * svg/SVGDefsElement.cpp:
905         * svg/SVGDefsElement.h:
906         * svg/SVGEllipseElement.cpp:
907         * svg/SVGEllipseElement.h:
908         * svg/SVGFEConvolveMatrixElement.cpp:
909         * svg/SVGFEConvolveMatrixElement.h:
910         * svg/SVGFEImageElement.cpp:
911         * svg/SVGFEImageElement.h:
912         * svg/SVGFETurbulenceElement.cpp:
913         * svg/SVGFETurbulenceElement.h:
914         * svg/SVGFilterElement.cpp:
915         * svg/SVGFilterElement.h:
916         * svg/SVGFilterPrimitiveStandardAttributes.h:
917         * svg/SVGFontElement.cpp:
918         (WebCore::SVGFontElement::firstMissingGlyphElement):
919         (WebCore::SVGFontElement::ensureGlyphCache):
920         * svg/SVGFontElement.h:
921         * svg/SVGForeignObjectElement.cpp:
922         * svg/SVGForeignObjectElement.h:
923         * svg/SVGGElement.cpp:
924         * svg/SVGGElement.h:
925         (WebCore::SVGGElement::isShadowTreeContainerElement):
926         (WebCore::SVGGElement::isValid):
927         * svg/SVGGradientElement.cpp:
928         * svg/SVGGradientElement.h:
929         * svg/SVGImageElement.cpp:
930         * svg/SVGImageElement.h:
931         * svg/SVGLineElement.cpp:
932         * svg/SVGLineElement.h:
933         * svg/SVGLinearGradientElement.h:
934         * svg/SVGMPathElement.cpp:
935         * svg/SVGMPathElement.h:
936         * svg/SVGMarkerElement.cpp:
937         * svg/SVGMarkerElement.h:
938         * svg/SVGMaskElement.cpp:
939         * svg/SVGMaskElement.h:
940         * svg/SVGPathElement.cpp:
941         * svg/SVGPathElement.h:
942         * svg/SVGPatternElement.cpp:
943         * svg/SVGPatternElement.h:
944         * svg/SVGPolyElement.cpp:
945         * svg/SVGPolyElement.h:
946         * svg/SVGRadialGradientElement.h:
947         * svg/SVGRectElement.cpp:
948         * svg/SVGRectElement.h:
949         * svg/SVGSVGElement.cpp:
950         (WebCore::SVGSVGElement::contentScriptType):
951         (WebCore::SVGSVGElement::contentStyleType):
952         (WebCore::SVGSVGElement::parseMappedAttribute):
953         * svg/SVGSVGElement.h:
954         * svg/SVGScriptElement.cpp:
955         * svg/SVGScriptElement.h:
956         * svg/SVGSwitchElement.cpp:
957         * svg/SVGSwitchElement.h:
958         (WebCore::SVGSwitchElement::isValid):
959         * svg/SVGSymbolElement.cpp:
960         * svg/SVGSymbolElement.h:
961         (WebCore::SVGSymbolElement::rendererIsNeeded):
962         * svg/SVGTextContentElement.cpp:
963         * svg/SVGTextContentElement.h:
964         * svg/SVGUseElement.cpp:
965         * svg/SVGUseElement.h:
966         * svg/SVGViewElement.cpp:
967         * svg/SVGViewElement.h:
968         (WebCore::SVGViewElement::viewTarget):
969         (WebCore::SVGViewElement::rendererIsNeeded):
970         * svg/SVGViewSpec.cpp:
971         * svg/SVGViewSpec.h:
972         (WebCore::SVGViewSpec::transform):
973         (WebCore::SVGViewSpec::viewTargetString):
974         (WebCore::SVGViewSpec::contextElement):
975         * svg/properties/SVGAnimatedPropertyMacros.h:
976
977 2010-12-03  Noel Gordon  <noel.gordon@gmail.com>
978
979         Reviewed by Darin Fisher.
980
981         [chromium] PNG encoder leaks memory on png_write_row errors.
982         https://bugs.webkit.org/show_bug.cgi?id=50439
983
984         Move the creation of needed C++ objects before the setjmp() point so
985         those objects have their destructors called if libpng errors invoke
986         the setjmp() return path.
987    
988         Other minor cleanup: use the skia bitmap locker class, and remove the
989         PNGDestroyer class - instead directly call png_destroy_write_struct()
990         at each of the encodeImpl() return points.
991
992         No change in behaviour, so no new tests.
993
994         * platform/image-encoders/skia/PNGImageEncoder.cpp:
995         (WebCore::encodeImpl):
996         (WebCore::PNGImageEncoder::encode):
997
998 2010-12-02  Philippe Normand  <pnormand@igalia.com>
999
1000         Reviewed by Eric Carlson.
1001
1002         Theme not updated when MediaPlayer m_private engine changes
1003         https://bugs.webkit.org/show_bug.cgi?id=50228
1004
1005         Trigger a new rendering of the media element when the private
1006         media-player backend is updated.
1007
1008         * html/HTMLMediaElement.cpp:
1009         (WebCore::HTMLMediaElement::mediaPlayerEngineUpdated):
1010         * html/HTMLMediaElement.h:
1011         * platform/graphics/MediaPlayer.cpp:
1012         (WebCore::MediaPlayer::MediaPlayer):
1013         (WebCore::MediaPlayer::load):
1014         * platform/graphics/MediaPlayer.h:
1015         (WebCore::MediaPlayerClient::mediaPlayerEngineUpdated):
1016
1017 2010-12-03  Yonathan Randolph  <yonathan@gmail.com>
1018
1019         Reviewed by Alexey Proskuryakov.
1020
1021         XPath lexer misinterprets expression starting with "div".
1022         https://bugs.webkit.org/show_bug.cgi?id=50366
1023
1024         * xml/XPathParser.cpp:
1025         * xml/XPathParser.h:
1026         (WebCore::XPath::Parser::isOperatorContext): removed (renamed)
1027         (WebCore::XPath::Parser::isBinaryOperatorContext): added
1028
1029 2010-12-02  Rob Buis  <rwlbuis@gmail.com>
1030
1031         Reviewed by Alexey Proskuryakov.
1032
1033         CSS 2.1 failure: at-import-*
1034         https://bugs.webkit.org/show_bug.cgi?id=47153
1035
1036         Fix at-import-010.htm by only setting m_allowImportRules
1037         to false when creating valid style or page rules.
1038  
1039          Test: css2.1/t040105-import-10-b.html
1040
1041         * css/CSSParser.cpp:
1042         (WebCore::CSSParser::createStyleRule):
1043
1044 2010-12-02  Aaron Boodman  <aa@chromium.org>
1045
1046         Reviewed by David Hyatt.
1047
1048         Reduce the number of cases where we end up with a stale value for
1049         minimumPreferredLogicalWidth(). This isn't a complete fix, but fixes a
1050         large number of cases.
1051
1052         RenderObject::minimumPreferredLogicalWidth() sometimes reports wrong value.
1053         https://bugs.webkit.org/show_bug.cgi?id=50119
1054
1055         * rendering/RenderBox.cpp:
1056         (WebCore::RenderBox::styleDidChange):
1057
1058 2010-12-02  Gregg Tavares  <gman@google.com>
1059
1060         Reviewed by David Levin.
1061
1062         Need to initialize destination variables before calling GL
1063         https://bugs.webkit.org/show_bug.cgi?id=50048
1064
1065         No new tests because no change in functionality.
1066
1067         * html/canvas/WebGLFramebuffer.cpp:
1068         (WebCore::WebGLFramebuffer::initializeRenderbuffers):
1069         * html/canvas/WebGLProgram.cpp:
1070         (WebCore::WebGLProgram::cacheActiveAttribLocations):
1071         * html/canvas/WebGLRenderingContext.cpp:
1072         (WebCore::WebGLRenderingContext::getAttachedShaders):
1073         (WebCore::WebGLRenderingContext::getBufferParameter):
1074         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
1075         (WebCore::WebGLRenderingContext::getBooleanParameter):
1076         (WebCore::WebGLRenderingContext::getFloatParameter):
1077         (WebCore::WebGLRenderingContext::getLongParameter):
1078         (WebCore::WebGLRenderingContext::getUnsignedLongParameter):
1079         * platform/graphics/chromium/LayerChromium.cpp:
1080         (WebCore::loadShader):
1081         (WebCore::LayerChromium::createShaderProgram):
1082         * platform/graphics/chromium/LayerRendererChromium.cpp:
1083         (WebCore::LayerRendererChromium::initializeSharedObjects):
1084         * platform/graphics/gpu/DrawingBuffer.cpp:
1085         (WebCore::DrawingBuffer::reset):
1086         * platform/graphics/gpu/Shader.cpp:
1087         (WebCore::Shader::loadProgram):
1088
1089 2010-12-02  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1090
1091         Reviewed by Andreas Kling.
1092
1093         [Qt] Enable Web Timing for Qt
1094         https://bugs.webkit.org/show_bug.cgi?id=42433
1095
1096         * features.pri: Enable Web Timing for trunk (but not yet for
1097           production)
1098
1099 2010-12-02  Andy Estes  <aestes@apple.com>
1100
1101         Rubber-stamped by Mark Rowe.
1102
1103         Update bindings test results with new GObject results.
1104
1105         * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
1106         (WebKit::kit):
1107         * bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h:
1108         * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
1109         (WebKit::kit):
1110         * bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h:
1111         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp:
1112         (WebKit::kit):
1113         * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h:
1114         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
1115         (WebKit::kit):
1116         (webkit_dom_test_obj_obj_method):
1117         (webkit_dom_test_obj_obj_method_with_args):
1118         (webkit_dom_test_obj_method_that_requires_all_args):
1119         (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
1120         (webkit_dom_test_obj_with_script_state_obj):
1121         (webkit_dom_test_obj_with_script_state_obj_exception):
1122         (webkit_dom_test_obj_get_read_only_test_obj_attr):
1123         (webkit_dom_test_obj_get_test_obj_attr):
1124         (webkit_dom_test_obj_get_xml_obj_attr):
1125         * bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h:
1126
1127 2010-12-02  Simon Fraser  <simon.fraser@apple.com>
1128
1129         Revert r73217 and r73227 because of continued bustage.
1130
1131         * WebCore.xcodeproj/project.pbxproj:
1132         * platform/graphics/GraphicsLayer.h:
1133         (WebCore::GraphicsLayer::nativeLayer):
1134         * platform/graphics/ca/PlatformCAAnimation.h: Removed.
1135         * platform/graphics/ca/PlatformCALayer.h: Removed.
1136         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: Removed.
1137         * platform/graphics/ca/mac/PlatformCALayerMac.mm: Removed.
1138         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1139         (WebCore::GraphicsLayerChromium::nativeLayer):
1140         * platform/graphics/chromium/GraphicsLayerChromium.h:
1141         * platform/graphics/mac/GraphicsLayerMac.h: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.h.
1142         (WebCore::GraphicsLayerMac::hasContentsLayer):
1143         (WebCore::GraphicsLayerMac::primaryLayer):
1144         (WebCore::GraphicsLayerMac::isReplicatedRootClone):
1145         (WebCore::GraphicsLayerMac::primaryLayerClones):
1146         (WebCore::GraphicsLayerMac::animationIsRunning):
1147         (WebCore::GraphicsLayerMac::contentsLayer):
1148         (WebCore::GraphicsLayerMac::ReplicaState::ReplicaState):
1149         (WebCore::GraphicsLayerMac::ReplicaState::push):
1150         (WebCore::GraphicsLayerMac::ReplicaState::setBranchType):
1151         (WebCore::GraphicsLayerMac::ReplicaState::pop):
1152         (WebCore::GraphicsLayerMac::ReplicaState::depth):
1153         (WebCore::GraphicsLayerMac::ReplicaState::replicaDepth):
1154         (WebCore::GraphicsLayerMac::hasCloneLayers):
1155         (WebCore::GraphicsLayerMac::LayerPropertyAnimation::LayerPropertyAnimation):
1156         (WebCore::GraphicsLayerMac::AnimationProcessingAction::AnimationProcessingAction):
1157         * platform/graphics/mac/GraphicsLayerMac.mm: Renamed from WebCore/platform/graphics/ca/GraphicsLayerCA.cpp.
1158         (WebCore::currentTimeToMediaTime):
1159         (WebCore::mediaTimeToCurrentTime):
1160         (-[WebAnimationDelegate animationDidStart:]):
1161         (-[WebAnimationDelegate WebCore::]):
1162         (-[WebAnimationDelegate setLayer:WebCore::]):
1163         (WebCore::copyTransform):
1164         (WebCore::getTransformFunctionValue):
1165         (WebCore::getValueFunctionNameForTransformOperation):
1166         (WebCore::propertyIdToString):
1167         (WebCore::animationIdentifier):
1168         (WebCore::getCAMediaTimingFunction):
1169         (WebCore::setLayerBorderColor):
1170         (WebCore::clearBorderColor):
1171         (WebCore::setLayerBackgroundColor):
1172         (WebCore::clearLayerBackgroundColor):
1173         (WebCore::safeSetSublayers):
1174         (WebCore::caValueFunctionSupported):
1175         (WebCore::forceSoftwareAnimation):
1176         (WebCore::nullActionsDictionary):
1177         (WebCore::animationHasStepsTimingFunction):
1178         (WebCore::GraphicsLayer::create):
1179         (WebCore::GraphicsLayerMac::GraphicsLayerMac):
1180         (WebCore::GraphicsLayerMac::~GraphicsLayerMac):
1181         (WebCore::GraphicsLayerMac::setName):
1182         (WebCore::GraphicsLayerMac::nativeLayer):
1183         (WebCore::GraphicsLayerMac::setChildren):
1184         (WebCore::GraphicsLayerMac::addChild):
1185         (WebCore::GraphicsLayerMac::addChildAtIndex):
1186         (WebCore::GraphicsLayerMac::addChildBelow):
1187         (WebCore::GraphicsLayerMac::addChildAbove):
1188         (WebCore::GraphicsLayerMac::replaceChild):
1189         (WebCore::GraphicsLayerMac::removeFromParent):
1190         (WebCore::GraphicsLayerMac::setMaskLayer):
1191         (WebCore::GraphicsLayerMac::setReplicatedLayer):
1192         (WebCore::GraphicsLayerMac::setReplicatedByLayer):
1193         (WebCore::GraphicsLayerMac::setPosition):
1194         (WebCore::GraphicsLayerMac::setAnchorPoint):
1195         (WebCore::GraphicsLayerMac::setSize):
1196         (WebCore::GraphicsLayerMac::setTransform):
1197         (WebCore::GraphicsLayerMac::setChildrenTransform):
1198         (WebCore::GraphicsLayerMac::moveOrCopyLayerAnimation):
1199         (WebCore::GraphicsLayerMac::moveOrCopyAnimationsForProperty):
1200         (WebCore::GraphicsLayerMac::setPreserves3D):
1201         (WebCore::GraphicsLayerMac::setMasksToBounds):
1202         (WebCore::GraphicsLayerMac::setDrawsContent):
1203         (WebCore::GraphicsLayerMac::setBackgroundColor):
1204         (WebCore::GraphicsLayerMac::clearBackgroundColor):
1205         (WebCore::GraphicsLayerMac::setContentsOpaque):
1206         (WebCore::GraphicsLayerMac::setBackfaceVisibility):
1207         (WebCore::GraphicsLayerMac::setOpacity):
1208         (WebCore::GraphicsLayerMac::setNeedsDisplay):
1209         (WebCore::GraphicsLayerMac::setNeedsDisplayInRect):
1210         (WebCore::GraphicsLayerMac::setContentsNeedsDisplay):
1211         (WebCore::GraphicsLayerMac::setContentsRect):
1212         (WebCore::GraphicsLayerMac::addAnimation):
1213         (WebCore::GraphicsLayerMac::pauseAnimation):
1214         (WebCore::GraphicsLayerMac::removeAnimation):
1215         (WebCore::GraphicsLayerMac::animationDidStart):
1216         (WebCore::GraphicsLayerMac::setContentsToImage):
1217         (WebCore::GraphicsLayerMac::setContentsToMedia):
1218         (WebCore::GraphicsLayerMac::didDisplay):
1219         (WebCore::GraphicsLayerMac::syncCompositingState):
1220         (WebCore::GraphicsLayerMac::syncCompositingStateForThisLayerOnly):
1221         (WebCore::GraphicsLayerMac::recursiveCommitChanges):
1222         (WebCore::GraphicsLayerMac::commitLayerChangesBeforeSublayers):
1223         (WebCore::GraphicsLayerMac::commitLayerChangesAfterSublayers):
1224         (WebCore::GraphicsLayerMac::updateLayerNames):
1225         (WebCore::GraphicsLayerMac::updateSublayerList):
1226         (WebCore::GraphicsLayerMac::updateLayerPosition):
1227         (WebCore::GraphicsLayerMac::updateLayerSize):
1228         (WebCore::GraphicsLayerMac::updateAnchorPoint):
1229         (WebCore::GraphicsLayerMac::updateTransform):
1230         (WebCore::GraphicsLayerMac::updateChildrenTransform):
1231         (WebCore::GraphicsLayerMac::updateMasksToBounds):
1232         (WebCore::GraphicsLayerMac::updateContentsOpaque):
1233         (WebCore::GraphicsLayerMac::updateBackfaceVisibility):
1234         (WebCore::GraphicsLayerMac::updateStructuralLayer):
1235         (WebCore::GraphicsLayerMac::ensureStructuralLayer):
1236         (WebCore::GraphicsLayerMac::structuralLayerPurpose):
1237         (WebCore::GraphicsLayerMac::updateLayerDrawsContent):
1238         (WebCore::GraphicsLayerMac::updateLayerBackgroundColor):
1239         (WebCore::GraphicsLayerMac::updateContentsImage):
1240         (WebCore::GraphicsLayerMac::updateContentsMediaLayer):
1241         (WebCore::GraphicsLayerMac::updateContentsCanvasLayer):
1242         (WebCore::GraphicsLayerMac::updateContentsRect):
1243         (WebCore::GraphicsLayerMac::updateMaskLayer):
1244         (WebCore::GraphicsLayerMac::updateReplicatedLayers):
1245         (WebCore::GraphicsLayerMac::ReplicaState::cloneID):
1246         (WebCore::GraphicsLayerMac::replicatedLayerRoot):
1247         (WebCore::GraphicsLayerMac::updateLayerAnimations):
1248         (WebCore::GraphicsLayerMac::setCAAnimationOnLayer):
1249         (WebCore::bug7311367Workaround):
1250         (WebCore::GraphicsLayerMac::removeCAAnimationFromLayer):
1251         (WebCore::copyAnimationProperties):
1252         (WebCore::GraphicsLayerMac::pauseCAAnimationOnLayer):
1253         (WebCore::GraphicsLayerMac::setContentsToCanvas):
1254         (WebCore::GraphicsLayerMac::repaintLayerDirtyRects):
1255         (WebCore::GraphicsLayerMac::updateContentsNeedsDisplay):
1256         (WebCore::GraphicsLayerMac::createAnimationFromKeyframes):
1257         (WebCore::GraphicsLayerMac::createTransformAnimationsFromKeyframes):
1258         (WebCore::GraphicsLayerMac::createBasicAnimation):
1259         (WebCore::GraphicsLayerMac::createKeyframeAnimation):
1260         (WebCore::GraphicsLayerMac::setupAnimation):
1261         (WebCore::GraphicsLayerMac::timingFunctionForAnimationValue):
1262         (WebCore::GraphicsLayerMac::setAnimationEndpoints):
1263         (WebCore::GraphicsLayerMac::setAnimationKeyframes):
1264         (WebCore::GraphicsLayerMac::setTransformAnimationEndpoints):
1265         (WebCore::GraphicsLayerMac::setTransformAnimationKeyframes):
1266         (WebCore::GraphicsLayerMac::suspendAnimations):
1267         (WebCore::GraphicsLayerMac::resumeAnimations):
1268         (WebCore::GraphicsLayerMac::hostLayerForSublayers):
1269         (WebCore::GraphicsLayerMac::layerForSuperlayer):
1270         (WebCore::GraphicsLayerMac::animatedLayer):
1271         (WebCore::GraphicsLayerMac::animatedLayerClones):
1272         (WebCore::GraphicsLayerMac::platformLayer):
1273         (WebCore::GraphicsLayerMac::setDebugBackgroundColor):
1274         (WebCore::GraphicsLayerMac::setDebugBorder):
1275         (WebCore::GraphicsLayerMac::constrainedSize):
1276         (WebCore::GraphicsLayerMac::requiresTiledLayer):
1277         (WebCore::GraphicsLayerMac::swapFromOrToTiledLayer):
1278         (WebCore::GraphicsLayerMac::defaultContentsOrientation):
1279         (WebCore::GraphicsLayerMac::updateContentsTransform):
1280         (WebCore::GraphicsLayerMac::setupContentsLayer):
1281         (WebCore::GraphicsLayerMac::findOrMakeClone):
1282         (WebCore::GraphicsLayerMac::ensureCloneLayers):
1283         (WebCore::GraphicsLayerMac::removeCloneLayers):
1284         (WebCore::GraphicsLayerMac::positionForCloneRootLayer):
1285         (WebCore::GraphicsLayerMac::propagateLayerChangeToReplicas):
1286         (WebCore::GraphicsLayerMac::fetchCloneLayers):
1287         (WebCore::GraphicsLayerMac::cloneLayer):
1288         (WebCore::GraphicsLayerMac::setOpacityInternal):
1289         (WebCore::GraphicsLayerMac::updateOpacityOnLayer):
1290         (WebCore::GraphicsLayerMac::noteSublayersChanged):
1291         (WebCore::GraphicsLayerMac::noteLayerPropertyChanged):
1292         * platform/graphics/mac/WebLayer.h:
1293         * platform/graphics/mac/WebLayer.mm:
1294         (-[WebLayer initWithLayer:]):
1295         (-[WebLayer setNeedsDisplay]):
1296         (-[WebLayer setNeedsDisplayInRect:]):
1297         (-[WebLayer display]):
1298         (-[WebLayer drawInContext:]):
1299         (-[WebLayer setLayerOwner:]):
1300         (-[WebLayer layerOwner]):
1301         * platform/graphics/mac/WebTiledLayer.h:
1302         * platform/graphics/mac/WebTiledLayer.mm:
1303         (-[WebTiledLayer initWithLayer:]):
1304         (-[WebTiledLayer setNeedsDisplay]):
1305         (-[WebTiledLayer setNeedsDisplayInRect:]):
1306         (-[WebTiledLayer display]):
1307         (-[WebTiledLayer drawInContext:]):
1308         (-[WebTiledLayer setLayerOwner:]):
1309         (-[WebTiledLayer layerOwner]):
1310         * platform/graphics/qt/GraphicsLayerQt.cpp:
1311         (WebCore::GraphicsLayerQtImpl::flushChanges):
1312         (WebCore::GraphicsLayerQt::nativeLayer):
1313         * platform/graphics/qt/GraphicsLayerQt.h:
1314         * platform/graphics/win/GraphicsLayerCACF.cpp:
1315         (WebCore::GraphicsLayerCACF::nativeLayer):
1316         * platform/graphics/win/GraphicsLayerCACF.h:
1317
1318 2010-12-02  Noel Gordon  <noel.gordon@gmail.com>
1319
1320         Reviewed by David Levin.
1321         [chromium] Remove dead code from PNG encoder
1322         https://bugs.webkit.org/show_bug.cgi?id=50377
1323
1324         Also webkit style the PNG encoder files.
1325
1326         No change in behaviour, so no new tests.
1327
1328         * platform/image-encoders/skia/PNGImageEncoder.cpp:
1329         (WebCore::encodeImpl):
1330         (WebCore::PNGImageEncoder::encode):
1331         * platform/image-encoders/skia/PNGImageEncoder.h:
1332
1333 2010-12-02  Yuta Kitamura  <yutak@chromium.org>
1334
1335         Reviewed by Alexey Proskuryakov.
1336
1337         An attempt to fix Chromium's clang build.
1338
1339         Implement (non-EventListener) marquee IDL attributes from HTML5.
1340         https://bugs.webkit.org/show_bug.cgi?id=49786
1341
1342         * rendering/style/RenderStyle.h:
1343         (WebCore::InheritedFlags::initialMarqueeSpeed):
1344
1345 2010-12-02  Mikhail Naganov  <mnaganov@chromium.org>
1346
1347         Reviewed by Pavel Feldman.
1348
1349         Web Inspector: Fix heap snapshots loading. Loading is now
1350         conducted by the Profiles panel which prevents accidental
1351         simultaneous attempts to load the same profile several times in
1352         parallel.
1353
1354         https://bugs.webkit.org/show_bug.cgi?id=50427
1355
1356         * inspector/front-end/HeapSnapshotView.js:
1357         (WebInspector.HeapSnapshotView.prototype._loadProfile):
1358         (WebInspector.HeapSnapshotView.prototype.processLoadedSnapshot):
1359         * inspector/front-end/ProfilesPanel.js:
1360         (WebInspector.ProfilesPanel.prototype.loadHeapSnapshot):
1361         (WebInspector.ProfilesPanel.prototype.addHeapSnapshotChunk):
1362         (WebInspector.ProfilesPanel.prototype.finishHeapSnapshot):
1363
1364 2010-12-02  Chris Marrin  <cmarrin@apple.com>
1365
1366         Reviewed by Simon Fraser.
1367
1368         Fix Leopard build broken by http://trac.webkit.org/changeset/73217
1369
1370         * platform/graphics/ca/GraphicsLayerCA.cpp:
1371         (WebCore::getTransformFunctionValue):
1372         (WebCore::GraphicsLayerCA::updateContentsTransform):
1373         * platform/graphics/ca/PlatformCALayer.h:
1374         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
1375         (PlatformCAAnimation::valueFunction):
1376         (PlatformCAAnimation::setValueFunction):
1377         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1378         (PlatformCALayer::PlatformCALayer):
1379         (PlatformCALayer::anchorPoint):
1380         (PlatformCALayer::setAnchorPoint):
1381         (PlatformCALayer::contentsTransform):
1382         (PlatformCALayer::setContentsTransform):
1383         (PlatformCALayer::isGeometryFlipped):
1384         (PlatformCALayer::setGeometryFlipped):
1385         (PlatformCALayer::setMinificationFilter):
1386         (PlatformCALayer::setMagnificationFilter):
1387
1388 2010-12-02  Dan Bernstein  <mitz@apple.com>
1389
1390         Reviewed by Dave Hyatt.
1391
1392         CSS support for the text-emphasis properties
1393         https://bugs.webkit.org/show_bug.cgi?id=48539
1394
1395         Test: fast/css/parsing-text-emphasis.html
1396
1397         * css/CSSComputedStyleDeclaration.cpp:
1398         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added text-emphasis-color,
1399         text-emphasis-position and text-emphasis-style. Left the text-emphasis shorthand unsupported.
1400         * css/CSSParser.cpp:
1401         (WebCore::CSSParser::parseValue): Parse the properties.
1402         (WebCore::CSSParser::parseTextEmphasisStyle): Added.
1403         * css/CSSParser.h:
1404         * css/CSSPrimitiveValueMappings.h:
1405         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added TextEmphasisPosition, TextEmphasisFill
1406         and TextEmphasisMark mappings.
1407         (WebCore::CSSPrimitiveValue::operator TextEmphasisPosition): Added.
1408         (WebCore::CSSPrimitiveValue::operator TextEmphasisFill): Added.
1409         (WebCore::CSSPrimitiveValue::operator TextEmphasisMark): Added.
1410         * css/CSSPropertyLonghand.cpp:
1411         (WebCore::initShorthandMap): Added the text-emphasis shorthand.
1412         * css/CSSPropertyNames.in: Added -webkit-text-emphasis, -webkit-text-emphasis-color,
1413         -webkit-text-emphasis-position, and -webkit-text-emphasis-style.
1414         * css/CSSStyleSelector.cpp:
1415         (WebCore::isValidVisitedLinkProperty): Added text-emphasis-color.
1416         (WebCore::CSSStyleSelector::applyProperty): Handle the properties.
1417         * css/CSSValueKeywords.in: Added 'over' and 'under' for text-emphasis-position. Added 'dot',
1418         'double-circle', 'triangle', 'sesame', 'filled' and 'open' for text-emphasis-style.
1419         * rendering/style/RenderStyle.cpp:
1420         (WebCore::RenderStyle::colorIncludingFallback): Handle text-emphasis-color.
1421         (WebCore::RenderStyle::textEmphasisMark): Added. Maps the fake 'auto' value to 'dot' or
1422         'sesame' based on writing direction.
1423         * rendering/style/RenderStyle.h: Added accessors.
1424         (WebCore::InheritedFlags::textEmphasisFill):
1425         (WebCore::InheritedFlags::textEmphasisCustomMark):
1426         (WebCore::InheritedFlags::textEmphasisPosition):
1427         (WebCore::InheritedFlags::setTextEmphasisColor):
1428         (WebCore::InheritedFlags::setTextEmphasisFill):
1429         (WebCore::InheritedFlags::setTextEmphasisMark):
1430         (WebCore::InheritedFlags::setTextEmphasisCustomMark):
1431         (WebCore::InheritedFlags::setTextEmphasisPosition):
1432         (WebCore::InheritedFlags::initialTextEmphasisColor):
1433         (WebCore::InheritedFlags::initialTextEmphasisFill):
1434         (WebCore::InheritedFlags::initialTextEmphasisMark):
1435         (WebCore::InheritedFlags::initialTextEmphasisCustomMark):
1436         (WebCore::InheritedFlags::initialTextEmphasisPosition):
1437         (WebCore::InheritedFlags::textEmphasisColor):
1438         * rendering/style/RenderStyleConstants.h:
1439         * rendering/style/StyleRareInheritedData.cpp:
1440         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
1441         (WebCore::StyleRareInheritedData::operator==):
1442         * rendering/style/StyleRareInheritedData.h:
1443
1444 2010-12-02  Chris Marrin  <cmarrin@apple.com>
1445
1446         Reviewed by Simon Fraser.
1447
1448         Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
1449         https://bugs.webkit.org/show_bug.cgi?id=49388
1450
1451         Replaced GraphicsLayerMac with GraphicsLayerCA. GraphicsLayerCA is essentially 
1452         identical to GraphicsLayerMac, but replaces all the CoreAnimation specific calls 
1453         with calls to PlatformCALayer and PlatformCAAnimation. This makes GraphicsLayerCA 
1454         platform neutral as long as implementations of those two classes are available. 
1455         Added implementations in PlatformCALayerMac and PlatformCAAnimationMac. Also got 
1456         rid of GraphicsLayer::nativeLayer() and replaced it with GraphicsLayer::platformLayer() 
1457         to avoid confusion since both names were used to refer to the same thing. 
1458
1459         This patch is only for Mac. Windows implementation has not changed.
1460
1461         * WebCore.xcodeproj/project.pbxproj:
1462         * platform/graphics/GraphicsLayer.h:
1463         * platform/graphics/ca: Added.
1464         * platform/graphics/ca/GraphicsLayerCA.cpp: Added.
1465         * platform/graphics/ca/GraphicsLayerCA.h: Added.
1466         * platform/graphics/ca/PlatformCAAnimation.h: Added.
1467         * platform/graphics/ca/PlatformCALayer.h: Added.
1468         * platform/graphics/ca/mac: Added.
1469         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm: Added.
1470         * platform/graphics/ca/mac/PlatformCALayerMac.mm: Added.
1471         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1472         * platform/graphics/chromium/GraphicsLayerChromium.h:
1473         * platform/graphics/mac/GraphicsLayerMac.h: Removed.
1474         * platform/graphics/mac/GraphicsLayerMac.mm: Removed.
1475         * platform/graphics/mac/WebLayer.h:
1476         * platform/graphics/mac/WebLayer.mm:
1477         * platform/graphics/mac/WebTiledLayer.h:
1478         * platform/graphics/mac/WebTiledLayer.mm:
1479         * platform/graphics/qt/GraphicsLayerQt.cpp:
1480         * platform/graphics/qt/GraphicsLayerQt.h:
1481         * platform/graphics/win/GraphicsLayerCACF.cpp:
1482         * platform/graphics/win/GraphicsLayerCACF.h:
1483
1484 2010-12-02  Joseph Pecoraro  <joepeck@webkit.org>
1485
1486         Reviewed by Darin Adler.
1487
1488         Update ResourceLoaderSet Enumeration
1489         https://bugs.webkit.org/show_bug.cgi?id=50405
1490
1491         Use size_t when working with Vectors and when comparing between size_t types.
1492
1493         * loader/DocumentLoader.cpp:
1494         (WebCore::cancelAll):
1495         (WebCore::setAllDefersLoading):
1496
1497 2010-12-02  Jian Li  <jianli@chromium.org>
1498
1499         Reviewed by Kenneth Russell.
1500
1501         Integer calculation issues in DataView constructor
1502         https://bugs.webkit.org/show_bug.cgi?id=50354
1503
1504         Test: fast/canvas/webgl/data-view-crash.html
1505
1506         * html/canvas/DataView.cpp:
1507         (WebCore::DataView::create):
1508
1509 2010-12-02  Patrick Gansterer  <paroga@webkit.org>
1510
1511         Reviewed by Darin Adler.
1512
1513         Add AtomicString::fromUTF8
1514         https://bugs.webkit.org/show_bug.cgi?id=45594
1515
1516         Use AtomicString::fromUTF8 directly in the libxml2 parser.
1517
1518         * dom/XMLDocumentParserLibxml2.cpp:
1519         (WebCore::toAtomicString):
1520
1521 2010-12-02  Andy Estes  <aestes@apple.com>
1522
1523         Fix the Qt Linux Release minimal build.
1524
1525         * html/HTMLMarqueeElement.cpp: Include ExceptionCode.h
1526
1527 2010-12-02  Joseph Pecoraro  <joepeck@webkit.org>
1528
1529         Reviewed by Darin Adler.
1530
1531         Update ResourceLoaderSet Enumeration
1532         https://bugs.webkit.org/show_bug.cgi?id=50405
1533
1534         * loader/DocumentLoader.cpp:
1535         (WebCore::cancelAll): instead of copying the HashSet, use copyToVector.
1536         (WebCore::setAllDefersLoading): instead of copying the HashSet, use copyToVector.
1537
1538 2010-12-02  Andy Estes  <aestes@apple.com>
1539
1540         Reviewed by Darin Adler.
1541
1542         Implement (non-EventListener) marquee IDL attributes from HTML5.
1543         https://bugs.webkit.org/show_bug.cgi?id=49786
1544
1545         Test: fast/html/marquee-element.html
1546
1547         * html/HTMLMarqueeElement.cpp:
1548         (WebCore::HTMLMarqueeElement::scrollAmount): If the content attribute
1549         can be converted to a signed integer and is >= 0, return it.
1550         Otherwise, return the default scrollAmount value.
1551         (WebCore::HTMLMarqueeElement::setScrollAmount): Update the content
1552         attribute if it is >= 0. Otherwise, raise INDEX_SIZE_ERR.
1553         (WebCore::HTMLMarqueeElement::scrollDelay): Same as scrollAmount.
1554         (WebCore::HTMLMarqueeElement::setScrollDelay): Same as setScrollAmount.
1555         (WebCore::HTMLMarqueeElement::loop): If the content attribute can be
1556         converted to a signed integer and is greater than 0 or equal to -1,
1557         return it. Otherwise, return the default loop value.
1558         (WebCore::HTMLMarqueeElement::setLoop): Update the content attribute if
1559         it is greater than 0 or equal to -1. Otherwise, raise INDEX_SIZE_ERR.
1560         * html/HTMLMarqueeElement.h:
1561         * html/HTMLMarqueeElement.idl: Update the IDL to match what is in HTML5.
1562         * rendering/style/RenderStyle.h:
1563         (WebCore::InheritedFlags::initialMarqueeSpeed):
1564
1565 2010-12-02  Patrick Gansterer  <paroga@webkit.org>
1566
1567         Reviewed by Andreas Kling.
1568
1569         [OpenVG] Remove "current path" of GraphicsContext
1570         https://bugs.webkit.org/show_bug.cgi?id=50294
1571
1572         * platform/graphics/GraphicsContext.h:
1573         * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
1574         (WebCore::GraphicsContext::fillPath):
1575         (WebCore::GraphicsContext::strokePath):
1576         (WebCore::GraphicsContext::clipPath):
1577         * platform/graphics/openvg/PainterOpenVG.cpp:
1578         (WebCore::PainterOpenVG::PainterOpenVG):
1579         (WebCore::PainterOpenVG::~PainterOpenVG):
1580         (WebCore::PainterOpenVG::drawPath):
1581         * platform/graphics/openvg/PainterOpenVG.h:
1582
1583 2010-12-02  Patrick Gansterer  <paroga@webkit.org>
1584
1585         Reviewed by Andreas Kling.
1586
1587         [WINCE] Remove "current path" of GraphicsContext
1588         https://bugs.webkit.org/show_bug.cgi?id=50284
1589
1590         * platform/graphics/GraphicsContext.h:
1591         * platform/graphics/wince/GraphicsContextWinCE.cpp:
1592         (WebCore::GraphicsContext::fillPath):
1593         (WebCore::GraphicsContext::strokePath):
1594
1595 2010-12-02  Johnny Ding  <jnd@chromium.org>
1596
1597         Reviewed by Adam Barth.
1598
1599         Set the right gesture status for URL redirections.
1600         https://bugs.webkit.org/show_bug.cgi?id=47817
1601
1602         Tests: fast/frames/location-redirect-user-gesture.html
1603                fast/frames/meta-refresh-user-gesture.html
1604
1605         * loader/NavigationScheduler.cpp:
1606         (WebCore::ScheduledNavigation::clearUserGesture):
1607         (WebCore::ScheduledRedirect::ScheduledRedirect):
1608
1609 2010-12-02  Chris Rogers  <crogers@google.com>
1610
1611         Reviewed by Kenneth Russell.
1612
1613         AudioContext needs createBuffer() method from ArrayBuffer
1614         https://bugs.webkit.org/show_bug.cgi?id=50343
1615
1616         No new tests since audio API is not yet implemented.
1617
1618         * webaudio/AudioContext.cpp:
1619         (WebCore::AudioContext::createBuffer):
1620         * webaudio/AudioContext.h:
1621         * webaudio/AudioContext.idl:
1622
1623 2010-12-02  Noel Gordon  <noel.gordon@gmail.com>
1624
1625         Reviewed by David Levin.
1626
1627         [chromium] Add canvas.toDataURL("image/jpeg", quality) support
1628         https://bugs.webkit.org/show_bug.cgi?id=49365
1629
1630         Adds a libjpeg-based image encoder for Skia bitmaps.  Default encoding quality
1631         is 92 to match Mozilla, also Safari, though the actual value used by Safari is
1632         undocumented, and it appears to pre-blur images prior to compression.
1633
1634         The preMultipliedBGRAtoRGB() routine restores the un-premultiplied RGB colors
1635         where there is non-zero alpha.  Again, this matches Firefox and Safari, but no
1636         browser conforms to the HTML5 canvas standard here, I believe, considering the
1637         result of canvas/philip/tests/toDataURL.jpeg.alpha.html; that test ignores the
1638         alpha channel when extracting an "image/jpeg".toDataURL().  The correct answer
1639         needs more investigation, bug http://webkit.org/b/40147.
1640
1641         Canvas toDataURL is covered by existing tests canvas/philip/tests/toDataURL.*,
1642         and fast/canvas/*toDataURL* tests.
1643
1644         * WebCore.gypi:
1645         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
1646         (WebCore::V8HTMLCanvasElement::toDataURLCallback): don't set encoding quality
1647         here, just pass the toDataURL parameters through to the canvas layer.
1648         * platform/chromium/MIMETypeRegistryChromium.cpp:
1649         (WebCore::MIMETypeRegistry::isSupportedImageMIMETypeForEncoding): implement
1650         the supported mimeTypes for encoding in-place.
1651         * platform/graphics/skia/ImageBufferSkia.cpp:
1652         (WebCore::ImageBuffer::toDataURL): add jpeg encoding and quality support.
1653         * platform/image-encoders/skia/JPEGImageEncoder.cpp: Added.
1654         (WebCore::prepareOutput):
1655         (WebCore::writeOutput):
1656         (WebCore::finishOutput):
1657         (WebCore::handleError):
1658         (WebCore::preMultipliedBGRAtoRGB): FIXME: bug 40147.
1659         (WebCore::JPEGImageEncoder::encode):
1660         * platform/image-encoders/skia/JPEGImageEncoder.h: Added.
1661
1662 2010-12-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1663
1664         Unreviewed, rolling out r73152.
1665         http://trac.webkit.org/changeset/73152
1666         https://bugs.webkit.org/show_bug.cgi?id=50401
1667
1668         the patch has broken chromium win layout tests (Requested by
1669         loislo on #webkit).
1670
1671         * inspector/CodeGeneratorInspector.pm:
1672         * inspector/Inspector.idl:
1673         * inspector/front-end/Callback.js:
1674         * inspector/front-end/DOMAgent.js:
1675         (WebInspector.DOMNode):
1676         * inspector/front-end/inspector.js:
1677         (WebInspector.loaded.WebInspector.socket.onmessage):
1678         (WebInspector.dispatch):
1679         (WebInspector_syncDispatch):
1680         (WebInspector.reportProtocolError):
1681
1682 2010-12-02  W. James MacLean  <wjmaclean@chromium.org>
1683
1684         Reviewed by James Robinson.
1685
1686         Scaled Resized images are blurred when sent to Skia
1687         https://bugs.webkit.org/show_bug.cgi?id=42370
1688
1689         This patch modifies ImageSkia.cpp to fix the calculation of resampled
1690         bitmap sizes so as to include the transform matrix of the canvas.
1691         Includes new tests to catch a scrolling regression and a clipping regression.
1692
1693         Tests: svg/custom/image-rescale-clip.html
1694                svg/custom/image-rescale-scroll.html
1695                svg/custom/image-rescale.svg
1696
1697         * platform/graphics/skia/ImageSkia.cpp:
1698         (WebCore::computeResamplingMode):
1699         (WebCore::drawResampledBitmap):
1700
1701 2010-12-02  Erik Arvidsson  <arv@chromium.org>
1702
1703         Reviewed by Darin Adler.
1704
1705         Missing DOM property for incremental input attribute
1706         https://bugs.webkit.org/show_bug.cgi?id=50335
1707
1708         Test: fast/forms/incremental-dom-property.html
1709
1710         * html/HTMLInputElement.idl: Added attribute
1711
1712 2010-12-02  John Knottenbelt  <jknotten@chromium.org>
1713
1714         Reviewed by Steve Block.
1715
1716         Move requestGeolocationPermissionForFrame to GeolocationClient
1717         https://bugs.webkit.org/show_bug.cgi?id=50061
1718
1719         This change facilitates client-based geolocation implementation by
1720         bringing together permission control into the geolocation client
1721         interface.
1722
1723         * page/Chrome.h:
1724         * page/ChromeClient.h:
1725         * page/Geolocation.cpp:
1726         (WebCore::Geolocation::disconnectFrame):
1727         (WebCore::Geolocation::requestPermission):
1728         * page/GeolocationClient.h:
1729         * page/GeolocationController.cpp:
1730         (WebCore::GeolocationController::requestPermission):
1731         (WebCore::GeolocationController::cancelPermissionRequest):
1732         * page/GeolocationController.h:
1733         * platform/mock/GeolocationClientMock.cpp:
1734         (WebCore::GeolocationClientMock::GeolocationClientMock):
1735         (WebCore::GeolocationClientMock::setPermission):
1736         (WebCore::GeolocationClientMock::requestPermission):
1737         (WebCore::GeolocationClientMock::cancelPermissionRequest):
1738         (WebCore::GeolocationClientMock::asyncUpdatePermission):
1739         (WebCore::GeolocationClientMock::permissionTimerFired):
1740         (WebCore::GeolocationClientMock::reset):
1741         (WebCore::GeolocationClientMock::stopUpdating):
1742         (WebCore::GeolocationClientMock::asyncUpdateController):
1743         (WebCore::GeolocationClientMock::controllerTimerFired):
1744         * platform/mock/GeolocationClientMock.h:
1745
1746 2010-12-01  Ilya Tikhonovsky  <loislo@chromium.org>
1747
1748         Reviewed by Pavel Feldman.
1749
1750         Web Inspector: Inspector protocol cleanup task.
1751
1752         The patch has just small renames and adjustments for the protocol things.
1753         'handler' keyword in idl file was replaced with 'domain'.
1754         'domain' property was assigned for the each backend to frontend messages.
1755         At the next step WebInspector wrapper functions will be removed and 'agents' will be called directly.
1756
1757         https://bugs.webkit.org/show_bug.cgi?id=50337
1758
1759         * inspector/CodeGeneratorInspector.pm:
1760         * inspector/Inspector.idl:
1761         * inspector/front-end/inspector.js:
1762         (WebInspector_syncDispatch):
1763
1764 2010-12-01  Andrey Kosyakov  <caseq@chromium.org>
1765
1766         Reviewed by Pavel Feldman.
1767
1768         Web Inspector: [Resources panel] [HAR] Need a way to save timing data.
1769         Re-implementing HAR export functionality that used to be in Resources
1770         tab in Network tab.
1771         https://bugs.webkit.org/show_bug.cgi?id=45663
1772
1773         * inspector/front-end/NetworkPanel.js:
1774         (WebInspector.NetworkPanel.prototype._createTable):
1775         (WebInspector.NetworkPanel.prototype._toggleViewingResourceMode):
1776         (WebInspector.NetworkPanel.prototype._contextMenu):
1777         (WebInspector.NetworkPanel.prototype._exportAll):
1778         (WebInspector.NetworkPanel.prototype._exportResource):
1779         (WebInspector.NetworkDataGridNode.prototype.refreshResource):
1780         * inspector/front-end/networkPanel.css:
1781         (.data-grid table.data tr.revealed.network-item):
1782         (.data-grid.filter-other table.data tr.revealed.network-category-other):
1783
1784 2010-12-02  Dai Mikurube  <dmikurube@google.com>
1785
1786         Reviewed by Kent Tamura.
1787
1788         Reject named colors, accept only #rrggbb in <input type=color />
1789         https://bugs.webkit.org/show_bug.cgi?id=50308
1790
1791         * html/ColorInputType.cpp: Modified to accept only simple colors like #xxxxxx.
1792         (WebCore::isValidColorString):
1793
1794 2010-12-02  Vincent Scheib  <scheib@chromium.org>
1795
1796         Reviewed by Darin Fisher.
1797
1798         [chromium] histograms api updated in WebKitClient and added to ChromiumBridge
1799         https://bugs.webkit.org/show_bug.cgi?id=50285
1800
1801         Test by loading "about:histograms" after navigating to accelerated pages.
1802
1803         * platform/chromium/ChromiumBridge.h: api update.
1804
1805 2010-12-02  Andras Becsi  <abecsi@webkit.org>
1806
1807         Unreviewed build fix.
1808
1809         [Qt][V8] Fix linking of generated sources.
1810
1811         No new tests needed.
1812
1813         * WebCore.pro: add missing V8ImageDataCustom.cpp.
1814
1815 2010-12-02  Nikolas Zimmermann  <nzimmermann@rim.com>
1816
1817         Reviewed by Adam Roben.
1818
1819         Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGAnimatedString/SVGAnimatedEnumeration
1820         https://bugs.webkit.org/show_bug.cgi?id=50383
1821
1822         Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_(STRING|ENUMERATION) / DEFINE_ANIMATED_(STRING|ENUMERATION).
1823         The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.
1824
1825         No functional changes, thus no new tests.
1826
1827         * svg/SVGAElement.cpp:
1828         * svg/SVGAElement.h:
1829         (WebCore::SVGAElement::isValid):
1830         (WebCore::SVGAElement::target):
1831         * svg/SVGAltGlyphElement.cpp:
1832         * svg/SVGAltGlyphElement.h:
1833         * svg/SVGAnimatedEnumeration.h:
1834         * svg/SVGAnimatedString.h:
1835         * svg/SVGClipPathElement.cpp:
1836         * svg/SVGClipPathElement.h:
1837         * svg/SVGComponentTransferFunctionElement.cpp:
1838         * svg/SVGComponentTransferFunctionElement.h:
1839         * svg/SVGCursorElement.cpp:
1840         * svg/SVGCursorElement.h:
1841         * svg/SVGFEBlendElement.cpp:
1842         * svg/SVGFEBlendElement.h:
1843         * svg/SVGFEColorMatrixElement.cpp:
1844         * svg/SVGFEColorMatrixElement.h:
1845         * svg/SVGFEComponentTransferElement.cpp:
1846         * svg/SVGFEComponentTransferElement.h:
1847         * svg/SVGFECompositeElement.cpp:
1848         * svg/SVGFECompositeElement.h:
1849         * svg/SVGFEConvolveMatrixElement.cpp:
1850         * svg/SVGFEConvolveMatrixElement.h:
1851         * svg/SVGFEDiffuseLightingElement.cpp:
1852         * svg/SVGFEDiffuseLightingElement.h:
1853         * svg/SVGFEDisplacementMapElement.cpp:
1854         * svg/SVGFEDisplacementMapElement.h:
1855         * svg/SVGFEGaussianBlurElement.cpp:
1856         * svg/SVGFEGaussianBlurElement.h:
1857         * svg/SVGFEImageElement.cpp:
1858         * svg/SVGFEImageElement.h:
1859         * svg/SVGFELightElement.cpp:
1860         * svg/SVGFEMergeNodeElement.cpp:
1861         * svg/SVGFEMergeNodeElement.h:
1862         * svg/SVGFEMorphologyElement.cpp:
1863         * svg/SVGFEMorphologyElement.h:
1864         * svg/SVGFEOffsetElement.cpp:
1865         * svg/SVGFEOffsetElement.h:
1866         * svg/SVGFESpecularLightingElement.cpp:
1867         * svg/SVGFESpecularLightingElement.h:
1868         * svg/SVGFETileElement.cpp:
1869         * svg/SVGFETileElement.h:
1870         * svg/SVGFETurbulenceElement.cpp:
1871         * svg/SVGFETurbulenceElement.h:
1872         * svg/SVGFilterElement.cpp:
1873         * svg/SVGFilterElement.h:
1874         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1875         * svg/SVGFilterPrimitiveStandardAttributes.h:
1876         * svg/SVGForeignObjectElement.cpp:
1877         * svg/SVGForeignObjectElement.h:
1878         * svg/SVGGradientElement.cpp:
1879         * svg/SVGGradientElement.h:
1880         * svg/SVGImageElement.cpp:
1881         * svg/SVGImageElement.h:
1882         * svg/SVGMPathElement.cpp:
1883         * svg/SVGMPathElement.h:
1884         * svg/SVGMarkerElement.cpp:
1885         * svg/SVGMarkerElement.h:
1886         * svg/SVGMaskElement.cpp:
1887         * svg/SVGMaskElement.h:
1888         * svg/SVGPatternElement.cpp:
1889         * svg/SVGPatternElement.h:
1890         * svg/SVGScriptElement.cpp:
1891         * svg/SVGScriptElement.h:
1892         * svg/SVGStyledElement.cpp:
1893         * svg/SVGStyledElement.h:
1894         (WebCore::SVGStyledElement::hasRelativeLengths):
1895         (WebCore::SVGStyledElement::supportsMarkers):
1896         (WebCore::SVGStyledElement::style):
1897         (WebCore::SVGStyledElement::updateRelativeLengthsInformation):
1898         (WebCore::SVGStyledElement::selfHasRelativeLengths):
1899         (WebCore::SVGStyledElement::isStyled):
1900         * svg/SVGTRefElement.cpp:
1901         * svg/SVGTRefElement.h:
1902         * svg/SVGTextContentElement.cpp:
1903         * svg/SVGTextContentElement.h:
1904         * svg/SVGTextPathElement.cpp:
1905         * svg/SVGTextPathElement.h:
1906         * svg/SVGUseElement.cpp:
1907         * svg/SVGUseElement.h:
1908
1909 2010-12-02  Patrick Gansterer  <paroga@webkit.org>
1910
1911         Reviewed by Andreas Kling.
1912
1913         [WX] Remove "current path" of GraphicsContext
1914         https://bugs.webkit.org/show_bug.cgi?id=50286
1915
1916         * platform/graphics/GraphicsContext.h:
1917         * platform/graphics/wx/GraphicsContextWx.cpp:
1918         (WebCore::GraphicsContext::GraphicsContext):
1919         (WebCore::GraphicsContext::fillPath):
1920         (WebCore::GraphicsContext::strokePath):
1921
1922 2010-10-26  Martin Robinson  <mrobinson@igalia.com>
1923
1924         Reviewed by Xan Lopez.
1925
1926         [GTK] Text input controls do not react properly to CSS styling
1927         https://bugs.webkit.org/show_bug.cgi?id=40855
1928
1929         Improve text input control rendering. Instead of using the GTK+ border
1930         attributes of the control modify the padding, they modify the border.
1931         Make this same choice for search inputs and text area inputs.
1932
1933         * platform/gtk/RenderThemeGtk.cpp:
1934         (WebCore::setTextInputBorders): Added this helper which sets text input control
1935         borders based on GTK+ theme settings.
1936         (WebCore::RenderThemeGtk::adjustTextFieldStyle): Use the setTextInputBorders helper.
1937         (WebCore::RenderThemeGtk::adjustTextAreaStyle): Ditto.
1938         (WebCore::RenderThemeGtk::adjustSearchFieldStyle): Ditto.
1939         * platform/gtk/RenderThemeGtk.h:
1940
1941 2010-12-02  Andreas Kling  <kling@webkit.org>
1942
1943         Reviewed by Kenneth Rohde Christiansen.
1944
1945         [Qt] GraphicsContext::strokeRect() taints the context's lineWidth
1946         https://bugs.webkit.org/show_bug.cgi?id=50269
1947
1948         Test: fast/canvas/canvas-lineWidth-intact-after-strokeRect.html
1949
1950         * platform/graphics/qt/GraphicsContextQt.cpp:
1951         (WebCore::GraphicsContext::strokeRect): Restore the context's
1952         original stroke thickness after painting.
1953
1954 2010-12-02  Renata Hodovan  <reni@webkit.org>
1955
1956         Reviewed by Andreas Kling.
1957
1958         [Qt] GraphicsContext::clip(path) should clip using winding fill 
1959         https://bugs.webkit.org/show_bug.cgi?id=49912
1960
1961         GraphicsContext::clip(path) now uses winding fill and this function is called by
1962         GraphicsContext::canvasClip(path).
1963
1964         No new test is needed.
1965
1966         * platform/graphics/qt/GraphicsContextQt.cpp:
1967         (WebCore::GraphicsContext::clip):
1968         (WebCore::GraphicsContext::canvasClip):
1969
1970 2010-12-01  Alexander Pavlov  <apavlov@chromium.org>
1971
1972         Reviewed by Yury Semikhatsky.
1973
1974         Web Inspector: Remove obsolete CSS backend API from InspectorDOMAgent
1975         https://bugs.webkit.org/show_bug.cgi?id=50318
1976
1977         * CMakeLists.txt:
1978         * GNUmakefile.am:
1979         * WebCore.gypi:
1980         * WebCore.order:
1981         * WebCore.pro:
1982         * WebCore.vcproj/WebCore.vcproj:
1983         * WebCore.xcodeproj/project.pbxproj:
1984         * inspector/Inspector.idl:
1985         * inspector/InspectorCSSAgent.h:
1986         * inspector/InspectorCSSStore.cpp: Removed.
1987         * inspector/InspectorCSSStore.h: Removed.
1988         * inspector/InspectorController.cpp:
1989         (WebCore::InspectorController::InspectorController):
1990         (WebCore::InspectorController::connectFrontend):
1991         (WebCore::InspectorController::didCommitLoad):
1992         * inspector/InspectorController.h:
1993         * inspector/InspectorDOMAgent.cpp:
1994         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
1995         (WebCore::InspectorDOMAgent::unbind):
1996         * inspector/InspectorDOMAgent.h:
1997         (WebCore::InspectorDOMAgent::create):
1998
1999 2010-12-02  Csaba Osztrogonác  <ossy@webkit.org>
2000
2001         Unreviewed trivial buildfix after r73117.
2002
2003         * page/FrameView.cpp:
2004         (WebCore::FrameView::calculateScrollbarModesForLayout):
2005
2006 2010-12-02  Yuqiang Xian  <yuqiang.xian@intel.com>
2007
2008         Reviewed by Pavel Feldman.
2009
2010         [V8] Speed up data property access for ImageData.
2011         https://bugs.webkit.org/show_bug.cgi?id=49999
2012
2013         We create a normal V8 object which has a PixelArray as the backing storage,
2014         and set the "data" property of the ImageData object to it. 
2015         This way "data" becomes a pure JS property and we don't need to call through
2016         the C++ bindings for ImageData "data" access. 
2017         This eliminates big overhead in switching between JavaScript and native
2018         contexts and performing object bindings.
2019
2020         No new tests. Relying on existing Canvas tests.
2021
2022         * WebCore.gypi:
2023         * bindings/scripts/CodeGeneratorV8.pm:
2024         * bindings/v8/custom/V8CanvasPixelArrayCustom.cpp:
2025         (WebCore::toV8):
2026         * bindings/v8/custom/V8ImageDataCustom.cpp: Added.
2027         (WebCore::toV8):
2028         * html/ImageData.idl:
2029         * html/canvas/CanvasPixelArray.idl:
2030
2031 2010-12-02  Kent Tamura  <tkent@chromium.org>
2032
2033         Unreviewed. Run sort-Xcode-project-file.
2034
2035         * WebCore.xcodeproj/project.pbxproj:
2036
2037 2010-12-02  Mike Lawther  <mikelawther@chromium.org>
2038
2039         Reviewed by David Hyatt.
2040
2041         Clean up of iframe scrollbar mode code
2042         https://bugs.webkit.org/show_bug.cgi?id=47797
2043
2044         Pull setChildNeedsLayout/setNeedsLayout calls out of scrollbar mode
2045         calculation method and put back into main layout function. 
2046         Early exit from the scrollbar calc when scrollbars are turned off. 
2047
2048         * page/FrameView.cpp:
2049         (WebCore::FrameView::calculateScrollbarModesForLayout):
2050         (WebCore::FrameView::layout):
2051
2052 2010-12-02  Hironori Bono  <hbono@chromium.org>
2053
2054         Reviewed by Darin Fisher.
2055
2056         [Chromium] Fix possible crashes in FontFallbackFont::determinePitch().
2057         https://bugs.webkit.org/show_bug.cgi?id=25770
2058
2059         When all of "Arial", "Courier New", and "Times New Roman" fonts are corrupted,
2060         FontCache::getLastResortFallbackFont() returns 0 and it causes this crash. To
2061         avoid this crash, this change falls back to system fonts (Windows ensures they
2062         are sane) as Win Safari does. Unfortunately, I don't have any ideas how I can
2063         write a layout test for this issue because this crash happens on a PC some of
2064         its system fonts are corrupted.
2065
2066         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
2067         (WebCore::fontDataFromDescriptionAndLogFont):
2068         (WebCore::FontCache::getLastResortFallbackFont):
2069
2070 2010-12-02  Dimitri Glazkov  <dglazkov@chromium.org>
2071
2072         Reviewed by Kent Tamura.
2073
2074         Provide means to store shadow DOM nodes on Element
2075         https://bugs.webkit.org/show_bug.cgi?id=48697
2076
2077         Adds shadow DOM awareness to the standard Node attach/detach,
2078         document and tree insertion and removal cycle.
2079
2080         No new tests, because the code is not yet used.
2081
2082         * dom/Element.cpp:
2083         (WebCore::Element::insertedIntoDocument): Added logic to cascade down to shadow DOM, if present.
2084         (WebCore::Element::removedFromDocument): Ditto.
2085         (WebCore::Element::insertedIntoTree): Ditto.
2086         (WebCore::Element::removedFromTree): Ditto.
2087         (WebCore::Element::attach): Ditto.
2088         (WebCore::Element::detach): Ditto.
2089         (WebCore::Element::recalcStyle):
2090         (WebCore::Element::shadowRoot): Added.
2091         (WebCore::Element::setShadowRoot): Added.
2092         (WebCore::Element::clearShadowRoot): Added.
2093         * dom/Element.h: Added decls.
2094         * dom/ElementRareData.h: Added a member to hold a RefPtr to the shadow DOM root for the element.
2095
2096 2010-12-02  Adam Barth  <abarth@webkit.org>
2097
2098         Reviewed by Eric Seidel.
2099
2100         Gray-scale JPEG images with a color profile are stretched horizonally
2101         https://bugs.webkit.org/show_bug.cgi?id=49950
2102
2103         Turns out gray-scale JPEGs with color profiles have the same issue as
2104         PNGs.  As with PNGs, we suppress now suppress the color profile for
2105         gray-scale JPEGs.  Most importantly, this patch adds a test.
2106
2107         Test: fast/images/gray-scale-jpeg-with-color-profile.html
2108
2109         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
2110         (WebCore::JPEGImageReader::decode):
2111
2112 2010-12-01  Geoffrey Garen  <ggaren@apple.com>
2113
2114         Build fix: Added a forwarding header.
2115
2116         * ForwardingHeaders/wtf/OSAllocator.h: Added.
2117
2118 2010-12-01  Jia Pu  <jpu@apple.com>
2119
2120         Reviewed by Darin Adler.
2121
2122         Support multiple correction candidates panel for misspelled word on Mac OS X.
2123         https://bugs.webkit.org/show_bug.cgi?id=50137
2124         <rdar://problem/8568059>
2125
2126         Test: platform/mac/editing/spelling/delete-autocorrected-word-1.html
2127         Manual test: WebCore/manual-tests/autocorrection/dismiss-multiple-guesses.html
2128                      WebCore/manual-tests/autocorrection/select-from-multiple-guesses.html
2129
2130         This patch is for supporting multiple correction suggestion panel on Mac OS X.
2131         The behavior and implementation is similar to that of reversion candiate panel.
2132
2133         * WebCore.exp.in: Added and removed symbols.
2134
2135         * editing/CorrectionPanelInfo.h: Added new correction panel type, PanelTypeSpellingSuggestions.
2136
2137         * editing/Editor.cpp:
2138         (WebCore::markerTypesForAutocorrection): Convenient function for getting marker types to
2139           be added to autocorrected word.
2140         (WebCore::boundingBoxForRange): Convenient function for calculating the bounding box of a range.
2141         (WebCore::markerTypesForReplacement): Convenient function for getting marker types to
2142           be added to word that has been replaced by various correction panel.
2143         (WebCore::Editor::respondToChangedSelection): Added code to trigger timer for multiple
2144           suggestion panel.
2145         (WebCore::Editor::guessesForMisspelledSelection): Adopted new signature of EditorClient::getGuessesForWord().
2146         (WebCore::Editor::markMisspellingsAfterTypingToWord): Adopted new signature of applyCorrectionPanelInfo().
2147         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
2148         (WebCore::Editor::correctionPanelTimerFired): Added code to handle new multiple suggestion panel.
2149         (WebCore::Editor::handleCorrectionPanelResult): Replaced handleRejectedCorrection(), since
2150           with new AppKit correction panel API, not only rejection, but also confirmation can be
2151           handled in callback.
2152         (WebCore::Editor::stopCorrectionPanelTimer): Moved the code that clears correction panel info
2153           from dismissCorrectionPanel() to this function to fix a bug that would occur when deleting
2154           autocorrected word.
2155         (WebCore::Editor::dismissCorrectionPanel): Ditto.
2156         (WebCore::Editor::applyCorrectionPanelInfo): Added code to handle new multiple suggestion panel.
2157
2158         * editing/Editor.h: Replaced handleRejectedCorrection() with handleCorrectionPanelResult().
2159           Changed the signature of applyCorrectionPanelInfo() to hanlde new correction panel type.
2160
2161         * editing/TextCheckingHelper.cpp:
2162         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange): Adopted new EditorClient::getGuessesForWord().
2163
2164         * editing/TextCheckingHelper.h: Made paragraphRange() public.
2165
2166         * loader/EmptyClients.h:
2167         (WebCore::EmptyEditorClient::showCorrectionPanel): Adopted new signature defined in base class.
2168         (WebCore::EmptyEditorClient::getGuessesForWord): Ditto.
2169
2170         * manual-tests/autocorrection/dismiss-multiple-guesses.html: Added.
2171
2172         * manual-tests/autocorrection/select-from-multiple-guesses.html: Added.
2173
2174         * page/EditorClient.h:  Changed showCorrectionPanel() to allow passing multiple correction
2175           candidates. Changed getGuessesForWord() to allow passing in contextual text for better
2176           correction suggestions (for those spellcheckers that utilizes such contextual information).
2177
2178 2010-12-01  David Hyatt  <hyatt@apple.com>
2179
2180         Reviewed by James Robinson.
2181
2182         https://bugs.webkit.org/show_bug.cgi?id=50360
2183         
2184         Make sure to include the origin adjustment code that I added on Mac to keep truncation-rtl.html passing.
2185
2186         * platform/ScrollView.cpp:
2187         (WebCore::ScrollView::updateScrollbars):
2188
2189 2010-12-01  David Hyatt  <hyatt@apple.com>
2190
2191         Reviewed by Dan Bernstein.
2192
2193         https://bugs.webkit.org/show_bug.cgi?id=46645
2194
2195         Generalize overflow section scrollOriginX code to be a point and to work in both horizontal
2196         and vertical modes.
2197
2198         Not testable yet, since the rightmost/leftmost/topmost/lowestPosition functions are returning
2199         horrendously wrong values in the vertical text case for overflow:auto objects.
2200
2201         * rendering/RenderLayer.cpp:
2202         (WebCore::RenderLayer::RenderLayer):
2203         (WebCore::RenderLayer::scrollToOffset):
2204         (WebCore::RenderLayer::computeScrollDimensions):
2205         (WebCore::RenderLayer::updateOverflowStatus):
2206         * rendering/RenderLayer.h:
2207         (WebCore::RenderLayer::scrolledContentOffset):
2208         (WebCore::RenderLayer::scrollXOffset):
2209         (WebCore::RenderLayer::scrollYOffset):
2210         (WebCore::RenderLayer::scrollToXOffset):
2211         (WebCore::RenderLayer::scrollToYOffset):
2212
2213 2010-12-01  Steve Falkenburg  <sfalken@apple.com>
2214
2215         Reviewed by Adam Roben.
2216
2217         WinCairo build should not use link-time code generation (LTCG)
2218         https://bugs.webkit.org/show_bug.cgi?id=50353
2219
2220         * WebCore.vcproj/QTMovieWin.vcproj:
2221         * WebCore.vcproj/WebCore.vcproj:
2222
2223 2010-12-01  David Hyatt  <hyatt@apple.com>
2224
2225         Reviewed by Darin Adler.
2226
2227         https://bugs.webkit.org/show_bug.cgi?id=46645
2228         
2229         Part 1 of making scrolling work with vertical text. This patch generalizes the scrollOriginX concept
2230         recently added for horizontal RTL documents and applies it to writing modes as well.  Now the
2231         scrollOrigin is a point, since you can start off locked to the bottom or locked to the right.
2232         
2233         This patch also fixes numerous bugs with the scrollOrigin code using native Mac NSScrollViews and
2234         makes them behave the same as the cross-platform code (allowing for cross-platform results to be
2235         landed).
2236
2237         * page/FrameView.cpp:
2238         (WebCore::FrameView::adjustViewSize):
2239         * page/mac/WebCoreFrameView.h:
2240         * platform/ScrollView.cpp:
2241         (WebCore::ScrollView::ScrollView):
2242         (WebCore::ScrollView::maximumScrollPosition):
2243         (WebCore::ScrollView::minimumScrollPosition):
2244         (WebCore::ScrollView::valueChanged):
2245         (WebCore::ScrollView::updateScrollbars):
2246         (WebCore::ScrollView::wheelEvent):
2247         * platform/ScrollView.h:
2248         (WebCore::ScrollView::scrollOrigin):
2249         * platform/mac/ScrollViewMac.mm:
2250         (WebCore::ScrollView::platformSetScrollPosition):
2251         (WebCore::ScrollView::platformSetScrollOrigin):
2252         * rendering/RenderBox.cpp:
2253         (WebCore::RenderBox::paintRootBoxDecorations):
2254         * rendering/RenderView.cpp:
2255         (WebCore::RenderView::layout):
2256         (WebCore::RenderView::docTop):
2257         (WebCore::RenderView::docHeight):
2258         (WebCore::RenderView::docLeft):
2259         (WebCore::RenderView::docWidth):
2260         * rendering/RenderView.h:
2261
2262 2010-11-30  Steve Block  <steveblock@google.com>
2263
2264         Reviewed by Jeremy Orlow.
2265
2266         Upstream recent changes to WebCore/platform/network/android
2267         https://bugs.webkit.org/show_bug.cgi?id=50224
2268
2269         Android implementation changes only, no new tests.
2270
2271         * platform/network/NetworkingContext.h:
2272         * platform/network/android/CookieJarAndroid.cpp:
2273         (WebCore::setCookies):
2274         (WebCore::cookies):
2275         (WebCore::cookieRequestHeaderFieldValue):
2276         (WebCore::cookiesEnabled):
2277         * platform/network/android/ProxyServerAndroid.cpp: Added.
2278         (WebCore::proxyServersForURL):
2279         * platform/network/android/ResourceHandleAndroid.cpp:
2280         (WebCore::ResourceHandle::start):
2281         (WebCore::ResourceHandle::loadResourceSynchronously):
2282         * platform/network/android/ResourceRequestAndroid.cpp:
2283         (WebCore::initializeMaximumHTTPConnectionCountPerHost):
2284
2285 2010-12-01  Steve Falkenburg  <sfalken@apple.com>
2286
2287         Reviewed by Adam Roben.
2288
2289         vcproj changes can't be applied cleanly by the Windows EWS bot
2290         https://bugs.webkit.org/show_bug.cgi?id=50328
2291
2292         * WebCore.vcproj/QTMovieWin.vcproj: Modified property svn:eol-style.
2293         * WebCore.vcproj/QTMovieWinCommon.vsprops: Added property svn:eol-style.
2294         * WebCore.vcproj/WebCore.sln: Modified property svn:eol-style.
2295         * WebCore.vcproj/WebCore.submit.sln: Modified property svn:eol-style.
2296         * WebCore.vcproj/WebCore.vcproj: Modified property svn:eol-style.
2297         * WebCore.vcproj/WebCoreCFNetwork.vsprops: Added property svn:eol-style.
2298         * WebCore.vcproj/WebCoreCG.vsprops: Added property svn:eol-style.
2299         * WebCore.vcproj/WebCoreCURL.vsprops: Added property svn:eol-style.
2300         * WebCore.vcproj/WebCoreCairo.vsprops: Added property svn:eol-style.
2301         * WebCore.vcproj/WebCoreCommon.vsprops: Added property svn:eol-style.
2302         * WebCore.vcproj/WebCoreGenerated.vcproj: Modified property svn:eol-style.
2303         * WebCore.vcproj/WebCoreGeneratedCairo.vsprops: Added property svn:eol-style.
2304         * WebCore.vcproj/WebCoreGeneratedCommon.vsprops: Added property svn:eol-style.
2305         * WebCore.vcproj/WebCoreMediaQT.vsprops: Added property svn:eol-style.
2306         * WebCore.vcproj/WebCorePthreads.vsprops: Added property svn:eol-style.
2307         * WebCore.vcproj/WebCoreQuartzCore.vsprops: Added property svn:eol-style.
2308
2309 2010-11-30  Vangelis Kokkevis  <vangelis@chromium.org>
2310
2311         Reviewed by Darin Fisher.
2312
2313         Adds accelerated compositing trigger flags to Settings to allow
2314         ports to set them via command line flags, etc.
2315         https://bugs.webkit.org/show_bug.cgi?id=50301
2316
2317         * page/Settings.cpp:
2318         (WebCore::Settings::Settings):
2319         (WebCore::Settings::setAcceleratedCompositingFor3DTransformsEnabled):
2320         (WebCore::Settings::setAcceleratedCompositingForVideoEnabled):
2321         (WebCore::Settings::setAcceleratedCompositingForPluginsEnabled):
2322         (WebCore::Settings::setAcceleratedCompositingForCanvasEnabled):
2323         (WebCore::Settings::setAcceleratedCompositingForAnimationEnabled):
2324         * page/Settings.h:
2325         (WebCore::Settings::acceleratedCompositingFor3DTransformsEnabled):
2326         (WebCore::Settings::acceleratedCompositingForVideoEnabled):
2327         (WebCore::Settings::acceleratedCompositingForPluginsEnabled):
2328         (WebCore::Settings::acceleratedCompositingForCanvasEnabled):
2329         (WebCore::Settings::acceleratedCompositingForAnimationEnabled):
2330
2331 2010-12-01  Darin Adler  <darin@apple.com>
2332
2333         Fixed warning seen on buildbot.
2334
2335         * platform/graphics/chromium/ContentLayerChromium.cpp:
2336         (WebCore::ContentLayerChromium::SharedValues::SharedValues): Added #if.
2337
2338 2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>
2339
2340         Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.
2341
2342         chrome.dll!WebCore::RangeBoundaryPoint::toPosition ReadAV@NULL (cf0d0f28bc56f2591cc74f71b46036ea)
2343         https://bugs.webkit.org/show_bug.cgi?id=47808
2344
2345         The crash was caused by moveParagraphWithClones' not copying the entire paragraph
2346         when called by doApplyForSingleParagraph, which was induced by a bug in
2347         cloneParagraphUnderNewElement which ended the cloning process early when the start node
2348         and the end node didn't share the same parent node. Fixed the bug in cloneParagraphUnderNewElement
2349         by calling traverseNextSibling(outerNode) instead of nextSibling().
2350
2351         Also added an early exit to InsertListCommand::doApply when lastSelectionRange is null.
2352
2353         Tests: editing/execCommand/switch-multiple-list-items-crash.html
2354                editing/execCommand/switch-multiple-list-items.html
2355
2356         * editing/CompositeEditCommand.cpp:
2357         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
2358         * editing/InsertListCommand.cpp:
2359         (WebCore::InsertListCommand::doApply):
2360
2361 2010-12-01  Kevin Ollivier  <kevino@theolliviers.com>
2362
2363         [wx] Build fixes after recent trunk changes.
2364
2365         * platform/graphics/wx/ImageBufferWx.cpp:
2366         (WebCore::ImageBuffer::ImageBuffer):
2367         * platform/wx/LocalizedStringsWx.cpp:
2368         (WebCore::platformDefaultLanguage):
2369
2370 2010-12-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2371
2372         Unreviewed, rolling out r73047.
2373         http://trac.webkit.org/changeset/73047
2374         https://bugs.webkit.org/show_bug.cgi?id=50339
2375
2376         missing bug number (Requested by rniwa on #webkit).
2377
2378         * editing/CompositeEditCommand.cpp:
2379         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
2380         * editing/InsertListCommand.cpp:
2381         (WebCore::InsertListCommand::doApply):
2382
2383 2010-12-01  Ryosuke Niwa  <rniwa@webkit.org>
2384
2385         Reviewed by Darin Adler, Tony Chang, and unofficially by Enrica Casucci.
2386
2387         The crash was caused by moveParagraphWithClones' not copying the entire paragraph
2388         when called by doApplyForSingleParagraph, which was induced by a bug in
2389         cloneParagraphUnderNewElement which ended the cloning process early when the start node
2390         and the end node didn't share the same parent node. Fixed the bug in cloneParagraphUnderNewElement
2391         by calling traverseNextSibling(outerNode) instead of nextSibling().
2392
2393         Also added an early exit to InsertListCommand::doApply when lastSelectionRange is null.
2394
2395         Tests: editing/execCommand/switch-multiple-list-items-crash.html
2396                editing/execCommand/switch-multiple-list-items.html
2397
2398         * editing/CompositeEditCommand.cpp:
2399         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
2400         * editing/InsertListCommand.cpp:
2401         (WebCore::InsertListCommand::doApply):
2402
2403 2010-12-01  Grace Kloba  <klobag@chromium.org>
2404
2405         Reviewed by Kenneth Russell.
2406
2407         [chromium] ContentLayerChromium shader should honor the platform Sk_x_SHIFT value instead of assuming BGRA color
2408         https://bugs.webkit.org/show_bug.cgi?id=50189
2409
2410         * platform/graphics/chromium/ContentLayerChromium.cpp:
2411         (WebCore::ContentLayerChromium::SharedValues::SharedValues):Use SK_B32_SHIFT to decide whether to use RGBA or BGRA shader for Skia port.
2412
2413 2010-12-01  Nico Weber  <thakis@chromium.org>
2414
2415         Reviewed by Dimitri Glazkov.
2416
2417         Fix clang warnings caused by -Wlogical-op-parentheses
2418         https://bugs.webkit.org/show_bug.cgi?id=50324
2419
2420         * platform/graphics/mac/ComplexTextController.cpp:
2421         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
2422
2423 2010-12-01  Martin Robinson  <mrobinson@igalia.com>
2424
2425         Build fix for GTK+.
2426
2427         * platform/gtk/PopupMenuGtk.cpp:
2428         (WebCore::PopupMenuGtk::typeAheadFind): Uncomment mistakenly commented line.
2429
2430 2010-12-01  Apelete Seketeli  <apelete@seketeli.org> and Martin Robinson  <mrobinson@igalia.com>
2431
2432         Reviewed by Xan Lopez.
2433
2434         [Gtk] Open menulists should support typeahead find
2435         https://bugs.webkit.org/show_bug.cgi?id=27443
2436
2437         Added typeahead find support for open GTK+ menulists.
2438
2439         Test: platform/gtk/fast/forms/menulist-typeahead-find.html
2440
2441         * platform/gtk/PopupMenuGtk.cpp:
2442         (WebCore::PopupMenuGtk::PopupMenuGtk): Initialize new members.
2443         (WebCore::PopupMenuGtk::show): Track currently selected menu item
2444         via a signal handler.
2445         (WebCore::PopupMenuGtk::typeAheadFind): Added.
2446         (WebCore::PopupMenuGtk::menuUnmapped): Reset typeahead find state
2447         when menu is unmapped.
2448         (WebCore::PopupMenuGtk::resetTypeAheadFindState): Added.
2449         (WebCore::PopupMenuGtk::selectItemCallback): Added.
2450         (WebCore::PopupMenuGtk::keyPressEventCallback): Added.
2451         * platform/gtk/PopupMenuGtk.h: Added new members to track typeahead
2452         find state.
2453
2454 2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2455
2456         Reviewed by Xan Lopez.
2457
2458         Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGAnimatedNumber
2459         https://bugs.webkit.org/show_bug.cgi?id=50323
2460
2461         Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_NUMBER / DEFINE_ANIMATED_NUMBER.
2462         The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.
2463
2464         No functional changes, thus no new tests.
2465
2466         * svg/SVGAnimatedNumber.h:
2467         * svg/SVGComponentTransferFunctionElement.cpp:
2468         * svg/SVGComponentTransferFunctionElement.h:
2469         * svg/SVGFECompositeElement.cpp:
2470         * svg/SVGFECompositeElement.h:
2471         * svg/SVGFEConvolveMatrixElement.cpp:
2472         * svg/SVGFEConvolveMatrixElement.h:
2473         * svg/SVGFEDiffuseLightingElement.cpp:
2474         * svg/SVGFEDiffuseLightingElement.h:
2475         * svg/SVGFEDisplacementMapElement.cpp:
2476         * svg/SVGFEDisplacementMapElement.h:
2477         * svg/SVGFEGaussianBlurElement.cpp:
2478         * svg/SVGFEGaussianBlurElement.h:
2479         * svg/SVGFELightElement.cpp:
2480         * svg/SVGFELightElement.h:
2481         * svg/SVGFEMorphologyElement.cpp:
2482         * svg/SVGFEMorphologyElement.h:
2483         * svg/SVGFEOffsetElement.cpp:
2484         * svg/SVGFEOffsetElement.h:
2485         * svg/SVGFESpecularLightingElement.cpp:
2486         * svg/SVGFESpecularLightingElement.h:
2487         * svg/SVGFETurbulenceElement.cpp:
2488         * svg/SVGFETurbulenceElement.h:
2489         * svg/SVGPathElement.cpp:
2490         * svg/SVGPathElement.h:
2491         * svg/SVGStopElement.cpp:
2492         * svg/SVGStopElement.h:
2493         (WebCore::SVGStopElement::isGradientStop):
2494
2495 2010-12-01  Martin Robinson  <mrobinson@igalia.com>
2496
2497         Reviewed by Xan Lopez.
2498
2499         Sliders are not transformed after r50188
2500         https://bugs.webkit.org/show_bug.cgi?id=50317
2501
2502         Need to call updateLayerTransform during slider layout, as sliders
2503         may be transformed.
2504
2505         No new tests. This patch should make fast/forms/slider-transformed.html
2506         pass on the GTK+ bots.
2507
2508         * rendering/RenderSlider.cpp:
2509         (WebCore::RenderSlider::layout): Call updateLayerTransform here.
2510
2511 2010-11-30  Pavel Feldman  <pfeldman@chromium.org>
2512
2513         Reviewed by Yury Semikhatsky.
2514
2515         Web Inspector: do not make helpScreen.css lazily loaded.
2516         https://bugs.webkit.org/show_bug.cgi?id=50304
2517
2518         * inspector/front-end/HelpScreen.js:
2519         (WebInspector.HelpScreen):
2520         (WebInspector.HelpScreen.prototype._onBlur):
2521         * inspector/front-end/inspector.html:
2522
2523 2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2524
2525         Reviewed by Xan Lopez.
2526
2527         Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGLengthList/SVGNumberList/SVGTransformList
2528         https://bugs.webkit.org/show_bug.cgi?id=50322
2529
2530         Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_(LENGTH|NUMBER|TRANSFORM)_LIST / DEFINE_ANIMATED_(LENGTH|NUMBER|TRANSFORM).
2531         The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers.
2532
2533         No functional changes, thus no new tests.
2534
2535         * svg/SVGAnimatedLengthList.h:
2536         * svg/SVGAnimatedNumberList.h:
2537         * svg/SVGAnimatedTransformList.h:
2538         * svg/SVGComponentTransferFunctionElement.cpp:
2539         * svg/SVGComponentTransferFunctionElement.h:
2540         * svg/SVGFEColorMatrixElement.cpp:
2541         * svg/SVGFEColorMatrixElement.h:
2542         * svg/SVGFEConvolveMatrixElement.cpp:
2543         * svg/SVGFEConvolveMatrixElement.h:
2544         * svg/SVGGradientElement.cpp:
2545         * svg/SVGGradientElement.h:
2546         (WebCore::SVGGradientElement::needsPendingResourceHandling):
2547         * svg/SVGPatternElement.cpp:
2548         * svg/SVGPatternElement.h:
2549         * svg/SVGPolygonElement.cpp:
2550         * svg/SVGPolylineElement.cpp:
2551         * svg/SVGStyledTransformableElement.cpp:
2552         * svg/SVGStyledTransformableElement.h:
2553         * svg/SVGTextElement.cpp:
2554         (WebCore::SVGTextElement::SVGTextElement):
2555         * svg/SVGTextElement.h:
2556         (WebCore::SVGTextElement::localCoordinateSpaceTransform):
2557         * svg/SVGTextPositioningElement.cpp:
2558         * svg/SVGTextPositioningElement.h:
2559         * svg/properties/SVGAnimatedPropertyMacros.h:
2560
2561 2010-12-01  Alexander Pavlov  <apavlov@chromium.org>
2562
2563         Reviewed by Yury Semikhatsky.
2564
2565         Web Inspector: name-only property appears in style declaration but not in the Styles pane
2566         https://bugs.webkit.org/show_bug.cgi?id=49663
2567
2568         Check that at least one property has been parsed from the user input.
2569
2570         * inspector/InspectorStyleSheet.cpp:
2571         (WebCore::InspectorStyle::setPropertyText):
2572
2573 2010-12-01  Andrey Kosyakov  <caseq@chromium.org>
2574
2575         Reviewed by Pavel Feldman.
2576
2577         Web Inspector: disable cookies tab in network resource view by default, enable for chromium
2578         https://bugs.webkit.org/show_bug.cgi?id=50249
2579
2580         * inspector/front-end/NetworkItemView.js:
2581         (WebInspector.NetworkItemView):
2582         (WebInspector.NetworkItemView.prototype.resize):
2583         * inspector/front-end/Settings.js:
2584
2585 2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2586
2587         Reviewed by Xan Lopez.
2588
2589         Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGLength
2590         https://bugs.webkit.org/show_bug.cgi?id=50316
2591
2592         Introduce DECLARE_ANIMATED_LENGTH / DEFINE_ANIMATED_LENGTH, splitting up the original DECLARE_ANIMATED_PROPERTY_NEW macro
2593         in a part that goes in the .cpp file and another that remains in the header. This avoids having to include SVGNames.h
2594         in all SVG*Element files.
2595
2596         No functional changes, thus no new tests.
2597
2598         * svg/SVGAnimatedLength.h:
2599         * svg/SVGCircleElement.cpp:
2600         * svg/SVGCircleElement.h:
2601         (WebCore::SVGCircleElement::isValid):
2602         * svg/SVGCursorElement.cpp:
2603         * svg/SVGCursorElement.h:
2604         (WebCore::SVGCursorElement::isValid):
2605         * svg/SVGEllipseElement.cpp:
2606         * svg/SVGEllipseElement.h:
2607         (WebCore::SVGEllipseElement::isValid):
2608         * svg/SVGFilterElement.cpp:
2609         * svg/SVGFilterElement.h:
2610         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2611         * svg/SVGFilterPrimitiveStandardAttributes.h:
2612         * svg/SVGForeignObjectElement.cpp:
2613         (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
2614         * svg/SVGForeignObjectElement.h:
2615         (WebCore::SVGForeignObjectElement::isValid):
2616         * svg/SVGImageElement.cpp:
2617         * svg/SVGImageElement.h:
2618         (WebCore::SVGImageElement::isValid):
2619         * svg/SVGLineElement.cpp:
2620         * svg/SVGLineElement.h:
2621         (WebCore::SVGLineElement::isValid):
2622         (WebCore::SVGLineElement::supportsMarkers):
2623         * svg/SVGLinearGradientElement.cpp:
2624         * svg/SVGLinearGradientElement.h:
2625         * svg/SVGMarkerElement.cpp:
2626         (WebCore::SVGMarkerElement::SVGMarkerElement):
2627         * svg/SVGMarkerElement.h:
2628         * svg/SVGMaskElement.cpp:
2629         * svg/SVGMaskElement.h:
2630         (WebCore::SVGMaskElement::isValid):
2631         (WebCore::SVGMaskElement::needsPendingResourceHandling):
2632         * svg/SVGPatternElement.cpp:
2633         * svg/SVGPatternElement.h:
2634         (WebCore::SVGPatternElement::isValid):
2635         (WebCore::SVGPatternElement::needsPendingResourceHandling):
2636         * svg/SVGRadialGradientElement.cpp:
2637         * svg/SVGRadialGradientElement.h:
2638         * svg/SVGRectElement.cpp:
2639         * svg/SVGRectElement.h:
2640         (WebCore::SVGRectElement::isValid):
2641         * svg/SVGSVGElement.cpp:
2642         (WebCore::SVGSVGElement::SVGSVGElement):
2643         * svg/SVGSVGElement.h:
2644         (WebCore::SVGSVGElement::isValid):
2645         (WebCore::SVGSVGElement::setContainerSize):
2646         (WebCore::SVGSVGElement::containerSize):
2647         (WebCore::SVGSVGElement::hasSetContainerSize):
2648         (WebCore::SVGSVGElement::currentTranslate):
2649         (WebCore::SVGSVGElement::timeContainer):
2650         (WebCore::SVGSVGElement::isSVG):
2651         (WebCore::SVGSVGElement::rendererIsNeeded):
2652         * svg/SVGTextContentElement.cpp:
2653         * svg/SVGTextContentElement.h:
2654         (WebCore::SVGTextContentElement::isValid):
2655         (WebCore::SVGTextContentElement::isTextContent):
2656         * svg/SVGTextPathElement.cpp:
2657         * svg/SVGTextPathElement.h:
2658         * svg/SVGTextPositioningElement.h:
2659         * svg/SVGUseElement.cpp:
2660         * svg/SVGUseElement.h:
2661         (WebCore::SVGUseElement::isValid):
2662         (WebCore::SVGUseElement::setUpdatesBlocked):
2663         (WebCore::SVGUseElement::isPendingResource):
2664         * svg/properties/SVGAnimatedPropertyMacros.h:
2665
2666 2010-12-01  Anton D'Auria  <adauria@apple.com>
2667
2668         Reviewed by Kevin Decker.
2669
2670         Deny access to local and session storage in private browsing mode.
2671         https://bugs.webkit.org/show_bug.cgi?id=49329
2672
2673         * storage/Storage.cpp:
2674         (WebCore::Storage::length):
2675         (WebCore::Storage::key):
2676         (WebCore::Storage::getItem):
2677         (WebCore::Storage::contains):
2678
2679 2010-12-01  Philippe Normand  <pnormand@igalia.com>
2680
2681         Reviewed by Martin Robinson.
2682
2683         Volume control not correctly initialized
2684         https://bugs.webkit.org/show_bug.cgi?id=36299
2685
2686         Replaced the mute/volume Timers with g_timeouts which are (for
2687         now, at least) more reliable than Timers for one-shot-fire-now
2688         actions.
2689
2690         Test: media/video-volume.html
2691
2692         * platform/graphics/MediaPlayer.cpp:
2693         (WebCore::MediaPlayer::~MediaPlayer): Reset the raw pointers to 0
2694         when destructing the player.
2695         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2696         (WebCore::mediaPlayerPrivateVolumeChangeTimeoutCallback):
2697         (WebCore::mediaPlayerPrivateMuteChangeTimeoutCallback):
2698         (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
2699         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVolumeChange):
2700         (WebCore::MediaPlayerPrivateGStreamer::volumeChanged):
2701         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfMute):
2702         (WebCore::MediaPlayerPrivateGStreamer::muteChanged):
2703         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Set
2704         playbin2 volume/mute base on MediaPlayer related values.
2705         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2706
2707 2010-12-01  Patrick Gansterer  <paroga@webkit.org>
2708
2709         Reviewed by Andreas Kling.
2710
2711         Cleanup main CMakeLists.txt after r72664, r72672 and r72667
2712         https://bugs.webkit.org/show_bug.cgi?id=50232
2713
2714         * CMakeLists.txt: Removed obsolete dependencies.
2715
2716 2010-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2717
2718         Reviewed by Dirk Schulze.
2719
2720         Cleanup SVGPropertyTraits
2721         https://bugs.webkit.org/show_bug.cgi?id=50229
2722
2723         Move all template specializations for non-POD types (eg. SVGLength, SVGLengthList, etc.) from SVGPropertyTraits
2724         into the right SVG* classes, to avoid having to include a dozen SVG*.h files in SVGPropertyTraits.h, which is
2725         included by all DOM/JS/V8 binding files and SVGElement.h.
2726
2727         No new functionality, thus no new tests.
2728
2729         * GNUmakefile.am:
2730         * WebCore.gypi:
2731         * WebCore.pro:
2732         * WebCore.xcodeproj/project.pbxproj:
2733         * bindings/scripts/CodeGenerator.pm:
2734         * bindings/scripts/CodeGeneratorObjC.pm:
2735         * bindings/scripts/CodeGeneratorV8.pm:
2736         * svg/SVGAngle.h:
2737         * svg/SVGLength.h:
2738         * svg/SVGLengthList.h:
2739         * svg/SVGMarkerElement.h:
2740         * svg/SVGNumberList.h:
2741         * svg/SVGPatternElement.h:
2742         * svg/SVGPointList.h:
2743         * svg/SVGPreserveAspectRatio.h:
2744         * svg/SVGRect.h: Added.
2745         * svg/SVGSVGElement.h:
2746         * svg/SVGStringList.h:
2747         * svg/SVGSymbolElement.h:
2748         * svg/SVGTransformList.h:
2749         * svg/SVGViewElement.h:
2750         * svg/SVGViewSpec.h:
2751         * svg/properties/SVGListProperty.h:
2752         * svg/properties/SVGPropertyTraits.h:
2753         * svg/properties/SVGTransformListPropertyTearOff.h:
2754
2755 2010-11-30  Kent Tamura  <tkent@chromium.org>
2756
2757         Reviewed by Darin Adler.
2758
2759         Refactor HTMLInputElement: Move a part of HTMLInputElement::
2760         defaultEventHandler() to InputTypes
2761         https://bugs.webkit.org/show_bug.cgi?id=50097
2762
2763         Move all of keyboard-related event handling to InputType.
2764
2765         No new tests because this should not change any behavior.
2766
2767         * html/BaseButtonInputType.cpp:
2768         (WebCore::BaseButtonInputType::handleKeydownEvent):
2769         (WebCore::BaseButtonInputType::handleKeypressEvent):
2770         (WebCore::BaseButtonInputType::handleKeyupEvent):
2771         * html/BaseButtonInputType.h:
2772         * html/BaseCheckableInputType.cpp:
2773         (WebCore::BaseCheckableInputType::handleKeydownEvent):
2774         (WebCore::BaseCheckableInputType::handleKeypressEvent):
2775         * html/BaseCheckableInputType.h:
2776         * html/CheckboxInputType.cpp:
2777         (WebCore::CheckboxInputType::handleKeyupEvent):
2778         * html/CheckboxInputType.h:
2779         * html/HTMLInputElement.cpp:
2780         (WebCore::HTMLInputElement::defaultEventHandler):
2781          We remove !implicitSubmission check for callBaseClassEarly because
2782          implicitSubmission can not be true for keydown event and keypress
2783          event at this point.
2784         * html/InputType.cpp:
2785         (WebCore::InputType::shouldSubmitImplicitly):
2786          Returns true for a keypress event with "\r". Note that we don't overload
2787          this function for BUTTON, FILE, IMAGE, RESET, and SUBMIT because a
2788          keypress event with "\r" for these types returns from HTMLInputElement::defaultEventHandler()
2789          before implicit submission checking.
2790         (WebCore::InputType::handleKeypressEvent):
2791         (WebCore::InputType::handleKeyupEvent):
2792         * html/InputType.h:
2793         * html/RadioInputType.cpp:
2794         (WebCore::RadioInputType::handleKeydownEvent):
2795         (WebCore::RadioInputType::handleKeyupEvent):
2796         * html/RadioInputType.h:
2797         * html/TextFieldInputType.cpp:
2798         (WebCore::TextFieldInputType::shouldSubmitImplicitly):
2799         * html/TextFieldInputType.h:
2800
2801 2010-11-30  Patrick Gansterer  <paroga@webkit.org>
2802
2803         Reviewed by Andreas Kling.
2804
2805         Move CSS generator logic into main CMakeLists.txt file
2806         https://bugs.webkit.org/show_bug.cgi?id=50230
2807
2808         * CMakeLists.txt:
2809
2810 2010-11-30  Ojan Vafai  <ojan@chromium.org>
2811
2812         Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
2813         https://bugs.webkit.org/show_bug.cgi?id=50288
2814
2815         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
2816         Reviewed by Darin Adler.
2817         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
2818         https://bugs.webkit.org/show_bug.cgi?id=50182
2819         A display-isolated URL can only be displayed (e.g., put in an iframe,
2820         hyperlinked to) by documents from that scheme. In a sense, this is a
2821         generalization of some of the protections we give file URLs, but
2822         instead of lumping them all together into one "local" bucket, this
2823         patch creates a separate bucket for each scheme.
2824         For a while, I tried using a separate bucket for each origin. That
2825         would have played nicely with what Blob URLs are trying to do, but some
2826         "chrome" URL pages rely on being able to display other chrome URL
2827         pages, even in different origins. For example, the New Tab Page shows
2828         thumbnails from the "thumbnail" host.
2829         This patch also removes a bunch of unused code. I've also propagated
2830         the "deprecated" status of deprecatedCanDisplay to
2831         deprecatedShouldTreatURLAsLocal because that method has no other
2832         callers and is really asking for uppercase/lowercase bugs. I dream of
2833         someday removing these functions.
2834         page/SecurityOrigin.cpp:
2835         (WebCore::SecurityOrigin::canDisplay):
2836         (WebCore::SecurityOrigin::deprecatedCanDisplay):
2837         platform/SchemeRegistry.cpp:
2838         (WebCore::displayIsolatedURLSchemes):
2839         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
2840         (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
2841         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
2842         (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
2843         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
2844         platform/SchemeRegistry.h:
2845         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
2846         Reviewed by Darin Adler.
2847         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
2848          https://bugs.webkit.org/show_bug.cgi?id=50182
2849         This patch adds a Chromium API for registering schemes as
2850         display-isolated. In a subsequent patch, I'll change the "chrome"
2851         scheme in Chrome to be display isolated instead of local. That will
2852         prevent file URLs from linking to chrome URLs.
2853         public/WebSecurityPolicy.h:
2854         src/WebSecurityPolicy.cpp:
2855         (WebKit::WebSecurityPolicy::registerURLSchemeAsDisplayIsolated):
2856
2857         * page/SecurityOrigin.cpp:
2858         (WebCore::SecurityOrigin::canDisplay):
2859         (WebCore::SecurityOrigin::deprecatedCanDisplay):
2860         * platform/SchemeRegistry.cpp:
2861         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
2862         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
2863         (WebCore::SchemeRegistry::localURLSchemes):
2864         (WebCore::SchemeRegistry::shouldTreatURLAsLocal):
2865         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
2866         * platform/SchemeRegistry.h:
2867
2868 2010-11-30  Chris Fleizach  <cfleizach@apple.com>
2869
2870         Reviewed by Beth Dakin.
2871
2872         WebKit duplicates AXValue and AXDescription on abbr
2873         https://bugs.webkit.org/show_bug.cgi?id=50260
2874
2875         stringValue() and accessibilityDescription() were returning the same value for static text with
2876         an aria-label. Static text elements should not have an accessibility description, they
2877         should only have a stringValue.
2878
2879         Test: platform/mac/accessibility/static-text-with-aria-label.html
2880
2881         * accessibility/AccessibilityRenderObject.cpp:
2882         (WebCore::AccessibilityRenderObject::ariaAccessibilityDescription):
2883         (WebCore::AccessibilityRenderObject::accessibilityDescription):
2884         (WebCore::AccessibilityRenderObject::text):
2885         * accessibility/AccessibilityRenderObject.h:
2886
2887 2010-11-30  Ryosuke Niwa  <rniwa@webkit.org>
2888
2889         Reviewed by Darin Adler.
2890
2891         [HTML5] Rename member variables of HTMLScriptElement
2892         https://bugs.webkit.org/show_bug.cgi?id=49705
2893
2894         Renamed m_wasCreatedByParser to m_wasInsertedByParser, m_requested to m_isExternalScript,
2895         m_isEvaluated to m_wasAlreadyStarted, and m_firedLoad to m_haveFiredLoad.
2896
2897         Also made ScriptElement's haveFiredLoadEvent and removed HTMLScriptElement's haveFiredLoadEvent.
2898         This effectively adds the same function to SVGScriptElement, which isn't currently used anywhere.
2899
2900         No new tests are added since this is a refactoring.
2901
2902         * dom/ScriptElement.cpp:
2903         (WebCore::ScriptElement::ScriptElement):
2904         (WebCore::ScriptElement::insertedIntoDocument):
2905         (WebCore::ScriptElement::childrenChanged):
2906         (WebCore::ScriptElement::finishParsingChildren):
2907         (WebCore::ScriptElement::requestScript):
2908         (WebCore::ScriptElement::evaluateScript):
2909         (WebCore::ScriptElement::executeScript):
2910         (WebCore::ScriptElement::ignoresLoadRequest):
2911         * dom/ScriptElement.h:
2912         (WebCore::ScriptElement::haveFiredLoadEvent):
2913         (WebCore::ScriptElement::setHaveFiredLoadEvent):
2914         (WebCore::ScriptElement::wasInsertedByParser):
2915         (WebCore::ScriptElement::wasAlreadyStarted):
2916         * html/HTMLScriptElement.cpp:
2917         (WebCore::HTMLScriptElement::HTMLScriptElement):
2918         (WebCore::HTMLScriptElement::create):
2919         (WebCore::HTMLScriptElement::cloneElementWithoutAttributesAndChildren):
2920         * html/HTMLScriptElement.h:
2921         * svg/SVGScriptElement.cpp:
2922         (WebCore::SVGScriptElement::SVGScriptElement):
2923         (WebCore::SVGScriptElement::create):
2924         (WebCore::SVGScriptElement::svgAttributeChanged):
2925         (WebCore::SVGScriptElement::insertedIntoDocument):
2926         (WebCore::SVGScriptElement::dispatchLoadEvent):
2927         (WebCore::SVGScriptElement::cloneElementWithoutAttributesAndChildren):
2928         * svg/SVGScriptElement.h:
2929
2930 2010-11-30  Darin Adler  <darin@apple.com>
2931
2932         Rolled back most of the FileReaderLoader changes to fix 32-bit builds.
2933
2934         * fileapi/FileReaderLoader.cpp: Changed types back to unsigned from unsigned long long
2935         * fileapi/FileReaderLoader.h: Ditto.
2936
2937 2010-11-30  Dan Bernstein  <mitz@apple.com>
2938
2939         Reviewed by Darin Adler.
2940
2941         Text search should treat all matches as word-start matches when the target begins with a separator character
2942         https://bugs.webkit.org/show_bug.cgi?id=50302
2943
2944         * editing/TextIterator.cpp:
2945         (WebCore::SearchBuffer::SearchBuffer): Disable the AtWordStarts option if it was specified and
2946         the target string begins with one of the "separator" characters.
2947
2948 2010-11-30  Pavel Feldman  <pfeldman@chromium.org>
2949
2950         Reviewed by Dave Hyatt.
2951
2952         Web Inspector: [CRASH] on "Revert to this revision" of style with import.
2953         https://bugs.webkit.org/show_bug.cgi?id=50256
2954
2955         Rolled back one line from http://trac.webkit.org/changeset/36904 as agreed with
2956         David.
2957
2958         * css/CSSImportRule.cpp:
2959         (WebCore::CSSImportRule::insertedIntoParent):
2960
2961 2010-11-30  Martin Robinson  <mrobinson@igalia.com>
2962
2963         Reviewed by Xan Lopez.
2964
2965         [GTK] fillRect shadow has incorrect behavior when using ctx.scale(x,y)
2966         https://bugs.webkit.org/show_bug.cgi?id=50283
2967
2968         Adjust the mask rectangle for Cairo shadows, so that the origin
2969         is not affected by the scale of the transformation matrix.
2970
2971         * platform/graphics/ContextShadow.h: Make this Qt-only member global.
2972         * platform/graphics/cairo/ContextShadowCairo.cpp:
2973         (WebCore::ContextShadow::beginShadowLayer): Save the original layer area.
2974         (WebCore::ContextShadow::endShadowLayer): If the target context has a scale
2975         transform, make sure not to scale the blur distance when blitting the shadow.
2976
2977 2010-11-30  Darin Adler  <darin@apple.com>
2978
2979         Reviewed by Alexey Proskuryakov.
2980
2981         Make ProgressEvent 64-bit instead of 32-bit
2982         https://bugs.webkit.org/show_bug.cgi?id=50289
2983
2984         * dom/ProgressEvent.cpp:
2985         (WebCore::ProgressEvent::ProgressEvent): Changed arguments to unsigned long long.
2986         (WebCore::ProgressEvent::initProgressEvent): Ditto.
2987
2988         * dom/ProgressEvent.h: Fixed formatting. Changed types to unsigned long long.
2989         Made isProgressEvent override private.
2990
2991         * dom/ProgressEvent.idl: Tweaked formatting and changed types to unsigned long long.
2992
2993         * fileapi/FileReader.cpp: Removed unneeded includes.
2994         Used static on const so we'd get an error if the same constant was in a header.
2995         (WebCore::FileReader::didReceiveData): Removed unneeded WTF prefix.
2996         (WebCore::FileReader::fireEvent): Got rid of local variables that would narrow
2997         bytes loaded and total bytes to 32-bit.
2998
2999         * fileapi/FileReaderLoader.cpp:
3000         (WebCore::FileReaderLoader::didReceiveResponse): Restructured code a bit and
3001         added comments. Also added handling for when ArrayBuffer::create returns 0.
3002         (WebCore::FileReaderLoader::didReceiveData): Fixed handling of case where more
3003         data arrives than is expected so it won't overrun the buffer. Also broke an
3004         assertion into two and improved a comment.
3005
3006         * fileapi/FileReaderLoader.h: Changed bytesLoaded and totalBytes to unsigned long long.
3007
3008         * fileapi/FileWriter.cpp:
3009         (WebCore::FileWriter::fireEvent): Removed narrowing casts in call to
3010         ProgressEvent::create.
3011
3012         * html/canvas/ArrayBuffer.cpp:
3013         (WebCore::ArrayBuffer::tryAllocate): Added a comment because the code here seems wrong.
3014
3015         * xml/XMLHttpRequest.cpp:
3016         (WebCore::XMLHttpRequest::didSendData): Removed narrowing casts in call to
3017         XMLHttpRequestProgressEvent::create.
3018         (WebCore::XMLHttpRequest::didReceiveData): Removed narrowing casts in call to
3019         dispatchProgressEvent.
3020
3021         * xml/XMLHttpRequestProgressEvent.h: Fixed formatting. Changed types to unsigned long long.
3022         Made isXMLHttpRequestProgressEvent override private.
3023
3024         * xml/XMLHttpRequestProgressEvent.idl: Tweaked formatting and changed types to unsigned long long.
3025
3026         * xml/XMLHttpRequestProgressEventThrottle.cpp:
3027         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): Changed types to
3028         unsigned long long.
3029
3030         * xml/XMLHttpRequestProgressEventThrottle.h: Changed types to unsigned long long.
3031
3032 2010-11-30  Yael Aharon  <yael.aharon@nokia.com>
3033
3034         Reviewed by Darin Adler.
3035
3036         Progress and meter elements should take a form in their constructor like any other form control.
3037         https://bugs.webkit.org/show_bug.cgi?id=50195
3038
3039         Tests: fast/dom/HTMLMeterElement/meter-element-form.html
3040                fast/dom/HTMLProgressElement/progress-element-form.html
3041
3042         * html/HTMLMeterElement.cpp:
3043         (WebCore::HTMLMeterElement::HTMLMeterElement):
3044         (WebCore::HTMLMeterElement::create):
3045         * html/HTMLMeterElement.h:
3046         * html/HTMLProgressElement.h:
3047         * html/HTMLTagNames.in:
3048
3049 2010-11-30  Tony Chang  <tony@chromium.org>
3050
3051         Reviewed by Adam Barth.
3052
3053         [chromium] fix get-int-identifier-special-values.html using TestNetscapePlugIn
3054         https://bugs.webkit.org/show_bug.cgi?id=49036
3055
3056         No new tests: Covered by plugins/npruntime/get-int-identifier-special-values.html
3057
3058         In http://codereview.chromium.org/11574, the forked chromium test
3059         plugin changed how it testGetIntIdentifier to work around a change
3060         caused by a silverlight specific plugin fix:
3061         http://codereview.chromium.org/11569/diff/1/2
3062
3063         It's not clear to me that this change is needed anymore since
3064         silverlight has had multiple releases, testing without this patch
3065         works on a test windows build, and safari win seems to run silverlight
3066         without this either.  Since there's no test for this behavior, I'm
3067         rolling it out so we can match the upstream test.
3068
3069         * bindings/v8/V8NPUtils.cpp:
3070         (WebCore::convertV8ObjectToNPVariant):
3071
3072 2010-11-30  Chris Guillory  <chris.guillory@google.com>
3073
3074         Reviewed by Chris Fleizach.
3075
3076         Computing style on a stale node while sending pending accessibility notification.
3077         https://bugs.webkit.org/show_bug.cgi?id=50162
3078
3079         Retain node pointer members of AccessibilityImageMapLink.
3080
3081         Test: accessibility/image-map-title-causes-crash.html
3082
3083         * accessibility/AccessibilityImageMapLink.cpp:
3084         (WebCore::AccessibilityImageMapLink::parentObject):
3085         (WebCore::AccessibilityImageMapLink::anchorElement):
3086         (WebCore::AccessibilityImageMapLink::url):
3087         (WebCore::AccessibilityImageMapLink::elementRect):
3088         * accessibility/AccessibilityImageMapLink.h:
3089         (WebCore::AccessibilityImageMapLink::areaElement):
3090         (WebCore::AccessibilityImageMapLink::mapElement):
3091         (WebCore::AccessibilityImageMapLink::node):
3092         * dom/Document.cpp:
3093         (WebCore::Document::clearAXObjectCache):
3094
3095 2010-11-30  James Robinson  <jamesr@chromium.org>
3096
3097         Reviewed by Tony Chang.
3098
3099         Build fix - add parens in foo || bar && baz to make gcc happy
3100         https://bugs.webkit.org/show_bug.cgi?id=50276
3101
3102         gcc 4.4 warns that statements of the form "foo || bar && baz".  It wants
3103         parens around the "bar && baz" part to make it clear which way the logical
3104         operators bind.
3105
3106         * editing/TextIterator.cpp:
3107         (WebCore::SearchBuffer::search):
3108
3109 2010-11-30  Daniel Bates  <dbates@rim.com>
3110
3111         Reviewed by David Hyatt.
3112
3113         Focused <area> should use CSS properties of <area> instead of associated <img>
3114         https://bugs.webkit.org/show_bug.cgi?id=49888
3115
3116         Fixes an issue where the CSS properties of an <area> were not used when
3117         the <area> was focused.
3118
3119         Currently, when focusing an <area> (say by pressing option + tab in Mac
3120         Safari) we use the CSS style information for the <img> associated with
3121         the <area>. Instead, we should use the CSS style information for the
3122         focused <area>. In particular, this will make the us honor the outline-
3123         color property of a focused <area> when drawing its focus ring.
3124
3125         Tests: fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map.html
3126                fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map.html
3127                fast/images/imagemap-focus-ring-outline-color.html
3128
3129         * rendering/RenderImage.cpp:
3130         (WebCore::RenderImage::paintFocusRing): Use the style information of
3131         the focused <area> when drawing the focus ring for it.
3132
3133 2010-11-30  Tony Chang  <tony@chromium.org>
3134
3135         Reviewed by James Robinson.
3136
3137         [chromium] enable WebCore compiler warnings on Linux take 3
3138         https://bugs.webkit.org/show_bug.cgi?id=50258
3139
3140         * WebCore.gyp/WebCore.gyp:
3141
3142 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
3143
3144         Reviewed by Chris Fleizach.
3145
3146         [GTK] Implement ROLE_COMBO_BOX
3147         https://bugs.webkit.org/show_bug.cgi?id=25678
3148
3149         Implement the remaining bits for combo boxes.
3150
3151         This patch finishes the implementation, from the point of view of
3152         the Atk library, of those objects exposed to ATK as combo boxes,
3153         and their related elements (menus and menu items). It therefore
3154         implements the proper interfaces for each type of object related
3155         to combo boxes (AtkSelection for the combo box, AtkText for every
3156         menu item and AtkAction for the combo box, the menu and the menu
3157         items), takes care of emitting the proper signals when focus or a
3158         given a selection changes and adds a new unit test to check all
3159         this new stuff.
3160
3161         Make possible to ask an AccessibleMenuListOption for a sensible
3162         string representation, so far only available through the private
3163         and MSAA related method nameForMSAA. Just moved the implementation
3164         of that method to an overriden version of stringValue(), which is
3165         platform independent, and called that from nameForMSAA().
3166
3167         * accessibility/AccessibilityMenuListOption.h:
3168         * accessibility/AccessibilityMenuListOption.cpp:
3169         (WebCore::AccessibilityMenuListOption::nameForMSAA): Just call to
3170         stringValue(), which holds from now on that used to be here.
3171         (WebCore::AccessibilityMenuListOption::stringValue): New, override
3172         of AccessibilityObject::stringValue() to return a proper string.
3173
3174         Emit the missing signals when a selection is made.
3175
3176         * accessibility/gtk/AXObjectCacheAtk.cpp:
3177         (WebCore::AXObjectCache::postPlatformNotification): Emit the usual
3178         'focus' signals when a selection is made over the combo box.
3179
3180         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3181         (setAtkStateSetFromCoreObject): Ensure the EXPANDABLE and EXPANDED
3182         Atk states are added to the state set when needed.
3183         (listObjectForSelection): New, returns the proper list object (the
3184         one holding the list of available options as its children) for an
3185         specific AtkObject implementing AtkSelection. This is needed
3186         because sometimes the selectable options are not directly children
3187         of the AtkSelection object (i.e. a combo box has a 'menu' object
3188         as its only child of it, holding the list of options as children).
3189         (optionFromList): Use listObjectForSelection() to get the actual
3190         object holding the list of children as the available options.
3191         (optionFromSelection): Add support for combo boxes.
3192         (webkit_accessible_selection_add_selection): Ditto.
3193         (webkit_accessible_selection_clear_selection): Ditto.
3194         (webkit_accessible_selection_get_selection_count): Ditto.
3195         (webkit_accessible_selection_is_child_selected): Ditto.
3196         (webkit_accessible_selection_remove_selection): Ditto.
3197         (webkit_accessible_text_get_text): Makes sure stringValue() is
3198         considered to get the result substring when it was already
3199         considered when checking the maximum text length for the object.
3200         (getInterfaceMaskFromObject): Make sure the AtkSelection interface
3201         is implemented for the combo boxes, that the AtkText is
3202         implemented for the menu items and that the AtkAction interface is
3203         now implemented for every object (WebCore will decide what to do).
3204
3205         Avoid a segfault crash when using this from unit tests.
3206
3207         * platform/gtk/PopupMenuGtk.cpp:
3208         (WebCore::PopupMenuGtk::show): Make sure we got a valid GdkWindow
3209         before calling gdk_window_get_origin() over it.
3210
3211 2010-11-30  Andreas Kling  <kling@webkit.org>
3212
3213         Reviewed by Tor Arne Vestbø.
3214
3215         [Qt] GraphicsContext: Avoid unnecessarily copying the painter's QTransform
3216
3217         Stash the transform in a const reference (QPainter::transform() returns one)
3218         instead of making a copy in the shadow drawing parts of fillPath, strokePath and fillRect.
3219
3220         * platform/graphics/qt/GraphicsContextQt.cpp:
3221         (WebCore::GraphicsContext::fillPath):
3222         (WebCore::GraphicsContext::strokePath):
3223         (WebCore::GraphicsContext::fillRect):
3224
3225 2010-11-30  Vangelis Kokkevis  <vangelis@chromium.org>
3226
3227         Reviewed by Simon Fraser.
3228
3229         Provide more fine grained control to ports over when to turn on 
3230         accelerated compositing.
3231         https://bugs.webkit.org/show_bug.cgi?id=49998
3232
3233         The RenderLayerCompositor now checks with the chrome client whether
3234         3d transforms, video, plugins, canvas and animation require
3235         switching over to the composited path. Layers that overlap composited
3236         content will still turn into composited layers regardless of the
3237         setting.
3238
3239         * css/MediaQueryEvaluator.cpp:
3240         (WebCore::transform_3dMediaFeatureEval):
3241         * page/ChromeClient.h:
3242         (WebCore::ChromeClient::allowedCompositingTriggers):
3243         * rendering/RenderLayer.cpp:
3244         (WebCore::RenderLayer::canRender3DTransforms):
3245         (WebCore::RenderLayer::updateTransform):
3246         (WebCore::RenderLayer::currentTransform):
3247         * rendering/RenderLayer.h:
3248         * rendering/RenderLayerBacking.cpp:
3249         (WebCore::RenderLayerBacking::updateLayerTransform):
3250         * rendering/RenderLayerCompositor.cpp:
3251         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
3252         (WebCore::RenderLayerCompositor::cacheAcceleratedCompositingFlags):
3253         (WebCore::RenderLayerCompositor::canRender3DTransforms):
3254         (WebCore::RenderLayerCompositor::requiresCompositingLayer):
3255         (WebCore::RenderLayerCompositor::requiresCompositingForTransform):
3256         (WebCore::RenderLayerCompositor::requiresCompositingForVideo):
3257         (WebCore::RenderLayerCompositor::requiresCompositingForCanvas):
3258         (WebCore::RenderLayerCompositor::requiresCompositingForPlugin):
3259         (WebCore::RenderLayerCompositor::requiresCompositingForAnimation):
3260         * rendering/RenderLayerCompositor.h:
3261
3262 2010-11-30  Xan Lopez  <xlopez@igalia.com>
3263
3264         Reviewed by Martin Robinson.
3265
3266         [GTK] Plug leak in SoupCache
3267         https://bugs.webkit.org/show_bug.cgi?id=50142
3268
3269         Free the cache file contents when we don't need them anymore.
3270
3271         * platform/network/soup/cache/webkit/soup-cache.c:
3272         (webkit_soup_cache_load):
3273
3274 2010-11-30  Andras Becsi  <abecsi@webkit.org>
3275
3276         Reviewed by Csaba Osztrogonác.
3277
3278         [Qt][V8] Make QtWebKit with V8 build on Linux.
3279         https://bugs.webkit.org/show_bug.cgi?id=50244
3280
3281         No new tests needed.
3282
3283         * WebCore.pri: add missing idl file
3284         * WebCore.pro: enable Linux build
3285         * bindings/scripts/CodeGeneratorV8.pm: add missing headers
3286         * bindings/v8/ScriptControllerQt.cpp: fix instantiation
3287         (WebCore::ScriptController::qtScriptEngine):
3288         * bindings/v8/V8GCController.cpp: fix guard
3289         (WebCore::V8GCController::checkMemoryUsage):
3290         * inspector/CodeGeneratorInspector.pm: add missing header
3291         * loader/ResourceLoadScheduler.cpp: ditto
3292         * loader/cache/MemoryCache.cpp: ditto
3293         * loader/loader.cpp: ditto
3294
3295 2010-11-30  David Hyatt  <hyatt@apple.com>
3296
3297         Reviewed by Simon Fraser.
3298         
3299         https://bugs.webkit.org/show_bug.cgi?id=50183
3300         
3301         Code got commented out by accident during render tree refactoring last year.  Put the code back in, since
3302         it hurts performance to have that line commented out.
3303
3304         In order to put this code back in, I had to fix some bugs with preferred width computations and
3305         overflow: scroll.  Make the pref widths computation create the scrollbar if it doesn't exist yet.
3306
3307         Make sure the scrollbar size is included prior to checking for defined width/min-width/max-width values.  Otherwise
3308         the scrollbar inflates the width beyond the fixed size that was specified.
3309         
3310         For table cells, there is an additional wrinkle.  Make sure not to include the scrollbar size as part of the minimum
3311         intrinsic width so that we don't incorrectly grow.
3312
3313         * rendering/RenderBlock.cpp:
3314         (WebCore::RenderBlock::layoutPositionedObjects):
3315         (WebCore::RenderBlock::computePreferredLogicalWidths):
3316         * rendering/RenderFlexibleBox.cpp:
3317         (WebCore::RenderFlexibleBox::computePreferredLogicalWidths):
3318
3319 2010-11-30  Vitaly Repeshko  <vitalyr@chromium.org>
3320
3321         Unreviewed.
3322
3323         Attempt to fix windows debug chromium build.
3324
3325         * html/TimeInputType.cpp: Added include providing isfinite.
3326
3327 2010-11-30  Darin Adler  <darin@apple.com>
3328
3329         Reviewed by Jon Honeycutt.
3330
3331         DOM binding code generator scripts import unused File::stat Perl module
3332         https://bugs.webkit.org/show_bug.cgi?id=50250
3333
3334         * bindings/scripts/CodeGeneratorCPP.pm: Removed "using File::stat".
3335         * bindings/scripts/CodeGeneratorJS.pm: Ditto.
3336         * bindings/scripts/CodeGeneratorObjC.pm: Ditto.
3337         * bindings/scripts/CodeGeneratorV8.pm: Ditto.
3338
3339 2010-11-30  Pavel Feldman  <pfeldman@chromium.org>
3340
3341         Reviewed by Yury Semikhatsky.
3342
3343         Web Inspector: implement "Revert to this revision" in resources panel.
3344         https://bugs.webkit.org/show_bug.cgi?id=50107
3345
3346         * inspector/Inspector.idl:
3347         * inspector/InspectorCSSAgent.cpp:
3348         (WebCore::InspectorCSSAgent::setStyleSheetText2):
3349         * inspector/InspectorCSSAgent.h:
3350         * inspector/InspectorStyleSheet.cpp:
3351         (WebCore::InspectorStyleSheet::reparseStyleSheet):
3352         * inspector/front-end/CSSStyleModel.js:
3353         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
3354         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
3355         (WebInspector.CSSStyleModel.prototype._onRevert):
3356         * inspector/front-end/Resource.js:
3357         (WebInspector.Resource.prototype.get contentTimestamp):
3358         (WebInspector.Resource.prototype.setInitialContent):
3359         (WebInspector.Resource.prototype.isLocallyModified):
3360         (WebInspector.Resource.prototype.setContent.else.finished):
3361         (WebInspector.Resource.prototype.setContent):
3362         (WebInspector.Resource.prototype.revertToThis.callback):
3363         (WebInspector.Resource.prototype.revertToThis):
3364         (WebInspector.Resource.prototype.get baseRevision):
3365         (WebInspector.Resource.prototype._innerRequestContent):
3366         * inspector/front-end/ResourcesPanel.js:
3367         (WebInspector.ResourcesPanel.prototype._showResourceView):
3368         (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
3369         (WebInspector.ResourceRevisionTreeElement):
3370         (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
3371         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
3372         (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
3373         * inspector/front-end/ScriptsPanel.js:
3374         (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
3375         (WebInspector.ScriptsPanel.prototype.editScriptSource):
3376         * inspector/front-end/SourceView.js:
3377         (WebInspector.SourceView.prototype._editLine):
3378         (WebInspector.SourceView.prototype._editLineComplete):
3379         (WebInspector.SourceView.prototype._revertEditLine):
3380
3381 2010-11-30  Adam Roben  <aroben@apple.com>
3382
3383         Clean up WebCore.vcproj's bindings filter
3384
3385         I added files that we compile (via an all-in-one file) but weren't in
3386         the .vcproj, removed files that no longer exist, and added the scripts
3387         we use.
3388
3389         Fixes <http://webkit.org/b/50248> WebCore.vcproj's bindings filter is
3390         out-of-date
3391
3392         Reviewed by Darin Adler.
3393
3394         * WebCore.vcproj/WebCore.vcproj:
3395
3396 2010-11-30  Adam Roben  <aroben@apple.com>
3397
3398         Move JSIDB* files to the DerivedSources filter
3399
3400         This correctly reflects their location on disk. (They were formerly
3401         listed under bindings/js.)
3402
3403         * WebCore.vcproj/WebCore.vcproj:
3404
3405 2010-11-30  Xiaomei Ji  <xji@chromium.org>
3406
3407         Reviewed by David Hyatt.
3408
3409         Remove clampNegativeToZero in adjustScrollPositionWithinRange.
3410         https://bugs.webkit.org/show_bug.cgi?id=50203
3411
3412         * platform/ScrollView.cpp:
3413         (WebCore::ScrollView::adjustScrollPositionWithinRange):
3414
3415 2010-11-30  Adam Roben  <aroben@apple.com>
3416
3417         Remove duplicate files from WebCore.vcproj
3418
3419         Rubber-stamped by Steve Falkenburg.
3420
3421         * WebCore.vcproj/WebCore.vcproj:
3422
3423 2010-11-30  Adam Roben  <aroben@apple.com>
3424
3425         Let VS do its thang with WebCore.vcproj
3426
3427         I just removed and readded AnimationBase.cpp.
3428
3429         Rubber-stamped by Steve Falkenburg.
3430
3431         * WebCore.vcproj/WebCore.vcproj:
3432
3433 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
3434
3435         Reviewed by Chris Fleizach.
3436
3437         ASSERT failing for combo boxes when selection changes
3438         https://bugs.webkit.org/show_bug.cgi?id=50062
3439
3440         Don't call listBoxOnChange for elements using menu lists.
3441
3442         Test: fast/forms/select-option-accesskey-crash.html
3443
3444         * dom/SelectElement.cpp:
3445         (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
3446         to decide whether to call menuListOnChange() or listBoxOnChange()
3447         instead of always calling listBoxOnChange().
3448
3449 2010-11-30  Andreas Kling  <kling@webkit.org>
3450
3451         Reviewed by Dirk Schulze.
3452
3453         GraphicsContext: Remove "current path" and have strokePath, fillPath and clipPath take a Path argument.
3454         https://bugs.webkit.org/show_bug.cgi?id=48516
3455
3456         No new tests, this is refactoring only.
3457
3458         fillPath() -> fillPath(const Path&)
3459         strokePath() -> strokePath(const Path&)
3460         clipPath(WindRule) -> clipPath(const Path&, WindRule)
3461
3462         drawPath() was only used by CG, so made it PLATFORM(CG) specific.
3463
3464         The Qt, CG and Cairo implementations are best-effort.
3465         For the rest, I've put beginPath/addPath and FIXMEs in the three affected methods.
3466
3467         * WebCore.exp.in:
3468         * html/canvas/CanvasRenderingContext2D.cpp:
3469         (WebCore::CanvasRenderingContext2D::fill):
3470         (WebCore::CanvasRenderingContext2D::stroke):
3471         * inspector/InspectorController.cpp:
3472         (WebCore::drawOutlinedQuad):
3473         * mathml/RenderMathMLRoot.cpp:
3474         (WebCore::RenderMathMLRoot::paint):
3475         * mathml/RenderMathMLSquareRoot.cpp:
3476         (WebCore::RenderMathMLSquareRoot::paint):
3477         * platform/graphics/GraphicsContext.h:
3478         * platform/graphics/GraphicsContextPrivate.h:
3479         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3480         (WebCore::GraphicsContext::fillPath):
3481         (WebCore::GraphicsContext::strokePath):
3482         (WebCore::GraphicsContext::clipPath):
3483         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
3484         * platform/graphics/cg/GraphicsContextCG.cpp:
3485         (WebCore::GraphicsContext::drawEllipse):
3486         (WebCore::addConvexPolygonToPath):
3487         (WebCore::GraphicsContext::drawConvexPolygon):
3488         (WebCore::GraphicsContext::clipConvexPolygon):
3489         (WebCore::GraphicsContext::drawPath):
3490         (WebCore::GraphicsContext::fillPath):
3491         (WebCore::GraphicsContext::strokePath):
3492         (WebCore::GraphicsContext::fillRoundedRect):
3493         (WebCore::GraphicsContext::clipPath):
3494         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
3495         (WebCore::GraphicsContext::strokePath):
3496         (WebCore::GraphicsContext::fillPath):
3497         * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
3498         (WebCore::GraphicsContext::fillPath):
3499         (WebCore::GraphicsContext::strokePath):
3500         (WebCore::GraphicsContext::clipPath):
3501         * platform/graphics/qt/GraphicsContextQt.cpp:
3502         (WebCore::GraphicsContext::restorePlatformState):
3503         (WebCore::GraphicsContext::fillPath):
3504         (WebCore::GraphicsContext::strokePath):
3505         (WebCore::GraphicsContext::clipPath):
3506         (WebCore::GraphicsContext::strokeRect):
3507         (WebCore::GraphicsContext::translate):
3508         (WebCore::GraphicsContext::rotate):
3509         (WebCore::GraphicsContext::scale):
3510         (WebCore::GraphicsContext::concatCTM):
3511         * platform/graphics/skia/GraphicsContextSkia.cpp:
3512         (WebCore::GraphicsContext::clipPath):
3513         (WebCore::GraphicsContext::fillPath):
3514         (WebCore::GraphicsContext::strokePath):
3515         * platform/graphics/wince/GraphicsContextWinCE.cpp:
3516         (WebCore::GraphicsContext::fillPath):
3517         (WebCore::GraphicsContext::strokePath):
3518         (WebCore::GraphicsContext::clipPath):
3519         * platform/graphics/wx/GraphicsContextWx.cpp:
3520         (WebCore::GraphicsContext::clipPath):
3521         (WebCore::GraphicsContext::fillPath):
3522         (WebCore::GraphicsContext::strokePath):
3523         * rendering/RenderBoxModelObject.cpp:
3524         (WebCore::RenderBoxModelObject::paintBorder):
3525         (WebCore::RenderBoxModelObject::paintBoxShadow):
3526         * rendering/RenderEmbeddedObject.cpp:
3527         (WebCore::RenderEmbeddedObject::paintReplaced):
3528         * rendering/RenderObject.cpp:
3529         (WebCore::RenderObject::drawBoxSideFromPath):
3530         * rendering/RenderSVGResource.h:
3531         (WebCore::RenderSVGResource::postApplyResource):
3532         * rendering/RenderSVGResourceClipper.cpp:
3533         (WebCore::RenderSVGResourceClipper::pathOnlyClipping):
3534         * rendering/RenderSVGResourceFilter.cpp:
3535         (WebCore::RenderSVGResourceFilter::postApplyResource):
3536         * rendering/RenderSVGResourceFilter.h:
3537         * rendering/RenderSVGResourceGradient.cpp:
3538         (WebCore::RenderSVGResourceGradient::applyResource):
3539         * rendering/RenderSVGResourceGradient.h:
3540         * rendering/RenderSVGResourcePattern.cpp:
3541         (WebCore::RenderSVGResourcePattern::postApplyResource):
3542         * rendering/RenderSVGResourcePattern.h:
3543         * rendering/RenderSVGResourceSolidColor.cpp:
3544         (WebCore::RenderSVGResourceSolidColor::postApplyResource):
3545         * rendering/RenderSVGResourceSolidColor.h:
3546         * rendering/SVGRenderSupport.cpp:
3547         (WebCore::SVGRenderSupport::finishRenderSVGContent):
3548         * rendering/svg/RenderSVGPath.cpp:
3549         (WebCore::RenderSVGPath::fillAndStrokePath):
3550         * rendering/svg/SVGInlineTextBox.cpp:
3551         (WebCore::SVGInlineTextBox::releasePaintingResource):
3552         (WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting):
3553         (WebCore::SVGInlineTextBox::paintDecorationWithStyle):
3554         * rendering/svg/SVGInlineTextBox.h:
3555         * svg/SVGFont.cpp:
3556         (WebCore::Font::drawTextUsingSVGFont):
3557
3558 2010-11-30  Alexey Proskuryakov  <ap@apple.com>
3559
3560         Reviewed by Darin Adler and Geoff Garen.
3561
3562         https://bugs.webkit.org/show_bug.cgi?id=44152
3563         <rdar://problem/8324423> CSSOM should match DOM in discarding wrapper-less parents.
3564
3565         We have existing behaviors where parent objects in detached subtrees are not preserved:
3566         - if a root of a node tree doesn't have a wrapper, it's immediately destroyed, making
3567         its children parentNode attribute null;
3568         - relationship between a <style> or <link> node and its stylesheet is immediately broken
3569         when the node is removed from document (in this case, regardless of wrapper existence).
3570
3571         Both match Firefox. For consistency, CSSOM should do the same. In fact, it already partially
3572         does - CSSRule.parentRule gets zeroed out when the parent rule is destroyed.
3573
3574         Tests: fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
3575                fast/dom/StyleSheet/detached-stylesheet-without-wrapper.html
3576
3577         * css/StyleSheet.cpp: (WebCore::StyleSheet::~StyleSheet): Clear out child rule parent.
3578
3579         * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::insertedIntoDocument): Keep
3580         the new assertion from firing. This function was adding a rule to style sheet, without
3581         telling the rule about it.
3582
3583 2010-11-30  Steve Falkenburg  <sfalken@apple.com>
3584
3585         Reviewed by Adam Roben.
3586
3587         All projects on Windows should use cmd files for build events
3588         https://bugs.webkit.org/show_bug.cgi?id=50213
3589
3590         * WebCore.vcproj/QTMovieWinCommon.vsprops:
3591         * WebCore.vcproj/QTMovieWinPostBuild.cmd: Added.
3592         * WebCore.vcproj/QTMovieWinPreBuild.cmd: Added.
3593         * WebCore.vcproj/WebCoreCommon.vsprops:
3594         * WebCore.vcproj/WebCorePostBuild.cmd: Added.
3595         * WebCore.vcproj/WebCorePreBuild.cmd: Added.
3596
3597 2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>
3598
3599         Unreviewed, rolling out r72914.
3600         http://trac.webkit.org/changeset/72914
3601         https://bugs.webkit.org/show_bug.cgi?id=50241
3602
3603         "pfeldman has a revision management patch both for CSS and JS"
3604         (Requested by apavlov on #webkit).
3605
3606         * English.lproj/localizedStrings.js:
3607         * inspector/InspectorStyleSheet.cpp:
3608         (WebCore::InspectorStyleSheet::reparseStyleSheet):
3609         * inspector/front-end/CSSStyleModel.js:
3610         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
3611         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
3612         (WebInspector.CSSStyleSheet.prototype.getText):
3613         (WebInspector.CSSStyleSheet.prototype.setText):
3614         * inspector/front-end/ResourcesPanel.js:
3615         (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
3616         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
3617
3618 2010-11-25  Satish Sampath  <satish@chromium.org>
3619
3620         Reviewed by Kent Tamura.
3621
3622         Fix rendering of speech button when setting the attribute dynamically.
3623         https://bugs.webkit.org/show_bug.cgi?id=50077
3624
3625         * html/HTMLInputElement.cpp:
3626         (WebCore::HTMLInputElement::parseMappedAttribute):
3627         * rendering/RenderTextControlSingleLine.cpp:
3628         (WebCore::RenderTextControlSingleLine::speechAttributeChanged):
3629         * rendering/RenderTextControlSingleLine.h:
3630
3631 2010-11-30  Alexander Pavlov  <apavlov@chromium.org>
3632
3633         Reviewed by Yury Semikhatsky.
3634
3635         Web Inspector: Enable switching between revisions of stylesheets
3636         https://bugs.webkit.org/show_bug.cgi?id=50227
3637
3638         Drive-by fix: styleSheetChanged() call needed after a stylesheet reparsing on setStyleSheetText2().
3639
3640         * English.lproj/localizedStrings.js:
3641         * inspector/InspectorStyleSheet.cpp:
3642         (WebCore::InspectorStyleSheet::reparseStyleSheet):
3643         * inspector/front-end/CSSStyleModel.js:
3644         (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
3645         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
3646         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
3647         (WebInspector.CSSStyleSheet.prototype.getText):
3648         * inspector/front-end/ResourcesPanel.js:
3649         (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
3650         (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
3651         (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
3652
3653 2010-11-30  John Knottenbelt  <jknotten@chromium.org>
3654
3655         Reviewed by David Levin.
3656
3657         V8 binding for DOMTimeStamp should be Number, not Date
3658         https://bugs.webkit.org/show_bug.cgi?id=49963
3659
3660         Test: fast/dom/domtimestamp-is-number.html
3661
3662         * bindings/scripts/CodeGeneratorV8.pm:
3663
3664 2010-11-30  Renata Hodovan  <reni@inf.u-szeged.hu>
3665
3666         Reviewed by Andreas Kling.
3667
3668         [Qt] Leak with GraphicsContext::takeOwnershipOfPlatformContext()
3669         https://bugs.webkit.org/show_bug.cgi?id=49916
3670
3671         Change the order of calling QPainter::device() and QPainter::end(), so device() will return with a valid device.
3672         No new test is needed.
3673
3674         * platform/graphics/qt/GraphicsContextQt.cpp:
3675         (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
3676
3677 2010-11-30  Patrick Gansterer  <paroga@webkit.org>
3678
3679         Reviewed by Andreas Kling.
3680
3681         Move generator logic into main CMakeLists.txt file
3682         https://bugs.webkit.org/show_bug.cgi?id=49885
3683
3684         Also make the generator calls more portable.
3685
3686         * CMakeLists.txt:
3687
3688 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
3689
3690         Unreviewed, rolling out r72902.
3691         http://trac.webkit.org/changeset/72902
3692         https://bugs.webkit.org/show_bug.cgi?id=50062
3693
3694         This change is causing layout test failures on the Tests bots
3695         for the mac platform.
3696
3697         * dom/SelectElement.cpp:
3698         (WebCore::SelectElement::accessKeySetSelectedIndex):
3699
3700 2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>
3701
3702         Unreviewed, rolling out r72764.
3703         http://trac.webkit.org/changeset/72764
3704         https://bugs.webkit.org/show_bug.cgi?id=50215
3705
3706         This change is causing assertion failures on the debug bots.
3707         (Requested by mrobinson on #webkit).
3708
3709         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3710         (webkit_accessible_get_name):
3711         (webkit_accessible_detach):
3712
3713 2010-11-30  Pavel Feldman  <pfeldman@chromium.org>
3714
3715         Reviewed by Yury Semikhatsky.
3716
3717         Web Inspector: make copy(node) work in console.
3718         https://bugs.webkit.org/show_bug.cgi?id=50180
3719
3720         * inspector/front-end/InjectedScript.js:
3721         (injectedScriptConstructor.):
3722
3723 2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>
3724
3725         Reviewed by Darin Adler.
3726
3727         ASSERT failing for combo boxes when selection changes
3728         https://bugs.webkit.org/show_bug.cgi?id=50062
3729
3730         Don't call listBoxOnChange for elements using menu lists.
3731
3732         Test: accessibility/select-menulist-crash.html
3733
3734         * dom/SelectElement.cpp:
3735         (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
3736         to decide whether to call menuListOnChange() or listBoxOnChange()
3737         instead of always calling listBoxOnChange().
3738
3739 2010-11-30  Helder Correia  <helder@sencha.com>
3740
3741         Reviewed by Kenneth Rohde Christiansen.
3742
3743         [Qt] Path stroke shadow has incorrect behavior when using ctx.scale(x,y)
3744         https://bugs.webkit.org/show_bug.cgi?id=50198
3745
3746         Handle the special case when scaling is used and translate the shadow
3747         offset accordingly. The correct behavior is ensured in ContextShadow
3748         already, the issue only happens when using a non-blur shadow.
3749
3750         Test: fast/canvas/canvas-scale-strokePath-shadow.html
3751
3752         * platform/graphics/qt/GraphicsContextQt.cpp:
3753         (WebCore::GraphicsContext::strokePath):
3754
3755 2010-11-30  Helder Correia  <helder@sencha.com>
3756
3757         Reviewed by Kenneth Rohde Christiansen.
3758
3759         [Qt] Path filling should keep shadow offset after context scaling
3760         https://bugs.webkit.org/show_bug.cgi?id=50194
3761
3762         Handle the special case when scaling is used and translate the shadow
3763         offset accordingly. The correct behavior is ensured in ContextShadow
3764         already, the issue only happens when using a non-blur shadow.
3765
3766         Test: fast/canvas/canvas-scale-fillPath-shadow.html
3767
3768         * platform/graphics/qt/GraphicsContextQt.cpp:
3769         (WebCore::GraphicsContext::fillPath):
3770
3771 2010-11-30  Yury Semikhatsky  <yurys@chromium.org>
3772
3773         Reviewed by Pavel Feldman.
3774
3775         Web Inspector: make ScriptCallStack and ScriptArguments reference counted
3776         https://bugs.webkit.org/show_bug.cgi?id=50156
3777
3778         No new tests. This refactoring is covered with existing inspector tests.
3779
3780         * bindings/js/JSConsoleCustom.cpp:
3781         (WebCore::JSConsole::profile):
3782         (WebCore::JSConsole::profileEnd):
3783         * bindings/js/ScriptCallStackFactory.cpp:
3784         (WebCore::createScriptCallStack):
3785         (WebCore::createScriptArguments):
3786         * bindings/js/ScriptCallStackFactory.h:
3787         * bindings/scripts/CodeGeneratorJS.pm:
3788         * bindings/scripts/CodeGeneratorV8.pm:
3789         * bindings/scripts/test/JS/JSTestObj.cpp:
3790         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
3791         * bindings/scripts/test/V8/V8TestObj.cpp:
3792         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
3793         * bindings/v8/ScriptCallStackFactory.cpp:
3794         (WebCore::createScriptCallStack):
3795         (WebCore::createScriptArguments):
3796         * bindings/v8/ScriptCallStackFactory.h:
3797         * bindings/v8/V8ConsoleMessage.cpp:
3798         (WebCore::V8ConsoleMessage::handler):
3799         (WebCore::V8ConsoleMessage::dispatchNow):
3800         * bindings/v8/V8ConsoleMessage.h:
3801         * bindings/v8/custom/V8ConsoleCustom.cpp:
3802         (WebCore::V8Console::traceCallback):
3803         (WebCore::V8Console::assertCallback):
3804         (WebCore::V8Console::profileCallback):
3805         (WebCore::V8Console::profileEndCallback):
3806         * inspector/ConsoleMessage.cpp:
3807         (WebCore::ConsoleMessage::ConsoleMessage):
3808         * inspector/ConsoleMessage.h:
3809         * inspector/InspectorController.cpp:
3810         (WebCore::InspectorController::addMessageToConsole):
3811         (WebCore::InspectorController::startGroup):
3812         * inspector/InspectorController.h:
3813         * inspector/ScriptArguments.cpp:
3814         (WebCore::ScriptArguments::create):
3815         * inspector/ScriptArguments.h:
3816         * inspector/ScriptCallFrame.h:
3817         * inspector/ScriptCallStack.cpp:
3818         (WebCore::ScriptCallStack::create):
3819         (WebCore::ScriptCallStack::at):
3820         (WebCore::ScriptCallStack::size):
3821         * inspector/ScriptCallStack.h:
3822         * page/Console.cpp:
3823         (WebCore::Console::addMessage):
3824         (WebCore::Console::debug):
3825         (WebCore::Console::error):
3826         (WebCore::Console::info):
3827         (WebCore::Console::log):
3828         (WebCore::Console::dir):
3829         (WebCore::Console::dirxml):
3830         (WebCore::Console::trace):
3831         (WebCore::Console::assertCondition):
3832         (WebCore::Console::count):
3833         (WebCore::Console::markTimeline):
3834         (WebCore::Console::profile):
3835         (WebCore::Console::profileEnd):
3836         (WebCore::Console::timeEnd):
3837         (WebCore::Console::group):
3838         (WebCore::Console::groupCollapsed):
3839         (WebCore::Console::warn):
3840         * page/Console.h:
3841
3842 2010-11-29  Dan Bernstein  <mitz@apple.com>
3843
3844         Build fix for non-ICU platforms after r72887.
3845
3846         * editing/TextIterator.cpp:
3847         (WebCore::SearchBuffer::prependContext):
3848
3849 2010-11-29  Dan Bernstein  <mitz@apple.com>
3850
3851         Reviewed by Darin Adler.
3852
3853         WebCore part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
3854         https://bugs.webkit.org/show_bug.cgi?id=50038
3855
3856         Test: editing/text-iterator/findString.html
3857
3858         * GNUmakefile.am: Added FindOptions.h.
3859         * WebCore.exp.in: Export the new methods that take FindOptions.
3860         * WebCore.gypi: Added FindOptions.h.
3861         * WebCore.pro: Added FindOptions.h and TextBoundaries.{cpp,h}.
3862         * WebCore.vcproj/WebCore.vcproj: Added FindOptions.h.
3863         * WebCore.xcodeproj/project.pbxproj: Added FindOptions.h and TextBoundaries.cpp.
3864         * editing/Editor.cpp:
3865         (WebCore::Editor::firstVisibleRange): Changed to use FindOptions.
3866         (WebCore::Editor::lastVisibleRange): Ditto.
3867         (WebCore::Editor::nextVisibleRange): Ditto.
3868         (WebCore::Editor::findString): Ditto.
3869         (WebCore::Editor::countMatchesForText): Ditto.
3870         * editing/Editor.h: Added a version of findString() that takes FindOptions. Changed
3871         countMatchesForText() to take FindOptions. Made nextVisibleRange() private and changed it
3872         and firstVisibleRange() and lastVisibleRange() to take FindOptions.
3873         * editing/FindOptions.h: Added.
3874         * editing/TextIterator.cpp:
3875         Augmented SearchBuffer with an optional prefix, which is not searched, but provides context
3876         for determining word boundaries.
3877         (WebCore::isSeparator): Added. Identifies a class of characters used to determine where
3878         “words” are embedded in a word.
3879         (WebCore::SearchBuffer::SearchBuffer): Changed to take FindOptions. Added initialization of
3880         m_options, m_prefixLength and m_needsMoreContext.
3881         (WebCore::SearchBuffer::append): Adjust m_prefixLength as part of the prefix gets pushed out
3882         of the buffer.
3883         (WebCore::SearchBuffer::needsMoreContext): Added.
3884         (WebCore::SearchBuffer::prependContext): Added.
3885         (WebCore::SearchBuffer::isWordStartMatch): Added.
3886         (WebCore::SearchBuffer::search): Changed to account for the context prefix. When searching
3887         only for word prefix matches, maintains enough context before a tentative match when moving
3888         it to the beginning of the buffer. Reject matches that are not at word starts if requested.
3889         Adjust m_prefixLength when pushing characters out of the buffer.
3890         (WebCore::findPlainText): Changed to work with FindOptions. Feed the search buffer with context
3891         if and as long as it requires more of it.
3892         * editing/TextIterator.h: Added a version of findPlainText() that takes FindOptions.
3893         * editing/visible_units.cpp: Moved {end,start}Of{First,Last}WordBoundary to TextBoundaries.cpp.
3894         * page/Page.cpp:
3895         (WebCore::Page::findString): Changed to work with FindOptions.
3896         (WebCore::Page::markAllMatchesForText): Ditto.
3897         * page/Page.h: Added FindOptions-based findString() and markAllMatchesForText().
3898         * platform/text/TextBoundaries.cpp:
3899         (WebCore::endOfFirstWordBoundaryContext): Moved here from visible_units.cpp.
3900         (WebCore::startOfLastWordBoundaryContext): Ditto.
3901         * platform/text/TextBoundaries.h:
3902
3903 2010-11-29  Dai Mikurube  <dmikurube@google.com>
3904
3905         Reviewed by Kent Tamura.
3906
3907         when empty, clicking "down" on outer-spin-button returns "max value"
3908         https://bugs.webkit.org/show_bug.cgi?id=45491
3909
3910         Modified stepping-up/down from renderer
3911         - to clamp steps,
3912         - to handle empty values (described below), and
3913         - to apply them for range type inputs.
3914
3915         Stepping-up/down for empty values are handled "the empty as 0."
3916         For example :
3917         * If 0 is in-range, and matches to step value
3918           "down" -> -step
3919           "up" -> +step
3920           If -step or +step is out of range, new value should be 0.
3921
3922         * If 0 is smaller than the minimum value
3923           "down" -> the minimum value
3924           "up" -> the minimum value
3925
3926         * If 0 is larger than the maximum value
3927           "down" -> the maximum value
3928           "up" -> the maximum value
3929
3930         * If 0 is in-range, but not matched to step value
3931           "down" -> smaler matched value nearest to 0.
3932             e.g. <input type=number min=-100 step=3> -> -1
3933           "up" -> larger matched value nearest to 0.
3934             e.g. <input type=number min=-100 step=3> -> 2
3935
3936         As for date/datetime-local/month/time/week types, the empty is assumed as "current local date/time".
3937         As for datetime type, the empty is assumed as "current date/time in UTC".
3938
3939         As for range input types, changed stepping from renderer to use stepUpFromRenderer().
3940         It was calculated with stepUp() from RangeInputType::handleKeydownEvent().
3941
3942         Test: fast/forms/input-stepup-stepdown-from-renderer.html
3943
3944         * html/BaseDateAndTimeInputType.cpp:
3945         (WebCore::BaseDateAndTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
3946         * html/BaseDateAndTimeInputType.h:
3947         * html/DateTimeInputType.cpp:
3948         (WebCore::DateTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current UTC time
3949         * html/DateTimeInputType.h:
3950         * html/HTMLInputElement.cpp:
3951         (WebCore::HTMLInputElement::stepUpFromRenderer): Modified it to clamp steps, support empty values and support range type inputs
3952         * html/HTMLInputElement.h:
3953         (WebCore::HTMLInputElement::isRangeControl):
3954         * html/InputType.cpp:
3955         (WebCore::InputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns 0
3956         * html/InputType.h:
3957         * html/MonthInputType.cpp:
3958         (WebCore::MonthInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local month
3959         * html/MonthInputType.h:
3960         * html/RangeInputType.cpp:
3961         (WebCore::RangeInputType::handleKeydownEvent): Added comments and modified it to use stepUpFromRenderer()
3962         * html/TimeInputType.cpp:
3963         (WebCore::TimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
3964         * html/TimeInputType.h:
3965         * 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.
3966
3967 2010-11-29  Adam Barth  <abarth@webkit.org>
3968
3969         Reviewed by Darin Adler.
3970
3971         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
3972         https://bugs.webkit.org/show_bug.cgi?id=50182
3973
3974         A display-isolated URL can only be displayed (e.g., put in an iframe,
3975         hyperlinked to) by documents from that scheme.  In a sense, this is a
3976         generalization of some of the protections we give file URLs, but
3977         instead of lumping them all together into one "local" bucket, this
3978         patch creates a separate bucket for each scheme.
3979
3980         For a while, I tried using a separate bucket for each origin.  That
3981         would have played nicely with what Blob URLs are trying to do, but some
3982         "chrome" URL pages rely on being able to display other chrome URL
3983         pages, even in different origins.  For example, the New Tab Page shows
3984         thumbnails from the "thumbnail" host.
3985
3986         This patch also removes a bunch of unused code.  I've also propagated
3987         the "deprecated" status of deprecatedCanDisplay to
3988         deprecatedShouldTreatURLAsLocal because that method has no other
3989         callers and is really asking for uppercase/lowercase bugs.  I dream of
3990         someday removing these functions.
3991
3992         * page/SecurityOrigin.cpp:
3993         (WebCore::SecurityOrigin::canDisplay):
3994         (WebCore::SecurityOrigin::deprecatedCanDisplay):
3995         * platform/SchemeRegistry.cpp:
3996         (WebCore::displayIsolatedURLSchemes):
3997         (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
3998         (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
3999         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
4000         (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
4001         (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
4002         * platform/SchemeRegistry.h:
4003
4004 2010-11-29  Sergio Villar Senin  <svillar@igalia.com>
4005
4006         Reviewed by Martin Robinson.
4007
4008         [GTK] Leaks in SoupCache code
4009         https://bugs.webkit.org/show_bug.cgi?id=50161
4010
4011         Fixes some memory leaks in SoupCache code.
4012
4013         * platform/network/soup/cache/soup-http-input-stream.c:
4014         (send_async_finished): Added a missing g_object_unref.
4015         * platform/network/soup/cache/webkit/soup-cache.c:
4016         (get_cacheability): Added soup_header_free_param_list.
4017         (webkit_soup_cache_entry_set_freshness): Ditto.
4018         (webkit_soup_cache_send_response): Ditto.
4019         (webkit_soup_cache_has_response): Ditto.
4020
4021 2010-11-29  Jian Li  <jianli@chromium.org>
4022
4023         Reviewed by David Levin.
4024
4025         Add send(ArrayBuffer) to XMLHttpRequest per XMLHttpRequest Level 2 spec
4026         https://bugs.webkit.org/show_bug.cgi?id=50199
4027
4028         Test: http/tests/xmlhttprequest/send-array-buffer.html
4029
4030         * bindings/js/JSXMLHttpRequestCustom.cpp:
4031         (WebCore::JSXMLHttpRequest::send):
4032         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
4033         (WebCore::V8XMLHttpRequest::sendCallback):
4034         * xml/XMLHttpRequest.cpp:
4035         (WebCore::XMLHttpRequest::send):
4036         * xml/XMLHttpRequest.h:
4037
4038 2010-11-29  James Robinson  <jamesr@chromium.org>
4039
4040         [chromium] REGRESSION(72470): Crash in skia on some images
4041         https://bugs.webkit.org/show_bug.cgi?id=50201
4042
4043         Reverts r72470
4044
4045         * platform/graphics/skia/ImageSkia.cpp:
4046         (WebCore::computeResamplingMode):
4047         (WebCore::drawResampledBitmap):
4048
4049 2010-11-29  Dmitry Titov  <dimich@chromium.org>
4050
4051         Reviewed by David Levin.
4052
4053         Crash when iframe transfers from one page to another and has child frames.
4054         https://bugs.webkit.org/show_bug.cgi?id=50200
4055
4056         * page/Frame.cpp:
4057         (WebCore::Frame::transferChildFrameToNewDocument):
4058         avoid overriding 'didTransfer' which has the result of previous check.
4059
4060 2010-11-19  Ryosuke Niwa  <rniwa@webkit.org>
4061
4062         Reviewed by David Hyatt.
4063
4064         up arrow doesn't work with RTL text with word wrapping
4065         https://bugs.webkit.org/show_bug.cgi?id=41987
4066
4067         The bug was caused by positionForPoint's not returning the correct affinity when the x coordiate
4068         is to the left of the first line, and startOfLine's incorrectly moving position to the previous candidate.
4069
4070         Fixed the bug by returning upstream VisiblePosition in positionForPoint if the first inline text box's offset
4071         is greater than 0.  Also removed the code added by http://trac.webkit.org/changeset/23608 since this changeset
4072         does not add any test, and the problem described in the changelog reproduces regardless of the code's presence.
4073
4074         Tests: editing/selection/click-left-of-rtl-wrapping-text.html
4075                editing/selection/modify-up-on-rtl-wrapping-text.html
4076
4077         * editing/visible_units.cpp:
4078         (WebCore::startOfLine):
4079         * rendering/RenderText.cpp:
4080         (WebCore::RenderText::positionForPoint):
4081
4082 2010-11-29  Ilya Sherman  <isherman@chromium.org>
4083
4084         Reviewed by Kent Tamura.
4085
4086         Ensure that option elements are rendered with normal font weight on Windows/Linux
4087         https://bugs.webkit.org/show_bug.cgi?id=50055
4088
4089         * WebCore.gyp/WebCore.gyp: include themeChromiumSkia.css
4090         * css/themeChromiumSkia.css: Added.
4091         (option): font-weight: normal !important;
4092         * rendering/RenderThemeChromiumSkia.cpp:
4093         (WebCore::RenderThemeChromiumSkia::extraDefaultStyleSheet): include themeChromiumSkia.css
4094
4095 2010-11-29  Brent Fulgham  <bfulgham@webkit.org>
4096
4097         Unreviewed build fix.
4098
4099         * WebCore.vcproj/WebCoreCairo.vsprops: Provide missing WIN_CAIRO
4100           definition so that proper targets are build.
4101         * platform/graphics/win/cairo/FontPlatformData.h:
4102         (WebCore::FontPlatformData::orientation): Add missing implementation.
4103
4104 2010-11-29  Chris Rogers  <crogers@google.com>
4105
4106         Reviewed by Kenneth Russell.
4107
4108         Switch web audio code to use FloatPoint3D instead of Vector3
4109         https://bugs.webkit.org/show_bug.cgi?id=50186
4110
4111         No new tests since audio API is not yet implemented.
4112
4113         * platform/audio/Cone.cpp:
4114         (WebCore::ConeEffect::gain):
4115         * platform/audio/Cone.h:
4116         * platform/graphics/FloatPoint3D.h:
4117         (WebCore::FloatPoint3D::isZero):
4118         (WebCore::operator*):
4119         (WebCore::FloatPoint3D::distanceTo):
4120         * webaudio/AudioListener.h:
4121         (WebCore::AudioListener::setPosition):
4122         (WebCore::AudioListener::position):
4123         (WebCore::AudioListener::setOrientation):
4124         (WebCore::AudioListener::orientation):
4125         (WebCore::AudioListener::setUpVector):
4126         (WebCore::AudioListener::upVector):
4127         (WebCore::AudioListener::setVelocity):
4128         (WebCore::AudioListener::velocity):
4129         * webaudio/AudioPannerNode.cpp:
4130         (WebCore::AudioPannerNode::AudioPannerNode):
4131         (WebCore::AudioPannerNode::getAzimuthElevation):
4132         (WebCore::AudioPannerNode::dopplerRate):
4133         (WebCore::AudioPannerNode::distanceConeGain):
4134         * webaudio/AudioPannerNode.h:
4135         (WebCore::AudioPannerNode::position):
4136         (WebCore::AudioPannerNode::setPosition):
4137         (WebCore::AudioPannerNode::orientation):
4138         (WebCore::AudioPannerNode::setOrientation):
4139         (WebCore::AudioPannerNode::velocity):
4140         (WebCore::AudioPannerNode::setVelocity):
4141
4142 2010-11-29  Xiaomei Ji  <xji@chromium.org>
4143
4144         Reviewed by David Hyatt.
4145
4146         Right-to-left pages should be scrollable to reveal left overflow.
4147         https://bugs.webkit.org/show_bug.cgi?id=23556
4148
4149         For RTL page, save left layout overflow and include it into the document
4150         size during layout. Use the left layout overflow when scroll and paint
4151         the page. Behavior on LTR page should be untouched since left layout 
4152         overflow is set as 0 for LTR page.
4153
4154         Tests: fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll.html
4155                fast/dom/horizontal-scrollbar-in-rtl.html
4156                fast/dom/horizontal-scrollbar-when-dir-change.html
4157                fast/dom/left-overflow-in-ltr.html
4158                fast/dom/right-overflow-in-rtl.html
4159
4160         * page/FrameView.cpp:
4161         (WebCore::FrameView::adjustViewSize): Save negative of left layout overflow as scroll X origin. And includes left layout overflow into document size.
4162         * page/mac/WebCoreFrameView.h: Add methods for setting and getting scroll X origin.
4163         * platform/ScrollView.cpp:
4164         (WebCore::ScrollView::ScrollView):
4165         (WebCore::ScrollView::maximumScrollPosition): Minus scroll X origin from maximum horizontal scroll position.
4166         (WebCore::ScrollView::minimumScrollPosition):
4167         (WebCore::ScrollView::adjustScrollPositionWithinRange):
4168         (WebCore::ScrollView::valueChanged):
4169         (WebCore::ScrollView::setScrollPosition):
4170         (WebCore::ScrollView::updateScrollbars):
4171         (WebCore::ScrollView::wheelEvent):
4172         * platform/ScrollView.h:
4173         * platform/mac/ScrollViewMac.mm:
4174         (WebCore::ScrollView::platformSetContentsSize):
4175         (WebCore::ScrollView::platformSetScrollPosition):
4176         (WebCore::ScrollView::platformSetScrollOriginX):
4177         * rendering/RenderBox.cpp:
4178         (WebCore::RenderBox::styleDidChange):
4179         (WebCore::RenderBox::paintRootBoxDecorations): Include left layout overflow into canvas size.
4180         * rendering/RenderView.cpp:
4181         (WebCore::RenderView::layout): Save left layout overflow.
4182         (WebCore::RenderView::docLeft):
4183         (WebCore::RenderView::docWidth): Include left layout overflow into doc width for RTL page.
4184         * rendering/RenderView.h:
4185
4186 2010-11-29  Simon Fraser  <simon.fraser@apple.com>
4187
4188         Reviewed by Ojan Vafai.
4189
4190         bunch of pixel failures after http://trac.webkit.org/changeset/72839/
4191         https://bugs.webkit.org/show_bug.cgi?id=50188
4192         
4193         We need to call updateLayerTransform() for reflections, and
4194         table rows as well.
4195
4196         * rendering/RenderReplica.cpp:
4197         (WebCore::RenderReplica::layout):
4198         * rendering/RenderTableRow.cpp: