2011-04-04 Martin Robinson <mrobinson@igalia.com>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-04-04  Martin Robinson  <mrobinson@igalia.com>
2
3         Reviewed by Gustavo Noronha Silva.
4
5         [GTK] WebGL support
6         https://bugs.webkit.org/show_bug.cgi?id=31517
7
8         Add WebGL support for the GTK+ bits of WebCore.
9
10         No new tests. This will be covered by the existing WebGL tests once
11         the bots are capable of running WebGL tests.
12
13         * GNUmakefile.am: Added new files required for WebGL support.
14         * html/HTMLCanvasElement.cpp:
15         (WebCore::HTMLCanvasElement::getContext): Extend #ifdef to cover GTK+ as well, which does not
16         yet support accelerated compositing.
17         * platform/graphics/ANGLEWebKitBridge.h: Update to reflect the fact that ANGLE isn't compiled as
18         a framework for GTK+.
19         * platform/graphics/GraphicsContext3D.h:
20         (WebCore::GraphicsContext3D::platformTexture): Added a declaration of this method for Cairo.
21         (WebCore::GraphicsContext3D::paintsIntoCanvasBuffer): Ditto.
22         * platform/graphics/cairo/GraphicsContext3DCairo.cpp: Added.
23         (WebCore::GraphicsContext3D::getImageData): Added.
24         (WebCore::GraphicsContext3D::paintToCanvas): Added.
25         * platform/graphics/cairo/OpenGLShims.cpp: Added. This file controls loading of GL extension
26         functions dynamically. They have different names across the different vendors' GL implementations.
27         (WebCore::lookupOpenGLFunctionAddress): Added
28         (WebCore::openGLFunctionTable): Added
29         (WebCore::initializeOpenGLShims): Added
30         * platform/graphics/cairo/OpenGLShims.h: Added.
31         * platform/graphics/gtk/DrawingBufferGtk.cpp: Added.
32         (WebCore::DrawingBuffer::DrawingBuffer): Very generic implementation for Cairo.
33         (WebCore::DrawingBuffer::~DrawingBuffer): Ditto.
34         (WebCore::DrawingBuffer::didReset): Ditto.
35         (WebCore::DrawingBuffer::platformColorBuffer): Ditto.
36         * platform/graphics/gtk/GraphicsContext3DGtk.cpp: Added.
37         (WebCore::GraphicsContext3D::create): Initial implementation.
38         (WebCore::GraphicsContext3D::GraphicsContext3D): Ditto.
39         (WebCore::GraphicsContext3D::~GraphicsContext3D): Ditto.
40         (WebCore::GraphicsContext3D::makeContextCurrent): Ditto.
41         (WebCore::GraphicsContext3D::platformGraphicsContext3D): Ditto.
42         (WebCore::GraphicsContext3D::isGLES2Compliant): Ditto.
43         * platform/graphics/gtk/GraphicsContext3DInternal.cpp: Added.
44         (sharedDisplay): Added this shared display which is required by some
45         display drivers.
46         (WebCore::activeGraphicsContexts): This method keeps track of all active GraphicsContext3D
47         contexts, in order to clean them up at exit. This prevents crashes on certain OpenGL drivers.
48         (WebCore::GraphicsContext3DInternal::addActiveGraphicsContext): Ditto.
49         (WebCore::GraphicsContext3DInternal::removeActiveGraphicsContext): Ditto.
50         (WebCore::GraphicsContext3DInternal::cleanupActiveContextsAtExit): Ditto.
51         (WebCore::GraphicsContext3DInternal::create): Figure out the best way to create an OpenGL
52         context given the current environment.
53         (WebCore::GraphicsContext3DInternal::createPbufferContext): Pbuffer context initializer.
54         (WebCore::GraphicsContext3DInternal::createPixmapContext): Pixmap context initializer.
55         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal): Initial implementation.
56         (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal): Ditto.
57         (WebCore::GraphicsContext3DInternal::makeContextCurrent): Ditto.
58         * platform/graphics/gtk/GraphicsContext3DInternal.h: Added.
59         * platform/graphics/opengl/Extensions3DOpenGL.cpp: Added generic implementation.
60         (WebCore::Extensions3DOpenGL::ensureEnabled): Ditto.
61         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
62         (WebCore::GraphicsContext3D::reshape): Test for the context using the public API rather than
63         the private bits that are specific to the Apple port.
64
65 2011-04-04  Alexey Proskuryakov  <ap@apple.com>
66
67         Reviewed by Dan Bernstein.
68
69         REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
70         https://bugs.webkit.org/show_bug.cgi?id=51230
71         <rdar://problem/8780989>
72
73         <rdar://problem/9015250> REGRESSION (WebKit2): Key events not fired for modifier keys
74
75         * page/EventHandler.cpp: (WebCore::EventHandler::keyEvent): Moved Caps Lock handling from
76         WebKits to WebCore, because WebKit shouldn't be smart.
77
78 2011-04-04  Steve Falkenburg  <sfalken@apple.com>
79
80         Fix Windows build warning.
81
82         * WebCore.vcproj/WebCore.vcproj: Exclude EventQueue.cpp in Debug_All build.
83
84 2011-04-04  Adam Roben  <aroben@apple.com>
85
86         Attempted Mac build fix, part III
87
88         * WebCore.exp.in: Export PlatformCALayer::setGeometryFlipped. Also resorted some symbols.
89
90 2011-04-04  Andy Estes  <aestes@apple.com>
91
92         Fix the Mac build.
93
94         * WebCore.exp.in:
95
96 2011-04-04  David Dorwin  <ddorwin@chromium.org>
97
98         Reviewed by David Levin.
99
100         Chromium Mac crashes when entering fullscreen
101         https://bugs.webkit.org/show_bug.cgi?id=57483
102
103         Override extraFullScreenStyleSheet in RenderThemeChromiumMac to avoid hitting the ASSERT_NOT_REACHED in RenderThemeMac.
104
105         * WebCore.gyp/WebCore.gyp:
106         * rendering/RenderThemeChromiumMac.h:
107         * rendering/RenderThemeChromiumMac.mm:
108         (WebCore::RenderThemeChromiumMac::extraFullScreenStyleSheet):
109
110 2011-04-04  Adam Roben  <aroben@apple.com>
111
112         Attempted Mac build fix, part II
113
114         * WebCore.xcodeproj/project.pbxproj: Marked PlatformCALayerClient.h and
115         PlatformCAAnimation.h as private so that WebKit2 can #include them (transitively).
116
117 2011-04-04  Steve Falkenburg  <sfalken@apple.com>
118
119         Reviewed by Adam Roben.
120
121         Remove unused AnalyzeWithLargeStack code from Windows build files
122         https://bugs.webkit.org/show_bug.cgi?id=57771
123         
124         This was used for us to build with prefast automatically,
125         but it is out-of-date and hasn't been used for some time.
126         Removing completely for now.
127
128         * WebCore.vcproj/WebCore.vcproj:
129         * WebCore.vcproj/WebCorePreBuild.cmd:
130
131 2011-04-01  Matthew Delaney  <mdelaney@apple.com>
132
133         Reviewed by Simon Fraser.
134
135         [CG] Do not accelerate small canvases
136         https://bugs.webkit.org/show_bug.cgi?id=57596
137
138         No new tests. No outward behavior changes.
139
140         * platform/graphics/cg/ImageBufferCG.cpp:
141
142 2011-04-04  Adam Roben  <aroben@apple.com>
143
144         Attempted Mac build fix
145
146         * WebCore.xcodeproj/project.pbxproj: Marked PlatformCALayer.h and GraphicsLayerCA.h private
147         so that WebKit can #include them.
148
149 2011-04-04  Malcolm MacLeod  <mmacleod@webmail.co.za>
150
151         Reviewed by Kevin Ollivier.
152
153         [wx] Implement support for temporary files.
154         
155         https://bugs.webkit.org/show_bug.cgi?id=57772
156
157         * platform/FileSystem.h:
158         * platform/wx/FileSystemWx.cpp:
159         (WebCore::getFileModificationTime):
160         (WebCore::openTemporaryFile):
161         (WebCore::closeFile):
162         (WebCore::writeToFile):
163
164 2011-04-01  Oliver Hunt  <oliver@apple.com>
165
166         Reviewed by Geoffrey Garen.
167
168         Make StructureChain GC allocated
169         https://bugs.webkit.org/show_bug.cgi?id=56695
170
171         Update for new Structure marking function
172
173         * bindings/js/JSDOMGlobalObject.cpp:
174         (WebCore::JSDOMGlobalObject::markChildren):
175
176 2011-04-04  Pavel Feldman  <pfeldman@google.com>
177
178         Reviewed by Yury Semikhatsky.
179
180         Web Inspector: add support for the enumerated types in the protocol.
181         https://bugs.webkit.org/show_bug.cgi?id=57761
182
183         * inspector/Inspector.json:
184         * inspector/InspectorDebuggerAgent.cpp:
185         (WebCore::InspectorDebuggerAgent::setPauseOnExceptions):
186         * inspector/InspectorDebuggerAgent.h:
187         * inspector/InspectorInstrumentation.cpp:
188         (WebCore::InspectorInstrumentation::resourceRetrievedByXMLHttpRequestImpl):
189         (WebCore::InspectorInstrumentation::scriptImportedImpl):
190         * inspector/InspectorResourceAgent.cpp:
191         (WebCore::cachedResourceTypeString):
192         (WebCore::InspectorResourceAgent::didReceiveResponse):
193         (WebCore::InspectorResourceAgent::setInitialScriptContent):
194         (WebCore::InspectorResourceAgent::setInitialXHRContent):
195         * inspector/InspectorResourceAgent.h:
196         * inspector/front-end/ScriptsPanel.js:
197         * inspector/generate-inspector-idl:
198
199 2011-04-04  Yury Semikhatsky  <yurys@chromium.org>
200
201         Reviewed by Pavel Feldman.
202
203         Web Inspector: InspectorRuntimeAgent should not depend on Page
204         https://bugs.webkit.org/show_bug.cgi?id=57759
205
206         Descendants of InspectorRuntimeAgent should implement a method providing access to the default
207         inspected state used for console evaluations.
208
209         * inspector/InspectorAgent.cpp:
210         (WebCore::InspectorAgent::InspectorAgent): runtime agent is created and deleted along with other agents.
211         (WebCore::InspectorAgent::setFrontend):
212         * inspector/InspectorAgent.h:
213         * inspector/InspectorRuntimeAgent.cpp:
214         (WebCore::InspectorRuntimeAgent::create):
215         (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
216         (WebCore::InspectorRuntimeAgent::evaluate):
217         * inspector/InspectorRuntimeAgent.h:
218         (WebCore::InspectorRuntimeAgent::InspectedStateProvider::~InspectedStateProvider):
219
220 2011-04-04  Yong Li  <yoli@rim.com>
221
222         Reviewed by Antonio Gomes.
223
224         https://bugs.webkit.org/show_bug.cgi?id=55969
225         Fix the issue that document state is not saved when
226         going backward and ending up with error page.
227
228         Test: platform/qt/fast/history/back-to-unreachable-url-then-forward.html
229
230         (For manual test, load a non-existent html first, then load
231         fast/history/resources/check-scroll-position.html, then go
232         back and go forward. If it doesn't show "SUCCESS" at the bottom
233         of the page, your browser has failed the test)
234
235         * loader/FrameLoader.cpp:
236         (WebCore::FrameLoader::load):
237
238 2011-04-04  Sergio Villar Senin  <svillar@igalia.com>
239
240         Reviewed by Martin Robinson.
241
242         [GTK] Fix make distcheck for 1.4.0
243         https://bugs.webkit.org/show_bug.cgi?id=57750
244
245         Added a missing header file to the Makefile
246
247         * GNUmakefile.am:
248
249 2011-04-04  Martin Robinson  <mrobinson@igalia.com>
250
251         Reviewed by Xan Lopez.
252
253         [GTK] http/tests/plugins/post-url-file.html fails on GTK+
254         https://bugs.webkit.org/show_bug.cgi?id=55826
255
256         Correct the implementation of handlePostReadFile which uses GIO APIs and
257         actually resizes the buffer to fit the entire size of the file data. This
258         was likely leading to memory corruption until now.
259
260         * plugins/gtk/PluginViewGtk.cpp:
261         (WebCore::PluginView::handlePostReadFile): Fix this method.
262
263 2011-04-04  Andrey Kosyakov  <caseq@chromium.org>
264
265         Reviewed by Yury Semikhatsky.
266
267         Web Inspector: [Extensions API] add notifications on panels shown/hidden
268         https://bugs.webkit.org/show_bug.cgi?id=57752
269
270         * inspector/front-end/ExtensionAPI.js:
271         (WebInspector.injectedExtensionAPI.PanelImpl):
272         * inspector/front-end/ExtensionServer.js:
273         (WebInspector.ExtensionServer.prototype.notifyPanelShown):
274         (WebInspector.ExtensionServer.prototype.notifyPanelHidden):
275         * inspector/front-end/Panel.js:
276         (WebInspector.Panel.prototype.show):
277         (WebInspector.Panel.prototype.hide):
278
279 2011-04-04  Pavel Podivilov  <podivilov@chromium.org>
280
281         Reviewed by Yury Semikhatsky.
282
283         Web Inspector: search in resources panel is broken.
284         https://bugs.webkit.org/show_bug.cgi?id=57631
285
286         Search in resources panel should trigger source frame content load.
287
288         * inspector/front-end/Panel.js:
289         (WebInspector.Panel.prototype.jumpToNextSearchResult):
290         (WebInspector.Panel.prototype.jumpToPreviousSearchResult):
291         * inspector/front-end/ResourcesPanel.js:
292         * inspector/front-end/SearchController.js:
293         (WebInspector.SearchController.prototype.handleShortcut):
294         (WebInspector.SearchController.prototype.focusSearchField):
295         * inspector/front-end/SourceFrame.js:
296         (WebInspector.SourceFrame.prototype.show):
297         (WebInspector.SourceFrame.prototype._ensureContentLoaded):
298         (WebInspector.SourceFrame.prototype.performSearch):
299
300 2011-04-03  Eric Seidel  <eric@webkit.org>
301
302         Reviewed by Ryosuke Niwa.
303
304         Split out UnicodeBidi enum into its own header (to allow use in platform)
305         https://bugs.webkit.org/show_bug.cgi?id=57722
306
307         unicode-bidi is a CSS concept.  However the same concept is really needed throughout
308         the bidi code in platform as well.  So I'm moving the enum to platform.
309         The only part of the enum which doesn't make much sense to platform/ is "normal".
310
311         * WebCore.xcodeproj/project.pbxproj:
312         * css/CSSPrimitiveValueMappings.h:
313         * platform/text/UnicodeBidi.h: Added.
314         * rendering/style/RenderStyle.h:
315         * rendering/style/RenderStyleConstants.h:
316
317 2011-04-04  Andrey Adaikin  <aandrey@google.com>
318
319         Reviewed by Yury Semikhatsky.
320
321         Web Inspector: Highlighted search tokens would not be shown on long lines in the text viewer
322         https://bugs.webkit.org/show_bug.cgi?id=57749
323
324         * inspector/front-end/TextViewer.js:
325         (WebInspector.TextEditorMainPanel.prototype.markAndRevealRange):
326         (WebInspector.TextEditorMainPanel.prototype._paintLine):
327
328 2011-04-04  Alexander Pavlov  <apavlov@chromium.org>
329
330         Reviewed by Yury Semikhatsky.
331
332         Web Inspector: Incorrectly reports warning on missing/incorrect content-type for 304s
333         https://bugs.webkit.org/show_bug.cgi?id=48525
334
335         * inspector/front-end/Resource.js:
336         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
337
338 2011-04-01  Alexander Pavlov  <apavlov@chromium.org>
339
340         Reviewed by Yury Semikhatsky.
341
342         Web Inspector: appropriateSelectorForNode() invokes the "localName" getter on DOMNode rather than function
343         https://bugs.webkit.org/show_bug.cgi?id=57632
344
345         Moved the affected method onto the DOMNode.prototype as "appropriateSelectorFor".
346
347         * inspector/front-end/DOMAgent.js:
348         (WebInspector.DOMNode.prototype.appropriateSelectorFor):
349         * inspector/front-end/EventListenersSidebarPane.js:
350         ():
351         * inspector/front-end/StylesSidebarPane.js:
352         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
353         * inspector/front-end/utilities.js:
354
355 2011-04-04  Andrey Kosyakov  <caseq@chromium.org>
356
357         Unreviewed. Followup to an incomplete commit in r82806.
358
359         * inspector/front-end/ExtensionAPI.js:
360         (WebInspector.injectedExtensionAPI.PanelWithSidebarImpl.prototype.createSidebarPane):
361         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl):
362         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setHeight):
363         (WebInspector.injectedExtensionAPI.ExtensionSidebarPaneImpl.prototype.setExpression):
364         (WebInspector.injectedExtensionAPI):
365         * inspector/front-end/ExtensionPanel.js:
366         (WebInspector.ExtensionSidebarPane):
367         (WebInspector.ExtensionSidebarPane.prototype.setPage):
368         (WebInspector.ExtensionSidebarPane.prototype._setObject):
369         * inspector/front-end/ExtensionServer.js:
370         (WebInspector.ExtensionServer):
371         (WebInspector.ExtensionServer.prototype.notifyExtensionSidebarUpdated):
372         (WebInspector.ExtensionServer.prototype._onCreatePanel):
373         (WebInspector.ExtensionServer.prototype._onCreateSidebarPane):
374         (WebInspector.ExtensionServer.prototype.createClientIframe):
375         (WebInspector.ExtensionServer.prototype._onSetSidebarContent):
376
377 2011-04-04  Yury Semikhatsky  <yurys@chromium.org>
378
379         Unreviewed. Fix Qt minimal build.
380
381         * inspector/InspectorFrontendChannel.h:
382
383 2011-04-01  Sergey Vorobyev  <sergeyvorobyev@google.com>
384
385         Reviewed by Yury Semikhatsky.
386
387         Web Inspector: Separate sendMessageToFrontend function
388         from InspectorClient to individual interface.
389         https://bugs.webkit.org/show_bug.cgi?id=57548
390
391         Refactoring - covered with existing inspector tests.
392
393         * GNUmakefile.am:
394         * WebCore.gypi:
395         * WebCore.vcproj/WebCore.vcproj:
396         * WebCore.xcodeproj/project.pbxproj:
397         * inspector/CodeGeneratorInspector.pm:
398         * inspector/InspectorClient.h:
399         * inspector/InspectorFrontendChannel.h: Added.
400         (WebCore::InspectorFrontendChannel::~InspectorFrontendChannel):
401
402 2011-04-04  Nico Weber  <thakis@chromium.org>
403
404         Reviewed by Eric Seidel.
405
406         Prefer a using directive over qualified names in LocalizedNumberICU.cpp
407         https://bugs.webkit.org/show_bug.cgi?id=57742
408
409         Requested by ap in https://bugs.webkit.org/show_bug.cgi?id=57715
410
411         * platform/text/LocalizedNumberICU.cpp:
412         (WebCore::createFormatterForCurrentLocale):
413         (WebCore::numberFormatter):
414         (WebCore::parseLocalizedNumber):
415         (WebCore::formatLocalizedNumber):
416
417 2011-04-04  Andrey Adaikin  <aandrey@google.com>
418
419         Reviewed by Yury Semikhatsky.
420
421         Web Inspector: Breakpoints in the gutter stay static while editing the text
422         https://bugs.webkit.org/show_bug.cgi?id=57616
423
424         * inspector/front-end/SourceFrame.js:
425         (WebInspector.SourceFrame):
426         (WebInspector.SourceFrame.prototype._saveViewerState):
427         (WebInspector.SourceFrame.prototype._restoreViewerState):
428         (WebInspector.SourceFrame.prototype._endEditing):
429         (WebInspector.SourceFrame.prototype._lineNumberAfterEditing):
430         (WebInspector.SourceFrame.prototype.addBreakpoint):
431         (WebInspector.SourceFrame.prototype.removeBreakpoint):
432         * inspector/front-end/TextViewer.js:
433         (WebInspector.TextViewer.prototype._syncDecorationsForLine):
434         (WebInspector):
435         (WebInspector.TextEditorChunkedPanel.prototype.removeDecoration):
436         (WebInspector.TextEditorChunkedPanel.prototype.makeLineAChunk):
437         (WebInspector.TextEditorChunkedPanel.prototype._splitChunkOnALine):
438         (WebInspector.TextEditorMainPanel.prototype._splitChunkOnALine):
439
440 2011-04-04  Ilya Tikhonovsky  <loislo@chromium.org>
441
442         Reviewed by Yury Semikhatsky.
443
444         Web Inspector: remove obsolete doc generating code from CodeGenerator.
445         https://bugs.webkit.org/show_bug.cgi?id=57748
446
447         * inspector/CodeGeneratorInspector.pm:
448
449 2011-04-04  Andrey Kosyakov  <caseq@chromium.org>
450
451         Reviewed by Yury Semikhatsky.
452
453         Web Inspector: [Extensions API] Merge WatchExpressionSidebarPane into ExtensionSidebarPane
454         https://bugs.webkit.org/show_bug.cgi?id=57622
455
456         Merged WatchExpressionSidebarPane into ExtensionSidebarPane, added setPage(url).
457         Fixed wrong getter in schema (scripts -> elements)
458
459         * inspector/front-end/ExtensionAPI.js:
460         (WebInspector.injectedExtensionAPI.WatchExpressionSidebarPaneImpl.prototype.setObject):
461         (WebInspector.injectedExtensionAPI.WatchExpressionSidebarPaneImpl.prototype.setPage):
462         * inspector/front-end/ExtensionAPISchema.json:
463         * inspector/front-end/ExtensionServer.js:
464         (WebInspector.ExtensionServer.prototype._onSetSidebarPage):
465
466 2011-04-04  Ilya Tikhonovsky  <loislo@chromium.org>
467
468         Reviewed by Pavel Feldman.
469
470         Web Inspector: introduce support of 'optional' flag for command arguments.
471         https://bugs.webkit.org/show_bug.cgi?id=57698
472
473         * inspector/CodeGeneratorInspector.pm:
474         * inspector/Inspector.json:
475         * inspector/InspectorDebuggerAgent.cpp:
476         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
477         (WebCore::InspectorDebuggerAgent::setBreakpoint):
478         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
479         * inspector/InspectorDebuggerAgent.h:
480         * inspector/InspectorPageAgent.cpp:
481         (WebCore::InspectorPageAgent::reloadPage):
482         * inspector/InspectorPageAgent.h:
483         * inspector/InspectorResourceAgent.cpp:
484         (WebCore::InspectorResourceAgent::getResourceContent):
485         * inspector/InspectorResourceAgent.h:
486         * inspector/InspectorRuntimeAgent.cpp:
487         (WebCore::InspectorRuntimeAgent::evaluate):
488         * inspector/InspectorRuntimeAgent.h:
489         * inspector/generate-inspector-idl:
490
491 2011-04-04  Yury Semikhatsky  <yurys@chromium.org>
492
493         Reviewed by Pavel Feldman.
494
495         Web Inspector: InjectedScriptManager should not try to access inspected window in case of workers
496         https://bugs.webkit.org/show_bug.cgi?id=57637
497
498         * bindings/js/JSInjectedScriptManager.cpp:
499         (WebCore::InjectedScriptManager::injectedScriptFor):
500         * bindings/v8/custom/V8InjectedScriptManager.cpp:
501         (WebCore::InjectedScriptManager::injectedScriptFor):
502         * inspector/InjectedScript.cpp:
503         (WebCore::InjectedScript::InjectedScript):
504         (WebCore::InjectedScript::canAccessInspectedWindow):
505         * inspector/InjectedScript.h:
506         * inspector/InjectedScriptManager.cpp:
507         (WebCore::InjectedScriptManager::createForPage):
508         (WebCore::InjectedScriptManager::createForWorker):
509         (WebCore::InjectedScriptManager::InjectedScriptManager): access check function is passed as a parameter to the constructor
510         and it depends on which type of context we're inspecting(worker or page).
511         (WebCore::InjectedScriptManager::canAccessInspectedWorkerContext):
512         * inspector/InjectedScriptManager.h:
513         * inspector/InspectorController.cpp:
514         (WebCore::InspectorController::InspectorController):
515
516 2011-04-04  Ryuan Choi  <ryuan.choi@samsung.com>
517
518         Reviewed by Eric Seidel.
519
520         V8StringCallback.cpp requires V8Binding.h
521         https://bugs.webkit.org/show_bug.cgi?id=57699
522
523         No new tests required because of just adding header file.
524
525         * bindings/scripts/CodeGeneratorV8.pm:
526
527 2011-04-03  Ryuan Choi  <ryuan.choi@samsung.com>
528
529         Reviewed by Eric Seidel.
530
531         [CMAKE] Clean duplicated files in WebCore_Sources
532         https://bugs.webkit.org/show_bug.cgi?id=57741
533
534         No new tests, Only duplicated files were removed.
535
536         * CMakeLists.txt:
537
538 2011-04-03  Luke Macpherson   <macpherson@chromium.org>
539
540         Reviewed by Darin Adler.
541
542         Fix 2-space indentation introduced in bug 54706.
543         https://bugs.webkit.org/show_bug.cgi?id=57740
544
545         No new tests - whitespace changes only.
546
547         * css/CSSStyleSelector.cpp:
548         (WebCore::CSSStyleSelector::applyProperty):
549         Convert 2-space indentation to 4-space indentation.
550
551 2011-04-03  Luke Macpherson   <macpherson@chromium.org>
552
553         Reviewed by Dimitri Glazkov.
554
555         Make CSSStyleApplyProperty non-copyable
556         https://bugs.webkit.org/show_bug.cgi?id=57738
557
558         No new functionality added so no new tests required.
559
560         * css/CSSStyleApplyProperty.h:
561         Added WTF_MAKE_NONCOPYABLE(CSSStyleApplyProperty) to ensure singleton stays single.
562
563 2011-04-03  Dan Bernstein  <mitz@apple.com>
564
565         Reviewed by Maciej Stachowiak.
566
567         fast/images/extra-image-in-image-document.html crashes when run after embed-image.html
568         https://bugs.webkit.org/show_bug.cgi?id=57733
569
570         The crash happens because resetting the page scale as part of preparing the WebView for the
571         next test triggered layout, which in turn caused a plug-in to make a resource request, and
572         DumpRenderTree's delegate to be dispatched. The delegate doesn’t expect to be called between
573         tests, and it references the layout test controller, which is null.
574
575         * page/Frame.cpp:
576         (WebCore::Frame::scalePage): Avoid an unnecessary layout if the page scale isn’t changing. This
577         is more efficient, and has the side effect of avoiding the crash in DumpRenderTree, although
578         DumpRenderTree could still crash when after a test with disabled plug-ins and a non-1 page scale.
579         I think there are currently no such tests, so I am not fixing DumpRenderTree.
580
581 2011-04-03  Eric Seidel  <eric@webkit.org>
582
583         Reviewed by Ryosuke Niwa.
584
585         Teach InlineIterator how to work from any root, not just a RenderBlock
586         https://bugs.webkit.org/show_bug.cgi?id=57726
587
588         For implementing bidi-unicode: isolate, we need to be able to run the
589         bidi algorithm over a subtree of inlines, not just from a block root.
590         This is the first step in making this possible.
591
592         * rendering/InlineIterator.h:
593         (WebCore::InlineIterator::InlineIterator):
594         (WebCore::InlineIterator::root):
595         (WebCore::bidiNext):
596         (WebCore::bidiFirst):
597         (WebCore::InlineIterator::increment):
598         (WebCore::InlineBidiResolver::appendRun):
599         * rendering/RenderBlockLineLayout.cpp:
600         (WebCore::RenderBlock::findNextLineBreak):
601
602 2011-04-03  Eric Seidel  <eric@webkit.org>
603
604         Reviewed by Dan Bernstein.
605
606         Split out handling of trailing spaces from layoutInlineChildren
607         https://bugs.webkit.org/show_bug.cgi?id=57432
608
609         There is much more we could split out from this function, but this is a start.
610
611         I suspect this is very hot code.  Hopefully the compiler will do the right thing.
612         If it doesn't the Chromium PLT bots will tell us.
613
614         * rendering/RenderBlock.h:
615         * rendering/RenderBlockLineLayout.cpp:
616         (WebCore::RenderBlock::handleTrailingSpaces):
617         (WebCore::RenderBlock::layoutInlineChildren):
618
619 2011-03-21  Ryosuke Niwa  <rniwa@webkit.org>
620
621         Reviewed by Eric Seidel.
622
623         editing commands shouldn't run when there's no body
624         https://bugs.webkit.org/show_bug.cgi?id=56771
625
626         The bug was caused by WebKit's not checking the existence of root editable element
627         in enabled* functions. Although isContentEditable returns true whenever we're in design mode,
628         we should not run editing commands in a document without a body element editable because
629         doing so results in appending a non-body element to the document node.
630
631         Fixed the bug by modifying various enabled* functions to ensure we have a root editable element.
632         New behavior tries to match that of Firefox except StyleWithCSS, which Firefox seems to ignore
633         when there are no body element. Since StyleWithCSS is a document's state or property, we allow
634         execCommand('StyleWithCSS') even in a document without a body element.
635
636         WebKit's and Firefox's behaviors also deviate in insert-image-with-selecting-document.html.
637         Whereas WebKit respects selection set by script and ignores execCommand, Firefox modifies
638         the selection when document.write("x") is ran and successfully inserts image.
639
640         Thus, empty-document-delete.html and empty-document-justify-right.html both pass on Firefox
641         while empty-document-stylewithcss.html and insert-image-with-selecting-document.html both fail.
642
643         Since Internet Explorer does not allow execCommand to run under design mode properly, we could
644         not test its behavior.
645
646         Tests: editing/editability/empty-document-delete.html
647                editing/editability/empty-document-justify-right.html
648                editing/editability/empty-document-stylewithcss.html
649                editing/execCommand/insert-image-with-selecting-document.html
650
651         * editing/Editor.cpp:
652         (WebCore::Editor::canEdit): Verify that the root editable element exists
653         instead of just checking that selection endpoints are editable because
654         selection endpoints could be document node without a body element in design mode
655         and we don't want to consider such a document editable.
656         (WebCore::Editor::canDelete): Ditto.
657         * editing/EditorCommand.cpp:
658         (WebCore::enabledInEditableText): Ditto.
659         (WebCore::enabledInRichlyEditableText): Ditto.
660         (WebCore::enabledDelete): Call enabledCut and enabledInEditableText instead
661         of duplicating the code in order to fix the same bug.
662
663 2011-04-02  Dan Bernstein  <mitz@apple.com>
664
665         Reviewed by Maciej Stachowiak.
666
667         REGRESSION (r82786): Media controls render incorrectly on GTK and Qt
668         https://bugs.webkit.org/show_bug.cgi?id=57719
669
670         r82786 exposed an incorrect assumption inRenderMediaControlTimeDisplay::layout()
671         that the timeline container is the parent of the time display. This is not true
672         with the GTK media style, where the current time display is an inline box, and
673         thus wrapped in an anonymous flexible box. The code was incorrectly considering
674         the width of the anonymous box and deciding to hide the time display. Prior to
675         r82786, this mistake was corrected by the call to computeLogicalWidth() in line layout.
676
677         * rendering/MediaControlElements.cpp:
678         (WebCore::RenderMediaControlTimeDisplay::layout): Changed to skip past anonymous ancestors.
679
680 2011-04-02  Nico Weber  <thakis@chromium.org>
681
682         Reviewed by Adam Barth.
683
684         Explicitly use icu namespace for ports building with U_USING_ICU_NAMESPACE=0
685
686         By default, ICU includes |using namespace icu;| in its header files
687         for backwards compatibility. Clients can define
688         U_USING_ICU_NAMESPACE=0 to tell ICU to not do this. Prefixing all ICU
689         classes with |icu::| makes this file compile no matter what
690         U_USING_ICU_NAMESPACE is set to.
691
692         https://bugs.webkit.org/show_bug.cgi?id=57715
693
694         * platform/text/LocalizedNumberICU.cpp:
695         (WebCore::createFormatterForCurrentLocale):
696         (WebCore::numberFormatter):
697         (WebCore::parseLocalizedNumber):
698         (WebCore::formatLocalizedNumber):
699
700 2011-04-02  Dan Bernstein  <mitz@apple.com>
701
702         Reviewed by Dave Hyatt.
703
704         Remove an unnecessary extra computeLogicalWidth() from line layout
705         https://bugs.webkit.org/show_bug.cgi?id=57711
706
707         Changes in behavior (MathML progression) covered by existing layout tests.
708
709         * rendering/RenderBlockLineLayout.cpp:
710         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Removed a
711         call to computeLogicalWidth(). Because of <http://webkit.org/b/57700>, this
712         actually prevents MathML rows from reverting to an incorrect width.
713
714 2011-04-02  Dan Bernstein  <mitz@apple.com>
715
716         Reviewed by Beth Dakin.
717
718         <details> marker loses its margin
719         https://bugs.webkit.org/show_bug.cgi?id=57713
720
721         * rendering/RenderDetails.cpp:
722         (WebCore::RenderDetails::computePreferredLogicalWidths): Override to update
723         the marker location.
724         * rendering/RenderDetails.h:
725         (WebCore::RenderDetails::renderName): Made private.
726         (WebCore::RenderDetails::isDetails): Ditto.
727         * rendering/RenderDetailsMarker.cpp:
728         (WebCore::RenderDetailsMarker::computePreferredLogicalWidths): Set the margins
729         in the style, like RenderListMarker does.
730         (WebCore::RenderDetailsMarker::layout): Set the margins from the style.
731
732 2011-04-02  Andy Estes  <aestes@apple.com>
733
734         Reviewed by Oliver Hunt.
735
736         REGRESSION (r69237): Black border around map elements while using an image map on Mac platform
737         https://bugs.webkit.org/show_bug.cgi?id=52518
738
739         Test: fast/images/imagemap-focus-ring-zero-outline-width.html
740
741         * rendering/RenderImage.cpp:
742         (WebCore::RenderImage::paintAreaElementFocusRing): Return early if outlineWidth is 0.
743
744 2011-04-02  Beth Dakin  <bdakin@apple.com>
745
746         Reviewed by Sam Weinig.
747
748         https://bugs.webkit.org/show_bug.cgi?id=57605
749         Frame::pageScaleFactor() should not affect getBoundingClientRect() or 
750         getClientRects()
751         -and corresponding-
752         <rdar://problem/9194541>
753
754         New functions adjust*ForPageScale() are analogous to adjust*ForAbsoluteZoom().
755         * dom/Element.cpp:
756         (WebCore::Element::getClientRects):
757         (WebCore::Element::getBoundingClientRect):
758         * dom/Range.cpp:
759         (WebCore::adjustFloatQuadsForScrollAndAbsoluteZoomAndPageScale):
760         (WebCore::Range::getBorderAndTextQuads):
761         * rendering/RenderObject.h:
762         (WebCore::adjustFloatPointForPageScale):
763         (WebCore::adjustFloatQuadForPageScale):
764         (WebCore::adjustFloatRectForPageScale):
765
766 2011-04-02  Dan Bernstein  <mitz@apple.com>
767
768         Reverted r82775 due to changes in <details> test results, which are
769         likely progressions.
770
771         * rendering/RenderBlockLineLayout.cpp:
772         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Removed a
773
774 2011-04-02  Dan Bernstein  <mitz@apple.com>
775
776         Reviewed by Dave Hyatt.
777
778         Remove an unnecessary extra computeLogicalWidth() from line layout
779         https://bugs.webkit.org/show_bug.cgi?id=57711
780
781         Changes in behavior (MathML progression) covered by existing layout tests.
782
783         * rendering/RenderBlockLineLayout.cpp:
784         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Removed a
785         call to computeLogicalWidth(). Because of <http://webkit.org/b/57700>, this
786         actually prevents MathML rows from reverting to an incorrect width.
787
788 2011-04-02  Ryuan Choi  <ryuan.choi@samsung.com>
789
790         Reviewed by Martin Robinson.
791
792         [GTK] Fix leaked pointer in FontGtk.cpp
793         https://bugs.webkit.org/show_bug.cgi?id=57307
794
795         Fix a memory leak.
796
797         No new functionality, so no new tests.
798
799         * platform/graphics/gtk/FontGtk.cpp:
800         (WebCore::utf16ToUtf8): Rename utf16_to_utf8 and fix indentation.
801         (WebCore::convertUniCharToUTF8):
802
803 2011-04-02  Ilya Tikhonovsky  <loislo@chromium.org>
804
805         Reviewed by Pavel Feldman.
806
807         Web Inspector: we should be able to have in and out arguments of a command with same name.
808         https://bugs.webkit.org/show_bug.cgi?id=57701
809
810         * inspector/CodeGeneratorInspector.pm:
811         * inspector/Inspector.json:
812
813 2011-04-01  Ilya Tikhonovsky  <loislo@chromium.org>
814
815         Not reviewed trivial change.
816
817         Web Inspector: The page agent should be enabled even if JAVASCRIPT_DEBUGGER is off.
818         Followup change for r82281.
819         https://bugs.webkit.org/show_bug.cgi?id=57327
820
821         * inspector/InspectorPageAgent.cpp:
822         * inspector/InspectorPageAgent.h:
823
824 2011-04-01  Michael Saboff  <msaboff@apple.com>
825
826         Reviewed by Darin Adler.
827
828         Cached Resource Overhead Space Usage and Accounting Inaccurate
829         https://bugs.webkit.org/show_bug.cgi?id=57488
830
831         Fixed windows test failures.
832         Changed the fixed overhead value for ResourceResponse to 3800 bytes.
833         Modified ResourceResponse::platformLazyInit() to handle "base" level
834         attributes or all attributes.  The base attributes, like URL, status
835         code, mime type and a few header fields (mostly cache related) are
836         suitable for most resources.  This reduces the per resource memory
837         needs by over 1K bytes per resource thus saving memory in the cache.
838         Collectively, these two changes bring the overhead memory calculation
839         in line with reality.
840
841         No new tests added due to existing tests cover areas of change and
842         there is no functional change.  The change is limited to reducing 
843         memory usage along existing paths.
844
845         * loader/cache/CachedResource.cpp:
846         (WebCore::CachedResource::canUseCacheValidator):
847         * platform/network/ResourceResponseBase.cpp:
848         (WebCore::ResourceResponseBase::adopt):
849         (WebCore::ResourceResponseBase::isHTTP):
850         (WebCore::ResourceResponseBase::url):
851         (WebCore::ResourceResponseBase::setURL):
852         (WebCore::ResourceResponseBase::mimeType):
853         (WebCore::ResourceResponseBase::setMimeType):
854         (WebCore::ResourceResponseBase::expectedContentLength):
855         (WebCore::ResourceResponseBase::setExpectedContentLength):
856         (WebCore::ResourceResponseBase::textEncodingName):
857         (WebCore::ResourceResponseBase::setTextEncodingName):
858         (WebCore::ResourceResponseBase::suggestedFilename):
859         (WebCore::ResourceResponseBase::setSuggestedFilename):
860         (WebCore::ResourceResponseBase::httpStatusCode):
861         (WebCore::ResourceResponseBase::setHTTPStatusCode):
862         (WebCore::ResourceResponseBase::httpStatusText):
863         (WebCore::ResourceResponseBase::setHTTPStatusText):
864         (WebCore::ResourceResponseBase::httpHeaderField):
865         (WebCore::ResourceResponseBase::setHTTPHeaderField):
866         (WebCore::ResourceResponseBase::httpHeaderFields):
867         (WebCore::ResourceResponseBase::parseCacheControlDirectives):
868         (WebCore::ResourceResponseBase::hasCacheValidatorFields):
869         (WebCore::ResourceResponseBase::date):
870         (WebCore::ResourceResponseBase::age):
871         (WebCore::ResourceResponseBase::expires):
872         (WebCore::ResourceResponseBase::lastModified):
873         (WebCore::ResourceResponseBase::isAttachment):
874         (WebCore::ResourceResponseBase::setLastModifiedDate):
875         (WebCore::ResourceResponseBase::lastModifiedDate):
876         (WebCore::ResourceResponseBase::wasCached):
877         (WebCore::ResourceResponseBase::connectionReused):
878         (WebCore::ResourceResponseBase::setConnectionReused):
879         (WebCore::ResourceResponseBase::connectionID):
880         (WebCore::ResourceResponseBase::setConnectionID):
881         (WebCore::ResourceResponseBase::resourceLoadTiming):
882         (WebCore::ResourceResponseBase::setResourceLoadTiming):
883         (WebCore::ResourceResponseBase::resourceLoadInfo):
884         (WebCore::ResourceResponseBase::setResourceLoadInfo):
885         (WebCore::ResourceResponseBase::lazyInit):
886         * platform/network/ResourceResponseBase.h:
887         (WebCore::ResourceResponseBase::platformLazyInit):
888         * platform/network/cf/ResourceResponse.h:
889         (WebCore::ResourceResponse::ResourceResponse):
890         (WebCore::ResourceResponse::memoryUsage):
891         * platform/network/cf/ResourceResponseCFNet.cpp:
892         (WebCore::ResourceResponse::platformLazyInit):
893         * platform/network/mac/ResourceResponseMac.mm:
894         (WebCore::ResourceResponse::platformLazyInit):
895
896 2011-04-01  Anantanarayanan G Iyengar  <ananta@chromium.org>
897
898         Reviewed by Adam Barth.
899
900         https://bugs.webkit.org/show_bug.cgi?id=45855
901         Windowless plugins added dynamically to the DOM should receive paint events.
902         This is done by ensuring that the plugin widget is marked for painting when
903         it is added.
904
905         Test: plugins/windowless_plugin_paint_test.html
906
907         * rendering/RenderWidget.cpp:
908         (WebCore::RenderWidget::setWidget):
909
910 2011-04-01  Mike Reed  <reed@google.com>
911
912         Reviewed by James Robinson.
913
914         always use native font rendering on skia_gpu
915         fixes a crash when SKIA_GPU is enabled, as we can't call getTopPlatformDevice()
916         https://bugs.webkit.org/show_bug.cgi?id=57663
917
918         No new tests. existing rendering tests will exercise this
919
920         * platform/graphics/skia/PlatformContextSkia.cpp:
921         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
922
923 2011-04-01  Sheriff Bot  <webkit.review.bot@gmail.com>
924
925         Unreviewed, rolling out r82712, r82729, and r82746.
926         http://trac.webkit.org/changeset/82712
927         http://trac.webkit.org/changeset/82729
928         http://trac.webkit.org/changeset/82746
929         https://bugs.webkit.org/show_bug.cgi?id=57682
930
931         fast/frames/frame-programmatic-noresize.html is failing on
932         Windows bots. Will look into this offline. (Requested by dydx
933         on #webkit).
934
935         * html/HTMLFrameElement.cpp:
936         (WebCore::HTMLFrameElement::HTMLFrameElement):
937         (WebCore::HTMLFrameElement::attach):
938         (WebCore::HTMLFrameElement::parseMappedAttribute):
939         * html/HTMLFrameElement.h:
940         (WebCore::HTMLFrameElement::noResize):
941         * rendering/RenderFrame.cpp:
942         * rendering/RenderFrame.h:
943         * rendering/RenderFrameSet.cpp:
944         * rendering/RenderFrameSet.h:
945
946 2011-04-01  Adam Barth  <abarth@webkit.org>
947
948         Reviewed by Tony Chang.
949
950         Valgrind error in _ZN7WebCore8Document11updateTitleERKNS_19StringWithDirectionE
951         https://bugs.webkit.org/show_bug.cgi?id=57656
952
953         We should initialize memory when constructing objects.
954
955         * platform/text/StringWithDirection.h:
956         (WebCore::StringWithDirection::StringWithDirection):
957
958 2011-04-01  Jer Noble  <jer.noble@apple.com>
959
960         Reviewed by Darin Adler.
961
962         WebKit2: Link from PDF opens in a new tab instead of in the same tab
963         https://bugs.webkit.org/show_bug.cgi?id=57528
964
965         * WebCore.exp.in: Export MouseEvent::create().
966
967 2011-04-01  John Bauman  <jbauman@chromium.org>
968
969         Reviewed by Kenneth Russell.
970
971         Avoid decoding images twice in texImage2D
972         https://bugs.webkit.org/show_bug.cgi?id=51498
973
974         Make sure to redecode the image only if it's not opaque and texImage2D
975         wouldn't premultiply it anyway.
976
977         * platform/graphics/BitmapImage.h:
978         * platform/graphics/cg/GraphicsContext3DCG.cpp:
979         (WebCore::GraphicsContext3D::getImageData):
980         * platform/graphics/skia/GraphicsContext3DSkia.cpp:
981         (WebCore::GraphicsContext3D::getImageData):
982
983 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
984
985         32-bit Mac build fix.
986
987         * dom/KeyboardEvent.h: (WebCore::KeypressCommand::KeypressCommand): Use 0U to index a String
988         to avoid ambiguity.
989
990 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
991
992         Reviewed by Darin Adler.
993
994         Make WebKit2 text input handling more like WebKit1
995         https://bugs.webkit.org/show_bug.cgi?id=57649
996
997         * dom/KeyboardEvent.h: (WebCore::KeypressCommand::KeypressCommand): Put back the assertions
998         we used to have. It is dangerous to confuse editor commands and selector names - besides the
999         presence of a semicolon, they sometimes have different names, and WebKit2 failed to map those.
1000
1001 2011-04-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1002
1003         Unreviewed, rolling out r82711.
1004         http://trac.webkit.org/changeset/82711
1005         https://bugs.webkit.org/show_bug.cgi?id=57657
1006
1007         Made every test crash on XP and Win7 (Requested by
1008         abarth|gardening on #webkit).
1009
1010         * loader/cache/CachedResource.cpp:
1011         (WebCore::CachedResource::canUseCacheValidator):
1012         * platform/network/ResourceResponseBase.cpp:
1013         (WebCore::ResourceResponseBase::adopt):
1014         (WebCore::ResourceResponseBase::isHTTP):
1015         (WebCore::ResourceResponseBase::url):
1016         (WebCore::ResourceResponseBase::setURL):
1017         (WebCore::ResourceResponseBase::mimeType):
1018         (WebCore::ResourceResponseBase::setMimeType):
1019         (WebCore::ResourceResponseBase::expectedContentLength):
1020         (WebCore::ResourceResponseBase::setExpectedContentLength):
1021         (WebCore::ResourceResponseBase::textEncodingName):
1022         (WebCore::ResourceResponseBase::setTextEncodingName):
1023         (WebCore::ResourceResponseBase::suggestedFilename):
1024         (WebCore::ResourceResponseBase::setSuggestedFilename):
1025         (WebCore::ResourceResponseBase::httpStatusCode):
1026         (WebCore::ResourceResponseBase::setHTTPStatusCode):
1027         (WebCore::ResourceResponseBase::httpStatusText):
1028         (WebCore::ResourceResponseBase::setHTTPStatusText):
1029         (WebCore::ResourceResponseBase::httpHeaderField):
1030         (WebCore::ResourceResponseBase::setHTTPHeaderField):
1031         (WebCore::ResourceResponseBase::httpHeaderFields):
1032         (WebCore::ResourceResponseBase::parseCacheControlDirectives):
1033         (WebCore::ResourceResponseBase::date):
1034         (WebCore::ResourceResponseBase::age):
1035         (WebCore::ResourceResponseBase::expires):
1036         (WebCore::ResourceResponseBase::lastModified):
1037         (WebCore::ResourceResponseBase::isAttachment):
1038         (WebCore::ResourceResponseBase::setLastModifiedDate):
1039         (WebCore::ResourceResponseBase::lastModifiedDate):
1040         (WebCore::ResourceResponseBase::wasCached):
1041         (WebCore::ResourceResponseBase::connectionReused):
1042         (WebCore::ResourceResponseBase::setConnectionReused):
1043         (WebCore::ResourceResponseBase::connectionID):
1044         (WebCore::ResourceResponseBase::setConnectionID):
1045         (WebCore::ResourceResponseBase::resourceLoadTiming):
1046         (WebCore::ResourceResponseBase::setResourceLoadTiming):
1047         (WebCore::ResourceResponseBase::resourceLoadInfo):
1048         (WebCore::ResourceResponseBase::setResourceLoadInfo):
1049         (WebCore::ResourceResponseBase::lazyInit):
1050         * platform/network/ResourceResponseBase.h:
1051         (WebCore::ResourceResponseBase::platformLazyInit):
1052         * platform/network/cf/ResourceResponse.h:
1053         (WebCore::ResourceResponse::ResourceResponse):
1054         (WebCore::ResourceResponse::memoryUsage):
1055         * platform/network/cf/ResourceResponseCFNet.cpp:
1056         (WebCore::ResourceResponse::platformLazyInit):
1057         * platform/network/mac/ResourceResponseMac.mm:
1058         (WebCore::ResourceResponse::platformLazyInit):
1059
1060 2011-04-01  Matthew Delaney  <mdelaney@apple.com>
1061
1062         Reviewed by Simon Fraser.
1063
1064         Behavior of isAccelerated() for a IOSurface-backed canvas should be consistent with accelerated status of its ImageBuffer
1065         https://bugs.webkit.org/show_bug.cgi?id=57651
1066
1067         No new tests. This patch does not affect outward behavior.
1068
1069         * html/canvas/CanvasRenderingContext2D.cpp:
1070         (WebCore::CanvasRenderingContext2D::isAccelerated):
1071         * platform/graphics/ImageBuffer.h:
1072         (WebCore::ImageBuffer::isAccelerated):
1073
1074 2011-04-01  Daniel Bates  <dbates@rim.com>
1075
1076         Reviewed by Darin Adler.
1077
1078         Frame's noResize attribute can not be set by JavaScript
1079         https://bugs.webkit.org/show_bug.cgi?id=14845
1080
1081         Tests: fast/frames/frame-inherit-noresize-from-frameset.html
1082                fast/frames/frame-programmatic-noresize.html
1083                fast/frames/frame-with-noresize-can-be-resized-after-removal-of-noresize.html
1084                fast/frames/frame-with-noresize-can-be-resized-after-setting-noResize-to-false.html
1085
1086         Implements support to programmatically allow and disallow frame resizing.
1087
1088         Currently, HTMLFrameElement::parseMappedAttribute() is hardcoded to disallow frame resize (i.e.
1089         m_noResize = true) when either the noresize DOM attribute is specified (or existed at some
1090         point in time) or the value of the noResize attribute is modified. Instead we should allow/disallow
1091         frame resize depending on the presence of the noresize DOM attribute/the value of the noResize
1092         attribute.
1093
1094         * html/HTMLFrameElement.cpp:
1095         (WebCore::HTMLFrameElement::HTMLFrameElement):
1096         (WebCore::HTMLFrameElement::noResize): Made this a non-inline function since this
1097         code path isn't performance critical.
1098         (WebCore::HTMLFrameElement::attach): Removed code to inherit noresize attribute from
1099         parent <frameset> since this functionality is part of RenderFrameSet::computeEdgeInfo().
1100         (WebCore::HTMLFrameElement::parseMappedAttribute):
1101         * html/HTMLFrameElement.h:
1102         * rendering/RenderFrame.cpp:
1103         (WebCore::RenderFrame::updateFromElement): Added.
1104         * rendering/RenderFrame.h:
1105         * rendering/RenderFrameSet.cpp:
1106         (WebCore::RenderFrameSet::notifyFrameEdgeInfoChanged): Added.
1107         * rendering/RenderFrameSet.h:
1108
1109 2011-04-01  Michael Saboff  <msaboff@apple.com>
1110
1111         Reviewed by Darin Adler.
1112
1113         Cached Resource Overhead Space Usage and Accounting Inaccurate
1114         https://bugs.webkit.org/show_bug.cgi?id=57488
1115
1116         Changed the fixed overhead value for ResourceResponse to 3800 bytes.
1117         Modified ResourceResponse::platformLazyInit() to handle "base" level
1118         attributes or all attributes.  The base attributes, like URL, status
1119         code, mime type and a few header fields (mostly cache related) are
1120         suitable for most resources.  This reduces the per resource memory
1121         needs by over 1K bytes per resource thus saving memory in the cache.
1122         Collectively, these two changes bring the overhead memory calculation
1123         in line with reality.
1124
1125         No new tests added due to existing tests cover areas of change and
1126         there is no functional change.  The change is limited to reducing 
1127         memory usage along existing paths.
1128
1129         * loader/cache/CachedResource.cpp:
1130         (WebCore::CachedResource::canUseCacheValidator):
1131         * platform/network/ResourceResponseBase.cpp:
1132         (WebCore::ResourceResponseBase::isHTTP):
1133         (WebCore::ResourceResponseBase::url):
1134         (WebCore::ResourceResponseBase::setURL):
1135         (WebCore::ResourceResponseBase::mimeType):
1136         (WebCore::ResourceResponseBase::setMimeType):
1137         (WebCore::ResourceResponseBase::expectedContentLength):
1138         (WebCore::ResourceResponseBase::setExpectedContentLength):
1139         (WebCore::ResourceResponseBase::textEncodingName):
1140         (WebCore::ResourceResponseBase::setTextEncodingName):
1141         (WebCore::ResourceResponseBase::suggestedFilename):
1142         (WebCore::ResourceResponseBase::setSuggestedFilename):
1143         (WebCore::ResourceResponseBase::httpStatusCode):
1144         (WebCore::ResourceResponseBase::setHTTPStatusCode):
1145         (WebCore::ResourceResponseBase::httpHeaderField):
1146         (WebCore::ResourceResponseBase::setHTTPHeaderField):
1147         (WebCore::ResourceResponseBase::parseCacheControlDirectives):
1148         (WebCore::ResourceResponseBase::hasCacheValidatorFields):
1149         (WebCore::ResourceResponseBase::date):
1150         (WebCore::ResourceResponseBase::age):
1151         (WebCore::ResourceResponseBase::expires):
1152         (WebCore::ResourceResponseBase::lastModified):
1153         (WebCore::ResourceResponseBase::lazyInit):
1154         * platform/network/ResourceResponseBase.h:
1155         (WebCore::ResourceResponseBase::platformLazyInit):
1156         * platform/network/cf/ResourceResponse.h:
1157         (WebCore::ResourceResponse::ResourceResponse):
1158         (WebCore::ResourceResponse::memoryUsage):
1159         * platform/network/cf/ResourceResponseCFNet.cpp:
1160         * platform/network/mac/ResourceResponseMac.mm:
1161         (WebCore::ResourceResponse::platformLazyInit):
1162
1163 2011-04-01  Timothy Hatcher  <timothy@apple.com>
1164
1165         Make momentum scroll event latching work in WebKit2 on Mac.
1166
1167         <rdar://problem/8751861>
1168
1169         Reviewed by Darin Adler.
1170
1171         * WebCore.exp.in: Remove _wkIsLatchingWheelEvent, add _wkGetNSEventMomentumPhase.
1172         * page/EventHandler.cpp:
1173         (WebCore::EventHandler::handleWheelEvent): Set m_useLatchedWheelEventNode based on the
1174         event's momentumPhase.
1175         * page/mac/EventHandlerMac.mm:
1176         (WebCore::EventHandler::wheelEvent): Remove the setting of m_useLatchedWheelEventNode.
1177         It is now done in EventHandler::handleWheelEvent.
1178         * platform/mac/WebCoreSystemInterface.h: Remove wkIsLatchingWheelEvent, add wkGetNSEventMomentumPhase.
1179         * platform/mac/WebCoreSystemInterface.mm: Ditto.
1180         * platform/mac/WheelEventMac.mm:
1181         (WebCore::momentumPhaseForEvent): Return a phase on older Mac system by using wkGetNSEventMomentumPhase.
1182
1183 2011-04-01  Steve Block  <steveblock@google.com>
1184
1185         Reviewed by Jeremy Orlow.
1186
1187         JavaClass should be an interface and free of JNI types
1188         https://bugs.webkit.org/show_bug.cgi?id=57533
1189
1190         This patch fixes JavaClass for V8 only.
1191
1192         It factors out a JavaClass interface which does not use JNI types.
1193         This will allow the Java bridge to be used with objects that
1194         don't use JNI directly. The existing jobject-backed
1195         implementation is moved to a new JavaClassJobject class which
1196         implements the interface.
1197
1198         No new tests, refactoring only.
1199
1200         * Android.v8bindings.mk:
1201         * WebCore.gypi:
1202         * bridge/jni/v8/JavaClassJobjectV8.cpp:
1203         (JavaClassJobject::JavaClassJobject):
1204         (JavaClassJobject::~JavaClassJobject):
1205         (JavaClassJobject::methodsNamed):
1206         (JavaClassJobject::fieldNamed):
1207         * bridge/jni/v8/JavaClassJobjectV8.h: Copied from Source/WebCore/bridge/jni/v8/JavaClassV8.h.
1208         * bridge/jni/v8/JavaClassV8.h:
1209         (JSC::Bindings::JavaClass::~JavaClass):
1210         * bridge/jni/v8/JavaInstanceV8.cpp:
1211         (JavaInstance::getClass):
1212
1213 2011-04-01  Jaehun Lim  <ljaehun.lim@samsung.com>
1214
1215         Unreviewed build fix.
1216
1217         Fix build break when font backend is Pango.
1218         Pango is missed in changeset 80589.
1219
1220         https://bugs.webkit.org/show_bug.cgi?id=57609
1221
1222         * platform/graphics/pango/FontPlatformData.h:
1223         (WebCore::FontPlatformData::setOrientation):
1224
1225 2011-04-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1226
1227         Unreviewed, rolling out r82687.
1228         http://trac.webkit.org/changeset/82687
1229         https://bugs.webkit.org/show_bug.cgi?id=57643
1230
1231         This patch broke accessibility aria-treegrid test in Mac
1232         (Requested by msanchez on #webkit).
1233
1234         * accessibility/AccessibilityARIAGrid.cpp:
1235         * accessibility/AccessibilityARIAGrid.h:
1236         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1237         (atkRole):
1238         * accessibility/mac/AccessibilityObjectWrapper.mm:
1239
1240 2011-03-31  Abhishek Arya  <inferno@chromium.org>
1241
1242         Reviewed by Andreas Kling.
1243
1244         Whenever a relayout is trigger for SVGPath, make sure
1245         to clear its previous marker layout info. This helps
1246         to prevent removed markers from being used.
1247         https://bugs.webkit.org/show_bug.cgi?id=57492
1248
1249         Test: svg/dom/path-marker-removed-crash.svg
1250
1251         * rendering/svg/RenderSVGPath.cpp:
1252         (WebCore::RenderSVGPath::layout):
1253         * rendering/svg/SVGMarkerLayoutInfo.cpp:
1254         (WebCore::SVGMarkerLayoutInfo::clear):
1255         * rendering/svg/SVGMarkerLayoutInfo.h:
1256
1257 2011-04-01  Rob Buis  <rwlbuis@gmail.com>
1258
1259         Reviewed by Nikolas Zimmermann.
1260
1261         https://bugs.webkit.org/show_bug.cgi?id=55750
1262         SVG <image> referenced by <use> is displayed incorrectly
1263
1264         Reintroduce old behaviour for valid base URI, for invalid
1265         keep using document base URI.
1266         Fixes regression of W3C-SVG-1.1/struct-image-07-t.svg.
1267
1268         Test: svg/custom/image-base-uri.svg
1269
1270         * svg/SVGImageLoader.cpp:
1271         (WebCore::SVGImageLoader::sourceURI):
1272
1273 2011-04-01  Mario Sanchez Prada  <msanchez@igalia.com>
1274
1275         Reviewed by Chris Fleizach.
1276
1277         ARIA Grid tables should return GridRole in roleValue() method
1278         https://bugs.webkit.org/show_bug.cgi?id=57614
1279
1280         This change does not need any test since it doesn't change anything
1281         from the point of view of the consumers (Assistive Technoglogies).
1282         It's just an internal change to simplify identifying HTML and ARIA
1283         tables by calling to the AccessibilityObject::roleValue method.
1284
1285         * accessibility/AccessibilityARIAGrid.h:
1286         * accessibility/AccessibilityARIAGrid.cpp:
1287         (WebCore::AccessibilityARIAGrid::roleValue): Return GridRole.
1288
1289         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1290         (atkRole): Removed unneeded comment.
1291
1292         * accessibility/mac/AccessibilityObjectWrapper.mm: Map GridRole to
1293         NSAccessibilityTableRole, to keep the same behaviour.
1294
1295 2011-04-01  MORITA Hajime  <morrita@google.com>
1296
1297         Reviewed by Dimitri Glazkov.
1298
1299         <meter> can only support horizontal indicator
1300         https://bugs.webkit.org/show_bug.cgi?id=56001
1301
1302         - Removed code which deals with the direction and
1303           left the horizontal path.
1304         - Removed "horizontal" from related names which is now
1305           redundant.
1306         
1307         * css/CSSSelector.cpp:
1308         (WebCore::CSSSelector::pseudoId):
1309         (WebCore::nameToPseudoTypeMap):
1310         (WebCore::CSSSelector::extractPseudoType):
1311         * css/CSSSelector.h:
1312         * css/html.css:
1313         (meter::-webkit-meter-bar):
1314         (meter::-webkit-meter-optimum-value):
1315         (meter::-webkit-meter-suboptimal-value):
1316         (meter::-webkit-meter-even-less-good-value):
1317         * rendering/RenderMeter.cpp:
1318         (WebCore::RenderMeter::~RenderMeter):
1319         (WebCore::RenderMeter::createPart):
1320         (WebCore::RenderMeter::updateFromElement):
1321         (WebCore::RenderMeter::layoutParts):
1322         (WebCore::RenderMeter::styleDidChange):
1323         (WebCore::RenderMeter::shouldHaveParts):
1324         (WebCore::RenderMeter::valuePartRect):
1325         (WebCore::RenderMeter::valuePseudoId):
1326         (WebCore::RenderMeter::barPseudoId):
1327         (WebCore::RenderMeter::detachShadows):
1328         (WebCore::RenderMeter::updateShadows):
1329         * rendering/RenderMeter.h:
1330         (WebCore::RenderMeter::shadowAttached):
1331         * rendering/RenderTheme.cpp:
1332         (WebCore::RenderTheme::supportsMeter):
1333         * rendering/RenderTheme.h:
1334         * rendering/RenderThemeMac.h:
1335         * rendering/RenderThemeMac.mm:
1336         (WebCore::RenderThemeMac::paintMeter):
1337         (WebCore::RenderThemeMac::supportsMeter):
1338         * rendering/style/RenderStyleConstants.h:
1339
1340 2011-03-23  Pavel Podivilov  <podivilov@chromium.org>
1341
1342         Reviewed by Pavel Feldman.
1343
1344         Web Inspector: fix reveal line in formatted script.
1345         https://bugs.webkit.org/show_bug.cgi?id=56941
1346
1347         * inspector/front-end/BreakpointsSidebarPane.js:
1348         (WebInspector.JavaScriptBreakpointsSidebarPane):
1349         (WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointClicked):
1350         * inspector/front-end/DebuggerPresentationModel.js:
1351         (WebInspector.DebuggerPresentationModel.prototype.sourceFileForScriptURL):
1352         * inspector/front-end/NetworkPanel.js:
1353         (WebInspector.NetworkPanel.prototype.canShowAnchorLocation):
1354         (WebInspector.NetworkPanel.prototype.showAnchorLocation):
1355         * inspector/front-end/Panel.js:
1356         (WebInspector.Panel.prototype.canShowAnchorLocation):
1357         (WebInspector.Panel.prototype.showAnchorLocation):
1358         * inspector/front-end/ResourcesPanel.js:
1359         (WebInspector.ResourcesPanel.prototype.canShowAnchorLocation):
1360         (WebInspector.ResourcesPanel.prototype.showAnchorLocation):
1361         (WebInspector.ResourcesPanel.prototype.showResource):
1362         * inspector/front-end/ScriptsPanel.js:
1363         (WebInspector.ScriptsPanel):
1364         (WebInspector.ScriptsPanel.prototype.canShowAnchorLocation):
1365         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
1366         (WebInspector.ScriptsPanel.prototype._showSourceLine):
1367         * inspector/front-end/SourceFrame.js:
1368         (WebInspector.SourceFrame.prototype.highlightLine):
1369         (WebInspector.SourceFrame.prototype._createTextViewer):
1370         * inspector/front-end/inspector.js:
1371         (WebInspector.documentClick.followLink):
1372         (WebInspector.documentClick):
1373         (WebInspector._showAnchorLocation):
1374
1375 2011-04-01  Pavel Podivilov  <podivilov@chromium.org>
1376
1377         Reviewed by Yury Semikhatsky.
1378
1379         Web Inspector: make editScriptSource a Script's method.
1380         https://bugs.webkit.org/show_bug.cgi?id=57615
1381
1382         * inspector/front-end/DebuggerModel.js:
1383         (WebInspector.DebuggerModel.prototype.editScriptSource):
1384         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
1385         * inspector/front-end/Script.js:
1386         (WebInspector.Script.prototype.requestSource):
1387         (WebInspector.Script.prototype.editSource):
1388
1389 2011-04-01  Pavel Feldman  <pfeldman@google.com>
1390
1391         Reviewed by Yury Semikhatsky.
1392
1393         Web Inspector: event should have "data" attribute, not "body"
1394         https://bugs.webkit.org/show_bug.cgi?id=57628
1395
1396         * inspector/CodeGeneratorInspector.pm:
1397
1398 2011-04-01  Pavel Podivilov  <podivilov@chromium.org>
1399
1400         Reviewed by Yury Semikhatsky.
1401
1402         Web Inspector: checkboxes are broken in xhr breakpoints sidebar pane.
1403         https://bugs.webkit.org/show_bug.cgi?id=57610
1404
1405         * inspector/front-end/BreakpointsSidebarPane.js:
1406         (WebInspector.XHRBreakpointsSidebarPane.prototype._checkboxClicked):
1407
1408 2011-04-01  Alexander Pavlov  <apavlov@chromium.org>
1409
1410         Reviewed by Yury Semikhatsky.
1411
1412         Web Inspector: up/down keys are not treating hex numbers properly while editing styles.
1413         https://bugs.webkit.org/show_bug.cgi?id=40522
1414
1415         Drive-by: fix inc/dec for numbers like ".5"
1416
1417         Test: inspector/styles/up-down-numerics-and-colors.html
1418
1419         * inspector/front-end/StylesSidebarPane.js:
1420         (WebInspector.StylePropertyTreeElement.prototype):
1421
1422 2011-03-30  Pavel Podivilov  <podivilov@chromium.org>
1423
1424         Reviewed by Pavel Feldman.
1425
1426         Web Inspector: remove dead code from Script.js.
1427         https://bugs.webkit.org/show_bug.cgi?id=57454
1428
1429         * inspector/front-end/DebuggerModel.js:
1430         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
1431         (WebInspector.DebuggerModel.prototype._failedToParseScriptSource):
1432         * inspector/front-end/Script.js:
1433         (WebInspector.Script):
1434         (WebInspector.Script.prototype.requestSource.didGetScriptSource):
1435         (WebInspector.Script.prototype.requestSource):
1436
1437 2011-04-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1438
1439         Unreviewed, rolling out r82667.
1440         http://trac.webkit.org/changeset/82667
1441         https://bugs.webkit.org/show_bug.cgi?id=57612
1442
1443         Breaks Leopard layout tests (Requested by podivilov on
1444         #webkit).
1445
1446         * GNUmakefile.am:
1447         * inspector/front-end/DebuggerPresentationModel.js:
1448         (WebInspector.DebuggerPresentationModel):
1449         (WebInspector.DebuggerPresentationModel.prototype.toggleFormatSourceFiles):
1450
1451 2011-03-30  Pavel Podivilov  <podivilov@chromium.org>
1452
1453         Reviewed by Pavel Feldman.
1454
1455         Web Inspector: remove unused SourceFrameContent class.
1456         https://bugs.webkit.org/show_bug.cgi?id=57453
1457
1458         * WebCore.gypi:
1459         * WebCore.vcproj/WebCore.vcproj:
1460         * inspector/front-end/ResourceView.js:
1461         (WebInspector.SourceFrameDelegateForResourcesPanel.prototype.requestContent):
1462         * inspector/front-end/ScriptsPanel.js:
1463         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.requestContent):
1464         * inspector/front-end/SourceFrame.js:
1465         (WebInspector.SourceFrame.prototype._createTextViewer):
1466         * inspector/front-end/SourceFrameContent.js: Removed.
1467         * inspector/front-end/WebKit.qrc:
1468         * inspector/front-end/inspector.html:
1469
1470 2011-03-30  Pavel Podivilov  <podivilov@chromium.org>
1471
1472         Reviewed by Pavel Feldman.
1473
1474         Web Inspector: add test for script formatter worker.
1475         https://bugs.webkit.org/show_bug.cgi?id=57447
1476
1477         Test: inspector/debugger/script-formatter.html
1478
1479         * GNUmakefile.am:
1480         * inspector/front-end/DebuggerPresentationModel.js:
1481         (WebInspector.DebuggerPresentationModel):
1482         (WebInspector.DebuggerPresentationModel.prototype.toggleFormatSourceFiles):
1483
1484 2011-03-30  Pavel Podivilov  <podivilov@chromium.org>
1485
1486         Reviewed by Pavel Feldman.
1487
1488         Web Inspector: [chromium] script formatting doesn't work when all scripts are concatenated.
1489         https://bugs.webkit.org/show_bug.cgi?id=57446
1490
1491         * inspector/front-end/ScriptFormatterWorker.js:
1492
1493 2011-04-01  Pavel Podivilov  <podivilov@chromium.org>
1494
1495         Reviewed by Pavel Feldman.
1496
1497         Web Inspector: allow file access from inspector page so inspector can use workers.
1498         https://bugs.webkit.org/show_bug.cgi?id=57339
1499
1500         * inspector/InspectorFrontendClientLocal.cpp:
1501         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
1502
1503 2011-03-31  Yury Semikhatsky  <yurys@chromium.org>
1504
1505         Reviewed by Pavel Feldman.
1506
1507         Web Inspector: inspected page crashes on attempt to log object with broken .toString
1508         https://bugs.webkit.org/show_bug.cgi?id=57557
1509
1510         If ScriptValue.toString causes a JavaScript exception, the exception is cleared
1511         before returning from the toString method.
1512
1513         Test: inspector/console/console-log-toString-object.html
1514
1515         * bindings/js/ScriptValue.cpp:
1516         (WebCore::ScriptValue::toString):
1517         * bindings/js/ScriptValue.h:
1518         * bindings/v8/ScriptValue.cpp:
1519         (WebCore::ScriptValue::toString):
1520
1521 2011-03-31  Andrey Kosyakov  <caseq@chromium.org>
1522
1523         Reviewed by Pavel Feldman.
1524
1525         - removed documentWide parameter to querySelector[All]() (user document node id instead)
1526         - factor out document request logic within DOMAgent into separate method
1527         - add querySelector() and querySelectorAll() to DOMAgent.js, assure we have document before calling back-end
1528         - use the above wrappers for querySelector() and querySelectorAll(), do not call backend directly
1529         - minor style fixes in Inspector.json
1530         - more error logging
1531
1532         Web Inspector: provide front-end wrappers for DOMAgent.querySelector[All]() that take care of fetching the document
1533         https://bugs.webkit.org/show_bug.cgi?id=57466
1534
1535         * inspector/Inspector.json:
1536         * inspector/InspectorDOMAgent.cpp:
1537         (WebCore::InspectorDOMAgent::querySelector):
1538         (WebCore::InspectorDOMAgent::querySelectorAll):
1539         * inspector/InspectorDOMAgent.h:
1540         * inspector/front-end/AuditRules.js:
1541         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
1542         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
1543         * inspector/front-end/CSSStyleModel.js:
1544         (WebInspector.CSSStyleModel.prototype.setRuleSelector.callback):
1545         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
1546         (WebInspector.CSSStyleModel.prototype.addRule.callback):
1547         (WebInspector.CSSStyleModel.prototype.addRule):
1548         * inspector/front-end/DOMAgent.js:
1549         (WebInspector.DOMAgent.prototype.requestDocument.onDocumentAvailable):
1550         (WebInspector.DOMAgent.prototype.requestDocument):
1551         (WebInspector.DOMAgent.prototype.pushNodeToFrontend):
1552         (WebInspector.DOMAgent.prototype.pushNodeByPathToFrontend):
1553         (WebInspector.DOMAgent.prototype._dispatchWhenDocumentAvailable.onDocumentAvailable):
1554         (WebInspector.DOMAgent.prototype._dispatchWhenDocumentAvailable):
1555         (WebInspector.DOMAgent.prototype.cancelSearch):
1556         (WebInspector.DOMAgent.prototype.querySelector):
1557         (WebInspector.DOMAgent.prototype.querySelectorAll):
1558
1559 2011-04-01  Kent Tamura  <tkent@chromium.org>
1560
1561         Apply sort-Xcode-project-file.
1562
1563         * WebCore.xcodeproj/project.pbxproj:
1564
1565 2011-03-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1566
1567         Unreviewed, rolling out r82652.
1568         http://trac.webkit.org/changeset/82652
1569         https://bugs.webkit.org/show_bug.cgi?id=57603
1570
1571         Test still fails (Requested by abarth|gardener on #webkit).
1572
1573         * rendering/RenderWidget.cpp:
1574         (WebCore::RenderWidget::setWidget):
1575
1576 2011-03-31  Naoki Takano  <takano.naoki@gmail.com>
1577
1578         Reviewed by Kent Tamura.
1579
1580         REGRESSION (r64712): Safari removes the first blank line in a textarea
1581         https://bugs.webkit.org/show_bug.cgi?id=56434
1582
1583         Test: fast/forms/textarea-newline.html
1584
1585         A linefeed removal after a textarea tag is originally processed in WebCore::HTMLTextAreaElement::defaultValue().
1586         But HTML5 tree builder now removes the linefeed. It means linefeed removal happens twice.
1587         And devalutValue() removal is not needed anymore.
1588
1589         * html/HTMLTextAreaElement.cpp:
1590         (WebCore::HTMLTextAreaElement::setDefaultValue): Remove an extra linefeed insertion at the beginning.
1591         (WebCore::HTMLTextAreaElement::defaultValue): Remove linefeed removal check in default value creation function.
1592
1593 2011-03-31  Luke Macpherson   <macpherson@chromium.org>
1594
1595         Reviewed by Dimitri Glazkov.
1596
1597         Remove refcounting of CSSStyleApplyProperty singleton
1598         https://bugs.webkit.org/show_bug.cgi?id=57592
1599
1600         No new tests required as no functionality changes.
1601
1602         * css/CSSStyleApplyProperty.h:
1603
1604 2011-03-31  Anantanarayanan G Iyengar  <ananta@chromium.org>
1605
1606         Reviewed by Adam Barth.
1607
1608         https://bugs.webkit.org/show_bug.cgi?id=45855
1609         Windowless plugins added dynamically to the DOM should receive paint events.
1610         This is done by ensuring that the plugin widget is marked for painting when
1611         it is added.
1612
1613         Test: plugins/windowless_plugin_paint_test.html
1614
1615         * rendering/RenderWidget.cpp:
1616         (WebCore::RenderWidget::setWidget):
1617
1618 2011-03-31  Adam Roben  <aroben@apple.com>
1619
1620         Add a new AbstractCACFLayerTreeHost base class
1621
1622         This class exposes the interface that LayerChangesFlusher and PlatformCALayer rely on.
1623         CACFLayerTreeHost now derives from AbstractCACFLayerTreeHost. In the future, WebKit2's
1624         LayerTreeHostCA will also derive from it (on Windows).
1625
1626         This should cause no change in behavior.
1627
1628         Fixes <http://webkit.org/b/57598> Coupling between CACFLayerTreeHost and other CACF-related
1629         code is too high
1630
1631         Reviewed by Anders Carlsson.
1632
1633         * WebCore.vcproj/WebCore.vcproj: Added AbstractCACFLayerTreeHost, and let VS reorder files.
1634
1635         * platform/graphics/ca/win/AbstractCACFLayerTreeHost.h: Added.
1636
1637         * platform/graphics/ca/win/CACFLayerTreeHost.h: Changed to derive from
1638         AbstractCACFLayerTreeHost, and annotated the overrides of its functions.
1639         AbstractCACFLayerTreeHost also allows us to get rid of the friend relationship with
1640         PlatformCALayer.
1641
1642         * platform/graphics/ca/win/LayerChangesFlusher.cpp:
1643         (WebCore::LayerChangesFlusher::flushPendingLayerChangesSoon):
1644         (WebCore::LayerChangesFlusher::cancelPendingFlush):
1645         (WebCore::LayerChangesFlusher::hookFired):
1646         * platform/graphics/ca/win/LayerChangesFlusher.h:
1647         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1648         (layerTreeHostForLayer):
1649         (PlatformCALayer::rootLayer):
1650         (PlatformCALayer::setNeedsCommit):
1651         (PlatformCALayer::addAnimationForKey):
1652         (PlatformCALayer::removeAnimationForKey):
1653         Changed to use AbstractCACFLayerTreeHost instead of using CACFLayerTreeHost directly.
1654
1655 2011-03-31  Andy Estes  <aestes@apple.com>
1656
1657         Reviewed by Alexey Proskuryakov.
1658
1659         REGRESSION: Java applet fails to load when <object> has a classid attribute.
1660         https://bugs.webkit.org/show_bug.cgi?id=52703
1661         
1662         Java applets embedded with the object element sometimes use classid to
1663         specify their main resource. When this is done, the classid is prefixed
1664         with "java:". Treat these as supported classids in WebKit.
1665
1666         Test: java/embedding-java-with-object.html
1667
1668         * html/HTMLObjectElement.cpp:
1669         (WebCore::HTMLObjectElement::hasValidClassId): If the MIME type is a
1670         Java Applet type and the classid starts with "java:", the classid
1671         should be considered valid.
1672
1673 2011-03-31  Brent Fulgham  <bfulgham@webkit.org>
1674
1675         Reviewed Adam Roben.
1676
1677         [WinCairo] Implement Missing drawWindowsBitmap method.
1678         https://bugs.webkit.org/show_bug.cgi?id=57409
1679
1680         * WebCore.vcproj/WebCore.vcproj: Add new DIBPixelData files.
1681         * platform/graphics/GraphicsContext.h:
1682         (WebCore::GraphicsContext::WindowsBitmap::buffer):
1683         (WebCore::GraphicsContext::WindowsBitmap::bufferLength):
1684         (WebCore::GraphicsContext::WindowsBitmap::size):
1685         (WebCore::GraphicsContext::WindowsBitmap::bytesPerRow):
1686         (WebCore::GraphicsContext::WindowsBitmap::bitsPerPixel):
1687         (WebCore::GraphicsContext::WindowsBitmap::windowsDIB):
1688         * platform/graphics/win/GraphicsContextCGWin.cpp:
1689         (WebCore::CGContextWithHDC):
1690         (WebCore::GraphicsContext::releaseWindowsContext): Modified to use
1691         new common routines.
1692         * platform/graphics/win/GraphicsContextCairoWin.cpp:
1693         (WebCore::drawBitmapToContext): New common drawing implementation.
1694         (WebCore::GraphicsContext::releaseWindowsContext): Modified to use
1695         new common routines.
1696         (WebCore::GraphicsContext::drawWindowsBitmap):
1697         * platform/graphics/win/GraphicsContextWin.cpp:
1698         (WebCore::GraphicsContext::WindowsBitmap::WindowsBitmap): Modified
1699         to use new DIBPixelData data type.
1700         * platform/graphics/win/DIBPixelData.cpp: Added.
1701         (WebCore::DIBPixelData::DIBPixelData):
1702         (WebCore::DIBPixelData::initialize):
1703         * platform/graphics/win/DIBPixelData.h: Added.
1704         (WebCore::DIBPixelData::DIBPixelData):
1705         (WebCore::DIBPixelData::buffer):
1706         (WebCore::DIBPixelData::bufferLength):
1707         (WebCore::DIBPixelData::size):
1708         (WebCore::DIBPixelData::bytesPerRow):
1709         (WebCore::DIBPixelData::bitsPerPixel):
1710
1711 2011-03-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1712
1713         Unreviewed, rolling out r81849.
1714         http://trac.webkit.org/changeset/81849
1715         https://bugs.webkit.org/show_bug.cgi?id=57588
1716
1717         CSS Parsing broke with -webkit-calc and introduced crashes
1718         (Requested by inferno-sec on #webkit).
1719
1720         * css/CSSGrammar.y:
1721         * css/CSSParserValues.cpp:
1722         * css/CSSParserValues.h:
1723         * css/tokenizer.flex:
1724
1725 2011-03-31  Adam Roben  <aroben@apple.com>
1726
1727         Don't ref CACFLayerTreeHosts when telling them to flush layer changes
1728
1729         LayerChangesFlusher was reffing CACFLayerTreeHosts before calling out to them. This would
1730         have protected us if calling out to one CACFLayerTreeHost could cause a different
1731         CACFLayerTreeHost to be destroyed. But that isn't possible; each CACFLayerTreeHost is
1732         associated with its own page, and flushing layer changes doesn't touch any other page. So it
1733         isn't possible for a CACFLayerTreeHost to be deleted while another one is flushing layer
1734         changes.
1735
1736         One benefit of this change is that it will make it easier to make LayerChangesFlusher
1737         interact with a forthcoming abstract base class, rather than with CACFLayerTreeHost itself.
1738
1739         This should cause no change in behavior.
1740
1741         Fixes <http://webkit.org/b/57590> LayerChangesFlusher unnecessarily refs CACFLayerTreeHost
1742         before calling out to it
1743
1744         Reviewed by Darin Adler.
1745
1746         * platform/graphics/ca/win/LayerChangesFlusher.cpp:
1747         (WebCore::LayerChangesFlusher::hookFired): Just store bare pointers to the
1748         CACFLayerTreeHosts.
1749
1750 2011-03-31  Antti Koivisto  <antti@apple.com>
1751
1752         Reviewed by Oliver Hunt.
1753
1754         https://bugs.webkit.org/show_bug.cgi?id=57574
1755         Preload scanner fails to pick up resources from document.write() output
1756
1757         - Scan script inserted source using a separate preload scanner.
1758         - Make the main preload scanner correctly process the remaining source if script execution blocked the parser.
1759
1760         Tests: fast/preloader/document-write-2.html
1761                fast/preloader/document-write.html
1762
1763         * html/parser/HTMLDocumentParser.cpp:
1764         (WebCore::HTMLDocumentParser::insert):
1765         (WebCore::HTMLDocumentParser::appendCurrentInputStreamToPreloadScannerAndScan):
1766         * html/parser/HTMLDocumentParser.h:
1767         (WebCore::HTMLDocumentParser::hasPreloadScanner):
1768         * html/parser/HTMLScriptRunner.cpp:
1769         (WebCore::HTMLScriptRunner::execute):
1770         * html/parser/HTMLScriptRunnerHost.h:
1771
1772 2011-03-31  Tony Gentilcore  <tonyg@chromium.org>
1773
1774         Build fix: Add missing include
1775         https://bugs.webkit.org/show_bug.cgi?id=57587
1776
1777         * loader/cache/CachedResourceLoader.cpp:
1778
1779 2011-03-31  Tony Gentilcore  <tonyg@chromium.org>
1780
1781         Reviewed by Antti Koivisto.
1782
1783         PreloadScanner doesn&apos;t find image while executing script in head
1784         https://bugs.webkit.org/show_bug.cgi?id=45072
1785
1786         Previously, while parsing the head, no resources in the body would be
1787         preloaded. After this patch, we will preload scripts and styles in the
1788         body, although we continue to hold off on all images until the page is 
1789         first rendered.
1790
1791         To evaluate this change, I've recorded a sampling of 45 of alexa's top
1792         sites and replayed them under simulated bandwidth conditions, loading
1793         each 5-15 times until stddev is small enough.
1794
1795         Time to the load event improved at the overall average by 3%.
1796         Most sites are unchanged, but sites with certain blocking patterns had
1797         big wins -- ebay 19% (331ms), microsoft 15% (226ms), conduit 15% (277ms)
1798         nytimes 7% (182ms).
1799
1800         Time to DOM content loaded event improved by 6% with some even bigger
1801         individual wins.
1802
1803         First paint time held steady.
1804
1805         Note that I originally wanted to allow preloading of images while in the
1806         head, but that regressed first paint time (even though it was better for
1807         overall load time).
1808
1809         Test: fast/preloader/scan-body-from-head.html
1810
1811         * loader/cache/CachedResourceLoader.cpp:
1812         (WebCore::CachedResourceLoader::preload):
1813
1814 2011-03-31  Sheriff Bot  <webkit.review.bot@gmail.com>
1815
1816         Unreviewed, rolling out r82616.
1817         http://trac.webkit.org/changeset/82616
1818         https://bugs.webkit.org/show_bug.cgi?id=57585
1819
1820         New test does not pass on Gtk, chromium-mac, chromium-linux
1821         and possibly elsewhere (Requested by abarth|gardener on
1822         #webkit).
1823
1824         * rendering/RenderWidget.cpp:
1825         (WebCore::RenderWidget::setWidget):
1826
1827 2011-03-31  Adrienne Walker  <enne@google.com>
1828
1829         Reviewed by James Robinson.
1830
1831         [chromium] Fix ownership semantics for LayerChromium/CCLayerImpl
1832         https://bugs.webkit.org/show_bug.cgi?id=57577
1833
1834         LayerRendererChromium now uses a RefPtr to preserve ownership of all
1835         of the CCLayerImpl layers that it is using during the update/draw
1836         pass.  Addtionally, when a LayerChromium is destroyed, the weak
1837         owner pointer from its CCLayerImpl is correctly unset.
1838
1839         * platform/graphics/chromium/LayerRendererChromium.cpp:
1840         (WebCore::LayerRendererChromium::compareLayerZ):
1841         (WebCore::LayerRendererChromium::updateAndDrawLayers):
1842         (WebCore::LayerRendererChromium::updateLayers):
1843         (WebCore::LayerRendererChromium::drawLayers):
1844         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1845         (WebCore::LayerRendererChromium::drawLayer):
1846         * platform/graphics/chromium/LayerRendererChromium.h:
1847         * platform/graphics/chromium/RenderSurfaceChromium.h:
1848         * platform/graphics/chromium/VideoLayerChromium.cpp:
1849         (WebCore::VideoLayerChromium::updateCompositorResources):
1850         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1851         (WebCore::CCLayerImpl::drawsContent):
1852         (WebCore::CCLayerImpl::cleanupResources):
1853
1854 2011-03-31  Sam Weinig  <sam@webkit.org>
1855
1856         Reviewed by Anders Carlsson.
1857
1858         Rename WebCore's UI_STRING to WEB_UI_STRING to not overlap with WebKit API
1859         https://bugs.webkit.org/show_bug.cgi?id=57582
1860
1861         * platform/DefaultLocalizationStrategy.cpp:
1862         * platform/LocalizedStrings.h:
1863
1864 2011-03-31  Eric Seidel  <eric@webkit.org>
1865
1866         Reviewed by Ryosuke Niwa.
1867
1868         Rename BidiResolver::lastBeforeET to m_lastBeforeET to match modern style
1869         https://bugs.webkit.org/show_bug.cgi?id=57550
1870
1871         * platform/text/BidiResolver.h:
1872         (WebCore::::createBidiRunsForLine):
1873
1874 2011-03-31  Anantanarayanan G Iyengar  <ananta@chromium.org>
1875
1876         Reviewed by James Robinson.
1877
1878         https://bugs.webkit.org/show_bug.cgi?id=45855
1879         Windowless plugins added dynamically to the DOM should receive paint events.
1880         This is done by ensuring that the plugin widget is marked for painting when
1881         it is added.
1882
1883         Test: plugins/windowless_plugin_paint_test.html
1884
1885         * rendering/RenderWidget.cpp:
1886         (WebCore::RenderWidget::setWidget):
1887
1888 2011-03-31  Stephen White  <senorblanco@chromium.org>
1889
1890         Reviewed by Kenneth Russell.
1891
1892         Speed up accelerated path drawing.
1893         https://bugs.webkit.org/show_bug.cgi?id=57371
1894         This CL does three things:  re-uses the same vertex and index buffer
1895         for all path draws, converts all vertex layouts from vec3 to vec2, and
1896         does a convexity check for polygons before passing them to the
1897         tesselator.
1898
1899         Covered by canvas/philip/tests/2d.path.bezierCurveTo.*, and others.
1900
1901         * platform/graphics/chromium/GLES2Canvas.cpp:
1902         Replace the Vector<double> for interpolated curves with a
1903         Vector<FloatPoint>.
1904         (WebCore::Cubic::evaluate):
1905         Inline the evaluation function (as Quadratic does).
1906         (WebCore::GLES2Canvas::GLES2Canvas):
1907         Initialize the m_pathIndexBuffer.
1908         (WebCore::GLES2Canvas::~GLES2Canvas):
1909         Delete the path vertex and index buffers on destruction.
1910         (WebCore::interpolateQuadratic):
1911         (WebCore::interpolateCubic):
1912         Interpolate directly to a Vector<FloatPoint>, rather than
1913         Vector<double>.
1914         (WebCore::PolygonData::PolygonData):
1915         (WebCore::combineData):
1916         Replace the DoubleVector with a FloatPointVector.
1917         (WebCore::GLES2Canvas::tesselateAndFillPath):
1918         Move curve drawing into this function, and rename it to reflect the
1919         new behaviour.  Re-use the common vertex and index buffers.  If the
1920         curve consists of a single convex polygon, draw the curve as a single
1921         triangle fan.  Otherwise, convert it to doubles and pass it to the
1922         tesselator.
1923         (WebCore::GLES2Canvas::fillPathInternal):
1924         * platform/graphics/chromium/GLES2Canvas.h:
1925         Rename createVertexBufferFromPath() -> tesselateAndFillPath().
1926         Add a persistent index buffer for all path draws.
1927         * platform/graphics/gpu/BicubicShader.cpp:
1928         (WebCore::BicubicShader::create):
1929         (WebCore::BicubicShader::use):
1930         * platform/graphics/gpu/ConvolutionShader.cpp:
1931         (WebCore::ConvolutionShader::create):
1932         (WebCore::ConvolutionShader::use):
1933         Use vec2s instead of vec3s for all vertex data.
1934         * platform/graphics/gpu/LoopBlinnMathUtils.cpp:
1935         (WebCore::LoopBlinnMathUtils::convexCompare):
1936         (WebCore::LoopBlinnMathUtils::convexCross):
1937         (WebCore::LoopBlinnMathUtils::convexCheckTriple):
1938         (WebCore::LoopBlinnMathUtils::isConvex):
1939         * platform/graphics/gpu/LoopBlinnMathUtils.h:
1940         Implement a convexity check, based on the code in Graphics Gems IV.
1941         * platform/graphics/gpu/Shader.cpp:
1942         (WebCore::Shader::generateVertex):
1943         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1944         (WebCore::SharedGraphicsContext3D::useQuadVertices):
1945         * platform/graphics/gpu/SolidFillShader.cpp:
1946         (WebCore::SolidFillShader::use):
1947         * platform/graphics/gpu/TexShader.cpp:
1948         (WebCore::TexShader::use):
1949         Use vec2s instead of vec3s for all vertex data.
1950
1951 2011-03-31  David Hyatt  <hyatt@apple.com>
1952
1953         Reviewed by Simon Fraser.
1954
1955         https://bugs.webkit.org/show_bug.cgi?id=57565
1956
1957         Optimize overflow computations on lines to avoid allocating RenderOverflows in nearly all cases and to avoid even having
1958         to check the line for overflow in the first place.
1959         
1960         For the purposes of overflow computation, an inline object's default containment box for overflow is now assumed to extend
1961         all the way from lineTop to lineBottom instead of snugly fitting the inline object's own block dimensions. This allows
1962         replaced objects to be inside spans without triggering overflow allocation.
1963         
1964         The overflow accessors on InlineFlowBox have been changed to require passing in the lineTop and lineBottom so that the block
1965         dimensions can be forced to those values. Because these values are checked during painting and hit testing of lines, the
1966         lineTop and lineBottom are now passed as arguments to the painting and hit testing functions to avoid repeatedly crawling
1967         back up to the root box to fetch them.
1968         
1969         Added a new boolean flag to all InlineBoxes, knownToHaveNoOverflow(), and optimized for common cases where no overflow can
1970         possibly be present.  When the bit is set, computeOverflow will just immediately return.
1971  
1972         This change speeds up line layout by ~10%.
1973
1974         * rendering/EllipsisBox.cpp:
1975         (WebCore::EllipsisBox::paint):
1976         (WebCore::EllipsisBox::nodeAtPoint):
1977         * rendering/EllipsisBox.h:
1978         * rendering/InlineBox.cpp:
1979         (WebCore::InlineBox::paint):
1980         (WebCore::InlineBox::nodeAtPoint):
1981         (WebCore::InlineBox::clearKnownToHaveNoOverflow):
1982         * rendering/InlineBox.h:
1983         (WebCore::InlineBox::InlineBox):
1984         (WebCore::InlineBox::logicalFrameRect):
1985         (WebCore::InlineBox::knownToHaveNoOverflow):
1986         * rendering/InlineFlowBox.cpp:
1987         (WebCore::InlineFlowBox::addToLine):
1988         (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
1989         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
1990         (WebCore::InlineFlowBox::addBoxShadowVisualOverflow):
1991         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
1992         (WebCore::InlineFlowBox::addReplacedChildOverflow):
1993         (WebCore::InlineFlowBox::computeOverflow):
1994         (WebCore::InlineFlowBox::setLayoutOverflow):
1995         (WebCore::InlineFlowBox::setVisualOverflow):
1996         (WebCore::InlineFlowBox::setOverflowFromLogicalRects):
1997         (WebCore::InlineFlowBox::nodeAtPoint):
1998         (WebCore::InlineFlowBox::paint):
1999         * rendering/InlineFlowBox.h:
2000         (WebCore::InlineFlowBox::layoutOverflowRect):
2001         (WebCore::InlineFlowBox::logicalLeftLayoutOverflow):
2002         (WebCore::InlineFlowBox::logicalRightLayoutOverflow):
2003         (WebCore::InlineFlowBox::logicalTopLayoutOverflow):
2004         (WebCore::InlineFlowBox::logicalBottomLayoutOverflow):
2005         (WebCore::InlineFlowBox::logicalLayoutOverflowRect):
2006         (WebCore::InlineFlowBox::visualOverflowRect):
2007         (WebCore::InlineFlowBox::logicalLeftVisualOverflow):
2008         (WebCore::InlineFlowBox::logicalRightVisualOverflow):
2009         (WebCore::InlineFlowBox::logicalTopVisualOverflow):
2010         (WebCore::InlineFlowBox::logicalBottomVisualOverflow):
2011         (WebCore::InlineFlowBox::logicalVisualOverflowRect):
2012         (WebCore::InlineFlowBox::frameRectIncludingLineHeight):
2013         (WebCore::InlineFlowBox::logicalFrameRectIncludingLineHeight):
2014         * rendering/InlineTextBox.cpp:
2015         (WebCore::InlineTextBox::nodeAtPoint):
2016         (WebCore::InlineTextBox::paint):
2017         * rendering/InlineTextBox.h:
2018         * rendering/RenderBlock.cpp:
2019         (WebCore::RenderBlock::simplifiedNormalFlowLayout):
2020         (WebCore::RenderBlock::paintEllipsisBoxes):
2021         (WebCore::RenderBlock::adjustLinePositionForPagination):
2022         * rendering/RenderBlock.h:
2023         * rendering/RenderBlockLineLayout.cpp:
2024         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine):
2025         (WebCore::RenderBlock::layoutInlineChildren):
2026         (WebCore::RenderBlock::determineStartPosition):
2027         (WebCore::RenderBlock::matchedEndLine):
2028         (WebCore::RenderBlock::addOverflowFromInlineChildren):
2029         * rendering/RenderBox.h:
2030         (WebCore::RenderBox::hasRenderOverflow):
2031         * rendering/RenderBoxModelObject.cpp:
2032         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2033         * rendering/RenderInline.cpp:
2034         (WebCore::RenderInline::linesVisualOverflowBoundingBox):
2035         * rendering/RenderLineBoxList.cpp:
2036         (WebCore::RenderLineBoxList::anyLineIntersectsRect):
2037         (WebCore::RenderLineBoxList::lineIntersectsDirtyRect):
2038         (WebCore::RenderLineBoxList::paint):
2039         (WebCore::RenderLineBoxList::hitTest):
2040         * rendering/RenderListItem.cpp:
2041         (WebCore::RenderListItem::positionListMarker):
2042         * rendering/RootInlineBox.cpp:
2043         (WebCore::RootInlineBox::paintEllipsisBox):
2044         (WebCore::RootInlineBox::addHighlightOverflow):
2045         (WebCore::RootInlineBox::paint):
2046         (WebCore::RootInlineBox::nodeAtPoint):
2047         (WebCore::RootInlineBox::paddedLayoutOverflowRect):
2048         * rendering/RootInlineBox.h:
2049         (WebCore::RootInlineBox::logicalTopVisualOverflow):
2050         (WebCore::RootInlineBox::logicalBottomVisualOverflow):
2051         (WebCore::RootInlineBox::logicalTopLayoutOverflow):
2052         (WebCore::RootInlineBox::logicalBottomLayoutOverflow):
2053         * rendering/svg/SVGInlineFlowBox.cpp:
2054         (WebCore::SVGInlineFlowBox::paint):
2055         * rendering/svg/SVGInlineFlowBox.h:
2056         * rendering/svg/SVGInlineTextBox.cpp:
2057         (WebCore::SVGInlineTextBox::paint):
2058         * rendering/svg/SVGInlineTextBox.h:
2059         * rendering/svg/SVGRootInlineBox.cpp:
2060         (WebCore::SVGRootInlineBox::paint):
2061         * rendering/svg/SVGRootInlineBox.h:
2062
2063 2011-03-31  Pavel Feldman  <pfeldman@chromium.org>
2064
2065         Reviewed by Yury Semikhatsky.
2066
2067         Web Inspector: disable properties abbreviation.
2068         https://bugs.webkit.org/show_bug.cgi?id=57525
2069
2070         * inspector/InjectedScript.cpp:
2071         (WebCore::InjectedScript::getProperties):
2072         * inspector/InjectedScript.h:
2073         * inspector/InjectedScriptSource.js:
2074         (.):
2075         ():
2076         * inspector/Inspector.json:
2077         * inspector/InspectorRuntimeAgent.cpp:
2078         (WebCore::InspectorRuntimeAgent::getProperties):
2079         * inspector/InspectorRuntimeAgent.h:
2080         * inspector/front-end/ConsoleView.js:
2081         (WebInspector.ConsoleView.prototype.completions.evaluated):
2082         (WebInspector.ConsoleView.prototype._formatarray):
2083         * inspector/front-end/ObjectPropertiesSection.js:
2084         (WebInspector.ObjectPropertiesSection.prototype.update.callback):
2085         (WebInspector.ObjectPropertiesSection.prototype.update):
2086         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
2087         (WebInspector.ObjectPropertyTreeElement.prototype.update):
2088         (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
2089         * inspector/front-end/PropertiesSidebarPane.js:
2090         (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
2091         * inspector/front-end/RemoteObject.js:
2092         (WebInspector.RemoteObject.prototype.getOwnProperties):
2093         (WebInspector.RemoteObject.prototype.getAllProperties):
2094         (WebInspector.RemoteObject.prototype._getProperties):
2095         (WebInspector.LocalJSONObject.prototype.getOwnProperties):
2096         (WebInspector.LocalJSONObject.prototype.getAllProperties):
2097         * inspector/front-end/inspector.css:
2098         (.console-formatted-string, .console-formatted-regexp):
2099
2100 2011-03-31  Adam Roben  <aroben@apple.com>
2101
2102         Update WKCACFViewLayerTreeHost for changes to WKCACFView API
2103
2104         This should not result in any change in behavior.
2105
2106         Fixes <http://webkit.org/b/57560> WKCACFViewLayerTreeHost needs to tell WKCACFView where to
2107         render
2108
2109         Reviewed by Darin Adler.
2110
2111         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp: Updated API declarations.
2112         (WebCore::WKCACFViewLayerTreeHost::WKCACFViewLayerTreeHost): Tell WKCACFView it should
2113         render into the window we give it.
2114
2115 2011-03-31  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
2116
2117         Reviewed by Kenneth Rohde Christiansen.
2118
2119         [Qt] Properly detect phonon include, and avoid double qtLibraryTarget() call
2120         https://bugs.webkit.org/show_bug.cgi?id=57017
2121
2122         Build fix. No new tests.
2123
2124         * WebCore.pri:
2125
2126 2011-03-31  Vsevolod Vlasov  <vsevik@chromium.org>
2127
2128         Reviewed by Pavel Feldman.
2129
2130         XML viewer is not shown when frame has non-null opener
2131         https://bugs.webkit.org/show_bug.cgi?id=56384
2132
2133         Removed opener check in XML viewer
2134
2135         Test: http/tests/xmlviewer/extensions-api.html
2136
2137         * xml/XMLTreeViewer.cpp:
2138         (WebCore::XMLTreeViewer::hasNoStyleInformation):
2139         * xml/XMLViewer.js:
2140
2141 2011-03-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2142
2143         Unreviewed, rolling out r82589.
2144         http://trac.webkit.org/changeset/82589
2145         https://bugs.webkit.org/show_bug.cgi?id=57564
2146
2147         This patch requires many more updated results than it contains
2148         (Requested by abarth|gardener on #webkit).
2149
2150         * css/CSSSelector.cpp:
2151         (WebCore::CSSSelector::pseudoId):
2152         (WebCore::nameToPseudoTypeMap):
2153         (WebCore::CSSSelector::extractPseudoType):
2154         * css/CSSSelector.h:
2155         * css/html.css:
2156         (meter::-webkit-meter-horizontal-bar):
2157         (meter::-webkit-meter-vertical-bar):
2158         (meter::-webkit-meter-horizontal-optimum-value):
2159         (meter::-webkit-meter-horizontal-suboptimal-value):
2160         (meter::-webkit-meter-horizontal-even-less-good-value):
2161         (meter::-webkit-meter-vertical-optimum-value):
2162         (meter::-webkit-meter-vertical-suboptimal-value):
2163         (meter::-webkit-meter-vertical-even-less-good-value):
2164         * rendering/RenderMeter.cpp:
2165         (WebCore::MeterPartElement::MeterPartElement):
2166         (WebCore::MeterPartElement::createForPart):
2167         (WebCore::MeterPartElement::hide):
2168         (WebCore::MeterPartElement::restoreVisibility):
2169         (WebCore::MeterPartElement::updateStyleForPart):
2170         (WebCore::MeterPartElement::saveVisibility):
2171         (WebCore::RenderMeter::~RenderMeter):
2172         (WebCore::RenderMeter::createPart):
2173         (WebCore::RenderMeter::updateFromElement):
2174         (WebCore::RenderMeter::layoutParts):
2175         (WebCore::RenderMeter::shouldHaveParts):
2176         (WebCore::RenderMeter::valuePartRect):
2177         (WebCore::RenderMeter::orientation):
2178         (WebCore::RenderMeter::valuePseudoId):
2179         (WebCore::RenderMeter::barPseudoId):
2180         * rendering/RenderMeter.h:
2181         (WebCore::RenderMeter::shadowAttached):
2182         * rendering/RenderTheme.cpp:
2183         (WebCore::RenderTheme::supportsMeter):
2184         * rendering/RenderTheme.h:
2185         * rendering/RenderThemeMac.h:
2186         * rendering/RenderThemeMac.mm:
2187         (WebCore::RenderThemeMac::paintMeter):
2188         (WebCore::RenderThemeMac::supportsMeter):
2189         * rendering/style/RenderStyleConstants.h:
2190
2191 2011-03-31  Xan Lopez  <xlopez@igalia.com>
2192
2193         Reviewed by Martin Robinson.
2194
2195         [GTK] Link explicitly with XRender on Linux/Unix
2196         https://bugs.webkit.org/show_bug.cgi?id=57558
2197
2198         * GNUmakefile.am: add XRender CFLAGS.
2199
2200 2011-03-31  Eric Seidel  <eric@webkit.org>
2201
2202         Reviewed by Ryosuke Niwa.
2203
2204         Rename BidiResolver::emptyRun to m_emtpyRun to match modern style
2205         https://bugs.webkit.org/show_bug.cgi?id=57549
2206
2207         * platform/text/BidiResolver.h:
2208         (WebCore::BidiResolver::BidiResolver):
2209         (WebCore::::appendRun):
2210         (WebCore::::lowerExplicitEmbeddingLevel):
2211         (WebCore::::raiseExplicitEmbeddingLevel):
2212         (WebCore::::deleteRuns):
2213         (WebCore::::createBidiRunsForLine):
2214         * rendering/InlineIterator.h:
2215         (WebCore::InlineBidiResolver::appendRun):
2216
2217 2011-03-31  Tom Sepez  <tsepez@chromium.org>
2218
2219         Reviewed by Eric Seidel.
2220
2221         Make ContainerNode::insertIntoDocument() collect all nodes before
2222         operating on any of them.  Add small helper function and use it
2223         througout the file where this action is already taking place.
2224         https://bugs.webkit.org/show_bug.cgi?id=57265
2225         
2226         Test: svg/dom/range-delete.html
2227
2228         * dom/ContainerNode.cpp:
2229         (WebCore::collectNodes):
2230         (WebCore::collectTargetNodes):
2231         (WebCore::ContainerNode::takeAllChildrenFrom):
2232         (WebCore::willRemoveChildren):
2233         (WebCore::ContainerNode::insertedIntoDocument):
2234
2235 2011-03-31  Satish Sampath  <satish@chromium.org>
2236
2237         Reviewed by Steve Block.
2238
2239         While drawing a speech input button, validate that the node is really a speech input button.
2240         https://bugs.webkit.org/show_bug.cgi?id=57469
2241
2242         Test: fast/speech/speech-style-on-non-speech-elements.html
2243
2244         * dom/Element.h:
2245         (WebCore::Element::isInputFieldSpeechButtonElement):
2246         * html/shadow/TextControlInnerElements.h:
2247         (WebCore::InputFieldSpeechButtonElement::isInputFieldSpeechButtonElement):
2248         (WebCore::toInputFieldSpeechButtonElement):
2249         * rendering/RenderInputSpeech.cpp:
2250         (WebCore::RenderInputSpeech::paintInputFieldSpeechButton):
2251
2252 2011-03-31  Ryosuke Niwa  <rniwa@webkit.org>
2253
2254         Build fix after r82588. Reverted unintentional change.
2255
2256         * editing/SelectionController.cpp:
2257         (WebCore::SelectionController::modifyMovingLeft):
2258
2259 2011-03-31  Mario Sanchez Prada  <msanchez@igalia.com>
2260
2261         Reviewed by Xan Lopez.
2262
2263         [GTK] Warnings happening because of unhandled switch cases in AccessibilityObjectWrapperAtk
2264         https://bugs.webkit.org/show_bug.cgi?id=57534
2265
2266         Fix compilation warnings.
2267
2268         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2269         (getAttributeSetForAccessibilityObject): Add unhandled cases.
2270
2271 2011-03-30  Pavel Podivilov  <podivilov@chromium.org>
2272
2273         Reviewed by Pavel Feldman.
2274
2275         Web Inspector: remove unnecessary newBody output parameter from editScriptSource protocol method.
2276         https://bugs.webkit.org/show_bug.cgi?id=57444
2277
2278         * bindings/js/ScriptDebugServer.cpp:
2279         (WebCore::ScriptDebugServer::editScriptSource):
2280         * bindings/js/ScriptDebugServer.h:
2281         * bindings/v8/ScriptDebugServer.cpp:
2282         (WebCore::ScriptDebugServer::editScriptSource):
2283         * bindings/v8/ScriptDebugServer.h:
2284         * inspector/Inspector.json:
2285         * inspector/InspectorDebuggerAgent.cpp:
2286         (WebCore::InspectorDebuggerAgent::editScriptSource):
2287         * inspector/InspectorDebuggerAgent.h:
2288         * inspector/front-end/DebuggerModel.js:
2289         (WebInspector.DebuggerModel.prototype.editScriptSource):
2290         (WebInspector.DebuggerModel.prototype._didEditScriptSource):
2291         * inspector/front-end/DebuggerPresentationModel.js:
2292         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource.didEditScriptSource):
2293         (WebInspector.DebuggerPresentationModel.prototype.editScriptSource):
2294         * inspector/front-end/SourceFrame.js:
2295         (WebInspector.SourceFrame.prototype._handleSave.didEditScriptSource):
2296         (WebInspector.SourceFrame.prototype._handleSave):
2297
2298 2011-03-30  MORITA Hajime <morrita@google.com>
2299
2300         Reviewed by Dimitri Glazkov.
2301
2302         <meter> can only support horizontal indicator
2303         https://bugs.webkit.org/show_bug.cgi?id=56001
2304
2305         - Removed code which deals with the direction and
2306           left the horizontal path.
2307         - Removed "horizontal" from related names which is now
2308           redundant.
2309         
2310         * css/CSSSelector.cpp:
2311         (WebCore::CSSSelector::pseudoId):
2312         (WebCore::nameToPseudoTypeMap):
2313         (WebCore::CSSSelector::extractPseudoType):
2314         * css/CSSSelector.h:
2315         * css/html.css:
2316         (meter::-webkit-meter-bar):
2317         (meter::-webkit-meter-optimum-value):
2318         (meter::-webkit-meter-suboptimal-value):
2319         (meter::-webkit-meter-even-less-good-value):
2320         * rendering/RenderMeter.cpp:
2321         (WebCore::RenderMeter::~RenderMeter):
2322         (WebCore::RenderMeter::createPart):
2323         (WebCore::RenderMeter::updateFromElement):
2324         (WebCore::RenderMeter::layoutParts):
2325         (WebCore::RenderMeter::styleDidChange):
2326         (WebCore::RenderMeter::shouldHaveParts):
2327         (WebCore::RenderMeter::valuePartRect):
2328         (WebCore::RenderMeter::valuePseudoId):
2329         (WebCore::RenderMeter::barPseudoId):
2330         (WebCore::RenderMeter::detachShadows):
2331         (WebCore::RenderMeter::updateShadows):
2332         * rendering/RenderMeter.h:
2333         (WebCore::RenderMeter::shadowAttached):
2334         * rendering/RenderTheme.cpp:
2335         (WebCore::RenderTheme::supportsMeter):
2336         * rendering/RenderTheme.h:
2337         * rendering/RenderThemeMac.h:
2338         * rendering/RenderThemeMac.mm:
2339         (WebCore::RenderThemeMac::paintMeter):
2340         (WebCore::RenderThemeMac::supportsMeter):
2341         * rendering/style/RenderStyleConstants.h:
2342
2343 2011-03-30  Xiaomei Ji  <xji@chromium.org>
2344
2345         Reviewed by Ryosuke Niwa.
2346
2347         Experiment with moving caret by word in visual order.
2348         https://bugs.webkit.org/show_bug.cgi?id=57336
2349
2350         Follow Firefox's convention in Windows, 
2351         In LTR block, word break visually moves cursor to the left boundary of words,
2352         In RTL block, word break visually moves cursor to the right boundary of words.
2353
2354         This is the 1st version of implementing "move caret by word in visual order".
2355         It only works in the following situation:
2356         1. For a LTR box in a LTR block or a RTL box in RTL block, 
2357         when caret is at the left boundary of the box and we are looking for 
2358         the word boundary in right.
2359         2. For a LTR or RTL box in a LTR block, when caret is at the left boundary
2360         of the box and we are looking for the word boundary in left and 
2361         previous box is a LTR box.
2362         3. For a LTR or RTL box in a RTL block, when the caret is at the right 
2363         boundary of the box and we are looking for the word boundary in right and next box is RTL box.
2364
2365         An experimental granularity is introduced, as a side effect, functions having switch statements
2366         to handle those granularities have to add more one case to handle this new granularity.
2367         The experimental granularity is exposed though JS by '-webkit-visual-word".
2368
2369         The overall algorithm is looping through inline boxes visually and looking
2370         for the visually nearest word break position. 
2371
2372         Test: editing/selection/move-by-word-visually.html
2373
2374         * editing/SelectionController.cpp:
2375         (WebCore::SelectionController::modifyExtendingRight):
2376         (WebCore::SelectionController::modifyExtendingForward):
2377         (WebCore::SelectionController::modifyMovingRight):
2378         (WebCore::SelectionController::modifyMovingForward):
2379         (WebCore::SelectionController::modifyExtendingLeft):
2380         (WebCore::SelectionController::modifyExtendingBackward):
2381         (WebCore::SelectionController::modifyMovingLeft):
2382         (WebCore::SelectionController::modifyMovingBackward):
2383         * editing/TextGranularity.h:
2384         * editing/VisibleSelection.cpp:
2385         (WebCore::VisibleSelection::setStartAndEndFromBaseAndExtentRespectingGranularity):
2386         * editing/visible_units.cpp:
2387         (WebCore::previousWordBreakInBoxInsideBlockWithSameDirectionality):
2388         (WebCore::wordBoundaryInBox):
2389         (WebCore::wordBoundaryInAdjacentBoxes):
2390         (WebCore::leftWordBoundary):
2391         (WebCore::rightWordBoundary):
2392         (WebCore::leftWordPosition):
2393         (WebCore::rightWordPosition):
2394         * editing/visible_units.h:
2395         * page/DOMSelection.cpp:
2396         (WebCore::DOMSelection::modify):
2397
2398 2011-03-31  Dimitri Glazkov  <dglazkov@chromium.org>
2399
2400         Reviewed by Darin Adler.
2401
2402         Move coordinate-computing logic into MouseRelatedEvent.
2403         https://bugs.webkit.org/show_bug.cgi?id=57521
2404
2405         Refactoring, covered by existing tests.
2406
2407         * dom/EventDispatcher.cpp:
2408         (WebCore::EventDispatcher::dispatchWheelEvent): Yank calculation of
2409             coordinates out.
2410         (WebCore::EventDispatcher::dispatchMouseEvent): Ditto.
2411         * dom/MouseEvent.cpp:
2412         (WebCore::MouseEvent::create): Add coordinate-computing logic.
2413         * dom/MouseEvent.h: Adjust decl to reflect new meaning of params.
2414         * dom/MouseRelatedEvent.cpp:
2415         (WebCore::MouseRelatedEvent::MouseRelatedEvent): Ditto.
2416         * page/EventHandler.cpp:
2417         (WebCore::EventHandler::dispatchDragEvent): Ditto.
2418
2419 2011-03-30  Alexander Pavlov  <apavlov@chromium.org>
2420
2421         Reviewed by Pavel Feldman.
2422
2423         Web Inspector: document CSS agent.
2424         https://bugs.webkit.org/show_bug.cgi?id=57435
2425
2426         * inspector/Inspector.json:
2427
2428 2011-03-31  Andrey Kosyakov  <caseq@chromium.org>
2429
2430         Reviewed by Yury Semikhatsky.
2431
2432         Web Inspector: remove periods at the end of error messages
2433         https://bugs.webkit.org/show_bug.cgi?id=57544
2434
2435         * inspector/InjectedScript.cpp:
2436         (WebCore::InjectedScript::getProperties):
2437         (WebCore::InjectedScript::makeObjectCall):
2438         * inspector/InspectorCSSAgent.cpp:
2439         (WebCore::InspectorCSSAgent::elementForId):
2440         (WebCore::InspectorCSSAgent::styleSheetForId):
2441         * inspector/InspectorDOMAgent.cpp:
2442         (WebCore::InspectorDOMAgent::assertNode):
2443         (WebCore::InspectorDOMAgent::assertElement):
2444         (WebCore::InspectorDOMAgent::assertHTMLElement):
2445         (WebCore::InspectorDOMAgent::querySelector):
2446         (WebCore::InspectorDOMAgent::querySelectorAll):
2447         (WebCore::InspectorDOMAgent::setAttribute):
2448         (WebCore::InspectorDOMAgent::removeAttribute):
2449         (WebCore::InspectorDOMAgent::removeNode):
2450         (WebCore::InspectorDOMAgent::setNodeValue):
2451         * inspector/InspectorDebuggerAgent.cpp:
2452         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
2453         * inspector/InspectorResourceAgent.cpp:
2454         (WebCore::InspectorResourceAgent::resourceContent):
2455         (WebCore::InspectorResourceAgent::resourceContentBase64):
2456         (WebCore::InspectorResourceAgent::getResourceContent):
2457         * inspector/InspectorRuntimeAgent.cpp:
2458         (WebCore::InspectorRuntimeAgent::setPropertyValue):
2459
2460 2011-03-31  Evan Martin  <evan@chromium.org>
2461
2462         Reviewed by Eric Seidel.
2463
2464         <title> should support dir attribute
2465         https://bugs.webkit.org/show_bug.cgi?id=50961
2466
2467         Introduce a new StringWithDirection object that carries a String along
2468         with the TextDirection associated with the String.  Use this object for
2469         document titles used within WebCore, because in HTML the direction of
2470         a title can be set with the 'dir' attribute.
2471
2472         Put FIXMEs at the WebKit level to expose the new direction information
2473         to clients.
2474
2475         No behavioral change intended, so no new tests.  A follow-up will expose
2476         the title direction and hopefully can be accompanied by tests that
2477         verify it is correct.
2478
2479         * dom/Document.cpp:
2480         (WebCore::Document::Document):
2481         (WebCore::Document::updateTitle):
2482         (WebCore::Document::setTitle):
2483         (WebCore::Document::removeTitle):
2484         * dom/Document.h:
2485         (WebCore::Document::title):
2486         * html/HTMLTitleElement.cpp:
2487         (WebCore::HTMLTitleElement::HTMLTitleElement):
2488         (WebCore::HTMLTitleElement::childrenChanged):
2489         (WebCore::HTMLTitleElement::text):
2490         (WebCore::HTMLTitleElement::textWithDirection):
2491         * html/HTMLTitleElement.h:
2492         * loader/DocumentLoader.cpp:
2493         (WebCore::DocumentLoader::setTitle):
2494         * loader/DocumentLoader.h:
2495         (WebCore::DocumentLoader::title):
2496         * loader/EmptyClients.h:
2497         (WebCore::EmptyFrameLoaderClient::dispatchDidReceiveTitle):
2498         (WebCore::EmptyFrameLoaderClient::setTitle):
2499         * loader/FrameLoader.cpp:
2500         (WebCore::FrameLoader::receivedFirstData):
2501         (WebCore::FrameLoader::commitProvisionalLoad):
2502         (WebCore::FrameLoader::setTitle):
2503         * loader/FrameLoader.h:
2504         * loader/FrameLoaderClient.h:
2505         * loader/HistoryController.cpp:
2506         (WebCore::HistoryController::updateForBackForwardNavigation):
2507         (WebCore::HistoryController::updateForReload):
2508         (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList):
2509         (WebCore::HistoryController::updateForClientRedirect):
2510         (WebCore::HistoryController::updateForCommit):
2511         (WebCore::HistoryController::setCurrentItemTitle):
2512         (WebCore::HistoryController::initializeItem):
2513         * loader/HistoryController.h:
2514         * platform/text/StringWithDirection.h: Added.
2515         (WebCore::StringWithDirection::StringWithDirection):
2516         (WebCore::StringWithDirection::operator==):
2517         (WebCore::StringWithDirection::operator!=):
2518         * svg/SVGTitleElement.cpp:
2519         (WebCore::SVGTitleElement::insertedIntoDocument):
2520         (WebCore::SVGTitleElement::childrenChanged):
2521
2522 2011-03-31  Alexander Pavlov  <apavlov@chromium.org>
2523
2524         Reviewed by Yury Semikhatsky.
2525
2526         Web Inspector: CSS domain - make a "range" object, get rid of "properties" object for Style objects
2527         https://bugs.webkit.org/show_bug.cgi?id=57538
2528
2529         * inspector/InspectorStyleSheet.cpp:
2530         (WebCore::buildSourceRangeObject):
2531         (WebCore::InspectorStyle::buildObjectForStyle):
2532         (WebCore::InspectorStyle::populateObjectWithStyleProperties):
2533         * inspector/front-end/AuditRules.js:
2534         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.selectorsCallback):
2535         * inspector/front-end/CSSStyleModel.js:
2536         (WebInspector.CSSStyleDeclaration):
2537
2538 2011-03-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2539
2540         Unreviewed, rolling out r82565.
2541         http://trac.webkit.org/changeset/82565
2542         https://bugs.webkit.org/show_bug.cgi?id=57541
2543
2544         Caused assertion failures. (Requested by bbandix on #webkit).
2545
2546         * platform/graphics/filters/FEFlood.cpp:
2547         (WebCore::FEFlood::setFloodColor):
2548         (WebCore::FEFlood::setFloodOpacity):
2549         * platform/graphics/filters/FEFlood.h:
2550         * platform/graphics/filters/FESpecularLighting.cpp:
2551         (WebCore::FESpecularLighting::setLightingColor):
2552         * platform/graphics/filters/FESpecularLighting.h:
2553         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
2554         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
2555         * rendering/svg/SVGResourcesCache.cpp:
2556         (WebCore::SVGResourcesCache::clientStyleChanged):
2557         * svg/SVGFEDiffuseLightingElement.cpp:
2558         (WebCore::SVGFEDiffuseLightingElement::setFilterEffectAttribute):
2559         * svg/SVGFEFloodElement.cpp:
2560         * svg/SVGFEFloodElement.h:
2561         * svg/SVGFESpecularLightingElement.cpp:
2562         (WebCore::SVGFESpecularLightingElement::setFilterEffectAttribute):
2563
2564 2011-03-31  Renata Hodovan  <reni@webkit.org>
2565
2566         Reviewed by Dirk Schulze.
2567
2568         CSS related SVG*Element changes doesn't require relayout
2569         https://bugs.webkit.org/show_bug.cgi?id=56906
2570
2571         The changes of some CSS related SVGFilter properties e.g. lighting-color, flood-color, flood-opacity
2572         need only repaint. To avoid the default invalidation of filters in SVGResourceCache::clientStyleChange()
2573         we need an early return. So RenderSVGResourceFilterPrimitive::styleDidChange() can handle these properties
2574         via RenderSVGResourceFilter::primitiveAttributeChanged() the same way like we do it for the other SVGAttributes.
2575
2576         Tests: svg/dynamic-updates/SVGFEDiffuseLightingElement-inherit-lighting-color-css-prop.html
2577                svg/dynamic-updates/SVGFEFloodElement-inherit-flood-color.html
2578                svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop.html
2579                svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop.html
2580
2581         * platform/graphics/filters/FEFlood.cpp:
2582         (WebCore::FEFlood::setFloodColor):
2583         (WebCore::FEFlood::setFloodOpacity):
2584         * platform/graphics/filters/FEFlood.h:
2585         * platform/graphics/filters/FESpecularLighting.cpp:
2586         (WebCore::FESpecularLighting::setLightingColor):
2587         * platform/graphics/filters/FESpecularLighting.h:
2588         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
2589         (WebCore::RenderSVGResourceFilterPrimitive::styleDidChange):
2590         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
2591         * rendering/svg/SVGResourcesCache.cpp:
2592         (WebCore::SVGResourcesCache::clientStyleChanged):
2593         * svg/SVGFEDiffuseLightingElement.cpp:
2594         (WebCore::SVGFEDiffuseLightingElement::setFilterEffectAttribute):
2595         * svg/SVGFEFloodElement.cpp:
2596         (WebCore::SVGFEFloodElement::setFilterEffectAttribute):
2597         * svg/SVGFEFloodElement.h:
2598         * svg/SVGFESpecularLightingElement.cpp:
2599         (WebCore::SVGFESpecularLightingElement::setFilterEffectAttribute):
2600
2601 2011-03-29  Vsevolod Vlasov  <vsevik@chromium.org>
2602
2603         Reviewed by Pavel Feldman.
2604
2605         XML Viewer: declared namespaces are not rendered.
2606         https://bugs.webkit.org/show_bug.cgi?id=56262
2607
2608         XML viewer rewritten on javascript.
2609
2610         * CMakeLists.txt:
2611         * DerivedSources.make:
2612         * GNUmakefile.am:
2613         * WebCore.gyp/WebCore.gyp:
2614         * WebCore.gypi:
2615         * WebCore.vcproj/WebCore.vcproj:
2616         * WebCore.xcodeproj/project.pbxproj:
2617         * dom/XMLDocumentParserLibxml2.cpp:
2618         (WebCore::XMLDocumentParser::doEnd):
2619         * xml/XMLTreeViewer.cpp:
2620         (WebCore::XMLTreeViewer::transformDocumentToTreeView):
2621         * xml/XMLViewer.css: Added.
2622         * xml/XMLViewer.js: Added.
2623         * xml/XMLViewer.xsl: Removed.
2624         * xml/XSLStyleSheet.h:
2625
2626 2011-03-31  Jaehun Lim  <ljaehun.lim@samsung.com>
2627
2628         Unreviewed build fix.
2629
2630         Fix build break after rolling out r82496
2631         https://bugs.webkit.org/show_bug.cgi?id=57536
2632
2633         * platform/efl/RenderThemeEfl.cpp:
2634
2635 2011-03-31  Andrey Adaikin  <aandrey@google.com>
2636
2637         Reviewed by Pavel Feldman.
2638
2639         Web Inspector: execution line is displayed incorrectly after source editing.
2640         https://bugs.webkit.org/show_bug.cgi?id=57229
2641
2642         * inspector/front-end/SourceFrame.js:
2643         (WebInspector.SourceFrame.prototype._saveViewerState):
2644         (WebInspector.SourceFrame.prototype._restoreViewerState):
2645         (WebInspector.SourceFrame.prototype._startEditing):
2646         (WebInspector.SourceFrame.prototype._endEditing):
2647         (WebInspector.SourceFrame.prototype._createTextViewer):
2648         (WebInspector.SourceFrame.prototype.setExecutionLine):
2649         (WebInspector.SourceFrame.prototype._handleSave.didEditScriptSource):
2650         (WebInspector.SourceFrame.prototype._handleSave):
2651         (WebInspector.SourceFrame.prototype._handleRevertEditing):
2652         * inspector/front-end/TextViewer.js:
2653         (WebInspector.TextEditorChunkedPanel.prototype.addDecoration):
2654         (WebInspector.TextEditorChunkedPanel.prototype.removeDecoration):
2655         (WebInspector.TextEditorMainPanel.prototype.makeLineAChunk):
2656         (WebInspector.TextEditorMainPanel.prototype._positionToSelection):
2657
2658 2011-03-30  Alexander Pavlov  <apavlov@chromium.org>
2659
2660         Reviewed by Pavel Feldman.
2661
2662         Web Inspector: Make the CSStyle "shorthandValues" name-value map an array
2663         https://bugs.webkit.org/show_bug.cgi?id=57452
2664
2665         No new tests, as this is a refactoring.
2666
2667         * inspector/InspectorCSSAgent.cpp:
2668         * inspector/InspectorStyleSheet.cpp:
2669         (WebCore::InspectorStyle::populateObjectWithStyleProperties):
2670         * inspector/front-end/CSSStyleModel.js:
2671         (WebInspector.CSSStyleDeclaration):
2672         (WebInspector.CSSStyleDeclaration.buildShorthandValueMap):
2673
2674 2011-03-30  Steve Block  <steveblock@google.com>
2675
2676         Reviewed by Jeremy Orlow.
2677
2678         JavaField should not expose JavaString in its API
2679         https://bugs.webkit.org/show_bug.cgi?id=55766
2680
2681         This patch fixes JavaField for V8 only.
2682         - Factors out a JavaField interface which does not use JNI types.
2683           This will allow the Java bridge to be used with objects that
2684           don't use JNI directly. The existing jobject-backed
2685           implementation is moved to a new JavaFieldJobject class which
2686           implements the interface.
2687         - Use WTF::String in place of JavaString in the API, as JavaString
2688           exposes JNI types in its interface.
2689
2690         No new tests, refactoring only.
2691
2692         * Android.v8bindings.mk:
2693         * WebCore.gypi:
2694         * bridge/jni/JavaMethod.h:
2695         (JSC::Bindings::JavaMethod::~JavaMethod):
2696         * bridge/jni/JobjectWrapper.h:
2697         * bridge/jni/v8/JavaClassV8.cpp:
2698         (JavaClass::JavaClass):
2699         * bridge/jni/v8/JavaFieldJobjectV8.cpp:
2700         (JavaFieldJobject::JavaFieldJobject):
2701         * bridge/jni/v8/JavaFieldJobjectV8.h:
2702         (JSC::Bindings::JavaFieldJobject::name):
2703         (JSC::Bindings::JavaFieldJobject::typeClassName):
2704         (JSC::Bindings::JavaFieldJobject::type):
2705         * bridge/jni/v8/JavaFieldV8.h:
2706         (JSC::Bindings::JavaField::~JavaField):
2707         * bridge/jni/v8/JavaInstanceV8.cpp:
2708         (JavaInstance::getField):
2709
2710 2011-03-31  Levi Weintraub  <leviw@chromium.org>
2711
2712         Reviewed by Ryosuke Niwa.
2713
2714         Clean up from r82447.
2715         https://bugs.webkit.org/attachment.cgi?bugid=57532
2716
2717         No new tests since this doesn't change behavior.
2718
2719         * rendering/RenderBlock.cpp: Removing unnecessary visible_units.h include.
2720         * rendering/RootInlineBox.cpp:
2721         (WebCore::RootInlineBox::getLogicalStartBoxWithNode): Making const.
2722         (WebCore::RootInlineBox::getLogicalEndBoxWithNode): Ditto.
2723         * rendering/RootInlineBox.h:
2724
2725 2011-03-31  Benjamin Kalman  <kalman@chromium.org>
2726
2727         Reviewed by Ojan Vafai.
2728
2729         DeleteSelectionCommand::removeNode tries to insert block placeholder in non-editable table cell positions
2730         https://bugs.webkit.org/show_bug.cgi?id=57079
2731
2732         Test: editing/execCommand/delete-table-with-empty-contents.html
2733
2734         This bug results in an ASSERT fail in CompositeEditCommand::insertNodeAt, so is only observable in debug builds
2735         of WebKit.
2736
2737         * editing/DeleteSelectionCommand.cpp:
2738         (WebCore::firstEditablePositionInNode):
2739         (WebCore::DeleteSelectionCommand::removeNode): Use firstEditablePositionInNode rather than firstPositionInNode
2740         to find anchor node for the placeholder's position, if any.
2741
2742 2011-03-30  Ojan Vafai  <ojan@chromium.org>
2743
2744         Reviewed by Adam Roben.
2745
2746         REGRESSION (r82400): Leaks seen beneath CSSParser::createFloatingVectorSelector when parsing UA stylesheet
2747         https://bugs.webkit.org/show_bug.cgi?id=57478
2748
2749         * css/CSSGrammar.y:
2750         * css/CSSParser.cpp:
2751         (WebCore::CSSParser::sinkFloatingSelectorVector):
2752         * css/CSSParser.h:
2753
2754 2011-03-30  Dominic Cooney  <dominicc@google.com>
2755
2756         Reviewed by Dimitri Glazkov.
2757
2758         Adds layoutTestController.shadowRoot accessor to Mac DRT.
2759         https://bugs.webkit.org/show_bug.cgi?id=57415
2760
2761         * WebCore.exp.in: DRT needs to link WebCore::Element::shadowRoot
2762
2763 2011-03-30  Kent Tamura  <tkent@chromium.org>
2764
2765         Reviewed by Dimitri Glazkov.
2766
2767         Simplify HTMLFormElement::validateInteractively() for asynchronous scroll event
2768         https://bugs.webkit.org/show_bug.cgi?id=57424
2769
2770         r75555 made 'scroll' event asynchronous. So we don't need to worry about
2771         deleting or moving a target node in scrollIntoViewIfNeeded().
2772
2773         * html/HTMLFormElement.cpp:
2774         (WebCore::HTMLFormElement::validateInteractively): Remove unnecessary code.
2775
2776 2011-03-30  Kent Tamura  <tkent@chromium.org>
2777
2778         Reviewed by Darin Adler.
2779
2780         REGRESSION (r74895): Crash if input.type = 'file' twice
2781         https://bugs.webkit.org/show_bug.cgi?id=57343
2782
2783         * html/HTMLInputElement.cpp:
2784         (WebCore::HTMLInputElement::updateType):
2785           Don't call setAttribute() if the type is not changed.
2786
2787 2011-03-30  Jia Pu  <jpu@apple.com>
2788
2789         Reviewed by Darin Adler.
2790
2791         Autocorrection panel isn't positioned correctly in Safari (mac) when the zooming is not 1x.
2792         https://bugs.webkit.org/show_bug.cgi?id=57353
2793         <rdar://problem/9163983>
2794
2795         We use Range::textQuads() instead of Range::boundingRect() to compute the position of correction
2796         panel. The latter function compensates for zooming, which we don't need in this case. We also
2797         dismiss correction panel when zooming factor is changed. This is done in Frame::setPageAndTextZoomFactors().
2798
2799         * WebCore.exp.in:
2800         * dom/Range.cpp:
2801         (WebCore::Range::textQuads):
2802         * dom/Range.h:
2803         * editing/Editor.cpp:
2804         (WebCore::Editor::windowRectForRange):
2805         * editing/Editor.h:
2806         * page/Frame.cpp:
2807         (WebCore::Frame::setPageAndTextZoomFactors):
2808
2809 2011-03-30  Chris Guillory  <chris.guillory@google.com>
2810
2811         Reviewed by Dimitri Glazkov.
2812
2813         Render fonts using skia when requested by platform context.
2814         https://bugs.webkit.org/show_bug.cgi?id=56441
2815
2816         * platform/graphics/skia/PlatformContextSkia.cpp:
2817         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2818         * platform/graphics/skia/PlatformContextSkia.h:
2819         * platform/graphics/skia/SkiaFontWin.cpp:
2820         (WebCore::windowsCanHandleTextDrawing):
2821         (WebCore::skiaDrawText):
2822         (WebCore::setupPaintForFont):
2823         (WebCore::paintSkiaText):
2824
2825 2011-03-30  Dan Bernstein  <mitz@apple.com>
2826
2827         Reviewed by Darin Adler.
2828
2829         <rdar://problem/9199518> Crash when focusing a styled editable element
2830
2831         Test: editing/deleting/delete-button-background-image-none.html
2832
2833         * editing/DeleteButtonController.cpp:
2834         (WebCore::isDeletableElement): Check all background layers for background images.
2835         * rendering/style/RenderStyle.h: Removed backgroundImage() as it was only used, incorrectly,
2836         in the above function.
2837
2838 2011-03-30  Martin Robinson  <mrobinson@igalia.com>
2839
2840         Try once more to fix the EFL build.
2841
2842         * platform/efl/RenderThemeEfl.cpp:
2843
2844 2011-03-30  Chris Fleizach  <cfleizach@apple.com>
2845
2846         Reviewed by Darin Adler.
2847
2848         Regression: VO cursor doesn't follow KB focus back into HTML view
2849         https://bugs.webkit.org/show_bug.cgi?id=57509
2850
2851         In WK2, because the web area never believes focus leave the area, sending the initial
2852         focus change when moving back into the web area, does not trigger a notification.
2853
2854         That behavior needs to be overridden by explicitly posting a focused UI element change
2855         at the appropriate time. This is only used in WK2, hence the absence of a layout test for now.
2856
2857         * page/FocusController.cpp:
2858         (WebCore::FocusController::setInitialFocus):
2859
2860 2011-03-30  MORITA Hajime  <morrita@google.com>
2861
2862         Reviewed by Simon Fraser.
2863
2864         box-shadow radii stays the same regardless of any spread set
2865         https://bugs.webkit.org/show_bug.cgi?id=49726
2866
2867         - Removed special shadowSpread handling path
2868         - Fixed broken multple inset shadow border computation.
2869
2870         Test: fast/box-shadow/spread-multiple-inset.html
2871
2872         * rendering/RenderBoxModelObject.cpp:
2873         (WebCore::RenderBoxModelObject::paintBoxShadow):
2874
2875 2011-03-29  Matthew Delaney  <mdelaney@apple.com>
2876
2877         Reviewed by Simon Fraser.
2878
2879         Use the Accelerate vImage vectorized (un)premultiplyImageData functions for ImageBufferCG
2880
2881         https://bugs.webkit.org/show_bug.cgi?id=53134
2882
2883         Test: fast/canvas/getPutImageDataPairTest.html
2884
2885         * platform/graphics/cg/ImageBufferCG.cpp:
2886
2887 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
2888
2889         Reviewed by Adam Roben.
2890
2891         Share most vsprops between Release and Production builds in releaseproduction.vsprops
2892         https://bugs.webkit.org/show_bug.cgi?id=57508
2893
2894         * WebCore.vcproj/QTMovieWinProduction.vsprops:
2895         * WebCore.vcproj/QTMovieWinRelease.vsprops:
2896         * WebCore.vcproj/QTMovieWinReleaseCairoCFLite.vsprops:
2897         * WebCore.vcproj/WebCoreProduction.vsprops:
2898         * WebCore.vcproj/WebCoreRelease.vsprops:
2899         * WebCore.vcproj/WebCoreReleaseCairoCFLite.vsprops:
2900
2901 2011-03-30  Timur Iskhodzhanov  <timurrrr@google.com>
2902
2903         Reviewed by Alexey Proskuryakov.
2904
2905         Add some dynamic annotations to JavaScriptCore/wtf
2906         https://bugs.webkit.org/show_bug.cgi?id=53747
2907
2908         By using these annotations we can improve the precision of finding
2909         WebKit errors using dynamic analysis tools like ThreadSanitizer and Valgrind.
2910         These annotations don't affect the compiled binaries unless USE(DYNAMIC_ANNOTATIONS) is "1".
2911
2912         These files don't add new functionality, so don't need extra tests.
2913
2914         * ForwardingHeaders/wtf/DynamicAnnotations.h: Added.
2915
2916 2011-03-30  Abhishek Arya  <inferno@chromium.org>
2917
2918         Reviewed by Simon Fraser.
2919
2920         Fix wrong type assumptions in editing code. Move code
2921         from ASSERTs to hard checks.
2922         https://bugs.webkit.org/show_bug.cgi?id=57348
2923
2924         Test: editing/execCommand/remove-format-non-html-element-crash.html
2925
2926         * css/CSSStyleSelector.cpp:
2927         (WebCore::CSSStyleSelector::applyProperty):
2928         * editing/ApplyStyleCommand.cpp:
2929         (WebCore::getRGBAFontColor):
2930         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode):
2931         * editing/DeleteButtonController.cpp:
2932         (WebCore::enclosingDeletableElement):
2933         * editing/EditingStyle.cpp:
2934         (WebCore::EditingStyle::textDirection):
2935         (WebCore::EditingStyle::prepareToApplyAt):
2936         * editing/Editor.cpp:
2937         (WebCore::Editor::textDirectionForSelection):
2938         * editing/FormatBlockCommand.cpp:
2939         (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
2940
2941 2011-03-30  Stephen White  <senorblanco@chromium.org>
2942
2943         Reviewed by Kenneth Russell.
2944
2945         Speed up clipping in accelerated 2D canvas.
2946         https://bugs.webkit.org/show_bug.cgi?id=57464
2947
2948         Instead of clearing the entire stencil buffer when removing clipping paths, we erase the path with a DECR stencil operation.
2949         Covered by canvas/philip/tests/2d.path.clip.intersect.html, and others.
2950
2951         * platform/graphics/chromium/GLES2Canvas.cpp:
2952         (WebCore::PathAndTransform::PathAndTransform):
2953         New structure to keep track of the CTM at the time the clipping path was added.
2954         (WebCore::GLES2Canvas::State::State):
2955         Replace m_clippingEnabled with a count of total clipping paths.
2956         (WebCore::GLES2Canvas::clearRect):
2957         Check the total clipping path count, instead of m_clippingEnabled.
2958         (WebCore::GLES2Canvas::fillPath):
2959         (WebCore::GLES2Canvas::fillRect):
2960         Perform state application after doing shadows.  This is necessary
2961         since restore() may now leave clipping enabled.
2962         (WebCore::GLES2Canvas::clipPath):
2963         Explicitly specify the stencil operation as INCR.  Store the current
2964         transformation when saving clipping paths.
2965         (WebCore::GLES2Canvas::restore):
2966         Don't clear the stencil buffer and re-draw active paths on each restore.
2967         Erase the old paths with DECR.
2968         (WebCore::GLES2Canvas::drawTexturedRect):
2969         Check m_numClippingPaths instead of m_clippingEnabled.
2970         (WebCore::GLES2Canvas::beginShadowDraw):
2971         Perform state application when drawing hard shadows.
2972         (WebCore::GLES2Canvas::endShadowDraw):
2973         Check m_numClippingPaths instead of m_clippingEnabled.
2974         (WebCore::GLES2Canvas::beginStencilDraw):
2975         Make the stencil op a parameter to beginShadowDraw().
2976         (WebCore::GLES2Canvas::applyClipping):
2977         Compare against the total number of stencil paths, not just the ones in
2978         the current state.
2979         * platform/graphics/chromium/GLES2Canvas.h:
2980         Make the stencil op a parameter to beginShadowDraw().
2981
2982 2011-03-29  Dimitri Glazkov  <dglazkov@chromium.org>
2983
2984         Reviewed by Darin Adler.
2985
2986         Move factory-like things in EventDispatcher::dispatchMouseEvent to a factory, clean up names and ordering.
2987         https://bugs.webkit.org/show_bug.cgi?id=57419
2988
2989         Refactoring, covered by existing tests.
2990
2991         * dom/EventDispatcher.cpp:
2992         (WebCore::EventDispatcher::dispatchMouseEvent): Reordered and clarified names.
2993         * dom/MouseEvent.cpp:
2994         (WebCore::MouseEvent::create): Added a new factory method that takes PlatformMouseEvent.
2995         * dom/MouseEvent.h: Added decl.
2996
2997 2011-03-30  Erik Arvidsson  <arv@chromium.org>
2998
2999         Reviewed by Alexey Proskuryakov.
3000
3001         Missing DOM bindings for a ping
3002         https://bugs.webkit.org/show_bug.cgi?id=51955
3003
3004         Test: fast/dom/ping-attribute-dom-binding.html
3005
3006         * html/HTMLAnchorElement.idl:
3007         * html/HTMLAreaElement.idl:
3008
3009 2011-03-30  Patrick Gansterer  <paroga@webkit.org>
3010
3011         Unreviewed WinCE build fix for r82465.
3012
3013         * CMakeListsWinCE.txt:
3014
3015 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
3016
3017         Reviewed by Adam Roben.
3018
3019         Update Windows production build logic for new production configurations
3020         https://bugs.webkit.org/show_bug.cgi?id=57494
3021
3022         * WebCore.vcproj/QTMovieWinProduction.vsprops:
3023         * WebCore.vcproj/WebCore.make:
3024         * WebCore.vcproj/WebCoreProduction.vsprops:
3025
3026 2011-03-30  Sam Weinig  <sam@webkit.org>
3027
3028         Reviewed by Brady Eidson.
3029
3030         WebKit2: Attempting to view css file from url causes it to download
3031         <rdar://problem/9102611>
3032         https://bugs.webkit.org/show_bug.cgi?id=57501
3033
3034         * WebCore.exp.in:
3035         * platform/MIMETypeRegistry.cpp:
3036         (WebCore::initializeUnsupportedTextMIMETypes):
3037         (WebCore::initializeMIMETypeRegistry):
3038         (WebCore::MIMETypeRegistry::isUnsupportedTextMIMEType):
3039         (WebCore::MIMETypeRegistry::getUnsupportedTextMIMETypes):
3040         * platform/MIMETypeRegistry.h:
3041         Add set of unsupported text MIME types, taken from WebKit/mac.
3042
3043 2011-03-30  Brian Weinstein  <bweinstein@apple.com>
3044
3045         Reviewed by Darin Adler.
3046         
3047         Crash when closing "Add Bookmark" dialog using the Enter Key
3048         https://bugs.webkit.org/show_bug.cgi?id=57294
3049         <rdar://problem/9044756>
3050
3051         Protect the FrameView in EventHandler::keyEvent, like we do in other EventHandler
3052         functions that could destroy the frame.
3053
3054         * page/EventHandler.cpp:
3055         (WebCore::EventHandler::keyEvent):
3056
3057 2011-03-30  Sheriff Bot  <webkit.review.bot@gmail.com>
3058
3059         Unreviewed, rolling out r82463.
3060         http://trac.webkit.org/changeset/82463
3061         https://bugs.webkit.org/show_bug.cgi?id=57482
3062
3063         Assertion failure in Node::rendererIsEditable on multiple
3064         editing tests (Requested by aroben|meeting on #webkit).
3065
3066         * css/CSSParser.cpp:
3067         (WebCore::CSSParser::parseValue):
3068         * css/CSSPrimitiveValueMappings.h:
3069         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3070         (WebCore::CSSPrimitiveValue::operator EUnicodeBidi):
3071         * css/CSSValueKeywords.in:
3072         * rendering/style/RenderStyle.h:
3073         * rendering/style/RenderStyleConstants.h:
3074
3075 2011-03-24  Luiz Agostini  <luiz.agostini@openbossa.org>
3076
3077         Reviewed by Kenneth Rohde Christiansen.
3078
3079         [Qt] QNetworkReplyHandler refactoring: signal sequence.
3080         https://bugs.webkit.org/show_bug.cgi?id=57049
3081
3082         This is the first step in QNetworkReplyHandler. The main objective here is to create simple invariants:
3083
3084             1 - that the signals metadatachanged, readyRead and finished will come in this order.
3085             2 - that signals metadatachanged and finished will be called exactly once.
3086
3087         Having these invariants further simplifications will be possible and will come in future patches.
3088
3089         Class QNetworkReplyWrapper was created to handle QNetworkReply object. To connect to the signals of it
3090         instead of connecting to the signals of QNetworkReply is what guarantees the sequence of the signals.
3091         QNetworkReplyWrapper will be used in future to perform mime type sniffing before sending
3092         metadatachanged signal.
3093
3094         * platform/network/qt/QNetworkReplyHandler.cpp:
3095         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
3096         (WebCore::QNetworkReplyWrapper::~QNetworkReplyWrapper):
3097         (WebCore::QNetworkReplyWrapper::release):
3098         (WebCore::QNetworkReplyWrapper::resetConnections):
3099         (WebCore::QNetworkReplyWrapper::receiveMetaData):
3100         (WebCore::QNetworkReplyWrapper::didReceiveFinished):
3101         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
3102         (WebCore::QNetworkReplyHandler::resetState):
3103         (WebCore::QNetworkReplyHandler::release):
3104         (WebCore::QNetworkReplyHandler::finish):
3105         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
3106         (WebCore::QNetworkReplyHandler::redirect):
3107         (WebCore::QNetworkReplyHandler::forwardData):
3108         (WebCore::QNetworkReplyHandler::sendNetworkRequest):
3109         (WebCore::QNetworkReplyHandler::start):
3110         * platform/network/qt/QNetworkReplyHandler.h:
3111         (WebCore::QNetworkReplyWrapper::reply):
3112         (WebCore::QNetworkReplyWrapper::redirectionTargetUrl):
3113         (WebCore::QNetworkReplyWrapper::encoding):
3114         (WebCore::QNetworkReplyWrapper::advertisedMimeType):
3115         (WebCore::QNetworkReplyHandler::reply):
3116
3117 2011-03-30  Steve Falkenburg  <sfalken@apple.com>
3118
3119         Reviewed by Adam Roben.
3120
3121         Rename Windows configuration Release_LTCG to Production for clarity
3122         https://bugs.webkit.org/show_bug.cgi?id=57465
3123
3124         * WebCore.vcproj/QTMovieWin.vcproj:
3125         * WebCore.vcproj/QTMovieWinProduction.vsprops: Copied from Source/WebCore/WebCore.vcproj/QTMovieWinReleaseLTCG.vsprops.
3126         * WebCore.vcproj/QTMovieWinReleaseLTCG.vsprops: Removed.
3127         * WebCore.vcproj/WebCore.sln:
3128         * WebCore.vcproj/WebCore.submit.sln:
3129         * WebCore.vcproj/WebCore.vcproj:
3130         * WebCore.vcproj/WebCoreGenerated.vcproj:
3131         * WebCore.vcproj/WebCoreProduction.vsprops: Copied from Source/WebCore/WebCore.vcproj/WebCoreReleaseLTCG.vsprops.
3132         * WebCore.vcproj/WebCoreReleaseLTCG.vsprops: Removed.
3133
3134 2011-03-30  Brian Weinstein  <bweinstein@apple.com>
3135
3136         Reviewed by Anders Carlsson.
3137         
3138         ASSERT(cookieStorageAdapter) when calling stopObservingCookieChanges after WebProcess has crashed
3139         https://bugs.webkit.org/show_bug.cgi?id=57477
3140         <rdar://problem/9178751>
3141         
3142         If someone has called startObservingCookieChanges, and the WebProcess crashes and restarts, the UIProcess
3143         will call stopObservingCookieChanges when cookieStorageAdapter is nil.
3144         
3145         The assert is wrong when the web process crashes, and there is no harm in dispatching a message to nil,
3146         so remove the assert.
3147         
3148         * platform/network/mac/CookieStorageMac.mm:
3149         (WebCore::stopObservingCookieChanges):
3150
3151 2011-03-30  Sam Weinig  <sam@webkit.org>
3152
3153         Fix Leopard build.
3154
3155         * platform/DefaultLocalizationStrategy.cpp:
3156         (WebCore::DefaultLocalizationStrategy::contextMenuItemTagLookUpInDictionary):
3157
3158 2011-03-30  Sam Weinig  <sam@webkit.org>
3159
3160         Reviewed by Anders Carlsson.
3161
3162         Add default localization strategy that can be shared by WebKit1 and WebKit2
3163         https://bugs.webkit.org/show_bug.cgi?id=57406
3164
3165         Currently, only WebKit2 uses this default strategy, but WebKit1 should be able
3166         to adopt it soon.
3167
3168         * platform/DefaultLocalizationStrategy.cpp: Copied from Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp.
3169         (WebCore::DefaultLocalizationStrategy::DefaultLocalizationStrategy):
3170         * platform/DefaultLocalizationStrategy.h: Copied from Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h.
3171         Copy the implementation of the Localization strategy from WebKit2 into a shared default strategy.
3172
3173         * platform/LocalizedStrings.cpp:
3174         (WebCore::localizedString):
3175         Add default implementation of localization bottleneck function.
3176
3177         * platform/LocalizedStrings.h:
3178         Add localization macros here, instead of defining them in the above layer.
3179
3180         * platform/PlatformStrategies.cpp:
3181         (WebCore::PlatformStrategies::createLocalizationStrategy):
3182         * platform/PlatformStrategies.h:
3183         Add default implementation of strategy creation function which creates the default strategy.
3184
3185         * platform/win/LocalizedStringsWin.cpp: Copied from Source/WebCore/platform/mac/LocalizedStringsMac.mm.
3186         (WebCore::localizedString):
3187         Add stub for windows, this will be update to pull from the bundle in a follow up patch.
3188
3189         * Android.mk:
3190         * CMakeLists.txt:
3191         * GNUmakefile.am:
3192         * WebCore.exp.in:
3193         * WebCore.gypi:
3194         * WebCore.pro:
3195         * WebCore.vcproj/WebCore.vcproj:
3196         * WebCore.xcodeproj/project.pbxproj:
3197         Add new files.
3198
3199 2011-03-30  Andras Becsi  <abecsi@webkit.org>
3200
3201         Reviewed by Darin Adler.
3202
3203         CSS: Slow parsing of rgb() with percent values
3204         https://bugs.webkit.org/show_bug.cgi?id=16708
3205
3206         Implement fast-path parsing for percentage color values.
3207
3208         Gain ~30% speedup on  http://canvex.lazyilluminati.com/misc/3d.html
3209
3210         Relanding with rounding fix after it was rolled out in r82315.
3211
3212         * css/CSSParser.cpp:
3213         (WebCore::checkForValidDouble): Extend to return the number of characters forming a valid double.
3214         (WebCore::parseDouble): Function for parsing double values if they are valid.
3215         (WebCore::parseColorIntOrPercentage): Extend parseColorInt to deal with percentage values.
3216         (WebCore::parseAlphaValue): Use the new functions.
3217         (WebCore::CSSParser::parseColor): Ditto.
3218
3219 2011-03-30  Ofri Wolfus  <ofri@dhcp-172-28-40-178.tlv.corp.google.com>
3220
3221         Reviewed by Eric Seidel.
3222
3223         Add support for parsing unicode-bidi: -webkit-plaintext.
3224         https://bugs.webkit.org/show_bug.cgi?id=57457
3225
3226         Test: css3/unicode-bidi-plaintext-parse.html
3227
3228         * css/CSSParser.cpp:
3229         (WebCore::CSSParser::parseValue):
3230         * css/CSSPrimitiveValueMappings.h:
3231         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3232         (WebCore::CSSPrimitiveValue::operator EUnicodeBidi):
3233         * css/CSSValueKeywords.in:
3234         * rendering/style/RenderStyle.h:
3235         * rendering/style/RenderStyleConstants.h:
3236
3237 2011-03-30  Andreas Kling  <kling@webkit.org>
3238
3239         Reviewed by Benjamin Poulain.
3240
3241         [Qt] Remove unused variables in GraphicsContext::fillRect()
3242
3243         * platform/graphics/qt/GraphicsContextQt.cpp:
3244         (WebCore::GraphicsContext::fillRect):
3245
3246 2011-03-30  Yael Aharon  <yael.aharon@nokia.com>
3247
3248         Reviewed by Eric Seidel.
3249
3250         REGRESSION(r82419): New pixel test failure fast/box-shadow/basic-shadows.html
3251         https://bugs.webkit.org/show_bug.cgi?id=57442
3252
3253         When checking the position of the inline iterator in the logicallyLastRun, we should not consider BR as text.
3254
3255         No new tests as existing test covers this case.
3256
3257         * rendering/RenderBlockLineLayout.cpp:
3258         (WebCore::reachedEndOfTextRenderer):
3259
3260 2011-03-30  Mario Sanchez Prada  <msanchez@igalia.com>
3261
3262         Reviewed by Chris Fleizach.
3263
3264         AX: GTK: ARIA role is not respected on <p> <label> <div> and <form>
3265         https://bugs.webkit.org/show_bug.cgi?id=47636
3266
3267         Define new roles in WebCore and map them to ATK accordingly.
3268
3269         Test: platform/gtk/accessibility/aria-roles-unignored.html
3270
3271         * accessibility/AccessibilityObject.h: Added new roles to
3272         represent paragraphs, labels, forms and div sections.
3273         * accessibility/AccessibilityRenderObject.cpp:
3274         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
3275         Return ParagraphRole, LabelRole, FormRole and DivRole when needed
3276         for the GTK platform only.
3277         * accessibility/gtk/AccessibilityObjectAtk.cpp:
3278         (WebCore::AccessibilityObject::allowsTextRanges): Consider the new
3279         roles now that those kind of nodes won't return true to isGroup().
3280         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3281         (atkRole): Map new WebCore roles to ATK Roles.
3282         (webkit_accessible_get_role): Remove code to define roles for
3283         paragraphs, labels, forms and divs based on node's tag name.
3284
3285         Update mappings for the Mac platform.
3286
3287         * accessibility/mac/AccessibilityObjectWrapper.mm:
3288         (createAccessibilityRoleMap): Add explicit mappings from the new
3289         roles introduced to NSAccessibilityGroupRole.
3290
3291 2011-03-30  Yury Semikhatsky  <yurys@chromium.org>
3292
3293         Unreviewed. Build fix for Efl and Qt Win.
3294
3295         * inspector/PageDebuggerAgent.cpp: removed ENABLE(WORKERS) guard from code that has nothing to do with workers.
3296
3297 2011-03-30  Andrey Kosyakov  <caseq@chromium.org>
3298
3299         Reviewed by Pavel Feldman.
3300
3301         Web Inspector: audit run never completes, fails in DOMAgent.js
3302         https://bugs.webkit.org/show_bug.cgi?id=57349
3303
3304         - assure document is present before calling DOMAgent.querySelectAll()
3305
3306         * inspector/front-end/AuditRules.js:
3307         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
3308
3309 2011-03-30  Yury Semikhatsky  <yurys@chromium.org>
3310
3311         Unreviewed. Build fix.
3312
3313         * UseJSC.cmake: fix typo PageDebugServer -> PageScriptDebugServer
3314
3315 2011-03-30  Yury Semikhatsky  <yurys@chromium.org>
3316
3317         Reviewed by Pavel Feldman.
3318
3319         Web Inspector: split debugger agent into Page and Worker-specific ones
3320         https://bugs.webkit.org/show_bug.cgi?id=57345
3321
3322         ScriptDebugServer and InspectorDebuggerAgent contain only functionality common
3323         for Worker and Page debugger. All specifics is moved into Page/WorkerScriptDebugServer
3324         and Page/WorkerDebuggerAgent.
3325
3326         * CMakeLists.txt:
3327         * GNUmakefile.am:
3328         * UseJSC.cmake:
3329         * WebCore.gypi:
3330         * WebCore.pro:
3331         * WebCore.vcproj/WebCore.vcproj:
3332         * WebCore.xcodeproj/project.pbxproj:
3333         * bindings/js/JSBindingsAllInOne.cpp:
3334         * bindings/js/JSInjectedScriptHostCustom.cpp:
3335         (WebCore::JSInjectedScriptHost::currentCallFrame):
3336         * bindings/js/PageScriptDebugServer.cpp: Added.
3337         (WebCore::toPage):
3338         (WebCore::PageScriptDebugServer::shared):
3339         (WebCore::PageScriptDebugServer::PageScriptDebugServer):
3340         (WebCore::PageScriptDebugServer::~PageScriptDebugServer):
3341         (WebCore::PageScriptDebugServer::addListener):
3342         (WebCore::PageScriptDebugServer::removeListener):
3343         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
3344         (WebCore::PageScriptDebugServer::getListenersForGlobalObject):
3345         (WebCore::PageScriptDebugServer::didPause):
3346         (WebCore::PageScriptDebugServer::didContinue):
3347         (WebCore::PageScriptDebugServer::didRemoveLastListener):
3348         (WebCore::PageScriptDebugServer::setJavaScriptPaused):
3349         * bindings/js/PageScriptDebugServer.h: Added.
3350         * bindings/js/ScriptDebugServer.cpp:
3351         (WebCore::ScriptDebugServer::ScriptDebugServer):
3352         (WebCore::ScriptDebugServer::sourceParsed):
3353         (WebCore::ScriptDebugServer::dispatchFunctionToListeners):
3354         (WebCore::ScriptDebugServer::createCallFrameAndPauseIfNeeded):
3355         (WebCore::ScriptDebugServer::updateCallFrameAndPauseIfNeeded):
3356         (WebCore::ScriptDebugServer::pauseIfNeeded):
3357         * bindings/js/ScriptDebugServer.h:
3358         * bindings/js/WorkerScriptDebugServer.cpp: Added.
3359         (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
3360         (WebCore::WorkerScriptDebugServer::addListener):
3361         (WebCore::WorkerScriptDebugServer::removeListener):
3362         * bindings/js/WorkerScriptDebugServer.h: Added.
3363         (WebCore::WorkerScriptDebugServer::~WorkerScriptDebugServer):
3364         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
3365         (WebCore::WorkerScriptDebugServer::getListenersForGlobalObject):
3366         (WebCore::WorkerScriptDebugServer::didPause):
3367         (WebCore::WorkerScriptDebugServer::didContinue):
3368         * bindings/v8/PageScriptDebugServer.cpp: Added.
3369         (WebCore::retrieveFrame):
3370         (WebCore::PageScriptDebugServer::shared):
3371         (WebCore::PageScriptDebugServer::PageScriptDebugServer):
3372         (WebCore::PageScriptDebugServer::addListener):
3373         (WebCore::PageScriptDebugServer::removeListener):
3374         (WebCore::PageScriptDebugServer::setClientMessageLoop):
3375         (WebCore::PageScriptDebugServer::getDebugListenerForContext):
3376         (WebCore::PageScriptDebugServer::runMessageLoopOnPause):
3377         (WebCore::PageScriptDebugServer::quitMessageLoopOnPause):
3378         * bindings/v8/PageScriptDebugServer.h: Added.
3379         (WebCore::PageScriptDebugServer::setEnabled):
3380         (WebCore::PageScriptDebugServer::ClientMessageLoop::~ClientMessageLoop):
3381         (WebCore::PageScriptDebugServer::~PageScriptDebugServer):
3382         * bindings/v8/ScriptDebugServer.cpp:
3383         (WebCore::ScriptDebugServer::ScriptDebugServer):
3384         (WebCore::ScriptDebugServer::setPauseOnNextStatement):
3385         (WebCore::ScriptDebugServer::breakProgram):
3386         (WebCore::ScriptDebugServer::continueProgram):
3387         (WebCore::ScriptDebugServer::stepIntoStatement):
3388         (WebCore::ScriptDebugServer::stepOverStatement):
3389         (WebCore::ScriptDebugServer::stepOutOfFunction):
3390         (WebCore::ScriptDebugServer::editScriptSource):
3391         (WebCore::toScriptDebugServer):
3392         (WebCore::ScriptDebugServer::breakProgramCallback):
3393         (WebCore::ScriptDebugServer::v8DebugEventCallback):
3394         (WebCore::ScriptDebugServer::handleV8DebugEvent):
3395         (WebCore::ScriptDebugServer::isPaused):
3396         * bindings/v8/ScriptDebugServer.h:
3397         * bindings/v8/WorkerScriptDebugServer.cpp: Added.
3398         (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
3399         (WebCore::WorkerScriptDebugServer::addListener):
3400         (WebCore::WorkerScriptDebugServer::removeListener):
3401         * bindings/v8/WorkerScriptDebugServer.h: Added.
3402         (WebCore::WorkerScriptDebugServer::~WorkerScriptDebugServer):
3403         (WebCore::WorkerScriptDebugServer::getDebugListenerForContext):
3404         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause):
3405         (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause):
3406         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3407         (WebCore::V8InjectedScriptHost::currentCallFrameCallback):
3408         * inspector/InjectedScriptHost.h:
3409         (WebCore::InjectedScriptHost::init):
3410         (WebCore::InjectedScriptHost::debuggerAgent):
3411         * inspector/InspectorAgent.cpp:
3412         (WebCore::InspectorAgent::InspectorAgent):
3413         * inspector/InspectorDebuggerAgent.cpp:
3414         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
3415         (WebCore::InspectorDebuggerAgent::enable):
3416         (WebCore::InspectorDebuggerAgent::disable):
3417         (WebCore::InspectorDebuggerAgent::setBreakpointsActive):
3418         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
3419         (WebCore::InspectorDebuggerAgent::continueToLocation):
3420         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
3421         (WebCore::InspectorDebuggerAgent::editScriptSource):
3422         (WebCore::InspectorDebuggerAgent::schedulePauseOnNextStatement):
3423         (WebCore::InspectorDebuggerAgent::cancelPauseOnNextStatement):
3424         (WebCore::InspectorDebuggerAgent::resume):
3425         (WebCore::InspectorDebuggerAgent::stepOver):
3426         (WebCore::InspectorDebuggerAgent::stepInto):
3427         (WebCore::InspectorDebuggerAgent::stepOut):
3428         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
3429         (WebCore::InspectorDebuggerAgent::didPause):
3430         (WebCore::InspectorDebuggerAgent::breakProgram):
3431         * inspector/InspectorDebuggerAgent.h:
3432         * inspector/InspectorProfilerAgent.cpp:
3433         (WebCore::InspectorProfilerAgent::disable):
3434         (WebCore::InspectorProfilerAgent::enable):
3435         (WebCore::InspectorProfilerAgent::startUserInitiatedProfiling):
3436         * inspector/PageDebuggerAgent.cpp: Added.
3437         (WebCore::PageDebuggerAgent::create):
3438         (WebCore::PageDebuggerAgent::PageDebuggerAgent):
3439         (WebCore::PageDebuggerAgent::~PageDebuggerAgent):
3440         (WebCore::PageDebuggerAgent::startListeningScriptDebugServer):
3441         (WebCore::PageDebuggerAgent::stopListeningScriptDebugServer):
3442         (WebCore::PageDebuggerAgent::scriptDebugServer):
3443         * inspector/PageDebuggerAgent.h: Added.
3444         * inspector/WorkerDebuggerAgent.cpp: Added.
3445         (WebCore::WorkerDebuggerAgent::create):
3446         (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
3447         (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
3448         (WebCore::WorkerDebuggerAgent::startListeningScriptDebugServer):
3449         (WebCore::WorkerDebuggerAgent::stopListeningScriptDebugServer):
3450         (WebCore::WorkerDebuggerAgent::scriptDebugServer):
3451         * inspector/WorkerDebuggerAgent.h: Added.
3452
3453 2011-03-30  Levi Weintraub  <leviw@chromium.org>
3454
3455         Reviewed by Ryosuke Niwa.
3456
3457         Clicking below last line of right-to-left editable text that puts caret in the wrong place
3458         https://bugs.webkit.org/show_bug.cgi?id=38087
3459
3460         Moving getLogical[Start/End]BoxWithNode to RootInlineBox and using it in positionForPointWithInlineChildren
3461         instead of lastLeafChild, which wasn't correct in the RTL case.
3462
3463         Test: editing/selection/click-below-rtl-text.html
3464
3465         * editing/visible_units.cpp:
3466         (WebCore::logicalStartPositionForLine): Moved to RootInlineBox.
3467         (WebCore::logicalEndPositionForLine): Ditto.
3468         * editing/visible_units.h:
3469         * rendering/RenderBlock.cpp:
3470         (WebCore::RenderBlock::positionForPointWithInlineChildren): Useing getLogicalEndBoxWithNode instead
3471         of lastLeafChild.
3472         * rendering/RootInlineBox.cpp:
3473         (WebCore::RootInlineBox::getLogicalStartBoxWithNode): Moved and refactored.
3474         (WebCore::RootInlineBox::getLogicalEndBoxWithNode): Ditto.
3475         * rendering/RootInlineBox.h:
3476
3477 2011-03-30  Yury Semikhatsky  <yurys@chromium.org>
3478
3479         Unreviewed. Rollout r82438 and r82436.
3480
3481         * CMakeLists.txt:
3482         * GNUmakefile.am:
3483         * UseJSC.cmake:
3484         * WebCore.gypi:
3485         * WebCore.pro:
3486         * WebCore.vcproj/WebCore.vcproj:
3487         * WebCore.xcodeproj/project.pbxproj:
3488         * bindings/js/JSBindingsAllInOne.cpp:
3489         * bindings/js/JSInjectedScriptHostCustom.cpp:
3490         (WebCore::JSInjectedScriptHost::currentCallFrame):
3491         * bindings/js/PageScriptDebugServer.cpp: Removed.
3492         * bindings/js/PageScriptDebugServer.h: Removed.
3493         * bindings/js/ScriptDebugServer.cpp:
3494         (WebCore::ScriptDebugServer::shared):
3495         (WebCore::ScriptDebugServer::ScriptDebugServer):
3496         (WebCore::ScriptDebugServer::addListener):
3497         (WebCore::ScriptDebugServer::removeListener):
3498         (WebCore::ScriptDebugServer::hasListenersInterestedInPage):
3499         (WebCore::toPage):
3500         (WebCore::ScriptDebugServer::sourceParsed):
3501         (WebCore::ScriptDebugServer::dispatchFunctionToListeners):
3502         (WebCore::ScriptDebugServer::setJavaScriptPaused):
3503         (WebCore::ScriptDebugServer::createCallFrameAndPauseIfNeeded):
3504         (WebCore::ScriptDebugServer::updateCallFrameAndPauseIfNeeded):
3505         (WebCore::ScriptDebugServer::pauseIfNeeded):