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