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