0d0e9c10f74735ac084fb3229985a42b87468d07
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-03-03  Oliver Hunt  <oliver@apple.com>
2
3         Reviewed by Geoffrey Garen.
4
5         JSVariableObject needs to use WriteBarrier for symboltable property storage
6         https://bugs.webkit.org/show_bug.cgi?id=55698
7
8         Update to pass JSGlobalData for the symbol table write used
9         to set the document property.
10
11         * bindings/js/JSDOMWindowBase.cpp:
12         (WebCore::JSDOMWindowBase::updateDocument):
13
14 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
15
16         More build fixing. Move WebCoreKeyboardUIMode.h to a cross-platform location.
17
18         * WebCore.xcodeproj/project.pbxproj:
19         * page/WebCoreKeyboardUIMode.h: Copied from WebCore/page/mac/WebCoreKeyboardUIMode.h.
20         * page/mac/WebCoreKeyboardUIMode.h: Removed.
21
22 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
23
24         Build fix. Should include WebCoreKeyboardUIMode.h on all platforms now.
25
26         * page/ChromeClient.h:
27
28 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
29
30         Reviewed by Darin Adler.
31
32         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
33         https://bugs.webkit.org/show_bug.cgi?id=55633
34         <rdar://problem/8963023>
35
36         * loader/EmptyClients.h: (WebCore::EmptyChromeClient::keyboardUIMode):
37         * page/ChromeClient.h:
38         * page/EventHandler.cpp: (WebCore::EventHandler::tabsToLinks):
39         Merged tabsToLinks() and keyboardUIMode(). The latter returned a superset of information
40         returned by former.
41
42 2011-03-03  Dimitri Glazkov  <dglazkov@chromium.org>
43
44         Fix Win compile break, caused by r80276.
45
46         * rendering/RenderThemeWin.h: Changed signature of volumeSliderOffsetFromMuteButton
47             to match RenderTheme.h.
48
49 2011-03-02  Geoffrey Garen  <ggaren@apple.com>
50
51         Reviewed by Darin Adler.
52
53         Moved all variable object storage inline -- upping the object size limit to 1K
54         https://bugs.webkit.org/show_bug.cgi?id=55653
55
56         * bindings/js/JSDOMGlobalObject.cpp:
57         * bindings/js/JSDOMGlobalObject.h:
58         * bindings/js/JSDOMWindowBase.cpp:
59         * bindings/js/JSDOMWindowBase.h:
60         * bindings/js/JSDOMWindowCustom.h:
61         * bindings/js/JSWorkerContextBase.cpp: Removed out-of-line storage. Changed d-> to m_.
62
63 2011-03-03  Dimitri Glazkov  <dglazkov@chromium.org>
64
65         Reviewed by Darin Adler.
66
67         Use RenderBox in volumeSliderOffsetFromMuteButton, since that's what is actually being used.
68         https://bugs.webkit.org/show_bug.cgi?id=55099
69
70         Cleanup, no behavior change.
71
72         * html/shadow/MediaControls.cpp:
73         (WebCore::MediaControls::updateVolumeSliderContainer): Changed to pass RenderBox
74             instead of Node.
75         * rendering/RenderMediaControls.cpp:
76         (WebCore::RenderMediaControls::volumeSliderOffsetFromMuteButton): Changed
77             to use RenderBox as argument.
78         * rendering/RenderMediaControls.h: Ditto.
79         * rendering/RenderTheme.cpp:
80         (WebCore::RenderTheme::volumeSliderOffsetFromMuteButton): Ditto.
81         * rendering/RenderTheme.h: Ditto.
82         * rendering/RenderThemeChromiumMac.h: Ditto.
83         * rendering/RenderThemeChromiumMac.mm:
84         (WebCore::RenderThemeChromiumMac::volumeSliderOffsetFromMuteButton): Ditto.
85         * rendering/RenderThemeMac.h: Ditto.
86         * rendering/RenderThemeMac.mm:
87         (WebCore::RenderThemeMac::volumeSliderOffsetFromMuteButton): Ditto.
88         * rendering/RenderThemeWin.cpp:
89         (WebCore::RenderThemeWin::volumeSliderOffsetFromMuteButton): Ditto.
90
91 2011-03-03  Alexis Menard  <alexis.menard@openbossa.org>
92
93         Reviewed by Andreas Kling.
94
95         When building with DEFINES+=USE_GSTREAMER=1 we don't want to define ENABLE_QT_MULTIMEDIA to 1.
96         Also add the new files added after https://bugs.webkit.org/show_bug.cgi?id=54870 to support GRefPtr
97         for GstElement.
98
99         * WebCore.pro:
100         * features.pri:
101
102 2011-03-03  Anders Carlsson  <andersca@apple.com>
103
104         Try to fix the Windows build again.
105
106         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
107         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
108
109 2011-03-03  Mihai Parparita  <mihaip@chromium.org>
110
111         Reviewed by Dimitri Glazkov.
112
113         Add another CRASH() for CSSSelector double frees
114         https://bugs.webkit.org/show_bug.cgi?id=55693
115
116         To help track down bug 53045, add a CRASH call when the the array and/or
117         CSSSelector member in CSSSelectorList is disposed of more than once.
118
119         Just a check, no new tests necessary.
120         
121         * css/CSSSelectorList.cpp:
122         (WebCore::CSSSelectorList::deleteSelectors):
123
124 2011-03-03  Anders Carlsson  <andersca@apple.com>
125
126         Yet another attempt at fixing the Windows build.
127
128         * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
129         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.cpp:
130         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
131         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
132
133 2011-03-02  Chris Marrin  <cmarrin@apple.com>
134
135         Reviewed by Simon Fraser.
136
137         REGRESSION: Accelerated transitions are jumpy
138         https://bugs.webkit.org/show_bug.cgi?id=55022
139
140         Got rid of default TimingFunction values from PlatformCAAnimation*. A TimingFunction
141         is now always passed in. The TimingFunction class now has a static method to get
142         a default object which has the 'ease' values in it. I now assert in both Mac and
143         Win implementations if a null TimingFunction pointer is seen.
144
145         * platform/animation/TimingFunction.h:
146         (WebCore::CubicBezierTimingFunction::create):
147         (WebCore::CubicBezierTimingFunction::defaultTimingFunction):
148         (WebCore::CubicBezierTimingFunction::CubicBezierTimingFunction):
149         * platform/graphics/ca/GraphicsLayerCA.cpp:
150         (WebCore::GraphicsLayerCA::timingFunctionForAnimationValue):
151         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
152         (toCAMediaTimingFunction):
153         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
154         (toCACFTimingFunction):
155
156 2011-03-03  Tony Gentilcore  <tonyg@chromium.org>
157
158         Unreviewed build fix.
159
160         Fix clang compile after r80220
161         https://bugs.webkit.org/show_bug.cgi?id=55692
162
163         * storage/IDBBackingStore.cpp:
164         (WebCore::IDBBackingStore::getPrimaryKeyViaIndex):
165
166 2011-03-03  Anders Carlsson  <andersca@apple.com>
167
168         Attempt to fix the Windows build.
169
170         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
171         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
172
173 2011-03-02  Brian Weinstein  <bweinstein@apple.com>
174
175         Reviewed by Adam Roben.
176
177         Rest of WebKit2: Need a way to send notifications to client when cookies change
178         https://bugs.webkit.org/show_bug.cgi?id=55427
179         <rdar://problem/9056027>
180
181         Add functions to be exported.
182
183         * WebCore.exp.in:
184
185 2011-03-03  Anders Carlsson  <andersca@apple.com>
186
187         Reviewed by Darin Adler.
188
189         Improve WebCore build time by ~5%
190         https://bugs.webkit.org/show_bug.cgi?id=55688
191
192         Forward declare the CATransform3D and CGAffineTransform structs instead of including
193         large chunks of QuartzCore and Core Graphics.
194
195         On an 8 core Mac Pro, this sped up building WebCore by about 5%.
196
197         * platform/graphics/ca/GraphicsLayerCA.cpp:
198         * platform/graphics/ca/TransformationMatrixCA.cpp:
199         * platform/graphics/transforms/TransformationMatrix.h:
200
201 2011-03-03  Andrey Kosyakov  <caseq@chromium.org>
202
203         Unreviewed. Adjusted call to a method renamed in r80102.
204
205         * inspector/front-end/SourceFrame.js:
206         (WebInspector.SourceFrame.prototype._startEditing):
207
208 2011-03-03  Timothy Hatcher  <timothy@apple.com>
209
210         Use APIEntryShim instead of JSLock in SerializedScriptValue to allow it to be used
211         by contexts not created by WebCore.
212
213         https://webkit.org/b/55642
214
215         Reviewed by Oliver Hunt.
216
217         * bindings/js/SerializedScriptValue.cpp:
218         (WebCore::SerializedScriptValue::create): Use APIEntryShim instead of JSLock.
219         (WebCore::SerializedScriptValue::deserialize): Ditto.
220
221 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
222
223         Reviewed by Darin Adler.
224
225         WebCore should check for "Upgrade" and "Connection" header fields in WebSockets handshake
226         https://bugs.webkit.org/show_bug.cgi?id=55498
227         <rdar://problem/8752706>
228
229         Tests: http/tests/websocket/tests/handshake-fail-by-no-connection-header.html
230                http/tests/websocket/tests/handshake-fail-by-no-upgrade-header.html
231
232         * websockets/WebSocketHandshake.h: Removed unused and meaningless setters for response
233         header fields. Removed separate member variables for those, as they were duplicating data
234         available in response, and there is no reason to squeeze microsecods here.
235
236         * websockets/WebSocketHandshake.cpp:
237         (WebCore::WebSocketHandshake::reset): There are no longer member variables for header field
238         values to reset here.
239         (WebCore::WebSocketHandshake::readServerHandshake): Removed a call for processHeaders().
240         (WebCore::WebSocketHandshake::serverWebSocketOrigin): Changed to get the value from response.
241         (WebCore::WebSocketHandshake::serverWebSocketLocation): Ditto.
242         (WebCore::WebSocketHandshake::serverWebSocketProtocol): Ditto.
243         (WebCore::WebSocketHandshake::serverSetCookie): Ditto.
244         (WebCore::WebSocketHandshake::serverSetCookie2): Ditto.
245         (WebCore::WebSocketHandshake::serverUpgrade): Added.
246         (WebCore::WebSocketHandshake::serverConnection): Added.
247         (WebCore::WebSocketHandshake::checkResponseHeaders): Added checks for Upgrade and Connection
248         header field presence and values.
249
250 2011-03-03  Helder Correia  <helder@sencha.com>
251
252         Reviewed by Andreas Kling.
253
254         [Qt] fast/canvas/canvas-strokePath-gradient-shadow.html fails
255         https://bugs.webkit.org/show_bug.cgi?id=55651
256
257         When relying on ContextShadow and using a gradient stroke for a path,
258         the alpha of the shadow is incorrect.
259
260         * platform/graphics/qt/GraphicsContextQt.cpp:
261         (WebCore::GraphicsContext::strokePath):
262
263 2011-03-03  Martin Robinson  <mrobinson@igalia.com>
264
265         XHTMLMP build broken after r78342
266         https://bugs.webkit.org/show_bug.cgi?id=55286
267
268         Fix XHTMLMP build now that the DocumentWriter is a member of DocumentLoader
269         instead of FrameLoader.
270
271         No new tests. This is a build fix.
272
273         * dom/Document.cpp:
274         (WebCore::Document::isXHTMLMPDocument):
275
276 2011-03-03  Dimitri Glazkov  <dglazkov@chromium.org>
277
278         Reviewed by Eric Carlson.
279
280         Tweak MediaControlMuteButtonElement class hierarchy.
281         https://bugs.webkit.org/show_bug.cgi?id=55614
282
283         This allows the mute button on the panel to have event handlers that are
284         different from the mute button in the volume slider.
285
286         No change in behavior, covered by existing tests.
287
288         * html/shadow/MediaControls.cpp:
289         (WebCore::MediaControls::createMuteButton): Changed to use MediaControlPanelMuteButtonElement.
290         * rendering/MediaControlElements.cpp:
291         (WebCore::MediaControlMuteButtonElement::updateDisplayType):
292         (WebCore::MediaControlPanelMuteButtonElement::MediaControlPanelMuteButtonElement): Added.
293         (WebCore::MediaControlPanelMuteButtonElement::create): Added.
294         (WebCore::MediaControlPanelMuteButtonElement::shadowPseudoId): Moved.
295         * rendering/MediaControlElements.h: Added defs.
296
297 2011-03-03  Yury Semikhatsky  <yurys@chromium.org>
298
299         Reviewed by Pavel Feldman.
300
301         Web Inspector: Resource agent should have same lifetime as Inspector agent
302         https://bugs.webkit.org/show_bug.cgi?id=55461
303
304         * inspector/Inspector.idl:
305         * inspector/InspectorAgent.cpp:
306         (WebCore::InspectorAgent::InspectorAgent):
307         (WebCore::InspectorAgent::inspectedPageDestroyed): disconnectFrontend is called before the agent is destroyed
308         to clear frontend reference in all agents.
309         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
310         (WebCore::InspectorAgent::setFrontend):
311         (WebCore::InspectorAgent::disconnectFrontend):
312         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
313         (WebCore::InspectorAgent::didCommitLoad):
314         * inspector/InspectorAgent.h:
315         (WebCore::InspectorAgent::resourceAgent):
316         * inspector/InspectorBrowserDebuggerAgent.cpp:
317         (WebCore::InspectorBrowserDebuggerAgent::~InspectorBrowserDebuggerAgent):
318         * inspector/InspectorDebuggerAgent.cpp:
319         (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
320         * inspector/InspectorInstrumentation.cpp:
321         (WebCore::InspectorInstrumentation::didCreateWebSocketImpl):
322         (WebCore::InspectorInstrumentation::willSendWebSocketHandshakeRequestImpl):
323         (WebCore::InspectorInstrumentation::didReceiveWebSocketHandshakeResponseImpl):
324         (WebCore::InspectorInstrumentation::didCloseWebSocketImpl):
325         (WebCore::InspectorInstrumentation::retrieveResourceAgent):
326         * inspector/InspectorResourceAgent.cpp:
327         (WebCore::InspectorResourceAgent::setFrontend):
328         (WebCore::InspectorResourceAgent::clearFrontend):
329         (WebCore::InspectorResourceAgent::restore):
330         (WebCore::InspectorResourceAgent::~InspectorResourceAgent):
331         (WebCore::InspectorResourceAgent::enable):
332         (WebCore::InspectorResourceAgent::disable):
333         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
334         * inspector/InspectorResourceAgent.h:
335         (WebCore::InspectorResourceAgent::create):
336         * inspector/InspectorTimelineAgent.cpp:
337         (WebCore::InspectorTimelineAgent::restore):
338         * inspector/InspectorTimelineAgent.h:
339         * inspector/front-end/NetworkManager.js:
340         (WebInspector.NetworkManager):
341         (WebInspector.NetworkManager.prototype.frontendReused):
342         * inspector/front-end/inspector.js:
343         (WebInspector.frontendReused):
344
345 2011-03-03  Andras Becsi  <abecsi@webkit.org>
346
347         Reviewed by Andreas Kling.
348
349         CSS RGBA fast-path color parsing should clamp of out-of-range alpha values
350         https://bugs.webkit.org/show_bug.cgi?id=55661
351
352         Test case originally written by Andreas Kling <andreas.kling@nokia.com>
353
354         Test: fast/canvas/rgba-parsing.html
355
356         * css/CSSParser.cpp:
357         (WebCore::isValidDouble): Check whether the given string is a valid double.
358         (WebCore::parseAlphaValue): Out-of-range alpha values should be clamped to the (0.0, 1.0) range.
359
360 2011-03-03  David Holloway  <dhollowa@chromium.org>
361
362         Reviewed by Dimitri Glazkov.
363
364         Changes HTMLTextFormControlElement::placeholderShouldBeVisible to account
365         for non-empty suggestion text.  The visibility of the placeholder text
366         now turned off when suggestion text is set.
367         https://bugs.webkit.org/show_bug.cgi?id=55245
368
369         No new tests because, by design, the suggestion text is not accessible
370         through the DOM.
371
372         * html/HTMLFormControlElement.cpp:
373         (WebCore::HTMLTextFormControlElement::placeholderShouldBeVisible):
374         * html/HTMLFormControlElement.h:
375         (WebCore::HTMLTextFormControlElement::isEmptySuggestedValue):
376         * html/HTMLInputElement.h:
377         (WebCore::HTMLInputElement::isEmptySuggestedValue):
378
379 2011-03-03  Andy Estes  <aestes@apple.com>
380
381         Reviewed by Eric Seidel.
382
383         HTML5 TreeBuilder regressed a Peacekeeper DOM test by 25% (was 40%)
384         https://bugs.webkit.org/show_bug.cgi?id=48719
385         
386         Instead of pushing a fake HTMLHtmlElement onto the open element stack
387         during fragment parsing only to later remove it and reparent its
388         children to the DocumentFragment, push the DocumentFragment directly
389         onto the open element stack as the root node. This requires refactoring
390         HTMLElementStack to hold ContainerNode pointers rather than Element
391         pointers, which has implications for HTMLConstructionSite and
392         HTMLTreeBuilder as well.
393         
394         With this patch, the regression in Peacekeeper from Safari 5.0.3 to ToT
395         is ~14%. However, if you discount the 'domDynamicCreationCreateElement'
396         test, ToT is now ~4% faster than Safari 5.0.3. This indicates that the
397         regression no longer lies in fragment parsing.
398
399         No new tests. No change in behavior.
400
401         * dom/Element.h:
402         (WebCore::Node::hasLocalName):
403         * dom/Node.h:
404         * html/parser/HTMLConstructionSite.cpp:
405         (WebCore::HTMLNames::hasImpliedEndTag):
406         (WebCore::HTMLConstructionSite::HTMLConstructionSite):
407         (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody):
408         (WebCore::HTMLConstructionSite::insertComment):
409         (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
410         (WebCore::HTMLConstructionSite::attachToCurrent):
411         (WebCore::HTMLConstructionSite::insertScriptElement):
412         (WebCore::HTMLConstructionSite::insertTextNode):
413         (WebCore::HTMLConstructionSite::createElement):
414         (WebCore::HTMLConstructionSite::createHTMLElement):
415         (WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion):
416         (WebCore::HTMLConstructionSite::generateImpliedEndTags):
417         (WebCore::HTMLConstructionSite::findFosterSite):
418         (WebCore::HTMLConstructionSite::shouldFosterParent):
419         * html/parser/HTMLConstructionSite.h:
420         (WebCore::HTMLConstructionSite::currentNode):
421         * html/parser/HTMLElementStack.cpp:
422         (WebCore::HTMLNames::isNumberedHeaderElement):
423         (WebCore::HTMLNames::isScopeMarker):
424         (WebCore::HTMLNames::isListItemScopeMarker):
425         (WebCore::HTMLNames::isTableScopeMarker):
426         (WebCore::HTMLNames::isTableBodyScopeMarker):
427         (WebCore::HTMLNames::isTableRowScopeMarker):
428         (WebCore::HTMLNames::isButtonScopeMarker):
429         (WebCore::HTMLNames::isSelectScopeMarker):
430         (WebCore::HTMLElementStack::ElementRecord::ElementRecord):
431         (WebCore::HTMLElementStack::ElementRecord::replaceElement):
432         (WebCore::HTMLElementStack::HTMLElementStack):
433         (WebCore::HTMLElementStack::secondElementIsHTMLBodyElement):
434         (WebCore::HTMLElementStack::popAll):
435         (WebCore::HTMLElementStack::popUntilNumberedHeaderElementPopped):
436         (WebCore::HTMLElementStack::popUntil):
437         (WebCore::HTMLElementStack::popUntilPopped):
438         (WebCore::HTMLElementStack::popUntilTableScopeMarker):
439         (WebCore::HTMLElementStack::popUntilTableBodyScopeMarker):
440         (WebCore::HTMLElementStack::popUntilTableRowScopeMarker):
441         (WebCore::HTMLElementStack::pushHTMLHtmlElement):
442         (WebCore::HTMLElementStack::push):
443         (WebCore::HTMLElementStack::insertAbove):
444         (WebCore::HTMLElementStack::find):
445         (WebCore::HTMLElementStack::topmost):
446         (WebCore::HTMLElementStack::contains):
447         (WebCore::inScopeCommon):
448         (WebCore::HTMLElementStack::hasNumberedHeaderElementInScope):
449         (WebCore::HTMLElementStack::htmlElement):
450         (WebCore::HTMLElementStack::rootNode):
451         (WebCore::HTMLElementStack::pushCommon):
452         * html/parser/HTMLElementStack.h:
453         (WebCore::HTMLElementStack::ElementRecord::element):
454         (WebCore::HTMLElementStack::ElementRecord::node):
455         (WebCore::HTMLElementStack::topNode):
456         * html/parser/HTMLTreeBuilder.cpp:
457         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
458         (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag):
459         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
460         (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup):
461         (WebCore::HTMLTreeBuilder::processStartTag):
462         (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
463         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
464         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
465         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
466         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
467         (WebCore::HTMLTreeBuilder::processEndTag):
468         (WebCore::HTMLTreeBuilder::processEndOfFile):
469         (WebCore::HTMLTreeBuilder::finished):
470         * html/parser/HTMLTreeBuilder.h:
471
472 2011-03-02  Yury Semikhatsky  <yurys@chromium.org>
473
474         Reviewed by Pavel Feldman.
475
476         Web Inspector: inspector protocol should allow different domains to have methods with same name
477         https://bugs.webkit.org/show_bug.cgi?id=55558
478
479         * inspector/CodeGeneratorInspector.pm: each command is now identified by domain + command-name(was command-name only).
480
481 2011-03-02  Pavel Podivilov  <podivilov@chromium.org>
482
483         Reviewed by Yury Semikhatsky.
484
485         Web Inspector: make selected call frame debugger presentation model property.
486         https://bugs.webkit.org/show_bug.cgi?id=55582
487
488         * inspector/front-end/CallStackSidebarPane.js:
489         (WebInspector.CallStackSidebarPane):
490         (WebInspector.CallStackSidebarPane.prototype.update):
491         (WebInspector.CallStackSidebarPane.prototype.set selectedCallFrame):
492         (WebInspector.CallStackSidebarPane.prototype._selectedCallFrameIndex):
493         * inspector/front-end/ConsoleView.js:
494         (WebInspector.ConsoleView.prototype.completions):
495         * inspector/front-end/DebuggerPresentationModel.js:
496         (WebInspector.DebuggerPresentationModel.prototype.set selectedCallFrame):
497         (WebInspector.DebuggerPresentationModel.prototype.get selectedCallFrame):
498         * inspector/front-end/ScriptsPanel.js:
499         (WebInspector.ScriptsPanel):
500         (WebInspector.ScriptsPanel.prototype.getCompletionsOnCallFrame):
501         (WebInspector.ScriptsPanel.prototype._debuggerResumed):
502         (WebInspector.ScriptsPanel.prototype._sourceFrameLoaded):
503         (WebInspector.ScriptsPanel.prototype._callFrameSelected):
504
505 2011-03-03  Jia Pu  <jpu@apple.com>
506
507         Reviewed by Darin Adler.
508
509         On Mac OS X, spelling suggestion panel stops showing up after change set 80121
510         https://bugs.webkit.org/show_bug.cgi?id=55628
511
512         Removed a call to stopCorrectionPanelTimer() to fix a regression introduced by changeset 80121.
513
514         * editing/Editor.cpp:
515         (WebCore::Editor::appliedEditing):
516         * manual-tests/autocorrection/autocorrection-contraction.html:
517
518 2011-03-03  Pavel Podivilov  <podivilov@chromium.org>
519
520         Reviewed by Pavel Feldman.
521
522         Web Inspector: rename "sourceName" to "sourceFileId" in ScriptsPanel.js.
523         https://bugs.webkit.org/show_bug.cgi?id=55569
524
525         sourceFileId better reflects the intention to have unique identifier for each source that is shown in scripts panel.
526
527         * inspector/front-end/DebuggerPresentationModel.js:
528         * inspector/front-end/ScriptsPanel.js:
529
530 2011-03-03  Steve Block  <steveblock@google.com>
531
532         Reviewed by David Levin.
533
534         JavaString API should be implementable by both JSC and V8
535         https://bugs.webkit.org/show_bug.cgi?id=55567
536
537         Remove JavaString's UString operator and replace it with a
538         script-engine-independent impl() method, which returns a
539         StringImpl and can be implemented with both JSC and V8.
540
541         No new tests, refactoring only. 
542
543         * bridge/jni/JNIBridge.h:
544         (JSC::Bindings::JavaString::impl):
545         * bridge/jni/jni_jsobject.mm:
546         (JavaJSObject::call):
547         (JavaJSObject::eval):
548         (JavaJSObject::getMember):
549         (JavaJSObject::setMember):
550         (JavaJSObject::removeMember):
551         * bridge/jni/jsc/JNIBridgeJSC.cpp:
552         (JavaField::valueFromInstance):
553         (JavaField::setValueToInstance):
554         * bridge/jni/jsc/JavaClassJSC.cpp:
555         (JavaClass::JavaClass):
556         * bridge/jni/jsc/JavaInstanceJSC.cpp:
557         (JavaInstance::invokeMethod):
558         * bridge/jni/jsc/JavaStringJSC.h:
559         (JSC::Bindings::JavaStringImpl::impl):
560         * bridge/jni/v8/JavaStringV8.h:
561         (JSC::Bindings::JavaStringImpl::impl):
562
563 2011-03-03  Benjamin Poulain  <ikipou@gmail.com>
564
565         Reviewed by Adam Roben.
566
567         REGRESSION (r79817): Lots of leaks of FloatingObjects seen on SnowLeopard Intel Leaks bot
568         https://bugs.webkit.org/show_bug.cgi?id=55602
569
570         Delete the FloatingObject referenced by m_floatingObjects when clearing the floats.
571
572         The DeprecatedPtrList was deleting the objects automatically due to its autoDelete behavior. The
573         objects need to be deleted manually with ListHashSet.
574
575         * rendering/RenderBlock.cpp:
576         (WebCore::RenderBlock::clearFloats):
577
578 2011-03-03  Hans Wennborg  <hans@chromium.org>
579
580         Reviewed by Jeremy Orlow.
581
582         IndexedDB: Move SQL code, especially for cursors, to IDBBackingStore
583         https://bugs.webkit.org/show_bug.cgi?id=55376
584
585         Move SQL code from IDBKey, IDBKeyRange, IDBIndexBackendImpl,
586         IDBObjectStoreBackendImpl, and especially IDBCursorBackendImpl.
587
588         No new functionality, so no new tests.
589
590         * storage/IDBBackingStore.cpp:
591         (WebCore::lowerCursorWhereFragment):
592         (WebCore::upperCursorWhereFragment):
593         (WebCore::IDBBackingStore::deleteObjectStoreRecord):
594         (WebCore::IDBBackingStore::keyExistsInObjectStore):
595         (WebCore::IDBBackingStore::getObjectViaIndex):
596         (WebCore::keyFromQuery):
597         (WebCore::IDBBackingStore::getPrimaryKeyViaIndex):
598         (WebCore::IDBBackingStore::keyExistsInIndex):
599         (WebCore::CursorImplCommon::CursorImplCommon::continueInternal):
600         (WebCore::CursorImplCommon::ObjectStoreCursorImpl::ObjectStoreCursorImpl):
601         (WebCore::CursorImplCommon::ObjectStoreCursorImpl::objectStoreDataId):
602         (WebCore::CursorImplCommon::ObjectStoreCursorImpl::key):
603         (WebCore::CursorImplCommon::ObjectStoreCursorImpl::value):
604         (WebCore::CursorImplCommon::ObjectStoreCursorImpl::continueFunction):
605         (WebCore::IDBBackingStore::openObjectStoreCursor):
606         (WebCore::ObjectStoreCursorImpl::loadCurrentRow):
607         (WebCore::ObjectStoreCursorImpl::currentRowExists):
608         (WebCore::IndexKeyCursorImpl::IndexKeyCursorImpl):
609         (WebCore::IndexKeyCursorImpl::indexDataId):
610         (WebCore::IndexKeyCursorImpl::key):
611         (WebCore::IndexKeyCursorImpl::primaryKey):
612         (WebCore::IndexKeyCursorImpl::continueFunction):
613         (WebCore::IDBBackingStore::openIndexKeyCursor):
614         (WebCore::IndexKeyCursorImpl::loadCurrentRow):
615         (WebCore::IndexKeyCursorImpl::currentRowExists):
616         (WebCore::IndexCursorImpl::IndexCursorImpl):
617         (WebCore::IndexCursorImpl::indexDataId):
618         (WebCore::IndexCursorImpl::key):
619         (WebCore::IndexCursorImpl::primaryKey):
620         (WebCore::IndexCursorImpl::value):
621         (WebCore::IndexCursorImpl::continueFunction):
622         (WebCore::IDBBackingStore::openIndexCursor):
623         (WebCore::IndexCursorImpl::loadCurrentRow):
624         (WebCore::IndexCursorImpl::currentRowExists):
625         * storage/IDBBackingStore.h:
626         (WebCore::IDBBackingStore::Cursor::~Cursor):
627         * storage/IDBCursorBackendImpl.cpp:
628         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
629         (WebCore::IDBCursorBackendImpl::key):
630         (WebCore::IDBCursorBackendImpl::value):
631         (WebCore::IDBCursorBackendImpl::update):
632         (WebCore::IDBCursorBackendImpl::continueFunctionInternal):
633         (WebCore::IDBCursorBackendImpl::deleteFunction):
634         * storage/IDBCursorBackendImpl.h:
635         (WebCore::IDBCursorBackendImpl::create):
636         * storage/IDBIndexBackendImpl.cpp:
637         (WebCore::IDBIndexBackendImpl::openCursorInternal):
638         (WebCore::IDBIndexBackendImpl::getInternal):
639         (WebCore::IDBIndexBackendImpl::addingKeyAllowed):
640         * storage/IDBIndexBackendImpl.h:
641         * storage/IDBKey.cpp:
642         (WebCore::IDBKey::isEqual):
643         * storage/IDBKey.h:
644         * storage/IDBKeyRange.cpp:
645         * storage/IDBKeyRange.h:
646         * storage/IDBObjectStoreBackendImpl.cpp:
647         (WebCore::IDBObjectStoreBackendImpl::putInternal):
648         (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
649         (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
650         * storage/IDBObjectStoreBackendImpl.h:
651
652 2011-03-03  Peter Kasting  <pkasting@google.com>
653
654         Reviewed by James Robinson.
655
656         Drop redundant "Windows; " from the Windows-specific User Agent string.
657         https://bugs.webkit.org/show_bug.cgi?id=54567
658
659         * StringsNotToBeLocalized.txt:
660
661 2011-03-03  Mario Sanchez Prada  <msanchez@igalia.com>
662
663         Reviewed by Martin Robinson.
664
665         [GTK] Combo boxes should emit object:selection-changed even when collapsed
666         https://bugs.webkit.org/show_bug.cgi?id=53146
667
668         Emit the selection-changed signals when the menu list value has changed
669
670         Test: platform/gtk/accessibility/combo-box-collapsed-selection-changed.html
671
672         * accessibility/gtk/AXObjectCacheAtk.cpp:
673         (WebCore::getListObject): New, return the right list object for
674         menu lists and list boxes.
675         (WebCore::notifyChildrenSelectionChange): Support menu lists.
676         (WebCore::AXObjectCache::postPlatformNotification): Call function
677         notifyChildrenSelectionChange for AXMenuListValueChanged.
678
679 2011-03-03  Ryosuke Niwa  <rniwa@webkit.org>
680
681         Reviewed by Tony Chang.
682
683         applyInlineStyleToPushDown and removeInlineStyleFromElement should take EditingStyle
684         https://bugs.webkit.org/show_bug.cgi?id=55338
685
686         Include wtf/Forward.h instead of wtf/text/String.h
687
688         * editing/EditingStyle.h:
689
690 2011-03-03  Csaba Osztrogonác  <ossy@webkit.org>
691
692         Unreviewed trivial fix after r80169.
693
694         [Qt][WK2] Memory exhausted when building qtwebkit2 on linux
695         https://bugs.webkit.org/show_bug.cgi?id=55484
696
697         * WebCore.pro: Typo fix. We have to use linux-g++* instead of linux-g++.
698
699
700 2011-03-02  MORITA Hajime  <morrita@google.com>
701
702         Reviewed by Kent Tamura.
703
704         [Refactoring] Make ScheduledEvent on FrameView abstract out to ScheduleAction
705         https://bugs.webkit.org/show_bug.cgi?id=54440
706
707         - Extracted FrameActionScheduler from FrameView
708         - Extracted FrameAction abstract class from ScheduledEvent,
709           which has fire() virtual method.
710         - Renamed ScheduledEvent EventFrameAction
711         
712         With this change, Any action can be hooked up to the end of the layout.
713         
714         No new tests. No behavioral change.
715
716         * Android.mk:
717         * CMakeLists.txt:
718         * GNUmakefile.am:
719         * WebCore.gypi:
720         * WebCore.pro:
721         * WebCore.vcproj/WebCore.vcproj:
722         * WebCore.xcodeproj/project.pbxproj:
723         * page/FrameActionScheduler.cpp: Added.
724         (WebCore::EventFrameAction::EventFrameAction):
725         (WebCore::EventFrameAction::fire):
726         (WebCore::FrameActionScheduler::FrameActionScheduler):
727         (WebCore::FrameActionScheduler::~FrameActionScheduler):
728         (WebCore::FrameActionScheduler::isEmpty):
729         (WebCore::FrameActionScheduler::clear):
730         (WebCore::FrameActionScheduler::pause):
731         (WebCore::FrameActionScheduler::resume):
732         (WebCore::FrameActionScheduler::dispatch):
733         (WebCore::FrameActionScheduler::scheduleAction):
734         (WebCore::FrameActionScheduler::scheduleEvent):
735         * page/FrameActionScheduler.h: Added.
736         (WebCore::FrameAction::FrameAction):
737         (WebCore::FrameAction::~FrameAction):
738         (WebCore::FrameActionScheduler::isScheduled):
739         * page/FrameView.cpp:
740         (WebCore::FrameView::FrameView):
741         (WebCore::FrameView::~FrameView):
742         (WebCore::FrameView::layout):
743         (WebCore::FrameView::scheduleEvent):
744         (WebCore::FrameView::pauseScheduledEvents):
745         (WebCore::FrameView::resumeScheduledEvents):
746         (WebCore::FrameView::performPostLayoutTasks):
747         (WebCore::FrameView::updateOverflowStatus):
748         * page/FrameView.h:
749
750 2011-03-02  Sheriff Bot  <webkit.review.bot@gmail.com>
751
752         Unreviewed, rolling out r80201.
753         http://trac.webkit.org/changeset/80201
754         https://bugs.webkit.org/show_bug.cgi?id=55648
755
756         "caused tests to crash on several bots" (Requested by rniwa on
757         #webkit).
758
759         * dom/Element.h:
760         (WebCore::Node::hasTagName):
761         * dom/Node.h:
762         * html/parser/HTMLConstructionSite.cpp:
763         (WebCore::HTMLNames::hasImpliedEndTag):
764         (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody):
765         (WebCore::HTMLConstructionSite::insertComment):
766         (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
767         (WebCore::HTMLConstructionSite::attachToCurrent):
768         (WebCore::HTMLConstructionSite::insertScriptElement):
769         (WebCore::HTMLConstructionSite::insertTextNode):
770         (WebCore::HTMLConstructionSite::createElement):
771         (WebCore::HTMLConstructionSite::createHTMLElement):
772         (WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion):
773         (WebCore::HTMLConstructionSite::generateImpliedEndTags):
774         (WebCore::HTMLConstructionSite::findFosterSite):
775         (WebCore::HTMLConstructionSite::shouldFosterParent):
776         * html/parser/HTMLConstructionSite.h:
777         * html/parser/HTMLElementStack.cpp:
778         (WebCore::HTMLNames::isNumberedHeaderElement):
779         (WebCore::HTMLNames::isScopeMarker):
780         (WebCore::HTMLNames::isListItemScopeMarker):
781         (WebCore::HTMLNames::isTableScopeMarker):
782         (WebCore::HTMLNames::isTableBodyScopeMarker):
783         (WebCore::HTMLNames::isTableRowScopeMarker):
784         (WebCore::HTMLNames::isButtonScopeMarker):
785         (WebCore::HTMLNames::isSelectScopeMarker):
786         (WebCore::HTMLElementStack::ElementRecord::ElementRecord):
787         (WebCore::HTMLElementStack::ElementRecord::replaceElement):
788         (WebCore::HTMLElementStack::HTMLElementStack):
789         (WebCore::HTMLElementStack::secondElementIsHTMLBodyElement):
790         (WebCore::HTMLElementStack::popAll):
791         (WebCore::HTMLElementStack::popUntilTableScopeMarker):
792         (WebCore::HTMLElementStack::popUntilTableBodyScopeMarker):
793         (WebCore::HTMLElementStack::popUntilTableRowScopeMarker):
794         (WebCore::HTMLElementStack::popUntilForeignContentScopeMarker):
795         (WebCore::HTMLElementStack::pushHTMLHtmlElement):
796         (WebCore::HTMLElementStack::push):
797         (WebCore::HTMLElementStack::insertAbove):
798         (WebCore::HTMLElementStack::find):
799         (WebCore::HTMLElementStack::topmost):
800         (WebCore::inScopeCommon):
801         (WebCore::HTMLElementStack::hasNumberedHeaderElementInScope):
802         (WebCore::HTMLElementStack::htmlElement):
803         (WebCore::HTMLElementStack::bodyElement):
804         (WebCore::HTMLElementStack::pushCommon):
805         * html/parser/HTMLElementStack.h:
806         (WebCore::HTMLElementStack::ElementRecord::element):
807         (WebCore::HTMLElementStack::top):
808         * html/parser/HTMLTreeBuilder.cpp:
809         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
810         (WebCore::HTMLTreeBuilder::FragmentParsingContext::finished):
811         (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag):
812         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
813         (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup):
814         (WebCore::HTMLTreeBuilder::processStartTag):
815         (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
816         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
817         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
818         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
819         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
820         (WebCore::HTMLTreeBuilder::processEndTag):
821         (WebCore::HTMLTreeBuilder::processEndOfFile):
822         (WebCore::HTMLTreeBuilder::finished):
823         * html/parser/HTMLTreeBuilder.h:
824
825 2011-03-02  Yury Semikhatsky  <yurys@chromium.org>
826
827         Reviewed by Pavel Feldman.
828
829         Web Inspector: break down InspectorFrontend into domain-specific classes
830         https://bugs.webkit.org/show_bug.cgi?id=55584
831
832         * inspector/CodeGeneratorInspector.pm: InspectorFrontend now contains nested classes for
833         all domains that have event notifications.
834         * inspector/ConsoleMessage.cpp:
835         (WebCore::ConsoleMessage::addToFrontend):
836         (WebCore::ConsoleMessage::updateRepeatCountInConsole):
837         * inspector/ConsoleMessage.h:
838         * inspector/InjectedScriptHost.cpp:
839         (WebCore::InjectedScriptHost::inspectImpl):
840         * inspector/Inspector.idl:
841         * inspector/InspectorAgent.cpp:
842         (WebCore::InspectorAgent::inspectedPageDestroyed):
843         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
844         (WebCore::InspectorAgent::setFrontend):
845         (WebCore::InspectorAgent::disconnectFrontend):
846         (WebCore::InspectorAgent::populateScriptObjects):
847         (WebCore::InspectorAgent::pushDataCollectedOffline):
848         (WebCore::InspectorAgent::didCommitLoad):
849         (WebCore::InspectorAgent::domContentLoadedEventFired):
850         (WebCore::InspectorAgent::loadEventFired):
851         (WebCore::InspectorAgent::postWorkerNotificationToFrontend):
852         (WebCore::InspectorAgent::evaluateForTestInFrontend):
853         (WebCore::InspectorAgent::showPanel):
854         * inspector/InspectorApplicationCacheAgent.cpp:
855         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
856         * inspector/InspectorApplicationCacheAgent.h:
857         * inspector/InspectorConsoleAgent.cpp:
858         (WebCore::InspectorConsoleAgent::setFrontend):
859         * inspector/InspectorConsoleAgent.h:
860         * inspector/InspectorController.cpp:
861         (WebCore::InspectorController::show):
862         (WebCore::InspectorController::close):
863         * inspector/InspectorDOMAgent.cpp:
864         (WebCore::InspectorDOMAgent::setFrontend):
865         * inspector/InspectorDOMAgent.h:
866         * inspector/InspectorDOMStorageResource.cpp:
867         (WebCore::InspectorDOMStorageResource::bind):
868         * inspector/InspectorDOMStorageResource.h:
869         * inspector/InspectorDatabaseAgent.cpp:
870         (WebCore::InspectorDatabaseAgent::FrontendProvider::frontend):
871         (WebCore::InspectorDatabaseAgent::FrontendProvider::FrontendProvider):
872         (WebCore::InspectorDatabaseAgent::setFrontend):
873         * inspector/InspectorDatabaseResource.cpp:
874         (WebCore::InspectorDatabaseResource::bind):
875         * inspector/InspectorDatabaseResource.h:
876         * inspector/InspectorDebuggerAgent.cpp:
877         (WebCore::InspectorDebuggerAgent::setFrontend):
878         * inspector/InspectorDebuggerAgent.h:
879         * inspector/InspectorProfilerAgent.cpp:
880         * inspector/InspectorProfilerAgent.h:
881         (WebCore::InspectorProfilerAgent::setFrontend):
882         (WebCore::InspectorProfilerAgent::clearFrontend):
883         * inspector/InspectorResourceAgent.cpp:
884         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
885         * inspector/InspectorResourceAgent.h:
886         * inspector/InspectorTimelineAgent.cpp:
887         (WebCore::InspectorTimelineAgent::setFrontend):
888         * inspector/InspectorTimelineAgent.h:
889         * inspector/front-end/DOMAgent.js:
890         (WebInspector.DOMDispatcher.prototype.inspectElementRequested):
891         (WebInspector.DOMDispatcher.prototype.addNodesToSearchResult):
892         * inspector/front-end/inspector.js:
893
894 2011-03-02  Kent Tamura  <tkent@chromium.org>
895
896         Unreviewed, a trivial regression fix.
897
898         Fix LocalizedNumberICU regression by r80198 and r80199.
899         https://bugs.webkit.org/show_bug.cgi?id=55629
900
901         * platform/text/LocalizedNumberICU.cpp:
902           We should use U_SUCCESS().
903         (WebCore::createFormatterForCurrentLocale):
904         (WebCore::parseLocalizedNumber):
905
906 2011-03-02  Dan Bernstein  <mitz@apple.com>
907
908         Let Xcode know that Localizable.strings is UTF-16-encoded.
909
910         * WebCore.xcodeproj/project.pbxproj:
911
912 2011-03-02  Andy Estes  <aestes@apple.com>
913
914         Reviewed by Eric Seidel.
915
916         HTML5 TreeBuilder regressed a Peacekeeper DOM test by 25% (was 40%)
917         https://bugs.webkit.org/show_bug.cgi?id=48719
918         
919         Instead of pushing a fake HTMLHtmlElement onto the open element stack
920         during fragment parsing only to later remove it and reparent its
921         children to the DocumentFragment, push the DocumentFragment directly
922         onto the open element stack as the root node. This requires refactoring
923         HTMLElementStack to hold ContainerNode pointers rather than Element
924         pointers, which has implications for HTMLConstructionSite and
925         HTMLTreeBuilder as well.
926         
927         With this patch, the regression in Peacekeeper due to the introduction
928         of the HTML5 fragment parsing algorithm is ~14%. The regression from
929         Safari 5.0.3 is ~24%.
930
931         No new tests. No change in behavior.
932
933         * dom/Element.h:
934         (WebCore::Node::hasLocalName):
935         * dom/Node.h:
936         * html/parser/HTMLConstructionSite.cpp:
937         (WebCore::HTMLNames::hasImpliedEndTag):
938         (WebCore::HTMLConstructionSite::HTMLConstructionSite):
939         (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody):
940         (WebCore::HTMLConstructionSite::insertComment):
941         (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement):
942         (WebCore::HTMLConstructionSite::attachToCurrent):
943         (WebCore::HTMLConstructionSite::insertScriptElement):
944         (WebCore::HTMLConstructionSite::insertTextNode):
945         (WebCore::HTMLConstructionSite::createElement):
946         (WebCore::HTMLConstructionSite::createHTMLElement):
947         (WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion):
948         (WebCore::HTMLConstructionSite::generateImpliedEndTags):
949         (WebCore::HTMLConstructionSite::findFosterSite):
950         (WebCore::HTMLConstructionSite::shouldFosterParent):
951         * html/parser/HTMLConstructionSite.h:
952         (WebCore::HTMLConstructionSite::currentNode):
953         * html/parser/HTMLElementStack.cpp:
954         (WebCore::HTMLNames::isNumberedHeaderElement):
955         (WebCore::HTMLNames::isScopeMarker):
956         (WebCore::HTMLNames::isListItemScopeMarker):
957         (WebCore::HTMLNames::isTableScopeMarker):
958         (WebCore::HTMLNames::isTableBodyScopeMarker):
959         (WebCore::HTMLNames::isTableRowScopeMarker):
960         (WebCore::HTMLNames::isButtonScopeMarker):
961         (WebCore::HTMLNames::isSelectScopeMarker):
962         (WebCore::HTMLElementStack::ElementRecord::ElementRecord):
963         (WebCore::HTMLElementStack::ElementRecord::replaceElement):
964         (WebCore::HTMLElementStack::HTMLElementStack):
965         (WebCore::HTMLElementStack::secondElementIsHTMLBodyElement):
966         (WebCore::HTMLElementStack::popAll):
967         (WebCore::HTMLElementStack::popUntilNumberedHeaderElementPopped):
968         (WebCore::HTMLElementStack::popUntil):
969         (WebCore::HTMLElementStack::popUntilPopped):
970         (WebCore::HTMLElementStack::popUntilTableScopeMarker):
971         (WebCore::HTMLElementStack::popUntilTableBodyScopeMarker):
972         (WebCore::HTMLElementStack::popUntilTableRowScopeMarker):
973         (WebCore::HTMLElementStack::pushHTMLHtmlElement):
974         (WebCore::HTMLElementStack::push):
975         (WebCore::HTMLElementStack::insertAbove):
976         (WebCore::HTMLElementStack::find):
977         (WebCore::HTMLElementStack::topmost):
978         (WebCore::HTMLElementStack::contains):
979         (WebCore::inScopeCommon):
980         (WebCore::HTMLElementStack::hasNumberedHeaderElementInScope):
981         (WebCore::HTMLElementStack::htmlElement):
982         (WebCore::HTMLElementStack::rootNode):
983         (WebCore::HTMLElementStack::pushCommon):
984         * html/parser/HTMLElementStack.h:
985         (WebCore::HTMLElementStack::ElementRecord::element):
986         (WebCore::HTMLElementStack::ElementRecord::node):
987         (WebCore::HTMLElementStack::topNode):
988         * html/parser/HTMLTreeBuilder.cpp:
989         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
990         (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag):
991         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
992         (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup):
993         (WebCore::HTMLTreeBuilder::processStartTag):
994         (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody):
995         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
996         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
997         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
998         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
999         (WebCore::HTMLTreeBuilder::processEndTag):
1000         (WebCore::HTMLTreeBuilder::processEndOfFile):
1001         (WebCore::HTMLTreeBuilder::finished):
1002         * html/parser/HTMLTreeBuilder.h:
1003
1004 2011-03-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1005
1006         Unreviewed, rolling out r80188.
1007         http://trac.webkit.org/changeset/80188
1008         https://bugs.webkit.org/show_bug.cgi?id=55647
1009
1010         Broke the WebKit API tests. (Requested by xenon on #webkit).
1011
1012         * WebCore.exp.in:
1013
1014 2011-03-02  Kent Tamura  <tkent@chromium.org>
1015
1016         Unreviewed, build fix.
1017
1018         * platform/text/LocalizedNumberICU.cpp:
1019         (WebCore::createFormatterForCurrentLocale): Fix a typo.
1020
1021 2011-03-02  Kent Tamura  <tkent@chromium.org>
1022
1023         Reviewed by Darin Adler.
1024
1025         Caching number formatter instances in LocalizedNumber* implementations
1026         https://bugs.webkit.org/show_bug.cgi?id=55629
1027
1028         No new tests. This change doesn't change existing behavior, and is
1029         covered by existing tests.
1030
1031         * platform/text/LocalizedNumberICU.cpp:
1032         (WebCore::createFormatterForCurrentLocale):
1033         (WebCore::numberFormatter): Introduce a function to return a static
1034           instance of NumberFormat.
1035         (WebCore::parseLocalizedNumber): Use numberFormatter().
1036         (WebCore::formatLocalizedNumber): Use numberFormatter().
1037         * platform/text/mac/LocalizedNumberMac.mm:
1038         (WebCore::createFormatterForCurrentLocale):
1039         (WebCore::numberFormatter): Introduce a function to return a static
1040           instance of NSNumberFormatter.
1041         (WebCore::parseLocalizedNumber): Use numberFormatter().
1042         (WebCore::formatLocalizedNumber): Use numberFormatter().
1043
1044 2011-03-02  Levi Weintraub  <leviw@chromium.org>
1045
1046         Reviewed by Ryosuke Niwa.
1047
1048         deprecatedEditingOffset should actually return the expected deprecated value for "after" positions
1049         https://bugs.webkit.org/show_bug.cgi?id=54986
1050
1051         Calls to deprecatedEditingOffset needs to return the expected value for new Before/After positions
1052         until we can update all the call sites to consider the new position types.
1053
1054         No tests. This is intended to simplify the transition to new Positions, not to change behavior.
1055
1056         * dom/Position.cpp:
1057         (WebCore::Position::deprecatedEditingOffset):
1058         (WebCore::Position::offsetForPositionAfterAnchor): Added to do the right thing while ensuring
1059         inline-speed for most calls to deprecatedEditingOffset.
1060         * dom/Position.h:
1061
1062 2011-03-02  Timothy Hatcher  <timothy@apple.com>
1063
1064         Export SerializedScriptValue::create(JSC::ExecState* exec, JSC::JSValue value).
1065
1066         Reviewed by Darin Adler.
1067
1068         * WebCore.exp.in: Added __ZN7WebCore21SerializedScriptValue6createEPN3JSC9ExecStateENS1_7JSValueE.
1069
1070 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
1071
1072         Reviewed by David Levin.
1073
1074         Manually revert ChromiumDataObject changes.
1075         https://bugs.webkit.org/show_bug.cgi?id=55627
1076
1077         No new tests since no functionality should change.
1078
1079         * WebCore.gypi:
1080         * editing/chromium/EditorChromium.cpp:
1081         (WebCore::Editor::newGeneralClipboard):
1082         * page/chromium/EventHandlerChromium.cpp:
1083         (WebCore::EventHandler::createDraggingClipboard):
1084         * platform/chromium/ChromiumDataObject.cpp:
1085         (WebCore::ChromiumDataObject::clearData):
1086         (WebCore::ChromiumDataObject::clearAll):
1087         (WebCore::ChromiumDataObject::clearAllExceptFiles):
1088         (WebCore::ChromiumDataObject::hasData):
1089         (WebCore::ChromiumDataObject::types):
1090         (WebCore::ChromiumDataObject::getData):
1091         (WebCore::ChromiumDataObject::setData):
1092         (WebCore::ChromiumDataObject::ChromiumDataObject):
1093         * platform/chromium/ChromiumDataObject.h:
1094         (WebCore::ChromiumDataObject::create):
1095         (WebCore::ChromiumDataObject::copy):
1096         (WebCore::ChromiumDataObject::urlTitle):
1097         (WebCore::ChromiumDataObject::setUrlTitle):
1098         (WebCore::ChromiumDataObject::htmlBaseUrl):
1099         (WebCore::ChromiumDataObject::setHtmlBaseUrl):
1100         (WebCore::ChromiumDataObject::containsFilenames):
1101         (WebCore::ChromiumDataObject::filenames):
1102         (WebCore::ChromiumDataObject::setFilenames):
1103         (WebCore::ChromiumDataObject::fileExtension):
1104         (WebCore::ChromiumDataObject::setFileExtension):
1105         (WebCore::ChromiumDataObject::fileContentFilename):
1106         (WebCore::ChromiumDataObject::setFileContentFilename):
1107         (WebCore::ChromiumDataObject::fileContent):
1108         (WebCore::ChromiumDataObject::setFileContent):
1109         * platform/chromium/ClipboardChromium.cpp:
1110         * platform/chromium/ClipboardChromium.h:
1111
1112 2011-03-02  David Grogan  <dgrogan@chromium.org>
1113
1114         Reviewed by Jeremy Orlow.
1115
1116         IndexedDB: fire versionchange events when calling setVersion
1117         https://bugs.webkit.org/show_bug.cgi?id=55095
1118
1119         * dom/EventNames.h:
1120         * storage/IDBDatabase.cpp:
1121         (WebCore::IDBDatabase::setVersion):
1122         (WebCore::IDBDatabase::close):
1123         (WebCore::IDBDatabase::onVersionChange):
1124         (WebCore::IDBDatabase::open):
1125         (WebCore::IDBDatabase::enqueueEvent):
1126         (WebCore::IDBDatabase::dispatchEvent):
1127         * storage/IDBDatabase.h:
1128         (WebCore::IDBDatabase::dispatchEvent):
1129         * storage/IDBDatabase.idl:
1130         * storage/IDBDatabaseBackendImpl.cpp:
1131         (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::create):
1132         (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::databaseCallbacks):
1133         (WebCore::IDBDatabaseBackendImpl::PendingSetVersionCall::PendingSetVersionCall):
1134         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
1135         (WebCore::IDBDatabaseBackendImpl::setVersion):
1136         (WebCore::IDBDatabaseBackendImpl::open):
1137         (WebCore::IDBDatabaseBackendImpl::close):
1138         * storage/IDBDatabaseBackendImpl.h:
1139         * storage/IDBDatabaseBackendInterface.h:
1140         * storage/IDBDatabaseCallbacks.h: Copied from Source/WebCore/storage/IDBVersionChangeEvent.cpp.
1141         (WebCore::IDBDatabaseCallbacks::~IDBDatabaseCallbacks):
1142         * storage/IDBFactoryBackendImpl.cpp:
1143         (WebCore::IDBFactoryBackendImpl::open):
1144         * storage/IDBRequest.cpp:
1145         (WebCore::IDBRequest::onSuccess):
1146         * storage/IDBVersionChangeEvent.cpp:
1147         (WebCore::IDBVersionChangeEvent::create):
1148         (WebCore::IDBVersionChangeEvent::IDBVersionChangeEvent):
1149         * storage/IDBVersionChangeEvent.h:
1150         * storage/IDBVersionChangeRequest.cpp:
1151         (WebCore::IDBVersionChangeRequest::onBlocked):
1152
1153 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
1154
1155         Fix assertion failures on Gtk bot.
1156
1157         * page/EventHandler.cpp: (WebCore::EventHandler::tabsToLinks): Removed an overzealous
1158         assertion. We can get here with non-Tab key events when spatial navigation is enabled.
1159
1160 2011-03-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1161
1162         Unreviewed, rolling out r80139.
1163         http://trac.webkit.org/changeset/80139
1164         https://bugs.webkit.org/show_bug.cgi?id=55620
1165
1166         failing and crashing tests on Snow Leopard bot (Requested by
1167         mihaip1 on #webkit).
1168
1169         * page/DOMWindow.cpp:
1170         * page/DOMWindow.h:
1171         * page/Frame.cpp:
1172         (WebCore::Frame::pageDestroyed):
1173         (WebCore::Frame::transferChildFrameToNewDocument):
1174         * page/Frame.h:
1175         (WebCore::Frame::detachFromPage):
1176         * page/Geolocation.cpp:
1177         (WebCore::Geolocation::~Geolocation):
1178         (WebCore::Geolocation::disconnectFrame):
1179         (WebCore::Geolocation::lastPosition):
1180         (WebCore::Geolocation::requestPermission):
1181         (WebCore::Geolocation::startUpdating):
1182         (WebCore::Geolocation::stopUpdating):
1183         * page/Geolocation.h:
1184         * page/GeolocationController.cpp:
1185         (WebCore::GeolocationController::~GeolocationController):
1186         * page/Navigator.cpp:
1187         * page/Navigator.h:
1188         * platform/mock/GeolocationClientMock.cpp:
1189         * platform/mock/GeolocationClientMock.h:
1190
1191 2011-03-02  Jessie Berlin  <jberlin@apple.com>
1192
1193         Reviewed by Adam Roben.
1194
1195         WebKit2: Use CFNetwork Sessions API.
1196         https://bugs.webkit.org/show_bug.cgi?id=55435
1197
1198         Add the ability to create a Private Browsing Storage Session.
1199
1200         * WebCore.exp.in:
1201         Export the symbol for ResourceHandle::setPrivateBrowsingStorageSessionIdentifierBase.
1202
1203         * page/Settings.cpp:
1204         (WebCore::Settings::setPrivateBrowsingEnabled):
1205         Propagate the private browsing state to the ResourceHandle.
1206
1207         * platform/mac/WebCoreSystemInterface.h:
1208         Add the function declaration for wkCreatePrivateStorageSession.
1209         * platform/mac/WebCoreSystemInterface.mm:
1210
1211         * platform/network/ResourceHandle.cpp:
1212         (WebCore::privateStorageSession):
1213         Since the same Private Browsing Storage Session will need to be accessed throughout the loading
1214         code and will need to be used by all web pages and page groups, make it a global static.
1215         (WebCore::privateBrowsingStorageSessionIdentifierBase):
1216         Ditto, since the identifier is needed to create the Private Browsing Storage Session.
1217         (WebCore::ResourceHandle::setPrivateBrowsingEnabled):
1218         If enabled, create and store the Private Browsing Storage Session.
1219         (WebCore::ResourceHandle::privateBrowsingStorageSession):
1220         (WebCore::ResourceHandle::setPrivateBrowsingStorageSessionIdentifierBase):
1221         * platform/network/ResourceHandle.h:
1222
1223         * platform/network/cf/ResourceHandleCFNet.cpp:
1224         (WebCore::ResourceHandle::createPrivateBrowsingStorageSession):
1225         The call to wkCreatePrivateStorageSession needs to be in a file including the correct
1226         version of WKSI.
1227         (WebCore::ResourceHandle::privateBrowsingStorageSessionIdentifierDefaultBase):
1228         Return the bundle identifier.
1229         * platform/network/mac/ResourceHandleMac.mm:
1230         (WebCore::ResourceHandle::createPrivateBrowsingStorageSession):
1231         The call to wkCreatePrivateStorageSession needs to be in a file importing the correct
1232         version of WKSI.
1233         (WebCore::ResourceHandle::privateBrowsingStorageSessionIdentifierDefaultBase):
1234         Return the bundle identifier.
1235
1236 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
1237
1238         Revert frame-specific WebClipboard changes
1239         https://bugs.webkit.org/show_bug.cgi?id=55617
1240
1241         This code is no longer needed since we've decided to use the original
1242         approach to copy/paste drag/drop handling in ClipboardChromium.
1243
1244         No new tests because no functionality changes.
1245
1246         * platform/chromium/ChromiumDataObject.cpp:
1247         (WebCore::ChromiumDataObject::createReadable):
1248         * platform/chromium/ChromiumDataObject.h:
1249         * platform/chromium/ClipboardChromium.cpp:
1250         (WebCore::ClipboardChromium::create):
1251         * platform/chromium/PlatformBridge.h:
1252         * platform/chromium/ReadableDataObject.cpp:
1253         (WebCore::ReadableDataObject::create):
1254         (WebCore::ReadableDataObject::ReadableDataObject):
1255         (WebCore::ReadableDataObject::getData):
1256         (WebCore::ReadableDataObject::urlTitle):
1257         (WebCore::ReadableDataObject::htmlBaseUrl):
1258         (WebCore::ReadableDataObject::filenames):
1259         (WebCore::ReadableDataObject::ensureTypeCacheInitialized):
1260         * platform/chromium/ReadableDataObject.h:
1261
1262 2011-03-02  Tony Chang  <tony@chromium.org>
1263
1264         Unreviewed, rolling chromium DEPS to r76362.
1265
1266         https://bugs.webkit.org/show_bug.cgi?id=55564
1267
1268         * WebCore.gyp/WebCore.gyp: Switch to libjpeg_turbo to match chromium
1269
1270 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
1271
1272         Build fix.
1273
1274         * page/ChromeClient.h: (WebCore::ChromeClient::keyboardUIMode): I didn't mean to commit these
1275         changes yet.
1276
1277 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
1278
1279         Reviewed by John Sullivan.
1280
1281         Clean up WebCore tabsToLinks code a little
1282         https://bugs.webkit.org/show_bug.cgi?id=55606
1283
1284         No change in behavior, so no tests.
1285
1286         * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::isKeyboardFocusable):
1287         This is the only caller of tabsToAllControls(). Renamed this function to tabsToAllFormControls().
1288
1289         * page/EventHandler.cpp:
1290         (WebCore::EventHandler::isKeyboardOptionTab): Moved from platform specific files. This
1291         function cannot be file static, because EventHandlerMac.mm uses it.
1292         (WebCore::eventInvertsTabsToLinksClientCallResult): Merged implementations from platform
1293         specific files. We can just as well have #if here. Renamed for clarity.
1294         (WebCore::EventHandler::tabsToLinks): Rewrote in a way that makes it clearer how "invert"
1295         works.
1296         
1297         * page/EventHandler.h: We no longer need invertSenseOfTabsToLinks() here, it's only used
1298         in EventHandler.cpp.
1299
1300         * page/android/EventHandlerAndroid.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1301         * page/brew/EventHandlerBrew.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1302         * page/chromium/EventHandlerChromium.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1303         * page/efl/EventHandlerEfl.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1304         * page/gtk/EventHandlerGtk.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1305         * page/haiku/EventHandlerHaiku.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1306         * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::tabsToAllFormControls):
1307         * page/qt/EventHandlerQt.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1308         * page/win/EventHandlerWin.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1309         * page/wx/EventHandlerWx.cpp: (WebCore::EventHandler::tabsToAllFormControls):
1310         Updating all port files.
1311
1312 2011-02-28  Jeremy Orlow  <jorlow@chromium.org>
1313
1314         Reviewed by James Robinson.
1315
1316         Split IDBCursor.value into IDBCursor.primaryKey and IDBCursor.value
1317         https://bugs.webkit.org/show_bug.cgi?id=55443
1318
1319         Implement http://www.w3.org/Bugs/Public/show_bug.cgi?id=11948
1320
1321         The idea is to have an IDBCursor and an IDBCursorWithValue interface which
1322         inherits from the former.  index.openKeyCursor will return the former and
1323         index/objectStore.openCursor will return the latter.  We'll add a primaryKey
1324         attribute to IDBCursor.  It will always be the key of the associated object
1325         store entry.  For index.openCursor cursors, the key attribute will be the key
1326         of the index.  For objectStore.openCursors, it'll be the same as the
1327         primaryKey.  The value will be the value of the objectStore entry.
1328
1329         * WebCore.gypi:
1330         * bindings/scripts/CodeGeneratorV8.pm:
1331         * bindings/v8/SerializedScriptValue.cpp:
1332         (WebCore::SerializedScriptValue::deserializeAndSetProperty):
1333         * bindings/v8/SerializedScriptValue.h:
1334         * bindings/v8/custom/V8IDBAnyCustom.cpp:
1335         (WebCore::toV8):
1336         * storage/IDBAny.cpp:
1337         (WebCore::IDBAny::idbCursorWithValue):
1338         (WebCore::IDBAny::set):
1339         * storage/IDBAny.h:
1340         * storage/IDBCursor.cpp:
1341         (WebCore::IDBCursor::create):
1342         (WebCore::IDBCursor::primaryKey):
1343         (WebCore::IDBCursor::value):
1344         * storage/IDBCursor.h:
1345         * storage/IDBCursor.idl:
1346         * storage/IDBCursorBackendImpl.cpp:
1347         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
1348         (WebCore::IDBCursorBackendImpl::primaryKey):
1349         (WebCore::IDBCursorBackendImpl::value):
1350         (WebCore::IDBCursorBackendImpl::update):
1351         (WebCore::IDBCursorBackendImpl::currentRowExists):
1352         (WebCore::IDBCursorBackendImpl::continueFunctionInternal):
1353         (WebCore::IDBCursorBackendImpl::deleteFunction):
1354         (WebCore::IDBCursorBackendImpl::loadCurrentRow):
1355         * storage/IDBCursorBackendImpl.h:
1356         (WebCore::IDBCursorBackendImpl::create):
1357         * storage/IDBCursorBackendInterface.h:
1358         * storage/IDBCursorWithValue.cpp: Copied from Source/WebCore/storage/IDBCursor.idl.
1359         (WebCore::IDBCursorWithValue::create):
1360         (WebCore::IDBCursorWithValue::IDBCursorWithValue):
1361         (WebCore::IDBCursorWithValue::~IDBCursorWithValue):
1362         * storage/IDBCursorWithValue.h: Copied from Source/WebCore/storage/IDBCursorBackendInterface.h.
1363         * storage/IDBCursorWithValue.idl: Copied from Source/WebCore/storage/IDBCursor.idl.
1364         * storage/IDBIndex.cpp:
1365         (WebCore::IDBIndex::openCursor):
1366         (WebCore::IDBIndex::openKeyCursor):
1367         * storage/IDBIndexBackendImpl.cpp:
1368         (WebCore::IDBIndexBackendImpl::openCursorInternal):
1369         (WebCore::IDBIndexBackendImpl::openCursor):
1370         (WebCore::IDBIndexBackendImpl::openKeyCursor):
1371         * storage/IDBIndexBackendImpl.h:
1372         * storage/IDBObjectStore.cpp:
1373         (WebCore::IDBObjectStore::openCursor):
1374         * storage/IDBObjectStoreBackendImpl.cpp:
1375         (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
1376         * storage/IDBRequest.cpp:
1377         (WebCore::IDBRequest::IDBRequest):
1378         (WebCore::IDBRequest::setCursorType):
1379         (WebCore::IDBRequest::onSuccess):
1380         (WebCore::IDBRequest::dispatchEvent):
1381         * storage/IDBRequest.h:
1382
1383 2011-03-02  Aravind Akella  <aravind.akella@nokia.com>
1384
1385          Reviewed by Csaba Osztrogonác.
1386
1387          [Qt][WK2] Memory exhausted when building qtwebkit2 on linux
1388          https://bugs.webkit.org/show_bug.cgi?id=55484
1389
1390          Using AllInOne files to avoid memory exhaustion for debug 
1391          builds on 32 bit linux machines.
1392
1393          No new tests. Fixing a build issue.
1394
1395          * WebCore.pro:
1396
1397 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
1398
1399         Reviewed by David Levin.
1400
1401         Add feature define for data transfer items
1402         https://bugs.webkit.org/show_bug.cgi?id=55510
1403
1404         * Configurations/FeatureDefines.xcconfig:
1405         * GNUmakefile.am:
1406         * features.pri:
1407
1408 2011-03-02  Dimitri Glazkov  <dglazkov@chromium.org>
1409
1410         Update location of media-file.js, which was moved in r79630.
1411
1412         * manual-tests/media-controls.html: Updated location.
1413
1414 2011-03-02  Sheriff Bot  <webkit.review.bot@gmail.com>
1415
1416         Unreviewed, rolling out r80156.
1417         http://trac.webkit.org/changeset/80156
1418         https://bugs.webkit.org/show_bug.cgi?id=55604
1419
1420         "Broke SL compile" (Requested by tonyg-cr on #webkit).
1421
1422         * bridge/jni/JNIBridge.h:
1423         (JSC::Bindings::JavaString::operator UString):
1424         * bridge/jni/jni_jsobject.mm:
1425         (JavaJSObject::call):
1426         (JavaJSObject::eval):
1427         (JavaJSObject::getMember):
1428         (JavaJSObject::setMember):
1429         (JavaJSObject::removeMember):
1430         * bridge/jni/jsc/JavaClassJSC.cpp:
1431         (JavaClass::JavaClass):
1432         * bridge/jni/jsc/JavaStringJSC.h:
1433         (JSC::Bindings::JavaStringImpl::uString):
1434         * bridge/jni/v8/JavaStringV8.h:
1435
1436 2011-03-02  Steve Block  <steveblock@google.com>
1437
1438         Reviewed by Jeremy Orlow.
1439
1440         JavaString API should be implementable by both JSC and V8
1441         https://bugs.webkit.org/show_bug.cgi?id=55567
1442
1443         Remove JavaString's UString operator and replace it with a
1444         script-engine-independent impl() method, which returns a
1445         StringImpl and can be implemented with both JSC and V8.
1446
1447         No new tests, refactoring only.
1448
1449         * bridge/jni/JNIBridge.h:
1450         (JSC::Bindings::JavaString::impl):
1451         * bridge/jni/jni_jsobject.mm:
1452         (JavaJSObject::call):
1453         (JavaJSObject::eval):
1454         (JavaJSObject::getMember):
1455         (JavaJSObject::setMember):
1456         (JavaJSObject::removeMember):
1457         * bridge/jni/jsc/JavaClassJSC.cpp:
1458         (JavaClass::JavaClass):
1459         * bridge/jni/jsc/JavaStringJSC.h:
1460         (JSC::Bindings::JavaStringImpl::impl):
1461         * bridge/jni/v8/JavaStringV8.h:
1462         (JSC::Bindings::JavaStringImpl::impl):
1463
1464 2011-03-02  Mihai Parparita  <mihaip@chromium.org>
1465
1466         Reviewed by Dimitri Glazkov.
1467
1468         Add CRASH() for CSSSelector double frees
1469         https://bugs.webkit.org/show_bug.cgi?id=55596
1470         
1471         To help track down bug 53045, add a CRASH call when the CSSSelector
1472         destructor is invoked more than once.
1473
1474         Just a check, no new tests necessary.
1475
1476         * css/CSSSelector.h:
1477         (WebCore::CSSSelector::CSSSelector):
1478         (WebCore::CSSSelector::~CSSSelector):
1479
1480 2011-03-02  Carol Szabo  <carol.szabo@nokia.com>
1481
1482         Reviewed by David Hyatt  <hyatt@apple.com>
1483
1484         content property doesn't support quotes
1485         https://bugs.webkit.org/show_bug.cgi?id=6503
1486
1487         Added full support for quotes as defined by CSS 2.1.
1488
1489         Tests: fast/css/content/content-quotes-01.html
1490                fast/css/content/content-quotes-02.html
1491                fast/css/content/content-quotes-03.html
1492                fast/css/content/content-quotes-04.html
1493                fast/css/content/content-quotes-05.html
1494                fast/css/content/content-quotes-06.html
1495
1496         * Android.mk:
1497         * CMakeLists.txt:
1498         * GNUmakefile.am:
1499         * WebCore.gypi:
1500         * WebCore.pro:
1501         * WebCore.vcproj/WebCore.vcproj:
1502         * WebCore.xcodeproj/project.pbxproj:
1503         Added RenderQuote.cpp/h and QuotesData.cpp/h to the dependency lists
1504         * css/CSSParser.cpp:
1505         (WebCore::CSSParser::parseValue):
1506         (WebCore::CSSParser::parseQuotes):
1507         * css/CSSParser.h:
1508         Added needed stylesheet parsing support for quotes,
1509         (no-)open-quote and (no-)close-quote
1510         * css/CSSStyleSelector.cpp:
1511         (WebCore::CSSStyleSelector::applyProperty):
1512         Handled setting of the new quotes RenderStyle property and added
1513         handling of quotes for the content property.
1514         * css/html.css:
1515         (q:before):
1516         (q:after):
1517         replaced the '"' workaround with open/close-quote
1518         * rendering/RenderBlockLineLayout.cpp:
1519         (WebCore::dirtyLineBoxesForRenderer):
1520         Made RenderQuote behave like RenderCounter.
1521         Needed to ensure that the Quote text is calculated before layout,
1522         just as it is for RenderCounter.
1523         * rendering/RenderObject.h:
1524         (WebCore::RenderObject::isQuote):
1525         * rendering/RenderObjectChildList.cpp:
1526         (WebCore::RenderObjectChildList::removeChildNode):
1527         (WebCore::RenderObjectChildList::appendChildNode):
1528         (WebCore::RenderObjectChildList::insertChildNode):
1529         Handled updating of quote depth when renderers are added and removed
1530         from the tree.
1531         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
1532         Added support for Quote content.
1533         * rendering/RenderQuote.cpp: Added.
1534         (WebCore::adjustDepth):
1535         (WebCore::RenderQuote::RenderQuote):
1536         (WebCore::RenderQuote::~RenderQuote):
1537         (WebCore::RenderQuote::renderName):
1538         (WebCore::RenderQuote::placeQuote):
1539         (WebCore::LanguageData::operator<):
1540         (WebCore::defaultLanguageQuotes):
1541         (WebCore::quotesMap):
1542         (WebCore::quotesForLanguage):
1543         (WebCore::defaultQuotes):
1544         (WebCore::RenderQuote::originalText):
1545         (WebCore::RenderQuote::computePreferredLogicalWidths):
1546         (WebCore::RenderQuote::rendererSubtreeAttached):
1547         (WebCore::RenderQuote::rendererRemovedFromTree):
1548         (WebCore::RenderQuote::styleDidChange):
1549         * rendering/RenderQuote.h: Added.
1550         (WebCore::RenderQuote::isQuote):
1551         (WebCore::toRenderQuote):
1552         * rendering/RenderingAllInOne.cpp:
1553         Included RenderQuote.cpp
1554         * rendering/style/StyleAllInOne.cpp:
1555         Included QuotesData.cpp
1556         * rendering/style/ContentData.cpp:
1557         (WebCore::ContentData::dataEquivalent):
1558         Checked for quotetype identity.
1559         (WebCore::ContentData::deleteContent):
1560         Accounted for the new QUOTE_TYPE.
1561         * rendering/style/ContentData.h:
1562         (WebCore::ContentData::isQuote):
1563         (WebCore::ContentData::quote):
1564         (WebCore::ContentData::setQuote):
1565         * rendering/style/QuotesData.cpp: Added.
1566         (WebCore::QuotesData::create):
1567         (WebCore::QuotesData::operator==):
1568         (WebCore::QuotesData::~QuotesData):
1569         * rendering/style/QuotesData.h: Added.
1570         (WebCore::QuotesData::data):
1571         (WebCore::QuotesData::operator delete):
1572         (WebCore::QuotesData::QuotesData):
1573         * rendering/style/RenderStyle.cpp:
1574         (WebCore::RenderStyle::setContent):
1575         (WebCore::RenderStyle::setQuotes):
1576         * rendering/style/RenderStyle.h:
1577         (WebCore::InheritedFlags::quotes):
1578         (WebCore::InheritedFlags::setQuotes):
1579         * rendering/style/RenderStyleConstants.h:
1580         * rendering/style/StyleAllInOne.cpp:
1581         Added QuotesData.cpp to the included files list.
1582         * rendering/style/StyleRareInheritedData.cpp:
1583         (WebCore::StyleRareInheritedData::operator==):
1584         Included quotes in equality check.
1585         * rendering/style/StyleRareInheritedData.h:
1586         Added quotes
1587
1588 2011-03-02  Antti Koivisto  <antti@apple.com>
1589
1590         Reviewed by Dave Hyatt.
1591
1592         Selector usage flags should not be set by the CSS parser
1593         https://bugs.webkit.org/show_bug.cgi?id=55573
1594         
1595         Currently flags like Document::usesSiblingRules() are set directly by the CSS parser. This is wrong as 
1596         we may parse stylesheets that are not actually used for document rendering. This is especially bad when
1597         the page uses querySelectorAll(). As a result we may end up in various performance penalty boxes 
1598         triggered by complex selectors for no good reason.
1599         
1600         - Use the selector traversal in style selector constructor to figure out which flags
1601           are actually needed for the currently active style sheets.
1602         - Remove the selector flag related code from the CSS parser/grammar.
1603         - Remove the usesDescendantRules flag completely. We have descendant rules in the default
1604           style sheet, every document uses them.
1605
1606         * css/CSSGrammar.y:
1607         * css/CSSParser.cpp:
1608         (WebCore::CSSParser::updateSpecifiersWithElementName):
1609         * css/CSSStyleSelector.cpp:
1610         (WebCore::collectSiblingRulesInDefaultStyle):
1611         (WebCore::CSSStyleSelector::CSSStyleSelector):
1612         (WebCore::CSSStyleSelector::Features::Features):
1613         (WebCore::CSSStyleSelector::Features::~Features):
1614         (WebCore::CSSStyleSelector::locateCousinList):
1615         (WebCore::CSSStyleSelector::matchesSiblingRules):
1616         (WebCore::CSSStyleSelector::canShareStyleWithElement):
1617         (WebCore::CSSStyleSelector::locateSharedStyle):
1618         (WebCore::collectFeaturesFromSelector):
1619         (WebCore::collectFeaturesFromList):
1620         (WebCore::RuleSet::collectFeatures):
1621         * css/CSSStyleSelector.h:
1622         (WebCore::CSSStyleSelector::usesSiblingRules):
1623         (WebCore::CSSStyleSelector::usesFirstLineRules):
1624         (WebCore::CSSStyleSelector::usesBeforeAfterRules):
1625         (WebCore::CSSStyleSelector::usesLinkRules):
1626         * dom/Document.cpp:
1627         (WebCore::Document::Document):
1628         (WebCore::Document::recalcStyle):
1629         (WebCore::Document::createStyleSelector):
1630         * dom/Document.h:
1631         (WebCore::Document::usesSiblingRules):
1632         (WebCore::Document::setUsesSiblingRules):
1633         (WebCore::Document::usesFirstLineRules):
1634         (WebCore::Document::usesBeforeAfterRules):
1635         (WebCore::Document::setUsesBeforeAfterRules):
1636         * dom/Element.cpp:
1637         (WebCore::Element::recalcStyle):
1638
1639 2011-03-02  Brian Weinstein  <bweinstein@apple.com>
1640
1641         Fix fallout from a last minute renaming.
1642
1643         * platform/network/cf/CookieStorageCFNet.cpp:
1644         (WebCore::startObservingCookieChanges):
1645         (WebCore::stopObservingCookieChanges):
1646
1647 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
1648
1649         Reviewed by Adam Roben.
1650
1651         Part of WebKit2: Need a way to send notifications to client when cookies change
1652         https://bugs.webkit.org/show_bug.cgi?id=55427
1653         <rdar://problem/9056027>
1654         
1655         Add functions on CookieStorage that allow listening for changes in cookies. When
1656         the cookies are changed, they call through to CookiesStrategy::notifyCookiesChanged.
1657
1658         No change in behavior requiring tests.
1659
1660         * platform/CookiesStrategy.h: Added.
1661         (WebCore::CookiesStrategy::~CookiesStrategy):
1662
1663         * platform/PlatformStrategies.h:
1664         (WebCore::PlatformStrategies::cookiesStrategy):
1665         (WebCore::PlatformStrategies::PlatformStrategies):
1666
1667         * platform/network/CookieStorage.h: Add new function declarations.
1668
1669         * platform/network/cf/CookieStorageCFNet.cpp:
1670         (WebCore::notifyCookiesChangedOnMainThread): Call through to CookiesStrategy::notifyCookiesChanged.
1671         (WebCore::notifyCookiesChanged): Call notifyCookiesChangedOnMainThread on the main thread.
1672         (WebCore::beginObservingCookieChanges): Set up cookie observers on the loader run loop.
1673         (WebCore::finishObservingCookieChanges): Remove our cookie observers from the loader run loop.
1674
1675         * platform/network/mac/CookieStorageMac.mm:
1676         (-[CookieStorageObjCAdapter notifyCookiesChangedOnMainThread]): Call through to CookiesStrategy::notifyCookiesChanged.
1677         (-[CookieStorageObjCAdapter cookiesChangedNotificationHandler:]): Call notifyCookiesChangedOnMainThread on 
1678             the main thread.
1679         (-[CookieStorageObjCAdapter registerForCookieChangeNotifications]): Set up the observer for cookie change notifications.
1680         (-[CookieStorageObjCAdapter unregisterForCookieChangeNotifications]): Remove the observer for cookie change notifications.
1681         (WebCore::beginObservingCookieChanges): Create our CookieStorageObjCAdapter, and call registerForCookieChangeNotifications.
1682         (WebCore::finishObservingCookieChanges): Call unregisterForCookieChangeNotifications.
1683         
1684         Add new file.
1685         * WebCore.vcproj/WebCore.vcproj:
1686         * WebCore.xcodeproj/project.pbxproj: Set role on files we need to include in WebKit to private.
1687
1688 2011-03-02  Sergey Glazunov  <serg.glazunov@gmail.com>
1689
1690         Reviewed by Dimitri Glazkov.
1691
1692         A WebKitCSSKeyframesRule object should set itself as the parent for inserted rules
1693         https://bugs.webkit.org/show_bug.cgi?id=55488
1694
1695         Test: fast/css/css-keyframe-parent.html
1696
1697         * css/WebKitCSSKeyframesRule.cpp:
1698         (WebCore::WebKitCSSKeyframesRule::append):
1699
1700 2011-03-02  Sergio Villar Senin  <svillar@igalia.com>
1701
1702         Reviewed by Martin Robinson.
1703
1704         [GTK] Add support for external protocol handlers
1705         https://bugs.webkit.org/show_bug.cgi?id=55473
1706
1707         Do not unconditionally create and replace the SoupRequester of the
1708         SoupSession if there is already one. No new tests needed as we
1709         just allow clients to create their our SoupRequesters.
1710
1711         * platform/network/soup/ResourceHandleSoup.cpp:
1712         (WebCore::ensureSessionIsInitialized):
1713
1714 2011-03-02  John Knottenbelt  <jknotten@chromium.org>
1715
1716         Reviewed by jknotten@chromium.org.
1717
1718         Fix build-breakage when GEOLOCATION not enabled.
1719         https://bugs.webkit.org/show_bug.cgi?id=55586
1720
1721         Geolocation::reset needs to be defined if ENABLE(GEOLOCATION)
1722         is not true.
1723
1724         * page/Geolocation.cpp:
1725         (WebCore::Geolocation::reset):
1726
1727 2011-03-02  Pavel Feldman  <pfeldman@chromium.org>
1728
1729         Reviewed by Yury Semikhatsky.
1730
1731         Web Inspector: remove InjectedScriptHost -> DOMAgent dependency.
1732         https://bugs.webkit.org/show_bug.cgi?id=55575
1733
1734         * bindings/js/JSInjectedScriptHostCustom.cpp:
1735         (WebCore::JSInjectedScriptHost::inspectedNode):
1736         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
1737         (WebCore::V8InjectedScriptHost::inspectedNodeCallback):
1738         * inspector/ConsoleMessage.cpp:
1739         (WebCore::ConsoleMessage::addToFrontend):
1740         * inspector/InjectedScript.cpp:
1741         (WebCore::InjectedScript::evaluateOn):
1742         (WebCore::InjectedScript::wrapObject):
1743         (WebCore::InjectedScript::wrapNode):
1744         (WebCore::InjectedScript::inspectNode):
1745         (WebCore::InjectedScript::nodeAsScriptValue):
1746         * inspector/InjectedScript.h:
1747         * inspector/InjectedScriptHost.cpp:
1748         (WebCore::InjectedScriptHost::addInspectedNode):
1749         (WebCore::InjectedScriptHost::clearInspectedNodes):
1750         (WebCore::InjectedScriptHost::copyText):
1751         (WebCore::InjectedScriptHost::inspectedNode):
1752         * inspector/InjectedScriptHost.h:
1753         * inspector/InjectedScriptHost.idl:
1754         * inspector/InjectedScriptSource.js:
1755         * inspector/Inspector.idl:
1756         * inspector/InspectorDOMAgent.cpp:
1757         (WebCore::InspectorDOMAgent::discardBindings):
1758         (WebCore::InspectorDOMAgent::addInspectedNode):
1759         (WebCore::InspectorDOMAgent::resolveNode):
1760         (WebCore::InspectorDOMAgent::injectedScriptForNode):
1761         * inspector/InspectorDOMAgent.h:
1762         * inspector/InspectorRuntimeAgent.cpp:
1763         (WebCore::InspectorRuntimeAgent::evaluateOn):
1764         * inspector/InspectorRuntimeAgent.h:
1765         * inspector/front-end/ElementsTreeOutline.js:
1766         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
1767         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.resolvedNode):
1768         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
1769         * inspector/front-end/PropertiesSidebarPane.js:
1770         (WebInspector.PropertiesSidebarPane.prototype.update.nodeResolved):
1771         (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
1772         (WebInspector.PropertiesSidebarPane.prototype.update.fillSection):
1773         (WebInspector.PropertiesSidebarPane.prototype.update):
1774         * inspector/front-end/RemoteObject.js:
1775         (WebInspector.RemoteObject.resolveNode):
1776         (WebInspector.RemoteObject.prototype.pushNodeToFrontend):
1777         (WebInspector.RemoteObject.prototype.evaluate):
1778
1779 2011-01-21  John Knottenbelt  <jknotten@chromium.org>
1780
1781         Reviewed by Dmitry Titov.
1782
1783         Detach Geolocation from Frame when Page destroyed.
1784         https://bugs.webkit.org/show_bug.cgi?id=52877
1785
1786         On Page destruction, any outstanding Geolocation permission
1787         requests should be cancelled, because the Geolocation can only
1788         access the client indirectly via m_frame->page().
1789
1790         Additionally, if the Frame is reparented to another page, the
1791         Geolocation should cancel watches, single-shots and requests on
1792         the old page.
1793
1794         Page destruction is signalled by a call to the
1795         Frame::pageDestroyed() method. This calls Frame::detachFromPage,
1796         where we extend the call chain to Geolocation::detachFromPage()
1797         where we call Geolocation::reset() which detaches from the
1798         GeolocationController, cancels requests, watches and single shots,
1799         and sets the permission state back to Unknown.
1800
1801         We also now call detachFromPage when the frame reparented in
1802         Frame::transferChildFrameToNewDocument.
1803
1804         Frame::pageDestroyed() is also called by FrameLoader even though
1805         the page is not destroyed. We should still cancel permission
1806         requests, because the GeolocationClient will become inaccessible
1807         to the Geolocation object after this call.
1808
1809         Since GeolocationController is owned by Page, and all Geolocation
1810         objects will now unsubscribe from the GeolocationController on
1811         pageDetached(), we no longer need to call stopUpdating() from the
1812         GeolocationController's destructor. Instead we can simply assert
1813         that there should be no no observers. See related bug
1814         https://bugs.webkit.org/show_bug.cgi?id=52216 .
1815
1816         Introduced new method 'numberOfPendingPermissionRequests' on
1817         GeolocationClientMock to count the number of outstanding pending
1818         permission requests. This provides a reusable implementation for
1819         client-based implementations of the LayoutTestController's
1820         numberOfPendingGeolocationPermissionRequests method.
1821
1822         Tests: fast/dom/Geolocation/iframe-reparent.html
1823                fast/dom/Geolocation/page-reload-cancel-permission-requests.html
1824
1825         * page/DOMWindow.cpp:
1826         (WebCore::DOMWindow::resetGeolocationPermissions):
1827         * page/DOMWindow.h:
1828         * page/Frame.cpp:
1829         (WebCore::Frame::detachFromPage):
1830         (WebCore::Frame::pageDestroyed):
1831         (WebCore::Frame::transferChildFrameToNewDocument):
1832         * page/Frame.h:
1833         * page/Geolocation.cpp:
1834         (WebCore::Geolocation::~Geolocation):
1835         (WebCore::Geolocation::page):
1836         (WebCore::Geolocation::reset):
1837         (WebCore::Geolocation::disconnectFrame):
1838         (WebCore::Geolocation::lastPosition):
1839         (WebCore::Geolocation::requestPermission):
1840         (WebCore::Geolocation::startUpdating):
1841         (WebCore::Geolocation::stopUpdating):
1842         * page/Geolocation.h:
1843         * page/GeolocationController.cpp:
1844         (WebCore::GeolocationController::~GeolocationController):
1845         * page/Navigator.cpp:
1846         (WebCore::Navigator::resetGeolocationPermissions):
1847         * page/Navigator.h:
1848         * platform/mock/GeolocationClientMock.cpp:
1849         (WebCore::GeolocationClientMock::numberOfPendingPermissionRequests):
1850         * platform/mock/GeolocationClientMock.h:
1851
1852 2011-03-02  Mikhail Naganov  <mnaganov@chromium.org>
1853
1854         Reviewed by Pavel Feldman.
1855
1856         Web Inspector: [Chromium] Landing detailed heap snapshots, part 4.
1857         https://bugs.webkit.org/show_bug.cgi?id=55563
1858
1859         This part adds implementations for data grids used to display
1860         different heap snapshots projections. We are almost done.
1861
1862         * English.lproj/localizedStrings.js:
1863         * WebCore.gypi:
1864         * bindings/v8/ScriptHeapSnapshot.cpp:
1865         (WebCore::ScriptHeapSnapshot::getExactRetainedSize):
1866         * bindings/v8/ScriptHeapSnapshot.h:
1867         * inspector/Inspector.idl:
1868         * inspector/InspectorProfilerAgent.cpp:
1869         (WebCore::InspectorProfilerAgent::getExactHeapSnapshotNodeRetainedSize):
1870         * inspector/InspectorProfilerAgent.h:
1871         * inspector/front-end/DetailedHeapshotGridNodes.js:
1872         (WebInspector.HeapSnapshotObjectNode):
1873         (WebInspector.HeapSnapshotObjectNode.prototype._createProvider):
1874         (WebInspector.HeapSnapshotInstanceNode):
1875         (WebInspector.HeapSnapshotInstanceNode.prototype._createProvider):
1876         (WebInspector.HeapSnapshotDominatorObjectNode):
1877         (WebInspector.HeapSnapshotDominatorObjectNode.prototype._createProvider):
1878         (MixInSnapshotNodeFunctions):
1879         * inspector/front-end/DetailedHeapshotView.js:
1880         (WebInspector.HeapSnapshotContainmentDataGrid):
1881         (WebInspector.HeapSnapshotSortableDataGrid):
1882         (WebInspector.HeapSnapshotConstructorsDataGrid):
1883         (WebInspector.HeapSnapshotDiffDataGrid):
1884         (WebInspector.HeapSnapshotDominatorsDataGrid):
1885         (WebInspector.HeapSnapshotRetainingPathsList):
1886         (WebInspector.DetailedHeapshotView.profileCallback):
1887         (WebInspector.DetailedHeapshotView):
1888         * inspector/front-end/HeapSnapshot.js:
1889         (WebInspector.HeapSnapshotEdge.prototype.get isInvisible):
1890         (WebInspector.HeapSnapshotEdge.prototype.toString):
1891         (WebInspector.HeapSnapshot.prototype._init):
1892         (WebInspector.HeapSnapshot.prototype._buildAggregatesIndexes):
1893         (WebInspector.HeapSnapshot.prototype._markInvisibleEdges):
1894         (WebInspector.HeapSnapshotPathFinder.prototype._skipEdge):
1895         * inspector/front-end/Images/helpButtonGlyph.png: Added.
1896         * inspector/front-end/Panel.js:
1897         (WebInspector.Panel.prototype.reset):
1898         * inspector/front-end/Popover.js:
1899         (WebInspector.Popover):
1900         (WebInspector.Popover.prototype.show):
1901         (WebInspector.Popover.prototype.hide):
1902         (WebInspector.Popover.prototype.get visible):
1903         * inspector/front-end/ProfilesPanel.js:
1904         (WebInspector.ProfilesPanel.prototype._reset):
1905         (WebInspector.ProfilesPanel.prototype.getProfile):
1906         * inspector/front-end/heapProfiler.css:
1907         * inspector/front-end/inspector.js:
1908         (WebInspector.resetFocusElement):
1909
1910 2011-03-02  David Kilzer  <ddkilzer@apple.com>
1911
1912         <http://webkit.org/b/55534> Clean up macros in Extensions3DOpenGL.cpp
1913
1914         Reviewed by Darin Adler.
1915
1916         Change "#if GL_APPLE_vertex_array_object" macros to check that
1917         GL_APPLE_vertex_array_object is both defined and non-zero.
1918
1919         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
1920         (WebCore::Extensions3DOpenGL::createVertexArrayOES):
1921         (WebCore::Extensions3DOpenGL::deleteVertexArrayOES): Remove
1922         empty #else clause.
1923         (WebCore::Extensions3DOpenGL::isVertexArrayOES):
1924         (WebCore::Extensions3DOpenGL::bindVertexArrayOES): Add early
1925         return check.  Remove #else clause that would never have
1926         compiled (since array is not a WTF::String).
1927
1928 2011-03-01  Ryosuke Niwa  <rniwa@webkit.org>
1929
1930         Reviewed by Darin Adler.
1931
1932         Assertion failure after removing a selection in keydown handler
1933         https://bugs.webkit.org/show_bug.cgi?id=51389
1934
1935         The bug was caused by textWillBeReplaced's not always updating selection, and
1936         shouldRemovePositionAfterAdoptingTextReplacement's not moving the end offset when it's
1937         at the end of replaced data.
1938
1939         Fixed the bug by always updating selection in textWillBeReplaced and fixing the condition
1940         to move the offset in shouldRemovePositionAfterAdoptingTextReplacement. Also added a call
1941         to setSelection instead of directly modifying m_selection to notify all the clients.
1942         Namely, the call to EditorClient::respondToChangedSelection is required for
1943         setting-input-value-cancel-ime-composition.html.
1944
1945         Note that we must update layout before calling setSelection because setSelection calls
1946         setFocusedNodeIfNeeded and it requires layout to be up-to-date. Without this call, tests
1947         such as fast/forms/input-appearance-maxlength.html hits an assertion in Node::isFocusable.
1948
1949         Test: editing/input/setting-input-value-cancel-ime-composition.html
1950
1951         * editing/SelectionController.cpp:
1952         (WebCore::shouldRemovePositionAfterAdoptingTextReplacement): When replacing text, the offset
1953         of the selection end must be updated even if it was at the end of the replaced text.
1954         e.g. removing "world" from "hello world] WebKit" should result in "hello ] WebKit" not
1955         "hello  WebK[it". Note we don't move the offset if no text is removed because appending
1956         "world" to "hello ]" should result in "hello ]world" not "hello world]".
1957         (WebCore::SelectionController::textWillBeReplaced): Calls setSelection to update
1958         the selection instead of modifying m_selection directly.
1959
1960 2011-03-02  Andrey Adaikin  <aandrey@google.com>
1961
1962         Reviewed by Pavel Feldman.
1963
1964         Web Inspector: highlighted line does not span horizonally in scripts panel while debugging.
1965         https://bugs.webkit.org/show_bug.cgi?id=54675
1966
1967         * inspector/front-end/TextViewer.js:
1968         (WebInspector.TextViewer.prototype._syncScroll):
1969         (WebInspector.TextEditorChunkedPanel.prototype._buildChunks):
1970         (WebInspector.TextEditorChunkedPanel.prototype.makeLineAChunk):
1971         (WebInspector.TextEditorGutterPanel):
1972         (WebInspector.TextEditorGutterPanel.prototype._expandChunks):
1973         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
1974         (WebInspector.TextEditorMainPanel):
1975         (WebInspector.TextEditorMainPanel.prototype.set readOnly):
1976         (WebInspector.TextEditorMainPanel.prototype._getSelection):
1977         (WebInspector.TextEditorMainPanel.prototype._selectionToPosition):
1978         (WebInspector.TextEditorMainPanel.prototype._handleDOMSubtreeModified):
1979         (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
1980         (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
1981         * inspector/front-end/textViewer.css:
1982         (.inner-container):
1983
1984 2011-03-02  Oleg Romashin  <romaxa@gmail.com>
1985
1986         Reviewed by Andreas Kling.
1987
1988         Fixing inspector compilation with JAVASCRIPT_DEBUGGER disabled
1989         https://bugs.webkit.org/show_bug.cgi?id=55477
1990
1991         * inspector/InspectorAgent.cpp:
1992         (WebCore::InspectorAgent::populateScriptObjects):
1993
1994 2011-03-02  Kent Tamura  <tkent@chromium.org>
1995
1996         Unreviewed, a trivial fix for r80096.
1997
1998         REGRESSION (r80096): [Chromium] fast/forms/input-number-unacceptable-style.html failure
1999         https://bugs.webkit.org/show_bug.cgi?id=55562
2000
2001         * platform/text/LocalizedNumberICU.cpp:
2002         (WebCore::parseLocalizedNumber): Check the ParsePosition after NumberFormat::parse()
2003           to reject strings with a valid number + extra letters.
2004
2005 2011-03-02  Steve Block  <steveblock@google.com>
2006
2007         Reviewed by Jeremy Orlow.
2008
2009         JObjectWrapper should be moved to its own file
2010         https://bugs.webkit.org/show_bug.cgi?id=55384
2011
2012         No new tests, refactoring only.
2013
2014         * Android.v8bindings.mk:
2015         * WebCore.gypi:
2016         * bridge/jni/v8/JNIBridgeV8.cpp:
2017         (JavaField::JavaField):
2018         * bridge/jni/v8/JNIBridgeV8.h:
2019         * bridge/jni/v8/JavaInstanceV8.cpp:
2020         (JavaInstance::JavaInstance):
2021         * bridge/jni/v8/JavaInstanceV8.h:
2022         * bridge/jni/v8/JobjectWrapper.cpp: Copied from Source/WebCore/bridge/jni/v8/JNIBridgeV8.h.
2023         (JobjectWrapper::JobjectWrapper):
2024         (JobjectWrapper::~JobjectWrapper):
2025         * bridge/jni/v8/JobjectWrapper.h: Copied from Source/WebCore/bridge/jni/v8/JNIBridgeV8.h.
2026         (JSC::Bindings::JobjectWrapper::instance):
2027         (JSC::Bindings::JobjectWrapper::setInstance):
2028         (JSC::Bindings::JobjectWrapper::ref):
2029         (JSC::Bindings::JobjectWrapper::deref):
2030
2031 2011-02-25  Andrey Kosyakov  <caseq@chromium.org>
2032
2033         Reviewed by Pavel Feldman.
2034
2035         Web Inspector: factor search logic out of inspector.js
2036         https://bugs.webkit.org/show_bug.cgi?id=54965
2037
2038         * WebCore.gypi:
2039         * WebCore.vcproj/WebCore.vcproj:
2040         * inspector/front-end/ElementsPanel.js:
2041         (WebInspector.ElementsPanel.prototype.searchCanceled):
2042         (WebInspector.ElementsPanel.prototype.switchToAndFocus):
2043         (WebInspector.ElementsPanel.prototype._updateMatchesCount):
2044         * inspector/front-end/Panel.js:
2045         (WebInspector.Panel.prototype.searchCanceled):
2046         (WebInspector.Panel.prototype.performSearch.updateMatchesCount):
2047         * inspector/front-end/ScriptsPanel.js:
2048         (WebInspector.ScriptsPanel.prototype.searchCanceled):
2049         (WebInspector.ScriptsPanel.prototype.performSearch.finishedCallback):
2050         (WebInspector.ScriptsPanel.prototype.performSearch):
2051         * inspector/front-end/SearchController.js: Added.
2052         (WebInspector.SearchController):
2053         (WebInspector.SearchController.prototype.updateSearchMatchesCount):
2054         (WebInspector.SearchController.prototype.updateSearchLabel):
2055         (WebInspector.SearchController.prototype.cancelSearch):
2056         (WebInspector.SearchController.prototype.handleShortcut):
2057         (WebInspector.SearchController.prototype.activePanelChanged.performPanelSearch):
2058         (WebInspector.SearchController.prototype.activePanelChanged):
2059         (WebInspector.SearchController.prototype._updateSearchMatchesCount):
2060         (WebInspector.SearchController.prototype._focusSearchField):
2061         (WebInspector.SearchController.prototype._onSearchFieldManualFocus):
2062         (WebInspector.SearchController.prototype._onKeyDown):
2063         (WebInspector.SearchController.prototype._onSearch):
2064         (WebInspector.SearchController.prototype._performSearch):
2065         * inspector/front-end/WebKit.qrc:
2066         * inspector/front-end/inspector.html:
2067         * inspector/front-end/inspector.js:
2068         (WebInspector.set currentPanel):
2069         (WebInspector.set attached):
2070         (WebInspector.doLoadedDone):
2071         (WebInspector.documentKeyDown):
2072
2073 2011-03-02  Renata Hodovan  <reni@webkit.org>
2074
2075         Reviewed by Andreas Kling.
2076
2077         FEMorphologyElement changes doesn't require relayout
2078         https://bugs.webkit.org/show_bug.cgi?id=55462
2079
2080         When the FEMorphologyElement receives an update message but the given value remains the same we don't need
2081         to relayout the filter.
2082
2083         No new tests are needed because this modification is covered by the dynamic update tests of FEMorphology.
2084
2085         * platform/graphics/filters/FEMorphology.cpp:
2086         (WebCore::FEMorphology::setMorphologyOperator):
2087         (WebCore::FEMorphology::setRadiusX):
2088         (WebCore::FEMorphology::setRadiusY):
2089         * platform/graphics/filters/FEMorphology.h:
2090         * svg/SVGFEMorphologyElement.cpp:
2091         (WebCore::SVGFEMorphologyElement::setFilterEffectAttribute):
2092         (WebCore::SVGFEMorphologyElement::svgAttributeChanged):
2093         * svg/SVGFEMorphologyElement.h:
2094
2095 2011-03-01  Kent Tamura  <tkent@chromium.org>
2096
2097         Reviewed by Dimitri Glazkov.
2098
2099         Assertion fails when a form validation bubble appears
2100         https://bugs.webkit.org/show_bug.cgi?id=55550
2101
2102         Test: fast/forms/interactive-validation-attach-assertion.html
2103
2104         * html/ValidationMessage.cpp:
2105         (WebCore::ValidationMessage::buildBubbleTree):
2106          Just remove unnecessary attach().
2107
2108 2011-03-01  Kent Tamura  <tkent@chromium.org>
2109
2110         Reviewed by Dimitri Glazkov.
2111
2112         Support localized numbers in <input type=number>
2113         https://bugs.webkit.org/show_bug.cgi?id=42484
2114
2115         This change adds support of localized numbers in <input type=number>.
2116         This affects only the UI, and not HTMLInputElement::value.
2117
2118         - Remove the keyboard input restriction feature because it is hard to
2119           retrieve characters usable for localized numbers in ICU.
2120
2121         - Separate convertFromVisibleValue() from sanitizeValue().
2122           sanitizeValue() is used for not only converting a renderer value to a
2123           DOM value.
2124
2125         - Implement LocalizedNumber functions for ICU and NSNumberFormatter.
2126           It is used only in Chromium for now.
2127
2128         Test: manual-tests/input-number-localization.html
2129
2130         * WebCore.gypi: Use LocalizedNumberICU.cpp.
2131         * WebCore.xcodeproj/project.pbxproj:
2132           Add LocalizedNumberMac.mm and remove LocalizedNumberNone.cpp.
2133         * dom/InputElement.h: Introduce convertFromVisibleValue().
2134         * html/HTMLInputElement.cpp:
2135         (WebCore::HTMLInputElement::convertFromVisibleValue):
2136         * html/HTMLInputElement.h:
2137         * html/InputType.cpp:
2138         (WebCore::InputType::convertFromVisibleValue):
2139         * html/InputType.h:
2140         * html/NumberInputType.cpp: Remove isHTMLNumberCharacter(),
2141           isNumberCharacter(), and handleBeforeTextInsertedEvent() because we
2142           remove the keyboard input restriction feature for type=number.
2143         (WebCore::NumberInputType::convertFromVisibleValue):
2144         (WebCore::NumberInputType::sanitizeValue):
2145         * html/NumberInputType.h:
2146         * manual-tests/input-number-localization.html: Add a manual test because
2147           the behavior depends on the current locale.
2148         * platform/text/LocalizedNumber.h: Remove isLocalizedNumberCharacter().
2149         * platform/text/LocalizedNumberICU.cpp:
2150           Implement LocalizedNumber functions with ICU NumberFormat.
2151         (WebCore::createFormatterForCurrentLocale):
2152         (WebCore::parseLocalizedNumber):
2153         (WebCore::formatLocalizedNumber):
2154         * platform/text/LocalizedNumberNone.cpp: Remove isLocalizedNumberCharacter().
2155         * platform/text/mac/LocalizedNumberMac.mm:
2156           Implement LocalizedNumber functions with NSNumberFormatter.
2157         (WebCore::parseLocalizedNumber):
2158         (WebCore::formatLocalizedNumber):
2159         * rendering/RenderTextControlSingleLine.cpp:
2160         (WebCore::RenderTextControlSingleLine::subtreeHasChanged):
2161         * wml/WMLInputElement.h:
2162         (WebCore::WMLInputElement::convertFromVisibleValue):
2163           Implemented as a function doing nothing.
2164
2165 2011-03-01  Yuta Kitamura  <yutak@chromium.org>
2166
2167         Reviewed by Darin Adler.
2168
2169         REGRESSION(r78383): Failure to connect on websocketstest.com
2170         https://bugs.webkit.org/show_bug.cgi?id=54811
2171
2172         After r78383, KURL::setPort() no longer appends ":port" part
2173         if that port is the default port for URL scheme. This broke
2174         SocketStreamHandleCFNet, whose code was based on an assumption
2175         that KURL::setPort() always inserts ":port" part.
2176
2177         To fix this, KURL::port() call is removed from SocketStreamHandle
2178         and the port number is calculated on-the-fly.
2179
2180         Unfortunately it is impossible to write a test; this bug only
2181         affects WebSockets connecting to the default port (port 80
2182         for ws, port 443 for wss), while we use different ports to test
2183         WebSockets in LayoutTests.
2184
2185         * platform/network/cf/SocketStreamHandle.h:
2186         * platform/network/cf/SocketStreamHandleCFNet.cpp:
2187         (WebCore::SocketStreamHandle::SocketStreamHandle):
2188         (WebCore::SocketStreamHandle::createStreams):
2189         (WebCore::SocketStreamHandle::port):
2190
2191 2011-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2192
2193         Unreviewed, rolling out r80079.
2194         http://trac.webkit.org/changeset/80079
2195         https://bugs.webkit.org/show_bug.cgi?id=55547
2196
2197         "Broke the Win debug build?" (Requested by dcheng on #webkit).
2198
2199         * Configurations/FeatureDefines.xcconfig:
2200         * GNUmakefile.am:
2201         * features.pri:
2202
2203 2011-02-25  Adrienne Walker  <enne@google.com>
2204
2205         Reviewed by James Robinson.
2206
2207         [chromium] Abstract "pixels with a graphics context" into its own class
2208         https://bugs.webkit.org/show_bug.cgi?id=55259
2209
2210         This creates new PlatformCanvas/PlatformImage classes which wrap
2211         all of the #ifdef Skia/Cg warts from the compositor.  All classes
2212         (LayerTilerChromium, ContentLayerChromium, and ImageLayerChromium) are
2213         modified to use these abstractions.
2214
2215         Tests: LayoutTests/compositing
2216
2217         * WebCore.gypi:
2218         * platform/graphics/chromium/ContentLayerChromium.cpp:
2219         (WebCore::ContentLayerChromium::updateContentsIfDirty):
2220         (WebCore::ContentLayerChromium::resizeUploadBuffer):
2221         (WebCore::ContentLayerChromium::updateTextureIfNeeded):
2222         (WebCore::ContentLayerChromium::updateTexture):
2223         (WebCore::ContentLayerChromium::draw):
2224         * platform/graphics/chromium/ContentLayerChromium.h:
2225         * platform/graphics/chromium/ImageLayerChromium.cpp:
2226         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2227         (WebCore::ImageLayerChromium::updateTextureIfNeeded):
2228         * platform/graphics/chromium/ImageLayerChromium.h:
2229         * platform/graphics/chromium/LayerTilerChromium.cpp:
2230         (WebCore::LayerTilerChromium::contentRectToTileIndices):
2231         (WebCore::LayerTilerChromium::update):
2232         (WebCore::LayerTilerChromium::updateFromPixels):
2233         * platform/graphics/chromium/LayerTilerChromium.h:
2234         * platform/graphics/chromium/PlatformCanvas.cpp: Added.
2235         (WebCore::PlatformCanvas::PlatformCanvas):
2236         (WebCore::PlatformCanvas::~PlatformCanvas):
2237         (WebCore::PlatformCanvas::resize):
2238         (WebCore::PlatformCanvas::AutoLocker::AutoLocker):
2239         (WebCore::PlatformCanvas::AutoLocker::~AutoLocker):
2240         (WebCore::PlatformCanvas::Painter::Painter):
2241         (WebCore::PlatformCanvas::Painter::~Painter):
2242         * platform/graphics/chromium/PlatformCanvas.h: Added.
2243         (WebCore::PlatformCanvas::AutoLocker::pixels):
2244         (WebCore::PlatformCanvas::Painter::context):
2245         (WebCore::PlatformCanvas::size):
2246         * platform/graphics/chromium/PlatformImage.cpp: Copied from Source/WebCore/platform/graphics/chromium/ImageLayerChromium.cpp.
2247         (WebCore::PlatformImage::PlatformImage):
2248         (WebCore::PlatformImage::updateFromImage):
2249         * platform/graphics/chromium/PlatformImage.h: Added.
2250         (WebCore::PlatformImage::pixels):
2251         (WebCore::PlatformImage::size):
2252
2253 2011-03-01  Daniel Cheng  <dcheng@chromium.org>
2254
2255         Reviewed by David Levin.
2256
2257         Add feature define for data transfer items
2258         https://bugs.webkit.org/show_bug.cgi?id=55510
2259
2260         * Configurations/FeatureDefines.xcconfig:
2261         * GNUmakefile.am:
2262         * features.pri:
2263
2264 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
2265
2266         Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
2267
2268         * dom/ViewportArguments.cpp:
2269         (WebCore::computeViewportAttributes):
2270         (WebCore::numericPrefix):
2271         (WebCore::findSizeValue):
2272         (WebCore::setViewportFeature):
2273         (WebCore::viewportErrorMessageTemplate):
2274         (WebCore::viewportErrorMessageLevel):
2275         * dom/ViewportArguments.h:
2276
2277 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
2278
2279         Reviewed by James Robinson.
2280
2281         IDBKeyRange.bound() should not use the optional options object
2282         https://bugs.webkit.org/show_bug.cgi?id=55419
2283
2284         http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#range-concept
2285
2286         Added some code to existing tests to cover these cases.
2287
2288         * storage/IDBKeyRange.cpp:
2289         (WebCore::IDBKeyRange::bound):
2290         * storage/IDBKeyRange.h:
2291         * storage/IDBKeyRange.idl:
2292
2293 2011-03-01  Dan Bernstein  <mitz@apple.com>
2294
2295         Build fix.
2296
2297         * dom/DocumentMarkerController.cpp:
2298         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
2299
2300 2011-03-01  Kent Tamura  <tkent@chromium.org>
2301
2302         Unreviewed. Apply sort-Xcode-project-file.
2303
2304         * WebCore.xcodeproj/project.pbxproj:
2305
2306 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
2307
2308         Reviewed by James Robinson.
2309
2310         V8 code generator doesn't properly support a single SerializedScriptValue attribute
2311         https://bugs.webkit.org/show_bug.cgi?id=55530
2312
2313         This is tested by the bindings tests changes.
2314
2315         * bindings/scripts/CodeGeneratorV8.pm:
2316         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp: Added.
2317         (WebDOMTestSerializedScriptValueInterface::WebDOMTestSerializedScriptValueInterfacePrivate::WebDOMTestSerializedScriptValueInterfacePrivate):
2318         (WebDOMTestSerializedScriptValueInterface::WebDOMTestSerializedScriptValueInterface):
2319         (WebDOMTestSerializedScriptValueInterface::operator=):
2320         (WebDOMTestSerializedScriptValueInterface::impl):
2321         (WebDOMTestSerializedScriptValueInterface::~WebDOMTestSerializedScriptValueInterface):
2322         (WebDOMTestSerializedScriptValueInterface::value):
2323         (toWebCore):
2324         (toWebKit):
2325         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h: Added.
2326         * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.cpp: Added.
2327         (WebKit::kit):
2328         (webkit_dom_test_serialized_script_value_interface_get_value):
2329         (WebKit::core):
2330         (webkit_dom_test_serialized_script_value_interface_finalize):
2331         (webkit_dom_test_serialized_script_value_interface_set_property):
2332         (webkit_dom_test_serialized_script_value_interface_get_property):
2333         (webkit_dom_test_serialized_script_value_interface_constructed):
2334         (webkit_dom_test_serialized_script_value_interface_class_init):
2335         (webkit_dom_test_serialized_script_value_interface_init):
2336         (WebKit::wrapTestSerializedScriptValueInterface):
2337         * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.h: Added.
2338         * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterfacePrivate.h: Added.
2339         * bindings/scripts/test/JS/JSTestInterface.cpp:
2340         (WebCore::JSTestInterfaceConstructor::JSTestInterfaceConstructor):
2341         (WebCore::JSTestInterface::JSTestInterface):
2342         * bindings/scripts/test/JS/JSTestInterface.h:
2343         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2344         (WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
2345         (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
2346         (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
2347         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
2348         * bindings/scripts/test/JS/JSTestObj.cpp:
2349         (WebCore::JSTestObjConstructor::JSTestObjConstructor):
2350         (WebCore::JSTestObj::JSTestObj):
2351         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
2352         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
2353         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
2354         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
2355         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
2356         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
2357         (WebCore::jsTestObjPrototypeFunctionIdbKey):
2358         (WebCore::jsTestObjPrototypeFunctionOptionsObject):
2359         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
2360         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
2361         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
2362         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
2363         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
2364         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
2365         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
2366         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
2367         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
2368         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
2369         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
2370         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
2371         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
2372         (WebCore::jsTestObjPrototypeFunctionClassMethodWithOptional):
2373         * bindings/scripts/test/JS/JSTestObj.h:
2374         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp: Added.
2375         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::createStructure):
2376         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::JSTestSerializedScriptValueInterfaceConstructor):
2377         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::getOwnPropertySlot):
2378         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::getOwnPropertyDescriptor):
2379         (WebCore::JSTestSerializedScriptValueInterfacePrototype::self):
2380         (WebCore::JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface):
2381         (WebCore::JSTestSerializedScriptValueInterface::createPrototype):
2382         (WebCore::JSTestSerializedScriptValueInterface::getOwnPropertySlot):
2383         (WebCore::JSTestSerializedScriptValueInterface::getOwnPropertyDescriptor):
2384         (WebCore::jsTestSerializedScriptValueInterfaceValue):
2385         (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
2386         (WebCore::JSTestSerializedScriptValueInterface::getConstructor):
2387         (WebCore::toJS):
2388         (WebCore::toTestSerializedScriptValueInterface):
2389         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h: Copied from Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h.
2390         (WebCore::JSTestSerializedScriptValueInterface::createStructure):
2391         (WebCore::JSTestSerializedScriptValueInterface::impl):
2392         (WebCore::JSTestSerializedScriptValueInterfacePrototype::createStructure):
2393         (WebCore::JSTestSerializedScriptValueInterfacePrototype::JSTestSerializedScriptValueInterfacePrototype):
2394         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h: Added.
2395         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.mm: Added.
2396         (-[DOMTestSerializedScriptValueInterface dealloc]):
2397         (-[DOMTestSerializedScriptValueInterface finalize]):
2398         (-[DOMTestSerializedScriptValueInterface value]):
2399         (core):
2400         (kit):
2401         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterfaceInternal.h: Added.
2402         * bindings/scripts/test/TestSerializedScriptValueInterface.idl: Added.
2403         * bindings/scripts/test/V8/V8TestInterface.cpp:
2404         (WebCore::ConfigureV8TestInterfaceTemplate):
2405         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp: Copied from Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp.
2406         (WebCore::TestSerializedScriptValueInterfaceInternal::V8_USE):
2407         (WebCore::ConfigureV8TestSerializedScriptValueInterfaceTemplate):
2408         (WebCore::V8TestSerializedScriptValueInterface::GetRawTemplate):
2409         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2410         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
2411         (WebCore::V8TestSerializedScriptValueInterface::wrapSlow):
2412         (WebCore::V8TestSerializedScriptValueInterface::derefObject):
2413         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h: Added.
2414         (WebCore::V8TestSerializedScriptValueInterface::toNative):
2415         (WebCore::V8TestSerializedScriptValueInterface::wrap):
2416         (WebCore::toV8):
2417
2418 2011-03-01  Oliver Hunt  <oliver@apple.com>
2419
2420         Reviewed by Joseph Pecoraro.
2421
2422         Misaligned memory access in CloneDeserializer on all ARM arch.
2423         https://bugs.webkit.org/show_bug.cgi?id=48742
2424
2425         Push platforms that need aligned memory access down the
2426         endian independent serialization and deserialization
2427         paths.
2428
2429         * bindings/js/SerializedScriptValue.cpp:
2430
2431 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
2432
2433         Reviewed by Kenneth Rohde Christiansen.
2434
2435         Viewport Warning/Error Messages Are Now Inaccurate
2436         https://bugs.webkit.org/show_bug.cgi?id=53707
2437
2438         Correct and improve the error messages for viewport
2439         parsing. Clarify the difference between incorrect
2440         keys, values, and when to use the device-width or
2441         device-height constants.
2442
2443         * dom/ViewportArguments.cpp:
2444         (WebCore::computeViewportAttributes): suggest using keywords if fixed input matches device width or height.
2445         (WebCore::numericPrefix):
2446         (WebCore::findSizeValue): remove incorrect warnings about fixed numbers because we don't know the device width or height.
2447         (WebCore::setViewportFeature): report a warning for an unrecognized key.
2448         (WebCore::viewportErrorMessageTemplate): added template for unrecognized key.
2449         (WebCore::viewportErrorMessageLevel):
2450         * dom/ViewportArguments.h:
2451
2452 2011-03-01  Ryosuke Niwa  <rniwa@webkit.org>
2453
2454         Reviewed by Darin Adler.
2455
2456         WebKit does not merge text decorations in the typing style and the selected element properly
2457         https://bugs.webkit.org/show_bug.cgi?id=55349
2458
2459         The bug was caused by EditingStyle::mergeTypingStyle's not properly merging text decoration property.
2460         Fixed the bug by extracting a function from ApplyStyleCommand::pushDownInlineStyleAroundNode and
2461         calling it in pushDownInlineStyleAroundNode and in mergeTypingStyle.
2462
2463         Test: editing/execCommand/merge-text-decoration-with-typing-style.html
2464
2465         * editing/ApplyStyleCommand.cpp:
2466         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Takes EditingStyle*;
2467         calls mergeInlineStyleOfElement.
2468         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Calls applyInlineStyleToPushDown.
2469         (WebCore::ApplyStyleCommand::removeInlineStyle): Ditto.
2470         * editing/ApplyStyleCommand.h:
2471         * editing/EditingStyle.cpp:
2472         (WebCore::EditingStyle::mergeTypingStyle): Added; calls mergeStyle.
2473         (WebCore::EditingStyle::mergeInlineStyleOfElement): Ditto.
2474         (WebCore::EditingStyle::mergeStyle): Extracted from applyInlineStyleToPushDown.
2475         * editing/EditingStyle.h:
2476
2477 2011-03-01  Levi Weintraub  <leviw@chromium.org>
2478
2479         Reviewed by Ryosuke Niwa.
2480
2481         Stop instantiating legacy editing Positions in VisiblePosition
2482         https://bugs.webkit.org/show_bug.cgi?id=52919
2483
2484         Changing VisiblePosition completely away from legacy positions.
2485
2486         No new tests since this is functionaly equivalent.
2487
2488         * WebCore.exp.in: Removing the legacy VisiblePosition constructor and
2489         adding the PositionIsOffsetInAnchor symbol. If we must create VisiblePositions
2490         outside of WebCore, they should be parent anchored.
2491         * accessibility/AXObjectCache.cpp:
2492         (WebCore::AXObjectCache::visiblePositionForTextMarkerData):
2493         * accessibility/AccessibilityObject.cpp:
2494         (WebCore::startOfStyleRange):
2495         (WebCore::endOfStyleRange):
2496         * accessibility/AccessibilityRenderObject.cpp:
2497         (WebCore::AccessibilityRenderObject::visiblePositionForIndex):
2498         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2499         (objectAndOffsetUnignored):
2500         * dom/Position.cpp:
2501         (WebCore::Position::document): Added this inline function to avoid the necessity
2502         of calling anchorNode to assure a document from a Position.
2503         (WebCore::Position::upstream): Fixed to correctly respect PositionIsAfterAnchor
2504         (WebCore::Position::downstream): ditto
2505         * dom/Range.cpp:
2506         (WebCore::Range::editingStartPosition):
2507         * editing/Editor.cpp:
2508         (WebCore::Editor::canDeleteRange):
2509         * editing/ReplaceSelectionCommand.cpp:
2510         (WebCore::ReplaceSelectionCommand::doApply):
2511         * editing/SelectionController.cpp:
2512         (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
2513         (WebCore::SelectionController::setSelectedRange):
2514         * editing/TextIterator.cpp:
2515         (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
2516         * editing/TypingCommand.cpp:
2517         (WebCore::TypingCommand::deleteKeyPressed):
2518         * editing/VisiblePosition.cpp:
2519         (WebCore::VisiblePosition::leftVisuallyDistinctCandidate):
2520         (WebCore::VisiblePosition::rightVisuallyDistinctCandidate):
2521         (WebCore::VisiblePosition::canonicalPosition):
2522         (WebCore::VisiblePosition::characterAfter):
2523         (WebCore::VisiblePosition::localCaretRect):
2524         (WebCore::makeRange):
2525         (WebCore::startVisiblePosition):
2526         (WebCore::endVisiblePosition):
2527         (WebCore::setStart):
2528         (WebCore::setEnd):
2529         (WebCore::isFirstVisiblePositionInNode):
2530         (WebCore::isLastVisiblePositionInNode):
2531         * editing/VisiblePosition.h:
2532         (WebCore::VisiblePosition::VisiblePosition):
2533         * editing/htmlediting.cpp:
2534         (WebCore::firstInSpecialElement):
2535         (WebCore::lastInSpecialElement):
2536         (WebCore::visiblePositionBeforeNode):
2537         (WebCore::visiblePositionAfterNode):
2538         * editing/visible_units.cpp:
2539         (WebCore::startPositionForLine):
2540         (WebCore::endPositionForLine):
2541         (WebCore::previousLinePosition):
2542         (WebCore::nextLinePosition):
2543         (WebCore::startOfParagraph):
2544         (WebCore::endOfParagraph):
2545         (WebCore::endOfBlock):
2546         (WebCore::startOfDocument):
2547         (WebCore::endOfDocument):
2548         (WebCore::logicalStartPositionForLine):
2549         (WebCore::logicalEndPositionForLine):
2550         * page/DOMSelection.cpp:
2551         (WebCore::DOMSelection::collapse):
2552         (WebCore::DOMSelection::setBaseAndExtent):
2553         (WebCore::DOMSelection::setPosition):
2554         (WebCore::DOMSelection::extend):
2555         * page/EventHandler.cpp:
2556         (WebCore::EventHandler::handleMousePressEventSingleClick):
2557         * rendering/RenderObject.cpp:
2558         (WebCore::RenderObject::createVisiblePosition):
2559         * rendering/RenderTextControl.cpp:
2560         (WebCore::RenderTextControl::visiblePositionForIndex):
2561         * svg/SVGTextContentElement.cpp:
2562         (WebCore::SVGTextContentElement::selectSubString):
2563
2564 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
2565
2566        Reviewed by Steve Block.
2567
2568        When an IDBTransaction is aborted, all requests that have not yet fired should fire an ABORT_ERR
2569        https://bugs.webkit.org/show_bug.cgi?id=54785
2570
2571        This patch adds in a lot of sanity checks/ASSERTs to make sure we're doing
2572        the right thing and continue to do the right thing. It also modifies EventQueue
2573        so that we can cancel an event. To do this efficiently, the vector is now a
2574        ListHashSet.
2575
2576        Cancelling the event is harder/messier, but the most deterministic thing to do.
2577        To the user, the work isn't done until we fire the onsuccess/onerror handler.
2578        So the event (which does fire that) needs to be cancelable.
2579
2580        transaction-abort.html tests this.
2581
2582        * dom/EventQueue.cpp:
2583        (WebCore::EventQueue::enqueueEvent):
2584        (WebCore::EventQueue::cancelEvent):
2585        (WebCore::EventQueue::pendingEventTimerFired):
2586        (WebCore::EventQueue::dispatchEvent):
2587        * dom/EventQueue.h:
2588        * dom/ExceptionCode.cpp:
2589        * storage/IDBCursor.cpp:
2590        (WebCore::IDBCursor::update):
2591        (WebCore::IDBCursor::deleteFunction):
2592        * storage/IDBDatabaseBackendImpl.cpp:
2593        (WebCore::IDBDatabaseBackendImpl::close):
2594        * storage/IDBDatabaseException.h:
2595        * storage/IDBIndex.cpp:
2596        (WebCore::IDBIndex::openCursor):
2597        (WebCore::IDBIndex::openKeyCursor):
2598        (WebCore::IDBIndex::get):
2599        (WebCore::IDBIndex::getKey):
2600        * storage/IDBObjectStore.cpp:
2601        (WebCore::IDBObjectStore::get):
2602        (WebCore::IDBObjectStore::add):
2603        (WebCore::IDBObjectStore::put):
2604        (WebCore::IDBObjectStore::deleteFunction):
2605        (WebCore::IDBObjectStore::clear):
2606        (WebCore::IDBObjectStore::openCursor):
2607        * storage/IDBRequest.cpp:
2608        (WebCore::IDBRequest::IDBRequest):
2609        (WebCore::IDBRequest::~IDBRequest):
2610        (WebCore::IDBRequest::readyState):
2611        (WebCore::IDBRequest::markEarlyDeath):
2612        (WebCore::IDBRequest::source):
2613        (WebCore::IDBRequest::abort):
2614        (WebCore::IDBRequest::onSuccess):
2615        (WebCore::IDBRequest::dispatchEvent):
2616        (WebCore::IDBRequest::enqueueEvent):
2617        * storage/IDBRequest.h:
2618        * storage/IDBTransaction.cpp:
2619        (WebCore::IDBTransaction::registerRequest):
2620        (WebCore::IDBTransaction::unregisterRequest):
2621        (WebCore::IDBTransaction::onAbort):
2622        * storage/IDBTransaction.h:
2623
2624 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
2625
2626         Reviewed by Mihai Parparita.
2627
2628         EventQueue needs to be ref counted
2629         https://bugs.webkit.org/show_bug.cgi?id=55512
2630
2631         EventQueue needs to be ref counted because it's possible for its instance
2632         to be deleted while it's dispatching events. This is the reason why
2633         https://bugs.webkit.org/show_bug.cgi?id=54785 had to be reverted.
2634
2635         No change of behavior, so no tests.
2636
2637         * dom/Document.h:
2638         * dom/EventQueue.cpp:
2639         (WebCore::EventQueue::create):
2640         * dom/EventQueue.h:
2641
2642 2011-03-01  Helder Correia  <helder@sencha.com>
2643
2644         Reviewed by Simon Fraser.
2645
2646         No shadow when stroking a path with a gradient
2647         https://bugs.webkit.org/show_bug.cgi?id=55436
2648
2649         This happens in CG and is related to bug 52509, this time to be fixed
2650         in GraphicsContext::strokePath(). The gradient needs to be drawn
2651         clipped to the stroke on a CGLayer first, then the layer drawn on the
2652         GraphicsContext.
2653
2654         Tests: fast/canvas/canvas-strokePath-gradient-shadow.html
2655                svg/css/path-gradient-stroke-shadow.svg
2656
2657         * platform/graphics/cg/GraphicsContextCG.cpp:
2658         (WebCore::GraphicsContext::strokePath):
2659
2660 2011-03-01  David Hyatt  <hyatt@apple.com>
2661
2662         Reviewed by Dan Bernstein.
2663
2664         Fix Font::spaceWidth() to be a float instead of an int.
2665
2666         * platform/graphics/Font.h:
2667         (WebCore::Font::spaceWidth):
2668
2669 2011-02-28  Steve Block  <steveblock@google.com>
2670
2671         Reviewed by Jeremy Orlow.
2672
2673         Chromium gypi file should include Java bridge files from WebCore/bridge
2674         https://bugs.webkit.org/show_bug.cgi?id=55387
2675
2676         No new tests, no code changes.
2677
2678         * WebCore.gyp/WebCore.gyp:
2679         * WebCore.gypi:
2680
2681 2011-03-01  James Simonsen  <simonjam@chromium.org>
2682
2683         Reviewed by Tony Gentilcore.
2684
2685         [Web Timing] Handle the case where no responseEnd time is available.
2686         https://bugs.webkit.org/show_bug.cgi?id=55444
2687
2688         * loader/MainResourceLoader.cpp:
2689         (WebCore::MainResourceLoader::MainResourceLoader): Initialize to 0.
2690         (WebCore::MainResourceLoader::didFinishLoading): Fall back to current time if no other time is available.
2691
2692 2011-03-01  Patrick Gansterer  <paroga@webkit.org>
2693
2694         Unreviewed, adding missing change for r80034.
2695
2696         Add a handler class for Win32 HANDLE
2697         https://bugs.webkit.org/show_bug.cgi?id=55334
2698
2699         * platform/win/Win32Handle.h: Added missing WTF_MAKE_NONCOPYABLE macro.
2700
2701 2011-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2702
2703         Unreviewed, rolling out r80037.
2704         http://trac.webkit.org/changeset/80037
2705         https://bugs.webkit.org/show_bug.cgi?id=55508
2706
2707         broke compile on SL (Requested by tonyg-cr on #webkit).
2708
2709         * Android.mk:
2710         * CMakeLists.txt:
2711         * GNUmakefile.am:
2712         * WebCore.gypi:
2713         * WebCore.pro:
2714         * WebCore.vcproj/WebCore.vcproj:
2715         * WebCore.xcodeproj/project.pbxproj:
2716         * css/CSSParser.cpp:
2717         (WebCore::CSSParser::parseValue):
2718         * css/CSSParser.h:
2719         * css/CSSStyleSelector.cpp:
2720         (WebCore::CSSStyleSelector::applyProperty):
2721         * css/html.css:
2722         (q:before):
2723         (q:after):
2724         * rendering/RenderBlockLineLayout.cpp:
2725         (WebCore::dirtyLineBoxesForRenderer):
2726         * rendering/RenderObject.h:
2727         * rendering/RenderObjectChildList.cpp:
2728         (WebCore::RenderObjectChildList::removeChildNode):
2729         (WebCore::RenderObjectChildList::appendChildNode):
2730         (WebCore::RenderObjectChildList::insertChildNode):
2731         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2732         * rendering/RenderQuote.cpp: Removed.
2733         * rendering/RenderQuote.h: Removed.
2734         * rendering/RenderingAllInOne.cpp:
2735         * rendering/style/ContentData.cpp:
2736         (WebCore::ContentData::dataEquivalent):
2737         (WebCore::ContentData::deleteContent):
2738         * rendering/style/ContentData.h:
2739         * rendering/style/QuotesData.cpp: Removed.
2740         * rendering/style/QuotesData.h: Removed.
2741         * rendering/style/RenderStyle.cpp:
2742         * rendering/style/RenderStyle.h:
2743         * rendering/style/RenderStyleConstants.h:
2744         * rendering/style/StyleAllInOne.cpp:
2745         * rendering/style/StyleRareInheritedData.cpp:
2746         (WebCore::StyleRareInheritedData::operator==):
2747         * rendering/style/StyleRareInheritedData.h:
2748
2749 2011-03-01  Abhishek Arya  <inferno@chromium.org>
2750
2751         Reviewed by Dave Hyatt.
2752
2753         Paint outline for tables.
2754         https://bugs.webkit.org/show_bug.cgi?id=55474
2755
2756         Test: fast/table/table-and-parts-outline.html
2757
2758         * rendering/RenderTable.cpp:
2759         (WebCore::RenderTable::paintObject):
2760
2761 2011-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2762
2763         Unreviewed, rolling out r80028.
2764         http://trac.webkit.org/changeset/80028
2765         https://bugs.webkit.org/show_bug.cgi?id=55502
2766
2767         'caused crashes; rolling out while investigating' (Requested
2768         by jorlow on #webkit).
2769
2770         * dom/EventQueue.cpp:
2771         (WebCore::EventQueue::enqueueEvent):
2772         (WebCore::EventQueue::pendingEventTimerFired):
2773         (WebCore::EventQueue::dispatchEvent):
2774         * dom/EventQueue.h:
2775         * dom/ExceptionCode.cpp:
2776         * storage/IDBCursor.cpp:
2777         (WebCore::IDBCursor::update):
2778         (WebCore::IDBCursor::deleteFunction):
2779         * storage/IDBDatabaseException.h:
2780         * storage/IDBDatabaseException.idl:
2781         * storage/IDBIndex.cpp:
2782         (WebCore::IDBIndex::openCursor):
2783         (WebCore::IDBIndex::openKeyCursor):
2784         (WebCore::IDBIndex::get):
2785         (WebCore::IDBIndex::getKey):
2786         * storage/IDBObjectStore.cpp:
2787         (WebCore::IDBObjectStore::get):
2788         (WebCore::IDBObjectStore::add):
2789         (WebCore::IDBObjectStore::put):
2790         (WebCore::IDBObjectStore::deleteFunction):
2791         (WebCore::IDBObjectStore::clear):
2792         (WebCore::IDBObjectStore::openCursor):
2793         * storage/IDBRequest.cpp:
2794         (WebCore::IDBRequest::IDBRequest):
2795         (WebCore::IDBRequest::~IDBRequest):
2796         (WebCore::IDBRequest::readyState):
2797         (WebCore::IDBRequest::dispatchEvent):
2798         (WebCore::IDBRequest::enqueueEvent):
2799         (WebCore::IDBRequest::source):
2800         * storage/IDBRequest.h:
2801         * storage/IDBTransaction.cpp:
2802         (WebCore::IDBTransaction::onAbort):
2803         * storage/IDBTransaction.h:
2804
2805 2011-03-01  Carol Szabo  <carol.szabo@nokia.com>
2806
2807         Reviewed by David Hyatt  <hyatt@apple.com>
2808
2809         content property doesn't support quotes
2810         https://bugs.webkit.org/show_bug.cgi?id=6503
2811
2812         Added full support for quotes as defined by CSS 2.1.
2813
2814         Tests: fast/css/content/content-quotes-01.html
2815                fast/css/content/content-quotes-02.html
2816                fast/css/content/content-quotes-03.html
2817                fast/css/content/content-quotes-04.html
2818                fast/css/content/content-quotes-05.html
2819
2820         * Android.mk:
2821         * CMakeLists.txt:
2822         * GNUmakefile.am:
2823         * WebCore.pro:
2824         * WebCore.vcproj/WebCore.vcproj:
2825         * WebCore.xcodeproj/project.pbxproj:
2826         Added RenderQuote.cpp/h and QuotesData.cpp/h to the dependency lists
2827         * css/CSSParser.cpp:
2828         (WebCore::CSSParser::parseValue):
2829         (WebCore::CSSParser::parseQuotes):
2830         * css/CSSParser.h:
2831         Added needed stylesheet parsing support for quotes,
2832         (no-)open-quote and (no-)close-quote
2833         * css/CSSStyleSelector.cpp:
2834         (WebCore::CSSStyleSelector::applyProperty):
2835         Handled setting of the new quotes RenderStyle property and added
2836         handling of quotes for the content property.
2837         * css/html.css:
2838         (q:before):
2839         (q:after):
2840         replaced the '"' workaround with open/close-quote
2841         * rendering/RenderBlockLineLayout.cpp:
2842         (WebCore::dirtyLineBoxesForRenderer):
2843         Made RenderQuote behave like RenderCounter.
2844         Needed to ensure that the Quote text is calculated before layout,
2845         just as it is for RenderCounter.
2846         * rendering/RenderObject.h:
2847         (WebCore::RenderObject::isQuote):
2848         * rendering/RenderObjectChildList.cpp:
2849         (WebCore::RenderObjectChildList::removeChildNode):
2850         (WebCore::RenderObjectChildList::appendChildNode):
2851         (WebCore::RenderObjectChildList::insertChildNode):
2852         Handled updating of quote depth when renderers are added and removed
2853         from the tree.
2854         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
2855         * rendering/RenderQuote.cpp: Added.
2856         (WebCore::adjustDepth):
2857         (WebCore::RenderQuote::RenderQuote):
2858         (WebCore::RenderQuote::~RenderQuote):
2859         (WebCore::RenderQuote::renderName):
2860         (WebCore::RenderQuote::placeQuote):
2861         (WebCore::RenderQuote::originalText):
2862         (WebCore::RenderQuote::computePreferredLogicalWidths):
2863         (WebCore::RenderQuote::rendererSubtreeAttached):
2864         (WebCore::RenderQuote::rendererRemovedFromTree):
2865         (WebCore::RenderQuote::styleDidChange):
2866         * rendering/RenderQuote.h: Added.
2867         (WebCore::RenderQuote::isQuote):
2868         (WebCore::toRenderQuote):
2869         * rendering/RenderingAllInOne.cpp:
2870         Included RenderQuote.cpp
2871         * rendering/style/StyleAllInOne.cpp:
2872         Included QuotesData.cpp
2873         * rendering/style/ContentData.cpp:
2874         (WebCore::ContentData::dataEquivalent):
2875         Checked for quotetype identity.
2876         (WebCore::ContentData::deleteContent):
2877         Accounted for the new QUOTE_TYPE.
2878         * rendering/style/ContentData.h:
2879         (WebCore::ContentData::isQuote):
2880         (WebCore::ContentData::quote):
2881         (WebCore::ContentData::setQuote):
2882         * rendering/style/RenderStyle.cpp:
2883         (WebCore::RenderStyle::setContent):
2884         * rendering/style/RenderStyle.h:
2885         (WebCore::InheritedFlags::quotes):
2886         (WebCore::InheritedFlags::setQuotes):
2887         * rendering/style/RenderStyleConstants.h:
2888         * rendering/style/StyleRareInheritedData.cpp:
2889         (WebCore::StyleRareInheritedData::operator==):
2890         Included quotes in equality check.
2891         * rendering/style/StyleRareInheritedData.h:
2892         Added quotes
2893
2894 2011-03-01  Michael Nordman  <michaeln@google.com>
2895
2896         Reviewed by Alexey Proskuryakov.
2897
2898         Alter the relative priorities of network vs fallback namespaces in the appcache.
2899         If a resource url is in an appcache's network namespace and fallback namespace, the network
2900         namespace wins (with the exception of the special '*' network namespace which does not take
2901         priority over the fallback namespace.
2902         https://bugs.webkit.org/show_bug.cgi?id=49292
2903
2904         Test: http/tests/appcache/online-fallback-layering.html
2905
2906         * loader/appcache/ApplicationCache.cpp:
2907         (WebCore::ApplicationCache::isURLInOnlineWhitelist):
2908         * loader/appcache/ApplicationCacheHost.cpp:
2909         (WebCore::ApplicationCacheHost::shouldLoadResourceFromApplicationCache):
2910         (WebCore::ApplicationCacheHost::getApplicationCacheFallbackResource):
2911         * loader/appcache/ApplicationCacheStorage.cpp:
2912         (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
2913
2914 2011-03-01  Patrick Gansterer  <paroga@webkit.org>
2915
2916         Reviewed by Adam Roben.
2917
2918         Add a handler class for Win32 HANDLE
2919         https://bugs.webkit.org/show_bug.cgi?id=55334
2920
2921         This class will call CloseHandle in the destructor for valid handles.
2922
2923         * platform/win/Win32Handle.h: Added.
2924
2925 2011-03-01  Eric Carlson  <eric.carlson@apple.com>
2926
2927         Reviewed by Chris Marrin.
2928
2929         <audio> and <video> should respect private browsing mode
2930         https://bugs.webkit.org/show_bug.cgi?id=55287
2931         <rdar://problem/9057699>
2932
2933         No new tests, this is just the plumbing.
2934
2935         * dom/Document.cpp:
2936         (WebCore::Document::privateBrowsingStateDidChange): New.
2937         (WebCore::Document::registerForPrivateBrowsingStateChangedCallbacks): Ditto.
2938         (WebCore::Document::unregisterForPrivateBrowsingStateChangedCallbacks): Ditto.
2939         * dom/Document.h:
2940
2941         * dom/Element.h:
2942         (WebCore::Element::privateBrowsingStateDidChange): New.
2943
2944         * html/HTMLMediaElement.cpp:
2945         (WebCore::HTMLMediaElement::HTMLMediaElement): Register for privacy mode changes.
2946         (WebCore::HTMLMediaElement::~HTMLMediaElement): Unregister for privacy mode changes.
2947         (WebCore::HTMLMediaElement::loadResource): Tell player current privacy mode.
2948         (WebCore::HTMLMediaElement::privateBrowsingStateDidChange):  New, call through to MediaPlayer.
2949         * html/HTMLMediaElement.h:
2950
2951         * page/Page.cpp:
2952         (WebCore::Page::privateBrowsingStateChanged): Call document()->privateBrowsingStateDidChange.
2953
2954         * platform/graphics/MediaPlayer.cpp:
2955         (WebCore::MediaPlayer::setPrivateBrowsingMode): New, call through to media engine.
2956         * platform/graphics/MediaPlayer.h:
2957
2958         * platform/graphics/MediaPlayerPrivate.h:
2959         (WebCore::MediaPlayerPrivateInterface::setPrivateBrowsingMode):  Declare new interface.
2960
2961 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
2962
2963         Reviewed by Steve Block.
2964
2965         When an IDBTransaction is aborted, all requests that have not yet fired should fire an ABORT_ERR
2966         https://bugs.webkit.org/show_bug.cgi?id=54785
2967
2968         This patch adds in a lot of sanity checks/ASSERTs to make sure we're doing
2969         the right thing and continue to do the right thing. It also modifies EventQueue
2970         so that we can cancel an event. To do this efficiently, the vector is now a
2971         ListHashSet.
2972
2973         Canelling the event is harder/messier, but the most deterministic thing to do.
2974         To the user, the work isn't done until we fire the onsuccess/onerror handler.
2975         So the event (which does fire that) needs to be cancelable.
2976
2977         transaction-abort.html tests this.
2978
2979         * dom/EventQueue.cpp:
2980         (WebCore::EventQueue::enqueueEvent):
2981         (WebCore::EventQueue::cancelEvent):
2982         (WebCore::EventQueue::pendingEventTimerFired):
2983         (WebCore::EventQueue::dispatchEvent):
2984         * dom/EventQueue.h:
2985         * dom/ExceptionCode.cpp:
2986         * storage/IDBCursor.cpp:
2987         (WebCore::IDBCursor::update):
2988         (WebCore::IDBCursor::deleteFunction):
2989         * storage/IDBDatabaseBackendImpl.cpp:
2990         (WebCore::IDBDatabaseBackendImpl::close):
2991         * storage/IDBDatabaseException.h:
2992         * storage/IDBIndex.cpp:
2993         (WebCore::IDBIndex::openCursor):
2994         (WebCore::IDBIndex::openKeyCursor):
2995         (WebCore::IDBIndex::get):
2996         (WebCore::IDBIndex::getKey):
2997         * storage/IDBObjectStore.cpp:
2998         (WebCore::IDBObjectStore::get):
2999         (WebCore::IDBObjectStore::add):
3000         (WebCore::IDBObjectStore::put):
3001         (WebCore::IDBObjectStore::deleteFunction):
3002         (WebCore::IDBObjectStore::clear):
3003         (WebCore::IDBObjectStore::openCursor):
3004         * storage/IDBRequest.cpp:
3005         (WebCore::IDBRequest::IDBRequest):
3006         (WebCore::IDBRequest::~IDBRequest):
3007         (WebCore::IDBRequest::readyState):
3008         (WebCore::IDBRequest::markEarlyDeath):
3009         (WebCore::IDBRequest::source):
3010         (WebCore::IDBRequest::abort):
3011         (WebCore::IDBRequest::onSuccess):
3012         (WebCore::IDBRequest::dispatchEvent):
3013         (WebCore::IDBRequest::enqueueEvent):
3014         * storage/IDBRequest.h:
3015         * storage/IDBTransaction.cpp:
3016         (WebCore::IDBTransaction::registerRequest):
3017         (WebCore::IDBTransaction::unregisterRequest):
3018         (WebCore::IDBTransaction::onAbort):
3019         * storage/IDBTransaction.h:
3020
3021 2011-03-01  Jeremy Orlow  <jorlow@chromium.org>
3022
3023         Reviewed by Steve Block.
3024
3025         Only IndexedDB's error event should be cancelable
3026         https://bugs.webkit.org/show_bug.cgi?id=55413
3027
3028         * storage/IDBRequest.cpp:
3029         (WebCore::createSuccessEvent):
3030         * storage/IDBTransaction.cpp:
3031         (WebCore::IDBTransaction::onAbort):
3032         (WebCore::IDBTransaction::onComplete):
3033
3034 2011-03-01  Jia Pu  <jpu@apple.com>
3035
3036         Reviewed by Darin Adler.
3037
3038         Remove CorrectionIndicator markers sooner.
3039         https://bugs.webkit.org/show_bug.cgi?id=54893
3040         <rdar://problem/8997524>
3041
3042         Test: platform/mac/editing/spelling/removing-underline-after-accepting-autocorrection-using-punctuation.html
3043
3044         This patch changes the autocorrection behavior on Mac OS X. We want to remove CorrectionIndicator
3045         marker after any editing command if the command:
3046         1. is not a SpellingCorrectionCommand itself.
3047         2. is not the command that triggers the autocorrection.
3048         This is achieved by adding shouldRetainAutocorrectionIndicator() function to EditCommand. This function returns
3049         false for all commands derived from EditCommand, except SpellingCorrectionCommand and TypingCommand. This function
3050         always returns true for SpellingCorrectionCommand. For TypingCommand, the return value is determined by member
3051         variable m_shouldRetainAutocorrectionIndicator, which can be modified by passing option into the TypingCommand's
3052         public functions.
3053         
3054         To avoid constantly searching marker list, we use variable DocumentMarkerController::m_absentMarkerTypeCache
3055         to cache whether there is any marker of a particular type.
3056
3057         This patch also fixes two minor existing bugs.
3058         
3059         1. We used to show reversion panel for word with CorrectionIndicator marker. This is incorrect because
3060         CorrectionIndicator marker can be removed from corrected words. Since all autocorrected words have Replacement
3061         marker unless the whole word is deleted, the correct behavior is to show reversion panel for word with Replacement
3062         marker, since all autocorrected words have such marker. However, since we don't want to show the reversion panel
3063         if an autocorrected word has been edited, we also check to see if the Replacement marker's description is null.
3064         
3065         This works as following:
3066         When we apply an autocorrection, we add Replacement marker to corrected word, and store original word
3067         as the marker's description. If the user edited the corrected word afterward, we set description to null.
3068         So when we decide whether to show a reversion panel, we not only check for the existence of Replacement
3069         marker, but also check if description is null.
3070         
3071         2. Fixed an assertion violation in Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited(), which would
3072         occur when deleting the first character in an editable area.
3073
3074         * dom/DocumentMarker.h: Added m_possiblyExistingMarkerTypes to allow quickly checking whether a marker type is
3075            completely in from the document.
3076
3077         * dom/DocumentMarkerController.cpp: Most of the functions listed here are optimized for early return by checking
3078            the return value of possiblyHasMarkers() at beginning.
3079         (WebCore::DocumentMarkerController::possiblyHasMarkers):
3080         (WebCore::DocumentMarkerController::DocumentMarkerController):
3081         (WebCore::DocumentMarkerController::detach):
3082         (WebCore::DocumentMarkerController::removeMarkers):
3083         (WebCore::DocumentMarkerController::addMarker):
3084         (WebCore::DocumentMarkerController::copyMarkers):
3085         (WebCore::DocumentMarkerController::markerContainingPoint):
3086         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
3087         (WebCore::DocumentMarkerController::removeMarkersFromMarkerMapVectorPair):
3088         (WebCore::DocumentMarkerController::repaintMarkers):
3089         (WebCore::DocumentMarkerController::shiftMarkers):
3090         (WebCore::DocumentMarkerController::setMarkersActive):
3091         (WebCore::DocumentMarkerController::hasMarkers):
3092         (WebCore::DocumentMarkerController::clearDescriptionOnMarkersIntersectingRange):
3093         * dom/DocumentMarkerController.h:
3094         * editing/EditCommand.cpp:
3095         (WebCore::EditCommand::apply):
3096         (WebCore::EditCommand::shouldRetainAutocorrectionIndicator):
3097         (WebCore::EditCommand::setShouldRetainAutocorrectionIndicator):
3098         * editing/EditCommand.h:
3099         * editing/Editor.cpp:
3100         (WebCore::Editor::respondToChangedSelection):
3101         (WebCore::Editor::appliedEditing):
3102         (WebCore::Editor::insertTextWithoutSendingTextEvent):
3103         (WebCore::Editor::insertLineBreak):
3104         (WebCore::Editor::insertParagraphSeparator):
3105         (WebCore::Editor::markMisspellingsAfterTypingToWord):
3106         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
3107         (WebCore::Editor::removeSpellAndCorrectionMarkersFromWordsToBeEdited):
3108         (WebCore::Editor::applyAutocorrectionBeforeTypingIfAppropriate):
3109         * editing/Editor.h:
3110         * editing/EditorCommand.cpp:
3111         (WebCore::executeInsertLineBreak):
3112         (WebCore::executeInsertParagraph):
3113         (WebCore::executeInsertText):
3114         * editing/SpellingCorrectionCommand.cpp:
3115         (WebCore::SpellingCorrectionCommand::shouldRetainAutocorrectionIndicator):
3116         * editing/SpellingCorrectionCommand.h:
3117         * editing/TypingCommand.cpp:
3118         (WebCore::TypingCommand::TypingCommand):
3119         (WebCore::TypingCommand::deleteSelection):
3120         (WebCore::TypingCommand::deleteKeyPressed):
3121         (WebCore::TypingCommand::forwardDeleteKeyPressed):
3122         (WebCore::TypingCommand::updateSelectionIfDifferentFromCurrentSelection):
3123         (WebCore::TypingCommand::insertText):
3124         (WebCore::TypingCommand::insertLineBreak):
3125         (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent):
3126         (WebCore::TypingCommand::insertParagraphSeparator):
3127         * editing/TypingCommand.h:
3128         (WebCore::TypingCommand::create):
3129         (WebCore::TypingCommand::shouldRetainAutocorrectionIndicator):
3130         (WebCore::TypingCommand::setShouldRetainAutocorrectionIndicator):
3131         * manual-tests/autocorrection/type-whitespace-to-dismiss-reversion.html:
3132
3133 2011-03-01  Renata Hodovan  <reni@webkit.org>
3134
3135         Reviewed by Andreas Kling.
3136
3137         FEDisplacementMapElement changes doesn't require relayout
3138         https://bugs.webkit.org/show_bug.cgi?id=55454
3139
3140         When the FEDisplacementMapElement receives an update message but the given value remains the same we don't need
3141         to relayout the filter.
3142
3143         No new tests are needed because this modification is covered by the dynamic update tests of FEDisplacementMap.
3144
3145         * platform/graphics/filters/FEDisplacementMap.cpp:
3146         (WebCore::FEDisplacementMap::setXChannelSelector):
3147         (WebCore::FEDisplacementMap::setYChannelSelector):
3148         (WebCore::FEDisplacementMap::setScale):
3149         * platform/graphics/filters/FEDisplacementMap.h:
3150         * svg/SVGFEDisplacementMapElement.cpp:
3151         (WebCore::SVGFEDisplacementMapElement::setFilterEffectAttribute):
3152         (WebCore::SVGFEDisplacementMapElement::svgAttributeChanged):
3153         * svg/SVGFEDisplacementMapElement.h:
3154
3155 2011-03-01  Dan Bernstein  <mitz@apple.com>
3156
3157         Reviewed by Darin Adler.
3158
3159         <rdar://problem/8902714> Expand ruby text when it is shorter than the ruby base
3160         https://bugs.webkit.org/show_bug.cgi?id=55487
3161
3162         * css/html.css:
3163         (ruby > rt): Changed the default text-align value to -webkit-auto to signal
3164         the default expansion behavior.
3165         * rendering/RenderBlock.h:
3166         (WebCore::RenderRubyText::textAlignmentForLine): Made protected.
3167         (WebCore::RenderBlock::adjustInlineDirectionLineBounds): Made protected.
3168         * rendering/RenderRubyText.cpp:
3169         (WebCore::RenderRubyText::textAlignmentForLine): Added. If text-align is
3170         -webkit-auto, returns JUSTIFY to allow expansion.
3171         (WebCore::RenderRubyText::adjustInlineDirectionLineBounds): Added. If
3172         text-align is -webkit-auto, insets the line such that the inset on each side
3173         is the half the inter-ideograph expansion, or one ruby character wide,
3174         whichever is smaller.
3175         * rendering/RenderRubyText.h:
3176
3177 2011-03-01  Sam Weinig  <sam@webkit.org>
3178
3179         Reviewed by Timothy Hatcher.
3180
3181         WebKit2 needs to be made localizable
3182         https://bugs.webkit.org/show_bug.cgi?id=55483
3183
3184         * English.lproj/Localizable.strings: Copied from Source/WebKit/English.lproj/Localizable.strings.
3185         * WebCore.xcodeproj/project.pbxproj:
3186         Move Localizable.strings to WebCore.
3187
3188         * WebCore.exp.in:
3189         Add export for localizedString function.
3190
3191         * platform/LocalizedStrings.h:
3192         * platform/mac/LocalizedStringsMac.mm: Added.
3193         Add function to get localized version of a string from the WebCore bundle.
3194
3195 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
3196
3197         Reviewed by Timothy Hatcher.
3198
3199         All Console Messages should be passed to ChromeClients.
3200         https://bugs.webkit.org/show_bug.cgi?id=54926
3201
3202         Do not filter the message type here, allow clients
3203         to filter and deal with the different message types.
3204
3205         * page/Console.cpp:
3206         (WebCore::Console::addMessage):
3207
3208 2011-02-23  Joseph Pecoraro  <joepeck@webkit.org>
3209
3210         Reviewed by Kenneth Rohde Christiansen.
3211
3212         Viewport parsing no longer accepts "1.0;" value as valid.
3213         https://bugs.webkit.org/show_bug.cgi?id=53705
3214
3215         When parsing numeric values, the "css-viewport" spec says
3216         to use the number prefix, and the non numeric part of the
3217         string can be ignored. This matches our behavior before
3218         r67376. The change was that checking the error out condition
3219         of String::toFloat doesn't necessarily mean that there
3220         was a non-numeric prefix. This patch checks if there was
3221         or wasn't a non-numeric prefix.
3222
3223         There is a console warning in any case where a numeric
3224         value is not parsed cleanly. There is an error warning
3225         when it is not a number at all, and a tip warning when
3226         it has been truncated.
3227
3228         Error messages are slightly improved to provide more
3229         context, both the key and value, when an error happens.
3230
3231         Test: fast/viewport/viewport-129.html
3232
3233         * dom/ViewportArguments.cpp:
3234         (WebCore::numericPrefix):
3235         (WebCore::findSizeValue):
3236         (WebCore::findScaleValue):
3237         (WebCore::findUserScalableValue):
3238         (WebCore::findTargetDensityDPIValue):
3239         (WebCore::viewportErrorMessageTemplate):
3240         (WebCore::viewportErrorMessageLevel):
3241         (WebCore::reportViewportWarning):
3242         * dom/ViewportArguments.h:
3243
3244 2011-03-01  Ilya Tikhonovsky  <loislo@chromium.org>
3245
3246         Reviewed by Pavel Feldman.
3247
3248         Web Inspector: InjectedScript.setPropertyValue doesn't work.
3249         https://bugs.webkit.org/show_bug.cgi?id=55475
3250
3251         * inspector/InjectedScript.cpp:
3252         (WebCore::InjectedScript::setPropertyValue):
3253
3254 2011-03-01  Steve Block  <steveblock@google.com>
3255
3256         Reviewed by Jeremy Orlow.
3257
3258         Remove unused JavaString::uchars()
3259         https://bugs.webkit.org/show_bug.cgi?id=55465
3260
3261         No new tests, removing dead code only.
3262
3263         * bridge/jni/JNIBridge.h:
3264         * bridge/jni/jsc/JavaStringJSC.h:
3265         (JSC::Bindings::JavaStringImpl::utf8):
3266         * bridge/jni/v8/JavaStringV8.h:
3267
3268 2011-03-01  Alexander Pavlov  <apavlov@chromium.org>
3269
3270         Reviewed by Yury Semikhatsky.
3271
3272         Web Inspector: Extremely slow DOM search in GMail
3273         https://bugs.webkit.org/show_bug.cgi?id=55456
3274
3275         The solution comprises three major parts:
3276         - avoid multiple invocations of highlightSearchResults(), one per each nodeIds chunk.
3277         - cache highlighted node's innerHTML so that no extra _nodeTitleInfo() calls will be needed.
3278         - replace hand-written Text nodes iteration with a snapshot-based ".//text()" XPathResult.
3279
3280         * inspector/front-end/ElementsPanel.js:
3281         (WebInspector.ElementsPanel.prototype.searchCanceled):
3282         (WebInspector.ElementsPanel.prototype.addNodesToSearchResult):
3283         * inspector/front-end/ElementsTreeOutline.js:
3284         (WebInspector.ElementsTreeElement.prototype.highlightSearchResults):
3285         (WebInspector.ElementsTreeElement.prototype.updateTitle):
3286         ():
3287         * inspector/front-end/utilities.js:
3288         ():
3289
3290 2011-03-01  Adam Roben  <aroben@apple.com>
3291
3292         Fix multiple-definition linker warnings introduced by r79978 on Windows
3293
3294         * rendering/RenderingAllInOne.cpp: Removed TextControlInnerElements.cpp, as it is now being
3295         compiled separately.
3296
3297 2011-03-01  Andras Becsi  <abecsi@webkit.org>
3298
3299         Reviewed by Csaba Osztrogonác.
3300
3301         [Qt] Clean up the project files and move common options to WebKit.pri.
3302
3303         No new tests needed.
3304
3305         * WebCore.pri: Move common options to WebKit.pri.
3306         * WebCore.pro: Ditto.
3307
3308 2011-03-01  Steve Block  <steveblock@google.com>
3309
3310         Reviewed by Pavel Feldman.
3311
3312         JNI code in Java bridge is not correctly guarded
3313         https://bugs.webkit.org/show_bug.cgi?id=55459
3314
3315         No new tests, build fix only.
3316
3317         * bridge/jni/v8/JNIBridgeV8.cpp:
3318         * bridge/jni/v8/JNIBridgeV8.h:
3319         * bridge/jni/v8/JNIUtilityPrivate.cpp:
3320         * bridge/jni/v8/JNIUtilityPrivate.h:
3321         * bridge/jni/v8/JavaClassV8.cpp:
3322         * bridge/jni/v8/JavaClassV8.h:
3323         * bridge/jni/v8/JavaInstanceV8.cpp:
3324         * bridge/jni/v8/JavaInstanceV8.h:
3325         * bridge/jni/v8/JavaNPObjectV8.cpp:
3326         * bridge/jni/v8/JavaNPObjectV8.h:
3327
3328 2011-03-01  Steve Block  <steveblock@google.com>
3329
3330         Reviewed by Jeremy Orlow.
3331
3332         Bridge.h should not include BridgeJSC.h
3333         https://bugs.webkit.org/show_bug.cgi?id=55212
3334
3335         Instead, BridgeJSC.h should include Bridge.h and code should include
3336         BridgeJSC.h as appropriate.
3337
3338         This prevents ports that use V8 from having to include JSC-specific
3339         files, even if the contents of those files are guarded.
3340
3341         No new tests, cleanup only.
3342
3343         * bindings/js/JSPluginElementFunctions.cpp:
3344         * bindings/js/ScriptControllerBrew.cpp:
3345         * bindings/js/ScriptControllerGtk.cpp:
3346         * bindings/js/ScriptControllerHaiku.cpp:
3347         * bindings/js/ScriptControllerQt.cpp:
3348         * bindings/js/ScriptControllerMac.mm:
3349         * bindings/js/ScriptControllerWin.cpp:
3350         * bindings/js/ScriptControllerWx.cpp:
3351         * bindings/js/ScriptInstance.h:
3352         * bindings/objc/WebScriptObject.mm:
3353         * bridge/Bridge.h:
3354         * bridge/c/c_class.h:
3355         * bridge/c/c_instance.h:
3356         * bridge/c/c_runtime.h:
3357         * bridge/jni/jsc/JNIBridgeJSC.h:
3358         * bridge/jni/jsc/JavaInstanceJSC.h:
3359         * bridge/jsc/BridgeJSC.h:
3360         * bridge/objc/objc_runtime.h:
3361         * bridge/qt/qt_class.h:
3362         * bridge/qt/qt_instance.h:
3363         * bridge/qt/qt_pixmapruntime.h:
3364         * bridge/qt/qt_runtime.h:
3365         * bridge/runtime_array.h:
3366         * bridge/runtime_method.h:
3367         * bridge/runtime_object.h:
3368         * bridge/runtime_root.cpp:
3369         * bridge/testbindings.cpp:
3370         * bridge/testbindings.mm:
3371         * bridge/testqtbindings.cpp:
3372         * page/win/FrameWin.cpp:
3373         * platform/graphics/wince/MediaPlayerProxy.cpp:
3374         * plugins/PluginView.cpp:
3375         * plugins/PluginViewNone.cpp:
3376         * plugins/gtk/PluginViewGtk.cpp:
3377         * plugins/mac/PluginViewMac.mm:
3378         * plugins/qt/PluginViewQt.cpp:
3379         * plugins/symbian/PluginViewSymbian.cpp:
3380         * plugins/win/PluginViewWin.cpp:
3381
3382 2011-03-01  Nikolas Zimmermann  <nzimmermann@rim.com>
3383
3384         Reviewed by Antti Koivisto.
3385
3386         SVG 1.1 2nd Edition color-prop-05-t.svg exposes bug in 'currentColor' handling
3387         https://bugs.webkit.org/show_bug.cgi?id=54800
3388
3389         Wrong handling of currentColor on inherit
3390         https://bugs.webkit.org/show_bug.cgi?id=38102
3391
3392         Stop storing RefPtr<SVGPaint> objects in the SVGRenderStyle for fill/stroke. These are the last
3393         two objects that held references to CSSValues, they're all gone now, aligning better with RenderStyle.
3394         It's also dangerous, as a SVGPaint object can be shared by multiple SVGRenderStyles (MappedAttribute will
3395         once create a CSSStyleDeclaration for fill="red" and reuse it where possible), and it was easy to
3396         accidently mutate the object, affecting multiple styles. Instead store a Color, an URI and a paint
3397         type in SVGRenderStyle, enough to create a SVGPaint object, if needed (eg for computed styles).
3398
3399         <g color="green"><rect fill="currentColor"/> already worked fine in trunk, but
3400         <g fill="currentColor" color="green"><rect color="red"/> procuded a red rectangle.
3401
3402         In order to fix to bug we have to resolve all currentColor values for SVGPaint objects, in SVGCSSStyleSelector,
3403         as it's already done for SVGColor objects (stop-color, flood-color, etc.) instead of in RenderSVGResource::fill/strokePaintingResource,
3404         when trying to use the paint server. The correct "color" value that should be used from the RenderStyle, is directly
3405         available in CSSStyleSelector: in applyProperty m_style->color() gives the desired value. In CSSStyleSelector it's handled
3406         exactly this way for non-SVG currentColor properties. Also fix computed styles, which did not resolve currentColor for SVGPaint/SVGColor.
3407
3408         A previous patch implemented the SVGPaint/SVGColor API. SVG demands these CSSValues to be mutable. Introduce
3409         CSSMutableValue, which extends CSSValue by a Node pointer, and let SVGPaint/SVGColor inherit from it.
3410         Mutating a SVGPaint/SVGColor object now takes immediate effect, which is reflected in the inline style / computed style.
3411         (Note that getPresentationAttribute() already takes care of removing the CSSValue from the mapped attribute cache, so that it's no longer shared.)
3412
3413         Add several new tests covering the patch.
3414
3415         Tests: svg/W3C-SVG-1.1-SE/color-prop-05-t.svg
3416                svg/animations/animate-color-fill-currentColor.html
3417                svg/custom/SVGPaint-mutate-attribute.svg
3418                svg/custom/SVGPaint-mutate-inline-style.svg
3419
3420         * GNUMakefile.am: Add CSSMutableValue.h
3421         * WebCore.gypi: Ditto.
3422         * WebCore.xcodeproj/project.pbxproj: Ditto.
3423         * css/CSSMutableStyleDeclaration.cpp: Reset the Node pointer in all CSSMutableValues belonging to this style declaration.
3424         (WebCore::CSSMutableStyleDeclaration::~CSSMutableStyleDeclaration):
3425         * css/CSSMutableStyleDeclaration.h: Add destructor.
3426         * css/CSSMutableValue.h: Added.
3427         (WebCore::CSSMutableValue::CSSMutableValue):
3428         (WebCore::CSSMutableValue::~CSSMutableValue):
3429         (WebCore::CSSMutableValue::isMutableValue):
3430         (WebCore::CSSMutableValue::node):
3431         (WebCore::CSSMutableValue::setNode):
3432         (WebCore::CSSMutableValue::setNeedsStyleRecalc):
3433         * css/CSSStyleDeclaration.cpp:
3434         (WebCore::CSSStyleDeclaration::getPropertyCSSValue): Set the Node object of a CSSMutableValue to the Node, this style declaration belongs to.
3435         * css/CSSValue.h:
3436         (WebCore::CSSValue::isMutableValue): Return false, default.
3437         * css/SVGCSSComputedStyleDeclaration.cpp:
3438         (WebCore::CSSComputedStyleDeclaration::adjustSVGPaintForCurrentColor): Add helper function, resolving currentColor values for SVGPaint objects.
3439         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): Use currentColorOrValidColor/adjustSVGPaintForCurrentColor to resolve SVGColor/SVGPaint values.
3440         * css/SVGCSSStyleSelector.cpp:
3441         (WebCore::CSSStyleSelector::applySVGProperty): Store fill/stroke uri, color, paint type seperated in SVGRenderStyle, don't store the full SVGPaint object anymore.
3442         * rendering/style/SVGRenderStyle.cpp:
3443         (WebCore::SVGRenderStyle::diff): Adapt to SVGPaint changes.
3444         * rendering/style/SVGRenderStyle.h: Ditto.
3445         (WebCore::SVGRenderStyle::initialFillOpacity):
3446         (WebCore::SVGRenderStyle::initialFillPaintType):
3447         (WebCore::SVGRenderStyle::initialFillPaintColor):
3448         (WebCore::SVGRenderStyle::initialFillPaintUri):
3449         (WebCore::SVGRenderStyle::initialStrokeOpacity):
3450         (WebCore::SVGRenderStyle::initialStrokePaintType):
3451         (WebCore::SVGRenderStyle::initialStrokePaintColor):
3452         (WebCore::SVGRenderStyle::initialStrokePaintUri):
3453         (WebCore::SVGRenderStyle::initialStrokeMiterLimit):
3454         (WebCore::SVGRenderStyle::initialStopOpacity):
3455         (WebCore::SVGRenderStyle::initialFloodOpacity):
3456         (WebCore::SVGRenderStyle::setFillPaint):
3457         (WebCore::SVGRenderStyle::setStrokePaint):
3458         (WebCore::SVGRenderStyle::fillPaintType):
3459         (WebCore::SVGRenderStyle::fillPaintColor):
3460         (WebCore::SVGRenderStyle::fillPaintUri):
3461         (WebCore::SVGRenderStyle::strokePaintType):
3462         (WebCore::SVGRenderStyle::strokePaintColor):
3463         (WebCore::SVGRenderStyle::strokePaintUri):
3464         (WebCore::SVGRenderStyle::hasStroke):
3465         (WebCore::SVGRenderStyle::hasFill):
3466         * rendering/style/SVGRenderStyleDefs.cpp: Ditto.
3467         (WebCore::StyleFillData::StyleFillData):
3468         (WebCore::StyleFillData::operator==):
3469         (WebCore::StyleStrokeData::StyleStrokeData):
3470         (WebCore::StyleStrokeData::operator==):
3471         * rendering/style/SVGRenderStyleDefs.h: Ditto.
3472         * rendering/svg/RenderSVGResource.cpp: Ditto.
3473         (WebCore::requestPaintingResource):
3474         * rendering/svg/RenderSVGResourceClipper.cpp: Ditto.
3475         (WebCore::RenderSVGResourceClipper::drawContentIntoMaskImage):
3476         * rendering/svg/SVGResources.cpp: Ditto.
3477         (WebCore::paintingResourceFromSVGPaint):
3478         (WebCore::SVGResources::buildCachedResources):
3479         * svg/SVGColor.cpp: Call setNeedsStyleRecalc() after mutating the object.
3480         (WebCore::SVGColor::setRGBColor):
3481         (WebCore::SVGColor::setRGBColorICCColor):
3482         (WebCore::SVGColor::setColor):
3483         * svg/SVGColor.h:
3484         * svg/SVGPaint.cpp: Ditto.
3485         (WebCore::SVGPaint::setUri):
3486         (WebCore::SVGPaint::setPaint):
3487         * svg/SVGPaint.h:
3488
3489 2011-03-01  Andrey Adaikin  <aandrey@google.com>
3490
3491         Reviewed by Pavel Feldman.
3492
3493         Web Inspector: [Text editor] Handle decorated lines in the editor
3494         https://bugs.webkit.org/show_bug.cgi?id=55373
3495
3496         * inspector/front-end/SourceFrame.js:
3497         (WebInspector.SourceFrame.prototype._startEditing):
3498         (WebInspector.SourceFrame.prototype._endEditing):
3499         (WebInspector.SourceFrame.prototype._createTextViewer):
3500         * inspector/front-end/TextViewer.js:
3501         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
3502         (WebInspector.TextEditorGutterChunk.prototype.addDecoration):
3503         (WebInspector.TextEditorGutterChunk.prototype.removeDecoration):
3504         (WebInspector.TextEditorMainPanel.prototype.set readOnly):
3505         (WebInspector.TextEditorMainPanel.prototype._handleDOMUpdates):
3506         (WebInspector.TextEditorMainPanel.prototype._handleDOMSubtreeModified):
3507         (WebInspector.TextEditorMainPanel.prototype._markDirtyLines):
3508         (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
3509         (WebInspector.TextEditorMainPanel.prototype._removeDecorationsInRange):
3510         (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
3511         (WebInspector.TextEditorMainPanel.prototype._collectLinesFromDiv):
3512         (WebInspector.TextEditorMainChunk.prototype.addDecoration):
3513         (WebInspector.TextEditorMainChunk.prototype.removeDecoration):
3514         (WebInspector.TextEditorMainChunk.prototype.removeAllDecorations):
3515         (WebInspector.TextEditorMainChunk.prototype.get decorated):
3516
3517 2011-03-01  Philippe Normand  <pnormand@igalia.com>
3518
3519         Unreviewed GTK build fix after r79978
3520
3521         * GNUmakefile.am:
3522
3523 2011-03-01  Andras Becsi  <abecsi@webkit.org>
3524
3525         Unreviewed build fix.
3526
3527         [Qt] Fix minimal build.
3528
3529         No new tests needed.
3530
3531         * WebCore.pri: Is included in WebKit2.pro, so XP_UNIX can remain here.
3532
3533 2011-03-01  anthony taranto  <anthony.taranto@gmail.com>
3534
3535         Return undefined value from ScriptController::evaluate(), allowing the
3536         caller to distinguish between an error and an undefined return value.
3537         https://bugs.webkit.org/show_bug.cgi?id=51528
3538
3539         * bindings/v8/ScriptController.cpp: 
3540
3541 2011-03-01  Roland Steiner  <rolandsteiner@chromium.org>
3542
3543         Reviewed by Kent Tamura.
3544
3545         Bug 54853 - Move TextControlInnerElements from WebCore/rendering to WebCore/html/shadow
3546         https://bugs.webkit.org/show_bug.cgi?id=54853
3547         
3548         Moving the files from rendering to html/shadow, with the exception of
3549         the class RenderTextControlInnerBlock, which I moved to RenderTextControlSingleLine
3550         (this place is not ideal, but only a temporary state during the larger refactoring
3551         for <input>).
3552
3553         No new tests. (refactoring)
3554
3555         * Android.mk:
3556         * CMakeLists.txt:
3557         * WebCore.gypi:
3558         * WebCore.pro:
3559         * WebCore.vcproj/WebCore.vcproj:
3560         * WebCore.xcodeproj/project.pbxproj:
3561         * html/shadow/TextControlInnerElements.cpp: Copied from Source/WebCore/rendering/TextControlInnerElements.cpp.
3562         * html/shadow/TextControlInnerElements.h: Copied from Source/WebCore/rendering/TextControlInnerElements.h.
3563         * rendering/RenderTextControlSingleLine.cpp:
3564         (WebCore::RenderTextControlInnerBlock::positionForPoint):
3565         * rendering/RenderTextControlSingleLine.h:
3566         (WebCore::RenderTextControlInnerBlock::RenderTextControlInnerBlock):
3567         (WebCore::RenderTextControlInnerBlock::hasLineIfEmpty):
3568         * rendering/TextControlInnerElements.cpp: Removed.
3569         * rendering/TextControlInnerElements.h: Removed.
3570
3571 2011-03-01  Ryosuke Niwa  <rniwa@webkit.org>
3572
3573         Reviewed by Tony Chang.
3574
3575         applyInlineStyleToPushDown and removeInlineStyleFromElement should take EditingStyle
3576         https://bugs.webkit.org/show_bug.cgi?id=55338
3577
3578         Deployed EditingStyle in applyInlineStyleToPushDown and removeInlineStyleFromElement.
3579
3580         Also added a convenience function EditingStyle::setProperty, which lazily instantiates
3581         new CSSMutableStyleDeclaration for m_mutableStyle.
3582
3583         * editing/ApplyStyleCommand.cpp:
3584         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): Takes EditingStyle*.
3585         (WebCore::ApplyStyleCommand::removeImplicitlyStyledElement): Ditto.
3586         (WebCore::ApplyStyleCommand::removeCSSStyle): Ditto.
3587         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Calls the above three functions.
3588         (WebCore::ApplyStyleCommand::removeInlineStyle): Calls pushDownInlineStyleAroundNode.
3589         * editing/ApplyStyleCommand.h:
3590         * editing/EditingStyle.cpp:
3591         (WebCore::HTMLElementEquivalent::addToStyle): Takes EditingStyle*; calls EditingStyle::setProperty.
3592         (WebCore::HTMLAttributeEquivalent::addToStyle): Ditto.
3593         (WebCore::EditingStyle::setProperty): Added.  This member function lazily instantiates
3594         new CSSMutableStyleDeclaration for m_mutableStyle.
3595         (WebCore::EditingStyle::conflictsWithInlineStyleOfElement): Takes EditingStyle*.
3596         (WebCore::EditingStyle::conflictsWithImplicitStyleOfElement): Ditto.
3597         (WebCore::EditingStyle::extractConflictingImplicitStyleOfAttributes): Ditto.
3598         * editing/EditingStyle.h: Added HTMLElementEquivalent and HTMLAttributeEquivalent as friends.
3599         (WebCore::EditingStyle::conflictsWithInlineStyleOfElement): Ditto.
3600         * editing/InsertTextCommand.cpp: Removed unnecessary includes.
3601         * editing/RemoveCSSPropertyCommand.h: Ditto.
3602
3603 2011-02-28  Pavel Feldman  <pfeldman@chromium.org>
3604
3605         Not reviewed: chromium rebuilds XMLViewer after noop. Fixed gyp file.
3606
3607         * WebCore.gyp/WebCore.gyp:
3608
3609 2011-02-28  David Levin  <levin@chromium.org>
3610
3611         Reviewed by Darin Adler.
3612
3613         KURL should expose a referrer property.
3614         https://bugs.webkit.org/show_bug.cgi?id=55415
3615
3616         No change in functionality so no new tests.
3617
3618         * loader/FrameLoader.cpp:
3619         (WebCore::FrameLoader::setOutgoingReferrer): Refactor to put the majority
3620         of functionality in KURL::strippedForUseAsReferrer() so that this code can
3621         be more easily reused.
3622         * platform/KURL.cpp:
3623         (WebCore::KURL::strippedForUseAsReferrer): Converts the url to a string
3624         which is suitable for use as a referrer.
3625         * platform/KURL.h:
3626
3627 2011-02-28  Chang Shu  <cshu@webkit.org>
3628
3629         Reviewed by Ryosuke Niwa.
3630
3631         Remove the support of Frame::isContentEditable and its dependencies.
3632         https://bugs.webkit.org/show_bug.cgi?id=54292
3633
3634         Frame::isContentEditable is currently based on two things: Editor::clientIsEditable and
3635         Document::inDesignMode. In fact, it should only rely on Document::inDesignMode. As a result,
3636         Editor::clientIsEditable and its client-side implementation can be removed.
3637
3638         * WebCore.exp.in:
3639         * accessibility/AccessibilityRenderObject.cpp:
3640         (WebCore::AccessibilityRenderObject::isReadOnly):
3641         * editing/Editor.cpp:
3642         * editing/Editor.h:
3643         * editing/SelectionController.cpp:
3644         (WebCore::SelectionController::setSelectionFromNone):
3645         * html/HTMLElement.cpp:
3646         (WebCore::HTMLElement::isContentEditable):
3647         (WebCore::HTMLElement::isContentRichlyEditable):
3648         * page/DragController.cpp:
3649         (WebCore::DragController::operationForLoad):
3650         * page/EditorClient.h:
3651         * page/Frame.cpp:
3652         * page/Frame.h:
3653
3654 2011-02-28  Kent Tamura  <tkent@chromium.org>
3655
3656         Reviewed by Darin Adler.
3657
3658         Number type input cannot be set to empty string if it has an initial value
3659         https://bugs.webkit.org/show_bug.cgi?id=53744
3660
3661         We need to distinguish null strings and empty strings for
3662         InputElementData::value. So InputType::sanitizeValue() also needs to
3663         take care of it.
3664
3665         * dom/InputElement.h: Add a comment to InputElementData::value and
3666           setValue about null strings.
3667         * html/InputType.h: Add a comment to sanitizeValue about null strings.
3668         * html/NumberInputType.cpp:
3669         (WebCore::NumberInputType::sanitizeValue): Returns a null string if the
3670           proposed value is a null string. Returning an empty string if the
3671           proposed value is not a number.
3672
3673 2011-02-28  Kent Tamura  <tkent@chromium.org>
3674
3675         Reviewed by Darin Adler.
3676
3677         Number type input should not handle mouse wheel events if it has no focus.
3678         https://bugs.webkit.org/show_bug.cgi?id=53638
3679
3680         * html/TextFieldInputType.cpp:
3681         (WebCore::TextFieldInputType::handleWheelEventForSpinButton): Check focused().
3682
3683 2011-02-28  Noel Gordon  <noel.gordon@gmail.com>
3684         Reviewed by James Robinson.
3685
3686         [chromium] GradientSkia: use the common Gradient stop sorting methods.
3687         https://bugs.webkit.org/show_bug.cgi?id=54625
3688
3689         Remove a FIXME: call the Gradient.cpp stop storting routines, no need
3690         to duplicate that code herein.
3691
3692         No change in behavior, so no new tests.
3693
3694         * platform/graphics/skia/GradientSkia.cpp:
3695         (WebCore::Gradient::platformGradient):
3696
3697 2011-02-28  Steve Block  <steveblock@google.com>
3698
3699         Reviewed by Jeremy Orlow.
3700
3701         JNI code should include <jni.h> on non-OSX platforms.
3702         https://bugs.webkit.org/show_bug.cgi?id=55219
3703
3704         On Mac we need to include <JavaVM/jni.h> as this is a framework
3705         include. We include jni.h through JNIUtility.h to minimize the
3706         number of ifdefs.
3707
3708         No new tests, build fix only.
3709
3710         * WebCore.xcodeproj/project.pbxproj
3711         * bridge/jni/JNIUtility.h:
3712         * bridge/jni/jni_jsobject.h:
3713         * bridge/jni/jsc/JNIBridgeJSC.h:
3714         * bridge/jni/jsc/JavaInstanceJSC.h:
3715         * bridge/jni/v8/JavaInstanceV8.h:
3716
3717 2011-02-28  Nebojsa Sabovic  <neb@chromium.org>
3718
3719         Reviewed by James Robinson.
3720
3721         [chromium] Pepper plugins render upside down
3722         https://bugs.webkit.org/show_bug.cgi?id=55101
3723
3724         No layout tests for pepper plugins (yet).
3725
3726         * platform/graphics/chromium/PluginLayerChromium.h:
3727
3728 2011-02-28  Tony Gentilcore  <tonyg@chromium.org>
3729
3730         Reviewed by Adam Barth.
3731
3732         Follow HTML5 spec for document.open() a little more closely
3733         https://bugs.webkit.org/show_bug.cgi?id=55392
3734
3735         See: 3.5.1.4 at http://www.whatwg.org/specs/web-apps/current-work/#dom-document-open.
3736
3737         The second return check matches the spec. The first return check (isExecutingScript())
3738         was left in place because without it, fast/tokenizer/write-external-script-open.html
3739         would fail. It also possible there is a spec bug because FF4 crashes on that test and
3740         IE9 prints "FAILURE." The isLoadingMainResource() check was removed because the main
3741         resource is always loading while parser->isParsing().
3742
3743         Test: fast/parser/double-write-from-closed-iframe.html
3744
3745         * dom/Document.cpp:
3746         (WebCore::Document::open):
3747
3748 2011-02-28  Avi Drissman  <avi@google.com>
3749
3750         Reviewed by James Robinson.
3751
3752         WebCursorInfo needs to match enums in platform/Cursor.h
3753         https://bugs.webkit.org/show_bug.cgi?id=55094
3754
3755         * platform/chromium/CursorChromium.cpp:
3756         (WebCore::grabCursor):
3757         (WebCore::grabbingCursor):
3758         * platform/chromium/PlatformCursor.h:
3759
3760 2011-02-28  Jia Pu  <jpu@apple.com>
3761
3762         Reviewed by Darin Adler.
3763
3764         [Mac] Make "Change back to …" contextual menu item work with new autocorrection.
3765         https://bugs.webkit.org/show_bug.cgi?id=55396
3766         <rdar://problem/8836093>
3767
3768         The change in InlineTextBox.cpp fixes a bug, where the rectangle of Replacement marker isn't
3769         calculated. We need this to do hit test when deciding whether to show "Change back to ..." on
3770         contextual menu.
3771
3772         The change in Editor.cpp is for notifying spellchecker about the reversion whenever "Change
3773         back to ..." is clicked.
3774
3775         * editing/Editor.cpp:
3776         (WebCore::Editor::changeBackToReplacedString):
3777         * rendering/InlineTextBox.cpp:
3778         (WebCore::InlineTextBox::paintDocumentMarkers):
3779
3780 2011-02-28  Victoria Kirst  <vrk@google.com>
3781
3782         Reviewed by Kenneth Russell.
3783
3784         [chromium] Fall back to texSubImage2D when mapTexSubImage2D fails in VideoLayerChromium
3785         https://bugs.webkit.org/show_bug.cgi?id=55269
3786
3787         Mesa does not support mapTexSubImage2D, so this change lets
3788         GPU-accelerated video work with DRT layout tests.
3789
3790         * platform/graphics/chromium/VideoLayerChromium.cpp:
3791         (WebCore::VideoLayerChromium::updateTexture):
3792
3793 2011-02-28  David Hyatt  <hyatt@apple.com>
3794
3795         Reviewed by Dan Bernstein.
3796
3797         https://bugs.webkit.org/show_bug.cgi?id=46500, make positioned elements work with vertical text.  Change staticX and staticY
3798         to be staticInlinePosition and staticBlockPosition.  Patch all of the computations involving these variables to be writing
3799         mode aware.  Mixed writing modes are not yet supported.
3800
3801         Added new tests in fast/block/positioning/auto.
3802
3803         * rendering/RenderBlock.cpp:
3804         (WebCore::RenderBlock::adjustPositionedBlock):
3805         (WebCore::RenderBlock::layoutPositionedObjects):
3806         * rendering/RenderBlock.h:
3807         (WebCore::RenderBlock::startOffsetForLine):
3808         * rendering/RenderBlockLineLayout.cpp:
3809         (WebCore::RenderBlock::appendRunsForObject):
3810         (WebCore::setStaticPositions):
3811         (WebCore::RenderBlock::skipTrailingWhitespace):
3812         (WebCore::RenderBlock::skipLeadingWhitespace):
3813         (WebCore::RenderBlock::findNextLineBreak):
3814         * rendering/RenderBox.cpp:
3815         (WebCore::RenderBox::positionLineBox):
3816         (WebCore::computeInlineStaticDistance):
3817         (WebCore::RenderBox::computePositionedLogicalWidth):
3818         (WebCore::computeBlockStaticDistance):
3819         (WebCore::RenderBox::computePositionedLogicalHeight):
3820         (WebCore::RenderBox::computePositionedLogicalWidthReplaced):
3821         (WebCore::RenderBox::computePositionedLogicalHeightReplaced):
3822         * rendering/RenderBoxModelObject.h:
3823         (WebCore::RenderBoxModelObject::borderAndPaddingLogicalLeft):
3824         (WebCore::RenderBoxModelObject::borderAndPaddingStart):
3825         (WebCore::RenderBoxModelObject::borderLogicalLeft):
3826         (WebCore::RenderBoxModelObject::borderLogicalRight):
3827         * rendering/RenderFlexibleBox.cpp:
3828         (WebCore::RenderFlexibleBox::layoutHorizontalBox):
3829         (WebCore::RenderFlexibleBox::layoutVerticalBox):
3830         * rendering/RenderInline.cpp:
3831         (WebCore::RenderInline::relativePositionedInlineOffset):
3832         * rendering/RenderLayer.cpp:
3833         (WebCore::RenderLayer::RenderLayer):
3834         * rendering/RenderLayer.h:
3835         (WebCore::RenderLayer::staticInlinePosition):
3836         (WebCore::RenderLayer::staticBlockPosition):
3837         (WebCore::RenderLayer::setStaticInlinePosition):
3838         (WebCore::RenderLayer::setStaticBlockPosition):
3839         * rendering/style/RenderStyle.h:
3840         (WebCore::InheritedFlags::hasAutoLeftAndRight):
3841         (WebCore::InheritedFlags::hasAutoTopAndBottom):
3842         (WebCore::InheritedFlags::hasStaticInlinePosition):
3843         (WebCore::InheritedFlags::hasStaticBlockPosition):
3844
3845 2011-02-28  Balazs Kelemen  <kbalazs@webkit.org>
3846
3847         Reviewed by Anders Carlsson.
3848
3849         [Qt][WK2] Plugin initialization
3850         https://bugs.webkit.org/show_bug.cgi?id=48127
3851
3852         No function change so no new tests.
3853
3854         * WebCore.pri: Lift the definition of the XP_UNIX macro
3855         from WebCore.pri to WebKit.pri to apply it to WebKit2 as well.
3856
3857 2011-02-28  Dean Jackson  <dino@apple.com>
3858
3859         Reviewed by Eric Carlson.
3860
3861         https://bugs.webkit.org/show_bug.cgi?id=55239
3862
3863         Allow webkitEnterFullScreen to be called from outside
3864         a user gesture, but only when the correct restrictions
3865         have been lifted in WebCore. Add a new restriction type
3866         for this situation. Meanwhile, expose the current
3867         restrictions externally from HTMLMediaElement, so that
3868         clients can easily set restrictions on their port.
3869
3870         No new tests. This doesn't change existing behavior. Some
3871         WebKit clients may lift the restriction.
3872
3873         * html/HTMLMediaElement.cpp:
3874         (WebCore::HTMLMediaElement::HTMLMediaElement):
3875         - ensure restrictions initialize with fullscreen restricted
3876         * html/HTMLMediaElement.h:
3877         (WebCore::HTMLMediaElement::requireUserGestureForLoad):
3878         (WebCore::HTMLMediaElement::requireUserGestureForRateChange):
3879         (WebCore::HTMLMediaElement::requireUserGestureForFullScreen):
3880         (WebCore::HTMLMediaElement::setBehaviorRestrictions):
3881         - new methods to expose the current restrictions
3882         * html/HTMLVideoElement.cpp:
3883         (WebCore::HTMLVideoElement::webkitEnterFullscreen):
3884
3885 2011-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3886
3887         Unreviewed, rolling out r78789.
3888         http://trac.webkit.org/changeset/78789
3889         https://bugs.webkit.org/show_bug.cgi?id=55409
3890
3891         Incorrect canvas fallback implementation (Requested by
3892         inferno-sec on #webkit).
3893
3894         * accessibility/AccessibilityObject.h:
3895         * accessibility/AccessibilityRenderObject.cpp:
3896         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
3897         (WebCore::AccessibilityRenderObject::canHaveChildren):
3898         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3899         (atkRole):
3900         * accessibility/mac/AccessibilityObjectWrapper.mm:
3901         * html/HTMLFormControlElement.cpp:
3902         (WebCore::HTMLFormControlElement::isFocusable):
3903         * rendering/RenderHTMLCanvas.cpp:
3904         * rendering/RenderHTMLCanvas.h:
3905         * rendering/RenderObject.cpp:
3906         (WebCore::RenderObject::repaint):
3907         * rendering/RenderTreeAsText.cpp:
3908         (WebCore::write):
3909
3910 2011-02-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3911
3912         Unreviewed, rolling out r79425.
3913         http://trac.webkit.org/changeset/79425
3914         https://bugs.webkit.org/show_bug.cgi?id=55406
3915
3916         Incorrect canvas fallback implementation. (Requested by
3917         inferno-sec on #webkit).
3918
3919         * rendering/RenderHTMLCanvas.cpp:
3920         (WebCore::RenderHTMLCanvas::nodeAtPoint):
3921
3922 2011-02-28  Adam Klein  <adamk@chromium.org>
3923
3924         Reviewed by Adam Barth.
3925
3926         [fileapi] Implement LocalFileSystem.resolveLocalFileSystemURI
3927         https://bugs.webkit.org/show_bug.cgi?id=54774
3928
3929         See http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#methods
3930         for the spec implemented by this patch.
3931
3932         Test: fast/filesystem/resolve-uri.html
3933
3934         * fileapi/DOMFileSystemBase.cpp:
3935         (WebCore::DOMFileSystemBase::crackFileSystemURL):
3936         * fileapi/DOMFileSystemBase.h:
3937         Added constants for "temporary" and "persistent".
3938         * fileapi/EntryBase.cpp:
3939         Replace hardcoded strings with aforementioned constants.
3940         * fileapi/FileSystemCallbacks.cpp:
3941         (WebCore::ResolveURICallbacks::create):
3942         (WebCore::ResolveURICallbacks::ResolveURICallbacks):
3943         (WebCore::ResolveURICallbacks::didOpenFileSystem):
3944         Chains a call of openFileSystem to calls to getDirectory/getFile.
3945         * fileapi/FileSystemCallbacks.h:
3946         * fileapi/LocalFileSystem.cpp:
3947         (WebCore::LocalFileSystem::readFileSystem):
3948         * fileapi/LocalFileSystem.h:
3949         Remove size argument from readFileSystem()
3950         * page/DOMWindow.cpp:
3951         (WebCore::DOMWindow::resolveLocalFileSystemURI):
3952         * page/DOMWindow.h:
3953         * page/DOMWindow.idl:
3954
3955 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
3956
3957         Reviewed by Oliver Hunt.
3958
3959         Build fix for Qt port after API changes of http://trac.webkit.org/changeset/79904.
3960
3961         * bridge/qt/qt_runtime.cpp:
3962         (JSC::Bindings::QtConnectionObject::execute):
3963
3964 2011-02-25  David Levin  <levin@chromium.org>
3965
3966         Reviewed by Darin Adler.
3967
3968         Remove some duplicate code from KURLGoogle.cpp
3969         https://bugs.webkit.org/show_bug.cgi?id=55266
3970
3971         No change in functionality so no new tests.
3972
3973         * WebCore.gyp/WebCore.gyp: Make KURL.cpp get built by Chromium.
3974         * platform/KURL.cpp:
3975         Simply moved #include's and some code that was identical (i.e.
3976         had been copied) to KURLGoogle.cpp outside of ifdef !USE(GOOGLEURL)
3977         to reduce duplication.
3978         * platform/KURLGoogle.cpp:
3979         Removed the duplicate code.
3980
3981 2011-02-28  Oliver Hunt  <oliver@apple.com>
3982
3983         Reviewed by Gavin Barraclough.
3984
3985         Make ScopeChainNode GC allocated
3986         https://bugs.webkit.org/show_bug.cgi?id=55283
3987
3988         Update WebCore to deal with the absence of the ScopeChain
3989         class.
3990
3991         * ForwardingHeaders/runtime/ScopeChain.h: Added.
3992         * bindings/js/JSHTMLElementCustom.cpp:
3993         (WebCore::JSHTMLElement::pushEventHandlerScope):
3994         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
3995         (WebCore::JSJavaScriptCallFrame::scopeChain):
3996         (WebCore::JSJavaScriptCallFrame::scopeType):
3997         * bindings/js/JSLazyEventListener.cpp:
3998         (WebCore::JSLazyEventListener::initializeJSFunction):
3999         * bindings/js/JSMainThreadExecState.h:
4000         (WebCore::JSMainThreadExecState::evaluate):
4001         * bindings/js/JSNodeCustom.cpp:
4002         (WebCore::JSNode::pushEventHandlerScope):
4003         * bindings/js/JavaScriptCallFrame.cpp:
4004         (WebCore::JavaScriptCallFrame::scopeChain):
4005         * bindings/js/JavaScriptCallFrame.h:
4006         * bindings/scripts/CodeGeneratorJS.pm:
4007         * bridge/c/c_class.cpp:
4008         * bridge/c/c_runtime.cpp:
4009         * bridge/jni/JNIBridge.cpp:
4010         * bridge/qt/qt_runtime.cpp:
4011         (JSC::Bindings::QtConnectionObject::execute):
4012         * plugins/PluginViewNone.cpp:
4013
4014 2011-02-28  Chang Shu  <cshu@webkit.org>
4015
4016         Reviewed by Adele Peterson.
4017
4018         REGRESSION (r79762): Items in <select multiple> have focus rings, but shouldn't
4019         https://bugs.webkit.org/show_bug.cgi?id=55323
4020
4021         Draw focus ring on selected items only if spatial navigation is enabled.
4022
4023         Test: fast/forms/select-listbox-multiple-no-focusring.html
4024
4025         * rendering/RenderBlock.h:
4026         * rendering/RenderListBox.cpp:
4027         (WebCore::RenderListBox::addFocusRingRects):
4028
4029 2011-02-28  Abhishek Arya  <inferno@chromium.org>
4030
4031         Reviewed by Anders Carlsson.
4032
4033         We can cancel the plugin load and fail with error before m_manualStream
4034         got a chance to initialize in PluginView::didReceiveResponse. This can
4035         happen when we run pending document onload events during plugin load that
4036         remove the frame from underneath. So, change the assert into a null check. 
4037         https://bugs.webkit.org/show_bug.cgi?id=55307
4038
4039         * plugins/PluginView.cpp:
4040         (WebCore::PluginView::didFail):
4041
4042 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
4043
4044         Reviewed by Alexey Proskuryakov.
4045
4046         Build fix for Intel ICC Compiler.
4047         https://bugs.webkit.org/show_bug.cgi?id=55221
4048
4049         The virtual inheritance seems to confuse ICC.
4050         Anything that links with webkit has an undefined reference otherwise.
4051
4052         * svg/SVGTransformable.cpp:
4053         (WebCore::SVGTransformable::~SVGTransformable):
4054         * svg/SVGTransformable.h:
4055
4056 2011-02-28  Sergio Villar Senin  <svillar@igalia.com>
4057
4058         Reviewed by Martin Robinson.
4059
4060         [Gtk] Resource size is incorrectly reported to WebCore
4061         https://bugs.webkit.org/show_bug.cgi?id=53228
4062
4063         When calling didReceiveData we are sending an invalid value for
4064         lengthReceived. Sometimes we were even passing a boolean value instead of the
4065         expected integer. We should pass the size of the received data instead of the
4066         total amount of data received.
4067
4068         * platform/network/ResourceHandleInternal.h:
4069         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
4070         * platform/network/soup/ResourceHandleSoup.cpp:
4071         (WebCore::gotChunkCallback):
4072         (WebCore::sendRequestCallback):
4073         (WebCore::readCallback):
4074