dd689bafc3a5a204f9296990617c5c90d9b844bd
[WebKit-https.git] / WebCore / ChangeLog
1 2010-08-13  Dirk Schulze  <krit@webkit.org>
2
3         Reviewed by Nikolas Zimmermann.
4
5         Use SVGPathByteStream to animate SVGPath
6         https://bugs.webkit.org/show_bug.cgi?id=43929
7
8         Use SVGPathByteStream to perform animations of Paths. SVGPathBlender blends
9         the starting point to the end point according to the current progress value.
10         Cleanup SVGPathSegList, by removing the unnecessary legacy blending code.
11
12         No new tests because no functional changes.
13
14         * Android.mk:
15         * CMakeLists.txt:
16         * GNUmakefile.am:
17         * WebCore.gypi:
18         * WebCore.pro:
19         * WebCore.vcproj/WebCore.vcproj:
20         * WebCore.xcodeproj/project.pbxproj:
21         * svg/SVGAllInOne.cpp:
22         * svg/SVGAnimateElement.cpp:
23         (WebCore::SVGAnimateElement::SVGAnimateElement):
24         (WebCore::SVGAnimateElement::calculateAnimatedValue):
25         (WebCore::SVGAnimateElement::calculateFromAndToValues):
26         (WebCore::SVGAnimateElement::resetToBaseValue):
27         (WebCore::SVGAnimateElement::applyResultsToTarget):
28         * svg/SVGAnimateElement.h:
29         * svg/SVGPathBlender.cpp: Added.
30         (WebCore::SVGPathBlender::SVGPathBlender):
31         (WebCore::SVGPathBlender::~SVGPathBlender):
32         (WebCore::SVGPathBlender::blendAnimatedFloat):
33         (WebCore::SVGPathBlender::blendAnimatedFloatPoint):
34         (WebCore::SVGPathBlender::blendMoveToSegment):
35         (WebCore::SVGPathBlender::blendLineToSegment):
36         (WebCore::SVGPathBlender::blendLineToHorizontalSegment):
37         (WebCore::SVGPathBlender::blendLineToVerticalSegment):
38         (WebCore::SVGPathBlender::blendCurveToCubicSegment):
39         (WebCore::SVGPathBlender::blendCurveToCubicSmoothSegment):
40         (WebCore::SVGPathBlender::blendCurveToQuadraticSegment):
41         (WebCore::SVGPathBlender::blendCurveToQuadraticSmoothSegment):
42         (WebCore::SVGPathBlender::blendArcToSegment):
43         (WebCore::SVGPathBlender::blendAnimatedPath):
44         (WebCore::SVGPathBlender::cleanup):
45         * svg/SVGPathBlender.h: Added.
46         * svg/SVGPathParserFactory.cpp:
47         (WebCore::globalSVGPathBlender):
48         (WebCore::SVGPathParserFactory::buildAnimatedSVGPathByteStream):
49         * svg/SVGPathParserFactory.h:
50         * svg/SVGPathSegList.cpp:
51         (WebCore::SVGPathSegList::getPathSegAtLength):
52         * svg/SVGPathSegList.h:
53         (WebCore::SVGPathSegList::create):
54         * svg/SVGPointList.cpp:
55         (WebCore::adjustAnimatedValue):
56
57 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
58
59         Reviewed by Dirk Schulze.
60
61         Window size changes + resources on absolute sized content leads to pixelation
62         https://bugs.webkit.org/show_bug.cgi?id=43921
63
64         Avoid pixelation when using resources on absolute sized objects. Be sure to invalidate the used resources if window size changes.
65         Otherwhise masks etc. will be scaled up and pixelate. As nice side-effect, this fixes run-webkit-tests --singly svg/W3C-SVG-1.1, which
66         used to produce wrong results for the gradient tests, as the window size change from 800x600 for 480x360 (svg/W3C-SVG-1.1 specific DRT quirk)
67         didn't invalidate the resources.
68
69         Renamed invalidateClient -> removeClientFromCache and invalidateClients -> removeAllClientsFromCache.
70         Add a boolean "markForInvalidation" parameter, that controls wheter the clients should be marked for repaint/boundaries invalidation/layout
71         or wheter we only want to notify the parents that the resource changed, to avoid doing unncessary work in SVGRenderSupport::layoutChildren.
72
73         Test: svg/custom/absolute-sized-content-with-resources.xhtml
74
75         * rendering/RenderSVGGradientStop.cpp:
76         (WebCore::RenderSVGGradientStop::styleDidChange): Don't do anything for StyleDifferenceEqual.
77         * rendering/RenderSVGImage.cpp:
78         (WebCore::RenderSVGImage::imageChanged):
79         * rendering/RenderSVGResource.cpp:
80         (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
81         * rendering/RenderSVGResource.h:
82         * rendering/RenderSVGResourceClipper.cpp:
83         (WebCore::RenderSVGResourceClipper::removeAllClientsFromCache):
84         (WebCore::RenderSVGResourceClipper::removeClientFromCache):
85         * rendering/RenderSVGResourceClipper.h:
86         * rendering/RenderSVGResourceContainer.cpp:
87         (WebCore::RenderSVGResourceContainer::layout):
88         (WebCore::RenderSVGResourceContainer::idChanged):
89         (WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation):
90         (WebCore::RenderSVGResourceContainer::markClientForInvalidation):
91         * rendering/RenderSVGResourceContainer.h:
92         (WebCore::RenderSVGResourceContainer::):
93         * rendering/RenderSVGResourceFilter.cpp:
94         (WebCore::RenderSVGResourceFilter::removeAllClientsFromCache):
95         (WebCore::RenderSVGResourceFilter::removeClientFromCache):
96         (WebCore::RenderSVGResourceFilter::postApplyResource):
97         * rendering/RenderSVGResourceFilter.h:
98         * rendering/RenderSVGResourceGradient.cpp:
99         (WebCore::RenderSVGResourceGradient::removeAllClientsFromCache):
100         (WebCore::RenderSVGResourceGradient::removeClientFromCache):
101         (WebCore::RenderSVGResourceGradient::applyResource):
102         * rendering/RenderSVGResourceGradient.h:
103         * rendering/RenderSVGResourceMarker.cpp:
104         (WebCore::RenderSVGResourceMarker::layout):
105         (WebCore::RenderSVGResourceMarker::removeAllClientsFromCache):
106         (WebCore::RenderSVGResourceMarker::removeClientFromCache):
107         * rendering/RenderSVGResourceMarker.h:
108         * rendering/RenderSVGResourceMasker.cpp:
109         (WebCore::RenderSVGResourceMasker::removeAllClientsFromCache):
110         (WebCore::RenderSVGResourceMasker::removeClientFromCache):
111         * rendering/RenderSVGResourceMasker.h:
112         * rendering/RenderSVGResourcePattern.cpp:
113         (WebCore::RenderSVGResourcePattern::removeAllClientsFromCache):
114         (WebCore::RenderSVGResourcePattern::removeClientFromCache):
115         (WebCore::RenderSVGResourcePattern::applyResource):
116         * rendering/RenderSVGResourcePattern.h:
117         * rendering/RenderSVGResourceSolidColor.h:
118         (WebCore::RenderSVGResourceSolidColor::removeAllClientsFromCache):
119         (WebCore::RenderSVGResourceSolidColor::removeClientFromCache):
120         * rendering/SVGRenderSupport.cpp:
121         (WebCore::invalidateResourcesOfChildren): Add new helper funtion recursively invalidating resources of a sub render tree.
122         (WebCore::SVGRenderSupport::layoutChildren): Keep track of all objects that didn't need layout, as we still have to invalidate their resources, if window size changes.
123         * rendering/SVGResources.cpp:
124         (WebCore::SVGResources::removeClientFromCache):
125         (WebCore::SVGResources::resourceDestroyed):
126         * rendering/SVGResources.h:
127         * rendering/SVGResourcesCache.cpp:
128         (WebCore::SVGResourcesCache::clientLayoutChanged):
129
130 2010-08-13  Pavel Feldman  <pfeldman@chromium.org>
131
132         Reviewed by Yury Semikhatsky.
133
134         Chromium DevTools: [CRASH] Autocomplete on arrays causes crashes.
135         https://bugs.webkit.org/show_bug.cgi?id=43955
136
137         * bindings/v8/ScriptValue.cpp:
138         (WebCore::v8ToInspectorValue):
139
140 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
141
142         Reviewed by Sam Weinig
143
144         Unify UString::UTF8String() & String::utf8() methods,
145         remove UString::cost() & make atArrayIndex a free function.
146
147         * WebCore.xcodeproj/project.pbxproj:
148         * bindings/js/JSDOMWindowCustom.cpp:
149         (WebCore::JSDOMWindow::getOwnPropertySlot):
150         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
151         * bridge/NP_jsobject.cpp:
152         (_NPN_Enumerate):
153         * bridge/c/c_utility.cpp:
154         (JSC::Bindings::convertValueToNPVariant):
155         * bridge/jni/JNIBridge.cpp:
156         (JavaParameter::JavaParameter):
157         (JavaMethod::JavaMethod):
158         (JavaMethod::signature):
159         (JavaMethod::methodID):
160         * bridge/jni/JNIBridge.h:
161         (JSC::Bindings::JavaString::utf8):
162         (JSC::Bindings::JavaParameter::type):
163         (JSC::Bindings::JavaMethod::returnType):
164         * bridge/jni/jni_jsobject.mm:
165         (JavaJSObject::call):
166         (JavaJSObject::eval):
167         (JavaJSObject::getMember):
168         (JavaJSObject::setMember):
169         (JavaJSObject::removeMember):
170         (JavaJSObject::convertJObjectToValue):
171         * bridge/jni/jsc/JNIBridgeJSC.cpp:
172         (JavaField::JavaField):
173         (JavaField::valueFromInstance):
174         (JavaField::setValueToInstance):
175         * bridge/jni/jsc/JNIBridgeJSC.h:
176         (JSC::Bindings::JavaField::type):
177         * bridge/jni/jsc/JavaInstanceJSC.cpp:
178         (JavaInstance::invokeMethod):
179         * bridge/jni/jsc/JavaStringJSC.h:
180         (JSC::Bindings::JavaStringImpl::utf8):
181         * bridge/runtime_array.cpp:
182         (JSC::RuntimeArray::getOwnPropertySlot):
183         (JSC::RuntimeArray::getOwnPropertyDescriptor):
184         (JSC::RuntimeArray::put):
185
186 2010-08-12  Yury Semikhatsky  <yurys@chromium.org>
187
188         Reviewed by Pavel Feldman.
189
190         Web Inspector: allow interrupting long running JS to execute inspector command
191         https://bugs.webkit.org/show_bug.cgi?id=43900
192
193         * bindings/v8/ScriptDebugServer.cpp:
194         (WebCore::):
195         (WebCore::ScriptDebugServer::pause):
196         (WebCore::ScriptDebugServer::interruptAndRun):
197         (WebCore::ScriptDebugServer::runPendingTasks):
198         (WebCore::ScriptDebugServer::handleV8DebugEvent):
199         * bindings/v8/ScriptDebugServer.h:
200         (WebCore::ScriptDebugServer::Task::~Task):
201
202 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
203
204         Unreviewed, rolling out r65295.
205         http://trac.webkit.org/changeset/65295
206         https://bugs.webkit.org/show_bug.cgi?id=43950
207
208         It broke 4 sputnik tests (Requested by Ossy on #webkit).
209
210         * WebCore.xcodeproj/project.pbxproj:
211         * bindings/js/JSDOMWindowCustom.cpp:
212         (WebCore::JSDOMWindow::getOwnPropertySlot):
213         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
214         * bridge/NP_jsobject.cpp:
215         (_NPN_Enumerate):
216         * bridge/c/c_utility.cpp:
217         (JSC::Bindings::convertValueToNPVariant):
218         * bridge/jni/JNIBridge.cpp:
219         (JavaParameter::JavaParameter):
220         (JavaMethod::JavaMethod):
221         (JavaMethod::signature):
222         (JavaMethod::methodID):
223         * bridge/jni/JNIBridge.h:
224         (JSC::Bindings::JavaString::UTF8String):
225         (JSC::Bindings::JavaParameter::type):
226         (JSC::Bindings::JavaMethod::returnType):
227         * bridge/jni/jni_jsobject.mm:
228         (JavaJSObject::call):
229         (JavaJSObject::eval):
230         (JavaJSObject::getMember):
231         (JavaJSObject::setMember):
232         (JavaJSObject::removeMember):
233         (JavaJSObject::convertJObjectToValue):
234         * bridge/jni/jsc/JNIBridgeJSC.cpp:
235         (JavaField::JavaField):
236         (JavaField::valueFromInstance):
237         (JavaField::setValueToInstance):
238         * bridge/jni/jsc/JNIBridgeJSC.h:
239         (JSC::Bindings::JavaField::type):
240         * bridge/jni/jsc/JavaInstanceJSC.cpp:
241         (JavaInstance::invokeMethod):
242         * bridge/jni/jsc/JavaStringJSC.h:
243         (JSC::Bindings::JavaStringImpl::UTF8String):
244         * bridge/runtime_array.cpp:
245         (JSC::RuntimeArray::getOwnPropertySlot):
246         (JSC::RuntimeArray::getOwnPropertyDescriptor):
247         (JSC::RuntimeArray::put):
248
249 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
250
251         Not reviewed. Fixed typo in inspector js.
252         Follow up to r65300.
253
254         * inspector/front-end/inspector.js:
255         (WebInspector.log.isLogAvailable):
256
257 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
258
259         Reviewed by Yury Semikhatsky.
260
261         Web Inspector: Make getPrototypes return objects, not names.
262         https://bugs.webkit.org/show_bug.cgi?id=43934
263
264         * inspector/front-end/InjectedScript.js:
265         (injectedScriptConstructor):
266         (injectedScriptConstructor.):
267         * inspector/front-end/PropertiesSidebarPane.js:
268         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
269         * inspector/front-end/inspector.js:
270         (WebInspector.log):
271
272 2010-08-12  James Robinson  <jamesr@chromium.org>
273
274         Unreviewed, rolling out r65284 and r65288.  Broke chromium compile.
275         https://bugs.webkit.org/show_bug.cgi?id=43725
276         http://trac.webkit.org/changeset/65284
277         http://trac.webkit.org/changeset/65288
278
279         * bindings/scripts/CodeGeneratorV8.pm:
280         * bindings/v8/ScriptController.cpp:
281         (WebCore::ScriptController::namedItemAdded):
282         (WebCore::ScriptController::namedItemRemoved):
283         * bindings/v8/V8DOMWindowShell.cpp:
284         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
285         * bindings/v8/V8DOMWindowShell.h:
286         * bindings/v8/V8DOMWrapper.cpp:
287         (WebCore::V8DOMWrapper::instantiateV8Object):
288         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
289         (WebCore::V8HTMLDocument::namedPropertyDeleter):
290         (WebCore::V8HTMLDocument::namedPropertyGetter):
291         (WebCore::V8HTMLDocument::indexedPropertyGetter):
292         (WebCore::V8HTMLDocument::allAccessorSetter):
293         (WebCore::toV8):
294         * html/HTMLDocument.cpp:
295         (WebCore::HTMLDocument::removeItemFromMap):
296
297 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
298
299         Reviewed by Sam Weinig
300
301         Unify UString::UTF8String() & String::utf8() methods,
302         remove UString::cost() & make atArrayIndex a free function.
303
304         * WebCore.xcodeproj/project.pbxproj:
305         * bindings/js/JSDOMWindowCustom.cpp:
306         (WebCore::JSDOMWindow::getOwnPropertySlot):
307         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
308         * bridge/NP_jsobject.cpp:
309         (_NPN_Enumerate):
310         * bridge/c/c_utility.cpp:
311         (JSC::Bindings::convertValueToNPVariant):
312         * bridge/jni/JNIBridge.cpp:
313         (JavaParameter::JavaParameter):
314         (JavaMethod::JavaMethod):
315         (JavaMethod::signature):
316         (JavaMethod::methodID):
317         * bridge/jni/JNIBridge.h:
318         (JSC::Bindings::JavaString::utf8):
319         (JSC::Bindings::JavaParameter::type):
320         (JSC::Bindings::JavaMethod::returnType):
321         * bridge/jni/jni_jsobject.mm:
322         (JavaJSObject::call):
323         (JavaJSObject::eval):
324         (JavaJSObject::getMember):
325         (JavaJSObject::setMember):
326         (JavaJSObject::removeMember):
327         (JavaJSObject::convertJObjectToValue):
328         * bridge/jni/jsc/JNIBridgeJSC.cpp:
329         (JavaField::JavaField):
330         (JavaField::valueFromInstance):
331         (JavaField::setValueToInstance):
332         * bridge/jni/jsc/JNIBridgeJSC.h:
333         (JSC::Bindings::JavaField::type):
334         * bridge/jni/jsc/JavaInstanceJSC.cpp:
335         (JavaInstance::invokeMethod):
336         * bridge/jni/jsc/JavaStringJSC.h:
337         (JSC::Bindings::JavaStringImpl::utf8):
338         * bridge/runtime_array.cpp:
339         (JSC::RuntimeArray::getOwnPropertySlot):
340         (JSC::RuntimeArray::getOwnPropertyDescriptor):
341         (JSC::RuntimeArray::put):
342
343 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
344
345         Speculative build fix for chromium bindings (someone added the old include style!).
346
347         * bindings/v8/V8DOMWindowShell.h:
348
349 2010-08-12  MORITA Hajime  <morrita@google.com>
350
351         Reviewed by Tony Chang.
352
353         [Refactoring] TextEvent class has to many flags
354         https://bugs.webkit.org/show_bug.cgi?id=43893
355
356         Turned TextEvent::m_isLineBreak, TextEvent::m_isBacktab, TextEvent::m_isPaste 
357         into single TextEvent::m_inputType enumeration.
358         
359         No functional change. No new tests.
360
361         * dom/TextEvent.cpp:
362         (WebCore::TextEvent::selectInputType):
363         (WebCore::TextEvent::create):
364         (WebCore::TextEvent::createForPlainTextPaste):
365         (WebCore::TextEvent::createForFragmentPaste):
366         (WebCore::TextEvent::TextEvent):
367         * dom/TextEvent.h:
368         (WebCore::TextEvent::):
369         (WebCore::TextEvent::isLineBreak):
370         (WebCore::TextEvent::isBackTab):
371         (WebCore::TextEvent::isPaste):
372         * page/EventHandler.cpp:
373         (WebCore::EventHandler::handleTextInputEvent):
374
375 2010-08-12  Kenneth Russell  <kbr@google.com>
376
377         Reviewed by David Levin.
378
379         Delete obsolete CanvasNumberArray
380         https://bugs.webkit.org/show_bug.cgi?id=38619
381
382         Deleted unreferenced code. Built WebKit and Chromium to test.
383
384         * Android.derived.jscbindings.mk:
385         * Android.derived.v8bindings.mk:
386         * Android.jscbindings.mk:
387         * Android.mk:
388         * bindings/js/JSCanvasNumberArrayCustom.cpp: Removed.
389         * html/canvas/CanvasNumberArray.cpp: Removed.
390         * html/canvas/CanvasNumberArray.h: Removed.
391         * html/canvas/CanvasNumberArray.idl: Removed.
392
393 2010-08-12  Anton Muhin  <antonm@chromium.org>
394
395         Reviewed by Nate Chapin.
396
397         [v8] Create callbacks for named access of elements from document object on fly.
398         https://bugs.webkit.org/show_bug.cgi?id=43725
399
400         That should speed up access to methods on document as there is no need to
401         consult with interceptor before invoking the method.
402
403         This reapplies http://trac.webkit.org/changeset/60670 reverted with
404         http://trac.webkit.org/changeset/63845.  The main difference is in treatment
405         of removed named elements: we don't remove an accessor any more, but leave it.
406         Therefore any accessor should be able to treat the case when there is no
407         expando property.
408
409         * bindings/scripts/CodeGeneratorV8.pm:
410         * bindings/v8/ScriptController.cpp:
411         (WebCore::ScriptController::namedItemAdded):
412         (WebCore::ScriptController::namedItemRemoved):
413         * bindings/v8/V8DOMWindowShell.cpp:
414         (WebCore::checkDocumentWrapper):
415         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
416         (WebCore::getter):
417         (WebCore::V8DOMWindowShell::namedItemAdded):
418         (WebCore::V8DOMWindowShell::namedItemRemoved):
419         * bindings/v8/V8DOMWindowShell.h:
420         * bindings/v8/V8DOMWrapper.cpp:
421         (WebCore::V8DOMWrapper::instantiateV8Object):
422         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
423         (WebCore::V8HTMLDocument::WrapInShadowObject):
424         (WebCore::V8HTMLDocument::GetNamedProperty):
425         (WebCore::V8HTMLDocument::allAccessorSetter):
426         (WebCore::toV8):
427         * html/HTMLDocument.cpp:
428         (WebCore::HTMLDocument::removeItemFromMap):
429
430 2010-08-12  Dimitri Glazkov  <dglazkov@chromium.org>
431
432         Reviewed by Adam Barth.
433
434         Ensure that parser doesn't attach children that have been removed by JavaScript event handlers.
435         https://bugs.webkit.org/show_bug.cgi?id=43813
436
437         This patch re-fixes bug 40742 in a way that keeps allowing HTMLLinkElement
438         to lazy-attach.
439
440         * html/HTMLConstructionSite.cpp:
441         (WebCore::HTMLConstructionSite::attach): Added parent check.
442         * html/HTMLLinkElement.cpp: Basically undoes changes introduced by r61424.
443         * html/HTMLLinkElement.h: Ditto.
444
445 2010-08-12  Justin Schuh  <jschuh@chromium.org>
446
447         Reviewed by Dumitru Daniliuc.
448
449         Clear PluginData's page pointer on page refresh
450         https://bugs.webkit.org/show_bug.cgi?id=43888
451
452         Test: plugins/access-after-page-destroyed.html
453
454         * page/Page.cpp:
455         (WebCore::Page::refreshPlugins):
456
457 2010-08-12  Zhenyao Mo  <zmo@google.com>
458
459         Reviewed by Dimitri Glazkov.
460
461         getParameter(STENCIL_VALUE_MASK) (and others) returns the wrong value
462         https://bugs.webkit.org/show_bug.cgi?id=31842
463
464         * html/canvas/WebGLRenderingContext.cpp:
465         (WebCore::WebGLRenderingContext::getUnsignedLongParameter): Casting from int to unsigned long correctly.
466
467 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
468
469         Reviewed by Joseph Pecoraro.
470
471         Web Inspector: mimic FireBug's array detection.
472         https://bugs.webkit.org/show_bug.cgi?id=30974
473
474         * inspector/front-end/InjectedScript.js:
475         (injectedScriptConstructor):
476
477 2010-08-12  Zhenyao Mo  <zmo@google.com>
478
479         Reviewed by Dimitri Glazkov.
480
481         regression in generateMipmap
482         https://bugs.webkit.org/show_bug.cgi?id=43873
483
484         * html/canvas/WebGLTexture.cpp:
485         (WebCore::WebGLTexture::generateMipmapLevelInfo): should set m_needToUseBlackTexture to false if generateMipmapLevelInfo runs through successfully.
486
487 2010-08-12  Ariya Hidayat  <ariya@sencha.com>
488
489         Reviewed by David Hyatt.
490
491         [Qt] Split TransparencyLayer into its own header file.
492         https://bugs.webkit.org/show_bug.cgi?id=43935
493
494         * WebCore.pro: Include TransparencyLayer.h.
495         * platform/graphics/qt/GraphicsContextQt.cpp:
496         * platform/graphics/qt/TransparencyLayer.h: Added.
497         (WebCore::TransparencyLayer::TransparencyLayer):
498         (WebCore::TransparencyLayer::operator=):
499
500 2010-08-12  François Sausset  <sausset@gmail.com>
501
502         Reviewed by Beth Dakin.
503
504         Horizontal padding should be 0 on mrow elements.
505         https://bugs.webkit.org/show_bug.cgi?id=43908
506
507         Updated tests in /mathml
508
509         * css/mathml.css:
510         (mrow, mfenced):
511         (mfenced):
512
513 2010-08-12  Aaron Boodman  <aa@chromium.org>
514
515         Reviewed by David Hyatt.
516
517         Make the cascade level of "user" styles configurable
518         https://bugs.webkit.org/show_bug.cgi?id=43457
519
520         * WebCore.exp.in:
521         * css/CSSStyleSelector.cpp:
522         (WebCore::CSSStyleSelector::CSSStyleSelector):
523         * dom/Document.cpp:
524         (WebCore::Document::pageGroupUserSheets):
525         * page/PageGroup.cpp:
526         (WebCore::PageGroup::addUserStyleSheetToWorld):
527         * page/PageGroup.h:
528         * page/UserStyleSheet.h:
529         (WebCore::UserStyleSheet::):
530         (WebCore::UserStyleSheet::UserStyleSheet):
531         (WebCore::UserStyleSheet::level):
532
533 2010-08-12  Jian Li  <jianli@chromium.org>
534
535         Fix qt build break.
536
537         * html/ThreadableBlobRegistry.cpp:
538         (WebCore::postTaskToMainThread):
539
540 2010-08-12  Jian Li  <jianli@chromium.org>
541
542         Reviewed by David Levin.
543
544         Add ThreadableBlobRegistry to support calling BlobRegistry methods in
545         main thread.
546         https://bugs.webkit.org/show_bug.cgi?id=43874
547
548         * Android.mk:
549         * CMakeLists.txt:
550         * GNUmakefile.am:
551         * WebCore.gypi:
552         * WebCore.pro:
553         * WebCore.vcproj/WebCore.vcproj:
554         * WebCore.xcodeproj/project.pbxproj:
555         * dom/ScriptExecutionContext.cpp:
556         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
557         (WebCore::ScriptExecutionContext::addBlob):
558         (WebCore::ScriptExecutionContext::removeBlob):
559         (WebCore::ScriptExecutionContext::createPublicBlobURL):
560         (WebCore::ScriptExecutionContext::revokePublicBlobURL):
561         * dom/ScriptExecutionContext.h:
562         * html/Blob.cpp:
563         (WebCore::Blob::Blob):
564         (WebCore::Blob::~Blob):
565         (WebCore::Blob::contextDestroyed):
566         * html/Blob.h:
567         * html/BlobRegistryImpl.cpp:
568         (WebCore::BlobRegistryImpl::registerBlobURL):
569         (WebCore::BlobRegistryImpl::unregisterBlobURL):
570         (WebCore::BlobRegistryImpl::getBlobDataFromURL):
571         * html/ThreadableBlobRegistry.cpp: Added.
572         * html/ThreadableBlobRegistry.h: Added.
573
574 2010-08-12  Csaba Osztrogonác  <ossy@webkit.org>
575
576         Reviewed by Darin Adler.
577
578         generate-bindings.pl should generate warning free code
579         https://bugs.webkit.org/show_bug.cgi?id=43353
580
581         * bindings/scripts/CodeGeneratorJS.pm: Suggested parentheses added around && within ||
582
583 2010-08-11  Ryosuke Niwa  <rniwa@webkit.org>
584
585         Reviewed by Kent Tamura.
586
587         merge MarkupAccumulator and MarkupAccumulatorWrapper
588         https://bugs.webkit.org/show_bug.cgi?id=43834
589
590         Removed MarkupAccumulator and added serializeNodesWithNamespaces to use MarkupAccumulatorWrapper
591         in both versions of createMarkup.  Accumulation of nodes done manually in serializeNodes is
592         now done by MarkupAccumulatorWrapper as done in the original MarkupAccumulator.
593
594         No new tests added since this is a cleanup.
595
596         * editing/markup.cpp:
597         (WebCore::MarkupAccumulatorWrapper::MarkupAccumulatorWrapper): Takes vector of nodes and set it to m_nodes.
598         (WebCore::MarkupAccumulatorWrapper::insertOpenTag): Adds node to m_nodes.
599         (WebCore::MarkupAccumulatorWrapper::wrapWithNode): Adds node to m_nodes.
600         (WebCore::serializeNodes): Adding node to nodes is moved into MarkupAccumulatorWrapper.
601         (WebCore::createMarkup): Instantiates MarkupAccumulatorWrapper.
602         (WebCore::serializeNodesWithNamespaces): Renamed from MarkupAccumulator::appendMarkup.
603
604 2010-08-12  Dirk Schulze  <krit@webkit.org>
605
606         Unreviewed sort of Xcode project file.
607
608         * WebCore.xcodeproj/project.pbxproj:
609
610 2010-08-12  Ben Murdoch  <benm@google.com>
611
612         Reviewed by Pavel Feldman.
613
614         InspectorController.h missing InspectorObject forward declaration
615         https://bugs.webkit.org/show_bug.cgi?id=43913
616
617         Build fix so no new tests.
618
619         * inspector/InspectorController.h: Adds the necessary forward declaration.
620
621 2010-08-12  Hui Huang  <hui.2.huang@nokia.com>
622
623         Reviewed by Eric Seidel.
624
625         m_windowRect is not updated because parent of PluginView is not
626         set when updatePluginWidget is called. plugin gets wrong window
627         size on setwindow.
628         https://bugs.webkit.org/show_bug.cgi?id=43635
629
630         * plugins/symbian/PluginViewSymbian.cpp:
631         (WebCore::PluginView::setParent):
632
633 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
634
635         Not reviewed, re-apply r65241 and 65243.
636
637         Web Inspector: brush up object proxies, introduce remote object model.
638         https://bugs.webkit.org/show_bug.cgi?id=43847
639
640         * WebCore.gypi:
641         * WebCore.vcproj/WebCore.vcproj:
642         * inspector/front-end/AuditRules.js:
643         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
644         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
645         * inspector/front-end/ConsoleView.js:
646         (WebInspector.ConsoleView.prototype.doEvalInWindow):
647         (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
648         (WebInspector.ConsoleView.prototype._enterKeyPressed):
649         (WebInspector.ConsoleView.prototype._format):
650         (WebInspector.ConsoleView.prototype._formatarray):
651         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
652         (WebInspector.ConsoleMessage.prototype._format):
653         (WebInspector.ConsoleCommandResult):
654         * inspector/front-end/DOMAgent.js:
655         (WebInspector.DOMNode):
656         * inspector/front-end/ElementsPanel.js:
657         (WebInspector.ElementsPanel.prototype.performSearch):
658         * inspector/front-end/ElementsTreeOutline.js:
659         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
660         * inspector/front-end/EventListenersSidebarPane.js:
661         ():
662         * inspector/front-end/InjectedScript.js:
663         (injectedScriptConstructor):
664         (injectedScriptConstructor.):
665         * inspector/front-end/ObjectPropertiesSection.js:
666         (WebInspector.ObjectPropertiesSection.prototype.update):
667         (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
668         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
669         (WebInspector.ObjectPropertyTreeElement.prototype.update):
670         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
671         * inspector/front-end/ObjectProxy.js: Removed.
672         * inspector/front-end/PropertiesSidebarPane.js:
673         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
674         * inspector/front-end/RemoteObject.js: Added.
675         (WebInspector.RemoteObjectId):
676         (WebInspector.RemoteObject):
677         (WebInspector.RemoteObject.fromPrimitiveValue):
678         (WebInspector.RemoteObject.fromNode):
679         (WebInspector.RemoteObject.fromPayload):
680         (WebInspector.RemoteObject.type):
681         (WebInspector.RemoteObject.prototype.get objectId):
682         (WebInspector.RemoteObject.prototype.get type):
683         (WebInspector.RemoteObject.prototype.get description):
684         (WebInspector.RemoteObject.prototype.get hasChildren):
685         (WebInspector.RemoteObject.prototype.isError):
686         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
687         (WebInspector.RemoteObject.prototype.getOwnProperties):
688         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
689         (WebInspector.RemoteObjectProperty):
690         * inspector/front-end/ScopeChainSidebarPane.js:
691         (WebInspector.ScopeChainSidebarPane.prototype.update):
692         * inspector/front-end/ScriptsPanel.js:
693         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
694         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
695         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
696         * inspector/front-end/SourceFrame.js:
697         (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
698         (WebInspector.SourceFrame.prototype._showPopup):
699         (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
700         * inspector/front-end/WatchExpressionsSidebarPane.js:
701         (WebInspector.WatchExpressionsSection.prototype.update):
702         (WebInspector.WatchExpressionTreeElement.prototype.update):
703         * inspector/front-end/WebKit.qrc:
704         * inspector/front-end/inspector.html:
705         * inspector/front-end/inspector.js:
706         (WebInspector.log.logMessage):
707         (WebInspector.log):
708         * inspector/front-end/utilities.js:
709         ():
710
711 2010-08-11  Stephen White  <senorblanco@chromium.org>
712
713         Reviewed by David Levin.
714
715         Add support for BGRA pixel format to GraphicsContext3D.
716         https://bugs.webkit.org/show_bug.cgi?id=43858
717
718         Although this has been standard in desktop GL since 1.2, it's an 
719         extension in GL ES 2.0, so a query function is provided to check
720         for support.  Since they differ on semantics (GL ES 2.0 requires 
721         TexImage2D()'s format and internalFormat to match, while desktop GL
722         will not accept BGRA as an internalFormat), the stub implementation
723         returns false until these quirks have been implemented and tested on
724         each port.
725
726         * platform/graphics/GraphicsContext3D.cpp:
727         (WebCore::GraphicsContext3D::supportsBGRA):
728         Add implementation for non-chromium platforms which returns false.
729         * platform/graphics/GraphicsContext3D.h:
730         (WebCore::GraphicsContext3D::):
731         Add query function (supportsBGRA()) and the BGRA_EXT token.
732
733 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
734
735         Not reviewed. Rolling out r65241 and 65243 for breaking inspector tests.
736
737 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
738
739         Not reviewed. Adding the file missing in r65241.
740
741         * inspector/front-end/RemoteObject.js: Added.
742         (WebInspector.RemoteObjectId):
743         (WebInspector.RemoteObject):
744         (WebInspector.RemoteObject.fromPrimitiveValue):
745         (WebInspector.RemoteObject.fromNode):
746         (WebInspector.RemoteObject.fromPayload):
747         (WebInspector.RemoteObject.type):
748         (WebInspector.RemoteObject.prototype.get objectId):
749         (WebInspector.RemoteObject.prototype.get type):
750         (WebInspector.RemoteObject.prototype.get description):
751         (WebInspector.RemoteObject.prototype.get hasChildren):
752         (WebInspector.RemoteObject.prototype.isError):
753         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
754         (WebInspector.RemoteObject.prototype.getOwnProperties):
755         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
756         (WebInspector.RemoteObjectProperty):
757
758 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
759
760         Reviewed by Yury Semikhatsky.
761
762         Web Inspector: brush up object proxies, introduce remote object model.
763         https://bugs.webkit.org/show_bug.cgi?id=43847
764
765         * WebCore.gypi:
766         * WebCore.vcproj/WebCore.vcproj:
767         * inspector/front-end/AuditRules.js:
768         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
769         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
770         * inspector/front-end/ConsoleView.js:
771         (WebInspector.ConsoleView.prototype.doEvalInWindow):
772         (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
773         (WebInspector.ConsoleView.prototype._enterKeyPressed):
774         (WebInspector.ConsoleView.prototype._format):
775         (WebInspector.ConsoleView.prototype._formatnode):
776         (WebInspector.ConsoleView.prototype._formatarray):
777         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
778         (WebInspector.ConsoleMessage.prototype._format):
779         (WebInspector.ConsoleCommandResult):
780         * inspector/front-end/DOMAgent.js:
781         (WebInspector.DOMNode):
782         * inspector/front-end/ElementsTreeOutline.js:
783         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
784         * inspector/front-end/EventListenersSidebarPane.js:
785         * inspector/front-end/InjectedScript.js:
786         (injectedScriptConstructor):
787         (injectedScriptConstructor.):
788         * inspector/front-end/ObjectPropertiesSection.js:
789         (WebInspector.ObjectPropertiesSection.prototype.update):
790         (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
791         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
792         (WebInspector.ObjectPropertyTreeElement.prototype.update):
793         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
794         * inspector/front-end/ObjectProxy.js: Removed.
795         * inspector/front-end/PropertiesSidebarPane.js:
796         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
797         * inspector/front-end/RemoteObject.js: Added.
798         (WebInspector.RemoteObjectId):
799         (WebInspector.RemoteObject):
800         (WebInspector.RemoteObject.fromPrimitiveValue):
801         (WebInspector.RemoteObject.fromErrorMessage):
802         (WebInspector.RemoteObject.fromNode):
803         (WebInspector.RemoteObject.fromPayload):
804         (WebInspector.RemoteObject.type):
805         (WebInspector.RemoteObject.prototype.get objectId):
806         (WebInspector.RemoteObject.prototype.get type):
807         (WebInspector.RemoteObject.prototype.get description):
808         (WebInspector.RemoteObject.prototype.get hasChildren):
809         (WebInspector.RemoteObject.prototype.isError):
810         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
811         (WebInspector.RemoteObject.prototype.getOwnProperties):
812         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
813         (WebInspector.RemoteObjectProperty):
814         * inspector/front-end/ScopeChainSidebarPane.js:
815         (WebInspector.ScopeChainSidebarPane.prototype.update):
816         * inspector/front-end/ScriptsPanel.js:
817         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
818         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
819         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
820         * inspector/front-end/SourceFrame.js:
821         (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
822         (WebInspector.SourceFrame.prototype._showPopup):
823         (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
824         * inspector/front-end/WatchExpressionsSidebarPane.js:
825         (WebInspector.WatchExpressionsSection.prototype.update):
826         (WebInspector.WatchExpressionTreeElement.prototype.update):
827         * inspector/front-end/WebKit.qrc:
828         * inspector/front-end/inspector.html:
829         * inspector/front-end/inspector.js:
830         (WebInspector.log.logMessage):
831         (WebInspector.log):
832         * inspector/front-end/utilities.js:
833
834 2010-08-12  Ben Murdoch  <benm@google.com>
835
836         Reviewed by Steve Block.
837
838         V8 code generator does not add V8BindingMacros.h include in all places it is needed
839         https://bugs.webkit.org/show_bug.cgi?id=43907
840
841         Adds the V8BindingMacros.h header before using the STRING_TO_V8PARAMETER_EXCEPTION_BLOCK
842         macro.
843
844         Build fix so no new tests.
845
846         * bindings/scripts/CodeGeneratorV8.pm: include the header at the right time.
847
848 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
849
850         Revert for now
851         https://bugs.webkit.org/show_bug.cgi?id=43794 
852
853         * Android.mk:
854         * CMakeLists.txt:
855         * GNUmakefile.am:
856         * WebCore.exp.in:
857         * WebCore.gypi:
858         * WebCore.pro:
859         * WebCore.vcproj/WebCore.vcproj:
860         * WebCore.xcodeproj/project.pbxproj:
861         * page/GroupSettings.cpp: Removed.
862         * page/GroupSettings.h: Removed.
863         * page/PageGroup.cpp:
864         (WebCore::PageGroup::PageGroup):
865         (WebCore::PageGroup::localStorage):
866         * page/PageGroup.h:
867         * page/Settings.cpp:
868         (WebCore::Settings::Settings):
869         (WebCore::Settings::setLocalStorageQuota):
870         (WebCore::Settings::setLocalStorageDatabasePath):
871         * page/Settings.h:
872         (WebCore::Settings::localStorageQuota):
873         (WebCore::Settings::localStorageDatabasePath):
874
875 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
876
877         Not reviewed. Follow up to Jeremys fix, just remove the context parameter, it's not needed anymore.
878
879         * rendering/RenderSVGResourceGradient.cpp:
880         (WebCore::createMaskAndSwapContextForTextGradient):
881         * rendering/RenderSVGResourceMasker.cpp:
882         (WebCore::RenderSVGResourceMasker::applyResource):
883         * rendering/SVGImageBufferTools.cpp:
884         (WebCore::SVGImageBufferTools::createImageBuffer):
885         * rendering/SVGImageBufferTools.h:
886
887 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
888
889         Build fix.
890
891         * rendering/SVGImageBufferTools.cpp:
892         (WebCore::SVGImageBufferTools::createImageBuffer):
893
894 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
895
896         Reviewed by Dirk Schulze.
897
898         SVG masking performance very slow
899         https://bugs.webkit.org/show_bug.cgi?id=43622
900
901         Create ImageBuffers only as large as the final rendered size on screen. Only gradient on text on CG handled this correctly so far.
902         Refactored the code into a new SVGImageBufferTools class, and use the code from RenderSVGResourceMasker -> makes the IE9 demo SVG dice usable.
903         Clippers, Patterns and Filters remain to be converted.
904
905         Test: svg/zoom/page/zoom-mask-with-percentages.svg
906
907         * Android.mk: Add SVGImageBufferTools.* to build.
908         * CMakeLists.txt: Ditto.
909         * GNUmakefile.am: Ditto.
910         * WebCore.gypi: Ditto.
911         * WebCore.pro: Ditto.
912         * WebCore.xcodeproj/project.pbxproj: Ditto.
913         * rendering/RenderSVGAllInOne.cpp: Ditto.
914         * rendering/RenderSVGResourceGradient.cpp: Refactored CG gradient specific "create image buffer in absolute coordinates" code into SVGImageBufferTools class.
915         (WebCore::createMaskAndSwapContextForTextGradient):
916         (WebCore::clipToTextMask):
917         (WebCore::RenderSVGResourceGradient::applyResource):
918         * rendering/RenderSVGResourceMasker.cpp: Use new SVGImageBufferTools class, to avoid pixelation when zooming and to create image buffers as big as the final rendered size on screen, not more.
919         (WebCore::RenderSVGResourceMasker::invalidateClients):
920         (WebCore::RenderSVGResourceMasker::applyResource):
921         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
922         (WebCore::RenderSVGResourceMasker::calculateMaskContentRepaintRect):
923         (WebCore::RenderSVGResourceMasker::resourceBoundingBox):
924         * rendering/RenderSVGResourceMasker.h:
925         * rendering/SVGImageBufferTools.cpp: Added.
926         (WebCore::SVGImageBufferTools::absoluteTransformFromContext):
927         (WebCore::SVGImageBufferTools::createImageBuffer):
928         (WebCore::SVGImageBufferTools::clipToImageBuffer):
929         * rendering/SVGImageBufferTools.h: Added.
930         (WebCore::SVGImageBufferTools::SVGImageBufferTools):
931         (WebCore::SVGImageBufferTools::~SVGImageBufferTools):
932
933 2010-08-10  Jeremy Orlow  <jorlow@chromium.org>
934
935         Reviewed by Adam Barth.
936
937         Some settings are linked to the PageGroup not the Page.  Create a new class for those.
938         https://bugs.webkit.org/show_bug.cgi?id=43794
939
940         Since persistient storage is shared between pages, there's no way to modify
941         some settings related to it on a per page basis.  As such, it's not technically
942         correct for these settings to be on the Page's settings.  Create a new class
943         called GroupSettings, move the 2 group-wide local storage settings there, and
944         add a new setting for IndexedDB's path (which is prompting this change).
945
946         No behavior has changed, so no tests.
947
948         * Android.mk:
949         * CMakeLists.txt:
950         * GNUmakefile.am:
951         * WebCore.exp.in:
952         * WebCore.gypi:
953         * WebCore.pro:
954         * WebCore.vcproj/WebCore.vcproj:
955         * WebCore.xcodeproj/project.pbxproj:
956         * page/PageGroup.cpp:
957         (WebCore::PageGroup::PageGroup):
958         (WebCore::PageGroup::localStorage):
959         * page/PageGroup.h:
960         (WebCore::PageGroup::groupSettings):
961         * page/Settings.cpp:
962         (WebCore::Settings::Settings):
963         (WebCore::Settings::setSessionStorageQuota):
964         * page/Settings.h:
965
966 2010-08-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
967
968         Reviewed by Simon Hausmann.
969
970         [Qt] Decode images directly to QPixmap
971         https://bugs.webkit.org/show_bug.cgi?id=40797
972
973         Use the new API of Qt 4.7 to decode data from the image
974         reader directly to QPixmap.
975
976         This allow us to use JDCT_IFAST when decoding jpeg images
977         to pixmap, and to decode animated GIF images, while still
978         using in-place conversion of color space.
979
980         * platform/graphics/qt/ImageDecoderQt.cpp:
981         (WebCore::ImageDecoderQt::setData):
982         (WebCore::ImageDecoderQt::internalHandleCurrentImage):
983
984 2010-07-14  Marcus Bulach  <bulach@chromium.org>
985
986         Reviewed by darin@apple.com.
987
988         Removes DontCheckEnums from some IDLs and fixes the corresponding enums.
989         https://bugs.webkit.org/show_bug.cgi?id=42278
990
991         This is a follow-up to https://bugs.webkit.org/show_bug.cgi?id=42250: it fixes some IDL/.h and enables generating compile-time checks for enums.
992
993         Tests: idls should generate valid code.
994
995         * dom/Node.h:
996         (WebCore::Node::):
997         * dom/Node.idl:
998         * dom/OverflowEvent.h:
999         (WebCore::OverflowEvent::):
1000         * dom/OverflowEvent.idl:
1001         * html/FileReader.cpp:
1002         (WebCore::FileReader::readyState):
1003         * html/FileReader.h:
1004         (WebCore::FileReader::):
1005         * html/FileReader.idl:
1006
1007 2010-08-12  Alejandro G. Castro  <alex@igalia.com>
1008
1009         Reviewed by David Levin.
1010
1011         The #if clause enabling a feature should avoid the all includes of
1012         the feature
1013         https://bugs.webkit.org/show_bug.cgi?id=43866
1014
1015         Modified the position of the guard to avoid including all the
1016         headers if the feature controlling the guard is not enabled.
1017
1018         * dom/make_names.pl:
1019
1020 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1021
1022         Unreviewed, rolling out r65221.
1023         http://trac.webkit.org/changeset/65221
1024         https://bugs.webkit.org/show_bug.cgi?id=43896
1025
1026         Broke snow leopard build. (Requested by dave_levin on
1027         #webkit).
1028
1029         * platform/graphics/GraphicsContext3D.cpp:
1030         * platform/graphics/GraphicsContext3D.h:
1031         (WebCore::GraphicsContext3D::):
1032
1033 2010-08-11  Stephen White  <senorblanco@chromium.org>
1034
1035         Reviewed by David Levin.
1036
1037         Add support for BGRA pixel format to GraphicsContext3D.
1038         https://bugs.webkit.org/show_bug.cgi?id=43858
1039
1040         Although this has been standard in desktop GL since 1.2, it's an 
1041         extension in GL ES 2.0, so a query function is provided to check
1042         for support.  Since they differ on semantics (GL ES 2.0 requires 
1043         TexImage2D()'s format and internalFormat to match, while desktop GL
1044         will not accept BGRA as an internalFormat), the stub implementation
1045         returns false until these quirks have been implemented and tested on
1046         each port.
1047
1048         * platform/graphics/GraphicsContext3D.cpp:
1049         (WebCore::GraphicsContext3D::supportsBGRA):
1050         Add implementation for non-chromium platforms which returns false.
1051         * platform/graphics/GraphicsContext3D.h:
1052         (WebCore::GraphicsContext3D::):
1053         Add query function (supportsBGRA()) and the BGRA_EXT token.
1054
1055 2010-08-11  Satish Sampath  <satish@chromium.org>
1056
1057         Reviewed by Kent Tamura.
1058
1059         Handle clicks and recognition events for the speech input button
1060         https://bugs.webkit.org/show_bug.cgi?id=43857
1061
1062         * rendering/RenderInputSpeech.cpp:
1063         (WebCore::RenderInputSpeech::paintInputFieldSpeechButton): Selects the image based on current state.
1064         * rendering/TextControlInnerElements.cpp:
1065         (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
1066         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
1067         (WebCore::InputFieldSpeechButtonElement::set_state): Switch to a new state and update the UI.
1068         (WebCore::InputFieldSpeechButtonElement::didCompleteRecording): 
1069         (WebCore::InputFieldSpeechButtonElement::didCompleteRecognition):
1070         * rendering/TextControlInnerElements.h:
1071         (WebCore::InputFieldSpeechButtonElement::):
1072         (WebCore::InputFieldSpeechButtonElement::state):
1073
1074 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
1075
1076         Reviewed by Alexey Proskuryakov.
1077
1078         REGRESSION(65135): format specifier warnings
1079         https://bugs.webkit.org/show_bug.cgi?id=43876
1080
1081         * websockets/WebSocketChannel.cpp:
1082         (WebCore::WebSocketChannel::appendToBuffer): cast size_t to unsigned long for %lu.
1083         (WebCore::WebSocketChannel::processBuffer): cast size_t to unsigned long for %lu.
1084
1085 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
1086
1087         [wx] Build fix, don't generate WebDOMEventTarget.h/.cpp as we use the ones in bindings/cpp.
1088         
1089         * DerivedSources.make:
1090
1091 2010-08-11  Tony Gentilcore  <tonyg@chromium.org>
1092
1093         Reviewed by Adam Barth.
1094
1095         Make PendingScript copyable so that it can be stored in containers
1096         https://bugs.webkit.org/show_bug.cgi?id=43875
1097
1098         This will be useful for storing PendingScripts in a Vector or Deque for
1099         async and defer scripts.
1100
1101         No new tests because no functional changes.
1102
1103         * dom/PendingScript.h:
1104         (WebCore::PendingScript::PendingScript):
1105         (WebCore::PendingScript::operator=):
1106
1107 2010-08-11  Victoria Kirst  <vrk@google.com>
1108
1109         Reviewed by David Levin.
1110
1111         Fixing a regression in the UI for Mac default audio/video controls.
1112         https://bugs.webkit.org/show_bug.cgi?id=43750
1113
1114         * rendering/RenderThemeChromiumMac.h:
1115         * rendering/RenderThemeChromiumMac.mm:
1116         (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderContainer):
1117         (WebCore::RenderThemeChromiumMac::paintMediaSliderThumb):
1118         (WebCore::RenderThemeChromiumMac::volumeSliderOffsetFromMuteButton):
1119
1120 2010-08-11  Adam Barth  <abarth@webkit.org>
1121
1122         Reviewed by Eric Seidel.
1123
1124         HTML TreeBuilder hits ASSERT in fragment case with insertAdjacentHTML and colgroup
1125         https://bugs.webkit.org/show_bug.cgi?id=43758
1126
1127         This patch conditionalizes some LegacyHTMLTreeBuilder-specific code in
1128         HTMLElement::createContextualFragment that interferes with the new
1129         HTMLTreeBuilder.  Doing that exposes the above ASSERT, which I've fixed
1130         in this patch too.  Fixing that ASSERT involved a small refactoring in
1131         ExternalCharacterTokenBuffer.
1132
1133         * html/HTMLElement.cpp:
1134         (WebCore::HTMLElement::createContextualFragment):
1135         * html/HTMLTreeBuilder.cpp:
1136         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeadingWhitespace):
1137         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeadingWhitespace):
1138         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeadingNonWhitespace):
1139         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeading):
1140         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeading):
1141         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
1142
1143 2010-08-11  Adam Barth  <abarth@webkit.org>
1144
1145         Reviewed by Eric Seidel.
1146
1147         Conditionalize wrong fragment parsing code to pass more HTML5lib tests
1148         https://bugs.webkit.org/show_bug.cgi?id=43877
1149
1150         This code exists to support the LegacyHTMLTreeBuilder.  Unfortunately,
1151         it causes problems for the new HTMLTreeBuilder (which is more
1152         self-contained).
1153
1154         * dom/Element.cpp:
1155         (WebCore::Element::createContextualFragment):
1156
1157 2010-08-11  Ryosuke Niwa  <rniwa@webkit.org>
1158
1159         Reviewed by Tony Chang.
1160
1161         Can't unbold text in div in font-weight span
1162         https://bugs.webkit.org/show_bug.cgi?id=26871
1163
1164         The bug was caused by removeInlineStyle not being able to include styled inline nodes around the start.
1165         Solved this problem by pushing down all inline styles instead of just text-decorations.
1166         This approach allows removeInlineStyle to remove styled ancestors properly and generates compact markups.
1167
1168         Test: editing/style/push-down-inline-styles.html
1169
1170         * editing/ApplyStyleCommand.cpp:
1171         (WebCore::ApplyStyleCommand::removeCSSStyle): No longer removes attributes or node when mode == RemoveNone.
1172         (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle): Calls shouldRemoveInlineStyleFromElement
1173         to determine the highest ancestor whose style needs to be pushed down.
1174         (WebCore::ApplyStyleCommand::extractInlineStyleToPushDown): Renamed from extractTextDecorationStyle.
1175         Extracts all inline CSS properties specified instead of just text decorations.
1176         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Renamed from applyTextDecorationStyle.
1177         Applies inline styles using addInlineStyleIfNeeded or adds inline CSS values.
1178         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Renamed from pushDownTextDecorationStyleAroundNode.
1179         (WebCore::ApplyStyleCommand::removeInlineStyle): Calls pushDownTextDecorationStyleAroundNode.
1180         * editing/ApplyStyleCommand.h:
1181         * editing/DeleteSelectionCommand.cpp:
1182         (WebCore::DeleteSelectionCommand::mergeParagraphs): Prevents moveParagraph from preserving
1183         the style of an empty paragraph when merged with the previous paragraph because we don't use that style anyways.
1184
1185 2010-08-11  Julien Chaffraix  <jchaffraix@codeaurora.org>
1186
1187         Reviewed by Ariya Hidayat.
1188
1189         Remove dead code in CSSStyleSelector.
1190         https://bugs.webkit.org/show_bug.cgi?id=43805
1191
1192         * css/CSSStyleSelector.cpp: Remove some debugging code that
1193         was compiled out.
1194
1195 2010-08-11  Chris Fleizach  <cfleizach@apple.com>
1196
1197         Reviewed by Beth Dakin.
1198
1199         AX: isNativeCheckbox does not work as advertised
1200         https://bugs.webkit.org/show_bug.cgi?id=43872
1201
1202         Test: platform/mac/accessibility/native-vs-nonnative-checkboxes.html
1203
1204         * accessibility/AccessibilityRenderObject.cpp:
1205         (WebCore::AccessibilityRenderObject::isInputImage):
1206             Only say it's an input image if its role has not been overriden
1207         (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
1208         * dom/InputElement.h:
1209             Add methods to query if it's a checkbox or radio button type element.
1210         * html/HTMLInputElement.h:
1211         (WebCore::HTMLInputElement::isCheckbox):
1212
1213 2010-08-11  Kenneth Russell  <kbr@google.com>
1214
1215         Reviewed by David Levin.
1216
1217         Remove obsolete WebGLArray type names
1218         https://bugs.webkit.org/show_bug.cgi?id=43885
1219
1220         Deleted aliases to obsolete WebGLArray type names. Updated
1221         affected layout tests, synchronizing them with the versions in the
1222         Khronos repository where appropriate. Ran all layout tests.
1223
1224         * bindings/js/JSDOMWindowCustom.cpp:
1225         * page/DOMWindow.idl:
1226
1227 2010-08-11  Steve Block  <steveblock@google.com>
1228
1229         Reviewed by David Levin.
1230
1231         [chromium] Geolocation breaks the compile if ENABLE_GEOLOCATION is set to 0
1232         https://bugs.webkit.org/show_bug.cgi?id=43753
1233
1234         This change guards the entire contents of the V8 custom bindings files
1235         with ENABLE(GEOLOCATION) to match JSC.
1236
1237         No new tests, build fix only.
1238
1239         * bindings/v8/custom/V8CustomPositionCallback.cpp:
1240         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
1241         * bindings/v8/custom/V8GeolocationCustom.cpp:
1242
1243 2010-08-11  Kwang Yul Seo  <skyul@company100.net>
1244
1245         Reviewed by David Levin.
1246
1247         Include <wtf/UnusedParam.h> in GraphicsContextSkia.cpp
1248         https://bugs.webkit.org/show_bug.cgi?id=43843
1249
1250         wtf/UnusedParam.h must be included because UNUSED_PARAM macro is used.
1251
1252         * platform/graphics/skia/GraphicsContextSkia.cpp:
1253
1254 2010-08-11  Nico Weber  <thakis@chromium.org>
1255
1256         Reviewed by David Levin.
1257
1258         [chromium/mac]: Fix colors in compositing mode
1259         https://bugs.webkit.org/show_bug.cgi?id=43823
1260
1261         The textures are drawn by opengl, which doesn't do any color space
1262         correction -- it assumes everything is in the device color space
1263         already. Hence, when drawing into the memory that will be uploaded
1264         as opengl texture, use the device color space.
1265
1266         * platform/graphics/chromium/ImageLayerChromium.cpp:
1267         (WebCore::ImageLayerChromium::updateTextureContents):
1268         * platform/graphics/chromium/LayerChromium.cpp:
1269         (WebCore::LayerChromium::updateTextureContents):
1270         * platform/graphics/chromium/LayerRendererChromium.cpp:
1271         (WebCore::LayerRendererChromium::setRootLayerCanvasSize):
1272
1273 2010-08-11  Kenneth Russell  <kbr@google.com>
1274
1275         Reviewed by Dimitri Glazkov.
1276
1277         Remove obsolete texImage2D and texSubImage2D entry points
1278         https://bugs.webkit.org/show_bug.cgi?id=40320
1279
1280         No new tests; covered by existing WebGL tests.
1281
1282         * html/canvas/WebGLRenderingContext.cpp:
1283         * html/canvas/WebGLRenderingContext.h:
1284         * html/canvas/WebGLRenderingContext.idl:
1285
1286 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
1287
1288         Windows build fix.
1289
1290         * platform/win/BString.cpp:
1291         (WebCore::BString::BString):
1292
1293 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
1294
1295         Qt build fix II.
1296
1297         * WebCore.xcodeproj/project.pbxproj:
1298         * bridge/qt/qt_runtime.cpp:
1299         (JSC::Bindings::convertValueToQVariant):
1300
1301 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
1302
1303         Qt build fix.
1304
1305         * WebCore.xcodeproj/project.pbxproj:
1306         * bridge/qt/qt_runtime.cpp:
1307         (JSC::Bindings::convertValueToQVariant):
1308
1309 2010-08-11  Steve Block  <steveblock@google.com>
1310
1311         Reviewed by Jeremy Orlow.
1312
1313         Need EmptyDeviceOrientationClient and EmptyDeviceMotionClient for use with SVGImage
1314         https://bugs.webkit.org/show_bug.cgi?id=43848
1315
1316         Tested by existing DeviceOrientation tests.
1317
1318         * loader/EmptyClients.h:
1319         (WebCore::EmptyDeviceMotionClient::setController):
1320         (WebCore::EmptyDeviceMotionClient::startUpdating):
1321         (WebCore::EmptyDeviceMotionClient::stopUpdating):
1322         (WebCore::EmptyDeviceMotionClient::currentDeviceMotion):
1323         (WebCore::EmptyDeviceOrientationClient::setController):
1324         (WebCore::EmptyDeviceOrientationClient::startUpdating):
1325         (WebCore::EmptyDeviceOrientationClient::stopUpdating):
1326         (WebCore::EmptyDeviceOrientationClient::lastOrientation):
1327         * svg/graphics/SVGImage.cpp:
1328         (WebCore::SVGImage::dataChanged):
1329
1330 2010-08-11  Rob Buis  <rwlbuis@gmail.com>
1331
1332         Reviewed by Dan Bernstein.
1333
1334         https://bugs.webkit.org/show_bug.cgi?id=42042
1335         An empty value for xml:lang isn't considered
1336
1337         Revert last line change of my patch ; it happens to
1338         behave correctly and same as before, but makes the
1339         use case of empty values unneededly slower.
1340
1341         No new tests. (No change in behavior)
1342
1343         * css/CSSStyleSelector.cpp:
1344         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
1345
1346 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
1347
1348         [wx, WebDOM] Build fix. Fix callback params and WebCore::String -> WTF::String fixes.
1349
1350         * bindings/cpp/WebDOMCustomVoidCallback.cpp: Added.
1351         (WebDOMCustomVoidCallback::WebDOMCustomVoidCallback):
1352         (WebDOMCustomVoidCallback::~WebDOMCustomVoidCallback):
1353         (WebDOMCustomVoidCallback::handleEvent):
1354         (toWebCore):
1355         * bindings/cpp/WebDOMCustomVoidCallback.h: Added.
1356         (WebDOMCustomVoidCallback::create):
1357         * bindings/cpp/WebDOMHTMLDocumentCustom.cpp:
1358         (documentWrite):
1359         * bindings/cpp/WebDOMString.cpp:
1360         (WebDOMString::equals):
1361         * bindings/scripts/CodeGeneratorCPP.pm:
1362         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
1363         (WebDOMTestCallback::callbackWithClass1Param):
1364         (WebDOMTestCallback::callbackWithClass2Param):
1365         (WebDOMTestCallback::callbackWithNonBoolReturnType):
1366         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
1367         * bindings/scripts/test/V8/V8TestInterface.h:
1368         * bindings/scripts/test/V8/V8TestObj.h:
1369         * wscript:
1370
1371 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
1372
1373         Rubber stamps by Darin Adler & Sam Weinig.
1374
1375         Bug 43867 - Some UString cleanup
1376
1377         Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String.
1378         Move string concatenation methods to a new header to simplify down UString.h.  Remove is8Bit().
1379
1380         * WebCore.xcodeproj/project.pbxproj:
1381         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
1382         (WebCore::hasCSSPropertyNamePrefix):
1383         (WebCore::cssPropertyName):
1384         * bindings/js/JSLocationCustom.cpp:
1385         (WebCore::JSLocation::setPort):
1386         * bindings/js/ScriptDebugServer.cpp:
1387         (WebCore::ScriptDebugServer::dispatchDidParseSource):
1388         * bindings/js/ScriptString.h:
1389         (WebCore::ScriptString::size):
1390         * bindings/js/ScriptValue.cpp:
1391         (WebCore::jsToInspectorValue):
1392         * bindings/objc/WebScriptObject.mm:
1393         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
1394         * bridge/jni/jni_jsobject.mm:
1395         (JavaJSObject::convertValueToJObject):
1396         * bridge/jni/jsc/JNIUtilityPrivate.cpp:
1397         (JSC::Bindings::convertArrayInstanceToJavaArray):
1398         (JSC::Bindings::convertValueToJValue):
1399         * bridge/objc/objc_runtime.mm:
1400         (JSC::Bindings::callObjCFallbackObject):
1401
1402 2010-08-10  David Hyatt  <hyatt@apple.com>
1403
1404         Reviewed by Dan Bernstein.
1405
1406         https://bugs.webkit.org/show_bug.cgi?id=43806, add ability to paginate screen content.
1407         
1408         Add a new boolean to Document to indicate that content should be paginated.  This is checked when doing page breaks
1409         and in a couple of other cases.
1410
1411         * dom/Document.cpp:
1412         (WebCore::Document::Document):
1413         * dom/Document.h:
1414         (WebCore::Document::paginatedForScreen):
1415         (WebCore::Document::setPaginatedForScreen):
1416         (WebCore::Document::paginated):
1417         * rendering/RenderBlock.cpp:
1418         (WebCore::RenderBlock::paintChildren):
1419         (WebCore::RenderBlock::calcColumnWidth):
1420         * rendering/RenderBox.cpp:
1421         (WebCore::RenderBox::calcHeight):
1422         * rendering/RenderView.cpp:
1423         (WebCore::RenderView::paint):
1424
1425 2010-08-11  Adam Barth  <abarth@webkit.org>
1426
1427         Windows build fix.  Turns out we need to unconditionally include
1428         HTMLEntityNames.cpp now that LegacyHTMLDocumentParser doesn't exist.
1429
1430         * html/HTMLEntityParser.cpp:
1431
1432 2010-08-11  Eric Carlson  <eric.carlson@apple.com>
1433
1434         Reviewed by Darin Adler.
1435
1436         Inserting a <source> element should immediately set networkState to NETWORK_NO_SOURCE.
1437         https://bugs.webkit.org/show_bug.cgi?id=42897
1438
1439         A <source> element inserted as a child of a media element with a networkState of NETWORK_EMPTY
1440         should cause the networkState to immediately change to NETWORK_NO_SOURCE.
1441
1442         * WebCore.xcodeproj/project.pbxproj:
1443         * html/HTMLMediaElement.cpp:
1444         (WebCore::HTMLMediaElement::HTMLMediaElement): Remove unused variable m_processingLoad.
1445         (WebCore::HTMLMediaElement::prepareForLoad): Set m_networkState to NETWORK_NO_SOURCE.
1446         (WebCore::HTMLMediaElement::loadInternal): Remove unused variable m_processingLoad.
1447         (WebCore::HTMLMediaElement::selectMediaResource): No need to change m_networkState, it was done in prepareForLoad.
1448         * html/HTMLMediaElement.h:
1449
1450         * html/HTMLSourceElement.cpp:
1451         (WebCore::HTMLSourceElement::insertedIntoTree): Renamed from insertedIntoDocument because we want
1452         to do this setup whether or not the parent media element is in the document.
1453         * html/HTMLSourceElement.h:
1454
1455 2010-08-11  Adam Barth  <abarth@webkit.org>
1456
1457         Rubber-stamped by Eric Seidel.
1458
1459         Delete LegacyHTMLDocumentParser and LegacyPreloadScanner
1460         https://bugs.webkit.org/show_bug.cgi?id=43836
1461
1462         These classes are bit-rotting disturbingly quickly.  We removed the
1463         last dependencies on these classes and so we can remove them.
1464
1465         We might need to preserve some of their particular quirks to handle
1466         some legacy applications, but our current thinking is to do that with
1467         individual settings that affect the new parser.
1468
1469         * Android.mk:
1470         * CMakeLists.txt:
1471         * GNUmakefile.am:
1472         * WebCore.gypi:
1473         * WebCore.pro:
1474         * WebCore.vcproj/WebCore.vcproj:
1475         * WebCore.xcodeproj/project.pbxproj:
1476         * dom/Document.cpp:
1477         * dom/DocumentFragment.cpp:
1478         (WebCore::DocumentFragment::parseHTML):
1479         * dom/DocumentParser.h:
1480         * dom/XMLDocumentParserLibxml2.cpp:
1481         * dom/XMLDocumentParserQt.cpp:
1482         * html/HTMLConstructionSite.cpp:
1483         * html/HTMLDocument.cpp:
1484         (WebCore::HTMLDocument::createParser):
1485         * html/HTMLEntityParser.cpp:
1486         (WebCore::decodeNamedEntity):
1487         * html/HTMLEntityParser.h:
1488         * html/HTMLFormControlElement.cpp:
1489         * html/HTMLTreeBuilder.cpp:
1490         * html/HTMLViewSourceDocument.cpp:
1491         (WebCore::HTMLViewSourceDocument::createParser):
1492         * html/LegacyHTMLDocumentParser.cpp: Removed.
1493         * html/LegacyHTMLDocumentParser.h: Removed.
1494         * html/LegacyHTMLTreeBuilder.cpp:
1495         * html/LegacyPreloadScanner.cpp: Removed.
1496         * html/LegacyPreloadScanner.h: Removed.
1497         * loader/FTPDirectoryDocument.cpp:
1498         (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
1499         (WebCore::FTPDirectoryDocumentParser::appendEntry):
1500         (WebCore::FTPDirectoryDocumentParser::createTDForFilename):
1501         (WebCore::processFilesizeString):
1502         (WebCore::wasLastDayOfMonth):
1503         (WebCore::processFileDateString):
1504         (WebCore::FTPDirectoryDocumentParser::parseAndAppendOneLine):
1505         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
1506         (WebCore::FTPDirectoryDocumentParser::createBasicDocument):
1507         (WebCore::FTPDirectoryDocumentParser::append):
1508         (WebCore::FTPDirectoryDocumentParser::finish):
1509         * page/XSSAuditor.cpp:
1510         (WebCore::XSSAuditor::decodeHTMLEntities):
1511         * page/XSSAuditor.h:
1512         * platform/text/SegmentedString.cpp:
1513         (WebCore::SegmentedString::prepend):
1514
1515 2010-08-11  Chris Jerdonek  <cjerdonek@webkit.org>
1516
1517         Reviewed by Adam Barth.
1518
1519         Refactored FrameLoader::createWindow() out of the FrameLoader class
1520         since FrameLoader should not be responsible for creating windows.
1521
1522         https://bugs.webkit.org/show_bug.cgi?id=39156
1523
1524         No new functionality, so no new tests.
1525
1526         * bindings/generic/BindingDOMWindow.h:
1527         (WebCore::::createWindow):
1528           - Updated the call to FrameLoader's createWindow().
1529         * bindings/js/JSDOMWindowCustom.cpp:
1530         (WebCore::createWindow):
1531           - Updated the call to FrameLoader's createWindow().
1532         * loader/FrameLoader.cpp:
1533         (WebCore::createWindowFromFrameLoader):
1534           - Made FrameLoader::createWindow() non-member, non-friend and changed it
1535             to accept Frame* parameters instead of FrameLoader*.
1536         * loader/FrameLoader.h:
1537           - Updated the header file to reflect the above change to FrameLoader.cpp.
1538
1539 2010-08-11  Ilya Tikhonovsky  <loislo@chromium.org>
1540
1541         Reviewed by Pavel Feldman.
1542
1543         WebInspector: small refactoring for CodeGeneratorInspector.
1544         all "notify" methods are generating in InspectorFrontend
1545         the other methods are generating in InspectorBackend.
1546         https://bugs.webkit.org/show_bug.cgi?id=43849
1547
1548         * inspector/CodeGeneratorInspector.pm:
1549
1550 2010-08-11  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1551
1552         Reviewed by Xan Lopez.
1553
1554         [GTK] Misc improvements to the scrolling code
1555         https://bugs.webkit.org/show_bug.cgi?id=41926
1556
1557         Refactor code that uses deprecated ways of dealing with the
1558         adjustments to use the GtkVersioning infrastructure.
1559
1560         * GNUmakefile.am:
1561         * platform/gtk/GtkVersioning.cpp: Added.
1562         * platform/gtk/GtkVersioning.h:
1563         * platform/gtk/ScrollViewGtk.cpp:
1564         * platform/gtk/ScrollbarGtk.cpp:
1565         (ScrollbarGtk::detachAdjustment):
1566         (ScrollbarGtk::updateThumbPosition):
1567         (ScrollbarGtk::updateThumbProportion):
1568
1569 2010-08-11  Nate Chapin  <japhet@chromium.org>
1570
1571         Chromium mac build fix (variables weren't being initialized).
1572
1573         * platform/graphics/filters/FEGaussianBlur.cpp: 
1574         (WebCore::FEGaussianBlur::apply): Initalize dxLeft, dxRight, dyLeft, dyRight.
1575
1576 2010-08-11  Pavel Feldman  <pfeldman@chromium.org>
1577
1578         Reviewed by Yury Semikhatsky.
1579
1580         Web Inspector: apply correct fix to storage panel status bar buttons.
1581
1582         https://bugs.webkit.org/show_bug.cgi?id=43846
1583
1584         * inspector/front-end/DatabaseTableView.js:
1585         (WebInspector.DatabaseTableView.prototype.get statusBarItems):
1586         * inspector/front-end/StoragePanel.js:
1587         (WebInspector.StoragePanel.prototype._genericViewSetup):
1588
1589 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
1590
1591         Reviewed by Adam Barth.
1592
1593         Override operator= for C++ DOM binding classes with private structs
1594         and update C++ DOM bindings test results.
1595         https://bugs.webkit.org/show_bug.cgi?id=43735
1596
1597         * bindings/cpp/WebDOMEventTarget.cpp:
1598         (WebDOMEventTarget::operator=):
1599         * bindings/cpp/WebDOMEventTarget.h:
1600         * bindings/scripts/CodeGeneratorCPP.pm:
1601         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
1602         (WebDOMTestCallback::operator=):
1603         * bindings/scripts/test/CPP/WebDOMTestCallback.h:
1604         * bindings/scripts/test/CPP/WebDOMTestInterface.cpp:
1605         (WebDOMTestInterface::operator=):
1606         * bindings/scripts/test/CPP/WebDOMTestInterface.h:
1607         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
1608         (WebDOMTestObj::operator=):
1609         * bindings/scripts/test/CPP/WebDOMTestObj.h:
1610
1611 2010-08-11  Julie Parent  <jparent@chromium.org>
1612
1613         Reviewed by Justin Garcia.
1614
1615         Crash in replaceSelectionCommand with RTL text.
1616         https://bugs.webkit.org/show_bug.cgi?id=41485
1617         
1618         For text with mixed directionality, sort the text boxes before
1619         computing gaps, since that code assumes the boxes are in order.
1620
1621         Test: editing/execCommand/insert-image-on-top-of-directional-text.html
1622
1623         * editing/CompositeEditCommand.cpp:
1624         (WebCore::CompositeEditCommand::deleteInsignificantText): Sort boxes
1625         like we do in TextIterator before computing gaps.
1626         * editing/TextIterator.cpp:
1627         (WebCore::TextIterator::handleTextNode): Use new compareByStart
1628         rather than compareBoxStart.  No functional change.
1629         * rendering/InlineTextBox.h:
1630         (WebCore::InlineTextBox::compareByStart): Moved compareBoxStart
1631         from TextIterator here so it can be used in multiple places.
1632
1633 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
1634
1635         Unreviewed build fix of Leopard Intel Debug (Build)
1636
1637         * websockets/WebSocketChannel.cpp:
1638         (WebCore::WebSocketChannel::processBuffer): use %lu, instead of %ul
1639
1640 2010-08-11  Alejandro G. Castro  <alex@igalia.com>
1641
1642         Reviewed by Dirk Schulze.
1643
1644         Fixes to the gaussian blur algorithm
1645         https://bugs.webkit.org/show_bug.cgi?id=41605
1646
1647         Added the recomendations of SVG regarding the kernel size
1648         calculation for the approximation of the gaussian
1649         blur. http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement.
1650         Modified also some variable names to clarify algorithm, reviewed
1651         the situation where both standard deviations are 0.
1652
1653         * platform/graphics/filters/FEGaussianBlur.cpp:
1654         (WebCore::FEGaussianBlur::FEGaussianBlur):
1655         (WebCore::FEGaussianBlur::stdDeviationX):
1656         (WebCore::FEGaussianBlur::setStdDeviationX):
1657         (WebCore::FEGaussianBlur::stdDeviationY):
1658         (WebCore::FEGaussianBlur::setStdDeviationY):
1659         (WebCore::boxBlur):
1660         (WebCore::FEGaussianBlur::kernelPosition): Added the SVG kernel
1661         position recomendation.
1662         (WebCore::FEGaussianBlur::apply):
1663         (WebCore::FEGaussianBlur::externalRepresentation):
1664         * platform/graphics/filters/FEGaussianBlur.h:
1665
1666 2010-08-11  Kristian Monsen  <kristianm@google.com>
1667
1668         Reviewed by Steve Block.
1669
1670         Compile fix for Android, added include for <wtf/text/Cstring.h, this
1671         did not get included in Android.
1672         https://bugs.webkit.org/show_bug.cgi?id=41517
1673         
1674         Build fix only, no new tests.
1675
1676         * page/PrintContext.cpp:
1677
1678 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
1679
1680         Reviewed by Alexey Proskuryakov.
1681
1682         Fix length calculation to be more robust.
1683         https://bugs.webkit.org/show_bug.cgi?id=43777
1684
1685         Test: websocket/tests/frame-length-overflow.html
1686
1687         * websockets/WebSocketChannel.cpp:
1688         (WebCore::WebSocketChannel::appendToBuffer): len is size_t.
1689          - add sanity check for integer wraps.
1690         (WebCore::WebSocketChannel::skipBuffer): len is size_t.
1691         (WebCore::WebSocketChannel::processBuffer): length is size_t.
1692          - add sanity check for integer wraps.
1693         * websockets/WebSocketChannel.h: change m_bufferSize and len to size_t.
1694
1695 2010-08-10  Eric Seidel  <eric@webkit.org>
1696
1697         Reviewed by Adam Barth.
1698
1699         Fix three ASSERTs hit with the HTML5 TreeBuilder in fragment mode
1700         https://bugs.webkit.org/show_bug.cgi?id=43762
1701
1702         In fixing the insertAdjacentHTML I had to make small changes to
1703         the error logic, which ended up bringing us closer to HTML5.
1704
1705         Test: fast/dom/HTMLElement/insertAdjacentHTML-errors.html
1706
1707         * html/HTMLConstructionSite.cpp:
1708         (WebCore::HTMLConstructionSite::attach):
1709          - This ASSERT was just wrong, the child should not be attached
1710            in the case the parent is not attached.
1711         * html/HTMLElement.cpp:
1712         (WebCore::contextElementForInsertion):
1713          - This is part of HTML5, needed to know what to call the
1714            HTML or XML parsers with.  The previous code always passed
1715            "this" which is wrong in the case of beforeBegin or afterEnd insertion.
1716         (WebCore::HTMLElement::insertAdjacentHTML):
1717          - Use the right contextElement now that we know how to compute it.
1718         * html/HTMLTreeBuilder.cpp:
1719         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
1720          - This ASSERT is direct from the spec, but it's wrong, so I've filed a spec bug.
1721
1722 2010-08-11  Adam Barth  <abarth@webkit.org>
1723
1724         Attempt to fix Windows build.
1725
1726         * platform/win/COMPtr.h:
1727         (WTF::):
1728
1729 2010-08-11  Adam Barth  <abarth@webkit.org>
1730
1731         Reviewed by Eric Seidel.
1732
1733         Port view-source to new parser
1734         https://bugs.webkit.org/show_bug.cgi?id=43746
1735
1736         This patch switches the view-source mode for frames over to using the
1737         new HTML parsing infrastructure.  This patch is an architectural change
1738         to how we parser view source documents.
1739
1740         Previously, the LegacyHTMLDocumentParser would output a "guide string"
1741         that consided of the inter-attribute whitespace and various "control"
1742         characters.  The HTMLViewSourceDocument would then interpret this guide
1743         string to approximately reconstruct the source of the original document
1744         and colorize various syntatic constructs.
1745
1746         Unfortunately, that approach is inherently low-fidelity.  It's not
1747         really feasible to reconstruct the input document from the token
1748         stream.  The old view source mode also had a number of hacks in the old
1749         parser (e.g., to turn of decoding of HTML entities).
1750
1751         Instead of trying to reconstruct the original document from the token
1752         stream, we use the segmentation information given by the tokens to
1753         colorize the input document itself.  Each token now caries information
1754         about where in the input stream it came from and where various
1755         subcomponents (e.g., attribute names and values) are located.  This
1756         approach is higher fidelity because we use this segmentation
1757         information to colorize the original input instead of attempting to
1758         reconstruct the original input.
1759
1760         * Android.mk:
1761         * CMakeLists.txt:
1762         * GNUmakefile.am:
1763         * WebCore.gypi:
1764         * WebCore.pro:
1765         * WebCore.vcproj/WebCore.vcproj:
1766         * WebCore.xcodeproj/project.pbxproj:
1767         * html/HTMLDocumentParser.cpp:
1768         * html/HTMLToken.h:
1769         (WebCore::HTMLToken::clear):
1770         (WebCore::HTMLToken::startIndex):
1771         (WebCore::HTMLToken::length):
1772         (WebCore::HTMLToken::end):
1773         * html/HTMLViewSourceDocument.cpp:
1774         (WebCore::HTMLViewSourceDocument::createParser):
1775         (WebCore::HTMLViewSourceDocument::addSource):
1776         (WebCore::HTMLViewSourceDocument::processDoctypeToken):
1777         (WebCore::HTMLViewSourceDocument::processTagToken):
1778         (WebCore::HTMLViewSourceDocument::processCommentToken):
1779         (WebCore::HTMLViewSourceDocument::processCharacterToken):
1780         (WebCore::HTMLViewSourceDocument::addRange):
1781         * html/HTMLViewSourceDocument.h:
1782         * html/HTMLViewSourceParser.cpp: Added.
1783         (WebCore::HTMLViewSourceParser::~HTMLViewSourceParser):
1784         (WebCore::HTMLViewSourceParser::insert):
1785         (WebCore::HTMLViewSourceParser::pumpTokenizer):
1786         (WebCore::HTMLViewSourceParser::append):
1787         (WebCore::HTMLViewSourceParser::sourceForToken):
1788         (WebCore::HTMLViewSourceParser::updateTokenizerState):
1789         (WebCore::HTMLViewSourceParser::finish):
1790         (WebCore::HTMLViewSourceParser::finishWasCalled):
1791         * html/HTMLViewSourceParser.h: Added.
1792         (WebCore::HTMLViewSourceParser::HTMLViewSourceParser):
1793         (WebCore::HTMLViewSourceParser::document):
1794         * html/LegacyHTMLDocumentParser.cpp:
1795         (WebCore::LegacyHTMLDocumentParser::processToken):
1796         (WebCore::LegacyHTMLDocumentParser::processDoctypeToken):
1797
1798 2010-08-11  Yoshiki Hayashi  <yhayashi@google.com>
1799
1800         Reviewed by Shinichiro Hamaji.
1801
1802         Make form controls, textarea, legend and datagrid treat width:
1803         auto as specified in stretching vertical flexbox.  Otherwise it's
1804         treated as intrinsic as before.
1805         https://bugs.webkit.org/show_bug.cgi?id=17918
1806
1807         Test: fast/flexbox/vertical-box-form-controls.html
1808
1809         * css/CSSStyleSelector.cpp:
1810         (WebCore::CSSStyleSelector::adjustRenderStyle):
1811         * rendering/RenderBox.cpp:
1812         (WebCore::RenderBox::sizesToIntrinsicWidth):
1813
1814 2010-08-10  Darin Adler  <darin@apple.com>
1815
1816         Reviewed by Sam Weinig.
1817
1818         Add leakRef and clear to all RefPtr variants
1819         https://bugs.webkit.org/show_bug.cgi?id=42389
1820
1821         * platform/win/COMPtr.h: Changed all uses of "template <...>" to instead do
1822         "template<...>". Defined many of the inlined functions outside the class
1823         definition, to avoid style checker warnings about multiple statements on
1824         a single line and for slightly better clarity of the class definition itself.
1825         Renamed releaseRef to leakRef. Added a releaseRef that calls leakRef so we
1826         don't have to rename all callers at once. Added a clear function. Changed
1827         the hash table code so it doesn't need to call releaseRef, and so it uses
1828         the hash table deleted value hooks already present within the class.
1829
1830 2010-08-10  Ariya Hidayat  <ariya@sencha.com>
1831
1832         [Qt] Fix build warning: remove reference to html/BlobRegistryImp.h
1833
1834         * WebCore.pro:
1835
1836 2010-08-10  Alexey Proskuryakov  <ap@apple.com>
1837
1838         Reviewed by Darin Adler.
1839
1840         https://bugs.webkit.org/show_bug.cgi?id=43803
1841         <rdar://problem/6988023> Only the last Korean character can be shown if font style is enabled while typing (43803)
1842
1843         Test: platform/mac/editing/input/bold-node.html
1844
1845         * editing/Editor.cpp: (WebCore::Editor::setComposition): It is not clear to me what the
1846         "baseNode == extentNode" check is about in this function , but let's try to make it more
1847         likely that it passes.
1848
1849 2010-08-10  Hayato Ito  <hayato@chromium.org>
1850
1851         Reviewed by Kent Tamura.
1852
1853         Make CSSSelector::specificity() non-recursive.
1854         https://bugs.webkit.org/show_bug.cgi?id=43784
1855
1856         This change is one of the required changes to fix the following master bug:
1857         https://bugs.webkit.org/show_bug.cgi?id=42806
1858
1859         No functional change, thus no tests.
1860
1861         * css/CSSSelector.cpp:
1862         (WebCore::CSSSelector::specificity):
1863         (WebCore::CSSSelector::specificityForOneSelector):
1864         (WebCore::CSSSelector::specificityForPage):
1865         * css/CSSSelector.h:
1866
1867 2010-08-10  Matthew Delaney  <mdelaney@apple.com>
1868
1869         Reviewed by Darin Adler.
1870
1871         2d.path.clip.empty.html test is failing
1872         https://bugs.webkit.org/show_bug.cgi?id=43161
1873
1874         * platform/graphics/cg/GraphicsContextCG.cpp:
1875         (WebCore::GraphicsContext::clip):
1876         Catching the empty path case from being sent directly to 
1877         CGContextClip - which would ignore it. Instead, using 
1878         CGContextClip with a CGRectZero to achieve the desired
1879         behavior of reducing the clipping region to nothing.
1880
1881 2010-08-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1882
1883         Reviewed by Antonio Gomes.
1884
1885         [EFL] Add video files to enable video in WebKit EFL
1886         https://bugs.webkit.org/show_bug.cgi?id=43790
1887
1888         Add files regarding html5 video to CMakeList.txt for WebKit Efl.
1889         But, this patch is not run html5 video on WebKit EFL yet.
1890
1891         * CMakeLists.txt: Add files related to html5video.
1892         * platform/efl/LocalizedStringsEfl.cpp: Add functions for html5 video.
1893         (WebCore::localizedMediaControlElementString):
1894         (WebCore::localizedMediaControlElementHelpText):
1895         (WebCore::localizedMediaTimeDescription):
1896         * platform/graphics/MediaPlayer.cpp:
1897         (WebCore::installedMediaEngines): Disable MediaPlayerPrivate::r
1898       egisterMediaEngine for WebKit EFL.
1899
1900 2010-08-10  Patrick Gansterer  <paroga@paroga.com>
1901
1902         Reviewed by Nikolas Zimmermann.
1903
1904         Add a toRenderSVGImage function
1905         https://bugs.webkit.org/show_bug.cgi?id=43789
1906
1907         Add a function for casting to RenderSVGImage and use it.
1908
1909         * rendering/RenderSVGImage.h:
1910         (WebCore::toRenderSVGImage):
1911         * rendering/RenderTreeAsText.cpp:
1912         (WebCore::write):
1913         * rendering/SVGRenderTreeAsText.cpp:
1914         (WebCore::writeSVGImage):
1915         * rendering/SVGRenderTreeAsText.h:
1916         * svg/SVGImageElement.cpp:
1917         (WebCore::SVGImageElement::attach):
1918
1919 2010-08-10  Adam Barth  <abarth@webkit.org>
1920
1921         Reviewed by Eric Seidel.
1922
1923         Clients of HTMLTokenizer should be able to see where characters went in the token
1924         https://bugs.webkit.org/show_bug.cgi?id=43766
1925
1926         When viewing the source of a document, we want to colorize different
1927         parts of the input depending on how they were tokenized.  In this
1928         patch, we expose the internal segmentation of a token by recording the
1929         start and end offsets for each attribute name and each attribute value.
1930
1931         * html/HTMLToken.h:
1932         (WebCore::HTMLToken::addNewAttribute):
1933         (WebCore::HTMLToken::beginAttributeName):
1934         (WebCore::HTMLToken::endAttributeName):
1935         (WebCore::HTMLToken::beginAttributeValue):
1936         (WebCore::HTMLToken::endAttributeValue):
1937         (WebCore::HTMLToken::appendToAttributeName):
1938         (WebCore::HTMLToken::appendToAttributeValue):
1939         (WebCore::AtomicHTMLToken::AtomicHTMLToken):
1940         * html/HTMLTokenizer.cpp:
1941         (WebCore::HTMLTokenizer::nextToken):
1942
1943 2010-08-10  Dumitru Daniliuc  <dumi@chromium.org>
1944
1945         Reviewed by David Levin.
1946
1947         Do not post a sync task to the DB thread if it's terminating.
1948         https://bugs.webkit.org/show_bug.cgi?id=43676
1949
1950         * bindings/generic/ActiveDOMCallback.cpp: The context can
1951         sometimes be NULL. Check if it's NULL instead of asserting that
1952         it's not.
1953         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
1954         * dom/ActiveDOMObject.cpp:
1955         (WebCore::ActiveDOMObject::ActiveDOMObject):
1956
1957         * storage/Database.cpp: Do not post a sync task to the DB thread
1958         if the DB thread is terminating. Also, when a task is destroyed,
1959         ASSERT that it was completed, or that it had no synchronizer.
1960         (WebCore::Database::openAndVerifyVersion):
1961         (WebCore::Database::markAsDeletedAndClose):
1962         (WebCore::Database::tableNames):
1963         * storage/DatabaseTask.cpp:
1964         (WebCore::DatabaseTaskSynchronizer::DatabaseTaskSynchronizer):
1965         (WebCore::DatabaseTask::~DatabaseTask):
1966         (WebCore::DatabaseTask::performTask):
1967         * storage/DatabaseTask.h:
1968         (WebCore::DatabaseTaskSynchronizer::hasCheckedForTermination):
1969         (WebCore::DatabaseTaskSynchronizer::setHasCheckedForTermination):
1970         (WebCore::DatabaseTask::hasSynchronizer):
1971         (WebCore::DatabaseTask::hasCheckedForTermination):
1972         * storage/DatabaseThread.cpp:
1973         (WebCore::DatabaseThread::terminationRequested):
1974         (WebCore::DatabaseThread::scheduleTask):
1975         (WebCore::DatabaseThread::scheduleImmediateTask):
1976         * storage/DatabaseThread.h:
1977
1978 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
1979
1980         Qt build fix.
1981
1982         * bridge/qt/qt_runtime.cpp:
1983         (JSC::Bindings::convertValueToQVariant):
1984
1985 2010-08-10  Jian Li  <jianli@chromium.org>
1986
1987         Fix more build break.
1988
1989         * bindings/v8/SerializedScriptValue.cpp:
1990         (WebCore::ZigZag::Reader::readBlob):
1991         (WebCore::ZigZag::Reader::readFile):
1992         * dom/ScriptExecutionContext.cpp:
1993         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
1994         (WebCore::ScriptExecutionContext::revokeBlobURL):
1995         * dom/ScriptExecutionContext.h:
1996         * html/Blob.cpp:
1997         (WebCore::Blob::slice):
1998
1999 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2000
2001         Rubber stamped by Sam Weinig
2002
2003         Bug 43817 - Remove UString::Rep
2004         UString::Rep has for a long time been replaced by UStringImpl (Rep
2005         remaining as a typedef).  UStringImpl has since been removed too
2006         (unified with StringImpl). Remove Rep, rename rep() to impl() and
2007         m_rep to m_impl.  Also add impl() method to Identifier, and rename
2008         its UString member from _ustring to m_string.
2009
2010         * bindings/js/JSDOMBinding.cpp:
2011         (WebCore::findAtomicString):
2012         * bindings/js/JSDOMBinding.h:
2013         (WebCore::ustringToString):
2014         (WebCore::identifierToString):
2015         (WebCore::ustringToAtomicString):
2016         (WebCore::identifierToAtomicString):
2017         * bindings/js/SerializedScriptValue.h:
2018         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
2019         * bridge/IdentifierRep.cpp:
2020         (WebCore::IdentifierRep::get):
2021         * bridge/c/c_class.cpp:
2022         (JSC::Bindings::CClass::methodsNamed):
2023         (JSC::Bindings::CClass::fieldNamed):
2024         * bridge/jni/jsc/JavaClassJSC.cpp:
2025         (JavaClass::JavaClass):
2026         (JavaClass::methodsNamed):
2027         (JavaClass::fieldNamed):
2028         * bridge/jni/jsc/JavaStringJSC.h:
2029         (JSC::Bindings::JavaStringImpl::~JavaStringImpl):
2030         (JSC::Bindings::JavaStringImpl::init):
2031         (JSC::Bindings::JavaStringImpl::UTF8String):
2032         (JSC::Bindings::JavaStringImpl::uchars):
2033         (JSC::Bindings::JavaStringImpl::length):
2034         (JSC::Bindings::JavaStringImpl::uString):
2035         * bridge/jsc/BridgeJSC.h:
2036
2037 2010-08-10  Jian Li  <jianli@chromium.org>
2038
2039         Fix qt build break.
2040
2041         * html/BlobRegistryImpl.cpp:
2042         * html/BlobRegistryImpl.h:
2043         * html/BlobURL.cpp:
2044         * html/BlobURL.h:
2045         * platform/BlobRegistry.h:
2046
2047 2010-08-10  Jian Li  <jianli@chromium.org>
2048
2049         Reviewed by David Levin.
2050
2051         Add the support to register the blob data.
2052         https://bugs.webkit.org/show_bug.cgi?id=43600
2053
2054         This is the first step towards adding Blob URL support. The blob has
2055         an internal URL (used by FileReader) and public URLs (used by Blob.url).
2056         The URL and its associated data are managed by BlobRegistry interface.
2057
2058         This patch does not remove the usage of BlobItem. It will be removed
2059         when all the blob data support is hooked up and the new tests will be
2060         added then.
2061
2062         * CMakeLists.txt:
2063         * GNUmakefile.am:
2064         * WebCore.gypi:
2065         * WebCore.pro:
2066         * WebCore.vcproj/WebCore.vcproj:
2067         * WebCore.xcodeproj/project.pbxproj:
2068         * bindings/js/SerializedScriptValue.cpp:
2069         (WebCore::SerializedBlob::create):
2070         (WebCore::SerializedBlob::url):
2071         (WebCore::SerializedBlob::type):
2072         (WebCore::SerializedBlob::size):
2073         (WebCore::SerializedBlob::SerializedBlob):
2074         (WebCore::SerializedFile::create):
2075         (WebCore::SerializedFile::path):
2076         (WebCore::SerializedFile::url):
2077         (WebCore::SerializedFile::type):
2078         (WebCore::SerializedFile::SerializedFile):
2079         (WebCore::SerializedFileList::item):
2080         (WebCore::SerializedFileList::SerializedFileList):
2081         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
2082         (WebCore::SharedSerializedData::asBlob):
2083         (WebCore::SharedSerializedData::asFile):
2084         (WebCore::SerializingTreeWalker::convertIfTerminal):
2085         (WebCore::DeserializingTreeWalker::convertIfTerminal):
2086         (WebCore::TeardownTreeWalker::convertIfTerminal):
2087         * bindings/js/SerializedScriptValue.h:
2088         (WebCore::SerializedScriptValueData::):
2089         (WebCore::SerializedScriptValueData::asString):
2090         (WebCore::SerializedScriptValueData::asBlob):
2091         (WebCore::SerializedScriptValueData::asFile):
2092         * bindings/v8/SerializedScriptValue.cpp:
2093         (WebCore::ZigZag::Writer::writeBlob):
2094         (WebCore::ZigZag::Writer::writeFile):
2095         (WebCore::ZigZag::Writer::writeFileList):
2096         (WebCore::ZigZag::Writer::doWriteUintHelper):
2097         (WebCore::ZigZag::Writer::doWriteUint32):
2098         (WebCore::ZigZag::Writer::doWriteUint64):
2099         (WebCore::ZigZag::Serializer::writeBlob):
2100         (WebCore::ZigZag::Serializer::writeFile):
2101         (WebCore::ZigZag::Reader::readBlob):
2102         (WebCore::ZigZag::Reader::readFile):
2103         (WebCore::ZigZag::Reader::readFileList):
2104         (WebCore::ZigZag::Reader::doReadUintHelper):
2105         (WebCore::ZigZag::Reader::doReadUint32):
2106         (WebCore::ZigZag::Reader::doReadUint64):
2107         * dom/ScriptExecutionContext.cpp:
2108         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
2109         (WebCore::ScriptExecutionContext::trackBlobURL):
2110         (WebCore::ScriptExecutionContext::revokeBlobURL):
2111         * dom/ScriptExecutionContext.h:
2112         * html/Blob.cpp:
2113         (WebCore::Blob::Blob):
2114         (WebCore::Blob::~Blob):
2115         (WebCore::Blob::createPublicURL):
2116         * html/Blob.h:
2117         (WebCore::Blob::create):
2118         (WebCore::Blob::url):
2119         * html/BlobRegistryImpl.cpp: Added.
2120         * html/BlobRegistryImpl.h: Added.
2121         * html/BlobStorageData.h: Added.
2122         * html/BlobURL.cpp: Added.
2123         * html/BlobURL.h: Added.
2124         * html/File.cpp:
2125         (WebCore::File::File):
2126         * html/File.h:
2127         (WebCore::File::create):
2128         * platform/BlobData.cpp: Added.
2129         * platform/BlobData.h: Added.
2130         * platform/BlobRegistry.h: Added.
2131
2132 2010-08-10  Adam Barth  <abarth@webkit.org>
2133
2134         Reviewed by Eric Seidel.
2135
2136         SegmentedString should keep track of how many characters it consumes
2137         https://bugs.webkit.org/show_bug.cgi?id=43765
2138
2139         The easiest way to keep track of how many characters we've consumed
2140         would be to increment a counter every time we advance, but that's too
2141         slow.  Instead, we keep track lazily and update our summary durning the
2142         slow case of advance (which is sufficiently rare).
2143
2144         There's some subtly to how this works w.r.t. "unconsuming" characters
2145         by pushing them back on the front of the segmented string.  This isn't
2146         really a "right answer" here because the notion of unconsuming input
2147         isn't present in the API.  This patch makes some assumptions about how
2148         clients of this class use its API.  In a future patch, we might want to
2149         rename some of the method names to make this more explicit.
2150
2151         * platform/text/SegmentedString.cpp:
2152         (WebCore::SegmentedString::operator=):
2153         (WebCore::SegmentedString::append):
2154         (WebCore::SegmentedString::prepend):
2155         (WebCore::SegmentedString::advanceSubstring):
2156         * platform/text/SegmentedString.h:
2157         (WebCore::SegmentedSubstring::numberOfCharactersConsumed):
2158         (WebCore::SegmentedString::SegmentedString):
2159         (WebCore::SegmentedString::numberOfCharactersConsumed):
2160
2161 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2162
2163         Rubber stamped by Sam Weinig.
2164         
2165         Bug 43816 - Remove UStringImpl
2166         The class was actually removed a long time ago, replaced by StringImpl.
2167         UStringImpl is just a typedef onto StringImpl.  Remove this.
2168
2169         * WebCore.xcodeproj/project.pbxproj:
2170         * bindings/js/JSDOMBinding.cpp:
2171         (WebCore::findAtomicString):
2172
2173 2010-08-09  Stephen White  <senorblanco@chromium.org>
2174
2175         Reviewed by David Levin.
2176
2177         Prefer the medium-quality (bilinear) image resampling for 2D canvas on
2178         Chromium.
2179         https://bugs.webkit.org/show_bug.cgi?id=43646
2180         
2181         This is what the accelerated path is going to do,
2182         so do it in the software path as well.
2183
2184         * html/HTMLCanvasElement.cpp:
2185         (WebCore::HTMLCanvasElement::createImageBuffer):
2186         * platform/graphics/GraphicsContext.h:
2187
2188 2010-08-10  Chris Fleizach  <cfleizach@apple.com>
2189
2190         Reviewed by Dave Hyatt.
2191
2192         Removing an element from an anonymous block causes crash
2193         https://bugs.webkit.org/show_bug.cgi?id=42309
2194
2195         There was a case where a continuation was added as a child, but if you asked
2196         that child who is your parent, it would return the wrong answer.
2197    
2198         The specific scenario was when a sibling of an element who was the start of a 
2199         continuation was present. Retrieving the parent object had then follow the sibling
2200         chain and then follow the originating continuation chain.
2201
2202         Test: accessibility/removed-anonymous-block-child-causes-crash.html
2203
2204         * accessibility/AccessibilityRenderObject.cpp:
2205         (WebCore::AccessibilityRenderObject::nextSibling):
2206             Fix erroneous comment
2207         (WebCore::nextContinuation):
2208         (WebCore::AccessibilityRenderObject::renderParentObject):
2209             Handle unhandled continuation case.
2210         (WebCore::AccessibilityRenderObject::addChildren):
2211             ASSERT that the parentObject() is the same when adding a new child.
2212
2213 2010-08-10  Abhishek Arya  <inferno@chromium.org>
2214
2215         Reviewed by David Hyatt.
2216
2217         Take checks for ruby base existence out of the ASSERTs.
2218         https://bugs.webkit.org/show_bug.cgi?id=43795
2219
2220         Test: fast/ruby/ruby-remove-no-base.html
2221
2222         * rendering/RenderRubyRun.cpp:
2223         (WebCore::RenderRubyRun::addChild):
2224         (WebCore::RenderRubyRun::removeChild):
2225
2226 2010-08-06  Zhenyao Mo  <zmo@google.com>
2227
2228         Reviewed by Dimitri Glazkov.
2229
2230         texture functions should gen INVALID_OPERATION if no texture is bound
2231         https://bugs.webkit.org/show_bug.cgi?id=42907
2232
2233         * html/canvas/WebGLRenderingContext.cpp:
2234         (WebCore::WebGLRenderingContext::copyTexImage2D): Check if a texture is bound to target.
2235         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
2236         (WebCore::WebGLRenderingContext::generateMipmap): Ditto.
2237         (WebCore::WebGLRenderingContext::getTexParameter): Ditto.
2238         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
2239         (WebCore::WebGLRenderingContext::texParameter): Ditto.
2240         (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto.
2241         (WebCore::WebGLRenderingContext::validateTextureBinding): Check if target is valid and if a texture is bound to it.
2242         * html/canvas/WebGLRenderingContext.h: Declare validateTextureBinding().
2243
2244 2010-08-10  Patrick Gansterer  <paroga@paroga.com>
2245
2246         Reviewed by Sam Weinig.
2247
2248         [WINCE] Implement Path::currentPoint()
2249         https://bugs.webkit.org/show_bug.cgi?id=42927
2250
2251         * platform/graphics/wince/PathWince.cpp:
2252         (WebCore::Path::currentPoint):
2253
2254 2010-08-10  Ariya Hidayat  <ariya@sencha.com>
2255
2256         [Qt] Warning fix, remove reference to platform/text/StringImpl.h
2257
2258         * WebCore.pro:
2259
2260 2010-08-10  Alice Liu  <alice.liu@apple.com>
2261
2262         Chromium build fix attempt.  not reviewed
2263         
2264         * platform/text/TextBoundaries.cpp: use correct stringimplh include
2265
2266 2010-08-10  Jian Li  <jianli@chromium.org>
2267
2268         Chromium build fix.
2269
2270         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
2271         * platform/graphics/chromium/FontPlatformDataLinux.cpp:
2272
2273 2010-08-10  Johnny Ding  <jnd@chromium.org>
2274
2275         Reviewed by Adam Barth.
2276
2277         Change the ScriptController::processingUserGesture to static method
2278         and use dynamic(JSC binding)/entered(V8 binding) frame to check the user gesture.
2279         https://bugs.webkit.org/show_bug.cgi?id=42827.
2280
2281         Test: fast/events/popup-blocked-from-iframe-script.html
2282
2283         * WebCore.order:
2284         * bindings/js/JSDOMBinding.cpp:
2285         (WebCore::processingUserGesture):
2286         * bindings/js/JSDOMBinding.h:
2287         * bindings/js/JSDOMWindowCustom.cpp:
2288         (WebCore::JSDOMWindow::setLocation):
2289         (WebCore::createWindow):
2290         (WebCore::domWindowAllowPopUp):
2291         (WebCore::JSDOMWindow::open):
2292         (WebCore::JSDOMWindow::showModalDialog):
2293         * bindings/js/JSDocumentCustom.cpp:
2294         (WebCore::JSDocument::setLocation):
2295         * bindings/js/JSLocationCustom.cpp:
2296         (WebCore::navigateIfAllowed):
2297         (WebCore::JSLocation::reload):
2298         * bindings/js/ScriptController.cpp:
2299         (WebCore::ScriptController::processingUserGesture):
2300         * bindings/js/ScriptController.h:
2301         * bindings/scripts/CodeGeneratorJS.pm:
2302         * bindings/scripts/test/JS/JSTestObj.cpp:
2303         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
2304         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
2305         * bindings/v8/ScriptController.cpp:
2306         (WebCore::ScriptController::processingUserGesture):
2307         (WebCore::ScriptController::anyPageIsProcessingUserGesture):
2308         * bindings/v8/ScriptController.h:
2309         * bindings/v8/specialization/V8BindingState.cpp:
2310         (WebCore::::processingUserGesture):
2311         * loader/FrameLoader.cpp:
2312         (WebCore::FrameLoader::isProcessingUserGesture):
2313
2314 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2315
2316         Chromium build fix
2317
2318         * platform/graphics/chromium/FontPlatformDataLinux.h:
2319
2320 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2321
2322         Rubber stamped by Sam Weinig.
2323
2324         Bug 43786 - Move AtomicStringHash from WebCore to WTF
2325         Also remove deprecated string headers from WebCore/platform/text.
2326
2327         * ForwardingHeaders/wtf/text/AtomicStringHash.h: Added.
2328         * GNUmakefile.am:
2329         * WebCore.gypi:
2330         * WebCore.pro:
2331         * WebCore.vcproj/WebCore.vcproj:
2332         * WebCore.xcodeproj/project.pbxproj:
2333         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2334         * bindings/cpp/WebDOMHTMLCollectionCustom.cpp:
2335         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2336         * bindings/js/JSClipboardCustom.cpp:
2337         * bindings/js/JSDOMApplicationCacheCustom.cpp:
2338         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
2339         * bindings/js/JSDOMPluginArrayCustom.cpp:
2340         * bindings/js/JSDOMPluginCustom.cpp:
2341         * bindings/js/JSDOMStringMapCustom.cpp:
2342         * bindings/js/JSDOMWindowCustom.cpp:
2343         * bindings/js/JSDataGridColumnListCustom.cpp:
2344         * bindings/js/JSHTMLAllCollectionCustom.cpp:
2345         * bindings/js/JSHTMLCollectionCustom.cpp:
2346         * bindings/js/JSMessagePortCustom.cpp:
2347         * bindings/js/JSNodeListCustom.cpp:
2348         * bindings/scripts/CodeGeneratorCPP.pm:
2349         * bindings/scripts/CodeGeneratorJS.pm:
2350         * bindings/scripts/CodeGeneratorV8.pm:
2351         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
2352         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
2353         * bindings/scripts/test/V8/V8TestInterface.h:
2354         * bindings/scripts/test/V8/V8TestObj.h:
2355         * bindings/v8/ScriptDebugServer.h:
2356         * bindings/v8/V8Binding.cpp:
2357         * bindings/v8/V8Binding.h:
2358         * bridge/jni/v8/JavaClassV8.h:
2359         * css/CSSFontFaceSource.h:
2360         * css/CSSFontSelector.cpp:
2361         * css/CSSFontSelector.h:
2362         * css/CSSNamespace.h:
2363         * css/CSSParser.cpp:
2364         * css/CSSParser.h:
2365         * css/CSSParserValues.h:
2366         * css/CSSStyleSelector.h:
2367         * css/CSSVariablesDeclaration.h:
2368         * css/MediaFeatureNames.h:
2369         * css/MediaQueryExp.h:
2370         * css/WebKitCSSKeyframesRule.h:
2371         * dom/CustomEvent.h:
2372         * dom/Document.cpp:
2373         * dom/Event.cpp:
2374         * dom/Event.h:
2375         * dom/EventNames.h:
2376         * dom/EventTarget.h:
2377         * dom/InputElement.h:
2378         * dom/MessagePort.cpp:
2379         * dom/MessagePort.h:
2380         * dom/NameNodeList.h:
2381         * dom/NodeRareData.h:
2382         * dom/QualifiedName.h:
2383         * dom/ScriptElement.cpp:
2384         * dom/SpaceSplitString.h:
2385         * dom/TagNodeList.h:
2386         * dom/XMLDocumentParser.h:
2387         * editing/EditorCommand.cpp:
2388         * history/mac/HistoryItemMac.mm:
2389         * html/BlobBuilder.cpp:
2390         * html/DataGridColumn.h:
2391         * html/DataGridColumnList.cpp:
2392         * html/HTMLDocument.h:
2393         * html/HTMLInputElement.cpp:
2394         * html/HTMLTokenizer.cpp:
2395         * html/HTMLTokenizer.h:
2396         * html/LegacyPreloadScanner.cpp:
2397         * html/LegacyPreloadScanner.h:
2398         * inspector/InspectorCSSStore.h:
2399         * inspector/InspectorController.h:
2400         * inspector/InspectorDOMAgent.cpp:
2401         * inspector/InspectorDOMAgent.h:
2402         * inspector/InspectorDebuggerAgent.h:
2403         * inspector/InspectorValues.h:
2404         * loader/Cache.h:
2405         * loader/CrossOriginAccessControl.cpp:
2406         * loader/CrossOriginPreflightResultCache.h:
2407         * loader/DocLoader.h:
2408         * loader/ImageLoader.h:
2409         * loader/appcache/ApplicationCache.h:
2410         * loader/appcache/ApplicationCacheStorage.h:
2411         * loader/appcache/DOMApplicationCache.h:
2412         * loader/icon/IconDatabase.h:
2413         * loader/icon/IconRecord.h:
2414         * loader/loader.h:
2415         * notifications/Notification.h:
2416         * page/FrameTree.h:
2417         * page/Page.cpp:
2418         * page/PageGroup.h:
2419         * page/SecurityOrigin.h:
2420         * page/Settings.h:
2421         * page/WindowFeatures.cpp:
2422         * page/animation/AnimationBase.h:
2423         * page/animation/AnimationControllerPrivate.h:
2424         * page/animation/CompositeAnimation.h:
2425         * platform/Cookie.h:
2426         * platform/KURL.cpp:
2427         * platform/KURLGoogle.cpp:
2428         * platform/KURLHash.h:
2429         * platform/Length.cpp:
2430         * platform/LinkHash.cpp:
2431         * platform/LinkHash.h:
2432         * platform/MIMETypeRegistry.cpp:
2433         * platform/MIMETypeRegistry.h:
2434         * platform/SchemeRegistry.h:
2435         * platform/ThreadGlobalData.cpp:
2436         * platform/ThreadGlobalData.h:
2437         * platform/cf/BinaryPropertyList.cpp:
2438         * platform/chromium/SearchPopupMenuChromium.cpp:
2439         * platform/efl/ClipboardEfl.cpp:
2440         * platform/efl/CookieJarEfl.cpp:
2441         * platform/efl/PlatformKeyboardEventEfl.cpp:
2442         * platform/graphics/FontCache.cpp:
2443         * platform/graphics/FontFamily.h:
2444         * platform/graphics/MediaPlayer.h:
2445         * platform/graphics/cg/ImageSourceCGWin.cpp:
2446         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
2447         * platform/graphics/chromium/FontCacheLinux.cpp:
2448         * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
2449         * platform/graphics/chromium/LayerChromium.h:
2450         * platform/graphics/filters/Filter.h:
2451         * platform/graphics/mac/FontPlatformData.h:
2452         * platform/graphics/mac/GraphicsLayerCA.h:
2453         * platform/graphics/qt/FontCacheQt.cpp:
2454         * platform/graphics/win/FontCacheWin.cpp:
2455         * platform/graphics/win/FontPlatformDataCGWin.cpp:
2456         * platform/graphics/win/FontPlatformDataCairoWin.cpp:
2457         * platform/graphics/win/FontPlatformDataWin.cpp:
2458         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
2459         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
2460         * platform/graphics/win/WKCACFLayer.h:
2461         * platform/graphics/wince/FontPlatformData.cpp:
2462         * platform/graphics/wx/FontPlatformData.h:
2463         * platform/gtk/ClipboardGtk.cpp:
2464         * platform/gtk/DataObjectGtk.h:
2465         * platform/haiku/ClipboardHaiku.cpp:
2466         * platform/haiku/CookieJarHaiku.cpp:
2467         * platform/haiku/SearchPopupMenuHaiku.cpp:
2468         * platform/mac/SearchPopupMenuMac.mm:
2469         * platform/mac/ThreadCheck.mm:
2470         * platform/network/CredentialStorage.cpp:
2471         * platform/network/HTTPHeaderMap.h:
2472         * platform/network/cf/DNSCFNet.cpp:
2473         * platform/network/curl/CookieJarCurl.cpp:
2474         * platform/qt/ClipboardQt.cpp:
2475         * platform/text/AtomicString.h: Removed.
2476         * platform/text/AtomicStringHash.h: Removed.
2477         * platform/text/AtomicStringImpl.h: Removed.
2478         * platform/text/AtomicStringKeyedMRUCache.h:
2479         * platform/text/StringBuilder.cpp:
2480         * platform/text/StringHash.h: Removed.
2481         * platform/text/StringImpl.h: Removed.
2482         * platform/text/TextCodecLatin1.cpp:
2483         * platform/text/TextCodecUTF16.cpp:
2484         * platform/text/TextCodecUserDefined.cpp:
2485         * platform/text/cf/HyphenationCF.cpp:
2486         * platform/text/cf/StringImplCF.cpp:
2487         * platform/text/mac/HyphenationMac.mm:
2488         * platform/text/mac/StringImplMac.mm:
2489         * platform/text/transcoder/FontTranscoder.h:
2490         * platform/text/wince/TextCodecWinCE.cpp:
2491         * platform/win/BString.cpp:
2492         * platform/win/ClipboardWin.cpp:
2493         * platform/win/SearchPopupMenuWin.cpp:
2494         * platform/wince/SearchPopupMenuWince.cpp:
2495         * platform/wx/ClipboardWx.cpp:
2496         * plugins/DOMMimeTypeArray.cpp:
2497         * plugins/DOMPlugin.cpp:
2498         * plugins/DOMPluginArray.cpp:
2499         * plugins/PluginDatabase.h:
2500         * plugins/PluginPackage.h:
2501         * plugins/PluginStream.h:
2502         * rendering/RenderApplet.h:
2503         * rendering/RenderText.cpp:
2504         * rendering/style/BindingURI.h:
2505         * rendering/style/ContentData.cpp:
2506         * rendering/style/CounterContent.h:
2507         * rendering/style/CounterDirectives.h:
2508         * rendering/style/KeyframeList.h:
2509         * rendering/style/StyleRareInheritedData.h:
2510         * storage/AbstractDatabase.cpp:
2511         * storage/DatabaseAuthorizer.h:
2512         * storage/DatabaseTracker.h:
2513         * storage/IDBDatabaseBackendImpl.h:
2514         * storage/IDBFactoryBackendImpl.h:
2515         * storage/IDBObjectStoreBackendImpl.h:
2516         * storage/OriginQuotaManager.h:
2517         * storage/OriginUsageRecord.h:
2518         * storage/SQLTransactionCoordinator.h:
2519         * storage/StorageAreaSync.h:
2520         * storage/StorageMap.h:
2521         * storage/StorageNamespaceImpl.cpp:
2522         * storage/chromium/QuotaTracker.h:
2523         * svg/SVGAltGlyphElement.h:
2524         * svg/SVGDocumentExtensions.cpp:
2525         * svg/SVGDocumentExtensions.h:
2526         * svg/SVGFitToViewBox.cpp:
2527         * svg/SVGLangSpace.h:
2528         * svg/animation/SMILTimeContainer.h:
2529         * svg/graphics/filters/SVGFilterBuilder.h:
2530         * websockets/WebSocket.h:
2531         * websockets/WebSocketChannel.cpp:
2532         * websockets/WebSocketHandshake.cpp:
2533         * websockets/WebSocketHandshakeResponse.cpp:
2534         * wml/WMLPageState.h:
2535         * workers/AbstractWorker.h:
2536         * workers/DefaultSharedWorkerRepository.h:
2537         * workers/Worker.h:
2538         * workers/WorkerContext.h:
2539         * xml/XMLHttpRequest.h:
2540         * xml/XMLHttpRequestUpload.cpp:
2541         * xml/XMLHttpRequestUpload.h:
2542         * xml/XPathExpressionNode.h:
2543         * xml/XPathNamespace.h:
2544         * xml/XPathParser.cpp:
2545         * xml/XSLTProcessor.h:
2546
2547 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
2548
2549         Not reviewed. Adding changes that escaped from r65072.
2550
2551         Web Inspector: move database processing to native layer.
2552         https://bugs.webkit.org/show_bug.cgi?id=43788
2553
2554         * inspector/front-end/InspectorBackendStub.js:
2555         (WebInspector.InspectorBackendStub):
2556         * inspector/front-end/StoragePanel.js:
2557         (WebInspector.StoragePanel.prototype._genericViewSetup):
2558
2559 2010-08-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
2560
2561         Reviewed by Xan Lopez.
2562
2563         [GTK] Inputs of type 'search' have weird looking checkboxes instead of search/clear icons
2564         https://bugs.webkit.org/show_bug.cgi?id=43760
2565
2566         Draw appropriate GTK+ stock images for search/clear icons in search entries.
2567
2568         * platform/gtk/RenderThemeGtk.cpp:
2569         (WebCore::RenderThemeGtk::paintSearchFieldResultsButton):
2570         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
2571         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
2572
2573 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
2574
2575         Not reviewed. Qt build fix, follow up for r65072.
2576
2577         * inspector/InspectorController.cpp:
2578         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
2579
2580 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
2581
2582         Reviewed by Yury Semikhatsky.
2583
2584         Web Inspector: move database processing to native layer.
2585
2586         https://bugs.webkit.org/show_bug.cgi?id=43788
2587
2588         * English.lproj/localizedStrings.js:
2589         * WebCore.gypi:
2590         * bindings/js/JSInjectedScriptHostCustom.cpp:
2591         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
2592         * inspector/CodeGeneratorInspector.pm:
2593         * inspector/InjectedScript.cpp:
2594         (WebCore::InjectedScript::dispatch):
2595         * inspector/InjectedScript.h:
2596         * inspector/InjectedScriptHost.cpp:
2597         * inspector/InjectedScriptHost.h:
2598         * inspector/InjectedScriptHost.idl:
2599         * inspector/Inspector.idl:
2600         * inspector/InspectorBackend.cpp:
2601         (WebCore::InspectorBackend::dispatchOnInjectedScript):
2602         (WebCore::InspectorBackend::executeSQL):
2603         * inspector/InspectorBackend.h:
2604         * inspector/InspectorController.cpp:
2605         (WebCore::InspectorController::connectFrontend):
2606         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
2607         * inspector/InspectorController.h:
2608         * inspector/InspectorDebuggerAgent.h:
2609         * inspector/InspectorStorageAgent.cpp: Added.
2610         (WebCore::):
2611         (WebCore::InspectorStorageAgent::InspectorStorageAgent):
2612         (WebCore::InspectorStorageAgent::~InspectorStorageAgent):
2613         (WebCore::InspectorStorageAgent::executeSQL):
2614         (WebCore::InspectorStorageAgent::clearFrontend):
2615         * inspector/InspectorStorageAgent.h: Added.
2616         (WebCore::InspectorStorageAgent::create):
2617         (WebCore::InspectorStorageAgent::frontend):
2618         * inspector/front-end/Database.js:
2619         (WebInspector.Database.prototype.executeSql):
2620         (WebInspector.sqlTransactionSucceeded):
2621         (WebInspector.sqlTransactionFailed):
2622         * inspector/front-end/DatabaseQueryView.js:
2623         (WebInspector.DatabaseQueryView.prototype._queryFinished):
2624         (WebInspector.DatabaseQueryView.prototype._queryError):
2625         * inspector/front-end/DatabaseTableView.js:
2626         (WebInspector.DatabaseTableView.prototype._queryFinished):
2627         * inspector/front-end/InjectedScript.js:
2628         * inspector/front-end/InjectedScriptAccess.js:
2629         (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName):
2630         (InjectedScriptAccess._installHandler):
2631         * inspector/front-end/StoragePanel.js:
2632         (WebInspector.StoragePanel.prototype.dataGridForResult):
2633
2634 2010-08-10  Steve Block  <steveblock@google.com>
2635
2636         Reviewed by Jeremy Orlow.
2637
2638         [V8] DeviceMotionEvent can not be used from JavaScript
2639         https://bugs.webkit.org/show_bug.cgi?id=43785
2640
2641         This is tested by the existing tests fast/dom/DeviceMotion/create-event.html
2642         and fast/dom/DeviceMotion/optional-event-properties.html.
2643
2644         * bindings/v8/custom/V8EventCustom.cpp:
2645         (WebCore::toV8):
2646
2647 2010-08-10  Balazs Kelemen  <kb@inf.u-szeged.hu>
2648
2649         Reviewed by Antonio Gomes.
2650
2651         [Qt] Build WebKit2 into a static lib
2652
2653         https://bugs.webkit.org/show_bug.cgi?id=43621
2654
2655         Just build changes so no new tests.
2656
2657         * WebCore.pri: Moved feature detection logic into features.pri since we need this in WebKit2.pro as well.
2658         * WebCore.pro: Moved the specification of the WebKit2 build to WebKit2.pro. Link against the static lib.
2659         * features.pri: Added.
2660
2661 2010-08-10  Yury Semikhatsky  <yurys@chromium.org>
2662
2663         Reviewed by Pavel Feldman.
2664
2665         Web Inspector, Chromium: reloading of inspected page hits assert in InspectorController::enableDebuggerFromFrontend()
2666         https://bugs.webkit.org/show_bug.cgi?id=43780
2667
2668         * inspector/CodeGeneratorInspector.pm:
2669         * inspector/InspectorController.cpp:
2670         (WebCore::InspectorController::enableDebuggerFromFrontend):
2671         * inspector/InspectorController.h:
2672         (WebCore::InspectorController::hasFrontend):
2673         * inspector/InspectorDebuggerAgent.cpp:
2674         (WebCore::InspectorDebuggerAgent::create):
2675         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
2676         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
2677         (WebCore::InspectorDebuggerAgent::didParseSource):
2678         (WebCore::InspectorDebuggerAgent::failedToParseSource):
2679         (WebCore::InspectorDebuggerAgent::didPause):
2680         (WebCore::InspectorDebuggerAgent::didContinue):
2681         * inspector/InspectorDebuggerAgent.h:
2682
2683 2010-08-10  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2684
2685         Reviewed by Simon Hausmann.
2686
2687         Make sure NPAPI plugins get an initial setNPWindow on Mac
2688
2689         https://bugs.webkit.org/show_bug.cgi?id=43782
2690
2691         * plugins/mac/PluginViewMac.mm:
2692
2693 2010-08-10  Dirk Schulze  <krit@webkit.org>
2694
2695         Reviewed by Nikolas Zimmermann.
2696
2697         Use SVGPathParser to create SVG paths and to perform path animations
2698         https://bugs.webkit.org/show_bug.cgi?id=43696
2699
2700         Removed toString() functions in all SVGPathSeg* objects as well as toPath() in SVGPathSegList.
2701         These hacks were used to create a SVG path data string or a platform path from a SVGPathSegList.
2702         Use the new SVGPathParser instead.
2703
2704         Doesn't affect any tests.
2705
2706         * svg/SVGAnimateElement.cpp:
2707         (WebCore::SVGAnimateElement::applyResultsToTarget):
2708         * svg/SVGPathElement.cpp:
2709         (WebCore::SVGPathElement::toPathData):
2710         * svg/SVGPathParserFactory.cpp:
2711         (WebCore::SVGPathParserFactory::buildPathFromSVGPathSegList):
2712         (WebCore::SVGPathParserFactory::buildStringFromByteStream):
2713         (WebCore::SVGPathParserFactory::buildStringFromSVGPathSegList):
2714         * svg/SVGPathParserFactory.h:
2715         * svg/SVGPathSeg.cpp:
2716         * svg/SVGPathSeg.h:
2717         * svg/SVGPathSegArc.cpp:
2718         * svg/SVGPathSegArc.h:
2719         * svg/SVGPathSegClosePath.h:
2720         (WebCore::SVGPathSegClosePath::pathSegTypeAsLetter):
2721         * svg/SVGPathSegCurvetoCubic.h:
2722         * svg/SVGPathSegCurvetoCubicSmooth.h:
2723         * svg/SVGPathSegCurvetoQuadratic.h:
2724         * svg/SVGPathSegLinetoHorizontal.h:
2725         * svg/SVGPathSegLinetoVertical.h:
2726         * svg/SVGPathSegList.cpp:
2727         (WebCore::SVGPathSegList::getPathSegAtLength):
2728         * svg/SVGPathSegList.h:
2729
2730 2010-08-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2731
2732         Unreviewed, rolling out r65056.
2733         http://trac.webkit.org/changeset/65056
2734         https://bugs.webkit.org/show_bug.cgi?id=43773
2735
2736         "Clearly I missed something.  I'm too tired to try and fix
2737         now.  Will re-land in the morning." (Requested by eseidel on
2738         #webkit).
2739
2740         * html/HTMLConstructionSite.cpp:
2741         (WebCore::HTMLConstructionSite::attach):
2742         * html/HTMLElement.cpp:
2743         (WebCore::HTMLElement::insertAdjacentHTML):
2744         * html/HTMLTreeBuilder.cpp:
2745         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
2746
2747 2010-08-10  Yoshiki Hayashi  <yhayashi@google.com>
2748
2749         Reviewed by Kent Tamura.
2750
2751         Iterate over :first-letter so that it will be included in innerText.
2752         https://bugs.webkit.org/show_bug.cgi?id=39863
2753
2754         Test: fast/dom/inner-text-first-letter.html
2755
2756         * editing/TextIterator.cpp:
2757         (WebCore::TextIterator::TextIterator):
2758         (WebCore::TextIterator::advance):
2759         (WebCore::TextIterator::handleTextNode):
2760         (WebCore::TextIterator::handleTextBox):
2761         (WebCore::TextIterator::emitText):
2762         * editing/TextIterator.h:
2763
2764 2010-08-10  Kent Tamura  <tkent@chromium.org>
2765
2766         Reviewed by Darin Adler.
2767
2768         Fix crashes by SelectionController::modify().
2769         https://bugs.webkit.org/show_bug.cgi?id=43032
2770
2771         Test: editing/selection/selection-modify-crash.html
2772
2773         * editing/visible_units.cpp:
2774         (WebCore::endOfDocument): Add NULL-check for document()->documentElement().
2775
2776 2010-08-10  Dirk Schulze  <krit@webkit.org>
2777
2778         Reviewed by Nikolas Zimmermann.
2779
2780         Add missing SVGPathSegList source for SVGPathParser
2781         https://bugs.webkit.org/show_bug.cgi?id=43691
2782
2783         Added SVGPathSegListSource to parse normalized or unaltered SVGPathSegLists and transform
2784         them to either a SVG path string, or a SVGPathByteStream. This will be needed to synchronize
2785         all SVGPathSegLists and the SVG path string of the 'd' attribute.
2786         Refactored SVGPathSource code, to read concrete path segments instead of type/flag/coordinates
2787         from the data sources. This is a further abstraction and seperates the reading of content from
2788         the parsing and interpreting.
2789
2790         Doesn't affect any tests.
2791
2792         * Android.mk:
2793         * CMakeLists.txt:
2794         * GNUmakefile.am:
2795         * WebCore.gypi:
2796         * WebCore.pro:
2797         * WebCore.vcproj/WebCore.vcproj:
2798         * WebCore.xcodeproj/project.pbxproj:
2799         * svg/SVGAllInOne.cpp:
2800         * svg/SVGPathByteStreamSource.cpp:
2801         (WebCore::SVGPathByteStreamSource::parseSVGSegmentType):
2802         (WebCore::SVGPathByteStreamSource::nextCommand):
2803         (WebCore::SVGPathByteStreamSource::parseMoveToSegment):
2804         (WebCore::SVGPathByteStreamSource::parseLineToSegment):
2805         (WebCore::SVGPathByteStreamSource::parseLineToHorizontalSegment):
2806         (WebCore::SVGPathByteStreamSource::parseLineToVerticalSegment):
2807         (WebCore::SVGPathByteStreamSource::parseCurveToCubicSegment):
2808         (WebCore::SVGPathByteStreamSource::parseCurveToCubicSmoothSegment):
2809         (WebCore::SVGPathByteStreamSource::parseCurveToQuadraticSegment):
2810         (WebCore::SVGPathByteStreamSource::parseCurveToQuadraticSmoothSegment):
2811         (WebCore::SVGPathByteStreamSource::parseArcToSegment):
2812         * svg/SVGPathByteStreamSource.h:
2813         (WebCore::SVGPathByteStreamSource::moveToNextToken):
2814         * svg/SVGPathParser.cpp:
2815         (WebCore::SVGPathParser::parseMoveToSegment):
2816         (WebCore::SVGPathParser::parseLineToSegment):
2817         (WebCore::SVGPathParser::parseLineToHorizontalSegment):
2818         (WebCore::SVGPathParser::parseLineToVerticalSegment):
2819         (WebCore::SVGPathParser::parseCurveToCubicSegment):
2820         (WebCore::SVGPathParser::parseCurveToCubicSmoothSegment):
2821         (WebCore::SVGPathParser::parseCurveToQuadraticSegment):
2822         (WebCore::SVGPathParser::parseCurveToQuadraticSmoothSegment):
2823         (WebCore::SVGPathParser::parseArcToSegment):
2824         * svg/SVGPathSegListSource.cpp: Added.
2825         (WebCore::SVGPathSegListSource::SVGPathSegListSource):
2826         (WebCore::SVGPathSegListSource::~SVGPathSegListSource):
2827         (WebCore::SVGPathSegListSource::hasMoreData):
2828         (WebCore::SVGPathSegListSource::parseSVGSegmentType):
2829         (WebCore::SVGPathSegListSource::nextCommand):
2830         (WebCore::SVGPathSegListSource::parseMoveToSegment):
2831         (WebCore::SVGPathSegListSource::parseLineToSegment):
2832         (WebCore::SVGPathSegListSource::parseLineToHorizontalSegment):
2833         (WebCore::SVGPathSegListSource::parseLineToVerticalSegment):
2834         (WebCore::SVGPathSegListSource::parseCurveToCubicSegment):
2835         (WebCore::SVGPathSegListSource::parseCurveToCubicSmoothSegment):
2836         (WebCore::SVGPathSegListSource::parseCurveToQuadraticSegment):
2837         (WebCore::SVGPathSegListSource::parseCurveToQuadraticSmoothSegment):
2838         (WebCore::SVGPathSegListSource::parseArcToSegment):
2839         * svg/SVGPathSegListSource.h: Added.
2840         (WebCore::SVGPathSegListSource::create):
2841         (WebCore::SVGPathSegListSource::moveToNextToken):
2842         * svg/SVGPathSource.h:
2843         * svg/SVGPathStringSource.cpp:
2844         (WebCore::SVGPathStringSource::parseMoveToSegment):
2845         (WebCore::SVGPathStringSource::parseLineToSegment):
2846         (WebCore::SVGPathStringSource::parseLineToHorizontalSegment):
2847         (WebCore::SVGPathStringSource::parseLineToVerticalSegment):
2848         (WebCore::SVGPathStringSource::parseCurveToCubicSegment):
2849         (WebCore::SVGPathStringSource::parseCurveToCubicSmoothSegment):
2850         (WebCore::SVGPathStringSource::parseCurveToQuadraticSegment):
2851         (WebCore::SVGPathStringSource::parseCurveToQuadraticSmoothSegment):
2852         (WebCore::SVGPathStringSource::parseArcToSegment):
2853         * svg/SVGPathStringSource.h:
2854
2855 2010-08-09  Ilya Tikhonovsky  <loislo@chromium.org>
2856
2857         Reviewed by Yury Semikhatsky.
2858
2859         Web Inspector: small refactoring for CodeGeneratorInspector.
2860         A number of push calls were replaced by embedded text.
2861         Just for improve code readability.
2862         https://bugs.webkit.org/show_bug.cgi?id=43770
2863
2864         * inspector/CodeGeneratorInspector.pm:
2865
2866 2010-08-09  Eric Seidel  <eric@webkit.org>
2867
2868         Reviewed by Adam Barth.
2869
2870         Fix three ASSERTs hit with the HTML5 TreeBuilder in fragment mode
2871         https://bugs.webkit.org/show_bug.cgi?id=43762
2872
2873         In fixing the insertAdjacentHTML I had to make small changes to
2874         the error logic, which ended up bringing us closer to HTML5.
2875
2876         Test: fast/dom/HTMLElement/insertAdjacentHTML-errors.html
2877
2878         * html/HTMLConstructionSite.cpp:
2879         (WebCore::HTMLConstructionSite::attach):
2880          - This ASSERT was just wrong, the child should not be attached
2881            in the case the parent is not attached.
2882         * html/HTMLElement.cpp:
2883         (WebCore::contextElementForInsertion):
2884          - This is part of HTML5, needed to know what to call the
2885            HTML or XML parsers with.  The previous code always passed
2886            "this" which is wrong in the case of beforeBegin or afterEnd insertion.
2887         (WebCore::HTMLElement::insertAdjacentHTML):
2888          - Use the right contextElement now that we know how to compute it.
2889         * html/HTMLTreeBuilder.cpp:
2890         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
2891          - This ASSERT is direct from the spec, but it's wrong, so I've filed a spec bug.
2892
2893 2010-08-09  Yury Semikhatsky  <yurys@chromium.org>
2894
2895         Reviewed by Pavel Feldman.
2896
2897         Web Inspector: remove InspectorFrontend class and use RemoteInspectorFrontend instead.
2898         https://bugs.webkit.org/show_bug.cgi?id=43726
2899
2900         * CMakeLists.txt:
2901         * GNUmakefile.am:
2902         * WebCore.gypi:
2903         * WebCore.pro:
2904         * WebCore.vcproj/WebCore.vcproj:
2905         * WebCore.xcodeproj/project.pbxproj:
2906         * inspector/InspectorController.cpp:
2907         (WebCore::InspectorController::connectFrontend):
2908         (WebCore::InspectorController::close):
2909         (WebCore::InspectorController::disconnectFrontend):
2910         * inspector/InspectorController.h:
2911         * inspector/InspectorFrontend.cpp: Removed.
2912         * inspector/InspectorFrontend.h: Removed.
2913
2914 2010-08-09  Ilya Tikhonovsky  <loislo@chromium.org>
2915
2916         Reviewed by Pavel Feldman.
2917
2918         Web Inspector: Remove obsolete JS wrappers for did* methods.
2919         https://bugs.webkit.org/show_bug.cgi?id=43738
2920
2921         * inspector/CodeGeneratorInspector.pm:
2922         * inspector/Inspector.idl:
2923         * inspector/front-end/BreakpointManager.js:
2924         * inspector/front-end/Callback.js:
2925         * inspector/front-end/ConsoleView.js:
2926         * inspector/front-end/DOMAgent.js:
2927         * inspector/front-end/DOMStorage.js:
2928         * inspector/front-end/Database.js:
2929         * inspector/front-end/InjectedScriptAccess.js:
2930         * inspector/front-end/ProfilesPanel.js:
2931         * inspector/front-end/ResourcesPanel.js:
2932         * inspector/front-end/ScriptView.js:
2933         * inspector/front-end/ScriptsPanel.js:
2934         * inspector/front-end/inspector.js:
2935         (WebInspector.reportProtocolError):
2936
2937 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2938
2939         Qt build fix attempt VIII.
2940
2941         * dom/QualifiedName.cpp:
2942         (WebCore::QualifiedName::toString):
2943         * dom/XMLDocumentParserQt.cpp:
2944         (WebCore::handleElementNamespaces):
2945
2946 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2947
2948         Qt build fix attempt VII.
2949
2950         * dom/QualifiedName.cpp:
2951         (WebCore::QualifiedName::toString):
2952         * dom/XMLDocumentParserQt.cpp:
2953         (WebCore::handleElementNamespaces):
2954
2955 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2956
2957         Qt build fix attempt VI.
2958
2959         * dom/QualifiedName.cpp:
2960         (WebCore::QualifiedName::toString):
2961         * dom/XMLDocumentParserQt.cpp:
2962         (WebCore::handleElementNamespaces):
2963
2964 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2965
2966         Qt build fix attempt V.
2967
2968         * dom/QualifiedName.cpp:
2969         (WebCore::QualifiedName::toString):
2970         * dom/XMLDocumentParserQt.cpp:
2971         (WebCore::handleElementNamespaces):
2972
2973 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2974
2975         Qt build fix attempt IV.
2976
2977         * css/CSSSelector.cpp:
2978         (WebCore::CSSSelector::selectorText):
2979         * dom/QualifiedName.cpp:
2980         (WebCore::QualifiedName::toString):
2981         * dom/XMLDocumentParserQt.cpp:
2982         (WebCore::handleElementNamespaces):
2983
2984 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2985
2986         Speculative chromium build fix.
2987
2988         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
2989         (WebCore::charactersAreAllASCII):
2990
2991 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
2992
2993         Qt build fix III.
2994
2995         * css/CSSSelector.cpp:
2996
2997 2010-08-09  Adam Barth  <abarth@webkit.org>
2998
2999         Reviewed by Eric Seidel.
3000
3001         Remove error-prone external SegementedSubstring contructor
3002         https://bugs.webkit.org/show_bug.cgi?id=43752
3003
3004         There's a lot of code that assumes that SegmentedString takes ownership
3005         of its substrings.  For example, when the HTML parser pauses and
3006         resumes asynchronously, it could explode if SegmentedString didn't own
3007         its substrings.
3008
3009         Prior to this patch, there was a constructor that let
3010         SegmentedSubstring use an external string buffer.  It turns out it was
3011         only used in a handful of places, but I'd rather pay the memcpy of
3012         these small strings than risk having them used after free.
3013
3014         * bindings/js/JSHTMLDocumentCustom.cpp:
3015         (WebCore::documentWrite):
3016         * html/LegacyHTMLDocumentParser.cpp:
3017         (WebCore::LegacyHTMLDocumentParser::parseNonHTMLText):
3018         (WebCore::LegacyHTMLDocumentParser::scriptHandler):
3019         (WebCore::LegacyHTMLDocumentParser::parseComment):
3020         * platform/text/SegmentedString.h:
3021         (WebCore::SegmentedString::SegmentedString):
3022
3023 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
3024
3025         Speculative Qt build fix.
3026
3027         * css/CSSSelector.cpp:
3028
3029 2010-08-09  Gavin Barraclough  <barraclough@apple.com>
3030
3031         Speculative gtk build fix.
3032
3033         * plugins/gtk/PluginViewGtk.cpp:
3034         (WebCore::PluginView::handlePostReadFile):
3035
3036 2010-08-06  Gavin Barraclough  <barraclough@apple.com>
3037
3038         Rubber stamped by Sam Weinig
3039
3040         Bug 43594 - Add string forwards to Forward.h
3041         This allows us to remove forward declarations for these classes from
3042         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
3043
3044         * WebCore.xcodeproj/project.pbxproj:
3045         * accessibility/AXObjectCache.h:
3046         * accessibility/AccessibilityARIAGrid.h:
3047         * accessibility/AccessibilityListBoxOption.h:
3048         * accessibility/AccessibilityObject.h:
3049         * accessibility/AccessibilityRenderObject.h:
3050         * accessibility/AccessibilityTable.h:
3051         * bindings/cpp/WebDOMCString.h:
3052         * bindings/cpp/WebDOMString.h:
3053         * bindings/gobject/ConvertToUTF8String.h:
3054         * bindings/js/DOMWrapperWorld.h:
3055         * bindings/js/JSDOMBinding.h:
3056         * bindings/js/JSDOMWindowBase.h:
3057         * bindings/js/JSMessagePortCustom.h:
3058         * bindings/js/JavaScriptCallFrame.h:
3059         * bindings/js/ScriptController.h:
3060         * bindings/js/ScriptProfile.h:
3061         * bindings/js/ScriptSourceProvider.h:
3062         * bindings/js/ScriptString.h:
3063         * bindings/js/WorkerScriptController.h:
3064         * bindings/objc/DOMImplementationFront.h:
3065         * bindings/v8/ScheduledAction.h:
3066         * bindings/v8/ScriptController.h:
3067         * bindings/v8/V8DOMWindowShell.h:
3068         * bindings/v8/V8Proxy.h:
3069         * bindings/v8/V8Utilities.h:
3070         * bindings/v8/custom/V8CustomXPathNSResolver.h:
3071         * bridge/c/c_utility.h:
3072         * css/CSSFontSelector.h:
3073         * css/CSSHelper.h:
3074         * css/CSSOMUtils.h:
3075         * css/CSSPrimitiveValue.h:
3076         * css/MediaList.h:
3077         * css/StyleBase.h:
3078         * css/StyleSheetList.h:
3079         * css/WebKitCSSKeyframesRule.h:
3080         * dom/CheckedRadioButtons.h:
3081         * dom/DOMImplementation.h:
3082         * dom/DocumentMarker.h:
3083         * dom/DynamicNodeList.h:
3084         * dom/EventTarget.h:
3085         * dom/MessagePort.h:
3086         * dom/MessagePortChannel.h:
3087         * dom/NameNodeList.h:
3088         * dom/Node.h:
3089         * dom/NodeList.h:
3090         * dom/OptionGroupElement.h:
3091         * dom/ScriptExecutionContext.h:
3092         * dom/SelectElement.h:
3093         * dom/ViewportArguments.h:
3094         * dom/make_names.pl:
3095         * editing/HTMLInterchange.h:
3096         * editing/htmlediting.h:
3097         * editing/markup.h:
3098         * html/CollectionCache.h:
3099         * html/DOMFormData.h:
3100         * html/DataGridColumnList.h:
3101         * html/DateComponents.h:
3102         * html/FileStream.h:
3103         * html/FileStreamProxy.h:
3104         * html/FormDataList.h:
3105         (WebCore::FormDataList::appendData):
3106         * html/HTMLCollection.h:
3107         * html/HTMLElementStack.h:
3108         * html/HTMLFormattingElementList.h:
3109         * html/HTMLParserQuirks.h:
3110         * html/HTMLQuoteElement.h:
3111         * html/HTMLScriptRunnerHost.h:
3112         * html/StepRange.h:
3113         * html/canvas/CanvasGradient.h:
3114         * html/canvas/CanvasNumberArray.h:
3115         * html/canvas/CanvasPattern.h:
3116         * inspector/InjectedScript.h:
3117         * inspector/InspectorCSSStore.h:
3118         * inspector/InspectorClient.h:
3119         * inspector/InspectorFrontendClient.h:
3120         * inspector/InspectorValues.h:
3121         * inspector/ScriptDebugListener.h:
3122         * loader/CachedResourceClient.h:
3123         * loader/CrossOriginAccessControl.h:
3124         * loader/DocumentThreadableLoader.h:
3125         * loader/FrameLoaderClient.h:
3126         * loader/RedirectScheduler.h:
3127         * loader/SubframeLoader.h:
3128         * loader/appcache/DOMApplicationCache.h:
3129         * loader/archive/ArchiveFactory.h:
3130         * loader/icon/IconDatabaseClient.h:
3131         * notifications/NotificationPresenter.h:
3132         * page/Chrome.h:
3133         * page/ChromeClient.h:
3134         * page/Console.h:
3135         * page/ContextMenuClient.h:
3136         * page/DOMSelection.h:
3137         * page/EditorClient.h:
3138         * page/EventHandler.h:
3139         * page/FrameView.h:
3140         * page/GeolocationPositionCache.h:
3141         * page/History.h:
3142         * page/Location.h:
3143         * page/Navigator.h:
3144         * page/NavigatorBase.h:
3145         * page/PluginHalterClient.h:
3146         * page/PrintContext.h:
3147         * page/SpeechInput.h:
3148         * page/SpeechInputListener.h:
3149         * page/animation/AnimationController.h:
3150         * platform/CookieJar.h:
3151         * platform/CrossThreadCopier.h:
3152         * platform/DragImage.h:
3153         * platform/FileSystem.h:
3154         * platform/Language.h:
3155         * platform/Length.h:
3156         * platform/LinkHash.h:
3157         * platform/LocalizationStrategy.h:
3158         * platform/LocalizedStrings.h:
3159         * platform/Logging.h:
3160         * platform/Pasteboard.h:
3161         * platform/PopupMenuClient.h:
3162         * platform/SearchPopupMenu.h:
3163         * platform/Widget.h:
3164         * platform/cf/BinaryPropertyList.h:
3165         * platform/chromium/ChromiumBridge.h:
3166         * platform/chromium/ClipboardUtilitiesChromium.h:
3167         * platform/cocoa/KeyEventCocoa.h:
3168         * platform/graphics/Color.h:
3169         * platform/graphics/FontCache.h:
3170         * platform/graphics/FontData.h:
3171         * platform/graphics/FontSelector.h:
3172         * platform/graphics/GraphicsTypes.h:
3173         * platform/graphics/Icon.h:
3174         * platform/graphics/ImageBuffer.h:
3175         * platform/graphics/ImageSource.h:
3176         * platform/graphics/MediaPlayer.h:
3177         * platform/graphics/MediaPlayerPrivate.h:
3178         * platform/graphics/Path.h:
3179         * platform/graphics/StringTruncator.h:
3180         * platform/graphics/cairo/FontCustomPlatformData.h:
3181         * platform/graphics/cairo/FontPlatformData.h:
3182         * platform/graphics/cg/FontPlatformData.h:
3183         * platform/graphics/cg/ImageSourceCG.h:
3184         * platform/graphics/chromium/FontCustomPlatformData.h:
3185         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
3186         * platform/graphics/chromium/FontPlatformDataLinux.h:
3187         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
3188         * platform/graphics/haiku/FontCustomPlatformData.h:
3189         * platform/graphics/mac/FontCustomPlatformData.h:
3190         * platform/graphics/mac/FontPlatformData.h:
3191         * platform/graphics/qt/FontCustomPlatformData.h:
3192         * platform/graphics/qt/FontPlatformData.h:
3193         * platform/graphics/win/FontCustomPlatformData.h:
3194         * platform/graphics/win/FontCustomPlatformDataCairo.h:
3195         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
3196         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
3197         * platform/graphics/wince/FontPlatformData.h:
3198         * platform/graphics/wince/MediaPlayerPrivateWince.h:
3199         * platform/graphics/wince/MediaPlayerProxy.h:
3200         * platform/graphics/wx/FontCustomPlatformData.h:
3201         * platform/graphics/wx/FontPlatformData.h:
3202         * platform/mac/PasteboardHelper.h:
3203         * platform/network/DNS.h:
3204         * platform/network/FormData.h:
3205         * platform/network/FormDataBuilder.h:
3206         * platform/network/HTTPParsers.h:
3207         * platform/text/Hyphenation.h:
3208         * platform/text/LineEnding.h:
3209         * platform/text/TextCodec.h:
3210         * platform/text/TextEncoding.h:
3211         * platform/text/TextStream.h:
3212         * platform/win/BString.h:
3213         * platform/win/ClipboardUtilitiesWin.h:
3214         * platform/win/WCDataObject.h:
3215         * platform/win/WebCoreTextRenderer.h:
3216         * plugins/DOMMimeType.h:
3217         * plugins/DOMMimeTypeArray.h:
3218         * plugins/DOMPlugin.h:
3219         * plugins/DOMPluginArray.h:
3220         * rendering/CounterNode.h:
3221         * rendering/HitTestResult.h:
3222         * rendering/RenderObjectChildList.h:
3223         * rendering/RenderText.h:
3224         * rendering/RenderTreeAsText.h:
3225         * rendering/TextControlInnerElements.h:
3226         * rendering/style/ContentData.h:
3227         * rendering/style/RenderStyle.h:
3228         * storage/DatabaseAuthorizer.h:
3229         * storage/DatabaseTrackerClient.h:
3230         * storage/SQLTransaction.h:
3231         * storage/SQLTransactionSync.h:
3232         * storage/Storage.h:
3233         * storage/chromium/DatabaseObserver.h:
3234         * svg/SVGAnimatedTemplate.h:
3235         * svg/SVGDocumentExtensions.h:
3236         * svg/SVGGlyphElement.h:
3237         * svg/SVGHKernElement.h:
3238         * svg/SVGNumberList.h:
3239         * svg/SVGPointList.h:
3240         * svg/SVGPreserveAspectRatio.h:
3241         * svg/SVGStylable.h:
3242         * svg/SVGTests.h:
3243         * svg/SVGTransformList.h:
3244         * svg/SVGTransformable.h:
3245         * svg/SVGVKernElement.h:
3246         * websockets/ThreadableWebSocketChannel.h:
3247         * websockets/ThreadableWebSocketChannelClientWrapper.h:
3248         * websockets/WebSocket.h:
3249         * websockets/WebSocketChannel.h:
3250         * websockets/WebSocketHandshakeResponse.h:
3251         * wml/WMLErrorHandling.h:
3252         * wml/WMLPageState.h:
3253         * wml/WMLVariables.h:
3254         * workers/DefaultSharedWorkerRepository.h:
3255         * workers/SharedWorkerRepository.h:
3256         * workers/Worker.h:
3257         * workers/WorkerContextProxy.h:
3258         * workers/WorkerLoaderProxy.h:
3259         * workers/WorkerLocation.h:
3260         * workers/WorkerMessagingProxy.h:
3261         * workers/WorkerReportingProxy.h:
3262         * workers/WorkerThread.h:
3263         * xml/DOMParser.h:
3264         * xml/XMLHttpRequestUpload.h:
3265         * xml/XPathEvaluator.h:
3266         * xml/XPathExpression.h:
3267         * xml/XPathNSResolver.h:
3268         * xml/XPathResult.h:
3269         * xml/XPathUtil.h:
3270
3271 2010-08-09  Nat Duca  <nduca@chromium.org>
3272
3273         Reviewed by Dimitri Glazkov.
3274
3275         [chromium] Blue line visible at the right hand side of the window with accelerated compositor
3276         https://bugs.webkit.org/show_bug.cgi?id=43748
3277
3278         Correct the ortho projection matrix for the root layer, which was
3279         too large by 0.5px in both width and height. For even view sizes,
3280         this would cause the viewport to appear 1 pixel too small.
3281
3282         Fixing this requires removal of several 0.5 correction factors
3283         that were previously added to compensate for the too-large viewport.
3284
3285         Finally, compute the translation for the root layer quad using
3286         floating point rather than integer arithmetic. This avoids us losing
3287         a key half-pixel of translation when the width of the window is odd.
3288
3289         To test, size window to even/odd dimensions. No blue line should be visible.
3290
3291         * platform/graphics/chromium/LayerRendererChromium.cpp:
3292         (WebCore::LayerRendererChromium::drawLayers):
3293
3294 2010-08-09  Ryosuke Niwa  <rniwa@webkit.org>
3295
3296         Reviewed by Justin Garcia.
3297
3298         fontColorChangesComputedStyle, fontSizeChangesComputedStyle, and fontFaceChangesComputedStyle should be removed
3299         https://bugs.webkit.org/show_bug.cgi?id=43465
3300
3301         Removed fontColorChangesComputedStyle, fontSizeChangesComputedStyle, and fontFaceChangesComputedStyle
3302         because StyleChange's applyFontColor, applyFontFace, and applyFontSize all return false
3303         if there was no difference between the new font color, font size, font face and that of the computed style.
3304
3305         Also added a work-around for the bug 28282 in getPropertiesNotInComputedStyle with a test so that
3306         the above change will not add a redundant font or span element.
3307
3308         Test: editing/style/fore-color-by-name.html
3309
3310         * editing/ApplyStyleCommand.cpp:
3311         (WebCore::getRGBAFontColor): Added.
3312         (WebCore::StyleChange::extractTextStyles): Calls getRGBAFontColor.
3313         (WebCore::getPropertiesNotInComputedStyle): Removes color property manually by checking the RGBA values.
3314         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded): See above.
3315
3316 2010-08-09  Kenneth Russell  <kbr@google.com>
3317
3318         Reviewed by David Levin.
3319
3320         Fix compilation of VideoLayerChromium on Mac OS X with compositor
3321         https://bugs.webkit.org/show_bug.cgi?id=43757
3322
3323         No new tests; build fix only (associated functionality not implemented yet).
3324
3325         * platform/graphics/chromium/VideoLayerChromium.cpp:
3326         (WebCore::VideoLayerChromium::VideoLayerChromium):
3327         (WebCore::VideoLayerChromium::updateTextureContents):
3328         (WebCore::VideoLayerChromium::createTextureRect):
3329         (WebCore::VideoLayerChromium::updateTextureRect):
3330         * platform/graphics/chromium/VideoLayerChromium.h:
3331
3332 2010-08-09  Ariya Hidayat  <ariya@sencha.com>
3333
3334         Reviewed by Kenneth Rohde Christiansen.
3335
3336         [Qt] Need to implement GraphicsContextQt::clipConvexPolygon()
3337         https://bugs.webkit.org/show_bug.cgi?id=41310
3338
3339         Based on the prototype code by Simon Hausmann.
3340
3341         * platform/graphics/qt/GraphicsContextQt.cpp:
3342         (WebCore::GraphicsContext::clipConvexPolygon):
3343         * rendering/RenderObject.h:
3344
3345 2010-08-09  Chris Fleizach  <cfleizach@apple.com>
3346
3347         Reviewed by David Kilzer.
3348
3349         AX: Placeholder value for text fields not exposed like it should be
3350         https://bugs.webkit.org/show_bug.cgi?id=43598
3351
3352         * accessibility/AccessibilityObject.cpp:
3353         (WebCore::AccessibilityObject::placeholderValue):
3354         * accessibility/AccessibilityObject.h:
3355         * accessibility/AccessibilityRenderObject.cpp:
3356         (WebCore::AccessibilityRenderObject::title):
3357         * accessibility/mac/AccessibilityObjectWrapper.mm:
3358         (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
3359         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
3360
3361 2010-08-09  Ryosuke Niwa  <rniwa@webkit.org>
3362
3363         Reviewed by Justin Garcia.
3364
3365         Undo fails in RemoveCSSPropertyCommand when the corresponding style attribute is removed
3366         https://bugs.webkit.org/show_bug.cgi?id=43639
3367
3368         The bug was caused when RemoveCSSPropertyCommand is called with CSSMutableStyleDeclaration of some styled element,
3369         and the style attribute of the element is removed subsequently. When the attribute removal is undone, new instance of
3370         CSSMutableStyleDeclaration is created and RemoveCSSPropertyCommand's m_style became detached from the element.
3371
3372         Modified RemoveCSSPropertyCommand to store the styled element directly instead of its CSSMutableStyleDeclaration.
3373
3374         Test: editing/undo/remove-css-property-and-remove-style.html
3375
3376         * WebCore.order:
3377         * editing/ApplyStyleCommand.cpp:
3378         (WebCore::ApplyStyleCommand::removeCSSStyle): Calls removeCSSProperty.
3379         (WebCore::ApplyStyleCommand::extractTextDecorationStyle): Calls removeCSSProperty.
3380         * editing/CompositeEditCommand.cpp:
3381         (WebCore::CompositeEditCommand::removeCSSProperty): Takes StyledElement instead of CSSMutableStyleDeclaration.
3382         * editing/CompositeEditCommand.h:
3383         * editing/RemoveCSSPropertyCommand.cpp:
3384         (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand): Takes StyledElement instead of CSSMutableStyleDeclaration.
3385         (WebCore::RemoveCSSPropertyCommand::doApply): See above.
3386         (WebCore::RemoveCSSPropertyCommand::doUnapply): See above.
3387         * editing/RemoveCSSPropertyCommand.h:
3388         (WebCore::RemoveCSSPropertyCommand::create): See above.
3389
3390 2010-08-09  Ryosuke Niwa  <rniwa@webkit.org>
3391
3392         Reviewed by Tony Chang.
3393
3394         Use getIdentifierValue to obtain direction and unicode-bidi properties in ApplyStyleCommand
3395         https://bugs.webkit.org/show_bug.cgi?id=43699
3396
3397         Deployed getIdentifierValue in various parts of ApplyStyleCommand where
3398         direction and unicode-bidi properties were obtained manually.
3399
3400         No new tests since this is a cleanup.
3401
3402         * editing/ApplyStyleCommand.cpp:
3403         (WebCore::getIdentifierValue): Takes CSSStyleDeclaration instead of CSSMutableStyleDeclaration.
3404         (WebCore::ApplyStyleCommand::splitAncestorsWithUnicodeBidi): Calls getIdentifierValue.
3405         (WebCore::ApplyStyleCommand::removeEmbeddingUpToEnclosingBlock): Calls getIdentifierValue.
3406         (WebCore::ApplyStyleCommand::applyInlineStyle): Calls getIdentifierValue.
3407         * editing/ApplyStyleCommand.h:
3408
3409 2010-08-09  Adam Barth  <abarth@webkit.org>
3410
3411         Reviewed by Eric Seidel.
3412
3413         Remove trailing whitespace in HTMLViewSourceDocument.cpp
3414         https://bugs.webkit.org/show_bug.cgi?id=43741
3415
3416         No behavior change.  The whitespace was distracting me while porting
3417         this class to the new parser.
3418
3419         * html/HTMLViewSourceDocument.cpp:
3420         (WebCore::HTMLViewSourceDocument::createContainingTable):
3421         (WebCore::HTMLViewSourceDocument::addViewSourceToken):
3422         (WebCore::HTMLViewSourceDocument::addLine):
3423         (WebCore::HTMLViewSourceDocument::addText):
3424         (WebCore::HTMLViewSourceDocument::addLink):
3425
3426 2010-08-09  Eric Seidel  <eric@webkit.org>
3427
3428         Reviewed by Adam Barth.
3429
3430         Use the HTML5 TreeBuilder for Fragment Parsing
3431         https://bugs.webkit.org/show_bug.cgi?id=43586
3432
3433         The bulk of this change is just a transcription of the HTML5 spec:
3434         http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#fragment-case
3435
3436         DocumentParser() now sets the right tokenizer state before handling
3437         fragments.  Since default code path uses the HTML5 tokenizer with the
3438         legacy tree builder, this fixes 2 tokenizer-state tests for the html5lib.
3439         This fixes 2 more tree-builder tests when the html5 treebuilder is enabled too.
3440
3441         * dom/DocumentFragment.cpp:
3442         (WebCore::DocumentFragment::parseHTML):
3443          - HTML5 implementation of fragment parsing requires the context element (parent)
3444            pointer.  The legacy implementation handles all parsing branches which require
3445            the context element outside of the parser itself, which likely produces "wrong"
3446            results.  We'll remove those branches when we turn on the HMTL5 fragment parser.
3447         (WebCore::DocumentFragment::parseXML):
3448          - Rename "parent" to "contextElement" to match the HTML path (and the HTML5 spec).
3449         * dom/DocumentFragment.h:
3450         * dom/Element.cpp:
3451         (WebCore::Element::createContextualFragment):
3452          - Pass the contextElement (this).
3453         * html/HTMLConstructionSite.cpp:
3454         (WebCore::HTMLConstructionSite::setForm):
3455          - Needed by for the fragment case.
3456         (WebCore::HTMLConstructionSite::insertHTMLBodyStartTagInBody):
3457          - I'm not sure this method should exist, it only has one caller.
3458            but for now, I've moved the fragment case FIXME out to the
3459            one caller and implemented it.
3460         * html/HTMLConstructionSite.h:
3461         * html/HTMLDocumentParser.cpp:
3462         (WebCore::HTMLNames::tokenizerStateForContextElement):
3463          - Part of the fragment case handling for the HTML5 parser.
3464         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
3465          - Set the Tokenizer state based on the contextElement.
3466         (WebCore::HTMLDocumentParser::parseDocumentFragment):
3467          - Take a contextElement argument.
3468         * html/HTMLDocumentParser.h:
3469         * html/HTMLElement.cpp:
3470         (WebCore::HTMLElement::setInnerHTML):
3471          - Added a FIXME before the branches the old parser used to avoid ever needing
3472            to pass a context element when parsing HTML fragments.
3473         (WebCore::HTMLElement::insertAdjacentHTML):
3474          - Pass the context element.
3475         * html/HTMLTokenizer.h:
3476         * html/HTMLTreeBuilder.cpp:
3477          - I added a new helper class FragmentParsingContext to simplify the two
3478            HTMLTreeBuilder constructors and hide the existence of m_dummyDocumentForFragmentParse.
3479          - I also removed m_isParsingFragment and replaced it with an isParsingFragment() function.
3480         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
3481         (WebCore::HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext):
3482         (WebCore::HTMLTreeBuilder::FragmentParsingContext::document):
3483         (WebCore::HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext):
3484         (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
3485         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
3486          - I had to implement two notImplemented() states in order to get most of the
3487            layout tests to pass when using the HTML5 parser fragment case.
3488         (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup):
3489         (WebCore::HTMLTreeBuilder::processStartTagForInTable):
3490         (WebCore::HTMLTreeBuilder::processStartTag):
3491         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):
3492         (WebCore::HTMLTreeBuilder::processEndTagForInTableBody):
3493         (WebCore::HTMLTreeBuilder::processEndTagForInRow):
3494         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
3495         (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption):
3496         (WebCore::HTMLTreeBuilder::processTrEndTagForInRow):
3497         (WebCore::HTMLTreeBuilder::processTableEndTagForInTable):
3498         (WebCore::HTMLTreeBuilder::processEndTag):
3499         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
3500         (WebCore::HTMLTreeBuilder::processEndOfFile):
3501         (WebCore::HTMLTreeBuilder::finished):
3502          - The HTML5 parsing algorithm fragment case uses a dummy document to handle all the parsing
3503            and then moves all the children from the dummy document over into a DocumentFragment
3504            when the parse is done.  We could avoid this adopt step by making the TreeBuilder a bit
3505            more complicated, but I'm not sure that's necessary (yet).
3506         * html/HTMLTreeBuilder.h:
3507         (WebCore::HTMLTreeBuilder::isParsingFragment):
3508         (WebCore::HTMLTreeBuilder::FragmentParsingContext::fragment):
3509         (WebCore::HTMLTreeBuilder::FragmentParsingContext::contextElement):
3510         (WebCore::HTMLTreeBuilder::FragmentParsingContext::scriptingPermission):
3511         * xml/XSLTProcessor.cpp:
3512         (WebCore::createFragmentFromSource):
3513
3514 2010-08-09  Dumitru Daniliuc  <dumi@chromium.org>
3515
3516         Reviewed by Adam Barth.
3517
3518         Auto-generate most HTML5 DB bindings.
3519         https://bugs.webkit.org/show_bug.cgi?id=43382
3520
3521         * Android.jscbindings.mk: Remove {JS|V8}Database{Sync}Custom.cpp
3522         and the custom implementations of openDatabase{Sync}().
3523         * Android.v8bindings.mk:
3524         * CMakeLists.txt:
3525         * GNUmakefile.am:
3526         * WebCore.gypi:
3527         * WebCore.pro:
3528         * WebCore.vcproj/WebCore.vcproj:
3529         * WebCore.xcodeproj/project.pbxproj:
3530         * bindings/js/JSBindingsAllInOne.cpp:
3531         * bindings/js/JSDOMWindowCustom.cpp:
3532         * bindings/js/JSDatabaseCustom.cpp: Removed.
3533         * bindings/js/JSDatabaseSyncCustom.cpp: Removed.
3534         * bindings/js/JSWorkerContextCustom.cpp:
3535         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3536         * bindings/v8/custom/V8DatabaseCustom.cpp: Removed.
3537         * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Removed.
3538         * bindings/v8/custom/V8WorkerContextCustom.cpp:
3539
3540         * bindings/scripts/CodeGeneratorGObject.pm: Change the code generators
3541         to check that each value can be converted to the respective
3542         argument type.
3543         * bindings/scripts/CodeGeneratorJS.pm:
3544         * bindings/scripts/CodeGeneratorV8.pm:
3545         * bindings/scripts/test/JS/JSTestCallback.cpp:
3546         (WebCore::JSTestCallback::~JSTestCallback):
3547         * bindings/scripts/test/JS/JSTestObj.cpp:
3548         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
3549         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
3550         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
3551         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
3552         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
3553         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
3554         (WebCore::jsTestObjPrototypeFunctionIdbKey):
3555         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
3556         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
3557         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
3558         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
3559         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
3560         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
3561         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
3562         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
3563         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
3564         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
3565         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
3566         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
3567         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
3568         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
3569         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
3570         * bindings/scripts/test/V8/V8TestObj.cpp:
3571         (WebCore::TestObjInternal::voidMethodWithArgsCallback):
3572         (WebCore::TestObjInternal::intMethodWithArgsCallback):
3573         (WebCore::TestObjInternal::objMethodWithArgsCallback):
3574         (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
3575         (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
3576         (WebCore::TestObjInternal::idbKeyCallback):
3577         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
3578         (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
3579         (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
3580         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
3581         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
3582         (WebCore::TestObjInternal::methodWithOptionalArgCallback):
3583         (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
3584         (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
3585         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
3586         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
3587         (WebCore::TestObjInternal::overloadedMethod1Callback):
3588         (WebCore::TestObjInternal::overloadedMethod2Callback):
3589         (WebCore::TestObjInternal::overloadedMethod3Callback):
3590         (WebCore::TestObjInternal::overloadedMethod4Callback):
3591         (WebCore::):
3592         (WebCore::ConfigureV8TestObjTemplate):
3593         * bindings/v8/custom/V8BindingMacros.h:
3594
3595         * bindings/v8/V8Binding.h: Minor changes required to support the
3596         auto-generated bindings.
3597         (WebCore::V8Parameter::V8Parameter):
3598         * bindings/v8/custom/V8SQLTransactionCustom.cpp:
3599         (WebCore::V8SQLTransaction::executeSqlCallback):
3600         * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:
3601         (WebCore::V8SQLTransactionSync::executeSqlCallback):
3602         * page/DOMWindow.idl:
3603         * storage/Database.cpp:
3604         (WebCore::Database::transaction):
3605         (WebCore::Database::readTransaction):
3606         (WebCore::Database::runTransaction):
3607         * storage/Database.h:
3608         * storage/Database.idl:
3609         * storage/DatabaseSync.cpp:
3610         (WebCore::DatabaseSync::transaction):
3611         (WebCore::DatabaseSync::readTransaction):
3612         (WebCore::DatabaseSync::runTransaction):
3613         * storage/DatabaseSync.h:
3614         * storage/DatabaseSync.idl:
3615         * workers/WorkerContext.idl:
3616
3617 2010-08-09  Adam Barth  <abarth@webkit.org>
3618
3619         Reviewed by Eric Seidel.
3620
3621         Move HTMLViewSourceDocument from legacyParserAddChild to parserAddChild
3622         https://bugs.webkit.org/show_bug.cgi?id=43740
3623
3624         This removes the DTD checks, which aren't needed for view source
3625         documents.
3626
3627         * html/HTMLViewSourceDocument.cpp:
3628         (WebCore::HTMLViewSourceDocument::createContainingTable):
3629         (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
3630         (WebCore::HTMLViewSourceDocument::addLine):
3631         (WebCore::HTMLViewSourceDocument::addText):
3632         (WebCore::HTMLViewSourceDocument::addLink):
3633
3634 2010-08-09  Dan Bernstein  <mitz@apple.com>
3635
3636         Reviewed by Simon Fraser.
3637
3638         Fixed an uninitialized member variable in the Color(CGColorRef) constructor.
3639
3640         * platform/graphics/cg/ColorCG.cpp:
3641         (WebCore::Color::Color): Initialize m_valid to true if the color is not 0.
3642
3643 2010-08-09  James Robinson  <jamesr@chromium.org>
3644
3645         Chromium compile fix, unreviewed.
3646
3647         * platform/graphics/skia/PlatformContextSkia.cpp:
3648         (WebCore::PlatformContextSkia::~PlatformContextSkia):
3649         (WebCore::PlatformContextSkia::setGraphicsContext3D):
3650
3651 2010-08-09  James Robinson  <jamesr@chromium.org>
3652
3653         Reviewed by Dimitri Glazkov.
3654
3655         [chromium] Add a PrepareTextureCallback to the chromium canvas layer compositor to upload mixed-mode results before compositing
3656         https://bugs.webkit.org/show_bug.cgi?id=43656
3657
3658         When compositing an accelerated canvas that is using both hardware and software drawing,
3659         we need a callback before compositing the layer to make sure that we upload any software
3660         drawn results to the texture.  This will go away as soon as implement all draw calls
3661         in hardware.
3662
3663         To test, run any canvas demo that runs in mixed mode and verifies that the software results
3664         always show up.
3665
3666         * platform/graphics/chromium/CanvasLayerChromium.cpp:
3667         (WebCore::CanvasLayerChromium::updateTextureContents):
3668         * platform/graphics/chromium/CanvasLayerChromium.h:
3669         (WebCore::CanvasLayerChromium::setPrepareTextureCallback):
3670         * platform/graphics/skia/PlatformContextSkia.cpp:
3671         (WebCore::PrepareTextureCallbackImpl::create):
3672         (WebCore::PrepareTextureCallbackImpl::willPrepareTexture):
3673         (WebCore::PrepareTextureCallbackImpl::PrepareTextureCallbackImpl):
3674         (WebCore::PlatformContextSkia::setGraphicsContext3D):
3675
3676 2010-08-09  Zhenyao Mo  <zmo@google.com>
3677
3678         Reviewed by David Levin.
3679
3680         sizeInBytes should be removed
3681         https://bugs.webkit.org/show_bug.cgi?id=43693
3682
3683         * html/canvas/WebGLRenderingContext.cpp:
3684         (WebCore::WebGLRenderingContext::sizeInBytes): Don't generate GL errors.  Generate them in the callers instead.
3685         (WebCore::WebGLRenderingContext::vertexAttribPointer): Generate GL error if sizeInBytes fails.
3686         * html/canvas/WebGLRenderingContext.h: Make sizeInBytes private helper.
3687         * html/canvas/WebGLRenderingContext.idl: Remove sizeInBytes.
3688
3689 2010-08-09  Eric Carlson  <eric.carlson@apple.com>
3690
3691         Reviewed by Darin Adler.
3692
3693         https://bugs.webkit.org/show_bug.cgi?id=43702
3694         <video> element does not resize correctly
3695
3696         * html/HTMLMediaElement.cpp:
3697         (WebCore::HTMLMediaElement::setReadyState): RenderVideo::videoSizeChanged is gone, just use
3698         updateFromElement instead.
3699         (WebCore::HTMLMediaElement::mediaPlayerDurationChanged): Ditto.
3700         (WebCore::HTMLMediaElement::mediaPlayerSizeChanged): Ditto.
3701
3702         * html/HTMLVideoElement.cpp:
3703         (WebCore::HTMLVideoElement::parseMappedAttribute): Clear the image loader and cached image when 
3704         the 'poster' attribute is changed and we aren't displaying a poster.
3705
3706         * rendering/RenderVideo.cpp:
3707         (WebCore::RenderVideo::RenderVideo):
3708         (WebCore::RenderVideo::intrinsicSizeChanged): videoSizeChanged -> updateIntrinsicSize.
3709         (WebCore::RenderVideo::updateIntrinsicSize): Renamed from videoSizeChanged, calculate initial 
3710         intrinsic size with calculateIntrinsicSize
3711         (WebCore::RenderVideo::calculateIntrinsicSize): New, calculate size according to current spec.
3712         (WebCore::RenderVideo::imageChanged): Reset intrinsic size to default when poster fails to load.
3713         (WebCore::RenderVideo::updatePlayer): Call updateIntrinsicSize.
3714         * rendering/RenderVideo.h: Renamed videoSizeChanged to updateIntrinsicSize and make private.
3715
3716 2010-08-09  Marcus Bulach  <bulach@chromium.org>
3717
3718         Reviewed by Jeremy Orlow.
3719
3720         Fixes custom JS bindings for IDBCursor after r64828.
3721         https://bugs.webkit.org/show_bug.cgi?id=43729
3722
3723         Build fix, no tests.
3724
3725         * WebCore.xcodeproj/project.pbxproj:
3726         * bindings/js/JSIDBAnyCustom.cpp:
3727         (WebCore::toJS):
3728         * storage/IDBObjectStore.h:
3729
3730 2010-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3731
3732         Unreviewed, rolling out r64993.
3733         http://trac.webkit.org/changeset/64993
3734         https://bugs.webkit.org/show_bug.cgi?id=43734
3735
3736         broke chromium compile (Requested by jamesr on #webkit).
3737
3738         * platform/graphics/chromium/CanvasLayerChromium.cpp:
3739         (WebCore::CanvasLayerChromium::updateTextureContents):
3740         * platform/graphics/chromium/CanvasLayerChromium.h:
3741         * platform/graphics/skia/PlatformContextSkia.cpp:
3742         (WebCore::PlatformContextSkia::~PlatformContextSkia):
3743         (WebCore::PlatformContextSkia::setGraphicsContext3D):
3744
3745 2010-08-09  James Robinson  <jamesr@chromium.org>
3746
3747         Reviewed by Dimitri Glazkov.
3748
3749         [chromium] Add a PrepareTextureCallback to the chromium canvas layer compositor to upload mixed-mode results before compositing
3750         https://bugs.webkit.org/show_bug.cgi?id=43656
3751
3752         When compositing an accelerated canvas that is using both hardware and software drawing,
3753         we need a callback before compositing the layer to make sure that we upload any software
3754         drawn results to the texture.  This will go away as soon as implement all draw calls
3755         in hardware.
3756
3757         To test, run any canvas demo that runs in mixed mode and verifies that the software results
3758         always show up.
3759
3760         * platform/graphics/chromium/CanvasLayerChromium.cpp:
3761         (WebCore::CanvasLayerChromium::updateTextureContents):
3762         * platform/graphics/chromium/CanvasLayerChromium.h:
3763         (WebCore::CanvasLayerChromium::setPrepareTextureCallback):
3764         * platform/graphics/skia/PlatformContextSkia.cpp:
3765         (WebCore::PrepareTextureCallbackImpl::create):
3766         (WebCore::PrepareTextureCallbackImpl::willPrepareTexture):
3767         (WebCore::PrepareTextureCallbackImpl::PrepareTextureCallbackImpl):
3768         (WebCore::PlatformContextSkia::setGraphicsContext3D):
3769
3770 2010-08-09  Dominic Cooney  <dominicc@google.com>
3771
3772         Reviewed by Adam Barth.
3773
3774         Moves window.open logic into the generic bindings.
3775
3776         This patch moves window.open logic from V8 into the generic
3777         bindings so it could be shared with JSC. JSC sharing is not in
3778         this patch. This patch is of the same flavor/intent as 33201.
3779
3780         https://bugs.webkit.org/show_bug.cgi?id=41392
3781
3782         * bindings/generic/BindingDOMWindow.h:
3783         (WebCore::::createWindow):
3784         (WebCore::::open):
3785         (WebCore::::completeURL):
3786         * bindings/generic/BindingSecurity.h:
3787         (WebCore::::allowPopUp):
3788         (WebCore::::shouldAllowNavigation):
3789         * bindings/v8/V8Binding.h:
3790         (WebCore::V8Binding::emptyScriptValue):
3791         * bindings/v8/V8Utilities.cpp:
3792         (WebCore::transferHiddenDependency):
3793         (WebCore::processingUserGesture):
3794         (WebCore::shouldAllowNavigation):
3795         (WebCore::completeURL):
3796         * bindings/v8/custom/V8ArrayBufferCustom.cpp:
3797         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3798         (WebCore::V8DOMWindow::showModalDialogCallback):
3799         (WebCore::V8DOMWindow::openCallback):
3800         * bindings/v8/specialization/V8BindingState.cpp:
3801         (WebCore::::getActiveFrame):
3802         (WebCore::::getFirstFrame):
3803         (WebCore::::processingUserGesture):
3804         * bindings/v8/specialization/V8BindingState.h:
3805         (WebCore::):
3806
3807 2010-08-09  Marcus Bulach  <bulach@chromium.org>
3808
3809         Reviewed by Darin Adler.
3810
3811         Fixes xcode project issues after r64828:
3812         https://bugs.webkit.org/show_bug.cgi?id=43638
3813
3814         Build fix, no tests (sort-Xcode-project-file should not throw any warnings).
3815
3816         * WebCore.xcodeproj/project.pbxproj: fixed IDBCursor and related IndexedDB files, and re-ran sort-Xcode-project-file.
3817
3818 2010-08-09  Ilya Tikhonovsky  <loislo@chromium.org>
3819
3820         Reviewed by Pavel Feldman.
3821
3822         Web Inspector: Remove callId argument from all backend agents' methods.
3823         https://bugs.webkit.org/show_bug.cgi?id=43723
3824
3825         * inspector/CodeGeneratorInspector.pm:
3826         * inspector/InspectorApplicationCacheAgent.cpp:
3827         (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
3828         * inspector/InspectorApplicationCacheAgent.h:
3829         * inspector/InspectorBackend.cpp:
3830         (WebCore::InspectorBackend::getProfilerLogLines):
3831         (WebCore::InspectorBackend::clearConsoleMessages):
3832         (WebCore::InspectorBackend::getDatabaseTableNames):
3833         * inspector/InspectorBackend.h:
3834         * inspector/InspectorController.cpp:
3835         (WebCore::InspectorController::getCookies):
3836         (WebCore::InspectorController::getDOMStorageEntries):
3837         (WebCore::InspectorController::setDOMStorageItem):
3838         (WebCore::InspectorController::removeDOMStorageItem):
3839         (WebCore::InspectorController::getProfileHeaders):
3840         (WebCore::InspectorController::getProfile):
3841         (WebCore::InspectorController::getResourceContent):
3842         * inspector/InspectorController.h:
3843         * inspector/InspectorDOMAgent.cpp:
3844         (WebCore::InspectorDOMAgent::getChildNodes):
3845         (WebCore::InspectorDOMAgent::setAttribute):
3846         (WebCore::InspectorDOMAgent::removeAttribute):
3847         (WebCore::InspectorDOMAgent::removeNode):
3848         (WebCore::InspectorDOMAgent::changeTagName):
3849         (WebCore::InspectorDOMAgent::getOuterHTML):
3850         (WebCore::InspectorDOMAgent::setOuterHTML):
3851         (WebCore::InspectorDOMAgent::setTextNodeValue):
3852         (WebCore::InspectorDOMAgent::getEventListenersForNode):
3853         (WebCore::InspectorDOMAgent::getStyles):
3854         (WebCore::InspectorDOMAgent::getAllStyles):
3855         (WebCore::InspectorDOMAgent::getStyleSheet):
3856         (WebCore::InspectorDOMAgent::getRuleRanges):
3857         (WebCore::InspectorDOMAgent::getInlineStyle):
3858         (WebCore::InspectorDOMAgent::getComputedStyle):
3859         (WebCore::InspectorDOMAgent::applyStyleText):
3860         (WebCore::InspectorDOMAgent::setStyleText):
3861         (WebCore::InspectorDOMAgent::setStyleProperty):
3862         (WebCore::InspectorDOMAgent::toggleStyleEnabled):
3863         (WebCore::InspectorDOMAgent::setRuleSelector):
3864         (WebCore::InspectorDOMAgent::addRule):
3865         (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
3866         * inspector/InspectorDOMAgent.h:
3867         * inspector/InspectorDebuggerAgent.cpp:
3868         (WebCore::InspectorDebuggerAgent::setBreakpoint):
3869         (WebCore::InspectorDebuggerAgent::editScriptSource):
3870         (WebCore::InspectorDebuggerAgent::getScriptSource):
3871         * inspector/InspectorDebuggerAgent.h:
3872
3873 2010-08-09  François Sausset  <sausset@gmail.com>
3874
3875         Reviewed by Kenneth Rohde Christiansen.
3876
3877         Take into account style color to draw MathML mroot radical.
3878         https://bugs.webkit.org/show_bug.cgi?id=43628
3879
3880         Test: mathml/presentation/roots.xhtml
3881
3882         * mathml/RenderMathMLRoot.cpp:
3883         (WebCore::RenderMathMLRoot::paint):
3884
3885 2010-08-09  François Sausset  <sausset@gmail.com>
3886
3887         Reviewed by Kenneth Rohde Christiansen.
3888
3889         Implement MathML deprecated style attributes
3890         https://bugs.webkit.org/show_bug.cgi?id=43503
3891
3892         Test: mathml/presentation/attributes.xhtml
3893
3894         * mathml/MathMLElement.cpp:
3895         (WebCore::MathMLElement::mapToEntry):
3896         (WebCore::MathMLElement::parseMappedAttribute):
3897         * mathml/mathattrs.in:
3898
3899 2010-08-09  Ilya Tikhonovsky  <loislo@chromium.org>
3900
3901         Reviewed by Yury Semikhatsky.
3902
3903         Web Inspector: remove unnecessary did* methods from RemoteInspectorFrontend.
3904         https://bugs.webkit.org/show_bug.cgi?id=43721
3905
3906         * inspector/CodeGeneratorInspector.pm:
3907
3908 2010-08-09  Andreas Kling  <andreas.kling@nokia.com>
3909
3910         Reviewed by Antonio Gomes.
3911
3912         Canvas: Fast-path for setting the already set color with setStrokeColor() and setFillColor()
3913         https://bugs.webkit.org/show_bug.cgi?id=43718
3914
3915         Avoid creating CanvasStyle objects when setting the same fill or stroke color using
3916         the WebKit-specific setters of CanvasRenderingContext2D.
3917
3918         * html/canvas/CanvasRenderingContext2D.cpp:
3919         (WebCore::CanvasRenderingContext2D::setStrokeColor):
3920         (WebCore::CanvasRenderingContext2D::setFillColor):
3921         * html/canvas/CanvasStyle.cpp:
3922         (WebCore::CanvasStyle::isEquivalentColor):
3923         * html/canvas/CanvasStyle.h: Added CanvasStyle::isEquivalentColor() overloads
3924         for RGBA and CMYKA channel values.
3925
3926 2010-08-09  Pavel Feldman  <pfeldman@chromium.org>
3927
3928         Reviewed by Yury Semikhatsky.
3929
3930         Web Inspector: restore original last panel restore logic.
3931
3932         https://bugs.webkit.org/show_bug.cgi?id=43719
3933
3934         * inspector/front-end/inspector.js:
3935         (WebInspector.showPanel):
3936
3937 2010-08-09  Dumitru Daniliuc  <dumi@chromium.org>
3938
3939         Unreviewed, fixing the builds after r64967.
3940
3941         * CMakeLists.txt:
3942         * GNUmakefile.am:
3943         * WebCore.pro:
3944         * WebCore.vcproj/WebCore.vcproj:
3945
3946 2010-05-27  MORITA Hajime  <morrita@google.com>
3947
3948         Reviewed by Ojan Vafai.
3949
3950         <http://webkit.org/b/36359>
3951         Double clicking page's last editable inline element causes assertion failure.
3952         <http://webkit.org/b/36360>
3953         Double clicking page's first editable inline element cannot select a word. 
3954
3955         nextBoundary() and previousBoundary() assumed that editable
3956         boundaries are on block-level elements, But it can appear on
3957         inline-level elements. So we start boundary look-up from the given
3958         node, instead of the containingBlock of the given node.
3959         Also, added TextIteratorEndsAtEditingBoundary to
3960         BackwardsCharacterIterator, otherwise, the VisiblePosition
3961         returned by BackwardsCharacterIterator might cross an editing
3962         boundary.
3963
3964         Test: editing/selection/doubleclick-inline-first-last-contenteditable.html        
3965
3966         * dom/Position.cpp:
3967         (WebCore::Position::parentEditingBoundary): Added.
3968         * dom/Position.h:
3969         * editing/TextIterator.cpp:
3970         (WebCore::TextIterator::TextIterator):
3971         (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
3972         (WebCore::SimplifiedBackwardsTextIterator::advance):
3973         (WebCore::SimplifiedBackwardsTextIterator::crossesEditingBoundary): Added.
3974         (WebCore::SimplifiedBackwardsTextIterator::setCurrentNode): Added.
3975         (WebCore::SimplifiedBackwardsTextIterator::clearCurrentNode): Added.
3976         (WebCore::BackwardsCharacterIterator::BackwardsCharacterIterator):
3977         * editing/TextIterator.h:
3978         (WebCore::):
3979         * editing/visible_units.cpp:
3980         (WebCore::previousBoundary):
3981         (WebCore::nextBoundary):
3982
3983 2010-08-09  Ilya Tikhonovsky  <loislo@chromium.org>
3984
3985         Reviewed by Yury Semikhatsky.
3986
3987         WebInspector: Current implementation of showPanel is a bit complicated.
3988         It is using internal enum for all the panels and this is the problem because
3989         we should change a lot of code for a new panel.
3990         https://bugs.webkit.org/show_bug.cgi?id=43711
3991
3992         * WebCore.exp.in:
3993         * inspector/Inspector.idl:
3994         * inspector/InspectorController.cpp:
3995         (WebCore::InspectorController::InspectorController):
3996         (WebCore::InspectorController::storeLastActivePanel):
3997         (WebCore::InspectorController::connectFrontend):
3998         (WebCore::InspectorController::showPanel):
3999         (WebCore::InspectorController::disconnectFrontend):
4000         * inspector/InspectorController.h:
4001         * inspector/InspectorFrontend.cpp:
4002         * inspector/InspectorFrontend.h:
4003         * inspector/front-end/ElementsTreeOutline.js:
4004         (WebInspector.ElementsTreeElement.prototype.selectOnMouseDown):
4005         * inspector/front-end/ExtensionServer.js:
4006         (WebInspector.ExtensionServer.prototype._onRevealAndSelectResource):
4007         * inspector/front-end/inspector.js:
4008         (WebInspector.documentClick.followLink):
4009         (WebInspector.documentClick):
4010         (WebInspector.toggleSearchingForNode):
4011         (WebInspector.showPanel):
4012         (WebInspector.selectDatabase):
4013         (WebInspector.selectDOMStorage):
4014         (WebInspector.showProfileForURL):
4015
4016 2010-08-09  Ariya Hidayat  <ariya@sencha.com>
4017
4018         Reviewed by Kenneth Rohde Christiansen.
4019
4020         [Qt] GraphicsContext::clipOut(IntRect) ignores the transformation matrix.
4021         https://bugs.webkit.org/show_bug.cgi?id=43705
4022
4023         Just like clipOut(Path), which is taken care in r60796 already,
4024         clipOut(IntRect) must transform the window bounding box properly.
4025
4026         * platform/graphics/qt/GraphicsContextQt.cpp:
4027         (WebCore::GraphicsContext::clipOut):
4028
4029 2010-08-09  François Sausset  <sausset@gmail.com>
4030
4031         Reviewed by Kenneth Rohde Christiansen.
4032
4033         Implement mfenced MathML element
4034         Update stretchy operator code to take into account new brackets and to tune layout parameters
4035         https://bugs.webkit.org/show_bug.cgi?id=42472
4036
4037         Test: mathml/presentation/fenced.xhtml
4038
4039         * WebCore.xcodeproj/project.pbxproj:
4040         * mathml/MathMLInlineContainerElement.cpp:
4041         (WebCore::MathMLInlineContainerElement::MathMLInlineContainerElement):
4042         (WebCore::MathMLInlineContainerElement::createRenderer):
4043         * mathml/RenderMathMLFenced.cpp: Added.
4044         (WebCore::RenderMathMLFenced::RenderMathMLFenced):
4045         (WebCore::RenderMathMLFenced::updateFromElement):
4046         (WebCore::RenderMathMLFenced::makeOperatorStyle):
4047         (WebCore::RenderMathMLFenced::makeFences):
4048         (WebCore::RenderMathMLFenced::addChild):
4049         (WebCore::RenderMathMLFenced::layout):
4050         * mathml/RenderMathMLFenced.h: Added.
4051         * mathml/RenderMathMLOperator.cpp:
4052         (WebCore::RenderMathMLOperator::RenderMathMLOperator):
4053         (WebCore::RenderMathMLOperator::stretchToHeight):
4054         (WebCore::):
4055         (WebCore::RenderMathMLOperator::updateFromElement):
4056         (WebCore::RenderMathMLOperator::createStackableStyle):
4057         (WebCore::RenderMathMLOperator::createGlyph):
4058
4059 2010-08-08  ryuan choi  <ryuan.choi@samsung.com>
4060
4061         Reviewed by Darin Adler.
4062
4063         REGRESSION(64898,64949) build break because of wrong filename
4064         https://bugs.webkit.org/show_bug.cgi?id=43701
4065
4066         add SVGPathStringSource.cpp and modify SVGPathSourceString.cpp to
4067         SVGPathStringSource.cpp
4068
4069         simple fixing build break, so No new tests.
4070
4071         * CMakeLists.txt:
4072
4073 2010-08-08  Ariya Hidayat  <ariya@sencha.com>
4074
4075         Reviewed by Antonio Gomes.
4076
4077         Inconsistent Qt version checks
4078         https://bugs.webkit.org/show_bug.cgi?id=43695
4079
4080         Use QT_VERSION_CHECK macro instead of encoded hex.
4081
4082         * platform/graphics/qt/ImageBufferQt.cpp:
4083         (WebCore::getImageData):
4084         * platform/network/qt/NetworkStateNotifierPrivate.h:
4085         * platform/network/qt/NetworkStateNotifierQt.cpp:
4086         * platform/network/qt/QNetworkReplyHandler.cpp:
4087         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
4088         (WebCore::QNetworkReplyHandler::start):
4089         * platform/qt/RenderThemeQt.cpp:
4090         (WebCore::RenderThemeQt::paintMediaSliderTrack):
4091
4092 2010-08-08  Csaba Osztrogonác  <ossy@webkit.org>
4093
4094         Reviewed by Antonio Gomes.
4095
4096         Web Inspector: Fix warning in WebCore/inspector/InspectorDebuggerAgent.cpp
4097         https://bugs.webkit.org/show_bug.cgi?id=43698
4098
4099         * inspector/InspectorDebuggerAgent.cpp:
4100         (WebCore::InspectorDebuggerAgent::editScriptSource): Add suggested parentheses.
4101
4102 2010-08-05  MORITA Hajime  <morrita@google.com>
4103
4104         Reviewed by Tony Chang.
4105
4106         Pasting should fire textInput event.
4107         https://bugs.webkit.org/show_bug.cgi?id=42958
4108
4109         - Extended TextEvents to hold paste-specific parameters
4110         - Did fire TextEvents at where we originally did immediate pastes.
4111         - Factored out TextEvent handling from EventHandler::defaultTextInputEventHandler()
4112           to Editor::handleTextEvent() because it's solely done by the editor.
4113         - move actual pasting logic to Editor::handleTextEvent() 
4114
4115         Test: editing/pasteboard/paste-text-events.html
4116
4117         * WebCore.exp.in:
4118         * dom/TextEvent.cpp:
4119         (WebCore::TextEvent::create):
4120         (WebCore::TextEvent::createForPlainTextPaste):
4121         (WebCore::TextEvent::createForFragmentPaste):
4122         (WebCore::TextEvent::TextEvent):
4123         * dom/TextEvent.h:
4124         (WebCore::TextEvent::isPaste):
4125         (WebCore::TextEvent::shouldSmartReplace):
4126         (WebCore::TextEvent::shouldMatchStyle):
4127         (WebCore::TextEvent::pastingFragment):
4128         * editing/Editor.cpp:
4129         (WebCore::Editor::handleTextEvent):
4130         (WebCore::Editor::pasteAsPlainText):
4131         (WebCore::Editor::pasteAsFragment):
4132         (WebCore::Editor::pasteAsPlainTextWithPasteboard):
4133         (WebCore::Editor::pasteWithPasteboard):
4134         (WebCore::Editor::dispatchCPPEvent):
4135         (WebCore::Editor::findEventTargetFromSelection):
4136         * editing/Editor.h:
4137         * page/EventHandler.cpp:
4138         (WebCore::EventHandler::defaultTextInputEventHandler):
4139
4140 2010-08-08  Kevin Ollivier  <kevino@theolliviers.com>
4141
4142         [wx] Build fix, add member needed to compile Mac-specific font code.
4143
4144         * platform/graphics/wx/FontPlatformData.h:
4145         (WebCore::FontPlatformData::ctFont):
4146
4147 2010-08-08  Csaba Osztrogonác  <ossy@webkit.org>
4148
4149         Reviewed by Eric Seidel.
4150
4151         [Qt] Fix warnings in WebCore/platform/WindowsKeyboardCodes.h
4152         https://bugs.webkit.org/show_bug.cgi?id=43360
4153
4154         * platform/WindowsKeyboardCodes.h: Undef macros which are also defined in MinGW/include/winuser.h to aviod gcc redefinition warning
4155
4156 2010-08-08  James Robinson  <jamesr@chromium.org>
4157
4158         Reviewed by Adam Barth.
4159
4160         Set the shouldLazyAttach flag to true in the tree builder's adoption agency algorithm
4161         https://bugs.webkit.org/show_bug.cgi?id=43610
4162
4163         Sets the shouldLazyAttach flag to true for appendChild() calls inside the HTML tree
4164         builder's adoption agency flag.  This is a speedup assuming that nodes subjected
4165         to the adoption agency are likely to be frequently reparented, and thus it is better
4166         to delay creating the render tree until later (when hopefully the DOM is finalized).
4167
4168         On my mac pro this speeds up fast/parser/residual-style-hang.html by 2.6X.
4169
4170         * html/HTMLTreeBuilder.cpp:
4171         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
4172
4173 2010-08-08  Nikita Vasilyev  <me@elv1s.ru>
4174
4175         Reviewed by Pavel Feldman.
4176
4177         Web Inspector: speed-up Element.prototype.removeChildren
4178         https://bugs.webkit.org/show_bug.cgi?id=43687
4179
4180         * inspector/front-end/utilities.js:
4181         (Element.prototype.removeChildren):
4182
4183 2010-08-08  Ilya Tikhonovsky  <loislo@chromium.org>
4184
4185         Reviewed by Pavel Feldman.
4186
4187         WebInspector: remove hand written InspectorFrontend from almost all places.
4188         https://bugs.webkit.org/show_bug.cgi?id=43630
4189
4190         * inspector/ConsoleMessage.cpp:
4191         * inspector/InjectedScriptHost.cpp:
4192         (WebCore::InjectedScriptHost::pushNodePathToFrontend):
4193         * inspector/InjectedScriptHost.h:
4194         * inspector/Inspector.idl:
4195         * inspector/InspectorBackend.cpp:
4196         * inspector/InspectorController.cpp:
4197         (WebCore::InspectorController::inspectedPageDestroyed):
4198         (WebCore::InspectorController::inspect):
4199         (WebCore::InspectorController::focusNode):
4200         (WebCore::InspectorController::windowVisible):
4201         (WebCore::InspectorController::addConsoleMessage):
4202         (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
4203         (WebCore::InspectorController::setSearchingForNode):
4204         (WebCore::InspectorController::setMonitoringXHR):
4205         (WebCore::InspectorController::connectFrontend):
4206         (WebCore::InspectorController::show):
4207         (WebCore::InspectorController::showPanel):
4208         (WebCore::InspectorController::close):
4209         (WebCore::InspectorController::disconnectFrontend):
4210         (WebCore::InspectorController::populateScriptObjects):
4211         (WebCore::InspectorController::didCommitLoad):
4212         (WebCore::InspectorController::enableResourceTracking):
4213         (WebCore::InspectorController::disableResourceTracking):
4214         (WebCore::InspectorController::startTimelineProfiler):
4215         (WebCore::InspectorController::stopTimelineProfiler):
4216         (WebCore::InspectorController::postWorkerNotificationToFrontend):
4217         (WebCore::InspectorController::didCreateWorker):
4218         (WebCore::InspectorController::didDestroyWorker):
4219         (WebCore::InspectorController::toggleRecordButton):
4220         (WebCore::InspectorController::enableProfiler):
4221         (WebCore::InspectorController::disableProfiler):
4222         (WebCore::InspectorController::enableDebuggerFromFrontend):
4223         (WebCore::InspectorController::enableDebugger):
4224         (WebCore::InspectorController::disableDebugger):
4225         (WebCore::InspectorController::evaluateForTestInFrontend):
4226         * inspector/InspectorFrontend.cpp:
4227         * inspector/InspectorFrontend.h:
4228         * inspector/InspectorFrontendClientLocal.cpp:
4229         * inspector/TimelineRecordFactory.cpp:
4230
4231 2010-08-08  Dan Bernstein  <mitz@apple.com>