Web Inspector: get rid of InspectorInstrumentation::inspectorAgents() map
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-08-09  Yury Semikhatsky  <yurys@chromium.org>
2
3         Web Inspector: get rid of InspectorInstrumentation::inspectorAgents() map
4         https://bugs.webkit.org/show_bug.cgi?id=54678
5
6         Added two functions for retrieving InstrumentingAgents from Page and WorkerContext.
7
8         Reviewed by Pavel Feldman.
9
10         * CMakeLists.txt:
11         * GNUmakefile.list.am:
12         * WebCore.gypi:
13         * WebCore.pro:
14         * WebCore.vcproj/WebCore.vcproj:
15         * WebCore.xcodeproj/project.pbxproj:
16         * inspector/InspectorController.cpp:
17         (WebCore::InspectorController::InspectorController):
18         (WebCore::InspectorController::inspectedPageDestroyed):
19         * inspector/InspectorController.h:
20         * inspector/InspectorInstrumentation.cpp:
21         (WebCore::InspectorInstrumentation::instrumentingAgentsForPage):
22         * inspector/InspectorInstrumentation.h:
23         * inspector/InstrumentingAgents.cpp: Copied from Source/WebCore/inspector/WorkerInspectorController.h.
24         (WebCore::instrumentationForPage):
25         (WebCore::instrumentationForWorkerContext):
26         * inspector/InstrumentingAgents.h:
27         * inspector/WorkerInspectorController.h:
28
29 2011-08-09  Vsevolod Vlasov  <vsevik@chromium.org>
30
31         Web Inspector: Add "Refresh" to context menu of resources panel cookies view.
32         https://bugs.webkit.org/show_bug.cgi?id=65854
33
34         Reviewed by Pavel Feldman.
35
36         * inspector/front-end/CookieItemsView.js:
37         (WebInspector.CookieItemsView):
38         (WebInspector.CookieItemsView.prototype._updateWithCookies):
39         (WebInspector.CookieItemsView.prototype._refreshButtonClicked):
40         (WebInspector.CookieItemsView.prototype._contextMenu):
41         * inspector/front-end/CookiesTable.js:
42         (WebInspector.CookiesTable):
43         * inspector/front-end/DataGrid.js:
44         (WebInspector.DataGrid.prototype.get refreshCallback):
45         (WebInspector.DataGrid.prototype.set refreshCallback):
46         (WebInspector.DataGrid.prototype._contextMenuInDataTable):
47         * inspector/front-end/ResourceCookiesView.js:
48         (WebInspector.ResourceCookiesView.prototype._buildCookiesTable):
49
50 2011-08-09  Vsevolod Vlasov  <vsevik@chromium.org>
51
52         Web Inspector: Resources panel does not show main resource cookies.
53         https://bugs.webkit.org/show_bug.cgi?id=65770
54
55         Reviewed by Pavel Feldman.
56
57         Test: http/tests/inspector/resource-main-cookies.php
58
59         * inspector/InspectorPageAgent.cpp:
60         (WebCore::allResourcesURLsForFrame):
61         (WebCore::InspectorPageAgent::getCookies):
62         (WebCore::InspectorPageAgent::deleteCookie):
63
64 2011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
65
66         Unreviewed, rolling out r92670.
67         http://trac.webkit.org/changeset/92670
68         https://bugs.webkit.org/show_bug.cgi?id=65905
69
70         It broke 3 inspector tests (Requested by Ossy on #webkit).
71
72         * inspector/InjectedScript.cpp:
73         (WebCore::InjectedScript::getProperties):
74         * inspector/InjectedScript.h:
75         * inspector/InjectedScriptSource.js:
76         (.):
77         * inspector/Inspector.json:
78         * inspector/InspectorRuntimeAgent.cpp:
79         (WebCore::InspectorRuntimeAgent::getProperties):
80         * inspector/InspectorRuntimeAgent.h:
81         * inspector/front-end/ObjectPropertiesSection.js:
82         (WebInspector.ObjectPropertyTreeElement.prototype.ondblclick):
83         (WebInspector.ObjectPropertyTreeElement.prototype.update):
84         * inspector/front-end/RemoteObject.js:
85         (WebInspector.RemoteObject.prototype.getOwnProperties):
86         (WebInspector.RemoteObject.prototype.getAllProperties):
87         (WebInspector.RemoteObject.prototype._getProperties.remoteObjectBinder):
88         (WebInspector.RemoteObject.prototype._getProperties):
89         (WebInspector.RemoteObjectProperty):
90         * inspector/front-end/inspector.css:
91         (.section .properties .value.dimmed):
92
93 2011-08-09  Pavel Feldman  <pfeldman@google.com>
94
95         Web Inspector: there should be a way to tell what properties are non-enumerable when expanding objects.
96         https://bugs.webkit.org/show_bug.cgi?id=65518
97
98         Reviewed by Yury Semikhatsky.
99
100         * inspector/InjectedScript.cpp:
101         (WebCore::InjectedScript::getProperties):
102         * inspector/InjectedScript.h:
103         * inspector/InjectedScriptSource.js:
104         (.):
105         * inspector/Inspector.json:
106         * inspector/InspectorRuntimeAgent.cpp:
107         (WebCore::InspectorRuntimeAgent::getProperties):
108         * inspector/InspectorRuntimeAgent.h:
109         * inspector/front-end/ObjectPropertiesSection.js:
110         (WebInspector.ObjectPropertyTreeElement.prototype.ondblclick):
111         (WebInspector.ObjectPropertyTreeElement.prototype.update):
112         * inspector/front-end/RemoteObject.js:
113         (WebInspector.RemoteObject.prototype.getOwnProperties):
114         (WebInspector.RemoteObject.prototype.getAllProperties):
115         (WebInspector.RemoteObjectProperty):
116         * inspector/front-end/inspector.css:
117         (.section .properties .dimmed):
118
119 2011-08-08  Steve Block  <steveblock@google.com>
120
121         Removes V8's JavaInstanceJobject, JavaClassJobject and JavaFieldJobject.
122         https://bugs.webkit.org/show_bug.cgi?id=57859
123
124         Reviewed by Alexey Proskuryakov.
125
126         This effectively reverts the changes made in Bugs 55383, 57533 and
127         55766. These classes were only used by Android. In the future, Android
128         will use the Chromium WebKit API to implement the Java bridge.
129
130         Towards this goal, this patch ...
131         - Simplfies the JavaInstance, JavaClass and JavaField interfaces for V8.
132           These interfaces will be implemented in Chromium's WebKit layer.
133         - Adds a JavaMethod interface for V8
134         - Removes the jvalue <-> JavaValue conversion functions for V8, which are
135           now superfluous
136         - Removes the calls to JavaInstance::begin()/end() for V8, which are now
137           superfluous
138
139         Will be covered by existing tests once the Chromium WebKit layer is complete.
140
141         * WebCore.gypi:
142         * bridge/jni/v8/JNIUtilityPrivate.cpp:
143         * bridge/jni/v8/JNIUtilityPrivate.h:
144         * bridge/jni/v8/JavaClassJobjectV8.cpp: Removed.
145         * bridge/jni/v8/JavaFieldJobjectV8.cpp: Removed.
146         * bridge/jni/v8/JavaFieldJobjectV8.h: Removed.
147         * bridge/jni/v8/JavaFieldV8.h:
148         * bridge/jni/v8/JavaInstanceJobjectV8.cpp: Removed.
149         * bridge/jni/v8/JavaInstanceJobjectV8.h: Removed.
150         * bridge/jni/v8/JavaInstanceV8.h:
151         * bridge/jni/v8/JavaMethodV8.h:
152         (JSC::Bindings::JavaMethod::~JavaMethod):
153         * bridge/jni/v8/JavaNPObjectV8.cpp:
154         (JSC::Bindings::JavaNPObjectHasMethod):
155         (JSC::Bindings::JavaNPObjectInvoke):
156         (JSC::Bindings::JavaNPObjectHasProperty):
157         (JSC::Bindings::JavaNPObjectGetProperty):
158
159 2011-08-08  Chris Rogers  <crogers@google.com>
160
161         Fix thread-safety of AudioNode deletion
162         https://bugs.webkit.org/show_bug.cgi?id=65888
163
164         Reviewed by Kenneth Russell
165
166         No new tests - JavaScript API is not affected.
167
168         * webaudio/AudioContext.cpp:
169         (WebCore::AudioContext::AudioContext):
170         (WebCore::AudioContext::constructCommon):
171         (WebCore::AudioContext::~AudioContext):
172         (WebCore::AudioContext::uninitialize):
173         (WebCore::AudioContext::handlePostRenderTasks):
174         (WebCore::AudioContext::scheduleNodeDeletion):
175         (WebCore::AudioContext::deleteMarkedNodesDispatch):
176         (WebCore::AudioContext::deleteMarkedNodes):
177         * webaudio/AudioContext.h:
178
179 2011-08-08  Chris Marrin  <cmarrin@apple.com>
180
181         Fix build breakage caused by http://trac.webkit.org/changeset/92651
182
183         Unreviewed.
184
185         * WebCore.exp.in:
186
187 2011-08-08  Chris Marrin  <cmarrin@apple.com>
188
189         Logic to compute visible display rect in GraphicsLayerCA::syncCompositingState
190         https://bugs.webkit.org/show_bug.cgi?id=65708
191
192         Add logic to syncCompositingState to compute the visible rect for each
193         layer. This can be used to synchronously render the visible tiles of a
194         TiledLayer and avoid the flashing that often occurs when tiles are rendered
195         asynchronously. A new synchronouslyDisplayTilesInRect is also added to do
196         the actual rendering, but the call is not currently being made.
197
198         Reviewed by Simon Fraser.
199
200         * page/FrameView.cpp:
201         (WebCore::FrameView::syncCompositingStateForThisFrame):
202         * platform/graphics/GraphicsLayer.h:
203         (WebCore::GraphicsLayer::syncCompositingState):
204         * platform/graphics/ca/GraphicsLayerCA.cpp:
205         (WebCore::GraphicsLayerCA::syncCompositingState):
206         (WebCore::GraphicsLayerCA::recursiveCommitChanges):
207         (WebCore::GraphicsLayerCA::platformCALayerPaintContents):
208         (WebCore::GraphicsLayerCA::updateSublayerList):
209         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
210         * platform/graphics/ca/GraphicsLayerCA.h:
211         * platform/graphics/ca/PlatformCALayer.h:
212         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
213         (PlatformCALayer::synchronouslyDisplayTilesInRect):
214         * platform/graphics/transforms/TransformState.cpp:
215         (WebCore::TransformState::operator=):
216         * platform/graphics/transforms/TransformState.h:
217         (WebCore::TransformState::TransformState):
218         * rendering/RenderLayerCompositor.cpp:
219         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
220
221 2011-08-08  Sheriff Bot  <webkit.review.bot@gmail.com>
222
223         Unreviewed, rolling out r92619.
224         http://trac.webkit.org/changeset/92619
225         https://bugs.webkit.org/show_bug.cgi?id=65881
226
227         This patch breaks chromium canary (Requested by jianli on
228         #webkit).
229
230         * bindings/v8/V8Binding.h:
231         * bindings/v8/V8GCController.cpp:
232         (WebCore::globalHandleMap):
233         (WebCore::enumerateGlobalHandles):
234         (WebCore::V8GCController::registerGlobalHandle):
235         (WebCore::V8GCController::unregisterGlobalHandle):
236         * bindings/v8/V8HiddenPropertyName.cpp:
237         (WebCore::V8HiddenPropertyName::createString):
238         * bindings/v8/V8HiddenPropertyName.h:
239         * bindings/v8/V8LazyEventListener.cpp:
240         (WebCore::V8LazyEventListener::prepareListenerObject):
241         * bindings/v8/V8NPObject.cpp:
242         * bindings/v8/V8Proxy.cpp:
243         (WebCore::V8Proxy::checkNewLegal):
244         * bindings/v8/V8Utilities.h:
245         (WebCore::AllowAllocation::AllowAllocation):
246         (WebCore::AllowAllocation::~AllowAllocation):
247         (WebCore::SafeAllocation::newInstance):
248         * bindings/v8/WorkerContextExecutionProxy.cpp:
249         (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
250         (WebCore::WorkerContextExecutionProxy::initV8):
251         * bindings/v8/WorkerContextExecutionProxy.h:
252         * bindings/v8/WorkerScriptController.cpp:
253         (WebCore::WorkerScriptController::scheduleExecutionTermination):
254
255 2011-08-08  Scott Byer  <scottbyer@chromium.org>
256
257         Scroll animator changes to nail the framerate
258         https://bugs.webkit.org/show_bug.cgi?id=65645
259
260         Reviewed by James Robinson.
261
262         Partial test in ScrollAnimatorNoneTest::Enabled.
263
264         * platform/ScrollAnimatorNone.cpp:
265         (WebCore::ScrollAnimatorNone::PerAxisData::PerAxisData):
266         (WebCore::ScrollAnimatorNone::PerAxisData::updateDataFromParameters):
267         (WebCore::ScrollAnimatorNone::PerAxisData::animateScroll):
268         (WebCore::ScrollAnimatorNone::ScrollAnimatorNone):
269         (WebCore::ScrollAnimatorNone::~ScrollAnimatorNone):
270         (WebCore::ScrollAnimatorNone::scroll):
271         (WebCore::ScrollAnimatorNone::scrollToOffsetWithoutAnimation):
272         (WebCore::ScrollAnimatorNone::animationTimerFired):
273         (WebCore::ScrollAnimatorNone::stopAnimationTimerIfNeeded):
274         * platform/ScrollAnimatorNone.h:
275
276 2011-08-08  Emil A Eklund  <eae@chromium.org>
277
278         Switch legacy flexbox to to new layout types
279         https://bugs.webkit.org/show_bug.cgi?id=65340
280
281         Reviewed by Eric Seidel.
282
283         No new tests, no new functionality.
284
285         * rendering/RenderDeprecatedFlexibleBox.cpp:
286         (WebCore::RenderDeprecatedFlexibleBox::calcHorizontalPrefWidths):
287         (WebCore::RenderDeprecatedFlexibleBox::calcVerticalPrefWidths):
288         (WebCore::RenderDeprecatedFlexibleBox::computePreferredLogicalWidths):
289         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
290         (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
291         (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
292         (WebCore::RenderDeprecatedFlexibleBox::placeChild):
293         (WebCore::RenderDeprecatedFlexibleBox::allowedChildFlex):
294         * rendering/RenderDeprecatedFlexibleBox.h:
295
296 2011-08-08  Emil A Eklund  <eae@chromium.org>
297
298         Switch RenderStyle to to new layout types
299         https://bugs.webkit.org/show_bug.cgi?id=65208
300
301         Reviewed by Eric Seidel.
302
303         No new tests, no new functionality.
304
305         * rendering/RenderBox.cpp:
306         (WebCore::RenderBox::addShadowOverflow):
307         * rendering/style/RenderStyle.cpp:
308         (WebCore::RenderStyle::applyTransform):
309         (WebCore::calcRadiiFor):
310         (WebCore::RenderStyle::getRoundedBorderFor):
311         (WebCore::RenderStyle::getRoundedInnerBorderFor):
312         * rendering/style/RenderStyle.h:
313         * rendering/style/ShadowData.cpp:
314         (WebCore::ShadowData::adjustRectForShadow):
315
316 2011-08-08  Cris Neckar  <cdn@chromium.org>
317
318         Remove counter nodes from the tree and fix-up children when they are removed from the counter map.
319         https://bugs.webkit.org/show_bug.cgi?id=65346
320
321         Reviewed by Adam Barth.
322
323         Covered by existing CSS counter tests.
324
325         * rendering/CounterNode.cpp:
326         (WebCore::CounterNode::~CounterNode):
327
328 2011-08-08  Tony Chang  <tony@chromium.org>
329
330         implement basic horizontal flexing
331         https://bugs.webkit.org/show_bug.cgi?id=65045
332
333         Reviewed by David Hyatt.
334
335         Test: css3/flexbox/001.html
336
337         * css/CSSPrimitiveValueMappings.h:
338         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
339         * rendering/RenderBox.cpp:
340         (WebCore::RenderBox::computeLogicalWidth):
341         * rendering/RenderFlexibleBox.cpp:
342         (WebCore::RenderFlexibleBox::FlexibleBoxIterator::FlexibleBoxIterator): flexitem iterator
343         (WebCore::RenderFlexibleBox::FlexibleBoxIterator::first):
344         (WebCore::RenderFlexibleBox::FlexibleBoxIterator::next):
345         (WebCore::RenderFlexibleBox::FlexibleBoxIterator::reset):
346         (WebCore::RenderFlexibleBox::layoutBlock):
347         (WebCore::preferredFlexItemContentWidth): Returns the intrinsic size of a flex item's content.
348         (WebCore::RenderFlexibleBox::layoutHorizontalBlock): Runs the flex algorithm
349         (WebCore::preferredSizeForMarginsAndPadding):
350         (WebCore::RenderFlexibleBox::computePreferredSize): Calculate the preferred size of the
351             flex items.
352         * rendering/RenderFlexibleBox.h:
353         * rendering/RenderObject.cpp:
354         (WebCore::RenderObject::createObject):
355         * rendering/style/RenderStyleConstants.h:
356
357 2011-08-08  David Grogan  <dgrogan@chromium.org>
358
359         Add detail to ASSERT message in IDBTransaction::enqueueEvent
360         https://bugs.webkit.org/show_bug.cgi?id=65735
361
362         I've hit this a few times but haven't been able to pin it down.  The
363         extra detail could be helpful.
364
365         Reviewed by Nate Chapin.
366
367         No new tests, just an error message.
368
369         * storage/IDBTransaction.cpp:
370         (WebCore::IDBTransaction::enqueueEvent):
371
372 2011-08-08  Sheriff Bot  <webkit.review.bot@gmail.com>
373
374         Unreviewed, rolling out r92610.
375         http://trac.webkit.org/changeset/92610
376         https://bugs.webkit.org/show_bug.cgi?id=65868
377
378         Caused assertion failures when running fast/multicol tests
379         (Requested by andersca on #webkit).
380
381         * WebCore.xcodeproj/project.pbxproj:
382         * platform/PODIntervalTree.h:
383         (WebCore::PODIntervalTree::allOverlaps):
384         (WebCore::PODIntervalTree::searchForOverlapsFrom):
385         * platform/PODRedBlackTree.h:
386         (WebCore::PODRedBlackTree::add):
387         (WebCore::PODRedBlackTree::remove):
388         (WebCore::PODRedBlackTree::contains):
389         (WebCore::PODRedBlackTree::visitInorder):
390         (WebCore::PODRedBlackTree::size):
391         (WebCore::PODRedBlackTree::checkInvariants):
392         (WebCore::PODRedBlackTree::dump):
393         * rendering/RenderBlock.cpp:
394         (WebCore::RenderBlock::styleDidChange):
395         (WebCore::RenderBlock::addOverflowFromFloats):
396         (WebCore::RenderBlock::repaintOverhangingFloats):
397         (WebCore::RenderBlock::paintFloats):
398         (WebCore::RenderBlock::selectionGaps):
399         (WebCore::RenderBlock::insertFloatingObject):
400         (WebCore::RenderBlock::removeFloatingObject):
401         (WebCore::RenderBlock::removeFloatingObjectsBelow):
402         (WebCore::RenderBlock::positionNewFloats):
403         (WebCore::RenderBlock::logicalLeftOffsetForLine):
404         (WebCore::RenderBlock::logicalRightOffsetForLine):
405         (WebCore::RenderBlock::nextFloatLogicalBottomBelow):
406         (WebCore::RenderBlock::lowestFloatLogicalBottom):
407         (WebCore::RenderBlock::addPositionedFloats):
408         (WebCore::RenderBlock::clearFloats):
409         (WebCore::RenderBlock::addOverhangingFloats):
410         (WebCore::RenderBlock::hasOverhangingFloat):
411         (WebCore::RenderBlock::addIntrudingFloats):
412         (WebCore::RenderBlock::markSiblingsWithFloatsForLayout):
413         (WebCore::RenderBlock::hitTestFloats):
414         (WebCore::RenderBlock::adjustForBorderFit):
415         (WebCore::RenderBlock::FloatingObjects::clear):
416         * rendering/RenderBlock.h:
417         (WebCore::RenderBlock::FloatingObject::FloatingObject):
418         (WebCore::RenderBlock::FloatingObject::setX):
419         (WebCore::RenderBlock::FloatingObject::setY):
420         (WebCore::RenderBlock::FloatingObject::setWidth):
421         (WebCore::RenderBlock::FloatingObject::setHeight):
422         (WebCore::RenderBlock::FloatingObject::setFrameRect):
423         (WebCore::RenderBlock::FloatingObjects::FloatingObjects):
424         (WebCore::RenderBlock::FloatingObjects::set):
425         * rendering/RenderBlockLineLayout.cpp:
426         (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
427         (WebCore::RenderBlock::linkToEndLineIfNeeded):
428         (WebCore::RenderBlock::matchedEndLine):
429         (WebCore::RenderBlock::positionNewFloatOnLine):
430
431 2011-08-08  Emil A Eklund  <eae@chromium.org>
432
433         Rename absoluteQuadsForRange and InlineTextBox::selectionRect to local*
434         https://bugs.webkit.org/show_bug.cgi?id=65722
435
436         Reviewed by Simon Fraser.
437
438         No new tests, no new functionality.
439
440         * rendering/InlineTextBox.cpp:
441         (WebCore::InlineTextBox::localSelectionRect):
442         Rename InlineTextBox::selectionRect to localSelectionRect to reflect that
443         it, unlike RenderObject::selectionRect returns a rect in the local
444         coordinate space.
445
446         * rendering/InlineTextBox.h:
447         * rendering/RenderText.cpp:
448         (WebCore::localQuadForTextBox):
449         (WebCore::RenderText::absoluteRectsForRange):
450         (WebCore::RenderText::absoluteQuadsForRange):
451         (WebCore::RenderText::selectionRectForRepaint):
452         Rename absoluteQuadForTextBox to localQuadForTextBox to reflect that it
453         returns a quad in the local coordinate space.
454         
455         * rendering/svg/RenderSVGInlineText.cpp:
456         (WebCore::RenderSVGInlineText::localCaretRect):
457         * rendering/svg/SVGInlineTextBox.cpp:
458         (WebCore::SVGInlineTextBox::localSelectionRect):
459         * rendering/svg/SVGInlineTextBox.h:
460
461 2011-08-08  Jochen Eisinger  <jochen@chromium.org>
462
463         Use a raw pointer to the security origin in the ctor of FrameLoadRequest
464         https://bugs.webkit.org/show_bug.cgi?id=65852
465
466         Reviewed by Alexey Proskuryakov.
467
468         * loader/FrameLoadRequest.h:
469         (WebCore::FrameLoadRequest::FrameLoadRequest):
470         * loader/FrameLoader.cpp:
471         (WebCore::FrameLoader::changeLocation):
472         * loader/FrameLoader.h:
473         * loader/NavigationScheduler.cpp:
474         (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
475         (WebCore::ScheduledURLNavigation::fire):
476         (WebCore::ScheduledRedirect::ScheduledRedirect):
477         (WebCore::ScheduledLocationChange::ScheduledLocationChange):
478         (WebCore::ScheduledRefresh::ScheduledRefresh):
479         (WebCore::NavigationScheduler::scheduleLocationChange):
480         * loader/NavigationScheduler.h:
481
482 2011-08-08  Ryosuke Niwa  <rniwa@webkit.org>
483
484         Remove redundant inline styles from the pasted contents more aggressively
485         https://bugs.webkit.org/show_bug.cgi?id=65833
486
487         Reviewed by Tony Chang.
488
489         Make removeRedundantStylesAndKeepStyleSpanInline more aggressively remove redundant styles by realizing that
490         when an editing inheritable property in an inline style declaration of an element can be safely removed
491         if it is present either in style rules or in its ancestor and not overridden by style rules or default style
492         of the element.
493
494         Test: editing/pasteboard/paste-with-redundant-style.html
495
496         * css/CSSStyleSelector.cpp:
497         (WebCore::CSSStyleSelector::pseudoStyleRulesForElement): Do not match author style sheets if AuthorCSSRules
498         is not included in the rules to include. This is used in EditingStyle::removePropertiesInElementDefaultStyle.
499         * editing/ApplyStyleCommand.cpp:
500         (WebCore::isStyleSpanOrSpanWithOnlyStyleAttribute): Added; returns true if the element is a style span or
501         span possibly with a style attribute.
502         * editing/ApplyStyleCommand.h:
503         * editing/EditingStyle.cpp:
504         (WebCore::styleFromMatchedRulesForElement): Takes rulesToInclude.
505         (WebCore::EditingStyle::mergeStyleFromRules): Calls styleFromMatchedRulesForElement with AuthorCSSRules
506         | CrossOriginCSSRules to keep the original behavior.
507         (WebCore::EditingStyle::removeStyleFromRulesAndContext): Renamed from removeStyleFromRules; removes styles that
508         are present in context and not overridden by matched rules.
509         (WebCore::EditingStyle::removePropertiesInElementDefaultStyle): Added.
510         * editing/EditingStyle.h:
511         * editing/ReplaceSelectionCommand.cpp:
512         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline): See the description above.
513
514 2011-08-08  Dmitry Lomov  <dslomov@google.com>
515
516         https://bugs.webkit.org/show_bug.cgi?id=65778
517         [WebWorkers][chromium] Make statics thread-safe and make sure V8 API accesses correct isolates.
518
519         Reviewed by David Levin.
520
521         Covered by existing tests.
522
523         * bindings/v8/V8Binding.h:
524         (WebCore::V8BindingPerIsolateData::lazyEventListenerToStringTemplate):
525         (WebCore::V8BindingPerIsolateData::hiddenPropertyName):
526         (WebCore::V8BindingPerIsolateData::globalHandleMap):
527         (WebCore::AllowAllocation::AllowAllocation): Moving to V8Binding.h from V8Utilities.h to resolve header dependency.
528         (WebCore::AllowAllocation::~AllowAllocation):
529         (WebCore::AllowAllocation::current):
530         (WebCore::SafeAllocation::newInstance):
531         * bindings/v8/V8GCController.cpp:
532         (WebCore::currentGlobalHandleMap):
533         (WebCore::enumerateGlobalHandles):
534         (WebCore::V8GCController::registerGlobalHandle):
535         (WebCore::V8GCController::unregisterGlobalHandle):
536         * bindings/v8/V8HiddenPropertyName.cpp:
537         (WebCore::V8HiddenPropertyName::createString):
538         * bindings/v8/V8HiddenPropertyName.h:
539         * bindings/v8/V8LazyEventListener.cpp:
540         (WebCore::V8LazyEventListener::prepareListenerObject):
541         * bindings/v8/V8NPObject.cpp:
542         * bindings/v8/V8Proxy.cpp:
543         (WebCore::V8Proxy::checkNewLegal):
544         * bindings/v8/V8Utilities.h:
545         * bindings/v8/WorkerContextExecutionProxy.cpp:
546         (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
547         (WebCore::WorkerContextExecutionProxy::initIsolate):
548         * bindings/v8/WorkerContextExecutionProxy.h:
549         * bindings/v8/WorkerScriptController.cpp:
550         (WebCore::WorkerScriptController::scheduleExecutionTermination):
551
552 2011-08-08  Sheriff Bot  <webkit.review.bot@gmail.com>
553
554         Unreviewed, rolling out r92607.
555         http://trac.webkit.org/changeset/92607
556         https://bugs.webkit.org/show_bug.cgi?id=65865
557
558         This patch breaks Chromium Mac Canary (Requested by jianli on
559         #webkit).
560
561         * platform/PlatformWheelEvent.h:
562         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
563         * platform/chromium/ScrollAnimatorChromiumMac.mm:
564         (WebCore::ScrollAnimatorChromiumMac::handleGestureEvent):
565
566 2011-08-08  Andrew Wason  <rectalogic@rectalogic.com>
567
568         [Qt] Implement WebGL antialiasing (part 3)
569         https://bugs.webkit.org/show_bug.cgi?id=64879
570
571         Reviewed by Noam Rosenthal.
572
573         Existing WebGL layout tests cover this.
574
575         Implement WebGL antialiasing for Qt desktop.
576         Existing code in GraphicsContext3DOpenGL.cpp manages the
577         multisample FBO. GraphicsContext3DQt.cpp creates it and blits
578         it to the regular FBO when painting.
579         Requires adoption of Extensions3DOpenGL to be fully functional.
580
581         * platform/graphics/qt/GraphicsContext3DQt.cpp:
582         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
583         (WebCore::GraphicsContext3DInternal::paintToTextureMapper):
584         (WebCore::GraphicsContext3DInternal::paint):
585         (WebCore::GraphicsContext3DInternal::multisampleResolve):
586         (WebCore::GraphicsContext3D::GraphicsContext3D):
587         (WebCore::GraphicsContext3D::~GraphicsContext3D):
588
589 2011-08-08  Anders Carlsson  <andersca@apple.com>
590
591         Fix build.
592
593         * platform/PODRedBlackTree.h:
594         (WebCore::PODRedBlackTree::Counter::visit):
595
596 2011-08-08  Alexandru Chiculita  <achicu@adobe.com>
597
598         Optimize floating elements lookup
599         https://bugs.webkit.org/show_bug.cgi?id=65668
600
601         Added an interval tree in the FloatingObjects structure. Also added new mechanisms to make
602         sure the tree is updated correctly when a float is repositioned.
603
604         Changed the PODIntervalTree to support giving a search adapter that can be implemented by the
605         client. I'm not adding a different bug for that because PODIntervalTree is not used anywhere else
606         and would be hard to test that the change is not breaking anything.
607
608         Reviewed by David Hyatt.
609
610         No new tests, just a refactor on the floating objects data structure.
611
612         * WebCore.xcodeproj/project.pbxproj:
613         * platform/PODIntervalTree.h:
614         (WebCore::PODIntervalSearchAdapter::PODIntervalSearchAdapter):
615         (WebCore::PODIntervalSearchAdapter::lowValue):
616         (WebCore::PODIntervalSearchAdapter::highValue):
617         (WebCore::PODIntervalSearchAdapter::collectIfNeeded):
618         (WebCore::PODIntervalTree::PODIntervalTree):
619         (WebCore::PODIntervalTree::allOverlaps):
620         (WebCore::PODIntervalTree::allOverlapsWithAdapter):
621         (WebCore::PODIntervalTree::searchForOverlapsFrom):
622         * platform/PODRedBlackTree.h:
623         (WebCore::PODRedBlackTree::PODRedBlackTree):
624         (WebCore::PODRedBlackTree::clear):
625         (WebCore::PODRedBlackTree::isInitialized):
626         (WebCore::PODRedBlackTree::initIfNeeded):
627         (WebCore::PODRedBlackTree::add):
628         (WebCore::PODRedBlackTree::remove):
629         (WebCore::PODRedBlackTree::contains):
630         (WebCore::PODRedBlackTree::visitInorder):
631         (WebCore::PODRedBlackTree::size):
632         (WebCore::PODRedBlackTree::checkInvariants):
633         (WebCore::PODRedBlackTree::dump):
634         * rendering/RenderBlock.cpp:
635         (WebCore::RenderBlock::styleDidChange):
636         (WebCore::RenderBlock::addOverflowFromFloats):
637         (WebCore::RenderBlock::repaintOverhangingFloats):
638         (WebCore::RenderBlock::paintFloats):
639         (WebCore::RenderBlock::selectionGaps):
640         (WebCore::RenderBlock::insertFloatingObject):
641         (WebCore::RenderBlock::removeFloatingObject):
642         (WebCore::RenderBlock::removeFloatingObjectsBelow):
643         (WebCore::RenderBlock::positionNewFloats):
644         (WebCore::::collectIfNeeded):
645         (WebCore::RenderBlock::logicalLeftOffsetForLine):
646         (WebCore::RenderBlock::logicalRightOffsetForLine):
647         (WebCore::RenderBlock::nextFloatLogicalBottomBelow):
648         (WebCore::RenderBlock::lowestFloatLogicalBottom):
649         (WebCore::RenderBlock::addPositionedFloats):
650         (WebCore::RenderBlock::clearFloats):
651         (WebCore::RenderBlock::addOverhangingFloats):
652         (WebCore::RenderBlock::hasOverhangingFloat):
653         (WebCore::RenderBlock::addIntrudingFloats):
654         (WebCore::RenderBlock::markSiblingsWithFloatsForLayout):
655         (WebCore::RenderBlock::hitTestFloats):
656         (WebCore::RenderBlock::adjustForBorderFit):
657         (WebCore::RenderBlock::FloatingObjects::clear):
658         (WebCore::RenderBlock::FloatingObjects::intervalForFloatingObject):
659         (WebCore::RenderBlock::FloatingObjects::addPlacedObject):
660         (WebCore::RenderBlock::FloatingObjects::removePlacedObject):
661         (WebCore::RenderBlock::FloatingObjects::add):
662         (WebCore::RenderBlock::FloatingObjects::remove):
663         (WebCore::RenderBlock::FloatingObjects::computePlacedFloatsTree):
664         (WebCore::::string):
665         * rendering/RenderBlock.h:
666         (WebCore::RenderBlock::FloatingObject::FloatingObject):
667         (WebCore::RenderBlock::FloatingObject::setX):
668         (WebCore::RenderBlock::FloatingObject::setY):
669         (WebCore::RenderBlock::FloatingObject::setWidth):
670         (WebCore::RenderBlock::FloatingObject::setHeight):
671         (WebCore::RenderBlock::FloatingObject::setFrameRect):
672         (WebCore::RenderBlock::FloatingObject::isInPlacedTree):
673         (WebCore::RenderBlock::FloatingObject::setIsInPlacedTree):
674         (WebCore::RenderBlock::FloatIntervalSearchAdapter::FloatIntervalSearchAdapter):
675         (WebCore::RenderBlock::FloatIntervalSearchAdapter::lowValue):
676         (WebCore::RenderBlock::FloatIntervalSearchAdapter::highValue):
677         (WebCore::RenderBlock::FloatingObjects::FloatingObjects):
678         (WebCore::RenderBlock::FloatingObjects::setHorizontalWritingMode):
679         (WebCore::RenderBlock::FloatingObjects::set):
680         (WebCore::RenderBlock::FloatingObjects::placedFloatsTree):
681         (WebCore::RenderBlock::FloatingObjects::computePlacedFloatsTreeIfNeeded):
682         * rendering/RenderBlockLineLayout.cpp:
683         (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
684         (WebCore::RenderBlock::linkToEndLineIfNeeded):
685         (WebCore::RenderBlock::matchedEndLine):
686         (WebCore::RenderBlock::positionNewFloatOnLine):
687
688 2011-08-08  Alexei Svitkine  <asvitkine@chromium.org>
689
690         [Chromium] Enable rubber banding when scrolling.
691
692         https://bugs.webkit.org/show_bug.cgi?id=65707
693
694         Reviewed by Dimitri Glazkov.
695
696         No new tests since this is just syncing changes to chromium platform.
697
698         * platform/PlatformWheelEvent.h:
699         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
700         * platform/chromium/ScrollAnimatorChromiumMac.mm:
701         (WebCore::ScrollAnimatorChromiumMac::handleGestureEvent):
702
703 2011-08-08  Dan Bernstein  <mitz@apple.com>
704
705         Build fix.
706
707         * html/NumberInputType.cpp:
708         (WebCore::NumberInputType::sizeShouldIncludeDecoration): Fixed an obvious typo.
709
710 2011-08-08  Andras Becsi  <abecsi@webkit.org>
711
712         [Qt] Clean up project file after r92492.
713
714         Unreviewed gardening.
715
716         No new tests needed.
717
718         * WebCore.pro: remove nonexistent PluginHalterClient.h, PluginHalter.h, HaltablePlugin.h.
719
720 2011-08-08  Pavel Podivilov  <podivilov@chromium.org>
721
722         Web Inspector: refactor links creation.
723         https://bugs.webkit.org/show_bug.cgi?id=65612
724
725         Reviewed by Pavel Feldman.
726
727         No new tests - it is refactoring, modified code covered by script-formatter.html test.
728
729         * inspector/front-end/ConsoleView.js:
730         (WebInspector.ConsoleMessage.prototype._formatMessage):
731         (WebInspector.ConsoleMessage.prototype._linkifyLocation):
732         (WebInspector.ConsoleMessage.prototype._linkifyCallFrame):
733         (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement):
734         * inspector/front-end/DebuggerPresentationModel.js:
735         (WebInspector.DebuggerPresentationModel):
736         (WebInspector.DebuggerPresentationModel.prototype.addSourceMappingListener):
737         (WebInspector.DebuggerPresentationModel.prototype.removeSourceMappingListener):
738         (WebInspector.DebuggerPresentationModel.prototype.linkifyLocation.updateAnchor.didGetLocation):
739         (WebInspector.DebuggerPresentationModel.prototype.linkifyLocation.updateAnchor):
740         (WebInspector.DebuggerPresentationModel.prototype.linkifyLocation):
741         (WebInspector.DebuggerPresentationModel.prototype.setFormatSourceFiles):
742         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
743         (WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
744         * inspector/front-end/EventListenersSidebarPane.js:
745         * inspector/front-end/NetworkPanel.js:
746         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
747         * inspector/front-end/Panel.js:
748         * inspector/front-end/ProfileDataGridTree.js:
749         (WebInspector.ProfileDataGridNode.prototype.createCell):
750         * inspector/front-end/ScriptsPanel.js:
751         (WebInspector.ScriptsPanel.prototype._folderAndDisplayNameForScriptURL):
752         * inspector/front-end/StylesSidebarPane.js:
753         (WebInspector.StylePropertiesSection.linkifyUncopyable):
754         (WebInspector.StylePropertiesSection):
755         * inspector/front-end/TimelinePanel.js:
756         (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
757         (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyLocation):
758         (WebInspector.TimelinePanel.FormattedRecord.prototype._linkifyCallFrame):
759         (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendLinkRow):
760         (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace):
761         * inspector/front-end/inspector.js:
762         (WebInspector._showSettingsScreen):
763         (WebInspector.formatLinkText):
764         (WebInspector.linkifyResourceAsNode):
765
766 2011-08-08  Andrew Wason  <rectalogic@rectalogic.com>
767
768         [Qt] Implement WebGL antialiasing (part 3)
769         https://bugs.webkit.org/show_bug.cgi?id=64879
770
771         Reviewed by Noam Rosenthal.
772
773         Existing WebGL layout tests.
774
775         Adopt Extensions3DOpenGL for Qt desktop as a prerequisite
776         for implementing WebGL antialiasing.
777         Extensions3DQt is still used for ES2.
778
779         * WebCore.pri:
780         * WebCore.pro:
781         * platform/graphics/GraphicsContext3D.h:
782         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
783         (WebCore::Extensions3DOpenGL::createVertexArrayOES):
784         (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
785         (WebCore::Extensions3DOpenGL::isVertexArrayOES):
786         (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
787         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
788         (WebCore::GraphicsContext3D::getExtensions):
789         * platform/graphics/qt/GraphicsContext3DQt.cpp:
790         (WebCore::GraphicsContext3D::layerComposited):
791
792 2011-08-08  Benjamin Poulain  <benjamin@webkit.org>
793
794         Build fix after r92589, defaultSize is not used.
795         
796         Reviewed by Andreas Kling.
797
798         * html/InputType.cpp:
799         (WebCore::InputType::sizeShouldIncludeDecoration):
800
801 2011-08-08  Keishi Hattori  <keishi@webkit.org>
802
803         Implement <input type=color> UI behavior WebCore part
804         https://bugs.webkit.org/show_bug.cgi?id=62619
805
806         Reviewed by Kent Tamura.
807
808         * WebCore.exp.in: Added __ZN7WebCore12ColorChooser7chooserEv and
809         __ZNK7WebCore12ColorChooser13colorSelectedERKNS_5ColorE
810         * WebCore.xcodeproj/project.pbxproj: Added ColorChooser.{h,cpp}
811         * html/ColorInputType.cpp:
812         (WebCore::ColorInputType::~ColorInputType): Added. Close color chooser. ex. when type attribute changes.
813         (WebCore::ColorInputType::valueAsColor): Added.
814         (WebCore::ColorInputType::setValueAsColor): Added.
815         (WebCore::ColorInputType::valueChanged): Update selected color in color chooser too.
816         (WebCore::ColorInputType::handleClickEvent): Opens color chooser.
817         (WebCore::ColorInputType::handleDOMActivateEvent): Called when element.click(). Open color chooser only
818         when it was initiated by a user interaction.
819         (WebCore::ColorInputType::detach): Close color chooser. Called when input element or its ancestors have "display:none"
820         or is removed from DOM.
821         (WebCore::ColorInputType::colorSelected): Callback from color chooser.
822         (WebCore::ColorInputType::isColorInputType): Returns true.
823         (WebCore::ColorInputType::closeColorChooserIfCurrentClient): Close color chooser if this input type is the current client of ColorChooser.
824         * html/ColorInputType.h:
825         * html/FileInputType.cpp:
826         * html/FileInputType.h:
827         * html/HTMLInputElement.cpp:
828         (WebCore::HTMLInputElement::detach): Calls InputType::detach
829         * html/InputType.cpp:
830         (WebCore::InputType::chrome): Added. Used in FileInputType and ColorInputType.
831         (WebCore::InputType::detach): ColorInputType overrides this.
832         * html/InputType.h:
833         * loader/EmptyClients.h:
834         (WebCore::EmptyChromeClient::openColorChooser):
835         (WebCore::EmptyChromeClient::closeColorChooser):
836         (WebCore::EmptyChromeClient::setSelectedColorInColorChooser):
837         * loader/FrameLoader.cpp:
838         (WebCore::FrameLoader::transitionToCommitted): Close color chooser when navigating away from the page. We do this here
839         because ColorInputType::detach() is called seconds after the page transition so it is too slow.
840         * page/Chrome.cpp:
841         (WebCore::Chrome::openColorChooser): Added.
842         (WebCore::Chrome::closeColorChooser): Added.
843         (WebCore::Chrome::setSelectedColorInColorChooser): Added.
844         * page/Chrome.h:
845         * page/ChromeClient.h:
846         * platform/ColorChooser.cpp: Added.
847         (WebCore::ColorChooserClient::~ColorChooserClient): Disconnects itself from the ColorChooser.
848         (WebCore::ColorChooser::chooser): Get shared instance of ColorChooser.
849         (WebCore::ColorChooser::connectClient): Connects a ColorChooserClient that receives the colorSelected callbacks.
850         (WebCore::ColorChooser::disconnectClient): Disconnects the connectClient.
851         (WebCore::ColorChooser::colorSelected): Called from color chooser listener.
852         * platform/ColorChooser.h: Added.
853         (WebCore::ColorChooserClient::isColorInputType): Added.
854         (WebCore::ColorChooser::client): Added. Returns the current connected client.
855         (WebCore::ColorChooser::ColorChooser): Added.
856
857 2011-08-08  Shinya Kawanaka  <shinyak@google.com>
858
859         The input[type=number] element should be as wide as necessary to show the widest possible value.
860         https://bugs.webkit.org/show_bug.cgi?id=60673
861
862         Reviewed by Kent Tamura.
863
864         The size of input[type=number] is calculated from min/max/step attributes to show the widest possible value.
865         If min or max attribute is absent, the default size is used.
866         Also, if its css width is not auto, the width is used with priority.
867
868         If min/max/attribute is set dynamically, the size of the input[type=number] will be recalculated.
869
870         Test: fast/forms/input-number-size.html
871
872         * html/HTMLInputElement.cpp:
873         (WebCore::HTMLInputElement::parseMappedAttribute):
874            Added stepAttributeChanged handler.
875         (WebCore::HTMLInputElement::sizeShouldIncludeDecoration):
876            Returns true if a renderer should include decoration (e.g. inner spinbox).
877            Also returns the preferred size of the input.
878         * html/HTMLInputElement.h:
879         * html/InputType.cpp:
880         (WebCore::InputType::sizeShouldIncludeDecoration):
881            Same as WebCore::HTMLInputElement::sizeShouldIncludeDecoration.
882         (WebCore::InputType::stepAttributeChanged):
883            Will be called When step attribute is changed.
884            Sets a flag to recalculate layout.
885         * html/InputType.h:
886         * html/NumberInputType.cpp:
887         (WebCore::lengthBeforeDecimalPoint):
888            Calculates the width before the decimal point.
889         (WebCore::NumberInputType::sizeShouldIncludeDecoration):
890            Same as WebCore::HTMLInputElement::sizeShouldIncludeDecoration.
891            However, this will calculate the preferred size from min/max/step attribute.
892         (WebCore::NumberInputType::minOrMaxAttributeChanged):
893            Sets a flag to recalculate layout.
894         (WebCore::NumberInputType::stepAttributeChanged): ditto.
895         * html/NumberInputType.h:
896         * rendering/RenderTextControlSingleLine.cpp:
897         (WebCore::RenderTextControlSingleLine::preferredContentWidth):
898            Uses preferredSize instead of size.
899            Also, adds innerSpinButtonElement size to width if sizeShouldIncludeDecoration returns true.
900
901 2011-08-08  Kenichi Ishibashi  <bashi@chromium.org>
902
903         Should not use C-style cast in CSSParser.cpp
904         https://bugs.webkit.org/show_bug.cgi?id=65807
905
906         Remove C-style cast.
907
908         Reviewed by Kent Tamura.
909
910         No new tests because no behavior change.
911
912         * css/CSSParser.cpp:
913         (WebCore::CSSParser::parseAnimationTimingFunction): Replaced a cast with clampToInteger().
914         (WebCore::CSSParser::parseFontFeatureTag): Ditto.
915         (WebCore::CSSParser::createKeyframeRule): Replaced a cast with C++-style cast.
916
917 2011-08-05  Pavel Feldman  <pfeldman@chromium.org>
918
919         Web Inspector: implement dock/undock in WebKit2 without getting into WebCore.
920         https://bugs.webkit.org/show_bug.cgi?id=65763
921
922         InspectorFrontendClient.h can't have synchronous canAttachWindow() returning value
923         since in the multiprocess environment, you can't immediately get back to it from the host.
924
925         r92384 introduced an unhealthy WebKit -> WebCore -> WebKit canAttach query where embedder
926         was asking itself a question. This loop was fixed.
927
928         Reviewed by Yury Semikhatsky.
929
930         * WebCore.exp.in:
931         * inspector/InspectorController.cpp:
932         * inspector/InspectorController.h:
933         * inspector/InspectorFrontendClient.h:
934         * inspector/InspectorFrontendClientLocal.h:
935         * inspector/front-end/inspector.js:
936         (windowLoaded):
937
938 2011-07-28  Kent Tamura  <tkent@chromium.org>
939
940         [Chromium] Make form validation bubble fit with Chrome UI style
941         https://bugs.webkit.org/show_bug.cgi?id=65359
942
943         Reviewed by Hajime Morita.
944
945         Change the appearance of validation message bubble for
946         Chromium. Basically it doesn't change for other ports.
947
948         - Introduce a new element to put an icon, and enclose it and the
949         message text by a flexible box.
950         - Repesent the message text by two elements. One for the heading,
951         another for the remaining.
952
953         - Introduce themeChromium.css
954
955         * WebCore.gyp/WebCore.gyp: Add themeChromium.css.
956         * css/html.css:
957         (::-webkit-validation-bubble-message): Make this a flexible box container.
958         (::-webkit-validation-bubble-text-block): Takes flexibility.
959         (::-webkit-validation-bubble-heading):
960         Make the content bold because we removed <b></b>.
961         * css/themeChromium.css: Added.
962         (::-webkit-validation-bubble):
963         (::-webkit-validation-bubble-message):
964         (::-webkit-validation-bubble-arrow):
965         (::-webkit-validation-bubble-arrow-clipper):
966         (::-webkit-validation-bubble-icon):
967         (::-webkit-validation-bubble-heading):
968         (::-webkit-validation-bubble-body):
969         * html/ValidationMessage.cpp:
970         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
971         Sets the text into m_messageHeading and m_messageBody, instead of m_bubbleMessage.
972         Use ASSERT_NO_EXCEPTION.
973         (WebCore::ValidationMessage::buildBubbleTree):
974         Build the new structure, and use ASSERT_NO_EXCEPTION.
975         (WebCore::ValidationMessage::deleteBubbleTree):
976         Clear m_messageHeading and m_messageBody.
977         * html/ValidationMessage.h:
978         * rendering/RenderThemeChromiumMac.h: Add extraDefaultStyleSheet().
979         * rendering/RenderThemeChromiumMac.mm:
980         (WebCore::RenderThemeChromiumMac::extraDefaultStyleSheet): Append themeChromium.css.
981         * rendering/RenderThemeChromiumSkia.cpp:
982         (WebCore::RenderThemeChromiumSkia::extraDefaultStyleSheet): Append themeChromium.css.
983
984 2011-08-07  Keishi Hattori  <keishi@webkit.org>
985
986         Sort WebCore.xcodeproj
987         Accomplished using sort-Xcode-project-file.
988
989         * WebCore.xcodeproj/project.pbxproj:
990
991 2011-08-07  James Kozianski  <koz@chromium.org>
992
993         Make the fullscreen JS API enabled at runtime.
994         https://bugs.webkit.org/show_bug.cgi?id=65501
995
996         Reviewed by Adam Barth.
997
998         * bindings/generic/RuntimeEnabledFeatures.cpp:
999         * bindings/generic/RuntimeEnabledFeatures.h:
1000         (WebCore::RuntimeEnabledFeatures::webkitFullScreenAPIEnabled):
1001         (WebCore::RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled):
1002         (WebCore::RuntimeEnabledFeatures::webkitRequestFullScreenEnabled):
1003         (WebCore::RuntimeEnabledFeatures::webkitIsFullScreenEnabled):
1004         (WebCore::RuntimeEnabledFeatures::webkitFullScreenKeyboardInputAllowedEnabled):
1005         (WebCore::RuntimeEnabledFeatures::webkitCurrentFullScreenElementEnabled):
1006         (WebCore::RuntimeEnabledFeatures::webkitCancelFullScreenEnabled):
1007         * dom/Document.idl:
1008         * dom/Element.idl:
1009
1010 2011-08-07  Martin Robinson  <mrobinson@igalia.com>
1011
1012         Distribution fix for GTK+.
1013
1014         * GNUmakefile.am: Add some files to the distribution list.
1015         * GNUmakefile.list.am: Strip removed files from the source list.
1016
1017 2011-08-07  Jochen Eisinger  <jochen@chromium.org>
1018
1019         Move FrameLoadRequest to loader/
1020         https://bugs.webkit.org/show_bug.cgi?id=65817
1021
1022         Reviewed by Alexey Proskuryakov.
1023
1024         * GNUmakefile.list.am:
1025         * WebCore.gypi:
1026         * WebCore.vcproj/WebCore.vcproj:
1027         * WebCore.xcodeproj/project.pbxproj:
1028         * loader/FrameLoadRequest.h:
1029         (WebCore::FrameLoadRequest::FrameLoadRequest):
1030         (WebCore::FrameLoadRequest::isEmpty):
1031         (WebCore::FrameLoadRequest::requester):
1032         (WebCore::FrameLoadRequest::resourceRequest):
1033         (WebCore::FrameLoadRequest::frameName):
1034         (WebCore::FrameLoadRequest::setFrameName):
1035
1036 2011-08-07  Sam White  <samuel.white@rochester.edu>
1037
1038         Add the ability to search the AccessibilityObject cache
1039         https://bugs.webkit.org/show_bug.cgi?id=64994
1040         
1041         New AccessibilityObject cache search functionality and API for the mac
1042         platform to expose it. At this point the AccessibilityObject cache can
1043         be searched using one of the supported search keys that have been defined
1044         in AccessibilityObject.h, or by passing search text.
1045
1046         Reviewed by Chris Fleizach.
1047
1048         Test: platform/mac/accessibility/search-predicate.html
1049
1050         * accessibility/AccessibilityObject.cpp:
1051         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatch):
1052         (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
1053         (WebCore::AccessibilityObject::accessibilityObjectContainsText):
1054         (WebCore::AccessibilityObject::accessibleObjectsWithAccessibilitySearchPredicate):
1055         * accessibility/AccessibilityObject.h:
1056         * accessibility/mac/AccessibilityObjectWrapper.mm:
1057         (createAccessibilitySearchKeyMap):
1058         (accessibilitySearchKeyForString):
1059         (-[AccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
1060         (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
1061
1062 2011-08-06  Mark Rowe  <mrowe@apple.com>
1063
1064         Fix a memory leak found via code inspection.
1065
1066         Rubber-stamped by Dan Bernstein.
1067
1068         * platform/mac/PasteboardMac.mm:
1069         (WebCore::Pasteboard::writeSelection): Adopt the newly-allocated WebHTMLConverter
1070         instance so that it does not leak.
1071
1072 2011-08-05  Darin Adler  <darin@apple.com>
1073
1074         Fix Timer heap implementation to work with more libraries (other versions of STL)
1075         https://bugs.webkit.org/show_bug.cgi?id=65782
1076
1077         Reviewed by Anders Carlsson.
1078
1079         No behavior change, so no tests needed. Existing tests pass.
1080
1081         * platform/Timer.cpp: Added TimerHeapPointer and TimerHeapReference class
1082         alongside the TimerHeapIterator class. Also added a swap function. Also
1083         added a TimerHeapLessThanFunction class.
1084         (WebCore::TimerBase::heapDecreaseKey): Pass pointers in to the TimerHeapIterator
1085         since that's how the class works now. Pass a TimerHeapLessThanFunction object
1086         instead of letting the library use the < operator directly.
1087         (WebCore::TimerBase::heapPopMin): Ditto.
1088
1089         * platform/Timer.h: Updated for above changes.
1090
1091 2011-08-06  Aron Rosenberg  <arosenberg@logitech.com>
1092
1093         Reviewed by Benjamin Poulain.
1094
1095         [Qt] Fix build with Intel compiler on Windows
1096         https://bugs.webkit.org/show_bug.cgi?id=65088
1097
1098         Intel compiler needs .lib suffixes instead of .a
1099
1100         * WebCore.pri:
1101
1102 2011-08-06  Dan Bernstein  <mitz@apple.com>
1103
1104         Move the shared LineBreakIteratorPool from ThreadGlobalData into its own ThreadSpecific
1105         https://bugs.webkit.org/show_bug.cgi?id=65809
1106
1107         Reviewed by Darin Adler and Sam Weinig.
1108
1109         * platform/ThreadGlobalData.cpp:
1110         (WebCore::ThreadGlobalData::destroy): Removed code to clear the m_lineBreakIteratorPool member
1111         variable, which was removed.
1112         * platform/ThreadGlobalData.h: Removed lineBreakIteratorPool() and associated member variable.
1113         * platform/text/LineBreakIteratorPoolICU.h:
1114         (WebCore::LineBreakIteratorPool::sharedPool): Changed to return a thread-specific pool.
1115
1116 2011-08-06  Joseph Pecoraro  <joepeck@webkit.org>
1117
1118         Potential Leaks - RetainPtr<> over retaining Create'd objects
1119         https://bugs.webkit.org/show_bug.cgi?id=65806
1120
1121         Reviewed by Darin Adler.
1122
1123         Fix a possible leak by adopting an allocation instead of retaining it.
1124
1125         * platform/network/mac/NetworkStateNotifierMac.cpp:
1126         (WebCore::NetworkStateNotifier::NetworkStateNotifier):
1127         * plugins/mac/PluginPackageMac.cpp:
1128         (WebCore::stringListFromResourceId):
1129         (WebCore::PluginPackage::fetchInfo):
1130
1131 2011-08-06  Rafael Brandao  <rafael.lobo@openbossa.org>
1132
1133         REGRESSION (r91540): Favicons are not loaded
1134         https://bugs.webkit.org/show_bug.cgi?id=65692
1135
1136         Reviewed by Darin Adler.
1137
1138         The policy that evaluates whether a page can have icon or not should not
1139         need to be reimplemented each time a new IconDatabaseBase is derived,
1140         so it was moved to WebCore's scope.
1141
1142         * loader/icon/IconController.cpp:
1143         (WebCore::IconController::startLoader):
1144         * loader/icon/IconDatabase.cpp:
1145         * loader/icon/IconDatabase.h:
1146         * loader/icon/IconDatabaseBase.cpp:
1147         (WebCore::documentCanHaveIcon):
1148         * loader/icon/IconDatabaseBase.h:
1149
1150 2011-08-06  Kenichi Ishibashi  <bashi@chromium.org>
1151
1152         Should use C++-style cast in CSSParser.cpp
1153         https://bugs.webkit.org/show_bug.cgi?id=65807
1154
1155         Replaces C-style cast with C++style cast.
1156
1157         Reviewed by Shinichiro Hamaji.
1158
1159         No new tests because no behavior change.
1160
1161         * css/CSSParser.cpp:
1162         (WebCore::CSSParser::parseAnimationTimingFunction):
1163         (WebCore::CSSParser::parseFont):
1164         (WebCore::CSSParser::parseColorFromValue):
1165         (WebCore::CSSParser::parseFontFeatureTag):
1166
1167 2011-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1168
1169         REGRESSION(87526): ASSERT(!needsLayout()) followed by graphical glitches on google charts (svg loaded in iframe)
1170         https://bugs.webkit.org/show_bug.cgi?id=64974
1171
1172         svg/zoom/page/zoom-svg-through-object-with-*.xhtml are flaky
1173         https://bugs.webkit.org/show_bug.cgi?id=63186
1174
1175         Reviewed by Zoltan Herczeg.
1176
1177         Fix host <-> embedded document size negotiation race. The currently implemented solution relied on a specific
1178         order of paint/layout calls, which is broken. Consider rendering a document containing an object/iframe/embed
1179         referencing an external SVG file. When FrameView::layout() is called (associated with the outermost RenderView
1180         of the host document), it lays out the whole document, and afterwards performPostLayoutTasks() is called.
1181         This method then asks the Frames contentRenderer to update its widget positions. This triggers a call
1182         of the embedded documents FrameView::layout() method, which now lays out the embedded SVG documents tree
1183         through RenderSVGRoot::layout.
1184
1185         And here's the bug: The size of the object/iframe replaced element, which hosts the embedded document
1186         may depend on the intrinsic size of the SVG. We tried to mark the embedded documents _ownerRenderer_ (the RenderPart)
1187         as "needs layout and pref width recalc" right from RenderSVGRoot::layout() and hoped that this would cause the whole
1188         document to be laid out again, now that the size of the embedded SVG document is known.
1189
1190         As soon as the SVG document is laid out, the host document will be painted (flush deferred repaints) and an assertion
1191         ASSERTS(!needsLayout()) will be fired, as we modified the setNeedsLayout() state after the host document layout finished,
1192         right before painting.
1193
1194         A proper fix is to only keep track in RenderSVGRoot whether it needs to negotiate the size with the host document, but
1195         not modify the layout state of the host document in any way. Let FrameView handle the size negotiation right in
1196         FrameView::layout().
1197
1198         Consider following document:
1199         <body><iframe src="some.svg"></body>
1200         
1201         After initial loading & parsing of the document, a FrameView exists for the main frame, and a sub-FrameView
1202         for the <iframe>. The external SVG document, may not be loaded yet at this point. That means when RenderIFrame::layout()
1203         tries to figure out its size (computeLogicalWidth/Height) - the RenderSVGRoot renderer of the external document hasn't
1204         been created yet (as the external document hasn't received data yet) - so it falls back to eg. 300x150 CSS default size
1205         (in the simplest case, where width/height are both auto).
1206
1207         Suppose the external document now finished loading, the RenderSVGRoot is created and a global relayout is triggered
1208         starting from the main FrameView. As we already laid out the document once, needsLayout() is false for the main FrameView,
1209         so _only_ the child frame view that contains the RenderSVGRoot is now laid out, for the first time.
1210
1211         After layout is done, the SVG document is fully laid out, though the RenderPart which embedded the SVG does NOT notice
1212         the SVG has been laid out, so it still carries the default 300x150 size (and needsLayout=false!).
1213
1214         The fix is to retrigger layout of the parent frame view by marking the owner renderer of the frame view as "needs layout
1215         and pref widths recalc" and immediatiely performing a synchronous update of the layout. It's important to do it sync,
1216         as scripts depend on the result of the size negotiation (covered extensively with the new tests in svg/as-object).
1217
1218         Reenable svg/zoom/page/zoom-svg-through-object* tests to see whether the flakiness is gone.
1219
1220         Tests: svg/as-object/deep-nested-embedded-svg-size-changes-no-layout-triggers-1.html
1221                svg/as-object/deep-nested-embedded-svg-size-changes-no-layout-triggers-2.html
1222                svg/as-object/embedded-svg-immediate-offsetWidth-query.html
1223                svg/as-object/embedded-svg-size-changes-no-layout-triggers.html
1224                svg/as-object/embedded-svg-size-changes.html
1225                svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-1.html
1226                svg/as-object/nested-embedded-svg-size-changes-no-layout-triggers-2.html
1227                svg/as-object/nested-embedded-svg-size-changes.html
1228                svg/zoom/page/zoom-svg-through-object-with-absolute-size-2.xhtml
1229                svg/zoom/page/zoom-svg-through-object-with-absolute-size.xhtml
1230                svg/zoom/page/zoom-svg-through-object-with-auto-size.html
1231                svg/zoom/page/zoom-svg-through-object-with-huge-size.xhtml
1232                svg/zoom/page/zoom-svg-through-object-with-override-size.html
1233                svg/zoom/page/zoom-svg-through-object-with-percentage-size.xhtml
1234
1235         * page/FrameView.cpp:
1236         (WebCore::FrameView::layout): Call forceLayoutParentViewIfNeeded() after layout finished.
1237         (WebCore::FrameView::forceLayoutParentViewIfNeeded): Added helper method.
1238         (WebCore::FrameView::embeddedContentBox): Moved from RenderPart to a more central place.
1239         * page/FrameView.h:
1240         * rendering/RenderPart.cpp:
1241         (WebCore::RenderPart::embeddedContentBox): Moved to FrameView.
1242         * rendering/svg/RenderSVGRoot.cpp: Rename m_didNegotiateSize to m_needsSizeNegotiationWithHostDocument.
1243         (WebCore::RenderSVGRoot::RenderSVGRoot):
1244         (WebCore::RenderSVGRoot::layout): Only figure out if we need neggotiation, don't actually do anything, let FrameView handle this.
1245         * rendering/svg/RenderSVGRoot.h: Remove incorrect negotiateSizeWithHostDocumentIfNeeded() logic.
1246         (WebCore::RenderSVGRoot::needsSizeNegotiationWithHostDocument): Added getter for m_needsSizeNegotiationWithHostDocument.
1247         (WebCore::RenderSVGRoot::scheduledSizeNegotiationWithHostDocument): Added safe way to clear m_needsSizeNegotiationWithHostDocument (asserts if it was false before).
1248
1249 2011-08-05  Noel Gordon  <noel.gordon@gmail.com>
1250
1251         [Chromium] Remove HaltablePlugin references from gyp project files
1252         https://bugs.webkit.org/show_bug.cgi?id=65808
1253
1254         HaltablePlugin and related classes were removed in r92492.  Remove any
1255         reference to the deleted files from the gyp project files.
1256
1257         Reviewed by Adam Barth.
1258
1259         * WebCore.gypi: remove HaltablePlugin.h reference.
1260
1261 2011-08-05  Mark Rowe  <mrowe@apple.com>
1262
1263         Attempt to fix the build after r92538.
1264
1265         Like all of the recent "track"-related work the new files in r92538 appear to have
1266         been added to completely random places in the Xcode project. However, this time
1267         the file paths were marked as being relative to their containing group resulting in
1268         Xcode being unable to find the files on disk.
1269
1270         I've attempted to clean up all of the "track"-related mess in the Xcode project.
1271         The location of the files in the project now reflect their locations on disk, and
1272         are all correctly marked as being relative to their containing group as is our
1273         convention.
1274
1275         * WebCore.xcodeproj/project.pbxproj:
1276
1277 2011-08-05  Tom Hudson  <tomhudson@google.com>
1278
1279         https://bugs.webkit.org/show_bug.cgi?id=64613
1280         Use supported framebuffer renderbuffer mode; chromium command buffer
1281         allows DEPTH and STENCIL but not DEPTH_STENCIL.
1282
1283         Reviewed by James Robinson.
1284
1285         No new tests because was caught by extant tests, albeit only when
1286         accelerated drawing and forced compositing were both turned on.
1287
1288         * platform/graphics/chromium/LayerTextureUpdaterCanvas.cpp:
1289         (WebCore::LayerTextureUpdaterSkPicture::createFrameBuffer):
1290
1291 2011-08-05  Anna Cavender  <annacc@chromium.org>
1292
1293         Adding a WebVTTParser for <track>.
1294         https://bugs.webkit.org/show_bug.cgi?id=62882
1295
1296         Reviewed by Eric Carlson.
1297
1298         Feature is hidden behind VIDEO_TRACK feature define, which is turned off, but
1299         new tests have been added in media/track/ (and are skipped).
1300
1301         * CMakeLists.txt:
1302         * GNUmakefile.list.am:
1303         * WebCore.gypi:
1304         * WebCore.pro:
1305         * WebCore.xcodeproj/project.pbxproj:
1306         * html/TextTrackCue.cpp:
1307         * html/TextTrackCue.h:
1308         * platform/track/CueParser.cpp:
1309         * platform/track/CueParser.h:
1310         * platform/track/CueParserPrivate.h:
1311         * platform/track/WebVTTParser.cpp: Added.
1312         * platform/track/WebVTTParser.h: Added.
1313
1314 2011-08-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1315
1316         Unreviewed, rolling out r92330.
1317         http://trac.webkit.org/changeset/92330
1318         https://bugs.webkit.org/show_bug.cgi?id=65804
1319
1320         caused various regressions in paste (Requested by rniwa on
1321         #webkit).
1322
1323         * editing/ReplaceSelectionCommand.cpp:
1324         (WebCore::isInlineNodeWithStyle):
1325         (WebCore::ReplaceSelectionCommand::doApply):
1326         * editing/markup.cpp:
1327         (WebCore::ancestorToRetainStructureAndAppearance):
1328         * editing/markup.h:
1329
1330 2011-08-05  Kent Tamura  <tkent@chromium.org>
1331
1332         Unreviewed, rolling out r92477.
1333         http://trac.webkit.org/changeset/92477
1334         https://bugs.webkit.org/show_bug.cgi?id=62619
1335
1336         Layering violation. We should not use WebCore/dom/ in
1337         WebCore/platform/.
1338
1339         * WebCore.exp.in:
1340         * WebCore.xcodeproj/project.pbxproj:
1341         * html/ColorInputType.cpp:
1342         (WebCore::ColorInputType::valueChanged):
1343         * html/ColorInputType.h:
1344         * html/FileInputType.cpp:
1345         (WebCore::FileInputType::chrome):
1346         * html/FileInputType.h:
1347         * html/HTMLInputElement.cpp:
1348         (WebCore::HTMLInputElement::detach):
1349         * html/InputType.cpp:
1350         * html/InputType.h:
1351         * loader/EmptyClients.h:
1352         * loader/FrameLoader.cpp:
1353         (WebCore::FrameLoader::transitionToCommitted):
1354         * page/Chrome.cpp:
1355         * page/Chrome.h:
1356         * page/ChromeClient.h:
1357         * platform/ColorChooser.cpp: Removed.
1358         * platform/ColorChooser.h: Removed.
1359
1360 2011-08-05  Darin Adler  <darin@apple.com>
1361
1362         Try to fix Qt Mac build.
1363
1364         * plugins/mac/PluginViewMac.mm: Removed PluginHalter functions.
1365
1366 2011-08-05  Joseph Pecoraro  <joepeck@webkit.org>
1367
1368         Leak in CFNetwork Loader RetainPtr<> should Adopt a Copy allocation
1369         https://bugs.webkit.org/show_bug.cgi?id=65789
1370
1371         Reviewed by David Kilzer.
1372
1373         Fix a leak by adopting an allocation instead of retaining it.
1374
1375         * platform/network/cf/FormDataStreamCFNet.cpp:
1376         (WebCore::httpBodyFromRequest):
1377
1378 2011-08-05  Ben Wells  <benwells@chromium.org>
1379
1380         Introduced fast path for border rendering when all visible sides are solid, same rgba color but not all visible
1381         https://bugs.webkit.org/show_bug.cgi?id=65762
1382
1383         Reviewed by Simon Fraser.
1384
1385         No intended change in behaviour, no new tests.
1386
1387         * rendering/RenderBoxModelObject.cpp:
1388         (WebCore::calculateSideRect):
1389         (WebCore::RenderBoxModelObject::paintBorderSides):
1390         (WebCore::RenderBoxModelObject::paintBorder):
1391
1392 2011-08-05  Kenichi Ishibashi  <bashi@chromium.org>
1393
1394         Unreviewed build fix on 32-bit Mac.
1395
1396         * css/CSSParser.cpp:
1397         (WebCore::CSSParser::parseFontFeatureTag): Added a cast to int.
1398
1399 2011-08-05  Ryosuke Niwa  <rniwa@webkit.org>
1400
1401         Upwards cursor movement incorrect when previous block ends with <br>
1402         https://bugs.webkit.org/show_bug.cgi?id=33247
1403
1404         Reviewed by Tony Chang.
1405
1406         The bug was caused by previousLinePosition's trying to obtain the root line box at the position
1407         after the previous line's br. This obviously fails because the the position after br is considered
1408         as a part of the next line.
1409
1410         Fixed the bug by obtaining root inline boxes using position at the minimum caret offset as supposed
1411         to maximum caret offset. The code was initially introduced by r32508 to fix arrow key movement in RTL text
1412         but the test added by the revision continues to pass after this change. Furthermore, this change makes
1413         new code consistent with nextLinePosition.
1414
1415         Also reverted the change added by r55613 because it is no longer needed.
1416
1417         Tests: editing/execCommand/move-selection-back-line-rtl.html
1418                editing/execCommand/move-selection-back-line-strict.html
1419
1420         * editing/visible_units.cpp:
1421         (WebCore::previousLinePosition):
1422
1423 2011-08-05  James Robinson  <jamesr@chromium.org>
1424
1425         [chromium] Accelerated canvas breaks when moving canvases or resources between Pages
1426         https://bugs.webkit.org/show_bug.cgi?id=65402
1427
1428         Reviewed by Stephen White.
1429
1430         Use one shared GraphicsContext3D for the whole process instead of one per Page as canvases can move between
1431         pages and directly draw into contexts in different pages.  Also switches DrawingBufferChromium over to use a
1432         directly shared the color attachment instead of copying it to a separate texture and removes the now-unnecessary
1433         DrawingBuffer::didReset() call and WillPublishCallback mechanism.
1434
1435         * page/Page.cpp:
1436         (WebCore::Page::sharedGraphicsContext3D):
1437         * page/Page.h:
1438         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
1439         (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
1440         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
1441         (WebCore::Canvas2DLayerChromium::textureId):
1442         (WebCore::Canvas2DLayerChromium::setDrawingBuffer):
1443         * platform/graphics/chromium/CanvasLayerChromium.cpp:
1444         (WebCore::CanvasLayerChromium::CanvasLayerChromium):
1445         * platform/graphics/chromium/CanvasLayerChromium.h:
1446         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1447         (WebCore::DrawingBuffer::DrawingBuffer):
1448         (WebCore::DrawingBuffer::publishToPlatformLayer):
1449         * platform/graphics/chromium/Extensions3DChromium.h:
1450         * platform/graphics/chromium/WebGLLayerChromium.cpp:
1451         (WebCore::WebGLLayerChromium::WebGLLayerChromium):
1452         * platform/graphics/chromium/WebGLLayerChromium.h:
1453
1454 2011-08-05  Anders Carlsson  <andersca@apple.com>
1455
1456         Fix Chromium build.
1457
1458         * WebCore.gypi:
1459
1460 2011-08-05  Anders Carlsson  <andersca@apple.com>
1461
1462         Remove PluginHalter
1463         https://bugs.webkit.org/show_bug.cgi?id=65729
1464
1465         Reviewed by Darin Adler.
1466
1467         Remove plug-in halter and associated classes.
1468
1469         * CMakeLists.txt:
1470         * GNUmakefile.list.am:
1471         * WebCore.exp.in:
1472         * WebCore.pro:
1473         * WebCore.vcproj/WebCore.vcproj:
1474         * WebCore.xcodeproj/project.pbxproj:
1475         * loader/EmptyClients.h:
1476         * page/HaltablePlugin.h: Removed.
1477         * page/Page.cpp:
1478         (WebCore::Page::Page):
1479         * page/Page.h:
1480         * page/PluginHalter.cpp: Removed.
1481         * page/PluginHalter.h: Removed.
1482         * page/PluginHalterClient.h: Removed.
1483         * page/Settings.cpp:
1484         (WebCore::Settings::Settings):
1485         * page/Settings.h:
1486         * plugins/PluginView.cpp:
1487         (WebCore::PluginView::start):
1488         (WebCore::PluginView::stop):
1489         (WebCore::PluginView::PluginView):
1490         * plugins/PluginView.h:
1491         * plugins/PluginViewNone.cpp:
1492         * plugins/gtk/PluginViewGtk.cpp:
1493         * plugins/qt/PluginViewQt.cpp:
1494         * plugins/win/PluginViewWin.cpp:
1495         * rendering/RenderWidget.cpp:
1496         (WebCore::RenderWidget::paint):
1497         * rendering/RenderWidget.h:
1498
1499 2011-08-05  Jochen Eisinger  <jochen@chromium.org>
1500
1501         Introduce a new ResourceRequest::TargetType for XHRs
1502         https://bugs.webkit.org/show_bug.cgi?id=65544
1503
1504         Reviewed by Darin Fisher.
1505
1506         * platform/network/chromium/ResourceRequest.h:
1507         * xml/XMLHttpRequest.cpp:
1508         (WebCore::XMLHttpRequest::createRequest):
1509
1510 2011-08-05  Yael Aharon  <yael.aharon@nokia.com>
1511
1512         dir=auto needs to work on value of input and textarea elements
1513         https://bugs.webkit.org/show_bug.cgi?id=65428
1514
1515         Reviewed by Darin Adler.
1516
1517         Changed the directionality algorithm to evaluate the value of input elements and textarea elements when
1518         they have the attribute dir-auto Set.
1519         Also skip these elements when evaluating the directionality of their ancestors.
1520
1521         HTMLTextAreaElement::childrenChanged is not called when a user types into the textarea, so call
1522         calculateAndAdjustDirectionality() explicitly from HTMLTextAreaElement::subtreeHasChanged().
1523
1524         HTMLInputElement::childrenChanged is not called when a user types into the textarea, so call
1525         calculateAndAdjustDirectionality() explicitly from HTMLTextAreaElement::subtreeHasChanged().
1526
1527         Tests: fast/dom/HTMLElement/attr-dir-auto-changed-text-form-control.html
1528                fast/dom/HTMLElement/attr-dir-auto-text-form-control-child.html
1529                fast/dom/HTMLElement/attr-dir-auto-text-form-control.html
1530
1531         * html/HTMLElement.cpp:
1532         (WebCore::HTMLElement::directionality):
1533         * html/HTMLElement.h:
1534         * html/HTMLTextAreaElement.cpp:
1535         (WebCore::HTMLTextAreaElement::subtreeHasChanged):
1536
1537 2011-08-05  Keishi Hattori  <keishi@webkit.org>
1538
1539         Implement <input type=color> UI behavior WebCore part
1540         https://bugs.webkit.org/show_bug.cgi?id=62619
1541
1542         Reviewed by Kent Tamura.
1543
1544         * WebCore.exp.in: Added __ZN7WebCore12ColorChooser7chooserEv and
1545         __ZNK7WebCore12ColorChooser13colorSelectedERKNS_5ColorE
1546         * WebCore.xcodeproj/project.pbxproj: Added ColorChooser.{h,cpp}
1547         * html/ColorInputType.cpp:
1548         (WebCore::ColorInputType::~ColorInputType): Added. Close color chooser. ex. when type attribute changes.
1549         (WebCore::ColorInputType::valueAsColor): Added.
1550         (WebCore::ColorInputType::setValueAsColor): Added.
1551         (WebCore::ColorInputType::valueChanged): Update selected color in color chooser too.
1552         (WebCore::ColorInputType::handleClickEvent): Opens color chooser.
1553         (WebCore::ColorInputType::handleDOMActivateEvent): Called when element.click(). Open color chooser only
1554         when it was initiated by a user interaction.
1555         (WebCore::ColorInputType::detach): Close color chooser. Called when input element or its ancestors have "display:none"
1556         or is removed from DOM.
1557         (WebCore::ColorInputType::colorSelected): Callback from color chooser.
1558         (WebCore::ColorInputType::closeColorChooserIfClientIsInDocument): Close color chooser if element is in
1559         document. Called when the page navigates away.
1560         (WebCore::ColorInputType::closeColorChooserIfCurrentClient): Close color chooser if this input type is the current client of ColorChooser.
1561         * html/ColorInputType.h:
1562         * html/FileInputType.cpp:
1563         * html/FileInputType.h:
1564         * html/HTMLInputElement.cpp:
1565         (WebCore::HTMLInputElement::detach): Calls InputType::detach
1566         * html/InputType.cpp:
1567         (WebCore::InputType::chrome): Added. Used in FileInputType and ColorInputType.
1568         (WebCore::InputType::detach): ColorInputType overrides this.
1569         * html/InputType.h:
1570         * loader/EmptyClients.h:
1571         (WebCore::EmptyChromeClient::openColorChooser): Added.
1572         (WebCore::EmptyChromeClient::closeColorChooser): Added.
1573         (WebCore::EmptyChromeClient::setSelectedColorInColorChooser): Added.
1574         * loader/FrameLoader.cpp:
1575         (WebCore::FrameLoader::transitionToCommitted): Close color chooser when
1576         navigating away from the page.
1577         * page/Chrome.cpp:
1578         (WebCore::Chrome::openColorChooser): Added. Opens the color chooser.
1579         (WebCore::Chrome::closeColorChooser): Added. Tries to close the color chooser. Might not close if the
1580         listener of the color chooser is another part of the browser or another render process.
1581         (WebCore::Chrome::setSelectedColorInColorChooser): Added. Sets the selected color in the color chooser.
1582         Again, might not be executed if the listener of the color chooser is another part of the browser or another render process.
1583         * page/Chrome.h:
1584         * page/ChromeClient.h:
1585         * platform/ColorChooser.cpp: Added.
1586         (WebCore::ColorChooserClient::~ColorChooserClient): Disconnects itself from the ColorChooser.
1587         (WebCore::ColorChooser::chooser): Get shared instance of ColorChooser.
1588         (WebCore::ColorChooser::chooser): Get shared instance of ColorChooser.
1589         (WebCore::ColorChooser::connectClient): Connects a ColorChooserClient that receives the colorSelected callbacks.
1590         (WebCore::ColorChooser::disconnectClient): Disconnects the connectClient.
1591         (WebCore::ColorChooser::closeColorChooserIfClientIsInDocument): Close the color chooser if the client is
1592         inside the document.
1593         (WebCore::ColorChooser::colorSelected): Called from color chooser listener.
1594         * platform/ColorChooser.h: Added.
1595         (WebCore::ColorChooser::client): Added. Returns the current connected client.
1596         (WebCore::ColorChooser::ColorChooser): Added.
1597
1598 2011-08-05  Yury Semikhatsky  <yurys@chromium.org>
1599
1600         Web Inspector: check that detaching frame has been attached before removing it from the console selector
1601         https://bugs.webkit.org/show_bug.cgi?id=65686
1602
1603         Reviewed by Pavel Feldman.
1604
1605         * inspector/front-end/JavaScriptContextManager.js:
1606         (WebInspector.JavaScriptContextManager.prototype._frameDetached):
1607
1608 2011-08-05  Keishi Hattori  <keishi@webkit.org>
1609
1610         Sort WebCore.xcodeproj
1611         Accomplished using sort-Xcode-project-file.
1612
1613         * WebCore.xcodeproj/project.pbxproj:
1614
1615 2011-08-05  Yury Semikhatsky  <yurys@chromium.org>
1616
1617         Web Inspector: constrain maximum depth for returnByValue objects
1618         https://bugs.webkit.org/show_bug.cgi?id=65761
1619
1620         Set maximum depth to 20 for objects returned by value as a result of evaluations.
1621
1622         Reviewed by Pavel Feldman.
1623
1624         * bindings/js/ScriptValue.cpp:
1625         (WebCore::jsToInspectorValue):
1626         (WebCore::ScriptValue::toInspectorValue):
1627         * bindings/v8/ScriptValue.cpp:
1628         (WebCore::v8ToInspectorValue):
1629         (WebCore::ScriptValue::toInspectorValue):
1630         * inspector/InjectedScript.cpp:
1631         (WebCore::InjectedScript::makeCall):
1632         * inspector/InspectorValues.h:
1633
1634 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1635
1636         Remove LegacyDefaultOptionalArguments flag from appcache IDL files
1637         https://bugs.webkit.org/show_bug.cgi?id=65752
1638
1639         Reviewed by Adam Barth.
1640
1641         No new tests, all existing tests pass.
1642
1643         * loader/appcache/DOMApplicationCache.idl:
1644
1645 2011-08-04  Hans Wennborg  <hans@chromium.org>
1646
1647         IndexedDB: Stop using free-lists for database/object store/index ids.
1648         https://bugs.webkit.org/show_bug.cgi?id=65678
1649
1650         Reviewed by Tony Chang.
1651
1652         Don't use free-lists for database/object store/index ids,
1653         just assign increasing numbers.
1654
1655         It turns out that deleting an object store and creating a new one with
1656         the same id would cause the delete markers from the old object store to
1657         slow down lookups into the new one. Therefore we should generate
1658         a new id every time. Running out of ids (64 bits for databases and
1659         object stores, 32 bits for indices) is not realistic.
1660
1661         Also make functions that generate new ids report errors, and make the
1662         callers of those functions check the return values.
1663
1664         We must still delete free-lists when deleting an object store, and we
1665         must keep the code for encoding/decoding/comparison of free-list keys
1666         since users might have them in their databases.
1667
1668         This is just a performance optimization, so no new tests.
1669
1670         * storage/IDBLevelDBBackingStore.cpp:
1671         (WebCore::getNewDatabaseId):
1672         (WebCore::IDBLevelDBBackingStore::setIDBDatabaseMetaData):
1673         (WebCore::getNewObjectStoreId):
1674         (WebCore::IDBLevelDBBackingStore::createObjectStore):
1675         (WebCore::IDBLevelDBBackingStore::deleteObjectStore):
1676         (WebCore::getNewIndexId):
1677         (WebCore::IDBLevelDBBackingStore::createIndex):
1678         (WebCore::IDBLevelDBBackingStore::deleteIndex):
1679
1680 2011-08-05  Roland Steiner  <rolandsteiner@chromium.org>
1681
1682         Unreviewed: change an instance of isImportRule() that was overlooked in commit 92448.
1683
1684         No new tests. (No functional change)
1685
1686         * xml/XSLImportRule.h:
1687         (WebCore::XSLImportRule::isImportRule):
1688
1689 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1690
1691         Remove LegacyDefaultOptionalArguments flag from remaining SVG IDL files
1692         https://bugs.webkit.org/show_bug.cgi?id=65751
1693
1694         Reviewed by Adam Barth.
1695
1696         No new tests, all existing tests pass.
1697
1698         * svg/SVGElementInstance.idl:
1699
1700 2011-08-05  Pavel Feldman  <pfeldman@google.com>
1701
1702         Web Inspector: do not delay scroll event handling - scroll is already async.
1703         https://bugs.webkit.org/show_bug.cgi?id=65693
1704
1705         Reviewed by Yury Semikhatsky.
1706
1707         * inspector/front-end/TextViewer.js:
1708         (WebInspector.TextViewer.prototype._syncScroll):
1709
1710 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1711
1712         Remove LegacyDefaultOptionalArguments flag from web audio API
1713         https://bugs.webkit.org/show_bug.cgi?id=65750
1714
1715         Reviewed by Adam Barth.
1716
1717         No new tests, all existing tests pass.
1718
1719         * webaudio/AudioBufferSourceNode.idl:
1720
1721 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1722
1723         Remove LegacyDefaultOptionalArguments flag from Web Workers
1724         https://bugs.webkit.org/show_bug.cgi?id=65746
1725
1726         Reviewed by Adam Barth.
1727
1728         No new tests, all existing tests pass.
1729
1730         * workers/AbstractWorker.idl:
1731         * workers/DedicatedWorkerContext.idl:
1732         * workers/Worker.idl:
1733         * workers/WorkerContext.idl:
1734
1735 2011-08-05  Kenichi Ishibashi  <bashi@chromium.org>
1736
1737         Parsing CSS3 font-feature-settings property
1738         https://bugs.webkit.org/show_bug.cgi?id=63618
1739
1740         Introduces CSS3 font-feature-settings property as -webkit-font-feature-settings.  This change only contains parsing part.  Parsed information are stored in FontDescription class.
1741
1742         Reviewed by Shinichiro Hamaji.
1743
1744         Test: css3/font-feature-settings-parsing.html
1745
1746         * CMakeLists.txt: Added FontFeatureValue.{h,cpp} and FontFeatureSettings.{h,cpp}.
1747         * GNUmakefile.list.am: Ditto.
1748         * WebCore.gypi: Ditto.
1749         * WebCore.pro: Ditto.
1750         * WebCore.vcproj/WebCore.vcproj: Ditto.
1751         * WebCore.xcodeproj/project.pbxproj: Ditto.
1752         * css/CSSComputedStyleDeclaration.cpp:
1753         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added CSSPropertyWebkitFontFeatureSettings.
1754         * css/CSSParser.cpp:
1755         (WebCore::CSSParser::parseValue): Added parsing code for -webkit-font-feature-settings.
1756         (WebCore::CSSParser::parseFontFeatureTag): Added.
1757         (WebCore::CSSParser::parseFontFeatureSettings): Added.
1758         * css/CSSParser.h: Added parseFontFeatureSettings().
1759         * css/CSSPropertyNames.in: Added -webkit-font-feature-settings.
1760         * css/CSSStyleSelector.cpp:
1761         (WebCore::CSSStyleSelector::applyDeclarations): Modified a compile assert to follow adding -webkit-font-feature-settings.
1762         (WebCore::CSSStyleSelector::applyProperty): Added a case clause for CSSPropertyWebkitFontFeatureSettings.
1763         * css/CSSValue.h:
1764         (WebCore::CSSValue::isFontFeatureValue): Added.
1765         * css/CSSValueKeywords.in: Added 'on' and 'off' keywords.
1766         * css/FontFeatureValue.cpp: Added.
1767         (WebCore::FontFeatureValue::FontFeatureValue):
1768         (WebCore::FontFeatureValue::value):
1769         (WebCore::FontFeatureValue::cssText):
1770         * css/FontFeatureValue.h: Added.
1771         (WebCore::FontFeatureValue::create):
1772         (WebCore::FontFeatureValue::tag):
1773         (WebCore::FontFeatureValue::isFontFeatureValue):
1774         * platform/graphics/FontDescription.cpp:
1775         (WebCore::FontDescription::makeNormalFeatureSettings): Added.
1776         * platform/graphics/FontDescription.h:
1777         (WebCore::FontDescription::FontDescription): Added m_featureSettings member variable.
1778         (WebCore::FontDescription::featureSettings): Added.
1779         (WebCore::FontDescription::setFeatureSettings): Added.
1780         (WebCore::FontDescription::operator==): Modified to take into account m_featureSettings
1781         * platform/graphics/FontFeatureSettings.cpp: Added.
1782         (WebCore::FontFeature::FontFeature):
1783         (WebCore::FontFeature::operator=):
1784         (WebCore::FontFeature::operator==):
1785         (WebCore::FontFeatureSettings::FontFeatureSettings):
1786         * platform/graphics/FontFeatureSettings.h: Added.
1787         (WebCore::FontFeature::tag):
1788         (WebCore::FontFeature::value):
1789         (WebCore::FontFeatureSettings::create):
1790         (WebCore::FontFeatureSettings::append):
1791         (WebCore::FontFeatureSettings::size):
1792         (WebCore::FontFeatureSettings::operator[]):
1793         (WebCore::FontFeatureSettings::at):
1794
1795 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1796
1797         Remove LegacyDefaultOptionalArguments flag from websockets
1798         https://bugs.webkit.org/show_bug.cgi?id=65749
1799
1800         Reviewed by Adam Barth.
1801
1802         No new tests, all existing tests pass.
1803
1804         * websockets/WebSocket.idl:
1805
1806 2011-08-05  Adam Barth  <abarth@webkit.org>
1807
1808         Attempt to heal media/video-can-play-type.html and media/video-src-change.html.
1809
1810         * html/HTMLMediaElement.idl:
1811
1812 2011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
1813
1814         Remove LegacyDefaultOptionalArguments flag from notifications IDL files
1815         https://bugs.webkit.org/show_bug.cgi?id=65747
1816
1817         Reviewed by Adam Barth.
1818
1819         No new tests, all existing tests pass.
1820
1821         * notifications/Notification.idl:
1822         * notifications/NotificationCenter.idl:
1823
1824 2011-08-05  Sheriff Bot  <webkit.review.bot@gmail.com>
1825
1826         Unreviewed, rolling out r92439.
1827         http://trac.webkit.org/changeset/92439
1828         https://bugs.webkit.org/show_bug.cgi?id=65753
1829
1830         Caused 9 tests to fail on Qt (Requested by abarth on #webkit).
1831
1832         * dom/Document.cpp:
1833         (WebCore::Document::implicitOpen):
1834         * loader/FrameLoader.cpp:
1835         (WebCore::FrameLoader::transitionToCommitted):
1836         (WebCore::FrameLoader::detachChildren):
1837
1838 2011-08-04  Ryosuke Niwa  <rniwa@webkit.org>
1839
1840         Use RenderedPosition instead of getInlineBoxAndOffset in Editor and AccessibilityObject
1841         https://bugs.webkit.org/show_bug.cgi?id=65647
1842
1843         Reviewed by Hajime Morita.
1844
1845         Encapsulated the use of getInlineBoxAndOffset in Editor.cpp and AccessibilityObject.cpp by RenderedPosition.
1846
1847         Also added rendererFromPosition that returns the renderer of deprecatedNode but using a proper Position interface.
1848
1849         * accessibility/AccessibilityObject.cpp:
1850         (WebCore::updateAXLineStartForVisiblePosition):
1851         * editing/Editor.cpp:
1852         (WebCore::Editor::firstRectForRange):
1853         * editing/RenderedPosition.cpp:
1854         (WebCore::rendererFromPosition):
1855         (WebCore::RenderedPosition::RenderedPosition):
1856         (WebCore::RenderedPosition::absoluteRect):
1857         * editing/RenderedPosition.h:
1858         (WebCore::RenderedPosition::absoluteRect):
1859
1860 2011-08-04  Hayato Ito  <hayato@chromium.org>
1861
1862         Make ScopedEventQueue enqueue an EventDispatchMediator, instead of an Event.
1863         https://bugs.webkit.org/show_bug.cgi?id=65613
1864
1865         Reviewed by Dimitri Glazkov.
1866
1867         No changes to functionality so no new tests.
1868
1869         * dom/Event.h:
1870         * dom/EventDispatcher.cpp:
1871         (WebCore::EventDispatcher::dispatchScopedEvent):
1872         * dom/EventDispatcher.h:
1873         * dom/Node.cpp:
1874         (WebCore::Node::dispatchScopedEvent):
1875         (WebCore::Node::dispatchScopedEventDispatchMediator):
1876         * dom/Node.h:
1877         * dom/ScopedEventQueue.cpp:
1878         (WebCore::ScopedEventQueue::~ScopedEventQueue):
1879         (WebCore::ScopedEventQueue::enqueueEventDispatchMediator):
1880         (WebCore::ScopedEventQueue::dispatchAllEvents):
1881         (WebCore::ScopedEventQueue::dispatchEvent):
1882         * dom/ScopedEventQueue.h:
1883
1884 2011-08-04  James Robinson  <jamesr@chromium.org>
1885
1886         Unreviewed build fix.  gcc 4.5 can't figure out that the 'data' variables are always initialized in these functions.
1887
1888         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1889         (WebCore::jsArrayToFloatArray):
1890         (WebCore::jsArrayToIntArray):
1891
1892 2011-08-05  Roland Steiner  <rolandsteiner@chromium.org>
1893
1894         Improve const-correctness in CSS code: type information methods
1895         https://bugs.webkit.org/show_bug.cgi?id=65506
1896
1897         Reviewed by Simon Fraser.
1898
1899         Make "is...()" functions (e.g., "isStyleRule()") const.
1900         Also, change CSSRule's type() function to return CSSRuleType.
1901
1902         No new tests. (no change in semantics)
1903
1904         * css/CSSCharsetRule.h:
1905         (WebCore::CSSCharsetRule::isCharsetRule):
1906         (WebCore::CSSCharsetRule::type):
1907         * css/CSSFontFaceRule.h:
1908         (WebCore::CSSFontFaceRule::isFontFaceRule):
1909         (WebCore::CSSFontFaceRule::type):
1910         * css/CSSImportRule.h:
1911         (WebCore::CSSImportRule::isImportRule):
1912         (WebCore::CSSImportRule::type):
1913         * css/CSSMediaRule.h:
1914         (WebCore::CSSMediaRule::isMediaRule):
1915         (WebCore::CSSMediaRule::type):
1916         * css/CSSPageRule.h:
1917         (WebCore::CSSPageRule::isPageRule):
1918         (WebCore::CSSPageRule::type):
1919         * css/CSSRule.h:
1920         (WebCore::CSSRule::isRule):
1921         * css/CSSStyleRule.h:
1922         (WebCore::CSSStyleRule::isStyleRule):
1923         (WebCore::CSSStyleRule::type):
1924         * css/CSSUnknownRule.h:
1925         (WebCore::CSSUnknownRule::type):
1926         * css/StyleBase.h:
1927         (WebCore::StyleBase::isCharsetRule):
1928         (WebCore::StyleBase::isFontFaceRule):
1929         (WebCore::StyleBase::isImportRule):
1930         (WebCore::StyleBase::isKeyframeRule):
1931         (WebCore::StyleBase::isKeyframesRule):
1932         (WebCore::StyleBase::isMediaRule):
1933         (WebCore::StyleBase::isPageRule):
1934         (WebCore::StyleBase::isRule):
1935         (WebCore::StyleBase::isStyleRule):
1936         * css/WebKitCSSKeyframeRule.h:
1937         (WebCore::WebKitCSSKeyframeRule::isKeyframeRule):
1938         (WebCore::WebKitCSSKeyframeRule::type):
1939         * css/WebKitCSSKeyframesRule.h:
1940         (WebCore::WebKitCSSKeyframesRule::isKeyframesRule):
1941         (WebCore::WebKitCSSKeyframesRule::type):
1942
1943 2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
1944
1945         Remove LegacyDefaultOptionalArguments flag from plugin IDL files
1946         https://bugs.webkit.org/show_bug.cgi?id=65745
1947
1948         Reviewed by Adam Barth.
1949
1950         No new tests, all existing tests pass.
1951
1952         * plugins/DOMMimeTypeArray.idl:
1953         * plugins/DOMPlugin.idl:
1954         * plugins/DOMPluginArray.idl:
1955
1956 2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
1957
1958         Remove LegacyDefaultOptionalArguments flag from XML/XSL IDL files
1959         https://bugs.webkit.org/show_bug.cgi?id=65740
1960
1961         Reviewed by Adam Barth.
1962
1963         No new tests, all existing tests pass.
1964
1965         * xml/DOMParser.idl:
1966         * xml/XMLSerializer.idl:
1967         * xml/XPathEvaluator.idl:
1968         * xml/XPathExpression.idl:
1969         * xml/XPathNSResolver.idl:
1970         * xml/XPathResult.idl:
1971         * xml/XSLTProcessor.idl:
1972
1973 2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
1974
1975         Remove LegacyDefaultOptionalArguments flag from canvas IDL files
1976         https://bugs.webkit.org/show_bug.cgi?id=65737
1977
1978         Reviewed by Adam Barth.
1979
1980         No new tests, all existing tests pass.
1981
1982         * html/canvas/CanvasGradient.idl:
1983         * html/canvas/Float32Array.idl:
1984         * html/canvas/Float64Array.idl:
1985         * html/canvas/Int16Array.idl:
1986         * html/canvas/Int32Array.idl:
1987         * html/canvas/Int8Array.idl:
1988         * html/canvas/OESVertexArrayObject.idl:
1989         * html/canvas/Uint16Array.idl:
1990         * html/canvas/Uint32Array.idl:
1991         * html/canvas/Uint8Array.idl:
1992
1993 2011-08-04  MORITA Hajime  <morrita@google.com>
1994
1995         Reviewed by Ryosuke Niwa.
1996
1997         DocumentMarker: Type specific details should be separately held by other object.
1998         https://bugs.webkit.org/show_bug.cgi?id=59855
1999
2000         - Introduced DocumentMarkerDetails abstract class and two its subclasses
2001           DocumentMarkerDescription and DocumentMarkerActiveMatch,
2002         
2003         - Replacing DocumentMarker::m_description and
2004           DocumentMarker::m_activeMatch with these new details classes.
2005         
2006         No new tests. No behavior change.
2007
2008         * CMakeLists.txt:
2009         * GNUmakefile.list.am:
2010         * WebCore.gypi:
2011         * WebCore.pro:
2012         * WebCore.vcproj/WebCore.vcproj:
2013         * WebCore.xcodeproj/project.pbxproj:
2014         * dom/DOMAllInOne.cpp:
2015         * dom/DocumentMarker.cpp: Added.
2016         (WebCore::emptyDescription):
2017         (WebCore::DocumentMarkerDetails::DocumentMarkerDetails):
2018         (WebCore::DocumentMarkerDetails::~DocumentMarkerDetails):
2019         (WebCore::DocumentMarkerDescription::description):
2020         (WebCore::DocumentMarkerDescription::isDescription):        
2021         (WebCore::DocumentMarkerDescription::DocumentMarkerDescription):
2022         (WebCore::DocumentMarkerDescription::createUnlessEmpty):
2023         (WebCore::DocumentMarkerDescription::compatibleTypes):
2024         (WebCore::DocumentMarkerTextMatch::activeMatch):    
2025         (WebCore::DocumentMarkerTextMatch::isTextMatch):
2026         (WebCore::DocumentMarkerTextMatch::DocumentMarkerTextMatch):
2027         (WebCore::DocumentMarkerTextMatch::instanceFor):
2028         (WebCore::DocumentMarkerTextMatch::compatibleTypes):
2029         (WebCore::DocumentMarker::DocumentMarker):
2030         (WebCore::DocumentMarker::shiftOffsets):
2031         (WebCore::DocumentMarker::setActiveMatch):
2032         (WebCore::DocumentMarker::description):
2033         (WebCore::DocumentMarker::activeMatch):
2034         * dom/DocumentMarker.h:
2035         (WebCore::DocumentMarker::details):
2036         (WebCore::DocumentMarker::clearDetails):
2037         (WebCore::DocumentMarkerDetails::isDescription):
2038         (WebCore::DocumentMarkerDetails::isTextMatch):
2039         (WebCore::DocumentMarkerDetails::isAllowedFor):
2040         * dom/DocumentMarkerController.cpp:
2041         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
2042         * editing/CompositeEditCommand.cpp:
2043         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
2044
2045 2011-08-04  Scott Graham  <scottmg@chromium.org>
2046
2047         Bad interaction between document destruction and unload events
2048         https://bugs.webkit.org/show_bug.cgi?id=64741
2049
2050         Reviewed by Adam Barth.
2051
2052         Three different errors triggered by this test case. The case to
2053         consider is a subdocument with an onunload on an element, that
2054         destroys the parent document during the onunload. One fix was a
2055         lifetime issue fixed by a protecting RefPtr, and another was an
2056         additional cancel of event triggers. The main fix was that during the
2057         transition to commited state, the documentLoader is being replaced by
2058         the provisionalDocumentLoader. But, because during firing events in
2059         the subdocument the parent is destroyed, that subevent caused the
2060         provisionalDocumentLoader to be detached from its frame. By marking
2061         the page as being in committed state before the parent documentLoader
2062         is set, this is avoided.
2063
2064         Test: loader/document-destruction-within-unload.html
2065
2066         * dom/Document.cpp:
2067         (WebCore::Document::implicitOpen):
2068         * loader/FrameLoader.cpp:
2069         (WebCore::FrameLoader::transitionToCommitted):
2070         (WebCore::FrameLoader::detachChildren):
2071
2072 2011-08-04  Simon Fraser  <simon.fraser@apple.com>
2073
2074         Add code to determine whether a Range in inside fixed position content
2075         https://bugs.webkit.org/show_bug.cgi?id=65720
2076
2077         Reviewed by Sam Weinig.
2078
2079         Propagate the 'wasFixed' flag out from various methods that
2080         are used when computing the collection of rects or quads
2081         for a range. Use the flag in Range to computer whether
2082         the Range is entirely within, partially within, or outside
2083         of fixed-position content.
2084
2085         * WebCore.exp.in:
2086         * accessibility/AccessibilityRenderObject.cpp:
2087         (WebCore::AccessibilityRenderObject::boundingBoxRect):
2088         * dom/Range.cpp:
2089         (WebCore::Range::textRects):
2090         (WebCore::Range::textQuads):
2091         * dom/Range.h:
2092         * rendering/RenderBlock.cpp:
2093         (WebCore::RenderBlock::absoluteQuads):
2094         * rendering/RenderBlock.h:
2095         * rendering/RenderBox.cpp:
2096         (WebCore::RenderBox::absoluteQuads):
2097         * rendering/RenderBox.h:
2098         * rendering/RenderInline.cpp:
2099         (WebCore::RenderInline::absoluteQuads):
2100         * rendering/RenderInline.h:
2101         * rendering/RenderObject.h:
2102         (WebCore::RenderObject::absoluteQuads):
2103         * rendering/RenderText.cpp:
2104         (WebCore::RenderText::absoluteRectsForRange):
2105         (WebCore::RenderText::absoluteQuads):
2106         (WebCore::RenderText::absoluteQuadsForRange):
2107         * rendering/RenderText.h:
2108         * rendering/RenderView.cpp:
2109         (WebCore::RenderView::absoluteQuads):
2110         * rendering/RenderView.h:
2111         * rendering/svg/RenderSVGHiddenContainer.cpp:
2112         (WebCore::RenderSVGHiddenContainer::absoluteQuads):
2113         * rendering/svg/RenderSVGHiddenContainer.h:
2114         * rendering/svg/RenderSVGInline.cpp:
2115         (WebCore::RenderSVGInline::absoluteQuads):
2116         * rendering/svg/RenderSVGInline.h:
2117         * rendering/svg/RenderSVGModelObject.cpp:
2118         (WebCore::RenderSVGModelObject::absoluteQuads):
2119         * rendering/svg/RenderSVGModelObject.h:
2120         * rendering/svg/RenderSVGText.cpp:
2121         (WebCore::RenderSVGText::absoluteQuads):
2122         * rendering/svg/RenderSVGText.h:
2123
2124 2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
2125
2126         Remove LegacyDefaultOptionalArguments flag from Document.idl
2127         https://bugs.webkit.org/show_bug.cgi?id=65717
2128
2129         Reviewed by Adam Barth.
2130
2131         No new tests, all existing tests pass.
2132
2133         * dom/Document.idl:
2134
2135 2011-08-04  Simon Fraser  <simon.fraser@apple.com>
2136
2137         Fix release build failure with last commit.
2138
2139         * rendering/RenderView.cpp:
2140         (WebCore::RenderView::mapLocalToContainer):
2141
2142 2011-08-04  Simon Fraser  <simon.fraser@apple.com>
2143
2144         Add code to determine whether a Range in inside fixed position content
2145         https://bugs.webkit.org/show_bug.cgi?id=65720
2146
2147         Reviewed by Dan Bernstein.
2148
2149         Add an out param for various coordinate mapping functions
2150         that tells us whether the point or rectangle being
2151         mapped is inside fixed-position content.
2152         
2153         This brings back some of the changes from r89754.
2154         
2155         No behavior changes, so no tests.
2156
2157         * rendering/RenderBox.cpp:
2158         (WebCore::RenderBox::mapLocalToContainer):
2159         * rendering/RenderBox.h:
2160         * rendering/RenderInline.cpp:
2161         (WebCore::RenderInline::mapLocalToContainer):
2162         * rendering/RenderInline.h:
2163         * rendering/RenderObject.cpp:
2164         (WebCore::RenderObject::mapLocalToContainer):
2165         (WebCore::RenderObject::localToContainerQuad):
2166         * rendering/RenderObject.h:
2167         (WebCore::RenderObject::localToAbsoluteQuad):
2168         * rendering/RenderView.cpp:
2169         (WebCore::RenderView::mapLocalToContainer):
2170         * rendering/RenderView.h:
2171         * rendering/svg/RenderSVGForeignObject.cpp:
2172         (WebCore::RenderSVGForeignObject::mapLocalToContainer):
2173         * rendering/svg/RenderSVGForeignObject.h:
2174         * rendering/svg/RenderSVGInline.cpp:
2175         (WebCore::RenderSVGInline::mapLocalToContainer):
2176         * rendering/svg/RenderSVGInline.h:
2177         * rendering/svg/RenderSVGModelObject.cpp:
2178         (WebCore::RenderSVGModelObject::mapLocalToContainer):
2179         * rendering/svg/RenderSVGModelObject.h:
2180         * rendering/svg/RenderSVGRoot.cpp:
2181         (WebCore::RenderSVGRoot::mapLocalToContainer):
2182         * rendering/svg/RenderSVGRoot.h:
2183         * rendering/svg/RenderSVGText.cpp:
2184         (WebCore::RenderSVGText::mapLocalToContainer):
2185         * rendering/svg/RenderSVGText.h:
2186         * rendering/svg/SVGRenderSupport.cpp:
2187         (WebCore::SVGRenderSupport::mapLocalToContainer):
2188         * rendering/svg/SVGRenderSupport.h:
2189
2190 2011-08-04  Mark Pilgrim  <pilgrim@chromium.org>
2191
2192         Remove LegacyDefaultOptionalArguments flag from DOM-related files except Document.idl
2193         https://bugs.webkit.org/show_bug.cgi?id=65715
2194
2195         Reviewed by Adam Barth.
2196
2197         No new tests, all existing tests pass.
2198
2199         * dom/CharacterData.idl:
2200         * dom/ClientRectList.idl:
2201         * dom/Clipboard.idl:
2202         * dom/DOMImplementation.idl:
2203         * dom/DOMStringList.idl:
2204         * dom/DataTransferItem.idl:
2205         * dom/DataTransferItems.idl:
2206         * dom/DocumentFragment.idl:
2207         * dom/Element.idl:
2208         * dom/EventListener.idl:
2209         * dom/EventTarget.idl:
2210         * dom/MediaStream.idl:
2211         * dom/MediaStreamList.idl:
2212         * dom/MediaStreamTrackList.idl:
2213         * dom/MessagePort.idl:
2214         * dom/NamedNodeMap.idl:
2215         * dom/Node.idl:
2216         * dom/NodeFilter.idl:
2217         * dom/NodeList.idl:
2218         * dom/Range.idl:
2219         * dom/RequestAnimationFrameCallback.idl:
2220         * dom/StringCallback.idl:
2221         * dom/Text.idl:
2222         * dom/TouchList.idl:
2223
2224 2011-08-04  Mark Rowe  <mrowe@apple.com>
2225
2226         Future-proof Xcode configuration settings.
2227
2228         * Configurations/Base.xcconfig:
2229         * Configurations/DebugRelease.xcconfig:
2230         * Configurations/Version.xcconfig:
2231         * Configurations/WebCore.xcconfig:
2232
2233 2011-08-04  Van Lam  <vanlam@google.com>
2234
2235         A few purely stylistic modifications to visible_units.cpp
2236         https://bugs.webkit.org/show_bug.cgi?id=65723
2237
2238         Reviewed by Ryosuke Niwa.
2239
2240         Renamed greatestValueUnder to greatestOffsetUnder, positionIsInsideBox
2241         to positionIsInBoxButNotOnBoundary (to avoid confusion with
2242         positionIsInBox, which is just a getInlineBoxAndOffset check).
2243         Removed use of invalidOffset as an error value in greatestOffsetUnder
2244         and smallestOffsetAbove since semantically it should only be used to
2245         check if it makes sense to compare offsets in a single box.
2246
2247         * editing/visible_units.cpp:
2248         (WebCore::greatestOffsetUnder):
2249         (WebCore::smallestOffsetAbove):
2250         (WebCore::positionIsInBoxButNotOnBoundary):
2251         (WebCore::leftWordPositionAcrossBoundary):
2252         (WebCore::rightWordPositionAcrossBoundary):
2253
2254 2011-08-04  James Robinson  <jamesr@chromium.org>
2255
2256         [chromium] Implement a global resource limit for DrawingBuffer to limit the amount of GPU memory used by 2d canvas backing stores
2257         https://bugs.webkit.org/show_bug.cgi?id=65655
2258
2259         Reviewed by Kenneth Russell.
2260
2261         * platform/graphics/gpu/DrawingBuffer.cpp:
2262         (WebCore::DrawingBuffer::setResourceLimit):
2263         (WebCore::DrawingBuffer::clear):
2264         (WebCore::DrawingBuffer::reset):
2265         * platform/graphics/gpu/DrawingBuffer.h:
2266
2267 2011-08-04  Kenichi Ishibashi  <bashi@chromium.org>
2268
2269         [Chromium] Reduce memory consumption of HarfbuzzFace
2270         https://bugs.webkit.org/show_bug.cgi?id=65688
2271
2272         Adds a cache for HB_FaceRec to eliminate multiple allocation for the same font.
2273
2274         Reviewed by Tony Chang.
2275
2276         No new tests since there is no behavior change.
2277
2278         * platform/graphics/chromium/HarfbuzzSkia.cpp:
2279         (WebCore::getCachedHarfbuzzFace): Added.
2280         (WebCore::releaseCachedHarfbuzzFace): Ditto.
2281         (WebCore::HarfbuzzFace::HarfbuzzFace): Calls getCachedHarfbuzzFace() instead of allocating HB_FaceRec.
2282         (WebCore::HarfbuzzFace::~HarfbuzzFace): Calls releaseCachedHarfbuzzFace() to release the onership of the cache.
2283         * platform/graphics/chromium/HarfbuzzSkia.h:
2284
2285 2011-08-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2286
2287         Unreviewed, rolling out r92415.
2288         http://trac.webkit.org/changeset/92415
2289         https://bugs.webkit.org/show_bug.cgi?id=65728
2290
2291         Causes many DEBUG crashes (Requested by abarth on #webkit).
2292
2293         * platform/network/chromium/ResourceRequest.h:
2294         * xml/XMLHttpRequest.cpp:
2295         (WebCore::XMLHttpRequest::createRequest):
2296
2297 2011-08-04  Tim Horton  <timothy_horton@apple.com>
2298
2299         Reviewed by Nikolas Zimmerman.
2300
2301         Errors encountered within SVG documents should be reported to the console
2302         https://bugs.webkit.org/show_bug.cgi?id=62599
2303         <rdar://problem/9727074>
2304
2305         Make use of SVGLength::construct when parsing Length attributes; we will
2306         now propagate errors which occur while parsing SVGLength attributes to the
2307         Web Inspector console.
2308
2309         * svg/SVGCircleElement.cpp:
2310         (WebCore::SVGCircleElement::parseMappedAttribute):
2311         * svg/SVGCursorElement.cpp:
2312         (WebCore::SVGCursorElement::parseMappedAttribute):
2313         * svg/SVGEllipseElement.cpp:
2314         (WebCore::SVGEllipseElement::parseMappedAttribute):
2315         * svg/SVGFilterElement.cpp:
2316         (WebCore::SVGFilterElement::parseMappedAttribute):
2317         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2318         (WebCore::SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
2319         * svg/SVGForeignObjectElement.cpp:
2320         (WebCore::SVGForeignObjectElement::parseMappedAttribute):
2321         * svg/SVGImageElement.cpp:
2322         (WebCore::SVGImageElement::parseMappedAttribute):
2323         * svg/SVGLineElement.cpp:
2324         (WebCore::SVGLineElement::parseMappedAttribute):
2325         * svg/SVGLinearGradientElement.cpp:
2326         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
2327         * svg/SVGMarkerElement.cpp:
2328         (WebCore::SVGMarkerElement::parseMappedAttribute):
2329         * svg/SVGMaskElement.cpp:
2330         (WebCore::SVGMaskElement::parseMappedAttribute):
2331         * svg/SVGPatternElement.cpp:
2332         (WebCore::SVGPatternElement::parseMappedAttribute):
2333         * svg/SVGRadialGradientElement.cpp:
2334         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
2335         * svg/SVGRectElement.cpp:
2336         (WebCore::SVGRectElement::parseMappedAttribute):
2337         * svg/SVGSVGElement.cpp:
2338         (WebCore::SVGSVGElement::parseMappedAttribute):
2339         * svg/SVGTextContentElement.cpp:
2340         (WebCore::SVGTextContentElement::parseMappedAttribute):
2341         * svg/SVGTextPathElement.cpp:
2342         (WebCore::SVGTextPathElement::parseMappedAttribute):
2343         * svg/SVGUseElement.cpp:
2344         (WebCore::SVGUseElement::parseMappedAttribute):
2345
2346 2011-08-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2347
2348         Unreviewed, rolling out r92419.
2349         http://trac.webkit.org/changeset/92419
2350         https://bugs.webkit.org/show_bug.cgi?id=65726
2351
2352         "committed partially to branch" (Requested by thorton on
2353         #webkit).
2354
2355         * svg/SVGCircleElement.cpp:
2356         (WebCore::SVGCircleElement::parseMappedAttribute):
2357         * svg/SVGCursorElement.cpp:
2358         (WebCore::SVGCursorElement::parseMappedAttribute):
2359         * svg/SVGEllipseElement.cpp:
2360         (WebCore::SVGEllipseElement::parseMappedAttribute):
2361         * svg/SVGFilterElement.cpp:
2362         (WebCore::SVGFilterElement::parseMappedAttribute):
2363         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2364         (WebCore::SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
2365         * svg/SVGForeignObjectElement.cpp:
2366         (WebCore::SVGForeignObjectElement::parseMappedAttribute):
2367         * svg/SVGImageElement.cpp:
2368         (WebCore::SVGImageElement::parseMappedAttribute):
2369         * svg/SVGLineElement.cpp:
2370         (WebCore::SVGLineElement::parseMappedAttribute):
2371         * svg/SVGLinearGradientElement.cpp:
2372         (WebCore::SVGLinearGradientElement::parseMappedAttribute):
2373         * svg/SVGMarkerElement.cpp:
2374         (WebCore::SVGMarkerElement::parseMappedAttribute):
2375         * svg/SVGMaskElement.cpp:
2376         (WebCore::SVGMaskElement::parseMappedAttribute):
2377         * svg/SVGPatternElement.cpp:
2378         (WebCore::SVGPatternElement::parseMappedAttribute):
2379         * svg/SVGRadialGradientElement.cpp:
2380         (WebCore::SVGRadialGradientElement::parseMappedAttribute):
2381         * svg/SVGRectElement.cpp:
2382         (WebCore::SVGRectElement::parseMappedAttribute):
2383         * svg/SVGSVGElement.cpp:
2384         (WebCore::SVGSVGElement::parseMappedAttribute):
2385         * svg/SVGTextContentElement.cpp:
2386         (WebCore::SVGTextContentElement::parseMappedAttribute):
2387         * svg/SVGTextPathElement.cpp:
2388         (WebCore::SVGTextPathElement::parseMappedAttribute):
2389         * svg/SVGUseElement.cpp:
2390         (WebCore::SVGUseElement::parseMappedAttribute):
2391
2392 2011-08-04  Fady Samuel  <fsamuel@chromium.org>
2393
2394         Background Does Not Scale Correctly with Page
2395         https://bugs.webkit.org/show_bug.cgi?id=65690
2396
2397         Reviewed by Simon Fraser.
2398
2399         Test: fast/repaint/background-scaling.html
2400
2401         * rendering/RenderBox.cpp:
2402         (WebCore::RenderBox::paintRootBoxFillLayers):
2403         * rendering/RenderView.cpp:
2404         (WebCore::RenderView::unscaledDocumentRect):
2405         (WebCore::RenderView::documentRect):
2406         * rendering/RenderView.h:
2407
2408 2011-08-04  Jochen Eisinger  <jochen@chromium.org>
2409
2410         Introduce a new ResourceRequest::TargetType for XHRs
2411         https://bugs.webkit.org/show_bug.cgi?id=65544
2412
2413         Reviewed by Darin Fisher.
2414
2415         * platform/network/chromium/ResourceRequest.h:
2416         * xml/XMLHttpRequest.cpp:
2417         (WebCore::XMLHttpRequest::createRequest):
2418
2419 2011-08-04  Sergey Glazunov  <serg.glazunov@gmail.com>
2420
2421         Fix integer overflow in custom bindings for WebGLRenderingContext
2422         https://bugs.webkit.org/show_bug.cgi?id=65646
2423
2424         Reviewed by Kenneth Russell.
2425
2426         Test: fast/canvas/webgl/uniform-array-length-overflow.html
2427
2428         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2429         (WebCore::toVector): Don't crash if allocation fails.
2430         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2431         (WebCore::jsArrayToFloatArray):
2432         (WebCore::jsArrayToIntArray):
2433
2434 2011-08-04  Pratik Solanki  <psolanki@apple.com>
2435
2436         Implement CERTIFICATE_CREDENTIALS_SUPPORTED for CFNetwork
2437         https://bugs.webkit.org/show_bug.cgi?id=65704
2438         <rdar://problem/9877734>
2439
2440         Reviewed by Oliver Hunt.
2441
2442         Implement support for client side certificate authentication in the CFNetwork based loader.
2443
2444         * platform/network/cf/AuthenticationCF.cpp:
2445         (WebCore::createCF):
2446         (WebCore::core): Also fix leak of password string.
2447
2448 2011-08-04  Chris Rogers  <crogers@google.com>
2449
2450         Make sure that AudioArray is 16-byte aligned
2451         https://bugs.webkit.org/show_bug.cgi?id=65651
2452
2453         Reviewed by Kenneth Russell.
2454
2455         No new tests - this does not change JavaScript API.
2456
2457         * platform/audio/AudioArray.h:
2458         (WebCore::AudioArray::AudioArray):
2459         (WebCore::AudioArray::~AudioArray):
2460         (WebCore::AudioArray::allocate):
2461         (WebCore::AudioArray::data):
2462         (WebCore::AudioArray::size):
2463         (WebCore::AudioArray::at):
2464         (WebCore::AudioArray::operator[]):
2465         (WebCore::AudioArray::alignedAddress):
2466         * platform/audio/Biquad.cpp:
2467         (WebCore::Biquad::Biquad):
2468         * platform/audio/ReverbConvolverStage.cpp:
2469         (WebCore::ReverbConvolverStage::ReverbConvolverStage):
2470         * webaudio/DelayDSPKernel.cpp:
2471         (WebCore::DelayDSPKernel::DelayDSPKernel):
2472         * webaudio/RealtimeAnalyser.cpp:
2473         (WebCore::RealtimeAnalyser::setFftSize):
2474
2475 2011-08-04  Brady Eidson  <beidson@apple.com>
2476
2477         <rdar://problem/9882581>, <rdar://problem/9868015>, and https://bugs.webkit.org/show_bug.cgi?id=65712
2478         REGRESSION (91931) - Two LocalStorage threads started, thread unsafe operations can cause crash or other problems later.
2479
2480         Reviewed by Darin Adler.
2481
2482         * storage/StorageTracker.cpp:
2483         (WebCore::StorageTracker::internalInitialize): Set the "needs initialization" flag before doing a 
2484           whole bunch of stuff that might need to check it.
2485
2486 2011-08-04  Jeff Miller  <jeffm@apple.com>
2487
2488         Adopt AVCF media back end on Windows
2489         https://bugs.webkit.org/show_bug.cgi?id=65400
2490         <rdar://problem/9894105>
2491         
2492         First cut at implementation in MediaPlayerPrivateAVFoundationCF.cpp/.h, based on
2493         work by Eric Carlson. Note that use of AVFoundation is determined at runtime, and
2494         defaults to off.
2495
2496         Reviewed by Darin Adler.
2497
2498         No new tests, uses existing media tests.
2499
2500         * config.h: Turn on WTF_USE_AVFOUNDATION on Windows if AVFoundationCF is available.
2501         
2502         * platform/graphics/MediaPlayer.cpp:
2503         (WebCore::installedMediaEngines): Register MediaPlayerPrivateAVFoundationCF on Windows.
2504         * platform/graphics/MediaPlayer.h: Add support for an AVCFPlayer.
2505         
2506         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2507         (WebCore::MediaPlayerPrivateAVFoundation::setPreload): Workaround an AVCF limitation that prevents an AVCFPlayer from being created without an AVCFItem.
2508         (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification): Added support for ContentsNeedsDisplay notification.
2509         
2510         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2511         (WebCore::MediaPlayerPrivateAVFoundation::contentsNeedsDisplay): Added support for ContentsNeedsDisplay notification.
2512         
2513         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp: Added implementation.
2514         (WebCore::AVFWrapper::caVideoLayer):
2515         (WebCore::AVFWrapper::videoLayerWrapper):
2516         (WebCore::AVFWrapper::videoLayer):
2517         (WebCore::AVFWrapper::avPlayer):
2518         (WebCore::AVFWrapper::avAsset):
2519         (WebCore::AVFWrapper::avPlayerItem):
2520         (WebCore::AVFWrapper::timeObserver):
2521         (WebCore::AVFWrapper::imageGenerator):
2522         (WebCore::AVFWrapper::dispatchQueue):
2523         (WebCore::LayerClient::LayerClient):
2524         (WebCore::LayerClient::~LayerClient):
2525         (WebCore::LayerClient::platformCALayerRespondsToLayoutChanges):
2526         (WebCore::LayerClient::platformCALayerAnimationStarted):
2527         (WebCore::LayerClient::platformCALayerContentsOrientation):
2528         (WebCore::LayerClient::platformCALayerPaintContents):
2529         (WebCore::LayerClient::platformCALayerShowDebugBorders):
2530         (WebCore::LayerClient::platformCALayerShowRepaintCounter):
2531         (WebCore::LayerClient::platformCALayerIncrementRepaintCount):
2532         (WebCore::LayerClient::platformCALayerContentsOpaque):
2533         (WebCore::LayerClient::platformCALayerDrawsContent):
2534         (WebCore::LayerClient::platformCALayerLayerDidDisplay):
2535         (WebCore::boolString):
2536         (WebCore::metadataKeyNames):
2537         (WebCore::CMTimeRangeStartKey):
2538         (WebCore::CMTimeRangeDurationKey):
2539         (WebCore::CACFContextNeedsFlushNotification):
2540         (WebCore::videoLayer):
2541         (WebCore::avPlayer):
2542         (WebCore::avAsset):
2543         (WebCore::avPlayerItem):
2544         (WebCore::imageGenerator):
2545         (WebCore::MediaPlayerPrivateAVFoundationCF::create):
2546         (WebCore::MediaPlayerPrivateAVFoundationCF::registerMediaEngine):
2547         (WebCore::MediaPlayerPrivateAVFoundationCF::MediaPlayerPrivateAVFoundationCF):
2548         (WebCore::MediaPlayerPrivateAVFoundationCF::~MediaPlayerPrivateAVFoundationCF):
2549         (WebCore::MediaPlayerPrivateAVFoundationCF::cancelLoad):
2550         (WebCore::MediaPlayerPrivateAVFoundationCF::hasLayerRenderer):
2551         (WebCore::MediaPlayerPrivateAVFoundationCF::hasContextRenderer):
2552         (WebCore::MediaPlayerPrivateAVFoundationCF::createContextVideoRenderer):
2553         (WebCore::MediaPlayerPrivateAVFoundationCF::destroyContextVideoRenderer):
2554         (WebCore::MediaPlayerPrivateAVFoundationCF::createVideoLayer):
2555         (WebCore::MediaPlayerPrivateAVFoundationCF::destroyVideoLayer):
2556         (WebCore::MediaPlayerPrivateAVFoundationCF::hasAvailableVideoFrame):
2557         (WebCore::MediaPlayerPrivateAVFoundationCF::createAVPlayer):
2558         (WebCore::MediaPlayerPrivateAVFoundationCF::createAVPlayerItem):
2559         (WebCore::MediaPlayerPrivateAVFoundationCF::createAVAssetForURL):
2560         (WebCore::MediaPlayerPrivateAVFoundationCF::checkPlayability):
2561         (WebCore::MediaPlayerPrivateAVFoundationCF::beginLoadingMetadata):
2562         (WebCore::MediaPlayerPrivateAVFoundationCF::playerItemStatus):
2563         (WebCore::MediaPlayerPrivateAVFoundationCF::platformMedia):
2564         (WebCore::MediaPlayerPrivateAVFoundationCF::platformLayer):
2565         (WebCore::MediaPlayerPrivateAVFoundationCF::platformSetVisible):
2566         (WebCore::MediaPlayerPrivateAVFoundationCF::platformPlay):
2567         (WebCore::MediaPlayerPrivateAVFoundationCF::platformPause):
2568         (WebCore::MediaPlayerPrivateAVFoundationCF::updateRate):
2569         (WebCore::MediaPlayerPrivateAVFoundationCF::platformDuration):
2570         (WebCore::MediaPlayerPrivateAVFoundationCF::currentTime):
2571         (WebCore::MediaPlayerPrivateAVFoundationCF::seekToTime):
2572         (WebCore::MediaPlayerPrivateAVFoundationCF::setVolume):
2573         (WebCore::MediaPlayerPrivateAVFoundationCF::setClosedCaptionsVisible):
2574         (WebCore::MediaPlayerPrivateAVFoundationCF::rate):
2575         (WebCore::timeRangeIsValidAndNotEmpty):
2576         (WebCore::MediaPlayerPrivateAVFoundationCF::platformBufferedTimeRanges):
2577         (WebCore::MediaPlayerPrivateAVFoundationCF::platformMaxTimeSeekable):
2578         (WebCore::MediaPlayerPrivateAVFoundationCF::platformMaxTimeLoaded):
2579         (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes):
2580         (WebCore::MediaPlayerPrivateAVFoundationCF::assetStatus):
2581         (WebCore::MediaPlayerPrivateAVFoundationCF::paintCurrentFrameInContext):
2582         (WebCore::MediaPlayerPrivateAVFoundationCF::paint):
2583         (WebCore::mimeTypeCache):
2584         (WebCore::MediaPlayerPrivateAVFoundationCF::getSupportedTypes):
2585         (WebCore::MediaPlayerPrivateAVFoundationCF::supportsType):
2586         (WebCore::MediaPlayerPrivateAVFoundationCF::isAvailable):
2587         (WebCore::MediaPlayerPrivateAVFoundationCF::mediaTimeForTimeValue):
2588         (WebCore::MediaPlayerPrivateAVFoundationCF::tracksChanged):
2589         (WebCore::MediaPlayerPrivateAVFoundationCF::sizeChanged):
2590         (WebCore::MediaPlayerPrivateAVFoundationCF::contentsNeedsDisplay):
2591         (WebCore::AVFWrapper::AVFWrapper):
2592         (WebCore::AVFWrapper::~AVFWrapper):
2593         (WebCore::AVFWrapper::scheduleDisconnectAndDelete):
2594         (WebCore::AVFWrapper::disconnectAndDeleteAVFWrapper):
2595         (WebCore::AVFWrapper::deleteAVFWrapper):
2596         (WebCore::AVFWrapper::createAssetForURL):
2597         (WebCore::AVFWrapper::createPlayer):
2598         (WebCore::AVFWrapper::createPlayerItem):
2599         (WebCore::AVFWrapper::periodicTimeObserverCallback):
2600         (WebCore::AVFWrapper::notificationCallback):
2601         (WebCore::AVFWrapper::loadPlayableCompletionCallback):
2602         (WebCore::AVFWrapper::checkPlayability):
2603         (WebCore::AVFWrapper::loadMetadataCompletionCallback):
2604         (WebCore::AVFWrapper::beginLoadingMetadata):
2605         (WebCore::AVFWrapper::seekCompletedCallback):
2606         (WebCore::AVFWrapper::seekToTime):
2607         (WebCore::AVFWrapper::setAsset):
2608         (WebCore::AVFWrapper::platformLayer):
2609         (WebCore::AVFWrapper::createAVCFVideoLayer):
2610         (WebCore::AVFWrapper::destroyVideoLayer):
2611         (WebCore::AVFWrapper::setVideoLayerNeedsCommit):
2612         (WebCore::AVFWrapper::setVideoLayerHidden):
2613         (WebCore::AVFWrapper::createImageGenerator):
2614         (WebCore::AVFWrapper::destroyImageGenerator):
2615         (WebCore::AVFWrapper::createImageForTimeInRect):
2616         (WebCore::LayerClient::platformCALayerLayoutSublayersOfLayer):
2617
2618         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.h: Added implementation.
2619
2620 2011-08-04  Jochen Eisinger  <jochen@chromium.org>
2621
2622         Get rid of ResourceRequestBase::m_targetType. Move it to chromium's ResourceRequest.
2623         https://bugs.webkit.org/show_bug.cgi?id=48483
2624
2625         Reviewed by Alexey Proskuryakov.
2626
2627         * loader/PingLoader.cpp:
2628         (WebCore::PingLoader::loadImage):
2629         (WebCore::PingLoader::sendPing):
2630         (WebCore::PingLoader::reportContentSecurityPolicyViolation):
2631         * loader/cache/CachedResourceRequest.cpp:
2632         (WebCore::CachedResourceRequest::load):
2633         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2634         (webKitWebSrcStart):
2635         * platform/network/ResourceRequestBase.cpp:
2636         (WebCore::ResourceRequestBase::adopt):
2637         (WebCore::ResourceRequestBase::copyData):
2638         * platform/network/ResourceRequestBase.h:
2639         (WebCore::ResourceRequestBase::ResourceRequestBase):
2640         * platform/network/chromium/ResourceRequest.cpp:
2641         (WebCore::ResourceRequest::doPlatformCopyData):
2642         (WebCore::ResourceRequest::doPlatformAdopt):
2643         * platform/network/chromium/ResourceRequest.h:
2644         (WebCore::ResourceRequest::ResourceRequest):
2645         (WebCore::ResourceRequest::targetType):
2646         (WebCore::ResourceRequest::setTargetType):
2647         * workers/DefaultSharedWorkerRepository.cpp:
2648         (WebCore::SharedWorkerScriptLoader::load):
2649         * workers/Worker.cpp:
2650         (WebCore::Worker::create):
2651         * workers/WorkerContext.cpp:
2652         (WebCore::WorkerContext::importScripts):
2653         * workers/WorkerScriptLoader.cpp:
2654         (WebCore::WorkerScriptLoader::WorkerScriptLoader):
2655         (WebCore::WorkerScriptLoader::createResourceRequest):
2656         * workers/WorkerScriptLoader.h:
2657         (WebCore::WorkerScriptLoader::create):
2658         (WebCore::WorkerScriptLoader::setTargetType):
2659
2660 2011-08-04  Jeff Miller  <jeffm@apple.com>
2661
2662         Fix WinCE build after r92308.
2663
2664         * config.h: Don't try to include WebCoreHeaderDetection.h for WinCE.
2665
2666 2011-08-04  Darin Fisher  <darin@chromium.org>
2667
2668         webkitRequestAnimationFrame's element argument needs to be marked optional
2669         https://bugs.webkit.org/show_bug.cgi?id=65698
2670
2671         Reviewed by James Robinson.
2672
2673         * page/DOMWindow.idl:
2674
2675 2011-08-04  Adam Roben  <aroben@apple.com>
2676
2677         Delete some unused code from platform/graphics/win
2678
2679         MediaPlayerPrivateQuickTimeWin has been unused since r72117, and the GraphicsLayer-related
2680         classes have been unused since r75262.
2681
2682         Fixes <http://webkit.org/b/65689> platform/graphics/win has a bunch of unused code
2683
2684         Reviewed by Eric Carlson.
2685
2686         * WebCore.gypi:
2687         * WebCore.vcproj/WebCore.vcproj:
2688         Removed now-deleted files.
2689
2690         * platform/graphics/win/GraphicsLayerCACF.cpp: Removed.
2691         * platform/graphics/win/GraphicsLayerCACF.h: Removed.
2692         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp: Removed.
2693         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h: Removed.
2694         * platform/graphics/win/WebLayer.cpp: Removed.
2695         * platform/graphics/win/WebLayer.h: Removed.
2696         * platform/graphics/win/WebTiledLayer.cpp: Removed.
2697         * platform/graphics/win/WebTiledLayer.h: Removed.
2698
2699 2011-08-03  Adam Roben  <aroben@apple.com>
2700
2701         Detect and handle overflow in PlatformCALayerWinInternal::constrainedSize
2702
2703         Google Maps sometimes requests very large (i.e., 2^50 pixels or greater) layers when
2704         zooming. PlatformCALayerWinInternal has code to limit tiled layers to 2^27 pixels, but it
2705         was not correctly handling overflow. In some cases, this would lead to creating a tiled
2706         layer with 0 tiles, which was the cause of this crash.
2707
2708         Fixes <http://webkit.org/b/65637> <rdar://problem/9784849> Crash beneath
2709         PlatformCALayerWinInternal::updateTiles when zooming on Google Maps
2710
2711         Reviewed by Sam Weinig.
2712
2713         Test: compositing/tiling/crash-huge-layer.html
2714
2715         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
2716         (PlatformCALayerWinInternal::constrainedSize): Check for overflow before seeing if the
2717         number of required tiles is larger than the maximum number of allowed tiles.
2718         (PlatformCALayerWinInternal::updateTiles): Added an assertion to catch cases where we have a
2719         non-empty tiled layer that contains 0 tiles, which would cause the crash in this bug report.
2720
2721 2011-08-04  Stephen White  <senorblanco@chromium.org>
2722
2723         Set graphics context current before canvas.toDataURL().
2724         https://bugs.webkit.org/show_bug.cgi?id=65700
2725
2726         Reviewed by James Robinson.
2727
2728         No new tests, unfortunately.  The test infrastucture doesn't seem
2729         to be conducive to writing multiple-context tests.
2730
2731         * platform/graphics/skia/ImageBufferSkia.cpp:
2732         (WebCore::ImageBuffer::toDataURL):
2733
2734 2011-08-01  Brian Weinstein  <bweinstein@apple.com>
2735
2736         WebKit2: Web Inspector always starts in undocked mode
2737         https://bugs.webkit.org/show_bug.cgi?id=65493
2738         <rdar://problem/9353114>
2739         
2740         Reviewed by Adam Roben.
2741         
2742         Expose some methods on InspectorFrontendClient through the InspectorController so WebKit2
2743         can request the inspector be docked, or ask whether or not it can be docked.
2744
2745         * WebCore.exp.in: Export needed methods.
2746         * inspector/InspectorController.cpp:
2747         (WebCore::InspectorController::requestAttachWindow): Call through to InspectorFrontendClient.
2748         (WebCore::InspectorController::canAttachWindow): Ditto.
2749         * inspector/InspectorController.h:
2750         * inspector/InspectorFrontendClient.h:
2751         * inspector/InspectorFrontendClientLocal.h:
2752
2753 2011-08-04  Luke Macpherson   <macpherson@chromium.org>
2754
2755         Support cast between CSSPrimitiveValue and EborderFit, use in CSSStyleSelector.
2756         https://bugs.webkit.org/show_bug.cgi?id=65665
2757
2758         Reviewed by Simon Fraser.
2759
2760         No new tests / refactoring only.
2761
2762         * css/CSSPrimitiveValueMappings.h:
2763         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2764         Support cast from EBorderFit.
2765         (WebCore::CSSPrimitiveValue::operator EBorderFit):
2766         Support cast to EBorderFit.
2767         * css/CSSStyleSelector.cpp:
2768         (WebCore::CSSStyleSelector::applyProperty):
2769         Use new cast to allow use of appropriate macro.
2770
2771 2011-08-04  Pavel Feldman  <pfeldman@google.com>
2772
2773         Web Inspector: rename sendResultByValue to returnByValue in Runtime agent.
2774         https://bugs.webkit.org/show_bug.cgi?id=65687
2775
2776         Reviewed by Yury Semikhatsky.
2777
2778         * inspector/InjectedScript.cpp:
2779         (WebCore::InjectedScript::evaluate):
2780         (WebCore::InjectedScript::callFunctionOn):
2781         * inspector/InjectedScript.h:
2782         * inspector/InjectedScriptSource.js:
2783         * inspector/Inspector.json:
2784         * inspector/InspectorRuntimeAgent.cpp:
2785         (WebCore::InspectorRuntimeAgent::evaluate):
2786         (WebCore::InspectorRuntimeAgent::callFunctionOn):
2787         * inspector/InspectorRuntimeAgent.h:
2788
2789 2011-08-04  Matt Falkenhagen  <falken@chromium.org>
2790
2791         Use -webkit-locale for font selection.
2792         https://bugs.webkit.org/show_bug.cgi?id=10874
2793
2794         Reviewed by Dan Bernstein.
2795
2796         Infer a script from -webkit-locale to use to choose a font for generic
2797         font families and the default unstyled font.  The font is retrieved
2798         from per-script font settings (see bug 20797).  Since these settings
2799         have not changed there should be no visible effect yet.
2800
2801         * CMakeLists.txt:
2802         * GNUmakefile.list.am:
2803         * WebCore.gyp/WebCore.gyp:
2804         * WebCore.gypi:
2805         * WebCore.pro:
2806         * WebCore.vcproj/WebCore.vcproj:
2807         * WebCore.xcodeproj/project.pbxproj:
2808         * css/CSSFontSelector.cpp: Use script when getting font from Settings
2809         (WebCore::fontDataForGenericFamily):
2810         (WebCore::CSSFontSelector::getFontData):
2811         * css/CSSPropertyNames.in: Increase priority of -webkit-locale since it affects font
2812         * css/CSSStyleSelector.cpp:
2813         (WebCore::CSSStyleSelector::styleForDocument):
2814         (WebCore::CSSStyleSelector::applyDeclarations):
2815         (WebCore::CSSStyleSelector::applyProperty): Set script in font based on -webkit-locale
2816         * page/Settings.cpp:
2817         (WebCore::getGenericFontFamilyForScript): Fallback to USCRIPT_COMMON
2818         * platform/graphics/FontDescription.h: Add m_script
2819         (WebCore::FontDescription::FontDescription):
2820         (WebCore::FontDescription::script):
2821         (WebCore::FontDescription::setScript):
2822         (WebCore::FontDescription::operator==):
2823         * platform/text/LocaleToScriptMapping.h: Added.
2824         * platform/text/LocaleToScriptMappingDefault.cpp: Added.
2825         (WebCore::localeToScriptCodeForFontSelection):
2826         (WebCore::LocaleScript::if):
2827         (WebCore::LocaleScript::while):
2828         * platform/text/LocaleToScriptMappingICU.cpp: Added.
2829         (WebCore::scriptCodeForFontSelection):
2830         (WebCore::localeToScriptCodeForFontSelection):
2831
2832 2011-08-04  Vsevolod Vlasov  <vsevik@chromium.org>
2833
2834         Web Inspector: Pretty print JSONP in network panel preview tab.
2835         https://bugs.webkit.org/show_bug.cgi?id=65559
2836
2837         Reviewed by Pavel Feldman.
2838
2839         Test: http/tests/inspector/network/network-preview-json.html
2840
2841         * inspector/front-end/ResourceJSONView.js:
2842         (WebInspector.ResourceJSONView.parseJSON.WebInspector.ResourceJSONView.parseJSONP):
2843         (WebInspector.ResourceJSONView.parseJSON.WebInspector.ResourceJSONView.prototype._initialize):
2844         (WebInspector.ResourceJSONView.parseJSON.WebInspector.ParsedJSON):
2845         * inspector/front-end/ResourcePreviewView.js:
2846         (WebInspector.ResourcePreviewView.prototype._createPreviewView):
2847
2848 2011-08-04  Pavel Feldman  <pfeldman@google.com>
2849
2850         Web Inspector: replace isRegex with urlRegex in setBreakpointByUrl
2851         https://bugs.webkit.org/show_bug.cgi?id=65684
2852
2853         Reviewed by Yury Semikhatsky.
2854
2855         * inspector/Inspector.json:
2856         * inspector/InspectorDebuggerAgent.cpp:
2857         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
2858         * inspector/InspectorDebuggerAgent.h:
2859         * inspector/front-end/DebuggerModel.js:
2860         (WebInspector.DebuggerModel.prototype.setBreakpoint):
2861
2862 2011-08-03  Philippe Normand  <pnormand@igalia.com>
2863
2864         [GTK] fullscreen/video-controls-override.html fails
2865         https://bugs.webkit.org/show_bug.cgi?id=65618
2866
2867         Reviewed by Martin Robinson.
2868
2869         Implement extraFullScreenStyleSheet() and provide the QuickTime
2870         stylesheet for now, later we might want our own stylesheet.
2871
2872         * GNUmakefile.am:
2873         * platform/gtk/RenderThemeGtk.cpp:
2874         (WebCore::RenderThemeGtk::extraFullScreenStyleSheet):
2875         * platform/gtk/RenderThemeGtk.h:
2876
2877 2011-08-04  Pavel Feldman  <pfeldman@google.com>
2878
2879         Web Inspector: Rename sourceId -> scriptId in the protocol and the source code.
2880         https://bugs.webkit.org/show_bug.cgi?id=65682
2881
2882         Reviewed by Yury Semikhatsky.
2883
2884         * inspector/InjectedScriptSource.js:
2885         ():
2886         * inspector/Inspector.json:
2887         * inspector/InspectorConsoleAgent.cpp:
2888         (WebCore::InspectorConsoleAgent::addMessageToConsole):
2889         * inspector/InspectorConsoleAgent.h:
2890         * inspector/InspectorConsoleInstrumentation.h:
2891         (WebCore::InspectorInstrumentation::addMessageToConsole):
2892         * inspector/InspectorDOMAgent.cpp:
2893         (WebCore::InspectorDOMAgent::buildObjectForEventListener):
2894         * inspector/InspectorDebuggerAgent.cpp:
2895         (WebCore::parseLocation):
2896         (WebCore::InspectorDebuggerAgent::setBreakpoint):
2897         (WebCore::InspectorDebuggerAgent::continueToLocation):
2898         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
2899         (WebCore::InspectorDebuggerAgent::setScriptSource):
2900         (WebCore::InspectorDebuggerAgent::getScriptSource):
2901         (WebCore::InspectorDebuggerAgent::didParseSource):
2902         * inspector/InspectorDebuggerAgent.h:
2903         * inspector/InspectorInstrumentation.cpp:
2904         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
2905         * inspector/InspectorInstrumentation.h:
2906         * inspector/ScriptDebugListener.h:
2907         * inspector/front-end/DebuggerModel.js:
2908         (WebInspector.DebuggerModel.prototype.scriptForSourceID):
2909         (WebInspector.DebuggerModel.prototype.queryScripts):
2910         (WebInspector.DebuggerModel.prototype.setScriptSource):
2911         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
2912         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
2913         (WebInspector.DebuggerDispatcher.prototype.scriptParsed):
2914         (WebInspector.DebuggerDispatcher.prototype.breakpointResolved):
2915         * inspector/front-end/DebuggerPresentationModel.js:
2916         (WebInspector.DebuggerPresentationModel.prototype.registerAnchor):
2917         (WebInspector.DebuggerPresentationModel.prototype._updateAnchor):
2918         (WebInspector.DebuggerPresentationModel.prototype.setScriptSource.didReceiveSource):
2919         (WebInspector.DebuggerPresentationModel.prototype.setScriptSource):
2920         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger.didGetScriptLocation):
2921         (WebInspector.DebuggerPresentationModel.prototype._setBreakpointInDebugger):
2922         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
2923         (WebInspector.DebuggerPresentationModel.prototype.set _debuggerPaused):
2924         (WebInspector.DebuggerPresentationModel.prototype._sourceFileForScript):
2925         (WebInspector.DebuggerPresentationModel.prototype._scriptForSourceFileId):
2926         (WebInspector.DebuggerPresentationModel.prototype._createSourceFileId):
2927         (WebInspector.PresenationCallFrame):
2928         (WebInspector.PresenationCallFrame.prototype.sourceLine):
2929         * inspector/front-end/EventListenersSidebarPane.js:
2930         (.):
2931         ():
2932         * inspector/front-end/Script.js:
2933         (WebInspector.Script):
2934         (WebInspector.Script.prototype.requestSource):
2935         (WebInspector.Script.prototype.editSource):
2936         * inspector/front-end/SourceFile.js:
2937         (WebInspector.RawSourceCode.prototype.uiLocationToRawLocation):
2938         (WebInspector.RawSourceCode.prototype.forceLoadContent):
2939         (WebInspector.RawSourceCode.prototype._concatenateScriptsContent):
2940
2941 2011-08-04  Tommy Widenflycht  <tommyw@google.com>
2942
2943         MediaStream API: Rename StreamEvent to MediaStreamEvent
2944         https://bugs.webkit.org/show_bug.cgi?id=65669
2945
2946         Reviewed by Tony Gentilcore.
2947
2948         * CMakeLists.txt:
2949         * CodeGenerators.pri:
2950         * DerivedSources.cpp:
2951         * DerivedSources.make:
2952         * GNUmakefile.list.am:
2953         * WebCore.gypi:
2954         * WebCore.pro:
2955         * WebCore.vcproj/WebCore.vcproj:
2956         * WebCore.xcodeproj/project.pbxproj:
2957         * bindings/js/JSEventCustom.cpp:
2958         (WebCore::toJS):
2959         * bindings/v8/custom/V8EventCustom.cpp:
2960         (WebCore::toV8):
2961         * dom/DOMAllInOne.cpp:
2962         * dom/Event.cpp:
2963         (WebCore::Event::isMediaStreamEvent):
2964         * dom/Event.h:
2965         * p2p/MediaStreamEvent.cpp: Renamed from Source/WebCore/dom/StreamEvent.cpp.
2966         (WebCore::MediaStreamEvent::create):
2967         (WebCore::MediaStreamEvent::MediaStreamEvent):
2968         (WebCore::MediaStreamEvent::~MediaStreamEvent):
2969         (WebCore::MediaStreamEvent::initMediaStreamEvent):
2970         (WebCore::MediaStreamEvent::stream):
2971         * p2p/MediaStreamEvent.h: Renamed from Source/WebCore/dom/StreamEvent.h.
2972         (WebCore::MediaStreamEvent::isMediaStreamEvent):
2973         * p2p/MediaStreamEvent.idl: Renamed from Source/WebCore/dom/StreamEvent.idl.
2974         * p2p/PeerConnection.cpp:
2975         (WebCore::PeerConnection::dispatchStreamEvent):
2976
2977 2011-08-02  Hans Wennborg  <hans@chromium.org>
2978
2979         IndexedDB: Fix index data invalidation bugs.
2980         https://bugs.webkit.org/show_bug.cgi?id=65547
2981
2982         Reviewed by Tony Chang.
2983
2984         The function that checks whether a key exists in an index failed
2985         to check whether that key was still valid or not.
2986
2987         Deleting a record from an object store must also delete its exists
2988         entry, thus invalidating index keys pointing to that record.
2989
2990         Test: storage/indexeddb/index-unique.html
2991
2992         * storage/IDBLevelDBBackingStore.cpp:
2993         (WebCore::IDBLevelDBBackingStore::deleteObjectStoreRecord):
2994         (WebCore::findKeyInIndex):
2995         (WebCore::IDBLevelDBBackingStore::getPrimaryKeyViaIndex):
2996         (WebCore::IDBLevelDBBackingStore::keyExistsInIndex):
2997         (WebCore::CursorOptions::IndexKeyCursorImpl::loadCurrentRow):
2998
2999 2011-08-04  Alexandru Chiculita  <achicu@adobe.com>
3000
3001         Move PODIntervalTree to Source/WebCore/platform
3002         https://bugs.webkit.org/show_bug.cgi?id=65667
3003
3004         It seems the files were not part of any project, so no project files were modified.
3005
3006         Reviewed by Adam Barth.
3007
3008         No new tests, just moving files from one folder to the other.
3009
3010         * platform/PODArena.h: Renamed from Source/WebCore/platform/graphics/gpu/PODArena.h.
3011         (WebCore::PODArena::Allocator::~Allocator):
3012         (WebCore::PODArena::FastMallocAllocator::create):
3013         (WebCore::PODArena::FastMallocAllocator::allocate):
3014         (WebCore::PODArena::FastMallocAllocator::free):
3015         (WebCore::PODArena::FastMallocAllocator::FastMallocAllocator):
3016         (WebCore::PODArena::create):
3017         (WebCore::PODArena::allocateObject):
3018         (WebCore::PODArena::~PODArena):
3019         (WebCore::PODArena::PODArena):
3020         (WebCore::PODArena::minAlignment):
3021         (WebCore::PODArena::allocateBase):
3022         (WebCore::PODArena::roundUp):
3023         (WebCore::PODArena::Chunk::Chunk):
3024         (WebCore::PODArena::Chunk::~Chunk):
3025         (WebCore::PODArena::Chunk::allocate):
3026         * platform/PODInterval.h: Renamed from Source/WebCore/platform/graphics/gpu/PODInterval.h.
3027         (WebCore::PODInterval::PODInterval):
3028         (WebCore::PODInterval::low):
3029         (WebCore::PODInterval::high):
3030         (WebCore::PODInterval::data):
3031         (WebCore::PODInterval::overlaps):
3032         (WebCore::PODInterval::operator<):
3033         (WebCore::PODInterval::operator==):
3034         (WebCore::PODInterval::maxHigh):
3035         (WebCore::PODInterval::setMaxHigh):
3036         (WebCore::PODInterval::toString):
3037         * platform/PODIntervalTree.h: Renamed from Source/WebCore/platform/graphics/gpu/PODIntervalTree.h.
3038         (WebCore::PODIntervalTree::PODIntervalTree):
3039         (WebCore::PODIntervalTree::allOverlaps):
3040         (WebCore::PODIntervalTree::createInterval):
3041         (WebCore::PODIntervalTree::checkInvariants):
3042         (WebCore::PODIntervalTree::init):
3043         (WebCore::PODIntervalTree::searchForOverlapsFrom):
3044         (WebCore::PODIntervalTree::updateNode):
3045         (WebCore::PODIntervalTree::checkInvariantsFromNode):
3046         * platform/PODRedBlackTree.h: Renamed from Source/WebCore/platform/graphics/gpu/PODRedBlackTree.h.
3047         (WebCore::PODRedBlackTree::Visitor::~Visitor):
3048         (WebCore::PODRedBlackTree::PODRedBlackTree):
3049         (WebCore::PODRedBlackTree::~PODRedBlackTree):
3050         (WebCore::PODRedBlackTree::add):
3051         (WebCore::PODRedBlackTree::remove):
3052         (WebCore::PODRedBlackTree::contains):
3053         (WebCore::PODRedBlackTree::visitInorder):
3054         (WebCore::PODRedBlackTree::size):
3055         (WebCore::PODRedBlackTree::setNeedsFullOrderingComparisons):
3056         (WebCore::PODRedBlackTree::checkInvariants):
3057         (WebCore::PODRedBlackTree::dump):
3058         (WebCore::PODRedBlackTree::setVerboseDebugging):
3059         (WebCore::PODRedBlackTree::Node::Node):
3060         (WebCore::PODRedBlackTree::Node::~Node):
3061         (WebCore::PODRedBlackTree::Node::color):
3062         (WebCore::PODRedBlackTree::Node::setColor):
3063         (WebCore::PODRedBlackTree::Node::data):
3064         (WebCore::PODRedBlackTree::Node::copyFrom):
3065         (WebCore::PODRedBlackTree::Node::left):
3066         (WebCore::PODRedBlackTree::Node::setLeft):
3067         (WebCore::PODRedBlackTree::Node::right):
3068         (WebCore::PODRedBlackTree::Node::setRight):
3069         (WebCore::PODRedBlackTree::Node::parent):
3070         (WebCore::PODRedBlackTree::Node::setParent):
3071         (WebCore::PODRedBlackTree::root):
3072         (WebCore::PODRedBlackTree::updateNode):
3073         (WebCore::PODRedBlackTree::treeSearch):
3074         (WebCore::PODRedBlackTree::treeSearchNormal):
3075         (WebCore::PODRedBlackTree::treeSearchFullComparisons):
3076         (WebCore::PODRedBlackTree::treeInsert):
3077         (WebCore::PODRedBlackTree::treeSuccessor):
3078         (WebCore::PODRedBlackTree::treeMinimum):
3079         (WebCore::PODRedBlackTree::propagateUpdates):
3080         (WebCore::PODRedBlackTree::leftRotate):
3081         (WebCore::PODRedBlackTree::rightRotate):
3082         (WebCore::PODRedBlackTree::insertNode):
3083         (WebCore::PODRedBlackTree::deleteFixup):
3084         (WebCore::PODRedBlackTree::deleteNode):
3085         (WebCore::PODRedBlackTree::visitInorderImpl):
3086         (WebCore::PODRedBlackTree::Counter::Counter):
3087         (WebCore::PODRedBlackTree::Counter::visit):
3088         (WebCore::PODRedBlackTree::Counter::count):
3089         (WebCore::PODRedBlackTree::checkInvariantsFromNode):
3090         (WebCore::PODRedBlackTree::logIfVerbose):
3091         (WebCore::PODRedBlackTree::dumpFromNode):
3092
3093 2011-08-03  Alice Boxhall  <aboxhall@chromium.org>
3094
3095         An element with role=textbox should have settable AXValue unless read-only
3096         https://bugs.webkit.org/show_bug.cgi?id=65664
3097
3098         Reviewed by Chris Fleizach.
3099
3100         * accessibility/AccessibilityRenderObject.cpp:
3101         (WebCore::AccessibilityRenderObject::canSetValueAttribute):
3102         Return true for non-native text field with aria-readonly not set.
3103
3104 2011-08-03  Luke Macpherson   <macpherson@chromium.org>
3105
3106         Clean up value clamping in CSSStyleSelector.
3107         https://bugs.webkit.org/show_bug.cgi?id=65588
3108
3109         Reviewed by Darin Adler.
3110
3111         No new tests / trivial code cleanup only.
3112
3113         * css/CSSStyleSelector.cpp:
3114         (WebCore::CSSStyleSelector::applyProperty):
3115         Replace (unsigned int)primitiveValue->getDoubleValue() with primtiveValue->getValue<unsigned>() for correct clamping.
3116         Replace clampToInteger(primitiveValue->getDoubleValue()) with primitiveValue->getIntValue().
3117
3118 2011-08-03  Kent Tamura  <tkent@chromium.org>
3119
3120         Fix incorrect checks for HTMLMediaElement
3121         https://bugs.webkit.org/show_bug.cgi?id=65590
3122
3123         Reviewed by Dimitri Glazkov.
3124
3125         <video> and <audio> can be an HTMLElement instance instead of
3126         HTMLMediaElement if MediaPlayer::isAvailable() returns false or
3127         the media feature is disabled at runtime.
3128
3129         * html/HTMLSourceElement.cpp:
3130         (WebCore::HTMLSourceElement::insertedIntoTree):
3131         (WebCore::HTMLSourceElement::willRemove):
3132         * html/HTMLTrackElement.cpp:
3133         (WebCore::HTMLTrackElement::insertedIntoTree):
3134         (WebCore::HTMLTrackElement::willRemove):
3135         * html/shadow/MediaControlElements.cpp:
3136         (WebCore::toParentMediaElement):
3137         * page/FrameView.cpp:
3138         (WebCore::FrameView::updateWidget):
3139         * platform/efl/RenderThemeEfl.cpp:
3140         (WebCore::RenderThemeEfl::paintMediaMuteButton):
3141         * platform/gtk/RenderThemeGtk.cpp:
3142         (WebCore::getMediaElementFromRenderObject):
3143         * rendering/RenderThemeMac.mm:
3144         (WebCore::RenderThemeMac::paintMediaSliderTrack):
3145         * rendering/RenderThemeWinCE.cpp:
3146         (WebCore::mediaElementParent):
3147
3148 2011-08-03  Sailesh Agrawal  <sail@chromium.org>
3149
3150         Chromium Mac: Make ScrollbarOverlayUtilitiesChromiumMac.h c++ compatible
3151         https://bugs.webkit.org/show_bug.cgi?id=65659
3152
3153         Reviewed by James Robinson.
3154
3155         ScrollbarOverlayUtilitiesChromiumMac.h couldn't be included from pure c++ code because it used NSInteger. I fixed this by checking for __OBJC__ before using NSInteger.
3156
3157         Currently no pure c++ files are including ScrollbarOverlayUtilitiesChromiumMac.h but this will change in future patches from jam@chromium.org.
3158
3159         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
3160         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
3161         (wkScrollbarPainterControllerStyle):
3162         (wkSetScrollbarPainterControllerStyle):
3163
3164 2011-08-03  Luke Macpherson   <macpherson@chromium.org>
3165
3166         Support cast between CSSPrimitiveValue and EBoxSizing, use in CSSStyleSelector.
3167         https://bugs.webkit.org/show_bug.cgi?id=65657
3168
3169         Reviewed by Simon Fraser.
3170
3171         No new tests / refactoring only.
3172
3173         * css/CSSPrimitiveValueMappings.h:
3174         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3175         Implement cast from EBoxSizing.
3176         (WebCore::CSSPrimitiveValue::operator EBoxSizing):
3177         Implement cast to EBoxSizing.
3178         * css/CSSStyleSelector.cpp:
3179         (WebCore::CSSStyleSelector::applyProperty):
3180         Use appropriate macro to simplify code using cast.
3181
3182 2011-08-03  Ian Henderson  <ianh@apple.com>
3183
3184         Draw rectangular box shadow for elements with border-radius if no corners are visible
3185         https://bugs.webkit.org/show_bug.cgi?id=65006
3186
3187         Reviewed by Simon Fraser.
3188
3189         Change "unroundClippedCorners" to "allCornersClippedOut" and use it to
3190         determine when the corners' influence affects the blurred shadow in
3191         the current drawing region.
3192
3193         Test: fast/box-shadow/box-shadow-clipped-slices.html
3194
3195         * rendering/InlineFlowBox.cpp:
3196         (WebCore::InlineFlowBox::paintBoxShadow): Pass PaintInfo through to
3197         RenderBoxModelObject::paintBoxShadow.
3198         (WebCore::InlineFlowBox::paintBoxDecorations): Ditto.
3199         * rendering/InlineFlowBox.h:
3200         * rendering/RenderBox.cpp:
3201         (WebCore::RenderBox::paintBoxDecorations): Ditto.
3202         * rendering/RenderBoxModelObject.cpp:
3203         (WebCore::allCornersClippedOut): Determines whether the bounding rects
3204         for any of the given rounded rect's corners intersects the clip rect.
3205         (WebCore::RenderBoxModelObject::paintBorder): Instead of "unrounding"
3206         any corner outside the clip rect, unround all corners at once, and
3207         only if they are all outside the clip rect.
3208         (WebCore::RenderBoxModelObject::paintBoxShadow): Determine whether any
3209         corner will influence shadow drawing using allCornersClippedOut on the
3210         influenceRect, whose corners extend past the fillRect's corners by the
3211         blur radius and inside the fillRect's corners by the blur radius.
3212         * rendering/RenderBoxModelObject.h:
3213         * rendering/RenderFieldset.cpp:
3214         (WebCore::RenderFieldset::paintBoxDecorations): Pass PaintInfo into
3215         RenderBoxModelObject::paintBoxShadow.
3216         * rendering/RenderTable.cpp:
3217         (WebCore::RenderTable::paintBoxDecorations): Ditto.
3218         * rendering/RenderTableCell.cpp:
3219         (WebCore::RenderTableCell::paintBoxDecorations): Ditto.
3220
3221 2011-08-03  No'am Rosenthal  <noam.rosenthal@nokia.com>
3222
3223         [Qt][Texmap][REGRESSION] http://webkit.org/blog-files/transform-style.html doesn't show composited content
3224         https://bugs.webkit.org/show_bug.cgi?id=65629
3225
3226         Reviewed by Benjamin Poulain.
3227
3228         Some non-ES2 initialization was wrongfully #ifdefed in CPU(X86) and thus compiled-out.
3229         When put it in the correct #ifdef, composited layers which require an intermediate buffer
3230         work again.
3231
3232         No new tests. Existing opacity tests in LayoutTests/compositing test this.
3233
3234         * platform/graphics/opengl/TextureMapperGL.cpp:
3235         (WebCore::BitmapTextureGL::bind):
3236
3237 2011-08-03  Mark Rowe  <mrowe@apple.com>
3238
3239         Bring some order to FeatureDefines.xcconfig to make it easier to follow.
3240
3241         Reviewed by Sam Weinig.
3242
3243         * Configurations/FeatureDefines.xcconfig:
3244
3245 2011-08-03  Mark Rowe  <mrowe@apple.com>
3246
3247         Clean up FeatureDefines.xcconfig to remove some unnecessary conditional settings
3248
3249         Reviewed by Dave Kilzer.
3250
3251         * Configurations/FeatureDefines.xcconfig:
3252
3253 2011-08-02  Adrienne Walker  <enne@google.com>
3254
3255         [chromium] Fix issue where switching composited tabs evicts root textures
3256         https://bugs.webkit.org/show_bug.cgi?id=65562
3257
3258         Reviewed by James Robinson.
3259
3260         LayerTilerChromium::protectTileTextures was hard-coding texture sizes
3261         and texture formats. Because this didn't always match textures' actual
3262         sizes and formats, they weren't getting protected during eviction.
3263
3264         * platform/graphics/chromium/LayerTilerChromium.cpp:
3265         (WebCore::LayerTilerChromium::protectTileTextures):
3266
3267 2011-08-03  Ryosuke Niwa  <rniwa@webkit.org>
3268
3269         select-all, copy, paste of specialAncestorElements (e.g. pre, h1, etc) nests the element inside itself
3270         https://bugs.webkit.org/show_bug.cgi?id=26483
3271
3272         Reviewed by Enrica Casucci.
3273
3274         The bug was caused by WebKit serializing pre, h1, etc... to retain structure and appearance when copying
3275         rich content and pasting did not remove such nodes wrapping the copied contents.
3276
3277         Fixed the bug by extending r81887 and r83322 to remove those elements from where WebKit pastes into.
3278
3279         Test: editing/pasteboard/copy-paste-text-in-h1.html
3280
3281         * editing/ReplaceSelectionCommand.cpp:
3282         (WebCore::nodeHasAttributesToPreserve): Extracted from isInlineNodeWithStyle.
3283         (WebCore::isInlineNodeWithStyle): Calls nodeHasAttributesToPreserve.
3284         (WebCore::ReplaceSelectionCommand::doApply): Calls ancestorToRetainStructureAndAppearance.
3285         Remove nodes copied by ancestorToRetainStructureAndAppearance at insertionPos before pasting the fragment.
3286         * editing/markup.cpp:
3287         (WebCore::ancestorToRetainStructureAndAppearance): Takes ShouldIncludeParagraphSeparators.
3288         * editing/markup.h:
3289
3290 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3291
3292         Remove LegacyDefaultOptionalArguments flag from Console.idl
3293         https://bugs.webkit.org/show_bug.cgi?id=65569
3294
3295         Reviewed by Adam Barth.
3296
3297         No new tests, all existing tests pass.
3298
3299         * page/Console.idl:
3300
3301 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3302
3303         Remove LegacyDefaultOptionalArguments flag from HTML DOM IDL files
3304         https://bugs.webkit.org/show_bug.cgi?id=65338
3305
3306         Reviewed by Adam Barth.
3307
3308         * html/DOMFormData.idl:
3309         * html/DOMTokenList.idl:
3310         * html/DOMURL.idl:
3311         * html/HTMLAllCollection.idl:
3312         * html/HTMLAnchorElement.idl:
3313         * html/HTMLAudioElement.idl:
3314         * html/HTMLButtonElement.idl:
3315         * html/HTMLCanvasElement.idl:
3316         * html/HTMLCollection.idl:
3317         * html/HTMLDivElement.idl:
3318         * html/HTMLDocument.idl:
3319         * html/HTMLElement.idl:
3320         * html/HTMLFieldSetElement.idl:
3321         * html/HTMLInputElement.idl:
3322         * html/HTMLKeygenElement.idl:
3323         * html/HTMLMediaElement.idl:
3324         * html/HTMLObjectElement.idl:
3325         * html/HTMLOptionsCollection.idl:
3326         * html/HTMLOutputElement.idl:
3327         * html/HTMLSelectElement.idl:
3328         * html/HTMLTableElement.idl:
3329         * html/HTMLTableRowElement.idl:
3330         * html/HTMLTableSectionElement.idl:
3331         * html/HTMLTextAreaElement.idl:
3332         * html/HTMLVideoElement.idl:
3333         * html/TimeRanges.idl:
3334
3335 2011-08-03  Jeffrey Pfau  <jpfau@apple.com>
3336
3337         Make atomic XML token
3338         https://bugs.webkit.org/show_bug.cgi?id=65639
3339
3340         Reviewed by Adam Barth.
3341
3342         Create a shared AtomicMarkupTokenBase that is shared by AtomicHTMLToken and the new AtomicXMLToken
3343
3344         * html/parser/HTMLToken.h:
3345         (WebCore::HTMLToken::setForceQuirks):
3346         (WebCore::AtomicHTMLToken::AtomicHTMLToken):
3347         (WebCore::AtomicHTMLToken::forceQuirks):
3348         * html/parser/HTMLTokenizer.cpp:
3349         (WebCore::::nameForAttribute):
3350         (WebCore::::usesName):
3351         (WebCore::::usesAttributes):
3352         * xml/parser/MarkupTokenBase.h:
3353         (WebCore::AtomicMarkupTokenBase::AtomicMarkupTokenBase):
3354         (WebCore::AtomicMarkupTokenBase::type):
3355         (WebCore::AtomicMarkupTokenBase::name):
3356         (WebCore::AtomicMarkupTokenBase::setName):
3357         (WebCore::AtomicMarkupTokenBase::selfClosing):
3358         (WebCore::AtomicMarkupTokenBase::getAttributeItem):
3359         (WebCore::AtomicMarkupTokenBase::attributes):
3360         (WebCore::AtomicMarkupTokenBase::takeAtributes):
3361         (WebCore::AtomicMarkupTokenBase::characters):
3362         (WebCore::AtomicMarkupTokenBase::comment):
3363         (WebCore::AtomicMarkupTokenBase::publicIdentifier):
3364         (WebCore::AtomicMarkupTokenBase::systemIdentifier):
3365         (WebCore::::initializeAttributes):
3366         * xml/parser/XMLToken.h:
3367         (WebCore::AtomicXMLToken::AtomicXMLToken):
3368         (WebCore::AtomicXMLToken::prefix):
3369         (WebCore::AtomicXMLToken::target):
3370         (WebCore::AtomicXMLToken::data):
3371         (WebCore::AtomicXMLToken::xmlVersion):
3372         (WebCore::AtomicXMLToken::xmlStandalone):
3373         * xml/parser/XMLTokenizer.cpp:
3374         (WebCore::::nameForAttribute):
3375         (WebCore::::usesName):
3376         (WebCore::::usesAttributes):
3377
3378 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3379
3380         Remove LegacyDefaultOptionalArguments flag from geolocation IDL files
3381         https://bugs.webkit.org/show_bug.cgi?id=65355
3382
3383         Reviewed by Adam Barth.
3384
3385         No new tests, all existing tests pass.
3386
3387         * page/Geolocation.idl:
3388         * page/PositionCallback.idl:
3389         * page/PositionErrorCallback.idl:
3390
3391 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3392
3393         Remove LegacyDefaultOptionalArguments flag from DOMSelection.idl
3394         https://bugs.webkit.org/show_bug.cgi?id=65566
3395
3396         Reviewed by Adam Barth.
3397
3398         No new tests, all existing tests pass.
3399
3400         * page/DOMSelection.idl:
3401
3402 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3403
3404         Remove LegacyDefaultOptionalArguments flag from Location.idl
3405         https://bugs.webkit.org/show_bug.cgi?id=65565
3406
3407         Reviewed by Darin Adler.
3408
3409         No new tests, all existing tests pass.
3410
3411         * page/Location.idl:
3412
3413 2011-08-03  Sailesh Agrawal  <sail@chromium.org>
3414
3415         Chromium Mac: Fix position of search tickmarks
3416         https://bugs.webkit.org/show_bug.cgi?id=65575
3417
3418         This change adjusts the position of search tickmarks so that they are correctly centered.
3419
3420         Also, insetting the tickmark rect by 5 pixels caused tickmarks on the overlay scrollbar to look very small. I changed this to inset by 4 pixels instead. The tickmark is the same width as the overlay scrollbar which looks much better.
3421
3422         Reviewed by James Robinson.
3423
3424         * platform/chromium/ScrollbarThemeChromiumMac.mm:
3425         (WebCore::ScrollbarThemeChromiumMac::paint):
3426
3427 2011-08-03  Sailesh Agrawal  <sail@chromium.org>
3428
3429         Chromium Mac: Make sure scrollbars flash when web page loads
3430         https://bugs.webkit.org/show_bug.cgi?id=65586
3431
3432         On slow web pages scrollbars wouldn't flash when the page was done loading. The problem was that we were flashing the scrollbar 0.1 second after the load operation had started. If the page was slow to load then we might not have scrollbars to flash. To work around this I added an extra check to make sure that we had indeed finished loading the page before flashing the scrollbars.
3433
3434         Reviewed by James Robinson.
3435
3436         * platform/chromium/ScrollAnimatorChromiumMac.mm:
3437         (WebCore::ScrollAnimatorChromiumMac::initialScrollbarPaintTimerFired):
3438
3439 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3440
3441         Remove LegacyDefaultOptionalArguments flag from navigator IDL files
3442         https://bugs.webkit.org/show_bug.cgi?id=65370
3443
3444         Reviewed by Adam Barth.
3445
3446         * page/Navigator.idl:
3447         * page/NavigatorUserMediaErrorCallback.idl:
3448         * page/NavigatorUserMediaSuccessCallback.idl:
3449
3450 2011-08-03  Anders Carlsson  <andersca@apple.com>
3451
3452         webarchive/loading/missing-data.html is failing on Mac
3453         https://bugs.webkit.org/show_bug.cgi?id=63507
3454
3455         Reviewed by Adam Barth.
3456
3457         When loading a main resource from a web archive, make sure that the working URL is actually
3458         the URL of the resource, and not the URL of the web archive itself.
3459
3460         * loader/FrameLoader.cpp:
3461         (WebCore::FrameLoader::receivedFirstData):
3462
3463 2011-08-03  Mark Pilgrim  <pilgrim@chromium.org>
3464
3465         Remove LegacyDefaultOptionalArguments flag from DOMWindow.idl
3466         https://bugs.webkit.org/show_bug.cgi?id=65353
3467
3468         Reviewed by Adam Barth.
3469
3470         No new tests, all existing tests pass.
3471
3472         * bindings/scripts/CodeGeneratorJS.pm:
3473         (GenerateImplementation):
3474         * bindings/scripts/CodeGeneratorV8.pm:
3475         (GenerateFunctionCallback):
3476         * page/DOMWindow.idl:
3477
3478 2011-08-03  Jeff Miller  <jeffm@apple.com>
3479
3480         Fix Chromimum and Qt builds after r92308.
3481
3482         * config.h: Don't try to include WebCoreHeaderDetection.h for Chromimum and Qt.
3483
3484 2011-08-03  Jeff Miller  <jeffm@apple.com>
3485
3486         Generate WebCoreHeader