5397fa9577c6e1f3a52abbb51aeaaedf264fc35f
[WebKit-https.git] / WebCore / ChangeLog
1 2010-12-30  Steve Block  <steveblock@google.com>
2
3         Reviewed by Sam Weinig.
4
5         Visiting macnn.com often causes SQL spew via geolocation database
6         https://bugs.webkit.org/show_bug.cgi?id=51557
7
8         If the Geolocation position cache database path has not been set, early-out
9         rather than using an empty path and thus failing to open the database.
10         This avoids SQL log spew.
11
12         Also, avoid starting the database thread until the path has been set, and
13         shorten the thread name to avoid warnings due to exceeding 30 characters.
14
15         No new tests, implementation clean-up only.
16
17         * page/GeolocationPositionCache.cpp:
18         (WebCore::GeolocationPositionCache::addUser):
19         (WebCore::GeolocationPositionCache::removeUser):
20         (WebCore::GeolocationPositionCache::setDatabasePath):
21         (WebCore::GeolocationPositionCache::startBackgroundThread):
22
23 2010-12-29  Philippe Normand  <pnormand@igalia.com>
24
25         Reviewed by Martin Robinson.
26
27         [GTK] minimal build fails at link time due to missing sqlite3 symbols
28         https://bugs.webkit.org/show_bug.cgi?id=51327
29
30         Guard the code calling sqlite3 with the ENABLE(DATABASE) check.
31
32         No new tests, build fix only.
33
34         * platform/sql/SQLiteAuthorizer.cpp:
35         * platform/sql/SQLiteDatabase.cpp:
36         * platform/sql/SQLiteFileSystem.cpp:
37         * platform/sql/SQLiteStatement.cpp:
38         * platform/sql/SQLiteTransaction.cpp:
39
40 2010-12-30  Justin Schuh  <jschuh@chromium.org>
41
42         Reviewed by Dirk Schulze.
43
44         Prevent stringToLengthType() from skipping past end-of-string on invalid length unit. 
45         https://bugs.webkit.org/show_bug.cgi?id=51692
46
47         * svg/SVGLength.cpp:
48         (WebCore::stringToLengthType):
49         (WebCore::SVGLength::setValueAsString):
50
51 2010-12-30  Abhishek Arya  <inferno@chromium.org>
52
53         Reviewed by Eric Seidel.
54
55         Create a helper function for finding descendent video elements for a node.
56         https://bugs.webkit.org/show_bug.cgi?id=51696
57
58         Test: media/video-element-other-namespace-crash.html
59
60         * html/MediaDocument.cpp:
61         (WebCore::descendentVideoElement): helper function.
62         (WebCore::MediaDocument::defaultEventHandler): use the new helper function. fix code repetitions.
63         (WebCore::MediaDocument::replaceMediaElementTimerFired): use the new helper function.
64
65 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
66
67         Reviewed by Yury Semikhatsky.
68
69         Web Inspector: extract Database & DOM Storage agents; remove InspectorBackend.
70         https://bugs.webkit.org/show_bug.cgi?id=51707
71
72         This change brushes up storage agents + removes redundant InspectorBackend class.
73
74         * CMakeLists.txt:
75         * GNUmakefile.am:
76         * WebCore.gypi:
77         * WebCore.pro:
78         * WebCore.vcproj/WebCore.vcproj:
79         * WebCore.xcodeproj/project.pbxproj:
80         * inspector/CodeGeneratorInspector.pm:
81         * inspector/InjectedScriptHost.cpp:
82         (WebCore::InjectedScriptHost::databaseForId):
83         (WebCore::InjectedScriptHost::selectDatabase):
84         (WebCore::InjectedScriptHost::selectDOMStorage):
85         (WebCore::InjectedScriptHost::inspectorDOMAgent):
86         * inspector/Inspector.idl:
87         * inspector/InspectorBackend.cpp: Removed.
88         * inspector/InspectorBackend.h: Removed.
89         * inspector/InspectorController.cpp:
90         (WebCore::InspectorController::InspectorController):
91         (WebCore::InspectorController::~InspectorController):
92         (WebCore::InspectorController::connectFrontend):
93         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
94         (WebCore::InspectorController::didUseDOMStorage):
95         (WebCore::InspectorController::setInjectedScriptSource):
96         (WebCore::InspectorController::dispatchOnInjectedScript):
97         (WebCore::InspectorController::releaseWrapperObjectGroup):
98         * inspector/InspectorController.h:
99         * inspector/InspectorDOMStorageAgent.cpp: Added.
100         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
101         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
102         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
103         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
104         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
105         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
106         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
107         * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
108         (WebCore::InspectorDOMStorageAgent::create):
109         (WebCore::InspectorDOMStorageAgent::frontend):
110         * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
111         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
112         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
113         (WebCore::InspectorDatabaseAgent::executeSQL):
114         (WebCore::InspectorDatabaseAgent::databaseForId):
115         (WebCore::InspectorDatabaseAgent::selectDatabase):
116         (WebCore::InspectorDatabaseAgent::clearFrontend):
117         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
118         * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
119         (WebCore::InspectorDatabaseAgent::create):
120         (WebCore::InspectorDatabaseAgent::frontend):
121         * inspector/front-end/ScriptsPanel.js:
122         (WebInspector.ScriptsPanel.prototype.show):
123         (WebInspector.ScriptsPanel.prototype.attachDebuggerWhenShown):
124         (WebInspector.ScriptsPanel.prototype._toggleDebugging):
125
126 2010-12-29  Dirk Schulze  <krit@webkit.org>
127
128         Reviewed by Darin Adler.
129
130         Cleanup SVG code according to the webkit style rules 3
131         https://bugs.webkit.org/show_bug.cgi?id=51490
132
133         Last patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
134         Just one file can't be fixed for check-webkit-style.
135         * SVGAllInOne.cpp: check-webkit-style wants a config.h at the beginning
136
137         No changes of functionality, so no new tests. 
138
139         * svg/SVGAllInOne.cpp:
140         * svg/SVGImage.cpp:
141         * svg/SVGLength.cpp:
142         (WebCore::SVGLength::setValue):
143         * svg/SVGPolygonElement.h:
144         * svg/SVGPolylineElement.h:
145         * svg/SVGPreserveAspectRatio.cpp:
146         (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
147         (WebCore::SVGPreserveAspectRatio::transformRect):
148         * svg/SVGSVGElement.cpp:
149         (WebCore::SVGSVGElement::viewport):
150         * svg/SVGSetElement.h:
151         * svg/SVGStylable.h:
152         (WebCore::SVGStylable::~SVGStylable):
153         * svg/SVGStyledLocatableElement.h:
154         (WebCore::SVGStyledLocatableElement::localCoordinateSpaceTransform):
155         (WebCore::SVGStyledLocatableElement::isStyledLocatable):
156         * svg/SVGStyledTransformableElement.cpp:
157         (WebCore::SVGStyledTransformableElement::isKnownAttribute):
158         * svg/SVGSwitchElement.cpp:
159         (WebCore::SVGSwitchElement::childShouldCreateRenderer):
160         * svg/SVGTests.cpp:
161         (WebCore::SVGTests::parseMappedAttribute):
162         * svg/SVGTextContentElement.cpp:
163         (WebCore::SVGTextContentElement::isKnownAttribute):
164         * svg/SVGTextPathElement.cpp:
165         * svg/SVGTextPathElement.h:
166         * svg/SVGTitleElement.h:
167         (WebCore::SVGTitleElement::rendererIsNeeded):
168         * svg/SVGTransformDistance.cpp:
169         (WebCore::SVGTransformDistance::SVGTransformDistance):
170         (WebCore::SVGTransformDistance::scaledDistance):
171         (WebCore::SVGTransformDistance::addSVGTransforms):
172         (WebCore::SVGTransformDistance::addSVGTransform):
173         (WebCore::SVGTransformDistance::addToSVGTransform):
174         (WebCore::SVGTransformDistance::isZero):
175         * svg/SVGTransformList.cpp:
176         * svg/SVGURIReference.cpp:
177         (WebCore::SVGURIReference::getTarget):
178         * svg/SVGVKernElement.h:
179         * svg/SVGViewSpec.cpp:
180         (WebCore::SVGViewSpec::parseViewSpec):
181         * svg/SVGZoomAndPan.h:
182         (WebCore::SVGZoomAndPan::SVGZoomAndPan):
183         (WebCore::SVGZoomAndPan::~SVGZoomAndPan):
184         (WebCore::SVGZoomAndPan::zoomAndPan):
185         * svg/SVGZoomEvent.h:
186         (WebCore::SVGZoomEvent::create):
187         * svg/animation/SMILTime.cpp:
188         (WebCore::operator*):
189         * svg/animation/SMILTime.h:
190         (WebCore::SMILTime::SMILTime):
191         (WebCore::SMILTime::unresolved):
192         (WebCore::SMILTime::indefinite):
193         (WebCore::SMILTime::operator=):
194         (WebCore::SMILTime::value):
195         (WebCore::SMILTime::isFinite):
196         (WebCore::SMILTime::isIndefinite):
197         (WebCore::SMILTime::isUnresolved):
198         (WebCore::operator==):
199         (WebCore::operator!): new operator checks for 0 or infinite values.
200         (WebCore::operator!=):
201         (WebCore::operator>):
202         (WebCore::operator<):
203         (WebCore::operator>=):
204         (WebCore::operator<=):
205         * svg/animation/SMILTimeContainer.h:
206         (WebCore::SMILTimeContainer::create):
207         (WebCore::SMILTimeContainer::setDocumentOrderIndexesDirty):
208         * svg/animation/SVGSMILElement.cpp:
209         (WebCore::ConditionEventListener::operator==):
210         (WebCore::SVGSMILElement::repeatingDuration):
211         (WebCore::SVGSMILElement::resolveInterval):
212         (WebCore::SVGSMILElement::calculateAnimationPercentAndRepeat):
213         * svg/animation/SVGSMILElement.h:
214         (WebCore::SVGSMILElement::timeContainer):
215         (WebCore::SVGSMILElement::intervalBegin):
216         (WebCore::SVGSMILElement::intervalEnd):
217         (WebCore::SVGSMILElement::previousIntervalBegin):
218         (WebCore::SVGSMILElement::documentOrderIndex):
219         (WebCore::SVGSMILElement::setDocumentOrderIndex):
220         * svg/graphics/SVGImage.h:
221         (WebCore::SVGImage::create):
222         (WebCore::SVGImage::destroyDecodedData):
223         (WebCore::SVGImage::decodedSize):
224         (WebCore::SVGImage::frameAtIndex):
225         * svg/graphics/filters/SVGFilterBuilder.h:
226         (WebCore::SVGFilterBuilder::create):
227         (WebCore::SVGFilterBuilder::lastEffect):
228         (WebCore::SVGFilterBuilder::getEffectReferences):
229         (WebCore::SVGFilterBuilder::addBuiltinEffects):
230
231 2010-12-29  Abhishek Arya  <inferno@chromium.org>
232
233         Reviewed by Darin Adler.
234
235         ASSERT(oldchild->parent() == owner) fails.
236         https://bugs.webkit.org/show_bug.cgi?id=50480
237
238         In RenderBlock removeChild function, when the inlineChildrenBlock(equal to prev or next)
239         is reparented to blockChildrenBlock, it is no longer a child of "this". This causes the
240         assertion failure when removeChildNode executes on the child(equal to prev or next).
241         Fix a typo in canMergeContiguousAnonymousBlocks.
242
243         Test: fast/multicol/span/double-merge-anonymous-block-crash.html
244
245         * rendering/RenderBlock.cpp:
246         (WebCore::canMergeContiguousAnonymousBlocks): fix typo, change prev to next.
247         (WebCore::RenderBlock::removeChild): if prev or not is reparented, then set it to zero.
248
249 2010-12-29  Justin Schuh  <jschuh@chromium.org>
250
251         Reviewed by Darin Adler.
252
253         Check SVG element type in FrameView::scrollToAnchor
254         https://bugs.webkit.org/show_bug.cgi?id=51718
255
256         Test: svg/custom/scroll-to-anchor-in-symbol.svg
257
258         * page/FrameView.cpp:
259         (WebCore::FrameView::scrollToAnchor):
260
261 2010-12-29  Anton Muhin  <antonm@chromium.org>
262
263         Reviewed by Eric Seidel.
264
265         [v8] Minor cleanup: remove unused method (the only method which can mutate context of V8DOMWindowShell)
266         https://bugs.webkit.org/show_bug.cgi?id=51704
267
268         * bindings/v8/V8DOMWindowShell.cpp:
269         * bindings/v8/V8DOMWindowShell.h:
270
271 2010-12-29  Kenichi Ishibashi  <bashi@google.com>
272
273         Reviewed by Darin Adler.
274
275         Use a HashMap for m_continuation to save memory
276         https://bugs.webkit.org/show_bug.cgi?id=43716
277
278         Saving memory consumption by applying a HashMap convention to
279         continuation pointers of RenderInline and RenderBlock classes.
280
281         * rendering/RenderBlock.cpp: Removed m_continuation.
282         (WebCore::RenderBlock::RenderBlock):
283         (WebCore::RenderBlock::destroy):
284         (WebCore::RenderBlock::inlineElementContinuation):
285         (WebCore::RenderBlock::blockElementContinuation):
286         * rendering/RenderBlock.h: Removed m_continuation.
287         * rendering/RenderBoxModelObject.cpp: Added a hash map for continuations.
288         (WebCore::RenderBoxModelObject::destroy): Added an assertion.
289         (WebCore::RenderBoxModelObject::continuation): Added.
290         (WebCore::RenderBoxModelObject::setContinuation): Added.
291         * rendering/RenderBoxModelObject.h:
292         * rendering/RenderInline.cpp: Removed m_continuation.
293         (WebCore::RenderInline::RenderInline):
294         (WebCore::RenderInline::destroy):
295         (WebCore::RenderInline::inlineElementContinuation):
296         * rendering/RenderInline.h: Removed m_continuation.
297
298 2010-12-27  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>
299
300         Reviewed by Martin Robinson.
301
302         [GTK] Enable building whatever already exists of WebKit2
303         https://bugs.webkit.org/show_bug.cgi?id=37369
304
305         No new functionality added or deleted. Only makefile change. Hence, no tests added.
306
307         * GNUmakefile.am: Removed bindings/gobject from webcore_sources & webcore_cppflags and
308         added them to WebKit/gtk/GNUmakefile.am
309         * platform/network/soup/cache/webkit/soup-cache.h: Remove include <webkit/webkitdefines.h>
310         and declare WEBKIT_API directly
311
312 2010-12-29  Eric Seidel  <eric@webkit.org>
313
314         Unreviewed.
315
316         Simplify make-hash-tools.pl
317         https://bugs.webkit.org/show_bug.cgi?id=49922
318
319         Added HashTools.h to the project file now that its not autogenerated.
320         I also sorted the project file using sort-xcode-project-file
321
322         * WebCore.xcodeproj/project.pbxproj:
323
324 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
325
326         Not reviewed: revert r74755 and 74757.
327
328 2010-12-29  Martin Robinson  <mrobinson@igalia.com>
329
330         Reviewed by Sam Weinig.
331
332         JSDataViewCustom.cpp gives the fastcall calling convention to functions called via C++
333         https://bugs.webkit.org/show_bug.cgi?id=51722
334
335         Remove the JSC_HOST_CALL from methods that are called from C++. JSC_HOST_CALL gives
336         methods the fastcall calling convention, which leads to runtime errors when they are
337         called from C++. Also remove a bit of unnecessary code duplication.
338
339         No new tests. This is covered by fast/canvas/webgl/data-view-test.html.
340
341         * bindings/js/JSDataViewCustom.cpp:
342         (WebCore::getDataViewMember): Remove duplicated code.
343         (WebCore::JSDataView::getInt8): Remove JSC_HOST_CALL.
344         (WebCore::JSDataView::getUint8): Ditto.
345         (WebCore::JSDataView::getFloat32): Ditto.
346         (WebCore::JSDataView::getFloat64): Ditto.
347         (WebCore::setDataViewMember): Remove duplicated code.
348         (WebCore::JSDataView::setInt8): Remove JSC_HOST_CALL.
349         (WebCore::JSDataView::setUint8): Ditto.
350
351 2010-12-29  Dan Bernstein  <mitz@apple.com>
352
353         Reviewed by Kenneth Russel.
354
355         A more robust fix for https://bugs.webkit.org/show_bug.cgi?id=51681
356
357         * html/HTMLCanvasElement.cpp:
358         (WebCore::HTMLCanvasElement::attach): Added. Like recalcStyle(), calls
359         CanvasRenderingContext2D::updateFont() if necessary. This covers the case of a detach/
360         attach-type style recalc.
361         * html/HTMLCanvasElement.h:
362         * html/canvas/CanvasRenderingContext2D.cpp:
363         (WebCore::CanvasRenderingContext2D::drawTextInternal): Removed the early return added in
364         r74716. A font that is loading custom fonts is okay to use, as long as it is valid.
365         (WebCore::CanvasRenderingContext2D::accessFont): Added a call to
366         Document::updateStyleIfNeeded(). This ensures that any pending style recalc will take place
367         and update the font if it is invalid.
368         * platform/graphics/Font.h:
369         (WebCore::Font::loadingCustomFonts): Made this private.
370
371 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
372
373         Not reviewed: Qt build fix.
374
375         * inspector/InspectorController.cpp:
376
377 2010-12-29  Pavel Feldman  <pfeldman@chromium.org>
378
379         Reviewed by Yury Semikhatsky.
380
381         Web Inspector: extract Database & DOM Storage
382         agents; remove InspectorBackend.
383         https://bugs.webkit.org/show_bug.cgi?id=51707
384
385         This change brushes up storage agents + removes redundant
386         InspectorBackend class.
387
388         * CMakeLists.txt:
389         * GNUmakefile.am:
390         * WebCore.gypi:
391         * WebCore.pro:
392         * WebCore.vcproj/WebCore.vcproj:
393         * WebCore.xcodeproj/project.pbxproj:
394         * inspector/CodeGeneratorInspector.pm:
395         * inspector/InjectedScriptHost.cpp:
396         (WebCore::InjectedScriptHost::databaseForId):
397         (WebCore::InjectedScriptHost::selectDatabase):
398         (WebCore::InjectedScriptHost::selectDOMStorage):
399         (WebCore::InjectedScriptHost::inspectorDOMAgent):
400         * inspector/Inspector.idl:
401         * inspector/InspectorBackend.cpp: Removed.
402         * inspector/InspectorBackend.h: Removed.
403         * inspector/InspectorController.cpp:
404         (WebCore::InspectorController::InspectorController):
405         (WebCore::InspectorController::~InspectorController):
406         (WebCore::InspectorController::connectFrontend):
407         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
408         (WebCore::InspectorController::didUseDOMStorage):
409         (WebCore::InspectorController::setInjectedScriptSource):
410         (WebCore::InspectorController::dispatchOnInjectedScript):
411         (WebCore::InspectorController::releaseWrapperObjectGroup):
412         * inspector/InspectorController.h:
413         * inspector/InspectorDOMStorageAgent.cpp: Added.
414         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
415         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
416         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
417         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
418         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
419         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
420         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
421         * inspector/InspectorDOMStorageAgent.h: Copied from WebCore/inspector/InspectorStorageAgent.h.
422         (WebCore::InspectorDOMStorageAgent::create):
423         (WebCore::InspectorDOMStorageAgent::frontend):
424         * inspector/InspectorDatabaseAgent.cpp: Renamed from WebCore/inspector/InspectorStorageAgent.cpp.
425         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
426         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
427         (WebCore::InspectorDatabaseAgent::executeSQL):
428         (WebCore::InspectorDatabaseAgent::databaseForId):
429         (WebCore::InspectorDatabaseAgent::selectDatabase):
430         (WebCore::InspectorDatabaseAgent::clearFrontend):
431         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
432         * inspector/InspectorDatabaseAgent.h: Renamed from WebCore/inspector/InspectorStorageAgent.h.
433         (WebCore::InspectorDatabaseAgent::create):
434         (WebCore::InspectorDatabaseAgent::frontend):
435         * inspector/InspectorFrontendClientLocal.cpp:
436         * inspector/InspectorFrontendClientLocal.h:
437         * inspector/front-end/ScriptsPanel.js:
438         (WebInspector.ScriptsPanel.prototype.show):
439
440 2010-12-29  Tony Gentilcore  <tonyg@chromium.org>
441
442         Reviewed by Eric Seidel.
443
444         Assertion failure: element->inDocument() in AsyncScriptRunner::executeScriptSoon()
445         https://bugs.webkit.org/show_bug.cgi?id=51067
446
447         Typically when a script element is removed from the document, the cached script
448         client is removed. However, during the before load event, the cached script client
449         hasn't been created yet so it can't be removed.
450
451         This patch handles that case by explicitly checking if the script element was
452         removed during the beforeload event. Also, it avoids caching the Document references
453         over the arbitrary script execution in the before load event.
454
455         Test: fast/dom/HTMLScriptElement/move-in-beforeload.html
456               fast/dom/HTMLScriptElement/remove-in-beforeload.html
457
458         * dom/ScriptElement.cpp:
459         (WebCore::ScriptElement::requestScript):
460
461 2010-12-29  Alexander Pavlov  <apavlov@chromium.org>
462
463         Reviewed by Yury Semikhatsky.
464
465         Web Inspector: Element highlight tooltip displays wrong element size when zoomed in
466         https://bugs.webkit.org/show_bug.cgi?id=51703
467
468         * inspector/InspectorController.cpp:
469         (WebCore::InspectorController::drawElementTitle):
470
471 2010-12-29  Yael Aharon  <yael.aharon@nokia.com>
472
473         Reviewed by Kent Tamura.
474
475         [HTML5][Forms] Support for :in-range and :out-of-range CSS selectors
476         https://bugs.webkit.org/show_bug.cgi?id=29071
477
478         Use InputType::rangeUnderflow() and InputType::rangeOverflow()
479         to determine if a control is in-range or out-of-range.
480
481         Tests: fast/css/pseudo-in-range-invalid-value.html
482                fast/css/pseudo-in-range.html
483                fast/css/pseudo-out-of-range.html
484
485         * css/CSSSelector.cpp:
486         (WebCore::CSSSelector::pseudoId):
487         (WebCore::nameToPseudoTypeMap):
488         (WebCore::CSSSelector::extractPseudoType):
489         * css/CSSSelector.h:
490         * css/CSSStyleSelector.cpp:
491         (WebCore::CSSStyleSelector::canShareStyleWithElement):
492         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
493         * dom/Element.h:
494         (WebCore::Element::isInRange):
495         (WebCore::Element::isOutOfRange):
496         * html/BaseDateAndTimeInputType.cpp:
497         (WebCore::BaseDateAndTimeInputType::supportsRangeLimitation):
498         * html/BaseDateAndTimeInputType.h:
499         * html/HTMLInputElement.cpp:
500         (WebCore::HTMLInputElement::isInRange):
501         (WebCore::HTMLInputElement::isOutOfRange):
502         * html/HTMLInputElement.h:
503         * html/InputType.cpp:
504         (WebCore::InputType::supportsRangeLimitation):
505         * html/InputType.h:
506         * html/NumberInputType.cpp:
507         (WebCore::NumberInputType::supportsRangeLimitation):
508         * html/NumberInputType.h:
509         * html/RangeInputType.cpp:
510         (WebCore::RangeInputType::supportsRangeLimitation):
511         * html/RangeInputType.h:
512
513 2010-12-29  Abhishek Arya  <inferno@chromium.org>
514
515         Reviewed by Eric Seidel.
516
517         When cloning an anonymous block, make sure to set the childrenInline flag based
518         on the state of the block to be cloned.
519         https://bugs.webkit.org/show_bug.cgi?id=51489
520
521         Test: fast/multicol/span/clone-anonymous-block-non-inline-child-crash.html
522
523         * rendering/RenderBlock.cpp:
524         (WebCore::RenderBlock::clone): add code to handle cloning of anonymous blocks.
525         (WebCore::RenderBlock::splitBlocks): remove anonymous block creation calls since it is now handled by clone().
526
527 2010-12-29  Patrick Gansterer  <paroga@webkit.org>
528
529         Unreviewed build fix for WinCE after r73802.
530
531         Reapply parts from r72585:
532         Port ContextMenuWin.cpp to WinCE
533         https://bugs.webkit.org/show_bug.cgi?id=48408
534
535         * CMakeLists.txt:
536         * platform/ContextMenu.h:
537         * platform/win/ContextMenuWin.cpp:
538         (WebCore::ContextMenu::getContextMenuItems):
539         (WebCore::ContextMenu::createNativeMenuFromItems):
540
541 2010-12-29  Kent Hansen  <kent.hansen@nokia.com>
542
543         Reviewed by Simon Hausmann.
544
545         [Qt] Fix compilation with Qt in namespace
546         https://bugs.webkit.org/show_bug.cgi?id=51701
547
548         * platform/graphics/ContextShadow.h:
549         * platform/graphics/GraphicsContext3D.h:
550         * platform/network/NetworkingContext.h:
551         * platform/network/qt/QtNAMThreadSafeProxy.h:
552         * plugins/PluginView.h:
553
554 2010-12-28  Alexander Pavlov  <apavlov@chromium.org>
555
556         Reviewed by Pavel Feldman.
557
558         Web Inspector: A disabled style property should get enabled when edited
559         https://bugs.webkit.org/show_bug.cgi?id=51679
560
561         Test: inspector/styles-disable-then-change.html
562
563         * inspector/front-end/CSSStyleModel.js:
564         (WebInspector.CSSProperty.prototype.setText):
565         (WebInspector.CSSProperty.prototype.setText.callback):
566
567 2010-12-29  Patrick Gansterer  <paroga@webkit.org>
568
569         Reviewed by Andreas Kling.
570
571         [CMake] Remove WebKitGenerators
572         https://bugs.webkit.org/show_bug.cgi?id=50445
573
574         * CMakeLists.txt: Pass preprocessor to generate-bindings.pl.
575
576 2010-12-28  Pratik Solanki  <psolanki@apple.com>
577
578         Reviewed by Eric Seidel.
579
580         https://bugs.webkit.org/show_bug.cgi?id=51522
581         Use deviceRGBColorSpaceRef() instead of calling CGColorSpaceCreateDeviceRGB()
582
583         * page/win/FrameCGWin.cpp:
584         (WebCore::imageFromRect):
585         * platform/graphics/cg/GradientCG.cpp:
586         (WebCore::Gradient::platformGradient):
587         * platform/graphics/cg/GraphicsContext3DCG.cpp:
588         (WebCore::GraphicsContext3D::paintToCanvas):
589         * platform/graphics/cg/ImageCG.cpp:
590         (WebCore::BitmapImage::checkForSolidColor):
591         * platform/graphics/gstreamer/ImageGStreamerCG.mm:
592         (ImageGStreamer::ImageGStreamer):
593         * platform/graphics/win/GraphicsContextCGWin.cpp:
594         (WebCore::CGContextWithHDC):
595         (WebCore::GraphicsContext::releaseWindowsContext):
596         (WebCore::GraphicsContext::drawWindowsBitmap):
597         * platform/graphics/win/ImageCGWin.cpp:
598         (WebCore::BitmapImage::create):
599         (WebCore::BitmapImage::getHBITMAPOfSize):
600         * platform/image-decoders/cg/ImageDecoderCG.cpp:
601         (WebCore::createColorSpace):
602         * platform/win/DragImageCGWin.cpp:
603         (WebCore::allocImage):
604         (WebCore::createCgContextFromBitmap):
605         * rendering/RenderThemeMac.mm:
606         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
607         (WebCore::RenderThemeMac::paintSliderTrack):
608         * rendering/RenderThemeSafari.cpp:
609         (WebCore::RenderThemeSafari::paintMenuListButtonGradients):
610         (WebCore::RenderThemeSafari::paintSliderTrack):
611
612 2010-12-28  Daniel Bates  <dbates@rim.com>
613
614         Reviewed by Sam Weinig.
615
616         Substitute // MARK: for compiler-specific #pragma mark
617         https://bugs.webkit.org/show_bug.cgi?id=51657
618
619         Fix compilation warnings about "#pragma mark" on GTK+ bots by
620         substituting  "// MARK:" for "#pragma mark", which provides
621         analogous code-bookmarking functionality under Xcode.
622
623         * platform/graphics/cg/PathCG.cpp:
624         * platform/graphics/mac/WebLayer.mm:
625
626 2010-12-28  Jan Erik Hanssen  <jhanssen@sencha.com>
627
628         Reviewed by Eric Seidel.
629
630         [Qt] GraphicsContext::getCTM() does not need to make a copy of QPainter::combinedTransform()
631         https://bugs.webkit.org/show_bug.cgi?id=51687
632
633         Use a const reference instead of a copy of QPainter::combinedTransform() 
634         in GraphicsContext::getCTM()
635
636         * platform/graphics/qt/GraphicsContextQt.cpp:
637         (WebCore::GraphicsContext::getCTM):
638
639 2010-12-28  Takashi Toyoshima  <toyoshim@google.com>
640
641         Reviewed by Eric Seidel.
642
643         gcc detected 'control reaches end of non-void function' with
644         -finstrument-functions option.
645         https://bugs.webkit.org/show_bug.cgi?id=51669
646
647         No new tests. These fixes are trivial.
648
649         * dom/Element.cpp:
650         (WebCore::Element::childTypeAllowed):
651         * inspector/InspectorResourceAgent.cpp:
652         (WebCore::cachedResourceTypeString):
653
654 2010-12-28  Tony Gentilcore  <tonyg@chromium.org>
655
656         Reviewed by Eric Seidel.
657
658         Remove unused member of PendingScript
659         https://bugs.webkit.org/show_bug.cgi?id=51684
660
661         This was used when HTMLScriptRunner::runScript created a PendingScript
662         for inline scripts. But now it just calls executeScript() directly.
663         External scripts always have the minimum starting line number.
664
665         No new tests because no changed functionality.
666
667         * dom/PendingScript.cpp:
668         (WebCore::PendingScript::releaseElementAndClear):
669         * dom/PendingScript.h:
670         (WebCore::PendingScript::PendingScript):
671         (WebCore::PendingScript::operator=):
672         * html/parser/HTMLScriptRunner.cpp:
673         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
674
675 2010-12-20  Antonio Gomes  <agomes@rim.com>
676
677         Reviewed by Daniel Bates.
678
679         Spatial Navigation: code clean up (Part VI)
680         https://bugs.webkit.org/show_bug.cgi?id=50666
681
682         No new tests needed.
683
684         * page/FocusController.cpp:
685         (WebCore::updatFocusCandidateIfNeeded): Assert renderer() and
686         isElementNode() now that we are bailing out earlier in both the
687         FocusCandidate constructor and FocusController::findFocusCandidateInContainer().
688         * page/SpatialNavigation.h: Swapped the parameters order in canScrollInDirection
689         and virtualRectForAreaElementAndDirection functions.
690         (WebCore::FocusController::findFocusCandidateInContainer):
691         (WebCore::FocusController::advanceFocusDirectionallyInContainer): Adjusted callsites
692         of canScrollInDirection(), and added an early return if !isElementNode().
693         (WebCore::FocusController::advanceFocusDirectionally): Adjusted callsite of
694         virtualRectForAreaElementAndDirection();
695         * page/SpatialNavigation.cpp:
696         (WebCore::FocusCandidate::FocusCandidate): Assert if node is not a element node;
697         (WebCore::isScrollableNode): Renamed from isScrollableContainerNode;
698         (WebCore::scrollInDirection): Adjusted callsite after function name change;
699         (WebCore::scrollableEnclosingBoxOrParentFrameForNodeInDi:rection): Assert if node is
700         a documentNode.
701         (WebCore::canScrollInDirection): Signature changed.
702         (WebCore::canBeScrolledIntoView): Ditto.
703         (WebCore::virtualRectForAreaElementAndDirection): Ditto.
704
705 2010-12-28  Adrienne Walker  <enne@google.com>
706
707         Reviewed by Kenneth Russell.
708
709         [chromium] Fix tiled compositor assertion after GPU process recovery.
710         https://bugs.webkit.org/show_bug.cgi?id=51682
711
712         After the GPU process recovers, the layer size is set to IntSize(),
713         but IntRect::unite() has a special case for empty rects.  This
714         behavior was causing the layer size to be too small, causing an
715         out-of-bounds array access elsewhere.
716
717         No new tests.
718
719         * platform/graphics/chromium/LayerTilerChromium.cpp:
720         (WebCore::LayerTilerChromium::growLayerToContain):
721
722 2010-12-23  Zhenyao Mo  <zmo@google.com>
723
724         Reviewed by Kenneth Russell.
725
726         Initialize to 0 for undefined values in CopyTexImage2D
727         https://bugs.webkit.org/show_bug.cgi?id=51421
728
729         * html/canvas/WebGLFramebuffer.cpp: Track width/height/internalFormat of color buffer.
730         (WebCore::WebGLFramebuffer::WebGLFramebuffer):
731         (WebCore::WebGLFramebuffer::setAttachment):
732         (WebCore::WebGLFramebuffer::getWidth):
733         (WebCore::WebGLFramebuffer::getHeight):
734         (WebCore::WebGLFramebuffer::getColorBufferFormat):
735         * html/canvas/WebGLFramebuffer.h:
736         * html/canvas/WebGLRenderingContext.cpp:
737         (WebCore::WebGLRenderingContext::copyTexImage2D): Initialize undefined pixels to 0.
738         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
739         (WebCore::WebGLRenderingContext::framebufferTexture2D):
740         (WebCore::WebGLRenderingContext::renderbufferStorage):
741         (WebCore::WebGLRenderingContext::getBoundFramebufferWidth):
742         (WebCore::WebGLRenderingContext::getBoundFramebufferHeight):
743         * html/canvas/WebGLRenderingContext.h:
744         * html/canvas/WebGLTexture.cpp: Track width/height/internalFormat of a texture by target/level.
745         (WebCore::WebGLTexture::getInternalFormat):
746         (WebCore::WebGLTexture::getWidth):
747         (WebCore::WebGLTexture::getHeight):
748         (WebCore::WebGLTexture::mapTargetToIndex):
749         (WebCore::WebGLTexture::getLevelInfo):
750         * html/canvas/WebGLTexture.h:
751         (WebCore::WebGLTexture::isTexture):
752         * platform/graphics/GraphicsContext3D.h: Add getInternalFramebufferSize() function.
753         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
754         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
755         * platform/graphics/qt/GraphicsContext3DQt.cpp:
756         (WebCore::GraphicsContext3D::getInternalFramebufferSize):
757
758 2010-12-23  Zhenyao Mo  <zmo@google.com>
759
760         Reviewed by Kenneth Russell.
761
762         Map GLsizei to long instead of unsigned long in WebGLRenderingContext and GraphicsContext3D
763         https://bugs.webkit.org/show_bug.cgi?id=39855
764
765         * html/canvas/WebGLRenderingContext.cpp:
766         (WebCore::WebGLRenderingContext::copyTexImage2D): Map GLsizei to long.
767         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
768         (WebCore::WebGLRenderingContext::renderbufferStorage): Ditto.
769         (WebCore::WebGLRenderingContext::scissor): Ditto.
770         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
771         (WebCore::WebGLRenderingContext::texImage2D): Ditto.
772         (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto.
773         (WebCore::WebGLRenderingContext::texSubImage2DImpl): Ditto.
774         (WebCore::WebGLRenderingContext::texSubImage2D): Ditto.
775         (WebCore::WebGLRenderingContext::viewport): Ditto.
776         (WebCore::WebGLRenderingContext::validateSize): Check the sizes are non-negative.
777         * html/canvas/WebGLRenderingContext.h:
778         * html/canvas/WebGLRenderingContext.idl:
779
780 2010-12-28  Abhishek Arya  <inferno@chromium.org>
781
782         Reviewed by Kenneth Russell.
783
784         Fix crash with invalid font in m_fontList by not drawing text when a custom font is in the
785         process of loading.
786         https://bugs.webkit.org/show_bug.cgi?id=51681
787
788         Test: canvas/philip/tests/2d.text-custom-font-load-crash.html
789
790         * html/canvas/CanvasRenderingContext2D.cpp:
791         (WebCore::CanvasRenderingContext2D::drawTextInternal): bail out if a custom font is loading.
792         * platform/graphics/Font.cpp:
793         (WebCore::Font::operator==): Replace condition with new function loadingCustomFonts()
794         (WebCore::Font::drawText): Replace condition with new function loadingCustomFonts()
795         (WebCore::Font::drawEmphasisMarks): Replace condition with new function loadingCustomFonts()
796         * platform/graphics/Font.h:
797         (WebCore::Font::loadingCustomFonts): new function that returns if a custom font is loading.
798
799 2010-12-28  Dimitri Glazkov  <dglazkov@chromium.org>
800
801         Reviewed by Eric Seidel.
802
803         Combine setShadowRoot and clearShadowRoot into a simpler API
804         https://bugs.webkit.org/show_bug.cgi?id=50971
805
806         No change in behavior, and API is not used yet.
807
808         * dom/Element.cpp:
809         (WebCore::Element::setShadowRoot): Combined clearing and setting of
810             the shadowRoot, also hooked up with setting and clearing of the
811             corresponding shadowHost values.
812         * dom/Element.h: renamed clearShadowRoot to removeShadowRoot and made it
813             private.
814         * dom/Node.h: Made shadow host-related functions public so that
815             Element::setShadowRoot can access setShadowHost. It seems logical
816             to make shadowHost public as well to keep the defs together.
817
818 2010-12-28  Andrey Kosyakov  <caseq@chromium.org>
819
820         Reviewed by Pavel Feldman.
821
822         Web Inspector: [Chromium] Expose extension API to select a node in WebInspector
823         Do not request content for resources with non-numeric identifiers.
824         https://bugs.webkit.org/show_bug.cgi?id=49727
825
826         Test: http/tests/inspector/extensions-resources-redirect.html
827
828         * inspector/front-end/NetworkManager.js:
829         (WebInspector.NetworkManager.prototype._appendRedirect):
830
831 2010-12-28  Ilya Tikhonovsky  <loislo@chromium.org>
832
833         Unreviewed build fix for Qt.
834
835         ResourceTreeModel.js was added.
836
837         * inspector/front-end/WebKit.qrc:
838
839 2010-12-28  Mikhail Naganov  <mnaganov@chromium.org>
840
841         Reviewed by Pavel Feldman.
842
843         [Chromium] Fix memory leak in Profiles tab concerned with heap profiles views.
844
845         https://bugs.webkit.org/show_bug.cgi?id=51680
846
847         * inspector/front-end/ProfilesPanel.js:
848         (WebInspector.ProfilesPanel.prototype._reset):
849
850 2010-12-28  Alexander Pavlov  <apavlov@chromium.org>
851
852         Reviewed by Pavel Feldman.
853
854         Web Inspector: REGRESSION: Clicking image resource in style sidebar doesn't actually go to resource anymore
855         https://bugs.webkit.org/show_bug.cgi?id=51663
856
857         The base URI is now computed correctly for links from CSS property uri(...) values. Additionally,
858         optional quotes/apostrophes and spaces are now allowed inside uri(...).
859
860         Test: inspector/styles-url-linkify.html
861
862         * inspector/front-end/StylesSidebarPane.js:
863         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
864         (WebInspector.StylePropertyTreeElement.prototype.updateTitle):
865
866 2010-12-21  Ilya Tikhonovsky  <loislo@chromium.org>
867
868         Reviewed by Pavel Feldman.
869
870         Web Inspector: Protocol cleanup task. Introduce Network, DOMStorage and Database domains.
871
872         Domain was changed for Resources, FileSystem etc. related methods.
873         ResourcesManager was renamed to NetworkManager.
874         ResourceTreeModel was extracted as separate file.
875         FileSystem, Database, DOMStorage and ApplicationCache methods were
876         removed from NetworkManager and added to corresponding classes.
877
878         https://bugs.webkit.org/show_bug.cgi?id=51334
879
880         * WebCore.gypi:
881         * WebCore.vcproj/WebCore.vcproj:
882         * inspector/CodeGeneratorInspector.pm:
883         * inspector/Inspector.idl:
884         * inspector/front-end/AuditRules.js:
885         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
886         * inspector/front-end/CSSStyleModel.js:
887         (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
888         (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
889         * inspector/front-end/ConsoleView.js:
890         (WebInspector.ConsoleView.prototype.addMessage):
891         (WebInspector.ConsoleView.prototype.clearMessages):
892         * inspector/front-end/DOMAgent.js:
893         (WebInspector.ApplicationCache.updateApplicationCacheStatus):
894         (WebInspector.ApplicationCache.updateNetworkState):
895         * inspector/front-end/DOMStorage.js:
896         (WebInspector.DOMStorage.addDOMStorage):
897         (WebInspector.DOMStorage.selectDOMStorage):
898         (WebInspector.DOMStorage.updateDOMStorage):
899         * inspector/front-end/Database.js:
900         (WebInspector.Database.prototype.executeSql):
901         (WebInspector.Database.addDatabase):
902         (WebInspector.Database.selectDatabase):
903         (WebInspector.Database.sqlTransactionSucceeded):
904         (WebInspector.Database.sqlTransactionFailed):
905         * inspector/front-end/FileSystemView.js:
906         (WebInspector.FileSystem.didGetFileSystemPath):
907         (WebInspector.FileSystem.didGetFileSystemError):
908         (WebInspector.FileSystem.didGetFileSystemDisabled):
909         * inspector/front-end/NetworkItemView.js:
910         (WebInspector.NetworkItemView):
911         * inspector/front-end/NetworkManager.js: Added.
912         (WebInspector.NetworkManager):
913         (WebInspector.NetworkManager.prototype._createResource):
914         (WebInspector.NetworkManager.prototype.identifierForInitialRequest):
915         (WebInspector.NetworkManager.prototype.willSendRequest):
916         (WebInspector.NetworkManager.prototype._updateResourceWithRequest):
917         (WebInspector.NetworkManager.prototype._appendRedirect):
918         (WebInspector.NetworkManager.prototype.markResourceAsCached):
919         (WebInspector.NetworkManager.prototype.didReceiveResponse):
920         (WebInspector.NetworkManager.prototype._updateResourceWithResponse):
921         (WebInspector.NetworkManager.prototype.didReceiveContentLength):
922         (WebInspector.NetworkManager.prototype.didFinishLoading):
923         (WebInspector.NetworkManager.prototype.didFailLoading):
924         (WebInspector.NetworkManager.prototype.didLoadResourceFromMemoryCache):
925         (WebInspector.NetworkManager.prototype._updateResourceWithCachedResource):
926         (WebInspector.NetworkManager.prototype.setInitialContent):
927         (WebInspector.NetworkManager.prototype.didCommitLoadForFrame):
928         (WebInspector.NetworkManager.prototype.frameDetachedFromParent):
929         (WebInspector.NetworkManager.prototype.didCreateWebSocket):
930         (WebInspector.NetworkManager.prototype.willSendWebSocketHandshakeRequest):
931         (WebInspector.NetworkManager.prototype.didReceiveWebSocketHandshakeResponse):
932         (WebInspector.NetworkManager.prototype.didCloseWebSocket):
933         (WebInspector.NetworkManager.prototype._processCachedResources):
934         (WebInspector.NetworkManager.prototype._addFramesRecursively):
935         (WebInspector.NetworkManager.requestContent):
936         * inspector/front-end/NetworkPanel.js:
937         (WebInspector.NetworkPanel.prototype.refreshResource):
938         * inspector/front-end/Resource.js:
939         (WebInspector.Resource.prototype._innerRequestContent):
940         * inspector/front-end/ResourceManager.js: Removed.
941         * inspector/front-end/ResourceTreeModel.js: Added.
942         (WebInspector.ResourceTreeModel):
943         (WebInspector.ResourceTreeModel.prototype.addOrUpdateFrame):
944         (WebInspector.ResourceTreeModel.prototype.didCommitLoadForFrame):
945         (WebInspector.ResourceTreeModel.prototype.frameDetachedFromParent):
946         (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
947         (WebInspector.ResourceTreeModel.prototype.addResourceToFrame):
948         (WebInspector.ResourceTreeModel.prototype._clearResources):
949         (WebInspector.ResourceTreeModel.prototype.forAllResources):
950         (WebInspector.ResourceTreeModel.prototype.addConsoleMessage):
951         (WebInspector.ResourceTreeModel.prototype.clearConsoleMessages):
952         (WebInspector.ResourceTreeModel.prototype._callForFrameResources):
953         (WebInspector.ResourceTreeModel.prototype.resourceForURL):
954         (WebInspector.ResourceTreeModel.prototype.bindResourceURL):
955         (WebInspector.ResourceTreeModel.prototype._unbindResourceURL):
956         (WebInspector.ResourceTreeModel.createResource):
957         * inspector/front-end/ResourceView.js:
958         (WebInspector.ResourceView.createResourceView):
959         (WebInspector.ResourceView.resourceViewTypeMatchesResource):
960         (WebInspector.ResourceView.resourceViewForResource):
961         (WebInspector.ResourceView.recreateResourceView):
962         (WebInspector.ResourceView.existingResourceViewForResource):
963         * inspector/front-end/ResourcesPanel.js:
964         (WebInspector.ResourcesPanel.prototype.canShowSourceLine):
965         (WebInspector.ResourcesPanel.prototype.showSourceLine):
966         (WebInspector.ResourcesPanel.prototype.showResource):
967         (WebInspector.ResourcesPanel.prototype.get searchableViews.callback):
968         (WebInspector.ResourcesPanel.prototype.get searchableViews):
969         (WebInspector.FrameResourceTreeElement.prototype._errorsWarningsUpdated):
970         (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
971         * inspector/front-end/ScriptsPanel.js:
972         (WebInspector.ScriptsPanel.prototype._addScript):
973         (WebInspector.ScriptsPanel.prototype.reset):
974         (WebInspector.ScriptsPanel.prototype._sourceFrameForResource):
975         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
976         * inspector/front-end/WebKit.qrc:
977         * inspector/front-end/inspector.html:
978         * inspector/front-end/inspector.js:
979         (WebInspector.forAllResources):
980         (WebInspector.resourceForURL):
981
982 2010-12-27  Helder Correia  <helder@sencha.com>
983
984         Reviewed by Ariya Hidayat.
985
986         ContextShadow should use AffineTransform instead of TransformationMatrix
987         https://bugs.webkit.org/show_bug.cgi?id=51661
988
989         ContextShadow needs the CTM to make sure shadows are not affected by
990         transformations when drawing on a canvas. AffineTransform is sufficient
991         in this case.
992
993         Existing tests: fast/canvas/canvas*shadow*html
994
995         * platform/graphics/ContextShadow.cpp:
996         (WebCore::ContextShadow::mustUseContextShadow):
997         (WebCore::ContextShadow::adjustBlurDistance):
998         (WebCore::ContextShadow::calculateLayerBoundingRect):
999         * platform/graphics/ContextShadow.h:
1000         * platform/graphics/cairo/ContextShadowCairo.cpp:
1001         (WebCore::ContextShadow::getTransformationMatrixFromContext):
1002         * platform/graphics/qt/ContextShadowQt.cpp:
1003         (WebCore::ContextShadow::getTransformationMatrixFromContext):
1004
1005 2010-12-27  Daniel Bates  <dbates@rim.com>
1006
1007         Reviewed by Antonio Gomes.
1008
1009         Clean up: Rename HTMLFrameElementBase::getMarginWidth() and HTMLFrameElementBase::getMarginHeight()
1010         https://bugs.webkit.org/show_bug.cgi?id=51634
1011
1012         Rename HTMLFrameElementBase::getMarginWidth() and HTMLFrameElementBase::getMarginHeight()
1013         to HTMLFrameElementBase::marginWidth() and HTMLFrameElementBase::marginHeight(), respectively.
1014         This will make the names of these getters consistent with the naming convention we use for
1015         getters.
1016
1017         * html/HTMLBodyElement.cpp:
1018         (WebCore::HTMLBodyElement::insertedIntoDocument):
1019         * html/HTMLFrameElementBase.h:
1020         (WebCore::HTMLFrameElementBase::marginWidth): Renamed; Formerly getMarginWidth().
1021         (WebCore::HTMLFrameElementBase::marginHeight): Renamed; Formerly getMarginHeight().
1022         * loader/SubframeLoader.cpp:
1023         (WebCore::SubframeLoader::loadSubframe):
1024         * page/FrameView.cpp:
1025         (WebCore::FrameView::init):
1026         * rendering/RenderEmbeddedObject.cpp:
1027         (WebCore::RenderEmbeddedObject::viewCleared): Also renamed variables marginw and marginh
1028         to marginWidth and marginHeight, respectively. This makes the names of these variables
1029         consistent with the names of similar variables in SubframeLoader::loadSubframe() and FrameView::init().
1030         * rendering/RenderFrame.cpp:
1031         (WebCore::RenderFrame::viewCleared): Ditto.
1032
1033 2010-12-27  Martin Robinson  <mrobinson@igalia.com>
1034
1035         Reviewed by Daniel Bates.
1036
1037         [GTK] RenderThemeGtk::m_HScale and RenderThemeGtk::m_VScale are not initialized
1038         https://bugs.webkit.org/show_bug.cgi?id=51654
1039
1040         Properly initialize slider members of RenderThemeGtk. This can lead to test crashes
1041         on some debug configurations.
1042
1043         No new tests. This is already covered by current slider tests. It isn't crashing on
1044         the bots, but it does crash locally.
1045
1046         * platform/gtk/RenderThemeGtk.cpp:
1047         (WebCore::RenderThemeGtk::RenderThemeGtk): Properly initialize members.
1048
1049 2010-12-27  Anton Muhin  <antonm@chromium.org>
1050
1051         Reviewed by David Levin.
1052
1053         [v8] Remove unused methods to protect/unprotect wrappers during garbage collection
1054         https://bugs.webkit.org/show_bug.cgi?id=51648
1055
1056         * bindings/v8/ScriptController.cpp:
1057         * bindings/v8/ScriptController.h:
1058         * bindings/v8/V8GCController.cpp:
1059         (WebCore::V8GCController::gcEpilogue):
1060         * bindings/v8/V8GCController.h:
1061
1062 2010-12-27  Yury Semikhatsky  <yurys@chromium.org>
1063
1064         Unreviewed. Removed trailing spaces from a localized
1065         string to make it the same as the one used in the code.
1066
1067         * English.lproj/localizedStrings.js:
1068
1069 2010-12-27  Yael Aharon  <yael.aharon@nokia.com>
1070
1071         Reviewed by Eric Seidel.
1072
1073         Browser is failing 16 baseline test from Selector API Test Suite
1074         https://bugs.webkit.org/show_bug.cgi?id=42968
1075
1076         Throw an exception if there is no argument to querySelector or 
1077         querySelectorAll. This replaces the current behavior of passing the string
1078         "undefined" as the argument.
1079
1080         No new tests, just updating the existing results for 
1081         fast/dom/SelectorAPI/resig-SelectorAPI-test.xhtml.
1082
1083         * dom/Document.idl:
1084         * dom/DocumentFragment.idl:
1085         * dom/Element.idl:
1086
1087 2010-12-26  MORITA Hajime  <morrita@google.com>
1088
1089         Reviewed by Dan Bernstein.
1090
1091         For box-shadow, non-primary shadows should have specified radii.
1092         https://bugs.webkit.org/show_bug.cgi?id=51386
1093
1094         On paintBoxShadow(), the spread value accidentally accumulated accidentally
1095         during the loop, which should be applied individually for radius of each shadow. 
1096         This change makes the radii for rects computed for each shadow.
1097         
1098         Test: fast/box-shadow/spread-multiple-normal.html
1099
1100         * rendering/RenderBoxModelObject.cpp:
1101         (WebCore::RenderBoxModelObject::paintBoxShadow):
1102
1103 2010-12-26  Patrick Gansterer  <paroga@webkit.org>
1104
1105         Reviewed by Eric Seidel.
1106
1107         Improve output of HTML parser benchmark
1108         https://bugs.webkit.org/show_bug.cgi?id=51611
1109
1110         Calculate and show median, min and max values.
1111
1112         * benchmarks/parser/html-parser.html:
1113
1114 2010-12-26  Abhishek Arya  <inferno@chromium.org>
1115
1116         Reviewed by Simon Fraser.
1117
1118         Remove the bad assert in paintPaginatedChildLayer, hitTestPaginatedChildLayer. 
1119         https://bugs.webkit.org/show_bug.cgi?id=48772
1120
1121         Test: fast/multicol/renderer-positioned-assert-crash.html
1122
1123         * rendering/RenderLayer.cpp:
1124         (WebCore::RenderLayer::paintPaginatedChildLayer):
1125         (WebCore::RenderLayer::hitTestPaginatedChildLayer):
1126
1127 2010-12-25  Peter Rybin  <peter.rybin@gmail.com>
1128
1129         Reviewed by Adam Barth.
1130
1131         Adds currentColumn (and currentLine) to SegmentedString. Switches
1132         HTMLTreeBuilder to HTMLDocumentParser::textPosition when it
1133         needs position for a <script> tag.
1134
1135         SegmentedString should provide column position
1136         https://bugs.webkit.org/show_bug.cgi?id=51311
1137
1138         * html/parser/HTMLDocumentParser.cpp:
1139         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
1140         (WebCore::HTMLDocumentParser::textPosition):
1141         * html/parser/HTMLInputStream.h:
1142         (WebCore::HTMLInputStream::current):
1143         (WebCore::InsertionPointRecord::InsertionPointRecord):
1144         (WebCore::InsertionPointRecord::~InsertionPointRecord):
1145         * html/parser/HTMLTreeBuilder.cpp:
1146         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
1147         (WebCore::HTMLTreeBuilder::processScriptStartTag):
1148         * html/parser/HTMLTreeBuilder.h:
1149         (WebCore::HTMLTreeBuilder::create):
1150         * platform/text/SegmentedString.cpp:
1151         (WebCore::SegmentedString::operator=):
1152         (WebCore::SegmentedString::numberOfCharactersConsumedSlow):
1153         (WebCore::SegmentedString::advanceSlowCase):
1154         (WebCore::SegmentedString::currentLine):
1155         (WebCore::SegmentedString::currentColumn):
1156         (WebCore::SegmentedString::setCurrentPosition):
1157         * platform/text/SegmentedString.h:
1158         (WebCore::SegmentedString::SegmentedString):
1159         (WebCore::SegmentedString::advancePastNewline):
1160         (WebCore::SegmentedString::advance):
1161         (WebCore::SegmentedString::numberOfCharactersConsumed):
1162
1163 2010-12-25  Andreas Kling  <kling@webkit.org>
1164
1165         Reviewed by Kenneth Rohde Christiansen.
1166
1167         GraphicsContext: Don't pass StrokeStyle (enum) as const reference
1168         https://bugs.webkit.org/show_bug.cgi?id=51608
1169
1170         * platform/graphics/GraphicsContext.cpp:
1171         (WebCore::GraphicsContext::setStrokeStyle):
1172         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1173         (WebCore::GraphicsContext::adjustLineToPixelBoundaries):
1174         * platform/graphics/GraphicsContext.h:
1175         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1176         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1177         * platform/graphics/haiku/GraphicsContextHaiku.cpp:
1178         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1179         * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
1180         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1181         * platform/graphics/openvg/PainterOpenVG.cpp:
1182         (WebCore::PainterOpenVG::setStrokeStyle):
1183         * platform/graphics/openvg/PainterOpenVG.h:
1184         * platform/graphics/qt/GraphicsContextQt.cpp:
1185         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1186         * platform/graphics/skia/GraphicsContextSkia.cpp:
1187         (WebCore::GraphicsContext::setPlatformStrokeStyle):
1188
1189 2010-12-24  Dan Bernstein  <mitz@apple.com>
1190
1191         Reviewed by Alexey Proskuryakov.
1192
1193         REGRESSION (r74648): XHR layout test failures
1194         https://bugs.webkit.org/show_bug.cgi?id=51603
1195
1196         Reverted r74648.
1197
1198         * WebCore.exp.in:
1199
1200 2010-12-24  Dan Bernstein  <mitz@apple.com>
1201
1202         Try to fix the Qt build after r74648.
1203
1204         * WebCore.gypi:
1205         * WebCore.pro:
1206         * platform/network/qt/CredentialStorageQt.cpp: Added.
1207         (WebCore::CredentialStorage::getFromPersistentStorage):
1208
1209 2010-12-24  Simon Fraser  <simon.fraser@apple.com>
1210
1211         Reviewed by Dan Bernstein.
1212
1213         CSSStyleSelector cleanup
1214         https://bugs.webkit.org/show_bug.cgi?id=51597
1215
1216         Make some methods const. Add assertion to checkOneSelector, with the
1217         intention of later removing the if (!e) check (this is hot code).
1218
1219         * css/CSSStyleSelector.cpp:
1220         (WebCore::CSSStyleSelector::locateCousinList):
1221         (WebCore::CSSStyleSelector::canShareStyleWithElement):
1222         (WebCore::CSSStyleSelector::locateSharedStyle):
1223         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
1224         (WebCore::CSSStyleSelector::mmLength):
1225         (WebCore::CSSStyleSelector::inchLength):
1226         (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
1227         (WebCore::CSSStyleSelector::hasSelectorForAttribute):
1228         * css/CSSStyleSelector.h:
1229         (WebCore::CSSStyleSelector::fontSelector):
1230
1231 2010-12-24  Dan Bernstein  <mitz@apple.com>
1232
1233         Reviewed by Anders Carlsson.
1234
1235         <rdar://problem/8758386> The web process uses its own credential storage
1236         https://bugs.webkit.org/show_bug.cgi?id=51599
1237
1238         * WebCore.exp.in: Export CredentialStorage::getFromPersistentStorage(), Credential::hasPassword(),
1239         and Credential::isEmpty().
1240
1241 2010-12-24  Yury Semikhatsky  <yurys@chromium.org>
1242
1243         Reviewed by Darin Adler.
1244
1245         [V8] Rename V8CustomEventListener.{h,cpp} to V8EventListener.{h,cpp}
1246         https://bugs.webkit.org/show_bug.cgi?id=51595
1247
1248         * WebCore.gypi:
1249         * bindings/v8/V8DOMWrapper.cpp:
1250         * bindings/v8/V8EventListener.cpp: Renamed from WebCore/bindings/v8/custom/V8CustomEventListener.cpp.
1251         (WebCore::V8EventListener::V8EventListener):
1252         (WebCore::V8EventListener::getListenerFunction):
1253         (WebCore::V8EventListener::callListenerFunction):
1254         * bindings/v8/V8EventListener.h: Renamed from WebCore/bindings/v8/custom/V8CustomEventListener.h.
1255         (WebCore::V8EventListener::create):
1256         * bindings/v8/V8EventListenerList.h:
1257         * bindings/v8/V8WorkerContextEventListener.h:
1258         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1259         * bindings/v8/custom/V8LocationCustom.cpp:
1260         * bindings/v8/custom/V8NodeCustom.cpp:
1261         * bindings/v8/custom/V8NotificationCenterCustom.cpp:
1262
1263 2010-12-24  Carlos Garcia Campos  <cgarcia@igalia.com>
1264
1265         Reviewed by Xan Lopez.
1266
1267         [GTK] Show current time / total in media player
1268         https://bugs.webkit.org/show_bug.cgi?id=51535
1269
1270         * css/mediaControlsGtk.css:
1271         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
1272         * platform/gtk/RenderThemeGtk.cpp:
1273         (WebCore::RenderThemeGtk::formatMediaControlsCurrentTime):
1274         (WebCore::RenderThemeGtk::paintMediaCurrentTime):
1275         * platform/gtk/RenderThemeGtk.h:
1276
1277 2010-12-24  Jan Erik Hanssen  <jhanssen@sencha.com>
1278
1279         Reviewed by Eric Seidel.
1280
1281         Clean up CSSRuleData in CSSStyleSelector.h
1282         https://bugs.webkit.org/show_bug.cgi?id=27753
1283
1284         Move CSSRuleData and CSSRuleDataList from CSSStyleSelector.h to the .cpp file.
1285
1286         * css/CSSStyleSelector.cpp:
1287         (WebCore::CSSRuleData::CSSRuleData):
1288         (WebCore::CSSRuleData::~CSSRuleData):
1289         (WebCore::CSSRuleData::position):
1290         (WebCore::CSSRuleData::rule):
1291         (WebCore::CSSRuleData::selector):
1292         (WebCore::CSSRuleData::next):
1293         (WebCore::CSSRuleDataList::CSSRuleDataList):
1294         (WebCore::CSSRuleDataList::~CSSRuleDataList):
1295         (WebCore::CSSRuleDataList::first):
1296         (WebCore::CSSRuleDataList::last):
1297         (WebCore::CSSRuleDataList::append):
1298         * css/CSSStyleSelector.h:
1299
1300 2010-12-24  Yury Semikhatsky  <yurys@chromium.org>
1301
1302         Unreviewed. Fix compilation on Windows.
1303
1304         * inspector/InspectorStyleSheet.cpp:
1305         (WebCore::InspectorStyle::~InspectorStyle): added explicit empty destructor
1306         * inspector/InspectorStyleSheet.h:
1307
1308 2010-12-24  Yury Semikhatsky  <yurys@chromium.org>
1309
1310         Reviewed by Darin Adler.
1311
1312         inspector/debugger-step-out.html crashing intermittently in the bots
1313         https://bugs.webkit.org/show_bug.cgi?id=50868
1314
1315         Use RefPtr rather instead of raw pointers when keeping references
1316         to refcounted objects.
1317
1318         * inspector/InspectorCSSAgent.cpp:
1319         (WebCore::InspectorCSSAgent::getStylesForNode2):
1320         (WebCore::InspectorCSSAgent::getComputedStyleForNode2):
1321         * inspector/InspectorStyleSheet.cpp:
1322         (WebCore::InspectorStyle::create):
1323         (WebCore::InspectorStyle::InspectorStyle):
1324         (WebCore::InspectorStyle::buildObjectForStyle):
1325         (WebCore::InspectorStyle::setPropertyText):
1326         (WebCore::InspectorStyle::toggleProperty):
1327         (WebCore::InspectorStyle::styleText):
1328         (WebCore::InspectorStyle::populateAllProperties):
1329         (WebCore::InspectorStyle::replacePropertyInStyleText):
1330         (WebCore::InspectorStyleSheet::create):
1331         (WebCore::InspectorStyleSheet::InspectorStyleSheet):
1332         (WebCore::InspectorStyleSheetForInlineStyle::create):
1333         (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
1334         (WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):
1335         * inspector/InspectorStyleSheet.h:
1336         (WebCore::InspectorStyle::cssStyle):
1337         (WebCore::InspectorStyleSheet::pageStyleSheet):
1338
1339 2010-12-24  Justin Schuh  <jschuh@chromium.org>
1340
1341         Reviewed by Nikolas Zimmermann.
1342
1343         SVGElementInstance::m_useElement should be cleared when use element is removed from document
1344         https://bugs.webkit.org/show_bug.cgi?id=51486
1345
1346         Test: svg/custom/use-instanceRoot-with-use-removed.svg
1347
1348         * svg/SVGElementInstance.cpp:
1349         (WebCore::SVGElementInstance::invalidateAllInstancesOfElement):
1350         * svg/SVGElementInstance.h:
1351         (WebCore::SVGElementInstance::clearUseElement):
1352         * svg/SVGUseElement.cpp:
1353         (WebCore::SVGUseElement::removedFromDocument):
1354         (WebCore::ShadowTreeUpdateBlocker::if):
1355         (WebCore::SVGUseElement::detachInstance):
1356         (WebCore::SVGUseElement::detach):
1357         * svg/SVGUseElement.h:
1358
1359 2010-12-23  Joseph Pecoraro  <joepeck@webkit.org>
1360
1361         Reviewed by Yury Semikhatsky.
1362
1363         Web Inspector: Missing Localized Strings
1364         https://bugs.webkit.org/show_bug.cgi?id=51542
1365
1366         Added missing strings: "WebSocket",  "Frames", "Text", "Transfer",
1367         "Preserve Log upon Navigation", and "Go to Line".
1368
1369         * English.lproj/localizedStrings.js:
1370
1371 2010-12-24  Alexander Pavlov  <apavlov@chromium.org>
1372
1373         Reviewed by Yury Semikhatsky.
1374
1375         Web Inspector: Inline HTML style property out of sync with element.style in Sidebar
1376         https://bugs.webkit.org/show_bug.cgi?id=51478
1377
1378         Now the element attribute modifications (including "style") are tracked, which results in the
1379         source offsets update (in the backend) and Styles/Metrics pane updates (in the frontend)
1380         on the "style" attribute modification through the Elements tree. Also, it appears that
1381         a complete "style" attribute removal destroys the inline style declaration
1382         (StyledElement::m_inlineStyleDecl), while the code used to rely on it being immutable (hence a crash).
1383
1384         Test: inspector/elements-delete-inline-style.html
1385
1386         * inspector/InspectorCSSAgent.cpp:
1387         (WebCore::InspectorCSSAgent::didModifyDOMAttr):
1388         * inspector/InspectorCSSAgent.h:
1389         * inspector/InspectorDOMAgent.cpp:
1390         (WebCore::InspectorDOMAgent::didModifyDOMAttr):
1391         * inspector/InspectorDOMAgent.h:
1392         * inspector/InspectorStyleSheet.cpp:
1393         (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
1394         (WebCore::InspectorStyleSheetForInlineStyle::didModifyElementAttribute):
1395         (WebCore::InspectorStyleSheetForInlineStyle::text):
1396         (WebCore::InspectorStyleSheetForInlineStyle::setStyleText):
1397         (WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):
1398         * inspector/InspectorStyleSheet.h:
1399         * inspector/front-end/ElementsTreeOutline.js:
1400         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted):
1401
1402 2010-12-24  Noel Gordon  <noel.gordon@gmail.com>
1403
1404         Reviewed by Andreas Kling.
1405
1406         [chromium] Fix a style nit in the JPEG encoder
1407         https://bugs.webkit.org/show_bug.cgi?id=51574
1408
1409         * platform/image-encoders/skia/JPEGImageEncoder.cpp: nit begone.
1410
1411 2010-12-23  Alexander Pavlov  <apavlov@chromium.org>
1412
1413         Reviewed by Maciej Stachowiak.
1414
1415         Web Inspector: CSS shorthand properties expand unnecessarily
1416         https://bugs.webkit.org/show_bug.cgi?id=36304
1417
1418         "border-radius" is a shorthand property that has a "non-standard" format and longhands, see
1419         http://www.w3.org/TR/css3-background/#border-radius for reference. CSSParser does not use the
1420         standard parseShorthand() or parse4Values() methods but instead a custom parseBorderRadius() method.
1421         This method didn't use to create a ShorthandScope instance and set the m_implicitShorthand value
1422         appropriately when adding implicit longhands, thus they were added as normal properties
1423         found in the CSS (neither implicit, nor longhands). This is now fixed.
1424
1425         * css/CSSParser.cpp:
1426         (WebCore::CSSParser::parseBorderRadius):
1427
1428 2010-12-24  Justin Schuh  <jschuh@chromium.org>
1429
1430         Reviewed by Darin Adler.
1431
1432         setTargetAttributeAnimatedValue should check for a null shadowTreeElement.
1433         https://bugs.webkit.org/show_bug.cgi?id=51576
1434
1435         Disallowed elements may be pruned from the shadow tree, leaving a null
1436         shadowTreeElement. We should check for that before setting attributes.
1437
1438         Test: svg/custom/animate-disallowed-use-element.svg
1439
1440         * svg/SVGAnimationElement.cpp:
1441         (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
1442
1443 2010-12-24  Evan Martin  <evan@chromium.org>
1444
1445         Reviewed by Darin Adler.
1446
1447         TextMetrics::width is an integer, but the member is a float
1448         https://bugs.webkit.org/show_bug.cgi?id=51566
1449
1450         Change the return type to a float.
1451
1452         No tests, fixing a compiler warning.
1453         (I was unable to produce a difference in the values exposed to pages
1454         with a float versus the previous conversion to an integer.)
1455
1456         * html/TextMetrics.h:
1457         (WebCore::TextMetrics::width):
1458
1459 2010-12-24  Ryuan Choi  <ryuan.choi@samsung.com>
1460
1461         Reviewed by Kenneth Rohde Christiansen.
1462
1463         [EFL] Add option to enable Touch Events.
1464         https://bugs.webkit.org/show_bug.cgi?id=49125
1465
1466         Add files for EFL to support TOUCH_EVENTS.
1467
1468         * CMakeLists.txt:
1469         * CMakeListsEfl.txt:
1470         * platform/PlatformTouchEvent.h: Add EFL related constructor.
1471         * platform/PlatformTouchPoint.h: ditto.
1472         * platform/efl/PlatformTouchEventEfl.cpp: Added.
1473         (WebCore::PlatformTouchEvent::PlatformTouchEvent):
1474         * platform/efl/PlatformTouchPointEfl.cpp: Added.
1475         (WebCore::PlatformTouchPoint::PlatformTouchPoint):
1476
1477 2010-12-24  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1478
1479         Reviewed by Kenneth Rohde Christiansen.
1480
1481         [EFL] Return an empty string instead of 'application/octet-stream' in getMIMETypeForExtension()
1482         https://bugs.webkit.org/show_bug.cgi?id=51457
1483
1484         WebKit EFL can't play html5 audio because of wrong mime type checking.
1485         So, 'application/octet-stream' is changed with an empty string.
1486
1487         * platform/efl/MIMETypeRegistryEfl.cpp:
1488         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
1489         Returns an empty string instead of application/octet-stream when it can't find proper mime type.
1490
1491 2010-12-24  Justin Schuh  <jschuh@chromium.org>
1492
1493         Reviewed by Darin Adler.
1494
1495         SVGFontFaceElement::rebuildFontFace() should exit when not in document
1496         https://bugs.webkit.org/show_bug.cgi?id=51571
1497
1498         We were hitting a NULL deref crash. Since most of the callers checked
1499         inDocument() anyway, I moved it into the start of rebuildFontFace.
1500
1501         Test: svg/custom/use-invalid-font-face.svg
1502
1503         * svg/SVGFontFaceElement.cpp:
1504         (WebCore::SVGFontFaceElement::parseMappedAttribute):
1505         (WebCore::SVGFontFaceElement::rebuildFontFace):
1506         (WebCore::SVGFontFaceElement::childrenChanged):
1507
1508 2010-12-24  Justin Schuh  <jschuh@chromium.org>
1509
1510         Reviewed by Darin Adler.
1511
1512         Remove unnecessary check in CSSCanvasValue::canvasDestroyed().
1513         https://bugs.webkit.org/show_bug.cgi?id=51564
1514
1515         This check was duplicating an ASSERT for a case fixed in r73927.
1516         Now that the bug is fixed the check is no longer necessary.
1517
1518         Removing dead code, so no new tests needed.
1519
1520         * css/CSSCanvasValue.cpp:
1521         (WebCore::CSSCanvasValue::canvasDestroyed):
1522
1523 2010-12-23  Evan Martin  <evan@chromium.org>
1524
1525         Reviewed by Darin Adler.
1526
1527         ViewportArguments.h uses an enum to intialize a bool
1528         https://bugs.webkit.org/show_bug.cgi?id=50982
1529
1530         Initialize userScalable to true, rather than -1.
1531         No tests; fixes a compiler warning.
1532
1533         * dom/ViewportArguments.h:
1534         (WebCore::ViewportArguments::ViewportArguments):
1535
1536 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
1537
1538         Reviewed by Adam Barth.
1539
1540         [Qt] User name/password stripped from URLs
1541         https://bugs.webkit.org/show_bug.cgi?id=36232
1542
1543         If a username but no password or no username but a password is present
1544         in a URL, QtWebKit won't send any authentication information down to Qt
1545         as it should.
1546
1547         Tests: http/tests/xmlhttprequest/basic-auth-nopassword.html
1548                http/tests/xmlhttprequest/basic-auth-nouser.html
1549
1550         * platform/network/qt/ResourceHandleQt.cpp:
1551         (WebCore::ResourceHandle::start):
1552         (WebCore::ResourceHandle::loadResourceSynchronously):
1553
1554 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
1555
1556         Reviewed by Darin Adler.
1557
1558         queryCommandValue("FormatBlock") does not respect editing boundaries
1559         https://bugs.webkit.org/show_bug.cgi?id=51219
1560
1561         Fixed the bug by checking the element we found in elementForFormatBlockCommand
1562         does not contain the editable root.
1563
1564         * editing/FormatBlockCommand.cpp:
1565         (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
1566
1567 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
1568
1569         Reviewed by Darin Adler.
1570
1571         FormatBlock doesn't preserve typing style but it should
1572         https://bugs.webkit.org/show_bug.cgi?id=51140
1573
1574         Fixed the bug by making preserveTypingStyle return true.
1575
1576         Test: editing/execCommand/format-block-typing-style.html
1577
1578         * editing/FormatBlockCommand.h:
1579         (WebCore::FormatBlockCommand::preservesTypingStyle):
1580
1581 2010-12-23  Jessie Berlin  <jberlin@apple.com>
1582
1583         Reviewed by Sam Weinig.
1584
1585         Need WebKit2 API to create a SecurityOrigin from protocol, host, and port
1586         https://bugs.webkit.org/show_bug.cgi?id=51563
1587
1588         Add SecurityOrigin::create(const String& protocol, const String& host, int port).
1589
1590         * WebCore.exp.in:
1591         Export the symbols for WebCore::SecurityOrigin::create(String, String, int).
1592
1593         * page/SecurityOrigin.cpp:
1594         (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
1595         Use the constant MaxAllowedPort.
1596         (WebCore::SecurityOrigin::create):
1597         Sanitizing based off of that done in createFromDatabaseIdentifier.
1598         * page/SecurityOrigin.h:
1599
1600 2010-12-23  Patrick Gansterer  <paroga@webkit.org>
1601
1602         Unreviewed build fix for WinCE after r73802.
1603
1604         Reapply r70812:
1605         Port ContextMenuItemWin.cpp to WinCE
1606         https://bugs.webkit.org/show_bug.cgi?id=48407
1607
1608         * platform/win/ContextMenuItemWin.cpp:
1609
1610 2010-12-23  Adam Barth  <abarth@webkit.org>
1611
1612         Remove include of non-existant file.
1613
1614         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1615
1616 2010-12-23  Ryosuke Niwa  <rniwa@webkit.org>
1617
1618         Reviewed by Darin Adler.
1619
1620         Selection becomes stale when CharacterData is manipulated directly
1621         https://bugs.webkit.org/show_bug.cgi?id=51389
1622
1623         The bug was caused by SelectionController's not adjusting selection when CharacterData's
1624         m_data is modified by its API.
1625
1626         Fixed the bug by adding textWillBeReplaced to SelectionController and calling it in
1627         CharacterData::textWillBeReplaced. Added newLength to setDataAndUpdate, which is passed to
1628         textWillBeReplaced because inserting, replacing, or removing data may require moving
1629         the offset of the selection end points (done by shouldRemovePositionAfterAdoptingTextReplacement).
1630
1631         Also fixed the condition for determining whether or not a node intersects the selection
1632         in respondToNodeModification, which is extracted from nodeWillBeRemoved. The old condition
1633         failed to recognize certain cases when selection started and ended with non-zero offsets.
1634
1635         Tests: editing/selection/character-data-mutation-crash.html
1636                editing/selection/character-data-mutation.html
1637
1638         * dom/CharacterData.cpp:
1639         (WebCore::CharacterData::setData): Passes newLegnth to setDataAndUpdate.
1640         (WebCore::CharacterData::appendData): Ditto.
1641         (WebCore::CharacterData::insertData): Ditto.
1642         (WebCore::CharacterData::deleteData): Ditto.
1643         (WebCore::CharacterData::replaceData): Ditto.
1644         (WebCore::CharacterData::setDataAndUpdate): Added newLegnth to the argument list,
1645         and renamed lengthOfReplacedData to oldLength; calls textWillBeReplaced.
1646         * dom/CharacterData.h:
1647         * editing/SelectionController.cpp:
1648         (WebCore::removingNodeRemovesPosition): Removed indentations from blank lines.
1649         (WebCore::SelectionController::nodeWillBeRemoved): Calls nodeWillBeRemoved.
1650         (WebCore::SelectionController::respondToNodeModification): Extracted from nodeWillBeRemoved;
1651         fixed the logic to figure out whether a node is inside the range or not.
1652         (WebCore::shouldRemovePositionAfterAdoptingTextReplacement): Added.
1653         (WebCore::SelectionController::textWillBeReplaced): Added.
1654         * editing/SelectionController.h:
1655
1656 2010-12-23  Adam Barth  <abarth@webkit.org>
1657
1658         Reviewed by Darin Adler.
1659
1660         Remove unneeded V8 bindings files
1661         https://bugs.webkit.org/show_bug.cgi?id=51570
1662
1663         * WebCore.gypi:
1664         * bindings/generic/BindingDOMWindow.h: Removed.
1665         * bindings/v8/specialization/V8BindingDOMWindow.h: Removed.
1666
1667 2010-12-23  Dan Bernstein  <mitz@apple.com>
1668
1669         Build fix.
1670
1671         * editing/EditorCommand.cpp:
1672         (WebCore::enabledDismissCorrectionPanel):
1673
1674 2010-12-23  Darin Adler  <darin@apple.com>
1675
1676         Try to fix crash seen on GTK bot.
1677
1678         * editing/EditorCommand.cpp:
1679         (WebCore::internalCommand): Add back empty string check I accidentally deleted in r74580.
1680
1681         * WebCore.xcodeproj/project.pbxproj: Let Xcode edit the file.
1682
1683 2010-12-23  Sheriff Bot  <webkit.review.bot@gmail.com>
1684
1685         Unreviewed, rolling out r74561.
1686         http://trac.webkit.org/changeset/74561
1687         https://bugs.webkit.org/show_bug.cgi?id=51565
1688
1689         "Broke Chromium UI tests on Vista" (Requested by kbr_google on
1690         #webkit).
1691
1692         * platform/graphics/chromium/ImageLayerChromium.cpp:
1693         (WebCore::ImageLayerChromium::updateContentsIfDirty):
1694         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
1695         (WebCore::GraphicsContext3D::getImageData):
1696
1697 2010-12-23  Mihai Parparita  <mihaip@chromium.org>
1698
1699         Reviewed by Kent Tamura.
1700
1701         [Chromium] Add WebThemeEngine for Mac to allow scrollbar rendering to be overridden for the DRT
1702         https://bugs.webkit.org/show_bug.cgi?id=51507
1703         
1704         Adds WebThemeEngine for the Mac (it already has parallel definitions for
1705         Windows and Linux) so that scrollbar thumb rendering can be overridden
1706         for the DRT (to be consistent with the NSScroller-based rendering
1707         used by the Mac port).
1708
1709         No new tests since the functionality is not exposed yet. Eventually will
1710         result in the Chromium/Mac port being able to use the same pixel
1711         baselines for layout tests as the Mac port.
1712
1713         * platform/chromium/ChromiumBridge.h:
1714         * platform/chromium/ScrollbarThemeChromiumMac.mm:
1715         (WebCore::scrollbarStateToThemeState):
1716         (WebCore::ScrollbarThemeChromiumMac::paint):
1717
1718 2010-12-23  Darin Adler  <darin@apple.com>
1719
1720         Reviewed by Sam Weinig.
1721
1722         WKView should not try to do asynchronous validation for selectors that are not editor commands
1723         https://bugs.webkit.org/show_bug.cgi?id=51555
1724
1725         * WebCore.exp.in: Added commandIsSupportedFromMenuOrKeyBinding.
1726         * editing/Editor.h: Reordered arguments in the Editor::Command constructor
1727         and the data members too so the frame is last. Added
1728         commandIsSupportedFromMenuOrKeyBinding.
1729
1730         * editing/EditorCommand.cpp:
1731         (WebCore::supported): Removed the EditorCommandSource argument. These
1732         functions are now only used when called from DOM.
1733         (WebCore::supportedFromMenuOrKeyBinding): Ditto.
1734         (WebCore::supportedCopyCut): Ditto.
1735         (WebCore::supportedPaste): Ditto.
1736         (WebCore::enabledDismissCorrectionPanel): Changed the supported function to
1737         an enabled function. It was incorrect to say that this is "supported" only
1738         when the correction panel is up. Correct to say that it is "enabled" only
1739         then. And also probably OK to enable it even when the selection is not in
1740         editable text, as long as the panel is up.
1741         (WebCore::createCommandMap): Moved conditional commands out of the main
1742         array into a separate section at the end.
1743         (WebCore::internalCommand): Added.
1744         (WebCore::Editor::command): Changed to use the new internalCommand function
1745         and simplified by relying on the null check in the Command constructor.
1746         (WebCore::Editor::commandIsSupportedFromMenuOrKeyBinding): Added.
1747         (WebCore::Editor::Command::Command): Removed unneeded initialization of
1748         m_source, which is never looked at if m_command is 0. Added feature of
1749         passing a null command pointer to the non-default constructor.
1750         (WebCore::Editor::Command::isSupported): Changed to only call the
1751         per-command isSupported function when the command source is DOM.
1752         Accordingly that function is now called isSupportedFromDOM.
1753
1754 2010-12-23  Matthew Delaney  <mdelaney@apple.com>
1755
1756         Reviewed by Simon Fraser.
1757
1758         Incorrect layer property used noted as changed in GraphicsLayerCA::setAcceleratesDrawing
1759         https://bugs.webkit.org/show_bug.cgi?id=51560
1760
1761         No new tests.
1762
1763         * platform/graphics/ca/GraphicsLayerCA.cpp:
1764         (WebCore::GraphicsLayerCA::setAcceleratesDrawing):
1765
1766 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
1767
1768         Reviewed by Andreas Kling.
1769
1770         [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
1771         https://bugs.webkit.org/show_bug.cgi?id=35635
1772
1773         Explicitly set text/html data on QClipboard as UTF-8 and also include a <meta>
1774         tag informing the OS that the data is in UTF-8 format.
1775
1776         * platform/qt/PasteboardQt.cpp:
1777         (WebCore::Pasteboard::writeSelection):
1778
1779 2010-12-23  Justin Schuh  <jschuh@chromium.org>
1780
1781         Reviewed by Eric Seidel.
1782
1783         CSSCursorImageValue destructor should clear referenced element.
1784         https://bugs.webkit.org/show_bug.cgi?id=51417
1785
1786         Calls correct method to clear image and renames method to avoid future confusion.
1787
1788         Test: svg/css/cursor-image-replace.svg
1789
1790         * css/CSSCursorImageValue.cpp:
1791         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
1792         * svg/SVGElement.cpp:
1793         (WebCore::SVGElement::cursorImageValueRemoved):
1794         * svg/SVGElement.h:
1795
1796 2010-12-22  Sam Weinig  <sam@webkit.org>
1797
1798         Reviewed by Darin Adler.
1799
1800         WebKit2 needs to mirror the frame tree in the UIProcess
1801         https://bugs.webkit.org/show_bug.cgi?id=51546
1802
1803         - Add client functions to notify that a frame has been added or
1804           removed from the page cache.
1805
1806         * history/CachedFrame.cpp:
1807         (WebCore::CachedFrameBase::restore):
1808         (WebCore::CachedFrame::CachedFrame):
1809         * history/CachedFrame.h:
1810         * loader/EmptyClients.h:
1811         (WebCore::EmptyFrameLoaderClient::didSaveToPageCache):
1812         (WebCore::EmptyFrameLoaderClient::didRestoreFromPageCache):
1813         * loader/FrameLoaderClient.h:
1814
1815 2010-12-22  Matthew Delaney  <mdelaney@apple.com>
1816
1817         Reviewed by Simon Fraser.
1818
1819         Add setNeedsStyleRecalc for getting canvas contexts that use IOSurfaces
1820         This patch also changes USE_IOSURFACE to instead follow USE(IOSURFACE)
1821         https://bugs.webkit.org/show_bug.cgi?id=51279
1822
1823         * html/HTMLCanvasElement.cpp: For IOSurface, use setNeedsStyleRecalc
1824         * html/canvas/CanvasRenderingContext2D.cpp: Use new flag
1825         * platform/graphics/ImageBuffer.h: Use new flag
1826         * platform/graphics/cg/ImageBufferCG.cpp: Use new flag
1827
1828 2010-12-20  Adrienne Walker  <enne@google.com>
1829
1830         Reviewed by Kenneth Russell.
1831
1832         [chromium] Tile root layer of the compositor.
1833         https://bugs.webkit.org/show_bug.cgi?id=49947
1834
1835         Refactor root layer update and drawing from LayerRendererChromium into
1836         LayerTilerChromium.  The root layer is now drawn as multiple tiles
1837         rather than as one single large texture.  Scrollbars are now drawn
1838         separately rather than as part of the root layer.
1839
1840         Test: LayoutTests/compositing/
1841
1842         * WebCore.gypi:
1843         * page/FrameView.cpp:
1844         (WebCore::FrameView::repaintContentRectangle):
1845         * platform/ScrollView.cpp:
1846         (WebCore::ScrollView::ScrollView):
1847         (WebCore::ScrollView::setClipsRepaints):
1848         * platform/ScrollView.h:
1849         (WebCore::ScrollView::clipsRepaints):
1850         * platform/graphics/chromium/LayerChromium.h:
1851         * platform/graphics/chromium/LayerRendererChromium.cpp:
1852         (WebCore::LayerRendererChromium::LayerRendererChromium):
1853         (WebCore::LayerRendererChromium::~LayerRendererChromium):
1854         (WebCore::LayerRendererChromium::useShader):
1855         (WebCore::LayerRendererChromium::verticalScrollbarRect):
1856         (WebCore::LayerRendererChromium::horizontalScrollbarRect):
1857         (WebCore::LayerRendererChromium::invalidateRootLayerRect):
1858         (WebCore::LayerRendererChromium::updateAndDrawRootLayer):
1859         (WebCore::LayerRendererChromium::drawLayers):
1860         (WebCore::LayerRendererChromium::setRootLayer):
1861         (WebCore::LayerRendererChromium::initializeSharedObjects):
1862         (WebCore::LayerRendererChromium::cleanupSharedObjects):
1863         * platform/graphics/chromium/LayerRendererChromium.h:
1864         * platform/graphics/chromium/LayerTilerChromium.cpp: Added.
1865         (WebCore::LayerTilerChromium::create):
1866         (WebCore::LayerTilerChromium::LayerTilerChromium):
1867         (WebCore::LayerTilerChromium::~LayerTilerChromium):
1868         (WebCore::LayerTilerChromium::layerRendererContext):
1869         (WebCore::LayerTilerChromium::setTileSize):
1870         (WebCore::LayerTilerChromium::reset):
1871         (WebCore::LayerTilerChromium::createTile):
1872         (WebCore::LayerTilerChromium::invalidateTiles):
1873         (WebCore::LayerTilerChromium::contentRectToTileIndices):
1874         (WebCore::LayerTilerChromium::contentRectToLayerRect):
1875         (WebCore::LayerTilerChromium::layerRectToContentRect):
1876         (WebCore::LayerTilerChromium::tileIndex):
1877         (WebCore::LayerTilerChromium::tileContentRect):
1878         (WebCore::LayerTilerChromium::tileLayerRect):
1879         (WebCore::LayerTilerChromium::invalidateRect):
1880         (WebCore::LayerTilerChromium::invalidateEntireLayer):
1881         (WebCore::LayerTilerChromium::update):
1882         (WebCore::LayerTilerChromium::setLayerPosition):
1883         (WebCore::LayerTilerChromium::draw):
1884         (WebCore::LayerTilerChromium::resizeLayer):
1885         (WebCore::LayerTilerChromium::growLayerToContain):
1886         (WebCore::LayerTilerChromium::Tile::~Tile):
1887         (WebCore::LayerTilerChromium::Tile::releaseTextureId):
1888         * platform/graphics/chromium/LayerTilerChromium.h: Added.
1889         (WebCore::LayerTilerChromium::Tile::Tile):
1890         (WebCore::LayerTilerChromium::Tile::textureId):
1891         (WebCore::LayerTilerChromium::Tile::dirty):
1892         (WebCore::LayerTilerChromium::Tile::clearDirty):
1893         (WebCore::LayerTilerChromium::layerRenderer):
1894
1895 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
1896
1897         Reviewed by Eric Seidel.
1898
1899         Editor.h doesn't need to include SelectionController.h
1900         https://bugs.webkit.org/show_bug.cgi?id=51441
1901
1902         Removed #include <Selection.h> from Editor.h.
1903         Also extracted WritingDirection.h from EditingStyle.h and renamed SelectionController::EDirection
1904         to SelectionDirection and moved its declaration from SelectionController.h to VisibleSelection.h
1905
1906         * WebCore.exp.in: Signature changes.
1907         * WebCore.xcodeproj/project.pbxproj: Added WritingDirection.h
1908         * accessibility/AccessibilityRenderObject.cpp:
1909         (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine): Change due to SelectionDirection.
1910         * editing/EditingStyle.h: Removed WritingDirection and included WritingDirection.h
1911         * editing/Editor.cpp:
1912         (WebCore::Editor::deleteWithDirection): Change due to SelectionDirection.
1913         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
1914         (WebCore::Editor::markMisspellingsAfterTypingToWord): Ditto.
1915         * editing/Editor.h: Removed SelectionController.h; added DocumentMarker.h, Timer.h, VisibleSelection.h
1916         and WritingDirection.h; forward declared CSSMutableStyleDeclaration.
1917         * editing/EditorCommand.cpp:
1918         (WebCore::executeDeleteBackward): Change due to SelectionDirection.
1919         (WebCore::executeDeleteBackwardByDecomposingPreviousCharacter): Ditto.
1920         (WebCore::executeDeleteForward): Ditto.
1921         (WebCore::executeDeleteToBeginningOfLine): Ditto.
1922         (WebCore::executeDeleteToBeginningOfParagraph): Ditto.
1923         (WebCore::executeDeleteToEndOfLine): Ditto.
1924         (WebCore::executeDeleteToEndOfParagraph): Ditto.
1925         (WebCore::executeDeleteWordBackward): Ditto.
1926         (WebCore::executeDeleteWordForward): Ditto.
1927         (WebCore::executeForwardDelete): Ditto.
1928         (WebCore::executeMoveBackward): Ditto.
1929         (WebCore::executeMoveBackwardAndModifySelection): Ditto.
1930         (WebCore::executeMoveDown): Ditto.
1931         (WebCore::executeMoveDownAndModifySelection): Ditto.
1932         (WebCore::executeMoveForward): Ditto.
1933         (WebCore::executeMoveForwardAndModifySelection): Ditto.
1934         (WebCore::executeMoveLeft): Ditto.
1935         (WebCore::executeMoveLeftAndModifySelection): Ditto.
1936         (WebCore::executeMoveRight): Ditto.
1937         (WebCore::executeMoveRightAndModifySelection): Ditto.
1938         (WebCore::executeMoveToBeginningOfDocument): Ditto.
1939         (WebCore::executeMoveToBeginningOfDocumentAndModifySelection): Ditto.
1940         (WebCore::executeMoveToBeginningOfLine): Ditto.
1941         (WebCore::executeMoveToBeginningOfLineAndModifySelection): Ditto.
1942         (WebCore::executeMoveToBeginningOfParagraph): Ditto.
1943         (WebCore::executeMoveToBeginningOfParagraphAndModifySelection): Ditto.
1944         (WebCore::executeMoveToBeginningOfSentence): Ditto.
1945         (WebCore::executeMoveToBeginningOfSentenceAndModifySelection): Ditto.
1946         (WebCore::executeMoveToEndOfDocument): Ditto.
1947         (WebCore::executeMoveToEndOfDocumentAndModifySelection): Ditto.
1948         (WebCore::executeMoveToEndOfSentence): Ditto.
1949         (WebCore::executeMoveToEndOfSentenceAndModifySelection): Ditto.
1950         (WebCore::executeMoveToEndOfLine): Ditto.
1951         (WebCore::executeMoveToEndOfLineAndModifySelection): Ditto.
1952         (WebCore::executeMoveToEndOfParagraph): Ditto.
1953         (WebCore::executeMoveToEndOfParagraphAndModifySelection): Ditto.
1954         (WebCore::executeMoveParagraphBackwardAndModifySelection): Ditto.
1955         (WebCore::executeMoveParagraphForwardAndModifySelection): Ditto.
1956         (WebCore::executeMoveUp): Ditto.
1957         (WebCore::executeMoveUpAndModifySelection): Ditto.
1958         (WebCore::executeMoveWordBackward): Ditto.
1959         (WebCore::executeMoveWordBackwardAndModifySelection): Ditto.
1960         (WebCore::executeMoveWordForward): Ditto.
1961         (WebCore::executeMoveWordForwardAndModifySelection): Ditto.
1962         (WebCore::executeMoveWordLeft): Ditto.
1963         (WebCore::executeMoveWordLeftAndModifySelection): Ditto.
1964         (WebCore::executeMoveWordRight): Ditto.
1965         (WebCore::executeMoveWordRightAndModifySelection): Ditto.
1966         (WebCore::executeMoveToLeftEndOfLine): Ditto.
1967         (WebCore::executeMoveToLeftEndOfLineAndModifySelection): Ditto.
1968         (WebCore::executeMoveToRightEndOfLine): Ditto.
1969         (WebCore::executeMoveToRightEndOfLineAndModifySelection): Ditto.
1970         * editing/SelectionController.cpp:
1971         (WebCore::SelectionController::willBeModified): Takes SelectionDirection instead of EDirection.
1972         (WebCore::SelectionController::modify): Ditto.
1973         * editing/SelectionController.h: Change due to SelectionDirection.
1974         * editing/TypingCommand.cpp:
1975         (WebCore::TypingCommand::deleteKeyPressed): Ditto.
1976         (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
1977         * editing/VisibleSelection.h: Added SelectionDirection, renamed and moved from EDirection
1978         in SelectionController.h
1979         * editing/WritingDirection.h: Added.
1980         * page/DOMSelection.cpp:
1981         (WebCore::DOMSelection::modify): Change due to SelectionDirection.
1982         (WebCore::DOMSelection::deleteFromDocument): Ditto.
1983         * page/EventHandler.cpp:
1984         (WebCore::EventHandler::handleKeyboardSelectionMovement): Ditto.
1985         * page/Frame.h: Includes SelectionController.h.
1986
1987 2010-12-23  Adam Barth  <abarth@webkit.org>
1988
1989         Reviewed by Darin Adler.
1990
1991         Move V8 to WebCore's implementation of showModalDialog
1992         https://bugs.webkit.org/show_bug.cgi?id=51527
1993
1994         This code is basically verbatim translation from the JavaScriptCore
1995         bindings.  The only intentional difference is in the world selection
1996         for the dialog's frame.  I suspect JavaScriptCore's bindings have a
1997         subtle bug there.
1998
1999         In this patch, I also remove a bunch of now-unneeded code in the
2000         generic bindings.
2001
2002         * bindings/generic/BindingDOMWindow.h:
2003         * bindings/js/JSDOMWindowCustom.cpp:
2004         (WebCore::DialogHandler::dialogCreated):
2005         (WebCore::setUpDialog):
2006         * bindings/v8/custom/V8DOMWindowCustom.cpp:
2007         (WebCore::DialogHandler::DialogHandler):
2008         (WebCore::DialogHandler::dialogCreated):
2009         (WebCore::DialogHandler::returnValue):
2010         (WebCore::setUpDialog):
2011         (WebCore::V8DOMWindow::showModalDialogCallback):
2012         (WebCore::V8DOMWindow::openCallback):
2013         * bindings/v8/specialization/V8BindingDOMWindow.h:
2014
2015 2010-12-23  Alexander Pavlov  <apavlov@chromium.org>
2016
2017         Reviewed by Joseph Pecoraro.
2018
2019         Web Inspector: Can't backspace from CSS value to CSS key field
2020         https://bugs.webkit.org/show_bug.cgi?id=51476
2021
2022         * inspector/front-end/StylesSidebarPane.js:
2023         (WebInspector.StylePropertyTreeElement.prototype.):
2024         (WebInspector.StylePropertyTreeElement.prototype):
2025
2026 2010-12-23  W. James MacLean  <wjmaclean@chromium.org>
2027
2028         Reviewed by Kenneth Russell.
2029
2030         [chromium] Add asserts to test for contiguous-pixel Skia bitmaps.
2031         https://bugs.webkit.org/show_bug.cgi?id=51186
2032
2033         No new tests. Behaviour not changed, but need the asserts to detect when assumptions violated.
2034
2035         * platform/graphics/chromium/ImageLayerChromium.cpp:
2036         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2037         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2038         (WebCore::GraphicsContext3D::getImageData):
2039
2040 2010-12-23  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
2041
2042         Reviewed by Kenneth Rohde Christiansen.
2043
2044         Fix check by undefined macro
2045         https://bugs.webkit.org/show_bug.cgi?id=51531
2046
2047         Fix check by undefined macro
2048
2049         When building EFL port with libsoup, BUILDING_GTK__ is not defined,
2050         leading to warnings during compile. We actually have to use an #ifdef
2051         instead of an #if.
2052
2053         No change in functionality so no new tests.
2054
2055         * platform/network/soup/cache/webkit/soup-cache.h:
2056
2057 2010-12-23  Jonathan Dixon  <joth@chromium.org>
2058
2059         Reviewed by Steve Block.
2060
2061         TouchEvents does not support multi-touch on a page with multiple touch targets
2062         https://bugs.webkit.org/show_bug.cgi?id=51258
2063
2064         Test: fast/events/touch/multi-touch-grouped-targets.html
2065
2066         * page/EventHandler.cpp:
2067         (WebCore::eventNameForTouchPointState):
2068         (WebCore::EventHandler::handleTouchEvent):
2069         Redesigned event handler to ensure all event targets involved in a given
2070         multitouch event get the appropriate event(s) fired.
2071
2072         * platform/PlatformTouchPoint.h: Added end-stop marker for State enum.
2073
2074 2010-12-23  Philippe Normand  <pnormand@igalia.com>
2075
2076         Reviewed by Xan Lopez.
2077
2078         [GTK] media/audio-data-url.html fails since r75504
2079         https://bugs.webkit.org/show_bug.cgi?id=51525
2080
2081         Make the GStreamer media-player advertize 3gpp mime-types as
2082         supported if the 3gp caps are in the typefind factories.
2083
2084         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2085         (WebCore::mimeTypeCache):
2086
2087 2010-12-23  Kent Tamura  <tkent@chromium.org>
2088
2089         Reviewed by Dimitri Glazkov.
2090
2091         Refactor HTMLInputElement: Move a part of HTMLInputElement::defaultEventHandler()
2092         to InputTypes.
2093         https://bugs.webkit.org/show_bug.cgi?id=51093
2094
2095         Move BeforeTextInserted and Wheel event handling, event forwarding to
2096         renderers, and the isindex form submission quirk code to InputTypes.
2097         Also, change the return types of InputType event handlers from 'bool'
2098         to 'void'. We use Event::defaultHandled() to decide whether event
2099         handling should be stopped.
2100
2101         No new tests because this is just a refactoring.
2102
2103         * html/BaseButtonInputType.cpp: bool->void changes
2104         (WebCore::BaseButtonInputType::handleKeydownEvent):
2105         (WebCore::BaseButtonInputType::handleKeypressEvent):
2106         (WebCore::BaseButtonInputType::handleKeyupEvent):
2107         * html/BaseButtonInputType.h: ditto.
2108         * html/BaseCheckableInputType.cpp: ditto.
2109         (WebCore::BaseCheckableInputType::handleKeydownEvent):
2110         (WebCore::BaseCheckableInputType::handleKeypressEvent):
2111         * html/BaseCheckableInputType.h: ditto.
2112         * html/BaseDateAndTimeInputType.cpp:
2113         (WebCore::BaseDateAndTimeInputType::handleKeydownEvent): ditto.
2114         (WebCore::BaseDateAndTimeInputType::handleWheelEvent): Just calls handleWheelEventForSpinButton().
2115         * html/BaseDateAndTimeInputType.h: bool->void change and handleWhellEvent() addition.
2116         * html/CheckboxInputType.cpp: bool->void change
2117         (WebCore::CheckboxInputType::handleKeyupEvent):
2118         * html/CheckboxInputType.h: ditto.
2119         * html/FileInputType.cpp: ditto.
2120         (WebCore::FileInputType::handleDOMActivateEvent):
2121         * html/FileInputType.h: ditto.
2122         * html/HTMLInputElement.cpp:
2123         (WebCore::HTMLInputElement::defaultEventHandler):
2124          - Change return-value handling of InputType event handlers
2125          - Move out beforeTextInserted/wheel event handling and isindex form quirk.
2126         * html/HTMLInputElement.h:
2127         (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent):
2128          Added so that InputType can call InputElement::handleBeforeTextInsertedEvent().
2129         * html/ImageInputType.cpp: bool->void change
2130         (WebCore::ImageInputType::handleDOMActivateEvent):
2131         * html/ImageInputType.h: ditto.
2132         * html/InputType.cpp: ditto.
2133         (WebCore::InputType::handleClickEvent):
2134         (WebCore::InputType::handleDOMActivateEvent):
2135         (WebCore::InputType::handleKeydownEvent):
2136         (WebCore::InputType::handleKeypressEvent):
2137         (WebCore::InputType::handleKeyupEvent):
2138         (WebCore::InputType::handleBeforeTextInsertedEvent):
2139         (WebCore::InputType::handleWheelEvent): Added default implementation.
2140         (WebCore::InputType::forwardEvent): ditto.
2141         (WebCore::InputType::formForSubmission): ditto.
2142         * html/InputType.h:
2143         * html/IsIndexInputType.cpp:
2144         (WebCore::IsIndexInputType::formForSubmission): Moved from HTMLInputElement.cpp.
2145         * html/IsIndexInputType.h:
2146         * html/NumberInputType.cpp:
2147         (WebCore::isNumberCharacter): Moved from HTMLInputElement.cpp.
2148         (WebCore::NumberInputType::handleKeydownEvent): bool->void change.
2149         (WebCore::NumberInputType::handleBeforeTextInsertedEvent): Moved from HTMInputElement.cpp.
2150         (WebCore::NumberInputType::handleWheelEvent): Added. Just calls handleWheelEventForSpinButton().
2151         * html/NumberInputType.h:
2152         * html/RadioInputType.cpp: bool->void changes.
2153         (WebCore::RadioInputType::handleClickEvent):
2154         (WebCore::RadioInputType::handleKeydownEvent):
2155         (WebCore::RadioInputType::handleKeyupEvent):
2156         * html/RadioInputType.h:
2157         * html/RangeInputType.cpp:
2158         (WebCore::RangeInputType::handleKeydownEvent): ditto.
2159         (WebCore::RangeInputType::forwardEvent): Moved from HTMLInputElement.cpp.
2160         * html/RangeInputType.h:
2161         * html/ResetInputType.cpp: bool->void change.
2162         (WebCore::ResetInputType::handleDOMActivateEvent):
2163         * html/ResetInputType.h: ditto.
2164         * html/SubmitInputType.cpp: ditto.
2165         (WebCore::SubmitInputType::handleDOMActivateEvent):
2166         * html/SubmitInputType.h: ditto.
2167         * html/TextFieldInputType.cpp:
2168         (WebCore::TextFieldInputType::handleKeydownEvent): bool->void change.
2169         (WebCore::TextFieldInputType::handleKeydownEventForSpinButton): ditto.
2170         (WebCore::TextFieldInputType::handleWheelEventForSpinButton): Moved from HTMLInputElement.cpp.
2171         (WebCore::TextFieldInputType::forwardEvent): ditto.
2172         * html/TextFieldInputType.h:
2173
2174 2010-12-23  Alexander Pavlov  <apavlov@chromium.org>
2175
2176         Reviewed by Joseph Pecoraro.
2177
2178         Web Inspector: After scrolling new property value and cancelling, removed property remains active in page style
2179         https://bugs.webkit.org/show_bug.cgi?id=51390
2180
2181         * inspector/front-end/StylesSidebarPane.js:
2182         (WebInspector.StylePropertyTreeElement.prototype):
2183
2184 2010-12-23  Noel Gordon  <noel.gordon@gmail.com>
2185
2186         Reviewed by Adam Barth.
2187
2188         [chromium] Reduce canvas.toDataURL("image/png") run-time costs 300%
2189         https://bugs.webkit.org/show_bug.cgi?id=51455
2190
2191         Chromium uses the libpng compression defaults.  Good compression results,
2192         but at much larger run-time cost compared to other browsers.  Chrome is 2
2193         times slower than Mozilla 3.6.12 and 3-4 times slower than Safari 5.0.3.
2194
2195         libpng has supported alternative compression methods for some time, they
2196         better meet the dual goals of good compression and run-time cost for the
2197         on-line case, and are well-documented.  Here use Huffman encoding.  It's
2198         2-20% faster than other encodings (Z_RLE, Z_FILTERED) and the compressed
2199         size is within 1% of the Safari 5.0.3 result independent of image size.
2200
2201         No change in behaviour, so no new tests.
2202
2203         * platform/image-encoders/skia/PNGImageEncoder.cpp:
2204         (WebCore::PNGImageEncoder::encode): Apply Huffman image encoding.
2205
2206 2010-12-22  Noel Gordon  <noel.gordon@gmail.com>
2207
2208         Reviewed by Darin Fisher.
2209
2210         [chromium] Optimize canvas.toDataURL("image/png") unpremultiplication loop
2211         https://bugs.webkit.org/show_bug.cgi?id=51321
2212
2213         Follow on from r73890, unroll the SkUnPreMultiply::PMColorToColor() call for
2214         the "image/png" encoder case viz., compute the unpremultiplication in-place.
2215         See https://bugs.webkit.org/show_bug.cgi?id=50804 for reference.
2216
2217         No new tests: canvas.toDataURL() is covered by existing tests.
2218
2219         * platform/image-encoders/skia/PNGImageEncoder.cpp:
2220         (WebCore::preMultipliedBGRAtoRGBA):
2221
2222 2010-12-22  Ariya Hidayat  <ariya@sencha.com>
2223
2224         Reviewed by Simon Fraser.
2225
2226         Implement skewX() and skewY() for CSSMatrix.
2227         https://bugs.webkit.org/show_bug.cgi?id=38335
2228
2229         * css/WebKitCSSMatrix.cpp:
2230         (WebCore::WebKitCSSMatrix::skew): Implemented skewX() and skewY().
2231         * css/WebKitCSSMatrix.h: Added skewX() and skewY().
2232         * css/WebKitCSSMatrix.idl: Added skewX() and skewY().
2233
2234 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
2235
2236         Reviewed by Dan Bernstein.
2237
2238         Support unprefixed box-shadow property
2239         https://bugs.webkit.org/show_bug.cgi?id=51448
2240         
2241         Add support for the box-shadow CSS property. We'll currently render this
2242         similarly to -webkit-box-shadow, but a later fix will adjust the blur radius
2243         handling to match the spec.
2244
2245         Test: fast/css/box-shadow.html
2246
2247         * css/CSSComputedStyleDeclaration.cpp:
2248         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Implement getComputedStyle
2249         for box-shadow
2250         
2251         * css/CSSParser.cpp:
2252         (WebCore::CSSParser::parseValue):
2253         (WebCore::ShadowParseContext::ShadowParseContext):
2254         (WebCore::ShadowParseContext::commitValue):
2255         (WebCore::ShadowParseContext::commitLength):
2256         (WebCore::ShadowParseContext::commitColor): Support CSSPropertyBoxShadow
2257
2258         * css/CSSPropertyNames.in: add box-shadow
2259
2260         * css/CSSStyleSelector.cpp:
2261         (WebCore::CSSStyleSelector::applyProperty): Add CSSPropertyBoxShadow, and
2262         store in the ShadowData if this is -webkit-box-shadow or not. We'll use this
2263         to adjust radii later.
2264
2265         * css/SVGCSSStyleSelector.cpp:
2266         (WebCore::CSSStyleSelector::applySVGProperty): Add CSSPropertyBoxShadow.
2267         
2268         * page/animation/AnimationBase.cpp:
2269         (WebCore::blendFunc):
2270         (WebCore::PropertyWrapperShadow::blend):
2271         (WebCore::AnimationBase::ensurePropertyMap): Support animations of box-shadow.
2272         
2273         * rendering/style/ShadowData.cpp: Store a flag to say if this is a -webkit-box-shadow.
2274         (WebCore::ShadowData::ShadowData):
2275         (WebCore::ShadowData::operator==):
2276         * rendering/style/ShadowData.h:
2277         (WebCore::ShadowData::ShadowData):
2278         (WebCore::ShadowData::isWebkitBoxShadow):
2279
2280 2010-12-22  Michael Saboff  <msaboff@apple.com>
2281
2282         Reviewed by Sam Weinig.
2283
2284         REGRESSION: Can't shadow/overwrite window.constructor 
2285         (causes TypeError exception)
2286         https://bugs.webkit.org/show_bug.cgi?id=48953
2287
2288         Added code in the javascript code generator to create a setter for
2289         a constructor if the new extended attribute ReplaceableConstructor
2290         is present for the interface.
2291
2292         * bindings/scripts/CodeGeneratorJS.pm:
2293         * page/DOMWindow.idl:
2294
2295 2010-12-22  Steve Lacey  <sjl@chromium.org>
2296
2297         Reviewed by David Levin.
2298
2299         Change css for chromium media controls to deal with the timeline
2300         not expanding when the current time disappears. This happens when
2301         the width of the control drops below 240px.
2302
2303         This change results in a minor pixel difference - the timebar now
2304         aligns better with the time and when the time is not displayed is
2305         now perfectly centered. Disabling the affected tests for now
2306         and will rebaseline.
2307
2308         https://bugs.webkit.org/show_bug.cgi?id=51500
2309
2310         * css/mediaControlsChromium.css:
2311         (audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
2312         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
2313         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
2314         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
2315
2316 2010-12-22  Mihai Parparita  <mihaip@chromium.org>
2317
2318         Reviewed by Simon Fraser.
2319
2320         the shadow direction is negated in canvas context shadowOffsetY.
2321         https://bugs.webkit.org/show_bug.cgi?id=25619
2322         
2323         Invert shadow offset Y direction in 0-blur path in FontMac::drawGlyps
2324         if we're not transforming shadows (i.e. are rendering in a canvas). Also
2325         use CG shadows if there's a non-translate/flip transform applied
2326         (shadow offsets are supposed to ignore transforms, but the naive/simple
2327         implementation was taking them into account).
2328         
2329         Also does the equivalent changes to FontCGWin.
2330
2331         Test: fast/canvas/fillText-shadow.html
2332
2333         * platform/graphics/GraphicsContext.cpp:
2334         (WebCore::GraphicsContext::shadowsIgnoreTransforms):
2335         * platform/graphics/GraphicsContext.h:
2336         * platform/graphics/mac/FontMac.mm:
2337         (WebCore::Font::drawGlyphs):
2338         * platform/graphics/win/FontCGWin.cpp:
2339         (WebCore::Font::drawGlyphs):
2340
2341 2010-12-22  Sheriff Bot  <webkit.review.bot@gmail.com>
2342
2343         Unreviewed, rolling out r74503.
2344         http://trac.webkit.org/changeset/74503
2345         https://bugs.webkit.org/show_bug.cgi?id=51513
2346
2347         breaks chromium mac debug compile (Requested by tonyg-cr on
2348         #webkit).
2349
2350         * platform/graphics/chromium/ImageLayerChromium.cpp:
2351         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2352         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2353         (WebCore::GraphicsContext3D::getImageData):
2354
2355 2010-12-22  Dan Bernstein  <mitz@apple.com>
2356
2357         Reviewed by Darin Adler.
2358
2359         Replace runtime checks for hyphenation API availability with compile-time checks.
2360
2361         * platform/text/cf/HyphenationCF.cpp:
2362         (WebCore::::createValueForNullKey): Changed to use CFLocaleCopyCurrent() instead of using the
2363         search locale, which is empty on Windows. On Mac, this is equivalent to using the search locale.
2364         (WebCore::canHyphenate): Added this implementation for when the hyphenation API is not available.
2365         It is identical to the implementation in Hyphenation.cpp.
2366         (WebCore::lastHyphenLocation): Ditto.
2367
2368 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
2369
2370         Reviewed by Darin Adler.
2371
2372         Cache snapshots of plug-ins before painting, to avoid script running during painting
2373         https://bugs.webkit.org/show_bug.cgi?id=51493
2374         
2375         When FrameView is asked to do a flattening paint (e.g. when Safari snapshots,
2376         or when printing), plug-ins which otherwise use the CA rendering model
2377         are sent a paint event. Some plug-ins may run script while handling this event,
2378         or out of process plug-ins may process queued requests at this time. Running
2379         script while inside layout or painting can have bad consequences, because it
2380         can result in arbitrary changes to the render tree.
2381         
2382         This patch avoids sending plug-ins paint events inside of painting. Instead,
2383         we ask the plug-ins to cache a snapshot before we paint, and then the software
2384         paint simply draws that snapshot.
2385         
2386         Requires manual test, because the bug happens when Safari does
2387         a page snapshot. It's not possible to tell the Test Netscape Plug-in
2388         to paint without laying out, making an automated test impossible.
2389
2390         * manual-tests/plugins/plugin-paint-causes-layout.html: Added.
2391
2392         * page/FrameView.h:
2393         * page/FrameView.cpp:
2394         (WebCore::FrameView::paintContents): Notify all enclosed widgets
2395         that a flattening paint is going to happen.
2396         (WebCore::FrameView::notifyWidgetsInAllFrames): Utility method 
2397         that tells the RenderView in all subframes to notify their widgets.
2398
2399         * platform/Widget.h:
2400         (WebCore::Widget::notifyWidget): Generic method that can be used
2401         to send messages to widgets. Current messages are just 'before flattening paint'
2402         and 'after flattening paint'. Message has no payload.
2403
2404         * rendering/RenderView.h:
2405         * rendering/RenderView.cpp:
2406         (WebCore::RenderView::getRetainedWidgets):
2407         (WebCore::RenderView::releaseWidgets): Factor code out of updateWidgetPositions(),
2408         since we use it in two places now.
2409         
2410         (WebCore::RenderView::updateWidgetPositions): Use getRetainedWidgets() etc.
2411         (WebCore::RenderView::notifyWidgets): Retain all the widgets, then send
2412         them all the message.
2413
2414         * rendering/RenderWidget.h:
2415         * rendering/RenderWidget.cpp:
2416         (WebCore::RenderWidget::notifyWidget): Pass the message to the widget.
2417
2418 2010-12-22  Adrienne Walker  <enne@google.com>
2419
2420         Reviewed by Kenneth Russell.
2421
2422         Fix null pointer deref when restoring a lost WebGL context.
2423         https://bugs.webkit.org/show_bug.cgi?id=51494
2424
2425         No new tests, as context restored events are not currently testable.
2426
2427         * html/canvas/WebGLRenderingContext.cpp:
2428         (WebCore::WebGLRenderingContext::initializeNewContext):
2429         (WebCore::WebGLRenderingContext::restoreContext):
2430
2431 2010-12-22  Adam Bergkvist  <adam.bergkvist@ericsson.com>
2432
2433         Reviewed by Martin Robinson.
2434
2435         [GTK] Building with Blob support fails again
2436         https://bugs.webkit.org/show_bug.cgi?id=51392
2437
2438         Build fix.
2439
2440         * GNUmakefile.am:
2441
2442 2010-12-22  Dan Bernstein  <mitz@apple.com>
2443
2444         Reviewed by Anders Carlsson.
2445
2446         canHyphenate() always returns true for the default locale
2447         https://bugs.webkit.org/show_bug.cgi?id=51506
2448
2449         No test, since this change only affects performance.
2450
2451         * platform/text/cf/HyphenationCF.cpp:
2452         (WebCore::::createValueForNullKey): Return 0 if hyphenation is not supported for the default locale.
2453         (WebCore::::createValueForKey): Removed whitespace.
2454
2455 2010-12-22  Yury Semikhatsky  <yurys@chromium.org>
2456
2457         Reviewed by Joseph Pecoraro.
2458
2459         Web Inspector: script name gets parsed as HTML in Call stack panel
2460         https://bugs.webkit.org/show_bug.cgi?id=51468
2461
2462         * inspector/front-end/Placard.js:
2463         (WebInspector.Placard.prototype.set subtitle):
2464
2465 2010-12-22  Eric Carlson  <eric.carlson@apple.com>
2466
2467         Reviewed by Darin Adler.
2468
2469         MediaPlayer should look for MIME type in data: URL
2470         https://bugs.webkit.org/show_bug.cgi?id=51195
2471
2472         If no MIME type is passed from the media element for a data: URL, try to get it from
2473         the URL itself.
2474
2475         No new tests are possible because the MIME type is just passed to the media engine.
2476
2477         * platform/graphics/MediaPlayer.cpp:
2478         (WebCore::MediaPlayer::load):
2479
2480 2010-12-22  W. James MacLean  <wjmaclean@chromium.org>
2481
2482         Reviewed by Kenneth Russell.
2483
2484         [chromium] Add asserts to test for contiguous-pixel Skia bitmaps.
2485         https://bugs.webkit.org/show_bug.cgi?id=51186
2486
2487         No new tests. Behaviour not changed, but need the asserts to detect when assumptions violated.
2488
2489         * platform/graphics/chromium/ImageLayerChromium.cpp:
2490         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2491         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
2492         (WebCore::GraphicsContext3D::getImageData):
2493
2494 2010-12-22  Chris Fleizach  <cfleizach@apple.com>
2495
2496         Reviewed by Darin Adler.
2497
2498         WAI-ARIA menubar role mapped to AXGroup, should be AXMenuBar
2499         https://bugs.webkit.org/show_bug.cgi?id=51488
2500
2501         Test: platform/mac/accessibility/aria-menubar.html
2502
2503         * accessibility/AccessibilityObject.cpp:
2504         (WebCore::createARIARoleMap):
2505
2506 2010-12-22  Zhenyao Mo  <zmo@google.com>
2507
2508         Reviewed by Kenneth Russell.
2509
2510         CopyTex{Sub}Image2D check always if the bound fbo's internal color format is compatible
2511         https://bugs.webkit.org/show_bug.cgi?id=51423
2512
2513         * html/canvas/WebGLRenderingContext.cpp:
2514         (WebCore::WebGLRenderingContext::copyTexImage2D): Remove the isGLES2Compliant flag around format compatibility checking.
2515         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
2516         (WebCore::WebGLRenderingContext::getBoundFramebufferColorFormat): Helper function to get bound framebuffer's color format; deal with the case of webgl's internal fbo.
2517         * html/canvas/WebGLRenderingContext.h:
2518
2519 2010-12-22  Xan Lopez  <xlopez@igalia.com>
2520
2521         Reviewed by Gustavo Noronha.
2522
2523         [GTK] Compilation fixes with GTK+ 2.91.7
2524         https://bugs.webkit.org/show_bug.cgi?id=51487
2525
2526         * platform/gtk/GtkVersioning.h: do not define GDK_DISPLAY for
2527         backwards compatibility, it's now defined again in GTK+ 3.x.
2528         * platform/gtk/PasteboardHelper.cpp: do not call GDK functions to
2529         initialize global static variables (!). These are called when the
2530         .so is loaded, and they now require GType to be initialized and
2531         will crash. Initialize them once from the ctor, which is a more
2532         common pattern anyway.
2533         (WebCore::initGdkAtoms): new method to initialize static variables.
2534         (WebCore::PasteboardHelper::PasteboardHelper): call it.
2535         * plugins/gtk/PluginViewGtk.cpp: do not include gdkconfig.h when
2536         using GTK+ 3.x, since it's no longer installed.
2537
2538 2010-12-22  Dirk Schulze  <krit@wbekit.org>
2539
2540         Reviewed by Nikolas Zimmermann.
2541
2542         Cleanup SVG code according to the webkit style rules 2
2543         https://bugs.webkit.org/show_bug.cgi?id=51461
2544
2545         Second patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
2546
2547         No changes of functionality, so no new tests. 
2548
2549         * svg/SVGFEDisplacementMapElement.cpp:
2550         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
2551         * svg/SVGFEDistantLightElement.h:
2552         * svg/SVGFEFuncAElement.h:
2553         * svg/SVGFEFuncBElement.h:
2554         * svg/SVGFEFuncGElement.h:
2555         * svg/SVGFEFuncRElement.h:
2556         * svg/SVGFEMergeElement.cpp:
2557         (WebCore::SVGFEMergeElement::build):
2558         * svg/SVGFEMorphologyElement.cpp:
2559         * svg/SVGFEPointLightElement.h:
2560         * svg/SVGFESpecularLightingElement.cpp:
2561         (WebCore::SVGFESpecularLightingElement::findLights):
2562         * svg/SVGFESpotLightElement.h:
2563         * svg/SVGFitToViewBox.cpp:
2564         (WebCore::SVGFitToViewBox::parseViewBox):
2565         (WebCore::SVGFitToViewBox::isKnownAttribute):
2566         * svg/SVGFontFaceElement.cpp:
2567         (WebCore::cssPropertyIdForSVGAttributeName):
2568         * svg/SVGFontFaceElement.h:
2569         (WebCore::SVGFontFaceElement::associatedFontElement):
2570         * svg/SVGFontFaceNameElement.h:
2571         * svg/SVGFontFaceSrcElement.cpp:
2572         * svg/SVGFontFaceSrcElement.h:
2573         * svg/SVGFontFaceUriElement.h:
2574         * svg/SVGForeignObjectElement.h:
2575         * svg/SVGGlyphElement.cpp:
2576         (WebCore::parseArabicForm):
2577         (WebCore::parseOrientation):
2578         * svg/SVGGlyphElement.h:
2579         (WebCore::SVGGlyphIdentifier::SVGGlyphIdentifier):
2580         (WebCore::SVGGlyphIdentifier::inheritedValue):
2581         (WebCore::SVGGlyphIdentifier::operator==):
2582         (WebCore::SVGGlyphElement::rendererIsNeeded):
2583         * svg/SVGGlyphMap.h:
2584         (WebCore::GlyphMapNode::GlyphMapNode):
2585         (WebCore::GlyphMapNode::create):
2586         (WebCore::SVGGlyphMap::SVGGlyphMap):
2587         (WebCore::SVGGlyphMap::add):
2588         (WebCore::SVGGlyphMap::compareGlyphPriority):
2589         (WebCore::SVGGlyphMap::get):
2590         (WebCore::SVGGlyphMap::clear):
2591         * svg/SVGGradientElement.cpp:
2592         * svg/SVGHKernElement.cpp:
2593         * svg/SVGHKernElement.h:
2594         (WebCore::SVGHKernElement::rendererIsNeeded):
2595         * svg/SVGImageElement.h:
2596         * svg/SVGImageLoader.cpp:
2597         * svg/SVGImageLoader.h:
2598         * svg/SVGLangSpace.cpp:
2599         (WebCore::SVGLangSpace::parseMappedAttribute):
2600         (WebCore::SVGLangSpace::isKnownAttribute):
2601         * svg/SVGLangSpace.h:
2602         (WebCore::SVGLangSpace::xmllang):
2603         * svg/SVGMetadataElement.h:
2604         * svg/SVGMissingGlyphElement.h:
2605         (WebCore::SVGMissingGlyphElement::rendererIsNeeded):
2606         * svg/SVGPaint.cpp:
2607         (WebCore::SVGPaint::cssText):
2608         * svg/SVGPaint.h:
2609         (WebCore::SVGPaint::create):
2610         (WebCore::SVGPaint::paintType):
2611         (WebCore::SVGPaint::isSVGPaint):
2612         * svg/SVGParserUtilities.cpp:
2613         * svg/SVGParserUtilities.h:
2614         (WebCore::isWhitespace):
2615         (WebCore::skipOptionalSpaces):
2616         (WebCore::skipOptionalSpacesOrDelimiter):
2617         * svg/SVGPathElement.cpp:
2618         * svg/SVGPathParserFactory.h:
2619         * svg/SVGPathSegList.h:
2620
2621 2010-12-22  Chris Fleizach  <cfleizach@apple.com>
2622
2623         Reviewed by Sam Weinig.
2624
2625         AX: WAI-ARIA textbox role needs different AXRole, depending on value of aria-multiline property
2626         https://bugs.webkit.org/show_bug.cgi?id=51481
2627
2628         Support aria-multiline and use it to change the role of an ARIA "textbox" 
2629         from AXTextArea to AXTextField.
2630
2631         Test: platform/mac/accessibility/aria-multiline.html
2632
2633         * accessibility/AccessibilityObject.cpp:
2634         (WebCore::AccessibilityObject::ariaIsMultiline):
2635         * accessibility/AccessibilityObject.h:
2636         (WebCore::AccessibilityObject::isPasswordField):
2637         (WebCore::AccessibilityObject::isTextControl):
2638         * accessibility/AccessibilityRenderObject.cpp:
2639         (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
2640         * accessibility/AccessibilityRenderObject.h:
2641         * html/HTMLAttributeNames.in:
2642
2643 2010-12-22  Simon Fraser  <simon.fraser@apple.com>
2644
2645         Reviewed by Dan Bernstein.
2646
2647         CSS 2.1 failure: counter-increment-013 fails
2648         https://bugs.webkit.org/show_bug.cgi?id=51483
2649         
2650         Clamp the counter-increment property to the valid range of signed
2651         integers.
2652
2653         Test: fast/css/counters/counter-increment-overflow.html
2654
2655         * css/CSSParser.cpp:
2656         (WebCore::clampToSignedInteger):
2657         (WebCore::CSSParser::parseCounter):
2658
2659 2010-12-22  Dan Bernstein  <mitz@apple.com>
2660
2661         Rubber-stamped by Mark Rowe.
2662
2663         Changed WebKitTools to Tools in script build phases.
2664
2665         * WebCore.xcodeproj/project.pbxproj:
2666
2667 2010-12-21  Vangelis Kokkevis  <vangelis@chromium.org>
2668
2669         Reviewed by Kenneth Russell.
2670
2671         [chromium] Fixing crash with empty render surfaces.
2672         https://bugs.webkit.org/show_bug.cgi?id=51432
2673
2674         Test: platform/chromium/compositing/empty-render-surface-crasher.html
2675
2676         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2677         (WebCore::RenderSurfaceChromium::draw):
2678
2679 2010-12-21  Pavel Podivilov  <podivilov@chromium.org>
2680
2681         Reviewed by Yury Semikhatsky.
2682
2683         Web Inspector: persist JavaScript breakpoints in frontend settings.
2684         https://bugs.webkit.org/show_bug.cgi?id=48434
2685
2686         * bindings/js/ScriptDebugServer.cpp:
2687         (WebCore::ScriptDebugServer::setBreakpoint):
2688         (WebCore::ScriptDebugServer::removeBreakpoint):
2689         * bindings/js/ScriptDebugServer.h:
2690         * bindings/v8/DebuggerScript.js:
2691         ():
2692         * bindings/v8/ScriptDebugServer.cpp:
2693         (WebCore::ScriptDebugServer::setBreakpoint):
2694         (WebCore::ScriptDebugServer::removeBreakpoint):
2695         * bindings/v8/ScriptDebugServer.h:
2696         * inspector/Inspector.idl:
2697         * inspector/InspectorBackend.cpp:
2698         * inspector/InspectorController.cpp:
2699         (WebCore::InspectorController::InspectorController):
2700         (WebCore::InspectorController::enableDebuggerFromFrontend):
2701         (WebCore::InspectorController::setStickyBreakpoints):
2702         (WebCore::InspectorController::restoreStickyBreakpoint):
2703         * inspector/InspectorController.h:
2704         * inspector/InspectorDebuggerAgent.cpp:
2705         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
2706         (WebCore::InspectorDebuggerAgent::setStickyBreakpoint):
2707         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2708         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
2709         (WebCore::InspectorDebuggerAgent::restoreBreakpoint):
2710         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
2711         (WebCore::InspectorDebuggerAgent::didParseSource):
2712         * inspector/InspectorDebuggerAgent.h:
2713         * inspector/front-end/Breakpoint.js:
2714         (WebInspector.Breakpoint):
2715         (WebInspector.Breakpoint.prototype.remove):
2716         * inspector/front-end/BreakpointManager.js:
2717         (WebInspector.BreakpointManager):
2718         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
2719         (WebInspector.JavaScriptBreakpoint):
2720         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
2721         * inspector/front-end/DebuggerModel.js:
2722         (WebInspector.DebuggerModel):
2723         * inspector/front-end/ScriptsPanel.js:
2724         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
2725         * inspector/front-end/SourceFrame.js:
2726
2727 2010-12-20  Antti Koivisto  <antti@apple.com>
2728
2729         Reviewed by Alexey Proskuryakov.
2730
2731         https://bugs.webkit.org/show_bug.cgi?id=51354
2732         Don't block rendering and script execution on deferred stylesheets
2733         
2734         - Don't add low priority stylesheets to the document pending sheet count.
2735         - Resolve media attribute fully for the link element stylesheet load.
2736
2737         Test: http/tests/local/stylesheet-and-script-load-order-media-print.html
2738
2739         * html/HTMLLinkElement.cpp:
2740         (WebCore::HTMLLinkElement::HTMLLinkElement):
2741         (WebCore::HTMLLinkElement::~HTMLLinkElement):
2742         (WebCore::HTMLLinkElement::setDisabledState):
2743         (WebCore::HTMLLinkElement::process):
2744         (WebCore::HTMLLinkElement::sheetLoaded):
2745         (WebCore::HTMLLinkElement::addPendingSheet):
2746         (WebCore::HTMLLinkElement::removePendingSheet):
2747         * html/HTMLLinkElement.h:
2748
2749 2010-12-22  Sheriff Bot  <webkit.review.bot@gmail.com>
2750
2751         Unreviewed, rolling out r74473.
2752         http://trac.webkit.org/changeset/74473
2753         https://bugs.webkit.org/show_bug.cgi?id=51463
2754
2755         broke compilation on leopard intel release (Requested by
2756         podivilov on #webkit).
2757
2758         * bindings/js/ScriptDebugServer.cpp:
2759         (WebCore::ScriptDebugServer::setBreakpoint):
2760         (WebCore::ScriptDebugServer::removeBreakpoint):
2761         * bindings/js/ScriptDebugServer.h:
2762         * bindings/v8/DebuggerScript.js:
2763         ():
2764         * bindings/v8/ScriptDebugServer.cpp:
2765         (WebCore::ScriptDebugServer::setBreakpoint):
2766         (WebCore::ScriptDebugServer::removeBreakpoint):
2767         * bindings/v8/ScriptDebugServer.h:
2768         * inspector/Inspector.idl:
2769         * inspector/InspectorBackend.cpp:
2770         * inspector/InspectorController.cpp:
2771         (WebCore::InspectorController::InspectorController):
2772         (WebCore::InspectorController::enableDebuggerFromFrontend):
2773         (WebCore::InspectorController::setStickyBreakpoints):
2774         (WebCore::InspectorController::restoreStickyBreakpoint):
2775         (WebCore::InspectorController::breakpointsSettingKey):
2776         (WebCore::InspectorController::loadBreakpoints):
2777         (WebCore::InspectorController::saveBreakpoints):
2778         * inspector/InspectorController.h:
2779         * inspector/InspectorDebuggerAgent.cpp:
2780         (WebCore::formatBreakpointId):
2781         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
2782         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2783         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
2784         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
2785         (WebCore::InspectorDebuggerAgent::md5Base16):
2786         (WebCore::InspectorDebuggerAgent::loadBreakpoints):
2787         (WebCore::InspectorDebuggerAgent::saveBreakpoints):
2788         (WebCore::InspectorDebuggerAgent::didParseSource):
2789         * inspector/InspectorDebuggerAgent.h:
2790         * inspector/front-end/Breakpoint.js:
2791         (WebInspector.Breakpoint):
2792         (WebInspector.Breakpoint.jsBreakpointId):
2793         (WebInspector.Breakpoint.prototype.set enabled):
2794         (WebInspector.Breakpoint.prototype.get id):
2795         (WebInspector.Breakpoint.prototype.set condition):
2796         (WebInspector.Breakpoint.prototype.remove):
2797         * inspector/front-end/BreakpointManager.js:
2798         (WebInspector.BreakpointManager):
2799         (WebInspector.BreakpointManager.prototype._createDOMBreakpoint):
2800         (WebInspector.BreakpointManager.prototype._createEventListenerBreakpoint):
2801         (WebInspector.BreakpointManager.prototype._createXHRBreakpoint):
2802         (WebInspector.BreakpointManager.prototype._setNativeBreakpoint):
2803         (WebInspector.BreakpointManager.prototype._setNativeBreakpointEnabled):
2804         (WebInspector.BreakpointManager.prototype._removeNativeBreakpoint):
2805         (WebInspector.BreakpointManager.prototype.breakpointViewForEventData):
2806         (WebInspector.BreakpointManager.prototype._projectChanged):
2807         (WebInspector.BreakpointManager.prototype.restoreDOMBreakpoints):
2808         (WebInspector.BreakpointManager.prototype._saveBreakpoints):
2809         (WebInspector.BreakpointManager.prototype._validateBreakpoints):
2810         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
2811         (WebInspector.EventListenerBreakpoint.prototype._serializeToJSON):
2812         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
2813         (WebInspector.NativeBreakpointView.prototype.set enabled):
2814         (WebInspector.NativeBreakpointView.prototype.remove):
2815         * inspector/front-end/DebuggerModel.js:
2816         (WebInspector.DebuggerModel):
2817         (WebInspector.DebuggerModel.prototype.setOneTimeBreakpoint):
2818         (WebInspector.DebuggerModel.prototype.removeOneTimeBreakpoint):
2819         (WebInspector.DebuggerModel.prototype.setBreakpoint):
2820         (WebInspector.DebuggerModel.prototype.findBreakpoint):
2821         (WebInspector.DebuggerModel.prototype.reset):
2822         (WebInspector.DebuggerModel.prototype._setBreakpoint):
2823         (WebInspector.DebuggerModel.prototype._breakpointRemoved):
2824         (WebInspector.DebuggerModel.prototype._setBreakpointOnBackend):
2825         (WebInspector.DebuggerModel.prototype.breakpointRestored):
2826         (WebInspector.DebuggerModel.prototype.pausedScript):
2827         (WebInspector.DebuggerModel.prototype.resumedScript):
2828         * inspector/front-end/ScriptsPanel.js:
2829         (WebInspector.ScriptsPanel.prototype.continueToLine):
2830         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
2831         * inspector/front-end/SourceFrame.js:
2832         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
2833         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
2834         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
2835         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
2836         (WebInspector.SourceFrame.prototype._contextMenu):
2837         (WebInspector.SourceFrame.prototype._mouseDown):
2838         (WebInspector.SourceFrame.prototype._continueToLine):
2839         (WebInspector.SourceFrame.prototype._setBreakpoint):
2840
2841 2010-12-21  Pavel Podivilov  <podivilov@chromium.org>
2842
2843         Reviewed by Yury Semikhatsky.
2844
2845         Web Inspector: persist JavaScript breakpoints in frontend settings.
2846         https://bugs.webkit.org/show_bug.cgi?id=48434
2847
2848         * bindings/js/ScriptDebugServer.cpp:
2849         (WebCore::ScriptDebugServer::setBreakpoint):
2850         (WebCore::ScriptDebugServer::removeBreakpoint):
2851         * bindings/js/ScriptDebugServer.h:
2852         * bindings/v8/DebuggerScript.js:
2853         ():
2854         * bindings/v8/ScriptDebugServer.cpp:
2855         (WebCore::ScriptDebugServer::setBreakpoint):
2856         (WebCore::ScriptDebugServer::removeBreakpoint):
2857         * bindings/v8/ScriptDebugServer.h:
2858         * inspector/Inspector.idl:
2859         * inspector/InspectorBackend.cpp:
2860         * inspector/InspectorController.cpp:
2861         (WebCore::InspectorController::InspectorController):
2862         (WebCore::InspectorController::enableDebuggerFromFrontend):
2863         (WebCore::InspectorController::setStickyBreakpoints):
2864         (WebCore::InspectorController::restoreStickyBreakpoint):
2865         * inspector/InspectorController.h:
2866         * inspector/InspectorDebuggerAgent.cpp:
2867         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
2868         (WebCore::InspectorDebuggerAgent::setStickyBreakpoint):
2869         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2870         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
2871         (WebCore::InspectorDebuggerAgent::restoreBreakpoint):
2872         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
2873         (WebCore::InspectorDebuggerAgent::didParseSource):
2874         * inspector/InspectorDebuggerAgent.h:
2875         * inspector/front-end/Breakpoint.js:
2876         (WebInspector.Breakpoint):
2877         (WebInspector.Breakpoint.prototype.remove):
2878         * inspector/front-end/BreakpointManager.js:
2879         (WebInspector.BreakpointManager):
2880         (WebInspector.DOMBreakpoint.prototype._serializeToJSON):
2881         (WebInspector.JavaScriptBreakpoint):
2882         (WebInspector.XHRBreakpoint.prototype._serializeToJSON):
2883         * inspector/front-end/DebuggerModel.js:
2884         (WebInspector.DebuggerModel):
2885         * inspector/front-end/ScriptsPanel.js:
2886         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
2887         * inspector/front-end/SourceFrame.js:
2888
2889 2010-12-22  Dirk Schulze  <krit@wbekit.org>
2890
2891         Reviewed by Nikolas Zimmermann.
2892
2893         Cleanup SVG code according to the webkit style rules 1
2894         https://bugs.webkit.org/show_bug.cgi?id=51411
2895
2896         First patch to fix indention and other style issues according to the WebKit style rules in the SVG code.
2897
2898         No change of functionality. 
2899
2900         * svg/ColorDistance.cpp:
2901         (WebCore::ColorDistance::isZero):
2902         * svg/ColorDistance.h:
2903         * svg/ElementTimeControl.h:
2904         (WebCore::ElementTimeControl::~ElementTimeControl):
2905         * svg/LinearGradientAttributes.h:
2906         (WebCore::LinearGradientAttributes::LinearGradientAttributes):
2907         (WebCore::LinearGradientAttributes::x1):
2908         (WebCore::LinearGradientAttributes::y1):
2909         (WebCore::LinearGradientAttributes::x2):
2910         (WebCore::LinearGradientAttributes::y2):
2911         (WebCore::LinearGradientAttributes::setX1):
2912         (WebCore::LinearGradientAttributes::setY1):
2913         (WebCore::LinearGradientAttributes::setX2):
2914         (WebCore::LinearGradientAttributes::setY2):
2915         (WebCore::LinearGradientAttributes::hasX1):
2916         (WebCore::LinearGradientAttributes::hasY1):
2917         (WebCore::LinearGradientAttributes::hasX2):
2918         (WebCore::LinearGradientAttributes::hasY2):
2919         * svg/RadialGradientAttributes.h:
2920         (WebCore::RadialGradientAttributes::RadialGradientAttributes):
2921         (WebCore::RadialGradientAttributes::cx):
2922         (WebCore::RadialGradientAttributes::cy):
2923         (WebCore::RadialGradientAttributes::r):
2924         (WebCore::RadialGradientAttributes::fx):
2925         (WebCore::RadialGradientAttributes::fy):
2926         (WebCore::RadialGradientAttributes::setCx):
2927         (WebCore::RadialGradientAttributes::setCy):
2928         (WebCore::RadialGradientAttributes::setR):
2929         (WebCore::RadialGradientAttributes::setFx):
2930         (WebCore::RadialGradientAttributes::setFy):
2931         (WebCore::RadialGradientAttributes::hasCx):
2932         (WebCore::RadialGradientAttributes::hasCy):
2933         (WebCore::RadialGradientAttributes::hasR):
2934         (WebCore::RadialGradientAttributes::hasFx):
2935         (WebCore::RadialGradientAttributes::hasFy):
2936         * svg/SVGAngle.cpp:
2937         * svg/SVGAnimateColorElement.h:
2938         * svg/SVGAnimateElement.cpp:
2939         (WebCore::SVGAnimateElement::calculateAnimatedValue):
2940         (WebCore::SVGAnimateElement::calculateDistance):
2941         * svg/SVGAnimateElement.h:
2942         * svg/SVGAnimateMotionElement.cpp:
2943         * svg/SVGAnimateMotionElement.h:
2944         * svg/SVGAnimatedNumber.h:
2945         * svg/SVGAnimationElement.cpp:
2946         (WebCore::parseKeyTimes):
2947         (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
2948         (WebCore::SVGAnimationElement::updateAnimation):
2949         * svg/SVGClipPathElement.cpp:
2950         (WebCore::SVGClipPathElement::svgAttributeChanged):
2951         * svg/SVGColor.h:
2952         (WebCore::SVGColor::create):
2953         (WebCore::SVGColor::createCurrentColor):
2954         (WebCore::SVGColor::colorType):
2955         (WebCore::SVGColor::setRGBColor):
2956         (WebCore::SVGColor::color):
2957         (WebCore::SVGColor::isSVGColor):
2958         * svg/SVGCursorElement.cpp:
2959         (WebCore::SVGCursorElement::svgAttributeChanged):
2960         * svg/SVGCursorElement.h:
2961         * svg/SVGDescElement.h:
2962         (WebCore::SVGDescElement::rendererIsNeeded):
2963         * svg/SVGDocument.cpp:
2964         * svg/SVGDocument.h:
2965         (WebCore::SVGDocument::create):
2966         (WebCore::SVGDocument::isSVGDocument):
2967         * svg/SVGElement.h:
2968         (WebCore::SVGElement::isStyled):
2969         (WebCore::SVGElement::isStyledTransformable):
2970         (WebCore::SVGElement::isStyledLocatable):
2971         (WebCore::SVGElement::isSVG):
2972         (WebCore::SVGElement::isFilterEffect):
2973         (WebCore::SVGElement::isGradientStop):
2974         (WebCore::SVGElement::isTextContent):
2975         (WebCore::SVGElement::isValid):
2976         (WebCore::SVGElement::svgAttributeChanged):
2977         (WebCore::SVGElement::synchronizeProperty):
2978         (WebCore::SVGElement::supplementalTransform):
2979         (WebCore::SVGElement::invalidateSVGAttributes):
2980         (WebCore::SVGElement::rendererIsNeeded):
2981         (WebCore::SVGElement::needsPendingResourceHandling):
2982         (WebCore::SVGElement::buildPendingResource):
2983         * svg/SVGElementInstance.h:
2984         (WebCore::SVGElementInstance::create):
2985         (WebCore::SVGElementInstance::correspondingElement):
2986         (WebCore::SVGElementInstance::correspondingUseElement):
2987         (WebCore::SVGElementInstance::shadowTreeElement):
2988         (WebCore::SVGElementInstance::parentNode):
2989         (WebCore::SVGElementInstance::previousSibling):
2990         (WebCore::SVGElementInstance::nextSibling):
2991         (WebCore::SVGElementInstance::firstChild):
2992         (WebCore::SVGElementInstance::lastChild):
2993         (WebCore::SVGElementInstance::ownerDocument):
2994         (WebCore::SVGElementInstance::toNode):
2995         (WebCore::SVGElementInstance::toSVGElementInstance):
2996         (WebCore::SVGElementInstance::hasChildNodes):
2997         (WebCore::SVGElementInstance::setFirstChild):
2998         (WebCore::SVGElementInstance::setLastChild):
2999         (WebCore::SVGElementInstance::setNextSibling):
3000         (WebCore::SVGElementInstance::setPreviousSibling):
3001         (WebCore::SVGElementInstance::refEventTarget):
3002         (WebCore::SVGElementInstance::derefEventTarget):
3003         * svg/SVGElementInstanceList.h:
3004         (WebCore::SVGElementInstanceList::create):
3005         * svg/SVGException.h:
3006         (WebCore::SVGException::create):
3007         (WebCore::SVGException::SVGException):
3008         * svg/SVGFEColorMatrixElement.cpp:
3009         (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
3010         * svg/SVGFEComponentTransferElement.cpp:
3011         (WebCore::SVGFEComponentTransferElement::build):
3012         * svg/SVGFEDiffuseLightingElement.cpp:
3013         (WebCore::SVGFEDiffuseLightingElement::findLights):
3014         * svg/SVGFont.cpp:
3015         (WebCore::convertEmUnitToPixel):
3016         * svg/SVGUseElement.cpp:
3017         (WebCore::isDirectReference):
3018
3019 2010-12-22  Dai Mikurube  <dmikurube@google.com>
3020
3021         Reviewed by Kent Tamura.
3022
3023         https://bugs.webkit.org/show_bug.cgi?id=51289
3024         Initial state of checkValidity() and :invalid are incorrect with <select required>
3025
3026         * html/HTMLSelectElement.cpp:
3027         (WebCore::HTMLSelectElement::childrenChanged): setNeedsValidityCheck() after <select>'s children change.
3028
3029 2010-12-22  Alexander Pavlov  <apavlov@chromium.org>
3030
3031         Reviewed by Joseph Pecoraro.
3032
3033         Web Inspector: Styles pane fails to display properties from a broken CSS rule correctly
3034         https://bugs.webkit.org/show_bug.cgi?id=51405
3035
3036         Invoke markPropertyStart() after the parser has restored after an error.
3037
3038         * css/CSSGrammar.y:
3039
3040 2010-12-22  Dai Mikurube  <dmikurube@google.com>
3041
3042         Reviewed by Kent Tamura.
3043
3044         Assertion failure with <select multiple required>
3045         https://bugs.webkit.org/show_bug.cgi?id=51260
3046
3047         Test: fast/css/pseudo-valid-select-click.html
3048
3049         * dom/SelectElement.cpp: updateValidity() after selecting some options of ListBox-typed <select> elements to update valid() cache.
3050         (WebCore::SelectElement::updateListBoxSelection):
3051
3052 2010-12-21  Darin Adler  <darin@apple.com>
3053
3054         Unreviewed correction to unreviewed build fix for r74447.
3055
3056         Inappropriate code was left behind in sourceURI function for non-Dashboard platforms.
3057
3058         * html/HTMLImageLoader.cpp:
3059         (WebCore::HTMLImageLoader::sourceURI): Change the logic so all the bug-workaround
3060         logic is inside the #ifdef.
3061
3062 2010-12-21  Simon Fraser  <simon.fraser@apple.com>
3063
3064         Reviewed by Darin Adler.
3065
3066         Include the shadow color space as part of the GraphicsContext state
3067         https://bugs.webkit.org/show_bug.cgi?id=51420
3068         
3069         Include the ColorSpace for the shadow color as part of the graphics
3070         state. This will be used later for a shadow implementation that
3071         does not rely on platform shadow code.
3072
3073         * platform/graphics/GraphicsContext.cpp:
3074         (WebCore::GraphicsContext::setShadow):
3075         (WebCore::GraphicsContext::clearShadow):
3076         (WebCore::GraphicsContext::getShadow):
3077         * platform/graphics/GraphicsContext.h:
3078         (WebCore::GraphicsContextState::GraphicsContextState):
3079         * platform/graphics/chromium/FontChromiumWin.cpp:
3080         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
3081         (WebCore::Font::drawComplexText):
3082         * platform/graphics/mac/FontMac.mm:
3083         (WebCore::Font::drawGlyphs):
3084         * platform/graphics/skia/SkiaFontWin.cpp:
3085         (WebCore::windowsCanHandleDrawTextShadow):
3086         * platform/graphics/win/FontCGWin.cpp:
3087         (WebCore::drawGDIGlyphs):
3088         (WebCore::Font::drawGlyphs):
3089         * platform/graphics/wince/GraphicsContextWinCE.cpp:
3090         (WebCore::GraphicsContext::fillRoundedRect):
3091         (WebCore::GraphicsContext::drawText):
3092
3093 2010-12-21  Dan Bernstein  <mitz@apple.com>
3094
3095         Reviewed by Sam Weinig.
3096
3097         <rdar://problem/8668230> REGRESSION (r71884): Returning alternate requests from willSendRequest can prevent other requests from ever being sent
3098         https://bugs.webkit.org/show_bug.cgi?id=51413
3099
3100         71884 was wrong in moving willSendRequest to ResourceLoader::start(). It’s wrong to do all the
3101         scheduling, which is host-dependent, before calling willSendRequest, because the latter can
3102         change the host.
3103
3104         * loader/NetscapePlugInStreamLoader.cpp:
3105         (WebCore::NetscapePlugInStreamLoader::create): Check the return value from ResourceLoader::init()
3106         and return 0 if it is false.
3107         * loader/ResourceLoader.cpp:
3108         (WebCore::ResourceLoader::init): Made this function return a boolean. Moved the call to willSendRequest()
3109         from start() into here. Return false if willSendRequest() canceled the request.
3110         (WebCore::ResourceLoader::start): Moved the call to willSendRequest() from here to init().
3111         * loader/ResourceLoader.h:
3112         * loader/SubresourceLoader.cpp:
3113         (WebCore::SubresourceLoader::create): Check the return value from ResourceLoader::init()
3114         and return 0 if it is false.
3115
3116 2010-12-21  Benjamin Kalman  <kalman@chromium.org>
3117
3118         Reviewed by Darin Adler.
3119
3120         Shift-End does not select to the end of the line
3121         https://bugs.webkit.org/show_bug.cgi?id=50610
3122
3123         Let the VisiblePosition affinity for end of line selection to be set by
3124         visibleEnd/visibleStart rather than using end/start and always using UPSTREAM.
3125
3126         Test: editing/selection/extend-to-line-boundary.html
3127
3128         * editing/SelectionController.cpp:
3129         (WebCore::SelectionController::positionForPlatform): Use visibleStart/visibleEnd rather than
3130         start/end.
3131         (WebCore::SelectionController::modifyExtendingForward): Don't explicitly use UPSTREAM affinity.
3132
3133 2010-12-21  Jan Erik Hanssen  <jhanssen@sencha.com>
3134
3135         Reviewed by Simon Fraser.
3136
3137         matrix3d() must take the zoom factor into account
3138         https://bugs.webkit.org/show_bug.cgi?id=51408
3139
3140         Test: transforms/3d/general/matrix-with-zoom-3d.html
3141
3142         * css/CSSStyleSelector.cpp:
3143         (WebCore::CSSStyleSelector::createTransformOperations):
3144
3145 2010-12-21  Adam Barth  <abarth@webkit.org>
3146
3147         Reviewed by Darin Adler.
3148
3149         Move V8 to common implementation of window.open
3150         https://bugs.webkit.org/show_bug.cgi?id=51385
3151
3152         I also changed some function names to match WebKit style.  There's a
3153         bunch of code we can remove in the generic bindings now.  I'll do that
3154         in the next patch.
3155
3156         * bindings/generic/BindingDOMWindow.h:
3157         (WebCore::::open):
3158         * bindings/generic/BindingFrame.h:
3159         (WebCore::::navigateIfAllowed):
3160         * bindings/generic/BindingSecurity.h:
3161         (WebCore::::canAccessWindow):
3162         (WebCore::::allowPopUp):
3163         (WebCore::::shouldAllowNavigation):
3164         * bindings/generic/GenericBinding.h:
3165         (WebCore::completeURL):
3166         * bindings/js/JSDOMBinding.cpp:
3167         (WebCore::toLexicalFrame):
3168         (WebCore::toDynamicFrame):
3169         * bindings/js/specialization/JSBindingState.cpp:
3170         (WebCore::::activeFrame):
3171         (WebCore::::firstFrame):
3172         * bindings/js/specialization/JSBindingState.h:
3173         * bindings/v8/V8Utilities.cpp:
3174         (WebCore::callingOrEnteredFrame):
3175         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3176         (WebCore::V8DOMWindow::locationAccessorSetter):
3177         (WebCore::V8DOMWindow::openCallback):
3178         * bindings/v8/specialization/V8BindingState.cpp:
3179         (WebCore::::activeWindow):
3180         (WebCore::::firstWindow):
3181         (WebCore::::activeFrame):
3182         (WebCore::::firstFrame):
3183         * bindings/v8/specialization/V8BindingState.h:
3184
3185 2010-12-21  Ryosuke Niwa  <rniwa@webkit.org>
3186
3187         Unreviewed build fix for r74447.
3188
3189         Call usesDashboardBackwardCompatibilityMode() only if DASHBOARD_SUPPORT is enabled.
3190
3191         * html/HTMLImageLoader.cpp:
3192         (WebCore::HTMLImageLoader::sourceURI):
3193
3194 2010-12-21  Dan Bernstein  <mitz@apple.com>
3195
3196         Reviewed by John Sullivan.
3197
3198         <rdar://problem/8725702> REGRESSION (r68854): Broken image icon seen in the Address Book Dashboard widget
3199
3200         Test: platform/mac/fast/dom/HTMLImageElement/dashboard-src-quirk.html
3201
3202         The Address Book widget sets the src attribute of an img element to a string that looks like a CSS
3203         URL value. This used to work prior to r68854, because some DOM attribute parsing functions were using
3204         the wrong function to parse URL attributes (last named deprecatedParseURL).
3205
3206         * html/HTMLImageLoader.cpp:
3207         (WebCore::HTMLImageLoader::sourceURI): In Dashboard, check if the src attribute begins with 'url("'
3208         and ends with '")', and if so, strip those away.
3209
3210 2010-12-21  Ryosuke Niwa  <rniwa@webkit.org>
3211
3212         Reviewed by Darin Adler.
3213
3214         CharacterData needs cleanup
3215         https://bugs.webkit.org/show_bug.cgi?id=51426
3216
3217         Extracted CharacterData::setDataAndNotify and CharacterData::updateRenderer.
3218
3219         * dom/CharacterData.cpp:
3220         (WebCore::CharacterData::setData): Calls setDataAndUpdate.
3221         (WebCore::CharacterData::parserAppendData): Ditto.
3222         (WebCore::CharacterData::appendData): Ditto.
3223         (WebCore::CharacterData::insertData): Ditto.
3224         (WebCore::CharacterData::deleteData): Ditto.
3225         (WebCore::CharacterData::replaceData): Ditto.
3226         (WebCore::CharacterData::setDataAndUpdate): Added.
3227         (WebCore::CharacterData::updateRenderer): Added.
3228         (WebCore::CharacterData::dispatchModifiedEvent): Renamed prevValue to oldData.
3229         * dom/CharacterData.h:
3230
3231 2010-12-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3232
3233         Unreviewed, rolling out r74420.
3234         http://trac.webkit.org/changeset/74420
3235         https://bugs.webkit.org/show_bug.cgi?id=51436
3236
3237         causes editing/pasteboard/paste-noscript-xhtml.xhtml to crash
3238         (Requested by tonyg-cr on #webkit).
3239
3240         * dom/DocumentParser.cpp:
3241         * dom/DocumentParser.h:
3242         * html/parser/HTMLDocumentParser.cpp:
3243         * html/parser/HTMLDocumentParser.h:
3244         * html/parser/HTMLParserScheduler.cpp:
3245         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3246         * html/parser/HTMLParserScheduler.h:
3247         (WebCore::HTMLParserScheduler::isScheduledForResume):
3248         * page/PageGroupLoadDeferrer.cpp:
3249         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3250         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3251
3252 2010-12-21  Kenneth Russell  <kbr@google.com>
3253
3254         Reviewed by Darin Fisher.
3255
3256         Enable extensions used in accelerated 2D canvas implementation
3257         https://bugs.webkit.org/show_bug.cgi?id=51433
3258
3259         Call Extensions3D::ensureEnabled() for all supported extensions
3260         the accelerated 2D Canvas implementation uses. Tested with a few
3261         layout tests previously failing when run in Chromium due to OpenGL
3262         INVALID_ENUM and other errors.
3263
3264         * platform/graphics/gpu/DrawingBuffer.cpp:
3265         (WebCore::DrawingBuffer::create):
3266         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
3267         (WebCore::SharedGraphicsContext3D::SharedGraphicsContext3D):
3268         (WebCore::SharedGraphicsContext3D::supportsBGRA):
3269         * platform/graphics/gpu/SharedGraphicsContext3D.h:
3270
3271 2010-12-21  Zhenyao Mo  <zmo@google.com>
3272
3273         Reviewed by Kenneth Russell.
3274
3275         WebGLRenderingContext needs to zero textures and renderbuffers
3276         https://bugs.webkit.org/show_bug.cgi?id=49355
3277
3278         Test: fast/canvas/webgl/uninitialized-test.html
3279
3280         * html/canvas/WebGLFramebuffer.cpp:
3281         (WebCore::WebGLFramebuffer::onAccess): Use a parameter to decide if renderbuffer initialization is needed.
3282         (WebCore::WebGLFramebuffer::initializeRenderbuffers): Don't return false if color buffer doesn't exist.
3283         * html/canvas/WebGLFramebuffer.h: Modify onAccess with an added parameter.
3284         * html/canvas/WebGLRenderingContext.cpp:
3285         (WebCore::WebGLRenderingContext::clear): Call onAccess with an added parameter.
3286         (WebCore::WebGLRenderingContext::copyTexImage2D): Ditto.
3287         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
3288         (WebCore::WebGLRenderingContext::drawArrays): Ditto.
3289         (WebCore::WebGLRenderingContext::drawElements): Ditto.
3290         (WebCore::WebGLRenderingContext::readPixels): Ditto.
3291         (WebCore::WebGLRenderingContext::texImage2DBase): Create buffer data of 0s if input is null to initialize textures.
3292         * platform/graphics/GraphicsContext3D.cpp:
3293         (WebCore::GraphicsContext3D::texImage2DResourceSafe): Helper function that initialize all pixels to 0.
3294         * platform/graphics/GraphicsContext3D.h:
3295         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
3296         (WebCore::Canvas2DLayerChromium::updateContentsIfDirty): Use texImage2DResourceSafe.
3297         * platform/graphics/chromium/DrawingBufferChromium.cpp:
3298         (WebCore::generateColorTexture): Ditto.
3299         * platform/graphics/chromium/LayerRendererChromium.cpp:
3300         (WebCore::LayerRendererChromium::prepareToDrawLayers): Ditto.
3301         * platform/graphics/chromium/TextureManager.cpp:
3302         (WebCore::TextureManager::requestTexture): Ditto.
3303         * platform/graphics/chromium/VideoLayerChromium.cpp:
3304         (WebCore::VideoLayerChromium::allocateTexture): Ditto.
3305         * platform/graphics/gpu/DrawingBuffer.cpp:
3306         (WebCore::DrawingBuffer::reset): Use texImage2DResourceSafe; also, only initialize depth/stencil buffer.
3307         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
3308         (WebCore::SharedGraphicsContext3D::texImage2D): Use texImage2DResourceSafe.
3309         * platform/graphics/gpu/Texture.cpp:
3310         (WebCore::Texture::create): Ditto.
3311         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3312         (WebCore::GraphicsContext3D::texImage2D): Generate an INVALID_VALUE if pixels==null is passed in.
3313
3314 2010-12-21  Chris Rogers  <crogers@google.com>
3315
3316         Reviewed by Kenneth Russell.
3317
3318         Add AudioBusChromium for decoding audio file data
3319         https://bugs.webkit.org/show_bug.cgi?id=51430
3320
3321         No new tests since audio API is not yet implemented.
3322
3323         * platform/audio/chromium: Added.
3324         * platform/audio/chromium/AudioBusChromium.cpp: Added.
3325         (WebCore::createBusFromInMemoryAudioFile):
3326
3327 2010-12-21  Chris Rogers  <crogers@google.com>
3328
3329         Reviewed by Kenneth Russell.
3330
3331         Add web audio spatialization resource files
3332         https://bugs.webkit.org/show_bug.cgi?id=50998
3333
3334         No new tests since audio API is not yet implemented.
3335
3336         * platform/audio/HRTFElevation.cpp:
3337         (WebCore::HRTFElevation::calculateKernelsForAzimuthElevation):
3338         * platform/audio/mac/AudioBusMac.mm:
3339         (WebCore::AudioBus::loadPlatformResource):
3340         * platform/audio/resources: Added.
3341         * platform/audio/resources/IRC_Composite_C_R0195_T000_P000.wav: Added.
3342         * platform/audio/resources/IRC_Composite_C_R0195_T000_P015.wav: Added.
3343         * platform/audio/resources/IRC_Composite_C_R0195_T000_P030.wav: Added.
3344         * platform/audio/resources/IRC_Composite_C_R0195_T000_P045.wav: Added.
3345         * platform/audio/resources/IRC_Composite_C_R0195_T000_P060.wav: Added.
3346         * platform/audio/resources/IRC_Composite_C_R0195_T000_P075.wav: Added.
3347         * platform/audio/resources/IRC_Composite_C_R0195_T000_P090.wav: Added.
3348         * platform/audio/resources/IRC_Composite_C_R0195_T000_P315.wav: Added.
3349         * platform/audio/resources/IRC_Composite_C_R0195_T000_P330.wav: Added.
3350         * platform/audio/resources/IRC_Composite_C_R0195_T000_P345.wav: Added.
3351         * platform/audio/resources/IRC_Composite_C_R0195_T015_P000.wav: Added.
3352         * platform/audio/resources/IRC_Composite_C_R0195_T015_P015.wav: Added.
3353         * platform/audio/resources/IRC_Composite_C_R0195_T015_P030.wav: Added.
3354         * platform/audio/resources/IRC_Composite_C_R0195_T015_P045.wav: Added.
3355         * platform/audio/resources/IRC_Composite_C_R0195_T015_P060.wav: Added.
3356         * platform/audio/resources/IRC_Composite_C_R0195_T015_P075.wav: Added.
3357         * platform/audio/resources/IRC_Composite_C_R0195_T015_P090.wav: Added.
3358         * platform/audio/resources/IRC_Composite_C_R0195_T015_P315.wav: Added.
3359         * platform/audio/resources/IRC_Composite_C_R0195_T015_P330.wav: Added.
3360         * platform/audio/resources/IRC_Composite_C_R0195_T015_P345.wav: Added.
3361         * platform/audio/resources/IRC_Composite_C_R0195_T030_P000.wav: Added.
3362         * platform/audio/resources/IRC_Composite_C_R0195_T030_P015.wav: Added.
3363         * platform/audio/resources/IRC_Composite_C_R0195_T030_P030.wav: Added.
3364         * platform/audio/resources/IRC_Composite_C_R0195_T030_P045.wav: Added.
3365         * platform/audio/resources/IRC_Composite_C_R0195_T030_P060.wav: Added.
3366         * platform/audio/resources/IRC_Composite_C_R0195_T030_P075.wav: Added.
3367         * platform/audio/resources/IRC_Composite_C_R0195_T030_P090.wav: Added.
3368         * platform/audio/resources/IRC_Composite_C_R0195_T030_P315.wav: Added.
3369         * platform/audio/resources/IRC_Composite_C_R0195_T030_P330.wav: Added.
3370         * platform/audio/resources/IRC_Composite_C_R0195_T030_P345.wav: Added.
3371         * platform/audio/resources/IRC_Composite_C_R0195_T045_P000.wav: Added.
3372         * platform/audio/resources/IRC_Composite_C_R0195_T045_P015.wav: Added.
3373         * platform/audio/resources/IRC_Composite_C_R0195_T045_P030.wav: Added.
3374         * platform/audio/resources/IRC_Composite_C_R0195_T045_P045.wav: Added.
3375         * platform/audio/resources/IRC_Composite_C_R0195_T045_P060.wav: Added.
3376         * platform/audio/resources/IRC_Composite_C_R0195_T045_P075.wav: Added.
3377         * platform/audio/resources/IRC_Composite_C_R0195_T045_P090.wav: Added.
3378         * platform/audio/resources/IRC_Composite_C_R0195_T045_P315.wav: Added.
3379         * platform/audio/resources/IRC_Composite_C_R0195_T045_P330.wav: Added.
3380         * platform/audio/resources/IRC_Composite_C_R0195_T045_P345.wav: Added.
3381         * platform/audio/resources/IRC_Composite_C_R0195_T060_P000.wav: Added.
3382         * platform/audio/resources/IRC_Composite_C_R0195_T060_P015.wav: Added.
3383         * platform/audio/resources/IRC_Composite_C_R0195_T060_P030.wav: Added.
3384         * platform/audio/resources/IRC_Composite_C_R0195_T060_P045.wav: Added.
3385         * platform/audio/resources/IRC_Composite_C_R0195_T060_P060.wav: Added.
3386         * platform/audio/resources/IRC_Composite_C_R0195_T060_P075.wav: Added.
3387         * platform/audio/resources/IRC_Composite_C_R0195_T060_P090.wav: Added.
3388         * platform/audio/resources/IRC_Composite_C_R0195_T060_P315.wav: Added.
3389         * platform/audio/resources/IRC_Composite_C_R0195_T060_P330.wav: Added.
3390         * platform/audio/resources/IRC_Composite_C_R0195_T060_P345.wav: Added.
3391         * platform/audio/resources/IRC_Composite_C_R0195_T075_P000.wav: Added.
3392         * platform/audio/resources/IRC_Composite_C_R0195_T075_P015.wav: Added.
3393         * platform/audio/resources/IRC_Composite_C_R0195_T075_P030.wav: Added.
3394         * platform/audio/resources/IRC_Composite_C_R0195_T075_P045.wav: Added.
3395         * platform/audio/resources/IRC_Composite_C_R0195_T075_P060.wav: Added.
3396         * platform/audio/resources/IRC_Composite_C_R0195_T075_P075.wav: Added.
3397         * platform/audio/resources/IRC_Composite_C_R0195_T075_P090.wav: Added.
3398         * platform/audio/resources/IRC_Composite_C_R0195_T075_P315.wav: Added.
3399         * platform/audio/resources/IRC_Composite_C_R0195_T075_P330.wav: Added.
3400         * platform/audio/resources/IRC_Composite_C_R0195_T075_P345.wav: Added.
3401         * platform/audio/resources/IRC_Composite_C_R0195_T090_P000.wav: Added.
3402         * platform/audio/resources/IRC_Composite_C_R0195_T090_P015.wav: Added.
3403         * platform/audio/resources/IRC_Composite_C_R0195_T090_P030.wav: Added.
3404         * platform/audio/resources/IRC_Composite_C_R0195_T090_P045.wav: Added.
3405         * platform/audio/resources/IRC_Composite_C_R0195_T090_P060.wav: Added.
3406         * platform/audio/resources/IRC_Composite_C_R0195_T090_P075.wav: Added.
3407         * platform/audio/resources/IRC_Composite_C_R0195_T090_P090.wav: Added.
3408         * platform/audio/resources/IRC_Composite_C_R0195_T090_P315.wav: Added.
3409         * platform/audio/resources/IRC_Composite_C_R0195_T090_P330.wav: Added.
3410         * platform/audio/resources/IRC_Composite_C_R0195_T090_P345.wav: Added.
3411         * platform/audio/resources/IRC_Composite_C_R0195_T105_P000.wav: Added.
3412         * platform/audio/resources/IRC_Composite_C_R0195_T105_P015.wav: Added.
3413         * platform/audio/resources/IRC_Composite_C_R0195_T105_P030.wav: Added.
3414         * platform/audio/resources/IRC_Composite_C_R0195_T105_P045.wav: Added.
3415         * platform/audio/resources/IRC_Composite_C_R0195_T105_P060.wav: Added.
3416         * platform/audio/resources/IRC_Composite_C_R0195_T105_P075.wav: Added.
3417         * platform/audio/resources/IRC_Composite_C_R0195_T105_P090.wav: Added.
3418         * platform/audio/resources/IRC_Composite_C_R0195_T105_P315.wav: Added.
3419         * platform/audio/resources/IRC_Composite_C_R0195_T105_P330.wav: Added.
3420         * platform/audio/resources/IRC_Composite_C_R0195_T105_P345.wav: Added.
3421         * platform/audio/resources/IRC_Composite_C_R0195_T120_P000.wav: Added.
3422         * platform/audio/resources/IRC_Composite_C_R0195_T120_P015.wav: Added.
3423         * platform/audio/resources/IRC_Composite_C_R0195_T120_P030.wav: Added.
3424         * platform/audio/resources/IRC_Composite_C_R0195_T120_P045.wav: Added.
3425         * platform/audio/resources/IRC_Composite_C_R0195_T120_P060.wav: Added.
3426         * platform/audio/resources/IRC_Composite_C_R0195_T120_P075.wav: Added.
3427         * platform/audio/resources/IRC_Composite_C_R0195_T120_P090.wav: Added.
3428         * platform/audio/resources/IRC_Composite_C_R0195_T120_P315.wav: Added.
3429         * platform/audio/resources/IRC_Composite_C_R0195_T120_P330.wav: Added.
3430         * platform/audio/resources/IRC_Composite_C_R0195_T120_P345.wav: Added.
3431         * platform/audio/resources/IRC_Composite_C_R0195_T135_P000.wav: Added.
3432         * platform/audio/resources/IRC_Composite_C_R0195_T135_P015.wav: Added.
3433         * platform/audio/resources/IRC_Composite_C_R0195_T135_P030.wav: Added.
3434         * platform/audio/resources/IRC_Composite_C_R0195_T135_P045.wav: Added.
3435         * platform/audio/resources/IRC_Composite_C_R0195_T135_P060.wav: Added.
3436         * platform/audio/resources/IRC_Composite_C_R0195_T135_P075.wav: Added.
3437         * platform/audio/resources/IRC_Composite_C_R0195_T135_P090.wav: Added.
3438         * platform/audio/resources/IRC_Composite_C_R0195_T135_P315.wav: Added.
3439         * platform/audio/resources/IRC_Composite_C_R0195_T135_P330.wav: Added.
3440         * platform/audio/resources/IRC_Composite_C_R0195_T135_P345.wav: Added.
3441         * platform/audio/resources/IRC_Composite_C_R0195_T150_P000.wav: Added.
3442         * platform/audio/resources/IRC_Composite_C_R0195_T150_P015.wav: Added.
3443         * platform/audio/resources/IRC_Composite_C_R0195_T150_P030.wav: Added.
3444         * platform/audio/resources/IRC_Composite_C_R0195_T150_P045.wav: Added.
3445         * platform/audio/resources/IRC_Composite_C_R0195_T150_P060.wav: Added.
3446         * platform/audio/resources/IRC_Composite_C_R0195_T150_P075.wav: Added.
3447         * platform/audio/resources/IRC_Composite_C_R0195_T150_P090.wav: Added.
3448         * platform/audio/resources/IRC_Composite_C_R0195_T150_P315.wav: Added.
3449         * platform/audio/resources/IRC_Composite_C_R0195_T150_P330.wav: Added.
3450         * platform/audio/resources/IRC_Composite_C_R0195_T150_P345.wav: Added.
3451         * platform/audio/resources/IRC_Composite_C_R0195_T165_P000.wav: Added.
3452         * platform/audio/resources/IRC_Composite_C_R0195_T165_P015.wav: Added.
3453         * platform/audio/resources/IRC_Composite_C_R0195_T165_P030.wav: Added.
3454         * platform/audio/resources/IRC_Composite_C_R0195_T165_P045.wav: Added.
3455         * platform/audio/resources/IRC_Composite_C_R0195_T165_P060.wav: Added.
3456         * platform/audio/resources/IRC_Composite_C_R0195_T165_P075.wav: Added.
3457         * platform/audio/resources/IRC_Composite_C_R0195_T165_P090.wav: Added.
3458         * platform/audio/resources/IRC_Composite_C_R0195_T165_P315.wav: Added.
3459         * platform/audio/resources/IRC_Composite_C_R0195_T165_P330.wav: Added.
3460         * platform/audio/resources/IRC_Composite_C_R0195_T165_P345.wav: Added.
3461         * platform/audio/resources/IRC_Composite_C_R0195_T180_P000.wav: Added.
3462         * platform/audio/resources/IRC_Composite_C_R0195_T180_P015.wav: Added.
3463         * platform/audio/resources/IRC_Composite_C_R0195_T180_P030.wav: Added.
3464         * platform/audio/resources/IRC_Composite_C_R0195_T180_P045.wav: Added.
3465         * platform/audio/resources/IRC_Composite_C_R0195_T180_P060.wav: Added.
3466         * platform/audio/resources/IRC_Composite_C_R0195_T180_P075.wav: Added.
3467         * platform/audio/resources/IRC_Composite_C_R0195_T180_P090.wav: Added.
3468         * platform/audio/resources/IRC_Composite_C_R0195_T180_P315.wav: Added.
3469         * platform/audio/resources/IRC_Composite_C_R0195_T180_P330.wav: Added.
3470         * platform/audio/resources/IRC_Composite_C_R0195_T180_P345.wav: Added.
3471         * platform/audio/resources/IRC_Composite_C_R0195_T195_P000.wav: Added.
3472         * platform/audio/resources/IRC_Composite_C_R0195_T195_P015.wav: Added.
3473         * platform/audio/resources/IRC_Composite_C_R0195_T195_P030.wav: Added.
3474         * platform/audio/resources/IRC_Composite_C_R0195_T195_P045.wav: Added.
3475         * platform/audio/resources/IRC_Composite_C_R0195_T195_P060.wav: Added.
3476         * platform/audio/resources/IRC_Composite_C_R0195_T195_P075.wav: Added.
3477         * platform/audio/resources/IRC_Composite_C_R0195_T195_P090.wav: Added.
3478         * platform/audio/resources/IRC_Composite_C_R0195_T195_P315.wav: Added.
3479         * platform/audio/resources/IRC_Composite_C_R0195_T195_P330.wav: Added.
3480         * platform/audio/resources/IRC_Composite_C_R0195_T195_P345.wav: Added.
3481         * platform/audio/resources/IRC_Composite_C_R0195_T210_P000.wav: Added.
3482         * platform/audio/resources/IRC_Composite_C_R0195_T210_P015.wav: Added.
3483         * platform/audio/resources/IRC_Composite_C_R0195_T210_P030.wav: Added.
3484         * platform/audio/resources/IRC_Composite_C_R0195_T210_P045.wav: Added.
3485         * platform/audio/resources/IRC_Composite_C_R0195_T210_P060.wav: Added.
3486         * platform/audio/resources/IRC_Composite_C_R0195_T210_P075.wav: Added.
3487         * platform/audio/resources/IRC_Composite_C_R0195_T210_P090.wav: Added.
3488         * platform/audio/resources/IRC_Composite_C_R0195_T210_P315.wav: Added.
3489         * platform/audio/resources/IRC_Composite_C_R0195_T210_P330.wav: Added.
3490         * platform/audio/resources/IRC_Composite_C_R0195_T210_P345.wav: Added.
3491         * platform/audio/resources/IRC_Composite_C_R0195_T225_P000.wav: Added.
3492         * platform/audio/resources/IRC_Composite_C_R0195_T225_P015.wav: Added.
3493         * platform/audio/resources/IRC_Composite_C_R0195_T225_P030.wav: Added.
3494         * platform/audio/resources/IRC_Composite_C_R0195_T225_P045.wav: Added.
3495         * platform/audio/resources/IRC_Composite_C_R0195_T225_P060.wav: Added.
3496         * platform/audio/resources/IRC_Composite_C_R0195_T225_P075.wav: Added.
3497         * platform/audio/resources/IRC_Composite_C_R0195_T225_P090.wav: Added.
3498         * platform/audio/resources/IRC_Composite_C_R0195_T225_P315.wav: Added.
3499         * platform/audio/resources/IRC_Composite_C_R0195_T225_P330.wav: Added.
3500         * platform/audio/resources/IRC_Composite_C_R0195_T225_P345.wav: Added.
3501         * platform/audio/resources/IRC_Composite_C_R0195_T240_P000.wav: Added.
3502         * platform/audio/resources/IRC_Composite_C_R0195_T240_P015.wav: Added.
3503         * platform/audio/resources/IRC_Composite_C_R0195_T240_P030.wav: Added.
3504         * platform/audio/resources/IRC_Composite_C_R0195_T240_P045.wav: Added.
3505         * platform/audio/resources/IRC_Composite_C_R0195_T240_P060.wav: Added.
3506         * platform/audio/resources/IRC_Composite_C_R0195_T240_P075.wav: Added.
3507         * platform/audio/resources/IRC_Composite_C_R0195_T240_P090.wav: Added.
3508         * platform/audio/resources/IRC_Composite_C_R0195_T240_P315.wav: Added.
3509         * platform/audio/resources/IRC_Composite_C_R0195_T240_P330.wav: Added.
3510         * platform/audio/resources/IRC_Composite_C_R0195_T240_P345.wav: Added.
3511         * platform/audio/resources/IRC_Composite_C_R0195_T255_P000.wav: Added.
3512         * platform/audio/resources/IRC_Composite_C_R0195_T255_P015.wav: Added.
3513         * platform/audio/resources/IRC_Composite_C_R0195_T255_P030.wav: Added.
3514         * platform/audio/resources/IRC_Composite_C_R0195_T255_P045.wav: Added.
3515         * platform/audio/resources/IRC_Composite_C_R0195_T255_P060.wav: Added.
3516         * platform/audio/resources/IRC_Composite_C_R0195_T255_P075.wav: Added.
3517         * platform/audio/resources/IRC_Composite_C_R0195_T255_P090.wav: Added.
3518         * platform/audio/resources/IRC_Composite_C_R0195_T255_P315.wav: Added.
3519         * platform/audio/resources/IRC_Composite_C_R0195_T255_P330.wav: Added.
3520         * platform/audio/resources/IRC_Composite_C_R0195_T255_P345.wav: Added.
3521         * platform/audio/resources/IRC_Composite_C_R0195_T270_P000.wav: Added.
3522         * platform/audio/resources/IRC_Composite_C_R0195_T270_P015.wav: Added.
3523         * platform/audio/resources/IRC_Composite_C_R0195_T270_P030.wav: Added.
3524         * platform/audio/resources/IRC_Composite_C_R0195_T270_P045.wav: Added.
3525         * platform/audio/resources/IRC_Composite_C_R0195_T270_P060.wav: Added.
3526         * platform/audio/resources/IRC_Composite_C_R0195_T270_P075.wav: Added.
3527         * platform/audio/resources/IRC_Composite_C_R0195_T270_P090.wav: Added.
3528         * platform/audio/resources/IRC_Composite_C_R0195_T270_P315.wav: Added.
3529         * platform/audio/resources/IRC_Composite_C_R0195_T270_P330.wav: Added.
3530         * platform/audio/resources/IRC_Composite_C_R0195_T270_P345.wav: Added.
3531         * platform/audio/resources/IRC_Composite_C_R0195_T285_P000.wav: Added.
3532         * platform/audio/resources/IRC_Composite_C_R0195_T285_P015.wav: Added.
3533         * platform/audio/resources/IRC_Composite_C_R0195_T285_P030.wav: Added.
3534         * platform/audio/resources/IRC_Composite_C_R0195_T285_P045.wav: Added.
3535         * platform/audio/resources/IRC_Composite_C_R0195_T285_P060.wav: Added.
3536         * platform/audio/resources/IRC_Composite_C_R0195_T285_P075.wav: Added.
3537         * platform/audio/resources/IRC_Composite_C_R0195_T285_P090.wav: Added.
3538         * platform/audio/resources/IRC_Composite_C_R0195_T285_P315.wav: Added.
3539         * platform/audio/resources/IRC_Composite_C_R0195_T285_P330.wav: Added.
3540         * platform/audio/resources/IRC_Composite_C_R0195_T285_P345.wav: Added.
3541         * platform/audio/resources/IRC_Composite_C_R0195_T300_P000.wav: Added.
3542         * platform/audio/resources/IRC_Composite_C_R0195_T300_P015.wav: Added.
3543         * platform/audio/resources/IRC_Composite_C_R0195_T300_P030.wav: Added.
3544         * platform/audio/resources/IRC_Composite_C_R0195_T300_P045.wav: Added.
3545         * platform/audio/resources/IRC_Composite_C_R0195_T300_P060.wav: Added.
3546         * platform/audio/resources/IRC_Composite_C_R0195_T300_P075.wav: Added.
3547         * platform/audio/resources/IRC_Composite_C_R0195_T300_P090.wav: Added.
3548         * platform/audio/resources/IRC_Composite_C_R0195_T300_P315.wav: Added.
3549         * platform/audio/resources/IRC_Composite_C_R0195_T300_P330.wav: Added.
3550         * platform/audio/resources/IRC_Composite_C_R0195_T300_P345.wav: Added.
3551         * platform/audio/resources/IRC_Composite_C_R0195_T315_P000.wav: Added.
3552         * platform/audio/resources/IRC_Composite_C_R0195_T315_P015.wav: Added.
3553         * platform/audio/resources/IRC_Composite_C_R0195_T315_P030.wav: Added.
3554         * platform/audio/resources/IRC_Composite_C_R0195_T315_P045.wav: Added.
3555         * platform/audio/resources/IRC_Composite_C_R0195_T315_P060.wav: Added.
3556         * platform/audio/resources/IRC_Composite_C_R0195_T315_P075.wav: Added.
3557         * platform/audio/resources/IRC_Composite_C_R0195_T315_P090.wav: Added.
3558         * platform/audio/resources/IRC_Composite_C_R0195_T315_P315.wav: Added.
3559         * platform/audio/resources/IRC_Composite_C_R0195_T315_P330.wav: Added.
3560         * platform/audio/resources/IRC_Composite_C_R0195_T315_P345.wav: Added.
3561         * platform/audio/resources/IRC_Composite_C_R0195_T330_P000.wav: Added.
3562         * platform/audio/resources/IRC_Composite_C_R0195_T330_P015.wav: Added.
3563         * platform/audio/resources/IRC_Composite_C_R0195_T330_P030.wav: Added.
3564         * platform/audio/resources/IRC_Composite_C_R0195_T330_P045.wav: Added.
3565         * platform/audio/resources/IRC_Composite_C_R0195_T330_P060.wav: Added.
3566         * platform/audio/resources/IRC_Composite_C_R0195_T330_P075.wav: Added.
3567         * platform/audio/resources/IRC_Composite_C_R0195_T330_P090.wav: Added.
3568         * platform/audio/resources/IRC_Composite_C_R0195_T330_P315.wav: Added.
3569         * platform/audio/resources/IRC_Composite_C_R0195_T330_P330.wav: Added.
3570         * platform/audio/resources/IRC_Composite_C_R0195_T330_P345.wav: Added.
3571         * platform/audio/resources/IRC_Composite_C_R0195_T345_P000.wav: Added.
3572         * platform/audio/resources/IRC_Composite_C_R0195_T345_P015.wav: Added.
3573         * platform/audio/resources/IRC_Composite_C_R0195_T345_P030.wav: Added.
3574         * platform/audio/resources/IRC_Composite_C_R0195_T345_P045.wav: Added.
3575         * platform/audio/resources/IRC_Composite_C_R0195_T345_P060.wav: Added.
3576         * platform/audio/resources/IRC_Composite_C_R0195_T345_P075.wav: Added.
3577         * platform/audio/resources/IRC_Composite_C_R0195_T345_P090.wav: Added.
3578         * platform/audio/resources/IRC_Composite_C_R0195_T345_P315.wav: Added.
3579         * platform/audio/resources/IRC_Composite_C_R0195_T345_P330.wav: Added.
3580         * platform/audio/resources/IRC_Composite_C_R0195_T345_P345.wav: Added.
3581
3582 2010-12-21  Geoffrey Garen  <ggaren@apple.com>
3583
3584         Reviewed by Gavin Barraclough & Oliver Hunt.
3585
3586         Added PageAllocationAligned, a cross-platform abstraction for memory allocations with arbitrary alignment requirements
3587         https://bugs.webkit.org/show_bug.cgi?id=51359
3588
3589         * ForwardingHeaders/wtf/PageAllocationAligned.h: Added.
3590
3591 2010-12-21  Ariya Hidayat  <ariya@sencha.com>
3592
3593         Reviewed by Simon Fraser.
3594
3595         https://bugs.webkit.org/show_bug.cgi?id=49774
3596         Need to scale translation values in matrix() by the zoom factor.
3597
3598         Test: fast/transforms/matrix-with-zoom.html
3599
3600         * css/CSSStyleSelector.cpp:
3601         (WebCore::CSSStyleSelector::createTransformOperations):
3602
3603 2010-12-21  Jian Li  <jianli@chromium.org>
3604
3605         Reviewed by Darin Adler.
3606
3607         Fix bug 51366: REGRESSION (r66452): Form data no longer contains
3608         'Content-Type' header for files with unrecognized extensions
3609         https://bugs.webkit.org/show_bug.cgi?id=51366
3610
3611         Test: http/tests/local/formdata/form-data-with-unknown-file-extension.html
3612
3613         * platform/network/FormData.cpp:
3614         (WebCore::FormData::appendKeyValuePairItems):
3615
3616 2010-12-21  Darin Adler  <darin@apple.com>
3617
3618         Reviewed by Sam Weinig.
3619
3620         Mac WebKit delivers an extra didCommit when loading web archives
3621         https://bugs.webkit.org/show_bug.cgi?id=51419
3622
3623         Could not find a simple way to test this in WebKit1, but in WebKit2
3624         it leads to an immediate failure when loading a web archive. Tested
3625         that making the Mac share the same code path with other platforms
3626         works fine in WebKit1.
3627
3628         * loader/FrameLoader.cpp:
3629         (WebCore::FrameLoader::finishedLoadingDocument): Removed special case for
3630         the Mac platform. Also removed the call to isArchiveMimeType since we
3631         get a 0 from ArchiveFactory::create in that case.
3632
3633         * loader/archive/ArchiveFactory.cpp:
3634         (WebCore::ArchiveFactory::isArchiveMimeType): Hardened slightly by
3635         adding a special case for null and empty strings, since hash tables can't
3636         handle null strings.
3637         (WebCore::ArchiveFactory::create): Ditto.
3638
3639 2010-12-21  Yong Li  <yoli@rim.com>
3640
3641         Reviewed by Adam Barth.
3642
3643         Suspend HTMLParserScheduler when page load is deferred to
3644         avoid potential JS re-entrancy. Otherwise, when JS execution is triggered
3645         from an external script or by events, and is blocked by a modal dialog,
3646         WebKit can parse more HTML source and also start another JS execution.
3647         
3648         https://bugs.webkit.org/show_bug.cgi?id=48077
3649
3650         Test case: WebCore/manual-tests/bugzilla-48077.html.
3651
3652         * dom/DocumentParser.cpp:
3653         (WebCore::DocumentParser::suspendParsing):
3654         (WebCore::DocumentParser::resumeParsing):
3655         * dom/DocumentParser.h:
3656         * html/parser/HTMLDocumentParser.cpp:
3657         (WebCore::HTMLDocumentParser::suspendParsing):
3658         (WebCore::HTMLDocumentParser::resumeParsing):
3659         * html/parser/HTMLParserScheduler.cpp:
3660         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3661         (WebCore::HTMLParserScheduler::suspend):
3662         (WebCore::HTMLParserScheduler::resume):
3663         * html/parser/HTMLParserScheduler.h:
3664         (WebCore::HTMLParserScheduler::isScheduledForResume):
3665         * page/PageGroupLoadDeferrer.cpp:
3666         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3667         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3668
3669 2010-12-21  Anders Carlsson  <andersca@apple.com>
3670
3671         Reviewed by John Sullivan.
3672
3673         Clicking missing plug-in text does not show a sheet
3674         https://bugs.webkit.org/show_bug.cgi?id=51403
3675
3676         * WebCore.exp.in:
3677         Export symbols needed by WebKit2.
3678
3679         * WebCore.xcodeproj/project.pbxproj:
3680         Make HTMLPlugInImageElement.h a private header.
3681
3682         * html/HTMLPlugInImageElement.h:
3683         (WebCore::HTMLPlugInImageElement::serviceType):
3684         (WebCore::HTMLPlugInImageElement::url):
3685         Make these member functions public.
3686
3687 2010-12-21  Andras Becsi  <abecsi@webkit.org>
3688
3689         Unreviewed build fix.
3690
3691         [Qt] Fix the build with USE_GSTREAMER=1
3692
3693         No new tests needed.
3694
3695         * WebCore.pro: remove nonexisting DataSourceGStreamer sources.
3696
3697 2010-12-21  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
3698
3699         Reviewed by Andreas Kling.
3700
3701         [Qt] QtWebKit doesn't build in debug on Windows
3702         https://bugs.webkit.org/show_bug.cgi?id=41930
3703
3704         Disable incremental linking in windows 32bit debug version as webkit is so 
3705         big it fails to link incremental. 
3706
3707         Build fix. No new test cases added. 
3708
3709         * WebCore.pro:
3710
3711 2010-12-21  Dominic Cooney  <dominicc@google.com>
3712
3713         Reviewed by Adam Barth.
3714
3715         Rename Node::isShadowNode to isShadowRoot
3716         https://bugs.webkit.org/show_bug.cgi?id=51060
3717
3718         The method gets whether the node is the root of a shadow tree;
3719         renamed to reflect intent.
3720
3721         A simple rename--no new tests needed.
3722
3723         * css/CSSStyleSelector.cpp:
3724         (WebCore::CSSStyleSelector::initForStyleResolve):
3725         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
3726         * dom/Node.cpp:
3727         (WebCore::Node::shadowTreeRootNode):
3728         (WebCore::Node::isInShadowTree):
3729         (WebCore::eventTargetRespectingSVGTargetRules):
3730         (WebCore::Node::getEventAncestors):
3731         * dom/Node.h:
3732         (WebCore::Node::isShadowRoot):
3733         * dom/Range.cpp:
3734         (WebCore::Range::checkNodeBA):
3735         * page/DragController.cpp:
3736         (WebCore::asFileInput):
3737         * page/EventHandler.cpp:
3738         (WebCore::EventHandler::handleMousePressEvent):
3739         (WebCore::EventHandler::dispatchMouseEvent):
3740         * rendering/RenderBlock.cpp:
3741         (WebCore::RenderBlock::hasLineIfEmpty):
3742         * rendering/TextControlInnerElements.cpp:
3743         (WebCore::TextControlInnerElement::attachInnerElement):
3744         * svg/SVGStyledElement.cpp:
3745         (WebCore::SVGStyledElement::title):
3746         * svg/SVGUseElement.cpp:
3747         (WebCore::ShadowTreeUpdateBlocker::while):
3748         * svg/animation/SVGSMILElement.cpp:
3749         (WebCore::SVGSMILElement::insertedIntoDocument):
3750
3751 2010-12-20  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
3752
3753         Reviewed by Andreas Kling.
3754
3755         Qt port of geolocation, geoposition objects timestamp was in seconds
3756         instead of miliseconds as per HTML5 Geolocation standards.
3757         Ref: http://dev.w3.org/geo/api/spec-source.html#position_interface 
3758         http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp 
3759
3760         Implemented by Asheesh Srivastava.
3761
3762         [QT] QtWebkit geolocation's position.timestamp is not in miliseconds
3763         https://bugs.webkit.org/show_bug.cgi?id=51100
3764
3765         Porting code not covered in layout testing. No new tests added.
3766
3767         * platform/qt/GeolocationServiceQt.cpp:
3768         (WebCore::GeolocationServiceQt::positionUpdated):
3769
3770 2010-12-20  Yuzo Fujishima  <yuzo@google.com>
3771
3772         Reviewed by Eric Seidel.
3773
3774         Fix for Bug 26183 - [@font-face] font-family descriptor with multiple names should be discarded
3775         https://bugs.webkit.org/show_bug.cgi?id=26183
3776
3777         Test: fast/css/font-face-font-family-descriptor.html
3778
3779         * css/CSSParser.cpp:
3780         (WebCore::CSSParser::createFontFaceRule): Consider @font-face rule
3781         invalid if its font-family descriptor has multiple (or zero) families.
3782
3783 2010-12-20  Pavel Feldman  <pfeldman@chromium.org>
3784
3785         Reviewed by Yury Semikhatsky.
3786
3787         Web Inspector: fall back to object formatting in case dom is not yet loaded.
3788         https://bugs.webkit.org/show_bug.cgi?id=44273
3789
3790         Sometimes DOM is loaded after the inline message is being formatted, so we get
3791         no nodeId for it. Let us fall back to object formatting in such cases.
3792
3793         * inspector/front-end/ConsoleView.js:
3794         (WebInspector.ConsoleView.prototype._formatnode):
3795         (WebInspector.ConsoleMessage):
3796
3797 2010-12-20  Pavel Feldman  <pfeldman@chromium.org>
3798
3799         Reviewed by Joseph Pecoraro.
3800
3801         Web Inspector: cycle through tag name / attributes / new attribute on Tab.
3802
3803         https://bugs.webkit.org/show_bug.cgi?id=38429
3804
3805         * inspector/front-end/ElementsTreeOutline.js:
3806         (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.moveToNextAttributeIfNeeded):
3807
3808 2010-12-20  Yuta Kitamura  <yutak@chromium.org>
3809
3810         Reviewed by Alexey Proskuryakov.
3811
3812         WebSocket errors should be logged to console
3813         https://bugs.webkit.org/show_bug.cgi?id=40945
3814
3815         Test: http/tests/inspector/console-websocket-error.html
3816
3817         * platform/network/SocketStreamErrorBase.cpp:
3818         (WebCore::SocketStreamErrorBase::compare):
3819         * platform/network/SocketStreamErrorBase.h:
3820         (WebCore::SocketStreamErrorBase::failingURL):
3821         (WebCore::SocketStreamErrorBase::localizedDescription):
3822         (WebCore::SocketStreamErrorBase::SocketStreamErrorBase):
3823         * platform/network/cf/SocketStreamError.h:
3824         (WebCore::SocketStreamError::SocketStreamError):
3825         * platform/network/cf/SocketStreamHandle.h:
3826         * platform/network/cf/SocketStreamHandleCFNet.cpp:
3827         (WebCore::SocketStreamHandle::readStreamCallback):
3828         (WebCore::SocketStreamHandle::writeStreamCallback):
3829         (WebCore::SocketStreamHandle::reportErrorToClient):
3830         * websockets/WebSocketChannel.cpp:
3831         (WebCore::WebSocketChannel::didFail):
3832
3833 2010-12-17  MORITA Hajime  <morrita@google.com>
3834
3835         Reviewed by James Robinson.
3836
3837         https://bugs.webkit.org/show_bug.cgi?id=51240
3838         [Chromium][Skia] Border with a color with alpha != 1 breaks webkit gradient on skia.
3839
3840         Even after a shader was set, old color value had been remaining and passed to Skia.
3841         Then Skia refered an alpha component of that color to make pixels transparent.
3842         This change invalidates existing color value when a shader is given, 
3843         which means the renderer will paint shapes with gradients or patterns.
3844         
3845         Test: fast/gradients/gradient-after-transparent-border.html
3846
3847         * platform/graphics/skia/PlatformContextSkia.cpp:
3848         (WebCore::PlatformContextSkia::setStrokeShader):
3849         (WebCore::PlatformContextSkia::setFillShader):
3850
3851 2010-12-20  Xiaomei Ji  <xji@chromium.org>
3852
3853         Reviewed by Dan Bernstein.
3854
3855         Fix move left/right by character hang.
3856         https://bugs.webkit.org/show_bug.cgi?id=51344
3857
3858         Test: editing/selection/51344.html
3859
3860         * editing/VisiblePosition.cpp:
3861         (WebCore::VisiblePosition::leftVisuallyDistinctCandidate):
3862         (WebCore::VisiblePosition::rightVisuallyDistinctCandidate):
3863
3864 2010-12-20  Steve Lacey  <sjl@chromium.org>
3865
3866         Reviewed by David Levin.
3867
3868         Add missing default styles in mediaControlsChromium.css to prevent
3869         user overrides.
3870         https://bugs.webkit.org/show_bug.cgi?id=51360
3871
3872         No new tests needed as functionality is covered by existing layout
3873         tests.
3874
3875
3876         * css/mediaControlsChromium.css:
3877         (audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
3878         (audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
3879
3880 2010-12-20  Jian Li  <jianli@chromium.org>
3881
3882         Reviewed by David Levin.
3883
3884         Add lastModifiedDate attribute to File interface per File API spec
3885         https://bugs.webkit.org/show_bug.cgi?id=49895
3886
3887         lastModifiedDate is not supported for GObject bindings because Date is
3888         not support in code generation.
3889
3890         Test: http/tests/local/fileapi/file-last-modified.html
3891
3892         * fileapi/File.cpp:
3893         (WebCore::File::lastModifiedDate):
3894         * fileapi/File.h:
3895         * fileapi/File.idl:
3896
3897 2010-12-20  Mark Rowe  <mrowe@apple.com>
3898
3899         Reviewed by Dan Bernstein.
3900
3901         <rdar://problem/8757601> Don't install header files in to the Resources directory.
3902
3903         * WebCore.xcodeproj/project.pbxproj:
3904
3905 2010-12-20  Andrei Popescu  <andreip@google.com>
3906
3907         Reviewed by Jeremy Orlow.
3908
3909         [Chromium] v8/SerializedScriptValue::readUint32 treats incoming raw values as signed instead of unsigned
3910         https://bugs.webkit.org/show_bug.cgi?id=51338
3911
3912         * bindings/v8/SerializedScriptValue.cpp:
3913         (WebCore::ZigZag::Reader::readUint32):
3914
3915 2010-12-20  Beth Dakin  <bdakin@apple.com>
3916
3917         Reviewed by Ada Chan.
3918
3919         Fix for https://bugs.webkit.org/show_bug.cgi?id=51355 Crash in 
3920         RenderMathMLSubSup::layout() because of null base
3921         -and corresponding-
3922         <rdar://problem/8712200>
3923
3924         Only use base inside if(base) block.
3925         * mathml/RenderMathMLSubSup.cpp:
3926         (WebCore::RenderMathMLSubSup::layout):
3927
3928 2010-12-20  Enrica Casucci  <enrica@apple.com>
3929
3930         Reviewed by Darin Adler.
3931
3932         Crash at WebCore::SplitElementCommand::SplitElementCommand
3933         https://bugs.webkit.org/show_bug.cgi?id=51278
3934         <rdar://problem/7347139> 
3935
3936         Executing outdent command on an inline blockquote that is
3937         not the first element in a block causes a crash.
3938         The fix consists in chaging the was the start of block is
3939         calculated in case of the inline blockquote.
3940         
3941         Test: editing/execCommand/outdent-inline-blockquote.html
3942               editing/execCommand/outdent-inline-list.html
3943
3944         * editing/IndentOutdentCommand.cpp:
3945         (WebCore::IndentOutdentCommand::outdentParagraph):
3946
3947 2010-12-20  Oliver Hunt  <oliver@apple.com>
3948
3949         Reviewed by Darin Adler.
3950
3951         Need to support serialisation of cyclic graphs in the internal structured cloning algorithm
3952         https://bugs.webkit.org/show_bug.cgi?id=51353
3953
3954         The Internal Structured Clone algorithm has been changed to allow (and
3955         correctly clone) cyclic graphs.  This patch updates our implementation
3956         to provide that functionality.
3957
3958         I've bumped the serialization version number, and added ObjectReferenceTag
3959         to represent references to objects that have already been seen.
3960
3961         * bindings/js/SerializedScriptValue.cpp:
3962         (WebCore::CloneSerializer::startObjectInternal):
3963           Now that we have something a bit more complex than cycle checking
3964           I've replaced the duplicate code in startObject and startArray with
3965           a shared function that implements that logic to plant an object
3966           reference
3967         (WebCore::CloneSerializer::startObject):
3968         (WebCore::CloneSerializer::startArray):
3969           Lift out duplicate code
3970         (WebCore::CloneSerializer::endObject):
3971           Can't remove objects from the gcbuffer now as they need to remain live
3972           so we can identify graphs
3973         (WebCore::CloneSerializer::writeStringIndex):
3974         (WebCore::CloneSerializer::writeObjectIndex):
3975         (WebCore::CloneSerializer::writeConstantPoolIndex):
3976         (WebCore::CloneSerializer::write):
3977         (WebCore::CloneSerializer::serialize):
3978         (WebCore::CloneDeserializer::readStringIndex):
3979         (WebCore::CloneDeserializer::readConstantPoolIndex):
3980         (WebCore::CloneDeserializer::readTerminal):
3981         (WebCore::CloneDeserializer::deserialize):
3982
3983 2010-12-20  Xan Lopez  <xlopez@igalia.com>
3984
3985         Reviewed by Gustavo Noronha.
3986
3987         * GNUmakefile.am: add missing files.
3988
3989 2010-12-20  Abhishek Arya  <inferno@chromium.org>
3990
3991         Reviewed by James Robinson.
3992
3993         Pass the correct beforeChild value when adding a child to an anonymous table part.
3994         https://bugs.webkit.org/show_bug.cgi?id=50932
3995
3996         When a "before" content child was added to an anonymous table part, it was added
3997         after the last child. This patch fixes the behavior by adding it properly before
3998         the first child.
3999
4000         Test: fast/css-generated-content/table-before-child-add.html
4001
4002         * rendering/RenderTableRow.cpp:
4003         (WebCore::RenderTableRow::addChild):
4004
4005 2010-12-18  Gavin Barraclough  <barraclough@apple.com>
4006
4007         Reviewed by Oliver Hunt.
4008
4009         Bug 26276 - Need a mechanism to determine stack extent
4010
4011         Add forwarding header for StackBounds.h.
4012
4013         * ForwardingHeaders/wtf/StackBounds.h: Added.
4014
4015 2010-12-20  James Robinson  <jamesr@chromium.org>
4016
4017         Unreviewed, rolling out r74278.
4018         http://trac.webkit.org/changeset/74278
4019         https://bugs.webkit.org/show_bug.cgi?id=50833
4020
4021         [chromium] Causes many layout tests to crash
4022
4023         * platform/graphics/chromium/LayerRendererChromium.cpp:
4024         (WebCore::LayerRendererChromium::LayerRendererChromium):
4025         (WebCore::LayerRendererChromium::prepareToDrawLayers):
4026         (WebCore::LayerRendererChromium::drawLayers):
4027         (WebCore::LayerRendererChromium::useRenderSurface):
4028         (WebCore::LayerRendererChromium::setScissorToRect):
4029         * platform/graphics/chromium/LayerRendererChromium.h:
4030
4031 2010-12-20  Geoffrey Garen  <ggaren@apple.com>
4032
4033         Reviewed by Sam Weinig.
4034
4035         Factored common page set management into a new PageBlock base class
4036         https://bugs.webkit.org/show_bug.cgi?id=51285
4037
4038         * ForwardingHeaders/wtf/PageBlock.h: Added.
4039
4040 2010-12-20  Steve Block  <steveblock@google.com>
4041
4042         Reviewed by Jeremy Orlow.
4043
4044         GeolocationPositionCache should do database access on background thread
4045         https://bugs.webkit.org/show_bug.cgi?id=50825
4046
4047         Covered by existing Geolocation tests.
4048
4049         * page/Coordinates.h:
4050         (WebCore::Coordinates::threadSafeCopy):
4051         * page/GeolocationPositionCache.cpp:
4052         (WebCore::GeolocationPositionCache::GeolocationPositionCache):
4053         (WebCore::GeolocationPositionCache::addUser):
4054         (WebCore::GeolocationPositionCache::removeUser):
4055         (WebCore::GeolocationPositionCache::setDatabasePath):
4056         (WebCore::GeolocationPositionCache::setCachedPosition):
4057         (WebCore::GeolocationPositionCache::cachedPosition):
4058         (WebCore::GeolocationPositionCache::startBackgroundThread):
4059         (WebCore::GeolocationPositionCache::threadEntryPoint):
4060         (WebCore::GeolocationPositionCache::threadEntryPointImpl):
4061         (WebCore::GeolocationPositionCache::triggerReadFromDatabase):
4062         (WebCore::GeolocationPositionCache::readFromDatabase):
4063         (WebCore::GeolocationPositionCache::readFromDatabaseImpl):
4064         (WebCore::GeolocationPositionCache::triggerWriteToDatabase):
4065         (WebCore::GeolocationPositionCache::writeToDatabase):
4066         (WebCore::GeolocationPositionCache::writeToDatabaseImpl):
4067         * page/GeolocationPositionCache.h:
4068         * page/Geoposition.h:
4069         (WebCore::Geoposition::threadSafeCopy):
4070         (WebCore::Geoposition::Geoposition):
4071
4072 2010-12-20  Andras Becsi  <abecsi@webkit.org>
4073
4074         Unreviewed build fix.
4075
4076         [Qt][V8] Add  missing sources to the pro file and remove duplications to fix linking.
4077
4078         No new tests needed.
4079
4080         * WebCore.pro:
4081
4082 2010-12-20  Alexander Pavlov  <apavlov@chromium.org>
4083
4084         Reviewed by Yury Semikhatsky.
4085
4086         Web Inspector: Make CSSCompletions a real class rather than singleton
4087         https://bugs.webkit.org/show_bug.cgi?id=51332
4088
4089         Drive-by: make use of keywords from re2js in the CSS tokenizer
4090         (apparently, various authors have presumed that re2js is processed at build time).
4091
4092         No new tests, as this is a refactoring.
4093
4094         * inspector/front-end/CSSCompletions.js:
4095         (WebInspector.CSSCompletions):
4096         (WebInspector.CSSCompletions.prototype.startsWith):
4097         (WebInspector.CSSCompletions.prototype.firstStartsWith):
4098         (WebInspector.CSSCompletions.prototype._firstIndexOfPrefix):
4099         (WebInspector.CSSCompletions.prototype.keySet):
4100         (WebInspector.CSSCompletions.prototype.next):
4101         (WebInspector.CSSCompletions.prototype.previous):
4102         (WebInspector.CSSCompletions.prototype._closest):
4103         * inspector/front-end/SourceCSSTokenizer.js:
4104         (WebInspector.SourceCSSTokenizer):
4105         * inspector/front-end/SourceCSSTokenizer.re2js:
4106         * inspector/front-end/StylesSidebarPane.js:
4107         (WebInspector.StylePropertyTreeElement.prototype):
4108         * inspector/front-end/inspector.js:
4109         (WebInspector.doLoadedDone.propertyNamesCallback):
4110         (WebInspector.doLoadedDone):
4111
4112 2010-12-10  Pavel Podivilov  <podivilov@chromium.org>
4113
4114         Reviewed by Yury Semikhatsky.
4115
4116         Web Inspector: "Add conditional breakpoint" - create breakpoint only after condition is provided.
4117         https://bugs.webkit.org/show_bug.cgi?id=50813
4118
4119         * inspector/front-end/SourceFrame.js:
4120         (WebInspector.SourceFrame.prototype._addBreakpoint):
4121         (WebInspector.SourceFrame.prototype._breakpointRemoved):
4122         (WebInspector.SourceFrame.prototype._breakpointChanged):
4123         (WebInspector.SourceFrame.prototype._setBreakpointDecoration):
4124         (WebInspector.SourceFrame.prototype._removeBreakpointDecoration):
4125         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
4126         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
4127         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
4128         (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
4129         (WebInspector.SourceFrame.prototype._contextMenu):
4130         (WebInspector.SourceFrame.prototype._editBreakpointCondition.finishEditing):
4131         (WebInspector.SourceFrame.prototype._editBreakpointCondition):
4132         (WebInspector.SourceFrame.prototype._continueToLine):
4133         (WebInspector.SourceFrame.prototype._setBreakpoint):
4134
4135 2010-12-20  Andrei Popescu  <andreip@google.com>
4136
4137         Reviewed by Jeremy Orlow.
4138
4139         IDBTransactionBackedImpl instances can be accidentally deleted during calls to abort/commit.
4140         https://bugs.webkit.org/show_bug.cgi?id=51112
4141
4142         Makes IDBTransactionBackendImpl objects take a self reference while executing commit and abort.
4143
4144         Test: storage/indexeddb/transaction-crash-on-abort.html
4145
4146         * storage/IDBTransactionBackendImpl.cpp:
4147         (WebCore::IDBTransactionBackendImpl::abort):
4148         (WebCore::IDBTransactionBackendImpl::commit):
4149
4150 2010-12-20  Andrei Popescu  <andreip@google.com>
4151
4152         Reviewed by Jeremy Orlow.
4153
4154         IDBCursor::delete is not implemented.
4155         https://bugs.webkit.org/show_bug.cgi?id=51110
4156
4157         Implement IDBCursor::delete.
4158         See http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBCursor-delete
4159
4160         Tests: storage/indexeddb/cursor-delete.html
4161                storage/indexeddb/cursor-index-delete.html
4162
4163         * storage/IDBCursor.cpp:
4164         (WebCore::IDBCursor::deleteFunction):
4165         * storage/IDBCursor.h:
4166         * storage/IDBCursor.idl:
4167         * storage/IDBCursorBackendImpl.cpp:
4168         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
4169         (WebCore::IDBCursorBackendImpl::deleteFunction):
4170         (WebCore::IDBCursorBackendImpl::loadCurrentRow):
4171         * storage/IDBCursorBackendImpl.h:
4172         (WebCore::IDBCursorBackendImpl::create):
4173         * storage/IDBCursorBackendInterface.h:
4174         * storage/IDBIndexBackendImpl.cpp:
4175         (WebCore::IDBIndexBackendImpl::openCursorInternal):
4176         * storage/IDBKey.cpp:
4177         (WebCore::IDBKey::fromQuery):
4178         * storage/IDBObjectStoreBackendImpl.cpp:
4179         (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
4180         (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
4181
4182 2010-12-20  Yury Semikhatsky  <yurys@chromium.org>
4183
4184         Reviewed by Pavel Feldman.
4185
4186         Web Inspector: After a multiline command execution Console does not show the command prompt
4187         https://bugs.webkit.org/show_bug.cgi?id=51257
4188
4189         * inspector/front-end/TextPrompt.js:
4190         (WebInspector.TextPrompt.prototype._moveBackInHistory):
<