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