Crash on OS X when shift clicking outside of input
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-04-22  Yi Shen  <max.hong.shen@gmail.com>
2
3         Crash on OS X when shift clicking outside of input
4         https://bugs.webkit.org/show_bug.cgi?id=104058
5
6         Reviewed by Chang Shu.
7
8         Shift clicking outside of a focused div while removing the focused div from
9         the dom tree at the same time may hit a null visible position, which should
10         not be used to calculate the text distance with the new selection's start and
11         end position. Otherwise, the browser may crash.
12
13         Test: editing/selection/crash-on-shift-click.html
14
15         * page/EventHandler.cpp:
16         (WebCore::EventHandler::handleMousePressEventSingleClick):
17
18 2013-04-22  Carlos Garcia Campos  <cgarcia@igalia.com>
19
20         Scrollbar should not depend on EventHandler, Frame and FrameView
21         https://bugs.webkit.org/show_bug.cgi?id=114941
22
23         Reviewed by Darin Adler.
24
25         It's a layering violation that Scrollbar uses EventHandler, Frame
26         and FrameView. Frame is used to get the EventHandler that is used
27         to set mousePressed to false after a Scrollbar::mouseUp(). This is
28         not really needed, since EventHandler already sets m_mousePressed
29         to false when calling Scrollbar::mouseUp(). The PopupMenu windows
30         implementation also calls Scrollbar::mouseUp(), but that scrollbar
31         is not inside a FrameView.
32
33         * platform/Scrollbar.cpp:
34         (WebCore::Scrollbar::isScrollViewScrollbar):
35         isScrollViewScrollbar() is a method of ScrollView so we don't need
36         to cast to FrameView.
37         (WebCore::Scrollbar::mouseUp): Remove EventHandler ussage.
38
39 2013-04-22  Andreas Kling  <akling@apple.com>
40
41         Shrink baseline size of WTF::Vector on 64-bit by switching to unsigned capacity and size.
42         <http://webkit.org/b/97268>
43         <rdar://problem/12376519>
44
45         Reviewed by Sam Weinig.
46
47         * CMakeLists.txt: Add a workaround for GCC 4.6.x in Release mode so it
48         does not crash.
49
50 2013-04-22  John Griggs  <jgriggs@blackberry.com>
51
52         [BlackBerry] URL decode data: URLs before passing to the platform media player.
53         https://bugs.webkit.org/show_bug.cgi?id=114887
54
55         Reviewed by Rob Buis.
56
57         Pass data URL through URL decoding before passing to platform media player.  PR 313635.
58
59         Reviewed internally by Liam Quinn
60
61         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
62         (WebCore::MediaPlayerPrivate::load):
63
64 2013-04-22  Xuefei Ren  <xren@blackberry.com>
65
66
67         fix build warning(unused parameter)
68         https://bugs.webkit.org/show_bug.cgi?id=114855
69
70         Reviewed by Rob Buis.
71
72         remove warning(unused parameter) in
73         Source/WebCore/platform/graphics/blackberry
74
75         * platform/graphics/blackberry/CanvasLayerWebKitThread.cpp:
76         (WebCore::CanvasLayerCompositingThreadClient::drawTextures):
77         (WebCore::CanvasLayerCompositingThreadClient::deleteTextures):
78         (WebCore::CanvasLayerCompositingThreadClient::commitPendingTextureUploads):
79         * platform/graphics/blackberry/FontBlackBerry.cpp:
80         (WebCore::Font::offsetForPositionForComplexText):
81         * platform/graphics/blackberry/FontCacheBlackBerry.cpp:
82         (WebCore::FontCache::getSimilarFontPlatformData):
83         (WebCore::FontCache::getTraitsInFamily):
84         * platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp:
85         (WebCore::GlyphPage::fill):
86         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
87         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
88         * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp:
89         (WebCore::GraphicsContext::drawConvexPolygon):
90         (WebCore::GraphicsContext::fillRect):
91         (WebCore::GraphicsContext::fillRoundedRect):
92         (WebCore::GraphicsContext::roundToDevicePixels):
93         (WebCore::GraphicsContext::setPlatformShadow):
94         (WebCore::GraphicsContext::clipConvexPolygon):
95         (WebCore::GraphicsContext::setURLForRect):
96         (WebCore::GraphicsContext::setPlatformStrokeColor):
97         (WebCore::GraphicsContext::setPlatformFillColor):
98         (WebCore::GraphicsContext::setPlatformCompositeOperation):
99         * platform/graphics/blackberry/ImageBlackBerry.cpp:
100         (WebCore::BitmapImage::draw):
101         (WebCore::Image::drawPattern):
102         * platform/graphics/blackberry/ImageBufferBlackBerry.cpp:
103         (WebCore::flushAndDraw):
104         (WebCore::ImageBuffer::ImageBuffer):
105         (WebCore::ImageBuffer::copyImage):
106         (WebCore::ImageBuffer::draw):
107         (WebCore::ImageBuffer::platformTransformColorSpace):
108         * platform/graphics/blackberry/LayerTiler.cpp:
109         (WebCore::LayerTiler::drawTile):
110         * platform/graphics/blackberry/PathBlackBerry.cpp:
111         (WebCore::GraphicsContext::drawFocusRing):
112         (WebCore::GraphicsContext::clipPath):
113         * platform/graphics/blackberry/PatternBlackBerry.cpp:
114         (WebCore::Pattern::platformPattern):
115
116 2013-04-22  Mike Fenton  <mifenton@rim.com>
117
118         [BlackBerry] Add additional datalist support.
119         https://bugs.webkit.org/show_bug.cgi?id=114883
120
121         Reviewed by Rob Buis.
122
123         PR 210083.
124
125         Extend support for datalist to include all non-popup input types.
126
127         Re-enabling fast/forms/datalist/input-list
128
129         Internally Reviewed by Otto Cheung.
130
131         * platform/blackberry/RenderThemeBlackBerry.cpp:
132         (WebCore::RenderThemeBlackBerry::supportsDataListUI):
133
134 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
135
136         [BlackBerry] Add dummy implementations of DragData::droppedFileSystemId()
137         https://bugs.webkit.org/show_bug.cgi?id=114861
138
139         Reviewed by Carlos Garcia Campos.
140
141         * platform/blackberry/DragDataBlackBerry.cpp:
142         (WebCore):
143         (WebCore::DragData::droppedFileSystemId):
144
145 2013-04-22  Mihai Maerean  <mmaerean@adobe.com>
146
147         [CSS Regions] Elements in a region should be assignable to a named flow
148         https://bugs.webkit.org/show_bug.cgi?id=74144
149
150         Reviewed by David Hyatt.
151
152         DOM children of a region must not be rendered as children of the region, but can be collected in flow threads.
153
154         NodeRenderingContext::parentRenderer now creates the parent render flow thread if it doesn't exist.
155
156         Element::moveToFlowThreadIsNeeded is a virtual method that is overriden in PseudoElement to return false and
157         in SVGElement so only svg root elements can directly be collected by a render flow thread.
158
159         RenderObject::canDOMChildrenHaveRenderParent exists to optimize the code so nodes inside regions (and maybe
160         other types of renderers in the future) can still have renderers if they need to be in a flow thread while the
161         rest of renderers that can't have children skip the new instructions.
162
163         Tests: fast/regions/flow-body-in-html.html . To test the duplicate bug #103685.
164                fast/regions/region-content-flown-into-region.html
165                fast/regions/universal-selector-children-to-the-same-region.html . To test the duplicate bug #103685.
166
167         * dom/Element.cpp:
168         (WebCore::Element::moveToFlowThreadIsNeeded):
169         * dom/Element.h:
170         * dom/NodeRenderingContext.cpp:
171         (WebCore::NodeRenderingContext::parentRenderer): the renderer that will be the parent for this node's renderer.
172         In the case of RenderFlowThreads, it may need to create it.
173         (WebCore::NodeRenderingContext::shouldCreateRenderer): In a region, only the children that need to be in a flow
174         thread should have a renderer.
175         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
176         (WebCore::NodeRenderingContext::moveToFlowThread):
177         * dom/NodeRenderingContext.h:
178         (NodeRenderingContext):
179         * dom/PseudoElement.h: pseudo-elements cannot be directly collected into a named flow.
180         * dom/Text.cpp:
181         (WebCore::Text::textRendererIsNeeded):
182         (WebCore::Text::updateTextRenderer): Because calling textRendererIsNeeded(NodeRenderingContext(...)) on a
183         non-const l-value NodeRenderingContext cannot be done on a temporary object on the stack.
184         * dom/Text.h:
185         * rendering/FlowThreadController.cpp:
186         (WebCore::FlowThreadController::isContentNodeRegisteredWithAnyNamedFlow):
187         * rendering/FlowThreadController.h:
188         * rendering/RenderObject.h:
189         (WebCore::RenderObject::canDOMChildrenHaveRenderParent): Even if this render object can't have render children,
190         the children in the DOM tree may have a render parent (that is different from this render object).
191         * rendering/RenderRegion.h:
192         * svg/SVGElement.cpp:
193         (WebCore::SVGElement::moveToFlowThreadIsNeeded): Allow only svg root elements to be directly collected by a
194         render flow thread.
195         * svg/SVGElement.h:
196
197 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
198
199         Gradient: add PlatformGradient definition for BlackBerry
200         https://bugs.webkit.org/show_bug.cgi?id=114727
201
202         Reviewed by Carlos Garcia Campos.
203
204         * platform/graphics/Gradient.h:
205         (Graphics):
206
207 2013-04-22  Andrei Bucur  <abucur@adobe.com>
208
209         Use DOM ordering for list counts
210         https://bugs.webkit.org/show_bug.cgi?id=110352
211
212         Reviewed by Elliott Sprehn.
213
214         Currently the list items ordering is made by traversing the render tree. This gives bad results for:
215         - list items flown inside regions because they are not rendered as descendants of their DOM list ancestors.
216         - list items matched to insertion points inside a shadow tree. The insertion point may be a child of a
217         list so the numbering gets broken.
218
219         To implement correct DOM ordering I've taken into account the fact that pseudo-elements can have display: list-item
220         so they should be included when traversing the DOM tree. I've added helper methods on the NodeTraversal
221         namespace that should allow easily traversing the tree including the pseudo-elements (e.g. firstChildWithPseudo
222         for an element with pseudo-before will return the before PseudoElement). Using these helper methods I've implemented
223         pre-order traversal methods aware of the pseudo-elements.
224         An effect of this change is how the list items inside shadow tree update their counting. With the patch, if there's
225         no <ol> or <ul> element on the ancestor chain of a <li> element to the shadow root, the list node will be considered the
226         first parent of the <li> or the shadow root if there is no ancestor.
227         The RenderListItem class now makes use of this new method of traversal, replacing the one based on the render tree.
228         To simplify the CSS counters implementation, I've changed the traversal functions inside RenderCounter to also make use
229         of this method. The CSS counters and the list items now have the same traversal algorithm.
230
231         In later patches I'll add tests that should cover the regions and shadow DOM use cases.
232         Tests bug for shadow DOM: https://bugs.webkit.org/show_bug.cgi?id=113193
233         Tests bug for regions: https://bugs.webkit.org/show_bug.cgi?id=103975
234
235         Tests: no new tests is this patch; added the correct expectations for fast/lists/positioned-count-crash.html
236         and fast/dom/shadow/shadow-and-list-elements.html
237
238         * dom/Node.cpp:
239         (WebCore::Node::pseudoAwarePreviousSibling):
240         (WebCore):
241         (WebCore::Node::pseudoAwareNextSibling):
242         (WebCore::Node::pseudoAwareFirstChild):
243         (WebCore::Node::pseudoAwareLastChild):
244         * dom/Node.h:
245         (Node):
246         * dom/NodeTraversal.cpp:
247         (WebCore):
248         (WebCore::NodeTraversal::previousIncludingPseudo):
249         (NodeTraversal):
250         (WebCore::NodeTraversal::nextIncludingPseudo):
251         (WebCore::NodeTraversal::nextIncludingPseudoSkippingChildren):
252         * dom/NodeTraversal.h:
253         (ElementTraversal):
254         (NodeTraversal):
255         (WebCore::ElementTraversal::previousIncludingPseudo):
256         (WebCore::ElementTraversal::nextIncludingPseudo):
257         (WebCore::ElementTraversal::nextIncludingPseudoSkippingChildren):
258         (WebCore::ElementTraversal::pseudoAwarePreviousSibling):
259         * html/HTMLLIElement.cpp:
260         (WebCore::HTMLLIElement::attach):
261         * html/HTMLOListElement.cpp:
262         (WebCore::HTMLOListElement::updateItemValues):
263         (WebCore::HTMLOListElement::recalculateItemCount):
264         * rendering/RenderCounter.cpp:
265         (WebCore::previousInPreOrder):
266         (WebCore::previousSiblingOrParent):
267         (WebCore::parentElement):
268         (WebCore::nextInPreOrder):
269         * rendering/RenderListItem.cpp:
270         (WebCore):
271         (WebCore::enclosingList):
272         (WebCore::RenderListItem::nextListItem):
273         (WebCore::previousListItem):
274         (WebCore::RenderListItem::calcValue):
275         (WebCore::RenderListItem::explicitValueChanged):
276         (WebCore::previousOrNextItem):
277         (WebCore::RenderListItem::updateListMarkerNumbers):
278         * rendering/RenderListItem.h:
279         (RenderListItem):
280
281 2013-04-22  Alberto Garcia  <agarcia@igalia.com>
282
283         Fix multiple definition of ImageBuffer::platformLayer() in the BlackBerry port
284         https://bugs.webkit.org/show_bug.cgi?id=114936
285
286         Reviewed by Carlos Garcia Campos.
287
288         We already have a definition in ImageBufferBlackBerry.cpp.
289
290         * platform/graphics/ImageBuffer.cpp:
291         (WebCore):
292
293 2013-04-21  Carlos Garcia Campos  <cgarcia@igalia.com>
294
295         Division by zero in CSSGradientValue::addStops()
296         https://bugs.webkit.org/show_bug.cgi?id=114807
297
298         Reviewed by Dean Jackson.
299
300         The normalization of the color stop positions of a linear gradient
301         doesn't take into account that the first and last position can be
302         the same. In such case the positions are computed dividing by 0.
303         Clamp the positions to 1 without moving the end points in such
304         case to match what other browsers do. This ensures that positions
305         passed to the platform gradient are in the 0-1 range which fixes a
306         crash due to an assert in BlackBerry port running test
307         fast/forms/type-after-focus-rule-shrink-width.html.
308
309         Test: fast/gradients/css3-color-stop-invalid.html
310
311         * css/CSSGradientValue.cpp:
312         (WebCore::CSSGradientValue::addStops):
313
314 2013-04-21  Benjamin Poulain  <benjamin@webkit.org>
315
316         Fix some minor bad use of strings in WebCore
317         https://bugs.webkit.org/show_bug.cgi?id=114907
318
319         Reviewed by Darin Adler.
320
321         * editing/Editor.cpp:
322         (WebCore::Editor::selectedText): This was implicitly getting the emptyString()
323         for the argument "".
324         * editing/markup.cpp:
325         (WebCore::StyledMarkupAccumulator::takeResults): ditto.
326
327 2013-04-21  Dirk Schulze  <krit@webkit.org>
328
329         [Part 4] Parse the custom() function in -webkit-filter: parse the matN() functions
330         https://bugs.webkit.org/show_bug.cgi?id=71444
331
332         Reviewed by Dean Jackson.
333
334         Custom filter parameters should support mat2 to mat4 value functions. Added parsing
335         and style resolving bits to support the matrix function values. A later patch will
336         add the matrices to the shader program.
337
338         https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
339
340         Modified existing tests to cover changes.
341
342         * GNUmakefile.list.am: Added WebKitCSSMatFunctionValue to individual build systems.
343         * Target.pri:
344         * WebCore.vcproj/WebCore.vcproj:
345         * WebCore.vcxproj/WebCore.vcxproj:
346         * WebCore.vcxproj/WebCore.vcxproj.filters:
347         * WebCore.xcodeproj/project.pbxproj:
348         * css/CSSComputedStyleDeclaration.cpp:
349         (WebCore::valueForCustomFilterMatParameter):
350         (WebCore):
351         (WebCore::valueForCustomFilterParameter):
352         * css/CSSParser.cpp:
353         (WebCore::CSSParser::parseTransform):
354         (WebCore::CSSParser::parseMatValue):
355         (WebCore):
356         (WebCore::CSSParser::parseCustomFilterParameters):
357         * css/CSSParser.h:
358         (WebCore):
359         * css/CSSValue.cpp:
360         (WebCore::CSSValue::reportMemoryUsage):
361         (WebCore::CSSValue::equals):
362         (WebCore::CSSValue::cssText):
363         (WebCore::CSSValue::destroy):
364         (WebCore::CSSValue::cloneForCSSOM):
365         * css/CSSValue.h:
366         (WebCore::CSSValue::isWebKitCSSMatFunctionValue):
367         * css/StyleResolver.cpp:
368         (WebCore::StyleResolver::parseCustomFilterArrayParameter):
369         (WebCore::StyleResolver::parseCustomFilterParameter):
370         * css/StyleResolver.h:
371         (StyleResolver):
372         * css/WebKitCSSMatFunctionValue.cpp:
373         (WebCore::WebKitCSSMatFunctionValue::WebKitCSSMatFunctionValue):
374         (WebCore::WebKitCSSMatFunctionValue::customCssText):
375         (WebCore::WebKitCSSMatFunctionValue::cloneForCSSOM):
376         (WebCore::WebKitCSSMatFunctionValue::equals):
377         (WebCore::WebKitCSSMatFunctionValue::reportDescendantMemoryUsage):
378         * css/WebKitCSSMatFunctionValue.h:
379         (WebKitCSSMatFunctionValue):
380         (WebCore::WebKitCSSMatFunctionValue::create):
381         * platform/graphics/filters/CustomFilterArrayParameter.h:
382         (WebCore::CustomFilterArrayParameter::create):
383         (WebCore::CustomFilterArrayParameter::CustomFilterArrayParameter):
384         * platform/graphics/filters/CustomFilterParameter.h:
385         (CustomFilterParameter):
386         * platform/graphics/filters/CustomFilterRenderer.cpp:
387         (WebCore::CustomFilterRenderer::bindProgramParameters):
388
389 2013-04-12  Balazs Kelemen  <kbalazs@webkit.org>
390
391         [GStreamer] Media attribute preload="none" is not honored
392         https://bugs.webkit.org/show_bug.cgi?id=114357
393
394         Reviewed by Philippe Normand.
395
396         Fix the logic that prevents live streams from being buffered to not make preload="none" ignored.
397
398         Test: http/tests/media/video-preload.html
399         We need a http test because the bug does not triggered with local files.
400
401         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
402         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
403         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
404         (MediaPlayerPrivateGStreamer):
405         Remove m_originalPreloadWasAutoAndWasOverridden because it is not necessary and it is causing this bug.
406         Currently if the tag has preload="none" attribute we set m_preload to Auto in the constructor. After that
407         MedaPlayer calls setPreload(None), so we set m_originalPreloadWasAutoAndWasOverridden to true and later
408         reset m_preload to Auto. The error prone factor here is that the m_preload member is repeated in the
409         private class and setPreload is also used there. This seems to be necessary because we need to be able
410         to ignore preloading if this is a live stream. Fortunately the original parsed value is available in the
411         constructor, so we can use that. This will give the correct value that we should override only in the case
412         of a live stream and that's it, we don't need to reset it later to Auto.
413         Furthermore, we should ignore setting preload to auto from js if it is a live stream. This patch also handles
414         this with an early return in setPreload.
415
416 2013-04-21  Carlos Garcia Campos  <cgarcia@igalia.com>
417
418         Widget should not depend on AXObjectCache
419         https://bugs.webkit.org/show_bug.cgi?id=114514
420
421         Reviewed by Chris Fleizach.
422
423         Move AXObjectCache usage from platform files to FrameView.
424
425         * WebCore.exp.in: Update symbols.
426         * page/FrameView.cpp:
427         (WebCore::FrameView::didAddScrollbar): Handle scrollbar updates in
428         AXObjectCache.
429         (WebCore::FrameView::willRemoveScrollbar): Handle scrollbar
430         updates in AXObjectCache and remove the scrollbar from the cache.
431         * page/FrameView.h:
432         * platform/ScrollView.cpp:
433         (WebCore::ScrollView::setHasHorizontalScrollbar): Use
434         didAddScrollbar/willRemoveScrollbar
435         (WebCore::ScrollView::setHasVerticalScrollbar): Ditto.
436         * platform/ScrollableArea.cpp:
437         (WebCore::ScrollableArea::didAddScrollbar): This is the old
438         didAddVerticalScrollbar and didAddHorizontalScrollbar joined in a
439         single method that receives a ScrollbarOrientation parameter.
440         (WebCore::ScrollableArea::willRemoveScrollbar): This is the old
441         willRemoveVerticalScrollbar and
442         willRemoveHorizontalScrollbarScrollbar joined in a single method
443         that receives a ScrollbarOrientation parameter.
444         * platform/ScrollableArea.h:
445         (ScrollableArea):
446         * platform/Scrollbar.cpp:
447         (WebCore::Scrollbar::~Scrollbar): Remove AXObjectCache usage.
448         * platform/Scrollbar.h:
449         * platform/Widget.h:
450         (Widget): Remove axObjectCache() method.
451         * platform/mac/ScrollAnimatorMac.h:
452         (ScrollAnimatorMac):
453         * rendering/RenderLayer.cpp:
454         (WebCore::RenderLayer::createScrollbar): Use didAddScrollbar.
455         (WebCore::RenderLayer::destroyScrollbar): Use willRemoveScrollbar.
456         * rendering/RenderListBox.cpp:
457         (WebCore::RenderListBox::createScrollbar): Use didAddScrollbar.
458         (WebCore::RenderListBox::destroyScrollbar): Use willRemoveScrollbar.
459
460 2013-04-20  Dirk Schulze  <krit@webkit.org>
461
462         [Part 5] Parse color value for custom() function parameters
463         https://bugs.webkit.org/show_bug.cgi?id=114902
464
465         Reviewed by Dean Jackson.
466
467         Custom filter parameters should support color values. Added parsing
468         and style resolving bits to support color values. A later patch will
469         add the color values to the shader program.
470
471         https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter-parameters
472
473         Modified existing tests to cover changes.
474
475         * GNUmakefile.list.am: Added CustomFilterColorParameter to support color values
476             as custom filter parameters.
477         * Target.pri:
478         * WebCore.vcproj/WebCore.vcproj:
479         * WebCore.vcxproj/WebCore.vcxproj:
480         * WebCore.vcxproj/WebCore.vcxproj.filters:
481         * WebCore.xcodeproj/project.pbxproj:
482         * css/CSSComputedStyleDeclaration.cpp:
483         (WebCore::valueForCustomFilterColorParameter):
484         (WebCore):
485         (WebCore::valueForCustomFilterParameter):
486         * css/CSSParser.cpp:
487         (WebCore::CSSParser::parseCustomFilterParameters):
488         * css/StyleResolver.cpp:
489         (WebCore::StyleResolver::parseCustomFilterColorParameter):
490         (WebCore):
491         (WebCore::StyleResolver::parseCustomFilterParameter):
492         * css/StyleResolver.h:
493         (StyleResolver):
494         * platform/graphics/filters/CustomFilterColorParameter.h: Added.
495         (WebCore):
496         (WebCore::blendFunc):
497         (CustomFilterColorParameter):
498         (WebCore::CustomFilterColorParameter::create):
499         (WebCore::CustomFilterColorParameter::blend):
500         (WebCore::CustomFilterColorParameter::color):
501         (WebCore::CustomFilterColorParameter::setColor):
502         (WebCore::CustomFilterColorParameter::operator==):
503         (WebCore::CustomFilterColorParameter::CustomFilterColorParameter):
504         (WebCore::CustomFilterColorParameter::~CustomFilterColorParameter):
505         * platform/graphics/filters/CustomFilterParameter.h:
506         (CustomFilterParameter):
507         * platform/graphics/filters/CustomFilterRenderer.cpp:
508         (WebCore::CustomFilterRenderer::bindProgramParameters):
509
510 2013-04-20  Glenn Adams  <glenn@skynav.com>
511
512         REGRESSION (r147588): Line breaks occur in the middle of Hebrew words at haaertz.co.il and other websites
513         https://bugs.webkit.org/show_bug.cgi?id=114721
514
515         Reviewed by Dean Jackson.
516
517         Tests: fast/text/line-break-after-empty-inline-hebrew.html
518                fast/text/line-break-after-inline-latin1.html
519
520         If prior context changes content or length after creating line break iterator, then need to
521         create new iterator with new prior context instead of using cached iterator with old prior context.
522
523         * platform/text/TextBreakIterator.h:
524         (WebCore::LazyLineBreakIterator::LazyLineBreakIterator): Initialize members to cache reference to initialized prior context.
525         (WebCore::LazyLineBreakIterator::get): Create new iterator if prior context content reference changes.
526         (WebCore::LazyLineBreakIterator::resetStringAndReleaseIterator): Reset cached prior context references.
527         (LazyLineBreakIterator): Add members to cache reference to initialized prior context.
528
529 2013-04-19  Ryuan Choi  <ryuan.choi@samsung.com>
530
531         [EFL] Arrow of combo box are drawn twice
532         https://bugs.webkit.org/show_bug.cgi?id=113917
533
534         Reviewed by Gyuyoung Kim.
535
536         combo_button_icon part is for arrow so that images of combo_button part should
537         not contain arrow.
538
539         No new tests required due to no behavioral change.
540
541         * platform/efl/DefaultTheme/widget/combo/combo_focus_button.png:
542         * platform/efl/DefaultTheme/widget/combo/combo_hover_button.png:
543         * platform/efl/DefaultTheme/widget/combo/combo_press_button.png:
544
545 2013-04-19  Brendan Long  <b.long@cablelabs.com>
546
547         Add interfaces and stubs for audio and video tracks
548         https://bugs.webkit.org/show_bug.cgi?id=113965
549
550         Reviewed by Jer Noble.
551
552         No new tests because there's no implementations, so there's nothing
553         interesting to test.
554
555         * CMakeLists.txt: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
556         * DerivedSources.cpp: Same.
557         * DerivedSources.make: Same.
558         * DerivedSources.pri: Same.
559         * GNUmakefile.list.am: Same.
560         * Target.pri: Same.
561         * UseJSC.cmake: Same.
562         * WebCore.vcproj/WebCore.vcproj: Same.
563         * WebCore.xcodeproj/project.pbxproj: Same.
564         * bindings/gobject/GNUmakefile.am: Same.
565         * bindings/js/JSAudioTrackCustom.cpp: Added, based on JSTestTrackCustom
566         * bindings/js/JSAudioTrackListCustom.cpp: Same.
567         * bindings/js/JSBindingsAllInOne.cpp: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
568         * bindings/js/JSVideoTrackCustom.cpp: Added, based on JSTestTrackCustom
569         * bindings/js/JSVideoTrackListCustom.cpp: Same.
570         * dom/EventTarget.h: Make AudioTrackList and VideoTrackList event targets.
571         * dom/EventTargetFactory.in: Same.
572         * html/HTMLMediaElement.cpp:
573         (WebCore::HTMLMediaElement::HTMLMediaElement): Add m_audioTracks and m_videoTracks
574         (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear clients for audio and video tracks
575         (WebCore::HTMLMediaElement::audioTrackEnabledChanged): Added.
576         (WebCore::HTMLMediaElement::videoTrackSelectedChanged): Added.
577         (WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
578         (WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack): Same.
579         (WebCore::HTMLMediaElement::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
580         (WebCore::HTMLMediaElement::mediaPlayerDidRemoveVideoTrack): Same.
581         (WebCore::HTMLMediaElement::addAudioTrack): Added, based on addTextTrack
582         (WebCore::HTMLMediaElement::addVideoTrack): Same.
583         (WebCore::HTMLMediaElement::removeAudioTrack): Added, based on removeTextTrack
584         (WebCore::HTMLMediaElement::removeVideoTrack): Added, based on removeTextTrack
585         (WebCore::HTMLMediaElement::removeAllInbandTracks): Remove audio and video tracks too
586         (WebCore::HTMLMediaElement::audioTracks): Added, based on textTracks
587         (WebCore::HTMLMediaElement::videoTracks): Added, based on textTracks
588         (WebCore::HTMLMediaElement::reportMemoryUsage): Add audio and video tracks
589         * html/HTMLMediaElement.h: Add audioTracks and videoTracks and related functions
590         * html/HTMLMediaElement.idl: Add audioTracks and videoTracks
591         * html/track/AudioTrack.cpp: Added, based on TextTrack and InbandTextTrack.
592         * html/track/AudioTrack.h: Same.
593         * html/track/AudioTrack.idl: Added.
594         * html/track/AudioTrackList.cpp: Added, based on TextTrackList
595         * html/track/AudioTrackList.h: Same.
596         * html/track/AudioTrackList.idl: Added.
597         * html/track/TextTrackList.h: Add missing OVERRIDE on interfaceName()
598         * html/track/VideoTrack.cpp: Added, based on TextTrack and InbandTextTrack.
599         * html/track/VideoTrack.h: Same.
600         * html/track/VideoTrack.idl: Added.
601         * html/track/VideoTrackList.cpp: Added, based on TextTrackList
602         * html/track/VideoTrackList.h: Same.
603         * html/track/VideoTrackList.idl: Added.
604         * platform/graphics/AudioTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
605         * platform/graphics/MediaPlayer.cpp:
606         (WebCore::MediaPlayer::addAudioTrack): Added, based on addTextTrack
607         (WebCore::MediaPlayer::removeAudioTrack): Added, based on removeTextTrack
608         (WebCore::MediaPlayer::addVideoTrack): Added, based on addTextTrack
609         (WebCore::MediaPlayer::removeVideoTrack): Added, based on removeTextTrack
610         * platform/graphics/MediaPlayer.h:
611         (WebCore::MediaPlayerClient::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
612         (WebCore::MediaPlayerClient::mediaPlayerDidAddVideoTrack): Same
613         (WebCore::MediaPlayerClient::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
614         (WebCore::MediaPlayerClient::mediaPlayerDidRemoveVideoTrack): Same
615         * platform/graphics/VideoTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
616
617 2013-04-19  Bear Travis  <betravis@adobe.com>
618
619         [CSS Exclusions] Implement empty segments for multiple-segment shape-insides
620         https://bugs.webkit.org/show_bug.cgi?id=100049
621
622         Reviewed by David Hyatt.
623
624         Content should not overflow a shape-inside segment, even if that means no content
625         will be placed in that segment. Overflow may be pushed to outside the shape. This
626         patch removes the restriction that every line must consume at least some text
627         input while inside a shape-inside. Content that does not fit is pushed down until
628         it does, either inside the shape or just below it.
629
630         Test: fast/exclusions/shape-inside/shape-inside-empty-segments.html
631
632         * rendering/RenderBlockLineLayout.cpp:
633         (WebCore::constructBidiRunsForSegment): Do not include empty segments for
634         consideration, as the actual BidiRuns construction expects to consume at
635         least one character.
636         (WebCore::constructBidiRunsForLine): Ditto.
637         (WebCore::firstPositiveWidth): Find the first positive word measurement width,
638         as there may be some empty word break measurements inserted.
639         (WebCore::adjustLogicalLineTop): Move the current line down, if necessary, to
640         fit it within the shape inside.
641         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): If nothing fit in the
642         current segment, find the first available position for the smallest item
643         at the beginning of the text.
644         (WebCore::RenderBlock::LineBreaker::nextLineBreak): Return an empty segment
645         for a line that is inside the shape, but has no segments.
646         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak): Do not consume
647         input to meet minimum size requirements if you are inside a shape.
648
649 2013-04-19  Ryosuke Niwa  <rniwa@webkit.org>
650
651         Add a missing null pointer check after r148759.
652
653         * rendering/RenderObject.cpp:
654         (WebCore::RenderObject::containingBlock):
655
656 2013-04-19  Benjamin Poulain  <benjamin@webkit.org>
657
658         Use Vector instead of StringBuilder for CSSPreloadScanner's buffers
659         https://bugs.webkit.org/show_bug.cgi?id=114794
660
661         Reviewed by Ryosuke Niwa.
662
663         Cleanup for other String changes.
664
665         CSSPreloadScanner only handles UChar, StringBuilder was a little
666         overkill.
667
668         * html/parser/CSSPreloadScanner.cpp:
669         (WebCore):
670         (WebCore::ruleEqualIgnoringCase):
671         (WebCore::CSSPreloadScanner::emitRule):
672         * html/parser/CSSPreloadScanner.h:
673
674 2013-04-19  Benjamin Poulain  <benjamin@webkit.org>
675
676         StyledMarkupAccumulator::appendText() should not allocate an intermediary StringBuilder
677         https://bugs.webkit.org/show_bug.cgi?id=114847
678
679         Reviewed by Geoffrey Garen.
680
681         For some reason StyledMarkupAccumulator::appendText() was allocating a separate buffer
682         for invoking appendStyleNodeOpenTag. This is a bad idea.
683
684         * editing/markup.cpp:
685         (WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
686         (WebCore::StyledMarkupAccumulator::appendText):
687
688 2013-04-19  Joseph Pecoraro  <pecoraro@apple.com>
689
690         Web Inspector: Support the SourceMap header, X-SourceMap was deprecated
691         https://bugs.webkit.org/show_bug.cgi?id=114888
692
693         Check first for SourceMap, then fallback to X-SourceMap. Leaving in
694         support for the deprecated header because most tools and articles
695         online mention that version and have not yet updated.
696
697         Reviewed by Timothy Hatcher.
698
699         * inspector/InspectorDebuggerAgent.cpp:
700         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
701         * inspector/InspectorPageAgent.cpp:
702         (WebCore::InspectorPageAgent::sourceMapURLForResource):
703
704 2013-04-19  Joseph Pecoraro  <pecoraro@apple.com>
705
706         Web Inspector: Backend should detect sourceMappingURLs in CSS Resources
707         https://bugs.webkit.org/show_bug.cgi?id=114854
708
709         Reviewed by Timothy Hatcher.
710
711         Test: http/tests/inspector/network/css-source-mapping-url.html
712
713         * inspector/Inspector.json:
714         - Page.getResourceTree - add sourceMapURL to resource payloads
715         - Network.loadingFinished and Network.requestServedFromMemoryCache,
716           include the sourceMapURL in the results.
717
718         * inspector/ContentSearchUtils.h:
719         * inspector/ContentSearchUtils.cpp:
720         (WebCore::ContentSearchUtils::scriptCommentPattern):
721         (WebCore::ContentSearchUtils::stylesheetCommentPattern):
722         (WebCore::ContentSearchUtils::findMagicComment):
723         (WebCore::ContentSearchUtils::findScriptSourceURL):
724         (WebCore::ContentSearchUtils::findScriptSourceMapURL):
725         (WebCore::ContentSearchUtils::findStylesheetSourceMapURL):
726         Separate Script and Stylesheet regex pattern creation, but
727         share the search function using the pattern.
728
729         * inspector/InspectorDebuggerAgent.cpp:
730         (WebCore::InspectorDebuggerAgent::sourceMapURLForScript):
731         (WebCore::InspectorDebuggerAgent::didParseSource):
732         Update function names. Check for the SourceMap header before
733         checking for a sourceMappingURL comment.
734
735         * inspector/InspectorPageAgent.h:
736         * inspector/InspectorPageAgent.cpp:
737         (WebCore::InspectorPageAgent::sourceMapURLForResource):
738         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
739         Provide the sourceMapURL for Page.getResourceTree.
740
741         * inspector/InspectorResourceAgent.cpp:
742         (WebCore::buildObjectForCachedResource):
743         (WebCore::InspectorResourceAgent::didFinishLoading):
744         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
745         Include sourceMapURLs in finish loading and request served from cache.
746
747 2013-04-19  Shawn Singh  <shawnsingh@chromium.org>
748
749         Remove non-overlap testing code in RenderLayerCompositor
750         https://bugs.webkit.org/show_bug.cgi?id=85521
751
752         Reviewed by Simon Fraser.
753
754         m_compositingConsultsOverlap is always true in the current
755         code. This patch removes this flag, and removes dead code that is
756         never executed because it was never false.
757
758         No new tests, no change in behavior.  The cleanup is covered by
759         existing tests.
760
761         * rendering/RenderLayer.cpp:
762         (WebCore::RenderLayer::updateCompositingLayersAfterScroll):
763         removed if-statement that is always true.
764         
765         * rendering/RenderLayerBacking.cpp:
766         (WebCore::RenderLayerBacking::shouldClipCompositedBounds):
767         removed if-statement that would never get triggered.
768
769         * rendering/RenderLayerCompositor.cpp:
770         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
771         (WebCore::RenderLayerCompositor::updateCompositingLayers):
772         removed m_compositingConsultsOverlap, and retained the code as if the flag were "true".
773         
774         * rendering/RenderLayerCompositor.h:
775         (RenderLayerCompositor):
776
777 2013-04-19  Roger Fong  <roger_fong@apple.com>
778
779         Unreviewed. WebKit_Source is incorrectly set.
780
781         * WebCore.vcxproj/WebCore.make:
782
783 2013-04-18  Ryosuke Niwa  <rniwa@webkit.org>
784
785         Make loops in RenderObject::containingBlock homogeneous in their forms to simplify
786         https://bugs.webkit.org/show_bug.cgi?id=114853
787
788         Reviewed by David Hyatt.
789
790         This patch prepares us to avoid computing containing blocks during a depth-first traversal of the render tree.
791
792         Extracted inline functions out of RenderBlock::containingBlock to make the code simpler. Also moved the code
793         to obtain the nearest containing block out of the loop for a relatively positioned inline.
794
795         * rendering/RenderObject.cpp:
796         (WebCore::isNonReplacedInlineInFlowPosition): Extracted.
797         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject): Extracted.
798         (WebCore::isNonRenderBlockInline): Extracted.
799         (WebCore::RenderObject::containingBlock): Refactored as stated above.
800
801 2013-04-19  Tim Horton  <timothy_horton@apple.com>
802
803         WebKit should not decode or support PDF favicons
804         https://bugs.webkit.org/show_bug.cgi?id=114650
805         <rdar://problem/10133914>
806
807         Reviewed by Dan Bernstein.
808
809         Drop the image data on the floor if it begins with the PDF magic number.
810         No other browser I can find on OS X supports PDF favicons (by experimentation),
811         and we do not properly display them.
812
813         * loader/icon/IconLoader.cpp:
814         (WebCore::IconLoader::notifyFinished):
815
816 2013-04-19  Martin Robinson  <mrobinson@igalia.com>
817
818         Remove the OpenVG backend
819         https://bugs.webkit.org/show_bug.cgi?id=114881
820
821         Reviewed by Tim Horton.
822
823         * platform/graphics/FloatRect.h:
824         (FloatRect): Remove #ifdefs for OpenVG backend.
825         * platform/graphics/GraphicsContext.cpp:
826         (WebCore): Ditto.
827         * platform/graphics/GraphicsContext.h:
828         * platform/graphics/NativeImagePtr.h:
829         (WebCore): Ditto.
830         * platform/graphics/Path.cpp:
831         (WebCore): Ditto.
832         * platform/graphics/Path.h:
833         * platform/graphics/openvg/EGLDisplayOpenVG.cpp: Removed.
834         * platform/graphics/openvg/EGLDisplayOpenVG.h: Removed.
835         * platform/graphics/openvg/EGLUtils.h: Removed.
836         * platform/graphics/openvg/GraphicsContextOpenVG.cpp: Removed.
837         * platform/graphics/openvg/ImageOpenVG.cpp: Removed.
838         * platform/graphics/openvg/PainterOpenVG.cpp: Removed.
839         * platform/graphics/openvg/PainterOpenVG.h: Removed.
840         * platform/graphics/openvg/PathOpenVG.cpp: Removed.
841         * platform/graphics/openvg/PlatformPathOpenVG.h: Removed.
842         * platform/graphics/openvg/SharedResourceOpenVG.cpp: Removed.
843         * platform/graphics/openvg/SharedResourceOpenVG.h: Removed.
844         * platform/graphics/openvg/SurfaceOpenVG.cpp: Removed.
845         * platform/graphics/openvg/SurfaceOpenVG.h: Removed.
846         * platform/graphics/openvg/TiledImageOpenVG.cpp: Removed.
847         * platform/graphics/openvg/TiledImageOpenVG.h: Removed.
848         * platform/graphics/openvg/VGUtils.cpp: Removed.
849         * platform/graphics/openvg/VGUtils.h: Removed.
850         * platform/graphics/transforms/AffineTransform.h:
851         (AffineTransform): Ditto.
852         * platform/graphics/transforms/TransformationMatrix.h:
853         (TransformationMatrix): Ditto.
854         * platform/image-decoders/openvg/ImageDecoderOpenVG.cpp: Removed.
855
856 2013-04-19  Andrei Bucur  <abucur@adobe.com>
857
858         ContainerNode::removeChildren should first detach the children then remove them
859         https://bugs.webkit.org/show_bug.cgi?id=113433
860
861         Reviewed by Ryosuke Niwa.
862
863         Currently, ContainerNode::removeChildren initially removes the nodes from the DOM tree and then
864         calls detach() on each of them. This is anti-intuitive and can lead to subtle bugs because the
865         detached renderers are not backed by a valid DOM tree any more. With the patch, the nodes are first
866         detached and then removed from the DOM.
867         The patch also lets the tree in a consistent state after each node removal by clearing the previous
868         sibling pointer of the node following the one removed.
869         I haven't found any proof the performance will get worse if the detachment happens when the children
870         are still in the DOM tree.
871
872         Tests: No changed visible functionality.
873
874         * dom/ContainerNode.cpp:
875         (WebCore::ContainerNode::removeChildren):
876
877 2013-04-19  Dirk Schulze  <krit@webkit.org>
878
879         Refactor transform code in StyleResolver
880         https://bugs.webkit.org/show_bug.cgi?id=114874
881
882         Reviewed by Andreas Kling.
883
884         Move transform code frome StyleResolver into own files.
885
886         Refactoring, no changes in functionality.
887
888         * CMakeLists.txt:
889         * GNUmakefile.list.am:
890         * Target.pri:
891         * WebCore.vcproj/WebCore.vcproj:
892         * WebCore.vcxproj/WebCore.vcxproj:
893         * WebCore.vcxproj/WebCore.vcxproj.filters:
894         * WebCore.xcodeproj/project.pbxproj:
895         * css/StyleResolver.cpp:
896         (WebCore::StyleResolver::applyProperty):
897         (WebCore::StyleResolver::parseCustomFilterTransformParameter):
898         * css/StyleResolver.h:
899         * css/TransformFunctions.cpp: Added.
900         (WebCore):
901         (WebCore::transformOperationType):
902         (WebCore::convertToFloatLength):
903         (WebCore::transformsForValue):
904         * css/TransformFunctions.h: Added.
905         (WebCore):
906         * css/WebKitCSSMatrix.cpp:
907         (WebCore::WebKitCSSMatrix::setMatrixValue):
908
909 2013-04-19  Erik Arvidsson  <arv@chromium.org>
910
911         Rename TextTrackList owner to element for consistency
912         https://bugs.webkit.org/show_bug.cgi?id=79822
913
914         Reviewed by Eric Carlson.
915
916         No new tests. Covered by existing tests.
917
918         * bindings/js/JSTextTrackListCustom.cpp:
919         (WebCore::JSTextTrackListOwner::isReachableFromOpaqueRoots):
920         (WebCore::JSTextTrackList::visitChildren):
921         * html/HTMLMediaElement.cpp:
922         (WebCore::HTMLMediaElement::~HTMLMediaElement):
923         * html/track/TextTrackList.cpp:
924         (TextTrackList::append):
925         (TextTrackList::remove):
926         * html/track/TextTrackList.h:
927         (WebCore::TextTrackList::create):
928         * html/track/TrackListBase.cpp:
929         (TrackListBase::TrackListBase):
930         (TrackListBase::remove):
931         * html/track/TrackListBase.h:
932         (WebCore::TrackListBase::clearElement):
933         (WebCore::TrackListBase::element):
934         (TrackListBase):
935
936 2013-04-19  Andreas Kling  <akling@apple.com>
937
938         [Mac] ComplexTextController is slow with large numbers of text runs.
939         <http://webkit.org/b/114875>
940         <rdar://problem/13337036>
941
942         Reviewed by Dan Bernstein.
943
944         Instead of iterating over the text runs in indexOfCurrentRun() to figure out the leftmost glyph,
945         create a lookup table of [run# -> distance in glyphs] at ComplexTextController construction time.
946
947         This avoids O(n^2) behavior in indexOfCurrentRun().
948
949         * platform/graphics/mac/ComplexTextController.cpp:
950         (WebCore::ComplexTextController::ComplexTextController):
951         (WebCore::ComplexTextController::indexOfCurrentRun):
952         * platform/graphics/mac/ComplexTextController.h:
953         (ComplexTextController):
954
955 2013-04-19  Mario Sanchez Prada  <mario.prada@samsung.com>
956
957         [GTK] Minimize calls to GailTextUtil in AtkText implementation
958         https://bugs.webkit.org/show_bug.cgi?id=114868
959
960         Reviewed by Martin Robinson.
961
962         Create a new helper function to concentrate inside of it the calls to
963         gail_text_util_get_text(), so we can get rid of it later more easily.
964
965         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
966         (webkitAccessibleTextGetTextForOffset): New helper function.
967         (webkitAccessibleTextGetTextAfterOffset): Rely on the new function.
968         (webkitAccessibleTextGetTextAtOffset): Ditto.
969         (webkitAccessibleTextGetTextBeforeOffset): Ditto.
970
971 2013-04-19  Noam Rosenthal  <noam@webkit.org>
972
973         [Texmap] Implementation for pattern compositing
974         https://bugs.webkit.org/show_bug.cgi?id=109588
975
976         Reviewed by Allan Sandfeld Jensen.
977
978         Enable pattern compositing (background images) for CoordinatedGraphics/TextureMapperGL.
979         Use the existing patternTransform shader uniform, multiplying it by a matrix calculated
980         using the contentsRect, tileSize and tilePhase.
981
982         Covered by existing tests in compositing/patterns.
983
984         * platform/graphics/GraphicsLayer.h:
985         (GraphicsLayer):
986             Conditionally enable pattern compositing for coordinated graphics.
987
988         * platform/graphics/texmap/TextureMapper.cpp:
989         (WebCore::TextureMapper::TextureMapper):
990         * platform/graphics/texmap/TextureMapper.h:
991         (WebCore::TextureMapper::setPatternTransform):
992         (WebCore::TextureMapper::setWrapMode):
993         (WebCore::TextureMapper::wrapMode):
994         (WebCore::TextureMapper::patternTransform):
995             Add wrapMode and patternTransform properties to the TextureMapper state.
996
997         * platform/graphics/texmap/TextureMapperGL.cpp:
998         (WebCore::TextureMapperGL::drawTexturedQuadWithProgram):
999             Paint with GL_REPEAT and a pattern transform when needed.
1000
1001         * platform/graphics/texmap/TextureMapperLayer.cpp:
1002         (WebCore::TextureMapperLayer::computePatternTransformIfNeeded):
1003         (WebCore):
1004         (WebCore::TextureMapperLayer::paintSelf):
1005         (WebCore::TextureMapperLayer::setContentsRect):
1006         (WebCore::TextureMapperLayer::setContentsTileSize):
1007         (WebCore::TextureMapperLayer::setContentsTilePhase):
1008             Apply the patternTransform from the tile size/phase.
1009
1010         * platform/graphics/texmap/TextureMapperLayer.h:
1011         (WebCore::TextureMapperLayer::TextureMapperLayer):
1012         (TextureMapperLayer):
1013         (WebCore::TextureMapperLayer::setShouldMapBackingStoreToContentsRect):
1014         (State):
1015         (WebCore::TextureMapperLayer::State::State):
1016             Allow the client to configure whether a layer uses its bounds or its
1017             contents rect to paint the backing store.
1018             This is needed now since layers with background images, unlike layers
1019             with regular images, may have bounds that are greater than the contents
1020             rect.
1021
1022         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
1023         (WebCore::CoordinatedGraphicsLayer::setContentsTileSize):
1024         (WebCore):
1025         (WebCore::CoordinatedGraphicsLayer::setContentsTilePhase):
1026         (WebCore::CoordinatedGraphicsLayer::setShouldSupportContentsTiling):
1027         (WebCore::GraphicsLayer::supportsContentsTiling):
1028         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
1029         (CoordinatedGraphicsLayer):
1030         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
1031         (WebCore::CoordinatedGraphicsScene::setLayerState):
1032         (WebCore::CoordinatedGraphicsScene::assignImageBackingToLayer):
1033         * platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
1034         (CoordinatedGraphicsLayerState):
1035             Logic to pass the tileSize/tilePhase from CoordinatedGraphicsLayer
1036             to TextureMapperLayer.
1037
1038         * rendering/RenderLayerBacking.cpp:
1039         (WebCore::RenderLayerBacking::updateDirectlyCompositedBackgroundImage):
1040             Don't reset the layer's image contents when this is a directly composited image.
1041
1042 2013-04-19  ChangSeok Oh  <changseok.oh@collabora.com>
1043
1044         [GTK][AC] Manage actor's children by using clutter's own way.
1045         https://bugs.webkit.org/show_bug.cgi?id=114257
1046
1047         Reviewed by Gustavo Noronha Silva.
1048
1049         I believe we don't need to maintain a children list of GList. We can do it
1050         by using clutter APIs like clutter_actor_get_children, clutter_actor_get_first_child, etc.
1051
1052         No new tests since no functionality changed.
1053
1054         * platform/graphics/clutter/GraphicsLayerActor.cpp:
1055         (graphics_layer_actor_init):
1056         (graphicsLayerActorAllocate):
1057         (graphicsLayerActorPaint):
1058         (graphicsLayerActorRemoveAll):
1059         (graphicsLayerActorGetnChildren):
1060         (graphicsLayerActorReplaceSublayer):
1061         (graphicsLayerActorInsertSublayer):
1062         * platform/graphics/clutter/GraphicsLayerActor.h:
1063         (_GraphicsLayerActor):
1064
1065 2013-04-19  ChangSeok Oh  <changseok.oh@collabora.com>
1066
1067         [GTK][AC] Support masksToBounds for clutter AC backend.
1068         https://bugs.webkit.org/show_bug.cgi?id=114113
1069
1070         Reviewed by Gustavo Noronha Silva.
1071
1072         We can support the masksToBounds property by using clutter_actor_set_clip simply.
1073
1074         Covered by existing AC tests.
1075
1076         * platform/graphics/clutter/GraphicsLayerActor.cpp:
1077         (graphicsLayerActorSetMasksToBounds):
1078         * platform/graphics/clutter/GraphicsLayerActor.h:
1079         * platform/graphics/clutter/GraphicsLayerClutter.cpp:
1080         (WebCore::GraphicsLayerClutter::setMasksToBounds):
1081         (WebCore):
1082         (WebCore::GraphicsLayerClutter::commitLayerChangesBeforeSublayers):
1083         (WebCore::GraphicsLayerClutter::setupContentsLayer):
1084         (WebCore::GraphicsLayerClutter::updateMasksToBounds):
1085         * platform/graphics/clutter/GraphicsLayerClutter.h:
1086         (GraphicsLayerClutter):
1087
1088 2013-04-19  Dan Beam  <dbeam@chromium.org>
1089
1090         Remove unmaintained feature REQUEST_AUTOCOMPLETE
1091         https://bugs.webkit.org/show_bug.cgi?id=114846
1092
1093         Reviewed by Kent Tamura.
1094
1095         * GNUmakefile.list.am: Remove AutocompleteErrorEvent.h include.
1096         * bindings/generic/RuntimeEnabledFeatures.cpp:
1097         (WebCore): Remove requestAutocomplete() runtime feature.
1098         * bindings/generic/RuntimeEnabledFeatures.h:
1099         (RuntimeEnabledFeatures): Remove requestAutocomplete() runtime feature.
1100         * dom/AutocompleteErrorEvent.h: Removed.
1101         * dom/AutocompleteErrorEvent.idl: Removed.
1102         * dom/EventNames.h: Remove `autocomplete` and `autocompleteerror` event names.
1103         (WebCore):
1104         * dom/EventNames.in: Remove `autocomplete` and `autocompleteerror` event names.
1105         * html/HTMLAttributeNames.in: Remove `onautocomplete` and `onautocompleteerror` form attributes.
1106         * html/HTMLFormElement.cpp: Remove requestAutocomplete() related code.
1107         (WebCore::HTMLFormElement::HTMLFormElement): Remove timer and event queue for requestAutocomplete() related events.
1108         (WebCore::HTMLFormElement::parseAttribute): Remove parsing of `onautocomplete` and `onautocompleterror`.
1109         * html/HTMLFormElement.h: Remove requestAutocomplete() related members.
1110         (HTMLFormElement):
1111         * html/HTMLFormElement.idl: Remove public requestAutocomplete() API method.
1112         * loader/EmptyClients.cpp: Remove stub implementation.
1113         (WebCore):
1114         * loader/EmptyClients.h: Remove stub interface.
1115         (EmptyFrameLoaderClient):
1116         * loader/FrameLoaderClient.h: Remove didRequestAutocomplete() from interface.
1117         (FrameLoaderClient):
1118         * page/DOMWindow.idl: Remove `AutocompleteErrorEvent` from window DOM interface.
1119
1120 2013-04-18  Timothy Hatcher  <timothy@apple.com>
1121
1122         Add CSS.setStyleText to the Web Inspector protocol.
1123
1124         This provides a direct path for the Safari Web Inspector to live edit whole style rules.
1125
1126         https://webkit.org/b/109340
1127         rdar://problem/13337211
1128
1129         Reviewed by Joseph Pecoraro.
1130
1131         * inspector/Inspector.json:
1132         (CSS.setStyleText): Added.
1133         * inspector/InspectorCSSAgent.cpp:
1134         (InspectorCSSAgent::SetStyleTextAction):
1135         (WebCore::InspectorCSSAgent::SetStyleTextAction::SetStyleTextAction): Added.
1136         (WebCore::InspectorCSSAgent::SetStyleTextAction::perform): Added.
1137         (WebCore::InspectorCSSAgent::SetStyleTextAction::undo): Added.
1138         (WebCore::InspectorCSSAgent::SetStyleTextAction::redo): Added.
1139         (WebCore::InspectorCSSAgent::SetStyleTextAction::mergeId): Added.
1140         (WebCore::InspectorCSSAgent::SetStyleTextAction::merge): Added.
1141         (WebCore::InspectorCSSAgent::SetPropertyTextAction::redo):
1142         (WebCore::InspectorCSSAgent::setStyleText): Added.
1143         * inspector/InspectorCSSAgent.h:
1144         * inspector/InspectorStyleSheet.cpp:
1145         (WebCore::InspectorStyle::getText): Added.
1146         (WebCore::InspectorStyle::setText): Added.
1147         (WebCore::InspectorStyleSheet::setStyleText):
1148         (WebCore::InspectorStyleSheetForInlineStyle::setStyleText):
1149         * inspector/InspectorStyleSheet.h:
1150         (WebCore::InspectorStyle::styleText): Added as an alias to getText.
1151         (WebCore::InspectorStyle::applyStyleText): Added as an alias to setText.
1152
1153 2013-04-18  Jer Noble  <jer.noble@apple.com>
1154
1155         Unreviewed gardening; fix bindings tests after r148700.
1156
1157         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
1158         (WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):
1159
1160 2013-04-18  Andy Estes  <aestes@apple.com>
1161
1162         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
1163         https://bugs.webkit.org/show_bug.cgi?id=114833
1164
1165         Reviewed by David Kilzer.
1166
1167         Added applicationIsVersions() to RuntimeApplicationChecks.
1168
1169         * WebCore.exp.in:
1170         * platform/RuntimeApplicationChecks.cpp:
1171         (WebCore::applicationIsVersions):
1172         (WebCore):
1173         * platform/RuntimeApplicationChecks.h:
1174         (WebCore):
1175
1176 2013-04-18  Sam Weinig  <sam@webkit.org>
1177
1178         Network Process crashing trying to read in IDNScriptWhiteList.txt
1179         https://bugs.webkit.org/show_bug.cgi?id=114827
1180
1181         Reviewed by Anders Carlsson.
1182
1183         Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against
1184         WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway.
1185
1186         * Resources/IDNScriptWhiteList.txt: Copied from Source/WebKit/mac/Resources/IDNScriptWhiteList.txt.
1187         * WebCore.xcodeproj/project.pbxproj:
1188         * platform/mac/WebCoreNSURLExtras.mm:
1189         (WebCore::readIDNScriptWhiteList):
1190
1191 2013-04-18  Simon Fraser  <simon.fraser@apple.com>
1192
1193         Remove GraphicsLayerCA::constrainedSize() now that we can manage large layer memory use ourselves in TileController
1194         https://bugs.webkit.org/show_bug.cgi?id=114834
1195
1196         Reviewed by Tim Horton.
1197
1198         GraphicsLayerCA::constrainedSize() was added to handle poor CATiledLayer behavior when layer sizes
1199         got extremely large. Now that we no longer use CATiledLayer, remove this code. We can later add
1200         tile memory bounding to TileController if that becomes necessary.
1201
1202         * platform/graphics/ca/GraphicsLayerCA.cpp:
1203         (WebCore::GraphicsLayerCA::updateGeometry):
1204         * platform/graphics/ca/GraphicsLayerCA.h:
1205         (GraphicsLayerCA):
1206
1207 2013-04-18  Alberto Garcia  <agarcia@igalia.com>
1208
1209         Remove obsolete macros from libpng
1210         https://bugs.webkit.org/show_bug.cgi?id=114817
1211
1212         Reviewed by Benjamin Poulain.
1213
1214         libpng 1.4 removes the png_voidp_NULL and png_error_ptr_NULL
1215         macros. Null pointers must be used directly instead.
1216
1217         * platform/image-encoders/PNGImageEncoder.cpp:
1218         (WebCore::compressRGBABigEndianToPNG):
1219
1220 2013-04-18  Jer Noble  <jer.noble@apple.com>
1221
1222         CodeGeneratorJS.pm should generate "isFiringEventListeners()" check in isReachableFromOpaqueRoots()
1223         https://bugs.webkit.org/show_bug.cgi?id=114784
1224
1225         Reviewed by Geoffrey Garen.
1226
1227         EventTarget subclasses shouldn't have to use CustomIsReachable directives
1228         in order to keep their wrappers alive while firing event listeners.
1229
1230         * bindings/scripts/CodeGeneratorJS.pm:
1231         (GenerateImplementation):
1232
1233 2013-04-17  Geoffrey Garen  <ggaren@apple.com>
1234
1235         Renamed JSGlobalData to VM
1236         https://bugs.webkit.org/show_bug.cgi?id=114777
1237
1238         Reviewed by Phil Pizlo.
1239
1240         * ForwardingHeaders/runtime/JSGlobalData.h: Removed.
1241         * ForwardingHeaders/runtime/VM.h: Copied from Source/WebCore/ForwardingHeaders/runtime/JSGlobalData.h.
1242         * WebCore.exp.in:
1243         * WebCore.order:
1244         * WebCore.vcxproj/WebCore.vcxproj:
1245         * WebCore.vcxproj/WebCore.vcxproj.filters:
1246         * bindings/js/DOMObjectHashTableMap.cpp:
1247         (WebCore::DOMObjectHashTableMap::mapFor):
1248         * bindings/js/DOMObjectHashTableMap.h:
1249         (JSC):
1250         (DOMObjectHashTableMap):
1251         * bindings/js/DOMWrapperWorld.cpp:
1252         (WebCore::DOMWrapperWorld::DOMWrapperWorld):
1253         (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
1254         (WebCore::normalWorld):
1255         (WebCore::mainThreadNormalWorld):
1256         * bindings/js/DOMWrapperWorld.h:
1257         (WebCore::DOMWrapperWorld::create):
1258         (WebCore::DOMWrapperWorld::vm):
1259         (DOMWrapperWorld):
1260         (WebCore):
1261         * bindings/js/GCController.cpp:
1262         (WebCore::collect):
1263         (WebCore::GCController::garbageCollectSoon):
1264         (WebCore::GCController::garbageCollectNow):
1265         (WebCore::GCController::setJavaScriptGarbageCollectorTimerEnabled):
1266         (WebCore::GCController::discardAllCompiledCode):
1267         * bindings/js/IDBBindingUtilities.cpp:
1268         (WebCore::get):
1269         (WebCore::set):
1270         (WebCore::deserializeIDBValue):
1271         (WebCore::deserializeIDBValueBuffer):
1272         (WebCore::idbKeyToScriptValue):
1273         * bindings/js/JSCallbackData.h:
1274         (WebCore::JSCallbackData::JSCallbackData):
1275         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
1276         (WebCore::JSSQLStatementErrorCallback::handleEvent):
1277         * bindings/js/JSCustomXPathNSResolver.cpp:
1278         (WebCore::JSCustomXPathNSResolver::JSCustomXPathNSResolver):
1279         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
1280         * bindings/js/JSDOMBinding.cpp:
1281         (WebCore::getHashTableForGlobalData):
1282         (WebCore::reportException):
1283         (WebCore::cacheDOMStructure):
1284         * bindings/js/JSDOMBinding.h:
1285         (WebCore::DOMConstructorObject::createStructure):
1286         (WebCore::DOMConstructorWithDocument::finishCreation):
1287         (WebCore::getDOMStructure):
1288         (WebCore::setInlineCachedWrapper):
1289         (WebCore):
1290         (WebCore::jsStringWithCache):
1291         * bindings/js/JSDOMGlobalObject.cpp:
1292         (WebCore::JSDOMGlobalObject::JSDOMGlobalObject):
1293         (WebCore::JSDOMGlobalObject::finishCreation):
1294         * bindings/js/JSDOMGlobalObject.h:
1295         (JSDOMGlobalObject):
1296         (WebCore::JSDOMGlobalObject::createStructure):
1297         (WebCore::getDOMConstructor):
1298         * bindings/js/JSDOMWindowBase.cpp:
1299         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
1300         (WebCore::JSDOMWindowBase::finishCreation):
1301         (WebCore::JSDOMWindowBase::updateDocument):
1302         (WebCore::JSDOMWindowBase::commonVM):
1303         * bindings/js/JSDOMWindowBase.h:
1304         (JSDOMWindowBase):
1305         (WebCore::JSDOMWindowBase::createStructure):
1306         * bindings/js/JSDOMWindowCustom.cpp:
1307         (WebCore::JSDOMWindow::setLocation):
1308         (WebCore::DialogHandler::dialogCreated):
1309         (WebCore::DialogHandler::returnValue):
1310         * bindings/js/JSDOMWindowShell.cpp:
1311         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
1312         (WebCore::JSDOMWindowShell::finishCreation):
1313         (WebCore::JSDOMWindowShell::setWindow):
1314         * bindings/js/JSDOMWindowShell.h:
1315         (JSDOMWindowShell):
1316         (WebCore::JSDOMWindowShell::create):
1317         (WebCore::JSDOMWindowShell::createStructure):
1318         * bindings/js/JSDOMWrapper.h:
1319         (WebCore::JSDOMWrapper::JSDOMWrapper):
1320         * bindings/js/JSDeviceMotionEventCustom.cpp:
1321         (WebCore::createAccelerationObject):
1322         (WebCore::createRotationRateObject):
1323         * bindings/js/JSDictionary.cpp:
1324         (WebCore::JSDictionary::convertValue):
1325         * bindings/js/JSDictionary.h:
1326         (WebCore::JSDictionary::JSDictionary):
1327         * bindings/js/JSErrorHandler.cpp:
1328         (WebCore::JSErrorHandler::handleEvent):
1329         * bindings/js/JSEventListener.cpp:
1330         (WebCore::JSEventListener::handleEvent):
1331         * bindings/js/JSEventListener.h:
1332         (WebCore::JSEventListener::setWrapper):
1333         (WebCore::JSEventListener::jsFunction):
1334         * bindings/js/JSHTMLDocumentCustom.cpp:
1335         (WebCore::JSHTMLDocument::all):
1336         (WebCore::JSHTMLDocument::setAll):
1337         * bindings/js/JSHTMLTemplateElementCustom.cpp:
1338         (WebCore::JSHTMLTemplateElement::content):
1339         * bindings/js/JSHistoryCustom.cpp:
1340         (WebCore::JSHistory::state):
1341         * bindings/js/JSImageConstructor.cpp:
1342         (WebCore::JSImageConstructor::finishCreation):
1343         * bindings/js/JSImageConstructor.h:
1344         (WebCore::JSImageConstructor::createStructure):
1345         * bindings/js/JSImageDataCustom.cpp:
1346         (WebCore::toJS):
1347         * bindings/js/JSInjectedScriptHostCustom.cpp:
1348         (WebCore::InjectedScriptHost::nodeAsScriptValue):
1349         (WebCore::JSInjectedScriptHost::functionDetails):
1350         (WebCore::getJSListenerFunctions):
1351         (WebCore::JSInjectedScriptHost::getEventListeners):
1352         (WebCore::JSInjectedScriptHost::inspect):
1353         * bindings/js/JSLazyEventListener.cpp:
1354         (WebCore::JSLazyEventListener::initializeJSFunction):
1355         * bindings/js/JSMessageEventCustom.cpp:
1356         (WebCore::JSMessageEvent::data):
1357         (WebCore::handleInitMessageEvent):
1358         * bindings/js/JSMutationCallback.cpp:
1359         (WebCore::JSMutationCallback::call):
1360         * bindings/js/JSMutationObserverCustom.cpp:
1361         (WebCore::JSMutationObserverConstructor::constructJSMutationObserver):
1362         * bindings/js/JSNodeFilterCondition.cpp:
1363         (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
1364         * bindings/js/JSNodeFilterCondition.h:
1365         (WebCore::JSNodeFilterCondition::create):
1366         (JSNodeFilterCondition):
1367         * bindings/js/JSNodeFilterCustom.cpp:
1368         (WebCore::toNodeFilter):
1369         * bindings/js/JSPopStateEventCustom.cpp:
1370         (WebCore::cacheState):
1371         * bindings/js/JSRequestAnimationFrameCallbackCustom.cpp:
1372         (WebCore::JSRequestAnimationFrameCallback::handleEvent):
1373         * bindings/js/JSSQLResultSetRowListCustom.cpp:
1374         (WebCore::JSSQLResultSetRowList::item):
1375         * bindings/js/JSWorkerContextBase.cpp:
1376         (WebCore::JSWorkerContextBase::JSWorkerContextBase):
1377         (WebCore::JSWorkerContextBase::finishCreation):
1378         * bindings/js/JSWorkerContextBase.h:
1379         (WebCore::JSWorkerContextBase::createStructure):
1380         (JSWorkerContextBase):
1381         * bindings/js/PageScriptDebugServer.cpp:
1382         (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
1383         * bindings/js/ScheduledAction.cpp:
1384         (WebCore::ScheduledAction::ScheduledAction):
1385         (WebCore::ScheduledAction::executeFunctionInContext):
1386         * bindings/js/ScheduledAction.h:
1387         (WebCore::ScheduledAction::ScheduledAction):
1388         * bindings/js/ScriptCachedFrameData.cpp:
1389         (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
1390         (WebCore::ScriptCachedFrameData::restore):
1391         (WebCore::ScriptCachedFrameData::clear):
1392         * bindings/js/ScriptCallStackFactory.cpp:
1393         (WebCore::createScriptCallStack):
1394         (WebCore::createScriptArguments):
1395         * bindings/js/ScriptController.cpp:
1396         (WebCore::ScriptController::createWindowShell):
1397         (WebCore::ScriptController::evaluateInWorld):
1398         (WebCore::ScriptController::createWorld):
1399         (WebCore::ScriptController::getAllWorlds):
1400         (WebCore::ScriptController::clearWindowShell):
1401         (WebCore::ScriptController::initScript):
1402         (WebCore::ScriptController::updateDocument):
1403         (WebCore::ScriptController::cacheableBindingRootObject):
1404         (WebCore::ScriptController::bindingRootObject):
1405         (WebCore::ScriptController::clearScriptObjects):
1406         (WebCore::ScriptController::shouldBypassMainWorldContentSecurityPolicy):
1407         * bindings/js/ScriptControllerMac.mm:
1408         (WebCore::ScriptController::windowScriptObject):
1409         * bindings/js/ScriptDebugServer.cpp:
1410         (WebCore::ScriptDebugServer::dispatchDidPause):
1411         * bindings/js/ScriptEventListener.cpp:
1412         (WebCore::eventListenerHandlerBody):
1413         (WebCore::eventListenerHandler):
1414         (WebCore::eventListenerHandlerLocation):
1415         * bindings/js/ScriptFunctionCall.cpp:
1416         (WebCore::ScriptFunctionCall::call):
1417         (WebCore::ScriptCallback::call):
1418         * bindings/js/ScriptGCEvent.cpp:
1419         (WebCore::ScriptGCEvent::getHeapSize):
1420         * bindings/js/ScriptObject.cpp:
1421         (WebCore::ScriptObject::ScriptObject):
1422         (WebCore::ScriptGlobalObject::set):
1423         * bindings/js/ScriptState.h:
1424         (WebCore):
1425         * bindings/js/ScriptValue.cpp:
1426         (WebCore::ScriptValue::deserialize):
1427         * bindings/js/ScriptValue.h:
1428         (WebCore::ScriptValue::ScriptValue):
1429         * bindings/js/ScriptWrappable.h:
1430         (JSC):
1431         (ScriptWrappable):
1432         * bindings/js/ScriptWrappableInlines.h:
1433         (WebCore::ScriptWrappable::setWrapper):
1434         * bindings/js/SerializedScriptValue.cpp:
1435         (WebCore::CloneDeserializer::readTerminal):
1436         (WebCore::SerializedScriptValue::deserializeForInspector):
1437         (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed):
1438         * bindings/js/WebCoreJSClientData.h:
1439         (WebCoreJSClientData):
1440         (WebCore::initNormalWorldClientData):
1441         * bindings/js/WorkerScriptController.cpp:
1442         (WebCore::WorkerScriptController::WorkerScriptController):
1443         (WebCore::WorkerScriptController::~WorkerScriptController):
1444         (WebCore::WorkerScriptController::initScript):
1445         (WebCore::WorkerScriptController::evaluate):
1446         (WebCore::WorkerScriptController::scheduleExecutionTermination):
1447         (WebCore::WorkerScriptController::isExecutionTerminating):
1448         (WebCore::WorkerScriptController::disableEval):
1449         * bindings/js/WorkerScriptController.h:
1450         (JSC):
1451         (WebCore::WorkerScriptController::vm):
1452         (WorkerScriptController):
1453         * bindings/js/WorkerScriptDebugServer.cpp:
1454         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
1455         * bindings/objc/WebScriptObject.mm:
1456         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
1457         * bindings/scripts/CodeGeneratorJS.pm:
1458         (GenerateHeader):
1459         (GenerateImplementation):
1460         (GenerateCallbackImplementation):
1461         (JSValueToNative):
1462         (GenerateConstructorDeclaration):
1463         (GenerateConstructorHelperMethods):
1464         * bindings/scripts/test/JS/JSFloat64Array.cpp:
1465         (WebCore::getJSFloat64ArrayConstructorTable):
1466         (WebCore::JSFloat64ArrayConstructor::finishCreation):
1467         (WebCore::getJSFloat64ArrayPrototypeTable):
1468         (WebCore::getJSFloat64ArrayTable):
1469         (WebCore::JSFloat64Array::finishCreation):
1470         (WebCore::JSFloat64Array::createPrototype):
1471         * bindings/scripts/test/JS/JSFloat64Array.h:
1472         (WebCore::JSFloat64Array::create):
1473         (WebCore::JSFloat64Array::createStructure):
1474         (JSFloat64Array):
1475         (WebCore::JSFloat64ArrayPrototype::create):
1476         (WebCore::JSFloat64ArrayPrototype::createStructure):
1477         (WebCore::JSFloat64ArrayPrototype::JSFloat64ArrayPrototype):
1478         (WebCore::JSFloat64ArrayConstructor::createStructure):
1479         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
1480         (WebCore::JSTestActiveDOMObjectConstructor::finishCreation):
1481         (WebCore::JSTestActiveDOMObject::finishCreation):
1482         (WebCore::JSTestActiveDOMObject::createPrototype):
1483         * bindings/scripts/test/JS/JSTestActiveDOMObject.h:
1484         (WebCore::JSTestActiveDOMObject::create):
1485         (WebCore::JSTestActiveDOMObject::createStructure):
1486         (JSTestActiveDOMObject):
1487         (WebCore::JSTestActiveDOMObjectPrototype::create):
1488         (WebCore::JSTestActiveDOMObjectPrototype::createStructure):
1489         (WebCore::JSTestActiveDOMObjectPrototype::JSTestActiveDOMObjectPrototype):
1490         (WebCore::JSTestActiveDOMObjectConstructor::createStructure):
1491         * bindings/scripts/test/JS/JSTestCallback.cpp:
1492         (WebCore::JSTestCallback::callbackWithNoParam):
1493         (WebCore::JSTestCallback::callbackWithClass1Param):
1494         (WebCore::JSTestCallback::callbackWithClass2Param):
1495         (WebCore::JSTestCallback::callbackWithStringList):
1496         (WebCore::JSTestCallback::callbackWithBoolean):
1497         (WebCore::JSTestCallback::callbackRequiresThisToPass):
1498         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
1499         (WebCore::JSTestCustomNamedGetterConstructor::finishCreation):
1500         (WebCore::JSTestCustomNamedGetter::finishCreation):
1501         (WebCore::JSTestCustomNamedGetter::createPrototype):
1502         * bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
1503         (WebCore::JSTestCustomNamedGetter::create):
1504         (WebCore::JSTestCustomNamedGetter::createStructure):
1505         (JSTestCustomNamedGetter):
1506         (WebCore::JSTestCustomNamedGetterPrototype::create):
1507         (WebCore::JSTestCustomNamedGetterPrototype::createStructure):
1508         (WebCore::JSTestCustomNamedGetterPrototype::JSTestCustomNamedGetterPrototype):
1509         (WebCore::JSTestCustomNamedGetterConstructor::createStructure):
1510         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1511         (WebCore::JSTestEventConstructorConstructor::finishCreation):
1512         (WebCore::JSTestEventConstructor::finishCreation):
1513         (WebCore::JSTestEventConstructor::createPrototype):
1514         * bindings/scripts/test/JS/JSTestEventConstructor.h:
1515         (WebCore::JSTestEventConstructor::create):
1516         (WebCore::JSTestEventConstructor::createStructure):
1517         (JSTestEventConstructor):
1518         (WebCore::JSTestEventConstructorPrototype::create):
1519         (WebCore::JSTestEventConstructorPrototype::createStructure):
1520         (WebCore::JSTestEventConstructorPrototype::JSTestEventConstructorPrototype):
1521         (WebCore::JSTestEventConstructorConstructor::createStructure):
1522         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
1523         (WebCore::JSTestEventTargetConstructor::finishCreation):
1524         (WebCore::JSTestEventTarget::finishCreation):
1525         (WebCore::JSTestEventTarget::createPrototype):
1526         * bindings/scripts/test/JS/JSTestEventTarget.h:
1527         (WebCore::JSTestEventTarget::create):
1528         (WebCore::JSTestEventTarget::createStructure):
1529         (JSTestEventTarget):
1530         (WebCore::JSTestEventTargetPrototype::create):
1531         (WebCore::JSTestEventTargetPrototype::createStructure):
1532         (WebCore::JSTestEventTargetPrototype::JSTestEventTargetPrototype):
1533         (WebCore::JSTestEventTargetConstructor::createStructure):
1534         * bindings/scripts/test/JS/JSTestException.cpp:
1535         (WebCore::JSTestExceptionConstructor::finishCreation):
1536         (WebCore::JSTestException::finishCreation):
1537         (WebCore::JSTestException::createPrototype):
1538         * bindings/scripts/test/JS/JSTestException.h:
1539         (WebCore::JSTestException::create):
1540         (WebCore::JSTestException::createStructure):
1541         (JSTestException):
1542         (WebCore::JSTestExceptionPrototype::create):
1543         (WebCore::JSTestExceptionPrototype::createStructure):
1544         (WebCore::JSTestExceptionPrototype::JSTestExceptionPrototype):
1545         (WebCore::JSTestExceptionConstructor::createStructure):
1546         * bindings/scripts/test/JS/JSTestInterface.cpp:
1547         (WebCore::JSTestInterfaceConstructor::finishCreation):
1548         (WebCore::JSTestInterface::finishCreation):
1549         (WebCore::JSTestInterface::createPrototype):
1550         * bindings/scripts/test/JS/JSTestInterface.h:
1551         (WebCore::JSTestInterface::create):
1552         (WebCore::JSTestInterface::createStructure):
1553         (JSTestInterface):
1554         (WebCore::JSTestInterfacePrototype::create):
1555         (WebCore::JSTestInterfacePrototype::createStructure):
1556         (WebCore::JSTestInterfacePrototype::JSTestInterfacePrototype):
1557         (WebCore::JSTestInterfaceConstructor::createStructure):
1558         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1559         (WebCore::JSTestMediaQueryListListenerConstructor::finishCreation):
1560         (WebCore::JSTestMediaQueryListListener::finishCreation):
1561         (WebCore::JSTestMediaQueryListListener::createPrototype):
1562         (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
1563         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
1564         (WebCore::JSTestMediaQueryListListener::create):
1565         (WebCore::JSTestMediaQueryListListener::createStructure):
1566         (JSTestMediaQueryListListener):
1567         (WebCore::JSTestMediaQueryListListenerPrototype::create):
1568         (WebCore::JSTestMediaQueryListListenerPrototype::createStructure):
1569         (WebCore::JSTestMediaQueryListListenerPrototype::JSTestMediaQueryListListenerPrototype):
1570         (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
1571         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1572         (WebCore::JSTestNamedConstructorConstructor::finishCreation):
1573         (WebCore::JSTestNamedConstructorNamedConstructor::finishCreation):
1574         (WebCore::JSTestNamedConstructor::finishCreation):
1575         (WebCore::JSTestNamedConstructor::createPrototype):
1576         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
1577         (WebCore::JSTestNamedConstructor::create):
1578         (WebCore::JSTestNamedConstructor::createStructure):
1579         (JSTestNamedConstructor):
1580         (WebCore::JSTestNamedConstructorPrototype::create):
1581         (WebCore::JSTestNamedConstructorPrototype::createStructure):
1582         (WebCore::JSTestNamedConstructorPrototype::JSTestNamedConstructorPrototype):
1583         (WebCore::JSTestNamedConstructorConstructor::createStructure):
1584         (WebCore::JSTestNamedConstructorNamedConstructor::createStructure):
1585         * bindings/scripts/test/JS/JSTestNode.cpp:
1586         (WebCore::JSTestNodeConstructor::finishCreation):
1587         (WebCore::JSTestNode::finishCreation):
1588         (WebCore::JSTestNode::createPrototype):
1589         * bindings/scripts/test/JS/JSTestNode.h:
1590         (WebCore::JSTestNode::create):
1591         (WebCore::JSTestNode::createStructure):
1592         (JSTestNode):
1593         (WebCore::JSTestNodePrototype::create):
1594         (WebCore::JSTestNodePrototype::createStructure):
1595         (WebCore::JSTestNodePrototype::JSTestNodePrototype):
1596         (WebCore::JSTestNodeConstructor::createStructure):
1597         * bindings/scripts/test/JS/JSTestObj.cpp:
1598         (WebCore::JSTestObjConstructor::finishCreation):
1599         (WebCore::JSTestObj::finishCreation):
1600         (WebCore::JSTestObj::createPrototype):
1601         (WebCore::jsTestObjCachedAttribute1):
1602         (WebCore::jsTestObjCachedAttribute2):
1603         (WebCore::setJSTestObjConditionalAttr4Constructor):
1604         (WebCore::setJSTestObjConditionalAttr5Constructor):
1605         (WebCore::setJSTestObjConditionalAttr6Constructor):
1606         (WebCore::setJSTestObjAnyAttribute):
1607         (WebCore::setJSTestObjReplaceableAttribute):
1608         * bindings/scripts/test/JS/JSTestObj.h:
1609         (WebCore::JSTestObj::create):
1610         (WebCore::JSTestObj::createStructure):
1611         (JSTestObj):
1612         (WebCore::JSTestObjPrototype::create):
1613         (WebCore::JSTestObjPrototype::createStructure):
1614         (WebCore::JSTestObjPrototype::JSTestObjPrototype):
1615         (WebCore::JSTestObjConstructor::createStructure):
1616         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
1617         (WebCore::JSTestOverloadedConstructorsConstructor::finishCreation):
1618         (WebCore::JSTestOverloadedConstructors::finishCreation):
1619         (WebCore::JSTestOverloadedConstructors::createPrototype):
1620         * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
1621         (WebCore::JSTestOverloadedConstructors::create):
1622         (WebCore::JSTestOverloadedConstructors::createStructure):
1623         (JSTestOverloadedConstructors):
1624         (WebCore::JSTestOverloadedConstructorsPrototype::create):
1625         (WebCore::JSTestOverloadedConstructorsPrototype::createStructure):
1626         (WebCore::JSTestOverloadedConstructorsPrototype::JSTestOverloadedConstructorsPrototype):
1627         (WebCore::JSTestOverloadedConstructorsConstructor::createStructure):
1628         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1629         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::finishCreation):
1630         (WebCore::JSTestSerializedScriptValueInterface::finishCreation):
1631         (WebCore::JSTestSerializedScriptValueInterface::createPrototype):
1632         (WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
1633         (WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
1634         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
1635         (WebCore::JSTestSerializedScriptValueInterface::create):
1636         (WebCore::JSTestSerializedScriptValueInterface::createStructure):
1637         (JSTestSerializedScriptValueInterface):
1638         (WebCore::JSTestSerializedScriptValueInterfacePrototype::create):
1639         (WebCore::JSTestSerializedScriptValueInterfacePrototype::createStructure):
1640         (WebCore::JSTestSerializedScriptValueInterfacePrototype::JSTestSerializedScriptValueInterfacePrototype):
1641         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::createStructure):
1642         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
1643         (WebCore::JSTestTypedefsConstructor::finishCreation):
1644         (WebCore::JSTestTypedefs::finishCreation):
1645         (WebCore::JSTestTypedefs::createPrototype):
1646         * bindings/scripts/test/JS/JSTestTypedefs.h:
1647         (WebCore::JSTestTypedefs::create):
1648         (WebCore::JSTestTypedefs::createStructure):
1649         (JSTestTypedefs):
1650         (WebCore::JSTestTypedefsPrototype::create):
1651         (WebCore::JSTestTypedefsPrototype::createStructure):
1652         (WebCore::JSTestTypedefsPrototype::JSTestTypedefsPrototype):
1653         (WebCore::JSTestTypedefsConstructor::createStructure):
1654         * bridge/c/CRuntimeObject.h:
1655         (JSC::Bindings::CRuntimeObject::createStructure):
1656         * bridge/c/c_instance.cpp:
1657         (JSC::Bindings::CRuntimeMethod::create):
1658         (JSC::Bindings::CRuntimeMethod::createStructure):
1659         (JSC::Bindings::CRuntimeMethod::finishCreation):
1660         * bridge/jsc/BridgeJSC.cpp:
1661         (JSC::Bindings::Instance::createRuntimeObject):
1662         * bridge/objc/ObjCRuntimeObject.h:
1663         (JSC::Bindings::ObjCRuntimeObject::createStructure):
1664         * bridge/objc/objc_instance.mm:
1665         (ObjCRuntimeMethod::create):
1666         (ObjCRuntimeMethod::createStructure):
1667         (ObjCRuntimeMethod::finishCreation):
1668         * bridge/objc/objc_runtime.h:
1669         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
1670         * bridge/objc/objc_runtime.mm:
1671         (JSC::Bindings::ObjcFallbackObjectImp::ObjcFallbackObjectImp):
1672         (JSC::Bindings::ObjcFallbackObjectImp::finishCreation):
1673         * bridge/qt/qt_instance.cpp:
1674         (JSC::Bindings::QtRuntimeObject::createStructure):
1675         (JSC::Bindings::QtInstance::~QtInstance):
1676         (JSC::Bindings::QtInstance::getQtInstance):
1677         * bridge/runtime_array.cpp:
1678         (JSC::RuntimeArray::RuntimeArray):
1679         (JSC::RuntimeArray::finishCreation):
1680         * bridge/runtime_array.h:
1681         (JSC::RuntimeArray::create):
1682         (JSC::RuntimeArray::createStructure):
1683         (RuntimeArray):
1684         * bridge/runtime_method.cpp:
1685         (JSC::RuntimeMethod::finishCreation):
1686         * bridge/runtime_method.h:
1687         (JSC::RuntimeMethod::create):
1688         (JSC::RuntimeMethod::createStructure):
1689         (RuntimeMethod):
1690         * bridge/runtime_object.cpp:
1691         (JSC::Bindings::RuntimeObject::RuntimeObject):
1692         (JSC::Bindings::RuntimeObject::finishCreation):
1693         * bridge/runtime_object.h:
1694         (JSC::Bindings::RuntimeObject::createStructure):
1695         * bridge/runtime_root.cpp:
1696         (JSC::Bindings::RootObject::RootObject):
1697         (JSC::Bindings::RootObject::gcProtect):
1698         (JSC::Bindings::RootObject::gcUnprotect):
1699         (JSC::Bindings::RootObject::updateGlobalObject):
1700         (JSC::Bindings::RootObject::addRuntimeObject):
1701         * bridge/runtime_root.h:
1702         (RootObject):
1703         * dom/Node.cpp:
1704         * dom/Node.h:
1705         (JSC):
1706         * dom/ScriptExecutionContext.cpp:
1707         (WebCore::ScriptExecutionContext::vm):
1708         * dom/ScriptExecutionContext.h:
1709         (JSC):
1710         (ScriptExecutionContext):
1711         * html/HTMLCanvasElement.cpp:
1712         (WebCore::HTMLCanvasElement::createImageBuffer):
1713         * html/HTMLImageLoader.cpp:
1714         (WebCore::HTMLImageLoader::notifyFinished):
1715         * inspector/ScriptArguments.cpp:
1716         (WebCore::ScriptArguments::ScriptArguments):
1717         * loader/icon/IconDatabaseBase.cpp:
1718         (WebCore):
1719         (WebCore::iconDatabase):
1720         (WebCore::setGlobalIconDatabase):
1721         * platform/qt/MemoryUsageSupportQt.cpp:
1722         (WebCore::memoryUsageKB):
1723         (WebCore::actualMemoryUsageKB):
1724         * platform/win/ClipboardUtilitiesWin.cpp:
1725         (WebCore::createGlobalData):
1726         * plugins/PluginView.cpp:
1727         (WebCore::PluginView::start):
1728         (WebCore::PluginView::stop):
1729         (WebCore::PluginView::performRequest):
1730         (WebCore::PluginView::npObject):
1731         (WebCore::PluginView::privateBrowsingStateChanged):
1732         * plugins/blackberry/PluginViewBlackBerry.cpp:
1733         (WebCore::PluginView::dispatchNPEvent):
1734         (WebCore::PluginView::setNPWindowIfNeeded):
1735         (WebCore::PluginView::platformStart):
1736         (WebCore::PluginView::getWindowInfo):
1737         * plugins/efl/PluginViewEfl.cpp:
1738         (WebCore::PluginView::dispatchNPEvent):
1739         * plugins/gtk/PluginViewGtk.cpp:
1740         (WebCore::PluginView::dispatchNPEvent):
1741         (WebCore::PluginView::handleKeyboardEvent):
1742         (WebCore::PluginView::handleMouseEvent):
1743         (WebCore::PluginView::setNPWindowIfNeeded):
1744         (WebCore::PluginView::platformStart):
1745         * plugins/mac/PluginViewMac.mm:
1746         (WebCore::PluginView::platformStart):
1747         * plugins/qt/PluginViewQt.cpp:
1748         (WebCore::PluginView::dispatchNPEvent):
1749         (WebCore::PluginView::setNPWindowIfNeeded):
1750         * plugins/win/PluginViewWin.cpp:
1751         (WebCore::PluginView::dispatchNPEvent):
1752         (WebCore::PluginView::handleKeyboardEvent):
1753         (WebCore::PluginView::handleMouseEvent):
1754         (WebCore::PluginView::setNPWindowRect):
1755         * testing/js/WebCoreTestSupport.cpp:
1756         (WebCoreTestSupport::injectInternalsObject):
1757         * xml/XMLHttpRequest.cpp:
1758         (WebCore::XMLHttpRequest::dropProtection):
1759
1760 2013-04-18  Oliver Hunt  <oliver@apple.com>
1761
1762         Fix windows build by moving template definition to JSDOMBinding.h
1763
1764         * bindings/js/JSDOMBinding.h:
1765         (WebCore):
1766         * bindings/scripts/CodeGeneratorJS.pm:
1767         (GenerateImplementation):
1768         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
1769         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
1770         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
1771         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
1772         * bindings/scripts/test/JS/JSTestException.cpp:
1773         * bindings/scripts/test/JS/JSTestInterface.cpp:
1774         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
1775         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
1776         * bindings/scripts/test/JS/JSTestObj.cpp:
1777         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
1778         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
1779         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
1780
1781 2013-04-18  Eric Carlson  <eric.carlson@apple.com>
1782
1783         Forced subtitles never rendered
1784         https://bugs.webkit.org/show_bug.cgi?id=114818
1785
1786         Reviewed by Jer Noble.
1787
1788         No new tests, media/track/track-forced-subtitles-in-band.html was updated to test this change.
1789
1790         * html/track/TextTrack.cpp:
1791         (WebCore::TextTrack::isRendered): "forced" tracks are rendered.
1792
1793 2013-04-17  Anders Carlsson  <andersca@apple.com>
1794
1795         Change storage factory functions to take a PageGroup and Page respectively
1796         https://bugs.webkit.org/show_bug.cgi?id=114776
1797
1798         Reviewed by Beth Dakin.
1799
1800         Change StorageNamespace::localStorageNamespace to take a PageGroup since WebKit2 needs
1801         to know which local storage namespace belongs to which page group. Also remove the quota parameter from
1802         the sessionStorageNamespace function since that's trivial to get from the Page.
1803
1804         * WebCore.exp.in:
1805         * page/Page.cpp:
1806         (WebCore::Page::sessionStorage):
1807         * page/PageGroup.cpp:
1808         (WebCore::PageGroup::localStorage):
1809         * storage/StorageNamespace.cpp:
1810         (WebCore::StorageNamespace::localStorageNamespace):
1811         (WebCore::StorageNamespace::sessionStorageNamespace):
1812         * storage/StorageNamespace.h:
1813         * storage/StorageNamespaceImpl.cpp:
1814         (WebCore::StorageNamespaceImpl::localStorageNamespace):
1815         (WebCore::StorageNamespaceImpl::sessionStorageNamespace):
1816         * storage/StorageNamespaceImpl.h:
1817         * storage/StorageStrategy.cpp:
1818         (WebCore::StorageStrategy::localStorageNamespace):
1819         (WebCore::StorageStrategy::sessionStorageNamespace):
1820         * storage/StorageStrategy.h:
1821
1822 2013-04-18  Martin Robinson  <mrobinson@igalia.com>
1823
1824         [GTK] fast/canvas/DrawImageSinglePixelStretch.html fails
1825         https://bugs.webkit.org/show_bug.cgi?id=58309
1826
1827         Reviewed by Alejandro G. Castro.
1828
1829         No new tests. This patch unskips a test.
1830
1831         Prevent sampling outside source boundaries, by creating subsurfaces from source surfaces.
1832         This also requires careful handling of negative and floating source rectangles.
1833
1834         * platform/graphics/cairo/PlatformContextCairo.cpp:
1835         (WebCore::PlatformContextCairo::drawSurfaceToContext): Use a subsurface to prevent sampling
1836         outside rectangle boundaries.
1837
1838 2013-04-18  Jonathan Feldstein  <jfeldstein@blackberry.com>
1839
1840         [BlackBerry] Improper initialization of ANGLEResources (resubmission)
1841         https://bugs.webkit.org/show_bug.cgi?id=114814
1842
1843         Reviewed by Yong Li, Rob Buis
1844         Internally reviewed by Maxim Mogilnitsky
1845
1846         MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle
1847         are initialized through the ShBuiltInResources function so these fields do not need to be
1848         set again in GraphicsContext3DBlackBerry.cpp. In addition, the extension flags should not
1849         be set to true without getExtension being called (Khronos WebGL specs, section 5.14.14.).
1850         In fact, as a direct result of these extensions being enabled prior to calling
1851         getExtension, a WebGL conformance suite test for GL_OES_standard_derivatives was failing.
1852
1853         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
1854         (WebCore::GraphicsContext3D::GraphicsContext3D):
1855
1856 2013-04-18  Xuefei Ren  <xren@blackberry.com>
1857
1858         remove build warning(unused parameter)
1859         https://bugs.webkit.org/show_bug.cgi?id=114670
1860
1861         Reviewed by Rob Buis.
1862
1863         remove warning(unused parameter) in
1864         Source/WebCore/html/shadow/MediaControlsBlackBerry.cpp
1865         Source/WebCore/loader/blackberry/CookieJarBlackBerry.cpp
1866         Source/WebCore/platform/blackberry/AuthenticationChallengeManager.cpp
1867         Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
1868         Source/WebCore/platform/network/blackberry/ResourceResponseBlackBerry.cpp
1869         Source/WebCore/platform/network/blackberry/SocketStreamHandleBlackBerry.cpp
1870         Source/WebCore/plugins/blackberry/PluginViewBlackBerry.cpp
1871
1872
1873         * html/shadow/MediaControlsBlackBerry.cpp:
1874         (WebCore::MediaControlFullscreenFullscreenButtonElement::setIsFullscreen):
1875         * loader/blackberry/CookieJarBlackBerry.cpp:
1876         (WebCore::getRawCookies):
1877         (WebCore::deleteCookie):
1878         * platform/blackberry/AuthenticationChallengeManager.cpp:
1879         (WebCore::AuthenticationChallengeManager::notifyChallengeResult):
1880         * platform/blackberry/RenderThemeBlackBerry.cpp:
1881         (WebCore::RenderTheme::themeForPage):
1882         * platform/network/blackberry/ResourceResponseBlackBerry.cpp:
1883         (WebCore::ResourceResponse::doPlatformAdopt):
1884         * platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:
1885         (WebCore::SocketStreamHandle::notifyStatusReceived):
1886         * plugins/blackberry/PluginViewBlackBerry.cpp:
1887         (WebCore::PluginView::invalidateRegion):
1888
1889 2013-04-18  Xuefei Ren  <xren@blackberry.com>
1890
1891
1892         remove build warning(unused parameter)
1893         https://bugs.webkit.org/show_bug.cgi?id=114670
1894
1895         Reviewed by Rob Buis.
1896
1897         remove builde warning (unused parameter) in
1898         Source/WebCore/platform/blackberry/CursorBlackBerry.cpp
1899
1900         * platform/blackberry/CursorBlackBerry.cpp:
1901         (WebCore::Cursor::Cursor):
1902
1903 2013-04-18  Andreas Kling  <akling@apple.com>
1904
1905         EditingStyle: Avoid some unnecessary CSSStyleDeclaration wrappers.
1906         <http://webkit.org/b/114763>
1907
1908         Reviewed by Antti Koivisto.
1909
1910         removeEquivalentProperties(CSSStyleDeclaration) and removeEquivalentProperties(StylePropertySet)
1911         only have different behavior if the CSSStyleDeclaration is computed style (they differ in handling
1912         of the 'font-size' property.)
1913
1914         Avoid creating a CSSStyleDeclaration for StylePropertySets where we can just pass them in directly.
1915
1916         * editing/EditingStyle.cpp:
1917         (WebCore::EditingStyle::removeStyleAddedByNode):
1918         (WebCore::EditingStyle::removeStyleConflictingWithStyleOfNode):
1919
1920 2013-04-18  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1921
1922         Unset :hover in inner documents
1923         https://bugs.webkit.org/show_bug.cgi?id=114446
1924
1925         Reviewed by Antonio Gomes.
1926
1927         Fixes a regression from r145126 where hover nodes in inner documents was sometimes
1928         not unset. Additionally it uses the new api from r145126 to avoid an unnecessary
1929         hit test in touch-event handling.
1930
1931         Test: fast/events/touch/frame-hover-update.html
1932
1933         * dom/Document.cpp:
1934         (WebCore::Document::updateHoverActiveState):
1935         * page/EventHandler.cpp:
1936         (WebCore::shouldGesturesTriggerActive):
1937         (WebCore::EventHandler::handleTouchEvent):
1938
1939 2013-04-18  Seokju Kwon  <seokju.kwon@gmail.com>
1940
1941         Web Inspector: Toolbar icons are displayed incorrectly
1942         https://bugs.webkit.org/show_bug.cgi?id=114792
1943
1944         Reviewed by Timothy Hatcher.
1945
1946         Inspector uses small toolbar icons when docking the inspector.
1947         So icons should have different x position.
1948
1949         No tests because no behavior change is expected.
1950
1951         * inspector/front-end/inspector.css: Add missing 'background-position-x' values.
1952         (body.dock-to-bottom .toolbar-item.profiles .toolbar-icon):
1953         (body.dock-to-bottom .toolbar-item.cpu-profiler .toolbar-icon):
1954         (body.dock-to-bottom .toolbar-item.css-profiler .toolbar-icon):
1955         (body.dock-to-bottom .toolbar-item.heap-profiler .toolbar-icon):
1956         (body.dock-to-bottom .toolbar-item.canvas-profiler .toolbar-icon):
1957         (body.dock-to-bottom .toolbar-item.memory-chart-profiler .toolbar-icon):
1958         (body.dock-to-bottom .toolbar-item.memory-snapshot-profiler .toolbar-icon):
1959
1960 2013-04-17  Jaehun Lim  <ljaehun.lim@samsung.com>
1961
1962         [css3-text] Rendering -webkit-hanging value for text-indent from css3-text
1963         https://bugs.webkit.org/show_bug.cgi?id=114663
1964
1965         Reviewed by Beth Dakin.
1966
1967         This patch is the rendering part to support hanging value for text-indent.
1968         "hanging" means "Inverts which lines are affected."
1969         It's prefixed and guarded by CSS3_TEXT flag.
1970
1971         Spec: http://dev.w3.org/csswg/css-text/#text-indent
1972
1973         Test: fast/css3-text/css3-text-indent/text-indent-each-line-hanging.html
1974
1975         * rendering/RenderBlockLineLayout.cpp:
1976         (WebCore::requiresIndent): Inverted the return value when "-webkit-hanging" is applied.
1977
1978 2013-04-17  James Craig  <james@cookiecrook.com>
1979
1980         AX: aria-level does not override implicit level on h1, h2, etc
1981         https://bugs.webkit.org/show_bug.cgi?id=114692
1982
1983         Reviewed by Chris Fleizach.
1984
1985         aria-level now works on headings without an explicit role="heading" defined. Updated existing test coverage.
1986
1987         * accessibility/AccessibilityNodeObject.cpp:
1988         (WebCore::AccessibilityNodeObject::headingLevel):
1989
1990 2013-04-17  Chris Fleizach  <cfleizach@apple.com>
1991
1992         AX: VoiceOver says everything that isn't a link is a "clickable" in Safari reader?
1993         https://bugs.webkit.org/show_bug.cgi?id=114687
1994
1995         Reviewed by Tim Horton.
1996
1997         VoiceOver is saying all text is clickable, because AXPress is exposed as an action on static text.
1998         That is happening, because there's a click handler on the body element in this case.
1999
2000         I think the best plan to keep existing functionality, but fix this case is not to expose
2001         the press action for static text when the handler is on the body element.
2002
2003         Test: platform/mac/accessibility/press-action-not-exposed-when-body-is-click-handler.html
2004
2005         * accessibility/AccessibilityNodeObject.cpp:
2006         (WebCore::AccessibilityNodeObject::mouseButtonListener):
2007            Change from checking getAttributeEventListener to hasEventListeners. The former only
2008            checks if "onclick" is installed on the element and does not work with addEventListener!
2009
2010         * accessibility/AccessibilityObject.cpp:
2011         (WebCore::AccessibilityObject::isAccessibilityObjectSearchMatchAtIndex):
2012         * accessibility/AccessibilityObject.h:
2013         (WebCore::AccessibilityObject::isStaticText):
2014
2015 2013-04-17  Simon Fraser  <simon.fraser@apple.com>
2016
2017         Fix GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush() to do predictive visible rect expansion
2018         https://bugs.webkit.org/show_bug.cgi?id=114775
2019
2020         Reviewed by Tim Horton.
2021
2022         GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush() is intended to answer the question
2023         "if your visible rect is changed to X, would any tiles be created or destroyed?".
2024         
2025         However, for compositing layer tiled layers, we do some predictive visible rect expansion based on how
2026         the visible rect is changing when we actually commit visible rect changes. recursiveVisibleRectChangeRequiresFlush()
2027         was not doing that, causing it to give confusing answers, so fix it to do so.
2028         
2029         Both now call adjustTiledLayerVisibleRect(), and it's cleaner to make this a static function.
2030         
2031         A somewhat unrelated change is to take the layer bounds origin into account
2032         in GraphicsLayerCA::computeVisibleRect(). Desktop WebKit never sets this, but it's used
2033         on other platforms for composited scrolling, so needs to be taken into account
2034         when computing visible rects.
2035
2036         * platform/graphics/ca/GraphicsLayerCA.cpp:
2037         (WebCore::GraphicsLayerCA::recursiveVisibleRectChangeRequiresFlush):
2038         (WebCore::GraphicsLayerCA::computeVisibleRect):
2039         (WebCore::GraphicsLayerCA::adjustTiledLayerVisibleRect):
2040         (WebCore::GraphicsLayerCA::updateVisibleRect):
2041         * platform/graphics/ca/GraphicsLayerCA.h:
2042         (GraphicsLayerCA):
2043
2044 2013-04-17  Oliver Hunt  <oliver@apple.com>
2045
2046         Automate generation of toJS function for classes that need to report extra memory usage
2047         https://bugs.webkit.org/show_bug.cgi?id=114768
2048
2049         Reviewed by Geoff Garen.
2050
2051         Only really used by AudioBuffer for now.  The other classes that need it can be
2052         trivially refactored at a later date.
2053
2054         * Modules/webaudio/AudioBuffer.idl:
2055         * bindings/js/JSAudioBufferCustom.cpp:
2056         * bindings/js/JSDOMBinding.h:
2057         (WebCore):
2058         (HasMemoryCost):
2059         (NoType):
2060         (BaseMixin):
2061         * bindings/scripts/CodeGeneratorJS.pm:
2062         (GenerateImplementation):
2063
2064 2013-04-17  Dirk Schulze  <krit@webkit.org>
2065
2066         BasicShapeFunctions should use RenderStyle instead of StyleResolver
2067         https://bugs.webkit.org/show_bug.cgi?id=114743
2068
2069         Reviewed by Antti Koivisto.
2070
2071         BasicShapeFunctions does include RenderStyle instead of StyleResolver now.
2072         This is a simple refactoring patch, no new tests.
2073
2074         * css/BasicShapeFunctions.cpp:
2075         (WebCore::convertToLength): Use style and rootElementStyle directly.
2076         (WebCore::basicShapeForValue): Ditto.
2077         * css/BasicShapeFunctions.h:
2078         (WebCore):
2079         * css/DeprecatedStyleBuilder.cpp:
2080         (WebCore::ApplyPropertyClipPath::applyValue):
2081         (WebCore::ApplyPropertyExclusionShape::applyValue):
2082
2083 2013-04-17  Beth Dakin  <bdakin@apple.com>
2084
2085         Content inside frames and scrollbars in overflow areas hit-tests incorrectly when 
2086         the WKView has a header
2087         https://bugs.webkit.org/show_bug.cgi?id=114769
2088
2089         Reviewed by Simon Fraser.
2090
2091         convertToRenderer() and convertFromRenderer() need to factor in the headerHeight, 
2092         much like all of the conversion functions on ScrollView. 
2093         * page/FrameView.cpp:
2094         (WebCore::FrameView::convertFromRenderer):
2095         (WebCore::FrameView::convertToRenderer):
2096
2097         The scrollPosition equivalent of the existing scrollOffsetRelativeToDocument() 
2098         function. 
2099         * platform/ScrollView.cpp:
2100         (WebCore::ScrollView::scrollPositionRelativeToDocument):
2101         * platform/ScrollView.h:
2102         (ScrollView):
2103
2104 2013-04-17  Andreas Kling  <akling@apple.com>
2105
2106         Remove FragmentScriptingPermission.h include from Element.h.
2107         <http://webkit.org/b/114757>
2108
2109         Rubber-stamped by Anders Carlsson.
2110
2111         * dom/Element.h:
2112
2113 2013-04-17  Mark Lam  <mark.lam@apple.com>
2114
2115         Add LLINT and baseline JIT support for timing out scripts.
2116         https://bugs.webkit.org/show_bug.cgi?id=114577.
2117
2118         Reviewed by Geoffrey Garen.
2119
2120         Replaced use of the obsolete JSGlobalData.terminator methods with the
2121         JSGlobalData.watchdog equivalents.
2122
2123         * bindings/js/JSEventListener.cpp:
2124         (WebCore::JSEventListener::handleEvent):
2125         * bindings/js/SerializedScriptValue.cpp:
2126         (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed):
2127         * bindings/js/WorkerScriptController.cpp:
2128         (WebCore::WorkerScriptController::evaluate):
2129         (WebCore::WorkerScriptController::scheduleExecutionTermination):
2130         (WebCore::WorkerScriptController::isExecutionTerminating):
2131
2132 2013-04-16  Jer Noble <jer.noble@apple.com>
2133
2134         Crash in WebCore::HTMLMediaElement::~HTMLMediaElement.
2135         https://bugs.webkit.org/show_bug.cgi?id=113531
2136
2137         Reviewed by Eric Carlson.
2138
2139         No new tests, though this is intermittently reproducible with
2140         http/tests/misc/delete-frame-during-readystatechange.html under ASAN.
2141
2142         * html/HTMLMediaElement.cpp:
2143         (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear the media player manually
2144             before the destructor exits. Clearing the media player may cancel a resource load,
2145             which can trigger a readystatechange event. It's possible for the HTMLMediaElement
2146             to attempt to fire an abort event within the readystatechange event, even though it is
2147             now in an inconsistent state. Clearling the media player before finishing the destructor
2148             ensures that the HTMLMediaElement will at least still be alive if this case is triggered.
2149             Set m_completelyLoaded to true to ensure that if userCancelledLoad() is called, it doesn't
2150             attempt to fire events while destructing.
2151
2152 2013-04-17  Sergio Correia  <sergio.correia@openbossa.org>
2153
2154         Web Inspector: make generate-inspector-protocol-version work with python3 
2155         https://bugs.webkit.org/show_bug.cgi?id=114717
2156
2157         Revision r146765 added print() calls that made the script complain about 
2158         invalid syntax when using python3.
2159
2160         This commit replaces such calls with calls to sys.stdout.write(), analogous
2161         to the sys.stderr.write() ones already used throughout the file.
2162
2163         Reviewed by Timothy Hatcher.
2164
2165         No new tests. No user visible behavior changed.
2166
2167         * inspector/generate-inspector-protocol-version:
2168         (main):
2169
2170 2013-04-17  Seokju Kwon  <seokju.kwon@gmail.com>
2171
2172         Web Inspector: Fix Localized string warngs
2173         https://bugs.webkit.org/show_bug.cgi?id=114718
2174
2175         Reviewed by Timothy Hatcher.
2176
2177         No tests because no behavior change is expected.
2178
2179         * English.lproj/localizedStrings.js:
2180
2181 2013-04-17  Csaba Osztrogon√°c  <ossy@webkit.org>
2182
2183         [Qt] Unreviewed Windows buildfix.
2184
2185         * platform/qt/DragDataQt.cpp: Add a missing include.
2186
2187 2013-04-17  ChangSeok Oh  <shivamidow@gmail.com>
2188
2189         Breaking Float: floated block level element following inline element in floated container breaks to next line
2190         https://bugs.webkit.org/show_bug.cgi?id=45274
2191
2192         Reviewed by David Hyatt.
2193
2194         Fix position issue of floating element in floating element.
2195         Inner floating element has placed at next line when outer floating element has text,
2196         even though previous line has spaces enough to fit it.
2197         To solve this, the width of a space added temporarily for prohibiting duplication more than 2 empty spaces
2198         is subtracted when floating element is checked whether it fits on a line.
2199
2200         Tests: css2.1/20110323/floats-001.html
2201                css2.1/20110323/floats-102.html
2202                fast/inline-block/float-both-whitespace.html
2203                fast/inline-block/float-leading-whitespace.html
2204                fast/inline-block/float-no-whitespace.html
2205                fast/inline-block/float-trailing-whitespace.html
2206                fast/inline-block/multiple-floats-with-whitespace.html
2207
2208         * rendering/RenderBlockLineLayout.cpp:
2209         (WebCore::LineWidth::LineWidth):
2210         (WebCore::LineWidth::fitsOnLine):
2211         (WebCore::LineWidth::trailingWhitespaceWidth):
2212         (WebCore::LineWidth::setTrailingWhitespaceWidth):
2213         (LineWidth):
2214         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
2215
2216 2013-04-17  Leo Yang  <leoyang@rim.com>
2217
2218         Lots of unused parameter warnings in filesystem code
2219         https://bugs.webkit.org/show_bug.cgi?id=114747
2220
2221         Reviewed by Carlos Garcia Campos.
2222
2223         Comment out or remove unused parameter identifiers.
2224
2225         No functionalities changed, no new tests.
2226
2227         * Modules/filesystem/DOMFileSystem.cpp: Comment out |snapshot| because
2228         it is referred in the comments inside the function.
2229         (WebCore):
2230         * Modules/filesystem/DOMFileSystemSync.cpp: Ditto.
2231         (WebCore):
2232         * Modules/filesystem/FileWriter.cpp: Remove unused |ec|.
2233         (WebCore::FileWriter::abort):
2234         * Modules/filesystem/FileWriterSync.cpp:
2235         (WebCore::FileWriterSync::didWrite): Remove unused |bytes|.
2236         * platform/AsyncFileSystemCallbacks.h:
2237         (WebCore::AsyncFileSystemCallbacks::didOpenFileSystem): Comment out unused parameters
2238         because the function is inlined.
2239         (WebCore::AsyncFileSystemCallbacks::didCreateSnapshotFile): Ditto.
2240         (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntry): Ditto.
2241         (WebCore::AsyncFileSystemCallbacks::didReadDirectoryEntries): Ditto.
2242         (WebCore::AsyncFileSystemCallbacks::didCreateFileWriter): Ditto.
2243         * platform/blackberry/WorkerAsyncFileSystemBlackBerry.cpp:
2244         (WebCore::WorkerAsyncFileSystemBlackBerry::createWriterOnMainThread): Remove unused |client|.
2245
2246 2013-04-17  Brent Fulgham  <bfulgham@webkit.org>
2247
2248         [Windows, WinCairo] Stop individually building WTF files in WebCore
2249         https://bugs.webkit.org/show_bug.cgi?id=114705
2250
2251         Reviewed by Anders Carlsson.
2252
2253         * WebCore.vcproj/WebCore.vcproj: Remove references to WTF objects.
2254         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
2255         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto
2256
2257 2013-04-17  Dirk Schulze  <krit@webkit.org>
2258
2259         Make lengthConversion methods and arguments const
2260         https://bugs.webkit.org/show_bug.cgi?id=114749
2261
2262         Reviewed by Andreas Kling.
2263
2264         Refactoring, no new tests.
2265
2266         * css/CSSCalculationValue.cpp:
2267         (WebCore::CSSCalcValue::computeLengthPx):
2268         (WebCore::CSSCalcPrimitiveValue::toCalcValue):
2269         (WebCore::CSSCalcPrimitiveValue::computeLengthPx):
2270         (WebCore::CSSCalcBinaryOperation::toCalcValue):
2271         (WebCore::CSSCalcBinaryOperation::computeLengthPx):
2272         * css/CSSCalculationValue.h:
2273         (WebCore::CSSCalcValue::toCalcValue):
2274         (CSSCalcValue):
2275         * css/CSSPrimitiveValue.cpp:
2276         (WebCore::CSSPrimitiveValue::computeLength):
2277         (WebCore::CSSPrimitiveValue::computeLengthDouble):
2278         (WebCore::CSSPrimitiveValue::viewportPercentageLength):
2279         * css/CSSPrimitiveValue.h:
2280         (CSSPrimitiveValue):
2281         * css/CSSPrimitiveValueMappings.h:
2282         (WebCore::CSSPrimitiveValue::convertToLength):
2283         * css/StyleResolver.cpp:
2284         (WebCore::StyleResolver::convertToIntLength):
2285         (WebCore::StyleResolver::convertToFloatLength):
2286         * css/StyleResolver.h:
2287         (StyleResolver):
2288
2289 2013-04-17  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
2290
2291         [refactor] Moved ScriptedAnimationController common code to inline function
2292         https://bugs.webkit.org/show_bug.cgi?id=114681
2293
2294         Reviewed by Daniel Bates.
2295
2296         Avoided duplicated code by moving ScriptedAnimationController clearance
2297         code to a common function used by both Document::dispose() and
2298         Document::detach().
2299
2300         No new tests, no behavior changes.
2301
2302         * dom/Document.cpp:
2303         (WebCore::Document::dispose):
2304         (WebCore::Document::detach):
2305         (WebCore::Document::clearScriptedAnimationController): Added.
2306         * dom/Document.h:
2307         (Document):
2308
2309 2013-04-17  Chris Fleizach  <cfleizach@apple.com>
2310
2311         AX: When img@alt is undefined, WebKit should use @title as accessibility label if available
2312         https://bugs.webkit.org/show_bug.cgi?id=114535
2313
2314         Reviewed by Tim Horton.
2315
2316         Don't hide images from Accessibility that have the title attribute on them.
2317
2318         Test: accessibility/empty-image-with-title.html
2319
2320         * accessibility/AccessibilityRenderObject.cpp:
2321         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2322
2323 2013-04-17  Arpita Bahuguna  <a.bah@samsung.com>
2324
2325         getAttribute does not behave correctly for mixed-case attributes on HTML elements
2326         https://bugs.webkit.org/show_bug.cgi?id=105713
2327
2328         Reviewed by Andreas Kling.
2329
2330         getAttribute() and getAttributeNode() APIs do not convert the
2331         passed attribute name to lowercase before comparing against the
2332         existing attributes.
2333         The specification however states that the passed name should
2334         be converted to ASCII lowercase before checking for the existence
2335         of the given attribute. [www.w3.org/TR/domcore/#dom-element-getattribute]
2336
2337         Test: fast/dom/Element/getAttribute-case-insensitivity.html
2338
2339         * dom/Element.h:
2340         (WebCore::ElementData::getAttributeItemIndex):
2341         getAttributeItemIndex() accepts a bool param 'shouldIgnoreAttributeCase'
2342         which specifies whether or not the attribute's case should be ignored
2343         before comparison but we don't really convert the passed name to lowercase
2344         before carrying out the comparison.
2345
2346         Thus, when called from APIs such as getAttribute() and getAttributeNode()
2347         which do not explicitally convert the attribute name to lowercase
2348         before calling on this method, it fails to carry out a case-insensitive
2349         search.
2350
2351         Have thus made changes to convert the passed attribute's name to
2352         lowercase if 'shouldIgnoreAttributeCase' is true.
2353
2354 2013-04-17  John Griggs  <jgriggs@blackberry.com>
2355
2356         [BlackBerry] Add support for filesystem: URLs to BlackBerry Media Player.
2357         https://bugs.webkit.org/show_bug.cgi?id=114686
2358         https://przilla.ott.qnx.com/bugzilla/show_bug.cgi?id=314865
2359
2360         Reviewed by Rob Buis.
2361
2362         Translate filesystem: URLs to file:// URLs for use by the media player, but only after the filesystem: URL has been checked for security, etc.
2363
2364         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
2365         (WebCore::MediaPlayerPrivate::load):
2366         (WebCore::MediaPlayerPrivate::onError):
2367         (WebCore::MediaPlayerPrivate::onDurationChanged):
2368         (WebCore::MediaPlayerPrivate::notifyChallengeResult):
2369
2370 2013-04-17  Brendan Long  <b.long@cablelabs.com>
2371
2372         [GStreamer] Eclipse warnings in MediaPlayerPrivateGStreamer
2373         https://bugs.webkit.org/show_bug.cgi?id=114654
2374
2375         Reviewed by Philippe Normand.
2376
2377         No new tests (nothing added).
2378
2379         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2380         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
2381         Initialize m_volumeAndMuteInitialized
2382         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
2383         (WebCore::MediaPlayerPrivateGStreamerBase::MediaPlayerPrivateGStreamerBase):
2384         Initialize signal handlers to 0.
2385
2386 2013-04-17  Andrei Bucur  <abucur@adobe.com>
2387
2388         [CSS Regions] Remove m_flowThread from NodeRenderingContext
2389         https://bugs.webkit.org/show_bug.cgi?id=114732
2390
2391         Reviewed by Antti Koivisto.
2392
2393         Cleanup NodeRenderingContext. Remove unused member m_flowThread.
2394
2395         Tests: None needed.
2396
2397         * dom/NodeRenderingContext.cpp:
2398         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
2399         * dom/NodeRenderingContext.h: Removed m_flowThread.
2400
2401 2013-04-17  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2402
2403         [Qt] MediaPlayerPrivateQt.cpp doesn't build in debug
2404
2405         Unreviewed build fix.
2406
2407         We need to include Logging.h to get the LOG definitions.
2408
2409         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
2410
2411 2013-04-17  Claudio Saavedra  <csaavedra@igalia.com>
2412
2413         execCommand("RemoveFormat") might remove format after the selection
2414         https://bugs.webkit.org/show_bug.cgi?id=112240
2415
2416         Reviewed by Ryosuke Niwa.
2417
2418         Tests: editing/execCommand/remove-format-multiple-elements-mac.html
2419
2420         This bug is hit when ApplyStyleCommand is used to change the
2421         style and the current selection ends in the beginning of a new node.
2422         The bug is actually a two-fold thing:
2423
2424         1. There was no check as to whether the end node is really
2425         selected or not, and format was always removed from it with
2426         pushDownInlineStyleAroundNode(). An equivalent check for the start
2427         node was already in place, so fix it analogously.
2428
2429         2. Previous stage might change the dom tree, resulting in a render
2430         tree that is not up-to-date. Position::upstream() is later used
2431         and, in order to be able to find a visually equivalent position in
2432         a text node, this method needs the render tree to be up-to-date,
2433         therefore, a call to updateLayoutIgnorePendingStylesheets() is
2434         necessary.
2435
2436         * editing/ApplyStyleCommand.cpp:
2437         (WebCore::ApplyStyleCommand::removeInlineStyle): Make sure that no
2438         format is removed from the end node if it's not fully selected.
2439         (WebCore::ApplyStyleCommand::nodeFullySelected): Call updateLayoutIgnorePendingStylesheets()
2440
2441 2013-04-17  Alberto Garcia  <agarcia@igalia.com>
2442
2443         [BlackBerry] GraphicsContext3D: don't initialize m_extensions in the constructor
2444         https://bugs.webkit.org/show_bug.cgi?id=114726
2445
2446         Reviewed by Carlos Garcia Campos.
2447
2448         m_extensions is now initialized on demand by
2449         GraphicsContext3D::getExtensions().
2450
2451         Doing it in the constructor produces a crash, because
2452         Extensions3DOpenGLES() calls glGetString before the WebGL context
2453         is current.
2454
2455         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
2456         (WebCore::GraphicsContext3D::GraphicsContext3D):
2457
2458 2013-04-16  Maciej Stachowiak  <mjs@apple.com>
2459
2460         Replace JSC-specific IDL extended attributes with generic (JSC+V8) ones, now that the distinction no longer matters
2461         https://bugs.webkit.org/show_bug.cgi?id=114712
2462
2463         Reviewed by Dan Bernstein.
2464
2465         No behavior change expected.
2466
2467         * bindings/scripts/IDLAttributes.txt: Remove the JSFoo attributes
2468         that have bare Foo equivalents.
2469         * bindings/scripts/CodeGeneratorJS.pm: Remove support for JSFoo
2470         aliases.
2471         (GetGenerateIsReachable):
2472         (GetCustomIsReachable):
2473         (ShouldGenerateToJSDeclaration):
2474         (ShouldGenerateToJSImplementation):
2475         (HasCustomConstructor):
2476         (HasCustomGetter):
2477         (HasCustomSetter):
2478         (HasCustomMethod):
2479
2480         Replace JSFoo attributes with equivalen Foo attributs in all files
2481         below:
2482         
2483         * Modules/geolocation/Geolocation.idl:
2484         * Modules/indexeddb/IDBDatabase.idl:
2485         * Modules/indexeddb/IDBObjectStore.idl:
2486         * Modules/webaudio/DOMWindowWebAudio.idl:
2487         * Modules/websockets/DOMWindowWebSocket.idl:
2488         * Modules/websockets/WorkerContextWebSocket.idl:
2489         * css/CSSRule.idl:
2490         * css/CSSRuleList.idl:
2491         * css/CSSStyleDeclaration.idl:
2492         * css/CSSValue.idl:
2493         * css/MediaList.idl:
2494         * css/StyleMedia.idl:
2495         * css/StyleSheet.idl:
2496         * dom/MessagePort.idl:
2497         * dom/MutationObserver.idl:
2498         * dom/Node.idl:
2499         * fileapi/Blob.idl:
2500         * html/HTMLDocument.idl:
2501         * html/HTMLTemplateElement.idl:
2502         * html/canvas/ArrayBuffer.idl:
2503         * html/canvas/CanvasRenderingContext.idl:
2504         * html/canvas/DataView.idl:
2505         * html/canvas/EXTDrawBuffers.idl:
2506         * html/canvas/EXTTextureFilterAnisotropic.idl:
2507         * html/canvas/OESElementIndexUint.idl:
2508         * html/canvas/OESStandardDerivatives.idl:
2509         * html/canvas/OESTextureFloat.idl:
2510         * html/canvas/OESTextureHalfFloat.idl:
2511         * html/canvas/OESVertexArrayObject.idl:
2512         * html/canvas/WebGLCompressedTextureATC.idl:
2513         * html/canvas/WebGLCompressedTexturePVRTC.idl:
2514         * html/canvas/WebGLCompressedTextureS3TC.idl:
2515         * html/canvas/WebGLDebugRendererInfo.idl:
2516         * html/canvas/WebGLDebugShaders.idl:
2517         * html/canvas/WebGLDepthTexture.idl:
2518         * html/canvas/WebGLLoseContext.idl:
2519         * html/track/TextTrack.idl:
2520         * html/track/TextTrackCue.idl:
2521         * html/track/TextTrackList.idl:
2522         * loader/appcache/DOMApplicationCache.idl:
2523         * page/BarInfo.idl:
2524         * page/Console.idl:
2525         * page/DOMSelection.idl:
2526         * page/DOMWindow.idl:
2527         * page/History.idl:
2528         * page/Location.idl:
2529         * page/MemoryInfo.idl:
2530         * page/Navigator.idl:
2531         * page/Screen.idl:
2532         * page/WorkerNavigator.idl:
2533         * plugins/DOMMimeTypeArray.idl:
2534         * plugins/DOMPluginArray.idl:
2535         * storage/Storage.idl:
2536         * workers/AbstractWorker.idl:
2537         * workers/SharedWorker.idl:
2538         * workers/Worker.idl:
2539         * workers/WorkerContext.idl:
2540         * workers/WorkerLocation.idl:
2541         * xml/XMLHttpRequestUpload.idl:
2542
2543 2013-04-16  Beth Dakin  <bdakin@apple.com>
2544
2545         Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones()
2546         https://bugs.webkit.org/show_bug.cgi?id=114713
2547
2548         Reviewed by Simon Fraser.
2549
2550         * page/FrameView.cpp:
2551         (WebCore::FrameView::performPostLayoutTasks):
2552         * page/Page.cpp:
2553         (WebCore::Page::Page):
2554         (WebCore::Page::addLayoutMilestones):
2555         (WebCore::Page::removeLayoutMilestones):
2556         (WebCore::Page::isCountingRelevantRepaintedObjects):
2557         * page/Page.h:
2558         (WebCore::Page::requestedLayoutMilestones):
2559         (Page):
2560         * rendering/RenderLayerCompositor.cpp:
2561         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
2562
2563 2013-04-16  Patrick Gansterer  <paroga@webkit.org>
2564
2565         [CMake] Fix dependecy calculation for generated inspector files
2566         https://bugs.webkit.org/show_bug.cgi?id=114092
2567
2568         Reviewed by Brent Fulgham.
2569
2570         At least in a generated Visual Studio solution the files generated via
2571         CodeGeneratorInspector.py are considered outdated all the time because
2572         the code generator only touches the file when the content changed.
2573         Add an --write_always parameter to the script to touch the file always.
2574
2575         * CMakeLists.txt:
2576         * inspector/CodeGeneratorInspector.py:
2577
2578 2013-04-16  Anders Carlsson  <andersca@apple.com>
2579
2580         Clone storage namespaces for window.open
2581         https://bugs.webkit.org/show_bug.cgi?id=114703
2582
2583         Reviewed by Sam Weinig.
2584
2585         Pass the new page to StorageNamespace::copy.
2586
2587         * page/Chrome.cpp:
2588         (WebCore::Chrome::createWindow):
2589         * storage/StorageNamespace.h:
2590         (StorageNamespace):
2591         * storage/StorageNamespaceImpl.cpp:
2592         (WebCore::StorageNamespaceImpl::copy):
2593         * storage/StorageNamespaceImpl.h:
2594         (WebCore):
2595         (StorageNamespaceImpl):
2596
2597 2013-04-16  Sam Weinig  <sam@webkit.org>
2598
2599         Fix fallout after r148545.
2600
2601         * platform/text/TextChecking.h:
2602         Move Platform defines that were incorrectly in WebCore, into Platform.h
2603
2604 2013-04-16  Hans Muller  <hmuller@adobe.com>
2605
2606         [CSS Exclusions] polygon shape-inside layout fails
2607         https://bugs.webkit.org/show_bug.cgi?id=114402
2608
2609         Reviewed by Dirk Schulze.
2610
2611         The firstIncludedIntervalLogicalTop() method's implementation relied on optimistic
2612         assumptions about floating point accuracy which, in rare cases, caused it to discard
2613         first-fit locations based on the intersection of the minLogicalIntervalTop offset edge
2614         and a polygon offset edge. Now: we do not verify that first-fit locations based on the
2615         intersection of an offset edge and the minLogicalIntervalTop offset edge are below
2616         the horizontal minLogicalIntervalTop line. They're essentially below the line "by definition".
2617
2618         Test: fast/exclusions/shape-inside/shape-inside-polygon-layout.html
2619
2620         * rendering/ExclusionPolygon.cpp:
2621         (WebCore::ExclusionPolygon::firstIncludedIntervalLogicalTop): Avoid floating point problems
2622             when checking intersections with the offset edge based on minLogicalIntervalTop.
2623         * rendering/ExclusionPolygon.h:
2624         (WebCore::OffsetPolygonEdge::OffsetPolygonEdge): Initialize the basis field.
2625         (WebCore::OffsetPolygonEdge::basis): Report what the offset edge is "based on": a polygon
2626             edge, the top of the line, or a (reflex) vertex.
2627         (OffsetPolygonEdge): Added the Basis enum to enable tracking what the geometry of
2628             an offset edge is based on.
2629
2630 2013-04-16  Jer Noble  <jer.noble@apple.com>
2631
2632         Further unreviewed build fix: protect JSAudioBufferCustom with a ENABLE(WEB_AUDIO) check.
2633
2634         * bindings/js/JSAudioBufferCustom.cpp:
2635
2636 2013-04-16  Jer Noble  <jer.noble@apple.com>
2637
2638         Unreviewed build fix; add new JSAudioBuffer.cpp file to more build systems.
2639
2640         * GNUmakefile.list.am:
2641         * Target.pri:
2642         * UseJSC.cmake:
2643
2644 2013-04-16  Jer Noble  <jer.noble@apple.com>
2645
2646         Repeated use of decodeAudioData() causes leak
2647         https://bugs.webkit.org/show_bug.cgi?id=114709
2648
2649         Reviewed by Geoffrey Garen.
2650
2651         Report the correct size of the AudioBuffer to the garbage collector so that creating
2652         these large buffers will trigger garbage collection.
2653
2654         * Modules/webaudio/AudioBuffer.cpp:
2655         (WebCore::AudioBuffer::memoryCost): Added; simple sum of the buffer sizes in m_channels;
2656         * Modules/webaudio/AudioBuffer.h:
2657         * Modules/webaudio/AudioBuffer.idl: Add the CustomToJSObject flag.
2658         * WebCore.xcodeproj/project.pbxproj:
2659         * bindings/js/JSAudioBufferCustom.cpp: Added.
2660         (WebCore::toJS): Added; report the extra size of an AudioBuffer when the wrapper
2661             is created.
2662
2663 2013-04-16  Beth Dakin  <bdakin@apple.com>
2664
2665         Need a new layout milestone to notify bundle clients when the header has been 
2666         flushed
2667         https://bugs.webkit.org/show_bug.cgi?id=114706
2668         -and corresponding-
2669         <rdar://problem/13657284>
2670
2671         Reviewed by Simon Fraser.
2672
2673         New LayoutMilestone is DidFirstFlushForHeaderLayer.
2674         * page/LayoutMilestones.h:
2675         
2676         New API to allow removing a LayoutMilestone.
2677         * WebCore.exp.in:
2678         * page/Page.cpp:
2679         (WebCore::Page::removeLayoutMilestones):
2680         * page/Page.h:
2681         (Page):
2682
2683         New boolean member variable m_headerLayerAwaitingFirstFlush keeps track of whether 
2684         we need to send the DidFirstFlushForHeaderLayer milestone.
2685         * rendering/RenderLayerCompositor.h:
2686         (RenderLayerCompositor):
2687         * rendering/RenderLayerCompositor.cpp:
2688         (WebCore::RenderLayerCompositor::RenderLayerCompositor):
2689
2690         Send the milestone if appropriate.
2691         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
2692
2693          Set m_headerLayerAwaitingFirstFlush to true for a newly created layer.
2694         (WebCore::RenderLayerCompositor::updateLayerForHeader):
2695
2696 2013-04-16  Tim Horton  <timothy_horton@apple.com>
2697
2698         PlugIn Snapshotting: Crashes refreshing non-main-frame PDFPlugins
2699         https://bugs.webkit.org/show_bug.cgi?id=114702
2700         <rdar://problem/13542020>
2701
2702         Reviewed by Dean Jackson.
2703
2704         If:
2705
2706             a) a plugin fails all the tests in willCreatePlugIn, so it is WaitingForSnapshot there
2707             b) primary plugin detection attempts to restart a plugin between the
2708                time that willCreatePlugIn and didCreatePlugIn fire
2709             c) when didCreatePlugIn fires, shouldAlwaysAutoStart() returns true,
2710                because the plug-in is whitelisted,
2711
2712         we end up reattach()ing and going to Restarted state, and then going straight
2713         to Playing state in didCreatePlugIn.
2714
2715         Instead, primary plugin promotion should be deferred until after the plugin is created,
2716         so that we can take that one last bit of information (shouldAlwaysAutoStart) into account
2717         before restarting and reattaching the plug-in.
2718
2719         * html/HTMLPlugInImageElement.cpp:
2720         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
2721         (WebCore::HTMLPlugInImageElement::setIsPrimarySnapshottedPlugIn):
2722         (WebCore::HTMLPlugInImageElement::restartSnapshottedPlugIn):
2723         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn):
2724         (WebCore::HTMLPlugInImageElement::subframeLoaderDidCreatePlugIn):
2725         * html/HTMLPlugInImageElement.h:
2726
2727 2013-04-16  Wei James  <james.wei@intel.com>
2728
2729         ASSERTION FAILED: i < size(), UNKNOWN in WebCore::ChannelMergerNode::process
2730         https://bugs.webkit.org/show_bug.cgi?id=112657
2731
2732         Avoid to access input bus in checkNumberOfChannelsForInput() before the
2733         bus is updated with AudioNode::checkNumberOfChannelsForInput().
2734
2735         Reviewed by Chris Rogers.
2736
2737         * Modules/webaudio/ChannelMergerNode.cpp:
2738         (WebCore::ChannelMergerNode::checkNumberOfChannelsForInput):
2739
2740 2013-04-16  Ryosuke Niwa  <rniwa@webkit.org>
2741
2742         Even more Windows build fix and a Qt minimal build fix attempt.
2743
2744         * html/parser/XSSAuditorDelegate.cpp:
2745         * page/win/FrameCGWin.cpp:
2746
2747 2013-04-16  Ryosuke Niwa  <rniwa@webkit.org>
2748
2749         More Windows build fixes.
2750
2751         * platform/win/DragDataWin.cpp:
2752         * platform/win/PasteboardWin.cpp:
2753
2754 2013-04-16  Sam Weinig  <sam@webkit.org>
2755
2756         Windows build fix.
2757
2758         * page/win/FrameWin.cpp:
2759
2760 2013-04-16  Dean Jackson  <dino@apple.com>
2761
2762         PlugIns that resize in user gestures should be immune to snapshotting
2763         https://bugs.webkit.org/show_bug.cgi?id=114697
2764         <rdar://problem/13666258>
2765
2766         Reviewed by Tim Horton.
2767
2768         Now that we snapshot plugins if they resize above the snapshotting threshold,
2769         we need to make sure that we don't do it in response to a user gesture
2770         such as a click.
2771
2772         Due to the complexities of real-world content and the way they often do
2773         things using timeout, I copied the code from the generic user gesture
2774         timeout, which gives a 5 second grace period after clicks.
2775
2776         * html/HTMLPlugInImageElement.cpp:
2777         (WebCore::documentHadRecentUserGesture): New static function to share the code for
2778             checking the time since the last click (or whatever).
2779         (WebCore::HTMLPlugInImageElement::checkSizeChangeForSnapshotting): Make sure
2780             to test for a user gesture.
2781         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Move the
2782             code into the new function.
2783
2784 2013-04-15  Sam Weinig  <sam@webkit.org>
2785
2786         Remove more #includes from Frame.h
2787         https://bugs.webkit.org/show_bug.cgi?id=114642
2788
2789         Reviewed by Anders Carlsson.
2790
2791         Convert Editor, FrameSelection, EventHandler and AnimationController into
2792         OwnPtrs, to avoid inclusion.
2793
2794         * accessibility/AXObjectCache.cpp:
2795         * accessibility/AccessibilityObject.cpp:
2796         * accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp:
2797         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2798         * bindings/objc/DOM.mm:
2799         * dom/CharacterData.cpp:
2800         * dom/ContainerNode.cpp:
2801         * dom/Element.cpp:
2802         * editing/AlternativeTextController.cpp:
2803         * editing/CompositeEditCommand.cpp:
2804         * editing/DeleteButtonController.h:
2805         * editing/EditingStyle.cpp:
2806         * editing/InsertLineBreakCommand.cpp:
2807         * editing/SpellChecker.cpp:
2808         * editing/SpellingCorrectionCommand.cpp:
2809         * editing/TextInsertionBaseCommand.cpp:
2810         * history/CachedFrame.cpp:
2811         * html/HTMLAnchorElement.cpp:
2812         * html/HTMLInputElement.cpp:
2813         * html/HTMLPlugInElement.cpp:
2814         * html/HTMLSelectElement.cpp:
2815         * html/HTMLTextAreaElement.cpp:
2816         * html/HTMLTextFormControlElement.cpp:
2817         * html/TextFieldInputType.cpp:
2818         * html/shadow/ClearButtonElement.cpp:
2819         * html/shadow/MediaControlElements.cpp:
2820         * html/shadow/SliderThumbElement.cpp:
2821         * inspector/InspectorPageAgent.h:
2822         * loader/FrameLoader.cpp:
2823         * page/DOMWindow.cpp:
2824         * page/Frame.cpp:
2825         * page/Frame.h:
2826         * page/FrameView.cpp:
2827         * page/FrameView.h:
2828         * page/Page.cpp:
2829         * page/TouchAdjustment.cpp:
2830         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
2831         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2832         * platform/gtk/PasteboardGtk.cpp:
2833         * platform/qt/ClipboardQt.cpp:
2834         * rendering/HitTestResult.cpp:
2835         * rendering/RenderBlock.cpp:
2836         * rendering/RenderEmbeddedObject.cpp:
2837         * rendering/RenderLayer.cpp:
2838         * rendering/RenderNamedFlowThread.cpp:
2839         * rendering/RenderObject.cpp:
2840         * rendering/RenderSnapshottedPlugIn.cpp:
2841         * svg/graphics/SVGImage.cpp:
2842         * testing/Internals.cpp:
2843
2844 2013-04-16  Jessie Berlin  <jberlin@apple.com>
2845
2846         Speculative Windows build fix.
2847
2848         * platform/win/ContextMenuWin.cpp:
2849
2850 2013-04-16  Eric Carlson  <eric.carlson@apple.com>
2851
2852         [Mac] in-band cues sometimes displayed late
2853         https://bugs.webkit.org/show_bug.cgi?id=114629
2854
2855         Reviewed by Jer Noble.
2856
2857         No new tests, this deals with a platform-specific issue that is extremely timing dependent.
2858
2859         * html/track/InbandTextTrack.cpp:
2860         (WebCore::TextTrackCueMap::add): New, two way cue data <-> cue map.
2861         (WebCore::TextTrackCueMap::find): 
2862         (WebCore::TextTrackCueMap::remove):
2863         (WebCore::InbandTextTrack::updateCueFromCueData): New, update an existing cue. Set cue end time
2864             to video duration if it is unknown.
2865         (WebCore::InbandTextTrack::addGenericCue): Look for existing cues without considering duration
2866             so we can match incomplete cues.
2867         (WebCore::InbandTextTrack::updateGenericCue): New, update an existing cue. This allows us to 
2868             add in-band cues as soon as we get them from the media engine and update them as more
2869             information becomes available.
2870         (WebCore::InbandTextTrack::removeGenericCue): New, remove an existing cue. This is necessary
2871             because we never want to keep an incomplete cue when a seek happens.
2872         (WebCore::InbandTextTrack::removeCue): New, base class override so we can keep the two way
2873             map up to date.
2874         * html/track/InbandTextTrack.h:
2875
2876         * html/track/TextTrack.cpp:
2877         (WebCore::TextTrack::addCue): TextTrack::removeCue takes a RefPtr.
2878         (WebCore::TextTrack::removeCue): Take a RefPtr.
2879         (WebCore::TextTrack::hasCue): Allow caller to request match without considering end time.
2880         * html/track/TextTrack.h:
2881
2882         * html/track/TextTrackCue.cpp:
2883         (WebCore::TextTrackCue::TextTrackCue): Initialize m_processingCueChanges.
2884         (WebCore::TextTrackCue::willChange): Renamed from cueWillChange. Use m_processingCueChanges
2885             to avoid thrashing the track when many cue properties will change.
2886         (WebCore::TextTrackCue::didChange): Renamed from cueDidChange. Use m_processingCueChanges
2887             to avoid thrashing the track when many cue properties will change.
2888         (WebCore::TextTrackCue::setId): cueWillChange -> willChange. cueDidChange -> didChange. 
2889         (WebCore::TextTrackCue::setStartTime): Ditto.
2890         (WebCore::TextTrackCue::setEndTime): Ditto.
2891         (WebCore::TextTrackCue::setPauseOnExit): Ditto.
2892         (WebCore::TextTrackCue::setVertical): Ditto.
2893         (WebCore::TextTrackCue::setSnapToLines): Ditto.
2894         (WebCore::TextTrackCue::setLine): Ditto.
2895         (WebCore::TextTrackCue::setPosition): Ditto.
2896         (WebCore::TextTrackCue::setSize): Ditto.
2897         (WebCore::TextTrackCue::setAlign): Ditto.
2898         (WebCore::TextTrackCue::setText): Ditto.
2899         (WebCore::TextTrackCue::setRegionId): Ditto.
2900         (WebCore::TextTrackCue::isEqual): Renamed from operator==, take match rules param.
2901         * html/track/TextTrackCue.h:
2902
2903         * html/track/TextTrackCueGeneric.cpp:
2904         (WebCore::TextTrackCueGeneric::isEqual): Renamed from operator==, take match rules param.
2905         * html/track/TextTrackCueGeneric.h:
2906
2907         * platform/graphics/InbandTextTrackPrivateClient.h: Make GenericCueData refcounted.
2908         (WebCore::GenericCueData::create): New.
2909         (WebCore::GenericCueData::status): Ditto.
2910         (WebCore::GenericCueData::setStatus): Ditto.
2911         (WebCore::GenericCueData::GenericCueData):
2912
2913         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
2914         (WebCore::InbandTextTrackPrivateAVF::processCue): Add cues as soon as we get them from the media
2915             engine, update duration once we know it.
2916         (WebCore::InbandTextTrackPrivateAVF::resetCueValues): Tell the client to remove all incomplete
2917             cues we have delivered.
2918         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
2919
2920         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2921         (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted): Do not flush cues when seek completes,
2922             we did that when the seek started and cues can be delivered before we get the the 
2923             seek completed  notification.
2924
2925 2013-04-16  James Craig  <james@cookiecrook.com>
2926
2927         dfn element should be exposed as AXGroup:AXDefinition
2928         https://bugs.webkit.org/show_bug.cgi?id=108980
2929
2930         Reviewed by Chris Fleizach.
2931
2932         dfn element now exposed as AXGroup:AXDefinition. Updated existing tests.
2933
2934         * accessibility/AccessibilityRenderObject.cpp:
2935         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2936         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2937
2938 2013-04-16  Anders Carlsson  <andersca@apple.com>
2939
2940         Begin chipping away at ScriptState
2941         https://bugs.webkit.org/show_bug.cgi?id=114695
2942
2943         Reviewed by Geoffrey Garen.
2944
2945         Remove ScriptStateProtectedPtr as well as evalEnabled and setEvalEnabled.
2946
2947         * bindings/js/ScriptState.cpp:
2948         * bindings/js/ScriptState.h:
2949         * inspector/InjectedScriptBase.cpp:
2950         (WebCore::InjectedScriptBase::callFunctionWithEvalEnabled):
2951         * inspector/ScriptArguments.cpp:
2952         (WebCore::ScriptArguments::ScriptArguments):
2953         (WebCore::ScriptArguments::globalState):
2954         * inspector/ScriptArguments.h:
2955
2956 2013-04-15  Anders Carlsson  <andersca@apple.com>
2957
2958         Remove unneeded headers from ScriptExecutionContext.h
2959         https://bugs.webkit.org/show_bug.cgi?id=114631
2960
2961         Reviewed by Alexey Proskuryakov.
2962
2963         This shaves another minute off WebCore build time on my MacBook Pro.
2964
2965         * dom/ScriptExecutionContext.cpp:
2966         * dom/ScriptExecutionContext.h:
2967         * fileapi/Blob.cpp:
2968         * rendering/RenderBlock.cpp:
2969         * rendering/RenderBox.cpp:
2970         * rendering/RenderFlowThread.cpp:
2971         * rendering/RenderFrameSet.cpp:
2972         * rendering/RenderIFrame.cpp:
2973         * rendering/RenderImage.cpp:
2974         * rendering/RenderListBox.cpp:
2975         * rendering/RenderListItem.cpp:
2976         * rendering/RenderListMarker.cpp:
2977         * rendering/RenderMedia.cpp:
2978         * rendering/RenderObject.cpp:
2979         * rendering/RenderRegion.cpp:
2980         * rendering/RenderReplaced.cpp:
2981         * rendering/RenderReplica.cpp:
2982         * rendering/RenderRubyRun.cpp:
2983         * rendering/RenderScrollbarPart.cpp:
2984         * rendering/RenderSlider.cpp:
2985         * rendering/RenderTable.cpp:
2986         * rendering/RenderTableCell.cpp:
2987         * rendering/RenderTableRow.cpp:
2988         * rendering/RenderTableSection.cpp:
2989         * rendering/RenderTextControlSingleLine.cpp:
2990         * rendering/RenderTextTrackCue.cpp:
2991         * rendering/RenderVideo.cpp:
2992         * rendering/RenderView.cpp:
2993         * rendering/RenderWidget.cpp:
2994         * rendering/svg/RenderSVGContainer.cpp:
2995         * rendering/svg/RenderSVGForeignObject.cpp:
2996         * rendering/svg/RenderSVGGradientStop.cpp:
2997         * rendering/svg/RenderSVGHiddenContainer.cpp:
2998         * rendering/svg/RenderSVGImage.cpp:
2999         * rendering/svg/RenderSVGResourceContainer.cpp:
3000         * rendering/svg/RenderSVGResourceMarker.cpp:
3001         * rendering/svg/RenderSVGRoot.cpp:
3002         * rendering/svg/RenderSVGShape.cpp:
3003         * rendering/svg/RenderSVGText.cpp:
3004
3005 2013-04-16  Maciej Stachowiak  <mjs@apple.com>
3006
3007         Remove even yet still more traces of v8
3008         https://bugs.webkit.org/show_bug.cgi?id=114693
3009
3010         Reviewed by Anders Carlsson.
3011
3012         No behavior change.
3013
3014         * bindings/generic/ActiveDOMCallback.h:
3015         (WebCore::ActiveDOMCallback::isScriptControllerTerminating): Remove a V8-specific
3016         method and the comment referencing it.
3017         * bindings/generic/ActiveDOMCallback.cpp:
3018         (WebCore::ActiveDOMCallback::isScriptControllerTerminating): ditto
3019         * fileapi/File.cpp:
3020         (WebCore::File::File): Remove a comment referencing v8
3021         * inspector/InjectedScriptExterns.js: ditto
3022
3023 2013-04-16  Alexey Proskuryakov  <ap@apple.com>
3024
3025         Remove unused AlternativeTextClient::dismissDictationAlternativeUI
3026         https://bugs.webkit.org/show_bug.cgi?id=114598
3027
3028         Reviewed by Ryosuke Niwa.
3029
3030         Removing dead code.
3031
3032         * WebCore.exp.in:
3033         * editing/mac/AlternativeTextUIController.h: Made dismissAlternatives() private.
3034         * page/AlternativeTextClient.h:
3035
3036 2013-04-16  Robert Hogan  <robert@webkit.org>
3037
3038         Float at exact multiple of line-height affects too many lines
3039         https://bugs.webkit.org/show_bug.cgi?id=112744
3040
3041         Reviewed by David Hyatt.
3042
3043         Tests: fast/block/float/float-with-fractional-height-vertical-lr.html
3044                fast/block/float/float-with-fractional-height.html
3045
3046         When adding floats to the interval tree used for testing floats' overlap with lineboxes
3047         truncate the dimensions of the float rather than rounding them. This matches the
3048         treatment of linebox dimensions so ensures the test for overlap is comparing like
3049         with like.
3050
3051         * rendering/RenderBlock.cpp:
3052         (WebCore::::collectIfNeeded):
3053         (WebCore::RenderBlock::FloatingObjects::intervalForFloatingObject):
3054         (WebCore::::string):
3055
3056 2013-04-16  Chris Fleizach  <cfleizach@apple.com>
3057
3058         AX: aria-valuetext is not exposed on OS X.
3059         https://bugs.webkit.org/show_bug.cgi?id=114628
3060
3061         Reviewed by Tim Horton.
3062
3063         aria-valuetext is only being exposed on ARIA controls. That's because there were
3064         checks in place so that ONLY ARIA defined controls would return anything related to valuetext.
3065         We should allow this to work on native controls as well.
3066
3067         Test: platform/mac/accessibility/aria-valuetext-on-native-slider.html
3068
3069         * accessibility/AccessibilityNodeObject.cpp:
3070         (WebCore::AccessibilityNodeObject::valueDescription):
3071         (WebCore):
3072         (WebCore::AccessibilityNodeObject::valueForRange):
3073         (WebCore::AccessibilityNodeObject::maxValueForRange):
3074         (WebCore::AccessibilityNodeObject::minValueForRange):
3075         * accessibility/AccessibilityNodeObject.h:
3076         (AccessibilityNodeObject):
3077         * accessibility/AccessibilityObject.cpp:
3078         (WebCore::AccessibilityObject::isRangeControl):
3079              Rename isARIAControl to isRangeControl and make it apply to all elements.
3080         * accessibility/AccessibilityObject.h:
3081
3082 2013-04-15  Jon Lee  <jonlee@apple.com>
3083
3084         RenderView should bail out of paintBoxDecorations() when painting with a different renderer
3085         https://bugs.webkit.org/show_bug.cgi?id=114665
3086         <rdar://problem/13434884>
3087
3088         Reviewed by Simon Fraser.
3089
3090         * rendering/RenderView.cpp:
3091         (WebCore::RenderView::paintBoxDecorations): Add a check to see if we should paint within the renderer.
3092         This check exists in all other implementations of paintBoxDecorations(), and correctly avoids painting the
3093         decorations if the root provided is not the RenderView.
3094
3095 2013-04-16  Max Vujovic  <mvujovic@adobe.com>
3096
3097         [CSS Shaders] Remove the cache of validated programs
3098         https://bugs.webkit.org/show_bug.cgi?id=112844
3099
3100         Reviewed by Dean Jackson.
3101
3102         Since we're caching CustomFilterProgram(s) now, we don't need another cache for
3103         CustomFilterValidatedProgram(s). With this patch, CustomFilterProgram stores a reference
3104         to a lazily created CustomFilterValidatedProgram, and CustomFilterGlobalContext no longer
3105         has a validated program cache.
3106
3107         Also, this patch removes the CustomFilterValidatedProgram's stored reference to
3108         CustomFilterGlobalContext. The removal of the validated program cache would cause
3109         this reference to become weak. Validated programs only needed to keep the global context
3110         reference in order to create a CustomFilterCompiledProgram. In this patch, we create
3111         CustomFilterCompiledProgram(s) in FECustomFilter instead of in CustomFilterValidatedProgram,
3112         so validated programs don't need to store the global context reference anymore.
3113
3114         No new tests. Just Refactoring.
3115
3116         * platform/graphics/filters/CustomFilterCompiledProgram.cpp:
3117         (WebCore::CustomFilterCompiledProgram::CustomFilterCompiledProgram):
3118         * platform/graphics/filters/CustomFilterGlobalContext.cpp:
3119         (WebCore::CustomFilterGlobalContext::~CustomFilterGlobalContext):
3120         * platform/graphics/filters/CustomFilterGlobalContext.h:
3121         (CustomFilterGlobalContext):
3122         * platform/graphics/filters/CustomFilterProgram.cpp:
3123         (WebCore::CustomFilterProgram::validatedProgram):
3124         (WebCore::CustomFilterProgram::setValidatedProgram):
3125         * platform/graphics/filters/CustomFilterProgram.h:
3126         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
3127         (WebCore::CustomFilterValidatedProgram::CustomFilterValidatedProgram):
3128         (WebCore::CustomFilterValidatedProgram::compiledProgram):
3129         (WebCore::CustomFilterValidatedProgram::setCompiledProgram):
3130         (WebCore::CustomFilterValidatedProgram::~CustomFilterValidatedProgram):
3131         * platform/graphics/filters/CustomFilterValidatedProgram.h:
3132         (CustomFilterValidatedProgram):
3133         * platform/graphics/filters/FECustomFilter.cpp:
3134         (WebCore::FECustomFilter::prepareForDrawing):
3135         * rendering/FilterEffectRenderer.cpp:
3136         * rendering/RenderLayer.cpp:
3137         (WebCore::RenderLayer::computeFilterOperations):
3138
3139 2013-04-16  Anthony Scian  <ascian@blackberry.com>
3140
3141         [BlackBerry] LayerTexture: check if the graphics context is NULL
3142         https://bugs.webkit.org/show_bug.cgi?id=114674
3143
3144         Reviewed by Rob Buis.
3145
3146         Internal PR: 256522
3147
3148         * platform/graphics/blackberry/LayerTexture.cpp:
3149         (WebCore::LayerTexture::setContentsToColor):
3150
3151 2013-04-13  Andreas Kling  <akling@apple.com>
3152
3153         REGRESSION(r148128): window.resizeTo doesn't work from Safari address bar.
3154         <rdar://problem/13635894>
3155         <http://webkit.org/b/114561>
3156
3157         Reviewed by Sam Weinig.
3158
3159         Suppressing window geometry changes while any user gesture is active was a bit too restrictive,
3160         and broke legitimate use-cases. Narrow it down to checking EventHandler::mousePressed().
3161
3162         No test yet, adding one is tracked by <http://webkit.org/b/114561>.
3163
3164         * page/DOMWindow.cpp:
3165         (WebCore::DOMWindow::allowedToChangeWindowGeometry):
3166
3167             Added to share code between all DOMWindow functions that alter window geometry.
3168
3169         (WebCore::DOMWindow::moveBy):
3170         (WebCore::DOMWindow::moveTo):
3171         (WebCore::DOMWindow::resizeBy):
3172         (WebCore::DOMWindow::resizeTo):
3173
3174 2013-04-16  Manuel Rego Casasnovas  <rego@igalia.com>
3175
3176         [GTK][EFL] Remove deprecated libsoup API usage
3177         https://bugs.webkit.org/show_bug.cgi?id=104894
3178
3179         Reviewed by Philippe Normand.
3180
3181         Based on a patch by Claudio Saavedra <csaavedra@igalia.com>.
3182         Remove LIBSOUP_USE_UNSTABLE_REQUEST_API and only include
3183         libsoup/soup.h.
3184
3185         * platform/network/ResourceHandleInternal.h:
3186         * platform/network/soup/GOwnPtrSoup.cpp:
3187         * platform/network/soup/ProxyResolverSoup.h:
3188         * platform/network/soup/ResourceErrorSoup.cpp:
3189         * platform/network/soup/ResourceHandleSoup.cpp:
3190         (WebCore::ensureSessionIsInitialized): No need to add the requester
3191         feature.
3192         (WebCore::createSoupRequestAndMessageForHandle): SoupSession has a
3193         requester API, use it.
3194
3195 2013-04-15  Maciej Stachowiak  <mjs@apple.com>
3196
3197         Remove more traces of the now-obsolete support for V8
3198         https://bugs.webkit.org/show_bug.cgi?id=114657
3199
3200         Reviewed by Ryosuke Niwa.
3201
3202         In addition to passing existing tests, I verified that the ElementFactory
3203         and ElementWrapperFactory files were all textually identical before and after.
3204
3205         * dom/CustomEvent.cpp:
3206         (WebCore): Remove Use(V8) bock.
3207         * dom/CustomEvent.h:
3208         (CustomEvent): ditto
3209         * dom/MessageEvent.cpp:
3210         (WebCore::MessageEvent::MessageEvent): ditto
3211         (WebCore::MessageEvent::initMessageEvent): ditto
3212         * dom/Node.h:
3213         (Node): ditto
3214         * dom/make_event_factory.pl:
3215         (generateImplementation): Remove V8 support.
3216         * dom/make_names.pl: Remove gobs of V8 support and simplify.
3217         (printJSElementIncludes): 
3218         (printConditionalElementIncludes):
3219         (printFactoryCppFile):
3220         (printWrapperFunctions):
3221         (printWrapperFactoryCppFile):
3222         (printWrapperFactoryHeaderFile):
3223         * inspector/InjectedScriptCanvasModuleSource.js: Remove V8 stack
3224         trace code.
3225         * platform/qt/PlatformSupport.h: Remove a macro only used for V8 
3226         bindings.
3227         * svg/SVGZoomAndPan.h:
3228         (SVGZoomAndPan): Remove mention of V8 from comment.
3229
3230 2013-04-15  Ryosuke Niwa  <rniwa@webkit.org>
3231
3232         Potential use after free in ApplyStyleCommand::splitAncestorsWithUnicodeBidi
3233         https://bugs.webkit.org/show_bug.cgi?id=114664
3234
3235         Reviewed by Oliver Hunt.
3236
3237         Use RefPtr as needed.
3238
3239         No new tests since this bug was discovered by code inspection.
3240
3241         * editing/ApplyStyleCommand.cpp:
3242         (WebCore::ApplyStyleCommand::splitAncestorsWithUnicodeBidi):
3243
3244 2013-04-15  Timothy Hatcher  <timothy@apple.com>
3245
3246         Web Inspector: Make var and function declarations work again in the Console.
3247
3248         https://webkit.org/b/114534
3249         rdar://problem/13614477
3250
3251         Reviewed by Oliver Hunt.
3252
3253         * inspector/InjectedScriptSource.js:
3254         (InjectedScript.prototype._evaluateOn): Use 'with' when not evaluating
3255         on a call frame.
3256
3257 2013-04-15  Seokju Kwon  <seokju.kwon@gmail.com>
3258
3259         Web Inspector: Add missing Localized strings
3260         https://bugs.webkit.org/show_bug.cgi?id=114656
3261
3262         Reviewed by Timothy Hatcher.
3263
3264         No tests because no behavior change is expected.
3265
3266         * English.lproj/localizedStrings.js:
3267
3268 2013-04-15  Dean Jackson  <dino@apple.com>
3269
3270         Rename restartedPlugin to isRestartedPlugin. This was
3271         review feedback from r148038 that I thought I fixed
3272         everywhere but failed.
3273         https://bugs.webkit.org/show_bug.cgi?id=114233
3274
3275         * html/HTMLPlugInElement.h:
3276         (WebCore::HTMLPlugInElement::isRestartedPlugin): Prefix with "is".
3277         * html/HTMLPlugInImageElement.cpp:
3278         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
3279         (WebCore::HTMLPlugInImageElement::setDisplayState):
3280         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
3281         * html/HTMLPlugInImageElement.h:
3282         * rendering/RenderEmbeddedObject.cpp:
3283         (WebCore::RenderEmbeddedObject::paintContents):
3284         * rendering/RenderLayerBacking.cpp:
3285         (WebCore::isRestartedPlugin):
3286
3287 2013-04-15  Maciej Stachowiak  <mjs@apple.com>
3288
3289         Remove V8 attribtues from IDLAttributes.txt
3290         https://bugs.webkit.org/show_bug.cgi?id=114651
3291
3292         Reviewed by Sam Weinig.
3293
3294         No tests because no behavior change is expected.
3295
3296         * bindings/scripts/IDLAttributes.txt: Remove V8 attribtues.
3297         * html/track/TextTrackList.idl: Remove a stray V8-specific attribute
3298         (so I guess this change is not useless)
3299
3300 2013-04-15  James Craig  <james@cookiecrook.com>
3301
3302         WebKit should not expose AXSubrole:AXDescriptionList on Mountain Lion as it causes a regression in VoiceOver behavior
3303         https://bugs.webkit.org/show_bug.cgi?id=113975
3304
3305         Reviewed by Chris Fleizach.
3306
3307         Serve NSAccessibilityDescriptionListSubrole or NSAccessibilityDefinitionListSubrole
3308         depending on platform. Updated existing test coverage.
3309
3310         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3311         (-[WebAccessibilityObjectWrapper subrole]):
3312
3313 2013-04-15  Dean Jackson  <dino@apple.com>
3314
3315         Plugins that resize might need to be snapshotted.
3316         https://bugs.webkit.org/show_bug.cgi?id=102157
3317         <rdar://problem/12696259>
3318
3319         Reviewed by Tim Horton.
3320
3321         A plugin could avoid snapshotting if it started very
3322         small (below the threshold where we autostart), and then
3323         resized to be large (above the threshold). Detect this
3324         case and tell the plugin to snapshot.
3325
3326         There unfortunately is a bit of state to track when doing
3327         this. We have to start the snapshotting in a post-layout
3328         task, so we carry a flag to say we're checking size but
3329         not wanting the plugin to update (which would restart it).
3330         We also might be a plugin that would have already restarted
3331         due to a similar plugin being clicked or detected as dominant.
3332         So this patch introduces a member variable that tracks what
3333         decision has been made on snapshotting.
3334
3335         I also added some more logging to be more clear about what is
3336         happening to plugins going through the snapshot process, and
3337         changed the order of the tests in the algorithm so that domain
3338         detection comes before examining the size.
3339
3340         * html/HTMLPlugInImageElement.cpp:
3341         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): Initialise
3342             the two new member variables.
3343         (WebCore::HTMLPlugInImageElement::setDisplayState): Mark a restarted
3344             plugin as NeverSnapshot. This means that if it later resizes above the
3345             threshold, it won't trigger the snapshot detection.
3346         (WebCore::HTMLPlugInImageElement::checkSnapshotStatus): Renamed from
3347             updateSnapshotInfo. This now updates the snapshot, but also runs
3348             the check for size changes.
3349         (WebCore::addPlugInsFromNodeListMatchingPlugInOrigin): Gather all plugins
3350             that look like a restarting plugin, not just those snapshotted. That
3351             way they can all be marked as NeverSnapshot.
3352         (WebCore::HTMLPlugInImageElement::restartSimilarPlugIns): Bless every
3353             plugin that looks similar, whether or not it is snapshotted.
3354         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): More logging.
3355         (WebCore::HTMLPlugInImageElement::setIsPrimarySnapshottedPlugIn): Ditto.
3356         (WebCore::HTMLPlugInImageElement::checkSizeChangeForSnapshotting): New
3357             method. If the plugin was below the threshold and is now above it,
3358             begin the snapshotting process.
3359         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Plugins
3360             that were marked as NeverSnapshot should start immediately. Move the origin
3361             test earlier in the method. If a plugin avoided snapshotting due to size,
3362             remember the size.
3363         (WebCore::HTMLPlugInImageElement::subframeLoaderDidCreatePlugIn): Mark the
3364             plugin as NeverSnapshot.
3365
3366         * html/HTMLPlugInImageElement.h:
3367         (HTMLPlugInImageElement): Four new member variables:
3368             - the decision we made regarding snapshotting (or not), uses the SnapshotDecision enum
3369             - the size when it avoided snapshotting
3370             - a flag to indicate the post layout update was triggered due to
3371               a size change
3372         (WebCore::HTMLPlugInImageElement::needsCheckForSizeChange): New method.
3373         (WebCore::HTMLPlugInImageElement::setNeedsCheckForSizeChange): New method.
3374         (WebCore::HTMLPlugInImageElement::snapshotDecision): Return the decision
3375             regarding snapshotting or not snapshotting.
3376
3377         * page/FrameView.cpp:
3378         (WebCore::FrameView::addWidgetToUpdate): Guard updating the widget. We don't
3379             want to do it when we're checking for a size change in the plugin.
3380         (WebCore::FrameView::updateWidget): Call new name.
3381
3382         * plugins/PluginViewBase.h:
3383         (WebCore::PluginViewBase::beginSnapshottingRunningPlugin): Empty virtual
3384             method to snapshot a running plugin.
3385
3386         * rendering/RenderEmbeddedObject.cpp:
3387         (WebCore::RenderEmbeddedObject::layout): If the plugin has increased in
3388             size add it to the post layout list so that it will be checked.
3389
3390 2013-04-15  Chris Fleizach  <cfleizach@apple.com>
3391
3392         activating a focused link to an in-page fragment ID should transfer focus to the target of the link when possible
3393         https://bugs.webkit.org/show_bug.cgi?id=17450
3394
3395         Reviewed by Maciej Stachowiak.
3396
3397         When a fragment is scrolled to due to an activation event or on load, focus should attempt to 
3398         move to the fragment if possible.
3399
3400         Test: fast/dom/fragment-activation-focuses-target.html
3401
3402         * page/FrameView.cpp:
3403         (WebCore::FrameView::scrollToAnchor):
3404
3405 2013-04-12  Maciej Stachowiak  <mjs@apple.com>
3406
3407         Remove V8-specific extended attributes from IDL files
3408         https://bugs.webkit.org/show_bug.cgi?id=114523
3409
3410         Reviewed by Geoffrey Garen.
3411
3412         No tests because no behavior change is expected.
3413
3414         * Modules/encryptedmedia/MediaKeyMessageEvent.idl:
3415         * Modules/encryptedmedia/MediaKeyNeededEvent.idl:
3416         * Modules/encryptedmedia/MediaKeySession.idl:
3417         * Modules/encryptedmedia/MediaKeys.idl:
3418         * Modules/filesystem/HTMLInputElementFileSystem.idl:
3419         * Modules/indexeddb/IDBAny.idl:
3420         * Modules/mediasource/MediaSource.idl:
3421         * Modules/mediasource/SourceBuffer.idl:
3422         * Modules/mediasource/SourceBufferList.idl:
3423         * Modules/mediastream/MediaStream.idl:
3424         * Modules/webaudio/AudioDestinationNode.idl:
3425         * html/track/TextTrackCue.idl:
3426         * html/track/TextTrackCueList.idl:
3427         * html/track/TextTrackList.idl:
3428         * html/track/TextTrackRegion.idl:
3429         * html/track/TextTrackRegionList.idl:
3430         * html/track/TrackEvent.idl:
3431         * storage/Storage.idl:
3432         * svg/SVGDocument.idl:
3433         * svg/SVGElement.idl:
3434         * workers/WorkerContext.idl:
3435         * xml/XMLHttpRequest.idl:
3436         * xml/XPathNSResolver.idl:
3437
3438 2013-04-15  Anders Carlsson  <andersca@apple.com>
3439
3440         ScriptWrappable subclasses shouldn't have to include WeakInlines.h
3441         https://bugs.webkit.org/show_bug.cgi?id=114641
3442
3443         Reviewed by Alexey Proskuryakov.
3444
3445         Remove ScriptWrappableInlines.h includes, they're not needed anymore.
3446
3447         * css/WebKitCSSMatrix.cpp:
3448         * dom/ClientRect.cpp:
3449         * dom/ClientRectList.cpp:
3450         * dom/Clipboard.cpp:
3451         * dom/DOMStringMap.cpp: