Deduplicate Document::encoding().
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-01-31  Andreas Kling  <akling@apple.com>
2
3         Deduplicate Document::encoding().
4         <https://webkit.org/b/128000>
5
6         Make Document::encoding() return an AtomicString so we don't duplicate
7         the string every time it's called.
8
9         215 KB progression on Membuster3.
10
11         Reviewed by Simon Fraser.
12
13         * dom/Document.h:
14         * dom/Document.cpp:
15         (WebCore::Document::encoding):
16
17 2014-01-31  Simon Fraser  <simon.fraser@apple.com>
18
19         Even when in fixed layout mode, some platforms need to do layout after a viewport change
20         https://bugs.webkit.org/show_bug.cgi?id=128003
21
22         Reviewed by Andreas Kling.
23
24         iOS uses fixed layout mode in both WK1 and WK2, but lays out fixed position
25         elements relative to a variable viewport. This code assumed that fixed layout
26         implies a fixed viewport.
27         
28         Fix by testing for useCustomFixedPositionLayoutRect() in the fixed layout case.
29         
30         Also removed RenderView::hasCustomFixedPosition() which is no longer used.
31         
32         * page/FrameView.cpp:
33         (WebCore::FrameView::shouldLayoutAfterViewportChange):
34         (WebCore::FrameView::visibleContentsResized):
35         * page/FrameView.h:
36         * rendering/RenderView.cpp:
37         * rendering/RenderView.h:
38
39 2014-01-31  Zan Dobersek  <zdobersek@igalia.com>
40
41         Guard GLContextEGL::platformContext() with USE(3D_GRAPHICS)
42         https://bugs.webkit.org/show_bug.cgi?id=120214
43
44         Reviewed by Philippe Normand.
45
46         Guard the GLContextEGL::platformContext() declaration and definiton with USE(3D_GRAPHICS)
47         since this guard is used in the GLContext class, from which the GLContextEGL class overrides
48         this method.
49
50         * platform/graphics/egl/GLContextEGL.cpp:
51         * platform/graphics/egl/GLContextEGL.h:
52
53 2014-01-31  Beth Dakin  <bdakin@apple.com>
54
55         Sideways 'wobble' when scrolling with trackpad on Mavericks
56         https://bugs.webkit.org/show_bug.cgi?id=127521
57         -and corresponding-
58         <rdar://problem/14137306>
59
60         Reviewed by Simon Fraser.
61
62         This patch takes http://trac.webkit.org/changeset/154535 which introduced 
63         filtering wheel events for overflow areas to try to make them less sensitive to X 
64         deltas when scrolling in a primarily Y direction, and it factors that code out 
65         into its own class, now called WheelEventDeltaTracker. So now this new class can 
66         use the same code to filter events for WebKit2’s EventDispatcher.
67
68         Files for WheelEventDeltaTracker.
69         * CMakeLists.txt:
70         * GNUmakefile.list.am:
71         * WebCore.vcxproj/WebCore.vcxproj:
72         * WebCore.vcxproj/WebCore.vcxproj.filters:
73         * WebCore.xcodeproj/project.pbxproj:
74
75         WK2 needs these new WheelEventDeltaTracker functions.
76         * WebCore.exp.in:
77
78         Move a bunch of code over to WheelEventDeltaTracker and use
79         m_recentWheelEventTracker to serve the same purpose.
80         * page/EventHandler.cpp:
81         (WebCore::EventHandler::EventHandler):
82         (WebCore::EventHandler::handleWheelEvent):
83         (WebCore::EventHandler::defaultWheelEventHandler):
84         * page/EventHandler.h:
85
86         Allow horizontal rubber banding now that we have some event filtering in place.
87         * page/FrameView.cpp:
88         (WebCore::FrameView::FrameView):
89
90         New files. Most of this code was from EventHandler.
91         * page/WheelEventDeltaTracker.cpp: Added.
92         (WebCore::WheelEventDeltaTracker::WheelEventDeltaTracker):
93         (WebCore::WheelEventDeltaTracker::~WheelEventDeltaTracker):
94         (WebCore::WheelEventDeltaTracker::beginTrackingDeltas):
95         (WebCore::WheelEventDeltaTracker::endTrackingDeltas):
96         (WebCore::WheelEventDeltaTracker::recordWheelEventDelta):
97         (WebCore::deltaIsPredominantlyVertical):
98         (WebCore::WheelEventDeltaTracker::dominantScrollGestureDirection):
99         * page/WheelEventDeltaTracker.h: Added.
100         (WebCore::WheelEventDeltaTracker::isTrackingDeltas):
101
102         New function to clone events while zero-ing out certain deltas.
103         * platform/PlatformWheelEvent.h:
104         (WebCore::PlatformWheelEvent::copyIgnoringHorizontalDelta):
105         (WebCore::PlatformWheelEvent::copyIgnoringVerticalDelta):
106
107 2014-01-31  Simon Fraser  <simon.fraser@apple.com>
108
109         Don't do logging from Range::collectSelectionRects() on iOS
110         https://bugs.webkit.org/show_bug.cgi?id=127999
111
112         Reviewed by Enrica Casucci.
113
114         Remove some logging code that printed Range stuff in debug builds.
115
116         * dom/Range.cpp:
117         (WebCore::Range::collectSelectionRects):
118
119 2014-01-30  Simon Fraser  <simon.fraser@apple.com>
120
121         Make iOS fixed layer registration more like OS X
122         https://bugs.webkit.org/show_bug.cgi?id=127983
123
124         Reviewed by Antti Koivisto.
125
126         Remove some #if PLATFORM(IOS) in the code related to registering
127         viewport-constrained layers. The code behaves correctly now in WK1
128         and WK2 based on the presence of a ScrollingCoordinator.
129
130         * rendering/RenderLayerCompositor.cpp:
131         (WebCore::RenderLayerCompositor::flushPendingLayerChanges):
132         (WebCore::nearestScrollingCoordinatorAncestor):
133         (WebCore::RenderLayerCompositor::registerOrUpdateViewportConstrainedLayer):
134         (WebCore::RenderLayerCompositor::unregisterViewportConstrainedLayer):
135
136 2014-01-31  Commit Queue  <commit-queue@webkit.org>
137
138         Unreviewed, rolling out r163165.
139         http://trac.webkit.org/changeset/163165
140         https://bugs.webkit.org/show_bug.cgi?id=127997
141
142         broke 2 fast/table tests (Requested by kling on #webkit).
143
144         * rendering/RenderTable.cpp:
145         (WebCore::RenderTable::updateLogicalWidth):
146         (WebCore::RenderTable::computePreferredLogicalWidths):
147
148 2014-01-31  Anders Carlsson  <andersca@apple.com>
149
150         Don't allocate a new XMLHttpRequestStaticData every time staticData() is called
151         https://bugs.webkit.org/show_bug.cgi?id=127996
152
153         Reviewed by Andreas Kling.
154
155         std::once_flag should be static.
156
157         * xml/XMLHttpRequest.cpp:
158         (WebCore::staticData):
159
160 2014-01-31  Zalan Bujtas  <zalan@apple.com>
161
162         Subpixel rendering: Change RenderBoxModelObject's border functions' signature to support subpixel border painting.
163         https://bugs.webkit.org/show_bug.cgi?id=127975
164
165         Reviewed by Simon Fraser.
166
167         From int to LayoutUnit.
168
169         Covered by existing tests. No change in functionality.
170
171         * platform/text/TextStream.cpp:
172         (WebCore::TextStream::operator<<):
173         * platform/text/TextStream.h:
174         * rendering/RenderBoxModelObject.cpp:
175         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
176         * rendering/RenderBoxModelObject.h:
177         (WebCore::RenderBoxModelObject::borderTop):
178         (WebCore::RenderBoxModelObject::borderBottom):
179         (WebCore::RenderBoxModelObject::borderLeft):
180         (WebCore::RenderBoxModelObject::borderRight):
181         (WebCore::RenderBoxModelObject::borderBefore):
182         (WebCore::RenderBoxModelObject::borderAfter):
183         (WebCore::RenderBoxModelObject::borderStart):
184         (WebCore::RenderBoxModelObject::borderEnd):
185         * rendering/RenderElement.cpp:
186         (WebCore::RenderElement::repaintAfterLayoutIfNeeded):
187         * rendering/RenderTable.cpp:
188         (WebCore::RenderTable::borderBefore):
189         (WebCore::RenderTable::borderAfter):
190         * rendering/RenderTable.h:
191         * rendering/RenderTableCell.cpp:
192         (WebCore::RenderTableCell::borderLeft):
193         (WebCore::RenderTableCell::borderRight):
194         (WebCore::RenderTableCell::borderTop):
195         (WebCore::RenderTableCell::borderBottom):
196         (WebCore::RenderTableCell::borderStart):
197         (WebCore::RenderTableCell::borderEnd):
198         (WebCore::RenderTableCell::borderBefore):
199         (WebCore::RenderTableCell::borderAfter):
200         * rendering/RenderTableCell.h:
201
202 2014-01-31  Brady Eidson  <beidson@apple.com>
203
204         IDB: Index writing
205         <rdar://problem/15899973> and https://bugs.webkit.org/show_bug.cgi?id=127868
206
207         Reviewed by Anders Carlsson.
208
209         * Modules/indexeddb/IDBDatabaseBackend.cpp:
210         (WebCore::IDBDatabaseBackend::openConnectionInternal): Remove outdated comment and ASSERT.
211
212         * Modules/indexeddb/IDBObjectStore.cpp:
213         (WebCore::IDBObjectStore::createIndex): Conditionalize a block of code that is LevelDB-only.
214
215         Remove getColumnBlob().  Nobody used it, and it was dangerous because it reset the statement:
216         * platform/sql/SQLiteStatement.cpp:
217         * platform/sql/SQLiteStatement.h:
218         * WebCore.exp.in:
219
220 2014-01-30  László Langó  <lango@inf.u-szeged.hu>
221
222         [CSS Grid Layout] Do log(n) search in the named line vectors when positioning named line spans.
223         https://bugs.webkit.org/show_bug.cgi?id=125396
224
225         Reviewed by Andreas Kling.
226
227         Implement the suggested FIXMEs and do a log search in the named line
228         vectors. This maintains the previous (somewhat tricky) behavior by
229         using std::lower_bound and std::upper_bound. No difference in existing
230         performance tests, but should scale much better for big grids.
231
232         Backported from Blink:
233         https://chromium.googlesource.com/chromium/blink/+/9fc477af0be708c490a6b90e65e412b0c22b161f
234
235         No new tests, no behavior change.
236
237         * rendering/RenderGrid.cpp:
238         (WebCore::RenderGrid::resolveRowStartColumnStartNamedGridLinePositionAgainstOppositePosition):
239         (WebCore::RenderGrid::resolveRowEndColumnEndNamedGridLinePositionAgainstOppositePosition):
240
241 2014-01-31  László Langó  <lango@inf.u-szeged.hu>
242
243         Fix table sizing when 'max-width' is used.
244         https://bugs.webkit.org/show_bug.cgi?id=115156
245
246         Reviewed by Andreas Kling.
247
248         r143534 make <table> abide by 'max-width' all the time which is wrong.
249         Per the CSS specification, a table should be wide enough to fit its
250         content, regardless of 'max-width'.
251
252         r140479 fixed part of the regression from that change but made the
253         same fatal mistake by constraining min-content to fit 'max-width'.
254
255         The fix is to avoid constraining min-content and ensure that the table
256         logical width is at least its min-content size.
257
258         Backported from Blink:
259         https://chromium.googlesource.com/chromium/blink/+/0bca0dec4895aeeb2054ba36316e984e4ebed06f
260
261         Test: fast/table/html-table-width-max-width-constrained.html
262
263         * rendering/RenderTable.cpp:
264         (WebCore::RenderTable::updateLogicalWidth):
265         (WebCore::RenderTable::computePreferredLogicalWidths):
266
267 2014-01-30  Simon Fraser  <simon.fraser@apple.com>
268
269         Fix iOS build after r163156.
270         
271         Need to convert LayoutSizes to FloatSizes.
272
273         * bindings/objc/DOMUIKitExtensions.mm:
274         (-[DOMNode borderRadii]):
275
276 2014-01-30  Zalan Bujtas  <zalan@apple.com>
277
278         Subpixel rendering: Change drawRect()/drawLine() signature to support subpixel rendering.
279         https://bugs.webkit.org/show_bug.cgi?id=127961
280
281         Reviewed by Simon Fraser.
282
283         IntRect/IntPoint -> FloatRect/FloatPoint.
284
285         Covered by existing tests. No change in functionality.
286
287         * platform/graphics/GraphicsContext.h:
288         * platform/graphics/cairo/GraphicsContextCairo.cpp:
289         (WebCore::GraphicsContext::drawRect):
290         (WebCore::GraphicsContext::drawLine):
291         * platform/graphics/cg/GraphicsContextCG.cpp:
292         (WebCore::GraphicsContext::drawRect):
293         (WebCore::GraphicsContext::drawLine): Keep 'distance' int for DottedStroke and DashedStroke for now.
294         * platform/graphics/wince/GraphicsContextWinCE.cpp:
295         (WebCore::GraphicsContext::drawRect):
296         (WebCore::GraphicsContext::drawLine):
297
298 2014-01-30  Simon Fraser  <simon.fraser@apple.com>
299
300         Remove ScrollingCoordinator::setLayerIsContainerForFixedPositionLayers() which is no longer used
301         https://bugs.webkit.org/show_bug.cgi?id=127981
302
303         Reviewed by Andreas Kling.
304
305         setLayerIsContainerForFixedPositionLayers() was only used by Chromium and Blackberry,
306         so remove it.
307         
308         This allows the removal of RenderLayerBacking::registerScrollingLayers(),
309         moving the single useful line of code to the caller.
310
311         * page/scrolling/ScrollingCoordinator.h:
312         * rendering/RenderLayerBacking.cpp:
313         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
314         * rendering/RenderLayerBacking.h:
315         * rendering/RenderLayerCompositor.cpp:
316         (WebCore::RenderLayerCompositor::ensureRootLayer):
317
318 2014-01-30  Simon Fraser  <simon.fraser@apple.com>
319
320         Some fixed position elements disappear in WK2 on iOS
321         https://bugs.webkit.org/show_bug.cgi?id=127977
322
323         Reviewed by Tim Horton.
324
325         Use the appropriate rectangle to ensure that on iOS we don't 
326         consider a fixed element outside the viewport when zoomed in,
327         and therefore never make a compositing layer for it.
328
329         Also remove the iOS-specific code in RenderLayerCompositor::requiresCompositingForPosition(),
330         since it's OK to use the common code. Doing so requires that we
331         set the "acceleratedCompositingForFixedPositionEnabled" setting to true
332         for iOS, so do so.
333
334         * page/Settings.cpp:
335         * page/Settings.in:
336         * rendering/RenderLayerCompositor.cpp:
337         (WebCore::RenderLayerCompositor::requiresCompositingForPosition):
338
339 2014-01-30  Zalan Bujtas  <zalan@apple.com>
340
341         Subpixel rendering: Make RoundedRect layout unit aware.
342         https://bugs.webkit.org/show_bug.cgi?id=127779
343
344         Reviewed by Simon Fraser.
345
346         In order to draw hairline borders, RoundedRect needs to be
347         LayoutUnit based.
348
349         No change in behavior.
350
351         * platform/graphics/GraphicsContext.cpp:
352         (WebCore::GraphicsContext::fillRoundedRect):
353         * platform/graphics/GraphicsContext.h:
354         * platform/graphics/RoundedRect.cpp:
355         (WebCore::RoundedRect::Radii::scale):
356         (WebCore::RoundedRect::Radii::expand):
357         (WebCore::RoundedRect::inflateWithRadii):
358         (WebCore::RoundedRect::RoundedRect):
359         (WebCore::RoundedRect::intersectsQuad):
360         * platform/graphics/RoundedRect.h:
361         (WebCore::RoundedRect::Radii::Radii):
362         (WebCore::RoundedRect::Radii::setTopLeft):
363         (WebCore::RoundedRect::Radii::setTopRight):
364         (WebCore::RoundedRect::Radii::setBottomLeft):
365         (WebCore::RoundedRect::Radii::setBottomRight):
366         (WebCore::RoundedRect::Radii::topLeft):
367         (WebCore::RoundedRect::Radii::topRight):
368         (WebCore::RoundedRect::Radii::bottomLeft):
369         (WebCore::RoundedRect::Radii::bottomRight):
370         (WebCore::RoundedRect::Radii::expand):
371         (WebCore::RoundedRect::Radii::shrink):
372         (WebCore::RoundedRect::rect):
373         (WebCore::RoundedRect::setRect):
374         (WebCore::RoundedRect::move):
375         (WebCore::RoundedRect::inflate):
376         (WebCore::RoundedRect::expandRadii):
377         (WebCore::RoundedRect::shrinkRadii):
378         * platform/graphics/ShadowBlur.cpp:
379         (WebCore::ScratchBuffer::setCachedShadowValues):
380         (WebCore::ScratchBuffer::setCachedInsetShadowValues):
381         (WebCore::computeSliceSizesFromRadii):
382         (WebCore::ShadowBlur::templateSize):
383         (WebCore::ShadowBlur::drawRectShadow):
384         (WebCore::ShadowBlur::drawInsetShadow):
385         (WebCore::ShadowBlur::drawRectShadowWithoutTiling):
386         (WebCore::ShadowBlur::drawInsetShadowWithoutTiling):
387         (WebCore::ShadowBlur::drawInsetShadowWithTiling):
388         (WebCore::ShadowBlur::drawRectShadowWithTiling):
389         (WebCore::ShadowBlur::drawLayerPieces):
390         (WebCore::ShadowBlur::beginShadowLayer):
391         * platform/graphics/ShadowBlur.h:
392         * platform/graphics/cairo/GraphicsContextCairo.cpp:
393         (WebCore::GraphicsContext::clipOut):
394         (WebCore::GraphicsContext::fillRoundedRect):
395         (WebCore::GraphicsContext::fillRectWithRoundedHole):
396         * platform/graphics/cg/GraphicsContextCG.cpp:
397         (WebCore::GraphicsContext::platformInit):
398         * platform/graphics/wince/GraphicsContextWinCE.cpp:
399         (WebCore::GraphicsContext::clipOut):
400         (WebCore::GraphicsContext::fillRoundedRect):
401         * rendering/RenderBoxModelObject.cpp:
402         (WebCore::RenderBoxModelObject::paintOneBorderSide):
403         (WebCore::calculateSideRect):
404         (WebCore::RenderBoxModelObject::paintBorderSides):
405         (WebCore::RenderBoxModelObject::paintBorder):
406         (WebCore::RenderBoxModelObject::clipBorderSidePolygon):
407         (WebCore::calculateSideRectIncludingInner):
408         (WebCore::calculateAdjustedInnerBorder):
409         (WebCore::areaCastingShadowInHole):
410         (WebCore::RenderBoxModelObject::paintBoxShadow):
411         * rendering/RenderBoxModelObject.h:
412         * rendering/RenderThemeSafari.cpp:
413         (WebCore::RenderThemeSafari::paintMenuListButtonGradients):
414         (WebCore::RenderThemeSafari::paintSliderTrack):
415
416 2014-01-30  Martin Robinson  <mrobinson@igalia.com>
417
418         [GTK] [CMake] Add support for building against GTK+ 2
419         https://bugs.webkit.org/show_bug.cgi?id=127959
420
421         Reviewed by Anders Carlsson.
422
423         * PlatformGTK.cmake: Use the new API version variable and don't use GTK3 directly.
424
425 2014-01-30  Jessie Berlin  <jberlin@apple.com>
426
427         Speculative build fix.
428
429         * page/animation/CSSPropertyAnimation.cpp:
430
431 2014-01-30  Zalan Bujtas  <zalan@apple.com>
432
433         Subpixel rendering: Change BorderData's width from unsigned to float to enable subpixel border painting.
434         https://bugs.webkit.org/show_bug.cgi?id=127949
435
436         Reviewed by Andreas Kling.
437
438         Covered by existing tests. No change in functionality.
439
440         * css/DeprecatedStyleBuilder.cpp:
441         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
442         * page/animation/CSSPropertyAnimation.cpp:
443         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
444         * rendering/RenderTable.cpp:
445         (WebCore::RenderTable::calcBorderStart):
446         (WebCore::RenderTable::calcBorderEnd):
447         * rendering/style/BorderValue.h:
448         (WebCore::BorderValue::BorderValue):
449         (WebCore::BorderValue::width):
450         * rendering/style/RenderStyle.cpp:
451         (WebCore::RenderStyle::borderBeforeWidth):
452         (WebCore::RenderStyle::borderAfterWidth):
453         (WebCore::RenderStyle::borderStartWidth):
454         (WebCore::RenderStyle::borderEndWidth):
455         * rendering/style/RenderStyle.h:
456
457 2014-01-30  David Kilzer  <ddkilzer@apple.com>
458
459         Add security-checked cast for WebCore::CachedImage
460         <http://webkit.org/b/127967>
461
462         Reviewed by Darin Adler.
463
464         * loader/cache/CachedImage.h:
465         (WebCore::toCachedImage): Add.
466         (WebCore::toCachedImageManual): Add.
467         * loader/cache/CachedResource.h:
468         (CACHED_RESOURCE_TYPE_CASTS): Add macro.
469
470         * loader/cache/CachedImage.cpp:
471         (WebCore::CachedImage::switchClientsToRevalidatedResource):
472         (WebCore::CachedImage::resumeAnimatingImagesForLoader):
473         * loader/cache/CachedResourceLoader.cpp:
474         (WebCore::CachedResourceLoader::requestImage):
475         * loader/cache/MemoryCache.cpp:
476         (WebCore::MemoryCache::removeImageFromCache):
477         - Use toCachedImage() and toCachedImageManual().
478
479 2014-01-30  Simon Fraser  <simon.fraser@apple.com>
480
481         Fixed position objects are clipped in iOS WK2
482         https://bugs.webkit.org/show_bug.cgi?id=127974
483
484         Reviewed by Darin Adler.
485         
486         We clip compositing layers for fixed position objects to the viewport
487         to avoid huge layers. However, because iOS changes the fixed position
488         rect when zooming, we need a different rect for iOS.
489         
490         In WK1 (when we have a platformWidget), we can use
491         visibleContentRect(ScrollableArea::LegacyIOSDocumentVisibleRect)
492         which is effectively the whole document. However in WK2 this is
493         the real visibleContentRect(), so there we use unscaledDocumentRect().
494
495         * page/FrameView.cpp:
496         (WebCore::FrameView::viewportConstrainedExtentRect):
497         * page/FrameView.h:
498         * rendering/RenderLayerBacking.cpp:
499         (WebCore::RenderLayerBacking::updateCompositedBounds):
500
501 2014-01-28  Timothy Hatcher  <timothy@apple.com>
502
503         Add column number and call timing support to LegacyProfiler.
504
505         https://bugs.webkit.org/show_bug.cgi?id=127764
506
507         Reviewed by Joseph Pecoraro.
508
509         * bindings/js/ScriptProfile.cpp:
510         (WebCore::ScriptProfile::idleTime):
511         (WebCore::buildInspectorObjectFor):
512         (WebCore::ScriptProfile::buildInspectorObject):
513         * bindings/js/ScriptProfile.h:
514         * inspector/InspectorHeapProfilerAgent.cpp:
515         (WebCore::InspectorHeapProfilerAgent::createSnapshotHeader):
516         * inspector/InspectorProfilerAgent.cpp:
517         (WebCore::InspectorProfilerAgent::createSnapshotHeader):
518         (WebCore::InspectorProfilerAgent::getCPUProfile):
519         * inspector/ScriptProfileNode.idl:
520         * inspector/TimelineRecordFactory.cpp:
521         (WebCore::TimelineRecordFactory::appendProfile):
522         * inspector/protocol/Profiler.json:
523
524 2014-01-26  Timothy Hatcher  <timothy@apple.com>
525
526         Include profile with FunctionCall and EvaluateScript Timeline records.
527
528         https://bugs.webkit.org/show_bug.cgi?id=127663
529
530         Reviewed by Joseph Pecoraro.
531
532         * bindings/js/JSCallbackData.cpp:
533         (WebCore::JSCallbackData::invokeCallback):
534         * bindings/js/JSEventListener.cpp:
535         (WebCore::JSEventListener::handleEvent):
536         * bindings/js/JSMutationCallback.cpp:
537         (WebCore::JSMutationCallback::call):
538         * bindings/js/ScheduledAction.cpp:
539         (WebCore::ScheduledAction::executeFunctionInContext):
540         * bindings/js/ScriptController.cpp:
541         (WebCore::ScriptController::evaluateInWorld):
542         * inspector/InspectorController.cpp:
543         (WebCore::InspectorController::didCallInjectedScriptFunction):
544         * inspector/InspectorController.h:
545         * inspector/InspectorInstrumentation.cpp:
546         (WebCore::InspectorInstrumentation::didCallFunctionImpl):
547         (WebCore::InspectorInstrumentation::didEvaluateScriptImpl):
548         * inspector/InspectorInstrumentation.h:
549         (WebCore::InspectorInstrumentation::didCallFunction):
550         (WebCore::InspectorInstrumentation::didEvaluateScript):
551         * inspector/InspectorTimelineAgent.cpp:
552         (WebCore::InspectorTimelineAgent::willCallFunction):
553         (WebCore::InspectorTimelineAgent::didCallFunction):
554         (WebCore::InspectorTimelineAgent::willEvaluateScript):
555         (WebCore::InspectorTimelineAgent::didEvaluateScript):
556         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
557         * inspector/InspectorTimelineAgent.h:
558         * inspector/TimelineRecordFactory.cpp:
559         (WebCore::TimelineRecordFactory::appendProfile):
560         * inspector/TimelineRecordFactory.h:
561         * inspector/WorkerInspectorController.cpp:
562         (WebCore::WorkerInspectorController::didCallInjectedScriptFunction):
563         * inspector/WorkerInspectorController.h:
564
565 2014-01-30  Joseph Pecoraro  <pecoraro@apple.com>
566
567         Remove now-empty ScriptController::setCaptureCallStackForUncaughtExceptions
568         https://bugs.webkit.org/show_bug.cgi?id=127964
569
570         Reviewed by Timothy Hatcher.
571
572         Remove empty function. It was only needed by v8 at one point.
573
574         * bindings/js/ScriptController.h:
575         * bindings/js/ScriptController.cpp:
576         Remove empty function.
577
578         * inspector/InspectorConsoleAgent.h:
579         * inspector/InspectorConsoleAgent.cpp:
580         (WebCore::InspectorConsoleAgent::enable):
581         (WebCore::InspectorConsoleAgent::disable):
582         Remove callers and related tracking state.
583
584 2014-01-30  Roger Fong  <roger_fong@apple.com>
585
586         WebGL load policy should be queried for the top level document.
587         https://bugs.webkit.org/show_bug.cgi?id=127937.
588         <rdar://problem/15950122>
589
590         Reviewed by Timothy Horton.
591
592         * html/HTMLCanvasElement.cpp:
593         (WebCore::HTMLCanvasElement::getContext):
594
595 2014-01-27  Jeffrey Pfau  <jpfau@apple.com>
596
597         Add a method for schemes to be registered as supporting cache partitioning
598         https://bugs.webkit.org/show_bug.cgi?id=127739
599
600         Reviewed by Darin Adler.
601
602         Currently, this assumes that schemes supporting cache partitioning
603         also support (scheme, host) doubles for the scheme. Furthermore,
604         the scheme is currently discarded when partitioning and is only
605         checked to ensure that partitioning is supported for that scheme: it
606         is assumed that all origins with the same host double should be binned
607         together, regardless of scheme.
608
609         * WebCore.exp.in:
610         * page/SecurityOrigin.cpp:
611         (WebCore::SecurityOrigin::cachePartition):
612         * platform/SchemeRegistry.cpp:
613         (WebCore::CachePartitioningSchemes):
614         (WebCore::SchemeRegistry::registerURLSchemeAsCachePartitioned):
615         (WebCore::SchemeRegistry::shouldPartitionCacheForURLScheme):
616         * platform/SchemeRegistry.h:
617
618 2014-01-30  Jer Noble  <jer.noble@apple.com>
619
620         [iOS] Convert blocks to lambdas in iOS Fullscreen code.
621         https://bugs.webkit.org/show_bug.cgi?id=127946
622
623         Reviewed by Anders Carlsson.
624
625         Pushing a block into a std::function will eventually cause a crash, since std::function
626         does not know about Block_copy and Block_release.
627
628         Lamdas can be intrinsicly converted to blocks, but not vice versa. Switch over all the
629         blocks in the new iOS Fullscreen code to use lamdas, and use the ref-counted this object
630         directly rather than implicitly.
631
632         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
633         (-[WebVideoFullscreenController exitFullscreen]):
634         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
635         (WebVideoFullscreenInterfaceAVKit::setVideoLayer):
636         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
637         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
638
639 2014-01-30  Martin Robinson  <mrobinson@igalia.com>
640
641         [GTK] [CMake] Add a "make dist" target
642         https://bugs.webkit.org/show_bug.cgi?id=116378
643
644         Reviewed by Gustavo Noronha Silva.
645
646         * CMakeLists.txt: Don't build WebKitVersion.h for WebKitGTK+. We don't use it
647         and we don't want to distribute the dependency.
648
649 2014-01-30  Brady Eidson  <beidson@apple.com>
650
651         IDB: ObjectStore cursor advance() support
652         <rdar://problem/15779645> and https://bugs.webkit.org/show_bug.cgi?id=127866
653
654         Reviewed by Sam Weinig.
655
656         Add IDBKeyData sorting for database collation:
657         * Modules/indexeddb/IDBKeyData.cpp:
658         (WebCore::IDBKeyData::compare):
659         * Modules/indexeddb/IDBKeyData.h:
660
661         * WebCore.exp.in:
662
663         * platform/sql/SQLiteTransaction.h:
664         (WebCore::SQLiteTransaction::database):
665
666 2014-01-30  David Kilzer  <ddkilzer@apple.com>
667
668         De-virtual-ize CachedResource::isImage()
669         <http://webkit.org/b/127936>
670
671         Reviewed by Andreas Kling.
672
673         Also replace explicit type() checks with isImage().
674
675         * loader/SubresourceLoader.cpp:
676         (WebCore::SubresourceLoader::willSendRequest): Use isImage().
677         * loader/cache/CachedImage.h:
678         (WebCore::CachedResource::isImage): Remove virtual override.
679         * loader/cache/CachedResource.h:
680         (WebCore::CachedResource::isImage): Check type() instead of
681         defining a virtual method that returns false by default.
682         * loader/cache/CachedResourceLoader.cpp:
683         (WebCore::CachedResourceLoader::reloadImagesIfNotDeferred): Use isImage().
684
685 2014-01-30  Eric Carlson  <eric.carlson@apple.com>
686
687         [iOS] don't update media layers on main thread when using AVFoundation
688         https://bugs.webkit.org/show_bug.cgi?id=127931
689
690         Reviewed by Simon Fraser.
691
692         * platform/graphics/GraphicsLayerClient.h:
693         (WebCore::GraphicsLayerClient::mediaLayerMustBeUpdatedOnMainThread): Add mediaLayerMustBeUpdatedOnMainThread.
694
695         * platform/graphics/ca/GraphicsLayerCA.cpp:
696         (WebCore::GraphicsLayerCA::mediaLayerMustBeUpdatedOnMainThread): Ask the client if graphics layers
697             should be updated on the main thread.
698
699         * rendering/RenderLayerBacking.cpp:
700         (WebCore::RenderLayerBacking::mediaLayerMustBeUpdatedOnMainThread): New, check settings to see
701             if video plug-in proxy is enabled.
702         * rendering/RenderLayerBacking.h:
703
704 2014-01-30  Jer Noble  <jer.noble@apple.com>
705
706         [MediaControls][iOS] Fix a couple of UI bugs in the iOS Media Controls
707         https://bugs.webkit.org/show_bug.cgi?id=127929
708
709         Reviewed by Eric Carlson.
710
711         Two UI bugs in the iOS Media Controls: the text in the controls should use the apple
712         system font rather than the webkit small control font, and the buttons in the controls
713         are clipped due to an "off by one" error when calculating the SVG image dimensions.
714
715         * Modules/mediacontrols/mediaControlsiOS.css:
716         (::-webkit-media-controls):
717         (audio::-webkit-media-controls-play-button):
718         (audio::-webkit-media-controls-fullscreen-button):
719         (audio::-webkit-media-controls-time-remaining-display):
720
721 2014-01-30  Jeremy Jones  <jeremyj@apple.com>
722
723         Refactor WebVideoFullscreenController separating AVKit from MediaElement.
724         https://bugs.webkit.org/show_bug.cgi?id=127762
725
726         Reviewed by Jer Noble.
727
728         Refactor WebVideoFullscreenControllerAVKit implementation into two abstract interfaces with concrete implementations: 
729         WebVideoFullscreenModel, WebVideoFullscreenInterface, WebVideoFullscreenModelMediaElement, WebVideoFullscreenInterfaceAVKit.
730
731         * WebCore.xcodeproj/project.pbxproj:
732         * platform/ios/WebVideoFullscreenControllerAVKit.h:
733         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
734         (-[WebVideoFullscreenController init]):
735         (-[WebVideoFullscreenController dealloc]):
736         (-[WebVideoFullscreenController enterFullscreen:]):
737         (-[WebVideoFullscreenController exitFullscreen]):
738         * platform/ios/WebVideoFullscreenInterface.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
739         (WebCore::WebVideoFullscreenInterface::~WebVideoFullscreenInterface):
740         * platform/ios/WebVideoFullscreenInterfaceAVKit.h: Added.
741         (WebCore::WebVideoFullscreenInterfaceAVKit::~WebVideoFullscreenInterfaceAVKit):
742         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm: Added.
743         (NS_ENUM):
744         (-[WebAVPlayerController init]):
745         (-[WebAVPlayerController dealloc]):
746         (-[WebAVPlayerController forwardingTargetForSelector:]):
747         (-[WebAVPlayerController playerViewController:shouldDismissWithReason:]):
748         (-[WebAVPlayerController play:]):
749         (-[WebAVPlayerController pause:]):
750         (-[WebAVPlayerController togglePlayback:]):
751         (-[WebAVPlayerController isPlaying]):
752         (-[WebAVPlayerController setPlaying:]):
753         (+[WebAVPlayerController keyPathsForValuesAffectingPlaying]):
754         (-[WebAVPlayerController seekToTime:]):
755         (:m_videoFullscreenModel):
756         (WebVideoFullscreenInterfaceAVKit::setWebVideoFullscreenModel):
757         (WebVideoFullscreenInterfaceAVKit::setDuration):
758         (WebVideoFullscreenInterfaceAVKit::setCurrentTime):
759         (WebVideoFullscreenInterfaceAVKit::setRate):
760         (WebVideoFullscreenInterfaceAVKit::setVideoDimensions):
761         (WebVideoFullscreenInterfaceAVKit::setVideoLayer):
762         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
763         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
764         * platform/ios/WebVideoFullscreenModel.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
765         (WebCore::WebVideoFullscreenModel::~WebVideoFullscreenModel):
766         * platform/ios/WebVideoFullscreenModelMediaElement.h: Copied from Source/WebCore/platform/ios/WebVideoFullscreenControllerAVKit.h.
767         (WebCore::WebVideoFullscreenModelMediaElement::~WebVideoFullscreenModelMediaElement):
768         (WebCore::WebVideoFullscreenModelMediaElement::setWebVideoFullscreenInterface):
769         * platform/ios/WebVideoFullscreenModelMediaElement.mm: Added.
770         (WebVideoFullscreenModelMediaElement::setMediaElement):
771         (WebVideoFullscreenModelMediaElement::handleEvent):
772         (WebVideoFullscreenModelMediaElement::requestExitFullScreen):
773         (WebVideoFullscreenModelMediaElement::play):
774         (WebVideoFullscreenModelMediaElement::pause):
775         (WebVideoFullscreenModelMediaElement::togglePlayState):
776         (WebVideoFullscreenModelMediaElement::seekToTime):
777         (WebVideoFullscreenModelMediaElement::didExitFullscreen):
778
779 2014-01-30  Jer Noble  <jer.noble@apple.com>
780
781         [MediaControls][iOS] Add a "start load" button.
782         https://bugs.webkit.org/show_bug.cgi?id=127861
783
784         Reviewed by Eric Carlson.
785
786         Add a "start load" button which replaces the controls on platforms
787         where inline playback is not allowed, or when playback without a
788         user gesture is not allowed.
789
790         Add an accessor to MediaControlsHost to query whether inline playback is allowed.:
791         * Modules/mediacontrols/MediaControlsHost.cpp:
792         (WebCore::MediaControlsHost::mediaPlaybackAllowsInline):
793         * Modules/mediacontrols/MediaControlsHost.h:
794         * Modules/mediacontrols/MediaControlsHost.idl:
795         * html/HTMLMediaElement.h:
796         (WebCore::HTMLMediaElement::mediaSession):
797
798         Update the base controller to allow more functions to be overridden:
799         * Modules/mediacontrols/mediaControlsApple.js:
800         (Controller):
801         (Controller.prototype.shouldHaveAnyUI):
802         (Controller.prototype.updateBase):
803         (Controller.prototype.setControlsType):
804         (Controller.prototype.updateControls):
805         (Controller.prototype.handleFullscreenChange):
806
807         Add the new button, and allow for switching between "start", "inline", and "fullscreen" controls:
808         * Modules/mediacontrols/mediaControlsiOS.js:
809         (ControllerIOS.prototype.addVideoListeners):
810         (ControllerIOS.prototype.removeVideoListeners):
811         (ControllerIOS.prototype.createBase):
812         (ControllerIOS.prototype.shouldHaveStartPlaybackButton):
813         (ControllerIOS.prototype.shouldHaveControls):
814         (ControllerIOS.prototype.shouldHaveAnyUI):
815         (ControllerIOS.prototype.createControls):
816         (ControllerIOS.prototype.setControlsType):
817         (ControllerIOS.prototype.addStartPlaybackControls):
818         (ControllerIOS.prototype.removeStartPlaybackControls):
819         (ControllerIOS.prototype.updateControls):
820         (ControllerIOS.prototype.handleStartPlaybackButtonTouchStart):
821         (ControllerIOS.prototype.handleStartPlaybackButtonTouchEnd):
822         (ControllerIOS.prototype.handleStartPlaybackButtonTouchCancel):
823         (ControllerIOS.prototype.handleReadyStateChange):
824
825         Add the new art:
826         * Modules/mediacontrols/mediaControlsiOS.css:
827         (audio::-webkit-media-controls-start-playback-button):
828         (audio::-webkit-media-controls-start-playback-button.failed):
829
830 2014-01-30  Tim Horton  <timothy_horton@apple.com>
831
832         WebKit2 View Gestures (Swipe): Provide a way for clients to provide views to swipe
833         https://bugs.webkit.org/show_bug.cgi?id=127891
834         <rdar://problem/15931413>
835
836         Reviewed by Anders Carlsson.
837
838         * WebCore.exp.in:
839         A surprising export.
840
841 2014-01-30  Beth Dakin  <bdakin@apple.com>
842
843         https://bugs.webkit.org/show_bug.cgi?id=127371
844         Explore new API that could be used to help build infinitely scrolling websites
845         -and corresponding-
846         <rdar://problem/15244768>
847
848         Reviewed by Sam Weinig.
849
850         This patch adds 4 new events called webkitwillrevealbottom, webkitwillrevealtop, 
851         webkitwillrevealleft, and webkitwillrevealright. These events will fire when the 
852         user has scrolled close to corresponding edge of the document. Right now that is 
853         defined to be one viewport away from the corresponding edge. 
854
855         FrameView::scrollPositionChanged() and 
856         FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
857         representing the old scroll position and the new position.
858         * WebCore.exp.in:
859
860         New events.
861         * dom/Document.h:
862         * dom/Document.idl:
863         * dom/Element.h:
864         * dom/Element.idl:
865         * dom/EventNames.h:
866         * html/HTMLAttributeNames.in:
867         * html/HTMLElement.cpp:
868         (WebCore::populateEventNameForAttributeLocalNameMap):
869         * page/DOMWindow.h:
870         * page/DOMWindow.idl:
871
872         Send oldPosition and newPosition to scrollPositionChanged().
873         * page/FrameView.cpp:
874         (WebCore::FrameView::setFixedVisibleContentRect):
875         (WebCore::FrameView::scrollPositionChangedViaPlatformWidget):
876
877         After sending scroll events, also call sendWillRevealEdgeEventsIfNeeded() to send 
878         the see if we should send the new will-reveal events.
879         (WebCore::FrameView::scrollPositionChanged):
880
881         Use the old position and the new position to determine if the events should be 
882         sent.
883         (WebCore::FrameView::sendWillRevealEdgeEventsIfNeeded):
884
885         Send new parameters to scrollPositionChanged().
886         (WebCore::FrameView::scrollTo):
887         (WebCore::FrameView::wheelEvent):
888         * page/FrameView.h:
889
890 2014-01-30  Szabolcs David  <davidsz@inf.u-szeged.hu>
891
892         [curl] Improve realm string parsing in WWW-Authenticate headers
893         https://bugs.webkit.org/show_bug.cgi?id=127421
894
895         Reviewed by Brent Fulgham.
896
897         The realm string contains quotes at the beginning and end - this is the
898         opposite of the libsoup implementation. Furthermore, if the header is
899         concatenated from two or more another headers, it contains more incorrect part.
900
901         * platform/network/curl/ResourceHandleManager.cpp:
902         (WebCore::removeLeadingAndTrailingQuotes):
903         (WebCore::getProtectionSpace):
904
905 2014-01-30  Anders Carlsson  <andersca@apple.com>
906
907         Modernize HTTPHeaderMap iteration
908         https://bugs.webkit.org/show_bug.cgi?id=127915
909
910         Reviewed by Andreas Kling.
911
912         * inspector/InspectorResourceAgent.cpp:
913         (WebCore::buildObjectForHeaders):
914         (WebCore::InspectorResourceAgent::willLoadXHR):
915         (WebCore::InspectorResourceAgent::replayXHR):
916         * loader/CrossOriginAccessControl.cpp:
917         (WebCore::isSimpleCrossOriginAccessRequest):
918         (WebCore::createAccessControlPreflightRequest):
919         * loader/CrossOriginPreflightResultCache.cpp:
920         (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders):
921         * loader/DocumentLoader.cpp:
922         (WebCore::DocumentLoader::responseReceived):
923         * loader/appcache/ApplicationCacheStorage.cpp:
924         (WebCore::ApplicationCacheStorage::store):
925         * loader/cache/CachedRawResource.cpp:
926         (WebCore::CachedRawResource::canReuse):
927         * loader/cache/CachedResource.cpp:
928         (WebCore::CachedResource::updateResponseAfterRevalidation):
929         * platform/network/HTTPHeaderMap.cpp:
930         (WebCore::HTTPHeaderMap::copyData):
931         * platform/network/ResourceRequestBase.cpp:
932         (WebCore::ResourceRequestBase::addHTTPHeaderFields):
933         * platform/network/cf/ResourceRequestCFNet.cpp:
934         (WebCore::setHeaderFields):
935         * platform/network/mac/ResourceRequestMac.mm:
936         (WebCore::ResourceRequest::doUpdatePlatformRequest):
937         * xml/XMLHttpRequest.cpp:
938         (WebCore::XMLHttpRequest::getAllResponseHeaders):
939
940 2014-01-30  Antti Koivisto  <antti@apple.com>
941
942         WebPage::determinePrimarySnapshottedPlugIn is slow
943         https://bugs.webkit.org/show_bug.cgi?id=127905
944
945         Reviewed by Anders Carlsson.
946
947         * WebCore.exp.in: New exports
948         * WebCore.xcodeproj/project.pbxproj:
949         * html/HTMLPlugInImageElement.h:
950         (WebCore::HTMLPlugInImageElement>): Add isElementOfType<>
951
952 2014-01-30  Csaba Osztrogonác  <ossy@webkit.org>
953
954         [SOUP] Fix the build if !ENABLE(WEB_TIMING)
955         https://bugs.webkit.org/show_bug.cgi?id=127906
956
957         Reviewed by Gustavo Noronha Silva.
958
959         * platform/network/soup/SoupNetworkSession.cpp:
960
961 2014-01-30  Andrei Bucur  <abucur@adobe.com>
962
963         Remove the ACCELERATED_COMPOSITING flag
964         https://bugs.webkit.org/show_bug.cgi?id=127833
965
966         Reviewed by Antti Koivisto.
967
968         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
969         mandatory.
970
971         Tests: No new tests, no functional change.
972
973         * css/MediaQueryEvaluator.cpp:
974         (WebCore::transform_3dMediaFeatureEval):
975         * css/StyleResolver.cpp:
976         (WebCore::StyleResolver::canShareStyleWithElement):
977         * dom/Document.cpp:
978         (WebCore::Document::setVisualUpdatesAllowed):
979         (WebCore::Document::recalcStyle):
980         (WebCore::Document::createRenderTree):
981         (WebCore::Document::documentWillBecomeInactive):
982         (WebCore::Document::documentDidResumeFromPageCache):
983         (WebCore::Document::windowScreenDidChange):
984         * dom/PseudoElement.cpp:
985         (WebCore::PseudoElement::~PseudoElement):
986         * history/CachedFrame.cpp:
987         (WebCore::CachedFrameBase::CachedFrameBase):
988         (WebCore::CachedFrameBase::restore):
989         (WebCore::CachedFrame::CachedFrame):
990         * history/CachedFrame.h:
991         * history/CachedPage.cpp:
992         (WebCore::CachedPage::restore):
993         * history/CachedPage.h:
994         * history/PageCache.cpp:
995         (WebCore::PageCache::PageCache):
996         (WebCore::PageCache::markPagesForDeviceScaleChanged):
997         * history/PageCache.h:
998         * html/HTMLCanvasElement.cpp:
999         (WebCore::HTMLCanvasElement::getContext):
1000         (WebCore::HTMLCanvasElement::reset):
1001         (WebCore::HTMLCanvasElement::paintsIntoCanvasBuffer):
1002         (WebCore::HTMLCanvasElement::createImageBuffer):
1003         * html/HTMLMediaElement.cpp:
1004         (WebCore::HTMLMediaElement::parseAttribute):
1005         * html/HTMLMediaElement.h:
1006         * html/canvas/CanvasRenderingContext.h:
1007         * html/canvas/CanvasRenderingContext2D.cpp:
1008         (WebCore::CanvasRenderingContext2D::didDraw):
1009         * html/canvas/CanvasRenderingContext2D.h:
1010         * html/canvas/WebGLRenderingContext.cpp:
1011         (WebCore::WebGLRenderingContext::markContextChanged):
1012         (WebCore::WebGLRenderingContext::reshape):
1013         (WebCore::WebGLRenderingContext::platformLayer):
1014         * html/canvas/WebGLRenderingContext.h:
1015         * inspector/InspectorController.cpp:
1016         (WebCore::InspectorController::InspectorController):
1017         * inspector/InspectorInstrumentation.cpp:
1018         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1019         (WebCore::InspectorInstrumentation::pseudoElementDestroyedImpl):
1020         * inspector/InspectorInstrumentation.h:
1021         (WebCore::InspectorInstrumentation::pseudoElementDestroyed):
1022         * inspector/InspectorLayerTreeAgent.cpp:
1023         * inspector/InstrumentingAgents.cpp:
1024         (WebCore::InstrumentingAgents::InstrumentingAgents):
1025         (WebCore::InstrumentingAgents::reset):
1026         * inspector/InstrumentingAgents.h:
1027         * loader/EmptyClients.h:
1028         * page/ChromeClient.h:
1029         * page/Frame.cpp:
1030         (WebCore::Frame::layerTreeAsText):
1031         (WebCore::Frame::deviceOrPageScaleFactorChanged):
1032         * page/Frame.h:
1033         * page/FrameView.cpp:
1034         (WebCore::FrameView::setFrameRect):
1035         (WebCore::FrameView::scheduleLayerFlushAllowingThrottling):
1036         (WebCore::FrameView::hasCompositedContent):
1037         (WebCore::FrameView::hasCompositedContentIncludingDescendants):
1038         (WebCore::FrameView::hasCompositingAncestor):
1039         (WebCore::FrameView::enterCompositingMode):
1040         (WebCore::FrameView::isEnclosedInCompositingLayer):
1041         (WebCore::FrameView::flushCompositingStateIncludingSubframes):
1042         (WebCore::FrameView::isSoftwareRenderable):
1043         (WebCore::FrameView::layout):
1044         (WebCore::FrameView::contentsInCompositedLayer):
1045         (WebCore::FrameView::scrollContentsFastPath):
1046         (WebCore::FrameView::scrollContentsSlowPath):
1047         (WebCore::FrameView::setIsOverlapped):
1048         (WebCore::FrameView::delegatesScrollingDidChange):
1049         (WebCore::FrameView::scrollPositionChanged):
1050         (WebCore::FrameView::updateCompositingLayersAfterScrolling):
1051         (WebCore::FrameView::visibleContentsResized):
1052         (WebCore::FrameView::addedOrRemovedScrollbar):
1053         (WebCore::FrameView::disableLayerFlushThrottlingTemporarilyForInteraction):
1054         (WebCore::FrameView::updateLayerFlushThrottlingInAllFrames):
1055         (WebCore::FrameView::adjustTiledBackingCoverage):
1056         (WebCore::FrameView::hasExtendedBackground):
1057         (WebCore::FrameView::extendedBackgroundRect):
1058         (WebCore::FrameView::setBackgroundExtendsBeyondPage):
1059         (WebCore::FrameView::performPostLayoutTasks):
1060         (WebCore::FrameView::paintContents):
1061         (WebCore::FrameView::setTracksRepaints):
1062         (WebCore::FrameView::resetTrackedRepaints):
1063         (WebCore::FrameView::setScrollingPerformanceLoggingEnabled):
1064         (WebCore::FrameView::setExposedRect):
1065         * page/FrameView.h:
1066         * page/Page.cpp:
1067         (WebCore::Page::setPageScaleFactor):
1068         (WebCore::Page::setDeviceScaleFactor):
1069         * page/Settings.cpp:
1070         (WebCore::Settings::setBackgroundShouldExtendBeyondPage):
1071         * page/animation/AnimationBase.cpp:
1072         (WebCore::AnimationBase::freezeAtTime):
1073         * page/animation/AnimationController.cpp:
1074         (WebCore::AnimationController::supportsAcceleratedAnimationOfProperty):
1075         * page/animation/CSSPropertyAnimation.cpp:
1076         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
1077         (WebCore::CSSPropertyAnimation::blendProperties):
1078         (WebCore::CSSPropertyAnimation::animationOfPropertyIsAccelerated):
1079         * page/animation/CSSPropertyAnimation.h:
1080         * page/animation/CompositeAnimation.cpp:
1081         (WebCore::CompositeAnimation::updateTransitions):
1082         * page/animation/ImplicitAnimation.cpp:
1083         (WebCore::ImplicitAnimation::animate):
1084         (WebCore::ImplicitAnimation::startAnimation):
1085         (WebCore::ImplicitAnimation::pauseAnimation):
1086         (WebCore::ImplicitAnimation::endAnimation):
1087         (WebCore::ImplicitAnimation::timeToNextService):
1088         * page/animation/KeyframeAnimation.cpp:
1089         (WebCore::KeyframeAnimation::animate):
1090         (WebCore::KeyframeAnimation::startAnimation):
1091         (WebCore::KeyframeAnimation::pauseAnimation):
1092         (WebCore::KeyframeAnimation::endAnimation):
1093         (WebCore::KeyframeAnimation::timeToNextService):
1094         * page/ios/FrameIOS.mm:
1095         (WebCore::Frame::viewportOffsetChanged):
1096         (WebCore::Frame::containsTiledBackingLayers):
1097         * page/scrolling/AsyncScrollingCoordinator.cpp:
1098         (WebCore::AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScroll):
1099         * page/scrolling/ScrollingCoordinator.cpp:
1100         (WebCore::ScrollingCoordinator::coordinatesScrollingForFrameView):
1101         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
1102         (WebCore::ScrollingCoordinator::verticalScrollbarLayerForScrollableArea):
1103         (WebCore::ScrollingCoordinator::scrollLayerForFrameView):
1104         (WebCore::ScrollingCoordinator::headerLayerForFrameView):
1105         (WebCore::ScrollingCoordinator::footerLayerForFrameView):
1106         (WebCore::ScrollingCoordinator::counterScrollingLayerForFrameView):
1107         (WebCore::ScrollingCoordinator::hasVisibleSlowRepaintViewportConstrainedObjects):
1108         * page/scrolling/ScrollingCoordinator.h:
1109         * platform/ScrollView.cpp:
1110         (WebCore::positionScrollCornerLayer):
1111         (WebCore::ScrollView::positionScrollbarLayers):
1112         (WebCore::ScrollView::paintScrollbars):
1113         (WebCore::ScrollView::paint):
1114         * platform/ScrollableArea.cpp:
1115         (WebCore::ScrollableArea::invalidateScrollbar):
1116         (WebCore::ScrollableArea::invalidateScrollCorner):
1117         (WebCore::ScrollableArea::horizontalScrollbarLayerDidChange):
1118         (WebCore::ScrollableArea::hasLayerForHorizontalScrollbar):
1119         (WebCore::ScrollableArea::hasLayerForVerticalScrollbar):
1120         (WebCore::ScrollableArea::hasLayerForScrollCorner):
1121         * platform/ScrollableArea.h:
1122         * platform/ScrollbarTheme.h:
1123         * platform/efl/EflScreenUtilities.cpp:
1124         (WebCore::applyFallbackCursor):
1125         * platform/graphics/GraphicsContext3D.h:
1126         * platform/graphics/GraphicsContext3DPrivate.cpp:
1127         (WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
1128         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
1129         * platform/graphics/GraphicsContext3DPrivate.h:
1130         * platform/graphics/GraphicsLayer.cpp:
1131         * platform/graphics/GraphicsLayer.h:
1132         * platform/graphics/GraphicsLayerAnimation.cpp:
1133         * platform/graphics/GraphicsLayerAnimation.h:
1134         * platform/graphics/GraphicsLayerClient.h:
1135         * platform/graphics/GraphicsLayerFactory.h:
1136         * platform/graphics/GraphicsLayerUpdater.cpp:
1137         * platform/graphics/GraphicsLayerUpdater.h:
1138         * platform/graphics/ImageBuffer.cpp:
1139         * platform/graphics/ImageBuffer.h:
1140         * platform/graphics/MediaPlayer.cpp:
1141         (WebCore::MediaPlayer::platformLayer):
1142         (WebCore::MediaPlayer::supportsAcceleratedRendering):
1143         * platform/graphics/MediaPlayer.h:
1144         * platform/graphics/MediaPlayerPrivate.h:
1145         * platform/graphics/PlatformLayer.h:
1146         * platform/graphics/TextTrackRepresentation.cpp:
1147         * platform/graphics/TextTrackRepresentation.h:
1148         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1149         (WebCore::MediaPlayerPrivateAVFoundation::currentRenderingMode):
1150         (WebCore::MediaPlayerPrivateAVFoundation::preferredRenderingMode):
1151         (WebCore::MediaPlayerPrivateAVFoundation::setUpVideoRendering):
1152         (WebCore::MediaPlayerPrivateAVFoundation::tearDownVideoRendering):
1153         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
1154         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h:
1155         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
1156         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::platformLayer):
1157         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::acceleratedRenderingStateChanged):
1158         * platform/graphics/ca/GraphicsLayerCA.cpp:
1159         * platform/graphics/ca/GraphicsLayerCA.h:
1160         * platform/graphics/ca/LayerFlushScheduler.cpp:
1161         * platform/graphics/ca/LayerFlushScheduler.h:
1162         * platform/graphics/ca/LayerFlushSchedulerClient.h:
1163         * platform/graphics/ca/PlatformCAAnimation.h:
1164         * platform/graphics/ca/PlatformCAFilters.h:
1165         * platform/graphics/ca/PlatformCALayer.h:
1166         * platform/graphics/ca/PlatformCALayerClient.h:
1167         * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp:
1168         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
1169         (PlatformCAAnimation::copyTimingFunctionsFrom):
1170         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
1171         * platform/graphics/ca/mac/PlatformCALayerMac.h:
1172         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
1173         (PlatformCALayerMac::enumerateRectsBeingDrawn):
1174         * platform/graphics/ca/win/AbstractCACFLayerTreeHost.h:
1175         * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
1176         * platform/graphics/ca/win/CACFLayerTreeHost.h:
1177         * platform/graphics/ca/win/CACFLayerTreeHostClient.h:
1178         * platform/graphics/ca/win/LayerChangesFlusher.cpp:
1179         * platform/graphics/ca/win/LayerChangesFlusher.h:
1180         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.cpp:
1181         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.h:
1182         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
1183         (PlatformCAAnimation::copyTimingFunctionsFrom):
1184         * platform/graphics/ca/win/PlatformCAFiltersWin.cpp:
1185         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
1186         (PlatformCALayerWin::createCompatibleLayer):
1187         * platform/graphics/ca/win/PlatformCALayerWin.h:
1188         * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp:
1189         (PlatformCALayerWinInternal::drawTile):
1190         * platform/graphics/ca/win/PlatformCALayerWinInternal.h:
1191         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
1192         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.h:
1193         * platform/graphics/cairo/DrawingBufferCairo.cpp:
1194         (WebCore::DrawingBuffer::paintCompositedResultsToCanvas):
1195         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
1196         (WebCore::GraphicsContext3D::platformLayer):
1197         * platform/graphics/cairo/ImageBufferCairo.cpp:
1198         (WebCore::ImageBuffer::platformLayer):
1199         * platform/graphics/efl/GraphicsContext3DEfl.cpp:
1200         (WebCore::GraphicsContext3D::platformLayer):
1201         * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
1202         * platform/graphics/efl/GraphicsContext3DPrivate.h:
1203         * platform/graphics/gpu/DrawingBuffer.h:
1204         * platform/graphics/gpu/LoopBlinnMathUtils.cpp:
1205         * platform/graphics/gpu/TilingData.cpp:
1206         * platform/graphics/gpu/mac/DrawingBufferMac.mm:
1207         (WebCore::DrawingBuffer::frontColorBuffer):
1208         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
1209         (WebCore::MediaPlayerPrivateGStreamerBase::triggerRepaint):
1210         (WebCore::MediaPlayerPrivateGStreamerBase::paint):
1211         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:
1212         * platform/graphics/ios/MediaPlayerPrivateIOS.h:
1213         * platform/graphics/ios/MediaPlayerPrivateIOS.mm:
1214         (WebCore::MediaPlayerPrivateIOS::supportsAcceleratedRendering):
1215         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
1216         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1217         (WebCore::MediaPlayerPrivateQTKit::createQTMovieLayer):
1218         (WebCore::MediaPlayerPrivateQTKit::destroyQTMovieLayer):
1219         (WebCore::MediaPlayerPrivateQTKit::preferredRenderingMode):
1220         (WebCore::MediaPlayerPrivateQTKit::platformLayer):
1221         (WebCore::MediaPlayerPrivateQTKit::setClosedCaptionsVisible):
1222         (WebCore::MediaPlayerPrivateQTKit::layerHostChanged):
1223         (WebCore::MediaPlayerPrivateQTKit::acceleratedRenderingStateChanged):
1224         (-[WebCoreMovieObserver layerHostChanged:]):
1225         * platform/graphics/mac/WebGLLayer.h:
1226         * platform/graphics/mac/WebGLLayer.mm:
1227         * platform/graphics/mac/WebLayer.h:
1228         * platform/graphics/mac/WebLayer.mm:
1229         * platform/graphics/mac/WebTiledLayer.h:
1230         * platform/graphics/mac/WebTiledLayer.mm:
1231         * platform/graphics/opengl/GLDefs.h:
1232         * platform/graphics/opengl/GLPlatformContext.cpp:
1233         * platform/graphics/opengl/GLPlatformContext.h:
1234         * platform/graphics/opengl/GLPlatformSurface.cpp:
1235         * platform/graphics/opengl/GLPlatformSurface.h:
1236         * platform/graphics/surfaces/GLTransportSurface.cpp:
1237         * platform/graphics/surfaces/GLTransportSurface.h:
1238         * platform/graphics/surfaces/glx/GLXConfigSelector.h:
1239         * platform/graphics/surfaces/glx/GLXContext.cpp:
1240         * platform/graphics/surfaces/glx/GLXContext.h:
1241         * platform/graphics/surfaces/glx/GLXSurface.cpp:
1242         * platform/graphics/surfaces/glx/GLXSurface.h:
1243         * platform/graphics/texmap/TextureMapper.cpp:
1244         * platform/graphics/texmap/TextureMapper.h:
1245         * platform/graphics/texmap/TextureMapperBackingStore.cpp:
1246         * platform/graphics/texmap/TextureMapperBackingStore.h:
1247         * platform/graphics/texmap/TextureMapperFPSCounter.cpp:
1248         * platform/graphics/texmap/TextureMapperFPSCounter.h:
1249         * platform/graphics/texmap/TextureMapperGL.cpp:
1250         * platform/graphics/texmap/TextureMapperGL.h:
1251         * platform/graphics/texmap/TextureMapperLayer.cpp:
1252         * platform/graphics/texmap/TextureMapperLayer.h:
1253         * platform/graphics/texmap/TextureMapperShaderProgram.cpp:
1254         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp:
1255         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.h:
1256         * platform/graphics/texmap/TextureMapperTile.cpp:
1257         * platform/graphics/texmap/TextureMapperTile.h:
1258         * platform/graphics/texmap/TextureMapperTiledBackingStore.cpp:
1259         * platform/graphics/texmap/TextureMapperTiledBackingStore.h:
1260         * platform/graphics/win/GraphicsContext3DWin.cpp:
1261         (WebCore::GraphicsContext3D::platformLayer):
1262         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
1263         (WebCore::MediaPlayerPrivateFullscreenWindow::createWindow):
1264         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
1265         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h:
1266         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
1267         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::LayerClient::platformCALayerLayoutSublayersOfLayer):
1268         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
1269         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen):
1270         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformMedia):
1271         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::platformLayer):
1272         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::naturalSize):
1273         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint):
1274         (WebCore::CreateCGImageFromPixelBuffer):
1275         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
1276         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::currentRenderingMode):
1277         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::preferredRenderingMode):
1278         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpVideoRendering):
1279         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::tearDownVideoRendering):
1280         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::hasSetUpVideoRendering):
1281         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveAndResetMovieTransform):
1282         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
1283         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::destroyLayerForMovie):
1284         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPrivateBrowsingMode):
1285         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
1286         * platform/graphics/win/WKCAImageQueue.cpp:
1287         * platform/graphics/win/WKCAImageQueue.h:
1288         * platform/mac/ScrollbarThemeMac.h:
1289         * platform/mac/ScrollbarThemeMac.mm:
1290         * plugins/PluginViewBase.h:
1291         * rendering/FlowThreadController.cpp:
1292         (WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded):
1293         * rendering/FlowThreadController.h:
1294         * rendering/RenderBox.cpp:
1295         (WebCore::RenderBox::styleWillChange):
1296         (WebCore::isCandidateForOpaquenessTest):
1297         (WebCore::layersUseImage):
1298         (WebCore::RenderBox::imageChanged):
1299         * rendering/RenderBoxModelObject.cpp:
1300         (WebCore::RenderBoxModelObject::suspendAnimations):
1301         (WebCore::RenderBoxModelObject::fixedBackgroundPaintsInLocalCoordinates):
1302         * rendering/RenderBoxModelObject.h:
1303         * rendering/RenderElement.cpp:
1304         (WebCore::RenderElement::adjustStyleDifference):
1305         (WebCore::RenderElement::setStyle):
1306         (WebCore::RenderElement::styleWillChange):
1307         * rendering/RenderEmbeddedObject.cpp:
1308         (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing):
1309         * rendering/RenderEmbeddedObject.h:
1310         * rendering/RenderFlowThread.cpp:
1311         (WebCore::RenderFlowThread::RenderFlowThread):
1312         (WebCore::RenderFlowThread::layout):
1313         (WebCore::RenderFlowThread::updateAllLayerToRegionMappings):
1314         * rendering/RenderFlowThread.h:
1315         * rendering/RenderFullScreen.cpp:
1316         * rendering/RenderImage.cpp:
1317         (WebCore::RenderImage::imageDimensionsChanged):
1318         (WebCore::RenderImage::notifyFinished):
1319         * rendering/RenderLayer.cpp:
1320         (WebCore::RenderLayer::RenderLayer):
1321         (WebCore::RenderLayer::~RenderLayer):
1322         (WebCore::RenderLayer::canRender3DTransforms):
1323         (WebCore::RenderLayer::paintsWithFilters):
1324         (WebCore::RenderLayer::updateLayerPositions):
1325         (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrderRecursive):
1326         (WebCore::RenderLayer::currentTransform):
1327         (WebCore::RenderLayer::updateDescendantDependentFlags):
1328         (WebCore::RenderLayer::checkIfDescendantClippingContextNeedsUpdate):
1329         (WebCore::RenderLayer::shouldRepaintAfterLayout):
1330         (WebCore::RenderLayer::enclosingFilterRepaintLayer):
1331         (WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect):
1332         (WebCore::RenderLayer::clippingRootForPainting):
1333         (WebCore::RenderLayer::addChild):
1334         (WebCore::RenderLayer::removeChild):
1335         (WebCore::RenderLayer::removeOnlyThisLayer):
1336         (WebCore::RenderLayer::scrollTo):
1337         (WebCore::RenderLayer::updateCompositingLayersAfterScroll):
1338         (WebCore::RenderLayer::invalidateScrollbarRect):
1339         (WebCore::RenderLayer::invalidateScrollCornerRect):
1340         (WebCore::RenderLayer::positionOverflowControls):
1341         (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1342         (WebCore::RenderLayer::paintOverflowControls):
1343         (WebCore::shouldDoSoftwarePaint):
1344         (WebCore::RenderLayer::paintLayer):
1345         (WebCore::RenderLayer::calculateClipRects):
1346         * rendering/RenderLayer.h:
1347         * rendering/RenderLayerBacking.cpp:
1348         * rendering/RenderLayerBacking.h:
1349         * rendering/RenderLayerCompositor.cpp:
1350         * rendering/RenderLayerCompositor.h:
1351         * rendering/RenderNamedFlowThread.cpp:
1352         (WebCore::RenderNamedFlowThread::collectsGraphicsLayersUnderRegions):
1353         * rendering/RenderNamedFlowThread.h:
1354         * rendering/RenderObject.cpp:
1355         (WebCore::RenderObject::containerForRepaint):
1356         (WebCore::RenderObject::repaintUsingContainer):
1357         * rendering/RenderTreeAsText.cpp:
1358         (WebCore::write):
1359         * rendering/RenderVideo.cpp:
1360         (WebCore::RenderVideo::updatePlayer):
1361         (WebCore::RenderVideo::acceleratedRenderingStateChanged):
1362         * rendering/RenderVideo.h:
1363         * rendering/RenderView.cpp:
1364         (WebCore::RenderView::paintBoxDecorations):
1365         (WebCore::RenderView::repaintRootContents):
1366         (WebCore::RenderView::repaintRectangleInViewAndCompositedLayers):
1367         (WebCore::RenderView::repaintViewAndCompositedLayers):
1368         (WebCore::RenderView::setMaximalOutlineSize):
1369         (WebCore::RenderView::compositor):
1370         (WebCore::RenderView::setIsInWindow):
1371         * rendering/RenderView.h:
1372         * rendering/RenderWidget.cpp:
1373         (WebCore::RenderWidget::setWidgetGeometry):
1374         (WebCore::RenderWidget::requiresAcceleratedCompositing):
1375         * rendering/RenderWidget.h:
1376         * rendering/style/RenderStyle.cpp:
1377         (WebCore::RenderStyle::changeRequiresLayout):
1378         (WebCore::RenderStyle::changeRequiresLayerRepaint):
1379         (WebCore::RenderStyle::changeRequiresRecompositeLayer):
1380         (WebCore::RenderStyle::diff):
1381         * rendering/style/RenderStyle.h:
1382         * rendering/style/RenderStyleConstants.h:
1383         * rendering/style/StyleRareNonInheritedData.cpp:
1384         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1385         (WebCore::StyleRareNonInheritedData::operator==):
1386         * rendering/style/StyleRareNonInheritedData.h:
1387         * testing/Internals.cpp:
1388         (WebCore::Internals::resetToConsistentState):
1389         (WebCore::Internals::setHeaderHeight):
1390         (WebCore::Internals::setFooterHeight):
1391
1392 2014-01-30  Krzysztof Czech  <k.czech@samsung.com>
1393
1394         AX: Clean up AccessibilityRenderObject
1395         https://bugs.webkit.org/show_bug.cgi?id=127838
1396
1397         Reviewed by Chris Fleizach.
1398
1399         Reducing some code by implementing ariaElementsFromAttribute.
1400         It is used as a helper for other methods.
1401
1402         No new tests. Covered by existing ones.
1403
1404         * accessibility/AccessibilityRenderObject.cpp:
1405         (WebCore::AccessibilityRenderObject::ariaElementsFromAttribute):
1406         (WebCore::AccessibilityRenderObject::ariaFlowToElements):
1407         (WebCore::AccessibilityRenderObject::ariaDescribedByElements):
1408         (WebCore::AccessibilityRenderObject::ariaOwnsElements):
1409         * accessibility/AccessibilityRenderObject.h:
1410
1411 2014-01-29  Commit Queue  <commit-queue@webkit.org>
1412
1413         Unreviewed, rolling out r163048.
1414         http://trac.webkit.org/changeset/163048
1415         https://bugs.webkit.org/show_bug.cgi?id=127890
1416
1417         Caused many crashes, detected by EWS prior to landing
1418         (Requested by ap on #webkit).
1419
1420         * Modules/mediacontrols/MediaControlsHost.cpp:
1421         (WebCore::MediaControlsHost::sortedTrackListForMenu):
1422         (WebCore::MediaControlsHost::displayNameForTrack):
1423         (WebCore::MediaControlsHost::captionDisplayMode):
1424         * WebCore.exp.in:
1425         * WebCore.vcxproj/WebCore.vcxproj:
1426         * WebCore.vcxproj/WebCore.vcxproj.filters:
1427         * WebCore.xcodeproj/project.pbxproj:
1428         * css/DocumentRuleSets.cpp:
1429         (WebCore::DocumentRuleSets::initUserStyle):
1430         * css/InspectorCSSOMWrappers.cpp:
1431         (WebCore::InspectorCSSOMWrappers::collectFromDocumentStyleSheetCollection):
1432         * dom/Document.cpp:
1433         (WebCore::Document::setCompatibilityMode):
1434         (WebCore::Document::registerForCaptionPreferencesChangedCallbacks):
1435         (WebCore::Document::captionPreferencesChanged):
1436         * dom/DocumentStyleSheetCollection.cpp:
1437         * dom/DocumentStyleSheetCollection.h:
1438         * html/HTMLMediaElement.cpp:
1439         (WebCore::HTMLMediaElement::HTMLMediaElement):
1440         (WebCore::HTMLMediaElement::parseAttribute):
1441         * html/shadow/MediaControlElements.cpp:
1442         (WebCore::MediaControlClosedCaptionsTrackListElement::updateDisplay):
1443         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
1444         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
1445         * page/CaptionStyleSheetMediaAF.cpp: Removed.
1446         * page/CaptionStyleSheetMediaAF.h: Removed.
1447         * page/CaptionUserPreferences.cpp:
1448         (WebCore::CaptionUserPreferences::CaptionUserPreferences):
1449         (WebCore::CaptionUserPreferences::notify):
1450         (WebCore::CaptionUserPreferences::setCaptionDisplayMode):
1451         (WebCore::CaptionUserPreferences::userPrefersCaptions):
1452         (WebCore::CaptionUserPreferences::setUserPrefersCaptions):
1453         (WebCore::CaptionUserPreferences::userPrefersSubtitles):
1454         (WebCore::CaptionUserPreferences::setUserPrefersSubtitles):
1455         (WebCore::CaptionUserPreferences::userPrefersTextDescriptions):
1456         (WebCore::CaptionUserPreferences::setUserPrefersTextDescriptions):
1457         (WebCore::CaptionUserPreferences::captionPreferencesChanged):
1458         (WebCore::CaptionUserPreferences::textTrackSelectionScore):
1459         (WebCore::CaptionUserPreferences::setCaptionsStyleSheetOverride):
1460         (WebCore::CaptionUserPreferences::updateCaptionStyleSheetOveride):
1461         * page/CaptionUserPreferences.h:
1462         (WebCore::CaptionUserPreferences::captionsStyleSheetOverride):
1463         (WebCore::CaptionUserPreferences::setInterestedInCaptionPreferenceChanges):
1464         (WebCore::CaptionUserPreferences::testingMode):
1465         (WebCore::CaptionUserPreferences::setTestingMode):
1466         (WebCore::CaptionUserPreferences::pageGroup):
1467         * page/CaptionUserPreferencesMediaAF.cpp:
1468         (WebCore::userCaptionPreferencesChangedNotificationCallback):
1469         (WebCore::CaptionUserPreferencesMediaAF::CaptionUserPreferencesMediaAF):
1470         (WebCore::CaptionUserPreferencesMediaAF::userPrefersCaptions):
1471         (WebCore::CaptionUserPreferencesMediaAF::userPrefersSubtitles):
1472         (WebCore::CaptionUserPreferencesMediaAF::setInterestedInCaptionPreferenceChanges):
1473         (WebCore::CaptionUserPreferencesMediaAF::captionPreferencesChanged):
1474         (WebCore::CaptionUserPreferencesMediaAF::captionsWindowCSS):
1475         (WebCore::CaptionUserPreferencesMediaAF::captionsBackgroundCSS):
1476         (WebCore::CaptionUserPreferencesMediaAF::captionsTextColor):
1477         (WebCore::CaptionUserPreferencesMediaAF::captionsTextColorCSS):
1478         (WebCore::CaptionUserPreferencesMediaAF::windowRoundedCornerRadiusCSS):
1479         (WebCore::CaptionUserPreferencesMediaAF::captionsEdgeColorForTextColor):
1480         (WebCore::CaptionUserPreferencesMediaAF::cssPropertyWithTextEdgeColor):
1481         (WebCore::CaptionUserPreferencesMediaAF::colorPropertyCSS):
1482         (WebCore::CaptionUserPreferencesMediaAF::captionsTextEdgeCSS):
1483         (WebCore::CaptionUserPreferencesMediaAF::captionsDefaultFontCSS):
1484         (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride):
1485         (WebCore::CaptionUserPreferencesMediaAF::textTrackSelectionScore):
1486         (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
1487         * page/CaptionUserPreferencesMediaAF.h:
1488         * page/Page.cpp:
1489         * page/Page.h:
1490         * page/PageGroup.cpp:
1491         (WebCore::PageGroup::captionPreferencesChanged):
1492         (WebCore::PageGroup::captionPreferences):
1493         * page/PageGroup.h:
1494         * testing/InternalSettings.cpp:
1495         (WebCore::InternalSettings::setShouldDisplayTrackKind):
1496         (WebCore::InternalSettings::shouldDisplayTrackKind):
1497         * testing/Internals.cpp:
1498         (WebCore::Internals::resetToConsistentState):
1499         (WebCore::Internals::Internals):
1500         (WebCore::Internals::captionsStyleSheetOverride):
1501         (WebCore::Internals::setCaptionsStyleSheetOverride):
1502         (WebCore::Internals::setPrimaryAudioTrackLanguageOverride):
1503         (WebCore::Internals::setCaptionDisplayMode):
1504
1505 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
1506
1507         Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
1508         https://bugs.webkit.org/show_bug.cgi?id=127845
1509
1510         Reviewed by Joseph Pecoraro.
1511
1512         * Configurations/FeatureDefines.xcconfig:
1513         * bindings/js/JSDOMWindowBase.cpp:
1514         (WebCore::JSDOMWindowBase::supportsProfiling):
1515
1516 2014-01-29  Gavin Barraclough  <barraclough@apple.com>
1517
1518         Add IsVisibleOrOccluded to ViewState
1519         https://bugs.webkit.org/show_bug.cgi?id=127875
1520
1521         Reviewed by Anders Carlsson.
1522
1523         * page/ViewState.h:
1524             - added IsVisibleOrOccluded
1525
1526 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
1527
1528         EventHandler::handleMouseReleaseEvent shouldn't call updateSelectionCachesIfSelectionIsInsideTextFormControl
1529         and selectFrameElementInParentIfFullySelected
1530         https://bugs.webkit.org/show_bug.cgi?id=127834
1531
1532         Reviewed by Alexey Proskuryakov.
1533
1534         Removed the calls and made setNonDirectionalSelectionIfNeeded pass in UserTriggered option.
1535
1536         In addition, removed the rather error-prone function override of setSelection since TextGranularity,
1537         which is an enum, could be implicitly coerced into SetSelectionOptions which is a typedefed unsigned int.
1538
1539         * editing/FrameSelection.cpp:
1540         (WebCore::FrameSelection::setSelectionByMouseIfDifferent): Renamed from setNonDirectionalSelectionIfNeeded.
1541         Pass in DoNotRevealSelection to avoid revealing the selection to preserve the existing behavior.
1542         There are two layout tests that fail without this.
1543         (WebCore::FrameSelection::setSelection): Check the newly addeed DoNotRevealSelection option.
1544         (WebCore::FrameSelection::wordSelectionContainingCaretSelection): Call
1545
1546         * editing/FrameSelection.h: Made updateSelectionCachesIfSelectionIsInsideTextFormControl and
1547         selectFrameElementInParentIfFullySelected private as they are no longer called outside of FrameSelection.
1548
1549         * page/EventHandler.cpp:
1550         (WebCore::EventHandler::updateSelectionForMouseDownDispatchingSelectStart):
1551         (WebCore::EventHandler::updateSelectionForMouseDrag):
1552         (WebCore::EventHandler::handleMouseReleaseEvent): Removed calls to the functions.
1553
1554 2014-01-29  Jer Noble  <jer.noble@apple.com>
1555
1556         Unreviewed iOS build fix after 163050.
1557
1558         Import CALayer.h explicitly as (on iOS) it is not included by other headers.
1559
1560         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1561
1562 2014-01-29  Jer Noble  <jer.noble@apple.com>
1563
1564         Unreviewed Mac Build fix after r163046.
1565
1566         Forward define AVSampleLayerDisplayLayer and its methods.
1567
1568         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1569
1570 2014-01-26  Sam Weinig  <sam@webkit.org>
1571
1572         CaptionUserPreferences should not be on the PageGroup if they are not really per-PageGroup (Part 1)
1573         https://bugs.webkit.org/show_bug.cgi?id=127666
1574
1575         Reviewed by Eric Carlson.
1576
1577         This patch:
1578         - Makes CaptionUserPreferences a singleton (temporary) that is accessed
1579           via Page.
1580         - Simplifies overriding system preferences by requiring that a Document be
1581           be passed so the correct Settings object can be obtained (and not just a 
1582           random one).
1583         - Stops using UserStyleSheets for captions style injection, and instead
1584           adds a new style sheet to the DocumentStyleSheetCollection.
1585         - Move caption style sheet creation into its own file - CaptionStyleSheetMediaAF.h/cpp
1586
1587         * WebCore.vcxproj/WebCore.vcxproj:
1588         * WebCore.vcxproj/WebCore.vcxproj.filters:
1589         * WebCore.xcodeproj/project.pbxproj:
1590         Add new files.
1591
1592         * WebCore.exp.in:
1593         Update exports.
1594
1595         * css/DocumentRuleSets.cpp:
1596         * css/InspectorCSSOMWrappers.cpp:
1597         * dom/Document.cpp:
1598         * dom/DocumentStyleSheetCollection.cpp:
1599         * dom/DocumentStyleSheetCollection.h:
1600         Switch from using the user style sheet mechanism, which is meant for, you guessed it, users,
1601         to an explicit caption style sheet.
1602
1603         * Modules/mediacontrols/MediaControlsHost.cpp:
1604         * html/HTMLMediaElement.cpp:
1605         * html/shadow/MediaControlElements.cpp:
1606         Get the CaptionUserPreferences via the Page.
1607
1608         * page/CaptionStyleSheetMediaAF.cpp: Added.
1609         * page/CaptionStyleSheetMediaAF.h: Added.
1610         Move caption style sheet creation here. If the global style changes, the sheet is invalidated
1611         and this is called again.
1612
1613         * page/CaptionUserPreferences.cpp:
1614         * page/CaptionUserPreferences.h:
1615         - Removes unused m_havePreferences member.
1616         - Change userPrefersFoo() functions to take a Document&. Use it to check its Settings.
1617         - Remove setUserPrefersFoo() functions and just set the Settings directly.
1618         - Move all the testing only pieces together.
1619         
1620         * page/CaptionUserPreferencesMediaAF.cpp:
1621         * page/CaptionUserPreferencesMediaAF.h:
1622         - Extract caption style sheet creation into CaptionStyleSheetMediaAF.h/cpp
1623         - Stop waiting for an interested party, and just register for appearance change
1624           notifications right away. Media elements are common enough that this should not
1625           make a difference.
1626
1627         * page/Page.cpp:
1628         (WebCore::Page::updateStyleForAllPagesForCaptionPreferencesChanged):
1629         Add helper to call captionPreferencesChanged() on all the Pages.
1630
1631         (WebCore::Page::captionPreferences):
1632         Add accessor for the CaptionUserPreferences. Currently this returns a singleton, but I plan
1633         to extract the singleton aspects of it into another class, and leave the per-Page parts here.
1634
1635         * page/Page.h:
1636         * page/PageGroup.cpp:
1637         * page/PageGroup.h:
1638         Remove CaptionUserPreferences from here.
1639
1640         * testing/InternalSettings.cpp:
1641         (WebCore::InternalSettings::setShouldDisplayTrackKind):
1642         (WebCore::InternalSettings::shouldDisplayTrackKind):
1643         Override the settings for the page directly.
1644
1645         * testing/Internals.cpp:
1646         (WebCore::Internals::resetToConsistentState):
1647         (WebCore::Internals::Internals):
1648         (WebCore::Internals::captionsStyleSheetOverride):
1649         (WebCore::Internals::setCaptionsStyleSheetOverride):
1650         (WebCore::Internals::setPrimaryAudioTrackLanguageOverride):
1651         (WebCore::Internals::setCaptionDisplayMode):
1652         Get the CaptionUserPreferences via the Page.
1653
1654 2014-01-29  Jer Noble  <jer.noble@apple.com>
1655
1656         [MSE][Mac] In SourceBufferPrivateAVFObjC, only include those headers actually necessary to compile.
1657         https://bugs.webkit.org/show_bug.cgi?id=127846
1658
1659         Reviewed by Darin Adler.
1660
1661         To work around a compile issue, only include those paths containing classes and typedefs
1662         which are used within SourceBufferPrivateAVFObjC, rather than all of AVFoundation.
1663
1664         * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
1665
1666 2014-01-29  Brady Eidson  <beidson@apple.com>
1667
1668         IDB: Fully implement IDBKeyData encoding/decoding
1669         https://bugs.webkit.org/show_bug.cgi?id=127863
1670
1671         Rubberstamped by Alexey Proskuryakov.
1672
1673         * platform/KeyedCoding.h:
1674
1675         * Modules/indexeddb/IDBKeyData.cpp:
1676         (WebCore::IDBKeyData::encode):
1677         (WebCore::IDBKeyData::decode):
1678
1679         * WebCore.exp.in:
1680
1681 2014-01-29  Bem Jones-Bey  <bjonesbe@adobe.com>
1682
1683         clip-path swaps bottom radii for the inset shape
1684         https://bugs.webkit.org/show_bug.cgi?id=127859
1685
1686         Reviewed by Dirk Schulze.
1687
1688         The bottom right and bottom left radii were passed in the wrong order,
1689         causing the wrong corner to be clipped in the resultant rendering.
1690
1691         Test: css3/masking/clip-path-inset-corners.html
1692
1693         * rendering/style/BasicShapes.cpp:
1694         (WebCore::BasicShapeInset::path): Change the parameter order to be
1695         correct.
1696
1697 2014-01-29  Jer Noble  <jer.noble@apple.com>
1698
1699         [MediaControls][iOS] Hook up the fullscreen button
1700         https://bugs.webkit.org/show_bug.cgi?id=127850
1701
1702         Reviewed by Eric Carlson.
1703
1704         For the fullscreen button, do the same thing we do for the play button: handle touchstart,
1705         touchend, and touchcancel, and perform the action (i.e., 'click') on touchend.
1706
1707         * Modules/mediacontrols/mediaControlsiOS.js:
1708         (ControllerIOS.prototype.createControls): Add listeners for the fullscreenButton.
1709         (ControllerIOS.prototype.isFullScreen): Override.
1710         (ControllerIOS.prototype.handleFullscreenButtonClicked): Override.
1711         (ControllerIOS.prototype.handleFullscreenTouchStart): Added.
1712         (ControllerIOS.prototype.handleFullscreenTouchEnd): Added.
1713         (ControllerIOS.prototype.handleFullscreenTouchCancel): Added.
1714
1715 2014-01-29  Brady Eidson  <beidson@apple.com>
1716
1717         IDB: Opening an existing database is broken
1718         https://bugs.webkit.org/show_bug.cgi?id=127851
1719
1720         Reviewed by Tim Hatcher.
1721
1722         * Modules/indexeddb/IDBDatabaseBackend.cpp:
1723         (WebCore::IDBDatabaseBackend::IDBDatabaseBackend):
1724         (WebCore::IDBDatabaseBackend::didOpenInternalAsync): Remember if this method has completed.
1725         (WebCore::IDBDatabaseBackend::processPendingCalls): If didOpenInternalAsync hasn’t
1726           been called yet, then it is incorrect to process any pending calls right now.
1727         * Modules/indexeddb/IDBDatabaseBackend.h:
1728
1729 2014-01-29  Oliver Hunt  <oliver@apple.com>
1730
1731         This dereference should not actually be necessary, and
1732         is producing deprecation warnings with newer perls
1733
1734         * bindings/scripts/CodeGeneratorJS.pm:
1735         (GenerateAttributesHashTable):
1736
1737 2014-01-28  Oliver Hunt  <oliver@apple.com>
1738
1739         Make DOM attributes appear to be faux accessor properties
1740         https://bugs.webkit.org/show_bug.cgi?id=127797
1741
1742         Reviewed by Michael Saboff.
1743
1744         Refactor the bindings generator, and make sure we emit
1745         the CustomAccessor flag on properties that should 
1746         appear to be accessors.
1747
1748         * bindings/scripts/CodeGeneratorJS.pm:
1749         (GenerateGetOwnPropertySlotBody):
1750         (GenerateAttributesHashTable):
1751         (GenerateImplementation):
1752
1753 2014-01-29  Alex Christensen  <achristensen@webkit.org>
1754
1755         Prepare for accelerated compositing on WinCairo.
1756         https://bugs.webkit.org/show_bug.cgi?id=127843
1757
1758         Reviewed by Anders Carlsson.
1759
1760         * platform/network/curl/ResourceHandleManager.cpp:
1761         (WebCore::setupFormData):
1762         Remove VS2005 warning workaround.
1763         * WebCore.vcxproj/WebCore.vcxproj:
1764         Remove StyleCachedImageSet.cpp and CSSImageSetValue.cpp from the Win64 build
1765         to avoid warnings because they are also included in StyleAllInOne.cpp and
1766         CSSAllInOne.cpp, respectively.
1767
1768 2014-01-28  Michael Saboff  <msaboff@apple.com>
1769
1770         Merge the jsCStack branch
1771         https://bugs.webkit.org/show_bug.cgi?id=127763
1772
1773         Reviewed by Mark Hahnenberg.
1774
1775         Changes from http://svn.webkit.org/repository/webkit/branches/jsCStack
1776         up to changeset 162958.
1777
1778 2014-01-29  Dan Bernstein  <mitz@apple.com>
1779
1780         Fixed the iOS build.
1781
1782         * bindings/js/JSDOMWindowCustom.cpp: Updated for header renames.
1783
1784 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
1785
1786         Remove ENABLE(JAVASCRIPT_DEBUGGER) guards
1787         https://bugs.webkit.org/show_bug.cgi?id=127840
1788
1789         Reviewed by Mark Lam.
1790
1791         * bindings/js/JSDOMWindowBase.cpp:
1792         (WebCore::JSDOMWindowBase::supportsProfiling):
1793         (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
1794         * bindings/js/PageScriptDebugServer.cpp:
1795         * bindings/js/PageScriptDebugServer.h:
1796         * bindings/js/ScriptProfile.cpp:
1797         * bindings/js/ScriptProfile.h:
1798         * bindings/js/ScriptProfileNode.h:
1799         * bindings/js/ScriptProfiler.cpp:
1800         * bindings/js/ScriptProfiler.h:
1801         * bindings/js/WorkerScriptDebugServer.cpp:
1802         * bindings/js/WorkerScriptDebugServer.h:
1803         * inspector/InspectorConsoleAgent.h:
1804         * inspector/InspectorConsoleInstrumentation.h:
1805         (WebCore::InspectorInstrumentation::getCurrentUserInitiatedProfileName):
1806         * inspector/InspectorController.cpp:
1807         (WebCore::InspectorController::InspectorController):
1808         (WebCore::InspectorController::resume):
1809         * inspector/InspectorController.h:
1810         * inspector/InspectorDOMDebuggerAgent.cpp:
1811         * inspector/InspectorDOMDebuggerAgent.h:
1812         * inspector/InspectorHeapProfilerAgent.cpp:
1813         * inspector/InspectorHeapProfilerAgent.h:
1814         * inspector/InspectorInstrumentation.cpp:
1815         (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl):
1816         (WebCore::InspectorInstrumentation::isDebuggerPausedImpl):
1817         (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl):
1818         (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl):
1819         (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl):
1820         (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl):
1821         (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl):
1822         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
1823         (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl):
1824         (WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSPImpl):
1825         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1826         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
1827         (WebCore::InspectorInstrumentation::profilerEnabledImpl):
1828         (WebCore::InspectorInstrumentation::willEvaluateWorkerScript):
1829         (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded):
1830         (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent):
1831         * inspector/InspectorInstrumentation.h:
1832         * inspector/InspectorProfilerAgent.cpp:
1833         * inspector/InspectorProfilerAgent.h:
1834         * inspector/InstrumentingAgents.cpp:
1835         (WebCore::InstrumentingAgents::InstrumentingAgents):
1836         (WebCore::InstrumentingAgents::reset):
1837         * inspector/InstrumentingAgents.h:
1838         * inspector/PageDebuggerAgent.cpp:
1839         * inspector/PageDebuggerAgent.h:
1840         * inspector/ScriptProfile.idl:
1841         * inspector/ScriptProfileNode.idl:
1842         * inspector/WebDebuggerAgent.cpp:
1843         * inspector/WebDebuggerAgent.h:
1844         * inspector/WorkerDebuggerAgent.cpp:
1845         * inspector/WorkerDebuggerAgent.h:
1846         * inspector/WorkerInspectorController.cpp:
1847         (WebCore::WorkerInspectorController::WorkerInspectorController):
1848         (WebCore::WorkerInspectorController::resume):
1849         * inspector/WorkerInspectorController.h:
1850         * inspector/WorkerRuntimeAgent.cpp:
1851         (WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope):
1852         * inspector/WorkerRuntimeAgent.h:
1853         * loader/FrameLoader.cpp:
1854         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
1855         * page/Console.cpp:
1856         * page/Console.h:
1857         * page/Console.idl:
1858         * testing/Internals.cpp:
1859         (WebCore::Internals::resetToConsistentState):
1860         * workers/WorkerMessagingProxy.cpp:
1861         (WebCore::connectToWorkerGlobalScopeInspectorTask):
1862         (WebCore::WorkerMessagingProxy::connectToInspector):
1863         (WebCore::disconnectFromWorkerGlobalScopeInspectorTask):
1864         (WebCore::WorkerMessagingProxy::disconnectFromInspector):
1865         (WebCore::dispatchOnInspectorBackendTask):
1866         (WebCore::WorkerMessagingProxy::sendMessageToInspector):
1867
1868 2014-01-29  Eric Carlson  <eric.carlson@apple.com>
1869
1870         [iOS] cleanup MediaPlayer.cpp
1871         https://bugs.webkit.org/show_bug.cgi?id=127821
1872
1873         Reviewed by Jer Noble.
1874
1875         Don't register MediaPlayerPrivateIOS unless the runtime setting for media player proxy is set.
1876
1877         * platform/graphics/MediaPlayer.cpp: Don't define PlatformMediaEngineClassName on iOS
1878         (WebCore::installedMediaEngines): Drive by cleanup to return early if registration has
1879             already happened.
1880         (WebCore::MediaPlayer::MediaPlayer): Don't force-register the first media engine unless 
1881             isVideoPluginProxyEnabled returns true.
1882
1883 2014-01-29  Youenn Fablet  <youennf@gmail.com>
1884
1885         Have XHR.getResponseHeader() return null and XHR.getAllResponseHeader() return the empty string in initial ready states
1886         https://bugs.webkit.org/show_bug.cgi?id=125840
1887
1888         Reviewed by Alexey Proskuryakov.
1889
1890         Merging https://chromium.googlesource.com/chromium/blink/+/d201caf874a0bd6f101f517462b3cf1d8c5fce3d
1891         This patch makes it clear that null/empty string is returned whenever the error flag is set.
1892         This new code path is covered by the added test.
1893         
1894         Test: http/tests/xmlhttprequest/response-access-on-error.html
1895
1896         * xml/XMLHttpRequest.cpp:
1897         (WebCore::XMLHttpRequest::getAllResponseHeaders):
1898         (WebCore::XMLHttpRequest::getResponseHeader):
1899         * xml/XMLHttpRequest.h:
1900         * xml/XMLHttpRequest.idl:
1901
1902 2014-01-29  Antti Koivisto  <antti@apple.com>
1903
1904         REGRESSION (r162947): Repaint test results are different between WK1 and WK2
1905         https://bugs.webkit.org/show_bug.cgi?id=127814
1906
1907         Reviewed by Anders Carlsson.
1908
1909         * page/FrameView.cpp:
1910         (WebCore::FrameView::repaintContentRectangle):
1911         
1912             Move repaint rect logging to RenderView.
1913
1914         * rendering/RenderView.cpp:
1915         (WebCore::RenderView::repaintViewRectangle):
1916         
1917             Record raw repaint rects instead of optimized ones.
1918
1919 2014-01-29  Brady Eidson  <beidson@apple.com>
1920
1921         IDB: Serialize IDBKeyDatas to disk, not IDBKeys
1922         https://bugs.webkit.org/show_bug.cgi?id=127829
1923
1924         Reviewed by Tim Horton.
1925
1926         Move encode/decode from IDBKey to IDBKeyData.
1927
1928         * Modules/indexeddb/IDBKey.cpp:
1929         * Modules/indexeddb/IDBKey.h:
1930
1931         * Modules/indexeddb/IDBKeyData.cpp:
1932         (WebCore::IDBKeyData::IDBKeyData):
1933         (WebCore::IDBKeyData::encode):
1934         (WebCore::IDBKeyData::decode):
1935         * Modules/indexeddb/IDBKeyData.h:
1936
1937         * WebCore.exp.in:
1938
1939 2014-01-29  Antti Koivisto  <antti@apple.com>
1940
1941         REGRESSION (r162947): css3/flexbox/multiline-justify-content.html and css3/flexbox/position-absolute-child.html are timing out
1942         https://bugs.webkit.org/show_bug.cgi?id=127809
1943
1944         Reviewed by Anders Carlsson.
1945
1946         These tests generate very large number of small repaint rectangles that overwhelm the region code.
1947
1948         * page/FrameView.cpp:
1949         (WebCore::FrameView::repaintContentRectangle):
1950         * platform/graphics/Region.h:
1951         (WebCore::Region::gridSize):
1952         (WebCore::Region::Shape::gridSize):
1953         
1954             Add accessor for getting the current region grid complexity.
1955
1956         * rendering/RenderView.cpp:
1957         (WebCore::RenderView::repaintViewRectangle):
1958         
1959             If the region gets very complex merge the repaint rects into a single big rectangle.
1960
1961 2014-01-29  Radu Stavila  <stavila@adobe.com>
1962
1963         [CSSRegions] Unable to scroll a scrollable container for regions using mouse wheel
1964         https://bugs.webkit.org/show_bug.cgi?id=123886
1965
1966         When an element flowed into a scrollable region is scrolled using the mouse wheel, the event 
1967         needs to be propagated to the region containing that element, on top of which the cursor
1968         is located.
1969
1970         Reviewed by Antti Koivisto.
1971
1972         Tests: fast/regions/wheel-scroll-abspos.html
1973                fast/regions/wheel-scroll.html
1974
1975         * page/EventHandler.cpp:
1976         (WebCore::scrollNode):
1977         (WebCore::EventHandler::defaultWheelEventHandler):
1978         * rendering/RenderBox.cpp:
1979         (WebCore::RenderBox::scroll):
1980         (WebCore::RenderBox::scrollWithWheelEventLocation):
1981         * rendering/RenderBox.h:
1982         * rendering/RenderFlowThread.cpp:
1983         (WebCore::RenderFlowThread::regionFromAbsolutePointAndBox):
1984         * rendering/RenderFlowThread.h:
1985
1986 2014-01-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1987
1988         REGRESSION(r162922): [SOUP] Several tests are failing in EFL and GTK+ after r162922
1989         https://bugs.webkit.org/show_bug.cgi?id=127836
1990
1991         Reviewed by Gustavo Noronha Silva.
1992
1993         The problem is that I assumed that several things done in
1994         ResourceRequest::soupURI() were always desired, so I moved them to
1995         URL. This patch restores the previous behaviour, so that those
1996         tings are only done right before making a request.
1997
1998         * platform/network/soup/ResourceRequestSoup.cpp:
1999         (WebCore::ResourceRequest::createSoupURI):
2000         * platform/soup/URLSoup.cpp:
2001         (WebCore::URL::createSoupURI):
2002
2003 2014-01-29  Krzysztof Czech  <k.czech@samsung.com>
2004
2005         [ATK] Expose aria-describedby with ATK_RELATION_DESCRIBED_BY
2006         https://bugs.webkit.org/show_bug.cgi?id=121684
2007
2008         Reviewed by Mario Sanchez Prada.
2009
2010         Exposed aria-describedby by ATK_RELATION_DESCRIBED_BY.
2011         Moved elementsFromAttribut to AccessibilityObject to have common interface
2012         for AccessibilityNodeObject and AccessibilityRenderObject. Implemented
2013         supportsARIADescribedBy and ariaDescribedByElements to better deal with aria-describedby attribute.
2014
2015         No new tests. Covered by existed one.
2016
2017         * accessibility/AccessibilityNodeObject.cpp:
2018         * accessibility/AccessibilityNodeObject.h:
2019         * accessibility/AccessibilityObject.cpp:
2020         (WebCore::AccessibilityObject::elementsFromAttribute):
2021         * accessibility/AccessibilityObject.h:
2022         (WebCore::AccessibilityObject::supportsARIADescribedBy):
2023         (WebCore::AccessibilityObject::ariaDescribedByElements):
2024         * accessibility/AccessibilityRenderObject.cpp:
2025         (WebCore::AccessibilityRenderObject::supportsARIADescribedBy):
2026         (WebCore::AccessibilityRenderObject::ariaDescribedByElements):
2027         * accessibility/AccessibilityRenderObject.h:
2028         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2029         (setAtkRelationSetFromCoreObject):
2030
2031 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
2032
2033         [CSS Grid Layout] minmax() should be a CSSFunction instead of a CSSValueList
2034         https://bugs.webkit.org/show_bug.cgi?id=127057
2035
2036         Reviewed by Antti Koivisto.
2037
2038         We were incorrectly dumping minmax(x,y) as "x y" instead of
2039         "minmax(x,y)". That's because we were treating minmax() internally
2040         as a CSSValueList instead of a CSSFunction. Replaced that and also
2041         added some extra information to our tests in order to check that
2042         we don't regress. From now on the CSS grid layout testing helper
2043         functions print not only the computed style but also the contents
2044         of element.style.webkitGridDefinition{Columns|Rows}.
2045
2046         * css/CSSFunctionValue.h:
2047         (WebCore::CSSFunctionValue::arguments):
2048         * css/CSSParser.cpp:
2049         (WebCore::CSSParser::parseGridTrackList):
2050         (WebCore::CSSParser::parseGridTrackRepeatFunction):
2051         (WebCore::CSSParser::parseGridTrackSize):
2052         * css/CSSParser.h:
2053         * css/StyleResolver.cpp:
2054         (WebCore::createGridTrackSize):
2055
2056 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
2057
2058         Rename notifyRendererOfSelectionChange
2059         https://bugs.webkit.org/show_bug.cgi?id=127831
2060
2061         Reviewed by Antti Koivisto.
2062
2063         Renamed notifyRendererOfSelectionChange to updateSelectionCachesIfSelectionIsInsideTextFormControl.
2064
2065         * WebCore.order: Removed the exported symbol name as it's not used in WebKit or WebKit2 code.
2066         * editing/FrameSelection.cpp:
2067         (WebCore::FrameSelection::setSelection):
2068         (WebCore::FrameSelection::selectAll):
2069         (WebCore::FrameSelection::updateSelectionCachesIfSelectionIsInsideTextFormControl): Don't update the style since the existence
2070         of text form control's shadow DOM no longer depends on renderer.
2071         * editing/FrameSelection.h:
2072         * html/HTMLTextFormControlElement.cpp:
2073         (WebCore::HTMLTextFormControlElement::selectionChanged): Don't check renderer() for the same reason.
2074         * page/EventHandler.cpp:
2075         (WebCore::EventHandler::handleMouseReleaseEvent):
2076
2077 2014-01-28  Jer Noble  <jer.noble@apple.com>
2078
2079         [Mac] Handle NSURLAuthenticationMethodServerTrust challenges from -resourceLoader:shouldWaitForResponseToAuthenticationChallenge:
2080         https://bugs.webkit.org/show_bug.cgi?id=127806
2081
2082         Reviewed by Eric Carlson.
2083
2084         In addition to the normal "user/password" NSURLAuthenticationChallenges, the 
2085         -resourceLoader:shouldWaitForResponseToAuthenticationChallenge: delegate method will
2086         ask us to confirm server certificate chains. Rather than pop up an authentication
2087         dialog (which won't work anyway) we will now just drop such requests and continue
2088         on normally.
2089
2090         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2091         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):
2092
2093 2014-01-28  Commit Queue  <commit-queue@webkit.org>
2094
2095         Unreviewed, rolling out r162987.
2096         http://trac.webkit.org/changeset/162987
2097         https://bugs.webkit.org/show_bug.cgi?id=127825
2098
2099         Broke Mountain Lion build (Requested by andersca on #webkit).
2100
2101         * bindings/scripts/CodeGeneratorJS.pm:
2102         (GenerateGetOwnPropertySlotBody):
2103         (GenerateAttributesHashTable):
2104         (GenerateImplementation):
2105         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
2106         (WebCore::jsTestActiveDOMObjectConstructor):
2107         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
2108         (WebCore::jsTestCustomNamedGetterConstructor):
2109         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
2110         (WebCore::jsTestEventConstructorConstructor):
2111         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
2112         (WebCore::jsTestEventTargetConstructor):
2113         * bindings/scripts/test/JS/JSTestException.cpp:
2114         (WebCore::jsTestExceptionConstructor):
2115         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
2116         (WebCore::jsTestGenerateIsReachableConstructor):
2117         * bindings/scripts/test/JS/JSTestInterface.cpp:
2118         (WebCore::jsTestInterfaceConstructor):
2119         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2120         (WebCore::jsTestMediaQueryListListenerConstructor):
2121         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
2122         (WebCore::jsTestNamedConstructorConstructor):
2123         * bindings/scripts/test/JS/JSTestNode.cpp:
2124         (WebCore::jsTestNodeConstructor):
2125         * bindings/scripts/test/JS/JSTestObj.cpp:
2126         (WebCore::jsTestObjConstructor):
2127         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
2128         (WebCore::jsTestOverloadedConstructorsConstructor):
2129         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2130         (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
2131         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
2132         (WebCore::jsTestTypedefsConstructor):
2133         * bindings/scripts/test/JS/JSattribute.cpp:
2134         (WebCore::jsattributeConstructor):
2135         * bindings/scripts/test/JS/JSreadonly.cpp:
2136         (WebCore::jsreadonlyConstructor):
2137
2138 2014-01-28  Enrica Casucci  <enrica@apple.com>
2139
2140         Add support for ActionSheets in WK2 for iOS.
2141         https://bugs.webkit.org/show_bug.cgi?id=127586
2142         <rdar://problem/15283667>
2143
2144         Reviewed by Benjamin Poulain.
2145
2146         This patch contains some WebCore changes required to
2147         implement support for ActionSheets.
2148         It adds copyURL implementation for iOS in the Editor
2149         class and fixes some bugs in the iOS specific pasteboard
2150         writing code.
2151         The changes to Localizable.strings are the result of
2152         running update-webkit-localizedstrings script.
2153
2154         * English.lproj/Localizable.strings:
2155         * WebCore.exp.in:
2156         * editing/Editor.cpp:
2157         * editing/Editor.h:
2158         * editing/ios/EditorIOS.mm:
2159         (WebCore::Editor::writeImageToPasteboard):
2160         * platform/ios/PasteboardIOS.mm:
2161         (WebCore::Pasteboard::write):
2162         * platform/ios/PlatformPasteboardIOS.mm:
2163         (WebCore::PlatformPasteboard::write):
2164
2165 2014-01-28  Andy Estes  <aestes@apple.com>
2166
2167         [iOS] REGRESSION (r162663): Webpages have strange artifacts or corruption around tile boundaries
2168         https://bugs.webkit.org/show_bug.cgi?id=127823
2169
2170         Reviewed by Daniel Bates.
2171
2172         Original patch by Simon Fraser.
2173
2174         * platform/ScrollView.cpp: Specify LegacyIOSDocumentViewRect when calling visibleContentRect().
2175
2176 2014-01-28  Zoltan Horvath  <zoltan@webkit.org>
2177
2178         [CSS Shapes] Adjust inset sizing syntax to the latest specification
2179         https://bugs.webkit.org/show_bug.cgi?id=127785
2180
2181         Reviewed by Bem Jones-Bey.
2182
2183         According to the latest CSS Shapes specification [1], the width arguments of inset should
2184         follow the syntax of the margin shorthand, which let us set all four insets with one, two
2185         or four values. This patch updates the behavior and updates the affected tests.
2186
2187         [1] http://dev.w3.org/csswg/css-shapes/#funcdef-inset
2188
2189         Existing tests have been updated.
2190
2191         * css/CSSParser.cpp:
2192         (WebCore::CSSParser::parseInsetRoundedCorners):
2193         (WebCore::CSSParser::parseBasicShapeInset):
2194
2195 2014-01-28  Oliver Hunt  <oliver@apple.com>
2196
2197         Make DOM attributes appear to be faux accessor properties
2198         https://bugs.webkit.org/show_bug.cgi?id=127797
2199
2200         Reviewed by Michael Saboff.
2201
2202         Refactor the bindings generator, and make sure we emit
2203         the CustomAccessor flag on properties that should 
2204         appear to be accessors.
2205
2206         * bindings/scripts/CodeGeneratorJS.pm:
2207         (GenerateGetOwnPropertySlotBody):
2208         (GenerateAttributesHashTable):
2209         (GenerateImplementation):
2210
2211 2014-01-27  Chris Fleizach  <cfleizach@apple.com>
2212
2213         AX: Support @scope in HTML tables
2214         https://bugs.webkit.org/show_bug.cgi?id=127688
2215
2216         Reviewed by Mario Sanchez Prada.
2217
2218         Add support for scope attribute so that row headers and column headers
2219         are now exposed at the table cell level where appropriate.
2220
2221         Test: platform/mac/accessibility/table-scope.html
2222
2223         * accessibility/AccessibilityARIAGridCell.cpp:
2224         (WebCore::AccessibilityARIAGridCell::parentTable):
2225         * accessibility/AccessibilityARIAGridCell.h:
2226         * accessibility/AccessibilityARIAGridRow.cpp:
2227         (WebCore::AccessibilityARIAGridRow::parentTable):
2228         * accessibility/AccessibilityARIAGridRow.h:
2229         * accessibility/AccessibilityTable.cpp:
2230         (WebCore::AccessibilityTable::columns):
2231         (WebCore::AccessibilityTable::rows):
2232         * accessibility/AccessibilityTable.h:
2233         * accessibility/AccessibilityTableCell.cpp:
2234         (WebCore::AccessibilityTableCell::parentTable):
2235         (WebCore::AccessibilityTableCell::isTableHeaderCell):
2236         (WebCore::AccessibilityTableCell::isTableCellInSameRowGroup):
2237         (WebCore::AccessibilityTableCell::isTableCellInSameColGroup):
2238         (WebCore::AccessibilityTableCell::columnHeaders):
2239         (WebCore::AccessibilityTableCell::rowHeaders):
2240         * accessibility/AccessibilityTableCell.h:
2241         * accessibility/AccessibilityTableRow.cpp:
2242         (WebCore::AccessibilityTableRow::parentTable):
2243         * accessibility/AccessibilityTableRow.h:
2244         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2245         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
2246         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
2247
2248 2014-01-28  Brent Fulgham  <bfulgham@apple.com>
2249
2250         Improve latching behavior for wheel events
2251         https://bugs.webkit.org/show_bug.cgi?id=127386
2252         <rdar://problem/12176858>
2253
2254         Reviewed by Simon Fraser.
2255
2256         * page/scrolling/ScrollingTree.cpp:
2257         (WebCore::ScrollingTree::clearLatchedNode): Added
2258         (WebCore::ScrollingTree::latchedNode): Added
2259         (WebCore::ScrollingTree::removeDestroyedNodes): Clear latched node if it's being removed.
2260         (WebCore::ScrollingTree::ScrollingTree): Initialize new value used for tracking
2261         scroll latching state.
2262         (WebCore::ScrollingTree::setLatchedNode): Added
2263         (WebCore::ScrollingTree::setOrClearLatchedNode): Added
2264         Set latched node when beginning a swipe event, or clear latched node when scroll/momentum ends.
2265         (WebCore::ScrollingTree::shouldHandleWheelEventSynchronously): Check for an existing
2266         latched node and stay in fast scrolling mode if possible. If the current event should
2267         start a swipe event, clear the current latched node so we can correctly find and assign
2268         the new latch node.
2269         * page/scrolling/ScrollingTree.h:
2270         (WebCore::ScrollingTree::hasLatchedNode): Added
2271         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2272         (WebCore::ScrollingTreeScrollingNodeMac::handleWheelEvent): Determine latching state
2273         based on wheel event state and position of mouse pointer in the document.
2274         * platform/ScrollAnimator.cpp:
2275         (ScrollAnimator::handleWheelEvent): Always treat PlatformWheelEventPhaseMayBegin
2276         as successfully handled so that it does not "bubble back up" to the root of
2277         the scrolling tree.   
2278
2279 2014-01-23  Myles C. Maxfield  <mmaxfield@apple.com>
2280
2281         ASSERT_WITH_SECURITY_IMPLICATION in WebCore::InlineTextBox::paint
2282         https://bugs.webkit.org/show_bug.cgi?id=114586
2283
2284         Reviewed by Dave Hyatt.
2285
2286         Taken mostly from https://chromium.googlesource.com/chromium/blink/+/cb2297db16f2e9328cb4dd8b552093d6b22340a8
2287
2288         If RenderQuote is a subclass of RenderObject, it can't be split by the first-letter CSS pseudoclass.
2289         Instead, we should make it a subclass of RenderElement, so that it can be split properly.
2290
2291         Test: fast/css-generated-content/quote-first-letter.html
2292
2293         * dom/PseudoElement.cpp:
2294         (WebCore::PseudoElement::didRecalcStyle):
2295         * rendering/RenderQuote.cpp:
2296         (WebCore::RenderQuote::RenderQuote):
2297         (WebCore::RenderQuote::willBeDestroyed):
2298         (WebCore::RenderQuote::willBeRemovedFromTree):
2299         (WebCore::RenderQuote::styleDidChange):
2300         (WebCore::RenderQuote::updateText):
2301         (WebCore::RenderQuote::computeText):
2302         (WebCore::RenderQuote::updateDepth):
2303         * rendering/RenderQuote.h:
2304         * rendering/style/ContentData.cpp:
2305         (WebCore::QuoteContentData::createContentRenderer):
2306
2307 2014-01-28  Antti Koivisto  <antti@apple.com>
2308
2309         Document::topDocument() should return a reference
2310         https://bugs.webkit.org/show_bug.cgi?id=127786
2311
2312         Reviewed by Darin Adler.
2313
2314         * accessibility/AccessibilityObject.cpp:
2315         (WebCore::AccessibilityObject::mainFrame):
2316         (WebCore::AccessibilityObject::topDocument):
2317         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2318         (-[WebAccessibilityObjectWrapper accessibilityContainer]):
2319         * dom/Document.cpp:
2320         (WebCore::Document::~Document):
2321         (WebCore::Document::createRenderTree):
2322         (WebCore::Document::destroyRenderTree):
2323         (WebCore::Document::clearAXObjectCache):
2324         (WebCore::Document::existingAXObjectCache):
2325         (WebCore::Document::axObjectCache):
2326         (WebCore::Document::implicitClose):
2327         (WebCore::Document::topDocument):
2328         (WebCore::Document::topOrigin):
2329         (WebCore::Document::webkitCancelFullScreen):
2330         (WebCore::Document::webkitDidExitFullScreenForElement):
2331         * dom/Document.h:
2332         * page/DOMWindow.cpp:
2333         (WebCore::DOMWindow::incrementScrollEventListenersCount):
2334         (WebCore::DOMWindow::decrementScrollEventListenersCount):
2335         * rendering/RenderEmbeddedObject.cpp:
2336         (WebCore::RenderEmbeddedObject::isReplacementObscured):
2337         * rendering/RenderView.cpp:
2338         (WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
2339         
2340 2014-01-28  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
2341
2342         Sticky positioning is broken for table rows
2343         https://bugs.webkit.org/show_bug.cgi?id=112024
2344
2345         Reviewed by Simon Fraser.
2346
2347         Enable sticky positioning for table elements. 
2348         Also includes fix for bug ​wkb.ug/105654
2349         I don't have access to this bug, but from related commit message I 
2350         assume it says about "Heap use after free problem".
2351         Debugging showed that it wasn't heap use after free. 
2352         The real problem that RenderObject::container() returns object which is
2353         not RenderBlock and it is used as RenderBlock in 
2354         RenderBox::containingBlockLogicalHeightForPositioned() method.
2355         Added extra isRenderBlock check and search for containingBlock if 
2356         current block is not RenderBlock.
2357         
2358         Tests: fast/css/sticky/sticky-table-row-top.html
2359                fast/css/sticky/sticky-table-thead-top.html
2360
2361         * css/StyleResolver.cpp:
2362         (WebCore::StyleResolver::adjustRenderStyle):
2363         * rendering/RenderBox.cpp:
2364         (WebCore::RenderBox::containingBlockLogicalHeightForPositioned):
2365         * rendering/RenderTableRow.h:
2366
2367 2014-01-28  Myles C. Maxfield  <mmaxfield@apple.com>
2368
2369         Fixing several incorrect assumptions with handling isolated inlines.
2370         https://bugs.webkit.org/show_bug.cgi?id=127608
2371
2372         Reviewed by Simon Fraser.
2373
2374         Fixing capitalization.
2375
2376         * rendering/RenderBlockLineLayout.cpp:
2377         (WebCore::setUpResolverToResumeInIsolate):
2378         (WebCore::constructBidiRunsForSegment):
2379
2380 2014-01-28  Myles C. Maxfield  <mmaxfield@apple.com>
2381
2382         Fixing several incorrect assumptions with handling isolated inlines.
2383         https://bugs.webkit.org/show_bug.cgi?id=127608
2384
2385         Reviewed by Dave Hyatt.
2386
2387         First, when an isolated inline spans multiple lines, we aren't guaranteed
2388         to exit BidiResolver with a nested inline count of zero. Removing the
2389         assert that says otherwise.
2390         
2391         Previously in constructBidiRunsForSegment, we called bidiFirst in
2392         an attempt to properly setup the isolatedResolver for any dom/style
2393         that applied, but this only worked on the first line the isolated
2394         inline appeared in. Adding a function that approaches this properly
2395         by recursing through the parents of the starting object for the line
2396         and post-fixing direction attributes to the resolver.
2397         
2398         Finally, addressing an issue where the line following a removed isolated
2399         inline (with a continuation) failed to be marked dirty.
2400
2401         Merged from Blink: https://chromium.googlesource.com/chromium/blink/+/72698f203b1c50900e535b80945563b92b7eef23
2402
2403         Tests: fast/text/nested-bidi-assert.html
2404                fast/text/nested-bidi-with-continuation-crash.html
2405
2406         * platform/text/BidiResolver.h:
2407         (WebCore::Run>::~BidiResolver):
2408         * rendering/RenderBlockLineLayout.cpp:
2409         (WebCore::setupResolverToResumeInIsolate):
2410         (WebCore::constructBidiRunsForSegment):
2411         * rendering/RenderLineBoxList.cpp:
2412         (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
2413
2414 2014-01-28  Antti Koivisto  <antti@apple.com>
2415
2416         REGRESSION(r162837): 5% regression on html5-full-render and 3% regression in DoYouEvenBench
2417         https://bugs.webkit.org/show_bug.cgi?id=127722
2418
2419         Reviewed by Darin Adler.
2420
2421         Accumulate repaint region in RendeView instead of flushing rects directly to the system.
2422
2423         * dom/Document.cpp:
2424         (WebCore::Document::recalcStyle):
2425         (WebCore::Document::updateLayout):
2426         (WebCore::Document::topDocument):
2427         
2428             Make less silly.
2429
2430         * page/FrameView.cpp:
2431         (WebCore::FrameView::layout):
2432         * rendering/RenderView.cpp:
2433         (WebCore::RenderView::repaintViewRectangle):
2434         (WebCore::RenderView::flushAccumulatedRepaintRegion):
2435         (WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
2436         (WebCore::RenderView::RepaintRegionAccumulator::~RepaintRegionAccumulator):
2437         * rendering/RenderView.h:
2438
2439 2014-01-28  Jeremy Jones  <jeremyj@apple.com>
2440
2441         HTMLMediaElement::m_platformLayerBorrowed is uninitialized.
2442         https://bugs.webkit.org/show_bug.cgi?id=127759
2443
2444         Reviewed by Eric Carlson.
2445
2446         Initalize m_platformLayerBorrowed to false.
2447
2448         * html/HTMLMediaElement.cpp:
2449         (WebCore::HTMLMediaElement::HTMLMediaElement):
2450
2451 2014-01-28  Jer Noble  <jer.noble@apple.com>
2452
2453         [Mac] Use explicit, rather than canonical, AudioFormatFlags and types.
2454         https://bugs.webkit.org/show_bug.cgi?id=127781
2455
2456         Reviewed by Eric Carlson.
2457
2458         Since every mac platform uses Float32 audio samples, use these types explicitly
2459         rather than the implicit, canonical AudioSampleType type. Once we're using Float32
2460         explicity, we can also use the explicit kAudioFormatFlagsNativeFloatPacked flag
2461         rather than the canonical version.
2462
2463         * platform/audio/mac/AudioDestinationMac.cpp:
2464         (WebCore::AudioDestinationMac::configure):
2465         * platform/audio/mac/AudioFileReaderMac.cpp:
2466         (WebCore::AudioFileReader::createBus):
2467
2468 2014-01-27  Alexey Proskuryakov  <ap@apple.com>
2469
2470         Expose SQL database creation and modification times
2471         https://bugs.webkit.org/show_bug.cgi?id=127728
2472
2473         Reviewed by Brady Eidson.
2474
2475         * platform/FileSystem.h:
2476         * platform/posix/FileSystemPOSIX.cpp:
2477         (WebCore::getFileCreationTime):
2478         * platform/win/FileSystemWin.cpp:
2479         (WebCore::getFileCreationTimeFromFindData):
2480         (WebCore::getFileCreationTime):
2481         Added functions to get file creation times. Not all OSes support that, but Darwin
2482         and Windows do, as (I think) various BSD flavors.
2483
2484         * platform/gtk/FileSystemGtk.cpp: Added a stub for getFileCreationTime().
2485
2486         * platform/sql/SQLiteFileSystem.h:
2487         * platform/sql/SQLiteFileSystem.cpp:
2488         (WebCore::SQLiteFileSystem::databaseCreationTime):
2489         (WebCore::SQLiteFileSystem::databaseModificationTime):
2490         Expose it in the same strange manner other database file operations are.
2491
2492         * Modules/webdatabase/DatabaseDetails.h:
2493         (WebCore::DatabaseDetails::DatabaseDetails):
2494         (WebCore::DatabaseDetails::creationTime):
2495         (WebCore::DatabaseDetails::modificationTime):
2496         Added creation and modification times to DatabaseDetails.
2497
2498         * Modules/webdatabase/DatabaseManager.cpp:
2499         (WebCore::DatabaseManager::ProposedDatabase::ProposedDatabase):
2500         (WebCore::DatabaseManager::openDatabaseBackend):
2501         ProposedDatabase is an unfortunate mechanism for communicating quota errors to the
2502         client, we should really straighten it up. But for now, just leave the times uninitialized.
2503
2504         * Modules/webdatabase/DatabaseBackendBase.cpp: (WebCore::DatabaseBackendBase::details):
2505         This code path is for handling quota errors, so there is no need to initialize most
2506         of DatabaseDetails here as well.
2507
2508         * Modules/webdatabase/DatabaseTracker.cpp: (WebCore::DatabaseTracker::detailsForNameAndOrigin):
2509         * Modules/webdatabase/DatabaseTracker.h:
2510         Fill in database file times. Inlined and removed usageForDatabase function to
2511         avoid rebuilding the path multiple times.
2512
2513 2014-01-28  Jer Noble  <jer.noble@apple.com>
2514
2515         Setting muted attribute on <video> element is not reflected in controls
2516         https://bugs.webkit.org/show_bug.cgi?id=127726
2517
2518         Reviewed by Eric Carlson.
2519
2520         If the 'muted' IDL attribute is queried after the 'muted' and 'src' content attributes are
2521         set but before loading begins, it will return 'false' until loading begins, but with no
2522         way to query whether that value is valid, nor firing a volumechange event when its value
2523         changes.
2524
2525         The HTML spec says that the 'muted' content attribute controls whether audio output is
2526         muted "when the media element is created", not when loading begins, but we don't
2527         necessarily have a signal that the element is fully parsed.  Additionally, this means its
2528         impossible to make an element via script and get this behavior.
2529
2530         So the new behavior is that the 'muted' IDL attribute will always reflect the 'muted'
2531         content attribute up until one of the following three conditions:
2532
2533         - The 'muted' IDL attribute is set via script.
2534         - The element is inserted in the document.
2535         - The element begins loading.
2536
2537         After the first one of the above conditions, the 'muted' IDL attribute will no longer
2538         change when the 'muted' content attribute changes.
2539
2540         * html/HTMLMediaElement.cpp:
2541         (WebCore::HTMLMediaElement::HTMLMediaElement):
2542         (WebCore::HTMLMediaElement::parseAttribute):
2543         * html/HTMLMediaElement.h:
2544
2545 2014-01-28  Anders Carlsson  <andersca@apple.com>
2546
2547         Add stubbed out VisitedLinkProvider class
2548         https://bugs.webkit.org/show_bug.cgi?id=127744
2549
2550         Reviewed by Andreas Kling.
2551
2552         This is a first step towards moving responsibility of visited links from 
2553         the page group to a separate object.
2554
2555         * CMakeLists.txt:
2556         * GNUmakefile.list.am:
2557         * WebCore.vcxproj/WebCore.vcxproj:
2558         * WebCore.vcxproj/WebCore.vcxproj.filters:
2559         * WebCore.xcodeproj/project.pbxproj:
2560         * page/PageGroup.cpp:
2561         (WebCore::PageGroup::PageGroup):
2562         * page/PageGroup.h:
2563         (WebCore::PageGroup::visitedLinkProvider):
2564         * page/VisitedLinkProvider.cpp: Added.
2565         (WebCore::VisitedLinkProvider::VisitedLinkProvider):
2566         (WebCore::VisitedLinkProvider::~VisitedLinkProvider):
2567         * page/VisitedLinkProvider.h: Added.
2568         (WebCore::VisitedLinkProvider::create):
2569
2570 2014-01-28  Gurpreet Kaur  <k.gurpreet@samsung.com>
2571
2572         Add support for menclose element
2573         https://bugs.webkit.org/show_bug.cgi?id=85729
2574
2575         Reviewed by Chris Fleizach.
2576
2577         Added support for menclose element. MathML <menclose> element renders
2578         its content inside an enclosing notation specified by the notation
2579         attribute. The notation attribute can have values longdiv, box, left,
2580         right, top, bottom , radical, madruwb, actuarial, roundedbox, circle,
2581         updiagonalstrike, downdiagonalstrike, verticalstrike and
2582         horizontalstrike.
2583
2584         Tests: mathml/presentation/menclose-add-children.html
2585                mathml/presentation/menclose-notation-attribute-add.html
2586                mathml/presentation/menclose-notation-attribute-change-value.html
2587                mathml/presentation/menclose-notation-attribute-remove.html
2588                mathml/presentation/menclose-notation-attribute-set1.html
2589                mathml/presentation/menclose-notation-attribute-set2.html
2590                mathml/presentation/menclose-notation-no-overlap.html
2591                mathml/presentation/menclose-notation-radical.html
2592                mathml/presentation/menclose-remove-children.html
2593
2594         * CMakeLists.txt:
2595         * GNUmakefile.list.am:
2596         * WebCore.vcxproj/WebCore.vcxproj:
2597         * WebCore.vcxproj/WebCore.vcxproj.filters:
2598         * WebCore.xcodeproj/project.pbxproj:
2599         * css/mathml.css:
2600         (mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
2601         (math, mrow, mfenced, msqrt, mroot, merror, mphantom, mstyle, menclose):
2602         * mathml/MathMLAllInOne.cpp:
2603         * mathml/MathMLElement.h:
2604         * mathml/MathMLInlineContainerElement.cpp:
2605         * mathml/MathMLMencloseElement.cpp: Added.
2606         (WebCore::MathMLMencloseElement::MathMLMencloseElement):
2607         (WebCore::MathMLMencloseElement::create):
2608         (WebCore::MathMLMencloseElement::createElementRenderer):
2609         (WebCore::MathMLMencloseElement::isPresentationAttribute):
2610         (WebCore::MathMLMencloseElement::finishParsingChildren):
2611         (WebCore::MathMLMencloseElement::collectStyleForPresentationAttribute):
2612         (WebCore::MathMLMencloseElement::longDivLeftPadding):
2613         * mathml/MathMLMencloseElement.h: Added.
2614         (WebCore::toMathMLMencloseElement):
2615         * mathml/mathattrs.in:
2616         * mathml/mathtags.in:
2617         * rendering/mathml/RenderMathMLMenclose.cpp: Added.
2618         (WebCore::RenderMathMLMenclose::RenderMathMLMenclose):
2619         (WebCore::RenderMathMLMenclose::addChild):
2620         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
2621         (WebCore::RenderMathMLMenclose::updateLogicalHeight):
2622         (WebCore::RenderMathMLMenclose::paint):
2623         (WebCore::RenderMathMLMenclose::checkNotationalValuesValidity):
2624         * rendering/mathml/RenderMathMLMenclose.h: Added.
2625         * rendering/mathml/RenderMathMLRoot.cpp:
2626         (WebCore::RenderMathMLRoot::RenderMathMLRoot):
2627         * rendering/mathml/RenderMathMLRoot.h:
2628         * rendering/mathml/RenderMathMLSquareRoot.cpp:
2629         (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot):
2630         (WebCore::RenderMathMLSquareRoot::createAnonymousWithParentRenderer):
2631         * rendering/mathml/RenderMathMLSquareRoot.h:
2632         Added new file related to menclose element implementation. Menclose
2633         element is created and while parsing its notation attribute based on
2634         its values like top, left CSSBorder properties are applied and for
2635         values like circle, verticalstrike, longidv its taken care in paint.
2636         For radical value an anonymous RenderMathMLSquareRoot is created as
2637         a child of menclose.
2638
2639 2014-01-28  Krzysztof Czech  <k.czech@samsung.com>
2640
2641         [ATK] accessibility/range-alter-by-percent.html is failing after r162587.
2642         https://bugs.webkit.org/show_bug.cgi?id=127774
2643
2644         Reviewed by Mario Sanchez Prada.
2645
2646         Implicit value of step in range type elements should be one or larger.
2647
2648         No new tests. Covered by exiting one.
2649
2650         * accessibility/atk/WebKitAccessibleInterfaceValue.cpp:
2651         (webkitAccessibleValueGetMinimumIncrement):
2652
2653 2014-01-28  Mark Rowe  <mrowe@apple.com>
2654
2655         <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
2656
2657         Reviewed by Ryosuke Niwa.
2658
2659         * accessibility/mac/AXObjectCacheMac.mm:
2660         (WebCore::AXObjectCache::postPlatformNotification):
2661         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2662         (-[WebAccessibilityObjectWrapper renderWidgetChildren]):
2663         * platform/audio/mac/AudioDestinationMac.cpp:
2664         (WebCore::AudioDestinationMac::configure):
2665         * platform/audio/mac/AudioFileReaderMac.cpp:
2666         (WebCore::AudioFileReader::createBus):
2667
2668 2014-01-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2669
2670         [SOUP] Remove soupURIToKURL
2671         https://bugs.webkit.org/show_bug.cgi?id=127104
2672
2673         Reviewed by Martin Robinson.
2674
2675         In favor of a URL constructor receiving a SoupURI. Also add a
2676         method to URL to create a soupURI.
2677
2678         * GNUmakefile.list.am: Remove SoupURIUtils and add URLSoup.
2679         * PlatformEfl.cmake: Ditto.
2680         * PlatformGTK.cmake: Ditto.
2681         * platform/URL.h: Add URL constructor receiving a SoupURI and
2682         createSoupURI() to create a new soupURI for the URL.
2683         * platform/network/soup/CookieJarSoup.cpp:
2684         (WebCore::setCookiesFromDOM): Use URL::createSoupURI().
2685         (WebCore::cookiesForSession): Ditto.
2686         (WebCore::getRawCookies): Ditto.
2687         (WebCore::deleteCookie): Ditto.
2688         * platform/network/soup/ResourceHandleSoup.cpp:
2689         (WebCore::doRedirect): Use the new URL constructor instead of
2690         soupURIToKURL.
2691         (WebCore::createSoupRequestAndMessageForHandle): Use URL::createSoupURI().
2692         * platform/network/soup/ResourceRequest.h: Rename soupURI as
2693         createSoupURI to make it clear that the method returns a newly
2694         created SoupURI.
2695         * platform/network/soup/ResourceRequestSoup.cpp:
2696         (WebCore::ResourceRequest::updateSoupMessageMembers): Use URL::createSoupURI().
2697         (WebCore::ResourceRequest::updateSoupMessage): Ditto.
2698         (WebCore::ResourceRequest::updateFromSoupMessage): Use the new URL
2699         constructor instead of soupURIToKURL.
2700         (WebCore::ResourceRequest::createSoupURI): Use URL::createSoupURI().
2701         * platform/network/soup/ResourceResponseSoup.cpp:
2702         (WebCore::ResourceResponse::updateFromSoupMessage): Use the new
2703         URL constructor instead of soupURIToKURL.
2704         * platform/network/soup/SoupURIUtils.cpp: Removed.
2705         * platform/network/soup/SoupURIUtils.h: Removed.
2706         * platform/soup/URLSoup.cpp: Added.
2707         (WebCore::URL::URL):
2708         (WebCore::URL::createSoupURI):
2709
2710 2014-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2711
2712         [GTK] Avoid unnecessary string duplications in FileSystemGtk
2713         https://bugs.webkit.org/show_bug.cgi?id=127469
2714
2715         Reviewed by Martin Robinson.
2716
2717         We are using fileSystemRepresentation() everywhere internally
2718         which returns a CString that always duplicates the string.
2719         Add unescapedFilename() internal helper function that returns a
2720         GUniquePtr and used it everywhere instead of fileSystemRepresentation().
2721
2722         * platform/gtk/FileSystemGtk.cpp:
2723         (WebCore::unescapedFilename):
2724         (WebCore::fileSystemRepresentation):
2725         (WebCore::filenameForDisplay):
2726         (WebCore::fileExists):
2727         (WebCore::deleteFile):
2728         (WebCore::deleteEmptyDirectory):
2729         (WebCore::getFileStat):
2730         (WebCore::getFileSize):
2731         (WebCore::getFileModificationTime):
2732         (WebCore::getFileMetadata):
2733         (WebCore::pathByAppendingComponent):
2734         (WebCore::makeAllDirectories):
2735         (WebCore::pathGetFileName):
2736         (WebCore::directoryName):
2737         (WebCore::listDirectory):
2738         (WebCore::openFile):
2739
2740 2014-01-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2741
2742         [GTK] Make webkit_uri_scheme_request_get_web_view() work with CustomProtocols
2743         https://bugs.webkit.org/show_bug.cgi?id=127614
2744
2745         Reviewed by Gustavo Noronha Silva.
2746
2747         Add API to set the page identifier that initiated the request to
2748         ResourceRequest, and remove the initiatingPageID() method from the
2749         NetworkingContext class.
2750
2751         * platform/network/NetworkingContext.h:
2752         * platform/network/ResourceHandle.h:
2753         * platform/network/soup/ResourceHandleSoup.cpp:
2754         (WebCore::createSoupRequestAndMessageForHandle):
2755         * platform/network/soup/ResourceRequest.h:
2756         (WebCore::ResourceRequest::ResourceRequest):
2757         (WebCore::ResourceRequest::initiatingPageID):
2758         (WebCore::ResourceRequest::setInitiatingPageID):
2759         * platform/network/soup/ResourceRequestSoup.cpp:
2760         (WebCore::ResourceRequest::updateSoupRequest):
2761         (WebCore::ResourceRequest::updateFromSoupRequest):
2762
2763 2014-01-27  Tim Horton  <timothy_horton@apple.com>
2764
2765         Lots of varied and random crashes on the scrolling thread (ScrollbarPainters are going away)
2766         https://bugs.webkit.org/show_bug.cgi?id=127734
2767         <rdar://problem/15906263>
2768
2769         Reviewed by Simon Fraser.
2770
2771         * page/scrolling/ScrollingStateScrollingNode.h:
2772         Retain the ScrollbarPainters in the scrolling state tree.
2773
2774 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2775
2776         Unreviewed iOS build fix. FALLTHROUGHs for iOS.
2777
2778         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2779         (-[WebAccessibilityObjectWrapper accessibilityTraits]):
2780         (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]):
2781
2782 2014-01-27  Roger Fong  <roger_fong@apple.com>
2783
2784         WebGLLoadPolicy::WebGLAsk is an unnecessary value.
2785         https://bugs.webkit.org/show_bug.cgi?id=127755
2786
2787         Reviewed by Anders Carlsson.
2788
2789         * html/HTMLCanvasElement.cpp:
2790         (WebCore::HTMLCanvasElement::getContext):
2791         * loader/FrameLoaderTypes.h:
2792
2793 2014-01-27  Brady Eidson  <beidson@apple.com>
2794
2795         IDB: Cursor support - Messaging, IPC, Threading plumbing
2796         https://bugs.webkit.org/show_bug.cgi?id=127736
2797
2798         Reviewed by Sam Weinig.
2799
2800         * Modules/indexeddb/IDBCursorBackendOperations.h:
2801         (WebCore::CursorIterationOperation::cursorID):
2802         (WebCore::CursorAdvanceOperation::cursorID):
2803
2804         * Modules/indexeddb/IDBTransactionBackendOperations.h:
2805         (WebCore::OpenCursorOperation::transactionID):
2806
2807         * WebCore.exp.in:
2808
2809 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2810
2811         WebCore: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
2812         https://bugs.webkit.org/show_bug.cgi?id=127671
2813
2814         Reviewed by Ryosuke Niwa.
2815
2816         * Configurations/Base.xcconfig:
2817         Enable the warning.
2818
2819         * css/StyleResolver.cpp:
2820         (WebCore::StyleResolver::applyProperty):
2821         Caught a bug. CSSPropertyWebkitAlt could fall through to CSSPropertyQuotes.
2822
2823         * css/SVGCSSParser.cpp:
2824         (WebCore::CSSParser::parseSVGValue):
2825         Caught a bug. CSSPropertyWebkitSvgShadow could fall through to CSSPropertyMaskType.
2826
2827         * platform/Decimal.cpp:
2828         (WebCore::Decimal::fromString):
2829         Possible bug. Implementation doesn't seem to match its documentation.
2830         Filed an issue to follow-up on this unclear function.
2831
2832         * css/makeprop.pl:
2833         * css/makevalues.pl:
2834         * platform/ColorData.gperf:
2835         Ignore implicit fallthrough warnings in generated code. gperf outputs
2836         a "/*FALLTHROUGH*/" comment, but is not easily customizable to change
2837         this output. Easiest to just ignore the warning for now.
2838
2839         * rendering/AutoTableLayout.cpp:
2840         (WebCore::AutoTableLayout::recalcColumn):
2841         (WebCore::AutoTableLayout::calcEffectiveLogicalWidth):
2842         (WebCore::AutoTableLayout::layout):
2843         There has been a "fall through" comment immediately followed by a break
2844         since its introduction in 2003. Removing the inaccurate comment.
2845
2846         * accessibility/AccessibilityNodeObject.cpp:
2847         (WebCore::AccessibilityNodeObject::canHaveChildren):
2848         (WebCore::AccessibilityNodeObject::visibleText):
2849         (WebCore::AccessibilityNodeObject::title):
2850         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
2851         (-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
2852         (-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
2853         * bindings/js/SerializedScriptValue.cpp:
2854         (WebCore::CloneSerializer::serialize):
2855         (WebCore::CloneDeserializer::deserialize):
2856         * css/CSSComputedStyleDeclaration.cpp:
2857         (WebCore::ComputedStyleExtractor::propertyValue):
2858         * css/CSSParser.cpp:
2859         (WebCore::CSSParser::parseValue):
2860         (WebCore::CSSParser::parseContent):
2861         (WebCore::CSSParser::realLex):
2862         * css/CSSSelector.cpp:
2863         (WebCore::CSSSelector::extractPseudoType):
2864         (WebCore::CSSSelector::selectorText):
2865         * css/StyleProperties.cpp:
2866         (WebCore::StyleProperties::asText):
2867         * css/StyleSheetContents.cpp:
2868         (WebCore::childRulesHaveFailedOrCanceledSubresources):
2869         * dom/Node.cpp:
2870         (WebCore::appendTextContent):
2871         * html/parser/HTMLTreeBuilder.cpp:
2872         (WebCore::HTMLTreeBuilder::processStartTag):
2873         (WebCore::HTMLTreeBuilder::processEndTag):
2874         (WebCore::HTMLTreeBuilder::processCharacterBuffer):
2875         (WebCore::HTMLTreeBuilder::processEndOfFile):
2876         * loader/cache/CachedResourceLoader.cpp:
2877         (WebCore::CachedResourceLoader::requestResource):
2878         * page/EventSource.cpp:
2879         (WebCore::EventSource::parseEventStream):
2880         * platform/DateComponents.cpp:
2881         (WebCore::DateComponents::toStringForTime):
2882         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2883         (WebCore::MediaPlayerPrivateAVFoundation::updateStates):
2884         * platform/graphics/cg/GraphicsContextCG.cpp:
2885         (WebCore::GraphicsContext::platformInit):
2886         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2887         (WebCore::MediaPlayerPrivateGStreamer::totalBytes):
2888         * platform/graphics/win/FullScreenController.cpp:
2889         (FullScreenController::Private::fullscreenClientWndProc):
2890         * platform/text/BidiResolver.h:
2891         (WebCore::Run>::updateStatusLastFromCurrentDirection):
2892         (WebCore::Run>::createBidiRunsForLine):
2893         * platform/text/win/LocaleWin.cpp:
2894         (WebCore::LocaleWin::initializeLocaleData):
2895         * rendering/PointerEventsHitRules.cpp:
2896         (WebCore::PointerEventsHitRules::PointerEventsHitRules):
2897         * rendering/RenderBlockFlow.cpp:
2898         (WebCore::RenderBlockFlow::newLine):
2899         * rendering/RenderBlockLineLayout.cpp:
2900         (WebCore::RenderBlockFlow::updateLogicalWidthForAlignment):
2901         * rendering/RenderBox.cpp:
2902         (WebCore::RenderBox::computeReplacedLogicalWidthUsing):
2903         * rendering/RenderBoxModelObject.cpp:
2904         (WebCore::RenderBoxModelObject::calculateFillTileSize):
2905         * rendering/RenderObject.cpp:
2906         (WebCore::RenderObject::drawLineForBoxSide):
2907         * rendering/RenderQuote.cpp:
2908         (WebCore::RenderQuote::originalText):
2909         * rendering/RenderReplaced.cpp:
2910         (WebCore::RenderReplaced::replacedContentRect):
2911         * rendering/RenderTable.cpp:
2912         (WebCore::RenderTable::addChild):
2913         * rendering/RenderTheme.cpp:
2914         (WebCore::RenderTheme::adjustStyle):
2915         * rendering/style/RenderStyle.cpp:
2916         (WebCore::RenderStyle::setWordSpacing):
2917         * rendering/svg/RenderSVGResource.cpp:
2918         (WebCore::requestPaintingResource):
2919         * rendering/svg/SVGMarkerData.h:
2920         (WebCore::SVGMarkerData::updateMarkerDataForPathElement):
2921         * svg/SVGPathParser.cpp:
2922         (WebCore::SVGPathParser::parsePathDataFromSource):
2923         * svg/SVGTransformDistance.cpp:
2924         (WebCore::SVGTransformDistance::SVGTransformDistance):
2925         (WebCore::SVGTransformDistance::scaledDistance):
2926         (WebCore::SVGTransformDistance::addSVGTransforms):
2927         (WebCore::SVGTransformDistance::addToSVGTransform):
2928         (WebCore::SVGTransformDistance::distance):
2929         Add annotation or break before falling into a default:break;
2930
2931 2014-01-27  Andreas Kling  <akling@apple.com>
2932
2933         Allow mmap encoded data replacement for WOFF fonts.
2934         <https://webkit.org/b/127737>
2935
2936         We always have to convert WOFF fonts to SFNT format. This happens
2937         in a separate buffer from the CachedFont's internal resource buffer.
2938         Because of this, there's no need to protect the original buffer from
2939         mmap replacement.
2940
2941         With this change, WOFF web fonts are no longer duplicated between
2942         the network and web processes.
2943
2944         Reviewed by Brady Eidson.
2945
2946         * loader/cache/CachedFont.cpp:
2947         (WebCore::CachedFont::CachedFont):
2948         (WebCore::CachedFont::ensureCustomFontData):
2949         (WebCore::CachedFont::mayTryReplaceEncodedData):
2950         * loader/cache/CachedFont.h:
2951
2952 2014-01-27  David Hyatt  <hyatt@apple.com>
2953
2954         [New Multicolumn] Add support for block progression axis and reverse direction
2955         https://bugs.webkit.org/show_bug.cgi?id=127715
2956
2957         Reviewed by thorton.
2958
2959         This patch adds support for -webkit-progression-direction and -webkit-progression-axis
2960         to the new column code. This allows columns to stack along the block axis instead of
2961         the inline axis or to reverse directions along that progression axis.
2962
2963         Added fast/multicol/newmulticol/progression-reverse.html and
2964               fast/multicol/newmulticol/progression-reverse-overflow.html
2965
2966         * rendering/RenderBlock.cpp:
2967         (WebCore::RenderBlock::isTopLayoutOverflowAllowed):
2968         (WebCore::RenderBlock::isLeftLayoutOverflowAllowed):
2969         New functions have been added for top and left layout overflow in order to get
2970         a bunch of code out of RenderBox that didn't belong there. RenderBlock is overriding
2971         the functions for the old multicolumn layout code to keep it working.
2972
2973         * rendering/RenderBlock.h:
2974         Added the new top/left overflow functions.
2975
2976         * rendering/RenderBlockFlow.cpp:
2977         (WebCore::RenderBlockFlow::determineLogicalLeftPositionForChild):
2978         Moved from RenderBlock, since it didn't belong there.
2979
2980         (WebCore::RenderBlockFlow::isTopLayoutOverflowAllowed):
2981         (WebCore::RenderBlockFlow::isLeftLayoutOverflowAllowed):
2982         * rendering/RenderBlockFlow.h:
2983         Overridden for the new multi-column code to specify when top/left overflow are
2984         allowed (e.g., when the columns go backwards).
2985
2986         * rendering/RenderBox.cpp:
2987         (WebCore::RenderBox::addLayoutOverflow):
2988         Overridden to use the new top/left overflow functions.
2989
2990         * rendering/RenderBox.h:
2991         (WebCore::RenderBox::isTopLayoutOverflowAllowed):
2992         (WebCore::RenderBox::isLeftLayoutOverflowAllowed):
2993         Added base definitions that look at direction and writing-mode.
2994
2995         * rendering/RenderFlexibleBox.cpp:
2996         (WebCore::RenderFlexibleBox::isTopLayoutOverflowAllowed):
2997         (WebCore::RenderFlexibleBox::isLeftLayoutOverflowAllowed):
2998         * rendering/RenderFlexibleBox.h:
2999         Overrides for flexible box of the top/left overflow functions.
3000
3001         * rendering/RenderMultiColumnFlowThread.h:
3002         Make sure requiresBalancing() is set to false if the axis of the columns
3003         is block, since at least right now, we don't support balancing columns
3004         along the block axis. (In theory we could support this in the future, but
3005         nobody has requested it.)
3006
3007         * rendering/RenderMultiColumnSet.cpp:
3008         (WebCore::RenderMultiColumnSet::updateLogicalWidth):
3009         Remove the code that expands the width of multi column sets. We now always
3010         let their logical width match the containing block's content width and instead
3011         add the overflow to the set itself.
3012
3013         (WebCore::RenderMultiColumnSet::columnRectAt):
3014         (WebCore::RenderMultiColumnSet::flowThreadPortionOverflowRect):
3015         (WebCore::RenderMultiColumnSet::paintColumnRules):
3016         (WebCore::RenderMultiColumnSet::initialBlockOffsetForPainting):
3017         (WebCore::RenderMultiColumnSet::collectLayerFragments):
3018         (WebCore::RenderMultiColumnSet::adjustRegionBoundsFromFlowThreadPortionRect):
3019         Patch all of these functions to know how to handle a block axis or reversed
3020         direction.
3021
3022         (WebCore::RenderMultiColumnSet::addOverflowFromChildren):
3023         * rendering/RenderMultiColumnSet.h:
3024         Make multi-column set add in its overflow in the same way that the old
3025         multi-column code did, by looking at the last column rect. (This is really
3026         not a very good way to do it, but it's the same as the old code for now.)
3027
3028 2014-01-27  Daniel Bates  <dabates@apple.com>
3029
3030         Fix the Mac build following <http://trac.webkit.org/changeset/162887>
3031         (https://bugs.webkit.org/show_bug.cgi?id=127703)
3032
3033         Export symbol for WebCore::AXObjectCache::enableAccessibility().
3034
3035         * WebCore.exp.in:
3036
3037 2014-01-27  Roger Fong  <roger_fong@apple.com>
3038
3039         [Mac] Unreviewed build fix. Add missing export symbol.
3040
3041         * WebCore.exp.in:
3042
3043 2014-01-27  Roger Fong  <roger_fong@apple.com>
3044
3045         [Windows] Tests crashing on Windows after r162816.
3046         https://bugs.webkit.org/show_bug.cgi?id=127703.
3047
3048         Reviewed by Alexey Proskuryakov.
3049
3050         * accessibility/AXObjectCache.cpp:
3051         (WebCore::AXObjectCache::enableAccessibility):
3052         (WebCore::AXObjectCache::disableAccessibility):
3053         * accessibility/AXObjectCache.h: Un-inline some methods so that they can be exported.
3054
3055 2014-01-27  Andy Estes  <aestes@apple.com>
3056
3057         Update bindings test expectations after r162872
3058
3059         * bindings/scripts/test/ObjC/DOMTestInterface.h:
3060         * bindings/scripts/test/ObjC/DOMTestObj.h:
3061
3062 2014-01-27  Andy Estes  <aestes@apple.com>
3063
3064         Scrub WebKit API headers of WTF macros
3065         https://bugs.webkit.org/show_bug.cgi?id=127706
3066
3067         Reviewed by David Kilzer.
3068
3069         * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
3070         * bindings/objc/DOMEvents.h: Guarded include of
3071         DOM{Gesture,Touch}Event.h with TARGET_OS_IPHONE, since those features
3072         are always enabled on iOS.
3073         * platform/graphics/mac/MediaPlayerProxy.h: Replaced PLATFORM(IOS) with
3074         TARGET_OS_IPHONE and ensured ENABLE_IOS_AIRPLAY is defined.
3075         * platform/ios/SystemMemory.h: Replaced PLATFORM(IOS) with
3076         TARGET_OS_IPHONE.
3077         * platform/ios/wak/WKGraphics.h: Replaced PLATFORM(IOS_SIMULATOR) with
3078         TARGET_IPHONE_SIMULATOR.
3079
3080 2014-01-27  Jer Noble  <jer.noble@apple.com>
3081
3082         [iOS] Use callOnMainThread() not dispatch_async() in MediaPlayerPrivateAVFoundationObjC
3083         https://bugs.webkit.org/show_bug.cgi?id=127701
3084
3085         Reviewed by Eric Carlson.
3086
3087         dispatch_async(dispatch_get_main_queue(), ...) used to be fine so long as the main
3088         thread was also the web thread. But since that's not the case on iOS, we should be
3089         using callOnMainThread() instead (because it dispatches to the web thread, not as
3090         its name implies, the main thread).
3091
3092         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
3093         (WebCore::MediaPlayerPrivateAVFoundationObjC::createWeakPtr):
3094         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
3095         (WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
3096         (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer):
3097         (WebCore::MediaPlayerPrivateAVFoundationObjC::seekToTime):
3098         (-[WebCoreAVFMovieObserver legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:]):
3099         (-[WebCoreAVFMovieObserver outputSequenceWasFlushed:]):
3100         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]):
3101         (-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForResponseToAuthenticationChallenge:]):
3102         (-[WebCoreAVFLoaderDelegate resourceLoader:didCancelLoadingRequest:]):
3103
3104 2014-01-27  Maciej Stachowiak  <mjs@apple.com>
3105
3106         Move Conditional=BLOB from URL interface to Blob-related methods, to prepare for adding URL API
3107         https://bugs.webkit.org/show_bug.cgi?id=127719
3108
3109         Reviewed by Sam Weinig.
3110
3111         * html/DOMURL.idl:
3112
3113 2014-01-27  Andreas Kling  <akling@apple.com>
3114
3115         Remove unused USE(OPENTYPE_SANITIZER) code.
3116         <https://webkit.org/b/127710>
3117
3118         This code was only used by the Chromium port.
3119
3120         Reviewed by Darin Adler.
3121
3122         * GNUmakefile.list.am:
3123         * WebCore.xcodeproj/project.pbxproj:
3124         * loader/cache/CachedFont.cpp:
3125         (WebCore::CachedFont::ensureCustomFontData):
3126         * platform/graphics/WOFFFileFormat.cpp:
3127         * platform/graphics/WOFFFileFormat.h:
3128         * platform/graphics/opentype/OpenTypeSanitizer.cpp: Removed.
3129         * platform/graphics/opentype/OpenTypeSanitizer.h: Removed.
3130
3131
3132 2014-01-27  Andy Estes  <aestes@apple.com>
3133
3134         Stop the code generator from adding ENABLE() macros to Objective-C DOM headers
3135         https://bugs.webkit.org/show_bug.cgi?id=127706
3136
3137         Reviewed by David Kilzer.
3138
3139         Instead of adding ENABLE() macros to generated Objective-C DOM
3140         headers, which might become Public or Private headers, elide generated
3141         code for disabled features.
3142
3143         * bindings/scripts/CodeGeneratorObjC.pm:
3144         (GenerateInterface): Passed $defines to GenerateHeader.
3145         (ConditionalIsEnabled): Checked if the given conditional is found in
3146         $defines. Handled conditionals with '&' and '|'.
3147         (GenerateHeader): Rather than calling GenerateConditionalString to
3148         generate an "#if ENABLE(...)", called ConditionalIsEnabled() to see
3149         whether we should generate code for the given constant, attribute, or
3150         function.
3151
3152 2014-01-27  Zoltan Horvath  <zoltan@webkit.org>
3153
3154         [CSS Shapes] Remove restriction of negative values for inset parameters
3155         https://bugs.webkit.org/show_bug.cgi?id=127704
3156
3157         Reviewed by Darin Adler.
3158
3159         The latest version of CSS Shapes (http://www.w3.org/TR/css-shapes/) specification
3160         doesn't contain any restriction of using negative values for the inset sizing.
3161         I removed the restriction from the code and added testing for them.
3162
3163         Existing tests have been extended with the new cases.
3164
3165         * css/CSSParser.cpp:
3166         (WebCore::CSSParser::parseBasicShapeInset):
3167
3168 2014-01-27  Eric Carlson  <eric.carlson@apple.com>
3169
3170         [iOS] preload=none prevents play()
3171         https://bugs.webkit.org/show_bug.cgi?id=127702
3172
3173         Reviewed by Jer Noble.
3174
3175         No new tests, covered by existing tests.
3176
3177         * html/HTMLMediaElement.cpp:
3178         (WebCore::HTMLMediaElement::potentiallyPlaying): Cleanup logic to make it simpler to understand,
3179             fix logic error introduced in r161973
3180         (WebCore::HTMLMediaElement::updatePlayState): Conditionalize some iOS-only code on whether or not
3181             we are using the plug-in proxy.
3182
3183 2014-01-27  Brady Eidson  <beidson@apple.com>
3184
3185         IDB: LevelDB backing store shouldn't know about IDBCursor or IDBCallbacks
3186         https://bugs.webkit.org/show_bug.cgi?id=127708
3187
3188         Reviewed by Tim Horton.
3189
3190         Move that knowledge to the IDBCursorBackendOperations inside the callback.
3191
3192         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
3193         (WebCore::CursorAdvanceOperation::perform):
3194         (WebCore::CursorIterationOperation::perform):
3195         * Modules/indexeddb/IDBCursorBackendOperations.h:
3196
3197         * Modules/indexeddb/IDBServerConnection.h:
3198         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
3199         (WebCore::IDBServerConnectionLevelDB::cursorAdvance):
3200         (WebCore::IDBServerConnectionLevelDB::cursorIterate):
3201         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
3202
3203 2014-01-27  Brady Eidson  <beidson@apple.com>
3204
3205         IDB: Remove unused concept of "cursor prefetch"
3206         https://bugs.webkit.org/show_bug.cgi?id=127700
3207
3208         Reviewed by Tim Horton.
3209
3210         * Modules/indexeddb/IDBCursorBackend.cpp:
3211         * Modules/indexeddb/IDBCursorBackend.h:
3212         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
3213         * Modules/indexeddb/IDBCursorBackendOperations.h:
3214         * Modules/indexeddb/IDBServerConnection.h:
3215         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
3216         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
3217
3218 2014-01-27  Brady Eidson  <beidson@apple.com>
3219
3220         IDB: Refactor out the last of the operation callbacks that are called by the LevelDB backing store
3221         https://bugs.webkit.org/show_bug.cgi?id=127592
3222
3223         Reviewed by Tim Horton.
3224
3225         For each of the 3 remaining operations where the backing store calls callbacks directly,
3226         factor out the callbacks to the operation itself.
3227
3228
3229         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
3230         (WebCore::OpenCursorOperation::perform):
3231         (WebCore::CountOperation::perform):
3232         (WebCore::DeleteRangeOperation::perform):
3233         * Modules/indexeddb/IDBTransactionBackendOperations.h:
3234
3235         * Modules/indexeddb/IDBServerConnection.h:
3236         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
3237         (WebCore::IDBServerConnectionLevelDB::openCursor):
3238         (WebCore::IDBServerConnectionLevelDB::count):
3239         (WebCore::IDBServerConnectionLevelDB::deleteRange):
3240         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
3241
3242 2014-01-27  Commit Queue  <commit-queue@webkit.org>
3243
3244         Unreviewed, rolling out r162755.
3245         http://trac.webkit.org/changeset/162755
3246         https://bugs.webkit.org/show_bug.cgi?id=127696
3247
3248         not quite right, breaks subframe scrolling in some cases
3249         (Requested by thorton on #webkit).
3250
3251         * page/scrolling/ScrollingTree.cpp:
3252         (WebCore::ScrollingTree::ScrollingTree):
3253         (WebCore::ScrollingTree::shouldHandleWheelEventSynchronously):
3254         (WebCore::ScrollingTree::removeDestroyedNodes):
3255         * page/scrolling/ScrollingTree.h:
3256         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
3257         (WebCore::ScrollingTreeScrollingNodeMac::handleWheelEvent):
3258
3259 2014-01-27  Zoltan Horvath  <zoltan@webkit.org>
3260
3261         [CSS Shapes] inset() function with multiple spaces on element style
3262         https://bugs.webkit.org/show_bug.cgi?id=127617
3263
3264         Reviewed by Dirk Schulze.
3265
3266         When only a subset of parameters were defined for an inset shape, the built
3267         inset string contained some extra spaces. This patch fixes the behavior and
3268         adds tests for the case. I also removed the string allocation optimization from
3269         buildInsetString, since it's not worthwhile to always allocate as many memory
3270         as needed for a fully defined inset.
3271
3272         I added the new test cases to the shapes parser code test.
3273
3274         * css/CSSBasicShapes.cpp:
3275         (WebCore::buildInsetString):
3276
3277 2014-01-27  Antti Koivisto  <antti@apple.com>
3278
3279         * WebCore.exp.in: Add export needed for iOS.
3280
3281 2014-01-27  Antti Koivisto  <antti@apple.com>
3282
3283         REGRESSION(r133214): Don't invalidate style when adding classes that don't match rules
3284         https://bugs.webkit.org/show_bug.cgi?id=126177
3285
3286         Reviewed by Anders Carlsson.
3287         
3288         Spotted by Elliott Sprehn in Chromium.
3289
3290         * dom/Element.cpp:
3291         (WebCore::checkSelectorForClassChange):
3292         
3293             Remove unnecessary templating.
3294
3295         (WebCore::Element::classAttributeChanged):
3296         
3297             Fix logic error with 'continue'.
3298
3299 2014-01-27  Brendan Long  <b.long@cablelabs.com>
3300
3301         [GStreamer] Lockup when playing Icecast radio
3302         https://bugs.webkit.org/show_bug.cgi?id=127452
3303
3304         Reviewed by Philippe Normand.
3305
3306         No new tests. This bug can only be demonstrated with an Icecast stream, and it's
3307         not clear how to do that in our testing framework.
3308
3309         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
3310         (StreamingClient::handleResponseReceived): Wait until we unlock to send notifications.
3311
3312 2014-01-27  Jessie Berlin  <jberlin@apple.com>
3313
3314         Build fix after r162838.
3315
3316         * page/FrameView.cpp:
3317         Remove an unused constant.
3318
3319 2014-01-27  Antti Koivisto  <antti@apple.com>
3320
3321         Remove repaint throttling
3322         https://bugs.webkit.org/show_bug.cgi?id=127681
3323
3324         Reviewed by Sam Weinig.
3325
3326         Nowadays we throttle layer flushes. This code is unnecessary.
3327
3328         * WebCore.exp.in:
3329         * dom/Document.cpp:
3330         (WebCore::Document::recalcStyle):
3331         * dom/Element.cpp:
3332         (WebCore::Element::classAttributeChanged):
3333         * editing/AlternativeTextController.cpp:
3334         (WebCore::AlternativeTextController::insertDictatedText):
3335         * loader/FrameLoader.cpp:
3336         (WebCore::FrameLoader::checkCompleted):
3337         * page/EventHandler.cpp:
3338         (WebCore::EventHandler::dispatchDragEvent):
3339         (WebCore::EventHandler::dispatchMouseEvent):
3340         (WebCore::EventHandler::keyEvent):
3341         (WebCore::EventHandler::handleTextInputEvent):
3342         * page/FrameView.cpp:
3343         (WebCore::FrameView::FrameView):
3344         (WebCore::FrameView::reset):
3345         (WebCore::FrameView::flushCompositingStateForThisFrame):
3346         (WebCore::FrameView::layout):
3347         (WebCore::FrameView::repaintContentRectangle):
3348         (WebCore::FrameView::disableLayerFlushThrottlingTemporarilyForInteraction):
3349         (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive):
3350         * page/FrameView.h:
3351         * rendering/RenderView.cpp:
3352         (WebCore::RenderView::setSelection):
3353
3354 2014-01-24  Eric Carlson  <eric.carlson@apple.com>
3355
3356         Merge Chromium TextTrack cleanups
3357         https://bugs.webkit.org/show_bug.cgi?id=127483
3358
3359         Reviewed by Darin Adler.
3360
3361         Merge some TextTrack cleanups:
3362         https://chromium.googlesource.com/chromium/blink/+/b571b9fbc6e62e05aa77a402cf8f447e681b8ee3
3363         https://chromium.googlesource.com/chromium/blink/+/6b1940151258150ea01bcf21ebfd958e2af247f4
3364         https://chromium.googlesource.com/chromium/blink/+/397c2a2d9416f5c0d79bca22d6979f174eefcce2
3365         https://chromium.googlesource.com/chromium/blink/+/f42ad93e25c6310b2b0327ab7ce5d82d3c4a6c1b
3366         https://chromium.googlesource.com/chromium/blink/+/d55b52b53b7da05bba5fe378a4278250b9347430
3367         https://chromium.googlesource.com/chromium/blink/+/cac766ecaaac477a08879f0b3157d0327cc75d96
3368         https://chromium.googlesource.com/chromium/blink/+/6197ce278696cdd52fc2ad81893f369492468ca0
3369
3370         * html/HTMLTrackElement.cpp:
3371         (WebCore::HTMLTrackElement::loadTimerFired): Remove the LoadableTextTrack* parameter, it isn't used.
3372         (WebCore::HTMLTrackElement::didCompleteLoad): Ditto.
3373         * html/HTMLTrackElement.h: didCompleteLoad doesn't need to be virtual.
3374
3375         * html/track/LoadableTextTrack.cpp:
3376         (WebCore::LoadableTextTrack::loadTimerFired): Pass a reference, not a pointer.
3377         (WebCore::LoadableTextTrack::cueLoadingStarted): Removed, it wasn't used.
3378         (WebCore::LoadableTextTrack::cueLoadingCompleted): Pass a reference, not a pointer.
3379         * html/track/LoadableTextTrack.h: Delete LoadableTextTrackClient, it is no longer used.
3380
3381         * loader/TextTrackLoader.cpp:
3382         (WebCore::TextTrackLoader::TextTrackLoader): Take a TextTrackLoaderClient reference.
3383         (WebCore::TextTrackLoader::~TextTrackLoader): Rename m_cachedCueData m_resource.
3384         (WebCore::TextTrackLoader::cueLoadTimerFired): m_client is a reference.
3385         (WebCore::TextTrackLoader::cancelLoad): m_cachedCueData -> m_resource.
3386         (WebCore::TextTrackLoader::processNewCueData): Ditto.
3387         (WebCore::TextTrackLoader::deprecatedDidReceiveCachedResource): Ditto.
3388         (WebCore::TextTrackLoader::notifyFinished): Ditto.
3389         (WebCore::TextTrackLoader::load): shouldLoadCues was removed from the client interface because
3390             the only implementation always returned true.
3391         (WebCore::TextTrackLoader::newRegionsParsed): m_client is a reference
3392         * loader/TextTrackLoader.h:
3393
3394         * loader/cache/CachedResourceLoader.cpp:
3395         (WebCore::CachedResourceLoader::canRequest): Remove an outdated comment.
3396
3397 2014-01-27  Chris Fleizach  <cfleizach@apple.com>
3398
3399         AX: Disable accessibility after every test run
3400         https://bugs.webkit.org/show_bug.cgi?id=127439
3401
3402         Reviewed by Csaba Osztrogonác.
3403
3404         Speculative fix for EFL build. Don't process these notifications unless accessibility is enabled.
3405
3406         * loader/FrameLoader.cpp:
3407         (WebCore::FrameLoader::prepareForLoadStart):
3408
3409 2014-01-27  Csaba Osztrogonác  <ossy@webkit.org>
3410
3411         Buildfix for !ENABLE(COMPARE_AND_SWAP) platforms after r162774
3412         https://bugs.webkit.org/show_bug.cgi?id=127678
3413
3414         Reviewed by Zoltan Herczeg.
3415
3416         * platform/text/TextBreakIterator.cpp:
3417         (WebCore::compareAndSwapNonSharedCharacterBreakIterator):
3418         Use std::mutex instead of Mutex and std::lock_guard instead of MutexLocker.
3419
3420 2014-01-26  Tim Horton  <timothy_horton@apple.com>
3421
3422         Fix the iOS build (failed to correctly revert some broken changes in the last patch).
3423
3424         * platform/graphics/cg/BitmapImageCG.cpp:
3425
3426 2014-01-26  Tim Horton  <timothy_horton@apple.com>
3427
3428         Start cleaning up iOS upstreaming #ifs in platform/graphics
3429         https://bugs.webkit.org/show_bug.cgi?id=127641
3430
3431         Reviewed by Sam Weinig.
3432
3433         * platform/graphics/BitmapImage.h:
3434         * platform/graphics/mac/ColorMac.h:
3435         Use USE(APPKIT) instead of PLATFORM(MAC) && !PLATFORM(IOS) for NSImage/getNSImage().
3436
3437         * platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm:
3438         (WebCore::AVTrackPrivateAVFObjCImpl::label):
3439         * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
3440         (WebCore::InbandTextTrackPrivateLegacyAVFObjC::label):
3441         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
3442         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
3443         Remove some code that was only used on OS X on Lion or below.
3444
3445         * platform/graphics/cg/GraphicsContextCG.cpp:
3446         (WebCore::GraphicsContext::platformInit):
3447         ToT WebKit doesn't build on Lion or earlier anymore, so this code can always run.
3448
3449         * platform/graphics/cg/FloatPointCG.cpp:
3450         * platform/graphics/cg/FloatRectCG.cpp:
3451         * platform/graphics/cg/FloatSizeCG.cpp:
3452         * platform/graphics/cg/GradientCG.cpp:
3453         * platform/graphics/cg/ImageBufferCG.cpp:
3454         * platform/graphics/cg/ImageCG.cpp:
3455         * platform/graphics/cg/IntPointCG.cpp:
3456         * platform/graphics/cg/IntRectCG.cpp:
3457         * platform/graphics/cg/PathCG.cpp:
3458         * platform/graphics/cg/PatternCG.cpp:
3459         * platform/graphics/mac/FontCustomPlatformData.cpp:
3460         Use CoreGraphics/CoreGraphics.h instead of ApplicationServices/ApplicationServices.h
3461         even on Mac, so we can share the include.
3462
3463         * platform/graphics/cg/IntSizeCG.cpp:
3464         Remove a random comment of a style we don't tend to use in WebKit,
3465         and from a file not large enough to need it.
3466
3467         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
3468         (WebCore::FontPlatformData::FontPlatformData):
3469         (WebCore::FontPlatformData::setFont):
3470         Remove some more always-true #ifs.
3471
3472         * platform/graphics/mac/WebLayer.mm: