CSS 2.1 failure: margin-collapse-clear-012 fails
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2012-08-24  Robert Hogan  <robert@webkit.org>
2
3         CSS 2.1 failure: margin-collapse-clear-012 fails
4         https://bugs.webkit.org/show_bug.cgi?id=80394
5
6         Reviewed by David Hyatt.
7
8         CSS2.1 states: "If the top and bottom margins of an element with clearance are adjoining, its margins collapse with 
9         the adjoining margins of following siblings but that resulting margin does not collapse with the bottom margin of the parent block."
10         This is a change in the spec since http://trac.webkit.org/changeset/47678, so prevent the margins of collapsed blocks from collapsing
11         with parent margins.
12
13         Also, in the case of self-collapsing blocks adjust the clearance so that it is equal to [height of float to clear] - margin-top of the 
14         self-collapsing block. (See the 'Explanation' section near the end of http://www.w3.org/TR/CSS21/visuren.html#clearance). This allows
15         the correct value of any margins collapsed with subsequent siblings to contribute to the height of the parent. For example if a block
16         with margin-top of 40px has to clear a float of 100px, the clearance is now 60px so set that as the height of the parent. If a subsequent 
17         sibling has a collapsed margin value of 140px (e.g. from a margin-top of 80px and a margin-bottom of 140px) then the height of the parent
18         becomes 200px by adding on that collapsed margin. 
19
20         Tests: css2.1/20110323/margin-collapse-clear-012.htm
21                css2.1/20110323/margin-collapse-clear-013.htm
22                css2.1/20110323/margin-collapse-027.htm
23                fast/css/margin-collapse-013-reduction.html
24                fast/css/margin-collapse-top-margin-clearance.html
25                fast/css/margin-collapse-top-margin-clearance-with-sibling.html
26
27         * rendering/RenderBlock.cpp:
28         (WebCore::RenderBlock::clearFloatsIfNeeded):
29         (WebCore::RenderBlock::handleAfterSideOfBlock): Without this margin-collapse/block-inside-inline/025.html adds in the margin to
30           an anonymous block containing a block child. FF does this, Opera does not. The spec is not crystal-clear but Opera's behaviour
31           seems correct - it's totally unintuitive to think the margins of an anonymous block and its block-flow child should be considered adjoining.
32           Maybe this is a FIXME pending clarification in the spec?
33         * rendering/RenderBlock.h:
34         (WebCore::RenderBlock::MarginInfo::setCanCollapseMarginAfterWithChildren):
35
36 2012-08-30  Rik Cabanier  <cabanier@adobe.com>
37
38         Add support for blendmode to webkit rendering engine
39         https://bugs.webkit.org/show_bug.cgi?id=95258
40
41         Reviewed by Simon Fraser.
42
43         This code adds support for blendmodes to the WebCore engine. The CSS parser already
44         supported this keyword but didn't pass it along. Support for rendering blending will
45         be provided in subsequent patches
46
47         Test: css3/compositing/should-have-compositing-layer.html
48
49         * css/StyleBuilder.cpp:
50         (WebCore::StyleBuilder::StyleBuilder):
51         * css/StyleResolver.cpp:
52         (WebCore::StyleResolver::collectMatchingRulesForList):
53         * rendering/RenderBox.h:
54         * rendering/RenderBoxModelObject.h:
55         (RenderBoxModelObject):
56         (WebCore::RenderBoxModelObject::requiresLayer):
57         * rendering/RenderInline.h:
58         (WebCore::RenderInline::requiresLayer):
59         * rendering/RenderLayer.cpp:
60         (WebCore::RenderLayer::RenderLayer):
61         (WebCore):
62         (WebCore::RenderLayer::updateBlendMode):
63         (WebCore::RenderLayer::ensureBacking):
64         (WebCore::RenderLayer::shouldBeNormalFlowOnly):
65         (WebCore::RenderLayer::styleChanged):
66         * rendering/RenderLayer.h:
67         (RenderLayer):
68         (WebCore::RenderLayer::hasBlendMode):
69         * rendering/RenderLayerCompositor.cpp:
70         (WebCore::RenderLayerCompositor::requiresCompositingLayer):
71         (WebCore::RenderLayerCompositor::requiresOwnBackingStore):
72         (WebCore::RenderLayerCompositor::reasonForCompositing):
73         (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason):
74         (WebCore::RenderLayerCompositor::requiresCompositingForBlending):
75         (WebCore):
76         * rendering/RenderLayerCompositor.h:
77         (RenderLayerCompositor):
78         * rendering/RenderObject.h:
79         (RenderObject):
80         (WebCore::RenderObject::hasBlendMode):
81         (WebCore::RenderObject::createsGroup):
82         * rendering/RenderTableRow.h:
83         * rendering/style/RenderStyle.h:
84
85 2012-08-30  Tony Chang  <tony@chromium.org>
86
87         Make RenderBox::computeInlineDirectionMargins const
88         https://bugs.webkit.org/show_bug.cgi?id=95255
89
90         Reviewed by Ojan Vafai.
91
92         This is part of making computeLogical{Height,Width} return computed values rather than
93         mutating the RenderBox directly. This makes a submethod const.
94
95         This change is just a refactor, but I've added some tests to cover code that wasn't
96         previously covered by layout tests.
97
98         Tests: fast/block/margins-perpendicular-containing-block.html
99                fast/table/margins-flipped-text-direction.html
100                fast/table/margins-perpendicular-containing-block.html
101
102         * rendering/RenderBox.cpp:
103         (WebCore::RenderBox::computeLogicalWidthInRegion): Handle flipped text direction manually.
104         (WebCore::RenderBox::computeInlineDirectionMargins): Make const with out parameters.
105         No longer need to call setMargin{Start,End}ForChild.
106         (WebCore::shouldFlipBeforeAfterMargins): Helper function to figure out how to map a logical
107         writing mode direction to another logical writing mode direction.
108         (WebCore::RenderBox::computeLogicalHeight): Use const method. This also makes it more
109         obvious that when computing the height, we only modify the before/after margins.
110         * rendering/RenderBox.h:
111         (RenderBox): Make computeInlineDirectionMargins const with out parameters.
112         * rendering/RenderTable.cpp:
113         (WebCore::RenderTable::computeLogicalWidth): Same as RenderBox::comptueLogicalWidthInregion.
114
115 2012-08-30  Dirk Schulze  <krit@webkit.org>
116
117         Refactor WrapShape classes to BasicShape
118         https://bugs.webkit.org/show_bug.cgi?id=95461
119
120         Reviewed by Rob Buis.
121
122         This is a follow up patch of bug 95411. While the previous patch
123         just renamed the files, this patch renames the classes, enumerations
124         and functions.
125
126         Just refactoring of internal names. No new tests.
127
128         * css/BasicShapeFunctions.cpp:
129         (WebCore::valueForBasicShape):
130         (WebCore::basicShapeForValue):
131         * css/BasicShapeFunctions.h:
132         (WebCore):
133         * css/CSSBasicShapes.cpp:
134         (WebCore::CSSBasicShapeRectangle::cssText):
135         (WebCore::CSSBasicShapeCircle::cssText):
136         (WebCore::CSSBasicShapeEllipse::cssText):
137         (WebCore::CSSBasicShapePolygon::cssText):
138         * css/CSSBasicShapes.h:
139         (WebCore::CSSBasicShape::~CSSBasicShape):
140         (WebCore::CSSBasicShape::CSSBasicShape):
141         (WebCore::CSSBasicShapeRectangle::create):
142         (WebCore::CSSBasicShapeRectangle::type):
143         (WebCore::CSSBasicShapeRectangle::CSSBasicShapeRectangle):
144         (WebCore::CSSBasicShapeCircle::create):
145         (WebCore::CSSBasicShapeCircle::type):
146         (WebCore::CSSBasicShapeCircle::CSSBasicShapeCircle):
147         (WebCore::CSSBasicShapeEllipse::create):
148         (WebCore::CSSBasicShapeEllipse::type):
149         (WebCore::CSSBasicShapeEllipse::CSSBasicShapeEllipse):
150         (WebCore::CSSBasicShapePolygon::create):
151         (WebCore::CSSBasicShapePolygon::type):
152         (WebCore::CSSBasicShapePolygon::CSSBasicShapePolygon):
153         * css/CSSComputedStyleDeclaration.cpp:
154         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
155         * css/CSSParser.cpp:
156         (WebCore::CSSParser::parseValue):
157         (WebCore::CSSParser::parseBasicShapeRectangle):
158         (WebCore::CSSParser::parseBasicShapeCircle):
159         (WebCore::CSSParser::parseBasicShapeEllipse):
160         (WebCore::CSSParser::parseBasicShapePolygon):
161         (WebCore::CSSParser::parseBasicShape):
162         * css/CSSParser.h:
163         (WebCore):
164         * css/CSSPrimitiveValue.cpp:
165         (WebCore::CSSPrimitiveValue::init):
166         * css/CSSPrimitiveValue.h:
167         (WebCore):
168         (WebCore::CSSPrimitiveValue::getShapeValue):
169         (CSSPrimitiveValue):
170         * css/StyleBuilder.cpp:
171         (WebCore):
172         (WebCore::ApplyPropertyWrapShape::setValue):
173         (WebCore::ApplyPropertyWrapShape::applyValue):
174         (WebCore::ApplyPropertyWrapShape::createHandler):
175         * rendering/RenderBlock.cpp:
176         (WebCore::RenderBlock::updateWrapShapeInfoAfterStyleChange):
177         * rendering/RenderBlock.h:
178         (RenderBlock):
179         * rendering/WrapShapeInfo.cpp:
180         (WebCore::WrapShapeInfo::isWrapShapeInfoEnabledForRenderBlock):
181         (WebCore::WrapShapeInfo::computeShapeSize):
182         * rendering/style/BasicShapes.cpp:
183         (WebCore::BasicShape::destroy):
184         * rendering/style/BasicShapes.h:
185         (WebCore::BasicShape::BasicShape):
186         (WebCore::BasicShapeRectangle::create):
187         (WebCore::BasicShapeRectangle::BasicShapeRectangle):
188         (WebCore::BasicShapeCircle::create):
189         (WebCore::BasicShapeCircle::BasicShapeCircle):
190         (WebCore::BasicShapeEllipse::create):
191         (WebCore::BasicShapeEllipse::BasicShapeEllipse):
192         (WebCore::BasicShapePolygon::create):
193         (WebCore::BasicShapePolygon::BasicShapePolygon):
194         * rendering/style/RenderStyle.h:
195         * rendering/style/StyleRareNonInheritedData.h:
196         (StyleRareNonInheritedData):
197
198 2012-08-30  Aaron Colwell  <acolwell@chromium.org>
199
200         Fix a crash in SourceBufferList.remove().
201         https://bugs.webkit.org/show_bug.cgi?id=94950
202
203         Reviewed by Eric Carlson.
204
205         Move SourceBuffer::clear() call before the removal of the SourceBuffer from
206         SourceBufferList::m_list to avoid a use after free if m_list holds the last
207         reference.
208
209         Test: http/tests/media/media-source/video-media-source-sourcebufferlist-crash.html
210
211         * Modules/mediasource/SourceBufferList.cpp:
212         (WebCore::SourceBufferList::remove):
213
214 2012-08-30  Otto Derek Cheung  <otcheung@rim.com>
215
216         [BlackBerry] Modifying how IP domains are handled in Cookies
217         https://bugs.webkit.org/show_bug.cgi?id=95381
218
219         Reviewed by Rob Buis.
220         Internally reviewed by Joe Mason.
221
222         Current implementation handles IP addresses like normal domains.
223         This makes invalid cross domain cookies possibe by setting cookie
224         domains to a suffix of the targeted IP. (ex. hackers on 11.121.61.97
225         can set cookies to 61.97, so they show up on the targeted website of
226         10.120.61.97)
227
228         New Implementation is to detect IP addresses and treat them without
229         exploding them with the delimiter ".". That way, IP addresses will
230         be stored as a whole and other IPs won't have access to it.
231
232         PR 130051
233
234         Manually tested by accessing a webpage via IP (hosted through
235         LAMP - ex:10.121.61.97) and tried to set cookies with domains that
236         are a suffix to the ip address (ex: .97, 121.61.97).
237         Also tried to set cookies to other ip addresses that "domain matches"
238         the IP address (ex. 11.121.61.97). Verified that they all failed.
239
240         Tested using the cookies test page: http://browser.swlab.rim.net/test/cookies
241
242         * platform/blackberry/CookieManager.cpp:
243         (WebCore::CookieManager::getRawCookies):
244         (WebCore::CookieManager::checkAndTreatCookie):
245         (WebCore::CookieManager::findOrCreateCookieMap):
246         * platform/blackberry/CookieManager.h:
247         * platform/blackberry/CookieParser.cpp:
248         (WebCore::CookieParser::CookieParser):
249         (WebCore::CookieParser::parseOneCookie):
250         * platform/blackberry/CookieParser.h:
251         (CookieParser):
252         * platform/blackberry/ParsedCookie.cpp:
253         (WebCore::ParsedCookie::ParsedCookie):
254         * platform/blackberry/ParsedCookie.h:
255         (WebCore::ParsedCookie::setDomain):
256         (WebCore::ParsedCookie::domainIsIPAddress):
257         (ParsedCookie):
258
259 2012-08-30  Ilya Tikhonovsky  <loislo@chromium.org>
260
261         Web Inspector: [regression] ui: heap profiler: splitter between containment and retainment views has white background.
262         https://bugs.webkit.org/show_bug.cgi?id=95460
263
264         Reviewed by Yury Semikhatsky.
265
266         it was regressed at r122332.
267
268         * inspector/front-end/heapProfiler.css:
269         (.heap-snapshot-view .retainers-view-header):
270
271 2012-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
272
273         Unreviewed, rolling out r127131.
274         http://trac.webkit.org/changeset/127131
275         https://bugs.webkit.org/show_bug.cgi?id=95463
276
277         It makes the fast/regions/ test crash on Chromium (Requested
278         by jchaffraix on #webkit).
279
280         * css/StyleResolver.cpp:
281         (WebCore::StyleResolver::collectMatchingRulesForList):
282         * rendering/InlineBox.cpp:
283         * rendering/InlineBox.h:
284         (WebCore):
285         (InlineBox):
286         * rendering/InlineFlowBox.cpp:
287         (WebCore::InlineFlowBox::addToLine):
288         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
289         * rendering/RenderRegion.h:
290         (RenderRegion):
291
292 2012-08-30  Alexander Pavlov  <apavlov@chromium.org>
293
294         Web Inspector: Some urls in CSS stylesheets cause errors when generating Computed Styles HTML
295         https://bugs.webkit.org/show_bug.cgi?id=95427
296
297         Reviewed by Vsevolod Vlasov.
298
299         Pass the parent StylesSidebarPane into ComputedStylePropertiesSection to avoid referencing an undefined field.
300         Avoid duplicating the parent pane by externally setting the |data| field on style property sections.
301
302         * inspector/front-end/StylesSidebarPane.js:
303         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
304         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
305         (WebInspector.StylePropertiesSection.prototype.get pane):
306         (WebInspector.ComputedStylePropertiesSection):
307         (WebInspector.ComputedStylePropertiesSection.prototype.get pane):
308         (WebInspector.ComputedStylePropertiesSection.prototype.onpopulate):
309         (WebInspector.StylePropertyTreeElement.prototype.updateTitle.linkifyURL):
310
311 2012-08-30  Keishi Hattori  <keishi@webkit.org>
312
313         Tick marks don't match thumb when applying padding or border to input type=range
314         https://bugs.webkit.org/show_bug.cgi?id=93791
315
316         Reviewed by Kent Tamura.
317
318         Tick marks don't match thumb when styling input type=range. This change
319         calculate tick mark positions from track element size. Bug 94915 handles
320         drawing the track inside the content area.
321
322         Tests: fast/forms/datalist/input-appearance-range-with-padding-with-datalist.html
323                fast/forms/datalist/input-appearance-range-with-transform.html
324
325         * html/HTMLInputElement.cpp:
326         (WebCore::HTMLInputElement::sliderTrackElement):
327         (WebCore):
328         * html/HTMLInputElement.h:
329         (HTMLInputElement):
330         * html/InputType.h:
331         (WebCore::InputType::sliderTrackElement):
332         * html/RangeInputType.cpp:
333         (WebCore::RangeInputType::sliderTrackElement):
334         (WebCore):
335         * html/RangeInputType.h:
336         (RangeInputType):
337         * rendering/RenderTheme.cpp:
338         (WebCore::RenderTheme::paintSliderTicks): rect's position is relative to
339         the transformed ancestor element. sliderBounds is absolute. We use them
340         to calculate the track element position relative to the transformed
341         ancestor element.
342
343 2012-08-30  Julien Chaffraix  <jchaffraix@webkit.org>
344
345         Remove the now-unneeded invalidations in RenderTable::removeCaption
346         https://bugs.webkit.org/show_bug.cgi?id=94889
347
348         Reviewed by Abhishek Arya.
349
350         Following bug 94842 and 95090, the invalidation code was pushed down to
351         RenderTableCaption. This made apparent that we did some invalidations that
352         were not needed.
353
354         Refactoring covered by existing tests.
355
356         * rendering/RenderTable.cpp:
357         (WebCore::RenderTable::removeCaption):
358         Removed setNeedsRecalcStyle() as it's unneeded now. It was probably needed back when
359         we didn't support multiple captions (see bug 58249) but the need was never documented
360         so you could wonder if it was really needed in the first place.
361
362 2012-08-30  Ilya Tikhonovsky  <loislo@chromium.org>
363
364         Web Inspector: [regression] ui: selectors in heap profiler view have no arrows at the right side of the text.
365         https://bugs.webkit.org/show_bug.cgi?id=95455
366
367         Reviewed by Yury Semikhatsky.
368
369         In console we use a span which wraps selectors and have necessary background.
370
371         * inspector/front-end/HeapSnapshotView.js:
372         (WebInspector.HeapSnapshotView.prototype.get statusBarItems.appendArrowImage):
373         (WebInspector.HeapSnapshotView.prototype.get statusBarItems):
374
375 2012-08-30  Andrew Lo  <anlo@rim.com>
376
377         [BlackBerry] LayerTiler needs to respect new setting for prefill rect.
378         https://bugs.webkit.org/show_bug.cgi?id=95446
379
380         Reviewed by Rob Buis.
381
382         Internally reviewed by Arvid Nilsson.
383         Internal PR181637
384         Use new prefill rectangle setting to determine which tiles should be
385         prefilled in LayerTiler.
386
387         * platform/graphics/blackberry/LayerTiler.cpp:
388         (WebCore::LayerTiler::shouldPrefillTile):
389
390 2012-08-29  Dirk Schulze  <krit@webkit.org>
391
392         Refactor WrapShape to Shape/BasicShape
393         https://bugs.webkit.org/show_bug.cgi?id=95411
394
395         Reviewed by Andreas Kling.
396
397         The wrap shapes are currently specified by CSS3 Exclusions but are useful for other
398         CSS related proposals like CSS Masking as well. This is the first patch on a chain
399         of patches to refactor WrapShape to BasicShape. With this patch all relevant files
400         get renamend and the build systems updated. The classes will be renamend in a second
401         step.
402
403         Just renaming of files. No new tests.
404
405         * CMakeLists.txt:
406         * GNUmakefile.list.am:
407         * Target.pri:
408         * WebCore.gypi:
409         * WebCore.vcproj/WebCore.vcproj:
410         * WebCore.xcodeproj/project.pbxproj:
411         * css/BasicShapeFunctions.cpp: Renamed from Source/WebCore/css/WrapShapeFunctions.cpp.
412         (WebCore):
413         (WebCore::valueForWrapShape):
414         (WebCore::convertToLength):
415         (WebCore::wrapShapeForValue):
416         * css/BasicShapeFunctions.h: Renamed from Source/WebCore/css/WrapShapeFunctions.h.
417         (WebCore):
418         * css/CSSAllInOne.cpp:
419         * css/CSSBasicShapes.cpp: Renamed from Source/WebCore/css/CSSWrapShapes.cpp.
420         (WebCore):
421         (WebCore::CSSWrapShapeRectangle::cssText):
422         (WebCore::CSSWrapShapeCircle::cssText):
423         (WebCore::CSSWrapShapeEllipse::cssText):
424         (WebCore::CSSWrapShapePolygon::cssText):
425         * css/CSSBasicShapes.h: Renamed from Source/WebCore/css/CSSWrapShapes.h.
426         (WebCore):
427         (CSSWrapShape):
428         (WebCore::CSSWrapShape::~CSSWrapShape):
429         (WebCore::CSSWrapShape::CSSWrapShape):
430         (CSSWrapShapeRectangle):
431         (WebCore::CSSWrapShapeRectangle::create):
432         (WebCore::CSSWrapShapeRectangle::x):
433         (WebCore::CSSWrapShapeRectangle::y):
434         (WebCore::CSSWrapShapeRectangle::width):
435         (WebCore::CSSWrapShapeRectangle::height):
436         (WebCore::CSSWrapShapeRectangle::radiusX):
437         (WebCore::CSSWrapShapeRectangle::radiusY):
438         (WebCore::CSSWrapShapeRectangle::setX):
439         (WebCore::CSSWrapShapeRectangle::setY):
440         (WebCore::CSSWrapShapeRectangle::setWidth):
441         (WebCore::CSSWrapShapeRectangle::setHeight):
442         (WebCore::CSSWrapShapeRectangle::setRadiusX):
443         (WebCore::CSSWrapShapeRectangle::setRadiusY):
444         (WebCore::CSSWrapShapeRectangle::type):
445         (WebCore::CSSWrapShapeRectangle::CSSWrapShapeRectangle):
446         (CSSWrapShapeCircle):
447         (WebCore::CSSWrapShapeCircle::create):
448         (WebCore::CSSWrapShapeCircle::centerX):
449         (WebCore::CSSWrapShapeCircle::centerY):
450         (WebCore::CSSWrapShapeCircle::radius):
451         (WebCore::CSSWrapShapeCircle::setCenterX):
452         (WebCore::CSSWrapShapeCircle::setCenterY):
453         (WebCore::CSSWrapShapeCircle::setRadius):
454         (WebCore::CSSWrapShapeCircle::type):
455         (WebCore::CSSWrapShapeCircle::CSSWrapShapeCircle):
456         (CSSWrapShapeEllipse):
457         (WebCore::CSSWrapShapeEllipse::create):
458         (WebCore::CSSWrapShapeEllipse::centerX):
459         (WebCore::CSSWrapShapeEllipse::centerY):
460         (WebCore::CSSWrapShapeEllipse::radiusX):
461         (WebCore::CSSWrapShapeEllipse::radiusY):
462         (WebCore::CSSWrapShapeEllipse::setCenterX):
463         (WebCore::CSSWrapShapeEllipse::setCenterY):
464         (WebCore::CSSWrapShapeEllipse::setRadiusX):
465         (WebCore::CSSWrapShapeEllipse::setRadiusY):
466         (WebCore::CSSWrapShapeEllipse::type):
467         (WebCore::CSSWrapShapeEllipse::CSSWrapShapeEllipse):
468         (CSSWrapShapePolygon):
469         (WebCore::CSSWrapShapePolygon::create):
470         (WebCore::CSSWrapShapePolygon::appendPoint):
471         (WebCore::CSSWrapShapePolygon::getXAt):
472         (WebCore::CSSWrapShapePolygon::getYAt):
473         (WebCore::CSSWrapShapePolygon::values):
474         (WebCore::CSSWrapShapePolygon::setWindRule):
475         (WebCore::CSSWrapShapePolygon::windRule):
476         (WebCore::CSSWrapShapePolygon::type):
477         (WebCore::CSSWrapShapePolygon::CSSWrapShapePolygon):
478         * css/CSSComputedStyleDeclaration.cpp:
479         * css/CSSParser.cpp:
480         * css/CSSPrimitiveValue.cpp:
481         * css/StyleBuilder.cpp:
482         * rendering/style/BasicShapes.cpp: Renamed from Source/WebCore/rendering/style/WrapShapes.cpp.
483         (WebCore):
484         (WebCore::WrapShape::destroy):
485         * rendering/style/BasicShapes.h: Renamed from Source/WebCore/rendering/style/WrapShapes.h.
486         (WebCore):
487         (WrapShape):
488         (WebCore::WrapShape::deref):
489         (WebCore::WrapShape::type):
490         (WebCore::WrapShape::WrapShape):
491         (WrapShapeRectangle):
492         (WebCore::WrapShapeRectangle::create):
493         (WebCore::WrapShapeRectangle::x):
494         (WebCore::WrapShapeRectangle::y):
495         (WebCore::WrapShapeRectangle::width):
496         (WebCore::WrapShapeRectangle::height):
497         (WebCore::WrapShapeRectangle::cornerRadiusX):
498         (WebCore::WrapShapeRectangle::cornerRadiusY):
499         (WebCore::WrapShapeRectangle::setX):
500         (WebCore::WrapShapeRectangle::setY):
501         (WebCore::WrapShapeRectangle::setWidth):
502         (WebCore::WrapShapeRectangle::setHeight):
503         (WebCore::WrapShapeRectangle::setCornerRadiusX):
504         (WebCore::WrapShapeRectangle::setCornerRadiusY):
505         (WebCore::WrapShapeRectangle::WrapShapeRectangle):
506         (WrapShapeCircle):
507         (WebCore::WrapShapeCircle::create):
508         (WebCore::WrapShapeCircle::centerX):
509         (WebCore::WrapShapeCircle::centerY):
510         (WebCore::WrapShapeCircle::radius):
511         (WebCore::WrapShapeCircle::setCenterX):
512         (WebCore::WrapShapeCircle::setCenterY):
513         (WebCore::WrapShapeCircle::setRadius):
514         (WebCore::WrapShapeCircle::WrapShapeCircle):
515         (WrapShapeEllipse):
516         (WebCore::WrapShapeEllipse::create):
517         (WebCore::WrapShapeEllipse::centerX):
518         (WebCore::WrapShapeEllipse::centerY):
519         (WebCore::WrapShapeEllipse::radiusX):
520         (WebCore::WrapShapeEllipse::radiusY):
521         (WebCore::WrapShapeEllipse::setCenterX):
522         (WebCore::WrapShapeEllipse::setCenterY):
523         (WebCore::WrapShapeEllipse::setRadiusX):
524         (WebCore::WrapShapeEllipse::setRadiusY):
525         (WebCore::WrapShapeEllipse::WrapShapeEllipse):
526         (WrapShapePolygon):
527         (WebCore::WrapShapePolygon::create):
528         (WebCore::WrapShapePolygon::windRule):
529         (WebCore::WrapShapePolygon::values):
530         (WebCore::WrapShapePolygon::getXAt):
531         (WebCore::WrapShapePolygon::getYAt):
532         (WebCore::WrapShapePolygon::setWindRule):
533         (WebCore::WrapShapePolygon::appendPoint):
534         (WebCore::WrapShapePolygon::WrapShapePolygon):
535         * rendering/style/StyleRareNonInheritedData.h:
536
537 2012-08-30  Andrei Onea  <onea@adobe.com>
538
539         [CSSRegions]Add support for text-shadow in region styling
540         https://bugs.webkit.org/show_bug.cgi?id=94472
541
542         Reviewed by David Hyatt.
543
544         The CSSRegions spec allows region styling to be applied on the text-shadow property
545         as well. We need to also add this in WebKit.
546
547         Test: fast/regions/region-style-text-shadow.html
548
549         * css/StyleResolver.cpp:
550         (WebCore::StyleResolver::collectMatchingRulesForList):
551         Make sure we actually collect text-shadow property from parser in an @region rule.
552         * rendering/InlineBox.cpp:
553         (WebCore::InlineBox::styleInRegion):
554         (WebCore):
555         (WebCore::InlineBox::regionDuringLayout):
556         * rendering/InlineBox.h:
557         (WebCore):
558         (InlineBox):
559         * rendering/InlineFlowBox.cpp:
560         (WebCore::InlineFlowBox::addToLine):
561         Take into account region styling, so that "knownToHaveNoOverflow" is computed
562         properly.
563         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
564         Take into account region styling, so that the visual overflow rect is computed
565         properly.
566         * rendering/RenderRegion.h:
567         (RenderRegion):
568         Made computeStyleInRegion public.
569
570 2012-08-30  Andreas Kling  <kling@webkit.org>
571
572         Element: Share code between setAttributeNode() and other attribute setters.
573         <http://webkit.org/b/95328>
574
575         Reviewed by Antti Koivisto.
576
577         Removed the specialized ElementAttributeData::replaceAttribute() that was only used for
578         replacing an existing Attr node on an Element. Instead, just use Element::setAttributeInternal()
579         like all the other attribute setters.
580
581         * dom/Element.cpp:
582         (WebCore::Element::setAttributeNode):
583         * dom/ElementAttributeData.cpp:
584         * dom/ElementAttributeData.h:
585         (ElementAttributeData):
586
587 2012-08-30  Xan Lopez  <xlopez@igalia.com>
588
589         1.9.90 drops symbols, breaking compatibility
590         https://bugs.webkit.org/show_bug.cgi?id=93477
591
592         Reviewed by Martin Robinson.
593
594         Add a bunch of compatibility methods to the GObject DOM bindings
595         to cope with recent renames.
596
597         * bindings/gobject/WebKitDOMCustom.cpp:
598         (webkit_dom_html_element_get_class_list):
599         (webkit_dom_element_get_webkit_region_overflow):
600         (webkit_dom_webkit_named_flow_get_content_nodes):
601         (webkit_dom_webkit_named_flow_get_regions_by_content_node):
602         * bindings/gobject/WebKitDOMCustom.h:
603
604 2012-08-29  Antti Koivisto  <antti@apple.com>
605
606         Cache and share parsed imported stylesheets
607         https://bugs.webkit.org/show_bug.cgi?id=95219
608
609         Reviewed by Andreas Kling.
610
611         We currently cache and share parsed data structures of stylesheets loaded with <link>. We should do
612         the same with stylesheets loaded using @import rules as they are also fairly common.
613         
614         This patch adds support for caching and sharing stylesheets loaded using @import rules. Only leaf
615         stylesheets (that don't have @import rules themselves) can be cached for now.
616
617         * css/CSSImportRule.cpp:
618         (WebCore::CSSImportRule::reattachStyleSheetContents):
619         (WebCore):
620         * css/CSSImportRule.h:
621         (CSSImportRule):
622         * css/CSSStyleSheet.cpp:
623         (WebCore::CSSStyleSheet::willMutateRules):
624         (WebCore::CSSStyleSheet::reattachCSSOMWrappers):
625         * css/CSSStyleSheet.h:
626         (CSSStyleSheet):
627         * css/StyleRuleImport.cpp:
628         (WebCore::StyleRuleImport::setCSSStyleSheet):
629         (WebCore::StyleRuleImport::reattachStyleSheetContents):
630         (WebCore):
631         * css/StyleRuleImport.h:
632         (StyleRuleImport):
633         * loader/cache/CachedCSSStyleSheet.cpp:
634         (WebCore::CachedCSSStyleSheet::saveParsedStyleSheet):
635
636 2012-08-30  Kangil Han  <kangil.han@samsung.com>
637
638         Fix compile warning when enable tiled backing store
639         https://bugs.webkit.org/show_bug.cgi?id=95422
640
641         Reviewed by Kentaro Hara.
642
643         Fixed compile warning messages when enabled tiled backing store.
644         In case of TiledBackingStore, it was first thought about static_cast<unsigned>.
645         However, if minus value is assigned to the comparison, it would be critical.
646         So, it was modified as using int value in tiled coordinate calculation.
647
648         * page/Frame.cpp:
649         (WebCore::Frame::tiledBackingStorePaintEnd): comparison between signed and unsigned integer expressions [-Wsign-compare]
650         * platform/graphics/TiledBackingStore.cpp:
651         (WebCore::TiledBackingStore::invalidate): comparison between signed and unsigned integer expressions [-Wsign-compare]
652         (WebCore::TiledBackingStore::paint): comparison between signed and unsigned integer expressions [-Wsign-compare]
653         (WebCore::TiledBackingStore::coverageRatio): comparison between signed and unsigned integer expressions [-Wsign-compare]
654         (WebCore::TiledBackingStore::createTiles): comparison between signed and unsigned integer expressions [-Wsign-compare]
655         * platform/graphics/cairo/GLContext.cpp:
656         (WebCore::GLContext::createOffscreenContext): no return statement in function returning non-void [-Wreturn-type]
657
658 2012-08-30  Anton Muhin  <antonm@chromium.org>
659
660         Heap-use-after-free in WebCore::ElementV8Internal::onclickAttrGetter
661         https://bugs.webkit.org/show_bug.cgi?id=94440
662
663         Reviewed by Adam Barth.
664
665         The problem appears due to onerror callback which resets onclick attribute.
666         As a part of changing onclick attribute value, previous event listener
667         gets deref which led to its destruction and hence use-after-free.
668         Refing it in ::getListenerObject helps to prevent this unfortunate scenario.
669
670         Test: fast/events/set-attribute-listener-window-onerror-crash.html
671
672         * bindings/v8/V8AbstractEventListener.h:
673         (WebCore::V8AbstractEventListener::getListenerObject):
674
675 2012-08-30  Vsevolod Vlasov  <vsevik@chromium.org>
676
677         Web Inspector: [Sources] Invisible right sidebar issue
678         https://bugs.webkit.org/show_bug.cgi?id=94924
679
680         Reviewed by Pavel Feldman.
681
682         Debugger sidebar resizer is now hidden when sidebar is hidden.
683         Debugger sidebar show button is moved to the upper right corner in this case.
684
685         * inspector/front-end/ScriptsPanel.js:
686         (WebInspector.ScriptsPanel.prototype._showDebuggerSidebar):
687         (WebInspector.ScriptsPanel.prototype.set _hideDebuggerSidebar):
688         * inspector/front-end/scriptsPanel.css:
689         (button.status-bar-item.scripts-debugger-show-hide-button):
690         (button.status-bar-item.scripts-debugger-show-hide-button:active):
691         (button.status-bar-item.scripts-debugger-show-hide-button.toggled-shown):
692         (button.status-bar-item.scripts-debugger-show-hide-button.toggled-shown:active):
693         (button.status-bar-item.scripts-debugger-show-hide-button.toggled-hidden):
694         (button.status-bar-item.scripts-debugger-show-hide-button.toggled-hidden:active):
695
696 2012-08-30  Ilya Tikhonovsky  <loislo@chromium.org>
697
698         Web Inspector: move GeneratedImage members into its own cpp file
699         https://bugs.webkit.org/show_bug.cgi?id=95351
700
701         Reviewed by Yury Semikhatsky.
702
703         It is trivial patch. The methods of GeneratedImage were in GeneratorGeneratedImage.cpp file.
704         It was Ok when it was a single method.
705
706         * CMakeLists.txt:
707         * GNUmakefile.list.am:
708         * Target.pri:
709         * WebCore.gypi:
710         * WebCore.vcproj/WebCore.vcproj:
711         * WebCore.xcodeproj/project.pbxproj:
712         * platform/graphics/GeneratedImage.cpp: Added.
713         (WebCore):
714         (WebCore::GeneratedImage::computeIntrinsicDimensions):
715         (WebCore::GeneratedImage::reportMemoryUsage):
716         * platform/graphics/GeneratorGeneratedImage.cpp:
717
718 2012-08-30  Patrick Gansterer  <paroga@webkit.org>
719
720         Build fix for WinCE after r126974.
721
722         * platform/graphics/BitmapImage.cpp:
723         (WebCore::BitmapImage::reportMemoryUsage):
724
725 2012-08-30  Adam Barth  <abarth@webkit.org>
726
727         Replace uses of WTF::String::operator+= with StringBuilder
728         https://bugs.webkit.org/show_bug.cgi?id=95416
729
730         Reviewed by Benjamin Poulain.
731
732         WTF::String::operator+= appears to be a sandtrap for contributors. The
733         vast majority of the callers are using very inefficient string
734         patterns. This patch removes the use of operator+= in favor of
735         StringBuilder. Eventually, I'd like to remove operator+= so that more
736         code doesn't fall into this trap.
737
738         * Modules/websockets/WebSocketHandshake.cpp:
739         (WebCore::resourceName):
740         * html/HTMLAnchorElement.cpp:
741         (WebCore::appendServerMapMousePosition):
742         (WebCore::HTMLAnchorElement::handleClick):
743         * html/canvas/CanvasRenderingContext2D.cpp:
744         (WebCore::CanvasRenderingContext2D::font):
745         * platform/network/ResourceRequestBase.cpp:
746         (WebCore::ResourceRequestBase::addHTTPHeaderField):
747         * rendering/RenderLayerBacking.cpp:
748         (WebCore::RenderLayerBacking::nameForLayer):
749         * rendering/RenderTreeAsText.cpp:
750         (WebCore::RenderTreeAsText::writeRenderObject):
751         (WebCore::nodePosition):
752         * rendering/style/RenderStyle.cpp:
753         (WebCore::RenderStyle::setContent):
754
755 2012-08-30  Shinya Kawanaka  <shinyak@chromium.org>
756
757         AuthorShadowDOM support for textarea element.
758         https://bugs.webkit.org/show_bug.cgi?id=91485
759
760         Reviewed by Dimitri Glazkov.
761
762         We add AuthorShadowDOM support for textarea element.
763
764         Unlike other replaced elements (e.g. meter, progress, img), we do not need to add
765         extra RenderBlock when we add AuthorShadowDOM. However, since inner element will not have
766         renderer when AuthorShadowDOM does not have any shadow insertion point, we have to check
767         the existence of the renderer of inner element.
768
769         Tests: fast/dom/shadow/shadowdom-for-textarea-with-attribute.html
770                fast/dom/shadow/shadowdom-for-textarea-with-placeholder.html
771                fast/dom/shadow/shadowdom-for-textarea-with-style.html
772                fast/dom/shadow/shadowdom-for-textarea.html
773
774         * dom/ShadowRoot.cpp:
775         (WebCore::allowsAuthorShadowRoot): Needs allow textarea to have AuthorShadowRoot.
776         * rendering/RenderTextControl.cpp: When AuthorShadowDOM does not have any insertion point,
777         innerTextElement() will not have any renderer. We have to tweak these renderers not to be crashed.
778         (WebCore::RenderTextControl::textBlockWidth):
779         (WebCore::RenderTextControl::updateFromElement):
780         (WebCore::RenderTextControl::computeLogicalHeight):
781         (WebCore::RenderTextControl::hitInnerTextElement):
782         (WebCore::RenderTextControl::computePreferredLogicalWidths):
783
784 2012-08-29  Adam Barth  <abarth@webkit.org>
785
786         [V8] ScriptController::matchesCurrentContext duplicates code from ScriptController::currentWorldContext
787         https://bugs.webkit.org/show_bug.cgi?id=95156
788
789         Reviewed by Eric Seidel.
790
791         matchesCurrentContext duplicated code from currentWorldContext in order
792         to avoid creating a new v8::Local handle in the (common) case that
793         we're already in the right context. This patch just exposes an accessor
794         for the underlying handle so that the bindings code can do this work
795         itself.
796
797         * bindings/scripts/CodeGeneratorV8.pm:
798         (GenerateToV8Converters):
799         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
800         (WebCore::V8TestActiveDOMObject::wrapSlow):
801         * bindings/scripts/test/V8/V8TestNode.cpp:
802         (WebCore::V8TestNode::wrapSlow):
803         * bindings/v8/ScriptController.cpp:
804         (WebCore::ScriptController::unsafeHandleToCurrentWorldContext):
805         (WebCore):
806         (WebCore::ScriptController::currentWorldContext):
807         * bindings/v8/ScriptController.h:
808         (ScriptController):
809         * bindings/v8/V8DOMWindowShell.h:
810         (WebCore::V8DOMWindowShell::context):
811
812 2012-08-29  Nat Duca  <nduca@chromium.org>
813
814         [chromium] setNeedsAnimate should not cause commitRequested to become true
815         https://bugs.webkit.org/show_bug.cgi?id=95393
816
817         Reviewed by James Robinson.
818
819         We use the commitRequested state to determine if the page has been damaged, which
820         then is used by the input flow control logic to coalesce input events. However, we
821         actually have two notions of commitRequested. At the CCLayerTreeHost level, commit
822         being requested means "we've changed the tree in some way." At the proxy level, it
823         means "we've sent a commit request to the impl thread." Without this patch,
824         we use the latter state to answer ::commitRequested. That causes setNeedsAnimate
825         to incorrectly cause the commitRequested bit to be set.
826
827         This change separates the setNeedsCommit state from commitRequestSentToImplThread.
828         This allows us to correctly answer commitRequested in face of mixed animation and
829         invalidation requests.
830
831         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
832         (WebCore::CCThreadProxy::CCThreadProxy):
833         (WebCore::CCThreadProxy::setNeedsAnimate):
834         (WebCore::CCThreadProxy::setNeedsCommit):
835         (WebCore::CCThreadProxy::beginFrame):
836         * platform/graphics/chromium/cc/CCThreadProxy.h:
837         (CCThreadProxy):
838
839 2012-08-29  Simon Hausmann  <simon.hausmann@nokia.com>
840
841         [Qt] REGRESSION(r126694): It broke the debug build
842         https://bugs.webkit.org/show_bug.cgi?id=95037
843
844         Unreviewed trivial build fix for debug builds.
845
846         Don't pass WTFStrings through printf, use .ascii().data().
847
848         * platform/graphics/texmap/TextureMapperShaderManager.cpp:
849         (WebCore::StandardFilterProgram::StandardFilterProgram):
850
851 2012-08-29  Rafael Brandao  <rafael.lobo@openbossa.org>
852
853         Fix assertion on Document::recalcStyle to not recalc style while painting
854         https://bugs.webkit.org/show_bug.cgi?id=95386
855
856         Reviewed by Eric Seidel.
857
858         * dom/Document.cpp: Move assertion outside the if to reflect that safety check.
859
860 2012-08-29  Aaron Colwell  <acolwell@chromium.org>
861
862         Add WebKit prefix to MediaSource, SourceBuffer, & SourceBufferList DOMWindow constructor attributes.
863         https://bugs.webkit.org/show_bug.cgi?id=95247
864
865         Reviewed by Eric Carlson.
866
867         Add WebKit prefix to MediaSource, SourceBuffer, and SourceBufferList object constructor attributes.
868
869         Covered by existing layout tests..
870
871         * page/DOMWindow.idl:
872
873 2012-08-29  Nate Chapin  <japhet@chromium.org>
874
875         ProgressTracker never completes if iframe detached during parsing 
876         https://bugs.webkit.org/show_bug.cgi?id=92272
877
878         Reviewed by Adam Barth.
879
880         Add a simple helper class to FrameLoader to ensure progressStarted/progressCompleted calls are matched,
881         and balance the calls when the Frame is detached.
882
883         No new tests, as this behavior has only been producing reliably by setting a breakpoint in a specific place.
884
885         * loader/FrameLoader.cpp:
886         (FrameLoader::FrameProgressTracker):
887         (WebCore::FrameLoader::FrameProgressTracker::create):
888         (WebCore::FrameLoader::FrameProgressTracker::~FrameProgressTracker):
889         (WebCore::FrameLoader::FrameProgressTracker::progressStarted):
890         (WebCore::FrameLoader::FrameProgressTracker::progressCompleted):
891         (WebCore::FrameLoader::FrameProgressTracker::FrameProgressTracker):
892         (WebCore):
893         (WebCore::FrameLoader::init):
894         (WebCore::FrameLoader::prepareForLoadStart):
895         (WebCore::FrameLoader::clearProvisionalLoad):
896         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
897         (WebCore::FrameLoader::detachFromParent):
898         * loader/FrameLoader.h:
899         (FrameLoader):
900
901 2012-08-29  Yoshifumi Inoue  <yosin@chromium.org>
902
903         [Forms] Rename DateTimeFieldElement::FieldEventHandler to FieldOwner
904         https://bugs.webkit.org/show_bug.cgi?id=95280
905
906         Reviewed by Kent Tamura.
907
908         This patch renames DateTimeFieldElement::FieldEventHandler to FieldOwner
909         for matching functionaly of class and class name to add functions like
910         focusOnNextField().
911
912         This patch affects ports which enables both ENABLE_INPUT_TYPE_TIME and
913         ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.
914
915         This patch is a part of changing Shift+Tab focus navigation of
916         multiple fields input time UI, bug 95168.
917
918         No new tests. This patch doesn't change behavior.
919
920         * html/shadow/DateTimeEditElement.h:
921         (DateTimeEditElement):
922         * html/shadow/DateTimeFieldElement.cpp:
923         (WebCore::DateTimeFieldElement::FieldOwner::~FieldOwner):
924         (WebCore::DateTimeFieldElement::DateTimeFieldElement):
925         (WebCore::DateTimeFieldElement::focusOnNextField):
926         (WebCore::DateTimeFieldElement::updateVisibleValue):
927         * html/shadow/DateTimeFieldElement.h:
928         (FieldOwner):
929         (WebCore::DateTimeFieldElement::removeEventHandler):
930         (DateTimeFieldElement):
931         * html/shadow/DateTimeFieldElements.cpp:
932         (WebCore::DateTimeAMPMFieldElement::DateTimeAMPMFieldElement):
933         (WebCore::DateTimeAMPMFieldElement::create):
934         (WebCore::DateTimeHourFieldElement::DateTimeHourFieldElement):
935         (WebCore::DateTimeHourFieldElement::create):
936         (WebCore::DateTimeMillisecondFieldElement::DateTimeMillisecondFieldElement):
937         (WebCore::DateTimeMillisecondFieldElement::create):
938         (WebCore::DateTimeMinuteFieldElement::DateTimeMinuteFieldElement):
939         (WebCore::DateTimeMinuteFieldElement::create):
940         (WebCore::DateTimeSecondFieldElement::DateTimeSecondFieldElement):
941         (WebCore::DateTimeSecondFieldElement::create):
942         * html/shadow/DateTimeFieldElements.h:
943         (DateTimeAMPMFieldElement):
944         (DateTimeHourFieldElement):
945         (DateTimeMillisecondFieldElement):
946         (DateTimeMinuteFieldElement):
947         (DateTimeSecondFieldElement):
948         * html/shadow/DateTimeNumericFieldElement.cpp:
949         (WebCore::DateTimeNumericFieldElement::DateTimeNumericFieldElement):
950         * html/shadow/DateTimeNumericFieldElement.h:
951         (DateTimeNumericFieldElement):
952         * html/shadow/DateTimeSymbolicFieldElement.cpp:
953         (WebCore::DateTimeSymbolicFieldElement::DateTimeSymbolicFieldElement):
954         * html/shadow/DateTimeSymbolicFieldElement.h:
955         (DateTimeSymbolicFieldElement):
956
957 2012-08-29  Dominic Mazzoni  <dmazzoni@google.com>
958
959         AX: Canvas should have a distinct role
960         https://bugs.webkit.org/show_bug.cgi?id=95248
961
962         Reviewed by Chris Fleizach.
963
964         Add new role for a canvas element, and a method to determine if
965         a canvas has fallback content, so each platform can decide on the
966         appropriate role mapping to use.
967
968         Test: accessibility/canvas-description-and-role.html
969
970         * accessibility/AccessibilityNodeObject.cpp:
971         (WebCore::AccessibilityNodeObject::canvasHasFallbackContent):
972         (WebCore):
973         * accessibility/AccessibilityNodeObject.h:
974         (AccessibilityNodeObject):
975         * accessibility/AccessibilityObject.h:
976         (WebCore::AccessibilityObject::isCanvas):
977         (WebCore::AccessibilityObject::canvasHasFallbackContent):
978         * accessibility/AccessibilityRenderObject.cpp:
979         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
980         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
981         (WebCore::AccessibilityRenderObject::canHaveChildren):
982         * accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
983         (atkRole):
984         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
985         (createAccessibilityRoleMap):
986         (-[WebAccessibilityObjectWrapper role]):
987
988 2012-08-29  Michael Saboff  <msaboff@apple.com>
989
990         use after free in WebCore::FileReader::doAbort
991         https://bugs.webkit.org/show_bug.cgi?id=91004
992
993         Reviewed by Jian Li.
994
995         Added check in FileReader::abort to not process the abort if we aren't in the LOADING
996         state.  This is per the FileAPI spec section 8.5.6 step #1.
997
998         Tests: fast/files/file-reader-immediate-abort.html
999                fast/files/file-reader-done-reading-abort.html
1000
1001         * fileapi/FileReader.cpp:
1002         (WebCore::FileReader::abort):
1003
1004 2012-08-29  Alex Sakhartchouk  <alexst@chromium.org>
1005
1006         [chromium] CCLayerTreeHost::finishCommitOnImplThread wrong setter order
1007         https://bugs.webkit.org/show_bug.cgi?id=94828
1008
1009         Reviewed by Adrienne Walker.
1010
1011         setDeviceScaleFactor affects maxScrollPosition, making sure it's properly updated.
1012         This also removes setter order dependency.
1013
1014         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
1015         (WebCore::CCLayerTreeHostImpl::setDeviceScaleFactor):
1016
1017 2012-08-29  James Robinson  <jamesr@chromium.org>
1018
1019         Unreviewed, rolling out r126956.
1020         http://trac.webkit.org/changeset/126956
1021         https://bugs.webkit.org/show_bug.cgi?id=94721
1022
1023         Breaks several unit tests - see https://bugs.webkit.org/show_bug.cgi?id=95358 for instance.
1024
1025         * platform/graphics/chromium/cc/CCScheduler.cpp:
1026         (WebCore::CCScheduler::CCScheduler):
1027         (WebCore::CCScheduler::beginFrameComplete):
1028         (WebCore::CCScheduler::vsyncTick):
1029         (WebCore::CCScheduler::processScheduledActions):
1030         * platform/graphics/chromium/cc/CCScheduler.h:
1031         (CCSchedulerClient):
1032         (CCScheduler):
1033         * platform/graphics/chromium/cc/CCTextureUpdateController.cpp:
1034         (WebCore::CCTextureUpdateController::CCTextureUpdateController):
1035         (WebCore::CCTextureUpdateController::hasMoreUpdates):
1036         (WebCore):
1037         (WebCore::CCTextureUpdateController::updateMoreTextures):
1038         (WebCore::CCTextureUpdateController::onTimerFired):
1039         (WebCore::CCTextureUpdateController::updateMoreTexturesIfEnoughTimeRemaining):
1040         * platform/graphics/chromium/cc/CCTextureUpdateController.h:
1041         (WebCore):
1042         (WebCore::CCTextureUpdateController::create):
1043         (CCTextureUpdateController):
1044         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
1045         (WebCore::CCThreadProxy::didLoseContextOnImplThread):
1046         (WebCore::CCThreadProxy::beginFrameCompleteOnImplThread):
1047         (WebCore::CCThreadProxy::hasMoreResourceUpdates):
1048         (WebCore):
1049         (WebCore::CCThreadProxy::scheduledActionCommit):
1050         * platform/graphics/chromium/cc/CCThreadProxy.h:
1051         (WebCore):
1052
1053 2012-08-29  James Robinson  <jamesr@chromium.org>
1054
1055         [chromium] Register/unregister contents layers with GraphicsLayerChromium
1056         https://bugs.webkit.org/show_bug.cgi?id=95379
1057
1058         Reviewed by Adrienne Walker.
1059
1060         Several composited layer types in WebCore are represented by a painted layer and a child "contents layer" that
1061         represents some non-painted specific content type. For example, a composited video has a WebCore-painted layer
1062         for CSS background and border effects and a child platform video layer backed by a WebVideoLayer with the output
1063         of the video decoding pipeline. Cross-platform code associates the PlatformLayer from the various composited
1064         systems with the right GraphicsLayer, but the object owning the layer and the GraphicsLayer holding the pointer
1065         otherwise have no relationship. This makes shutdown a bit tricky since the object destroying the contents layer
1066         has no direct way to notify the GraphicsLayer holding the contents layer pointer that it is going away. The
1067         GraphicsLayer will be notified after the next style recalc that its contents layer is gone, but may need to do
1068         any number of bookkeeping operations before that happens.
1069
1070         On most platforms the PlatformLayer is refcounted, so the GraphicsLayer simply holds a ref to its contents layer
1071         from the time it is orphaned until the next style recalc and compositing tree rebuild. In Chromium, however,
1072         PlatformLayer is not refcounted. This adds an explicit registration mechanism for layers that may be contents
1073         layers.  A layer has to be registered with GraphicsLayerChromium before it can be used as a contents layer -
1074         typically this is just done at creation - and unregistered before it is destroyed.
1075
1076         Tests: fast/canvas/transformed-canvas-reset.html
1077                platform/chromium/virtual/gpu/fast/canvas/transformed-canvas-reset.html
1078
1079         * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
1080         (WebCore::ScrollingCoordinatorPrivate::~ScrollingCoordinatorPrivate):
1081         (WebCore::createScrollbarLayer):
1082         * platform/graphics/chromium/Canvas2DLayerBridge.cpp:
1083         (WebCore::Canvas2DLayerBridge::Canvas2DLayerBridge):
1084         (WebCore::Canvas2DLayerBridge::~Canvas2DLayerBridge):
1085         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1086         (WebCore::DrawingBufferPrivate::DrawingBufferPrivate):
1087         (WebCore::DrawingBufferPrivate::~DrawingBufferPrivate):
1088         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1089         (WebCore::GraphicsLayerChromium::updateNames):
1090         (WebCore::GraphicsLayerChromium::clearBackgroundColor):
1091         (WebCore::GraphicsLayerChromium::setContentsNeedsDisplay):
1092         (WebCore::GraphicsLayerChromium::setContentsToImage):
1093         (WebCore):
1094         (WebCore::GraphicsLayerChromium::registerContentsLayer):
1095         (WebCore::GraphicsLayerChromium::unregisterContentsLayer):
1096         (WebCore::GraphicsLayerChromium::clearContentsLayerIfUnregistered):
1097         (WebCore::GraphicsLayerChromium::setContentsTo):
1098         (WebCore::GraphicsLayerChromium::updateChildList):
1099         (WebCore::GraphicsLayerChromium::updateLayerIsDrawable):
1100         (WebCore::GraphicsLayerChromium::updateLayerBackgroundColor):
1101         (WebCore::GraphicsLayerChromium::updateContentsRect):
1102         * platform/graphics/chromium/GraphicsLayerChromium.h:
1103         (GraphicsLayerChromium):
1104
1105 2012-08-29  Rafael Brandao  <rafael.lobo@openbossa.org>
1106
1107         [Texmap] CSS Transform flicks at the end of animation
1108         https://bugs.webkit.org/show_bug.cgi?id=95347
1109
1110         Reviewed by Noam Rosenthal.
1111
1112         * platform/graphics/GraphicsLayerAnimation.cpp: Check if the last loop has
1113         been completed and then use 1.0 as normalized value for the progress, otherwise
1114         it would work as if there was a new loop forward and then cycle the progress value.
1115
1116 2012-08-29  Abhishek Arya  <inferno@chromium.org>
1117
1118         Crash in WebCore::StyleSheetContents::checkLoadCompleted.
1119         https://bugs.webkit.org/show_bug.cgi?id=95106
1120
1121         Reviewed by Antti Koivisto.
1122
1123         RefPtr StyleSheetContents since it can get blown away in script execution inside
1124         sheetLoaded().
1125
1126         Test: fast/css/style-element-process-crash.html
1127
1128         * css/StyleSheetContents.cpp:
1129         (WebCore::StyleSheetContents::checkLoadCompleted):
1130
1131 2012-08-29  José Dapena Paz  <jdapena@igalia.com>
1132
1133         [Gtk] Process Gtk 3.4 smooth scroll events properly.
1134         https://bugs.webkit.org/show_bug.cgi?id=88070
1135
1136         Gtk 3.3.18 added smooth scroll events, adding a new scroll direction that
1137         provides detailed delta information.
1138
1139         Added GDK_SMOOTH_SCROLL_MASK to the events listened, and added
1140         code to process properly the new direction GDK_SCROLL_SMOOTH and
1141         its deltas.
1142
1143         Reviewed by Martin Robinson.
1144
1145         Test: fast/events/continuous-platform-wheelevent-in-scrolling-div.html
1146
1147         * platform/gtk/PlatformWheelEventGtk.cpp:
1148         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1149
1150 2012-08-29  Dana Jansens  <danakj@chromium.org>
1151
1152         [chromium] Remove HUD layer when rootLayer is set to null
1153         https://bugs.webkit.org/show_bug.cgi?id=95257
1154
1155         Reviewed by James Robinson.
1156
1157         When the rootLayer changes, remove the HUD layer from the old
1158         root layer immediately. Then, during commit, set the hud layer
1159         on the impl side only if there is a HUD layer present, and if
1160         there is a rootLayer present for it to be a child of.
1161
1162         Tests: CCHudWithRootLayerChange
1163
1164         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
1165         (WebCore::CCLayerTreeHost::finishCommitOnImplThread):
1166         (WebCore::CCLayerTreeHost::willCommit):
1167         (WebCore::CCLayerTreeHost::setRootLayer):
1168         * platform/graphics/chromium/cc/CCLayerTreeHost.h:
1169         (WebCore::CCLayerTreeHost::hudLayer):
1170         (CCLayerTreeHost):
1171
1172 2012-08-29  Roland Takacs  <rtakacs@inf.u-szeged.hu>, Helder Correia  <helder.correia@nokia.com>
1173
1174         [Texmap] Move TextureMapperGL to use GraphicsContext3D
1175         https://bugs.webkit.org/show_bug.cgi?id=78672
1176
1177         Reviewed by Noam Rosenthal.
1178
1179         It is based on a previous patch by Helder Correia.
1180
1181         TextureMapperGL (TMGL) includes direct GL calls and
1182         GraphicsContext3D (GC3D) offers many conveniences over the
1183         former approach: using existing CSS shader code, ANGLE for
1184         shader compilation, reusing WebCore::Texture, having shaders and
1185         textures that can delete themselves.
1186
1187         A GC3D object is created by TMGL with the newly introduced
1188         builder createForCurrentGLContext(), which in turn uses
1189         the new RenderToCurrentGLContext flag underneath.
1190
1191         TMGL's dependency on OpenGLShims.h was completely removed.
1192         However, GC3D does not map every single GL constant. Thus, it's
1193         important to document the following:
1194             - GL_FALSE was mapped to false.
1195             - GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_PIXELS,
1196             GL_UNPACK_SKIP_ROWS, GL_TEXTURE_RECTANGLE_ARB, and
1197             GL_UNSIGNED_INT_8_8_8_8_REV were locally defined in TMGL.
1198
1199         The patch was originally developed by Helder Correia and finished
1200         by Roland Takacs.
1201
1202         No new tests, refactoring.
1203
1204         * platform/graphics/GraphicsContext3D.h:
1205         * platform/graphics/texmap/TextureMapperGL.cpp:
1206         (SharedGLData):
1207         (WebCore::TextureMapperGLData::SharedGLData::currentSharedGLData):
1208         (WebCore::TextureMapperGLData::SharedGLData::SharedGLData):
1209         (WebCore::TextureMapperGLData::sharedGLData):
1210         (WebCore::TextureMapperGLData::TextureMapperGLData):
1211         (TextureMapperGLData):
1212         (WebCore::scissorClip):
1213         (WebCore::TextureMapperGL::ClipStack::apply):
1214         (WebCore::TextureMapperGLData::initializeStencil):
1215         (WebCore::TextureMapperGL::TextureMapperGL):
1216         (WebCore::TextureMapperGL::beginPainting):
1217         (WebCore::TextureMapperGL::endPainting):
1218         (WebCore::TextureMapperGL::drawQuad):
1219         (WebCore::TextureMapperGL::drawBorder):
1220         (WebCore):
1221         (WebCore::TextureMapperGL::drawTextureRectangleARB):
1222         (WebCore::TextureMapperGL::drawTexture):
1223         (WebCore::viewportMatrix):
1224         (WebCore::TextureMapperGL::drawTextureWithAntialiasing):
1225         (WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
1226         (WebCore::BitmapTextureGL::didReset):
1227         (WebCore::BitmapTextureGL::updateContents):
1228         (WebCore::TextureMapperGL::drawFiltered):
1229         (WebCore::BitmapTextureGL::initializeStencil):
1230         (WebCore::BitmapTextureGL::clearIfNeeded):
1231         (WebCore::BitmapTextureGL::createFboIfNeeded):
1232         (WebCore::BitmapTextureGL::bind):
1233         (WebCore::BitmapTextureGL::~BitmapTextureGL):
1234         (WebCore::TextureMapperGL::bindDefaultSurface):
1235         (WebCore::TextureMapperGL::beginScissorClip):
1236         (WebCore::TextureMapperGL::beginClip):
1237         (WebCore::TextureMapperGL::endClip):
1238         (WebCore::TextureMapperGL::createTexture):
1239         * platform/graphics/texmap/TextureMapperGL.h:
1240         (WebCore::TextureMapperGL::graphicsContext3D):
1241         (TextureMapperGL):
1242         (ClipStack):
1243         (WebCore::BitmapTextureGL::textureTarget):
1244         (BitmapTextureGL):
1245         (WebCore::BitmapTextureGL::BitmapTextureGL):
1246         * platform/graphics/texmap/TextureMapperShaderManager.cpp:
1247         (WebCore):
1248         (WebCore::TextureMapperShaderManager::getShaderProgram):
1249         (WebCore::TextureMapperShaderProgram::TextureMapperShaderProgram):
1250         (WebCore::TextureMapperShaderProgram::initializeProgram):
1251         (WebCore::TextureMapperShaderProgram::getUniformLocation):
1252         (WebCore::TextureMapperShaderProgram::~TextureMapperShaderProgram):
1253         (WebCore::TextureMapperShaderProgramSimple::TextureMapperShaderProgramSimple):
1254         (WebCore::TextureMapperShaderProgramSolidColor::TextureMapperShaderProgramSolidColor):
1255         (WebCore::TextureMapperShaderProgramRectSimple::TextureMapperShaderProgramRectSimple):
1256         (WebCore::TextureMapperShaderProgramOpacityAndMask::TextureMapperShaderProgramOpacityAndMask):
1257         (WebCore::TextureMapperShaderProgramRectOpacityAndMask::TextureMapperShaderProgramRectOpacityAndMask):
1258         (WebCore::TextureMapperShaderProgramAntialiasingNoMask::TextureMapperShaderProgramAntialiasingNoMask):
1259         (WebCore::TextureMapperShaderManager::TextureMapperShaderManager):
1260         (WebCore::StandardFilterProgram::~StandardFilterProgram):
1261         (WebCore::StandardFilterProgram::StandardFilterProgram):
1262         (WebCore::StandardFilterProgram::create):
1263         (WebCore::StandardFilterProgram::prepare):
1264         (WebCore::TextureMapperShaderManager::getShaderForFilter):
1265         * platform/graphics/texmap/TextureMapperShaderManager.h:
1266         (WebCore::TextureMapperShaderProgram::id):
1267         (WebCore::TextureMapperShaderProgram::vertexAttrib):
1268         (TextureMapperShaderProgram):
1269         (WebCore::TextureMapperShaderProgram::matrixLocation):
1270         (WebCore::TextureMapperShaderProgram::flipLocation):
1271         (WebCore::TextureMapperShaderProgram::textureSizeLocation):
1272         (WebCore::TextureMapperShaderProgram::sourceTextureLocation):
1273         (WebCore::TextureMapperShaderProgram::maskTextureLocation):
1274         (WebCore::TextureMapperShaderProgram::opacityLocation):
1275         (WebCore::TextureMapperShaderProgram::isValidUniformLocation):
1276         (StandardFilterProgram):
1277         (WebCore::StandardFilterProgram::vertexAttrib):
1278         (WebCore::StandardFilterProgram::texCoordAttrib):
1279         (WebCore::StandardFilterProgram::textureUniform):
1280         (WebCore::TextureMapperShaderProgramSimple::create):
1281         (TextureMapperShaderProgramSimple):
1282         (WebCore::TextureMapperShaderProgramRectSimple::create):
1283         (TextureMapperShaderProgramRectSimple):
1284         (WebCore::TextureMapperShaderProgramOpacityAndMask::create):
1285         (TextureMapperShaderProgramOpacityAndMask):
1286         (WebCore::TextureMapperShaderProgramRectOpacityAndMask::create):
1287         (TextureMapperShaderProgramRectOpacityAndMask):
1288         (WebCore::TextureMapperShaderProgramSolidColor::create):
1289         (WebCore::TextureMapperShaderProgramSolidColor::colorLocation):
1290         (TextureMapperShaderProgramSolidColor):
1291         (WebCore::TextureMapperShaderProgramAntialiasingNoMask::create):
1292         (WebCore::TextureMapperShaderProgramAntialiasingNoMask::expandedQuadVerticesInTextureCoordinatesLocation):
1293         (WebCore::TextureMapperShaderProgramAntialiasingNoMask::expandedQuadEdgesInScreenSpaceLocation):
1294         (TextureMapperShaderProgramAntialiasingNoMask):
1295         (WebCore::TextureMapperShaderManager::TextureMapperShaderManager):
1296         (TextureMapperShaderManager):
1297
1298 2012-08-29  Adam Barth  <abarth@webkit.org>
1299
1300         Convert more static Strings to use ASCIILiteral
1301         https://bugs.webkit.org/show_bug.cgi?id=95313
1302
1303         Reviewed by Eric Seidel.
1304
1305         This patch converts another swath of static strings to use ASCIILiteral
1306         as recommended by http://trac.webkit.org/wiki/EfficientStrings.
1307
1308         * Modules/mediasource/MediaSource.cpp:
1309         (WebCore::MediaSource::openKeyword):
1310         (WebCore):
1311         (WebCore::MediaSource::closedKeyword):
1312         (WebCore::MediaSource::endedKeyword):
1313         * Modules/mediasource/MediaSource.h:
1314         (MediaSource):
1315         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
1316         (WebCore::customHandlersStateString):
1317         * Modules/notifications/Notification.cpp:
1318         (WebCore::Notification::permissionString):
1319         * accessibility/AccessibilityMediaControls.cpp:
1320         (WebCore::AccessibilityMediaControl::controlTypeName):
1321         (WebCore::AccessibilityMediaControl::title):
1322         (WebCore::AccessibilityMediaControlsContainer::elementTypeName):
1323         (WebCore::AccessibilityMediaTimeline::helpText):
1324         * bindings/js/JSInspectorFrontendHostCustom.cpp:
1325         (WebCore::JSInspectorFrontendHost::platform):
1326         (WebCore::JSInspectorFrontendHost::port):
1327         * bindings/js/ScriptEventListener.cpp:
1328         (WebCore::eventParameterName):
1329         * bindings/v8/ScriptEventListener.cpp:
1330         (WebCore::eventParameterName):
1331         * css/CSSWrapShapes.cpp:
1332         (WebCore::CSSWrapShapeRectangle::cssText):
1333         (WebCore::CSSWrapShapeCircle::cssText):
1334         (WebCore::CSSWrapShapeEllipse::cssText):
1335         (WebCore::CSSWrapShapePolygon::cssText):
1336         * css/StyleSheetContents.cpp:
1337         (WebCore::StyleSheetContents::parseAuthorStyleSheet):
1338         * dom/Document.cpp:
1339         (WebCore::Document::readyState):
1340         * editing/MarkupAccumulator.cpp:
1341         (WebCore::appendCharactersReplacingEntities):
1342         * editing/markup.cpp:
1343         (WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
1344         (WebCore::StyledMarkupAccumulator::styleNodeCloseTag):
1345         (WebCore::StyledMarkupAccumulator::appendElement):
1346         (WebCore::createMarkup):
1347         * html/track/TextTrackCue.cpp:
1348         (WebCore::startKeyword):
1349         (WebCore::middleKeyword):
1350         (WebCore::endKeyword):
1351         (WebCore::verticalGrowingLeftKeyword):
1352         (WebCore::verticalGrowingRightKeyword):
1353         (WebCore::TextTrackCue::updateDisplayTree):
1354         (WebCore::TextTrackCue::settingName):
1355         * page/DiagnosticLoggingKeys.cpp:
1356         (WebCore::DiagnosticLoggingKeys::mediaLoadedKey):
1357         (WebCore::DiagnosticLoggingKeys::mediaLoadingFailedKey):
1358         (WebCore::DiagnosticLoggingKeys::pluginLoadedKey):
1359         (WebCore::DiagnosticLoggingKeys::pluginLoadingFailedKey):
1360         (WebCore::DiagnosticLoggingKeys::pageContainsPluginKey):
1361         (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey):
1362         (WebCore::DiagnosticLoggingKeys::passKey):
1363         (WebCore::DiagnosticLoggingKeys::failKey):
1364         (WebCore::DiagnosticLoggingKeys::noopKey):
1365         * page/PageVisibilityState.cpp:
1366         (WebCore::pageVisibilityStateString):
1367         * page/UserContentURLPattern.cpp:
1368         (WebCore::UserContentURLPattern::parse):
1369         * platform/KURLWTFURL.cpp:
1370         (WebCore::KURL::string):
1371         * platform/MIMETypeRegistry.cpp:
1372         (WebCore::defaultMIMEType):
1373         (WebCore::mimeTypeAssociationMap):
1374         * platform/network/ContentTypeParser.cpp:
1375         (WebCore::ContentTypeParser::parse):
1376         * platform/network/win/DownloadBundleWin.cpp:
1377         (WebCore::DownloadBundle::fileExtension):
1378         * storage/StorageTracker.cpp:
1379         (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase):
1380         * svg/SVGAnimatedBoolean.cpp:
1381         (WebCore::SVGAnimatedBooleanAnimator::constructFromString):
1382
1383 2012-08-29  David Hyatt  <hyatt@apple.com>
1384
1385         [New Multicolumn] Rename methods to prepare for proper pagination of columns
1386         https://bugs.webkit.org/show_bug.cgi?id=95375
1387
1388         Reviewed by Simon Fraser.
1389
1390         This patch is doing some renaming and refactoring to prepare for proper pagination of columns. Most of the renames
1391         involve changing RenderFlowThread functions to exactly match the names of their RenderBlock callers. These names
1392         end up being more accurate once the top of a page and remaining height on a page no longer have a 1:1 mapping to
1393         the RenderRegion's dimensions.
1394         
1395         The renames/additions include:
1396             renderRegionForLine -> regionAtBlockOffset
1397             Justification: The block method is already called regionAtBlockOffset. No lines are involved, so line was
1398             never the correct term to be passing in.
1399             
1400             regionLogicalXXXForLine -> pageLogicalXXXForOffset
1401             Justification: Matches the RenderBlock callers, and it's more accurate to talk in terms of "pages" now that
1402             we have RenderRegionSets that can contain multiple "pages" in a single region.
1403             
1404             logicalWidthForFlowThreadContent/logicalHeightForFlowThreadContent -> pageLogicalWidth/Height.
1405             Justification: Makes it more clear we're talking about the width and height of a single page/column rather
1406             than the width and height of the region itself.
1407             
1408             logicalHeightOfAllFlowThreadContent
1409             This method is new and represents the total flow thread logical height that is consumed by the region.
1410             It has to be distinguished from the pageLogicalHeight for a region since sets can have multiple pages/columns.
1411
1412         Note with this patch we're essentially adopting the convention used by all of the pagination code besides regions
1413         of referring to anything we paginate as a "page." I continue to believe this is the simplest way to talk about
1414         these objects in code that is generically dealing with all three (like the breaking code in RenderBlock).
1415  
1416         Eventually we might adopt the fragment terminology in the latest CSS draft, in which case 
1417         RenderRegion would become RenderFragment, RenderFlowThread would become RenderFragmentedBlock, and uses of
1418         the generic "page" would become "fragment" instead, but we'll wait for that draft's terminology to stabilize first
1419         before switching away from the current names.
1420
1421         * rendering/RenderBlock.cpp:
1422         (WebCore::RenderBlock::hasNextPage):
1423         (WebCore::RenderBlock::pageLogicalTopForOffset):
1424         (WebCore::RenderBlock::pageLogicalHeightForOffset):
1425         (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
1426         (WebCore::RenderBlock::regionAtBlockOffset):
1427         * rendering/RenderFlowThread.cpp:
1428         (WebCore::RenderFlowThread::layout):
1429         (WebCore::RenderFlowThread::computeLogicalWidth):
1430         (WebCore::RenderFlowThread::computeLogicalHeight):
1431         (WebCore::RenderFlowThread::regionAtBlockOffset):
1432         (WebCore::RenderFlowThread::pageLogicalTopForOffset):
1433         (WebCore::RenderFlowThread::pageLogicalWidthForOffset):
1434         (WebCore::RenderFlowThread::pageLogicalHeightForOffset):
1435         (WebCore::RenderFlowThread::pageRemainingLogicalHeightForOffset):
1436         (WebCore::RenderFlowThread::mapFromFlowToRegion):
1437         (WebCore::RenderFlowThread::setRegionRangeForBox):
1438         * rendering/RenderFlowThread.h:
1439         * rendering/RenderMultiColumnSet.h:
1440         * rendering/RenderRegion.cpp:
1441         (WebCore::RenderRegion::pageLogicalWidth):
1442         (WebCore::RenderRegion::pageLogicalHeight):
1443         (WebCore):
1444         (WebCore::RenderRegion::logicalHeightOfAllFlowThreadContent):
1445         (WebCore::RenderRegion::layout):
1446         * rendering/RenderRegion.h:
1447         (RenderRegion):
1448
1449 2012-08-29  David Grogan  <dgrogan@chromium.org>
1450
1451         IndexedDB: Throw TypeError for invalid version parameters
1452         https://bugs.webkit.org/show_bug.cgi?id=95143
1453
1454         Reviewed by Tony Chang.
1455
1456         Still need to throw for -1, but developers are running into the string
1457         scenario so handling that is more urgent. See
1458         https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-html5/QvjsPbBdP4M
1459
1460         Test: storage/indexeddb/intversion-bad-parameters.html
1461
1462         * Modules/indexeddb/IDBFactory.cpp:
1463         (WebCore::IDBFactory::open):
1464
1465 2012-08-29  Alexandru Chiculita  <achicu@adobe.com>
1466
1467         [CSS Shaders] Use CSS transform parsing code within CSS Shader
1468         https://bugs.webkit.org/show_bug.cgi?id=71401
1469
1470         Reviewed by Dean Jackson.
1471
1472         Added computed style for the transform parameters of the custom() filter function.
1473         Implemented the FECustomFilter bindings needed to push the value to an actual matrix for the CSS Shader.
1474         
1475         Note that transform parameters animations support will come in a different patch: 
1476         https://bugs.webkit.org/show_bug.cgi?id=94980.
1477
1478         Test: css3/filters/custom/effect-custom-transform-parameters.html
1479
1480         * GNUmakefile.list.am:
1481         * Target.pri:
1482         * WebCore.gypi:
1483         * WebCore.vcproj/WebCore.vcproj:
1484         * WebCore.xcodeproj/project.pbxproj:
1485         * css/CSSComputedStyleDeclaration.cpp:
1486         (WebCore::matrixTransformValue): Extracted code from computedTransform into a function, so that we
1487         can reuse it.
1488         (WebCore):
1489         (WebCore::computedTransform):
1490         (WebCore::valueForCustomFilterNumberParameter): Made all the custom filter related functions static to match
1491         most of the other functions in this file.
1492         (WebCore::valueForCustomFilterTransformParameter):
1493         (WebCore::valueForCustomFilterParameter): 
1494         (WebCore::CSSComputedStyleDeclaration::valueForFilter): Needed the object size to compute the transform.
1495         (WebCore::CSSComputedStyleDeclaration::valueForShadow): Added the const keyword.
1496         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Passed in the object to the valueForFilter.
1497         * css/CSSComputedStyleDeclaration.h:
1498         (WebCore):
1499         (CSSComputedStyleDeclaration):
1500         * css/StyleResolver.cpp:
1501         (StyleResolver::parseCustomFilterTransformParameter):
1502         (StyleResolver::parseCustomFilterParameter):
1503         (StyleResolver::parseCustomFilterParameterList): 
1504         * css/StyleResolver.h:
1505         (StyleResolver):
1506         * platform/graphics/filters/CustomFilterParameter.h:
1507         * platform/graphics/filters/CustomFilterTransformParameter.h: Filter parameter wrapper for the FilterOperations.
1508         (WebCore):
1509         (CustomFilterTransformParameter):
1510         (WebCore::CustomFilterTransformParameter::create):
1511         (WebCore::CustomFilterTransformParameter::blend): Animations will come in future patch.
1512         (WebCore::CustomFilterTransformParameter::operator==):
1513         (WebCore::CustomFilterTransformParameter::applyTransform):
1514         (WebCore::CustomFilterTransformParameter::operations):
1515         (WebCore::CustomFilterTransformParameter::setOperations):
1516         (WebCore::CustomFilterTransformParameter::CustomFilterTransformParameter):
1517         * platform/graphics/filters/FECustomFilter.cpp:
1518         (WebCore::FECustomFilter::bindProgramTransformParameter):
1519         (WebCore):
1520         (WebCore::FECustomFilter::bindProgramParameters):
1521         * platform/graphics/filters/FECustomFilter.h:
1522         (WebCore):
1523         (FECustomFilter):
1524
1525 2012-08-29  Rafael Brandao  <rafael.lobo@openbossa.org>
1526
1527         Use Animation::IterationCountInfinite instead of -1 when setting iteration count
1528         https://bugs.webkit.org/show_bug.cgi?id=95339
1529
1530         Reviewed by Andreas Kling.
1531
1532         * css/CSSToStyleMap.cpp: Replace -1 for the proper enum.
1533
1534 2012-08-29  Martin Robinson  <mrobinson@igalia.com>
1535
1536         [TexMap][cairo] Add GC3D::RenderToCurrentGLContext support
1537         https://bugs.webkit.org/show_bug.cgi?id=92441
1538
1539         Reviewed by Noam Rosenthal.
1540
1541         Add a RenderToCurrentGLContext for the Cairo GraphicsContext3D. This will allow
1542         TextureMapperGL to be rewritten on top of GraphicsContext3D by exposing the GC3D
1543         interface for the widget's GL context.
1544
1545         No new tests. This will be covered by the existing AC tests after the patch on
1546         bug 78672 lands.
1547
1548         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
1549         (WebCore::GraphicsContext3D::GraphicsContext3D): Only create the offscreen
1550         rendering buffers if we are rendering offscreen. Pass the rendering style to
1551         the private data factory.
1552         (WebCore::GraphicsContext3D::~GraphicsContext3D): Only destroy the offscreen
1553         rendering buffers if we are rendering offscreen.
1554         * platform/graphics/cairo/GraphicsContext3DPrivate.cpp:
1555         (WebCore::GraphicsContext3DPrivate::create): Pass the rendering style through.
1556         (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): If we are using
1557         a "current GL context" rendering style, we don't need to create a GL context.
1558         We'll always just use the one that's currently active.
1559         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper): Assert that we only
1560         do this with the offscreen rendering style.
1561         * platform/graphics/cairo/GraphicsContext3DPrivate.h: Update method definitions
1562         and expose the rendering style member GraphicsContext3D.
1563
1564 2012-08-29  Martin Leutelt  <martin.leutelt@basyskom.com>
1565
1566         [Qt] Implement CompositeDifference
1567         https://bugs.webkit.org/show_bug.cgi?id=77355
1568
1569         Reviewed by Noam Rosenthal.
1570
1571         Add mapping for difference composite mode for
1572         future use.
1573         
1574         * platform/graphics/qt/GraphicsContextQt.cpp:
1575         (WebCore::toQtCompositionMode):
1576
1577 2012-08-29  Rob Buis  <rbuis@rim.com>
1578
1579         [BlackBerry] Adjust wtf include header style
1580         https://bugs.webkit.org/show_bug.cgi?id=95368
1581
1582         Reviewed by Yong Li.
1583
1584         Switch to #include <wtf/...> like the other ports.
1585
1586         * platform/graphics/blackberry/LayerFilterRenderer.h:
1587
1588 2012-08-29  Eugene Klyuchnikov  <eustas.bug@gmail.com>
1589
1590         Web Inspector: Timeline: avoid "IPC message too big" on save/load
1591         https://bugs.webkit.org/show_bug.cgi?id=91991
1592
1593         Reviewed by Alexander Pavlov.
1594
1595         Motivation: Now timeline tries to save all data with one chunk.
1596         Sometimes this causes "IPC message too big" error.
1597
1598         Solution: Reuse Profiles/Heap save/load code.
1599
1600         * inspector/front-end/FileUtils.js:
1601         (WebInspector.OutputStream): Moved from HeapSnapshotView.js
1602         (WebInspector.findBalancedCurlyBrackets): Moved from HeapSnapshotLoader.js
1603         (WebInspector.ChunkedXHRReader): Added.
1604         (WebInspector.ChunkedFileWriter): Moved from HeapSnapshotView.js
1605         * inspector/front-end/HeapSnapshotLoader.js: Utility method moved to FileUtils.js
1606         * inspector/front-end/HeapSnapshotView.js: IO specific classes moved to FileUtils.js
1607         * inspector/front-end/HeapSnapshotWorker.js: Added dependency to FileUtils.js
1608         * inspector/front-end/TimelineModel.js: Adopted chunked IO API.
1609         (WebInspector.TimelineModelLoader): Class for chunked deserialization.
1610         (WebInspector.TimelineModelWriteToFileDelegate): Chunked serializer.
1611
1612 2012-08-29  David Hyatt  <hyatt@apple.com>
1613
1614         [New Multicolumn] Implement hit testing for columns.
1615         https://bugs.webkit.org/show_bug.cgi?id=95367
1616
1617         Reviewed by Simon Fraser.
1618
1619         Add an implementation of nodeAtPoint for RenderMultiColumnSet that works similarly to painting.
1620         Multiple calls get made as you walk through the columns to hitTestFlowThreadPortionInRegion.
1621
1622         * rendering/RenderMultiColumnSet.cpp:
1623         (WebCore::RenderMultiColumnSet::nodeAtPoint):
1624         (WebCore):
1625         * rendering/RenderMultiColumnSet.h:
1626         (RenderMultiColumnSet):
1627         * rendering/RenderRegion.cpp:
1628         (WebCore::RenderRegion::nodeAtPoint):
1629
1630 2012-08-29  Anna Cavender  <annacc@chromium.org>
1631
1632         Create a toggle button for closed captions.
1633         https://bugs.webkit.org/show_bug.cgi?id=94395
1634
1635         Reviewed by Eric Carlson.
1636
1637         This patch will create a button that toggles any captions or subtitles on or off.
1638
1639         Test: media/video-controls-captions.html
1640
1641         * css/mediaControlsChromium.css:
1642         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
1643         New style for new button.
1644
1645         * html/HTMLMediaElement.cpp:
1646         (WebCore::HTMLMediaElement::HTMLMediaElement):
1647         Initialize new variable for keeping track of user (button) disabled captions.
1648
1649         (WebCore::HTMLMediaElement::loadTimerFired):
1650         Rename configureNewTextTracks() to configureTextTracks().
1651
1652         (WebCore::HTMLMediaElement::prepareForLoad):
1653         Do not set closedCaptionsVisible to false, we should instead honor the
1654         checks for default out-of-band tracks.
1655
1656         (WebCore::HTMLMediaElement::textTrackModeChanged):
1657         Rename configureNewTextTracks() to configureTextTracks().
1658
1659         (WebCore::HTMLMediaElement::userIsInterestedInThisTrackKind):
1660         Add checks for when user has requested to see or not see captions.
1661
1662         (WebCore::HTMLMediaElement::configureTextTracks):
1663         Rename configureNewTextTracks() to configureTextTracks().
1664
1665         (WebCore::HTMLMediaElement::hasClosedCaptions):
1666         Return true if we have any caption or subtitle text tracks.
1667
1668         (WebCore::HTMLMediaElement::setClosedCaptionsVisible):
1669         Update the text track display and the closed captions button when the
1670         closed captions button is toggled.
1671
1672         (WebCore::HTMLMediaElement::configureTextTrackDisplay):
1673         If the visibility of any text tracks has changed, update the display and
1674         the controls.
1675
1676         (WebCore::HTMLMediaElement::updateClosedCaptionsControls):
1677         New function that updates both the text track display and the closed
1678         captions button.
1679
1680         * html/HTMLMediaElement.h:
1681         (HTMLMediaElement):
1682         New function updateClosedCaptionsControls()
1683
1684         Adding the button:
1685         * html/shadow/MediaControlRootElementChromium.cpp:
1686         (WebCore::MediaControlRootElementChromium::MediaControlRootElementChromium):
1687         (WebCore::MediaControlRootElementChromium::initializeControls):
1688         (WebCore::MediaControlRootElementChromium::setMediaController):
1689         (WebCore::MediaControlRootElementChromium::reset):
1690         (WebCore::MediaControlRootElementChromium::reportedError):
1691         (WebCore::MediaControlRootElementChromium::changedClosedCaptionsVisibility):
1692         (WebCore::MediaControlRootElementChromium::createTextTrackDisplay):
1693         * html/shadow/MediaControlRootElementChromium.h:
1694         (WebCore):
1695         (MediaControlRootElementChromium):
1696
1697         Ensure that Linux and Windows render themes will support closed captions:
1698         * rendering/RenderThemeChromiumSkia.cpp:
1699         (WebCore):
1700         (WebCore::supportsClosedCaptioning):
1701         * rendering/RenderThemeChromiumSkia.h:
1702         (RenderThemeChromiumSkia):
1703
1704 2012-08-29  Jessie Berlin  <jberlin@apple.com>
1705
1706         run-bindings-tests failing on Apple Mountain Lion Testers.
1707         https://bugs.webkit.org/show_bug.cgi?id=95354
1708
1709         Reviewed by Eric Seidel.
1710
1711         The binding tests were expecting incorrect results on Mac. The versions using the @property
1712         syntax are correct for Leopard and above. CodeGeneratorObjC.pm was determining which syntax
1713         to use based on the value of MACOSX_DEPLOYMENT_TARGET, which might not be set in the
1714         environment the tests get run in but is correctly set by xcodebuild.
1715
1716         * bindings/scripts/CodeGeneratorObjC.pm:
1717         (GenerateHeader):
1718         Remove the code to support Tiger and earlier and the reliance on MACOSX_DEPLOYMENT_TARGET.
1719         * bindings/scripts/test/ObjC/DOMTestActiveDOMObject.h:
1720         Update the expectations to expect the @property syntax (done with --reset-results).
1721         * bindings/scripts/test/ObjC/DOMTestEventConstructor.h:
1722         Ditto.
1723         * bindings/scripts/test/ObjC/DOMTestException.h:
1724         Ditto.
1725         * bindings/scripts/test/ObjC/DOMTestInterface.h:
1726         Ditto.
1727         * bindings/scripts/test/ObjC/DOMTestObj.h:
1728         Ditto.
1729         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h:
1730         Ditto.
1731
1732 2012-08-29  Vivek Galatage  <vivekgalatage@gmail.com>
1733
1734         Web Inspector: Refactor InspectorFrontendClientLocal to remove ScriptState as member
1735         https://bugs.webkit.org/show_bug.cgi?id=95343
1736
1737         Reviewed by Yury Semikhatsky.
1738
1739         The ScriptState is not required to be stored as a member to
1740         InspectorFrontendClientLocal hence removing it as member.
1741
1742         No new tests due to code refactoring.
1743
1744         * inspector/InspectorFrontendClientLocal.cpp:
1745         (WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal):
1746         (WebCore::InspectorFrontendClientLocal::~InspectorFrontendClientLocal):
1747         (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
1748         * inspector/InspectorFrontendClientLocal.h:
1749         (WebCore):
1750         (InspectorFrontendClientLocal):
1751
1752 2012-08-28  Shawn Singh  <shawnsingh@chromium.org>
1753
1754         [chromium] Do not clip root layer's subtree to viewport
1755         https://bugs.webkit.org/show_bug.cgi?id=95235
1756
1757         Reviewed by Adrienne Walker.
1758
1759         The root layer's renderSurface already correctly clips everything
1760         to the viewport's bounds.  There are some useful reasons that we
1761         should not cause the root layer itself to clip the subtree any
1762         further, in particular so that surfaces can remain more cacheable,
1763         and to make root layer semantics more homogeneous.
1764
1765         Existing tests updated, and otherwise this change is already
1766         covered by layout and unit tests.
1767
1768         * platform/graphics/chromium/cc/CCLayerTreeHostCommon.cpp:
1769         (WebCore::calculateDrawTransformsInternal):
1770
1771 2012-08-28  David Hyatt  <hyatt@apple.com>
1772
1773         [New Multicolumn] Implement column contents painting.
1774         https://bugs.webkit.org/show_bug.cgi?id=95251
1775
1776         Reviewed by Simon Fraser.
1777
1778         This patch implements paintColumnContents for the new multicolumn blocks. There are a number of
1779         improvements made over the current multi-column implementation. They include the fact that left
1780         and right columns will now be unclipped, so contents of columns can actually spill out of the block now.
1781         Outlines now also work properly. The contents of the first column and last column can also now overflow
1782         visually out of the top and bottom of those columns respectively.
1783
1784         * rendering/RenderMultiColumnSet.cpp:
1785         (WebCore::RenderMultiColumnSet::flowThreadPortionRectAt):
1786         This method returns the exact portion of the flow thread that matches the column dimensions.
1787         The width and height are the column width and height. It is equivalent to RenderRegion::flowThreadPortionRect,
1788         but is applied only for a specific column in the set.
1789
1790         (WebCore::RenderMultiColumnSet::flowThreadPortionOverflowRect):
1791         This method expands the flowThreadPortionRect to unclip the edges of left and right columns, the top and
1792         bottom edges of first and last columns, and it also expands the painting to go into half of the column
1793         gap. It is analogous to RenderRegion::flowThreadPortionOverflowRect, but it's doing the right thing
1794         for each individual column.
1795
1796         (WebCore::RenderMultiColumnSet::paintColumnContents):
1797         The implementation of column contents painting. Each column is iterated over, and the two rects above
1798         are computed and passed in to RenderFlowThread::paintFlowThreadPortionInRegion. This code does the right
1799         thing with offsets and clipping when handed these two rects and handles all of the rest.
1800
1801         * rendering/RenderMultiColumnSet.h:
1802         Declare the new functions that return the flow thread portion rects.
1803
1804         * rendering/RenderRegion.cpp:
1805         (WebCore::RenderRegion::flowThreadPortionOverflowRect):
1806         (WebCore):
1807         (WebCore::RenderRegion::overflowRectForFlowThreadPortion):
1808         * rendering/RenderRegion.h:
1809         (RenderRegion):
1810         * rendering/RenderRegionSet.cpp:
1811         Refactor this so that it can be invoked by column sets and operate on the first and last columns instead
1812         of only being tied to the first and last regions.
1813
1814         (WebCore::RenderRegionSet::expandToEncompassFlowThreadContentsIfNeeded):
1815         Fix a bug here where the flowThread.y() should not have been subtracted. We're in local flow thread
1816         coordinates.
1817
1818 2012-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
1819
1820         Unreviewed, rolling out r126972.
1821         http://trac.webkit.org/changeset/126972
1822         https://bugs.webkit.org/show_bug.cgi?id=95349
1823
1824         accessibility/canvas-description-and-role.html has been
1825         failing consistently on several bots and Dominic needs some
1826         time to investigate why (Requested by jchaffraix on #webkit).
1827
1828         * accessibility/AccessibilityNodeObject.cpp:
1829         * accessibility/AccessibilityNodeObject.h:
1830         * accessibility/AccessibilityObject.h:
1831         (AccessibilityObject):
1832         * accessibility/AccessibilityRenderObject.cpp:
1833         (WebCore::AccessibilityRenderObject::accessibilityDescription):
1834         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1835         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
1836         (WebCore::AccessibilityRenderObject::canHaveChildren):
1837         * accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
1838         (atkRole):
1839         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1840         (createAccessibilityRoleMap):
1841         (-[WebAccessibilityObjectWrapper role]):
1842
1843 2012-08-29  Vsevolod Vlasov  <vsevik@chromium.org>
1844
1845         Web Inspector: Minor ResourceScriptMapping polish.
1846         https://bugs.webkit.org/show_bug.cgi?id=95350
1847
1848         Reviewed by Alexander Pavlov.
1849
1850         Added some compiler annotations.
1851         ResourceScriptMapping is no longer a UISourceCodeProvider, removed unused methods and obsolete compiler annotations.
1852
1853         * inspector/front-end/ResourceScriptMapping.js:
1854         (WebInspector.ResourceScriptMapping):
1855
1856 2012-08-29  Vsevolod Vlasov  <vsevik@chromium.org>
1857
1858         Web Inspector: Extract StylesSourceMapping from StylesUISourceCodeProvider.
1859         https://bugs.webkit.org/show_bug.cgi?id=95345
1860
1861         Reviewed by Alexander Pavlov.
1862
1863         * WebCore.gypi:
1864         * WebCore.vcproj/WebCore.vcproj:
1865         * inspector/compile-front-end.py:
1866         * inspector/front-end/ResourceScriptMapping.js:
1867         (WebInspector.ResourceScriptMapping): Drive-by: ResourceScriptMapping now uses workspace object passed in parameters, not the global one.
1868         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeAdded):
1869         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeReplaced):
1870         * inspector/front-end/StylesSourceMapping.js: Copied from Source/WebCore/inspector/front-end/StylesUISourceCodeProvider.js.
1871         (WebInspector.StylesSourceMapping):
1872         (WebInspector.StylesSourceMapping.prototype.addUISourceCode):
1873         (WebInspector.StylesSourceMapping.prototype.rawLocationToUILocation):
1874         (WebInspector.StylesSourceMapping.prototype.uiLocationToRawLocation):
1875         (WebInspector.StylesSourceMapping.prototype.reset):
1876         * inspector/front-end/StylesUISourceCodeProvider.js:
1877         (WebInspector.StylesUISourceCodeProvider):
1878         (WebInspector.StylesUISourceCodeProvider.prototype._resourceAdded):
1879         (WebInspector.StylesUISourceCodeProvider.prototype._reset): Drive-by: _populate is now called with setTimeout.
1880         * inspector/front-end/WebKit.qrc:
1881         * inspector/front-end/inspector.html:
1882
1883 2012-08-29  Alexander Pavlov  <apavlov@chromium.org>
1884
1885         Web Inspector: Page with @import and :last-child in an edited stylesheet will crash
1886         https://bugs.webkit.org/show_bug.cgi?id=95324
1887
1888         Reviewed by Antti Koivisto.
1889
1890         Ensure the destroyed StyleRules removal from StyleResolver by creating a separate RuleMutationScope for clearing the StyleSheetContents.
1891
1892         Test: inspector/styles/import-pseudoclass-crash.html
1893
1894         * inspector/InspectorStyleSheet.cpp:
1895         (WebCore::InspectorStyleSheet::reparseStyleSheet):
1896
1897 2012-08-29  Vsevolod Vlasov  <vsevik@chromium.org>
1898
1899         Web Inspector: Turn workspace into a container of UiSourceCodes put in different projects.
1900         https://bugs.webkit.org/show_bug.cgi?id=95335
1901
1902         Reviewed by Pavel Feldman.
1903
1904         Workspace now contains a project that could be filled with uiSourceCodes.
1905         Workspace project is still filled by script / style mappings as before.
1906         The next step would be to extract NetworkUISourceCodeProvider.
1907
1908         * inspector/front-end/BreakpointManager.js:
1909         (WebInspector.BreakpointManager):
1910         * inspector/front-end/CompilerScriptMapping.js:
1911         (WebInspector.CompilerScriptMapping):
1912         (WebInspector.CompilerScriptMapping.prototype._reset):
1913         * inspector/front-end/DebuggerScriptMapping.js:
1914         (WebInspector.DebuggerScriptMapping):
1915         * inspector/front-end/ResourceScriptMapping.js:
1916         (WebInspector.ResourceScriptMapping):
1917         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeAdded):
1918         (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeReplaced):
1919         (WebInspector.ResourceScriptMapping.prototype._reset):
1920         * inspector/front-end/RevisionHistoryView.js:
1921         (WebInspector.RevisionHistoryView):
1922         * inspector/front-end/SASSSourceMapping.js:
1923         (WebInspector.SASSSourceMapping):
1924         (_bindUISourceCode):
1925         (rawLocationToUILocation):
1926         (_reset):
1927         * inspector/front-end/ScriptSnippetModel.js:
1928         (WebInspector.ScriptSnippetModel):
1929         (WebInspector.ScriptSnippetModel.prototype._addScriptSnippet):
1930         (WebInspector.ScriptSnippetModel.prototype.deleteScriptSnippet):
1931         (WebInspector.SnippetScriptMapping.prototype.addScript):
1932         * inspector/front-end/ScriptsPanel.js:
1933         (WebInspector.ScriptsPanel):
1934         * inspector/front-end/StylesUISourceCodeProvider.js:
1935         (WebInspector.StylesUISourceCodeProvider):
1936         (WebInspector.StylesUISourceCodeProvider.prototype._resourceAdded):
1937         (WebInspector.StylesUISourceCodeProvider.prototype._reset):
1938         * inspector/front-end/Workspace.js:
1939         (WebInspector.WorkspaceController):
1940         (WebInspector.WorkspaceController.prototype._mainFrameNavigated):
1941         (WebInspector.Project):
1942         (WebInspector.Project.prototype.reset):
1943         (WebInspector.Project.prototype.addUISourceCode):
1944         (WebInspector.Project.prototype.replaceUISourceCode):
1945         (WebInspector.Project.prototype.removeUISourceCode):
1946         (WebInspector.Project.prototype.uiSourceCodeForURL):
1947         (WebInspector.Project.prototype.uiSourceCodes):
1948         (WebInspector.Workspace):
1949         (WebInspector.Workspace.prototype.uiSourceCodeForURL):
1950         (WebInspector.Workspace.prototype.project):
1951         (WebInspector.Workspace.prototype.uiSourceCodes):
1952         * inspector/front-end/inspector.js:
1953
1954 2012-08-29  Florin Malita  <fmalita@chromium.org>
1955
1956         Incorrect large-area clipping
1957         https://bugs.webkit.org/show_bug.cgi?id=95197
1958
1959         Reviewed by Nikolas Zimmermann.
1960
1961         ImageBuffers allocated for clipping and masking are clamped to kMaxImageBufferSize max
1962         (4096x4096). In order to properly account for the scaling factor introduced by this
1963         clamping, the repaintRect translation component needs to be pushed after the scaling
1964         transform.
1965
1966         Tests: svg/custom/clamped-masking-clipping-expected.svg
1967                svg/custom/clamped-masking-clipping.svg
1968
1969         * rendering/svg/SVGRenderingContext.cpp:
1970         (WebCore::SVGRenderingContext::createImageBuffer):
1971
1972 2012-08-29  Yury Semikhatsky  <yurys@chromium.org>
1973
1974         Web Inspector: unsafe static_cast in RetainedDOMInfo::IsEquivalent
1975         https://bugs.webkit.org/show_bug.cgi?id=95315
1976
1977         Reviewed by Vsevolod Vlasov.
1978
1979         * bindings/v8/RetainedDOMInfo.cpp:
1980         (WebCore::RetainedDOMInfo::IsEquivalent): compare retained object info
1981         labels before casting v8::RetainedObjectInfo to WebCore::RetainedObjectInfo
1982         as the |other| object may not be a descendant of WebCore::RetainedObjectInfo.
1983
1984 2012-08-29  Jochen Eisinger  <jochen@chromium.org>
1985
1986         REGRESSION(r126816): Missing includes when compiling without SVG
1987         https://bugs.webkit.org/show_bug.cgi?id=95312
1988
1989         Reviewed by Eric Seidel.
1990
1991         * rendering/FilterEffectRenderer.h:
1992         * rendering/RenderLayerFilterInfo.h:
1993
1994 2012-08-29  Adam Barth  <abarth@webkit.org>
1995
1996         Improve string efficiency using StringBuilder and StringOperations
1997         https://bugs.webkit.org/show_bug.cgi?id=95304
1998
1999         Reviewed by Eric Seidel.
2000
2001         As recommended by http://trac.webkit.org/wiki/EfficientStrings.
2002
2003         * css/CSSLineBoxContainValue.cpp:
2004         (WebCore::CSSLineBoxContainValue::customCssText):
2005         * css/CSSPropertySourceData.cpp:
2006         (WebCore::CSSPropertySourceData::toString):
2007         * css/MediaList.cpp:
2008         (WebCore::MediaQuerySet::mediaText):
2009         * css/ShadowValue.cpp:
2010         (WebCore::ShadowValue::customCssText):
2011         * dom/MicroDataItemList.cpp:
2012         (WebCore::MicroDataItemList::undefinedItemType):
2013         * editing/HTMLInterchange.cpp:
2014         (WebCore::convertedSpaceString):
2015
2016 2012-08-29  James Robinson  <jamesr@chromium.org>
2017
2018         [chromium] Use floating point literals in expressions that initialize floats
2019         https://bugs.webkit.org/show_bug.cgi?id=95293
2020
2021         Reviewed by Adam Barth.
2022
2023         Visual studio's C4305, which is on for some chromium code, complains about these.
2024
2025         * platform/graphics/chromium/cc/CCLayerSorter.cpp:
2026         (WebCore::CCLayerSorter::createGraphEdges):
2027         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
2028         (WebCore::CCLayerTreeHostImpl::scrollBy):
2029         (WebCore::CCLayerTreeHostImpl::computePinchZoomDeltas):
2030
2031 2012-08-29  Vsevolod Vlasov  <vsevik@chromium.org>
2032
2033         Web Inspector: Extract StylesUISourceCodeProvider to separate file.
2034         https://bugs.webkit.org/show_bug.cgi?id=95319
2035
2036         Reviewed by Alexander Pavlov.
2037
2038         * WebCore.gypi:
2039         * WebCore.vcproj/WebCore.vcproj: Also added WebGLProfiler files forgotten before.
2040         * inspector/compile-front-end.py:
2041         * inspector/front-end/StyleSource.js:
2042         * inspector/front-end/StylesUISourceCodeProvider.js: Copied from Source/WebCore/inspector/front-end/StyleSource.js.
2043         (WebInspector.StylesUISourceCodeProvider):
2044         (WebInspector.StylesUISourceCodeProvider.prototype.uiSourceCodes):
2045         (WebInspector.StylesUISourceCodeProvider.prototype.rawLocationToUILocation):
2046         (WebInspector.StylesUISourceCodeProvider.prototype.uiLocationToRawLocation):
2047         (WebInspector.StylesUISourceCodeProvider.prototype._populate):
2048         (WebInspector.StylesUISourceCodeProvider.prototype._resourceAdded):
2049         (WebInspector.StylesUISourceCodeProvider.prototype.reset):
2050         * inspector/front-end/WebKit.qrc:
2051         * inspector/front-end/inspector.html:
2052
2053 2012-08-29  Philip Rogers  <pdr@google.com>
2054
2055         Use SVGImage instead of cached image when drawing without a render tree.
2056         https://bugs.webkit.org/show_bug.cgi?id=95002
2057
2058         Reviewed by Nikolas Zimmermann.
2059
2060         Previously if we tried to use canvas.context2d.drawImage() with an SVG image
2061         that was not in the render tree, we would crash. This patch changes this behavior
2062         so that we use SVGImage::draw() to draw images that are not in the render tree.
2063
2064         Test: svg/as-image/svg-canvas-draw-image-detached.html
2065
2066         * svg/graphics/SVGImageCache.cpp:
2067         (WebCore::SVGImageCache::requestedSizeAndScales):
2068         (WebCore::SVGImageCache::lookupOrCreateBitmapImageForRenderer):
2069
2070 2012-08-22  Simon Hausmann  <simon.hausmann@nokia.com>
2071
2072         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
2073         https://bugs.webkit.org/show_bug.cgi?id=93897
2074
2075         Reviewed by Kenneth Rohde Christiansen.
2076
2077         Before r125428 run-time methods (wrapped signals, slots or invokable
2078         functions) were subclasses of JSInternalFunction and therefore real
2079         function objects in the JavaScript sense. r125428 changed them to be
2080         just callable objects, but they did not have Function.prototype as
2081         prototype anymore for example nor was their name correct (resulting in
2082         a layout test failure).
2083
2084         This patch changes run-time methods back to being real function objects
2085         that have a correct name and have Function.prototype in their prototype
2086         change
2087
2088         The objects returned by JSObjectMakeFunctionWithCallbackInjected are
2089         light-weight internal function objects that do not support
2090         JSObject{Set/Get}Private. Therefore we inject our own prototype right
2091         before the Function.prototype prototype, which uses private data to
2092         store a pointer to our C++ QtRuntimeMethod object.  This complicates
2093         the retrieval of the pointer to that instance slightly, which is why
2094         this patch introduces the toRuntimeMethod convenience function that
2095         looks up our prototype first and does a check for type-safety.
2096
2097         At the same time the patch removes the length properties from the
2098         run-time method itself as well as connect/disconnect.  The length
2099         property on a function signifies the number of arguments, but in all
2100         three cases that number is actually variable, because of overloading.
2101         That is why we choose not to expose it in the first place.
2102
2103         In QtInstance we cache the JS wrapper objects for QtRuntimeMethod in a
2104         JSWeakObjectMap. JSWeakObjectMap requires the stored objects to be
2105         either the result of JSObjectMake or the global object of a context ref
2106         (AFAICS), which is ensured using an ASSERT. Objects created via
2107         JSObjectMakeFunctionWithCalllback do not fall into the required
2108         category, cause a failing assertion and can therefore not be stored in
2109         the weak object map.
2110
2111         Consequently this patch removes the use of JSWeakObjectMap again and
2112         goes back to the old way of using the internal Weak<> API, for the time
2113         being. In a future patch the storage will be simplified to not require
2114         the use of a weak object map cache for the run-time methods anymore.
2115
2116         * bridge/qt/qt_instance.cpp: Remove unused WeakMap code.
2117         * bridge/qt/qt_instance.h: Remove method cache.
2118         (QtInstance):
2119         * bridge/qt/qt_runtime.cpp:
2120         (JSC::Bindings::prototypeForSignalsAndSlots):
2121         (JSC::Bindings::QtRuntimeMethod::call):
2122         (JSC::Bindings::QtRuntimeMethod::jsObjectRef):
2123         (JSC::Bindings::QtRuntimeMethod::toRuntimeMethod):
2124         (Bindings):
2125         (JSC::Bindings::QtRuntimeMethod::connectOrDisconnect):
2126         * bridge/qt/qt_runtime.h:
2127         (QtRuntimeMethod): Remove unused member variables.
2128
2129 2012-08-29  Ilya Tikhonovsky  <loislo@chromium.org>
2130
2131         Unreviewed: Single line build fix.
2132
2133         * platform/graphics/BitmapImage.cpp:
2134         (WebCore::BitmapImage::reportMemoryUsage):
2135
2136 2012-08-24  Ilya Tikhonovsky  <loislo@chromium.org>
2137
2138         Web Inspector: NMI: Instrument WebCore part of the Image class hierarchy
2139         https://bugs.webkit.org/show_bug.cgi?id=94959
2140
2141         Drive by fix: remove unused GeneratedImage.cpp
2142
2143         Reviewed by Yury Semikhatsky.
2144
2145         * html/HTMLImageElement.cpp:
2146         (WebCore::HTMLImageElement::reportMemoryUsage):
2147         (WebCore):
2148         * html/HTMLImageElement.h:
2149         (HTMLImageElement):
2150         * loader/cache/CachedImage.cpp:
2151         (WebCore::CachedImage::reportMemoryUsage):
2152         * platform/graphics/BitmapImage.cpp:
2153         (WebCore::BitmapImage::reportMemoryUsage):
2154         (WebCore):
2155         * platform/graphics/BitmapImage.h:
2156         (FrameData):
2157         (BitmapImage):
2158         * platform/graphics/CrossfadeGeneratedImage.cpp:
2159         (WebCore::CrossfadeGeneratedImage::reportMemoryUsage):
2160         (WebCore):
2161         * platform/graphics/CrossfadeGeneratedImage.h:
2162         (WebCore):
2163         (CrossfadeGeneratedImage):
2164         * platform/graphics/GeneratedImage.cpp: Removed.
2165         * platform/graphics/GeneratedImage.h:
2166         (GeneratedImage):
2167         * platform/graphics/GeneratorGeneratedImage.cpp:
2168         (WebCore::GeneratedImage::reportMemoryUsage):
2169         (WebCore):
2170         (WebCore::GeneratorGeneratedImage::reportMemoryUsage):
2171         * platform/graphics/GeneratorGeneratedImage.h:
2172         (GeneratorGeneratedImage):
2173         * platform/graphics/Image.cpp:
2174         (WebCore::Image::reportMemoryUsage):
2175         (WebCore):
2176         * platform/graphics/Image.h:
2177         (WebCore):
2178         (Image):
2179         * svg/graphics/SVGImage.cpp:
2180         (WebCore::SVGImage::reportMemoryUsage):
2181         (WebCore):
2182         * svg/graphics/SVGImage.h:
2183         (SVGImage):
2184
2185 2012-08-29  Dominic Mazzoni  <dmazzoni@google.com>
2186
2187         AX: Canvas should have a distinct role
2188         https://bugs.webkit.org/show_bug.cgi?id=95248
2189
2190         Reviewed by Chris Fleizach.
2191
2192         Add new role for a canvas element, and a method to determine if
2193         a canvas has fallback content, so each platform can decide on the
2194         appropriate role mapping to use.
2195
2196         Test: accessibility/canvas-description-and-role.html
2197
2198         * accessibility/AccessibilityNodeObject.cpp:
2199         (WebCore::AccessibilityNodeObject::canvasHasFallbackContent):
2200         (WebCore):
2201         * accessibility/AccessibilityNodeObject.h:
2202         (AccessibilityNodeObject):
2203         * accessibility/AccessibilityObject.h:
2204         (WebCore::AccessibilityObject::isCanvas):
2205         (WebCore::AccessibilityObject::canvasHasFallbackContent):
2206         * accessibility/AccessibilityRenderObject.cpp:
2207         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2208         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2209         (WebCore::AccessibilityRenderObject::canHaveChildren):
2210         * accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
2211         (atkRole):
2212         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
2213         (createAccessibilityRoleMap):
2214         (-[WebAccessibilityObjectWrapper role]):
2215
2216 2012-08-29  Ryuan Choi  <ryuan.choi@samsung.com>
2217
2218         [EFL] Move several files to remove webkit1 dependency from WebCore.
2219         https://bugs.webkit.org/show_bug.cgi?id=95264
2220
2221         Reviewed by Gyuyoung Kim.
2222
2223         ColorChooserEfl.cpp, PopupMenuEfl.cpp and SearchPopupMenuEfl.cpp are WebKit1/Efl
2224         specific files and they can not be shared with WebKit2/Efl.
2225
2226         In order to remove WebKit dependency from WebCore, this patch moves them
2227         to WebKit/efl/WebCoreSupport.
2228
2229         No behavior change. Just a refactoring.
2230
2231         * PlatformEfl.cmake: Removed files which moved from sources and WebKit/efl/WebCoreSupport from includes.
2232         * WebCore.gypi: Ditto.
2233
2234 2012-08-28  Dominic Mazzoni  <dmazzoni@google.com>
2235
2236         AX: Focusable elements without a role should not be ignored
2237         https://bugs.webkit.org/show_bug.cgi?id=94302
2238
2239         Reviewed by Chris Fleizach.
2240
2241         Changes the accessibility logic so that a generic element that's focusable is
2242         not ignored for accessibility, and returns its inner text as its title. That way
2243         if you Tab to the element, a reasonable accessibility notification is generated.
2244
2245         One exception is the body element, because focusing the body is equivalent to
2246         blurring the current focused element and does not result in a "focus" accessibility
2247         notification.
2248
2249         Also fixes logic that determined if an element was contentEditable by making
2250         sure it catches the case with no attribute value (e.g. <div contentEditable>),
2251         which also implies contentEditable=true according to the spec.
2252
2253         Test: accessibility/focusable-div.html
2254
2255         * accessibility/AccessibilityRenderObject.cpp:
2256         (WebCore):
2257         (WebCore::nodeHasContentEditableAttributeSet):
2258         (WebCore::AccessibilityRenderObject::title):
2259         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2260
2261 2012-08-29  Adam Barth  <abarth@webkit.org>
2262
2263         Deploy ASCIILiteral hotness throughout WebCore
2264         https://bugs.webkit.org/show_bug.cgi?id=95282
2265
2266         Reviewed by Eric Seidel.
2267
2268         As recommended by http://trac.webkit.org/wiki/EfficientStrings.
2269         This patch converts all the DEFINE_STATIC_LOCAL Strings.
2270
2271         * Modules/indexeddb/IDBDatabase.cpp:
2272         (WebCore::IDBDatabase::transaction):
2273         * Modules/indexeddb/IDBIndex.cpp:
2274         (WebCore::IDBIndex::openCursor):
2275         (WebCore::IDBIndex::openKeyCursor):
2276         * Modules/indexeddb/IDBObjectStore.cpp:
2277         (WebCore::IDBObjectStore::openCursor):
2278         * Modules/mediastream/MediaStreamTrack.cpp:
2279         (WebCore::MediaStreamTrack::kind):
2280         * css/CSSPropertySourceData.cpp:
2281         (WebCore::CSSPropertySourceData::toString):
2282         * dom/Document.cpp:
2283         (WebCore::Document::processHttpEquiv):
2284         * dom/MicroDataItemList.cpp:
2285         (WebCore::MicroDataItemList::undefinedItemType):
2286         * dom/ScriptElement.cpp:
2287         (WebCore::ScriptElement::notifyFinished):
2288         * editing/MarkupAccumulator.cpp:
2289         (WebCore::MarkupAccumulator::shouldAddNamespaceElement):
2290         * html/FormController.cpp:
2291         (WebCore::formStateSignature):
2292         * html/HTMLTrackElement.cpp:
2293         (WebCore::HTMLTrackElement::canLoadUrl):
2294         * html/ImageInputType.cpp:
2295         (WebCore::ImageInputType::appendFormData):
2296         * html/canvas/CanvasRenderingContext2D.cpp:
2297         (WebCore::CanvasRenderingContext2D::getImageData):
2298         * html/parser/XSSAuditor.cpp:
2299         (WebCore::XSSAuditor::init):
2300         (WebCore::XSSAuditor::filterToken):
2301         (WebCore::XSSAuditor::eraseDangerousAttributesIfInjected):
2302         * inspector/InspectorCSSAgent.cpp:
2303         (WebCore::computePseudoClassMask):
2304         * inspector/InspectorDebuggerAgent.cpp:
2305         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
2306         * inspector/InspectorIndexedDBAgent.cpp:
2307         (WebCore):
2308         * inspector/InspectorOverlay.cpp:
2309         * inspector/InspectorStyleSheet.cpp:
2310         (WebCore::InspectorStyle::setPropertyText):
2311         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
2312         * loader/ImageLoader.cpp:
2313         (WebCore::ImageLoader::notifyFinished):
2314         * loader/MainResourceLoader.cpp:
2315         (WebCore::MainResourceLoader::didReceiveResponse):
2316         * loader/TextTrackLoader.cpp:
2317         (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
2318         * loader/icon/IconDatabase.cpp:
2319         (WebCore::IconDatabase::defaultDatabaseFilename):
2320         * page/ContentSecurityPolicy.cpp:
2321         (WebCore::CSPDirectiveList::allowJavaScriptURLs):
2322         (WebCore::CSPDirectiveList::allowInlineEventHandlers):
2323         (WebCore::CSPDirectiveList::allowInlineScript):
2324         (WebCore::CSPDirectiveList::allowInlineStyle):
2325         (WebCore::CSPDirectiveList::allowEval):
2326         (WebCore::CSPDirectiveList::allowScriptNonce):
2327         (WebCore::CSPDirectiveList::allowScriptFromSource):
2328         (WebCore::CSPDirectiveList::allowObjectFromSource):
2329         (WebCore::CSPDirectiveList::allowChildFrameFromSource):
2330         (WebCore::CSPDirectiveList::allowImageFromSource):
2331         (WebCore::CSPDirectiveList::allowStyleFromSource):
2332         (WebCore::CSPDirectiveList::allowFontFromSource):
2333         (WebCore::CSPDirectiveList::allowMediaFromSource):
2334         (WebCore::CSPDirectiveList::allowConnectToSource):
2335         (WebCore::CSPDirectiveList::allowFormAction):
2336         (WebCore::CSPDirectiveList::addDirective):
2337         * page/Page.cpp:
2338         (WebCore::Page::groupName):
2339         * platform/animation/Animation.cpp:
2340         (WebCore::Animation::initialAnimationName):
2341         * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
2342         (WebCore::CookieDatabaseBackingStore::upgradeTableIfNeeded):
2343         * platform/blackberry/RenderThemeBlackBerry.cpp:
2344         (WebCore::RenderThemeBlackBerry::defaultGUIFont):
2345         * platform/chromium/ClipboardUtilitiesChromium.cpp:
2346         (WebCore::replaceNewlinesWithWindowsStyleNewlines):
2347         * platform/efl/RenderThemeEfl.cpp:
2348         (WebCore::RenderThemeEfl::systemFont):
2349         * platform/graphics/filters/CustomFilterCompiledProgram.cpp:
2350         (WebCore):
2351         * platform/win/ClipboardUtilitiesWin.cpp:
2352         (WebCore::replaceNewlinesWithWindowsStyleNewlines):
2353         * rendering/RenderThemeChromiumSkia.cpp:
2354         (WebCore::RenderThemeChromiumSkia::defaultGUIFont):
2355         * svg/SVGAngle.cpp:
2356         (WebCore::SVGAngle::valueAsString):
2357         * svg/SVGTransform.cpp:
2358         (WebCore::SVGTransform::transformTypePrefixForParsing):
2359         * xml/parser/XMLTokenizer.cpp:
2360         (WebCore::XMLTokenizer::nextToken):
2361         * xml/parser/XMLTreeBuilder.cpp:
2362         (WebCore::XMLTreeBuilder::processXMLEntity):
2363
2364 2012-08-28  Adam Barth  <abarth@webkit.org>
2365
2366         Deploy ASCIILiteral and StringBuilder in more places in WebCore
2367         https://bugs.webkit.org/show_bug.cgi?id=95291
2368
2369         Reviewed by Benjamin Poulain.
2370
2371         I wanted to deploy ASCIILiteral in more places in WebCore, but there's
2372         a bunch of code that should be using StringBuilder, which I couldn't
2373         resist deploying as well.
2374
2375         * Modules/mediastream/PeerConnection00.cpp:
2376         (WebCore::PeerConnection00::createIceOptions):
2377         * bindings/js/JSBlobCustom.cpp:
2378         (WebCore::JSBlobConstructor::constructJSBlob):
2379         * bindings/v8/V8LazyEventListener.cpp:
2380         (WebCore::V8LazyEventListener::prepareListenerObject):
2381         * bindings/v8/custom/V8BlobCustom.cpp:
2382         (WebCore::V8Blob::constructorCallback):
2383         * css/CSSCanvasValue.cpp:
2384         (WebCore::CSSCanvasValue::customCssText):
2385         * css/CSSCrossfadeValue.cpp:
2386         (WebCore::CSSCrossfadeValue::customCssText):
2387         * css/CSSPageRule.cpp:
2388         (WebCore::CSSPageRule::selectorText):
2389         * css/CSSSelector.cpp:
2390         (WebCore::CSSSelector::selectorText):
2391         * editing/EditorCommand.cpp:
2392         (WebCore::executeToggleStyleInList):
2393         * editing/SmartReplaceICU.cpp:
2394         (WebCore::getSmartSet):
2395         * editing/markup.cpp:
2396         (WebCore::fillContainerFromString):
2397         * html/HTMLTitleElement.cpp:
2398         (WebCore::HTMLTitleElement::text):
2399         * inspector/InspectorConsoleAgent.cpp:
2400         (WebCore::InspectorConsoleAgent::didFailLoading):
2401         * page/EventSource.cpp:
2402         (WebCore::EventSource::didReceiveResponse):
2403         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
2404         (WebCore::platformLanguage):
2405         * platform/graphics/GraphicsLayer.cpp:
2406         (WebCore::GraphicsLayer::animationNameForTransition):
2407         * platform/network/blackberry/rss/RSSAtomParser.cpp:
2408         (WebCore::RSSAtomParser::parseContent):
2409         * platform/sql/SQLiteDatabase.cpp:
2410         (WebCore::SQLiteDatabase::open):
2411         (WebCore::SQLiteDatabase::setFullsync):
2412         (WebCore::SQLiteDatabase::maximumSize):
2413         (WebCore::SQLiteDatabase::pageSize):
2414         (WebCore::SQLiteDatabase::freeSpaceSize):
2415         (WebCore::SQLiteDatabase::totalSize):
2416         (WebCore::SQLiteDatabase::tableExists):
2417         (WebCore::SQLiteDatabase::clearAllTables):
2418         (WebCore::SQLiteDatabase::runVacuumCommand):
2419         (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
2420         (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
2421         * platform/win/FileSystemWin.cpp:
2422         (WebCore::bundleName):
2423         (WebCore::storageDirectory):
2424         * plugins/PluginStream.cpp:
2425         (WebCore::PluginStream::startStream):
2426         * rendering/RenderMenuList.cpp:
2427         (WebCore::RenderMenuList::setTextFromOption):
2428
2429 2012-08-29  Yoshifumi Inoue  <yosin@chromium.org>
2430
2431         [Forms] Make HTMLInputElement::blur()/focus() override-able by input type
2432         https://bugs.webkit.org/show_bug.cgi?id=95279
2433
2434         Reviewed by Hajime Morrita.
2435
2436         This patch allows HTMLInputElement::focus() and blur() functions to be
2437         override-able.
2438
2439         This patch is part of Shift+Tab focus navigation change for multiple
2440         field time input UI, bug 95168.
2441
2442         No new tests. This patch doesn't change behavior.
2443
2444         * dom/Element.h:
2445         (WebCore::Element): Changed blur() to virtual function.
2446         * html/HTMLInputElement.cpp:
2447         (WebCore::HTMLInputElement::blur): Added to call InputType::blur().
2448         (WebCore::HTMLInputElement::defaultBlur): Added for default implementation of blur().
2449         (WebCore::HTMLInputElement::defaultFocus): Added for default implementation of focus().
2450         (WebCore::HTMLInputElement::focus): Added to call InputType::focus()
2451         * html/HTMLInputElement.h:
2452         (HTMLInputElement): Added declarations of blur(), defaultBlur(), defaultFocus() and focus().
2453         * html/InputType.cpp:
2454         (WebCore::InputType::blur): Added to call HTMLInputElement::defaultBlur() as default implementation.
2455         (WebCore::InputType::focus):  Added to call HTMLInputElement::defaultFocus() as default implementation.
2456         * html/InputType.h:
2457         (InputType): Added declarations of blur(), and focus().
2458
2459 2012-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2460
2461         Unreviewed, rolling out r126963.
2462         http://trac.webkit.org/changeset/126963
2463         https://bugs.webkit.org/show_bug.cgi?id=95298
2464
2465         Does not compile with clang (Requested by abarth on #webkit).
2466
2467         * html/HTMLInputElement.cpp:
2468         * html/HTMLInputElement.h:
2469         (HTMLInputElement):
2470         * html/InputType.cpp:
2471         * html/InputType.h:
2472         (InputType):
2473
2474 2012-08-28  Yoshifumi Inoue  <yosin@chromium.org>
2475
2476         [Forms] Make HTMLInputElement::blur()/focus() override-able by input type
2477         https://bugs.webkit.org/show_bug.cgi?id=95279
2478
2479         Reviewed by Hajime Morrita.
2480
2481         This patch allows HTMLInputElement::focus() and blur() functions to be
2482         override-able.
2483
2484         This patch is part of Shift+Tab focus navigation change for multiple
2485         field time input UI, bug 95168.
2486
2487         No new tests. This patch doesn't change behavior.
2488
2489         * html/HTMLInputElement.cpp:
2490         (WebCore::HTMLInputElement::blur): Added to call InputType::blur().
2491         (WebCore::HTMLInputElement::defaultBlur): Added for default implementation of blur().
2492         (WebCore::HTMLInputElement::defaultFocus): Added for default implementation of focus().
2493         (WebCore::HTMLInputElement::focus): Added to call InputType::focus()
2494         * html/HTMLInputElement.h:
2495         (HTMLInputElement): Added declarations of blur(), defaultBlur(), defaultFocus() and focus().
2496         * html/InputType.cpp:
2497         (WebCore::InputType::blur): Added to call HTMLInputElement::defaultBlur() as default implementation.
2498         (WebCore::InputType::focus):  Added to call HTMLInputElement::defaultFocus() as default implementation.
2499         * html/InputType.h:
2500         (InputType): Added declarations of blur(), and focus().
2501
2502 2012-08-28  Geoffrey Garen  <ggaren@apple.com>
2503
2504         Added JSScope::objectInScope(), and refactored callers to use it
2505         https://bugs.webkit.org/show_bug.cgi?id=95281
2506
2507         Reviewed by Gavin Barraclough.
2508
2509         * bindings/js/JSJavaScriptCallFrameCustom.cpp:
2510         (WebCore::JSJavaScriptCallFrame::scopeChain):
2511         (WebCore::JSJavaScriptCallFrame::scopeType):
2512
2513 2012-08-28  Andrei Bucur  <abucur@adobe.com>
2514
2515         Layout Test fast/repaint/japanese-rl-selection-repaint-in-regions.html is failing after r126304
2516         https://bugs.webkit.org/show_bug.cgi?id=94730
2517
2518         Reviewed by Adam Barth.
2519
2520         Having an intermediary node between the named flow renderers and the view may introduce subtle bugs that are hard to track. Also it doesn't fix
2521         the pointless destruction of a RenderNamedFlowThread in some special cases (e.g. region->detach, destroy flow thread, region->attach, recreate flow
2522         thread).
2523         This patch proposes a new way of lazily destroying the renderers for NULL named flows, at layout time. When a renderer has no content nodes or regions
2524         attached, its named flow is considered to be in the NULL state. When starting a layout process it is a good time to go through the renderers of the
2525         NULL named flows and destroy them.
2526
2527         Tests: No functional change, the old tests should pass without issues.
2528
2529         * CMakeLists.txt:
2530         * GNUmakefile.list.am:
2531         * Target.pri:
2532         * WebCore.gypi:
2533         * WebCore.vcproj/WebCore.vcproj:
2534         * WebCore.xcodeproj/project.pbxproj:
2535         * dom/WebKitNamedFlow.cpp:
2536         (WebCore::WebKitNamedFlow::getRegionsByContent):
2537         (WebCore::WebKitNamedFlow::getRegions):
2538         (WebCore::WebKitNamedFlow::setRenderer):
2539         * rendering/FlowThreadController.cpp:
2540         (WebCore::FlowThreadController::FlowThreadController):
2541         (WebCore::FlowThreadController::ensureRenderFlowThreadWithName):
2542         (WebCore::FlowThreadController::layoutRenderNamedFlowThreads):
2543         * rendering/FlowThreadController.h:
2544         (WebCore):
2545         (FlowThreadController):
2546         * rendering/RenderFlowThreadContainer.cpp: Removed.
2547         * rendering/RenderFlowThreadContainer.h: Removed.
2548         * rendering/RenderNamedFlowThread.cpp:
2549         (WebCore::RenderNamedFlowThread::RenderNamedFlowThread):
2550         (WebCore::RenderNamedFlowThread::~RenderNamedFlowThread):
2551         (WebCore::RenderNamedFlowThread::addRegionToThread):
2552         (WebCore::RenderNamedFlowThread::removeRegionFromThread):
2553         (WebCore::RenderNamedFlowThread::registerNamedFlowContentNode):
2554         (WebCore::RenderNamedFlowThread::unregisterNamedFlowContentNode):
2555         (WebCore::RenderNamedFlowThread::setMarkForDestruction):
2556         (WebCore):
2557         (WebCore::RenderNamedFlowThread::resetMarkForDestruction):
2558         (WebCore::RenderNamedFlowThread::isMarkedForDestruction):
2559         * rendering/RenderNamedFlowThread.h:
2560         (RenderNamedFlowThread):
2561         * rendering/RenderObject.cpp:
2562         (WebCore::RenderObject::markContainingBlocksForLayout):
2563         * rendering/RenderObject.h:
2564
2565 2012-08-28  Kenichi Ishibashi  <bashi@chromium.org>
2566
2567         style->fontMetrics() should be available when setting line-height
2568         https://bugs.webkit.org/show_bug.cgi?id=93327
2569
2570         Reviewed by Darin Adler.
2571
2572         Setting line-height assumes the fontMetrics are available for the affected font, but
2573         the fontMetrics won't be available immediately after setting other properties like
2574         font-size. Call styleResolver->updateFont() before setting line-height to update fontMetrics.
2575
2576         Added a test case to fast/canvas/crash-set-font.html.
2577
2578         * html/canvas/CanvasRenderingContext2D.cpp:
2579         (WebCore::CanvasRenderingContext2D::setFont):
2580         Call styleResolver->updateFont() before styleResolver->applyPropertyToCurrentStyle(CSSPropertyLineHeight,...)
2581
2582 2012-08-28  David Reveman  <reveman@chromium.org>
2583
2584         [Chromium] Scheduler will never process a commit until it receives a vsync tick.
2585         https://bugs.webkit.org/show_bug.cgi?id=94721
2586
2587         Reviewed by James Robinson.
2588
2589         Add updateResourcesComplete callback to CCScheduler and use this to
2590         indicate completion of texture updates instead of calling
2591         CCSchedulerClient::hasMoreResourceUpdates when receiving a vsync tick.
2592
2593         Unit tests: CCTextureUpdateControllerTest.UpdateMoreTextures
2594                     CCTextureUpdateControllerTest.HasMoreUpdates
2595                     CCTextureUpdateControllerTest.UpdatesCompleteInFiniteTime
2596
2597         * platform/graphics/chromium/cc/CCScheduler.cpp:
2598         (WebCore::CCScheduler::CCScheduler):
2599         (WebCore::CCScheduler::beginFrameComplete):
2600         (WebCore::CCScheduler::vsyncTick):
2601         (WebCore::CCScheduler::updateResourcesComplete):
2602         (WebCore):
2603         (WebCore::CCScheduler::processScheduledActions):
2604         * platform/graphics/chromium/cc/CCScheduler.h:
2605         (CCSchedulerClient):
2606         (CCScheduler):
2607         * platform/graphics/chromium/cc/CCTextureUpdateController.cpp:
2608         (WebCore::CCTextureUpdateController::CCTextureUpdateController):
2609         (WebCore::CCTextureUpdateController::updateMoreTextures):
2610         (WebCore::CCTextureUpdateController::discardUploads):
2611         (WebCore::CCTextureUpdateController::onTimerFired):
2612         (WebCore::CCTextureUpdateController::updateMoreTexturesIfEnoughTimeRemaining):
2613         * platform/graphics/chromium/cc/CCTextureUpdateController.h:
2614         (CCTextureUpdateControllerClient):
2615         (WebCore::CCTextureUpdateControllerClient::~CCTextureUpdateControllerClient):
2616         (WebCore):
2617         (WebCore::CCTextureUpdateController::create):
2618         (CCTextureUpdateController):
2619         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2620         (WebCore::CCThreadProxy::didLoseContextOnImplThread):
2621         (WebCore::CCThreadProxy::beginFrameCompleteOnImplThread):
2622         (WebCore::CCThreadProxy::scheduledActionCommit):
2623         (WebCore::CCThreadProxy::updateTexturesCompleted):
2624         (WebCore):
2625         * platform/graphics/chromium/cc/CCThreadProxy.h:
2626         (WebCore):
2627
2628 2012-08-28  John Bates  <jbates@google.com>
2629
2630         [Chromium] Update some compositor trace events
2631         https://bugs.webkit.org/show_bug.cgi?id=95275
2632
2633         Reviewed by James Robinson.
2634
2635         * platform/graphics/chromium/cc/CCFrameRateController.cpp:
2636         (WebCore::CCFrameRateController::setActive):
2637         * platform/graphics/chromium/cc/CCThreadProxy.cpp:
2638         (WebCore::CCThreadProxy::onVSyncParametersChanged):
2639
2640 2012-08-28  Adam Barth  <abarth@webkit.org>
2641
2642         crypto.getRandomValues should throw an exception when given a big array
2643         https://bugs.webkit.org/show_bug.cgi?id=95269
2644
2645         Reviewed by Eric Seidel.
2646
2647         The W3C Web Cryptography Working Group has taken up specifying
2648         window.crypto. The latest draft calls for getRandomValues to throw an
2649         exception when given an array that's large.
2650
2651         Test: security/crypto-random-values-limits.html
2652
2653         * page/Crypto.cpp:
2654         (WebCore::Crypto::getRandomValues):
2655
2656 2012-08-28  Tom Sepez  <tsepez@chromium.org>
2657
2658         CSP doesn't turn off eval, etc. in Web Workers
2659         https://bugs.webkit.org/show_bug.cgi?id=93392
2660
2661         Reviewed by Adam Barth.
2662
2663         On the JSC side, the blocking of eval() in workers was handled correctly, so it is
2664         a matter of adding calls check the policy for setTimeout and SetInterval.  On the v8
2665         side, it is a matter of handling the above, plus eval().
2666
2667         On the v8 side, the v8 context isn't available when the callers want to disable eval.
2668         Rather than creating it earlier, which is problematic, remember the setting in the
2669         WorkerContextExecutionProxy and apply before the next call to its evaluate() method.
2670
2671         Tests: http/tests/security/contentSecurityPolicy/worker-eval-blocked.html
2672                http/tests/security/contentSecurityPolicy/worker-function-function-blocked.html
2673
2674         * bindings/js/JSWorkerContextCustom.cpp:
2675         (WebCore::JSWorkerContext::setTimeout):
2676         (WebCore::JSWorkerContext::setInterval):
2677         * bindings/v8/WorkerContextExecutionProxy.cpp:
2678         (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
2679         (WebCore::WorkerContextExecutionProxy::evaluate):
2680         (WebCore::WorkerContextExecutionProxy::setEvalAllowed):
2681         (WebCore):
2682         * bindings/v8/WorkerContextExecutionProxy.h:
2683         (WorkerContextExecutionProxy):
2684         * bindings/v8/WorkerScriptController.cpp:
2685         (WebCore::WorkerScriptController::disableEval):
2686         * bindings/v8/custom/V8WorkerContextCustom.cpp:
2687         (WebCore::SetTimeoutOrInterval):
2688
2689 2012-08-28  Aaron Colwell  <acolwell@chromium.org>
2690
2691         Make MediaSource event dispatch asynchronous.
2692         https://bugs.webkit.org/show_bug.cgi?id=95217
2693
2694         Reviewed by Eric Carlson.
2695
2696         Update MediaSource & SourceBufferList to use a GenericEventQueue to dispatch events 
2697         instead of using synchronous dispatch.
2698
2699         Test: http/tests/media/media-source/video-media-source-async-events.html
2700
2701         * Modules/mediasource/MediaSource.cpp:
2702         (WebCore::MediaSource::MediaSource): Create GenericEventQueue & pass a pointer to SourceBufferList.
2703         (WebCore::MediaSource::addSourceBuffer):
2704         (WebCore::MediaSource::setReadyState): Updated to use new scheduleEvent() helper method.
2705         (WebCore::MediaSource::scheduleEvent): New method for creating events and adding them to the event queue.
2706         (WebCore):
2707         * Modules/mediasource/MediaSource.h: Added GenericEventQueue member and scheduleEvent() signature.
2708         (MediaSource):
2709         * Modules/mediasource/SourceBufferList.cpp:
2710         (WebCore::SourceBufferList::SourceBufferList):
2711         (WebCore::SourceBufferList::remove):
2712         (WebCore::SourceBufferList::createAndFireEvent): Updated to queue events instead of synchronously dispatch them.
2713         * Modules/mediasource/SourceBufferList.h:
2714         (WebCore):
2715         (WebCore::SourceBufferList::create):
2716         (SourceBufferList):
2717
2718 2012-08-28  Leandro Gracia Gil  <leandrogracia@chromium.org>
2719
2720         Content detection should not disrupt the page behaviour
2721         https://bugs.webkit.org/show_bug.cgi?id=94727
2722
2723         Reviewed by Adam Barth.
2724
2725         Tested by WebViewTest::DetectContentAroundPosition.
2726
2727         * dom/Node.cpp:
2728         (WebCore::Node::willRespondToTouchEvents): checks if a node listens to touch events. Very similar to willRespondToMouseClickEvents.
2729         (WebCore):
2730         * dom/Node.h:
2731         (Node):
2732
2733 2012-08-28  Simon Fraser  <simon.fraser@apple.com>
2734
2735         Handle sticky that overflows its container
2736         https://bugs.webkit.org/show_bug.cgi?id=95260
2737
2738         Reviewed by Ojan Vafai.
2739
2740         When an element with position:sticky overflows its container,
2741         don't have the sticky code push it back inside that container.
2742         It will just never get offset in the sticky direction.
2743
2744         Test: fast/css/sticky/sticky-overflowing.html
2745
2746         * rendering/RenderBoxModelObject.cpp:
2747         (WebCore::RenderBoxModelObject::stickyPositionOffset):
2748
2749 2012-08-28  Mark Pilgrim  <pilgrim@chromium.org>
2750
2751         [Chromium] Remove decodeAudioFileData from PlatformSupport
2752         https://bugs.webkit.org/show_bug.cgi?id=95250
2753
2754         Reviewed by Adam Barth.
2755
2756         Part of a refactoring series. See tracking bug 82948.
2757
2758         * platform/audio/chromium/AudioBusChromium.cpp:
2759         (WebCore::decodeAudioFileData):
2760         (WebCore):
2761         (WebCore::AudioBus::loadPlatformResource):
2762         (WebCore::createBusFromInMemoryAudioFile):
2763         * platform/chromium/PlatformSupport.h:
2764         (PlatformSupport):
2765
2766 2012-08-27  Alexandru Chiculita  <achicu@adobe.com>
2767
2768         [CSS Filters] Filters should render using sRGB until the specification says how it works
2769         https://bugs.webkit.org/show_bug.cgi?id=94372
2770
2771         Reviewed by Dirk Schulze.
2772
2773         The short-hand version of the CSS Filters should render using sRGB until a CSS property is added 
2774         to allow choosing the color space to be used when computing the filters. 
2775         For now I've just made all the CSS filters use sRGB by defualt. Note that this change has no effect on SVG filters.
2776
2777         Test: css3/filters/null-effect-check.html
2778
2779         * rendering/FilterEffectRenderer.cpp:
2780         (WebCore::FilterEffectRenderer::build):
2781
2782 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
2783
2784         Unreviewed, rolling out r126914.
2785         http://trac.webkit.org/changeset/126914
2786         https://bugs.webkit.org/show_bug.cgi?id=95239
2787
2788         it breaks everything and fixes nothing (Requested by pizlo on
2789         #webkit).
2790
2791         * Modules/geolocation/Geolocation.cpp:
2792         (WebCore::Geolocation::Watchers::find):
2793         (WebCore::Geolocation::Watchers::remove):
2794         * Modules/indexeddb/IDBDatabase.cpp:
2795         (WebCore::IDBDatabase::objectStoreNames):
2796         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
2797         (WebCore::IDBDatabaseBackendImpl::metadata):
2798         * Modules/indexeddb/IDBFactoryBackendImpl.cpp:
2799         (WebCore::IDBFactoryBackendImpl::deleteDatabase):
2800         (WebCore::IDBFactoryBackendImpl::openBackingStore):
2801         (WebCore::IDBFactoryBackendImpl::open):
2802         * Modules/indexeddb/IDBObjectStore.cpp:
2803         (WebCore::IDBObjectStore::indexNames):
2804         (WebCore::IDBObjectStore::put):
2805         (WebCore::IDBObjectStore::index):
2806         (WebCore::IDBObjectStore::deleteIndex):
2807         * Modules/indexeddb/IDBObjectStoreBackendImpl.cpp:
2808         (WebCore::IDBObjectStoreBackendImpl::metadata):
2809         (WebCore::makeIndexWriters):
2810         (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
2811         * Modules/indexeddb/IDBTransaction.cpp:
2812         (WebCore::IDBTransaction::objectStore):
2813         (WebCore::IDBTransaction::objectStoreDeleted):
2814         (WebCore::IDBTransaction::onAbort):
2815         (WebCore::IDBTransaction::dispatchEvent):
2816         * Modules/webdatabase/AbstractDatabase.cpp:
2817         (WebCore::AbstractDatabase::performOpenAndVerify):
2818         * Modules/webdatabase/DatabaseTracker.cpp:
2819         (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
2820         * Modules/webdatabase/OriginUsageRecord.cpp:
2821         (WebCore::OriginUsageRecord::diskUsage):
2822         * Modules/webdatabase/SQLTransactionCoordinator.cpp:
2823         (WebCore::SQLTransactionCoordinator::acquireLock):
2824         (WebCore::SQLTransactionCoordinator::releaseLock):
2825         (WebCore::SQLTransactionCoordinator::shutdown):
2826         * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
2827         (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
2828         * Modules/webdatabase/chromium/QuotaTracker.cpp:
2829         (WebCore::QuotaTracker::getDatabaseSizeAndSpaceAvailableToOrigin):
2830         (WebCore::QuotaTracker::updateDatabaseSize):
2831         * Modules/websockets/WebSocketDeflateFramer.cpp:
2832         (WebCore::WebSocketExtensionDeflateFrame::processResponse):
2833         * Modules/websockets/WebSocketExtensionDispatcher.cpp:
2834         (WebCore::WebSocketExtensionDispatcher::appendAcceptedExtension):
2835         * accessibility/AXObjectCache.cpp:
2836         (WebCore::AXObjectCache::~AXObjectCache):
2837         * bindings/gobject/DOMObjectCache.cpp:
2838         (WebKit::DOMObjectCache::clearByFrame):
2839         * bindings/js/DOMObjectHashTableMap.h:
2840         (WebCore::DOMObjectHashTableMap::~DOMObjectHashTableMap):
2841         (WebCore::DOMObjectHashTableMap::get):
2842         * bindings/js/JSDOMBinding.cpp:
2843         (WebCore::cacheDOMStructure):
2844         * bindings/js/JSDOMGlobalObject.cpp:
2845         (WebCore::JSDOMGlobalObject::visitChildren):
2846         * bindings/js/JSDOMGlobalObject.h:
2847         (WebCore::getDOMConstructor):
2848         * bindings/js/PageScriptDebugServer.cpp:
2849         (WebCore::PageScriptDebugServer::addListener):
2850         (WebCore::PageScriptDebugServer::removeListener):
2851         * bindings/js/ScriptCachedFrameData.cpp:
2852         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
2853         (WebCore::ScriptCachedFrameData::restore):
2854         * bindings/js/ScriptController.cpp:
2855         (WebCore::ScriptController::~ScriptController):
2856         (WebCore::ScriptController::clearWindowShell):
2857         (WebCore::ScriptController::attachDebugger):
2858         (WebCore::ScriptController::updateDocument):
2859         (WebCore::ScriptController::createRootObject):
2860         (WebCore::ScriptController::collectIsolatedContexts):
2861         (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
2862         (WebCore::ScriptController::clearScriptObjects):
2863         * bindings/js/ScriptController.h:
2864         (WebCore::ScriptController::windowShell):
2865         (WebCore::ScriptController::existingWindowShell):
2866         * bindings/js/ScriptDebugServer.cpp:
2867         (WebCore::ScriptDebugServer::setBreakpoint):
2868         (WebCore::ScriptDebugServer::removeBreakpoint):
2869         (WebCore::ScriptDebugServer::hasBreakpoint):
2870         * bindings/js/SerializedScriptValue.cpp:
2871         (WebCore::CloneSerializer::checkForDuplicate):
2872         (WebCore::CloneSerializer::dumpIfTerminal):
2873         (WebCore::CloneSerializer::write):
2874         * bindings/scripts/CodeGeneratorV8.pm:
2875         (GenerateImplementation):
2876         * bindings/scripts/test/V8/V8Float64Array.cpp:
2877         (WebCore::V8Float64Array::GetRawTemplate):
2878         (WebCore::V8Float64Array::GetTemplate):
2879         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2880         (WebCore::V8TestActiveDOMObject::GetRawTemplate):
2881         (WebCore::V8TestActiveDOMObject::GetTemplate):
2882         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2883         (WebCore::V8TestCustomNamedGetter::GetRawTemplate):
2884         (WebCore::V8TestCustomNamedGetter::GetTemplate):
2885         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2886         (WebCore::V8TestEventConstructor::GetRawTemplate):
2887         (WebCore::V8TestEventConstructor::GetTemplate):
2888         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2889         (WebCore::V8TestEventTarget::GetRawTemplate):
2890         (WebCore::V8TestEventTarget::GetTemplate):
2891         * bindings/scripts/test/V8/V8TestException.cpp:
2892         (WebCore::V8TestException::GetRawTemplate):
2893         (WebCore::V8TestException::GetTemplate):
2894         * bindings/scripts/test/V8/V8TestInterface.cpp:
2895         (WebCore::V8TestInterface::GetRawTemplate):
2896         (WebCore::V8TestInterface::GetTemplate):
2897         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2898         (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
2899         (WebCore::V8TestMediaQueryListListener::GetTemplate):
2900         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2901         (WebCore::V8TestNamedConstructor::GetRawTemplate):
2902         (WebCore::V8TestNamedConstructor::GetTemplate):
2903         * bindings/scripts/test/V8/V8TestNode.cpp:
2904         (WebCore::V8TestNode::GetRawTemplate):
2905         (WebCore::V8TestNode::GetTemplate):
2906         * bindings/scripts/test/V8/V8TestObj.cpp:
2907         (WebCore::V8TestObj::GetRawTemplate):
2908         (WebCore::V8TestObj::GetTemplate):
2909         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2910         (WebCore::V8TestSerializedScriptValueInterface::GetRawTemplate):
2911         (WebCore::V8TestSerializedScriptValueInterface::GetTemplate):
2912         * bindings/v8/DOMWrapperWorld.cpp:
2913         (WebCore::DOMWrapperWorld::deallocate):
2914         (WebCore::DOMWrapperWorld::getOrCreateIsolatedWorld):
2915         * bindings/v8/NPV8Object.cpp:
2916         (WebCore::freeV8NPObject):
2917         (WebCore::npCreateV8ScriptObject):
2918         * bindings/v8/ScriptController.cpp:
2919         (WebCore::ScriptController::clearScriptObjects):
2920         (WebCore::ScriptController::resetIsolatedWorlds):
2921         (WebCore::ScriptController::evaluateInIsolatedWorld):
2922         (WebCore::ScriptController::setIsolatedWorldSecurityOrigin):
2923         (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
2924         (WebCore::ScriptController::collectIsolatedContexts):
2925         * bindings/v8/SerializedScriptValue.cpp:
2926         * bindings/v8/V8DOMMap.h:
2927         (WebCore::WeakReferenceMap::removeIfPresent):
2928         (WebCore::WeakReferenceMap::visit):
2929         * bindings/v8/V8GCController.cpp:
2930         (WebCore::enumerateGlobalHandles):
2931         * bindings/v8/V8PerContextData.cpp:
2932         (WebCore::V8PerContextData::dispose):
2933         * bindings/v8/npruntime.cpp:
2934         * bridge/IdentifierRep.cpp:
2935         (WebCore::IdentifierRep::get):
2936         * bridge/NP_jsobject.cpp:
2937         (ObjectMap::add):
2938         (ObjectMap::remove):
2939         * bridge/jni/jsc/JavaClassJSC.cpp:
2940         (JavaClass::~JavaClass):
2941         * bridge/qt/qt_instance.cpp:
2942         (JSC::Bindings::WeakMap::set):
2943         * bridge/runtime_root.cpp:
2944         (JSC::Bindings::RootObject::invalidate):
2945         * css/CSSCanvasValue.cpp:
2946         (WebCore::CSSCanvasValue::canvasChanged):
2947         (WebCore::CSSCanvasValue::canvasResized):
2948         * css/CSSComputedStyleDeclaration.cpp:
2949         (WebCore::counterToCSSValue):
2950         * css/CSSCrossfadeValue.cpp:
2951         (WebCore::CSSCrossfadeValue::crossfadeChanged):
2952         * css/CSSFontFaceSource.cpp:
2953         (WebCore::CSSFontFaceSource::getFontData):
2954         * css/CSSFontSelector.cpp:
2955         (WebCore::CSSFontSelector::addFontFaceRule):
2956         (WebCore::CSSFontSelector::getFontData):
2957         * css/CSSImageGeneratorValue.cpp:
2958         (WebCore::CSSImageGeneratorValue::addClient):
2959         (WebCore::CSSImageGeneratorValue::removeClient):
2960         (WebCore::CSSImageGeneratorValue::getImage):
2961         * css/CSSSegmentedFontFace.cpp:
2962         (WebCore::CSSSegmentedFontFace::getFontData):
2963         * css/CSSSelector.cpp:
2964         (WebCore::CSSSelector::parsePseudoType):
2965         * css/CSSValuePool.cpp:
2966         (WebCore::CSSValuePool::createColorValue):
2967         (WebCore::CSSValuePool::createFontFamilyValue):
2968         (WebCore::CSSValuePool::createFontFaceValue):
2969         * css/PropertySetCSSStyleDeclaration.cpp:
2970         (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM):
2971         * css/StyleBuilder.cpp:
2972         (WebCore::ApplyPropertyCounter::applyInheritValue):
2973         (WebCore::ApplyPropertyCounter::applyValue):
2974         * css/StyleResolver.cpp:
2975         (WebCore::StyleResolver::collectFeatures):
2976         (WebCore::StyleResolver::ruleSetForScope):
2977         (WebCore::StyleResolver::appendAuthorStylesheets):
2978         (WebCore::StyleResolver::sweepMatchedPropertiesCache):
2979         (WebCore::StyleResolver::collectMatchingRulesForList):
2980         * css/StyleSheetContents.cpp:
2981         (WebCore::StyleSheetContents::parserAddNamespace):
2982         (WebCore::StyleSheetContents::determineNamespace):
2983         * dom/CheckedRadioButtons.cpp:
2984         (WebCore::CheckedRadioButtons::addButton):
2985         (WebCore::CheckedRadioButtons::removeButton):
2986         * dom/ChildListMutationScope.cpp:
2987         (WebCore::ChildListMutationScope::MutationAccumulationRouter::childAdded):
2988         (WebCore::ChildListMutationScope::MutationAccumulationRouter::willRemoveChild):
2989         (WebCore::ChildListMutationScope::MutationAccumulationRouter::incrementScopingLevel):
2990         (WebCore::ChildListMutationScope::MutationAccumulationRouter::decrementScopingLevel):
2991         * dom/Document.cpp:
2992         (WebCore::Document::pageGroupUserSheets):
2993         (WebCore::Document::windowNamedItems):
2994         (WebCore::Document::documentNamedItems):
2995         (WebCore::Document::getCSSCanvasElement):
2996         * dom/DocumentMarkerController.cpp:
2997         (WebCore::DocumentMarkerController::markerContainingPoint):
2998         (WebCore::DocumentMarkerController::renderedRectsForMarkers):
2999         (WebCore::DocumentMarkerController::removeMarkers):
3000         (WebCore::DocumentMarkerController::repaintMarkers):
3001         (WebCore::DocumentMarkerController::invalidateRenderedRectsForMarkersInRect):
3002         (WebCore::DocumentMarkerController::showMarkers):
3003         * dom/DocumentOrderedMap.cpp:
3004         (WebCore::DocumentOrderedMap::remove):
3005         * dom/ElementAttributeData.cpp:
3006         (WebCore::ensureAttrListForElement):
3007         * dom/EventDispatcher.cpp:
3008         (WebCore::EventRelatedTargetAdjuster::findRelatedTarget):
3009         * dom/EventListenerMap.cpp:
3010         (WebCore::EventListenerMap::eventTypes):
3011         (WebCore::EventListenerMap::add):
3012         (WebCore::EventListenerMap::remove):
3013         (WebCore::EventListenerMap::find):
3014         (WebCore::EventListenerMap::removeFirstEventListenerCreatedFromMarkup):
3015         (WebCore::EventListenerMap::copyEventListenersNotCreatedFromMarkupToTarget):
3016         (WebCore::EventListenerIterator::nextListener):
3017         * dom/IdTargetObserverRegistry.cpp:
3018         (WebCore::IdTargetObserverRegistry::addObserver):
3019         (WebCore::IdTargetObserverRegistry::removeObserver):
3020         * dom/MemoryInstrumentation.h:
3021         (WebCore::MemoryInstrumentation::addInstrumentedMapEntries):
3022         (WebCore::MemoryInstrumentation::addInstrumentedMapValues):
3023         * dom/MutationObserverInterestGroup.cpp:
3024         (WebCore::MutationObserverInterestGroup::isOldValueRequested):
3025         (WebCore::MutationObserverInterestGroup::enqueueMutationRecord):
3026         * dom/Node.cpp:
3027         (WebCore::Node::dumpStatistics):
3028         (WebCore::Node::clearRareData):
3029         (WebCore::NodeListsNodeData::invalidateCaches):
3030         (WebCore::Node::collectMatchingObserversForMutation):
3031         * dom/NodeRareData.h:
3032         (WebCore::NodeListsNodeData::addCacheWithAtomicName):
3033         (WebCore::NodeListsNodeData::addCacheWithName):
3034         (WebCore::NodeListsNodeData::addCacheWithQualifiedName):
3035         (WebCore::NodeListsNodeData::adoptTreeScope):
3036         * dom/ProcessingInstruction.cpp:
3037         (WebCore::ProcessingInstruction::checkStyleSheet):
3038         * dom/ScriptExecutionContext.cpp:
3039         (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
3040         (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
3041         (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
3042         (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
3043         (WebCore::ScriptExecutionContext::adjustMinimumTimerInterval):
3044         * dom/SelectorQuery.cpp:
3045         (WebCore::SelectorQueryCache::add):
3046         * dom/SpaceSplitString.cpp:
3047         (WebCore::SpaceSplitStringData::create):
3048         * dom/StyledElement.cpp:
3049         (WebCore::StyledElement::updateAttributeStyle):
3050         * editing/mac/AlternativeTextUIController.mm:
3051         (WebCore::AlternativeTextUIController::AlernativeTextContextController::alternativesForContext):
3052         * html/FormController.cpp:
3053         (WebCore::SavedFormState::serializeTo):
3054         (WebCore::SavedFormState::appendControlState):
3055         (WebCore::SavedFormState::takeControlState):
3056         (WebCore::SavedFormState::getReferencedFilePaths):
3057         (WebCore::FormKeyGenerator::formKey):
3058         (WebCore::FormController::createSavedFormStateMap):
3059         (WebCore::FormController::formElementsState):
3060         (WebCore::FormController::takeStateForFormElement):
3061         (WebCore::FormController::getReferencedFilePaths):
3062         * html/HTMLCollection.cpp:
3063         (WebCore::HTMLCollectionCacheBase::append):
3064         * html/canvas/WebGLFramebuffer.cpp:
3065         (WebCore::WebGLFramebuffer::getAttachment):
3066         (WebCore::WebGLFramebuffer::removeAttachmentFromBoundFramebuffer):
3067         (WebCore::WebGLFramebuffer::checkStatus):
3068         (WebCore::WebGLFramebuffer::deleteObjectImpl):
3069         (WebCore::WebGLFramebuffer::initializeAttachments):
3070         * inspector/CodeGeneratorInspector.py:
3071         * inspector/DOMPatchSupport.cpp:
3072         (WebCore::DOMPatchSupport::diff):
3073         (WebCore::DOMPatchSupport::innerPatchChildren):
3074         (WebCore::DOMPatchSupport::removeChildAndMoveToNew):
3075         * inspector/InjectedScriptManager.cpp:
3076         (WebCore::InjectedScriptManager::injectedScriptForId):
3077         (WebCore::InjectedScriptManager::injectedScriptIdFor):
3078         (WebCore::InjectedScriptManager::discardInjectedScriptsFor):
3079         (WebCore::InjectedScriptManager::releaseObjectGroup):
3080         (WebCore::InjectedScriptManager::injectedScriptFor):
3081         * inspector/InspectorCSSAgent.cpp:
3082         (WebCore::SelectorProfile::commitSelector):
3083         (WebCore::SelectorProfile::commitSelectorTime):
3084         (WebCore::SelectorProfile::toInspectorObject):
3085         (WebCore::InspectorCSSAgent::forcePseudoState):
3086         (WebCore::InspectorCSSAgent::asInspectorStyleSheet):
3087         (WebCore::InspectorCSSAgent::assertStyleSheetForId):
3088         (WebCore::InspectorCSSAgent::didRemoveDOMNode):
3089         (WebCore::InspectorCSSAgent::didModifyDOMAttr):
3090         (WebCore::InspectorCSSAgent::resetPseudoStates):
3091         * inspector/InspectorConsoleAgent.cpp:
3092         (WebCore::InspectorConsoleAgent::stopTiming):
3093         (WebCore::InspectorConsoleAgent::count):
3094         * inspector/InspectorDOMAgent.cpp:
3095         (WebCore::InspectorDOMAgent::nodeForId):
3096         (WebCore::InspectorDOMAgent::performSearch):
3097         (WebCore::InspectorDOMAgent::getSearchResults):
3098         * inspector/InspectorDOMDebuggerAgent.cpp:
3099         (WebCore::InspectorDOMDebuggerAgent::willSendXMLHttpRequest):
3100         * inspector/InspectorDOMStorageAgent.cpp:
3101         (WebCore::InspectorDOMStorageAgent::clearFrontend):
3102         (WebCore::InspectorDOMStorageAgent::enable):
3103         (WebCore::InspectorDOMStorageAgent::storageId):
3104         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
3105         (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
3106         (WebCore::InspectorDOMStorageAgent::memoryBytesUsedByStorageCache):
3107         * inspector/InspectorDatabaseAgent.cpp:
3108         (WebCore::InspectorDatabaseAgent::enable):
3109         (WebCore::InspectorDatabaseAgent::databaseId):
3110         (WebCore::InspectorDatabaseAgent::findByFileName):
3111         (WebCore::InspectorDatabaseAgent::databaseForId):
3112         * inspector/InspectorDebuggerAgent.cpp:
3113         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
3114         (WebCore::InspectorDebuggerAgent::removeBreakpoint):
3115         (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
3116         (WebCore::InspectorDebuggerAgent::searchInContent):
3117         (WebCore::InspectorDebuggerAgent::getScriptSource):
3118         (WebCore::InspectorDebuggerAgent::didParseSource):
3119         * inspector/InspectorIndexedDBAgent.cpp:
3120         (WebCore):
3121         * inspector/InspectorMemoryAgent.cpp:
3122         (WebCore):
3123         * inspector/InspectorPageAgent.cpp:
3124         (WebCore::cachedResourcesForFrame):
3125         (WebCore::InspectorPageAgent::didClearWindowObjectInWorld):
3126         (WebCore::InspectorPageAgent::frameDetached):
3127         * inspector/InspectorProfilerAgent.cpp:
3128         (WebCore::InspectorProfilerAgent::getProfileHeaders):
3129         (WebCore):
3130         (WebCore::InspectorProfilerAgent::getProfile):
3131         * inspector/InspectorResourceAgent.cpp:
3132         (WebCore::buildObjectForHeaders):
3133         (WebCore::InspectorResourceAgent::willSendRequest):
3134         * inspector/InspectorState.cpp:
3135         (WebCore::InspectorState::getBoolean):
3136         (WebCore::InspectorState::getString):
3137         (WebCore::InspectorState::getLong):
3138         (WebCore::InspectorState::getDouble):
3139         (WebCore::InspectorState::getObject):
3140         * inspector/InspectorStyleSheet.cpp:
3141         (WebCore::InspectorStyle::styleWithProperties):
3142         (WebCore::InspectorStyleSheet::inspectorStyleForId):
3143         * inspector/InspectorValues.cpp:
3144         (WebCore::InspectorObjectBase::get):
3145         (WebCore::InspectorObjectBase::writeJSON):
3146         * inspector/InspectorWorkerAgent.cpp:
3147         (WebCore::InspectorWorkerAgent::workerContextTerminated):
3148         (WebCore::InspectorWorkerAgent::createWorkerFrontendChannelsForExistingWorkers):
3149         (WebCore::InspectorWorkerAgent::destroyWorkerFrontendChannels):
3150         * inspector/NetworkResourcesData.cpp:
3151         (WebCore::NetworkResourcesData::removeCachedResource):
3152         (WebCore::NetworkResourcesData::clear):
3153         * loader/CrossOriginAccessControl.cpp:
3154         (WebCore::isSimpleCrossOriginAccessRequest):
3155         (WebCore::createAccessControlPreflightRequest):
3156         * loader/CrossOriginPreflightResultCache.cpp:
3157         (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders):
3158         (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
3159         * loader/DocumentLoader.cpp:
3160         (WebCore::DocumentLoader::getSubresources):
3161         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
3162         * loader/MainResourceLoader.cpp:
3163         (WebCore::MainResourceLoader::didReceiveResponse):
3164         * loader/ResourceLoadScheduler.cpp:
3165         (WebCore::ResourceLoadScheduler::servePendingRequests):
3166         * loader/appcache/ApplicationCache.cpp:
3167         (WebCore::ApplicationCache::removeResource):
3168         (WebCore::ApplicationCache::clearStorageID):
3169         (WebCore::ApplicationCache::dump):
3170         * loader/appcache/ApplicationCacheGroup.cpp:
3171         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
3172         (WebCore::ApplicationCacheGroup::startLoadingEntry):
3173         (WebCore::ApplicationCacheGroup::addEntry):
3174         * loader/appcache/ApplicationCacheHost.cpp:
3175         (WebCore::ApplicationCacheHost::fillResourceList):
3176         * loader/appcache/ApplicationCacheResource.cpp:
3177         (WebCore::ApplicationCacheResource::estimatedSizeInStorage):
3178         * loader/appcache/ApplicationCacheStorage.cpp:
3179         (WebCore::ApplicationCacheStorage::findOrCreateCacheGroup):
3180         (WebCore::ApplicationCacheStorage::cacheGroupForURL):
3181         (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
3182         (WebCore::ApplicationCacheStorage::store):
3183         (WebCore::ApplicationCacheStorage::empty):
3184         (WebCore::ApplicationCacheStorage::storeCopyOfCache):
3185         * loader/archive/ArchiveFactory.cpp:
3186         (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
3187         * loader/cache/CachedRawResource.cpp:
3188         (WebCore::CachedRawResource::canReuse):
3189         * loader/cache/CachedResource.cpp:
3190         (WebCore::CachedResource::switchClientsToRevalidatedResource):
3191         (WebCore::CachedResource::updateResponseAfterRevalidation):
3192         * loader/cache/CachedResourceClientWalker.h:
3193         (WebCore::CachedResourceClientWalker::CachedResourceClientWalker):
3194         * loader/cache/CachedResourceLoader.cpp:
3195         (WebCore::CachedResourceLoader::~CachedResourceLoader):
3196         (WebCore::CachedResourceLoader::requestResource):
3197         (WebCore::CachedResourceLoader::setAutoLoadImages):
3198         (WebCore::CachedResourceLoader::removeCachedResource):
3199         (WebCore::CachedResourceLoader::garbageCollectDocumentResources):
3200         (WebCore::CachedResourceLoader::reportMemoryUsage):
3201         * loader/cache/MemoryCache.cpp:
3202         (WebCore::MemoryCache::removeResourcesWithOrigin):
3203         (WebCore::MemoryCache::getOriginsWithCache):
3204         (WebCore::MemoryCache::getStatistics):
3205         (WebCore::MemoryCache::reportMemoryUsage):
3206         (WebCore::MemoryCache::setDisabled):
3207         * loader/icon/IconDatabase.cpp:
3208         (WebCore::IconDatabase::removeAllIcons):
3209         (WebCore::IconDatabase::iconRecordCountWithData):
3210         (WebCore::IconDatabase::performPendingRetainAndReleaseOperations):
3211         * page/DOMWindow.cpp:
3212         (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents):
3213         (WebCore::DOMWindow::dispatchAllPendingUnloadEvents):
3214         * page/EventHandler.cpp:
3215         (WebCore::EventHandler::handleTouchEvent):
3216         * page/Frame.cpp:
3217         (WebCore::Frame::injectUserScripts):
3218         * page/PageGroup.cpp:
3219         (WebCore::PageGroup::pageGroup):
3220         (WebCore::PageGroup::closeLocalStorage):
3221         (WebCore::PageGroup::clearLocalStorageForAllOrigins):
3222         (WebCore::PageGroup::clearLocalStorageForOrigin):
3223         (WebCore::PageGroup::syncLocalStorage):
3224         (WebCore::PageGroup::addUserScriptToWorld):
3225         (WebCore::PageGroup::addUserStyleSheetToWorld):
3226         (WebCore::PageGroup::removeUserScriptFromWorld):
3227         (WebCore::PageGroup::removeUserStyleSheetFromWorld):
3228         * page/PageSerializer.cpp:
3229         (WebCore::PageSerializer::urlForBlankFrame):
3230         * page/SecurityPolicy.cpp:
3231         (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
3232         (WebCore::SecurityPolicy::removeOriginAccessWhitelistEntry):
3233         * page/Settings.cpp:
3234         (WebCore::setGenericFontFamilyMap):
3235         (WebCore::getGenericFontFamilyForScript):
3236         * page/SpeechInput.cpp:
3237         (WebCore::SpeechInput::registerListener):
3238         * page/WindowFeatures.cpp:
3239         (WebCore::WindowFeatures::boolFeature):
3240         (WebCore::WindowFeatures::floatFeature):
3241         * page/animation/AnimationController.cpp:
3242         (WebCore::AnimationControllerPrivate::updateAnimations):
3243         (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
3244         (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
3245         (WebCore::AnimationControllerPrivate::numberOfActiveAnimations):
3246         * page/animation/CompositeAnimation.cpp:
3247         (WebCore::CompositeAnimation::clearRenderer):
3248         (WebCore::CompositeAnimation::updateTransitions):
3249         (WebCore::CompositeAnimation::updateKeyframeAnimations):
3250         (WebCore::CompositeAnimation::animate):
3251         (WebCore::CompositeAnimation::getAnimatedStyle):
3252         (WebCore::CompositeAnimation::setAnimating):
3253         (WebCore::CompositeAnimation::timeToNextService):
3254         (WebCore::CompositeAnimation::getAnimationForProperty):
3255         (WebCore::CompositeAnimation::suspendAnimations):
3256         (WebCore::CompositeAnimation::resumeAnimations):
3257         (WebCore::CompositeAnimation::overrideImplicitAnimations):
3258         (WebCore::CompositeAnimation::resumeOverriddenImplicitAnimations):
3259         (WebCore::CompositeAnimation::isAnimatingProperty):
3260         (WebCore::CompositeAnimation::numberOfActiveAnimations):
3261         * platform/Language.cpp:
3262         (WebCore::languageDidChange):
3263         * platform/MIMETypeRegistry.cpp:
3264         (WebCore::MIMETypeRegistry::getNormalizedMIMEType):
3265         * platform/audio/HRTFElevation.cpp:
3266         (WebCore::getConcatenatedImpulseResponsesForSubject):
3267         * platform/blackberry/CookieManager.cpp:
3268         (WebCore::CookieManager::generateHtmlFragmentForCookies):
3269         (WebCore::CookieManager::removeAllCookies):
3270         * platform/blackberry/CookieMap.cpp:
3271         (WebCore::CookieMap::removeOldestCookie):
3272         (WebCore::CookieMap::getAllChildCookies):
3273         * platform/cf/BinaryPropertyList.cpp:
3274         (WebCore::BinaryPropertyListPlan::writeIntegerArray):
3275         * platform/chromium/support/WebHTTPLoadInfo.cpp:
3276         (WebKit::addHeader):
3277         * platform/chromium/support/WebURLRequest.cpp:
3278         (WebKit::WebURLRequest::visitHTTPHeaderFields):
3279         * platform/chromium/support/WebURLResponse.cpp:
3280         (WebKit::WebURLResponse::addHTTPHeaderField):
3281         (WebKit::WebURLResponse::visitHTTPHeaderFields):
3282         * platform/graphics/DisplayRefreshMonitor.cpp:
3283         (WebCore::DisplayRefreshMonitorManager::ensureMonitorForClient):
3284         (WebCore::DisplayRefreshMonitorManager::unregisterClient):
3285         * platform/graphics/FontCache.cpp:
3286         (WebCore::FontCache::getCachedFontPlatformData):
3287         (WebCore::FontCache::getVerticalData):
3288         (WebCore::FontCache::getCachedFontData):
3289         (WebCore::FontCache::releaseFontData):
3290         (WebCore::FontCache::purgeInactiveFontData):
3291         * platform/graphics/GlyphPageTreeNode.cpp:
3292         (WebCore::GlyphPageTreeNode::treeGlyphPageCount):
3293         (WebCore::GlyphPageTreeNode::pageCount):
3294         (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
3295         (WebCore::GlyphPageTreeNode::pruneTreeFontData):
3296         (WebCore::GlyphPageTreeNode::pruneCustomFontData):
3297         (WebCore::GlyphPageTreeNode::pruneFontData):
3298         (WebCore::GlyphPageTreeNode::showSubtree):
3299         (showGlyphPageTrees):
3300         * platform/graphics/TiledBackingStore.cpp:
3301         (WebCore::TiledBackingStore::updateTileBuffers):
3302         (WebCore::TiledBackingStore::resizeEdgeTiles):
3303         (WebCore::TiledBackingStore::setKeepRect):
3304         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
3305         (WebCore::AVFWrapper::avfWrapperForCallbackContext):
3306         * platform/graphics/blackberry/LayerTiler.cpp:
3307         (WebCore::LayerTiler::layerVisibilityChanged):
3308         (WebCore::LayerTiler::uploadTexturesIfNeeded):
3309         (WebCore::LayerTiler::addTileJob):
3310         (WebCore::LayerTiler::deleteTextures):
3311         (WebCore::LayerTiler::pruneTextures):
3312         (WebCore::LayerTiler::bindContentsTexture):
3313         * platform/graphics/blackberry/TextureCacheCompositingThread.cpp:
3314         (WebCore::TextureCacheCompositingThread::textureForTiledContents):
3315         (WebCore::TextureCacheCompositingThread::textureForColor):
3316         * platform/graphics/ca/GraphicsLayerCA.cpp:
3317         (WebCore::GraphicsLayerCA::moveOrCopyAnimations):
3318         (WebCore::GraphicsLayerCA::pauseAnimation):
3319         (WebCore::GraphicsLayerCA::layerDidDisplay):
3320         (WebCore::GraphicsLayerCA::updateGeometry):
3321         (WebCore::GraphicsLayerCA::updateTransform):
3322         (WebCore::GraphicsLayerCA::updateChildrenTransform):
3323         (WebCore::GraphicsLayerCA::updateMasksToBounds):
3324         (WebCore::GraphicsLayerCA::updateContentsVisibility):
3325         (WebCore::GraphicsLayerCA::updateContentsOpaque):
3326         (WebCore::GraphicsLayerCA::updateBackfaceVisibility):
3327         (WebCore::GraphicsLayerCA::updateFilters):
3328         (WebCore::GraphicsLayerCA::ensureStructuralLayer):
3329         (WebCore::GraphicsLayerCA::updateLayerDrawsContent):
3330         (WebCore::GraphicsLayerCA::updateContentsImage):
3331         (WebCore::GraphicsLayerCA::updateContentsRect):
3332         (WebCore::GraphicsLayerCA::updateMaskLayer):
3333         (WebCore::GraphicsLayerCA::updateLayerAnimations):
3334         (WebCore::GraphicsLayerCA::setAnimationOnLayer):
3335         (WebCore::GraphicsLayerCA::removeCAAnimationFromLayer):
3336         (WebCore::GraphicsLayerCA::pauseCAAnimationOnLayer):
3337         (WebCore::GraphicsLayerCA::suspendAnimations):
3338         (WebCore::GraphicsLayerCA::resumeAnimations):
3339         (WebCore::GraphicsLayerCA::findOrMakeClone):
3340         (WebCore::GraphicsLayerCA::setOpacityInternal):
3341         (WebCore::GraphicsLayerCA::updateOpacityOnLayer):
3342         * platform/graphics/ca/mac/TileCache.mm:
3343         (WebCore::TileCache::~TileCache):
3344         (WebCore::TileCache::setNeedsDisplay):
3345         (WebCore::TileCache::setScale):
3346         (WebCore::TileCache::setAcceleratesDrawing):
3347         (WebCore::TileCache::setTileDebugBorderWidth):
3348         (WebCore::TileCache::setTileDebugBorderColor):
3349         (WebCore::TileCache::revalidateTiles):
3350         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
3351         (PlatformCALayer::animationStarted):
3352         (resubmitAllAnimations):
3353         (PlatformCALayer::animationForKey):
3354         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
3355         (WebCore::LookupAltName):
3356         (WebCore::fontContainsCharacter):
3357         * platform/graphics/chromium/FontUtilsChromiumWin.cpp:
3358         (WebCore::getDerivedFontData):
3359         * platform/graphics/chromium/TiledLayerChromium.cpp:
3360         (WebCore::TiledLayerChromium::pushPropertiesTo):
3361         (WebCore::TiledLayerChromium::setLayerTreeHost):
3362         (WebCore::TiledLayerChromium::invalidateContentRect):
3363         (WebCore::TiledLayerChromium::setTexturePriorities):
3364         (WebCore::TiledLayerChromium::resetUpdateState):
3365         * platform/graphics/chromium/cc/CCDamageTracker.cpp:
3366         (WebCore::CCDamageTracker::trackDamageFromLeftoverRects):
3367         * platform/graphics/chromium/cc/CCDirectRenderer.cpp:
3368         (WebCore::CCDirectRenderer::decideRenderPassAllocationsForFrame):
3369         * platform/graphics/chromium/cc/CCLayerTilingData.cpp:
3370         (WebCore::CCLayerTilingData::setBounds):
3371         * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
3372         (WebCore::CCLayerTreeHost::~CCLayerTreeHost):
3373         (WebCore::CCLayerTreeHost::startRateLimiter):
3374         (WebCore::CCLayerTreeHost::stopRateLimiter):
3375         * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
3376         (WebCore::findRenderPassById):
3377         * platform/graphics/chromium/cc/CCResourceProvider.cpp:
3378         (WebCore::CCResourceProvider::inUseByConsumer):
3379         (WebCore::CCResourceProvider::deleteResource):
3380         (WebCore::CCResourceProvider::deleteOwnedResources):
3381         (WebCore::CCResourceProvider::resourceType):
3382         (WebCore::CCResourceProvider::upload):
3383         (WebCore::CCResourceProvider::lockForRead):
3384         (WebCore::CCResourceProvider::unlockForRead):
3385         (WebCore::CCResourceProvider::lockForWrite):
3386         (WebCore::CCResourceProvider::unlockForWrite):
3387         (WebCore::CCResourceProvider::destroyChild):
3388         (WebCore::CCResourceProvider::getChildToParentMap):
3389         (WebCore::CCResourceProvider::prepareSendToParent):
3390         (WebCore::CCResourceProvider::prepareSendToChild):
3391         (WebCore::CCResourceProvider::receiveFromChild):
3392         (WebCore::CCResourceProvider::receiveFromParent):
3393         (WebCore::CCResourceProvider::transferResource):
3394         (WebCore::CCResourceProvider::trimMailboxDeque):
3395         * platform/graphics/filters/CustomFilterGlobalContext.cpp:
3396         (WebCore::CustomFilterGlobalContext::~CustomFilterGlobalContext):
3397         (WebCore::CustomFilterGlobalContext::getCompiledProgram):
3398         (WebCore::CustomFilterGlobalContext::removeCompiledProgram):
3399         * platform/graphics/filters/CustomFilterProgram.cpp:
3400         (WebCore::CustomFilterProgram::notifyClients):
3401         * platform/graphics/harfbuzz/HarfBuzzSkia.cpp:
3402         (WebCore::getCachedHarfbuzzFace):
3403         (WebCore::releaseCachedHarfbuzzFace):
3404         * platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp:
3405         (WebCore::HarfBuzzNGFace::HarfBuzzNGFace):
3406         (WebCore::HarfBuzzNGFace::~HarfBuzzNGFace):
3407         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
3408         (WebCore::SimpleFontData::getCFStringAttributes):
3409         * platform/graphics/mac/SimpleFontDataMac.mm:
3410         (WebCore::SimpleFontData::canRenderCombiningCharacterSequence):
3411         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
3412         (WebCore::Extensions3DOpenGLCommon::getTranslatedShaderSourceANGLE):
3413         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
3414         (WebCore::GraphicsContext3D::compileShader):
3415         (WebCore::GraphicsContext3D::getShaderiv):
3416         (WebCore::GraphicsContext3D::getShaderInfoLog):
3417         (WebCore::GraphicsContext3D::getShaderSource):
3418         * platform/graphics/openvg/EGLDisplayOpenVG.cpp:
3419         (WebCore::EGLDisplayOpenVG::~EGLDisplayOpenVG):
3420         (WebCore::EGLDisplayOpenVG::destroySurface):