Remove an unused member variable erroneously added in r149007.
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-04-23  Ryosuke Niwa  <rniwa@webkit.org>
2
3         Remove an unused member variable erroneously added in r149007.
4
5         * rendering/LogicalSelectionOffsetCaches.h:
6         (WebCore::LogicalSelectionOffsetCaches::LogicalSelectionOffsetCaches):
7         (LogicalSelectionOffsetCaches):
8
9 2013-04-22  Ryosuke Niwa  <rniwa@webkit.org>
10
11         logicalLeftSelectionGap and logicalRightSelectionGap call availableLogicalWidth() multiple times
12         https://bugs.webkit.org/show_bug.cgi?id=113479
13
14         Reviewed by David Hyatt.
15
16         Introduced LogicalSelectionOffsetCaches to cache the containing blocks and their logical left and right
17         selection offsets in computing selection gaps. An instance of this class stores the containing block for
18         each position type and caches their logical selection offsets when none of their block ancestors up until
19         its nearest selection root do no have any floating objects or regions and exclusions.
20
21         When blockSelectionGaps recurses to another level, it creates a new cache instance by "inheriting"
22         (like RenderStyle) from the old cache, overriding those containing blocks that are replaced by "this".
23
24         This eliminates the need to traverse containing block ancestors in RenderBlock::logicalLeftSelectionOffset
25         and RenderBlock::logicalRightSelectionOffset, and improves WebKit's performance by roughly 20%.
26
27         Performance Tests: Interactive/SelectAll.html
28
29         * GNUmakefile.list.am:
30         * Target.pri:
31         * WebCore.xcodeproj/project.pbxproj:
32
33         * rendering/LogicalSelectionOffsetCaches.h: Added.
34         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject): Moved from RenderObject.h.
35         (WebCore::isNonRenderBlockInline): Ditto.
36         (WebCore::containingBlockForFixedPosition): Extracted from RenderObject::containingBlock.
37         (WebCore::containingBlockForAbsolutePosition): Ditto.
38         (WebCore::containingBlockForObjectInFlow): Ditto.
39
40         (WebCore::LogicalSelectionOffsetCaches): Added.
41         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::ContainingBlockInfo): Added.
42         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::setBlock): Added. m_hasFloatsOrRegions is
43         or'ed with itself when ContainingBlockInfo is copy constructed since m_hasFloatsOrRegions needs be true
44         for a block when any of its containing block ancestors have floats or regions.
45         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::block): Added.
46         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::cache): Added.
47         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::logicalLeftSelectionOffset): Added. Caches
48         the logical selection offset if it hasn't.
49         (WebCore::LogicalSelectionOffsetCaches::ContainingBlockInfo::logicalRightSelectionOffset): Ditto.
50
51         (WebCore::LogicalSelectionOffsetCaches::LogicalSelectionOffsetCaches): The first constructor is used
52         for a selection root. The second one is used for inheriting from another cache. In the latter case,
53         copy all containing block information except ones that need to be overridden by this block.
54         (WebCore::LogicalSelectionOffsetCaches::containingBlockInfo): Returns a ContainingBlockInfo based on
55         object's position value.
56
57         * rendering/RenderBlock.cpp:
58         (WebCore::RenderBlock::selectionGapRectsForRepaint):
59         (WebCore::RenderBlock::paintSelection):
60         (WebCore::RenderBlock::selectionGaps):
61         (WebCore::RenderBlock::inlineSelectionGaps):
62         (WebCore::RenderBlock::blockSelectionGaps): Exit before instantiating a new LogicalSelectionOffsetCaches
63         if there is no child to recurse.
64         (WebCore::RenderBlock::blockSelectionGap):
65         (WebCore::RenderBlock::logicalLeftSelectionGap):
66         (WebCore::RenderBlock::logicalRightSelectionGap):
67         (WebCore::RenderBlock::logicalLeftSelectionOffset): Use LogicalSelectionOffsetCaches to get its containing
68         block and its logical selection offset.
69         (WebCore::RenderBlock::logicalRightSelectionOffset): Ditto.
70
71         * rendering/RenderBlock.h:
72         (WebCore::RenderBlock):
73
74         * rendering/RenderObject.cpp:
75         (WebCore::RenderObject::containingBlock): Extracted code into LogicalSelectionOffsetCaches.h.
76
77         * rendering/RootInlineBox.cpp:
78         (WebCore::RootInlineBox::lineSelectionGap):
79
80         * rendering/RootInlineBox.h:
81         (WebCore::RootInlineBox):
82
83 2013-04-23  Eric Carlson  <eric.carlson@apple.com>
84
85         [Mac] forced subtitle track should change when audio track language changes
86         https://bugs.webkit.org/show_bug.cgi?id=115043
87
88         Reviewed by Jer Noble.
89
90         No new tests, it isn't possible to test this automatically because there is currently no way
91         to enable/disable audio tracks.
92
93         * html/HTMLMediaElement.cpp:
94         (WebCore::HTMLMediaElement::configureTextTrackGroup): Set m_forcedOrAutomaticSubtitleTrackLanguage.
95         (WebCore::HTMLMediaElement::mediaPlayerCharacteristicChanged):  Call markCaptionAndSubtitleTracksAsUnconfigured
96             after a delay if the language of the primary audio track changes.
97         (WebCore::HTMLMediaElement::setClosedCaptionsVisible): markCaptionAndSubtitleTracksAsUnconfigured API change.
98         (WebCore::HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured): Take parameter to allow
99             the reconfiguration to happen after a delay to avoid doing it during a callback from the
100             media engine. Clear the ConfigureTextTracks bit in m_pendingActionFlags to cancel any pending 
101             asynch configuration.
102         * html/HTMLMediaElement.h:
103
104         * page/CaptionUserPreferencesMac.mm:
105         (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): Clean up logic.
106
107         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
108         (WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged): Call characteristicChanged when
109             the primary audio track language changes.
110
111 2013-04-23  Hans Muller  <hmuller@adobe.com>
112
113         [CSS Exclusions] Improve ExclusionPolygon smart pointer safety
114         https://bugs.webkit.org/show_bug.cgi?id=114984
115
116         Reviewed by Dirk Schulze.
117
118         Assign newly allocated objects to PassOwnPtrs as early as possible to reduce the
119         chances of future leaks. No new tests were added, this change adds no new functionality.
120
121         * rendering/ExclusionPolygon.cpp:
122         (WebCore::computeShapePaddingBounds):
123         (WebCore::computeShapeMarginBounds):
124         (WebCore::ExclusionPolygon::shapePaddingBounds):
125         (WebCore::ExclusionPolygon::shapeMarginBounds):
126         * rendering/ExclusionShape.cpp:
127         (WebCore::ExclusionShape::createExclusionShape):
128
129 2013-04-23  Andreas Kling  <akling@apple.com>
130
131         Revert "Throttle resize events during live window resize."
132         <http://webkit.org/b/114292>
133         <rdar://problem/13411454>
134         <rdar://problem/13694839>
135
136         Reviewed by Geoffrey Garen.
137
138         It appears that this caused more glitches than it helped resize performance.
139
140         * page/FrameView.h:
141         * page/FrameView.cpp:
142         (WebCore::FrameView::FrameView):
143         (WebCore::FrameView::performPostLayoutTasks):
144         (WebCore::FrameView::sendResizeEvent):
145
146             Turn the null-check of m_frame into an assertion since this method is
147             no longer called asynchronously.
148
149         (WebCore::FrameView::willEndLiveResize):
150
151             Ninja fix: call up to the closest superclass implementation.
152
153 2013-04-23  Christophe Dumez  <ch.dumez@sisa.samsung.com>
154
155         Global constructors should be configurable and not enumerable
156         https://bugs.webkit.org/show_bug.cgi?id=110573
157
158         Reviewed by Geoffrey Garen.
159
160         Update JSC Code generator so that global constructors now have the following
161         attributes:
162         { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
163         instead of previously:
164         { [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: false }
165
166         The new behavior is according to the Web IDL specification (section 4.4):
167         http://dev.w3.org/cvsweb/~checkout~/2006/webapi/WebIDL/Overview.html?rev=1.617;content-type=text%2Fhtml#es-interfaces
168
169         This also matches the behavior of Firefox.
170
171         Tests: fast/js/global-constructors-attributes.html
172                fast/js/global-constructors-deletable.html
173
174         * bindings/scripts/CodeGeneratorJS.pm:
175         (GenerateAttributesHashTable):
176
177 2013-04-23  Simon Fraser  <simon.fraser@apple.com>
178
179         Don't create compositing layers for sticky position unless using the ScrollingCoordinator
180         https://bugs.webkit.org/show_bug.cgi?id=115060
181
182         Reviewed by Tim Horton.
183         
184         Creating compositing layers for sticky position elements is only useful
185         when we're using a ScrollingCoordinator, so don't create them if
186         we're not in a frame that uses a scrolling coordinator.
187
188         Tests: compositing/layer-creation/no-compositing-for-sticky.html
189                platform/mac-wk2/tiled-drawing/sticky/sticky-layers.html
190
191         * rendering/RenderLayerCompositor.cpp:
192         (WebCore::RenderLayerCompositor::requiresCompositingForPosition):
193
194 2013-04-23  Christophe Dumez  <ch.dumez@sisa.samsung.com>
195
196         'length' property of DOM bindings functions returns wrong value
197         https://bugs.webkit.org/show_bug.cgi?id=110569
198
199         Reviewed by Geoffrey Garen.
200
201         Make the 'length' property of Function objects and Interface
202         objects behave according to the latest Web IDL specification
203         editor draft:
204         http://dev.w3.org/2006/webapi/WebIDL/#es-interface-call
205         http://dev.w3.org/2006/webapi/WebIDL/#es-operations
206
207         As a result, only mandatory arguments are taken into account
208         when computing the value for the 'length' property. This
209         behavior is consistent with Firefox and Blink.
210
211         Tests: fast/js/constructor-length.html
212                fast/js/function-length.html
213
214         * bindings/scripts/CodeGeneratorJS.pm:
215         (GenerateImplementation):
216         (GenerateConstructorHelperMethods):
217         Update the JSC code generator to only account for mandatory parameters
218         when computing the value for the 'length' property of Function objects
219         and constructors.
220
221         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
222         (WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
223         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
224         (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
225         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
226         (WebCore::JSTestEventConstructorConstructor::finishCreation):
227         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
228         (WebCore::JSTestEventTargetConstructor::finishCreation):
229         (WebCore):
230         * bindings/scripts/test/JS/JSTestException.cpp:
231         (WebCore::JSTestExceptionConstructor::finishCreation):
232         * bindings/scripts/test/JS/JSTestInterface.cpp:
233         (WebCore::JSTestInterfaceConstructor::finishCreation):
234         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
235         (WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
236         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
237         (WebCore::JSTestNamedConstructorConstructor::finishCreation):
238         (WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
239         * bindings/scripts/test/JS/JSTestObj.cpp:
240         (WebCore):
241         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
242         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
243         (WebCore):
244         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
245         (WebCore):
246         Rebaseline bindings tests results.
247
248         * fileapi/Blob.idl:
249         Remove 'ConstructorParameters=2' extended attribute as the correct value
250         is 0, given that a Blob can be constructed without parameter.
251
252         * html/canvas/DataView.idl:
253         Update ConstructorParameters extended attribute value from 3 to 1 as only
254         one of the 3 parameters is mandatory.
255
256         * html/canvas/Float32Array.idl:
257         * html/canvas/Float64Array.idl:
258         * html/canvas/Int16Array.idl:
259         * html/canvas/Int32Array.idl:
260         * html/canvas/Int8Array.idl:
261         * html/canvas/Uint16Array.idl:
262         * html/canvas/Uint32Array.idl:
263         * html/canvas/Uint8Array.idl:
264         * html/canvas/Uint8ClampedArray.idl:
265         Remove 'ConstructorParameters=1' extended attribute from interfaces using
266         'ConstructorTemplate=TypedArray' as the bindings generator now properly
267         compute the number of constructor parameters for such interfaces.
268
269         * page/WebKitPoint.idl:
270         Remove 'ConstructorParameters=2' extended attribute as the correct value
271         should be 0, given that a WebKitPoint can be constructed without parameters.
272
273 2013-04-23  Benjamin Poulain  <benjamin@webkit.org>
274
275         Minor String usage fixes in WebCore/platform
276         https://bugs.webkit.org/show_bug.cgi?id=115021
277
278         Reviewed by Andreas Kling.
279
280         Use ASCIILiteral when possible + minor fixes.
281
282         * platform/ContentType.cpp:
283         (WebCore::ContentType::codecs):
284         * platform/ContentType.h:
285         (ContentType):
286         * platform/Decimal.cpp:
287         (WebCore::Decimal::toString):
288         * platform/KURL.cpp:
289         (WebCore::KURL::setProtocol):
290
291 2013-04-23  Dirk Schulze  <krit@webkit.org>
292
293         Pick up color and mat values in custom shaders
294         https://bugs.webkit.org/show_bug.cgi?id=115046
295
296         Reviewed by Dean Jackson.
297
298         The custom filter functions accept color values and mat2-4 functions
299         as parameter types. These were implemented in CSS already.
300         This patch picks up the values and applies them as uniforms to the
301         custom shader program. 
302
303         Tests: css3/filters/custom/custom-filter-color.html
304                css3/filters/custom/custom-filter-matN.html
305
306         * platform/graphics/filters/CustomFilterRenderer.cpp:
307         (WebCore::CustomFilterRenderer::bindProgramColorParameters): Set uniform for color values.
308         (WebCore):
309         (WebCore::CustomFilterRenderer::bindProgramMatrixParameters): Set uniform for mat2-4 values.
310         (WebCore::CustomFilterRenderer::bindProgramParameters): Call color and matrix functions.
311         * platform/graphics/filters/CustomFilterRenderer.h:
312         (WebCore):
313         (CustomFilterRenderer):
314
315 2013-04-23  Jacky Jiang  <zhajiang@blackberry.com>
316
317         Remove redundant code in ViewportArguments::resolve
318         https://bugs.webkit.org/show_bug.cgi?id=115054
319
320         Reviewed by Kenneth Rohde Christiansen.
321
322         Remove redundant code "result.orientation = orientation;".
323
324         * dom/ViewportArguments.cpp:
325         (WebCore::ViewportArguments::resolve):
326
327 2013-04-23  Simon Fraser  <simon.fraser@apple.com>
328
329         Tiled layers clipped inside nested transform/preserve-3d hierarchies
330         https://bugs.webkit.org/show_bug.cgi?id=115044
331
332         Reviewed by Dean Jackson.
333         
334         The optimization added in r139479 to call move() for integral translation
335         transforms hit a bug in TransformState::move(). If m_accumulatedTransform is
336         not null, we have to apply it.
337
338         Test: compositing/visible-rect/flipped-preserve-3d.html
339
340         * platform/graphics/transforms/TransformState.cpp:
341         (WebCore::TransformState::move):
342
343 2013-04-23  Claudio Saavedra  <csaavedra@igalia.com>
344
345         Ctrl+Shift+Right in Windows should select the spacing after the word
346         https://bugs.webkit.org/show_bug.cgi?id=110487
347
348         Reviewed by Ryosuke Niwa.
349
350         Tests: editing/deleting/smart-editing-disabled-win.html
351                editing/execCommand/remove-format-multiple-elements-win.html
352                editing/execCommand/toggle-link-win.html
353                editing/execCommand/toggle-unlink-win.html
354                editing/selection/extend-selection-enclosing-block-win.html
355                editing/style/make-text-writing-direction-inline-win.html
356                editing/style/push-down-font-styles-win.html
357                editing/style/push-down-implicit-styles-around-list-win.html
358
359         * editing/FrameSelection.cpp:
360         (WebCore::FrameSelection::nextWordPositionForPlatform): New method
361         that takes platform-specific editing behaviour in order to decide
362         what the next word position is, that is, for Windows, skip
363         spacing, for all other platforms, behave as currently.
364         (WebCore::FrameSelection::modifyExtendingRight):
365         (WebCore::FrameSelection::modifyExtendingForward):
366         (WebCore::FrameSelection::modifyMovingForward):
367         (WebCore::FrameSelection::modifyExtendingLeft): Use the new method
368         in all of the above.
369         * editing/FrameSelection.h: Declare the new method.
370
371 2013-04-23  Benjamin Poulain  <bpoulain@apple.com>
372
373         Inline SelectorQuery::matches, SelectorQuery::queryAll, SelectorQuery::queryFirst
374         https://bugs.webkit.org/show_bug.cgi?id=115012
375
376         Reviewed by Andreas Kling.
377
378         Each of these function has a single call site:
379         -SelectorQuery::matches from Element::webkitMatchesSelector.
380         -SelectorQuery::queryAll from Node::querySelectorAll.
381         -SelectorQuery::queryFirst from Node::querySelector.
382
383         Having a dedicated method to jump to was a little overkill.
384
385         * dom/SelectorQuery.cpp:
386         * dom/SelectorQuery.h:
387         (WebCore::SelectorQuery::matches):
388         (WebCore::SelectorQuery::queryAll):
389         (WebCore::SelectorQuery::queryFirst):
390
391 2013-04-23  Benjamin Poulain  <bpoulain@apple.com>
392
393         Remove wxWebKit's folders from WebCore
394         https://bugs.webkit.org/show_bug.cgi?id=115007
395
396         Reviewed by Andreas Kling.
397
398         The wxWebKit port is no longer actively maintained by Kevin
399         on webkit.org. Remove the code until new maintainers resume the work.
400
401         * accessibility/wx/AccessibilityObjectWx.cpp: Removed.
402         * editing/wx/EditorWx.cpp: Removed.
403         * page/wx/DragControllerWx.cpp: Removed.
404         * page/wx/EventHandlerWx.cpp: Removed.
405         * platform/graphics/wx/ColorWx.cpp: Removed.
406         * platform/graphics/wx/FloatRectWx.cpp: Removed.
407         * platform/graphics/wx/FontCacheWx.cpp: Removed.
408         * platform/graphics/wx/FontCustomPlatformData.cpp: Removed.
409         * platform/graphics/wx/FontCustomPlatformData.h: Removed.
410         * platform/graphics/wx/FontPlatformData.h: Removed.
411         * platform/graphics/wx/FontPlatformDataWx.cpp: Removed.
412         * platform/graphics/wx/FontPlatformDataWxMac.mm: Removed.
413         * platform/graphics/wx/FontWx.cpp: Removed.
414         * platform/graphics/wx/GlyphMapWx.cpp: Removed.
415         * platform/graphics/wx/GradientWx.cpp: Removed.
416         * platform/graphics/wx/GraphicsContextWx.cpp: Removed.
417         * platform/graphics/wx/IconWx.cpp: Removed.
418         * platform/graphics/wx/ImageBufferDataWx.h: Removed.
419         * platform/graphics/wx/ImageBufferWx.cpp: Removed.
420         * platform/graphics/wx/ImageWx.cpp: Removed.
421         * platform/graphics/wx/IntPointWx.cpp: Removed.
422         * platform/graphics/wx/IntRectWx.cpp: Removed.
423         * platform/graphics/wx/IntSizeWx.cpp: Removed.
424         * platform/graphics/wx/PathWx.cpp: Removed.
425         * platform/graphics/wx/SimpleFontDataWx.cpp: Removed.
426         * platform/graphics/wx/TransformationMatrixWx.cpp: Removed.
427         * platform/image-decoders/wx/ImageDecoderWx.cpp: Removed.
428         * platform/wx/ClipboardWx.cpp: Removed.
429         * platform/wx/ClipboardWx.h: Removed.
430         * platform/wx/ContextMenuItemWx.cpp: Removed.
431         * platform/wx/ContextMenuWx.cpp: Removed.
432         * platform/wx/CursorWx.cpp: Removed.
433         * platform/wx/DragDataWx.cpp: Removed.
434         * platform/wx/DragImageWx.cpp: Removed.
435         * platform/wx/EventLoopWx.cpp: Removed.
436         * platform/wx/FileSystemWx.cpp: Removed.
437         * platform/wx/KeyEventWin.cpp: Removed.
438         * platform/wx/KeyboardEventWx.cpp: Removed.
439         * platform/wx/LanguageWx.cpp: Removed.
440         * platform/wx/LocalDC.h: Removed.
441         * platform/wx/LocalizedStringsWx.cpp: Removed.
442         * platform/wx/LoggingWx.cpp: Removed.
443         * platform/wx/MimeTypeRegistryWx.cpp: Removed.
444         * platform/wx/MouseEventWx.cpp: Removed.
445         * platform/wx/MouseWheelEventWx.cpp: Removed.
446         * platform/wx/PasteboardWx.cpp: Removed.
447         * platform/wx/PopupMenuWx.cpp: Removed.
448         * platform/wx/PopupMenuWx.h: Removed.
449         * platform/wx/RenderThemeWx.cpp: Removed.
450         * platform/wx/RunLoopWx.cpp: Removed.
451         * platform/wx/SSLKeyGeneratorWx.cpp: Removed.
452         * platform/wx/ScreenWx.cpp: Removed.
453         * platform/wx/ScrollViewWx.cpp: Removed.
454         * platform/wx/ScrollbarThemeWx.cpp: Removed.
455         * platform/wx/ScrollbarThemeWx.h: Removed.
456         * platform/wx/SearchPopupMenuWx.cpp: Removed.
457         * platform/wx/SearchPopupMenuWx.h: Removed.
458         * platform/wx/SharedBufferWx.cpp: Removed.
459         * platform/wx/SharedTimerWx.cpp: Removed.
460         * platform/wx/SoundWx.cpp: Removed.
461         * platform/wx/SystemTimeWx.cpp: Removed.
462         * platform/wx/TemporaryLinkStubs.cpp: Removed.
463         * platform/wx/TextBreakIteratorInternalICUWx.cpp: Removed.
464         * platform/wx/WidgetWx.cpp: Removed.
465         * platform/wx/wxcode/cairo/non-kerned-drawing.cpp: Removed.
466         * platform/wx/wxcode/fontprops.cpp: Removed.
467         * platform/wx/wxcode/fontprops.h: Removed.
468         * platform/wx/wxcode/gdiplus/non-kerned-drawing.cpp: Removed.
469         * platform/wx/wxcode/gtk/fontprops.cpp: Removed.
470         * platform/wx/wxcode/gtk/non-kerned-drawing.cpp: Removed.
471         * platform/wx/wxcode/gtk/scrollbar_render.cpp: Removed.
472         * platform/wx/wxcode/mac/carbon/fontprops.mm: Removed.
473         * platform/wx/wxcode/mac/carbon/non-kerned-drawing.cpp: Removed.
474         * platform/wx/wxcode/mac/carbon/scrollbar_render.cpp: Removed.
475         * platform/wx/wxcode/non-kerned-drawing.h: Removed.
476         * platform/wx/wxcode/scrollbar_render.h: Removed.
477         * platform/wx/wxcode/win/fontprops.cpp: Removed.
478         * platform/wx/wxcode/win/non-kerned-drawing.cpp: Removed.
479         * platform/wx/wxcode/win/scrollbar_render.cpp: Removed.
480         * plugins/wx/PluginDataWx.cpp: Removed.
481
482 2013-04-23  Roger Fong  <roger_fong@apple.com>
483
484         AppleWin build fix.
485
486         * WebCore.vcxproj/WebCore.vcxproj:
487         * WebCore.vcxproj/WebCore.vcxproj.filters:
488
489 2013-04-23  Roger Fong  <roger_fong@apple.com>
490
491         AppleWin build fix.
492
493         * inspector/InspectorAllInOne.cpp:
494         * inspector/InspectorMemoryAgent.cpp:
495         (WebCore::InspectorMemoryAgent::create):
496         (WebCore):
497         * inspector/InspectorMemoryAgent.h:
498         (InspectorMemoryAgent):
499
500 2013-04-23  Zoltan Horvath  <zoltan@webkit.org>
501
502         [CSS Exclusions] shape-inside overflow should be pushed to the outside of the content box
503         https://bugs.webkit.org/show_bug.cgi?id=114526
504
505         Reviewed by David Hyatt.
506
507         The specification has changed to define shape-outside as the inverse of an exclusion. Overflowing content
508         should not overlap the shape, and it should be pushed outside the content box. This change affects several
509         tests, but only one new has been added. In this change I'm not intended to include the behavior change for
510         shape-inside on CSS Regions, I'm going to fix that in a follow up patch.
511
512         Tests: fast/exclusions/shape-inside/shape-inside-overflow-fixed-dimensions.html: Modified.
513                fast/exclusions/shape-inside/shape-inside-bottom-edge.html: Modified.
514                fast/exclusions/shape-inside/shape-inside-empty.html: Modified.
515                fast/exclusions/shape-inside/shape-inside-overflow-fixed-dimensions.html: Added.
516                fast/exclusions/shape-inside/shape-inside-overflow.html: Modified.
517                fast/exclusions/shape-inside/shape-inside-percentage.html: Modified.
518                fast/exclusions/shape-inside/shape-inside-rounded-rectangle-004.html: Modified.
519
520         * rendering/ExclusionShapeInfo.h:
521         (WebCore::ExclusionShapeInfo::clearSegments): Shape-outside's code uses shape-inside codepaths, when that happens we need to provide a
522         way to reset the m_segments member.
523         (WebCore::ExclusionShapeInfo::shapeContainingBlockHeight): The containing block's height is stored in m_shapeLogicalHeight, I added a
524         function to get this value when we need it to calculate the content box's bottom position.
525         (ExclusionShapeInfo):
526         (WebCore::ExclusionShapeInfo::lineOverlapsShapeBounds):
527         (WebCore::ExclusionShapeInfo::lineWithinShapeBounds):  Add function to test whether a whole line is within a shape or not.
528         * rendering/RenderBlockLineLayout.cpp:
529         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): Overflowing content should start under the content box.
530         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Since we use shape-inside codepaths for shape-outside in layoutRunsAndFloatsInRange function
531         and for shape-outside is not a requirement to check the line's bottom position is within the shape we might end up with some extra segments here.
532         In this case we should clear segments, since we don't want to apply any horizontal offsets on the overflowing content.
533
534 2013-04-23  Antti Koivisto  <antti@apple.com>
535
536         Avoid computing style twice when element has no existing style
537         https://bugs.webkit.org/show_bug.cgi?id=115042
538
539         Reviewed by Andreas Kling.
540         
541         We currently compute element style twice if we end up having to reattach, first in recalcStyle and then
542         again during attach(). We can easily avoid this in common case where the element has no existing style
543         (usually because it is display:none). 
544
545         * dom/Element.cpp:
546         (WebCore::Element::recalcStyle):
547         
548             Don't compute the style and diff if there is no existing style. There is nothing to diff against.
549             Instead just call reattach() directly, we ended up doing that anyway with the existing code.
550         
551 2013-04-23  Lamarque V. Souza  <Lamarque.Souza@basyskom.com>
552
553         WebSocket: Return type of send() should be void if hybi-10 protocol is chosen
554         https://bugs.webkit.org/show_bug.cgi?id=65850
555
556         Reviewed by Alexey Proskuryakov.
557
558         WebSocket API draft changed the return type of send() from boolean to void based on Simon
559         Pieters' post to WHATWG. Firefox 8 and IE 10 already follow the specification, hence it should
560         make sense for us to do the same when hybi protocol is used.
561
562         Original patch by Yuta Kitamura  <yutak@chromium.org>
563
564         Tests: http/tests/websocket/tests/hybi/bufferedAmount-after-close.html (updated)
565                http/tests/websocket/tests/hybi/send-after-close-on-unload.html (updated)
566
567         * Modules/websockets/WebSocket.cpp:
568         (WebCore::WebSocket::send):
569         * Modules/websockets/WebSocket.h:
570         * Modules/websockets/WebSocket.idl:
571
572 2013-04-23  Carlos Garcia Campos  <cgarcia@igalia.com>
573
574         ScrollbarThemeComposite depends on Page/FrameView/ChromeClient
575         https://bugs.webkit.org/show_bug.cgi?id=21361
576
577         Reviewed by Andreas Kling.
578
579         Remove unused header includes.
580
581         * platform/ScrollbarThemeComposite.cpp:
582
583 2013-04-23  Carlos Garcia Campos  <cgarcia@igalia.com>
584
585         [GTK] Add webkit_uri_request_get_http_headers to WebKit2 GTK+ API
586         https://bugs.webkit.org/show_bug.cgi?id=112160
587
588         Reviewed by Andreas Kling.
589
590         * platform/network/soup/GOwnPtrSoup.cpp:
591         (WTF::SoupMessageHeaders): Add freeOwnedGPtr implementation for
592         SoupMessageHeaders.
593         (WTF):
594         * platform/network/soup/GOwnPtrSoup.h:
595         (WTF):
596         * platform/network/soup/ResourceRequest.h:
597         (ResourceRequest):
598         * platform/network/soup/ResourceRequestSoup.cpp:
599         (WebCore::ResourceRequest::updateSoupMessageHeaders): New function
600         to update the given SoupMessageHeaders with the ResourceRequest
601         headers.
602         (WebCore::ResourceRequest::updateFromSoupMessageHeaders): New
603         function to update the ResourceRequest headers with the given
604         SoupMessageHeaders.
605         (WebCore::ResourceRequest::updateSoupMessage): Use
606         updateSoupMessageHeaders() to update the headers.
607         (WebCore::ResourceRequest::toSoupMessage): Ditto.
608         (WebCore::ResourceRequest::updateFromSoupMessage): Use
609         updateFromSoupMessageHeaders to update the headers.
610
611 2013-04-23  Andreas Kling  <akling@apple.com>
612
613         Clear StyleResolver state before returning from styleForElement().
614         <http://webkit.org/b/115035>
615
616         Reviewed by Antti Koivisto.
617
618         From Blink r148687 by <inferno@chromium.org>.
619
620         A cached element pointer in the resolver state was causing confusion because
621         in some cases a subsequent call to styleForElement() would use a pointer to
622         a different object that is at the same memory address as the previous one.
623
624         Test: fast/css/reload-non-styled-element-crash.html
625
626         * css/StyleResolver.cpp:
627         (WebCore::StyleResolver::styleForElement):
628
629 2013-04-23  Andreas Kling  <akling@apple.com>
630
631         XSSAuditor performance regression due to threaded parser changes.
632         <http://webkit.org/b/115037>
633         <rdar://problem/13716069>
634
635         Reviewed by Anders Carlsson.
636
637         From Blink r148792 by <abarth@chromium.org>:
638
639         The refactoring we did for the threaded parser introduced a performance
640         regression in innerHTML because we'd boot up the XSSAuditor for fragment
641         parsing. This CL returns to our earlier behavior of not booting up the
642         XSSAuditor when parsing fragments.
643
644         * html/parser/HTMLDocumentParser.cpp:
645         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
646         * html/parser/XSSAuditor.cpp:
647         (WebCore::XSSAuditor::initForFragment):
648         * html/parser/XSSAuditor.h:
649         (XSSAuditor):
650
651 2013-04-23  Andreas Kling  <akling@apple.com>
652
653         Speed up ElementData::getAttributeItem(), which is hot.
654         <http://webkit.org/b/115031>
655
656         Reviewed by Antti Koivisto.
657
658         From Blink r148622 by <cevans@chromium.org>.
659
660         The previous version had a couple of issues:
661         - Incurred new WTF::Vector::operator[] checks.
662         - Had a branch in _every_ loop iteration that checked whether the storage was Vector or array[] backed.
663
664         Both these issues are fixed, and CloneNodes.html seems reliably at +2%.
665         I also believe GetElement.html is maybe +1%.
666
667         For WebKit, also applied the same optimization to getAttributeItemIndex().
668
669         * dom/Element.h:
670         (WebCore::ElementData::attributeBase):
671         (WebCore::ElementData::getAttributeItemIndex):
672         (WebCore::ElementData::getAttributeItem):
673         (WebCore::ElementData::attributeItem):
674
675 2013-04-23  Antoine Quint  <graouts@apple.com>
676
677         Initial advance of text runs should be taken into account
678         https://bugs.webkit.org/show_bug.cgi?id=114949
679
680         Reviewed by Darin Adler.
681
682         Keep track of complex text runs' initial advance by adding a new
683         member to GlyphBuffer and adding the initial advance of any non-first
684         text run to the advance of the last glyph added for the previous text run.
685         Additionally, we now correctly handle advance values in the y-axis.
686
687         Test: fast/text/complex-initial-advance.html
688
689         * WebCore.exp.in:
690         Add support for new WebKitSystemInterface API.
691         * platform/graphics/FontFastPath.cpp:
692         (WebCore::Font::drawGlyphBuffer):
693         Take into account the buffer's initial advance in the y-axis to adjust
694         the point at which to draw the buffers. Additionally, keep track of advances
695         on the y-axis as well as the x-axis (which we already were doing) as we iterate
696         through glyphs and adjust the start point.
697         (WebCore::Font::drawEmphasisMarks):
698         Adopt change of GlyphBuffer::advanceAt() return type.
699         * platform/graphics/GlyphBuffer.h:
700         Removing the WINCE-specific GlyphBufferAdvance struct since heights are now necessary.
701         (WebCore::GlyphBufferAdvance::GlyphBufferAdvance):
702         New default constructor for GlyphBufferAdvance to support the m_initialAdvance member.
703         (WebCore::GlyphBuffer::setInitialAdvance):
704         (WebCore::GlyphBuffer::initialAdvance):
705         New APIs to get and set the initial advance for a glyph buffer.
706         (WebCore::GlyphBuffer::advanceAt):
707         Return a GlyphBufferAdvance rather than a float which used to be only
708         the glyph buffer's x-axis advance. This is necessary to handle deltas
709         on the y-axis as well (see WebCore::Font::drawGlyphBuffer).
710         * platform/graphics/GlyphBuffer.h:
711         (GlyphBuffer):
712         (WebCore::GlyphBuffer::setInitialAdvance):
713         * platform/graphics/WidthIterator.cpp:
714         (WebCore::WidthIterator::advanceInternal):
715         (WebCore::WidthIterator::advanceOneCharacter):
716         Adopt change of GlyphBuffer::advanceAt() return type.
717         * platform/graphics/cairo/FontCairo.cpp:
718         (WebCore::Font::drawGlyphs):
719         Adopt change of GlyphBuffer::advanceAt() return type.
720         * platform/graphics/mac/ComplexTextController.cpp:
721         (WebCore::ComplexTextController::advance):
722         When processing the first text run, set that run's initial advance as
723         the glyph buffer's initial advance.
724         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
725         Represent the initial advance for a text run by adjusting the advance
726         of the last glyph of the previous text run in the glyph buffer.
727         * platform/graphics/mac/ComplexTextController.h:
728         (WebCore::ComplexTextController::ComplexTextRun::initialAdvance):
729         (ComplexTextRun):
730         New API to read the inital advance of a complex text run.
731         * platform/graphics/mac/ComplexTextControllerCoreText.mm:
732         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun):
733         Obtain the text run's initial advance via the new wkCTRunGetInitialAdvance
734         WebKitSystemInterface API.
735         * platform/graphics/qt/FontQt.cpp:
736         (WebCore::Font::drawGlyphs):
737         Adopt change of GlyphBuffer::advanceAt() return type.
738         * platform/mac/WebCoreSystemInterface.h:
739         * platform/mac/WebCoreSystemInterface.mm:
740         Add support for the new wkCTRunGetInitialAdvance WebKitSystemInterface API.
741         * platform/wx/wxcode/cairo/non-kerned-drawing.cpp:
742         (WebCore::drawTextWithSpacing):
743         Adopt change of GlyphBuffer::advanceAt() return type.
744         * rendering/svg/SVGTextRunRenderingContext.cpp:
745         (WebCore::SVGTextRunRenderingContext::drawSVGGlyphs):
746         Adopt change of GlyphBuffer::advanceAt() return type.
747
748 2013-04-23  Noam Rosenthal  <noam@webkit.org>
749
750         [Texmap] Don't paint to an intermediate surface when the result is going to be clipped out completely.
751         https://bugs.webkit.org/show_bug.cgi?id=115015
752
753         Reviewed by Allan Sandfeld Jensen.
754
755         Maintain a clipBounds rectangle in TextureMapper, and test it against the bounds of an intermediate
756         surface before it is painted.
757         This allows us to opt out completely of painting into the surface if the result is going to be optimized
758         out by the GPU clipping.
759
760         Covered by tests in compositing/overlap-blending.
761
762         * platform/graphics/texmap/TextureMapper.h:
763         (TextureMapper):
764         * platform/graphics/texmap/TextureMapperGL.cpp:
765         (WebCore::TextureMapperGL::clipBounds):
766         (WebCore):
767         * platform/graphics/texmap/TextureMapperGL.h:
768         * platform/graphics/texmap/TextureMapperImageBuffer.h:
769         * platform/graphics/texmap/TextureMapperLayer.cpp:
770         (WebCore::TextureMapperLayer::paintUsingOverlapRegions):
771
772 2013-04-23  Noam Rosenthal  <noam@webkit.org>
773
774         [Coordinated Graphics] Remove the lockAnimations code path
775         https://bugs.webkit.org/show_bug.cgi?id=114899
776
777         Reviewed by Benjamin Poulain.
778
779         Remove locking/unlocking animations and checks for the lock state.
780         The animation locking has been tested to create not-so-smooth animations,
781         while the use case where the composited animations run out of sync from
782         the non-composited animations is very rare and unnoticeable.
783
784         No new tests, removing functionality that wasn't tested in the first place.
785
786         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
787         (WebCore::CoordinatedGraphicsScene::CoordinatedGraphicsScene):
788         (WebCore::CoordinatedGraphicsScene::paintToCurrentGLContext):
789         (WebCore::CoordinatedGraphicsScene::commitSceneState):
790         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
791         (CoordinatedGraphicsScene):
792
793 2013-04-23  Allan Sandfeld Jensen  <allan.jensen@digia.com>
794
795         Respect image-rendering setting for determing image-rendering quality
796         https://bugs.webkit.org/show_bug.cgi?id=113405
797
798         Reviewed by Benjamin Poulain.
799
800         Remove the CSS4 values as they are not ready for implementation yet.
801         We still parse the -webkit-crisp-edges and SVG compatibility values to
802         be closer to the the partial support in Gecko and Presto.
803
804         Tests: fast/css/image-rendering-canvas.html
805                fast/css/image-rendering-parsing.html
806                fast/css/image-rendering.html
807                fast/css/optimize-contrast-image.html
808
809         * css/CSSParser.cpp:
810         (WebCore::isValidKeywordPropertyAndValue):
811         * css/CSSPrimitiveValueMappings.h:
812         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
813         (WebCore::CSSPrimitiveValue::operator EImageRendering):
814         * css/CSSValueKeywords.in:
815         * css/SVGCSSParser.cpp:
816         (WebCore::CSSParser::parseSVGValue):
817         * rendering/RenderBoxModelObject.cpp:
818         (WebCore::ImageQualityController::shouldPaintAtLowQuality):
819         * rendering/RenderHTMLCanvas.cpp:
820         (WebCore::RenderHTMLCanvas::paintReplaced):
821         * rendering/style/RenderStyleConstants.h:
822
823 2013-04-23  Commit Queue  <rniwa@webkit.org>
824
825         Unreviewed, rolling out r148923.
826         http://trac.webkit.org/changeset/148923
827         https://bugs.webkit.org/show_bug.cgi?id=115020
828
829         The patch causes multiple failures in CSS, canvas tests
830         (Requested by zdobersek on #webkit).
831
832         * platform/graphics/cairo/PlatformContextCairo.cpp:
833         (WebCore::PlatformContextCairo::drawSurfaceToContext):
834
835 2013-04-22  Noam Rosenthal  <noam@webkit.org>
836
837         [EFL] Assertion Failures in Coordinated Graphics after r148433
838         https://bugs.webkit.org/show_bug.cgi?id=114731
839
840         Reviewed by Gyuyoung Kim.
841
842         The assert is incorrect. In some cases in coordinated graphics we may have a backing store
843         and drawsContent would be set to false.
844
845         No new tests.
846
847         * platform/graphics/texmap/TextureMapperLayer.cpp:
848         (WebCore::TextureMapperLayer::paintSelf):
849
850 2013-04-22  Suchit Agrawal  <a.suchit@samsung.com>
851
852         table's text aligned on top instead of center because of rowspan
853         https://bugs.webkit.org/show_bug.cgi?id=18092
854
855         Reviewed by Beth Dakin.
856
857         Last row in the rowspan is not getting the height of rowspan cell because there is not
858         enough rows present below rowspan cell and we are strictly applying height of rowspan
859         to the row which should lay last in the rowspan based of rowspan value.
860
861         When row contains rowspan cell and it is last row of the table then
862         rowspan height is adding to last row of the table.
863
864         Test: fast/table/Rowspan-value-more-than-number-of-rows-present.html
865
866         It calculates logical height of the rows in the table.
867         * rendering/RenderTableSection.cpp:
868         (WebCore::RenderTableSection::calcRowLogicalHeight):
869
870 2013-04-22  Mihnea Ovidenie  <mihnea@adobe.com>
871
872         [CSS Regions] Region's float parent doesn't size according to region size but to content node size
873         https://bugs.webkit.org/show_bug.cgi?id=111332
874
875         Reviewed by David Hyatt.
876
877         Tests: fast/regions/intrinsic-sized-regions.html
878                fast/regions/region-with-float-parent.html
879
880         The patch ensures that the computation of region's preferred widths
881         takes into account the region width/min-width if these values are specified.
882         Also implemented the computation of intrinsic widths for a region,
883         based on the min/max preferred widths of the associated flow thread.
884
885         * rendering/RenderRegion.cpp:
886         (WebCore::RenderRegion::computeIntrinsicLogicalWidths):
887         (WebCore):
888         (WebCore::RenderRegion::computePreferredLogicalWidths):
889         * rendering/RenderRegion.h:
890         (RenderRegion):
891
892 2013-04-22  Jessie Berlin  <jberlin@apple.com>
893
894         Debug build fix.
895
896         Rubber-stamped by Ryosuke Niwa.
897
898         * inspector/InspectorController.cpp:
899         (WebCore::InspectorController::InspectorController):
900         * inspector/InspectorMemoryAgent.cpp:
901         (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
902         * inspector/InspectorMemoryAgent.h:
903         (WebCore):
904         (WebCore::InspectorMemoryAgent::create):
905         (InspectorMemoryAgent):
906
907 2013-04-22  Brady Eidson  <beidson@apple.com>
908
909         Address review feedback I forgot to address in r148929
910         https://bugs.webkit.org/show_bug.cgi?id=114480
911
912         * loader/SubresourceLoader.cpp:
913         (WebCore::SubresourceLoader::willSendRequest): Rework the "what" comment into a more useful "why" comment.
914
915 2013-04-22  Benjamin Poulain  <bpoulain@apple.com>
916
917         Second Mac debug build fix after r148921
918
919         Unreviewed.
920
921         * inspector/InspectorMemoryAgent.cpp:
922         (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
923         * inspector/InspectorMemoryAgent.h:
924         (InspectorMemoryAgent):
925
926 2013-04-22  Brady Eidson  <beidson@apple.com>
927
928         REGRESSION (r141136): Wiki "Random article" function very broken.
929         <rdar://problem/13229985> and https://bugs.webkit.org/show_bug.cgi?id=114480
930
931         Reviewed by Alexey Proskuryakov.
932
933         Test: http/tests/navigation/redirect-to-random-url-versus-memory-cache.html
934
935         If we are performing a conditional GET to revalidate a resource and there's a redirect,
936         check to see if the redirect is to a different URL than the final URL of the resource.
937
938         If the URLs differ then we should make the redirect-request unconditional and do a normal load.
939
940         * loader/SubresourceLoader.cpp:
941         (WebCore::SubresourceLoader::willSendRequest):
942
943         * platform/network/ResourceRequestBase.cpp:
944         (WebCore::ResourceRequestBase::makeUnconditional):
945
946         * platform/network/ResourceRequestBase.h:
947         (ResourceRequestBase):
948
949 2013-04-22  Benjamin Poulain  <bpoulain@apple.com>
950
951         Mac debug build fix after r148921
952
953         Unreviewed.
954
955         * page/animation/CompositeAnimation.cpp:
956
957 2013-04-22  Rashmi Shyamasundar  <rashmi.s2@samsung.com>
958
959         [Cairo] Canvas-shadow behavior is not being as expected
960         https://bugs.webkit.org/show_bug.cgi?id=108897
961
962         Reviewed by Martin Robinson.
963
964         Use the pattern-extend-mode "CAIRO_EXTEND_NONE" instead of "CAIRO_EXTEND_PAD" in
965         PlatformContextCairo::drawSurfaceToContext().
966
967         In the function PlatformContextCairo::drawSurfaceToContext(), a pattern is being
968         created from the source surface and this pattern is drawn onto the destination
969         context. There is no gradient involved. Hence the extend mode for filling the
970         pattern should be "CAIRO_EXTEND_NONE". If we use the extend mode
971         "CAIRO_EXTEND_PAD" in PlatformContextCairo::drawSurfaceToContext(), the original
972         image area is also filled with the shadow color which is not the expected behavior.
973
974         Test: fast/canvas/canvas-image-shadow.html
975
976         * platform/graphics/cairo/PlatformContextCairo.cpp:
977         (WebCore::PlatformContextCairo::drawSurfaceToContext):
978
979 2013-04-22  Benjamin Poulain  <benjamin@webkit.org>
980
981         Remove the memory instrumentation code
982         https://bugs.webkit.org/show_bug.cgi?id=114931
983
984         Reviewed by Andreas Kling.
985
986         The Memory Instrumentation code is unfinished and has already
987         become out of sync the objects it is supposed to represent.
988
989         The current approach does not seem maintainable, it is better to
990         remove it before someone gets hurt.
991
992         By removing the code, the binary become 1240976 bytes smaller.
993         Yep, almost 1 Mb, bringing WebCore to the size it has 5 months ago :)
994
995         * MostWebCoreFiles: remove the support for memory instrumentation.
996
997 2013-04-22  Bear Travis  <betravis@adobe.com>
998
999         Do not reuse ExclusionShapeInsideInfo in a recursive region layout
1000         https://bugs.webkit.org/show_bug.cgi?id=114467
1001
1002         Reviewed by David Hyatt.
1003
1004         Elements that respect shape-inside that have inline children should not reuse an
1005         ExclusionShapeInsideInfo for their children's layout. This patch adds the test
1006         for regions. See the details for non-region layout in bug 104582.
1007         https://bugs.webkit.org/show_bug.cgi?id=104582
1008
1009         Test: fast/regions/shape-inside/shape-inside-recursive-layout.html
1010
1011         * rendering/RenderBlockLineLayout.cpp:
1012         (WebCore::RenderBlock::layoutExclusionShapeInsideInfo): Do not look up a region's
1013         ExclusionShapeInsideInfo if a block is already respecting shape-inside.
1014
1015 2013-04-22  Martin Robinson  <mrobinson@igalia.com>
1016
1017         [GTK] Fix remaining introspection warnings
1018         https://bugs.webkit.org/show_bug.cgi?id=114980
1019
1020         Reviewed by Gustavo Noronha Silva.
1021
1022         * bindings/gobject/WebKitDOMCustom.h: Add scope and transfer annotations and flesh
1023         out gtkdoc for completeness.
1024         * bindings/gobject/WebKitDOMEventTarget.h:
1025         (_WebKitDOMEventTargetIface): Ditto and also align virtual method names with those used
1026         for the concrete ones.
1027
1028 2013-04-22  Tim Horton  <timothy_horton@apple.com>
1029
1030         PDFPlugin: Support unlocking encrypted PDFs
1031         https://bugs.webkit.org/show_bug.cgi?id=114938
1032         <rdar://problem/12872888>
1033
1034         Reviewed by Alexey Proskuryakov.
1035
1036         Export HTMLNames::typeAttr.
1037
1038         * WebCore.exp.in:
1039
1040 2013-04-22  Ryosuke Niwa  <rniwa@webkit.org>
1041
1042         Use-after-free in CompositeEditCommand::cloneParagraphUnderNewElement
1043         https://bugs.webkit.org/show_bug.cgi?id=114911
1044
1045         Reviewed by Oliver Hunt.
1046
1047         Back ported https://src.chromium.org/viewvc/blink?revision=148680&view=revision.
1048
1049         * editing/CompositeEditCommand.cpp:
1050         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
1051
1052 2013-04-22  Eric Carlson  <eric.carlson@apple.com>
1053
1054         [Mac] "automatic" track selection should only select a track that matches user language
1055         https://bugs.webkit.org/show_bug.cgi?id=114976
1056
1057         Reviewed by Jer Noble.
1058
1059         Test: media/track/track-automatic-subtitles.html
1060
1061         * page/CaptionUserPreferencesMac.mm:
1062         (WebCore::CaptionUserPreferencesMac::textTrackSelectionScore): When in "automatic" mode, only
1063             consider text tracks that match the user's preferred language when the primary audio track
1064             does not.
1065
1066 2013-04-22  Jer Noble  <jer.noble@apple.com>
1067
1068         Cancelling load may cause deadlock in -[AVPlayerItem release]
1069         https://bugs.webkit.org/show_bug.cgi?id=114962
1070
1071         Reviewed by Eric Carlson.
1072
1073         Work around a bug in AVAssetResourceLoader by using a generic, non-main dispatch queue
1074         to recieve AVAssetResourceLoaderDelegate callbacks, and then marshalling those
1075         callbacks to the main thread asynchronously.
1076
1077         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1078         (WebCore::globalLoaderDelegateQueue): Added.
1079         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use the new global queue.
1080         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]):
1081             Marshall the request to the main queue, and return YES (wait) immediately.
1082
1083 2013-04-22  Zan Dobersek  <zdobersek@igalia.com>
1084
1085         [GTK] Set up libPlatform.la
1086         https://bugs.webkit.org/show_bug.cgi?id=114168
1087
1088         Reviewed by Martin Robinson.
1089
1090         No new tests - no new functionality.
1091
1092         * GNUmakefile.am: Also add the LevelDB-specific cppflags to the platform_cppflags if required as the LevelDB
1093         code is now built into the new libPlatform.la library.
1094         * GNUmakefile.list.am: Build a small set of non-GTK-specific platform source files that are already free of
1095         platform violations into the new libPlatform.la library.
1096
1097 2013-04-22  Andy Estes  <aestes@apple.com>
1098
1099         Range.getClientRects() should not include rects for partially selected elements
1100         https://bugs.webkit.org/show_bug.cgi?id=76839
1101
1102         Reviewed by Sam Weinig.
1103
1104         CSSOM says that Range.getClientRects() should include the border boxes
1105         of each element selected by the range. However, we were also
1106         incorrectly including border boxes for partially selected elements.
1107         For instance, consider the following selection:
1108
1109             <div>line one<br>line two</div>
1110             -------------
1111
1112         The <div> is two lines tall, but only the first line is selected.
1113         Despite this, we'd include the <div>'s border box since its start tag
1114         was included in the selection.
1115
1116         Fix this by excluding partially selected elements. This is accomplished
1117         by skipping over elements that come after the start boundary point of
1118         the range but are ancestors of the end boundary point.
1119
1120         Added test cases to LayoutTests/fast/dom/Range/getClientRects.html.
1121
1122         * dom/Range.cpp:
1123         (WebCore::Range::getBorderAndTextQuads):
1124
1125 2013-04-22  Yi Shen  <max.hong.shen@gmail.com>
1126
1127         Crash on OS X when shift clicking outside of input
1128         https://bugs.webkit.org/show_bug.cgi?id=104058
1129
1130         Reviewed by Chang Shu.
1131
1132         Shift clicking outside of a focused div while removing the focused div from
1133         the dom tree at the same time may hit a null visible position, which should
1134         not be used to calculate the text distance with the new selection's start and
1135         end position. Otherwise, the browser may crash.
1136
1137         Test: editing/selection/crash-on-shift-click.html
1138
1139         * page/EventHandler.cpp:
1140         (WebCore::EventHandler::handleMousePressEventSingleClick):
1141
1142 2013-04-22  Carlos Garcia Campos  <cgarcia@igalia.com>
1143
1144         Scrollbar should not depend on EventHandler, Frame and FrameView
1145         https://bugs.webkit.org/show_bug.cgi?id=114941
1146
1147         Reviewed by Darin Adler.
1148
1149         It's a layering violation that Scrollbar uses EventHandler, Frame
1150         and FrameView. Frame is used to get the EventHandler that is used
1151         to set mousePressed to false after a Scrollbar::mouseUp(). This is
1152         not really needed, since EventHandler already sets m_mousePressed
1153         to false when calling Scrollbar::mouseUp(). The PopupMenu windows
1154         implementation also calls Scrollbar::mouseUp(), but that scrollbar
1155         is not inside a FrameView.
1156
1157         * platform/Scrollbar.cpp:
1158         (WebCore::Scrollbar::isScrollViewScrollbar):
1159         isScrollViewScrollbar() is a method of ScrollView so we don't need
1160         to cast to FrameView.
1161         (WebCore::Scrollbar::mouseUp): Remove EventHandler ussage.
1162
1163 2013-04-22  Andreas Kling  <akling@apple.com>
1164
1165         Shrink baseline size of WTF::Vector on 64-bit by switching to unsigned capacity and size.
1166         <http://webkit.org/b/97268>
1167         <rdar://problem/12376519>
1168
1169         Reviewed by Sam Weinig.
1170
1171         * CMakeLists.txt: Add a workaround for GCC 4.6.x in Release mode so it
1172         does not crash.
1173
1174 2013-04-22  John Griggs  <jgriggs@blackberry.com>
1175
1176         [BlackBerry] URL decode data: URLs before passing to the platform media player.
1177         https://bugs.webkit.org/show_bug.cgi?id=114887
1178
1179         Reviewed by Rob Buis.
1180
1181         Pass data URL through URL decoding before passing to platform media player.  PR 313635.
1182
1183         Reviewed internally by Liam Quinn
1184
1185         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
1186         (WebCore::MediaPlayerPrivate::load):
1187
1188 2013-04-22  Xuefei Ren  <xren@blackberry.com>
1189
1190
1191         fix build warning(unused parameter)
1192         https://bugs.webkit.org/show_bug.cgi?id=114855
1193
1194         Reviewed by Rob Buis.
1195
1196         remove warning(unused parameter) in
1197         Source/WebCore/platform/graphics/blackberry
1198
1199         * platform/graphics/blackberry/CanvasLayerWebKitThread.cpp:
1200         (WebCore::CanvasLayerCompositingThreadClient::drawTextures):
1201         (WebCore::CanvasLayerCompositingThreadClient::deleteTextures):
1202         (WebCore::CanvasLayerCompositingThreadClient::commitPendingTextureUploads):
1203         * platform/graphics/blackberry/FontBlackBerry.cpp:
1204         (WebCore::Font::offsetForPositionForComplexText):
1205         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
1206         (WebCore::FontCache::getSimilarFontPlatformData):
1207         (WebCore::FontCache::getTraitsInFamily):
1208         * platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp:
1209         (WebCore::GlyphPage::fill):
1210         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
1211         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
1212         * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp:
1213         (WebCore::GraphicsContext::drawConvexPolygon):
1214         (WebCore::GraphicsContext::fillRect):
1215         (WebCore::GraphicsContext::fillRoundedRect):
1216         (WebCore::GraphicsContext::roundToDevicePixels):
1217         (WebCore::GraphicsContext::setPlatformShadow):
1218         (WebCore::GraphicsContext::clipConvexPolygon):
1219         (WebCore::GraphicsContext::setURLForRect):
1220         (WebCore::GraphicsContext::setPlatformStrokeColor):
1221         (WebCore::GraphicsContext::setPlatformFillColor):
1222         (WebCore::GraphicsContext::setPlatformCompositeOperation):
1223         * platform/graphics/blackberry/ImageBlackBerry.cpp:
1224         (WebCore::BitmapImage::draw):
1225         (WebCore::Image::drawPattern):
1226         * platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
1227         (WebCore::flushAndDraw):
1228         (WebCore::ImageBuffer::ImageBuffer):
1229         (WebCore::ImageBuffer::copyImage):
1230         (WebCore::ImageBuffer::draw):
1231         (WebCore::ImageBuffer::platformTransformColorSpace):
1232         * platform/graphics/blackberry/LayerTiler.cpp:
1233         (WebCore::LayerTiler::drawTile):
1234         * platform/graphics/blackberry/PathBlackBerry.cpp:
1235         (WebCore::GraphicsContext::drawFocusRing):
1236         (WebCore::GraphicsContext::clipPath):
1237         * platform/graphics/blackberry/PatternBlackBerry.cpp:
1238         (WebCore::Pattern::platformPattern):
1239
1240 2013-04-22  Mike Fenton  <mifenton@rim.com>
1241
1242         [BlackBerry] Add additional datalist support.
1243         https://bugs.webkit.org/show_bug.cgi?id=114883
1244
1245         Reviewed by Rob Buis.
1246
1247         PR 210083.
1248
1249         Extend support for datalist to include all non-popup input types.
1250
1251         Re-enabling fast/forms/datalist/input-list
1252
1253         Internally Reviewed by Otto Cheung.
1254
1255         * platform/blackberry/RenderThemeBlackBerry.cpp:
1256         (WebCore::RenderThemeBlackBerry::supportsDataListUI):
1257
1258 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
1259
1260         [BlackBerry] Add dummy implementations of DragData::droppedFileSystemId()
1261         https://bugs.webkit.org/show_bug.cgi?id=114861
1262
1263         Reviewed by Carlos Garcia Campos.
1264
1265         * platform/blackberry/DragDataBlackBerry.cpp:
1266         (WebCore):
1267         (WebCore::DragData::droppedFileSystemId):
1268
1269 2013-04-22  Mihai Maerean  <mmaerean@adobe.com>
1270
1271         [CSS Regions] Elements in a region should be assignable to a named flow
1272         https://bugs.webkit.org/show_bug.cgi?id=74144
1273
1274         Reviewed by David Hyatt.
1275
1276         DOM children of a region must not be rendered as children of the region, but can be collected in flow threads.
1277
1278         NodeRenderingContext::parentRenderer now creates the parent render flow thread if it doesn't exist.
1279
1280         Element::moveToFlowThreadIsNeeded is a virtual method that is overriden in PseudoElement to return false and
1281         in SVGElement so only svg root elements can directly be collected by a render flow thread.
1282
1283         RenderObject::canDOMChildrenHaveRenderParent exists to optimize the code so nodes inside regions (and maybe
1284         other types of renderers in the future) can still have renderers if they need to be in a flow thread while the
1285         rest of renderers that can't have children skip the new instructions.
1286
1287         Tests: fast/regions/flow-body-in-html.html . To test the duplicate bug #103685.
1288                fast/regions/region-content-flown-into-region.html
1289                fast/regions/universal-selector-children-to-the-same-region.html . To test the duplicate bug #103685.
1290
1291         * dom/Element.cpp:
1292         (WebCore::Element::moveToFlowThreadIsNeeded):
1293         * dom/Element.h:
1294         * dom/NodeRenderingContext.cpp:
1295         (WebCore::NodeRenderingContext::parentRenderer): the renderer that will be the parent for this node's renderer.
1296         In the case of RenderFlowThreads, it may need to create it.
1297         (WebCore::NodeRenderingContext::shouldCreateRenderer): In a region, only the children that need to be in a flow
1298         thread should have a renderer.
1299         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
1300         (WebCore::NodeRenderingContext::moveToFlowThread):
1301         * dom/NodeRenderingContext.h:
1302         (NodeRenderingContext):
1303         * dom/PseudoElement.h: pseudo-elements cannot be directly collected into a named flow.
1304         * dom/Text.cpp:
1305         (WebCore::Text::textRendererIsNeeded):
1306         (WebCore::Text::updateTextRenderer): Because calling textRendererIsNeeded(NodeRenderingContext(...)) on a
1307         non-const l-value NodeRenderingContext cannot be done on a temporary object on the stack.
1308         * dom/Text.h:
1309         * rendering/FlowThreadController.cpp:
1310         (WebCore::FlowThreadController::isContentNodeRegisteredWithAnyNamedFlow):
1311         * rendering/FlowThreadController.h:
1312         * rendering/RenderObject.h:
1313         (WebCore::RenderObject::canDOMChildrenHaveRenderParent): Even if this render object can't have render children,
1314         the children in the DOM tree may have a render parent (that is different from this render object).
1315         * rendering/RenderRegion.h:
1316         * svg/SVGElement.cpp:
1317         (WebCore::SVGElement::moveToFlowThreadIsNeeded): Allow only svg root elements to be directly collected by a
1318         render flow thread.
1319         * svg/SVGElement.h:
1320
1321 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
1322
1323         Gradient: add PlatformGradient definition for BlackBerry
1324         https://bugs.webkit.org/show_bug.cgi?id=114727
1325
1326         Reviewed by Carlos Garcia Campos.
1327
1328         * platform/graphics/Gradient.h:
1329         (Graphics):
1330
1331 2013-04-22  Andrei Bucur  <abucur@adobe.com>
1332
1333         Use DOM ordering for list counts
1334         https://bugs.webkit.org/show_bug.cgi?id=110352
1335
1336         Reviewed by Elliott Sprehn.
1337
1338         Currently the list items ordering is made by traversing the render tree. This gives bad results for:
1339         - list items flown inside regions because they are not rendered as descendants of their DOM list ancestors.
1340         - list items matched to insertion points inside a shadow tree. The insertion point may be a child of a
1341         list so the numbering gets broken.
1342
1343         To implement correct DOM ordering I've taken into account the fact that pseudo-elements can have display: list-item
1344         so they should be included when traversing the DOM tree. I've added helper methods on the NodeTraversal
1345         namespace that should allow easily traversing the tree including the pseudo-elements (e.g. firstChildWithPseudo
1346         for an element with pseudo-before will return the before PseudoElement). Using these helper methods I've implemented
1347         pre-order traversal methods aware of the pseudo-elements.
1348         An effect of this change is how the list items inside shadow tree update their counting. With the patch, if there's
1349         no <ol> or <ul> element on the ancestor chain of a <li> element to the shadow root, the list node will be considered the
1350         first parent of the <li> or the shadow root if there is no ancestor.
1351         The RenderListItem class now makes use of this new method of traversal, replacing the one based on the render tree.
1352         To simplify the CSS counters implementation, I've changed the traversal functions inside RenderCounter to also make use
1353         of this method. The CSS counters and the list items now have the same traversal algorithm.
1354
1355         In later patches I'll add tests that should cover the regions and shadow DOM use cases.
1356         Tests bug for shadow DOM: https://bugs.webkit.org/show_bug.cgi?id=113193
1357         Tests bug for regions: https://bugs.webkit.org/show_bug.cgi?id=103975
1358
1359         Tests: no new tests is this patch; added the correct expectations for fast/lists/positioned-count-crash.html
1360         and fast/dom/shadow/shadow-and-list-elements.html
1361
1362         * dom/Node.cpp:
1363         (WebCore::Node::pseudoAwarePreviousSibling):
1364         (WebCore):
1365         (WebCore::Node::pseudoAwareNextSibling):
1366         (WebCore::Node::pseudoAwareFirstChild):
1367         (WebCore::Node::pseudoAwareLastChild):
1368         * dom/Node.h:
1369         (Node):
1370         * dom/NodeTraversal.cpp:
1371         (WebCore):
1372         (WebCore::NodeTraversal::previousIncludingPseudo):
1373         (NodeTraversal):
1374         (WebCore::NodeTraversal::nextIncludingPseudo):
1375         (WebCore::NodeTraversal::nextIncludingPseudoSkippingChildren):
1376         * dom/NodeTraversal.h:
1377         (ElementTraversal):
1378         (NodeTraversal):
1379         (WebCore::ElementTraversal::previousIncludingPseudo):
1380         (WebCore::ElementTraversal::nextIncludingPseudo):
1381         (WebCore::ElementTraversal::nextIncludingPseudoSkippingChildren):
1382         (WebCore::ElementTraversal::pseudoAwarePreviousSibling):
1383         * html/HTMLLIElement.cpp:
1384         (WebCore::HTMLLIElement::attach):
1385         * html/HTMLOListElement.cpp:
1386         (WebCore::HTMLOListElement::updateItemValues):
1387         (WebCore::HTMLOListElement::recalculateItemCount):
1388         * rendering/RenderCounter.cpp:
1389         (WebCore::previousInPreOrder):
1390         (WebCore::previousSiblingOrParent):
1391         (WebCore::parentElement):
1392         (WebCore::nextInPreOrder):
1393         * rendering/RenderListItem.cpp:
1394         (WebCore):
1395         (WebCore::enclosingList):
1396         (WebCore::RenderListItem::nextListItem):
1397         (WebCore::previousListItem):
1398         (WebCore::RenderListItem::calcValue):
1399         (WebCore::RenderListItem::explicitValueChanged):
1400         (WebCore::previousOrNextItem):
1401         (WebCore::RenderListItem::updateListMarkerNumbers):
1402         * rendering/RenderListItem.h:
1403         (RenderListItem):
1404
1405 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
1406
1407         Fix multiple definition of ImageBuffer::platformLayer() in the BlackBerry port
1408         https://bugs.webkit.org/show_bug.cgi?id=114936
1409
1410         Reviewed by Carlos Garcia Campos.
1411
1412         We already have a definition in ImageBufferBlackBerry.cpp.
1413
1414         * platform/graphics/ImageBuffer.cpp:
1415         (WebCore):
1416
1417 2013-04-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1418
1419         Division by zero in CSSGradientValue::addStops()
1420         https://bugs.webkit.org/show_bug.cgi?id=114807
1421
1422         Reviewed by Dean Jackson.
1423
1424         The normalization of the color stop positions of a linear gradient
1425         doesn't take into account that the first and last position can be
1426         the same. In such case the positions are computed dividing by 0.
1427         Clamp the positions to 1 without moving the end points in such
1428         case to match what other browsers do. This ensures that positions
1429         passed to the platform gradient are in the 0-1 range which fixes a
1430         crash due to an assert in BlackBerry port running test
1431         fast/forms/type-after-focus-rule-shrink-width.html.
1432
1433         Test: fast/gradients/css3-color-stop-invalid.html
1434
1435         * css/CSSGradientValue.cpp:
1436         (WebCore::CSSGradientValue::addStops):
1437
1438 2013-04-21  Benjamin Poulain  <benjamin@webkit.org>
1439
1440         Fix some minor bad use of strings in WebCore
1441         https://bugs.webkit.org/show_bug.cgi?id=114907
1442
1443         Reviewed by Darin Adler.
1444
1445         * editing/Editor.cpp:
1446         (WebCore::Editor::selectedText): This was implicitly getting the emptyString()
1447         for the argument "".
1448         * editing/markup.cpp:
1449         (WebCore::StyledMarkupAccumulator::takeResults): ditto.
1450
1451 2013-04-21  Dirk Schulze  <krit@webkit.org>
1452
1453         [Part 4] Parse the custom() function in -webkit-filter: parse the matN() functions
1454         https://bugs.webkit.org/show_bug.cgi?id=71444
1455
1456         Reviewed by Dean Jackson.
1457
1458         Custom filter parameters should support mat2 to mat4 value functions. Added parsing
1459         and style resolving bits to support the matrix function values. A later patch will
1460         add the matrices to the shader program.
1461
1462         https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
1463
1464         Modified existing tests to cover changes.
1465
1466         * GNUmakefile.list.am: Added WebKitCSSMatFunctionValue to individual build systems.
1467         * Target.pri:
1468         * WebCore.vcproj/WebCore.vcproj:
1469         * WebCore.vcxproj/WebCore.vcxproj:
1470         * WebCore.vcxproj/WebCore.vcxproj.filters:
1471         * WebCore.xcodeproj/project.pbxproj:
1472         * css/CSSComputedStyleDeclaration.cpp:
1473         (WebCore::valueForCustomFilterMatParameter):
1474         (WebCore):
1475         (WebCore::valueForCustomFilterParameter):
1476         * css/CSSParser.cpp:
1477         (WebCore::CSSParser::parseTransform):
1478         (WebCore::CSSParser::parseMatValue):
1479         (WebCore):
1480         (WebCore::CSSParser::parseCustomFilterParameters):
1481         * css/CSSParser.h:
1482         (WebCore):
1483         * css/CSSValue.cpp:
1484         (WebCore::CSSValue::reportMemoryUsage):
1485         (WebCore::CSSValue::equals):
1486         (WebCore::CSSValue::cssText):
1487         (WebCore::CSSValue::destroy):
1488         (WebCore::CSSValue::cloneForCSSOM):
1489         * css/CSSValue.h:
1490         (WebCore::CSSValue::isWebKitCSSMatFunctionValue):
1491         * css/StyleResolver.cpp:
1492         (WebCore::StyleResolver::parseCustomFilterArrayParameter):
1493         (WebCore::StyleResolver::parseCustomFilterParameter):
1494         * css/StyleResolver.h:
1495         (StyleResolver):
1496         * css/WebKitCSSMatFunctionValue.cpp:
1497         (WebCore::WebKitCSSMatFunctionValue::WebKitCSSMatFunctionValue):
1498         (WebCore::WebKitCSSMatFunctionValue::customCssText):
1499         (WebCore::WebKitCSSMatFunctionValue::cloneForCSSOM):
1500         (WebCore::WebKitCSSMatFunctionValue::equals):
1501         (WebCore::WebKitCSSMatFunctionValue::reportDescendantMemoryUsage):
1502         * css/WebKitCSSMatFunctionValue.h:
1503         (WebKitCSSMatFunctionValue):
1504         (WebCore::WebKitCSSMatFunctionValue::create):
1505         * platform/graphics/filters/CustomFilterArrayParameter.h:
1506         (WebCore::CustomFilterArrayParameter::create):
1507         (WebCore::CustomFilterArrayParameter::CustomFilterArrayParameter):
1508         * platform/graphics/filters/CustomFilterParameter.h:
1509         (CustomFilterParameter):
1510         * platform/graphics/filters/CustomFilterRenderer.cpp:
1511         (WebCore::CustomFilterRenderer::bindProgramParameters):
1512
1513 2013-04-12  Balazs Kelemen  <kbalazs@webkit.org>
1514
1515         [GStreamer] Media attribute preload="none" is not honored
1516         https://bugs.webkit.org/show_bug.cgi?id=114357
1517
1518         Reviewed by Philippe Normand.
1519
1520         Fix the logic that prevents live streams from being buffered to not make preload="none" ignored.
1521
1522         Test: http/tests/media/video-preload.html
1523         We need a http test because the bug does not triggered with local files.
1524
1525         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1526         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
1527         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1528         (MediaPlayerPrivateGStreamer):
1529         Remove m_originalPreloadWasAutoAndWasOverridden because it is not necessary and it is causing this bug.
1530         Currently if the tag has preload="none" attribute we set m_preload to Auto in the constructor. After that
1531         MedaPlayer calls setPreload(None), so we set m_originalPreloadWasAutoAndWasOverridden to true and later
1532         reset m_preload to Auto. The error prone factor here is that the m_preload member is repeated in the
1533         private class and setPreload is also used there. This seems to be necessary because we need to be able
1534         to ignore preloading if this is a live stream. Fortunately the original parsed value is available in the
1535         constructor, so we can use that. This will give the correct value that we should override only in the case
1536         of a live stream and that's it, we don't need to reset it later to Auto.
1537         Furthermore, we should ignore setting preload to auto from js if it is a live stream. This patch also handles
1538         this with an early return in setPreload.
1539
1540 2013-04-21  Carlos Garcia Campos  <cgarcia@igalia.com>
1541
1542         Widget should not depend on AXObjectCache
1543         https://bugs.webkit.org/show_bug.cgi?id=114514
1544
1545         Reviewed by Chris Fleizach.
1546
1547         Move AXObjectCache usage from platform files to FrameView.
1548
1549         * WebCore.exp.in: Update symbols.
1550         * page/FrameView.cpp:
1551         (WebCore::FrameView::didAddScrollbar): Handle scrollbar updates in
1552         AXObjectCache.
1553         (WebCore::FrameView::willRemoveScrollbar): Handle scrollbar
1554         updates in AXObjectCache and remove the scrollbar from the cache.
1555         * page/FrameView.h:
1556         * platform/ScrollView.cpp:
1557         (WebCore::ScrollView::setHasHorizontalScrollbar): Use
1558         didAddScrollbar/willRemoveScrollbar
1559         (WebCore::ScrollView::setHasVerticalScrollbar): Ditto.
1560         * platform/ScrollableArea.cpp:
1561         (WebCore::ScrollableArea::didAddScrollbar): This is the old
1562         didAddVerticalScrollbar and didAddHorizontalScrollbar joined in a
1563         single method that receives a ScrollbarOrientation parameter.
1564         (WebCore::ScrollableArea::willRemoveScrollbar): This is the old
1565         willRemoveVerticalScrollbar and
1566         willRemoveHorizontalScrollbarScrollbar joined in a single method
1567         that receives a ScrollbarOrientation parameter.
1568         * platform/ScrollableArea.h:
1569         (ScrollableArea):
1570         * platform/Scrollbar.cpp:
1571         (WebCore::Scrollbar::~Scrollbar): Remove AXObjectCache usage.
1572         * platform/Scrollbar.h:
1573         * platform/Widget.h:
1574         (Widget): Remove axObjectCache() method.
1575         * platform/mac/ScrollAnimatorMac.h:
1576         (ScrollAnimatorMac):
1577         * rendering/RenderLayer.cpp:
1578         (WebCore::RenderLayer::createScrollbar): Use didAddScrollbar.
1579         (WebCore::RenderLayer::destroyScrollbar): Use willRemoveScrollbar.
1580         * rendering/RenderListBox.cpp:
1581         (WebCore::RenderListBox::createScrollbar): Use didAddScrollbar.
1582         (WebCore::RenderListBox::destroyScrollbar): Use willRemoveScrollbar.
1583
1584 2013-04-20  Dirk Schulze  <krit@webkit.org>
1585
1586         [Part 5] Parse color value for custom() function parameters
1587         https://bugs.webkit.org/show_bug.cgi?id=114902
1588
1589         Reviewed by Dean Jackson.
1590
1591         Custom filter parameters should support color values. Added parsing
1592         and style resolving bits to support color values. A later patch will
1593         add the color values to the shader program.
1594
1595         https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
1596
1597         Modified existing tests to cover changes.
1598
1599         * GNUmakefile.list.am: Added CustomFilterColorParameter to support color values
1600             as custom filter parameters.
1601         * Target.pri:
1602         * WebCore.vcproj/WebCore.vcproj:
1603         * WebCore.vcxproj/WebCore.vcxproj:
1604         * WebCore.vcxproj/WebCore.vcxproj.filters:
1605         * WebCore.xcodeproj/project.pbxproj:
1606         * css/CSSComputedStyleDeclaration.cpp:
1607         (WebCore::valueForCustomFilterColorParameter):
1608         (WebCore):
1609         (WebCore::valueForCustomFilterParameter):
1610         * css/CSSParser.cpp:
1611         (WebCore::CSSParser::parseCustomFilterParameters):
1612         * css/StyleResolver.cpp:
1613         (WebCore::StyleResolver::parseCustomFilterColorParameter):
1614         (WebCore):
1615         (WebCore::StyleResolver::parseCustomFilterParameter):
1616         * css/StyleResolver.h:
1617         (StyleResolver):
1618         * platform/graphics/filters/CustomFilterColorParameter.h: Added.
1619         (WebCore):
1620         (WebCore::blendFunc):
1621         (CustomFilterColorParameter):
1622         (WebCore::CustomFilterColorParameter::create):
1623         (WebCore::CustomFilterColorParameter::blend):
1624         (WebCore::CustomFilterColorParameter::color):
1625         (WebCore::CustomFilterColorParameter::setColor):
1626         (WebCore::CustomFilterColorParameter::operator==):
1627         (WebCore::CustomFilterColorParameter::CustomFilterColorParameter):
1628         (WebCore::CustomFilterColorParameter::~CustomFilterColorParameter):
1629         * platform/graphics/filters/CustomFilterParameter.h:
1630         (CustomFilterParameter):
1631         * platform/graphics/filters/CustomFilterRenderer.cpp:
1632         (WebCore::CustomFilterRenderer::bindProgramParameters):
1633
1634 2013-04-20  Glenn Adams  <glenn@skynav.com>
1635
1636         REGRESSION (r147588): Line breaks occur in the middle of Hebrew words at haaertz.co.il and other websites
1637         https://bugs.webkit.org/show_bug.cgi?id=114721
1638
1639         Reviewed by Dean Jackson.
1640
1641         Tests: fast/text/line-break-after-empty-inline-hebrew.html
1642                fast/text/line-break-after-inline-latin1.html
1643
1644         If prior context changes content or length after creating line break iterator, then need to
1645         create new iterator with new prior context instead of using cached iterator with old prior context.
1646
1647         * platform/text/TextBreakIterator.h:
1648         (WebCore::LazyLineBreakIterator::LazyLineBreakIterator): Initialize members to cache reference to initialized prior context.
1649         (WebCore::LazyLineBreakIterator::get): Create new iterator if prior context content reference changes.
1650         (WebCore::LazyLineBreakIterator::resetStringAndReleaseIterator): Reset cached prior context references.
1651         (LazyLineBreakIterator): Add members to cache reference to initialized prior context.
1652
1653 2013-04-19  Ryuan Choi  <ryuan.choi@samsung.com>
1654
1655         [EFL] Arrow of combo box are drawn twice
1656         https://bugs.webkit.org/show_bug.cgi?id=113917
1657
1658         Reviewed by Gyuyoung Kim.
1659
1660         combo_button_icon part is for arrow so that images of combo_button part should
1661         not contain arrow.
1662
1663         No new tests required due to no behavioral change.
1664
1665         * platform/efl/DefaultTheme/widget/combo/combo_focus_button.png:
1666         * platform/efl/DefaultTheme/widget/combo/combo_hover_button.png:
1667         * platform/efl/DefaultTheme/widget/combo/combo_press_button.png:
1668
1669 2013-04-19  Brendan Long  <b.long@cablelabs.com>
1670
1671         Add interfaces and stubs for audio and video tracks
1672         https://bugs.webkit.org/show_bug.cgi?id=113965
1673
1674         Reviewed by Jer Noble.
1675
1676         No new tests because there's no implementations, so there's nothing
1677         interesting to test.
1678
1679         * CMakeLists.txt: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
1680         * DerivedSources.cpp: Same.
1681         * DerivedSources.make: Same.
1682         * DerivedSources.pri: Same.
1683         * GNUmakefile.list.am: Same.
1684         * Target.pri: Same.
1685         * UseJSC.cmake: Same.
1686         * WebCore.vcproj/WebCore.vcproj: Same.
1687         * WebCore.xcodeproj/project.pbxproj: Same.
1688         * bindings/gobject/GNUmakefile.am: Same.
1689         * bindings/js/JSAudioTrackCustom.cpp: Added, based on JSTestTrackCustom
1690         * bindings/js/JSAudioTrackListCustom.cpp: Same.
1691         * bindings/js/JSBindingsAllInOne.cpp: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
1692         * bindings/js/JSVideoTrackCustom.cpp: Added, based on JSTestTrackCustom
1693         * bindings/js/JSVideoTrackListCustom.cpp: Same.
1694         * dom/EventTarget.h: Make AudioTrackList and VideoTrackList event targets.
1695         * dom/EventTargetFactory.in: Same.
1696         * html/HTMLMediaElement.cpp:
1697         (WebCore::HTMLMediaElement::HTMLMediaElement): Add m_audioTracks and m_videoTracks
1698         (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear clients for audio and video tracks
1699         (WebCore::HTMLMediaElement::audioTrackEnabledChanged): Added.
1700         (WebCore::HTMLMediaElement::videoTrackSelectedChanged): Added.
1701         (WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
1702         (WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack): Same.
1703         (WebCore::HTMLMediaElement::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
1704         (WebCore::HTMLMediaElement::mediaPlayerDidRemoveVideoTrack): Same.
1705         (WebCore::HTMLMediaElement::addAudioTrack): Added, based on addTextTrack
1706         (WebCore::HTMLMediaElement::addVideoTrack): Same.
1707         (WebCore::HTMLMediaElement::removeAudioTrack): Added, based on removeTextTrack
1708         (WebCore::HTMLMediaElement::removeVideoTrack): Added, based on removeTextTrack
1709         (WebCore::HTMLMediaElement::removeAllInbandTracks): Remove audio and video tracks too
1710         (WebCore::HTMLMediaElement::audioTracks): Added, based on textTracks
1711         (WebCore::HTMLMediaElement::videoTracks): Added, based on textTracks
1712         (WebCore::HTMLMediaElement::reportMemoryUsage): Add audio and video tracks
1713         * html/HTMLMediaElement.h: Add audioTracks and videoTracks and related functions
1714         * html/HTMLMediaElement.idl: Add audioTracks and videoTracks
1715         * html/track/AudioTrack.cpp: Added, based on TextTrack and InbandTextTrack.
1716         * html/track/AudioTrack.h: Same.
1717         * html/track/AudioTrack.idl: Added.
1718         * html/track/AudioTrackList.cpp: Added, based on TextTrackList
1719         * html/track/AudioTrackList.h: Same.
1720         * html/track/AudioTrackList.idl: Added.
1721         * html/track/TextTrackList.h: Add missing OVERRIDE on interfaceName()
1722         * html/track/VideoTrack.cpp: Added, based on TextTrack and InbandTextTrack.
1723         * html/track/VideoTrack.h: Same.
1724         * html/track/VideoTrack.idl: Added.
1725         * html/track/VideoTrackList.cpp: Added, based on TextTrackList
1726         * html/track/VideoTrackList.h: Same.
1727         * html/track/VideoTrackList.idl: Added.
1728         * platform/graphics/AudioTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
1729         * platform/graphics/MediaPlayer.cpp:
1730         (WebCore::MediaPlayer::addAudioTrack): Added, based on addTextTrack
1731         (WebCore::MediaPlayer::removeAudioTrack): Added, based on removeTextTrack
1732         (WebCore::MediaPlayer::addVideoTrack): Added, based on addTextTrack
1733         (WebCore::MediaPlayer::removeVideoTrack): Added, based on removeTextTrack
1734         * platform/graphics/MediaPlayer.h:
1735         (WebCore::MediaPlayerClient::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
1736         (WebCore::MediaPlayerClient::mediaPlayerDidAddVideoTrack): Same
1737         (WebCore::MediaPlayerClient::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
1738         (WebCore::MediaPlayerClient::mediaPlayerDidRemoveVideoTrack): Same
1739         * platform/graphics/VideoTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
1740
1741 2013-04-19  Bear Travis  <betravis@adobe.com>
1742
1743         [CSS Exclusions] Implement empty segments for multiple-segment shape-insides
1744         https://bugs.webkit.org/show_bug.cgi?id=100049
1745
1746         Reviewed by David Hyatt.
1747
1748         Content should not overflow a shape-inside segment, even if that means no content
1749         will be placed in that segment. Overflow may be pushed to outside the shape. This
1750         patch removes the restriction that every line must consume at least some text
1751         input while inside a shape-inside. Content that does not fit is pushed down until
1752         it does, either inside the shape or just below it.
1753
1754         Test: fast/exclusions/shape-inside/shape-inside-empty-segments.html
1755
1756         * rendering/RenderBlockLineLayout.cpp:
1757         (WebCore::constructBidiRunsForSegment): Do not include empty segments for
1758         consideration, as the actual BidiRuns construction expects to consume at
1759         least one character.
1760         (WebCore::constructBidiRunsForLine): Ditto.
1761         (WebCore::firstPositiveWidth): Find the first positive word measurement width,
1762         as there may be some empty word break measurements inserted.
1763         (WebCore::adjustLogicalLineTop): Move the current line down, if necessary, to
1764         fit it within the shape inside.
1765         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): If nothing fit in the
1766         current segment, find the first available position for the smallest item
1767         at the beginning of the text.
1768         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Return an empty segment
1769         for a line that is inside the shape, but has no segments.
1770         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak): Do not consume
1771         input to meet minimum size requirements if you are inside a shape.
1772
1773 2013-04-19  Ryosuke Niwa  <rniwa@webkit.org>
1774
1775         Add a missing null pointer check after r148759.
1776
1777         * rendering/RenderObject.cpp:
1778         (WebCore::RenderObject::containingBlock):
1779
1780 2013-04-19  Benjamin Poulain  <benjamin@webkit.org>
1781
1782         Use Vector instead of StringBuilder for CSSPreloadScanner's buffers
1783         https://bugs.webkit.org/show_bug.cgi?id=114794
1784
1785         Reviewed by Ryosuke Niwa.
1786
1787         Cleanup for other String changes.
1788
1789         CSSPreloadScanner only handles UChar, StringBuilder was a little
1790         overkill.
1791
1792         * html/parser/CSSPreloadScanner.cpp:
1793         (WebCore):
1794         (WebCore::ruleEqualIgnoringCase):
1795         (WebCore::CSSPreloadScanner::emitRule):
1796         * html/parser/CSSPreloadScanner.h:
1797
1798 2013-04-19  Benjamin Poulain  <benjamin@webkit.org>
1799
1800         StyledMarkupAccumulator::appendText() should not allocate an intermediary StringBuilder
1801         https://bugs.webkit.org/show_bug.cgi?id=114847
1802
1803         Reviewed by Geoffrey Garen.
1804
1805         For some reason StyledMarkupAccumulator::appendText() was allocating a separate buffer
1806         for invoking appendStyleNodeOpenTag. This is a bad idea.
1807
1808         * editing/markup.cpp:
1809         (WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
1810         (WebCore::StyledMarkupAccumulator::appendText):
1811
1812 2013-04-19  Joseph Pecoraro  <pecoraro@apple.com>
1813
1814         Web Inspector: Support the SourceMap header, X-SourceMap was deprecated
1815         https://bugs.webkit.org/show_bug.cgi?id=114888
1816
1817         Check first for SourceMap, then fallback to X-SourceMap. Leaving in
1818         support for the deprecated header because most tools and articles
1819         online mention that version and have not yet updated.
1820
1821         Reviewed by Timothy Hatcher.
1822
1823         * inspector/InspectorDebuggerAgent.cpp:
1824         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
1825         * inspector/InspectorPageAgent.cpp:
1826         (WebCore::InspectorPageAgent::sourceMapURLForResource):
1827
1828 2013-04-19  Joseph Pecoraro  <pecoraro@apple.com>
1829
1830         Web Inspector: Backend should detect sourceMappingURLs in CSS Resources
1831         https://bugs.webkit.org/show_bug.cgi?id=114854
1832
1833         Reviewed by Timothy Hatcher.
1834
1835         Test: http/tests/inspector/network/css-source-mapping-url.html
1836
1837         * inspector/Inspector.json:
1838         - Page.getResourceTree - add sourceMapURL to resource payloads
1839         - Network.loadingFinished and Network.requestServedFromMemoryCache,
1840           include the sourceMapURL in the results.
1841
1842         * inspector/ContentSearchUtils.h:
1843         * inspector/ContentSearchUtils.cpp:
1844         (WebCore::ContentSearchUtils::scriptCommentPattern):
1845         (WebCore::ContentSearchUtils::stylesheetCommentPattern):
1846         (WebCore::ContentSearchUtils::findMagicComment):
1847         (WebCore::ContentSearchUtils::findScriptSourceURL):
1848         (WebCore::ContentSearchUtils::findScriptSourceMapURL):
1849         (WebCore::ContentSearchUtils::findStylesheetSourceMapURL):
1850         Separate Script and Stylesheet regex pattern creation, but
1851         share the search function using the pattern.
1852
1853         * inspector/InspectorDebuggerAgent.cpp:
1854         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
1855         (WebCore::InspectorDebuggerAgent::didParseSource):
1856         Update function names. Check for the SourceMap header before
1857         checking for a sourceMappingURL comment.
1858
1859         * inspector/InspectorPageAgent.h:
1860         * inspector/InspectorPageAgent.cpp:
1861         (WebCore::InspectorPageAgent::sourceMapURLForResource):
1862         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
1863         Provide the sourceMapURL for Page.getResourceTree.
1864
1865         * inspector/InspectorResourceAgent.cpp:
1866         (WebCore::buildObjectForCachedResource):
1867         (WebCore::InspectorResourceAgent::didFinishLoading):
1868         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
1869         Include sourceMapURLs in finish loading and request served from cache.
1870
1871 2013-04-19  Shawn Singh  <shawnsingh@chromium.org>
1872
1873         Remove non-overlap testing code in RenderLayerCompositor
1874         https://bugs.webkit.org/show_bug.cgi?id=85521
1875
1876         Reviewed by Simon Fraser.
1877
1878         m_compositingConsultsOverlap is always true in the current
1879         code. This patch removes this flag, and removes dead code that is
1880         never executed because it was never false.
1881
1882         No new tests, no change in behavior.  The cleanup is covered by
1883         existing tests.
1884
1885         * rendering/RenderLayer.cpp:
1886         (WebCore::RenderLayer::updateCompositingLayersAfterScroll):
1887         removed if-statement that is always true.
1888         
1889         * rendering/RenderLayerBacking.cpp:
1890         (WebCore::RenderLayerBacking::shouldClipCompositedBounds):
1891         removed if-statement that would never get triggered.
1892
1893         * rendering/RenderLayerCompositor.cpp:
1894         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
1895         (WebCore::RenderLayerCompositor::updateCompositingLayers):
1896         removed m_compositingConsultsOverlap, and retained the code as if the flag were "true".
1897         
1898         * rendering/RenderLayerCompositor.h:
1899         (RenderLayerCompositor):
1900
1901 2013-04-19  Roger Fong  <roger_fong@apple.com>
1902
1903         Unreviewed. WebKit_Source is incorrectly set.
1904
1905         * WebCore.vcxproj/WebCore.make:
1906
1907 2013-04-18  Ryosuke Niwa  <rniwa@webkit.org>
1908
1909         Make loops in RenderObject::containingBlock homogeneous in their forms to simplify
1910         https://bugs.webkit.org/show_bug.cgi?id=114853
1911
1912         Reviewed by David Hyatt.
1913
1914         This patch prepares us to avoid computing containing blocks during a depth-first traversal of the render tree.
1915
1916         Extracted inline functions out of RenderBlock::containingBlock to make the code simpler. Also moved the code
1917         to obtain the nearest containing block out of the loop for a relatively positioned inline.
1918
1919         * rendering/RenderObject.cpp:
1920         (WebCore::isNonReplacedInlineInFlowPosition): Extracted.
1921         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject): Extracted.
1922         (WebCore::isNonRenderBlockInline): Extracted.
1923         (WebCore::RenderObject::containingBlock): Refactored as stated above.
1924
1925 2013-04-19  Tim Horton  <timothy_horton@apple.com>
1926
1927         WebKit should not decode or support PDF favicons
1928         https://bugs.webkit.org/show_bug.cgi?id=114650
1929         <rdar://problem/10133914>
1930
1931         Reviewed by Dan Bernstein.
1932
1933         Drop the image data on the floor if it begins with the PDF magic number.
1934         No other browser I can find on OS X supports PDF favicons (by experimentation),
1935         and we do not properly display them.
1936
1937         * loader/icon/IconLoader.cpp:
1938         (WebCore::IconLoader::notifyFinished):
1939
1940 2013-04-19  Martin Robinson  <mrobinson@igalia.com>
1941
1942         Remove the OpenVG backend
1943         https://bugs.webkit.org/show_bug.cgi?id=114881
1944
1945         Reviewed by Tim Horton.
1946
1947         * platform/graphics/FloatRect.h:
1948         (FloatRect): Remove #ifdefs for OpenVG backend.
1949         * platform/graphics/GraphicsContext.cpp:
1950         (WebCore): Ditto.
1951         * platform/graphics/GraphicsContext.h:
1952         * platform/graphics/NativeImagePtr.h:
1953         (WebCore): Ditto.
1954         * platform/graphics/Path.cpp:
1955         (WebCore): Ditto.
1956         * platform/graphics/Path.h:
1957         * platform/graphics/openvg/EGLDisplayOpenVG.cpp: Removed.
1958         * platform/graphics/openvg/EGLDisplayOpenVG.h: Removed.
1959         * platform/graphics/openvg/EGLUtils.h: Removed.
1960         * platform/graphics/openvg/GraphicsContextOpenVG.cpp: Removed.
1961         * platform/graphics/openvg/ImageOpenVG.cpp: Removed.
1962         * platform/graphics/openvg/PainterOpenVG.cpp: Removed.
1963         * platform/graphics/openvg/PainterOpenVG.h: Removed.
1964         * platform/graphics/openvg/PathOpenVG.cpp: Removed.
1965         * platform/graphics/openvg/PlatformPathOpenVG.h: Removed.
1966         * platform/graphics/openvg/SharedResourceOpenVG.cpp: Removed.
1967         * platform/graphics/openvg/SharedResourceOpenVG.h: Removed.
1968         * platform/graphics/openvg/SurfaceOpenVG.cpp: Removed.
1969         * platform/graphics/openvg/SurfaceOpenVG.h: Removed.
1970         * platform/graphics/openvg/TiledImageOpenVG.cpp: Removed.
1971         * platform/graphics/openvg/TiledImageOpenVG.h: Removed.
1972         * platform/graphics/openvg/VGUtils.cpp: Removed.
1973         * platform/graphics/openvg/VGUtils.h: Removed.
1974         * platform/graphics/transforms/AffineTransform.h:
1975         (AffineTransform): Ditto.
1976         * platform/graphics/transforms/TransformationMatrix.h:
1977         (TransformationMatrix): Ditto.
1978         * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Removed.
1979
1980 2013-04-19  Andrei Bucur  <abucur@adobe.com>
1981
1982         ContainerNode::removeChildren should first detach the children then remove them
1983         https://bugs.webkit.org/show_bug.cgi?id=113433
1984
1985         Reviewed by Ryosuke Niwa.
1986
1987         Currently, ContainerNode::removeChildren initially removes the nodes from the DOM tree and then
1988         calls detach() on each of them. This is anti-intuitive and can lead to subtle bugs because the
1989         detached renderers are not backed by a valid DOM tree any more. With the patch, the nodes are first
1990         detached and then removed from the DOM.
1991         The patch also lets the tree in a consistent state after each node removal by clearing the previous
1992         sibling pointer of the node following the one removed.
1993         I haven't found any proof the performance will get worse if the detachment happens when the children
1994         are still in the DOM tree.
1995
1996         Tests: No changed visible functionality.
1997
1998         * dom/ContainerNode.cpp:
1999         (WebCore::ContainerNode::removeChildren):
2000
2001 2013-04-19  Dirk Schulze  <krit@webkit.org>
2002
2003         Refactor transform code in StyleResolver
2004         https://bugs.webkit.org/show_bug.cgi?id=114874
2005
2006         Reviewed by Andreas Kling.
2007
2008         Move transform code frome StyleResolver into own files.
2009
2010         Refactoring, no changes in functionality.
2011
2012         * CMakeLists.txt:
2013         * GNUmakefile.list.am:
2014         * Target.pri:
2015         * WebCore.vcproj/WebCore.vcproj:
2016         * WebCore.vcxproj/WebCore.vcxproj:
2017         * WebCore.vcxproj/WebCore.vcxproj.filters:
2018         * WebCore.xcodeproj/project.pbxproj:
2019         * css/StyleResolver.cpp:
2020         (WebCore::StyleResolver::applyProperty):
2021         (WebCore::StyleResolver::parseCustomFilterTransformParameter):
2022         * css/StyleResolver.h:
2023         * css/TransformFunctions.cpp: Added.
2024         (WebCore):
2025         (WebCore::transformOperationType):
2026         (WebCore::convertToFloatLength):
2027         (WebCore::transformsForValue):
2028         * css/TransformFunctions.h: Added.
2029         (WebCore):
2030         * css/WebKitCSSMatrix.cpp:
2031         (WebCore::WebKitCSSMatrix::setMatrixValue):
2032
2033 2013-04-19  Erik Arvidsson  <arv@chromium.org>
2034
2035         Rename TextTrackList owner to element for consistency
2036         https://bugs.webkit.org/show_bug.cgi?id=79822
2037
2038         Reviewed by Eric Carlson.
2039
2040         No new tests. Covered by existing tests.
2041
2042         * bindings/js/JSTextTrackListCustom.cpp:
2043         (WebCore::JSTextTrackListOwner::isReachableFromOpaqueRoots):
2044         (WebCore::JSTextTrackList::visitChildren):
2045         * html/HTMLMediaElement.cpp:
2046         (WebCore::HTMLMediaElement::~HTMLMediaElement):
2047         * html/track/TextTrackList.cpp:
2048         (TextTrackList::append):
2049         (TextTrackList::remove):
2050         * html/track/TextTrackList.h:
2051         (WebCore::TextTrackList::create):
2052         * html/track/TrackListBase.cpp:
2053         (TrackListBase::TrackListBase):
2054         (TrackListBase::remove):
2055         * html/track/TrackListBase.h:
2056         (WebCore::TrackListBase::clearElement):
2057         (WebCore::TrackListBase::element):
2058         (TrackListBase):
2059
2060 2013-04-19  Andreas Kling  <akling@apple.com>
2061
2062         [Mac] ComplexTextController is slow with large numbers of text runs.
2063         <http://webkit.org/b/114875>
2064         <rdar://problem/13337036>
2065
2066         Reviewed by Dan Bernstein.
2067
2068         Instead of iterating over the text runs in indexOfCurrentRun() to figure out the leftmost glyph,
2069         create a lookup table of [run# -> distance in glyphs] at ComplexTextController construction time.
2070
2071         This avoids O(n^2) behavior in indexOfCurrentRun().
2072
2073         * platform/graphics/mac/ComplexTextController.cpp:
2074         (WebCore::ComplexTextController::ComplexTextController):
2075         (WebCore::ComplexTextController::indexOfCurrentRun):
2076         * platform/graphics/mac/ComplexTextController.h:
2077         (ComplexTextController):
2078
2079 2013-04-19  Mario Sanchez Prada  <mario.prada@samsung.com>
2080
2081         [GTK] Minimize calls to GailTextUtil in AtkText implementation
2082         https://bugs.webkit.org/show_bug.cgi?id=114868
2083
2084         Reviewed by Martin Robinson.
2085
2086         Create a new helper function to concentrate inside of it the calls to
2087         gail_text_util_get_text(), so we can get rid of it later more easily.
2088
2089         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
2090         (webkitAccessibleTextGetTextForOffset): New helper function.
2091         (webkitAccessibleTextGetTextAfterOffset): Rely on the new function.
2092         (webkitAccessibleTextGetTextAtOffset): Ditto.
2093         (webkitAccessibleTextGetTextBeforeOffset): Ditto.
2094
2095 2013-04-19  Noam Rosenthal  <noam@webkit.org>
2096
2097         [Texmap] Implementation for pattern compositing
2098         https://bugs.webkit.org/show_bug.cgi?id=109588
2099
2100         Reviewed by Allan Sandfeld Jensen.
2101
2102         Enable pattern compositing (background images) for CoordinatedGraphics/TextureMapperGL.
2103         Use the existing patternTransform shader uniform, multiplying it by a matrix calculated
2104         using the contentsRect, tileSize and tilePhase.
2105
2106         Covered by existing tests in compositing/patterns.
2107
2108         * platform/graphics/GraphicsLayer.h:
2109         (GraphicsLayer):
2110             Conditionally enable pattern compositing for coordinated graphics.
2111
2112         * platform/graphics/texmap/TextureMapper.cpp:
2113         (WebCore::TextureMapper::TextureMapper):
2114         * platform/graphics/texmap/TextureMapper.h:
2115         (WebCore::TextureMapper::setPatternTransform):
2116         (WebCore::TextureMapper::setWrapMode):
2117         (WebCore::TextureMapper::wrapMode):
2118         (WebCore::TextureMapper::patternTransform):
2119             Add wrapMode and patternTransform properties to the TextureMapper state.
2120
2121         * platform/graphics/texmap/TextureMapperGL.cpp:
2122         (WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
2123             Paint with GL_REPEAT and a pattern transform when needed.
2124
2125         * platform/graphics/texmap/TextureMapperLayer.cpp:
2126         (WebCore::TextureMapperLayer::computePatternTransformIfNeeded):
2127         (WebCore):
2128         (WebCore::TextureMapperLayer::paintSelf):
2129         (WebCore::TextureMapperLayer::setContentsRect):
2130         (WebCore::TextureMapperLayer::setContentsTileSize):
2131         (WebCore::TextureMapperLayer::setContentsTilePhase):
2132             Apply the patternTransform from the tile size/phase.
2133
2134         * platform/graphics/texmap/TextureMapperLayer.h:
2135         (WebCore::TextureMapperLayer::TextureMapperLayer):
2136         (TextureMapperLayer):
2137         (WebCore::TextureMapperLayer::setShouldMapBackingStoreToContentsRect):
2138         (State):
2139         (WebCore::TextureMapperLayer::State::State):
2140             Allow the client to configure whether a layer uses its bounds or its
2141             contents rect to paint the backing store.
2142             This is needed now since layers with background images, unlike layers
2143             with regular images, may have bounds that are greater than the contents
2144             rect.
2145
2146         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
2147         (WebCore::CoordinatedGraphicsLayer::setContentsTileSize):
2148         (WebCore):
2149         (WebCore::CoordinatedGraphicsLayer::setContentsTilePhase):
2150         (WebCore::CoordinatedGraphicsLayer::setShouldSupportContentsTiling):
2151         (WebCore::GraphicsLayer::supportsContentsTiling):
2152         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
2153         (CoordinatedGraphicsLayer):
2154         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
2155         (WebCore::CoordinatedGraphicsScene::setLayerState):
2156         (WebCore::CoordinatedGraphicsScene::assignImageBackingToLayer):
2157         * platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
2158         (CoordinatedGraphicsLayerState):
2159             Logic to pass the tileSize/tilePhase from CoordinatedGraphicsLayer
2160             to TextureMapperLayer.
2161
2162         * rendering/RenderLayerBacking.cpp:
2163         (WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundImage):
2164             Don't reset the layer's image contents when this is a directly composited image.
2165
2166 2013-04-19  ChangSeok Oh  <changseok.oh@collabora.com>
2167
2168         [GTK][AC] Manage actor's children by using clutter's own way.
2169         https://bugs.webkit.org/show_bug.cgi?id=114257
2170
2171         Reviewed by Gustavo Noronha Silva.
2172
2173         I believe we don't need to maintain a children list of GList. We can do it
2174         by using clutter APIs like clutter_actor_get_children, clutter_actor_get_first_child, etc.
2175
2176         No new tests since no functionality changed.
2177
2178         * platform/graphics/clutter/GraphicsLayerActor.cpp:
2179         (graphics_layer_actor_init):
2180         (graphicsLayerActorAllocate):
2181         (graphicsLayerActorPaint):
2182         (graphicsLayerActorRemoveAll):
2183         (graphicsLayerActorGetnChildren):
2184         (graphicsLayerActorReplaceSublayer):
2185         (graphicsLayerActorInsertSublayer):
2186         * platform/graphics/clutter/GraphicsLayerActor.h:
2187         (_GraphicsLayerActor):
2188
2189 2013-04-19  ChangSeok Oh  <changseok.oh@collabora.com>
2190
2191         [GTK][AC] Support masksToBounds for clutter AC backend.
2192         https://bugs.webkit.org/show_bug.cgi?id=114113
2193
2194         Reviewed by Gustavo Noronha Silva.
2195
2196         We can support the masksToBounds property by using clutter_actor_set_clip simply.
2197
2198         Covered by existing AC tests.
2199
2200         * platform/graphics/clutter/GraphicsLayerActor.cpp:
2201         (graphicsLayerActorSetMasksToBounds):
2202         * platform/graphics/clutter/GraphicsLayerActor.h:
2203         * platform/graphics/clutter/GraphicsLayerClutter.cpp:
2204         (WebCore::GraphicsLayerClutter::setMasksToBounds):
2205         (WebCore):
2206         (WebCore::GraphicsLayerClutter::commitLayerChangesBeforeSublayers):
2207         (WebCore::GraphicsLayerClutter::setupContentsLayer):
2208         (WebCore::GraphicsLayerClutter::updateMasksToBounds):
2209         * platform/graphics/clutter/GraphicsLayerClutter.h:
2210         (GraphicsLayerClutter):
2211
2212 2013-04-19  Dan Beam  <dbeam@chromium.org>
2213
2214         Remove unmaintained feature REQUEST_AUTOCOMPLETE
2215         https://bugs.webkit.org/show_bug.cgi?id=114846
2216
2217         Reviewed by Kent Tamura.
2218
2219         * GNUmakefile.list.am: Remove AutocompleteErrorEvent.h include.
2220         * bindings/generic/RuntimeEnabledFeatures.cpp:
2221         (WebCore): Remove requestAutocomplete() runtime feature.
2222         * bindings/generic/RuntimeEnabledFeatures.h:
2223         (RuntimeEnabledFeatures): Remove requestAutocomplete() runtime feature.
2224         * dom/AutocompleteErrorEvent.h: Removed.
2225         * dom/AutocompleteErrorEvent.idl: Removed.
2226         * dom/EventNames.h: Remove `autocomplete` and `autocompleteerror` event names.
2227         (WebCore):
2228         * dom/EventNames.in: Remove `autocomplete` and `autocompleteerror` event names.
2229         * html/HTMLAttributeNames.in: Remove `onautocomplete` and `onautocompleteerror` form attributes.
2230         * html/HTMLFormElement.cpp: Remove requestAutocomplete() related code.
2231         (WebCore::HTMLFormElement::HTMLFormElement): Remove timer and event queue for requestAutocomplete() related events.
2232         (WebCore::HTMLFormElement::parseAttribute): Remove parsing of `onautocomplete` and `onautocompleterror`.
2233         * html/HTMLFormElement.h: Remove requestAutocomplete() related members.
2234         (HTMLFormElement):
2235         * html/HTMLFormElement.idl: Remove public requestAutocomplete() API method.
2236         * loader/EmptyClients.cpp: Remove stub implementation.
2237         (WebCore):
2238         * loader/EmptyClients.h: Remove stub interface.
2239         (EmptyFrameLoaderClient):
2240         * loader/FrameLoaderClient.h: Remove didRequestAutocomplete() from interface.
2241         (FrameLoaderClient):
2242         * page/DOMWindow.idl: Remove `AutocompleteErrorEvent` from window DOM interface.
2243
2244 2013-04-18  Timothy Hatcher  <timothy@apple.com>
2245
2246         Add CSS.setStyleText to the Web Inspector protocol.
2247
2248         This provides a direct path for the Safari Web Inspector to live edit whole style rules.
2249
2250         https://webkit.org/b/109340
2251         rdar://problem/13337211
2252
2253         Reviewed by Joseph Pecoraro.
2254
2255         * inspector/Inspector.json:
2256         (CSS.setStyleText): Added.
2257         * inspector/InspectorCSSAgent.cpp:
2258         (InspectorCSSAgent::SetStyleTextAction):
2259         (WebCore::InspectorCSSAgent::SetStyleTextAction::SetStyleTextAction): Added.
2260         (WebCore::InspectorCSSAgent::SetStyleTextAction::perform): Added.
2261         (WebCore::InspectorCSSAgent::SetStyleTextAction::undo): Added.
2262         (WebCore::InspectorCSSAgent::SetStyleTextAction::redo): Added.
2263         (WebCore::InspectorCSSAgent::SetStyleTextAction::mergeId): Added.
2264         (WebCore::InspectorCSSAgent::SetStyleTextAction::merge): Added.
2265         (WebCore::InspectorCSSAgent::SetPropertyTextAction::redo):
2266         (WebCore::InspectorCSSAgent::setStyleText): Added.
2267         * inspector/InspectorCSSAgent.h:
2268         * inspector/InspectorStyleSheet.cpp:
2269         (WebCore::InspectorStyle::getText): Added.
2270         (WebCore::InspectorStyle::setText): Added.
2271         (WebCore::InspectorStyleSheet::setStyleText):
2272         (WebCore::InspectorStyleSheetForInlineStyle::setStyleText):
2273         * inspector/InspectorStyleSheet.h:
2274         (WebCore::InspectorStyle::styleText): Added as an alias to getText.
2275         (WebCore::InspectorStyle::applyStyleText): Added as an alias to setText.
2276
2277 2013-04-18  Jer Noble  <jer.noble@apple.com>
2278
2279         Unreviewed gardening; fix bindings tests after r148700.
2280
2281         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
2282         (WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):
2283
2284 2013-04-18  Andy Estes  <aestes@apple.com>
2285
2286         REGRESSION (r116645): Versions app's UI is munged in HiDPI due to background-size being reset to 'auto' when background short-hand is also specified
2287         https://bugs.webkit.org/show_bug.cgi?id=114833
2288
2289         Reviewed by David Kilzer.
2290
2291         Added applicationIsVersions() to RuntimeApplicationChecks.
2292
2293         * WebCore.exp.in:
2294         * platform/RuntimeApplicationChecks.cpp:
2295         (WebCore::applicationIsVersions):
2296         (WebCore):
2297         * platform/RuntimeApplicationChecks.h:
2298         (WebCore):
2299
2300 2013-04-18  Sam Weinig  <sam@webkit.org>
2301
2302         Network Process crashing trying to read in IDNScriptWhiteList.txt
2303         https://bugs.webkit.org/show_bug.cgi?id=114827
2304
2305         Reviewed by Anders Carlsson.
2306
2307         Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against
2308         WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway.
2309
2310         * Resources/IDNScriptWhiteList.txt: Copied from Source/WebKit/mac/Resources/IDNScriptWhiteList.txt.
2311         * WebCore.xcodeproj/project.pbxproj:
2312         * platform/mac/WebCoreNSURLExtras.mm:
2313         (WebCore::readIDNScriptWhiteList):
2314
2315 2013-04-18  Simon Fraser  <simon.fraser@apple.com>
2316
2317         Remove GraphicsLayerCA::constrainedSize() now that we can manage large layer memory use ourselves in TileController
2318         https://bugs.webkit.org/show_bug.cgi?id=114834
2319
2320         Reviewed by Tim Horton.
2321
2322         GraphicsLayerCA::constrainedSize() was added to handle poor CATiledLayer behavior when layer sizes
2323         got extremely large. Now that we no longer use CATiledLayer, remove this code. We can later add
2324         tile memory bounding to TileController if that becomes necessary.
2325
2326         * platform/graphics/ca/GraphicsLayerCA.cpp:
2327         (WebCore::GraphicsLayerCA::updateGeometry):
2328         * platform/graphics/ca/GraphicsLayerCA.h:
2329         (GraphicsLayerCA):
2330
2331 2013-04-18  Alberto Garcia  <agarcia@igalia.com>
2332
2333         Remove obsolete macros from libpng
2334         https://bugs.webkit.org/show_bug.cgi?id=114817
2335
2336         Reviewed by Benjamin Poulain.
2337
2338         libpng 1.4 removes the png_voidp_NULL and png_error_ptr_NULL
2339         macros. Null pointers must be used directly instead.
2340
2341         * platform/image-encoders/PNGImageEncoder.cpp:
2342         (WebCore::compressRGBABigEndianToPNG):
2343
2344 2013-04-18  Jer Noble  <jer.noble@apple.com>
2345
2346         CodeGeneratorJS.pm should generate "isFiringEventListeners()" check in isReachableFromOpaqueRoots()
2347         https://bugs.webkit.org/show_bug.cgi?id=114784
2348
2349         Reviewed by Geoffrey Garen.
2350
2351         EventTarget subclasses shouldn't have to use CustomIsReachable directives
2352         in order to keep their wrappers alive while firing event listeners.
2353
2354         * bindings/scripts/CodeGeneratorJS.pm:
2355         (GenerateImplementation):
2356
2357 2013-04-17  Geoffrey Garen  <ggaren@apple.com>
2358
2359         Renamed JSGlobalData to VM
2360         https://bugs.webkit.org/show_bug.cgi?id=114777
2361
2362         Reviewed by Phil Pizlo.
2363
2364         * ForwardingHeaders/runtime/JSGlobalData.h: Removed.
2365         * ForwardingHeaders/runtime/VM.h: Copied from Source/WebCore/ForwardingHeaders/runtime/JSGlobalData.h.
2366         * WebCore.exp.in:
2367         * WebCore.order:
2368         * WebCore.vcxproj/WebCore.vcxproj:
2369         * WebCore.vcxproj/WebCore.vcxproj.filters:
2370         * bindings/js/DOMObjectHashTableMap.cpp:
2371         (WebCore::DOMObjectHashTableMap::mapFor):
2372         * bindings/js/DOMObjectHashTableMap.h:
2373         (JSC):
2374         (DOMObjectHashTableMap):
2375         * bindings/js/DOMWrapperWorld.cpp:
2376         (WebCore::DOMWrapperWorld::DOMWrapperWorld):
2377         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
2378         (WebCore::normalWorld):
2379         (WebCore::mainThreadNormalWorld):
2380         * bindings/js/DOMWrapperWorld.h:
2381         (WebCore::DOMWrapperWorld::create):
2382         (WebCore::DOMWrapperWorld::vm):
2383         (DOMWrapperWorld):
2384         (WebCore):
2385         * bindings/js/GCController.cpp:
2386         (WebCore::collect):
2387         (WebCore::GCController::garbageCollectSoon):
2388         (WebCore::GCController::garbageCollectNow):
2389         (WebCore::GCController::setJavaScriptGarbageCollectorTimerEnabled):
2390         (WebCore::GCController::discardAllCompiledCode):
2391         * bindings/js/IDBBindingUtilities.cpp:
2392         (WebCore::get):
2393         (WebCore::set):
2394         (WebCore::deserializeIDBValue):
2395         (WebCore::deserializeIDBValueBuffer):
2396         (WebCore::idbKeyToScriptValue):
2397         * bindings/js/JSCallbackData.h:
2398         (WebCore::JSCallbackData::JSCallbackData):
2399         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
2400         (WebCore::JSSQLStatementErrorCallback::handleEvent):
2401         * bindings/js/JSCustomXPathNSResolver.cpp:
2402         (WebCore::JSCustomXPathNSResolver::JSCustomXPathNSResolver):
2403         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
2404         * bindings/js/JSDOMBinding.cpp:
2405         (WebCore::getHashTableForGlobalData):
2406         (WebCore::reportException):
2407         (WebCore::cacheDOMStructure):
2408         * bindings/js/JSDOMBinding.h:
2409         (WebCore::DOMConstructorObject::createStructure):
2410         (WebCore::DOMConstructorWithDocument::finishCreation):
2411         (WebCore::getDOMStructure):
2412         (WebCore::setInlineCachedWrapper):
2413         (WebCore):
2414         (WebCore::jsStringWithCache):
2415         * bindings/js/JSDOMGlobalObject.cpp:
2416         (WebCore::JSDOMGlobalObject::JSDOMGlobalObject):
2417         (WebCore::JSDOMGlobalObject::finishCreation):
2418         * bindings/js/JSDOMGlobalObject.h:
2419         (JSDOMGlobalObject):
2420         (WebCore::JSDOMGlobalObject::createStructure):
2421         (WebCore::getDOMConstructor):
2422         * bindings/js/JSDOMWindowBase.cpp:
2423         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
2424         (WebCore::JSDOMWindowBase::finishCreation):
2425         (WebCore::JSDOMWindowBase::updateDocument):
2426         (WebCore::JSDOMWindowBase::commonVM):
2427         * bindings/js/JSDOMWindowBase.h:
2428         (JSDOMWindowBase):
2429         (WebCore::JSDOMWindowBase::createStructure):
2430         * bindings/js/JSDOMWindowCustom.cpp:
2431         (WebCore::JSDOMWindow::setLocation):
2432         (WebCore::DialogHandler::dialogCreated):
2433         (WebCore::DialogHandler::returnValue):
2434         * bindings/js/JSDOMWindowShell.cpp:
2435         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
2436         (WebCore::JSDOMWindowShell::finishCreation):
2437         (WebCore::JSDOMWindowShell::setWindow):
2438         * bindings/js/JSDOMWindowShell.h:
2439         (JSDOMWindowShell):
2440         (WebCore::JSDOMWindowShell::create):
2441         (WebCore::JSDOMWindowShell::createStructure):
2442         * bindings/js/JSDOMWrapper.h:
2443         (WebCore::JSDOMWrapper::JSDOMWrapper):
2444         * bindings/js/JSDeviceMotionEventCustom.cpp:
2445         (WebCore::createAccelerationObject):
2446         (WebCore::createRotationRateObject):
2447         * bindings/js/JSDictionary.cpp:
2448         (WebCore::JSDictionary::convertValue):
2449         * bindings/js/JSDictionary.h:
2450         (WebCore::JSDictionary::JSDictionary):
2451         * bindings/js/JSErrorHandler.cpp:
2452         (WebCore::JSErrorHandler::handleEvent):
2453         * bindings/js/JSEventListener.cpp:
2454         (WebCore::JSEventListener::handleEvent):
2455         * bindings/js/JSEventListener.h:
2456         (WebCore::JSEventListener::setWrapper):
2457         (WebCore::JSEventListener::jsFunction):
2458         * bindings/js/JSHTMLDocumentCustom.cpp:
2459         (WebCore::JSHTMLDocument::all):
2460         (WebCore::JSHTMLDocument::setAll):
2461         * bindings/js/JSHTMLTemplateElementCustom.cpp:
2462         (WebCore::JSHTMLTemplateElement::content):
2463         * bindings/js/JSHistoryCustom.cpp:
2464         (WebCore::JSHistory::state):
2465         * bindings/js/JSImageConstructor.cpp:
2466         (WebCore::JSImageConstructor::finishCreation):
2467         * bindings/js/JSImageConstructor.h:
2468         (WebCore::JSImageConstructor::createStructure):
2469         * bindings/js/JSImageDataCustom.cpp:
2470         (WebCore::toJS):
2471         * bindings/js/JSInjectedScriptHostCustom.cpp:
2472         (WebCore::InjectedScriptHost::nodeAsScriptValue):
2473         (WebCore::JSInjectedScriptHost::functionDetails):
2474         (WebCore::getJSListenerFunctions):
2475         (WebCore::JSInjectedScriptHost::getEventListeners):
2476         (WebCore::JSInjectedScriptHost::inspect):
2477         * bindings/js/JSLazyEventListener.cpp:
2478         (WebCore::JSLazyEventListener::initializeJSFunction):
2479         * bindings/js/JSMessageEventCustom.cpp:
2480         (WebCore::JSMessageEvent::data):
2481         (WebCore::handleInitMessageEvent):
2482         * bindings/js/JSMutationCallback.cpp:
2483         (WebCore::JSMutationCallback::call):
2484         * bindings/js/JSMutationObserverCustom.cpp:
2485         (WebCore::JSMutationObserverConstructor::constructJSMutationObserver):
2486         * bindings/js/JSNodeFilterCondition.cpp:
2487         (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
2488         * bindings/js/JSNodeFilterCondition.h:
2489         (WebCore::JSNodeFilterCondition::create):
2490         (JSNodeFilterCondition):
2491         * bindings/js/JSNodeFilterCustom.cpp:
2492         (WebCore::toNodeFilter):
2493         * bindings/js/JSPopStateEventCustom.cpp:
2494         (WebCore::cacheState):
2495         * bindings/js/JSRequestAnimationFrameCallbackCustom.cpp:
2496         (WebCore::JSRequestAnimationFrameCallback::handleEvent):
2497         * bindings/js/JSSQLResultSetRowListCustom.cpp:
2498         (WebCore::JSSQLResultSetRowList::item):
2499         * bindings/js/JSWorkerContextBase.cpp:
2500         (WebCore::JSWorkerContextBase::JSWorkerContextBase):
2501         (WebCore::JSWorkerContextBase::finishCreation):
2502         * bindings/js/JSWorkerContextBase.h:
2503         (WebCore::JSWorkerContextBase::createStructure):
2504         (JSWorkerContextBase):
2505         * bindings/js/PageScriptDebugServer.cpp:
2506         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
2507         * bindings/js/ScheduledAction.cpp:
2508         (WebCore::ScheduledAction::ScheduledAction):
2509         (WebCore::ScheduledAction::executeFunctionInContext):
2510         * bindings/js/ScheduledAction.h:
2511         (WebCore::ScheduledAction::ScheduledAction):
2512         * bindings/js/ScriptCachedFrameData.cpp:
2513         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
2514         (WebCore::ScriptCachedFrameData::restore):
2515         (WebCore::ScriptCachedFrameData::clear):
2516         * bindings/js/ScriptCallStackFactory.cpp:
2517         (WebCore::createScriptCallStack):
2518         (WebCore::createScriptArguments):
2519         * bindings/js/ScriptController.cpp:
2520         (WebCore::ScriptController::createWindowShell):
2521         (WebCore::ScriptController::evaluateInWorld):
2522         (WebCore::ScriptController::createWorld):
2523         (WebCore::ScriptController::getAllWorlds):
2524         (WebCore::ScriptController::clearWindowShell):
2525         (WebCore::ScriptController::initScript):
2526         (WebCore::ScriptController::updateDocument):
2527         (WebCore::ScriptController::cacheableBindingRootObject):
2528         (WebCore::ScriptController::bindingRootObject):
2529         (WebCore::ScriptController::clearScriptObjects):
2530         (WebCore::ScriptController::shouldBypassMainWorldContentSecurityPolicy):
2531         * bindings/js/ScriptControllerMac.mm:
2532         (WebCore::ScriptController::windowScriptObject):
2533         * bindings/js/ScriptDebugServer.cpp:
2534         (WebCore::ScriptDebugServer::dispatchDidPause):
2535         * bindings/js/ScriptEventListener.cpp:
2536         (WebCore::eventListenerHandlerBody):
2537         (WebCore::eventListenerHandler):
2538         (WebCore::eventListenerHandlerLocation):
2539         * bindings/js/ScriptFunctionCall.cpp:
2540         (WebCore::ScriptFunctionCall::call):
2541         (WebCore::ScriptCallback::call):
2542         * bindings/js/ScriptGCEvent.cpp:
2543         (WebCore::ScriptGCEvent::getHeapSize):
2544         * bindings/js/ScriptObject.cpp:
2545         (WebCore::ScriptObject::ScriptObject):
2546         (WebCore::ScriptGlobalObject::set):
2547         * bindings/js/ScriptState.h:
2548         (WebCore):
2549         * bindings/js/ScriptValue.cpp:
2550         (WebCore::ScriptValue::deserialize):
2551         * bindings/js/ScriptValue.h:
2552         (WebCore::ScriptValue::ScriptValue):
2553         * bindings/js/ScriptWrappable.h:
2554         (JSC):
2555         (ScriptWrappable):
2556         * bindings/js/ScriptWrappableInlines.h:
2557         (WebCore::ScriptWrappable::setWrapper):
2558         * bindings/js/SerializedScriptValue.cpp:
2559         (WebCore::CloneDeserializer::readTerminal):
2560         (WebCore::SerializedScriptValue::deserializeForInspector):
2561         (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed):
2562         * bindings/js/WebCoreJSClientData.h:
2563         (WebCoreJSClientData):
2564         (WebCore::initNormalWorldClientData):
2565         * bindings/js/WorkerScriptController.cpp:
2566         (WebCore::WorkerScriptController::WorkerScriptController):
2567         (WebCore::WorkerScriptController::~WorkerScriptController):
2568         (WebCore::WorkerScriptController::initScript):
2569         (WebCore::WorkerScriptController::evaluate):
2570         (WebCore::WorkerScriptController::scheduleExecutionTermination):
2571         (WebCore::WorkerScriptController::isExecutionTerminating):
2572         (WebCore::WorkerScriptController::disableEval):
2573         * bindings/js/WorkerScriptController.h:
2574         (JSC):
2575         (WebCore::WorkerScriptController::vm):
2576         (WorkerScriptController):
2577         * bindings/js/WorkerScriptDebugServer.cpp:
2578         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
2579         * bindings/objc/WebScriptObject.mm:
2580         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
2581         * bindings/scripts/CodeGeneratorJS.pm:
2582         (GenerateHeader):
2583         (GenerateImplementation):
2584         (GenerateCallbackImplementation):
2585         (JSValueToNative):
2586         (GenerateConstructorDeclaration):
2587         (GenerateConstructorHelperMethods):
2588         * bindings/scripts/test/JS/JSFloat64Array.cpp:
2589         (WebCore::getJSFloat64ArrayConstructorTable):
2590         (WebCore::JSFloat64ArrayConstructor::finishCreation):
2591         (WebCore::getJSFloat64ArrayPrototypeTable):
2592         (WebCore::getJSFloat64ArrayTable):
2593         (WebCore::JSFloat64Array::finishCreation):
2594         (WebCore::JSFloat64Array::createPrototype):
2595         * bindings/scripts/test/JS/JSFloat64Array.h:
2596         (WebCore::JSFloat64Array::create):
2597         (WebCore::JSFloat64Array::createStructure):
2598         (JSFloat64Array):
2599         (WebCore::JSFloat64ArrayPrototype::create):
2600         (WebCore::JSFloat64ArrayPrototype::createStructure):
2601         (WebCore::JSFloat64ArrayPrototype::JSFloat64ArrayPrototype):
2602         (WebCore::JSFloat64ArrayConstructor::createStructure):
2603         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
2604         (WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
2605         (WebCore::JSTestActiveDOMObject::finishCreation):
2606         (WebCore::JSTestActiveDOMObject::createPrototype):
2607         * bindings/scripts/test/JS/JSTestActiveDOMObject.h:
2608         (WebCore::JSTestActiveDOMObject::create):
2609         (WebCore::JSTestActiveDOMObject::createStructure):
2610         (JSTestActiveDOMObject):
2611         (WebCore::JSTestActiveDOMObjectPrototype::create):
2612         (WebCore::JSTestActiveDOMObjectPrototype::createStructure):
2613         (WebCore::JSTestActiveDOMObjectPrototype::JSTestActiveDOMObjectPrototype):
2614         (WebCore::JSTestActiveDOMObjectConstructor::createStructure):
2615         * bindings/scripts/test/JS/JSTestCallback.cpp:
2616         (WebCore::JSTestCallback::callbackWithNoParam):
2617         (WebCore::JSTestCallback::callbackWithClass1Param):
2618         (WebCore::JSTestCallback::callbackWithClass2Param):
2619         (WebCore::JSTestCallback::callbackWithStringList):
2620         (WebCore::JSTestCallback::callbackWithBoolean):
2621         (WebCore::JSTestCallback::callbackRequiresThisToPass):
2622         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
2623         (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
2624         (WebCore::JSTestCustomNamedGetter::finishCreation):
2625         (WebCore::JSTestCustomNamedGetter::createPrototype):
2626         * bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
2627         (WebCore::JSTestCustomNamedGetter::create):
2628         (WebCore::JSTestCustomNamedGetter::createStructure):
2629         (JSTestCustomNamedGetter):
2630         (WebCore::JSTestCustomNamedGetterPrototype::create):
2631         (WebCore::JSTestCustomNamedGetterPrototype::createStructure):
2632         (WebCore::JSTestCustomNamedGetterPrototype::JSTestCustomNamedGetterPrototype):
2633         (WebCore::JSTestCustomNamedGetterConstructor::createStructure):
2634         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2635         (WebCore::JSTestEventConstructorConstructor::finishCreation):
2636         (WebCore::JSTestEventConstructor::finishCreation):
2637         (WebCore::JSTestEventConstructor::createPrototype):
2638         * bindings/scripts/test/JS/JSTestEventConstructor.h:
2639         (WebCore::JSTestEventConstructor::create):
2640         (WebCore::JSTestEventConstructor::createStructure):
2641         (JSTestEventConstructor):
2642         (WebCore::JSTestEventConstructorPrototype::create):
2643         (WebCore::JSTestEventConstructorPrototype::createStructure):
2644         (WebCore::JSTestEventConstructorPrototype::JSTestEventConstructorPrototype):
2645         (WebCore::JSTestEventConstructorConstructor::createStructure):
2646         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
2647         (WebCore::JSTestEventTargetConstructor::finishCreation):
2648         (WebCore::JSTestEventTarget::finishCreation):
2649         (WebCore::JSTestEventTarget::createPrototype):
2650         * bindings/scripts/test/JS/JSTestEventTarget.h:
2651         (WebCore::JSTestEventTarget::create):
2652         (WebCore::JSTestEventTarget::createStructure):
2653         (JSTestEventTarget):
2654         (WebCore::JSTestEventTargetPrototype::create):
2655         (WebCore::JSTestEventTargetPrototype::createStructure):
2656         (WebCore::JSTestEventTargetPrototype::JSTestEventTargetPrototype):
2657         (WebCore::JSTestEventTargetConstructor::createStructure):
2658         * bindings/scripts/test/JS/JSTestException.cpp:
2659         (WebCore::JSTestExceptionConstructor::finishCreation):
2660         (WebCore::JSTestException::finishCreation):
2661         (WebCore::JSTestException::createPrototype):
2662         * bindings/scripts/test/JS/JSTestException.h:
2663         (WebCore::JSTestException::create):
2664         (WebCore::JSTestException::createStructure):
2665         (JSTestException):
2666         (WebCore::JSTestExceptionPrototype::create):
2667         (WebCore::JSTestExceptionPrototype::createStructure):
2668         (WebCore::JSTestExceptionPrototype::JSTestExceptionPrototype):
2669         (WebCore::JSTestExceptionConstructor::createStructure):
2670         * bindings/scripts/test/JS/JSTestInterface.cpp:
2671         (WebCore::JSTestInterfaceConstructor::finishCreation):
2672         (WebCore::JSTestInterface::finishCreation):
2673         (WebCore::JSTestInterface::createPrototype):
2674         * bindings/scripts/test/JS/JSTestInterface.h:
2675         (WebCore::JSTestInterface::create):
2676         (WebCore::JSTestInterface::createStructure):
2677         (JSTestInterface):
2678         (WebCore::JSTestInterfacePrototype::create):
2679         (WebCore::JSTestInterfacePrototype::createStructure):
2680         (WebCore::JSTestInterfacePrototype::JSTestInterfacePrototype):
2681         (WebCore::JSTestInterfaceConstructor::createStructure):
2682         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2683         (WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
2684         (WebCore::JSTestMediaQueryListListener::finishCreation):
2685         (WebCore::JSTestMediaQueryListListener::createPrototype):
2686         (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
2687         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
2688         (WebCore::JSTestMediaQueryListListener::create):
2689         (WebCore::JSTestMediaQueryListListener::createStructure):
2690         (JSTestMediaQueryListListener):
2691         (WebCore::JSTestMediaQueryListListenerPrototype::create):
2692         (WebCore::JSTestMediaQueryListListenerPrototype::createStructure):
2693         (WebCore::JSTestMediaQueryListListenerPrototype::JSTestMediaQueryListListenerPrototype):
2694         (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
2695         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
2696         (WebCore::JSTestNamedConstructorConstructor::finishCreation):
2697         (WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
2698         (WebCore::JSTestNamedConstructor::finishCreation):
2699         (WebCore::JSTestNamedConstructor::createPrototype):
2700         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
2701         (WebCore::JSTestNamedConstructor::create):
2702         (WebCore::JSTestNamedConstructor::createStructure):
2703         (JSTestNamedConstructor):
2704         (WebCore::JSTestNamedConstructorPrototype::create):
2705         (WebCore::JSTestNamedConstructorPrototype::createStructure):
2706         (WebCore::JSTestNamedConstructorPrototype::JSTestNamedConstructorPrototype):
2707         (WebCore::JSTestNamedConstructorConstructor::createStructure):
2708         (WebCore::JSTestNamedConstructorNamedConstructor::createStructure):
2709         * bindings/scripts/test/JS/JSTestNode.cpp:
2710         (WebCore::JSTestNodeConstructor::finishCreation):
2711         (WebCore::JSTestNode::finishCreation):
2712         (WebCore::JSTestNode::createPrototype):
2713         * bindings/scripts/test/JS/JSTestNode.h:
2714         (WebCore::JSTestNode::create):
2715         (WebCore::JSTestNode::createStructure):
2716         (JSTestNode):
2717         (WebCore::JSTestNodePrototype::create):
2718         (WebCore::JSTestNodePrototype::createStructure):
2719         (WebCore::JSTestNodePrototype::JSTestNodePrototype):
2720         (WebCore::JSTestNodeConstructor::createStructure):
2721         * bindings/scripts/test/JS/JSTestObj.cpp:
2722         (WebCore::JSTestObjConstructor::finishCreation):
2723         (WebCore::JSTestObj::finishCreation):
2724         (WebCore::JSTestObj::createPrototype):
2725         (WebCore::jsTestObjCachedAttribute1):
2726         (WebCore::jsTestObjCachedAttribute2):
2727         (WebCore::setJSTestObjConditionalAttr4Constructor):
2728         (WebCore::setJSTestObjConditionalAttr5Constructor):
2729         (WebCore::setJSTestObjConditionalAttr6Constructor):
2730         (WebCore::setJSTestObjAnyAttribute):
2731         (WebCore::setJSTestObjReplaceableAttribute):
2732         * bindings/scripts/test/JS/JSTestObj.h:
2733         (WebCore::JSTestObj::create):
2734         (WebCore::JSTestObj::createStructure):
2735         (JSTestObj):
2736         (WebCore::JSTestObjPrototype::create):
2737         (WebCore::JSTestObjPrototype::createStructure):
2738         (WebCore::JSTestObjPrototype::JSTestObjPrototype):
2739         (WebCore::JSTestObjConstructor::createStructure):
2740         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
2741         (WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
2742         (WebCore::JSTestOverloadedConstructors::finishCreation):
2743         (WebCore::JSTestOverloadedConstructors::createPrototype):
2744         * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
2745         (WebCore::JSTestOverloadedConstructors::create):
2746         (WebCore::JSTestOverloadedConstructors::createStructure):
2747         (JSTestOverloadedConstructors):
2748         (WebCore::JSTestOverloadedConstructorsPrototype::create):
2749         (WebCore::JSTestOverloadedConstructorsPrototype::createStructure):
2750         (WebCore::JSTestOverloadedConstructorsPrototype::JSTestOverloadedConstructorsPrototype):
2751         (WebCore::JSTestOverloadedConstructorsConstructor::createStructure):
2752         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2753         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
2754         (WebCore::JSTestSerializedScriptValueInterface::finishCreation):
2755         (WebCore::JSTestSerializedScriptValueInterface::createPrototype):
2756         (WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
2757         (WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
2758         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
2759         (WebCore::JSTestSerializedScriptValueInterface::create):
2760         (WebCore::JSTestSerializedScriptValueInterface::createStructure):
2761         (JSTestSerializedScriptValueInterface):
2762         (WebCore::JSTestSerializedScriptValueInterfacePrototype::create):
2763         (WebCore::JSTestSerializedScriptValueInterfacePrototype::createStructure):
2764         (WebCore::JSTestSerializedScriptValueInterfacePrototype::JSTestSerializedScriptValueInterfacePrototype):
2765         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::createStructure):
2766         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
2767         (WebCore::JSTestTypedefsConstructor::finishCreation):
2768         (WebCore::JSTestTypedefs::finishCreation):
2769         (WebCore::JSTestTypedefs::createPrototype):
2770         * bindings/scripts/test/JS/JSTestTypedefs.h:
2771         (WebCore::JSTestTypedefs::create):
2772         (WebCore::JSTestTypedefs::createStructure):
2773         (JSTestTypedefs):
2774         (WebCore::JSTestTypedefsPrototype::create):
2775         (WebCore::JSTestTypedefsPrototype::createStructure):
2776         (WebCore::JSTestTypedefsPrototype::JSTestTypedefsPrototype):
2777         (WebCore::JSTestTypedefsConstructor::createStructure):
2778         * bridge/c/CRuntimeObject.h:
2779         (JSC::Bindings::CRuntimeObject::createStructure):
2780         * bridge/c/c_instance.cpp:
2781         (JSC::Bindings::CRuntimeMethod::create):
2782         (JSC::Bindings::CRuntimeMethod::createStructure):
2783         (JSC::Bindings::CRuntimeMethod::finishCreation):
2784         * bridge/jsc/BridgeJSC.cpp:
2785         (JSC::Bindings::Instance::createRuntimeObject):
2786         * bridge/objc/ObjCRuntimeObject.h:
2787         (JSC::Bindings::ObjCRuntimeObject::createStructure):
2788         * bridge/objc/objc_instance.mm:
2789         (ObjCRuntimeMethod::create):
2790         (ObjCRuntimeMethod::createStructure):
2791         (ObjCRuntimeMethod::finishCreation):
2792         * bridge/objc/objc_runtime.h:
2793         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
2794         * bridge/objc/objc_runtime.mm:
2795         (JSC::Bindings::ObjcFallbackObjectImp::ObjcFallbackObjectImp):
2796         (JSC::Bindings::ObjcFallbackObjectImp::finishCreation):
2797         * bridge/qt/qt_instance.cpp:
2798         (JSC::Bindings::QtRuntimeObject::createStructure):
2799         (JSC::Bindings::QtInstance::~QtInstance):
2800         (JSC::Bindings::QtInstance::getQtInstance):
2801         * bridge/runtime_array.cpp:
2802         (JSC::RuntimeArray::RuntimeArray):
2803         (JSC::RuntimeArray::finishCreation):
2804         * bridge/runtime_array.h:
2805         (JSC::RuntimeArray::create):
2806         (JSC::RuntimeArray::createStructure):
2807         (RuntimeArray):
2808         * bridge/runtime_method.cpp:
2809         (JSC::RuntimeMethod::finishCreation):
2810         * bridge/runtime_method.h:
2811         (JSC::RuntimeMethod::create):
2812         (JSC::RuntimeMethod::createStructure):
2813         (RuntimeMethod):
2814         * bridge/runtime_object.cpp:
2815         (JSC::Bindings::RuntimeObject::RuntimeObject):
2816         (JSC::Bindings::RuntimeObject::finishCreation):
2817         * bridge/runtime_object.h:
2818         (JSC::Bindings::RuntimeObject::createStructure):
2819         * bridge/runtime_root.cpp:
2820         (JSC::Bindings::RootObject::RootObject):
2821         (JSC::Bindings::RootObject::gcProtect):
2822         (JSC::Bindings::RootObject::gcUnprotect):
2823         (JSC::Bindings::RootObject::updateGlobalObject):
2824         (JSC::Bindings::RootObject::addRuntimeObject):
2825         * bridge/runtime_root.h:
2826         (RootObject):
2827         * dom/Node.cpp:
2828         * dom/Node.h:
2829         (JSC):
2830         * dom/ScriptExecutionContext.cpp:
2831         (WebCore::ScriptExecutionContext::vm):
2832         * dom/ScriptExecutionContext.h:
2833         (JSC):
2834         (ScriptExecutionContext):
2835         * html/HTMLCanvasElement.cpp:
2836         (WebCore::HTMLCanvasElement::createImageBuffer):
2837         * html/HTMLImageLoader.cpp:
2838         (WebCore::HTMLImageLoader::notifyFinished):
2839         * inspector/ScriptArguments.cpp:
2840         (WebCore::ScriptArguments::ScriptArguments):
2841         * loader/icon/IconDatabaseBase.cpp:
2842         (WebCore):
2843         (WebCore::iconDatabase):
2844         (WebCore::setGlobalIconDatabase):
2845         * platform/qt/MemoryUsageSupportQt.cpp:
2846         (WebCore::memoryUsageKB):
2847         (WebCore::actualMemoryUsageKB):
2848         * platform/win/ClipboardUtilitiesWin.cpp:
2849         (WebCore::createGlobalData):
2850         * plugins/PluginView.cpp:
2851         (WebCore::PluginView::start):
2852         (WebCore::PluginView::stop):
2853         (WebCore::PluginView::performRequest):
2854         (WebCore::PluginView::npObject):
2855         (WebCore::PluginView::privateBrowsingStateChanged):
2856         * plugins/blackberry/PluginViewBlackBerry.cpp:
2857         (WebCore::PluginView::dispatchNPEvent):
2858         (WebCore::PluginView::setNPWindowIfNeeded):
2859         (WebCore::PluginView::platformStart):
2860         (WebCore::PluginView::getWindowInfo):
2861         * plugins/efl/PluginViewEfl.cpp:
2862         (WebCore::PluginView::dispatchNPEvent):
2863         * plugins/gtk/PluginViewGtk.cpp:
2864         (WebCore::PluginView::dispatchNPEvent):
2865         (WebCore::PluginView::handleKeyboardEvent):
2866         (WebCore::PluginView::handleMouseEvent):
2867         (WebCore::PluginView::setNPWindowIfNeeded):
2868         (WebCore::PluginView::platformStart):
2869         * plugins/mac/PluginViewMac.mm:
2870         (WebCore::PluginView::platformStart):
2871         * plugins/qt/PluginViewQt.cpp:
2872         (WebCore::PluginView::dispatchNPEvent):
2873         (WebCore::PluginView::setNPWindowIfNeeded):
2874         * plugins/win/PluginViewWin.cpp:
2875         (WebCore::PluginView::dispatchNPEvent):
2876         (WebCore::PluginView::handleKeyboardEvent):
2877         (WebCore::PluginView::handleMouseEvent):
2878         (WebCore::PluginView::setNPWindowRect):
2879         * testing/js/WebCoreTestSupport.cpp:
2880         (WebCoreTestSupport::injectInternalsObject):
2881         * xml/XMLHttpRequest.cpp:
2882         (WebCore::XMLHttpRequest::dropProtection):
2883
2884 2013-04-18  Oliver Hunt  <oliver@apple.com>
2885
2886         Fix windows build by moving template definition to JSDOMBinding.h
2887
2888         * bindings/js/JSDOMBinding.h:
2889         (WebCore):
2890         * bindings/scripts/CodeGeneratorJS.pm:
2891         (GenerateImplementation):
2892         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
2893         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
2894         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2895         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
2896         * bindings/scripts/test/JS/JSTestException.cpp:
2897         * bindings/scripts/test/JS/JSTestInterface.cpp:
2898         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2899         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
2900         * bindings/scripts/test/JS/JSTestObj.cpp:
2901         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
2902         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2903         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
2904
2905 2013-04-18  Eric Carlson  <eric.carlson@apple.com>
2906
2907         Forced subtitles never rendered
2908         https://bugs.webkit.org/show_bug.cgi?id=114818
2909
2910         Reviewed by Jer Noble.
2911
2912         No new tests, media/track/track-forced-subtitles-in-band.html was updated to test this change.
2913
2914         * html/track/TextTrack.cpp:
2915         (WebCore::TextTrack::isRendered): "forced" tracks are rendered.
2916
2917 2013-04-17  Anders Carlsson  <andersca@apple.com>
2918
2919         Change storage factory functions to take a PageGroup and Page respectively
2920         https://bugs.webkit.org/show_bug.cgi?id=114776
2921
2922         Reviewed by Beth Dakin.
2923
2924         Change StorageNamespace::localStorageNamespace to take a PageGroup since WebKit2 needs
2925         to know which local storage namespace belongs to which page group. Also remove the quota parameter from
2926         the sessionStorageNamespace function since that's trivial to get from the Page.
2927
2928         * WebCore.exp.in:
2929         * page/Page.cpp:
2930         (WebCore::Page::sessionStorage):
2931         * page/PageGroup.cpp:
2932         (WebCore::PageGroup::localStorage):
2933         * storage/StorageNamespace.cpp:
2934         (WebCore::StorageNamespace::localStorageNamespace):
2935         (WebCore::StorageNamespace::sessionStorageNamespace):
2936         * storage/StorageNamespace.h:
2937         * storage/StorageNamespaceImpl.cpp:
2938         (WebCore::StorageNamespaceImpl::localStorageNamespace):
2939         (WebCore::StorageNamespaceImpl::sessionStorageNamespace):
2940         * storage/StorageNamespaceImpl.h:
2941         * storage/StorageStrategy.cpp:
2942         (WebCore::StorageStrategy::localStorageNamespace):
2943         (WebCore::StorageStrategy::sessionStorageNamespace):
2944         * storage/StorageStrategy.h:
2945
2946 2013-04-18  Martin Robinson  <mrobinson@igalia.com>
2947
2948         [GTK] fast/canvas/DrawImageSinglePixelStretch.html fails
2949         https://bugs.webkit.org/show_bug.cgi?id=58309
2950
2951         Reviewed by Alejandro G. Castro.
2952
2953         No new tests. This patch unskips a test.
2954
2955         Prevent sampling outside source boundaries, by creating subsurfaces from source surfaces.
2956         This also requires careful handling of negative and floating source rectangles.
2957
2958         * platform/graphics/cairo/PlatformContextCairo.cpp:
2959         (WebCore::PlatformContextCairo::drawSurfaceToContext): Use a subsurface to prevent sampling
2960         outside rectangle boundaries.
2961
2962 2013-04-18  Jonathan Feldstein  <jfeldstein@blackberry.com>
2963
2964         [BlackBerry] Improper initialization of ANGLEResources (resubmission)
2965         https://bugs.webkit.org/show_bug.cgi?id=114814
2966
2967         Reviewed by Yong Li, Rob Buis
2968         Internally reviewed by Maxim Mogilnitsky
2969
2970         MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle
2971         are initialized through the ShBuiltInResources function so these fields do not need to be
2972         set again in GraphicsContext3DBlackBerry.cpp. In addition, the extension flags should not
2973         be set to true without getExtension being called (Khronos WebGL specs, section 5.14.14.).
2974         In fact, as a direct result of these extensions being enabled prior to calling
2975         getExtension, a WebGL conformance suite test for GL_OES_standard_derivatives was failing.
2976
2977         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
2978         (WebCore::GraphicsContext3D::GraphicsContext3D):
2979
2980 2013-04-18  Xuefei Ren  <xren@blackberry.com>
2981
2982         remove build warning(unused parameter)
2983         https://bugs.webkit.org/show_bug.cgi?id=114670
2984
2985         Reviewed by Rob Buis.
2986
2987         remove warning(unused parameter) in
2988         Source/WebCore/html/shadow/MediaControlsBlackBerry.cpp
2989         Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp
2990         Source/WebCore/platform/blackberry/AuthenticationChallengeManager.cpp
2991         Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
2992         Source/WebCore/platform/network/blackberry/ResourceResponseBlackBerry.cpp
2993         Source/WebCore/platform/network/blackberry/SocketStreamHandleBlackBerry.cpp
2994         Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp
2995
2996
2997         * html/shadow/MediaControlsBlackBerry.cpp:
2998         (WebCore::MediaControlFullscreenFullscreenButtonElement::setIsFullscreen):
2999         * loader/blackberry/CookieJarBlackBerry.cpp:
3000         (WebCore::getRawCookies):
3001         (WebCore::deleteCookie):
3002         * platform/blackberry/AuthenticationChallengeManager.cpp:
3003         (WebCore::AuthenticationChallengeManager::notifyChallengeResult):
3004         * platform/blackberry/RenderThemeBlackBerry.cpp:
3005         (WebCore::RenderTheme::themeForPage):
3006         * platform/network/blackberry/ResourceResponseBlackBerry.cpp:
3007         (WebCore::ResourceResponse::doPlatformAdopt):
3008         * platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:
3009         (WebCore::SocketStreamHandle::notifyStatusReceived):
3010         * plugins/blackberry/PluginViewBlackBerry.cpp:
3011         (WebCore::PluginView::invalidateRegion):
3012
3013 2013-04-18  Xuefei Ren  <xren@blackberry.com>
3014
3015
3016         remove build warning(unused parameter)
3017         https://bugs.webkit.org/show_bug.cgi?id=114670
3018
3019         Reviewed by Rob Buis.
3020
3021         remove builde warning (unused parameter) in
3022         Source/WebCore/platform/blackberry/CursorBlackBerry.cpp
3023
3024         * platform/blackberry/CursorBlackBerry.cpp:
3025         (WebCore::Cursor::Cursor):
3026
3027 2013-04-18  Andreas Kling  <akling@apple.com>
3028
3029         EditingStyle: Avoid some unnecessary CSSStyleDeclaration wrappers.
3030         <http://webkit.org/b/114763>
3031
3032         Reviewed by Antti Koivisto.
3033
3034         removeEquivalentProperties(CSSStyleDeclaration) and removeEquivalentProperties(StylePropertySet)
3035         only have different behavior if the CSSStyleDeclaration is computed style (they differ in handling
3036         of the 'font-size' property.)
3037
3038         Avoid creating a CSSStyleDeclaration for StylePropertySets where we can just pass them in directly.
3039
3040         * editing/EditingStyle.cpp:
3041         (WebCore::EditingStyle::removeStyleAddedByNode):
3042         (WebCore::EditingStyle::removeStyleConflictingWithStyleOfNode):
3043
3044 2013-04-18  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3045
3046         Unset :hover in inner documents
3047         https://bugs.webkit.org/show_bug.cgi?id=114446
3048
3049         Reviewed by Antonio Gomes.
3050
3051         Fixes a regression from r145126 where hover nodes in inner documents was sometimes
3052         not unset. Additionally it uses the new api from r145126 to avoid an unnecessary
3053         hit test in touch-event handling.
3054
3055         Test: fast/events/touch/frame-hover-update.html
3056
3057         * dom/Document.cpp:
3058         (WebCore::Document::updateHoverActiveState):
3059         * page/EventHandler.cpp:
3060         (WebCore::shouldGesturesTriggerActive):
3061         (WebCore::EventHandler::handleTouchEvent):
3062
3063 2013-04-18  Seokju Kwon  <seokju.kwon@gmail.com>
3064
3065         Web Inspector: Toolbar icons are displayed incorrectly
3066         https://bugs.webkit.org/show_bug.cgi?id=114792
3067
3068         Reviewed by Timothy Hatcher.
3069
3070         Inspector uses small toolbar icons when docking the inspector.
3071         So icons should have different x position.
3072
3073         No tests because no behavior change is expected.
3074
3075         * inspector/front-end/inspector.css: Add missing 'background-position-x' values.
3076         (body.dock-to-bottom .toolbar-item.profiles .toolbar-icon):
3077         (body.dock-to-bottom .toolbar-item.cpu-profiler .toolbar-icon):
3078         (body.dock-to-bottom .toolbar-item.css-profiler .toolbar-icon):
3079         (body.dock-to-bottom .toolbar-item.heap-profiler .toolbar-icon):
3080         (body.dock-to-bottom .toolbar-item.canvas-profiler .toolbar-icon):
3081         (body.dock-to-bottom .toolbar-item.memory-chart-profiler .toolbar-icon):
3082         (body.dock-to-bottom .toolbar-item.memory-snapshot-profiler .toolbar-icon):
3083
3084 2013-04-17  Jaehun Lim  <ljaehun.lim@samsung.com>
3085
3086         [css3-text] Rendering -webkit-hanging value for text-indent from css3-text
3087         https://bugs.webkit.org/show_bug.cgi?id=114663
3088
3089         Reviewed by Beth Dakin.
3090
3091         This patch is the rendering part to support hanging value for text-indent.
3092         "hanging" means "Inverts which lines are affected."
3093         It's prefixed and guarded by CSS3_TEXT flag.
3094
3095         Spec: http://dev.w3.org/csswg/css-text/#text-indent
3096
3097         Test: fast/css3-text/css3-text-indent/text-indent-each-line-hanging.html
3098
3099         * rendering/RenderBlockLineLayout.cpp:
3100         (WebCore::requiresIndent): Inverted the return value when "-webkit-hanging" is applied.
3101
3102 2013-04-17  James Craig  <james@cookiecrook.com>
3103
3104         AX: aria-level does not override implicit level on h1, h2, etc
3105         https://bugs.webkit.org/show_bug.cgi?id=114692
3106
3107         Reviewed by Chris Fleizach.
3108
3109         aria-level now works on headings without an explicit role="heading" defined. Updated existing test coverage.
3110
3111         * accessibility/AccessibilityNodeObject.cpp:
3112         (WebCore::AccessibilityNodeObject::headingLevel):
3113
3114 2013-04-17  Chris Fleizach  <cfleizach@apple.com>
3115
3116         AX: VoiceOver says everything that isn't a link is a "clickable" in Safari reader?
3117         https://bugs.webkit.org/show_bug.cgi?id=114687
3118
3119         Reviewed by Tim Horton.
3120
3121         VoiceOver is saying all text is clickable, because AXPress is exposed as an action on static text.
3122         That is happening, because there's a click handler on the body element in this case.
3123
3124         I think the best plan to keep existing functionality, but fix this case is not to expose
3125         the press action for static text when the handler is on the body element.
3126
3127         Test: platform/mac/accessibility/press-action-not-exposed-when-body-is-click-handler.html
3128
3129         * accessibility/AccessibilityNodeObject.cpp:
3130         (WebCore::AccessibilityNodeObject::mouseButtonListener):
3131            Change from checking getAttributeEventListener to hasEventListeners. The former only
3132            checks if "onclick" is installed on the element and does not work with addEventListener!
3133
3134         * accessibility/AccessibilityObject.cpp:
3135         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatchAtIndex):
3136         * accessibility/AccessibilityObject.h:
3137         (WebCore::AccessibilityObject::isStaticText):
3138
3139 2013-04-17  Simon Fraser  <simon.fraser@apple.com>
3140
3141         Fix GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush() to do predictive visible rect expansion
3142         https://bugs.webkit.org/show_bug.cgi?id=114775
3143
3144         Reviewed by Tim Horton.
3145
3146         GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush() is intended to answer the question
3147         "if your visible rect is changed to X, would any tiles be created or destroyed?".
3148         
3149         However, for compositing layer tiled layers, we do some predictive visible rect expansion based on how
3150         the visible rect is changing when we actually commit visible rect changes. recursiveVisibleRectChangeRequiresFlush()
3151         was not doing that, causing it to give confusing answers, so fix it to do so.
3152         
3153         Both now call adjustTiledLayerVisibleRect(), and it's cleaner to make this a static function.
3154         
3155         A somewhat unrelated change is to take the layer bounds origin into account
3156         in GraphicsLayerCA::computeVisibleRect(). Desktop WebKit never sets this, but it's used
3157         on other platforms for composited scrolling, so needs to be taken into account
3158         when computing visible rects.
3159
3160         * platform/graphics/ca/GraphicsLayerCA.cpp:
3161         (WebCore::GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush):
3162         (WebCore::GraphicsLayerCA::computeVisibleRect):
3163         (WebCore::GraphicsLayerCA::adjustTiledLayerVisibleRect):
3164         (WebCore::GraphicsLayerCA::updateVisibleRect):
3165         * platform/graphics/ca/GraphicsLayerCA.h:
3166         (GraphicsLayerCA):
3167
3168 2013-04-17  Oliver Hunt  <oliver@apple.com>
3169
3170         Automate generation of toJS function for classes that need to report extra memory usage
3171         https://bugs.webkit.org/show_bug.cgi?id=114768
3172
3173         Reviewed by Geoff Garen.
3174
3175         Only really used by AudioBuffer for now.  The other classes that need it can be
3176         trivially refactored at a later date.
3177
3178         * Modules/webaudio/AudioBuffer.idl:
3179         * bindings/js/JSAudioBufferCustom.cpp:
3180         * bindings/js/JSDOMBinding.h:
3181         (WebCore):
3182         (HasMemoryCost):
3183         (NoType):
3184         (BaseMixin):
3185         * bindings/scripts/CodeGeneratorJS.pm:
3186         (GenerateImplementation):
3187
3188 2013-04-17  Dirk Schulze  <krit@webkit.org>
3189
3190         BasicShapeFunctions should use RenderStyle instead of StyleResolver
3191         https://bugs.webkit.org/show_bug.cgi?id=114743
3192
3193         Reviewed by Antti Koivisto.
3194
3195         BasicShapeFunctions does include RenderStyle instead of StyleResolver now.
3196         This is a simple refactoring patch, no new tests.
3197
3198         * css/BasicShapeFunctions.cpp:
3199         (WebCore::convertToLength): Use style and rootElementStyle directly.
3200         (WebCore::basicShapeForValue): Ditto.
3201         * css/BasicShapeFunctions.h:
3202         (WebCore):
3203         * css/DeprecatedStyleBuilder.cpp:
3204         (WebCore::ApplyPropertyClipPath::applyValue):
3205         (WebCore::ApplyPropertyExclusionShape::applyValue):
3206
3207 2013-04-17  Beth Dakin  <bdakin@apple.com>
3208
3209         Content inside frames and scrollbars in overflow areas hit-tests incorrectly when 
3210         the WKView has a header
3211         https://bugs.webkit.org/show_bug.cgi?id=114769
3212
3213         Reviewed by Simon Fraser.
3214
3215         convertToRenderer() and convertFromRenderer() need to factor in the headerHeight, 
3216         much like all of the conversion functions on ScrollView. 
3217         * page/FrameView.cpp:
3218         (WebCore::FrameView::convertFromRenderer):
3219         (WebCore::FrameView::convertToRenderer):
3220
3221         The scrollPosition equivalent of the existing scrollOffsetRelativeToDocument() 
3222         function. 
3223         * platform/ScrollView.cpp:
3224         (WebCore::ScrollView::scrollPositionRelativeToDocument):
3225         * platform/ScrollView.h:
3226         (ScrollView):
3227
3228 2013-04-17  Andreas Kling  <akling@apple.com>
3229
3230         Remove FragmentScriptingPermission.h include from Element.h.
3231         <http://webkit.org/b/114757>
3232
3233         Rubber-stamped by Anders Carlsson.
3234
3235         * dom/Element.h:
3236
3237 2013-04-17  Mark Lam  <mark.lam@apple.com>
3238
3239         Add LLINT and baseline JIT support for timing out scripts.
3240         https://bugs.webkit.org/show_bug.cgi?id=114577.
3241
3242         Reviewed by Geoffrey Garen.
3243
3244         Replaced use of the obsolete JSGlobalData.terminator methods with the
3245         JSGlobalData.watchdog equivalents.
3246
3247         * bindings/js/JSEventListener.cpp:
3248         (WebCore::JSEventListener::handleEvent):
3249         * bindings/js/SerializedScriptValue.cpp:
3250         (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed):
3251         * bindings/js/WorkerScriptController.cpp:
3252         (WebCore::WorkerScriptController::evaluate):
3253         (WebCore::WorkerScriptController::scheduleExecutionTermination):
3254         (WebCore::WorkerScriptController::isExecutionTerminating):
3255
3256 2013-04-16  Jer Noble <jer.noble@apple.com>
3257
3258         Crash in WebCore::HTMLMediaElement::~HTMLMediaElement.
3259         https://bugs.webkit.org/show_bug.cgi?id=113531
3260
3261         Reviewed by Eric Carlson.
3262
3263         No new tests, though this is intermittently reproducible with
3264         http/tests/misc/delete-frame-during-readystatechange.html under ASAN.
3265
3266         * html/HTMLMediaElement.cpp:
3267         (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear the media player manually
3268             before the destructor exits. Clearing the media player may cancel a resource load,
3269             which can trigger a readystatechange event. It's possible for the HTMLMediaElement
3270             to attempt to fire an abort event within the readystatechange event, even though it is
3271             now in an inconsistent state. Clearling the media player before finishing the destructor
3272             ensures that the HTMLMediaElement will at least still be alive if this case is triggered.
3273             Set m_completelyLoaded to true to ensure that if userCancelledLoad() is called, it doesn't
3274             attempt to fire events while destructing.
3275
3276 2013-04-17  Sergio Correia  <sergio.correia@openbossa.org>
3277
3278         Web Inspector: make generate-inspector-protocol-version work with python3 
3279         https://bugs.webkit.org/show_bug.cgi?id=114717
3280
3281         Revision r146765 added print() calls that made the script complain about 
3282         invalid syntax when using python3.
3283
3284         This commit replaces such calls with calls to sys.stdout.write(), analogous
3285         to the sys.stderr.write() ones already used throughout the file.
3286
3287         Reviewed by Timothy Hatcher.
3288
3289         No new tests. No user visible behavior changed.
3290
3291         * inspector/generate-inspector-protocol-version:
3292         (main):
3293
3294 2013-04-17  Seokju Kwon  <seokju.kwon@gmail.com>
3295
3296         Web Inspector: Fix Localized string warngs
3297         https://bugs.webkit.org/show_bug.cgi?id=114718
3298
3299         Reviewed by Timothy Hatcher.
3300
3301         No tests because no behavior change is expected.
3302
3303         * English.lproj/localizedStrings.js:
3304
3305 2013-04-17  Csaba Osztrogon√°c  <ossy@webkit.org>
3306
3307         [Qt] Unreviewed Windows buildfix.
3308
3309         * platform/qt/DragDataQt.cpp: Add a missing include.
3310
3311 2013-04-17  ChangSeok Oh  <shivamidow@gmail.com>
3312
3313         Breaking Float: floated block level element following inline element in floated container breaks to next line
3314         https://bugs.webkit.org/show_bug.cgi?id=45274
3315
3316         Reviewed by David Hyatt.
3317
3318         Fix position issue of floating element in floating element.
3319         Inner floating element has placed at next line when outer floating element has text,
3320         even though previous line has spaces enough to fit it.
3321         To solve this, the width of a space added temporarily for prohibiting duplication more than 2 empty spaces
3322         is subtracted when floating element is checked whether it fits on a line.
3323
3324         Tests: css2.1/20110323/floats-001.html
3325                css2.1/20110323/floats-102.html
3326                fast/inline-block/float-both-whitespace.html
3327                fast/inline-block/float-leading-whitespace.html
3328                fast/inline-block/float-no-whitespace.html
3329                fast/inline-block/float-trailing-whitespace.html
3330                fast/inline-block/multiple-floats-with-whitespace.html
3331
3332         * rendering/RenderBlockLineLayout.cpp:
3333         (WebCore::LineWidth::LineWidth):
3334         (WebCore::LineWidth::fitsOnLine):
3335         (WebCore::LineWidth::trailingWhitespaceWidth):
3336         (WebCore::LineWidth::setTrailingWhitespaceWidth):
3337         (LineWidth):
3338         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
3339
3340 2013-04-17  Leo Yang  <leoyang@rim.com>
3341
3342         Lots of unused parameter warnings in filesystem code
3343         https://bugs.webkit.org/show_bug.cgi?id=114747
3344
3345         Reviewed by Carlos Garcia Campos.
3346
3347         Comment out or remove unused parameter identifiers.
3348
3349         No functionalities changed, no new tests.
3350
3351         * Modules/filesystem/DOMFileSystem.cpp: Comment out |snapshot| because
3352         it is referred in the comments inside the function.
3353         (WebCore):
3354         * Modules/filesystem/DOMFileSystemSync.cpp: Ditto.
3355         (WebCore):
3356         * Modules/filesystem/FileWriter.cpp: Remove unused |ec|.
3357         (WebCore::FileWriter::abort):
3358         * Modules/filesystem/FileWriterSync.cpp:
3359         (WebCore::FileWriterSync::didWrite): Remove unused |bytes|.
3360         * platform/AsyncFileSystemCallbacks.h:
3361         (WebCore::AsyncFileSystemCallbacks::didOpenFileSystem): Comment out unused parameters
3362         because the function is inlined.
3363         (WebCore::AsyncFileSystemCallbacks::didCreateSnapshotFile): Ditto.
3364         (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntry): Ditto.
3365         (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntries): Ditto.
3366         (WebCore::AsyncFileSystemCallbacks::didCreateFileWriter): Ditto.
3367         * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:
3368         (WebCore::WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread): Remove unused |client|.
3369
3370 2013-04-17  Brent Fulgham  <bfulgham@webkit.org>
3371
3372         [Windows, WinCairo] Stop individually building WTF files in WebCore
3373         https://bugs.webkit.org/show_bug.cgi?id=114705
3374
3375         Reviewed by Anders Carlsson.
3376
3377         * WebCore.vcproj/WebCore.vcproj: Remove references to WTF objects.
3378         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
3379         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto
3380
3381 2013-04-17  Dirk Schulze  <krit@webkit.org>
3382
3383         Make lengthConversion methods and arguments const
3384         https://bugs.webkit.org/show_bug.cgi?id=114749
3385
3386         Reviewed by Andreas Kling.
3387
3388         Refactoring, no new tests.
3389
3390         * css/CSSCalculationValue.cpp:
3391         (WebCore::CSSCalcValue::computeLengthPx):
3392         (WebCore::CSSCalcPrimitiveValue::toCalcValue):
3393         (WebCore::CSSCalcPrimitiveValue::computeLengthPx):
3394         (WebCore::CSSCalcBinaryOperation::toCalcValue):
3395         (WebCore::CSSCalcBinaryOperation::computeLengthPx):
3396         * css/CSSCalculationValue.h:
3397         (WebCore::CSSCalcValue::toCalcValue):
3398         (CSSCalcValue):
3399         * css/CSSPrimitiveValue.cpp:
3400         (WebCore::CSSPrimitiveValue::computeLength):
3401         (WebCore::CSSPrimitiveValue::computeLengthDouble):
3402         (WebCore::CSSPrimitiveValue::viewportPercentageLength):
3403         * css/CSSPrimitiveValue.h:
3404         (CSSPrimitiveValue):
3405         * css/CSSPrimitiveValueMappings.h:
3406         (WebCore::CSSPrimitiveValue::convertToLength):
3407         * css/StyleResolver.cpp:
3408         (WebCore::StyleResolver::convertToIntLength):
3409         (WebCore::StyleResolver::convertToFloatLength):
3410         * css/StyleResolver.h:
3411         (StyleResolver):
3412
3413 2013-04-17  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
3414
3415         [refactor] Moved ScriptedAnimationController common code to inline function
3416         https://bugs.webkit.org/show_bug.cgi?id=114681
3417
3418         Reviewed by Daniel Bates.
3419
3420         Avoided duplicated code by moving ScriptedAnimationController clearance
3421         code to a common function used by both Document::dispose() and
3422         Document::detach().
3423
3424         No new tests, no behavior changes.
3425
3426         * dom/Document.cpp:
3427         (WebCore::Document::dispose):
3428         (WebCore::Document::detach):
3429         (WebCore::Document::clearScriptedAnimationController): Added.
3430         * dom/Document.h:
3431         (Document):
3432
3433 2013-04-17  Chris Fleizach  <cfleizach@apple.com>
3434
3435         AX: When img@alt is undefined, WebKit should use @title as accessibility label if available
3436         https://bugs.webkit.org/show_bug.cgi?id=114535