Web Inspector: add Ace editor experiment
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-03-04  Andrey Lushnikov  <lushnikov@chromium.org>
2
3         Web Inspector: add Ace editor experiment
4         https://bugs.webkit.org/show_bug.cgi?id=111191
5
6         Reviewed by Pavel Feldman.
7
8         No new tests.
9
10         Add Ace text editor experiment.
11
12         * WebCore.gypi:
13         * inspector/front-end/AceTextEditor.js: Added.
14         * inspector/front-end/Settings.js:
15         (WebInspector.ExperimentsSettings):
16         * inspector/front-end/SourceFrame.js:
17         (WebInspector.SourceFrame):
18         * inspector/front-end/ace/ace.js: Added.
19         * inspector/front-end/ace/acedevtools.css: Added.
20         * inspector/front-end/ace/mode_css.js: Added.
21         * inspector/front-end/ace/mode_html.js: Added.
22         * inspector/front-end/ace/mode_javascript.js: Added.
23         * inspector/front-end/ace/theme_textmate.js: Added.
24         * inspector/front-end/ace/LICENSE.txt: Added.
25
26 2013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
27
28         Add build flag for FontLoader
29         https://bugs.webkit.org/show_bug.cgi?id=111289
30
31         Reviewed by Benjamin Poulain.
32
33         Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
34
35         * Configurations/FeatureDefines.xcconfig:
36
37 2013-03-04  Mike West  <mkwst@chromium.org>
38
39         XSSAuditor should strip dangerous attributes from SMIL animation elements.
40         https://bugs.webkit.org/show_bug.cgi?id=111071
41
42         Reviewed by Adam Barth.
43
44         SMIL animation elements can, amusingly enough, animate the 'href' of a
45         link. This patch teaches XSSAuditor how to deal with the
46         semicolon-separated 'animation[values]' attribute in order to ensure
47         that it doesn't contain JavaScript URLs that could be animated into
48         place for an unsuspecting user to click on.
49
50         Test: http/tests/security/xssAuditor/svg-animate.html
51
52         * html/parser/XSSAuditor.cpp:
53         (WebCore::isSemicolonSeparatedAttribute): Added.
54             This returns true if the given attribute is SVGNames::valuesAttr,
55             but makes it possible to easily extend the list with additional
56             attributes with this strange property.
57         (WebCore::semicolonSeparatedValueContainsJavaScriptURL): Added.
58             Given a semicolon-separated string, determine if it contains any
59             JavaScript URLs.
60         (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected):
61             When looking for dangerousness, determine whether or not we should
62             be comparing against each member of a semicolon-separated list.
63
64 2013-03-04  Arvid Nilsson  <anilsson@rim.com>
65
66         [BlackBerry] New files for BlackBerry::Platform::Graphics::GraphicsContext integration
67         https://bugs.webkit.org/show_bug.cgi?id=111153
68
69         Reviewed by Rob Buis.
70
71         BlackBerry PR 293208
72
73         This patch contains contributions from many members of the BlackBerry
74         WebKit team:
75
76         Rob Buis
77         Robin Cao
78         Eli Fidler
79         Mike Lattanzio
80         Yong Li
81         Maxim Mogilnitsky
82         Joshua Netterfield
83         Arvid Nilsson
84         Jakob Petsovits
85         Konrad Piascik
86         Jeff Rogers
87         Artem Simonov
88         Filip Spacek
89         George Staikos
90
91         Covered by existing tests.
92
93         * platform/graphics/blackberry/FontBlackBerry.cpp: Added.
94         (FSFixedToFloat):
95         (FloatToFSFixed):
96         (WebCore):
97         (WebCore::Font::drawComplexText):
98         (WebCore::Font::floatWidthForComplexText):
99         (WebCore::Font::offsetForPositionForComplexText):
100         (WebCore::Font::selectionRectForComplexText):
101         (WebCore::Font::drawGlyphs):
102         (WebCore::Font::canReturnFallbackFontsForComplexText):
103         (WebCore::Font::drawEmphasisMarksForComplexText):
104         (WebCore::Font::canExpandAroundIdeographsInComplexText):
105         * platform/graphics/blackberry/FontCacheBlackBerry.cpp: Added.
106         (WebCore):
107         (WebCore::FontCache::platformInit):
108         (WebCore::FontCache::getFontDataForCharacters):
109         (WebCore::FontCache::getSimilarFontPlatformData):
110         (WebCore::FontCache::getLastResortFallbackFont):
111         (WebCore::FontCache::getTraitsInFamily):
112         (WebCore::getFamilyNameStringFromFontDescriptionAndFamily):
113         (WebCore::fontWeightToFontconfigWeight):
114         (WebCore::FontCache::createFontPlatformData):
115         * platform/graphics/blackberry/FontCustomPlatformData.h: Added.
116         (WebCore):
117         (FontCustomPlatformData):
118         * platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp: Added.
119         (WebCore):
120         (WebCore::FontCustomPlatformData::FontCustomPlatformData):
121         (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
122         (WebCore::FontCustomPlatformData::fontPlatformData):
123         (WebCore::FontCustomPlatformData::supportsFormat):
124         (WebCore::createFontCustomPlatformData):
125         * platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp: Added.
126         (WebCore):
127         (WebCore::FontPlatformData::FontPlatformData):
128         (WebCore::FontPlatformData::~FontPlatformData):
129         (WebCore::FontPlatformData::name):
130         (WebCore::FontPlatformData::applyState):
131         (WebCore::FontPlatformData::platformDataInit):
132         (WebCore::FontPlatformData::platformDataAssign):
133         (WebCore::FontPlatformData::platformIsEqual):
134         (WebCore::FontPlatformData::description):
135         (WebCore::FontPlatformData::harfbuzzFace):
136         (WebCore::FontPlatformData::scaledFont):
137         (WebCore::FontPlatformData::setFakeBold):
138         (WebCore::FontPlatformData::setFakeItalic):
139         (WebCore::FontPlatformData::platformFontHandle):
140         (WebCore::FontPlatformData::isFixedPitch):
141         * platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp: Added.
142         (WebCore):
143         (WorldTypeScopedPtr):
144         (WebCore::WorldTypeScopedPtr::WorldTypeScopedPtr):
145         (WebCore::WorldTypeScopedPtr::~WorldTypeScopedPtr):
146         (WebCore::WorldTypeScopedPtr::get):
147         (WebCore::GlyphPage::fill):
148         * platform/graphics/blackberry/GradientBlackBerry.cpp: Added.
149         (WebCore):
150         (WebCore::totalStopsNeeded):
151         (WebCore::fillStops):
152         (WebCore::Gradient::platformGradient):
153         (WebCore::Gradient::platformDestroy):
154         (WebCore::Gradient::fill):
155         (WebCore::Gradient::setPlatformGradientSpaceTransform):
156         * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp: Added.
157         (WebCore):
158         (GraphicsContextPlatformPrivate):
159         (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
160         (WebCore::GraphicsContext::platformInit):
161         (WebCore::GraphicsContext::platformDestroy):
162         (WebCore::GraphicsContext::platformContext):
163         (WebCore::GraphicsContext::savePlatformState):
164         (WebCore::GraphicsContext::restorePlatformState):
165         (WebCore::GraphicsContext::setIsAcceleratedContext):
166         (WebCore::GraphicsContext::isAcceleratedContext):
167         (WebCore::GraphicsContext::getCTM):
168         (WebCore::GraphicsContext::concatCTM):
169         (WebCore::GraphicsContext::setCTM):
170         (WebCore::GraphicsContext::scale):
171         (WebCore::GraphicsContext::rotate):
172         (WebCore::GraphicsContext::translate):
173         (WebCore::GraphicsContext::drawEllipse):
174         (WebCore::GraphicsContext::strokeArc):
175         (WebCore::GraphicsContext::drawConvexPolygon):
176         (WebCore::GraphicsContext::drawRect):
177         (WebCore::GraphicsContext::fillRect):
178         (WebCore::GraphicsContext::clearRect):
179         (WebCore::GraphicsContext::strokeRect):
180         (WebCore::GraphicsContext::fillRoundedRect):
181         (WebCore::GraphicsContext::roundToDevicePixels):
182         (WebCore::GraphicsContext::setPlatformShadow):
183         (WebCore::GraphicsContext::clearPlatformShadow):
184         (WebCore::GraphicsContext::beginPlatformTransparencyLayer):
185         (WebCore::GraphicsContext::endPlatformTransparencyLayer):
186         (WebCore::GraphicsContext::supportsTransparencyLayers):
187         (WebCore::GraphicsContext::setLineCap):
188         (WebCore::GraphicsContext::setLineDash):
189         (WebCore::GraphicsContext::setLineJoin):
190         (WebCore::GraphicsContext::setMiterLimit):
191         (WebCore::GraphicsContext::setAlpha):
192         (WebCore::GraphicsContext::clip):
193         (WebCore::GraphicsContext::clipOut):
194         (WebCore::GraphicsContext::clipConvexPolygon):
195         (WebCore::GraphicsContext::addRoundedRectClip):
196         (WebCore::GraphicsContext::clipOutRoundedRect):
197         (WebCore::GraphicsContext::clipBounds):
198         (WebCore::GraphicsContext::addInnerRoundedRectClip):
199         (WebCore::GraphicsContext::setURLForRect):
200         (WebCore::GraphicsContext::setPlatformTextDrawingMode):
201         (WebCore::GraphicsContext::setPlatformStrokeColor):
202         (WebCore::GraphicsContext::setPlatformStrokeStyle):
203         (WebCore::GraphicsContext::setPlatformStrokeThickness):
204         (WebCore::GraphicsContext::setPlatformFillColor):
205         (WebCore::GraphicsContext::setPlatformCompositeOperation):
206         (WebCore::GraphicsContext::setPlatformShouldAntialias):
207         (WebCore::GraphicsContext::setImageInterpolationQuality):
208         (WebCore::GraphicsContext::imageInterpolationQuality):
209         * platform/graphics/blackberry/ITypeUtils.h: Added.
210         (floatToITypeFixed):
211         (intToITypeFixed):
212         (iTypeFixedToFloat):
213         * platform/graphics/blackberry/ImageBufferBlackBerry.cpp: Added.
214         (WebCore):
215         (WebCore::makeBufferCurrent):
216         (WebCore::getImageDataInternal):
217         (WebCore::ImageBufferData::getImageData):
218         (WebCore::flushAndDraw):
219         (WebCore::ImageBufferData::draw):
220         (WebCore::ImageBuffer::ImageBuffer):
221         (WebCore::ImageBuffer::~ImageBuffer):
222         (WebCore::ImageBuffer::context):
223         (WebCore::ImageBuffer::platformLayer):
224         (WebCore::ImageBuffer::copyImage):
225         (WebCore::ImageBuffer::clip):
226         (WebCore::ImageBuffer::draw):
227         (WebCore::ImageBuffer::drawPattern):
228         (WebCore::ImageBuffer::platformTransformColorSpace):
229         (WebCore::ImageBuffer::getUnmultipliedImageData):
230         (WebCore::ImageBuffer::getPremultipliedImageData):
231         (WebCore::ImageBuffer::putByteArray):
232         (WebCore::ImageBuffer::toDataURL):
233         * platform/graphics/blackberry/ImageBufferDataBlackBerry.h: Added.
234         (WebCore):
235         (ImageBufferData):
236         * platform/graphics/blackberry/PathBlackBerry.cpp: Added.
237         (WebCore):
238         (WebCore::scratchContext):
239         (WebCore::Path::Path):
240         (WebCore::Path::~Path):
241         (WebCore::Path::operator=):
242         (WebCore::Path::currentPoint):
243         (WebCore::Path::contains):
244         (WebCore::Path::strokeContains):
245         (WebCore::Path::translate):
246         (WebCore::Path::boundingRect):
247         (WebCore::Path::strokeBoundingRect):
248         (WebCore::Path::moveTo):
249         (WebCore::Path::addLineTo):
250         (WebCore::Path::addQuadCurveTo):
251         (WebCore::Path::addBezierCurveTo):
252         (WebCore::Path::addArcTo):
253         (WebCore::Path::closeSubpath):
254         (WebCore::Path::addArc):
255         (WebCore::Path::addRect):
256         (WebCore::Path::addEllipse):
257         (WebCore::Path::platformAddPathForRoundedRect):
258         (WebCore::Path::clear):
259         (WebCore::Path::isEmpty):
260         (WebCore::Path::hasCurrentPoint):
261         (WebCore::Path::apply):
262         (WebCore::Path::transform):
263         (WebCore::GraphicsContext::fillPath):
264         (WebCore::GraphicsContext::strokePath):
265         (WebCore::GraphicsContext::drawFocusRing):
266         (WebCore::GraphicsContext::drawLine):
267         (WebCore::GraphicsContext::drawLineForDocumentMarker):
268         (WebCore::GraphicsContext::drawLineForText):
269         (WebCore::GraphicsContext::clip):
270         (WebCore::GraphicsContext::clipPath):
271         (WebCore::GraphicsContext::canvasClip):
272         (WebCore::GraphicsContext::clipOut):
273         * platform/graphics/blackberry/PatternBlackBerry.cpp: Added.
274         (WebCore):
275         (WebCore::Pattern::platformDestroy):
276         (WebCore::Pattern::platformPattern):
277         (WebCore::Pattern::setPlatformPatternSpaceTransform):
278         * platform/graphics/blackberry/PlatformSupport.cpp: Added.
279         (WebCore):
280         (WebCore::PlatformSupport::getFontFamilyForCharacters):
281         * platform/graphics/blackberry/PlatformSupport.h: Added.
282         (WebCore):
283         (PlatformSupport):
284         (FontFamily):
285         * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp: Added.
286         (WebCore):
287         (WebCore::FSFixedToFloat):
288         (WebCore::SimpleFontData::platformInit):
289         (WebCore::SimpleFontData::platformCharWidthInit):
290         (WebCore::SimpleFontData::platformDestroy):
291         (WebCore::SimpleFontData::createScaledFontData):
292         (WebCore::SimpleFontData::smallCapsFontData):
293         (WebCore::SimpleFontData::emphasisMarkFontData):
294         (WebCore::SimpleFontData::containsCharacters):
295         (WebCore::SimpleFontData::determinePitch):
296         (WebCore::SimpleFontData::platformBoundsForGlyph):
297         (WebCore::SimpleFontData::platformWidthForGlyph):
298         (WebCore::SimpleFontData::canRenderCombiningCharacterSequence):
299
300 2013-03-04  Adam Bergkvist  <adam.bergkvist@ericsson.com>
301
302         MediaStream API: local addTrack() and removeTrack() operations should not fire events.
303         https://bugs.webkit.org/show_bug.cgi?id=111079
304
305         Reviewed by Adam Barth.
306
307         Removed the scheduling of "addtrack" and "removetrack" events by
308         addTrack and removeTrack(). Replaced the test since the old test was
309         driven by the event firing removed by this patch.
310
311         Test: fast/mediastream/MediaStream-add-remove-tracks.html
312
313         * Modules/mediastream/MediaStream.cpp:
314         (WebCore::MediaStream::addTrack):
315         (WebCore::MediaStream::removeTrack):
316
317 2013-03-04  Alexander Pavlov  <apavlov@chromium.org>
318
319         Web Inspector: touchmove not emulated inside iframe
320         https://bugs.webkit.org/show_bug.cgi?id=111292
321
322         Reviewed by Vsevolod Vlasov.
323
324         Move fake touch event dispatching from mouseMoved() into handleMouseMoveEvent()
325         and bail out earlier from dispatchSyntheticTouchEventIfEnabled() when the event
326         should be dispatched on a subframe.
327
328         * page/EventHandler.cpp:
329         (WebCore::EventHandler::mouseMoved):
330         (WebCore::EventHandler::handleMouseMoveEvent):
331         (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled):
332
333 2013-03-04  Mike West  <mkwst@chromium.org>
334
335         Long URLs in error messages should be shortened
336         https://bugs.webkit.org/show_bug.cgi?id=111133
337
338         Reviewed by Jochen Eisinger.
339
340         When generating console messages, we're often copying the page's URL
341         in order to add detail about where the error occurred. Generally, this
342         is fine, but in edge cases (multi-meg 'data:' URLs), we're using far
343         more memory than we should, and impacting performance.
344
345         This patch adds an 'elidedString()' method to KURL for use in this
346         sort of case; when generating console messages, we should insert the
347         elided URL rather than the full URL.
348
349         This shouldn't change any visible behavior; we're already visually
350         eliding URLs in console messages for URLs above 150 characters. This
351         patch simply changes the underlying string to ensure that no URL is
352         over 1k in length to begin with.
353
354         * platform/KURL.cpp:
355         (WebCore::KURL::elidedString): Added.
356         * platform/KURL.h:
357             An exciting new method that gives you the same result as string()
358             for URLs less than 1k long, and elides the middle of URLs longer
359             than 1k by replacing everything but the first and last 0.5k with
360             "...".
361         * bindings/ScriptControllerBase.cpp:
362         (WebCore::ScriptController::canExecuteScripts):
363         * Modules/websockets/WebSocket.cpp:
364         (WebCore::WebSocket::connect):
365         (WebCore::WebSocket::send):
366         * Modules/websockets/WebSocketChannel.cpp:
367         (WebCore::WebSocketChannel::send):
368         (WebCore::WebSocketChannel::fail):
369         * bindings/ScriptControllerBase.cpp:
370         (WebCore::ScriptController::canExecuteScripts):
371         * dom/Document.cpp:
372         (WebCore::Document::processHttpEquiv):
373         * dom/ScriptElement.cpp:
374         (WebCore::ScriptElement::executeScript):
375         * html/HTMLMediaElement.cpp:
376         (WebCore::HTMLMediaElement::canPlayType):
377         (WebCore::HTMLMediaElement::isSafeToLoadURL):
378         * loader/FrameLoader.cpp:
379         (WebCore::FrameLoader::submitForm):
380         (WebCore::FrameLoader::loadFrameRequest):
381         (WebCore::FrameLoader::commitProvisionalLoad):
382         (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
383         (WebCore::FrameLoader::loadProvisionalItemFromCachedPage):
384         (WebCore::createWindow):
385         * loader/MainResourceLoader.cpp:
386         (WebCore::MainResourceLoader::willSendRequest):
387         (WebCore::MainResourceLoader::responseReceived):
388         * loader/appcache/ApplicationCacheGroup.cpp:
389         (WebCore::ApplicationCacheGroup::didReceiveResponse):
390         (WebCore::ApplicationCacheGroup::didFail):
391         * loader/cache/CachedResourceLoader.cpp:
392         (WebCore::CachedResourceLoader::canRequest):
393         (WebCore::CachedResourceLoader::requestResource):
394         (WebCore::CachedResourceLoader::loadResource):
395         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
396         * page/ContentSecurityPolicy.cpp:
397         (WebCore::CSPDirectiveList::checkSourceAndReportViolation):
398         (WebCore::CSPDirectiveList::allowScriptNonce):
399         (WebCore::CSPDirectiveList::allowPluginType):
400             Use 'KURL::elidedString()' rather than 'KURL::string()'
401         * loader/MixedContentChecker.cpp:
402         (WebCore::MixedContentChecker::logWarning):
403             Here, we're doing the same as above, but it enables us to throw
404             away the asUTF8() function entirely by switching to makeString
405             rather than String::format.
406
407 2013-03-04  Andrey Lushnikov  <lushnikov@chromium.org>
408
409         Web Inspector: add runtime flag to determine if inspector's source files were flattened.
410         https://bugs.webkit.org/show_bug.cgi?id=111184
411
412         Reviewed by Pavel Feldman.
413
414         - Add a file "buildSystemOnly.js" which will be included into
415         devtools.html only by GYP build system. This script sets a single flag
416         which essentially means that inspector source files were run
417         through a build system and flattened.
418         - Update "importScript" and "registerRequiredCSS" functions to correct
419         paths according to the "flattenImports" flag.
420
421         No new tests: no change in behaviour.
422
423         * WebCore.gypi:
424         * inspector/front-end/CodeMirrorTextEditor.js:
425         (WebInspector.CodeMirrorTextEditor):
426         * inspector/front-end/View.js:
427         (WebInspector.View.prototype.registerRequiredCSS):
428         * inspector/front-end/buildSystemOnly.js: Added.
429         * inspector/front-end/utilities.js:
430
431 2013-03-04  Vsevolod Vlasov  <vsevik@chromium.org>
432
433         Web Inspector: Fix front-end compilation
434         https://bugs.webkit.org/show_bug.cgi?id=111286
435
436         Reviewed by Alexander Pavlov.
437
438         * inspector/InjectedScriptSource.js:
439         * inspector/front-end/FileSystemProjectDelegate.js:
440         * inspector/front-end/NavigatorView.js:
441         (WebInspector.NavigatorView.prototype.removeUISourceCode):
442         (WebInspector.NavigatorTreeNode.prototype.reset):
443         (WebInspector.NavigatorFolderTreeNode.prototype.didAddChild):
444
445 2013-03-03  Kondapally Kalyan  <kalyan.kondapally@intel.com>
446
447         [EFL][WebGL] Add proper checks to enable GraphicsSurface usage on EGL without XCompositeWindow.
448         https://bugs.webkit.org/show_bug.cgi?id=108034
449
450         Reviewed by Laszlo Gombos.
451
452         Covered by existing WebGL tests.
453
454         Currently, we set GRAPHICS_SURFACE to true if support for XCompositeWindow
455         is identified during compile time. This is ok, when using GLX. We might not
456         have support for XCompositeWindow when using EGL and GLES2.0. This patch
457         makes changes so that GRAPHICS_SURFACE is always enabled with EGL and adds
458         GLX guard to the parts of code dependent on XCompositeWindow support.
459
460         * platform/graphics/opengl/GLPlatformSurface.cpp:
461         * platform/graphics/surfaces/glx/GLXConfigSelector.h:
462         (WebCore::GLXConfigSelector::findMatchingConfig):
463         * platform/graphics/surfaces/glx/X11Helper.cpp:
464         (WebCore::X11Helper::createOffScreenWindow):
465         (WebCore::X11Helper::isXRenderExtensionSupported):
466         * platform/graphics/surfaces/glx/X11Helper.h:
467
468 2013-03-03  Alexander Pavlov  <apavlov@chromium.org>
469
470         Web Inspector: [PageAgent] can't find frame by security origin.
471         https://bugs.webkit.org/show_bug.cgi?id=110849
472
473         Use toRawString() in order to compare Frames' SecurityOrigins for storage-related goals.
474
475         Reviewed by Vsevolod Vlasov.
476
477         * inspector/InspectorPageAgent.cpp:
478         (WebCore::InspectorPageAgent::findFrameWithSecurityOrigin):
479
480 2013-03-03  Alexander Pavlov  <apavlov@chromium.org>
481
482         Unreviewed, rolling out r144455.
483         http://trac.webkit.org/changeset/144455
484         https://bugs.webkit.org/show_bug.cgi?id=111165
485
486         A simpler solution to the SecurityOrigin -> localStorage
487         lookup exists
488
489         * inspector/front-end/DOMStorage.js:
490         (WebInspector.DOMStorage.storageId):
491         (WebInspector.DOMStorage.prototype.get id):
492         (WebInspector.DOMStorage.prototype.getItems):
493         (WebInspector.DOMStorage.prototype.setItem):
494         (WebInspector.DOMStorage.prototype.removeItem):
495         (WebInspector.DOMStorageModel.prototype._securityOriginAdded):
496         (WebInspector.DOMStorageModel.prototype._securityOriginRemoved):
497         (WebInspector.DOMStorageModel.prototype._storageKey):
498         * inspector/front-end/ExtensionAuditCategory.js:
499         * inspector/front-end/FileSystemModel.js:
500         (WebInspector.FileSystemModel.prototype._reset):
501         (WebInspector.FileSystemModel.prototype._securityOriginAdded):
502         (WebInspector.FileSystemModel.prototype._securityOriginRemoved):
503         (WebInspector.FileSystemModel.prototype._addOrigin):
504         (WebInspector.FileSystemModel.prototype._removeOrigin):
505         (WebInspector.FileSystemModel.prototype._requestFileSystemRoot):
506         (WebInspector.FileSystemModel.prototype._fileSystemRootReceived):
507         (WebInspector.FileSystemModel.prototype._removeFileSystem):
508         (WebInspector.FileSystemModel.FileSystem.prototype.get name):
509         * inspector/front-end/IndexedDBModel.js:
510         (WebInspector.IndexedDBModel.prototype._reset):
511         (WebInspector.IndexedDBModel.prototype.refreshDatabaseNames):
512         (WebInspector.IndexedDBModel.prototype._securityOriginAdded):
513         (WebInspector.IndexedDBModel.prototype._securityOriginRemoved):
514         (WebInspector.IndexedDBModel.prototype._addOrigin):
515         (WebInspector.IndexedDBModel.prototype._removeOrigin):
516         (WebInspector.IndexedDBModel.prototype._updateOriginDatabaseNames):
517         (WebInspector.IndexedDBModel.prototype._loadDatabaseNames):
518         (WebInspector.IndexedDBModel.prototype._loadDatabase):
519         (WebInspector.IndexedDBModel.prototype.):
520         (WebInspector.IndexedDBModel.prototype._requestData):
521         (WebInspector.IndexedDBModel.DatabaseId.prototype.equals):
522         * inspector/front-end/IndexedDBViews.js:
523         (WebInspector.IDBDatabaseView.prototype._refreshDatabase):
524         * inspector/front-end/ResourceTreeModel.js:
525         (WebInspector.ResourceTreeModel):
526         (WebInspector.ResourceTreeModel.prototype._addFrame):
527         (WebInspector.ResourceTreeModel.prototype._addSecurityOrigin):
528         (WebInspector.ResourceTreeModel.prototype._removeSecurityOrigin):
529         (WebInspector.ResourceTreeModel.prototype.securityOrigins):
530         (WebInspector.ResourceTreeModel.prototype._handleMainFrameDetached):
531         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
532         (WebInspector.ResourceTreeModel.prototype._frameDetached):
533         (WebInspector.ResourceTreeFrame):
534         (WebInspector.ResourceTreeFrame.prototype._navigate):
535         * inspector/front-end/ResourcesPanel.js:
536         (WebInspector.IDBDatabaseTreeElement):
537         (WebInspector.IDBDatabaseTreeElement.prototype.get itemURL):
538         (WebInspector.IDBObjectStoreTreeElement.prototype.get itemURL):
539         (WebInspector.IDBIndexTreeElement.prototype.get itemURL):
540         (WebInspector.DOMStorageTreeElement):
541         (WebInspector.DOMStorageTreeElement.prototype.get itemURL):
542         (WebInspector.FileSystemTreeElement):
543
544 2013-03-01  Vsevolod Vlasov  <vsevik@chromium.org>
545
546         Web Inspector: Let user know when file system based uiSourceCode was changed on disk.
547         https://bugs.webkit.org/show_bug.cgi?id=110133
548
549         Reviewed by Pavel Feldman.
550
551         We now check if file system based uiSourceCode content was updated externally when 
552         UISourceCodeFrame is shown or inspector window is focused.
553         If there is no working copy being edited right now we replace old content with the new one silently.
554         Otherwise ask user if he wants to replace his working copy with the new content.
555
556         * English.lproj/localizedStrings.js:
557         * WebCore.vcproj/WebCore.vcproj:
558         * inspector/front-end/DefaultTextEditor.js:
559         (WebInspector.DefaultTextEditor.prototype.editRange):
560         * inspector/front-end/FileSystemProjectDelegate.js:
561         (WebInspector.FileSystemProjectDelegate.prototype.innerCallback):
562         (WebInspector.FileSystemProjectDelegate.prototype.requestFileContent):
563         (WebInspector.FileSystemProjectDelegate.prototype._contentRequestFinished):
564         (WebInspector.FileSystemProjectDelegate.prototype.requestUpdatedFileContent):
565         (WebInspector.FileSystemProjectDelegate.prototype.contentCallback):
566         (WebInspector.FileSystemProjectDelegate.prototype.searchInFileContent):
567         * inspector/front-end/JavaScriptSourceFrame.js:
568         (WebInspector.JavaScriptSourceFrame.prototype.wasShown):
569         (WebInspector.JavaScriptSourceFrame.prototype.willHide):
570         * inspector/front-end/SimpleWorkspaceProvider.js:
571         (WebInspector.SimpleProjectDelegate.prototype.requestUpdatedFileContent):
572         * inspector/front-end/SourceFrame.js:
573         (WebInspector.SourceFrame.prototype.setContent):
574         * inspector/front-end/UISourceCode.js:
575         (WebInspector.UISourceCode.prototype.checkContentUpdated.updatedContentLoaded):
576         (WebInspector.UISourceCode.prototype.checkContentUpdated):
577         * inspector/front-end/UISourceCodeFrame.js:
578         (WebInspector.UISourceCodeFrame.prototype.wasShown):
579         (WebInspector.UISourceCodeFrame.prototype.willHide):
580         (WebInspector.UISourceCodeFrame.prototype._windowFocused):
581         (WebInspector.UISourceCodeFrame.prototype._checkContentUpdated):
582         * inspector/front-end/Workspace.js:
583         (WebInspector.ProjectDelegate.prototype.requestUpdatedFileContent):
584         (WebInspector.Project.prototype.requestUpdatedFileContent):
585
586 2013-03-03  Arpita Bahuguna  <a.bah@samsung.com>
587
588         createAttribute/setAttributeNode does not properly normalize case
589         https://bugs.webkit.org/show_bug.cgi?id=90341
590
591         Reviewed by Darin Adler.
592
593         setAttributeNode() verifies for existing attributes in a case sensitive
594         manner. Thus, it would add another attribute if specified in a case
595         different from the existing one. Instead, like setAttribute(), it too
596         should modify the existing attribute's value.
597
598         Test: fast/dom/Element/setAttributeNode-case-insensitivity.html
599
600         * dom/Element.cpp:
601         (WebCore::Element::setAttributeNode):
602         Made changes to check for an existing attribute by converting the
603         specified attribute's localName to lowercase.
604
605 2013-03-03  Kentaro Hara  <haraken@chromium.org>
606
607         Unreviewed. Rebaselined run-bindings-tests.
608
609         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
610         (WebCore::TestActiveDOMObjectV8Internal::indexedSecurityCheck):
611         (TestActiveDOMObjectV8Internal):
612         (WebCore::TestActiveDOMObjectV8Internal::namedSecurityCheck):
613         (WebCore::ConfigureV8TestActiveDOMObjectTemplate):
614         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
615         (V8TestActiveDOMObject):
616
617 2013-03-03  Kentaro Hara  <haraken@chromium.org>
618
619         Unreviewed build fix after r144590.
620
621         * bindings/scripts/CodeGeneratorV8.pm:
622         (GenerateSecurityCheckFunctions):
623
624 2013-03-03  Kentaro Hara  <haraken@chromium.org>
625
626         Unreviewed build fix after r144587.
627
628         * bindings/v8/V8Binding.cpp:
629         (WebCore::toV8Context):
630         * bindings/v8/V8MutationCallback.cpp:
631         (WebCore::V8MutationCallback::V8MutationCallback):
632
633 2013-03-01  Kentaro Hara  <haraken@chromium.org>
634
635         [V8] HTMLDocument.all should have [Replaceable]
636         https://bugs.webkit.org/show_bug.cgi?id=111230
637
638         Reviewed by Adam Barth.
639
640         (Although HTMLDocument.all is already removed from the spec,)
641         it is expected to behave as a [Replaceable] attribute. By adding
642         a [Replaceable] IDL attribute, we can remove custom implementation
643         of HTMLDocument.all.
644
645         I confimed that exactly the same code is generated for .all getter
646         and setter.
647
648         No tests. No change in behavior.
649
650         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
651         * html/HTMLDocument.idl:
652
653 2013-03-01  Kentaro Hara  <haraken@chromium.org>
654
655         [V8] indexedSecurityCheck() and namedSecurityCheck() should be auto-generated
656         https://bugs.webkit.org/show_bug.cgi?id=111225
657
658         Reviewed by Adam Barth.
659
660         indexedSecurityCheck() and namedSecurityCheck() should be auto-generated,
661         except for DOMWindow's ones.
662
663         No tests. No change in behavior.
664
665         * bindings/scripts/CodeGeneratorV8.pm:
666         (GenerateHeader):
667         (GenerateImplementation):
668         (GenerateSecurityCheckFunctions):
669         * bindings/v8/custom/V8DOMWindowCustom.cpp:
670         (WebCore::V8DOMWindow::namedSecurityCheckCustom):
671         (WebCore::V8DOMWindow::indexedSecurityCheckCustom):
672         * bindings/v8/custom/V8HistoryCustom.cpp:
673         * bindings/v8/custom/V8LocationCustom.cpp:
674
675 2013-03-01  Kentaro Hara  <haraken@chromium.org>
676
677         [V8] Rename $implContentDecls to $implContentInternals in CodeGeneratorV8.pm
678         https://bugs.webkit.org/show_bug.cgi?id=111214
679
680         Reviewed by Adam Barth.
681
682         $implContentDecls stores generated code that is put in a namespace 'XXXV8Internal'.
683         For clarification, it should be renamed to $implContentInternals.
684
685         No tests. No change in behavior.
686
687         * bindings/scripts/CodeGeneratorV8.pm:
688         (GenerateDomainSafeFunctionGetter):
689         (GenerateDomainSafeFunctionSetter):
690         (GenerateConstructorGetter):
691         (GenerateNormalAttrGetterCallback):
692         (GenerateNormalAttrGetter):
693         (GenerateReplaceableAttrSetterCallback):
694         (GenerateReplaceableAttrSetter):
695         (GenerateNormalAttrSetterCallback):
696         (GenerateNormalAttrSetter):
697         (GenerateOverloadedFunction):
698         (GenerateFunctionCallback):
699         (GenerateFunction):
700         (GenerateOverloadedConstructorCallback):
701         (GenerateSingleConstructorCallback):
702         (GenerateEventConstructor):
703         (GenerateTypedArrayConstructor):
704         (GenerateImplementation):
705         (WriteData):
706
707 2013-03-01  Kentaro Hara  <haraken@chromium.org>
708
709         [V8] Rename getWorld() to isolatedWorld(), and getWorldForEnteredContext() to isolatedWorldForEnteredContext()
710         https://bugs.webkit.org/show_bug.cgi?id=111212
711
712         Reviewed by Adam Barth.
713
714         The rename I did in r142424 was wrong. Given that getWorld() returns 0
715         for the main world, it should be named isolatedWorld(). Similarly,
716         given that getWorldForEnteredContext() returns 0 for the main world,
717         it should be named isolatedWorldForEnteredContext().
718
719         No tests. No change in behavior.
720
721         * bindings/v8/CustomElementHelpers.cpp:
722         (WebCore::CustomElementHelpers::isFeatureAllowed):
723         * bindings/v8/DOMDataStore.cpp:
724         (WebCore::DOMDataStore::current):
725         * bindings/v8/DOMWrapperWorld.cpp:
726         (WebCore::DOMWrapperWorld::makeContextWeak):
727         * bindings/v8/DOMWrapperWorld.h:
728         (WebCore::DOMWrapperWorld::isolatedWorld):
729         * bindings/v8/ScriptController.cpp:
730         (WebCore::ScriptController::shouldBypassMainWorldContentSecurityPolicy):
731         (WebCore::ScriptController::currentWorldContext):
732         * bindings/v8/V8Binding.h:
733         (WebCore::isolatedWorldForEnteredContext):
734         * bindings/v8/WorldContextHandle.cpp:
735         (WebCore::WorldContextHandle::WorldContextHandle):
736         * bindings/v8/custom/V8DocumentCustom.cpp:
737         (WebCore::wrap):
738         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
739         (WebCore::wrap):
740         * bindings/v8/custom/V8SVGDocumentCustom.cpp:
741         (WebCore::wrap):
742         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
743         (WebCore::V8XMLHttpRequest::constructorCustom):
744
745 2013-03-01  Kentaro Hara  <haraken@chromium.org>
746
747         [V8] Move HTMLDocument::getNamedProperty() to DOMWindowShell
748         https://bugs.webkit.org/show_bug.cgi?id=111223
749
750         Reviewed by Adam Barth.
751
752         HTMLDocument::getNamedProperty() is used by DOMWindowShell.
753         It can be a static method in DOMWindowShell.
754
755         No tests. No change in behavior.
756
757         * bindings/scripts/CodeGeneratorV8.pm:
758         (GenerateHeader):
759         * bindings/v8/V8DOMWindowShell.cpp:
760         (WebCore::getNamedProperty):
761         (WebCore):
762         (WebCore::getter):
763         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
764
765 2013-03-03  Dan Bernstein  <mitz@apple.com>
766
767         Build fix after r144565. Reverted r144533.
768
769         * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
770
771 2013-03-03  Adam Barth  <abarth@webkit.org>
772
773         Attempt to fix the Qt build after r144498
774         https://bugs.webkit.org/show_bug.cgi?id=111272
775
776         Reviewed by Eric Seidel.
777
778         Update the Qt version of the XML parser to call the new API.
779
780         * xml/parser/XMLDocumentParserQt.cpp:
781         (WebCore::XMLDocumentParser::resumeParsing):
782         (WebCore::XMLDocumentParser::appendFragmentSource):
783
784 2013-03-03  Dean Jackson  <dino@apple.com>
785
786         Plug-ins that are appropriately large w.r.t page size should autostart
787         https://bugs.webkit.org/show_bug.cgi?id=111242
788
789         Reviewed by Brady Eidson.
790
791         A "full-page" plug-in site should never snapshot. The trick is
792         how to determine what is full-page. This change implements the
793         following algorithm.
794
795         - The plug-in is in the main frame (not an iframe).
796         - The plug-in is sized with width and height 100%.
797         - The displayed area of the plug-in is more than 96% of the viewport area.
798
799         This is definitely not foolproof. For example, zombo.com has a slight
800         border around its plug-in. As the window size gets smaller, the body margin
801         takes up more than 5% of the width or height, and the plug-in doesn't pass
802         the tests above.
803
804         * html/HTMLPlugInImageElement.cpp:
805         (WebCore): New static constant: sizingFullPageThresholdPercentage
806         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Implements
807             the rules described above.
808
809 2013-03-03  Ryosuke Niwa  <rniwa@webkit.org>
810
811         [Win] IDLParser.pm fails to parse OESTextureHalfFloat and causes a build failure
812         https://bugs.webkit.org/show_bug.cgi?id=111267
813
814         Reviewed by Kentaro Hara.
815
816         Allow empty definitions.
817
818         * bindings/scripts/IDLParser.pm:
819         (Parse):
820
821 2013-03-03  David Kilzer  <ddkilzer@apple.com>
822
823         BUILD FIX: RenderLayerFilterInfo.h needs to include Element.h with ENABLE(SVG)
824
825         Fixes the following build failures:
826
827             In file included from Source/WebCore/rendering/RenderLayerFilterInfo.cpp:33:
828             Source/WebCore/rendering/RenderLayerFilterInfo.h:118:19: error: use of undeclared identifier 'Element'
829                 Vector<RefPtr<Element> > m_internalSVGReferences;
830                               ^
831             Source/WebCore/rendering/RenderLayerFilterInfo.h:118:28: error: expected a type
832                 Vector<RefPtr<Element> > m_internalSVGReferences;
833                                        ^
834             Source/WebCore/rendering/RenderLayerFilterInfo.h:118:30: error: private field 'm_internalSVGReferences' is not used [-Werror,-Wunused-private-field]
835                 Vector<RefPtr<Element> > m_internalSVGReferences;
836                                          ^
837             3 errors generated.
838
839         * rendering/RenderLayerFilterInfo.h: Include Element.h within
840         ENABLE(SVG).  Move ENABLE(SVG) block below unconditional
841         headers.
842
843 2013-03-03  Sheriff Bot  <webkit.review.bot@gmail.com>
844
845         Unreviewed, rolling out r144567.
846         http://trac.webkit.org/changeset/144567
847         https://bugs.webkit.org/show_bug.cgi?id=111266
848
849         Does not compile on apple-win (Requested by abarth on
850         #webkit).
851
852         * WebCore.exp.in:
853         * dom/Document.cpp:
854         (WebCore::Document::iconURLs):
855         * dom/Document.h:
856         (Document):
857         * loader/icon/IconController.cpp:
858         (WebCore::IconController::iconURL):
859         (WebCore::IconController::urlsForTypes):
860         * loader/icon/IconController.h:
861         (IconController):
862         * testing/Internals.cpp:
863         (WebCore::Internals::iconURLs):
864         * testing/Internals.h:
865         * testing/Internals.idl:
866
867 2013-03-03  Mike West  <mkwst@chromium.org>
868
869         CSP 1.1: Support CSP 1.1 directives on the unprefixed header.
870         https://bugs.webkit.org/show_bug.cgi?id=111254
871
872         Reviewed by Adam Barth.
873
874         We'd like to ensure that early adopters don't get stuck on a prefixed
875         header; when CSP 1.1 is baked enough to be supported in multiple
876         browsers, everything should Just Work™.
877
878         This patch changes WebKit's behavior regarding CSP_NEXT features.
879         Currently, they're only exposed on the prefixed header ('X-WebKit-CSP').
880         This patch exposes those features on the canonical header, assuming
881         that the runtime flag is set. This shouldn't have any effect at all on
882         ports that haven't yet enabled CSP_NEXT, and will simply clear the way
883         for a clean deployment to a wider audience once the specification
884         process is further along.
885
886         This change shouldn't have any effect on the existing tests: they
887         should run just as they did before. The next step will be to adjust
888         the LayoutTests for 1.1 to prefer the canonical header, but I'll do
889         that in another patch to reduce churn.
890
891         Related, the enum names no longer made sense: the difference between the
892         canonical 'Content-Security-Policy' header and 'X-WebKit-CSP' is the
893         prefix, not the functionality. This patch renames them for clarity.
894
895         * dom/Document.cpp:
896         (WebCore::Document::processHttpEquiv):
897         * loader/FrameLoader.cpp:
898         (WebCore::FrameLoader::didBeginDocument):
899             Use the new enum names.
900         * page/ContentSecurityPolicy.cpp:
901         (CSPDirectiveList):
902         (WebCore::CSPDirectiveList::CSPDirectiveList):
903         (WebCore::CSPDirectiveList::addDirective):
904             Drop the 'm_experimental' property from CSPDirectiveList; we'll
905             control the behavior via the runtime flag from now on.
906
907             Also, this fixes a small bug in 'addDirective()': we never threw
908             unrecognized directive errors for users who were sending the
909             prefixed header. Oops!
910         (WebCore::ContentSecurityPolicy::deprecatedHeaderType):
911             Use the new enum names.
912         * page/ContentSecurityPolicy.h:
913             Redefine the enum for clarity: 'PrefixedReport' and 'Report'
914             rather than 'ReportAllDirectives' and 'ReportStableDirectives'.
915
916 2013-03-03  Ryosuke Niwa  <rniwa@webkit.org>
917
918         Another Windows build fix attempt after r144567.
919         Try touching the IDL file in a hope it'll regenerate JSInternals.cpp.
920
921         * testing/Internals.idl:
922
923 2013-03-03  Adam Barth  <abarth@webkit.org>
924
925         Unreviewed attempted build fix. Adds back some includes removed in
926         http://trac.webkit.org/changeset/144565.
927
928         * Modules/mediastream/RTCPeerConnection.cpp:
929         * bindings/ScriptControllerBase.cpp:
930         * bindings/objc/DOM.mm:
931         * bindings/v8/ScriptController.cpp:
932         * bindings/v8/V8DOMWindowShell.cpp:
933         * bindings/v8/custom/V8DOMWindowCustom.cpp:
934         * css/CSSFontSelector.cpp:
935         * css/WebKitCSSSVGDocumentValue.cpp:
936         * dom/DOMImplementation.cpp:
937         * dom/PendingScript.h:
938         * dom/ScriptElement.cpp:
939         * dom/ScriptElement.h:
940         * history/CachedFrame.cpp:
941         * html/DOMURL.cpp:
942         * html/HTMLAnchorElement.cpp:
943         * html/HTMLAppletElement.cpp:
944         * html/HTMLElement.cpp:
945         * html/HTMLEmbedElement.cpp:
946         * html/HTMLFrameSetElement.cpp:
947         * html/HTMLHtmlElement.cpp:
948         * html/HTMLImageElement.cpp:
949         * html/HTMLObjectElement.cpp:
950         * html/HTMLPlugInElement.cpp:
951         * html/ImageDocument.cpp:
952         * html/ImageInputType.cpp:
953         * html/MediaDocument.cpp:
954         * html/PluginDocument.cpp:
955         * html/canvas/WebGLRenderingContext.cpp:
956         (WebCore):
957         * html/parser/HTMLConstructionSite.cpp:
958         * html/parser/HTMLParserOptions.cpp:
959         * html/parser/XSSAuditorDelegate.cpp:
960         * inspector/InspectorDebuggerAgent.cpp:
961         * inspector/InspectorFileSystemAgent.cpp:
962         * inspector/InspectorFrontendHost.cpp:
963         * inspector/InspectorInstrumentation.h:
964         * inspector/InspectorPageAgent.cpp:
965         * inspector/NetworkResourcesData.cpp:
966         * inspector/NetworkResourcesData.h:
967         (WebCore):
968         * loader/CookieJar.cpp:
969         * loader/CrossOriginAccessControl.cpp:
970         * loader/FrameLoader.cpp:
971         * loader/MainResourceLoader.cpp:
972         * loader/MixedContentChecker.cpp:
973         * loader/PingLoader.cpp:
974         * loader/SubframeLoader.cpp:
975         * loader/SubresourceLoader.cpp:
976         * loader/appcache/ApplicationCacheGroup.cpp:
977         * loader/appcache/ApplicationCacheHost.cpp:
978         * loader/cache/CachedResource.cpp:
979         * loader/icon/IconController.cpp:
980         * page/DOMWindowExtension.cpp:
981         * page/Frame.cpp:
982         * page/PerformanceTiming.cpp:
983         * page/PointerLockController.cpp:
984         * page/animation/CSSPropertyAnimation.cpp:
985         * platform/chromium/PasteboardChromium.cpp:
986         * platform/efl/ErrorsEfl.cpp:
987         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
988         * platform/gtk/ErrorsGtk.cpp:
989         * platform/gtk/PasteboardGtk.cpp:
990         * platform/gtk/PasteboardHelper.h:
991         * platform/mac/ClipboardMac.mm:
992         * platform/mac/HTMLConverter.mm:
993         * platform/qt/PasteboardQt.cpp:
994         * plugins/DOMMimeType.cpp:
995         * plugins/PluginView.cpp:
996         * rendering/HitTestResult.cpp:
997         * rendering/RenderImage.cpp:
998         * rendering/RenderImageResource.cpp:
999         * rendering/RenderImageResourceStyleImage.cpp:
1000         * rendering/RenderLayer.cpp:
1001         * rendering/RenderLayerBacking.cpp:
1002         * svg/SVGImageLoader.cpp:
1003         * svg/SVGUseElement.cpp:
1004         * testing/MockPagePopupDriver.cpp:
1005         * xml/XSLStyleSheet.h:
1006         (WebCore):
1007
1008 2013-03-03  Ruslan Abdikeev  <aruslan@chromium.org>
1009
1010         <link rel="apple-touch-icon"> tag is not honored on CNN.com, workflowy.com etc
1011         https://bugs.webkit.org/show_bug.cgi?id=109061
1012
1013         Reviewed by Adam Barth.
1014
1015         Test: fast/dom/icon-url-list-apple-touch.html
1016
1017         Added iconTypes parameter to Document::iconURLs().
1018         Added Document::shortcutIconURLs() with original semantics of iconURLs().
1019         Fixed IconController.cpp to provide iconTypesMask to iconURLs().
1020         Renamed iconTypes to iconTypesMask to make the meaning clearer.
1021
1022         * WebCore.exp.in:
1023         * dom/Document.cpp:
1024         (WebCore::Document::shortcutIconURLs):
1025         (WebCore):
1026         (WebCore::Document::iconURLs):
1027         * dom/Document.h:
1028         (Document):
1029         * loader/icon/IconController.cpp:
1030         (WebCore::IconController::iconURL):
1031         (WebCore::IconController::urlsForTypes):
1032         * testing/Internals.cpp:
1033         (WebCore::Internals::iconURLs):
1034         (WebCore::Internals::shortcutIconURLs):
1035         (WebCore):
1036         (WebCore::Internals::allIconURLs):
1037         * testing/Internals.h:
1038         * testing/Internals.idl:
1039
1040 2013-03-03  Mike West  <mkwst@chromium.org>
1041
1042         CSP: Throw a warning when a '*-report-only' header doesn't contain a 'report-uri' directive.
1043         https://bugs.webkit.org/show_bug.cgi?id=111208
1044
1045         Reviewed by Adam Barth.
1046
1047         Developers in the wild have been observed to serve a report-only CSP
1048         header with a policy that doesn't contain a 'report-uri' directive.
1049         This has zero effect, of course, and we should help them understand
1050         that by throwing a warning up on the console.
1051
1052         Test: http/tests/security/contentSecurityPolicy/report-only-report-uri-missing.html
1053
1054         * page/ContentSecurityPolicy.cpp:
1055         (WebCore::CSPDirectiveList::isReportOnly): Added.
1056         (WebCore::CSPDirectiveList::reportURIs): Added.
1057         (WebCore::CSPDirectiveList::create):
1058             After creating a CSPDirectiveList, check whether it's in
1059             report-only mode without a report-uri. If so, warn the developer.
1060         (WebCore::ContentSecurityPolicy::reportMissingReportURI): Added.
1061             Write an exciting message to the console, warning the developer
1062             about her expensive no-op machine.
1063
1064 2013-03-03  Adam Barth  <abarth@webkit.org>
1065
1066         Unreviewed rollout of http://trac.webkit.org/r144530
1067         As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
1068         https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
1069         large number of ASSERTs in chromium-win.
1070
1071         * CMakeLists.txt:
1072         * GNUmakefile.list.am:
1073         * Modules/mediastream/RTCPeerConnection.cpp:
1074         * Modules/notifications/Notification.cpp:
1075         * Target.pri:
1076         * WebCore.exp.in:
1077         * WebCore.gypi:
1078         * WebCore.vcproj/WebCore.vcproj:
1079         * WebCore.vcxproj/WebCore.vcxproj:
1080         * WebCore.vcxproj/WebCore.vcxproj.filters:
1081         * WebCore.xcodeproj/project.pbxproj:
1082         * bindings/ScriptControllerBase.cpp:
1083         * bindings/js/JSNodeCustom.cpp:
1084         * bindings/js/ScriptController.cpp:
1085         * bindings/js/ScriptSourceCode.h:
1086         (WebCore):
1087         * bindings/objc/DOM.mm:
1088         * bindings/v8/ScriptController.cpp:
1089         * bindings/v8/V8DOMWindowShell.cpp:
1090         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1091         * css/CSSCrossfadeValue.h:
1092         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
1093         (WebCore::CSSCrossfadeValue::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
1094         * css/CSSFontFaceSource.h:
1095         * css/CSSFontSelector.cpp:
1096         * css/WebKitCSSSVGDocumentValue.cpp:
1097         * css/WebKitCSSSVGDocumentValue.h:
1098         (WebCore):
1099         * dom/Clipboard.cpp:
1100         (WebCore::Clipboard::Clipboard):
1101         * dom/ContainerNode.cpp:
1102         * dom/DOMImplementation.cpp:
1103         * dom/PendingScript.h:
1104         * dom/ScriptElement.cpp:
1105         * dom/ScriptElement.h:
1106         * history/CachedFrame.cpp:
1107         * html/DOMURL.cpp:
1108         * html/HTMLAnchorElement.cpp:
1109         * html/HTMLAppletElement.cpp:
1110         * html/HTMLElement.cpp:
1111         * html/HTMLEmbedElement.cpp:
1112         * html/HTMLFrameSetElement.cpp:
1113         * html/HTMLHtmlElement.cpp:
1114         * html/HTMLImageElement.cpp:
1115         * html/HTMLObjectElement.cpp:
1116         * html/HTMLPlugInElement.cpp:
1117         * html/ImageDocument.cpp:
1118         * html/ImageInputType.cpp:
1119         * html/MediaDocument.cpp:
1120         * html/PluginDocument.cpp:
1121         * html/canvas/WebGLRenderingContext.cpp:
1122         (WebCore):
1123         * html/parser/HTMLConstructionSite.cpp:
1124         * html/parser/HTMLParserOptions.cpp:
1125         * html/parser/HTMLScriptRunner.h:
1126         * html/parser/XSSAuditor.cpp:
1127         * html/parser/XSSAuditorDelegate.cpp:
1128         * inspector/InspectorDebuggerAgent.cpp:
1129         * inspector/InspectorFileSystemAgent.cpp:
1130         * inspector/InspectorFrontendHost.cpp:
1131         * inspector/InspectorInstrumentation.h:
1132         (WebCore):
1133         * inspector/InspectorPageAgent.cpp:
1134         * inspector/NetworkResourcesData.cpp:
1135         * inspector/NetworkResourcesData.h:
1136         (WebCore):
1137         * loader/CookieJar.cpp:
1138         * loader/CrossOriginAccessControl.cpp:
1139         * loader/CrossOriginAccessControl.h:
1140         (WebCore):
1141         * loader/CrossOriginPreflightResultCache.h:
1142         * loader/DocumentThreadableLoader.h:
1143         * loader/FrameLoader.cpp:
1144         (WebCore::FrameLoader::FrameLoader):
1145         * loader/FrameLoader.h:
1146         (WebCore):
1147         (WebCore::FrameLoader::policyChecker):
1148         * loader/ImageLoader.cpp:
1149         * loader/ImageLoader.h:
1150         * loader/LinkLoader.h:
1151         (WebCore):
1152         * loader/MainResourceLoader.cpp:
1153         * loader/MainResourceLoader.h:
1154         (WebCore):
1155         * loader/MixedContentChecker.cpp:
1156         * loader/PingLoader.cpp:
1157         * loader/PolicyChecker.h:
1158         (WebCore):
1159         * loader/ProgressTracker.cpp:
1160         * loader/SubframeLoader.cpp:
1161         * loader/SubresourceLoader.cpp:
1162         * loader/TextTrackLoader.cpp:
1163         * loader/TextTrackLoader.h:
1164         (WebCore):
1165         * loader/ThreadableLoader.h:
1166         * loader/appcache/ApplicationCacheGroup.cpp:
1167         * loader/appcache/ApplicationCacheGroup.h:
1168         (WebCore):
1169         * loader/appcache/ApplicationCacheHost.cpp:
1170         * loader/archive/cf/LegacyWebArchive.cpp:
1171         * loader/cache/CachedFont.cpp:
1172         * loader/cache/CachedFont.h:
1173         (CachedFontClient):
1174         (WebCore::CachedFontClient::~CachedFontClient):
1175         (WebCore::CachedFontClient::expectedType):
1176         (WebCore::CachedFontClient::resourceClientType):
1177         (WebCore::CachedFontClient::fontLoaded):
1178         (WebCore):
1179         * loader/cache/CachedFontClient.h: Removed.
1180         * loader/cache/CachedImage.cpp:
1181         * loader/cache/CachedRawResource.cpp:
1182         * loader/cache/CachedRawResource.h:
1183         (WebCore):
1184         (CachedRawResourceClient):
1185         (WebCore::CachedRawResourceClient::~CachedRawResourceClient):
1186         (WebCore::CachedRawResourceClient::expectedType):
1187         (WebCore::CachedRawResourceClient::resourceClientType):
1188         (WebCore::CachedRawResourceClient::dataSent):
1189         (WebCore::CachedRawResourceClient::responseReceived):
1190         (WebCore::CachedRawResourceClient::dataReceived):
1191         (WebCore::CachedRawResourceClient::redirectReceived):
1192         (WebCore::CachedRawResourceClient::dataDownloaded):
1193         * loader/cache/CachedRawResourceClient.h: Removed.
1194         * loader/cache/CachedResource.cpp:
1195         * loader/cache/CachedResourceHandle.cpp:
1196         (WebCore):
1197         * loader/cache/CachedResourceHandle.h:
1198         (WebCore):
1199         (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
1200         (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
1201         * loader/cache/CachedSVGDocument.h:
1202         (CachedSVGDocumentClient):
1203         (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
1204         (WebCore::CachedSVGDocumentClient::expectedType):
1205         (WebCore::CachedSVGDocumentClient::resourceClientType):
1206         (WebCore):
1207         * loader/cache/CachedSVGDocumentClient.h: Removed.
1208         * loader/cache/CachedSVGDocumentReference.cpp: Removed.
1209         * loader/cache/CachedSVGDocumentReference.h:
1210         (WebCore):
1211         (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
1212         (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
1213         * loader/cache/CachedStyleSheetClient.h:
1214         (WebCore):
1215         * loader/cache/MemoryCache.h:
1216         (WebCore):
1217         (MemoryCache):
1218         * loader/chromium/CachedRawResourceChromium.cpp:
1219         * loader/icon/IconController.cpp:
1220         * loader/icon/IconLoader.h:
1221         * loader/mac/ResourceLoaderMac.mm:
1222         * page/DOMWindowExtension.cpp:
1223         * page/Frame.cpp:
1224         (WebCore::Frame::Frame):
1225         (WebCore):
1226         (WebCore::Frame::reportMemoryUsage):
1227         * page/Frame.h:
1228         (WebCore):
1229         (Frame):
1230         (WebCore::Frame::init):
1231         (WebCore::Frame::loader):
1232         * page/PerformanceNavigation.cpp:
1233         * page/PerformanceTiming.cpp:
1234         * page/PointerLockController.cpp:
1235         * page/Settings.cpp:
1236         * page/animation/CSSPropertyAnimation.cpp:
1237         * platform/chromium/PasteboardChromium.cpp:
1238         * platform/efl/ErrorsEfl.cpp:
1239         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1240         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1241         * platform/graphics/filters/FilterOperation.cpp:
1242         (WebCore):
1243         * platform/graphics/filters/FilterOperation.h:
1244         (WebCore):
1245         (WebCore::FilterOperation::ReferenceFilterOperation::setCachedSVGDocumentReference):
1246         (WebCore::FilterOperation::ReferenceFilterOperation::ReferenceFilterOperation):
1247         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1248         * platform/gtk/ErrorsGtk.cpp:
1249         * platform/gtk/PasteboardGtk.cpp:
1250         * platform/gtk/PasteboardHelper.h:
1251         * platform/mac/ClipboardMac.h:
1252         * platform/mac/ClipboardMac.mm:
1253         * platform/mac/HTMLConverter.mm:
1254         * platform/mac/PasteboardMac.mm:
1255         * platform/network/AuthenticationChallengeBase.cpp:
1256         * platform/network/cf/CookieJarCFNet.cpp:
1257         * platform/network/cf/ResourceRequestCFNet.cpp:
1258         * platform/network/mac/CookieStorageMac.mm:
1259         * platform/qt/PasteboardQt.cpp:
1260         * plugins/DOMMimeType.cpp:
1261         * plugins/PluginRequest.h: Removed.
1262         * plugins/PluginStream.h:
1263         (PluginStreamClient):
1264         (WebCore::PluginStreamClient::~PluginStreamClient):
1265         (WebCore::PluginStreamClient::streamDidFinishLoading):
1266         (WebCore):
1267         * plugins/PluginStreamClient.h: Removed.
1268         * plugins/PluginView.cpp:
1269         * plugins/PluginView.h:
1270         (WebCore):
1271         (PluginRequest):
1272         (WebCore::PluginRequest::PluginRequest):
1273         (WebCore::PluginRequest::frameLoadRequest):
1274         (WebCore::PluginRequest::notifyData):
1275         (WebCore::PluginRequest::sendNotification):
1276         (WebCore::PluginRequest::shouldAllowPopups):
1277         * rendering/HitTestResult.cpp:
1278         * rendering/InlineFlowBox.cpp:
1279         * rendering/RenderBox.cpp:
1280         * rendering/RenderEmbeddedObject.cpp:
1281         * rendering/RenderImage.cpp:
1282         * rendering/RenderImageResource.cpp:
1283         (WebCore::RenderImageResource::RenderImageResource):
1284         (WebCore):
1285         * rendering/RenderImageResource.h:
1286         (WebCore::RenderImageResource::image):
1287         (WebCore::RenderImageResource::errorOccurred):
1288         (WebCore::RenderImageResource::usesImageContainerSize):
1289         (WebCore::RenderImageResource::imageHasRelativeWidth):
1290         (WebCore::RenderImageResource::imageHasRelativeHeight):
1291         (WebCore::RenderImageResource::imageSize):
1292         * rendering/RenderImageResourceStyleImage.cpp:
1293         * rendering/RenderLayer.cpp:
1294         * rendering/RenderLayerBacking.cpp:
1295         * rendering/RenderLayerFilterInfo.h:
1296         (WebCore):
1297         * rendering/RenderListItem.cpp:
1298         * rendering/RenderListMarker.cpp:
1299         * rendering/RenderSnapshottedPlugIn.cpp:
1300         * rendering/RenderTableCol.cpp:
1301         * rendering/RenderTableRow.cpp:
1302         * rendering/RenderTableSection.cpp:
1303         * rendering/style/StyleCachedShader.h:
1304         * rendering/style/StyleCustomFilterProgram.cpp: Removed.
1305         * rendering/style/StyleCustomFilterProgram.h:
1306         (WebCore):
1307         (WebCore::StyleCustomFilterProgram::vertexShaderString):
1308         (StyleCustomFilterProgram):
1309         (WebCore::StyleCustomFilterProgram::fragmentShaderString):
1310         (WebCore::StyleCustomFilterProgram::isLoaded):
1311         (WebCore::StyleCustomFilterProgram::willHaveClients):
1312         (WebCore::StyleCustomFilterProgram::didRemoveLastClient):
1313         (WebCore::StyleCustomFilterProgram::notifyFinished):
1314         * svg/SVGFEImageElement.h:
1315         * svg/SVGFontFaceUriElement.h:
1316         (SVGFontFaceUriElement):
1317         * svg/SVGImageLoader.cpp:
1318         * svg/SVGUseElement.cpp:
1319         * svg/SVGUseElement.h:
1320         * svg/graphics/SVGImageCache.cpp:
1321         * testing/MockPagePopupDriver.cpp:
1322         * xml/XSLStyleSheet.h:
1323         (WebCore):
1324         * xml/XSLTProcessorLibxslt.cpp:
1325         * xml/parser/XMLDocumentParser.cpp:
1326         * xml/parser/XMLDocumentParser.h:
1327         * xml/parser/XMLDocumentParserLibxml2.cpp:
1328
1329 2013-03-03  Kentaro Hara  <haraken@chromium.org>
1330
1331         [V8] Remove TranslateParameter() from CodeGeneratorV8.pm
1332         https://bugs.webkit.org/show_bug.cgi?id=111218
1333
1334         Reviewed by Adam Barth.
1335
1336         TranslateParameter() does nothing. It tries to convert TimeoutHandler to DOMString,
1337         but there is no non-custom method that uses TimeoutHandler.
1338
1339         The only place where TimeoutHandler is used in the WebKit IDL is setTimeout() and setInterval().
1340         However, the latest spec uses 'any' instead of TimeoutHandler.
1341         http://dev.w3.org/html5/spec-LC/timers.html
1342         Thus, this patch updates the IDL declarations of setTimeout() and setInterval()
1343         according to the spec. By this change, TimeoutHandler is gone away from the WebKit IDL.
1344         (Anyway this IDL change has no effect, because setTimeout() and setInterval() are written
1345         in custom bindings.)
1346
1347         No tests. No change in behavior.
1348
1349         * bindings/scripts/CodeGeneratorV8.pm:
1350         (GenerateParametersCheck):
1351         * page/DOMWindow.idl:
1352         * workers/WorkerContext.idl:
1353
1354 2013-03-03  James Weatherall  <wez@chromium.org>
1355
1356         keydown and keyup events have zero keycode for some numeric pad keys under Chromium on Linux
1357         https://bugs.webkit.org/show_bug.cgi?id=85642
1358
1359         Add missing key mappings for GDK_KP_Begin, GDK_KP_Insert, GDK_KP_Delete and GDK_ISO_Level3_Shift.
1360
1361         Reviewed by Adam Barth.
1362
1363         * platform/chromium/KeyCodeConversionGtk.cpp:
1364         (WebCore::windowsKeyCodeForKeyEvent):
1365
1366 2013-03-03  Adam Barth  <abarth@webkit.org>
1367
1368         REGRESSION(144520): Does not compile on chromium-win
1369         https://bugs.webkit.org/show_bug.cgi?id=111261
1370
1371         Unreviewed rollout of http://trac.webkit.org/changeset/144520. This
1372         patch does not compile for chromium-win. See the bug for the compile
1373         error.
1374
1375         * rendering/ExclusionShapeInsideInfo.cpp:
1376         * rendering/ExclusionShapeInsideInfo.h:
1377         (WebCore):
1378         (LineSegmentRange):
1379         (WebCore::LineSegmentRange::LineSegmentRange):
1380         (WebCore::ExclusionShapeInsideInfo::isEnabledFor):
1381         * rendering/RenderBlock.cpp:
1382         (WebCore::RenderBlock::willBeDestroyed):
1383         (WebCore::RenderBlock::exclusionShapeInsideInfo):
1384         (WebCore):
1385         (WebCore::RenderBlock::updateExclusionShapeInsideInfoAfterStyleChange):
1386         * rendering/RenderBlock.h:
1387         (WebCore):
1388         (RenderBlock):
1389         (RenderBlockRareData):
1390         * rendering/RenderBlockLineLayout.cpp:
1391         (WebCore::constructBidiRunsForLine):
1392
1393 2013-03-02  Zan Dobersek  <zdobersek@igalia.com>
1394
1395         REGRESSION (r144517): IndexedDB layout test failures on GTK
1396         https://bugs.webkit.org/show_bug.cgi?id=111243
1397
1398         Reviewed by Martin Robinson.
1399
1400         Changes to the custom JSC bindings for IDBAny are required after r144517,
1401         specifically the case of IDBAny object having the KeyPathType type has to be covered.
1402         These changes are analogous to those made to the V8 bindings in the mentioned commit.
1403
1404         No new tests - already covered by existing tests.
1405
1406         * bindings/js/JSIDBAnyCustom.cpp:
1407         (WebCore::toJS): A helper function that wraps an IDBKeyPath into a JSValue.
1408         (WebCore): Shuffle the order inside the switch statement a bit to match the V8 custom bindings.
1409         Cover the case where the IDBAny object has the KeyPathType, calling the new helper method.
1410
1411 2013-03-02  Darin Adler  <darin@apple.com>
1412
1413         Another try at fixing the build.
1414
1415         * loader/cache/MemoryCache.cpp: Added an include of CachedResourceHandle.h.
1416
1417 2013-03-02  Darin Adler  <darin@apple.com>
1418
1419         Try to fix build.
1420
1421         * inspector/InspectorInstrumentation.h: Add missing forward declaration
1422         of CachedResource.
1423
1424 2013-02-18  Darin Adler  <darin@apple.com>
1425
1426         Cut down the number of source files that depend on Clipboard.h
1427         https://bugs.webkit.org/show_bug.cgi?id=110030
1428
1429         Reviewed by Ryosuke Niwa.
1430
1431         I am doing some work on Clipboard and it's better to recompile 50 files
1432         each time we touch the header instead of 700. Also cut down on includes
1433         of DragState.h.
1434
1435         * WebCore.exp.in: Updated for new MouseEvent::create function.
1436
1437         * dom/ClipboardEvent.cpp: Added include of Clipboard.h since we use it
1438         here and the world no longer includes it everywhere.
1439
1440         * dom/ClipboardEvent.h: Forward declared Clipboard instead of including
1441         Clipboard.h. Also made some overrides private because they can be.
1442
1443         * dom/DataTransferItem.h: Removed unneeded include of Clipboard.h.
1444
1445         * dom/MouseEvent.cpp: Added include of Clipboard.h since we use it
1446         here and the world no longer includes it everywhere.
1447         (WebCore::MouseEvent::create): Made the create function non-inline
1448         since we can't compile it without including Clipboard.h and we don't
1449         want to include Clipboard.h in the header. This is not so commonly
1450         used or so hot that this needs to be inlined.
1451
1452         * dom/MouseEvent.h: Forward declared Clipboard instead of including
1453         Clipboard.h. Made MouseEvent::create a non-inline function and also
1454         used overloading instead of default arguments, since we can't compile
1455         a default argument of type PassRefPtr<Clipboard> without including
1456         Clipboard.h.
1457
1458         * dom/WheelEvent.cpp: Added include of Clipboard.h since we use it
1459         here and the world no longer includes it everywhere.
1460
1461         * dom/WheelEvent.h: Forward declare PlatformWheelEvent since it is used
1462         in this header. Previously we'd get it indirectly from including a header
1463         that included Clipboard.h.
1464
1465         * editing/Editor.cpp: Added include of Clipboard.h since we use it here
1466         and the world no longer includes it everywhere.
1467
1468         * inspector/InspectorDebuggerAgent.cpp: Added include of CachedResource.h.
1469         We used to get this indirectly through Clipboard.h.
1470
1471         * inspector/InspectorFrontendHost.cpp: Added includes of ResourceError.h
1472         and ResourceResponse.h. We used to get these indirectly through Clipboard.h.
1473         Also removed unneeded include of <wtf/RefPtr.h>.
1474
1475         * inspector/NetworkResourcesData.cpp: Added include of CachedResource.h.
1476         We used to get this indirectly through Clipboard.h.
1477
1478         * loader/PingLoader.cpp: Added include of ResourceResponse.h.
1479         We used to get this indirectly through Clipboard.h.
1480
1481         * page/DragController.cpp: Added include of DragState.h.
1482         We used to get this indirectly through EventHandler.h
1483
1484         * page/EventHandler.h: Forward declared DragState and Element instead of
1485         including DragState.h. Also added an include of LayoutPoint.h, which we
1486         used to get indirectly through DragState.h.
1487
1488 2013-02-27  Darin Adler  <darin@apple.com>
1489
1490         StringHasher functions require alignment that call sites do not all guarantee
1491         https://bugs.webkit.org/show_bug.cgi?id=110171
1492
1493         Reviewed by Benjamin Poulain.
1494
1495         * platform/graphics/WidthCache.h:
1496         (WebCore::WidthCache::SmallStringKey::SmallStringKey): Use the newly added
1497         addCharactersAssumingAligned to make sure we don't slow this call site down.
1498         It's safe since this code always adds characters two at a time.
1499
1500 2013-03-02  Adam Barth  <abarth@webkit.org>
1501
1502         XSSAuditor has a subtle race condition when used with the threaded HTML parser
1503         https://bugs.webkit.org/show_bug.cgi?id=111253
1504
1505         Reviewed by Eric Seidel.
1506
1507         We were refing and derefing a StringImpl for a main-thread
1508         AtomicString. Using QualifiedNames on the background thread is very
1509         fragile and we should figure out a more robust solution.
1510
1511         * html/parser/XSSAuditor.cpp:
1512         (WebCore::findAttributeWithName):
1513
1514 2013-03-02  Benjamin Poulain  <bpoulain@apple.com>
1515
1516         Move computedStyleIncludingVisitedInfo from TestRunner to Internals
1517         https://bugs.webkit.org/show_bug.cgi?id=109772
1518
1519         Reviewed by Andreas Kling.
1520
1521         The function computedStyleIncludingVisitedInfo() is purely internal to WebCore,
1522         it is better defined on Internals than on TestRunner.
1523
1524         * testing/Internals.cpp:
1525         (WebCore::Internals::computedStyleIncludingVisitedInfo):
1526         * testing/Internals.h:
1527         * testing/Internals.idl:
1528
1529 2013-03-02  David Kilzer  <ddkilzer@apple.com>
1530
1531         BUILD FIX (r143637): Export ScriptController::javaScriptContext() on iOS
1532         <http://webkit.org/b/106059>
1533
1534         Fixes the following build failure:
1535
1536             Undefined symbols for architecture armv7:
1537               "__ZN7WebCore16ScriptController17javaScriptContextEv", referenced from:
1538                   -[WebFrame javaScriptContext] in WebFrame.o
1539                   __ZN20WebFrameLoaderClient35dispatchDidClearWindowObjectInWorldEPN7WebCore15DOMWrapperWorldE in WebFrameLoaderClient.o
1540             ld: symbol(s) not found for architecture armv7
1541
1542         * WebCore.exp.in: Export ScriptController::javaScriptContext()
1543         even more unconditionally.
1544
1545 2013-03-02  Eric Seidel  <eric@webkit.org>
1546
1547         Remove two unnecessary mallocs from the main-thread-parser code path
1548         https://bugs.webkit.org/show_bug.cgi?id=111249
1549
1550         Reviewed by Adam Barth.
1551
1552         I noticed these while fixing up our Vector -> String conversions
1553         but never went back to fix the FIXME.
1554
1555         AtomicString(Vector<UChar, capacity>) is smart enough to avoid mallocing
1556         if the represented string is already in the AtomicString table.  It
1557         also handles 8bit vs. 16bit and empty() just like nameString() does.
1558
1559         I also removed a 3rd caller to nameString() in the XSSAuditor which
1560         was causing an unnecessary malloc in both the main and background
1561         thread parser paths.
1562
1563         * html/parser/AtomicHTMLToken.h:
1564         (WebCore::AtomicHTMLToken::AtomicHTMLToken):
1565         * html/parser/HTMLToken.h:
1566         * html/parser/XSSAuditor.cpp:
1567         (WebCore):
1568         (WebCore::threadSafeMatch):
1569         (WebCore::hasName):
1570
1571 2013-03-02  Eric Seidel  <eric@webkit.org>
1572
1573         constructTreeFromCompactHTMLToken should call clearExternalCharacters
1574         https://bugs.webkit.org/show_bug.cgi?id=111248
1575
1576         Reviewed by Adam Barth.
1577
1578         I don't know how to write a test for this.  It's possible characters()
1579         is never accessed from HTMLStackItem::token(), but it's better to be
1580         safe than sorry here.
1581
1582         * html/parser/HTMLDocumentParser.cpp:
1583         (WebCore::HTMLDocumentParser::constructTreeFromCompactHTMLToken):
1584
1585 2013-03-02  Rob Buis  <rbuis@rim.com>
1586
1587         Text overflow ellipsis wrong color when using webkit-text-fill-color
1588         https://bugs.webkit.org/show_bug.cgi?id=54841
1589
1590         Reviewed by David Hyatt.
1591
1592         Take -webkit-text-fill-color into account for ellipsis painting.
1593
1594         Test: fast/css/text-overflow-ellipsis-color.html
1595
1596         * rendering/EllipsisBox.cpp:
1597         (WebCore::EllipsisBox::paint):
1598
1599 2013-03-02  Ryosuke Niwa  <rniwa@webkit.org>
1600
1601         Fix a typo in my previous commit (r144534).
1602
1603         * platform/win/PasteboardWin.cpp:
1604
1605 2013-03-02  Nayan Kumar K  <nayankk@motorola.com>
1606
1607         [WebGL] Support for texImage2D of type HALF_FLOAT_OES with ArrayBufferView.
1608         https://bugs.webkit.org/show_bug.cgi?id=110818
1609
1610         Reviewed by Kenneth Russell.
1611
1612         As per OES_texture_half_float specification texImage2D and texSubImage2D entry
1613         points taking ArrayBufferView should extended to accept null with the pixel type
1614         HALF_FLOAT_OES.
1615
1616         Tests: fast/canvas/webgl/oes-texture-half-float-not-supported.html
1617                fast/canvas/webgl/oes-texture-half-float.html
1618
1619         * CMakeLists.txt:
1620         * DerivedSources.make:
1621         * DerivedSources.pri:
1622         * GNUmakefile.list.am:
1623         * Target.pri:
1624         * WebCore.gypi:
1625         * WebCore.xcodeproj/project.pbxproj:
1626         * bindings/js/JSWebGLRenderingContextCustom.cpp:
1627         (WebCore::toJS):
1628         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
1629         (WebCore::toV8Object):
1630         * html/canvas/OESTextureHalfFloat.cpp: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
1631         (WebCore):
1632         (WebCore::OESTextureHalfFloat::OESTextureHalfFloat):
1633         (WebCore::OESTextureHalfFloat::~OESTextureHalfFloat):
1634         (WebCore::OESTextureHalfFloat::getName):
1635         (WebCore::OESTextureHalfFloat::create):
1636         * html/canvas/OESTextureHalfFloat.h: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
1637         (WebCore):
1638         (OESTextureHalfFloat):
1639         * html/canvas/OESTextureHalfFloat.idl: Copied from Source/WebCore/html/canvas/WebGLExtension.h.
1640         * html/canvas/WebGLExtension.h:
1641         * html/canvas/WebGLRenderingContext.cpp:
1642         (WebCore):
1643         (WebCore::WebGLRenderingContext::getExtension):
1644         (WebCore::WebGLRenderingContext::texImage2D):
1645         (WebCore::WebGLRenderingContext::texSubImage2D):
1646         (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
1647         (WebCore::WebGLRenderingContext::validateTexFuncData):
1648         * html/canvas/WebGLRenderingContext.h:
1649         (WebCore):
1650         (WebGLRenderingContext):
1651         * html/canvas/WebGLRenderingContext.idl:
1652         * platform/graphics/Extensions3D.h:
1653         (Extensions3D):
1654         * platform/graphics/GraphicsContext3D.cpp:
1655         (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
1656         * platform/graphics/GraphicsContext3D.h:
1657         * platform/graphics/GraphicsTypes3D.h:
1658         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
1659         (WebCore::GraphicsContext3D::texImage2D):
1660
1661 2013-03-02  Ryosuke Niwa  <rniwa@webkit.org>
1662
1663         Windows build fix attempt after r144530.
1664
1665         * platform/win/PasteboardWin.cpp:
1666
1667 2013-03-01  Dan Bernstein  <mitz@apple.com>
1668
1669         Tried to fix the build after r144530.
1670
1671         * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h: Include the header for the
1672         base class.
1673
1674 2013-03-01  Terry Anderson  <tdanderson@chromium.org>
1675
1676         Remove unused member variable m_useLatchedEventNode from PlatformWheelEvent.h
1677         https://bugs.webkit.org/show_bug.cgi?id=107314
1678
1679         Reviewed by Darin Adler.
1680
1681         EventHandler::handleGestureScrollCore() was removed in http://trac.webkit.org/changeset/140177,
1682         and this was the only place where the member variable |m_useLatchedEventNode| in
1683         PlatformWheelEvent was mutated. This variable is no longer needed and so it should be removed.
1684
1685         No change in behavior, so no new tests needed.
1686
1687         * platform/PlatformWheelEvent.h:
1688         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1689         (WebCore::PlatformWheelEvent::useLatchedEventNode):
1690         (PlatformWheelEvent):
1691
1692 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1693
1694         Reduce amount of rebuilding when touching networking headers
1695         https://bugs.webkit.org/show_bug.cgi?id=111035
1696
1697         Reviewed by Eric Seidel.
1698
1699         This uses a number of common unsurprising techniques. One interesting observation
1700         is that including CachedResource related headers is very expensive. We can usually
1701         get away with their Client counterparts, and with CachedResourceHandle.
1702
1703         * page/Frame.cpp:
1704         * page/Frame.h:
1705         Don't include FrameLoader, greatly reducing include graph for most non-loader files.
1706         This required making Frame::init() non-inline - I'm not sure why it ever was.
1707
1708         * loader/FrameLoader.cpp:
1709         * loader/FrameLoader.h:
1710         Even though FrameLoader is logically on loading side of WebCore, it's included in
1711         too many places. Not including PolicyChecker.h and ResourceHandle.h was among the
1712         largest wins. As a future improvement, we should probably convert other members
1713         to OwnPtrs.
1714
1715         * css/CSSCrossfadeValue.h: Initializing CachedResourceHandle with 0 requires a
1716         definition of a class it holds, but default construction does not.
1717
1718         * loader/CrossOriginAccessControl.h: This file among others only needs ResourceHandleTypes.h,
1719         not ResourceHandle.h. This header is semi-recent, so not all include sites were updated.
1720
1721         * loader/cache/CachedFont.h:
1722         * loader/cache/CachedFontClient.h: Added.
1723         * loader/cache/CachedRawResource.h:
1724         * loader/cache/CachedRawResourceClient.h: Added.
1725         * loader/cache/CachedSVGDocument.h:
1726         * loader/cache/CachedSVGDocumentClient.h: Added.
1727         These types were defining client types in the same headers, making it impossible
1728         to avoid including networking headers through CachedResource. Moved clients into
1729         separate files.
1730
1731         * plugins/PluginStream.h:
1732         * plugins/PluginStreamClient.h: Added.
1733         Similar situation here.
1734
1735         * loader/cache/CachedResourceHandle.cpp:
1736         * loader/cache/CachedResourceHandle.h:
1737         Moved functions that need to know about CachedResource to .cpp file. This is another
1738         huge win. Added a destructor, so that CachedResource woudn't be needed in all files
1739         that include CachedResourceHandle.
1740
1741         * loader/cache/CachedSVGDocumentReference.cpp: Added.
1742         * loader/cache/CachedSVGDocumentReference.h:
1743         Moved constructor and virtual function implementations to a .cpp file - they need
1744         not inlining, and this lets us avoid including CachedSVGDocument.h in the header.
1745
1746         * platform/graphics/filters/FilterOperation.cpp:
1747         * platform/graphics/filters/FilterOperation.h:
1748         Avoid including CachedSVGDocumentReference.h. This is not such a big win now that
1749         CachedSVGDocumentReference.h itself is smaller, but FilterOperation is so clearly
1750         rendering code that it seems best to cut any ties with resources and loading.
1751         Added a virtual destrutor in .cpp file, because inline destructors in polymorphic
1752         classes are generally harmful (due to code bloat).
1753
1754         * plugins/PluginRequest.h: Added.
1755         * plugins/PluginView.h:
1756         Moved PluginRequest into a separate file, it was out of place in a view hierarchy
1757         class file.
1758
1759         * rendering/RenderImageResource.cpp:
1760         * rendering/RenderImageResource.h:
1761         Moved definitions of virtual functions to a .cpp file. Thre is no win from having
1762         them inline, and now we don't need CachedImage.h in the header.
1763
1764         * rendering/style/StyleCustomFilterProgram.cpp: Added.
1765         * rendering/style/StyleCustomFilterProgram.h:
1766         Ditto.
1767
1768         * CMakeLists.txt:
1769         * GNUmakefile.list.am:
1770         * Modules/mediastream/RTCPeerConnection.cpp:
1771         * Modules/notifications/Notification.cpp:
1772         * Target.pri:
1773         * WebCore.exp.in:
1774         * WebCore.gypi:
1775         * WebCore.vcproj/WebCore.vcproj:
1776         * WebCore.vcxproj/WebCore.vcxproj:
1777         * WebCore.vcxproj/WebCore.vcxproj.filters:
1778         * WebCore.xcodeproj/project.pbxproj:
1779         * bindings/ScriptControllerBase.cpp:
1780         * bindings/js/JSNodeCustom.cpp:
1781         * bindings/js/ScriptController.cpp:
1782         * bindings/js/ScriptSourceCode.h:
1783         * bindings/objc/DOM.mm:
1784         * bindings/v8/ScriptController.cpp:
1785         * bindings/v8/V8DOMWindowShell.cpp:
1786         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1787         * css/CSSFontFaceSource.h:
1788         * css/CSSFontSelector.cpp:
1789         * css/WebKitCSSSVGDocumentValue.cpp:
1790         * css/WebKitCSSSVGDocumentValue.h:
1791         * dom/Clipboard.cpp:
1792         * dom/ContainerNode.cpp:
1793         * dom/DOMImplementation.cpp:
1794         * dom/PendingScript.h:
1795         * dom/ScriptElement.cpp:
1796         * dom/ScriptElement.h:
1797         * history/CachedFrame.cpp:
1798         * html/DOMURL.cpp:
1799         * html/HTMLAnchorElement.cpp:
1800         * html/HTMLAppletElement.cpp:
1801         * html/HTMLElement.cpp:
1802         * html/HTMLEmbedElement.cpp:
1803         * html/HTMLFrameSetElement.cpp:
1804         * html/HTMLHtmlElement.cpp:
1805         * html/HTMLImageElement.cpp:
1806         * html/HTMLObjectElement.cpp:
1807         * html/HTMLPlugInElement.cpp:
1808         * html/ImageDocument.cpp:
1809         * html/ImageInputType.cpp:
1810         * html/MediaDocument.cpp:
1811         * html/PluginDocument.cpp:
1812         * html/canvas/WebGLRenderingContext.cpp:
1813         * html/parser/HTMLConstructionSite.cpp:
1814         * html/parser/HTMLParserOptions.cpp:
1815         * html/parser/HTMLScriptRunner.h:
1816         * html/parser/XSSAuditor.cpp:
1817         * html/parser/XSSAuditorDelegate.cpp:
1818         * inspector/InspectorDebuggerAgent.cpp:
1819         * inspector/InspectorFileSystemAgent.cpp:
1820         * inspector/InspectorFrontendHost.cpp:
1821         * inspector/InspectorInstrumentation.h:
1822         * inspector/InspectorPageAgent.cpp:
1823         * inspector/NetworkResourcesData.cpp:
1824         * inspector/NetworkResourcesData.h:
1825         * loader/CookieJar.cpp:
1826         * loader/CrossOriginAccessControl.cpp:
1827         * loader/CrossOriginPreflightResultCache.h:
1828         * loader/DocumentThreadableLoader.h:
1829         * loader/ImageLoader.cpp:
1830         * loader/ImageLoader.h:
1831         * loader/LinkLoader.h:
1832         * loader/MainResourceLoader.cpp:
1833         * loader/MainResourceLoader.h:
1834         * loader/MixedContentChecker.cpp:
1835         * loader/PingLoader.cpp:
1836         * loader/PolicyChecker.h:
1837         * loader/ProgressTracker.cpp:
1838         * loader/SubframeLoader.cpp:
1839         * loader/SubresourceLoader.cpp:
1840         * loader/TextTrackLoader.cpp:
1841         * loader/TextTrackLoader.h:
1842         * loader/ThreadableLoader.h:
1843         * loader/appcache/ApplicationCacheGroup.cpp:
1844         * loader/appcache/ApplicationCacheGroup.h:
1845         * loader/appcache/ApplicationCacheHost.cpp:
1846         * loader/archive/cf/LegacyWebArchive.cpp:
1847         * loader/cache/CachedFont.cpp:
1848         * loader/cache/CachedImage.cpp:
1849         * loader/cache/CachedRawResource.cpp:
1850         * loader/cache/CachedResource.cpp:
1851         * loader/cache/CachedStyleSheetClient.h:
1852         * loader/cache/MemoryCache.cpp:
1853         * loader/cache/MemoryCache.h:
1854         * loader/chromium/CachedRawResourceChromium.cpp:
1855         * loader/icon/IconController.cpp:
1856         * loader/icon/IconLoader.h:
1857         * loader/mac/ResourceLoaderMac.mm:
1858         * page/DOMWindowExtension.cpp:
1859         * page/DragController.cpp:
1860         * page/PerformanceNavigation.cpp:
1861         * page/PerformanceTiming.cpp:
1862         * page/PointerLockController.cpp:
1863         * page/Settings.cpp:
1864         * page/animation/CSSPropertyAnimation.cpp:
1865         * platform/chromium/PasteboardChromium.cpp:
1866         * platform/efl/ErrorsEfl.cpp:
1867         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1868         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1869         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1870         * platform/gtk/ErrorsGtk.cpp:
1871         * platform/gtk/PasteboardGtk.cpp:
1872         * platform/gtk/PasteboardHelper.h:
1873         * platform/mac/ClipboardMac.h:
1874         * platform/mac/ClipboardMac.mm:
1875         * platform/mac/HTMLConverter.mm:
1876         * platform/mac/PasteboardMac.mm:
1877         * platform/network/AuthenticationChallengeBase.cpp:
1878         * platform/network/cf/CookieJarCFNet.cpp:
1879         * platform/network/cf/ResourceRequestCFNet.cpp:
1880         * platform/network/mac/CookieStorageMac.mm:
1881         * platform/qt/PasteboardQt.cpp:
1882         * plugins/DOMMimeType.cpp:
1883         * plugins/PluginView.cpp:
1884         * rendering/HitTestResult.cpp:
1885         * rendering/InlineFlowBox.cpp:
1886         * rendering/RenderBox.cpp:
1887         * rendering/RenderEmbeddedObject.cpp:
1888         * rendering/RenderImage.cpp:
1889         * rendering/RenderImageResourceStyleImage.cpp:
1890         * rendering/RenderLayer.cpp:
1891         * rendering/RenderLayerBacking.cpp:
1892         * rendering/RenderLayerFilterInfo.h:
1893         * rendering/RenderListItem.cpp:
1894         * rendering/RenderListMarker.cpp:
1895         * rendering/RenderSnapshottedPlugIn.cpp:
1896         * rendering/RenderTableCol.cpp:
1897         * rendering/RenderTableRow.cpp:
1898         * rendering/RenderTableSection.cpp:
1899         * rendering/style/StyleCachedShader.h:
1900         * svg/SVGFEImageElement.h:
1901         * svg/SVGFontFaceUriElement.h:
1902         * svg/SVGImageLoader.cpp:
1903         * svg/SVGUseElement.cpp:
1904         * svg/SVGUseElement.h:
1905         * svg/graphics/SVGImageCache.cpp:
1906         * testing/MockPagePopupDriver.cpp:
1907         * xml/XSLStyleSheet.h:
1908         * xml/XSLTProcessorLibxslt.cpp:
1909         * xml/parser/XMLDocumentParser.cpp:
1910         * xml/parser/XMLDocumentParser.h:
1911         * xml/parser/XMLDocumentParserLibxml2.cpp:
1912         Many self-evident changes - removing unnecessary header includes, adding smaller
1913         more local ones that are now necessary.
1914
1915 2013-03-01  David Hyatt  <hyatt@apple.com>
1916
1917         [New Multicolumn] Transformed objects inside fragmented transparent objects don't render
1918         https://bugs.webkit.org/show_bug.cgi?id=111221.
1919
1920         Reviewed by Simon Fraser.
1921
1922         Improve transparencyClipBox so that it understands when moving into descendants
1923         that it does in fact have to break up the transformed clip rect across the
1924         fragments.
1925         
1926         Make sure when handling fragmented transforms using multiple paints that
1927         the test that determines the extent of the transform within the fragments
1928         uses transparencyClipBox. This gives us an accurate set of columns that the
1929         final transformed result will paint across.
1930
1931         Tests: fast/multicol/mixed-opacity-fixed-test.html
1932                fast/multicol/mixed-opacity-test.html
1933                fast/multicol/transform-inside-opacity.html
1934
1935         * rendering/RenderLayer.cpp:
1936         (WebCore::transparencyClipBox):
1937         (WebCore::expandClipRectForDescendantsAndReflection):
1938         Break transformed boxes up into fragments when they are
1939         being requested by an ancestor.
1940
1941         (WebCore::RenderLayer::collectFragments):
1942         (WebCore::RenderLayer::paintTransformedLayerIntoFragments):
1943         (WebCore::RenderLayer::hitTestTransformedLayerInFragments):
1944         * rendering/RenderLayer.h:
1945         (RenderLayer):
1946         Modify collectFragments so that we pass in the correct range
1947         within the columns that can possibly cover the fragmented
1948         transformed box.
1949
1950 2013-03-01  Ilya Tikhonovsky  <loislo@chromium.org>
1951
1952         Web Inspector: Native Memory Instrumentation: do not visit raw pointers by default.
1953         https://bugs.webkit.org/show_bug.cgi?id=110943
1954
1955         Reviewed by Yury Semikhatsky.
1956
1957         Unfortunately in many cases raw pointer may point to an object that has been deleted.
1958         There is no working solution to solve this problem in general.
1959         It could be solved only on case by case basis.
1960
1961         * inspector/HeapGraphSerializer.cpp:
1962         (WebCore::HeapGraphSerializer::HeapGraphSerializer):
1963         (WebCore::HeapGraphSerializer::reportLeaf):
1964         * loader/cache/MemoryCache.cpp:
1965         (WebCore::MemoryCache::reportMemoryUsage):
1966         * platform/graphics/BitmapImage.cpp:
1967         (WebCore::FrameData::reportMemoryUsage):
1968         * platform/graphics/skia/MemoryInstrumentationSkia.cpp:
1969         (reportMemoryUsage):
1970
1971 2013-03-01  Kentaro Hara  <haraken@chromium.org>
1972
1973         Style recalculation takes too long when adding whitespace text nodes
1974         https://bugs.webkit.org/show_bug.cgi?id=110786
1975
1976         Reviewed by Darin Adler.
1977
1978         // This takes 216 msec.
1979         for (var i = 0; i < 1500; ++i) {
1980           document.body.appendChild(document.createTextNode('x'));
1981           document.body.appendChild(document.createElement('div'));
1982           document.body.appendChild(document.createTextNode('x'));
1983         }
1984
1985         // But this takes 25.3 seconds.
1986         for (var i = 0; i < 1500; ++i) {
1987           document.body.appendChild(document.createTextNode(' '));
1988           document.body.appendChild(document.createElement('div'));
1989           document.body.appendChild(document.createTextNode(' '));
1990         }
1991
1992         The reason is that we do not create renderers for empty text
1993         nodes and thus we are hitting the worst O(N^2) case in Node::attach().
1994         (See FIXME in Node::attach().)
1995
1996         This patch adds a logic to bail out the loop to avoid the O(N^2) case.
1997         Specifically, the patch bails out the loop if we encounter a text node
1998         for which we again decided not to create a renderer. This bail out is
1999         reasonable because the fact that we again decided not to create a renderer
2000         for the text node indicates that there will be no affect of the result
2001         of Text::textRendererIsNeeded() of the rest of the sibling nodes.
2002
2003         Performance test: https://bugs.webkit.org/attachment.cgi?id=190545
2004         Performance result in Chromium/Linux: 25.3 sec => 48 msec !
2005
2006         Test: perf/append-text-nodes-without-renderers.html (for performance)
2007               fast/dynamic/create-renderer-for-whitespace-only-text.html (for correctness)
2008
2009         The loop was introduced in r29054. We have to make sure that
2010         all layout tests that were updated in r29054 pass with this patch.
2011         See http://trac.webkit.org/changeset/29054.
2012
2013         * dom/Node.cpp:
2014         (WebCore::Node::attach):
2015
2016 2013-03-01  Jason Anderssen  <janderssen@gmail.com>
2017
2018         Moved markerTextForListItem from TestRunner to Internals
2019         https://bugs.webkit.org/show_bug.cgi?id=110939
2020
2021         Reviewed by Benjamin Poulain.
2022
2023         TestRunner framework is an old way of testing webkit, it would be
2024         better to incorporate the testing frame directly into the WebCore itself
2025         as to make it more compatible with WK2.
2026
2027         * testing/Internals.cpp:
2028         (WebCore::Internals::markerTextForListItem):
2029         (WebCore):
2030         * testing/Internals.h:
2031         * testing/Internals.idl:
2032
2033 2013-03-01  Elliott Sprehn  <esprehn@gmail.com>
2034
2035         Don't leak Documents when using MutationObserver from extensions
2036         https://bugs.webkit.org/show_bug.cgi?id=111234
2037
2038         Reviewed by Adam Barth.
2039
2040         MutationObserverCallback holds a WorldContextHandle which secretly isn't
2041         a handle to anything when it's for the main world. When it's for a non-main
2042         world though, like those used in extensions, it becomes a strong reference
2043         to the v8::Context which results in leaks by creating cycles:
2044
2045         MutationObserver -> Callback -> World -> Document -> Node -> MutationObserver.
2046
2047         Instead we should keep a RefPtr to a DOMWrapperWorld in the callback and then
2048         get the v8::Context from that inside handleEvent.
2049
2050         Tests: ManualTests/leak-observer-nonmain-world.html
2051
2052         * bindings/v8/V8Binding.cpp:
2053         (WebCore::toV8Context): Added overload that takes a DOMWrapperWorld.
2054         * bindings/v8/V8Binding.h:
2055         * bindings/v8/V8MutationCallback.cpp:
2056         (WebCore::V8MutationCallback::V8MutationCallback):
2057         (WebCore::V8MutationCallback::handleEvent):
2058         * bindings/v8/V8MutationCallback.h:
2059         (V8MutationCallback):
2060
2061 2013-03-01  Bear Travis  <betravis@adobe.com>
2062
2063         [css exclusions] Move ExclusionShapeInsideInfo into RenderBlockRareData
2064         https://bugs.webkit.org/show_bug.cgi?id=110995
2065
2066         Reviewed by Julien Chaffraix.
2067
2068         This patch moves ExclusionShapeInsideInfo into the RenderBlockRareData struct,
2069         which enables us to move away from the global ExclusionShapeInsideInfo map.
2070         Some additional refactoring was done to remove ExclusionShapeInsideInfo's
2071         dependency on InlineIterator, which depended on RenderBlock. This work required
2072         adding a new LineSegmentIterator struct.
2073
2074         Refactoring, no new tests.
2075
2076         * rendering/ExclusionShapeInsideInfo.cpp:
2077         (WebCore):
2078         (WebCore::LineSegmentRange::LineSegmentRange): Moving the InlineIterator
2079         constructor to the .cpp file, as InlineIterator is now forward declared in
2080         the .h file.
2081         (WebCore::ExclusionShapeInsideInfo::isEnabledFor): Moving isEnabledFor to
2082         the .cpp file, as RenderBlock is now forward declared in the .h file.
2083         * rendering/ExclusionShapeInsideInfo.h:
2084         (WebCore):
2085         (LineSegmentIterator): A simple struct for containing segment positions for
2086         layout.
2087         (WebCore::LineSegmentIterator::LineSegmentIterator): Constructor.
2088         (LineSegmentRange): Transitioning to store LineSegmentIterator.
2089         (WebCore::LineSegmentRange::LineSegmentRange): Ditto.
2090         (ExclusionShapeInsideInfo):
2091         * rendering/RenderBlock.cpp:
2092         (WebCore::RenderBlock::willBeDestroyed): Destroying a block will now destroy
2093         its ExclusionShapeInsideInfo, so there is no need to remove it from the map.
2094         (WebCore):
2095         (WebCore::RenderBlock::updateExclusionShapeInsideInfoAfterStyleChange): Use
2096         the RenderBlockRareData struct rather than the global map.
2097         * rendering/RenderBlock.h:
2098         (WebCore):
2099         (WebCore::RenderBlock::ensureExclusionShapeInsideInfo): Ensure an info struct
2100         is present if the shape-inside style is set.
2101         (WebCore::RenderBlock::exclusionShapeInsideInfo): Look up the info struct for
2102         the current block.
2103         (WebCore::RenderBlock::setExclusionShapeInsideInfo): Update the info struct
2104         for the current block.
2105         (RenderBlockRareData): Add the ExclusionShapeInsideInfo member.
2106         * rendering/RenderBlockLineLayout.cpp:
2107         (WebCore::constructBidiRunsForLine): Construct the appropriate offsets during
2108         layout based on the stored LineSegmentIterators.
2109
2110 2013-03-01  Terry Anderson  <tdanderson@chromium.org>
2111
2112         EventHandler::handleGestureScrollUpdate() should invoke the user-generated scroll routines 
2113         so its behavior matches other user-initiated scrolls
2114         https://bugs.webkit.org/show_bug.cgi?id=109769
2115
2116         Reviewed by James Robinson.
2117
2118         To ensure that the scrolling behavior of GestureScrollUpdate events are consistent with
2119         the scrolling behavior of mousewheel events, use the existing user-generated scroll logic
2120         instead of calling into RenderLayer::scrollByRecursively(). This patch fixes the bug
2121         reported in https://bugs.webkit.org/show_bug.cgi?id=109316, where the example page can
2122         be scrolled using touch but cannot be scrolled using mousewheels.
2123
2124         Note that this patch does not use any of the mousewheel event-handling code.
2125
2126         Tests: fast/events/touch/gesture/touch-gesture-noscroll-body-propagated.html
2127                fast/events/touch/gesture/touch-gesture-noscroll-body-xhidden.html
2128                fast/events/touch/gesture/touch-gesture-noscroll-body-yhidden.html
2129                fast/events/touch/gesture/touch-gesture-noscroll-body.html
2130
2131         * page/EventHandler.cpp:
2132         (WebCore::EventHandler::clear):
2133         (WebCore::EventHandler::handleGestureEvent):
2134         (WebCore::EventHandler::handleGestureScrollBegin):
2135         (WebCore::EventHandler::handleGestureScrollUpdate):
2136         (WebCore::EventHandler::sendScrollEventToView):
2137             By calling this function at the start of handleGestureScrollUpdate() in the case
2138             where |m_scrollGestureHandlingNode| is null, we ensure that the scroll updates
2139             can still scroll the page itself, if possible.
2140         (WebCore):
2141         (WebCore::EventHandler::clearGestureScrollNodes):
2142         * page/EventHandler.h:
2143         (EventHandler):
2144         * platform/PlatformWheelEvent.h:
2145         (WebCore::PlatformWheelEvent::setHasPreciseScrollingDeltas):
2146
2147 2013-03-01  Alec Flett  <alecflett@chromium.org>
2148
2149         IndexedDB: Avoid ScriptValue copies in IDBAny
2150         https://bugs.webkit.org/show_bug.cgi?id=111002
2151
2152         Reviewed by Adam Barth.
2153
2154         This avoids some v8 handle thrashing in the long term,
2155         and protects us against some crashes in the short term.
2156
2157         The crashes will be fixed in 
2158         https://bugs.webkit.org/show_bug.cgi?id=110206.
2159
2160         * Modules/indexeddb/IDBAny.cpp:
2161         (WebCore::IDBAny::createNull):
2162         (WebCore::IDBAny::createString):
2163         (WebCore::IDBAny::IDBAny):
2164         (WebCore::IDBAny::scriptValue):
2165         * Modules/indexeddb/IDBAny.h:
2166         (WebCore::IDBAny::create):
2167         (IDBAny):
2168         (WebCore::IDBAny::keyPath):
2169         * bindings/v8/custom/V8IDBAnyCustom.cpp:
2170         (WebCore::toV8):
2171         (WebCore):
2172
2173 2013-03-01  Victor Carbune  <vcarbune@chromium.org>
2174
2175         Support padding, margin and border for internal UA cue styling
2176         https://bugs.webkit.org/show_bug.cgi?id=110703
2177
2178         Reviewed by Eric Carlson.
2179
2180         For some particular user agent styling this allows the possibility
2181         of making the window around the cue text bigger to match some user
2182         styles (see CaptionUserPreferencesMac::captionsStyleSheetOverride).
2183
2184         These properties *cannot* be set through by using the ::cue
2185         pseudo-element and, as specified, are used only internally.
2186
2187         Note: This patch is identical to the previously commited one,
2188         as it was rolled back without related tests failing.
2189
2190         Test: media/track/track-cue-rendering-with-padding.html
2191
2192         * css/mediaControls.css:
2193         (video::-webkit-media-text-track-display): Set the CSS box model
2194         to include in the specified width or height the values of
2195         padding / margin / border by using -webkit-box-sizing and avoid
2196         overflow over 100% width because of having these properties set.
2197         * rendering/RenderTextTrackCue.cpp:
2198         (WebCore::RenderTextTrackCue::isOutside): To not interfere with
2199         the regular WebVTT positioning algorithm, the check is done for
2200         the absolute content box.
2201         (WebCore::RenderTextTrackCue::repositionCueSnapToLinesSet): Added
2202         an extra adjustment step to accomodate vertical padding (and not
2203         overflow the cue container)
2204
2205 2013-03-01  Andy Estes  <aestes@apple.com>
2206
2207         REGRESSION (r125809): CFStrings created via StringImpl::createCFString()  might reference freed memory when Objective-C garbage collection is enabled
2208         https://bugs.webkit.org/show_bug.cgi?id=111219
2209
2210         Reviewed by Benjamin Poulain.
2211
2212         StringImpl::createCFString() uses CFStringCreateWithBytesNoCopy() in
2213         order to create CFString without making an unnecessary copy. In order
2214         to ensure that the the StringImpl's backing buffer isn't deallocated
2215         while the CFString is still alive, we use a custom CFAllocator to
2216         ref/deref the StringImpl at the appropriate times.
2217
2218         However, custom allocators aren't supported when Objective-C garbage
2219         collection is enabled, so in this case we use the default CF allocator.
2220         Since we can't guarantee the lifetime of the StringImpl in this case,
2221         we should just fall back to copying the string, as we did prior to r125809.
2222
2223         * platform/text/cf/StringImplCF.cpp:
2224         (garbageCollectionEnabled): Moved the check for whether garbage
2225         collection is enabled from StringWrapperCFAllocator::create() to here.
2226         (WTF::StringWrapperCFAllocator::create): Call garbageCollectionEnabled().
2227         (WTF::StringImpl::createCFString): If garbage collection is enabled,
2228         call the variants of CFStringCreate that copy the string.
2229
2230 2013-03-01  Roger Fong  <roger_fong@apple.com>
2231
2232         Unreviewed AppleWin build fix.
2233
2234         * platform/network/cf/ResourceHandleCFNet.cpp:
2235         (WebCore::ResourceHandle::createCFURLConnection):
2236
2237 2013-03-01  Martin Robinson  <mrobinson@igalia.com>
2238
2239         [GTK] Allow sharing the WebCore include list with the Chromium build
2240         https://bugs.webkit.org/show_bug.cgi?id=110241
2241
2242         Reviewed by Dirk Pranke.
2243
2244         * WebCore.gyp/WebCoreGTK.gyp: Added. A skeleton gyp file for WebCoreGTK+.
2245         * WebCore.gypi: Added shared include directories.
2246
2247 2013-03-01  Alexey Proskuryakov  <ap@apple.com>
2248
2249         Make in-memory blobs work in NetworkProcess
2250         https://bugs.webkit.org/show_bug.cgi?id=111132
2251
2252         Reviewed by Sam Weinig.
2253
2254         * WebCore.exp.in:
2255         * WebCore.xcodeproj/project.pbxproj:
2256         Exported functions now needed by WebKit2, and made some headers Private instead
2257         of Project.
2258
2259 2013-03-01  Eric Seidel  <eric@webkit.org>
2260
2261         Threaded HTML Parser has an extra copy of every byte from the network
2262         https://bugs.webkit.org/show_bug.cgi?id=111135
2263
2264         Reviewed by Adam Barth.
2265
2266         Every LayoutTest executes this code in threaded parsing mode.
2267
2268         * dom/DecodedDataDocumentParser.cpp:
2269         (WebCore::DecodedDataDocumentParser::appendBytes):
2270          - Pass ownership of the decoded string to the parser.
2271         (WebCore::DecodedDataDocumentParser::flush):
2272          - Same.
2273         * dom/DecodedDataDocumentParser.h:
2274         (DecodedDataDocumentParser):
2275         * dom/Document.cpp:
2276         (WebCore::Document::setContent):
2277         * dom/DocumentParser.h:
2278         (DocumentParser):
2279         * dom/RawDataDocumentParser.h:
2280         (WebCore::RawDataDocumentParser::append):
2281         * html/FTPDirectoryDocument.cpp:
2282         (FTPDirectoryDocumentParser):
2283         (WebCore::FTPDirectoryDocumentParser::append):
2284         * html/parser/HTMLDocumentParser.cpp:
2285         (WebCore::HTMLDocumentParser::append):
2286         * html/parser/HTMLDocumentParser.h:
2287         (HTMLDocumentParser):
2288         * html/parser/HTMLViewSourceParser.cpp:
2289         (WebCore::HTMLViewSourceParser::append):
2290         * html/parser/HTMLViewSourceParser.h:
2291         (HTMLViewSourceParser):
2292         * html/parser/TextDocumentParser.cpp:
2293         (WebCore::TextDocumentParser::append):
2294         * html/parser/TextDocumentParser.h:
2295         (TextDocumentParser):
2296         * loader/DocumentWriter.cpp:
2297         (WebCore::DocumentWriter::replaceDocument):
2298         * xml/parser/XMLDocumentParser.cpp:
2299         (WebCore::XMLDocumentParser::append):
2300         * xml/parser/XMLDocumentParser.h:
2301         (XMLDocumentParser):
2302         * xml/parser/XMLDocumentParserLibxml2.cpp:
2303         (WebCore::XMLDocumentParser::resumeParsing):
2304
2305 2013-03-01  David Hyatt  <hyatt@apple.com>
2306
2307         [New Multicolumn] Change inRenderFlowThread to follow containing block chain
2308         https://bugs.webkit.org/show_bug.cgi?id=111206
2309
2310         Reviewed by Simon Fraser.
2311
2312         This patch removes inRenderFlowThread and changes enclosingRenderFlowThread()
2313         to flowThreadContainingBlock(). flowThreadContainingBlock() now follows
2314         the containing block chain instead of the parent chain when outside of layout.
2315         (It already did the right thing when called during layout.)
2316         
2317         By removing inRenderFlowThread (which was following the parent chain), all
2318         code that is checking for flow thread containment now correctly uses the
2319         containing block chain. This allows for content to escape in-flow flow threads
2320         and do the right thing without asserting.
2321         
2322         Test: fast/multicol/positioned-outside-of-columns.html
2323
2324         * dom/WebKitNamedFlow.cpp:
2325         (WebCore::inFlowThread):
2326         (WebCore::WebKitNamedFlow::getRegionsByContent):
2327         * rendering/RenderBlock.cpp:
2328         (WebCore::RenderBlock::removeLeftoverAnonymousBlock):
2329         (WebCore::RenderBlock::collapseAnonymousBoxChild):
2330         (WebCore::RenderBlock::updateRegionsAndExclusionsLogicalSize):
2331         (WebCore::RenderBlock::computeRegionRangeForBlock):
2332         (WebCore::RenderBlock::layoutBlock):
2333         (WebCore::RenderBlock::computeOverflow):
2334         (WebCore::RenderBlock::determineLogicalLeftPositionForChild):
2335         (WebCore::RenderBlock::computeLogicalLocationForFloat):
2336         (WebCore::RenderBlock::logicalLeftOffsetForContent):
2337         (WebCore::RenderBlock::logicalRightOffsetForContent):
2338         (WebCore::RenderBlock::hasNextPage):
2339         (WebCore::RenderBlock::applyBeforeBreak):
2340         (WebCore::RenderBlock::applyAfterBreak):
2341         (WebCore::RenderBlock::pageLogicalTopForOffset):
2342         (WebCore::RenderBlock::pageLogicalHeightForOffset):
2343         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
2344         (WebCore::RenderBlock::adjustForUnsplittableChild):
2345         (WebCore::RenderBlock::adjustLinePositionForPagination):
2346         (WebCore::RenderBlock::lineWidthForPaginatedLineChanged):
2347         (WebCore::RenderBlock::offsetFromLogicalTopOfFirstPage):
2348         (WebCore::RenderBlock::regionAtBlockOffset):
2349         (WebCore::RenderBlock::setStaticInlinePositionForChild):
2350         (WebCore::RenderBlock::logicalWidthChangedInRegions):
2351         (WebCore::RenderBlock::clampToStartAndEndRegions):
2352         * rendering/RenderBlock.h:
2353         (RenderBlock):
2354         * rendering/RenderBlockLineLayout.cpp:
2355         (WebCore::layoutExclusionShapeInsideInfo):
2356         (WebCore::LineLayoutState::LineLayoutState):
2357         (WebCore::LineLayoutState::flowThread):
2358         (WebCore::LineLayoutState::setFlowThread):
2359         (LineLayoutState):
2360         (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
2361         (WebCore::RenderBlock::linkToEndLineIfNeeded):
2362         (WebCore::RenderBlock::layoutInlineChildren):
2363         (WebCore::RenderBlock::determineStartPosition):
2364         (WebCore::RenderBlock::checkPaginationAndFloatsAtEndLine):
2365         * rendering/RenderBox.cpp:
2366         (WebCore::RenderBox::clearRenderBoxRegionInfo):
2367         (WebCore::RenderBox::renderBoxRegionInfo):
2368         (WebCore::RenderBox::containingBlockLogicalWidthForPositioned):
2369         (WebCore::RenderBox::containingBlockLogicalHeightForPositioned):
2370         (WebCore::RenderBox::computePositionedLogicalWidth):
2371         (WebCore::RenderBox::computePositionedLogicalHeight):
2372         * rendering/RenderDeprecatedFlexibleBox.cpp:
2373         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
2374         * rendering/RenderFlexibleBox.cpp:
2375         (WebCore::RenderFlexibleBox::layoutBlock):
2376         * rendering/RenderFlowThread.cpp:
2377         (WebCore::RenderFlowThread::objectInFlowRegion):
2378         * rendering/RenderGrid.cpp:
2379         (WebCore::RenderGrid::layoutBlock):
2380         * rendering/RenderInline.cpp:
2381         (WebCore::RenderInline::updateAlwaysCreateLineBoxes):
2382         * rendering/RenderLayer.cpp:
2383         (WebCore::accumulateOffsetTowardsAncestor):
2384         * rendering/RenderLayerCompositor.cpp:
2385         (WebCore::RenderLayerCompositor::canBeComposited):
2386         * rendering/RenderMedia.cpp:
2387         (WebCore::RenderMedia::layout):
2388         * rendering/RenderObject.cpp:
2389         (WebCore::RenderObject::locateFlowThreadContainingBlock):
2390         (WebCore::RenderObject::containerForRepaint):
2391         (WebCore::RenderObject::willBeRemovedFromTree):
2392         (WebCore::RenderObject::removeFromRenderFlowThread):
2393         (WebCore::RenderObject::removeFromRenderFlowThreadRecursive):
2394         * rendering/RenderObject.h:
2395         (RenderObject):
2396         (WebCore::RenderObject::flowThreadContainingBlock):
2397         * rendering/RenderRegion.cpp:
2398         (WebCore::RenderRegion::setObjectStyleInRegion):
2399         * rendering/RenderView.cpp:
2400         (WebCore::RenderView::addChild):
2401         (WebCore::RenderView::initializeLayoutState):
2402         (WebCore::RenderView::setSelection):
2403         * rendering/RenderView.h:
2404         (WebCore::RenderView::pushLayoutState):
2405         * rendering/RootInlineBox.cpp:
2406         (WebCore::RootInlineBox::containingRegion):
2407         (WebCore::RootInlineBox::setContainingRegion):
2408
2409 2013-02-28  Sam Weinig  <sam@webkit.org>
2410
2411         Add SPI for marking a WebView as doing things on behalf of another process
2412         https://bugs.webkit.org/show_bug.cgi?id=111125
2413
2414         Reviewed by Alexey Proskuryakov.
2415
2416         * platform/network/NetworkingContext.h:
2417         (NetworkingContext):
2418         * platform/network/cf/ResourceHandleCFNet.cpp:
2419         (WebCore::ResourceHandle::createCFURLConnection):
2420         * platform/network/mac/ResourceHandleMac.mm:
2421         (WebCore::ResourceHandle::createNSURLConnection):
2422         Set the sourceApplicationAuditData on the URL connection if available.
2423
2424 2013-03-01  Brent Fulgham  <bfulgham@webkit.org>
2425
2426         [Windows] Unreviewed VS2010 build fix.
2427
2428         * WebCore.vcxproj/WebCore.vcxproj: Add missing TimelineTraceEventProcessor
2429           files to the project.
2430         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
2431
2432 2013-03-01  Bear Travis  <betravis@adobe.com>
2433
2434         [css exclusions] setting shape-inside on a parent does not relayout child blocks' inline content
2435         https://bugs.webkit.org/show_bug.cgi?id=108128
2436
2437         Reviewed by David Hyatt.
2438
2439         Ensure that blocks lay out when their parent's shape-inside changes.
2440         ExclusionShapeInsideInfo now stores an additional flag indicating whether
2441         the shape has changed and its block's children require layout. Each block
2442         can look up the flag via LayoutState to determine whether it needs to lay
2443         out its children.
2444
2445         Test: fast/exclusions/shape-inside/shape-inside-dynamic-nested.html
2446
2447         * rendering/ExclusionShapeInfo.h:
2448         (WebCore::ExclusionShapeInfo::shapeSizeDirty): Add a method to determine
2449         if the shape has changed.
2450         (ExclusionShapeInfo):
2451         * rendering/ExclusionShapeInsideInfo.h:
2452         (WebCore::ExclusionShapeInsideInfo::setNeedsLayout): Set the flag indicating
2453         layout is necessary.
2454         (WebCore::ExclusionShapeInsideInfo::needsLayout): Retrieve the layout flag.
2455         (ExclusionShapeInsideInfo):
2456         (WebCore::ExclusionShapeInsideInfo::ExclusionShapeInsideInfo): Initialize
2457         the layout flag.
2458         * rendering/RenderBlock.cpp:
2459         (WebCore::exclusionInfoRequiresRelayout): Return true if the shape info should
2460         cause a relayout. Also update the needsLayout flag on the ExclusionShapeInsideInfo.
2461         (WebCore):
2462         (WebCore::RenderBlock::updateRegionsAndExclusionsLogicalSize): Return a boolean
2463         indicating whether regions or exclusions updates should cause a relayout.
2464         (WebCore::RenderBlock::layoutBlock): Relayout children if the shape inside has
2465         changed.
2466         * rendering/RenderBlock.h:
2467         (RenderBlock):
2468         * rendering/RenderBlockLineLayout.cpp:
2469         (WebCore::RenderBlock::layoutExclusionShapeInsideInfo): Changing to be a
2470         class method.
2471         (WebCore::LineWidth::LineWidth): Changing to use class method.
2472         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine): Ditto.
2473         (WebCore::constructBidiRunsForLine): Ditto.
2474         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): Ditto.
2475         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Ditto.
2476
2477 2013-03-01  Uday Kiran  <udaykiran@motorola.com>
2478
2479         getComputedStyle not implemented for -webkit-column-rule shorthand
2480         https://bugs.webkit.org/show_bug.cgi?id=111203
2481
2482         Reviewed by Alexis Menard.
2483
2484         Implement getComputedStyle for -webkit-column-rule property.
2485
2486         Test: fast/css/getComputedStyle/getComputedStyle-column-rule.html
2487
2488         * css/CSSComputedStyleDeclaration.cpp:
2489         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2490
2491 2013-02-28  David Hyatt  <hyatt@apple.com>
2492
2493         REGRESSION(r144318) 1-7% perf. regression on SVG/SvgHitTesting
2494         https://bugs.webkit.org/show_bug.cgi?id=111117
2495
2496         Make sure the allocated vector has a capacity of 1, since that is
2497         far and away the most common case.
2498
2499         Reviewed by Andreas Kling.
2500
2501         * rendering/RenderFlowThread.h:
2502         (WebCore):
2503         * rendering/RenderLayer.h:
2504         (WebCore):
2505         * rendering/RenderMultiColumnSet.cpp:
2506         (WebCore::RenderMultiColumnSet::collectLayerFragments):
2507         * rendering/RenderMultiColumnSet.h:
2508         * rendering/RenderRegion.h:
2509         (WebCore):
2510         (WebCore::RenderRegion::collectLayerFragments):
2511
2512 2013-03-01  Enrica Casucci  <enrica@apple.com>
2513
2514         Crash at WebCore::SharedBuffer::hasPlatformData writing an image to the pasteboard.
2515         https://bugs.webkit.org/show_bug.cgi?id=111211.
2516         <rdar://problem/8772758>
2517
2518         Reviewed by Ryosuke Niwa.
2519
2520         This is a speculative fix since we don't have a solid repro case.
2521         Adding null check every time we build a SharedBuffer from an NSData
2522         we have obtained manipulating data from the pasteboard.
2523
2524         * platform/mac/PasteboardMac.mm:
2525         (WebCore::writeFileWrapperAsRTFDAttachment):
2526         (WebCore::Pasteboard::writeImage):
2527
2528 2013-03-01  Enrica Casucci  <enrica@apple.com>
2529
2530         Crash at WebCore::SharedBuffer::hasPlatformData during paste.
2531         https://bugs.webkit.org/show_bug.cgi?id=111207.
2532         <rdar://problem/13024528>
2533
2534         Reviewed by Ryosuke Niwa.
2535
2536         This is a speculative fix since we don't have a solid repro case.
2537         Adding null check every time we get a SharedBuffer from the pasteboard.
2538
2539         * platform/mac/PasteboardMac.mm:
2540         (WebCore::Pasteboard::plainText):
2541         (WebCore::documentFragmentWithRTF):
2542
2543 2013-03-01  Alexey Proskuryakov  <ap@apple.com>
2544
2545         Build fix for builds with BLOB disabled. This fixes it for me on Mac at least.
2546
2547         * platform/network/BlobRegistryImpl.cpp:
2548
2549 2013-03-01  peavo@outlook.com  <peavo@outlook.com>
2550
2551         [Curl] Session cookies should not be persistent.
2552         https://bugs.webkit.org/show_bug.cgi?id=111060
2553
2554         Reviewed by Brent Fulgham.
2555
2556         Curl saves both persistent cookies, and session cookies to the cookie file.
2557         The session cookies should be deleted before starting a new session.
2558
2559         * platform/network/curl/ResourceHandleManager.cpp:
2560         (WebCore::ResourceHandleManager::ResourceHandleManager): Call method to initialize cookie session.
2561         (WebCore::ResourceHandleManager::initCookieSession): Added method to initialize cookie session.
2562         * platform/network/curl/ResourceHandleManager.h: Added method to initialize cookie session.
2563
2564 2013-03-01  Vsevolod Vlasov  <vsevik@chromium.org>
2565
2566         Web Inspector: Navigator should show tree element for each folder in the source path.
2567         https://bugs.webkit.org/show_bug.cgi?id=108943
2568
2569         Reviewed by Pavel Feldman.
2570
2571         NavigatorView now renders tree element for each folder in uiSourceCode uri.
2572         Merging several folders into one tree elememnt when folder has only one folder as a child is supported.
2573         ScriptsNavigator has horizontal scroll now.
2574         Projects are shown in ScriptsNavigator by their displayName. This allows us to show several root file system folders
2575         with the same name in the navigator (e.g. 'Source/WebCore/inspector' and 'LayoutTests/inspector').
2576
2577         Test: inspector/debugger/navigator-view.html: Renamed from scripts-file-selector.html
2578
2579         * English.lproj/localizedStrings.js:
2580         * inspector/front-end/NavigatorView.js:
2581         (WebInspector.NavigatorView):
2582         (WebInspector.NavigatorView.iconClassForType):
2583         (WebInspector.NavigatorView.prototype.addUISourceCode):
2584         (WebInspector.NavigatorView.prototype._getProjectNode):
2585         (WebInspector.NavigatorView.prototype._createProjectNode):
2586         (WebInspector.NavigatorView.prototype._getOrCreateProjectNode):
2587         (WebInspector.NavigatorView.prototype._getFolderNode):
2588         (WebInspector.NavigatorView.prototype._createFolderNode):
2589         (WebInspector.NavigatorView.prototype._getOrCreateFolderNode):
2590         (WebInspector.NavigatorView.prototype._getUISourceCodeParentNode):
2591         (WebInspector.NavigatorView.prototype._getOrCreateUISourceCodeParentNode):
2592         (WebInspector.NavigatorView.prototype.revealUISourceCode):
2593         (WebInspector.NavigatorView.prototype.removeUISourceCode):
2594         (WebInspector.NavigatorView.prototype.rename):
2595         (WebInspector.NavigatorView.prototype.reset):
2596         (.typeWeight):
2597         (WebInspector.NavigatorTreeOutline._treeElementsCompare):
2598         (WebInspector.BaseNavigatorTreeElement):
2599         (WebInspector.BaseNavigatorTreeElement.prototype.type):
2600         (WebInspector.NavigatorFolderTreeElement):
2601         (WebInspector.NavigatorFolderTreeElement.prototype.onpopulate):
2602         (WebInspector.NavigatorFolderTreeElement.prototype.onattach):
2603         (WebInspector.NavigatorSourceTreeElement):
2604         (WebInspector.NavigatorTreeNode):
2605         (WebInspector.NavigatorTreeNode.prototype.treeElement):
2606         (WebInspector.NavigatorTreeNode.prototype.dispose):
2607         (WebInspector.NavigatorTreeNode.prototype.isRoot):
2608         (WebInspector.NavigatorTreeNode.prototype.hasChildren):
2609         (WebInspector.NavigatorTreeNode.prototype.populate):
2610         (WebInspector.NavigatorTreeNode.prototype.wasPopulated):
2611         (WebInspector.NavigatorTreeNode.prototype.didAddChild):
2612         (WebInspector.NavigatorTreeNode.prototype.willRemoveChild):
2613         (WebInspector.NavigatorTreeNode.prototype.isPopulated):
2614         (WebInspector.NavigatorTreeNode.prototype.isEmpty):
2615         (WebInspector.NavigatorTreeNode.prototype.child):
2616         (WebInspector.NavigatorTreeNode.prototype.children):
2617         (WebInspector.NavigatorTreeNode.prototype.appendChild):
2618         (WebInspector.NavigatorTreeNode.prototype.removeChild):
2619         (WebInspector.NavigatorTreeNode.prototype.reset):
2620         (WebInspector.NavigatorRootTreeNode):
2621         (WebInspector.NavigatorRootTreeNode.prototype.isRoot):
2622         (WebInspector.NavigatorRootTreeNode.prototype.treeElement):
2623         (WebInspector.NavigatorRootTreeNode.prototype.wasPopulated):
2624         (WebInspector.NavigatorRootTreeNode.prototype.didAddChild):
2625         (WebInspector.NavigatorRootTreeNode.prototype.willRemoveChild):
2626         (WebInspector.NavigatorUISourceCodeTreeNode):
2627         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.treeElement):
2628         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.updateTitle):
2629         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.hasChildren):
2630         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.dispose):
2631         (WebInspector.NavigatorUISourceCodeTreeNode.prototype._titleChanged):
2632         (WebInspector.NavigatorUISourceCodeTreeNode.prototype._workingCopyChanged):
2633         (WebInspector.NavigatorUISourceCodeTreeNode.prototype._workingCopyCommitted):
2634         (WebInspector.NavigatorUISourceCodeTreeNode.prototype._formattedChanged):
2635         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.reveal):
2636         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.rename.commitHandler):
2637         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.rename.cancelHandler):
2638         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.rename.afterEditing):
2639         (WebInspector.NavigatorUISourceCodeTreeNode.prototype.rename):
2640         (WebInspector.NavigatorFolderTreeNode):
2641         (WebInspector.NavigatorFolderTreeNode.prototype.treeElement):
2642         (WebInspector.NavigatorFolderTreeNode.prototype._createTreeElement):
2643         (WebInspector.NavigatorFolderTreeNode.prototype.wasPopulated):
2644         (WebInspector.NavigatorFolderTreeNode.prototype._addChildrenRecursive):
2645         (WebInspector.NavigatorFolderTreeNode.prototype._shouldMerge):
2646         (WebInspector.NavigatorFolderTreeNode.prototype.didAddChild):
2647         (WebInspector.NavigatorFolderTreeNode.prototype.willRemoveChild):
2648         * inspector/front-end/ScriptsNavigator.js:
2649         * inspector/front-end/SimpleWorkspaceProvider.js:
2650         (WebInspector.SimpleProjectDelegate.prototype.displayName):
2651         * inspector/front-end/navigatorView.css:
2652         (.navigator > ol):
2653         (.navigator .base-navigator-tree-element-title):
2654         (.navigator-tabbed-pane .navigator-container):
2655
2656 2013-03-01  Arvid Nilsson  <anilsson@rim.com>
2657
2658         [BlackBerry] Upstream BlackBerry::Platform::Graphics::GraphicsContext integration related changes in platform/graphics/blackberry
2659         https://bugs.webkit.org/show_bug.cgi?id=111072
2660
2661         Reviewed by Rob Buis.
2662
2663         BlackBerry PR 293208
2664
2665         This patch contains contributions from many members of the BlackBerry
2666         WebKit team:
2667
2668         Rob Buis
2669         Robin Cao
2670         Michael Carmody
2671         Max Feil
2672         Eli Fidler
2673         Antonio Gomes
2674         Jacky Jiang
2675         Mike Lattanzio
2676         Yong Li
2677         Andrew Lo
2678         Maxim Mogilnitsky
2679         Joshua Netterfield
2680         Arvid Nilsson
2681         Jakob Petsovits
2682         Konrad Piascik
2683         Jeff Rogers
2684         Artem Simonov
2685         Filip Spacek
2686         George Staikos
2687         Cosmin Truta
2688
2689         Covered by existing tests.
2690
2691         * platform/graphics/blackberry/CanvasLayerWebKitThread.cpp:
2692         (WebCore::CanvasLayerWebKitThread::deleteTextures):
2693         (CanvasLayerCompositingThreadClient):
2694         (WebCore::CanvasLayerCompositingThreadClient::layerCompositingThreadDestroyed):
2695         (WebCore::CanvasLayerCompositingThreadClient::layerVisibilityChanged):
2696         (WebCore::CanvasLayerCompositingThreadClient::uploadTexturesIfNeeded):
2697         (WebCore::CanvasLayerCompositingThreadClient::clearBuffer):
2698         (WebCore):
2699         (WebCore::CanvasLayerCompositingThreadClient::CanvasLayerCompositingThreadClient):
2700         (WebCore::CanvasLayerCompositingThreadClient::drawTextures):
2701         (WebCore::CanvasLayerCompositingThreadClient::deleteTextures):
2702         (WebCore::CanvasLayerCompositingThreadClient::commitPendingTextureUploads):
2703         (WebCore::CanvasLayerWebKitThread::CanvasLayerWebKitThread):
2704         (WebCore::CanvasLayerWebKitThread::~CanvasLayerWebKitThread):
2705         (WebCore::CanvasLayerWebKitThread::clearBuffer):
2706         * platform/graphics/blackberry/CanvasLayerWebKitThread.h:
2707         (WebCore):
2708         (WebCore::CanvasLayerWebKitThread::create):
2709         (CanvasLayerWebKitThread):
2710         * platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp:
2711         (WebCore::DisplayRefreshMonitor::displayLinkFired):
2712         * platform/graphics/blackberry/DrawingBufferBlackBerry.cpp:
2713         (WebCore::DrawingBuffer::DrawingBuffer):
2714         (WebCore):
2715         (WebCore::DrawingBuffer::publishToPlatformLayer):
2716         (WebCore::DrawingBuffer::platformLayer):
2717         * platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.cpp:
2718         (WebCore::EGLImageLayerCompositingThreadClient::~EGLImageLayerCompositingThreadClient):
2719         (WebCore::EGLImageLayerCompositingThreadClient::uploadTexturesIfNeeded):
2720         (WebCore::EGLImageLayerCompositingThreadClient::drawTextures):
2721         (WebCore::EGLImageLayerCompositingThreadClient::deleteTextures):
2722         (WebCore::EGLImageLayerCompositingThreadClient::bindContentsTexture):
2723         (WebCore::EGLImageLayerCompositingThreadClient::setTextureAccessor):
2724         * platform/graphics/blackberry/EGLImageLayerCompositingThreadClient.h:
2725         (Graphics):
2726         (EGLImageLayerCompositingThreadClient):
2727         (WebCore::EGLImageLayerCompositingThreadClient::EGLImageLayerCompositingThreadClient):
2728         * platform/graphics/blackberry/EGLImageLayerWebKitThread.cpp:
2729         (WebCore::EGLImageLayerWebKitThread::EGLImageLayerWebKitThread):
2730         (WebCore::EGLImageLayerWebKitThread::~EGLImageLayerWebKitThread):
2731         (WebCore::EGLImageLayerWebKitThread::updateFrontBuffer):
2732         (WebCore::EGLImageLayerWebKitThread::deleteFrontBuffer):
2733         (WebCore::EGLImageLayerWebKitThread::commitPendingTextureUploads):
2734         (WebCore::EGLImageLayerWebKitThread::createTextureIfNeeded):
2735         (WebCore::EGLImageLayerWebKitThread::blitToFrontBuffer):
2736         * platform/graphics/blackberry/EGLImageLayerWebKitThread.h:
2737         (Graphics):
2738         (EGLImageLayerWebKitThread):
2739         * platform/graphics/blackberry/FloatRectBlackBerry.cpp:
2740         (WebCore::FloatRect::normalized):
2741         (WebCore):
2742         * platform/graphics/blackberry/FontCacheBlackberry.cpp: Removed.
2743         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
2744         (WebCore::GraphicsContext3D::GraphicsContext3D):
2745         (WebCore::GraphicsContext3D::paintToCanvas):
2746         (WebCore::GraphicsContext3D::getImageData):
2747         (WebCore):
2748         * platform/graphics/blackberry/GraphicsLayerBlackBerry.cpp:
2749         (WebCore::GraphicsLayerBlackBerry::GraphicsLayerBlackBerry):
2750         (WebCore::GraphicsLayerBlackBerry::setBackgroundColor):
2751         (WebCore::GraphicsLayerBlackBerry::clearBackgroundColor):
2752         (WebCore):
2753         (WebCore::GraphicsLayerBlackBerry::setContentsNeedsDisplay):
2754         (WebCore::GraphicsLayerBlackBerry::setNeedsDisplay):
2755         (WebCore::GraphicsLayerBlackBerry::setNeedsDisplayInRect):
2756         (WebCore::GraphicsLayerBlackBerry::updateLayerBackgroundColor):
2757         (WebCore::GraphicsLayerBlackBerry::setupContentsLayer):
2758         * platform/graphics/blackberry/GraphicsLayerBlackBerry.h:
2759         (GraphicsLayerBlackBerry):
2760         (WebCore::GraphicsLayerBlackBerry::notifySyncRequired):
2761         * platform/graphics/blackberry/ImageBlackBerry.cpp:
2762         (WebCore::ImageFrame::asNewNativeImage):
2763         (WebCore):
2764         (WebCore::FrameData::clear):
2765         (WebCore::BitmapImage::BitmapImage):
2766         (WebCore::BitmapImage::checkForSolidColor):
2767         (WebCore::BitmapImage::invalidatePlatformData):
2768         (WebCore::BitmapImage::draw):
2769         (WebCore::Image::drawPattern):
2770         * platform/graphics/blackberry/InstrumentedPlatformCanvas.h: Removed.
2771         * platform/graphics/blackberry/LayerCompositingThread.cpp:
2772         (WebCore::LayerCompositingThread::drawTextures):
2773         (WebCore::LayerCompositingThread::drawSurface):
2774         (WebCore::LayerCompositingThread::contentsTexture):
2775         (WebCore::LayerCompositingThread::commitPendingTextureUploads):
2776         (WebCore):
2777         * platform/graphics/blackberry/LayerCompositingThread.h:
2778         (Graphics):
2779         (LayerCompositingThread):
2780         * platform/graphics/blackberry/LayerCompositingThreadClient.h:
2781         (Graphics):
2782         (WebCore):
2783         (LayerCompositingThreadClient):
2784         (WebCore::LayerCompositingThreadClient::contentsTexture):
2785         (WebCore::LayerCompositingThreadClient::commitPendingTextureUploads):
2786         * platform/graphics/blackberry/LayerData.h:
2787         (WebCore::LayerData::LayerData):
2788         (WebCore::LayerData::contentsResolutionIndependent):
2789         (LayerData):
2790         (WebCore::LayerData::layerProgram):
2791         (WebCore::LayerData::isContainerForFixedPositionLayers):
2792         (WebCore::LayerData::isFixedToTop):
2793         (WebCore::LayerData::isFixedToLeft):
2794         (WebCore::LayerData::frameVisibleRect):
2795         (WebCore::LayerData::frameContentsSize):
2796         (WebCore::LayerData::contentsScale):
2797         * platform/graphics/blackberry/LayerFilterRenderer.cpp:
2798         (WebCore::LayerFilterRendererAction::LayerFilterRendererAction):
2799         (WebCore::LayerFilterRenderer::initializeSharedGLObjects):
2800         (WebCore::LayerFilterRenderer::ping):
2801         (WebCore::LayerFilterRenderer::pong):
2802         (WebCore::LayerFilterRenderer::pushSnapshot):
2803         (WebCore::LayerFilterRenderer::popSnapshot):
2804         (WebCore::LayerFilterRenderer::applyActions):
2805         * platform/graphics/blackberry/LayerRenderer.cpp:
2806         (WebCore):
2807         (WebCore::LayerRenderer::LayerRenderer):
2808         (WebCore::LayerRenderer::~LayerRenderer):
2809         (WebCore::LayerRenderer::setViewport):
2810         (WebCore::LayerRenderer::compositeLayers):
2811         (WebCore::LayerRenderer::compositeBuffer):
2812         (WebCore::LayerRenderer::drawColor):
2813         (WebCore::LayerRenderer::useSurface):
2814         (WebCore::LayerRenderer::drawLayersOnSurfaces):
2815         (WebCore::glRound):
2816         (WebCore::LayerRenderer::toOpenGLWindowCoordinates):
2817         (WebCore::LayerRenderer::drawDebugBorder):
2818         (WebCore::LayerRenderer::drawHolePunchRect):
2819         (WebCore::LayerRenderer::updateLayersRecursive):
2820         (WebCore::LayerRenderer::compositeLayersRecursive):
2821         (WebCore::LayerRenderer::createProgram):
2822         (WebCore::LayerRenderer::useProgram):
2823         (WebCore::LayerRenderer::useLayerProgram):
2824         * platform/graphics/blackberry/LayerRenderer.h:
2825         (LayerRenderer):
2826         * platform/graphics/blackberry/LayerRendererSurface.cpp:
2827         (WebCore::LayerRendererSurface::ensureTexture):
2828         * platform/graphics/blackberry/LayerTile.cpp:
2829         (WebCore::LayerTile::LayerTile):
2830         (WebCore::LayerTile::setContents):
2831         (WebCore::LayerTile::updateContents):
2832         * platform/graphics/blackberry/LayerTile.h:
2833         (LayerTile):
2834         (WebCore::LayerTile::renderState):
2835         (WebCore::LayerTile::needsRender):
2836         (WebCore::LayerTile::setNeedsRender):
2837         (WebCore::LayerTile::setRenderPending):
2838         (WebCore::LayerTile::setRenderDone):
2839         * platform/graphics/blackberry/LayerTileIndex.h:
2840         * platform/graphics/blackberry/LayerTiler.cpp:
2841         (WebCore):
2842         (WebCore::defaultTileSize):
2843         (WebCore::LayerTiler::LayerTiler):
2844         (WebCore::LayerTiler::updateTextureContentsIfNeeded):
2845         (WebCore::LayerTiler::createBuffer):
2846         (WebCore::LayerTiler::willCommit):
2847         (WebCore::LayerTiler::commitPendingTextureUploads):
2848         (WebCore::LayerTiler::layerVisibilityChanged):
2849         (WebCore::LayerTiler::uploadTexturesIfNeeded):
2850         (WebCore::LayerTiler::processTextureJob):
2851         (WebCore::LayerTiler::addTileJob):
2852         (WebCore::LayerTiler::performTileJob):
2853         (WebCore::LayerTiler::drawTile):
2854         (WebCore::LayerTiler::drawTextures):
2855         (WebCore::LayerTiler::pruneTextures):
2856         (WebCore::LayerTiler::updateTileSize):
2857         (WebCore::LayerTiler::setNeedsBacking):
2858         (WebCore::LayerTiler::contentsTexture):
2859         * platform/graphics/blackberry/LayerTiler.h:
2860         (WebCore::LayerTiler::tileSize):
2861         (LayerTiler):
2862         (WebCore::LayerTiler::TextureJob::TextureJob):
2863         (WebCore::LayerTiler::TextureJob::setContents):
2864         (WebCore::LayerTiler::TextureJob::updateContents):
2865         (TextureJob):
2866         (WebCore::LayerTiler::needsRender):
2867         (WebCore::LayerTiler::removeUpdateContentsJobs):
2868         * platform/graphics/blackberry/LayerWebKitThread.cpp:
2869         (WebCore::LayerWebKitThread::LayerWebKitThread):
2870         (WebCore::LayerWebKitThread::~LayerWebKitThread):
2871         (WebCore::LayerWebKitThread::paintContents):
2872         (WebCore::LayerWebKitThread::commitPendingTextureUploads):
2873         (WebCore::LayerWebKitThread::setContents):
2874         (WebCore::LayerWebKitThread::setNeedsCommit):
2875         (WebCore::LayerWebKitThread::notifyAnimationsStarted):
2876         (WebCore::LayerWebKitThread::commitOnWebKitThread):
2877         (WebCore::LayerWebKitThread::startAnimations):
2878         (WebCore::LayerWebKitThread::updateTextureContents):
2879         (WebCore::LayerWebKitThread::commitOnCompositingThread):
2880         (WebCore::LayerWebKitThread::addSublayer):
2881         (WebCore):
2882         (WebCore::LayerWebKitThread::addOverlay):
2883         (WebCore::LayerWebKitThread::insert):
2884         (WebCore::LayerWebKitThread::removeFromSuperlayer):
2885         (WebCore::LayerWebKitThread::removeSublayerOrOverlay):
2886         (WebCore::LayerWebKitThread::remove):
2887         (WebCore::LayerWebKitThread::replaceSublayer):
2888         (WebCore::LayerWebKitThread::filtersCanBeComposited):
2889         (WebCore::LayerWebKitThread::removeAll):
2890         (WebCore::LayerWebKitThread::setSublayers):
2891         (WebCore::LayerWebKitThread::updateLayerHierarchy):
2892         (WebCore::LayerWebKitThread::setIsMask):
2893         (WebCore::LayerWebKitThread::releaseLayerResources):
2894         * platform/graphics/blackberry/LayerWebKitThread.h:
2895         (WebCore::LayerWebKitThread::insertSublayer):
2896         (LayerWebKitThread):
2897         (WebCore::LayerWebKitThread::isMask):
2898         (WebCore::LayerWebKitThread::removeAllSublayers):
2899         (WebCore::LayerWebKitThread::setFixedPosition):
2900         (WebCore::LayerWebKitThread::setIsContainerForFixedPositionLayers):
2901         (WebCore::LayerWebKitThread::setFixedToTop):
2902         (WebCore::LayerWebKitThread::setFixedToLeft):
2903         (WebCore::LayerWebKitThread::setFrameVisibleRect):
2904         (WebCore::LayerWebKitThread::setFrameContentsSize):
2905         (WebCore::LayerWebKitThread::setLayerProgram):
2906         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
2907         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
2908         (WebCore::MediaPlayerPrivate::play):
2909         (WebCore::MediaPlayerPrivate::supportsFullscreen):
2910         (WebCore::MediaPlayerPrivate::paintCurrentFrameInContext):
2911         (WebCore::MediaPlayerPrivate::prepareForRendering):
2912         (WebCore):
2913         (WebCore::MediaPlayerPrivate::resizeSourceDimensions):
2914         (WebCore::MediaPlayerPrivate::percentLoaded):
2915         (WebCore::MediaPlayerPrivate::updateStates):
2916         (WebCore::MediaPlayerPrivate::waitMetadataTimerFired):
2917         (WebCore::MediaPlayerPrivate::onAuthenticationNeeded):
2918         (WebCore::MediaPlayerPrivate::notifyChallengeResult):
2919         (WebCore::MediaPlayerPrivate::isProcessingUserGesture):
2920         (WebCore::loadBufferingImageData):
2921         (WebCore::MediaPlayerPrivate::setBuffering):
2922         (WebCore::MediaPlayerPrivate::drawBufferingAnimation):
2923         (WebCore::MediaPlayerPrivate::onConditionallyEnterFullscreen):
2924         (WebCore::MediaPlayerPrivate::onExitFullscreen):
2925         (WebCore::MediaPlayerPrivate::onCreateHolePunchRect):
2926         (WebCore::MediaPlayerPrivate::onDestroyHolePunchRect):
2927         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
2928         (BlackBerry):
2929         (Platform):
2930         (Graphics):
2931         (MediaPlayerPrivate):
2932         * platform/graphics/blackberry/PluginLayerWebKitThread.cpp:
2933         (WebCore::PluginLayerWebKitThread::setPluginView):
2934         * platform/graphics/blackberry/Texture.cpp:
2935         (WebCore::Texture::Texture):
2936         (WebCore::Texture::updateContents):
2937         (WebCore::Texture::setContentsToColor):
2938         (WebCore::Texture::protect):
2939         * platform/graphics/blackberry/Texture.h:
2940         (Texture):
2941         (WebCore::Texture::textureId):
2942         (WebCore::Texture::isDirty):
2943         (WebCore::Texture::hasTexture):
2944         (WebCore::Texture::sizeInBytes):
2945         (WebCore::Texture::setTextureId):
2946         (WebCore::Texture::setSize):
2947         * platform/graphics/blackberry/TextureCacheCompositingThread.cpp:
2948         (WebCore::TextureCacheCompositingThread::allocateTextureId):
2949         (WebCore::freeTextureId):
2950         (WebCore::TextureCacheCompositingThread::collectGarbage):
2951         (WebCore::TextureCacheCompositingThread::textureSizeInBytesChanged):
2952         (WebCore):
2953         (WebCore::TextureCacheCompositingThread::textureDestroyed):
2954         (WebCore::TextureCacheCompositingThread::install):
2955         (WebCore::TextureCacheCompositingThread::resizeTexture):
2956         (WebCore::TextureCacheCompositingThread::evict):
2957         (WebCore::TextureCacheCompositingThread::prune):
2958         (WebCore::TextureCacheCompositingThread::clear):
2959         (WebCore::TextureCacheCompositingThread::textureForTiledContents):
2960         (WebCore::TextureCacheCompositingThread::updateContents):
2961         * platform/graphics/blackberry/TextureCacheCompositingThread.h:
2962         (TextureCacheCompositingThread):
2963         (WebCore::TextureCacheCompositingThread::ZombieTexture::ZombieTexture):
2964         (ZombieTexture):
2965         * platform/graphics/blackberry/skia/ImageBufferDataSkia.h: Removed.
2966         * platform/graphics/blackberry/skia/PlatformSupport.cpp: Removed.
2967         * platform/graphics/blackberry/skia/PlatformSupport.h: Removed.
2968
2969 2013-03-01  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2970
2971         [Qt] Fix the Mac build with the current qtbase/dev branch
2972         https://bugs.webkit.org/show_bug.cgi?id=111190
2973
2974         Reviewed by Allan Sandfeld Jensen.
2975
2976         QMAKE_MACOSX_DEPLOYMENT_TARGET now influences
2977         __MAC_OS_X_VERSION_MIN_REQUIRED through -mmacosx-version-min after
2978         changes in qtbase to support iOS.
2979
2980         Having only WebCore defining it to 10.5 would create a mismatch of
2981         ENABLE_THREADING_LIBDISPATCH with WTF to cause undefined symbols
2982         while linking both together at the end.
2983
2984         Fix it by removing the statement which isn't needed anymore.
2985         qtbase/mkspecs/common/mac-minimum-version.conf already defines
2986         10.6 as the minimum Mac version.
2987
2988         * Target.pri:
2989
2990 2013-03-01  Vsevolod Vlasov  <vsevik@chromium.org>
2991
2992         Web Inspector: [Regression] Snippets renaming is broken.
2993         https://bugs.webkit.org/show_bug.cgi?id=111181
2994
2995         Reviewed by Alexander Pavlov.
2996
2997         * inspector/front-end/NavigatorView.js:
2998         * inspector/front-end/ScriptSnippetModel.js:
2999         * inspector/front-end/ScriptsPanel.js:
3000         (WebInspector.ScriptsPanel.prototype.set _fileRenamed):
3001         * inspector/front-end/UISourceCode.js:
3002         (WebInspector.UISourceCode.prototype.rename):
3003
3004 2013-03-01  David Hyatt  <hyatt@apple.com>
3005
3006         Fix a misspelled word in RenderObject.h. staticly -> statically.
3007
3008         Reviewed by Dean Jackson.
3009
3010         * rendering/RenderObject.h:
3011         (WebCore::RenderObject::RenderObjectBitfields::RenderObjectBitfields):
3012         (WebCore::RenderObject::RenderObjectBitfields::isPositioned):
3013
3014 2013-03-01  David Hyatt  <hyatt@apple.com>
3015
3016         [New Multicolumn] Change flow thread containment to be a state.
3017         https://bugs.webkit.org/show_bug.cgi?id=111110
3018
3019         Change m_inRenderFlowThread from a single bit to an actual state. This
3020         will let us track whether we're inside a multicolumn (in-flow) flow thread
3021         or a named (out-of-flow) flow thread. In the former case, we're going to have
3022         to do more work to maintain this state, but for now I've kept all the logic
3023         the same just for the initial landing.
3024
3025         Reviewed by Andreas Kling.
3026
3027         * dom/NodeRenderingContext.cpp:
3028         (WebCore::NodeRenderingContext::createRendererForElementIfNeeded):
3029         (WebCore::NodeRenderingContext::createRendererForTextIfNeeded):
3030         * rendering/RenderBlock.cpp:
3031         (WebCore::RenderBlock::clone):
3032         * rendering/RenderFlowThread.cpp:
3033         (WebCore::RenderFlowThread::RenderFlowThread):
3034         * rendering/RenderInline.cpp:
3035         (WebCore::RenderInline::clone):
3036         * rendering/RenderMultiColumnFlowThread.cpp:
3037         (WebCore::RenderMultiColumnFlowThread::RenderMultiColumnFlowThread):
3038         * rendering/RenderObject.cpp:
3039         (WebCore::RenderObject::setFlowThreadStateIncludingDescendants):
3040         (WebCore::RenderObject::removeFromRenderFlowThreadRecursive):
3041         * rendering/RenderObject.h:
3042         (WebCore::RenderObject::setParent):
3043         (RenderObject):
3044         (WebCore::RenderObject::inRenderFlowThread):
3045         (WebCore::RenderObject::flowThreadState):
3046         (WebCore::RenderObject::setFlowThreadState):
3047         (WebCore::RenderObject::RenderObjectBitfields::RenderObjectBitfields):
3048         (RenderObjectBitfields):
3049         (WebCore::RenderObject::RenderObjectBitfields::flowThreadState):
3050         (WebCore::RenderObject::RenderObjectBitfields::setFlowThreadState):
3051         * rendering/RenderView.cpp:
3052         (WebCore::RenderView::addChild):
3053         
3054 2013-03-01  Jessie Berlin  <jberlin@apple.com>
3055
3056         Build fix.
3057
3058         Roll out r144431 because it was a build fix for r144422, which was rolled out in r144446.
3059
3060         * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
3061
3062 2013-03-01  David Kilzer  <ddkilzer@apple.com>
3063
3064         BUILD FIX (r144358): Add UNUSED_PARAM() macros to WebCore::Extensions3DOpenGL::drawBuffersEXT()
3065         <http://webkit.org/b/109331>
3066
3067         Fixes the following build failures:
3068
3069             Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp:218:51: error: unused parameter 'n' [-Werror,-Wunused-parameter]
3070             void Extensions3DOpenGL::drawBuffersEXT(GC3Dsizei n, const GC3Denum* bufs)
3071                                                               ^
3072             Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp:218:70: error: unused parameter 'bufs' [-Werror,-Wunused-parameter]
3073             void Extensions3DOpenGL::drawBuffersEXT(GC3Dsizei n, const GC3Denum* bufs)
3074                                                                                  ^
3075             2 errors generated.
3076
3077         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
3078         (WebCore::Extensions3DOpenGL::drawBuffersEXT): Add UNUSED_PARAM()
3079         macros.
3080
3081 2013-03-01  Dan Carney  <dcarney@google.com>
3082
3083         [v8] ScriptValue has dangerous copy semantics
3084         https://bugs.webkit.org/show_bug.cgi?id=110206
3085
3086         Reviewed by Kentaro Hara.
3087
3088         Update ScriptValue to used a SharedPersistent,
3089         making it impossible to return dead references.
3090
3091         No new tests. No change in functionality.
3092
3093         * bindings/v8/ScriptValue.cpp:
3094         (WebCore::ScriptValue::serialize):
3095         (WebCore::ScriptValue::getString):
3096         (WebCore::ScriptValue::toString):
3097         (WebCore::ScriptValue::toInspectorValue):
3098         * bindings/v8/ScriptValue.h:
3099         (WebCore::ScriptValue::ScriptValue):
3100         (WebCore::ScriptValue::operator=):
3101         (WebCore::ScriptValue::operator==):
3102         (WebCore::ScriptValue::isEqual):
3103         (WebCore::ScriptValue::isFunction):
3104         (WebCore::ScriptValue::isNull):
3105         (WebCore::ScriptValue::isUndefined):
3106         (WebCore::ScriptValue::isObject):
3107         (WebCore::ScriptValue::hasNoValue):
3108         (WebCore::ScriptValue::clear):
3109         (ScriptValue):
3110         (WebCore::ScriptValue::v8Value):
3111         (WebCore::ScriptValue::v8ValueRaw):
3112         * bindings/v8/SharedPersistent.h:
3113         * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
3114         (WebCore::InjectedScriptHost::scriptValueAsNode):
3115         * bindings/v8/custom/V8MessageEventCustom.cpp:
3116         (WebCore::V8MessageEvent::dataAttrGetterCustom):
3117
3118 2013-03-01  Julien Chaffraix  <jchaffraix@webkit.org>
3119
3120         Add FeatureObserver for marquee and reflection
3121         https://bugs.webkit.org/show_bug.cgi?id=111118
3122
3123         Reviewed by Simon Fraser.
3124
3125         Refactoring covered by existing tests.
3126
3127         * page/FeatureObserver.h:
3128         * rendering/RenderLayer.cpp:
3129         (WebCore::RenderLayer::styleChanged):
3130         Added some instrumentation for reflection and marquee as they are both prefixed and this would help
3131         to know their popularity on the web. Marquee was split between <marquee> (HTMLMarqueeElement) and 
3132         overflow: -webkit-marquee (CSSOverflowMarquee).
3133
3134 2013-03-01  Alexander Pavlov  <apavlov@chromium.org>
3135
3136         Web Inspector: Introduce opaque SecurityOrigin string identifiers in the frontend
3137         https://bugs.webkit.org/show_bug.cgi?id=111165
3138
3139         Reviewed by Vsevolod Vlasov.
3140
3141         A plain string security origin value has been replaced by WebInspector.SecurityOrigin all over the code,
3142         containing a URL (which holds a stringified security origin) and an identifier (which is now used
3143         as a key in place of the stringified security origin in various maps). To avoid the ResourceTreeModel
3144         code clutter, the security origin tracking code has been extracted into a separate type,
3145         WebInspector.SecurityOriginTracker, which works as a helper on the ResourceTreeModel.
3146
3147         No new tests, as it is a refactoring.
3148
3149         * inspector/front-end/DOMStorage.js:
3150         (WebInspector.DOMStorage.storageId):
3151         (WebInspector.DOMStorage.prototype.id):
3152         (WebInspector.DOMStorage.prototype.getItems):
3153         (WebInspector.DOMStorage.prototype.setItem):
3154         (WebInspector.DOMStorage.prototype.removeItem):
3155         (WebInspector.DOMStorageModel.prototype._securityOriginAdded):
3156         (WebInspector.DOMStorageModel.prototype._securityOriginRemoved):
3157         (WebInspector.DOMStorageModel.prototype._storageKey):
3158         * inspector/front-end/ExtensionAuditCategory.js:
3159         * inspector/front-end/FileSystemModel.js:
3160         (WebInspector.FileSystemModel.prototype._reset):
3161         (WebInspector.FileSystemModel.prototype._securityOriginAdded):
3162         (WebInspector.FileSystemModel.prototype._securityOriginRemoved):
3163         (WebInspector.FileSystemModel.prototype._addOrigin):
3164         (WebInspector.FileSystemModel.prototype._removeOrigin):
3165         (WebInspector.FileSystemModel.prototype._requestFileSystemRoot):
3166         (WebInspector.FileSystemModel.prototype._fileSystemRootReceived):
3167         (WebInspector.FileSystemModel.prototype._removeFileSystem):
3168         (WebInspector.FileSystemModel.FileSystem.prototype.get name):
3169         * inspector/front-end/IndexedDBModel.js:
3170         (WebInspector.IndexedDBModel.prototype._reset):
3171         (WebInspector.IndexedDBModel.prototype.refreshDatabaseNames):
3172         (WebInspector.IndexedDBModel.prototype._securityOriginAdded):
3173         (WebInspector.IndexedDBModel.prototype._securityOriginRemoved):
3174         (WebInspector.IndexedDBModel.prototype._addOrigin):
3175         (WebInspector.IndexedDBModel.prototype._removeOrigin):
3176         (WebInspector.IndexedDBModel.prototype._updateOriginDatabaseNames):
3177         (WebInspector.IndexedDBModel.prototype._loadDatabaseNames):
3178         (WebInspector.IndexedDBModel.prototype._loadDatabase):
3179         (WebInspector.IndexedDBModel.prototype.):
3180         (WebInspector.IndexedDBModel.prototype._requestData):
3181         (WebInspector.IndexedDBModel.DatabaseId.prototype.equals):
3182         * inspector/front-end/IndexedDBViews.js:
3183         (WebInspector.IDBDatabaseView.prototype._refreshDatabase):
3184         * inspector/front-end/ResourceTreeModel.js:
3185         (WebInspector.ResourceTreeModel.prototype._addFrame):
3186         (WebInspector.ResourceTreeModel.prototype.securityOriginForId):
3187         (WebInspector.ResourceTreeModel.prototype.securityOrigins):
3188         (WebInspector.ResourceTreeModel.prototype._handleMainFrameDetached):
3189         (WebInspector.ResourceTreeModel.prototype._frameNavigated):
3190         (WebInspector.ResourceTreeModel.prototype._frameDetached):
3191         (WebInspector.ResourceTreeModel.SecurityOriginTracker):
3192         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._addSecurityOrigin):
3193         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._removeSecurityOrigin):
3194         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._bindSecurityOrigin):
3195         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._unbindSecurityOrigin):
3196         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._detachMainFrame):
3197         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._securityOriginForId):
3198         (WebInspector.ResourceTreeModel.SecurityOriginTracker.prototype._securityOrigins):
3199         (WebInspector.ResourceTreeFrame.prototype._navigate):
3200         (WebInspector.SecurityOrigin.prototype.id):
3201         (WebInspector.SecurityOrigin.prototype.url):
3202         (WebInspector.SecurityOrigin.prototype.uiTitle):
3203         (WebInspector.SecurityOrigin.prototype.toProtocol):
3204         * inspector/front-end/ResourcesPanel.js:
3205         (WebInspector.IDBDatabaseTreeElement):
3206         (WebInspector.IDBDatabaseTreeElement.prototype.get itemURL):
3207         (WebInspector.IDBObjectStoreTreeElement.prototype.get itemURL):
3208         (WebInspector.IDBIndexTreeElement.prototype.get itemURL):
3209         (WebInspector.DOMStorageTreeElement):
3210         (WebInspector.DOMStorageTreeElement.prototype.get itemURL):
3211         (WebInspector.FileSystemTreeElement):
3212
3213 2013-03-01  Eugene Klyuchnikov  <eustas@chromium.org>
3214
3215         Web Inspector: [Timeline] Show "curtains" when mouse is over CPU bar.
3216         https://bugs.webkit.org/show_bug.cgi?id=108930
3217
3218         Reviewed by Pavel Feldman.
3219
3220         This feature will help developers to focus on events
3221         that caused CPU bar.
3222
3223         * inspector/front-end/Popover.js: Added "arrowDirection" parameter.
3224         * inspector/front-end/TimelineGrid.js:
3225         (WebInspector.TimelineGrid): Added "curtains".
3226         * inspector/front-end/TimelinePanel.js:
3227         (WebInspector.TimelinePanel.prototype._mouseMove): Show/hide "curtains"
3228         when mouse is over CPU bar.
3229         * inspector/front-end/timelinePanel.css: Added "curtains" style rules.
3230
3231 2013-03-01  Alexander Pavlov  <apavlov@chromium.org>
3232
3233         Web Inspector: [Styles] Implement navigation to UI locations of property names/values in the source code
3234         Relanding fixed r144449.
3235         https://bugs.webkit.org/show_bug.cgi?id=105285
3236
3237         Reviewed by Vsevolod Vlasov.
3238
3239         Users can now Ctrl/Cmd-click CSS property names/values whose UI locations are found in
3240         an external stylesheet/sass/other file. Inline stylesheets are not navigable,
3241         since their start position is not detectable inside the surrounding HTML as of yet.
3242
3243         No new tests, a UI change.
3244
3245         * inspector/front-end/CSSStyleModel.js:
3246         (WebInspector.CSSRule.prototype.isSourceNavigable): Whether the rule contains reliable source code information.
3247         (WebInspector.CSSProperty.prototype.uiLocation): Returns a UILocation for the property name of value.
3248         * inspector/front-end/StylesSidebarPane.js: Add navigation code.
3249         (WebInspector.StylesSidebarPane.prototype._innerRebuildUpdate):
3250         (WebInspector.StylePropertiesSection):
3251
3252 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
3253
3254         Unreviewed, rolling out r144449.
3255         http://trac.webkit.org/changeset/144449
3256         https://bugs.webkit.org/show_bug.cgi?id=111175
3257
3258         Breaks style-related inspector tests (Requested by apavlov on
3259         #webkit).
3260
3261         * inspector/front-end/CSSStyleModel.js:
3262         (WebInspector.CSSRule.prototype.get isRegular):
3263         (WebInspector.CSSProperty.prototype.setDisabled):
3264         * inspector/front-end/StylesSidebarPane.js:
3265         (WebInspector.StylesSidebarPane.prototype._innerRebuildUpdate):
3266         (WebInspector.StylePropertiesSection):
3267         (.event):
3268         (.isRevert):
3269
3270 2013-03-01  Alexander Pavlov  <apavlov@chromium.org>
3271
3272         Web Inspector: [Styles] Implement navigation to UI locations of property names/values in the source code
3273         https://bugs.webkit.org/show_bug.cgi?id=105285
3274
3275         Reviewed by Vsevolod Vlasov.
3276
3277         Users can now Ctrl/Cmd-click CSS property names/values whose UI locations are found in
3278         an external stylesheet/sass/other file. Inline stylesheets are not navigable,
3279         since their start position is not detectable inside the surrounding HTML as of yet.
3280
3281         No new tests, a UI change.
3282
3283         * inspector/front-end/CSSStyleModel.js:
3284         (WebInspector.CSSRule.prototype.isSourceNavigable): Whether the rule contains reliable source code information.
3285         (WebInspector.CSSProperty.prototype.uiLocation): Returns a UILocation for the property name of value.
3286         * inspector/front-end/StylesSidebarPane.js: Add navigation code.
3287         (WebInspector.StylesSidebarPane.prototype._innerRebuildUpdate):
3288         (WebInspector.StylePropertiesSection):
3289
3290 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
3291
3292         Unreviewed, rolling out r144443.
3293         http://trac.webkit.org/changeset/144443
3294         https://bugs.webkit.org/show_bug.cgi?id=111169
3295
3296         Caused 2 tests to crash by segv on Chromium Mac10.6 (Requested
3297         by toyoshim on #webkit).
3298
3299         * css/mediaControls.css:
3300         (video::-webkit-media-text-track-display):
3301         * rendering/RenderTextTrackCue.cpp:
3302         (WebCore::RenderTextTrackCue::isOutside):
3303         (WebCore::RenderTextTrackCue::repositionCueSnapToLinesSet):
3304
3305 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
3306
3307         Unreviewed, rolling out r144422 and r144424.
3308         http://trac.webkit.org/changeset/144422
3309         http://trac.webkit.org/changeset/144424
3310         https://bugs.webkit.org/show_bug.cgi?id=111167
3311
3312         Caused over 20 tests to fail assertion on Chromium Win port as
3313         ASSERTION FAILED: m_platformRequestUpdated (Requested by
3314         toyoshim on #webkit).
3315
3316         * CMakeLists.txt:
3317         * GNUmakefile.list.am:
3318         * Modules/mediastream/RTCPeerConnection.cpp:
3319         * Modules/notifications/Notification.cpp:
3320         * Target.pri:
3321         * WebCore.exp.in:
3322         * WebCore.gypi:
3323         * WebCore.vcproj/WebCore.vcproj:
3324         * WebCore.vcxproj/WebCore.vcxproj:
3325         * WebCore.vcxproj/WebCore.vcxproj.filters:
3326         * WebCore.xcodeproj/project.pbxproj:
3327         * bindings/ScriptControllerBase.cpp:
3328         * bindings/js/JSNodeCustom.cpp:
3329         * bindings/js/ScriptController.cpp:
3330         * bindings/js/ScriptSourceCode.h:
3331         * bindings/objc/DOM.mm:
3332         * bindings/v8/ScriptController.cpp:
3333         * bindings/v8/V8DOMWindowShell.cpp:
3334         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3335         * css/CSSCrossfadeValue.h:
3336         (WebCore::CSSCrossfadeValue::CSSCrossfadeValue):
3337         (WebCore::CSSCrossfadeValue::CrossfadeSubimageObserverProxy::CrossfadeSubimageObserverProxy):
3338         * css/CSSFontFaceSource.h:
3339         * css/CSSFontSelector.cpp:
3340         * css/WebKitCSSSVGDocumentValue.cpp:
3341         * css/WebKitCSSSVGDocumentValue.h:
3342         (WebCore):
3343         * dom/Clipboard.cpp:
3344         (WebCore::Clipboard::Clipboard):
3345         * dom/ContainerNode.cpp:
3346         * dom/DOMImplementation.cpp:
3347         * dom/PendingScript.h:
3348         * dom/ScriptElement.cpp:
3349         * dom/ScriptElement.h:
3350         * history/CachedFrame.cpp:
3351         * html/DOMURL.cpp:
3352         * html/HTMLAnchorElement.cpp:
3353         * html/HTMLAppletElement.cpp:
3354         * html/HTMLElement.cpp:
3355         * html/HTMLEmbedElement.cpp:
3356         * html/HTMLFrameSetElement.cpp:
3357         * html/HTMLHtmlElement.cpp:
3358         * html/HTMLImageElement.cpp:
3359         * html/HTMLObjectElement.cpp:
3360         * html/HTMLPlugInElement.cpp:
3361         * html/ImageDocument.cpp:
3362         * html/ImageInputType.cpp:
3363         * html/MediaDocument.cpp:
3364         * html/PluginDocument.cpp:
3365         * html/canvas/WebGLRenderingContext.cpp:
3366         (WebCore):
3367         * html/parser/HTMLConstructionSite.cpp:
3368         * html/parser/HTMLParserOptions.cpp:
3369         * html/parser/HTMLScriptRunner.h:
3370         * html/parser/XSSAuditor.cpp:
3371         * html/parser/XSSAuditorDelegate.cpp:
3372         * inspector/InspectorDebuggerAgent.cpp:
3373         * inspector/InspectorFileSystemAgent.cpp:
3374         * inspector/InspectorFrontendHost.cpp:
3375         * inspector/InspectorInstrumentation.h:
3376         (WebCore):
3377         * inspector/InspectorPageAgent.cpp:
3378         * inspector/NetworkResourcesData.cpp:
3379         * inspector/NetworkResourcesData.h:
3380         (WebCore):
3381         * loader/CookieJar.cpp:
3382         * loader/CrossOriginAccessControl.cpp:
3383         * loader/CrossOriginAccessControl.h:
3384         (WebCore):
3385         * loader/CrossOriginPreflightResultCache.h:
3386         * loader/DocumentThreadableLoader.h:
3387         * loader/FrameLoader.cpp:
3388         (WebCore::FrameLoader::FrameLoader):
3389         * loader/FrameLoader.h:
3390         (WebCore):
3391         (WebCore::FrameLoader::policyChecker):
3392         * loader/ImageLoader.cpp:
3393         * loader/ImageLoader.h:
3394         * loader/LinkLoader.h:
3395         * loader/MainResourceLoader.cpp:
3396         * loader/MainResourceLoader.h:
3397         * loader/MixedContentChecker.cpp:
3398         * loader/PingLoader.cpp:
3399         * loader/PolicyChecker.h:
3400         (WebCore):
3401         * loader/ProgressTracker.cpp:
3402         * loader/SubframeLoader.cpp:
3403         * loader/SubresourceLoader.cpp:
3404         * loader/TextTrackLoader.cpp:
3405         * loader/TextTrackLoader.h:
3406         * loader/ThreadableLoader.h:
3407         * loader/appcache/ApplicationCacheGroup.cpp:
3408         * loader/appcache/ApplicationCacheGroup.h:
3409         (WebCore):
3410         * loader/appcache/ApplicationCacheHost.cpp:
3411         * loader/archive/cf/LegacyWebArchive.cpp:
3412         * loader/cache/CachedFont.cpp:
3413         * loader/cache/CachedFont.h:
3414         (CachedFontClient):
3415         (WebCore::CachedFontClient::~CachedFontClient):
3416         (WebCore::CachedFontClient::expectedType):
3417         (WebCore::CachedFontClient::resourceClientType):
3418         (WebCore::CachedFontClient::fontLoaded):
3419         (WebCore):
3420         * loader/cache/CachedFontClient.h: Removed.
3421         * loader/cache/CachedImage.cpp:
3422         * loader/cache/CachedRawResource.cpp:
3423         * loader/cache/CachedRawResource.h:
3424         (WebCore):
3425         (CachedRawResourceClient):
3426         (WebCore::CachedRawResourceClient::~CachedRawResourceClient):
3427         (WebCore::CachedRawResourceClient::expectedType):
3428         (WebCore::CachedRawResourceClient::resourceClientType):
3429         (WebCore::CachedRawResourceClient::dataSent):
3430         (WebCore::CachedRawResourceClient::responseReceived):
3431         (WebCore::CachedRawResourceClient::dataReceived):
3432         (WebCore::CachedRawResourceClient::redirectReceived):
3433         (WebCore::CachedRawResourceClient::dataDownloaded):
3434         * loader/cache/CachedRawResourceClient.h: Removed.
3435         * loader/cache/CachedResource.cpp:
3436         * loader/cache/CachedResourceHandle.cpp:
3437         * loader/cache/CachedResourceHandle.h:
3438         (WebCore::CachedResourceHandleBase::~CachedResourceHandleBase):
3439         (WebCore::CachedResourceHandleBase::CachedResourceHandleBase):
3440         * loader/cache/CachedSVGDocument.h:
3441         (CachedSVGDocumentClient):
3442         (WebCore::CachedSVGDocumentClient::~CachedSVGDocumentClient):
3443         (WebCore::CachedSVGDocumentClient::expectedType):
3444         (WebCore::CachedSVGDocumentClient::resourceClientType):
3445