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