2010-06-09 Leandro Pereira <leandro@profusion.mobi>
[WebKit-https.git] / WebCore / ChangeLog
1 2010-06-09  Leandro Pereira  <leandro@profusion.mobi>
2
3         Reviewed by Adam Treat.
4
5         [EFL] Allow building core libraries as shared objects to speed up
6         linking time on machines with small amounts of memory.
7         http://webkit.org/b/39899
8
9         * CMakeLists.txt: If building with shared core, install the lib.
10         Remove npapi.cpp (causes conflicts when linking dynamically).
11         * CMakeListsEfl.txt: EFL libraries are needed to link dynamically.
12
13 2010-06-09  Mark Rowe  <mrowe@apple.com>
14
15         Reviewed by Adele Peterson.
16
17         <rdar://problem/8070662> REGRESSION (r51629): WebBackForwardList created via -init crashes when -addItem: is called.
18
19         A WebBackForwardList created via -init results in a BackForwardList being created with a null m_page.
20         BackForwardList needs to be careful not to dereference m_page without first ensuring it's not null.
21
22         * history/BackForwardList.cpp:
23         (WebCore::BackForwardList::addItem): Null-check m_page.
24         (WebCore::BackForwardList::goBack): Ditto.
25         (WebCore::BackForwardList::goForward): Ditto.
26         (WebCore::BackForwardList::goToItem): Ditto.
27         (WebCore::BackForwardList::setCapacity): Ditto.
28
29 2010-06-09  Kwang Yul Seo  <skyul@company100.net>
30
31         Reviewed by Kent Tamura.
32
33         [BREWMP] Add dummy Context Menu implementation
34         https://bugs.webkit.org/show_bug.cgi?id=40223
35
36         Brew MP does not use Context Menu. Add dummy implementation.
37
38         * platform/brew/ContextMenuBrew.cpp: Added.
39         (WebCore::ContextMenu::ContextMenu):
40         (WebCore::ContextMenu::~ContextMenu):
41         (WebCore::ContextMenu::itemCount):
42         (WebCore::ContextMenu::insertItem):
43         (WebCore::ContextMenu::appendItem):
44         (WebCore::ContextMenu::itemWithAction):
45         (WebCore::ContextMenu::itemAtIndex):
46         (WebCore::ContextMenu::setPlatformDescription):
47         (WebCore::ContextMenu::platformDescription):
48         (WebCore::ContextMenu::releasePlatformDescription):
49         * platform/brew/ContextMenuItemBrew.cpp: Added.
50         (WebCore::ContextMenuItem::ContextMenuItem):
51         (WebCore::ContextMenuItem::~ContextMenuItem):
52         (WebCore::ContextMenuItem::releasePlatformDescription):
53         (WebCore::ContextMenuItem::type):
54         (WebCore::ContextMenuItem::action):
55         (WebCore::ContextMenuItem::title):
56         (WebCore::ContextMenuItem::platformSubMenu):
57         (WebCore::ContextMenuItem::setType):
58         (WebCore::ContextMenuItem::setAction):
59         (WebCore::ContextMenuItem::setTitle):
60         (WebCore::ContextMenuItem::setSubMenu):
61         (WebCore::ContextMenuItem::setChecked):
62         (WebCore::ContextMenuItem::setEnabled):
63         (WebCore::ContextMenuItem::enabled):
64
65 2010-06-09  Kwang Yul Seo  <skyul@company100.net>
66
67         Reviewed by Kent Tamura.
68
69         [BREWMP] Port Clipboard
70         https://bugs.webkit.org/show_bug.cgi?id=35734
71
72         Add dummy Clipboard.
73
74         * platform/brew/ClipboardBrew.cpp: Added.
75         (WebCore::ClipboardBrew::ClipboardBrew):
76         (WebCore::ClipboardBrew::~ClipboardBrew):
77         (WebCore::ClipboardBrew::clearData):
78         (WebCore::ClipboardBrew::clearAllData):
79         (WebCore::ClipboardBrew::getData):
80         (WebCore::ClipboardBrew::setData):
81         (WebCore::ClipboardBrew::types):
82         (WebCore::ClipboardBrew::files):
83         (WebCore::ClipboardBrew::setDragImage):
84         (WebCore::ClipboardBrew::setDragImageElement):
85         (WebCore::ClipboardBrew::createDragImage):
86         (WebCore::ClipboardBrew::declareAndWriteDragImage):
87         (WebCore::ClipboardBrew::writeURL):
88         (WebCore::ClipboardBrew::writeRange):
89         (WebCore::ClipboardBrew::writePlainText):
90         (WebCore::ClipboardBrew::hasData):
91         * platform/brew/ClipboardBrew.h: Added.
92
93 2010-06-09  Anders Bakken  <agbakken@gmail.com>
94
95         Reviewed by David Levin.
96
97         [Qt] ClipboardQt.cpp has coding-style errors
98         https://bugs.webkit.org/show_bug.cgi?id=39781
99
100         * platform/qt/ClipboardQt.cpp:
101         (WebCore::ClipboardQt::declareAndWriteDragImage):
102
103 2010-06-09  Kenneth Russell  <kbr@google.com>
104
105         Reviewed by Dimitri Glazkov.
106
107         Rename FloatArray to Float32Array
108         https://bugs.webkit.org/show_bug.cgi?id=40323
109
110         Used do-webcore-rename to perform renaming. Manually undid
111         incorrect changes to WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp,
112         WebCore/manual-tests/resources/ArrayParameterTestApplet.java and
113         ArrayParameterTestApplet.class. Updated LayoutTests. Built and ran
114         all layout tests on Safari; built Chromium and ran selected WebGL
115         tests.
116
117         * CMakeLists.txt:
118         * DerivedSources.make:
119         * GNUmakefile.am:
120         * WebCore.gypi:
121         * WebCore.pri:
122         * WebCore.pro:
123         * WebCore.xcodeproj/project.pbxproj:
124         * bindings/generic/RuntimeEnabledFeatures.h:
125         (WebCore::RuntimeEnabledFeatures::float32ArrayEnabled):
126         * bindings/js/JSArrayBufferViewCustom.cpp:
127         (WebCore::toJS):
128         * bindings/js/JSDOMWindowCustom.cpp:
129         (WebCore::JSDOMWindow::float32Array):
130         (WebCore::JSDOMWindow::webGLFloatArray):
131         * bindings/js/JSFloat32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSFloatArrayConstructor.cpp.
132         (WebCore::):
133         (WebCore::JSFloat32ArrayConstructor::JSFloat32ArrayConstructor):
134         (WebCore::constructCanvasFloatArray):
135         (WebCore::JSFloat32ArrayConstructor::getConstructData):
136         * bindings/js/JSFloat32ArrayConstructor.h: Copied from WebCore/bindings/js/JSFloatArrayConstructor.h.
137         * bindings/js/JSFloat32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSFloatArrayCustom.cpp.
138         (WebCore::JSFloat32Array::indexSetter):
139         (WebCore::toJS):
140         (WebCore::JSFloat32Array::set):
141         * bindings/js/JSFloatArrayConstructor.cpp: Removed.
142         * bindings/js/JSFloatArrayConstructor.h: Removed.
143         * bindings/js/JSFloatArrayCustom.cpp: Removed.
144         * bindings/js/JSWebGLRenderingContextCustom.cpp:
145         (WebCore::dataFunctionf):
146         (WebCore::dataFunctionMatrix):
147         * bindings/v8/custom/V8ArrayBufferViewCustom.cpp:
148         (WebCore::toV8):
149         * bindings/v8/custom/V8DOMWindowCustom.cpp:
150         (WebCore::V8DOMWindow::WebGLFloatArrayAccessorGetter):
151         * bindings/v8/custom/V8Float32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8FloatArrayCustom.cpp.
152         (WebCore::V8Float32Array::constructorCallback):
153         (WebCore::V8Float32Array::setCallback):
154         (WebCore::toV8):
155         * bindings/v8/custom/V8FloatArrayCustom.cpp: Removed.
156         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
157         (WebCore::vertexAttribAndUniformHelperf):
158         (WebCore::uniformMatrixHelper):
159         * html/canvas/Float32Array.cpp: Copied from WebCore/html/canvas/FloatArray.cpp.
160         (WebCore::Float32Array::create):
161         (WebCore::Float32Array::Float32Array):
162         (WebCore::Float32Array::slice):
163         * html/canvas/Float32Array.h: Copied from WebCore/html/canvas/FloatArray.h.
164         * html/canvas/Float32Array.idl: Copied from WebCore/html/canvas/FloatArray.idl.
165         * html/canvas/FloatArray.cpp: Removed.
166         * html/canvas/FloatArray.h: Removed.
167         * html/canvas/FloatArray.idl: Removed.
168         * html/canvas/WebGLGetInfo.cpp:
169         (WebCore::WebGLGetInfo::WebGLGetInfo):
170         (WebCore::WebGLGetInfo::getWebGLFloatArray):
171         * html/canvas/WebGLGetInfo.h:
172         * html/canvas/WebGLRenderingContext.cpp:
173         (WebCore::WebGLRenderingContext::getUniform):
174         (WebCore::WebGLRenderingContext::getVertexAttrib):
175         (WebCore::WebGLRenderingContext::uniform1fv):
176         (WebCore::WebGLRenderingContext::uniform2fv):
177         (WebCore::WebGLRenderingContext::uniform3fv):
178         (WebCore::WebGLRenderingContext::uniform4fv):
179         (WebCore::WebGLRenderingContext::uniformMatrix2fv):
180         (WebCore::WebGLRenderingContext::uniformMatrix3fv):
181         (WebCore::WebGLRenderingContext::uniformMatrix4fv):
182         (WebCore::WebGLRenderingContext::vertexAttrib1fv):
183         (WebCore::WebGLRenderingContext::vertexAttrib2fv):
184         (WebCore::WebGLRenderingContext::vertexAttrib3fv):
185         (WebCore::WebGLRenderingContext::vertexAttrib4fv):
186         (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter):
187         * html/canvas/WebGLRenderingContext.h:
188         * html/canvas/WebGLRenderingContext.idl:
189         * page/DOMWindow.idl:
190         * platform/graphics/GraphicsContext3D.h:
191         * platform/graphics/mac/GraphicsContext3DMac.cpp:
192         * platform/graphics/qt/GraphicsContext3DQt.cpp:
193
194 2010-06-09  Eric Seidel  <eric@webkit.org>
195
196         Reviewed by Adam Barth.
197
198         HTML5 Parser needs to integrate with the XSSAuditor
199         https://bugs.webkit.org/show_bug.cgi?id=40287
200
201         This fixes most of the XSSAuditor tests, except for the ones
202         which rely on the srcValue "context".  The previous HTMLTokenizer
203         implementation was both Lexer and ScriptRunner and thus could
204         provide the XSSAuditor with the un-modified attribute source.
205         This naive implementation will fail the context-sensitive tests
206         but Adam Barth says he'll just have to find a new way to provide
207         the required information to the XSSAuditor in a later patch.
208
209         Covered by numerous http/tests/security/xssAuditor tests.
210
211         * html/HTML5ScriptRunner.cpp:
212         (WebCore::HTML5ScriptRunner::requestScript):
213          - Ask the HTML5ScriptRunner host before running any scripts.
214         * html/HTML5ScriptRunnerHost.h:
215          - Add a shouldLoadExternalScriptFromSrc declaration.
216         * html/HTML5Tokenizer.cpp:
217         (WebCore::HTML5Tokenizer::shouldLoadExternalScriptFromSrc):
218          - Ask the XSSAuditor if we're allowed to run the passed script.
219         * html/HTML5Tokenizer.h:
220
221 2010-06-09  Tony Gentilcore  <tonyg@chromium.org>
222
223         Reviewed by Adam Barth.
224
225         Fix script-after-frameset test in HTML5 parser
226         https://bugs.webkit.org/show_bug.cgi?id=40274
227
228         The old HTMLTokenizer enforced this in scriptHandler(). We don't use
229         that code anymore, so it needs to be implemented. The spec does this
230         as a part of "insertion mode"->"after frameset", so this adds an
231         InsertionMode enum instead of a one-off boolean.
232
233         No new tests because covered by fast/tokenizer/script-after-frameset.html
234
235         * html/HTML5TreeBuilder.cpp:
236         (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
237         (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
238         * html/HTML5TreeBuilder.h:
239         (WebCore::HTML5TreeBuilder::):
240         (WebCore::HTML5TreeBuilder::setInsertionMode):
241         (WebCore::HTML5TreeBuilder::insertionMode):
242
243 2010-06-09  Kwang Yul Seo  <skyul@company100.net>
244
245         Reviewed by Kent Tamura.
246
247         [BREWMP] Add EventLoop
248         https://bugs.webkit.org/show_bug.cgi?id=39401
249
250         BREW MP does not have an explicit event loop. Add dummy EventLoop::cycle.
251
252         * platform/brew/EventLoopBrew.cpp: Added.
253         (WebCore::EventLoop::cycle):
254
255 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
256
257         Unreviewed, rolling out r60889.
258         http://trac.webkit.org/changeset/60889
259         https://bugs.webkit.org/show_bug.cgi?id=40365
260
261         gtk bot has some kind of memory corruption (Requested by
262         loislo on #webkit).
263
264         * inspector/InspectorClient.h:
265         * inspector/InspectorController.cpp:
266         (WebCore::InspectorController::setFrontend):
267         * inspector/InspectorController.h:
268         * inspector/InspectorFrontend.cpp:
269         (WebCore::InspectorFrontend::InspectorFrontend):
270         * inspector/InspectorFrontend.h:
271         * inspector/InspectorFrontendClientLocal.cpp:
272         (WebCore::InspectorFrontendClientLocal::frontendLoaded):
273         * inspector/InspectorValues.cpp:
274         (WebCore::InspectorObject::writeJSON):
275         * inspector/front-end/inspector.js:
276         * loader/EmptyClients.h:
277
278 2010-06-09  Kent Tamura  <tkent@chromium.org>
279
280         Reviewed by Eric Carlson.
281
282         [Windows] Build fix on Japanese Windows
283         https://bugs.webkit.org/show_bug.cgi?id=40358
284
285         cl.exe on Japanese Windows assumes files with invalid CP932
286         sequences broken and doesn't build them at all.
287
288         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: Remove non-ASCII characters
289         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h: ditto.
290         * platform/graphics/win/WKCAImageQueue.cpp: ditto.
291         * platform/graphics/win/WKCAImageQueue.h: ditto.
292
293 2010-06-09  Pavel Podivilov  <podivilov@chromium.org>
294
295         Reviewed by Yury Semikhatsky.
296
297         Web Inspector: Add isDebuggerAlwaysEnabled method to ScriptDebugServer.
298         This method returns true if debugger should always be enabled when
299         frontend is attached.
300         https://bugs.webkit.org/show_bug.cgi?id=40289
301
302         * bindings/js/ScriptDebugServer.cpp:
303         (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled):
304         * bindings/js/ScriptDebugServer.h:
305         * bindings/v8/ScriptDebugServer.cpp:
306         (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled):
307         * bindings/v8/ScriptDebugServer.h:
308         * inspector/InspectorController.cpp:
309         (WebCore::InspectorController::setFrontend):
310
311 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
312
313         Reviewed by Pavel Feldman.
314
315         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
316         data from inspected page to WebInspector as JSON string via http. The native
317         serialization to JSON string is supported by InspectorValue's classes. This patch
318         has the implementation of sendMessageToFrontend function. WebKit version of it still
319         uses ScriptFunctionCall and will be switched to another transport a little bit later.
320         https://bugs.webkit.org/show_bug.cgi?id=40134
321
322         * inspector/InspectorClient.h:
323         * inspector/InspectorController.cpp:
324         (WebCore::InspectorController::connectFrontend):
325         (WebCore::InspectorController::disconnectFrontend):
326         * inspector/InspectorController.h:
327         * inspector/InspectorFrontend.cpp:
328         (WebCore::InspectorFrontend::InspectorFrontend):
329         * inspector/InspectorFrontend.h:
330         * inspector/InspectorFrontendClientLocal.cpp:
331         (WebCore::InspectorFrontendClientLocal::frontendLoaded):
332         * inspector/InspectorValues.cpp:
333         (WebCore::InspectorObject::writeJSON):
334         * inspector/front-end/inspector.js:
335         (WebInspector.dispatchMessageToFrontend):
336         * loader/EmptyClients.h:
337         (WebCore::EmptyInspectorClient::sendMessageToFrontend):
338
339 2010-06-09  Csaba Osztrogonác  <ossy@webkit.org>
340
341         Reviewed by Dirk Schulze.
342
343         [Qt] Imperfect dependency for generated SVGNames.cpp
344         https://bugs.webkit.org/show_bug.cgi?id=40359
345
346         * WebCore.pri: Missing dependency added.
347
348 2010-06-08  Dirk Schulze  <krit@webkit.org>
349
350         Reviewed by Nikolas Zimmermann.
351
352         Implement non-scaling-stroke (from SVG Tiny 1.2, also in Opera)
353         https://bugs.webkit.org/show_bug.cgi?id=31438
354         
355         This is the implementation of the SVG property vector-effect according
356         to the specification of SVG Tiny 1.2.
357         getScreenCTM() was not able to calculate the transformation matrix in
358         comparison to the host coordinate system for objects, that get refereced
359         by a use element. This is fixed and covered by the the new test as well.
360         This patch is based upon a patch of Jeff Schiller.
361
362         Test: svg/custom/non-scaling-stroke.svg
363
364         * css/CSSComputedStyleDeclaration.cpp: Added CSSPropertyVectorEffect.
365         (WebCore::):
366         * css/CSSPrimitiveValueMappings.h:
367         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
368         (WebCore::CSSPrimitiveValue::operator EVectorEffect):
369         * css/SVGCSSComputedStyleDeclaration.cpp:
370         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
371         * css/SVGCSSParser.cpp:
372         (WebCore::CSSParser::parseSVGValue):
373         * css/SVGCSSPropertyNames.in:
374         * css/SVGCSSStyleSelector.cpp:
375         (WebCore::CSSStyleSelector::applySVGProperty):
376         * css/SVGCSSValueKeywords.in: Add vector-effect value non-scaling-stroke.
377         * rendering/RenderPath.cpp: Revert transformations to ctm and transform path instead.
378         (WebCore::fillAndStrokePath):
379         * rendering/RenderSVGResourceContainer.h:
380         (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
381         * rendering/RenderSVGResourceGradient.cpp: Transform the gradient with the screenCTM.
382         (WebCore::RenderSVGResourceGradient::applyResource):
383         * rendering/RenderSVGResourcePattern.cpp: Transform the pattern with the screenCTM.
384         (WebCore::RenderSVGResourcePattern::applyResource):
385         * rendering/style/SVGRenderStyle.h: Added vector-effect property, not interited.
386         (WebCore::SVGRenderStyle::NonInheritedFlags::):
387         (WebCore::SVGRenderStyle::setBitDefaults):
388         * rendering/style/SVGRenderStyleDefs.h: Added enums for vector-effect.
389         (WebCore::):
390         * svg/SVGLocatable.cpp: Calculate screenCTM for <use> referenced objects.
391         (WebCore::SVGLocatable::computeCTM):
392         * svg/SVGStyledElement.cpp:
393         (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
394         * svg/svgattrs.in:
395
396 2010-06-08  Mark Rowe  <mrowe@apple.com>
397
398         Reviewed by Adele Peterson.
399
400         <rdar://problem/8072136> REGRESSION (r56051): Inspect Element context menu does nothing in applications linked against 10.4 SDK
401
402         Revert the change to ContextMenu::addInspectElementItem from r56051. It was made without
403         explanation and broke a reliance that WebKit has on the presence of a separator before the
404         Inspect Element menu item. This also restores the context menu item to the correct location
405         at the bottom of the context menu in applications built against the Mac OS X 10.4 SDK.
406
407         * platform/ContextMenu.cpp:
408         (WebCore::ContextMenu::addInspectElementItem):
409
410 2010-06-08  Roland Steiner  <rolandsteiner@chromium.org>
411
412         Unreviewed build fix
413
414         Bug 38145 - Validate *tex* functions input parameters according to ES2 conformance
415         https://bugs.webkit.org/show_bug.cgi?id=38145
416         https://bugs.webkit.org/show_bug.cgi?id=40346
417
418         Fix for 38145 broke the build ('log2 not found' on Windows),
419         the fix from 40346 also didn't catch ('log ambiguous').
420
421         2nd quick fix: add explicit casts to double and use double constants.
422
423         No new tests.
424
425         * html/canvas/WebGLRenderingContext.cpp:
426         (WebCore::WebGLRenderingContext::validateTexFuncParameters):
427
428 2010-05-18  Yuzo Fujishima  <yuzo@google.com>
429
430         Reviewed by Shinichiro Hamaji.
431
432         Fix for Bug 34529 -  [CSSOM] issues with cssText and selectorText
433         Serialize selector as per http://dev.w3.org/csswg/cssom/#serializing-selectors
434         Without this patch, for example, selectors containing ':' or '.' are not properly serialized.
435         https://bugs.webkit.org/show_bug.cgi?id=34529
436
437         Test: fast/css/selector-text-escape.html
438
439         * Android.mk:
440         * CMakeLists.txt:
441         * GNUmakefile.am:
442         * WebCore.gypi:
443         * WebCore.pro:
444         * WebCore.vcproj/WebCore.vcproj:
445         * WebCore.xcodeproj/project.pbxproj:
446         * css/CSSOMUtils.cpp: Added.
447         (WebCore::appendCharacter):
448         (WebCore::serializeCharacter):
449         (WebCore::serializeCharacterAsCodePoint):
450         (WebCore::serializeIdentifier):
451         (WebCore::serializeString):
452         * css/CSSOMUtils.h: Added.
453         * css/CSSSelector.cpp:
454         (WebCore::CSSSelector::selectorText):
455
456 2010-06-08  Ryosuke Niwa  <rniwa@webkit.org>
457
458         Reviewed by Justin Garcia
459
460         InsertListCommand needs cleanup
461         https://bugs.webkit.org/show_bug.cgi?id=36430
462
463         Separated code for listifying and unlistifying paragraphs.
464         Also isolated the dependency on the selection in doApply.
465
466         No test is added since this is a cleanup.
467
468         * editing/InsertListCommand.cpp:
469         (WebCore::InsertListCommand::doApply): isolated code to listify / unlistify paragraphs
470         (WebCore::InsertListCommand::unlistifyParagraph): ditto
471         (WebCore::InsertListCommand::listifyParagraph): ditto
472         * editing/InsertListCommand.h:
473
474 2010-06-08  Kenneth Russell  <kbr@google.com>
475
476         Unreviewed, build fix.
477
478         Fix build breakage from 38145
479         https://bugs.webkit.org/show_bug.cgi?id=40346
480
481         The fix for bug 38145 broke the Chromium Win build because
482         Microsoft's cmath doesn't define log2. Suggested fix by zmo is to
483         change log2(x) to log(x) / log(2). Built and ran WebGL layout
484         tests in Safari on Mac OS X. Changed download mirrors for
485         python-irclib to working ones.
486
487         * html/canvas/WebGLRenderingContext.cpp:
488         (WebCore::WebGLRenderingContext::validateTexFuncParameters):
489
490 2010-06-08  Zhenyao Mo  <zmo@google.com>
491
492         Reviewed by Dimitri Glazkov.
493
494         Validate *tex* functions input parameters according to ES2 conformance
495         https://bugs.webkit.org/show_bug.cgi?id=38145
496
497         Test: fast/canvas/webgl/tex-input-validation.html
498
499         * html/canvas/WebGLFramebuffer.cpp:
500         (WebCore::WebGLFramebuffer::getColorBufferFormat): Get color buffer internalformat.
501         * html/canvas/WebGLFramebuffer.h: Ditto.
502         * html/canvas/WebGLRenderingContext.cpp:
503         (WebCore::WebGLRenderingContext::WebGLRenderingContext): Deal with max tex units and max texture size.
504         (WebCore::WebGLRenderingContext::copyTexImage2D): Validate input parameters.
505         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
506         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
507         (WebCore::WebGLRenderingContext::texParameterf): Ditto.
508         (WebCore::WebGLRenderingContext::texParameteri): Ditto.
509         (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto.
510         (WebCore::WebGLRenderingContext::handleNPOTTextures): Deal with max tex units.
511         (WebCore::WebGLRenderingContext::isTexInternalformatColorBufferCombinationValid): Check whether the texture format and framebuffer color buffer internalformat combination is valid.
512         (WebCore::WebGLRenderingContext::getTextureBinding): get the current bound texture for given target.
513         (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType): Validate input format/type for *tex* functions.
514         (WebCore::WebGLRenderingContext::validateTexFuncParameters): Validate input parameters for *tex* functions.
515         (WebCore::WebGLRenderingContext::texParameter): Base function for texParameteri and texParameterf.
516         * html/canvas/WebGLRenderingContext.h: Deal with max tex units.
517         * html/canvas/WebGLTexture.cpp:
518         (WebCore::WebGLTexture::WebGLTexture): Cache internalformat.
519         * html/canvas/WebGLTexture.h: Ditto.
520         (WebCore::WebGLTexture::setInternalformat):
521         (WebCore::WebGLTexture::getInternalformat):
522         * platform/graphics/GraphicsContext3D.cpp: internalformat and format need to be the same.
523         (WebCore::GraphicsContext3D::extractImageData):
524
525 2010-06-08  Erik Arvidsson  <arv@chromium.org>
526
527         Reviewed by Ojan Vafai.
528
529         REGRESSION: Weird focus behavior affects quoting on University of Washington message board system
530         https://bugs.webkit.org/show_bug.cgi?id=38548
531
532         Test: editing/selection/click-in-focusable-link-should-not-clear-selection.html
533
534         * page/FocusController.cpp:
535         (WebCore::clearSelectionIfNeeded): Make sure we do not clear selection when canStartSelection
536                                            returns false.
537
538 2010-06-08  Enrico Ros  <eros@codeaurora.org>
539
540         Reviewed by Ariya Hidayat.
541
542         [Qt] Crashfix on Path::contains
543         https://bugs.webkit.org/show_bug.cgi?id=40253
544
545         Fix accessing the first item of an empty vector, that happens when
546         CanvasRenderingContext2D::isPointInPath is invoked over a borderless
547         path (e.g. a path made of just a MoveTo operation).
548
549         * platform/graphics/qt/PathQt.cpp:
550         (WebCore::isPointOnPathBorder):
551
552 2010-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
553
554         Unreviewed, rolling out r60859.
555         http://trac.webkit.org/changeset/60859
556         https://bugs.webkit.org/show_bug.cgi?id=40334
557
558         Included debugging statements. Caused a test to fail.
559         (Requested by ojan on #webkit).
560
561         * page/FocusController.cpp:
562         (WebCore::clearSelectionIfNeeded):
563
564 2010-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
565
566         Unreviewed, rolling out r60858.
567         http://trac.webkit.org/changeset/60858
568         https://bugs.webkit.org/show_bug.cgi?id=40325
569
570         Qt needs a clean build. Rolling out the patch for now and fix
571         it tomorrow (Requested by krit on #webkit).
572
573         * css/CSSComputedStyleDeclaration.cpp:
574         (WebCore::):
575         * css/CSSPrimitiveValueMappings.h:
576         * css/SVGCSSComputedStyleDeclaration.cpp:
577         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
578         * css/SVGCSSParser.cpp:
579         (WebCore::CSSParser::parseSVGValue):
580         * css/SVGCSSPropertyNames.in:
581         * css/SVGCSSStyleSelector.cpp:
582         (WebCore::CSSStyleSelector::applySVGProperty):
583         * css/SVGCSSValueKeywords.in:
584         * rendering/RenderPath.cpp:
585         (WebCore::fillAndStrokePath):
586         * rendering/RenderSVGResourceContainer.h:
587         * rendering/RenderSVGResourceGradient.cpp:
588         (WebCore::RenderSVGResourceGradient::applyResource):
589         * rendering/RenderSVGResourcePattern.cpp:
590         (WebCore::RenderSVGResourcePattern::applyResource):
591         * rendering/style/SVGRenderStyle.h:
592         (WebCore::SVGRenderStyle::NonInheritedFlags::):
593         (WebCore::SVGRenderStyle::setBitDefaults):
594         * rendering/style/SVGRenderStyleDefs.h:
595         (WebCore::):
596         * svg/SVGLocatable.cpp:
597         (WebCore::SVGLocatable::computeCTM):
598         * svg/SVGStyledElement.cpp:
599         (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
600         * svg/svgattrs.in:
601
602 2010-06-08  Daniel Bates  <dbates@rim.com>
603
604         Unreviewed, fix Xcode project file after change-set 60841.
605
606         Xcode is not happy about the entries for files EditingBehavior.h and
607         EditingBehaviorTypes.h that were added in change-set 60841 (Bug # 39854).
608         Lets make Xcode happy.
609
610         Also, lets place these entries in alphabetic order.
611
612         * WebCore.xcodeproj/project.pbxproj:
613
614 2010-06-08  Erik Arvidsson  <arv@chromium.org>
615
616         Reviewed by ojan@chromium.org.
617
618         REGRESSION: Weird focus behavior affects quoting on University of Washington message board system
619         https://bugs.webkit.org/show_bug.cgi?id=38548
620
621         We should not clear the selection when canStartSelection returns false.
622
623         Test: editing/selection/click-in-focusable-link-should-not-clear-selection.html
624
625         * page/FocusController.cpp:
626         (WebCore::clearSelectionIfNeeded): Make sure we do not clear selection when canStartSelection
627                                            returns false.
628
629 2010-06-08  Dirk Schulze  <krit@webkit.org>
630
631         Reviewed by Nikolas Zimmermann.
632
633         Implement non-scaling-stroke (from SVG Tiny 1.2, also in Opera)
634         https://bugs.webkit.org/show_bug.cgi?id=31438
635         
636         This is the implementation of the SVG property vector-effect according
637         to the specification of SVG Tiny 1.2.
638         getScreenCTM() was not able to calculate the transformation matrix in
639         comparison to the host coordinate system for objects, that get refereced
640         by a use element. This is fixed and covered by the the new test as well.
641         This patch is based upon a patch of Jeff Schiller.
642
643         Test: svg/custom/non-scaling-stroke.svg
644
645         * css/CSSComputedStyleDeclaration.cpp: Added CSSPropertyVectorEffect.
646         (WebCore::):
647         * css/CSSPrimitiveValueMappings.h:
648         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
649         (WebCore::CSSPrimitiveValue::operator EVectorEffect):
650         * css/SVGCSSComputedStyleDeclaration.cpp:
651         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
652         * css/SVGCSSParser.cpp:
653         (WebCore::CSSParser::parseSVGValue):
654         * css/SVGCSSPropertyNames.in:
655         * css/SVGCSSStyleSelector.cpp:
656         (WebCore::CSSStyleSelector::applySVGProperty):
657         * css/SVGCSSValueKeywords.in: Add vector-effect value non-scaling-stroke.
658         * rendering/RenderPath.cpp: Revert transformations to ctm and transform path instead.
659         (WebCore::fillAndStrokePath):
660         * rendering/RenderSVGResourceContainer.h:
661         (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
662         * rendering/RenderSVGResourceGradient.cpp: Transform the gradient with the screenCTM.
663         (WebCore::RenderSVGResourceGradient::applyResource):
664         * rendering/RenderSVGResourcePattern.cpp: Transform the pattern with the screenCTM.
665         (WebCore::RenderSVGResourcePattern::applyResource):
666         * rendering/style/SVGRenderStyle.h: Added vector-effect property, not interited.
667         (WebCore::SVGRenderStyle::NonInheritedFlags::):
668         (WebCore::SVGRenderStyle::setBitDefaults):
669         * rendering/style/SVGRenderStyleDefs.h: Added enums for vector-effect.
670         (WebCore::):
671         * svg/SVGLocatable.cpp: Calculate screenCTM for <use> referenced objects.
672         (WebCore::SVGLocatable::computeCTM):
673         * svg/SVGStyledElement.cpp:
674         (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
675         * svg/svgattrs.in:
676
677 2010-06-08  Alexey Proskuryakov  <ap@apple.com>
678
679         * GNUmakefile.am: Also adding platform/Cursor.cpp to Gtk build.
680
681 2010-06-08  Csaba Osztrogonác  <ossy@webkit.org>
682
683         [Qt] Unreviewed buildfix after r60849.
684
685         * WebCore.pro: platform/Cursor.cpp is added to Qt build system.
686
687 2010-06-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
688
689         Unreviewed Buildbot fix.
690
691         Reset the Qt TextBreakIterator when reusing it.
692
693         * platform/text/qt/TextBreakIteratorQt.cpp:
694         (WebCore::setUpIterator):
695
696 2010-06-04  Alexey Proskuryakov  <ap@apple.com>
697
698         Reviewed by John Sullivan.
699
700         https://bugs.webkit.org/show_bug.cgi?id=15779
701         <rdar://problem/8002964> Custom CSS .cur cursor anchor point is ignored
702
703         Test: manual-tests/cur-hotspot.html
704
705         Currently, this patch only has effect in Safari 5 on Windows. Other platforms will need
706         to implement getting hot spot information from .cur files.
707
708         * WebCore.vcproj/WebCore.vcproj:
709         * WebCore.xcodeproj/project.pbxproj:
710         Added Cursor.cpp. Looks like TextWrangler fixed line endings in vcproj file.
711
712         * css/CSSCursorImageValue.cpp:
713         (WebCore::CSSCursorImageValue::CSSCursorImageValue): Renamed "hotspot" to "hotSpot" to match
714         other code.
715         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed): Ditto. Added a FIXME about possibly
716         incorrect code for resolving differences with CSS specified hotspot.
717
718         * css/CSSCursorImageValue.h:
719         (WebCore::CSSCursorImageValue::create):
720         (WebCore::CSSCursorImageValue::hotSpot):
721         Renamed "hotspot" to "hotSpot" to match other code.
722
723         * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): Start with an invalid value for hot
724         spot, so that we can differentiate between missing and (0, 0) CSS hot spots. Missing and
725         invalid (-1, -1) are treated identically by Firefox, so we don't need to differentiate these.
726
727         * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): Renamed "hotspot" to
728         "hotSpot" to match other code.
729
730         * page/EventHandler.cpp: (WebCore::EventHandler::selectCursor): Don't ignore cursors with
731         invalid CSS hot spots. Firefox ignores only the hot spot, not the whole cursor in this case
732         (and IE doesn't support CSS3 cursor declarations).
733
734         * platform/Cursor.cpp: Added. (WebCore::determineHotSpot): Added a function that decides
735         where hot spot is, provided an image and a possible out of band coordinate specification.
736
737         * platform/Cursor.h: Added determineHotSpot().
738
739         * platform/graphics/BitmapImage.cpp:
740         (WebCore::BitmapImage::getHotSpot):
741         * platform/graphics/BitmapImage.h:
742         * platform/graphics/Image.h:
743         (WebCore::Image::getHotSpot):
744         * platform/graphics/ImageSource.cpp:
745         (WebCore::ImageSource::getHotSpot):
746         * platform/graphics/ImageSource.h:
747         Added plumbing to get hot spot data from an image provider.
748
749         * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::getHotSpot): CG implemantation.
750
751         * platform/mac/CursorMac.mm: (WebCore::createCustomCursor): Call determineHotSpot() to 
752         determine where hot spot should be.
753         (WebCore::Cursor::Cursor): Renamed "hotspot" to "hotSpot" to match other code.
754
755         * platform/win/CursorWin.cpp: (WebCore::Cursor::Cursor): Call determineHotSpot() to determine
756         where hot spot should be.
757
758         * platform/gtk/CursorGtk.cpp: (WebCore::Cursor::Cursor): Ditto. This must be done despite
759         this platform not having an implementation for ImageSource::getHotSpot(), because we no longer
760         check for out of bounds hot spots in EventHandler::selectCursor().
761
762         * platform/qt/CursorQt.cpp: (WebCore::Cursor::Cursor): Ditto.
763
764 2010-06-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
765
766         Reviewed by Antti Koivisto.
767
768         [Qt] TextBreakIterator Qt performance
769         https://bugs.webkit.org/show_bug.cgi?id=39958
770
771         Rework TextBreakIteratorQt to be more in line with the ICU version.
772
773         We now reuse iterators where ever possible. The string data is compared
774         with memcmp, which should be faster than using a hash, as you need
775         to traverse the full buffer in the case the strings don't match,
776         where as the compare would fail quickly.
777
778         * platform/text/qt/TextBreakIteratorQt.cpp:
779         (WebCore::TextBreakIterator::TextBreakIterator):
780         (WebCore::setUpIterator):
781         (WebCore::wordBreakIterator):
782         (WebCore::characterBreakIterator):
783         (WebCore::lineBreakIterator):
784         (WebCore::sentenceBreakIterator):
785
786 2010-06-08  Andras Becsi  <abecsi@webkit.org>
787
788         Unreviewed build fix after r60785.
789
790         [GTK] Add missing GtkVersioning.h include to fix the build
791         on older GTK+ versions.
792
793         No new tests needed.
794
795         * platform/gtk/WidgetGtk.cpp:
796
797 2010-06-08  Yury Semikhatsky  <yurys@chromium.org>
798
799         Reviewed by Pavel Feldman.
800
801         Web Inspector: extend ScriptDebugServer to support script source editing
802         https://bugs.webkit.org/show_bug.cgi?id=40297
803
804         * bindings/js/ScriptDebugServer.cpp:
805         (WebCore::ScriptDebugServer::editScriptSource):
806         * bindings/js/ScriptDebugServer.h:
807         * bindings/v8/ScriptDebugServer.cpp:
808         (WebCore::ScriptDebugServer::editScriptSource):
809         * bindings/v8/ScriptDebugServer.h:
810         * inspector/InspectorBackend.cpp:
811         (WebCore::InspectorBackend::editScriptSource):
812         * inspector/InspectorBackend.h:
813         * inspector/InspectorBackend.idl:
814         * inspector/InspectorController.cpp:
815         (WebCore::InspectorController::InspectorController):
816         (WebCore::InspectorController::disableDebugger):
817         (WebCore::InspectorController::editScriptSource):
818         (WebCore::InspectorController::currentCallFrames):
819         (WebCore::InspectorController::didPause):
820         (WebCore::InspectorController::didContinue):
821         * inspector/InspectorController.h:
822         * inspector/InspectorFrontend.cpp:
823         (WebCore::InspectorFrontend::didEditScriptSource):
824         * inspector/InspectorFrontend.h:
825         * inspector/front-end/Script.js:
826         * inspector/front-end/ScriptsPanel.js:
827         (WebInspector.ScriptsPanel.prototype.canEditScripts):
828         (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
829         (WebInspector.ScriptsPanel.prototype.editScriptSource):
830         * inspector/front-end/Settings.js:
831         * inspector/front-end/SourceView.js:
832         (WebInspector.SourceView.prototype._editLine):
833         * inspector/front-end/TextViewer.js:
834         (WebInspector.TextViewer.prototype._handleDoubleClick):
835         (WebInspector.TextViewer.prototype._commitEditingLine):
836         * inspector/front-end/inspector.css:
837         (#scripts-files option.extension-script):
838
839 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
840
841         Reviewed by Ojan Vafai and Darin Adler.
842
843         Refactor platform dependent editing behavior code out of Settings
844         https://bugs.webkit.org/show_bug.cgi?id=39854
845
846         As per discussion in bug 36627, Darin Adler suggested: "before the addition of any new EditingBehavior,
847         I think we to add functions to translate the overall behavior policy into specific behaviors rather than
848         directly saying 'behavior == Mac' or 'behavior == Windows'. Helper functions that expression the different
849         rules in plain language.". Patch addresses this request.
850
851         No behavior change, so no new tests.
852
853         * GNUmakefile.am:
854         * WebCore.pro:
855         * WebCore/WebCore.vcproj/WebCore.vcproj
856         * WebCore/WebCore.xcodeproj/project.pbxproj
857         * page/Settings.cpp:
858         (WebCore::Settings::Settings):
859         * page/Settings.h: Moved out EditingBehavior enum to WebCore/editing/EditingBehaviorTypes.h,
860         and renamed to EditingBehaviorTypes.
861         (WebCore::Settings::setEditingBehaviorType): Renamed from setEditingBehavior.
862         (WebCore::Settings::editingBehaviorType): Renamed from editingBehavior.
863         * editing/EditingBehavior.h: Added.
864         (WebCore::EditingBehavior::EditingBehavior): Class to work as a central point for
865         editing behavior that might have to be handled differently in the different platforms/ports.
866         Class should be not used or instantiated directly, but rather implicitly constructed
867         through the Editor class.
868         (WebCore::EditingBehavior::shouldMoveCaretToHorizontalBoundaryWhenPastTopOrBottom):
869         (WebCore::EditingBehavior::shouldConsiderSelectionAsDirectional):
870         (WebCore::EditingBehavior::shouldCenterAlignWhenSelectionIsRevealed):
871         * editing/EditingBehaviorTypes.h: Added.
872         (WebCore::):
873         * editing/Editor.cpp:
874         (WebCore::Editor::behavior): Getter for EditingBehavior class.
875         * editing/Editor.h:
876         * editing/EditorCommand.cpp:
877         (WebCore::executeToggleStyle):
878         * editing/SelectionController.cpp:
879         (WebCore::SelectionController::setSelection):
880         (WebCore::SelectionController::setIsDirectional):
881         (WebCore::SelectionController::positionForPlatform):
882         (WebCore::SelectionController::modify):
883         * page/EventHandler.cpp:
884         (WebCore::EventHandler::handleMousePressEventSingleClick):
885         * rendering/RenderBlock.cpp:
886         (WebCore::RenderBlock::positionForPointWithInlineChildren):
887
888         - Call sites will look like:
889         if (frame->editor()->behavior().shouldThisIfThat()))
890            // do something
891
892 2010-06-08  Steve Block  <steveblock@google.com>
893
894         Reviewed by Jeremy Orlow.
895
896         Prevent Geolocation making callbacks to a ScriptExecutionContext that no longer exists
897         https://bugs.webkit.org/show_bug.cgi?id=40162
898
899         Before making callbacks, we check that the relevant ScriptExecutionContext still exists.
900         To achieve this, the callbacks inherit from ActiveDOMObject.
901
902         The ScriptExecutionContext is ref'ed from script, so may not be GC'ed for some time after
903         it is disconnected from its frame. Making the callback currently involves accessing the
904         Frame, so an additional check for the Frame is required.
905
906         This change also prevents the V8 bindings from incorrectly holding a reference to the Frame.
907
908         Test: fast/dom/Geolocation/callback-to-deleted-context.html
909
910         * bindings/js/JSCallbackData.cpp:
911         (WebCore::JSCallbackData::invokeCallback):
912         * bindings/js/JSCustomPositionCallback.cpp:
913         (WebCore::JSCustomPositionCallback::JSCustomPositionCallback):
914         (WebCore::JSCustomPositionCallback::handleEvent):
915         * bindings/js/JSCustomPositionErrorCallback.cpp:
916         (WebCore::JSCustomPositionErrorCallback::JSCustomPositionErrorCallback):
917         (WebCore::JSCustomPositionErrorCallback::handleEvent):
918         * bindings/v8/custom/V8CustomPositionCallback.cpp:
919         (WebCore::V8CustomPositionCallback::V8CustomPositionCallback):
920         (WebCore::V8CustomPositionCallback::handleEvent):
921         * bindings/v8/custom/V8CustomPositionCallback.h:
922         (WebCore::V8CustomPositionCallback::create):
923         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
924         (WebCore::V8CustomPositionErrorCallback::V8CustomPositionErrorCallback):
925         (WebCore::V8CustomPositionErrorCallback::handleEvent):
926         * bindings/v8/custom/V8CustomPositionErrorCallback.h:
927         (WebCore::V8CustomPositionErrorCallback::create):
928         * bindings/v8/custom/V8GeolocationCustom.cpp:
929         (WebCore::createPositionCallback):
930         (WebCore::createPositionErrorCallback):
931         * page/PositionCallback.h:
932         (WebCore::PositionCallback::PositionCallback):
933         * page/PositionErrorCallback.h:
934         (WebCore::PositionErrorCallback::PositionErrorCallback):
935
936 2010-06-08  Xan Lopez  <xlopez@igalia.com>
937
938         Reviewed by Gustavo Noronha.
939
940         [GTK] Avoid duplicated signals in DOM bindings
941         https://bugs.webkit.org/show_bug.cgi?id=40170
942
943         Do not create duplicated event signals between a class and its
944         ancestor.
945
946         * bindings/scripts/CodeGeneratorGObject.pm:
947
948 2010-06-08  MORITA Hajime  <morrita@google.com>
949
950         Unreviewd. Touched the file to force rebuild.
951
952         * html/HTMLMeterElement.idl:
953
954 2010-06-08  Vangelis Kokkevis  <vangelis@chromium.org>
955
956         Reviewed by Dimitri Glazkov.
957
958         [Chromium] Fix the math for transform matrices of composited layers. There
959         were problems both with how content layers were setting their position and
960         how the overal matrix stack was computed when the layer anchor isn't at the
961         center of the layer.
962         https://bugs.webkit.org/post_bug.cgi
963
964         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
965         (WebCore::GraphicsLayerChromium::updateContentsRect):
966         * platform/graphics/chromium/LayerRendererChromium.cpp:
967         (WebCore::LayerRendererChromium::updateLayersRecursive):
968         (WebCore::LayerRendererChromium::drawLayer):
969
970 2010-06-07  Eric Seidel  <eric@webkit.org>
971
972         Reviewed by Adam Barth.
973
974         HTML5Lexer does not handle <div FOO ><img><img></div> correctly
975         https://bugs.webkit.org/show_bug.cgi?id=40283
976
977         Fix a typo in the AfterAttributeNameState.
978         The compiler really should have caught this since the typo
979         resulted in unreachable code.
980
981         Tests:
982          10 tables/mozilla/marvin/colgroup* tests.
983          Also added a new sub-test in html5lib/resources/webkit01.dat
984
985         * html/HTML5Lexer.cpp:
986         (WebCore::HTML5Lexer::nextToken):
987          - Fix typo of = instead of >
988
989 2010-06-08  Adam Barth  <abarth@webkit.org>
990
991         Reviewed by Eric Seidel.
992
993         Implement HTML5's forceQuirks flag
994         https://bugs.webkit.org/show_bug.cgi?id=40284
995
996         I didn't implement this before because I didn't know how to test it,
997         but now I do.
998         
999         Tests:
1000           * fast/doctypes/doctype-parsing.html.
1001
1002         When we actually implement the quirks mode handling in the tree
1003         builder, we'll probably want to add to this test.
1004
1005         * html/HTML5Lexer.cpp:
1006         (WebCore::HTML5Lexer::nextToken):
1007         * html/HTML5Token.h:
1008         (WebCore::HTML5Token::forceQuirks):
1009         (WebCore::HTML5Token::setForceQuirks):
1010         * html/HTML5TreeBuilder.cpp:
1011         (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
1012         * html/HTMLParser.cpp:
1013         (WebCore::HTMLParser::parseDoctypeToken):
1014         * html/HTMLTokenizer.h:
1015         (WebCore::DoctypeToken::reset):
1016
1017 2010-06-08  Adam Barth  <abarth@webkit.org>
1018
1019         Reviewed by Eric Seidel.
1020
1021         Remove ASSERT in ~HTML5Tokenizer
1022         https://bugs.webkit.org/show_bug.cgi?id=40282
1023
1024         We thought this ASSERT would be a good idea, but the problem is that
1025         this object is deleted without warning in some circumstances, so
1026         there's no way to know whether it has reached the end of its state
1027         machine.
1028
1029         * html/HTML5Tokenizer.cpp:
1030         (WebCore::HTML5Tokenizer::~HTML5Tokenizer):
1031
1032 2010-06-07  MORITA Hajime  <morrita@google.com>
1033
1034         Reviewed by Kent Tamura.
1035
1036         [Mac] <meter> elements should be rendered as level indicators.        
1037         https://bugs.webkit.org/show_bug.cgi?id=40217
1038
1039         Implemented RenderThemeMac::paintMeter() using NSLevelIndicatorCell.
1040         
1041         This change also added new -webkit-appearance values to select the
1042         style of level indicators:
1043         
1044         - relevancy-level-indicator,
1045         - continuous-capacity-level-indicator,
1046         - discrete-capacity-level-indicator, and 
1047         - rating-level-indicator.
1048         
1049         The size of elements are adjusted based on the bounds of the indicator
1050         to make room for painting whole indicator cells.
1051
1052         Tests: fast/dom/HTMLMeterElement/meter-appearances-capacity.html
1053                fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy.html
1054                fast/dom/HTMLMeterElement/meter-optimums.html
1055
1056         * css/CSSPrimitiveValueMappings.h:
1057         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1058         * css/CSSValueKeywords.in:
1059         * html/HTMLMeterElement.cpp:
1060         (WebCore::HTMLMeterElement::gaugeRegion):
1061         * html/HTMLMeterElement.h:
1062         (WebCore::HTMLMeterElement::):
1063         * platform/ThemeTypes.h:
1064         (WebCore::):
1065         * rendering/RenderMeter.cpp:
1066         (WebCore::RenderMeter::calcWidth):
1067         (WebCore::RenderMeter::calcHeight):
1068         * rendering/RenderMeter.h:
1069         * rendering/RenderTheme.cpp:
1070         (WebCore::RenderTheme::adjustStyle):
1071         (WebCore::RenderTheme::paint):
1072         (WebCore::RenderTheme::paintBorderOnly):
1073         (WebCore::RenderTheme::paintDecorations):
1074         (WebCore::RenderTheme::meterSizeForBounds):
1075         * rendering/RenderTheme.h:
1076         * rendering/RenderThemeMac.h:
1077         * rendering/RenderThemeMac.mm:
1078         (WebCore::RenderThemeMac::meterSizeForBounds):
1079         (WebCore::RenderThemeMac::paintMeter):
1080         (WebCore::RenderThemeMac::levelIndicatorStyleFor):
1081         (WebCore::RenderThemeMac::levelIndicatorFor):
1082
1083 2010-06-07  MORITA Hajime  <morrita@google.com>
1084         
1085         Reviewed by Kent Tamura.
1086         
1087         [Mac] ENABLE_METER_TAG should be enabled.
1088         https://bugs.webkit.org/show_bug.cgi?id=40219
1089         
1090         * Configurations/FeatureDefines.xcconfig:
1091         * WebCore.xcodeproj/project.pbxproj:
1092         
1093 2010-06-07  Eric Seidel  <eric@webkit.org>
1094
1095         Unreviewed.  Just commit an edit XCode keeps making automatically.
1096
1097         It appears someone hand-edited the file, XCode no-like.
1098
1099         * WebCore.xcodeproj/project.pbxproj:
1100
1101 2010-06-07  Eric Seidel  <eric@webkit.org>
1102
1103         Reviewed by Adam Barth.
1104
1105         HTML5 Parser fails script-tests which use document.write
1106         https://bugs.webkit.org/show_bug.cgi?id=40276
1107
1108         We were leaving the TreeBuilder paused when executing the scripts
1109         resulting in document.write() calls being ignored.
1110
1111         I don't see a good way to ASSERT this correct behavior, since
1112         the HTML5ScriptRunner and the HTML5TreeBuilder do not know about
1113         each other.  We should never have document.write() called while
1114         the HTML5TreeBuilder is paused, however both document.write and
1115         the network call the same HTML5Tokenizer::write method.  It's OK
1116         to be paused when the network writes, but during document.write
1117         (or any other script execution).
1118
1119         Tested by all of fast/url and numerous other tests.
1120
1121         * html/HTML5Tokenizer.cpp:
1122         (WebCore::HTML5Tokenizer::notifyFinished):
1123          - Unpause the treebuilder before executing scripts.
1124         (WebCore::HTML5Tokenizer::executeScriptsWaitingForStylesheets):
1125          - Unpause the treebuilder before executing scripts.
1126
1127 2010-06-07  Eric Seidel  <eric@webkit.org>
1128
1129         Reviewed by Adam Barth.
1130
1131         HTML5 Parser hits ASSERT in fast/events/stop-load-in-unload-handler-using-document-write.html
1132         https://bugs.webkit.org/show_bug.cgi?id=40268
1133
1134         Teach HTML5Tokenizer about m_parserStopped.
1135
1136         While tracking down how m_parserStopped was used, I found
1137         several useless implementations of stopParsing() which I removed.
1138
1139         I also found a comment in HTMLTokenizer which still talks about the
1140         "part" (an old class now split into Frame, Page, FrameLoader, etc.)
1141         and an nearly empty FrameLoader::tokenizerProcessedData which I just
1142         inlined into its one caller.
1143
1144         Tests:
1145          fast/events/stop-load-in-unload-handler-using-document-write.html
1146          http/tests/security/xssAuditor/full-block-base-href.html
1147
1148         * html/HTML5Tokenizer.cpp:
1149         (WebCore::HTML5Tokenizer::pumpLexerIfPossible):
1150          - New method used instead of direct calls to pumpLexer for when
1151            callers would like to pump the lexer if possible, but don't want
1152            to check if the parser is stopped, etc.
1153         (WebCore::HTML5Tokenizer::pumpLexer):
1154          - Added an ASSERT that the parser is not stopped.
1155          - Stop pumping if the parser is stopped.
1156         (WebCore::HTML5Tokenizer::write):
1157          - Ignore the write if the parser is already stopped.
1158         (WebCore::HTML5Tokenizer::end):
1159         (WebCore::HTML5Tokenizer::attemptToEnd):
1160          - Move comment back to finish() which was incorrectly moved here.
1161         (WebCore::HTML5Tokenizer::endIfDelayed):
1162         (WebCore::HTML5Tokenizer::finish):
1163          - Move comment back here from attemptToEnd()
1164         (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution):
1165          - Remove a bogus ASSERT.  The lexer will stop when it needs
1166            more data, which may not necessarily mean m_source.isEmpty().
1167         * html/HTML5Tokenizer.h:
1168          - Add pumpLexerIfPossible().
1169         * html/HTMLTokenizer.cpp:
1170         (WebCore::HTMLTokenizer::stopParsing):
1171          - Add a FIXME about if we really should call checkCompleted() here.
1172          - Inline FrameLoader::tokenizerProcessedData() since this was the only caller.
1173         * loader/FrameLoader.cpp:
1174          - Remove tokenizerProcessedData()
1175         * loader/FrameLoader.h:
1176          - Remove tokenizerProcessedData()
1177         * loader/MediaDocument.cpp:
1178          - Remove unneeded Tokenizer::stopParsing() override.
1179         * loader/PluginDocument.cpp:
1180          - Remove unneeded Tokenizer::stopParsing() override.
1181         * loader/SinkDocument.cpp:
1182          - Remove unneeded Tokenizer::stopParsing() override.
1183
1184 2010-06-07  Adam Barth  <abarth@webkit.org>
1185
1186         Reviewed by Eric Seidel.
1187
1188         Fix XFrameOptions and xssAuditor crashes in HTML5 parser
1189         https://bugs.webkit.org/show_bug.cgi?id=40265
1190
1191         We're not supposed to call end() while the tokenizer's write() method.
1192         This causes a bunch of LayoutTests to crash.  In particular, this patch
1193         fixes crashes in the following tests:
1194
1195         Tests:
1196           * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html
1197           * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html
1198           * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html
1199           * http/tests/security/xssAuditor/full-block-base-href.html
1200           * http/tests/security/xssAuditor/full-block-get-from-iframe.html
1201           * http/tests/security/xssAuditor/full-block-iframe-javascript-url.html
1202           * http/tests/security/xssAuditor/full-block-link-onclick.html
1203           * http/tests/security/xssAuditor/full-block-post-from-iframe.html
1204           * http/tests/security/xssAuditor/full-block-script-tag.html
1205           * http/tests/security/xssAuditor/xss-protection-parsing-01.html
1206
1207         * html/HTML5Tokenizer.cpp:
1208         (WebCore::):
1209         (WebCore::HTML5Tokenizer::HTML5Tokenizer):
1210         (WebCore::HTML5Tokenizer::write):
1211         (WebCore::HTML5Tokenizer::attemptToEnd):
1212         (WebCore::HTML5Tokenizer::endIfDelayed):
1213         (WebCore::HTML5Tokenizer::finish):
1214         (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution):
1215         * html/HTML5Tokenizer.h:
1216         (WebCore::HTML5Tokenizer::inWrite):
1217
1218 2010-06-07  Eric Seidel  <eric@webkit.org>
1219
1220         Reviewed by Adam Barth.
1221
1222         HTML5 parser hits ASSERT in http/tests/misc/window-dot-stop.html
1223         https://bugs.webkit.org/show_bug.cgi?id=40264
1224
1225         * html/HTML5Tokenizer.cpp:
1226         (WebCore::HTML5Tokenizer::executeScript):
1227
1228 2010-06-07  Kinuko Yasuda  <kinuko@chromium.org>
1229
1230         Unreviewed.
1231
1232         Avoid "warning: no previous prototype for" in Snow Leopard compilation.
1233
1234         * platform/BlobItem.cpp: Added static to getFileSnapshotModificationTime().
1235
1236 2010-06-07  Kinuko Yasuda  <kinuko@chromium.org>
1237
1238         Reviewed by Jian Li.
1239
1240         Refactor FormData and Blob for better support of Blobs synthesized by BlobBuilder.
1241         https://bugs.webkit.org/show_bug.cgi?id=39083
1242
1243         - Introduces a new class BlobItem as a basic component of Blob and FormDataList.
1244         - File would become a special type of Blob that contains only one FileBlobItem.
1245         - Fix the dependency violation in FormData so that the files under platform/ do not include any html/ files.
1246
1247         The patch doesn't support the latest File API changes (e.g. type,
1248         url and slice's type parameters) and should not change any of its
1249         existing behaviors.
1250
1251         The existing tests should be able to be used for regression.
1252
1253         * CMakeLists.txt:
1254         * GNUmakefile.am:
1255         * WebCore.gypi:
1256         * WebCore.pro:
1257         * WebCore.vcproj/WebCore.vcproj:
1258         * WebCore.xcodeproj/project.pbxproj:
1259         * html/Blob.cpp:
1260         (WebCore::Blob::Blob):
1261         (WebCore::Blob::size):
1262         (WebCore::Blob::path):
1263         (WebCore::Blob::append):
1264         (WebCore::Blob::slice):
1265         * html/Blob.h:
1266         (WebCore::Blob::create):
1267         (WebCore::Blob::type):
1268         (WebCore::Blob::items):
1269         (WebCore::Blob::Blob):
1270         * html/File.cpp:
1271         (WebCore::File::File):
1272         (WebCore::File::name):
1273         * html/File.h:
1274         (WebCore::File::fileName):
1275         * html/FileReader.cpp:
1276         (WebCore::FileReader::readAsBinaryString):
1277         (WebCore::FileReader::readAsText):
1278         * html/FileStream.cpp:
1279         (WebCore::FileStream::openForRead):
1280         * html/FormDataList.cpp:
1281         (WebCore::FormDataList::appendString): Moved the line ending fix logic to StringBlobItem::convertToCString.
1282         (WebCore::FormDataList::appendBlob):
1283         * html/FormDataList.h:
1284         (WebCore::FormDataList::items):
1285         * html/HTMLFormElement.cpp:
1286         (WebCore::HTMLFormElement::createFormData):
1287         * html/HTMLProgressElement.cpp:
1288         * platform/BlobItem.cpp: Added.
1289         * platform/BlobItem.h: Added.
1290         * platform/network/FormData.cpp:
1291         (WebCore::FormDataElement::FormDataElement):
1292         (WebCore::FormData::create):
1293         (WebCore::FormData::createMultiPart):
1294         (WebCore::FormData::deepCopy):
1295         (WebCore::FormData::appendData):
1296         (WebCore::FormData::appendString):
1297         (WebCore::FormData::appendFile):
1298         (WebCore::FormData::appendFileRange):
1299         (WebCore::FormData::appendItems):
1300         (WebCore::FormData::appendItem):
1301         (WebCore::FormData::appendKeyValuePairItems):
1302         * platform/network/FormData.h:
1303         (WebCore::operator!=):
1304         * platform/network/mac/FormDataStreamMac.mm:
1305         (WebCore::closeCurrentStream):
1306         (WebCore::advanceCurrentStream):
1307         (WebCore::formCreate):
1308         (WebCore::formRead):
1309         (WebCore::setHTTPBody):
1310         * xml/XMLHttpRequest.cpp:
1311         (WebCore::XMLHttpRequest::send):
1312
1313 2010-06-07  Vangelis Kokkevis  <vangelis@chromium.org>
1314
1315         Reviewed by Dimitri Glazkov.
1316
1317         [chromium] Decoupled transform matrix update of composited layers from
1318         drawing and interposed a sorting step so that the layers are now composited
1319         back to front to get transparency working correctly. Also added missing code
1320         for the preserves3D CSS property.
1321
1322         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1323         (WebCore::GraphicsLayerChromium::updateLayerPreserves3D):
1324         * platform/graphics/chromium/LayerChromium.h:
1325         (WebCore::LayerChromium::setDrawTransform):
1326         (WebCore::LayerChromium::drawTransform):
1327         (WebCore::LayerChromium::setDrawOpacity):
1328         (WebCore::LayerChromium::drawOpacity):
1329         (WebCore::LayerChromium::preserves3D):
1330         * platform/graphics/chromium/LayerRendererChromium.cpp:
1331         (WebCore::compareLayerZ):
1332         (WebCore::LayerRendererChromium::drawLayers):
1333         (WebCore::LayerRendererChromium::updateLayersRecursive):
1334         (WebCore::LayerRendererChromium::drawLayer):
1335         * platform/graphics/chromium/LayerRendererChromium.h:
1336
1337 2010-06-07  Anton Muhin  <antonm@chromium.org>
1338
1339         Reviewed by Nate Chapin.
1340
1341         [Chromium] convert a key to AtomicString in V8NodeList::namedPropertyGetter
1342         https://bugs.webkit.org/show_bug.cgi?id=40238
1343
1344         Comparison to "length" below could be performed faster in this (major) case
1345         as it would only require direct pointer comparison (cf. to full text
1346         comparison if key is converted to WebCore::String.)
1347
1348         * bindings/v8/custom/V8NodeListCustom.cpp:
1349         (WebCore::V8NodeList::namedPropertyGetter):
1350
1351 2010-06-07  Ariya Hidayat  <ariya.hidayat@codeaurora.org>
1352
1353         Reviewed by Kenneth Rohde Christiansen.
1354
1355         [Qt] Fix GraphicsContext::clipOut to take the transformation matrix into account.
1356
1357         * platform/graphics/qt/GraphicsContextQt.cpp:
1358         (WebCore::GraphicsContext::clipOut):
1359
1360 2010-06-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1361
1362         Reviewed by Xan Lopez.
1363
1364         [gtk] web fonts not loaded properly in scribd html5 reader
1365         https://bugs.webkit.org/show_bug.cgi?id=38758
1366
1367         Avoid always giving a positive reply in createFontPlatformData. We
1368         do not want every non-existing family name to be considered a hit,
1369         or weird usage of local sources in @font-face rules will make
1370         WebKitGTK+ never consider the online fonts.
1371
1372         * GNUmakefile.am:
1373         * platform/graphics/cairo/FontCacheCairo.cpp:
1374         (WebCore::isWellKnownFontName):
1375         (WebCore::FontCache::createFontPlatformData):
1376         * platform/graphics/cairo/GOwnPtrCairo.cpp: Added.
1377         (WTF::FcPattern):
1378         (WTF::FcObjectSet):
1379         (WTF::FcFontSet):
1380         * platform/graphics/cairo/GOwnPtrCairo.h: Added.
1381
1382 2010-06-07  Adam Barth  <abarth@webkit.org>
1383
1384         Reviewed by Eric Seidel.
1385
1386         "Fix" fast/dom/stripNullFromTextNodes.html in HTML5 parser
1387         https://bugs.webkit.org/show_bug.cgi?id=40200
1388
1389         The proper handling of null characters is to replace them with U+FFFD.
1390         This patch "fixes" fast/dom/stripNullFromTextNodes.html in the sense
1391         that it makes it give the proper output w.r.t. HTML5.  However, that
1392         doesn't match the behavior of the old parser, which just stripped the
1393         nulls.
1394
1395         * html/HTML5Lexer.h:
1396         (WebCore::HTML5Lexer::InputStreamPreprocessor::peek):
1397
1398 2010-06-07  Adam Barth  <abarth@webkit.org>
1399
1400         Reviewed by Eric Seidel.
1401
1402         HTML5 parser should normalize line endings
1403         https://bugs.webkit.org/show_bug.cgi?id=40199
1404
1405         When reading characters from the source, we need to normalize line
1406         endings, which means treating \r as \n and folding \r\n sequences into
1407         a single \n.  Doing this requires a slightly tighter pattern for
1408         advancing the source (to make sure we update our state machine
1409         correctly).
1410
1411         Fixes fast/css/first-child-pseudo-class.html and hundreds of other
1412         LayoutTests in the HTML5 parser.
1413
1414         * html/HTML5Lexer.cpp:
1415         (WebCore::HTML5Lexer::nextToken):
1416         * html/HTML5Lexer.h:
1417         (WebCore::HTML5Lexer::InputStreamPreprocessor::LineEndingNormalizer):
1418             - Introduced InputStreamPreprocessor to keep track of our line
1419               endings state machine.  This class will grow to eventually do
1420               all the input stream preprocessing required by the HTML5 spec.
1421         (WebCore::HTML5Lexer::InputStreamPreprocessor::nextInputCharacter):
1422             - We need to be careful not to read *source more than
1423               once because we need to know whether we've transformed the
1424               character.  Keeping the next input character in this state
1425               machine requires some careful coding, but seems advantageous.
1426         (WebCore::HTML5Lexer::InputStreamPreprocessor::peek):
1427         (WebCore::HTML5Lexer::InputStreamPreprocessor::advance):
1428
1429 2010-06-07  Andrei Popescu  <andreip@google.com>
1430
1431         Reviewed by Jeremy Orlow.
1432
1433         run-bindings-tests results broken by Changeset 60776
1434         https://bugs.webkit.org/show_bug.cgi?id=40230
1435
1436         The change to CodeGeneratorJS.pm in 
1437         http://trac.webkit.org/changeset/60776/trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm
1438         added the possibility to use [CallWith=ScriptExecutionContext] in idl files.
1439
1440         Before the above change was submitted, CodeGeneratorJS.pm was modified so that native
1441         functions return EncodedJSValue instead of JSValues. This was done in
1442         http://trac.webkit.org/changeset/60631/trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm
1443
1444         This CL updates the CodeGeneratorJS.pm to correctly return an EncodedJSValue in the case
1445         where the ScriptExecutionContext pointer is 0 at the time when the native function is invoked.
1446
1447         No new tests, just fixing run-bindings-tests.
1448
1449         * bindings/scripts/CodeGeneratorJS.pm:
1450         * bindings/scripts/test/JS/JSTestObj.cpp:
1451         (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
1452         * bindings/scripts/test/JS/JSTestObj.h:
1453
1454 2010-06-07  Kwang Yul Seo  <skyul@company100.net>
1455
1456         Reviewed by Eric Seidel.
1457
1458         [BREWMP] Add dummy SearchPopupMenu implementation
1459         https://bugs.webkit.org/show_bug.cgi?id=40224
1460
1461         Add dummy implementation of SearchPopupMenu.
1462
1463         * platform/brew/SearchPopupMenuBrew.cpp: Added.
1464         (WebCore::SearchPopupMenu::saveRecentSearches):
1465         (WebCore::SearchPopupMenu::loadRecentSearches):
1466         (WebCore::SearchPopupMenu::SearchPopupMenu):
1467         (WebCore::SearchPopupMenu::enabled):
1468
1469 2010-06-07  Julien Chaffraix  <jchaffraix@webkit.org>
1470
1471         Unreviewed, reverting my HTML comment parsing change as it
1472         breaks Gtk and Qt.
1473
1474         * html/HTMLTokenizer.cpp:
1475         (WebCore::HTMLTokenizer::parseComment):
1476         (WebCore::HTMLTokenizer::parseTag):
1477         * html/HTMLTokenizer.h:
1478
1479 2010-06-07  Martin Robinson  <mrobinson@igalia.com>
1480
1481         Reviewed by Oliver Hunt.
1482
1483         [GTK] HTML5 input type=range is not drawn
1484         https://bugs.webkit.org/show_bug.cgi?id=39561
1485
1486         Support HTML5 range widgets. They are now drawn using the standard
1487         GTK+ theme drawing mechanism.
1488
1489         * platform/gtk/RenderThemeGtk.cpp:
1490         (WebCore::supportsFocus): Add focus support for parts of sliders.
1491         (WebCore::setMozillaState):
1492         Add the GtkThemeWidgetType argument and honor depressed states for slider thumbs.
1493         (WebCore::paintMozillaGtkWidget): Pass in the widget type to setMozillaState.
1494         (WebCore::RenderThemeGtk::paintSliderTrack): Added.
1495         (WebCore::RenderThemeGtk::adjustSliderTrackStyle): Added.
1496         (WebCore::RenderThemeGtk::paintSliderThumb): Added.
1497         (WebCore::RenderThemeGtk::adjustSliderThumbStyle): Added.
1498         (WebCore::RenderThemeGtk::adjustSliderThumbSize): Added support for non-media sliders.
1499         * platform/gtk/RenderThemeGtk.h: Added new method declarations.
1500
1501 2010-06-07  Martin Robinson  <mrobinson@igalia.com>
1502
1503         Reviewed by Xan Lopez.
1504
1505         [GTK] gtk_widget_get_window should replace widget->window
1506         https://bugs.webkit.org/show_bug.cgi?id=40180
1507
1508         Replace all uses of widget->window with gtk_widget_get_window. For older
1509         GTK+ versions, #define gtk_widget_get_window in GtkVersioning.h.
1510
1511         No tests necessary as functionality has not changed.
1512
1513         * platform/gtk/GtkPluginWidget.cpp:
1514         (WebCore::GtkPluginWidget::invalidateRect): Replace widget->window use.
1515         * platform/gtk/GtkVersioning.h: Add gtk_widget_get_window for old GTK+ versions.
1516         * platform/gtk/PlatformScreenGtk.cpp: 
1517         (WebCore::getVisual): Replace widget->window use.
1518         (WebCore::screenRect): Ditto.
1519         * platform/gtk/PopupMenuGtk.cpp:
1520         (WebCore::PopupMenu::show): Ditto.
1521         * platform/gtk/WidgetGtk.cpp:
1522         (WebCore::gdkDrawable): Ditto.
1523         (WebCore::Widget::setCursor): Ditto.
1524
1525 2010-06-07  Nikolas Zimmermann  <nzimmermann@rim.com>
1526
1527         Reviewed by Sam Weinig.
1528
1529         Add CPP bindings generator
1530         https://bugs.webkit.org/show_bug.cgi?id=38279
1531
1532         Add CPP bindings generator used in Olympia platform.
1533         We can succesfully generate cpp bindings for all IDLs except:
1534         - DOMWindow.idl / EventTarget.idl (filtered out in the IDL list in DerivedSources.make for non-jsc/v8 generators anyways, so no problem at all)
1535         - inspector/ (not needed for us at all)
1536         - svg/ (needs custom handling, related to animated attributes)
1537
1538         All generated files are free of style issues: "Total errors found: 0 in 510 files"
1539         Not integrated in any build system so far, though I've successfully tested on Mac and inside Olympia, of course.
1540
1541         * bindings/cpp: Added.
1542         * bindings/cpp/WebDOMCString.cpp: Added.
1543         (WebDOMCString::reset):
1544         (WebDOMCString::assign):
1545         (WebDOMCString::length):
1546         (WebDOMCString::data):
1547         (WebDOMCString::utf16):
1548         (WebDOMCString::fromUTF16):
1549         (WebDOMCString::WebDOMCString):
1550         (WebDOMCString::operator=):
1551         (WebDOMCString::operator WTF::CString):
1552         * bindings/cpp/WebDOMCString.h: Added.
1553         (WebDOMCString::~WebDOMCString):
1554         (WebDOMCString::WebDOMCString):
1555         (WebDOMCString::operator=):
1556         (WebDOMCString::isEmpty):
1557         (WebDOMCString::isNull):
1558         * bindings/cpp/WebDOMEventListenerCustom.cpp: Added.
1559         (WebDOMEventListener::handleEvent):
1560         (toWebKit):
1561         * bindings/cpp/WebDOMEventTarget.cpp: Added.
1562         (WebDOMEventTarget::WebDOMEventTargetPrivate::WebDOMEventTargetPrivate):
1563         (WebDOMEventTarget::WebDOMEventTarget):
1564         (WebDOMEventTarget::~WebDOMEventTarget):
1565         (WebDOMEventTarget::impl):
1566         (toWebCore):
1567         (toWebKit):
1568         * bindings/cpp/WebDOMEventTarget.h: Added.
1569         * bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Added.
1570         (documentWrite):
1571         (WebDOMHTMLDocument::write):
1572         (WebDOMHTMLDocument::writeln):
1573         * bindings/cpp/WebDOMNodeCustom.cpp: Added.
1574         (WebDOMNode::insertBefore):
1575         (WebDOMNode::replaceChild):
1576         (WebDOMNode::removeChild):
1577         (WebDOMNode::appendChild):
1578         (WebDOMNode::addEventListener):
1579         (WebDOMNode::removeEventListener):
1580         * bindings/cpp/WebDOMObject.h: Added.
1581         (WebDOMObject::WebDOMObject):
1582         (WebDOMObject::~WebDOMObject):
1583         * bindings/cpp/WebDOMString.cpp: Added.
1584         (WebDOMString::reset):
1585         (WebDOMString::assign):
1586         (WebDOMString::length):
1587         (WebDOMString::data):
1588         (WebDOMString::utf8):
1589         (WebDOMString::fromUTF8):
1590         (WebDOMString::WebDOMString):
1591         (WebDOMString::operator=):
1592         (WebDOMString::operator WebCore::String):
1593         (WebDOMString::operator WebCore::AtomicString):
1594         (WebDOMString::equals):
1595         * bindings/cpp/WebDOMString.h: Added.
1596         (WebDOMString::~WebDOMString):
1597         (WebDOMString::WebDOMString):
1598         (WebDOMString::operator=):
1599         (WebDOMString::isEmpty):
1600         (WebDOMString::isNull):
1601         * bindings/cpp/WebExceptionHandler.cpp: Added.
1602         (globalExceptionHandler):
1603         (webInstallExceptionHandler):
1604         (webRaiseDOMException):
1605         * bindings/cpp/WebExceptionHandler.h: Added.
1606         (webDOMRaiseError):
1607         * bindings/cpp/WebNativeEventListener.cpp: Added.
1608         (WebNativeEventListener::WebNativeEventListener):
1609         (WebNativeEventListener::~WebNativeEventListener):
1610         (WebNativeEventListener::handleEvent):
1611         (WebNativeEventListener::reportError):
1612         (WebNativeEventListener::operator==):
1613         * bindings/cpp/WebNativeEventListener.h: Added.
1614         (WebNativeEventListener::create):
1615         (WebNativeEventListener::cast):
1616         * bindings/scripts/CodeGeneratorCPP.pm: Added.
1617         * bindings/scripts/test/CPP: Added.
1618         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Added.
1619         (WebDOMTestCallback::WebDOMTestCallbackPrivate::WebDOMTestCallbackPrivate):
1620         (WebDOMTestCallback::WebDOMTestCallback):
1621         (WebDOMTestCallback::impl):
1622         (WebDOMTestCallback::~WebDOMTestCallback):
1623         (WebDOMTestCallback::callbackWithClass1Param):
1624         (WebDOMTestCallback::callbackWithClass2Param):
1625         (WebDOMTestCallback::callbackWithNonBoolReturnType):
1626         (toWebCore):
1627         (toWebKit):
1628         * bindings/scripts/test/CPP/WebDOMTestCallback.h: Added.
1629         * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Added.
1630         (WebDOMTestInterface::WebDOMTestInterfacePrivate::WebDOMTestInterfacePrivate):
1631         (WebDOMTestInterface::WebDOMTestInterface):
1632         (WebDOMTestInterface::impl):
1633         (WebDOMTestInterface::~WebDOMTestInterface):
1634         (toWebCore):
1635         (toWebKit):
1636         * bindings/scripts/test/CPP/WebDOMTestInterface.h: Added.
1637         * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Added.
1638         (WebDOMTestObj::WebDOMTestObjPrivate::WebDOMTestObjPrivate):
1639         (WebDOMTestObj::WebDOMTestObj):
1640         (WebDOMTestObj::impl):
1641         (WebDOMTestObj::~WebDOMTestObj):
1642         (WebDOMTestObj::readOnlyIntAttr):
1643         (WebDOMTestObj::readOnlyStringAttr):
1644         (WebDOMTestObj::readOnlyTestObjAttr):
1645         (WebDOMTestObj::intAttr):
1646         (WebDOMTestObj::setIntAttr):
1647         (WebDOMTestObj::longLongAttr):
1648         (WebDOMTestObj::setLongLongAttr):
1649         (WebDOMTestObj::unsignedLongLongAttr):
1650         (WebDOMTestObj::setUnsignedLongLongAttr):
1651         (WebDOMTestObj::stringAttr):
1652         (WebDOMTestObj::setStringAttr):
1653         (WebDOMTestObj::testObjAttr):
1654         (WebDOMTestObj::setTestObjAttr):
1655         (WebDOMTestObj::attrWithException):
1656         (WebDOMTestObj::setAttrWithException):
1657         (WebDOMTestObj::attrWithSetterException):
1658         (WebDOMTestObj::setAttrWithSetterException):
1659         (WebDOMTestObj::attrWithGetterException):
1660         (WebDOMTestObj::setAttrWithGetterException):
1661         (WebDOMTestObj::scriptStringAttr):
1662         (WebDOMTestObj::voidMethod):
1663         (WebDOMTestObj::voidMethodWithArgs):
1664         (WebDOMTestObj::intMethod):
1665         (WebDOMTestObj::intMethodWithArgs):
1666         (WebDOMTestObj::objMethod):
1667         (WebDOMTestObj::objMethodWithArgs):
1668         (WebDOMTestObj::methodThatRequiresAllArgs):
1669         (WebDOMTestObj::methodThatRequiresAllArgsAndThrows):
1670         (WebDOMTestObj::serializedValue):
1671         (WebDOMTestObj::methodWithException):
1672         (WebDOMTestObj::addEventListener):
1673         (WebDOMTestObj::removeEventListener):
1674         (WebDOMTestObj::withDynamicFrame):
1675         (WebDOMTestObj::withDynamicFrameAndArg):
1676         (WebDOMTestObj::withDynamicFrameAndOptionalArg):
1677         (WebDOMTestObj::withScriptStateVoid):
1678         (WebDOMTestObj::withScriptStateObj):
1679         (WebDOMTestObj::withScriptStateVoidException):
1680         (WebDOMTestObj::withScriptStateObjException):
1681         (WebDOMTestObj::methodWithOptionalArg):
1682         (WebDOMTestObj::methodWithNonOptionalArgAndOptionalArg):
1683         (WebDOMTestObj::methodWithNonOptionalArgAndTwoOptionalArgs):
1684         (toWebCore):
1685         (toWebKit):
1686         * bindings/scripts/test/CPP/WebDOMTestObj.h: Added.
1687         * css/StyleSheet.idl: Export helper method isCSSStyleSheet() for cpp bindings only.
1688         * dom/CustomEvent.idl: Disabled for cpp bindings, needs arbitary input parameter handling support ('DOMObject' type).
1689         * dom/Document.idl: Ignore getCSSCanvasContext() for cpp bindings and export helper method isHTMLDocument() (cpp bindings only).
1690         * dom/Event.idl: Export isMutationEvent()/isMouseEvent()/isUIEvent() helpers for cpp bindings only.
1691         * dom/EventListener.h: Add CPPEventListenerType.
1692         * dom/Node.idl: addEventListener/removeEventListener need [Custom] flag for cpp bindings.
1693         * dom/PopStateEvent.idl: Disabled just like CustomEvent, for the same reason ("any" argument type handling).
1694         * html/HTMLCanvasElement.idl: Disable getContext() method for cpp bindings, as it's done for objc bindings.
1695         * html/HTMLDocument.idl: Add [NoCPPCustom] marker for open(), as we're just autogenerating it.
1696         * html/HTMLInputElement.idl: Disable valueAsDate() method for cpp bindings, as we're missing native 'Date' type support.
1697         * html/TextMetrics.h: Add missing PassRefPtr.h include.
1698         * html/canvas/CanvasRenderingContext2D.idl: Disable methods (setLineCap, etc..) for cpp bindings whose names clash with property setters.
1699         * page/AbstractView.idl: Rename 'Media' type to 'StyleMedia' - this should have been done before.
1700         * page/Location.idl: Disable several methods which would need a custom implementation for the cpp bindings.
1701         * page/WebKitPoint.h: Add missing PassRefPtr.h include.
1702         * storage/SQLResultSet.idl: Correct type from 'long' to 'long long', for cpp bindings only though as it wouldn't build on Chromium/V8.
1703         * workers/DedicatedWorkerContext.idl: Disable postMessage() for now when using cpp bindings, would need custom code for us.
1704         * workers/WorkerContext.idl: Hide constructors from cpp bindings.
1705
1706 2010-06-07  Julien Chaffraix  <jchaffraix@webkit.org>
1707
1708         Reviewed by Alexey Proskuryakov.
1709
1710         Space should be allowed between -- and > in comment end
1711         https://bugs.webkit.org/show_bug.cgi?id=21945
1712
1713         Implemented the HTML comment parsing algorithm so that we match HTML5 and
1714         FF when parsing comments. Missing from this patch is
1715         the parser errors, which will be added in a follow up patch.
1716
1717         Added tests cases for broken comments.
1718
1719         Tests: fast/parser/broken-comment-1.html
1720                fast/parser/broken-comment-2.html
1721                fast/parser/broken-comment-3.html
1722                fast/parser/broken-comment-4.html
1723                fast/parser/broken-comment-5.html
1724                fast/parser/broken-comment-6.html
1725                fast/parser/broken-comment-in-head-1.html
1726                fast/parser/broken-comment-in-head-2.html
1727                fast/parser/broken-comment-in-head-3.html
1728                fast/parser/broken-comment-in-head-4.html
1729                fast/parser/broken-comment-in-head-5.html
1730
1731         * html/HTMLTokenizer.cpp:
1732         (WebCore::HTMLTokenizer::parseComment): Now we use a state machine
1733         that matches the HTML5 specification.
1734         (WebCore::HTMLTokenizer::emitCommentToken): This emits the comment token
1735         and keep some of the original behavior as parseComment is called in wrong
1736         context (inside a <title> for example). Added a more explicit comment about
1737         this.
1738         (WebCore::HTMLTokenizer::parseTag): Remove the handling of <!--> in quirks mode.
1739         HTML5 specifies that we should accept this in strict mode too.
1740         * html/HTMLTokenizer.h:
1741         (WebCore::HTMLTokenizer::): Added a new enum for the comment parsing state.
1742
1743 2010-06-07  Mahesh Kulakrni  <mahesh.kulkarni@nokia.com>
1744
1745         Reviewed by Simon Hausmann.
1746
1747         [QT] QT_BEARER flag is not enabled on S60 properly
1748         https://bugs.webkit.org/show_bug.cgi?id=39357
1749
1750         enable QT_BEARER for all platform based on qtmobility + 
1751         bearer module availability or for qt 4.7+
1752
1753         * WebCore.pri: 
1754
1755 2010-06-07  Leon Clarke  <leonclarke@google.com>
1756
1757         Reviewed by Jeremy Orlow.
1758
1759         Fix indexeddb idls in android makefile
1760         https://bugs.webkit.org/show_bug.cgi?id=40169
1761
1762         No new tests. Android-specific build fix.
1763
1764         * Android.derived.v8bindings.mk:
1765
1766 2010-06-07  Andrei Popescu  <andreip@google.com>
1767
1768         Reviewed by Jeremy Orlow.
1769
1770         [indexedDB] It is impossible to create object stores
1771         https://bugs.webkit.org/show_bug.cgi?id=40054
1772
1773         No new tests. Layout tests will be added separately.
1774
1775         * Android.mk:
1776         * CMakeLists.txt:
1777         * GNUmakefile.am:
1778         * WebCore.gypi:
1779         * WebCore.pro:
1780         * WebCore.vcproj/WebCore.vcproj:
1781         * WebCore.xcodeproj/project.pbxproj:
1782         * bindings/scripts/CodeGeneratorJS.pm:
1783         * bindings/scripts/CodeGeneratorV8.pm:
1784         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
1785         (webkit_dom_test_obj_with_script_execution_context):
1786         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
1787         * bindings/scripts/test/JS/JSTestObj.cpp:
1788         (WebCore::):
1789         (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
1790         * bindings/scripts/test/JS/JSTestObj.h:
1791         * bindings/scripts/test/ObjC/DOMTestObj.h:
1792         * bindings/scripts/test/ObjC/DOMTestObj.mm:
1793         (-[DOMTestObj withScriptExecutionContext]):
1794         * bindings/scripts/test/TestObj.idl:
1795         * bindings/scripts/test/V8/V8TestObj.cpp:
1796         (WebCore::TestObjInternal::withScriptExecutionContextCallback):
1797         (WebCore::):
1798         * page/DOMWindow.cpp:
1799         (WebCore::DOMWindow::clear):
1800         (WebCore::DOMWindow::indexedDB):
1801         * storage/IDBCallbacks.h:
1802         * storage/IDBDatabase.h:
1803         * storage/IDBDatabaseImpl.cpp:
1804         (WebCore::IDBDatabaseImpl::createObjectStore):
1805         * storage/IDBDatabaseImpl.h:
1806         * storage/IDBDatabaseRequest.cpp:
1807         (WebCore::IDBDatabaseRequest::IDBDatabaseRequest):
1808         (WebCore::IDBDatabaseRequest::createObjectStore):
1809         * storage/IDBDatabaseRequest.h:
1810         * storage/IDBDatabaseRequest.idl:
1811         * storage/IDBObjectStore.cpp: Removed.
1812         * storage/IDBObjectStore.h:
1813         (WebCore::IDBObjectStore::~IDBObjectStore):
1814         * storage/IDBObjectStoreImpl.cpp: Added.
1815         (WebCore::IDBObjectStoreImpl::~IDBObjectStoreImpl):
1816         (WebCore::IDBObjectStoreImpl::IDBObjectStoreImpl):
1817         (WebCore::IDBObjectStoreImpl::indexNames):
1818         (WebCore::IDBObjectStoreImpl::createIndex):
1819         (WebCore::IDBObjectStoreImpl::index):
1820         (WebCore::IDBObjectStoreImpl::removeIndex):
1821         * storage/IDBObjectStoreImpl.h: Added.
1822         (WebCore::IDBObjectStoreImpl::create):
1823         (WebCore::IDBObjectStoreImpl::name):
1824         (WebCore::IDBObjectStoreImpl::keyPath):
1825         * storage/IDBObjectStoreRequest.cpp:
1826         (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest):
1827         * storage/IDBObjectStoreRequest.h:
1828         (WebCore::IDBObjectStoreRequest::create):
1829         * storage/IDBRequest.cpp:
1830         (WebCore::IDBRequest::onSuccess):
1831         * storage/IDBRequest.h:
1832         * storage/IndexedDatabaseRequest.cpp:
1833         (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest):
1834         (WebCore::IndexedDatabaseRequest::open):
1835         * storage/IndexedDatabaseRequest.h:
1836         (WebCore::IndexedDatabaseRequest::create):
1837         * storage/IndexedDatabaseRequest.idl:
1838
1839 2010-06-07  Nikolas Zimmermann  <nzimmermann@rim.com>
1840
1841         Not reviewed. Updated run-bindings-tests results.
1842
1843         * bindings/scripts/test/JS/JSTestInterface.cpp:
1844         (WebCore::JSTestInterfaceConstructor::constructTestInterface):
1845         * bindings/scripts/test/JS/JSTestObj.cpp:
1846         (WebCore::jsTestObjPrototypeFunctionVoidMethod):
1847         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
1848         (WebCore::jsTestObjPrototypeFunctionIntMethod):
1849         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
1850         (WebCore::jsTestObjPrototypeFunctionObjMethod):
1851         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
1852         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
1853         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
1854         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
1855         (WebCore::jsTestObjPrototypeFunctionMethodWithException):
1856         (WebCore::jsTestObjPrototypeFunctionCustomMethod):
1857         (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs):
1858         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
1859         (WebCore::jsTestObjPrototypeFunctionAddEventListener):
1860         (WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
1861         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrame):
1862         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
1863         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
1864         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
1865         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
1866         (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid):
1867         (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
1868         (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
1869         (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
1870         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
1871         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
1872         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
1873         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
1874         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
1875         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
1876         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
1877         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
1878         * bindings/scripts/test/JS/JSTestObj.h:
1879
1880 2010-06-07  Pavel Podivilov  <podivilov@chromium.org>
1881
1882         Reviewed by Pavel Feldman.
1883
1884         Web Inspector: Implement JSON parsing for InspectorValue.
1885         https://bugs.webkit.org/show_bug.cgi?id=40064
1886
1887         * inspector/InspectorValues.cpp:
1888         (WebCore::):
1889         (WebCore::InspectorValue::asBool):
1890         (WebCore::InspectorValue::asNumber):
1891         (WebCore::InspectorValue::asString):
1892         (WebCore::InspectorValue::asObject):
1893         (WebCore::InspectorValue::asArray):
1894         (WebCore::InspectorValue::readJSON):
1895         (WebCore::InspectorValue::writeJSON):
1896         (WebCore::InspectorBasicValue::asBool):
1897         (WebCore::InspectorBasicValue::asNumber):
1898         (WebCore::InspectorBasicValue::writeJSON):
1899         (WebCore::InspectorString::asString):
1900         (WebCore::InspectorObject::asObject):
1901         (WebCore::InspectorObject::getBool):
1902         (WebCore::InspectorObject::getNumber):
1903         (WebCore::InspectorObject::getString):
1904         (WebCore::InspectorObject::getObject):
1905         (WebCore::InspectorObject::getArray):
1906         (WebCore::InspectorObject::get):
1907         (WebCore::InspectorArray::asArray):
1908         * inspector/InspectorValues.h:
1909         (WebCore::InspectorObject::begin):
1910         (WebCore::InspectorObject::end):
1911
1912 2010-06-07  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1913
1914         Reviewed by Simon Hausmann.
1915
1916         [Qt] Fix text selection drawing.
1917         https://bugs.webkit.org/show_bug.cgi?id=40221
1918
1919         The regression was introduced in r60169.
1920
1921         * platform/graphics/qt/FontQt.cpp:
1922         (WebCore::drawTextCommon):
1923
1924 2010-06-07  Yury Semikhatsky  <yurys@chromium.org>
1925
1926         Reviewed by Pavel Feldman.
1927
1928         Web Inspector: should be possible to distinguish extension scripts from main world scripts
1929         https://bugs.webkit.org/show_bug.cgi?id=40220
1930
1931         * bindings/js/ScriptDebugServer.cpp: remove global listeners set which is not used anymore.
1932         (WebCore::ScriptDebugServer::dispatchDidParseSource): pass script wrold type to the listeners.
1933         (WebCore::currentWorldType):
1934         (WebCore::ScriptDebugServer::sourceParsed):
1935         * bindings/js/ScriptDebugServer.h:
1936         * bindings/v8/ScriptDebugServer.cpp:
1937         (WebCore::ScriptDebugServer::dispatchDidParseSource):
1938         * inspector/InspectorController.cpp:
1939         (WebCore::InspectorController::didParseSource):
1940         * inspector/InspectorController.h:
1941         * inspector/InspectorFrontend.cpp:
1942         (WebCore::InspectorFrontend::parsedScriptSource):
1943         * inspector/InspectorFrontend.h:
1944         * inspector/ScriptDebugListener.h: pass type of the isolated world where the script was compiled to didParseSource.
1945         (WebCore::):
1946         * inspector/front-end/InjectedScript.js:
1947         (injectedScriptConstructor):
1948         * inspector/front-end/Script.js:
1949         (WebInspector.Script):
1950         * inspector/front-end/ScriptsPanel.js:
1951         (WebInspector.ScriptsPanel.prototype.addScript):
1952         (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu): use different style to highlight content scripts.
1953         * inspector/front-end/inspector.css:
1954         (#scripts-files option.extension-script):
1955         * inspector/front-end/inspector.js:
1956         (WebInspector.parsedScriptSource):
1957
1958 2010-06-06  MORITA Hajime  <morrita@google.com>
1959
1960         Unreviewd, Chromium windows build fix.
1961
1962         * rendering/RenderThemeChromiumWin.cpp:
1963         (WebCore::RenderThemeChromiumWin::paintProgressBar):
1964
1965 2010-06-06  MORITA Hajime  <morrita@google.com>
1966
1967         Reviewed by Kent Tamura.
1968
1969         ASSERTION FAILED with -webkit-appearance:progress-bar for non <progress> elements
1970         https://bugs.webkit.org/show_bug.cgi?id=40158
1971
1972         paintProgressBar() and paintMeter() assumed given RenderObject is
1973         RenderProgress or RenderMeter respectively, but arbitrary elements
1974         can have -webkit-appearance: progress-bar and such elements
1975         violates that assumption. So this change added type check before
1976         downcasting the RenderObject.
1977
1978         * platform/qt/RenderThemeQt.cpp:
1979         (WebCore::RenderThemeQt::paintProgressBar):
1980         * rendering/RenderTheme.cpp:
1981         (WebCore::RenderTheme::paintMeter):
1982         * rendering/RenderThemeChromiumSkia.cpp:
1983         (WebCore::RenderThemeChromiumSkia::paintProgressBar):
1984         * rendering/RenderThemeChromiumWin.cpp:
1985         (WebCore::RenderThemeChromiumWin::paintProgressBar):
1986         * rendering/RenderThemeMac.mm:
1987         (WebCore::RenderThemeMac::paintProgressBar):
1988
1989 2010-06-06  Gavin Barraclough  <barraclough@apple.com>
1990
1991         Reviewed by NOBODY (Qt build fix pt 2).
1992
1993         * bridge/qt/qt_runtime.cpp:
1994         (JSC::Bindings::findMethodIndex):
1995         (JSC::Bindings::QtRuntimeMetaMethod::call):
1996         (JSC::Bindings::QtRuntimeConnectionMethod::call):
1997
1998 2010-06-06  Gavin Barraclough  <barraclough@apple.com>
1999
2000         Reviewed by NOBODY (Qt build fix).
2001
2002         * bridge/qt/qt_runtime.cpp:
2003         (JSC::Bindings::findMethodIndex):
2004         (JSC::Bindings::QtRuntimeMetaMethod::call):
2005         (JSC::Bindings::QtRuntimeConnectionMethod::call):
2006
2007 2010-06-06  Gavin Barraclough  <barraclough@apple.com>
2008
2009         Reviewed by Sam Weinig.
2010
2011         Bug 40214 - Clean up error construction / throwing in JSC.
2012         
2013         The one egregious insanity here is that creating an error requires
2014         a VM-entry-esqe-host call (the string argument is wrapped as a JS
2015         object & pushed on the RegisterFile, then unwrapped back to a
2016         UString).  Changing this also means you only require a global
2017         object, not an ExecState, to create an error.
2018
2019         The methods to create error objects are also parameterized
2020         requiring a switch on the type, which can be made cleaner and
2021         faster by moving to a separate method per error type.  Code to add
2022         divot information to error had been duplicated, and is coalesced
2023         back into a single function.
2024
2025         Convenience methods added to create & throw type & syntax error
2026         with a default error message, since this is a common case.
2027
2028         Also, errors are currently thrown either using
2029         "throwError(exec, error)" or "exec->setException(error)" - unify
2030         on the former, since this is more commonly used.  Add
2031         "throwVMError(exec, error)" equivalents, as a convenience for
2032         cases where the result was being wrapped in "JSValue::encode(...)".
2033
2034         * WebCore.xcodeproj/project.pbxproj:
2035         * bindings/js/JSArrayBufferConstructor.h:
2036         (WebCore::construct):
2037         * bindings/js/JSArrayBufferViewHelper.h:
2038         (WebCore::setWebGLArrayHelper):
2039         * bindings/js/JSAudioConstructor.cpp:
2040         (WebCore::constructAudio):
2041         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
2042         (WebCore::JSCanvasRenderingContext2D::setFillColor):
2043         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
2044         (WebCore::JSCanvasRenderingContext2D::drawImage):
2045         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
2046         (WebCore::JSCanvasRenderingContext2D::setShadow):
2047         (WebCore::JSCanvasRenderingContext2D::createPattern):
2048         (WebCore::JSCanvasRenderingContext2D::fillText):
2049         (WebCore::JSCanvasRenderingContext2D::strokeText):
2050         * bindings/js/JSClipboardCustom.cpp:
2051         (WebCore::JSClipboard::clearData):
2052         (WebCore::JSClipboard::getData):
2053         (WebCore::JSClipboard::setDragImage):
2054         * bindings/js/JSDOMBinding.cpp:
2055         (WebCore::setDOMException):
2056         (WebCore::toJSSequence):
2057         * bindings/js/JSDOMWrapper.cpp:
2058         (WebCore::DOMObject::defineOwnProperty):
2059         * bindings/js/JSDesktopNotificationsCustom.cpp:
2060         (WebCore::JSNotificationCenter::requestPermission):
2061         * bindings/js/JSEventSourceConstructor.cpp:
2062         (WebCore::constructEventSource):
2063         * bindings/js/JSHTMLDocumentCustom.cpp:
2064         (WebCore::JSHTMLDocument::open):
2065         * bindings/js/JSHTMLInputElementCustom.cpp:
2066         (WebCore::JSHTMLInputElement::selectionStart):
2067         (WebCore::JSHTMLInputElement::setSelectionStart):
2068         (WebCore::JSHTMLInputElement::selectionEnd):
2069         (WebCore::JSHTMLInputElement::setSelectionEnd):
2070         (WebCore::JSHTMLInputElement::setSelectionRange):
2071         * bindings/js/JSImageConstructor.cpp:
2072         (WebCore::constructImage):
2073         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
2074         (WebCore::JSJavaScriptCallFrame::evaluate):
2075         * bindings/js/JSMessageChannelConstructor.cpp:
2076         (WebCore::JSMessageChannelConstructor::construct):
2077         * bindings/js/JSMessagePortCustom.cpp:
2078         (WebCore::fillMessagePortArray):
2079         * bindings/js/JSOptionConstructor.cpp:
2080         (WebCore::constructHTMLOptionElement):
2081         * bindings/js/JSSVGMatrixCustom.cpp:
2082         (WebCore::JSSVGMatrix::multiply):
2083         * bindings/js/JSSharedWorkerConstructor.cpp:
2084         (WebCore::constructSharedWorker):
2085         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2086         (WebCore::JSWebGLRenderingContext::bufferData):
2087         (WebCore::JSWebGLRenderingContext::bufferSubData):
2088         (WebCore::getObjectParameter):
2089         (WebCore::JSWebGLRenderingContext::getFramebufferAttachmentParameter):
2090         (WebCore::JSWebGLRenderingContext::getParameter):
2091         (WebCore::JSWebGLRenderingContext::getProgramParameter):
2092         (WebCore::JSWebGLRenderingContext::getShaderParameter):
2093         (WebCore::JSWebGLRenderingContext::getUniform):
2094         (WebCore::JSWebGLRenderingContext::texImage2D):
2095         (WebCore::JSWebGLRenderingContext::texSubImage2D):
2096         (WebCore::dataFunctionf):
2097         (WebCore::dataFunctioni):
2098         (WebCore::dataFunctionMatrix):
2099         * bindings/js/JSWebSocketConstructor.cpp:
2100         (WebCore::constructWebSocket):
2101         * bindings/js/JSWebSocketCustom.cpp:
2102         (WebCore::JSWebSocket::send):
2103         * bindings/js/JSWorkerConstructor.cpp:
2104         (WebCore::constructWorker):
2105         * bindings/js/JSXMLHttpRequestConstructor.cpp:
2106         (WebCore::constructXMLHttpRequest):
2107         * bindings/js/JSXMLHttpRequestCustom.cpp:
2108         (WebCore::JSXMLHttpRequest::open):
2109         * bindings/js/SerializedScriptValue.cpp:
2110         (WebCore::BaseWalker::throwStackOverflow):
2111         (WebCore::BaseWalker::throwInterruptedException):
2112         (WebCore::SerializingTreeWalker::startArray):
2113         (WebCore::SerializingTreeWalker::startObject):
2114         * bindings/js/WorkerScriptController.cpp:
2115         (WebCore::WorkerScriptController::setException):
2116         * bindings/scripts/CodeGeneratorJS.pm:
2117         * bridge/c/c_instance.cpp:
2118         (JSC::Bindings::CInstance::moveGlobalExceptionToExecState):
2119         (JSC::Bindings::CInstance::invokeMethod):
2120         (JSC::Bindings::CInstance::invokeDefaultMethod):
2121         (JSC::Bindings::CInstance::invokeConstruct):
2122         * bridge/jni/jsc/JNIBridgeJSC.cpp:
2123         (JavaField::dispatchValueFromInstance):
2124         (JavaField::dispatchSetValueToInstance):
2125         * bridge/jni/jsc/JavaInstanceJSC.cpp:
2126         (JavaInstance::invokeMethod):
2127         * bridge/objc/objc_instance.mm:
2128         (ObjcInstance::moveGlobalExceptionToExecState):
2129         (ObjcInstance::invokeMethod):
2130         * bridge/objc/objc_runtime.mm:
2131         (JSC::Bindings::ObjcField::valueFromInstance):
2132         (JSC::Bindings::ObjcField::setValueToInstance):
2133         (JSC::Bindings::ObjcArray::setValueAt):
2134         (JSC::Bindings::ObjcArray::valueAt):
2135         (JSC::Bindings::callObjCFallbackObject):
2136         * bridge/objc/objc_utility.h:
2137         * bridge/objc/objc_utility.mm:
2138         (JSC::Bindings::throwError):
2139         * bridge/runtime_array.cpp:
2140         (JSC::RuntimeArray::put):
2141         * bridge/runtime_method.cpp:
2142         (JSC::callRuntimeMethod):
2143         * bridge/runtime_object.cpp:
2144         (JSC::Bindings::RuntimeObject::throwInvalidAccessError):
2145
2146 2010-06-06  Dirk Schulze  <krit@webkit.org>
2147
2148         Reviewed by Nikolas Zimmermann.
2149
2150         hit testing does not respect clip paths
2151         https://bugs.webkit.org/show_bug.cgi?id=15162
2152
2153         Test: svg/dynamic-updates/SVGClipPath-influences-hitTesting.html
2154         
2155         Added a check, if a float point is not only in the shape/object boundaries
2156         but also is not in the clipped away area of a clipPath.
2157
2158         * rendering/HitTestRequest.h:
2159         (WebCore::HitTestRequest::):
2160         (WebCore::HitTestRequest::svgClipContent):
2161         * rendering/RenderPath.cpp:
2162         (WebCore::RenderPath::fillContains):
2163         (WebCore::RenderPath::nodeAtFloatPoint):
2164         * rendering/RenderPath.h:
2165         * rendering/RenderSVGContainer.cpp:
2166         (WebCore::RenderSVGContainer::nodeAtFloatPoint):
2167         * rendering/RenderSVGImage.cpp:
2168         (WebCore::RenderSVGImage::nodeAtFloatPoint):
2169         * rendering/RenderSVGResourceClipper.cpp:
2170         (WebCore::RenderSVGResourceClipper::hitTestClipContent):
2171         * rendering/RenderSVGResourceClipper.h:
2172         * rendering/RenderSVGText.cpp:
2173         (WebCore::RenderSVGText::nodeAtFloatPoint):
2174         * rendering/SVGRenderSupport.cpp:
2175         (WebCore::pointInClippingArea):
2176         * rendering/SVGRenderSupport.h:
2177
2178 2010-06-06  Dirk Schulze  <krit@webkit.org>
2179
2180         Reviewed by Nikolas Zimmermann.
2181
2182         SVG Pattern/Gradient clean-up
2183         https://bugs.webkit.org/show_bug.cgi?id=40205
2184
2185         Transformations of SVG Patterns and Gradients can be bundeled.
2186         This calculation also needs just to be calculated once. It's not a great speed-up for most platforms,
2187         but a clean-up and preparation for new features like vectorEffects and others.
2188         Now, that we don't recalucluate the gradient and its transformations, it was necessary to add a way
2189         to transform alreday existing gradients on Cairo. This is done in the same way like Skia transforms
2190         gradients after they were created.
2191         
2192         This patch doesn't change functionality, so no new tests added.
2193
2194         * platform/graphics/Gradient.cpp:
2195         * platform/graphics/cairo/GradientCairo.cpp:
2196         (WebCore::Gradient::setPlatformGradientSpaceTransform):
2197         * rendering/RenderSVGResourceGradient.cpp:
2198         (WebCore::RenderSVGResourceGradient::applyResource):
2199         * rendering/RenderSVGResourceGradient.h:
2200         * rendering/RenderSVGResourcePattern.cpp:
2201         (WebCore::RenderSVGResourcePattern::applyResource):
2202         (WebCore::RenderSVGResourcePattern::createTileImage):
2203         (WebCore::RenderSVGResourcePattern::buildPattern):
2204         * rendering/RenderSVGResourcePattern.h:
2205
2206 2010-06-05  Dumitru Daniliuc  <dumi@chromium.org>
2207
2208         Unreviewed, typo/build fix.
2209
2210         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
2211         (WebCore::V8SQLStatementErrorCallback::handleEvent):
2212
2213 2010-05-28  Dumitru Daniliuc  <dumi@chromium.org>
2214
2215         Reviewed by Adam Barth.
2216
2217         Do not pass empty handles to v8.
2218         https://bugs.webkit.org/show_bug.cgi?id=39896
2219
2220         Passing an empty handle to v8 results in a crash with a stack
2221         trace that doesn't give us much information about the cause of the
2222         crash. Instead, if we check the handles we pass to v8 and crash
2223         when they are empty, we do not make things worse, and should get a
2224         more informative stack trace.
2225
2226         * bindings/scripts/CodeGeneratorV8.pm:
2227         * bindings/scripts/test/V8/V8TestCallback.cpp:
2228         (WebCore::V8TestCallback::callbackWithClass1Param):
2229         (WebCore::V8TestCallback::callbackWithClass2Param):
2230         * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp:
2231         (WebCore::V8SQLStatementErrorCallback::handleEvent):
2232
2233 2010-05-30  Antonio Gomes  <tonikitoo@webkit.org>
2234
2235         Reviewed by Darin Adler.
2236
2237         Add a convenient helper getter for Frame* to RenderObject
2238         https://bugs.webkit.org/show_bug.cgi?id=39928
2239
2240         document()->frame() is being called enough from RenderObject derivated classes
2241         that it worth adding a helper Frame getter as a shortcut.
2242
2243         No behavior change, so no new tests.
2244
2245         * accessibility/AccessibilityRenderObject.cpp:
2246         (WebCore::AccessibilityRenderObject::isOffScreen):
2247         (WebCore::AccessibilityRenderObject::stringValue):
2248         (WebCore::AccessibilityRenderObject::selection):
2249         (WebCore::AccessibilityRenderObject::setSelectedVisiblePositionRange):
2250         * page/EventHandler.cpp:
2251         (WebCore::canAutoscroll):
2252         * rendering/InlineTextBox.cpp:
2253         (WebCore::InlineTextBox::paint):
2254         (WebCore::InlineTextBox::paintCustomHighlight):
2255         (WebCore::InlineTextBox::paintTextMatchMarker):
2256         * rendering/RenderBlock.cpp:
2257         (WebCore::RenderBlock::paintCaret):
2258         * rendering/RenderBox.cpp:
2259         (WebCore::RenderBox::paintCustomHighlight):
2260         * rendering/RenderDataGrid.cpp:
2261         (WebCore::RenderDataGrid::isActive):
2262         * rendering/RenderFrameSet.cpp:
2263         (WebCore::RenderFrameSet::flattenFrameSet):
2264         * rendering/RenderImage.cpp:
2265         (WebCore::RenderImage::paintFocusRings):
2266         * rendering/RenderInline.cpp:
2267         (WebCore::RenderInline::addDashboardRegions):
2268         * rendering/RenderLayer.cpp:
2269         (WebCore::RenderLayer::~RenderLayer):
2270         (WebCore::RenderLayer::panScrollFromPoint):
2271         (WebCore::RenderLayer::scrollByRecursively):
2272         (WebCore::RenderLayer::scrollToOffset):
2273         (WebCore::RenderLayer::autoscroll):
2274         (WebCore::RenderLayer::isActive):
2275         (showLayerTree):
2276         * rendering/RenderLayerBacking.cpp:
2277         (WebCore::inspectorTimelineAgent):
2278         * rendering/RenderListBox.cpp:
2279         (WebCore::RenderListBox::paintItemForeground):
2280         (WebCore::RenderListBox::paintItemBackground):
2281         (WebCore::RenderListBox::panScroll):
2282         (WebCore::RenderListBox::autoscroll):
2283         (WebCore::RenderListBox::isActive):
2284         * rendering/RenderObject.cpp:
2285         (WebCore::RenderObject::~RenderObject):
2286         (WebCore::RenderObject::selectionBackgroundColor):
2287         (WebCore::RenderObject::selectionForegroundColor):
2288         (WebCore::RenderObject::destroy):
2289         (WebCore::RenderObject::addDashboardRegions):
2290         (WebCore::RenderObject::animation):
2291         * rendering/RenderObject.h:
2292         (WebCore::RenderObject::document):
2293         (WebCore::RenderObject::frame):
2294
2295 2010-06-05  Jonathan Kliegman  <kliegs@chromium.org>
2296
2297         Reviewed by Dirk Schulze.
2298
2299         SVG doesn't support rgba colors
2300         https://bugs.webkit.org/show_bug.cgi?id=16183
2301
2302         Enabled processing of rgba, hsl and hsla color specifications
2303         for SVG files.  SVG spec calls for CSS2 but common usage and
2304         other browsers suppor CSS3 colors being used in SVG files
2305
2306         Removed unused svg paramater from CSSParser::parseColorFromValue
2307
2308         Tests: svg/custom/fill-opacity-hsl.svg
2309                svg/custom/fill-opacity-rgba.svg
2310
2311         * css/CSSParser.cpp:
2312         (WebCore::CSSParser::parseColorFromValue):
2313         * css/CSSParser.h:
2314         * css/SVGCSSParser.cpp:
2315         (WebCore::CSSParser::parseSVGValue):
2316         (WebCore::CSSParser::parseSVGPaint):
2317         (WebCore::CSSParser::parseSVGColor):
2318         * svg/SVGColor.cpp:
2319         (WebCore::SVGColor::colorFromRGBColorString):
2320
2321 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2322
2323         Reviewed by Eric Seidel.
2324
2325         [Qt] ContextMenuItemQt.cpp has coding-style errors
2326         https://bugs.webkit.org/show_bug.cgi?id=39780
2327
2328         * platform/qt/ContextMenuItemQt.cpp:
2329
2330 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2331
2332         Reviewed by Eric Seidel.
2333
2334         [Qt] ContextMenuQt.cpp has coding-style errors
2335         https://bugs.webkit.org/show_bug.cgi?id=39779
2336
2337         * platform/qt/ContextMenuQt.cpp:
2338
2339 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2340
2341         Reviewed by Eric Seidel.
2342
2343         [Qt] DragDataQt.cpp has coding-style errors
2344         https://bugs.webkit.org/show_bug.cgi?id=39777
2345
2346         * platform/qt/DragDataQt.cpp:
2347
2348 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2349
2350         Reviewed by Eric Seidel.
2351
2352         [Qt] FileChooserQt.cpp has coding-style errors
2353         https://bugs.webkit.org/show_bug.cgi?id=39776
2354
2355         * platform/qt/FileChooserQt.cpp:
2356
2357 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2358
2359         Reviewed by Eric Seidel.
2360
2361         [Qt] FileSystemQt.cpp has coding-style errors
2362         https://bugs.webkit.org/show_bug.cgi?id=39775
2363
2364         * platform/qt/FileSystemQt.cpp:
2365
2366 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2367
2368         Reviewed by Eric Seidel.
2369
2370         [Qt] KURLQt.cpp has coding-style errors
2371         https://bugs.webkit.org/show_bug.cgi?id=39774
2372
2373         * platform/qt/KURLQt.cpp:
2374
2375 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2376
2377         Reviewed by Eric Seidel.
2378
2379         [Qt] LoggingQt.cpp has coding-style errors
2380         https://bugs.webkit.org/show_bug.cgi?id=39772
2381
2382         * platform/qt/LoggingQt.cpp:
2383
2384 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2385
2386         Reviewed by Eric Seidel.
2387
2388         [Qt] PlatformKeyboardEventQt.cpp has coding-style errors
2389         https://bugs.webkit.org/show_bug.cgi?id=39770
2390
2391         * platform/qt/PlatformKeyboardEventQt.cpp:
2392         (WebCore::keyIdentifierForQtKeyCode):
2393         (WebCore::windowsKeyCodeForKeyEvent):
2394         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2395
2396 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2397
2398         Reviewed by Eric Seidel.
2399
2400         [Qt] PlatformScreenQt.cpp has coding-style errors
2401         https://bugs.webkit.org/show_bug.cgi?id=39768
2402
2403         * platform/qt/PlatformMouseEventQt.cpp:
2404         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2405
2406 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2407
2408         Reviewed by Eric Seidel.
2409
2410         [Qt] RenderThemeQt.cpp has coding-style errors
2411         https://bugs.webkit.org/show_bug.cgi?id=39767
2412
2413         * platform/qt/RenderThemeQt.cpp:
2414
2415 2010-06-05  Anders Bakken  <agbakken@gmail.com>
2416
2417         Reviewed by Eric Seidel.
2418
2419         [Qt] ScrollbarQt.cpp has coding-style errors
2420         https://bugs.webkit.org/show_bug.cgi?id=39765
2421
2422         * platform/qt/ScrollbarQt.cpp:
2423
2424 2010-06-04  Adam Barth  <abarth@webkit.org>
2425
2426         Reviewed by Eric Seidel.
2427
2428         Make HTML5Lexer go fast
2429         https://bugs.webkit.org/show_bug.cgi?id=40048
2430
2431         This patch changes us from using a jump table for each character to
2432         using absolute jumps between parser states.  This appears to be about a
2433         1% improvement on the parser bench mark (which is 1/10th of what we
2434         need to catch the old parser).
2435
2436         I've kept the underlying logic as close to the old logic as possible.
2437         This new form will make it easier to handle the input stream part of
2438         the spec and to make further performance improvements.
2439
2440         * html/HTML5Lexer.cpp:
2441         (WebCore::HTML5Lexer::reset):
2442         (WebCore::HTML5Lexer::nextToken):
2443         (WebCore::HTML5Lexer::emitCurrentToken):
2444         * html/HTML5Lexer.h:
2445
2446 2010-06-04  Adam Barth  <abarth@webkit.org>
2447
2448         Reviewed by Darin Adler.
2449
2450         HTML5 parser should be within 1% of old parser performance
2451         https://bugs.webkit.org/show_bug.cgi?id=40172
2452
2453         Stop using adopt().  I think this function is cause us to do extra
2454         mallocs that are hurting performance.  Instead of caching AtomicString
2455         on HTML5Token, just use the AtomicString on the old token.  Also,
2456         reserve inline capacity for 10 attributes.
2457
2458         * html/HTML5Lexer.cpp:
2459         (WebCore::HTML5Lexer::isAppropriateEndTag):
2460         * html/HTML5Lexer.h:
2461         * html/HTML5Token.h:
2462         (WebCore::HTML5Token::beginStartTag):
2463         (WebCore::HTML5Token::beginEndTag):
2464         (WebCore::HTML5Token::beginCharacter):
2465         (WebCore::HTML5Token::beginComment):
2466         (WebCore::HTML5Token::beginDOCTYPE):
2467         (WebCore::HTML5Token::name):
2468         (WebCore::HTML5Token::characters):
2469         (WebCore::HTML5Token::comment):
2470         * html/HTML5TreeBuilder.cpp:
2471         (WebCore::convertToOldStyle):
2472         (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
2473
2474 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2475
2476         Reviewed by Eric Seidel.
2477
2478         [Qt] ScrollbarThemeQt.cpp has coding-style errors
2479         https://bugs.webkit.org/show_bug.cgi?id=39764
2480
2481         * platform/qt/ScrollbarThemeQt.cpp:
2482         (WebCore::scPart):
2483         (WebCore::scrollbarPart):
2484         (WebCore::styleOptionSlider):
2485
2486 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2487
2488         Reviewed by Eric Seidel.
2489
2490         [Qt] SharedTimerQt.cpp has coding-style errors
2491         https://bugs.webkit.org/show_bug.cgi?id=39763
2492
2493         * platform/qt/SharedTimerQt.cpp:
2494
2495 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2496
2497         Reviewed by Eric Seidel.
2498
2499         WidgetQt.cpp has coding-style errors
2500         https://bugs.webkit.org/show_bug.cgi?id=39759
2501
2502         * platform/qt/WidgetQt.cpp:
2503
2504 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2505
2506         Reviewed by Eric Seidel.
2507
2508         TemporaryLinkStubsQt.cpp has coding-style errors
2509         https://bugs.webkit.org/show_bug.cgi?id=39761
2510
2511         * platform/qt/TemporaryLinkStubsQt.cpp:
2512
2513 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2514
2515         Reviewed by Eric Seidel.
2516
2517         [Qt] SoundQt.cpp has coding-style errors
2518         https://bugs.webkit.org/show_bug.cgi?id=39762
2519
2520         * platform/qt/SoundQt.cpp:
2521
2522 2010-06-04  Andreas Kling  <andreas.kling@nokia.com>
2523
2524         Reviewed by Dirk Schulze.
2525
2526         Canvas createPattern(img, repetition) shouldn't throw INVALID_STATE_ERR when !img.complete
2527         https://bugs.webkit.org/show_bug.cgi?id=40166
2528
2529         Spec link:
2530         http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-createpattern
2531
2532         Test: http/tests/misc/canvas-pattern-from-incremental-image.html (updated)
2533
2534         * html/canvas/CanvasRenderingContext2D.cpp:
2535         (WebCore::CanvasRenderingContext2D::createPattern):
2536
2537 2010-06-04  Anders Bakken  <agbakken@gmail.com>
2538
2539         Reviewed by David Levin.
2540
2541         [Qt] Localizations.cpp has coding-style errors
2542         https://bugs.webkit.org/show_bug.cgi?id=39773
2543
2544         * platform/qt/Localizations.cpp:
2545         (WebCore::localizedMediaTimeDescription):
2546
2547 2010-06-04  Lyon Chen  <liachen@rim.com>
2548
2549         Reviewed by Darin Adler.
2550
2551         ApplicationCacheStorage::storeNewestCache() Crash WebKit when openDatabase(true) failed
2552         https://bugs.webkit.org/show_bug.cgi?id=40074
2553
2554         Adding m_database.isOpen() check for every openDatabase(true) call, this is needed because
2555         openDatabase(true) could still fail, for example when cacheStorage is full or no longer available.
2556
2557         * loader/appcache/ApplicationCacheStorage.cpp:
2558         (WebCore::ApplicationCacheStorage::store):
2559         (WebCore::ApplicationCacheStorage::storeNewestCache):
2560
2561 2010-06-04  Sheriff Bot  <webkit.review.bot@gmail.com>
2562
2563         Unreviewed, rolling out r60684.
2564         http://trac.webkit.org/changeset/60684
2565         https://bugs.webkit.org/show_bug.cgi?id=40196
2566
2567         This patch broke chromium reliability tests (Requested by
2568         tonyg-cr on #webkit).
2569
2570         * bindings/v8/ScriptSourceCode.h:
2571         (WebCore::ScriptSourceCode::ScriptSourceCode):
2572         * bindings/v8/V8Proxy.cpp:
2573         (WebCore::V8Proxy::compileScript):
2574         (WebCore::V8Proxy::evaluate):
2575         * bindings/v8/V8Proxy.h:
2576
2577 2010-06-04  Chris Fleizach  <cfleizach@apple.com>
2578
2579         Reviewed by David Kilzer.
2580
2581         AX: need an aria-help
2582         https://bugs.webkit.org/show_bug.cgi?id=40010
2583
2584         Test: accessibility/aria-help.html
2585
2586         * accessibility/AccessibilityRenderObject.cpp:
2587         (WebCore::AccessibilityRenderObject::helpText):
2588         * html/HTMLAttributeNames.in:
2589
2590 2010-06-04  Andreas Kling  <andreas.kling@nokia.com>
2591
2592         Reviewed by Tor Arne Vestbø.
2593
2594         [Qt] Canvas arc() with zero radius should draw a line to the start point
2595         https://bugs.webkit.org/show_bug.cgi?id=40164
2596
2597         Spec link:
2598         http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc
2599
2600         * platform/graphics/qt/PathQt.cpp:
2601         (WebCore::Path::addArc):
2602
2603 2010-06-04  Martin Robinson  <mrobinson@igalia.com>
2604
2605         Reviewed by Xan Lopez.
2606
2607         [GTK] RenderThemeGtk leaks memory
2608         https://bugs.webkit.org/show_bug.cgi?id=40168
2609
2610         Call gtk_widget_destroy in the RenderThemeGtk destructor. This cleans
2611         up all widget resources when a theme is destroyed.
2612
2613         No new tests, because functionality has not changed.
2614
2615         * platform/gtk/RenderThemeGtk.cpp:
2616         (WebCore::RenderThemeGtk::~RenderThemeGtk): Call gtk_widget_destroy on m_gtkWindow.
2617
2618 2010-06-04  Martin Robinson  <mrobinson@igalia.com>
2619
2620         Reviewed by Xan Lopez.
2621
2622         [GTK] RenderThemeGtk leaks memory
2623         https://bugs.webkit.org/show_bug.cgi?id=40168
2624
2625         Remove the use of releaseRef to assign a value to a RefPtr. This results in
2626         the original pointer taking an extra reference.
2627
2628         * platform/gtk/RenderThemeGtk.cpp:
2629         (WebCore::RenderThemeGtk::initMediaStyling): Remove the use of releaseRef here.
2630
2631 2010-06-04  Adam Barth  <abarth@webkit.org>
2632
2633         Reviewed by Gavin Barraclough.
2634
2635         Try to fix the windows build
2636         https://bugs.webkit.org/show_bug.cgi?id=40189
2637
2638         Suppress the "unreachable code" warning because we want to assert that
2639         we don't reach certain code points.
2640
2641         * html/HTML5Lexer.cpp:
2642
2643 2010-06-04  Adam Barth  <abarth@webkit.org>
2644
2645         Reviewed by Eric Seidel.
2646
2647         Make HTML5Lexer go fast
2648         https://bugs.webkit.org/show_bug.cgi?id=40048
2649
2650         A couple more cases like the previous patch that I missed.
2651
2652         * html/HTML5Lexer.cpp:
2653         (WebCore::HTML5Lexer::nextToken):
2654
2655 2010-06-04  Adam Barth  <abarth@webkit.org>
2656
2657         Reviewed by Eric Seidel.
2658
2659         Make HTML5Lexer go fast
2660         https://bugs.webkit.org/show_bug.cgi?id=40048
2661
2662         Make all the state transitions in the machine explicit.  This allows us
2663         to remove all the break statements, which won't work correctly after we
2664         change the macro definitions.
2665
2666         Also, while I was looking at every line of code, I fixed a bunch of the
2667         one-line-if style errors introduces in my previous patches.
2668
2669         * html/HTML5Lexer.cpp:
2670         (WebCore::HTML5Lexer::nextToken):
2671
2672 2010-06-04  Gavin Barraclough  <barraclough@apple.com>
2673
2674         Reviewed by Oliver Hunt.
2675
2676         Bug 40187 - Change function signature of NativeConstructor to match NativeFunction
2677
2678         Mostly for consistency, but constructor & args arguments are redundant,
2679         and this will help if we wish to be able to JIT calls to more constructors.
2680
2681         * bindings/js/JSArrayBufferConstructor.cpp:
2682         (WebCore::constructCanvasArrayBuffer):
2683         * bindings/js/JSAudioConstructor.cpp:
2684         (WebCore::constructAudio):
2685         * bindings/js/JSEventSourceConstructor.cpp:
2686         (WebCore::constructEventSource):
2687         * bindings/js/JSFloatArrayConstructor.cpp:
2688         (WebCore::constructCanvasFloatArray):
2689         * bindings/js/JSImageConstructor.cpp:
2690         (WebCore::constructImage):
2691         * bindings/js/JSInt16ArrayConstructor.cpp:
2692         (WebCore::constructCanvasShortArray):
2693         * bindings/js/JSInt32ArrayConstructor.cpp:
2694         (WebCore::constructCanvasIntArray):
2695         * bindings/js/JSInt8ArrayConstructor.cpp:
2696         (WebCore::constructCanvasByteArray):
2697         * bindings/js/JSMessageChannelConstructor.cpp:
2698         (WebCore::JSMessageChannelConstructor::construct):
2699         * bindings/js/JSMessageChannelConstructor.h:
2700         * bindings/js/JSOptionConstructor.cpp:
2701         (WebCore::constructHTMLOptionElement):
2702         * bindings/js/JSSharedWorkerConstructor.cpp:
2703         (WebCore::constructSharedWorker):
2704         * bindings/js/JSUint16ArrayConstructor.cpp:
2705         (WebCore::constructCanvasUnsignedShortArray):
2706         * bindings/js/JSUint32ArrayConstructor.cpp:
2707         (WebCore::constructCanvasUnsignedIntArray):
2708         * bindings/js/JSUint8ArrayConstructor.cpp:
2709         (WebCore::constructCanvasUnsignedByteArray):
2710         * bindings/js/JSWebKitCSSMatrixConstructor.cpp:
2711         (WebCore::constructWebKitCSSMatrix):
2712         * bindings/js/JSWebKitPointConstructor.cpp:
2713         (WebCore::constructWebKitPoint):
2714         * bindings/js/JSWebSocketConstructor.cpp:
2715         (WebCore::constructWebSocket):
2716         * bindings/js/JSWorkerConstructor.cpp:
2717         (WebCore::constructWorker):
2718         * bindings/js/JSXMLHttpRequestConstructor.cpp:
2719         (WebCore::constructXMLHttpRequest):
2720         * bindings/js/JSXSLTProcessorConstructor.cpp:
2721         (WebCore::constructXSLTProcessor):
2722         * bindings/scripts/CodeGeneratorJS.pm:
2723         * bridge/runtime_object.cpp:
2724         (JSC::Bindings::callRuntimeConstructor):
2725
2726 2010-06-04  Adam Barth  <abarth@webkit.org>
2727
2728         Reviewed by Eric Seidel.
2729
2730         Make HTML5Lexer go fast
2731         https://bugs.webkit.org/show_bug.cgi?id=40048
2732
2733         Change the intent of the loop to match what it's going to be once we
2734         remove the loop.  This is a whitespace only change that will make the
2735         final diff much, much smaller.  Sorry for the transient ugly style.
2736
2737         * html/HTML5Lexer.cpp:
2738         (WebCore::HTML5Lexer::nextToken):
2739
2740 2010-06-04  Adam Barth  <abarth@webkit.org>
2741
2742         Reviewed by Eric Seidel.
2743
2744         Make HTML5Lexer go fast
2745         https://bugs.webkit.org/show_bug.cgi?id=40048
2746
2747         Introduce ADVANCE_TO macro.  This is the last macro we need to
2748         introduce.
2749
2750         * html/HTML5Lexer.cpp:
2751         (WebCore::HTML5Lexer::nextToken):
2752
2753 2010-06-04  Adam Barth  <abarth@webkit.org>
2754
2755         Reviewed by Eric Seidel.
2756
2757         Make HTML5Lexer go fast
2758         https://bugs.webkit.org/show_bug.cgi?id=40048
2759
2760         Fix the rest of the RECONSUME_IN cases that were missed by our script.
2761         Also, reorder some assigment to prepare for the ADVANCE_TO patch.
2762
2763         * html/HTML5Lexer.cpp:
2764         (WebCore::HTML5Lexer::nextToken):
2765
2766 2010-06-04  Adam Barth  <abarth@webkit.org>
2767
2768         Reviewed by Eric Seidel.
2769
2770         Make HTML5Lexer go fast
2771         https://bugs.webkit.org/show_bug.cgi?id=40048
2772
2773         This patch handles the FLUSH_AND_ADVANCE_TO case.  Again, this patch
2774         introduces style errors that will be fixed shortly.
2775
2776         * html/HTML5Lexer.cpp:
2777         (WebCore::HTML5Lexer::nextToken):
2778
2779 2010-06-04  Adam Barth  <abarth@webkit.org>
2780
2781         Reviewed by Eric Seidel.
2782
2783         Make HTML5Lexer go fast
2784         https://bugs.webkit.org/show_bug.cgi?id=40048
2785
2786         This patch handles the FLUSH_EMIT_AND_RESUME_IN case.  This patch
2787         introduces some bad style w.r.t. one-line if statements, but we'll fix
2788         them all automatically in cleanup patch when we're done.
2789
2790         * html/HTML5Lexer.cpp:
2791         (WebCore::HTML5Lexer::nextToken):
2792
2793 2010-06-04  Adam Barth  <abarth@webkit.org>
2794
2795         Reviewed by Eric Seidel.
2796
2797         Make HTML5Lexer go fast
2798         https://bugs.webkit.org/show_bug.cgi?id=40048
2799
2800         More small steps.  This patch deals with emitting tokens.
2801
2802         * html/HTML5Lexer.cpp:
2803         (WebCore::HTML5Lexer::nextToken):
2804
2805 2010-06-04  Adam Barth  <abarth@webkit.org>
2806
2807         Reviewed by Eric Seidel.
2808
2809         Make HTML5Lexer go fast
2810         https://bugs.webkit.org/show_bug.cgi?id=40048
2811
2812         The next step: using macros to delimit each state.  Evetually, we're
2813         going to change what these macros expand to.
2814
2815         * html/HTML5Lexer.cpp:
2816         (WebCore::HTML5Lexer::nextToken):
2817
2818 2010-06-04  Adam Barth  <abarth@webkit.org>
2819
2820         Reviewed by Eric Seidel.
2821
2822         Make HTML5Lexer go fast
2823         https://bugs.webkit.org/show_bug.cgi?id=40048
2824
2825         We're going to do this patch in small steps to make it easier to verify correctness.
2826
2827         * html/HTML5Lexer.cpp:
2828         (WebCore::HTML5Lexer::nextToken):
2829
2830 2010-06-04  Jay Civelli  <jcivelli@chromium.org>
2831
2832         Reviewed by David Levin.
2833
2834         [chromium] Adding support for the left and right Windows keys to the
2835                    NativeWebKeyboardEvent.
2836         https://bugs.webkit.org/show_bug.cgi?id=39752
2837
2838         * platform/chromium/KeyCodeConversionGtk.cpp:
2839         (WebCore::windowsKeyCodeForKeyEvent):
2840
2841 2010-06-04  Dirk Schulze  <krit@webkit.org>
2842
2843         Reviewed by Nikolas Zimmermann.
2844
2845         SVG filter on filter don't work
2846         https://bugs.webkit.org/show_bug.cgi?id=32708
2847         
2848         Any child of <text> was not allowed to use the same filter as the text root. 
2849         I couldn't found any reason in the SVG specification that legimitate this.
2850         Only batik also doesn't allow the same filter on the text root as on it's childs,
2851         while any other effect is still allowed.
2852         I removed this limitation so that the result looks like the result on Firefox.
2853
2854         Test: svg/filters/filter-on-filter-for-text.svg
2855
2856         * rendering/SVGRenderSupport.cpp:
2857         (WebCore::SVGRenderBase::prepareToRenderSVGContent):
2858         * rendering/SVGRenderSupport.h:
2859         * rendering/SVGRootInlineBox.cpp:
2860         (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker):
2861         (WebCore::SVGRootInlineBoxPaintWalker::chunkStartCallback):
2862         (WebCore::SVGRootInlineBox::paint):
2863
2864 2010-06-04  Nate Chapin  <japhet@chromium.org>
2865
2866         Reviewed by Adam Barth.
2867
2868         Factor PageCache functionality out of FrameLoader and into
2869         PageCache itself.
2870
2871         https://bugs.webkit.org/show_bug.cgi?id=39382
2872
2873         Refactor only, so no new tests.
2874
2875         * history/PageCache.cpp:
2876         (WebCore::pageCacheLogPrefix):
2877         (WebCore::pageCacheLog):
2878         (WebCore::logCanCacheFrameDecision):
2879         (WebCore::logCanCachePageDecision):
2880         (WebCore::PageCache::canCachePageContainingThisFrame):
2881         (WebCore::PageCache::canCache):
2882         (WebCore::PageCache::add):
2883         (WebCore::PageCache::get):
2884         * history/PageCache.h:
2885         * loader/DocumentLoader.cpp:
2886         (WebCore::DocumentLoader::commitIfReady):
2887         * loader/FrameLoader.cpp:
2888         (WebCore::FrameLoader::commitProvisionalLoad):
2889         (WebCore::FrameLoader::prepareForCachedPageRestore):
2890         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
2891         (WebCore::FrameLoader::loadProvisionalItemFromCachedPage):
2892         (WebCore::FrameLoader::navigateToDifferentDocument):
2893         * loader/FrameLoader.h:
2894         (WebCore::FrameLoader::quickRedirectComing):
2895         * svg/graphics/SVGImage.cpp:
2896         (WebCore::SVGImage::dataChanged):
2897
2898 2010-06-04  Ilya Tikhonovsky  <loislo@chromium.org>
2899
2900         Reviewed by Pavel Feldman.
2901
2902         WebInspector: Web Inspector: it would be better to push object properties to JSON string in order of insertion.
2903         https://bugs.webkit.org/show_bug.cgi?id=40140
2904
2905         * inspector/InspectorValues.cpp:
2906         (WebCore::InspectorObject::writeJSON):
2907         * inspector/InspectorValues.h:
2908         (WebCore::InspectorObject::setBool):
2909         (WebCore::InspectorObject::setNumber):
2910         (WebCore::InspectorObject::setString):
2911         (WebCore::InspectorObject::set):
2912
2913 2010-06-04  Tony Gentilcore  <tonyg@chromium.org>
2914
2915         Reviewed by Adam Barth.
2916
2917         Persist V8's ScriptData to the memory cache.
2918         https://bugs.webkit.org/show_bug.cgi?id=38661
2919
2920         This stores V8's ScriptData in the memory cache and also causes the
2921         network platform layer to be notified of the available cacheable
2922         metadata.
2923
2924         Chromium's morejs benchmark shows a 3-4% improvement on fast hardware.
2925
2926         No new tests because no new functionality.
2927
2928         * bindings/v8/ScriptSourceCode.h:
2929         (WebCore::ScriptSourceCode::ScriptSourceCode):
2930         (WebCore::ScriptSourceCode::cachedScript):
2931         * bindings/v8/V8Proxy.cpp:
2932         (WebCore::V8Proxy::compileScript):
2933         (WebCore::V8Proxy::precompileScript):
2934         (WebCore::V8Proxy::evaluate):
2935         * bindings/v8/V8Proxy.h:
2936
2937 2010-06-04  Tony Gentilcore  <tonyg@chromium.org>
2938
2939         Reviewed by Adam Barth.
2940
2941         Utilize new takeFirst() method where appropriate.
2942         https://bugs.webkit.org/show_bug.cgi?id=40089
2943
2944         No new tests because no new functionality.
2945
2946         * css/CSSStyleSheet.cpp:
2947         (WebCore::CSSStyleSheet::addSubresourceStyleURLs):
2948         * dom/XMLTokenizerLibxml2.cpp:
2949         (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
2950         * html/HTMLTokenizer.cpp:
2951         (WebCore::HTMLTokenizer::reset):
2952         (WebCore::HTMLTokenizer::executeExternalScriptsIfReady):
2953         * platform/text/SegmentedString.cpp:
2954         (WebCore::SegmentedString::advanceSubstring):
2955         * storage/Database.cpp:
2956         (WebCore::Database::scheduleTransaction):
2957         * storage/SQLTransaction.cpp:
2958         (WebCore::SQLTransaction::getNextStatement):
2959         * storage/SQLTransactionCoordinator.cpp:
2960         (WebCore::SQLTransactionCoordinator::processPendingTransactions):
2961
2962 2010-06-04  Nikita Vasilyev  <me@elv1s.ru>
2963
2964         Reviewed by Pavel Feldman.
2965
2966         Web Inspector: better Function.prototype.bind for the internal code.
2967
2968         In the "Event Listeners" pane show handler function instead of Function.prototype.bind.
2969
2970         https://bugs.webkit.org/show_bug.cgi?id=40080
2971
2972         * inspector/front-end/utilities.js:
2973         (Function.prototype.bind.bound):
2974         (Function.prototype.bind.bound.toString):
2975         (Function.prototype.bind):
2976
2977 2010-06-04  Alexander Pavlov  <apavlov@chromium.org>
2978
2979         Unreviewed, fix Qt build.
2980
2981         Add references to a new file.
2982
2983         * WebCore.gypi:
2984         * WebCore.vcproj/WebCore.vcproj:
2985         * inspector/front-end/WebKit.qrc:
2986
2987 2010-06-04  Alexander Pavlov  <apavlov@chromium.org>
2988
2989         Reviewed by Pavel Feldman.
2990
2991         Web Inspector: Eliminate direct dependency of StylesSidebarPane on InspectorBackend
2992         https://bugs.webkit.org/show_bug.cgi?id=40069
2993
2994         No new tests are needed, as this is a refactoring.
2995
2996         * inspector/front-end/CSSStyleModel.js: Added.
2997         (WebInspector.CSSStyleModel):
2998         (WebInspector.CSSStyleModel.prototype.getStylesAsync):
2999         (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync):
3000         (WebInspector.CSSStyleModel.prototype.setRuleSelector):
3001         (WebInspector.CSSStyleModel.prototype.addRule):
3002         (WebInspector.CSSStyleModel.prototype.toggleStyleEnabled):
3003         (WebInspector.CSSStyleModel.prototype.setCSSText):
3004         (WebInspector.CSSStyleModel.prototype.applyStyleText):
3005         * inspector/front-end/StylesSidebarPane.js:
3006         (WebInspector.StylesSidebarPane.prototype.update.stylesCallback):
3007         (WebInspector.StylesSidebarPane.prototype.update.computedStyleCallback):
3008         (WebInspector.StylesSidebarPane.prototype.update):
3009         (WebInspector.StylesSidebarPane.prototype._arrayContainsInheritedProperty):
3010         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
3011         (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted):
3012         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback):
3013         (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted):
3014         (WebInspector.StylePropertyTreeElement.prototype.):
3015         (WebInspector.StylePropertyTreeElement.prototype):
3016         * inspector/front-end/inspector.html:
3017         * inspector/front-end/inspector.js:
3018         (WebInspector.loaded):
3019
3020 2010-06-04  Simon Hausmann  <simon.hausmann@nokia.com>
3021
3022         Reviewed by Tor Arne Vestbø.
3023
3024         [Qt] Compilation fails when compiling against Qt 4.7 and Qt Mobility is installed
3025         https://bugs.webkit.org/show_bug.cgi?id=40116
3026
3027         CONFIG += mobility has the side-effect of pulling in mobility includes, which conflict
3028         with Qt 4.7's bearer managenent includes and break the build.
3029
3030         * WebCore.pro:
3031
3032 2010-06-04  Vangelis Kokkevis  <vangelis@chromium.org>
3033
3034         Reviewed by Dimitri Glazkov.
3035
3036         [chromium] Fix scrolling bug with pages using accelerated compositing.
3037         https://bugs.webkit.org/show_bug.cgi?id=40037
3038
3039         * platform/graphics/chromium/LayerRendererChromium.cpp:
3040         (WebCore::LayerRendererChromium::LayerRendererChromium):
3041         (WebCore::LayerRendererChromium::drawLayers):
3042
3043 2010-06-04  Matthew Delaney  <mdelaney@apple.com>
3044
3045         Reviewed by Darin Adler.
3046
3047         CG implementation needed for compression quality in canvas.toDataURL
3048         https://bugs.webkit.org/show_bug.cgi?id=38492
3049
3050         Took toDataURL.jpeg.quality.basic.html test off of Skipped list. Passes.
3051
3052         Went the route of avoiding in-band signaling to flag the use of a quality 
3053         parameter or not. So, instead of simply passing the quality down as a
3054         double, instead I pass a reference to the quality parameter from where
3055         it comes in just after the JS bindings. Thus, no need for any global
3056         constants to signify when the quality is not specified. Updated the other 
3057         platforms to support this (qt was on the only one currently with any
3058         implementation). 
3059
3060         * bindings/js/JSHTMLCanvasElementCustom.cpp: Moved range check logic for quality parameter down lower. Updated
3061         call to toDataURL to use double* instead of just passing the quality directly.
3062         (WebCore::JSHTMLCanvasElement::toDataURL):
3063         * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: Updated toDataURL call to pass double*
3064         (WebCore::V8HTMLCanvasElement::toDataURLCallback):
3065         * dom/CanvasSurface.cpp: Updated method prototype.
3066         (WebCore::CanvasSurface::toDataURL):
3067         * dom/CanvasSurface.h: Updated method prototype.
3068         (WebCore::CanvasSurface::toDataURL):
3069         * platform/graphics/ImageBuffer.h: Updated method signature to use double* for quality param.
3070         * platform/graphics/cairo/ImageBufferCairo.cpp: Updated prototype for consistency.
3071         (WebCore::ImageBuffer::toDataURL):
3072         * platform/graphics/cg/ImageBufferCG.cpp: Implemented support for quality parametejr when jpeg MIME type used.
3073         (WebCore::jpegUTI):
3074         (WebCore::utiFromMIMEType):
3075         (WebCore::ImageBuffer::toDataURL):
3076         * platform/graphics/haiku/ImageBufferHaiku.cpp: Updated prototype for consistency.
3077         (WebCore::ImageBuffer::toDataURL):
3078         * platform/graphics/qt/ImageBufferQt.cpp: Updated prototype for consistency.
3079         (WebCore::ImageBuffer::toDataURL):
3080         * platform/graphics/skia/ImageBufferSkia.cpp: Updated prototype for consistency.
3081         (WebCore::ImageBuffer::toDataURL):
3082         * platform/graphics/wince/ImageBufferWince.cpp: Updated prototype for consistency.
3083         (WebCore::ImageBuffer::toDataURL):
3084         * platform/graphics/wx/ImageBufferWx.cpp: Updated prototype for consistency.
3085         (WebCore::ImageBuffer::toDataURL):
3086
3087 2010-06-04  Alejandro G. Castro  <alex@igalia.com>
3088
3089         Reviewed by Xan Lopez.
3090
3091         Leaks in listDirectory
3092         https://bugs.webkit.org/show_bug.cgi?id=40008
3093
3094         Fixed both leaks.
3095
3096         * platform/gtk/FileSystemGtk.cpp:
3097         (WebCore::listDirectory):
3098
3099 2010-06-04  Anton Muhin  <antonm@chromium.org>
3100
3101         Reviewed by Nate Chapin.
3102
3103         [Chromium] get rid of named interceptor on HTMLDocument and introduce/remove accessors when named items get deleted/removed
3104         https://bugs.webkit.org/show_bug.cgi?id=39877
3105
3106         This patch makes callbacks invoked on named items addition/removal
3107         install API accessors and thus there is no more need in
3108         named and indexed interceptors on HTMLDocument which
3109         speeds up invocation of methods on document.
3110
3111         * bindings/scripts/CodeGeneratorV8.pm:
3112         * bindings/v8/ScriptController.cpp:
3113         (WebCore::ScriptController::namedItemAdded):
3114         (WebCore::ScriptController::namedItemRemoved):
3115         * bindings/v8/V8DOMWindowShell.cpp:
3116         (WebCore::checkDocumentWrapper):
3117         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
3118         (WebCore::getter):
3119         (WebCore::V8DOMWindowShell::namedItemAdded):
3120         (WebCore::V8DOMWindowShell::namedItemRemoved):
3121         * bindings/v8/V8DOMWindowShell.h:
3122         * bindings/v8/V8DOMWrapper.cpp:
3123         (WebCore::V8DOMWrapper::instantiateV8Object):
3124         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
3125         (WebCore::V8HTMLDocument::WrapInShadowObject):
3126         (WebCore::V8HTMLDocument::GetNamedProperty):
3127         (WebCore::V8HTMLDocument::allAccessorSetter):
3128         (WebCore::toV8):
3129
3130 2010-06-04  Kwang Yul Seo  <skyul@company100.net>
3131
3132         Reviewed by Kent Tamura.
3133
3134         Change filenameFromString to return CString
3135         https://bugs.webkit.org/show_bug.cgi?id=39494
3136
3137         filenameFromString returns a newly allocated string and the caller must
3138         free the string. GTK and EFL ports use g_free while all others ports use
3139         fastFree. This is confusing because the same function behaves
3140         differently with respect to ports. Change filenameFromString to return
3141         CString.
3142
3143         * platform/FileSystem.cpp:
3144         (WebCore::filenameFromString):
3145         * platform/FileSystem.h:
3146         * platform/efl/FileSystemEfl.cpp:
3147         (WebCore::filenameFromString):
3148         * platform/gtk/FileChooserGtk.cpp:
3149         (WebCore::FileChooser::basenameForWidth):
3150         * platform/gtk/FileSystemGtk.cpp:
3151         (WebCore::filenameFromString):
3152         (WebCore::filenameForDisplay):
3153         (WebCore::fileExists):
3154         (WebCore::deleteFile):
3155         (WebCore::deleteEmptyDirectory):
3156         (WebCore::getFileSize):
3157         (WebCore::getFileModificationTime):
3158         (WebCore::makeAllDirectories):
3159         (WebCore::pathGetFileName):
3160         (WebCore::directoryName):
3161         (WebCore::listDirectory):
3162         * platform/gtk/SharedBufferGtk.cpp:
3163         (WebCore::SharedBuffer::createWithContentsOfFile):
3164         * platform/network/soup/ResourceHandleSoup.cpp:
3165         (WebCore::startHttp):
3166         * platform/posix/SharedBufferPOSIX.cpp:
3167         (WebCore::SharedBuffer::createWithContentsOfFile):
3168
3169 2010-06-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
3170
3171         Reviewed by Kenneth Rohde Christiansen.
3172
3173         [Qt] Fix compilation with QT_NO_FEATURE
3174         https://bugs.webkit.org/show_bug.cgi?id=38324
3175
3176         The #ifdef QT_NO_GRAPHICSEFFECT was in the wrong place, would have
3177         made AC not work at all.
3178
3179         No new tests.
3180
3181         * platform/graphics/qt/GraphicsLayerQt.cpp:
3182         (WebCore::GraphicsLayerQtImpl::flushChanges):
3183
3184 2010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
3185
3186         Reviewed by Laszlo Gombos.
3187
3188         [Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html
3189         https://bugs.webkit.org/show_bug.cgi?id=38645
3190
3191         Path arcto function need to ensure there is subpath before it.
3192
3193         * platform/graphics/qt/PathQt.cpp:
3194         (WebCore::Path::addArcTo):
3195
3196 2010-06-04  Qi Zhang  <qi.2.zhang@nokia.com>
3197
3198         Reviewed by Laszlo Gombos.
3199
3200         [Qt] failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arc.angle.3.html
3201         https://bugs.webkit.org/show_bug.cgi?id=38537
3202
3203         For path.arc function handle span > 2PI
3204
3205         * platform/graphics/qt/PathQt.cpp:
3206         (WebCore::Path::addArc):
3207
3208 2010-06-04  Zhenyao Mo  <zmo@google.com>
3209
3210         Reviewed by Dimitri Glazkov.
3211
3212         Set attributes.stencil to false by default at context creation
3213         https://bugs.webkit.org/show_bug.cgi?id=40090
3214
3215         * platform/graphics/GraphicsContext3D.h: Set default attributes.stencil to false.
3216         (WebCore::GraphicsContext3D::Attributes::Attributes):
3217
3218 2010-06-03  Abhishek Arya  <inferno@chromium.org>
3219
3220         Reviewed by Eric Carlson.
3221
3222         Fix a crash when trying to use an invalid media src url by
3223         moving the isValid url checks to a central location in
3224         isSafeToLoadURL function. Also added an empty string check
3225         in DocumentLoader::didTellClientAboutLoad.
3226
3227         Test: media/invalid-media-url-crash.html
3228
3229         * html/HTMLMediaElement.cpp:
3230         (WebCore::HTMLMediaElement::isSafeToLoadURL):
3231         (WebCore::HTMLMediaElement::selectNextSourceChild):
3232         (WebCore::HTMLMediaElement::getPluginProxyParams):
3233         * loader/DocumentLoader.h:
3234         (WebCore::DocumentLoader::didTellClientAboutLoad):
3235
3236 2010-06-03  Sheriff Bot  <webkit.review.bot@gmail.com>
3237
3238         Unreviewed, rolling out r60642.
3239         http://trac.webkit.org/changeset/60642
3240         https://bugs.webkit.org/show_bug.cgi?id=40151
3241
3242         Broke rendering of border images on rotated elements
3243         (Requested by jamesr on #webkit).
3244
3245         * platform/graphics/GraphicsContext.cpp:
3246         (WebCore::GraphicsContext::drawImage):
3247         (WebCore::GraphicsContext::drawTiledImage):
3248         * platform/graphics/GraphicsContext.h:
3249         * rendering/RenderBoxModelObject.cpp:
3250         (WebCore::RenderBoxModelObject::paintNinePieceImage):
3251
3252 2010-06-03  Damian Kaleta  <dkaleta@apple.com>
3253
3254         Reviewed by Beth Dakin.
3255
3256         Pixel cracks in border images when drawing with a scale factor > 1
3257         <rdar://problem/7994266>pixel cracks in border images
3258         https://bugs.webkit.org/show_bug.cgi?id=15720
3259         
3260         * platform/graphics/GraphicsContext.cpp:
3261         (WebCore::GraphicsContext::drawImage):
3262         (WebCore::GraphicsContext::drawTiledImage):
3263         * platform/graphics/GraphicsContext.h: Added two new methods to support drawing using FloatRect.
3264         If the boolean flag roundToPixels is true, the pixels are adjusted with the pixel boundaries.
3265         * rendering/RenderBoxModelObject.cpp:
3266         (WebCore::RenderBoxModelObject::paintNinePieceImage):
3267
3268 2010-06-03  James Robinson  <jamesr@chromium.org>
3269
3270         Reviewed by Dan Bernstein.
3271
3272         Take container's scroll offset and clip into account when initializing LayoutState
3273         https://bugs.webkit.org/show_bug.cgi?id=38506
3274
3275         When doing a subtree layout, the initial LayoutState creation needs to
3276         take the layout root container's offset and its scroll offset into account
3277         to create the initial offset.  Otherwise if a subtree layout occurs
3278         for a layout root whose container has a non-zero scroll offset
3279         the LayoutState's offset and clip are wrong, resulting in a mispaint.
3280         See the test cases for examples.
3281
3282         Tests: fast/repaint/layout-state-scrolloffset.html
3283                fast/repaint/layout-state-scrolloffset2.html
3284                fast/repaint/layout-state-scrolloffset3.html
3285
3286         * rendering/LayoutState.cpp:
3287         (WebCore::LayoutState::LayoutState):
3288
3289 2010-06-03  Gavin Barraclough  <barraclough@apple.com>
3290
3291         Reviewed by NOBODY (speculative Qt build fix II).
3292
3293         * bridge/qt/qt_runtime.cpp:
3294         (JSC::Bindings::QtRuntimeMetaMethod::call):
3295         (JSC::Bindings::QtRuntimeConnectionMethod::call):
3296
3297 2010-06-03  Gavin Barraclough  <barraclough@apple.com>
3298
3299         Reviewed by NOBODY (speculative Qt build fix).
3300
3301         * bridge/qt/qt_runtime.cpp:
3302         (JSC::Bindings::QtRuntimeMetaMethod::call):
3303         (JSC::Bindings::QtRuntimeConnectionMethod::call):
3304
3305 2010-06-02  Gavin Barraclough  <barraclough@apple.com>
3306
3307         Reviewed by Oliver Hunt.
3308
3309         Bug 40094 - The return type of NativeFunction should be EncodedJSValue
3310         On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not.
3311
3312         * bindings/js/JSCallbackData.cpp:
3313         (WebCore::JSCallbackData::invokeCallback):
3314         * bindings/js/JSCustomXPathNSResolver.cpp:
3315         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
3316         * bindings/js/JSEventListener.cpp:
3317         (WebCore::JSEventListener::handleEvent):
3318         * bindings/js/JSHTMLAllCollectionCustom.cpp:
3319         (WebCore::callHTMLAllCollection):
3320         * bindings/js/JSHTMLCollectionCustom.cpp:
3321         (WebCore::callHTMLCollection):
3322         * bindings/js/JSHTMLDocumentCustom.cpp:
3323         (WebCore::JSHTMLDocument::open):
3324         * bindings/js/JSInjectedScriptHostCustom.cpp:
3325         (WebCore::InjectedScriptHost::createInjectedScript):
3326         * bindings/js/JSNodeFilterCondition.cpp:
3327         (WebCore::JSNodeFilterCondition::acceptNode):
3328         * bindings/js/JSNodeListCustom.cpp:
3329         (WebCore::callNodeList):
3330         * bindings/js/JSPluginElementFunctions.cpp:
3331         (WebCore::callPlugin):
3332         * bindings/js/ScheduledAction.cpp:
3333         (WebCore::ScheduledAction::create):
3334         (WebCore::ScheduledAction::executeFunctionInContext):
3335         * bindings/js/ScriptFunctionCall.cpp:
3336         (WebCore::ScriptFunctionCall::call):
3337         * bindings/js/SerializedScriptValue.cpp:
3338         (WebCore::SerializingTreeWalker::convertIfTerminal):
3339         * bindings/objc/WebScriptObject.mm:
3340         (-[WebScriptObject callWebScriptMethod:withArguments:]):
3341         * bindings/scripts/CodeGeneratorJS.pm:
3342         * bridge/NP_jsobject.cpp:
3343         (_NPN_InvokeDefault):
3344         (_NPN_Invoke):
3345         (_NPN_Construct):
3346         * bridge/jni/jni_jsobject.mm:
3347         (JavaJSObject::call):
3348         * bridge/objc/objc_runtime.mm:
3349         (JSC::Bindings::callObjCFallbackObject):
3350         * bridge/runtime_method.cpp:
3351         (JSC::callRuntimeMethod):
3352         * bridge/runtime_object.cpp:
3353         (JSC::Bindings::callRuntimeObject):
3354
3355 2010-06-03  Sheriff Bot  <webkit.review.bot@gmail.com>
3356
3357         Unreviewed, rolling out r60614.
3358         http://trac.webkit.org/changeset/60614
3359         https://bugs.webkit.org/show_bug.cgi?id=40123
3360
3361         It made fast/dom/Window/window-postmessage-clone.html fail on
3362         Mac bots (Requested by Ossy on #webkit).
3363
3364         * Android.derived.jscbindings.mk:
3365         * Android.derived.v8bindings.mk:
3366         * Android.mk:
3367         * CMakeLists.txt:
3368         * DerivedSources.cpp:
3369         * DerivedSources.make:
3370         * GNUmakefile.am:
3371         * WebCore.gypi:
3372         * WebCore.pri:
3373         * WebCore.pro:
3374         * bindings/generic/RuntimeEnabledFeatures.cpp:
3375         * bindings/generic/RuntimeEnabledFeatures.h:
3376         * bindings/js/JSEventCustom.cpp:
3377         (WebCore::toJS):
3378         * bindings/v8/custom/V8EventCustom.cpp:
3379         (WebCore::toV8):
3380         * dom/Document.cpp:
3381         (WebCore::Document::createEvent):
3382         (WebCore::Document::addListenerTypeIfNeeded):
3383         * dom/Document.h:
3384         (WebCore::Document::):
3385         * dom/Document.idl:
3386         * dom/Element.h:
3387         * dom/Element.idl:
3388         * dom/Event.cpp:
3389         (WebCore::Event::fromUserGesture):
3390         * dom/Event.h:
3391         * dom/EventNames.h:
3392         * dom/TransformActionEvent.cpp: Removed.
3393         * dom/TransformActionEvent.h: Removed.
3394         * dom/TransformActionEvent.idl: Removed.
3395         * html/HTMLAttributeNames.in:
3396         * html/HTMLElement.cpp:
3397         (WebCore::HTMLElement::parseMappedAttribute):
3398         * page/DOMWindow.h:
3399         * page/DOMWindow.idl:
3400
3401 2010-06-03  Yury Semikhatsky  <yurys@chromium.org>
3402
3403         Reviewed by Pavel Feldman.
3404
3405         [v8] Web Inspector: show "Object" as description for values with anonymous constructor
3406         https://bugs.webkit.org/show_bug.cgi?id=40121
3407
3408         * inspector/front-end/InjectedScript.js:
3409         (injectedScriptConstructor):
3410
3411 2010-06-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3412
3413         Reviewed by Simon Hausmann.
3414
3415         [Qt] Fix NPAPI support on Mac OS X/Cocoa-32
3416
3417         qt_mac_window_for() returns a NSWindow on Cocoa, so we were
3418         passing in a NSWindow instead of a WindowRef as part of the
3419         NP_CGContext.
3420
3421         https://bugs.webkit.org/show_bug.cgi?id=38762
3422
3423         * WebCore.gypi: Reflect rename
3424         * WebCore.pro: Reflect rename
3425         * plugins/mac/PluginViewMac.cpp: Renamed to PluginViewMac.mm
3426         and fix bug by getting the Carbon windowRef from the NSWindow.
3427         * wscript: Reflect rename
3428
3429 2010-06-03  Kim Grönholm  <kim.1.gronholm@nokia.com>
3430
3431         Reviewed by Simon Hausmann.
3432
3433         Add TransformActionEvent support
3434         https://bugs.webkit.org/show_bug.cgi?id=39757
3435
3436         Added only the necessary TransformAction event interfaces and not e.g.
3437         any eventhandler hooks that generate and dispatch them.
3438
3439         Test: fast/events/transformaction/create-transformaction-event.html
3440         More tests will be added with the machinery that generates and
3441         dispatches these events.
3442
3443         * Android.derived.jscbindings.mk:
3444         * Android.derived.v8bindings.mk:
3445         * Android.mk:
3446         * CMakeLists.txt:
3447         * DerivedSources.cpp:
3448         * DerivedSources.make:
3449         * GNUmakefile.am:
3450         * WebCore.gypi:
3451         * WebCore.pri:
3452         * WebCore.pro:
3453         * bindings/generic/RuntimeEnabledFeatures.cpp:
3454         * bindings/generic/RuntimeEnabledFeatures.h:
3455         (WebCore::RuntimeEnabledFeatures::transformactionEnabled):
3456         (WebCore::RuntimeEnabledFeatures::setTransformActionEnabled):
3457         (WebCore::RuntimeEnabledFeatures::ontransformactionstartEnabled):
3458         (WebCore::RuntimeEnabledFeatures::ontransformactionupdateEnabled):
3459         (WebCore::RuntimeEnabledFeatures::ontransformactionendEnabled):
3460         * bindings/js/JSEventCustom.cpp:
3461         (WebCore::toJS):
3462         * bindings/v8/custom/V8EventCustom.cpp:
3463         (WebCore::toV8):
3464         * dom/Document.cpp:
3465         (WebCore::Document::createEvent):
3466         (WebCore::Document::addListenerTypeIfNeeded):
3467         * dom/Document.h:
3468         (WebCore::Document::):
3469         * dom/Document.idl:
3470         * dom/Element.h:
3471         * dom/Element.idl:
3472         * dom/Event.cpp:
3473         (WebCore::Event::isTransformActionEvent):
3474         (WebCore::Event::fromUserGesture):
3475         * dom/Event.h:
3476         * dom/EventNames.h:
3477         * dom/TransformActionEvent.cpp: Added.
3478         (WebCore::TransformActionEvent::TransformActionEvent):
3479         (WebCore::TransformActionEvent::initTransformActionEvent):
3480         * dom/TransformActionEvent.h: Added.
3481         (WebCore::TransformActionEvent::create):
3482         (WebCore::TransformActionEvent::translateX):
3483         (WebCore::TransformActionEvent::translateY):
3484         (WebCore::TransformActionEvent::translateSpeedX):
3485         (WebCore::TransformActionEvent::translateSpeedY):
3486         (WebCore::TransformActionEvent::scale):
3487         (WebCore::TransformActionEvent::scaleSpeed):
3488         (WebCore::TransformActionEvent::rotate):
3489         (WebCore::TransformActionEvent::rotateSpeed):
3490         (WebCore::TransformActionEvent::TransformActionEvent):
3491         (WebCore::TransformActionEvent::isTransformActionEvent):
3492         * dom/TransformActionEvent.idl: Added.
3493         * html/HTMLAttributeNames.in:
3494         * html/HTMLElement.cpp:
3495         (WebCore::HTMLElement::parseMappedAttribute):
3496         * page/DOMWindow.h:
3497         * page/DOMWindow.idl:
3498
3499 2010-06-03  Pavel Feldman  <pfeldman@chromium.org>
3500
3501         Reviewed by Yury Semikhatsky.
3502
3503         Web Inspector: a number of fixes that make InspectorController
3504         happy with null redirects.
3505
3506         https://bugs.webkit.org/show_bug.cgi?id=40109
3507
3508         * inspector/InspectorController.cpp:
3509         (WebCore::InspectorController::willSendRequest):
3510         (WebCore::InspectorController::didReceiveResponse):
3511         (WebCore::InspectorController::didReceiveContentLength):
3512         (WebCore::InspectorController::didFinishLoading):
3513         (WebCore::InspectorController::didFailLoading):
3514
3515 2010-06-03  Pavel Feldman  <pfeldman@chromium.org>
3516
3517         Not reviewed. Rolling out aggressive cache part of the r60391
3518         described in the bug below. It was orthogonal to the rest of
3519         the patch and caused regression.
3520
3521         https://bugs.webkit.org/show_bug.cgi?id=37364
3522
3523         * platform/graphics/skia/ImageSkia.cpp:
3524         (WebCore::drawResampledBitmap):
3525
3526 2010-06-02  Darin Fisher  <darin@chromium.org>
3527
3528         Reviewed by Brady Eidson.
3529
3530         location.href and outgoing referrer not updated properly by
3531         pushState/replaceState
3532         https://bugs.webkit.org/show_bug.cgi?id=40027
3533
3534         Tests: fast/loader/stateobjects/pushstate-updates-location.html
3535                fast/loader/stateobjects/replacestate-updates-location.html
3536                http/tests/navigation/pushstate-updates-referrer.html
3537                http/tests/navigation/replacestate-updates-referrer.html
3538
3539         * dom/Document.cpp:
3540         (WebCore::Document::updateURLForPushOrReplaceState):
3541         Update the FrameLoader's notion of the current URL as well!
3542
3543         * loader/FrameLoader.cpp:
3544         (WebCore::FrameLoader::loadInSameDocument):
3545         Use the 'url' parameter instead of m_URL since m_URL might have
3546         changed during the handling of the PopState event.  Eventually,
3547         this will become irrelevant since the PopState event should be
3548         dispatched asynchronously, but just in case we patch HashChange
3549         to be asynchronous before PopState, this change would be needed.
3550
3551 2010-06-02  Eric Seidel  <eric@webkit.org>
3552
3553         Reviewed by Adam Barth.
3554
3555         REGRESSION(60409): document.write is not synchronous when using the HTML5 parser
3556         https://bugs.webkit.org/show_bug.cgi?id=40047
3557
3558         The HTML5 spec states that we should "spin the event loop" while
3559         waiting for stylesheets to load.  Currently we do that by yielding
3560         out of the parser when stylesheets are loading.  Because it was easy
3561         we made inline <scripts> yield for stylesheet loads as well.  However,
3562         this caused document.write() to return after encountering the first
3563         inline <script> tag in many cases which is incorrect.  document.write
3564         is supposed to block until the entire document is parsed (including)
3565         executing inline script tags.  To match the exiting parser, we'll just
3566         make inline <script> tags not block on stylesheets for now.
3567
3568         This is tested by WebCore/benchmarks/html-parser.html as well
3569         as likely several other tests in LayoutTests which we haven't
3570         triaged yet.
3571
3572         * html/HTML5ScriptRunner.cpp:
3573         (WebCore::HTML5ScriptRunner::executeScript):
3574          - ASSERT that either stylesheets have loaded or we're executing an
3575            inline <script> tag.
3576         (WebCore::HTML5ScriptRunner::runScript):
3577          - Remove the code to block inline <script> tags on stylesheet loads.
3578
3579 2010-06-02  MORITA Hajime  <morrita@google.com>
3580
3581         Unreviewd, Chromium windows build fix.
3582
3583         * rendering/RenderThemeChromiumWin.cpp:
3584         (WebCore::RenderThemeChromiumWin::paintProgressBar):
3585
3586 2010-06-02  MORITA Hajime  <morrita@google.com>
3587
3588         Reviewed by Kent Tamura.
3589         
3590         [Chromium] Linux: progress bar image pieces should be painted with same resampling mode
3591         https://bugs.webkit.org/show_bug.cgi?id=40045
3592</