2010-08-09 François Sausset <sausset@gmail.com>
[WebKit.git] / WebCore / ChangeLog
1 2010-08-09  François Sausset  <sausset@gmail.com>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         Implement mfenced MathML element
6         Update stretchy operator code to take into account new brackets and to tune layout parameters
7         https://bugs.webkit.org/show_bug.cgi?id=42472
8
9         Test: mathml/presentation/fenced.xhtml
10
11         * WebCore.xcodeproj/project.pbxproj:
12         * mathml/MathMLInlineContainerElement.cpp:
13         (WebCore::MathMLInlineContainerElement::MathMLInlineContainerElement):
14         (WebCore::MathMLInlineContainerElement::createRenderer):
15         * mathml/RenderMathMLFenced.cpp: Added.
16         (WebCore::RenderMathMLFenced::RenderMathMLFenced):
17         (WebCore::RenderMathMLFenced::updateFromElement):
18         (WebCore::RenderMathMLFenced::makeOperatorStyle):
19         (WebCore::RenderMathMLFenced::makeFences):
20         (WebCore::RenderMathMLFenced::addChild):
21         (WebCore::RenderMathMLFenced::layout):
22         * mathml/RenderMathMLFenced.h: Added.
23         * mathml/RenderMathMLOperator.cpp:
24         (WebCore::RenderMathMLOperator::RenderMathMLOperator):
25         (WebCore::RenderMathMLOperator::stretchToHeight):
26         (WebCore::):
27         (WebCore::RenderMathMLOperator::updateFromElement):
28         (WebCore::RenderMathMLOperator::createStackableStyle):
29         (WebCore::RenderMathMLOperator::createGlyph):
30
31 2010-08-08  ryuan choi  <ryuan.choi@samsung.com>
32
33         Reviewed by Darin Adler.
34
35         REGRESSION(64898,64949) build break because of wrong filename
36         https://bugs.webkit.org/show_bug.cgi?id=43701
37
38         add SVGPathStringSource.cpp and modify SVGPathSourceString.cpp to
39         SVGPathStringSource.cpp
40
41         simple fixing build break, so No new tests.
42
43         * CMakeLists.txt:
44
45 2010-08-08  Ariya Hidayat  <ariya@sencha.com>
46
47         Reviewed by Antonio Gomes.
48
49         Inconsistent Qt version checks
50         https://bugs.webkit.org/show_bug.cgi?id=43695
51
52         Use QT_VERSION_CHECK macro instead of encoded hex.
53
54         * platform/graphics/qt/ImageBufferQt.cpp:
55         (WebCore::getImageData):
56         * platform/network/qt/NetworkStateNotifierPrivate.h:
57         * platform/network/qt/NetworkStateNotifierQt.cpp:
58         * platform/network/qt/QNetworkReplyHandler.cpp:
59         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
60         (WebCore::QNetworkReplyHandler::start):
61         * platform/qt/RenderThemeQt.cpp:
62         (WebCore::RenderThemeQt::paintMediaSliderTrack):
63
64 2010-08-08  Csaba Osztrogonác  <ossy@webkit.org>
65
66         Reviewed by Antonio Gomes.
67
68         Web Inspector: Fix warning in WebCore/inspector/InspectorDebuggerAgent.cpp
69         https://bugs.webkit.org/show_bug.cgi?id=43698
70
71         * inspector/InspectorDebuggerAgent.cpp:
72         (WebCore::InspectorDebuggerAgent::editScriptSource): Add suggested parentheses.
73
74 2010-08-05  MORITA Hajime  <morrita@google.com>
75
76         Reviewed by Tony Chang.
77
78         Pasting should fire textInput event.
79         https://bugs.webkit.org/show_bug.cgi?id=42958
80
81         - Extended TextEvents to hold paste-specific parameters
82         - Did fire TextEvents at where we originally did immediate pastes.
83         - Factored out TextEvent handling from EventHandler::defaultTextInputEventHandler()
84           to Editor::handleTextEvent() because it's solely done by the editor.
85         - move actual pasting logic to Editor::handleTextEvent() 
86
87         Test: editing/pasteboard/paste-text-events.html
88
89         * WebCore.exp.in:
90         * dom/TextEvent.cpp:
91         (WebCore::TextEvent::create):
92         (WebCore::TextEvent::createForPlainTextPaste):
93         (WebCore::TextEvent::createForFragmentPaste):
94         (WebCore::TextEvent::TextEvent):
95         * dom/TextEvent.h:
96         (WebCore::TextEvent::isPaste):
97         (WebCore::TextEvent::shouldSmartReplace):
98         (WebCore::TextEvent::shouldMatchStyle):
99         (WebCore::TextEvent::pastingFragment):
100         * editing/Editor.cpp:
101         (WebCore::Editor::handleTextEvent):
102         (WebCore::Editor::pasteAsPlainText):
103         (WebCore::Editor::pasteAsFragment):
104         (WebCore::Editor::pasteAsPlainTextWithPasteboard):
105         (WebCore::Editor::pasteWithPasteboard):
106         (WebCore::Editor::dispatchCPPEvent):
107         (WebCore::Editor::findEventTargetFromSelection):
108         * editing/Editor.h:
109         * page/EventHandler.cpp:
110         (WebCore::EventHandler::defaultTextInputEventHandler):
111
112 2010-08-08  Kevin Ollivier  <kevino@theolliviers.com>
113
114         [wx] Build fix, add member needed to compile Mac-specific font code.
115
116         * platform/graphics/wx/FontPlatformData.h:
117         (WebCore::FontPlatformData::ctFont):
118
119 2010-08-08  Csaba Osztrogonác  <ossy@webkit.org>
120
121         Reviewed by Eric Seidel.
122
123         [Qt] Fix warnings in WebCore/platform/WindowsKeyboardCodes.h
124         https://bugs.webkit.org/show_bug.cgi?id=43360
125
126         * platform/WindowsKeyboardCodes.h: Undef macros which are also defined in MinGW/include/winuser.h to aviod gcc redefinition warning
127
128 2010-08-08  James Robinson  <jamesr@chromium.org>
129
130         Reviewed by Adam Barth.
131
132         Set the shouldLazyAttach flag to true in the tree builder's adoption agency algorithm
133         https://bugs.webkit.org/show_bug.cgi?id=43610
134
135         Sets the shouldLazyAttach flag to true for appendChild() calls inside the HTML tree
136         builder's adoption agency flag.  This is a speedup assuming that nodes subjected
137         to the adoption agency are likely to be frequently reparented, and thus it is better
138         to delay creating the render tree until later (when hopefully the DOM is finalized).
139
140         On my mac pro this speeds up fast/parser/residual-style-hang.html by 2.6X.
141
142         * html/HTMLTreeBuilder.cpp:
143         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
144
145 2010-08-08  Nikita Vasilyev  <me@elv1s.ru>
146
147         Reviewed by Pavel Feldman.
148
149         Web Inspector: speed-up Element.prototype.removeChildren
150         https://bugs.webkit.org/show_bug.cgi?id=43687
151
152         * inspector/front-end/utilities.js:
153         (Element.prototype.removeChildren):
154
155 2010-08-08  Ilya Tikhonovsky  <loislo@chromium.org>
156
157         Reviewed by Pavel Feldman.
158
159         WebInspector: remove hand written InspectorFrontend from almost all places.
160         https://bugs.webkit.org/show_bug.cgi?id=43630
161
162         * inspector/ConsoleMessage.cpp:
163         * inspector/InjectedScriptHost.cpp:
164         (WebCore::InjectedScriptHost::pushNodePathToFrontend):
165         * inspector/InjectedScriptHost.h:
166         * inspector/Inspector.idl:
167         * inspector/InspectorBackend.cpp:
168         * inspector/InspectorController.cpp:
169         (WebCore::InspectorController::inspectedPageDestroyed):
170         (WebCore::InspectorController::inspect):
171         (WebCore::InspectorController::focusNode):
172         (WebCore::InspectorController::windowVisible):
173         (WebCore::InspectorController::addConsoleMessage):
174         (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
175         (WebCore::InspectorController::setSearchingForNode):
176         (WebCore::InspectorController::setMonitoringXHR):
177         (WebCore::InspectorController::connectFrontend):
178         (WebCore::InspectorController::show):
179         (WebCore::InspectorController::showPanel):
180         (WebCore::InspectorController::close):
181         (WebCore::InspectorController::disconnectFrontend):
182         (WebCore::InspectorController::populateScriptObjects):
183         (WebCore::InspectorController::didCommitLoad):
184         (WebCore::InspectorController::enableResourceTracking):
185         (WebCore::InspectorController::disableResourceTracking):
186         (WebCore::InspectorController::startTimelineProfiler):
187         (WebCore::InspectorController::stopTimelineProfiler):
188         (WebCore::InspectorController::postWorkerNotificationToFrontend):
189         (WebCore::InspectorController::didCreateWorker):
190         (WebCore::InspectorController::didDestroyWorker):
191         (WebCore::InspectorController::toggleRecordButton):
192         (WebCore::InspectorController::enableProfiler):
193         (WebCore::InspectorController::disableProfiler):
194         (WebCore::InspectorController::enableDebuggerFromFrontend):
195         (WebCore::InspectorController::enableDebugger):
196         (WebCore::InspectorController::disableDebugger):
197         (WebCore::InspectorController::evaluateForTestInFrontend):
198         * inspector/InspectorFrontend.cpp:
199         * inspector/InspectorFrontend.h:
200         * inspector/InspectorFrontendClientLocal.cpp:
201         * inspector/TimelineRecordFactory.cpp:
202
203 2010-08-08  Dan Bernstein  <mitz@apple.com>
204
205         Try to fix the Chromium Mac build after r64915.
206
207         * platform/graphics/chromium/FontPlatformDataChromiumMac.mm:
208         (WebCore::FontPlatformData::ctFont): Copied from mac/FontPlatformDataMac.mm.
209
210 2010-08-08  Dirk Schulze  <krit@webkit.org>
211
212         Reviewed by Nikolas Zimmermann.
213
214         Add missing String builder for SVGPathParser
215         https://bugs.webkit.org/show_bug.cgi?id=43682
216
217         Introduces SVGPathStringBuilder. SVGPathParser clients, like normalized and unaltered
218         SVGPathSegLists or SVGPathByteStreams, can be parsed and transformed to a string.
219         StringBuilder can create a string of individual strings, seperated by spaces now.
220         Share more code in SVGPathParserFactory and use a common general concept to manage SVG path
221         data parsing.
222
223         Doesn't affect any tests.
224
225         * Android.mk:
226         * GNUmakefile.am:
227         * WebCore.gypi:
228         * WebCore.pro:
229         * WebCore.vcproj/WebCore.vcproj:
230         * WebCore.xcodeproj/project.pbxproj:
231         * platform/text/StringBuilder.cpp:
232         (WebCore::StringBuilder::toString): Added possibility to use a space between individual strings. 
233         * platform/text/StringBuilder.h: Cleanup according to WebKit style.
234         (WebCore::):
235         (WebCore::StringBuilder::StringBuilder):
236         (WebCore::StringBuilder::setNonNull):
237         (WebCore::StringBuilder::isNull):
238         * svg/SVGAllInOne.cpp:
239         * svg/SVGPathBuilder.h:
240         (WebCore::SVGPathBuilder::cleanup): Clear all references.
241         * svg/SVGPathByteStreamBuilder.h:
242         (WebCore::SVGPathByteStreamBuilder::cleanup): dito.
243         * svg/SVGPathConsumer.h:
244         * svg/SVGPathParser.cpp:
245         (WebCore::SVGPathParser::cleanup): dito.
246         * svg/SVGPathParser.h:
247         * svg/SVGPathParserFactory.cpp: Cleanup of factory. More code get shared.
248         (WebCore::globalSVGPathBuilder):
249         (WebCore::globalSVGPathSegListBuilder):
250         (WebCore::globalSVGPathByteStreamBuilder):
251         (WebCore::globalSVGPathStringBuilder):
252         (WebCore::globalSVGPathParser):
253         (WebCore::SVGPathParserFactory::buildPathFromString):
254         (WebCore::SVGPathParserFactory::buildPathFromByteStream):
255         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromString):
256         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromByteStream):
257         (WebCore::SVGPathParserFactory::buildStringFromByteStream):
258         (WebCore::SVGPathParserFactory::buildSVGPathByteStreamFromString):
259         * svg/SVGPathParserFactory.h:
260         * svg/SVGPathSegListBuilder.h:
261         (WebCore::SVGPathSegListBuilder::cleanup):
262         * svg/SVGPathStringBuilder.cpp: Added. Build string from parsed SVG data.
263         (WebCore::SVGPathStringBuilder::SVGPathStringBuilder):
264         (WebCore::SVGPathStringBuilder::moveTo):
265         (WebCore::SVGPathStringBuilder::lineTo):
266         (WebCore::SVGPathStringBuilder::lineToHorizontal):
267         (WebCore::SVGPathStringBuilder::lineToVertical):
268         (WebCore::SVGPathStringBuilder::curveToCubic):
269         (WebCore::SVGPathStringBuilder::curveToCubicSmooth):
270         (WebCore::SVGPathStringBuilder::curveToQuadratic):
271         (WebCore::SVGPathStringBuilder::curveToQuadraticSmooth):
272         (WebCore::SVGPathStringBuilder::arcTo):
273         (WebCore::SVGPathStringBuilder::closePath):
274         * svg/SVGPathStringBuilder.h: Added.
275         (WebCore::SVGPathStringBuilder::cleanup):
276         (WebCore::SVGPathStringBuilder::result):
277
278 2010-08-08  Adam Barth  <abarth@webkit.org>
279
280         Reviewed by Eric Seidel.
281
282         cross_fuzz WebCore::SelectionController::isFocusedAndActive ReadAV@NULL (9e865de49b1800ec790dcc35d8ebd069)
283         https://bugs.webkit.org/show_bug.cgi?id=43040
284
285         The pointer from Document to Frame can be null.  See http://webkit.org/coding/major-objects.html.
286
287         * css/CSSStyleSelector.cpp:
288         (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
289
290 2010-08-08  Adam Barth  <abarth@webkit.org>
291
292         Reviewed by Dimitri Glazkov.
293
294         frame()->selection() can't be null
295         https://bugs.webkit.org/show_bug.cgi?id=43681
296
297         SelectionController is a component of Frame.  If frame is non-null, it
298         can't possibly be null.
299
300         * html/HTMLAnchorElement.cpp:
301         (WebCore::HTMLAnchorElement::setActive):
302
303 2010-08-08  Adam Barth  <abarth@webkit.org>
304
305         Reviewed by Dimitri Glazkov.
306
307         SVGLength uses ASSERTs to validate user input
308         https://bugs.webkit.org/show_bug.cgi?id=43680
309
310         ASSERTs aren't in release builds, so we can't use them to validate user
311         input!  We've seen a bunch of examples of this in SVG code.  It might
312         be worth auditing all the code to remove this misguided pattern.
313
314         Test: svg/dom/svg-length-units.html
315
316         * svg/SVGLength.cpp:
317         (WebCore::SVGLength::newValueSpecifiedUnits):
318         (WebCore::SVGLength::convertToSpecifiedUnits):
319
320 2010-08-07  Adam Barth  <abarth@webkit.org>
321
322         Reviewed by Sam Weinig.
323
324         Empty strings can have more than one ref
325         https://bugs.webkit.org/show_bug.cgi?id=43666
326
327         These asserts are trying to say that we have a thread-safe copy of the
328         string, but they're not accurate for empty strings because we use a
329         special static empty string that magically has infinite refs.
330
331         * storage/OriginUsageRecord.cpp:
332         (WebCore::OriginUsageRecord::addDatabase):
333         (WebCore::OriginUsageRecord::markDatabase):
334
335 2010-08-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
336         Reviewed by Eric Seidel.
337
338         [WML] Add KURL parameter to WMLDocument::create() 
339         https://bugs.webkit.org/show_bug.cgi?id=43173
340
341         To fix build break in WML, url parameter is added. Because, 
342         Document class has url parameter.
343
344         * wml/WMLDocument.cpp:
345         (WebCore::WMLDocument::WMLDocument):
346         * wml/WMLDocument.h:
347         (WebCore::WMLDocument::create): Add an url parameter to create() method
348
349 2010-08-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
350
351         Reviewed by Eric Seidel.
352
353         [WML] Change getIDAttribute() with getIdAttribute()
354         https://bugs.webkit.org/show_bug.cgi?id=43175
355
356         Change getIDAttribute() with getIdAttribute() because function 
357         name was changed.
358
359         * wml/WMLCardElement.cpp:
360         (WebCore::WMLCardElement::findNamedCardInDocument): Change getIDAttribute() with getIdAttribute().
361
362 2010-08-07  Mihai Parparita  <mihaip@chromium.org>
363
364         Reviewed by Adam Barth.
365
366         WebTiming does not take page cache into account
367         https://bugs.webkit.org/show_bug.cgi?id=42772
368
369         When restoring a page from the page cache, reset its DocumentLoadTiming
370         struct and record navigationStart.
371     
372         Test: fast/events/onunload-back-to-page-cache.html
373
374         * loader/DocumentLoadTiming.h: removed Noncopyable, since it's just a simple struct.
375         * loader/DocumentLoader.h:
376         (WebCore::DocumentLoader::resetTiming): Added method.
377         * loader/FrameLoader.cpp:
378         (WebCore::FrameLoader::stopLoading): Uncommented assert.
379         (WebCore::FrameLoader::loadProvisionalItemFromCachedPage): Added resetTiming() call.
380
381 2010-08-07  Zoltan Horvath  <zoltan@webkit.org>
382
383         Reviewed by Eric Seidel.
384
385         Allow custom memory allocation control for EventHandlingState struct
386         https://bugs.webkit.org/show_bug.cgi?id=43548
387
388         Inherits the following class from FastAllocBase because it is
389         instantiated by 'new':
390
391         struct name         - instantiated at: WebCore/
392         EventHandlingState  - html/HTMLInputElement.cpp:2051
393
394         * html/HTMLInputElement.cpp:
395
396 2010-08-07  Jay Civelli  <jcivelli@chromium.org>
397
398         Reviewed by Eric Seidel.
399
400         [Chromium] Remove unecessary focus code.
401         https://bugs.webkit.org/show_bug.cgi?id=43542
402
403         * platform/chromium/ChromiumBridge.h:
404         * platform/chromium/WidgetChromium.cpp:
405         (WebCore::Widget::setFocus):
406
407 2010-08-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
408
409         Reviewed by Eric Seidel.
410
411         [WML] Include FormDataBuilder.h in WMLGoElement.h
412         https://bugs.webkit.org/show_bug.cgi?id=43177
413
414         To fix build breaks in WMLGoElement.cpp, FormDataBuilder.h needs to be included.
415
416         * wml/WMLGoElement.cpp: Include FormDataBuilder.h
417
418 2010-08-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
419
420         Reviewed by Eric Seidel.
421
422         [WML] Add dummy argument to SelectElement::defaultEventHandler() in WMLSelectElement
423         https://bugs.webkit.org/show_bug.cgi?id=43176
424
425         * wml/WMLSelectElement.cpp:
426         (WebCore::WMLSelectElement::defaultEventHandler): Sets NULL parameter to SelectElement::defaultEventHandler.
427
428 2010-08-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
429
430         Reviewed by Eric Seidel.
431
432         [WML] Change DocumentParser with ScriptableDocumentParser in WMLDocument
433         https://bugs.webkit.org/show_bug.cgi?id=43174
434
435         * wml/WMLDocument.cpp:
436         (WebCore::WMLDocument::finishedParsing): Change DocumentParser with ScriptableDocumentParser.
437
438 2010-08-07  Dan Bernstein  <mitz@apple.com>
439
440         Reviewed by Sam Weinig.
441
442         Use ctFont() to get the CTFont.
443
444         * platform/graphics/mac/FontMac.mm:
445         (WebCore::showGlyphsWithAdvances):
446
447 2010-08-07  Adam Barth  <abarth@webkit.org>
448
449         Reviewed by Sam Weinig.
450
451         document->documentElement can always be null
452         https://bugs.webkit.org/show_bug.cgi?id=43677
453
454         This ASSERT is bogus.
455
456         * css/StyleMedia.cpp:
457         (WebCore::StyleMedia::matchMedium):
458
459 2010-08-07  Dan Bernstein  <mitz@apple.com>
460
461         Reviewed by Anders Carlsson.
462
463         <rdar://problem/8285090> First word on a line doesn’t hyphenate properly
464         https://bugs.webkit.org/show_bug.cgi?id=43679
465
466         Test: fast/text/hyphenate-first-word.html
467
468         * rendering/RenderBlockLineLayout.cpp:
469         (WebCore::tryHyphenating): The character at lastSpace is not necessarily a whitespace character
470         before the current word. It can also be part of the word, such as when the word is the first
471         one on the line. Include the charcater at lastSpace in the string passed to lastHyphenLocation().
472
473 2010-08-07  Dan Bernstein  <mitz@apple.com>
474
475         Build fix
476
477         * platform/graphics/SimpleFontData.h:
478
479 2010-08-07  Dan Bernstein  <mitz@apple.com>
480
481         Reviewed by Anders Carlsson.
482
483         Created a separate SimpleFontData constructor exclusively for SVG fonts and moved the CTFontRef
484         from SimpleFontData to FontPlatformData.
485         https://bugs.webkit.org/show_bug.cgi?id=43674
486
487         * config.h: Moved definitions of WTF_USE_CORE_TEXT and WTF_USE_ATSUI from here to wtf/Platform.h.
488         * css/CSSFontFaceSource.cpp:
489         (WebCore::CSSFontFaceSource::getFontData): Use new SimpleFontData constructor for SVG fonts.
490         * platform/graphics/SimpleFontData.cpp:
491         (WebCore::SimpleFontData::SimpleFontData): Separated into two constructors, one for
492         PlatformFontData-based fonts and one for SVG fonts.
493         * platform/graphics/SimpleFontData.h: Moved the m_CTFont member variable and the getCTFont()
494         accessor from here…
495         * platform/graphics/mac/FontPlatformData.h: …to here, renaming the latter ctFont().
496         * platform/graphics/mac/FontPlatformDataMac.mm:
497         (WebCore::FontPlatformData::FontPlatformData): Copy m_CTFont.
498         (WebCore::FontPlatformData::operator=): Copy m_CTFont.
499         (WebCore::FontPlatformData::setFont): Clear m_CTFont.
500         (WebCore::FontPlatformData::ctFont): Moved here from SimpleFontDataCoreText.cpp and renamed.
501         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
502         (WebCore::SimpleFontData::getCFStringAttributes): Updated to use FontPlatformData::ctFont().
503         * svg/SVGFontData.cpp:
504         (WebCore::SVGFontData::SVGFontData): Added an assertion.
505
506 2010-08-07  Adam Barth  <abarth@webkit.org>
507
508         Reviewed by Dimitri Glazkov.
509
510         Regression: Memory corruption in tree builder
511         https://bugs.webkit.org/show_bug.cgi?id=43672
512
513         Turns out this ASSERT was wrong and we need the branch.  Yay for
514         test-driven development.
515
516         * html/HTMLTreeBuilder.cpp:
517         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
518
519 2010-08-07  Dirk Schulze  <krit@webkit.org>
520
521         Unreviewed build-fix.
522
523         Come up with a more efficient way to represent Path segments
524         https://bugs.webkit.org/show_bug.cgi?id=41159
525
526         Landed wrong version of the patch.
527
528         * svg/SVGPathByteStreamSource.cpp:
529         (WebCore::SVGPathByteStreamSource::SVGPathByteStreamSource):
530         (WebCore::SVGPathByteStreamSource::hasMoreData):
531         * svg/SVGPathByteStreamSource.h:
532         (WebCore::SVGPathByteStreamSource::moveToNextToken):
533         * svg/SVGPathParserFactory.cpp:
534         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromByteStream):
535         (WebCore::SVGPathParserFactory::createSVGPathByteStreamFromString):
536         * svg/SVGPathParserFactory.h:
537
538 2010-08-07  Dirk Schulze  <krit@webkit.org>
539
540         Reviewed by Nikolas Zimmermann.
541
542         Come up with a more efficient way to represent Path segments
543         https://bugs.webkit.org/show_bug.cgi?id=41159
544
545         Introduce SVGPathByteStream as a fast and efficient way to organize the synchronization
546         of Path, SVG path data string and SVGPathSegList in normalized and unaltered modes.
547         Extended SVGPathParserFactory to accept SVGPathByteStreams as input source and to create
548         a SVGPathByteStream from a SVG path data string.
549
550         Doesn't affect any tests.
551
552         * Android.mk:
553         * CMakeLists.txt:
554         * GNUmakefile.am:
555         * WebCore.gypi:
556         * WebCore.pro:
557         * WebCore.vcproj/WebCore.vcproj:
558         * svg/SVGAllInOne.cpp:
559         * svg/SVGPathByteStream.h: Added.
560         (WebCore::):
561         (WebCore::SVGPathByteStream::create):
562         (WebCore::SVGPathByteStream::data):
563         (WebCore::SVGPathByteStream::begin):
564         (WebCore::SVGPathByteStream::end):
565         (WebCore::SVGPathByteStream::append):
566         (WebCore::SVGPathByteStream::clear):
567         (WebCore::SVGPathByteStream::isEmpty):
568         (WebCore::SVGPathByteStream::SVGPathByteStream):
569         * svg/SVGPathByteStreamBuilder.cpp: Added.
570         (WebCore::SVGPathByteStreamBuilder::SVGPathByteStreamBuilder):
571         (WebCore::SVGPathByteStreamBuilder::moveTo):
572         (WebCore::SVGPathByteStreamBuilder::lineTo):
573         (WebCore::SVGPathByteStreamBuilder::lineToHorizontal):
574         (WebCore::SVGPathByteStreamBuilder::lineToVertical):
575         (WebCore::SVGPathByteStreamBuilder::curveToCubic):
576         (WebCore::SVGPathByteStreamBuilder::curveToCubicSmooth):
577         (WebCore::SVGPathByteStreamBuilder::curveToQuadratic):
578         (WebCore::SVGPathByteStreamBuilder::curveToQuadraticSmooth):
579         (WebCore::SVGPathByteStreamBuilder::arcTo):
580         (WebCore::SVGPathByteStreamBuilder::closePath):
581         * svg/SVGPathByteStreamBuilder.h: Added.
582         (WebCore::SVGPathByteStreamBuilder::setCurrentByteStream):
583         (WebCore::SVGPathByteStreamBuilder::writeType):
584         (WebCore::SVGPathByteStreamBuilder::writeFlag):
585         (WebCore::SVGPathByteStreamBuilder::writeFloat):
586         (WebCore::SVGPathByteStreamBuilder::writeFloatPoint):
587         (WebCore::SVGPathByteStreamBuilder::writeSegmentType):
588         * svg/SVGPathByteStreamSource.cpp: Added.
589         (WebCore::SVGPathByteStreamSource::SVGPathByteStreamSource):
590         (WebCore::SVGPathByteStreamSource::~SVGPathByteStreamSource):
591         (WebCore::SVGPathByteStreamSource::hasMoreData):
592         (WebCore::SVGPathByteStreamSource::parseFloat):
593         (WebCore::SVGPathByteStreamSource::parseFlag):
594         (WebCore::SVGPathByteStreamSource::parseSVGSegmentType):
595         (WebCore::SVGPathByteStreamSource::nextCommand):
596         * svg/SVGPathByteStreamSource.h: Added.
597         (WebCore::SVGPathByteStreamSource::create):
598         (WebCore::SVGPathByteStreamSource::readType):
599         (WebCore::SVGPathByteStreamSource::readFlag):
600         (WebCore::SVGPathByteStreamSource::readFloat):
601         (WebCore::SVGPathByteStreamSource::readSVGSegmentType):
602         (WebCore::SVGPathByteStreamSource::readFloatPoint):
603         * svg/SVGPathParserFactory.cpp:
604         (WebCore::globalSVGPathByteStreamBuilder):
605         (WebCore::SVGPathParserFactory::buildPathFromByteStream):
606         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromByteStream):
607         (WebCore::SVGPathParserFactory::buildSVGPathByteStreamFromString):
608         * svg/SVGPathParserFactory.h:
609
610 2010-08-07  Dirk Schulze  <krit@webkit.org>
611
612         Not reviewed. Sort Xcode project file.
613
614         * WebCore.xcodeproj/project.pbxproj:
615
616 2010-08-07  Sheriff Bot  <webkit.review.bot@gmail.com>
617
618         Unreviewed, rolling out r64904.
619         http://trac.webkit.org/changeset/64904
620         https://bugs.webkit.org/show_bug.cgi?id=43671
621
622         Broke the Qt Windows builders. (Requested by bbandix on
623         #webkit).
624
625         * WebCore.pri:
626         * WebCore.pro:
627         * features.pri: Removed.
628
629 2010-08-07  Balazs Kelemen  <kb@inf.u-szeged.hu>
630
631         Reviewed by Eric Seidel.
632
633         [Qt] Build WebKit2 into a static lib
634
635         https://bugs.webkit.org/show_bug.cgi?id=43621
636
637         Just build changes so no new tests.
638
639         * WebCore.pri: Moved feature detection logic into features.pri since we need this in WebKit2.pro as well.
640         * WebCore.pro: Moved the specification of the WebKit2 build to WebKit2.pro. Link against the static lib.
641         * features.pri: Added.
642
643 2010-08-07  Nikolas Zimmermann  <nzimmermann@rim.com>
644
645         Reviewed by Daniel Bates.
646
647         Pattern fill with image not rendered after reload
648         https://bugs.webkit.org/show_bug.cgi?id=41596
649
650         Fixed by a one-liner. Instead of just invalidating it's own resources, images also have to update
651         resources in the ancestor chain, if imageChanged() has been called (for example, a slow loading image)
652
653         Test: http/tests/misc/slow-loading-image-in-pattern.html
654
655         * rendering/RenderSVGImage.cpp:
656         (WebCore::RenderSVGImage::imageChanged):
657
658 2010-08-06  Dirk Schulze  <krit@webkit.org>
659
660         Reviewed by Nikolas Zimmermann.
661
662         Generalize SVGPathParser to allow more than just strings as input source
663         https://bugs.webkit.org/show_bug.cgi?id=43618
664
665         Generalize SVGPathParser, by allowing different parsing sources than just strings.
666         For now only a SVGPathStringSource is available, parsing from bytestreams follows soon.
667         Each client that wants to parse strings, like Path or SVGPathSegList objects, only
668         needs to use the new central SVGPathParserFactory, which glues consumer and sources together.
669         Moved the SVGPathSegType enum from SVGPathSeg class in WebCore namespace, for
670         easier access throughout the SVG code.
671
672         Doesn't affect any tests.
673
674         * Android.mk:
675         * CMakeLists.txt
676         * GNUmakefile.am:
677         * WebCore.gypi:
678         * WebCore.pro:
679         * WebCore.vcproj/WebCore.vcproj:
680         * WebCore.xcodeproj/project.pbxproj
681         * svg/SVGAllInOne.cpp:
682         * svg/SVGAnimateElement.cpp:
683         (WebCore::SVGAnimateElement::calculateFromAndToValues):
684         * svg/SVGAnimateMotionElement.cpp:
685         (WebCore::SVGAnimateMotionElement::parseMappedAttribute):
686         * svg/SVGGlyphElement.cpp:
687         (WebCore::parsePathData):
688         * svg/SVGPathBuilder.cpp:
689         (WebCore::SVGPathBuilder::SVGPathBuilder):
690         (WebCore::SVGPathBuilder::moveTo):
691         (WebCore::SVGPathBuilder::lineTo):
692         (WebCore::SVGPathBuilder::curveToCubic):
693         (WebCore::SVGPathBuilder::closePath):
694         * svg/SVGPathBuilder.h:
695         (WebCore::SVGPathBuilder::setCurrentPath):
696         (WebCore::SVGPathBuilder::arcTo):
697         * svg/SVGPathConsumer.h:
698         * svg/SVGPathElement.cpp:
699         (WebCore::SVGPathElement::parseMappedAttribute):
700         * svg/SVGPathParser.cpp:
701         (WebCore::SVGPathParser::SVGPathParser):
702         (WebCore::SVGPathParser::parseClosePathSegment):
703         (WebCore::SVGPathParser::parseMoveToSegment):
704         (WebCore::SVGPathParser::parseLineToSegment):
705         (WebCore::SVGPathParser::parseLineToHorizontalSegment):
706         (WebCore::SVGPathParser::parseLineToVerticalSegment):
707         (WebCore::SVGPathParser::parseCurveToCubicSegment):
708         (WebCore::SVGPathParser::parseCurveToCubicSmoothSegment):
709         (WebCore::SVGPathParser::parseCurveToQuadraticSegment):
710         (WebCore::SVGPathParser::parseCurveToQuadraticSmoothSegment):
711         (WebCore::SVGPathParser::parseArcToSegment):
712         (WebCore::SVGPathParser::parsePathDataFromSource):
713         (WebCore::SVGPathParser::decomposeArcToCubic):
714         * svg/SVGPathParser.h:
715         (WebCore::SVGPathParser::setCurrentConsumer):
716         * svg/SVGPathParserFactory.cpp: Added.
717         (WebCore::globalSVGPathBuilder):
718         (WebCore::globalSVGPathSegListBuilder):
719         (WebCore::globalSVGPathParser):
720         (WebCore::SVGPathParserFactory::self):
721         (WebCore::SVGPathParserFactory::SVGPathParserFactory):
722         (WebCore::SVGPathParserFactory::~SVGPathParserFactory):
723         (WebCore::SVGPathParserFactory::buildPathFromString):
724         (WebCore::SVGPathParserFactory::buildSVGPathSegListFromString):
725         * svg/SVGPathParserFactory.h: Added.
726         * svg/SVGPathSeg.h:
727         (WebCore::):
728         (WebCore::SVGPathSeg::~SVGPathSeg):
729         (WebCore::SVGPathSeg::):
730         (WebCore::SVGPathSeg::pathSegType):
731         (WebCore::SVGPathSeg::pathSegTypeAsLetter):
732         (WebCore::SVGPathSeg::toString):
733         (WebCore::SVGPathSeg::associatedAttributeName):
734         (WebCore::SVGPathSeg::SVGPathSeg):
735         (WebCore::SVGPathSegSingleCoord::SVGPathSegSingleCoord):
736         (WebCore::SVGPathSegSingleCoord::setX):
737         (WebCore::SVGPathSegSingleCoord::x):
738         (WebCore::SVGPathSegSingleCoord::setY):
739         (WebCore::SVGPathSegSingleCoord::y):
740         (WebCore::SVGPathSegSingleCoord::toString):
741         * svg/SVGPathSegList.cpp:
742         (WebCore::SVGPathSegList::getPathSegAtLength):
743         (WebCore::SVGPathSegList::toPathData):
744         (WebCore::SVGPathSegList::createAnimated):
745         * svg/SVGPathSegListBuilder.cpp:
746         (WebCore::SVGPathSegListBuilder::SVGPathSegListBuilder):
747         (WebCore::SVGPathSegListBuilder::moveTo):
748         (WebCore::SVGPathSegListBuilder::lineTo):
749         (WebCore::SVGPathSegListBuilder::curveToCubic):
750         (WebCore::SVGPathSegListBuilder::curveToCubicSmooth):
751         (WebCore::SVGPathSegListBuilder::curveToQuadratic):
752         (WebCore::SVGPathSegListBuilder::curveToQuadraticSmooth):
753         (WebCore::SVGPathSegListBuilder::arcTo):
754         * svg/SVGPathSegListBuilder.h:
755         (WebCore::SVGPathSegListBuilder::setCurrentSVGPathSegList):
756         * svg/SVGPathSource.h: Added.
757         (WebCore::SVGPathSource::~SVGPathSource):
758         (WebCore::SVGPathSource::SVGPathSource):
759         * svg/SVGPathStringSource.cpp: Added.
760         (WebCore::SVGPathStringSource::SVGPathStringSource):
761         (WebCore::SVGPathStringSource::~SVGPathStringSource):
762         (WebCore::SVGPathStringSource::endOfStream):
763         (WebCore::SVGPathStringSource::parseFloat):
764         (WebCore::SVGPathStringSource::parseFlag):
765         (WebCore::SVGPathStringSource::skipSpaces):
766         (WebCore::SVGPathStringSource::parseSVGSegmentType):
767         (WebCore::SVGPathStringSource::hasRemainingCoordinatesInCurrentCommand):
768         * svg/SVGPathStringSource.h: Added.
769         (WebCore::SVGPathStringSource::create):
770
771 2010-08-06  Robert Hogan  <robert@webkit.org>
772
773         Reviewed by Adam Barth.
774
775         Define setPrivateBrowsingEnabled()
776         https://bugs.webkit.org/show_bug.cgi?id=42283
777
778         Define the scope of 'private browsing' in WebKit
779         See also https://bugs.webkit.org/show_bug.cgi?id=41801
780
781         * page/Settings.h:
782
783 2010-08-06  Adam Barth  <abarth@webkit.org>
784
785         Reviewed by Eric Seidel.
786
787         REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
788         https://bugs.webkit.org/show_bug.cgi?id=43605
789
790         The old parser used to drop <noembed> on the floor.  We're supposed to
791         add it to the DOM, but we don't want to create a renderer for it.
792
793         * html/HTMLElement.cpp:
794         (WebCore::HTMLElement::rendererIsNeeded):
795
796 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
797
798         Reviewed by Adam Barth.
799
800         Fix style violations in Document
801         https://bugs.webkit.org/show_bug.cgi?id=43657
802
803         No new tests because no new functionality.
804
805         * dom/Document.cpp:
806         (WebCore::acceptsEditingFocus):
807         (WebCore::Document::Document):
808         (WebCore::Document::importNode):
809         (WebCore::Document::adoptNode):
810         (WebCore::Document::getElementById):
811         (WebCore::Document::readyState):
812         (WebCore::Document::createTreeWalker):
813         (WebCore::Document::shouldScheduleLayout):
814         (WebCore::Document::nextFocusableNode):
815         (WebCore::Document::previousFocusableNode):
816         (WebCore::Document::nodeAbsIndex):
817         (WebCore::Document::nodeWithAbsIndex):
818         (WebCore::Document::childTypeAllowed):
819         (WebCore::Document::canReplaceChild):
820         (WebCore::Document::recalcStyleSelector):
821         (WebCore::Document::setFocusedNode):
822         (WebCore::Document::attachNodeIterator):
823         (WebCore::Document::detachNodeIterator):
824         (WebCore::Document::parseQualifiedName):
825         (WebCore::Document::getImageMap):
826         (WebCore::Document::setInPageCache):
827         (WebCore::Document::addMarker):
828         (WebCore::Document::copyMarkers):
829         (WebCore::Document::shiftMarkers):
830         (WebCore::Document::setMarkersActive):
831         (WebCore::Document::parentDocument):
832         (WebCore::Document::topDocument):
833         (WebCore::FormElementKeyHash::hash):
834         (WebCore::Document::initSecurityContext):
835         * dom/Document.h:
836         (WebCore::Document::incDOMTreeVersion):
837         (WebCore::Document::domTreeVersion):
838
839 2010-08-06  Eric Carlson  <eric.carlson@apple.com>
840
841         Unreviewed, release Qt build fix.
842
843         * rendering/RenderLayerBacking.cpp:
844         (WebCore::RenderLayerBacking::containsPaintedContent): Guard call to toRenderVideo()
845         with #if ENABLE(VIDEO).
846
847 2010-08-06  Eric Carlson  <eric.carlson@apple.com>
848
849         Reviewed by Simon Fraser.
850
851         HTML5 "video" tag with poster frame defined "flashes" right before movie displays
852         https://bugs.webkit.org/show_bug.cgi?id=37591
853         <rdar://problem/5650561>
854
855         If a video element has a poster frame, display it until the playback is requested or the movie's
856         time is changed.
857
858         Test: compositing/video/video-poster.html
859
860         * html/HTMLMediaElement.cpp:
861         (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_displayMode.
862         (WebCore::HTMLMediaElement::prepareForLoad): Set m_displayMode to Unknown.
863         (WebCore::HTMLMediaElement::loadResource): Call updateDisplayState to let it set configure
864         the poster, if necessary.
865         (WebCore::HTMLMediaElement::noneSupported): updatePosterImage -> updateDisplayState.
866         (WebCore::HTMLMediaElement::setNetworkState): Ditto.
867         (WebCore::HTMLMediaElement::setReadyState): Ditto.
868         (WebCore::HTMLMediaElement::finishSeek): Set display mode to Video so a video frame will be
869         displayed if a poster is currently visible.
870         (WebCore::HTMLMediaElement::mediaPlayerRepaint): updatePosterImage -> updateDisplayState.
871         (WebCore::HTMLMediaElement::updatePlayState): Set display mode to Video.
872         * html/HTMLMediaElement.h:
873         (WebCore::HTMLMediaElement::displayMode): New.
874         (WebCore::HTMLMediaElement::setDisplayMode): Ditto.
875         (WebCore::HTMLMediaElement::updateDisplayState): Ditto.
876
877         * html/HTMLVideoElement.cpp:
878         (WebCore::HTMLVideoElement::HTMLVideoElement): Remove m_shouldDisplayPosterImage.
879         (WebCore::HTMLVideoElement::attach): Call shouldDisplayPosterImage instead of checking
880         m_shouldDisplayPosterImage directly.
881         (WebCore::HTMLVideoElement::detach): Ditto.
882         (WebCore::HTMLVideoElement::parseMappedAttribute): Set m_displayMode to Unknown before calling 
883         updateDisplayState so shouldDisplayPosterImage() will return the correct result. Remove the
884         PLUGIN_PROXY_FOR_VIDEO code, it is now in updateDisplayState.
885         (WebCore::HTMLVideoElement::setDisplayMode): Renamed from updatePosterImage and rework logic
886         so we tell the media engine it is OK to display video frames when there is no poster, or 
887         once the media engine has something to display and the movie has started or seeked.
888         (WebCore::HTMLVideoElement::updateDisplayState): New, manage display mode based on poster 
889         attribute.
890         * html/HTMLVideoElement.h:
891         (WebCore::HTMLVideoElement::shouldDisplayPosterImage):
892
893         * platform/graphics/MediaPlayer.cpp:
894         (WebCore::MediaPlayer::prepareForRendering): New, call media engine's prepareForRendering.
895         * platform/graphics/MediaPlayer.h:
896         * platform/graphics/MediaPlayerPrivate.h:
897         (WebCore::MediaPlayerPrivateInterface::prepareForRendering):
898
899         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
900         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
901         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): Initialize m_isAllowedToRender.
902         (WebCore::MediaPlayerPrivate::setUpVideoRendering):
903         (WebCore::MediaPlayerPrivate::isReadyForVideoSetup): Renamed from isReadyForRendering.
904         (WebCore::MediaPlayerPrivate::prepareForRendering): New, set m_isAllowedToRender and
905         inform the client that render tree should be updated so we correctly switch from showing
906         the poster, which often doens't use a layer, to showing video frames, which do.
907         (WebCore::MediaPlayerPrivate::updateStates): Don't call setUpVideoRendering until 
908         isReadyForVideoSetup() returns true.
909         (WebCore::MediaPlayerPrivate::supportsAcceleratedRendering): isReadyForRendering -> isReadyForVideoSetup
910
911         * rendering/RenderLayerBacking.cpp:
912         (WebCore::RenderLayerBacking::containsPaintedContent): Only consider video when displaying
913         video frames so a poster won't force compositing mode.
914
915         * rendering/RenderLayerCompositor.cpp:
916         (WebCore::RenderLayerCompositor::requiresCompositingForVideo): Ditto.
917
918         * rendering/RenderVideo.cpp:
919         (WebCore::RenderVideo::shouldDisplayVideo): New, return true when not displaying a poster.
920         * rendering/RenderVideo.h:
921
922 2010-08-06  James Robinson  <jamesr@chromium.org>
923
924         Reviewed by Simon Fraser.
925
926         Accelerated 2d canvases should get compositing layers
927         https://bugs.webkit.org/show_bug.cgi?id=43362
928
929         Allows for 2d canvas rendering contexts to use a GraphicsContext3D for
930         accelerated rendering.  The rendering context holds the GraphicsContext3D
931         alive and exposes it to the compositor.  The 3d context itself is passed
932         down through the GraphicsContext to use for actual rendering:
933         https://bug-43362-attachments.webkit.org/attachment.cgi?id=63557
934
935         This approach will let us simultaneously prototype accelerated techniques
936         for canvas 2d and revise the design of canvas elements without destabilizing
937         all ports.
938
939         * html/HTMLCanvasElement.cpp:
940         (WebCore::HTMLCanvasElement::getContext):
941         (WebCore::HTMLCanvasElement::willDraw):
942         (WebCore::HTMLCanvasElement::makeRenderingResultsAvailable):
943         * html/canvas/CanvasRenderingContext.h:
944         (WebCore::CanvasRenderingContext::paintRenderingResultsToCanvas):
945         * html/canvas/CanvasRenderingContext2D.cpp:
946         (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
947         (WebCore::CanvasRenderingContext2D::isAccelerated):
948         (WebCore::CanvasRenderingContext2D::reset):
949         (WebCore::CanvasRenderingContext2D::willDraw):
950         (WebCore::CanvasRenderingContext2D::paintRenderingResultsToCanvas):
951         * html/canvas/CanvasRenderingContext2D.h:
952         (WebCore::CanvasRenderingContext2D::graphicsContext3D):
953         * html/canvas/WebGLRenderingContext.cpp:
954         (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas):
955         * html/canvas/WebGLRenderingContext.h:
956         * platform/graphics/GraphicsContext.h:
957         * platform/graphics/skia/GraphicsContextSkia.cpp:
958         (WebCore::GraphicsContext::syncSoftwareCanvas):
959
960 2010-08-06  Eric Seidel  <eric@webkit.org>
961
962         Reviewed by Chris Fleizach.
963
964         Make AX Code use more specific RenderObject subclass types
965         https://bugs.webkit.org/show_bug.cgi?id=43632
966
967         No functional change, thus no tests.
968
969         * accessibility/AXObjectCache.cpp:
970         (WebCore::nodeHasRole):
971          - Make this take a String instead of AtomicString, to avoid
972            thrashing the atomic string hash.
973            It would be better to take a const char* here, except
974            one caller passes nullAtom.
975         (WebCore::createFromRenderer):
976          - Split this out from getOrCreate to make it simpler.
977          - No longer needs to deal with setting a "result"
978            pointer and can instead just return.
979          - I've also made this function use RenderBoxModelObject*
980            where appropriate.
981         (WebCore::AXObjectCache::getOrCreate):
982         * accessibility/AXObjectCache.h:
983         * accessibility/AccessibilityImageMapLink.cpp:
984         (WebCore::AccessibilityImageMapLink::AccessibilityImageMapLink):
985          - Fix style.
986         * accessibility/AccessibilityMenuList.cpp:
987         (WebCore::AccessibilityMenuList::AccessibilityMenuList):
988          - Use a more specific type.
989         (WebCore::AccessibilityMenuList::renderer):
990         * accessibility/AccessibilityMenuList.h:
991         (WebCore::AccessibilityMenuList::create):
992         * accessibility/AccessibilityMenuListPopup.cpp:
993          - Need RenderMenuList.h since renderer() is a RenderMenuList*
994         * accessibility/AccessibilityObject.cpp:
995         (WebCore::renderListItemContainerForNode):
996         * accessibility/AccessibilityRenderObject.cpp:
997         (WebCore::AccessibilityRenderObject::renderBoxModelObject):
998          - New helper function, similar to Node::renderBoxModelObject()
999         (WebCore::isInlineWithContinuation):
1000         (WebCore::AccessibilityRenderObject::isNativeImage):
1001         (WebCore::AccessibilityRenderObject::isAttachment):
1002         (WebCore::AccessibilityRenderObject::isMultiSelectable):
1003         (WebCore::AccessibilityRenderObject::isReadOnly):
1004         (WebCore::AccessibilityRenderObject::isFieldset):
1005         (WebCore::AccessibilityRenderObject::actionElement):
1006         (WebCore::AccessibilityRenderObject::stringValue):
1007         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1008         (WebCore::AccessibilityRenderObject::setValue):
1009         (WebCore::AccessibilityRenderObject::widget):
1010         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
1011         (WebCore::AccessibilityRenderObject::doAccessibilityHitTest):
1012         (WebCore::AccessibilityRenderObject::renderObjectIsObservable):
1013         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
1014         (WebCore::AccessibilityRenderObject::addChildren):
1015         (WebCore::msaaRoleForRenderer):
1016         * accessibility/AccessibilityRenderObject.h:
1017         * accessibility/AccessibilityTable.cpp:
1018         (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
1019         * accessibility/AccessibilityTable.h:
1020          - Remove unneeded "using namespace std".
1021
1022 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
1023
1024         Reviewed by Eric Seidel.
1025
1026         Factor an AsyncScriptRunner out of Document
1027         https://bugs.webkit.org/show_bug.cgi?id=43633
1028
1029         This copies the existing implementation exactly. In the future
1030         this will use PendingScript which handles ref counting without
1031         the need for those manual ref()/deref()s. This is also currently
1032         a trivial class, but a little more logic will be added to it to
1033         support <script async>.
1034
1035         No new tests because no new functionality.
1036
1037         * Android.mk:
1038         * CMakeLists.txt:
1039         * GNUmakefile.am:
1040         * WebCore.gypi:
1041         * WebCore.pro:
1042         * WebCore.vcproj/WebCore.vcproj:
1043         * WebCore.xcodeproj/project.pbxproj:
1044         * dom/AsyncScriptRunner.cpp: Added.
1045         (WebCore::AsyncScriptRunner::AsyncScriptRunner):
1046         (WebCore::AsyncScriptRunner::~AsyncScriptRunner):
1047         (WebCore::AsyncScriptRunner::executeScriptSoon):
1048         (WebCore::AsyncScriptRunner::suspend):
1049         (WebCore::AsyncScriptRunner::resume):
1050         (WebCore::AsyncScriptRunner::timerFired):
1051         * dom/AsyncScriptRunner.h: Added.
1052         (WebCore::AsyncScriptRunner::create):
1053         (WebCore::AsyncScriptRunner::hasPendingScripts):
1054         * dom/Document.cpp:
1055         (WebCore::Document::Document):
1056         (WebCore::Document::~Document):
1057         * dom/Document.h:
1058         (WebCore::Document::asyncScriptRunner):
1059         * dom/ScriptElement.cpp:
1060         (WebCore::ScriptElementData::notifyFinished):
1061         * page/PageGroupLoadDeferrer.cpp:
1062         (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1063         (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1064
1065 2010-08-06  James Robinson  <jamesr@chromium.org>
1066
1067         Reviewed by Dimitri Glazkov.
1068
1069         [chromium] Implement GLES2Canvas/Texture in terms of GraphicsContext3D instead of direct OpenGL calls
1070         https://bugs.webkit.org/show_bug.cgi?id=43608
1071
1072         This converts all OpenGL calls in GLES2(Canvas|Texture) to calls on the corresponding GraphicsContext3D
1073         API, due to feedback on https://bugs.webkit.org/show_bug.cgi?id=43362.  Nearly all the changes are
1074         applying the regex s/gl([A-Z])/m_context->%1</ and removing unnecessary makeCurrent() calls.
1075         Other changes hilighted below.
1076
1077         * platform/graphics/chromium/GLES2Canvas.cpp:
1078         (WebCore::affineTo3x3):
1079         (WebCore::GLES2Canvas::GLES2Canvas):
1080         (WebCore::GLES2Canvas::~GLES2Canvas):
1081         (WebCore::GLES2Canvas::clearRect):
1082         (WebCore::GLES2Canvas::fillRect):
1083         (WebCore::GLES2Canvas::drawTexturedRect):
1084         (WebCore::GLES2Canvas::applyCompositeOperator):
1085         (WebCore::GLES2Canvas::getQuadVertices):
1086         (WebCore::GLES2Canvas::getQuadIndices):
1087             - use new typed XXArray classes for buffer uploads
1088         (WebCore::loadShader):
1089         (WebCore::GLES2Canvas::getSimpleProgram):
1090         (WebCore::GLES2Canvas::getTexProgram):
1091         (WebCore::GLES2Canvas::createTexture):
1092         (WebCore::GLES2Canvas::checkGLError):
1093         * platform/graphics/chromium/GLES2Canvas.h:
1094         (WebCore::GLES2Canvas::context):
1095         * platform/graphics/chromium/GLES2Texture.cpp:
1096         (WebCore::GLES2Texture::GLES2Texture):
1097         (WebCore::GLES2Texture::~GLES2Texture):
1098         (WebCore::GLES2Texture::create):
1099         (WebCore::convertFormat):
1100         (WebCore::GLES2Texture::load):
1101         (WebCore::GLES2Texture::bind):
1102         * platform/graphics/chromium/GLES2Texture.h:
1103         * platform/graphics/skia/GraphicsContextSkia.cpp:
1104         (WebCore::GraphicsContext::fillRect):
1105             - add a missing restore() call to the H/W path
1106         * platform/graphics/skia/ImageSkia.cpp:
1107         (WebCore::drawBitmapGLES2):
1108         * platform/graphics/skia/PlatformContextSkia.cpp:
1109         (WebCore::PlatformContextSkia::setGraphicsContext3D):
1110         (WebCore::PlatformContextSkia::uploadSoftwareToHardware):
1111             - avoid applying CTM to uploads
1112         (WebCore::PlatformContextSkia::readbackHardwareToSoftware):
1113         * platform/graphics/skia/PlatformContextSkia.h:
1114
1115 2010-08-06  James Robinson  <jamesr@chromium.org>
1116
1117         Reviewed by Simon Fraser.
1118
1119         Composited canvas should be treated the same by the compositor and not be WebGL specific
1120         https://bugs.webkit.org/show_bug.cgi?id=43589
1121
1122         This treats all GraphicsContext3D-backed layers the same instead of special casing WebGL.
1123         The cross-platform change is to rename GraphicsLayer::setContentsToWebGL() to
1124         GraphicsLayer::setContentsToCanvas() and to rename all implementations.
1125
1126         This patch also renames the chromium class used for accelerating these layers.
1127
1128         Cross platform changes:
1129         * WebCore.gypi:
1130         * platform/graphics/GraphicsLayer.h:
1131         (WebCore::GraphicsLayer::setContentsToCanvas):
1132             Rename the function on the base class. GraphicsLayerCA and GraphicsLayerChromium implement this.
1133         * rendering/RenderLayerBacking.cpp:
1134         (WebCore::isAcceleratedCanvas):
1135             Helper function to see if a renderer is associated with an accelerated compositing layer.
1136         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
1137         (WebCore::RenderLayerBacking::containsPaintedContent):
1138         (WebCore::RenderLayerBacking::rendererContentChanged):
1139        Chromium specific changes:
1140         * platform/graphics/chromium/CanvasLayerChromium.cpp: Added.
1141         (WebCore::CanvasLayerChromium::create):
1142         (WebCore::CanvasLayerChromium::CanvasLayerChromium):
1143         (WebCore::CanvasLayerChromium::textureId):
1144         (WebCore::CanvasLayerChromium::updateTextureContents):
1145         (WebCore::CanvasLayerChromium::setContext):
1146         * platform/graphics/chromium/CanvasLayerChromium.h: Added.
1147         (WebCore::CanvasLayerChromium::drawsContent):
1148         (WebCore::CanvasLayerChromium::ownsTexture):
1149         (WebCore::CanvasLayerChromium::shaderProgramId):
1150         (WebCore::CanvasLayerChromium::setShaderProgramId):
1151         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1152         (WebCore::GraphicsLayerChromium::setContentsNeedsDisplay):
1153         (WebCore::GraphicsLayerChromium::setContentsToCanvas):
1154         * platform/graphics/chromium/GraphicsLayerChromium.h:
1155         (WebCore::GraphicsLayerChromium::):
1156         * platform/graphics/chromium/LayerRendererChromium.cpp:
1157         (WebCore::LayerRendererChromium::drawLayer):
1158         (WebCore::LayerRendererChromium::initializeSharedGLObjects):
1159         * platform/graphics/chromium/LayerRendererChromium.h:
1160         (WebCore::LayerRendererChromium::):
1161         * platform/graphics/chromium/WebGLLayerChromium.cpp: Removed.
1162         * platform/graphics/chromium/WebGLLayerChromium.h: Removed.
1163         Mac specific changes:
1164         * platform/graphics/mac/GraphicsLayerCA.h:
1165         (WebCore::GraphicsLayerCA::):
1166         * platform/graphics/mac/GraphicsLayerCA.mm:
1167         (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers):
1168         (WebCore::GraphicsLayerCA::updateContentsCanvasLayer):
1169         (WebCore::GraphicsLayerCA::setContentsToCanvas):
1170
1171 2010-08-06  Patrick Gansterer  <paroga@paroga.com>
1172
1173         Reviewed by Eric Seidel.
1174
1175         Add PluginView::bindingInstance() to PluginViewNone
1176         https://bugs.webkit.org/show_bug.cgi?id=42936
1177
1178         * bindings/js/ScriptControllerEfl.cpp:
1179         (WebCore::ScriptController::createScriptInstanceForWidget): Removed workaround.
1180         * plugins/PluginViewNone.cpp: Added property svn:eol-style.
1181         (WebCore::PluginView::bindingInstance): Added missing method and use it on WinCE.
1182
1183 2010-08-06  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1184
1185         Reviewed by Xan Lopez.
1186
1187         Use new "package" name also for the directory where the inspector
1188         support files are installed.
1189
1190         * GNUmakefile.am:
1191
1192 2010-08-06  Jian Li  <jianli@chromium.org>
1193
1194         Fix chromium build break.
1195
1196         * inspector/InspectorDebuggerAgent.h:
1197
1198 2010-08-06  Dirk Schulze  <krit@webkit.org>
1199
1200         Not reviewed. Sort Xcode project file.
1201
1202         * WebCore.xcodeproj/project.pbxproj:
1203
1204 2010-08-06  Jessie Berlin  <jberlin@apple.com>
1205
1206         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
1207         Unreviewed.
1208
1209         * accessibility/AXObjectCache.h:
1210         * accessibility/AccessibilityARIAGrid.h:
1211         * accessibility/AccessibilityListBoxOption.h:
1212         * accessibility/AccessibilityObject.h:
1213         * accessibility/AccessibilityRenderObject.h:
1214         * accessibility/AccessibilityTable.h:
1215         * bindings/cpp/WebDOMCString.h:
1216         * bindings/cpp/WebDOMString.h:
1217         * bindings/gobject/ConvertToUTF8String.h:
1218         * bindings/js/DOMWrapperWorld.h:
1219         * bindings/js/JSDOMBinding.h:
1220         * bindings/js/JSDOMWindowBase.h:
1221         * bindings/js/JSMessagePortCustom.h:
1222         * bindings/js/JavaScriptCallFrame.h:
1223         * bindings/js/ScriptController.h:
1224         * bindings/js/ScriptProfile.h:
1225         * bindings/js/ScriptSourceProvider.h:
1226         * bindings/js/ScriptString.h:
1227         * bindings/js/WorkerScriptController.h:
1228         * bindings/objc/DOMImplementationFront.h:
1229         * bindings/v8/ScheduledAction.h:
1230         * bindings/v8/ScriptController.h:
1231         * bindings/v8/V8DOMWindowShell.h:
1232         * bindings/v8/V8Proxy.h:
1233         * bindings/v8/V8Utilities.h:
1234         * bindings/v8/custom/V8CustomXPathNSResolver.h:
1235         * bridge/c/c_utility.h:
1236         * css/CSSFontSelector.h:
1237         * css/CSSHelper.h:
1238         * css/CSSOMUtils.h:
1239         * css/CSSPrimitiveValue.h:
1240         * css/MediaList.h:
1241         * css/StyleBase.h:
1242         * css/StyleSheetList.h:
1243         * css/WebKitCSSKeyframesRule.h:
1244         * dom/CheckedRadioButtons.h:
1245         * dom/DOMImplementation.h:
1246         * dom/DocumentMarker.h:
1247         * dom/DynamicNodeList.h:
1248         * dom/EventTarget.h:
1249         * dom/MessagePort.h:
1250         * dom/MessagePortChannel.h:
1251         * dom/NameNodeList.h:
1252         * dom/Node.h:
1253         * dom/NodeList.h:
1254         * dom/OptionGroupElement.h:
1255         * dom/ScriptExecutionContext.h:
1256         * dom/SelectElement.h:
1257         * dom/ViewportArguments.h:
1258         * dom/make_names.pl:
1259         * editing/HTMLInterchange.h:
1260         * editing/htmlediting.h:
1261         * editing/markup.h:
1262         * html/CollectionCache.h:
1263         * html/DOMFormData.h:
1264         * html/DataGridColumnList.h:
1265         * html/DateComponents.h:
1266         * html/FileStream.h:
1267         * html/FileStreamProxy.h:
1268         * html/FormDataList.h:
1269         (WebCore::FormDataList::appendData):
1270         * html/HTMLCollection.h:
1271         * html/HTMLElementStack.h:
1272         * html/HTMLFormattingElementList.h:
1273         * html/HTMLParserQuirks.h:
1274         * html/HTMLQuoteElement.h:
1275         * html/HTMLScriptRunnerHost.h:
1276         * html/StepRange.h:
1277         * html/canvas/CanvasGradient.h:
1278         * html/canvas/CanvasNumberArray.h:
1279         * html/canvas/CanvasPattern.h:
1280         * inspector/InjectedScript.h:
1281         * inspector/InspectorCSSStore.h:
1282         * inspector/InspectorClient.h:
1283         * inspector/InspectorFrontendClient.h:
1284         * inspector/InspectorValues.h:
1285         * inspector/ScriptDebugListener.h:
1286         * loader/CachedResourceClient.h:
1287         * loader/CrossOriginAccessControl.h:
1288         * loader/DocumentThreadableLoader.h:
1289         * loader/FrameLoaderClient.h:
1290         * loader/RedirectScheduler.h:
1291         * loader/SubframeLoader.h:
1292         * loader/appcache/DOMApplicationCache.h:
1293         * loader/archive/ArchiveFactory.h:
1294         * loader/icon/IconDatabaseClient.h:
1295         * notifications/NotificationPresenter.h:
1296         * page/Chrome.h:
1297         * page/ChromeClient.h:
1298         * page/Console.h:
1299         * page/ContextMenuClient.h:
1300         * page/DOMSelection.h:
1301         * page/EditorClient.h:
1302         * page/EventHandler.h:
1303         * page/FrameView.h:
1304         * page/GeolocationPositionCache.h:
1305         * page/History.h:
1306         * page/Location.h:
1307         * page/Navigator.h:
1308         * page/NavigatorBase.h:
1309         * page/PluginHalterClient.h:
1310         * page/PrintContext.h:
1311         * page/SpeechInput.h:
1312         * page/SpeechInputListener.h:
1313         * page/animation/AnimationController.h:
1314         * platform/CookieJar.h:
1315         * platform/CrossThreadCopier.h:
1316         * platform/DragImage.h:
1317         * platform/FileSystem.h:
1318         * platform/Language.h:
1319         * platform/Length.h:
1320         * platform/LinkHash.h:
1321         * platform/LocalizationStrategy.h:
1322         * platform/LocalizedStrings.h:
1323         * platform/Logging.h:
1324         * platform/Pasteboard.h:
1325         * platform/PopupMenuClient.h:
1326         * platform/SearchPopupMenu.h:
1327         * platform/Widget.h:
1328         * platform/cf/BinaryPropertyList.h:
1329         * platform/chromium/ChromiumBridge.h:
1330         * platform/chromium/ClipboardUtilitiesChromium.h:
1331         * platform/cocoa/KeyEventCocoa.h:
1332         * platform/graphics/Color.h:
1333         * platform/graphics/FontCache.h:
1334         * platform/graphics/FontData.h:
1335         * platform/graphics/FontSelector.h:
1336         * platform/graphics/GraphicsTypes.h:
1337         * platform/graphics/Icon.h:
1338         * platform/graphics/ImageBuffer.h:
1339         * platform/graphics/ImageSource.h:
1340         * platform/graphics/MediaPlayer.h:
1341         * platform/graphics/MediaPlayerPrivate.h:
1342         * platform/graphics/Path.h:
1343         * platform/graphics/StringTruncator.h:
1344         * platform/graphics/cairo/FontCustomPlatformData.h:
1345         * platform/graphics/cairo/FontPlatformData.h:
1346         * platform/graphics/cg/FontPlatformData.h:
1347         * platform/graphics/cg/ImageSourceCG.h:
1348         * platform/graphics/chromium/FontCustomPlatformData.h:
1349         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
1350         * platform/graphics/chromium/FontPlatformDataLinux.h:
1351         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1352         * platform/graphics/haiku/FontCustomPlatformData.h:
1353         * platform/graphics/mac/FontCustomPlatformData.h:
1354         * platform/graphics/mac/FontPlatformData.h:
1355         * platform/graphics/qt/FontCustomPlatformData.h:
1356         * platform/graphics/qt/FontPlatformData.h:
1357         * platform/graphics/win/FontCustomPlatformData.h:
1358         * platform/graphics/win/FontCustomPlatformDataCairo.h:
1359         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1360         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
1361         * platform/graphics/wince/FontPlatformData.h:
1362         * platform/graphics/wince/MediaPlayerPrivateWince.h:
1363         * platform/graphics/wince/MediaPlayerProxy.h:
1364         * platform/graphics/wx/FontCustomPlatformData.h:
1365         * platform/graphics/wx/FontPlatformData.h:
1366         * platform/mac/PasteboardHelper.h:
1367         * platform/network/DNS.h:
1368         * platform/network/FormData.h:
1369         * platform/network/FormDataBuilder.h:
1370         * platform/network/HTTPParsers.h:
1371         * platform/text/Hyphenation.h:
1372         * platform/text/LineEnding.h:
1373         * platform/text/TextCodec.h:
1374         * platform/text/TextEncoding.h:
1375         * platform/text/TextStream.h:
1376         * platform/win/BString.h:
1377         * platform/win/ClipboardUtilitiesWin.h:
1378         * platform/win/WCDataObject.h:
1379         * platform/win/WebCoreTextRenderer.h:
1380         * plugins/DOMMimeType.h:
1381         * plugins/DOMMimeTypeArray.h:
1382         * plugins/DOMPlugin.h:
1383         * plugins/DOMPluginArray.h:
1384         * rendering/CounterNode.h:
1385         * rendering/HitTestResult.h:
1386         * rendering/RenderObjectChildList.h:
1387         * rendering/RenderText.h:
1388         * rendering/RenderTreeAsText.h:
1389         * rendering/TextControlInnerElements.h:
1390         * rendering/style/ContentData.h:
1391         * rendering/style/RenderStyle.h:
1392         * storage/DatabaseAuthorizer.h:
1393         * storage/DatabaseTrackerClient.h:
1394         * storage/SQLTransaction.h:
1395         * storage/SQLTransactionSync.h:
1396         * storage/Storage.h:
1397         * storage/chromium/DatabaseObserver.h:
1398         * svg/SVGAnimatedTemplate.h:
1399         * svg/SVGDocumentExtensions.h:
1400         * svg/SVGGlyphElement.h:
1401         * svg/SVGHKernElement.h:
1402         * svg/SVGNumberList.h:
1403         * svg/SVGPointList.h:
1404         * svg/SVGPreserveAspectRatio.h:
1405         * svg/SVGStylable.h:
1406         * svg/SVGTests.h:
1407         * svg/SVGTransformList.h:
1408         * svg/SVGTransformable.h:
1409         * svg/SVGVKernElement.h:
1410         * websockets/ThreadableWebSocketChannel.h:
1411         * websockets/ThreadableWebSocketChannelClientWrapper.h:
1412         * websockets/WebSocket.h:
1413         * websockets/WebSocketChannel.h:
1414         * websockets/WebSocketHandshakeResponse.h:
1415         * wml/WMLErrorHandling.h:
1416         * wml/WMLPageState.h:
1417         * wml/WMLVariables.h:
1418         * workers/DefaultSharedWorkerRepository.h:
1419         * workers/SharedWorkerRepository.h:
1420         * workers/Worker.h:
1421         * workers/WorkerContextProxy.h:
1422         * workers/WorkerLoaderProxy.h:
1423         * workers/WorkerLocation.h:
1424         * workers/WorkerMessagingProxy.h:
1425         * workers/WorkerReportingProxy.h:
1426         * workers/WorkerThread.h:
1427         * xml/DOMParser.h:
1428         * xml/XMLHttpRequestUpload.h:
1429         * xml/XPathEvaluator.h:
1430         * xml/XPathExpression.h:
1431         * xml/XPathNSResolver.h:
1432         * xml/XPathResult.h:
1433         * xml/XPathUtil.h:
1434
1435 2010-08-04  Zhenyao Mo  <zmo@google.com>
1436
1437         Reviewed by Dimitri Glazkov.
1438
1439         WebGLBuffer::associateBufferData(ArrayBufferView* array) copies incorrect data for sliced views
1440         https://bugs.webkit.org/show_bug.cgi?id=42124
1441
1442         * html/canvas/WebGLBuffer.cpp:
1443         (WebCore::WebGLBuffer::associateBufferDataImpl): Helper function that's called by all associateBufferData().
1444         (WebCore::WebGLBuffer::associateBufferData): Call associateBufferDataImpl().
1445         (WebCore::WebGLBuffer::associateBufferSubDataImpl): Helper function that's called by all associateBufferSubData().
1446         (WebCore::WebGLBuffer::associateBufferSubData): Call associateBufferSubDataImpl().
1447         * html/canvas/WebGLBuffer.h: Declare helper functions.
1448
1449 2010-08-06  Adam Barth  <abarth@webkit.org>
1450
1451         Reviewed by Eric Seidel.
1452
1453         noembed should respect whether plugins are enabled
1454         https://bugs.webkit.org/show_bug.cgi?id=43611
1455
1456         This instruction isn't in the HTML5 spec, but it seems like the right
1457         thing to do.  I suspect this is because the spec doesn't understand
1458         that plugins can be disabled.
1459
1460         I'm not sure how we can test this in DumpRenderTree, but I'm open to
1461         suggestions.
1462
1463         * html/HTMLTreeBuilder.cpp:
1464         (WebCore::HTMLTreeBuilder::adjustedLexerState):
1465         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
1466         (WebCore::HTMLTreeBuilder::processStartTagForInHead):
1467         (WebCore::HTMLTreeBuilder::scriptEnabled):
1468         (WebCore::HTMLTreeBuilder::pluginsEnabled):
1469         * html/HTMLTreeBuilder.h:
1470
1471 2010-08-06  Tony Gentilcore  <tonyg@chromium.org>
1472
1473         Reviewed by Adam Barth.
1474
1475         Factor out PendingScript and protect its members
1476         https://bugs.webkit.org/show_bug.cgi?id=43391
1477
1478         This will be shared by AsyncScriptRunner.
1479
1480         No new tests because no new functionality.
1481
1482         * Android.mk:
1483         * CMakeLists.txt:
1484         * GNUmakefile.am:
1485         * WebCore.gypi:
1486         * WebCore.pro:
1487         * WebCore.vcproj/WebCore.vcproj:
1488         * WebCore.xcodeproj/project.pbxproj:
1489         * dom/PendingScript.cpp: Added.
1490         (WebCore::PendingScript::~PendingScript):
1491         (WebCore::PendingScript::element):
1492         (WebCore::PendingScript::releaseElementAndClear):
1493         (WebCore::PendingScript::setCachedScript):
1494         (WebCore::PendingScript::cachedScript):
1495         * dom/PendingScript.h: Added.
1496         (WebCore::PendingScript::PendingScript):
1497         (WebCore::PendingScript::startingLineNumber):
1498         (WebCore::PendingScript::watchingForLoad):
1499         (WebCore::PendingScript::setWatchingForLoad):
1500         (WebCore::PendingScript::hasElement):
1501         (WebCore::PendingScript::adoptElement):
1502         (WebCore::PendingScript::notifyFinished):
1503         * html/HTMLScriptRunner.cpp:
1504         (WebCore::HTMLScriptRunner::sourceFromPendingScript):
1505         (WebCore::HTMLScriptRunner::haveParsingBlockingScript):
1506         (WebCore::HTMLScriptRunner::requestScript):
1507         * html/HTMLScriptRunner.h:
1508
1509 2010-08-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1510
1511         Reviewed by Darin Adler.
1512
1513         Change permission to access methods in XMLDocumentParser.h
1514         https://bugs.webkit.org/show_bug.cgi?id=43180
1515
1516         Change permission to access wellFormed(), lineNumber() and columnNumber()
1517         in XMLDocumentParser.h. Because, the methods are used by WML.
1518
1519         * dom/XMLDocumentParser.h:
1520         (WebCore::XMLDocumentParser::wellFormed): Change accebility permission. 
1521
1522 2010-08-06  Martin Robinson  <mrobinson@igalia.com>
1523
1524         Reviewed by Gustavo Noronha Silva.
1525
1526         [GTK] Support for image drags
1527         https://bugs.webkit.org/show_bug.cgi?id=40788
1528
1529         Add image drag-and-drop support for WebKit GTK+.
1530
1531         * platform/gtk/ClipboardGtk.cpp:
1532         (WebCore::ClipboardGtk::setDragImage): Filled this stub.
1533         (WebCore::ClipboardGtk::setDragImageElement): Filled this stub.
1534         (WebCore::ClipboardGtk::createDragImage): Filled this stub.
1535         (WebCore::ClipboardGtk::declareAndWriteDragImage): Write the image URL, markup, and image itself to the data object member.
1536         * platform/gtk/ClipboardGtk.h: Brought method declarations into line with the parent class.
1537
1538 2010-08-06  Yury Semikhatsky  <yurys@chromium.org>
1539
1540         Reviewed by Pavel Feldman.
1541
1542         Web Inspector: extract debugger implementation into InspectorDebuggerAgent
1543         https://bugs.webkit.org/show_bug.cgi?id=42340
1544
1545         * CMakeLists.txt:
1546         * GNUmakefile.am:
1547         * WebCore.gypi:
1548         * WebCore.pro:
1549         * WebCore.vcproj/WebCore.vcproj:
1550         * WebCore.xcodeproj/project.pbxproj:
1551         * inspector/CodeGeneratorInspector.pm:
1552         * inspector/Inspector.idl:
1553         * inspector/InspectorController.cpp:
1554         (WebCore::InspectorController::InspectorController):
1555         (WebCore::InspectorController::connectFrontend):
1556         (WebCore::InspectorController::didCommitLoad):
1557         (WebCore::InspectorController::enableDebuggerFromFrontend):
1558         (WebCore::InspectorController::disableDebugger):
1559         (WebCore::InspectorController::resume):
1560         (WebCore::InspectorController::loadBreakpoints):
1561         (WebCore::InspectorController::saveBreakpoints):
1562         * inspector/InspectorController.h:
1563         (WebCore::InspectorController::debuggerAgent):
1564         * inspector/InspectorDebuggerAgent.cpp: Added.
1565         (WebCore::md5Base16):
1566         (WebCore::formatBreakpointId):
1567         (WebCore::InspectorDebuggerAgent::create):
1568         (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
1569         (WebCore::InspectorDebuggerAgent::~InspectorDebuggerAgent):
1570         (WebCore::InspectorDebuggerAgent::isDebuggerAlwaysEnabled):
1571         (WebCore::InspectorDebuggerAgent::activateBreakpoints):
1572         (WebCore::InspectorDebuggerAgent::deactivateBreakpoints):
1573         (WebCore::InspectorDebuggerAgent::setBreakpoint):
1574         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
1575         (WebCore::InspectorDebuggerAgent::editScriptSource):
1576         (WebCore::InspectorDebuggerAgent::getScriptSource):
1577         (WebCore::InspectorDebuggerAgent::pause):
1578         (WebCore::InspectorDebuggerAgent::resume):
1579         (WebCore::InspectorDebuggerAgent::stepOverStatement):
1580         (WebCore::InspectorDebuggerAgent::stepIntoStatement):
1581         (WebCore::InspectorDebuggerAgent::stepOutOfFunction):
1582         (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState):
1583         (WebCore::InspectorDebuggerAgent::clearForPageNavigation):
1584         (WebCore::InspectorDebuggerAgent::currentCallFrames):
1585         (WebCore::InspectorDebuggerAgent::loadBreakpoints):
1586         (WebCore::InspectorDebuggerAgent::saveBreakpoints):
1587         (WebCore::InspectorDebuggerAgent::didParseSource):
1588         (WebCore::InspectorDebuggerAgent::failedToParseSource):
1589         (WebCore::InspectorDebuggerAgent::didPause):
1590         (WebCore::InspectorDebuggerAgent::didContinue):
1591         (WebCore::InspectorDebuggerAgent::remoteFrontend):
1592         * inspector/InspectorDebuggerAgent.h: Added.
1593         * inspector/InspectorFrontend.cpp:
1594         * inspector/InspectorFrontend.h:
1595         * inspector/front-end/ScriptsPanel.js:
1596         (WebInspector.ScriptsPanel):
1597
1598 2010-08-06  Dean Jackson  <dino@apple.com>
1599
1600         Reviewed by Simon Fraser and Steve Block.
1601
1602         https://bugs.webkit.org/show_bug.cgi?id=42865
1603         Implement DeviceMotionEvent
1604
1605         Implement the DeviceMotionEvent interface as defined
1606         in http://dev.w3.org/geo/api/spec-source-orientation.html
1607         This is currently an empty implementation, in that there is
1608         no motion client connected - the platform implementations
1609         will need to do that.
1610
1611         Tests: fast/dom/DeviceMotion/create-event.html
1612                fast/dom/DeviceMotion/optional-event-properties.html
1613                fast/dom/DeviceMotion/window-property.html
1614
1615         * Android.derived.jscbindings.mk:
1616         * Android.derived.v8bindings.mk:
1617         * Android.jscbindings.mk:
1618         * Android.mk:
1619         * Android.v8bindings.mk:
1620         * CMakeLists.txt:
1621         * Configurations/FeatureDefines.xcconfig:
1622         * DerivedSources.make:
1623         * GNUmakefile.am:
1624         * WebCore.gypi:
1625         * WebCore.pro:
1626         * WebCore.vcproj/WebCore.vcproj:
1627         * WebCore.xcodeproj/project.pbxproj:
1628           - Add new files for DeviceMotionEvent build support
1629         * bindings/generic/RuntimeEnabledFeatures.cpp:
1630         * bindings/generic/RuntimeEnabledFeatures.h:
1631           - new runtime flags for device motion
1632         * bindings/js/JSDeviceMotionEventCustom.cpp: Added.
1633         * bindings/v8/custom/V8DeviceMotionEventCustom.cpp: Added.
1634           - Custom JS binding to translate property access through
1635             to the DeviceMotionData object that the Event holds
1636         * bindings/js/JSEventCustom.cpp:
1637           - Include the custom code for DeviceMotionEvent
1638         * dom/DeviceMotionClient.h: Added.
1639           - Pure virtual client for DeviceMotion access
1640         * dom/DeviceMotionController.cpp: Added.
1641         * dom/DeviceMotionController.h: Added.
1642           - Controller class that manages event dispatch
1643         * dom/DeviceMotionData.cpp: Added.
1644         * dom/DeviceMotionData.h: Added.
1645           - Representation of the data that comes from a device motion
1646             client that is then used within the event.
1647         * dom/DeviceMotionEvent.cpp: Added.
1648         * dom/DeviceMotionEvent.h: Added.
1649         * dom/DeviceMotionEvent.idl: Added.
1650           - The actual event implementation
1651         * dom/Document.cpp:
1652         (WebCore::Document::createEvent):
1653           - Update createEvent to allow "devicemotion" events
1654         * dom/Event.cpp:
1655         * dom/Event.h:
1656           - isDeviceMotionEvent virtual method
1657         * dom/EventNames.h:
1658           - new "devicemotion" event type
1659         * page/DOMWindow.cpp:
1660         (WebCore::DOMWindow::addEventListener):
1661         * page/DOMWindow.h:
1662         * page/DOMWindow.idl:
1663           - allow creation of "devicemotion" events and pass registration
1664             through to the Page's deviceMotionController object
1665         * page/Page.cpp:
1666         * page/Page.h:
1667           - new PageClient for deviceMotionController
1668
1669 2010-08-06  Kavita Kanetkar  <kkanetkar@chromium.org>
1670
1671         Reviewed by Joseph Pecoraro.
1672
1673         Web Inspector: Remove "Online/Offline" icon for Chrome's appcache devtools UI.
1674         https://bugs.webkit.org/show_bug.cgi?id=43450
1675
1676         * inspector/front-end/ApplicationCacheItemsView.js:
1677         (WebInspector.ApplicationCacheItemsView):
1678         (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems):
1679         (WebInspector.ApplicationCacheItemsView.prototype.updateNetworkState):
1680         * inspector/front-end/Settings.js:
1681
1682 2010-08-06  Pavel Feldman  <pfeldman@chromium.org>
1683
1684         Not reviewed. Rolling out 64835, 64836 and 64839.
1685
1686         * Android.jscbindings.mk:
1687         * Android.v8bindings.mk:
1688         * CMakeLists.txt:
1689         * GNUmakefile.am:
1690         * WebCore.gypi:
1691         * WebCore.pro:
1692         * WebCore.vcproj/WebCore.vcproj:
1693         * WebCore.xcodeproj/project.pbxproj:
1694         * bindings/js/JSBindingsAllInOne.cpp:
1695         * bindings/js/JSDOMWindowCustom.cpp:
1696         (WebCore::JSDOMWindow::openDatabase):
1697         * bindings/js/JSDatabaseCustom.cpp: Added.
1698         (WebCore::JSDatabase::changeVersion):
1699         (WebCore::createTransaction):
1700         (WebCore::JSDatabase::transaction):
1701         (WebCore::JSDatabase::readTransaction):
1702         * bindings/js/JSDatabaseSyncCustom.cpp: Added.
1703         (WebCore::JSDatabaseSync::changeVersion):
1704         (WebCore::createTransaction):
1705         (WebCore::JSDatabaseSync::transaction):
1706         (WebCore::JSDatabaseSync::readTransaction):
1707         * bindings/js/JSWorkerContextCustom.cpp:
1708         (WebCore::JSWorkerContext::openDatabase):
1709         (WebCore::JSWorkerContext::openDatabaseSync):
1710         * bindings/scripts/CodeGeneratorGObject.pm:
1711         * bindings/scripts/CodeGeneratorJS.pm:
1712         * bindings/scripts/CodeGeneratorV8.pm:
1713         * bindings/scripts/test/JS/JSTestCallback.cpp:
1714         (WebCore::JSTestCallback::~JSTestCallback):
1715         * bindings/scripts/test/JS/JSTestObj.cpp:
1716         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
1717         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
1718         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
1719         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
1720         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
1721         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
1722         (WebCore::jsTestObjPrototypeFunctionIdbKey):
1723         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
1724         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
1725         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
1726         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
1727         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
1728         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
1729         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
1730         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
1731         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
1732         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
1733         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
1734         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
1735         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
1736         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
1737         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
1738         * bindings/scripts/test/TestObj.idl:
1739         * bindings/scripts/test/V8/V8TestObj.cpp:
1740         (WebCore::TestObjInternal::voidMethodWithArgsCallback):
1741         (WebCore::TestObjInternal::intMethodWithArgsCallback):
1742         (WebCore::TestObjInternal::objMethodWithArgsCallback):
1743         (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
1744         (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
1745         (WebCore::TestObjInternal::serializedValueCallback):
1746         (WebCore::TestObjInternal::idbKeyCallback):
1747         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
1748         (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
1749         (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
1750         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
1751         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
1752         (WebCore::TestObjInternal::methodWithOptionalArgCallback):
1753         (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
1754         (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
1755         (WebCore::TestObjInternal::methodWithCallbackArgCallback):
1756         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
1757         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
1758         (WebCore::TestObjInternal::overloadedMethod1Callback):
1759         (WebCore::TestObjInternal::overloadedMethod2Callback):
1760         (WebCore::TestObjInternal::overloadedMethod3Callback):
1761         (WebCore::TestObjInternal::overloadedMethod4Callback):
1762         (WebCore::):
1763         (WebCore::ConfigureV8TestObjTemplate):
1764         * bindings/v8/V8Binding.h:
1765         (WebCore::String):
1766         (WebCore::AtomicString):
1767         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1768         (WebCore::V8DOMWindow::openDatabaseCallback):
1769         * bindings/v8/custom/V8DatabaseCustom.cpp: Added.
1770         (WebCore::V8Database::changeVersionCallback):
1771         (WebCore::createTransaction):
1772         (WebCore::V8Database::transactionCallback):
1773         (WebCore::V8Database::readTransactionCallback):
1774         * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Added.
1775         (WebCore::V8DatabaseSync::changeVersionCallback):
1776         (WebCore::createTransaction):
1777         (WebCore::V8DatabaseSync::transactionCallback):
1778         (WebCore::V8DatabaseSync::readTransactionCallback):
1779         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1780         (WebCore::V8WorkerContext::openDatabaseCallback):
1781         (WebCore::V8WorkerContext::openDatabaseSyncCallback):
1782         * page/DOMWindow.idl:
1783         * storage/Database.cpp:
1784         (WebCore::Database::transaction):
1785         * storage/Database.h:
1786         * storage/Database.idl:
1787         * storage/DatabaseSync.cpp:
1788         (WebCore::DatabaseSync::transaction):
1789         * storage/DatabaseSync.h:
1790         * storage/DatabaseSync.idl:
1791         * workers/WorkerContext.idl:
1792
1793 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1794
1795         Unreviewed, fix the "GTK Linux 64-bit Debug" bot.
1796
1797         CodeGeneratorGObject.pm doesn't know yet how to auto-generate
1798         callbacks, so we should not auto-generate functions that take
1799         callbacks as parameters. This shouldn't break anything, because
1800         all these functions were marked as ["Custom"] until now, and this
1801         code generator skipped those functions anyway.
1802
1803         * bindings/scripts/CodeGeneratorGObject.pm:
1804
1805 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1806
1807         Unreviewed, "Qt Linux Realese minimal" build fix.
1808
1809         * bindings/scripts/CodeGeneratorJS.pm:
1810
1811 2010-08-06  Dumitru Daniliuc  <dumi@chromium.org>
1812
1813         Reviewed by Adam Barth.
1814
1815         Auto-generate all HTML5 DB bindings.
1816         https://bugs.webkit.org/show_bug.cgi?id=43382
1817
1818         * Android.jscbindings.mk: Remove {JS|V8}Database{Sync}Custom.cpp
1819         and the custom implementations of openDatabas{Sync}().
1820         * Android.v8bindings.mk:
1821         * CMakeLists.txt:
1822         * GNUmakefile.am:
1823         * WebCore.gypi:
1824         * WebCore.pro:
1825         * WebCore.vcproj/WebCore.vcproj:
1826         * WebCore.xcodeproj/project.pbxproj:
1827         * bindings/js/JSBindingsAllInOne.cpp:
1828         * bindings/js/JSDOMWindowCustom.cpp:
1829         * bindings/js/JSDatabaseCustom.cpp: Removed.
1830         * bindings/js/JSDatabaseSyncCustom.cpp: Removed.
1831         * bindings/js/JSWorkerContextCustom.cpp:
1832         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1833         * bindings/v8/custom/V8DatabaseCustom.cpp: Removed.
1834         * bindings/v8/custom/V8DatabaseSyncCustom.cpp: Removed.
1835         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1836
1837         * bindings/scripts/CodeGeneratorJS.pm: Change the code generators
1838         to check that a value was passed for each non-optional argument,
1839         and that the value can be converted to the argument type.
1840         * bindings/scripts/CodeGeneratorV8.pm:
1841         * bindings/scripts/test/JS/JSTestCallback.cpp:
1842         (WebCore::JSTestCallback::~JSTestCallback):
1843         * bindings/scripts/test/JS/JSTestObj.cpp:
1844         (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
1845         (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs):
1846         (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
1847         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs):
1848         (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
1849         (WebCore::jsTestObjPrototypeFunctionSerializedValue):
1850         (WebCore::jsTestObjPrototypeFunctionIdbKey):
1851         (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
1852         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg):
1853         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg):
1854         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture):
1855         (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD):
1856         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
1857         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
1858         (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
1859         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
1860         (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
1861         (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
1862         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
1863         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
1864         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
1865         (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
1866         * bindings/scripts/test/TestObj.idl:
1867         * bindings/scripts/test/V8/V8TestObj.cpp:
1868         (WebCore::TestObjInternal::voidMethodWithArgsCallback):
1869         (WebCore::TestObjInternal::intMethodWithArgsCallback):
1870         (WebCore::TestObjInternal::objMethodWithArgsCallback):
1871         (WebCore::TestObjInternal::methodThatRequiresAllArgsCallback):
1872         (WebCore::TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback):
1873         (WebCore::TestObjInternal::serializedValueCallback):
1874         (WebCore::TestObjInternal::idbKeyCallback):
1875         (WebCore::TestObjInternal::customArgsAndExceptionCallback):
1876         (WebCore::TestObjInternal::withDynamicFrameAndArgCallback):
1877         (WebCore::TestObjInternal::withDynamicFrameAndOptionalArgCallback):
1878         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureCallback):
1879         (WebCore::TestObjInternal::withDynamicFrameAndUserGestureASADCallback):
1880         (WebCore::TestObjInternal::methodWithOptionalArgCallback):
1881         (WebCore::TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback):
1882         (WebCore::TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback):
1883         (WebCore::TestObjInternal::methodWithCallbackArgCallback):
1884         (WebCore::TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback):
1885         (WebCore::TestObjInternal::methodWithCallbackAndOptionalArgCallback):
1886         (WebCore::TestObjInternal::overloadedMethod1Callback):
1887         (WebCore::TestObjInternal::overloadedMethod2Callback):
1888         (WebCore::TestObjInternal::overloadedMethod3Callback):
1889         (WebCore::TestObjInternal::overloadedMethod4Callback):
1890         (WebCore::):
1891         (WebCore::ConfigureV8TestObjTemplate):
1892         * bindings/v8/V8Binding.h:
1893         (WebCore::String):
1894         (WebCore::AtomicString):
1895
1896         * page/DOMWindow.idl: Minor changes required by the auto-generated
1897         bindings.
1898         * storage/Database.cpp:
1899         (WebCore::Database::transaction):
1900         (WebCore::Database::readTransaction):
1901         (WebCore::Database::runTransaction):
1902         * storage/Database.h:
1903         * storage/Database.idl:
1904         * storage/DatabaseSync.cpp:
1905         (WebCore::DatabaseSync::transaction):
1906         (WebCore::DatabaseSync::readTransaction):
1907         (WebCore::DatabaseSync::runTransaction):
1908         * storage/DatabaseSync.h:
1909         * storage/DatabaseSync.idl:
1910         * workers/WorkerContext.idl:
1911
1912 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1913
1914         Not reviewed. Sort Xcode project file.
1915
1916         * WebCore.xcodeproj/project.pbxproj:
1917
1918 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1919
1920         Not reviewed. Fix warning, breaking win build.
1921
1922         * svg/SVGLength.cpp:
1923         (WebCore::SVGLength::toCSSPrimitiveValue):
1924
1925 2010-08-06  Alexey Proskuryakov  <ap@apple.com>
1926
1927         Fix crashing Leopard and Gtk bots.
1928
1929         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
1930         Don't register ISO8859-16, because older versions of ICU don't support ISO-8859-16, causing
1931         crashes when we try to register an alias. Also, we don't need it, because Firefox doesn't
1932         support this particular alias (it supports ISO8859-1 to ISO8859-15, but only supports the
1933         main name for ISO-8859-16).
1934
1935 2010-08-06  Nikolas Zimmermann  <nzimmermann@rim.com>
1936
1937         Reviewed by Dirk Schulze.
1938
1939         SVG - stroke-width:0 bug with stroke other than "none"
1940         https://bugs.webkit.org/show_bug.cgi?id=42387
1941
1942         Stop storing refcounted CSSValue/CSSValueList objects in SVGRenderStyle, replacing them with SVGLength types.
1943         Allows us to directly specify default values for stroke-dashoffset/width in the SVGRenderStyle, fixing a problem
1944         with stroke-width animations when resetting to the original stored baseVal, exposed in svg/W3C-1.1/animate-elem-40-t.svg
1945         Originally discovered by Fady Samuel.
1946
1947         Test: svg/custom/path-zero-strokewidth.svg
1948
1949         * css/SVGCSSComputedStyleDeclaration.cpp:
1950         (WebCore::strokeDashArrayToCSSValueList): New helper function converting from Vector<SVGLength> to CSSValueList.
1951         (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): Convert SVGLength values to CSSPrimitiveValues.
1952         * css/SVGCSSStyleSelector.cpp:
1953         (WebCore::CSSStyleSelector::applySVGProperty): Convert CSSPrimitiveValues to SVGLength objects, for SVGRenderStyle storage.
1954         * rendering/RenderPath.cpp:
1955         (WebCore::RenderPath::calculateMarkerBoundsIfNeeded): Just grab strokeWidth SVGLength value from SVGRenderSTyle, no need to call cssPrimitiveToLength anymore.
1956         * rendering/RenderSVGText.cpp:
1957         (WebCore::RenderSVGText::strokeBoundingBox): Ditto.
1958         * rendering/SVGCharacterLayoutInfo.cpp:
1959         (WebCore::calculateBaselineShift): Ditto (for baseline-shift).
1960         * rendering/SVGInlineTextBox.cpp:
1961         (WebCore::SVGInlineTextBox::buildLayoutInformation): Ditto (for kerning).
1962         * rendering/SVGRenderSupport.cpp:
1963         (WebCore::SVGRenderSupport::applyStrokeStyleToContext): Ditto (for stroke-width/stroke-dashoffset/stroke-dasharray).
1964         * rendering/SVGRenderSupport.h:
1965         * rendering/SVGRenderTreeAsText.cpp:
1966         (WebCore::writeStyle): Ditto.
1967         * rendering/SVGTextLayoutUtilities.cpp:
1968         (WebCore::calculateCSSKerning): Ditto.
1969         * rendering/SVGTextLayoutUtilities.h:
1970         * rendering/style/SVGRenderStyle.cpp: Remove no longer needed cssPrimitiveToLength function.
1971         * rendering/style/SVGRenderStyle.h: Stop storing RefPtr<CSSValue> / RefPtr<CSSValueList> but use SVGLength/Vector<SVGLength>.
1972         (WebCore::SVGRenderStyle::initialStrokeDashArray): Allows us to specify correct default values, instead of null pointers.
1973         (WebCore::SVGRenderStyle::initialBaselineShiftValue): Specify 0px default value.
1974         (WebCore::SVGRenderStyle::initialKerning): Ditto.
1975         (WebCore::SVGRenderStyle::initialStrokeDashOffset): Ditto.
1976         (WebCore::SVGRenderStyle::initialStrokeWidth): Specify 1px default value.
1977         (WebCore::SVGRenderStyle::setStrokeDashArray): Takes a Vector<SVGLength> now, not a PassRefPtr<CSSValueList>.
1978         (WebCore::SVGRenderStyle::setStrokeWidth): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
1979         (WebCore::SVGRenderStyle::setStrokeDashOffset): Ditto.
1980         (WebCore::SVGRenderStyle::setKerning): Ditto.
1981         (WebCore::SVGRenderStyle::setStopColor): Pass Color as const-reference.
1982         (WebCore::SVGRenderStyle::setFloodColor): Ditto.
1983         (WebCore::SVGRenderStyle::setLightingColor): Ditto.
1984         (WebCore::SVGRenderStyle::setBaselineShiftValue): Takes a SVGLength now, not a PassRefPtr<CSSValue>.
1985         (WebCore::SVGRenderStyle::setShadow): Reformat, had wrong style.
1986         (WebCore::SVGRenderStyle::setClipperResource): Pass String as const-reference.
1987         (WebCore::SVGRenderStyle::setFilterResource): Ditto.
1988         (WebCore::SVGRenderStyle::setMaskerResource): Ditto.
1989         (WebCore::SVGRenderStyle::setMarkerStartResource): Ditto.
1990         (WebCore::SVGRenderStyle::setMarkerMidResource): Ditto.
1991         (WebCore::SVGRenderStyle::setMarkerEndResource): Ditto.
1992         (WebCore::SVGRenderStyle::strokeDashArray): Return Vector<SVGLength>.
1993         (WebCore::SVGRenderStyle::strokeWidth): Return SVGLength.
1994         (WebCore::SVGRenderStyle::strokeDashOffset): Ditto.
1995         (WebCore::SVGRenderStyle::kerning): Ditto.
1996         (WebCore::SVGRenderStyle::baselineShiftValue): Ditto.
1997         * rendering/style/SVGRenderStyleDefs.cpp:
1998         (WebCore::StyleStrokeData::StyleStrokeData): Changed initialization order, to group stroke properties.
1999         * rendering/style/SVGRenderStyleDefs.h: Store SVGLength values instead of reference counted CSS objects.
2000         * svg/SVGLength.cpp:
2001         (WebCore::SVGLength::SVGLength): Add copy constructor.
2002         (WebCore::SVGLength::operator==): Add comparision operator.
2003         (WebCore::SVGLength::operator!=): Ditto.
2004         (WebCore::SVGLength::fromCSSPrimitiveValue): New static helper function to convert from a CSSPrimitiveValue.
2005         (WebCore::SVGLength::toCSSPrimitiveValue): New static helper function to convert to a CSSPrimitiveValue.
2006         * svg/SVGLength.h: Reindent.
2007
2008 2010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>
2009
2010         Reviewed by Kenneth Rohde Christiansen.
2011
2012         [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
2013         https://bugs.webkit.org/show_bug.cgi?id=43427
2014
2015         After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
2016         there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.
2017
2018         PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
2019         assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
2020         to WebKit/qt/WebCoreSupport as well.
2021
2022         All classes that previously inherited from QtAbstractWebPopup now inherit from 
2023         QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
2024         instance of class QWebSelectMethod instead of QtAbstractWebPopup.
2025
2026         * WebCore.pro:
2027         * platform/qt/PopupMenuQt.cpp: Removed.
2028         * platform/qt/PopupMenuQt.h: Removed.
2029         * platform/qt/QtAbstractWebPopup.cpp: Removed.
2030         * platform/qt/QtAbstractWebPopup.h: Removed.
2031         * platform/qt/SearchPopupMenuQt.cpp: Removed.
2032         * platform/qt/SearchPopupMenuQt.h: Removed.
2033
2034 2010-08-05  Marcus Bulach  <bulach@chromium.org>
2035
2036         Reviewed by Jeremy Orlow.
2037
2038         Initial bindings and plumbing for IDBCursor.
2039         https://bugs.webkit.org/show_bug.cgi?id=41888
2040
2041         Test: storage/indexeddb/idb-opencursor.html
2042
2043         * Android.derived.jscbindings.mk:
2044         * Android.derived.v8bindings.mk:
2045         * Android.mk:
2046         * CMakeLists.txt:
2047         * DerivedSources.cpp:
2048         * DerivedSources.make:
2049         * GNUmakefile.am:
2050         * WebCore.gypi:
2051         * WebCore.pri:
2052         * WebCore.pro:
2053         * WebCore.vcproj/WebCore.vcproj:
2054         * WebCore.xcodeproj/project.pbxproj:
2055         * bindings/v8/custom/V8IDBAnyCustom.cpp:
2056         (WebCore::toV8):
2057         * storage/IDBAny.cpp:
2058         (WebCore::IDBAny::idbCursor):
2059         (WebCore::IDBAny::set):
2060         * storage/IDBAny.h:
2061         (WebCore::IDBAny::):
2062         * storage/IDBCallbacks.h:
2063         * storage/IDBCursor.cpp: Added.
2064         (WebCore::IDBCursor::IDBCursor):
2065         (WebCore::IDBCursor::~IDBCursor):
2066         (WebCore::IDBCursor::direction):
2067         (WebCore::IDBCursor::key):
2068         (WebCore::IDBCursor::value):
2069         (WebCore::IDBCursor::update):
2070         (WebCore::IDBCursor::continueFunction):
2071         (WebCore::IDBCursor::remove):
2072         * storage/IDBCursor.h: Added.
2073         (WebCore::IDBCursor::):
2074         (WebCore::IDBCursor::create):
2075         * storage/IDBCursor.idl: Added.
2076         * storage/IDBCursorBackendImpl.cpp: Added.
2077         (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
2078         (WebCore::IDBCursorBackendImpl::~IDBCursorBackendImpl):
2079         (WebCore::IDBCursorBackendImpl::direction):
2080         (WebCore::IDBCursorBackendImpl::key):
2081         (WebCore::IDBCursorBackendImpl::value):
2082         (WebCore::IDBCursorBackendImpl::update):
2083         (WebCore::IDBCursorBackendImpl::continueFunction):
2084         (WebCore::IDBCursorBackendImpl::remove):
2085         * storage/IDBCursorBackendImpl.h: Added.
2086         (WebCore::IDBCursorBackendImpl::create):
2087         * storage/IDBCursorBackendInterface.h: Added.
2088         (WebCore::IDBCursorBackendInterface::~IDBCursorBackendInterface):
2089         * storage/IDBObjectStore.cpp:
2090         (WebCore::IDBObjectStore::openCursor):
2091         * storage/IDBObjectStore.h:
2092         * storage/IDBObjectStore.idl:
2093         * storage/IDBObjectStoreBackendImpl.cpp:
2094         (WebCore::IDBObjectStoreBackendImpl::openCursor):
2095         * storage/IDBObjectStoreBackendImpl.h:
2096         * storage/IDBObjectStoreBackendInterface.h:
2097         * storage/IDBRequest.cpp:
2098         (WebCore::IDBRequest::onSuccess):
2099         (WebCore::IDBRequest::timerFired):
2100         * storage/IDBRequest.h:
2101
2102 2010-08-06  Andrei Popescu  <andreip@google.com>
2103
2104         Unreviewed, release build fix.
2105
2106         Leopard relase build is broken due to absolute path to JSIDBTransaction.cpp file present in Xcode project file.
2107         https://bugs.webkit.org/show_bug.cgi?id=43616
2108
2109         * WebCore.xcodeproj/project.pbxproj:
2110
2111 2010-08-05  Andrei Popescu  <andreip@dhcp-172-16-14-12.lon.corp.google.com>
2112
2113         Reviewed by Jeremy Orlow.
2114
2115         [IndexedDB] IndexedDB is missing the Transaction interface.
2116         https://bugs.webkit.org/show_bug.cgi?id=42970
2117
2118         Add IDBTransaction boilerplate.
2119
2120         No new tests, not functional yet.
2121
2122         * Android.derived.jscbindings.mk:
2123         * Android.derived.v8bindings.mk:
2124         * Android.mk:
2125         * CMakeLists.txt:
2126         * DerivedSources.cpp:
2127         * DerivedSources.make:
2128         * GNUmakefile.am:
2129         * WebCore.gypi:
2130         * WebCore.pri:
2131         * WebCore.pro:
2132         * WebCore.vcproj/WebCore.vcproj:
2133         * WebCore.xcodeproj/project.pbxproj:
2134         * dom/EventNames.h:
2135         * storage/IDBDatabase.cpp:
2136         (WebCore::IDBDatabase::transaction):
2137         * storage/IDBDatabase.h:
2138         * storage/IDBDatabase.idl:
2139         * storage/IDBDatabaseBackendImpl.cpp:
2140         (WebCore::IDBDatabaseBackendImpl::transaction):
2141         * storage/IDBDatabaseBackendImpl.h:
2142         * storage/IDBDatabaseBackendInterface.h:
2143         * storage/IDBRequest.cpp:
2144         (WebCore::IDBRequest::IDBRequest):
2145         (WebCore::IDBRequest::canSuspend):
2146         (WebCore::IDBRequest::timerFired):
2147         (WebCore::IDBRequest::onEventCommon):
2148         * storage/IDBRequest.h:
2149         * storage/IDBTransaction.cpp: Added.
2150         (WebCore::IDBTransaction::IDBTransaction):
2151         (WebCore::IDBTransaction::~IDBTransaction):
2152         (WebCore::IDBTransaction::mode):
2153         (WebCore::IDBTransaction::db):
2154         (WebCore::IDBTransaction::objectStore):
2155         (WebCore::IDBTransaction::abort):
2156         (WebCore::IDBTransaction::scriptExecutionContext):
2157         (WebCore::IDBTransaction::canSuspend):
2158         (WebCore::IDBTransaction::eventTargetData):
2159         (WebCore::IDBTransaction::ensureEventTargetData):
2160         * storage/IDBTransaction.h: Added.
2161         (WebCore::IDBTransaction::create):
2162         (WebCore::IDBTransaction::):
2163         (WebCore::IDBTransaction::toIDBTransaction):
2164         (WebCore::IDBTransaction::refEventTarget):
2165         (WebCore::IDBTransaction::derefEventTarget):
2166         * storage/IDBTransaction.idl: Added.
2167         * storage/IDBTransactionBackendInterface.h: Added.
2168         (WebCore::IDBTransactionBackendInterface::~IDBTransactionBackendInterface):
2169
2170 2010-08-06  Rafael Antognolli  <antognolli@profusion.mobi>
2171
2172         Unreviewed build fix.
2173
2174         [EFL] Regression (64735) build fix for efl.
2175         https://bugs.webkit.org/show_bug.cgi?id=43564
2176
2177         Removing bindings/js/ScriptArray.cpp from the WebCore_SOURCES.
2178         No new features, so no new tests.
2179
2180         * CMakeLists.txt:
2181
2182 2010-08-05  Alexey Proskuryakov  <ap@apple.com>
2183
2184         Fix http/tests/webarchive/test-css-url-encoding-shift-jis.html
2185
2186         For some reason, I didn't see the failure locally, but bots complain.
2187
2188         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
2189         Register "shift-jis" (with dash instead of underscore). At least Firefox supports it.
2190
2191 2010-08-05  Ben Murdoch  <benm@google.com>
2192
2193         Reviewed by Simon Fraser.
2194
2195         Form button input elements lacking text in some cases after switching from
2196         visibility:collapse to visibility:visible
2197         https://bugs.webkit.org/show_bug.cgi?id=38050
2198         
2199         A relayout is required after toggling visibility from collapse to another value.
2200
2201         Test: fast/css/visibility-collapse-form-buttons.html
2202
2203         * rendering/style/RenderStyle.cpp:
2204         (WebCore::RenderStyle::diff): If we're toggling from visibility:collapse to another
2205             visibility value (or vice versa) then we need to trigger a relayout.
2206
2207 2010-08-05  Alexey Proskuryakov  <ap@apple.com>
2208
2209         Reviewed by Darin Adler.
2210
2211         https://bugs.webkit.org/show_bug.cgi?id=43554
2212         Way too many encoding aliases are treated as valid
2213
2214         <rdar://problem/7863399> Garbage characters displayed in some yesky.com pages.
2215
2216         <rdar://problem/7859068> Garbage characters displayed for most text at ceping.zhaopin.com
2217
2218         Test: http/tests/misc/bad-charset-alias.html
2219
2220         * loader/TextResourceDecoder.cpp: (WebCore::TextResourceDecoder::checkForCSSCharset):
2221         Fix encoding name length computation. Previously, a trailing quote was ignored by
2222         TextEncodingRegistry.
2223         
2224         * platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::registerExtendedEncodingNames):
2225         Added dashes to alias names that didn't have them. Added aliases prompted by regression tests.
2226
2227         * platform/text/TextCodecLatin1.cpp: (WebCore::TextCodecLatin1::registerEncodingNames):
2228         Don't register 8859-1, other browsers do not support this encoding name.
2229
2230         * platform/text/TextEncoding.cpp: (WebCore::Latin1Encoding):
2231         "Latin-1" is not a real encoding name, it's not known to Firefox or IE.
2232
2233         * platform/text/TextEncodingRegistry.cpp:
2234         (WebCore::TextEncodingNameHash::equal): Changed to no longer ignore non-alphanumeric characters.
2235         There is a good chance that we'll be missing support for some necessary alias names, but other
2236         browsers don't ignore any characters when matching names.
2237         (WebCore::TextEncodingNameHash::hash): Ditto.
2238         (WebCore::checkExistingName): Re-formatted a line.
2239         (WebCore::isUndesiredAlias): Added a filter to reject "8859_1" and any names containing commas.
2240         (WebCore::addToTextEncodingNameMap): Used it.
2241         (WebCore::atomicCanonicalTextEncodingName): Changed to no longer ignore non-alphanumeric characters.
2242
2243 2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
2244
2245         Reviewed by Laszlo Gombos.
2246
2247         [Qt] Temporary files should not be created in the current directory
2248         https://bugs.webkit.org/show_bug.cgi?id=43562
2249
2250         Don't create temporary files in the current directory, use QDir::tempPath()
2251         instead, as suggested by the QTemporaryFile documentation.
2252
2253         * platform/qt/FileSystemQt.cpp:
2254         (WebCore::openTemporaryFile):
2255
2256 2010-08-05  François Sausset  <sausset@gmail.com>
2257
2258         Reviewed by Kenneth Rohde Christiansen.
2259
2260         Make STIX font the default one to render MathML
2261         https://bugs.webkit.org/show_bug.cgi?id=41961
2262
2263         * css/mathml.css:
2264         (math):
2265
2266 2010-08-05  Cosmin Truta  <ctruta@chromium.org>
2267
2268         Reviewed by Eric Seidel.
2269
2270         Apply a stylistic fix to the patch 62640.
2271         https://bug-41175-attachments.webkit.org/attachment.cgi?id=62640
2272         https://bugs.webkit.org/show_bug.cgi?id=41175
2273
2274         * WebCore/platform/graphics/skia/ImageBufferSkia.cpp:
2275         (getImageData):
2276
2277 2010-08-05  Patrick Gansterer  <paroga@paroga.com>
2278
2279         Reviewed by Adam Roben.
2280
2281         Make SearchPopupMenuWin more portable
2282         https://bugs.webkit.org/show_bug.cgi?id=43527
2283
2284         Add #if PLATFORM(CF) around CoreFoundation code.
2285
2286         * platform/win/SearchPopupMenuWin.cpp:
2287         (WebCore::SearchPopupMenuWin::enabled):
2288         (WebCore::SearchPopupMenuWin::saveRecentSearches):
2289         (WebCore::SearchPopupMenuWin::loadRecentSearches):
2290
2291 2010-08-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2292
2293         Unreviewed, rolling out r63653.
2294         http://trac.webkit.org/changeset/63653
2295         https://bugs.webkit.org/show_bug.cgi?id=43592
2296
2297         regressed multiple background-images (Requested by smfr on
2298         #webkit).
2299
2300         * manual-tests/css3-background-layer-count.html: Removed.
2301         * rendering/style/FillLayer.cpp:
2302         (WebCore::FillLayer::fillUnsetProperties):
2303         (WebCore::FillLayer::cullEmptyLayers):
2304         * rendering/style/RenderStyle.h:
2305         (WebCore::InheritedFlags::adjustBackgroundLayers):
2306         (WebCore::InheritedFlags::adjustMaskLayers):
2307
2308 2010-08-05  Mark Rowe  <mrowe@apple.com>
2309
2310         Reviewed by Jon Honeycutt.
2311
2312         Fix some leaks seen on the buildbot.
2313
2314         * platform/graphics/cg/GraphicsContext3DCG.cpp:
2315         (WebCore::GraphicsContext3D::paintToCanvas): Adopt the newly-created CoreGraphics objects rather than sharing ownership
2316         and over-incrementing their reference count. Also cleaned up the bizarre wrapping used for function arguments while I was
2317         touching this code.
2318
2319 2010-08-05  James Robinson  <jamesr@chromium.org>
2320
2321         Rubber stamped by Eric Seidel.
2322
2323         [SVG] SVGPathSeg.cpp needs an #if ENABLE(SVG) guard
2324         https://bugs.webkit.org/show_bug.cgi?id=43599
2325
2326         Matches the rest of the .cpp files in this directory.
2327
2328         * svg/SVGPathSeg.cpp:
2329
2330 2010-08-05  Erik Arvidsson  <arv@chromium.org>
2331
2332         Reviewed by Kent Tamura.
2333
2334         Calling setCustomValidity should trigger a layout
2335         https://bugs.webkit.org/show_bug.cgi?id=43582
2336
2337         Test: fast/forms/setCustomValidity.html
2338
2339         * html/ValidityState.cpp:
2340         (WebCore::ValidityState::setCustomErrorMessage): Call setNeedsValidityCheck to tell the system that the validity might have changed.
2341         * html/ValidityState.h:
2342
2343 2010-08-05  Sam Weinig  <sam@webkit.org>
2344
2345         Reviewed by Anders Carlsson.
2346
2347         Add ability to get a JSValueRef for a node handle and a world
2348         https://bugs.webkit.org/show_bug.cgi?id=43591
2349
2350         * WebCore.exp.in: Add exports.
2351
2352 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
2353
2354         Rubber stamped by Sam Weinig
2355
2356         Bug 43594 - Add string forwards to Forward.h
2357         This allows us to remove forward declarations for these classes from
2358         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
2359
2360         * WebCore.xcodeproj/project.pbxproj:
2361         * accessibility/AXObjectCache.h:
2362         * accessibility/AccessibilityARIAGrid.h:
2363         * accessibility/AccessibilityListBoxOption.h:
2364         * accessibility/AccessibilityObject.h:
2365         * accessibility/AccessibilityRenderObject.h:
2366         * accessibility/AccessibilityTable.h:
2367         * bindings/cpp/WebDOMCString.h:
2368         * bindings/cpp/WebDOMString.h:
2369         * bindings/gobject/ConvertToUTF8String.h:
2370         * bindings/js/DOMWrapperWorld.h:
2371         * bindings/js/JSDOMBinding.h:
2372         * bindings/js/JSDOMWindowBase.h:
2373         * bindings/js/JSMessagePortCustom.h:
2374         * bindings/js/JavaScriptCallFrame.h:
2375         * bindings/js/ScriptController.h:
2376         * bindings/js/ScriptProfile.h:
2377         * bindings/js/ScriptSourceProvider.h:
2378         * bindings/js/ScriptString.h:
2379         * bindings/js/WorkerScriptController.h:
2380         * bindings/objc/DOMImplementationFront.h:
2381         * bindings/v8/ScheduledAction.h:
2382         * bindings/v8/ScriptController.h:
2383         * bindings/v8/V8DOMWindowShell.h:
2384         * bindings/v8/V8Proxy.h:
2385         * bindings/v8/V8Utilities.h:
2386         * bindings/v8/custom/V8CustomXPathNSResolver.h:
2387         * bridge/c/c_utility.h:
2388         * css/CSSFontSelector.h:
2389         * css/CSSHelper.h:
2390         * css/CSSOMUtils.h:
2391         * css/CSSPrimitiveValue.h:
2392         * css/MediaList.h:
2393         * css/StyleBase.h:
2394         * css/StyleSheetList.h:
2395         * css/WebKitCSSKeyframesRule.h:
2396         * dom/CheckedRadioButtons.h:
2397         * dom/DOMImplementation.h:
2398         * dom/DocumentMarker.h:
2399         * dom/DynamicNodeList.h:
2400         * dom/EventTarget.h:
2401         * dom/MessagePort.h:
2402         * dom/MessagePortChannel.h:
2403         * dom/NameNodeList.h:
2404         * dom/Node.h:
2405         * dom/NodeList.h:
2406         * dom/OptionGroupElement.h:
2407         * dom/ScriptExecutionContext.h:
2408         * dom/SelectElement.h:
2409         * dom/ViewportArguments.h:
2410         * dom/make_names.pl:
2411         * editing/HTMLInterchange.h:
2412         * editing/htmlediting.h:
2413         * editing/markup.h:
2414         * html/CollectionCache.h:
2415         * html/DOMFormData.h:
2416         * html/DataGridColumnList.h:
2417         * html/DateComponents.h:
2418         * html/FileStream.h:
2419         * html/FileStreamProxy.h:
2420         * html/FormDataList.h:
2421         (WebCore::FormDataList::appendData):
2422         * html/HTMLCollection.h:
2423         * html/HTMLElementStack.h:
2424         * html/HTMLFormattingElementList.h:
2425         * html/HTMLParserQuirks.h:
2426         * html/HTMLQuoteElement.h:
2427         * html/HTMLScriptRunnerHost.h:
2428         * html/StepRange.h:
2429         * html/canvas/CanvasGradient.h:
2430         * html/canvas/CanvasNumberArray.h:
2431         * html/canvas/CanvasPattern.h:
2432         * inspector/InjectedScript.h:
2433         * inspector/InspectorCSSStore.h:
2434         * inspector/InspectorClient.h:
2435         * inspector/InspectorFrontendClient.h:
2436         * inspector/InspectorValues.h:
2437         * inspector/ScriptDebugListener.h:
2438         * loader/CachedResourceClient.h:
2439         * loader/CrossOriginAccessControl.h:
2440         * loader/DocumentThreadableLoader.h:
2441         * loader/FrameLoaderClient.h:
2442         * loader/RedirectScheduler.h:
2443         * loader/SubframeLoader.h:
2444         * loader/appcache/DOMApplicationCache.h:
2445         * loader/archive/ArchiveFactory.h:
2446         * loader/icon/IconDatabaseClient.h:
2447         * notifications/NotificationPresenter.h:
2448         * page/Chrome.h:
2449         * page/ChromeClient.h:
2450         * page/Console.h:
2451         * page/ContextMenuClient.h:
2452         * page/DOMSelection.h:
2453         * page/EditorClient.h:
2454         * page/EventHandler.h:
2455         * page/FrameView.h:
2456         * page/GeolocationPositionCache.h:
2457         * page/History.h:
2458         * page/Location.h:
2459         * page/Navigator.h:
2460         * page/NavigatorBase.h:
2461         * page/PluginHalterClient.h:
2462         * page/PrintContext.h:
2463         * page/SpeechInput.h:
2464         * page/SpeechInputListener.h:
2465         * page/animation/AnimationController.h:
2466         * platform/CookieJar.h:
2467         * platform/CrossThreadCopier.h:
2468         * platform/DragImage.h:
2469         * platform/FileSystem.h:
2470         * platform/Language.h:
2471         * platform/Length.h:
2472         * platform/LinkHash.h:
2473         * platform/LocalizationStrategy.h:
2474         * platform/LocalizedStrings.h:
2475         * platform/Logging.h:
2476         * platform/Pasteboard.h:
2477         * platform/PopupMenuClient.h:
2478         * platform/SearchPopupMenu.h:
2479         * platform/Widget.h:
2480         * platform/cf/BinaryPropertyList.h:
2481         * platform/chromium/ChromiumBridge.h:
2482         * platform/chromium/ClipboardUtilitiesChromium.h:
2483         * platform/cocoa/KeyEventCocoa.h:
2484         * platform/graphics/Color.h:
2485         * platform/graphics/FontCache.h:
2486         * platform/graphics/FontData.h:
2487         * platform/graphics/FontSelector.h:
2488         * platform/graphics/GraphicsTypes.h:
2489         * platform/graphics/Icon.h:
2490         * platform/graphics/ImageBuffer.h:
2491         * platform/graphics/ImageSource.h:
2492         * platform/graphics/MediaPlayer.h:
2493         * platform/graphics/MediaPlayerPrivate.h:
2494         * platform/graphics/Path.h:
2495         * platform/graphics/StringTruncator.h:
2496         * platform/graphics/cairo/FontCustomPlatformData.h:
2497         * platform/graphics/cairo/FontPlatformData.h:
2498         * platform/graphics/cg/FontPlatformData.h:
2499         * platform/graphics/cg/ImageSourceCG.h:
2500         * platform/graphics/chromium/FontCustomPlatformData.h:
2501         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
2502         * platform/graphics/chromium/FontPlatformDataLinux.h:
2503         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2504         * platform/graphics/haiku/FontCustomPlatformData.h:
2505         * platform/graphics/mac/FontCustomPlatformData.h:
2506         * platform/graphics/mac/FontPlatformData.h:
2507         * platform/graphics/qt/FontCustomPlatformData.h:
2508         * platform/graphics/qt/FontPlatformData.h:
2509         * platform/graphics/win/FontCustomPlatformData.h:
2510         * platform/graphics/win/FontCustomPlatformDataCairo.h:
2511         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
2512         * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:
2513         * platform/graphics/wince/FontPlatformData.h:
2514         * platform/graphics/wince/MediaPlayerPrivateWince.h:
2515         * platform/graphics/wince/MediaPlayerProxy.h:
2516         * platform/graphics/wx/FontCustomPlatformData.h:
2517         * platform/graphics/wx/FontPlatformData.h:
2518         * platform/mac/PasteboardHelper.h:
2519         * platform/network/DNS.h:
2520         * platform/network/FormData.h:
2521         * platform/network/FormDataBuilder.h:
2522         * platform/network/HTTPParsers.h:
2523         * platform/text/Hyphenation.h:
2524         * platform/text/LineEnding.h:
2525         * platform/text/TextCodec.h:
2526         * platform/text/TextEncoding.h:
2527         * platform/text/TextStream.h:
2528         * platform/win/BString.h:
2529         * platform/win/ClipboardUtilitiesWin.h:
2530         * platform/win/WCDataObject.h:
2531         * platform/win/WebCoreTextRenderer.h:
2532         * plugins/DOMMimeType.h:
2533         * plugins/DOMMimeTypeArray.h:
2534         * plugins/DOMPlugin.h:
2535         * plugins/DOMPluginArray.h:
2536         * rendering/CounterNode.h:
2537         * rendering/HitTestResult.h:
2538         * rendering/RenderObjectChildList.h:
2539         * rendering/RenderText.h:
2540         * rendering/RenderTreeAsText.h:
2541         * rendering/TextControlInnerElements.h:
2542         * rendering/style/ContentData.h:
2543         * rendering/style/RenderStyle.h:
2544         * storage/DatabaseAuthorizer.h:
2545         * storage/DatabaseTrackerClient.h:
2546         * storage/SQLTransaction.h:
2547         * storage/SQLTransactionSync.h:
2548         * storage/Storage.h:
2549         * storage/chromium/DatabaseObserver.h:
2550         * svg/SVGAnimatedTemplate.h:
2551         * svg/SVGDocumentExtensions.h:
2552         * svg/SVGGlyphElement.h:
2553         * svg/SVGHKernElement.h:
2554         * svg/SVGNumberList.h:
2555         * svg/SVGPointList.h:
2556         * svg/SVGPreserveAspectRatio.h:
2557         * svg/SVGStylable.h:
2558         * svg/SVGTests.h:
2559         * svg/SVGTransformList.h:
2560         * svg/SVGTransformable.h:
2561         * svg/SVGVKernElement.h:
2562         * websockets/ThreadableWebSocketChannel.h:
2563         * websockets/ThreadableWebSocketChannelClientWrapper.h:
2564         * websockets/WebSocket.h:
2565         * websockets/WebSocketChannel.h:
2566         * websockets/WebSocketHandshakeResponse.h:
2567         * wml/WMLErrorHandling.h:
2568         * wml/WMLPageState.h:
2569         * wml/WMLVariables.h:
2570         * workers/DefaultSharedWorkerRepository.h:
2571         * workers/SharedWorkerRepository.h:
2572         * workers/Worker.h:
2573         * workers/WorkerContextProxy.h:
2574         * workers/WorkerLoaderProxy.h:
2575         * workers/WorkerLocation.h:
2576         * workers/WorkerMessagingProxy.h:
2577         * workers/WorkerReportingProxy.h:
2578         * workers/WorkerThread.h:
2579         * xml/DOMParser.h:
2580         * xml/XMLHttpRequestUpload.h:
2581         * xml/XPathEvaluator.h:
2582         * xml/XPathExpression.h:
2583         * xml/XPathNSResolver.h:
2584         * xml/XPathResult.h:
2585         * xml/XPathUtil.h:
2586
2587 2010-08-05  Adam Barth  <abarth@webkit.org>
2588
2589         Reviewed by Eric Seidel.
2590
2591         U+0000 is turned to U+FFFD (replacement character)
2592         https://bugs.webkit.org/show_bug.cgi?id=42112
2593
2594         This patch introduces an intentional parsing difference from the HTML5
2595         parsing specificiation.  The spec requires us to convert NULL
2596         characters to U+FFFD, but doing so causes compatibility issues with a
2597         number of sites, including US Bank.
2598
2599         In this patch, we strip the null characters instead in certain cases.
2600         Firefox has made a corresponding change.  After gathering compatability
2601         data, we hope to convince the HTML WG to adopt this change.
2602
2603         Tests: fast/tokenizer/null-in-text.html
2604                fast/tokenizer/null-xss.html
2605
2606         * html/HTMLTokenizer.cpp:
2607         (WebCore::HTMLTokenizer::HTMLTokenizer):
2608         (WebCore::HTMLTokenizer::reset):
2609         * html/HTMLTokenizer.h:
2610         (WebCore::HTMLTokenizer::setSkipLeadingNewLineForListing):
2611         (WebCore::HTMLTokenizer::forceNullCharacterReplacement):
2612         (WebCore::HTMLTokenizer::setForceNullCharacterReplacement):
2613         (WebCore::HTMLTokenizer::shouldSkipNullCharacters):
2614         (WebCore::HTMLTokenizer::InputStreamPreprocessor::InputStreamPreprocessor):
2615         (WebCore::HTMLTokenizer::InputStreamPreprocessor::peek):
2616         * html/HTMLTreeBuilder.cpp:
2617         (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
2618         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
2619         (WebCore::HTMLTreeBuilder::processStartTagForInBody):
2620
2621 2010-08-05  Andy Estes  <aestes@apple.com>
2622
2623         Reviewed by David Kilzer.
2624
2625         Rename iOS-related OS and PLATFORM macros.
2626         https://bugs.webkit.org/show_bug.cgi?id=43493
2627
2628         Rename WTF_OS_IPHONE_OS to WTF_OS_IOS, WTF_PLATFORM_IPHONE to
2629         WTF_PLATFORM_IOS, and WTF_PLATFORM_IPHONE_SIMULATOR to
2630         WTF_PLATFORM_IOS_SIMULATOR.
2631
2632         * platform/cocoa/KeyEventCocoa.mm:
2633         * platform/iphone/KeyEventIPhone.mm:
2634         * platform/network/Credential.h:
2635
2636 2010-08-05  Anders Carlsson  <andersca@apple.com>
2637
2638         Reviewed by Sam Weinig.
2639
2640         Use the visited link provider for visited links
2641         https://bugs.webkit.org/show_bug.cgi?id=43583
2642
2643         Export Page::visitedStateChanged and Page::allvisitedStateChanged.
2644
2645         * WebCore.exp.in:
2646
2647 2010-08-05  Eric Seidel  <eric@webkit.org>
2648
2649         Reviewed by Nikolas Zimmermann.
2650
2651         Touching SVGNames should only rebuild hundreds of files, not thousands
2652         https://bugs.webkit.org/show_bug.cgi?id=43308
2653
2654         Remove SVGNames.h include from several core SVG header files
2655         which do not need to include it.
2656
2657         One of them, SVGPathSeg.h, required creation of an SVGPathSeg.cpp.
2658         A bunch of SVGPathSeg* could remove PlatformString.h includes if
2659         we moved their toString() methods into the .cpp files.
2660
2661         I re-indented on header to stop check-webkit-style from complaining.
2662         I removed a couple mode lines I saw, since my understanding from
2663         previous webkit-dev threads is that we plan to remove those all.
2664
2665         No functional change, thus no tests.
2666
2667         * Android.mk:
2668         * CMakeLists.txt:
2669         * GNUmakefile.am:
2670         * WebCore.gypi:
2671         * WebCore.pro:
2672         * WebCore.xcodeproj/project.pbxproj:
2673         * svg/SVGAllInOne.cpp:
2674         * svg/SVGAngle.h:
2675         * svg/SVGPathSeg.cpp: Added.
2676         (WebCore::SVGPathSeg::~SVGPathSeg):
2677         (WebCore::SVGPathSeg::pathSegType):
2678         (WebCore::SVGPathSeg::pathSegTypeAsLetter):
2679         (WebCore::SVGPathSeg::toString):
2680         (WebCore::SVGPathSeg::associatedAttributeName):
2681         (WebCore::SVGPathSegSingleCoord::toString):
2682         * svg/SVGPathSeg.h:
2683         (WebCore::SVGPathSegSingleCoord::SVGPathSegSingleCoord):
2684         * svg/SVGPathSegArc.cpp:
2685         (WebCore::SVGPathSegArc::toString):
2686         * svg/SVGPathSegArc.h:
2687         (WebCore::SVGPathSegArc::SVGPathSegArc):
2688         * svg/SVGPathSegClosePath.h:
2689         (WebCore::SVGPathSegClosePath::create):
2690         (WebCore::SVGPathSegClosePath::pathSegType):
2691         (WebCore::SVGPathSegClosePath::pathSegTypeAsLetter):
2692         (WebCore::SVGPathSegClosePath::toString):
2693         * svg/SVGPathSegCurvetoCubic.h:
2694         * svg/SVGPathSegCurvetoCubicSmooth.h:
2695         * svg/SVGPathSegCurvetoQuadratic.h:
2696         * svg/SVGPathSegCurvetoQuadraticSmooth.h:
2697         * svg/SVGPathSegLineto.h:
2698         * svg/SVGPathSegLinetoHorizontal.h:
2699         * svg/SVGPathSegLinetoVertical.h:
2700         * svg/SVGPathSegMoveto.h:
2701         * svg/SVGTransform.h:
2702
2703 2010-08-05  Dirk Schulze  <krit@webkit.org>
2704
2705         Unreviewed sort of Xcode project file.
2706
2707         * WebCore.xcodeproj/project.pbxproj:
2708
2709 2010-08-05  Adam Barth  <abarth@webkit.org>
2710
2711         Actually make HTMLEntityNames.json valid JSON.
2712
2713         * html/HTMLEntityNames.json:
2714
2715 2010-08-05  Beth Dakin  <bdakin@apple.com>
2716
2717         Reviewed by Kenneth Rohde Christiansen.
2718
2719         Fix for https://bugs.webkit.org/show_bug.cgi?id=43516 REGRESSION: 
2720         Huge number of memory leaks after enabling MathML
2721         -and corresponding-
2722         <rdar://problem/8274123>
2723
2724         Destroy the old children in 
2725         RenderMathMLOperator::updateFromElement() instead of just removing 
2726         them since just removing them will cause them to leak.
2727         * mathml/RenderMathMLOperator.cpp:
2728         (WebCore::RenderMathMLOperator::updateFromElement):
2729
2730 2010-08-05  Tony Chang  <tony@chromium.org>
2731
2732         Reviewed by David Hyatt.
2733
2734         Fix a crash when a hidden iframe with a custom scrollbar finishes loading an image.
2735         https://bugs.webkit.org/show_bug.cgi?id=42724
2736
2737         Test: scrollbars/hidden-iframe-scrollbar-crash2.html
2738
2739         * page/FrameView.cpp:
2740         (WebCore::FrameView::createScrollbar):
2741         * rendering/RenderScrollbar.cpp:
2742         (WebCore::RenderScrollbar::createCustomScrollbar): Pass in Frame
2743         (WebCore::RenderScrollbar::RenderScrollbar): Pass in Frame
2744         (WebCore::RenderScrollbar::owningRenderer): Use the frame to get the RenderBox
2745         (WebCore::RenderScrollbar::getScrollbarPseudoStyle):
2746         (WebCore::RenderScrollbar::updateScrollbarParts):
2747         (WebCore::RenderScrollbar::updateScrollbarPart):
2748         * rendering/RenderScrollbar.h:
2749         * rendering/RenderScrollbarPart.cpp:
2750         (WebCore::RenderScrollbarPart::computeScrollbarWidth): null check
2751         (WebCore::RenderScrollbarPart::computeScrollbarHeight): null check
2752
2753 2010-08-05  Yong Li  <yoli@rim.com>
2754
2755         Reviewed by Adam Treat.
2756
2757         Fix the problem that down-sampling code doesn't work
2758         for some GIF's. GIF reader can call setSize() multiple times.
2759         We should clear the scaling maps before adding new entries.
2760         Also add a fast path to check if the size has changed since last time.
2761
2762         https://bugs.webkit.org/show_bug.cgi?id=43501
2763
2764         * platform/image-decoders/ImageDecoder.cpp:
2765         (WebCore::ImageDecoder::prepareScaleDataIfNecessary):
2766         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2767         (WebCore::GIFImageDecoder::setSize):
2768
2769 2010-08-05  Ilya Tikhonovsky  <loislo@chromium.org>
2770
2771         Reviewed by Yury Semikhatsky.
2772
2773         WebInspector: In the current implementation of inspector agents we're calling
2774         did methods manually. That is error prone and is bad from protocol point of view.
2775         It would be better to call did methods automatically from the corresponding methods
2776         of InspectorBackendDispatcher and report the results. As far as our protocol is
2777         statefull this trick will keep it in the consistent state.
2778         https://bugs.webkit.org/show_bug.cgi?id=43489
2779
2780         * inspector/CodeGeneratorInspector.pm:
2781         * inspector/Inspector.idl:
2782         * inspector/InspectorApplicationCacheAgent.cpp:
2783         (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
2784         * inspector/InspectorApplicationCacheAgent.h:
2785         * inspector/InspectorBackend.cpp:
2786         (WebCore::InspectorBackend::getProfilerLogLines):
2787         (WebCore::InspectorBackend::setInjectedScriptSource):
2788         (WebCore::InspectorBackend::dispatchOnInjectedScript):
2789         (WebCore::InspectorBackend::clearConsoleMessages):
2790         (WebCore::InspectorBackend::releaseWrapperObjectGroup):
2791         (WebCore::InspectorBackend::getDatabaseTableNames):
2792         * inspector/InspectorBackend.h:
2793         * inspector/InspectorCSSStore.cpp:
2794         (WebCore::InspectorCSSStore::inspectorStyleSheet):
2795         * inspector/InspectorCSSStore.h:
2796         * inspector/InspectorController.cpp:
2797         (WebCore::InspectorController::InspectorController):
2798         (WebCore::InspectorController::getCookies):
2799         (WebCore::InspectorController::getDOMStorageEntries):
2800         (WebCore::InspectorController::setDOMStorageItem):
2801         (WebCore::InspectorController::removeDOMStorageItem):
2802         (WebCore::InspectorController::getProfileHeaders):
2803         (WebCore::InspectorController::getProfile):
2804         (WebCore::InspectorController::editScriptSource):
2805         (WebCore::InspectorController::getScriptSource):
2806         (WebCore::InspectorController::setBreakpoint):
2807         (WebCore::InspectorController::getResourceContent):
2808         * inspector/InspectorController.h:
2809         (WebCore::InspectorController::inspectorClient):
2810         * inspector/InspectorDOMAgent.cpp:
2811         (WebCore::InspectorDOMAgent::getChildNodes):
2812         (WebCore::InspectorDOMAgent::setAttribute):
2813         (WebCore::InspectorDOMAgent::removeAttribute):
2814         (WebCore::InspectorDOMAgent::removeNode):
2815         (WebCore::InspectorDOMAgent::changeTagName):
2816         (WebCore::InspectorDOMAgent::getOuterHTML):
2817         (WebCore::InspectorDOMAgent::setOuterHTML):
2818         (WebCore::InspectorDOMAgent::setTextNodeValue):
2819         (WebCore::InspectorDOMAgent::getEventListenersForNode):
2820         (WebCore::InspectorDOMAgent::getStyles):
2821         (WebCore::InspectorDOMAgent::getAllStyles):
2822         (WebCore::InspectorDOMAgent::getStyleSheet):
2823         (WebCore::InspectorDOMAgent::getRuleRanges):
2824         (WebCore::InspectorDOMAgent::getInlineStyle):
2825         (WebCore::InspectorDOMAgent::getComputedStyle):
2826         (WebCore::InspectorDOMAgent::applyStyleText):
2827         (WebCore::InspectorDOMAgent::setStyleText):
2828         (WebCore::InspectorDOMAgent::setStyleProperty):
2829         (WebCore::InspectorDOMAgent::toggleStyleEnabled):
2830         (WebCore::InspectorDOMAgent::setRuleSelector):
2831         (WebCore::InspectorDOMAgent::addRule):
2832         (WebCore::InspectorDOMAgent::buildObjectForRule):
2833         (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
2834         * inspector/InspectorDOMAgent.h:
2835         * inspector/InspectorValues.cpp:
2836         (WebCore::InspectorValue::asNumber):
2837         (WebCore::InspectorBasicValue::asNumber):
2838         * inspector/InspectorValues.h:
2839         * inspector/front-end/Callback.js:
2840         (WebInspector.Callback.prototype.processCallback):
2841         (WebInspector.Callback.prototype.removeCallbackEntry):
2842         * inspector/front-end/ElementsPanel.js:
2843         (WebInspector.ElementsPanel.prototype.reset):
2844         * inspector/front-end/inspector.js:
2845         (WebInspector.reportProtocolError):
2846
2847 2010-08-04  Kenneth Russell  <kbr@google.com>
2848
2849         Reviewed by Dimitri Glazkov.
2850
2851         Style cleanups in WebGL
2852         https://bugs.webkit.org/show_bug.cgi?id=38761
2853
2854         Cleaned up all style violations in WebGL-related files reported by
2855         check-webkit-style. No logic or other changes. Built WebKit and
2856         Chromium and ran WebGL layout tests.
2857
2858         * html/canvas/ArrayBuffer.cpp:
2859         (WebCore::ArrayBuffer::ArrayBuffer):
2860         (WebCore::ArrayBuffer::data):
2861         (WebCore::ArrayBuffer::byteLength):
2862         (WebCore::ArrayBuffer::~ArrayBuffer):
2863         (WebCore::ArrayBuffer::tryAllocate):
2864         * html/canvas/ArrayBufferView.cpp:
2865         (WebCore::ArrayBufferView::setImpl):
2866         * html/canvas/ArrayBufferView.h:
2867         * html/canvas/TypedArrayBase.h:
2868         * html/canvas/WebGLBuffer.cpp:
2869         (WebCore::WebGLBuffer::deleteObjectImpl):
2870         (WebCore::WebGLBuffer::associateBufferData):
2871         * html/canvas/WebGLBuffer.h:
2872         (WebCore::WebGLBuffer::~WebGLBuffer):
2873         (WebCore::WebGLBuffer::elementArrayBuffer):
2874         (WebCore::WebGLBuffer::getTarget):
2875         (WebCore::WebGLBuffer::isBuffer):
2876         * html/canvas/WebGLFramebuffer.cpp:
2877         (WebCore::WebGLFramebuffer::deleteObjectImpl):
2878         * html/canvas/WebGLFramebuffer.h:
2879         (WebCore::WebGLFramebuffer::~WebGLFramebuffer):
2880         (WebCore::WebGLFramebuffer::isDepthAttached):
2881         (WebCore::WebGLFramebuffer::isStencilAttached):
2882         (WebCore::WebGLFramebuffer::isDepthStencilAttached):
2883         (WebCore::WebGLFramebuffer::isFramebuffer):
2884         * html/canvas/WebGLGetInfo.cpp:
2885         * html/canvas/WebGLGetInfo.h:
2886         * html/canvas/WebGLObject.cpp:
2887         (WebCore::WebGLObject::deleteObject):
2888         * html/canvas/WebGLObject.h:
2889         (WebCore::WebGLObject::object):
2890         (WebCore::WebGLObject::detachContext):
2891         (WebCore::WebGLObject::context):
2892         (WebCore::WebGLObject::isBuffer):
2893         (WebCore::WebGLObject::isFramebuffer):
2894         (WebCore::WebGLObject::isProgram):
2895         (WebCore::WebGLObject::isRenderbuffer):
2896         (WebCore::WebGLObject::isShader):
2897         (WebCore::WebGLObject::isTexture):
2898         * html/canvas/WebGLProgram.cpp:
2899         (WebCore::WebGLProgram::deleteObjectImpl):
2900         * html/canvas/WebGLProgram.h:
2901         (WebCore::WebGLProgram::~WebGLProgram):
2902         (WebCore::WebGLProgram::isLinkFailureFlagSet):
2903         (WebCore::WebGLProgram::setLinkFailureFlag):
2904         (WebCore::WebGLProgram::isProgram):
2905         * html/canvas/WebGLRenderbuffer.cpp:
2906         (WebCore::WebGLRenderbuffer::deleteObjectImpl):
2907         * html/canvas/WebGLRenderbuffer.h:
2908         (WebCore::WebGLRenderbuffer::~WebGLRenderbuffer):
2909         (WebCore::WebGLRenderbuffer::setInternalFormat):
2910         (WebCore::WebGLRenderbuffer::getInternalFormat):
2911         (WebCore::WebGLRenderbuffer::isInitialized):
2912         (WebCore::WebGLRenderbuffer::setInitialized):
2913         (WebCore::WebGLRenderbuffer::isRenderbuffer):
2914         * html/canvas/WebGLRenderingContext.cpp:
2915         (WebCore::WebGLRenderingContext::beginPaint):
2916         (WebCore::WebGLRenderingContext::blendEquation):
2917         (WebCore::WebGLRenderingContext::getActiveAttrib):
2918         (WebCore::WebGLRenderingContext::getActiveUniform):
2919         (WebCore::WebGLRenderingContext::getBufferParameter):
2920         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
2921         (WebCore::WebGLRenderingContext::vertexAttribPointer):
2922         * html/canvas/WebGLRenderingContext.h:
2923         (WebCore::WebGLRenderingContext::is3d):
2924         (WebCore::WebGLRenderingContext::isAccelerated):
2925         (WebCore::WebGLRenderingContext::graphicsContext3D):
2926         (WebCore::WebGLRenderingContext::cleanupAfterGraphicsCall):
2927         (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState):
2928         (WebCore::WebGLRenderingContext::VertexAttribState::initValue):
2929         * html/canvas/WebGLShader.cpp:
2930         (WebCore::WebGLShader::deleteObjectImpl):
2931         * html/canvas/WebGLShader.h:
2932         (WebCore::WebGLShader::~WebGLShader):
2933         (WebCore::WebGLShader::getType):
2934         (WebCore::WebGLShader::isShader):
2935         * html/canvas/WebGLTexture.cpp:
2936         (WebCore::WebGLTexture::deleteObjectImpl):
2937         * html/canvas/WebGLTexture.h:
2938         (WebCore::WebGLTexture::~WebGLTexture):
2939         (WebCore::WebGLTexture::isCubeMapRWrapModeInitialized):
2940         (WebCore::WebGLTexture::setCubeMapRWrapModeInitialized):
2941         (WebCore::WebGLTexture::isTexture):
2942         (WebCore::WebGLTexture::LevelInfo::LevelInfo):
2943         (WebCore::WebGLTexture::LevelInfo::setInfo):
2944         * platform/graphics/GraphicsContext3D.h:
2945         (WebCore::GraphicsContext3D::):
2946         (WebCore::GraphicsContext3D::Attributes::Attributes):
2947         (WebCore::GraphicsContext3D::platformGraphicsContext3D):
2948         (WebCore::GraphicsContext3D::platformTexture):
2949         (WebCore::GraphicsContext3D::platformLayer):
2950
2951 2010-08-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
2952
2953         Reviewed by Simon Hausmann.
2954
2955         Make the viewport meta tag parser support the Android
2956         target-densitydpi extension.
2957         http://webkit.org/b/43492
2958
2959         http://developer.android.com/reference/android/webkit/WebView.html
2960         Section 'Building web pages to support different screen densities'
2961
2962         * dom/ViewportArguments.cpp:
2963         (WebCore::setViewportFeature):
2964         (WebCore::viewportErrorMessageTemplate):
2965         * dom/ViewportArguments.h:
2966         (WebCore::):
2967         (WebCore::ViewportArguments::ViewportArguments):
2968         (WebCore::ViewportArguments::hasCustomArgument):
2969
2970 2010-08-05  Jian Li  <jianli@chromium.org>
2971  
2972         Reviewed by David Levin.
2973
2974         Unify blob related feature defines to ENABLE(BLOB).
2975         https://bugs.webkit.org/show_bug.cgi?id=43081
2976
2977         * Configurations/FeatureDefines.xcconfig:
2978         * GNUmakefile.am:
2979         * WebCore.pri:
2980         * bindings/js/JSEventTarget.cpp:
2981         (WebCore::toJS):
2982         * bindings/v8/V8DOMWrapper.cpp:
2983         (WebCore::V8DOMWrapper::convertEventTargetToV8Object):
2984         * dom/EventTarget.cpp:
2985         * dom/EventTarget.h:
2986         * dom/ExceptionCode.h:
2987         (WebCore::):
2988         * dom/ScriptExecutionContext.cpp:
2989         (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
2990         * dom/ScriptExecutionContext.h:
2991         * html/Blob.cpp:
2992         * html/Blob.h:
2993         * html/Blob.idl:
2994         * html/FileError.h:
2995         * html/FileError.idl:
2996         * html/FileReader.cpp:
2997         * html/FileReader.h:
2998         * html/FileReader.idl:
2999         * html/FileStream.cpp:
3000         (WebCore::FileStream::openForRead):
3001         * html/FileStream.h:
3002         * html/FileStreamClient.h:
3003         * html/FileStreamProxy.cpp:
3004         * html/FileStreamProxy.h:
3005         * html/FileThread.cpp:
3006         * html/FileThread.h:
3007         * page/DOMWindow.idl:
3008         * platform/BlobItem.cpp:
3009         (WebCore::getFileSnapshotModificationTime):
3010         (WebCore::DataBlobItem::slice):
3011         (WebCore::FileBlobItem::slice):
3012         * platform/BlobItem.h:
3013         * platform/network/FormData.cpp:
3014         (WebCore::FormData::deepCopy):
3015         (WebCore::FormData::appendFile):
3016         (WebCore::FormData::appendItem):
3017         (WebCore::FormData::appendKeyValuePairItems):
3018         * platform/network/FormData.h:
3019         (WebCore::operator==):
3020         * platform/network/mac/FormDataStreamMac.mm:
3021         (WebCore::closeCurrentStream):
3022         (WebCore::advanceCurrentStream):
3023         (WebCore::formCreate):
3024         (WebCore::formRead):
3025         (WebCore::setHTTPBody):
3026
3027 2010-08-05  Xan Lopez  <xlopez@igalia.com>
3028
3029         Reviewed by Gustavo Noronha.
3030
3031         When trying to wrap a Node we know is an Element fallback to a
3032         simple Element wrapper in the worst case, not to Node.
3033
3034         * bindings/gobject/WebKitDOMBinding.cpp:
3035         (WebKit::createWrapper):
3036
3037 2010-08-05  François Sausset  <sausset@gmail.com>
3038
3039         Reviewed by Kenneth Rohde Christiansen.
3040
3041         Implement basic values of MathML mathvariant attribute
3042         https://bugs.webkit.org/show_bug.cgi?id=43481
3043
3044         Test: mathml/presentation/attributes.xhtml
3045
3046         * css/mathml.css:
3047         (math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"]):
3048         (math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"]):
3049         (math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"]):
3050         (math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"]):
3051         * mathml/mathattrs.in:
3052
3053 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
3054
3055         Reviewed by Pavel Feldman.
3056
3057         Web Inspector: inspected page crashes when there is a cyclic reference in Object prototype
3058         https://bugs.webkit.org/show_bug.cgi?id=43558
3059
3060         Test: inspector/debugger-cyclic-ref.html
3061
3062         * bindings/v8/ScriptValue.cpp:
3063         (WebCore::v8ToInspectorValue):
3064
3065 2010-08-05  Satish Sampath  <satish@chromium.org>
3066
3067         Reviewed by Jeremy Orlow.
3068
3069         Fix rendering of speech button and enable layout tests
3070         https://bugs.webkit.org/show_bug.cgi?id=43425
3071
3072         Rewrote the speech button rendering code to match how the spin buttons (for input type=number)
3073         are implemented as the previous implementation did not work well on many platforms.
3074
3075         * rendering/RenderTextControlSingleLine.cpp:
3076         (WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine):
3077         (WebCore::RenderTextControlSingleLine::layout):
3078         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
3079         (WebCore::RenderTextControlSingleLine::styleDidChange):
3080         (WebCore::RenderTextControlSingleLine::hasControlClip):
3081         (WebCore::RenderTextControlSingleLine::adjustControlHeightBasedOnLineHeight):
3082         (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
3083         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
3084         (WebCore::RenderTextControlSingleLine::createSpeechButtonStyle):
3085         (WebCore::RenderTextControlSingleLine::clientPaddingRight):
3086         * rendering/RenderTextControlSingleLine.h:
3087         * rendering/TextControlInnerElements.cpp:
3088         (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
3089         (WebCore::InputFieldSpeechButtonElement::create):
3090         * rendering/TextControlInnerElements.h:
3091
3092 2010-08-05  Andrey Kosyakov  <caseq@chromium.org>
3093
3094         Reviewed by Pavel Feldman.
3095
3096         Web Inspector: Separated WebInspector extension API injection logic from other scripts that inspector injects.
3097         Enabled injection of the API scripts even if inspector is disabled for inspector front-end page.
3098         https://bugs.webkit.org/show_bug.cgi?id=43344
3099
3100         * inspector/InspectorController.cpp:
3101         (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
3102         (WebCore::InspectorController::setInspectorExtensionAPI):
3103         * inspector/InspectorController.h:
3104         * inspector/InspectorFrontendHost.cpp:
3105         (WebCore::InspectorFrontendHost::setExtensionAPI):
3106
3107 2010-08-05  Charles Wei  <charles.wei@torchmobile.com.cn>
3108
3109         Reviewed by George Staikos.
3110
3111         <noscript> is working the other way around in some cases with xhtmlmp enabled
3112         https://bugs.webkit.org/show_bug.cgi?id=43469
3113
3114         Test: fast/xhtmlmp/noscript-basic.xhtml
3115
3116         * dom/Document.cpp:
3117         (WebCore::Document::Document):
3118
3119 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
3120
3121         Unreviewed. Fix Win compilation.
3122
3123         * bindings/js/JSBindingsAllInOne.cpp:
3124
3125 2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
3126
3127         Reviewed by Tor Arne Vestbø.
3128
3129         [Qt] Clean up the input method handling
3130         https://bugs.webkit.org/show_bug.cgi?id=43545
3131
3132         Changed input method hint interface to be more efficient by setting
3133         all hints in one shot, like in QWidget.
3134
3135         * platform/qt/QWebPageClient.h:
3136
3137 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
3138
3139         Reviewed by Pavel Feldman.
3140
3141         Web Inspector: remove mutator methods from ScriptObject and remove ScriptArray.
3142         We shouldn't modify JS objects from InspectorController, InspectorValues
3143         should be used instead.
3144         https://bugs.webkit.org/show_bug.cgi?id=43546
3145
3146         * GNUmakefile.am:
3147         * WebCore.gypi:
3148         * WebCore.pro:
3149         * WebCore.vcproj/WebCore.vcproj:
3150         * WebCore.xcodeproj/project.pbxproj:
3151         * bindings/js/ScriptArray.cpp: Removed.
3152         * bindings/js/ScriptArray.h: Removed.
3153         * bindings/js/ScriptCallStack.h:
3154         * bindings/js/ScriptObject.cpp:
3155         * bindings/js/ScriptObject.h:
3156         * bindings/v8/ScriptArray.cpp: Removed.
3157         * bindings/v8/ScriptArray.h: Removed.
3158         * bindings/v8/ScriptCallStack.h:
3159         * bindings/v8/ScriptObject.cpp:
3160         * bindings/v8/ScriptObject.h:
3161
3162 2010-08-05  Ned Holbrook  <nholbrook@apple.com>
3163
3164         Reviewed by Darin Adler.
3165
3166         ~5% complex layout performance improvement.
3167         https://bugs.webkit.org/show_bug.cgi?id=43436
3168
3169         * platform/graphics/mac/ComplexTextController.h:
3170         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
3171         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Use Vector rather than CFMutableData.
3172         (WebCore::ComplexTextController::ComplexTextRun::createTextRunFromFontDataCoreText): Ditto.
3173         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Avoid typesetter allocation unless using typesetter options.
3174
3175 2010-08-05  Steve Block  <steveblock@google.com>
3176
3177         Reviewed by Jeremy Orlow.
3178
3179         targetReferenceFromResource() in SVGResources.cpp is missing an ENABLE(FILTERS) guard
3180         https://bugs.webkit.org/show_bug.cgi?id=43550
3181
3182         Also updates an existing ENABLE(FILTERS) guard to avoid a compiler
3183         warning 'case FilterResourceType not handled in switch' when FILTERS
3184         is not enabled.
3185
3186         No new tests, build fix only.
3187
3188         * rendering/SVGResources.cpp:
3189         (WebCore::targetReferenceFromResource):
3190         (WebCore::SVGResources::resourceDestroyed):
3191
3192 2010-08-05  Victoria Kirst  <vrk@google.com>
3193
3194         Reviewed by David Levin.
3195
3196         Added logic to use glMapTexSubImage2D to write video layer to GPU
3197         texture. Also fixes CPU usage problem from previous patch.
3198         https://bugs.webkit.org/show_bug.cgi?id=43101
3199
3200         No change in user-visible functionality (since it isn't turned on),
3201         so no new tests.
3202
3203         * platform/graphics/chromium/VideoLayerChromium.cpp:
3204         (WebCore::VideoLayerChromium::VideoLayerChromium):
3205         (WebCore::VideoLayerChromium::updateTextureContents):
3206         (WebCore::VideoLayerChromium::createTextureRect):
3207         (WebCore::VideoLayerChromium::updateTextureRect):
3208         (WebCore::VideoLayerChromium::updateCompleted):
3209         * platform/graphics/chromium/VideoLayerChromium.h:
3210
3211 2010-08-05  Zoltan Horvath  <zoltan@webkit.org>
3212
3213         Reviewed by Simon Hausmann.
3214
3215         Allow custom memory allocation control for ClipperData struct
3216         https://bugs.webkit.org/show_bug.cgi?id=43337
3217
3218         Inherits the following class from FastAllocBase because it is
3219         instantiated by 'new':                                     
3220
3221         class name         - instantiated at: WebCore/'location'
3222         RenderLayerBacking - rendering/RenderSVGResourceClipper.cpp:165
3223
3224         * rendering/RenderSVGResourceClipper.h:
3225
3226 2010-08-05  Zoltan Horvath  <zoltan@webkit.org>
3227
3228         Reviewed by Simon Hausmann.
3229
3230         Allow custom memory allocation control for DoctypeData class
3231         https://bugs.webkit.org/show_bug.cgi?id=43343
3232
3233         Inherits the following class from Noncopyable because it is
3234         instantiated by 'new' and no need to be copyable:
3235
3236         class name  - instantiated at: WebCore/'location'
3237         DoctypeData - html/HTMLToken.h:113
3238
3239         * html/HTMLToken.h:
3240
3241 2010-08-05  François Sausset  <sausset@gmail.com>
3242
3243         Reviewed by Darin Adler.
3244
3245         Small style adjustments for MathML merror element.
3246         https://bugs.webkit.org/show_bug.cgi?id=43432
3247
3248         * css/mathml.css:
3249         (merror):
3250
3251 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
3252
3253         Reviewed by Pavel Feldman.
3254
3255         Web Inspector: forbid InspectorController to create script objects directly in the frontend
3256         https://bugs.webkit.org/show_bug.cgi?id=43541
3257
3258         Cookie and AppCache data are now serialized into InspectorValues instead of
3259         ScriptObjects. These were last usages of InspectorFrontend::newScript{Object,Array}
3260         so we can remove them now and use only InspectorValues to pass data to the inspector
3261         frontend.
3262
3263         * inspector/Inspector.idl:
3264         * inspector/InspectorApplicationCacheAgent.cpp:
3265         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
3266         (WebCore::InspectorApplicationCacheAgent::getApplicationCaches):
3267         (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
3268         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
3269         (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCacheResource):
3270         * inspector/InspectorApplicationCacheAgent.h:
3271         * inspector/InspectorController.cpp:
3272         (WebCore::InspectorController::connectFrontend):
3273         (WebCore::InspectorController::getCookies):
3274         (WebCore::InspectorController::buildArrayForCookies):
3275         (WebCore::InspectorController::buildObjectForCookie):
3276         * inspector/InspectorController.h:
3277         * inspector/InspectorFrontend.cpp:
3278         (WebCore::InspectorFrontend::setRecordingProfile):
3279         * inspector/InspectorFrontend.h:
3280
3281 2010-08-05  Mario Sanchez Prada  <msanchez@igalia.com>
3282
3283         Reviewed by Xan Lopez.
3284
3285         [GTK] Extra check needed at AccessibilityObject::visiblePositionRangeForRange
3286         https://bugs.webkit.org/show_bug.cgi?id=43418
3287
3288         Ensure the renderer is a RenderText before calling toRenderText()
3289
3290         Also, simplified code a bit to avoid so many nested if's in that
3291         part of the code, while keeping the same logic.
3292
3293         * accessibility/AccessibilityObject.cpp:
3294         (WebCore::AccessibilityObject::visiblePositionRangeForRange):
3295
3296 2010-08-05  Kwang Yul Seo  <skyul@company100.net>
3297
3298         Reviewed by Kent Tamura.
3299
3300         [BREWMP] Define htonl, htons, ntohl and ntohs
3301         https://bugs.webkit.org/show_bug.cgi?id=43397
3302
3303         In BREWMP, AEEStdLib.h provides macros for byte order conversion: HTONL, HTONS, NTOHL and NTOHS.
3304         Use these macros to define htonl, htons, ntohl and ntohs used by WOFFFileFormat.cpp.
3305
3306         * platform/graphics/WOFFFileFormat.cpp:
3307
3308 2010-08-04  Zoltan Herczeg  <zherczeg@webkit.org>
3309
3310         Reviewed by Nikolas Zimmermann.
3311
3312         SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change
3313         https://bugs.webkit.org/show_bug.cgi?id=42244
3314
3315         Implementing svgAttributeChanged for SVGFESpotLightElement object.
3316         Furthermore, invalidateFilter has been moved to SVGFilterElement, and
3317         it is a static function now.
3318
3319         Tests: svg/dynamic-updates/SVGFESpotLightElement-dom-limitingConeAngle-attr.html
3320                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtX-attr.html
3321                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtY-attr.html
3322                svg/dynamic-updates/SVGFESpotLightElement-dom-pointsAtZ-attr.html
3323                svg/dynamic-updates/SVGFESpotLightElement-dom-specularExponent-attr.html
3324                svg/dynamic-updates/SVGFESpotLightElement-dom-x-attr.html
3325                svg/dynamic-updates/SVGFESpotLightElement-dom-y-attr.html
3326                svg/dynamic-updates/SVGFESpotLightElement-dom-z-attr.html
3327                svg/dynamic-updates/SVGFESpotLightElement-svgdom-limitingConeAngle-prop.html
3328                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtX-prop.html
3329                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtY-prop.html
3330                svg/dynamic-updates/SVGFESpotLightElement-svgdom-pointsAtZ-prop.html
3331                svg/dynamic-updates/SVGFESpotLightElement-svgdom-specularExponent-prop.html
3332                svg/dynamic-updates/SVGFESpotLightElement-svgdom-x-prop.html
3333                svg/dynamic-updates/SVGFESpotLightElement-svgdom-y-prop.html
3334                svg/dynamic-updates/SVGFESpotLightElement-svgdom-z-prop.html
3335
3336         * svg/SVGFEDiffuseLightingElement.cpp:
3337         (WebCore::SVGFEDiffuseLightingElement::svgAttributeChanged):
3338         * svg/SVGFELightElement.cpp:
3339         (WebCore::SVGFELightElement::svgAttributeChanged):
3340         (WebCore::SVGFELightElement::childrenChanged):
3341         * svg/SVGFELightElement.h:
3342         * svg/SVGFEOffsetElement.cpp:
3343         (WebCore::SVGFEOffsetElement::svgAttributeChanged):
3344         * svg/SVGFESpecularLightingElement.cpp:
3345         * svg/SVGFilterElement.h:
3346         (WebCore::SVGFilterElement::invalidateFilter):
3347         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
3348         (WebCore::SVGFilterPrimitiveStandardAttributes::svgAttributeChanged):
3349         (WebCore::SVGFilterPrimitiveStandardAttributes::childrenChanged):
3350         * svg/SVGFilterPrimitiveStandardAttributes.h:
3351
3352 2010-08-05  Yury Semikhatsky  <yurys@chromium.org>
3353
3354         Reviewed by Pavel Feldman.
3355
3356         Web Inspector: serialize DOM storage items to InspectorValues
3357         https://bugs.webkit.org/show_bug.cgi?id=43486
3358
3359         * inspector/Inspector.idl:
3360         * inspector/InspectorController.cpp:
3361         (WebCore::InspectorController::populateScriptObjects):
3362         (WebCore::InspectorController::didUseDOMStorage):
3363         (WebCore::InspectorController::selectDOMStorage):
3364         (WebCore::InspectorController::getDOMStorageEntries):
3365         (WebCore::InspectorController::setDOMStorageItem):
3366         (WebCore::InspectorController::removeDOMStorageItem):
3367         * inspector/InspectorDOMStorageResource.cpp:
3368         (WebCore::InspectorDOMStorageResource::bind):
3369         * inspector/InspectorDOMStorageResource.h:
3370         * inspector/InspectorFrontend.cpp:
3371         * inspector/InspectorFrontend.h:
3372
3373 2010-08-04  Eric Seidel  <eric@webkit.org>
3374
3375         Reviewed by Adam Barth.
3376
3377         Enable HTML5 tree builder
3378         https://bugs.webkit.org/show_bug.cgi?id=42804
3379
3380         Months of work into a single line code change.
3381         Geez.  Should have thought of this sooner.
3382
3383         * html/HTMLTreeBuilder.cpp:
3384         (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
3385
3386 2010-08-04  Kent Tamura  <tkent@chromium.org>
3387
3388         Reviewed by Darin Adler.
3389
3390         Spin-button behavior improvement for out-of-range values
3391         https://bugs.webkit.org/show_bug.cgi?id=43463
3392
3393         If the current value is smaller than the minimum value, the up
3394         button should change the value to the minimum value. If the
3395         current value is larger than the maximum value, the down button
3396         should change the value to the maximum value.
3397
3398         Test: fast/forms/input-number-outofrange.html
3399
3400         * html/HTMLInputElement.cpp:
3401         (WebCore::HTMLInputElement::stepUpFromRenderer):
3402
3403 2010-08-04  Antonio Gomes  <tonikitoo@webkit.org>
3404
3405         Reviewed by Daniel Bates.
3406
3407         Remove superfluous non-negative checks in HitTestResult:padding{Width|Height}
3408         https://bugs.webkit.org/show_bug.cgi?id=43534
3409
3410         As pointed out by Steve Block in https://bugs.webkit.org/show_bug.cgi?id=40197#c54 ,
3411         the non-negative checks present in both paddingWidth and paddingHeight methods of
3412         HitTestResults class are superflous, after we changed the rect based hit testing logic
3413         of invalid padding from IntSize(-1, -1) to IntSize(0, 0). Patch addresses this issue.
3414
3415         No new tests needed.
3416
3417         * rendering/HitTestResult.h:
3418         (WebCore::HitTestResult::paddingWidth):
3419         (WebCore::HitTestResult::paddingHeight):
3420
3421 2010-08-04  Sheriff Bot  <webkit.review.bot@gmail.com>
3422
3423         Unreviewed, rolling out r64674.
3424         http://trac.webkit.org/changeset/64674
3425         https://bugs.webkit.org/show_bug.cgi?id=43532
3426
3427         Doesn't work with HTML5 tree builder (Requested by tonyg-cr on
3428         #webkit).
3429
3430         * html/HTMLDocumentParser.cpp:
3431         (WebCore::HTMLDocumentParser::attemptToEnd):
3432         (WebCore::HTMLDocumentParser::endIfDelayed):
3433         * html/HTMLDocumentParser.h:
3434         * html/HTMLScriptRunner.cpp:
3435         (WebCore::HTMLScriptRunner::requestScript):
3436         (WebCore::HTMLScriptRunner::runScript):
3437         * html/HTMLScriptRunner.h:
3438
3439 2010-08-04  Adam Barth  <abarth@webkit.org>
3440
3441         Reviewed by Eric Seidel.
3442
3443         fast/parser/residual-style-hang.html hangs
3444         https://bugs.webkit.org/show_bug.cgi?id=42950
3445
3446         We need to cap the iteration of the adoption agency algorithm to
3447         prevent this hang.  The legacy tree builder does this as well.
3448
3449         * html/HTMLTreeBuilder.cpp:
3450         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
3451
3452 2010-08-04  Adam Barth  <abarth@webkit.org>
3453
3454         Reviewed by Eric Seidel.
3455
3456         Pick up spec change w.r.t. figcaption and summary
3457         https://bugs.webkit.org/show_bug.cgi?id=43075
3458
3459         * html/HTMLTreeBuilder.cpp:
3460         (WebCore::HTMLTreeBuilder::processEndTagForInBody):
3461
3462 2010-08-04  Adam Barth  <abarth@webkit.org>
3463
3464         Reviewed by Eric Seidel.
3465
3466         Pick up spec change w.r.t. replacement character and <frameset>
3467         https://bugs.webkit.org/show_bug.cgi?id=43073
3468
3469         Apparently this fixes parsing for some home router configuration pages.
3470
3471         * html/HTMLTreeBuilder.cpp:
3472         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
3473
3474 2010-08-04  Gavin Barraclough  <barraclough@apple.com>
3475
3476         Reviewed by Sam Weinig.
3477
3478         Bug 43515 - Fix small design issues with PageAllocation, split out PageReservation.
3479         (add forwarding headers)
3480
3481         * ForwardingHeaders/wtf/Bitmap.h: Added.
3482         * ForwardingHeaders/wtf/PageReservation.h: Added.
3483
3484 2010-08-04  Zhenyao Mo  <zmo@google.com>
3485
3486         Reviewed by Adam Barth.
3487
3488         getAttachedShaders takes wrong parameter type in WebGLRenderingContext.idl
3489         https://bugs.webkit.org/show_bug.cgi?id=43517
3490
3491         * html/canvas/WebGLRenderingContext.idl: Fix the wrong parameter type in getAttachedShaders().
3492
3493 2010-08-04  Kenneth Russell  <kbr@google.com>
3494
3495         Reviewed by Dimitri Glazkov.
3496
3497         Rename CanvasObject to WebGLObject
3498         https://bugs.webkit.org/show_bug.cgi?id=31564
3499
3500         Renamed CanvasObject to WebGLObject using do-webcore-rename script.
3501         Because it seems the new convention is to not check in the changes
3502         made to this script, only checking in its effects. No new tests;
3503         built and ran WebGL in Safari and Chromium to test.
3504
3505         * Android.mk:
3506         * WebCore.gypi:
3507         * WebCore.pro:
3508         * WebCore.xcodeproj/project.pbxproj:
3509         * html/canvas/CanvasObject.cpp: Removed.
3510         * html/canvas/CanvasObject.h: Removed.
3511         * html/canvas/CanvasRenderingContext.h:
3512         * html/canvas/WebGLBuffer.cpp:
3513         (WebCore::WebGLBuffer::WebGLBuffer):
3514         * html/canvas/WebGLBuffer.h:
3515         * html/canvas/WebGLFramebuffer.cpp:
3516         (WebCore::WebGLFramebuffer::WebGLFramebuffer):
3517         (WebCore::WebGLFramebuffer::setAttachment):
3518         (WebCore::WebGLFramebuffer::onAttachedObjectChange):
3519         (WebCore::WebGLFramebuffer::isUninitialized):
3520         (WebCore::WebGLFramebuffer::setInitialized):
3521         * html/canvas/WebGLFramebuffer.h:
3522         * html/canvas/WebGLObject.cpp: Copied from WebCore/html/canvas/CanvasObject.cpp.
3523         (WebCore::WebGLObject::WebGLObject):
3524         (WebCore::WebGLObject::~WebGLObject):
3525         (WebCore::WebGLObject::setObject):
3526         (WebCore::WebGLObject::deleteObject):
3527         * html/canvas/WebGLObject.h: Copied from WebCore/html/canvas/CanvasObject.h.
3528         * html/canvas/WebGLProgram.cpp:
3529         (WebCore::WebGLProgram::WebGLProgram):
3530         * html/canvas/WebGLProgram.h:
3531         * html/canvas/WebGLRenderbuffer.cpp:
3532         (WebCore::WebGLRenderbuffer::WebGLRenderbuffer):
3533         * html/canvas/WebGLRenderbuffer.h:
3534         * html/canvas/WebGLRenderingContext.cpp:
3535         (WebCore::objectOrZero):
3536         (WebCore::WebGLRenderingContext::validateWebGLObject):
3537         (WebCore::WebGLRenderingContext::removeObject):
3538         (WebCore::WebGLRenderingContext::addObject):
3539         (WebCore::WebGLRenderingContext::detachAndRemoveAllObjects):
3540         (WebCore::WebGLRenderingContext::findTexture):
3541         (WebCore::WebGLRenderingContext::findRenderbuffer):
3542         (WebCore::WebGLRenderingContext::findBuffer):
3543         (WebCore::WebGLRenderingContext::findShader):
3544         * html/canvas/WebGLRenderingContext.h:
3545         * html/canvas/WebGLShader.cpp:
3546         (WebCore::WebGLShader::WebGLShader):
3547         * html/canvas/WebGLShader.h:
3548         * html/canvas/WebGLTexture.cpp:
3549         (WebCore::WebGLTexture::WebGLTexture):
3550         * html/canvas/WebGLTexture.h:
3551         * html/canvas/WebGLUniformLocation.h:
3552         * platform/graphics/mac/GraphicsContext3DMac.mm:
3553         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3554
3555 2010-08-04  Dan Bernstein  <mitz@apple.com>
3556
3557         Build fix.
3558
3559         * platform/text/mac/HyphenationMac.mm:
3560         (WebCore::lastHyphenLocation):
3561
3562 2010-08-04  Dan Bernstein  <mitz@apple.com>
3563
3564         Release build fix.
3565
3566         * platform/text/mac/HyphenationMac.mm:
3567         (WebCore::lastHyphenLocation):
3568
3569 2010-08-04  Mark Rowe  <mrowe@apple.com>
3570
3571         Reviewed by Sam Weinig.
3572
3573         Don't leak FontDescription objects inside MathML.
3574
3575         * mathml/RenderMathMLOperator.cpp:
3576         (WebCore::RenderMathMLOperator::updateFromElement): Don't unnecessarily allocate the FontDescription on the heap.
3577         (WebCore::RenderMathMLOperator::createStackableStyle): Ditto.
3578
3579 2010-08-04  Kenneth Russell  <kbr@google.com>
3580
3581         Reviewed by Dimitri Glazkov.
3582
3583         Add ANGLE dependency for Chromium WebCore build
3584         https://bugs.webkit.org/show_bug.cgi?id=43508
3585
3586         No new tests. Built modified version of patch from bug 42405 in
3587         Chromium to test.
3588
3589         * WebCore.gyp/WebCore.gyp:
3590
3591 2010-08-04  Dan Bernstein  <mitz@apple.com>
3592
3593         Allow the language for hyphenation to be specified
3594         https://bugs.webkit.org/show_bug.cgi?id=43467
3595
3596         Test: fast/text/hyphenate-locale.html
3597
3598         Added a -webkit-hyphenate-locale property whose value can be either auto or a locale identifier
3599         string. The initial value is auto and the property is inherited. When the value is a locale
3600         identifier, hyphenation should follow the rules for the specified locale.
3601
3602         * WebCore.xcodeproj/project.pbxproj: Added AtomicStringKeyedMRUCache.h.
3603         * css/CSSComputedStyleDeclaration.cpp:
3604         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Handle -webkit-hyphenate-locale.
3605         Updated for the renaming of RenderStyle::hyphenateCharacter() to hyphenationString().
3606         * css/CSSParser.cpp:
3607         (WebCore::CSSParser::parseValue): Parse -webkit-hyphenate-locale.
3608         * css/CSSPropertyNames.in: Added -webkit-hyphenate-locale.
3609         * css/CSSStyleSelector.cpp:
3610         (WebCore::CSSStyleSelector::applyProperty): Apply the -webkit-hyphenate-locale property to the
3611         RenderStyle. Updated for the renaming of RenderStyle::hyphenateCharacter() to hyphenationString().
3612         * platform/text/AtomicStringKeyedMRUCache.h: Added.
3613         (WebCore::AtomicStringKeyedMRUCache::get):
3614         * platform/text/Hyphenation.cpp:
3615         (WebCore::canHyphenate): Added an implementation that returns false.
3616         (WebCore::lastHyphenLocation): Now asserts that it is not called, because it is an error to call
3617         this function if canHyphenate() returned false.
3618         * platform/text/Hyphenation.h:
3619         Added canHyphenate(). Returns true if hyphenation is possible for the given locale identifier.
3620         * platform/text/android/HyphenationAndroid.cpp:
3621         (WebCore::canHyphenate): Added an implementation that returns true and a FIXME.
3622         (WebCore::lastHyphenLocation): Added unused localeIdentifier parameter.
3623         * platform/text/cf/HyphenationCF.cpp:
3624         (WebCore::AtomicStringKeyedMRUCache<RetainPtr<CFLocaleRef> >::createValueForNullKey): Returns
3625         the CFLocaleRef for the current search locale.
3626         (WebCore::AtomicStringKeyedMRUCache<RetainPtr<CFLocaleRef> >::createValueForKey): Returns a
3627         CFLocaleRef for the locale identifier.
3628         (WebCore::canHyphenate): Added. Returns true.
3629         (WebCore::lastHyphenLocation): Added localeIdentifier parameter, used to pass a CFLocaleRef to
3630         the hyphenation function.
3631         * platform/text/mac/HyphenationMac.mm:
3632         (WebCore::AtomicStringKeyedMRUCache<bool>::createValueForNullKey): Returns whether the current
3633         search locale is english.
3634         (WebCore::AtomicStringKeyedMRUCache<bool>::createValueForKey): Returns whether the locale identifier
3635         string identifies locale with the English language.
3636         (WebCore::canHyphenate): Added. Returns true if the locale language is English.
3637         (WebCore::lastHyphenLocation): Added localeIdentifier parameter and an assertion that its language
3638         is English.
3639         * rendering/RenderBlockLineLayout.cpp:
3640         (WebCore::tryHyphenating): Added a locale identifier parameter, which is passed down to
3641         lastHyphenLocation(). Added 1 to the value passed for the beforeIndex parameter to lastHyphenLocation(),
3642         because the