2010-08-15 Ryuan Choi <ryuan.choi@samsung.com>
[WebKit-https.git] / WebCore / ChangeLog
1 2010-08-15  Ryuan Choi  <ryuan.choi@samsung.com>
2
3         Reviewed by Antonio Gomes.
4
5         [EFL] Build error on r65378
6         https://bugs.webkit.org/show_bug.cgi?id=44019
7
8         Change build script for HTMLEntityNames.json instead of HTMLEntityNames.gperf
9
10         * CMakeLists.txt:
11
12 2010-08-15  Kevin Ollivier  <kevino@theolliviers.com>
13
14         [wx] Build fix, add missing header.
15
16         * platform/graphics/WOFFFileFormat.cpp:
17
18 2010-08-15  Kevin Ollivier  <kevino@theolliviers.com>
19
20         [wx] Build fix, don't build PluginDataNone.cpp even on GTK as PluginDataWx.cpp compiles.
21
22         * wscript:
23
24 2010-08-15  Adam Barth  <abarth@webkit.org>
25
26         Reviewed by Eric Seidel.
27
28         document.write() doesn't flush plain text
29         https://bugs.webkit.org/show_bug.cgi?id=8961
30
31         Originally I thought we should buffer the character tokens until we've
32         reached the end of the input stream, but that's not how the spec
33         handles things (it emits the character tokens one-by-one).
34
35         Tests: fast/tokenizer/flush-characters-in-document-write-evil.html
36                fast/tokenizer/flush-characters-in-document-write.html
37
38         * html/HTMLTokenizer.cpp:
39         (WebCore::HTMLTokenizer::emitEndOfFile):
40         (WebCore::HTMLTokenizer::nextToken):
41         (WebCore::HTMLTokenizer::haveBufferedCharacterToken):
42             - Renamed this function now that it's simplier.
43         * html/HTMLTokenizer.h:
44
45 2010-08-15  Adam Barth  <abarth@webkit.org>
46
47         Reviewed by Eric Seidel.
48
49         Don't try to replace a non-existent document after executing JavaScript URLs
50         https://bugs.webkit.org/show_bug.cgi?id=44024
51
52         Synchronous JavaScript execution is evil.  Previously, the frame was
53         deleted after executing the JavaScript URL, so we'd get confused when
54         we tried to replace its document.
55
56         Test: fast/frames/javascript-url-for-deleted-frame.html
57
58         * bindings/ScriptControllerBase.cpp:
59         (WebCore::ScriptController::executeIfJavaScriptURL):
60
61 2010-08-14  Sheriff Bot  <webkit.review.bot@gmail.com>
62
63         Unreviewed, rolling out r65374.
64         http://trac.webkit.org/changeset/65374
65         https://bugs.webkit.org/show_bug.cgi?id=44018
66
67         broke a myriad of svg tests (Requested by kling on #webkit).
68
69         * platform/graphics/qt/PathQt.cpp:
70         (WebCore::Path::strokeBoundingRect):
71
72 2010-08-14  Eric Seidel  <eric@webkit.org>
73
74         Reviewed by Adam Barth.
75
76         XSLTProcessor.transformToFragment should not pass contextElement to html/xml document parsers
77         https://bugs.webkit.org/show_bug.cgi?id=44017
78
79         This fixes two tests which otherwise would fail when the
80         HTML5 TreeBuilder is enabled for fragment parsing.
81
82         This revealed a bug in HTMLTreeBuilder() which I fixed as well.
83
84         * html/HTMLTreeBuilder.cpp:
85         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
86         * xml/XSLTProcessor.cpp:
87         (WebCore::createFragmentFromSource):
88
89 2010-08-14  Andreas Kling  <andreas.kling@nokia.com>
90
91         Reviewed by Ariya Hidayat.
92
93         [Qt] Path: Fast approximation of stroke bounding rects
94         https://bugs.webkit.org/show_bug.cgi?id=44014
95
96         * platform/graphics/qt/PathQt.cpp:
97         (WebCore::Path::strokeBoundingRect): Use QPainterPath::controlPointRect()
98         to calculate a slightly larger bounding rect in a fraction of the time.
99
100 2010-08-14  Eric Seidel  <eric@webkit.org>
101
102         Reviewed by Adam Barth.
103
104         Move innerHTML off of Range::createContextualFragment
105         https://bugs.webkit.org/show_bug.cgi?id=44011
106
107         This makes all the editing tests stop failing under the
108         HTML5 TreeBuilder.
109
110         In a previous patch Adam disabled some of the (wrong) code
111         in createContextualFragment when in html5 treebuilder mode.
112         The problem is that the editing code depends on
113         createContextualFragment (as well as the Range DOM API),
114         so we have to leave this code in until we can figure
115         out if it's right or wrong behavior for the Range API.
116
117         This patch moves innerHTML/outerHTML off of using
118         createContextualFragment and instead calls
119         DocumentFragment::parseHTML directly (which is much simpler).
120
121         I expect Adam and I will end up turning on the HTML5 TreeBuilder
122         in the next couple days, and most of the if branches I added
123         here will go away for good.
124
125         I renamed Element::createContextualFragment to
126         deprecatedCreateContextualFragment, to indicate that it's a
127         dead API.  The editing code should move off of it and consider
128         using DocumentFragment::parseHTML instead.
129
130         * dom/Element.cpp:
131         (WebCore::Element::deprecatedCreateContextualFragment):
132         * dom/Element.h:
133         * dom/Range.cpp:
134         (WebCore::Range::createContextualFragment):
135         * editing/markup.cpp:
136         (WebCore::createFragmentFromMarkup):
137         * html/HTMLElement.cpp:
138         (WebCore::useLegacyTreeBuilder):
139         (WebCore::HTMLElement::deprecatedCreateContextualFragment):
140         (WebCore::HTMLElement::setInnerHTML):
141         (WebCore::HTMLElement::setOuterHTML):
142         * html/HTMLElement.h:
143
144 2010-08-14  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
145
146         Reviewed by Antonio Gomes.
147
148         [Qt] Fix compilation with QT_NO_LINEEDIT
149         https://bugs.webkit.org/show_bug.cgi?id=38324
150
151         * bridge/qt/qt_runtime.cpp:
152         (JSC::Bindings::convertValueToQVariant):
153         (JSC::Bindings::convertQVariantToValue):
154
155 2010-08-14  Rob Buis  <rwlbuis@gmail.com>
156
157         Reviewed by Dirk Schulze.
158
159         IE SVG empty path test fails
160         https://bugs.webkit.org/show_bug.cgi?id=44008
161
162         Change createLine to allow creating zero-length lines. This makes it possible
163         to have markers and line-caps applied to zero-length lines.
164
165         Test: svg/custom/marker-empty-path.svg
166
167         * platform/graphics/Path.cpp:
168         (WebCore::Path::createLine):
169
170 2010-08-14  Patrick Gansterer  <paroga@paroga.com>
171
172         Reviewed by Kenneth Rohde Christiansen.
173
174         [CMake] Move SQL files into a IF (ENABLE_DATABASE) section
175         https://bugs.webkit.org/show_bug.cgi?id=43979
176
177         * CMakeLists.txt:
178
179 2010-08-14  Matthew Delaney  <mdelaney@apple.com>
180
181         Reviewed by Kenneth Rohde Christiansen.
182
183         Canvas is not reset when setting canvas.width
184         https://bugs.webkit.org/show_bug.cgi?id=43341
185
186         * html/HTMLCanvasElement.cpp:
187         (WebCore::HTMLCanvasElement::reset): Moved the call to
188         hasCreatedImageBuffer up *before* the call to setSurface since setSurface
189         sets hasCreatedImageBuffer to false every time.
190
191 2010-08-14  Patrick Gansterer  <paroga@paroga.com>
192
193         Reviewed by Kenneth Rohde Christiansen.
194
195         [CMake] Set target properties only if available
196         https://bugs.webkit.org/show_bug.cgi?id=43978
197
198         * CMakeLists.txt:
199
200 2010-08-14  Dirk Schulze  <krit@webkit.org>
201
202         Unreviewed sort of Xcode project file.
203
204         * WebCore.xcodeproj/project.pbxproj:
205
206 2010-08-14  Ariya Hidayat  <ariya@sencha.com>
207
208         Reviewed by Simon Hausmann and Kenneth Rohde Christiansen.
209
210         [Qt] Refactor shadow state handling in GraphicsContextQt
211         https://bugs.webkit.org/show_bug.cgi?id=44006
212
213         * platform/graphics/qt/GraphicsContextQt.cpp:
214         (WebCore::GraphicsContextPlatformPrivate::): Added shadow states as
215         member variables.
216         (WebCore::GraphicsContextPlatformPrivate::hasShadow): Convenient
217         function to check whether there is shadow or not.
218         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
219         (WebCore::GraphicsContext::drawRect): Use shadow states instead of
220         calling getShadow.
221         (WebCore::GraphicsContext::drawLine): ditto.
222         (WebCore::GraphicsContext::strokeArc): ditto.
223         (WebCore::GraphicsContext::drawConvexPolygon): ditto.
224         (WebCore::GraphicsContext::fillPath): ditto.
225         (WebCore::GraphicsContext::strokePath): ditto.
226         (WebCore::GraphicsContext::fillRect): Removes the use of helper function
227         drawBorderlessRectShadow as the code already becomes a lot simpler.
228         (WebCore::GraphicsContext::fillRoundedRect): Removes the use of helper
229         function drawFilledShadowPath as the code already becomes a lot simpler.
230         (WebCore::GraphicsContext::setPlatformShadow): Store shadow states
231         and find out the shadow type (complexity) for future use.
232         (WebCore::GraphicsContext::clearPlatformShadow): Reset shadow states.
233
234 2010-08-13  Adam Barth  <abarth@webkit.org>
235
236         Reviewed by Eric Seidel.
237
238         Rename some concepts in HTML entity search to be more self-documenting
239         https://bugs.webkit.org/show_bug.cgi?id=44004
240
241         Start and end are now first and last, which lets us use some better
242         names for the statics in HTMLEntityTable.
243
244         * html/HTMLEntityParser.cpp:
245         (WebCore::consumeHTMLEntity):
246         * html/HTMLEntitySearch.cpp:
247         (WebCore::HTMLEntitySearch::HTMLEntitySearch):
248         (WebCore::HTMLEntitySearch::findFirst):
249         (WebCore::HTMLEntitySearch::findLast):
250         (WebCore::HTMLEntitySearch::advance):
251         * html/HTMLEntitySearch.h:
252         (WebCore::HTMLEntitySearch::isEntityPrefix):
253         (WebCore::HTMLEntitySearch::mostRecentMatch):
254         (WebCore::HTMLEntitySearch::fail):
255         * html/HTMLEntityTable.h:
256
257 2010-08-13  Adam Barth  <abarth@webkit.org>
258
259         Fix ASSERT in XML entity parsing.  You can't advance the entity search
260         if you've already discovered that your string is not an entity.
261
262         * html/HTMLEntityParser.cpp:
263         (WebCore::decodeNamedEntity):
264
265 2010-08-13  Eric Seidel  <eric@webkit.org>
266
267         Unreviewed.  Attempt at fixing Chromium build.
268
269         Add support for MathML entities
270         https://bugs.webkit.org/show_bug.cgi?id=43949
271
272         * WebCore.gyp/WebCore.gyp:
273          - I have no clue if this is right or not.
274
275 2010-08-13  Eric Seidel  <eric@webkit.org>
276
277         Unreviewed.  Attempted build fix for Windows.
278
279         Add support for MathML entities
280         https://bugs.webkit.org/show_bug.cgi?id=43949
281
282         * DerivedSources.cpp:
283          - Add HTMLEntityTable.cpp
284
285 2010-08-09  Adam Barth  <abarth@webkit.org>
286
287         Reviewed by Eric Seidel.
288
289         Add support for MathML entities
290         https://bugs.webkit.org/show_bug.cgi?id=43949
291
292         Implementing the HTML5 entity parsing algorithm require refactoring how
293         we search for entity names.  Instead of using a perfect hash, we now
294         use a sorted list.  As we advance through the input, we walk down a
295         binary search of the table looking for an entity.
296
297         Using this data structure lets us keep track of whether the current
298         string is a prefix of an existing entity, which we need for the
299         algorithm.  In a future patch, I plan to add some indices to the
300         table, which should let us narrow down the range of interesting entries
301         more quickly.
302
303         The one nasty piece of the algorithm is if we walk too far down the
304         input and we need to back up to a previous match.  In this patch, we
305         accomplish this by rewinding the input and consuming a known number of
306         characters to resync the source.
307
308         * WebCore.xcodeproj/project.pbxproj:
309         * html/HTMLEntityParser.cpp:
310         (WebCore::consumeHTMLEntity):
311         * html/HTMLEntitySearch.cpp: Added.
312         (WebCore::):
313         (WebCore::HTMLEntitySearch::HTMLEntitySearch):
314         (WebCore::HTMLEntitySearch::compare):
315         (WebCore::HTMLEntitySearch::findStart):
316         (WebCore::HTMLEntitySearch::findEnd):
317         (WebCore::HTMLEntitySearch::advance):
318         * html/HTMLEntitySearch.h: Added.
319         (WebCore::HTMLEntitySearch::isEntityPrefix):
320         (WebCore::HTMLEntitySearch::currentValue):
321         (WebCore::HTMLEntitySearch::lastMatch):
322         (WebCore::HTMLEntitySearch::):
323         (WebCore::HTMLEntitySearch::fail):
324         * html/HTMLEntityTable.h: Added.
325         (WebCore::HTMLEntityTableEntry::lastCharacter):
326
327 2010-08-13  Tony Gentilcore  <tonyg@chromium.org>
328
329         Reviewed by Eric Seidel.
330
331         Refactor HTMLScriptRunner to allow deferred scripts to share code
332         https://bugs.webkit.org/show_bug.cgi?id=43736
333
334         No new tests because no functional change
335
336         * html/HTMLScriptRunner.cpp:
337         (WebCore::HTMLScriptRunner::sourceFromPendingScript): Make const to enforce the idea that it doesn't change m_parsingBlockingScript.
338         (WebCore::HTMLScriptRunner::executeParsingBlockingScript): Rename to make it clear this deals with the parsing blocking script and refactor to use executePendingScriptAndDispatchEvent.
339         (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent): Factored out of executePendingScript, this can be used for executing any external script.
340         (WebCore::HTMLScriptRunner::executeScript): This can be used for executing any inline or external script. ASSERTs moved to the two calling points.
341         (WebCore::HTMLScriptRunner::executeParsingBlockingScripts): Moved method.
342         (WebCore::HTMLScriptRunner::requestParsingBlockingScript): Factored out requestPendingScript.
343         (WebCore::HTMLScriptRunner::requestPendingScript): Factored out from reqeustParsingBlockingScript.
344         (WebCore::HTMLScriptRunner::runScript):
345         * html/HTMLScriptRunner.h:
346
347 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
348
349         Windows build fix.
350
351         * WebCore.xcodeproj/project.pbxproj:
352         * platform/win/SharedBufferWin.cpp:
353
354 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
355
356         Rubber stamped by Sam Weinig.
357         Switch String::/UString::ascii() to return a CString.
358
359         * WebCore.xcodeproj/project.pbxproj:
360         * bridge/c/c_class.cpp:
361         (JSC::Bindings::CClass::methodsNamed):
362         (JSC::Bindings::CClass::fieldNamed):
363         * bridge/jni/jsc/JNIBridgeJSC.cpp:
364         (JavaField::valueFromInstance):
365         (JavaField::setValueToInstance):
366         * bridge/jni/jsc/JavaInstanceJSC.cpp:
367         (JavaInstance::invokeMethod):
368         * bridge/objc/objc_class.mm:
369         (JSC::Bindings::ObjcClass::methodsNamed):
370         (JSC::Bindings::ObjcClass::fieldNamed):
371         * bridge/objc/objc_instance.mm:
372         (ObjcInstance::setValueOfUndefinedField):
373         (ObjcInstance::getValueOfUndefinedField):
374         * loader/icon/IconRecord.cpp:
375         * platform/sql/SQLiteDatabase.cpp:
376         * platform/sql/SQLiteStatement.cpp:
377         * storage/SQLStatement.cpp:
378
379 2010-08-13  Mihai Parparita  <mihaip@chromium.org>
380
381         Reviewed by Dimitri Glazkov.
382
383         Session history should skip over JS redirects
384         https://bugs.webkit.org/show_bug.cgi?id=42861
385         
386         Lock the back/forward list for location changes and form submits that
387         happen before the onload event fires that are not the result of user
388         gestures.
389         
390         Made form submission (at the ScheduledFormSubmission level) more similar
391         to ScheduledURLNavigation by having it call clientRedirected too, fixing
392         a long-standing FIXME.
393
394         Test: fast/history/gesture-before-onload-location-href.html,
395         fast/history/gesture-before-onload-form-submit.html and updated
396         expectations for http/tests/history tests that used to fail.
397
398         * loader/FormSubmission.cpp:
399         (WebCore::FormSubmission::requestURL): 
400         (WebCore::FormSubmission::populateFrameLoadRequest):
401         * loader/FormSubmission.h:
402         * loader/RedirectScheduler.cpp:
403         (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
404         (WebCore::ScheduledFormSubmission::fire):
405         (WebCore::ScheduledFormSubmission::didStartTimer):
406         (WebCore::ScheduledFormSubmission::didStopTimer):
407         (WebCore::RedirectScheduler::scheduleRedirect):
408         (WebCore::RedirectScheduler::mustLockBackForwardList):
409         (WebCore::RedirectScheduler::scheduleLocationChange):
410         (WebCore::RedirectScheduler::scheduleFormSubmission):
411         * loader/RedirectScheduler.h:
412
413 2010-08-13  Leandro Pereira  <leandro@profusion.mobi>
414
415         [EFL] Unreviewed build fix.
416         These changes were supposed to be landed on r65319, but due to some
417         svn-apply/commit-queue bug it wasn't fully applied. A bug was filed
418         by Patrick Gansterer (author of the changes in this commit):
419         https://bugs.webkit.org/show_bug.cgi?id=43981
420
421         * CMakeLists.txt: Update calls to GENERATE_GPERF and
422         GENERATE_GRAMMAR macros.
423
424 2010-08-13  Chris Fleizach  <cfleizach@apple.com>
425
426         AX: isNativeCheckbox does not work as advertised
427         https://bugs.webkit.org/show_bug.cgi?id=43872
428
429         Re-adding this patch after it was erroneously rolled out.
430
431         Test: platform/mac/accessibility/native-vs-nonnative-checkboxes.html
432
433         * accessibility/AccessibilityRenderObject.cpp:
434         (WebCore::AccessibilityRenderObject::isInputImage):
435         (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
436         * dom/InputElement.h:
437         * html/HTMLInputElement.h:
438         (WebCore::HTMLInputElement::isCheckbox):
439
440 2010-08-13  Sheriff Bot  <webkit.review.bot@gmail.com>
441
442         Unreviewed, rolling out r65331.
443         http://trac.webkit.org/changeset/65331
444         https://bugs.webkit.org/show_bug.cgi?id=43980
445
446         This patch breaks some shadow tests on Qt Linux release
447         (Requested by ariya on #webkit).
448
449         * platform/graphics/qt/GraphicsContextQt.cpp:
450         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
451         (WebCore::GraphicsContext::drawRect):
452         (WebCore::GraphicsContext::drawLine):
453         (WebCore::GraphicsContext::strokeArc):
454         (WebCore::GraphicsContext::drawConvexPolygon):
455         (WebCore::drawFilledShadowPath):
456         (WebCore::GraphicsContext::fillPath):
457         (WebCore::GraphicsContext::strokePath):
458         (WebCore::drawBorderlessRectShadow):
459         (WebCore::GraphicsContext::fillRect):
460         (WebCore::GraphicsContext::fillRoundedRect):
461         (WebCore::GraphicsContext::setPlatformShadow):
462         (WebCore::GraphicsContext::clearPlatformShadow):
463
464 2010-08-13  Kinuko Yasuda  <kinuko@chromium.org>
465
466         Reviewed by David Levin.
467
468         Update run-bindings-tests expectations
469         https://bugs.webkit.org/show_bug.cgi?id=43944
470
471         The results have become out of sync after changeset 64552 and 65269.
472
473         Test: WebKitTools/Scripts/run-bindings-tests
474
475         * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
476         (webkit_dom_test_callback_callback_with_class1param):
477         (webkit_dom_test_callback_callback_with_class2param):
478         (webkit_dom_test_callback_callback_with_non_bool_return_type):
479         * bindings/scripts/test/GObject/WebKitDOMTestCallback.h:
480         * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
481         (webkit_dom_test_obj_void_method_with_args):
482         (webkit_dom_test_obj_int_method_with_args):
483         (webkit_dom_test_obj_obj_method):
484         (webkit_dom_test_obj_obj_method_with_args):
485         (webkit_dom_test_obj_method_that_requires_all_args):
486         (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
487         (webkit_dom_test_obj_serialized_value):
488         (webkit_dom_test_obj_idb_key):
489         (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture):
490         (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad):
491         (webkit_dom_test_obj_with_script_state_obj):
492         (webkit_dom_test_obj_with_script_state_obj_exception):
493         (webkit_dom_test_obj_get_read_only_string_attr):
494         (webkit_dom_test_obj_get_read_only_test_obj_attr):
495         (webkit_dom_test_obj_get_string_attr):
496         (webkit_dom_test_obj_set_string_attr):
497         (webkit_dom_test_obj_get_test_obj_attr):
498         (webkit_dom_test_obj_set_test_obj_attr):
499         (webkit_dom_test_obj_get_xml_obj_attr):
500         (webkit_dom_test_obj_set_xml_obj_attr):
501         (webkit_dom_test_obj_get_reflected_string_attr):
502         (webkit_dom_test_obj_set_reflected_string_attr):
503         (webkit_dom_test_obj_get_reflected_url_attr):
504         (webkit_dom_test_obj_set_reflected_url_attr):
505         (webkit_dom_test_obj_get_reflected_non_empty_url_attr):
506         (webkit_dom_test_obj_set_reflected_non_empty_url_attr):
507         (webkit_dom_test_obj_get_reflected_custom_url_attr):
508         (webkit_dom_test_obj_set_reflected_custom_url_attr):
509         (webkit_dom_test_obj_get_reflected_custom_non_empty_url_attr):
510         (webkit_dom_test_obj_set_reflected_custom_non_empty_url_attr):
511         (webkit_dom_test_obj_get_string_attr_with_getter_exception):
512         (webkit_dom_test_obj_set_string_attr_with_getter_exception):
513         (webkit_dom_test_obj_get_string_attr_with_setter_exception):
514         (webkit_dom_test_obj_set_string_attr_with_setter_exception):
515         (webkit_dom_test_obj_get_script_string_attr):
516         (webkit_dom_test_obj_get_hash):
517         (webkit_dom_test_obj_class_init):
518         * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
519         * bindings/scripts/test/JS/JSTestObj.cpp:
520         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
521
522 2010-08-13  Ariya Hidayat  <ariya@sencha.com>
523
524         Reviewed by Simon Hausmann.
525
526         [Qt] Canvas and CSS: blur option in shadow not working
527         https://bugs.webkit.org/show_bug.cgi?id=34479
528
529         Patch 1: Refactor shadow states handling.
530
531         * platform/graphics/qt/GraphicsContextQt.cpp:
532         (WebCore::GraphicsContextPlatformPrivate::): Added shadow states as
533         member variables.
534         (WebCore::GraphicsContextPlatformPrivate::hasShadow): Convenient
535         function to check whether there is shadow or not.
536         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
537         (WebCore::GraphicsContext::drawRect): Use shadow states instead of
538         calling getShadow.
539         (WebCore::GraphicsContext::drawLine): ditto.
540         (WebCore::GraphicsContext::strokeArc): ditto.
541         (WebCore::GraphicsContext::drawConvexPolygon): ditto.
542         (WebCore::GraphicsContext::fillPath): ditto.
543         (WebCore::GraphicsContext::strokePath): ditto.
544         (WebCore::GraphicsContext::fillRect): Removes the use of helper function
545         drawBorderlessRectShadow as the code already becomes a lot simpler.
546         (WebCore::GraphicsContext::fillRoundedRect): Removes the use of helper
547         function drawFilledShadowPath as the code already becomes a lot simpler.
548         (WebCore::GraphicsContext::setPlatformShadow): Store shadow states
549         and find out the shadow type (complexity) for future use.
550         (WebCore::GraphicsContext::clearPlatformShadow): Reset shadow states.
551
552 2010-08-11  Zhenyao Mo  <zmo@google.com>
553
554         Reviewed by Dimitri Glazkov.
555
556         Regression in linking of programs
557         https://bugs.webkit.org/show_bug.cgi?id=43820
558
559         Shaders and programs shouldn't be deleted until their attachments are removed, therefore, we need to track the attach/detach/useProgram.
560
561         * html/canvas/WebGLObject.cpp: Track the object attachment count and whether it should really be deleted.
562         (WebCore::WebGLObject::WebGLObject):
563         (WebCore::WebGLObject::setObject):
564         (WebCore::WebGLObject::deleteObject):
565         * html/canvas/WebGLObject.h: Track the object attachment count and whether it should really be deleted.
566         (WebCore::WebGLObject::onAttached):
567         (WebCore::WebGLObject::onDetached):
568         (WebCore::WebGLObject::getAttachmentCount):
569         * html/canvas/WebGLProgram.cpp: Track the attached shaders.
570         (WebCore::WebGLProgram::WebGLProgram):
571         (WebCore::WebGLProgram::deleteObjectImpl):
572         (WebCore::WebGLProgram::getAttachedShader):
573         (WebCore::WebGLProgram::attachShader):
574         (WebCore::WebGLProgram::detachShader):
575         * html/canvas/WebGLProgram.h: Track the attached shaders.
576         * html/canvas/WebGLRenderingContext.cpp:
577         (WebCore::WebGLRenderingContext::attachShader): Track the attachment of a shader to a program.
578         (WebCore::WebGLRenderingContext::deleteProgram): Detach shaders.
579         (WebCore::WebGLRenderingContext::detachShader): Track the attachment of a shader to a program.
580         (WebCore::WebGLRenderingContext::validateWebGLObject): Also check if object == 0.
581         (WebCore::WebGLRenderingContext::linkProgram): Using the cached attached shaders instead of query from driver.
582         (WebCore::WebGLRenderingContext::useProgram): Track the attachment of a program to the current rendering pipeline.
583
584 2010-08-13  Steve Block  <steveblock@google.com>
585
586         Reviewed by Alexey Proskuryakov.
587
588         Geolocation activity started after frame has been disconnected can cause crash
589         https://bugs.webkit.org/show_bug.cgi?id=39879
590
591         New requests started after the Frame has been disconnected are ignored. We do
592         not invoke the error callback as this would allow buggy or malicious pages to
593         hose the CPU. Such a page could hold a reference to a Geolocation object from
594         a since closed Page and register new requests from the error callback to
595         create an infinite loop.
596
597         Tests: fast/dom/Geolocation/disconnected-frame-already.html
598
599         * page/Geolocation.cpp:
600
601 2010-08-13  Satish Sampath  <satish@chromium.org>
602
603         Reviewed by Jeremy Orlow.
604
605         Support for multiple speech enabled elements in same page.
606         https://bugs.webkit.org/show_bug.cgi?id=43922
607
608         * page/SpeechInput.cpp: Generates request ids as necessary when each speech enabled input element gets
609         created/destroyed and multiplexes the listener callbacks to the appropriate input element based on the request id.
610         (WebCore::SpeechInput::SpeechInput):
611         (WebCore::SpeechInput::~SpeechInput):
612         (WebCore::SpeechInput::registerListener):
613         (WebCore::SpeechInput::unregisterListener):
614         (WebCore::SpeechInput::didCompleteRecording):
615         (WebCore::SpeechInput::didCompleteRecognition):
616         (WebCore::SpeechInput::setRecognitionResult):
617         (WebCore::SpeechInput::startRecognition):
618         (WebCore::SpeechInput::stopRecording):
619         (WebCore::SpeechInput::cancelRecognition):
620         * page/SpeechInput.h:
621         * page/SpeechInputClient.h: Now requires a one time set for the WebCore::SpeechInputListener and
622         takes in a 'requestId' for all calls.
623         * page/SpeechInputListener.h: Now returns the above mentioned requestId in all the listener callbacks for
624         identifying which input element the event goes to.
625         * platform/mock/SpeechInputClientMock.cpp:
626         (WebCore::SpeechInputClientMock::SpeechInputClientMock):
627         (WebCore::SpeechInputClientMock::setListener):
628         (WebCore::SpeechInputClientMock::startRecognition):
629         (WebCore::SpeechInputClientMock::stopRecording):
630         (WebCore::SpeechInputClientMock::cancelRecognition):
631         (WebCore::SpeechInputClientMock::timerFired):
632         * platform/mock/SpeechInputClientMock.h:
633         * rendering/TextControlInnerElements.cpp:
634         (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
635         (WebCore::InputFieldSpeechButtonElement::~InputFieldSpeechButtonElement):
636         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
637         (WebCore::InputFieldSpeechButtonElement::speechInput):
638         (WebCore::InputFieldSpeechButtonElement::didCompleteRecording):
639         (WebCore::InputFieldSpeechButtonElement::didCompleteRecognition):
640         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
641         * rendering/TextControlInnerElements.h:
642
643 2010-08-13  Eric Carlson  <eric.carlson@apple.com>
644
645         Reviewed by David Kilzer.
646
647         HTMLMediaElement::prepareForLoad should cancel current plug-in proxy media player
648         https://bugs.webkit.org/show_bug.cgi?id=43923
649
650         * html/HTMLMediaElement.cpp:
651         (WebCore::HTMLMediaElement::prepareForLoad): Tell mediaPlayer to cancel the current load
652         if it already exists.
653
654 2010-08-12  Stephen White  <senorblanco@chromium.org>
655
656         Reviewed by David Levin.
657
658         [CHROMIUM] Use the BGRA format for canvas 2D accel upload and readbacks.
659         https://bugs.webkit.org/show_bug.cgi?id=43804
660
661         Use the BGRA format from GraphicsContext3D, if supported.  Also keep a
662         texture around for uploads, rather than re-creating it each time.
663
664         Covered by many layout tests (once we're running them).
665
666         * platform/graphics/chromium/GLES2Texture.cpp:
667         (WebCore::convertFormat):
668         Move convertFormat() ahead of texture creation, so we can check for
669         BGRA support.
670         (WebCore::GLES2Texture::create):
671         Use convertFormat() to determine the correct format and types to use;
672         use the returned format also for internalFormat, since GLES2 insists
673         they match.
674         * platform/graphics/skia/PlatformContextSkia.cpp:
675         (WebCore::PlatformContextSkia::setGraphicsContext3D):
676         Clear the upload texture when a new context is set.
677         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
678         Use m_uploadTexture instead of creating a new one each time.
679         (WebCore::PlatformContextSkia::readbackHardwareToSoftware):
680         When the context supports it, use the BGRA format for readbacks
681         instead of swizzling.
682         * platform/graphics/skia/PlatformContextSkia.h:
683         Add m_uploadTexture for consecutive uploads.
684
685 2010-08-13  Simon Hausmann  <simon.hausmann@nokia.com>
686
687         Reviewed by Ariya Hidayat.
688
689         [Qt] Clean up mobile feature useage
690         https://bugs.webkit.org/show_bug.cgi?id=43968
691
692         * WebCore.pro: Replaced use of Nokia specific platform scopes with concrete
693         feature names.
694
695 2010-08-13  Pavel Feldman  <pfeldman@chromium.org>
696
697         Reviewed by Yury Semikhatsky.
698
699         Web Inspector: rename InspectorValue::push and set to
700         push{Value|Object|Array} and set{...}.
701         https://bugs.webkit.org/show_bug.cgi?id=43966
702
703         * bindings/js/ScriptProfile.cpp:
704         (WebCore::buildInspectorObjectFor):
705         * bindings/js/ScriptValue.cpp:
706         (WebCore::jsToInspectorValue):
707         * bindings/v8/ScriptCallStack.cpp:
708         (WebCore::ScriptCallStack::stackTrace):
709         * bindings/v8/ScriptProfile.cpp:
710         (WebCore::buildInspectorObjectFor):
711         * bindings/v8/ScriptValue.cpp:
712         (WebCore::v8ToInspectorValue):
713         * inspector/CodeGeneratorInspector.pm:
714         * inspector/ConsoleMessage.cpp:
715         (WebCore::ConsoleMessage::addToFrontend):
716         * inspector/Inspector.idl:
717         * inspector/InspectorApplicationCacheAgent.cpp:
718         (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
719         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
720         * inspector/InspectorController.cpp:
721         (WebCore::InspectorController::buildArrayForCookies):
722         (WebCore::InspectorController::getDOMStorageEntries):
723         (WebCore::InspectorController::getProfileHeaders):
724         (WebCore::InspectorController::getProfile):
725         * inspector/InspectorDOMAgent.cpp:
726         (WebCore::InspectorDOMAgent::getEventListenersForNode):
727         (WebCore::InspectorDOMAgent::buildObjectForNode):
728         (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
729         (WebCore::InspectorDOMAgent::getStyles):
730         (WebCore::InspectorDOMAgent::getAllStyles):
731         (WebCore::InspectorDOMAgent::getRuleRanges):
732         (WebCore::InspectorDOMAgent::buildObjectForAttributeStyles):
733         (WebCore::InspectorDOMAgent::buildArrayForCSSRules):
734         (WebCore::InspectorDOMAgent::buildArrayForPseudoElements):
735         (WebCore::InspectorDOMAgent::buildObjectForStyle):
736         (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties):
737         (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties):
738         (WebCore::InspectorDOMAgent::buildObjectForStyleSheet):
739         (WebCore::InspectorDOMAgent::buildObjectForRule):
740         * inspector/InspectorDebuggerAgent.cpp:
741         (WebCore::InspectorDebuggerAgent::saveBreakpoints):
742         * inspector/InspectorResource.cpp:
743         (WebCore::InspectorResource::updateScriptObject):
744         * inspector/InspectorStorageAgent.cpp:
745         (WebCore::):
746         (WebCore::InspectorStorageAgent::executeSQL):
747         * inspector/InspectorTimelineAgent.cpp:
748         (WebCore::InspectorTimelineAgent::pushGCEventRecords):
749         (WebCore::InspectorTimelineAgent::didInstallTimer):
750         (WebCore::InspectorTimelineAgent::didRemoveTimer):
751         (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
752         (WebCore::InspectorTimelineAgent::willSendResourceRequest):
753         (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
754         (WebCore::InspectorTimelineAgent::didMarkTimeline):
755         (WebCore::InspectorTimelineAgent::addRecordToTimeline):
756         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
757         * inspector/InspectorValues.cpp:
758         (WebCore::):
759         (WebCore::InspectorValue::asValue):
760         (WebCore::InspectorValue::asObject):
761         (WebCore::InspectorValue::asArray):
762         (WebCore::InspectorObject::asObject):
763         (WebCore::InspectorArray::asArray):
764         * inspector/InspectorValues.h:
765         (WebCore::InspectorObject::setBool):
766         (WebCore::InspectorObject::setNumber):
767         (WebCore::InspectorObject::setString):
768         (WebCore::InspectorObject::setValue):
769         (WebCore::InspectorObject::setObject):
770         (WebCore::InspectorObject::setArray):
771         (WebCore::InspectorArray::pushValue):
772         (WebCore::InspectorArray::pushObject):
773         (WebCore::InspectorArray::pushArray):
774         * inspector/ScriptBreakpoint.cpp:
775         (WebCore::ScriptBreakpoint::inspectorObjectFromSourceBreakpoints):
776         * inspector/TimelineRecordFactory.cpp:
777         (WebCore::TimelineRecordFactory::createGenericRecord):
778
779 2010-08-13  Sheriff Bot  <webkit.review.bot@gmail.com>
780
781         Unreviewed, rolling out r65204.
782         http://trac.webkit.org/changeset/65204
783         https://bugs.webkit.org/show_bug.cgi?id=43965
784
785         Caused a lot of test crashes in Chromium (Requested by yutak
786         on #webkit).
787
788         * accessibility/AccessibilityRenderObject.cpp:
789         (WebCore::AccessibilityRenderObject::isInputImage):
790         (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
791         * dom/InputElement.h:
792         * html/HTMLInputElement.h:
793
794 2010-08-13  Anton Muhin  <antonm@chromium.org>
795
796         Reviewed by Nate Chapin.
797
798         Reapplying http://trac.webkit.org/changeset/65284 after fixed include.
799
800         [v8] Create callbacks for named access of elements from document object on fly.
801         https://bugs.webkit.org/show_bug.cgi?id=43725
802
803         That should speed up access to methods on document as there is no need to
804         consult with interceptor before invoking the method.
805
806         This reapplies http://trac.webkit.org/changeset/60670 reverted with
807         http://trac.webkit.org/changeset/63845.  The main difference is in treatment
808         of removed named elements: we don't remove an accessor any more, but leave it.
809         Therefore any accessor should be able to treat the case when there is no
810         expando property.
811
812         * bindings/scripts/CodeGeneratorV8.pm:
813         * bindings/v8/ScriptController.cpp:
814         (WebCore::ScriptController::namedItemAdded):
815         (WebCore::ScriptController::namedItemRemoved):
816         * bindings/v8/V8DOMWindowShell.cpp:
817         (WebCore::checkDocumentWrapper):
818         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
819         (WebCore::getter):
820         (WebCore::V8DOMWindowShell::namedItemAdded):
821         (WebCore::V8DOMWindowShell::namedItemRemoved):
822         * bindings/v8/V8DOMWindowShell.h:
823         * bindings/v8/V8DOMWrapper.cpp:
824         (WebCore::V8DOMWrapper::instantiateV8Object):
825         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
826         (WebCore::V8HTMLDocument::WrapInShadowObject):
827         (WebCore::V8HTMLDocument::GetNamedProperty):
828         (WebCore::V8HTMLDocument::allAccessorSetter):
829         (WebCore::toV8):
830         * html/HTMLDocument.cpp:
831         (WebCore::HTMLDocument::removeItemFromMap):
832
833 2010-08-13  Pavel Feldman  <pfeldman@chromium.org>
834
835         Reviewed by Yury Semikhatsky.
836
837         Web Inspector: remove openInInspectorWindow and evaluateAndStringify from InjectedScript.
838         https://bugs.webkit.org/show_bug.cgi?id=43854
839
840         * inspector/Inspector.idl:
841         * inspector/InspectorController.cpp:
842         (WebCore::InspectorController::openInInspectedWindow):
843         * inspector/InspectorController.h:
844         * inspector/front-end/ExtensionServer.js:
845         (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage.callback):
846         (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage):
847         * inspector/front-end/InjectedScript.js:
848         (injectedScriptConstructor):
849         * inspector/front-end/InjectedScriptAccess.js:
850         * inspector/front-end/InspectorBackendStub.js:
851         (WebInspector.InspectorBackendStub):
852         * inspector/front-end/ResourcesPanel.js:
853         (WebInspector.ResourceSidebarTreeElement.prototype.ondblclick):
854
855 2010-08-13  Fumitoshi Ukai  <ukai@chromium.org>
856
857         Reviewed by Alexey Proskuryakov.
858
859         flaky websocket/tests/frame-length-overflow.html
860         https://bugs.webkit.org/show_bug.cgi?id=43902
861
862         Add m_shouldDiscardReceivedData flag to indicate it will no longer
863         receive data from network.
864
865         * websockets/WebSocketChannel.cpp:
866         (WebCore::WebSocketChannel::WebSocketChannel):
867         (WebCore::WebSocketChannel::didReceiveData):
868         (WebCore::WebSocketChannel::didFail):
869         (WebCore::WebSocketChannel::processBuffer):
870         - when frame length overflows, we couldn't process data any more.
871           clear buffer and mark m_shouldDiscardReceivedData true to make sure
872           it doesn't process the same buffer again.
873         * websockets/WebSocketChannel.h:
874
875 2010-08-13  Dirk Schulze  <krit@webkit.org>
876
877         Reviewed by Nikolas Zimmermann.
878
879         Use SVGPathByteStream to animate SVGPath
880         https://bugs.webkit.org/show_bug.cgi?id=43929
881
882         Use SVGPathByteStream to perform animations of Paths. SVGPathBlender blends
883         the starting point to the end point according to the current progress value.
884         Cleanup SVGPathSegList, by removing the unnecessary legacy blending code.
885
886         No new tests because no functional changes.
887
888         * Android.mk:
889         * CMakeLists.txt:
890         * GNUmakefile.am:
891         * WebCore.gypi:
892         * WebCore.pro:
893         * WebCore.vcproj/WebCore.vcproj:
894         * WebCore.xcodeproj/project.pbxproj:
895         * svg/SVGAllInOne.cpp:
896         * svg/SVGAnimateElement.cpp:
897         (WebCore::SVGAnimateElement::SVGAnimateElement):
898         (WebCore::SVGAnimateElement::calculateAnimatedValue):
899         (WebCore::SVGAnimateElement::calculateFromAndToValues):
900         (WebCore::SVGAnimateElement::resetToBaseValue):
901         (WebCore::SVGAnimateElement::applyResultsToTarget):
902         * svg/SVGAnimateElement.h:
903         * svg/SVGPathBlender.cpp: Added.
904         (WebCore::SVGPathBlender::SVGPathBlender):
905         (WebCore::SVGPathBlender::~SVGPathBlender):
906         (WebCore::SVGPathBlender::blendAnimatedFloat):
907         (WebCore::SVGPathBlender::blendAnimatedFloatPoint):
908         (WebCore::SVGPathBlender::blendMoveToSegment):
909         (WebCore::SVGPathBlender::blendLineToSegment):
910         (WebCore::SVGPathBlender::blendLineToHorizontalSegment):
911         (WebCore::SVGPathBlender::blendLineToVerticalSegment):
912         (WebCore::SVGPathBlender::blendCurveToCubicSegment):
913         (WebCore::SVGPathBlender::blendCurveToCubicSmoothSegment):
914         (WebCore::SVGPathBlender::blendCurveToQuadraticSegment):
915         (WebCore::SVGPathBlender::blendCurveToQuadraticSmoothSegment):
916         (WebCore::SVGPathBlender::blendArcToSegment):
917         (WebCore::SVGPathBlender::blendAnimatedPath):
918         (WebCore::SVGPathBlender::cleanup):
919         * svg/SVGPathBlender.h: Added.
920         * svg/SVGPathParserFactory.cpp:
921         (WebCore::globalSVGPathBlender):
922         (WebCore::SVGPathParserFactory::buildAnimatedSVGPathByteStream):
923         * svg/SVGPathParserFactory.h:
924         * svg/SVGPathSegList.cpp:
925         (WebCore::SVGPathSegList::getPathSegAtLength):
926         * svg/SVGPathSegList.h:
927         (WebCore::SVGPathSegList::create):
928         * svg/SVGPointList.cpp:
929         (WebCore::adjustAnimatedValue):
930
931 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
932
933         Reviewed by Dirk Schulze.
934
935         Window size changes + resources on absolute sized content leads to pixelation
936         https://bugs.webkit.org/show_bug.cgi?id=43921
937
938         Avoid pixelation when using resources on absolute sized objects. Be sure to invalidate the used resources if window size changes.
939         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
940         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)
941         didn't invalidate the resources.
942
943         Renamed invalidateClient -> removeClientFromCache and invalidateClients -> removeAllClientsFromCache.
944         Add a boolean "markForInvalidation" parameter, that controls wheter the clients should be marked for repaint/boundaries invalidation/layout
945         or wheter we only want to notify the parents that the resource changed, to avoid doing unncessary work in SVGRenderSupport::layoutChildren.
946
947         Test: svg/custom/absolute-sized-content-with-resources.xhtml
948
949         * rendering/RenderSVGGradientStop.cpp:
950         (WebCore::RenderSVGGradientStop::styleDidChange): Don't do anything for StyleDifferenceEqual.
951         * rendering/RenderSVGImage.cpp:
952         (WebCore::RenderSVGImage::imageChanged):
953         * rendering/RenderSVGResource.cpp:
954         (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation):
955         * rendering/RenderSVGResource.h:
956         * rendering/RenderSVGResourceClipper.cpp:
957         (WebCore::RenderSVGResourceClipper::removeAllClientsFromCache):
958         (WebCore::RenderSVGResourceClipper::removeClientFromCache):
959         * rendering/RenderSVGResourceClipper.h:
960         * rendering/RenderSVGResourceContainer.cpp:
961         (WebCore::RenderSVGResourceContainer::layout):
962         (WebCore::RenderSVGResourceContainer::idChanged):
963         (WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation):
964         (WebCore::RenderSVGResourceContainer::markClientForInvalidation):
965         * rendering/RenderSVGResourceContainer.h:
966         (WebCore::RenderSVGResourceContainer::):
967         * rendering/RenderSVGResourceFilter.cpp:
968         (WebCore::RenderSVGResourceFilter::removeAllClientsFromCache):
969         (WebCore::RenderSVGResourceFilter::removeClientFromCache):
970         (WebCore::RenderSVGResourceFilter::postApplyResource):
971         * rendering/RenderSVGResourceFilter.h:
972         * rendering/RenderSVGResourceGradient.cpp:
973         (WebCore::RenderSVGResourceGradient::removeAllClientsFromCache):
974         (WebCore::RenderSVGResourceGradient::removeClientFromCache):
975         (WebCore::RenderSVGResourceGradient::applyResource):
976         * rendering/RenderSVGResourceGradient.h:
977         * rendering/RenderSVGResourceMarker.cpp:
978         (WebCore::RenderSVGResourceMarker::layout):
979         (WebCore::RenderSVGResourceMarker::removeAllClientsFromCache):
980         (WebCore::RenderSVGResourceMarker::removeClientFromCache):
981         * rendering/RenderSVGResourceMarker.h:
982         * rendering/RenderSVGResourceMasker.cpp:
983         (WebCore::RenderSVGResourceMasker::removeAllClientsFromCache):
984         (WebCore::RenderSVGResourceMasker::removeClientFromCache):
985         * rendering/RenderSVGResourceMasker.h:
986         * rendering/RenderSVGResourcePattern.cpp:
987         (WebCore::RenderSVGResourcePattern::removeAllClientsFromCache):
988         (WebCore::RenderSVGResourcePattern::removeClientFromCache):
989         (WebCore::RenderSVGResourcePattern::applyResource):
990         * rendering/RenderSVGResourcePattern.h:
991         * rendering/RenderSVGResourceSolidColor.h:
992         (WebCore::RenderSVGResourceSolidColor::removeAllClientsFromCache):
993         (WebCore::RenderSVGResourceSolidColor::removeClientFromCache):
994         * rendering/SVGRenderSupport.cpp:
995         (WebCore::invalidateResourcesOfChildren): Add new helper funtion recursively invalidating resources of a sub render tree.
996         (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.
997         * rendering/SVGResources.cpp:
998         (WebCore::SVGResources::removeClientFromCache):
999         (WebCore::SVGResources::resourceDestroyed):
1000         * rendering/SVGResources.h:
1001         * rendering/SVGResourcesCache.cpp:
1002         (WebCore::SVGResourcesCache::clientLayoutChanged):
1003
1004 2010-08-13  Pavel Feldman  <pfeldman@chromium.org>
1005
1006         Reviewed by Yury Semikhatsky.
1007
1008         Chromium DevTools: [CRASH] Autocomplete on arrays causes crashes.
1009         https://bugs.webkit.org/show_bug.cgi?id=43955
1010
1011         * bindings/v8/ScriptValue.cpp:
1012         (WebCore::v8ToInspectorValue):
1013
1014 2010-08-13  Gavin Barraclough  <barraclough@apple.com>
1015
1016         Reviewed by Sam Weinig
1017
1018         Unify UString::UTF8String() & String::utf8() methods,
1019         remove UString::cost() & make atArrayIndex a free function.
1020
1021         * WebCore.xcodeproj/project.pbxproj:
1022         * bindings/js/JSDOMWindowCustom.cpp:
1023         (WebCore::JSDOMWindow::getOwnPropertySlot):
1024         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
1025         * bridge/NP_jsobject.cpp:
1026         (_NPN_Enumerate):
1027         * bridge/c/c_utility.cpp:
1028         (JSC::Bindings::convertValueToNPVariant):
1029         * bridge/jni/JNIBridge.cpp:
1030         (JavaParameter::JavaParameter):
1031         (JavaMethod::JavaMethod):
1032         (JavaMethod::signature):
1033         (JavaMethod::methodID):
1034         * bridge/jni/JNIBridge.h:
1035         (JSC::Bindings::JavaString::utf8):
1036         (JSC::Bindings::JavaParameter::type):
1037         (JSC::Bindings::JavaMethod::returnType):
1038         * bridge/jni/jni_jsobject.mm:
1039         (JavaJSObject::call):
1040         (JavaJSObject::eval):
1041         (JavaJSObject::getMember):
1042         (JavaJSObject::setMember):
1043         (JavaJSObject::removeMember):
1044         (JavaJSObject::convertJObjectToValue):
1045         * bridge/jni/jsc/JNIBridgeJSC.cpp:
1046         (JavaField::JavaField):
1047         (JavaField::valueFromInstance):
1048         (JavaField::setValueToInstance):
1049         * bridge/jni/jsc/JNIBridgeJSC.h:
1050         (JSC::Bindings::JavaField::type):
1051         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1052         (JavaInstance::invokeMethod):
1053         * bridge/jni/jsc/JavaStringJSC.h:
1054         (JSC::Bindings::JavaStringImpl::utf8):
1055         * bridge/runtime_array.cpp:
1056         (JSC::RuntimeArray::getOwnPropertySlot):
1057         (JSC::RuntimeArray::getOwnPropertyDescriptor):
1058         (JSC::RuntimeArray::put):
1059
1060 2010-08-12  Yury Semikhatsky  <yurys@chromium.org>
1061
1062         Reviewed by Pavel Feldman.
1063
1064         Web Inspector: allow interrupting long running JS to execute inspector command
1065         https://bugs.webkit.org/show_bug.cgi?id=43900
1066
1067         * bindings/v8/ScriptDebugServer.cpp:
1068         (WebCore::):
1069         (WebCore::ScriptDebugServer::pause):
1070         (WebCore::ScriptDebugServer::interruptAndRun):
1071         (WebCore::ScriptDebugServer::runPendingTasks):
1072         (WebCore::ScriptDebugServer::handleV8DebugEvent):
1073         * bindings/v8/ScriptDebugServer.h:
1074         (WebCore::ScriptDebugServer::Task::~Task):
1075
1076 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1077
1078         Unreviewed, rolling out r65295.
1079         http://trac.webkit.org/changeset/65295
1080         https://bugs.webkit.org/show_bug.cgi?id=43950
1081
1082         It broke 4 sputnik tests (Requested by Ossy on #webkit).
1083
1084         * WebCore.xcodeproj/project.pbxproj:
1085         * bindings/js/JSDOMWindowCustom.cpp:
1086         (WebCore::JSDOMWindow::getOwnPropertySlot):
1087         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
1088         * bridge/NP_jsobject.cpp:
1089         (_NPN_Enumerate):
1090         * bridge/c/c_utility.cpp:
1091         (JSC::Bindings::convertValueToNPVariant):
1092         * bridge/jni/JNIBridge.cpp:
1093         (JavaParameter::JavaParameter):
1094         (JavaMethod::JavaMethod):
1095         (JavaMethod::signature):
1096         (JavaMethod::methodID):
1097         * bridge/jni/JNIBridge.h:
1098         (JSC::Bindings::JavaString::UTF8String):
1099         (JSC::Bindings::JavaParameter::type):
1100         (JSC::Bindings::JavaMethod::returnType):
1101         * bridge/jni/jni_jsobject.mm:
1102         (JavaJSObject::call):
1103         (JavaJSObject::eval):
1104         (JavaJSObject::getMember):
1105         (JavaJSObject::setMember):
1106         (JavaJSObject::removeMember):
1107         (JavaJSObject::convertJObjectToValue):
1108         * bridge/jni/jsc/JNIBridgeJSC.cpp:
1109         (JavaField::JavaField):
1110         (JavaField::valueFromInstance):
1111         (JavaField::setValueToInstance):
1112         * bridge/jni/jsc/JNIBridgeJSC.h:
1113         (JSC::Bindings::JavaField::type):
1114         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1115         (JavaInstance::invokeMethod):
1116         * bridge/jni/jsc/JavaStringJSC.h:
1117         (JSC::Bindings::JavaStringImpl::UTF8String):
1118         * bridge/runtime_array.cpp:
1119         (JSC::RuntimeArray::getOwnPropertySlot):
1120         (JSC::RuntimeArray::getOwnPropertyDescriptor):
1121         (JSC::RuntimeArray::put):
1122
1123 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1124
1125         Not reviewed. Fixed typo in inspector js.
1126         Follow up to r65300.
1127
1128         * inspector/front-end/inspector.js:
1129         (WebInspector.log.isLogAvailable):
1130
1131 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1132
1133         Reviewed by Yury Semikhatsky.
1134
1135         Web Inspector: Make getPrototypes return objects, not names.
1136         https://bugs.webkit.org/show_bug.cgi?id=43934
1137
1138         * inspector/front-end/InjectedScript.js:
1139         (injectedScriptConstructor):
1140         (injectedScriptConstructor.):
1141         * inspector/front-end/PropertiesSidebarPane.js:
1142         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
1143         * inspector/front-end/inspector.js:
1144         (WebInspector.log):
1145
1146 2010-08-12  James Robinson  <jamesr@chromium.org>
1147
1148         Unreviewed, rolling out r65284 and r65288.  Broke chromium compile.
1149         https://bugs.webkit.org/show_bug.cgi?id=43725
1150         http://trac.webkit.org/changeset/65284
1151         http://trac.webkit.org/changeset/65288
1152
1153         * bindings/scripts/CodeGeneratorV8.pm:
1154         * bindings/v8/ScriptController.cpp:
1155         (WebCore::ScriptController::namedItemAdded):
1156         (WebCore::ScriptController::namedItemRemoved):
1157         * bindings/v8/V8DOMWindowShell.cpp:
1158         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
1159         * bindings/v8/V8DOMWindowShell.h:
1160         * bindings/v8/V8DOMWrapper.cpp:
1161         (WebCore::V8DOMWrapper::instantiateV8Object):
1162         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1163         (WebCore::V8HTMLDocument::namedPropertyDeleter):
1164         (WebCore::V8HTMLDocument::namedPropertyGetter):
1165         (WebCore::V8HTMLDocument::indexedPropertyGetter):
1166         (WebCore::V8HTMLDocument::allAccessorSetter):
1167         (WebCore::toV8):
1168         * html/HTMLDocument.cpp:
1169         (WebCore::HTMLDocument::removeItemFromMap):
1170
1171 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
1172
1173         Reviewed by Sam Weinig
1174
1175         Unify UString::UTF8String() & String::utf8() methods,
1176         remove UString::cost() & make atArrayIndex a free function.
1177
1178         * WebCore.xcodeproj/project.pbxproj:
1179         * bindings/js/JSDOMWindowCustom.cpp:
1180         (WebCore::JSDOMWindow::getOwnPropertySlot):
1181         (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
1182         * bridge/NP_jsobject.cpp:
1183         (_NPN_Enumerate):
1184         * bridge/c/c_utility.cpp:
1185         (JSC::Bindings::convertValueToNPVariant):
1186         * bridge/jni/JNIBridge.cpp:
1187         (JavaParameter::JavaParameter):
1188         (JavaMethod::JavaMethod):
1189         (JavaMethod::signature):
1190         (JavaMethod::methodID):
1191         * bridge/jni/JNIBridge.h:
1192         (JSC::Bindings::JavaString::utf8):
1193         (JSC::Bindings::JavaParameter::type):
1194         (JSC::Bindings::JavaMethod::returnType):
1195         * bridge/jni/jni_jsobject.mm:
1196         (JavaJSObject::call):
1197         (JavaJSObject::eval):
1198         (JavaJSObject::getMember):
1199         (JavaJSObject::setMember):
1200         (JavaJSObject::removeMember):
1201         (JavaJSObject::convertJObjectToValue):
1202         * bridge/jni/jsc/JNIBridgeJSC.cpp:
1203         (JavaField::JavaField):
1204         (JavaField::valueFromInstance):
1205         (JavaField::setValueToInstance):
1206         * bridge/jni/jsc/JNIBridgeJSC.h:
1207         (JSC::Bindings::JavaField::type):
1208         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1209         (JavaInstance::invokeMethod):
1210         * bridge/jni/jsc/JavaStringJSC.h:
1211         (JSC::Bindings::JavaStringImpl::utf8):
1212         * bridge/runtime_array.cpp:
1213         (JSC::RuntimeArray::getOwnPropertySlot):
1214         (JSC::RuntimeArray::getOwnPropertyDescriptor):
1215         (JSC::RuntimeArray::put):
1216
1217 2010-08-12  Gavin Barraclough  <barraclough@apple.com>
1218
1219         Speculative build fix for chromium bindings (someone added the old include style!).
1220
1221         * bindings/v8/V8DOMWindowShell.h:
1222
1223 2010-08-12  MORITA Hajime  <morrita@google.com>
1224
1225         Reviewed by Tony Chang.
1226
1227         [Refactoring] TextEvent class has to many flags
1228         https://bugs.webkit.org/show_bug.cgi?id=43893
1229
1230         Turned TextEvent::m_isLineBreak, TextEvent::m_isBacktab, TextEvent::m_isPaste 
1231         into single TextEvent::m_inputType enumeration.
1232         
1233         No functional change. No new tests.
1234
1235         * dom/TextEvent.cpp:
1236         (WebCore::TextEvent::selectInputType):
1237         (WebCore::TextEvent::create):
1238         (WebCore::TextEvent::createForPlainTextPaste):
1239         (WebCore::TextEvent::createForFragmentPaste):
1240         (WebCore::TextEvent::TextEvent):
1241         * dom/TextEvent.h:
1242         (WebCore::TextEvent::):
1243         (WebCore::TextEvent::isLineBreak):
1244         (WebCore::TextEvent::isBackTab):
1245         (WebCore::TextEvent::isPaste):
1246         * page/EventHandler.cpp:
1247         (WebCore::EventHandler::handleTextInputEvent):
1248
1249 2010-08-12  Kenneth Russell  <kbr@google.com>
1250
1251         Reviewed by David Levin.
1252
1253         Delete obsolete CanvasNumberArray
1254         https://bugs.webkit.org/show_bug.cgi?id=38619
1255
1256         Deleted unreferenced code. Built WebKit and Chromium to test.
1257
1258         * Android.derived.jscbindings.mk:
1259         * Android.derived.v8bindings.mk:
1260         * Android.jscbindings.mk:
1261         * Android.mk:
1262         * bindings/js/JSCanvasNumberArrayCustom.cpp: Removed.
1263         * html/canvas/CanvasNumberArray.cpp: Removed.
1264         * html/canvas/CanvasNumberArray.h: Removed.
1265         * html/canvas/CanvasNumberArray.idl: Removed.
1266
1267 2010-08-12  Anton Muhin  <antonm@chromium.org>
1268
1269         Reviewed by Nate Chapin.
1270
1271         [v8] Create callbacks for named access of elements from document object on fly.
1272         https://bugs.webkit.org/show_bug.cgi?id=43725
1273
1274         That should speed up access to methods on document as there is no need to
1275         consult with interceptor before invoking the method.
1276
1277         This reapplies http://trac.webkit.org/changeset/60670 reverted with
1278         http://trac.webkit.org/changeset/63845.  The main difference is in treatment
1279         of removed named elements: we don't remove an accessor any more, but leave it.
1280         Therefore any accessor should be able to treat the case when there is no
1281         expando property.
1282
1283         * bindings/scripts/CodeGeneratorV8.pm:
1284         * bindings/v8/ScriptController.cpp:
1285         (WebCore::ScriptController::namedItemAdded):
1286         (WebCore::ScriptController::namedItemRemoved):
1287         * bindings/v8/V8DOMWindowShell.cpp:
1288         (WebCore::checkDocumentWrapper):
1289         (WebCore::V8DOMWindowShell::updateDocumentWrapperCache):
1290         (WebCore::getter):
1291         (WebCore::V8DOMWindowShell::namedItemAdded):
1292         (WebCore::V8DOMWindowShell::namedItemRemoved):
1293         * bindings/v8/V8DOMWindowShell.h:
1294         * bindings/v8/V8DOMWrapper.cpp:
1295         (WebCore::V8DOMWrapper::instantiateV8Object):
1296         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1297         (WebCore::V8HTMLDocument::WrapInShadowObject):
1298         (WebCore::V8HTMLDocument::GetNamedProperty):
1299         (WebCore::V8HTMLDocument::allAccessorSetter):
1300         (WebCore::toV8):
1301         * html/HTMLDocument.cpp:
1302         (WebCore::HTMLDocument::removeItemFromMap):
1303
1304 2010-08-12  Dimitri Glazkov  <dglazkov@chromium.org>
1305
1306         Reviewed by Adam Barth.
1307
1308         Ensure that parser doesn't attach children that have been removed by JavaScript event handlers.
1309         https://bugs.webkit.org/show_bug.cgi?id=43813
1310
1311         This patch re-fixes bug 40742 in a way that keeps allowing HTMLLinkElement
1312         to lazy-attach.
1313
1314         * html/HTMLConstructionSite.cpp:
1315         (WebCore::HTMLConstructionSite::attach): Added parent check.
1316         * html/HTMLLinkElement.cpp: Basically undoes changes introduced by r61424.
1317         * html/HTMLLinkElement.h: Ditto.
1318
1319 2010-08-12  Justin Schuh  <jschuh@chromium.org>
1320
1321         Reviewed by Dumitru Daniliuc.
1322
1323         Clear PluginData's page pointer on page refresh
1324         https://bugs.webkit.org/show_bug.cgi?id=43888
1325
1326         Test: plugins/access-after-page-destroyed.html
1327
1328         * page/Page.cpp:
1329         (WebCore::Page::refreshPlugins):
1330
1331 2010-08-12  Zhenyao Mo  <zmo@google.com>
1332
1333         Reviewed by Dimitri Glazkov.
1334
1335         getParameter(STENCIL_VALUE_MASK) (and others) returns the wrong value
1336         https://bugs.webkit.org/show_bug.cgi?id=31842
1337
1338         * html/canvas/WebGLRenderingContext.cpp:
1339         (WebCore::WebGLRenderingContext::getUnsignedLongParameter): Casting from int to unsigned long correctly.
1340
1341 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1342
1343         Reviewed by Joseph Pecoraro.
1344
1345         Web Inspector: mimic FireBug's array detection.
1346         https://bugs.webkit.org/show_bug.cgi?id=30974
1347
1348         * inspector/front-end/InjectedScript.js:
1349         (injectedScriptConstructor):
1350
1351 2010-08-12  Zhenyao Mo  <zmo@google.com>
1352
1353         Reviewed by Dimitri Glazkov.
1354
1355         regression in generateMipmap
1356         https://bugs.webkit.org/show_bug.cgi?id=43873
1357
1358         * html/canvas/WebGLTexture.cpp:
1359         (WebCore::WebGLTexture::generateMipmapLevelInfo): should set m_needToUseBlackTexture to false if generateMipmapLevelInfo runs through successfully.
1360
1361 2010-08-12  Ariya Hidayat  <ariya@sencha.com>
1362
1363         Reviewed by David Hyatt.
1364
1365         [Qt] Split TransparencyLayer into its own header file.
1366         https://bugs.webkit.org/show_bug.cgi?id=43935
1367
1368         * WebCore.pro: Include TransparencyLayer.h.
1369         * platform/graphics/qt/GraphicsContextQt.cpp:
1370         * platform/graphics/qt/TransparencyLayer.h: Added.
1371         (WebCore::TransparencyLayer::TransparencyLayer):
1372         (WebCore::TransparencyLayer::operator=):
1373
1374 2010-08-12  François Sausset  <sausset@gmail.com>
1375
1376         Reviewed by Beth Dakin.
1377
1378         Horizontal padding should be 0 on mrow elements.
1379         https://bugs.webkit.org/show_bug.cgi?id=43908
1380
1381         Updated tests in /mathml
1382
1383         * css/mathml.css:
1384         (mrow, mfenced):
1385         (mfenced):
1386
1387 2010-08-12  Aaron Boodman  <aa@chromium.org>
1388
1389         Reviewed by David Hyatt.
1390
1391         Make the cascade level of "user" styles configurable
1392         https://bugs.webkit.org/show_bug.cgi?id=43457
1393
1394         * WebCore.exp.in:
1395         * css/CSSStyleSelector.cpp:
1396         (WebCore::CSSStyleSelector::CSSStyleSelector):
1397         * dom/Document.cpp:
1398         (WebCore::Document::pageGroupUserSheets):
1399         * page/PageGroup.cpp:
1400         (WebCore::PageGroup::addUserStyleSheetToWorld):
1401         * page/PageGroup.h:
1402         * page/UserStyleSheet.h:
1403         (WebCore::UserStyleSheet::):
1404         (WebCore::UserStyleSheet::UserStyleSheet):
1405         (WebCore::UserStyleSheet::level):
1406
1407 2010-08-12  Jian Li  <jianli@chromium.org>
1408
1409         Fix qt build break.
1410
1411         * html/ThreadableBlobRegistry.cpp:
1412         (WebCore::postTaskToMainThread):
1413
1414 2010-08-12  Jian Li  <jianli@chromium.org>
1415
1416         Reviewed by David Levin.
1417
1418         Add ThreadableBlobRegistry to support calling BlobRegistry methods in
1419         main thread.
1420         https://bugs.webkit.org/show_bug.cgi?id=43874
1421
1422         * Android.mk:
1423         * CMakeLists.txt:
1424         * GNUmakefile.am:
1425         * WebCore.gypi:
1426         * WebCore.pro:
1427         * WebCore.vcproj/WebCore.vcproj:
1428         * WebCore.xcodeproj/project.pbxproj:
1429         * dom/ScriptExecutionContext.cpp:
1430         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
1431         (WebCore::ScriptExecutionContext::addBlob):
1432         (WebCore::ScriptExecutionContext::removeBlob):
1433         (WebCore::ScriptExecutionContext::createPublicBlobURL):
1434         (WebCore::ScriptExecutionContext::revokePublicBlobURL):
1435         * dom/ScriptExecutionContext.h:
1436         * html/Blob.cpp:
1437         (WebCore::Blob::Blob):
1438         (WebCore::Blob::~Blob):
1439         (WebCore::Blob::contextDestroyed):
1440         * html/Blob.h:
1441         * html/BlobRegistryImpl.cpp:
1442         (WebCore::BlobRegistryImpl::registerBlobURL):
1443         (WebCore::BlobRegistryImpl::unregisterBlobURL):
1444         (WebCore::BlobRegistryImpl::getBlobDataFromURL):
1445         * html/ThreadableBlobRegistry.cpp: Added.
1446         * html/ThreadableBlobRegistry.h: Added.
1447
1448 2010-08-12  Csaba Osztrogonác  <ossy@webkit.org>
1449
1450         Reviewed by Darin Adler.
1451
1452         generate-bindings.pl should generate warning free code
1453         https://bugs.webkit.org/show_bug.cgi?id=43353
1454
1455         * bindings/scripts/CodeGeneratorJS.pm: Suggested parentheses added around && within ||
1456
1457 2010-08-11  Ryosuke Niwa  <rniwa@webkit.org>
1458
1459         Reviewed by Kent Tamura.
1460
1461         merge MarkupAccumulator and MarkupAccumulatorWrapper
1462         https://bugs.webkit.org/show_bug.cgi?id=43834
1463
1464         Removed MarkupAccumulator and added serializeNodesWithNamespaces to use MarkupAccumulatorWrapper
1465         in both versions of createMarkup.  Accumulation of nodes done manually in serializeNodes is
1466         now done by MarkupAccumulatorWrapper as done in the original MarkupAccumulator.
1467
1468         No new tests added since this is a cleanup.
1469
1470         * editing/markup.cpp:
1471         (WebCore::MarkupAccumulatorWrapper::MarkupAccumulatorWrapper): Takes vector of nodes and set it to m_nodes.
1472         (WebCore::MarkupAccumulatorWrapper::insertOpenTag): Adds node to m_nodes.
1473         (WebCore::MarkupAccumulatorWrapper::wrapWithNode): Adds node to m_nodes.
1474         (WebCore::serializeNodes): Adding node to nodes is moved into MarkupAccumulatorWrapper.
1475         (WebCore::createMarkup): Instantiates MarkupAccumulatorWrapper.
1476         (WebCore::serializeNodesWithNamespaces): Renamed from MarkupAccumulator::appendMarkup.
1477
1478 2010-08-12  Dirk Schulze  <krit@webkit.org>
1479
1480         Unreviewed sort of Xcode project file.
1481
1482         * WebCore.xcodeproj/project.pbxproj:
1483
1484 2010-08-12  Ben Murdoch  <benm@google.com>
1485
1486         Reviewed by Pavel Feldman.
1487
1488         InspectorController.h missing InspectorObject forward declaration
1489         https://bugs.webkit.org/show_bug.cgi?id=43913
1490
1491         Build fix so no new tests.
1492
1493         * inspector/InspectorController.h: Adds the necessary forward declaration.
1494
1495 2010-08-12  Hui Huang  <hui.2.huang@nokia.com>
1496
1497         Reviewed by Eric Seidel.
1498
1499         m_windowRect is not updated because parent of PluginView is not
1500         set when updatePluginWidget is called. plugin gets wrong window
1501         size on setwindow.
1502         https://bugs.webkit.org/show_bug.cgi?id=43635
1503
1504         * plugins/symbian/PluginViewSymbian.cpp:
1505         (WebCore::PluginView::setParent):
1506
1507 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1508
1509         Not reviewed, re-apply r65241 and 65243.
1510
1511         Web Inspector: brush up object proxies, introduce remote object model.
1512         https://bugs.webkit.org/show_bug.cgi?id=43847
1513
1514         * WebCore.gypi:
1515         * WebCore.vcproj/WebCore.vcproj:
1516         * inspector/front-end/AuditRules.js:
1517         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
1518         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
1519         * inspector/front-end/ConsoleView.js:
1520         (WebInspector.ConsoleView.prototype.doEvalInWindow):
1521         (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
1522         (WebInspector.ConsoleView.prototype._enterKeyPressed):
1523         (WebInspector.ConsoleView.prototype._format):
1524         (WebInspector.ConsoleView.prototype._formatarray):
1525         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
1526         (WebInspector.ConsoleMessage.prototype._format):
1527         (WebInspector.ConsoleCommandResult):
1528         * inspector/front-end/DOMAgent.js:
1529         (WebInspector.DOMNode):
1530         * inspector/front-end/ElementsPanel.js:
1531         (WebInspector.ElementsPanel.prototype.performSearch):
1532         * inspector/front-end/ElementsTreeOutline.js:
1533         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
1534         * inspector/front-end/EventListenersSidebarPane.js:
1535         ():
1536         * inspector/front-end/InjectedScript.js:
1537         (injectedScriptConstructor):
1538         (injectedScriptConstructor.):
1539         * inspector/front-end/ObjectPropertiesSection.js:
1540         (WebInspector.ObjectPropertiesSection.prototype.update):
1541         (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
1542         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
1543         (WebInspector.ObjectPropertyTreeElement.prototype.update):
1544         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
1545         * inspector/front-end/ObjectProxy.js: Removed.
1546         * inspector/front-end/PropertiesSidebarPane.js:
1547         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
1548         * inspector/front-end/RemoteObject.js: Added.
1549         (WebInspector.RemoteObjectId):
1550         (WebInspector.RemoteObject):
1551         (WebInspector.RemoteObject.fromPrimitiveValue):
1552         (WebInspector.RemoteObject.fromNode):
1553         (WebInspector.RemoteObject.fromPayload):
1554         (WebInspector.RemoteObject.type):
1555         (WebInspector.RemoteObject.prototype.get objectId):
1556         (WebInspector.RemoteObject.prototype.get type):
1557         (WebInspector.RemoteObject.prototype.get description):
1558         (WebInspector.RemoteObject.prototype.get hasChildren):
1559         (WebInspector.RemoteObject.prototype.isError):
1560         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
1561         (WebInspector.RemoteObject.prototype.getOwnProperties):
1562         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
1563         (WebInspector.RemoteObjectProperty):
1564         * inspector/front-end/ScopeChainSidebarPane.js:
1565         (WebInspector.ScopeChainSidebarPane.prototype.update):
1566         * inspector/front-end/ScriptsPanel.js:
1567         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
1568         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
1569         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
1570         * inspector/front-end/SourceFrame.js:
1571         (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
1572         (WebInspector.SourceFrame.prototype._showPopup):
1573         (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
1574         * inspector/front-end/WatchExpressionsSidebarPane.js:
1575         (WebInspector.WatchExpressionsSection.prototype.update):
1576         (WebInspector.WatchExpressionTreeElement.prototype.update):
1577         * inspector/front-end/WebKit.qrc:
1578         * inspector/front-end/inspector.html:
1579         * inspector/front-end/inspector.js:
1580         (WebInspector.log.logMessage):
1581         (WebInspector.log):
1582         * inspector/front-end/utilities.js:
1583         ():
1584
1585 2010-08-11  Stephen White  <senorblanco@chromium.org>
1586
1587         Reviewed by David Levin.
1588
1589         Add support for BGRA pixel format to GraphicsContext3D.
1590         https://bugs.webkit.org/show_bug.cgi?id=43858
1591
1592         Although this has been standard in desktop GL since 1.2, it's an 
1593         extension in GL ES 2.0, so a query function is provided to check
1594         for support.  Since they differ on semantics (GL ES 2.0 requires 
1595         TexImage2D()'s format and internalFormat to match, while desktop GL
1596         will not accept BGRA as an internalFormat), the stub implementation
1597         returns false until these quirks have been implemented and tested on
1598         each port.
1599
1600         * platform/graphics/GraphicsContext3D.cpp:
1601         (WebCore::GraphicsContext3D::supportsBGRA):
1602         Add implementation for non-chromium platforms which returns false.
1603         * platform/graphics/GraphicsContext3D.h:
1604         (WebCore::GraphicsContext3D::):
1605         Add query function (supportsBGRA()) and the BGRA_EXT token.
1606
1607 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1608
1609         Not reviewed. Rolling out r65241 and 65243 for breaking inspector tests.
1610
1611 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1612
1613         Not reviewed. Adding the file missing in r65241.
1614
1615         * inspector/front-end/RemoteObject.js: Added.
1616         (WebInspector.RemoteObjectId):
1617         (WebInspector.RemoteObject):
1618         (WebInspector.RemoteObject.fromPrimitiveValue):
1619         (WebInspector.RemoteObject.fromNode):
1620         (WebInspector.RemoteObject.fromPayload):
1621         (WebInspector.RemoteObject.type):
1622         (WebInspector.RemoteObject.prototype.get objectId):
1623         (WebInspector.RemoteObject.prototype.get type):
1624         (WebInspector.RemoteObject.prototype.get description):
1625         (WebInspector.RemoteObject.prototype.get hasChildren):
1626         (WebInspector.RemoteObject.prototype.isError):
1627         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
1628         (WebInspector.RemoteObject.prototype.getOwnProperties):
1629         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
1630         (WebInspector.RemoteObjectProperty):
1631
1632 2010-08-12  Pavel Feldman  <pfeldman@chromium.org>
1633
1634         Reviewed by Yury Semikhatsky.
1635
1636         Web Inspector: brush up object proxies, introduce remote object model.
1637         https://bugs.webkit.org/show_bug.cgi?id=43847
1638
1639         * WebCore.gypi:
1640         * WebCore.vcproj/WebCore.vcproj:
1641         * inspector/front-end/AuditRules.js:
1642         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
1643         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
1644         * inspector/front-end/ConsoleView.js:
1645         (WebInspector.ConsoleView.prototype.doEvalInWindow):
1646         (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult):
1647         (WebInspector.ConsoleView.prototype._enterKeyPressed):
1648         (WebInspector.ConsoleView.prototype._format):
1649         (WebInspector.ConsoleView.prototype._formatnode):
1650         (WebInspector.ConsoleView.prototype._formatarray):
1651         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
1652         (WebInspector.ConsoleMessage.prototype._format):
1653         (WebInspector.ConsoleCommandResult):
1654         * inspector/front-end/DOMAgent.js:
1655         (WebInspector.DOMNode):
1656         * inspector/front-end/ElementsTreeOutline.js:
1657         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode):
1658         * inspector/front-end/EventListenersSidebarPane.js:
1659         * inspector/front-end/InjectedScript.js:
1660         (injectedScriptConstructor):
1661         (injectedScriptConstructor.):
1662         * inspector/front-end/ObjectPropertiesSection.js:
1663         (WebInspector.ObjectPropertiesSection.prototype.update):
1664         (WebInspector.ObjectPropertiesSection.prototype.updateProperties):
1665         (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate):
1666         (WebInspector.ObjectPropertyTreeElement.prototype.update):
1667         (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression):
1668         * inspector/front-end/ObjectProxy.js: Removed.
1669         * inspector/front-end/PropertiesSidebarPane.js:
1670         (WebInspector.PropertiesSidebarPane.prototype.update.callback):
1671         * inspector/front-end/RemoteObject.js: Added.
1672         (WebInspector.RemoteObjectId):
1673         (WebInspector.RemoteObject):
1674         (WebInspector.RemoteObject.fromPrimitiveValue):
1675         (WebInspector.RemoteObject.fromErrorMessage):
1676         (WebInspector.RemoteObject.fromNode):
1677         (WebInspector.RemoteObject.fromPayload):
1678         (WebInspector.RemoteObject.type):
1679         (WebInspector.RemoteObject.prototype.get objectId):
1680         (WebInspector.RemoteObject.prototype.get type):
1681         (WebInspector.RemoteObject.prototype.get description):
1682         (WebInspector.RemoteObject.prototype.get hasChildren):
1683         (WebInspector.RemoteObject.prototype.isError):
1684         (WebInspector.RemoteObject.prototype.getPropertyValueDescriptions):
1685         (WebInspector.RemoteObject.prototype.getOwnProperties):
1686         (WebInspector.RemoteObject.prototype.getProperties.remoteObjectBinder):
1687         (WebInspector.RemoteObjectProperty):
1688         * inspector/front-end/ScopeChainSidebarPane.js:
1689         (WebInspector.ScopeChainSidebarPane.prototype.update):
1690         * inspector/front-end/ScriptsPanel.js:
1691         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame.updatingCallbackWrapper):
1692         (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
1693         (WebInspector.ScriptsPanel.prototype.doEvalInCallFrame):
1694         * inspector/front-end/SourceFrame.js:
1695         (WebInspector.SourceFrame.prototype._showPopup.evaluateCallback):
1696         (WebInspector.SourceFrame.prototype._showPopup):
1697         (WebInspector.SourceFrame.prototype._evalSelectionInCallFrame):
1698         * inspector/front-end/WatchExpressionsSidebarPane.js:
1699         (WebInspector.WatchExpressionsSection.prototype.update):
1700         (WebInspector.WatchExpressionTreeElement.prototype.update):
1701         * inspector/front-end/WebKit.qrc:
1702         * inspector/front-end/inspector.html:
1703         * inspector/front-end/inspector.js:
1704         (WebInspector.log.logMessage):
1705         (WebInspector.log):
1706         * inspector/front-end/utilities.js:
1707
1708 2010-08-12  Ben Murdoch  <benm@google.com>
1709
1710         Reviewed by Steve Block.
1711
1712         V8 code generator does not add V8BindingMacros.h include in all places it is needed
1713         https://bugs.webkit.org/show_bug.cgi?id=43907
1714
1715         Adds the V8BindingMacros.h header before using the STRING_TO_V8PARAMETER_EXCEPTION_BLOCK
1716         macro.
1717
1718         Build fix so no new tests.
1719
1720         * bindings/scripts/CodeGeneratorV8.pm: include the header at the right time.
1721
1722 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
1723
1724         Revert for now
1725         https://bugs.webkit.org/show_bug.cgi?id=43794 
1726
1727         * Android.mk:
1728         * CMakeLists.txt:
1729         * GNUmakefile.am:
1730         * WebCore.exp.in:
1731         * WebCore.gypi:
1732         * WebCore.pro:
1733         * WebCore.vcproj/WebCore.vcproj:
1734         * WebCore.xcodeproj/project.pbxproj:
1735         * page/GroupSettings.cpp: Removed.
1736         * page/GroupSettings.h: Removed.
1737         * page/PageGroup.cpp:
1738         (WebCore::PageGroup::PageGroup):
1739         (WebCore::PageGroup::localStorage):
1740         * page/PageGroup.h:
1741         * page/Settings.cpp:
1742         (WebCore::Settings::Settings):
1743         (WebCore::Settings::setLocalStorageQuota):
1744         (WebCore::Settings::setLocalStorageDatabasePath):
1745         * page/Settings.h:
1746         (WebCore::Settings::localStorageQuota):
1747         (WebCore::Settings::localStorageDatabasePath):
1748
1749 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
1750
1751         Not reviewed. Follow up to Jeremys fix, just remove the context parameter, it's not needed anymore.
1752
1753         * rendering/RenderSVGResourceGradient.cpp:
1754         (WebCore::createMaskAndSwapContextForTextGradient):
1755         * rendering/RenderSVGResourceMasker.cpp:
1756         (WebCore::RenderSVGResourceMasker::applyResource):
1757         * rendering/SVGImageBufferTools.cpp:
1758         (WebCore::SVGImageBufferTools::createImageBuffer):
1759         * rendering/SVGImageBufferTools.h:
1760
1761 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
1762
1763         Build fix.
1764
1765         * rendering/SVGImageBufferTools.cpp:
1766         (WebCore::SVGImageBufferTools::createImageBuffer):
1767
1768 2010-08-12  Nikolas Zimmermann  <nzimmermann@rim.com>
1769
1770         Reviewed by Dirk Schulze.
1771
1772         SVG masking performance very slow
1773         https://bugs.webkit.org/show_bug.cgi?id=43622
1774
1775         Create ImageBuffers only as large as the final rendered size on screen. Only gradient on text on CG handled this correctly so far.
1776         Refactored the code into a new SVGImageBufferTools class, and use the code from RenderSVGResourceMasker -> makes the IE9 demo SVG dice usable.
1777         Clippers, Patterns and Filters remain to be converted.
1778
1779         Test: svg/zoom/page/zoom-mask-with-percentages.svg
1780
1781         * Android.mk: Add SVGImageBufferTools.* to build.
1782         * CMakeLists.txt: Ditto.
1783         * GNUmakefile.am: Ditto.
1784         * WebCore.gypi: Ditto.
1785         * WebCore.pro: Ditto.
1786         * WebCore.xcodeproj/project.pbxproj: Ditto.
1787         * rendering/RenderSVGAllInOne.cpp: Ditto.
1788         * rendering/RenderSVGResourceGradient.cpp: Refactored CG gradient specific "create image buffer in absolute coordinates" code into SVGImageBufferTools class.
1789         (WebCore::createMaskAndSwapContextForTextGradient):
1790         (WebCore::clipToTextMask):
1791         (WebCore::RenderSVGResourceGradient::applyResource):
1792         * 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.
1793         (WebCore::RenderSVGResourceMasker::invalidateClients):
1794         (WebCore::RenderSVGResourceMasker::applyResource):
1795         (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
1796         (WebCore::RenderSVGResourceMasker::calculateMaskContentRepaintRect):
1797         (WebCore::RenderSVGResourceMasker::resourceBoundingBox):
1798         * rendering/RenderSVGResourceMasker.h:
1799         * rendering/SVGImageBufferTools.cpp: Added.
1800         (WebCore::SVGImageBufferTools::absoluteTransformFromContext):
1801         (WebCore::SVGImageBufferTools::createImageBuffer):
1802         (WebCore::SVGImageBufferTools::clipToImageBuffer):
1803         * rendering/SVGImageBufferTools.h: Added.
1804         (WebCore::SVGImageBufferTools::SVGImageBufferTools):
1805         (WebCore::SVGImageBufferTools::~SVGImageBufferTools):
1806
1807 2010-08-10  Jeremy Orlow  <jorlow@chromium.org>
1808
1809         Reviewed by Adam Barth.
1810
1811         Some settings are linked to the PageGroup not the Page.  Create a new class for those.
1812         https://bugs.webkit.org/show_bug.cgi?id=43794
1813
1814         Since persistient storage is shared between pages, there's no way to modify
1815         some settings related to it on a per page basis.  As such, it's not technically
1816         correct for these settings to be on the Page's settings.  Create a new class
1817         called GroupSettings, move the 2 group-wide local storage settings there, and
1818         add a new setting for IndexedDB's path (which is prompting this change).
1819
1820         No behavior has changed, so no tests.
1821
1822         * Android.mk:
1823         * CMakeLists.txt:
1824         * GNUmakefile.am:
1825         * WebCore.exp.in:
1826         * WebCore.gypi:
1827         * WebCore.pro:
1828         * WebCore.vcproj/WebCore.vcproj:
1829         * WebCore.xcodeproj/project.pbxproj:
1830         * page/PageGroup.cpp:
1831         (WebCore::PageGroup::PageGroup):
1832         (WebCore::PageGroup::localStorage):
1833         * page/PageGroup.h:
1834         (WebCore::PageGroup::groupSettings):
1835         * page/Settings.cpp:
1836         (WebCore::Settings::Settings):
1837         (WebCore::Settings::setSessionStorageQuota):
1838         * page/Settings.h:
1839
1840 2010-08-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
1841
1842         Reviewed by Simon Hausmann.
1843
1844         [Qt] Decode images directly to QPixmap
1845         https://bugs.webkit.org/show_bug.cgi?id=40797
1846
1847         Use the new API of Qt 4.7 to decode data from the image
1848         reader directly to QPixmap.
1849
1850         This allow us to use JDCT_IFAST when decoding jpeg images
1851         to pixmap, and to decode animated GIF images, while still
1852         using in-place conversion of color space.
1853
1854         * platform/graphics/qt/ImageDecoderQt.cpp:
1855         (WebCore::ImageDecoderQt::setData):
1856         (WebCore::ImageDecoderQt::internalHandleCurrentImage):
1857
1858 2010-07-14  Marcus Bulach  <bulach@chromium.org>
1859
1860         Reviewed by darin@apple.com.
1861
1862         Removes DontCheckEnums from some IDLs and fixes the corresponding enums.
1863         https://bugs.webkit.org/show_bug.cgi?id=42278
1864
1865         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.
1866
1867         Tests: idls should generate valid code.
1868
1869         * dom/Node.h:
1870         (WebCore::Node::):
1871         * dom/Node.idl:
1872         * dom/OverflowEvent.h:
1873         (WebCore::OverflowEvent::):
1874         * dom/OverflowEvent.idl:
1875         * html/FileReader.cpp:
1876         (WebCore::FileReader::readyState):
1877         * html/FileReader.h:
1878         (WebCore::FileReader::):
1879         * html/FileReader.idl:
1880
1881 2010-08-12  Alejandro G. Castro  <alex@igalia.com>
1882
1883         Reviewed by David Levin.
1884
1885         The #if clause enabling a feature should avoid the all includes of
1886         the feature
1887         https://bugs.webkit.org/show_bug.cgi?id=43866
1888
1889         Modified the position of the guard to avoid including all the
1890         headers if the feature controlling the guard is not enabled.
1891
1892         * dom/make_names.pl:
1893
1894 2010-08-12  Sheriff Bot  <webkit.review.bot@gmail.com>
1895
1896         Unreviewed, rolling out r65221.
1897         http://trac.webkit.org/changeset/65221
1898         https://bugs.webkit.org/show_bug.cgi?id=43896
1899
1900         Broke snow leopard build. (Requested by dave_levin on
1901         #webkit).
1902
1903         * platform/graphics/GraphicsContext3D.cpp:
1904         * platform/graphics/GraphicsContext3D.h:
1905         (WebCore::GraphicsContext3D::):
1906
1907 2010-08-11  Stephen White  <senorblanco@chromium.org>
1908
1909         Reviewed by David Levin.
1910
1911         Add support for BGRA pixel format to GraphicsContext3D.
1912         https://bugs.webkit.org/show_bug.cgi?id=43858
1913
1914         Although this has been standard in desktop GL since 1.2, it's an 
1915         extension in GL ES 2.0, so a query function is provided to check
1916         for support.  Since they differ on semantics (GL ES 2.0 requires 
1917         TexImage2D()'s format and internalFormat to match, while desktop GL
1918         will not accept BGRA as an internalFormat), the stub implementation
1919         returns false until these quirks have been implemented and tested on
1920         each port.
1921
1922         * platform/graphics/GraphicsContext3D.cpp:
1923         (WebCore::GraphicsContext3D::supportsBGRA):
1924         Add implementation for non-chromium platforms which returns false.
1925         * platform/graphics/GraphicsContext3D.h:
1926         (WebCore::GraphicsContext3D::):
1927         Add query function (supportsBGRA()) and the BGRA_EXT token.
1928
1929 2010-08-11  Satish Sampath  <satish@chromium.org>
1930
1931         Reviewed by Kent Tamura.
1932
1933         Handle clicks and recognition events for the speech input button
1934         https://bugs.webkit.org/show_bug.cgi?id=43857
1935
1936         * rendering/RenderInputSpeech.cpp:
1937         (WebCore::RenderInputSpeech::paintInputFieldSpeechButton): Selects the image based on current state.
1938         * rendering/TextControlInnerElements.cpp:
1939         (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
1940         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
1941         (WebCore::InputFieldSpeechButtonElement::set_state): Switch to a new state and update the UI.
1942         (WebCore::InputFieldSpeechButtonElement::didCompleteRecording): 
1943         (WebCore::InputFieldSpeechButtonElement::didCompleteRecognition):
1944         * rendering/TextControlInnerElements.h:
1945         (WebCore::InputFieldSpeechButtonElement::):
1946         (WebCore::InputFieldSpeechButtonElement::state):
1947
1948 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
1949
1950         Reviewed by Alexey Proskuryakov.
1951
1952         REGRESSION(65135): format specifier warnings
1953         https://bugs.webkit.org/show_bug.cgi?id=43876
1954
1955         * websockets/WebSocketChannel.cpp:
1956         (WebCore::WebSocketChannel::appendToBuffer): cast size_t to unsigned long for %lu.
1957         (WebCore::WebSocketChannel::processBuffer): cast size_t to unsigned long for %lu.
1958
1959 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
1960
1961         [wx] Build fix, don't generate WebDOMEventTarget.h/.cpp as we use the ones in bindings/cpp.
1962         
1963         * DerivedSources.make:
1964
1965 2010-08-11  Tony Gentilcore  <tonyg@chromium.org>
1966
1967         Reviewed by Adam Barth.
1968
1969         Make PendingScript copyable so that it can be stored in containers
1970         https://bugs.webkit.org/show_bug.cgi?id=43875
1971
1972         This will be useful for storing PendingScripts in a Vector or Deque for
1973         async and defer scripts.
1974
1975         No new tests because no functional changes.
1976
1977         * dom/PendingScript.h:
1978         (WebCore::PendingScript::PendingScript):
1979         (WebCore::PendingScript::operator=):
1980
1981 2010-08-11  Victoria Kirst  <vrk@google.com>
1982
1983         Reviewed by David Levin.
1984
1985         Fixing a regression in the UI for Mac default audio/video controls.
1986         https://bugs.webkit.org/show_bug.cgi?id=43750
1987
1988         * rendering/RenderThemeChromiumMac.h:
1989         * rendering/RenderThemeChromiumMac.mm:
1990         (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderContainer):
1991         (WebCore::RenderThemeChromiumMac::paintMediaSliderThumb):
1992         (WebCore::RenderThemeChromiumMac::volumeSliderOffsetFromMuteButton):
1993
1994 2010-08-11  Adam Barth  <abarth@webkit.org>
1995
1996         Reviewed by Eric Seidel.
1997
1998         HTML TreeBuilder hits ASSERT in fragment case with insertAdjacentHTML and colgroup
1999         https://bugs.webkit.org/show_bug.cgi?id=43758
2000
2001         This patch conditionalizes some LegacyHTMLTreeBuilder-specific code in
2002         HTMLElement::createContextualFragment that interferes with the new
2003         HTMLTreeBuilder.  Doing that exposes the above ASSERT, which I've fixed
2004         in this patch too.  Fixing that ASSERT involved a small refactoring in
2005         ExternalCharacterTokenBuffer.
2006
2007         * html/HTMLElement.cpp:
2008         (WebCore::HTMLElement::createContextualFragment):
2009         * html/HTMLTreeBuilder.cpp:
2010         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeadingWhitespace):
2011         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeadingWhitespace):
2012         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeadingNonWhitespace):
2013         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeading):
2014         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeading):
2015         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
2016
2017 2010-08-11  Adam Barth  <abarth@webkit.org>
2018
2019         Reviewed by Eric Seidel.
2020
2021         Conditionalize wrong fragment parsing code to pass more HTML5lib tests
2022         https://bugs.webkit.org/show_bug.cgi?id=43877
2023
2024         This code exists to support the LegacyHTMLTreeBuilder.  Unfortunately,
2025         it causes problems for the new HTMLTreeBuilder (which is more
2026         self-contained).
2027
2028         * dom/Element.cpp:
2029         (WebCore::Element::createContextualFragment):
2030
2031 2010-08-11  Ryosuke Niwa  <rniwa@webkit.org>
2032
2033         Reviewed by Tony Chang.
2034
2035         Can't unbold text in div in font-weight span
2036         https://bugs.webkit.org/show_bug.cgi?id=26871
2037
2038         The bug was caused by removeInlineStyle not being able to include styled inline nodes around the start.
2039         Solved this problem by pushing down all inline styles instead of just text-decorations.
2040         This approach allows removeInlineStyle to remove styled ancestors properly and generates compact markups.
2041
2042         Test: editing/style/push-down-inline-styles.html
2043
2044         * editing/ApplyStyleCommand.cpp:
2045         (WebCore::ApplyStyleCommand::removeCSSStyle): No longer removes attributes or node when mode == RemoveNone.
2046         (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle): Calls shouldRemoveInlineStyleFromElement
2047         to determine the highest ancestor whose style needs to be pushed down.
2048         (WebCore::ApplyStyleCommand::extractInlineStyleToPushDown): Renamed from extractTextDecorationStyle.
2049         Extracts all inline CSS properties specified instead of just text decorations.
2050         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Renamed from applyTextDecorationStyle.
2051         Applies inline styles using addInlineStyleIfNeeded or adds inline CSS values.
2052         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Renamed from pushDownTextDecorationStyleAroundNode.
2053         (WebCore::ApplyStyleCommand::removeInlineStyle): Calls pushDownTextDecorationStyleAroundNode.
2054         * editing/ApplyStyleCommand.h:
2055         * editing/DeleteSelectionCommand.cpp:
2056         (WebCore::DeleteSelectionCommand::mergeParagraphs): Prevents moveParagraph from preserving
2057         the style of an empty paragraph when merged with the previous paragraph because we don't use that style anyways.
2058
2059 2010-08-11  Julien Chaffraix  <jchaffraix@codeaurora.org>
2060
2061         Reviewed by Ariya Hidayat.
2062
2063         Remove dead code in CSSStyleSelector.
2064         https://bugs.webkit.org/show_bug.cgi?id=43805
2065
2066         * css/CSSStyleSelector.cpp: Remove some debugging code that
2067         was compiled out.
2068
2069 2010-08-11  Chris Fleizach  <cfleizach@apple.com>
2070
2071         Reviewed by Beth Dakin.
2072
2073         AX: isNativeCheckbox does not work as advertised
2074         https://bugs.webkit.org/show_bug.cgi?id=43872
2075
2076         Test: platform/mac/accessibility/native-vs-nonnative-checkboxes.html
2077
2078         * accessibility/AccessibilityRenderObject.cpp:
2079         (WebCore::AccessibilityRenderObject::isInputImage):
2080             Only say it's an input image if its role has not been overriden
2081         (WebCore::AccessibilityRenderObject::isNativeCheckboxOrRadio):
2082         * dom/InputElement.h:
2083             Add methods to query if it's a checkbox or radio button type element.
2084         * html/HTMLInputElement.h:
2085         (WebCore::HTMLInputElement::isCheckbox):
2086
2087 2010-08-11  Kenneth Russell  <kbr@google.com>
2088
2089         Reviewed by David Levin.
2090
2091         Remove obsolete WebGLArray type names
2092         https://bugs.webkit.org/show_bug.cgi?id=43885
2093
2094         Deleted aliases to obsolete WebGLArray type names. Updated
2095         affected layout tests, synchronizing them with the versions in the
2096         Khronos repository where appropriate. Ran all layout tests.
2097
2098         * bindings/js/JSDOMWindowCustom.cpp:
2099         * page/DOMWindow.idl:
2100
2101 2010-08-11  Steve Block  <steveblock@google.com>
2102
2103         Reviewed by David Levin.
2104
2105         [chromium] Geolocation breaks the compile if ENABLE_GEOLOCATION is set to 0
2106         https://bugs.webkit.org/show_bug.cgi?id=43753
2107
2108         This change guards the entire contents of the V8 custom bindings files
2109         with ENABLE(GEOLOCATION) to match JSC.
2110
2111         No new tests, build fix only.
2112
2113         * bindings/v8/custom/V8CustomPositionCallback.cpp:
2114         * bindings/v8/custom/V8CustomPositionErrorCallback.cpp:
2115         * bindings/v8/custom/V8GeolocationCustom.cpp:
2116
2117 2010-08-11  Kwang Yul Seo  <skyul@company100.net>
2118
2119         Reviewed by David Levin.
2120
2121         Include <wtf/UnusedParam.h> in GraphicsContextSkia.cpp
2122         https://bugs.webkit.org/show_bug.cgi?id=43843
2123
2124         wtf/UnusedParam.h must be included because UNUSED_PARAM macro is used.
2125
2126         * platform/graphics/skia/GraphicsContextSkia.cpp:
2127
2128 2010-08-11  Nico Weber  <thakis@chromium.org>
2129
2130         Reviewed by David Levin.
2131
2132         [chromium/mac]: Fix colors in compositing mode
2133         https://bugs.webkit.org/show_bug.cgi?id=43823
2134
2135         The textures are drawn by opengl, which doesn't do any color space
2136         correction -- it assumes everything is in the device color space
2137         already. Hence, when drawing into the memory that will be uploaded
2138         as opengl texture, use the device color space.
2139
2140         * platform/graphics/chromium/ImageLayerChromium.cpp:
2141         (WebCore::ImageLayerChromium::updateTextureContents):
2142         * platform/graphics/chromium/LayerChromium.cpp:
2143         (WebCore::LayerChromium::updateTextureContents):
2144         * platform/graphics/chromium/LayerRendererChromium.cpp:
2145         (WebCore::LayerRendererChromium::setRootLayerCanvasSize):
2146
2147 2010-08-11  Kenneth Russell  <kbr@google.com>
2148
2149         Reviewed by Dimitri Glazkov.
2150
2151         Remove obsolete texImage2D and texSubImage2D entry points
2152         https://bugs.webkit.org/show_bug.cgi?id=40320
2153
2154         No new tests; covered by existing WebGL tests.
2155
2156         * html/canvas/WebGLRenderingContext.cpp:
2157         * html/canvas/WebGLRenderingContext.h:
2158         * html/canvas/WebGLRenderingContext.idl:
2159
2160 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
2161
2162         Windows build fix.
2163
2164         * platform/win/BString.cpp:
2165         (WebCore::BString::BString):
2166
2167 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
2168
2169         Qt build fix II.
2170
2171         * WebCore.xcodeproj/project.pbxproj:
2172         * bridge/qt/qt_runtime.cpp:
2173         (JSC::Bindings::convertValueToQVariant):
2174
2175 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
2176
2177         Qt build fix.
2178
2179         * WebCore.xcodeproj/project.pbxproj:
2180         * bridge/qt/qt_runtime.cpp:
2181         (JSC::Bindings::convertValueToQVariant):
2182
2183 2010-08-11  Steve Block  <steveblock@google.com>
2184
2185         Reviewed by Jeremy Orlow.
2186
2187         Need EmptyDeviceOrientationClient and EmptyDeviceMotionClient for use with SVGImage
2188         https://bugs.webkit.org/show_bug.cgi?id=43848
2189
2190         Tested by existing DeviceOrientation tests.
2191
2192         * loader/EmptyClients.h:
2193         (WebCore::EmptyDeviceMotionClient::setController):
2194         (WebCore::EmptyDeviceMotionClient::startUpdating):
2195         (WebCore::EmptyDeviceMotionClient::stopUpdating):
2196         (WebCore::EmptyDeviceMotionClient::currentDeviceMotion):
2197         (WebCore::EmptyDeviceOrientationClient::setController):
2198         (WebCore::EmptyDeviceOrientationClient::startUpdating):
2199         (WebCore::EmptyDeviceOrientationClient::stopUpdating):
2200         (WebCore::EmptyDeviceOrientationClient::lastOrientation):
2201         * svg/graphics/SVGImage.cpp:
2202         (WebCore::SVGImage::dataChanged):
2203
2204 2010-08-11  Rob Buis  <rwlbuis@gmail.com>
2205
2206         Reviewed by Dan Bernstein.
2207
2208         https://bugs.webkit.org/show_bug.cgi?id=42042
2209         An empty value for xml:lang isn't considered
2210
2211         Revert last line change of my patch ; it happens to
2212         behave correctly and same as before, but makes the
2213         use case of empty values unneededly slower.
2214
2215         No new tests. (No change in behavior)
2216
2217         * css/CSSStyleSelector.cpp:
2218         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
2219
2220 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
2221
2222         [wx, WebDOM] Build fix. Fix callback params and WebCore::String -> WTF::String fixes.
2223
2224         * bindings/cpp/WebDOMCustomVoidCallback.cpp: Added.
2225         (WebDOMCustomVoidCallback::WebDOMCustomVoidCallback):
2226         (WebDOMCustomVoidCallback::~WebDOMCustomVoidCallback):
2227         (WebDOMCustomVoidCallback::handleEvent):
2228         (toWebCore):
2229         * bindings/cpp/WebDOMCustomVoidCallback.h: Added.
2230         (WebDOMCustomVoidCallback::create):
2231         * bindings/cpp/WebDOMHTMLDocumentCustom.cpp:
2232         (documentWrite):
2233         * bindings/cpp/WebDOMString.cpp:
2234         (WebDOMString::equals):
2235         * bindings/scripts/CodeGeneratorCPP.pm:
2236         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
2237         (WebDOMTestCallback::callbackWithClass1Param):
2238         (WebDOMTestCallback::callbackWithClass2Param):
2239         (WebDOMTestCallback::callbackWithNonBoolReturnType):
2240         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
2241         * bindings/scripts/test/V8/V8TestInterface.h:
2242         * bindings/scripts/test/V8/V8TestObj.h:
2243         * wscript:
2244
2245 2010-08-11  Gavin Barraclough  <barraclough@apple.com>
2246
2247         Rubber stamps by Darin Adler & Sam Weinig.
2248
2249         Bug 43867 - Some UString cleanup
2250
2251         Change JSC::UString data(), size(), and from(), to characters(), length(), and number() to match WTF::String.
2252         Move string concatenation methods to a new header to simplify down UString.h.  Remove is8Bit().
2253
2254         * WebCore.xcodeproj/project.pbxproj:
2255         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2256         (WebCore::hasCSSPropertyNamePrefix):
2257         (WebCore::cssPropertyName):
2258         * bindings/js/JSLocationCustom.cpp:
2259         (WebCore::JSLocation::setPort):
2260         * bindings/js/ScriptDebugServer.cpp:
2261         (WebCore::ScriptDebugServer::dispatchDidParseSource):
2262         * bindings/js/ScriptString.h:
2263         (WebCore::ScriptString::size):
2264         * bindings/js/ScriptValue.cpp:
2265         (WebCore::jsToInspectorValue):
2266         * bindings/objc/WebScriptObject.mm:
2267         (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
2268         * bridge/jni/jni_jsobject.mm:
2269         (JavaJSObject::convertValueToJObject):
2270         * bridge/jni/jsc/JNIUtilityPrivate.cpp:
2271         (JSC::Bindings::convertArrayInstanceToJavaArray):
2272         (JSC::Bindings::convertValueToJValue):
2273         * bridge/objc/objc_runtime.mm:
2274         (JSC::Bindings::callObjCFallbackObject):
2275
2276 2010-08-10  David Hyatt  <hyatt@apple.com>
2277
2278         Reviewed by Dan Bernstein.
2279
2280         https://bugs.webkit.org/show_bug.cgi?id=43806, add ability to paginate screen content.
2281         
2282         Add a new boolean to Document to indicate that content should be paginated.  This is checked when doing page breaks
2283         and in a couple of other cases.
2284
2285         * dom/Document.cpp:
2286         (WebCore::Document::Document):
2287         * dom/Document.h:
2288         (WebCore::Document::paginatedForScreen):
2289         (WebCore::Document::setPaginatedForScreen):
2290         (WebCore::Document::paginated):
2291         * rendering/RenderBlock.cpp:
2292         (WebCore::RenderBlock::paintChildren):
2293         (WebCore::RenderBlock::calcColumnWidth):
2294         * rendering/RenderBox.cpp:
2295         (WebCore::RenderBox::calcHeight):
2296         * rendering/RenderView.cpp:
2297         (WebCore::RenderView::paint):
2298
2299 2010-08-11  Adam Barth  <abarth@webkit.org>
2300
2301         Windows build fix.  Turns out we need to unconditionally include
2302         HTMLEntityNames.cpp now that LegacyHTMLDocumentParser doesn't exist.
2303
2304         * html/HTMLEntityParser.cpp:
2305
2306 2010-08-11  Eric Carlson  <eric.carlson@apple.com>
2307
2308         Reviewed by Darin Adler.
2309
2310         Inserting a <source> element should immediately set networkState to NETWORK_NO_SOURCE.
2311         https://bugs.webkit.org/show_bug.cgi?id=42897
2312
2313         A <source> element inserted as a child of a media element with a networkState of NETWORK_EMPTY
2314         should cause the networkState to immediately change to NETWORK_NO_SOURCE.
2315
2316         * WebCore.xcodeproj/project.pbxproj:
2317         * html/HTMLMediaElement.cpp:
2318         (WebCore::HTMLMediaElement::HTMLMediaElement): Remove unused variable m_processingLoad.
2319         (WebCore::HTMLMediaElement::prepareForLoad): Set m_networkState to NETWORK_NO_SOURCE.
2320         (WebCore::HTMLMediaElement::loadInternal): Remove unused variable m_processingLoad.
2321         (WebCore::HTMLMediaElement::selectMediaResource): No need to change m_networkState, it was done in prepareForLoad.
2322         * html/HTMLMediaElement.h:
2323
2324         * html/HTMLSourceElement.cpp:
2325         (WebCore::HTMLSourceElement::insertedIntoTree): Renamed from insertedIntoDocument because we want
2326         to do this setup whether or not the parent media element is in the document.
2327         * html/HTMLSourceElement.h:
2328
2329 2010-08-11  Adam Barth  <abarth@webkit.org>
2330
2331         Rubber-stamped by Eric Seidel.
2332
2333         Delete LegacyHTMLDocumentParser and LegacyPreloadScanner
2334         https://bugs.webkit.org/show_bug.cgi?id=43836
2335
2336         These classes are bit-rotting disturbingly quickly.  We removed the
2337         last dependencies on these classes and so we can remove them.
2338
2339         We might need to preserve some of their particular quirks to handle
2340         some legacy applications, but our current thinking is to do that with
2341         individual settings that affect the new parser.
2342
2343         * Android.mk:
2344         * CMakeLists.txt:
2345         * GNUmakefile.am:
2346         * WebCore.gypi:
2347         * WebCore.pro:
2348         * WebCore.vcproj/WebCore.vcproj:
2349         * WebCore.xcodeproj/project.pbxproj:
2350         * dom/Document.cpp:
2351         * dom/DocumentFragment.cpp:
2352         (WebCore::DocumentFragment::parseHTML):
2353         * dom/DocumentParser.h:
2354         * dom/XMLDocumentParserLibxml2.cpp:
2355         * dom/XMLDocumentParserQt.cpp:
2356         * html/HTMLConstructionSite.cpp:
2357         * html/HTMLDocument.cpp:
2358         (WebCore::HTMLDocument::createParser):
2359         * html/HTMLEntityParser.cpp:
2360         (WebCore::decodeNamedEntity):
2361         * html/HTMLEntityParser.h:
2362         * html/HTMLFormControlElement.cpp:
2363         * html/HTMLTreeBuilder.cpp:
2364         * html/HTMLViewSourceDocument.cpp:
2365         (WebCore::HTMLViewSourceDocument::createParser):
2366         * html/LegacyHTMLDocumentParser.cpp: Removed.
2367         * html/LegacyHTMLDocumentParser.h: Removed.
2368         * html/LegacyHTMLTreeBuilder.cpp:
2369         * html/LegacyPreloadScanner.cpp: Removed.
2370         * html/LegacyPreloadScanner.h: Removed.
2371         * loader/FTPDirectoryDocument.cpp:
2372         (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser):
2373         (WebCore::FTPDirectoryDocumentParser::appendEntry):
2374         (WebCore::FTPDirectoryDocumentParser::createTDForFilename):
2375         (WebCore::processFilesizeString):
2376         (WebCore::wasLastDayOfMonth):
2377         (WebCore::processFileDateString):
2378         (WebCore::FTPDirectoryDocumentParser::parseAndAppendOneLine):
2379         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
2380         (WebCore::FTPDirectoryDocumentParser::createBasicDocument):
2381         (WebCore::FTPDirectoryDocumentParser::append):
2382         (WebCore::FTPDirectoryDocumentParser::finish):
2383         * page/XSSAuditor.cpp:
2384         (WebCore::XSSAuditor::decodeHTMLEntities):
2385         * page/XSSAuditor.h:
2386         * platform/text/SegmentedString.cpp:
2387         (WebCore::SegmentedString::prepend):
2388
2389 2010-08-11  Chris Jerdonek  <cjerdonek@webkit.org>
2390
2391         Reviewed by Adam Barth.
2392
2393         Refactored FrameLoader::createWindow() out of the FrameLoader class
2394         since FrameLoader should not be responsible for creating windows.
2395
2396         https://bugs.webkit.org/show_bug.cgi?id=39156
2397
2398         No new functionality, so no new tests.
2399
2400         * bindings/generic/BindingDOMWindow.h:
2401         (WebCore::::createWindow):
2402           - Updated the call to FrameLoader's createWindow().
2403         * bindings/js/JSDOMWindowCustom.cpp:
2404         (WebCore::createWindow):
2405           - Updated the call to FrameLoader's createWindow().
2406         * loader/FrameLoader.cpp:
2407         (WebCore::createWindowFromFrameLoader):
2408           - Made FrameLoader::createWindow() non-member, non-friend and changed it
2409             to accept Frame* parameters instead of FrameLoader*.
2410         * loader/FrameLoader.h:
2411           - Updated the header file to reflect the above change to FrameLoader.cpp.
2412
2413 2010-08-11  Ilya Tikhonovsky  <loislo@chromium.org>
2414
2415         Reviewed by Pavel Feldman.
2416
2417         WebInspector: small refactoring for CodeGeneratorInspector.
2418         all "notify" methods are generating in InspectorFrontend
2419         the other methods are generating in InspectorBackend.
2420         https://bugs.webkit.org/show_bug.cgi?id=43849
2421
2422         * inspector/CodeGeneratorInspector.pm:
2423
2424 2010-08-11  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
2425
2426         Reviewed by Xan Lopez.
2427
2428         [GTK] Misc improvements to the scrolling code
2429         https://bugs.webkit.org/show_bug.cgi?id=41926
2430
2431         Refactor code that uses deprecated ways of dealing with the
2432         adjustments to use the GtkVersioning infrastructure.
2433
2434         * GNUmakefile.am:
2435         * platform/gtk/GtkVersioning.cpp: Added.
2436         * platform/gtk/GtkVersioning.h:
2437         * platform/gtk/ScrollViewGtk.cpp:
2438         * platform/gtk/ScrollbarGtk.cpp:
2439         (ScrollbarGtk::detachAdjustment):
2440         (ScrollbarGtk::updateThumbPosition):
2441         (ScrollbarGtk::updateThumbProportion):
2442
2443 2010-08-11  Nate Chapin  <japhet@chromium.org>
2444
2445         Chromium mac build fix (variables weren't being initialized).
2446
2447         * platform/graphics/filters/FEGaussianBlur.cpp: 
2448         (WebCore::FEGaussianBlur::apply): Initalize dxLeft, dxRight, dyLeft, dyRight.
2449
2450 2010-08-11  Pavel Feldman  <pfeldman@chromium.org>
2451
2452         Reviewed by Yury Semikhatsky.
2453
2454         Web Inspector: apply correct fix to storage panel status bar buttons.
2455
2456         https://bugs.webkit.org/show_bug.cgi?id=43846
2457
2458         * inspector/front-end/DatabaseTableView.js:
2459         (WebInspector.DatabaseTableView.prototype.get statusBarItems):
2460         * inspector/front-end/StoragePanel.js:
2461         (WebInspector.StoragePanel.prototype._genericViewSetup):
2462
2463 2010-08-11  Kevin Ollivier  <kevino@theolliviers.com>
2464
2465         Reviewed by Adam Barth.
2466
2467         Override operator= for C++ DOM binding classes with private structs
2468         and update C++ DOM bindings test results.
2469         https://bugs.webkit.org/show_bug.cgi?id=43735
2470
2471         * bindings/cpp/WebDOMEventTarget.cpp:
2472         (WebDOMEventTarget::operator=):
2473         * bindings/cpp/WebDOMEventTarget.h:
2474         * bindings/scripts/CodeGeneratorCPP.pm:
2475         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
2476         (WebDOMTestCallback::operator=):
2477         * bindings/scripts/test/CPP/WebDOMTestCallback.h:
2478         * bindings/scripts/test/CPP/WebDOMTestInterface.cpp:
2479         (WebDOMTestInterface::operator=):
2480         * bindings/scripts/test/CPP/WebDOMTestInterface.h:
2481         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
2482         (WebDOMTestObj::operator=):
2483         * bindings/scripts/test/CPP/WebDOMTestObj.h:
2484
2485 2010-08-11  Julie Parent  <jparent@chromium.org>
2486
2487         Reviewed by Justin Garcia.
2488
2489         Crash in replaceSelectionCommand with RTL text.
2490         https://bugs.webkit.org/show_bug.cgi?id=41485
2491         
2492         For text with mixed directionality, sort the text boxes before
2493         computing gaps, since that code assumes the boxes are in order.
2494
2495         Test: editing/execCommand/insert-image-on-top-of-directional-text.html
2496
2497         * editing/CompositeEditCommand.cpp:
2498         (WebCore::CompositeEditCommand::deleteInsignificantText): Sort boxes
2499         like we do in TextIterator before computing gaps.
2500         * editing/TextIterator.cpp:
2501         (WebCore::TextIterator::handleTextNode): Use new compareByStart
2502         rather than compareBoxStart.  No functional change.
2503         * rendering/InlineTextBox.h:
2504         (WebCore::InlineTextBox::compareByStart): Moved compareBoxStart
2505         from TextIterator here so it can be used in multiple places.
2506
2507 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
2508
2509         Unreviewed build fix of Leopard Intel Debug (Build)
2510
2511         * websockets/WebSocketChannel.cpp:
2512         (WebCore::WebSocketChannel::processBuffer): use %lu, instead of %ul
2513
2514 2010-08-11  Alejandro G. Castro  <alex@igalia.com>
2515
2516         Reviewed by Dirk Schulze.
2517
2518         Fixes to the gaussian blur algorithm
2519         https://bugs.webkit.org/show_bug.cgi?id=41605
2520
2521         Added the recomendations of SVG regarding the kernel size
2522         calculation for the approximation of the gaussian
2523         blur. http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement.
2524         Modified also some variable names to clarify algorithm, reviewed
2525         the situation where both standard deviations are 0.
2526
2527         * platform/graphics/filters/FEGaussianBlur.cpp:
2528         (WebCore::FEGaussianBlur::FEGaussianBlur):
2529         (WebCore::FEGaussianBlur::stdDeviationX):
2530         (WebCore::FEGaussianBlur::setStdDeviationX):
2531         (WebCore::FEGaussianBlur::stdDeviationY):
2532         (WebCore::FEGaussianBlur::setStdDeviationY):
2533         (WebCore::boxBlur):
2534         (WebCore::FEGaussianBlur::kernelPosition): Added the SVG kernel
2535         position recomendation.
2536         (WebCore::FEGaussianBlur::apply):
2537         (WebCore::FEGaussianBlur::externalRepresentation):
2538         * platform/graphics/filters/FEGaussianBlur.h:
2539
2540 2010-08-11  Kristian Monsen  <kristianm@google.com>
2541
2542         Reviewed by Steve Block.
2543
2544         Compile fix for Android, added include for <wtf/text/Cstring.h, this
2545         did not get included in Android.
2546         https://bugs.webkit.org/show_bug.cgi?id=41517
2547         
2548         Build fix only, no new tests.
2549
2550         * page/PrintContext.cpp:
2551
2552 2010-08-11  Fumitoshi Ukai  <ukai@chromium.org>
2553
2554         Reviewed by Alexey Proskuryakov.
2555
2556         Fix length calculation to be more robust.
2557         https://bugs.webkit.org/show_bug.cgi?id=43777
2558
2559         Test: websocket/tests/frame-length-overflow.html
2560
2561         * websockets/WebSocketChannel.cpp:
2562         (WebCore::WebSocketChannel::appendToBuffer): len is size_t.
2563          - add sanity check for integer wraps.
2564         (WebCore::WebSocketChannel::skipBuffer): len is size_t.
2565         (WebCore::WebSocketChannel::processBuffer): length is size_t.
2566          - add sanity check for integer wraps.
2567         * websockets/WebSocketChannel.h: change m_bufferSize and len to size_t.
2568
2569 2010-08-10  Eric Seidel  <eric@webkit.org>
2570
2571         Reviewed by Adam Barth.
2572
2573         Fix three ASSERTs hit with the HTML5 TreeBuilder in fragment mode
2574         https://bugs.webkit.org/show_bug.cgi?id=43762
2575
2576         In fixing the insertAdjacentHTML I had to make small changes to
2577         the error logic, which ended up bringing us closer to HTML5.
2578
2579         Test: fast/dom/HTMLElement/insertAdjacentHTML-errors.html
2580
2581         * html/HTMLConstructionSite.cpp:
2582         (WebCore::HTMLConstructionSite::attach):
2583          - This ASSERT was just wrong, the child should not be attached
2584            in the case the parent is not attached.
2585         * html/HTMLElement.cpp:
2586         (WebCore::contextElementForInsertion):
2587          - This is part of HTML5, needed to know what to call the
2588            HTML or XML parsers with.  The previous code always passed
2589            "this" which is wrong in the case of beforeBegin or afterEnd insertion.
2590         (WebCore::HTMLElement::insertAdjacentHTML):
2591          - Use the right contextElement now that we know how to compute it.
2592         * html/HTMLTreeBuilder.cpp:
2593         (WebCore::HTMLTreeBuilder::processEndTagForInCell):
2594          - This ASSERT is direct from the spec, but it's wrong, so I've filed a spec bug.
2595
2596 2010-08-11  Adam Barth  <abarth@webkit.org>
2597
2598         Attempt to fix Windows build.
2599
2600         * platform/win/COMPtr.h:
2601         (WTF::):
2602
2603 2010-08-11  Adam Barth  <abarth@webkit.org>
2604
2605         Reviewed by Eric Seidel.
2606
2607         Port view-source to new parser
2608         https://bugs.webkit.org/show_bug.cgi?id=43746
2609
2610         This patch switches the view-source mode for frames over to using the
2611         new HTML parsing infrastructure.  This patch is an architectural change
2612         to how we parser view source documents.
2613
2614         Previously, the LegacyHTMLDocumentParser would output a "guide string"
2615         that consided of the inter-attribute whitespace and various "control"
2616         characters.  The HTMLViewSourceDocument would then interpret this guide
2617         string to approximately reconstruct the source of the original document
2618         and colorize various syntatic constructs.
2619
2620         Unfortunately, that approach is inherently low-fidelity.  It's not
2621         really feasible to reconstruct the input document from the token
2622         stream.  The old view source mode also had a number of hacks in the old
2623         parser (e.g., to turn of decoding of HTML entities).
2624
2625         Instead of trying to reconstruct the original document from the token
2626         stream, we use the segmentation information given by the tokens to
2627         colorize the input document itself.  Each token now caries information
2628         about where in the input stream it came from and where various
2629         subcomponents (e.g., attribute names and values) are located.  This
2630         approach is higher fidelity because we use this segmentation
2631         information to colorize the original input instead of attempting to
2632         reconstruct the original input.
2633
2634         * Android.mk:
2635         * CMakeLists.txt:
2636         * GNUmakefile.am:
2637         * WebCore.gypi:
2638         * WebCore.pro:
2639         * WebCore.vcproj/WebCore.vcproj:
2640         * WebCore.xcodeproj/project.pbxproj:
2641         * html/HTMLDocumentParser.cpp:
2642         * html/HTMLToken.h:
2643         (WebCore::HTMLToken::clear):
2644         (WebCore::HTMLToken::startIndex):
2645         (WebCore::HTMLToken::length):
2646         (WebCore::HTMLToken::end):
2647         * html/HTMLViewSourceDocument.cpp:
2648         (WebCore::HTMLViewSourceDocument::createParser):
2649         (WebCore::HTMLViewSourceDocument::addSource):
2650         (WebCore::HTMLViewSourceDocument::processDoctypeToken):
2651         (WebCore::HTMLViewSourceDocument::processTagToken):
2652         (WebCore::HTMLViewSourceDocument::processCommentToken):
2653         (WebCore::HTMLViewSourceDocument::processCharacterToken):
2654         (WebCore::HTMLViewSourceDocument::addRange):
2655         * html/HTMLViewSourceDocument.h:
2656         * html/HTMLViewSourceParser.cpp: Added.
2657         (WebCore::HTMLViewSourceParser::~HTMLViewSourceParser):
2658         (WebCore::HTMLViewSourceParser::insert):
2659         (WebCore::HTMLViewSourceParser::pumpTokenizer):
2660         (WebCore::HTMLViewSourceParser::append):
2661         (WebCore::HTMLViewSourceParser::sourceForToken):
2662         (WebCore::HTMLViewSourceParser::updateTokenizerState):
2663         (WebCore::HTMLViewSourceParser::finish):
2664         (WebCore::HTMLViewSourceParser::finishWasCalled):
2665         * html/HTMLViewSourceParser.h: Added.
2666         (WebCore::HTMLViewSourceParser::HTMLViewSourceParser):
2667         (WebCore::HTMLViewSourceParser::document):
2668         * html/LegacyHTMLDocumentParser.cpp:
2669         (WebCore::LegacyHTMLDocumentParser::processToken):
2670         (WebCore::LegacyHTMLDocumentParser::processDoctypeToken):
2671
2672 2010-08-11  Yoshiki Hayashi  <yhayashi@google.com>
2673
2674         Reviewed by Shinichiro Hamaji.
2675
2676         Make form controls, textarea, legend and datagrid treat width:
2677         auto as specified in stretching vertical flexbox.  Otherwise it's
2678         treated as intrinsic as before.
2679         https://bugs.webkit.org/show_bug.cgi?id=17918
2680
2681         Test: fast/flexbox/vertical-box-form-controls.html
2682
2683         * css/CSSStyleSelector.cpp:
2684         (WebCore::CSSStyleSelector::adjustRenderStyle):
2685         * rendering/RenderBox.cpp:
2686         (WebCore::RenderBox::sizesToIntrinsicWidth):
2687
2688 2010-08-10  Darin Adler  <darin@apple.com>
2689
2690         Reviewed by Sam Weinig.
2691
2692         Add leakRef and clear to all RefPtr variants
2693         https://bugs.webkit.org/show_bug.cgi?id=42389
2694
2695         * platform/win/COMPtr.h: Changed all uses of "template <...>" to instead do
2696         "template<...>". Defined many of the inlined functions outside the class
2697         definition, to avoid style checker warnings about multiple statements on
2698         a single line and for slightly better clarity of the class definition itself.
2699         Renamed releaseRef to leakRef. Added a releaseRef that calls leakRef so we
2700         don't have to rename all callers at once. Added a clear function. Changed
2701         the hash table code so it doesn't need to call releaseRef, and so it uses
2702         the hash table deleted value hooks already present within the class.
2703
2704 2010-08-10  Ariya Hidayat  <ariya@sencha.com>
2705
2706         [Qt] Fix build warning: remove reference to html/BlobRegistryImp.h
2707
2708         * WebCore.pro:
2709
2710 2010-08-10  Alexey Proskuryakov  <ap@apple.com>
2711
2712         Reviewed by Darin Adler.
2713
2714         https://bugs.webkit.org/show_bug.cgi?id=43803
2715         <rdar://problem/6988023> Only the last Korean character can be shown if font style is enabled while typing (43803)
2716
2717         Test: platform/mac/editing/input/bold-node.html
2718
2719         * editing/Editor.cpp: (WebCore::Editor::setComposition): It is not clear to me what the
2720         "baseNode == extentNode" check is about in this function , but let's try to make it more
2721         likely that it passes.
2722
2723 2010-08-10  Hayato Ito  <hayato@chromium.org>
2724
2725         Reviewed by Kent Tamura.
2726
2727         Make CSSSelector::specificity() non-recursive.
2728         https://bugs.webkit.org/show_bug.cgi?id=43784
2729
2730         This change is one of the required changes to fix the following master bug:
2731         https://bugs.webkit.org/show_bug.cgi?id=42806
2732
2733         No functional change, thus no tests.
2734
2735         * css/CSSSelector.cpp:
2736         (WebCore::CSSSelector::specificity):
2737         (WebCore::CSSSelector::specificityForOneSelector):
2738         (WebCore::CSSSelector::specificityForPage):
2739         * css/CSSSelector.h:
2740
2741 2010-08-10  Matthew Delaney  <mdelaney@apple.com>
2742
2743         Reviewed by Darin Adler.
2744
2745         2d.path.clip.empty.html test is failing
2746         https://bugs.webkit.org/show_bug.cgi?id=43161
2747
2748         * platform/graphics/cg/GraphicsContextCG.cpp:
2749         (WebCore::GraphicsContext::clip):
2750         Catching the empty path case from being sent directly to 
2751         CGContextClip - which would ignore it. Instead, using 
2752         CGContextClip with a CGRectZero to achieve the desired
2753         behavior of reducing the clipping region to nothing.
2754
2755 2010-08-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2756
2757         Reviewed by Antonio Gomes.
2758
2759         [EFL] Add video files to enable video in WebKit EFL
2760         https://bugs.webkit.org/show_bug.cgi?id=43790
2761
2762         Add files regarding html5 video to CMakeList.txt for WebKit Efl.
2763         But, this patch is not run html5 video on WebKit EFL yet.
2764
2765         * CMakeLists.txt: Add files related to html5video.
2766         * platform/efl/LocalizedStringsEfl.cpp: Add functions for html5 video.
2767         (WebCore::localizedMediaControlElementString):
2768         (WebCore::localizedMediaControlElementHelpText):
2769         (WebCore::localizedMediaTimeDescription):
2770         * platform/graphics/MediaPlayer.cpp:
2771         (WebCore::installedMediaEngines): Disable MediaPlayerPrivate::r
2772       egisterMediaEngine for WebKit EFL.
2773
2774 2010-08-10  Patrick Gansterer  <paroga@paroga.com>
2775
2776         Reviewed by Nikolas Zimmermann.
2777
2778         Add a toRenderSVGImage function
2779         https://bugs.webkit.org/show_bug.cgi?id=43789
2780
2781         Add a function for casting to RenderSVGImage and use it.
2782
2783         * rendering/RenderSVGImage.h:
2784         (WebCore::toRenderSVGImage):
2785         * rendering/RenderTreeAsText.cpp:
2786         (WebCore::write):
2787         * rendering/SVGRenderTreeAsText.cpp:
2788         (WebCore::writeSVGImage):
2789         * rendering/SVGRenderTreeAsText.h:
2790         * svg/SVGImageElement.cpp:
2791         (WebCore::SVGImageElement::attach):
2792
2793 2010-08-10  Adam Barth  <abarth@webkit.org>
2794
2795         Reviewed by Eric Seidel.
2796
2797         Clients of HTMLTokenizer should be able to see where characters went in the token
2798         https://bugs.webkit.org/show_bug.cgi?id=43766
2799
2800         When viewing the source of a document, we want to colorize different
2801         parts of the input depending on how they were tokenized.  In this
2802         patch, we expose the internal segmentation of a token by recording the
2803         start and end offsets for each attribute name and each attribute value.
2804
2805         * html/HTMLToken.h:
2806         (WebCore::HTMLToken::addNewAttribute):
2807         (WebCore::HTMLToken::beginAttributeName):
2808         (WebCore::HTMLToken::endAttributeName):
2809         (WebCore::HTMLToken::beginAttributeValue):
2810         (WebCore::HTMLToken::endAttributeValue):
2811         (WebCore::HTMLToken::appendToAttributeName):
2812         (WebCore::HTMLToken::appendToAttributeValue):
2813         (WebCore::AtomicHTMLToken::AtomicHTMLToken):
2814         * html/HTMLTokenizer.cpp:
2815         (WebCore::HTMLTokenizer::nextToken):
2816
2817 2010-08-10  Dumitru Daniliuc  <dumi@chromium.org>
2818
2819         Reviewed by David Levin.
2820
2821         Do not post a sync task to the DB thread if it's terminating.
2822         https://bugs.webkit.org/show_bug.cgi?id=43676
2823
2824         * bindings/generic/ActiveDOMCallback.cpp: The context can
2825         sometimes be NULL. Check if it's NULL instead of asserting that
2826         it's not.
2827         (WebCore::ActiveDOMCallback::ActiveDOMCallback):
2828         * dom/ActiveDOMObject.cpp:
2829         (WebCore::ActiveDOMObject::ActiveDOMObject):
2830
2831         * storage/Database.cpp: Do not post a sync task to the DB thread
2832         if the DB thread is terminating. Also, when a task is destroyed,
2833         ASSERT that it was completed, or that it had no synchronizer.
2834         (WebCore::Database::openAndVerifyVersion):
2835         (WebCore::Database::markAsDeletedAndClose):
2836         (WebCore::Database::tableNames):
2837         * storage/DatabaseTask.cpp:
2838         (WebCore::DatabaseTaskSynchronizer::DatabaseTaskSynchronizer):
2839         (WebCore::DatabaseTask::~DatabaseTask):
2840         (WebCore::DatabaseTask::performTask):
2841         * storage/DatabaseTask.h:
2842         (WebCore::DatabaseTaskSynchronizer::hasCheckedForTermination):
2843         (WebCore::DatabaseTaskSynchronizer::setHasCheckedForTermination):
2844         (WebCore::DatabaseTask::hasSynchronizer):
2845         (WebCore::DatabaseTask::hasCheckedForTermination):
2846         * storage/DatabaseThread.cpp:
2847         (WebCore::DatabaseThread::terminationRequested):
2848         (WebCore::DatabaseThread::scheduleTask):
2849         (WebCore::DatabaseThread::scheduleImmediateTask):
2850         * storage/DatabaseThread.h:
2851
2852 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2853
2854         Qt build fix.
2855
2856         * bridge/qt/qt_runtime.cpp:
2857         (JSC::Bindings::convertValueToQVariant):
2858
2859 2010-08-10  Jian Li  <jianli@chromium.org>
2860
2861         Fix more build break.
2862
2863         * bindings/v8/SerializedScriptValue.cpp:
2864         (WebCore::ZigZag::Reader::readBlob):
2865         (WebCore::ZigZag::Reader::readFile):
2866         * dom/ScriptExecutionContext.cpp:
2867         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
2868         (WebCore::ScriptExecutionContext::revokeBlobURL):
2869         * dom/ScriptExecutionContext.h:
2870         * html/Blob.cpp:
2871         (WebCore::Blob::slice):
2872
2873 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
2874
2875         Rubber stamped by Sam Weinig
2876
2877         Bug 43817 - Remove UString::Rep
2878         UString::Rep has for a long time been replaced by UStringImpl (Rep
2879         remaining as a typedef).  UStringImpl has since been removed too
2880         (unified with StringImpl). Remove Rep, rename rep() to impl() and
2881         m_rep to m_impl.  Also add impl() method to Identifier, and rename
2882         its UString member from _ustring to m_string.
2883
2884         * bindings/js/JSDOMBinding.cpp:
2885         (WebCore::findAtomicString):
2886         * bindings/js/JSDOMBinding.h:
2887         (WebCore::ustringToString):
2888         (WebCore::identifierToString):
2889         (WebCore::ustringToAtomicString):
2890         (WebCore::identifierToAtomicString):
2891         * bindings/js/SerializedScriptValue.h:
2892         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
2893         * bridge/IdentifierRep.cpp:
2894         (WebCore::IdentifierRep::get):
2895         * bridge/c/c_class.cpp:
2896         (JSC::Bindings::CClass::methodsNamed):
2897         (JSC::Bindings::CClass::fieldNamed):
2898         * bridge/jni/jsc/JavaClassJSC.cpp:
2899         (JavaClass::JavaClass):
2900         (JavaClass::methodsNamed):
2901         (JavaClass::fieldNamed):
2902         * bridge/jni/jsc/JavaStringJSC.h:
2903         (JSC::Bindings::JavaStringImpl::~JavaStringImpl):
2904         (JSC::Bindings::JavaStringImpl::init):
2905         (JSC::Bindings::JavaStringImpl::UTF8String):
2906         (JSC::Bindings::JavaStringImpl::uchars):
2907         (JSC::Bindings::JavaStringImpl::length):
2908         (JSC::Bindings::JavaStringImpl::uString):
2909         * bridge/jsc/BridgeJSC.h:
2910
2911 2010-08-10  Jian Li  <jianli@chromium.org>
2912
2913         Fix qt build break.
2914
2915         * html/BlobRegistryImpl.cpp:
2916         * html/BlobRegistryImpl.h:
2917         * html/BlobURL.cpp:
2918         * html/BlobURL.h:
2919         * platform/BlobRegistry.h:
2920
2921 2010-08-10  Jian Li  <jianli@chromium.org>
2922
2923         Reviewed by David Levin.
2924
2925         Add the support to register the blob data.
2926         https://bugs.webkit.org/show_bug.cgi?id=43600
2927
2928         This is the first step towards adding Blob URL support. The blob has
2929         an internal URL (used by FileReader) and public URLs (used by Blob.url).
2930         The URL and its associated data are managed by BlobRegistry interface.
2931
2932         This patch does not remove the usage of BlobItem. It will be removed
2933         when all the blob data support is hooked up and the new tests will be
2934         added then.
2935
2936         * CMakeLists.txt:
2937         * GNUmakefile.am:
2938         * WebCore.gypi:
2939         * WebCore.pro:
2940         * WebCore.vcproj/WebCore.vcproj:
2941         * WebCore.xcodeproj/project.pbxproj:
2942         * bindings/js/SerializedScriptValue.cpp:
2943         (WebCore::SerializedBlob::create):
2944         (WebCore::SerializedBlob::url):
2945         (WebCore::SerializedBlob::type):
2946         (WebCore::SerializedBlob::size):
2947         (WebCore::SerializedBlob::SerializedBlob):
2948         (WebCore::SerializedFile::create):
2949         (WebCore::SerializedFile::path):
2950         (WebCore::SerializedFile::url):
2951         (WebCore::SerializedFile::type):
2952         (WebCore::SerializedFile::SerializedFile):
2953         (WebCore::SerializedFileList::item):
2954         (WebCore::SerializedFileList::SerializedFileList):
2955         (WebCore::SerializedScriptValueData::SerializedScriptValueData):
2956         (WebCore::SharedSerializedData::asBlob):
2957         (WebCore::SharedSerializedData::asFile):
2958         (WebCore::SerializingTreeWalker::convertIfTerminal):
2959         (WebCore::DeserializingTreeWalker::convertIfTerminal):
2960         (WebCore::TeardownTreeWalker::convertIfTerminal):
2961         * bindings/js/SerializedScriptValue.h:
2962         (WebCore::SerializedScriptValueData::):
2963         (WebCore::SerializedScriptValueData::asString):
2964         (WebCore::SerializedScriptValueData::asBlob):
2965         (WebCore::SerializedScriptValueData::asFile):
2966         * bindings/v8/SerializedScriptValue.cpp:
2967         (WebCore::ZigZag::Writer::writeBlob):
2968         (WebCore::ZigZag::Writer::writeFile):
2969         (WebCore::ZigZag::Writer::writeFileList):
2970         (WebCore::ZigZag::Writer::doWriteUintHelper):
2971         (WebCore::ZigZag::Writer::doWriteUint32):
2972         (WebCore::ZigZag::Writer::doWriteUint64):
2973         (WebCore::ZigZag::Serializer::writeBlob):
2974         (WebCore::ZigZag::Serializer::writeFile):
2975         (WebCore::ZigZag::Reader::readBlob):
2976         (WebCore::ZigZag::Reader::readFile):
2977         (WebCore::ZigZag::Reader::readFileList):
2978         (WebCore::ZigZag::Reader::doReadUintHelper):
2979         (WebCore::ZigZag::Reader::doReadUint32):
2980         (WebCore::ZigZag::Reader::doReadUint64):
2981         * dom/ScriptExecutionContext.cpp:
2982         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
2983         (WebCore::ScriptExecutionContext::trackBlobURL):
2984         (WebCore::ScriptExecutionContext::revokeBlobURL):
2985         * dom/ScriptExecutionContext.h:
2986         * html/Blob.cpp:
2987         (WebCore::Blob::Blob):
2988         (WebCore::Blob::~Blob):
2989         (WebCore::Blob::createPublicURL):
2990         * html/Blob.h:
2991         (WebCore::Blob::create):
2992         (WebCore::Blob::url):
2993         * html/BlobRegistryImpl.cpp: Added.
2994         * html/BlobRegistryImpl.h: Added.
2995         * html/BlobStorageData.h: Added.
2996         * html/BlobURL.cpp: Added.
2997         * html/BlobURL.h: Added.
2998         * html/File.cpp:
2999         (WebCore::File::File):
3000         * html/File.h:
3001         (WebCore::File::create):
3002         * platform/BlobData.cpp: Added.
3003         * platform/BlobData.h: Added.
3004         * platform/BlobRegistry.h: Added.
3005
3006 2010-08-10  Adam Barth  <abarth@webkit.org>
3007
3008         Reviewed by Eric Seidel.
3009
3010         SegmentedString should keep track of how many characters it consumes
3011         https://bugs.webkit.org/show_bug.cgi?id=43765
3012
3013         The easiest way to keep track of how many characters we've consumed
3014         would be to increment a counter every time we advance, but that's too
3015         slow.  Instead, we keep track lazily and update our summary durning the
3016         slow case of advance (which is sufficiently rare).
3017
3018         There's some subtly to how this works w.r.t. "unconsuming" characters
3019         by pushing them back on the front of the segmented string.  This isn't
3020         really a "right answer" here because the notion of unconsuming input
3021         isn't present in the API.  This patch makes some assumptions about how
3022         clients of this class use its API.  In a future patch, we might want to
3023         rename some of the method names to make this more explicit.
3024
3025         * platform/text/SegmentedString.cpp:
3026         (WebCore::SegmentedString::operator=):
3027         (WebCore::SegmentedString::append):
3028         (WebCore::SegmentedString::prepend):
3029         (WebCore::SegmentedString::advanceSubstring):
3030         * platform/text/SegmentedString.h:
3031         (WebCore::SegmentedSubstring::numberOfCharactersConsumed):
3032         (WebCore::SegmentedString::SegmentedString):
3033         (WebCore::SegmentedString::numberOfCharactersConsumed):
3034
3035 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
3036
3037         Rubber stamped by Sam Weinig.
3038         
3039         Bug 43816 - Remove UStringImpl
3040         The class was actually removed a long time ago, replaced by StringImpl.
3041         UStringImpl is just a typedef onto StringImpl.  Remove this.
3042
3043         * WebCore.xcodeproj/project.pbxproj:
3044         * bindings/js/JSDOMBinding.cpp:
3045         (WebCore::findAtomicString):
3046
3047 2010-08-09  Stephen White  <senorblanco@chromium.org>
3048
3049         Reviewed by David Levin.
3050
3051         Prefer the medium-quality (bilinear) image resampling for 2D canvas on
3052         Chromium.
3053         https://bugs.webkit.org/show_bug.cgi?id=43646
3054         
3055         This is what the accelerated path is going to do,
3056         so do it in the software path as well.
3057
3058         * html/HTMLCanvasElement.cpp:
3059         (WebCore::HTMLCanvasElement::createImageBuffer):
3060         * platform/graphics/GraphicsContext.h:
3061
3062 2010-08-10  Chris Fleizach  <cfleizach@apple.com>
3063
3064         Reviewed by Dave Hyatt.
3065
3066         Removing an element from an anonymous block causes crash
3067         https://bugs.webkit.org/show_bug.cgi?id=42309
3068
3069         There was a case where a continuation was added as a child, but if you asked
3070         that child who is your parent, it would return the wrong answer.
3071    
3072         The specific scenario was when a sibling of an element who was the start of a 
3073         continuation was present. Retrieving the parent object had then follow the sibling
3074         chain and then follow the originating continuation chain.
3075
3076         Test: accessibility/removed-anonymous-block-child-causes-crash.html
3077
3078         * accessibility/AccessibilityRenderObject.cpp:
3079         (WebCore::AccessibilityRenderObject::nextSibling):
3080             Fix erroneous comment
3081         (WebCore::nextContinuation):
3082         (WebCore::AccessibilityRenderObject::renderParentObject):
3083             Handle unhandled continuation case.
3084         (WebCore::AccessibilityRenderObject::addChildren):
3085             ASSERT that the parentObject() is the same when adding a new child.
3086
3087 2010-08-10  Abhishek Arya  <inferno@chromium.org>
3088
3089         Reviewed by David Hyatt.
3090
3091         Take checks for ruby base existence out of the ASSERTs.
3092         https://bugs.webkit.org/show_bug.cgi?id=43795
3093
3094         Test: fast/ruby/ruby-remove-no-base.html
3095
3096         * rendering/RenderRubyRun.cpp:
3097         (WebCore::RenderRubyRun::addChild):
3098         (WebCore::RenderRubyRun::removeChild):
3099
3100 2010-08-06  Zhenyao Mo  <zmo@google.com>
3101
3102         Reviewed by Dimitri Glazkov.
3103
3104         texture functions should gen INVALID_OPERATION if no texture is bound
3105         https://bugs.webkit.org/show_bug.cgi?id=42907
3106
3107         * html/canvas/WebGLRenderingContext.cpp:
3108         (WebCore::WebGLRenderingContext::copyTexImage2D): Check if a texture is bound to target.
3109         (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
3110         (WebCore::WebGLRenderingContext::generateMipmap): Ditto.
3111         (WebCore::WebGLRenderingContext::getTexParameter): Ditto.
3112         (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
3113         (WebCore::WebGLRenderingContext::texParameter): Ditto.
3114         (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto.
3115         (WebCore::WebGLRenderingContext::validateTextureBinding): Check if target is valid and if a texture is bound to it.
3116         * html/canvas/WebGLRenderingContext.h: Declare validateTextureBinding().
3117
3118 2010-08-10  Patrick Gansterer  <paroga@paroga.com>
3119
3120         Reviewed by Sam Weinig.
3121
3122         [WINCE] Implement Path::currentPoint()
3123         https://bugs.webkit.org/show_bug.cgi?id=42927
3124
3125         * platform/graphics/wince/PathWince.cpp:
3126         (WebCore::Path::currentPoint):
3127
3128 2010-08-10  Ariya Hidayat  <ariya@sencha.com>
3129
3130         [Qt] Warning fix, remove reference to platform/text/StringImpl.h
3131
3132         * WebCore.pro:
3133
3134 2010-08-10  Alice Liu  <alice.liu@apple.com>
3135
3136         Chromium build fix attempt.  not reviewed
3137         
3138         * platform/text/TextBoundaries.cpp: use correct stringimplh include
3139
3140 2010-08-10  Jian Li  <jianli@chromium.org>
3141
3142         Chromium build fix.
3143
3144         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
3145         * platform/graphics/chromium/FontPlatformDataLinux.cpp:
3146
3147 2010-08-10  Johnny Ding  <jnd@chromium.org>
3148
3149         Reviewed by Adam Barth.
3150
3151         Change the ScriptController::processingUserGesture to static method
3152         and use dynamic(JSC binding)/entered(V8 binding) frame to check the user gesture.
3153         https://bugs.webkit.org/show_bug.cgi?id=42827.
3154
3155         Test: fast/events/popup-blocked-from-iframe-script.html
3156
3157         * WebCore.order:
3158         * bindings/js/JSDOMBinding.cpp:
3159         (WebCore::processingUserGesture):
3160         * bindings/js/JSDOMBinding.h:
3161         * bindings/js/JSDOMWindowCustom.cpp:
3162         (WebCore::JSDOMWindow::setLocation):
3163         (WebCore::createWindow):
3164         (WebCore::domWindowAllowPopUp):
3165         (WebCore::JSDOMWindow::open):
3166         (WebCore::JSDOMWindow::showModalDialog):
3167         * bindings/js/JSDocumentCustom.cpp:
3168         (WebCore::JSDocument::setLocation):
3169         * bindings/js/JSLocationCustom.cpp:
3170         (WebCore::navigateIfAllowed):
3171         (WebCore::JSLocation::reload):
3172         * bindings/js/ScriptController.cpp:
3173         (WebCore::ScriptController::processingUserGesture):
3174         * bindings/js/ScriptController.h:
3175         * bindings/scripts/CodeGeneratorJS.pm:
3176         * bindings/scripts/test/JS/JSTestObj.cpp:
3177         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
3178         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
3179         * bindings/v8/ScriptController.cpp:
3180         (WebCore::ScriptController::processingUserGesture):
3181         (WebCore::ScriptController::anyPageIsProcessingUserGesture):
3182         * bindings/v8/ScriptController.h:
3183         * bindings/v8/specialization/V8BindingState.cpp:
3184         (WebCore::::processingUserGesture):
3185         * loader/FrameLoader.cpp:
3186         (WebCore::FrameLoader::isProcessingUserGesture):
3187
3188 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
3189
3190         Chromium build fix
3191
3192         * platform/graphics/chromium/FontPlatformDataLinux.h:
3193
3194 2010-08-10  Gavin Barraclough  <barraclough@apple.com>
3195
3196         Rubber stamped by Sam Weinig.
3197
3198         Bug 43786 - Move AtomicStringHash from WebCore to WTF
3199         Also remove deprecated string headers from WebCore/platform/text.
3200
3201         * ForwardingHeaders/wtf/text/AtomicStringHash.h: Added.
3202         * GNUmakefile.am:
3203         * WebCore.gypi:
3204         * WebCore.pro:
3205         * WebCore.vcproj/WebCore.vcproj:
3206         * WebCore.xcodeproj/project.pbxproj:
3207         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3208         * bindings/cpp/WebDOMHTMLCollectionCustom.cpp:
3209         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3210         * bindings/js/JSClipboardCustom.cpp:
3211         * bindings/js/JSDOMApplicationCacheCustom.cpp:
3212         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
3213         * bindings/js/JSDOMPluginArrayCustom.cpp:
3214         * bindings/js/JSDOMPluginCustom.cpp:
3215         * bindings/js/JSDOMStringMapCustom.cpp:
3216         * bindings/js/JSDOMWindowCustom.cpp:
3217         * bindings/js/JSDataGridColumnListCustom.cpp:
3218         * bindings/js/JSHTMLAllCollectionCustom.cpp:
3219         * bindings/js/JSHTMLCollectionCustom.cpp:
3220         * bindings/js/JSMessagePortCustom.cpp:
3221         * bindings/js/JSNodeListCustom.cpp:
3222         * bindings/scripts/CodeGeneratorCPP.pm:
3223         * bindings/scripts/CodeGeneratorJS.pm:
3224         * bindings/scripts/CodeGeneratorV8.pm:
3225         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
3226         * bindings/scripts/test/CPP/WebDOMTestObj.cpp:
3227         * bindings/scripts/test/V8/V8TestInterface.h:
3228         * bindings/scripts/test/V8/V8TestObj.h:
3229         * bindings/v8/ScriptDebugServer.h:
3230         * bindings/v8/V8Binding.cpp:
3231         * bindings/v8/V8Binding.h:
3232         * bridge/jni/v8/JavaClassV8.h:
3233         * css/CSSFontFaceSource.h:
3234         * css/CSSFontSelector.cpp:
3235         * css/CSSFontSelector.h:
3236         * css/CSSNamespace.h:
3237         * css/CSSParser.cpp:
3238         * css/CSSParser.h:
3239         * css/CSSParserValues.h:
3240         * css/CSSStyleSelector.h:
3241         * css/CSSVariablesDeclaration.h:
3242         * css/MediaFeatureNames.h:
3243         * css/MediaQueryExp.h:
3244         * css/WebKitCSSKeyframesRule.h:
3245         * dom/CustomEvent.h:
3246         * dom/Document.cpp:
3247         * dom/Event.cpp:
3248         * dom/Event.h:
3249         * dom/EventNames.h:
3250         * dom/EventTarget.h:
3251         * dom/InputElement.h:
3252         * dom/MessagePort.cpp:
3253         * dom/MessagePort.h:
3254         * dom/NameNodeList.h:
3255         * dom/NodeRareData.h:
3256         * dom/QualifiedName.h:
3257         * dom/ScriptElement.cpp:
3258         * dom/SpaceSplitString.h:
3259         * dom/TagNodeList.h:
3260         * dom/XMLDocumentParser.h:
3261         * editing/EditorCommand.cpp:
3262         * history/mac/HistoryItemMac.mm:
3263         * html/BlobBuilder.cpp:
3264         * html/DataGridColumn.h:
3265         * html/DataGridColumnList.cpp:
3266         * html/HTMLDocument.h:
3267         * html/HTMLInputElement.cpp:
3268         * html/HTMLTokenizer.cpp:
3269         * html/HTMLTokenizer.h:
3270         * html/LegacyPreloadScanner.cpp:
3271         * html/LegacyPreloadScanner.h:
3272         * inspector/InspectorCSSStore.h:
3273         * inspector/InspectorController.h:
3274         * inspector/InspectorDOMAgent.cpp:
3275         * inspector/InspectorDOMAgent.h:
3276         * inspector/InspectorDebuggerAgent.h:
3277         * inspector/InspectorValues.h:
3278         * loader/Cache.h:
3279         * loader/CrossOriginAccessControl.cpp:
3280         * loader/CrossOriginPreflightResultCache.h:
3281         * loader/DocLoader.h:
3282         * loader/ImageLoader.h:
3283         * loader/appcache/ApplicationCache.h:
3284         * loader/appcache/ApplicationCacheStorage.h:
3285         * loader/appcache/DOMApplicationCache.h:
3286         * loader/icon/IconDatabase.h:
3287         * loader/icon/IconRecord.h:
3288         * loader/loader.h:
3289         * notifications/Notification.h:
3290         * page/FrameTree.h:
3291         * page/Page.cpp:
3292         * page/PageGroup.h:
3293         * page/SecurityOrigin.h:
3294         * page/Settings.h:
3295         * page/WindowFeatures.cpp:
3296         * page/animation/AnimationBase.h:
3297         * page/animation/AnimationControllerPrivate.h:
3298         * page/animation/CompositeAnimation.h:
3299         * platform/Cookie.h:
3300         * platform/KURL.cpp:
3301         * platform/KURLGoogle.cpp:
3302         * platform/KURLHash.h:
3303         * platform/Length.cpp:
3304         * platform/LinkHash.cpp:
3305         * platform/LinkHash.h:
3306         * platform/MIMETypeRegistry.cpp:
3307         * platform/MIMETypeRegistry.h:
3308         * platform/SchemeRegistry.h:
3309         * platform/ThreadGlobalData.cpp:
3310         * platform/ThreadGlobalData.h:
3311         * platform/cf/BinaryPropertyList.cpp:
3312         * platform/chromium/SearchPopupMenuChromium.cpp:
3313         * platform/efl/ClipboardEfl.cpp:
3314         * platform/efl/CookieJarEfl.cpp:
3315         * platform/efl/PlatformKeyboardEventEfl.cpp:
3316         * platform/graphics/FontCache.cpp:
3317         * platform/graphics/FontFamily.h:
3318         * platform/graphics/MediaPlayer.h:
3319         * platform/graphics/cg/ImageSourceCGWin.cpp:
3320         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
3321         * platform/graphics/chromium/FontCacheLinux.cpp:
3322         * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
3323         * platform/graphics/chromium/LayerChromium.h:
3324         * platform/graphics/filters/Filter.h:
3325         * platform/graphics/mac/FontPlatformData.h:
3326         * platform/graphics/mac/GraphicsLayerCA.h:
3327         * platform/graphics/qt/FontCacheQt.cpp:
3328         * platform/graphics/win/FontCacheWin.cpp:
3329         * platform/graphics/win/FontPlatformDataCGWin.cpp:
3330         * platform/graphics/win/FontPlatformDataCairoWin.cpp:
3331         * platform/graphics/win/FontPlatformDataWin.cpp:
3332         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
3333         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
3334         * platform/graphics/win/WKCACFLayer.h:
3335         * platform/graphics/wince/FontPlatformData.cpp:
3336         * platform/graphics/wx/FontPlatformData.h:
3337         * platform/gtk/ClipboardGtk.cpp:
3338         * platform/gtk/DataObjectGtk.h:
3339         * platform/haiku/ClipboardHaiku.cpp:
3340         * platform/haiku/CookieJarHaiku.cpp:
3341         * platform/haiku/SearchPopupMenuHaiku.cpp:
3342         * platform/mac/SearchPopupMenuMac.mm:
3343         * platform/mac/ThreadCheck.mm:
3344         * platform/network/CredentialStorage.cpp:
3345         * platform/network/HTTPHeaderMap.h:
3346         * platform/network/cf/DNSCFNet.cpp:
3347         * platform/network/curl/CookieJarCurl.cpp:
3348         * platform/qt/ClipboardQt.cpp:
3349         * platform/text/AtomicString.h: Removed.
3350         * platform/text/AtomicStringHash.h: Removed.
3351         * platform/text/AtomicStringImpl.h: Removed.
3352         * platform/text/AtomicStringKeyedMRUCache.h:
3353         * platform/text/StringBuilder.cpp:
3354         * platform/text/StringHash.h: Removed.
3355         * platform/text/StringImpl.h: Removed.
3356         * platform/text/TextCodecLatin1.cpp:
3357         * platform/text/TextCodecUTF16.cpp:
3358         * platform/text/TextCodecUserDefined.cpp:
3359         * platform/text/cf/HyphenationCF.cpp:
3360         * platform/text/cf/StringImplCF.cpp:
3361         * platform/text/mac/HyphenationMac.mm:
3362         * platform/text/mac/StringImplMac.mm:
3363         * platform/text/transcoder/FontTranscoder.h:
3364         * platform/text/wince/TextCodecWinCE.cpp:
3365         * platform/win/BString.cpp:
3366         * platform/win/ClipboardWin.cpp:
3367         * platform/win/SearchPopupMenuWin.cpp:
3368         * platform/wince/SearchPopupMenuWince.cpp:
3369         * platform/wx/ClipboardWx.cpp:
3370         * plugins/DOMMimeTypeArray.cpp:
3371         * plugins/DOMPlugin.cpp:
3372         * plugins/DOMPluginArray.cpp:
3373         * plugins/PluginDatabase.h:
3374         * plugins/PluginPackage.h:
3375         * plugins/PluginStream.h:
3376         * rendering/RenderApplet.h:
3377         * rendering/RenderText.cpp:
3378         * rendering/style/BindingURI.h:
3379         * rendering/style/ContentData.cpp:
3380         * rendering/style/CounterContent.h:
3381         * rendering/style/CounterDirectives.h:
3382         * rendering/style/KeyframeList.h:
3383         * rendering/style/StyleRareInheritedData.h:
3384         * storage/AbstractDatabase.cpp:
3385         * storage/DatabaseAuthorizer.h:
3386         * storage/DatabaseTracker.h:
3387         * storage/IDBDatabaseBackendImpl.h:
3388         * storage/IDBFactoryBackendImpl.h:
3389         * storage/IDBObjectStoreBackendImpl.h:
3390         * storage/OriginQuotaManager.h:
3391         * storage/OriginUsageRecord.h:
3392         * storage/SQLTransactionCoordinator.h:
3393         * storage/StorageAreaSync.h:
3394         * storage/StorageMap.h:
3395         * storage/StorageNamespaceImpl.cpp:
3396         * storage/chromium/QuotaTracker.h:
3397         * svg/SVGAltGlyphElement.h:
3398         * svg/SVGDocumentExtensions.cpp:
3399         * svg/SVGDocumentExtensions.h:
3400         * svg/SVGFitToViewBox.cpp:
3401         * svg/SVGLangSpace.h:
3402         * svg/animation/SMILTimeContainer.h:
3403         * svg/graphics/filters/SVGFilterBuilder.h:
3404         * websockets/WebSocket.h:
3405         * websockets/WebSocketChannel.cpp:
3406         * websockets/WebSocketHandshake.cpp:
3407         * websockets/WebSocketHandshakeResponse.cpp:
3408         * wml/WMLPageState.h:
3409         * workers/AbstractWorker.h:
3410         * workers/DefaultSharedWorkerRepository.h:
3411         * workers/Worker.h:
3412         * workers/WorkerContext.h:
3413         * xml/XMLHttpRequest.h:
3414         * xml/XMLHttpRequestUpload.cpp:
3415         * xml/XMLHttpRequestUpload.h:
3416         * xml/XPathExpressionNode.h:
3417         * xml/XPathNamespace.h:
3418         * xml/XPathParser.cpp:
3419         * xml/XSLTProcessor.h:
3420
3421 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
3422
3423         Not reviewed. Adding changes that escaped from r65072.
3424
3425         Web Inspector: move database processing to native layer.
3426         https://bugs.webkit.org/show_bug.cgi?id=43788
3427
3428         * inspector/front-end/InspectorBackendStub.js:
3429         (WebInspector.InspectorBackendStub):
3430         * inspector/front-end/StoragePanel.js:
3431         (WebInspector.StoragePanel.prototype._genericViewSetup):
3432
3433 2010-08-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
3434
3435         Reviewed by Xan Lopez.
3436
3437         [GTK] Inputs of type 'search' have weird looking checkboxes instead of search/clear icons
3438         https://bugs.webkit.org/show_bug.cgi?id=43760
3439
3440         Draw appropriate GTK+ stock images for search/clear icons in search entries.
3441
3442         * platform/gtk/RenderThemeGtk.cpp:
3443         (WebCore::RenderThemeGtk::paintSearchFieldResultsButton):
3444         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
3445         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
3446
3447 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
3448
3449         Not reviewed. Qt build fix, follow up for r65072.
3450
3451         * inspector/InspectorController.cpp:
3452         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
3453
3454 2010-08-10  Pavel Feldman  <pfeldman@chromium.org>
3455
3456         Reviewed by Yury Semikhatsky.
3457
3458         Web Inspector: move database processing to native layer.
3459
3460         https://bugs.webkit.org/show_bug.cgi?id=43788
3461
3462         * English.lproj/localizedStrings.js:
3463         * WebCore.gypi:
3464         * bindings/js/JSInjectedScriptHostCustom.cpp:
3465         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3466         * inspector/CodeGeneratorInspector.pm:
3467         * inspector/InjectedScript.cpp:
3468         (WebCore::InjectedScript::dispatch):
3469         * inspector/InjectedScript.h:
3470         * inspector/InjectedScriptHost.cpp:
3471         * inspector/InjectedScriptHost.h:
3472         * inspector/InjectedScriptHost.idl:
3473         * inspector/Inspector.idl:
3474         * inspector/InspectorBackend.cpp:
3475         (WebCore::InspectorBackend::dispatchOnInjectedScript):
3476         (WebCore::InspectorBackend::executeSQL):
3477         * inspector/InspectorBackend.h:
3478         * inspector/InspectorController.cpp:
3479         (WebCore::InspectorController::connectFrontend):
3480         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
3481         * inspector/InspectorController.h:
3482         * inspector/InspectorDebuggerAgent.h:
3483         * inspector/InspectorStorageAgent.cpp: Added.
3484         (WebCore::):
3485         (WebCore::InspectorStorageAgent::InspectorStorageAgent):
3486         (WebCore::InspectorStorageAgent::~InspectorStorageAgent):
3487         (WebCore::InspectorStorageAgent::executeSQL):
3488         (WebCore::InspectorStorageAgent::clearFrontend):
3489         * inspector/InspectorStorageAgent.h: Added.
3490         (WebCore::InspectorStorageAgent::create):
3491         (WebCore::InspectorStorageAgent::frontend):
3492         * inspector/front-end/Database.js:
3493         (WebInspector.Database.prototype.executeSql):
3494         (WebInspector.sqlTransactionSucceeded):
3495         (WebInspector.sqlTransactionFailed):
3496         * inspector/front-end/DatabaseQueryView.js:
3497         (WebInspector.DatabaseQueryView.prototype._queryFinished):
3498         (WebInspector.DatabaseQueryView.prototype._queryError):
3499         * inspector/front-end/DatabaseTableView.js:
3500         (WebInspector.DatabaseTableView.prototype._queryFinished):
3501         * inspector/front-end/InjectedScript.js:
3502         * inspector/front-end/InjectedScriptAccess.js:
3503         (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName):
3504         (InjectedScriptAccess._installHandler):
3505         * inspector/front-end/StoragePanel.js:
3506         (WebInspector.StoragePanel.prototype.dataGridForResult):
3507
3508 2010-08-10  Steve Block  <steveblock@google.com>
3509
3510         Reviewed by Jeremy Orlow.
3511
3512         [V8] DeviceMotionEvent can not be used from JavaScript
3513         https://bugs.webkit.org/show_bug.cgi?id=43785
3514
3515         This is tested by the existing tests fast/dom/DeviceMotion/create-event.html
3516         and fast/dom/DeviceMotion/optional-event-properties.html.
3517
3518         * bindings/v8/custom/V8EventCustom.cpp:
3519         (WebCore::toV8):
3520
3521 2010-08-10  Balazs Kelemen  <kb@inf.u-szeged.hu>
3522
3523         Reviewed by Antonio Gomes.
3524
3525         [Qt] Build WebKit2 into a static lib
3526
3527         https://bugs.webkit.org/show_bug.cgi?id=43621
3528
3529         Just build changes so no new tests.
3530
3531         * WebCore.pri: Moved feature detection logic into features.pri since we need this in WebKit2.pro as well.
3532         * WebCore.pro: Moved the specification of the WebKit2 build to WebKit2.pro. Link against the static lib.
3533         * features.pri: Added.
3534
3535 2010-08-10  Yury Semikhatsky  <yurys@chromium.org>
3536
3537         Reviewed by Pavel Feldman.
3538
3539         Web Inspector, Chromium: reloading of inspected page hits assert in InspectorController::enableDebuggerFromFrontend()
3540         https://bugs.webkit.org/show_bug.cgi?id=43780
3541
3542         * inspector/CodeGeneratorInspector.pm:
3543         * inspector/InspectorController.cpp:
3544         (WebCore::InspectorController::enableDebuggerFromFrontend):
3545         * inspector/InspectorController.h:
3546         (WebCore::InspectorController::hasFrontend):
3547         * inspector/InspectorDebuggerAgent.cpp:
3548         (WebCore::InspectorDebuggerAgent::create):
3549         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
3550         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
3551         (WebCore::InspectorDebuggerAgent::didParseSource):
3552         (WebCore::InspectorDebuggerAgent::failedToParseSource):
3553         (WebCore::InspectorDebuggerAgent::didPause):
3554         (WebCore::InspectorDebuggerAgent::didContinue):
3555         * inspector/InspectorDebuggerAgent.h:
3556
3557 2010-08-10  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3558
3559         Reviewed by Simon Hausmann.
3560
3561         Make sure NPAPI plugins get an initial setNPWindow on Mac
3562
3563         https://bugs.webkit.org/show_bug.cgi?id=43782
3564
3565         * plugins/mac/PluginViewMac.mm:
3566
3567 2010-08-10  Dirk Schulze  <krit@webkit.org>
3568
3569         Reviewed by Nikolas Zimmermann.
3570
3571         Use SVGPathParser to create SVG paths and to perform path animations
3572         https://bugs.webkit.org/show_bug.cgi?id=43696
3573
3574         Removed toString() functions in all SVGPathSeg* objects as well as toPath() in SVGPathSegList.
3575         These hacks were used to create a SVG path data string or a platform path from a SVGPathSegList.
3576         Use the new SVGPathParser instead.
3577
3578         Doesn't affect any tests.
3579
3580         * svg/SVGAnimateElement.cpp:
3581         (WebCore::SVGAnimateElement::applyResultsToTarget):
3582         * svg/SVGPathElement.cpp:
3583         (WebCore::SVGPathElement::toPathData):
3584         * svg/SVGPathParserFactory.cpp:
3585         (WebCore::SVGPathParserFactory::buildPathFromSVGPathSegList):
3586         (WebCore::SVGPathParserFactory::buildStringFromByteStream):
3587         (WebCore::SVGPathParserFactory::buildStringFromSVGPathSegList):
3588         * svg/SVGPathParserFactory.h:
3589         * svg/SVGPathSeg.cpp:
3590         * svg/SVGPathSeg.h:
3591         * svg/SVGPathSegArc.cpp: