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