2009-11-30 Fumitoshi Ukai <ukai@chromium.org>
[WebKit-https.git] / WebCore / ChangeLog
1 2009-11-30  Fumitoshi Ukai  <ukai@chromium.org>
2
3         Unreviewed Chromium build fix introduced by r51212
4
5         Fix scriptStateFromNode and ScriptStateFromPage to take DOMWrapperWorld
6         as the first argument.
7         Move mainThreadNormalWorld() to ScriptState.{h,cpp}.
8         Add debuggerWorld() and pluginWorld() in ScriptState.h.
9
10         * bindings/v8/ScriptController.cpp:
11         * bindings/v8/ScriptController.h:
12         * bindings/v8/ScriptState.cpp:
13         (WebCore::scriptStateFromNode):
14         (WebCore::scriptStateFromPage):
15         (WebCore::mainThreadNormalWorld):
16         * bindings/v8/ScriptState.h:
17         (WebCore::debuggerWorld):
18         (WebCore::pluginWorld):
19
20 2009-11-30  Enrica Casucci  <enrica@apple.com>
21
22         Reviewed by Darin Adler.
23
24         Can focus but not type into content editable block that contains only non-editable content.
25         <rdar://problem/5982901>
26         https://bugs.webkit.org/show_bug.cgi?id=31750
27         
28         The goal is to change the way we choose a visible position
29         after hit detection, by preferring a visually equivalent editable
30         position if available. By doing this, it is possible to add content
31         to an editable block that initially contains only non editable elements.
32
33         Test: editing/selection/mixed-editability-10.html
34
35         * WebCore.base.exp: Changed to match the new signature of downstream
36         and upstream in the Position class.
37         * dom/Position.cpp:
38         (WebCore::Position::atEditingBoundary): Added.
39         (WebCore::Position::upstream): Modified to allow to cross the boundary
40         between editable and non editable content if required.
41         (WebCore::Position::downstream): Modified to allow to cross the boundary
42         between editable and non editable content if required.
43         (WebCore::Position::isCandidate): Modified to qualify as candidates positions
44         that are at the editability boundary.
45         (WebCore::Position::getInlineBoxAndOffset): Modified to retrieve the inline box
46         to be used in calculating the caret rectangle.
47         * dom/Position.h:
48         (WebCore::Position::):
49         * dom/PositionIterator.cpp:
50         (WebCore::PositionIterator::atEditingBoundary): Added.
51         (WebCore::PositionIterator::isCandidate): Modified to qualify as candidates positions
52         that are at the editability boundary.
53         * dom/PositionIterator.h:
54         * editing/htmlediting.cpp:
55         (WebCore::firstEditablePositionAfterPositionInRoot): Modified to accept not only
56         descendants of the editable container, but the container itself.
57         (WebCore::lastEditablePositionBeforePositionInRoot): Modified to accept not only
58         descendants of the editable container, but the container itself.
59         * rendering/RenderObject.cpp:
60         (WebCore::RenderObject::createVisiblePosition): Added logic to prefer an editable position,
61         if available.
62         * rendering/RenderText.cpp:
63         (WebCore::RenderText::isAllCollapsibleWhitespace): Added.
64         * rendering/RenderText.h:
65
66 2009-11-30  Kevin Ollivier  <kevino@theolliviers.com>
67
68         wx build fix, add header needed for wx build.
69
70         * css/CSSFontFaceSrcValue.cpp:
71
72 2009-11-30  Mark Rowe  <mrowe@apple.com>
73
74         Reviewed by David Kilzer.
75
76         <rdar://problem/7424387> WebCore binary missing symbols when built for x86_64 from a machine that cannot run x86_64 binaries
77
78         The check for whether WTF_USE_PLUGIN_HOST_PROCESS is defined occurs under the native architecture of the build machine.
79         If that is 32-bit then WTF_USE_PLUGIN_HOST_PROCESS will not be defined.  We work around this by forcing the check to
80         be performed against the x86_64 architecture.
81
82         * DerivedSources.make:
83
84 2009-11-30  Beth Dakin  <bdakin@apple.com>
85
86         Reviewed by Oliver Hunt.
87
88         Fix for https://bugs.webkit.org/show_bug.cgi?id=32000 Crash in 
89         Safari caused by extreme column-gap and column-width values 
90         -and corresponding-
91         <rdar://problem/7425433>
92
93         Prevent desiredColumnCount from being less than 1 since it is used 
94         as a divisor.
95         * rendering/RenderBlock.cpp:
96         (WebCore::RenderBlock::calcColumnWidth):
97
98 2009-11-30  Alexey Proskuryakov  <ap@apple.com>
99
100         Reviewed by Oliver Hunt.
101
102         https://bugs.webkit.org/show_bug.cgi?id=31659
103         Connection must be closed in case of Web Socket handshake error
104
105         The network connection was closed, but the close event wasn't dispatched.
106
107         Tested by websocket/tests/handshake-error.html, which is un-skipped now.
108
109         * platform/network/cf/SocketStreamHandleCFNet.cpp: (WebCore::SocketStreamHandle::platformClose):
110         Call client didHandle() method. This looks strange in CFNetwork implementation, because
111         it's the client that asked to close the stream, so it shouldn't need the callback. It makes
112         more sense in cross-process implementation, because closing is async there.
113
114 2009-11-30  Gavin Barraclough  <barraclough@apple.com>
115
116         Reviewed by Geoff Garen.
117
118         Bug 31859 - Make world selection for JSC IsolatedWorlds automagical.
119
120         WebCore presently has to explicitly specify the world before entering into JSC,
121         which is a little fragile (particularly since property access via a
122         getter/setter might invoke execution). Instead derive the current world from
123         the lexical global object.
124
125         Remove the last uses of mainThreadCurrentWorld(), so the world is always obtained via
126         currentWorld().  Switch this to obtain the world from the ExecsState's lexical global
127         object instead.  Remove the call/construct/evaluate 'InWorld' methods, since these
128         are no longer necessary.
129
130         * WebCore.base.exp:
131         * bindings/js/JSCallbackData.cpp:
132         (WebCore::JSCallbackData::invokeCallback):
133         * bindings/js/JSCallbackData.h:
134         (WebCore::JSCallbackData::JSCallbackData):
135         * bindings/js/JSCustomXPathNSResolver.cpp:
136         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
137         * bindings/js/JSDOMBinding.cpp:
138         (WebCore::currentWorld):
139         (WebCore::mainThreadNormalWorld):
140         * bindings/js/JSDOMBinding.h:
141         (WebCore::WebCoreJSClientData::WebCoreJSClientData):
142         * bindings/js/JSDOMWindowBase.cpp:
143         (WebCore::JSDOMWindowBase::updateDocument):
144         * bindings/js/JSDOMWindowBase.h:
145         * bindings/js/JSEventListener.cpp:
146         (WebCore::JSEventListener::handleEvent):
147         (WebCore::JSEventListener::reportError):
148         * bindings/js/JSHTMLDocumentCustom.cpp:
149         (WebCore::JSHTMLDocument::open):
150         * bindings/js/JSNodeFilterCondition.cpp:
151         (WebCore::JSNodeFilterCondition::acceptNode):
152         * bindings/js/JSQuarantinedObjectWrapper.cpp:
153         (WebCore::JSQuarantinedObjectWrapper::construct):
154         (WebCore::JSQuarantinedObjectWrapper::call):
155         * bindings/js/ScheduledAction.cpp:
156         (WebCore::ScheduledAction::executeFunctionInContext):
157         * bindings/js/ScriptController.cpp:
158         (WebCore::ScriptController::evaluateInWorld):
159         (WebCore::ScriptController::initScript):
160         (WebCore::ScriptController::updateDocument):
161         * bindings/js/ScriptFunctionCall.cpp:
162         (WebCore::ScriptFunctionCall::call):
163         (WebCore::ScriptFunctionCall::construct):
164         * bindings/js/ScriptObjectQuarantine.cpp:
165         (WebCore::getQuarantinedScriptObject):
166         * bindings/js/ScriptState.cpp:
167         (WebCore::scriptStateFromNode):
168         (WebCore::scriptStateFromPage):
169         * bindings/js/ScriptState.h:
170         * bindings/js/WorkerScriptController.cpp:
171         (WebCore::WorkerScriptController::evaluate):
172         * bindings/objc/WebScriptObject.mm:
173         (-[WebScriptObject callWebScriptMethod:withArguments:]):
174         (-[WebScriptObject evaluateWebScript:]):
175         * bridge/NP_jsobject.cpp:
176         (_NPN_InvokeDefault):
177         (_NPN_Invoke):
178         (_NPN_Evaluate):
179         (_NPN_Construct):
180         * bridge/jni/jni_jsobject.mm:
181         (JavaJSObject::call):
182         (JavaJSObject::eval):
183         * dom/NodeFilter.h:
184         (WebCore::NodeFilter::acceptNode):
185         * dom/NodeIterator.h:
186         (WebCore::NodeIterator::nextNode):
187         (WebCore::NodeIterator::previousNode):
188         * dom/TreeWalker.h:
189         (WebCore::TreeWalker::parentNode):
190         (WebCore::TreeWalker::firstChild):
191         (WebCore::TreeWalker::lastChild):
192         (WebCore::TreeWalker::previousSibling):
193         (WebCore::TreeWalker::nextSibling):
194         (WebCore::TreeWalker::previousNode):
195         (WebCore::TreeWalker::nextNode):
196         * inspector/InspectorController.cpp:
197         (WebCore::InspectorController::windowScriptObjectAvailable):
198         (WebCore::InspectorController::didEvaluateForTestInFrontend):
199         * inspector/JavaScriptCallFrame.cpp:
200         (WebCore::JavaScriptCallFrame::evaluate):
201
202 2009-11-30  Eric Carlson  <eric.carlson@apple.com>
203
204         Reviewed by Simon Fraser.
205
206         All HTML5 media element events should be regular events
207         https://bugs.webkit.org/show_bug.cgi?id=30513
208
209         * html/HTMLMediaElement.cpp:
210         (WebCore::HTMLMediaElement::selectMediaResource):
211         (WebCore::HTMLMediaElement::noneSupported):
212         (WebCore::HTMLMediaElement::mediaEngineError):
213         (WebCore::HTMLMediaElement::setNetworkState):
214         (WebCore::HTMLMediaElement::userCancelledLoad):
215             Call scheduleEvent instead of scheduleProgressEvent.
216         (WebCore::HTMLMediaElement::progressEventTimerFired):
217             Call scheduleEvent instead of scheduleProgressEvent. Call renderer->updateFromElement
218             after scheduling a 'progress' event so the controller will update download
219             progress indicator.
220         * html/HTMLMediaElement.h:
221             Remove scheduleProgressEvent prototype.
222
223 2009-11-30  Joseph Pecoraro  <joepeck@webkit.org>
224
225         Reviewed by Pavel Feldman.
226
227         Web Inspector: Wrong console output for Regexp escape sequence
228         https://bugs.webkit.org/show_bug.cgi?id=31538
229
230         Updated inspector/console-format.html
231
232         * inspector/front-end/ConsoleView.js:
233         (WebInspector.ConsoleView.createDividerElement): style issues.
234         (WebInspector.ConsoleView.createFilterElement): style issues.
235         (WebInspector.ConsoleView): added _customFormatters table.
236         (WebInspector.ConsoleView.prototype.updateMessageRepeatCount): style isses.
237         (WebInspector.ConsoleView.prototype._incrementErrorWarningCount): style issues.
238         (WebInspector.ConsoleView.prototype._format): simplified delegation to formatter logic.
239         (WebInspector.ConsoleView.prototype._formatobject):
240         (WebInspector.ConsoleView.prototype._formatnode):
241         (WebInspector.ConsoleView.prototype._printArray):
242         (WebInspector.ConsoleMessage.prototype._format): commented and broke down the algorithm into parts.
243         (WebInspector.ConsoleMessage.prototype._formatWithSubstitutionString.append): handle substitution string formatting.
244         (WebInspector.ConsoleMessage.prototype._formatIndividualValue): handling individual value formatting.
245         (WebInspector.ConsoleCommandResult):
246         * inspector/front-end/InjectedScript.js: simplified regex formatting.
247         * inspector/front-end/inspector.js:
248         (WebInspector.linkifyStringAsFragment): converted new RegExp to literal for performance benefits.
249         * inspector/front-end/utilities.js: 
250         (Element.prototype.hasStyleClass): update inaccurate comment.
251         (String.prototype.trimURL): converted new RegExp to literal for performance benefits.
252
253 2009-11-30  Erik Arvidsson  <arv@chromium.org>
254
255         Reviewed by Adam Barth.
256
257         Clean up V8 bindings for CSSStyleDeclaration and CSSVariableDeclaration
258         https://bugs.webkit.org/show_bug.cgi?id=31895
259
260         No new tests. This is already covered by:
261                 fast/dom/CSSStyleDeclaration/css-computed-style-item.html
262                 fast/dom/CSSStyleDeclaration/css-style-item.html
263
264         * bindings/v8/V8Collection.h:
265         (WebCore::collectionStringIndexedPropertyGetter):
266         (WebCore::setCollectionStringIndexedGetter):
267         * bindings/v8/V8DOMWrapper.cpp:
268         (WebCore::V8DOMWrapper::getTemplate):
269
270 2009-11-30  Steve Block  <steveblock@google.com>
271
272         Reviewed by Eric Seidel.
273
274         Adds include of wtf/StdLibExtras.h for DEFINE_STATIC_LOCAL in V8 ScriptController.
275         https://bugs.webkit.org/show_bug.cgi?id=31932
276
277         Build fix only, no new tests.
278
279         * bindings/v8/ScriptController.cpp: Modified. Adds include of wtf/StdLibExtras.h.
280
281 2009-11-30  Steve Block  <steveblock@google.com>
282
283         Reviewed by Eric Seidel.
284
285         Adds PassOwnPtr include to ScriptExecutionContext.h.
286         https://bugs.webkit.org/show_bug.cgi?id=31929
287
288         Build fix only, no new tests.
289
290         * dom/ScriptExecutionContext.h: Modified. Adds PassOwnPtr include.
291
292 2009-11-30  Dirk Schulze  <krit@webkit.org>
293
294         Reviewed by Nikolas Zimmermann.
295
296         REGRESSION (r49757): masking-mask-01-b.svg rendered incorrectly
297         [https://bugs.webkit.org/show_bug.cgi?id=31980]
298
299         It turns out, that we did not handle maskUnits="userSpaceOnUse"
300         correctly. We just need to move the context of the maskImage
301         if maskContentUnits="objectBoundingBox". The context gets scaled
302         on this unit combination, so we have to substract the position of
303         the targetRect. On userSpaceOnUse the position just depends on the
304         position of the mask element.
305         I added a test with some senseless and reasonable values for size
306         and postion of the mask and it's contents. I also used every
307         combination of maskUnits and maskContentUnits to be sure, that it
308         is fixed this time.
309
310         Test: svg/custom/mask-with-all-units.svg
311
312         * svg/SVGMaskElement.cpp:
313         (WebCore::SVGMaskElement::drawMaskerContent):
314
315 2009-11-30  Steve Block  <steveblock@google.com>
316
317         Reviewed by Eric Seidel.
318
319         Adds ENABLE(INSPECTOR) guards around DOMWindow::inspectorTimelineAgent.
320         https://bugs.webkit.org/show_bug.cgi?id=31928
321
322         Build fix only, no new tests.
323
324         * page/DOMWindow.cpp: Modified. Adds ENABLE(INSPECTOR) guards around DOMWindow::inspectorTimelineAgent.
325
326 2009-11-30  Steve Block  <steveblock@google.com>
327
328         Reviewed by Eric Seidel.
329
330         Adds SHARED_WORKERS guards to V8 WorkerContextExecutionProxy.
331         https://bugs.webkit.org/show_bug.cgi?id=31926
332
333         Build fix only, no new tests.
334
335         * bindings/v8/WorkerContextExecutionProxy.cpp:
336         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded):
337         (WebCore::WorkerContextExecutionProxy::convertToV8Object):
338         (WebCore::WorkerContextExecutionProxy::convertEventTargetToV8Object):
339
340 2009-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
341
342         Reviewed by Kenneth Rohde Christiansen.
343
344         Chrome::contentsSizeChanged() is called when the content size has not changed
345         https://bugs.webkit.org/show_bug.cgi?id=31978
346
347         Do not trigger contentsSizeChaned() is the new size is the same as the old one.
348
349         * page/FrameView.cpp:
350         (WebCore::FrameView::setContentsSize):
351
352 2009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
353
354         Reviewed by Kenneth Rohde Christiansen.
355
356         [Qt] Fix some compiler warnings seen on QtWebKit/Mac
357         https://bugs.webkit.org/show_bug.cgi?id=31962
358
359         No new tests as there is no functional change.
360
361         * platform/network/ResourceHandle.h: Make destructor virtual as 
362         after r50772 ResourceHandle has virtual functions.
363
364         * plugins/mac/PluginPackageMac.cpp: 
365         (WebCore::PluginPackage::fetchInfo): Fix typo WTF is a namespace
366         not a label
367
368         * plugins/mac/PluginViewMac.cpp:
369         (WebCore::PluginView::setNPWindowIfNeeded): Add l to the format
370         specifier
371
372 2009-11-30  Xan Lopez  <xlopez@igalia.com>
373
374         Reviewed by Gustavo Noronha.
375
376         Add new headers to sources list.
377
378         * GNUmakefile.am:
379
380 2009-11-30  Girish Ramakrishnan  <girish@forwardbias.in>
381
382         Reviewed by Holger Freyther.
383
384         [Qt] Mac Plugins : Get context menu to work in QGraphicsView
385         
386         Flash expects the value in record.where to be the global position for
387         displaying the context menu.
388         
389         https://bugs.webkit.org/show_bug.cgi?id=31979
390
391         * plugins/mac/PluginViewMac.cpp:
392         (WebCore::PluginView::handleMouseEvent):
393
394 2009-11-30  Steve Block  <steveblock@google.com>
395
396         Reviewed by Eric Seidel.
397
398         Adds PLATFORM(CHROMIUM) guards around memory usage code in V8GCController.
399         https://bugs.webkit.org/show_bug.cgi?id=31925
400
401         This code uses ChromiumBridge and Chromium-specific constant values not
402         appropriate for other platforms such as Android.
403
404         Build fix only, no new tests.
405
406         * bindings/v8/V8GCController.cpp: Modified. Adds PLATFORM(CHROMIUM) around Chromium-specific code.
407
408 2009-11-29  Brent Fulgham  <bfulgham@webkit.org>
409
410         Build fix.
411
412         Correct draw signature used in ImageCairoWin.cpp.
413
414         * platform/graphics/win/ImageCairoWin.cpp:
415         (WebCore::BitmapImage::getHBITMAPOfSize):
416         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
417
418 2009-11-28  Oliver Hunt  <oliver@apple.com>
419
420         Reviewed by Sam Weinig.
421
422         postMessage should serialize File objects
423         https://bugs.webkit.org/show_bug.cgi?id=31955
424
425         Update SerializedScriptValue to include support for
426         File objects in the serialized object graph.
427
428         * bindings/js/SerializedScriptValue.cpp:
429         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
430         (WebCore::SerializingTreeWalker::convertIfTerminal):
431         (WebCore::DeserializingTreeWalker::convertIfTerminal):
432         * bindings/js/SerializedScriptValue.h:
433         (WebCore::SerializedScriptValueData::):
434         (WebCore::SerializedScriptValueData::asString):
435
436 2009-11-29  Simon Fraser  <simon.fraser@apple.com>
437
438         Reviewed by Dan Bernstein.
439
440         Optimize the hierarchy rebuilding of compositing layers
441         https://bugs.webkit.org/show_bug.cgi?id=31879
442         
443         When updating the compositing layer hierarchy, instead of removing all
444         child layers and then re-adding them one by one, build a vector of child
445         layers, and set them in one go.
446         
447         * platform/graphics/GraphicsLayer.h:
448         * platform/graphics/GraphicsLayer.cpp:
449         (WebCore::GraphicsLayer::setChildren): New method that takes a Vector of child
450         GraphicsLayers.
451         
452         * platform/graphics/mac/GraphicsLayerCA.h: Override setChildren().
453         * platform/graphics/win/GraphicsLayerCACF.h: Ditto.
454         * platform/graphics/mac/GraphicsLayerCA.mm: 
455         (WebCore::GraphicsLayerCA::setChildren): Implement setChildren() to 
456         set the bit that notes that sublayers changed.
457         * platform/graphics/win/GraphicsLayerCACF.cpp:
458         (WebCore::GraphicsLayerCACF::setChildren): Implement setChildren() to 
459         udpate sublayers, with a note that this is not efficient.
460         
461         * rendering/RenderLayerCompositor.h:
462         * rendering/RenderLayerCompositor.cpp:
463         (WebCore::RenderLayerCompositor::updateCompositingLayers):
464         When updating compositing layers, use the faster updateLayerTreeGeometry() if
465         we know that no layer hierarchy changes are needed, and, at the root, use
466         the vector returned from rebuildCompositingLayerTree() to attach the root
467         layer.
468         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Changed to
469         collect child layers into Vectors of GraphicsLayers, which can be set as
470         layer children in one go.
471         (WebCore::RenderLayerCompositor::updateLayerTreeGeometry): Split out from
472         rebuildCompositingLayerTree() for simplicity, and called when we just need to
473         update layer geometry, without doing any reparenting.
474
475 2009-11-29  Daniel Bates  <dbates@webkit.org>
476
477         Reviewed by Adam Barth.
478
479         https://bugs.webkit.org/show_bug.cgi?id=31971
480
481         Updated comment to reflect latest XSSAuditor bindings.
482
483         No functionality was changed. So, no new tests.
484
485         * page/XSSAuditor.h:
486
487 2009-11-29  Daniel Bates  <dbates@webkit.org>
488
489         Reviewed by Eric Seidel.
490
491         https://bugs.webkit.org/show_bug.cgi?id=31969
492
493         Removes unnecessary #include files.
494
495         No functionality was changed. So, no new tests.
496
497         * css/CSSComputedStyleDeclaration.cpp: Removed include CachedImage.h, and
498         Pair.h
499         * css/CSSCursorImageValue.cpp: Removed include RenderStyle.h
500         * css/CSSFontFaceSrcValue.cpp: Removed include Node.h
501         * css/CSSFontSelector.cpp: Removed include NodeList.h
502         * css/CSSGradientValue.cpp: Removed include GraphicsContext.h, ImageBuffer.h
503         * css/CSSImageValue.cpp: Removed include RenderStyle.h
504         * css/CSSImportRule.cpp: Removed include MediaList.h
505         * css/CSSMutableStyleDeclaration.cpp: Removed include CSSProperty.h
506         * css/CSSRule.cpp: Removed include CSSStyleSheet.h
507         * css/CSSStyleSelector.cpp: Removed include CSSFontFace.h,
508         CSSFontFaceSource.h, and CSSProperty.h
509         * page/EventSource.h: Removed include EventListener.h
510
511 2009-11-29  Daniel Bates  <dbates@webkit.org>
512
513         Reviewed by Eric Seidel.
514
515         https://bugs.webkit.org/show_bug.cgi?id=31965
516
517         Removed #include KeyframeList.h from CSSStyleSelector.h. Instead,
518         forward declared it.
519
520         As a side effect, we need to #include KeyframeList.h in
521         RenderLayerBacking.cpp.
522
523         No functionality was changed. So, no new tests.
524
525         * css/CSSStyleSelector.cpp:
526         * css/CSSStyleSelector.h: Removed #include KeyframeList.h
527         * rendering/RenderLayerBacking.cpp: Added #include KeyframeList.h
528
529 2009-11-29  Shu Chang  <Chang.Shu@nokia.com>
530
531         Reviewed by Eric Seidel.
532
533         Continue to search for matching node in the case where multiple nodes
534         have the same id.
535         https://bugs.webkit.org/show_bug.cgi?id=31428
536
537         Test: fast/dom/Element/id-in-node-list-index01.html
538
539         * dom/DynamicNodeList.cpp:
540         (WebCore::DynamicNodeList::itemWithName):
541
542 2009-11-29  Daniel Bates  <dbates@webkit.org>
543
544         Reviewed by Eric Seidel.
545
546         https://bugs.webkit.org/show_bug.cgi?id=31966
547
548         Removed #include RenderStyle.h from file KeyframeAnimation.h. Instead,
549         forward declared it.
550
551         No functionality was changed. So, no new tests.
552
553         * page/animation/KeyframeAnimation.cpp:
554         * page/animation/KeyframeAnimation.h:
555
556 2009-11-29  Daniel Bates  <dbates@webkit.org>
557
558         Unreviewed, fix change log entry date.
559
560         For some reason, bugzilla-tool did not update the date in the change
561         log entry for my last commit (r51468). So, this commit fixes the date
562         of that entry.
563
564 2009-11-29  Daniel Bates  <dbates@webkit.org>
565
566         Reviewed by Dan Bernstein.
567
568         https://bugs.webkit.org/show_bug.cgi?id=31964
569
570         Removed #include StringImpl, StyleImage. Instead, forward declared them.
571         Also, we can substitute #include <wtf/PassRefPtr.h> for #include PlatformString.h,
572         since it seems we only really used it to include PassRefPtr.h.
573
574         No functionality was changed. So, no new tests.
575
576         * rendering/style/ContentData.h:
577
578 2009-11-29  Zoltan Horvath  <zoltan@webkit.org>
579
580         Reviewed by Eric Seidel.
581
582         Allow custom memory allocation control for classes of the rendering and storage directory in WebCore
583         https://bugs.webkit.org/show_bug.cgi?id=31906
584
585         Inherits the following classes from Noncopyable because these are instantiated
586         by 'new' and no need to be copyable:
587
588         class/struct name               - instantiated at: WebCore/'location'
589
590         class SQLTransactionClient      - storage/DatabaseThread.cpp:45
591         class SQLTransactionCoordinator - storage/DatabaseThread.cpp:46
592         class OriginUsageRecord         - storage/OriginQuotaManager.cpp:66
593         class DatabaseTracker           - storage/DatabaseTracker.cpp:62
594         class ScrollbarTheme            - (its child class) rendering/RenderScrollbarTheme.cpp:35
595         class RenderSelectionInfoBase   - (its child class) rendering/RenderView.cpp:310
596         class RenderOverflow            - rendering/RenderBox.cpp:2846
597
598         Inherits the following classes from FastAllocBase because these are instantiated by 'new':
599
600         struct FillLayer                - css/CSSStyleSelector.cpp:197
601         struct ShadowData               - rendering/style/ShadowData.cpp:35
602         class CounterContent            - css/CSSStyleSelector.cpp:4111
603
604         * platform/ScrollbarTheme.h:
605         * rendering/RenderOverflow.h:
606         * rendering/RenderSelectionInfo.h:
607         * rendering/style/CounterContent.h:
608         * rendering/style/FillLayer.h:
609         * rendering/style/ShadowData.h:
610         * storage/DatabaseTracker.h:
611         * storage/OriginUsageRecord.h:
612         * storage/SQLTransactionClient.h:
613         * storage/SQLTransactionCoordinator.h:
614
615 2009-11-28  Adam Barth  <abarth@webkit.org>
616
617         Reviewed by Dimitri Glazkov.
618
619         [Chromium] Sify compose button alerts error
620         https://bugs.webkit.org/show_bug.cgi?id=31394
621
622         Test: http/tests/security/calling-versus-current.html
623
624         We're supposed to use the calling context for security checks.  In JSC
625         land, this is the lexicalGlobalObject.
626
627         * bindings/v8/V8Proxy.cpp:
628         (WebCore::V8Proxy::canAccessPrivate):
629
630 2009-11-27  Shinichiro Hamaji  <hamaji@chromium.org>
631
632         Unreviewed Chromium build fix introduced by r51428.
633
634         [Chromium] Ignore line-height CSS property for PushButton
635         https://bugs.webkit.org/show_bug.cgi?id=31712
636
637         * rendering/RenderThemeChromiumSkia.cpp:
638         (WebCore::RenderThemeChromiumSkia::adjustButtonStyle):
639
640 2009-11-27  Shinichiro Hamaji  <hamaji@chromium.org>
641
642         Unreviewed Chromium test fix by reverting r51413.
643
644         [v8] Do not check the thread when accessing DOMDataStore
645         https://bugs.webkit.org/show_bug.cgi?id=31877
646
647         * bindings/v8/V8DOMMap.cpp:
648         (WebCore::getDOMNodeMap):
649         (WebCore::getDOMObjectMap):
650         (WebCore::getActiveDOMObjectMap):
651         (WebCore::getDOMSVGElementInstanceMap):
652         (WebCore::getDOMSVGObjectWithContextMap):
653
654 2009-11-27  Daniel Bates  <dbates@webkit.org>
655
656         Unreviewed, comment fix.
657
658         Corrected misspelling of the word "implemented".
659
660         * inspector/front-end/InjectedScriptAccess.js:
661
662 2009-11-27  Daniel Bates  <dbates@webkit.org>
663
664         Reviewed by Adam Barth.
665
666         https://bugs.webkit.org/show_bug.cgi?id=31940
667
668         Makes the error messages more descriptive when we refuse to load an object/embed or
669         refuse to load from the document base URL.
670
671         * page/XSSAuditor.cpp:
672         (WebCore::XSSAuditor::canLoadObject): Changed console message to be more descriptive.
673         (WebCore::XSSAuditor::canSetBaseElementURL): Ditto.
674
675 2009-11-27  Yury Semikhatsky  <yurys@chromium.org>
676
677         Reviewed by Pavel Feldman.
678
679         This is a WebCore part of the fix that allows to view plugin
680         resources loaded by plugins.
681
682         https://bugs.webkit.org/show_bug.cgi?id=31832
683
684         * inspector/InspectorController.cpp:
685         (WebCore::InspectorController::willSendRequest):
686         (WebCore::InspectorController::didReceiveResponse):
687         (WebCore::InspectorController::didReceiveContentLength):
688         (WebCore::InspectorController::didFinishLoading):
689         (WebCore::InspectorController::didFailLoading):
690         * inspector/InspectorController.h:
691         * inspector/InspectorResource.cpp:
692         (WebCore::InspectorResource::addLength):
693         * loader/ResourceLoadNotifier.cpp:
694         (WebCore::ResourceLoadNotifier::didFailToLoad):
695         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
696         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
697         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
698         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
699
700 2009-11-27  Yury Semikhatsky  <yurys@chromium.org>
701
702         Reviewed by Pavel Feldman.
703
704         Instead of generating negative identifiers for cached resources in
705         InspectorController and extending identifier type from 'unsigned long' to 'long
706         long' reuse progress tracker from the inspected page to generate those
707         identifiers. It guarantees that InspectorResources have unique ids since
708         all of them are generated by that progress tracker.
709
710         Added a couple new overloaded methods to Script* objects that accept
711         long and unsigned long arguments. These types of argumens have already
712         been passed as long long.
713
714         https://bugs.webkit.org/show_bug.cgi?id=31921
715
716         * bindings/js/ScriptFunctionCall.cpp:
717         (WebCore::ScriptFunctionCall::appendArgument):
718         * bindings/js/ScriptFunctionCall.h:
719         * bindings/js/ScriptObject.cpp:
720         (WebCore::ScriptObject::set):
721         * bindings/js/ScriptObject.h:
722         * bindings/v8/ScriptFunctionCall.cpp:
723         (WebCore::ScriptFunctionCall::appendArgument):
724         * bindings/v8/ScriptFunctionCall.h:
725         * bindings/v8/ScriptObject.cpp:
726         (WebCore::ScriptObject::set):
727         * bindings/v8/ScriptObject.h:
728         * inspector/InspectorBackend.cpp:
729         (WebCore::InspectorBackend::dispatchOnInjectedScript):
730         * inspector/InspectorController.cpp:
731         (WebCore::InspectorController::InspectorController):
732         (WebCore::InspectorController::getTrackedResource):
733         (WebCore::InspectorController::didLoadResourceFromMemoryCache): Use inspected page's ProgressTracker to generate unique identifiers for cached resources in InspectorController.
734         * inspector/InspectorController.h:
735         * inspector/InspectorDOMAgent.cpp:
736         (WebCore::InspectorDOMAgent::buildObjectForNode):
737         (WebCore::InspectorDOMAgent::buildObjectForEventListener):
738         * inspector/InspectorFrontend.cpp:
739         (WebCore::InspectorFrontend::addResource):
740         (WebCore::InspectorFrontend::updateResource):
741         (WebCore::InspectorFrontend::removeResource):
742         (WebCore::InspectorFrontend::updateFocusedNode):
743         * inspector/InspectorFrontend.h:
744         * inspector/InspectorResource.cpp:
745         (WebCore::InspectorResource::InspectorResource):
746         (WebCore::InspectorResource::createCached):
747         * inspector/InspectorResource.h: Change InspectorResource identifier type from 'long long' to 'unsigned long'.
748         (WebCore::InspectorResource::create):
749         (WebCore::InspectorResource::identifier):
750         * inspector/TimelineRecordFactory.cpp:
751         (WebCore::TimelineRecordFactory::createResourceSendRequestRecord):
752         (WebCore::TimelineRecordFactory::createResourceReceiveResponseRecord):
753         (WebCore::TimelineRecordFactory::createResourceFinishRecord):
754
755 2009-11-26  Shinichiro Hamaji  <hamaji@chromium.org>
756
757         Reviewed by Dan Bernstein.
758
759         Assertion failure in RenderBlock::positionForPointWithInlineChildren when running fast/inline/relative-positioned-overflow.html
760         https://bugs.webkit.org/show_bug.cgi?id=29966
761
762         When an empty inline element is clicked, the root inline box has
763         no leaf children. Use the renderer of a normal child instead.
764
765         This change resolves Windows port's assertion failure in a layout test.
766         Also, this fixes the behavior when a user drags the mouse from an
767         empty inline element to above texts.
768
769         Test: editing/selection/last-empty-inline.html
770
771         * rendering/RenderBlock.cpp:
772         (WebCore::RenderBlock::positionForPointWithInlineChildren):
773
774 2009-11-26  Kent Tamura  <tkent@chromium.org>
775
776         Reviewed by Eric Seidel.
777
778         [Chromium] Ignore line-height CSS property specified to push buttons on
779         Windows and Linux.
780         https://bugs.webkit.org/show_bug.cgi?id=31712
781
782         LayoutTests/fast/forms/control-restrict-line-height.html checks that the
783         following controls should ignore line-height CSS property.
784          - <select>
785          - <input type=button>
786          - <input type=search>
787         This change addresses the <input type=button> issue with Chromium/Windows
788         and Chromium/Linux.
789         
790         * rendering/RenderThemeChromiumSkia.cpp: Implement adjustButtonStyle() to ignore line-height.
791         * rendering/RenderThemeChromiumSkia.h: Declare adjustButtonStyle().
792
793 2009-11-26  Kinuko Yasuda  <kinuko@chromium.com>
794
795         Reviewed by Eric Seidel.
796
797         Remove the special charset meta tag in the clipboard so that
798         copy-and-paste with interchange breaklines/spaces works correctly
799         within WebKit.
800
801         No new tests.  Layout tests that involve copy-and-paste with
802         interchange breaklines (like editing/pasteboard/paste-line-endings-00?)
803         should pass on Mac/Chromium with this fix.
804
805         * platform/chromium/ClipboardChromium.cpp:
806         * platform/chromium/PasteboardChromium.cpp:
807         (WebCore::Pasteboard::documentFragment):
808
809 2009-11-26  İsmail Dönmez  <ismail@namtrac.org>
810
811         Reviewed by Eric Seidel.
812
813         Compile with QT_NO_WHEELEVENT defined.
814
815         * platform/qt/WheelEventQt.cpp:
816         (WebCore::PlatformWheelEvent::applyDelta):
817
818 2009-11-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
819
820         Reviewed by Oliver Hunt.
821
822         Move GOwnPtr* from wtf to wtf/gtk
823         https://bugs.webkit.org/show_bug.cgi?id=31793
824
825         No new tests as there is no functional change.
826
827         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: Change the
828           path for GOwnPtr.h.
829         * platform/text/TextEncoding.cpp: Ditto.
830         * platform/text/gtk/TextCodecGtk.cpp: Ditto.
831
832 2009-11-26  Yury Semikhatsky  <yurys@chromium.org>
833
834         Not reviewed. Build fix: revert r51421.
835
836         * inspector/InspectorController.cpp:
837         (WebCore::InspectorController::willSendRequest):
838         (WebCore::InspectorController::didReceiveResponse):
839         (WebCore::InspectorController::didReceiveContentLength):
840         (WebCore::InspectorController::didFinishLoading):
841         (WebCore::InspectorController::didFailLoading):
842         * inspector/InspectorController.h:
843         * inspector/InspectorResource.cpp:
844         (WebCore::InspectorResource::addLength):
845         * loader/ResourceLoadNotifier.cpp:
846         (WebCore::ResourceLoadNotifier::didFailToLoad):
847         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
848         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
849         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
850         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
851
852 2009-11-26  Yury Semikhatsky  <yurys@chromium.org>
853
854         Reviewed by Pavel Feldman.
855
856         This is a WebCore part of the fix that allows to view plugin
857         resources loaded by plugins.
858
859         https://bugs.webkit.org/show_bug.cgi?id=31832
860
861         * inspector/InspectorController.cpp:
862         (WebCore::InspectorController::willSendRequest):
863         (WebCore::InspectorController::didReceiveResponse):
864         (WebCore::InspectorController::didReceiveContentLength):
865         (WebCore::InspectorController::didFinishLoading):
866         (WebCore::InspectorController::didFailLoading):
867         * inspector/InspectorController.h: Remove unused DocumentLoader parameters from inspector methods.
868         * inspector/InspectorResource.cpp:
869         (WebCore::InspectorResource::addLength): Update loading end time when new data are received.
870         * loader/ResourceLoadNotifier.cpp:
871         (WebCore::ResourceLoadNotifier::didFailToLoad): Notify InspectorController about the failure.
872         (WebCore::ResourceLoadNotifier::dispatchWillSendRequest):
873         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
874         (WebCore::ResourceLoadNotifier::dispatchDidReceiveContentLength):
875         (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading):
876
877 2009-11-26  Daniel Bates  <dbates@webkit.org>
878
879         Reviewed by Pavel Feldman.
880
881         https://bugs.webkit.org/show_bug.cgi?id=21554
882
883         Implements support for hovering over <img> src to display the height and width of that image
884         in a tooltip. Displays both the displayable and natural dimensions of the image.
885
886         Test: inspector/elements-img-tooltip.html
887
888         * inspector/front-end/ElementsTreeOutline.js:
889         (WebInspector.ElementsTreeElement.prototype.createTooltipForImageNode): Added.
890         (WebInspector.ElementsTreeElement.prototype._updateTitle.callback):
891         (WebInspector.ElementsTreeElement.prototype._updateTitle):
892         (WebInspector.ElementsTreeElement.prototype._nodeTitleInfo):
893         * inspector/front-end/ObjectProxy.js:
894         (WebInspector.ObjectProxy.getPropertiesAsync): Added.
895         * inspector/front-end/inspector.js:
896         (WebInspector.linkifyURLAsNode): Added tooltipText argument.
897         (WebInspector.linkifyURL): Ditto.
898
899 2009-11-26  Kevin Ollivier  <kevino@theolliviers.com>
900
901         wx build fix after drawPattern API change.
902
903         * platform/graphics/wx/ImageWx.cpp:
904         (WebCore::Image::drawPattern):
905
906 2009-11-26  Anton Muhin  <antonm@chromium.org>
907
908         Reviewed by Adam Barth.
909
910         Use an internal field instead of hidden property to speedup lookup
911         of entered isolated world.
912
913         Plus some inlinings.
914         https://bugs.webkit.org/show_bug.cgi?id=31884
915
916         Covered by layout tests + manual running of some benchmarks as
917         content scripts.
918
919         * bindings/v8/V8DOMWrapper.cpp:
920         * bindings/v8/V8DOMWrapper.h:
921         (WebCore::V8DOMWrapper::setDOMWrapper):
922         * bindings/v8/V8HiddenPropertyName.h:
923         * bindings/v8/V8IsolatedWorld.cpp:
924         (WebCore::V8IsolatedWorld::V8IsolatedWorld):
925         * bindings/v8/V8IsolatedWorld.h:
926         (WebCore::V8IsolatedWorld::getEntered):
927         (WebCore::V8IsolatedWorld::getGlobalObject):
928         * bindings/v8/custom/V8CustomBinding.h:
929
930 2009-11-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
931
932         Reviewed by Kenneth Rohde Christiansen.
933
934         [Qt] Corrects build break on Windows.
935
936         Rename platform/text/qt/TextBoundaries.cpp to TextBoundariesQt.cpp since
937         platform/text/TextBoundaries.cpp was compiled instead when compiling with nmake.
938
939         * WebCore.pro:
940         * platform/text/qt/TextBoundariesQt.cpp: Renamed from WebCore/platform/text/qt/TextBoundaries.cpp.
941         (WebCore::findNextWordFromIndex):
942         (WebCore::findWordBoundary):
943
944 2009-11-26  Anton Muhin  <antonm@chromium.org>
945
946         Reviewed by Adam Barth.
947
948         Do not check if the thread is main or not when accessing DOMDataStore as currently in Chromium WebKit is used in main thread only.
949         https://bugs.webkit.org/show_bug.cgi?id=31877
950
951         Covered by layout tests and buildbots.
952
953         * bindings/v8/V8DOMMap.cpp:
954         (WebCore::getDOMNodeMap):
955         (WebCore::getDOMObjectMap):
956         (WebCore::getActiveDOMObjectMap):
957         (WebCore::getDOMSVGElementInstanceMap):
958         (WebCore::getDOMSVGObjectWithContextMap):
959
960 2009-11-26  Girish Ramakrishnan  <girish@forwardbias.in>
961
962         Reviewed by Holger Freyther.
963
964         [Qt] Mac Plugins : Pass mouse position relative to the fake window
965         
966         When using off-screen rendering, we need to pass mouse events relative
967         to the fake window instead of the global position.
968         
969         https://bugs.webkit.org/show_bug.cgi?id=31794
970
971         * plugins/mac/PluginViewMac.cpp:
972         (WebCore::PluginView::platformStart):
973         (WebCore::PluginView::handleMouseEvent):
974
975 2009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
976
977         Reviewed by Eric Seidel.
978
979         [Qt] Use QNetworkReply::rawHeaderPairs
980         https://bugs.webkit.org/show_bug.cgi?id=31826
981
982         The QNetworkReply is internally storing the HTTP headers
983         as a list of pairs. Currently we have to ask the QNetworkReply
984         to put all header names into a QStringList. Afterwards we will
985         iterate over this QStringList and ask the QNetworkReply to
986         give us the value for this header name. The current Qt implementation
987         is doing a linear to find the header value.
988
989         Use a new API to directly access the list of pairs and push
990         this into WebCore. This avoids doing some allocations and doing
991         linear searches from within a loop.
992
993         * platform/network/qt/QNetworkReplyHandler.cpp:
994         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
995
996 2009-11-21  Holger Hans Peter Freyther  <zecke@selfish.org>
997
998         Reviewed by Kenneth Rohde Christiansen.
999
1000         [Qt] Add Qt specific information of RenderPart
1001         https://bugs.webkit.org/show_bug.cgi?id=31203
1002
1003         The WebCore::Widget of the RenderPart (RenderWidget) might be
1004         backed with a platform widget. Print both the WebCore::Widget
1005         and platform widget state. In the above bug we had a problem
1006         that the WebCore::Widget was invisible but the QWidget was
1007         visible.
1008
1009         * rendering/RenderTreeAsText.cpp:
1010         (WebCore::operator<<): Add special case for RenderPart
1011
1012 2009-11-17  Holger Hans Peter Freyther  <zecke@selfish.org>
1013
1014         Reviewed by Kenneth Rohde Christiansen.
1015
1016         [Qt] Call Widget::setSelfVisible from hide/show
1017         https://bugs.webkit.org/show_bug.cgi?id=31203
1018
1019         Call Widget::setSelfVisible from Widget::show and
1020         Widget::hide and use isParentVisible to decide
1021         if the widget should be shown. This way client
1022         code can rely on isVisible.
1023
1024         Change PluginViewQt::show, PluginViewQt::hide to
1025         call the base class as it is doing the right thing
1026         now. Add an assert verify that platfomWidget and
1027         platformPluginWidget are the same.
1028
1029         * manual-tests/qt/qtplugin.html: Modify manual test
1030         * platform/qt/WidgetQt.cpp:
1031         (WebCore::Widget::show):
1032         (WebCore::Widget::hide):
1033         * plugins/qt/PluginViewQt.cpp:
1034         (WebCore::PluginView::show):
1035         (WebCore::PluginView::hide):
1036
1037 2009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
1038
1039         Reviewed by Alexey Proskuryakov.
1040
1041         Fix compilation of REQUEST_DEBUG debug code
1042         https://bugs.webkit.org/show_bug.cgi?id=31850
1043
1044         In r47907 the single parameter KURL constructor to parse
1045         from a WebCore::String was replaced with a two parameter
1046         constructor. I think in this debug case parsing the urls
1047         again is no problem and I have changed the code to use the
1048         two parameter version.
1049
1050         * loader/loader.cpp:
1051         (WebCore::Loader::Host::didFinishLoading):
1052
1053 2009-11-26  Søren Gjesse  <sgjesse@chromium.org>
1054
1055         Reviewed by Pavel Feldman.
1056
1057         [V8] Avoid using JavaScript objects as context data
1058         https://bugs.webkit.org/show_bug.cgi?id=31873
1059
1060         Change the context "data" from a JavaScript object holding the two properties type and value to
1061         a string holding type and value separated by a comma.
1062
1063         * bindings/v8/V8Proxy.cpp:
1064         (WebCore::V8Proxy::setInjectedScriptContextDebugId):
1065         (WebCore::V8Proxy::setContextDebugId):
1066         (WebCore::V8Proxy::contextDebugId):
1067
1068 2009-11-25  Dimitri Glazkov  <dglazkov@chromium.org>
1069
1070         Reviewed by David Levin.
1071
1072         [Chromium] Implement canSetValueAttribute in the API, the clean-up part.
1073         https://bugs.webkit.org/show_bug.cgi?id=31894
1074
1075         * accessibility/chromium/AccessibilityObjectWrapper.h: Added RefCounted decl.
1076         (WebCore::AccessibilityObjectWrapper::AccessibilityObjectWrapper): Removed mis-refcountingness.
1077
1078 2009-11-25  Kenneth Russell  <kbr@google.com>
1079
1080         Reviewed by Oliver Hunt.
1081
1082         Off-by-one error in index validation for drawElements and drawArrays
1083         https://bugs.webkit.org/show_bug.cgi?id=31891
1084
1085         Fixed computation of number of elements for bound array objects.
1086
1087         Test: fast/canvas/webgl/index-validation.html
1088
1089         * html/canvas/WebGLRenderingContext.cpp:
1090         (WebCore::WebGLRenderingContext::vertexAttribPointer):
1091
1092 2009-11-25  Dmitry Titov  <dimich@chromium.org>
1093
1094         Reviewed by David Levin.
1095
1096         Update SharedScript to use eventNames() instead of EventNames()
1097         https://bugs.webkit.org/show_bug.cgi?id=31890
1098
1099         * SharedScript/WebKitSharedScript.cpp:
1100         (WebCore::LoadEventTask::performTask):
1101
1102 2009-11-25  Eric Carlson  <eric.carlson@apple.com>
1103
1104         Reviewed by Simon Fraser.
1105
1106         <rdar://problem/7409331> Windows: Support closed caption in <video> element
1107
1108         Enable closed captions in QuickTime/Windows media engine.
1109
1110         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1111         (WebCore::MediaPlayerPrivate::hasClosedCaptions):
1112         (WebCore::MediaPlayerPrivate::setClosedCaptionsVisible):
1113             New, all through to m_qtMovie.
1114
1115         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
1116             Make all but the destructor private since MediaPlayer call through the media
1117             engine interface.
1118
1119         * platform/graphics/win/QTMovieWin.cpp:
1120         (QTMovieWin::disableUnsupportedTracks):
1121             Use handy new constants for QuickTime track types.
1122         (QTMovieWin::hasClosedCaptions):
1123         (QTMovieWin::setClosedCaptionsVisible):
1124             New, closed caption support.
1125         * platform/graphics/win/QTMovieWin.h:
1126
1127         * rendering/RenderMediaControls.cpp:
1128         (WebCore::RenderMediaControls::paintMediaControlsPart):
1129             Deal with closed caption buttons.
1130
1131         * rendering/RenderThemeWin.cpp:
1132         (WebCore::RenderThemeWin::shouldRenderMediaControlPart):
1133             New, don't ask the media engine if it has closed captions unless the Safari theme will
1134             be able to render the button.
1135         (WebCore::RenderThemeWin::paintMediaToggleClosedCaptionsButton):
1136             New.
1137         * rendering/RenderThemeWin.h:
1138
1139 2009-11-25  Drew Wilson  <atwilson@chromium.org>
1140
1141         Reviewed by David Levin.
1142
1143         MessagePorts always look remotely entangled even when closed.
1144         https://bugs.webkit.org/show_bug.cgi?id=31698
1145
1146         Tests: Existing tests suffice, Chromium soak test passes now.
1147
1148         * bindings/v8/custom/V8CustomBinding.h:
1149         Removed kMessagePortEntangledPortIndex which is no longer used.
1150         * bindings/v8/V8GCController.cpp:
1151         (WebCore::GCPrologueVisitor::visitDOMWrapper):
1152         Simplified GC code to reflect the Chromium MessagePort implementation
1153         (locallyEntangledPort() always returns false).
1154         (WebCore::GCEpilogueVisitor::visitDOMWrapper):
1155         Cleaned up epilogue code to handle the case where the port gets closed
1156         in mid-GC (due to the parent context being freed).
1157         * dom/MessagePort.cpp:
1158         (WebCore::MessagePort::MessagePort):
1159         (WebCore::MessagePort::close):
1160         Now sets the closed flag.
1161         (WebCore::MessagePort::disentanglePorts):
1162         Updated to use new isCloned() API instead of relying on isEntangled(), which was incorrect.
1163         * dom/MessagePort.h:
1164         Added a m_closed flag and updated isEntangled() to check it.
1165         (WebCore::MessagePort::isEntangled):
1166         Now returns false if the port has been closed.
1167         (WebCore::MessagePort::isCloned):
1168         Added new API to differentiate between cloned and closed ports (closed ports can still be passed to postMessage).
1169
1170 2009-11-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1171
1172         Reviewed by Simon Hausmann.
1173
1174         [Qt] Fix crash of QtWebKit on any page with Flash when compiled with MinGW.
1175
1176         Fix inline assembly, don't dereference the function pointer twice.
1177
1178         * plugins/win/PluginViewWin.cpp:
1179         (WebCore::PluginView::hookedBeginPaint):
1180         (WebCore::PluginView::hookedEndPaint):
1181
1182 2009-11-22  Jakub Wieczorek  <faw217@gmail.com>
1183
1184         Reviewed by Adam Barth.
1185
1186         [Qt] Remove the Referer header when redirecting to a non-secure site
1187         https://bugs.webkit.org/show_bug.cgi?id=31785
1188
1189         This makes Qt pass two tests introduced in r50226.
1190
1191         * platform/network/qt/QNetworkReplyHandler.cpp:
1192         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1193
1194 2009-11-25  Andrei Popescu  <andreip@google.com>
1195
1196         Reviewed by Dimitri Glazkov.
1197
1198         The select elements do not reflect the actual choice the user makes.
1199         https://bugs.webkit.org/show_bug.cgi?id=31831
1200
1201         Handle the drawing of the listboxes in Android code.
1202
1203         No new features, just fixing an Android problem. Existing layout tests are sufficient.
1204
1205         * platform/android/RenderThemeAndroid.cpp:
1206         (WebCore::theme):
1207         (WebCore::RenderThemeAndroid::platformActiveSelectionBackgroundColor):
1208         (WebCore::RenderThemeAndroid::platformActiveListBoxSelectionBackgroundColor):
1209         (WebCore::RenderThemeAndroid::platformInactiveListBoxSelectionBackgroundColor):
1210         (WebCore::RenderThemeAndroid::platformActiveListBoxSelectionForegroundColor):
1211         (WebCore::RenderThemeAndroid::platformInactiveListBoxSelectionForegroundColor):
1212         (WebCore::RenderThemeAndroid::adjustButtonStyle):
1213         (WebCore::RenderThemeAndroid::paintTextArea):
1214         (WebCore::RenderThemeAndroid::adjustListboxStyle):
1215         * platform/android/RenderThemeAndroid.h:
1216
1217 2009-11-25  Alexander Pavlov  <apavlov@chromium.org>
1218
1219         Reviewed by Pavel Feldman.
1220
1221         Load InspectorResource mime type from CachedResource for 304 responses
1222
1223         For network libraries that do not merge cache data into 304 ResourceResponses,
1224         the mime type for cached resources is unknown.
1225         https://bugs.webkit.org/show_bug.cgi?id=31868
1226
1227         * inspector/InspectorResource.cpp:
1228         (WebCore::InspectorResource::updateResponse):
1229         (WebCore::InspectorResource::updateScriptObject):
1230         (WebCore::InspectorResource::type):
1231
1232 2009-11-25  Andrei Popescu  <andreip@google.com>
1233
1234         Reviewed by Eric Seidel.
1235
1236         Android is missing implementation of SSL Key generator functions.
1237         https://bugs.webkit.org/show_bug.cgi?id=31825
1238
1239         This change adds the PlatformBridge class to platform/android.
1240         PlarformBridge is used to access the embedding layer for things
1241         such as key generator, cookies, plugins, etc.
1242
1243         No new tests required, this is platform code.
1244
1245         * platform/android/PlatformBridge.h: Added.
1246         * platform/android/SSLKeyGeneratorAndroid.cpp: Added.
1247         (WebCore::getSupportedKeySizes):
1248         (WebCore::signedPublicKeyAndChallengeString):
1249
1250 2009-11-25  Philippe Normand  <pnormand@igalia.com>
1251
1252         Reviewed by Eric Seidel.
1253
1254         [GTK] use gst_init_check() instead of gst_init()
1255         https://bugs.webkit.org/show_bug.cgi?id=31864
1256
1257         Use gst_init_check() instead of gst_init() to prevent eventual
1258         unexpected exit of the application.
1259
1260         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1261         (WebCore::do_gst_init):
1262         (WebCore::MediaPlayerPrivate::isAvailable):
1263
1264 2009-11-25  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1265
1266         Reviewed by Xan Lopez.
1267
1268         Some tests are crashing from time to time
1269         https://bugs.webkit.org/show_bug.cgi?id=31866
1270
1271         Make sure we do not notify the client of a finished load, if the
1272         load has been cancelled, or the client is gone.
1273
1274         * platform/network/soup/ResourceHandleSoup.cpp:
1275         (WebCore::):
1276
1277 2009-11-24  Ben Murdoch  <benm@google.com>
1278
1279         Reviewed by Eric Seidel.
1280
1281         [Android] Upstream Android changes to WebCore/bridge/jni
1282         https://bugs.webkit.org/show_bug.cgi?id=31824
1283
1284         No new tests required as no new functionality.
1285
1286         * bridge/jni/jni_class.cpp:
1287         (JavaClass::JavaClass): Add calls to delete allocated references, to avoid potential leaks.
1288         * bridge/jni/jni_instance.cpp: Add an Android include path.
1289         * bridge/jni/jni_instance.h: Add getter/setter for JObjectWrapper::_instance and make the JavaInstance ctor and member variables protected. Both needed for the Android port, see bug for discussion.
1290         (JSC::Bindings::JObjectWrapper::instance): Added.
1291         (JSC::Bindings::JObjectWrapper::setInstance): Added.
1292         * bridge/jni/jni_runtime.cpp:
1293         (JavaMethod::JavaMethod): Delete an allocated reference to avoid a potential leak.
1294         * bridge/jni/jni_utility.h:
1295         (JSC::Bindings::callJNIMethodV): Delete an allocated reference to avoid a potential leak.
1296
1297 2009-11-24  Zoltan Horvath  <zoltan@webkit.org>
1298
1299         Reviewed by Eric Seidel.
1300
1301         Allow custom memory allocation control for classes of the plugins and rendering directory in WebCore
1302         https://bugs.webkit.org/show_bug.cgi?id=31827
1303
1304         Inherits the following classes from Noncopyable because these are instantiated
1305         by 'new' and no need to be copyable:
1306
1307         class/struct name               - instantiated at: WebCore/'location'
1308
1309         class PluginRequest             - plugins/PluginView.cpp:521
1310         class PluginMainThreadScheduler - plugins/PluginMainThreadScheduler.cpp:34
1311         class PluginDatabase            - plugins/PluginDatabase.cpp:50
1312         struct MimeClassInfo            - plugins/PluginInfoStore.cpp:50
1313         struct PluginInfo               - plugins/PluginInfoStore.cpp:40
1314         class RenderArena               - dom/Document.cpp:1401
1315         class RenderImageScaleData      - rendering/RenderImage.cpp:149
1316         class TableLayout               - (its child class) rendering/RenderTable.cpp:82
1317         struct ColumnInfo               - rendering/RenderBlock.cpp:3590
1318         struct FloatingObject           - rendering/RenderBlock.cpp:2300
1319         struct MaxMargin                - rendering/RenderBlock.cpp:4794
1320         class RenderMarquee             - rendering/RenderLayer.cpp:3277
1321
1322         * plugins/PluginData.h:
1323         * plugins/PluginDatabase.h:
1324         * plugins/PluginMainThreadScheduler.h:
1325         * plugins/PluginView.h:
1326         * rendering/RenderArena.h:
1327         * rendering/RenderBlock.cpp:
1328         * rendering/RenderBlock.h:
1329         * rendering/RenderImage.cpp:
1330         * rendering/RenderMarquee.h:
1331         * rendering/TableLayout.h:
1332
1333 2009-11-24  Dmitry Titov  <dimich@chromium.org>
1334
1335         Reviewed by David Levin.
1336
1337         Initial implementation of WebKitSharedScript and SharedScriptContext
1338         https://bugs.webkit.org/show_bug.cgi?id=31569
1339
1340         No new tests since there are no bindings yet (soon to come).
1341
1342         * DerivedSources.make: Add WebKitSharedScript and SharedScriptContext to a list of idl files.
1343         * WebCore.xcodeproj/project.pbxproj:
1344         * dom/Document.cpp:
1345         (WebCore::Document::detach): Notify WebKitSharedScriptRepository that document is detaching.
1346         * dom/EventTarget.cpp: Add new casting methods, since the new types are EventTargets.
1347         (WebCore::EventTarget::toWebKitSharedScript):
1348         (WebCore::EventTarget::toSharedScriptContext):
1349         * dom/EventTarget.h: Ditto
1350         * dom/ScriptExecutionContext.h:
1351         (WebCore::ScriptExecutionContext::isSharedScriptContext): New virtual method, since there is a new type of context.
1352
1353         * SharedScript/SharedScriptContext.cpp: Added. Similar to WorkerContext, but w/o threading.
1354         (WebCore::SharedScriptContext::SharedScriptContext):
1355         (WebCore::SharedScriptContext::~SharedScriptContext):
1356         (WebCore::SharedScriptContext::clearScript):
1357         (WebCore::SharedScriptContext::virtualURL):
1358         (WebCore::SharedScriptContext::virtualCompleteURL):
1359         (WebCore::SharedScriptContext::reportException):
1360         (WebCore::SharedScriptContext::addMessage):
1361         (WebCore::SharedScriptContext::resourceRetrievedByXMLHttpRequest):
1362         (WebCore::SharedScriptContext::scriptImported):
1363         (WebCore::SharedScriptContext::matches):
1364         (WebCore::SharedScriptContext::addToDocumentsList):
1365         (WebCore::SharedScriptContext::destructionTimerFired):
1366         (WebCore::SharedScriptContext::removeFromDocumentList):
1367         (WebCore::SharedScriptContext::load):
1368         (WebCore::SharedScriptContext::postTask):
1369         (WebCore::SharedScriptContext::eventTargetData):
1370         (WebCore::SharedScriptContext::ensureEventTargetData):
1371         (WebCore::SharedScriptContext::scriptExecutionContext):
1372         * SharedScript/SharedScriptContext.h: Added.
1373         (WebCore::SharedScriptContext::create):
1374         (WebCore::SharedScriptContext::isSharedScriptContext):
1375         (WebCore::SharedScriptContext::userAgent):
1376         (WebCore::SharedScriptContext::toSharedScriptContext):
1377         (WebCore::SharedScriptContext::self):
1378         (WebCore::SharedScriptContext::script):
1379         (WebCore::SharedScriptContext::loaded):
1380         (WebCore::SharedScriptContext::name):
1381         (WebCore::SharedScriptContext::refEventTarget):
1382         (WebCore::SharedScriptContext::derefEventTarget):
1383         (WebCore::SharedScriptContext::refScriptExecutionContext):
1384         (WebCore::SharedScriptContext::derefScriptExecutionContext):
1385         * SharedScript/SharedScriptContext.idl: Added.
1386
1387         * SharedScript/SharedScriptController.h: 
1388         Added. Empty implementation of a ScriptController, will come later as part of bindings. Needed to compile.
1389
1390         * SharedScript/WebKitSharedScript.cpp: Added. EventTarget-based DOM object.
1391         (WebCore::WebKitSharedScript::WebKitSharedScript):
1392         (WebCore::WebKitSharedScript::~WebKitSharedScript):
1393         (WebCore::WebKitSharedScript::setContext):
1394         (WebCore::LoadEventTask::create): Fires asynchronous 'load' event when underlying SharedScriptContext is initialized.
1395         (WebCore::LoadEventTask::performTask):
1396         (WebCore::LoadEventTask::LoadEventTask):
1397         (WebCore::WebKitSharedScript::scheduleLoadEvent):
1398         * SharedScript/WebKitSharedScript.h: Added.
1399         (WebCore::WebKitSharedScript::create):
1400         (WebCore::WebKitSharedScript::scriptExecutionContext):
1401         (WebCore::WebKitSharedScript::toWebKitSharedScript):
1402         (WebCore::WebKitSharedScript::context):
1403         (WebCore::WebKitSharedScript::refEventTarget):
1404         (WebCore::WebKitSharedScript::derefEventTarget):
1405         (WebCore::WebKitSharedScript::eventTargetData):
1406         (WebCore::WebKitSharedScript::ensureEventTargetData):
1407         * SharedScript/WebKitSharedScript.idl: Added.
1408
1409         * SharedScript/WebKitSharedScriptRepository.cpp: Added. Implements a list of running SharedScriptContexts.
1410         (WebCore::ScriptLoader::ScriptLoader): The helper class to load an initial script of SharedScriptContext.
1411         (WebCore::ScriptLoader::load):
1412         (WebCore::ScriptLoader::notifyFinished):
1413         (WebCore::WebKitSharedScriptRepository::instance): Repository has a static global instance.
1414         (WebCore::WebKitSharedScriptRepository::connect):
1415         (WebCore::WebKitSharedScriptRepository::documentDetached): Called from Document::detach().
1416         (WebCore::WebKitSharedScriptRepository::removeSharedScriptContext): Called from ~SharedScriptContext().
1417         (WebCore::WebKitSharedScriptRepository::connectToSharedScript):
1418         (WebCore::WebKitSharedScriptRepository::getSharedScriptContext):
1419         * SharedScript/WebKitSharedScriptRepository.h: Added.
1420         (WebCore::WebKitSharedScriptRepository::WebKitSharedScriptRepository):
1421
1422 2009-11-24  Dmitry Titov  <dimich@chromium.org>
1423
1424         Reviewed by Eric Seidel.
1425
1426         Add ENABLE_SHARED_SCRIPT feature define and flag for build-webkit
1427         https://bugs.webkit.org/show_bug.cgi?id=31444
1428
1429         * Configurations/FeatureDefines.xcconfig:
1430         * GNUmakefile.am:
1431         * WebCore.pro:
1432
1433 2009-11-24  Chris Marrin  <cmarrin@apple.com>
1434
1435         Reviewed by Simon Fraser.
1436
1437         Implement accelerated compositing
1438         https://bugs.webkit.org/show_bug.cgi?id=27314
1439         
1440         This part of the checkin adds the Windows specific GraphicsLayer support files.
1441         It provides the interface between GraphicsLayer and CACF. It also deals with
1442         the compositing loop, and provides the plumbing to pass the root layer up to
1443         WebView.
1444
1445         * WebCore.vcproj/WebCore.vcproj:
1446         * WebCore.vcproj/WebCoreCommon.vsprops:
1447         * page/FrameView.cpp:
1448         (WebCore::FrameView::syncCompositingStateRecursive):
1449         * platform/graphics/GraphicsLayer.cpp:
1450         (WebCore::GraphicsLayer::GraphicsLayer):
1451         * platform/graphics/GraphicsLayer.h:
1452         * platform/graphics/win/GraphicsLayerCACF.cpp: Added.
1453         * platform/graphics/win/GraphicsLayerCACF.h: Added.
1454         * platform/graphics/win/WKCACFContextFlusher.cpp: Added.
1455         * platform/graphics/win/WKCACFContextFlusher.h: Added.
1456         * platform/graphics/win/WKCACFContextFlusherWin.cpp: Added.
1457         * platform/graphics/win/WKCACFLayer.cpp: Added.
1458         * platform/graphics/win/WKCACFLayer.h: Added.
1459         * platform/graphics/win/WKCACFLayerWindow.cpp: Added.
1460         * platform/graphics/win/WKCACFLayerWindow.h: Added.
1461
1462 2009-11-24  Chris Marrin  <cmarrin@apple.com>
1463
1464         Reviewed by Eric Seidel.
1465
1466         Do error checking of parameter to createShader
1467         https://bugs.webkit.org/show_bug.cgi?id=31808
1468
1469         Test: fast/canvas/webgl/invalidPassedParams.html
1470
1471         * html/canvas/WebGLRenderingContext.cpp:
1472         (WebCore::WebGLRenderingContext::createShader):
1473         * html/canvas/WebGLRenderingContext.h:
1474         * html/canvas/WebGLRenderingContext.idl:
1475
1476 2009-11-24  Kent Tamura  <tkent@chromium.org>
1477
1478         Reviewed by Eric Seidel.
1479
1480         [Chromium] Ignore line-height CSS property specified to a search field on
1481         Windows and Linux.
1482         https://bugs.webkit.org/show_bug.cgi?id=31820
1483
1484         LayoutTests/fast/forms/control-restrict-line-height.html checks that the
1485         following controls should ignore line-height CSS property.
1486          - <select>
1487          - <input type=button>
1488          - <input type=search>
1489         This change addresses the <input type=search> issue with Chromium/Windows
1490         and Chromium/Linux.
1491
1492         * rendering/RenderThemeChromiumSkia.cpp:
1493         (WebCore::RenderThemeChromiumSkia::adjustSearchFieldStyle): Implement this to ignore line-height.
1494         * rendering/RenderThemeChromiumSkia.h: Declare adjustSearchFieldStyle().
1495
1496 2009-11-24  Simon Fraser  <simon.fraser@apple.com>
1497
1498         No review.
1499
1500         Stylistic fix: indent the member var initialisation.
1501
1502         * platform/graphics/mac/GraphicsLayerCA.mm:
1503         (WebCore::GraphicsLayerCA::GraphicsLayerCA):
1504
1505 2009-11-24  Gavin Barraclough  <barraclough@apple.com>
1506
1507         Reviewed by Geoff Garen.
1508
1509         Bug 31848 - Remove uses of mainThreadCurrentWorld, and of currentWorld using a globalData.
1510
1511         These methods get the world from the global data rather than from an execstate.
1512         If the current world is always read from an exec state then it can be read
1513         from the global object, and world entry can become automagical, rather than
1514         being explicitly set by an EnterDOMWrapperWorld.
1515
1516         * bindings/js/JSCSSRuleCustom.cpp:
1517         (WebCore::toJS):
1518         * bindings/js/JSCSSValueCustom.cpp:
1519         (WebCore::toJS):
1520         * bindings/js/JSDOMBinding.cpp:
1521         (WebCore::currentWorld):
1522         (WebCore::DOMObjectWrapperMapFor):
1523         (WebCore::hasCachedDOMObjectWrapper):
1524         (WebCore::getCachedDOMObjectWrapper):
1525         (WebCore::cacheDOMObjectWrapper):
1526         (WebCore::hasCachedDOMNodeWrapper):
1527         (WebCore::getCachedDOMNodeWrapper):
1528         (WebCore::cacheDOMNodeWrapper):
1529         * bindings/js/JSDOMBinding.h:
1530         (WebCore::createDOMObjectWrapper):
1531         (WebCore::getDOMObjectWrapper):
1532         (WebCore::createDOMNodeWrapper):
1533         (WebCore::getDOMNodeWrapper):
1534         * bindings/js/JSDOMWindowCustom.cpp:
1535         (WebCore::JSDOMWindow::history):
1536         (WebCore::JSDOMWindow::location):
1537         * bindings/js/JSDocumentCustom.cpp:
1538         (WebCore::JSDocument::location):
1539         (WebCore::toJS):
1540         * bindings/js/JSElementCustom.cpp:
1541         (WebCore::toJSNewlyCreated):
1542         * bindings/js/JSEventCustom.cpp:
1543         (WebCore::toJS):
1544         * bindings/js/JSHTMLCollectionCustom.cpp:
1545         (WebCore::toJS):
1546         * bindings/js/JSImageDataCustom.cpp:
1547         (WebCore::toJS):
1548         * bindings/js/JSNodeCustom.cpp:
1549         (WebCore::JSNode::markChildren):
1550         (WebCore::createWrapper):
1551         (WebCore::toJS):
1552         * bindings/js/JSSVGPathSegCustom.cpp:
1553         (WebCore::toJS):
1554         * bindings/js/JSStyleSheetCustom.cpp:
1555         (WebCore::toJS):
1556         * xml/XMLHttpRequest.cpp:
1557         (WebCore::XMLHttpRequest::dropProtection):
1558
1559 2009-11-24  Alexey Proskuryakov  <ap@apple.com>
1560
1561         Windows build fix.
1562
1563         * platform/network/cf/SocketStreamHandleCFNet.cpp: Also, don't include the wrong one!
1564
1565 2009-11-24  Alexey Proskuryakov  <ap@apple.com>
1566
1567         Windows build fix.
1568
1569         * platform/network/cf/SocketStreamHandleCFNet.cpp: Include the proper WKSI header.
1570
1571 2009-11-24  Simon Fraser  <simon.fraser@apple.com>
1572
1573         Reviewed by Oliver Hunt.
1574
1575         SVGUseElement::toClipPath can crash
1576         <rdar://problem/7385270>
1577
1578         Null-test m_shadowTreeRootElement again, because the call to buildPendingResource() may not
1579         actually initialize it.
1580
1581         * svg/SVGUseElement.cpp:
1582         (WebCore::SVGUseElement::toClipPath):
1583
1584 2009-11-24  Simon Fraser  <simon.fraser@apple.com>
1585
1586         Windows build fix.
1587
1588         * page/win/FrameCGWin.cpp:
1589         (WebCore::imageFromRect):
1590         (WebCore::imageFromSelection):
1591
1592 2009-11-24  Eric Carlson  <eric.carlson@apple.com>
1593
1594         Not reviewed. Revert r51351 until a new WebKitSupportLibrary is available.
1595
1596         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1597         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
1598         * platform/graphics/win/QTMovieWin.cpp:
1599         * platform/graphics/win/QTMovieWin.h:
1600         * rendering/RenderMediaControls.cpp:
1601         * rendering/RenderThemeWin.cpp:
1602         * rendering/RenderThemeWin.h:
1603
1604 2009-11-24  Alexey Proskuryakov  <ap@apple.com>
1605
1606         Reviewed by Brady Eidson.
1607
1608         https://bugs.webkit.org/show_bug.cgi?id=31844
1609         SocketStreamHandleCFNet should support CONNECT proxy credentials
1610
1611         * WebCore.vcproj/WebCore.vcproj:
1612         * WebCore.xcodeproj/project.pbxproj:
1613         * platform/network/CredentialStorage.h:
1614         * platform/network/mac/CredentialStorageMac.mm: Added.
1615         (WebCore::CredentialStorage::getFromPersistentStorage):
1616         * platform/network/cf/CredentialStorageCFNet.cpp: Added.
1617         (WebCore::CredentialStorage::getFromPersistentStorage):
1618         Add support for fetching credentials from persistent storage (CFNet version is currently
1619         a stub).
1620
1621         * bindings/js/JSWebSocketCustom.cpp: Removed an unneeded include.
1622
1623         * platform/network/cf/SocketStreamHandle.h:
1624         * platform/network/cf/SocketStreamHandleCFNet.cpp:
1625         (WebCore::SocketStreamHandle::SocketStreamHandle):
1626         (WebCore::SocketStreamHandle::createStreams):
1627         (WebCore::getStoredCONNECTProxyCredentials):
1628         (WebCore::authenticationSchemeFromAuthenticationMethod):
1629         (WebCore::SocketStreamHandle::addCONNECTCredentials):
1630         (WebCore::SocketStreamHandle::readStreamCallback):
1631         Check if connection attempt was resulted in 407, and try stored credentials if it did.
1632
1633         * platform/mac/WebCoreSystemInterface.h:
1634         * platform/mac/WebCoreSystemInterface.mm:
1635         * WebCore.base.exp:
1636         Updated WKSI.
1637
1638 2009-11-24  Simon Fraser  <simon.fraser@apple.com>
1639
1640         Reviewed by Dan Bernstein.
1641
1642         Find highlight is drawn incorrectly on pages with compositing layers
1643         <rdar://problem/7413925>
1644         
1645         Part 2: Add a new bit to the PaintBehavior flags, PaintBehaviorFlattenCompositingLayers,
1646         and pass that down when painting into an image.
1647         
1648         When set, it forces painting of compositing layers to go down a software paint path
1649         when all layers are painted, irrespective of compositing status, and where
1650         3d transforms are flattened to 2d. When doing this, we also need to use temporary
1651         clip rects for layers which are normally composited.
1652         
1653         * page/FrameView.h:
1654         (WebCore::FrameView::paintBehavior):
1655         * page/mac/FrameMac.mm:
1656         (WebCore::Frame::imageFromRect):
1657         * rendering/RenderLayer.cpp:
1658         (WebCore::RenderLayer::renderableTransform):
1659         (WebCore::expandClipRectForDescendantsAndReflection):
1660         (WebCore::transparencyClipBox):
1661         (WebCore::RenderLayer::beginTransparencyLayers):
1662         (WebCore::RenderLayer::paintLayer):
1663         * rendering/RenderLayer.h:
1664         (WebCore::RenderLayer::paintsWithTransparency):
1665         (WebCore::RenderLayer::paintsWithTransform):
1666         * rendering/RenderLayerCompositor.cpp:
1667         (WebCore::RenderLayerCompositor::calculateCompositedBounds):
1668         * rendering/RenderObject.h:
1669
1670 2009-11-24  Simon Fraser  <simon.fraser@apple.com>
1671
1672         Reviewed by Dan Bernstein.
1673
1674         Find highlight is drawn incorrectly on pages with compositing layers
1675         <rdar://problem/7413925>
1676         
1677         Part 1: Rename PaintRestriction to PaintBehavior, and make it a bitmask, in
1678         preparation for adding a new flag related to painting into an image.
1679         
1680         PaintBehaviorSelectionOnly and PaintBehaviorForceBlackText are now separate flags.
1681
1682         * page/FrameView.cpp:
1683         (WebCore::FrameView::reset):
1684         (WebCore::FrameView::paintContents):
1685         (WebCore::FrameView::setPaintBehavior):
1686         * page/FrameView.h:
1687         * page/mac/FrameMac.mm:
1688         (WebCore::Frame::selectionImage):
1689         * rendering/RenderLayer.cpp:
1690         (WebCore::RenderLayer::paint):
1691         (WebCore::RenderLayer::paintLayer):
1692         * rendering/RenderLayer.h:
1693         * rendering/RenderLayerBacking.cpp:
1694         (WebCore::RenderLayerBacking::paintIntoLayer):
1695         (WebCore::RenderLayerBacking::paintContents):
1696         * rendering/RenderLayerBacking.h:
1697         * rendering/RenderObject.h:
1698         * rendering/RenderReplica.cpp:
1699         (WebCore::RenderReplica::paint):
1700
1701 2009-11-24  Eric Carlson  <eric.carlson@apple.com>
1702
1703         Reviewed by Simon Fraser.
1704
1705         <rdar://problem/7409331> Windows: Support closed caption in <video> element
1706
1707         Enable closed captions in QuickTime/Windows media engine.
1708
1709         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
1710         (WebCore::MediaPlayerPrivate::hasClosedCaptions):
1711         (WebCore::MediaPlayerPrivate::setClosedCaptionsVisible):
1712         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
1713         * platform/graphics/win/QTMovieWin.cpp:
1714         (QTMovieWin::hasClosedCaptions):
1715         (QTMovieWin::setClosedCaptionsVisible):
1716         * platform/graphics/win/QTMovieWin.h:
1717         * rendering/RenderMediaControls.cpp:
1718         (WebCore::RenderMediaControls::paintMediaControlsPart):
1719         * rendering/RenderThemeWin.cpp:
1720         (WebCore::RenderThemeWin::paintMediaToggleClosedCaptionsButton):
1721         * rendering/RenderThemeWin.h:
1722
1723 2009-11-24  Darin Fisher  <darin@chromium.org>
1724
1725         Reviewed by Adam Barth.
1726
1727         [Chromium] Renderer hang when using www.expedia.com
1728         https://bugs.webkit.org/show_bug.cgi?id=31822
1729
1730         Test: http/tests/cache/subresource-failover-to-network.html
1731
1732         * loader/FrameLoader.cpp:
1733         (WebCore::FrameLoader::loadResourceSynchronously): Use the originalRequest
1734         when inheriting cache policy.  This matches SubresourceLoader::create.
1735
1736 2009-11-23  Kenneth Russell  <kbr@google.com>
1737
1738         Reviewed by Oliver Hunt.
1739
1740         Change get... calls to latest spec
1741         https://bugs.webkit.org/show_bug.cgi?id=30091
1742
1743         Removed old versions of get calls on WebGLRenderingContext and
1744         added new ones per spec returning "any". New code simplifies
1745         GraphicsContext3D and fixes previously unimplemented routines.
1746         Added custom JS and V8 bindings. Added exhaustive test case
1747         exercising all new code paths. Updated preexisting test cases for
1748         new APIs. Fixed preexisting bugs in WebKit's and Chrome's WebGL
1749         implementations.
1750
1751         Ran WebGL layout tests in WebKit (clean) and Chrome (couple of
1752         preexisting known failures) and manual WebGL tests in both
1753         browsers.
1754
1755         Test: fast/canvas/webgl/gl-object-get-calls.html
1756
1757         * WebCore.gypi:
1758         * WebCore.xcodeproj/project.pbxproj:
1759         * bindings/js/JSWebGLRenderingContextCustom.cpp:
1760         (WebCore::toJS):
1761         (WebCore::):
1762         (WebCore::getObjectParameter):
1763         (WebCore::getProgramParameterHelper):
1764         (WebCore::JSWebGLRenderingContext::getBufferParameter):
1765         (WebCore::JSWebGLRenderingContext::getFramebufferAttachmentParameter):
1766         (WebCore::JSWebGLRenderingContext::getParameter):
1767         (WebCore::JSWebGLRenderingContext::getProgramParameter):
1768         (WebCore::JSWebGLRenderingContext::getRenderbufferParameter):
1769         (WebCore::JSWebGLRenderingContext::getShaderParameter):
1770         (WebCore::JSWebGLRenderingContext::getTexParameter):
1771         (WebCore::JSWebGLRenderingContext::getUniform):
1772         (WebCore::JSWebGLRenderingContext::getVertexAttrib):
1773         * bindings/v8/custom/V8CustomBinding.h:
1774         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1775         (WebCore::toV8):
1776         (WebCore::):
1777         (WebCore::getObjectParameter):
1778         (WebCore::getProgramParameter):
1779         (WebCore::CALLBACK_FUNC_DECL):
1780         * html/canvas/CanvasObject.cpp:
1781         (WebCore::CanvasObject::CanvasObject):
1782         (WebCore::CanvasObject::setObject):
1783         (WebCore::CanvasObject::deleteObject):
1784         * html/canvas/CanvasObject.h:
1785         * html/canvas/WebGLBuffer.cpp:
1786         (WebCore::WebGLBuffer::create):
1787         (WebCore::WebGLBuffer::WebGLBuffer):
1788         * html/canvas/WebGLBuffer.h:
1789         * html/canvas/WebGLGetInfo.cpp: Added.
1790         (WebCore::WebGLGetInfo::WebGLGetInfo):
1791         (WebCore::WebGLGetInfo::~WebGLGetInfo):
1792         (WebCore::WebGLGetInfo::getType):
1793         (WebCore::WebGLGetInfo::getBool):
1794         (WebCore::WebGLGetInfo::getFloat):
1795         (WebCore::WebGLGetInfo::getLong):
1796         (WebCore::WebGLGetInfo::getString):
1797         (WebCore::WebGLGetInfo::getUnsignedLong):
1798         (WebCore::WebGLGetInfo::getWebGLBuffer):
1799         (WebCore::WebGLGetInfo::getWebGLFloatArray):
1800         (WebCore::WebGLGetInfo::getWebGLFramebuffer):
1801         (WebCore::WebGLGetInfo::getWebGLIntArray):
1802         (WebCore::WebGLGetInfo::getWebGLProgram):
1803         (WebCore::WebGLGetInfo::getWebGLRenderbuffer):
1804         (WebCore::WebGLGetInfo::getWebGLTexture):
1805         (WebCore::WebGLGetInfo::getWebGLUnsignedByteArray):
1806         * html/canvas/WebGLGetInfo.h: Added.
1807         (WebCore::WebGLGetInfo::):
1808         * html/canvas/WebGLRenderbuffer.cpp:
1809         (WebCore::WebGLRenderbuffer::create):
1810         (WebCore::WebGLRenderbuffer::WebGLRenderbuffer):
1811         * html/canvas/WebGLRenderbuffer.h:
1812         * html/canvas/WebGLRenderingContext.cpp:
1813         (WebCore::WebGLStateRestorer::WebGLStateRestorer):
1814         (WebCore::WebGLStateRestorer::~WebGLStateRestorer):
1815         (WebCore::WebGLRenderingContext::WebGLRenderingContext):
1816         (WebCore::WebGLRenderingContext::activeTexture):
1817         (WebCore::WebGLRenderingContext::bindBuffer):
1818         (WebCore::WebGLRenderingContext::bindFramebuffer):
1819         (WebCore::WebGLRenderingContext::bindRenderbuffer):
1820         (WebCore::WebGLRenderingContext::bindTexture):
1821         (WebCore::WebGLRenderingContext::getBufferParameter):
1822         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
1823         (WebCore::WebGLRenderingContext::getParameter):
1824         (WebCore::WebGLRenderingContext::getProgramParameter):
1825         (WebCore::WebGLRenderingContext::getProgramInfoLog):
1826         (WebCore::WebGLRenderingContext::getRenderbufferParameter):
1827         (WebCore::WebGLRenderingContext::getShaderParameter):
1828         (WebCore::WebGLRenderingContext::getShaderInfoLog):
1829         (WebCore::WebGLRenderingContext::getShaderSource):
1830         (WebCore::WebGLRenderingContext::getString):
1831         (WebCore::WebGLRenderingContext::getTexParameter):
1832         (WebCore::WebGLRenderingContext::getUniform):
1833         (WebCore::WebGLRenderingContext::getVertexAttrib):
1834         (WebCore::WebGLRenderingContext::useProgram):
1835         (WebCore::WebGLRenderingContext::getBooleanParameter):
1836         (WebCore::WebGLRenderingContext::getFloatParameter):
1837         (WebCore::WebGLRenderingContext::getIntParameter):
1838         (WebCore::WebGLRenderingContext::getLongParameter):
1839         (WebCore::WebGLRenderingContext::getUnsignedLongParameter):
1840         (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
1841         (WebCore::WebGLRenderingContext::getWebGLIntArrayParameter):
1842         (WebCore::WebGLRenderingContext::getWebGLUnsignedByteArrayParameter):
1843         * html/canvas/WebGLRenderingContext.h:
1844         * html/canvas/WebGLRenderingContext.idl:
1845         * html/canvas/WebGLTexture.cpp:
1846         (WebCore::WebGLTexture::create):
1847         (WebCore::WebGLTexture::WebGLTexture):
1848         * html/canvas/WebGLTexture.h:
1849         * manual-tests/webgl/resources/utils3d.js:
1850         (initWebGL):
1851         (loadShader):
1852         (Framerate.prototype.snapshot):
1853         * platform/graphics/GraphicsContext3D.h:
1854         * platform/graphics/mac/GraphicsContext3DMac.cpp:
1855         (WebCore::GraphicsContext3D::bindRenderbuffer):
1856         (WebCore::GraphicsContext3D::getBooleanv):
1857         (WebCore::GraphicsContext3D::getBufferParameteriv):
1858         (WebCore::GraphicsContext3D::getFloatv):
1859         (WebCore::GraphicsContext3D::getFramebufferAttachmentParameteriv):
1860         (WebCore::GraphicsContext3D::getIntegerv):
1861         (WebCore::GraphicsContext3D::getProgramiv):
1862         (WebCore::GraphicsContext3D::getRenderbufferParameteriv):
1863         (WebCore::GraphicsContext3D::getShaderiv):
1864         (WebCore::GraphicsContext3D::getTexParameterfv):
1865         (WebCore::GraphicsContext3D::getTexParameteriv):
1866         (WebCore::GraphicsContext3D::getUniformfv):
1867         (WebCore::GraphicsContext3D::getUniformiv):
1868         (WebCore::GraphicsContext3D::getVertexAttribfv):
1869         (WebCore::GraphicsContext3D::getVertexAttribiv):
1870
1871 2009-11-24  Steve Falkenburg  <sfalken@apple.com>
1872
1873         Windows build fix.
1874
1875         * WebCore.vcproj/QTMovieWin.vcproj: Add additional search path for QuickTime SDK.
1876
1877 2009-11-24  Philippe Normand  <pnormand@igalia.com>
1878
1879         Reviewed by Gustavo Noronha Silva.
1880
1881         [Gtk] GStreamer-CRITICAL's (and other warnings) on <video>
1882         https://bugs.webkit.org/show_bug.cgi?id=26354
1883
1884         Implemented MediaPlayerPrivate::isAvailable by checking the
1885         presence of the playbin2 GStreamer element.
1886
1887         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1888         (WebCore::MediaPlayerPrivate::isAvailable):
1889         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
1890
1891 2009-11-24  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1892
1893         Reviewed by Xan Lopez.
1894
1895         https://bugs.webkit.org/show_bug.cgi?id=25415
1896         [GTK][ATK] Please implement support for get_text_at_offset
1897
1898         When building up the pango layout from text boxes, only append a
1899         newline char after verifying there are no more boxes on this line.
1900
1901         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1902         (getPangoLayoutForAtk):
1903
1904 2009-11-24  Joseph Pecoraro  <joepeck@webkit.org>
1905
1906         Reviewed by Pavel Feldman.
1907
1908         Web Inspector: Keyboard Shortcut to Clear Console Messages
1909         https://bugs.webkit.org/show_bug.cgi?id=31780
1910
1911         All Platforms:  Ctrl+L  = Clear Console Messages
1912         Mac Only:       Cmd+K   = Clear Console Messages
1913
1914         * inspector/front-end/ConsoleView.js:
1915         (WebInspector.ConsoleView): create shortcuts
1916         (WebInspector.ConsoleView.prototype._promptKeyDown): handle shortcuts
1917         * inspector/front-end/KeyboardShortcut.js:
1918         (WebInspector.KeyboardShortcut.makeKey): convenience conversion of "a-z" character to keyCode
1919         * inspector/front-end/ScriptsPanel.js:
1920         (WebInspector.ScriptsPanel): style fixes for keyboard shortcuts
1921
1922 2009-11-24  Pavel Feldman  <pfeldman@chromium.org>
1923
1924         Not reviewed: touch inspector controller in order to
1925         kick win bot inspector deploy. rs=aroben.
1926
1927         * inspector/InspectorController.cpp:
1928
1929 2009-11-23  Pavel Feldman  <pfeldman@chromium.org>
1930
1931         Reviewed by Timothy Hatcher.
1932
1933         Web Inspector: Implement expandable compartments on timeline panel.
1934
1935         https://bugs.webkit.org/show_bug.cgi?id=31796
1936
1937         * inspector/front-end/TimelineOverviewPane.js:
1938         (WebInspector.TimelineOverviewPane.prototype._setWindowPosition):
1939         * inspector/front-end/TimelinePanel.js:
1940         (WebInspector.TimelinePanel):
1941         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
1942         (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
1943         (WebInspector.TimelinePanel.prototype._formatRecord):
1944         (WebInspector.TimelinePanel.prototype._refreshRecords):
1945         (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
1946         (WebInspector.TimelineRecordListRow):
1947         (WebInspector.TimelineRecordListRow.prototype.update):
1948         (WebInspector.TimelineRecordListRow.prototype.dispose):
1949         (WebInspector.TimelineRecordGraphRow):
1950         (WebInspector.TimelineRecordGraphRow.prototype.update):
1951         (WebInspector.TimelineRecordGraphRow.prototype._onClick):
1952         (WebInspector.TimelineRecordGraphRow.prototype.dispose):
1953         * inspector/front-end/inspector.css:
1954
1955 2009-11-24  Mark Rowe  <mrowe@apple.com>
1956
1957         Fix production builds where the source tree may be read-only.
1958
1959         * WebCore.xcodeproj/project.pbxproj:
1960
1961 2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1962
1963         Reviewed by Kenneth Rohde Christiansen.
1964
1965         Include "config.h" to meet Coding Style Guidelines
1966         https://bugs.webkit.org/show_bug.cgi?id=31792
1967
1968         No new tests as there is no new functionality.
1969
1970         * platform/graphics/win/IntPointWin.cpp:
1971         * platform/graphics/win/IntRectWin.cpp:
1972         * platform/graphics/win/IntSizeWin.cpp:
1973         * platform/network/chromium/ResourceRequest.cpp:
1974         * platform/win/PlatformMouseEventWin.cpp:
1975
1976 2009-11-23  Jian Li  <jianli@chromium.org>
1977
1978         Reviewed by NOBODY (Chromium build fix).
1979
1980         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1981         (WebCore::CALLBACK_FUNC_DECL):
1982         * platform/graphics/GraphicsContext3D.h:
1983
1984 2009-11-23  Aaron Golden  <agolden@apple.com>
1985
1986         Reviewed by Alexey Proskuryakov.
1987
1988         Prevent ResourceHandleMac's version of ResourceHandle::receivedCredential from stripping
1989         identity and certificate information from a WebCore::Credential when receivedCredential
1990         needs to modify the credential's persistence.
1991
1992         Adding a new constructor Credential(const Credential& original, CredentialPersistence)
1993         that copies every field from original except for persistence.
1994
1995         * platform/network/Credential.cpp:
1996         (WebCore::Credential::Credential):
1997         * platform/network/Credential.h:
1998         * platform/network/mac/ResourceHandleMac.mm:
1999         (WebCore::ResourceHandle::receivedCredential):
2000
2001 2009-11-23  Gavin Barraclough  <barraclough@apple.com>
2002
2003         Reviewed by Geoff Garen.
2004
2005         Part 2/3 of <rdar://problem/7377477> REGRESSION: Many web pages fail to render after interesting script runs in isolated world
2006
2007         Some clients of the JavaScriptCore API expect to be able to make callbacks over the JSC API,
2008         and for this to automagically cause execution to take place in the world associated with the
2009         global object associated with the ExecState (JSContextRef) passed.  However this is not how
2010         things work - the world must be explicitly set within WebCore.
2011
2012         Making this work just for API calls to evaluate & call will be a far from perfect solution,
2013         since direct (non-API) use of JSC still relies on WebCore setting the current world correctly.
2014         A better solution would be to make this all work automagically all throughout WebCore, but this
2015         will require more refactoring.
2016
2017         Add references from the JSDOMWindowShell and the JSDOMGlobalObject to the world that owns them,
2018         so that we can get to the world from the lexical global object of an ExecState.  In the long-term
2019         we should switch over to using this approach for all cases we want to get a world from an exec state.
2020
2021         * bindings/js/JSDOMBinding.cpp:
2022         (WebCore::WebCoreJSClientData::beginningExecution):
2023         (WebCore::WebCoreJSClientData::completedExecution):
2024         * bindings/js/JSDOMBinding.h:
2025         * bindings/js/JSDOMGlobalObject.h:
2026         (WebCore::JSDOMGlobalObject::world):
2027         (WebCore::JSDOMGlobalObject::JSDOMGlobalObjectData::JSDOMGlobalObjectData):
2028         * bindings/js/JSDOMWindowBase.cpp:
2029         (WebCore::JSDOMWindowBase::JSDOMWindowBaseData::JSDOMWindowBaseData):
2030         * bindings/js/JSDOMWindowBase.h:
2031         * bindings/js/JSDOMWindowShell.cpp:
2032         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
2033         * bindings/js/JSDOMWindowShell.h:
2034         (WebCore::JSDOMWindowShell::world):
2035         * bindings/js/JSWorkerContextBase.cpp:
2036         (WebCore::JSWorkerContextBase::JSWorkerContextBase):
2037         * bindings/js/ScriptController.cpp:
2038         (WebCore::ScriptController::initScript):
2039
2040 2009-11-23  Chris Marrin  <cmarrin@apple.com>
2041
2042         Reviewed by Oliver Hunt.
2043
2044         Add range checks to rendering calls in WebGL
2045         https://bugs.webkit.org/show_bug.cgi?id=31239
2046
2047         I am now tracking the size of the data in each CanvasBuffer object
2048         and keeping track of the buffer size of each active vertex attrib.
2049         In drawArrays and drawElements I make sure no attempt is made to
2050         access elements outside the valid buffer ranges. The test at:
2051
2052             http://cs.helsinki.fi/u/ilmarihe/c3d/functions/drawArraysOutOfBounds.html
2053
2054         no longer crashes.
2055
2056         I also added all the WebGL enumerations to GraphicsContext3D to use them in the validation checks
2057
2058         Tests: fast/canvas/webgl/drawArraysOutOfBounds.html
2059                fast/canvas/webgl/drawElementssOutOfBounds.html
2060
2061         * bindings/js/JSWebGLArrayCustom.cpp:
2062         (WebCore::toJS):
2063         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2064         (WebCore::JSWebGLRenderingContext::bufferData):
2065         (WebCore::JSWebGLRenderingContext::bufferSubData):
2066         (WebCore::JSWebGLRenderingContext::texSubImage2D):
2067         * html/canvas/WebGLArrayBuffer.cpp:
2068         (WebCore::WebGLArrayBuffer::create):
2069         (WebCore::WebGLArrayBuffer::data):
2070         * html/canvas/WebGLArrayBuffer.h:
2071         * html/canvas/WebGLBuffer.cpp:
2072         (WebCore::WebGLBuffer::WebGLBuffer):
2073         (WebCore::WebGLBuffer::associateBufferData):
2074         (WebCore::WebGLBuffer::associateBufferSubData):
2075         (WebCore::WebGLBuffer::byteLength):
2076         * html/canvas/WebGLBuffer.h:
2077         (WebCore::WebGLBuffer::elementArrayBuffer):
2078         * html/canvas/WebGLRenderingContext.cpp:
2079         (WebCore::WebGLRenderingContext::WebGLRenderingContext):
2080         (WebCore::WebGLRenderingContext::sizeInBytes):
2081         (WebCore::WebGLRenderingContext::bindBuffer):
2082         (WebCore::WebGLRenderingContext::bufferData):
2083         (WebCore::WebGLRenderingContext::bufferSubData):
2084         (WebCore::WebGLRenderingContext::createShader):
2085         (WebCore::WebGLRenderingContext::disableVertexAttribArray):
2086         (WebCore::WebGLRenderingContext::validateIndexArray):
2087         (WebCore::WebGLRenderingContext::validateRenderingState):
2088         (WebCore::WebGLRenderingContext::drawArrays):
2089         (WebCore::WebGLRenderingContext::drawElements):
2090         (WebCore::WebGLRenderingContext::enableVertexAttribArray):
2091         (WebCore::WebGLRenderingContext::isFramebuffer):
2092         (WebCore::WebGLRenderingContext::isProgram):
2093         (WebCore::WebGLRenderingContext::isRenderbuffer):
2094         (WebCore::WebGLRenderingContext::isShader):
2095         (WebCore::WebGLRenderingContext::isTexture):
2096         (WebCore::WebGLRenderingContext::useProgram):
2097         (WebCore::WebGLRenderingContext::validateProgram):
2098         (WebCore::WebGLRenderingContext::vertexAttribPointer):
2099         (WebCore::WebGLRenderingContext::detachAndRemoveAllObjects):
2100         * html/canvas/WebGLRenderingContext.h:
2101         (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
2102         * html/canvas/WebGLRenderingContext.idl:
2103         * html/canvas/WebGLShader.cpp:
2104         (WebCore::WebGLShader::create):
2105         (WebCore::WebGLShader::WebGLShader):
2106         * html/canvas/WebGLShader.h:
2107         * platform/graphics/GraphicsContext3D.h:
2108         (WebCore::GraphicsContext3D::):
2109         * platform/graphics/mac/GraphicsContext3DMac.cpp:
2110         (WebCore::GraphicsContext3D::createShader):
2111
2112 2009-11-23  Erik Arvidsson  <arv@chromium.org>
2113
2114         Reviewed by Eric Seidel.
2115
2116         JSC bindings for HasIndexGetter generates incorrect code (affects
2117         MediaList and CSSStyleDeclaration).
2118         This cleans up the edge cases for indexing out of range for style and
2119         computed style objects to return an empty string according to the spec.
2120         MediaList now returns null when indexed out of range.
2121         https://bugs.webkit.org/show_bug.cgi?id=31683
2122
2123         Tests: fast/dom/CSSStyleDeclaration/css-computed-style-item.html
2124                fast/dom/CSSStyleDeclaration/css-style-item.html
2125                fast/dom/StyleSheet/css-medialist-item.html
2126
2127         * bindings/scripts/CodeGeneratorJS.pm: If IndexGetterReturnsString then
2128                 we do not check the length before calling the item function.
2129         * css/CSSComputedStyleDeclaration.cpp:
2130         (WebCore::CSSComputedStyleDeclaration::item):
2131         * css/CSSMutableStyleDeclaration.cpp:
2132         (WebCore::CSSMutableStyleDeclaration::item):
2133         * css/CSSStyleDeclaration.idl:
2134
2135 2009-11-23  Simon Fraser  <simon.fraser@apple.com>
2136
2137         Reviewed by Dan Bernstein.
2138
2139         DocumentMarkers need to be educated about transforms
2140         https://bugs.webkit.org/show_bug.cgi?id=31751
2141         
2142         Find highlight is incorrect with transforms
2143         <rdar://problem/6358394>
2144
2145         Allow callers to specify that Frame::selectionTextRects() takes transforms into account
2146         when computing the set of rects that encompass a selection. For transformed elemenets, the
2147         selection rect will be the bounding box of the selected content.
2148         
2149         Fix DocumentMarkers to cache rects in absolute coordinates, rather than painting coordinates.
2150         
2151         Test: editing/selection/transformed-selection-rects.html
2152         
2153         * WebCore.base.exp:
2154         Frame::selectionTextRects() has a new parameter.
2155         
2156         * dom/Document.cpp:
2157         (WebCore::Document::setRenderedRectForMarker):
2158         * dom/Document.h:
2159         Pass the marker as a const reference.
2160         
2161         * dom/Range.h:
2162         * dom/Range.cpp:
2163         (WebCore::Range::textQuads):
2164         Add a new method, textQuads(), which returns a list of quads, respecting transforms.
2165         
2166         * page/Frame.h:
2167         * page/Frame.cpp:
2168         (WebCore::Frame::selectionTextRects):
2169         Add a new parameter, respectTransforms, and when that is RespectTransforms, use the quad
2170         method to get quads for ranges, and then take their bounding boxes.
2171
2172         * rendering/InlineTextBox.h:
2173         * rendering/InlineTextBox.cpp:
2174         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
2175         (WebCore::InlineTextBox::paintTextMatchMarker):
2176         (WebCore::InlineTextBox::computeRectForReplacementMarker):
2177         (WebCore::InlineTextBox::paintDocumentMarkers):
2178         (WebCore::InlineTextBox::textPos):
2179         (WebCore::InlineTextBox::offsetForPosition):
2180         
2181         Pass DocumentMarkers as a const references.
2182         Convert the argument to setRenderedRectForMarker() into absolute coordinates.
2183         
2184         * rendering/RenderView.cpp:
2185         (WebCore::RenderView::selectionBounds):
2186
2187 2009-11-23  Dirk Schulze  <krit@webkit.org>
2188
2189         Reviewed by Oliver Hunt.
2190
2191         [Cairo] support blurred test-shadow
2192         [https://bugs.webkit.org/show_bug.cgi?id=31797]
2193
2194         Support for blurred text-shadows on Cairo. This patch
2195         reuses the code of blurred box-shadows, introduced in
2196         bug 26102. For a full textshadow support, a filters enabled
2197         build is needed.
2198
2199         * platform/graphics/cairo/FontCairo.cpp:
2200         (WebCore::Font::drawGlyphs):
2201
2202 2009-11-23  Jens Alfke  <snej@chromium.org>
2203
2204         Reviewed by Geoffrey Garen.
2205
2206         Change incorrect calls to the constructor "EventNames()" to the correct accessor
2207         "eventNames()". This saves ~100 AtomicString lookups each time.
2208         https://bugs.webkit.org/show_bug.cgi?id=31811
2209
2210         * dom/EventNames.h:  Make constructor private to prevent this from happening again.
2211         * history/CachedFrame.cpp:
2212         (WebCore::CachedFrameBase::restore):  EventNames() --> eventNames()
2213         * html/HTMLFormControlElement.cpp:
2214         (WebCore::HTMLFormControlElement::checkValidity):  EventNames() --> eventNames()
2215         * loader/FrameLoader.cpp:
2216         (WebCore::FrameLoader::stopLoading):  EventNames() --> eventNames()
2217         (WebCore::FrameLoader::pageHidden):  EventNames() --> eventNames()
2218         * page/DOMWindow.cpp:
2219         (WebCore::DOMWindow::dispatchAllPendingUnloadEvents):  EventNames() --> eventNames()
2220
2221 2009-11-23  Adam Langley  <agl@google.com>
2222
2223         Reviewed by Dmitry Titov.
2224
2225         Chromium Linux: Limit the stroke width and mitre limit.
2226
2227         Limit the stroke width and mitre limit that we'll pass into Skia to
2228         avoid overflowing Skia's uint16_t glyph widths.
2229
2230         http://code.google.com/p/chromium/issues/detail?id=28250
2231         https://bugs.webkit.org/show_bug.cgi?id=31747
2232
2233         * platform/graphics/skia/PlatformContextSkia.cpp:
2234         (scalarBound):
2235         (PlatformContextSkia::setupPaintForStroking):
2236
2237 2009-11-23  Alexey Proskuryakov  <ap@apple.com>
2238
2239         Reviewed by Oliver Hunt.
2240
2241         https://bugs.webkit.org/show_bug.cgi?id=31812
2242         WebSocket code uses RefPtr::get() where it shouldn't
2243
2244         No change in funcitonality, just coding style correction.
2245
2246         * websockets/WebSocket.cpp:
2247         (WebCore::WebSocket::~WebSocket):
2248         * websockets/WebSocketChannel.cpp:
2249         (WebCore::WebSocketChannel::connect):
2250         (WebCore::WebSocketChannel::send):
2251         (WebCore::WebSocketChannel::bufferedAmount):
2252         (WebCore::WebSocketChannel::close):
2253         (WebCore::WebSocketChannel::disconnect):
2254         (WebCore::WebSocketChannel::didOpen):
2255         (WebCore::WebSocketChannel::didClose):
2256         (WebCore::WebSocketChannel::didReceiveData):
2257         (WebCore::WebSocketChannel::didFail):
2258
2259 2009-11-23  Alexey Proskuryakov  <ap@apple.com>
2260
2261         Build fix.
2262
2263         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2264         (WebCore::SocketStreamHandle::pacExecutionCallbackMainThread): pacExecutionCallbackMainThread
2265         is static, so it can't use member variables directly.
2266
2267 2009-11-23  Alexey Proskuryakov  <ap@apple.com>
2268
2269         Reviewed by Brady Eidson.
2270
2271         https://bugs.webkit.org/show_bug.cgi?id=31748
2272         Make WebSocketHandleCFNet respect proxy auto-configuration files via CFProxySupport
2273
2274         * platform/network/cf/SocketStreamHandle.h: Removed names from some void* arguments, since
2275         they didn't carry useful information.
2276
2277         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2278         (WebCore::SocketStreamHandle::SocketStreamHandle): When we need an http-style URL, we actually
2279         always need https.
2280         (WebCore::SocketStreamHandle::scheduleStreams): Factored out from constructor, since streams
2281         only get scheduled after PAC is fetched and executed asynchronously.
2282         (WebCore::SocketStreamHandle::copyPACExecutionDescription): Return a description for event
2283         source.
2284         (WebCore::MainThreadPACCallbackInfo::MainThreadPACCallbackInfo): Forward callback to main thread.
2285         (WebCore::SocketStreamHandle::pacExecutionCallback): Ditto.
2286         (WebCore::SocketStreamHandle::pacExecutionCallbackMainThread): Ditto. To avoid code duplication,
2287         we make the call even on Mac.
2288         (WebCore::SocketStreamHandle::executePACFileURL): Make an async call to CFNetworkExecuteProxyAutoConfigurationURL.
2289         (WebCore::SocketStreamHandle::removePACRunLoopSource): Once PAC execution is done or aborted,
2290         we need to get rid of the event source.
2291         (WebCore::SocketStreamHandle::chooseProxy): Use stored m_httpsURL.get.
2292         (WebCore::SocketStreamHandle::chooseProxyFromArray): Factored out from chooseProxy - the
2293         array may come directly from system configuration, or from PAC.
2294         (WebCore::SocketStreamHandle::chooseProxy): Tiger version of this function is now completely
2295         separate.
2296         (WebCore::SocketStreamHandle::~SocketStreamHandle): Run loop source should be destroyed
2297         before we get to the destructor.
2298         (WebCore::SocketStreamHandle::platformClose): Destroy the run loop source, if PAC execution
2299         is still in progress.
2300
2301 2009-11-23  Oliver Hunt  <oliver@apple.com>
2302
2303         Reviewed by Geoff Garen.
2304
2305         Don't leak the CGImage we create when drawing a sub image.
2306
2307         * platform/graphics/cg/ImageCG.cpp:
2308         (WebCore::BitmapImage::draw):
2309
2310 2009-11-23  Adam Barth  <abarth@webkit.org>
2311
2312         Reviewed by Dimitri Glazkov.
2313
2314         [V8] Don't crash when OOM in creating isolated world
2315         https://bugs.webkit.org/show_bug.cgi?id=31805
2316
2317         We need to add some more null checks to avoid crashing.  No new tests
2318         because we don't have a good way to test out-of-memory bugs.
2319
2320         * bindings/v8/V8Proxy.cpp:
2321         (WebCore::V8Proxy::evaluateInIsolatedWorld):
2322         (WebCore::V8Proxy::evaluateInNewContext):
2323         (WebCore::V8Proxy::setInjectedScriptContextDebugId):
2324         * bindings/v8/V8Proxy.h:
2325
2326 2009-11-23  Dirk Schulze  <krit@webkit.org>
2327
2328         Reviewed by Nikolas Zimmermann.
2329
2330         This is the implementation of the filterRes attribute. It
2331         helps the SVG developer to set the quality of a filter by
2332         giving the width or height of filter.
2333         This patch also sets the filter resolution to lower values
2334         if a intermediate ImageBuffer size is bigger than the given
2335         maximal size.
2336         The maximal size is set to 5000x5000 by default. This is a
2337         subjectiv decission. Everthing greater than this values gets
2338         sensible slower. Values of 10000x10000 crashed on WebKitGtk.
2339         For mobil devices a maximum size of 100x100 or 200x200 seems
2340         to be reasonable.
2341         The important fact on filter resolution is, that the output
2342         size is still the size given by the <filter> element.
2343
2344         Tests: svg/filters/big-sized-filter-2.svg
2345                svg/filters/big-sized-filter.svg
2346                svg/filters/filterRes.svg
2347
2348         * platform/graphics/FloatRect.cpp:
2349         (WebCore::FloatRect::scale): Add the abbility to scale a rect by x and y.
2350         * platform/graphics/FloatRect.h:
2351         (WebCore::FloatRect::scale): Add the abbility to scale a rect by x and y.
2352         * platform/graphics/cairo/GraphicsContextCairo.cpp:
2353         (WebCore::GraphicsContext::createPlatformShadow): Use scaledSubRegion for
2354         calculation.
2355         * platform/graphics/filters/FEBlend.cpp:
2356         (WebCore::FEBlend::apply): Use scaledSubRegion for effect intern calculations.
2357         * platform/graphics/filters/FEColorMatrix.cpp:
2358         (WebCore::FEColorMatrix::apply): Use scaledSubRegion for effect intern calculations.
2359         * platform/graphics/filters/FEComponentTransfer.cpp:
2360         (WebCore::FEComponentTransfer::apply): Use scaledSubRegion for effect intern
2361         calculations.
2362         * platform/graphics/filters/FEComposite.cpp:
2363         (WebCore::FEComposite::apply): Use scaledSubRegion for effect intern calculations.
2364         * platform/graphics/filters/FEGaussianBlur.cpp:
2365         (WebCore::FEGaussianBlur::apply): Use scaledSubRegion for effect intern calculations.
2366         * platform/graphics/filters/Filter.h: Add the abbility to change the quality
2367         of a filter output.
2368         (WebCore::Filter::filterResolution):
2369         (WebCore::Filter::setFilterResolution):
2370         (WebCore::Filter::calculateEffectSubRegion): Calculates the correct subRegion
2371         as well as the scaledSubRegion. It also searches for the biggest effect size.
2372         We have to change the filter resolution, if one intermediate ImageBuffer size
2373         doesn't fit in the maximal image size.
2374         * platform/graphics/filters/FilterEffect.cpp:
2375         (WebCore::FilterEffect::calculateDrawingIntRect): Use scaledSubRegion to get
2376         the right part of a previous effect result.
2377         (WebCore::FilterEffect::calculateDrawingRect): Use scaledSubRegion to get
2378         the right part of a previous effect result.
2379         (WebCore::FilterEffect::getEffectContext): Use scaledSubRegion to create
2380         a new intermediate ImageBuffer for the result of the current effect.
2381         * platform/graphics/filters/FilterEffect.h:
2382         (WebCore::FilterEffect::scaledSubRegion): The scaled subRegion of a the
2383         filter effect.
2384         (WebCore::FilterEffect::setScaledSubRegion):
2385         (WebCore::FilterEffect::effectBoundaries): The original values of the
2386         EffectElement for a second subRegion calculation.
2387         (WebCore::FilterEffect::setEffectBoundaries):
2388         * platform/graphics/filters/ImageBufferFilter.cpp:
2389         (WebCore::ImageBufferFilter::ImageBufferFilter): Set the scale factor to one.
2390         * platform/graphics/filters/ImageBufferFilter.h:
2391         (WebCore::ImageBufferFilter::maxImageSize):
2392         (WebCore::ImageBufferFilter::calculateEffectSubRegion):
2393         * platform/graphics/filters/SourceAlpha.cpp:
2394         (WebCore::SourceAlpha::calculateEffectRect): Use scaledSubRegion for effect
2395         intern calculations.
2396         * platform/graphics/filters/SourceGraphic.cpp:
2397         (WebCore::SourceGraphic::calculateEffectRect): Use scaledSubRegion for effect
2398         intern calculations.
2399         * svg/SVGFilterElement.cpp:
2400         (WebCore::SVGFilterElement::parseMappedAttribute): Parse filterRes attribute.
2401         (WebCore::SVGFilterElement::buildFilter): Give SVGResourceFilter the current
2402         filterResolution.
2403         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2404         (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes): Save
2405         values to effectBoundaries of the filter effect
2406         * svg/graphics/SVGResourceFilter.cpp:
2407         (WebCore::SVGResourceFilter::SVGResourceFilter):
2408         (WebCore::shouldProcessFilter): Return signal if a neccessary value is zero.
2409         (WebCore::SVGResourceFilter::fitsInMaximumImageSize): Checks if the given size
2410         fits into the maximal image size, modifys scale factors if not and return a
2411         bool: fits.
2412         (WebCore::SVGResourceFilter::prepareFilter): Scale the SourceImage to
2413         filterResolution (given by FilterElement or calculated on to big image sizes).
2414         Set the scale level to SVGFilter.
2415         (WebCore::SVGResourceFilter::applyFilter): Don't apply filters if shouldProcessFilter
2416         is wrong.
2417         * svg/graphics/SVGResourceFilter.h:
2418         (WebCore::SVGResourceFilter::setFilterResolution): FilterResolution of FilterElement.
2419         (WebCore::SVGResourceFilter::setHasFilterResolution): Does FilterElement provides
2420         a FilterResolution?
2421         (WebCore::SVGResourceFilter::scaleX): Current scale factor for horizontal.
2422         (WebCore::SVGResourceFilter::scaleY): Current scale factor for vertical.
2423         * svg/graphics/filters/SVGFEDisplacementMap.cpp:
2424         (WebCore::FEDisplacementMap::apply): Use scaledSubRegion for effect intern calculations.
2425         Kernel values are scaled to current filter resolution too.
2426         * svg/graphics/filters/SVGFEFlood.cpp:
2427         (WebCore::FEFlood::apply): Use scaledSubRegion for effect intern calculations.
2428         * svg/graphics/filters/SVGFEMerge.cpp:
2429         (WebCore::FEMerge::apply): Use scaledSubRegion for effect intern calculations.
2430         Kernel values are scaled to current filter resolution too.
2431         * svg/graphics/filters/SVGFEMorphology.cpp:
2432         (WebCore::FEMorphology::apply): Use scaledSubRegion for effect intern calculations.
2433         Kernel values are scaled to current filter resolution too.
2434         * svg/graphics/filters/SVGFEOffset.cpp:
2435         (WebCore::FEOffset::apply): Use scaledSubRegion for effect intern calculations.
2436         * svg/graphics/filters/SVGFETile.cpp:
2437         (WebCore::FETile::apply): Use scaledSubRegion for effect intern calculations.
2438         * svg/graphics/filters/SVGFilter.cpp:
2439         (WebCore::SVGFilter::calculateEffectSubRegion): Calculate subRegion for LayoutTests,
2440         scaledSubRegion according to the current filterResolution and get the maximal image size.
2441         * svg/graphics/filters/SVGFilter.h:
2442         (WebCore::SVGFilter::effectBoundingBoxMode): Original values of the FilterElement. 
2443         (WebCore::SVGFilter::filterRegion): Use virtual for clarification.
2444         (WebCore::SVGFilter::sourceImageRect): Use virtual for clarification.
2445         (WebCore::SVGFilter::maxImageSize): Get the maximal image size.
2446
2447 2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
2448
2449         Reviewed by Kenneth Rohde Christiansen.
2450
2451         [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
2452         the wrapped object died before the gc removed the instance.
2453
2454         https://bugs.webkit.org/show_bug.cgi?id=31681
2455
2456         Before using a cached instance, verify that its wrapped QObject is
2457         still alive.
2458
2459         * bridge/qt/qt_instance.cpp:
2460         (JSC::Bindings::QtInstance::getQtInstance):
2461         * bridge/qt/qt_instance.h:
2462         (JSC::Bindings::QtInstance::hashKey):
2463
2464 2009-11-22  Chris Fleizach  <cfleizach@apple.com>
2465
2466         Reviewed by Oliver Hunt.
2467
2468         ARIA: support aria-flowto
2469         https://bugs.webkit.org/show_bug.cgi?id=31762
2470
2471         Test: platform/mac/accessibility/aria-flowto.html
2472
2473         * accessibility/AccessibilityObject.h:
2474         (WebCore::AccessibilityObject::ariaOwnsElements):
2475         (WebCore::AccessibilityObject::supportsARIAFlowTo):
2476         (WebCore::AccessibilityObject::ariaFlowToElements):
2477         * accessibility/AccessibilityRenderObject.cpp:
2478         (WebCore::AccessibilityRenderObject::linkedUIElements):
2479         (WebCore::AccessibilityRenderObject::supportsARIAFlowTo):
2480         (WebCore::AccessibilityRenderObject::ariaFlowToElements):
2481         * accessibility/AccessibilityRenderObject.h:
2482         * html/HTMLAttributeNames.in:
2483
2484 2009-11-22  Nikolas Zimmermann  <nzimmermann@rim.com>
2485
2486         Not reviewed. Build fix for WML enabled builds.
2487         Adopt WebCore API changes.
2488
2489         * wml/WMLAElement.cpp:
2490         (WebCore::WMLAElement::defaultEventHandler):
2491         * wml/WMLInputElement.cpp:
2492         (WebCore::WMLInputElement::defaultEventHandler):
2493
2494 2009-11-22  Pavel Feldman  <pfeldman@chromium.org>
2495
2496         Reviewed by Timothy Hatcher.
2497
2498         Web Inspector: Introduce sidebar background on timeline panel in order
2499         to prevent it from flickering on scroll.
2500
2501         https://bugs.webkit.org/show_bug.cgi?id=31789
2502
2503         * inspector/front-end/TimelinePanel.js:
2504         (WebInspector.TimelinePanel):
2505         (WebInspector.TimelinePanel.prototype.setSidebarWidth):
2506         (WebInspector.TimelinePanel.prototype._onScroll):
2507         (WebInspector.TimelinePanel.prototype._scheduleRefresh):
2508         * inspector/front-end/inspector.css:
2509
2510 2009-11-22  Pavel Feldman  <pfeldman@chromium.org>
2511
2512         Reviewed by Timothy Hatcher.
2513
2514         Web Inspector: Reimplement TimelinePanel to make it fast:
2515         - Extract grid and overview into separate files
2516         - Make timeline create only divs for visible rows
2517
2518         https://bugs.webkit.org/show_bug.cgi?id=31784
2519
2520         * WebCore.gypi:
2521         * WebCore.vcproj/WebCore.vcproj:
2522         * inspector/front-end/AbstractTimelinePanel.js:
2523         (WebInspector.AbstractTimelinePanel.prototype.createInterface):
2524         (WebInspector.AbstractTimelinePanel.prototype.refresh):
2525         (WebInspector.AbstractTimelinePanel.prototype.set calculator):
2526         * inspector/front-end/TimelineGrid.js: Added.
2527         (WebInspector.TimelineGrid):
2528         (WebInspector.TimelineGrid.prototype.get itemsGraphsElement):
2529         (WebInspector.TimelineGrid.prototype.updateDividers):
2530         (WebInspector.TimelineGrid.prototype.addEventDivider):
2531         (WebInspector.TimelineGrid.prototype.setScrollAndDividerTop):
2532         * inspector/front-end/TimelineOverviewPane.js: Added.
2533         (WebInspector.TimelineOverviewPane):
2534         (WebInspector.TimelineOverviewPane.prototype._onCheckboxClicked):
2535         (WebInspector.TimelineOverviewPane.prototype.update):
2536         (WebInspector.TimelineOverviewPane.prototype.setSidebarWidth):
2537         (WebInspector.TimelineOverviewPane.prototype.updateMainViewWidth):
2538         (WebInspector.TimelineOverviewPane.prototype.reset):
2539         (WebInspector.TimelineOverviewPane.prototype._resizeWindow):
2540         (WebInspector.TimelineOverviewPane.prototype._windowResizeDragging):
2541         (WebInspector.TimelineOverviewPane.prototype._dragWindow):
2542         (WebInspector.TimelineOverviewPane.prototype._windowDragging):
2543         (WebInspector.TimelineOverviewPane.prototype._resizeWindowLeft):
2544         (WebInspector.TimelineOverviewPane.prototype._resizeWindowRight):
2545         (WebInspector.TimelineOverviewPane.prototype._setWindowPosition):
2546         (WebInspector.TimelineOverviewPane.prototype._endWindowDragging):
2547         (WebInspector.TimelineOverviewCalculator):
2548         (WebInspector.TimelineOverviewCalculator.prototype.computeBarGraphPercentages):
2549         (WebInspector.TimelineOverviewCalculator.prototype.reset):
2550         (WebInspector.TimelineOverviewCalculator.prototype.updateBoundaries):
2551         (WebInspector.TimelineOverviewCalculator.prototype.get boundarySpan):
2552         (WebInspector.TimelineOverviewCalculator.prototype.formatValue):
2553         (WebInspector.TimelineCategoryTreeElement):
2554         (WebInspector.TimelineCategoryTreeElement.prototype.onattach):
2555         (WebInspector.TimelineCategoryGraph):
2556         (WebInspector.TimelineCategoryGraph.prototype.get graphElement):
2557         (WebInspector.TimelineCategoryGraph.prototype.addChunk):
2558         (WebInspector.TimelineCategoryGraph.prototype.clearChunks):
2559         (WebInspector.TimelineCategoryGraph.prototype.set dimmed):
2560         * inspector/front-end/TimelinePanel.js:
2561         (WebInspector.TimelinePanel):
2562         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
2563         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
2564         (WebInspector.TimelinePanel.prototype._formatRecord):
2565         (WebInspector.TimelinePanel.prototype.setSidebarWidth):
2566         (WebInspector.TimelinePanel.prototype.updateMainViewWidth):
2567         (WebInspector.TimelinePanel.prototype.resize):
2568         (WebInspector.TimelinePanel.prototype.reset):
2569         (WebInspector.TimelinePanel.prototype.show):
2570         (WebInspector.TimelinePanel.prototype._onScroll):
2571         (WebInspector.TimelinePanel.prototype._scheduleRefresh):
2572         (WebInspector.TimelinePanel.prototype._refresh):
2573         (WebInspector.TimelinePanel.prototype._refreshRecords):
2574         (WebInspector.TimelinePanel.prototype._adjustScrollPosition):
2575         (WebInspector.TimelineCategory):
2576         (WebInspector.TimelineCalculator):
2577         (WebInspector.TimelineCalculator.prototype.get boundarySpan):
2578         (WebInspector.TimelineRecordListRow):
2579         (WebInspector.TimelineRecordListRow.prototype.update):
2580         (WebInspector.TimelineRecordGraphRow):
2581         (WebInspector.TimelineRecordGraphRow.prototype.update):
2582         * inspector/front-end/WebKit.qrc:
2583         * inspector/front-end/inspector.css:
2584         * inspector/front-end/inspector.html:
2585
2586 2009-11-22  Chris Evans  <cevans@chromium.org>
2587
2588         Reviewed by Adam Barth.
2589
2590         Disable access to file:/// directory listings
2591         https://bugs.webkit.org/show_bug.cgi?id=31329
2592
2593         Deny access to directory listings. This needs doing in WebKit for
2594         WebKit clients that do permit top-level navigation to file:///dir.
2595         This matches Firefox, plus the existing Safari implementation (which
2596         does not support any directory access at all). It will fix the
2597         LayoutTest named below for Chromium.
2598
2599         Test: fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html
2600
2601         * page/SecurityOrigin.cpp: Deny access to directory listings.
2602         (WebCore::SecurityOrigin::SecurityOrigin):
2603         (WebCore::SecurityOrigin::canRequest):
2604
2605 2009-11-20  Joseph Pecoraro  <joepeck@webkit.org>
2606
2607         Reviewed by Timothy Hatcher.
2608
2609         Web Inspector: Support Ctrl+P and Ctrl+N, Readline keyboard shortcuts in the Console
2610         https://bugs.webkit.org/show_bug.cgi?id=31400
2611
2612         Handle the following when on a Mac:
2613
2614           Ctrl+P = Previous (like Up arrow)
2615           Ctrl+N = Next (like Down arrow)
2616
2617         No longer rerun autocompletion when just pushing a modifier key
2618         like Control, Alt, Shift, or Meta.
2619
2620         Improved arrow key behavior with Multiline code in the Console, with the following behavior:
2621
2622           Up   = Previous Command if on First Line (caret moves to the end of the first line)
2623                  otherwise default caret movement in text.
2624           Down = Next Command if on Last Line (caret naturally moves to the end)
2625                  otherwise default caret movement in text.
2626
2627         * inspector/front-end/TextPrompt.js:
2628         (WebInspector.TextPrompt.prototype.handleKeyEvent): handle new keyboard shortcuts
2629         (WebInspector.TextPrompt.prototype.isCaretOnFirstLine): check if the caret is on the top line
2630         (WebInspector.TextPrompt.prototype.isCaretOnLastLine): check if the caret is on the bottom line
2631         (WebInspector.TextPrompt.prototype._upKeyPressed):
2632         (WebInspector.TextPrompt.prototype._downKeyPressed):
2633         (WebInspector.TextPrompt.prototype._moveBackInHistory):
2634         (WebInspector.TextPrompt.prototype._moveForwardInHistory):
2635
2636 2009-11-21  Jessie Berlin  <jberlin@webkit.org>
2637
2638         Reviewed by Timothy Hatcher.
2639
2640         Adds a tooltip containing the full url of the resource to each element
2641         in the Resources panel so that it is possible to quickly see the query
2642         parameters.
2643         https://bugs.webkit.org/show_bug.cgi?id=19103
2644
2645         * inspector/front-end/ResourcesPanel.js:
2646         (WebInspector.ResourceSidebarTreeElement.prototype.refresh):
2647         Set the tooltip to be the resource's url.
2648
2649 2009-11-21  Simon Fraser  <simon.fraser@apple.com>
2650
2651         Reviewed by Dan Bernstein.
2652
2653         CSSKeyframesRule::findRule() and deleteRule() should accept 'from' and 'to' as well as percentages
2654         https://bugs.webkit.org/show_bug.cgi?id=31588
2655         
2656         In WebKitCSSKeyframesRule::findRuleIndex(), map 'from' to 0% an 'to' to 100%
2657         so that findRule() and deleteRule() work with these keywords.
2658
2659         * css/WebKitCSSKeyframesRule.cpp:
2660         (WebCore::WebKitCSSKeyframesRule::findRuleIndex):
2661
2662 2009-11-21  Daniel Bates  <dbates@webkit.org>
2663
2664         Reviewed by Eric Seidel.
2665
2666         https://bugs.webkit.org/show_bug.cgi?id=31647
2667
2668         Changed KeyboardEvent::m_keyEvent from a raw pointer to an OwnPtr.
2669
2670         No functionality was changed. So, no new tests.
2671
2672         * dom/KeyboardEvent.cpp:
2673         (WebCore::KeyboardEvent::~KeyboardEvent):
2674         * dom/KeyboardEvent.h: Changed m_keyEvent to OwnPtr.
2675         (WebCore::KeyboardEvent::keyEvent):
2676
2677 2009-11-20  Chris Fleizach  <cfleizach@apple.com>
2678
2679         Reviewed by Beth Dakin.
2680
2681         WAI-ARIA: add support for aria-owns
2682         https://bugs.webkit.org/show_bug.cgi?id=31702
2683
2684         Re-organized how accessibilityAttributeNames are returned so 
2685         that it's possible for an element to add an attribute based on 
2686         a dynamic value. In this case, we only want to add AXOwn if the 
2687         element actually supports aria-owns.
2688   
2689         Test: platform/mac/accessibility/aria-owns.html
2690
2691         * accessibility/AccessibilityObject.h:
2692         (WebCore::AccessibilityObject::supportsARIAOwns):
2693         (WebCore::AccessibilityObject::ariaOwnsElements):
2694         * accessibility/AccessibilityRenderObject.cpp:
2695         (WebCore::AccessibilityRenderObject::ariaOwnsElements):
2696         (WebCore::AccessibilityRenderObject::supportsARIAOwns):
2697         * accessibility/AccessibilityRenderObject.h:
2698         * accessibility/mac/AccessibilityObjectWrapper.mm:
2699         (-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
2700         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
2701         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
2702         * html/HTMLAttributeNames.in:
2703
2704 2009-11-20  Eric Carlson  <eric.carlson@apple.com>
2705
2706         Reviewed by Simon Fraser.
2707
2708         <rdar://problem/7414396> Leopard & Tiger: Support closed caption in <video> element
2709
2710         * css/mediaControls.css:
2711             Define closed caption toggle button.
2712
2713         * rendering/RenderMedia.cpp:
2714         (WebCore::RenderMedia::updateControls):
2715             Create closed caption toggle button in display order.
2716
2717         * rendering/RenderThemeMac.mm:
2718         (WebCore::RenderThemeMac::shouldRenderMediaControlPart):
2719             Don't require MediaControllerThemeQuickTime theme for captions toggle button.
2720             No need to check if the movie has video, a closed captions track is a video
2721             track.
2722
2723 2009-11-20  Joseph Pecoraro  <joepeck@webkit.org>
2724
2725         Reviewed by Timothy Hatcher.
2726
2727         Web Inspector: Running code in the Console that ends with a
2728         single line comment no longer produces a parse error.
2729
2730         * inspector/front-end/InjectedScript.js:
2731         (InjectedScript._evaluateOn):
2732
2733 2009-11-20  Chris Fleizach  <cfleizach@apple.com>
2734
2735         Reviewed by Beth Dakin.
2736
2737         WAI-ARIA: add support for 'math' role
2738         https://bugs.webkit.org/show_bug.cgi?id=31706
2739
2740         * accessibility/AccessibilityObject.cpp:
2741         * accessibility/AccessibilityObject.h:
2742         * accessibility/mac/AccessibilityObjectWrapper.mm:
2743
2744 2009-11-20  Yael Aharon  <yael.aharon@nokia.com>
2745
2746         Reviewed by Kenneth Rohde Christiansen.
2747
2748         NPN_ReloadPlugins does not reload the page even if reloadPages is true.
2749         https://bugs.webkit.org/show_bug.cgi?id=30460
2750
2751         Replace call to PluginDatabase::installedPlugins()->refresh() with Page::refreshPlugins().
2752         It already refreshes plugins and reloads pages when necessary.
2753
2754         Tests: plugins/reloadplugins-and-pages.html
2755                plugins/reloadplugins-no-pages.html
2756
2757         * plugins/PluginInfoStore.cpp:
2758         (WebCore::refreshPlugins):
2759
2760 2009-11-20  Oliver Hunt  <oliver@apple.com>
2761
2762         Reviewed by Dave Hyatt.
2763
2764         <rdar://7409188> WebKit needs to be able to serialize and deserialize objects.
2765
2766         Expose WebCore object serialization to WebKit.
2767
2768         * WebCore.base.exp:
2769         * bindings/js/SerializedScriptValue.cpp:
2770         (WebCore::SerializedScriptValue::~SerializedScriptValue):
2771         (WebCore::SerializedScriptValue::create):
2772         (WebCore::SerializedScriptValue::deserialize):
2773         * bindings/js/SerializedScriptValue.h:
2774
2775 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
2776
2777         Reviewed by Tim Hatcher.
2778
2779         Fixes <http://webkit.org/b/31741>.
2780         Web Inspector: User Entered Data on the console should show up no matter what filters.
2781         
2782         Always show .console-user-command-result, no matter what the filter say
2783         we should do with the other classes.
2784
2785         * inspector/front-end/inspector.css:
2786
2787 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
2788
2789         Reviewed by Tim Hatcher.
2790
2791         Fixes <http://webkit.org/b/31700>.
2792         Web Inspector: isMac should be in one central location + Cached.
2793         
2794         We should cache the value of isMac, and make the indexOf call in one
2795         single location, because we are calling it from multiple places, and saving
2796         the result can save us time, and make the call sites simpler.
2797
2798         * inspector/front-end/AbstractTimelinePanel.js:
2799         (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
2800         * inspector/front-end/ConsoleView.js:
2801         (WebInspector.ConsoleView.prototype._updateFilter):
2802         * inspector/front-end/ElementsPanel.js:
2803         (WebInspector.ElementsPanel.prototype.handleKeyEvent):
2804         * inspector/front-end/ScriptsPanel.js:
2805         (WebInspector.ScriptsPanel):
2806         * inspector/front-end/SourceFrame.js:
2807         (WebInspector.SourceFrame.prototype._loaded):
2808         * inspector/front-end/inspector.js:
2809         (WebInspector.documentKeyDown):
2810         (WebInspector.isMac):
2811
2812 2009-11-19  Joseph Pecoraro  <joepeck@webkit.org>
2813
2814         Removed .DS_Store accidentally added in last (r51245).
2815
2816 2009-11-19  Joseph Pecoraro  <joepeck@webkit.org>
2817
2818         Reviewed by Timothy Hatcher.
2819
2820         Web Inspector: Add Console Only Layout Mode
2821         https://bugs.webkit.org/show_bug.cgi?id=30282
2822
2823         Adds a Console Panel, which allows for a Full size Console. This
2824         extends the Drawer to the size of a Panel. This also fixes previous
2825         resize issues with the Drawer.
2826
2827         * inspector/front-end/ConsolePanel.js: added.
2828         (WebInspector.ConsolePanel):
2829         (WebInspector.ConsolePanel.prototype.toolbarItemClass.get toolbarItemLabel):
2830         (WebInspector.ConsolePanel.prototype.show):
2831         (WebInspector.ConsolePanel.prototype.hide):
2832         * inspector/front-end/Drawer.js:
2833         (WebInspector.Drawer):
2834         (WebInspector.Drawer.prototype.set visibleView):
2835         (WebInspector.Drawer.prototype.get savedHeight): access the saved height of the variable console.
2836         (WebInspector.Drawer.prototype.show.animationFinished):
2837         (WebInspector.Drawer.prototype.show):
2838         (WebInspector.Drawer.prototype.hide.animationFinished):
2839         (WebInspector.Drawer.prototype.hide):
2840         (WebInspector.Drawer.prototype.resize): resize appropriately if full/non-full
2841         (WebInspector.Drawer.prototype.enterPanelMode):
2842         (WebInspector.Drawer.prototype.exitPanelMode):
2843         (WebInspector.Drawer.prototype.immediatelyExitPanelMode):
2844         (WebInspector.Drawer.prototype._cancelAnimationIfNeeded):
2845         (WebInspector.Drawer.prototype._animateDrawerHeight.animationFinished):
2846         (WebInspector.Drawer.prototype._animateDrawerHeight):
2847         (WebInspector.Drawer.prototype._animationDuration):
2848         (WebInspector.Drawer.prototype._startStatusBarDragging):
2849         (WebInspector.Drawer.prototype._statusBarDragging):
2850         (WebInspector.Drawer.prototype._endStatusBarDragging):
2851
2852         Miscellaneous changes and cleanup.
2853
2854         * English.lproj/localizedStrings.js: "Console" toolbar title.
2855         * inspector/front-end/ConsoleView.js: removed unnecessary element reordering  
2856         * inspector/front-end/Images/consoleIcon.png: added.
2857         * inspector/front-end/inspector.css: added icon.
2858         * inspector/front-end/inspector.html:
2859         * inspector/front-end/inspector.js:
2860         (WebInspector._createPanels): create console panel
2861         (WebInspector.windowResize): resize drawer if necessary
2862         (WebInspector.documentKeyDown): esc should not toggle the console when in panel mode
2863         (WebInspector.animateStyle): start animation interval, returns the interval key
2864         (WebInspector.toggleAttach): resize drawer if necessary
2865         (WebInspector.showConsolePanel): restore the panel when the inspector restarts
2866         (WebInspector.showProfileForURL): style fix
2867
2868         Restore the panel when the inspector restarts.
2869
2870         * inspector/InspectorController.cpp:
2871         (WebCore::InspectorController::setWindowVisible):
2872         (WebCore::InspectorController::specialPanelForJSName):
2873         * inspector/InspectorFrontend.cpp:
2874         (WebCore::InspectorFrontend::showPanel):
2875
2876         Build files.
2877
2878         * WebCore.gypi:
2879         * WebCore.vcproj/WebCore.vcproj:
2880         * inspector/front-end/WebKit.qrc:
2881
2882 2009-11-20  Brian Weinstein  <bweinstein@apple.com>
2883
2884         Reviewed by Tim Hatcher.
2885
2886         Fixes <http://webkit.org/b/31699>.
2887         Web Inspector: Should Cache Values of InspectorController.platform() and port().
2888
2889         Refactor the Inspector to cache the value of InspectorController.platform
2890         and InspectorController.port, because those need to call into C++, they are
2891         being called more and more as we add platform specific keyboard shortcuts, and
2892         they shouldn't change in the lifecycle of the Web Inspector.
2893
2894         * inspector/front-end/AbstractTimelinePanel.js:
2895         (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
2896         * inspector/front-end/ConsoleView.js:
2897         (WebInspector.ConsoleView.prototype._updateFilter):
2898         * inspector/front-end/ElementsPanel.js:
2899         (WebInspector.ElementsPanel.prototype.handleKeyEvent):
2900         * inspector/front-end/ScriptsPanel.js:
2901         (WebInspector.ScriptsPanel):
2902         * inspector/front-end/SourceFrame.js:
2903         (WebInspector.SourceFrame.prototype._loaded):
2904         * inspector/front-end/inspector.js:
2905         (WebInspector.get platform):
2906         (WebInspector.get port):
2907         (WebInspector.loaded):
2908         (WebInspector.documentKeyDown):
2909         (WebInspector.toolbarDragStart):
2910
2911 2009-11-20  Dirk Schulze  <krit@webkit.org>
2912
2913         Unreviewed build fix for filters enabled builds.
2914
2915         * platform/graphics/filters/FEColorMatrix.cpp:
2916         (WebCore::FEColorMatrix::apply):
2917         * platform/graphics/filters/FEComposite.cpp:
2918         (WebCore::FEComposite::apply):
2919         * platform/graphics/filters/SourceGraphic.cpp:
2920         (WebCore::SourceGraphic::apply):
2921         * svg/graphics/SVGResourceFilter.cpp:
2922         (WebCore::SVGResourceFilter::applyFilter):
2923         * svg/graphics/filters/SVGFEMerge.cpp:
2924         (WebCore::FEMerge::apply):
2925         * svg/graphics/filters/SVGFEOffset.cpp:
2926         (WebCore::FEOffset::apply):
2927         * svg/graphics/filters/SVGFETile.cpp:
2928         (WebCore::FETile::apply):
2929
2930 2009-11-20  Eric Carlson  <eric.carlson@apple.com>
2931
2932         Reviewed by Simon Fraser.
2933
2934         <rdar://problem/7389945> QTKit based media engine should not claim to support 
2935         fullscreen on Leopard
2936
2937         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2938         (WebCore::MediaPlayerPrivate::supportsFullscreen):
2939             Only return true on SnowLeopard for now.
2940
2941         * rendering/RenderThemeMac.mm:
2942         (WebCore::RenderThemeMac::shouldRenderMediaControlPart):
2943             No need to special case MediaFullscreenButtonPart as the default implementation 
2944             asks the media engine if it supports fullscreen.
2945
2946 2009-11-18  Girish Ramakrishnan  <girish@forwardbias.in>
2947
2948         Reviewed by Simon Hausmann.
2949
2950         Patch by Yongjun Zhang <yongjun.zhang@nokia.com> and
2951                  Girish Ramakrishnan <girish@forwardbias.in>
2952         
2953         [Qt] Implement support for rendering plugins on Qt/Mac when a page is used
2954         without a QWebView or when inside QGraphicsWebView.
2955         
2956         Currently, the code provides the cgcontext of the PlatformPluginWidget to
2957         the plugin. This approach does not work when we are printing, or using
2958         QWebFrame::render() to render to a QImage/QPixmap since the plugin ends
2959         up drawing on the QWebView (i.e platformPluginWidget's cgcontext) instead
2960         of the QPaintDevice's context.
2961         
2962         To solve all cases and keep the code simple, we render the plugin to an
2963         offscreen pixmap in all cases. This way, the plugin always renders to the
2964         CGContext of the pixmap and we then use QPainter to blit the pixmap into
2965         the QPaintDevice. We also create a fake window and set it's WindowRef in
2966         NPWindow. Only with this WindowRef does Flash paint correctly to the QPixmap.
2967         
2968         Now, that's the theory. In practice, ATM, mouse events do not work when using
2969         the fake window. So, setPlatformPluginWidget() is still called when using QWebView
2970         so that there are no regressions after this patch. Once we get mouse events
2971         working, setPlatformPluginWidget will be removed.
2972         
2973         https://bugs.webkit.org/show_bug.cgi?id=31183
2974
2975         * plugins/PluginView.cpp:
2976         (WebCore::PluginView::PluginView):
2977         * plugins/PluginView.h:
2978         * plugins/mac/PluginViewMac.cpp:
2979         (WebCore::PluginView::platformStart):
2980         (WebCore::PluginView::platformDestroy):
2981         (WebCore::PluginView::setNPWindowIfNeeded):
2982         (WebCore::PluginView::updatePluginWidget):
2983         (WebCore::PluginView::paint):
2984         (WebCore::PluginView::invalidateRect):
2985
2986 2009-11-19  Joseph Pecoraro  <joepeck@webkit.org>
2987
2988         Reviewed by Timothy Hatcher.
2989
2990         Web Inspector: Resync Resources Backend and Frontend
2991         https://bugs.webkit.org/show_bug.cgi?id=31705
2992
2993         * inspector/front-end/Resource.js: resync enum values with backend
2994         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType): return false if all else fails, not true in all cases
2995
2996 2009-11-19  Steve Block  <steveblock@google.com>
2997
2998         Reviewed by Darin Fisher.
2999
3000         Android port lacks configuration in Platform.h and config.h.
3001         https://bugs.webkit.org/show_bug.cgi?id=31671
3002
3003         Build change only. No new tests possible.
3004
3005         * config.h: Modified. Added Android-specific configuration.
3006
3007 2009-11-20  Roland Steiner  <rolandsteiner@chromium.org>
3008
3009         Reviewed by Darin Adler.
3010
3011         Change default stylesheet to reset text indentation for ruby elements by default.
3012         (https://bugs.webkit.org/show_bug.cgi?id=31247)
3013
3014         Test: fast/ruby/ruby-text-indent.html
3015
3016         * css/html.css: reset text-indent on <ruby> and <rt> elements
3017
3018 2009-11-19  Brian Weinstein  <bweinstein@apple.com>
3019
3020         Reviewed by Darin Adler.
3021
3022         Fixes <http://webkit.org/b/22754>.
3023         Web Inspector: Keyboard shortcut for Element finder.
3024
3025         Use Command + Shift + C as a shortcut for Node Search, to 
3026         match the Firebug shortcut to do the same thing.
3027
3028         * inspector/front-end/ElementsPanel.js:
3029         (WebInspector.ElementsPanel.prototype.handleKeyEvent):
3030
3031 2009-11-19  Alexey Proskuryakov  <ap@apple.com>
3032
3033         Reviewed by Darin Adler.
3034
3035         https://bugs.webkit.org/show_bug.cgi?id=31690
3036         Make SocketStreamHandleCFNet work on Windows
3037
3038         * WebCore.vcproj/WebCore.vcproj: Added LoaderRunLoopCF.
3039
3040         * platform/network/ResourceHandle.h: Removed loaderRunLoop().
3041
3042         * platform/network/cf/LoaderRunLoopCF.cpp: Added.
3043         (WebCore::emptyPerform):
3044         (WebCore::runLoaderThread):
3045         (WebCore::loaderRunLoop):
3046         * platform/network/cf/LoaderRunLoopCF.h: Added.
3047         Moved the run loop that we use for CFNetwork from ResourceHandle to its own file, because
3048         it's needed for more than just resource loading.
3049
3050         * platform/network/cf/ResourceHandleCFNet.cpp: Use loaderRunLoop() from its new location.
3051
3052         * platform/network/cf/DNSCFNet.cpp: (WebCore::DNSResolveQueue::resolve): Ditto.
3053
3054         * platform/network/cf/SocketStreamHandle.h: Added static callbacks for forwarding events to
3055         main thread.
3056         * platform/network/cf/SocketStreamHandleCFNet.cpp:
3057         (WebCore::SocketStreamHandle::SocketStreamHandle): Use loaderRunLoop() on Windows instead of
3058         inoperable main run loop.
3059
3060         (WebCore::MainThreadEventCallbackInfo::MainThreadEventCallbackInfo): 
3061         (WebCore::SocketStreamHandle::readStreamCallback):
3062         (WebCore::SocketStreamHandle::writeStreamCallback):
3063         (WebCore::SocketStreamHandle::readStreamCallbackMainThread):
3064         (WebCore::SocketStreamHandle::writeStreamCallbackMainThread):
3065         Forward stream events to main thread on Windows.
3066
3067 2009-11-19  Avi Drissman  <avi@chromium.org>
3068
3069         Reviewed by Darin Adler.
3070
3071         Quick style fix.
3072         https://bugs.webkit.org/show_bug.cgi?id=27777
3073
3074         * platform/graphics/cg/PDFDocumentImage.cpp:
3075
3076 2009-11-19  Beth Dakin  <bdakin@apple.com>
3077
3078        Build fix. No review needed.
3079
3080         * platform/chromium/ScrollbarThemeChromium.cpp:
3081         (WebCore::ScrollbarThemeChromium::paintTickmarks):
3082         * rendering/RenderMediaControlsChromium.cpp:
3083         (WebCore::paintMediaButton):
3084
3085 2009-11-19  Beth Dakin  <bdakin@apple.com>
3086       
3087        Build fix. No review needed.
3088
3089         * rendering/RenderThemeChromiumSkia.cpp:
3090         (WebCore::RenderThemeChromiumSkia::paintCheckbox):
3091         (WebCore::RenderThemeChromiumSkia::paintRadio):
3092         (WebCore::RenderThemeChromiumSkia::paintSearchFieldCancelButton):
3093         (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsDecoration):
3094         (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsButton):
3095
3096 2009-11-19  Beth Dakin  <bdakin@apple.com>
3097
3098        Build fix. No review needed.
3099
3100         * platform/graphics/qt/StillImageQt.cpp:
3101         (WebCore::StillImage::draw):
3102         * platform/graphics/qt/StillImageQt.h:
3103
3104 2009-11-19  Beth Dakin  <bdakin@apple.com>
3105
3106        Build fix. No review needed.
3107
3108         * rendering/RenderThemeWin.cpp:
3109         (WebCore::RenderThemeWin::paintSearchFieldCancelButton):
3110         (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration):
3111         (WebCore::RenderThemeWin::paintSearchFieldResultsButton):
3112
3113 2009-11-19  Beth Dakin  <bdakin@apple.com>
3114
3115        Build fix. No review needed.
3116
3117         * plugins/PluginView.cpp:
3118         (WebCore::PluginView::paintMissingPluginIcon):
3119
3120 2009-11-19  Beth Dakin  <bdakin@apple.com>
3121
3122         Build fix. No review needed.
3123
3124         * platform/graphics/win/ImageCGWin.cpp:
3125         (WebCore::BitmapImage::getHBITMAPOfSize):
3126         (WebCore::BitmapImage::drawFrameMatchingSourceSize):
3127
3128 2009-11-19  Beth Dakin  <bdakin@apple.com>
3129
3130         Reviewed by Darin Adler.
3131
3132         Fix for https://bugs.webkit.org/show_bug.cgi?id=31321 Make -webkit-
3133         color-correction work with untagged images
3134
3135         Image's draw(), drawPattern(), and fillWithSolidColor() functions 
3136         now take a ColorSpace. A bunch of classes inherit from Image, so 
3137         draw() and drawPattern() functions there must also take a 
3138         ColorSpace.
3139         * platform/graphics/Image.cpp:
3140         (WebCore::Image::fillWithSolidColor):
3141         (WebCore::Image::drawTiled):
3142         * platform/graphics/Image.h:
3143         * platform/graphics/BitmapImage.h:
3144         * platform/graphics/GeneratedImage.cpp:
3145         (WebCore::GeneratedImage::draw):
3146         (WebCore::GeneratedImage::drawPattern):
3147         * platform/graphics/GeneratedImage.h:
3148         * platform/graphics/cg/PDFDocumentImage.cpp:
3149         (WebCore::PDFDocumentImage::draw):
3150         * platform/graphics/cg/PDFDocumentImage.h:
3151         * svg/graphics/SVGImage.cpp:
3152         (WebCore::SVGImage::draw):
3153         * svg/graphics/SVGImage.h:
3154
3155         All of the drawImage() functions and drawTiled() functions of 
3156         GraphicsContext now take a ColorSpace.
3157         * platform/graphics/GraphicsContext.cpp:
3158         (WebCore::GraphicsContext::drawImage):
3159         (WebCore::GraphicsContext::drawTiledImage):
3160         * platform/graphics/GraphicsContext.h:
3161
3162         This is where the actual work is done.
3163         * platform/graphics/cg/ImageCG.cpp:
3164         (WebCore::imageWithColorSpace): New static function that returns a 
3165         copy of the given image in the given ColorSpace *IF* we should use 
3166         the given ColorSpace. We will ignore the color space if the image 
3167         is tagged and return 0. 
3168         (WebCore::BitmapImage::draw): Now takes a ColorSpace and uses it to 
3169         call imageWithColorSpace(). 
3170         (WebCore::Image::drawPattern): Same.
3171
3172         Attempt to keep all ports building. 
3173         * platform/graphics/cairo/ImageCairo.cpp:
3174         (WebCore::BitmapImage::draw):
3175         (WebCore::Image::drawPattern):
3176         * platform/graphics/haiku/ImageHaiku.cpp:
3177         (WebCore::BitmapImage::draw):
3178         (WebCore::Image::drawPattern):
3179         * platform/graphics/qt/ImageQt.cpp:
3180         (WebCore::Image::drawPattern):
3181         (WebCore::BitmapImage::draw):
3182         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
3183         * platform/graphics/skia/ImageSkia.cpp:
3184         (WebCore::Image::drawPattern):
3185         (WebCore::BitmapImage::draw):
3186         (WebCore::BitmapImageSingleFrameSkia::draw):
3187         * platform/graphics/wx/ImageWx.cpp:
3188         (WebCore::BitmapImage::draw):
3189         (WebCore::BitmapImage::drawPattern):
3190
3191         Callers of GraphicsContext's drawImage() and drawTiled() functions 
3192         now need to send a ColorSpace.
3193         * html/HTMLCanvasElement.cpp:
3194         (WebCore::HTMLCanvasElement::paint):
3195         * html/canvas/CanvasRenderingContext2D.cpp:
3196         (WebCore::CanvasRenderingContext2D::drawImage):
3197         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
3198         * platform/ScrollView.cpp:
3199         (WebCore::ScrollView::wheelEvent):
3200         * platform/graphics/filters/FEColorMatrix.cpp:
3201         (WebCore::FEColorMatrix::apply):
3202         * platform/graphics/filters/FEComposite.cpp:
3203         (WebCore::FEComposite::apply):
3204         * platform/graphics/filters/SourceGraphic.cpp:
3205         (WebCore::SourceGraphic::apply):
3206         * platform/mac/ScrollbarThemeMac.mm:
3207         (WebCore::ScrollbarThemeMac::paint):
3208         * rendering/RenderBoxModelObject.cpp:
3209         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
3210         (WebCore::RenderBoxModelObject::paintNinePieceImage):
3211         * rendering/RenderImage.cpp:
3212         (WebCore::RenderImage::paintReplaced):
3213         * rendering/RenderLayer.cpp:
3214         (WebCore::RenderLayer::paintResizer):
3215         * rendering/RenderListMarker.cpp:
3216         (WebCore::RenderListMarker::paint):
3217         * rendering/RenderSVGImage.cpp:
3218         (WebCore::RenderSVGImage::paint):
3219         * rendering/RenderWidget.cpp:
3220         (WebCore::RenderWidget::paint):
3221         * svg/graphics/SVGPaintServerPattern.cpp:
3222         (WebCore::SVGPaintServerPattern::setup):
3223         * svg/graphics/SVGResourceFilter.cpp:
3224         (WebCore::SVGResourceFilter::applyFilter):
3225         * svg/graphics/filters/SVGFEMerge.cpp:
3226         (WebCore::FEMerge::apply):
3227         * svg/graphics/filters/SVGFEOffset.cpp:
3228         (WebCore::FEOffset::apply):
3229         * svg/graphics/filters/SVGFETile.cpp:
3230         (WebCore::FETile::apply):
3231
3232 2009-11-19  Avi Drissman  <avi@chromium.org>
3233
3234         Reviewed by Darin Adler.
3235
3236         Properly create a CGImageRef on non-PLATFORM(MAC).
3237         https://bugs.webkit.org/show_bug.cgi?id=27777
3238
3239         * platform/graphics/cg/ImageSourceCG.cpp:
3240         (WebCore::sharedBufferGetBytesAtPosition):
3241         (WebCore::sharedBufferRelease):
3242         (WebCore::ImageSource::setData):
3243         * platform/graphics/cg/ImageSourceCG.h:
3244         * platform/graphics/cg/PDFDocumentImage.cpp:
3245         (WebCore::PDFDocumentImage::dataChanged):
3246
3247 2009-11-19  Oliver Hunt  <oliver@apple.com>
3248
3249         Reviewed by Dave Hyatt.
3250
3251         -webkit-user-drag: element Drag images include overflow decorations from incorrect nodes
3252         https://bugs.webkit.org/show_bug.cgi?id=31656
3253
3254         Make sure we're a child of the painting root before drawing overflow features.
3255
3256         * manual-tests/user-drag-with-decorations.html: Added.
3257         * rendering/RenderBlock.cpp:
3258         (WebCore::RenderBlock::paint):
3259
3260 2009-11-19  Dmitry Titov  <dimich@chromium.org>
3261
3262         Not reviewed, attempt to fix Chromium build.
3263
3264         * rendering/RenderMediaControlsChromium.cpp:
3265         (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): Add new enum values for Show/HideClosedCaptionButton to make it compile.
3266
3267 2009-11-19  Rahul Kuchhal  <kuchhal@chromium.org>
3268
3269         Reviewed by Darin Adler.
3270
3271         Do not assert when a high number is used for roman numerals in lists.
3272         https://bugs.webkit.org/show_bug.cgi?id=31652
3273
3274         Test: fast/lists/ol-start-roman.html
3275
3276         * rendering/RenderListMarker.cpp:
3277         (WebCore::toRoman): Increase the char array size.
3278
3279 2009-11-19  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
3280
3281         Rubber-stamped by Oliver Hunt.
3282
3283         Add translatable strings to cover validationMessage, after
3284         r51172. Already covered by existing test.
3285
3286         * platform/gtk/LocalizedStringsGtk.cpp:
3287         (WebCore::validationMessageValueMissingText):
3288         (WebCore::validationMessageTypeMismatchText):
3289         (WebCore::validationMessagePatternMismatchText):
3290         (WebCore::validationMessageTooLongText):
3291         (WebCore::validationMessageRangeUnderflowText):
3292         (WebCore::validationMessageRangeOverflowText):
3293         (WebCore::validationMessageStepMismatchText):
3294
3295 2009-11-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3296
3297         Reviewed by Darin Adler.
3298
3299         Remove HAVE(FLOAT_H) guard
3300         https://bugs.webkit.org/show_bug.cgi?id=31661
3301
3302         WebCore has a dependency on float.h, there is
3303         no need to guard float.h.
3304
3305         No new tests as there is no functional change.
3306
3307         * html/HTMLInputElement.cpp: Remove include directive
3308         for float.h as it is included in MathExtras.h already.
3309
3310 2009-11-19  Simon Fraser  <simon.fraser@apple.com>
3311
3312         Reviewed by Pavel Feldman.
3313
3314         Instrumentation should account for painting in compositing layers
3315         https://bugs.webkit.org/show_bug.cgi?id=31674
3316
3317         Add calls to InspectorTimelineAgent for painting into compositing layers,
3318         which is not accounted for in FrameView::paintContents().
3319
3320         * rendering/RenderLayerBacking.cpp:
3321         (WebCore::RenderLayerBacking::paintIntoLayer):
3322         Avoid fetching the FrameView multiple times.
3323         
3324         (WebCore::inspectorTimelineAgent):
3325         (WebCore::RenderLayerBacking::paintContents):
3326
3327 2009-11-19  Eric Carlson  <eric.carlson@apple.com>
3328
3329         Reviewed by Dan Bernstein.
3330
3331         <rdar://problem/7035231>
3332         Support closed caption in <video> element
3333
3334         Test: media/media-captions.html
3335
3336         * WebCore.base.exp:
3337         * accessibility/AccessibilityMediaControls.cpp:
3338         (WebCore::AccessibilityMediaControl::controlTypeName):
3339             Define ShowClosedCaptionsButton and HideClosedCaptionsButton.
3340
3341         * css/CSSPrimitiveValueMappings.h:
3342         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3343             Add MediaToggleClosedCaptionsButtonPart.
3344
3345         * css/CSSSelector.cpp:
3346         (WebCore::CSSSelector::extractPseudoType):
3347             Define and match mediaControlsToggleClosedCaptionsButton.
3348
3349         * css/CSSSelector.h:
3350         (WebCore::CSSSelector::):
3351         * css/CSSStyleSelector.cpp:
3352         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
3353             Define and match PseudoMediaControlsToggleClosedCaptions.
3354
3355         * css/CSSValueKeywords.in:
3356             Define and use media-toggle-closed-captions-button.
3357
3358         * css/mediaControls.css:
3359         * css/mediaControlsQuickTime.css:
3360             Add webkit-media-controls-toggle-closed-captions-button.
3361
3362         * html/HTMLMediaElement.cpp:
3363         (WebCore::HTMLMediaElement::HTMLMediaElement): 
3364             Initialize m_closedCaptionsVisible.
3365         (WebCore::HTMLMediaElement::loadInternal): 
3366             Set m_closedCaptionsVisible to false.
3367         (WebCore::HTMLMediaElement::hasClosedCaptions): 
3368         (WebCore::HTMLMediaElement::closedCaptionsVisible): 
3369         (WebCore::HTMLMediaElement::setClosedCaptionsVisible): 
3370             New, captions internal methods.
3371         (WebCore::HTMLMediaElement::setWebkitClosedCaptionsVisible): 
3372         (WebCore::HTMLMediaElement::webkitClosedCaptionsVisible): 
3373         (WebCore::HTMLMediaElement::webkitHasClosedCaptions): 
3374             New, captions DOM API.
3375
3376         * html/HTMLMediaElement.h:
3377         * html/HTMLMediaElement.idl:
3378             Declare methods needed for captions API.
3379
3380         * platform/ThemeTypes.h:
3381             Add MediaToggleClosedCaptionsButtonPart.
3382
3383         * platform/android/LocalizedStringsAndroid.cpp:
3384         (WebCore::localizedMediaControlElementString):
3385         (WebCore::localizedMediaControlElementHelpText):
3386         (WebCore::localizedMediaTimeDescription):
3387             Add empty implmentations.
3388
3389         * platform/graphics/MediaPlayer.cpp:
3390         (WebCore::NullMediaPlayerPrivate::hasClosedCaptions):
3391         (WebCore::NullMediaPlayerPrivate::setClosedCaptionsVisible):
3392             New, empty implementations of media engine closed caption functions.
3393         (WebCore::MediaPlayer::hasClosedCaptions):
3394         (WebCore::MediaPlayer::setClosedCaptionsVisible):
3395             New, call media engine closed caption functions.
3396
3397         * platform/graphics/MediaPlayer.h:
3398         * platform/graphics/MediaPlayerPrivate.h:
3399         (WebCore::MediaPlayerPrivateInterface::hasClosedCaptions):
3400         (WebCore::MediaPlayerPrivateInterface::setClosedCaptionsVisible):
3401             Declare new media engine methods.
3402
3403         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
3404         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
3405         (WebCore::MediaPlayerPrivate::hasClosedCaptions):
3406         (WebCore::MediaPlayerPrivate::setClosedCaptionsVisible):
3407             New, QTKit implementation of closed caption methods.
3408
3409         * platform/gtk/LocalizedStringsGtk.cpp:
3410         (WebCore::localizedMediaControlElementString):
3411         (WebCore::localizedMediaControlElementHelpText):
3412             Add help text for ShowClosedCaptionsButton and HideClosedCaptionsButton.
3413
3414         * platform/mac/WebCoreSystemInterface.h:
3415         * platform/mac/WebCoreSystemInterface.mm:
3416             Declare and initialize wkQTMovieHasClosedCaptions and wkQTMovieSetShowClosedCaptions.
3417
3418         * rendering/MediaControlElements.cpp:
3419         (WebCore::MediaControlInputElement::MediaControlInputElement):
3420             Deal with MEDIA_CONTROLS_TOGGLE_CLOSED_CAPTIONS_BUTTON.
3421         (WebCore::MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsButtonElement):
3422         (WebCore::MediaControlToggleClosedCaptionsButtonElement::defaultEventHandler):
3423         (WebCore::MediaControlToggleClosedCaptionsButtonElement::updateDisplayType):
3424             New, implement the closed caption toggle button,
3425
3426         * rendering/MediaControlElements.h:
3427             Define MediaShowClosedCaptionsButton and MediaHideClosedCaptionsButton,
3428             declare MediaControlToggleClosedCaptionsButtonElement.
3429
3430         * rendering/RenderMedia.cpp:
3431         (WebCore::RenderMedia::styleDidChange):
3432         (WebCore::RenderMedia::createToggleClosedCaptionsButton):
3433         (WebCore::RenderMedia::createStatusDisplay):
3434         (WebCore::RenderMedia::updateControls):
3435         (WebCore::RenderMedia::forwardEvent):
3436         * rendering/RenderMedia.h:
3437             Deal with m_toggleClosedCaptionsButton.
3438
3439         * rendering/RenderTheme.cpp:
3440         (WebCore::RenderTheme::paint):
3441             Deal with MediaToggleClosedCaptionsButtonPart.
3442
3443         * rendering/RenderTheme.h:
3444         * rendering/RenderThemeMac.h:
3445             Declare paintMediaToggleClosedCaptionsButton.
3446
3447         * rendering/RenderThemeMac.mm:
3448         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton):
3449             New.
3450         (WebCore::RenderThemeMac::shouldRenderMediaControlPart):
3451             Don't render captions toggle button unless we are using the new theme, the
3452             movie has captions, and the movie is in a <video> element since we currently
3453             rely on QTKit to render the captions.
3454
3455         * rendering/style/RenderStyleConstants.h:
3456             Define MEDIA_CONTROLS_TOGGLE_CLOSED_CAPTIONS_BUTTON.
3457
3458 2009-11-19  Kevin Ollivier  <kevino@theolliviers.com>
3459
3460         wx build fix. Add missing header.
3461
3462         * platform/wx/LocalizedStringsWx.cpp:
3463
3464 2009-11-19  Alexey Proskuryakov  <ap@apple.com>
3465
3466         Reviewed by Darin Adler.
3467
3468         https://bugs.webkit.org/show_bug.cgi?id=31634
3469         Ignore realm for proxy protection spaces
3470
3471         Only affects WebSocket proxy authentication, cannot be tested in DRT.
3472
3473         * platform/network/ProtectionSpace.cpp:
3474         (WebCore::operator==):
3475         * platform/network/ProtectionSpaceHash.h:
3476         (WebCore::ProtectionSpaceHash::hash):
3477
3478 2009-11-19  Olivier Goffart  <ogoffart@trolltech.com>
3479
3480         Reviewed by Simon Hausmann.
3481
3482         [Qt] Normalize signal and slot signatures.
3483
3484         * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
3485         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
3486
3487 2009-11-19  Alexander Pavlov  <apavlov@chromium.org>
3488
3489         Reviewed by Pavel Feldman.
3490
3491         Store cookie domains in the WebInspector object
3492
3493         The cookie domains have been moved from StoragePanel into WebInspector.
3494         Also, the document URLs are now passed inside the WebInspector.addResource()
3495         payload rather than pushed directly from InspectorController.
3496         https://bugs.webkit.org/show_bug.cgi?id=31627
3497
3498         * inspector/InspectorController.cpp:
3499         (WebCore::InspectorController::populateScriptObjects):
3500         (WebCore::InspectorController::didFinishLoading):
3501         * inspector/InspectorFrontend.cpp:
3502         * inspector/InspectorFrontend.h:
3503         * inspector/InspectorResource.cpp:
3504         (WebCore::InspectorResource::createScriptObject):
3505         (WebCore::InspectorResource::updateScriptObject):
3506         * inspector/front-end/StoragePanel.js:
3507         (WebInspector.StoragePanel.prototype.reset):
3508         (WebInspector.StoragePanel.prototype.addCookieDomain):
3509         * inspector/front-end/inspector.js:
3510         (WebInspector.addResource):
3511         (WebInspector.addCookieDomain):
3512         (WebInspector.reset):
3513
3514 2009-11-19  Zoltan Horvath  <zoltan@webkit.org>
3515
3516         Reviewed by Darin Adler.
3517
3518         Allow custom memory allocation control for the other part of platform directory in WebCore
3519         https://bugs.webkit.org/show_bug.cgi?id=31585
3520
3521         Inherits the following classes from FastAllocBase because these are
3522         instantiated by 'new':
3523
3524         class RegularExpression    - instantiated at: WebCore/page/Frame.cpp:415
3525         class TransformationMatrix - instantiated at: WebCore/rendering/TransformState.cpp:62
3526         class Path                 - instantiated at: WebCore/html/HTMLAreaElement.cpp:73
3527         class FontPlatformData     - instantiated at: WebCore/platform/graphics/qt/FontCacheQt.cpp:188
3528
3529         Inherits the following classes from Noncopyable because these are
3530         instantiated by 'new' and no need to be copyable:
3531
3532         class Cursors                         - instantiated at: WebCore/platform/qt/CursorQt.cpp:146
3533         class NetworkStateNotifier            - instantiated at: WebCore/platform/network/NetworkStateNotifier.cpp:37
3534         struct CrossThreadResourceRequestData - instantiated at: WebCore/platform/network/ResourceRequestBase.cpp:71
3535
3536         class ImageDecoder - its child class is instantiated at: WebCore/platform/graphics/qt/ImageDecoderQt.cpp:46
3537         class MediaPlayerPrivateInterface - its child class is instantiated at: WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:119
3538
3539         * platform/graphics/MediaPlayerPrivate.h:
3540         * platform/graphics/Path.h:
3541         * platform/graphics/qt/FontPlatformData.h:
3542         * platform/graphics/transforms/TransformationMatrix.h:
3543         * platform/image-decoders/ImageDecoder.h:
3544         * platform/network/NetworkStateNotifier.h:
3545         * platform/network/ResourceRequestBase.h:
3546         * platform/qt/CursorQt.cpp:
3547         * platform/text/RegularExpression.h:
3548
3549 2009-11-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3550
3551         Unreviewed.
3552
3553         [Qt] Build fix for QtWebKit after r51172.
3554
3555         * platform/qt/Localizations.cpp:
3556         (WebCore::validationMessageValueMissingText):
3557         (WebCore::validationMessageTypeMismatchText):
3558         (WebCore::validationMessagePatternMismatchText):
3559         (WebCore::validationMessageTooLongText):
3560         (WebCore::validationMessageRangeUnderflowText):
3561         (WebCore::validationMessageRangeOverflowText):
3562         (WebCore::validationMessageStepMismatchText):
3563
3564 2009-11-18  Dan Bernstein  <mitz@apple.com>
3565
3566         Reviewed by Simon Fraser.
3567
3568         Fixed <rdar://problem/7398987> Assertion failure in
3569         RenderLayer::updateClipRects when a plug-in’s enclosing layer is
3570         enclosed by a transformed layer
3571
3572