<rdar://problem/9513180> REGRESSION (r84166): recalcStyle for display:inline to displ...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-06-12  Dan Bernstein  <mitz@apple.com>
2
3         Reviewed by Darin Adler.
4
5         <rdar://problem/9513180> REGRESSION (r84166): recalcStyle for display:inline to display:none transition has complexity N^2 where N is the number of child Text nodes
6         https://bugs.webkit.org/show_bug.cgi?id=61557
7
8         Replaced the fix for bug 58500 with a refined version.
9
10         * rendering/RenderText.cpp:
11         (WebCore::RenderText::clippedOverflowRectForRepaint): Use the containing block unless it is
12         across a layer boundary.
13
14 2011-06-12  Adam Barth  <abarth@webkit.org>
15
16         Reviewed by Andreas Kling.
17
18         Minor user-gesture related cleanup
19         https://bugs.webkit.org/show_bug.cgi?id=62511
20
21         In reading the user gesture code, I noticed that these lines of code
22         should be deleted because they don't do anything.
23
24         * bindings/v8/NPV8Object.cpp:
25         * html/HTMLAnchorElement.cpp:
26         * html/HTMLVideoElement.idl:
27
28 2011-06-11  Nikolas Zimmermann  <nzimmermann@rim.com>
29
30         Reviewed by Dirk Schulze.
31
32         Add TextRun charactersLength member
33         https://bugs.webkit.org/show_bug.cgi?id=62501
34
35         Preparation patch 2: Propagate the maximum length of the characters buffer the TextRun operates on, even when we're only measuring a substring.
36         For example: In RenderText when we're measuring 'len' characters starting from "text()->characters() + start", there's a portion
37         of "textLength() - start" characters that we're not processing. In order to support ligatures when integrating SVG Fonts
38         within the GlyphPage concept, we need this extra information, to lookup ligatures even when single chars are measured.
39         If a font defines an eg "ffl" ligature, and we're measuring the "f" of "ffl", it shall looukp the "ffl" glyph from the font,
40         and skip the next two characters (this will be done in WidthIterator).
41
42         This doesn't yet affect any test, the new SVG Fonts code is not merged yet, this is the preparaion patch 2.
43
44         * platform/graphics/Font.h: Add yet-unused "const TextRun&" parameter to drawGlyphBuffer/drawEmphasisMarks.
45         * platform/graphics/FontFastPath.cpp: Ditto. This parameter will be used to looukp the TextRunRenderingContext in a follow-up patch.
46         (WebCore::Font::drawSimpleText):
47         (WebCore::Font::drawEmphasisMarksForSimpleText):
48         (WebCore::Font::drawGlyphBuffer):
49         (WebCore::Font::drawEmphasisMarks):
50         * platform/graphics/TextRun.h: Add "int m_charactersLength", similar to "int m_len". It denotes the maximum length of the characters buffer
51                                        that we're holding. It defaults to the passed "len" value, but is overriden by explicit setCharactersLength calls.
52         (WebCore::TextRun::TextRun):
53         (WebCore::TextRun::charactersLength):
54         (WebCore::TextRun::setCharactersLength):
55         * platform/graphics/mac/FontComplexTextMac.cpp: Pass TextRun do drawGlyphBuffer/drawEmphasisMarks.
56         (WebCore::Font::drawComplexText):
57         (WebCore::Font::drawEmphasisMarksForComplexText):
58         * platform/graphics/win/FontWin.cpp: Ditto.
59         (WebCore::Font::drawComplexText):
60         (WebCore::Font::drawEmphasisMarksForComplexText):
61         * platform/graphics/wx/FontWx.cpp: Ditto.
62         (WebCore::Font::drawComplexText):
63         (WebCore::Font::drawEmphasisMarksForComplexText):
64         * rendering/InlineTextBox.cpp: Call setCharactersLength on the processed TextRun.
65         (WebCore::InlineTextBox::constructTextRun):
66         * rendering/RenderBlockLineLayout.cpp: Ditto.
67         (WebCore::textWidth):
68         (WebCore::tryHyphenating):
69         * rendering/RenderText.cpp: Ditto.
70         (WebCore::RenderText::widthFromCache):
71         (WebCore::RenderText::computePreferredLogicalWidths):
72         (WebCore::RenderText::width):
73         * rendering/svg/SVGInlineTextBox.cpp: Ditto.
74         (WebCore::SVGInlineTextBox::constructTextRun):
75
76 2011-06-12  Robert Hogan  <robert@webkit.org>
77
78         Reviewed by Andreas Kling.
79
80         [Qt] Fix methods.html and methods-lower-case.html
81         https://bugs.webkit.org/show_bug.cgi?id=62221
82
83         * platform/network/qt/QNetworkReplyHandler.cpp:
84         (WebCore::QNetworkReplyHandler::clearContentsHeaders): Refactor code from sendNetworkRequest
85         (WebCore::QNetworkReplyHandler::getIODevice): ditto
86         (WebCore::QNetworkReplyHandler::sendNetworkRequest):
87             - Remove ContentType and ContentLength headers from GET, DELETE and HEAD requests since
88               we do not send data with any of these requests.
89             - If a custom HTTP operation contains data, send it.
90         * platform/network/qt/QNetworkReplyHandler.h:
91
92 2011-06-11  Michael Saboff  <msaboff@apple.com>
93
94         Reviewed by James Robinson.
95
96         REGRESSION(88260): 10-50% performance regression across many page cyclers
97         https://bugs.webkit.org/show_bug.cgi?id=62349
98
99         Made CHROMIUM platform specific values for cMaxInactiveFontData and
100         cTargetInactiveFontData to mitigate the current performance issue on Chromium
101         page cycler tests.  Made the chromium value for cMaxInactiveFontData 250 based
102         on recommendation from James Robinson.  Changed cTargetInactiveFontData to 200
103         so that 50 inactive fonts will be cleaned up at a time.
104
105         Change made to address existing Chromium performance test regression.
106
107         * platform/graphics/FontCache.cpp:
108
109 2011-06-11  Adam Barth  <abarth@webkit.org>
110
111         Reviewed by Darin Adler.
112
113         Remove unnecessary strlen from DocumentWriter
114         https://bugs.webkit.org/show_bug.cgi?id=62505
115
116         This ugly piece of code appears not to be needed.  Rejoice.
117
118         * WebCore.exp.in:
119         * loader/DocumentLoader.cpp:
120         (WebCore::DocumentLoader::commitData):
121         * loader/DocumentLoader.h:
122         * loader/DocumentWriter.cpp:
123         (WebCore::DocumentWriter::addData):
124         * loader/DocumentWriter.h:
125
126 2011-06-11  Adam Barth  <abarth@webkit.org>
127
128         Reviewed by Darin Adler.
129
130         DocumentParser::appendBytes shouldn't have a "flush" boolean parameter
131         https://bugs.webkit.org/show_bug.cgi?id=62499
132
133         This patch removes the "flush" Boolean parameter from
134         DocumentParser::appendBytes in favor of a new flush method.  This makes
135         some code in DocumentWriter look less ridiculous.
136
137         There's still lots of on contorting to do here, but it's a start.
138
139         * dom/DecodedDataDocumentParser.cpp:
140         (WebCore::DecodedDataDocumentParser::appendBytes):
141         (WebCore::DecodedDataDocumentParser::flush):
142         * dom/DecodedDataDocumentParser.h:
143         * dom/DocumentParser.h:
144         * dom/RawDataDocumentParser.h:
145         (WebCore::RawDataDocumentParser::flush):
146         * html/ImageDocument.cpp:
147         (WebCore::ImageDocumentParser::appendBytes):
148         * html/MediaDocument.cpp:
149         (WebCore::MediaDocumentParser::appendBytes):
150         * html/PluginDocument.cpp:
151         (WebCore::PluginDocumentParser::appendBytes):
152         * loader/DocumentWriter.cpp:
153         (WebCore::DocumentWriter::reportDataReceived):
154         (WebCore::DocumentWriter::addData):
155         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
156         * loader/DocumentWriter.h:
157         * loader/SinkDocument.cpp:
158         (WebCore::SinkDocumentParser::appendBytes):
159
160 2011-06-11  Dimitri Glazkov  <dglazkov@chromium.org>
161
162         Unreviewed, rolling out r88569.
163         http://trac.webkit.org/changeset/88569
164         https://bugs.webkit.org/show_bug.cgi?id=62398
165
166         Broke Chromium browser test:
167         IndexedDBBrowserTestWithGCExposed.DatabaseCallbacksTest
168
169         * storage/IDBFactory.idl:
170
171 2011-06-11  Dimitri Glazkov  <dglazkov@chromium.org>
172
173         Unreviewed, rolling out r88565.
174         http://trac.webkit.org/changeset/88565
175         https://bugs.webkit.org/show_bug.cgi?id=62401
176
177         Broke Chromium browser test:
178         IndexedDBBrowserTestWithGCExposed.DatabaseCallbacksTest
179
180         * storage/IDBDatabase.cpp:
181         (WebCore::IDBDatabase::setVersion):
182         * storage/IDBDatabase.idl:
183
184 2011-06-10  Abhishek Arya  <inferno@chromium.org>
185
186         Reviewed by Simon Fraser.
187
188         Null parent element sheet pointers in CSSMutableStyleDeclaration consumers
189         when removed from document, set them when reinserted into document.
190         https://bugs.webkit.org/show_bug.cgi?id=62230
191
192         When a HTMLBodyElement, StyledElement are removed from document,
193         we didn't clear out the parent pointers from their link, style declarations.
194         These parent pointers pointed to the document's element sheet which will
195         get removed when document is getting destroyed. It does make sense to
196         clear out parent pointers when we are getting removed from document and
197         readd them when we get inserted again.
198
199         Tests: fast/dom/body-link-decl-parent-crash.html
200                fast/dom/styled-inline-style-decl-parent-crash.html
201
202         * dom/StyledElement.cpp:
203         (WebCore::StyledElement::insertedIntoDocument):
204         (WebCore::StyledElement::removedFromDocument):
205         * dom/StyledElement.h:
206         * html/HTMLBodyElement.cpp:
207         (WebCore::HTMLBodyElement::parseMappedAttribute):
208         (WebCore::HTMLBodyElement::insertedIntoDocument):
209         (WebCore::HTMLBodyElement::removedFromDocument):
210         (WebCore::HTMLBodyElement::didMoveToNewOwnerDocument):
211         * html/HTMLBodyElement.h:
212
213 2011-06-10  Adam Barth  <abarth@webkit.org>
214
215         Remove bogus ASSERTs.  These ASSERTs used to be correct before I
216         changed DocumentWriter to put the onus for ignoring empty writes onto
217         the parser.
218
219         This patch should stop these test from triggering ASSERTs:
220
221         plugins/plugin-document-back-forward.html
222         plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
223         userscripts/user-script-plugin-document.html
224
225         * html/MediaDocument.cpp:
226         (WebCore::MediaDocumentParser::appendBytes):
227         * html/PluginDocument.cpp:
228         (WebCore::PluginDocumentParser::appendBytes):
229
230 2011-06-09  Jer Noble  <jer.noble@apple.com>
231
232         Reviewed by Darin Adler.
233
234         REGRESSION: End of apple.com video in full-screen mode leads to unusable page.
235         https://bugs.webkit.org/show_bug.cgi?id=62411
236         
237         Test: fullscreen/full-screen-remove-ancestor-after.html
238
239         The placeholder for RenderFullScreen was being created as a non-anonymous object, which led
240         to the document's renderer being set to 0 when the placeholder was removed due to its parent
241         being removed. Setting the placeholder to be anonymous, however, means that it will be
242         coalesced with sibling anonymous blocks, so added the RenderFullScreenPlaceholder to the
243         list of anonymous objects that are not considered anonymous blocks, to avoid the placeholder
244         being so coalesced. To do so, made the placeholder object a true subclass, and add and
245         override its destroy() function to notify the RenderFullScreen object that it has been
246         destroyed.
247
248         * rendering/RenderFullScreen.cpp:
249         (RenderFullScreenPlaceholder::RenderFullScreenPlaceholder): Added.
250         (RenderFullScreenPlaceholder::~RenderFullScreenPlaceholder): Added.
251         (RenderFullScreenPlaceholder::isRenderFullScreenPlaceholder): Added.
252         (RenderFullScreenPlaceholder::destroy): Notify the owner renderer that its placeholder
253             has been destroyed.
254         (RenderFullScreen::destroy): Assert that the m_placeholder ivar is 0 after destroying it.
255         (RenderFullScreen::setPlaceholder): Added.
256         (RenderFullScreen::createPlaceholder): Do not make the placeholder anonymous.
257         * rendering/RenderFullScreen.h:
258         * rendering/RenderObject.h:
259         (WebCore::RenderObject::isRenderFullScreenPlaceholder): Added.
260         (WebCore::RenderObject::isAnonymousBlock): Added the placeholder class to the list of
261             objects which are not anonymous blocks.
262
263 2011-06-10  Gavin Barraclough  <barraclough@apple.com>
264
265         Reviewed by Sam Weinig.
266
267         https://bugs.webkit.org/show_bug.cgi?id=16777
268         Eliminate JSC::NaN and JSC::Inf
269
270         There's no good reason for -K-J-S- JSC to have its own NAN and infinity constants.
271         The ones in std::numeric_limits are perfectly good.
272         Remove JSC::Inf, JSC::NaN, switch some cases of (isnan || isinf) to !isfinite.
273
274         * bindings/js/JSDataViewCustom.cpp:
275         (WebCore::getDataViewMember):
276
277 2011-06-10  James Simonsen  <simonjam@chromium.org>
278
279         Reviewed by Eric Seidel.
280
281         <script> inside <svg> should be executed
282         https://bugs.webkit.org/show_bug.cgi?id=62412
283
284         Tests: svg/in-html/script-external.html
285                svg/in-html/script-nested.html
286                svg/in-html/script-write.html
287                svg/in-html/script.html
288
289         * html/parser/HTMLTreeBuilder.cpp:
290         (WebCore::HTMLTreeBuilder::processEndTag):
291
292 2011-06-10  Adam Barth  <abarth@webkit.org>
293
294         Reviewed by Darin Adler.
295
296         Script-created parsers should ignore data from the network
297         https://bugs.webkit.org/show_bug.cgi?id=62336
298
299         If the network packet boundaries line up just right, we can end up
300         feeding network data to a parser created by document.write (or
301         document.open).  That's incorrect.
302
303         This patch causes DocumentWriter to grab hold of the original parser
304         and direct all input to that parser.
305
306         Test: fast/parser/document-write-ignores-later-network-bytes.html
307
308         * dom/Document.cpp:
309         (WebCore::Document::explicitClose):
310         * loader/DocumentWriter.cpp:
311         (WebCore::DocumentWriter::begin):
312         (WebCore::DocumentWriter::addData):
313         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
314         (WebCore::DocumentWriter::setDocumentWasLoadedAsPartOfNavigation):
315         * loader/DocumentWriter.h:
316
317 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
318
319         Reviewed by Dan Bernstein.
320
321         Keep overlap testing logic until real 3d transforms are being used
322         https://bugs.webkit.org/show_bug.cgi?id=49857
323         
324         For pages that use the translateZ(0) hack to force compositing layers, it's
325         advantageous to keep overlap testing, to avoid putting too many other
326         elements into layers.
327         
328         Only turn off overlap testing if non-identity 3D transforms are used.
329
330         Tests: compositing/layer-creation/rotate3d-overlap.html
331                compositing/layer-creation/translatez-overlap.html
332
333         * rendering/RenderLayerCompositor.cpp:
334         (WebCore::RenderLayerCompositor::updateBacking):
335         (WebCore::RenderLayerCompositor::hasNonIdentity3DTransform):
336         * rendering/RenderLayerCompositor.h:
337
338 2011-06-10  David Levin  <levin@chromium.org>
339
340         Reviewed by Dmitry Titov.
341
342         Web Worker fails to fire error event when a resource fetch fails.
343         https://bugs.webkit.org/show_bug.cgi?id=62475
344
345         Test: http/tests/workers/worker-workerScriptNotThere.html
346
347         * workers/WorkerScriptLoader.cpp:
348         (WebCore::WorkerScriptLoader::didFinishLoading): Ensure that
349         the client is notified of the error when it happens during loading.
350
351 2011-06-10  David Levin  <levin@chromium.org>
352
353         Reviewed by Dmitry Titov.
354
355         Fetching a Worker with url that isn't allowed from a file based test causes DRT to crash.
356         https://bugs.webkit.org/show_bug.cgi?id=62469
357
358         Test: fast/workers/worker-crash-with-invalid-location.html
359
360         * workers/DefaultSharedWorkerRepository.cpp:
361         (WebCore::SharedWorkerScriptLoader::load): Changed to using the RefCounted version of WorkerScriptLoader.
362         * workers/Worker.cpp:
363         (WebCore::Worker::create): Ditto.
364         * workers/Worker.h: Ditto.
365         * workers/WorkerContext.cpp:
366         (WebCore::WorkerContext::importScripts):  Ditto.
367         * workers/WorkerScriptLoader.cpp:
368         (WebCore::WorkerScriptLoader::~WorkerScriptLoader): Created to
369         allow removing some header includes in WorkerScriptLoader.h.
370         (WebCore::WorkerScriptLoader::loadAsynchronously): Fix the ordering
371         of setPendingActivity and keep WorkerScriptLoader alive during a
372         potential callback.
373         * workers/WorkerScriptLoader.h: Made this RefCounted to allow for
374         keeping it alive during callbacks. Also, removed unnecessary header
375         inclusions (and added a destructor to facilitate that).
376         (WebCore::WorkerScriptLoader::create):
377
378 2011-06-10  Alok Priyadarshi  <alokp@chromium.org>
379
380         Reviewed by James Robinson.
381
382         [chromium] Top portion of page is rendered messed up with accelerated drawing
383         https://bugs.webkit.org/show_bug.cgi?id=62484
384
385         Fixed the math in flipping the texture from bottom-up to top-down.
386         Test: compositing/repaint/shrink-layer.html (existing)
387
388         * platform/graphics/chromium/LayerTilerChromium.cpp:
389         (WebCore::LayerTilerChromium::draw):
390
391 2011-06-10  Tony Chang  <tony@chromium.org>
392
393         Reviewed by Ojan Vafai.
394
395         add a compile guard ENABLE(FLEXBOX)
396         https://bugs.webkit.org/show_bug.cgi?id=62049
397
398         * Configurations/FeatureDefines.xcconfig:
399
400 2011-06-10  Sam Weinig  <sam@webkit.org>
401
402         Roll out r88568. It is not the right fix for the problem.
403
404         * loader/appcache/ApplicationCacheHost.cpp:
405         (WebCore::ApplicationCacheHost::isApplicationCacheEnabled):
406
407 2011-06-10  Mark Rowe  <mrowe@apple.com>
408
409         Reviewed by Dimitri Glazkov.
410
411         <rdar://problem/9562114> Fix DumpRenderTree build for production configuration.
412
413         Rename the built WebCoreTestSupport dylib to libWebCoreTestSupport.dylib so
414         that it can be found via the library search path rather than requiring an
415         absolute path be passed to the linker.
416
417         Install the library and its associated header file in a more appropriate location
418         for the production configuration.
419
420         * Configurations/WebCoreTestSupport.xcconfig:
421
422 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
423
424         Reviewed by Dave Hyatt.
425
426         Add a scheduleSetNeedsStyleRecalc() method to ContainerNode for use by RenderLayerCompositor
427         https://bugs.webkit.org/show_bug.cgi?id=62471
428
429         RenderLayerCompositor had some code that did a setNeedsStyleRecalc(), but
430         in a way that was safe to call during existing style recalc or layout.
431         
432         Move this code to ContainerElement so it can be called elsewhere.
433         Also add a param to the node callback so we can pass the style change type.
434
435         * dom/ContainerNode.cpp:
436         (WebCore::ContainerNode::queuePostAttachCallback):
437         (WebCore::ContainerNode::dispatchPostAttachCallbacks):
438         (WebCore::needsStyleRecalcCallback):
439         (WebCore::ContainerNode::scheduleSetNeedsStyleRecalc):
440         * dom/ContainerNode.h:
441         * dom/Node.h:
442         (WebCore::Node::scheduleSetNeedsStyleRecalc):
443         * html/HTMLFormControlElement.cpp:
444         (WebCore::focusPostAttach):
445         (WebCore::updateFromElementCallback):
446         * html/HTMLPlugInImageElement.cpp:
447         (WebCore::HTMLPlugInImageElement::updateWidgetCallback):
448         * html/HTMLPlugInImageElement.h:
449         * rendering/RenderLayerCompositor.cpp:
450         (WebCore::RenderLayerCompositor::attachRootPlatformLayer):
451         (WebCore::RenderLayerCompositor::detachRootPlatformLayer):
452         (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange):
453         * rendering/RenderLayerCompositor.h:
454         * svg/SVGUseElement.cpp:
455         (WebCore::updateFromElementCallback):
456
457 2011-06-10  Mark Pilgrim  <pilgrim@chromium.org>
458
459         Reviewed by Tony Chang.
460
461         IndexedDB: indexedDB.open() name argument is required
462         https://bugs.webkit.org/show_bug.cgi?id=62398
463
464         Test: storage/indexeddb/database-name-undefined.html
465
466         * storage/IDBFactory.idl: use appropriate IDL magic to force undefined values to null, so we handle missing arguments as well as null arguments
467
468 2011-06-10  Sam Weinig  <sam@webkit.org>
469
470         Reviewed by Beth Dakin.
471
472         Common crash in ApplicationCacheHost::isApplicationCacheEnabled
473         <rdar://problem/9328684>
474
475         * loader/appcache/ApplicationCacheHost.cpp:
476         (WebCore::ApplicationCacheHost::isApplicationCacheEnabled):
477         Speculative fix for a null frame on ApplicationCacheHost's DocumentLoader.
478
479 2011-06-10  Adam Barth  <abarth@webkit.org>
480
481         Reviewed by Eric Seidel.
482
483         Remove Document::finishParsing
484         https://bugs.webkit.org/show_bug.cgi?id=62474
485
486         This function appears to exist only to confuse and befuddle us.  This
487         patch prepares for DocumentWriter to grab hold of the parser.
488
489         This patch removes one of the print statements from
490         INSTRUMENT_LAYOUT_SCHEDULING, but I'm not sure
491         INSTRUMENT_LAYOUT_SCHEDULING works anymore anyway.
492
493         * dom/Document.cpp:
494         * dom/Document.h:
495         * dom/XMLDocumentParser.cpp:
496         (WebCore::XMLDocumentParser::finish):
497         * html/parser/HTMLDocumentParser.cpp:
498         (WebCore::HTMLDocumentParser::finish):
499         * loader/DocumentWriter.cpp:
500         (WebCore::DocumentWriter::addData):
501         (WebCore::DocumentWriter::endIfNotLoadingMainResource):
502         * loader/FrameLoader.cpp:
503         (WebCore::FrameLoader::stop):
504
505 2011-06-10  Mark Pilgrim  <pilgrim@chromium.org>
506
507         Reviewed by Tony Chang.
508
509         IndexedDB: setVersion() version argument is required
510         https://bugs.webkit.org/show_bug.cgi?id=62401
511
512         Test: storage/indexeddb/setVersion-undefined.html
513
514         * storage/IDBDatabase.cpp:
515         (WebCore::IDBDatabase::setVersion): check for null version
516         * storage/IDBDatabase.idl: add IDL magic to force undefined to null so we can handle both missing and null arguments
517
518 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
519
520         Reviewed by Dan Bernstein.
521
522         Null-check the layer owner again when painting layers
523         https://bugs.webkit.org/show_bug.cgi?id=62473
524
525         Speculative fix for a crash that occurs when the layer's owner
526         gets destroyed during painting.
527
528         * platform/graphics/mac/WebLayer.mm:
529         (drawLayerContents):
530
531 2011-06-08  Robert Hogan  <robert@webkit.org>
532
533         Reviewed by Andreas Kling.
534
535         [Qt] Lighten the --no-svg build a little
536         https://bugs.webkit.org/show_bug.cgi?id=62314
537
538         Only generate source from SVG*.idl if the build is svg-enabled.
539
540         * CodeGenerators.pri:
541
542 2011-06-10  Nikolas Zimmermann  <nzimmermann@rim.com>
543
544         Reviewed by Rob Buis.
545
546         Integrate SVG Fonts within GlyphPage concept, removing the special SVG code paths from Font, making it possible to reuse the simple text code path for SVG Fonts
547         https://bugs.webkit.org/show_bug.cgi?id=59085
548
549         Add glyph table to SVGFontElement mapping between SVGGlyph <-> Glyph
550         https://bugs.webkit.org/show_bug.cgi?id=62441
551
552         Preparation patch 1: Introduce the internal glyph table in SVGGlyphMap that will be used to identify each
553         SVGGlyph identifier with a Glyph (which is just an ushort). It will be used by follow-up patches.
554
555         Doesn't affect any test so far.
556
557         * platform/graphics/SVGGlyph.h:
558         (WebCore::SVGGlyph::SVGGlyph):
559         (WebCore::SVGGlyph::operator==):
560         * rendering/svg/SVGTextRunRenderingContext.cpp:
561         (WebCore::SVGTextRunWalker::walk):
562         * svg/SVGFontData.cpp:
563         (WebCore::SVGFontData::initializeFontData):
564         * svg/SVGFontElement.cpp:
565         (WebCore::SVGFontElement::SVGFontElement):
566         (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
567         (WebCore::SVGFontElement::ensureGlyphCache):
568         (WebCore::kerningForPairOfStringsAndGlyphs):
569         (WebCore::SVGFontElement::horizontalKerningForPairOfStringsAndGlyphs):
570         (WebCore::SVGFontElement::verticalKerningForPairOfStringsAndGlyphs):
571         (WebCore::SVGFontElement::collectGlyphsForString):
572         (WebCore::SVGFontElement::collectGlyphsForGlyphName):
573         (WebCore::SVGFontElement::svgGlyphForGlyph):
574         (WebCore::SVGFontElement::missingGlyph):
575         * svg/SVGFontElement.h:
576         (WebCore::SVGKerningPair::SVGKerningPair):
577         * svg/SVGGlyphMap.h:
578         (WebCore::SVGGlyphMap::addGlyphByUnicodeString):
579         (WebCore::SVGGlyphMap::addGlyphByName):
580         (WebCore::SVGGlyphMap::appendToGlyphTable):
581         (WebCore::SVGGlyphMap::collectGlyphsForString):
582         (WebCore::SVGGlyphMap::clear):
583         (WebCore::SVGGlyphMap::svgGlyphForGlyph):
584         (WebCore::SVGGlyphMap::glyphIdentifierForGlyphName):
585
586 2011-06-10  Emil A Eklund  <eae@chromium.org>
587
588         Reviewed by Eric Seidel.
589
590         Regression r85573: Blank pages appear at the end of some wikipedia documents.
591         https://bugs.webkit.org/show_bug.cgi?id=62343
592
593         Fix regression caused by r85573. Cached document size not updated after layout.
594
595         Test: printing/page-count-relayout-shrink.html
596
597         * page/FrameView.cpp:
598         (WebCore::FrameView::forceLayoutForPagination):
599
600 2011-06-10  Rob Buis  <rbuis@rim.com>
601
602         Reviewed by Nikolas Zimmermann.
603
604         amation event handling broken: focusin
605         https://bugs.webkit.org/show_bug.cgi?id=12894
606
607         focusin, focusout, activate not implemented in SVG
608         https://bugs.webkit.org/show_bug.cgi?id=40545
609
610         Make elements that should support GraphicalEventAttribute handle focussing, since focusin, focusout is part of that:
611
612         http://www.w3.org/TR/SVG11/intro.html#TermGraphicalEventAttribute
613
614         Match Opera behaviour ; elements that support GraphicalEventAttribute can receive visual mouse focus when having either a focusin or focusout event handler. Elements that support GraphicalEventAttribute can receive visual keyboard focus when having either a focusin or focusout event handler. Keyboard focus does not advance to SVG elements that are not focusable at the time.
615
616         Tests: svg/custom/focus-event-handling-keyboard.xhtml
617                svg/custom/focus-event-handling.xhtml
618
619         * rendering/svg/SVGRenderSupport.cpp:
620         (WebCore::SVGRenderSupport::computeRectForRepaint):
621         * svg/SVGCircleElement.h:
622         (WebCore::SVGCircleElement::supportsFocus):
623         * svg/SVGEllipseElement.h:
624         (WebCore::SVGEllipseElement::supportsFocus):
625         * svg/SVGGElement.h:
626         (WebCore::SVGGElement::supportsFocus):
627         * svg/SVGImageElement.h:
628         (WebCore::SVGImageElement::supportsFocus):
629         * svg/SVGLineElement.h:
630         (WebCore::SVGLineElement::supportsFocus):
631         * svg/SVGPathElement.h:
632         (WebCore::SVGPathElement::supportsFocus):
633         * svg/SVGPolyElement.h:
634         (WebCore::SVGPolyElement::supportsFocus):
635         * svg/SVGRectElement.h:
636         (WebCore::SVGRectElement::supportsFocus):
637         * svg/SVGSVGElement.h:
638         (WebCore::SVGSVGElement::supportsFocus):
639         * svg/SVGStyledElement.cpp:
640         (WebCore::SVGStyledElement::isMouseFocusable):
641         (WebCore::SVGStyledElement::isKeyboardFocusable):
642         * svg/SVGStyledElement.h:
643         * svg/SVGSwitchElement.h:
644         (WebCore::SVGSwitchElement::supportsFocus):
645         * svg/SVGSymbolElement.h:
646         (WebCore::SVGSymbolElement::supportsFocus):
647         * svg/SVGTextElement.h:
648         (WebCore::SVGTextElement::supportsFocus):
649         * svg/SVGUseElement.h:
650         (WebCore::SVGUseElement::supportsFocus):
651
652 2011-06-10  Luke Macpherson   <macpherson@chromium.org>
653
654         Reviewed by Eric Seidel.
655
656         Clean up CSSPrimitiveValue::computeLength*
657         https://bugs.webkit.org/show_bug.cgi?id=61612
658
659         No new tests as no functionality changed.
660
661         * css/CSSGradientValue.cpp:
662         Use new computeLength functions.
663         * css/CSSPrimitiveValue.cpp:
664         (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
665         Reduce to a single function using default parameter values.
666         (WebCore::CSSPrimitiveValue::computeLength):
667         Redefine existing functions with separate names as a single function using templated function specialization.
668         * css/CSSPrimitiveValue.h:
669         Prototypes for computeLengthIntForLength and computeLength.
670         * css/CSSStyleApplyProperty.cpp:
671         Use new computeLength functions.
672         * css/CSSStyleSelector.cpp:
673         Use new computeLength functions.
674         * css/MediaQueryEvaluator.cpp:
675         Use new computeLength functions.
676         * css/SVGCSSStyleSelector.cpp:
677         Use new computeLength functions.
678
679 2011-06-10  Simon Fraser  <simon.fraser@apple.com>
680
681         Reviewed by Beth Dakin.
682
683         Add utility to RenderLayer to determine if the layer is scrollable
684         https://bugs.webkit.org/show_bug.cgi?id=62467
685
686         New method that returns true if either scrollbar is present and enabled.
687         Not called anywhere yet.
688
689         * rendering/RenderLayer.cpp:
690         (WebCore::RenderLayer::allowsScrolling):
691         * rendering/RenderLayer.h:
692
693 2011-06-10  Dimitri Glazkov  <dglazkov@chromium.org>
694
695         Reviewed by Tony Chang.
696
697         REGRESSION (r88332): prototype-inheritance-2 ASSERTS attempting to enumerate spellCheckRanges
698         https://bugs.webkit.org/show_bug.cgi?id=62460
699
700         Test: fast/dom/prototype-inheritance-2.html
701
702         * dom/DocumentMarkerController.cpp:
703         (WebCore::DocumentMarkerController::userSpellingMarkersForNode): Added an extra 0-check.
704
705 2011-06-10  James Simonsen  <simonjam@chromium.org>
706
707         Reviewed by Tony Gentilcore.
708
709         Don't execute scripts in shadow SVG.
710         https://bugs.webkit.org/show_bug.cgi?id=62225
711
712         Test: svg/dom/use-style-recalc-script-execute-crash.html
713
714         * dom/ScriptElement.cpp:
715         (WebCore::ScriptElement::prepareScript):
716
717 2011-06-10  Konstantin Tokarev  <ktokarev@smartlabs.tv>
718
719         Reviewed by Joseph Pecoraro.
720
721         Fixed build with enabled workers and disabled inspector
722         https://bugs.webkit.org/show_bug.cgi?id=62461
723
724         * inspector/InspectorWorkerAgent.cpp: Added inspector guard
725
726 2011-06-10  Darin Adler  <darin@apple.com>
727
728         Reviewed by Eric Carlson.
729
730         REGRESSION: Fullscreen video controller can't be dragged
731         https://bugs.webkit.org/show_bug.cgi?id=62462
732
733         No regression test because we don't have machinery for testing the fullscreen
734         mode. We may find a way to add this in the future.
735
736         * html/shadow/MediaControlElements.cpp:
737         (WebCore::MediaControlPanelElement::MediaControlPanelElement): Initialize new
738         booleans related to dragging.
739         (WebCore::MediaControlPanelElement::startDrag): Added. Starts drag if dragging
740         is allowed and a drag isn't already in progress.
741         (WebCore::MediaControlPanelElement::continueDrag): Added. Moves the window if
742         dragging is already in progress.
743         (WebCore::MediaControlPanelElement::endDrag): Added. Ends the capture that is
744         done during the dragging process.
745         (WebCore::MediaControlPanelElement::setPosition): Added. Positions the panel
746         using explicit top/left.
747         (WebCore::MediaControlPanelElement::resetPosition): Added. Removes the positioning
748         done by setPosition.
749         (WebCore::MediaControlPanelElement::defaultEventHandler): Added. Calls startDrag,
750         continueDrag, and endDrag in response to mouse events.
751         (WebCore::MediaControlPanelElement::setCanBeDragged): Added.
752         * html/shadow/MediaControlElements.h: Added new function and data members
753         as mentioned above.
754
755         * html/shadow/MediaControlRootElement.cpp:
756         (WebCore::MediaControlRootElement::enteredFullscreen): Call setCanBeDragged(true)
757         so you can drag the panel while in fullscreen.
758         (WebCore::MediaControlRootElement::exitedFullscreen): Call setCanBeDragged(false)
759         so you can't drag the panel while not in fullscreen. Also call resetPosition so
760         position changes from dragging don't affect the panel in other contexts.
761
762 2011-06-10  Darin Adler  <darin@apple.com>
763
764         Reviewed by Eric Carlson.
765
766         REGRESSION: Full screen video HUD is positioned too low for standalone video documents
767         https://bugs.webkit.org/show_bug.cgi?id=62463
768
769         No test because we don't currently have machinery for testing fullscreen.
770
771         * css/fullscreen.css: Removed rule that said bottom: 0px for the control panel
772         for full page media in full screen mode. This is not needed because the control
773         panel for full screen mode already has style rules to set its vertical position.
774         (:-webkit-full-screen-ancestor:not(iframe)): Fixed typo where it said
775         -webkit-tranform. This will fix a potential problem where fullscreen would
776         malfunction on a page that had a media element inside a transform.
777
778 2011-06-10  Sergio Villar Senin  <svillar@igalia.com>
779
780         Reviewed by Gustavo Noronha Silva.
781
782         [GTK] Add support for non-ASCII filenames in Content-Disposition header
783         https://bugs.webkit.org/show_bug.cgi?id=62454
784
785         Try latin1 as fallback for header parameter values as some servers
786         do not follow RFC 2045 for example with filename parameter in
787         Content-Disposition.
788
789         No new tests required as no functionality changed.
790
791         * platform/network/soup/ResourceResponseSoup.cpp:
792         (WebCore::ResourceResponse::updateFromSoupMessage):
793
794 2011-06-10  No'am Rosenthal  <noam.rosenthal@nokia.com> and Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
795
796         Reviewed by Kenneth Rohde Christiansen.
797
798         Add layer factory to GraphicsLayer for creating non-default layer type.
799         https://bugs.webkit.org/show_bug.cgi?id=61925
800
801         Added a static factory protected member to GraphicsLayer, which should be accessed from
802         a port-specific implementation of GraphicsLayer::create. For now this is enabled for Qt only.
803
804         This is needed for accelerated compositing across processes in WebKit2, since WebCore
805         doesn't know in compile time whether it's in WebKit or WebKit2, which makes having two
806         different implementations of GraphicsLayer coexist impossible without some runtime
807         factory that can be overridden by the web process.
808
809         Note that the use of the factory would be optional, and the port-specific GraphicsLayer::create
810         would have to explicitly call it, in order to be unintrusive with current implementations.
811
812         No new functionality, so no new tests.
813
814         * platform/graphics/GraphicsLayer.cpp:
815         (WebCore::GraphicsLayer::setGraphicsLayerFactory):
816         * platform/graphics/GraphicsLayer.h:
817
818 2011-06-10  Lucas De Marchi  <lucas.demarchi@profusion.mobi>
819
820         Reviewed by Kenneth Rohde Christiansen.
821
822         [CMAKE] Add generic support for building with WebGL
823         https://bugs.webkit.org/show_bug.cgi?id=62376
824
825         Set new THIRDPARTY_DIR variable to compile sources under ThirdParty.
826
827         No change in functionality so no new tests.
828
829         * CMakeLists.txt:
830
831 2011-06-10  Ryuan Choi  <ryuan.choi@samsung.com>
832
833         Reviewed by Andreas Kling.
834
835         [GTK][EFL] m_imageInterpolationQuality is not initialized in PlatformContextCairo::PlatformContextCairo.
836         https://bugs.webkit.org/show_bug.cgi?id=62435
837
838         No new tests required as just fixed warning.
839
840         * platform/graphics/cairo/PlatformContextCairo.cpp:
841         (WebCore::PlatformContextCairo::PlatformContextCairo):
842
843 2011-06-11-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
844
845         Reviewed by Yury Semikhatsky.
846
847         Web Inspector: protocol: json: Whitespace can be inserted between any pair of tokens.
848         https://bugs.webkit.org/show_bug.cgi?id=62377
849
850         * inspector/InspectorValues.cpp:
851
852 2011-06-10  Sheriff Bot  <webkit.review.bot@gmail.com>
853
854         Unreviewed, rolling out r88530.
855         http://trac.webkit.org/changeset/88530
856         https://bugs.webkit.org/show_bug.cgi?id=62440
857
858         qt build was broken (Requested by loislo on #webkit).
859
860         * inspector/InspectorValues.cpp:
861
862 2011-06-09  Ilya Tikhonovsky  <loislo@chromium.org>
863
864         Reviewed by Yury Semikhatsky.
865
866         Web Inspector: protocol: json: Whitespace can be inserted between any pair of tokens.
867         https://bugs.webkit.org/show_bug.cgi?id=62377
868
869         * inspector/InspectorValues.cpp:
870
871 2011-06-09  Jer Noble  <jer.noble@apple.com>
872
873         Reviewed by Darin Adler.
874
875         REGRESSION: Vertical scroll bar appears when taking videos into full screen at jerryseinfeld.com
876         https://bugs.webkit.org/show_bug.cgi?id=62402
877
878         Sites are able to override the "overflow:hidden" rule for root full-screen nodes
879         simply by adding a "html {}" rule.  Make this rule !important, and also make it apply
880         to root nodes who are merely ancestors of full-screen elements, to cover the case of
881         a root node containing an <iframe> whose contents have gone full-screen.
882
883         * css/fullscreen.css:
884         (:root:-webkit-full-screen-document:not(:-webkit-full-screen),
885             :root:-webkit-full-screen-ancestor): Apply the overflow rule to root elements
886             who are full-screen ancestors, and make them !important.
887
888 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
889
890         Reviewed by Eric Seidel.
891
892         Rename RenderStyle visuallyOrdered property and use an enum instead of a bool.
893         https://bugs.webkit.org/show_bug.cgi?id=61495
894
895         No new tests required as no functionality changed.
896
897         * css/CSSPrimitiveValueMappings.h:
898         Support cast to/from Order
899         * css/CSSStyleSelector.cpp:
900         (WebCore::CSSStyleSelector::styleForDocument):
901         Convert from bool to enum type.
902         (WebCore::CSSStyleSelector::applyProperty):
903         Convert to macro that uses the cast defined in CSSPrimitiveValueMappings.
904         * dom/Document.cpp:
905         (WebCore::Document::setVisuallyOrdered):
906         Change call to RenderStyle::setRTLOrdering using enum parameter.
907         * rendering/style/RenderStyle.h:
908         rename visuallyOrdered proerties rtlOrdering and use appropriate enum types.
909         * rendering/style/RenderStyleConstants.h:
910         Define enum type.
911
912 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
913
914         Reviewed by Eric Seidel.
915
916         Implement CSSPropertyOutlineStyle handler in CSSStyleApplyProperty
917         https://bugs.webkit.org/show_bug.cgi?id=61601
918
919         No new tests. No new functionality added / covered by existing tests.
920
921         * css/CSSPrimitiveValueMappings.h:
922         (WebCore::CSSPrimitiveValue::operator EBorderStyle):
923         Support CSSValueAuto as required by outline-style property.
924         (WebCore::CSSPrimitiveValue::operator OutlineIsAuto):
925         Add cast to new OutlineIsAuto enum.
926         * css/CSSStyleApplyProperty.cpp:
927         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
928         Initialize handler for CSSPropertyOutlineStyle.
929         * css/CSSStyleSelector.cpp:
930         (WebCore::CSSStyleSelector::applyProperty):
931         Remove old handler for CSSPropertyOutlineStyle.
932         * rendering/style/OutlineValue.h:
933         Use new OutlineIsAuto enum instead of bool.
934         * rendering/style/RenderStyle.h:
935         Split existing two-parameter setter setOutlineStyle into separate setters for style and auto properties.
936         Use new OutlineIsAuto enum type.
937         * rendering/style/RenderStyleConstants.h:
938         Define new enum OutlineIsAuto.
939
940 2011-06-09  Luke Macpherson   <macpherson@chromium.org>
941
942         Reviewed by Eric Seidel.
943
944         Code cleanup - add wrappers for function pointer dereferences to improve readability in ApplyPropertyDefaultBase and derived classes.
945         https://bugs.webkit.org/show_bug.cgi?id=62418
946
947         No new tests / cleanup only.
948
949         * css/CSSStyleApplyProperty.cpp:
950         (WebCore::ApplyPropertyDefaultBase::applyInheritValue):
951         Use new wrapper functions.
952         (WebCore::ApplyPropertyDefaultBase::applyInitialValue):
953         Use new wrapper functions.
954         (WebCore::ApplyPropertyDefaultBase::setValue):
955         Wrapper for calling m_setter function pointer.
956         (WebCore::ApplyPropertyDefaultBase::value):
957         Wrapper for calling m_getter function pointer.
958         (WebCore::ApplyPropertyDefaultBase::initial):
959         Wrapper for calling m_initial function pointer.
960         (WebCore::ApplyPropertyDefault::applyValue):
961         Use new setValue function.
962         (WebCore::ApplyPropertyLength::applyValue):
963         Use new setValue function.
964         (WebCore::ApplyPropertyWidth::applyValue):
965         Use new setValue function.
966
967 2011-06-09  Hyowon Kim  <hw1008.kim@samsung.com>
968
969         Reviewed by Antonio Gomes.
970
971         [EFL] Make accelerated compositing build in Webkit-EFL
972         https://bugs.webkit.org/show_bug.cgi?id=62361
973
974         Add a new class, GraphicsLayerEfl - not yet implemented.
975         Add ACCELERATED_COMPOSITING related files to CMakeLists.
976
977         * CMakeLists.txt:
978         * CMakeListsEfl.txt:
979         * platform/graphics/efl/GraphicsLayerEfl.cpp: Added.
980         (WebCore::GraphicsLayer::create):
981         (WebCore::GraphicsLayerEfl::GraphicsLayerEfl):
982         (WebCore::GraphicsLayerEfl::~GraphicsLayerEfl):
983         (WebCore::GraphicsLayerEfl::setNeedsDisplay):
984         (WebCore::GraphicsLayerEfl::setNeedsDisplayInRect):
985         * platform/graphics/efl/GraphicsLayerEfl.h: Added.
986
987 2011-06-09  Jian Li  <jianli@chromium.org>
988
989         Reviewed by David Levin.
990
991         Calling WebKitBlobBuilder.append with null argument should not crash
992         https://bugs.webkit.org/show_bug.cgi?id=62419
993
994         Test: fast/files/blob-builder-crash.html
995
996         * fileapi/WebKitBlobBuilder.cpp:
997         (WebCore::WebKitBlobBuilder::append):
998
999 2011-06-09  Jer Noble  <jer.noble@apple.com>
1000
1001         Reviewed by David Hyatt.
1002
1003         Roll out r88468, and fix bug #61911 without making Element::offset functions virtual.
1004         https://bugs.webkit.org/show_bug.cgi?id=62400
1005
1006         No new tests; covered by existing fullscreen/full-screen-video-offset.html test.
1007
1008         * rendering/RenderVideo.cpp:
1009         (WebCore::rendererPlaceholder): Added; returns the placeholder block, if it exists.
1010         (WebCore::RenderVideo::offsetLeft): Pass the offset request to the placeholder block.
1011         (WebCore::RenderVideo::offsetTop): Ditto.
1012         (WebCore::RenderVideo::offsetWidth): Ditto.
1013         (WebCore::RenderVideo::offsetHeight): Ditto.
1014         * rendering/RenderVideo.h: Added virtual overrides for the offset functions.
1015
1016 2011-06-09  James Robinson  <jamesr@chromium.org>
1017
1018         Reviewed by Kenneth Russell.
1019
1020         [chromium] Scissor rect not set for clipping layers set offscreen
1021         https://bugs.webkit.org/show_bug.cgi?id=62339
1022
1023         We set a scissorRect on each layer, but only layers with masksToBounds and their descendants should actually set
1024         a scissor.  Layers that didn't need to scissor had empty scissorRects.  Unfortunately layers with masksToBounds
1025         and their descendants that are scrolled offscreen also end up with an empty clipped scissor rect.
1026
1027         This patch sets an explicit bit on each layer that should scissor and then checks that bit instead of checking
1028         for an empty scissor rect at draw time.  RenderSurfaceChromiums have different requirements for
1029         setScissorToRect, so the old behavior is still available with a flag.  This can probably be cleaned up more.
1030
1031         Test: platform/chromium/compositing/scissor-out-of-viewport.html
1032
1033         * platform/graphics/chromium/LayerRendererChromium.cpp:
1034         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1035         (WebCore::LayerRendererChromium::drawLayer):
1036         (WebCore::LayerRendererChromium::setScissorToRect):
1037         * platform/graphics/chromium/LayerRendererChromium.h:
1038         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
1039         (WebCore::RenderSurfaceChromium::draw):
1040         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
1041         (WebCore::CCLayerImpl::CCLayerImpl):
1042         * platform/graphics/chromium/cc/CCLayerImpl.h:
1043         (WebCore::CCLayerImpl::setUsesLayerScissor):
1044         (WebCore::CCLayerImpl::usesLayerScissor):
1045
1046 2011-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1047
1048         Unreviewed, rolling out r88468.
1049         http://trac.webkit.org/changeset/88468
1050         https://bugs.webkit.org/show_bug.cgi?id=62408
1051
1052         It broke build if !ENABLE(FULLSCREEN_API) (Requested by Ossy
1053         on #webkit).
1054
1055         * dom/Element.cpp:
1056         (WebCore::adjustForLocalZoom):
1057         * dom/Element.h:
1058         * html/HTMLMediaElement.cpp:
1059         * html/HTMLMediaElement.h:
1060
1061 2011-06-09  Kenneth Russell  <kbr@google.com>
1062
1063         Reviewed by Adam Barth.
1064
1065         Disallow use of cross-domain media (images, video) in WebGL
1066         https://bugs.webkit.org/show_bug.cgi?id=62257
1067
1068         Updated WebGL implementation to track recent spec updates in this area.
1069
1070         Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
1071                http/tests/security/webgl-remote-read-remote-image-allowed.html
1072                http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
1073
1074         * html/canvas/CanvasRenderingContext.cpp:
1075         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
1076         (WebCore::CanvasRenderingContext::checkOrigin):
1077         * html/canvas/CanvasRenderingContext.h:
1078         (WebCore::CanvasRenderingContext::checkOrigin):
1079         * html/canvas/WebGLRenderingContext.cpp:
1080         (WebCore::WebGLRenderingContext::readPixels):
1081         (WebCore::WebGLRenderingContext::texImage2D):
1082         (WebCore::WebGLRenderingContext::videoFrameToImage):
1083         (WebCore::WebGLRenderingContext::texSubImage2D):
1084         * html/canvas/WebGLRenderingContext.h:
1085
1086 2011-06-09  Adam Barth  <abarth@webkit.org>
1087
1088         Reviewed by Eric Seidel.
1089
1090         Add an ASSERT to HTMLTreeBuilder
1091         https://bugs.webkit.org/show_bug.cgi?id=62403
1092
1093         This ASSERT was useful in investigating a re-entrancy bug.  We should
1094         keep it.
1095
1096         * html/parser/HTMLTreeBuilder.cpp:
1097         (WebCore::HTMLTreeBuilder::processEndOfFile):
1098
1099 2011-06-09  Dan Bernstein  <mitz@apple.com>
1100
1101         Reviewed by Darin Adler.
1102
1103         Fix a regression from r88478.
1104
1105         * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
1106         (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Add the runs
1107         in reverse order in the RTL case here, since the whole vector is reversed by collectComplexTextRuns()
1108         afterwards.
1109
1110 2011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
1111
1112         Reviewed by Antti Koivisto.
1113
1114         REGRESSION(84329): Stylesheets on some pages do not load
1115         https://bugs.webkit.org/show_bug.cgi?id=61400
1116
1117         Test: fast/css/link-disabled-attr.html
1118
1119         Fixed r84329: the change did not take into account the fact
1120         that HTMLLinkElement did already contain the disabled information
1121         and the 2 information were not linked as they should have!
1122
1123         The new logic pushes the information to the stylesheet as this
1124         is what the spec mandates and what FF is doing. Also it keeps
1125         one bit of information (that JS enabled the stylesheet) as it
1126         is needed for the recalcStyleSelector logic.
1127
1128         * dom/Document.cpp:
1129         (WebCore::Document::recalcStyleSelector): s/isDisabled/disabled.
1130
1131         * html/HTMLLinkElement.cpp:
1132         (WebCore::HTMLLinkElement::HTMLLinkElement): Removed m_disabledState,
1133         replaced by m_isEnabledViaScript.
1134         (WebCore::HTMLLinkElement::setDisabled): Updated the logic after
1135         m_disabledState removal. It also matches the spec by forwarding
1136         the disabled state to our stylesheet if we have one.
1137         (WebCore::HTMLLinkElement::parseMappedAttribute): Removed harmful
1138         handling of the disabledAttr.
1139         (WebCore::HTMLLinkElement::process): Updated after m_disabledState removal.
1140         * html/HTMLLinkElement.h:
1141         (WebCore::HTMLLinkElement::isEnabledViaScript): Ditto.
1142         (WebCore::HTMLLinkElement::isAlternate): Ditto.
1143
1144 2011-06-09  Dan Bernstein  <mitz@apple.com>
1145
1146         Reviewed by Darin Adler.
1147
1148         Simplify ComplexTextController::collectComplexTextRuns()
1149         https://bugs.webkit.org/show_bug.cgi?id=62387
1150
1151         No new test, since functionality is unchanged.
1152
1153         * platform/graphics/mac/ComplexTextController.cpp:
1154         (WebCore::ComplexTextController::collectComplexTextRuns): Always iterate characters in logical order,
1155         then reverse the run vector for RTL.
1156
1157 2011-06-09  Dimitri Glazkov  <dglazkov@chromium.org>
1158
1159         Reviewed by Kent Tamura.
1160
1161         Fold isShadowBoundary into isShadowRoot.
1162         https://bugs.webkit.org/show_bug.cgi?id=62317
1163
1164         Since there are no longer cases where Node::isShadowBoundary() != Node::isShadowRoot, we can remove this function.
1165
1166         In one case where isShadowBoundary was also tested to find ShadowContentElemnt, added a new isContentElement function.
1167
1168         Refactoring, covered by existing tests.
1169
1170         * css/CSSStyleSelector.cpp:
1171         (WebCore::isAtShadowBoundary): Changed to use isShadowRoot.
1172         * dom/Element.cpp:
1173         (WebCore::Element::isSpellCheckingEnabled): Ditto.
1174         * dom/Node.cpp:
1175         (WebCore::Node::nonBoundaryShadowTreeRootNode): Ditto.
1176         (WebCore::Node::nonShadowBoundaryParentNode): Ditto.
1177         * dom/Node.h:
1178         (WebCore::Node::isContentElement): Added.
1179         * dom/NodeRenderingContext.cpp:
1180         (WebCore::NodeRenderingContext::NodeRenderingContext): Changed to use isShadowRoot.
1181         * dom/Position.cpp:
1182         (WebCore::Position::Position): Ditto.
1183         * dom/ShadowContentElement.h:
1184         (WebCore::ShadowContentElement::isContentElement): Added.
1185         * dom/ShadowRoot.cpp:
1186         (WebCore::ShadowRoot::hasContentElement): Changed to use isContentElement.
1187         * editing/CompositeEditCommand.cpp:
1188         (WebCore::CompositeEditCommand::insertNodeAfter): Changed to use isShadowRoot.
1189         * editing/htmlediting.cpp:
1190         (WebCore::visiblePositionBeforeNode): Ditto.
1191         (WebCore::visiblePositionAfterNode): Ditto.
1192         * page/DragController.cpp:
1193         (WebCore::asFileInput): Ditto.
1194         * rendering/RenderTreeAsText.cpp:
1195         (WebCore::nodePosition): Ditto.
1196
1197 2011-06-09  Simon Fraser  <simon.fraser@apple.com>
1198
1199         Reviewed by Darin Adler.
1200
1201         Crashes in RenderLayerBacking::paintingGoesToWindow
1202         https://bugs.webkit.org/show_bug.cgi?id=61159
1203
1204         Speculative fix for unreproducible crash that can occur when RenderObject::repaintUsingContainer()
1205         finds a repaintContainer that is not the RenderView, but that is also not
1206         composited (for unknown reasons), by checking to see if the layer is
1207         compositing before using backing(). An assertion remains to try to catch
1208         this in debug builds.
1209
1210         * rendering/RenderLayer.cpp:
1211         (WebCore::RenderLayer::setBackingNeedsRepaintInRect):
1212
1213 2011-06-09  Julien Chaffraix  <jchaffraix@webkit.org>
1214
1215         Reviewed by Darin Adler.
1216
1217         WebCore::WebKitCSSKeyframesRuleInternal::nameAttrSetter() - crash
1218         https://bugs.webkit.org/show_bug.cgi?id=62384
1219
1220         Test: fast/css/webkit-keyframes-crash.html
1221
1222         * css/WebKitCSSKeyframesRule.cpp:
1223         (WebCore::WebKitCSSKeyframesRule::setName): stylesheet() is never garanteed
1224         to return a non-null pointer. Thus null-check here like the rest of the code.
1225
1226 2011-06-09  Julien Chaffraix  <jchaffraix@codeaurora.org>
1227
1228         Reviewed by David Hyatt.
1229
1230         chrome.dll!WebCore::RenderStyle::fontMetrics ReadAV@NULL (two crashes)
1231         https://bugs.webkit.org/show_bug.cgi?id=57756
1232
1233         Tests: fast/css/fontMetric-border-radius-null-crash.html
1234                fast/css/fontMetric-webkit-border-end-width-null-crash.html
1235
1236         * css/CSSStyleSelector.cpp:
1237         (WebCore::CSSStyleSelector::styleForElement): Added a call to Font::update
1238         so that our FontFallbackList is allocated if we ever need it when applying our
1239         style rules.
1240
1241 2011-06-09  Cary Clark  <caryclark@google.com>
1242
1243         Reviewed by Eric Seidel.
1244
1245         Create local CG context for Mac UI elements when Skia is renderer
1246         https://bugs.webkit.org/show_bug.cgi?id=62213
1247
1248         When building Mac Chrome using Skia as the WebKit renderer,
1249         add state to LocalCurrentGraphicsContext to convert the SkCanvas
1250         context passed by WebKit into the CGContext needed by UI
1251         rendering.
1252
1253         No new tests.  The define typo in question is
1254         not yet enabled, so this change has no functional
1255         impact.
1256
1257         * platform/mac/LocalCurrentGraphicsContext.h:
1258         Add SkiaBitLocker to create and release the converted CGContext.
1259         Add ContextContainer, a class for Skia to create and release
1260         the converted CGContext. If Skia is not used, the class has no effect.
1261
1262         * platform/mac/LocalCurrentGraphicsContext.mm:
1263         (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
1264         When building with Skia, create the CGContext before passing it on.
1265
1266         (WebCore::LocalCurrentGraphicsContext::cgContext):
1267         Get the CGContext from the SkiaBitLocker, or the saved context,
1268         as appropriate.
1269
1270         * rendering/RenderThemeMac.mm:
1271         Get the CGContext from Skia conversion or native, as appropriate.
1272         Use the LocalCurrentGraphicsContext if there is one. Otherwise,
1273         add a ContextContainer to house the SkCanvas to CGContext conversion.
1274
1275         (WebCore::RenderThemeMac::paintCapsLockIndicator):
1276         (WebCore::RenderThemeMac::paintProgressBar):
1277         (WebCore::RenderThemeMac::paintMenuListButtonGradients):
1278         (WebCore::RenderThemeMac::paintSliderTrack):
1279         (WebCore::RenderThemeMac::paintMediaFullscreenButton):
1280         (WebCore::RenderThemeMac::paintMediaMuteButton):
1281         (WebCore::RenderThemeMac::paintMediaPlayButton):
1282         (WebCore::RenderThemeMac::paintMediaSeekBackButton):
1283         (WebCore::RenderThemeMac::paintMediaSeekForwardButton):
1284         (WebCore::RenderThemeMac::paintMediaSliderTrack):
1285         (WebCore::RenderThemeMac::paintMediaSliderThumb):
1286         (WebCore::RenderThemeMac::paintMediaRewindButton):
1287         (WebCore::RenderThemeMac::paintMediaReturnToRealtimeButton):
1288         (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton):
1289         (WebCore::RenderThemeMac::paintMediaControlsBackground):
1290         (WebCore::RenderThemeMac::paintMediaCurrentTime):
1291         (WebCore::RenderThemeMac::paintMediaTimeRemaining):
1292         (WebCore::RenderThemeMac::paintMediaVolumeSliderContainer):
1293         (WebCore::RenderThemeMac::paintMediaVolumeSliderTrack):
1294         (WebCore::RenderThemeMac::paintMediaVolumeSliderThumb):
1295
1296 2011-06-02  Jer Noble  <jer.noble@apple.com>
1297
1298         Reviewed by Maciej Stachowiak.
1299
1300         REGRESSION: Page layout messed up after exiting full screen after video ends at jerryseinfeld.com
1301         https://bugs.webkit.org/show_bug.cgi?id=61911
1302         <rdar://problem/9523017>
1303
1304         Test: fullscreen/full-screen-video-offset.html
1305
1306         When the video element is taken full-screen in the new element full-screen API, return the
1307         offset width and height of the placeholder renderer which is filling in for the full-screen
1308         element.  To do so, override offsetWidth, Height, Left, and Top from Element.  These are
1309         non-virtual functions, so make them virtual.
1310
1311         * dom/Element.cpp:
1312         (WebCore::Element::adjustForLocalZoom): Made into a class-static function.
1313         * dom/Element.h: Made offset functions virtual.
1314         * html/HTMLMediaElement.cpp:
1315         (WebCore::elementPlaceholder): Added; utility function.
1316         (WebCore::HTMLMediaElement::offsetLeft): Added; virtual override of the 
1317             Element function. Will be called directly via javascript.
1318         (WebCore::HTMLMediaElement::offsetTop): Ditto.
1319         (WebCore::HTMLMediaElement::offsetWidth): Ditto.
1320         (WebCore::HTMLMediaElement::offsetHeight): Ditto.
1321         * html/HTMLMediaElement.h:
1322
1323 2011-06-09  Dave Tapuska  <dtapuska@rim.com>
1324
1325         Reviewed by Daniel Bates.
1326
1327         PingLoader destructor could dereference 0 if the Resource
1328         Handle creation failed.
1329
1330         https://bugs.webkit.org/show_bug.cgi?id=62304
1331
1332         * loader/PingLoader.cpp:
1333         (WebCore::PingLoader::~PingLoader):
1334
1335 2011-06-08  Abhishek Arya  <inferno@chromium.org>
1336
1337         Reviewed by Ryosuke Niwa.
1338
1339         Make indexForVisiblePosition and isSelectableElement static.
1340         https://bugs.webkit.org/show_bug.cgi?id=62329
1341
1342         This protects us when converting frame->selection->start() or end()
1343         to VisiblePosition which blows away the RenderTextControl from
1344         underneath (due to layout update).
1345
1346         Test: fast/forms/text-control-selection-crash.html
1347
1348         * accessibility/AccessibilityRenderObject.cpp:
1349         (WebCore::AccessibilityRenderObject::indexForVisiblePosition):
1350         * rendering/RenderTextControl.cpp:
1351         (WebCore::RenderTextControl::selectionStart):
1352         (WebCore::RenderTextControl::selectionEnd):
1353         (WebCore::RenderTextControl::isSelectableElement):
1354         (WebCore::RenderTextControl::indexForVisiblePosition):
1355         * rendering/RenderTextControl.h:
1356
1357 2011-06-09  Ben Murdoch  <benm@google.com>
1358
1359         Reviewed by Yury Semikhatsky.
1360
1361         Build break in ScriptProfile.cpp and inspector disabled.
1362         https://bugs.webkit.org/show_bug.cgi?id=62373
1363
1364         No new tests - build fix only.
1365
1366         * bindings/v8/ScriptProfile.cpp: Add necessary guards.
1367         * bindings/v8/ScriptProfile.h: ditto.
1368
1369 2011-06-09  Vsevolod Vlasov  <vsevik@chromium.org>
1370
1371         Reviewed by Yury Semikhatsky.
1372
1373         Web Inspector: Network panel preview tab does not reattach SourceFrame when switching between preview and response tabs.
1374         https://bugs.webkit.org/show_bug.cgi?id=62298
1375
1376         * inspector/front-end/ResourcePreviewView.js:
1377         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
1378         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
1379
1380 2011-06-09  Csaba Osztrogonác  <ossy@webkit.org>
1381
1382         [Qt][Mac] Speculative buildfix after r88286.
1383
1384         * platform/graphics/IntPoint.h:
1385
1386 2011-06-09  Mike Lawther  <mikelawther@chromium.org>
1387
1388         Reviewed by Kent Tamura.
1389
1390         Parsing issue with -webkit-calc
1391         https://bugs.webkit.org/show_bug.cgi?id=62276
1392
1393         Set the CSSParserString for the calc functions.
1394
1395         Test: css3/calc/regression-62276.html
1396
1397         * css/CSSParser.cpp:
1398         (WebCore::CSSParser::lex):
1399
1400 2011-06-09  Robert Hogan  <robert@webkit.org>
1401
1402         Reviewed by Andreas Kling.
1403
1404         Teach Qt about window.internals
1405         https://bugs.webkit.org/show_bug.cgi?id=61074
1406
1407         A weakness of the Qt DRT setup is that things like JSContextRef are abstracted
1408         away from the QtWebKit API so we need DumpRenderTreeSupportQt to access WebCore internals.
1409         Since the window.internals object requires JSContextRef we need to implement it in DumpRenderTreeSupportQt
1410         where we can access it. DumpRenderTreeSupportQt cannot be compiled outside Qt's WebCore and as it
1411         is our only possible route into the WebCoreTestSupport class neither can the new window.internals plumbing.
1412         Likewise we can't put the accessor in WebCoreTestSupport because it would then need to know about QWebFrame
1413         and others. The only alternative seems like a compile time guard which we would have to teach the bots about.
1414
1415         * CodeGenerators.pri:
1416         * WebCore.pri:
1417         * WebCore.pro:
1418
1419 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
1420
1421         Reviewed by Pavel Feldman.
1422
1423         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
1424         https://bugs.webkit.org/show_bug.cgi?id=52791
1425
1426         No new tests. The problem can be reproduced by trying to create InspectorValue
1427         from 1.0e-100 and call ->toJSONString() on this.
1428
1429         * inspector/InspectorValues.cpp:
1430         (WebCore::InspectorBasicValue::writeJSON):
1431         Added checking the predicted buffer size and choosing exponential format, or
1432         eventually "NaN" if the buffer is too small for decimal format.
1433
1434 2011-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1435
1436         Unreviewed, rolling out r88387.
1437         http://trac.webkit.org/changeset/88387
1438         https://bugs.webkit.org/show_bug.cgi?id=62368
1439
1440         New tests introduced in 88387 fail on Leopard,GTK,Qt bots
1441         (Requested by Ossy on #webkit).
1442
1443         * html/canvas/CanvasRenderingContext.cpp:
1444         (WebCore::CanvasRenderingContext::checkOrigin):
1445         * html/canvas/CanvasRenderingContext.h:
1446         * html/canvas/WebGLRenderingContext.cpp:
1447         (WebCore::WebGLRenderingContext::readPixels):
1448         (WebCore::WebGLRenderingContext::texImage2D):
1449         (WebCore::WebGLRenderingContext::videoFrameToImage):
1450         (WebCore::WebGLRenderingContext::texSubImage2D):
1451         * html/canvas/WebGLRenderingContext.h:
1452
1453 2011-06-09  Adam Barth  <abarth@webkit.org>
1454
1455         Reviewed by Eric Seidel.
1456
1457         Running script from attach can remove elements from the stack of open elements
1458         https://bugs.webkit.org/show_bug.cgi?id=62160
1459
1460         When the tree build runs script synchronously, that script can remove
1461         arbitrary elements from the stack of open elements.  We need to hold a
1462         reference to |parent| in attach instead of rely upon the reference in
1463         the stack of open elements.
1464
1465         Test: fast/parser/document-write-onload-clear.html
1466
1467         * html/parser/HTMLConstructionSite.cpp:
1468         (WebCore::HTMLConstructionSite::attach):
1469
1470 2011-06-08  Luke Macpherson   <macpherson@chromium.org>
1471
1472         Reviewed by Eric Seidel.
1473
1474         Make CSSPrimitiveValue support cast to EVerticalAlign.
1475         https://bugs.webkit.org/show_bug.cgi?id=62356
1476
1477         No new tests / refactoring only.
1478
1479         * css/CSSPrimitiveValueMappings.h:
1480         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1481         (WebCore::CSSPrimitiveValue::operator EVerticalAlign):
1482         * css/CSSStyleSelector.cpp:
1483         (WebCore::CSSStyleSelector::applyProperty):
1484
1485 2011-06-08  Justin Novosad  <junov@chromium.org>
1486
1487         Reviewed by James Robinson.
1488
1489         [Chromium] Crash when closing a tab with accelerated 2d canvas
1490         https://bugs.webkit.org/show_bug.cgi?id=62324
1491         Upon graphics context destruction, it is important to signal skia
1492         to abandon all of its resource handles.  This prevents a crash caused
1493         by skia attempting to release resources that were in the destroyed
1494         graphics context.
1495
1496         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
1497         (WebCore::SharedGraphicsContext3D::~SharedGraphicsContext3D):
1498
1499 2011-06-08  James Robinson  <jamesr@chromium.org>
1500
1501         Reviewed by Darin Fisher.
1502
1503         REGRESSION(88260): 10-50% performance regression across many page cyclers
1504         https://bugs.webkit.org/show_bug.cgi?id=62349
1505
1506         r88260 fixed a font cache resource leak and lowered the inactive font cache threshold.  The latter caused a
1507         significant performance regression across many chromium page cyclers, for example
1508         http://build.chromium.org/f/chromium/perf/linux-release-webkit-latest/moz/report.html?history=50&rev=88279.
1509
1510         This restores the previous inactive font size thresholds to their previous values, but retains the font cleanup
1511         logic.
1512
1513         * platform/graphics/FontCache.cpp:
1514
1515 2011-06-08  Hayato Ito  <hayato@chromium.org>
1516
1517         Reviewed by Dimitri Glazkov.
1518
1519         A forward/backward tab traversal now visits focusable elements in a shadow root.
1520         https://bugs.webkit.org/show_bug.cgi?id=61410
1521
1522         Test: fast/dom/shadow/tab-order-iframe-and-shadow.html
1523
1524         Like a iframe element, a shadow host becomes a scope of
1525         tabindex. That means all descendant elements in a shadow root are
1526         skipped if the host node of the shadow root is not focusable.
1527
1528         The patch doesn't affect HTMLInputElement and HTMLTextAreaElement,
1529         which uses a shadow root and do extra works in their focus()
1530         method.
1531
1532         A shadow root's <content> is not considered in this patch.
1533         That will be addressed in a following patch.
1534
1535         * page/FocusController.cpp:
1536         (WebCore::shadowRoot):
1537         (WebCore::isTreeScopeOwner):
1538         (WebCore::FocusController::deepFocusableNode):
1539         (WebCore::FocusController::advanceFocusInDocumentOrder):
1540         (WebCore::FocusController::findFocusableNodeAcrossTreeScope):
1541         (WebCore::FocusController::findFocusableNode):
1542         (WebCore::FocusController::nextFocusableNode):
1543         (WebCore::FocusController::previousFocusableNode):
1544         (WebCore::FocusController::ownerOfTreeScope):
1545         * page/FocusController.h:
1546
1547 2011-06-08  Hayato Ito  <hayato@chromium.org>
1548
1549         Reviewed by Hajime Morita.
1550
1551         Makes sure that document.activeElement won't be an element in shadow root.
1552
1553         https://bugs.webkit.org/show_bug.cgi?id=61413
1554
1555         Test: fast/dom/shadow/activeelement-should-be-shadowhost.html
1556
1557         * html/HTMLDocument.cpp:
1558         (WebCore::focusedFrameOwnerElement):
1559         (WebCore::HTMLDocument::activeElement):
1560
1561 2011-06-08  Kent Tamura  <tkent@chromium.org>
1562
1563         Reviewed by Dimitri Glazkov.
1564
1565         Allow drawing a slider thumb for any nodes.
1566         https://bugs.webkit.org/show_bug.cgi?id=62196
1567
1568         RenderObject::node() should provide various information which is
1569         necessary for rendering. We don't need to refer the parent renderer.
1570
1571         * dom/Node.cpp:
1572         (WebCore::Node::focusDe1egate): Added.
1573         * dom/Node.h: Added a declaration.
1574         * html/shadow/MediaControlElements.cpp:
1575         (WebCore::toParentMediaElement):
1576           Added an overload of toParentMediaElement() with Node* parameter.
1577         * html/shadow/MediaControlElements.h:
1578         (WebCore::toParentMediaElement): ditto.
1579         * html/shadow/SliderThumbElement.cpp:
1580         (WebCore::SliderThumbElement::isEnabledFormControl):
1581           Returns the status of the host node.
1582         (WebCore::SliderThumbElement::isReadOnlyFormControl): ditto.
1583         (WebCore::SliderThumbElement::focusDe1egate):
1584           Returns the host node so that RenderTheme::isFocused() returns true.
1585         (WebCore::SliderThumbElement::detach): Style nit.
1586         (WebCore::SliderThumbElement::hostInput):
1587           Make it const because it is called by const functions.
1588         * html/shadow/SliderThumbElement.h:
1589           - Remove inDragMode()
1590           - Update declarations
1591         * platform/qt/RenderThemeQt.cpp:
1592         (WebCore::RenderThemeQt::paintMediaSliderThumb):
1593           Use Node::shadowAncestorNode() instead of RenderObject::parent() to
1594           support deeper thumb nodes.
1595         * rendering/RenderMediaControlsChromium.cpp:
1596         (WebCore::paintMediaSliderThumb): ditto.
1597         (WebCore::paintMediaVolumeSliderThumb): Remove isSlider() check.
1598         * rendering/RenderSlider.cpp:
1599         (WebCore::RenderSlider::inDragMode):
1600           SliderThumbElement::inDragMode() was removed, and Node::active() has
1601           the same information.
1602         * rendering/RenderTheme.cpp:
1603         (WebCore::RenderTheme::paint): Remove isSlider() checks.
1604         (WebCore::RenderTheme::isFocused): Apply Node::focusDelegate().
1605         * rendering/RenderThemeChromiumLinux.cpp:
1606         (WebCore::RenderThemeChromiumLinux::paintSliderThumb):
1607           isPressed() is enough.
1608         * rendering/RenderThemeChromiumWin.cpp:
1609           isEnabled(), isFocused(), and isPressed() are enough.
1610         (WebCore::RenderThemeChromiumWin::determineSliderThumbState):
1611         (WebCore::RenderThemeChromiumWin::determineClassicState):
1612         * rendering/RenderThemeMac.mm:
1613         (WebCore::RenderThemeMac::paintSliderThumb):
1614           - Remove isSlider() check.
1615           - Passing 'o' to udpateFooState functions is enough.
1616           - isPressed() is enough.
1617         * rendering/RenderThemeSafari.cpp:
1618         (WebCore::RenderThemeSafari::paintSliderThumb):
1619           We don't need special handling anymore.
1620         * rendering/RenderThemeWin.cpp:
1621         (WebCore::RenderThemeWin::determineSliderThumbState):
1622           isEnabled(), isFocused(), and isPressed() are enough.
1623
1624 2011-06-08  Adam Barth  <abarth@webkit.org>
1625
1626         Reviewed by Eric Seidel.
1627
1628         constructTreeFromToken can re-enter parser, causing ASSERTs
1629         https://bugs.webkit.org/show_bug.cgi?id=62160
1630
1631         This patch clears the HTMLToken before constructing the tree from the
1632         token, putting the HTMLDocumentParser in a good state to be re-entered.
1633
1634         Tests: fast/parser/document-write-onload-nesting.html
1635                fast/parser/document-write-onload-ordering.html
1636
1637         * html/parser/HTMLDocumentParser.cpp:
1638         (WebCore::HTMLDocumentParser::pumpTokenizer):
1639         * html/parser/HTMLToken.h:
1640         (WebCore::HTMLToken::isUninitialized):
1641         * html/parser/HTMLTreeBuilder.cpp:
1642         (WebCore::HTMLTreeBuilder::constructTreeFromToken):
1643
1644 2011-06-08  Kent Tamura  <tkent@chromium.org>
1645
1646         Fix Qt build for r88405.
1647         https://bugs.webkit.org/show_bug.cgi?id=62208
1648
1649         * platform/qt/RenderThemeQt.h:
1650
1651 2011-06-08  Kent Tamura  <tkent@chromium.org>
1652
1653         Reviewed by Dimitri Glazkov.
1654
1655         Change the argument of RenderTheme::adjustSliderThumbSize(): RenderObject* -> RenderStyle*
1656         https://bugs.webkit.org/show_bug.cgi?id=62208
1657
1658         Change the argument type of RenderTheme::adjustSliderThumbSize() and
1659         RenderMediaControls::adjustMediaSliderThumbSize() from RenderObject* to RenderStyle*.
1660
1661         Also, each of adjustSliderThumbStyle() overrides calls RenderTheme::
1662         adjustSliderThumbStyle() for future changes.
1663
1664         No new tests. This is a refactoring and should not change any behavior.
1665
1666         * html/shadow/SliderThumbElement.cpp:
1667         (WebCore::RenderSliderThumb::layout): Passing RenderStyle* and remove a FIXME comment.
1668         * platform/efl/RenderThemeEfl.cpp:
1669         (WebCore::RenderThemeEfl::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
1670         * platform/gtk/RenderThemeGtk.cpp:
1671         (WebCore::RenderThemeGtk::adjustSliderThumbStyle): ditto.
1672         (WebCore::RenderThemeGtk::adjustMediaSliderThumbSize):
1673         * platform/gtk/RenderThemeGtk.h:
1674         * platform/gtk/RenderThemeGtk2.cpp:
1675         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1676         * platform/gtk/RenderThemeGtk3.cpp:
1677         (WebCore::RenderThemeGtk::adjustSliderThumbSize):
1678         * platform/qt/RenderThemeQt.cpp:
1679         (WebCore::RenderThemeQt::adjustSliderThumbStyle): ditto.
1680         (WebCore::RenderThemeQt::adjustSliderThumbSize):
1681         * rendering/RenderMediaControls.cpp:
1682         (WebCore::RenderMediaControls::adjustMediaSliderThumbSize):
1683         * rendering/RenderMediaControls.h:
1684         * rendering/RenderMediaControlsChromium.cpp:
1685         (WebCore::RenderMediaControlsChromium::adjustMediaSliderThumbSize):
1686         * rendering/RenderMediaControlsChromium.h:
1687         * rendering/RenderSlider.cpp:
1688         (WebCore::RenderSlider::layout): Passing RenderStyle* and remove a FIXME comment.
1689         * rendering/RenderTheme.cpp:
1690         (WebCore::RenderTheme::adjustSliderThumbStyle): Add a comment.
1691         (WebCore::RenderTheme::adjustSliderThumbSize):
1692         * rendering/RenderTheme.h:
1693         * rendering/RenderThemeChromiumLinux.cpp:
1694         (WebCore::RenderThemeChromiumLinux::adjustSliderThumbSize):
1695         * rendering/RenderThemeChromiumLinux.h:
1696         * rendering/RenderThemeChromiumMac.h:
1697         * rendering/RenderThemeChromiumMac.mm:
1698         (WebCore::RenderThemeChromiumMac::adjustMediaSliderThumbSize):
1699         * rendering/RenderThemeChromiumSkia.cpp:
1700         (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize):
1701         * rendering/RenderThemeChromiumSkia.h:
1702         * rendering/RenderThemeChromiumWin.cpp:
1703         (WebCore::RenderThemeChromiumWin::adjustSliderThumbSize):
1704         * rendering/RenderThemeChromiumWin.h:
1705         * rendering/RenderThemeMac.h:
1706         * rendering/RenderThemeMac.mm:
1707         (WebCore::RenderThemeMac::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
1708         (WebCore::RenderThemeMac::adjustSliderThumbSize):
1709         (WebCore::RenderThemeMac::adjustMediaSliderThumbSize):
1710         * rendering/RenderThemeSafari.cpp:
1711         (WebCore::RenderThemeSafari::adjustSliderThumbStyle): Calls RenderTheme::adjustSliderThumbStyle().
1712         (WebCore::RenderThemeSafari::adjustSliderThumbSize):
1713         * rendering/RenderThemeSafari.h:
1714         * rendering/RenderThemeWin.cpp:
1715         (WebCore::RenderThemeWin::adjustSliderThumbSize):
1716         * rendering/RenderThemeWin.h:
1717         * rendering/RenderThemeWinCE.cpp:
1718         (WebCore::RenderThemeWinCE::adjustSliderThumbSize):
1719         * rendering/RenderThemeWinCE.h:
1720
1721 2011-06-08  Brian Salomon  <bsalomon@google.com>
1722
1723         Reviewed by James Robinson.
1724
1725         Avoid always binding FBO 0 implicitly when deleting FBO in DrawingBuffer code because it invalidates Ganesh's cache of the current FBO.
1726         https://bugs.webkit.org/show_bug.cgi?id=62318
1727
1728         Chromium-only crash
1729         Failures takes multiple seconds to occur, relying on JS garbage-collection to occur 
1730         http://www.hotbazooka.com/privatejoe-large
1731
1732         * platform/graphics/gpu/DrawingBuffer.cpp:
1733         (WebCore::DrawingBuffer::clear):
1734
1735 2011-06-08  Emil A Eklund  <eae@chromium.org>
1736
1737         Reviewed by Eric Seidel.
1738
1739         RenderEmbeddedObject::getReplacementTextGeometry
1740         https://bugs.webkit.org/show_bug.cgi?id=62313
1741
1742         Replace the last use of tx, ty with IntPoint.
1743
1744         Covered by existing tests.
1745
1746         * platform/graphics/FloatRect.h:
1747         (WebCore::FloatRect::move):
1748         (WebCore::FloatRect::moveBy):
1749         * rendering/RenderEmbeddedObject.cpp:
1750         (WebCore::RenderEmbeddedObject::paintReplaced):
1751         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
1752         (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator):
1753         * rendering/RenderEmbeddedObject.h:
1754
1755 2011-06-08  Tim Horton  <timothy_horton@apple.com>
1756
1757         Reviewed by Ryosuke Niwa.
1758
1759         Use correct CFURLStorageSessionRef definition on Leopard, as
1760         we created an inconsistency in const-ness between
1761         WebCoreSystemInterface.h and these two files in the case
1762         of Leopard only.
1763         https://bugs.webkit.org/show_bug.cgi?id=62223
1764
1765         * platform/network/ResourceHandle.h:
1766         * platform/network/cf/ResourceRequest.h:
1767
1768 2011-06-08  Sailesh Agrawal  <sail@chromium.org>
1769
1770         Reviewed by Mihai Parparita.
1771
1772         Chromium Mac: Enable overlay scrollbars
1773         https://bugs.webkit.org/show_bug.cgi?id=59756
1774
1775         Sync ScrollbarThemeChromiumMac.mm/.h with ScrollbarThemeMac.mm to pick up support for overlay scrollbars. The only changes are renaming ScrollbarThemeMac to ScrollbarThemeChromiumMac and using runtime checks instead of #ifdef's.
1776
1777         No new tests, since this code is only enabled on future versions of Mac OS X.
1778
1779         * platform/chromium/ScrollAnimatorChromiumMac.mm: All changes to this file except in scroll() were to swap #if USE(WK_SCROLLBAR_PAINTER) with runtime checks.
1780         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
1781         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
1782         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
1783         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
1784         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
1785         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
1786         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
1787         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
1788         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
1789         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
1790         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
1791         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
1792         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
1793         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
1794         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
1795         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
1796         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
1797         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
1798         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
1799         * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
1800         (preferredScrollerStyle): Disabled overlay scrollbar styles due to trailing artifacts.
1801         (wkScrollbarPainterPaint): Fixed a problem where the scrollbar track wasn't being drawn.
1802         (wkScrollbarPainterKnobRect): Implemented a previously unimplemented function.
1803         (wkSetScrollbarPainterKnobStyle): Implemented a function that's now supported by the latest Mac OS X seeds.
1804         (isScrollbarOverlayAPIAvailable): Enabled new scrollbar code.
1805         * platform/chromium/ScrollbarThemeChromiumMac.h:
1806         * platform/chromium/ScrollbarThemeChromiumMac.mm: Sync with ScrollbarThemeMac.mm.
1807         (WebCore::scrollbarMap):
1808         (+[ScrollbarPrefsObserver appearancePrefsChanged:]):
1809         (WebCore::updateArrowPlacement):
1810         (WebCore::ScrollbarThemeChromiumMac::registerScrollbar):
1811         (WebCore::ScrollbarThemeChromiumMac::unregisterScrollbar):
1812         (WebCore::ScrollbarThemeChromiumMac::setNewPainterForScrollbar):
1813         (WebCore::ScrollbarThemeChromiumMac::painterForScrollbar):
1814         (WebCore::ScrollbarThemeChromiumMac::scrollbarThickness):
1815         (WebCore::ScrollbarThemeChromiumMac::usesOverlayScrollbars):
1816         (WebCore::ScrollbarThemeChromiumMac::hasButtons):
1817         (WebCore::ScrollbarThemeChromiumMac::hasThumb):
1818         (WebCore::buttonRepaintRect):
1819         (WebCore::ScrollbarThemeChromiumMac::minimumThumbLength):
1820         (WebCore::ScrollbarThemeChromiumMac::shouldDragDocumentInsteadOfThumb):
1821         (WebCore::toScrollbarPainterKnobStyle):
1822         (WebCore::ScrollbarThemeChromiumMac::paint):
1823
1824 2011-06-06  Nate Chapin  <japhet@chromium.org>
1825
1826         Reviewed by Adam Barth.
1827
1828         Remove all knowledge of CachedResourceRequests from
1829         CachedResourceLoader. This puts the full burden of
1830         canceling these requests on DocumentLoader (via
1831         SubresourceLoader), and makes a CachedResourceRequest
1832         an OwnPtr in CachedResource.
1833
1834         https://bugs.webkit.org/show_bug.cgi?id=62308
1835
1836         * loader/FrameLoader.cpp:
1837         (WebCore::FrameLoader::stopLoading):
1838         * loader/cache/CachedResource.cpp:
1839         (WebCore::CachedResource::CachedResource):
1840         (WebCore::CachedResource::load):
1841         (WebCore::CachedResource::stopLoading):
1842         * loader/cache/CachedResource.h:
1843         * loader/cache/CachedResourceLoader.cpp:
1844         (WebCore::CachedResourceLoader::~CachedResourceLoader):
1845         (WebCore::CachedResourceLoader::loadDone):
1846         * loader/cache/CachedResourceLoader.h:
1847         * loader/cache/CachedResourceRequest.cpp:
1848         (WebCore::CachedResourceRequest::CachedResourceRequest):
1849         (WebCore::CachedResourceRequest::~CachedResourceRequest):
1850         (WebCore::CachedResourceRequest::load):
1851         (WebCore::CachedResourceRequest::didFinishLoading):
1852         (WebCore::CachedResourceRequest::didFail):
1853         (WebCore::CachedResourceRequest::didReceiveResponse):
1854         (WebCore::CachedResourceRequest::end):
1855         * loader/cache/CachedResourceRequest.h:
1856
1857 2011-06-08  Mike Reed  <reed@google.com>
1858
1859         Reviewed by James Robinson.
1860
1861         [Skia] check for null-shader from gradient factory
1862         https://bugs.webkit.org/show_bug.cgi?id=62319
1863
1864         * platform/graphics/skia/GradientSkia.cpp:
1865         (WebCore::Gradient::platformDestroy):
1866         (WebCore::Gradient::platformGradient):
1867
1868 2011-06-08  Kenneth Russell  <kbr@google.com>
1869
1870         Reviewed by Adam Barth.
1871
1872         Disallow use of cross-domain media (images, video) in WebGL
1873         https://bugs.webkit.org/show_bug.cgi?id=62257
1874
1875         Updated WebGL implementation to track recent spec updates in this area.
1876
1877         Tests: http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html
1878                http/tests/security/webgl-remote-read-remote-image-allowed.html
1879                http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html
1880
1881         * html/canvas/CanvasRenderingContext.cpp:
1882         (WebCore::CanvasRenderingContext::wouldTaintOrigin):
1883         (WebCore::CanvasRenderingContext::checkOrigin):
1884         * html/canvas/CanvasRenderingContext.h:
1885         (WebCore::CanvasRenderingContext::checkOrigin):
1886         * html/canvas/WebGLRenderingContext.cpp:
1887         (WebCore::WebGLRenderingContext::readPixels):
1888         (WebCore::WebGLRenderingContext::texImage2D):
1889         (WebCore::WebGLRenderingContext::videoFrameToImage):
1890         (WebCore::WebGLRenderingContext::texSubImage2D):
1891         * html/canvas/WebGLRenderingContext.h:
1892
1893 2011-06-08  John Bauman  <jbauman@chromium.org>
1894
1895         Reviewed by James Robinson.
1896
1897         Only draw portions of tiles in contentRect
1898         https://bugs.webkit.org/show_bug.cgi?id=62243
1899
1900         Old garbage data can remain in tiles, so make sure to draw only those
1901         portions that are supposed to be drawn.
1902
1903         Test: compositing/repaint/shrink-layer.html
1904
1905         * platform/graphics/chromium/LayerTilerChromium.cpp:
1906         (WebCore::LayerTilerChromium::draw):
1907
1908 2011-06-08  Emil A Eklund  <eae@chromium.org>
1909
1910         Reviewed by Eric Seidel.
1911
1912         Convert RenderBlock::isPointInOverflowControl to IntPoint
1913         https://bugs.webkit.org/show_bug.cgi?id=62312
1914
1915         Covered by existing tests.
1916
1917         * rendering/RenderBlock.cpp:
1918         (WebCore::RenderBlock::isPointInOverflowControl):
1919         (WebCore::RenderBlock::nodeAtPoint):
1920         * rendering/RenderBlock.h:
1921         * rendering/RenderListBox.cpp:
1922         (WebCore::RenderListBox::isPointInOverflowControl):
1923         * rendering/RenderListBox.h:
1924
1925 2011-06-08  James Simonsen  <simonjam@chromium.org>
1926
1927         Reviewed by Tony Gentilcore.
1928
1929         Fix clang issue, virtual function const mismatch
1930         https://bugs.webkit.org/show_bug.cgi?id=62307
1931
1932         No new tests. Built with clang & ran layout tests.
1933
1934         * page/MediaStreamFrameController.h:
1935         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
1936
1937 2011-06-08  Chris Rogers  <crogers@google.com>
1938
1939         Reviewed by Kenneth Russell.
1940
1941         Implement BiquadFilterNode for filter types: LOWPASS, HIGHPASS, BANDPASS, LOWSHELF, HIGHSHELF, PEAKING, NOTCH, ALLPASS
1942         https://bugs.webkit.org/show_bug.cgi?id=62078
1943
1944         No new tests since audio API is not yet implemented.
1945
1946         * DerivedSources.make:
1947         * WebCore.gypi:
1948         * WebCore.xcodeproj/project.pbxproj:
1949         * platform/audio/Biquad.cpp:
1950         (WebCore::Biquad::Biquad):
1951         (WebCore::Biquad::reset):
1952         (WebCore::Biquad::setLowpassParams):
1953         (WebCore::Biquad::setHighpassParams):
1954         (WebCore::Biquad::setNormalizedCoefficients):
1955         (WebCore::Biquad::setLowShelfParams):
1956         (WebCore::Biquad::setHighShelfParams):
1957         (WebCore::Biquad::setPeakingParams):
1958         (WebCore::Biquad::setAllpassParams):
1959         (WebCore::Biquad::setNotchParams):
1960         (WebCore::Biquad::setBandpassParams):
1961         (WebCore::Biquad::setZeroPolePairs):
1962         (WebCore::Biquad::setAllpassPole):
1963         * platform/audio/Biquad.h:
1964         * webaudio/AudioContext.cpp:
1965         (WebCore::AudioContext::createBiquadFilter):
1966         (WebCore::AudioContext::createLowPass2Filter):
1967         (WebCore::AudioContext::createHighPass2Filter):
1968         * webaudio/AudioContext.h:
1969         * webaudio/AudioContext.idl:
1970         * webaudio/AudioNode.h:
1971         * webaudio/BiquadDSPKernel.cpp:
1972         (WebCore::BiquadDSPKernel::process):
1973         * webaudio/BiquadFilterNode.cpp: Added.
1974         (WebCore::BiquadFilterNode::BiquadFilterNode):
1975         * webaudio/BiquadFilterNode.h: Added.
1976         (WebCore::BiquadFilterNode::create):
1977         (WebCore::BiquadFilterNode::type):
1978         (WebCore::BiquadFilterNode::setType):
1979         (WebCore::BiquadFilterNode::frequency):
1980         (WebCore::BiquadFilterNode::q):
1981         (WebCore::BiquadFilterNode::gain):
1982         (WebCore::BiquadFilterNode::biquadProcessor):
1983         * webaudio/BiquadFilterNode.idl: Added.
1984         * webaudio/BiquadProcessor.cpp:
1985         (WebCore::BiquadProcessor::BiquadProcessor):
1986         * webaudio/BiquadProcessor.h:
1987         (WebCore::BiquadProcessor::setType):
1988         * webaudio/HighPass2FilterNode.cpp:
1989         (WebCore::HighPass2FilterNode::HighPass2FilterNode):
1990         * webaudio/LowPass2FilterNode.cpp:
1991         (WebCore::LowPass2FilterNode::LowPass2FilterNode):
1992
1993 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
1994
1995         Reviewed by Kenneth Rohde Christiansen.
1996
1997         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
1998         https://bugs.webkit.org/show_bug.cgi?id=61694
1999
2000         No new tests, code path is not activated yet.
2001
2002         * WebCore.xcodeproj/project.pbxproj: Changed the TransformOperation subclassed from "project" to "private"
2003
2004 2011-06-08  Tom Sepez  <tsepez@chromium.org>
2005
2006         Reviewed by Adam Barth.
2007
2008         Cause checks for insecure content blocking policy to callback to client.
2009         https://bugs.webkit.org/show_bug.cgi?id=61946
2010         Tests: platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html
2011                platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html
2012                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html
2013                platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html
2014
2015         * loader/FrameLoader.cpp:
2016         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
2017         (WebCore::FrameLoader::checkIfRunInsecureContent):
2018         * loader/FrameLoaderClient.h:
2019         (WebCore::FrameLoaderClient::allowDisplayingInsecureContent):
2020         (WebCore::FrameLoaderClient::allowRunningInsecureContent):
2021
2022 2011-06-08  Kevin Ollivier  <kevino@theolliviers.com>
2023
2024         [wx] Build fix after introduction of FontCache::ShouldRetain
2025
2026         * platform/graphics/wx/FontCacheWx.cpp:
2027         (WebCore::FontCache::getFontDataForCharacters):
2028
2029 2011-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
2030
2031         Unreviewed, rolling out r88365.
2032         http://trac.webkit.org/changeset/88365
2033         https://bugs.webkit.org/show_bug.cgi?id=62301
2034
2035         windows bots broken (Requested by loislo_ on #webkit).
2036
2037         * inspector/InspectorValues.cpp:
2038         (WebCore::InspectorBasicValue::writeJSON):
2039
2040 2011-06-08  Mikołaj Małecki  <m.malecki@samsung.com>
2041
2042         Reviewed by Pavel Feldman.
2043
2044         Web Inspector: Crash by buffer overrun crash when serializing inspector object tree.
2045         https://bugs.webkit.org/show_bug.cgi?id=52791
2046
2047         No new tests. The problem can be reproduced by trying to create InspectorValue
2048         from 1.0e-100 and call ->toJSONString() on this.
2049
2050         * inspector/InspectorValues.cpp:
2051         (WebCore::InspectorBasicValue::writeJSON):
2052         Added checking the predicted buffer size and choosing exponential format, or
2053         eventually "NaN" if the buffer is too small for decimal format.
2054
2055 2011-06-08  Nico Weber  <thakis@chromium.org>
2056
2057         Reviewed by Darin Adler.
2058
2059         Fix a ?: precedence error in ScrollbarThemeMac and ScrollbarThemeChromium
2060         https://bugs.webkit.org/show_bug.cgi?id=62295
2061
2062         This was found by a new warning recently added to clang's -Wparentheses
2063
2064         * platform/chromium/ScrollbarThemeChromiumMac.mm:
2065         (WebCore::ScrollbarThemeChromiumMac::backButtonRect):
2066         * platform/mac/ScrollbarThemeMac.mm:
2067         (WebCore::ScrollbarThemeMac::backButtonRect):
2068
2069 2011-06-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2070
2071         Reviewed by Andreas Kling.
2072
2073         [Qt] Remove dead code from our JSC bridge
2074         https://bugs.webkit.org/show_bug.cgi?id=62287
2075
2076         The m_defaultMethod member is not used since r36848 and QtMethod
2077         was replaced by QtRuntimeMethod and subclasses in r29729.
2078
2079         * bridge/qt/qt_instance.cpp:
2080         (JSC::Bindings::QtInstance::removeCachedMethod):
2081         (JSC::Bindings::QtInstance::visitAggregate):
2082         * bridge/qt/qt_instance.h:
2083         * bridge/qt/qt_runtime.h:
2084
2085 2011-06-08  Ryan Sleevi  <rsleevi@chromium.org>
2086
2087         Reviewed by Tony Chang.
2088
2089         Suppress C++0x compat warnings when compiling Chromium port with GCC 4.6
2090
2091         Compiling Chromium port under GCC 4.6 produces warnings about nullptr
2092         https://bugs.webkit.org/show_bug.cgi?id=62242
2093
2094         * WebCore.gyp/WebCore.gyp:
2095
2096 2011-05-25  Xiaomei Ji  <xji@chromium.org>
2097
2098         Reviewed by Ryosuke Niwa.
2099
2100         --webkit-visual-word does not work well in words separated by multiple spaces
2101         https://bugs.webkit.org/show_bug.cgi?id=61324
2102
2103         Remove positionBeforeNextWord and positionAfterPreviousWord short-cuts. They try to find the
2104         right word boundary (before the space or after the space) by using previousWordPosition and
2105         nextWordPosition. But they assume words are separated by single space and are not correct 
2106         for words separated by multiple spaces and words not separated by space.
2107
2108         Consider positionBeforeNextWord() for example, 
2109
2110         First, it checks whether the current position is after the current word by checking current
2111         position's previousWordPosition's nextWordPosition is the same as current position, which is
2112         wrong for words separated by multiple spaces. For example, given words A and B separated by 
2113         3 continuous spaces "A   B", position "A|", "A |", and "A  |" should all be considered as 
2114         position after current word. But for position "A |", its previousWordPosition's 
2115         nextWordPosition is position "A|", which is different from its current position, so the
2116         current position is not considered as a position after current word, consequently,
2117         instead of returning the right position as "A   |B", positionBeforeNextWord returns the
2118         position before next next word, as "A   B |C". Similar happens for position "A  |".
2119
2120         Second, given 3 Chinese words "ABC" that are not segmented by space, when cursor is at 
2121         "A|BC", positionBeforeNextWord() returns the same position after calling current position's
2122         nextWordPosition's previousWordPosition. It should returns position "AB|C".
2123
2124         For those cases, we will have to collect all the word breaks inside the box and look for
2125         the one at left or right of current position.
2126
2127         * editing/visible_units.cpp:
2128         (WebCore::leftWordPosition):
2129         (WebCore::rightWordPosition):
2130
2131 2011-06-08  Greg Simon  <gregsimon@chromium.org>
2132
2133         Reviewed by Dimitri Glazkov.
2134
2135         Control Indexeddb backends from LayoutTestController
2136         https://bugs.webkit.org/show_bug.cgi?id=61000
2137
2138         Test: storage/indexeddb/migrate-basics.html
2139
2140         * storage/IDBBackingStore.h:
2141         * storage/IDBFactoryBackendImpl.cpp:
2142         (WebCore::IDBFactoryBackendImpl::open):
2143         (WebCore::IDBFactoryBackendImpl::migrate):
2144         * storage/IDBFactoryBackendImpl.h:
2145         * storage/IDBFactoryBackendInterface.h:
2146         * storage/IDBLevelDBBackingStore.cpp:
2147         (WebCore::IDBLevelDBBackingStore::backingStoreExists):
2148         * storage/IDBLevelDBBackingStore.h:
2149         (WebCore::IDBLevelDBBackingStore::backingStoreType):
2150         * storage/IDBSQLiteBackingStore.cpp:
2151         (WebCore::IDBSQLiteBackingStore::backingStoreExists):
2152         * storage/IDBSQLiteBackingStore.h:
2153         (WebCore::IDBSQLiteBackingStore::backingStoreType):
2154
2155 2011-06-08  Dmitry Lomov  <dslomov@google.com>
2156
2157         Reviewed by Adam Barth.
2158
2159         https://bugs.webkit.org/show_bug.cgi?id=62164
2160         Remove "multi-threaded" logic in V8 DOMData, DOMDataStore and friends
2161         This functionality is untested and unused:
2162         This is an old code from Lockers-based implementation of WebWorkers in
2163         V8 bindings, to make sure that DOM objects are released on the right thread
2164         even though GC could have happened on any thread. It is currently unused (since
2165         current model is one worker per process) and is being removed because new implementation
2166         of WebWorkers will be using V8 isolates.
2167
2168         * WebCore.gypi:
2169         * WebCore.pro:
2170         * bindings/v8/ChildThreadDOMData.cpp: Removed.
2171         * bindings/v8/ChildThreadDOMData.h: Removed.
2172         * bindings/v8/DOMData.cpp:
2173         (WebCore::DOMData::DOMData):
2174         (WebCore::DOMData::getCurrent):
2175         (WebCore::DOMData::getMainThreadStore):
2176         * bindings/v8/DOMData.h:
2177         (WebCore::DOMData::getStore):
2178         (WebCore::DOMData::getCurrentMainThreadStore):
2179         (WebCore::DOMData::handleWeakObject):
2180         * bindings/v8/DOMDataStore.cpp:
2181         (WebCore::DOMDataStore::DOMDataStore):
2182         (WebCore::DOMDataStore::~DOMDataStore):
2183         (WebCore::DOMDataStore::weakNodeCallback):
2184         * bindings/v8/DOMDataStore.h:
2185         * bindings/v8/MainThreadDOMData.cpp: Removed.
2186         * bindings/v8/MainThreadDOMData.h: Removed.
2187         * bindings/v8/V8DOMMap.cpp:
2188         (WebCore::getDOMDataStore):
2189         (WebCore::removeAllDOMObjects):
2190         (WebCore::visitDOMNodes):
2191         (WebCore::visitDOMObjects):
2192         (WebCore::visitActiveDOMObjects):
2193         (WebCore::visitDOMSVGElementInstances):
2194         * bindings/v8/V8DOMMap.h:
2195         * bindings/v8/V8GCController.cpp:
2196         (WebCore::V8GCController::gcPrologue):
2197         (WebCore::V8GCController::gcEpilogue):
2198         * bindings/v8/WorkerScriptController.cpp:
2199         (WebCore::WorkerScriptController::~WorkerScriptController):
2200
2201 2011-06-08  Yael Aharon  <yael.aharon@nokia.com>
2202
2203         Reviewed by Andreas Kling.
2204
2205         [Qt] Build fix for building QtWebKit inside of Qt.
2206         https://bugs.webkit.org/show_bug.cgi?id=62280
2207
2208         Remove CONFIG=staticlib, because it causes the configure script to add -lwebcore
2209         into QtWebKit.prl.
2210
2211         No new tests, as this is just a build fix.
2212
2213         * WebCore.pri:
2214
2215 2011-06-08  Vsevolod Vlasov  <vsevik@chromium.org>
2216
2217         Reviewed by Pavel Feldman.
2218
2219         Web Inspector: Render non-document HTML resources as HTML
2220         https://bugs.webkit.org/show_bug.cgi?id=58886
2221
2222         * English.lproj/localizedStrings.js:
2223         * WebCore.gypi:
2224         * WebCore.vcproj/WebCore.vcproj:
2225         * inspector/front-end/NetworkItemView.js:
2226         (WebInspector.NetworkItemView):
2227         * inspector/front-end/Resource.js:
2228         (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
2229         (WebInspector.Resource.prototype.hasErrorStatusCode):
2230         * inspector/front-end/ResourceHTMLView.js: Added.
2231         (WebInspector.ResourceHTMLView):
2232         (WebInspector.ResourceHTMLView.prototype.hasContent):
2233         (WebInspector.ResourceHTMLView.prototype.show):
2234         (WebInspector.ResourceHTMLView.prototype.hide):
2235         (WebInspector.ResourceHTMLView.prototype._createIFrame):
2236         * inspector/front-end/ResourcePreviewView.js: Added.
2237         (WebInspector.ResourcePreviewView):
2238         (WebInspector.ResourcePreviewView.prototype.hasContent):
2239         (WebInspector.ResourcePreviewView.prototype.show):
2240         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown.callback):
2241         (WebInspector.ResourcePreviewView.prototype._ensureInnerViewShown):
2242         (WebInspector.ResourcePreviewView.prototype._createInnerView):
2243         * inspector/front-end/Settings.js:
2244         (WebInspector.Settings):
2245         * inspector/front-end/WebKit.qrc:
2246         * inspector/front-end/inspector.css:
2247         (.resource-view.html iframe):
2248         * inspector/front-end/inspector.html:
2249
2250 2011-05-18  Pavel Podivilov  <podivilov@chromium.org>
2251
2252         Reviewed by Yury Semikhatsky.
2253
2254         Web Inspector: hide script location to ui location conversion details from ScriptsPanel.
2255         https://bugs.webkit.org/show_bug.cgi?id=61035
2256
2257         * inspector/front-end/DebuggerPresentationModel.js:
2258         (WebInspector.DebuggerPresentationModel.prototype.sourceFileForScriptURL):
2259         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation.didRequestSourceMapping):
2260         (WebInspector.DebuggerPresentationModel.prototype.scriptLocationToUILocation):
2261         * inspector/front-end/ScriptsPanel.js:
2262         (WebInspector.ScriptsPanel.prototype.showAnchorLocation.didGetUILocation):
2263         (WebInspector.ScriptsPanel.prototype.showAnchorLocation):
2264
2265 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
2266
2267         Reviewed by Tony Gentilcore.
2268
2269         StreamEvent
2270
2271         Media Stream PeerConnection API: adding StreamEvent class
2272         https://bugs.webkit.org/show_bug.cgi?id=61537
2273
2274         Tests for the Media Stream API will be provided by the bug 56587.
2275
2276         * CMakeLists.txt:
2277         * CodeGenerators.pri:
2278         * DerivedSources.cpp:
2279         * DerivedSources.make:
2280         * GNUmakefile.list.am:
2281         * WebCore.gypi:
2282         * WebCore.pro:
2283         * WebCore.vcproj/WebCore.vcproj:
2284         * WebCore.xcodeproj/project.pbxproj:
2285         * bindings/js/JSEventCustom.cpp:
2286         (WebCore::toJS):
2287         * bindings/v8/custom/V8EventCustom.cpp:
2288         (WebCore::toV8):
2289         * dom/DOMAllInOne.cpp:
2290         * dom/Event.cpp:
2291         (WebCore::Event::isStreamEvent):
2292         * dom/Event.h:
2293         * dom/StreamEvent.cpp: Added.
2294         (WebCore::StreamEvent::create):
2295         (WebCore::StreamEvent::StreamEvent):
2296         (WebCore::StreamEvent::~StreamEvent):
2297         (WebCore::StreamEvent::initStreamEvent):
2298         (WebCore::StreamEvent::stream):
2299         * dom/StreamEvent.h: Added.
2300         (WebCore::StreamEvent::isStreamEvent):
2301         * dom/StreamEvent.idl: Added.
2302
2303 2011-06-08  Tommy Widenflycht  <tommyw@google.com>
2304
2305         Reviewed by Tony Gentilcore.
2306
2307         Media Stream API: integrate the Track List objects into the existing code.
2308         https://bugs.webkit.org/show_bug.cgi?id=60205
2309
2310         Tests for the Media Stream API will be provided by the bug 56587.
2311
2312         * dom/ExclusiveTrackList.cpp:
2313         (WebCore::ExclusiveTrackList::select):
2314         (WebCore::ExclusiveTrackList::trackFailed):
2315         * dom/ExclusiveTrackList.h:
2316         * dom/GeneratedStream.cpp:
2317         (WebCore::GeneratedStream::create):
2318         (WebCore::GeneratedStream::GeneratedStream):
2319         (WebCore::GeneratedStream::streamEnded):
2320         (WebCore::GeneratedStream::audioTracks):
2321         (WebCore::GeneratedStream::videoTracks):
2322         (WebCore::GeneratedStream::stop):
2323         * dom/GeneratedStream.h:
2324         * dom/GeneratedStream.idl:
2325         * dom/MultipleTrackList.cpp:
2326         (WebCore::MultipleTrackList::trackFailed):
2327         (WebCore::MultipleTrackList::enable):
2328         (WebCore::MultipleTrackList::disable):
2329         * dom/MultipleTrackList.h:
2330         * dom/Stream.h:
2331         * dom/TrackList.cpp:
2332         (WebCore::TrackList::clear):
2333         (WebCore::TrackList::associateStream):
2334         (WebCore::TrackList::associatedStreamLabel):
2335         (WebCore::TrackList::trackFailed):
2336         (WebCore::TrackList::scriptExecutionContext):
2337         * dom/TrackList.h:
2338         * page/MediaStreamClient.h:
2339         * page/MediaStreamController.cpp:
2340         (WebCore::MediaStreamController::enableAudioTrack):
2341         (WebCore::MediaStreamController::disableAudioTrack):
2342         (WebCore::MediaStreamController::selectVideoTrack):
2343         (WebCore::MediaStreamController::streamGenerated):
2344         (WebCore::MediaStreamController::audioTrackFailed):
2345         (WebCore::MediaStreamController::videoTrackFailed):
2346         * page/MediaStreamController.h:
2347         * page/MediaStreamFrameController.cpp:
2348         (WebCore::MediaStreamFrameController::unregister):
2349         (WebCore::MediaStreamFrameController::enterDetachedState):
2350         (WebCore::MediaStreamFrameController::disconnectFrame):
2351         (WebCore::MediaStreamFrameController::enableAudioTrack):
2352         (WebCore::MediaStreamFrameController::disableAudioTrack):
2353         (WebCore::MediaStreamFrameController::selectVideoTrack):
2354         (WebCore::MediaStreamFrameController::streamGenerated):
2355         (WebCore::MediaStreamFrameController::audioTrackFailed):
2356         (WebCore::MediaStreamFrameController::videoTrackFailed):
2357         * page/MediaStreamFrameController.h:
2358         (WebCore::MediaStreamFrameController::ClientBase::isGenericClient):
2359         (WebCore::MediaStreamFrameController::GenericClient::GenericClient):
2360         (WebCore::MediaStreamFrameController::GenericClient::~GenericClient):
2361         (WebCore::MediaStreamFrameController::GenericClient::isGenericClient):
2362         (WebCore::MediaStreamFrameController::GenericClient::unregister):
2363
2364 2011-06-08  Pavel Podivilov  <podivilov@chromium.org>
2365
2366         Reviewed by Yury Semikhatsky.
2367
2368         Web Inspector: [REGRESSION] breakpoints are not persisted.
2369         https://bugs.webkit.org/show_bug.cgi?id=62273
2370
2371         * inspector/front-end/Settings.js:
2372
2373 2011-06-08  Alexander Pavlov  <apavlov@chromium.org>
2374
2375         Reviewed by Yury Semikhatsky.
2376
2377         Web Inspector: node selection is slow in the Elements panel.
2378         https://bugs.webkit.org/show_bug.cgi?id=60813
2379
2380         Schedule full style updates rather than request all node styles from the backend immediately.
2381
2382         * inspector/front-end/StylesSidebarPane.js:
2383         (WebInspector.StylesSidebarPane.prototype.update.reloadAllStyles):
2384         (WebInspector.StylesSidebarPane.prototype.update):
2385
2386 2011-06-08  Andreas Kling  <andreas.kling@nokia.com>
2387
2388         Reviewed by Laszlo Gombos.
2389
2390         [Symbian] Float{32,64}Array and Int16Array fail to build.
2391         https://bugs.webkit.org/show_bug.cgi?id=62219
2392
2393         For some reason, RVCT 2.x is moaning about "class member designated by
2394         a using-declaration must be visible in a direct base class".
2395         Apply same fix as r69122 and r76592.
2396
2397         * html/canvas/Float32Array.h:
2398         (WebCore::Float32Array::set):
2399         * html/canvas/Float64Array.h:
2400         (WebCore::Float64Array::set):
2401         * html/canvas/Int16Array.h:
2402         (WebCore::Int16Array::set):
2403
2404 2011-06-08  Syed Idris Shah  <syed.idris-shah@nokia.com>
2405
2406         Reviewed by Andreas Kling.
2407
2408         [Qt] GL_POINT_SPRITE and GL_VERTEX_PROGRAM_POINT_SIZE should be enabled for desktop WebGL
2409         https://bugs.webkit.org/show_bug.cgi?id=61945
2410
2411         For OpenGL ES we do not need these features. 
2412         These features are available via shaders in OpenGL ES. But for desktop WebGL using QtWebKit they should be enabled.
2413
2414         LayoutTests/fast/canvas/webgl/point-size.html
2415
2416         * platform/graphics/qt/GraphicsContext3DQt.cpp:
2417         (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
2418
2419 2011-06-08  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2420
2421         Unreviewed. Fix style error.
2422
2423         * platform/efl/RenderThemeEfl.cpp:
2424         * platform/efl/RenderThemeEfl.h:
2425
2426 2011-06-08  Hironori Bono  <hbono@chromium.org>
2427
2428         Reviewed by Brent Fulgham.
2429
2430         Add SpellCheck API
2431         https://bugs.webkit.org/show_bug.cgi?id=59693
2432
2433         This change adds two SpellCheck API functions (addSpellcheckRange and
2434         removeSpellcheckRange) and one attribute (spellcheckRange) discussed in
2435         the public-webapps ML. This change is currently available only on Chromium.
2436
2437         Tests: editing/spelling/spellcheck-api-pixel.html
2438                editing/spelling/spellcheck-api.html
2439
2440         * WebCore.gypi:
2441         * bindings/generic/RuntimeEnabledFeatures.cpp:
2442         * bindings/generic/RuntimeEnabledFeatures.h:
2443         (WebCore::RuntimeEnabledFeatures::spellCheckAPIEnabled):
2444         (WebCore::RuntimeEnabledFeatures::setSpellCheckAPIEnabled):
2445         * dom/DocumentMarker.h:
2446         (WebCore::DocumentMarker::length):
2447         * dom/DocumentMarkerController.cpp:
2448         (WebCore::DocumentMarkerController::userSpellingMarkersForNode):
2449         (WebCore::DocumentMarkerController::addUserSpellingMarker):
2450         (WebCore::DocumentMarkerController::removeUserSpellingMarker):
2451         (WebCore::DocumentMarkerController::userSpellingNode):
2452         * dom/DocumentMarkerController.h:
2453         * html/HTMLDivElement.cpp:
2454         (WebCore::HTMLDivElement::spellcheckRanges):
2455         (WebCore::HTMLDivElement::addSpellcheckRange):
2456         (WebCore::HTMLDivElement::removeSpellcheckRange):
2457         * html/HTMLDivElement.h:
2458         * html/HTMLDivElement.idl:
2459         * html/HTMLInputElement.cpp:
2460         (WebCore::HTMLInputElement::spellcheckRanges):
2461         (WebCore::HTMLInputElement::addSpellcheckRange):
2462         (WebCore::HTMLInputElement::removeSpellcheckRange):
2463         * html/HTMLInputElement.h:
2464         * html/HTMLInputElement.idl:
2465         * html/HTMLTextAreaElement.cpp:
2466         (WebCore::HTMLTextAreaElement::spellcheckRanges):
2467         (WebCore::HTMLTextAreaElement::addSpellcheckRange):
2468         (WebCore::HTMLTextAreaElement::removeSpellcheckRange):
2469         * html/HTMLTextAreaElement.h:
2470         * html/HTMLTextAreaElement.idl:
2471         * html/SpellcheckRange.cpp: Added.
2472         (WebCore::SpellcheckRange::SpellcheckRange):
2473         (WebCore::SpellcheckRange::~SpellcheckRange):
2474         * html/SpellcheckRange.h: Added.
2475         (WebCore::SpellcheckRange::create):
2476         (WebCore::SpellcheckRange::start):
2477         (WebCore::SpellcheckRange::length):
2478         (WebCore::SpellcheckRange::suggestions):
2479         (WebCore::SpellcheckRange::options):
2480         * html/SpellcheckRange.idl: Added.
2481         * html/SpellcheckRangeList.cpp: Added.
2482         (WebCore::SpellcheckRangeList::SpellcheckRangeList):
2483         (WebCore::SpellcheckRangeList::~SpellcheckRangeList):
2484         (WebCore::SpellcheckRangeList::item):
2485         * html/SpellcheckRangeList.h: Added.
2486         (WebCore::SpellcheckRangeList::create):
2487         (WebCore::SpellcheckRangeList::isEmpty):
2488         (WebCore::SpellcheckRangeList::clear):
2489         (WebCore::SpellcheckRangeList::append):
2490         (WebCore::SpellcheckRangeList::remove):
2491         (WebCore::SpellcheckRangeList::length):
2492         * html/SpellcheckRangeList.idl: Added.
2493         * rendering/InlineTextBox.cpp:
2494         (WebCore::textCheckingLineStyleForMarkerType):
2495         (WebCore::InlineTextBox::paintDocumentMarkers):
2496
2497 2011-06-07  Andrey Kosyakov  <caseq@chromium.org>
2498
2499         Reviewed by Pavel Feldman.
2500
2501         Web Inspector: remove shadow dom inspection from Elements panel by default.
2502         https://bugs.webkit.org/show_bug.cgi?id=62188
2503
2504         This reverts r85751
2505
2506         * dom/Element.cpp:
2507         (WebCore::Element::ensureShadowRoot):
2508         (WebCore::Element::removeShadowRoot):
2509         * inspector/Inspector.json:
2510         * inspector/InspectorDOMAgent.cpp:
2511         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
2512         (WebCore::InspectorDOMAgent::buildObjectForNode):
2513         (WebCore::InspectorDOMAgent::didInsertDOMNode):
2514         (WebCore::InspectorDOMAgent::didRemoveDOMNode):
2515         * inspector/InspectorDOMAgent.h:
2516         * inspector/front-end/DOMAgent.js:
2517         (WebInspector.DOMNode):
2518         (WebInspector.DOMNode.prototype._renumber):
2519         (WebInspector.DOMAgent.prototype._bindNodes):
2520         (WebInspector.DOMAgent.prototype.querySelectorAll):
2521         (WebInspector.DOMDispatcher.prototype.searchResults):
2522         * inspector/front-end/ElementsPanel.js:
2523         (WebInspector.ElementsPanel):
2524         (WebInspector.ElementsPanel.prototype._attributesUpdated):
2525         (WebInspector.ElementsPanel.prototype._characterDataModified):
2526         (WebInspector.ElementsPanel.prototype._nodeInserted):
2527         (WebInspector.ElementsPanel.prototype._nodeRemoved):
2528         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
2529         (WebInspector.ElementsPanel.prototype.updateBreadcrumb):
2530         * inspector/front-end/ElementsTreeOutline.js:
2531         (WebInspector.ElementsTreeElement):
2532         (WebInspector.ElementsTreeElement.prototype._updateChildren.updateChildrenOfNode):
2533         (WebInspector.ElementsTreeElement.prototype._updateChildren):
2534         ():
2535         * inspector/front-end/inspector.css:
2536         * inspector/front-end/utilities.js:
2537         (Element.prototype.query):
2538
2539 2011-06-08  Mark Rowe  <mrowe@apple.com>
2540
2541         Fix the build.
2542
2543         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2544         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged):
2545         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
2546
2547 2011-06-07  Keishi Hattori  <keishi@webkit.org>
2548
2549         Reviewed by Kent Tamura.
2550
2551         Rename HTMLInputElement::m_value to m_valueIfDirty
2552         https://bugs.webkit.org/show_bug.cgi?id=61990
2553
2554         No new tests because no behavior change.
2555
2556         * html/HTMLInputElement.cpp: Replaced m_value with m_valueIfDirty.
2557         (WebCore::HTMLInputElement::tooLong):
2558         (WebCore::HTMLInputElement::updateType):
2559         (WebCore::HTMLInputElement::parseMappedAttribute):
2560         (WebCore::HTMLInputElement::copyNonAttributeProperties):
2561         (WebCore::HTMLInputElement::value):
2562         (WebCore::HTMLInputElement::setValue):
2563         (WebCore::HTMLInputElement::setValueFromRenderer):
2564         (WebCore::HTMLInputElement::updateValueIfNeeded):
2565         * html/HTMLInputElement.h: Renamed m_value to m_valueIfDirty.
2566         (WebCore::HTMLInputElement::hasDirtyValue): Added. Returns the dirty value flag.
2567
2568 2011-06-07  Ian Henderson  <ianh@apple.com>
2569
2570         Reviewed by Dan Bernstein.
2571
2572         (CG) Sub-image drawing clips unnecessarily
2573         https://bugs.webkit.org/show_bug.cgi?id=62258
2574
2575         If destRect completely encompasses the adjustedDestRect into which we
2576         draw, clipping to destRect will do nothing.  Skip the call to
2577         CGContextClipToRect in this case.
2578
2579         * platform/graphics/cg/ImageCG.cpp:
2580         (WebCore::BitmapImage::draw):
2581
2582 2011-06-07  Emil A Eklund  <eae@chromium.org>
2583
2584         Reviewed by Eric Seidel.
2585
2586         Convert nodeAtPoint to IntPoint
2587         https://bugs.webkit.org/show_bug.cgi?id=62145
2588
2589         Convert nodeAtPoint to take an IntPoint instead of a pair of ints for the
2590         accumulated offset.
2591
2592         Covered by existing tests.
2593
2594         * platform/graphics/FloatPoint.h:
2595         (WebCore::FloatPoint::moveBy):
2596         Add moveBy(IntPoint) method
2597         
2598         * rendering/EllipsisBox.cpp:
2599         (WebCore::EllipsisBox::nodeAtPoint):
2600         * rendering/EllipsisBox.h:
2601         * rendering/InlineBox.cpp:
2602         (WebCore::InlineBox::nodeAtPoint):
2603         * rendering/InlineBox.h:
2604         * rendering/InlineFlowBox.cpp:
2605         (WebCore::InlineFlowBox::nodeAtPoint):
2606         * rendering/InlineFlowBox.h:
2607         * rendering/InlineTextBox.cpp:
2608         (WebCore::InlineTextBox::nodeAtPoint):
2609         * rendering/InlineTextBox.h:
2610         * rendering/RenderBlock.cpp:
2611         (WebCore::RenderBlock::nodeAtPoint):
2612         (WebCore::RenderBlock::hitTestContents):
2613         * rendering/RenderBlock.h:
2614         * rendering/RenderBox.cpp:
2615         (WebCore::RenderBox::nodeAtPoint):
2616         * rendering/RenderBox.h:
2617         * rendering/RenderFrameSet.cpp:
2618         (WebCore::RenderFrameSet::nodeAtPoint):
2619         * rendering/RenderFrameSet.h:
2620         * rendering/RenderImage.cpp:
2621         (WebCore::RenderImage::nodeAtPoint):
2622         * rendering/RenderImage.h:
2623         * rendering/RenderInline.cpp:
2624         (WebCore::RenderInline::nodeAtPoint):
2625         * rendering/RenderInline.h:
2626         * rendering/RenderLineBoxList.cpp:
2627         (WebCore::RenderLineBoxList::hitTest):
2628         * rendering/RenderListBox.cpp:
2629         (WebCore::RenderListBox::nodeAtPoint):
2630         * rendering/RenderListBox.h:
2631         * rendering/RenderObject.cpp:
2632         (WebCore::RenderObject::hitTest):
2633         * rendering/RenderObject.h:
2634         * rendering/RenderTable.cpp:
2635         (WebCore::RenderTable::nodeAtPoint):
2636         * rendering/RenderTable.h:
2637         * rendering/RenderTableRow.cpp:
2638         (WebCore::RenderTableRow::nodeAtPoint):
2639         * rendering/RenderTableRow.h:
2640         * rendering/RenderTableSection.cpp:
2641         (WebCore::RenderTableSection::nodeAtPoint):
2642         * rendering/RenderTableSection.h:
2643         * rendering/RenderText.h:
2644         (WebCore::RenderText::nodeAtPoint):
2645         * rendering/RenderTextControlMultiLine.cpp:
2646         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
2647         * rendering/RenderTextControlMultiLine.h:
2648         * rendering/RenderTextControlSingleLine.cpp:
2649         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
2650         * rendering/RenderTextControlSingleLine.h:
2651         * rendering/RenderWidget.cpp:
2652         (WebCore::RenderWidget::nodeAtPoint):
2653         * rendering/RenderWidget.h:
2654         * rendering/RootInlineBox.cpp:
2655         (WebCore::RootInlineBox::nodeAtPoint):
2656         * rendering/RootInlineBox.h:
2657         * rendering/svg/RenderSVGForeignObject.cpp:
2658         (WebCore::RenderSVGForeignObject::nodeAtFloatPoint):
2659         (WebCore::RenderSVGForeignObject::nodeAtPoint):
2660         * rendering/svg/RenderSVGForeignObject.h:
2661         * rendering/svg/RenderSVGModelObject.cpp:
2662         (WebCore::RenderSVGModelObject::nodeAtPoint):
2663         * rendering/svg/RenderSVGModelObject.h:
2664         * rendering/svg/RenderSVGRoot.cpp:
2665         (WebCore::RenderSVGRoot::nodeAtPoint):
2666         * rendering/svg/RenderSVGRoot.h:
2667         * rendering/svg/RenderSVGText.cpp:
2668         (WebCore::RenderSVGText::nodeAtFloatPoint):
2669         (WebCore::RenderSVGText::nodeAtPoint):
2670         * rendering/svg/RenderSVGText.h:
2671
2672 2011-06-07  Yi Shen  <yi.4.shen@nokia.com>
2673
2674         Reviewed by Simon Hausmann.
2675
2676         [Qt] Fix the error code for media resource failures when using QtMobility
2677         https://bugs.webkit.org/show_bug.cgi?id=55901
2678
2679         To indicate the media resource failures, set the network state to
2680         MediaPlayer::FormatError when receives QMediaPlayer::InvalidMedia or
2681         QMediaPlayer::ResourceError.
2682
2683         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
2684         (WebCore::MediaPlayerPrivateQt::updateStates):
2685
2686 2011-06-07  Emil A Eklund  <eae@chromium.org>
2687
2688         Reviewed by Eric Seidel.
2689
2690         Change RenderBlock::hitTestFloats to IntPoint
2691         https://bugs.webkit.org/show_bug.cgi?id=62176
2692
2693         Covered by existing tests.
2694
2695         * rendering/RenderBlock.cpp:
2696         (WebCore::RenderBlock::nodeAtPoint):
2697         (WebCore::RenderBlock::hitTestFloats):
2698         (WebCore::RenderBlock::hitTestColumns):
2699         * rendering/RenderBlock.h:
2700
2701 2011-06-07  Tim Horton  <timothy_horton@apple.com>
2702
2703         Reviewed by Alexey Proskuryakov.
2704
2705         Use correct CFURLStorageSessionRef definition on Snow Leopard
2706         https://bugs.webkit.org/show_bug.cgi?id=62223
2707
2708         * platform/mac/WebCoreSystemInterface.h:
2709         * platform/network/ResourceHandle.h:
2710         * platform/network/cf/ResourceRequest.h:
2711
2712 2011-06-07  Emil A Eklund  <eae@chromium.org>
2713
2714         Reviewed by Eric Seidel.
2715
2716         Change RenderBlock::hitTestColumns to IntPoint
2717         https://bugs.webkit.org/show_bug.cgi?id=62172
2718
2719         Covered by existing tests.
2720
2721         * rendering/RenderBlock.cpp:
2722         (WebCore::RenderBlock::nodeAtPoint):
2723         (WebCore::RenderBlock::hitTestColumns):
2724         * rendering/RenderBlock.h:
2725
2726 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
2727
2728         Reviewed by Darin Adler.
2729
2730         Opacity transition doesn't work while content property is set.
2731         https://bugs.webkit.org/show_bug.cgi?id=59301
2732         
2733         StyleRareNonInheritedData's copy constructor omitted to copy
2734         the m_content data, which caused us to detach and re-attach the renderer
2735         at the start of the transition, thereby killing the transition.
2736         
2737         Fix by making StyleRareNonInheritedData's copy ctor do the right thing.
2738
2739         Test: transitions/transition-on-element-with-content.html
2740
2741         * rendering/style/ContentData.h:
2742         * rendering/style/ContentData.cpp:
2743         (WebCore::ContentData::clone): New method to do a deep clone. (Can't use a copy
2744         ctor because of the subclasses.)
2745         * rendering/style/CounterDirectives.h: Pack the data members to save space.
2746         Add a clone() function for the HashMap.
2747         * rendering/style/CounterDirectives.cpp:
2748         (WebCore::clone): Make a new HashMap and copy the contents over.
2749         * rendering/style/StyleRareNonInheritedData.cpp:
2750         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): Copy
2751         the content and counter directives over.
2752         (WebCore::StyleRareNonInheritedData::operator==): Rather than just comparing
2753         for pointer equality, do a correct check for m_counterDirectives equality.
2754         (WebCore::StyleRareNonInheritedData::counterDataEquivalent):
2755         * rendering/style/StyleRareNonInheritedData.h:
2756
2757 2011-06-07  Robert Kroeger  <rjkroege@chromium.org>
2758
2759         Reviewed by Adam Barth.
2760
2761         [chromium] Add a basic gesture recognizer to the Chromium platform
2762         https://bugs.webkit.org/show_bug.cgi?id=54417
2763
2764         Adds a basic gesture recognizer to the Chromium platform. Adds an entry
2765         point to the GestureRecognizer to reset any internal state on a page reset.
2766         Resetting the gesture recognizer on page load is necesary for reliable
2767         layout test execution and improves gesture recognizer operational
2768         robustness.
2769
2770         Added an additional constructor to permit building a synthetic
2771         PlatformWheelEvent.
2772
2773         Small modifications to the PlatformGestureRecognizer as required to
2774         implement the simple Chromium platform gesture recognizer.
2775
2776         Tests: fast/events/touch/touch-gesture-click.html
2777
2778         * WebCore.gypi:
2779         * page/EventHandler.cpp:
2780         (WebCore::EventHandler::resetGestureRecognizer):
2781         * page/EventHandler.h:
2782         * page/FrameView.cpp:
2783         (WebCore::FrameView::reset):
2784         * platform/PlatformGestureRecognizer.h:
2785         * platform/PlatformWheelEvent.h:
2786         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
2787         * platform/chromium/GestureRecognizerChromium.cpp: Added.
2788         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
2789         (WebCore::InnerGestureRecognizer::reset):
2790         (WebCore::InnerGestureRecognizer::~InnerGestureRecognizer):
2791         (WebCore::InnerGestureRecognizer::addEdgeFunction):
2792         (WebCore::InnerGestureRecognizer::isInClickTimeWindow):
2793         (WebCore::InnerGestureRecognizer::isInsideManhattanSquare):
2794         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
2795         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
2796         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
2797         (WebCore::InnerGestureRecognizer::updateValues):
2798         (WebCore::InnerGestureRecognizer::signature):
2799         (WebCore::touchDown):
2800         (WebCore::noGesture):
2801         (WebCore::click):
2802         (WebCore::isClickOrScroll):
2803         (WebCore::inScroll):
2804         (WebCore::PlatformGestureRecognizer::create):
2805         (WebCore::PlatformGestureRecognizer::PlatformGestureRecognizer):
2806         (WebCore::PlatformGestureRecognizer::~PlatformGestureRecognizer):
2807         (WebCore::GestureRecognizerChromium::GestureRecognizerChromium):
2808         (WebCore::GestureRecognizerChromium::~GestureRecognizerChromium):
2809         * platform/chromium/GestureRecognizerChromium.h: Added.
2810         (WebCore::InnerGestureRecognizer::setState):
2811         (WebCore::InnerGestureRecognizer::state):
2812         (WebCore::GestureRecognizerChromium::reset):
2813         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
2814
2815 2011-06-07  No'am Rosenthal  <noam.rosenthal@nokia.com>
2816
2817         Reviewed by Andreas Kling.
2818
2819         [Texmap][Qt] Enable TextureMapper by default
2820         https://bugs.webkit.org/show_bug.cgi?id=61740
2821
2822         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
2823         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
2824
2825         No new functionality so no new tests.
2826
2827         * WebCore.pri:
2828         * WebCore.pro:
2829         * platform/graphics/qt/GraphicsContext3DQt.cpp:
2830         * platform/graphics/qt/TextureMapperQt.cpp:
2831         (WebCore::TextureMapper::create):
2832
2833 2011-06-07  Emil A Eklund  <eae@chromium.org>
2834
2835         Reviewed by Eric Seidel.
2836
2837         Convert RenderBox::absoluteRects to IntPoint
2838         https://bugs.webkit.org/show_bug.cgi?id=62130
2839
2840         Covered by existing tests.
2841
2842         * dom/Node.cpp:
2843         (WebCore::Node::hasNonEmptyBoundingBox):
2844         * rendering/InlineBox.h:
2845         (WebCore::InlineBox::size):
2846         * rendering/RenderBlock.cpp:
2847         (WebCore::RenderBlock::absoluteRects):
2848         * rendering/RenderBlock.h:
2849         * rendering/RenderBox.cpp:
2850         (WebCore::RenderBox::absoluteRects):
2851         * rendering/RenderBox.h:
2852         * rendering/RenderInline.cpp:
2853         (WebCore::RenderInline::absoluteRects):
2854         * rendering/RenderInline.h:
2855         * rendering/RenderObject.cpp:
2856         (WebCore::RenderObject::absoluteBoundingBoxRect):
2857         * rendering/RenderObject.h:
2858         (WebCore::RenderObject::absoluteRects):
2859         * rendering/RenderText.cpp:
2860         (WebCore::RenderText::absoluteRects):
2861         * rendering/RenderText.h:
2862         * rendering/RenderView.cpp:
2863         (WebCore::RenderView::absoluteRects):
2864         * rendering/RenderView.h:
2865         * rendering/svg/RenderSVGBlock.cpp:
2866         (WebCore::RenderSVGBlock::absoluteRects):
2867         * rendering/svg/RenderSVGBlock.h:
2868         * rendering/svg/RenderSVGModelObject.cpp:
2869         (WebCore::RenderSVGModelObject::absoluteRects):
2870         * rendering/svg/RenderSVGModelObject.h:
2871
2872 2011-06-07  Kent Tamura  <tkent@chromium.org>
2873
2874         Reviewed by Andreas Kling.
2875
2876         [Qt] RenderThemeQt::adjustSliderThumbSize() should not refer to the parent style.
2877         https://bugs.webkit.org/show_bug.cgi?id=62207
2878
2879         * css/mediaControlsQt.css: Add comments.
2880         (audio::-webkit-media-controls-timeline):
2881         (video::-webkit-media-controls-timeline):
2882         (audio::-webkit-media-controls-volume-slider):
2883         (video::-webkit-media-controls-volume-slider):
2884         * platform/qt/RenderThemeQt.cpp: Use fixed values to avoid referring to o->parent().
2885         (WebCore::RenderThemeQt::adjustSliderThumbSize):
2886
2887 2011-06-07  Sailesh Agrawal  <sail@chromium.org>
2888
2889         Reviewed by Mihai Parparita.
2890
2891         Chromium Mac: Fork ScrollAnimatorMac to ScrollAnimatorChromiumMac for overlay scrollbar support
2892         https://bugs.webkit.org/show_bug.cgi?id=59753
2893
2894         No new tests. Just forking ScrollAnimatorMac to ScrollAnimatorChromiumMac.
2895
2896         * WebCore.gyp/WebCore.gyp: Added IntPointMac.mm. This is used by some functions in ScrollAnimatorChromiumMac. Also added filters for conflicting class names in ScrollAnimatorChromiumMac.
2897         * WebCore.gypi: Added ScrollAnimatorChromiumMac.h/mm.
2898         * platform/ScrollAnimator.cpp: Extended the #ifdef around ScrollAnimator::create() so that the chromium version will be created.
2899         * platform/chromium/ScrollAnimatorChromiumMac.h: Added.
2900         (WebCore::ScrollAnimatorChromiumMac::setIsDrawingIntoLayer):
2901         (WebCore::ScrollAnimatorChromiumMac::isDrawingIntoLayer):
2902         (WebCore::ScrollAnimatorChromiumMac::haveScrolledSincePageLoad):
2903         * platform/chromium/ScrollAnimatorChromiumMac.mm: Added. Forked from ScrollAnimatorMac and replaced all instances of ScrollAnimatorMac with ScrollAnimatorChromiumMac and ScrollbarThemeMac with ScrollbarThemeChromiumMac. Removed the ENABLE(SMOOTH_SCROLLING) around the file. Stubbed out ScrollAnimatorChromiumMac::scroll() if smooth scrolling is disabled.
2904         (abs):
2905         (-[ScrollAnimationHelperDelegate initWithScrollAnimator:WebCore::]):
2906         (-[ScrollAnimationHelperDelegate scrollAnimatorDestroyed]):
2907         (-[ScrollAnimationHelperDelegate bounds]):
2908         (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
2909         (-[ScrollAnimationHelperDelegate _pixelAlignProposedScrollPosition:]):
2910         (-[ScrollAnimationHelperDelegate convertSizeToBase:]):
2911         (-[ScrollAnimationHelperDelegate convertSizeFromBase:]):
2912         (-[ScrollAnimationHelperDelegate convertSizeToBacking:]):
2913         (-[ScrollAnimationHelperDelegate convertSizeFromBacking:]):
2914         (-[ScrollAnimationHelperDelegate superview]):
2915         (-[ScrollAnimationHelperDelegate documentView]):
2916         (-[ScrollAnimationHelperDelegate window]):
2917         (-[ScrollAnimationHelperDelegate _recursiveRecomputeToolTips]):
2918         (-[ScrollbarPainterControllerDelegate initWithScrollAnimator:WebCore::]):
2919         (-[ScrollbarPainterControllerDelegate scrollAnimatorDestroyed]):
2920         (-[ScrollbarPainterControllerDelegate contentAreaRectForScrollerImpPair:]):
2921         (-[ScrollbarPainterControllerDelegate inLiveResizeForScrollerImpPair:]):
2922         (-[ScrollbarPainterControllerDelegate mouseLocationInContentAreaForScrollerImpPair:]):
2923         (-[ScrollbarPainterControllerDelegate scrollerImpPair:convertContentPoint:toScrollerImp:]):
2924         (-[ScrollbarPainterControllerDelegate scrollerImpPair:setContentAreaNeedsDisplayInRect:]):
2925         (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
2926         (-[ScrollbarPartAnimation initWithScrollbarPainter:part:WebCore::scrollAnimator:WebCore::animateAlphaTo:duration:]):
2927         (-[ScrollbarPartAnimation setCurrentProgress:]):
2928         (-[ScrollbarPartAnimation scrollAnimatorDestroyed]):
2929         (-[ScrollbarPainterDelegate initWithScrollAnimator:WebCore::]):
2930         (-[ScrollbarPainterDelegate cancelAnimations]):
2931         (-[ScrollbarPainterDelegate convertRectToBacking:]):
2932         (-[ScrollbarPainterDelegate convertRectFromBacking:]):
2933         (-[ScrollbarPainterDelegate layer]):
2934         (-[ScrollbarPainterDelegate setUpAnimation:scrollerPainter:part:WebCore::animateAlphaTo:duration:]):
2935         (-[ScrollbarPainterDelegate scrollerImp:animateKnobAlphaTo:duration:]):
2936         (-[ScrollbarPainterDelegate scrollerImp:animateTrackAlphaTo:duration:]):
2937         (-[ScrollbarPainterDelegate scrollerImp:overlayScrollerStateChangedTo:]):
2938         (-[ScrollbarPainterDelegate scrollAnimatorDestroyed]):
2939         (WebCore::ScrollAnimator::create):
2940         (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
2941         (WebCore::ScrollAnimatorChromiumMac::~ScrollAnimatorChromiumMac):
2942         (WebCore::ScrollAnimatorChromiumMac::scroll):
2943         (WebCore::ScrollAnimatorChromiumMac::scrollToOffsetWithoutAnimation):
2944         (WebCore::ScrollAnimatorChromiumMac::adjustScrollXPositionIfNecessary):
2945         (WebCore::ScrollAnimatorChromiumMac::adjustScrollYPositionIfNecessary):
2946         (WebCore::ScrollAnimatorChromiumMac::adjustScrollPositionIfNecessary):
2947         (WebCore::ScrollAnimatorChromiumMac::immediateScrollToPoint):
2948         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaX):
2949         (WebCore::ScrollAnimatorChromiumMac::immediateScrollByDeltaY):
2950         (WebCore::ScrollAnimatorChromiumMac::notityPositionChanged):
2951         (WebCore::ScrollAnimatorChromiumMac::contentAreaWillPaint):
2952         (WebCore::ScrollAnimatorChromiumMac::mouseEnteredContentArea):
2953         (WebCore::ScrollAnimatorChromiumMac::mouseExitedContentArea):
2954         (WebCore::ScrollAnimatorChromiumMac::mouseMovedInContentArea):
2955         (WebCore::ScrollAnimatorChromiumMac::willStartLiveResize):
2956         (WebCore::ScrollAnimatorChromiumMac::contentsResized):
2957         (WebCore::ScrollAnimatorChromiumMac::willEndLiveResize):
2958         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidShow):
2959         (WebCore::ScrollAnimatorChromiumMac::contentAreaDidHide):
2960         (WebCore::ScrollAnimatorChromiumMac::didBeginScrollGesture):
2961         (WebCore::ScrollAnimatorChromiumMac::didEndScrollGesture):
2962         (WebCore::ScrollAnimatorChromiumMac::didAddVerticalScrollbar):
2963         (WebCore::ScrollAnimatorChromiumMac::willRemoveVerticalScrollbar):
2964         (WebCore::ScrollAnimatorChromiumMac::didAddHorizontalScrollbar):
2965         (WebCore::ScrollAnimatorChromiumMac::willRemoveHorizontalScrollbar):
2966         (WebCore::ScrollAnimatorChromiumMac::cancelAnimations):
2967         (WebCore::elasticDeltaForTimeDelta):
2968         (WebCore::elasticDeltaForReboundDelta):
2969         (WebCore::reboundDeltaForElasticDelta):
2970         (WebCore::scrollWheelMultiplier):
2971         (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
2972         (WebCore::ScrollAnimatorChromiumMac::handleGestureEvent):
2973         (WebCore::ScrollAnimatorChromiumMac::pinnedInDirection):
2974         (WebCore::ScrollAnimatorChromiumMac::allowsVerticalStretching):
2975         (WebCore::ScrollAnimatorChromiumMac::allowsHorizontalStretching):
2976         (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
2977         (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
2978         (WebCore::ScrollAnimatorChromiumMac::endScrollGesture):
2979         (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
2980         (WebCore::roundTowardZero):
2981         (WebCore::roundToDevicePixelTowardZero):
2982         (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
2983         (WebCore::ScrollAnimatorChromiumMac::startScrollbarPaintTimer):
2984         (WebCore::ScrollAnimatorChromiumMac::scrollbarPaintTimerIsActive):
2985         (WebCore::ScrollAnimatorChromiumMac::stopScrollbarPaintTimer):
2986         (WebCore::ScrollAnimatorChromiumMac::initialScrollbarPaintTimerFired):
2987         (WebCore::ScrollAnimatorChromiumMac::setVisibleScrollerThumbRect):
2988         * platform/graphics/IntPoint.h: Exposed NSPoint conversion routines to chromium mac.
2989
2990 2011-06-07  Sam Weinig  <sam@webkit.org>
2991
2992         Reviewed by Anders Carlsson.
2993
2994         Remove repeated IPC traffic from SetRenderTreeSize message
2995         https://bugs.webkit.org/show_bug.cgi?id=62244
2996
2997         * WebCore.xcodeproj/project.pbxproj:
2998         Make RenderArena.h private so it can be called from WebKit2.
2999
3000         * loader/FrameLoaderClient.h:
3001         (WebCore::FrameLoaderClient::dispatchDidLayout):
3002         Added.
3003
3004         * page/ChromeClient.h:
3005         Remove setRenderTreeSize.
3006
3007         * page/FrameView.cpp:
3008         (WebCore::FrameView::performPostLayoutTasks):
3009         Call dispatchDidLayout for all frames instead of calling setRenderTreeSize
3010         for the main frame.
3011
3012 2011-06-07  Emil A Eklund  <eae@chromium.org>
3013
3014         Reviewed by Eric Seidel.
3015
3016         Change RenderBlock::hitTestContents to IntPoint
3017         https://bugs.webkit.org/show_bug.cgi?id=62170
3018
3019         Covered by existing tests.
3020
3021         * rendering/RenderBlock.cpp:
3022         (WebCore::RenderBlock::nodeAtPoint):
3023         (WebCore::RenderBlock::hitTestColumns):
3024         (WebCore::RenderBlock::hitTestContents):
3025         * rendering/RenderBlock.h:
3026
3027 2011-06-07  Jer Noble  <jer.noble@apple.com>
3028
3029         Reviewed by Eric Carlson.
3030
3031         Video with poster attribute will not display new frames when scrubbing.
3032         https://bugs.webkit.org/show_bug.cgi?id=62036
3033
3034         Remove our "detection" about the end of a scrub now that there is an explicit seek completion
3035         handler available in AVFoundation.  Move what we used to do upon detection in timeChanged()
3036         into seekCompleted().
3037
3038         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
3039         (WebCore::MediaPlayerPrivateAVFoundation::timeChanged): 
3040         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
3041
3042 2011-06-07  James Simonsen  <simonjam@chromium.org>
3043
3044         Unreviewed, build fix, missing files from r88274.
3045
3046         * bindings/v8/ChildThreadDOMData.cpp: Added.
3047         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
3048         (WebCore::ChildThreadDOMData::getStore):
3049         * bindings/v8/ChildThreadDOMData.h: Added.
3050         * bindings/v8/MainThreadDOMData.cpp: Added.
3051         (WebCore::MainThreadDOMData::MainThreadDOMData):
3052         (WebCore::MainThreadDOMData::getCurrent):
3053         (WebCore::MainThreadDOMData::getMainThreadStore):
3054         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
3055         * bindings/v8/MainThreadDOMData.h: Added.
3056         (WebCore::MainThreadDOMData::getStore):
3057
3058 2011-06-07  Abhishek Arya  <inferno@chromium.org>
3059
3060         Reviewed by Dan Bernstein.
3061
3062         Replicate WidthIterator.cpp fix from r88139.
3063         https://bugs.webkit.org/show_bug.cgi?id=62238
3064
3065         No new tests. Covered by existing layout tests on XP debug bots.
3066
3067         * platform/graphics/win/UniscribeController.cpp:
3068         (WebCore::UniscribeController::advance):
3069
3070 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
3071
3072         Unreviewed, rolling out r88221, r88224, and r88231.
3073         http://trac.webkit.org/changeset/88221
3074         http://trac.webkit.org/changeset/88224
3075         http://trac.webkit.org/changeset/88231
3076         https://bugs.webkit.org/show_bug.cgi?id=62233
3077
3078         assert failure on chromium linux debug (Requested by simonjam
3079         on #webkit).
3080
3081         * WebCore.gypi:
3082         * WebCore.pro:
3083         * bindings/v8/ChildThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
3084         (WebCore::ChildThreadDOMData::ChildThreadDOMData):
3085         (WebCore::ChildThreadDOMData::getStore):
3086         * bindings/v8/ChildThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
3087         * bindings/v8/DOMData.cpp:
3088         (WebCore::DOMData::DOMData):
3089         (WebCore::DOMData::getCurrent):
3090         * bindings/v8/DOMData.h:
3091         (WebCore::DOMData::owningThread):
3092         (WebCore::DOMData::handleWeakObject):
3093         * bindings/v8/DOMDataStore.cpp:
3094         (WebCore::DOMDataStore::DOMDataStore):
3095         (WebCore::DOMDataStore::~DOMDataStore):
3096         (WebCore::DOMDataStore::allStoresMutex):
3097         (WebCore::DOMDataStore::weakNodeCallback):
3098         * bindings/v8/DOMDataStore.h:
3099         * bindings/v8/MainThreadDOMData.cpp: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
3100         (WebCore::MainThreadDOMData::MainThreadDOMData):
3101         (WebCore::MainThreadDOMData::getCurrent):
3102         (WebCore::MainThreadDOMData::getMainThreadStore):
3103         (WebCore::MainThreadDOMData::getCurrentMainThreadStore):
3104         * bindings/v8/MainThreadDOMData.h: Copied from Source/WebCore/bindings/v8/DOMData.cpp.
3105         (WebCore::MainThreadDOMData::getStore):
3106         * bindings/v8/V8DOMMap.cpp:
3107         (WebCore::getDOMDataStore):
3108         (WebCore::removeAllDOMObjectsInCurrentThread):
3109         (WebCore::visitDOMNodesInCurrentThread):
3110         (WebCore::visitDOMObjectsInCurrentThread):
3111         (WebCore::visitActiveDOMObjectsInCurrentThread):
3112         (WebCore::visitDOMSVGElementInstancesInCurrentThread):
3113         * bindings/v8/V8DOMMap.h:
3114         * bindings/v8/V8GCController.cpp:
3115         (WebCore::V8GCController::gcPrologue):
3116         (WebCore::V8GCController::gcEpilogue):
3117         * bindings/v8/WorkerScriptController.cpp:
3118         (WebCore::WorkerScriptController::~WorkerScriptController):
3119
3120 2011-06-07  Simon Fraser  <simon.fraser@apple.com>
3121
3122         Reviewed by Dave Hyatt.
3123
3124         Clean up ContentData
3125         https://bugs.webkit.org/show_bug.cgi?id=62185
3126
3127         ContentData did manual ref()/deref() and had a lot of awkward
3128         code from using a union to store data.
3129         
3130         Clean this up by adding ContentData subclasses for different
3131         content types, which are then able to use RefPtr and OwnPtr
3132         as appropriate.
3133
3134         * css/CSSComputedStyleDeclaration.cpp:
3135         (WebCore::contentToCSSValue): Cast to different ContentData types as
3136         appropriate.
3137
3138         * css/CSSStyleSelector.cpp: 
3139         (WebCore::CSSStyleSelector::loadPendingImages): Cast to ImageContentData, and do some
3140         const gyrations.
3141
3142         * html/HTMLBRElement.cpp:
3143         (WebCore::HTMLBRElement::createRenderer): Use hasContent().
3144         * html/HTMLFrameSetElement.cpp:
3145         (WebCore::HTMLFrameSetElement::createRenderer): Ditto
3146         * html/HTMLImageElement.cpp:
3147         (WebCore::HTMLImageElement::createRenderer): Ditto
3148         * rendering/RenderObject.cpp:
3149         (WebCore::RenderObject::createObject): Cast to ImageContentData.
3150         * rendering/RenderObjectChildList.cpp:
3151         (WebCore::RenderObjectChildList::updateBeforeAfterContent): Cast to different ContentData types as
3152         appropriate.
3153
3154         * rendering/style/ContentData.h:
3155         (WebCore::ContentData::~ContentData):
3156         (WebCore::ContentData::isCounter):
3157         (WebCore::ContentData::isImage):
3158         (WebCore::ContentData::isQuote):
3159         (WebCore::ContentData::isText):
3160         (WebCore::ContentData::next):
3161         (WebCore::ContentData::setNext):
3162         (WebCore::ImageContentData::image):
3163         (WebCore::ImageContentData::setImage):
3164         (WebCore::ImageContentData::ImageContentData):
3165         (WebCore::ImageContentData::type):
3166         (WebCore::ImageContentData::isImage):
3167         (WebCore::TextContentData::text):
3168         (WebCore::TextContentData::setText):
3169         (WebCore::TextContentData::TextContentData):
3170         (WebCore::TextContentData::type):
3171         (WebCore::TextContentData::isText):
3172         (WebCore::CounterContentData::counter):
3173         (WebCore::CounterContentData::setCounter):
3174         (WebCore::CounterContentData::CounterContentData):
3175         (WebCore::CounterContentData::type):
3176         (WebCore::CounterContentData::isCounter):
3177         (WebCore::QuoteContentData::quote):
3178         (WebCore::QuoteContentData::setQuote):
3179         (WebCore::QuoteContentData::QuoteContentData):
3180         (WebCore::QuoteContentData::type):
3181         (WebCore::QuoteContentData::isQuote):
3182         Add subclasses for different content types, which are created
3183         via overloaded create() methods on the base class.
3184
3185         * rendering/style/ContentData.cpp:
3186         (WebCore::ContentData::create):
3187         (WebCore::operator==): Test for type equality, followed by comparing data.
3188         (WebCore::operator!=):
3189
3190         * rendering/style/RenderStyle.cpp:
3191         (WebCore::RenderStyle::clearContent):
3192         (WebCore::RenderStyle::appendContent): 
3193         (WebCore::RenderStyle::setContent): Replace the overly complex prepareToSetContent()
3194         code with code that either appends, or replaces the content.
3195         This loses an optimization where the existing ContentData object could get reused,
3196         but this seems to be rarely hit in practice.
3197         * rendering/style/RenderStyle.h:
3198         (WebCore::InheritedFlags::hasContent): Convenience method.
3199         * rendering/style/StyleRareNonInheritedData.cpp:
3200         (WebCore::StyleRareNonInheritedData::contentDataEquivalent): Test
3201         that the pointers are non-null, then use the != operator.
3202         * rendering/style/StyleRareNonInheritedData.h: ContentData is a class now.
3203
3204 2011-06-07  Brian Weinstein  <bweinstein@apple.com>
3205
3206         Build fix after r88260.
3207
3208         * platform/graphics/win/FontCacheWin.cpp:
3209         (WebCore::FontCache::getFontDataForCharacters): Update to use enum instead of bool.
3210         * platform/graphics/wince/FontCacheWinCE.cpp:
3211
3212 2011-06-07  Rob Buis  <rbuis@rim.com>
3213
3214         Reviewed by Dirk Schulze.
3215
3216         stroke-dasharray does not handle "none"
3217         https://bugs.webkit.org/show_bug.cgi?id=62203
3218
3219         Use the initial strokeDashArray style for stroke-dasharray="none" to apply to SVGRenderStyle rather than bailing out.
3220
3221         Tests: svg/W3C-SVG-1.1-SE/styling-css-04-f.svg
3222                svg/custom/invalid-dasharray.svg
3223
3224         * css/SVGCSSStyleSelector.cpp:
3225         (WebCore::CSSStyleSelector::applySVGProperty):
3226
3227 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
3228
3229         Unreviewed, rolling out r88259 and r88263.
3230         http://trac.webkit.org/changeset/88259
3231         http://trac.webkit.org/changeset/88263
3232         https://bugs.webkit.org/show_bug.cgi?id=62228
3233
3234         broke builds (Requested by rniwa on #webkit).
3235
3236         * platform/mac/WebCoreSystemInterface.h:
3237         * platform/network/ResourceHandle.h:
3238         * platform/network/cf/ResourceRequest.h:
3239
3240 2011-06-07  Emil A Eklund  <eae@chromium.org>
3241
3242         Reviewed by Eric Seidel.
3243
3244         Switch ContainerNode to use IntPoint
3245         https://bugs.webkit.org/show_bug.cgi?id=61893
3246
3247         Covered by existing tests.
3248
3249         * dom/ContainerNode.cpp:
3250         (WebCore::ContainerNode::getUpperLeftCorner):
3251         (WebCore::ContainerNode::getLowerRightCorner):
3252         (WebCore::ContainerNode::getRect):
3253         Change to use maxX/maxY instead of x+width/y+height
3254         
3255         * platform/graphics/FloatPoint.h:
3256         (WebCore::FloatPoint::move):
3257         (WebCore::FloatPoint::moveBy):
3258         (WebCore::FloatPoint::expandedTo):
3259         Add move, moveBy and expandedTo mirroring the IntPoint implementation of the same.
3260
3261 2011-06-07  Ryosuke Niwa  <rniwa@webkit.org>
3262
3263         Speculative build fix after r88259.
3264
3265         * platform/network/cf/ResourceRequest.h:
3266
3267 2011-06-07  Michael Saboff  <msaboff@apple.com>
3268
3269         Reviewed by Geoffrey Garen.
3270
3271         Need to enable font cache purging in MemoryPressureHandler
3272         https://bugs.webkit.org/show_bug.cgi?id=62060
3273
3274         Improve memory usage under pressure.
3275         Added call to fontCache()->purgeInactiveFontData() in 
3276         MemoryPressureHandler::respondToMemoryPressure().  Added protection to 
3277         MemoryPressureHandler::install() being called multiple times.
3278
3279         No new tests as funtionality wasn't changed.
3280
3281         * platform/MemoryPressureHandler.cpp:
3282         (WebCore::MemoryPressureHandler::MemoryPressureHandler):
3283         * platform/MemoryPressureHandler.h:
3284         * platform/mac/MemoryPressureHandlerMac.mm:
3285         (WebCore::MemoryPressureHandler::install):
3286         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
3287
3288 2011-06-07  Michael Saboff  <msaboff@apple.com>
3289
3290         Reviewed by Geoffrey Garen.
3291
3292         Fonts returned by FontCache::getFontDataForCharacters() are never released
3293         https://bugs.webkit.org/show_bug.cgi?id=61875
3294
3295         This change allows fonts allocated as system fallback fonts to be 
3296         released.  Previously, the reference counts for these fonts grew 
3297         without bound.  This is implemented as an auto release class that wraps
3298         accesses to the cache for system fallback fonts. All such accesses are
3299         via the method FontCache::getFontDataForCharacters. The new class is
3300         called FontCachePurgePreventer. When such an object exists, it protects
3301         these fonts from deletion.
3302
3303         Most accesses to the font cache still use the reference counting
3304         implemented by FontCache::getCacheFontData() and 
3305         FontCache::releaseFontData() and that operation is not affected by
3306         this change.
3307
3308         Added local scoped instance of FontCachePurgePreventer to wrap code
3309         that directly or indirectly accesses fonts via getFontDataForCharacters.
3310         Did a few other miscellaneous bug fixes and changes to allow system
3311         fallback fonts to be pruned from the GlyphPageTree. Changed the
3312         calls to getFontData in the platform specific versions of
3313         Fontcache::getFontDataForCharacters to not increment the reference
3314         count.  Moved the purge font check
3315         outside of FontCache::getCachedFontData() into a separate method, 
3316         purgeInactiveFontDataIfNeeded() since almost all calls to 
3317         getCachedFontData() now happen when purging is not allowed.
3318         purgeInactiveFontDataIfNeeded is invoked in enablePurging() when
3319         m_purgePreventCount is 0.
3320
3321         No new test as the functionality has not changed. Improved font life
3322         cycle management.
3323
3324         * WebCore.exp.in: Added FontCache::purgeInactiveFontDataIfNeeded().
3325         * html/canvas/CanvasRenderingContext2D.cpp:
3326         (WebCore::CanvasRenderingContext2D::measureText):
3327         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3328         Wrapped code accessing fallback fonts with local 
3329         FontCachePurgePreventer in these methods.
3330
3331         * page/FrameView.cpp:
3332         (WebCore::FrameView::layout):
3333         (WebCore::FrameView::paintContents):
3334         Wrapped code accessing fallback fonts with local 
3335         FontCachePurgePreventer in these methods.
3336
3337         * platform/graphics/FontCache.cpp:
3338         (WebCore::FontCache::FontCache):
3339         (WebCore::FontCache::getCachedFontData):
3340         Moved purge check to new method since it likely can't happen here.
3341         (WebCore::FontCache::releaseFontData):
3342         (WebCore::FontCache::purgeInactiveFontDataIfNeeded):
3343         (WebCore::FontCache::purgeInactiveFontData):
3344         Made purging conditional on m_purgePreventCount.  Now some fonts
3345         in the cache are reference counted while other can be purged 
3346         outside of code wrapped by in scope FontCachePurgePreventer objects.
3347
3348         * platform/graphics/FontCache.h:
3349         (WebCore::FontCache::disablePurging):
3350         (WebCore::FontCache::enablePurging):
3351         (WebCore::FontCachePurgePreventer::FontCachePurgePreventer):
3352         (WebCore::FontCachePurgePreventer::~FontCachePurgePreventer):
3353         Added new simple purge prevention wrapper class and methods
3354         that it calls in FontCache actually prevent purging.  The
3355         simple methods inlined to reduce overhead.
3356
3357         * platform/graphics/FontFastPath.cpp:
3358         (WebCore::Font::glyphDataForCharacter): Update level in 
3359         glyph page tree for system fallback fonts so pruning works.
3360
3361         * platform/graphics/GlyphPage.h:
3362         (WebCore::GlyphPage::clearForFontData): New method used for pruning
3363         * platform/graphics/GlyphPageTreeNode.cpp:
3364         (WebCore::GlyphPageTreeNode::pruneFontData):
3365         Now we prune system fallback fonts.
3366
3367         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
3368         (WebCore::FontCache::getFontDataForCharacters):
3369         * platform/graphics/freetype/FontCacheFreeType.cpp:
3370         (WebCore::FontCache::getFontDataForCharacters):
3371         * platform/graphics/haiku/FontCacheHaiku.cpp:
3372         (WebCore::FontCache::getFontDataForCharacters):
3373         * platform/graphics/mac/FontCacheMac.mm:
3374         (WebCore::FontCache::getFontDataForCharacters):
3375         * platform/graphics/qt/FontCacheQt.cpp:
3376         (WebCore::FontCache::getFontDataForCharacters):
3377         * platform/graphics/win/FontCacheWin.cpp:
3378         (WebCore::FontCache::getFontDataForCharacters):
3379         * platform/graphics/wince/FontCacheWinCE.cpp:
3380         * platform/graphics/wx/FontCacheWx.cpp:
3381         (WebCore::FontCache::getFontDataForCharacters):
3382         Changed the calls to getFontData() to not increment the reference
3383         count. The caller of this getFontDataForCharacters() (currently only
3384         Font::glyphDataForCharacter() in fontFastPath.cpp) and it's callers
3385         don't attempt to release the returned fonts so we use the purge
3386         protection described above.
3387
3388         * rendering/InlineTextBox.cpp:
3389         (WebCore::InlineTextBox::selectionRect):
3390         (WebCore::InlineTextBox::offsetForPosition):
3391         (WebCore::InlineTextBox::positionForOffset):
3392         Wrapped code accessing fallback fonts with local
3393         FontCachePurgePreventer in these methods.
3394
3395         * rendering/RenderImage.cpp:
3396         (WebCore::RenderImage::setImageSizeForAltText):
3397         Wrapped code accessing fallback fonts with local
3398         FontCachePurgePreventer in this method.
3399
3400         * rendering/RenderListBox.cpp:
3401         (WebCore::RenderListBox::updateFromElement):
3402         (WebCore::RenderListBox::paintItemForeground):
3403         Wrapped code accessing fallback fonts with local
3404         FontCachePurgePreventer in these methods
3405
3406         * rendering/svg/SVGInlineTextBox.cpp:
3407         (WebCore::SVGInlineTextBox::selectionRectForTextFragment):
3408         Wrapped code accessing fallback fonts with local
3409         FontCachePurgePreventer in this method.
3410
3411 2011-06-07  Tim Horton  <timothy_horton@apple.com>
3412
3413         Reviewed by Alexey Proskuryakov.
3414
3415         Use correct CFURLStorageSessionRef definition on Snow Leopard
3416         https://bugs.webkit.org/show_bug.cgi?id=62223
3417
3418         * platform/mac/WebCoreSystemInterface.h:
3419         * platform/network/ResourceHandle.h:
3420         * platform/network/cf/ResourceRequest.h:
3421
3422 2011-06-07  Alok Priyadarshi  <alokp@chromium.org>
3423
3424         Reviewed by Stephen White.
3425
3426         [chromium] PlatformContextSkia leaks SkDeviceFactory
3427         https://bugs.webkit.org/show_bug.cgi?id=62163
3428
3429         Valgrind tests should have caught this.
3430
3431         * platform/graphics/skia/PlatformContextSkia.cpp:
3432         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
3433
3434 2011-06-07  Emil A Eklund  <eae@chromium.org>
3435
3436         Reviewed by Eric Seidel.
3437
3438         Convert RenderTextControl::hitInnerTextElement to IntPoint
3439         https://bugs.webkit.org/show_bug.cgi?id=62167
3440
3441         Covered by existing tests.
3442
3443         * rendering/RenderTextControl.cpp:
3444         (WebCore::RenderTextControl::hitInnerTextElement):
3445         * rendering/RenderTextControl.h:
3446         * rendering/RenderTextControlMultiLine.cpp:
3447         (WebCore::RenderTextControlMultiLine::nodeAtPoint):
3448         * rendering/RenderTextControlSingleLine.cpp:
3449         (WebCore::RenderTextControlSingleLine::nodeAtPoint):
3450
3451 2011-06-07  Levi Weintraub  <leviw@chromium.org>
3452
3453         Reviewed by Eric Seidel.
3454
3455         Switch paint to use IntPoint
3456         https://bugs.webkit.org/show_bug.cgi?id=62177
3457
3458         Flipping the switch on the remaining paint functions to have them all
3459         use IntPoint for the paint offset instead of tx/ty.
3460
3461         No new tests since this is just refactoring.
3462
3463         * page/FrameView.cpp:
3464         (WebCore::FrameView::paintScrollCorner):
3465         * rendering/InlineBox.cpp:
3466         (WebCore::InlineBox::paint):
3467         * rendering/RenderBlock.cpp:
3468         (WebCore::RenderBlock::paint):
3469         (WebCore::RenderBlock::paintContents):
3470         (WebCore::RenderBlock::paintChildren):
3471         (WebCore::RenderBlock::paintFloats):
3472         * rendering/RenderBlock.h:
3473         * rendering/RenderBox.cpp:
3474         (WebCore::RenderBox::paint):
3475         * rendering/RenderBox.h:
3476         * rendering/RenderBoxModelObject.cpp:
3477         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
3478         * rendering/RenderDetailsMarker.cpp:
3479         (WebCore::RenderDetailsMarker::paint):
3480         * rendering/RenderDetailsMarker.h:
3481         * rendering/RenderEmbeddedObject.cpp:
3482         (WebCore::RenderEmbeddedObject::paint):
3483         * rendering/RenderEmbeddedObject.h:
3484         * rendering/RenderFrameSet.cpp:
3485         (WebCore::RenderFrameSet::paint):
3486         * rendering/RenderFrameSet.h:
3487         * rendering/RenderImage.cpp:
3488         (WebCore::RenderImage::paint):
3489