5953e92e201dee96664ef0d403aad6b53c4aa4c0
[WebKit-https.git] / WebCore / ChangeLog
1 2010-10-19  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r70034.
4         http://trac.webkit.org/changeset/70034
5         https://bugs.webkit.org/show_bug.cgi?id=47889
6
7         "Gustavo's bot is lame" (Requested by xan_ on #webkit).
8
9         * platform/network/soup/CookieJarSoup.cpp:
10         (WebCore::defaultCookieJar):
11         (WebCore::setCookies):
12         * platform/network/soup/ResourceHandleSoup.cpp:
13         (WebCore::ResourceHandle::prepareForURL):
14         (WebCore::restartedCallback):
15         (WebCore::startHttp):
16         * platform/network/soup/ResourceRequestSoup.cpp:
17         (WebCore::ResourceRequest::toSoupMessage):
18         (WebCore::ResourceRequest::updateFromSoupMessage):
19
20 2010-10-19  Xan Lopez  <xlopez@igalia.com>
21
22         Reviewed by Martin Robinson.
23
24         [GTK] Bump minimum requirement for libsoup to 2.30
25         https://bugs.webkit.org/show_bug.cgi?id=46176
26
27         Bump minimum required libsoup version to 2.30.
28
29         * platform/network/soup/CookieJarSoup.cpp:
30         (WebCore::defaultCookieJar):
31         (WebCore::setCookies):
32         * platform/network/soup/ResourceHandleSoup.cpp:
33         (WebCore::ResourceHandle::prepareForURL):
34         (WebCore::restartedCallback):
35         (WebCore::startHttp):
36         * platform/network/soup/ResourceRequestSoup.cpp:
37         (WebCore::ResourceRequest::toSoupMessage):
38         (WebCore::ResourceRequest::updateFromSoupMessage):
39
40 2010-10-19  Xan Lopez  <xlopez@igalia.com>
41
42         Reviewed by Martin Robinson.
43
44         Fix distcheck, take 2.
45
46         * GNUmakefile.am: also move the generated CSS hash files to the
47         build dir.
48
49 2010-10-18  Kent Tamura  <tkent@chromium.org>
50
51         Reviewed by Dimitri Glazkov.
52
53         Should not save state of a detached form control.
54         https://bugs.webkit.org/show_bug.cgi?id=47811
55
56         Test: fast/forms/state-save-of-detached-control.html
57
58         * html/HTMLFormControlElement.cpp:
59         (WebCore::HTMLFormControlElementWithState::shouldSaveAndRestoreFormControlState):
60           If the node is detached, don't save the state.
61
62 2010-10-18  Xan Lopez  <xlopez@igalia.com>
63
64         Reviewed by Martin Robinson.
65
66         * GNUmakefile.am: add missing files.
67
68 2010-10-18  Oliver Hunt  <oliver@apple.com>
69
70         Reviewed by Sam Weinig.
71
72         REGRESSION: Feedly extension crashes Webkit
73         https://bugs.webkit.org/show_bug.cgi?id=45811
74
75         The basic problem was the deserializer was holding a pointer into
76         the constant pool, but if you were sufficiently unlucky then the
77         constant pool would be moved while still relying on the pointer,
78         which leads to badness.
79
80         I looked at just making all the sites this could happen extract the
81         right string/jsstring before any possible allocations, but it seemed
82         too fragile so i've gone for a forwarding object as the solution.
83
84         * bindings/js/SerializedScriptValue.cpp:
85         (WebCore::CloneDeserializer::CachedStringRef::CachedStringRef):
86         (WebCore::CloneDeserializer::CachedStringRef::operator->):
87         (WebCore::CloneDeserializer::readStringData):
88         (WebCore::CloneDeserializer::readFile):
89         (WebCore::CloneDeserializer::readTerminal):
90         (WebCore::CloneDeserializer::deserialize):
91
92 2010-10-18  Chris Rogers  <crogers@google.com>
93
94         Reviewed by Chris Fleizach.
95
96         Add AudioResampler files
97         https://bugs.webkit.org/show_bug.cgi?id=47623
98
99         No new tests since audio API is not yet implemented.
100
101         * platform/audio/AudioResampler.cpp: Added.
102         (WebCore::AudioResampler::AudioResampler):
103         (WebCore::AudioResampler::configureChannels):
104         (WebCore::AudioResampler::process):
105         (WebCore::AudioResampler::setRate):
106         (WebCore::AudioResampler::reset):
107         * platform/audio/AudioResampler.h: Added.
108         (WebCore::AudioResampler::~AudioResampler):
109         (WebCore::AudioResampler::rate):
110
111 2010-10-18  Vangelis Kokkevis  <vangelis@chromium.org>
112
113         Reviewed by James Robinson.
114
115         [chromium] Prevent the creation of very large textures for layers by switching
116         to "large layer" mode when a texture is larger than some fixed reasonable size
117         (set to 2000 pixels for now).
118         https://bugs.webkit.org/show_bug.cgi?id=47751
119
120         The code also changes the large layer logic to use the current scissor rect used
121         by the compositor instead of the visible rect to determine how to clip large layers.
122         This will provide additional texture savings. In addition, the various layer rects
123         have been converted to use integers instead of floats to preserve uniformity in the code.
124         
125         Tests: Existing large layer layout tests including huge-layer and huge-layer-img
126
127         * platform/graphics/chromium/ContentLayerChromium.cpp:
128         (WebCore::ContentLayerChromium::requiresClippedUpdateRect):
129         (WebCore::ContentLayerChromium::calculateClippedUpdateRect):
130         * platform/graphics/chromium/LayerChromium.cpp:
131         (WebCore::LayerChromium::getDrawRect):
132         * platform/graphics/chromium/LayerChromium.h:
133         * platform/graphics/chromium/LayerRendererChromium.cpp:
134         (WebCore::LayerRendererChromium::drawLayers):
135         (WebCore::LayerRendererChromium::drawLayersRecursive):
136         (WebCore::LayerRendererChromium::scissorToRect):
137         * platform/graphics/chromium/LayerRendererChromium.h:
138         (WebCore::LayerRendererChromium::currentScissorRect):
139
140 2010-10-18  Jia Pu  <jpu@apple.com>
141
142         Reviewed by Stephanie Lewis.
143
144         Correct the description of manual test: autocorrection-cancelled-by-typing-1.html
145         https://bugs.webkit.org/show_bug.cgi?id=47722
146         <rdar://problem/8556206>
147
148         * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Update description
149           to match the test content.
150
151 2010-10-18  Martin Robinson  <mrobinson@igalia.com>
152
153         Build fix for newer versions of GTK+ 2.0. Instead of using GDK_DISPLAY()
154         use GDK_DRAWABLE_XDISPLAY(gdk_display_get_default()). GDK_DISPLAY() was
155         recently deprecated and the latter method has been available since GTK+
156         2.2.
157
158         * plugins/gtk/PluginViewGtk.cpp:
159         (WebCore::PluginView::updatePluginWidget):
160         (WebCore::PluginView::paint):
161         (WebCore::PluginView::initXEvent):
162         (WebCore::PluginView::platformGetValue):
163         (WebCore::getVisualAndColormap):
164         (WebCore::PluginView::platformStart):
165         (WebCore::PluginView::platformDestroy):
166
167 2010-10-18  Ryosuke Niwa  <rniwa@webkit.org>
168
169         Reviewed by Adam Barth.
170
171         elementCannotHaveEndTag should be a member function of MarkupAccumulator
172         https://bugs.webkit.org/show_bug.cgi?id=47846
173
174         Moved elementCannotHaveEndTag into MarkupAccumulator.
175
176         No new tests are added since this is a cleanup.
177
178         * editing/MarkupAccumulator.cpp:
179         (WebCore::MarkupAccumulator::elementCannotHaveEndTag): Added.
180         * editing/MarkupAccumulator.h: Added MarkupAccumulator::elementCannotHaveEndTag.
181         * editing/markup.cpp: Removed elementCannotHaveEndTag.
182         * editing/markup.h: Removed elementCannotHaveEndTag.
183
184 2010-10-18  Johnny Ding  <jnd@chromium.org>
185
186         Reviewed by Adam Barth.
187
188         Set the right referent sourceURL for the script with force user gesture.
189         https://bugs.webkit.org/show_bug.cgi?id=37138
190
191         Because empty sourceURL indicates running script with force user gesture,
192         make WebKit use document.url() as referent sourceURL (Since it uses blank
193         URL instead empty if the input URL is empty) if WebKit isn't running the
194         script from a hyper-link.
195
196         Test: fast/events/popup-blocked-from-window-open.html
197
198         * bindings/ScriptControllerBase.cpp:
199         (WebCore::ScriptController::executeScript):
200         * bindings/js/ScriptController.cpp:
201         (WebCore::ScriptController::executeScriptInWorld):
202
203 2010-10-18  Darin Adler  <darin@apple.com>
204
205         * dom/Node.h: Fix ancient typo in just-modified comment.
206
207 2010-10-18  Darin Adler  <darin@apple.com>
208
209         Reviewed by Alexey Proskuryakov.
210
211         Remove some functions from class Node and make a few others non-virtual
212         https://bugs.webkit.org/show_bug.cgi?id=47735
213
214         Refactoring. No new tests.
215
216         * bindings/js/JSNodeCustom.cpp:
217         (WebCore::JSNode::markChildren): Added a FIXME about the use of the virtual
218         ownerDocument function.
219
220         * dom/ContainerNode.cpp:
221         (WebCore::ContainerNode::removeChildren): Removed the unused return value.
222
223         * dom/ContainerNode.h: Made insertBefore, replaceChild, removeChild, and
224         appendChild non-virtual for clarity and performance. Made removeChildren
225         non-virtual and removed its return value. Moved the inline Node functions
226         that call through to ContainerNode into this file since the old way involved
227         an extra level of inline function but otherwise had no advantages.
228
229         * dom/Element.h: Moved isMathMLElement here because there is no call site
230         that needs to call it on a Node*. We can always move it back if we need to,
231         but it's better to have less in the Node class.
232
233         * dom/Node.cpp:
234         (WebCore::Node::insertBefore): Added an isContainerNode check so this can
235         be non-virtual. There are very few callers who call this function on Node.
236         If we want to optimize them further we can make the isContainerNode check
237         inline in the future.
238         (WebCore::Node::replaceChild): Ditto.
239         (WebCore::Node::removeChild): Ditto.
240         (WebCore::Node::appendChild): Ditto.
241         (WebCore::Node::remove): Removed unneeded ref/unref because
242         ContainerNode::removeChild already does this.
243         (WebCore::Node::createRendererIfNeeded): Removed #if around call to
244         childShouldCreateRenderer since it's needed even without SVG and XHTMLMP.
245
246         * dom/Node.h: Moved definitions of inline functions that depend on
247         ContainerNode to the ContainerNode.h header. They already required inclusion
248         of that header, so there is no functional change. Made insertBefore,
249         replaceChild, removeChild, and appendChild non-virtual. There are very few
250         callers of these functions on this class. Moved isMathMLElement to Element.
251         Added a FIXME about the name of eventAncestors. Fixed comment formatting.
252         Eliminated unused isEditableBlock function. Moved the body of the
253         enclosingInlineElement function to the editing file that was the only
254         call site. Removed the previousEditable and nextEditable functions,
255         incorporating their bodies into the one place they were called.
256         Took the childShouldCreateRenderer function out of #if since it's
257         now used by the implementation of the <noscript> element.
258
259         * dom/Position.cpp:
260         (WebCore::nextRenderedEditable): Rewrote the function to use nextLeafNode
261         instead of nextEditable.
262         (WebCore::previousRenderedEditable): Rewrote the function to use
263         previousLeafNode instead of previousEditable.
264
265         * editing/ReplaceSelectionCommand.cpp:
266         (WebCore::enclosingInline): Moved function here from the Node class. Also
267         fixed an incorrect cast this function did, which assumed the function
268         result was always an element, which the function does not guarantee.
269         (WebCore::ReplaceSelectionCommand::doApply): Call the function above.
270
271         * history/HistoryItem.cpp: Added include of MathExtras.h.
272
273 2010-10-18  Yongjun Zhang  <yongjun_zhang@apple.com>
274
275         Reviewed by Darin Adler.
276
277         Missing support for document.createEvent("OrientationEvent")
278         https://bugs.webkit.org/show_bug.cgi?id=32492
279
280         Add support for document.createEvent("OrientationEvent") to help unit testing of
281         onOrientationChange event.
282
283         Test: fast/dom/DeviceOrientation/create-event-onorientationchange.html
284
285         * dom/Document.cpp:
286         (WebCore::Document::createEvent):
287
288 2010-10-18  Jeremy Orlow  <jorlow@chromium.org>
289
290         Reviewed by Darin Adler.
291
292         DOMStringList should return null if the index is out of range
293         https://bugs.webkit.org/show_bug.cgi?id=47829
294
295         When item() returns a null string, it needs to be passed to JS as
296         null. The indexed getter will then magically do the right thing.
297         So all that's left is having DOMStringList::item() return null when
298         the index is out of bounds.
299
300         * dom/DOMStringList.cpp:
301         (WebCore::DOMStringList::item):
302         * dom/DOMStringList.h:
303         * dom/DOMStringList.idl:
304
305 2010-10-18  Girish Ramakrishnan  <girish@forwardbias.in>
306
307         Reviewed by Ariya Hidayat.
308
309         [Qt] Implement Accelerated Composition for NPAPI Plugins.
310
311         https://bugs.webkit.org/show_bug.cgi?id=35524
312
313         * plugins/PluginView.h:
314         (WebCore::PluginView::platformLayer):
315         * plugins/qt/PluginViewQt.cpp:
316         (WebCore::PluginGraphicsLayerQt::PluginGraphicsLayerQt):
317         (WebCore::PluginGraphicsLayerQt::~PluginGraphicsLayerQt):
318         (WebCore::PluginGraphicsLayerQt::paint):
319         (WebCore::PluginView::updatePluginWidget):
320         (WebCore::PluginView::paint):
321         (WebCore::PluginView::invalidateRect):
322         (WebCore::PluginView::invalidateRegion):
323         (WebCore::PluginView::platformStart):
324         (WebCore::PluginView::platformLayer):
325
326 2010-10-18  Stuart Morgan  <stuartmorgan@chromium.org>
327
328         Reviewed by Eric Seidel.
329
330         Switch to using the new Carbon NPAPI event declarations, and remove
331         the old ones.
332
333         https://bugs.webkit.org/show_bug.cgi?id=40784
334
335         * bridge/npapi.h:
336         * plugins/mac/PluginViewMac.mm:
337         (WebCore::PluginView::setFocus):
338         (WebCore::PluginView::handleMouseEvent):
339
340 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
341
342         Reviewed by Yury Semikhatsky.
343
344         Web Inspector: comment out resource manager instantiation on front-end side.
345         https://bugs.webkit.org/show_bug.cgi?id=47823
346
347         * inspector/front-end/inspector.js:
348
349 2010-10-18  Andrei Popescu  <andreip@google.com>
350
351         Reviewed by Jeremy Orlow.
352
353         The description parameter of IDBFactory::open() should be mandatory.
354         https://bugs.webkit.org/show_bug.cgi?id=47835
355
356         Makes the description parameter mandatory, as per the IndexedDatabase specification.
357         Modified existing tests to cover this change.
358
359         * storage/IDBDatabaseBackendImpl.cpp:
360         (WebCore::extractMetaData):
361         (WebCore::setMetaData):
362         (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
363         * storage/IDBFactory.cpp:
364         (WebCore::IDBFactory::open):
365         * storage/IDBFactory.h:
366         * storage/IDBFactory.idl:
367
368 2010-10-18  Xiaomei Ji  <xji@chromium.org>
369
370         Reviewed by David Levin.
371
372         Code cleanup: Move most function members in TextRunWorker from inlined.
373         https://bugs.webkit.org/show_bug.cgi?id=47732
374
375         No functionality change, so no tests added.
376
377         * platform/graphics/chromium/FontLinux.cpp:
378         (WebCore::TextRunWalker::setWordSpacingAdjustment):
379         (WebCore::TextRunWalker::setLetterSpacingAdjustment):
380         (WebCore::TextRunWalker::setXOffsetToZero):
381         (WebCore::TextRunWalker::rtl):
382         (WebCore::TextRunWalker::glyphs):
383         (WebCore::TextRunWalker::length):
384         (WebCore::TextRunWalker::xPositions):
385         (WebCore::TextRunWalker::advances):
386         (WebCore::TextRunWalker::width):
387         (WebCore::TextRunWalker::logClusters):
388         (WebCore::TextRunWalker::numCodePoints):
389         (WebCore::TextRunWalker::fontPlatformDataForScriptRun):
390         (WebCore::TextRunWalker::isCodepointSpace):
391         (WebCore::TextRunWalker::TextRunWalker):
392         (WebCore::TextRunWalker::~TextRunWalker):
393         (WebCore::TextRunWalker::isWordBreak):
394         (WebCore::TextRunWalker::setPadding):
395         (WebCore::TextRunWalker::reset):
396         (WebCore::TextRunWalker::setBackwardsIteration):
397         (WebCore::TextRunWalker::nextScriptRun):
398         (WebCore::TextRunWalker::widthOfFullRun):
399         (WebCore::TextRunWalker::getTextRun):
400         (WebCore::TextRunWalker::getNormalizedTextRun):
401         (WebCore::TextRunWalker::setupFontForScriptRun):
402         (WebCore::TextRunWalker::allocHarfbuzzFont):
403         (WebCore::TextRunWalker::deleteGlyphArrays):
404         (WebCore::TextRunWalker::createGlyphArrays):
405         (WebCore::TextRunWalker::resetGlyphArrays):
406         (WebCore::TextRunWalker::shapeGlyphs):
407         (WebCore::TextRunWalker::setGlyphXPositions):
408         (WebCore::TextRunWalker::mirrorCharacters):
409
410 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
411
412         Reviewed by Andreas Kling.
413
414         [Qt] AC rendering bugs
415         There were a few missing connections in Qt AC between GraphicsLayer and plugins, like changing the plugin's geometry to the layer's
416         contentsRect, and making sure media layers handle ParentChange events and setContentsNeedsDisplay. Now media layers behave correctly.
417
418         https://bugs.webkit.org/show_bug.cgi?id=47571
419
420         No new tests. This is in preparation for fixing AC+plugins, which already has tests that don't work yet with Qt.
421
422         * platform/graphics/qt/GraphicsLayerQt.cpp:
423         (WebCore::GraphicsLayerQtImpl::flushChanges):
424         (WebCore::GraphicsLayerQt::setContentsNeedsDisplay):
425         * platform/graphics/qt/GraphicsLayerQt.h:
426
427 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
428
429         Reviewed by Simon Fraser.
430
431         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
432         https://bugs.webkit.org/show_bug.cgi?id=46224
433
434         * CMakeLists.txt:
435         * GNUmakefile.am:
436         * WebCore.gypi:
437         * WebCore.pro:
438         * WebCore.vcproj/WebCore.vcproj:
439         * WebCore.xcodeproj/project.pbxproj:
440         * inspector/InspectorClient.cpp: Added.
441         (WebCore::InspectorClient::doDispatchMessageOnFrontendPage):
442         * inspector/InspectorClient.h:
443         (WebCore::InspectorClient::InspectorClient):
444
445 2010-10-18  Andrei Popescu  <andreip@google.com>
446
447         Reviewed by Jeremy Orlow.
448
449         IDBKeyTree.h is no longer used.
450         https://bugs.webkit.org/show_bug.cgi?id=47824
451
452         No new tests, just removing unused files.
453
454         * WebCore.gypi:
455         * WebCore.xcodeproj/project.pbxproj:
456         * storage/IDBKeyTree.h: Removed.
457
458 2010-10-18  Andreas Kling  <kling@webkit.org>
459
460         Unreviewed buildfix for Qt + V8.
461         Add missing <wtf/text/CString.h> include.
462
463         * inspector/InspectorInstrumentation.cpp:
464
465 2010-10-18  Ilya Tikhonovsky  <loislo@chromium.org>
466
467         Reviewed by Yury Semikhatsky.
468
469         Web Inspector: toJSON serialization for Numbers should be fixed.
470         DecimalNumber is used instead of printf.
471
472         https://bugs.webkit.org/show_bug.cgi?id=43832
473
474         * inspector/InspectorValues.cpp:
475         (WebCore::InspectorBasicValue::writeJSON):
476
477 2010-10-18  Ilya Tikhonovsky  <loislo@chromium.org>
478
479         Reviewed by Yury Semikhatsky.
480
481         Web Inspector: [REGRESSION] Inspector window visible during run-webkit-tests.
482         The initial state of an inspector setting should stay untouched
483         if the profile has no value for it.
484
485         https://bugs.webkit.org/show_bug.cgi?id=47785
486
487         * inspector/InspectorState.cpp:
488         (WebCore::InspectorState::loadFromSettings):
489
490 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
491
492         Reviewed by Yury Semikhatsky.
493
494         Web Inspector: tab headers on resource panel are 1px off on Mac.
495         https://bugs.webkit.org/show_bug.cgi?id=47798
496
497         * inspector/front-end/inspector.css:
498         (.tabbed-pane-header li):
499
500 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
501
502         Not reviewed. Build fix.
503
504         * inspector/InspectorResourceAgent.cpp:
505         (WebCore::cachedResourceTypeString):
506
507 2010-10-17  Pavel Feldman  <pfeldman@chromium.org>
508
509         Reviewed by Yury Semikhatsky.
510
511         Web Inspector: Introduce InspectorResourceAgent.h/cpp and ResourceManager.js to
512         fill network panel with data.
513         https://bugs.webkit.org/show_bug.cgi?id=47779
514         
515         InspectorResourceAgent instance / JS part are introduced in this patch. Agent's lifetime is equal
516         to the front-end's. This new resource agent does not have state, instead it covers two functions:
517          1) forwards loader client messages to the front-end 2) is capable of building a tree of cached resources.
518         (1) feeds network panel with data, (2) shows the resource tree in the new ResourcesPanel concept.
519         This bug is for extracting this new InspectorResourceAgent class and its javascript counterpart.
520         Once resources panel is refactored for the new concept, InspectorResource, InspectorController's
521         resource-related routines, inspector.js's code dealing with resources, they all will be gone.
522
523         * WebCore.gypi:
524         * WebCore.vcproj/WebCore.vcproj:
525         * inspector/CodeGeneratorInspector.pm:
526         * inspector/Inspector.idl:
527         * inspector/InspectorApplicationCacheAgent.cpp:
528         (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse):
529         * inspector/InspectorController.cpp:
530         (WebCore::InspectorController::connectFrontend):
531         (WebCore::InspectorController::releaseFrontendLifetimeAgents):
532         (WebCore::InspectorController::didCommitLoad):
533         (WebCore::InspectorController::frameDetachedFromParent):
534         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
535         (WebCore::InspectorController::identifierForInitialRequest):
536         (WebCore::InspectorController::willSendRequest):
537         (WebCore::InspectorController::markResourceAsCached):
538         (WebCore::InspectorController::didReceiveResponse):
539         (WebCore::InspectorController::didReceiveContentLength):
540         (WebCore::InspectorController::didFinishLoading):
541         (WebCore::InspectorController::didFailLoading):
542         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
543         (WebCore::InspectorController::scriptImported):
544         (WebCore::InspectorController::didCreateWebSocket):
545         (WebCore::InspectorController::willSendWebSocketHandshakeRequest):
546         (WebCore::InspectorController::didReceiveWebSocketHandshakeResponse):
547         (WebCore::InspectorController::didCloseWebSocket):
548         * inspector/InspectorController.h:
549         * inspector/InspectorResource.cpp:
550         (WebCore::InspectorResource::updateResponse):
551         (WebCore::cachedResourceType):
552         (WebCore::InspectorResource::type):
553         (WebCore::InspectorResource::sourceString):
554         (WebCore::InspectorResource::sourceBytes):
555         (WebCore::InspectorResource::endTiming):
556         * inspector/InspectorResourceAgent.cpp:
557         (WebCore::InspectorResourceAgent::resourceContent):
558         (WebCore::InspectorResourceAgent::resourceContentBase64):
559         (WebCore::InspectorResourceAgent::resourceData):
560         (WebCore::InspectorResourceAgent::cachedResource):
561         (WebCore::buildObjectForHeaders):
562         (WebCore::buildObjectForTiming):
563         (WebCore::buildObjectForResourceRequest):
564         (WebCore::buildObjectForResourceResponse):
565         (WebCore::buildObjectForMainResource):
566         (WebCore::cachedResourceTypeString):
567         (WebCore::buildObjectForCachedResource):
568         (WebCore::buildObjectForFrameResources):
569         (WebCore::InspectorResourceAgent::~InspectorResourceAgent):
570         (WebCore::InspectorResourceAgent::identifierForInitialRequest):
571         (WebCore::InspectorResourceAgent::willSendRequest):
572         (WebCore::InspectorResourceAgent::markResourceAsCached):
573         (WebCore::InspectorResourceAgent::didReceiveResponse):
574         (WebCore::InspectorResourceAgent::didReceiveContentLength):
575         (WebCore::InspectorResourceAgent::didFinishLoading):
576         (WebCore::InspectorResourceAgent::didFailLoading):
577         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
578         (WebCore::InspectorResourceAgent::setOverrideContent):
579         (WebCore::InspectorResourceAgent::didCommitLoad):
580         (WebCore::InspectorResourceAgent::frameDetachedFromParent):
581         (WebCore::createReadableStringFromBinary):
582         (WebCore::InspectorResourceAgent::didCreateWebSocket):
583         (WebCore::InspectorResourceAgent::willSendWebSocketHandshakeRequest):
584         (WebCore::InspectorResourceAgent::didReceiveWebSocketHandshakeResponse):
585         (WebCore::InspectorResourceAgent::didCloseWebSocket):
586         (WebCore::InspectorResourceAgent::cachedResources):
587         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
588         * inspector/InspectorResourceAgent.h:
589         (WebCore::InspectorResourceAgent::create):
590         * inspector/InspectorStyleSheet.cpp:
591         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
592         * inspector/front-end/ExtensionServer.js:
593         (WebInspector.ExtensionServer.prototype._onRevealAndSelectResource):
594         (WebInspector.ExtensionServer.prototype._onGetResourceContent):
595         * inspector/front-end/Resource.js:
596         (WebInspector.Resource.prototype.get responseReceivedTime):
597         (WebInspector.Resource.prototype.set endTime):
598         * inspector/front-end/Settings.js:
599         * inspector/front-end/SourceView.js:
600         (WebInspector.SourceView.prototype.setupSourceFrameIfNeeded):
601         * inspector/front-end/WebKit.qrc:
602         * inspector/front-end/inspector.css:
603         (.tabbed-pane-header li):
604         * inspector/front-end/inspector.html:
605         * inspector/front-end/inspector.js:
606         (WebInspector.updateResource):
607         * loader/ResourceLoadNotifier.cpp:
608         (WebCore::ResourceLoadNotifier::dispatchDidReceiveResponse):
609         * loader/appcache/ApplicationCacheGroup.cpp:
610         (WebCore::ApplicationCacheGroup::didReceiveResponse):
611
612 2010-10-16  Pavel Feldman  <pfeldman@chromium.org>
613
614         Reviewed by Yury Semikhatsky.
615
616         Web Inspector: brush up URL parsing on the front-end.
617         https://bugs.webkit.org/show_bug.cgi?id=47772
618
619         * inspector/InspectorResource.cpp:
620         (WebCore::InspectorResource::updateScriptObject):
621         * inspector/front-end/AuditRules.js:
622         (WebInspector.AuditRules.getDomainToResourcesMap):
623         (WebInspector.AuditRules.CombineExternalResourcesRule.prototype.doRun):
624         (WebInspector.AuditRules.MinimizeDnsLookupsRule.prototype.doRun):
625         (WebInspector.AuditRules.ParallelizeDownloadRule.prototype.doRun):
626         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
627         (WebInspector.AuditRules.CookieSizeRule.prototype.processCookies):
628         (WebInspector.AuditRules.StaticCookielessRule.prototype.processCookies):
629         * inspector/front-end/CookieItemsView.js:
630         (WebInspector.CookieItemsView.prototype._filterCookiesForDomain):
631         * inspector/front-end/DOMAgent.js:
632         (WebInspector.Cookies.cookieMatchesResourceURL):
633         * inspector/front-end/Resource.js:
634         (WebInspector.Resource):
635         (WebInspector.Resource.prototype.set url):
636         (WebInspector.Resource.prototype.get displayName):
637         * inspector/front-end/ResourceCategory.js:
638         (WebInspector.ResourceCategory.prototype.addResource):
639         * inspector/front-end/ResourceView.js:
640         (WebInspector.ResourceView):
641         * inspector/front-end/inspector.js:
642         (WebInspector.documentClick.followLink):
643         (WebInspector.documentClick):
644         (WebInspector.updateResource):
645         (WebInspector.linkifyStringAsFragment):
646         (WebInspector.resourceURLForRelatedNode):
647         (WebInspector.completeURL):
648         * inspector/front-end/utilities.js:
649         (String.prototype.asParsedURL):
650
651 2010-10-17  Andreas Kling  <kling@webkit.org>
652
653         Reviewed by Kenneth Rohde Christiansen.
654
655         [Qt] Support custom open() verbs/methods in XMLHttpRequest
656         https://bugs.webkit.org/show_bug.cgi?id=40476
657
658         Fall back to QNetworkAccessManager::CustomOperation for any HTTP verb
659         that's not specifically supported by QNetworkAccessManager.
660
661         This prevents the infinite loop that otherwise occurs after sending
662         an UnknownOperation request.
663
664         This change is covered by existing (skipped) tests that will be
665         unskipped once the Qt bots are running Qt 4.7.
666
667         * platform/network/qt/QNetworkReplyHandler.cpp:
668         (WebCore::QNetworkReplyHandler::httpMethod):
669         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
670         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
671         * platform/network/qt/QNetworkReplyHandler.h:
672
673 2010-10-17  Adam Barth  <abarth@webkit.org>
674
675         Reviewed by Dimitri Glazkov.
676
677         Remove explicit passing of user gesture in NavigationScheduler
678         https://bugs.webkit.org/show_bug.cgi?id=47786
679
680         As requested by Mr. Glazkov, remove more explicit passing of the user
681         gesture state.  We now use a static to pass this information around.
682
683         * bindings/generic/BindingFrame.h:
684         (WebCore::::navigateIfAllowed):
685         * bindings/js/JSDOMWindowCustom.cpp:
686         (WebCore::JSDOMWindow::setLocation):
687         * bindings/js/JSLocationCustom.cpp:
688         (WebCore::JSLocation::reload):
689         * bindings/v8/custom/V8LocationCustom.cpp:
690         (WebCore::V8Location::reloadCallback):
691         * inspector/InspectorController.cpp:
692         (WebCore::InspectorController::setResourceTrackingEnabled):
693         (WebCore::InspectorController::reloadPage):
694         * loader/NavigationScheduler.cpp:
695         (WebCore::ScheduledNavigation::ScheduledNavigation):
696         (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
697         (WebCore::ScheduledRedirect::ScheduledRedirect):
698         (WebCore::ScheduledLocationChange::ScheduledLocationChange):
699         (WebCore::ScheduledRefresh::ScheduledRefresh):
700         (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
701         (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
702         (WebCore::NavigationScheduler::scheduleRedirect):
703         (WebCore::NavigationScheduler::mustLockBackForwardList):
704         (WebCore::NavigationScheduler::scheduleLocationChange):
705         (WebCore::NavigationScheduler::scheduleFormSubmission):
706         (WebCore::NavigationScheduler::scheduleRefresh):
707         (WebCore::NavigationScheduler::scheduleHistoryNavigation):
708         * loader/NavigationScheduler.h:
709         * loader/SubframeLoader.cpp:
710         (WebCore::SubframeLoader::loadOrRedirectSubframe):
711
712 2010-10-17  Julien Chaffraix  <jchaffraix@codeaurora.org>
713
714         Reviewed by Andreas Kling.
715
716         'transparent' should be a valid color
717         https://bugs.webkit.org/show_bug.cgi?id=45482
718
719         Test: svg/animations/svg-animate-color-transparent.svg
720
721         Based on previous work by Jan Erik Hanssen  <jhanssen@codeaurora.org>
722
723         * platform/ColorData.gperf: Added 'transparent' to the list of colors.
724         Added the alpha to all the colors as it was needed to support the new color.
725
726         * platform/graphics/Color.cpp:
727         (WebCore::Color::Color):
728         (WebCore::Color::setNamedColor): Avoid setting the alpha as now it is not
729         always 0xFF.
730
731 2010-10-17  Justin Schuh  <jschuh@chromium.org>
732
733         Reviewed by Nikolas Zimmermann.
734
735         Duplicate use element children in shadow tree.
736         https://bugs.webkit.org/show_bug.cgi?id=47561
737
738         Test: svg/custom/use-nested-children.svg
739
740         * svg/SVGUseElement.cpp:
741         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
742
743 2010-10-17  Hyung Song  <beergun@company100.net>
744
745         Reviewed by David Levin.
746
747         Add !SINGLE_THREADED guard.
748         https://bugs.webkit.org/show_bug.cgi?id=47608
749
750         For SINGLE_THREADED ports LockingMutex.tryLock() returns false.
751         This will prevent interrupt() from falling into infinite loop.
752
753         * platform/sql/SQLiteDatabase.cpp:
754         (WebCore::SQLiteDatabase::interrupt):
755
756 2010-10-17  Simon Fraser  <simon.fraser@apple.com>
757
758         Reviewed by Nikolas Zimmermann.
759
760         Very large and small numbers fail to round-trip through CSS
761         https://bugs.webkit.org/show_bug.cgi?id=20674
762         
763         Use the new DecimalNumber functionality to convert CSS numberic values to strings
764         using decimal notation, rather than %g (which can output scientific notation).
765
766         Test: fast/css/round-trip-values.html
767
768         * css/CSSPrimitiveValue.cpp:
769         (WebCore::formatNumber):
770         (WebCore::CSSPrimitiveValue::cssText):
771
772 2010-10-17  Cosmin Truta  <ctruta@chromium.org>
773
774         Reviewed by Nikolas Zimmermann.
775
776         Crash while processing ill-formed SVG with cycles
777         https://bugs.webkit.org/show_bug.cgi?id=47498
778
779         Test: svg/custom/invalid-paint-shape-mask.svg
780
781         * rendering/SVGResources.cpp:
782         (paintingResourceFromSVGPaint): Ensured that the painting resource is
783         either a pattern resource or a gradient resource.
784         (SVGResources::setClipper):
785         (SVGResources::setFilter):
786         (SVGResources::setMarkerStart):
787         (SVGResources::setMarkerMid):
788         (SVGResources::setMarkerEnd):
789         (SVGResources::setMasker):
790         (SVGResources::setFill):
791         (SVGResources::setStroke): Added ASSERT statements for previously-unchecked
792         preconditions.
793
794 2010-10-17  Alex Milowski  <alex@milowski.com>
795
796         Reviewed by Kenneth Rohde Christiansen.
797
798         Fixed extra whitespace above operators when they aren't stretched
799         yet the stretch height is large.  Also, the baseline alignment
800         was changed so that rows and operators interact appropriately now
801         that operators don't have the extra white space.
802
803         * mathml/RenderMathMLOperator.cpp:
804         * mathml/RenderMathMLRow.cpp:
805
806 2010-10-17  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
807
808         Reviewed by Antonio Gomes.
809
810         [Qt] Fix focusing of control elements on mouse click.
811         Brings GTK fix to Qt platform.
812         https://bugs.webkit.org/show_bug.cgi?id=40641
813                         
814         Test: fast/events/click-focus-control.html
815
816         * html/HTMLFormControlElement.cpp:
817         (WebCore::HTMLFormControlElement::isMouseFocusable):
818
819 2010-10-17  Adam Barth  <abarth@webkit.org>
820
821         Reviewed by Dimitri Glazkov.
822
823         FrameLoader doesn't need an explicit userGesture parameter
824         https://bugs.webkit.org/show_bug.cgi?id=47777
825
826         We used to pass around the user gesture state explicitly.  Now we use
827         static state.  Explicitly passing the user gesture state to FrameLoader
828         in these methods is pretty out-dated.
829
830         * bindings/ScriptControllerBase.cpp:
831         (WebCore::ScriptController::executeIfJavaScriptURL):
832         * bindings/generic/BindingDOMWindow.h:
833         (WebCore::::createWindow):
834         (WebCore::::open):
835         * bindings/js/JSDOMWindowCustom.cpp:
836         (WebCore::createWindow):
837         (WebCore::JSDOMWindow::open):
838         * bindings/js/JSDocumentCustom.cpp:
839         (WebCore::JSDocument::setLocation):
840         * bindings/js/ScriptController.h:
841         * bindings/v8/ScriptController.h:
842         * html/HTMLAnchorElement.cpp:
843         (WebCore::handleLinkClick):
844         * inspector/InspectorController.cpp:
845         (WebCore::InspectorController::openInInspectedWindow):
846         * loader/FrameLoader.cpp:
847         (WebCore::FrameLoader::changeLocation):
848         (WebCore::FrameLoader::urlSelected):
849         (WebCore::FrameLoader::submitForm):
850         * loader/FrameLoader.h:
851         * loader/NavigationScheduler.cpp:
852         (WebCore::ScheduledURLNavigation::fire):
853         (WebCore::ScheduledRefresh::fire):
854         (WebCore::ScheduledHistoryNavigation::fire):
855         (WebCore::NavigationScheduler::scheduleLocationChange):
856
857 2010-10-17  Sergey A. Sukiyazov  <sergey.sukiyazov@gmail.com>
858
859         Reviewed by Andreas Kling
860
861         [Qt] Hovering the mouse over links produce a trail of underlined links (X11 paint engine)
862         https://bugs.webkit.org/show_bug.cgi?id=42248
863
864         The problem will appear because coordinates of points may increase by 0.05f (if line width is odd) inside
865         method GraphicsContext::adjustLineToPixelBoundaries(...) and become outside of text bounding rect htere,
866         then the new point coordinates will be passed to Qt graphics engine.
867
868         The solution decreases Y cordinates of points inside drawLineForText(...) method only if Qt graphics engine
869         is X11. The Y coordinates will be increase by 0.5f inside method adjustLineToPixelBoundaries(...),  which
870         called from drawLine(...), and then inside Qt painting engine will be rounded to next greater integer value.
871
872         NOTE: This changes will affect only Qt X11 verision and if only X11 Painting Engine will be used.
873
874         No new tests.
875
876         * platform/graphics/qt/GraphicsContextQt.cpp:
877         (WebCore::GraphicsContext::drawLineForText):
878
879 2010-10-17  Rob Buis  <rwlbuis@gmail.com>
880
881         Reviewed by Dirk Schulze.
882
883         Text under nested link dropped
884         https://bugs.webkit.org/show_bug.cgi?id=46460
885
886         Allow links inside of tspan and textPath elements.
887
888         * svg/SVGTSpanElement.cpp:
889         (WebCore::SVGTSpanElement::childShouldCreateRenderer):
890         * svg/SVGTextPathElement.cpp:
891         (WebCore::SVGTextPathElement::childShouldCreateRenderer):
892
893 2010-10-16  Kwang Yul Seo  <skyul@company100.net>
894
895         Reviewed by Kent Tamura.
896
897         [BREWMP] Port TextCodec
898         https://bugs.webkit.org/show_bug.cgi?id=45797
899
900         Implement TextCodec with Brew MP's ICharsetConv.
901         Only UTF-8 is supported for now.
902
903         * platform/text/TextEncoding.cpp:
904         (WebCore::TextEncoding::encode):
905         * platform/text/TextEncodingRegistry.cpp:
906         (WebCore::buildBaseTextCodecMaps):
907         * platform/text/brew/TextCodecBrew.cpp: Added.
908         (WebCore::newTextCodecBrew):
909         (WebCore::TextCodecBrew::registerBaseEncodingNames):
910         (WebCore::TextCodecBrew::registerBaseCodecs):
911         (WebCore::TextCodecBrew::registerExtendedEncodingNames):
912         (WebCore::TextCodecBrew::registerExtendedCodecs):
913         (WebCore::TextCodecBrew::TextCodecBrew):
914         (WebCore::TextCodecBrew::~TextCodecBrew):
915         (WebCore::TextCodecBrew::decode):
916         (WebCore::TextCodecBrew::encode):
917         * platform/text/brew/TextCodecBrew.h: Added.
918
919 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
920
921         Unreviewed.
922
923         Build fix for !ENABLE(INSPECTOR) after r69844.
924
925         * inspector/InspectorState.h: Added ENABLE(INSPECTOR) guard.
926
927 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
928
929         Unreviewed, build fix.
930
931         WinCE build fix for r69798.
932
933         * platform/text/wince/TextCodecWinCE.cpp: Added missing include.
934
935 2010-10-16  Johnny Ding  <jnd@chromium.org>
936
937         Reviewed by Adam Barth.
938
939         Requires a user gesture when opening file choose dialog.
940         https://bugs.webkit.org/show_bug.cgi?id=47593
941
942         Test: fast/forms/input-file-not-open-without-gesture.html
943
944         * rendering/RenderFileUploadControl.cpp:
945         (WebCore::RenderFileUploadControl::click):
946
947 2010-10-16  Alex Milowski  <alex@milowski.com>
948
949         Reviewed by Kenneth Rohde Christiansen.
950
951         Changed the vertical alignment within mfenced to baseline to
952         match the rest of the containers (e.g. mrow) and adjusted the
953         operator spacing to 0.1em.
954
955         Test: mathml/presentation/fenced-mi.xhtml
956
957         * css/mathml.css:
958         * mathml/RenderMathMLFenced.cpp:
959
960 2010-10-16  Patrick Gansterer  <paroga@webkit.org>
961
962         Reviewed by Adam Barth.
963
964         Rename StringHasherFunctions.h to StringHasher.h
965         https://bugs.webkit.org/show_bug.cgi?id=47200
966
967         * ForwardingHeaders/wtf/StringHashFunctions.h: Removed.
968         * ForwardingHeaders/wtf/StringHasher.h: Copied from WebCore/ForwardingHeaders/wtf/StringHashFunctions.h. 
969  
970 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
971
972         Reviewed by Darin Adler.
973
974         unlink removes inline style of anchor elements
975         https://bugs.webkit.org/show_bug.cgi?id=47424
976
977         The bug was caused by our not extracting styles when the anchor element is removed by removeInlineStyle.
978         Because we removed the element without pushing its inline style down, we lost style information.
979
980         Fixed the bug by pushing down styles in removeInlineStyle as done in pushDownInlineStyleAroundNode.
981         Also fixed a bug in addInlineStyleIfNeeded where StyleChange incorrectly removed styles of the container
982         node as supposed to that of startNode from the style to apply when startNode is not an element.
983
984         Test: editing/execCommand/toggle-unlink.html
985
986         * editing/ApplyStyleCommand.cpp:
987         (WebCore::ApplyStyleCommand::removeInlineStyleFromElement): To prevent a similar bug in the future,
988         added an assert that extractedStyle is specified whenever we're removing a styled element.
989         (WebCore::ApplyStyleCommand::removeInlineStyle):
990         (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
991
992 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
993
994         Reviewed by Tony Chang.
995
996         serializeNodesWithNamespaces should be in MarkupAccumulator
997         https://bugs.webkit.org/show_bug.cgi?id=47749
998
999         Moved serializeNodesWithNamespaces to MarkupAccumulator, and renamed it to serializeNodes.
1000         MarkupAccumulator::serializeNode now returns the resultant string instead of having a separate takeResults().
1001         Added several helper functions to MarkupAccumulator.
1002
1003         No new tests are added since this is a cleanup.
1004
1005         * editing/MarkupAccumulator.cpp:
1006         (WebCore::MarkupAccumulator::serializeNodes): Wrapper for serializeNodes and concatenateMarkup.
1007         (WebCore::MarkupAccumulator::serializeNodesWithNamespaces): Moved from markup.cpp
1008         (WebCore::MarkupAccumulator::appendStartTag): Calls appendString instead of appending into m_succeedingMarkup directly.
1009         (WebCore::MarkupAccumulator::appendEndTag): Ditto.
1010         (WebCore::MarkupAccumulator::totalLength): Added; extracted from takeResults.
1011         (WebCore::MarkupAccumulator::concatenateMarkup): Ditto.
1012         * editing/MarkupAccumulator.h:
1013         (WebCore::MarkupAccumulator::length): Added; calls totalLength.
1014         * editing/markup.cpp:
1015         (WebCore::StyledMarkupAccumulator::appendString): Added; calls MarkupAccumulator's appendString.
1016         (WebCore::StyledMarkupAccumulator::wrapWithStyleNode): Calls appendString.
1017         (WebCore::StyledMarkupAccumulator::takeResults): Calls length, totalLength, and concatenateMarkup.
1018         (WebCore::StyledMarkupAccumulator::serializeNodes): Became a member function.
1019         (WebCore::createMarkup): Uses MarkupAccumulator.
1020
1021 2010-10-15  Kinuko Yasuda  <kinuko@google.com>
1022
1023         Reviewed by Jian Li.
1024
1025         Implement FileEntrySync.file() in FileSystem API
1026         https://bugs.webkit.org/show_bug.cgi?id=47310
1027
1028         Tests: fast/filesystem/workers/file-from-file-entry-sync.html
1029                fast/filesystem/workers/file-from-file-entry.html
1030
1031         * fileapi/DOMFileSystem.cpp:
1032         (WebCore::DOMFileSystem::createFile): Added.
1033         * fileapi/DOMFileSystem.h:
1034         * fileapi/DOMFileSystemSync.cpp:
1035         (WebCore::DOMFileSystemSync::createFile): Added.
1036         * fileapi/DOMFileSystemSync.h:
1037         * fileapi/DirectoryReaderBase.h: Added 'virtual path' comment.
1038         * fileapi/EntryBase.h: Added 'virtual path' comment.
1039         * fileapi/FileEntry.cpp:
1040         (WebCore::FileEntry::file): Changed to use DOMFileSystem::createFile.
1041         * fileapi/FileEntrySync.cpp:
1042         (WebCore::FileEntrySync::file): Implemented.
1043         * fileapi/FileEntrySync.h:
1044         * fileapi/FileEntrySync.idl: Added file().
1045
1046 2010-10-15  Nico Weber  <thakis@chromium.org>
1047
1048         Reviewed by Eric Carlson.
1049
1050         Make sure to update the current graphics context when calling out to AppKit.
1051         https://bugs.webkit.org/show_bug.cgi?id=47757
1052
1053         Like r57741, but for the spellchecking highlight
1054
1055         * platform/graphics/mac/GraphicsContextMac.mm:
1056         (WebCore::GraphicsContext::drawLineForTextChecking):
1057
1058 2010-10-15  Brian Weinstein  <bweinstein@apple.com>
1059
1060         Reviewed by Sam Weinig.
1061
1062         REGRESSION(r69850) Loading apple.com/startpage in WebKit on Windows gets a bad request.
1063         https://bugs.webkit.org/show_bug.cgi?id=47753
1064         <rdar://problem/8558242>
1065         
1066         r69850 switched over to a different way of concatenating WebCore strings, but ran into an issue
1067         where some Windows calls were returning null terminated strings, and this breaks the new
1068         method of concatenation.
1069         
1070         GetLocaleInfo returns a null-terminated string, but WebCore strings are non-null terminated,
1071         so once we create our WebCore string, we want to trim off the null terminating character before
1072         we return the localeInfo.
1073
1074         Test: fast/dom/navigator-userAgent.html
1075
1076         * platform/win/Language.cpp:
1077         (WebCore::localeInfo):
1078
1079 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
1080
1081         Trying to fix crashes on Leopard buildbot.
1082
1083         * loader/loader.cpp:
1084         (WebCore::Loader::Host::didFinishLoading):
1085         (WebCore::Loader::Host::didFail):
1086         Moved logging higher in the function - it seems that CachedResource can be already destroyed.
1087
1088         * platform/Logging.cpp: (WebCore::getChannelFromName):
1089         * platform/mac/LoggingMac.mm: (WebCore::InitializeLoggingChannelsIfNecessary):
1090         Initialize the new channel (oops).
1091
1092 2010-10-15  Mike Lawther  <mikelawther@chromium.org>
1093
1094         Reviewed by James Robinson.
1095
1096         Prevent scrollbars from appearing in iframes with scrolling=no
1097         when the embedded content has overflow:scroll set on the html
1098         or body tags.
1099
1100         iframes keep getting scrollbars with scrolling="no"
1101         https://bugs.webkit.org/show_bug.cgi?id=29240
1102
1103         Test: fast/frames/iframe-scrolling-attribute-overflowscroll.html
1104
1105         * page/FrameView.cpp:
1106         (WebCore::FrameView::calculateScrollbarModesForLayout)
1107         (WebCore::FrameView::updateCanHaveScrollbars):
1108         (WebCore::FrameView::layout):
1109         * page/FrameView.h:
1110         (WebCore::FrameView::calculateScrollbarModesForLayout)
1111
1112 2010-10-15  Dan Bernstein  <mitz@apple.com>
1113
1114         Reviewed by Adele Peterson.
1115
1116         Clean up RenderFlexibleBox::applyLineClamp()
1117         https://bugs.webkit.org/show_bug.cgi?id=47743
1118
1119         * rendering/RenderFlexibleBox.cpp:
1120         (WebCore::RenderFlexibleBox::applyLineClamp):
1121
1122 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
1123
1124         Reviewed by Darin Adler.
1125
1126         https://bugs.webkit.org/show_bug.cgi?id=47736
1127         <rdar://problem/8429396> WebCore cache gets corrupted if revalidation request starts at an inopportune time
1128
1129         Test: http/tests/cache/stopped-revalidation.html
1130
1131         * loader/loader.cpp: (WebCore::Loader::Host::servePendingRequests): Copied logic for
1132         revalidation requests from didFail().
1133
1134 2010-10-15  Alexey Proskuryakov  <ap@apple.com>
1135
1136         Reviewed by Darin Adler in <https://bugs.webkit.org/show_bug.cgi?id=47736>.
1137
1138         Add a logging channel for WebCore cache and resource loading.
1139
1140         Test: http/tests/cache/stopped-revalidation.html
1141
1142         * platform/Logging.cpp:
1143         * platform/Logging.h:
1144         Added a logging channel for Cache and Loader.
1145
1146         * loader/Cache.cpp:
1147         (WebCore::Cache::requestResource):
1148         (WebCore::Cache::revalidateResource):
1149         (WebCore::Cache::revalidationFailed):
1150         (WebCore::Cache::evict):
1151         * loader/CachedResource.cpp:
1152         (WebCore::CachedResource::setResourceToRevalidate):
1153         (WebCore::CachedResource::switchClientsToRevalidatedResource):
1154         (WebCore::CachedResource::mustRevalidate):
1155         Added logging.
1156
1157         * loader/loader.cpp:
1158         (WebCore::Loader::load): Added logging.
1159         (WebCore::Loader::scheduleServePendingRequests): Ditto.
1160         (WebCore::Loader::requestTimerFired): Ditto.
1161         (WebCore::Loader::servePendingRequests): Ditto.
1162         (WebCore::Loader::Host::servePendingRequests):  Changed logging to use the new channel.
1163         (WebCore::Loader::Host::didFinishLoading): Changed logging to use the new channel.
1164         (WebCore::Loader::Host::didFail): Added logging.
1165
1166 2010-10-15  No'am Rosenthal  <noam.rosenthal@nokia.com>
1167
1168         Reviewed by Simon Fraser.
1169
1170         Add public functions to serialize TransformOperations.
1171         https://bugs.webkit.org/show_bug.cgi?id=47728
1172
1173         Added public accessors to the internal data of the TransformOperations.
1174
1175         No new tests. These functions are enablers for WebKit2.
1176
1177         * platform/graphics/transforms/Matrix3DTransformOperation.h:
1178         (WebCore::Matrix3DTransformOperation::matrix):
1179         * platform/graphics/transforms/MatrixTransformOperation.h:
1180         (WebCore::MatrixTransformOperation::matrix):
1181         * platform/graphics/transforms/PerspectiveTransformOperation.h:
1182         (WebCore::PerspectiveTransformOperation::perspective):
1183         * platform/graphics/transforms/RotateTransformOperation.h:
1184         (WebCore::RotateTransformOperation::x):
1185         (WebCore::RotateTransformOperation::y):
1186         (WebCore::RotateTransformOperation::z):
1187         * platform/graphics/transforms/SkewTransformOperation.h:
1188         (WebCore::SkewTransformOperation::angleX):
1189         (WebCore::SkewTransformOperation::angleY):
1190         * platform/graphics/transforms/TranslateTransformOperation.h:
1191         (WebCore::TranslateTransformOperation::x):
1192         (WebCore::TranslateTransformOperation::y):
1193         (WebCore::TranslateTransformOperation::z):
1194
1195 2010-10-15  Jian Li  <jianli@chromium.org>
1196
1197         Reviewed by Dmitry Titov.
1198
1199         FileReader.readAsDataURL should take Blob object
1200         https://bugs.webkit.org/show_bug.cgi?id=47679
1201
1202         Test cases have been added into read-blob-test-cases.js.
1203
1204         * fileapi/FileReader.idl: Update per the latest File API spec.
1205
1206 2010-10-15  Adam Barth  <abarth@webkit.org>
1207
1208         Reviewed by Eric Seidel.
1209
1210         Move MarkupAccumulator from markup.cpp to its own file
1211         https://bugs.webkit.org/show_bug.cgi?id=47734
1212
1213         This patch moves the MarkupAccumulator class into its own file.
1214         There's a lot of clean up left to do, but this patch is a step in the
1215         right direction.
1216
1217         No behavior change.
1218
1219         * Android.mk:
1220         * CMakeLists.txt:
1221         * GNUmakefile.am:
1222         * WebCore.gypi:
1223         * WebCore.pro:
1224         * WebCore.vcproj/WebCore.vcproj:
1225         * WebCore.xcodeproj/project.pbxproj:
1226         * editing/markup.cpp:
1227         (WebCore::elementCannotHaveEndTag):
1228         * editing/markup.h:
1229         * editing/MarkupAccumulator.h: Added.
1230         * editing/MarkupAccumulator.cpp: Added.
1231
1232 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
1233
1234         Reviewed by Darin Adler.
1235
1236         Match the elements supported by execCommand('formatBlock') and queryCommandValue('formatBlock')
1237         https://bugs.webkit.org/show_bug.cgi?id=47712
1238
1239         Extended queryCommandValue('formatBlock', false, null) to support article, aside, blockquote, dd, dl,
1240         div, dl, dt, dl, footer, header, hgroup, nav, and section. Because this makes isElementForFormatBlockCommand
1241         in Editor.cpp and FormatBlockCommand::isElementToApplyInFormatBlockCommand identical, they are merged and moved
1242         to FormatBlockCommand.cpp
1243
1244         Tests are added to editing/execCommand/query-format-block.html
1245
1246         * editing/Editor.cpp: Removed isElementForFormatBlockCommand and Editor::elementForFormatBlockCommand.
1247         * editing/Editor.h:
1248         * editing/EditorCommand.cpp:
1249         (WebCore::executeFormatBlock): Removed the check of tag name; the check is moved into FormatBlockCommand.
1250         (WebCore::valueFormatBlock): Calls FormatBlockCommand::elementForFormatBlockCommand.
1251         * editing/FormatBlockCommand.cpp:
1252         (WebCore::isElementForFormatBlock):
1253         (WebCore::FormatBlockCommand::FormatBlockCommand):
1254         (WebCore::FormatBlockCommand::formatSelection): Added to check the tag name. Exit early if the specified tag name
1255         is not what FormatBlock should apply. Set m_didApply true if m_didApply did apply the element.
1256         (WebCore::FormatBlockCommand::formatRange): Moved from Editor.cpp.  Takes Range* instead of accessing selection directly.
1257         (WebCore::FormatBlockCommand::elementForFormatBlockCommand): Moved from Editor.cpp
1258         (WebCore::enclosingBlockToSplitTreeTo): Calls isElementForFormatBlock.
1259         * editing/FormatBlockCommand.h:
1260         (WebCore::FormatBlockCommand::didApply): Added.
1261
1262 2010-10-15  Dirk Schulze  <krit@webkit.org>
1263
1264         Reviewed by Nikolas Zimmermann.
1265
1266         carto.net Dock example redraws *way* too often
1267         https://bugs.webkit.org/show_bug.cgi?id=16090
1268
1269         Setting the attributes x, y, width or height shouldn't cause a repaint if the image boundaries don't change.
1270         Added updateFromElement() to RenderSVGImage that checks if the old boundaries match the new boundaries after
1271         setting one of the attributes of above. Mark renderer for layout (and therefore repaint) if the boundaries
1272         differ, do nothing if not.
1273         Also added caching of the repaint rect to avoid multiple calculations.
1274
1275         Test: svg/custom/repaint-on-constant-size-change.svg
1276
1277         * rendering/RenderSVGImage.cpp:
1278         (WebCore::RenderSVGImage::RenderSVGImage):
1279         (WebCore::RenderSVGImage::layout): Update repaint rect on layout.
1280         (WebCore::RenderSVGImage::updateFromElement): Check SVGImageElement for boundaries update.
1281         * rendering/RenderSVGImage.h:
1282         (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): Return the cached repaint rect.
1283         * svg/SVGImageElement.cpp:
1284         (WebCore::SVGImageElement::svgAttributeChanged): Call updateFromElement() on changes to x, y, width or height.
1285
1286 2010-10-15  Martin Robinson  <mrobinson@igalia.com>
1287
1288         Build fix for GTK+.
1289
1290         * platform/network/soup/cache/webkit/soup-cache.h: Do not use PLATFORM(...) macro
1291         in a file that does not include config.h
1292
1293 2010-10-15  Anders Carlsson  <andersca@apple.com>
1294
1295         Reviewed by Sam Weinig.
1296
1297         Add FindIndicatorWindow class
1298         https://bugs.webkit.org/show_bug.cgi?id=47731
1299
1300         Export symbols needed by the FindIndicator in WebKit2.
1301
1302         * WebCore.exp.in:
1303
1304 2010-10-15  Leandro Pereira  <leandro@profusion.mobi>
1305
1306         [EFL] Unreviewed. Build fix.
1307
1308         Add new files needed by the Soup network backend, and #ifdef a
1309         GTK+-port only include in soup-cache.h.
1310
1311         * CMakeListsEfl.txt:
1312         * platform/network/soup/cache/webkit/soup-cache.h:
1313
1314 2010-10-14  Darin Adler  <darin@apple.com>
1315
1316         Reviewed by Alexey Proskuryakov.
1317
1318         Use more specific types for node pointers, especially when calling node insertion and removal functions
1319         https://bugs.webkit.org/show_bug.cgi?id=47702
1320
1321         Refactoring. No new tests.
1322
1323         While developing this patch I temporarily removed the node insertion and
1324         removal member functions from the Node class and fixed almost all call sites
1325         so they call it directly on the ContainerNode class, which will be important
1326         once we make the functions non-virtual.
1327
1328         * css/CSSStyleSelector.cpp:
1329         (WebCore::CSSStyleSelector::SelectorChecker::checkSelector):
1330         * dom/ContainerNode.cpp:
1331         (WebCore::ContainerNode::insertBefore):
1332         (WebCore::ContainerNode::replaceChild):
1333         (WebCore::ContainerNode::appendChild):
1334         * dom/Document.cpp:
1335         (WebCore::Document::caretRangeFromPoint):
1336         * dom/DynamicNodeList.cpp:
1337         (WebCore::DynamicNodeList::itemWithName):
1338         * dom/Position.cpp:
1339         (WebCore::Position::previous):
1340         (WebCore::Position::next):
1341         * dom/Text.cpp:
1342         (WebCore::Text::replaceWholeText):
1343         * dom/TreeWalker.cpp:
1344         (WebCore::TreeWalker::firstChild):
1345         (WebCore::TreeWalker::lastChild):
1346         (WebCore::TreeWalker::previousNode):
1347         * dom/XMLDocumentParserLibxml2.cpp:
1348         (WebCore::XMLDocumentParser::XMLDocumentParser):
1349         * editing/BreakBlockquoteCommand.cpp:
1350         (WebCore::BreakBlockquoteCommand::doApply):
1351         * editing/CompositeEditCommand.h:
1352         * editing/DeleteButtonController.cpp:
1353         (WebCore::isDeletableElement):
1354         * editing/IndentOutdentCommand.cpp:
1355         (WebCore::IndentOutdentCommand::outdentParagraph):
1356         * editing/InsertNodeBeforeCommand.cpp:
1357         (WebCore::InsertNodeBeforeCommand::doApply):
1358         * editing/JoinTextNodesCommand.cpp:
1359         (WebCore::JoinTextNodesCommand::doApply):
1360         (WebCore::JoinTextNodesCommand::doUnapply):
1361         * editing/MergeIdenticalElementsCommand.cpp:
1362         (WebCore::MergeIdenticalElementsCommand::doUnapply):
1363         * editing/RemoveNodeCommand.cpp:
1364         (WebCore::RemoveNodeCommand::doApply):
1365         (WebCore::RemoveNodeCommand::doUnapply):
1366         * editing/RemoveNodeCommand.h:
1367         * editing/SplitElementCommand.cpp:
1368         (WebCore::SplitElementCommand::executeApply):
1369         * editing/SplitTextNodeCommand.cpp:
1370         (WebCore::SplitTextNodeCommand::doApply):
1371         (WebCore::SplitTextNodeCommand::doReapply):
1372         * editing/TextIterator.cpp:
1373         (WebCore::parentCrossingShadowBoundaries):
1374         * editing/htmlediting.cpp:
1375         (WebCore::enclosingList):
1376         * editing/markup.cpp:
1377         (WebCore::serializeNodes):
1378         (WebCore::ancestorToRetainStructureAndAppearance):
1379         (WebCore::createMarkup):
1380         * html/HTMLAreaElement.cpp:
1381         (WebCore::HTMLAreaElement::updateFocusAppearance):
1382         * html/HTMLEmbedElement.cpp:
1383         (WebCore::HTMLEmbedElement::rendererIsNeeded):
1384         * html/HTMLFormElement.cpp:
1385         (WebCore::HTMLFormElement::rendererIsNeeded):
1386         * html/HTMLFrameSetElement.cpp:
1387         (WebCore::HTMLFrameSetElement::attach):
1388         * html/HTMLImageElement.cpp:
1389         (WebCore::HTMLImageElement::insertedIntoTree):
1390         * html/HTMLLegendElement.cpp:
1391         (WebCore::HTMLLegendElement::associatedControl):
1392         * html/HTMLOptGroupElement.cpp:
1393         (WebCore::HTMLOptGroupElement::recalcSelectOptions):
1394         (WebCore::HTMLOptGroupElement::ownerSelectElement):
1395         * html/HTMLOptionElement.cpp:
1396         (WebCore::HTMLOptionElement::ownerSelectElement):
1397         * html/HTMLTableCellElement.cpp:
1398         (WebCore::HTMLTableCellElement::additionalAttributeStyleDecls):
1399         * html/HTMLTableColElement.cpp:
1400         (WebCore::HTMLTableColElement::additionalAttributeStyleDecls):
1401         * html/HTMLTableElement.cpp:
1402         (WebCore::HTMLTableElement::insertRow):
1403         * html/HTMLTableRowElement.cpp:
1404         (WebCore::HTMLTableRowElement::rowIndex):
1405         * html/HTMLTableSectionElement.cpp:
1406         (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecls):
1407         * page/DOMSelection.cpp:
1408         (WebCore::DOMSelection::getRangeAt):
1409         (WebCore::DOMSelection::containsNode):
1410         * rendering/RenderSVGGradientStop.cpp:
1411         (WebCore::RenderSVGGradientStop::gradientElement):
1412         * svg/SVGElement.cpp:
1413         (WebCore::SVGElement::ownerSVGElement):
1414         (WebCore::SVGElement::viewportElement):
1415         * svg/SVGFELightElement.cpp:
1416         (WebCore::SVGFELightElement::svgAttributeChanged):
1417         (WebCore::SVGFELightElement::childrenChanged):
1418         * svg/SVGFEMergeNodeElement.cpp:
1419         (WebCore::SVGFEMergeNodeElement::svgAttributeChanged):
1420         * svg/SVGFontFaceFormatElement.cpp:
1421         (WebCore::SVGFontFaceFormatElement::childrenChanged):
1422         * svg/SVGFontFaceUriElement.cpp:
1423         (WebCore::SVGFontFaceUriElement::childrenChanged):
1424         * svg/SVGGlyphElement.cpp:
1425         (WebCore::SVGGlyphElement::invalidateGlyphCache):
1426         * svg/SVGHKernElement.cpp:
1427         (WebCore::SVGHKernElement::insertedIntoDocument):
1428         (WebCore::SVGHKernElement::removedFromDocument):
1429         * svg/SVGLocatable.cpp:
1430         (WebCore::SVGLocatable::nearestViewportElement):
1431         (WebCore::SVGLocatable::farthestViewportElement):
1432         * svg/SVGUseElement.cpp:
1433         (WebCore::SVGUseElement::updateContainerOffsets):
1434         * svg/SVGVKernElement.cpp:
1435         (WebCore::SVGVKernElement::insertedIntoDocument):
1436         (WebCore::SVGVKernElement::removedFromDocument):
1437         * svg/animation/SVGSMILElement.cpp:
1438         (WebCore::SVGSMILElement::targetElement):
1439         * wml/WMLDoElement.cpp:
1440         (WebCore::WMLDoElement::insertedIntoDocument):
1441         (WebCore::WMLDoElement::removedFromDocument):
1442         * wml/WMLNoopElement.cpp:
1443         (WebCore::WMLNoopElement::insertedIntoDocument):
1444         * wml/WMLOptionElement.cpp:
1445         (WebCore::ownerSelectElement):
1446         * wml/WMLPostfieldElement.cpp:
1447         (WebCore::WMLPostfieldElement::insertedIntoDocument):
1448         (WebCore::WMLPostfieldElement::removedFromDocument):
1449         * wml/WMLSetvarElement.cpp:
1450         (WebCore::WMLSetvarElement::insertedIntoDocument):
1451         (WebCore::WMLSetvarElement::removedFromDocument):
1452         * wml/WMLTaskElement.cpp:
1453         (WebCore::WMLTaskElement::insertedIntoDocument):
1454         (WebCore::WMLTaskElement::removedFromDocument):
1455         * wml/WMLTimerElement.cpp:
1456         (WebCore::WMLTimerElement::insertedIntoDocument):
1457         (WebCore::WMLTimerElement::removedFromDocument):
1458         * xml/XPathStep.cpp:
1459         (WebCore::XPath::Step::nodesInAxis):
1460         Use ContainerNode* for the result of the parentNode function now that
1461         it returns a ContainerNode*. In the past it used to return just Node*.
1462
1463         * dom/ContainerNode.h: Added toContainerNode.
1464
1465         * dom/Element.h: Use ContainerNode*. Added toElement.
1466
1467         * dom/Element.cpp:
1468         (WebCore::Element::deprecatedCreateContextualFragment): Explcitly
1469         cast to HTMLElement* in the case that handles <html> and <body>
1470         elements.
1471         (WebCore::Element::baseURI): Use ContainerNode*.
1472
1473         * dom/Node.cpp:
1474         (WebCore::Node::markAncestorsWithChildNeedsStyleRecalc): Use ContainerNode*.
1475         (WebCore::Node::isDescendantOf): Ditto.
1476         (WebCore::Node::createRendererIfNeeded): Ditto.
1477         (WebCore::Node::setTextContent): Use already-typecast pointer in a call to
1478         appendChild.
1479         (WebCore::Node::ancestorElement): Use ContainerNode*.
1480
1481         * dom/Range.cpp:
1482         (WebCore::Range::compareNode): Use ContainerNode*.
1483         (WebCore::Range::intersectsNode): Ditto.
1484         (WebCore::Range::processContents): Cast to ContainerNode* in a couple cases
1485         where we previously checked that the node in question has a child. Any node
1486         that returns a non-zero value for firstChild is a ContainerNode.
1487         (WebCore::Range::checkNodeBA): Ditto.
1488         (WebCore::Range::selectNode): Ditto.
1489         (WebCore::Range::surroundContents): Ditto.
1490
1491         * dom/XMLDocumentParser.cpp:
1492         (WebCore::XMLDocumentParser::insertErrorMessageBlock): Rewrote code to use
1493         more specific types, document instead of doc, and paragraph instead of par.
1494
1495         * editing/ApplyStyleCommand.cpp:
1496         (WebCore::ApplyStyleCommand::removeStyleFromRunBeforeApplyingStyle):
1497         Use ContainerNode*.
1498         (WebCore::ApplyStyleCommand::replaceWithSpanOrRemoveIfWithoutAttributes):
1499         Use replaceElementWithSpanPreservingChildrenAndAttributes; the old function
1500         took a Node argument and had Node in its name.
1501
1502         * editing/CompositeEditCommand.cpp:
1503         (WebCore::CompositeEditCommand::removeNodeAndPruneAncestors): Use ContainerNode.
1504         (WebCore::CompositeEditCommand::replaceElementWithSpanPreservingChildrenAndAttributes):
1505         Renamed and changed to take HTMLElement. Also use ContainerNode.
1506         (WebCore::CompositeEditCommand::prune): Ditto.
1507         (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Ditto.
1508         (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph): Ditto.
1509
1510         * editing/ReplaceNodeWithSpanCommand.cpp:
1511         (WebCore::ReplaceNodeWithSpanCommand::ReplaceNodeWithSpanCommand): Take an
1512         HTMLElement instead of a Node. Call it m_elementToReplace instead of m_node.
1513         (WebCore::swapInNodePreservingAttributesAndChildren): Take HTMLElement.
1514         (WebCore::ReplaceNodeWithSpanCommand::doApply): Updated for name changes.
1515         (WebCore::ReplaceNodeWithSpanCommand::doUnapply): Ditto.
1516         * editing/ReplaceNodeWithSpanCommand.h: Ditto.
1517
1518         * editing/ReplaceSelectionCommand.cpp:
1519         (WebCore::ReplacementFragment::ReplacementFragment): Use StyledElement for result
1520         of insertFragmentForTestRendering since that's what it returns.
1521         (WebCore::ReplacementFragment::removeNode): Use ContainerNode.
1522         (WebCore::ReplacementFragment::insertNodeBefore): Ditto.
1523         (WebCore::ReplacementFragment::insertFragmentForTestRendering): Return StyledElement.
1524         Use HTMLElement for body.
1525         (WebCore::ReplacementFragment::restoreTestRenderingNodesToFragment): Take
1526         StyledElement.
1527         (WebCore::ReplaceSelectionCommand::handleStyleSpans): Use ContainerNode.
1528         (WebCore::ReplaceSelectionCommand::copyStyleToChildren): Use HTMLElement for
1529         the cloned span, since the clone will be a sspan too.
1530         (WebCore::ReplaceSelectionCommand::insertAsListItems): Use ContainerNode since
1531         the list item has a child, and that proves it is a ContainerNode.
1532
1533         * editing/SelectionController.cpp:
1534         (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
1535         Use ContainerNode and also removed an unnneded local variable.
1536
1537         * html/HTMLElement.cpp:
1538         (WebCore::HTMLElement::setOuterText): Use ContainerNode.
1539         (WebCore::HTMLElement::insertAdjacent): Use ContainerNode and also use && to make
1540         the logic a little simpler.
1541         (WebCore::contextElementForInsertion): Use ContainerNode.
1542         (WebCore::HTMLElement::findFormAncestor): Ditto.
1543
1544         * inspector/InspectorDOMAgent.cpp:
1545         (WebCore::InspectorDOMAgent::removeNode): Use ContainerNode.
1546         (WebCore::InspectorDOMAgent::changeTagName): Ditto.
1547         (WebCore::InspectorDOMAgent::setOuterHTML): Ditto.
1548         (WebCore::InspectorDOMAgent::innerParentNode): Use isDocumentNode instead of
1549         nodeType. We should almost never use nodeType inside the engine.
1550         (WebCore::InspectorDOMAgent::didInsertDOMNode): Use ContainerNode.
1551         (WebCore::InspectorDOMAgent::didRemoveDOMNode): Ditto.
1552
1553         * wml/WMLOptGroupElement.cpp: Removed unneeded overrides of insertBefore,
1554         replaceChild, removeChild, appendChild, and removeChildren functions.
1555         Ths already overrides childrenChanged, that is called by all of the above,
1556         and it does the same thing these functions did.
1557         (WebCore::ownerSelectElement): Use ContainerNode.
1558         * wml/WMLOptGroupElement.h: Ditto.
1559
1560 2010-10-15  Ryosuke Niwa  <rniwa@webkit.org>
1561
1562         Reviewed by Darin Adler.
1563
1564         Crash in WebCore::ApplyStyleCommand::applyBlockStyle
1565         https://bugs.webkit.org/show_bug.cgi?id=47699
1566
1567         The crash was caused by applyBlockStyle's invalidly assuming that visibleStart and visibleEnd always exist.
1568         Added an early exit to the function when either visibleStart or visibleEnd is null or orphaned.
1569
1570         Test: editing/style/block-style-progress-crash.html
1571
1572         * editing/ApplyStyleCommand.cpp:
1573         (WebCore::ApplyStyleCommand::applyBlockStyle):
1574
1575 2010-10-13  Anders Carlsson  <andersca@apple.com>
1576
1577         Reviewed by Sam Weinig.
1578
1579         Add a FindIndicator class
1580         https://bugs.webkit.org/show_bug.cgi?id=47635
1581
1582         Make Gradient.h and Generator.h private headers; they're used by WebKit2.
1583
1584         * WebCore.xcodeproj/project.pbxproj:
1585
1586 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
1587
1588         Reviewed by Gustavo Noronha Silva.
1589
1590         [Soup] Should not ignore body for redirection responses
1591         https://bugs.webkit.org/show_bug.cgi?id=29299
1592
1593         Body is now provided to WebKitGtk+ in some redirections (like 302)
1594         because it could be used by servers to perform clunky redirections
1595         for example using http-equiv=REFRESH
1596
1597         Test: http/tests/navigation/redirect302-metaredirect.html
1598
1599         * platform/network/soup/ResourceHandleSoup.cpp:
1600         (WebCore::gotHeadersCallback):
1601         (WebCore::finishedCallback):
1602
1603 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
1604
1605         Reviewed by Martin Robinson.
1606
1607         [GTK] Fix introspection support
1608         https://bugs.webkit.org/show_bug.cgi?id=47723
1609
1610         WebKitSoupCacheType was incorrectly registered twice. Renamed to
1611         WebKitSoupCacheTypeType for the enumerated type.
1612
1613         * platform/network/soup/cache/webkit/soup-cache.c:
1614         (webkit_soup_cache_type_get_type):
1615
1616 2010-10-15  Ilya Tikhonovsky  <loislo@chromium.org>
1617
1618         Reviewed by Yury Semikhatsky.
1619
1620         Web Inspector: extract consoleMessages related stuff from populateScriptObjects into separate function.
1621
1622         This is a part of Inspector protocol sanitization activity.
1623         We want to populate console messages only if it is required by frontend.
1624
1625         https://bugs.webkit.org/show_bug.cgi?id=46802
1626
1627         * inspector/Inspector.idl:
1628         * inspector/InspectorController.cpp:
1629         (WebCore::InspectorController::setConsoleMessagesEnabled):
1630         (WebCore::InspectorController::addConsoleMessage):
1631         (WebCore::InspectorController::disconnectFrontend):
1632         (WebCore::InspectorController::populateScriptObjects):
1633         * inspector/InspectorController.h:
1634         * inspector/InspectorState.cpp:
1635         (WebCore::InspectorState::InspectorState):
1636         * inspector/InspectorState.h:
1637         * inspector/front-end/inspector.js:
1638         (WebInspector.doLoadedDone):
1639
1640 2010-10-15  Ryuan Choi  <ryuan.choi@samsung.com>
1641
1642         Reviewed by Nikolas Zimmermann.
1643
1644         [EFL] REGRESSION(69798) UCHAR can't be converted to String.
1645         https://bugs.webkit.org/show_bug.cgi?id=47698
1646
1647         Create String value using String(const char*, 1) instead of operator[].
1648
1649         No tests. No functionality changed.
1650
1651         * platform/efl/PlatformKeyboardEventEfl.cpp:
1652         (WebCore::createWindowsKeyMap):
1653
1654 2010-10-15  Sergio Villar Senin  <svillar@igalia.com>
1655
1656         Reviewed by Xan Lopez.
1657
1658         [GTK] Do a stricter check for invalid base64 dataURLs
1659         https://bugs.webkit.org/show_bug.cgi?id=47717
1660
1661         Restore the strict base64 decoding we added in
1662         https://bugs.webkit.org/show_bug.cgi?id=44261 and then rolled back
1663         in https://bugs.webkit.org/show_bug.cgi?id=47666 due to a failing
1664         test. The actual issue was that we were not finishing the load of
1665         the resource gracefully when an error happened.
1666
1667         Loading invalid base64-encoded data:// URLs are now handled
1668         properly.
1669
1670         * platform/network/soup/ResourceHandleSoup.cpp:
1671         (WebCore::parseDataUrl):
1672         * platform/network/soup/cache/soup-request-data.c:
1673         (webkit_soup_request_data_send):
1674
1675 2010-10-15  Alejandro G. Castro  <alex@igalia.com>
1676
1677         Reviewed by Martin Robinson.
1678
1679         compile fail with gtk >= 2.22
1680         https://bugs.webkit.org/show_bug.cgi?id=47483
1681
1682         * platform/graphics/gtk/FontGtk.cpp: Removed the shrink operation,
1683         it was added long time ago and currently it is not adding any real
1684         area to the clip vertically, actually the gtk3 shrink version did
1685         not work.
1686         (WebCore::Font::drawComplexText):
1687         * platform/gtk/gtk2drawing.c: Undef the deprecation flags, this
1688         file is full of gtk2 stuff, and it does not seem interesting to
1689         upgrade because we are already creating a new version of the file
1690         for gtk3.
1691
1692 2010-10-14  Ilya Tikhonovsky  <loislo@chromium.org>
1693
1694         Reviewed by Pavel Feldman.
1695
1696         Web Inspector: inspector settings/properties/states management
1697         should be extracted into separate class.
1698
1699         We have a lot of flags/values in InspectorController.
1700         Some flags are persisting into profile.
1701         Others are part of inspector state for frontend.
1702         All these flags should keep their values after navigation.
1703         It'd be better to extract these flags/values into separate
1704         class which will care about theirs lifetime.
1705
1706         https://bugs.webkit.org/show_bug.cgi?id=47275
1707
1708         * CMakeLists.txt:
1709         * GNUmakefile.am:
1710         * WebCore.exp.in:
1711         * WebCore.gypi:
1712         * WebCore.pro:
1713         * WebCore.vcproj/WebCore.vcproj:
1714         * WebCore.xcodeproj/project.pbxproj:
1715         * inspector/InspectorController.cpp:
1716         (WebCore::InspectorController::InspectorController):
1717         (WebCore::InspectorController::inspectorStartsAttached):
1718         (WebCore::InspectorController::setInspectorStartsAttached):
1719         (WebCore::InspectorController::setInspectorAttachedHeight):
1720         (WebCore::InspectorController::inspectorAttachedHeight):
1721         (WebCore::InspectorController::searchingForNodeInPage):
1722         (WebCore::InspectorController::resourceTrackingEnabled):
1723         (WebCore::InspectorController::saveApplicationSettings):
1724         (WebCore::InspectorController::getInspectorState):
1725         (WebCore::InspectorController::restoreInspectorStateFromCookie):
1726         (WebCore::InspectorController::getSettings):
1727         (WebCore::InspectorController::storeLastActivePanel):
1728         (WebCore::InspectorController::mouseDidMoveOverElement):
1729         (WebCore::InspectorController::handleMousePress):
1730         (WebCore::InspectorController::setSearchingForNode):
1731         (WebCore::InspectorController::setMonitoringXHREnabled):
1732         (WebCore::InspectorController::showPanel):
1733         (WebCore::InspectorController::disconnectFrontend):
1734         (WebCore::InspectorController::populateScriptObjects):
1735         (WebCore::InspectorController::restoreDebugger):
1736         (WebCore::InspectorController::restoreProfiler):
1737         (WebCore::InspectorController::getTrackedResource):
1738         (WebCore::InspectorController::didLoadResourceFromMemoryCache):
1739         (WebCore::InspectorController::identifierForInitialRequest):
1740         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
1741         (WebCore::InspectorController::scriptImported):
1742         (WebCore::InspectorController::setResourceTrackingEnabled):
1743         (WebCore::InspectorController::ensureSettingsLoaded):
1744         (WebCore::InspectorController::startTimelineProfiler):
1745         (WebCore::InspectorController::stopTimelineProfiler):
1746         (WebCore::InspectorController::enableProfiler):
1747         (WebCore::InspectorController::disableProfiler):
1748         (WebCore::InspectorController::enableDebuggerFromFrontend):
1749         (WebCore::InspectorController::disableDebugger):
1750         (WebCore::InspectorController::loadBreakpoints):
1751         (WebCore::InspectorController::saveBreakpoints):
1752         * inspector/InspectorController.h:
1753         * inspector/InspectorFrontendClientLocal.cpp:
1754         (WebCore::InspectorFrontendClientLocal::changeAttachedWindowHeight):
1755         (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight):
1756         * inspector/InspectorState.cpp: Added.
1757         (WebCore::InspectorState::InspectorState):
1758         (WebCore::InspectorState::restoreFromInspectorCookie):
1759         (WebCore::InspectorState::generateStateObjectForFrontend):
1760         (WebCore::InspectorState::loadFromSettings):
1761         (WebCore::InspectorState::updateCookie):
1762         (WebCore::InspectorState::setValue):
1763         (WebCore::InspectorState::getBoolean):
1764         (WebCore::InspectorState::getString):
1765         (WebCore::InspectorState::getLong):
1766         (WebCore::InspectorState::registerBoolean):
1767         (WebCore::InspectorState::registerString):
1768         (WebCore::InspectorState::registerLong):
1769         (WebCore::InspectorState::Property::create):
1770         * inspector/InspectorState.h: Added.
1771         (WebCore::InspectorState::setBoolean):
1772         (WebCore::InspectorState::setString):
1773         (WebCore::InspectorState::setLong):
1774
1775 2010-10-14  Jia Pu  <jpu@apple.com>
1776
1777         Reviewed by Adele Peterson.
1778
1779         REGRESSION (r69548): Autocorrections are applied even after typing further characters in the word
1780         https://bugs.webkit.org/show_bug.cgi?id=47689
1781         <rdar://problem/8552250>
1782
1783         The test requires using setTimeout(). So we put it in manual-tests.
1784
1785         * editing/Editor.cpp:
1786         (WebCore::Editor::markMisspellingsAfterTypingToPosition): Relpace release() with clear().
1787         (WebCore::Editor::startCorrectionPanelTimer): Release previously set correction range before
1788           start timer for next autocorrection check.
1789         * manual-tests/autocorrection: Added.
1790         * manual-tests/autocorrection/autocorrection-cancelled-by-typing-1.html: Added.
1791
1792 2010-10-14  Ryosuke Niwa  <rniwa@webkit.org>
1793
1794         Reviewed by Tony Chang and Darin Adler.
1795
1796         execCommand FormatBlock creates lots of blockquotes
1797         https://bugs.webkit.org/show_bug.cgi?id=19795
1798
1799         The bug was caused by WebKit's not reusing the block node added by previous iteration
1800         and its inserting block node at wrong places.
1801
1802         Fixed the bug by rewriting FormatBlockCommand::formatRange.  New code resembles that of
1803         IndentOutdentCommand::indentIntoBlockquote.  The difference between two is that formatRange
1804         avoids the existing block elements when replacing blocks and it also adds a placeholder
1805         when removing the existing block caused paragraphs to collapse.
1806
1807         Also fixed a bug in moveParagraphWithClones where erroneous br is added to the start of
1808         the block element to which the paragraph is moved if the block element is the start of a paragraph
1809         and not the end of a paragraph.
1810
1811         Tests: editing/execCommand/format-block-multiple-paragraphs.html
1812                editing/execCommand/format-block-table.html
1813
1814         * editing/CompositeEditCommand.cpp:
1815         (WebCore::CompositeEditCommand::moveParagraphWithClones): No longer adds erroneous br.
1816         * editing/EditorCommand.cpp:
1817         (WebCore::executeFormatBlock):
1818         * editing/FormatBlockCommand.cpp:
1819         (WebCore::FormatBlockCommand::formatRange): Rewritten; see above.
1820         (WebCore::FormatBlockCommand::isElementToApplyInFormatBlockCommand): Renamed from validBlockElement
1821         and moved from htmlediting.cpp.
1822         (WebCore::enclosingBlockToSplitTreeTo): Added.
1823         * editing/FormatBlockCommand.h:
1824         * editing/VisiblePosition.cpp:
1825         (WebCore::enclosingBlockFlowElement): Changed the return type to Element*
1826         * editing/VisiblePosition.h:
1827
1828 2010-10-14  Justin Schuh  <jschuh@chromium.org>
1829
1830         Reviewed by James Robinson.
1831
1832         Crash in HTMLTextFormControlElement::selection()
1833         https://bugs.webkit.org/show_bug.cgi?id=47522
1834
1835         Patch by Ryosuke Niwa  <rniwa@webkit.org>
1836
1837         The bug was caused by our triggering layout inside RenderTextControl::selection.
1838         Fixed it by changing the return type of RenderTextControl::selection to PassRefPtr<Range> from VisibleSelection.
1839
1840         Test: fast/forms/render-text-crash.html
1841
1842         * editing/Editor.cpp:
1843         (WebCore::Editor::selectionForCommand): Calls HTMLTextFormControlElement::selection.
1844         * html/HTMLFormControlElement.cpp:
1845         (WebCore::HTMLTextFormControlElement::selection): Calls RenderTextControl::selection.
1846         * html/HTMLFormControlElement.h:
1847         * rendering/RenderTextControl.cpp:
1848         (WebCore::RenderTextControl::selection): Changed the return type.
1849         * rendering/RenderTextControl.h:
1850
1851 2010-10-14  James Robinson  <jamesr@chromium.org>
1852
1853         Reviewed by Simon Fraser.
1854
1855         SelectElement should check if its renderer exists after calling Element::focus()
1856         https://bugs.webkit.org/show_bug.cgi?id=47696
1857
1858         Adds null checks for element->renderer() after calling element->focus(), since focus()
1859         can dispatch an event and run arbitrary javascript that may cause the select element
1860         to lose its renderer.
1861
1862         Test: fast/forms/select-listbox-focus-displaynone.html
1863
1864         * dom/SelectElement.cpp:
1865         (WebCore::SelectElement::menuListDefaultEventHandler):
1866         (WebCore::SelectElement::listBoxDefaultEventHandler):
1867
1868 2010-10-14  Beth Dakin  <bdakin@apple.com>
1869
1870         Reviewed by Dave Hyatt.
1871
1872         This patch lays the groundwork for 
1873         https://bugs.webkit.org/show_bug.cgi?id=47514 CSS transforms should 
1874         affect scrolling
1875         by adding topmostPosition().
1876
1877         * rendering/RenderBlock.cpp:
1878         (WebCore::RenderBlock::topmostPosition):
1879         * rendering/RenderBlock.h:
1880         * rendering/RenderBox.cpp:
1881         (WebCore::RenderBox::topmostPosition):
1882         * rendering/RenderBox.h:
1883         * rendering/RenderMedia.cpp:
1884         (WebCore::RenderMedia::topmostPosition):
1885         * rendering/RenderMedia.h:
1886         * rendering/RenderTableSection.cpp:
1887         (WebCore::RenderTableSection::topmostPosition):
1888         * rendering/RenderTableSection.h:
1889
1890 2010-10-14  Sergio Villar Senin  <svillar@igalia.com>
1891
1892         Reviewed by Martin Robinson.
1893
1894         [GTK] fix compilation warnings in imported libsoup code
1895         https://bugs.webkit.org/show_bug.cgi?id=47674
1896
1897         Fixed some warnings caused by comparisons between signed and
1898         unsigned integer expressions
1899
1900         * platform/network/soup/cache/soup-directory-input-stream.c:
1901         (webkit_soup_directory_input_stream_read):
1902         * platform/network/soup/cache/soup-request-data.c:
1903         (webkit_soup_request_data_send):
1904         * platform/network/soup/cache/soup-request-file.c:
1905         (webkit_soup_request_file_ensure_file):
1906         * platform/network/soup/cache/webkit/soup-cache.c:
1907         (webkit_soup_cache_entry_is_fresh_enough):
1908         (webkit_soup_cache_has_response):
1909
1910 2010-10-14  Andreas Kling  <kling@webkit.org>
1911
1912         Unreviewed buildfix, RetainPtr is a mac thing..
1913
1914         * platform/network/soup/ProxyServerSoup.cpp:
1915
1916 2010-10-08  Martin Robinson  <mrobinson@igalia.com>
1917
1918         Reviewed by Xan Lopez.
1919
1920         [GTK] Form controls do not respect GTK+ font size
1921         https://bugs.webkit.org/show_bug.cgi?id=47134
1922
1923         Have form controls use the font specified in GtkSettings. This font is
1924         the default control font in GTK+ applications and Firefox. We need to
1925         pass the string through Pango to get a valid font name and size.
1926
1927         * platform/gtk/RenderThemeGtk.cpp:
1928         (WebCore::getScreenDPI): A helper function which returns
1929         the DPI of the default screen or 96 as a fallback.
1930         (WebCore::RenderThemeGtk::systemFont): Calculate the system font
1931         by looking at the GtkSettings value and pushing it through Pango
1932         to get the font family and font size.
1933
1934 2010-10-14  Andreas Kling  <kling@webkit.org>
1935
1936         Soup buildfix for r69808: add ProxyServer stub.
1937
1938         * GNUmakefile.am:
1939         * platform/network/soup/ProxyServerSoup.cpp: Added.
1940         (WebCore::proxyServersForURL):
1941
1942 2010-10-14  Andreas Kling  <kling@webkit.org>
1943
1944         Fix GTK+ build after r69808.
1945
1946         * GNUmakefile.am:
1947         * platform/network/curl/ProxyServerCurl.cpp:
1948         (WebCore::proxyServersForURL):
1949
1950 2010-10-14  Simon Fraser  <simon.fraser@apple.com>
1951
1952         Another build fix. Export FrameLoader::networkingContext()
1953
1954         * WebCore.exp.in:
1955
1956 2010-10-14  Simon Fraser  <simon.fraser@apple.com>
1957
1958         Fix the build after r69808.
1959         
1960         * WebCore.xcodeproj/project.pbxproj:
1961         * platform/network/cf/ProxyServerCFNet.cpp:
1962         (WebCore::proxyServersForURL):
1963
1964 2010-10-14  Gavin Barraclough  <barraclough@apple.com>
1965
1966         Windows build fix following r69806.
1967
1968         * platform/win/ClipboardUtilitiesWin.cpp:
1969         (WebCore::markupToCFHTML):
1970
1971 2010-10-14  Dawit Alemayehu  <adawit@kde.org>
1972
1973         Reviewed by Andreas Kling
1974
1975         Implemented NPN_GetValueForURL and NPN_SetValueForURL and NPN_GetAuthenticationInfo.
1976         https://bugs.webkit.org/show_bug.cgi?id=34539
1977
1978         These missing NPN functions cause Java applets to crash in ports such
1979         as QtWebkit that rely on webkit for Java applet support.
1980
1981         * plugins/PluginDebug.cpp:
1982         (WebCore::prettyNameForNPNURLVariable):
1983         * plugins/PluginDebug.h:
1984         * plugins/PluginPackage.cpp:
1985         (WebCore::PluginPackage::initializeBrowserFuncs):
1986         * plugins/PluginView.cpp:
1987         (WebCore::PluginView::getValueForURL):
1988         (WebCore::PluginView::setValueForURL):
1989         (WebCore::PluginView::getAuthenticationInfo):
1990         * plugins/PluginView.h:
1991         * plugins/npapi.cpp:
1992         (NPN_GetValueForURL):
1993         (NPN_SetValueForURL):
1994         (NPN_GetAuthenticationInfo):
1995         * platform/network/ProxyServer.h:
1996         * platform/network/cf/ProxyServerCFNet.cpp:
1997         (WebCore::proxyServersForURL):
1998         * platform/network/qt/ProxyServerQt.cpp:
1999         (WebCore::proxyServersForURL):
2000  
2001 2010-10-14  Gavin Barraclough  <barraclough@apple.com>
2002
2003         Windows build fix following r69806.
2004
2005         * platform/win/ClipboardUtilitiesWin.cpp:
2006         (WebCore::markupToCFHTML):
2007
2008 2010-10-14  Zhenyao Mo  <zmo@google.com>
2009
2010         Reviewed by Kenneth Russell.
2011
2012         Cache link status at linkProgram and use it in useProgram instead of querying GPU
2013         https://bugs.webkit.org/show_bug.cgi?id=47685
2014
2015         * html/canvas/WebGLProgram.cpp: Always cache link status at linkStatus and use it upon query.
2016         (WebCore::WebGLProgram::WebGLProgram):
2017         * html/canvas/WebGLProgram.h: Ditto.
2018         (WebCore::WebGLProgram::getLinkStatus):
2019         (WebCore::WebGLProgram::setLinkStatus):
2020         * html/canvas/WebGLRenderingContext.cpp: Ditto.
2021         (WebCore::WebGLRenderingContext::getProgramParameter):
2022         (WebCore::WebGLRenderingContext::linkProgram):
2023         (WebCore::WebGLRenderingContext::useProgram):
2024
2025 2010-10-14  Justin Schuh  <jschuh@chromium.org>
2026
2027         Reviewed by James Robinson.
2028
2029         Style fix for r69735
2030         https://bugs.webkit.org/show_bug.cgi?id=47684
2031
2032         No logic change. Existing tests apply.
2033
2034         * rendering/RootInlineBox.cpp:
2035         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
2036
2037 2010-10-14  Yury Semikhatsky  <yurys@chromium.org>
2038
2039         Reviewed by Pavel Feldman.
2040
2041         Web Inspector: encapsulate ScriptState into ConsoleMessage instead of passing it as additional parameter
2042         https://bugs.webkit.org/show_bug.cgi?id=47675
2043
2044         No new tests. This refactoring is covered by existing inspector tests.
2045
2046         * bindings/js/JSConsoleCustom.cpp:
2047         * bindings/js/ScriptCallFrame.cpp:
2048         * bindings/js/ScriptCallFrame.h:
2049         (WebCore::ScriptCallFrame::functionName):
2050         (WebCore::ScriptCallFrame::sourceURL):
2051         (WebCore::ScriptCallFrame::lineNumber):
2052         (WebCore::ScriptCallFrame::argumentCount):
2053         * inspector/ConsoleMessage.cpp:
2054         (WebCore::ConsoleMessage::isEqual):
2055         * inspector/ConsoleMessage.h:
2056         * inspector/InspectorController.cpp:
2057         (WebCore::InspectorController::addMessageToConsole):
2058         (WebCore::InspectorController::addConsoleMessage):
2059         (WebCore::InspectorController::startGroup):
2060         (WebCore::InspectorController::endGroup):
2061         * inspector/InspectorController.h:
2062
2063 2010-10-14  Nikolas Zimmermann  <nzimmermann@rim.com>
2064
2065         Reviewed by Gavin Barraclough.
2066
2067         Replace lots of String::format() usages by StringConcatenate
2068         https://bugs.webkit.org/show_bug.cgi?id=47664
2069
2070         * ForwardingHeaders/wtf/text/StringConcatenate.h: Added.
2071         * bindings/js/JSDOMWindowBase.cpp:
2072         (WebCore::JSDOMWindowBase::crossDomainAccessErrorMessage):
2073         * bindings/v8/V8Proxy.cpp:
2074         (WebCore::V8Proxy::reportUnsafeAccessTo):
2075         * dom/ExceptionBase.cpp:
2076         (WebCore::ExceptionBase::ExceptionBase):
2077         * dom/XMLDocumentParser.cpp:
2078         (WebCore::XMLDocumentParser::handleError):
2079         * history/PageCache.cpp:
2080         (WebCore::logCanCacheFrameDecision):
2081         * html/FTPDirectoryDocument.cpp:
2082         (WebCore::processFileDateString):
2083         * inspector/CodeGeneratorInspector.pm:
2084         * inspector/InspectorController.cpp:
2085         (WebCore::InspectorController::didReceiveResponse):
2086         (WebCore::InspectorController::count):
2087         * inspector/InspectorDOMAgent.cpp:
2088         (WebCore::InspectorDOMAgent::createBreakpointId):
2089         * inspector/InspectorDebuggerAgent.cpp:
2090         (WebCore::formatBreakpointId):
2091         * inspector/InspectorProfilerAgent.cpp:
2092         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
2093         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
2094         (WebCore::InspectorProfilerAgent::getCurrentUserInitiatedProfileName):
2095         (WebCore::InspectorProfilerAgent::takeHeapSnapshot):
2096         * loader/CachedResourceLoader.cpp:
2097         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
2098         * loader/FrameLoader.cpp:
2099         (WebCore::FrameLoader::checkIfDisplayInsecureContent):
2100         (WebCore::FrameLoader::checkIfRunInsecureContent):
2101         (WebCore::FrameLoader::shouldAllowNavigation):
2102         * loader/archive/cf/LegacyWebArchive.cpp:
2103         (WebCore::LegacyWebArchive::createFromSelection):
2104         * page/DOMWindow.cpp:
2105         (WebCore::DOMWindow::postMessageTimerFired):
2106         * page/PrintContext.cpp:
2107         (WebCore::PrintContext::pageProperty):
2108         (WebCore::PrintContext::pageSizeAndMarginsInPixels):
2109         * page/XSSAuditor.cpp:
2110         (WebCore::XSSAuditor::canLoadObject):
2111         * platform/efl/PlatformKeyboardEventEfl.cpp:
2112         (WebCore::createKeyMap):
2113         (WebCore::createWindowsKeyMap):
2114         * platform/graphics/GraphicsLayer.cpp:
2115         (WebCore::GraphicsLayer::animationNameForTransition):
2116         * platform/graphics/brew/ImageBrew.cpp:
2117         (WebCore::Image::loadPlatformResource):
2118         * platform/graphics/cg/ImageBufferCG.cpp:
2119         (WebCore::ImageBuffer::toDataURL):
2120         * platform/graphics/efl/ImageEfl.cpp:
2121         (WebCore::loadResourceSharedBuffer):
2122         * platform/graphics/gtk/ImageBufferGtk.cpp:
2123         (WebCore::ImageBuffer::toDataURL):
2124         * platform/graphics/haiku/ImageBufferHaiku.cpp:
2125         (WebCore::ImageBuffer::toDataURL):
2126         * platform/graphics/mac/GraphicsLayerCA.mm:
2127         (WebCore::animationIdentifier):
2128         * platform/graphics/qt/ImageBufferQt.cpp:
2129         (WebCore::ImageBuffer::toDataURL):
2130         * platform/graphics/skia/ImageBufferSkia.cpp:
2131         (WebCore::ImageBuffer::toDataURL):
2132         * platform/graphics/win/WebLayer.cpp:
2133         (WebCore::WebLayer::drawInContext):
2134         * platform/network/CredentialStorage.cpp:
2135         (WebCore::originStringFromURL):
2136         * platform/sql/SQLiteDatabase.cpp:
2137         (WebCore::SQLiteDatabase::setSynchronous):
2138         * platform/text/wince/TextCodecWinCE.cpp:
2139         (WebCore::LanguageManager::LanguageManager):
2140         * platform/win/ClipboardUtilitiesWin.cpp:
2141         (WebCore::markupToCFHTML):
2142         * platform/win/Language.cpp:
2143         (WebCore::defaultLanguage):
2144         * plugins/PluginStream.cpp:
2145         (WebCore::PluginStream::startStream):
2146         * svg/SVGUseElement.cpp:
2147         (WebCore::dumpInstanceTree):
2148         * websockets/WebSocket.cpp:
2149         (WebCore::WebSocket::connect):
2150         * websockets/WebSocketChannel.cpp:
2151         (WebCore::WebSocketChannel::appendToBuffer):
2152         * websockets/WebSocketHandshake.cpp:
2153         (WebCore::WebSocketHandshake::readServerHandshake):
2154
2155 2010-10-14  Xan Lopez  <xlopez@igalia.com>
2156
2157         Reviewed by Martin Robinson.
2158
2159         [GTK] Small cleanup in PluginViewGtk
2160         https://bugs.webkit.org/show_bug.cgi?id=47588
2161
2162         Remove some dead code and use PlatformRefPtr for cairo surfaces.
2163
2164         No new tests, only refactoring.
2165
2166         * plugins/gtk/PluginViewGtk.cpp:
2167         (WebCore::PluginView::paint):
2168
2169 2010-10-14  Dawit Alemayehu  <adawit@kde.org>
2170
2171         Reviewed by Andreas Kling.
2172
2173         Fix compile error when bulding webkit's Qt port using the "--v8" option.
2174         https://bugs.webkit.org/show_bug.cgi?id=47455
2175
2176         * platform/qt/PlatformBridge.h:
2177
2178 2010-10-01  Martin Robinson  <mrobinson@igalia.com>
2179
2180         Reviewed by Holger Freyther.
2181
2182         [GTK] REGRESSION: FreeType backend does not respect XSettings font settings after r68558
2183         https://bugs.webkit.org/show_bug.cgi?id=47033
2184
2185         Fix logic that merges XSettings defaults and FontConfig settings. If
2186         FontConfig or XSettings specifies a subpixel order, we force subpixel
2187         anti-aliasing on. If anti-aliasing is turned on explicitly, only
2188         override the setting if it was previously off, otherwise we ignore
2189         the user's preference for subpixel or gray antialiasing.
2190
2191         Test: platform/gtk/fonts/xsettings_antialias_settings.html
2192
2193         * platform/graphics/cairo/FontPlatformDataFreeType.cpp:
2194         (WebCore::setCairoFontOptionsFromFontConfigPattern): Fix merging of XSettings
2195         and FontConfig anti-aliasing settings.
2196         (WebCore::getDefaultFontOptions): Added this helper.
2197         (WebCore::FontPlatformData::FontPlatformData): Use the getDefaultFontOptions helper.
2198
2199 2010-10-14  Jian Li  <jianli@chromium.org>
2200
2201         Reviewed by David Levin.
2202
2203         Support typed arrays in workers
2204         https://bugs.webkit.org/show_bug.cgi?id=47616
2205
2206         To support typed arrays in workers, we need to expose constructors in
2207         WorkerContext and add NoStaticTables attribute.
2208
2209         I also add File API feature guard to the constructors defined in
2210         DOMWindow.
2211
2212         * bindings/js/JSDOMWindowCustom.cpp: Add File API feature guard to the
2213         constructors defined in DOMWindow.
2214         * html/canvas/ArrayBuffer.idl: Add NoStaticTables attribute.
2215         * html/canvas/ArrayBufferView.idl: Add NoStaticTables attribute.
2216         * html/canvas/Float32Array.idl: Add NoStaticTables attribute.
2217         * html/canvas/Int16Array.idl: Add NoStaticTables attribute.
2218         * html/canvas/Int32Array.idl: Add NoStaticTables attribute.
2219         * html/canvas/Int8Array.idl: Add NoStaticTables attribute.
2220         * html/canvas/Uint16Array.idl: Add NoStaticTables attribute.
2221         * html/canvas/Uint32Array.idl: Add NoStaticTables attribute.
2222         * html/canvas/Uint8Array.idl: Add NoStaticTables attribute.
2223         * page/DOMWindow.idl: Add File API feature guard to the constructors
2224         defined in DOMWindow.
2225         * workers/WorkerContext.idl: Expose type array constructors.
2226
2227 2010-10-14  Andreas Kling  <kling@webkit.org>
2228
2229         Reviewed by Ariya Hidayat.
2230
2231         [Qt] Avoid creating empty transparency layers in ImageBuffer::clip()
2232
2233         We were creating empty layers for sub-1 height/width clips due to
2234         using IntRect(FloatRect) instead of enclosingIntRect().
2235         This lead to a bunch of QPainter warnings on the console since you
2236         can't draw on an empty QPixmap.
2237
2238         * platform/graphics/qt/ImageBufferQt.cpp:
2239         (WebCore::ImageBuffer::clip):
2240
2241 2010-10-14  Holger Hans Peter Freyther  <holger@moiji-mobile.com>
2242
2243         Reviewed by Martin Robinson.
2244
2245         [cairo] Typo in determining fixed width fonts
2246         https://bugs.webkit.org/show_bug.cgi?id=47470
2247
2248         It must be a single ampersand otherwise the
2249         && FT_FACE_FLAG_FIXED_WIDTH will always be true.
2250
2251         * platform/graphics/cairo/FontPlatformDataFreeType.cpp:
2252         (WebCore::FontPlatformData::FontPlatformData):
2253
2254 2010-10-14  Sergio Villar Senin  <svillar@igalia.com>
2255
2256         Reviewed by Xan Lopez.
2257
2258         [GTK] Failing test LayoutTests/editing/undo/orphaned-selection-crash-bug32823-2.html
2259         https://bugs.webkit.org/show_bug.cgi?id=47666
2260
2261         Do a less strict decoding of base64 data url's as it was done
2262         before. The actual problem is most likely
2263         https://bugs.webkit.org/show_bug.cgi?id=47661 tough.
2264
2265         * platform/network/soup/cache/soup-request-data.c:
2266         (webkit_soup_request_data_send):
2267
2268 2010-10-14  Renata Hodovan  <reni@inf.u-szeged.hu>
2269
2270         Reviewed by Andreas Kling.
2271
2272         SVGFEConvolveMatrixElement doesn't support dynamic invalidation, when attributes change.
2273         https://bugs.webkit.org/show_bug.cgi?id=47660
2274
2275         The dynamic changes are captured by the svgAttributeChange function, and invalidate the filter primitive if necessary.
2276         The patch also implements the simple setOrder and setKernelUnitLength methods.
2277
2278         Tests: svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr.html
2279                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr.html
2280                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr.html
2281                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr.html
2282                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.html
2283                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.html
2284                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr.html
2285                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.html
2286                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr.html
2287                svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr.html
2288
2289         * svg/SVGFEConvolveMatrixElement.cpp:
2290         (WebCore::SVGFEConvolveMatrixElement::setOrder):
2291         (WebCore::SVGFEConvolveMatrixElement::setKernelUnitLength):
2292         (WebCore::SVGFEConvolveMatrixElement::svgAttributeChanged):
2293         * svg/SVGFEConvolveMatrixElement.h:
2294
2295 2010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
2296
2297         Reviewed by Andreas Kling.
2298
2299         [Qt] Text breaking is slow: enable ICU as an opt-in
2300         https://bugs.webkit.org/show_bug.cgi?id=40332
2301
2302         Added a config flag that enables ICU as an opt-in instead of the Qt specific code.
2303
2304         No new tests, this should be covered by existing tests.
2305
2306         * WebCore.pro:
2307         * platform/text/qt/TextBreakIteratorQt.cpp:
2308         (WebCore::currentTextBreakLocaleID):
2309
2310 2010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
2311
2312         Reviewed by Kenneth Rohde Christiansen.
2313
2314         [Texmap] [Qt] Texture mapper initial implementation
2315         https://bugs.webkit.org/show_bug.cgi?id=47070
2316
2317         This patch enables compilation of TextureMapper with Media. It has an initial non-working implementation of a video layer, to be integrated
2318         once other parts of TextureMapper are fully working.
2319
2320         No new tests: this is new implementation that's not enabled yet.
2321
2322         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
2323         (WebCore::TextureMapperVideoLayerQt::TextureMapperVideoLayerQt):
2324         (WebCore::TextureMapperVideoLayerQt::setPlatformLayerClient):
2325         (WebCore::TextureMapperVideoLayerQt::paint):
2326         (WebCore::TextureMapperVideoLayerQt::size):
2327         (WebCore::MediaPlayerPrivateQt::acceleratedRenderingStateChanged):
2328         (WebCore::MediaPlayerPrivateQt::platformLayer):
2329         * platform/graphics/qt/MediaPlayerPrivateQt.h:
2330         (WebCore::MediaPlayerPrivateQt::supportsAcceleratedRendering):
2331         (WebCore::MediaPlayerPrivateQt::acceleratedRenderingStateChanged):
2332         (WebCore::MediaPlayerPrivateQt::platformLayer):
2333
2334 2010-10-14  Alejandro G. Castro  <alex@igalia.com>
2335
2336         Reviewed by Martin Robinson.
2337
2338         Fixed crashes in the GTK 64bits bot, we have to use NULL instead
2339         of 0 when calling these glib APIs, 0 is compiled as a char and in
2340         64bits systems it is not correct.
2341
2342         * platform/network/soup/cache/soup-requester.c:
2343         (webkit_soup_requester_new):
2344         (webkit_soup_requester_request_uri):
2345
2346 2010-10-14  Daniel Bates  <dbates@rim.com>
2347
2348         Attempt to fix the Qt and GTK builds based on the build bot results from <http://webkit.sed.hu>.
2349
2350         * rendering/RenderInline.cpp: Include header "RenderTheme.h"
2351
2352 2010-10-14  Daniel Bates  <dbates@rim.com>
2353
2354         Reviewed by Darin Adler.
2355
2356         Only draw focus ring in RenderInline and RenderImage if the theme
2357         is not able to draw a focus ring
2358         https://bugs.webkit.org/show_bug.cgi?id=47632
2359
2360         Fixes an issue where RenderInline::paintOutline() and RenderImage::paintFocusRings()
2361         would draw a focus ring regardless of whether the port-specific theme is able to
2362         draw a focus ring. Instead, these methods should only draw a focus ring if the
2363         theme is unable to draw a focus ring.
2364
2365         Also, extracted common focus ring drawing code from RenderObject::paintOutline()
2366         and RenderInline::paintOutline() into RenderObject::paintFocusRing().
2367
2368         Tests: fast/forms/textfield-focus-ring.html
2369                fast/images/imagemap-focus-ring.html
2370                fast/inline/inline-focus-ring.html
2371
2372         * rendering/RenderImage.cpp:
2373         (WebCore::RenderImage::paintFocusRings): Modified to only draw a focus ring if the
2374         the theme does not draw one.
2375         * rendering/RenderInline.cpp:
2376         (WebCore::RenderInline::paintOutline): Modified to call RenderObject::paintFocusRing().
2377         * rendering/RenderObject.cpp:
2378         * rendering/RenderObject.cpp:
2379         (WebCore::RenderObject::paintFocusRing): Added.
2380         (WebCore::RenderObject::paintOutline): Modified to call RenderObject::paintFocusRing().
2381         * rendering/RenderObject.h:
2382
2383 2010-10-14  Pavel Feldman  <pfeldman@chromium.org>
2384
2385         Reviewed by Yury Semikhatsky.
2386
2387         Web Inspector: Move load and dom content event timers into InspectorController.
2388         https://bugs.webkit.org/show_bug.cgi?id=47668
2389
2390         * inspector/CodeGeneratorInspector.pm:
2391         * inspector/Inspector.idl:
2392         * inspector/InspectorController.cpp:
2393         (WebCore::InspectorController::InspectorController):
2394         (WebCore::InspectorController::populateScriptObjects):
2395         (WebCore::InspectorController::mainResourceFiredDOMContentEvent):
2396         (WebCore::InspectorController::mainResourceFiredLoadEvent):
2397         * inspector/InspectorController.h:
2398         * inspector/InspectorResource.cpp:
2399         (WebCore::InspectorResource::InspectorResource):
2400         (WebCore::InspectorResource::updateScriptObject):
2401         * inspector/InspectorResource.h:
2402         * inspector/front-end/inspector.js:
2403         (WebInspector.updateResource):
2404         (WebInspector.domContentEventFired):
2405         (WebInspector.loadEventFired):
2406
2407 2010-10-14  Pavel Feldman  <pfeldman@chromium.org>
2408
2409         Not reviewed. Re-landing r69757.
2410
2411 2010-10-14  Pavel Podivilov  <podivilov@chromium.org>
2412
2413         Reviewed by Pavel Feldman.
2414
2415         Web Inspector: implement pausing on window events and timeouts
2416         https://bugs.webkit.org/show_bug.cgi?id=47542
2417
2418         * inspector/InspectorInstrumentation.cpp:
2419         (WebCore::InspectorInstrumentation::didInstallTimerImpl):
2420         (WebCore::InspectorInstrumentation::didRemoveTimerImpl):
2421         (WebCore::InspectorInstrumentation::willDispatchEventImpl):
2422         (WebCore::InspectorInstrumentation::didDispatchEventImpl):
2423         (WebCore::InspectorInstrumentation::willDispatchEventOnWindowImpl):
2424         (WebCore::InspectorInstrumentation::didDispatchEventOnWindowImpl):
2425         (WebCore::InspectorInstrumentation::willFireTimerImpl):
2426         (WebCore::InspectorInstrumentation::didFireTimerImpl):
2427         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
2428         (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent):
2429         * inspector/InspectorInstrumentation.h:
2430         * inspector/front-end/BreakpointManager.js:
2431         (WebInspector.EventListenerBreakpoint.prototype.populateLabelElement):
2432         (WebInspector.EventListenerBreakpoint.prototype.populateStatusMessageElement):
2433         (WebInspector.EventListenerBreakpoint.prototype._condition):
2434         (WebInspector.EventListenerBreakpoint.prototype._uiEventName):
2435         * inspector/front-end/BreakpointsSidebarPane.js:
2436         (WebInspector.EventListenerBreakpointsSidebarPane.prototype._populate):
2437
2438 2010-10-14  Csaba Osztrogon√°c  <ossy@webkit.org>
2439
2440         Reviewed by Andreas Kling.
2441
2442         Canvas: "currentColor" should inherit the canvas element's color
2443         https://bugs.webkit.org/show_bug.cgi?id=40273
2444
2445         Warning fix after r69755. Missing default cases added.
2446
2447         * html/canvas/CanvasStyle.cpp:
2448         (WebCore::parseColorOrCurrentColor):
2449         (WebCore::CanvasStyle::createFromString):
2450         (WebCore::CanvasStyle::createFromStringWithOverrideAlpha):
2451
2452 2010-10-14  Pavel Feldman  <pfeldman@chromium.org>
2453
2454         Not reviewed. Rolling out r69757.
2455
2456 2010-10-08  Pavel Feldman  <pfeldman@chromium.org>
2457
2458         Reviewed by Yury Semikhatsky.
2459
2460         Web Inspector: extract content-related methods into InspectorResourceAgent.
2461         https://bugs.webkit.org/show_bug.cgi?id=47415
2462
2463         This is needed for resource-tracking-less operation of resources panel.
2464
2465         * CMakeLists.txt:
2466         * GNUmakefile.am:
2467         * WebCore.gypi:
2468         * WebCore.pro:
2469         * inspector/InspectorCSSAgent.cpp:
2470         * inspector/InspectorResource.cpp:
2471         (WebCore::InspectorResource::type):
2472         (WebCore::InspectorResource::sourceString):
2473         (WebCore::InspectorResource::sourceBytes):
2474         * inspector/InspectorResource.h:
2475         * inspector/InspectorResourceAgent.cpp: Added.
2476         (WebCore::InspectorResourceAgent::resourceContent):
2477         (WebCore::InspectorResourceAgent::resourceContentBase64):
2478         (WebCore::InspectorResourceAgent::resourceData):
2479         (WebCore::InspectorResourceAgent::cachedResourceType):
2480         (WebCore::InspectorResourceAgent::cachedResource):
2481         * inspector/InspectorResourceAgent.h: Added.
2482         * inspector/InspectorStyleSheet.cpp:
2483         (WebCore::InspectorStyleSheet::resourceStyleSheetText):
2484         * inspector/InspectorUtilities.cpp: Removed.
2485         * inspector/InspectorUtilities.h: Removed.
2486
2487 2010-10-14  Andreas Kling  <kling@webkit.org>
2488
2489         Reviewed by Darin Adler.
2490
2491         Canvas: "currentColor" should inherit the canvas element's color
2492         https://bugs.webkit.org/show_bug.cgi?id=40273
2493
2494         Add support for "currentColor" in CanvasRenderingContext2D APIs.
2495         If the canvas is in-document, "currentColor" is replaced by canvas.style.color,
2496         otherwise we use fully opaque black.
2497
2498         For gradient addColorStop(), "currentColor" always means fully opaque black.
2499
2500         Spec link:
2501         http://www.whatwg.org/specs/web-apps/current-work/#2dcontext
2502
2503         Test: fast/canvas/canvas-currentColor.html
2504
2505         * html/canvas/CanvasGradient.cpp:
2506         (WebCore::CanvasGradient::addColorStop):
2507         * html/canvas/CanvasRenderingContext2D.cpp:
2508         (WebCore::CanvasRenderingContext2D::setStrokeStyle):
2509         (WebCore::CanvasRenderingContext2D::setFillStyle):
2510         (WebCore::CanvasRenderingContext2D::setShadowColor):
2511         (WebCore::CanvasRenderingContext2D::setShadow):
2512         * html/canvas/CanvasStyle.cpp:
2513         (WebCore::parseColor):
2514         (WebCore::currentColor):
2515         (WebCore::parseColorOrCurrentColor):
2516         (WebCore::CanvasStyle::CanvasStyle):
2517         (WebCore::CanvasStyle::createFromString):
2518         (WebCore::CanvasStyle::createFromStringWithOverrideAlpha):
2519         (WebCore::CanvasStyle::isEquivalentColor):
2520         (WebCore::CanvasStyle::applyStrokeColor):
2521         (WebCore::CanvasStyle::applyFillColor):
2522         * html/canvas/CanvasStyle.h:
2523         (WebCore::CanvasStyle::isCurrentColor):
2524         (WebCore::CanvasStyle::hasOverrideAlpha):
2525         (WebCore::CanvasStyle::overrideAlpha):
2526
2527 2010-10-08  Yury Semikhatsky  <yurys@chromium.org>
2528
2529         Reviewed by Pavel Feldman.
2530
2531         Web Inspector: [REGRESSION] Scripts panel: the bubble shows wrong values
2532         https://bugs.webkit.org/show_bug.cgi?id=47358
2533
2534         Test: inspector/debugger-eval-on-call-frame.html
2535
2536         * inspector/front-end/InjectedScript.js:
2537         (injectedScriptConstructor.): don't embrace expression evaluated in the local scope
2538         of a call frame into with(window) to avoid shadowing local variables by global ones.
2539
2540 2010-10-13  Adam Barth  <abarth@webkit.org>
2541
2542         Reviewed by Darin Adler.
2543
2544         Implement getParameter from the URL API
2545         https://bugs.webkit.org/show_bug.cgi?id=46610
2546
2547         Another API from
2548         https://docs.google.com/document/edit?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en#
2549         getParameter lets a web site easily read the value of a URL parameter.
2550         This API is for the simple case of a non-repeated parameter name.
2551         getParameterAll will handle repeated parameter names in a future patch.
2552
2553         Tests: fast/dom/anchor-getParameter.html
2554                http/tests/misc/location-getParameter.html
2555
2556         * html/HTMLAnchorElement.cpp:
2557         (WebCore::HTMLAnchorElement::getParameter):
2558         * html/HTMLAnchorElement.h:
2559         * html/HTMLAnchorElement.idl:
2560         * page/Location.cpp:
2561         (WebCore::Location::getParameter):
2562         * page/Location.h:
2563         * page/Location.idl:
2564         * platform/KURL.cpp:
2565         (WebCore::KURL::copyParsedQueryTo):
2566         * platform/KURLGoogle.cpp:
2567         (WebCore::KURL::copyParsedQueryTo):
2568         * platform/KURL.h:
2569
2570 2010-10-14  Alejandro G. Castro  <alex@igalia.com>
2571
2572         Unreviewed. GTK build fix.
2573
2574         * platform/network/soup/ResourceHandleSoup.cpp:
2575         (WebCore::sendRequestCallback):
2576
2577 2010-10-14  Adrienne Walker  <enne@google.com>
2578
2579         Reviewed by James Robinson.
2580
2581         Add a short-term solution for large layers.  Layers that are too
2582         large to be contained in a single texture just upload the portion of
2583         the layer that is within the content rect.  A longer-term solution
2584         is still tiling with proper memory management.  Layers that have full
2585         3D transforms (more than just translations) are still not drawn.
2586         https://bugs.webkit.org/show_bug.cgi?id=47016
2587
2588         Test: compositing/tiling
2589
2590         * platform/graphics/chromium/ContentLayerChromium.cpp:
2591         (WebCore::ContentLayerChromium::ContentLayerChromium):
2592         (WebCore::ContentLayerChromium::requiresClippedUpdateRect):
2593         (WebCore::ContentLayerChromium::calculateClippedUpdateRect):
2594         (WebCore::ContentLayerChromium::updateContents):
2595         (WebCore::ContentLayerChromium::updateTextureRect):
2596         (WebCore::ContentLayerChromium::draw):
2597         * platform/graphics/chromium/ContentLayerChromium.h:
2598         * platform/graphics/chromium/ImageLayerChromium.cpp:
2599         (WebCore::ImageLayerChromium::updateContents):
2600         * platform/graphics/chromium/LayerRendererChromium.cpp:
2601         (WebCore::LayerRendererChromium::drawLayers):
2602         * platform/graphics/chromium/LayerRendererChromium.h:
2603         (WebCore::LayerRendererChromium::rootLayerContentRect):
2604
2605 2010-10-14  Chris Rogers  <crogers@google.com>
2606
2607         Reviewed by Chris Fleizach.
2608
2609         Add DelayDSPKernel files
2610         https://bugs.webkit.org/show_bug.cgi?id=47518
2611
2612         No new tests since audio API is not yet implemented.
2613
2614         * webaudio/DelayDSPKernel.cpp: Added.
2615         (WebCore::DelayDSPKernel::DelayDSPKernel):
2616         (WebCore::DelayDSPKernel::process):
2617         (WebCore::DelayDSPKernel::reset):
2618         * webaudio/DelayDSPKernel.h: Added.
2619         (WebCore::DelayDSPKernel::maxDelayTime):
2620         (WebCore::DelayDSPKernel::setDelayFrames):
2621         (WebCore::DelayDSPKernel::delayProcessor):
2622
2623 2010-10-13  Sergio Villar Senin  <svillar@igalia.com>
2624
2625         Reviewed by Martin Robinson.
2626
2627         WebKitGtk+ to use the new API from the imported SoupURILoader code
2628
2629         [GTK] Add HTTP caching support
2630         https://bugs.webkit.org/show_bug.cgi?id=44261
2631
2632         ResourceHandleSoup now does everything via SoupURILoader. This means
2633         that all URLs are handled via the same code path, where WebCore simply
2634         asks libsoup for a WebKitSoupRequest and the request returns an input
2635         stream. Many of ResourceHandleSoup's data members are now PlatformRefPtr
2636         as well, to simplify reference counting
2637
2638         * platform/network/ResourceHandleInternal.h:
2639         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2640         * platform/network/soup/ResourceHandleSoup.cpp:
2641         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
2642         (WebCore::ResourceHandle::~ResourceHandle):
2643         (WebCore::restartedCallback):
2644         (WebCore::gotChunkCallback):
2645         (WebCore::parseDataUrl):
2646         (WebCore::cleanupSoupRequestOperation):
2647         (WebCore::sendRequestCallback):
2648         (WebCore::startHttp):
2649         (WebCore::ResourceHandle::start):
2650         (WebCore::ResourceHandle::cancel):
2651         (WebCore::closeCallback):
2652         (WebCore::readCallback):
2653         (WebCore::startGio):
2654         * platform/network/soup/ResourceRequest.h:
2655         * platform/network/soup/ResourceRequestSoup.cpp:
2656         (WebCore::ResourceRequest::updateSoupMessage):
2657
2658 2010-10-12  Abhishek Arya  <inferno@chromium.org>
2659
2660         Reviewed by Darin Adler.
2661
2662         Prevent block logical height of a root inline box from overflowing by clamping it
2663         at INT_MAX. Otherwise, we will not be able to properly dirty the set of lines during
2664         removal a floating object.
2665         https://bugs.webkit.org/show_bug.cgi?id=45611        
2666
2667         Test: fast/overflow/overflow-block-logical-height-crash.html
2668
2669         * rendering/RootInlineBox.cpp:
2670         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
2671
2672 2010-10-13  James Robinson  <jamesr@chromium.org>
2673
2674         Reviewed by Darin Adler.
2675
2676         Throw INDEX_SIZE_ERR exception if createRadialGradient is called with a negative radius
2677         Canvas: radialGradient with negative radius should throw exception
2678         https://bugs.webkit.org/show_bug.cgi?id=37176
2679
2680         This matches the canvas 2d specification, Opera, IE9 beta and our behavior for arc()
2681         and arcTo().  Also fixes some PassRefPtr/RefPtr errors in this file.
2682
2683         Test: canvas/philip/tests/2d.gradient.radial.negative.html
2684
2685         * html/canvas/CanvasRenderingContext2D.cpp:
2686         (WebCore::CanvasRenderingContext2D::createLinearGradient):
2687         (WebCore::CanvasRenderingContext2D::createRadialGradient):
2688         (WebCore::createEmptyImageData):
2689         (WebCore::CanvasRenderingContext2D::measureText):
2690
2691 2010-10-13  Fridrich Strba  <fridrich.strba@bluewin.ch>
2692
2693         Reviewed by Darin Adler.
2694
2695         Add WebCore/plugins/win directory to CFLAGS
2696         https://bugs.webkit.org/show_bug.cgi?id=45547
2697
2698         * GNUmakefile.am:
2699
2700 2010-10-13  Martin Robinson  <mrobinson@igalia.com>
2701
2702         Build fix for older versions of libsoup.
2703
2704         * platform/network/soup/cache/soup-request-file.c:
2705         (webkit_soup_request_file_ensure_file): Access the path member of the SoupURI directly.
2706
2707 2010-10-13  Kwang Yul Seo  <skyul@company100.net>
2708
2709         Reviewed by Kent Tamura.
2710
2711         [BREWMP] Add TextBoundaries and TextBreakIterator
2712         https://bugs.webkit.org/show_bug.cgi?id=46105
2713
2714         Copy the implementation of WinCE port.
2715
2716         * platform/text/brew/TextBoundariesBrew.cpp: Added.
2717         (WebCore::findNextWordFromIndex):
2718         (WebCore::findWordBoundary):
2719         * platform/text/brew/TextBreakIteratorBrew.cpp: Added.
2720         (WebCore::isCharStop):
2721         (WebCore::isLineStop):
2722         (WebCore::isSentenceStop):
2723         (WebCore::TextBreakIterator::reset):
2724         (WebCore::TextBreakIterator::following):
2725         (WebCore::TextBreakIterator::preceding):
2726         (WebCore::WordBreakIterator::first):
2727         (WebCore::WordBreakIterator::next):
2728         (WebCore::WordBreakIterator::previous):
2729         (WebCore::CharBreakIterator::first):
2730         (WebCore::CharBreakIterator::next):
2731         (WebCore::CharBreakIterator::previous):
2732         (WebCore::LineBreakIterator::first):
2733         (WebCore::LineBreakIterator::next):
2734         (WebCore::LineBreakIterator::previous):
2735         (WebCore::SentenceBreakIterator::first):
2736         (WebCore::SentenceBreakIterator::next):
2737         (WebCore::SentenceBreakIterator::previous):
2738         (WebCore::wordBreakIterator):
2739         (WebCore::characterBreakIterator):
2740         (WebCore::lineBreakIterator):
2741         (WebCore::sentenceBreakIterator):
2742         (WebCore::textBreakFirst):
2743         (WebCore::textBreakNext):
2744         (WebCore::textBreakPreceding):
2745         (WebCore::textBreakFollowing):
2746         (WebCore::textBreakCurrent):
2747         (WebCore::isTextBreak):
2748         (WebCore::cursorMovementIterator):
2749
2750 2010-10-13  Jeremy Orlow  <jorlow@chromium.org>
2751
2752         Reviewed by Nate Chapin.
2753
2754         IndexedDB should fire some errors synchronously
2755         https://bugs.webkit.org/show_bug.cgi?id=47530
2756
2757         Add dumb plumbing to pass around exception codes.
2758         Utilize that plumbing in the backend to fire some
2759         errors synchronously.
2760         Verify that create/remove* functions are only called
2761         in setVersionTransactions (and raise when not).
2762         Remove plumbing for obsolete IDBDatabase.objectStore
2763         Remove obsolete mode param.
2764
2765         * storage/IDBCursor.cpp:
2766         (WebCore::IDBCursor::update):
2767         (WebCore::IDBCursor::continueFunction):
2768         (WebCore::IDBCursor::remove):
2769         * storage/IDBCursor.h:
2770         (WebCore::IDBCursor::continueFunction):
2771         * storage/IDBCursor.idl:
2772         * storage/IDBCursorBackendImpl.cpp:
2773         (WebCore::IDBCursorBackendImpl::update):
2774         (WebCore::IDBCursorBackendImpl::continueFunction):
2775         (WebCore::IDBCursorBackendImpl::remove):
2776         * storage/IDBCursorBackendImpl.h:
2777         * storage/IDBCursorBackendInterface.h:
2778         * storage/IDBDatabase.cpp:
2779         (WebCore::IDBDatabase::IDBDatabase):
2780         (WebCore::IDBDatabase::createObjectStore):
2781         (WebCore::IDBDatabase::removeObjectStore):
2782         (WebCore::IDBDatabase::setVersion):
2783         (WebCore::IDBDatabase::transaction):
2784         * storage/IDBDatabase.h:
2785         (WebCore::IDBDatabase::createObjectStore):
2786         (WebCore::IDBDatabase::transaction):
2787         * storage/IDBDatabase.idl:
2788         * storage/IDBDatabaseBackendImpl.cpp:
2789         (WebCore::IDBDatabaseBackendImpl::createObjectStore):
2790         (WebCore::IDBDatabaseBackendImpl::objectStore):
2791         (WebCore::IDBDatabaseBackendImpl::removeObjectStore):
2792         (WebCore::IDBDatabaseBackendImpl::setVersion):
2793         (WebCore::IDBDatabaseBackendImpl::transaction):
2794         * storage/IDBDatabaseBackendImpl.h:
2795         * storage/IDBDatabaseBackendInterface.h:
2796         * storage/IDBFactory.cpp:
2797         (WebCore::IDBFactory::open):
2798         * storage/IDBFactory.h:
2799         (WebCore::IDBFactory::open):
2800         * storage/IDBFactory.idl:
2801         * storage/IDBIndex.cpp:
2802         (WebCore::IDBIndex::openCursor):
2803         (WebCore::IDBIndex::openKeyCursor):
2804         (WebCore::IDBIndex::get):
2805         (WebCore::IDBIndex::getKey):
2806         * storage/IDBIndex.h:
2807         (WebCore::IDBIndex::openCursor):
2808         (WebCore::IDBIndex::openKeyCursor):
2809         * storage/IDBIndex.idl:
2810         * storage/IDBIndexBackendImpl.cpp:
2811         (WebCore::IDBIndexBackendImpl::openCursor):
2812         (WebCore::IDBIndexBackendImpl::openKeyCursor):
2813         (WebCore::IDBIndexBackendImpl::get):
2814         (WebCore::IDBIndexBackendImpl::getKey):
2815         * storage/IDBIndexBackendImpl.h:
2816         * storage/IDBIndexBackendInterface.h:
2817         * storage/IDBObjectStore.cpp:
2818         (WebCore::IDBObjectStore::get):
2819         (WebCore::IDBObjectStore::add):
2820         (WebCore::IDBObjectStore::put):
2821         (WebCore::IDBObjectStore::remove):
2822         (WebCore::IDBObjectStore::createIndex):
2823         (WebCore::IDBObjectStore::index):
2824         (WebCore::IDBObjectStore::removeIndex):
2825         (WebCore::IDBObjectStore::openCursor):
2826         * storage/IDBObjectStore.h:
2827         (WebCore::IDBObjectStore::add):
2828         (WebCore::IDBObjectStore::put):
2829         (WebCore::IDBObjectStore::createIndex):
2830         (WebCore::IDBObjectStore::openCursor):
2831         * storage/IDBObjectStore.idl:
2832         * storage/IDBObjectStoreBackendImpl.cpp:
2833         (WebCore::IDBObjectStoreBackendImpl::get):
2834         (WebCore::IDBObjectStoreBackendImpl::put):
2835         (WebCore::IDBObjectStoreBackendImpl::remove):
2836         (WebCore::IDBObjectStoreBackendImpl::createIndex):
2837         (WebCore::IDBObjectStoreBackendImpl::index):
2838         (WebCore::IDBObjectStoreBackendImpl::removeIndex):
2839         (WebCore::IDBObjectStoreBackendImpl::openCursor):
2840         * storage/IDBObjectStoreBackendImpl.h:
2841         (WebCore::IDBObjectStoreBackendImpl::name):
2842         (WebCore::IDBObjectStoreBackendImpl::keyPath):
2843         (WebCore::IDBObjectStoreBackendImpl::autoIncrement):
2844         * storage/IDBObjectStoreBackendInterface.h:
2845         * storage/IDBTransaction.cpp:
2846         (WebCore::IDBTransaction::objectStore):
2847         * storage/IDBTransaction.h:
2848         * storage/IDBTransactionBackendImpl.cpp:
2849         (WebCore::IDBTransactionBackendImpl::objectStore):
2850
2851 2010-10-13  Sergio Villar Senin  <svillar@igalia.com>
2852
2853         Reviewed by Martin Robinson.
2854
2855         [GTK] Add HTTP caching support
2856         https://bugs.webkit.org/show_bug.cgi?id=44261
2857
2858         This patch adds HTTP caching support to libsoup networking backend.
2859         This code will eventually be part of libsoup, but has been temporarily
2860         imported into the WebCore tree for testing purposes. All libsoup code
2861         is located in WebCore/platform/network/soup/cache. The webkit prefix
2862         was added to all the symbols to prevent problems when this lands in
2863         libsoup. Some external API was also added under webkit/ directory and
2864         will be used by library clients to enable HTTP caching.
2865
2866         There are two parts to this imported code, the first one is the code
2867         under WebCore/platform/network/soup/cache/ that contains all the
2868         SoupURILoader code that supports the development of the cache. The
2869         second part is the HTTP cache implementation located in
2870         WebCore/platform/network/soup/cache/webkit/.
2871
2872         * GNUmakefile.am:
2873         * platform/network/soup/cache/soup-directory-input-stream.c: Added.
2874         (webkit_soup_directory_input_stream_parse_info):
2875         (webkit_soup_directory_input_stream_read_next_file):
2876         (webkit_soup_directory_input_stream_read):
2877         (webkit_soup_directory_input_stream_close):
2878         (webkit_soup_directory_input_stream_class_init):
2879         (webkit_soup_directory_input_stream_init):
2880         (webkit_soup_directory_input_stream_new):
2881         * platform/network/soup/cache/soup-directory-input-stream.h: Added.
2882         * platform/network/soup/cache/soup-http-input-stream.c: Added.
2883         (webkit_soup_http_input_stream_finalize):
2884         (webkit_soup_http_input_stream_class_init):
2885         (webkit_soup_http_input_stream_seekable_iface_init):
2886         (webkit_soup_http_input_stream_init):
2887         (webkit_soup_http_input_stream_queue_message):
2888         (webkit_soup_http_input_stream_new):
2889         (webkit_soup_http_input_stream_got_headers):
2890         (webkit_soup_http_input_stream_got_chunk):
2891         (webkit_soup_http_input_stream_finished):
2892         (webkit_soup_http_input_stream_cancelled):
2893         (webkit_soup_http_input_stream_prepare_for_io):
2894         (webkit_soup_http_input_stream_done_io):
2895         (set_error_if_http_failed):
2896         (read_from_leftover):
2897         (webkit_soup_http_input_stream_send_internal):
2898         (send_sync_finished):
2899         (webkit_soup_http_input_stream_send):
2900         (webkit_soup_http_input_stream_read):
2901         (webkit_soup_http_input_stream_close):
2902         (wrapper_callback):
2903         (send_async_thread):
2904         (webkit_soup_http_input_stream_send_async_in_thread):
2905         (send_async_finished):
2906         (webkit_soup_http_input_stream_send_async_internal):
2907         (webkit_soup_http_input_stream_send_async):
2908         (webkit_soup_http_input_stream_send_finish):
2909         (read_async_done):
2910         (webkit_soup_http_input_stream_read_async):
2911         (webkit_soup_http_input_stream_read_finish):
2912         (webkit_soup_http_input_stream_close_async):
2913         (webkit_soup_http_input_stream_close_finish):
2914         (webkit_soup_http_input_stream_tell):
2915         (webkit_soup_http_input_stream_can_seek):
2916         (webkit_soup_http_input_stream_seek):
2917         (webkit_soup_http_input_stream_can_truncate):
2918         (webkit_soup_http_input_stream_truncate):
2919         (webkit_soup_http_input_stream_get_message):
2920         * platform/network/soup/cache/soup-http-input-stream.h: Added.
2921         * platform/network/soup/cache/soup-request-data.c: Added.
2922         (webkit_soup_request_data_init):
2923         (webkit_soup_request_data_finalize):
2924         (webkit_soup_request_data_check_uri):
2925         (uri_decoded_copy):
2926         (webkit_soup_request_data_send):
2927         (webkit_soup_request_data_get_content_length):
2928         (webkit_soup_request_data_get_content_type):
2929         (webkit_soup_request_data_class_init):
2930         * platform/network/soup/cache/soup-request-data.h: Added.
2931         * platform/network/soup/cache/soup-request-file.c: Added.
2932         (webkit_soup_request_file_get_file):
2933         (webkit_soup_request_file_init):
2934         (webkit_soup_request_file_finalize):
2935         (webkit_soup_request_file_check_uri):
2936         (webkit_soup_request_file_ftp_main_loop_quit):
2937         (webkit_soup_request_file_ensure_file_ftp):
2938         (webkit_soup_request_file_ensure_file):
2939         (webkit_soup_request_file_send):
2940         (webkit_soup_request_file_send_async_thread):
2941         (webkit_soup_request_file_send_async):
2942         (webkit_soup_request_file_send_finish):
2943         (webkit_soup_request_file_get_content_length):
2944         (webkit_soup_request_file_get_content_type):
2945         (webkit_soup_request_file_class_init):
2946         * platform/network/soup/cache/soup-request-file.h: Added.
2947         * platform/network/soup/cache/soup-request-http.c: Added.
2948         (webkit_soup_request_http_get_message):
2949         (webkit_soup_request_http_init):
2950         (webkit_soup_request_http_check_uri):
2951         (webkit_soup_request_http_finalize):
2952         (webkit_soup_request_http_send):
2953         (sent_async):
2954         (conditional_get_ready_cb):
2955         (send_async_cb):
2956         (webkit_soup_request_http_send_async):
2957         (webkit_soup_request_http_send_finish):
2958         (webkit_soup_request_http_get_content_length):
2959         (webkit_soup_request_http_get_content_type):
2960         (webkit_soup_request_http_class_init):
2961         * platform/network/soup/cache/soup-request-http.h: Added.
2962         * platform/network/soup/cache/soup-request.c: Added.
2963         (webkit_soup_request_init):
2964         (webkit_soup_request_finalize):
2965         (webkit_soup_request_set_property):
2966         (webkit_soup_request_get_property):
2967         (webkit_soup_request_initable_init):
2968         (webkit_soup_request_default_check_uri):
2969         (webkit_soup_request_default_send_async):
2970         (webkit_soup_request_default_send_finish):
2971         (webkit_soup_request_send):
2972         (webkit_soup_request_send_async):
2973         (webkit_soup_request_send_finish):
2974         (webkit_soup_request_class_init):
2975         (webkit_soup_request_initable_interface_init):
2976         (webkit_soup_request_get_uri):
2977         (webkit_soup_request_get_session):
2978         (webkit_soup_request_get_content_length):
2979         (webkit_soup_request_get_content_type):
2980         * platform/network/soup/cache/soup-request.h: Added.
2981         * platform/network/soup/cache/soup-requester.c: Added.
2982         (webkit_soup_requester_init):
2983         (finalize):
2984         (webkit_soup_requester_class_init):
2985         (init_request_types):
2986         (webkit_soup_requester_new):
2987         (webkit_soup_requester_request):
2988         (webkit_soup_requester_request_uri):
2989         (webkit_soup_scheme_is_valid):
2990         (webkit_soup_requester_add_protocol):
2991         (webkit_soup_requester_remove_protocol):
2992         (webkit_soup_error_quark):
2993         * platform/network/soup/cache/soup-requester.h: Added.
2994         * platform/network/soup/cache/webkit/soup-cache-private.h: Added.
2995         * platform/network/soup/cache/webkit/soup-cache.c: Added.
2996         (get_cacheability):
2997         (webkit_soup_cache_entry_free):
2998         (copy_headers):
2999         (update_headers):
3000         (webkit_soup_cache_entry_get_current_age):
3001         (webkit_soup_cache_entry_is_fresh_enough):
3002         (webkit_soup_message_get_cache_key):
3003         (webkit_soup_cache_entry_set_freshness):
3004         (webkit_soup_cache_entry_new):
3005         (webkit_soup_cache_writing_fixture_free):
3006         (close_ready_cb):
3007         (write_ready_cb):
3008         (msg_got_chunk_cb):
3009         (msg_got_body_cb):
3010         (webkit_soup_cache_entry_delete):
3011         (lru_compare_func):
3012         (cache_accepts_entries_of_size):
3013         (make_room_for_new_entry):
3014         (webkit_soup_cache_entry_insert_by_key):
3015         (msg_restarted_cb):
3016         (append_to_ready_cb):
3017         (msg_got_headers_cb):
3018         (webkit_soup_cache_send_response):
3019         (request_started):
3020         (attach):
3021         (webkit_soup_cache_session_feature_init):
3022         (webkit_soup_cache_init):
3023         (webkit_soup_cache_finalize):
3024         (webkit_soup_cache_set_property):
3025         (webkit_soup_cache_get_property):
3026         (webkit_soup_cache_constructed):
3027         (webkit_soup_cache_type_get_type):
3028         (webkit_soup_cache_class_init):
3029         (webkit_soup_cache_new):
3030         (webkit_soup_cache_has_response):
3031         (webkit_soup_cache_get_cacheability):
3032         (force_flush_timeout):
3033         (webkit_soup_cache_flush):
3034         (remove_cache_item):
3035         (webkit_soup_cache_clear):
3036         (webkit_soup_cache_generate_conditional_request):
3037         (pack_entry):
3038         (webkit_soup_cache_dump):
3039         (webkit_soup_cache_load):
3040         (webkit_soup_cache_set_max_size):
3041         (webkit_soup_cache_get_max_size):
3042         * platform/network/soup/cache/webkit/soup-cache.h: Added.
3043
3044 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3045
3046         Chromium build fix.
3047
3048         * bindings/v8/ScriptProfiler.cpp:
3049
3050 2010-10-13  Chris Evans  <cevans@google.com>
3051
3052         Reviewed by Jian Li.
3053
3054         Blob / BlobBuilder can be put into bad state with wild integers and strings, due to integer overflows
3055         https://bugs.webkit.org/show_bug.cgi?id=47382
3056
3057         Fix integer overflow errors in Blob.slice and BlobBuilder.append.
3058
3059         Test: fast/files/blob-slice-overflow.html
3060
3061         * fileapi/Blob.cpp:
3062         (WebCore::Blob::slice): handle integer overflow properly.
3063         * fileapi/BlobBuilder.cpp:
3064         (WebCore::BlobBuilder::append): use correct type for vector length.
3065
3066 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3067
3068         Build fix - remove some redundant references to ScriptString.
3069
3070         * WebCore.gypi:
3071         * WebCore.pro:
3072         * bindings/v8/ScriptProfiler.cpp:
3073
3074 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3075
3076         Reviewed by Oliver Hunt.
3077
3078         Bug 47621 - Remove bindings/v8/ScriptString
3079         This is now redundant.
3080
3081         * bindings/v8/ScriptCallFrame.h:
3082         (WebCore::ScriptCallFrame::functionName):
3083         * bindings/v8/ScriptFunctionCall.cpp:
3084         * bindings/v8/ScriptFunctionCall.h:
3085         * bindings/v8/ScriptString.h: Removed.
3086         * bindings/v8/ScriptStringImpl.cpp: Removed.
3087         * bindings/v8/ScriptStringImpl.h: Removed.
3088
3089 2010-10-13  Anders Carlsson  <andersca@apple.com>
3090
3091         Reviewed by John Sullivan.
3092
3093         Draw the find overlay holes
3094         https://bugs.webkit.org/show_bug.cgi?id=47631
3095
3096         Export symbols needed by WebKit2.
3097
3098         * WebCore.exp.in:
3099
3100 2010-10-13  James Simonsen  <simonjam@chromium.org>
3101
3102         Reviewed by Darin Adler.
3103
3104         Implement onreadystatechange event handler for Documents
3105         https://bugs.webkit.org/show_bug.cgi?id=26140
3106
3107         Test: fast/dom/Document/readystate.html
3108
3109         * dom/Document.cpp:
3110         (WebCore::Document::setReadyState): Fire readystatechangeevent.
3111         (WebCore::Document::open): Clear event listeners.
3112         * dom/Document.h: Add readystatechange event.
3113         * dom/Document.idl: Ditto.
3114
3115 2010-10-13  Chris Fleizach  <cfleizach@apple.com>
3116
3117         Reviewed by Beth Dakin.
3118
3119         AX: accessibilityIsIgnored not respected on ARIA tables
3120         https://bugs.webkit.org/show_bug.cgi?id=47564
3121
3122         For platforms that ignore column headers and header container objects (everything
3123         except Mac) on accessibility tables, that choice needs to be respected in 
3124         ARIA tables as well.
3125
3126         GTK is the only open platform doing this, so I'll have to collect the result of this 
3127         test. It was copied from table-hierarchy.html, but changed to use ARIA tables.
3128
3129         Test: platform/gtk/accessibility/aria-table-hierarchy.html
3130
3131         * accessibility/AccessibilityARIAGrid.cpp:
3132         (WebCore::AccessibilityARIAGrid::addChildren):
3133
3134 2010-10-13  Victoria Kirst  <vrk@google.com>
3135
3136         Reviewed by James Robinson.
3137
3138         No longer ASSERT for LayerRenderer in VideoLayerChromium destructor
3139         https://bugs.webkit.org/show_bug.cgi?id=47432
3140
3141         * platform/graphics/chromium/VideoLayerChromium.cpp:
3142         (WebCore::VideoLayerChromium::cleanupResources):
3143
3144 2010-10-13  Leandro Pereira  <leandro@profusion.mobi>
3145
3146         [EFL] Unreviewed. Build fix.
3147
3148         * CMakeLists.txt: Add ContextShadow.cpp.
3149         * CMakeListsEfl.txt: Add ContextShadowCairo.cpp.
3150
3151 2010-10-13  Martin Robinson  <mrobinson@igalia.com>
3152
3153         Reviewed by Holger Freyther.
3154
3155         [GTK] r69681 caused some tests to crash
3156         https://bugs.webkit.org/show_bug.cgi?id=47622
3157
3158         Properly initialize m_layerContext on the ContextShadow so that in situations
3159         where beginShadowLayer bails out early with a null return value, it is set
3160         to null. This may happen when the first call to beginShadowLayer on a particular
3161         ContextShadow uses a region which is entirely outside the clip region or which
3162         is empty.
3163
3164         * platform/graphics/cairo/ContextShadow.cpp:
3165         (WebCore::ContextShadow::ContextShadow): Properly initialize m_layerContext.
3166
3167 2010-10-13  Anders Carlsson  <andersca@apple.com>
3168
3169         Reviewed by Beth Dakin.
3170
3171         Don't set the fill/stroke colorspace before filling/stroking
3172         https://bugs.webkit.org/show_bug.cgi?id=47619
3173
3174         Setting the colorspace has the side-effect of setting the color to black, which is
3175         not what we want. When fill/stroke is called, a fill/stroke color should already have been set.
3176
3177         Pixel tests show no regressions from this change.
3178
3179         * platform/graphics/cg/GraphicsContextCG.cpp:
3180         (WebCore::GraphicsContext::fillPath):
3181         (WebCore::GraphicsContext::strokePath):
3182         (WebCore::GraphicsContext::fillRect):
3183         (WebCore::GraphicsContext::strokeRect):
3184
3185 2010-10-13  Brent Fulgham  <bfulgham@webkit.org>
3186
3187         Unreviewed WinCairo build fix.
3188         New ContextShadow class not built for Windows builds.
3189
3190         * WebCore.vcproj/WebCore.vcproj: Add missing files for
3191         building ContextShadow on WinCairo.
3192         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
3193         Add missing include for ContextShadow definition.
3194
3195 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3196
3197         Chromium build fix pt1.
3198
3199         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
3200         (WebCore::V8XMLHttpRequest::responseTextAccessorGetter):
3201
3202 2010-10-13  Anders Carlsson  <andersca@apple.com>
3203
3204         Reviewed by Sam Weinig.
3205
3206         Send over find indicator information to the UI process
3207         https://bugs.webkit.org/show_bug.cgi?id=47612
3208
3209         Export symbols needed by WebKit2.
3210
3211         * WebCore.exp.in:
3212
3213 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3214
3215         Reviewed by Oliver Hunt.
3216
3217         https://bugs.webkit.org/show_bug.cgi?id=43987
3218         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
3219         to construct their internal result string.  Remove ScriptString (this is now
3220         redundant).
3221
3222         * WebCore.xcodeproj/project.pbxproj:
3223         * bindings/js/JSDOMBinding.cpp:
3224         (WebCore::jsOwnedStringOrNull):
3225         * bindings/js/JSDOMBinding.h:
3226         * bindings/js/JSXMLHttpRequestCustom.cpp:
3227         (WebCore::JSXMLHttpRequest::responseText):
3228         * bindings/js/ScriptCallFrame.cpp:
3229         (WebCore::ScriptCallFrame::ScriptCallFrame):
3230         * bindings/js/ScriptCallFrame.h:
3231         (WebCore::ScriptCallFrame::functionName):
3232         * bindings/js/ScriptCallStack.h:
3233         * bindings/js/ScriptFunctionCall.cpp:
3234         * bindings/js/ScriptFunctionCall.h:
3235         * bindings/js/ScriptString.h: Removed.
3236         * dom/ScriptExecutionContext.h:
3237         * fileapi/FileReader.cpp:
3238         (WebCore::FileReader::FileReader):
3239         (WebCore::FileReader::abort):
3240         (WebCore::FileReader::didReceiveData):
3241         (WebCore::FileReader::result):
3242         (WebCore::FileReader::convertToText):
3243         (WebCore::FileReader::convertToDataURL):
3244         * fileapi/FileReader.h:
3245         * fileapi/FileReaderSync.cpp:
3246         (WebCore::FileReaderSyncLoader::FileReaderSyncLoader):
3247         (WebCore::FileReaderSyncLoader::didReceiveData):
3248         (WebCore::FileReaderSync::readAsBinaryString):
3249         (WebCore::FileReaderSync::readAsText):
3250         (WebCore::FileReaderSync::readAsDataURL):
3251         (WebCore::FileReaderSync::read):
3252         (WebCore::FileReaderSync::convertToText):
3253         * fileapi/FileReaderSync.h:
3254         (WebCore::FileReaderSync::readAsText):
3255         (WebCore::FileReaderSync::FileReaderSync):
3256         * inspector/InspectorController.cpp:
3257         (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
3258         (WebCore::InspectorController::scriptImported):
3259         * inspector/InspectorController.h:
3260         * inspector/InspectorResource.cpp:
3261         (WebCore::InspectorResource::setOverrideContent):
3262         * inspector/InspectorResource.h:
3263         * loader/FrameLoader.cpp:
3264         * loader/FrameLoader.h:
3265         * loader/FrameLoaderClient.h:
3266         * loader/ResourceLoadNotifier.h:
3267         * workers/WorkerScriptLoader.h:
3268         * xml/XMLHttpRequest.cpp:
3269         (WebCore::XMLHttpRequest::XMLHttpRequest):
3270         (WebCore::XMLHttpRequest::responseText):
3271         (WebCore::XMLHttpRequest::responseXML):
3272         (WebCore::XMLHttpRequest::abort):
3273         (WebCore::XMLHttpRequest::clearResponse):
3274         (WebCore::XMLHttpRequest::dropProtection):
3275         (WebCore::XMLHttpRequest::didFinishLoading):
3276         (WebCore::XMLHttpRequest::didReceiveData):
3277         * xml/XMLHttpRequest.h:
3278
3279 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
3280
3281         Reviewed by Oliver Hunt.
3282
3283         Bug 43987 - Downloading using XHR is much slower than before
3284
3285         * svg/SVGPathStringBuilder.cpp:
3286         (WebCore::SVGPathStringBuilder::result):
3287             StringBuilder::size() -> StringBuilder::length().
3288
3289 2010-10-13  Yong Li  <yoli@rim.com>
3290
3291         Reviewed by Oliver Hunt.
3292
3293         Fix potential misaligned memory access in CloneDeserializer::readLittleEndian and readString
3294         that can result crash on ARM (<v6).
3295         https://bugs.webkit.org/show_bug.cgi?id=47594
3296
3297         No new test added, because the crash can be produced by existing tests like:
3298         LayoutTests/fast/events/message-channel-gc-4.html
3299
3300         * bindings/js/SerializedScriptValue.cpp:
3301         (WebCore::CloneDeserializer::readLittleEndian):
3302         (WebCore::CloneDeserializer::readString):
3303
3304 2010-10-06  Martin Robinson  <mrobinson@igalia.com>
3305
3306         Reviewed by Dirk Schulze.
3307
3308         [Cairo] Activate ContextShadow in all places where shadows are drawn
3309         https://bugs.webkit.org/show_bug.cgi?id=46475
3310
3311         Turn on ContextShadow for the Cairo port and remove all old shadow code.
3312         Shadow tiling optimizations will be added in a followup patch to ContextShadowCairo.
3313
3314         * platform/graphics/GraphicsContext.h: Add a ContextShadow forward declaration for Cairo.
3315         * platform/graphics/cairo/FontCairo.cpp: Switch to using ContextShadow.
3316         (WebCore::prepareContextForGlyphDrawing): Added this helper which sets up the translation
3317         on the specified cairo_t to prepare for drawing glyphs.
3318         (WebCore::drawGlyphsToContext): Added this helper which draws the glyphs to a cairo_t,
3319         while properly handling glyphs with synthetic bold.
3320         (WebCore::Font::drawGlyphs): Removed old shadow code and replaced it with ContextShadow usage.
3321         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3322         (WebCore::drawPathShadow): Modified this to use ContextShadow and to take an enum
3323         argument specifying whether to fill or stroke the solid figure for the shadow.
3324         (WebCore::fillCurrentCairoPath): Updated drawPathShadow call.
3325         (WebCore::strokeCurrentCairoPath): Ditto.
3326         (WebCore::GraphicsContext::savePlatformState): Save the ContextShadow.
3327         (WebCore::GraphicsContext::restorePlatformState): Restore the ContextShadow.
3328         (WebCore::GraphicsContext::drawPath): Updated drawPathShadow call.
3329         (WebCore::GraphicsContext::fillRect): Uses ContextShadow now.
3330         (WebCore::GraphicsContext::setPlatformShadow): Uses ContextShadow now.
3331         (WebCore::GraphicsContext::contextShadow): Added.
3332         (WebCore::GraphicsContext::clearPlatformShadow): Clears the ContextShadow member.
3333         (WebCore::GraphicsContext::fillRoundedRect): Updated drawPathShadow call.
3334         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
3335         (WebCore::GraphicsContextPlatformPrivate::hasShadow): Added.
3336         * platform/graphics/cairo/ImageCairo.cpp:
3337         (WebCore::BitmapImage::draw): Updated to use ContextShadow.
3338
3339 2010-10-13  John Knottenbelt  <jknotten@chromium.org>
3340
3341         Reviewed by Steve Block.
3342
3343         First step towards client-based Geolocation in Chromium. Build
3344         fixes for CLIENT_BASED_GEOLOCATION preprocessor feature define.
3345         https://bugs.webkit.org/show_bug.cgi?id=47586
3346
3347         * WebCore.gyp/WebCore.gyp:
3348         * platform/chromium/ChromiumBridge.h:
3349         * platform/chromium/GeolocationServiceChromium.cpp:
3350
3351 2010-10-13  Steve Block  <steveblock@google.com>
3352
3353         Unreviewed fix
3354
3355         Need to check for the existence of DeviceOrientation and DeviceMotion controllers
3356
3357         These features can be disabled at run time, so an enable guard is not sufficient.
3358         This bug was introduced in http://trac.webkit.org/changeset/69646
3359
3360         Tested with existing tests.
3361
3362         * history/PageCache.cpp:
3363         (WebCore::logCanCachePageDecision):
3364         (WebCore::PageCache::canCache):
3365
3366 2010-10-13  Yury Semikhatsky  <yurys@chromium.org>
3367
3368         Reviewed by Pavel Feldman.
3369
3370         Web Inspector: stack information is inconsistent between console.trace and runtime errors.
3371         https://bugs.webkit.org/show_bug.cgi?id=47252
3372
3373         * console.trace() is now formatted the same way as other stack traces
3374
3375         * If there is //@ sourceURL=url line at the end of eval'ed script source
3376         the url will be shown in the stack traces for script. That is why ScriptCallFrame::sourceURL
3377         type has changed from KURL to String.
3378
3379         Tests: inspector/console-trace-in-eval.html
3380                inspector/console-uncaught-exception-in-eval.html
3381
3382         * bindings/js/ScriptCallFrame.cpp:
3383         (WebCore::ScriptCallFrame::ScriptCallFrame):
3384         * bindings/js/ScriptCallFrame.h:
3385         (WebCore::ScriptCallFrame::sourceURL):
3386         * bindings/v8/ScriptCallFrame.cpp:
3387         (WebCore::ScriptCallFrame::ScriptCallFrame):
3388         * bindings/v8/ScriptCallFrame.h:
3389         (WebCore::ScriptCallFrame::sourceURL):
3390         * bindings/v8/ScriptCallStack.cpp:
3391         (WebCore::getFrameLocation):
3392         (WebCore::ScriptCallStack::create):
3393         * bindings/v8/ScriptCallStack.h:
3394         * bindings/v8/ScriptController.cpp:
3395         (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions):
3396         * bindings/v8/custom/V8ConsoleCustom.cpp:
3397         (WebCore::V8Console::traceCallback):
3398         * inspector/ConsoleMessage.cpp:
3399         (WebCore::ConsoleMessage::CallFrame::buildInspectorObject):
3400         (WebCore::ConsoleMessage::ConsoleMessage):
3401         * inspector/ConsoleMessage.h:
3402         * inspector/front-end/ConsoleView.js:
3403         (WebInspector.ConsoleMessage.prototype._formatMessage):
3404         * page/Console.cpp:
3405         (WebCore::Console::addMessage):
3406         (WebCore::Console::count):
3407         (WebCore::Console::timeEnd):
3408
3409 2010-10-13  Kent Tamura  <tkent@chromium.org>
3410
3411         Unreviewed, a trivial change.
3412
3413         Run sort-Xcode-project-file.
3414
3415         * WebCore.xcodeproj/project.pbxproj:
3416
3417 2010-10-13  Yael Aharon  <yael.aharon@nokia.com>
3418
3419         Reviewed by Andreas Kling.
3420
3421         Wrong ASSERT when select element has size 0
3422         https://bugs.webkit.org/show_bug.cgi?id=47567
3423
3424         Keep the ASSERT only if the size of the element list is more than 0
3425         Test: fast/dom/HTMLSelectElement/click-size-zero-no-crash.html
3426
3427         * dom/SelectElement.cpp:
3428         (WebCore::SelectElement::updateListBoxSelection):
3429         (WebCore::SelectElement::listBoxDefaultEventHandler):
3430
3431 2010-10-13  Steve Block  <steveblock@google.com>
3432
3433         Reviewed by Alexey Proskuryakov.
3434
3435         Pages using DeviceOrientation and DeviceMotion should not go into the page cache
3436         https://bugs.webkit.org/show_bug.cgi?id=47408
3437
3438         Tests: fast/dom/DeviceMotion/no-page-cache.html
3439                fast/dom/DeviceOrientation/no-page-cache.html
3440
3441         * dom/DeviceMotionController.h:
3442         (WebCore::DeviceMotionController::isActive):
3443         * dom/DeviceOrientationController.h:
3444         (WebCore::DeviceOrientationController::isActive):
3445         * history/PageCache.cpp:
3446         (WebCore::logCanCachePageDecision):
3447         (WebCore::PageCache::canCache):
3448         * page/Page.cpp:
3449
3450 2010-10-13  Jenn Braithwaite  <jennb@chromium.org>
3451
3452         Reviewed by Dmitry Titov.
3453
3454         Make resource identifiers unique across pages
3455         https://bugs.webkit.org/show_bug.cgi?id=47002
3456
3457         Test: http/tests/misc/iframe-reparenting-id-collision.html
3458
3459         * loader/ProgressTracker.cpp:
3460         (WebCore::ProgressTracker::ProgressTracker):
3461         (WebCore::ProgressTracker::createUniqueIdentifier):
3462         * loader/ProgressTracker.h:
3463
3464 2010-10-12  Roland Steiner  <rolandsteiner@chromium.org>
3465
3466         Reviewed by David Hyatt.
3467
3468         Bug 41040 - :before/:after content should not become part of a ruby base
3469         https://bugs.webkit.org/show_bug.cgi?id=41040
3470
3471         Also related to:
3472         https://bugs.webkit.org/show_bug.cgi?id=40895.
3473         https://bugs.webkit.org/show_bug.cgi?id=43722.
3474
3475         Explicitly handle :before and :after content in the default way.
3476
3477         Test: fast/ruby/ruby-beforeafter.html
3478               fast/ruby/after-doesnt-crash.html
3479
3480         * rendering/RenderObject.h:
3481         (WebCore::RenderObject::isBeforeContent):
3482         * rendering/RenderRuby.cpp:
3483         (WebCore::lastRubyRun):
3484         (WebCore::RenderRubyAsInline::addChild):
3485         (WebCore::RenderRubyAsInline::removeChild):
3486         (WebCore::RenderRubyAsBlock::addChild):
3487         (WebCore::RenderRubyAsBlock::removeChild):
3488
3489 2010-10-12  Sheriff Bot  <webkit.review.bot@gmail.com>
3490
3491         Unreviewed, rolling out r69639.
3492         http://trac.webkit.org/changeset/69639
3493         https://bugs.webkit.org/show_bug.cgi?id=47575
3494
3495         "regressed nav-element.html" (Requested by rniwa on #webkit).
3496
3497         * editing/ApplyBlockElementCommand.cpp:
3498         (WebCore::ApplyBlockElementCommand::formatSelection):
3499         * editing/EditorCommand.cpp:
3500         (WebCore::executeFormatBlock):
3501         * editing/FormatBlockCommand.cpp:
3502         (WebCore::FormatBlockCommand::formatRange):
3503         * editing/FormatBlockCommand.h:
3504         (WebCore::FormatBlockCommand::editingAction):
3505         * editing/VisiblePosition.cpp:
3506         (WebCore::enclosingBlockFlowElement):
3507         * editing/VisiblePosition.h:
3508         * editing/htmlediting.cpp:
3509         (WebCore::validBlockTag):
3510         * editing/htmlediting.h:
3511
3512 2010-10-12  Ryosuke Niwa  <rniwa@webkit.org>
3513
3514         Reviewed by Tony Chang.
3515
3516         execCommand FormatBlock creates lots of blockquotes
3517         https://bugs.webkit.org/show_bug.cgi?id=19795
3518
3519         The bug was caused by WebKit's not reusing the block node added by previous iteration
3520         and its inserting block node at wrong places.
3521
3522         Fixed the bug by rewriting FormatBlockCommand::formatRange.  New code resembles that of
3523         IndentOutdentCommand::indentIntoBlockquote.  The difference between two is that formatRange
3524         avoids the existing block elements when replacing blocks and it also adds a placeholder
3525         when removing the existing block caused paragraphs to collapse.
3526
3527         Tests: editing/execCommand/format-block-multiple-paragraphs.html
3528                editing/execCommand/format-block-table.html
3529
3530         * editing/EditorCommand.cpp:
3531         (WebCore::executeFormatBlock):
3532         * editing/FormatBlockCommand.cpp:
3533         (WebCore::FormatBlockCommand::formatRange): Rewritten; see above.
3534         (WebCore::FormatBlockCommand::isElementToApplyInFormatBlockCommand): Renamed from validBlockElement
3535         and moved from htmlediting.cpp.
3536         (WebCore::FormatBlockCommand::enclosingBlockToSplitTreeTo): Added.
3537         * editing/FormatBlockCommand.h:
3538         * editing/VisiblePosition.cpp:
3539         (WebCore::enclosingBlockFlowElement): Changed the return type to Element*
3540         * editing/VisiblePosition.h:
3541
3542 2010-10-11  Girish Ramakrishnan  <girish@forwardbias.in>
3543
3544         Reviewed by Anders Carlsson.
3545
3546         Make PluginView inherit from PluginViewBase.
3547
3548         This change is a precursor to adding accelerated compositing support
3549         for NPAPI plugins.
3550
3551         https://bugs.webkit.org/show_bug.cgi?id=47418
3552
3553         * page/Page.cpp:
3554         (WebCore::Page::privateBrowsingStateChanged):
3555         * plugins/PluginView.h:
3556         * plugins/PluginViewBase.h:
3557         (WebCore::PluginViewBase::PluginViewBase):
3558
3559 2010-10-12  Kinuko Yasuda  <kinuko@chromium.org>
3560
3561         Reviewed by Jian Li.
3562
3563         Pass platform path (rather than virtual path) when creating File from FileEntry
3564         https://bugs.webkit.org/show_bug.cgi?id=47563
3565
3566         No new tests, the new test for FileWriter will be verifying this.
3567
3568         * fileapi/FileEntry.cpp:
3569         (WebCore::FileEntry::file):
3570
3571 2010-10-12 David Hyatt  <hyatt@apple.com>
3572
3573         Reviewed by Dan Bernstein
3574
3575         <rdar://problem/8488444> REGRESSION (r67771)
3576         https://bugs.webkit.org/show_bug.cgi?id=47434
3577         Crash when printing in RenderBlock::markDescendantBlocksAndLinesForLayout
3578         
3579         Added printing/simultaneous-position-float-change.html
3580
3581         Remove the markDescendantBlocksAndLinesForLayout method since it can walk m_floatingObjects lists with deleted
3582         objects in them.  Make the mechanism for relayout when the page height changes the same as the one when pageY
3583         changes and just tie a concept of pageHeightChanged to the layout state.  If that is set, blocks will just
3584         automatically mark themselves as needing layout.
3585
3586         * rendering/LayoutState.cpp:
3587         (WebCore::LayoutState::LayoutState):
3588         * rendering/LayoutState.h:
3589         (WebCore::LayoutState::LayoutState):
3590         (WebCore::LayoutState::pageHeight):
3591         (WebCore::LayoutState::pageHeightChanged):
3592         * rendering/RenderBlock.cpp:
3593         (WebCore::RenderBlock::layoutBlock):
3594         (WebCore::RenderBlock::layoutBlockChild):
3595         (WebCore::RenderBlock::layoutPositionedObjects):
3596         (WebCore::RenderBlock::markForPaginationRelayoutIfNeeded):
3597         (WebCore::RenderBlock::insertFloatingObject):
3598         (WebCore::RenderBlock::positionNewFloats):
3599         * rendering/RenderBlock.h:
3600         * rendering/RenderBox.cpp:
3601         * rendering/RenderBox.h:
3602         (WebCore::RenderBox::markForPaginationRelayoutIfNeeded):