16fb32759185e745ae4321997919f5879a873ea1
[WebKit-https.git] / WebCore / ChangeLog
1 2010-08-31  Kenneth Russell  <kbr@google.com>
2
3         Reviewed by Chris Marrin.
4
5         Add length and related operations to FloatPoint and FloatSize
6         https://bugs.webkit.org/show_bug.cgi?id=44994
7
8         Added length and squared length operations to both FloatPoint and
9         FloatSize, and added set(x, y), dot and normalize operations to
10         FloatPoint. These changes have been tested with new code to be
11         added later.
12
13         * platform/graphics/FloatPoint.cpp:
14         (WebCore::FloatPoint::normalize):
15         (WebCore::FloatPoint::length):
16         * platform/graphics/FloatPoint.h:
17         (WebCore::FloatPoint::set):
18         (WebCore::FloatPoint::dot):
19         (WebCore::FloatPoint::lengthSquared):
20         (WebCore::operator*):
21         * platform/graphics/FloatSize.cpp:
22         (WebCore::FloatSize::diagonalLength):
23         * platform/graphics/FloatSize.h:
24         (WebCore::FloatSize::diagonalLengthSquared):
25
26 2010-08-31  Zhenyao Mo  <zmo@google.com>
27
28         Reviewed by Kenneth Russell.
29
30         gl-teximage.html and tex-image-and-sub-image-2d-with-image.html failed on Chromium Mac bots (10.5)
31         https://bugs.webkit.org/show_bug.cgi?id=44993
32
33         * platform/graphics/cg/GraphicsContext3DCG.cpp:
34         (WebCore::GraphicsContext3D::getImageData): Take into consideration the source image pixel row alignment.
35
36 2010-08-31  Patrick Gansterer  <paroga@paroga.com>
37
38         Reviewed by Kenneth Rohde Christiansen.
39
40         [CMake] Unify GENERATE_DOM_NAMES code
41         https://bugs.webkit.org/show_bug.cgi?id=44842
42
43         * CMakeLists.txt: Added property svn:eol-style.
44
45 2010-08-31  Beth Dakin  <bdakin@apple.com>
46
47         Rubber-stamped by Dan Bernstein..
48
49         Variable name change. m_shouldFirePostLayoutTimer is now 
50         m_hasPendingPostLayoutTasks
51
52         * page/FrameView.cpp:
53         (WebCore::FrameView::FrameView):
54         (WebCore::FrameView::~FrameView):
55         (WebCore::FrameView::reset):
56         (WebCore::FrameView::layout):
57         (WebCore::FrameView::performPostLayoutTasks):
58         * page/FrameView.h:
59
60 2010-08-31  Beth Dakin  <bdakin@apple.com>
61
62         Reviewed by Dave Hyatt.
63
64         Fix for https://bugs.webkit.org/show_bug.cgi?id=44828 FrameView 
65         should make more calls to postLayoutTasks() using the timer
66         -and corresponding-
67         <rdar://problem/8064938>
68
69         This change only allows synchronous calls to postLayoutTasks() if 
70         we are not already in a synchronous call to postLayoutTasks(). 
71         Furthermore, it de-couples the notion of "the post layout timer 
72         should fire" from m_postLayoutTasksTimer.isActive(), instead using 
73         a boolean to track the need to use the timer.
74
75         * page/FrameView.cpp:
76         (WebCore::FrameView::FrameView):
77         (WebCore::FrameView::~FrameView):
78         (WebCore::FrameView::reset):
79         (WebCore::FrameView::layout):
80         (WebCore::FrameView::unscheduleRelayout):
81         (WebCore::FrameView::performPostLayoutTasks):
82         * page/FrameView.h:
83
84 2010-08-30  Anders Carlsson  <andersca@apple.com>
85
86         Reviewed by Sam Weinig.
87
88         Fix 32-bit WebKit2 build.
89
90         * WebCore.exp.in:
91
92 2010-08-31  Nate Chapin  <japhet@chromium.org>
93
94         Reviewed by Darin Fisher.
95
96         Regression in r63528: Custom http headers for loads of type
97         FrameLoadTypeReloadFromOrigin are not being correctly
98         propagated to subresource loads.
99
100         https://bugs.webkit.org/show_bug.cgi?id=44987
101
102         No tests, since DRT doesn't seem to have a way to trigger a
103         FrameLoadTypeReloadFromOrigin load.
104
105         * loader/FrameLoader.cpp:
106         (WebCore::FrameLoader::addExtraFieldsToRequest):
107
108 2010-08-31  Sam Weinig  <sam@webkit.org>
109
110         Reviewed by Darin Adler.
111
112         Add ability to count text matches without marking
113         https://bugs.webkit.org/show_bug.cgi?id=43996
114
115         Safari needs to be able to count text matches without triggering lots of repainting.
116         Rename markAllMatchesForText() to countMatchesForText() and add a markMatches parameter.
117
118         * WebCore.exp.in:
119         * page/Frame.cpp:
120         (WebCore::Frame::countMatchesForText):
121         * page/Frame.h:
122         * page/Page.cpp:
123         (WebCore::Page::markAllMatchesForText):
124
125 2010-08-31  Eric Carlson  <eric.carlson@apple.com>
126
127         Reviewed by Darin Adler.
128
129         canPlayType("application/octet-stream") must return ""
130         https://bugs.webkit.org/show_bug.cgi?id=44985
131
132         * platform/graphics/MediaPlayer.cpp:
133         (WebCore::MediaPlayer::supportsType): Always return IsNotSupported for application/octet-stream
134
135 2010-08-31  Martin Robinson  <mrobinson@igalia.com>
136
137         Reviewed by Gustavo Noronha Silva.
138
139         [GTK] ScrollbarThemeGtk should respond to theme changes
140         https://bugs.webkit.org/show_bug.cgi?id=44782
141
142         Scrollbar is currently written with the assumption that scrollbars never change
143         thickness. In GTK+ changing the current theme can alter scrollbar thickness. This
144         change manually resizes interior frame scrollbar widgets when the GTK+ theme changes.
145         Since we are now tracking style changes, we may also cache theme properties to avoid
146         having to call moz_gtk_get_scrollbar_metrics repeatedly during rendering.
147
148         * platform/gtk/RenderThemeGtk.cpp:
149         (WebCore::RenderThemeGtk::gtkScrollbar): Added accessor for the Mozilla theming code's
150         scrollbar widget. We access it here, because RenderThemGtk takes care of initializing
151         the Mozilla code.
152         * platform/gtk/RenderThemeGtk.h: Added accessor declaration.
153         * platform/gtk/ScrollbarThemeGtk.cpp:
154         (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk): Update the style property cache during construction.
155         (WebCore::ScrollbarThemeGtk::registerScrollbar): Track all interior frame scrollbars.
156         (WebCore::ScrollbarThemeGtk::unregisterScrollbar): Ditto.
157         (WebCore::ScrollbarThemeGtk::updateThemeProperties): Added this method which updates the style cache.
158         (WebCore::gtkStyleSetCallback): Added this signal handler for when the style changes.
159         (WebCore::ScrollbarThemeGtk::backButtonRect): Use the style cache instead of calling moz_gtk_get_scrollbar_metrics.
160         (WebCore::ScrollbarThemeGtk::forwardButtonRect): Ditto.
161         (WebCore::ScrollbarThemeGtk::trackRect): Ditto.
162         (WebCore::ScrollbarThemeGtk::paintTrackBackground): Ditto.
163         (WebCore::ScrollbarThemeGtk::thumbRect): Ditto.
164         (WebCore::ScrollbarThemeGtk::paint): Ditto.
165         (WebCore::ScrollbarThemeGtk::scrollbarThickness): Ditto.
166         (WebCore::ScrollbarThemeGtk::buttonSize): Ditto.
167         (WebCore::ScrollbarThemeGtk::minimumThumbLength): Ditto.
168         * platform/gtk/ScrollbarThemeGtk.h: Added new method declarations.
169
170 2010-08-31  Darin Adler  <darin@apple.com>
171
172         Reviewed by Anders Carlsson.
173
174         Web archives are created with a size of 0 due to PassRefPtr mistake
175         https://bugs.webkit.org/show_bug.cgi?id=44984
176         rdar://problem/8042283
177
178         * loader/archive/ArchiveResource.cpp:
179         (WebCore::ArchiveResource::ArchiveResource): Merge the three constructors into one.
180         (WebCore::ArchiveResource::create): Merge the two create functions into one, and
181         fix the logic so there is no use of a PassRefPtr after it has been passed.
182         * loader/archive/ArchiveResource.h: Use default arguments instead of overloading
183         to cut down from three create functions to two. Remove two of the constructors.
184
185 2010-08-31  Jian Li  <jianli@chromium.org>
186
187         Reviewed by David Levin.
188
189         Expose WorkerContext.createBlobURL and WorkerContext.revokeBlobURL.
190         https://bugs.webkit.org/show_bug.cgi?id=44972
191
192         Test: fast/files/workers/worker-apply-blob-url-to-xhr.html
193
194         * page/SecurityOrigin.cpp:
195         (WebCore::SecurityOrigin::canRequest):
196         * workers/WorkerContext.cpp:
197         (WebCore::WorkerContext::createBlobURL):
198         (WebCore::WorkerContext::revokeBlobURL):
199         * workers/WorkerContext.h:
200         * workers/WorkerContext.idl:
201
202 2010-08-31  Darin Adler  <darin@apple.com>
203
204         Reviewed by Anders Carlsson.
205
206         * editing/TextIterator.cpp:
207         (WebCore::TextIterator::handleTextBox):
208         Added a cast so we can mix int and unsigned in a single ?: expression.
209         This warns with clang, but strangely not with gcc.
210
211         * html/parser/HTMLTreeBuilder.cpp: Removed unused functions.
212         The clang compiler notices and complains about these. If we need them
213         later we should use Subversion to bring them back.
214
215 2010-08-31  Kenneth Russell  <kbr@google.com>
216
217         Reviewed by Simon Fraser.
218
219         Add cross product and arithmetic operations to FloatPoint3D
220         https://bugs.webkit.org/show_bug.cgi?id=44970
221
222         Added set, move, and scale operations similar to FloatPoint's,
223         addition and subtraction operators, length, lengthSquared and
224         cross product. These changes have been tested with new code to be
225         added later.
226
227         * platform/graphics/FloatPoint3D.cpp:
228         (WebCore::FloatPoint3D::normalize):
229         (WebCore::FloatPoint3D::length):
230         * platform/graphics/FloatPoint3D.h:
231         (WebCore::FloatPoint3D::set):
232         (WebCore::FloatPoint3D::move):
233         (WebCore::FloatPoint3D::scale):
234         (WebCore::FloatPoint3D::dot):
235         (WebCore::FloatPoint3D::cross):
236         (WebCore::FloatPoint3D::lengthSquared):
237         (WebCore::operator +=):
238         (WebCore::operator -=):
239         (WebCore::operator+):
240         (WebCore::operator-):
241         (WebCore::operator*):
242
243 2010-08-31  Martin Robinson  <mrobinson@igalia.com>
244
245         Reviewed by Gustavo Noronha Silva.
246
247         [GTK] Isolate all GTK+ typedefs into one file
248         https://bugs.webkit.org/show_bug.cgi?id=44900
249
250         * platform/graphics/gtk/CairoUtilities.h: Remove GTK+ typedefs.
251         * platform/gtk/ClipboardGtk.h: Ditto.
252         * platform/gtk/DataObjectGtk.h: Ditto.
253         * platform/gtk/GOwnPtrGtk.h: Ditto.
254         * platform/gtk/GRefPtrGtk.h: Ditto.
255         * platform/gtk/PasteboardHelper.h: Ditto.
256         * platform/gtk/PopupMenuGtk.h: Ditto.
257         * platform/gtk/RenderThemeGtk.h: Ditto.
258         * platform/gtk/ScrollbarGtk.h: Ditto.
259         * platform/gtk/gtk2drawing.c: Remove unused Assertions.h.
260
261 2010-08-31  Tony Chang  <tony@chromium.org>
262
263         Unreviewed, fix chromium compile.
264
265         * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp:
266
267 2010-08-31  Chris Rogers  <crogers@google.com>
268
269         Reviewed by Kenneth Russell.
270
271         audio engine: add FFTConvolver class
272         https://bugs.webkit.org/show_bug.cgi?id=34907
273
274         No new tests since audio API is not yet implemented.
275
276         * platform/audio: Added.
277         * platform/audio/FFTConvolver.cpp: Added.
278         (WebCore::FFTConvolver::FFTConvolver):
279         (WebCore::FFTConvolver::process):
280         (WebCore::FFTConvolver::reset):
281         * platform/audio/FFTConvolver.h: Added.
282         (WebCore::FFTConvolver::fftSize):
283
284 2010-08-31  Jian Li  <jianli@chromium.org>
285
286         Reviewed by Darin Fisher and David Levin.
287
288         Fix ThreadableBlobRegistry methods not to rely on WorkerContext.
289         https://bugs.webkit.org/show_bug.cgi?id=44971
290
291         We could hit an ASSERT when we're performing some blob related cleanup
292         in ScriptExecutionContext destructor when WorkerContext dies. The fix
293         is to use isMainThread and callOnMainThread.
294
295         * fileapi/ThreadableBlobRegistry.cpp:
296         (WebCore::BlobRegistryContext::BlobRegistryContext):
297         (WebCore::registerBlobURLTask):
298         (WebCore::ThreadableBlobRegistry::registerBlobURL):
299         (WebCore::registerBlobURLFromTask):
300         (WebCore::unregisterBlobURLTask):
301         (WebCore::ThreadableBlobRegistry::unregisterBlobURL):
302
303 2010-08-31  Martin Robinson  <mrobinson@igalia.com>
304
305         Reviewed by Gustavo Noronha Silva.
306
307         [GTK] Fix 'make dist' in preparation of the 1.3.3 release
308         https://bugs.webkit.org/show_bug.cgi?id=44978
309
310         * GNUmakefile.am: Add missing and moved headers to the sources list.
311
312 2010-08-31  Ryuan Choi  <ryuan.choi@samsung.com>
313
314         Reviewed by Antonio Gomes.
315
316         [EFL] crashes while dragging any contents
317         https://bugs.webkit.org/show_bug.cgi?id=44940
318
319         Fix crashes caused by returning newly assigned value instead of adoptRef
320         value.
321
322         * page/efl/EventHandlerEfl.cpp:
323         (WebCore::EventHandler::createDraggingClipboard):
324         * platform/efl/ClipboardEfl.cpp:
325         (WebCore::Editor::newGeneralClipboard):
326         * platform/efl/ClipboardEfl.h:
327         (WebCore::ClipboardEfl::create):
328
329 2010-08-31  Ilya Tikhonovsky  <loislo@chromium.org>
330
331         Reviewed by Yury Semikhatsky.
332
333         WebInspector: The parser of Inspector protocol messages should be covered by a test.
334
335         The inspector protocol is based on messages in JSON format.
336         Each message should be a JSON object with a number of properties.
337         InspectorBackendDispatcher is parsing these messages and should be
338         able to detect wrong formatted messages.
339         It has these functionality but no tests for it.
340
341         https://bugs.webkit.org/show_bug.cgi?id=44947
342
343
344         * inspector/CodeGeneratorInspector.pm:
345
346 2010-08-31  Anton Muhin  <antonm@chromium.org>
347
348         Reviewed by Adam Barth.
349
350         [v8] More correct and faster error handling when converting v8 objects to various WebCore strings
351         https://bugs.webkit.org/show_bug.cgi?id=44678
352
353         Split v8 object conversion into two phase: 1st, which can throw an exception, and
354         2nd, which must always succeed.  That allows to report correctly the case when exception
355         happens.
356
357         * bindings/scripts/CodeGeneratorV8.pm:
358         * bindings/v8/V8Binding.cpp:
359         (WebCore::int32ToWebCoreString):
360         (WebCore::v8NonStringValueToWebCoreString):
361         * bindings/v8/V8Binding.h:
362         (WebCore::V8ParameterBase::operator String):
363         (WebCore::V8ParameterBase::operator AtomicString):
364         (WebCore::V8ParameterBase::V8ParameterBase):
365         (WebCore::V8ParameterBase::prepareBase):
366         (WebCore::V8ParameterBase::object):
367         (WebCore::V8ParameterBase::setString):
368         (WebCore::V8ParameterBase::toString):
369         (WebCore::):
370         (WebCore::::prepare):
371         * bindings/v8/custom/V8BindingMacros.h:
372         * bindings/v8/custom/V8DeviceMotionEventCustom.cpp:
373         (WebCore::V8DeviceMotionEvent::initDeviceMotionEventCallback):
374         * bindings/v8/cstom/V8DeviceOrientationEventCustom.cpp:
375         (WebCore::V8DeviceMotionEvent::initDeviceOrientationEventCallback):
376
377 2010-08-30  Ilya Tikhonovsky  <loislo@chromium.org>
378
379         Reviewed by Joseph Pecoraro.
380
381         WebInspector: it'd be better to introduce inspector API related tests.
382
383         As far as we have some kind of API for Inspector
384         it'd be better to have API related tests. This is the test
385         for API wrappers. These wrappers are tracking the types of arguments
386         of API functions.
387
388         https://bugs.webkit.org/show_bug.cgi?id=44875
389
390         Test: inspector/protocol-error.html
391
392         * inspector/CodeGeneratorInspector.pm:
393         * inspector/front-end/inspector.js:
394         (WebInspector_syncDispatch):
395         (WebInspector.reportProtocolError):
396
397 2010-08-31  Sheriff Bot  <webkit.review.bot@gmail.com>
398
399         Unreviewed, rolling out r66484.
400         http://trac.webkit.org/changeset/66484
401         https://bugs.webkit.org/show_bug.cgi?id=44966
402
403         Broke EFL build (Requested by acidx on #webkit).
404
405         * CMakeLists.txt:
406
407 2010-08-31  Ojan Vafai  <ojan@chromium.org>
408
409         Reviewed by Tony Chang.
410
411         deduplicate code from Node::checkReplaceChild and Node::checkAddChild
412         https://bugs.webkit.org/show_bug.cgi?id=44962
413
414         Remove duplicate code in preparation for fixing https://bugs.webkit.org/show_bug.cgi?id=19524
415         No new tests since there is no change in functionality.
416
417         * dom/Node.cpp:
418         (WebCore::isChildTypeAllowed):
419         (WebCore::Node::canReplaceChild):
420         (WebCore::checkAcceptChild):
421         (WebCore::transferOwnerDocument):
422         (WebCore::Node::checkReplaceChild):
423         (WebCore::Node::checkAddChild):
424
425 2010-08-30  Zhenyao Mo  <zmo@google.com>
426
427         Reviewed by Kenneth Russell.
428
429         [Chromium] bindTexture(TEXTURE_CUBE_MAP) shouldn't generate errors with valid cubemap texture
430         https://bugs.webkit.org/show_bug.cgi?id=44922
431
432         * html/canvas/WebGLRenderingContext.cpp: Remove TEXTURE_WRAP_R code.
433         (WebCore::WebGLRenderingContext::bindTexture):
434         * html/canvas/WebGLTexture.cpp: Remove the code for tracking TEXTURE_WRAP_R.
435         (WebCore::WebGLTexture::WebGLTexture):
436         * html/canvas/WebGLTexture.h: Ditto.
437
438 2010-08-31  Jian Li  <jianli@chromium.org>
439
440         Rubber-stamped by David Levin.
441
442         Rename addTwoCStrings to concatenateTwoCStrings.
443
444         * fileapi/BlobBuilder.cpp:
445         (WebCore::concatenateTwoCStrings):
446         (WebCore::BlobBuilder::append):
447
448 2010-08-31  Jian Li  <jianli@chromium.org>
449
450         Reviewed by Darin Fisher.
451
452         Improve BlobBuilder to combine adjacent strings.
453         https://bugs.webkit.org/show_bug.cgi?id=44884
454
455         * fileapi/BlobBuilder.cpp:
456         (WebCore::addTwoCStrings):
457         (WebCore::BlobBuilder::append):
458
459 2010-08-31  Darin Adler  <darin@apple.com>
460
461         Reviewed by Simon Fraser.
462
463         Make DOM classes start with a reference count of 1, like all other RefCounted
464         https://bugs.webkit.org/show_bug.cgi?id=28068
465
466         * dom/Document.cpp:
467         (WebCore::Document::accessSVGExtensions): Use adoptPtr instead of set.
468
469         * dom/Document.h: Removed initialRefCount in Node constructor. It's always 1 now.
470
471         * dom/Node.h: Removed CreateWithZeroRefCountFlag, CreateStyledElementZeroRefCount,
472         CreateSVGElementZeroRefCount, and initialRefCount.
473
474         * platform/TreeShared.h: Removed initialRefCount argument. It's always 1 now.
475
476         * rendering/RenderSVGShadowTreeRootContainer.cpp:
477         (WebCore::RenderSVGShadowTreeRootContainer::updateFromElement): Use create
478         instead of new.
479
480         * rendering/SVGResources.h: Inherit from Noncopyable.
481
482         * rendering/SVGResourcesCache.cpp:
483         (WebCore::SVGResourcesCache::~SVGResourcesCache): Removed unneeded special
484         case code.
485
486         * rendering/SVGShadowTreeElements.cpp:
487         (WebCore::SVGShadowTreeContainerElement::create): Added.
488         (WebCore::SVGShadowTreeRootElement::SVGShadowTreeRootElement): Made argument
489         type more specific.
490         (WebCore::SVGShadowTreeRootElement::create): Added.
491         * rendering/SVGShadowTreeElements.h: Added create functions, and made the
492         argument type more specific.
493
494         * svg/SVGDocumentExtensions.cpp:
495         (WebCore::SVGDocumentExtensions::SVGDocumentExtensions): Use adoptPtr.
496         * svg/graphics/SVGImage.cpp:
497         (WebCore::SVGImage::dataChanged): Use adoptPtr instead of set.
498
499         * svg/SVGElement.cpp:
500         (WebCore::SVGElement::SVGElement): Use CreateSVGElement instead of
501         CreateSVGElementZeroRefCount.
502         (WebCore::SVGElement::create): Use adoptRef.
503
504         * wml/WMLElement.cpp:
505         (WebCore::WMLElement::WMLElement): Use CreateStyledElement instead of
506         CreateStyledElementZeroRefCount.
507         (WebCore::WMLElement::create): Use adoptRef.
508
509         * svg/SVGAElement.cpp:
510         (WebCore::SVGAElement::create):
511         * svg/SVGAltGlyphElement.cpp:
512         (WebCore::SVGAltGlyphElement::create):
513         * svg/SVGAnimateColorElement.cpp:
514         (WebCore::SVGAnimateColorElement::create):
515         * svg/SVGAnimateElement.cpp:
516         (WebCore::SVGAnimateElement::create):
517         * svg/SVGAnimateMotionElement.cpp:
518         (WebCore::SVGAnimateMotionElement::create):
519         * svg/SVGAnimateTransformElement.cpp:
520         (WebCore::SVGAnimateTransformElement::create):
521         * svg/SVGCircleElement.cpp:
522         (WebCore::SVGCircleElement::create):
523         * svg/SVGClipPathElement.cpp:
524         (WebCore::SVGClipPathElement::create):
525         * svg/SVGCursorElement.cpp:
526         (WebCore::SVGCursorElement::create):
527         * svg/SVGDefsElement.cpp:
528         (WebCore::SVGDefsElement::create):
529         * svg/SVGDescElement.cpp:
530         (WebCore::SVGDescElement::create):
531         * svg/SVGEllipseElement.cpp:
532         (WebCore::SVGEllipseElement::create):
533         * svg/SVGFEBlendElement.cpp:
534         (WebCore::SVGFEBlendElement::create):
535         * svg/SVGFEColorMatrixElement.cpp:
536         (WebCore::SVGFEColorMatrixElement::create):
537         * svg/SVGFEComponentTransferElement.cpp:
538         (WebCore::SVGFEComponentTransferElement::create):
539         * svg/SVGFECompositeElement.cpp:
540         (WebCore::SVGFECompositeElement::create):
541         * svg/SVGFEConvolveMatrixElement.cpp:
542         (WebCore::SVGFEConvolveMatrixElement::create):
543         * svg/SVGFEDiffuseLightingElement.cpp:
544         (WebCore::SVGFEDiffuseLightingElement::create):
545         * svg/SVGFEDisplacementMapElement.cpp:
546         (WebCore::SVGFEDisplacementMapElement::create):
547         * svg/SVGFEDistantLightElement.cpp:
548         (WebCore::SVGFEDistantLightElement::create):
549         * svg/SVGFEFloodElement.cpp:
550         (WebCore::SVGFEFloodElement::create):
551         * svg/SVGFEFuncAElement.cpp:
552         (WebCore::SVGFEFuncAElement::create):
553         * svg/SVGFEFuncBElement.cpp:
554         (WebCore::SVGFEFuncBElement::create):
555         * svg/SVGFEFuncGElement.cpp:
556         (WebCore::SVGFEFuncGElement::create):
557         * svg/SVGFEFuncRElement.cpp:
558         (WebCore::SVGFEFuncRElement::create):
559         * svg/SVGFEGaussianBlurElement.cpp:
560         (WebCore::SVGFEGaussianBlurElement::create):
561         * svg/SVGFEImageElement.cpp:
562         (WebCore::SVGFEImageElement::create):
563         * svg/SVGFEMergeElement.cpp:
564         (WebCore::SVGFEMergeElement::create):
565         * svg/SVGFEMergeNodeElement.cpp:
566         (WebCore::SVGFEMergeNodeElement::create):
567         * svg/SVGFEMorphologyElement.cpp:
568         (WebCore::SVGFEMorphologyElement::create):
569         * svg/SVGFEOffsetElement.cpp:
570         (WebCore::SVGFEOffsetElement::create):
571         * svg/SVGFEPointLightElement.cpp:
572         (WebCore::SVGFEPointLightElement::create):
573         * svg/SVGFESpecularLightingElement.cpp:
574         (WebCore::SVGFESpecularLightingElement::create):
575         * svg/SVGFESpotLightElement.cpp:
576         (WebCore::SVGFESpotLightElement::create):
577         * svg/SVGFETileElement.cpp:
578         (WebCore::SVGFETileElement::create):
579         * svg/SVGFETurbulenceElement.cpp:
580         (WebCore::SVGFETurbulenceElement::create):
581         * svg/SVGFilterElement.cpp:
582         (WebCore::SVGFilterElement::create):
583         * svg/SVGFontElement.cpp:
584         (WebCore::SVGFontElement::create):
585         * svg/SVGFontFaceElement.cpp:
586         (WebCore::SVGFontFaceElement::create):
587         * svg/SVGFontFaceFormatElement.cpp:
588         (WebCore::SVGFontFaceFormatElement::create):
589         * svg/SVGFontFaceNameElement.cpp:
590         (WebCore::SVGFontFaceNameElement::create):
591         * svg/SVGFontFaceSrcElement.cpp:
592         (WebCore::SVGFontFaceSrcElement::create):
593         * svg/SVGFontFaceUriElement.cpp:
594         (WebCore::SVGFontFaceUriElement::create):
595         * svg/SVGForeignObjectElement.cpp:
596         (WebCore::SVGForeignObjectElement::create):
597         * svg/SVGGElement.cpp:
598         (WebCore::SVGGElement::create):
599         * svg/SVGGlyphElement.cpp:
600         (WebCore::SVGGlyphElement::create):
601         * svg/SVGHKernElement.cpp:
602         (WebCore::SVGHKernElement::create):
603         * svg/SVGImageElement.cpp:
604         (WebCore::SVGImageElement::create):
605         * svg/SVGLineElement.cpp:
606         (WebCore::SVGLineElement::create):
607         * svg/SVGLinearGradientElement.cpp:
608         (WebCore::SVGLinearGradientElement::create):
609         * svg/SVGMPathElement.cpp:
610         (WebCore::SVGMPathElement::create):
611         * svg/SVGMarkerElement.cpp:
612         (WebCore::SVGMarkerElement::create):
613         * svg/SVGMaskElement.cpp:
614         (WebCore::SVGMaskElement::create):
615         * svg/SVGMetadataElement.cpp:
616         (WebCore::SVGMetadataElement::create):
617         * svg/SVGMissingGlyphElement.cpp:
618         (WebCore::SVGMissingGlyphElement::create):
619         * svg/SVGPathElement.cpp:
620         (WebCore::SVGPathElement::create):
621         * svg/SVGPatternElement.cpp:
622         (WebCore::SVGPatternElement::create):
623         * svg/SVGPolygonElement.cpp:
624         (WebCore::SVGPolygonElement::create):
625         * svg/SVGPolylineElement.cpp:
626         (WebCore::SVGPolylineElement::create):
627         * svg/SVGRadialGradientElement.cpp:
628         (WebCore::SVGRadialGradientElement::create):
629         * svg/SVGRectElement.cpp:
630         (WebCore::SVGRectElement::create):
631         * svg/SVGSVGElement.cpp:
632         (WebCore::SVGSVGElement::create):
633         (WebCore::SVGSVGElement::currentView):
634         * svg/SVGScriptElement.cpp:
635         (WebCore::SVGScriptElement::create):
636         * svg/SVGSetElement.cpp:
637         (WebCore::SVGSetElement::create):
638         * svg/SVGStopElement.cpp:
639         (WebCore::SVGStopElement::create):
640         * svg/SVGStyleElement.cpp:
641         (WebCore::SVGStyleElement::create):
642         * svg/SVGSwitchElement.cpp:
643         (WebCore::SVGSwitchElement::create):
644         * svg/SVGSymbolElement.cpp:
645         (WebCore::SVGSymbolElement::create):
646         * svg/SVGTRefElement.cpp:
647         (WebCore::SVGTRefElement::create):
648         * svg/SVGTSpanElement.cpp:
649         (WebCore::SVGTSpanElement::create):
650         * svg/SVGTextElement.cpp:
651         (WebCore::SVGTextElement::create):
652         * svg/SVGTextPathElement.cpp:
653         (WebCore::SVGTextPathElement::create):
654         * svg/SVGTitleElement.cpp:
655         (WebCore::SVGTitleElement::create):
656         * svg/SVGUseElement.cpp:
657         (WebCore::SVGUseElement::create):
658         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
659         * svg/SVGVKernElement.cpp:
660         (WebCore::SVGVKernElement::create):
661         * svg/SVGViewElement.cpp:
662         (WebCore::SVGViewElement::create):
663         * wml/WMLAElement.cpp:
664         (WebCore::WMLAElement::create):
665         * wml/WMLAccessElement.cpp:
666         (WebCore::WMLAccessElement::create):
667         * wml/WMLAnchorElement.cpp:
668         (WebCore::WMLAnchorElement::create):
669         * wml/WMLBRElement.cpp:
670         (WebCore::WMLBRElement::create):
671         * wml/WMLCardElement.cpp:
672         (WebCore::WMLCardElement::create):
673         * wml/WMLDoElement.cpp:
674         (WebCore::WMLDoElement::create):
675         * wml/WMLDocument.h:
676         (WebCore::WMLDocument::create):
677         * wml/WMLFieldSetElement.cpp:
678         (WebCore::WMLFieldSetElement::create):
679         * wml/WMLFormControlElement.cpp:
680         (WebCore::WMLFormControlElement::create):
681         * wml/WMLGoElement.cpp:
682         (WebCore::WMLGoElement::create):
683         * wml/WMLImageElement.cpp:
684         (WebCore::WMLImageElement::create):
685         * wml/WMLInputElement.cpp:
686         (WebCore::WMLInputElement::create):
687         * wml/WMLInsertedLegendElement.cpp:
688         (WebCore::WMLInsertedLegendElement::create):
689         * wml/WMLIntrinsicEvent.cpp:
690         (WebCore::WMLIntrinsicEvent::create):
691         * wml/WMLMetaElement.cpp:
692         (WebCore::WMLMetaElement::create):
693         * wml/WMLNoopElement.cpp:
694         (WebCore::WMLNoopElement::create):
695         * wml/WMLOnEventElement.cpp:
696         (WebCore::WMLOnEventElement::create):
697         * wml/WMLOptGroupElement.cpp:
698         (WebCore::WMLOptGroupElement::create):
699         * wml/WMLOptionElement.cpp:
700         (WebCore::WMLOptionElement::create):
701         * wml/WMLPElement.cpp:
702         (WebCore::WMLPElement::create):
703         * wml/WMLPostfieldElement.cpp:
704         (WebCore::WMLPostfieldElement::create):
705         * wml/WMLPrevElement.cpp:
706         (WebCore::WMLPrevElement::create):
707         * wml/WMLRefreshElement.cpp:
708         (WebCore::WMLRefreshElement::create):
709         * wml/WMLSelectElement.cpp:
710         (WebCore::WMLSelectElement::create):
711         * wml/WMLSetvarElement.cpp:
712         (WebCore::WMLSetvarElement::create):
713         * wml/WMLTableElement.cpp:
714         (WebCore::WMLTableElement::create):
715         * wml/WMLTaskElement.cpp:
716         (WebCore::WMLTaskElement::create):
717         * wml/WMLTemplateElement.cpp:
718         (WebCore::WMLTemplateElement::create):
719         * wml/WMLTimerElement.cpp:
720         (WebCore::WMLTimerElement::create):
721         Use adoptRef.
722
723 2010-08-31  Justin Schuh  <jschuh@chromium.org>
724
725         Reviewed by Nate Chapin.
726
727         Local frame loads should check against origin (not referrer)
728         https://bugs.webkit.org/show_bug.cgi?id=44888
729
730         Test: fast/frames/iframe-no-src-local-origin-allow.html
731
732         * loader/SubframeLoader.cpp:
733         (WebCore::SubframeLoader::loadSubframe):
734
735 2010-08-25  Zhenyao Mo  <zmo@google.com>
736
737         Reviewed by Kenneth Russell.
738
739         Passing premultiplyAlpha=false to tex{Sub}Image2D loses information (cg)
740         https://bugs.webkit.org/show_bug.cgi?id=44566
741
742         * platform/graphics/cg/GraphicsContext3DCG.cpp:
743         (WebCore::GraphicsContext3D::getImageData): Fix the premultiplyAlpha issue for cg.
744
745 2010-08-31  Dave Hyatt  <hyatt@apple.com>
746
747         Reviewed by Adam Roben.
748
749         https://bugs.webkit.org/show_bug.cgi?id=44956, paginate block-level replaced elements.
750        <rdar://problem/8000991> Images with display:block get split between columns or pages
751
752         Added fast/multicol/paginate-block-replaced.html
753
754         * rendering/RenderBlock.cpp:
755         (WebCore::RenderBlock::paintChildren):
756
757 2010-08-31  Alexey Proskuryakov  <ap@apple.com>
758
759         Reviewed by Darin Adler.
760
761         https://bugs.webkit.org/show_bug.cgi?id=36515
762         CSS style definitions are ignored if they just follow a "@charset" which appears in lines
763         other than the first line in stylesheet.
764
765         Test: fast/css/misplaced-charset.html
766
767         * css/CSSGrammar.y: Ignore a misplaced charset rule without consuming extra characters and
768         thus breaking subsequent rules.
769
770 2010-08-31  Patrick Gansterer  <paroga@paroga.com>
771
772         Reviewed by Antonio Gomes.
773
774         [CMake] Add IF (ENABLE_MATHML) around MathML sources
775         https://bugs.webkit.org/show_bug.cgi?id=44927
776
777         * CMakeLists.txt:
778
779 2010-08-31  Patrick Gansterer  <paroga@paroga.com>
780
781         Reviewed by Kenneth Rohde Christiansen.
782
783         [CMake] Unify GENERATE_DOM_NAMES code
784         https://bugs.webkit.org/show_bug.cgi?id=44842
785
786         * CMakeLists.txt: Added property svn:eol-style.
787
788 2010-08-31  Daniel Cheng  <dcheng@chromium.org>
789
790         Reviewed by Tony Chang.
791
792         [chromium] Add an interface for platform copy/paste drag/drop data objects
793         https://bugs.webkit.org/show_bug.cgi?id=44914
794
795         Currently, Chromium only supports a few hardcoded data types in
796         event.dataTransfer. This is the first of several patches to add support
797         for arbitrary data types.
798
799         No new tests.
800
801         * WebCore.gypi:
802         * platform/chromium/ChromiumDataObjectNew.h: Added.
803         * platform/chromium/ClipboardChromium.cpp:
804
805 2010-08-30  Andrey Kosyakov  <caseq@chromium.org>
806
807         Reviewed by Yury Semikhatsky.
808
809         Web Inspector: add audits support to extension API
810         Exposed (late) adding of categories from AuditPanel.
811         Removed indexOfObjectInListSortedByFunction in favor of
812         insertionIndexForObjectInListSortedByFunction (the former had
813         weird interface always returning negative numbers and was only used in
814         the latter).
815         https://bugs.webkit.org/show_bug.cgi?id=44518
816
817         Tests: inspector/extensions-audits-api.html
818                inspector/extensions-audits.html
819
820         * WebCore.gypi:
821         * WebCore.vcproj/WebCore.vcproj:
822         * inspector/front-end/AuditFormatters.js: Added.
823         (WebInspector.applyFormatters):
824         (WebInspector.AuditFormatters.text):
825         (WebInspector.AuditFormatters.snippet):
826         (WebInspector.AuditFormatters.concat):
827         (WebInspector.AuditFormatters.url):
828         * inspector/front-end/AuditLauncherView.js:
829         (WebInspector.AuditLauncherView):
830         (WebInspector.AuditLauncherView.prototype.addCategory.compareCategories):
831         (WebInspector.AuditLauncherView.prototype.addCategory):
832         (WebInspector.AuditLauncherView.prototype._launchButtonClicked):
833         (WebInspector.AuditLauncherView.prototype._selectAllClicked):
834         (WebInspector.AuditLauncherView.prototype._categoryClicked):
835         (WebInspector.AuditLauncherView.prototype._createCategoryElement):
836         (WebInspector.AuditLauncherView.prototype._createLauncherUI):
837         * inspector/front-end/AuditResultView.js:
838         (WebInspector.AuditCategoryResultPane.prototype._appendResult):
839         * inspector/front-end/AuditsPanel.js:
840         (WebInspector.AuditsPanel):
841         (WebInspector.AuditsPanel.prototype.addCategory):
842         (WebInspector.AuditsPanel.prototype.getCategory):
843         (WebInspector.AuditsPanel.prototype._executeAudit):
844         (WebInspector.AuditCategory.prototype.run):
845         * inspector/front-end/ExtensionAPI.js:
846         (WebInspector.injectedExtensionAPI):
847         (WebInspector.injectedExtensionAPI.EventSinkImpl.prototype.addListener):
848         (WebInspector.injectedExtensionAPI.EventSinkImpl.prototype._fire):
849         (WebInspector.injectedExtensionAPI.EventSinkImpl.prototype._dispatch):
850         (WebInspector.injectedExtensionAPI.EventSink):
851         (WebInspector.injectedExtensionAPI.InspectorExtensionAPI):
852         (WebInspector.injectedExtensionAPI.Panels.prototype.create):
853         (WebInspector.injectedExtensionAPI.Audits):
854         (WebInspector.injectedExtensionAPI.Audits.prototype.addCategory):
855         (WebInspector.injectedExtensionAPI.AuditCategory.customDispatch):
856         (WebInspector.injectedExtensionAPI.AuditCategory):
857         (WebInspector.injectedExtensionAPI.AuditCategoryImpl):
858         (WebInspector.injectedExtensionAPI.AuditResult):
859         (WebInspector.injectedExtensionAPI.AuditResult.prototype.get Severity):
860         (WebInspector.injectedExtensionAPI.AuditResultImpl):
861         (WebInspector.injectedExtensionAPI.AuditResultImpl.prototype.addResult):
862         (WebInspector.injectedExtensionAPI.AuditResultImpl.prototype.createResult):
863         (WebInspector.injectedExtensionAPI.AuditResultImpl.prototype.done):
864         (WebInspector.injectedExtensionAPI.AuditResultImpl.prototype._nodeFactory):
865         (WebInspector.injectedExtensionAPI.AuditResultNode):
866         (WebInspector.injectedExtensionAPI.AuditResultNode.prototype.addChild):
867         * inspector/front-end/ExtensionAuditCategory.js: Added.
868         (WebInspector.ExtensionAuditCategory):
869         (WebInspector.ExtensionAuditCategory.prototype.get id):
870         (WebInspector.ExtensionAuditCategory.prototype.get displayName):
871         (WebInspector.ExtensionAuditCategory.prototype.get ruleCount):
872         (WebInspector.ExtensionAuditCategory.prototype.run):
873         (WebInspector.ExtensionAuditCategoryResults):
874         (WebInspector.ExtensionAuditCategoryResults.prototype.get complete):
875         (WebInspector.ExtensionAuditCategoryResults.prototype.cancel):
876         (WebInspector.ExtensionAuditCategoryResults.prototype.addResult):
877         (WebInspector.ExtensionAuditCategoryResults.prototype._addNode):
878         (WebInspector.ExtensionAuditCategoryResults.prototype._addResult):
879         * inspector/front-end/ExtensionCommon.js: Added.
880         (WebInspector.commonExtensionSymbols):
881         * inspector/front-end/ExtensionServer.js:
882         (WebInspector.ExtensionServer):
883         (WebInspector.ExtensionServer.prototype.startAuditRun):
884         (WebInspector.ExtensionServer.prototype.stopAuditRun):
885         (WebInspector.ExtensionServer.prototype._postNotification):
886         (WebInspector.ExtensionServer.prototype._onAddAuditCategory):
887         (WebInspector.ExtensionServer.prototype._onAddAuditResult):
888         (WebInspector.ExtensionServer.prototype._onStopAuditCategoryRun):
889         (WebInspector.ExtensionServer.prototype._addExtensions):
890         (WebInspector.ExtensionServer.prototype._buildExtensionAPIInjectedScript):
891         (WebInspector.ExtensionStatus):
892         * inspector/front-end/WebKit.qrc:
893         * inspector/front-end/inspector.html:
894         * inspector/front-end/utilities.js:
895         ():
896
897 2010-08-31  Justin Schuh  <jschuh@chromium.org>
898
899         Reviewed by Nate Chapin.
900
901         Remove unused canReferToParentFrameEncoding() function from FrameLoader.cpp
902         https://bugs.webkit.org/show_bug.cgi?id=44895
903
904         No new tests; no behavior changed.
905
906         * loader/FrameLoader.cpp:
907
908 2010-08-31  Jeremy Orlow  <jorlow@chromium.org>
909
910         Build fix.
911
912         * storage/IDBObjectStoreBackendImpl.cpp:
913         (WebCore::IDBObjectStoreBackendImpl::openCursor):
914
915 2010-08-24  Jeremy Orlow  <jorlow@chromium.org>
916
917         Reviewed by Steve Block.
918
919         Implement the rest of IDBCursors + make them persistent
920         https://bugs.webkit.org/show_bug.cgi?id=44546
921
922         Because the old (memory only) backend didn't support ranges, IDBCursors
923         were never really finished.  This completes them on top of SQLite like
924         the rest of IndexedDB.
925
926         Test: storage/indexeddb/objectstore-cursor.html
927
928         * storage/IDBCursor.cpp:
929         (WebCore::IDBCursor::value):
930         * storage/IDBCursorBackendImpl.cpp:
931         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
932         (WebCore::IDBCursorBackendImpl::key):
933         (WebCore::IDBCursorBackendImpl::value):
934         (WebCore::IDBCursorBackendImpl::update):
935         (WebCore::IDBCursorBackendImpl::continueFunction):
936         (WebCore::IDBCursorBackendImpl::remove):
937         (WebCore::IDBCursorBackendImpl::loadCurrentRow):
938         * storage/IDBCursorBackendImpl.h:
939         (WebCore::IDBCursorBackendImpl::create):
940         * storage/IDBCursorBackendInterface.h:
941         * storage/IDBKey.cpp:
942         (WebCore::IDBKey::isEqual):
943         * storage/IDBKey.h:
944         * storage/IDBKeyRange.cpp:
945         (WebCore::IDBKeyRange::leftBound):
946         (WebCore::IDBKeyRange::rightBound):
947         (WebCore::IDBKeyRange::bound):
948         * storage/IDBObjectStoreBackendImpl.cpp:
949         (WebCore::cursorWhereFragment):
950         (WebCore::IDBObjectStoreBackendImpl::openCursor):
951
952 2010-08-27  John Gregg  <johnnyg@google.com>
953
954         Reviewed by David Levin.
955
956         Notifications should support a click event
957         https://bugs.webkit.org/show_bug.cgi?id=44800
958
959         Test: fast/notifications/notifications-click-event.html
960
961         * notifications/Notification.h:
962         * notifications/Notification.idl:
963
964 2010-08-31  Kent Tamura  <tkent@chromium.org>
965
966         Reviewed by Adam Barth.
967
968         [V8] Custom binding for "dataset"
969         https://bugs.webkit.org/show_bug.cgi?id=44930
970
971         * WebCore.gyp/WebCore.gyp: Remove the exclusion of DOMStringMap.idl.
972         * WebCore.gypi: Add V8DOMStringMapCustom.cpp.
973         * bindings/v8/custom/V8DOMStringMapCustom.cpp: Added.
974         (WebCore::V8DOMStringMap::namedPropertyQuery):
975         (WebCore::V8DOMStringMap::namedPropertyGetter):
976         (WebCore::V8DOMStringMap::namedPropertyEnumerator):
977         (WebCore::V8DOMStringMap::namedPropertyDeleter):
978         (WebCore::V8DOMStringMap::namedPropertySetter):
979         * dom/Element.idl: Remove V8 exclusion.
980         * page/DOMWindow.idl: ditto.
981
982 2010-08-31  Jian Li  <jianli@chromium.org>
983
984         Fix chromium build break.
985
986         * page/DOMWindow.h:
987
988 2010-08-31  Adam Barth  <abarth@webkit.org>
989
990         Reviewed by Eric Seidel.
991
992         Stale document crashes at multiple URLs (with new parser)
993         https://bugs.webkit.org/show_bug.cgi?id=44885
994
995         We're not supposed to load resources in detached documents.  According
996         to several locations I examined, it's the job of the caller of
997         DocLoader to check this invariant.  Like most code dealing with
998         detached documents, this check isn't overly consistent.  At some point,
999         we'll need to rationalize all the different patterns here.  However, at
1000         this point, this patch appears correct because it matches what we do
1001         for <link rel="stylesheet">.
1002
1003         Test: fast/dom/HTMLLinkElement/prefetch-detached.html
1004
1005         * html/HTMLLinkElement.cpp:
1006         (WebCore::HTMLLinkElement::process):
1007         * loader/DocLoader.cpp:
1008         (WebCore::DocLoader::requestLinkPrefetch):
1009
1010 2010-08-31  Jian Li  <jianli@chromium.org>
1011
1012         Reviewed by David Levin.
1013
1014         Expose window.createBlobURL and window.revokeBlobURL.
1015         https://bugs.webkit.org/show_bug.cgi?id=44908
1016
1017         Tests: fast/files/apply-blob-url-to-img.html
1018                fast/files/apply-blob-url-to-xhr.html
1019
1020         * page/DOMWindow.cpp:
1021         (WebCore::DOMWindow::createBlobURL):
1022         (WebCore::DOMWindow::revokeBlobURL):
1023         * page/DOMWindow.h:
1024         * page/DOMWindow.idl:
1025         * xml/XMLHttpRequest.cpp:
1026         (WebCore::XMLHttpRequest::createRequest):
1027
1028 2010-08-31  Jian Li  <jianli@chromium.org>
1029
1030         Reviewed by David Levin.
1031
1032         Support FileReaderSync in workers.
1033         https://bugs.webkit.org/show_bug.cgi?id=44657
1034
1035         Also add FileException interface and make Blob/File/FileError useable in
1036         workers.
1037
1038         Tests: fast/files/workers/worker-read-blob-async.html
1039                fast/files/workers/worker-read-blob-sync.html
1040                fast/files/workers/worker-read-file-async.html
1041                fast/files/workers/worker-read-file-sync.html
1042
1043         * DerivedSources.cpp:
1044         * DerivedSources.make:
1045         * WebCore.gypi:
1046         * WebCore.pro:
1047         * WebCore.vcproj/WebCore.vcproj:
1048         * WebCore.xcodeproj/project.pbxproj:
1049         * fileapi/Blob.idl: Added NoStaticTables attribute.
1050         * fileapi/File.idl: Added NoStaticTables attribute.
1051         * fileapi/FileError.idl: Added NoStaticTables attribute.
1052         * fileapi/FileException.h: Added.
1053         * fileapi/FileException.idl: Added.
1054         * fileapi/FileReaderSync.cpp: Added.
1055         * fileapi/FileReaderSync.h: Added.
1056         * fileapi/FileReaderSync.idl: Added.
1057         * workers/WorkerContext.idl: Expose FileReaderSync and BlodBuilder in workers.
1058
1059 2010-08-30  Philippe Normand  <pnormand@igalia.com>
1060
1061         Reviewed by Martin Robinson.
1062
1063         [GTK] Buffered ranges drawing support
1064         https://bugs.webkit.org/show_bug.cgi?id=44869
1065
1066         Refactored the media slider track painting code to support
1067         multiple buffered ranges painting. This change introduces no
1068         functional regression.
1069
1070         * platform/gtk/RenderThemeGtk.cpp:
1071         (WebCore::RenderThemeGtk::paintMediaSliderTrack):
1072
1073 2010-08-30  Mihai Parparita  <mihaip@chromium.org>
1074
1075         Reviewed by Adam Barth.
1076
1077         HISTORY_ALWAYS_ASYNC should be removed (history should always be async)
1078         https://bugs.webkit.org/show_bug.cgi?id=44315
1079
1080         Remove check in RedirectScheduler::scheduleHistoryNavigation that would
1081         dispatch some navigations synchronously.
1082
1083         Test: fast/history/history-traversal-is-asynchronous.html
1084
1085         * loader/RedirectScheduler.cpp:
1086         (WebCore::RedirectScheduler::scheduleHistoryNavigation):
1087
1088 2010-08-30  Jian Li  <jianli@chromium.org>
1089
1090         Try to fix break again.
1091
1092         * fileapi/ThreadableBlobRegistry.cpp:
1093         (WebCore::ThreadableBlobRegistry::registerBlobURL):
1094         (WebCore::ThreadableBlobRegistry::unregisterBlobURL):
1095
1096 2010-08-30  Jian Li  <jianli@chromium.org>
1097
1098         Fix another build break. Also fix directory upload test break.
1099
1100         * fileapi/File.cpp:
1101         (WebCore::File::File):
1102         * fileapi/ThreadableBlobRegistry.cpp:
1103
1104 2010-08-30  Jian Li  <jianli@chromium.org>
1105
1106         Fix build break.
1107
1108         * xml/XMLHttpRequest.cpp:
1109         (WebCore::XMLHttpRequest::send):
1110
1111 2010-08-30  Jian Li  <jianli@chromium.org>
1112
1113         Fix qt/gtk build break.
1114
1115         * platform/network/BlobRegistryImpl.cpp:
1116
1117 2010-08-30  Jian Li  <jianli@chromium.org>
1118
1119         Reviewed by Darin Fisher.
1120
1121         Switch the Blob implementation to using the blob data registration model
1122         https://bugs.webkit.org/show_bug.cgi?id=44389
1123
1124         Tests: fast/files/read-blob-async.html
1125                fast/files/read-file-async.html
1126
1127         With this switch, File/Blob/BlobBuilder are changed to register the blob
1128         data. FileReader is changed to route through loading the blob resource.
1129         FormData is also updated to take BlobData. The WebKit mac implementation
1130         is updated to resolve the blob references in the BlobData.
1131
1132         * CMakeLists.txt: Update the project file to remove BlobItem.*.
1133         * GNUmakefile.am: Update the project file to remove BlobItem.*.
1134         * WebCore.gypi: Update the project file to remove BlobItem.*.
1135         * WebCore.pro: Update the project file to remove BlobItem.*.
1136         * WebCore.vcproj/WebCore.vcproj: Update the project file to remove BlobItem.*.
1137         * WebCore.xcodeproj/project.pbxproj: Update the project file to remove BlobItem.*.
1138         * fileapi/Blob.cpp: Switch to using BlobData.
1139         (WebCore::Blob::Blob):
1140         (WebCore::Blob::slice):
1141         * fileapi/Blob.h: Switch to using BlobData.
1142         (WebCore::Blob::create):
1143         (WebCore::Blob::size):
1144         (WebCore::Blob::isFile):
1145         * fileapi/BlobBuilder.cpp: Switch to using BlobData.
1146         (WebCore::BlobBuilder::BlobBuilder):
1147         (WebCore::BlobBuilder::append):
1148         (WebCore::BlobBuilder::getBlob):
1149         * fileapi/BlobBuilder.h: Switch to using BlobData.
1150         * fileapi/BlobURL.cpp: Add a new helper method used in FormData.
1151         (WebCore::BlobURL::getIdentifier):
1152         * fileapi/BlobURL.h:
1153         * fileapi/File.cpp: Switch to using BlobData.
1154         (WebCore::createBlobDataForFile):
1155         (WebCore::File::File):
1156         (WebCore::File::size):
1157         (WebCore::File::captureSnapshot):
1158         * fileapi/File.h: Switch to using BlobData.
1159         (WebCore::File::create):
1160         (WebCore::File::path):
1161         (WebCore::File::name):
1162         (WebCore::File::webkitRelativePath):
1163         * fileapi/FileReader.cpp: Change the reading to route through blob resource loading.
1164         (WebCore::FileReader::FileReader):
1165         (WebCore::FileReader::readAsBinaryString):
1166         (WebCore::FileReader::readAsText):
1167         (WebCore::FileReader::readAsDataURL):
1168         (WebCore::delayedStart):
1169         (WebCore::FileReader::readInternal):
1170         (WebCore::FileReader::terminate):
1171         (WebCore::FileReader::start):
1172         (WebCore::FileReader::didReceiveResponse):
1173         (WebCore::FileReader::didReceiveData):
1174         (WebCore::FileReader::didFinishLoading):
1175         (WebCore::FileReader::didFail):
1176         (WebCore::FileReader::failed):
1177         (WebCore::FileReader::httpStatusCodeToExceptionCode):
1178         (WebCore::FileReader::result):
1179         (WebCore::FileReader::convertToDataURL):
1180         * fileapi/FileReader.h:
1181         * html/FormDataList.cpp: Account to BlobData change.
1182         (WebCore::FormDataList::appendString):
1183         (WebCore::FormDataList::appendBlob):
1184         * html/FormDataList.h: Account to BlobData change.
1185         (WebCore::FormDataList::appendBlob):
1186         (WebCore::FormDataList::Item::Item):
1187         (WebCore::FormDataList::Item::data):
1188         (WebCore::FormDataList::Item::blob):
1189         (WebCore::FormDataList::items):
1190         * loader/FormSubmission.cpp: Account to BlobData change.
1191         (WebCore::FormSubmission::create):
1192         * platform/BlobItem.cpp: Removed.
1193         * platform/BlobItem.h: Removed.
1194         * platform/network/BlobRegistryImpl.cpp: Add the implementations for resource loading.
1195         (WebCore::BlobRegistryImpl::createResourceHandle):
1196         (WebCore::BlobRegistryImpl::loadResourceSynchronously):
1197         * platform/network/BlobResourceHandle.cpp: Fix a bug that the ref is not added.
1198         (WebCore::BlobResourceHandle::BlobResourceHandle):
1199         * platform/network/FormData.cpp: Account to BlobData change.
1200         (WebCore::FormData::create):
1201         (WebCore::FormData::createMultiPart):
1202         (WebCore::FormData::deepCopy):
1203         (WebCore::FormData::appendFile):
1204         (WebCore::FormData::appendKeyValuePairItems):
1205         * platform/network/FormData.h: Account to BlobData change.
1206         * platform/network/mac/FormDataStreamMac.mm: Resolve blob references in the form data.
1207         (WebCore::closeCurrentStream):
1208         (WebCore::advanceCurrentStream):
1209         (WebCore::formCreate):
1210         (WebCore::formRead):
1211         (WebCore::setHTTPBody):
1212         * xml/XMLHttpRequest.cpp: Account to BlobData change.
1213         (WebCore::XMLHttpRequest::send):
1214
1215 2010-08-30  Eric Seidel  <eric@webkit.org>
1216
1217         Unreviewed, rolling out r66418.
1218         http://trac.webkit.org/changeset/66418
1219         https://bugs.webkit.org/show_bug.cgi?id=44896
1220
1221         Adam tried to roll this out with:
1222         https://bugs.webkit.org/show_bug.cgi?id=44924
1223         but we hit a commit-queue edgecase and it failed, trying again.
1224
1225         Causing test failures on multiple bots
1226
1227         * rendering/RenderForeignObject.cpp:
1228         (WebCore::RenderForeignObject::layout):
1229         * rendering/RenderObject.cpp:
1230         * rendering/RenderObject.h:
1231         (WebCore::RenderObject::setNeedsBoundariesUpdate):
1232         * rendering/RenderObjectChildList.cpp:
1233         (WebCore::RenderObjectChildList::removeChildNode):
1234         * rendering/RenderPath.cpp:
1235         (WebCore::RenderPath::layout):
1236         (WebCore::RenderPath::paint):
1237         (WebCore::RenderPath::styleWillChange):
1238         * rendering/RenderPath.h:
1239         (WebCore::RenderPath::setNeedsBoundariesUpdate):
1240         * rendering/RenderSVGBlock.cpp:
1241         * rendering/RenderSVGBlock.h:
1242         * rendering/RenderSVGContainer.cpp:
1243         (WebCore::RenderSVGContainer::RenderSVGContainer):
1244         (WebCore::RenderSVGContainer::layout):
1245         (WebCore::RenderSVGContainer::paint):
1246         (WebCore::RenderSVGContainer::objectBoundingBox):
1247         (WebCore::RenderSVGContainer::strokeBoundingBox):
1248         (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates):
1249         * rendering/RenderSVGContainer.h:
1250         (WebCore::RenderSVGContainer::calculateLocalTransform):
1251         * rendering/RenderSVGGradientStop.h:
1252         * rendering/RenderSVGHiddenContainer.cpp:
1253         (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
1254         (WebCore::RenderSVGHiddenContainer::objectBoundingBox):
1255         (WebCore::RenderSVGHiddenContainer::repaintRectInLocalCoordinates):
1256         * rendering/RenderSVGHiddenContainer.h:
1257         * rendering/RenderSVGImage.cpp:
1258         (WebCore::RenderSVGImage::layout):
1259         * rendering/RenderSVGImage.h:
1260         * rendering/RenderSVGInline.cpp:
1261         * rendering/RenderSVGInline.h:
1262         * rendering/RenderSVGModelObject.cpp:
1263         * rendering/RenderSVGModelObject.h:
1264         * rendering/RenderSVGRoot.cpp:
1265         (WebCore::RenderSVGRoot::RenderSVGRoot):
1266         (WebCore::RenderSVGRoot::layout):
1267         (WebCore::RenderSVGRoot::objectBoundingBox):
1268         (WebCore::RenderSVGRoot::strokeBoundingBox):
1269         (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates):
1270         * rendering/RenderSVGRoot.h:
1271         * rendering/RenderSVGText.cpp:
1272         (WebCore::RenderSVGText::layout):
1273         * rendering/RenderSVGTransformableContainer.cpp:
1274         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
1275         * rendering/RenderSVGTransformableContainer.h:
1276         * rendering/RenderSVGViewportContainer.cpp:
1277         (WebCore::RenderSVGViewportContainer::calcViewport):
1278         * rendering/SVGRenderSupport.cpp:
1279         (WebCore::SVGRenderSupport::computeContainerBoundingBox):
1280         * rendering/SVGRenderSupport.h:
1281         * rendering/style/SVGRenderStyle.cpp:
1282         (WebCore::SVGRenderStyle::diff):
1283
1284 2010-08-30  Adam Barth  <abarth@webkit.org>
1285
1286         Reviewed by Eric Seidel.
1287
1288         Implement CDATASection state for the HTMLTokenizer
1289         https://bugs.webkit.org/show_bug.cgi?id=44923
1290
1291         In the spec, this state refers back to the HTMLTreeBuilder from the
1292         HTMLTokenizer.  Rather that introduce that (backwards) dependencies, we
1293         have the tree builder set a bit on the tokenizer.
1294
1295         * html/parser/HTMLTokenizer.cpp:
1296         (WebCore::HTMLTokenizer::reset):
1297         (WebCore::HTMLTokenizer::nextToken):
1298         * html/parser/HTMLTokenizer.h:
1299         (WebCore::HTMLTokenizer::shouldAllowCDATA):
1300         (WebCore::HTMLTokenizer::setShouldAllowCDATA):
1301         * html/parser/HTMLTreeBuilder.cpp:
1302         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
1303
1304 2010-08-30  Adam Barth  <abarth@webkit.org>
1305
1306         Reviewed by Eric Seidel.
1307
1308         Enable HTML5lib's test_innerHTML01.dat
1309         https://bugs.webkit.org/show_bug.cgi?id=44919
1310
1311         These tests provoked two branches that we hadn't implemented yet.
1312
1313         * html/parser/HTMLTreeBuilder.cpp:
1314         (WebCore::HTMLTreeBuilder::processStartTag):
1315         (WebCore::HTMLTreeBuilder::processEndTag):
1316
1317 2010-08-30  Mark Rowe  <mrowe@apple.com>
1318
1319         Reviewed by Darin Adler.
1320
1321         Stop using a QuickDraw function that was only used for debugging purposes.
1322
1323         * platform/graphics/mac/SimpleFontDataMac.mm:
1324         (WebCore::pathFromFont):
1325
1326 2010-08-30  Ryosuke Niwa  <rniwa@webkit.org>
1327
1328         Reviewed by Darin Adler.
1329
1330         queryCommandValue("BackColor") returns rgb(0,0,0) for elements with transparent background
1331         https://bugs.webkit.org/show_bug.cgi?id=21680
1332
1333         The bug was caused by WebKit's using the computed style to obtain the background color,
1334         which is rgba(0,0,0,0) for nodes with transparent background color. While this is correct
1335         in the accordance to CSS2 because background-color is not inherited by default,
1336         it is not desirable for editing purposes where the background color in effect is expected.
1337
1338         Modified valueStyle in EditorCommand.cpp to call Editor::selectionStartCSSPropertyValue,
1339         instead of Frame::selectionStartStylePropertyValue, which traverses common ancestors of
1340         the selected range or caret to retrieve the effective background color of the selected region
1341         instead of the background color at the start of the selection.
1342         This takes effect when the original background color is transparent or the selection is range
1343         (to avoid picking up the background color only present at the start of paragraph).
1344
1345         Removed selectionStartStylePropertyValue and migrated it to Editor::selectionStartCSSPropertyValue.
1346
1347         Test: editing/execCommand/query-command-value-background-color.html
1348
1349         * editing/Editor.cpp:
1350         (WebCore::hasTransparentBackgroundColor): Checks whether the specified style's background color is transparent or not.
1351         (WebCore::Editor::selectionStartCSSPropertyValue): Migrated the contents of selectionStartStylePropertyValue and
1352           added the special case for background color.
1353         * editing/Editor.h: Added the prototype for selectionStartCSSPropertyValue.
1354         * editing/EditorCommand.cpp:
1355         (WebCore::valueStyle): Calls Editor::selectionStartCSSPropertyValue.
1356         * page/Frame.cpp: Removed selectionStartStylePropertyValue.
1357         * page/Frame.h: Ditto.
1358
1359 2010-08-30  Lei Zhang  <thestig@chromium.org>
1360
1361         Reviewed by Shinichiro Hamaji.
1362
1363         Defer printing until the FrameLoader finishes loading.
1364         https://bugs.webkit.org/show_bug.cgi?id=43658
1365
1366         * manual-tests/print-before-load.html: Added.
1367
1368         * loader/FrameLoader.cpp:
1369         (WebCore::FrameLoader::finishedLoading):
1370         * page/DOMWindow.cpp:
1371         (WebCore::DOMWindow::DOMWindow):
1372         (WebCore::DOMWindow::print):
1373         * page/DOMWindow.h:
1374         (WebCore::DOMWindow::printDeferred):
1375
1376 2010-08-30  Chris Rogers  <crogers@google.com>
1377
1378         Reviewed by Kenneth Russell.
1379
1380         audio engine: add ReverbConvolver class
1381         https://bugs.webkit.org/show_bug.cgi?id=34912
1382
1383         No new tests since audio API is not yet implemented.
1384
1385         * platform/audio: Added.
1386         * platform/audio/ReverbAccumulationBuffer.cpp: Added.
1387         (WebCore::ReverbAccumulationBuffer::ReverbAccumulationBuffer):
1388         (WebCore::ReverbAccumulationBuffer::readAndClear):
1389         (WebCore::ReverbAccumulationBuffer::updateReadIndex):
1390         (WebCore::ReverbAccumulationBuffer::accumulate):
1391         (WebCore::ReverbAccumulationBuffer::reset):
1392         * platform/audio/ReverbAccumulationBuffer.h: Added.
1393         (WebCore::ReverbAccumulationBuffer::readIndex):
1394         (WebCore::ReverbAccumulationBuffer::readTimeFrame):
1395         * platform/audio/ReverbConvolver.cpp: Added.
1396         (WebCore::backgroundThreadEntry):
1397         (WebCore::ReverbConvolver::ReverbConvolver):
1398         (WebCore::ReverbConvolver::~ReverbConvolver):
1399         (WebCore::ReverbConvolver::backgroundThreadEntry):
1400         (WebCore::ReverbConvolver::process):
1401         (WebCore::ReverbConvolver::reset):
1402         * platform/audio/ReverbConvolver.h: Added.
1403         (WebCore::ReverbConvolver::impulseResponseLength):
1404         (WebCore::ReverbConvolver::inputBuffer):
1405         (WebCore::ReverbConvolver::useBackgroundThreads):
1406         * platform/audio/ReverbConvolverStage.cpp: Added.
1407         (WebCore::ReverbConvolverStage::ReverbConvolverStage):
1408         (WebCore::ReverbConvolverStage::processInBackground):
1409         (WebCore::ReverbConvolverStage::process):
1410         (WebCore::ReverbConvolverStage::reset):
1411         * platform/audio/ReverbConvolverStage.h: Added.
1412         (WebCore::ReverbConvolverStage::inputReadIndex):
1413         * platform/audio/ReverbInputBuffer.cpp: Added.
1414         (WebCore::ReverbInputBuffer::ReverbInputBuffer):
1415         (WebCore::ReverbInputBuffer::write):
1416         (WebCore::ReverbInputBuffer::directReadFrom):
1417         (WebCore::ReverbInputBuffer::reset):
1418         * platform/audio/ReverbInputBuffer.h: Added.
1419         (WebCore::ReverbInputBuffer::writeIndex):
1420
1421 2010-08-30  Nikolas Zimmermann  <nzimmermann@rim.com>
1422
1423         Reviewed by Dirk Schulze.
1424
1425         Add culling to RenderSVGContainer
1426         https://bugs.webkit.org/show_bug.cgi?id=44896
1427
1428         Cache object/strokeBoundingBox and repaintRectInLocalCoordinates() in RenderSVGContainer & RenderSVGRoot, just like it's done in RenderPath.
1429         Propagate boundary changes up the render tree, in layout phase, in order to notify parents that they should update their cached boundaries.
1430
1431         This is a huge speed benefit when interacting with an already layouted document, as there's no need anymore to traverse all children
1432         of any container or <svg> element, just to retrieve the repaint rect.
1433
1434         * rendering/RenderForeignObject.cpp:
1435         (WebCore::RenderForeignObject::layout):
1436         * rendering/RenderObject.cpp:
1437         (WebCore::RenderObject::setNeedsBoundariesUpdate):
1438         * rendering/RenderObject.h:
1439         * rendering/RenderObjectChildList.cpp:
1440         (WebCore::RenderObjectChildList::removeChildNode):
1441         * rendering/RenderPath.cpp:
1442         (WebCore::RenderPath::layout):
1443         (WebCore::RenderPath::paint):
1444         * rendering/RenderPath.h:
1445         (WebCore::RenderPath::path):
1446         (WebCore::RenderPath::setNeedsBoundariesUpdate):
1447         * rendering/RenderSVGBlock.cpp:
1448         (WebCore::RenderSVGBlock::styleWillChange):
1449         * rendering/RenderSVGBlock.h:
1450         * rendering/RenderSVGContainer.cpp:
1451         (WebCore::RenderSVGContainer::RenderSVGContainer):
1452         (WebCore::RenderSVGContainer::layout):
1453         (WebCore::RenderSVGContainer::paint):
1454         (WebCore::RenderSVGContainer::updateCachedBoundaries):
1455         * rendering/RenderSVGContainer.h:
1456         (WebCore::RenderSVGContainer::setNeedsBoundariesUpdate):
1457         (WebCore::RenderSVGContainer::objectBoundingBox):
1458         (WebCore::RenderSVGContainer::strokeBoundingBox):
1459         (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates):
1460         (WebCore::RenderSVGContainer::calculateLocalTransform):
1461         * rendering/RenderSVGGradientStop.h:
1462         (WebCore::RenderSVGGradientStop::strokeBoundingBox):
1463         * rendering/RenderSVGHiddenContainer.cpp:
1464         * rendering/RenderSVGHiddenContainer.h:
1465         (WebCore::RenderSVGHiddenContainer::clippedOverflowRectForRepaint):
1466         * rendering/RenderSVGImage.cpp:
1467         (WebCore::RenderSVGImage::layout):
1468         (WebCore::RenderSVGImage::styleWillChange):
1469         * rendering/RenderSVGImage.h:
1470         * rendering/RenderSVGInline.cpp:
1471         (WebCore::RenderSVGInline::styleWillChange):
1472         * rendering/RenderSVGInline.h:
1473         * rendering/RenderSVGModelObject.cpp:
1474         (WebCore::RenderSVGModelObject::styleWillChange):
1475         * rendering/RenderSVGModelObject.h:
1476         * rendering/RenderSVGRoot.cpp:
1477         (WebCore::RenderSVGRoot::RenderSVGRoot):
1478         (WebCore::RenderSVGRoot::layout):
1479         (WebCore::RenderSVGRoot::styleWillChange):
1480         (WebCore::RenderSVGRoot::updateCachedBoundaries):
1481         * rendering/RenderSVGRoot.h:
1482         (WebCore::RenderSVGRoot::setNeedsBoundariesUpdate):
1483         (WebCore::RenderSVGRoot::setNeedsTransformUpdate):
1484         (WebCore::RenderSVGRoot::objectBoundingBox):
1485         (WebCore::RenderSVGRoot::strokeBoundingBox):
1486         (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates):
1487         * rendering/RenderSVGText.cpp:
1488         (WebCore::RenderSVGText::layout):
1489         * rendering/RenderSVGTransformableContainer.cpp:
1490         (WebCore::RenderSVGTransformableContainer::calculateLocalTransform):
1491         * rendering/RenderSVGTransformableContainer.h:
1492         * rendering/RenderSVGViewportContainer.cpp:
1493         (WebCore::RenderSVGViewportContainer::calcViewport):
1494         * rendering/SVGRenderSupport.cpp:
1495         (WebCore::SVGRenderSupport::computeContainerBoundingBoxes):
1496         (WebCore::SVGRenderSupport::paintInfoIntersectsRepaintRect):
1497         * rendering/SVGRenderSupport.h:
1498         * rendering/style/SVGRenderStyle.cpp:
1499         (WebCore::SVGRenderStyle::diff):
1500
1501 2010-08-30  Leandro Pereira  <leandro@profusion.mobi>
1502
1503         [EFL] Unreviewed. Build fix when ENABLE_WEB_SOCKETS=ON.
1504
1505         EFL port does not yet support automated tests.
1506
1507         * CMakeLists.txt: Add missing files.
1508         * CMakeListsEfl.txt: Ditto.
1509
1510 2010-08-30  Kenneth Russell  <kbr@google.com>
1511
1512         Reviewed by Chris Marrin.
1513
1514         Expose Vector3 and associated operations
1515         https://bugs.webkit.org/show_bug.cgi?id=44666
1516
1517         Rolling out earlier patch exposing Vector3 class in
1518         TransformationMatrix.h. A different approach will be taken under
1519         another bug.
1520
1521         * platform/graphics/transforms/TransformationMatrix.cpp:
1522         (WebCore::v3Length):
1523         (WebCore::v3Scale):
1524         (WebCore::v3Dot):
1525         (WebCore::v3Combine):
1526         (WebCore::v3Cross):
1527         (WebCore::decompose):
1528         * platform/graphics/transforms/TransformationMatrix.ha:
1529
1530 2010-08-30  Jer Noble  <jer.noble@apple.com>
1531
1532         Build fix; Unreviewed.
1533
1534         Added a export symbol to the WebCore.exp.in list.
1535
1536         * WebCore.exp.in:
1537
1538 2010-08-30  Chris Rogers  <crogers@google.com>
1539
1540         Reviewed by Kenneth Russell.
1541
1542         Add audio cone effect files.  The cone effect operates as defined in the OpenAL specification.
1543         https://bugs.webkit.org/show_bug.cgi?id=44712
1544
1545         No new tests since audio API not implemented yet.
1546
1547         * platform/audio: Added.
1548         * platform/audio/Cone.cpp: Added.
1549         (WebCore::ConeEffect::ConeEffect):
1550         (WebCore::ConeEffect::gain):
1551         * platform/audio/Cone.h: Added.
1552         (WebCore::ConeEffect::setInnerAngle):
1553         (WebCore::ConeEffect::innerAngle):
1554         (WebCore::ConeEffect::setOuterAngle):
1555         (WebCore::ConeEffect::outerAngle):
1556         (WebCore::ConeEffect::setOuterGain):
1557         (WebCore::ConeEffect::outerGain):
1558
1559 2010-08-30  Chris Rogers  <crogers@google.com>
1560
1561         Reviewed by Chris Marrin.
1562
1563         audio engine: add Reverb class
1564         https://bugs.webkit.org/show_bug.cgi?id=36466
1565
1566         No new tests since audio API is not yet implemented.
1567
1568         * platform/audio: Added.
1569         * platform/audio/Reverb.cpp: Added.
1570         (WebCore::calculateNormalizationScale):
1571         (WebCore::Reverb::Reverb):
1572         (WebCore::Reverb::initialize):
1573         (WebCore::Reverb::process):
1574         (WebCore::Reverb::reset):
1575         * platform/audio/Reverb.h: Added.
1576         (WebCore::Reverb::):
1577         (WebCore::Reverb::impulseResponseLength):
1578
1579 2010-08-30  Chris Rogers  <crogers@google.com>
1580
1581         Unreviewed
1582
1583         Add WebCore/platform/audio directory
1584         in preparation for landing: https://bugs.webkit.org/show_bug.cgi?id=36466
1585
1586         * platform/audio: Added.
1587
1588 2010-08-27  Jer Noble  <jer.noble@apple.com>
1589
1590         Reviewed by Eric Carlson.
1591
1592         text/plain non-video files cause <video> to hang (while reading them?)
1593         https://bugs.webkit.org/show_bug.cgi?id=44212
1594         
1595         Disable all the QuickTime components which ingest .txt files.
1596
1597         New tests: 
1598         * http/tests/media/video-served-as-text.html: Added.
1599         * http/tests/media/text-served-as-text.html: Added.
1600
1601         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1602         (WebCore::MediaPlayerPrivate::createQTMovie): Disable all four text
1603             'eat' components.
1604         * platform/mac/WebCoreSystemInterface.h: Add wkQTMovieDisableComponent.
1605         * platform/mac/WebCoreSystemInterface.mm: Add wkQTMovieDisableComponent.
1606
1607 2010-08-30  Robert Hogan  <robert@webkit.org>
1608
1609         Reviewed by Simon Hausmann.
1610
1611         allow ports with windowed plugins to support windowless plugin tests
1612
1613         https://bugs.webkit.org/show_bug.cgi?id=40730
1614
1615         Ports that implement plugins windowed by default need to have a way of
1616         supporting plugin tests that assume the plugin is windowless. Add this
1617         feature to the tests and support it in the webkit test plugin. Also
1618         add mouse and keyboard event logging to the webkit-test plugin on Unix.
1619
1620         Unskip the following tests on Qt:
1621
1622         plugins/mouse-events.html
1623         plugins/keyboard-events.html
1624         plugins/mouse-events-fixedpos.html
1625
1626         * plugins/qt/PluginViewQt.cpp:
1627         (WebCore::PluginView::setFocus):
1628         (WebCore::setXKeyEventSpecificFields):
1629
1630 2010-08-30  Kinuko Yasuda  <kinuko@chromium.org>
1631
1632         Reviewed by Darin Fisher.
1633
1634         Add DOMFileSystem implementation to support Entry manipulation operations
1635         https://bugs.webkit.org/show_bug.cgi?id=44732
1636
1637         No new tests; tests will be added later.
1638
1639         * storage/DOMFileSystem.cpp:
1640         (WebCore::DOMFileSystem::root):
1641         (WebCore::checkValidityForForCopyOrMove): Added.
1642         (WebCore::DOMFileSystem::getMetadata): Added.
1643         (WebCore::DOMFileSystem::move): Added.
1644         (WebCore::DOMFileSystem::copy): Added.
1645         (WebCore::DOMFileSystem::remove): Added.
1646         (WebCore::DOMFileSystem::getParent): Added.
1647         (WebCore::DOMFileSystem::getFile): Added.
1648         (WebCore::DOMFileSystem::getDirectory): Added.
1649         (WebCore::DOMFileSystem::readDirectory): Added.
1650         * storage/DirectoryEntry.cpp:
1651         (WebCore::DirectoryEntry::getFile): Added implementation.
1652         (WebCore::DirectoryEntry::getDirectory): Added implementation.
1653         * storage/DirectoryReader.cpp:
1654         (WebCore::DirectoryReader::DirectoryReader): Added implementation.
1655         (WebCore::DirectoryReader::readEntries): Added implementation.
1656         * storage/DirectoryReader.h:
1657         * storage/Entry.cpp:
1658         (WebCore::Entry::getMetadata): Added implementation.
1659         (WebCore::Entry::moveTo): Added implementation.
1660         (WebCore::Entry::copyTo): Added implementation.
1661         (WebCore::Entry::remove): Added implementation.
1662         (WebCore::Entry::getParent): Added implementation.
1663         * storage/Entry.h:
1664         * storage/FileEntry.h:
1665
1666         Added a helper template to schedule callbacks.
1667         * storage/DOMFileSystem.h:
1668         (WebCore::DOMFileSystem::DispatchCallbackTask): Added to schedule callbacks.
1669         (WebCore::DOMFileSystem::scheduleCallback): Added to schedule callbacks.
1670
1671         Changed to fire callbacks asynchronously.
1672         * storage/LocalFileSystem.cpp:
1673         (WebCore::LocalFileSystem::requestFileSystem):
1674
1675 2010-08-30  Alejandro G. Castro  <alex@igalia.com>
1676
1677         Reviewed by Xan Lopez.
1678
1679         Fixed compilation error, now that we have included the
1680         GtkVersioning.h we have to remove some version dependent code from
1681         EventSender.
1682
1683         * platform/gtk/GtkVersioning.c:
1684         (gdk_window_get_root_coords):
1685         * platform/gtk/GtkVersioning.h:
1686
1687 2010-08-30  Beth Dakin  <bdakin@apple.com>
1688
1689         Reviewed by Sam Weinig.
1690
1691         Fix for https://bugs.webkit.org/show_bug.cgi?id=44804 Crashes in 
1692         RenderMathMLRoot::layout() and RenderMathMLRoot::paint()
1693         -and corresponding-
1694         <rdar://problem/8342055>
1695
1696         All of the calls to firstChild() and lastChild() in 
1697         RenderMathMLRoot::layout() and RenderMathMLRoot::paint() need to be 
1698         null checked.
1699
1700         * mathml/RenderMathMLRoot.cpp:
1701         (WebCore::RenderMathMLRoot::paint):
1702         (WebCore::RenderMathMLRoot::layout):
1703
1704 2010-08-30  Beth Dakin  <bdakin@apple.com>
1705
1706         Reviewed by Darin Adler.
1707
1708         Fix for https://bugs.webkit.org/show_bug.cgi?id=44801 Crash in 
1709         RenderMathMLSubSup::layout()
1710         -and corresponding-
1711         <rdar://problem/8325203>
1712
1713         Null-check m_scripts. It is null-checked everywhere else in the 
1714         class and can legitimately be null.
1715
1716         * mathml/RenderMathMLSubSup.cpp:
1717         (WebCore::RenderMathMLSubSup::layout):
1718
1719 2010-08-30  Alejandro G. Castro  <alex@igalia.com>
1720
1721         Reviewed by Martin Robinson.
1722
1723         [Gtk] gdk_display_get_core_pointer and gdk_device_get_core_pointer
1724         are deprecated
1725         https://bugs.webkit.org/show_bug.cgi?id=44787
1726
1727         We have replaced GtkVersioning.cpp with GtkVersioning.c and
1728         created a function (getDefaultGDKPointerDevice) to get the pointer
1729         of the window with the new APIs. We added that function to DRT and
1730         copyandpaste unit test.
1731
1732         * GNUmakefile.am:
1733         * platform/gtk/GtkVersioning.c: Added.
1734         (gtk_adjustment_set_value):
1735         (gtk_adjustment_configure):
1736         (getDefaultGDKPointerDevice):
1737         * platform/gtk/GtkVersioning.cpp: Removed.
1738         * platform/gtk/GtkVersioning.h:
1739
1740 2010-08-30  Darin Adler  <darin@apple.com>
1741
1742         Reviewed by Sam Weinig.
1743
1744         Make SVG constructors private to make sure callers all use create
1745         https://bugs.webkit.org/show_bug.cgi?id=44872
1746
1747         Made as many members private and protected as possible, and got rid of many
1748         unneeded empty constructor and destructor definitions, in some cases changing
1749         a class to be non-polymorphic. Made some functions inline. Used the word document
1750         instead of the abbreviation doc. Removed unneeded explicit base class
1751         initialization in cases where it is no different from the default behavior.
1752
1753         * svg/SVGAElement.cpp:
1754         (WebCore::SVGAElement::SVGAElement):
1755         (WebCore::SVGAElement::childShouldCreateRenderer):
1756         * svg/SVGAElement.h:
1757         * svg/SVGAltGlyphElement.cpp:
1758         (WebCore::SVGAltGlyphElement::SVGAltGlyphElement):
1759         * svg/SVGAltGlyphElement.h:
1760         * svg/SVGAngle.cpp:
1761         * svg/SVGAngle.h:
1762         * svg/SVGAnimateColorElement.cpp:
1763         (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
1764         * svg/SVGAnimateColorElement.h:
1765         * svg/SVGAnimateElement.cpp:
1766         (WebCore::SVGAnimateElement::SVGAnimateElement):
1767         * svg/SVGAnimateElement.h:
1768         * svg/SVGAnimateMotionElement.cpp:
1769         (WebCore::SVGAnimateMotionElement::SVGAnimateMotionElement):
1770         * svg/SVGAnimateMotionElement.h:
1771         * svg/SVGAnimateTransformElement.cpp:
1772         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
1773         * svg/SVGAnimateTransformElement.h:
1774         * svg/SVGAnimatedPathData.cpp:
1775         * svg/SVGAnimatedPathData.h:
1776         * svg/SVGAnimatedPoints.cpp:
1777         * svg/SVGAnimatedPoints.h:
1778         * svg/SVGAnimationElement.cpp:
1779         (WebCore::SVGAnimationElement::SVGAnimationElement):
1780         * svg/SVGAnimationElement.h:
1781         * svg/SVGCircleElement.cpp:
1782         (WebCore::SVGCircleElement::SVGCircleElement):
1783         * svg/SVGCircleElement.h:
1784         * svg/SVGClipPathElement.cpp:
1785         (WebCore::SVGClipPathElement::SVGClipPathElement):
1786         * svg/SVGClipPathElement.h:
1787         * svg/SVGColor.cpp:
1788         * svg/SVGColor.h:
1789         * svg/SVGComponentTransferFunctionElement.cpp:
1790         (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
1791         * svg/SVGComponentTransferFunctionElement.h:
1792         * svg/SVGCursorElement.cpp:
1793         (WebCore::SVGCursorElement::SVGCursorElement):
1794         * svg/SVGCursorElement.h:
1795         * svg/SVGDefsElement.cpp:
1796         (WebCore::SVGDefsElement::SVGDefsElement):
1797         * svg/SVGDefsElement.h:
1798         * svg/SVGDescElement.cpp:
1799         (WebCore::SVGDescElement::SVGDescElement):
1800         * svg/SVGDescElement.h:
1801         * svg/SVGDocument.cpp:
1802         * svg/SVGDocument.h:
1803         * svg/SVGDocumentExtensions.cpp:
1804         (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
1805         (WebCore::SVGDocumentExtensions::reportWarning):
1806         (WebCore::SVGDocumentExtensions::reportError):
1807         * svg/SVGDocumentExtensions.h:
1808         * svg/SVGElement.h:
1809         * svg/SVGElementInstanceList.h:
1810         * svg/SVGEllipseElement.cpp:
1811         (WebCore::SVGEllipseElement::SVGEllipseElement):
1812         * svg/SVGEllipseElement.h:
1813         * svg/SVGExternalResourcesRequired.cpp:
1814         * svg/SVGExternalResourcesRequired.h:
1815         * svg/SVGFEBlendElement.cpp:
1816         (WebCore::SVGFEBlendElement::SVGFEBlendElement):
1817         * svg/SVGFEBlendElement.h:
1818         * svg/SVGFEColorMatrixElement.cpp:
1819         (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1820         * svg/SVGFEColorMatrixElement.h:
1821         * svg/SVGFEComponentTransferElement.cpp:
1822         (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
1823         * svg/SVGFEComponentTransferElement.h:
1824         * svg/SVGFECompositeElement.cpp:
1825         (WebCore::SVGFECompositeElement::SVGFECompositeElement):
1826         * svg/SVGFECompositeElement.h:
1827         * svg/SVGFEConvolveMatrixElement.cpp:
1828         (WebCore::SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement):
1829         * svg/SVGFEConvolveMatrixElement.h:
1830         * svg/SVGFEDiffuseLightingElement.cpp:
1831         (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
1832         * svg/SVGFEDiffuseLightingElement.h:
1833         * svg/SVGFEDisplacementMapElement.cpp:
1834         (WebCore::SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
1835         * svg/SVGFEDisplacementMapElement.h:
1836         * svg/SVGFEDistantLightElement.cpp:
1837         (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
1838         * svg/SVGFEDistantLightElement.h:
1839         * svg/SVGFEFloodElement.cpp:
1840         (WebCore::SVGFEFloodElement::SVGFEFloodElement):
1841         * svg/SVGFEFloodElement.h:
1842         * svg/SVGFEFuncAElement.cpp:
1843         (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
1844         * svg/SVGFEFuncAElement.h:
1845         * svg/SVGFEFuncBElement.cpp:
1846         (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
1847         * svg/SVGFEFuncBElement.h:
1848         * svg/SVGFEFuncGElement.cpp:
1849         (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
1850         * svg/SVGFEFuncGElement.h:
1851         * svg/SVGFEFuncRElement.cpp:
1852         (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
1853         * svg/SVGFEFuncRElement.h:
1854         * svg/SVGFEGaussianBlurElement.cpp:
1855         (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
1856         * svg/SVGFEGaussianBlurElement.h:
1857         * svg/SVGFEImageElement.cpp:
1858         (WebCore::SVGFEImageElement::SVGFEImageElement):
1859         * svg/SVGFEImageElement.h:
1860         * svg/SVGFELightElement.cpp:
1861         (WebCore::SVGFELightElement::SVGFELightElement):
1862         * svg/SVGFELightElement.h:
1863         * svg/SVGFEMergeElement.cpp:
1864         (WebCore::SVGFEMergeElement::SVGFEMergeElement):
1865         * svg/SVGFEMergeElement.h:
1866         * svg/SVGFEMergeNodeElement.cpp:
1867         (WebCore::SVGFEMergeNodeElement::SVGFEMergeNodeElement):
1868         * svg/SVGFEMergeNodeElement.h:
1869         * svg/SVGFEMorphologyElement.cpp:
1870         (WebCore::SVGFEMorphologyElement::SVGFEMorphologyElement):
1871         * svg/SVGFEMorphologyElement.h:
1872         * svg/SVGFEOffsetElement.cpp:
1873         (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
1874         * svg/SVGFEOffsetElement.h:
1875         * svg/SVGFEPointLightElement.cpp:
1876         (WebCore::SVGFEPointLightElement::SVGFEPointLightElement):
1877         (WebCore::SVGFEPointLightElement::lightSource):
1878         * svg/SVGFEPointLightElement.h:
1879         * svg/SVGFESpecularLightingElement.cpp:
1880         (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
1881         * svg/SVGFESpecularLightingElement.h:
1882         * svg/SVGFESpotLightElement.cpp:
1883         (WebCore::SVGFESpotLightElement::SVGFESpotLightElement):
1884         * svg/SVGFESpotLightElement.h:
1885         * svg/SVGFETileElement.cpp:
1886         (WebCore::SVGFETileElement::SVGFETileElement):
1887         * svg/SVGFETileElement.h:
1888         * svg/SVGFETurbulenceElement.cpp:
1889         (WebCore::SVGFETurbulenceElement::SVGFETurbulenceElement):
1890         * svg/SVGFETurbulenceElement.h:
1891         * svg/SVGFilterElement.cpp:
1892         (WebCore::SVGFilterElement::SVGFilterElement):
1893         * svg/SVGFilterElement.h:
1894         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
1895         (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
1896         * svg/SVGFilterPrimitiveStandardAttributes.h:
1897         * svg/SVGFitToViewBox.cpp:
1898         * svg/SVGFitToViewBox.h:
1899         * svg/SVGFontData.cpp:
1900         * svg/SVGFontData.h:
1901         * svg/SVGFontElement.cpp:
1902         (WebCore::SVGFontElement::SVGFontElement):
1903         * svg/SVGFontElement.h:
1904         * svg/SVGFontFaceElement.cpp:
1905         (WebCore::SVGFontFaceElement::SVGFontFaceElement):
1906         * svg/SVGFontFaceElement.h:
1907         * svg/SVGFontFaceFormatElement.cpp:
1908         (WebCore::SVGFontFaceFormatElement::SVGFontFaceFormatElement):
1909         * svg/SVGFontFaceFormatElement.h:
1910         * svg/SVGFontFaceNameElement.cpp:
1911         (WebCore::SVGFontFaceNameElement::SVGFontFaceNameElement):
1912         * svg/SVGFontFaceNameElement.h:
1913         * svg/SVGFontFaceSrcElement.cpp:
1914         (WebCore::SVGFontFaceSrcElement::SVGFontFaceSrcElement):
1915         * svg/SVGFontFaceSrcElement.h:
1916         * svg/SVGFontFaceUriElement.cpp:
1917         (WebCore::SVGFontFaceUriElement::SVGFontFaceUriElement):
1918         * svg/SVGFontFaceUriElement.h:
1919         * svg/SVGForeignObjectElement.cpp:
1920         (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
1921         * svg/SVGForeignObjectElement.h:
1922         * svg/SVGGElement.cpp:
1923         (WebCore::SVGGElement::SVGGElement):
1924         * svg/SVGGElement.h:
1925         * svg/SVGGlyphElement.cpp:
1926         (WebCore::SVGGlyphElement::SVGGlyphElement):
1927         * svg/SVGGlyphElement.h:
1928         * svg/SVGGradientElement.cpp:
1929         (WebCore::SVGGradientElement::SVGGradientElement):
1930         * svg/SVGGradientElement.h:
1931         * svg/SVGHKernElement.cpp:
1932         (WebCore::SVGHKernElement::SVGHKernElement):
1933         * svg/SVGHKernElement.h:
1934         * svg/SVGImageElement.cpp:
1935         (WebCore::SVGImageElement::SVGImageElement):
1936         * svg/SVGImageElement.h:
1937         * svg/SVGImageLoader.cpp:
1938         * svg/SVGImageLoader.h:
1939         * svg/SVGLangSpace.cpp:
1940         * svg/SVGLangSpace.h:
1941         * svg/SVGLengthList.cpp:
1942         * svg/SVGLengthList.h:
1943         * svg/SVGLineElement.cpp:
1944         (WebCore::SVGLineElement::SVGLineElement):
1945         * svg/SVGLineElement.h:
1946         * svg/SVGLinearGradientElement.cpp:
1947         (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
1948         * svg/SVGLinearGradientElement.h:
1949         * svg/SVGLocatable.cpp:
1950         * svg/SVGLocatable.h:
1951         * svg/SVGMPathElement.cpp:
1952         (WebCore::SVGMPathElement::SVGMPathElement):
1953         * svg/SVGMPathElement.h:
1954         * svg/SVGMarkerElement.cpp:
1955         (WebCore::SVGMarkerElement::SVGMarkerElement):
1956         * svg/SVGMarkerElement.h:
1957         * svg/SVGMaskElement.cpp:
1958         (WebCore::SVGMaskElement::SVGMaskElement):
1959         * svg/SVGMaskElement.h:
1960         * svg/SVGMetadataElement.cpp:
1961         (WebCore::SVGMetadataElement::SVGMetadataElement):
1962         * svg/SVGMetadataElement.h:
1963         * svg/SVGMissingGlyphElement.cpp:
1964         (WebCore::SVGMissingGlyphElement::SVGMissingGlyphElement):
1965         * svg/SVGMissingGlyphElement.h:
1966         * svg/SVGNumberList.cpp:
1967         * svg/SVGNumberList.h:
1968         * svg/SVGPaint.cpp:
1969         * svg/SVGPaint.h:
1970         * svg/SVGParserUtilities.cpp:
1971         (WebCore::genericParseNumber):
1972         (WebCore::parseNumber):
1973         * svg/SVGPathBlender.cpp:
1974         * svg/SVGPathBlender.h:
1975         * svg/SVGPathBuilder.h:
1976         * svg/SVGPathByteStreamBuilder.h:
1977         * svg/SVGPathByteStreamSource.cpp:
1978         * svg/SVGPathByteStreamSource.h:
1979         * svg/SVGPathConsumer.h:
1980         * svg/SVGPathElement.cpp:
1981         (WebCore::SVGPathElement::SVGPathElement):
1982         * svg/SVGPathElement.h:
1983         * svg/SVGPathParser.cpp:
1984         * svg/SVGPathParser.h:
1985         * svg/SVGPathSeg.cpp:
1986         * svg/SVGPathSeg.h:
1987         * svg/SVGPathSegArc.h:
1988         * svg/SVGPathSegClosePath.cpp:
1989         * svg/SVGPathSegClosePath.h:
1990         * svg/SVGPathSegCurvetoCubic.h:
1991         * svg/SVGPathSegCurvetoCubicSmooth.h:
1992         * svg/SVGPathSegCurvetoQuadratic.h:
1993         * svg/SVGPathSegCurvetoQuadraticSmooth.h:
1994         * svg/SVGPathSegLineto.h:
1995         * svg/SVGPathSegLinetoHorizontal.h:
1996         * svg/SVGPathSegLinetoVertical.h:
1997         * svg/SVGPathSegList.cpp:
1998         * svg/SVGPathSegList.h:
1999         * svg/SVGPathSegListBuilder.h:
2000         * svg/SVGPathSegListSource.cpp:
2001         * svg/SVGPathSegListSource.h:
2002         * svg/SVGPathSegMoveto.h:
2003         * svg/SVGPathSource.h:
2004         * svg/SVGPathStringBuilder.cpp:
2005         * svg/SVGPathStringBuilder.h:
2006         * svg/SVGPathStringSource.cpp:
2007         * svg/SVGPathStringSource.h:
2008         * svg/SVGPatternElement.cpp:
2009         (WebCore::SVGPatternElement::SVGPatternElement):
2010         * svg/SVGPatternElement.h:
2011         * svg/SVGPointList.cpp:
2012         * svg/SVGPointList.h:
2013         * svg/SVGPolyElement.cpp:
2014         (WebCore::SVGPolyElement::SVGPolyElement):
2015         * svg/SVGPolyElement.h:
2016         * svg/SVGPolygonElement.cpp:
2017         (WebCore::SVGPolygonElement::SVGPolygonElement):
2018         * svg/SVGPolygonElement.h:
2019         * svg/SVGPolylineElement.cpp:
2020         (WebCore::SVGPolylineElement::SVGPolylineElement):
2021         * svg/SVGPolylineElement.h:
2022         * svg/SVGPreserveAspectRatio.cpp:
2023         * svg/SVGPreserveAspectRatio.h:
2024         * svg/SVGRadialGradientElement.cpp:
2025         (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
2026         * svg/SVGRadialGradientElement.h:
2027         * svg/SVGRectElement.cpp:
2028         (WebCore::SVGRectElement::SVGRectElement):
2029         * svg/SVGRectElement.h:
2030         * svg/SVGSVGElement.h:
2031         * svg/SVGScriptElement.cpp:
2032         (WebCore::SVGScriptElement::SVGScriptElement):
2033         * svg/SVGScriptElement.h:
2034         * svg/SVGSetElement.cpp:
2035         (WebCore::SVGSetElement::SVGSetElement):
2036         * svg/SVGSetElement.h:
2037         * svg/SVGStopElement.cpp:
2038         (WebCore::SVGStopElement::SVGStopElement):
2039         * svg/SVGStopElement.h:
2040         * svg/SVGStringList.cpp:
2041         * svg/SVGStringList.h:
2042         * svg/SVGStylable.cpp:
2043         * svg/SVGStylable.h:
2044         * svg/SVGStyleElement.cpp:
2045         (WebCore::SVGStyleElement::SVGStyleElement):
2046         * svg/SVGStyleElement.h:
2047         * svg/SVGStyledElement.cpp:
2048         (WebCore::SVGStyledElement::SVGStyledElement):
2049         * svg/SVGStyledElement.h:
2050         * svg/SVGStyledLocatableElement.cpp:
2051         (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
2052         * svg/SVGStyledLocatableElement.h:
2053         * svg/SVGStyledTransformableElement.cpp:
2054         (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
2055         * svg/SVGStyledTransformableElement.h:
2056         * svg/SVGSwitchElement.cpp:
2057         (WebCore::SVGSwitchElement::SVGSwitchElement):
2058         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
2059         * svg/SVGSwitchElement.h:
2060         * svg/SVGSymbolElement.cpp:
2061         (WebCore::SVGSymbolElement::SVGSymbolElement):
2062         * svg/SVGSymbolElement.h:
2063         * svg/SVGTRefElement.cpp:
2064         (WebCore::SVGTRefElement::SVGTRefElement):
2065         * svg/SVGTRefElement.h:
2066         * svg/SVGTSpanElement.cpp:
2067         (WebCore::SVGTSpanElement::SVGTSpanElement):
2068         * svg/SVGTests.cpp:
2069         * svg/SVGTests.h:
2070         * svg/SVGTextContentElement.cpp:
2071         (WebCore::SVGTextContentElement::SVGTextContentElement):
2072         * svg/SVGTextContentElement.h:
2073         * svg/SVGTextElement.cpp:
2074         (WebCore::SVGTextElement::SVGTextElement):
2075         * svg/SVGTextElement.h:
2076         * svg/SVGTextPathElement.cpp:
2077         (WebCore::SVGTextPathElement::SVGTextPathElement):
2078         * svg/SVGTextPathElement.h:
2079         * svg/SVGTextPositioningElement.cpp:
2080         (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
2081         * svg/SVGTextPositioningElement.h:
2082         * svg/SVGTitleElement.cpp:
2083         (WebCore::SVGTitleElement::SVGTitleElement):
2084         * svg/SVGTransform.cpp:
2085         * svg/SVGTransform.h:
2086         * svg/SVGTransformable.cpp:
2087         * svg/SVGTransformable.h:
2088         * svg/SVGURIReference.cpp:
2089         * svg/SVGURIReference.h:
2090         * svg/SVGUseElement.cpp:
2091         (WebCore::SVGUseElement::SVGUseElement):
2092         (WebCore::SVGUseElement::expandSymbolElementsInShadowTree):
2093         * svg/SVGUseElement.h:
2094         * svg/SVGViewElement.cpp:
2095         (WebCore::SVGViewElement::SVGViewElement):
2096         * svg/SVGViewElement.h:
2097         * svg/SVGViewSpec.cpp:
2098         (WebCore::SVGViewSpec::SVGViewSpec):
2099         * svg/SVGViewSpec.h:
2100         * svg/SVGZoomAndPan.cpp:
2101         * svg/SVGZoomAndPan.h:
2102         * svg/SVGZoomEvent.cpp:
2103         * svg/SVGZoomEvent.h:
2104
2105 2010-08-30  Eric Carlson  <eric.carlson@apple.com>
2106
2107         Reviewed by Dan Bernstein.
2108
2109         Disable automatic looping
2110         https://bugs.webkit.org/show_bug.cgi?id=44844
2111
2112         Test: media/video-does-not-loop.html
2113
2114         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2115         (WebCore::MediaPlayerPrivate::createQTMovie): Disable QuickTime automatic looping.
2116
2117         * platform/graphics/win/QTMovie.cpp:
2118         (QTMoviePrivate::createMovieController): Ditto.
2119
2120 2010-08-30  Ryosuke Niwa  <rniwa@webkit.org>
2121
2122         Reviewed by Darin Adler.
2123
2124         ApplyStyleCommand::applyInlineStyle needs cleanup
2125         https://bugs.webkit.org/show_bug.cgi?id=44458
2126
2127         Cleanup:
2128         1. Isolated code to find the highest ancestor with embedding style, and deployed it in
2129            ApplyStyleCommand::applyInlineStyle.
2130         2. Combined the code to remove embedding style up to enclosing block and the code to
2131            remove unicode-bidi and direction properties between start and end nodes.
2132         3. Simplified the conditionals to apply embedding styles.
2133
2134         No new tests are added since this is a cleanup.
2135
2136         * editing/ApplyStyleCommand.cpp:
2137         (WebCore::highestEmbeddingAncestor): Added.
2138         (WebCore::ApplyStyleCommand::applyInlineStyle): See above.
2139
2140 2010-08-30  Martin Robinson  <mrobinson@igalia.com>
2141
2142         Build fix. Add the new fileapi directory to the IDL vpath.
2143
2144         * GNUmakefile.am:
2145
2146 2010-08-30  Martin Robinson  <mrobinson@igalia.com>
2147
2148         Reviewed by Xan Lopez.
2149
2150         [GTK] WebKit DOM bindings build should not depend on output GNUMakefile
2151         https://bugs.webkit.org/show_bug.cgi?id=44805
2152
2153         Move WebKit DOM bindings build rules to bindings/gobject/GNUmakefile.am to
2154         prevent full WebKit API rebuilds when the automake files change.
2155
2156         No new tests as this is just a build change.
2157
2158         * bindings/gobject/GNUmakefile.am: Added.
2159
2160 2010-08-30  Pavel Feldman  <pfeldman@chromium.org>
2161
2162         Reviewed by Yury Semikhatsky.
2163
2164         Web Inspector: event listener properties are rendered as [object Object].
2165         https://bugs.webkit.org/show_bug.cgi?id=44779
2166
2167         * inspector/front-end/EventListenersSidebarPane.js:
2168
2169 2010-08-30  Ryuan Choi  <ryuan.choi@samsung.com>
2170
2171         Unreviewed build fix with Blob Support
2172
2173         [EFL] Build break with Blob support
2174         https://bugs.webkit.org/show_bug.cgi?id=44858
2175
2176         No new features added, so no new tests.
2177
2178         * CMakeLists.txt:
2179
2180 2010-08-30  Andras Becsi  <abecsi@webkit.org>
2181
2182         Unreviewed trivial fix.
2183
2184         [Qt] Let qmake know about HTML parser headers.
2185
2186         No new tests needed.
2187
2188         * WebCore.pro:
2189
2190 2010-08-30  Andras Becsi  <abecsi@webkit.org>
2191
2192         Unreviewed build fix.
2193
2194         [Qt] Fix fileapi header paths to fix warnings after r66365.
2195
2196         No new tests needed.
2197
2198         * WebCore.pro:
2199
2200 2010-08-30  Csaba Osztrogonác  <ossy@webkit.org>
2201
2202         Reviewed by Kent Tamura.
2203
2204         REGRESSION(r66355): Fix warnings in html/DateComponents.cpp
2205         https://bugs.webkit.org/show_bug.cgi?id=44855
2206
2207         * html/DateComponents.cpp:
2208         (WebCore::DateComponents::setMillisecondsSinceEpochForWeek): Suggested parentheses added around && within ||
2209
2210 2010-08-30  Csaba Osztrogonác  <ossy@webkit.org>
2211
2212         Reviewed by Darin Adler.
2213
2214         REGRESSION(r66324): Fix warnings in editing/ApplyStyleCommand.cpp
2215         https://bugs.webkit.org/show_bug.cgi?id=44843
2216
2217         * editing/ApplyStyleCommand.cpp:
2218         (WebCore::ApplyStyleCommand::removeImplicitlyStyledElement): Suggested parentheses added around && within ||
2219
2220 2010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2221
2222         Unreviewed, rolling out r66198.
2223         http://trac.webkit.org/changeset/66198
2224         https://bugs.webkit.org/show_bug.cgi?id=44856
2225
2226         It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
2227
2228         * inspector/Inspector.idl:
2229         * inspector/InspectorController.cpp:
2230         (WebCore::InspectorController::inspectedPageDestroyed):
2231         (WebCore::InspectorController::close):
2232         * inspector/InspectorFrontendClient.h:
2233         * inspector/InspectorFrontendHost.cpp:
2234         * inspector/InspectorFrontendHost.h:
2235         * inspector/InspectorFrontendHost.idl:
2236         * inspector/front-end/InspectorFrontendHostStub.js:
2237         * inspector/front-end/inspector.js:
2238         (WebInspector.inspectedPageDestroyed):
2239
2240 2010-08-30  Marc-Antoine Ruel  <maruel@chromium.org>
2241
2242         Reviewed by Kent Tamura.
2243
2244         Split webcore_svg off webcore_remaining. webcore_svg contains all svg
2245         sources files.
2246         https://bugs.webkit.org/show_bug.cgi?id=44840
2247
2248         * WebCore.gyp/WebCore.gyp:
2249
2250 2010-08-13  MORITA Hajime  <morrita@google.com>
2251
2252         Reviewed by Kent Tamura.
2253
2254         https://bugs.webkit.org/show_bug.cgi?id=43960
2255         [Chromium] styled scroll bar on the window is painted badly.
2256
2257         WebKit assumes outermost scrollbar always painted. 
2258         So force their style to have the  background color if it isn't 
2259         given by the stylesheet.
2260         
2261         Test: scrollbars/custom-scrollbar-with-incomplete-style.html
2262
2263         * rendering/RenderObject.h:
2264         (WebCore::RenderObject::hasBackground): Extracted body to RenderStyle for sharing.
2265         * rendering/RenderScrollbar.cpp:
2266         (WebCore::RenderScrollbar::getScrollbarPseudoStyle): Added the workaround as mentioned above.
2267         * rendering/RenderScrollbar.h:
2268         * rendering/style/RenderStyle.h:
2269         (WebCore::InheritedFlags::hasBackground): Extracted from RenderObject.
2270
2271 2010-08-30  Adam Barth  <abarth@webkit.org>
2272
2273         Reviewed by Darin Adler.
2274
2275         WebCore::RenderBlock::addChild* NULL ptrs
2276         https://bugs.webkit.org/show_bug.cgi?id=43722
2277
2278         Also includes some cleanup of comments and ASSERTs.
2279
2280         Test: fast/ruby/before-doesnt-crash.html
2281
2282         * rendering/RenderRuby.cpp:
2283         (WebCore::RenderRubyAsInline::addChild):
2284
2285 2010-08-30  Marc-Antoine Ruel  <maruel@chromium.org>
2286
2287         Reviewed by Kent Tamura
2288
2289         Move most dependencies to webcore_prerequisites
2290         https://bugs.webkit.org/show_bug.cgi?id=44814
2291
2292         * WebCore.gyp/WebCore.gyp:
2293
2294 2010-08-30  Adam Barth  <abarth@webkit.org>
2295
2296         Move AsyncImageResizer back to html to fix Chromium build.
2297
2298         * WebCore.gypi:
2299
2300 2010-08-30  Adam Barth  <abarth@webkit.org>
2301
2302         Fix silly typo that breaks the build.
2303
2304         * WebCore.pro:
2305
2306 2010-08-30  Adam Barth  <abarth@webkit.org>
2307
2308         Attempt to fix the Qt build.
2309
2310         * WebCore.pri:
2311
2312 2010-08-30  Adam Barth  <abarth@webkit.org>
2313
2314         Attempt to fix Chromium build.
2315
2316         * WebCore.gyp/WebCore.gyp:
2317
2318 2010-08-29  Adam Barth  <abarth@webkit.org>
2319
2320         Rubber-stamped by Maciej Stachowiak.
2321
2322         Move File and Blob related files from WebCore/html to WebCore/fileapi.
2323
2324         * Android.mk:
2325         * CMakeLists.txt:
2326         * DerivedSources.make:
2327         * GNUmakefile.am:
2328         * WebCore.gypi:
2329         * WebCore.pro:
2330         * WebCore.vcproj/WebCore.vcproj:
2331         * WebCore.vcproj/WebCoreCommon.vsprops:
2332         * WebCore.xcodeproj/project.pbxproj:
2333         * fileapi: Added.
2334         * fileapi/AsyncFileWriter.h: Copied from WebCore/html/AsyncFileWriter.h.
2335         * fileapi/Blob.cpp: Copied from WebCore/html/Blob.cpp.
2336         * fileapi/Blob.h: Copied from WebCore/html/Blob.h.
2337         * fileapi/Blob.idl: Copied from WebCore/html/Blob.idl.
2338         * fileapi/BlobBuilder.cpp: Copied from WebCore/html/BlobBuilder.cpp.
2339         * fileapi/BlobBuilder.h: Copied from WebCore/html/BlobBuilder.h.
2340         * fileapi/BlobBuilder.idl: Copied from WebCore/html/BlobBuilder.idl.
2341         * fileapi/BlobURL.cpp: Copied from WebCore/html/BlobURL.cpp.
2342         * fileapi/BlobURL.h: Copied from WebCore/html/BlobURL.h.
2343         * fileapi/File.cpp: Copied from WebCore/html/File.cpp.
2344         * fileapi/File.h: Copied from WebCore/html/File.h.
2345         * fileapi/File.idl: Copied from WebCore/html/File.idl.
2346         * fileapi/FileError.h: Copied from WebCore/html/FileError.h.
2347         * fileapi/FileError.idl: Copied from WebCore/html/FileError.idl.
2348         * fileapi/FileList.cpp: Copied from WebCore/html/FileList.cpp.
2349         * fileapi/FileList.h: Copied from WebCore/html/FileList.h.
2350         * fileapi/FileList.idl: Copied from WebCore/html/FileList.idl.
2351         * fileapi/FileReader.cpp: Copied from WebCore/html/FileReader.cpp.
2352         * fileapi/FileReader.h: Copied from WebCore/html/FileReader.h.
2353         * fileapi/FileReader.idl: Copied from WebCore/html/FileReader.idl.
2354         * fileapi/FileStreamProxy.cpp: Copied from WebCore/html/FileStreamProxy.cpp.
2355         * fileapi/FileStreamProxy.h: Copied from WebCore/html/FileStreamProxy.h.
2356         * fileapi/FileThread.cpp: Copied from WebCore/html/FileThread.cpp.
2357         * fileapi/FileThread.h: Copied from WebCore/html/FileThread.h.
2358         * fileapi/FileThreadTask.h: Copied from WebCore/html/FileThreadTask.h.
2359         * fileapi/FileWriter.cpp: Copied from WebCore/html/FileWriter.cpp.
2360         * fileapi/FileWriter.h: Copied from WebCore/html/FileWriter.h.
2361         * fileapi/FileWriter.idl: Copied from WebCore/html/FileWriter.idl.
2362         * fileapi/FileWriterClient.h: Copied from WebCore/html/FileWriterClient.h.
2363         * fileapi/ThreadableBlobRegistry.cpp: Copied from WebCore/html/ThreadableBlobRegistry.cpp.
2364         * fileapi/ThreadableBlobRegistry.h: Copied from WebCore/html/ThreadableBlobRegistry.h.
2365         * html/AsyncFileWriter.h: Removed.
2366         * html/Blob.cpp: Removed.
2367         * html/Blob.h: Removed.
2368         * html/Blob.idl: Removed.
2369         * html/BlobBuilder.cpp: Removed.
2370         * html/BlobBuilder.h: Removed.
2371         * html/BlobBuilder.idl: Removed.
2372         * html/BlobURL.cpp: Removed.
2373         * html/BlobURL.h: Removed.
2374         * html/File.cpp: Removed.
2375         * html/File.h: Removed.
2376         * html/File.idl: Removed.
2377         * html/FileError.h: Removed.
2378         * html/FileError.idl: Removed.
2379         * html/FileList.cpp: Removed.
2380         * html/FileList.h: Removed.
2381         * html/FileList.idl: Removed.
2382         * html/FileReader.cpp: Removed.
2383         * html/FileReader.h: Removed.
2384         * html/FileReader.idl: Removed.
2385         * html/FileStreamProxy.cpp: Removed.
2386         * html/FileStreamProxy.h: Removed.
2387         * html/FileThread.cpp: Removed.
2388         * html/FileThread.h: Removed.
2389         * html/FileThreadTask.h: Removed.
2390         * html/FileWriter.cpp: Removed.
2391         * html/FileWriter.h: Removed.
2392         * html/FileWriter.idl: Removed.
2393         * html/FileWriterClient.h: Removed.
2394         * html/ThreadableBlobRegistry.cpp: Removed.
2395         * html/ThreadableBlobRegistry.h: Removed.
2396
2397 2010-08-29  Marc-Antoine Ruel  <maruel@chromium.org>
2398
2399         Reviewed by Kent Tamura.
2400
2401         Move more common settings to webcore_prerequisites
2402         https://bugs.webkit.org/show_bug.cgi?id=44812
2403
2404         * WebCore.gyp/WebCore.gyp:
2405
2406 2010-08-29  Darin Adler  <darin@apple.com>
2407
2408         Reviewed by Maciej Stachowiak.
2409
2410         Create SVG and WML elements with create functions instead of direct invocations of new
2411         https://bugs.webkit.org/show_bug.cgi?id=44851
2412
2413         Added the create functions, made some existing constructors protected and private,
2414         made some other member functions protected and and private, added some missing virtual
2415         keywords for clarity to functions that already were overriding virtual functions,
2416         fixed some inconsistent indentation, and removed some unneeded empty destructors.
2417
2418         In the future, it will be good to have the constructors all be private so we don't
2419         use them by accident. Then we'll change the reference count rule globally and add
2420         all the necessary calls to adoptRef.
2421
2422         The SVG changes are compiled and tested. The WML changes are speculative and untested.
2423
2424         * dom/make_names.pl: Removed supportfor the createWithNew keyword.
2425         * svg/svgtags.in: Removed all the createWithNew keywords.
2426         * wml/WMLTagNames.in: Ditto.
2427
2428         * svg/SVGAElement.cpp:
2429         (WebCore::SVGAElement::create): Added.
2430         * svg/SVGAElement.h:
2431         * svg/SVGAltGlyphElement.cpp:
2432         (WebCore::SVGAltGlyphElement::create): Added.
2433         * svg/SVGAltGlyphElement.h:
2434         * svg/SVGAnimateColorElement.cpp:
2435         (WebCore::SVGAnimateColorElement::create): Added.
2436         * svg/SVGAnimateColorElement.h:
2437         * svg/SVGAnimateElement.cpp:
2438         (WebCore::SVGAnimateElement::create): Added.
2439         * svg/SVGAnimateElement.h:
2440         * svg/SVGAnimateMotionElement.cpp:
2441         (WebCore::SVGAnimateMotionElement::create): Added.
2442         * svg/SVGAnimateMotionElement.h:
2443         * svg/SVGAnimateTransformElement.cpp:
2444         (WebCore::SVGAnimateTransformElement::create): Added.
2445         * svg/SVGAnimateTransformElement.h:
2446         * svg/SVGCircleElement.cpp:
2447         (WebCore::SVGCircleElement::create): Added.
2448         * svg/SVGCircleElement.h:
2449         * svg/SVGClipPathElement.cpp:
2450         (WebCore::SVGClipPathElement::create): Added.
2451         * svg/SVGClipPathElement.h:
2452         * svg/SVGCursorElement.cpp:
2453         (WebCore::SVGCursorElement::create): Added.
2454         * svg/SVGCursorElement.h:
2455         * svg/SVGDefsElement.cpp:
2456         (WebCore::SVGDefsElement::create): Added.
2457         * svg/SVGDefsElement.h:
2458         * svg/SVGDescElement.cpp:
2459         (WebCore::SVGDescElement::create): Added.
2460         * svg/SVGDescElement.h:
2461         * svg/SVGEllipseElement.cpp:
2462         (WebCore::SVGEllipseElement::create): Added.
2463         * svg/SVGEllipseElement.h:
2464         * svg/SVGFEBlendElement.cpp:
2465         (WebCore::SVGFEBlendElement::create): Added.
2466         * svg/SVGFEBlendElement.h:
2467         * svg/SVGFEColorMatrixElement.cpp:
2468         (WebCore::SVGFEColorMatrixElement::create): Added.
2469         * svg/SVGFEColorMatrixElement.h:
2470         * svg/SVGFEComponentTransferElement.cpp:
2471         (WebCore::SVGFEComponentTransferElement::create): Added.
2472         * svg/SVGFEComponentTransferElement.h:
2473         * svg/SVGFECompositeElement.cpp:
2474         (WebCore::SVGFECompositeElement::create): Added.
2475         * svg/SVGFECompositeElement.h:
2476         * svg/SVGFEConvolveMatrixElement.cpp:
2477         (WebCore::SVGFEConvolveMatrixElement::create): Added.
2478         * svg/SVGFEConvolveMatrixElement.h:
2479         * svg/SVGFEDiffuseLightingElement.cpp:
2480         (WebCore::SVGFEDiffuseLightingElement::create): Added.
2481         * svg/SVGFEDiffuseLightingElement.h:
2482         * svg/SVGFEDisplacementMapElement.cpp:
2483         (WebCore::SVGFEDisplacementMapElement::create): Added.
2484         * svg/SVGFEDisplacementMapElement.h:
2485         * svg/SVGFEDistantLightElement.cpp:
2486         (WebCore::SVGFEDistantLightElement::create): Added.
2487         * svg/SVGFEDistantLightElement.h:
2488         * svg/SVGFEFloodElement.cpp:
2489         (WebCore::SVGFEFloodElement::create): Added.
2490         * svg/SVGFEFloodElement.h:
2491         * svg/SVGFEFuncAElement.cpp:
2492         (WebCore::SVGFEFuncAElement::create): Added.
2493         * svg/SVGFEFuncAElement.h:
2494         * svg/SVGFEFuncBElement.cpp:
2495         (WebCore::SVGFEFuncBElement::create): Added.
2496         * svg/SVGFEFuncBElement.h:
2497         * svg/SVGFEFuncGElement.cpp:
2498         (WebCore::SVGFEFuncGElement::create): Added.
2499         * svg/SVGFEFuncGElement.h:
2500         * svg/SVGFEFuncRElement.cpp:
2501         (WebCore::SVGFEFuncRElement::create): Added.
2502         * svg/SVGFEFuncRElement.h:
2503         * svg/SVGFEGaussianBlurElement.cpp:
2504         (WebCore::SVGFEGaussianBlurElement::create): Added.
2505         * svg/SVGFEGaussianBlurElement.h:
2506         * svg/SVGFEImageElement.cpp:
2507         (WebCore::SVGFEImageElement::create): Added.
2508         * svg/SVGFEImageElement.h:
2509         * svg/SVGFEMergeElement.cpp:
2510         (WebCore::SVGFEMergeElement::create): Added.
2511         * svg/SVGFEMergeElement.h:
2512         * svg/SVGFEMergeNodeElement.cpp:
2513         (WebCore::SVGFEMergeNodeElement::create): Added.
2514         * svg/SVGFEMergeNodeElement.h:
2515         * svg/SVGFEMorphologyElement.cpp:
2516         (WebCore::SVGFEMorphologyElement::create): Added.
2517         * svg/SVGFEMorphologyElement.h:
2518         * svg/SVGFEOffsetElement.cpp:
2519         (WebCore::SVGFEOffsetElement::create): Added.
2520         * svg/SVGFEOffsetElement.h:
2521         * svg/SVGFEPointLightElement.cpp:
2522         (WebCore::SVGFEPointLightElement::create): Added.
2523         * svg/SVGFEPointLightElement.h:
2524         * svg/SVGFESpecularLightingElement.cpp:
2525         (WebCore::SVGFESpecularLightingElement::create): Added.
2526         * svg/SVGFESpecularLightingElement.h:
2527         * svg/SVGFESpotLightElement.cpp:
2528         (WebCore::SVGFESpotLightElement::create): Added.
2529         * svg/SVGFESpotLightElement.h:
2530         * svg/SVGFETileElement.cpp:
2531         (WebCore::SVGFETileElement::create): Added.
2532         * svg/SVGFETileElement.h:
2533         * svg/SVGFETurbulenceElement.cpp:
2534         (WebCore::SVGFETurbulenceElement::create): Added.
2535         * svg/SVGFETurbulenceElement.h:
2536         * svg/SVGFilterElement.cpp:
2537         (WebCore::SVGFilterElement::create): Added.
2538         * svg/SVGFilterElement.h:
2539         * svg/SVGFontElement.cpp:
2540         (WebCore::SVGFontElement::create): Added.
2541         * svg/SVGFontElement.h:
2542         * svg/SVGFontFaceElement.cpp:
2543         (WebCore::SVGFontFaceElement::create): Added.
2544         * svg/SVGFontFaceElement.h:
2545         * svg/SVGFontFaceFormatElement.cpp:
2546         (WebCore::SVGFontFaceFormatElement::create): Added.
2547         * svg/SVGFontFaceFormatElement.h:
2548         * svg/SVGFontFaceNameElement.cpp:
2549         (WebCore::SVGFontFaceNameElement::create): Added.
2550         * svg/SVGFontFaceNameElement.h:
2551         * svg/SVGFontFaceSrcElement.cpp:
2552         (WebCore::SVGFontFaceSrcElement::create): Added.
2553         * svg/SVGFontFaceSrcElement.h:
2554         * svg/SVGFontFaceUriElement.cpp:
2555         (WebCore::SVGFontFaceUriElement::create): Added.
2556         * svg/SVGFontFaceUriElement.h:
2557         * svg/SVGForeignObjectElement.cpp:
2558         (WebCore::SVGForeignObjectElement::create): Added.
2559         * svg/SVGForeignObjectElement.h:
2560         * svg/SVGGElement.cpp:
2561         (WebCore::SVGGElement::create): Added.
2562         * svg/SVGGElement.h:
2563         * svg/SVGGlyphElement.cpp:
2564         (WebCore::SVGGlyphElement::create): Added.
2565         * svg/SVGGlyphElement.h:
2566         * svg/SVGHKernElement.cpp:
2567         (WebCore::SVGHKernElement::create): Added.
2568         * svg/SVGHKernElement.h:
2569         * svg/SVGImageElement.cpp:
2570         (WebCore::SVGImageElement::create): Added.
2571         * svg/SVGImageElement.h:
2572         * svg/SVGLineElement.cpp:
2573         (WebCore::SVGLineElement::create): Added.
2574         * svg/SVGLineElement.h:
2575         * svg/SVGLinearGradientElement.cpp:
2576         (WebCore::SVGLinearGradientElement::create): Added.
2577         * svg/SVGLinearGradientElement.h:
2578         * svg/SVGMPathElement.cpp:
2579         (WebCore::SVGMPathElement::create): Added.
2580         * svg/SVGMPathElement.h:
2581         * svg/SVGMarkerElement.cpp:
2582         (WebCore::SVGMarkerElement::create): Added.
2583         * svg/SVGMarkerElement.h:
2584         * svg/SVGMaskElement.cpp:
2585         (WebCore::SVGMaskElement::create): Added.
2586         * svg/SVGMaskElement.h:
2587         * svg/SVGMetadataElement.cpp:
2588         (SVGMetadataElement::create): Added.
2589         * svg/SVGMetadataElement.h:
2590         * svg/SVGMissingGlyphElement.cpp:
2591         (WebCore::SVGMissingGlyphElement::create): Added.
2592         * svg/SVGMissingGlyphElement.h:
2593         * svg/SVGPathElement.cpp:
2594         (WebCore::SVGPathElement::create): Added.
2595         * svg/SVGPathElement.h:
2596         * svg/SVGPatternElement.cpp:
2597         (WebCore::SVGPatternElement::create): Added.
2598         * svg/SVGPatternElement.h:
2599         * svg/SVGPolygonElement.cpp:
2600         (WebCore::SVGPolygonElement::create): Added.
2601         * svg/SVGPolygonElement.h:
2602         * svg/SVGPolylineElement.cpp:
2603         (WebCore::SVGPolylineElement::create): Added.
2604         * svg/SVGPolylineElement.h:
2605         * svg/SVGRadialGradientElement.cpp:
2606         (WebCore::SVGRadialGradientElement::create): Added.
2607         * svg/SVGRadialGradientElement.h:
2608         * svg/SVGRectElement.cpp:
2609         (WebCore::SVGRectElement::create): Added.
2610         * svg/SVGRectElement.h:
2611         * svg/SVGSVGElement.cpp:
2612         (WebCore::SVGSVGElement::create): Added.
2613         * svg/SVGSVGElement.h:
2614         * svg/SVGScriptElement.cpp:
2615         (WebCore::SVGScriptElement::create): Added.
2616         * svg/SVGScriptElement.h:
2617         * svg/SVGSetElement.cpp:
2618         (WebCore::SVGSetElement::create): Added.
2619         * svg/SVGSetElement.h:
2620         * svg/SVGStopElement.cpp:
2621         (WebCore::SVGStopElement::create): Added.
2622         * svg/SVGStopElement.h:
2623         (WebCore::SVGStyleElement::create): Added.
2624         * svg/SVGStyleElement.h:
2625         * svg/SVGSwitchElement.cpp:
2626         (WebCore::SVGSwitchElement::create): Added.
2627         * svg/SVGSwitchElement.h:
2628         * svg/SVGSymbolElement.cpp:
2629         (WebCore::SVGSymbolElement::create): Added.
2630         * svg/SVGSymbolElement.h:
2631         * svg/SVGTRefElement.cpp:
2632         (WebCore::SVGTRefElement::create): Added.
2633         * svg/SVGTRefElement.h:
2634         * svg/SVGTSpanElement.cpp:
2635         (WebCore::SVGTSpanElement::create): Added.
2636         * svg/SVGTSpanElement.h:
2637         * svg/SVGTextContentElement.h:
2638         * svg/SVGTextElement.cpp:
2639         (WebCore::SVGTextElement::create): Added.
2640         * svg/SVGTextElement.h:
2641         * svg/SVGTextPathElement.cpp:
2642         (WebCore::SVGTextPathElement::create): Added.
2643         * svg/SVGTextPathElement.h:
2644         * svg/SVGTextPositioningElement.h:
2645         * svg/SVGTitleElement.cpp:
2646         (WebCore::SVGTitleElement::create): Added.
2647         * svg/SVGTitleElement.h:
2648         * svg/SVGUseElement.cpp:
2649         (WebCore::SVGUseElement::create): Added.
2650         * svg/SVGUseElement.h:
2651         * svg/SVGVKernElement.cpp:
2652         (WebCore::SVGVKernElement::create): Added.
2653         * svg/SVGVKernElement.h:
2654         * svg/SVGViewElement.cpp:
2655         (WebCore::SVGViewElement::create): Added.
2656         * svg/SVGViewElement.h:
2657         * wml/WMLAElement.cpp:
2658         (WebCore::WMLAElement::create): Added.
2659         * wml/WMLAElement.h:
2660         * wml/WMLAccessElement.cpp:
2661         (WebCore::WMLAccessElement::create): Added.
2662         * wml/WMLAccessElement.h:
2663         * wml/WMLAnchorElement.cpp:
2664         (WebCore::WMLAnchorElement::create): Added.
2665         * wml/WMLAnchorElement.h:
2666         * wml/WMLBRElement.cpp:
2667         (WebCore::WMLBRElement::create): Added.
2668         * wml/WMLBRElement.h:
2669         * wml/WMLCardElement.cpp:
2670         (WebCore::WMLCardElement::create): Added.
2671         * wml/WMLCardElement.h:
2672         * wml/WMLDoElement.cpp:
2673         (WebCore::WMLDoElement::create): Added.
2674         * wml/WMLDoElement.h:
2675         * wml/WMLFieldSetElement.cpp:
2676         (WebCore::WMLFieldSetElement::create): Added.
2677         * wml/WMLFieldSetElement.h:
2678         * wml/WMLFormControlElement.cpp:
2679         (WebCore::WMLFormControlElement::create): Added.
2680         * wml/WMLGoElement.cpp:
2681         (WebCore::WMLGoElement::create): Added.
2682         * wml/WMLGoElement.h:
2683         * wml/WMLImageElement.cpp:
2684         (WebCore::WMLImageElement::create): Added.
2685         * wml/WMLImageElement.h:
2686         * wml/WMLInputElement.cpp:
2687         (WebCore::WMLInputElement::create): Added.
2688         * wml/WMLInputElement.h:
2689         * wml/WMLInsertedLegendElement.cpp:
2690         (WebCore::WMLInsertedLegendElement::create): Added.
2691         * wml/WMLInsertedLegendElement.h:
2692         * wml/WMLIntrinsicEvent.cpp:
2693         (WebCore::WMLIntrinsicEvent::create): Added.
2694         * wml/WMLMetaElement.cpp:
2695         (WebCore::WMLMetaElement::create): Added.
2696         * wml/WMLMetaElement.h:
2697         * wml/WMLNoopElement.cpp:
2698         (WebCore::WMLNoopElement::create): Added.
2699         * wml/WMLNoopElement.h:
2700         * wml/WMLOnEventElement.cpp:
2701         (WebCore::WMLOnEventElement::create): Added.
2702         * wml/WMLOnEventElement.h:
2703         * wml/WMLOptGroupElement.cpp:
2704         (WebCore::WMLOptGroupElement::create): Added.
2705         * wml/WMLOptGroupElement.h:
2706         * wml/WMLOptionElement.cpp:
2707         (WebCore::WMLOptionElement::create): Added.
2708         * wml/WMLOptionElement.h:
2709         * wml/WMLPElement.cpp:
2710         (WebCore::WMLPElement::create): Added.
2711         * wml/WMLPElement.h:
2712         * wml/WMLPostfieldElement.cpp:
2713         (WebCore::WMLPostfieldElement::create): Added.
2714         * wml/WMLPostfieldElement.h:
2715         * wml/WMLPrevElement.cpp:
2716         (WebCore::WMLPrevElement::create): Added.
2717         * wml/WMLPrevElement.h:
2718         * wml/WMLRefreshElement.cpp:
2719         (WebCore::WMLRefreshElement::create): Added.
2720         * wml/WMLRefreshElement.h:
2721         * wml/WMLSelectElement.cpp:
2722         (WebCore::WMLSelectElement::create): Added.
2723         * wml/WMLSelectElement.h:
2724         * wml/WMLSetvarElement.cpp:
2725         (WebCore::WMLSetvarElement::create): Added.
2726         * wml/WMLSetvarElement.h:
2727         * wml/WMLTableElement.cpp:
2728         (WebCore::WMLTableElement::create): Added.
2729         * wml/WMLTableElement.h:
2730         * wml/WMLTaskElement.cpp:
2731         (WebCore::WMLTaskElement::create): Added.
2732         * wml/WMLTaskElement.h:
2733         * wml/WMLTemplateElement.cpp:
2734         (WebCore::WMLTemplateElement::create): Added.
2735         * wml/WMLTemplateElement.h:
2736         * wml/WMLTimerElement.cpp:
2737         (WebCore::WMLTimerElement::create): Added.
2738         * wml/WMLTimerElement.h:
2739
2740 2010-08-29  Marc-Antoine Ruel  <maruel@chromium.org>
2741
2742         Reviewed by Kent Tamura.
2743
2744         Rename webcore to 'webcore_remaining'.
2745         https://bugs.webkit.org/show_bug.cgi?id=44796
2746
2747         Create a meta-target webcore that inherits from every webcore_XXX targets. (Currently 1)
2748         Move direct_dependent_settings and export_dependent_settings from webcore_remaining to webcore
2749
2750         Obviously, there will be other webcore_XXX targets. Keeping the change as small as possible.
2751
2752         * WebCore.gyp/WebCore.gyp:
2753
2754 2010-08-29  Jeremy Moskovich  <jeremy@chromium.org>
2755
2756         Reviewed by Dimitri Glazkov.
2757
2758         First step in unforking Chrome's FontPlatformDataMac.mm.
2759         Move files from platform/graphics/mac to platform/graphics/cocoa
2760
2761         https://bugs.webkit.org/show_bug.cgi?id=41398
2762
2763         Just moving files around so no new tests.
2764
2765         * WebCore.gyp/WebCore.gyp:
2766         * WebCore.gypi:
2767         * WebCore.xcodeproj/project.pbxproj:
2768         * platform/graphics/chromium/FontPlatformDataChromiumMac.mm:
2769         * platform/graphics/cocoa/FontPlatformData.h: Copied from WebCore/platform/graphics/mac/FontPlatformData.h.
2770         * platform/graphics/cocoa/FontPlatformDataCocoa.mm: Copied from WebCore/platform/graphics/mac/FontPlatformDataMac.mm.
2771         * platform/graphics/mac/FontPlatformData.h: Removed.
2772         * platform/graphics/mac/FontPlatformDataMac.mm: Removed.
2773
2774 2010-08-29  Kent Tamura  <tkent@chromium.org>
2775
2776         Reviewed by Darin Adler.
2777
2778         Introduce isValidValue(const String&) of HTMLInputElement and HTMLTextAreaElement
2779         https://bugs.webkit.org/show_bug.cgi?id=43537
2780
2781         isValidValue() is useful for browser implementations to propose
2782         form field values without breaking form validity.
2783         No new tests because these functions are not exposed to JavaScript.
2784
2785         * html/HTMLFormControlElement.h:
2786         (WebCore::HTMLTextFormControlElement::):
2787          Remove virtual valueMissing(), patternMismatch(), and tooLong().
2788         * html/HTMLInputElement.cpp:
2789         (WebCore::isValidColorString): Moved from ValidityState.
2790         (WebCore::isValidEmailAddress): ditto.
2791         (WebCore::HTMLInputElement::isValidValue): Added.
2792         (WebCore::HTMLInputElement::typeMismatch): Add a String parameter.
2793         (WebCore::HTMLInputElement::valueMissing): Add a String parameter.
2794         (WebCore::HTMLInputElement::patternMismatch): Add a String parameter.
2795         (WebCore::HTMLInputElement::tooLong): Add String and NeedsToCheckDirtyFlag parameters.
2796         (WebCore::HTMLInputElement::rangeUnderflow): Add a String parameter.
2797         (WebCore::HTMLInputElement::rangeOverflow): Add a String parameter.
2798         (WebCore::HTMLInputElement::stepMismatch): Add a String parameter.
2799         * html/HTMLInputElement.h:
2800         * html/HTMLTextAreaElement.cpp:
2801         (WebCore::HTMLTextAreaElement::tooLong): Add String and NeedsToCheckDirtyFlag parameters.
2802         (WebCore::HTMLTextAreaElement::isValidValue): Added.
2803         * html/HTMLTextAreaElement.h:
2804         (WebCore::HTMLTextAreaElement::valueMissing):
2805         * html/ValidityState.cpp:
2806         (WebCore::ValidityState::valueMissing): Calls valueMissing() of HTMLInputElement or HTMLTextAreaElement.
2807         (WebCore::ValidityState::typeMismatch): Passes value() to HTMLInputElement::typeMismatch().
2808         (WebCore::ValidityState::patternMismatch): Calls patternMismatch() of HTMLInputElement.
2809         (WebCore::ValidityState::tooLong): Calls valueMissing() of HTMLInputElement or HTMLTextAreaElement.
2810         (WebCore::ValidityState::rangeUnderflow): Passes value() to HTMLInputElement::rangeUnderflow().
2811         (WebCore::ValidityState::rangeOverflow): Passes value() to HTMLInputElement::rangeUnderflow().
2812         (WebCore::ValidityState::stepMismatch): Passes value() to HTMLInputElement::stepMismatch().
2813         * html/ValidityState.h:
2814
2815 2010-08-29  Kent Tamura  <tkent@chromium.org>
2816
2817         Reviewed by Darin Adler.
2818
2819         Change lower and higher limits of date/datetime/datetime-local/month/week types
2820         https://bugs.webkit.org/show_bug.cgi?id=39737
2821
2822         According to the latest draft of HTML5, ISO-8601 dates in HTML5
2823         should support A.D.0001 in Gregorian calendar though Gregorian
2824         calendar started in 1582. So, we change the lower limits of
2825         date&time types to 0001-01-01T00:00.
2826
2827         We also introduce the common higher limit, 275760-09-13T00:00. It
2828         is the higher limit of Date type of ECMAScript.
2829
2830         * html/DateComponents.cpp:
2831         (WebCore::DateComponents::parseYear):
2832          Rejects years less than A.D.1 and years greater than 275760.
2833         (WebCore::withinHTMLDateLimits):
2834          Helper functions to check lower and higher limits.
2835         (WebCore::DateComponents::addDay):
2836          - Remove an overflow check. 'year' can't be so large number because
2837            parseYear() rejects such numbers.
2838          - Add withinHTMLDateLimits() calls.
2839         (WebCore::DateComponents::addMinute):
2840          - Add an assertion for the base date.
2841          - Add withinHTMLDateLimits() calls.
2842         (WebCore::DateComponents::parseMonth):
2843          Add withinHTMLDateLimits() call.
2844         (WebCore::DateComponents::parseDate): ditto.
2845         (WebCore::DateComponents::parseWeek): ditto.
2846         (WebCore::DateComponents::parseDateTimeLocal): ditto.
2847         (WebCore::DateComponents::parseDateTime): ditto.
2848         (WebCore::DateComponents::setMillisecondsSinceEpochForDate): ditto.
2849         (WebCore::DateComponents::setMillisecondsSinceEpochForDateTime): ditto.
2850         (WebCore::DateComponents::setMillisecondsSinceEpochForMonth): ditto.
2851         (WebCore::DateComponents::setMonthsSinceEpoch):
2852          Add year range check and withinHTMLDateLimits() call.
2853         (WebCore::DateComponents::setMillisecondsSinceEpochForWeek):
2854          Add year range check and week range check.
2855         * html/DateComponents.h:
2856          Update minimum/maximum constant values.
2857         (WebCore::DateComponents::minimumDate):
2858         (WebCore::DateComponents::minimumDateTime):
2859         (WebCore::DateComponents::minimumMonth):
2860         (WebCore::DateComponents::minimumWeek):
2861         (WebCore::DateComponents::maximumDate):
2862         (WebCore::DateComponents::maximumDateTime):
2863         (WebCore::DateComponents::maximumMonth):
2864         (WebCore::DateComponents::maximumWeek):
2865
2866 2010-08-29  Kwang Yul Seo  <skyul@company100.net>
2867
2868         Reviewed by Kent Tamura.
2869
2870         [BREWMP] Port SharedBuffer::createWithContentsOfFile
2871         https://bugs.webkit.org/show_bug.cgi?id=34412
2872
2873         Implement SharedBuffer::createWithContentsOfFile with IFile.
2874
2875         * platform/brew/SharedBufferBrew.cpp: Added.
2876         (WebCore::SharedBuffer::createWithContentsOfFile):
2877
2878 2010-08-29  Enrica Casucci  <enrica@apple.com>
2879
2880         Reviewed by Adele Peterson.
2881
2882         Crash when dragging text in Google Docs
2883         https://bugs.webkit.org/show_bug.cgi?id=20471
2884         <rdar://problem/7783629>
2885         
2886         This fixes the crash but also fixes the generated markup when
2887         performing a replacement at the border with an inline, to avoid the 
2888         new content being merged into the inline.
2889         The crash is happening when doApply detects the need of merging
2890         the start and the end of the new paragraph and the destination position
2891         is moved inside an inline.
2892         
2893         I've added new test cases to an existing layout test.
2894         
2895         * editing/ReplaceSelectionCommand.cpp:
2896         (WebCore::ReplaceSelectionCommand::doApply): When the situation described above is detected,
2897         we insert a placeholder to avoid merging into the inline.
2898
2899 2010-08-29  Adam Barth  <abarth@webkit.org>
2900
2901         Reviewed by Darin Adler.
2902
2903         Implement HTML5's fakepath
2904         https://bugs.webkit.org/show_bug.cgi?id=29000
2905
2906         The HTML 5 spec says to prepend C:\fakepath\ to the value of an
2907         <input type="file"> control, so that's what we do now.
2908
2909         * html/HTMLInputElement.cpp:
2910         (WebCore::HTMLInputElement::value):
2911
2912 2010-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2913
2914         Unreviewed, rolling out r66329.
2915         http://trac.webkit.org/changeset/66329
2916         https://bugs.webkit.org/show_bug.cgi?id=44845
2917
2918         broke chromium mac (Requested by jamesr on #webkit).
2919
2920         * WebCore.gypi:
2921         * WebCore.xcodeproj/project.pbxproj:
2922         * platform/graphics/mac/FontPlatformData.h: Renamed from WebCore/platform/graphics/cocoa/FontPlatformData.h.
2923         (WebCore::toCTFontRef):
2924         (WebCore::FontPlatformData::FontPlatformData):
2925         (WebCore::FontPlatformData::isHashTableDeletedValue):
2926         (WebCore::FontPlatformData::size):
2927         (WebCore::FontPlatformData::syntheticBold):
2928         (WebCore::FontPlatformData::syntheticOblique):
2929         (WebCore::FontPlatformData::hash):
2930         (WebCore::FontPlatformData::operator==):
2931         (WebCore::FontPlatformData::font):
2932         (WebCore::FontPlatformData::isColorBitmapFont):
2933         (WebCore::FontPlatformData::cgFont):
2934         (WebCore::FontPlatformData::hashTableDeletedFontValue):
2935         * platform/graphics/mac/FontPlatformDataMac.mm: Renamed from WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm.
2936         (WebCore::FontPlatformData::FontPlatformData):
2937         (WebCore::~FontPlatformData):
2938         (WebCore::FontPlatformData::operator=):
2939         (WebCore::FontPlatformData::setFont):
2940         (WebCore::FontPlatformData::roundsGlyphAdvances):
2941         (WebCore::FontPlatformData::allowsLigatures):
2942         (WebCore::FontPlatformData::ctFont):
2943         (WebCore::FontPlatformData::description):
2944
2945 2010-08-29  Simon Fraser  <simon.fraser@apple.com>
2946
2947         Reviewed by Darin Adler.
2948
2949         Fix RenderStyle::addCursor to use a StyleImage, not a CachedImage
2950         https://bugs.webkit.org/show_bug.cgi?id=44719
2951         
2952         Modernize the CSS cursor code to use a StyleImage, rather
2953         than a CachedImage in the CursorData, and handle the loading
2954         of pending images for the cursor property.
2955
2956         Covered by manual tests in WebCore/manual-tests
2957
2958         * css/CSSComputedStyleDeclaration.cpp:
2959         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2960         * css/CSSStyleSelector.cpp:
2961         (WebCore::CSSStyleSelector::applyProperty):
2962         (WebCore::CSSStyleSelector::loadPendingImages):
2963         * html/canvas/WebGLRenderingContext.cpp:
2964         * page/EventHandler.cpp:
2965         (WebCore::EventHandler::selectCursor):
2966         * rendering/style/CursorData.h:
2967         (WebCore::CursorData::CursorData):
2968         (WebCore::CursorData::image):
2969         (WebCore::CursorData::setImage):
2970         * rendering/style/CursorList.h:
2971         (WebCore::CursorList::operator[]):
2972         * rendering/style/RenderStyle.cpp:
2973         (WebCore::RenderStyle::addCursor):
2974         * rendering/style/RenderStyle.h:
2975
2976 2010-08-29  Simon Fraser  <simon.fraser@apple.com>
2977
2978         Reviewed by Darin Adler.
2979
2980         When properties are missing from animation keyframes, interpolate between those keyframes that specify them
2981         https://bugs.webkit.org/show_bug.cgi?id=40794
2982         
2983         When a property does not appear in all keyframes of a keyframe animation, we currently use the
2984         value of that property from the unanimated style. That forces the author to use additional
2985         keyframes for properties that need to "skip a keyframe", which is laborious.
2986         
2987         With this change, properties are interpolated between the keyframes in which they appear.
2988         This is equivalent to splitting each property out into its own set of keyframes.
2989
2990         Tests: animations/missing-keyframe-properties-repeating.html
2991                animations/missing-keyframe-properties-timing-function.html
2992                animations/missing-keyframe-properties.html
2993
2994         * css/CSSStyleSelector.h:
2995         * css/CSSStyleSelector.cpp:
2996         (WebCore::CSSStyleSelector::styleForKeyframe): Pass a KeyframeValue in so that we can
2997         collect which properties are represented per keyframe.
2998         (WebCore::CSSStyleSelector::keyframeStylesForAnimation): Keyframes are inserted into a
2999         KeyframeList by object now, rather than by key and style.
3000
3001         * page/animation/AnimationBase.cpp:
3002         (WebCore::AnimationBase::progress): Use AnimationDirectionAlternate for readability.
3003
3004         * page/animation/KeyframeAnimation.cpp:
3005         (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty): Renamed from getKeyframeAnimationInterval.
3006         Use fractionalTime etc to match AnimationBase::progress(), and do lookups per-property.
3007         Simplify the code that finds the relevant keyframe to do less work.
3008         (WebCore::KeyframeAnimation::animate): Call fetchIntervalEndpointsForProperty() for each property, rather than just once for the
3009         entire keyframe.
3010         (WebCore::KeyframeAnimation::getAnimatedStyle): Ditto.
3011         (WebCore::KeyframeAnimation::hasAnimationForProperty): FIXME comment.
3012
3013         * page/animation/KeyframeAnimation.h: Rename getKeyframeAnimationInterval() to fetchIntervalEndpointsForProperty().
3014
3015         * rendering/RenderLayerBacking.cpp:
3016         (WebCore::RenderLayerBacking::startAnimation): For hardware animations, only insert values
3017         for keyframes which contain the property.
3018
3019         (WebCore::KeyframeList::KeyframeList): insert() takes a KeyframeValue now.
3020         * rendering/style/KeyframeList.cpp:
3021         (WebCore::KeyframeList::operator==):
3022         (WebCore::KeyframeList::insert): Fix insert/replace logic, and ensure we maintain the
3023         m_properties hash.
3024
3025         * rendering/style/KeyframeList.h:
3026         (WebCore::KeyframeValue::KeyframeValue): Make members private, with accessors.
3027         Add a m_properties HashSet for the properties animated in this keyframe.
3028
3029
3030 2010-08-29  Csaba Osztrogonác  <ossy@webkit.org>
3031
3032         Reviewed by Darin Adler.
3033
3034         REGRESSION(r66324): Fix warnings in editing/ApplyStyleCommand.cpp
3035         https://bugs.webkit.org/show_bug.cgi?id=44843
3036
3037         * editing/ApplyStyleCommand.cpp:
3038         (WebCore::ApplyStyleCommand::removeImplicitlyStyledElement): Suggested parentheses added around && within ||
3039
3040 2010-08-29  Darin Adler  <darin@apple.com>
3041
3042         Try to fix Mac build.
3043
3044         * WebCore.xcodeproj/project.pbxproj: Mark CounterContent.h Private instead of Project.
3045
3046 2010-08-29  Pawel Hajdan  <phajdan.jr@chromium.org>
3047
3048         Reviewed by Darin Adler.
3049
3050         Fix libxml workarounds to work with recent versions of libxml.
3051         I was testing locally with libxml2-2.7.6.
3052         https://bugs.webkit.org/show_bug.cgi?id=30508
3053
3054         Based on patch by Philippe Normand <pnormand@igalia.com>.
3055
3056         This also fixes a Chromium bug:
3057         http://code.google.com/p/chromium/issues/detail?id=29333
3058
3059         * dom/XMLDocumentParserLibxml2.cpp:
3060         (WebCore::switchToUTF16):
3061         (WebCore::XMLParserContext::createStringParser):
3062         (WebCore::XMLDocumentParser::doWrite):
3063         (WebCore::startDocumentHandler):
3064
3065 2010-08-29  Darin Adler  <darin@apple.com>
3066
3067         Try to fix Windows build.
3068
3069         * rendering/style/ContentData.h: Added include of CounterContent.h.
3070
3071         * css/CSSStyleSelector.cpp: Removed include of CounterContent.h.
3072         * rendering/style/ContentData.cpp: Ditto.
3073         * rendering/style/RenderStyle.cpp: Ditto.
3074
3075 2010-08-29  Darin Adler  <darin@apple.com>
3076
3077         Reviewed by Sam Weinig.
3078
3079         Deploy OwnPtr, PassOwnPtr, and adoptPtr in some CSS-related files
3080         https://bugs.webkit.org/show_bug.cgi?id=44834
3081
3082         * css/CSSFunctionValue.cpp:
3083         (WebCore::CSSFunctionValue::CSSFunctionValue): Updated since
3084         CSSParserFunction::args is an OwnPtr.
3085         (WebCore::CSSFunctionValue::parserValue): Ditto.
3086
3087         * css/CSSGrammar.y: Added leakPtr calls for putting MediaQueryExp*
3088         into the media query expression list, which is a vector of raw pointers
3089         that are deleted explicitly.
3090
3091         * css/CSSImportRule.cpp:
3092         (WebCore::CSSImportRule::setCSSStyleSheet): Updated to use document instead of doc.
3093         (WebCore::CSSImportRule::insertedIntoParent): Ditto.
3094         * css/CSSMutableStyleDeclaration.cpp:
3095         (WebCore::CSSMutableStyleDeclaration::setNeedsStyleRecalc): Ditto.
3096
3097         * css/CSSNamespace.h: Took the "m_" off the names of the data members of
3098         this structure. Used OwnPtr for the parent data member. Rewrote the
3099         namespaceForPrefix function so it's iterative instead of recursive.
3100
3101         * css/CSSParser.cpp:
3102         (WebCore::CSSParser::CSSParser): Update since m_mediaQuery, m_floatingMediaQuery,
3103         m_floatingMediaQueryExp, and m_floatingMediaQueryExpList are now all OwnPtr and
3104         thus don't need to be initialized.
3105         (WebCore::CSSParser::~CSSParser): Update to not delete the above OwnPtr.
3106         (WebCore::CSSParser::parseMediaQuery): Replaced the code that sets m_mediaQuery
3107         to 0 with an assertion. Also use release when passing the media query to
3108         appendMediaQuery.
3109         (WebCore::CSSParser::document): Updated to use document instead of doc and to
3110         use early return instead of a nested if.
3111         (WebCore::CSSParser::parseContent): Added a get() call needed since
3112         CSSParserFunction::args is an OwnPtr.
3113         (WebCore::CSSParser::parseAnimationTimingFunction): Ditto.
3114         (WebCore::CSSParser::parseDashboardRegions): Ditto.
3115         (WebCore::CSSParser::parseShape): Ditto.
3116         (WebCore::isValidFormatFunction): Ditto.
3117         (WebCore::CSSParser::parseFontFaceSrc): Ditto.
3118         (WebCore::CSSParser::parseColorParameters): Ditto.
3119         (WebCore::CSSParser::parseHSLParameters): Ditto.
3120         (WebCore::parseGradientColorStop): Ditto.
3121         (WebCore::CSSParser::parseGradient): Ditto.
3122         (WebCore::CSSParser::parseCanvas): Ditto.
3123         (WebCore::CSSParser::parseTransform): Ditto.
3124         (WebCore::CSSParser::createFloatingMediaQueryExp): Updated to use adoptPtr and
3125         remove the explicit deletion.
3126         (WebCore::CSSParser::sinkFloatingMediaQueryExp): Updated to use release.
3127         (WebCore::CSSParser::createFloatingMediaQueryExpList): Ditto.
3128         (WebCore::CSSParser::sinkFloatingMediaQueryExpList): Ditto.
3129         (WebCore::CSSParser::createFloatingMediaQuery): Ditto.
3130         (WebCore::CSSParser::sinkFloatingMediaQuery): Ditto.
3131         (WebCore::CSSParser::checkForVariables): Use get for CSSParserFunction::args.
3132
3133         * css/CSSParser.h: Made return values for sinkFloatingMediaQueryExp,
3134         sinkFloatingMediaQueryExpList, and sinkFloatingMediaQuery be PassOwnPtr.
3135         Made createFloatingMediaQuery take a PassOwnPtr. Made m_mediaQuery,
3136         m_floatingMediaQuery, m_floatingMediaQueryExp, and m_floatingMediaQueryExpList
3137         be OwnPtr.
3138
3139         * css/CSSParserValues.h: Made args be an OwnPtr.
3140
3141         * css/CSSStyleSelector.cpp: Made CSSRuleSet m_universalRules and m_pageRules
3142         be OwnPtr.
3143         (WebCore::CSSStyleSelector::CSSStyleSelector): Use document instead of doc.
3144         Got rid of the init function, only called here, because it did nothing that
3145         wasn't already done. Eliminated unneeded code to set m_userStyle to 0, since
3146         it's now an OwnPtr and will be 0 automatically. Use adoptPtr when initializing
3147         m_medium, m_authorStyle, and m_useStyle.
3148         (WebCore::CSSStyleSelector::~CSSStyleSelector): Got rid of unneeded delete of
3149         m_medium, m_authorStyle, and m_userStyle, and unneded clear of m_keyframesRuleMap.
3150         (WebCore::CSSStyleSelector::styleForElement): Use get with m_userStyle and
3151         m_authorStyle.
3152         (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
3153         (WebCore::CSSStyleSelector::styleForPage): Ditto.
3154         (WebCore::CSSStyleSelector::pseudoStyleRulesForElement): Ditto.
3155         (WebCore::CSSRuleSet::CSSRuleSet): Got rid of unneeded initialization of
3156         m_universalRules and m_pageRules.
3157         (WebCore::CSSRuleSet::~CSSRuleSet): Got rid of unneeed deletion of same.
3158         (WebCore::CSSRuleSet::addRule): Use adoptPtr to initialize m_universalRules.
3159         (WebCore::CSSRuleSet::addPageRule): Use adoptPtr to initialize m_pageRules.
3160         (WebCore::CSSStyleSelector::applyProperty): Use adopPtr to create counter
3161         context object.
3162
3163         * css/CSSStyleSelector.h: Made m_authorStyle, m_userStyle, and m_medium use
3164         OwnPtr. Got rid of init function.
3165
3166         * css/CSSStyleSheet.cpp:
3167         (WebCore::CSSStyleSheet::CSSStyleSheet): Updatd for name change from m_doc
3168         and doc to m_document and document. Eliminated unneeded initialization of
3169         m_namespaces now that it is an OwnPtr.
3170         (WebCore::CSSStyleSheet::~CSSStyleSheet): Got rid of unneeded deletion of same.
3171         (WebCore::CSSStyleSheet::cssRules): Updated doc to document.
3172         (WebCore::CSSStyleSheet::addNamespace): Added adopPtr when setting m_namespaces.
3173         (WebCore::CSSStyleSheet::determineNamespace): Updated for changes to the
3174         CSSNamespace class, using uri data member instead of function.
3175         (WebCore::CSSStyleSheet::styleSheetChanged): Use document instead of doc.
3176
3177         * css/CSSStyleSheet.h: Renamed doc and m_doc to document and m_document.
3178         Made m_namespaces an OwnPtr.
3179
3180         * css/CSSValueList.cpp:
3181         (WebCore::CSSValueList::CSSValueList): Clean up logic a bit.
3182         (WebCore::CSSValueList::createParserValueList): Clean up logic a bit and
3183         return a PassOwnPtr.
3184
3185         * css/CSSValueList.h: Changed createParserValueList to return a PassOwnPtr.
3186
3187         * css/CSSVariablesDeclaration.cpp:
3188         (WebCore::CSSVariablesDeclaration::setNeedsStyleRecalc): Updated to use
3189         document instead of doc.
3190
3191         * css/MediaList.cpp:
3192         (WebCore::MediaList::deleteMedium): Use OwnPtr instead of a boolean to
3193         make sure the newly-created query here is deleted.
3194         (WebCore::MediaList::appendMediaQuery): Updated to take PassOwnPtr.
3195
3196         * css/MediaList.h: Changed appendMediaQuery to take a PassOwnPtr.
3197
3198         * inspector/InspectorDOMAgent.cpp:
3199         (WebCore::InspectorDOMAgent::getStyleSheet): Use document instead of doc.
3200         (WebCore::InspectorDOMAgent::getRuleRanges): Ditto.
3201         (WebCore::InspectorDOMAgent::buildObjectForStyleSheet): Ditto.
3202
3203         * rendering/style/ContentData.cpp:
3204         (WebCore::ContentData::clear): Update since data members are OwnPtr.
3205         Also, fixed iterative deletion algorithm to be much simpler.
3206         (WebCore::ContentData::dataEquivalent): Added FIXMEs and tweaked formatting.
3207         (WebCore::ContentData::deleteContent): Tweaked formatting.
3208
3209         * rendering/style/ContentData.h: Changed m_next to an OwnPtr.
3210         Added assertions to getters to check that we get the correct type.
3211         Use leakRef instead of releaseRef. Changed setCounter and setNext functions
3212         to take PassOwnPtr arguments.
3213
3214         * rendering/style/RenderStyle.cpp:
3215         (WebCore::RenderStyle::prepareToSetContent): Refactored common part of the
3216         into a shared function so the three setContent functions don't have to repeat
3217         the logic. Used an OwnPtr to avoid confusing logic and leakPtr.
3218         (WebCore::RenderStyle::setContent): Changed argument to PassOwnPtr.
3219
3220         * rendering/style/RenderStyle.h: Changed setContent argument to a PassOwnPtr.
3221         Added declaration of prepareToSetContent helper function.
3222
3223 2010-08-29  Patrick Gansterer  <paroga@paroga.com>
3224
3225         Reviewed by Adam Roben.
3226
3227         [WINCE] Port ScrollbarThemeWin to WinCE
3228         https://bugs.webkit.org/show_bug.cgi?id=44818
3229
3230         Add a #ifdef around usage of unsupported DFCS_FLAT.
3231
3232         * platform/win/ScrollbarThemeWin.cpp:
3233         (WebCore::ScrollbarThemeWin::paintButton):
3234
3235 2010-08-29  Patrick Gansterer  <paroga@paroga.com>
3236
3237         Reviewed by Adam Roben.
3238
3239         [WINCE] Port SystemInfo to WinCE
3240         https://bugs.webkit.org/show_bug.cgi?id=44817
3241
3242         * platform/win/SystemInfo.cpp:
3243         (WebCore::isRunningOnVistaOrLater):
3244
3245 2010-08-28  Jeremy Moskovich  <jeremy@chromium.org>
3246
3247         Reviewed by Dimitri Glazkov.
3248
3249         First step in unforking Chrome's FontPlatformDataMac.mm.
3250         Move files from platform/graphics/mac to platform/graphics/cocoa
3251
3252         https://bugs.webkit.org/show_bug.cgi?id=41398
3253
3254         Just moving files around so no new tests.
3255
3256         * WebCore.gypi:
3257         * WebCore.xcodeproj/project.pbxproj:
3258         * platform/graphics/cocoa: Added.
3259         * platform/graphics/cocoa/FontPlatformData.h: Copied from WebCore/platform/graphics/mac/FontPlatformData.h.
3260         * platform/graphics/cocoa/FontPlatformDataCocoa.mm: Copied from WebCore/platform/graphics/mac/FontPlatformDataMac.mm.
3261         * platform/graphics/mac/FontPlatformData.h: Removed.
3262         * platform/graphics/mac/FontPlatformDataMac.mm: Removed.
3263
3264 2010-08-28  Darin Adler  <darin@apple.com>
3265
3266         Reviewed by Sam Weinig.
3267
3268         Some IDL attributes don't reflect URL content attributes properly
3269         https://bugs.webkit.org/show_bug.cgi?id=43650
3270
3271         * dom/Document.cpp:
3272         (WebCore::Document::processBaseElement): Added. Implements the rules for base elements
3273         from the HTML5 specification. Handles multiple base elements in the same document.
3274
3275         * dom/Document.h: Removed setBaseElementURL and setBaseElementTarget, replacing them
3276         with processBaseElement.
3277
3278         * html/HTMLBaseElement.cpp:
3279         (WebCore::HTMLBaseElement::parseMappedAttribute): Call the new processBaseElement
3280         function.
3281         (WebCore::HTMLBaseElement::insertedIntoDocument): Ditto.
3282         (WebCore::HTMLBaseElement::removedFromDocument): Ditto.
3283         (WebCore::HTMLBaseElement::isURLAttribute): Added.
3284         (WebCore::HTMLBaseElement::target): Moved here from the .h file and changed to not
3285         realy on an m_target local variable.
3286
3287         * html/HTMLBaseElement.h: Added an override of the isURLAttribute function. Removed
3288         unneeded process function. Removed declaration of nonexistent setHref and setTarget
3289         functions. Removed unneeded m_hrefAttrValue, m_href, and m_target. Moved
3290         implementation of target function into the .cpp file.
3291
3292         * html/HTMLBaseElement.idl: Marked the href attribute as URL.
3293
3294         * html/HTMLBlockquoteElement.cpp:
3295         (WebCore::HTMLBlockquoteElement::isURLAttribute): Added.
3296         * html/HTMLBlockquoteElement.h: Added isURLAttribute.
3297         * html/HTMLBlockquoteElement.idl: Marked the cite attribute as URL.
3298
3299         * html/HTMLEmbedElement.idl: Marked the src attribute as URL.
3300
3301         * html/HTMLFormElement.cpp: Added a comment about the action function, which should
3302         be removed.
3303
3304         * html/HTMLFormElement.idl: Marked the action attribute as URL.
3305
3306         * html/HTMLHtmlElement.cpp:
3307         (WebCore::HTMLHtmlElement::isURLAttribute): Added.
3308         (WebCore::HTMLHtmlElement::insertedIntoDocument): Tweaked a bit.
3309         * html/HTMLHtmlElement.h: Added isURLAttribute.
3310         * html/HTMLHtmlElement.idl: Marked the manifest attribute as URL.
3311
3312         * html/HTMLIFrameElement.idl: Marked the src attribute a URL.
3313
3314         * html/HTMLModElement.cpp:
3315         (WebCore::HTMLModElement::isURLAttribute): Added.
3316         * html/HTMLModElement.h: Added isURLAttribute.
3317         * html/HTMLModElement.idl: Marked the cite attribute as URL.
3318
3319         * html/HTMLQuoteElement.cpp:
3320         (WebCore::HTMLQuoteElement::isURLAttribute): Added.
3321         * html/HTMLQuoteElement.h: Added isURLAttribute.
3322         * html/HTMLQuoteElement.idl: Marked the cite attribute as URL.
3323
3324         * html/HTMLViewSourceDocument.cpp:
3325         (WebCore::HTMLViewSourceDocument::processTagToken): Changed code to create a base
3326         element instead of calling setBaseElementURL directly.
3327         (WebCore::HTMLViewSourceDocument::addSpanWithClassName): Use AtomicString instead of String.
3328         (WebCore::HTMLViewSourceDocument::addLine): Ditto.
3329         (WebCore::HTMLViewSourceDocument::addText): Ditto.
3330         (WebCore::HTMLViewSourceDocument::addBase): Added. Creates a base element and inserts it.
3331         (WebCore::HTMLViewSourceDocument::addLink): Use AtomicString instead of String.
3332  
3333         * html/HTMLViewSourceDocument.h: Updated function declarations as above.
3334
3335         * bindings/scripts/test/CPP/WebDOMTestCallback.h:
3336         * bindings/scripts/test/CPP/WebDOMTestInterface.h:
3337         * bindings/scripts/test/CPP/WebDOMTestObj.h:
3338         * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
3339         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
3340         Updated results, which changed due to the fixes for at
3341         least these bugs, and perhaps a few more:
3342         https://bugs.webkit.org/show_bug.cgi?id=42115
3343         https://bugs.webkit.org/show_bug.cgi?id=44597
3344         https://bugs.webkit.org/show_bug.cgi?id=44738
3345
3346         * bindings/scripts/test/TestObj.idl:
3347         * html/HTMLAnchorElement.idl:
3348         * html/HTMLAreaElement.idl:
3349         * html/HTMLEmbedElement.idl:
3350         * html/HTMLFormElement.cpp:
3351         * html/HTMLFormElement.idl:
3352         * html/HTMLFrameElement.idl:
3353         * html/HTMLIFrameElement.idl:
3354         * html/HTMLImageElement.idl:
3355         * html/HTMLInputElement.idl:
3356         * html/HTMLLinkElement.idl:
3357         * html/HTMLMediaElement.idl:
3358         * html/HTMLObjectElement.idl:
3359         * html/HTMLScriptElement.idl:
3360         * html/HTMLSourceElement.idl:
3361         * html/HTMLVideoElement.idl:
3362         Tweaked formatting.
3363
3364 2010-08-28  Ryosuke Niwa  <rniwa@webkit.org>
3365
3366         Reviewed by Darin Adler.
3367
3368         The logic to escape entities in appendEscapedContent and appendAttributeValue should be merged
3369         https://bugs.webkit.org/show_bug.cgi?id=44831
3370
3371         Added appendCharactersReplacingEntities to escape &, <, >, ", and nbsp based on the mask.
3372         Removed escapeContentText because it was only used in appendText, which now directly calls
3373         appendCharactersReplacingEntities. Replaced appendEscapedContent, ucharRange, and appendUCharRange
3374         by appendNodeValue.
3375
3376         No new tests are added since this is a cleanup.
3377
3378         * editing/markup.cpp:
3379         (WebCore::):
3380         (WebCore::appendCharactersReplacingEntities): Added.
3381         (WebCore::MarkupAccumulator::appendAttributeValue): Calls appendCharactersReplacingEntities.
3382         (WebCore::MarkupAccumulator::appendNodeValue): Added.
3383         (WebCore::MarkupAccumulator::appendText): Calls appendNodeValue and appendCharactersReplacingEntities.
3384         (WebCore::urlToMarkup): Calls escapeEntities.
3385
3386 2010-08-27  Ryosuke Niwa  <rniwa@webkit.org>
3387
3388         Reviewed by Darin Adler.
3389
3390         cannot remove text-decoration when style is added by u or s
3391         https://bugs.webkit.org/show_bug.cgi?id=44560
3392
3393         The bug was caused by WebKit not pushing down implicitly added styles to descendent nodes.
3394         Fixed the bug by pushing down all elements that implicitly add style.
3395
3396         extractInlineStyleToPushDown now calls removeImplicitlyStyledElement, which was modified to extract
3397         the style implicitly added by the element to extractStyle.
3398
3399         This revealed a bug in applyInlineStyleToPushDown where applyInlineStyleIfNeeded could add
3400         an implicitly styled element inside an element with a conflicting style, thereby overriding the style of the element.
3401         Fixed this by extending the logic to honor the existing inline style declaration used in
3402         the case of rewriting inline style declaration to all cases including the one calling addInlineStyleIfNeeded.
3403
3404         Also fixed a bug in removeInlineStyle where pushDownInlineStyleAroundNode was called on a text node
3405         outside of selection if start was at the end of the text node.
3406
3407         Test: editing/style/push-down-implicit-styles.html
3408
3409         * editing/ApplyStyleCommand.cpp:
3410         (WebCore::ApplyStyleCommand::removeImplicitlyStyledElement): Added extractedStyle, which receives
3411         the style implicitly added by the element being removed.
3412         (WebCore::ApplyStyleCommand::extractInlineStyleToPushDown): Calls removeImplicitlyStyledElement
3413         to remove the implicitly styled element and extract the inline style added by the element.
3414         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Fixed a bug that addInlineStyleIfNeeded
3415         could override the inline style declaration style of the node.
3416         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Uses extractInlineStyleToPushDown
3417         (WebCore::ApplyStyleCommand::removeInlineStyle): See above.
3418         * editing/ApplyStyleCommand.h: Prototype changes.
3419
3420 2010-08-27  Mark Rowe  <mrowe@apple.com>
3421
3422         Reviewed by Adam Barth.
3423
3424         <http://webkit.org/b/44802> REGRESSION (r65351): WebCore build fails due to attempting to directly access WebKitTools/Scripts
3425
3426         Move create-html-entity-table in to WebCore so that the build is again self-contained.
3427         The script is also updated to take input as a CSV file rather than JSON as the former
3428         can be parsed without requiring a third-party Python module be installed.
3429
3430         * CMakeLists.txt:
3431         * DerivedSources.make:
3432         * GNUmakefile.am:
3433         * WebCore.gyp/WebCore.gyp:
3434         * WebCore.pri:
3435         * WebCore.xcodeproj/project.pbxproj: Stop copying the input file in to the WebCore framework wrapper.
3436         * html/parser/HTMLEntityNames.in: Added.
3437         * html/parser/HTMLEntityNames.json: Removed.
3438         * html/parser/create-html-entity-table: Renamed from WebKitTools/Scripts/create-html-entity-table.
3439
3440 2010-08-28  Daniel Bates  <dbates@rim.com>
3441
3442         Attempt to fix Chromium Mac Release bot after changeset 66305 <http://trac.webkit.org/changeset/66305>.
3443
3444         * accessibility/chromium/AXObjectCacheChromium.cpp:
3445         (WebCore::AXObjectCache::postPlatformNotification): Added case statements for missing enum values.
3446         These case statements simply fall through to a "break" statement.
3447
3448 2010-08-26  Kevin Ollivier  <kevino@theolliviers.com>
3449
3450         Reviewed by Nikolas Zimmermann.
3451
3452         Add explicit destructor for C++ DOM bindings to avoid memory leaks when using SWIG.
3453         https://bugs.webkit.org/attachment.cgi?bugid=44738
3454
3455         * bindings/scripts/CodeGeneratorCPP.pm:
3456
3457 2010-08-28  Eric Carlson  <eric.carlson@apple.com>
3458
3459         Reviewed by Dan Bernstein.
3460
3461         Add WebM MIME types to type registry
3462         https://bugs.webkit.org/show_bug.cgi?id=44826
3463
3464         * platform/MIMETypeRegistry.cpp:
3465         (WebCore::TypeExtensionPair::): Add "video/webm" and "audio/webm" types.
3466
3467 2010-08-28  Eric Carlson  <eric.carlson@apple.com>
3468
3469         Reviewed by Simon Fraser.
3470
3471         Crash reloading fast/events/tabindex-focus-blur-all.html test
3472         https://bugs.webkit.org/show_bug.cgi?id=44743
3473
3474         * html/HTMLMediaElement.cpp:
3475         (WebCore::HTMLMediaElement::asyncEventTimerFired): If m_isWaitingToDecrementLoadEventDelayCount
3476         is true, call setShouldDelayLoadEvent(false) and set the timer to fire the pending events
3477         on the next idle.
3478         (WebCore::HTMLMediaElement::setShouldDelayLoadEvent): Don't clear the delay from within a
3479         media engine callback because document 'load' event handlers that cause the page to become
3480         inactive will delete the media engine. 
3481         * html/HTMLMediaElement.h: Add m_isWaitingToDecrementLoadEventDelayCount.
3482
3483 2010-08-28  Simon Fraser  <simon.fraser@apple.com>
3484
3485         Reviewed by Sam Weinig.
3486
3487         When properties are missing from animation keyframes, interpolate between those keyframes that specify them
3488         https://bugs.webkit.org/show_bug.cgi?id=40794
3489
3490         Some preliminary cleanup; for vectors, prefer indexed access rather than using iterators.
3491         
3492         No behavior changes.
3493
3494         * css/CSSStyleSelector.cpp:
3495         (WebCore::CSSStyleSelector::keyframeStylesForAnimation):
3496         * page/animation/KeyframeAnimation.cpp:
3497         (WebCore::KeyframeAnimation::getKeyframeAnimationInterval):
3498         (WebCore::KeyframeAnimation::validateTransformFunctionList):
3499         * rendering/RenderLayerBacking.cpp:
3500         (WebCore::RenderLayerBacking::startAnimation):
3501         * rendering/style/KeyframeList.h:
3502         (WebCore::KeyframeList::at):
3503         (WebCore::KeyframeList::keyframes):
3504
3505 2010-08-28  Dan Bernstein  <mitz@apple.com>
3506
3507         Reviewed by Simon Fraser.
3508
3509         Speculative fix for <rdar://problem/7275077> Crash in InlineBox::root() under RenderTextControl::textWithHardLineBreaks()
3510         https://bugs.webkit.org/show_bug.cgi?id=44816
3511
3512         No test because I could not reproduce the crash.
3513
3514         In a common variant of the crash, InlineBox::root() is called with this == 12. This suggests that
3515         a RenderInline* was cast into a RenderBox*, so RenderBox::inlineBoxWrapper() interpreted the
3516         m_lineHeight and m_verticalPosition members of a RenderInline as a pointer to an InlineBox.
3517
3518         The cast into RenderBox* in textWithHardLineBreaks() was introduced in r40881 with no exaplanation.
3519
3520         * rendering/RenderTextControl.cpp:
3521         (WebCore::RenderTextControl::textWithHardLineBreaks): Fetch the first line directly from the inner
3522         text block instead of relying on the first child being a text node.
3523
3524 2010-08-28  Moritz Lipp  <mlq@pwmt.org>
3525
3526         Reviewed by Xan Lopez.
3527
3528         [GTK] Improper webkit_dom_document_evaluate implementation.
3529         https://bugs.webkit.org/show_bug.cgi?id=42115
3530
3531         The generated webkit_dom_document_evaluate() function does not meet the
3532         evaluate interface described in the W3 Documentation
3533         http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-evaluate
3534         "If this is specified as nullor the implementation does not reuse the
3535         specified result,...". The current implementation did not accept the
3536         result parameter to be NULL.
3537
3538         * bindings/scripts/CodeGeneratorGObject.pm:
3539
3540 2010-08-28  Adam Barth  <abarth@webkit.org>
3541
3542         Reviewed by Eric Seidel.
3543
3544         HTMLTreeBuilder needs to call HTMLFormElement::setDemoted
3545         https://bugs.webkit.org/show_bug.cgi?id=44781
3546
3547         This patch teaches the HTMLTreeBuilder about demoted form elements.
3548         Demoting a form element magically stops the form element from
3549         rendering.  Demoted form elements are a concept from the
3550         LegacyHTMLTreeBuilder, but they are somewhat of a hack because
3551         rendering should be DOM-based.  We'll likely look for a better solution
3552         in a future patch.
3553
3554         * html/parser/HTMLConstructionSite.cpp:
3555         (WebCore::HTMLConstructionSite::insertHTMLFormElement):
3556         * html/parser/HTMLConstructionSite.h:
3557         * html/parser/HTMLTreeBuilder.cpp:
3558         (WebCore::HTMLTreeBuilder::processStartTagForInTable):
3559
3560 2010-08-28  Chris Guillory   <chris.guillory@google.com>
3561
3562         Reviewed by Chris Fleizach.
3563
3564         Add AX notification for childrenChanged
3565         https://bugs.webkit.org/show_bug.cgi?id=44472
3566
3567         Test by running platform/chromium/accessibility/children-changed-notification.html within chromium's DRT
3568
3569         * accessibility/AXObjectCache.h:
3570         (WebCore::AXObjectCache::):
3571         * accessibility/AccessibilityRenderObject.cpp:
3572         (WebCore::AccessibilityRenderObject::childrenChanged):
3573         * accessibility/chromium/AXObjectCacheChromium.cpp:
3574         (WebCore::AXObjectCache::postPlatformNotification):
3575         * page/chromium/ChromeClientChromium.h:
3576
3577 2010-08-28  Eric Uhrhane  <ericu@chromium.org>
3578
3579         Reviewed by Darin Fisher.
3580
3581         Implement the DOM FileWriter class
3582         https://bugs.webkit.org/show_bug.cgi?id=44362
3583
3584         No new tests until the delegate class has an implementation; bug logged.
3585
3586         Build file additions.
3587         * GNUmakefile.am:
3588         * WebCore.gypi:
3589         * WebCore.pro:
3590         * WebCore.vcproj/WebCore.vcproj:
3591         * WebCore.xcodeproj/project.pbxproj:
3592
3593         The AsyncFileWriter is an abstract interface to which FileWriter delegates all the hard work.
3594         * html/AsyncFileWriter.h: Added.
3595
3596         The FileWriterClient is the interface for communications back from the AsyncFileWriter [success/failure, progress events].
3597         * html/FileWriterClient.h: Added.
3598         (WebCore::FileWriterClient::~FileWriterClient):
3599
3600         Added all delegation, state tracking, and progress event processing.
3601         * html/FileWriter.cpp:
3602         (WebCore::FileWriter::FileWriter):
3603         (WebCore::FileWriter::initialize):
3604         (WebCore::FileWriter::~FileWriter):
3605         ActiveDomObject stuff
3606         (WebCore::FileWriter::hasPendingActivity):
3607         (WebCore::FileWriter::stop):
3608         (WebCore::FileWriter::write):
3609         FileWriter public interface
3610         (WebCore::FileWriter::seek):
3611         (WebCore::FileWriter::truncate):
3612         (WebCore::FileWriter::abort):
3613         FileWriterClient interface
3614         (WebCore::FileWriter::didWrite):
3615         (WebCore::FileWriter::didTruncate):
3616         (WebCore::FileWriter::didFail):
3617         Progress events
3618         (WebCore::FileWriter::fireEvent):
3619         * html/FileWriter.h:
3620
3621 2010-08-28  Marc-Antoine Ruel  <maruel@chromium.org>
3622
3623         Reviewed by Dimitri Glazkov.
3624
3625         Preparatory patch to split libwebcore in multiple libraries.
3626
3627         Start with a webcore_prerequisites pseudo-target what will be the common
3628         target for all the other ones.
3629
3630         * WebCore.gyp/WebCore.gyp:
3631
3632 2010-08-28  Pratik Solanki  <psolanki@apple.com>
3633
3634         Reviewed by Dan Bernstein.
3635
3636         Add an ENABLE define for purgeable memory support
3637         https://bugs.webkit.org/show_bug.cgi?id=44777
3638
3639         * platform/PurgeableBuffer.h:
3640         * platform/mac/PurgeableBufferMac.cpp:
3641
3642 2010-08-28  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
3643
3644         Reviewed by Kenneth Rohde Christiansen.
3645
3646         [EFL] Fix error message when theme loading fails
3647         https://bugs.webkit.org/show_bug.cgi?id=44775
3648
3649         Parameters for logging were in the wrong order.
3650
3651         No new functionality so no new tests.
3652
3653         * platform/efl/ScrollbarEfl.cpp:
3654         (ScrollbarEfl::setParent): exchange argument order in log function
3655         call
3656
3657 2010-08-27  Nikolas Zimmermann  <nzimmermann@rim.com>
3658
3659         Reviewed by Dirk Schulze.
3660
3661         REGRESSION: some tests no longer painting
3662         https://bugs.webkit.org/show_bug.cgi?id=44773
3663
3664         Fix regression from the RenderImageResource introduction, fast/canvas/canvas-as-image.html
3665         and fast/canvas/canvas-as-image-incremental-repaint.html pixel tests did not work anymore.
3666
3667         * rendering/RenderImageResource.h:
3668         (WebCore::RenderImageResource::hasImage): Make hasImage virtual.
3669         * rendering/RenderImageResourceStyleImage.h:
3670         (WebCore::RenderImageResourceStyleImage::hasImage): Always return true, just like RenderImageGeneratedContent did.
3671
3672 2010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
3673
3674         Reviewed by Kenneth Rohde Christiansen.
3675
3676         [Qt] Cache plugin info to a persistent database
3677
3678         https://bugs.webkit.org/show_bug.cgi?id=43179
3679
3680         Implement a cache of NPAPI plugin metadata. Write the metadata to aa
3681         file that gets rewritten if any plugin is added / removed.  Compilation
3682         of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)
3683
3684         Currently only enabled for Qt UNIX flavors.
3685
3686         * WebCore.pro:  Enable NETSCAPE_PLUGIN_METADATA_CACHE for UNIX builds
3687         * platform/qt/FileSystemQt.cpp:
3688         (WebCore::openFile): Added.
3689         (WebCore::readFromFile): Added.
3690         * plugins/PluginDatabase.cpp:
3691         (WebCore::persistentPluginMetadataCachePath): Static accessor for the path
3692         (WebCore::PluginDatabase::PluginDatabase): Add instance variable.
3693         (WebCore::PluginDatabase::refresh):
3694         (WebCore::PluginDatabase::pluginForMIMEType): Ensure returned plugin is loaded.
3695         (WebCore::PluginDatabase::MIMETypeForExtension): Ensure returned plugin is loaded.
3696         (WebCore::PluginDatabase::clear):
3697         (WebCore::fillBufferWithContentsOfFile): Static helper function.
3698         (WebCore::readUTF8String): Static helper function.
3699         (WebCore::readTime): Static helper function.
3700         (WebCore::PluginDatabase::loadPersistentMetadataCache):
3701         (WebCore::writeUTF8String): Static helper function.
3702         (WebCore::writeTime): Static helper function.
3703         (WebCore::PluginDatabase::updatePersistentMetadataCache): Added.
3704         (WebCore::PluginDatabase::isPersistentMetadataCacheEnabled): Added.
3705         (WebCore::PluginDatabase::setPersistentMetadataCacheEnabled):Added.
3706         (WebCore::PluginDatabase::persistentMetadataCachePath): Added.
3707         (WebCore::PluginDatabase::setPersistentMetadataCachePath): Added.
3708         * plugins/PluginDatabase.h:
3709         * plugins/PluginPackage.cpp:
3710         (WebCore::PluginPackage::PluginPackage): Add instance variable.
3711         (WebCore::PluginPackage::createPackageFromCache): Added.
3712         (WebCore::PluginPackage::ensurePluginLoaded): Added.
3713         * plugins/PluginPackage.h:
3714         (WebCore::PluginPackage::fullMIMEDescription): Added.
3715         * plugins/qt/PluginPackageQt.cpp:
3716         (WebCore::PluginPackage::fetchInfo): Split mime parsing.
3717         (WebCore::PluginPackage::setMIMEDescription): Added. Mime parsing.
3718
3719 2010-08-27  Daniel Bates  <dbates@rim.com>
3720
3721         Reviewed by Darin Adler.
3722
3723         Implement symbolic CSS3 list-style-types
3724         https://bugs.webkit.org/show_bug.cgi?id=36734
3725
3726         Implements all of the symbolic CSS3 list-style-types as per
3727         section 4.5 of the CSS3 Lists module <http://www.w3.org/TR/css3-lists/#symbolic>.
3728
3729         Test: fast/lists/w3-css3-list-styles-symbolic.html
3730
3731         * css/CSSPrimitiveValueMappings.h:
3732         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added list style types Asterisks and Footnotes.
3733         * css/CSSValueKeywords.in: Ditto.
3734         * inspector/front-end/SourceCSSTokenizer.re2js: Ditto.
3735         * rendering/RenderListMarker.cpp:
3736         (WebCore::toAlphabeticOrNumeric): Changed type of parameter sequenceSize from int to unsigned.
3737         (WebCore::toSymbolic): Added.
3738         (WebCore::toAlphabetic): Changed type of parameter alphabetSize from int to unsigned.
3739         (WebCore::toNumeric): Changed type of parameter numeralsSize from int to unsigned.
3740         (WebCore::effectiveListMarkerType): Added.
3741         (WebCore::listMarkerSuffix): Added list style types Asterisks and Footnotes.
3742         (WebCore::listMarkerText): Ditto.
3743         (WebCore::RenderListMarker::paint): Ditto.
3744         (WebCore::RenderListMarker::calcPrefWidths): Ditto.
3745         (WebCore::RenderListMarker::getRelativeMarkerRect): Ditto.
3746         * rendering/style/RenderStyleConstants.h: Ditto.
3747         (WebCore::):
3748
3749 2010-08-27  Vincent Scheib  <scheib@chromium.org>
3750
3751         Reviewed by Darin Fisher.
3752
3753         CanvasRenderingContext2D::willDraw changed to didDraw
3754
3755         Solves issue with canvas to canvas draw calls, and simplifies
3756         mixed software and GPU acceleration of GraphicsContext implementations
3757         which must track dirty rects for backing stores.
3758
3759         https://bugs.webkit.org/show_bug.cgi?id=44741
3760
3761         * html/HTMLCanvasElement.cpp:
3762         (WebCore::HTMLCanvasElement::didDraw):
3763         * html/HTMLCanvasElement.h:
3764         * html/canvas/CanvasRenderingContext2D.cpp:
3765         (WebCore::CanvasRenderingContext2D::fill):
3766         (WebCore::CanvasRenderingContext2D::stroke):
3767         (WebCore::CanvasRenderingContext2D::clearRect):
3768         (WebCore::CanvasRenderingContext2D::fillRect):
3769         (WebCore::CanvasRenderingContext2D::strokeRect):
3770         (WebCore::CanvasRenderingContext2D::drawImage):
3771         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
3772         (WebCore::CanvasRenderingContext2D::didDraw):
3773         (WebCore::CanvasRenderingContext2D::putImageData):
3774         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3775         * html/canvas/CanvasRenderingContext2D.h:
3776         * html/canvas/WebGLRenderingContext.cpp:
3777         (WebCore::WebGLRenderingContext::markContextChanged):
3778
3779 2010-08-27  Daniel Cheng  <dcheng@chromium.org>
3780
3781         Reviewed by Tony Chang.
3782
3783         [chromium] Add new WebClipboard method for setting generic data in copy/cut handlers.
3784         https://bugs.webkit.org/show_bug.cgi?id=42121
3785
3786         No new tests.
3787
3788         * platform/chromium/ChromiumBridge.h:
3789
3790 2010-08-27  Patrick Gansterer  <paroga@paroga.com>
3791
3792         Reviewed by Adam Roben.
3793
3794         Remove unnecessary AlphaBlend in PasteboardWin.
3795         https://bugs.webkit.org/show_bug.cgi?id=44720
3796
3797         Replacing AlphaBlend with BitBlt is safe because testing showed that alpha
3798         never survives copy-and-paste on Windows in any browser, and StretchBlt 
3799         was a overkill since the source and destination size are always equal.
3800
3801         * platform/win/PasteboardWin.cpp:
3802         (WebCore::Pasteboard::writeImage):
3803
3804 2010-08-26  Zhenyao Mo  <zmo@google.com>
3805
3806         Reviewed by Kenneth Russell.
3807
3808         Passing premultiplyAlpha=false to tex{Sub}Image2D loses information (skia)
3809         https://bugs.webkit.org/show_bug.cgi?id=38282
3810
3811         * platform/graphics/skia/GraphicsContext3DSkia.cpp: Dealing with the case of texImage2D with HTMLCanvasElement input.
3812         (WebCore::GraphicsContext3D::getImageData):
3813
3814 2010-08-26  Vangelis Kokkevis  <vangelis@chromium.org>
3815
3816         Reviewed by Darin Fisher.
3817
3818         [chromium] Working around compile issue in LayerRendererChromium.cpp
3819         when DEBUG_GL_CALLS=1
3820         https://bugs.webkit.org/show_bug.cgi?id=44739
3821
3822         No new functionality, no new tests.
3823
3824         * platform/graphics/chromium/LayerRendererChromium.cpp:
3825         (WebCore::LayerRendererChromium::drawLayerIntoStencilBuffer):
3826
3827 2010-08-27  Patrick Gansterer  <paroga@paroga.com>
3828
3829         Reviewed by Adam Roben.
3830
3831         [WINCE] Port SoftLinking to WinCE
3832         https://bugs.webkit.org/show_bug.cgi?id=44693
3833
3834         WinCE provides GetProcAddressW and GetProcAddressA for softlinking.
3835         Unfortunately WinNT provides only GetProcAddress (without A or W).
3836
3837         Add a platform dependent macro for GetProcAddress.
3838
3839         * platform/win/SoftLinking.h:
3840
3841 2010-08-27  Martin Robinson  <mrobinson@igalia.com>
3842
3843         Reviewed by Xan Lopez.
3844
3845         [GTK] ScrollbarThemeGtk should account for the trough_under_steppers property
3846         https://bugs.webkit.org/show_bug.cgi?id=44742
3847
3848         No new tests until this code is activated, at which point pixel tests will
3849         test the scrollbar rendering.
3850
3851         * platform/gtk/ScrollbarThemeGtk.cpp:
3852         (WebCore::ScrollbarThemeGtk::paintTrackBackground): Only inflate the track background
3853         if the style specifies trough_under_steppers.
3854         (WebCore::ScrollbarThemeGtk::paint): If the theme specifies trough_under_steppers,
3855         a dirty stepper also triggers a repaint of the trough region.
3856
3857 2010-08-27  Joseph Pecoraro  <joepeck@webkit.org>
3858
3859         Reviewed by Alexey Proskuryakov.
3860
3861         Extra Events triggered by <input> on focus
3862         https://bugs.webkit.org/show_bug.cgi?id=44731
3863
3864         Tests: fast/events/input-focus-no-duplicate-events.html
3865                fast/events/input-tab-focus-no-duplicate-events.html
3866
3867         * dom/Element.cpp:
3868         (WebCore::Element::focus): do not continue and update the appearance of the element if it was not focused.
3869         * page/FocusController.cpp:
3870         (WebCore::FocusController::setFocusedNode): respect the return value of Document::setFocusedNode.
3871
3872 2010-08-26  Joseph Pecoraro  <joepeck@webkit.org>
3873
3874         Reviewed by Pavel Feldman.
3875
3876         Web Inspector: attribute nodes don't get rendered in the console
3877         https://bugs.webkit.org/show_bug.cgi?id=44736
3878
3879         Extended Test: inspector/console-format.html
3880
3881         * inspector/InspectorDOMAgent.cpp:
3882         (WebCore::InspectorDOMAgent::buildObjectForNode): add "name" and "value" properties for Attribute nodes.
3883         * inspector/front-end/DOMAgent.js:
3884         (WebInspector.DOMNode): add "name" and "value" properties for Attribute nodes.
3885         * inspector/front-end/ElementsTreeOutline.js: display html for Attribute nodes.
3886
3887 2010-08-27  Adam Barth  <abarth@webkit.org>
3888
3889         Rubber-stamped by Eric Seidel.
3890
3891         Finshing moving the HTML parser into WebCore/html/parser.
3892
3893         * Android.derived.mk:
3894         * Android.mk:
3895         * CMakeLists.txt:
3896         * DerivedSources.make:
3897         * GNUmakefile.am:
3898         * WebCore.gyp/WebCore.gyp:
3899         * WebCore.gypi:
3900         * WebCore.pri:
3901         * WebCore.pro:
3902         * WebCore.vcproj/WebCore.vcproj:
3903         * WebCore.xcodeproj/project.pbxproj:
3904         * html/CSSPreloadScanner.cpp: Removed.
3905         * html/CSSPreloadScanner.h: Removed.
3906         * html/HTMLConstructionSite.cpp: Removed.
3907         * html/HTMLConstructionSite.h: Removed.
3908         * html/HTMLDocumentParser.cpp: Removed.
3909         * html/HTMLDocumentParser.h: Removed.
3910         * html/HTMLEntityNames.json: Removed.
3911         * html/HTMLEntityParser.cpp: Removed.
3912         * html/HTMLEntityParser.h: Removed.
3913         * html/HTMLEntitySearch.cpp: Removed.
3914         * html/HTMLEntitySearch.h: Removed.
3915         * html/HTMLEntityTable.h: Removed.
3916         * html/HTMLFormattingElementList.cpp: Removed.
3917         * html/HTMLFormattingElementList.h: Removed.
3918         * html/HTMLParserScheduler.cpp: Removed.
3919         * html/HTMLParserScheduler.h: Removed.
3920         * html/HTMLPreloadScanner.cpp: Removed.
3921         * html/HTMLPreloadScanner.h: Removed.
3922         * html/HTMLScriptRunner.cpp: Removed.
3923         * html/HTMLScriptRunner.h: Removed.
3924         * html/HTMLScriptRunnerHost.h: Removed.
3925         * html/HTMLTokenizer.cpp: Removed.
3926         * html/HTMLTokenizer.h: Removed.
3927         * html/HTMLViewSourceParser.cpp: Removed.
3928         * html/HTMLViewSourceParser.h: Removed.
3929         * html/parser/CSSPreloadScanner.cpp: Copied from WebCore/html/CSSPreloadScanner.cpp.
3930         * html/parser/CSSPreloadScanner.h: Copied from WebCore/html/CSSPreloadScanner.h.
3931         * html/parser/HTMLConstructionSite.cpp: Copied from WebCore/html/HTMLConstructionSite.cpp.
3932         * html/parser/HTMLConstructionSite.h: Copied from WebCore/html/HTMLConstructionSite.h.
3933         * html/parser/HTMLDocumentParser.cpp: Copied from WebCore/html/HTMLDocumentParser.cpp.
3934         * html/parser/HTMLDocumentParser.h: Copied from WebCore/html/HTMLDocumentParser.h.
3935         * html/parser/HTMLEntityNames.json: Copied from WebCore/html/HTMLEntityNames.json.
3936         * html/parser/HTMLEntityParser.cpp: Copied from WebCore/html/HTMLEntityParser.cpp.
3937         * html/parser/HTMLEntityParser.h: Copied from WebCore/html/HTMLEntityParser.h.
3938         * html/parser/HTMLEntitySearch.cpp: Copied from WebCore/html/HTMLEntitySearch.cpp.
3939         * html/parser/HTMLEntitySearch.h: Copied from WebCore/html/HTMLEntitySearch.h.
3940         * html/parser/HTMLEntityTable.h: Copied from WebCore/html/HTMLEntityTable.h.
3941         * html/parser/HTMLFormattingElementList.cpp: Copied from WebCore/html/HTMLFormattingElementList.cpp.
3942         * html/parser/HTMLFormattingElementList.h: Copied from WebCore/html/HTMLFormattingElementList.h.
3943         * html/parser/HTMLParserScheduler.cpp: Copied from WebCore/html/HTMLParserScheduler.cpp.
3944         * html/parser/HTMLParserScheduler.h: Copied from WebCore/html/HTMLParserScheduler.h.
3945         * html/parser/HTMLPreloadScanner.cpp: Copied from WebCore/html/HTMLPreloadScanner.cpp.
3946         * html/parser/HTMLPreloadScanner.h: Copied from WebCore/html/HTMLPreloadScanner.h.
3947         * html/parser/HTMLScriptRunner.cpp: Copied from WebCore/html/HTMLScriptRunner.cpp.
3948         * html/parser/HTMLScriptRunner.h: Copied from WebCore/html/HTMLScriptRunner.h.
3949         * html/parser/HTMLScriptRunnerHost.h: Copied from WebCore/html/HTMLScriptRunnerHost.h.
3950         * html/parser/HTMLTokenizer.cpp: Copied from WebCore/html/HTMLTokenizer.cpp.
3951         * html/parser/HTMLTokenizer.h: Copied from WebCore/html/HTMLTokenizer.h.
3952         * html/parser/HTMLViewSourceParser.cpp: Copied from WebCore/html/HTMLViewSourceParser.cpp.
3953         * html/parser/HTMLViewSourceParser.h: Copied from WebCore/html/HTMLViewSourceParser.h.
3954
3955 2010-08-27  Simon Fraser  <simon.fraser@apple.com>
3956
3957         Reviewed by Tony Chang.
3958
3959         Insertion point does not show when dragging text into an editable area
3960         https://bugs.webkit.org/show_bug.cgi?id=44295
3961         
3962         r65681 caused the caret to use the last-computed caret rect when
3963         painting, rather than forcing a style update. Because of this,
3964         we now need to eagerly update the caret rect when changing
3965         the drag selection.
3966         
3967         Not testable in DRT because the drag selection is always cleared
3968         before EventSender returns, so the drag caret can never show in
3969         the pixel results.
3970
3971         Tested by running editing/selection/drag-in-iframe.html manually.
3972
3973         * editing/SelectionController.cpp:
3974         (WebCore::SelectionController::setSelection):
3975
3976 2010-08-27  Adam Barth  <abarth@webkit.org>
3977
3978         Attempt to fix the Windows build.
3979
3980         * WebCore.vcproj/WebCoreCommon.vsprops:
3981
3982 2010-08-27  Adam Barth  <abarth@webkit.org>
3983
3984         Attempt to fix the Qt build.
3985
3986         * WebCore.pro:
3987
3988 2010-08-27  Adam Barth  <abarth@webkit.org>
3989
3990         Rubber-stamped by Eric Seidel.
3991
3992         Move HTMLTreeBuilder and HTMLElementStack to WebCore/html/parser.
3993
3994         * Android.mk:
3995         * CMakeLists.txt:
3996         * GNUmakefile.am:
3997         * WebCore.gypi:
3998         * WebCore.pro:
3999         * WebCore.vcproj/WebCore.vcproj:
4000         * WebCore.xcodeproj/project.pbxproj:
4001         * html/HTMLElementStack.cpp: Removed.
4002         * html/HTMLElementStack.h: Removed.
4003         * html/HTMLTreeBuilder.cpp: Removed.
4004         * html/HTMLTreeBuilder.h: Removed.
4005         * html/parser/HTMLElementStack.cpp: Copied from WebCore/html/HTMLElementStack.cpp.
4006         * html/parser/HTMLElementStack.h: Copied from WebCore/html/HTMLElementStack.h.
4007         * html/parser/HTMLTreeBuilder.cpp: Copied from WebCore/html/HTMLTreeBuilder.cpp.
4008         * html/parser/HTMLTreeBuilder.h: Copied from WebCore/html/HTMLTreeBuilder.h.
4009
4010 2010-08-27  Adam Barth  <abarth@webkit.org>
4011
4012         Reviewed by Darin Adler.
4013
4014         Create WebCore/html/parser
4015         https://bugs.webkit.org/show_bug.cgi?id=44792
4016
4017         This patch begins the process of moving the HTML parser code to the
4018         WebCore/html/parser directory.  This patch moves a single header file.
4019         More files will follow in future patches.
4020
4021         * CMakeLists.txt:
4022         * GNUmakefile.am:
4023         * WebCore.gyp/WebCore.gyp:
4024         * WebCore.gypi:
4025         * WebCore.pro:
4026         * WebCore.vcproj/WebCore.vcproj:
4027         * WebCore.vcproj/WebCoreCommon.vsprops:
4028         * WebCore.xcodeproj/project.pbxproj:
4029         * html/parser/HTMLToken.h: Renamed from WebCore/html/HTMLToken.h.
4030
4031 2010-08-27  Chris Marrin  <cmarrin@apple.com>
4032
4033         Reviewed by Simon Fraser.
4034
4035         https://bugs.webkit.org/show_bug.cgi?id=42862
4036         WebGL in CSS Canvas crashes
4037
4038         This fixes the crash, which was a simple null pointer deref. But this
4039         revealed that -webkit-canvas no longer works for WebGL. I believe this
4040         is due to the recent ImageBuffer optimizations done by Dave Hyatt
4041         (https://bugs.webkit.org/show_bug.cgi?id=43507). This changed ImageBuffer
4042         from always keeping a copy of the pixels to doing a copy to get them
4043         when needed. Since We need to get pixels out of the WebGL drawing buffer
4044         to use them as a CSS background, I had to change when I return those
4045         pixels to the ImageBuffer.
4046
4047         Tests: fast/canvas/webgl/css-webkit-canvas-repaint.html
4048                fast/canvas/webgl/css-webkit-canvas.html
4049
4050         * html/HTMLCanvasElement.cpp:
4051         (WebCore::HTMLCanvasElement::copiedImage): Add logic to get image from WebGL so it works with new ImageBuffer logic (see above)
4052         * html/canvas/WebGLRenderingContext.cpp:
4053         (WebCore::WebGLRenderingContext::create): Fixed null pointer deref
4054
4055 2010-08-27  James Robinson  <jamesr@chromium.org>
4056
4057         Reviewed by Dimitri Glazkov.
4058
4059         Move Shader class from platform/graphics/chromium to platform/graphics/gpu
4060         https://bugs.webkit.org/show_bug.cgi?id=44793
4061
4062         The Shader class and its subclasses are not chromium-specific.  This moves
4063         them to a common location so they can be re-used on all platforms.  Also
4064         moves the Shader subclasses into their own .h/.cpp files.
4065
4066         Refactor, no new tests.
4067
4068         * WebCore.gypi:
4069         * platform/graphics/chromium/GLES2Canvas.cpp:
4070         * platform/graphics/chromium/Shader.cpp: Removed.
4071         * platform/graphics/chromium/Shader.h: Removed.
4072         * platform/graphics/gpu/Shader.cpp: Added.
4073         (WebCore::Shader::affineTo3x3):
4074         (WebCore::Shader::loadShader):
4075         (WebCore::Shader::loadProgram):
4076         (WebCore::Shader::Shader):
4077         (WebCore::Shader::~Shader):
4078         * platform/graphics/gpu/Shader.h: Added.
4079         * platform/graphics/gpu/SolidFillShader.cpp: Added.
4080         (WebCore::SolidFillShader::SolidFillShader):
4081         (WebCore::SolidFillShader::create):
4082         (WebCore::SolidFillShader::use):
4083         * platform/graphics/gpu/SolidFillShader.h: Added.
4084         * platform/graphics/gpu/TexShader.cpp: Added.
4085         (WebCore::TexShader::TexShader):
4086         (WebCore::TexShader::create):
4087         (WebCore::TexShader::use):
4088         * platform/graphics/gpu/TexShader.h: Added.
4089
4090 2010-08-27  Kinuko Yasuda  <kinuko@chromium.org>
4091
4092         Reviewed by Darin Fisher.
4093
4094         Add AsyncFileSystem interface for platform-dependent FileSystem API implementation
4095         https://bugs.webkit.org/show_bug.cgi?id=44433
4096
4097         No new tests; tests will be added later.
4098
4099         * CMakeLists.txt:
4100         * WebCore.gypi:
4101         * WebCore.pro:
4102         * WebCore.vcproj/WebCore.vcproj:
4103         * WebCore.xcodeproj/project.pbxproj:
4104         * platform/AsyncFileSystem.cpp: Added.
4105         * platform/AsyncFileSystem.h: Added.
4106         * platform/AsyncFileSystemCallbacks.h: Added.
4107         * storage/DOMFileSystem.cpp:
4108         (WebCore::DOMFileSystem::DOMFileSystem):
4109         (WebCore::DOMFileSystem::~DOMFileSystem):
4110         (WebCore::DOMFileSystem::stop):
4111         (WebCore::DOMFileSystem::hasPendingActivity):
4112         (WebCore::DOMFileSystem::contextDestroyed):
4113         * storage/DOMFileSystem.h:
4114         (WebCore::DOMFileSystem::create):
4115         * storage/FileSystemCallbacks.cpp:
4116         (WebCore::FileSystemCallbacksBase::didFail):
4117         (WebCore::FileSystemCallbacks::FileSystemCallbacks):
4118         (WebCore::FileSystemCallbacks::didOpenFileSystem):
4119         * storage/FileSystemCallbacks.h:
4120         * storage/LocalFileSystem.cpp: Added.
4121         * storage/LocalFileSystem.h: Added.
4122
4123         * storage/Flags.h: Nits fix.
4124
4125 2010-07-27  Jer Noble  <jer.noble@apple.com>
4126
4127         Reviewed by Eric Carlson.
4128
4129         Add JavaScript API to allow a page to go fullscreen.
4130         rdar://problem/6867795
4131         https://bugs.webkit.org/show_bug.cgi?id=43099
4132         
4133         Mozilla has proposed a new set of JavaScript APIs which allow any element in
4134         a document to go full-screen.  The current revision of their proposal can be 
4135         found here:
4136         <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI&oldid=243429>
4137         
4138         The proposed specification includes the following:
4139         
4140         Document:
4141         - Three new methods on Document:
4142             + void requestFullScreen()
4143             + void requestFullScreenWithKeys()
4144             + void cancelFullScreen()
4145         - Three new attributes of Document:
4146             + readonly attribute boolean fullScreen
4147             + readonly attribute boolean fullScreenWithKeys
4148             + (optional) readonly attribute Element currentFullScreenElement
4149             
4150         Element:
4151         - Two new methods on Element:
4152             + void requestFullScreen()
4153             + void requestFullScreenWithKeys()
4154         
4155         Events:
4156         - One new event:
4157             + fullScreenChange
4158         
4159         CSS Pseudo-classes:
4160         - Three new Pseudo-classes:
4161             + :full-screen
4162             + :full-screen-doc
4163             + :full-screen-root-with-target
4164         
4165         For WebKit's initial implementation, all the above new APIs will be prefixed with 
4166         "webkit" or "-webkit" where appropriate.
4167         
4168         New tests:
4169         LayoutTests/fullscreen/full-screen-api.html
4170         LayoutTests/fullscreen/full-screen-css.html
4171         LayoutTests/fullscreen/full-screen-request.html
4172
4173         Project file changes:
4174         * Configurations/FeatureDefines.xcconfig: Added an ENABLE_FULLSCREEN_API entry.
4175         * DerivedSources.make: Added rules for fullscreen.css and WebCore.FullScreen.exp.
4176         * WebCore.FullScreen.exp: Added export symbols for Document and Element functions.
4177         * WebCore.xcodeproj/project.pbxproj: New source files added to the project.
4178
4179         IDL changes:
4180         * dom/Document.idl: Added the new full-screen API to the Document's javascript interface.
4181         * dom/Element.idl: Added the new full-screen API to the Element's javascript interface.
4182
4183         Source changes:
4184         * bindings/objc/PublicDOMInterfaces.h: Exposed Document and Element fullscreen functions in the DOM classes.
4185         * css/CSSSelector.cpp: Added new FullScreen pseudo-classes.
4186         * css/CSSSelector.h: Added new full-screen pseudo classes to the PseudoType enum.
4187         * css/CSSStyleSelector.cpp: 
4188         (WebCore::loadFullDefaultStyle): Pull the fullscreen.css sheet into the defaultStyle and the defaultQuirksStyle sheets.
4189         (WebCore::loadSimpleDefaultStyle): Pull the fullscreen.css sheet into the defaultStyle sheet.
4190         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Check for the new FullScreen pseudo classes.
4191         * dom/Document.cpp:
4192         (WebCore::Document::createEvent): Support creating a "WebKitFullScreenChange" event.
4193         (WebCore::Document::addListenerTypeIfNeeded): Support listening for a "webKitFullScreenChangeEvent"
4194         (WebCore::Document::webkitRequestFullScreenForElement): Passes request to the chrome client to enter full screen mode.
4195         (WebCore::Document::webkitCancelFullScreen): Passes request to the chrome client to exit full screen mode.
4196         (WebCore::Document::webkitWillEnterFullScreenForElement): Sets the FullScreen pseudo-classes on the full-screen element and its document.
4197         (WebCore::Document::webkitDidEnterFullScreenForElement): Currently a no-op.
4198         (WebCore::Document::webkitWillExitFullScreenForElement): Currently a no-op.
4199         (WebCore::Document::webkitDidExitFullScreenForElement): Clears the FullScreen pseudo-classes on the full-screen element and its document.
4200         * dom/Document.h: Added const accessors for new full-screen instance variables.
4201         (WebCore::Document::):
4202         (WebCore::Document::webkitIsFullScreen): Accessor for m_isFullScreen.
4203         (WebCore::Document::webkitIsFullScreenWithKeysEnabled): Accessor for m_isFullScren and m_areKeysEnabled.
4204         (WebCore::Document::webkitCurrentFullScreenElement): Accessor for m_fullScreenElement.
4205         * dom/Element.cpp:
4206         (WebCore::Element::webkitRequestFullScreen): Calls Document::webkitRequestFullScreenForElement. 
4207         * dom/Element.h: