6fb1883581d876e4bbf1c45aac15cf4cd48a8567
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-10-21  Mihai Maerean  <mmaerean@adobe.com>
2
3         [CSS Regions] The layers from the flow thread should be collected under the regions' layers.
4         https://bugs.webkit.org/show_bug.cgi?id=120457
5
6         Reviewed by David Hyatt.
7
8         This patch is based on the work of Alexandru Chiculita at https://bugs.webkit.org/attachment.cgi?id=203872&action=review
9
10         The composited layers inside the named flow threads are collected as part of the regions (as children of the
11         GraphicsLayer of the layer that corresponds to the region (which is attached to the parent renderer of
12         RenderNameFlowFragment)).
13         When a region displays a layer that needs accelerated compositing we activate the accelerated compositing for
14         that region too (inside RenderLayerCompositor::computeRegionCompositingRequirements).
15
16         This patch has landed before (as http://trac.webkit.org/changeset/156451), but was reverted because
17         fast/multicol/mixed-positioning-stacking-order.html failed. The fix is inside RenderLayerCompositor::canBeComposited
18         that only enables compositing for layers inside flow threads that collect the graphics layers under the regions.
19
20         Another change from changeset #156451 is that now the region renderers are created as anonymous renderers under
21         the element that has the flow-from property. When a composited layer is needed for the region, it sits in it's
22         parent renderer, not in the region renderer (RenderNamedFlowFragment).
23
24         Tests: compositing/regions/crash-transform-inside-region.html
25                compositing/regions/floated-region-with-transformed-child.html
26                compositing/regions/move-layer-from-one-region-to-another.html
27                compositing/regions/propagate-region-box-shadow-border-padding-for-video.html
28                compositing/regions/propagate-region-box-shadow-border-padding.html
29                compositing/regions/region-as-layer-in-another-flowthread.html
30                compositing/regions/transform-transparent-positioned-video-inside-region.html
31                compositing/regions/transformed-layer-inside-transformed-layer.html
32                compositing/regions/z-index-update.html
33                compositing/regions/z-index.html
34
35         * rendering/FlowThreadController.cpp:
36         (WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded):
37         * rendering/RenderElement.cpp:
38         (WebCore::RenderElement::propagateStyleToAnonymousChildren): Not for RenderFlowThreads, as they are updated
39         through the RenderView::styleDidChange function.
40         * rendering/RenderFlowThread.cpp:
41         (WebCore::RenderFlowThread::layout): When the layout of the flow thread is over (including the 2 phase layout),
42         we update all the mappings between the layers inside the flow thread and the regions where those layers will be
43         painted.
44         (WebCore::RenderFlowThread::hasCompositingRegionDescendant): Whether any of the regions has a compositing descendant.
45         (WebCore::RenderFlowThread::getLayerListForRegion):
46         (WebCore::RenderFlowThread::regionForCompositedLayer):
47         (WebCore::RenderFlowThread::cachedRegionForCompositedLayer):
48         (WebCore::RenderFlowThread::collectsGraphicsLayersUnderRegions):
49         (WebCore::RenderFlowThread::updateLayerToRegionMappings): Triggers an update of the layers if a layer has moved
50         from a region to another since the last update.
51         (WebCore::RenderFlowThread::updateAllLayerToRegionMappings):
52         * rendering/RenderFlowThread.h:
53         * rendering/RenderGeometryMap.cpp:
54         (WebCore::RenderGeometryMap::pushRenderFlowThread):
55         * rendering/RenderGeometryMap.h:
56         * rendering/RenderLayer.cpp:
57         (WebCore::RenderLayer::paintList):
58         (WebCore::RenderLayer::enclosingFlowThreadAncestor):
59         (WebCore::RenderLayer::isFlowThreadCollectingGraphicsLayersUnderRegions):
60         (WebCore::RenderLayer::hitTestList):
61         (WebCore::RenderLayer::calculateLayerBounds): When we calculate the bounds of the RenderView, we ignore those
62         flow threads that collect the graphics layers under the regions.
63         (WebCore::RenderLayer::dirtyZOrderLists):
64         (WebCore::RenderLayer::dirtyNormalFlowList):
65         * rendering/RenderLayer.h:
66         * rendering/RenderLayerBacking.cpp:
67         (WebCore::RenderLayerBacking::shouldClipCompositedBounds): Not if it's a flow thread that collects the graphics
68         layers under the regions
69         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Now adjusts the ancestorCompositingBounds for the FlowThread.
70         (WebCore::RenderLayerBacking::adjustAncestorCompositingBoundsForFlowThread): Make sure that the region propagates
71         its borders, paddings, outlines or box-shadows to layers inside it.
72         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer):
73         * rendering/RenderLayerBacking.h:
74         * rendering/RenderLayerCompositor.cpp:
75         (WebCore::RenderLayerCompositor::computeCompositingRequirements): Now calls computeRegionCompositingRequirements.
76         (WebCore::RenderLayerCompositor::computeRegionCompositingRequirements):
77         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree): Do not iterate the RenderFlowThread directly if
78         we are going to collect the composited layers as part of regions.
79         (WebCore::RenderLayerCompositor::rebuildRegionCompositingLayerTree):
80         (WebCore::RenderLayerCompositor::canBeComposited): CSS Regions flow threads do not need to be composited as we
81         use composited RenderRegions to render the background of the RenderFlowThread.
82         (WebCore::RenderLayerCompositor::requiresCompositingForIndirectReason): If it's a container of a css region.
83         * rendering/RenderLayerCompositor.h:
84         * rendering/RenderMultiColumnSet.cpp:
85         (WebCore::RenderMultiColumnSet::adjustRegionBoundsFromFlowThreadPortionRect):
86         * rendering/RenderMultiColumnSet.h:
87         * rendering/RenderNamedFlowFragment.h:
88         (WebCore::RenderNamedFlowFragment::layerOwner): When the content inside the region requires the region to have a
89         layer, the layer will be created on the region's parent renderer instead. This method returns that renderer
90         holding the layer. The return value may be null.
91         * rendering/RenderNamedFlowThread.cpp:
92         (WebCore::RenderNamedFlowThread::RenderNamedFlowThread):
93         (WebCore::RenderNamedFlowThread::nextRendererForNode):
94         (WebCore::RenderNamedFlowThread::previousRendererForNode):
95         (WebCore::RenderNamedFlowThread::addFlowChild):
96         (WebCore::RenderNamedFlowThread::removeFlowChild):
97         (WebCore::RenderNamedFlowThread::collectsGraphicsLayersUnderRegions):
98         * rendering/RenderNamedFlowThread.h: m_flowThreadChildList is now allocated through an OwnPtr to keep the render
99         arena under the size limit.
100         * rendering/RenderRegion.cpp:
101         (WebCore::RenderRegion::adjustRegionBoundsFromFlowThreadPortionRect):
102         * rendering/RenderRegion.h:
103         (WebCore::toRenderRegion):
104         * rendering/RenderTreeAsText.cpp:
105         (WebCore::writeLayers):
106         * WebCore.exp.in: WebCore::RenderLayer::isFlowThreadCollectingGraphicsLayersUnderRegions
107
108 2013-10-21  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
109
110         Fixing mediastream debug build
111         https://bugs.webkit.org/show_bug.cgi?id=123104
112
113         Reviewed by Andreas Kling.
114
115         No new tests needed.
116
117         * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
118         (WebCore::RTCDTMFToneChangeEvent::create):
119
120 2013-10-21  Andreas Kling  <akling@apple.com>
121
122         Merge RenderListMarker::styleWillChange() into styleDidChange().
123         <https://webkit.org/b/123098>
124
125         If the marker's list-style-type or list-style-position changed, we
126         need to dirty the layout. Move this logic to styleDidChange() so we
127         can get rid of one styleWillChange() overload.
128
129         Reviewed by Antti Koivisto.
130
131 2013-10-21  Mihai Maerean  <mmaerean@adobe.com>
132
133         [CSS Regions] Fix WHITESPACE issues in the CSS grammar.
134         https://bugs.webkit.org/show_bug.cgi?id=123082
135
136         Reviewed by Andreas Kling.
137
138         This is a port of Rune Lillesveen's patch from https://codereview.chromium.org/25607005
139
140         Fix WHITESPACE issues in the CSS grammar.
141
142         A single WHITESPACE token consumes consecutive spaces, but does not consume
143         spaces separated by comments. That means S* and S+ in CSS grammars need to
144         accept multiple WHITESPACE tokens. Additionally, white spaces are not
145         mandatory to separate an @-symbol and the rest of the prelude.
146
147         Use space non-terminal instead of WHITESPACE for S+ in calc expressions.
148
149         Use maybe_space non-terminal instead of WHITESPACE for S* after @-webkit-filter
150         and @-webkit-region.
151
152         Tests: fast/css/calc-comments-allowed.html
153                fast/regions/webkit-region-syntax-space.html
154
155         * css/CSSGrammar.y.in:
156
157 2013-10-21  Anton Obzhirov  <a.obzhirov@samsung.com>
158
159         [ATK] Use atk_object_notify_state_change instead of manually emitting signals
160         https://bugs.webkit.org/show_bug.cgi?id=122968
161
162         Reviewed by Mario Sanchez Prada.
163
164         Refactor emitting "state-change" event to use atk_object_notify_state_change
165         instead of using g_signal_emit_by_name.
166
167         * accessibility/atk/AXObjectCacheAtk.cpp:
168         (WebCore::notifyChildrenSelectionChange):
169         (WebCore::AXObjectCache::postPlatformNotification):
170         (WebCore::AXObjectCache::frameLoadingEventPlatformNotification):
171         (WebCore::AXObjectCache::handleFocusedUIElementChanged):
172         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
173         (webkitAccessibleDetach):
174         * editing/atk/FrameSelectionAtk.cpp:
175         (WebCore::maybeEmitTextFocusChange):
176
177 2013-10-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
178
179         Make TYPE_CASTS_BASE more flexible
180         https://bugs.webkit.org/show_bug.cgi?id=122951
181
182         Reviewed by Andreas Kling.
183
184         TYPE_CASTS_BASE is being used by node|element type casts. However, it is difficult
185         to be used by other type casts. For instance, CSSValue, Accessibility and so on.
186         This patch modifies TYPE_CASTS_BASE which can support other type casts.
187
188         Besides TYPE_CASTS_BASE body is moved from node.h to Assertions.h.
189
190         No new tests, no behavior changes.
191
192         * dom/Document.h:
193         * dom/Node.h:
194
195 2013-10-21  Santosh Mahto  <santosh.ma@samsung.com>
196
197         ASSERTION FAILED: !style->propertyIsImportant(propertyID) in WebCore::setTextDecorationProperty
198         https://bugs.webkit.org/show_bug.cgi?id=122097
199
200         Reviewed by Ryosuke Niwa.
201
202         When remove format command is called we pushdown the ancestor style
203         down to its children. Currently applying inline style to iframe
204         while pushing down style which causes iframe to be reinserted in tree and
205         triggres again subframe loading which repeats everytime and finally
206         crash happens. So we should avoid applying inline style to iframe
207         element as it doesnot reflect in its content while pushing down style
208         on it.
209
210         And ASSERT call has been removed from setTextDecoration property as
211         the scenario is perfectly valid case.
212
213         Test: editing/execCommand/remove-format-textdecoration-in-iframe.html
214
215         * editing/ApplyStyleCommand.cpp:
216         (WebCore::ApplyStyleCommand::applyInlineStyleToPushDown): Return if
217         element is iframe.
218         * editing/EditingStyle.cpp:
219         (WebCore::StyleChange::setTextDecorationProperty): Remove ASSERT.
220
221 2013-10-20  Sam Weinig  <sam@webkit.org>
222
223         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 5)
224         https://bugs.webkit.org/show_bug.cgi?id=122969
225
226         Reviewed by Antti Koivisto.
227
228         - Move m_lineBoxes to RenderBlockFlow.
229
230         * accessibility/AccessibilityRenderObject.cpp:
231         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
232         * rendering/HitTestResult.cpp:
233         (WebCore::HitTestResult::innerTextIfTruncated):
234         * rendering/RenderBlock.cpp:
235         (WebCore::RenderBlock::RenderBlock):
236         (WebCore::RenderBlock::willBeDestroyed):
237         (WebCore::RenderBlock::deleteLineBoxTree):
238         (WebCore::RenderBlock::isSelfCollapsingBlock):
239         (WebCore::RenderBlock::removeFromDelayedUpdateScrollInfoSet):
240         (WebCore::RenderBlock::paintContents):
241         (WebCore::blockDirectionOffset):
242         (WebCore::inlineDirectionOffset):
243         (WebCore::RenderBlock::inlineSelectionGaps):
244         (WebCore::RenderBlock::hitTestContents):
245         (WebCore::positionForPointRespectingEditingBoundaries):
246         (WebCore::RenderBlock::positionForPointWithInlineChildren):
247         (WebCore::RenderBlock::firstLineBoxBaseline):
248         (WebCore::RenderBlock::inlineBlockBaseline):
249         (WebCore::RenderBlock::addFocusRingRectsForInlineChildren):
250         (WebCore::RenderBlock::addFocusRingRects):
251         (WebCore::RenderBlock::showLineTreeAndMark):
252         * rendering/RenderBlock.h:
253         (WebCore::RenderBlock::addOverflowFromInlineChildren):
254         (WebCore::RenderBlock::hasInlineBoxChildren):
255         (WebCore::RenderBlock::paintInlineChildren):
256         (WebCore::RenderBlock::hitTestInlineChildren):
257         * rendering/RenderBlockFlow.cpp:
258         (WebCore::RenderBlockFlow::RenderBlockFlow):
259         (WebCore::RenderBlockFlow::willBeDestroyed):
260         (WebCore::RenderBlockFlow::deleteLineBoxTree):
261         (WebCore::RenderBlockFlow::hitTestInlineChildren):
262         (WebCore::RenderBlockFlow::adjustForBorderFit):
263         (WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded):
264         (WebCore::RenderBlockFlow::markLinesDirtyInBlockRange):
265         (WebCore::RenderBlockFlow::firstLineBoxBaseline):
266         (WebCore::RenderBlockFlow::inlineBlockBaseline):
267         (WebCore::RenderBlockFlow::inlineSelectionGaps):
268         (WebCore::RenderBlockFlow::positionForBox):
269         (WebCore::RenderBlockFlow::positionForPointWithInlineChildren):
270         (WebCore::RenderBlockFlow::addFocusRingRectsForInlineChildren):
271         (WebCore::RenderBlockFlow::paintInlineChildren):
272         (WebCore::RenderBlockFlow::relayoutForPagination):
273         (WebCore::RenderBlockFlow::showLineTreeAndMark):
274         * rendering/RenderBlockFlow.h:
275         (WebCore::RenderBlockFlow::lineBoxes):
276         (WebCore::RenderBlockFlow::firstLineBox):
277         (WebCore::RenderBlockFlow::lastLineBox):
278         (WebCore::RenderBlockFlow::firstRootBox):
279         (WebCore::RenderBlockFlow::lastRootBox):
280         * rendering/RenderBlockLineLayout.cpp:
281         (WebCore::RenderBlockFlow::addOverflowFromInlineChildren):
282         * rendering/RootInlineBox.cpp:
283         (WebCore::RootInlineBox::selectionTopAdjustedForPrecedingBlock):
284
285 2013-10-20  Andreas Kling  <akling@apple.com>
286
287         Avoid unnecessary vector copy in AnimationController event dispatch.
288         <https://webkit.org/b/122994>
289
290         Use Vector's move constructor instead of making a copy of the pending
291         events queue and then clearing it.
292
293         Reviewed by Simon Fraser.
294
295 2013-10-19  Brady Eidson  <beidson@apple.com>
296
297         Add abstract IDBBackingStoreInterface, use it to get IDBDatabaseBackendLevelDB closer to going cross-platform
298         https://bugs.webkit.org/show_bug.cgi?id=123074
299
300         Reviewed by Andreas Kling.
301
302         * Modules/indexeddb/IDBBackingStoreInterface.h: Added.
303         (WebCore::IDBBackingStoreInterface::~IDBBackingStoreInterface):
304         (WebCore::IDBBackingStoreInterface::Transaction::~Transaction):
305
306         * Modules/indexeddb/IDBTransactionBackendInterface.h:
307
308         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
309         (WebCore::IDBBackingStoreLevelDB::updateIDBDatabaseIntVersion):
310         (WebCore::IDBBackingStoreLevelDB::createObjectStore):
311         (WebCore::IDBBackingStoreLevelDB::deleteObjectStore):
312         (WebCore::IDBBackingStoreLevelDB::getRecord):
313         (WebCore::IDBBackingStoreLevelDB::putRecord):
314         (WebCore::IDBBackingStoreLevelDB::clearObjectStore):
315         (WebCore::IDBBackingStoreLevelDB::deleteRecord):
316         (WebCore::IDBBackingStoreLevelDB::getKeyGeneratorCurrentNumber):
317         (WebCore::IDBBackingStoreLevelDB::maybeUpdateKeyGeneratorCurrentNumber):
318         (WebCore::IDBBackingStoreLevelDB::keyExistsInObjectStore):
319         (WebCore::IDBBackingStoreLevelDB::createIndex):
320         (WebCore::IDBBackingStoreLevelDB::deleteIndex):
321         (WebCore::IDBBackingStoreLevelDB::putIndexDataForRecord):
322         (WebCore::IDBBackingStoreLevelDB::findKeyInIndex):
323         (WebCore::IDBBackingStoreLevelDB::getPrimaryKeyViaIndex):
324         (WebCore::IDBBackingStoreLevelDB::keyExistsInIndex):
325         (WebCore::IDBBackingStoreLevelDB::openObjectStoreCursor):
326         (WebCore::IDBBackingStoreLevelDB::openObjectStoreKeyCursor):
327         (WebCore::IDBBackingStoreLevelDB::openIndexKeyCursor):
328         (WebCore::IDBBackingStoreLevelDB::openIndexCursor):
329         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
330         (WebCore::IDBBackingStoreLevelDB::Transaction::reset):
331         (WebCore::IDBBackingStoreLevelDB::Transaction::levelDBTransactionFrom):
332
333         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
334         (WebCore::IDBCursorBackendLevelDB::deleteFunction):
335         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
336
337         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
338         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::verifyIndexKeys):
339         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::writeIndexKeys):
340         (WebCore::IDBObjectStoreBackendLevelDB::IndexWriter::addingKeyAllowed):
341         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
342
343         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
344         (WebCore::IDBTransactionBackendLevelDB::backingStoreTransaction):
345
346         * WebCore.xcodeproj/project.pbxproj:
347         * GNUmakefile.list.am:
348
349 2013-10-20  Andreas Kling  <akling@apple.com>
350
351         Use PassRef for StyleSheetContents.
352         <https://webkit.org/b/123083>
353
354         Let functions that return newly-constructed StyleSheetContents
355         objects vend PassRef<StyleSheetContents> instead of PassRefPtr.
356
357         Updated functions that take StyleSheetContents in arguments
358         accordingly. And CSSStyleSheet now has a Ref internally. Woo!
359
360         Reviewed by Antti Koivisto.
361
362 2013-10-20  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
363
364         Removing "unused parameter" compiling warnings from WebKit2 and WebCore
365         https://bugs.webkit.org/show_bug.cgi?id=123075
366
367         Reviewed by Andreas Kling.
368
369         No new tests needed.
370
371         * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
372         (WebCore::RTCDTMFToneChangeEvent::create):
373         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
374         (lineAtPositionForAtkBoundary):
375         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
376         (WebCore::MediaPlayerPrivateGStreamer::processTableOfContentsEntry):
377
378 2013-10-19  Andreas Kling  <akling@apple.com>
379
380         Use PassRef for constructing StyleRules.
381         <https://webkit.org/b/123072>
382
383         Let functions that return newly-constructed StyleRuleFoo objects
384         vend PassRef<StyleRuleFoo> instead of PassRefPtr.
385
386         Since StyleRuleBase::copy() has to return something, we can't rely
387         on ASSERT_NOT_REACHED() + return nullptr anymore, so I've replaced
388         those with CRASH(). No call sites actually handled null anyway.
389
390         Reviewed by Sam Weinig.
391
392 2013-10-19  Jer Noble  <jer.noble@apple.com>
393
394         Unreviewed roll out of r157695; broke Mac builds.
395
396         * Configurations/FeatureDefines.xcconfig:
397
398 2013-10-07  Jer Noble  <jer.noble@apple.com>
399
400         [MSE] [Mac] Enable MediaSource on the Mac
401         https://bugs.webkit.org/show_bug.cgi?id=122484
402
403         Reviewed by Darin Adler.
404
405         Enable ENABLE_MEDIA_SOURCE.
406
407         * Configurations/FeatureDefines.xcconfig:
408
409 2013-10-19  Sam Weinig  <sam@webkit.org>
410
411         CTTE: Tighten up type usage around InputType::innerTextElement()
412         https://bugs.webkit.org/show_bug.cgi?id=123078
413
414         Reviewed by Anders Carlsson.
415
416         * editing/TextIterator.cpp:
417         (WebCore::TextIterator::handleReplacedElement):
418         * html/HTMLElement.h:
419         (WebCore::HTMLElement::isTextControlInnerTextElement):
420         * html/HTMLInputElement.cpp:
421         (WebCore::HTMLInputElement::innerTextElement):
422         * html/HTMLInputElement.h:
423         * html/HTMLTextAreaElement.cpp:
424         (WebCore::HTMLTextAreaElement::innerTextElement):
425         * html/HTMLTextAreaElement.h:
426         * html/HTMLTextFormControlElement.cpp:
427         (WebCore::hasVisibleTextArea):
428         (WebCore::HTMLTextFormControlElement::selection):
429         (WebCore::HTMLTextFormControlElement::innerTextValue):
430         (WebCore::HTMLTextFormControlElement::valueWithHardLineBreaks):
431         * html/HTMLTextFormControlElement.h:
432         * html/InputType.h:
433         (WebCore::InputType::innerTextElement):
434         * html/TextFieldInputType.cpp:
435         (WebCore::TextFieldInputType::forwardEvent):
436         (WebCore::TextFieldInputType::innerTextElement):
437         * html/TextFieldInputType.h:
438         * html/shadow/TextControlInnerElements.cpp:
439         (WebCore::TextControlInnerTextElement::renderer):
440         * html/shadow/TextControlInnerElements.h:
441         (WebCore::isTextControlInnerTextElement):
442         * rendering/RenderObject.h:
443         (WebCore::RenderObject::isTextControlInnerBlock):
444         * rendering/RenderTextControl.cpp:
445         (WebCore::RenderTextControl::innerTextElement):
446         (WebCore::RenderTextControl::styleDidChange):
447         (WebCore::RenderTextControl::textBlockLogicalWidth):
448         (WebCore::RenderTextControl::updateFromElement):
449         (WebCore::RenderTextControl::computeLogicalHeight):
450         (WebCore::RenderTextControl::hitInnerTextElement):
451         * rendering/RenderTextControl.h:
452         * rendering/RenderTextControlSingleLine.cpp:
453         (WebCore::RenderTextControlSingleLine::layout):
454         (WebCore::RenderTextControlSingleLine::styleDidChange):
455         (WebCore::RenderTextControlSingleLine::autoscroll):
456         (WebCore::RenderTextControlSingleLine::scroll):
457         (WebCore::RenderTextControlSingleLine::logicalScroll):
458         * rendering/RenderTextControlSingleLine.h:
459         (WebCore::toRenderTextControlInnerBlock):
460
461 2013-10-19  Sam Weinig  <sam@webkit.org>
462
463         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 4)
464         https://bugs.webkit.org/show_bug.cgi?id=122969
465
466         Reviewed by Andreas Kling.
467
468         - Fix classes derived from RenderBlockFlow that were still calling
469           up to RenderBlock rather than RenderBlockFlow.
470
471         * rendering/RenderDetailsMarker.cpp:
472         (WebCore::RenderDetailsMarker::paint):
473         * rendering/RenderFieldset.cpp:
474         (WebCore::RenderFieldset::computePreferredLogicalWidths):
475         (WebCore::RenderFieldset::paintBoxDecorations):
476         (WebCore::RenderFieldset::paintMask):
477         * rendering/RenderFileUploadControl.cpp:
478         (WebCore::RenderFileUploadControl::paintObject):
479         * rendering/RenderFlowThread.cpp:
480         (WebCore::RenderFlowThread::styleDidChange):
481         (WebCore::RenderFlowThread::layout):
482         (WebCore::RenderFlowThread::nodeAtPoint):
483         * rendering/RenderFullScreen.cpp:
484         (RenderFullScreenPlaceholder::willBeDestroyed):
485         * rendering/RenderListItem.cpp:
486         (WebCore::RenderListItem::styleDidChange):
487         * rendering/RenderMultiColumnBlock.cpp:
488         (WebCore::RenderMultiColumnBlock::styleDidChange):
489         (WebCore::RenderMultiColumnBlock::updateLogicalWidthAndColumnWidth):
490         (WebCore::RenderMultiColumnBlock::addChild):
491         * rendering/RenderProgress.cpp:
492         (WebCore::RenderProgress::updateFromElement):
493         * rendering/RenderRuby.cpp:
494         (WebCore::RenderRubyAsBlock::styleDidChange):
495         (WebCore::RenderRubyAsBlock::addChild):
496         (WebCore::RenderRubyAsBlock::removeChild):
497         * rendering/RenderRubyRun.cpp:
498         (WebCore::RenderRubyRun::rubyBaseSafe):
499         (WebCore::RenderRubyRun::addChild):
500         (WebCore::RenderRubyRun::removeChild):
501         (WebCore::RenderRubyRun::layout):
502         * rendering/RenderRubyText.cpp:
503         (WebCore::RenderRubyText::textAlignmentForLine):
504         (WebCore::RenderRubyText::adjustInlineDirectionLineBounds):
505         * rendering/RenderTableCaption.cpp:
506         (WebCore::RenderTableCaption::willBeRemovedFromTree):
507         * rendering/RenderTableCell.cpp:
508         (WebCore::RenderTableCell::willBeRemovedFromTree):
509         (WebCore::RenderTableCell::computePreferredLogicalWidths):
510         (WebCore::RenderTableCell::offsetFromContainer):
511         (WebCore::RenderTableCell::clippedOverflowRectForRepaint):
512         (WebCore::RenderTableCell::computeRectForRepaint):
513         (WebCore::RenderTableCell::styleDidChange):
514         (WebCore::RenderTableCell::borderLeft):
515         (WebCore::RenderTableCell::borderRight):
516         (WebCore::RenderTableCell::borderTop):
517         (WebCore::RenderTableCell::borderBottom):
518         (WebCore::RenderTableCell::borderStart):
519         (WebCore::RenderTableCell::borderEnd):
520         (WebCore::RenderTableCell::borderBefore):
521         (WebCore::RenderTableCell::borderAfter):
522         (WebCore::RenderTableCell::paint):
523         * rendering/RenderTextControl.cpp:
524         (WebCore::RenderTextControl::styleDidChange):
525         * rendering/RenderTextControlSingleLine.cpp:
526         (WebCore::RenderTextControlSingleLine::scrollWidth):
527         (WebCore::RenderTextControlSingleLine::scrollHeight):
528         (WebCore::RenderTextControlSingleLine::scrollLeft):
529         (WebCore::RenderTextControlSingleLine::scrollTop):
530         (WebCore::RenderTextControlSingleLine::scroll):
531         (WebCore::RenderTextControlSingleLine::logicalScroll):
532         * rendering/RenderTextTrackCue.cpp:
533         (WebCore::RenderTextTrackCue::layout):
534         * rendering/RenderView.cpp:
535         (WebCore::RenderView::layoutContent):
536         (WebCore::RenderView::addChild):
537         (WebCore::RenderView::visualOverflowRect):
538         (WebCore::RenderView::styleDidChange):
539         * rendering/svg/RenderSVGBlock.cpp:
540         (WebCore::RenderSVGBlock::setStyle):
541         (WebCore::RenderSVGBlock::updateFromStyle):
542         (WebCore::RenderSVGBlock::willBeDestroyed):
543         (WebCore::RenderSVGBlock::styleWillChange):
544         (WebCore::RenderSVGBlock::styleDidChange):
545         * rendering/svg/SVGTextQuery.cpp:
546         (WebCore::flowBoxForRenderer):
547
548 2013-10-19  Sam Weinig  <sam@webkit.org>
549
550         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 3)
551         https://bugs.webkit.org/show_bug.cgi?id=122969
552
553         Reviewed by Andreas Kling.
554
555         - Move containsNonZeroBidiLevel to RenderBlockFlow.
556
557         * editing/Editor.cpp:
558         (WebCore::Editor::hasBidiSelection):
559         * rendering/RenderBlock.cpp:
560         * rendering/RenderBlock.h:
561         * rendering/RenderBlockFlow.cpp:
562         (WebCore::RenderBlockFlow::containsNonZeroBidiLevel):
563         * rendering/RenderBlockFlow.h:
564
565 2013-10-18  Sam Weinig  <sam@webkit.org>
566
567         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 2)
568         https://bugs.webkit.org/show_bug.cgi?id=122969
569
570         Reviewed by Antti Koivisto.
571
572         - Move truncation (e.g. line clamp and ellipse) support to RenderBlockFlow.
573
574         * rendering/EllipsisBox.cpp:
575         (WebCore::EllipsisBox::EllipsisBox):
576         (WebCore::EllipsisBox::paint):
577         (WebCore::EllipsisBox::markupBox):
578         (WebCore::EllipsisBox::selectionRect):
579         (WebCore::EllipsisBox::paintSelection):
580         (WebCore::EllipsisBox::nodeAtPoint):
581         * rendering/EllipsisBox.h:
582         * rendering/RenderBlock.cpp:
583         * rendering/RenderBlock.h:
584         * rendering/RenderBlockFlow.cpp:
585         (WebCore::shouldCheckLines):
586         (WebCore::RenderBlockFlow::lineAtIndex):
587         (WebCore::RenderBlockFlow::lineCount):
588         (WebCore::getHeightForLineCount):
589         (WebCore::RenderBlockFlow::heightForLineCount):
590         (WebCore::RenderBlockFlow::clearTruncation):
591         * rendering/RenderBlockFlow.h:
592         * rendering/RenderDeprecatedFlexibleBox.cpp:
593         (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
594         (WebCore::RenderDeprecatedFlexibleBox::clearLineClamp):
595         * rendering/RootInlineBox.cpp:
596         (WebCore::RootInlineBox::placeEllipsis):
597
598 2013-10-19  Andreas Kling  <akling@apple.com>
599
600         StyleResolver should deal in PassRef<RenderStyle> where possible.
601         <https://webkit.org/b/123061>
602
603         Make StyleResolver functions that returned or took RenderStyles
604         by PassRefPtr use PassRef instead where possible.
605
606         Reviewed by Anders Carlsson.
607
608 2013-10-19  Brady Eidson  <beidson@apple.com>
609
610         Global rename of the class "IDBBackingStore" to "IDBBackingStoreLevelDB"
611
612         Rubberstamped by Anders Carlsson (And Andreas Kling wanted to, but he wasn’t around)
613
614         * Modules/indexeddb/IDBTransactionBackendInterface.h:
615         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
616         * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
617         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
618         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h:
619         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
620         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
621         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
622         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
623         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
624         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
625         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
626         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
627         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp:
628         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h:
629
630 2013-10-19  peavo@outlook.com  <peavo@outlook.com>
631
632         [WinCairo] Link fails.
633         https://bugs.webkit.org/show_bug.cgi?id=123019
634
635         Reviewed by Darin Adler.
636
637         Added empty CertificateInfo implementation for Curl.
638
639         * WebCore.vcxproj/WebCore.vcxproj:
640         * WebCore.vcxproj/WebCore.vcxproj.filters:
641         * platform/network/curl/CertificateInfoCurl.cpp: Added.
642         (WebCore::CertificateInfo::CertificateInfo):
643         (WebCore::CertificateInfo::~CertificateInfo):
644
645 2013-10-19  Filip Pizlo  <fpizlo@apple.com>
646
647         libWebCoreTestSupport should have explicit exports
648         https://bugs.webkit.org/show_bug.cgi?id=123053
649
650         Reviewed by Oliver Hunt.
651
652         No new tests because there is no change in behavior.
653
654         * Configurations/WebCoreTestSupport.xcconfig:
655         * testing/js/WebCoreTestSupport.h:
656
657 2013-10-18  Andreas Kling  <akling@apple.com>
658
659         Start passing RenderStyle around with PassRef.
660         <https://webkit.org/b/123051>
661
662         Made the RenderStyle::create methods return PassRef<RenderStyle>
663         and RenderElement::setStyle take a PassRef<RenderStyle>.
664
665         Reviewed by Darin Adler.
666
667 2013-10-18  Sam Weinig  <sam@webkit.org>
668
669         Move m_lineBoxes from RenderBlock to RenderBlockFlow (Part 1)
670         https://bugs.webkit.org/show_bug.cgi?id=122969
671
672         Reviewed by Dan Bernstein.
673
674         - Make the RootInlineBox constructor take a RenderBlockFlow.
675         - Move createRootInlineBox, and createAndAppendRootInlineBox to RenderBlockFlow.
676
677         * editing/VisibleUnits.cpp:
678         (WebCore::absoluteLineDirectionPointToLocalPointInBlock):
679         * rendering/InlineBox.cpp:
680         (WebCore::InlineBox::locationIncludingFlipping):
681         (WebCore::InlineBox::flipForWritingMode):
682         * rendering/InlineFlowBox.cpp:
683         (WebCore::InlineFlowBox::placeBoxRangeInInlineDirection):
684         * rendering/RenderBlock.cpp:
685         * rendering/RenderBlock.h:
686         * rendering/RenderBlockFlow.h:
687         * rendering/RenderBlockLineLayout.cpp:
688         (WebCore::RenderBlockFlow::createRootInlineBox):
689         (WebCore::RenderBlockFlow::createAndAppendRootInlineBox):
690         (WebCore::createInlineBoxForRenderer):
691         (WebCore::RenderBlockFlow::createLineBoxes):
692         * rendering/RenderBox.cpp:
693         (WebCore::RenderBox::positionLineBox):
694         * rendering/RenderListMarker.cpp:
695         (WebCore::RenderListMarker::localSelectionRect):
696         * rendering/RenderReplaced.cpp:
697         (WebCore::RenderReplaced::localSelectionRect):
698         * rendering/RootInlineBox.cpp:
699         (WebCore::RootInlineBox::RootInlineBox):
700         (WebCore::RootInlineBox::rendererLineBoxes):
701         (WebCore::RootInlineBox::placeEllipsis):
702         (WebCore::RootInlineBox::containingRegion):
703         (WebCore::RootInlineBox::setContainingRegion):
704         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
705         (WebCore::RootInlineBox::beforeAnnotationsAdjustment):
706         (WebCore::RootInlineBox::lineSnapAdjustment):
707         (WebCore::RootInlineBox::lineSelectionGap):
708         (WebCore::RootInlineBox::computeCaretRect):
709         (WebCore::RootInlineBox::selectionTop):
710         (WebCore::RootInlineBox::selectionTopAdjustedForPrecedingBlock):
711         (WebCore::RootInlineBox::selectionBottom):
712         (WebCore::RootInlineBox::blockDirectionPointInLine):
713         (WebCore::RootInlineBox::blockFlow):
714         (WebCore::RootInlineBox::closestLeafChildForPoint):
715         (WebCore::RootInlineBox::removeLineBoxFromRenderObject):
716         (WebCore::RootInlineBox::extractLineBoxFromRenderObject):
717         (WebCore::RootInlineBox::attachLineBoxToRenderObject):
718         * rendering/RootInlineBox.h:
719         * rendering/TrailingFloatsRootInlineBox.h:
720         * rendering/svg/RenderSVGText.h:
721         (WebCore::toRenderSVGText):
722         * rendering/svg/SVGRootInlineBox.cpp:
723         (WebCore::SVGRootInlineBox::SVGRootInlineBox):
724         (WebCore::SVGRootInlineBox::renderSVGText):
725         (WebCore::SVGRootInlineBox::paint):
726         (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation):
727         (WebCore::SVGRootInlineBox::layoutRootBox):
728         * rendering/svg/SVGRootInlineBox.h:
729
730 2013-10-18  Tim Horton  <timothy_horton@apple.com>
731
732         Remote Layer Tree: Double-buffering and minimization of repaints
733         https://bugs.webkit.org/show_bug.cgi?id=123043
734
735         Reviewed by Simon Fraser.
736
737         No new tests, not yet testable.
738
739         * WebCore.exp.in:
740         Export one version of drawLayerContents and Region::contains.
741
742         * WebCore.xcodeproj/project.pbxproj:
743         Expose WebLayer.h as a private header.
744
745         * platform/graphics/mac/WebLayer.h:
746         Clean up this header, and add a new drawLayerContents that can operate without a CALayer.
747
748         * platform/graphics/mac/WebLayer.mm:
749         (WebCore::drawLayerContents):
750         Split drawLayerContents into one method that acquires properties CALayer,
751         and one that just does the painting.
752
753 2013-10-18  Anders Carlsson  <andersca@apple.com>
754
755         Try to fix the Lion build.
756
757         * bindings/objc/ObjCNodeFilterCondition.h:
758
759 2013-10-18  Daniel Bates  <dabates@apple.com>
760
761         [iOS] Upstream WebSafe{GCActivityCallback, IncrementalSweeper}IOS
762         https://bugs.webkit.org/show_bug.cgi?id=123049
763
764         Reviewed by Mark Hahnenberg.
765
766         * WebCore.xcodeproj/project.pbxproj:
767         * platform/ios/WebSafeGCActivityCallbackIOS.h: Added.
768         * platform/ios/WebSafeIncrementalSweeperIOS.h: Added.
769
770 2013-10-18  Anders Carlsson  <andersca@apple.com>
771
772         Remove spaces between template angle brackets
773         https://bugs.webkit.org/show_bug.cgi?id=123040
774
775         Reviewed by Andreas Kling.
776
777         * Modules/encryptedmedia/MediaKeySession.h:
778         * Modules/encryptedmedia/MediaKeys.h:
779         * Modules/geolocation/Geolocation.h:
780         * Modules/geolocation/GeolocationController.cpp:
781         (WebCore::GeolocationController::positionChanged):
782         (WebCore::GeolocationController::errorOccurred):
783         * Modules/geolocation/GeolocationController.h:
784         * Modules/indexeddb/IDBCallbacks.h:
785         * Modules/indexeddb/IDBDatabase.h:
786         * Modules/indexeddb/IDBDatabaseBackendInterface.h:
787         * Modules/indexeddb/IDBEventDispatcher.cpp:
788         (WebCore::IDBEventDispatcher::dispatch):
789         * Modules/indexeddb/IDBEventDispatcher.h:
790         * Modules/indexeddb/IDBKey.h:
791         * Modules/indexeddb/IDBObjectStore.h:
792         * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
793         * Modules/indexeddb/IDBRequest.cpp:
794         (WebCore::IDBRequest::dispatchEvent):
795         * Modules/indexeddb/IDBRequest.h:
796         (WebCore::IDBRequest::onSuccessWithPrefetch):
797         * Modules/indexeddb/IDBTransaction.cpp:
798         (WebCore::IDBTransaction::dispatchEvent):
799         * Modules/indexeddb/IDBTransaction.h:
800         * Modules/mediacontrols/MediaControlsHost.cpp:
801         (WebCore::MediaControlsHost::sortedTrackListForMenu):
802         * Modules/mediacontrols/MediaControlsHost.h:
803         * Modules/mediasource/MediaSource.cpp:
804         (WebCore::MediaSource::activeRanges):
805         * Modules/mediasource/MediaSource.h:
806         * Modules/mediasource/MediaSourceBase.cpp:
807         (WebCore::MediaSourceBase::buffered):
808         * Modules/mediasource/MediaSourceBase.h:
809         * Modules/mediasource/MediaSourceRegistry.cpp:
810         (WebCore::MediaSourceRegistry::unregisterURL):
811         * Modules/mediasource/MediaSourceRegistry.h:
812         * Modules/mediasource/SourceBufferList.h:
813         * Modules/mediasource/WebKitMediaSource.cpp:
814         (WebCore::WebKitMediaSource::activeRanges):
815         * Modules/mediasource/WebKitMediaSource.h:
816         * Modules/mediasource/WebKitSourceBufferList.h:
817         * Modules/mediastream/MediaStream.cpp:
818         (WebCore::MediaStream::scheduledEventTimerFired):
819         * Modules/mediastream/MediaStream.h:
820         * Modules/mediastream/MediaStreamRegistry.h:
821         * Modules/mediastream/MediaStreamTrack.h:
822         * Modules/mediastream/RTCDTMFSender.cpp:
823         (WebCore::RTCDTMFSender::scheduledEventTimerFired):
824         * Modules/mediastream/RTCDTMFSender.h:
825         * Modules/mediastream/RTCDataChannel.cpp:
826         (WebCore::RTCDataChannel::scheduledEventTimerFired):
827         * Modules/mediastream/RTCDataChannel.h:
828         * Modules/mediastream/RTCPeerConnection.cpp:
829         (WebCore::RTCPeerConnection::stop):
830         (WebCore::RTCPeerConnection::scheduledEventTimerFired):
831         * Modules/mediastream/RTCPeerConnection.h:
832         * Modules/mediastream/RTCStatsResponse.h:
833         (WebCore::RTCStatsResponse::result):
834         * Modules/notifications/Notification.h:
835         * Modules/notifications/NotificationCenter.h:
836         * Modules/speech/SpeechSynthesis.cpp:
837         (WebCore::SpeechSynthesis::getVoices):
838         * Modules/speech/SpeechSynthesis.h:
839         * Modules/webaudio/AudioBuffer.h:
840         * Modules/webaudio/AudioNode.h:
841         * Modules/webaudio/AudioNodeOutput.h:
842         * Modules/webaudio/MediaStreamAudioSource.cpp:
843         (WebCore::MediaStreamAudioSource::setAudioFormat):
844         (WebCore::MediaStreamAudioSource::consumeAudio):
845         * Modules/webaudio/PeriodicWave.h:
846         * Modules/webaudio/ScriptProcessorNode.h:
847         * Modules/webdatabase/AbstractDatabaseServer.h:
848         * Modules/webdatabase/DatabaseBackend.h:
849         * Modules/webdatabase/DatabaseManager.cpp:
850         (WebCore::DatabaseManager::origins):
851         * Modules/webdatabase/DatabaseManager.h:
852         * Modules/webdatabase/DatabaseServer.cpp:
853         (WebCore::DatabaseServer::origins):
854         * Modules/webdatabase/DatabaseServer.h:
855         * Modules/webdatabase/DatabaseThread.h:
856         * Modules/webdatabase/DatabaseTracker.cpp:
857         (WebCore::DatabaseTracker::interruptAllDatabasesForContext):
858         (WebCore::DatabaseTracker::origins):
859         (WebCore::DatabaseTracker::getOpenDatabases):
860         (WebCore::DatabaseTracker::deleteAllDatabases):
861         (WebCore::DatabaseTracker::deleteDatabaseFile):
862         * Modules/webdatabase/DatabaseTracker.h:
863         * Modules/webdatabase/SQLStatementBackend.cpp:
864         * Modules/webdatabase/SQLTransactionBackend.cpp:
865         * Modules/webdatabase/SQLTransactionBackend.h:
866         * Modules/webdatabase/SQLTransactionCoordinator.cpp:
867         (WebCore::SQLTransactionCoordinator::shutdown):
868         * Modules/webdatabase/SQLTransactionCoordinator.h:
869         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
870         (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
871         (WebCore::ThreadableWebSocketChannelClientWrapper::processPendingTasks):
872         (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryDataCallback):
873         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.h:
874         * Modules/websockets/WebSocket.cpp:
875         (WebCore::WebSocket::didReceiveBinaryData):
876         * Modules/websockets/WebSocket.h:
877         * Modules/websockets/WebSocketChannel.cpp:
878         (WebCore::WebSocketChannel::processFrame):
879         * Modules/websockets/WebSocketChannel.h:
880         * Modules/websockets/WebSocketChannelClient.h:
881         (WebCore::WebSocketChannelClient::didReceiveBinaryData):
882         * Modules/websockets/WebSocketExtensionDispatcher.h:
883         * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
884         (WebCore::workerGlobalScopeDidReceiveBinaryData):
885         (WebCore::WorkerThreadableWebSocketChannel::Peer::didReceiveBinaryData):
886         (WebCore::WorkerThreadableWebSocketChannel::mainThreadSendArrayBuffer):
887         (WebCore::WorkerThreadableWebSocketChannel::Bridge::send):
888         * Modules/websockets/WorkerThreadableWebSocketChannel.h:
889         * accessibility/AXObjectCache.cpp:
890         (WebCore::AXObjectCache::~AXObjectCache):
891         * accessibility/AXObjectCache.h:
892         * accessibility/AccessibilityNodeObject.cpp:
893         (WebCore::AccessibilityNodeObject::ariaLabeledByText):
894         * accessibility/AccessibilityObject.h:
895         (WebCore::AccessibilityText::AccessibilityText):
896         * bindings/js/DOMWrapperWorld.h:
897         * bindings/js/JSDOMBinding.h:
898         (WebCore::toRefPtrNativeArray):
899         * bindings/js/JSDOMGlobalObject.h:
900         * bindings/js/JSMutationCallback.cpp:
901         (WebCore::JSMutationCallback::call):
902         * bindings/js/JSMutationCallback.h:
903         * bindings/js/JSWebGLRenderingContextCustom.cpp:
904         (WebCore::JSWebGLRenderingContext::getAttachedShaders):
905         * bindings/js/PageScriptDebugServer.h:
906         * bindings/js/ScheduledAction.h:
907         * bindings/js/ScriptController.cpp:
908         (WebCore::ScriptController::collectIsolatedContexts):
909         * bindings/js/ScriptController.h:
910         * bindings/js/ScriptDebugServer.h:
911         * bindings/js/ScriptProfile.cpp:
912         (WebCore::buildInspectorObjectFor):
913         * bindings/objc/ObjCNodeFilterCondition.h:
914         * bridge/objc/objc_class.h:
915         * bridge/runtime_root.cpp:
916         (JSC::Bindings::RootObject::invalidate):
917         * bridge/runtime_root.h:
918         * css/BasicShapeFunctions.cpp:
919         (WebCore::basicShapeForValue):
920         * css/CSSBasicShapes.h:
921         (WebCore::CSSBasicShapePolygon::values):
922         * css/CSSComputedStyleDeclaration.cpp:
923         (WebCore::ComputedStyleExtractor::valueForFilter):
924         * css/CSSFontFace.h:
925         * css/CSSFontFaceSource.h:
926         * css/CSSFontSelector.cpp:
927         (WebCore::CSSFontSelector::addFontFaceRule):
928         (WebCore::CSSFontSelector::getFontFace):
929         (WebCore::CSSFontSelector::beginLoadTimerFired):
930         * css/CSSFontSelector.h:
931         * css/CSSGroupingRule.h:
932         * css/CSSImageGeneratorValue.h:
933         * css/CSSParserValues.cpp:
934         (WebCore::CSSParserSelector::adoptSelectorVector):
935         * css/CSSParserValues.h:
936         * css/CSSPropertySourceData.h:
937         * css/CSSRuleList.h:
938         (WebCore::StaticCSSRuleList::rules):
939         * css/CSSSegmentedFontFace.cpp:
940         (WebCore::CSSSegmentedFontFace::fontLoaded):
941         * css/CSSSegmentedFontFace.h:
942         * css/CSSSelectorList.cpp:
943         (WebCore::CSSSelectorList::adoptSelectorVector):
944         * css/CSSSelectorList.h:
945         * css/CSSStyleSheet.h:
946         * css/CSSValue.h:
947         (WebCore::compareCSSValueVector):
948         * css/CSSValuePool.h:
949         * css/DocumentRuleSets.cpp:
950         (WebCore::DocumentRuleSets::collectRulesFromUserStyleSheets):
951         (WebCore::DocumentRuleSets::appendAuthorStyleSheets):
952         * css/DocumentRuleSets.h:
953         * css/ElementRuleCollector.cpp:
954         (WebCore::ElementRuleCollector::matchedRuleList):
955         * css/ElementRuleCollector.h:
956         * css/FontLoader.h:
957         * css/InspectorCSSOMWrappers.cpp:
958         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheetContents):
959         (WebCore::InspectorCSSOMWrappers::collectFromStyleSheets):
960         * css/InspectorCSSOMWrappers.h:
961         * css/MediaList.cpp:
962         (WebCore::MediaQuerySet::parse):
963         (WebCore::MediaList::item):
964         (WebCore::reportMediaQueryWarningIfNeeded):
965         * css/MediaList.h:
966         (WebCore::MediaQuerySet::queryVector):
967         * css/MediaQueryEvaluator.cpp:
968         (WebCore::MediaQueryEvaluator::eval):
969         * css/MediaQueryMatcher.h:
970         * css/PropertySetCSSStyleDeclaration.cpp:
971         (WebCore::PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM):
972         * css/PropertySetCSSStyleDeclaration.h:
973         * css/RuleSet.cpp:
974         (WebCore::RuleSet::addToRuleSet):
975         (WebCore::RuleSet::addRegionRule):
976         (WebCore::RuleSet::addChildRules):
977         (WebCore::RuleSet::addRulesFromSheet):
978         * css/RuleSet.h:
979         * css/SelectorFilter.h:
980         * css/StyleInvalidationAnalysis.cpp:
981         (WebCore::StyleInvalidationAnalysis::analyzeStyleSheet):
982         * css/StylePropertySet.cpp:
983         (WebCore::StylePropertySet::getLayeredShorthandValue):
984         * css/StyleResolver.cpp:
985         (WebCore::StyleResolver::appendAuthorStyleSheets):
986         (WebCore::StyleResolver::keyframeStylesForAnimation):
987         (WebCore::StyleResolver::styleRulesForElement):
988         (WebCore::StyleResolver::pseudoStyleRulesForElement):
989         (WebCore::StyleResolver::resolveVariables):
990         (WebCore::StyleResolver::applyProperty):
991         (WebCore::StyleResolver::loadPendingSVGDocuments):
992         (WebCore::StyleResolver::loadPendingShaders):
993         * css/StyleResolver.h:
994         * css/StyleRule.cpp:
995         (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorComponentCount):
996         (WebCore::StyleRuleGroup::StyleRuleGroup):
997         (WebCore::StyleRuleMedia::StyleRuleMedia):
998         (WebCore::StyleRuleSupports::StyleRuleSupports):
999         (WebCore::StyleRuleRegion::StyleRuleRegion):
1000         * css/StyleRule.h:
1001         (WebCore::StyleRule::parserAdoptSelectorVector):
1002         (WebCore::StyleRulePage::parserAdoptSelectorVector):
1003         (WebCore::StyleRuleGroup::childRules):
1004         (WebCore::StyleRuleMedia::create):
1005         (WebCore::StyleRuleSupports::create):
1006         (WebCore::StyleRuleRegion::create):
1007         (WebCore::StyleRuleHost::create):
1008         (WebCore::StyleRuleHost::StyleRuleHost):
1009         * css/StyleScopeResolver.h:
1010         * css/StyleSheetContents.cpp:
1011         (WebCore::StyleSheetContents::parserAppendRule):
1012         (WebCore::childRulesHaveFailedOrCanceledSubresources):
1013         * css/StyleSheetContents.h:
1014         (WebCore::StyleSheetContents::childRules):
1015         (WebCore::StyleSheetContents::importRules):
1016         * css/StyleSheetList.cpp:
1017         (WebCore::StyleSheetList::styleSheets):
1018         (WebCore::StyleSheetList::item):
1019         * css/StyleSheetList.h:
1020         * css/WebKitCSSKeyframesRule.h:
1021         (WebCore::StyleRuleKeyframes::keyframes):
1022         * dom/CheckedRadioButtons.h:
1023         * dom/ClientRectList.h:
1024         * dom/ContainerNode.h:
1025         (WebCore::ChildNodesLazySnapshot::nextNode):
1026         (WebCore::ChildNodesLazySnapshot::takeSnapshot):
1027         * dom/CrossThreadTask.h:
1028         * dom/Document.cpp:
1029         (WebCore::Document::webkitCancelFullScreen):
1030         (WebCore::Document::webkitExitFullscreen):
1031         (WebCore::Document::fullScreenChangeDelayTimerFired):
1032         (WebCore::Document::didAssociateFormControlsTimerFired):
1033         * dom/Document.h:
1034         * dom/DocumentMarkerController.cpp:
1035         (WebCore::DocumentMarkerController::removeMarkers):
1036         * dom/DocumentMarkerController.h:
1037         * dom/DocumentStyleSheetCollection.cpp:
1038         (WebCore::DocumentStyleSheetCollection::injectedUserStyleSheets):
1039         (WebCore::DocumentStyleSheetCollection::injectedAuthorStyleSheets):
1040         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
1041         (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
1042         (WebCore::styleSheetsUseRemUnits):
1043         (WebCore::filterEnabledNonemptyCSSStyleSheets):
1044         (WebCore::collectActiveCSSStyleSheetsFromSeamlessParents):
1045         (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
1046         * dom/DocumentStyleSheetCollection.h:
1047         * dom/Element.cpp:
1048         (WebCore::Element::attrNodeList):
1049         (WebCore::Element::webkitGetRegionFlowRanges):
1050         * dom/Element.h:
1051         * dom/EventListenerMap.h:
1052         * dom/EventSender.h:
1053         (WebCore::EventSender::timerFired):
1054         * dom/IdTargetObserverRegistry.h:
1055         * dom/MutationCallback.h:
1056         * dom/MutationObserver.cpp:
1057         (WebCore::MutationObserver::takeRecords):
1058         (WebCore::MutationObserver::deliver):
1059         (WebCore::MutationObserver::deliverAllMutations):
1060         * dom/MutationObserver.h:
1061         * dom/MutationObserverRegistration.h:
1062         * dom/NamedFlowCollection.cpp:
1063         (WebCore::NamedFlowCollection::namedFlows):
1064         * dom/NamedFlowCollection.h:
1065         * dom/Node.cpp:
1066         (WebCore::Node::didMoveToNewDocument):
1067         (WebCore::Node::mutationObserverRegistry):
1068         (WebCore::Node::registerMutationObserver):
1069         (WebCore::Node::unregisterMutationObserver):
1070         (WebCore::Node::notifyMutationObserversNodeWillDetach):
1071         * dom/Node.h:
1072         * dom/NodeRareData.h:
1073         * dom/Range.cpp:
1074         (WebCore::Range::processContents):
1075         (WebCore::Range::processNodes):
1076         (WebCore::Range::processAncestorsAndTheirSiblings):
1077         * dom/Range.h:
1078         * dom/ScopedEventQueue.h:
1079         * dom/ScriptExecutionContext.cpp:
1080         (WebCore::ScriptExecutionContext::reportException):
1081         * dom/ScriptExecutionContext.h:
1082         * dom/ScriptedAnimationController.h:
1083         * editing/ApplyStyleCommand.cpp:
1084         (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
1085         * editing/BreakBlockquoteCommand.cpp:
1086         (WebCore::BreakBlockquoteCommand::doApply):
1087         * editing/CompositeEditCommand.cpp:
1088         (WebCore::CompositeEditCommand::removeChildrenInRange):
1089         (WebCore::CompositeEditCommand::deleteInsignificantText):
1090         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
1091         * editing/CompositeEditCommand.h:
1092         * editing/EditingStyle.cpp:
1093         (WebCore::htmlElementEquivalents):
1094         (WebCore::EditingStyle::conflictsWithImplicitStyleOfElement):
1095         (WebCore::htmlAttributeEquivalents):
1096         (WebCore::EditingStyle::conflictsWithImplicitStyleOfAttributes):
1097         (WebCore::EditingStyle::extractConflictingImplicitStyleOfAttributes):
1098         (WebCore::EditingStyle::elementIsStyledSpanOrHTMLEquivalent):
1099         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement):
1100         (WebCore::styleFromMatchedRulesForElement):
1101         * editing/Editor.cpp:
1102         (WebCore::Editor::countMatchesForText):
1103         * editing/Editor.h:
1104         * editing/InsertParagraphSeparatorCommand.cpp:
1105         (WebCore::InsertParagraphSeparatorCommand::getAncestorsInsideBlock):
1106         (WebCore::InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock):
1107         (WebCore::InsertParagraphSeparatorCommand::doApply):
1108         * editing/InsertParagraphSeparatorCommand.h:
1109         * editing/MergeIdenticalElementsCommand.cpp:
1110         (WebCore::MergeIdenticalElementsCommand::doApply):
1111         (WebCore::MergeIdenticalElementsCommand::doUnapply):
1112         * editing/RemoveNodePreservingChildrenCommand.cpp:
1113         (WebCore::RemoveNodePreservingChildrenCommand::doApply):
1114         * editing/ReplaceSelectionCommand.cpp:
1115         (WebCore::ReplacementFragment::removeUnrenderedNodes):
1116         * editing/SimplifyMarkupCommand.cpp:
1117         (WebCore::SimplifyMarkupCommand::doApply):
1118         (WebCore::SimplifyMarkupCommand::pruneSubsequentAncestorsToRemove):
1119         * editing/SimplifyMarkupCommand.h:
1120         * editing/SpellChecker.h:
1121         * editing/SplitElementCommand.cpp:
1122         (WebCore::SplitElementCommand::executeApply):
1123         (WebCore::SplitElementCommand::doUnapply):
1124         * editing/WrapContentsInDummySpanCommand.cpp:
1125         (WebCore::WrapContentsInDummySpanCommand::executeApply):
1126         (WebCore::WrapContentsInDummySpanCommand::doUnapply):
1127         * editing/mac/AlternativeTextUIController.h:
1128         * fileapi/FileList.h:
1129         * history/BackForwardList.h:
1130         * history/HistoryItem.cpp:
1131         (WebCore::HistoryItem::setRedirectURLs):
1132         * history/HistoryItem.h:
1133         * history/mac/HistoryItemMac.mm:
1134         (WebCore::HistoryItem::setTransientProperty):
1135         * html/FormController.h:
1136         * html/HTMLAnchorElement.cpp:
1137         * html/HTMLCollection.cpp:
1138         (WebCore::HTMLCollection::append):
1139         * html/HTMLCollection.h:
1140         * html/HTMLFormControlElement.cpp:
1141         (WebCore::HTMLFormControlElement::checkValidity):
1142         * html/HTMLFormControlElement.h:
1143         * html/HTMLFormElement.cpp:
1144         (WebCore::HTMLFormElement::validateInteractively):
1145         (WebCore::HTMLFormElement::checkValidity):
1146         (WebCore::HTMLFormElement::checkInvalidControlsAndCollectUnhandled):
1147         * html/HTMLFormElement.h:
1148         * html/HTMLMediaElement.cpp:
1149         (WebCore::HTMLMediaElement::updateActiveTextTrackCues):
1150         (WebCore::HTMLMediaElement::platformTextTracks):
1151         (WebCore::HTMLMediaElement::configureTextTrackGroup):
1152         * html/HTMLMediaElement.h:
1153         * html/HTMLPlugInImageElement.cpp:
1154         * html/HTMLSelectElement.cpp:
1155         (WebCore::HTMLSelectElement::setLength):
1156         * html/MediaController.cpp:
1157         (MediaController::asyncEventTimerFired):
1158         * html/MediaController.h:
1159         * html/MediaFragmentURIParser.h:
1160         * html/ValidationMessage.h:
1161         * html/canvas/WebGLFramebuffer.h:
1162         * html/canvas/WebGLRenderingContext.cpp:
1163         (WebCore::WebGLRenderingContext::getAttachedShaders):
1164         * html/canvas/WebGLRenderingContext.h:
1165         * html/canvas/WebGLTexture.h:
1166         * html/parser/BackgroundHTMLParser.cpp:
1167         (WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
1168         * html/parser/BackgroundHTMLParser.h:
1169         (WebCore::BackgroundHTMLParser::create):
1170         * html/parser/HTMLDocumentParser.cpp:
1171         (WebCore::HTMLDocumentParser::startBackgroundParser):
1172         * html/parser/HTMLDocumentParser.h:
1173         * html/parser/HTMLMetaCharsetParser.h:
1174         * html/parser/HTMLPreloadScanner.cpp:
1175         (WebCore::TokenPreloadScanner::scan):
1176         (WebCore::TokenPreloadScanner::scanCommon):
1177         * html/parser/HTMLResourcePreloader.h:
1178         * html/parser/XSSAuditor.h:
1179         * html/shadow/ContentDistributor.cpp:
1180         (WebCore::ContentDistributor::ensureInsertionPointList):
1181         (WebCore::ContentDistributor::distribute):
1182         (WebCore::ContentDistributor::invalidate):
1183         * html/shadow/ContentDistributor.h:
1184         * html/shadow/MediaControlElements.cpp:
1185         (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
1186         (WebCore::MediaControlTextTrackContainerElement::updateDisplay):
1187         * html/shadow/MediaControlElements.h:
1188         * html/track/InbandGenericTextTrack.h:
1189         * html/track/InbandWebVTTTextTrack.cpp:
1190         (WebCore::InbandWebVTTTextTrack::newCuesParsed):
1191         * html/track/LoadableTextTrack.cpp:
1192         (WebCore::LoadableTextTrack::newCuesAvailable):
1193         (WebCore::LoadableTextTrack::newRegionsAvailable):
1194         * html/track/TextTrackCueList.h:
1195         * html/track/TextTrackList.cpp:
1196         (TextTrackList::invalidateTrackIndexesAfterTrack):
1197         (TextTrackList::remove):
1198         (TextTrackList::contains):
1199         * html/track/TextTrackList.h:
1200         * html/track/TrackListBase.cpp:
1201         (TrackListBase::asyncEventTimerFired):
1202         * html/track/TrackListBase.h:
1203         * html/track/WebVTTParser.cpp:
1204         (WebCore::WebVTTParser::getNewCues):
1205         (WebCore::WebVTTParser::getNewRegions):
1206         * html/track/WebVTTParser.h:
1207         * inspector/ConsoleMessage.cpp:
1208         (WebCore::ConsoleMessage::addToFrontend):
1209         * inspector/ContentSearchUtils.cpp:
1210         (WebCore::ContentSearchUtils::getRegularExpressionMatchesByLines):
1211         (WebCore::ContentSearchUtils::lineEndings):
1212         (WebCore::ContentSearchUtils::searchInTextByLines):
1213         * inspector/ContentSearchUtils.h:
1214         * inspector/DOMPatchSupport.cpp:
1215         (WebCore::DOMPatchSupport::patchNode):
1216         (WebCore::DOMPatchSupport::diff):
1217         (WebCore::DOMPatchSupport::innerPatchChildren):
1218         * inspector/DOMPatchSupport.h:
1219         * inspector/InjectedScript.cpp:
1220         (WebCore::InjectedScript::getProperties):
1221         (WebCore::InjectedScript::getInternalProperties):
1222         (WebCore::InjectedScript::wrapCallFrames):
1223         * inspector/InjectedScript.h:
1224         * inspector/InjectedScriptHost.h:
1225         * inspector/InspectorAgent.cpp:
1226         (WebCore::InspectorAgent::enable):
1227         * inspector/InspectorApplicationCacheAgent.cpp:
1228         (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
1229         (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
1230         * inspector/InspectorApplicationCacheAgent.h:
1231         * inspector/InspectorBaseAgent.h:
1232         * inspector/InspectorCSSAgent.cpp:
1233         (WebCore::SelectorProfile::toInspectorObject):
1234         (WebCore::UpdateRegionLayoutTask::onTimer):
1235         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
1236         (WebCore::InspectorCSSAgent::getComputedStyleForNode):
1237         (WebCore::InspectorCSSAgent::getAllStyleSheets):
1238         (WebCore::InspectorCSSAgent::getSupportedCSSProperties):
1239         (WebCore::InspectorCSSAgent::getNamedFlowCollection):
1240         (WebCore::InspectorCSSAgent::buildArrayForRuleList):
1241         (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
1242         (WebCore::InspectorCSSAgent::buildArrayForRegions):
1243         (WebCore::InspectorCSSAgent::buildObjectForNamedFlow):
1244         * inspector/InspectorCSSAgent.h:
1245         * inspector/InspectorConsoleAgent.h:
1246         * inspector/InspectorDOMAgent.cpp:
1247         (WebCore::RevalidateStyleAttributeTask::onTimer):
1248         (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
1249         (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
1250         (WebCore::InspectorDOMAgent::getEventListenersForNode):
1251         (WebCore::InspectorDOMAgent::performSearch):
1252         (WebCore::InspectorDOMAgent::getSearchResults):
1253         (WebCore::InspectorDOMAgent::getAttributes):
1254         (WebCore::InspectorDOMAgent::buildObjectForNode):
1255         (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
1256         (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
1257         (WebCore::InspectorDOMAgent::styleAttributeInvalidated):
1258         * inspector/InspectorDOMAgent.h:
1259         * inspector/InspectorDOMStorageAgent.cpp:
1260         (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
1261         * inspector/InspectorDOMStorageAgent.h:
1262         * inspector/InspectorDatabaseAgent.cpp:
1263         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
1264         * inspector/InspectorDatabaseAgent.h:
1265         * inspector/InspectorDebuggerAgent.cpp:
1266         (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
1267         (WebCore::InspectorDebuggerAgent::searchInContent):
1268         (WebCore::InspectorDebuggerAgent::setScriptSource):
1269         (WebCore::InspectorDebuggerAgent::currentCallFrames):
1270         * inspector/InspectorDebuggerAgent.h:
1271         * inspector/InspectorHeapProfilerAgent.cpp:
1272         (WebCore::InspectorHeapProfilerAgent::getProfileHeaders):
1273         * inspector/InspectorHeapProfilerAgent.h:
1274         * inspector/InspectorHistory.h:
1275         * inspector/InspectorIndexedDBAgent.cpp:
1276         * inspector/InspectorLayerTreeAgent.cpp:
1277         (WebCore::InspectorLayerTreeAgent::layersForNode):
1278         (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderObjectHierarchy):
1279         (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderLayerHierarchy):
1280         * inspector/InspectorLayerTreeAgent.h:
1281         * inspector/InspectorMemoryAgent.h:
1282         * inspector/InspectorPageAgent.cpp:
1283         (WebCore::buildArrayForCookies):
1284         (WebCore::InspectorPageAgent::getCookies):
1285         (WebCore::InspectorPageAgent::searchInResource):
1286         (WebCore::InspectorPageAgent::searchInResources):
1287         (WebCore::InspectorPageAgent::buildObjectForFrameTree):
1288         * inspector/InspectorPageAgent.h:
1289         * inspector/InspectorProfilerAgent.cpp:
1290         (WebCore::InspectorProfilerAgent::getProfileHeaders):
1291         * inspector/InspectorProfilerAgent.h:
1292         * inspector/InspectorResourceAgent.h:
1293         * inspector/InspectorRuntimeAgent.cpp:
1294         (WebCore::InspectorRuntimeAgent::getProperties):
1295         * inspector/InspectorRuntimeAgent.h:
1296         * inspector/InspectorState.h:
1297         * inspector/InspectorStyleSheet.cpp:
1298         (WebCore::asCSSRuleList):
1299         (WebCore::InspectorStyle::buildArrayForComputedStyle):
1300         (WebCore::InspectorStyle::styleWithProperties):
1301         (WebCore::selectorsFromSource):
1302         (WebCore::InspectorStyleSheet::buildObjectForSelectorList):
1303         (WebCore::InspectorStyleSheet::buildObjectForRule):
1304         (WebCore::InspectorStyleSheet::lineEndings):
1305         (WebCore::InspectorStyleSheet::buildArrayForRuleList):
1306         (WebCore::InspectorStyleSheetForInlineStyle::lineEndings):
1307         * inspector/InspectorStyleSheet.h:
1308         * inspector/InspectorValues.cpp:
1309         (WebCore::InspectorArrayBase::writeJSON):
1310         * inspector/InspectorValues.h:
1311         * inspector/PageRuntimeAgent.cpp:
1312         (WebCore::PageRuntimeAgent::reportExecutionContextCreation):
1313         * inspector/ScriptCallStack.cpp:
1314         (WebCore::ScriptCallStack::buildInspectorArray):
1315         * inspector/ScriptCallStack.h:
1316         * loader/CrossOriginPreflightResultCache.h:
1317         * loader/DocumentLoader.cpp:
1318         (WebCore::cancelAll):
1319         (WebCore::setAllDefersLoading):
1320         (WebCore::DocumentLoader::getSubresources):
1321         * loader/DocumentLoader.h:
1322         * loader/FormState.h:
1323         * loader/FormSubmission.cpp:
1324         (WebCore::FormSubmission::create):
1325         * loader/ProgressTracker.h:
1326         * loader/ResourceLoadScheduler.h:
1327         * loader/TextTrackLoader.cpp:
1328         (WebCore::TextTrackLoader::getNewCues):
1329         (WebCore::TextTrackLoader::getNewRegions):
1330         * loader/TextTrackLoader.h:
1331         * loader/WorkerThreadableLoader.cpp:
1332         (WebCore::workerGlobalScopeDidReceiveData):
1333         (WebCore::WorkerThreadableLoader::MainThreadBridge::didReceiveData):
1334         * loader/appcache/ApplicationCache.cpp:
1335         (WebCore::ApplicationCache::removeResource):
1336         (WebCore::ApplicationCache::dump):
1337         * loader/appcache/ApplicationCache.h:
1338         * loader/appcache/ApplicationCacheStorage.cpp:
1339         (WebCore::ApplicationCacheStorage::getOriginsWithCache):
1340         * loader/archive/Archive.cpp:
1341         (WebCore::Archive::clearAllSubframeArchives):
1342         (WebCore::Archive::clearAllSubframeArchivesImpl):
1343         * loader/archive/Archive.h:
1344         (WebCore::Archive::subresources):
1345         (WebCore::Archive::subframeArchives):
1346         * loader/archive/ArchiveResourceCollection.cpp:
1347         (WebCore::ArchiveResourceCollection::addAllResources):
1348         * loader/archive/ArchiveResourceCollection.h:
1349         * loader/archive/cf/LegacyWebArchive.cpp:
1350         (WebCore::LegacyWebArchive::createPropertyListRepresentation):
1351         (WebCore::LegacyWebArchive::create):
1352         (WebCore::LegacyWebArchive::createFromSelection):
1353         * loader/archive/cf/LegacyWebArchive.h:
1354         * loader/archive/mhtml/MHTMLParser.h:
1355         * loader/cache/CachedResource.h:
1356         * loader/cache/CachedResourceLoader.h:
1357         * loader/cache/MemoryCache.h:
1358         * loader/icon/IconDatabase.cpp:
1359         (WebCore::IconDatabase::notifyPendingLoadDecisions):
1360         * loader/icon/IconDatabase.h:
1361         * page/CaptionUserPreferencesMediaAF.cpp:
1362         (WebCore::CaptionUserPreferencesMediaAF::sortedTrackListForMenu):
1363         * page/CaptionUserPreferencesMediaAF.h:
1364         * page/ChromeClient.h:
1365         (WebCore::ChromeClient::didAssociateFormControls):
1366         * page/Console.h:
1367         * page/ContentSecurityPolicy.h:
1368         * page/DOMWindow.cpp:
1369         (WebCore::DOMWindow::getMatchedCSSRules):
1370         * page/DeviceController.cpp:
1371         (WebCore::DeviceController::dispatchDeviceEvent):
1372         (WebCore::DeviceController::fireDeviceEvent):
1373         * page/DeviceController.h:
1374         * page/EditorClient.h:
1375         * page/EventHandler.cpp:
1376         (WebCore::EventHandler::handleTouchEvent):
1377         * page/EventHandler.h:
1378         * page/FrameView.cpp:
1379         (WebCore::FrameView::serviceScriptedAnimations):
1380         * page/Page.cpp:
1381         (WebCore::Page::findStringMatchingRanges):
1382         * page/Page.h:
1383         * page/PageGroup.h:
1384         * page/Performance.cpp:
1385         (WebCore::Performance::webkitGetEntriesByType):
1386         (WebCore::Performance::webkitGetEntriesByName):
1387         * page/Performance.h:
1388         * page/PerformanceEntryList.cpp:
1389         (WebCore::PerformanceEntryList::appendAll):
1390         * page/PerformanceEntryList.h:
1391         * page/SecurityOriginHash.h:
1392         * page/SecurityPolicy.cpp:
1393         * page/SpeechInputResult.h:
1394         * page/animation/AnimationController.cpp:
1395         (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
1396         * page/animation/AnimationControllerPrivate.h:
1397         * page/animation/CSSPropertyAnimation.cpp:
1398         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
1399         * page/animation/CompositeAnimation.h:
1400         * page/scrolling/ScrollingStateNode.cpp:
1401         (WebCore::ScrollingStateNode::appendChild):
1402         * page/scrolling/ScrollingStateNode.h:
1403         (WebCore::ScrollingStateNode::children):
1404         * page/scrolling/ScrollingThread.cpp:
1405         (WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread):
1406         * page/scrolling/ScrollingThread.h:
1407         * page/scrolling/ScrollingTree.cpp:
1408         (WebCore::ScrollingTree::updateTreeFromStateNode):
1409         * page/scrolling/ScrollingTreeNode.cpp:
1410         (WebCore::ScrollingTreeNode::appendChild):
1411         * page/scrolling/ScrollingTreeNode.h:
1412         * page/scrolling/mac/ScrollingCoordinatorMac.mm:
1413         (WebCore::ScrollingCoordinatorMac::syncChildPositions):
1414         * platform/CrossThreadCopier.cpp:
1415         * platform/CrossThreadCopier.h:
1416         * platform/DragData.h:
1417         * platform/MainThreadTask.h:
1418         * platform/PODFreeListArena.h:
1419         (WebCore::PODFreeListArena::freeObject):
1420         (WebCore::PODFreeListArena::allocate):
1421         * platform/PODIntervalTree.h:
1422         * platform/PODRedBlackTree.h:
1423         (WebCore::PODRedBlackTree::PODRedBlackTree):
1424         * platform/PlatformSpeechSynthesizer.cpp:
1425         (WebCore::PlatformSpeechSynthesizer::voiceList):
1426         * platform/PlatformSpeechSynthesizer.h:
1427         * platform/RunLoop.h:
1428         * platform/ScrollView.cpp:
1429         (WebCore::ScrollView::frameRectsChanged):
1430         (WebCore::ScrollView::clipRectChanged):
1431         (WebCore::ScrollView::setParentVisible):
1432         (WebCore::ScrollView::show):
1433         (WebCore::ScrollView::hide):
1434         * platform/ScrollView.h:
1435         * platform/SharedBuffer.h:
1436         * platform/Supplementable.h:
1437         (WebCore::Supplement::provideTo):
1438         (WebCore::Supplementable::provideSupplement):
1439         * platform/URL.cpp:
1440         (WebCore::findHostnamesInMailToURL):
1441         (WebCore::encodeHostnames):
1442         * platform/audio/AudioBus.h:
1443         * platform/audio/AudioDSPKernelProcessor.h:
1444         * platform/audio/AudioResampler.h:
1445         * platform/audio/DynamicsCompressor.h:
1446         * platform/audio/DynamicsCompressorKernel.h:
1447         * platform/audio/HRTFDatabase.h:
1448         * platform/audio/HRTFKernel.h:
1449         * platform/audio/MultiChannelResampler.h:
1450         * platform/audio/Reverb.h:
1451         * platform/audio/ReverbConvolver.h:
1452         * platform/cf/SharedBufferCF.cpp:
1453         (WebCore::SharedBuffer::copyBufferAndClear):
1454         (WebCore::SharedBuffer::copySomeDataFromDataArray):
1455         * platform/graphics/FloatPolygon.cpp:
1456         (WebCore::FloatPolygon::FloatPolygon):
1457         * platform/graphics/FloatPolygon.h:
1458         * platform/graphics/FontCache.cpp:
1459         (WebCore::FontCache::getCachedFontData):
1460         (WebCore::FontCache::purgeInactiveFontData):
1461         * platform/graphics/GlyphMetricsMap.h:
1462         (WebCore::::locatePageSlowCase):
1463         * platform/graphics/GlyphPageTreeNode.h:
1464         * platform/graphics/GraphicsContext3D.h:
1465         * platform/graphics/GraphicsLayer.cpp:
1466         * platform/graphics/GraphicsLayer.h:
1467         * platform/graphics/PlatformTextTrackMenu.h:
1468         * platform/graphics/SimpleFontData.h:
1469         * platform/graphics/WidthCache.h:
1470         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
1471         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
1472         (WebCore::MediaPlayerPrivateAVFoundation::processNewAndRemovedTextTracks):
1473         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
1474         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
1475         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1476         (WebCore::MediaPlayerPrivateAVFoundationObjC::processLegacyClosedCaptionsTracks):
1477         (WebCore::MediaPlayerPrivateAVFoundationObjC::processMediaSelectionOptions):
1478         * platform/graphics/ca/GraphicsLayerCA.cpp:
1479         (WebCore::GraphicsLayerCA::setFilterAnimationKeyframes):
1480         (WebCore::GraphicsLayerCA::fetchCloneLayers):
1481         * platform/graphics/ca/GraphicsLayerCA.h:
1482         * platform/graphics/ca/PlatformCAAnimation.h:
1483         * platform/graphics/ca/PlatformCALayer.h:
1484         * platform/graphics/ca/mac/LayerPool.h:
1485         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
1486         (PlatformCAAnimation::setValues):
1487         * platform/graphics/ca/mac/TileController.h:
1488         * platform/graphics/cg/SubimageCacheWithTimer.h:
1489         * platform/graphics/filters/CustomFilterParameterList.h:
1490         * platform/graphics/filters/FilterEffect.h:
1491         * platform/graphics/filters/FilterOperations.h:
1492         (WebCore::FilterOperations::operations):
1493         * platform/graphics/gpu/Texture.cpp:
1494         (WebCore::Texture::Texture):
1495         (WebCore::Texture::create):
1496         * platform/graphics/gpu/Texture.h:
1497         * platform/graphics/mac/ComplexTextController.h:
1498         * platform/graphics/mac/SimpleFontDataCoreText.cpp:
1499         (WebCore::SimpleFontData::getCFStringAttributes):
1500         * platform/graphics/transforms/TransformOperations.h:
1501         (WebCore::TransformOperations::operations):
1502         * platform/ios/PasteboardIOS.mm:
1503         (WebCore::documentFragmentWithRTF):
1504         * platform/mac/PlatformSpeechSynthesizerMac.mm:
1505         (-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
1506         * platform/mediastream/MediaStreamDescriptor.h:
1507         * platform/mediastream/MediaStreamSource.h:
1508         * platform/mediastream/RTCConfiguration.h:
1509         * platform/network/BlobRegistryImpl.h:
1510         * platform/network/HTTPHeaderMap.h:
1511         * platform/network/ResourceResponseBase.cpp:
1512         (WebCore::ResourceResponseBase::parseCacheControlDirectives):
1513         (WebCore::parseCacheHeader):
1514         * platform/network/cf/ResourceHandleCFNet.cpp:
1515         (WebCore::clientCerts):
1516         (WebCore::ResourceHandle::createCFURLConnection):
1517         * platform/text/cf/HyphenationCF.cpp:
1518         (WebCore::::createValueForNullKey):
1519         (WebCore::::createValueForKey):
1520         (WebCore::cfLocaleCache):
1521         * plugins/PluginMainThreadScheduler.h:
1522         * rendering/HitTestResult.h:
1523         * rendering/InlineFlowBox.h:
1524         * rendering/RenderBlock.cpp:
1525         (WebCore::RenderBlock::paintContinuationOutlines):
1526         (WebCore::RenderBlock::removeFromTrackedRendererMaps):
1527         * rendering/RenderBlock.h:
1528         * rendering/RenderButton.h:
1529         * rendering/RenderCounter.cpp:
1530         * rendering/RenderGrid.cpp:
1531         (WebCore::RenderGrid::GridIterator::GridIterator):
1532         * rendering/RenderGrid.h:
1533         * rendering/RenderLayer.cpp:
1534         (WebCore::RenderLayer::updateDescendantsAreContiguousInStackingOrder):
1535         (WebCore::RenderLayer::rebuildZOrderLists):
1536         (WebCore::RenderLayer::collectLayers):
1537         * rendering/RenderLayer.h:
1538         * rendering/RenderNamedFlowThread.cpp:
1539         (WebCore::RenderNamedFlowThread::getRanges):
1540         * rendering/RenderNamedFlowThread.h:
1541         * rendering/RenderRegion.cpp:
1542         (WebCore::RenderRegion::getRanges):
1543         * rendering/RenderRegion.h:
1544         * rendering/RenderView.cpp:
1545         (WebCore::RenderView::selectionBounds):
1546         (WebCore::RenderView::setSelection):
1547         * rendering/RootInlineBox.h:
1548         * rendering/shapes/PolygonShape.cpp:
1549         (WebCore::computeShapePaddingBounds):
1550         (WebCore::computeShapeMarginBounds):
1551         * rendering/shapes/PolygonShape.h:
1552         (WebCore::PolygonShape::PolygonShape):
1553         * rendering/shapes/Shape.cpp:
1554         (WebCore::createPolygonShape):
1555         (WebCore::Shape::createShape):
1556         * rendering/shapes/ShapeInfo.h:
1557         * rendering/shapes/ShapeInterval.h:
1558         * rendering/style/QuotesData.cpp:
1559         (WebCore::QuotesData::create):
1560         (WebCore::QuotesData::QuotesData):
1561         * rendering/style/QuotesData.h:
1562         * rendering/style/RenderStyle.cpp:
1563         (WebCore::requireTransformOrigin):
1564         (WebCore::RenderStyle::applyTransform):
1565         * rendering/style/StyleGridData.h:
1566         * rendering/svg/RenderSVGResourceGradient.h:
1567         * rendering/svg/RenderSVGResourcePattern.h:
1568         * rendering/svg/SVGResourcesCache.h:
1569         * storage/StorageEventDispatcher.cpp:
1570         (WebCore::StorageEventDispatcher::dispatchSessionStorageEvents):
1571         (WebCore::StorageEventDispatcher::dispatchLocalStorageEvents):
1572         (WebCore::StorageEventDispatcher::dispatchSessionStorageEventsToFrames):
1573         (WebCore::StorageEventDispatcher::dispatchLocalStorageEventsToFrames):
1574         * storage/StorageEventDispatcher.h:
1575         * storage/StorageNamespaceImpl.h:
1576         * storage/StorageThread.h:
1577         * storage/StorageTracker.cpp:
1578         (WebCore::StorageTracker::origins):
1579         * storage/StorageTracker.h:
1580         * svg/SVGAnimatedPath.cpp:
1581         (WebCore::SVGAnimatedPathAnimator::startAnimValAnimation):
1582         * svg/SVGAnimatedTypeAnimator.cpp:
1583         (WebCore::SVGElementAnimatedProperties::SVGElementAnimatedProperties):
1584         (WebCore::SVGAnimatedTypeAnimator::findAnimatedPropertiesForAttributeName):
1585         * svg/SVGAnimatedTypeAnimator.h:
1586         * svg/SVGDocumentExtensions.cpp:
1587         (WebCore::SVGDocumentExtensions::startAnimations):
1588         (WebCore::SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements):
1589         (WebCore::SVGDocumentExtensions::addPendingResource):
1590         (WebCore::SVGDocumentExtensions::isElementPendingResources):
1591         (WebCore::SVGDocumentExtensions::removeElementFromPendingResources):
1592         (WebCore::SVGDocumentExtensions::setOfElementsReferencingTarget):
1593         (WebCore::SVGDocumentExtensions::addElementReferencingTarget):
1594         (WebCore::SVGDocumentExtensions::rebuildAllElementReferencesForTarget):
1595         * svg/SVGDocumentExtensions.h:
1596         * svg/SVGFontElement.h:
1597         * svg/SVGGlyphMap.h:
1598         * svg/SVGMarkerElement.cpp:
1599         (WebCore::SVGMarkerElement::orientTypeAnimated):
1600         * svg/SVGMarkerElement.h:
1601         * svg/SVGPathSegList.h:
1602         * svg/animation/SMILTimeContainer.h:
1603         * svg/graphics/SVGImageCache.h:
1604         * svg/graphics/filters/SVGFilterBuilder.h:
1605         (WebCore::SVGFilterBuilder::addBuiltinEffects):
1606         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
1607         (WebCore::SVGAnimatedEnumerationPropertyTearOff::create):
1608         * svg/properties/SVGAnimatedListPropertyTearOff.h:
1609         (WebCore::SVGAnimatedListPropertyTearOff::create):
1610         * svg/properties/SVGAnimatedPropertyTearOff.h:
1611         (WebCore::SVGAnimatedPropertyTearOff::create):
1612         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
1613         (WebCore::SVGAnimatedStaticPropertyTearOff::create):
1614         * svg/properties/SVGAttributeToPropertyMap.cpp:
1615         (WebCore::SVGAttributeToPropertyMap::animatedPropertiesForAttribute):
1616         * svg/properties/SVGAttributeToPropertyMap.h:
1617         * svg/properties/SVGStaticListPropertyTearOff.h:
1618         (WebCore::SVGStaticListPropertyTearOff::create):
1619         * svg/properties/SVGTransformListPropertyTearOff.h:
1620         (WebCore::SVGTransformListPropertyTearOff::create):
1621         (WebCore::SVGTransformListPropertyTearOff::createSVGTransformFromMatrix):
1622         (WebCore::SVGTransformListPropertyTearOff::consolidate):
1623         * workers/DefaultSharedWorkerRepository.h:
1624         * workers/WorkerMessagingProxy.h:
1625         * xml/XMLHttpRequestProgressEventThrottle.cpp:
1626         (WebCore::XMLHttpRequestProgressEventThrottle::dispatchDeferredEvents):
1627         * xml/XMLHttpRequestProgressEventThrottle.h:
1628         * xml/XPathNodeSet.cpp:
1629         (WebCore::XPath::NodeSet::sort):
1630         (WebCore::XPath::NodeSet::traversalSort):
1631         * xml/XSLStyleSheet.h:
1632         * xml/parser/XMLDocumentParserLibxml2.cpp:
1633
1634 2013-10-18  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1635
1636         Cleaning warning messages from StyleResolveTree
1637         https://bugs.webkit.org/show_bug.cgi?id=123030
1638
1639         Reviewed by Andreas Kling.
1640
1641         No new tests needed.
1642
1643         * style/StyleResolveTree.cpp:
1644         (WebCore::Style::elementInsideRegionNeedsRenderer):
1645         (WebCore::Style::createRendererIfNeeded):
1646
1647 2013-10-18  Brady Eidson  <beidson@apple.com>
1648
1649         Get rid of IDBFactoryBackendLevelDB and IDBTransactionBackendLevelDB in IDBDatabaseBackendLevelDB.
1650         https://bugs.webkit.org/show_bug.cgi?id=123039
1651
1652         Reviewed by Anders Carlsson.
1653
1654         Add a few concepts to the interfaces to make this work:
1655         * Modules/indexeddb/IDBFactoryBackendInterface.h:
1656         * Modules/indexeddb/IDBTransactionBackendInterface.h:
1657         (WebCore::IDBTransactionBackendInterface::id):
1658         (WebCore::IDBTransactionBackendInterface::IDBTransactionBackendInterface):
1659
1660         Adapt to using Interface ptr’s instead of LevelDB ptr’s:
1661         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp:
1662         (WebCore::IDBDatabaseBackendLevelDB::create):
1663         (WebCore::IDBDatabaseBackendLevelDB::IDBDatabaseBackendLevelDB):
1664         (WebCore::IDBDatabaseBackendLevelDB::createObjectStore):
1665         (WebCore::IDBDatabaseBackendLevelDB::deleteObjectStore):
1666         (WebCore::IDBDatabaseBackendLevelDB::createIndex):
1667         (WebCore::IDBDatabaseBackendLevelDB::deleteIndex):
1668         (WebCore::IDBDatabaseBackendLevelDB::get):
1669         (WebCore::IDBDatabaseBackendLevelDB::put):
1670         (WebCore::IDBDatabaseBackendLevelDB::setIndexKeys):
1671         (WebCore::IDBDatabaseBackendLevelDB::setIndexesReady):
1672         (WebCore::IDBDatabaseBackendLevelDB::openCursor):
1673         (WebCore::IDBDatabaseBackendLevelDB::count):
1674         (WebCore::IDBDatabaseBackendLevelDB::deleteRange):
1675         (WebCore::IDBDatabaseBackendLevelDB::clear):
1676         (WebCore::IDBDatabaseBackendLevelDB::transactionStarted):
1677         (WebCore::IDBDatabaseBackendLevelDB::transactionFinished):
1678         (WebCore::IDBDatabaseBackendLevelDB::transactionFinishedAndAbortFired):
1679         (WebCore::IDBDatabaseBackendLevelDB::transactionFinishedAndCompleteFired):
1680         (WebCore::IDBDatabaseBackendLevelDB::runIntVersionChangeTransaction):
1681         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h:
1682
1683         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
1684
1685         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp:
1686         (WebCore::IDBObjectStoreBackendLevelDB::makeIndexWriters):
1687         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.h:
1688
1689         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp:
1690         (WebCore::IDBTransactionBackendLevelDB::IDBTransactionBackendLevelDB):
1691         (WebCore::IDBTransactionBackendLevelDB::abort):
1692         (WebCore::IDBTransactionBackendLevelDB::commit):
1693         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
1694
1695 2013-10-18  Dean Jackson  <dino@apple.com>
1696
1697         Unable to upload <img src="foo.svg"> as WebGL texture
1698         https://bugs.webkit.org/show_bug.cgi?id=123035
1699
1700         Reviewed by Tim Horton.
1701
1702         If the HTMLImageElement passed to texture2D is an SVG
1703         image, paint it first into a bitmap buffer and upload that.
1704         Note that the SVG image still needs to have an intrinsic
1705         or explicit size - see how the test case must set width and
1706         height.
1707
1708         I also renamed the cache of ImageBuffers since it is
1709         no longer only being used for video frames.
1710
1711         Test: fast/canvas/webgl/tex-image-and-sub-image-2d-with-svg-image.html
1712
1713         * html/canvas/WebGLRenderingContext.cpp:
1714         (WebCore::WebGLRenderingContext::WebGLRenderingContext): Rename m_videoCache to m_generatedImageCache.
1715         (WebCore::WebGLRenderingContext::drawImageIntoBuffer): New method that creates an ImageBuffer
1716         of the appropriate size and renders into that.
1717         (WebCore::WebGLRenderingContext::texImage2D): If we see an SVG image, render it first.
1718         (WebCore::WebGLRenderingContext::videoFrameToImage): Renamed m_generatedImageCache.
1719         (WebCore::WebGLRenderingContext::texSubImage2D): If we see an SVG image, render it first.
1720         * html/canvas/WebGLRenderingContext.h: Renaming.
1721
1722 2013-10-18  Brady Eidson  <beidson@apple.com>
1723
1724         Move IDBTransactionBackend operations to the IDBTransactionBackend itself..
1725         https://bugs.webkit.org/show_bug.cgi?id=123028
1726
1727         Reviewed by Alexey Proskuryakov.
1728
1729         This gets rid of a big blob of LevelDB specific code from IDBDatabaseBackendLevelDB.cpp,
1730         bringing us much closer to having it be cross platform.
1731
1732         * CMakeLists.txt:
1733         * GNUmakefile.list.am:
1734
1735         * Modules/indexeddb/IDBTransactionBackendInterface.h: Added.
1736         (WebCore::IDBTransactionBackendInterface::~IDBTransactionBackendInterface):
1737
1738         * Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp:
1739         (WebCore::IDBCursorBackendLevelDB::CursorAdvanceOperation::perform): Update for new method signature.
1740         (WebCore::IDBCursorBackendLevelDB::CursorIterationOperation::perform): Ditto.
1741         (WebCore::IDBCursorBackendLevelDB::CursorPrefetchIterationOperation::perform): Ditto.
1742
1743         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.cpp: Move all operations into
1744           IDBTransactionBackendLevelDBOperations, then start scheduling them using the new
1745           IDBTransactionBackendInterface scheduling methods.
1746         (WebCore::IDBDatabaseBackendLevelDB::createObjectStore):
1747         (WebCore::IDBDatabaseBackendLevelDB::deleteObjectStore):
1748         (WebCore::IDBDatabaseBackendLevelDB::createIndex):
1749         (WebCore::IDBDatabaseBackendLevelDB::deleteIndex):
1750         (WebCore::IDBDatabaseBackendLevelDB::get):
1751         (WebCore::IDBDatabaseBackendLevelDB::put):
1752         (WebCore::IDBDatabaseBackendLevelDB::setIndexesReady):
1753         (WebCore::IDBDatabaseBackendLevelDB::openCursor):
1754         (WebCore::IDBDatabaseBackendLevelDB::count):
1755         (WebCore::IDBDatabaseBackendLevelDB::deleteRange):
1756         (WebCore::IDBDatabaseBackendLevelDB::clear):
1757         (WebCore::IDBDatabaseBackendLevelDB::createTransaction):
1758         (WebCore::IDBDatabaseBackendLevelDB::runIntVersionChangeTransaction):
1759         * Modules/indexeddb/leveldb/IDBDatabaseBackendLevelDB.h: Move definitions of PendingOpenCall and
1760           PendingDeleteCall to the header.
1761         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::create):
1762         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::callbacks):
1763         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::databaseCallbacks):
1764         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::version):
1765         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::transactionId):
1766         (WebCore::IDBDatabaseBackendLevelDB::PendingOpenCall::PendingOpenCall):
1767         (WebCore::IDBDatabaseBackendLevelDB::PendingDeleteCall::create):
1768         (WebCore::IDBDatabaseBackendLevelDB::PendingDeleteCall::callbacks):
1769         (WebCore::IDBDatabaseBackendLevelDB::PendingDeleteCall::PendingDeleteCall):
1770
1771         * Modules/indexeddb/leveldb/IDBObjectStoreBackendLevelDB.cpp: Add a newly required include.
1772         * Modules/indexeddb/leveldb/IDBTransactionCoordinatorLevelDB.cpp: Ditto.
1773
1774         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp: Implement the new interface to
1775           handle scheduling of operations in a cross platform manner, then rely on the new
1776           IDBTransactionBackendLevelDBOperations classes for the actual operations.
1777         (WebCore::IDBTransactionBackendLevelDB::create):
1778         (WebCore::IDBTransactionBackendLevelDB::IDBTransactionBackendLevelDB):
1779         (WebCore::IDBTransactionBackendLevelDB::abort):
1780         (WebCore::IDBTransactionBackendLevelDB::taskTimerFired):
1781         (WebCore::IDBTransactionBackendLevelDB::scheduleCreateObjectStoreOperation):
1782         (WebCore::IDBTransactionBackendLevelDB::scheduleDeleteObjectStoreOperation):
1783         (WebCore::IDBTransactionBackendLevelDB::scheduleVersionChangeOperation):
1784         (WebCore::IDBTransactionBackendLevelDB::scheduleCreateIndexOperation):
1785         (WebCore::IDBTransactionBackendLevelDB::scheduleDeleteIndexOperation):
1786         (WebCore::IDBTransactionBackendLevelDB::scheduleGetOperation):
1787         (WebCore::IDBTransactionBackendLevelDB::schedulePutOperation):
1788         (WebCore::IDBTransactionBackendLevelDB::scheduleSetIndexesReadyOperation):
1789         (WebCore::IDBTransactionBackendLevelDB::scheduleOpenCursorOperation):
1790         (WebCore::IDBTransactionBackendLevelDB::scheduleCountOperation):
1791         (WebCore::IDBTransactionBackendLevelDB::scheduleDeleteRangeOperation):
1792         (WebCore::IDBTransactionBackendLevelDB::scheduleClearOperation):
1793         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h:
1794
1795         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp: Added.
1796           Move all the LevelDB transaction operations from IDBDatabaseBackendLevelDB to here.
1797         (WebCore::CreateObjectStoreOperation::perform):
1798         (WebCore::CreateIndexOperation::perform):
1799         (WebCore::CreateIndexAbortOperation::perform):
1800         (WebCore::DeleteIndexOperation::perform):
1801         (WebCore::DeleteIndexAbortOperation::perform):
1802         (WebCore::GetOperation::perform):
1803         (WebCore::PutOperation::perform):
1804         (WebCore::SetIndexesReadyOperation::perform):
1805         (WebCore::OpenCursorOperation::perform):
1806         (WebCore::CountOperation::perform):
1807         (WebCore::DeleteRangeOperation::perform):
1808         (WebCore::ClearOperation::perform):
1809         (WebCore::DeleteObjectStoreOperation::perform):
1810         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeOperation::perform):
1811         (WebCore::CreateObjectStoreAbortOperation::perform):
1812         (WebCore::DeleteObjectStoreAbortOperation::perform):
1813         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeAbortOperation::perform):
1814         * Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h: Added.
1815         (WebCore::CreateObjectStoreOperation::create):
1816         (WebCore::CreateObjectStoreOperation::CreateObjectStoreOperation):
1817         (WebCore::DeleteObjectStoreOperation::create):
1818         (WebCore::DeleteObjectStoreOperation::DeleteObjectStoreOperation):
1819         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeOperation::create):
1820         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeOperation::VersionChangeOperation):
1821         (WebCore::CreateObjectStoreAbortOperation::create):
1822         (WebCore::CreateObjectStoreAbortOperation::CreateObjectStoreAbortOperation):
1823         (WebCore::DeleteObjectStoreAbortOperation::create):
1824         (WebCore::DeleteObjectStoreAbortOperation::DeleteObjectStoreAbortOperation):
1825         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeAbortOperation::create):
1826         (WebCore::IDBDatabaseBackendLevelDB::VersionChangeAbortOperation::VersionChangeAbortOperation):
1827         (WebCore::CreateIndexOperation::create):
1828         (WebCore::CreateIndexOperation::CreateIndexOperation):
1829         (WebCore::CreateIndexAbortOperation::create):
1830         (WebCore::CreateIndexAbortOperation::CreateIndexAbortOperation):
1831         (WebCore::DeleteIndexOperation::create):
1832         (WebCore::DeleteIndexOperation::DeleteIndexOperation):
1833         (WebCore::DeleteIndexAbortOperation::create):
1834         (WebCore::DeleteIndexAbortOperation::DeleteIndexAbortOperation):
1835         (WebCore::GetOperation::create):
1836         (WebCore::GetOperation::GetOperation):
1837         (WebCore::PutOperation::create):
1838         (WebCore::PutOperation::PutOperation):
1839         (WebCore::SetIndexesReadyOperation::create):
1840         (WebCore::SetIndexesReadyOperation::SetIndexesReadyOperation):
1841         (WebCore::OpenCursorOperation::create):
1842         (WebCore::OpenCursorOperation::OpenCursorOperation):
1843         (WebCore::CountOperation::create):
1844         (WebCore::CountOperation::CountOperation):
1845         (WebCore::DeleteRangeOperation::create):
1846         (WebCore::DeleteRangeOperation::DeleteRangeOperation):
1847         (WebCore::ClearOperation::create):
1848         (WebCore::ClearOperation::ClearOperation):
1849
1850 2013-10-18  Beth Dakin  <bdakin@apple.com>
1851
1852         Rubber-banding is often not smooth on infinitely scrolling websites
1853         https://bugs.webkit.org/show_bug.cgi?id=122985
1854
1855         Reviewed by Simon Fraser.
1856
1857         totalContentsSize is an important part of the calculation for 
1858         maximumScrollPosition(). This function is called repeatedly throughout the curve 
1859         of a rubber-band to determine the stretch amount. To keep the rubber-band 
1860         animation smooth, it should be allowed to finish its animation using the old 
1861         totalContentsSize. This patch does that by adding a new variable, 
1862         m_totalContentsSizeForRubberBand. This value should almost always be equivalent to 
1863         m_totalContentsSize. It will only vary if m_totalContentsSize has changed in the 
1864         middle of a rubber-band, and in that case, it will stay equivalent to the old 
1865         totalContentSize value until the rubber band animation finishes.
1866
1867         * page/scrolling/ScrollingTreeScrollingNode.cpp:
1868         (WebCore::ScrollingTreeScrollingNode::updateBeforeChildren):
1869         * page/scrolling/ScrollingTreeScrollingNode.h:
1870         (WebCore::ScrollingTreeScrollingNode::totalContentsSizeForRubberBand):
1871         (WebCore::ScrollingTreeScrollingNode::setTotalContentsSizeForRubberBand):
1872         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
1873         (WebCore::ScrollingTreeScrollingNodeMac::stopSnapRubberbandTimer):
1874         (WebCore::ScrollingTreeScrollingNodeMac::maximumScrollPosition):
1875
1876 2013-10-18  ChangSeok Oh  <changseok.oh@collabora.com>
1877
1878         Unreviewed build fix for --no-svg option.
1879         m_svgStyle of RenderStyle is guarded with the ENABLE_SVG flag.
1880
1881         * rendering/style/RenderStyle.cpp:
1882         (WebCore::RenderStyle::RenderStyle):
1883
1884 2013-10-17  Brady Eidson  <beidson@apple.com>
1885
1886         Cleanup the Modules group in the WebCore.xcodeproj
1887         https://bugs.webkit.org/show_bug.cgi?id=123009
1888
1889         Rubberstamped by Antti Koivisto.
1890
1891         * WebCore.xcodeproj/project.pbxproj:
1892
1893 2013-10-18  Denis Nomiyama  <d.nomiyama@samsung.com>
1894
1895         [ATK] Fix invalid signal to set objects to an unknown state "layout-complete"
1896         https://bugs.webkit.org/show_bug.cgi?id=122970
1897
1898         Reviewed by Mario Sanchez Prada.
1899
1900         Removed an invalid signal to set objects to an unknown state
1901         layout-complete. This signal was originally generated to notify DRT
1902         and WKTR in case of page load complete.
1903         It was replaced by ATK:AtkDocument:load-complete, which is already sent
1904         by AXObjectCache::frameLoadingEventPlatformNotification().
1905
1906         There is no new test since the changes are covered by existing ones
1907         (e.g. accessibility/loading-iframe-sends-notification.html).
1908
1909         * accessibility/atk/AXObjectCacheAtk.cpp:
1910         (WebCore::AXObjectCache::postPlatformNotification): Removed an invalid
1911         signal to set objects to an unknown state layout-complete.
1912
1913 2013-10-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1914
1915         [GTK] Generate API documentation for GObject DOM bindings
1916         https://bugs.webkit.org/show_bug.cgi?id=121538
1917
1918         Reviewed by Gustavo Noronha Silva.
1919
1920         * bindings/gobject/GNUmakefile.am: Add a explicit rule for all
1921         .symbols file making them depend on the corresponding header file,
1922         since the .symbols file is generated by the bindings generator.
1923
1924 2013-10-18  Mario Sanchez Prada  <mario.prada@samsung.com>
1925
1926         [ATK] Simplify implementation of atk_text_get_text
1927         https://bugs.webkit.org/show_bug.cgi?id=122644
1928
1929         Reviewed by Chris Fleizach.
1930
1931         Simplified code so we only call textUnderElement() directly once
1932         and only when needed. Also, moved the specific code for ColorWell
1933         objects up to the beginning of that function, so we don't do any
1934         additional efforts like computing text ranges in those cases.
1935
1936         No new tests are needed, just to make sure that the current layout
1937         and unit tests are still passing, which they are.
1938
1939         * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
1940         (textForObject): Fixed a issue that got detected while working on
1941         this patch, which was causing a '\n' to be artificially appended
1942         at the end of text controls all the time.
1943         (webkitAccessibleTextGetText): Simplified function.
1944
1945         * accessibility/AccessibilityRenderObject.cpp:
1946         (WebCore::AccessibilityRenderObject::doAXStringForRange): Removed
1947         the check that prevents from pass ranges exceeding the limits of
1948         the element's text, since those will be checked anyway when
1949         calling String::substring().
1950
1951 2013-10-18  Brendan Long  <b.long@cablelabs.com>
1952
1953         [GStreamer][GTK] Add GRefPtr::outPtr()
1954         https://bugs.webkit.org/show_bug.cgi?id=122996
1955
1956         Reviewed by Philippe Normand.
1957
1958         No new tests because this is just simplifying existing code.
1959
1960         * platform/graphics/gstreamer/GRefPtrGStreamer.cpp: Add GRefPtr specialization for GstToc.
1961         * platform/graphics/gstreamer/GRefPtrGStreamer.h: Same.
1962         * platform/graphics/gstreamer/GStreamerGWorld.cpp: Use GRefPtr::outPtr() to simplify code.
1963         (WebCore::GStreamerGWorld::enterFullscreen):
1964         (WebCore::GStreamerGWorld::exitFullscreen):
1965         (WebCore::GStreamerGWorld::removePlatformVideoSink):
1966         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Same.
1967         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfText):
1968         (WebCore::MediaPlayerPrivateGStreamer::newTextSample):
1969         (WebCore::MediaPlayerPrivateGStreamer::processTableOfContents):
1970         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: Same.
1971         (WebCore::MediaPlayerPrivateGStreamerBase::currentVideoSinkCaps):
1972         * platform/network/soup/ResourceHandleSoup.cpp: Same.
1973         (WebCore::HostTLSCertificateSet::computeCertificateHash):
1974
1975 2013-10-17  Alexey Proskuryakov  <ap@apple.com>
1976
1977         Don't add an include for return type of a [Custom] function in generated bindings code
1978         https://bugs.webkit.org/show_bug.cgi?id=122972
1979
1980         Reviewed by Sam Weinig.
1981
1982         * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): Don't.
1983
1984 2013-10-17  Andreas Kling  <akling@apple.com>
1985
1986         CTTE: RenderMathMLSpace always has a MathMLTextElement.
1987         <https://webkit.org/b/122992>
1988
1989         The renderer is never anonymous and always has a corresponding
1990         MathMLTextElement. Overload element() with a tighter return type.
1991
1992         Also marked the class FINAL and made most methods private.
1993
1994         Reviewed by Antti Koivisto.
1995
1996         * rendering/mathml/RenderMathMLSpace.cpp:
1997         (WebCore::RenderMathMLSpace::RenderMathMLSpace):
1998         (WebCore::RenderMathMLSpace::updateFromElement):
1999         * rendering/mathml/RenderMathMLSpace.h:
2000
2001 2013-10-17  Tim Horton  <timothy_horton@apple.com>
2002
2003         PlatformCALayer constructor should take layer type as an argument
2004         https://bugs.webkit.org/show_bug.cgi?id=122915
2005
2006         Reviewed by Anders Carlsson.
2007
2008         No new tests, just restoring old code.
2009
2010         Un-do part of the patch for bug 122915; we can't early-return
2011         in the constructor, there's still more work to do.
2012
2013         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2014         (PlatformCALayerMac::PlatformCALayerMac):
2015
2016 2013-10-17  Alexandru Chiculita  <achicu@adobe.com>
2017
2018         Web Inspector: [CSS Regions] Crash when highlighting a node of a flow with no regions
2019         https://bugs.webkit.org/show_bug.cgi?id=122993
2020
2021         Reviewed by Joseph Pecoraro.
2022
2023         Test: inspector-protocol/dom/highlight-flow-with-no-region.html
2024
2025         Even if a named flow has no regions the content of the flow will still have renderer objects created.
2026         Removed the assumption that all renderers inside a RenderFlowThread will always have an enclosing RenderRegion.
2027
2028         * inspector/InspectorOverlay.cpp:
2029         (WebCore::buildObjectForRendererFragments):
2030         (WebCore::InspectorOverlay::buildObjectForHighlightedNode):
2031
2032 2013-10-17  Andreas Kling  <akling@apple.com>
2033
2034         CTTE: RenderMathMLOperator always has a MathMLElement.
2035         <https://webkit.org/b/122988>
2036
2037         Reviewed by Antti Koivisto.
2038
2039         The renderer is never anonymous and always has a corresponding
2040         MathMLElement. Overload element() with a tighter return type.
2041
2042         Also marked the class FINAL and made most methods private.
2043
2044 2013-10-17  Nico Weber  <thakis@chromium.org>
2045
2046         Fix three bugs in the equals() implementations for css gradients.
2047         https://bugs.webkit.org/show_bug.cgi?id=122987
2048
2049         Reviewed by Andreas Kling.
2050
2051         1. Linear gradients were considered equal if the first gradient has no x and y
2052            position and the second has no x but does have y.
2053         2. Same as 1, for radial gradients. (This doesn't happen in practice as
2054            CSSParser::parseRadialGradient rejects such input, so no test for this case.)
2055         3. Radial gradients without x and y position weren't considered equal even if
2056            they were.
2057
2058         * css/CSSGradientValue.cpp:
2059         (WebCore::CSSLinearGradientValue::equals):
2060         (WebCore::CSSRadialGradientValue::equals):
2061
2062 2013-10-17  Antoine Quint  <graouts@apple.com>
2063
2064         Web Inspector: allow front-end to trigger the system beep sound to signal an error
2065         https://bugs.webkit.org/show_bug.cgi?id=122955
2066
2067         Reviewed by Timothy Hatcher.
2068
2069         New beep() method exposed on InspectorFrontendHost calling into WebCore's systemBeep().
2070
2071         * inspector/InspectorFrontendHost.cpp:
2072         (WebCore::InspectorFrontendHost::beep):
2073         * inspector/InspectorFrontendHost.h:
2074         * inspector/InspectorFrontendHost.idl:
2075
2076 2013-10-17  Anders Carlsson  <andersca@apple.com>
2077
2078         Remove PlatformCAAnimation::supportsValueFunction()
2079         https://bugs.webkit.org/show_bug.cgi?id=122990
2080
2081         Reviewed by Tim Horton.
2082
2083         PlatformCAAnimation::supportsValueFunction always returns true now, so there's no need for it to exist anymore.
2084
2085         * platform/graphics/ca/GraphicsLayerCA.cpp:
2086         (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
2087         * platform/graphics/ca/PlatformCAAnimation.h:
2088         * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
2089         * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
2090
2091 2013-10-17  Andreas Kling  <akling@apple.com>
2092
2093         CTTE: RenderMathMLFenced always has a MathMLInlineContainerElement.
2094         <https://webkit.org/b/122986>
2095
2096         This renderer is never anonymous and always has a corresponding
2097         MathMLInlineContainerElement. Overload element() with a tighter
2098         return type.
2099
2100         Also marked the class FINAL and made most methods private.
2101
2102         Reviewed by Anders Carlsson.
2103
2104 2013-10-17  Myles C. Maxfield  <mmaxfield@apple.com>
2105
2106         Comment AffineTransform::xScale() and yScale() to make their meanings clearer
2107         https://bugs.webkit.org/show_bug.cgi?id=122981
2108
2109         Reviewed by Simon Fraser.
2110
2111         * platform/graphics/transforms/AffineTransform.h:
2112
2113 2013-10-17  Vivek Galatage  <vivek.vg@samsung.com>
2114
2115         Remove unnecessary check for RenderLayer and rename ensureLayer to createLayer in RenderLayerModelObject.
2116         https://bugs.webkit.org/show_bug.cgi?id=122928
2117
2118         Reviewed by Darin Adler.
2119
2120         No new tests due to code refactoring.
2121
2122         RenderLayerModelObject::styleDidChange invokes the ensureLayer() only in case of !layer().
2123         Again checking for layer existence would be deemed redundant in ensureLayer.
2124         Replacing it with an ASSERT(!m_layer) and also renaming it to createLayer.
2125
2126         Blink review URL: https://codereview.chromium.org/27246003/
2127
2128         * rendering/RenderLayerModelObject.cpp:
2129         (WebCore::RenderLayerModelObject::createLayer):
2130         (WebCore::RenderLayerModelObject::styleDidChange):
2131         * rendering/RenderLayerModelObject.h:
2132
2133 2013-10-17  Tim Horton  <timothy_horton@apple.com>
2134
2135         Remove PlatformCALayerMac workaround for <rdar://problem/7390716>
2136         https://bugs.webkit.org/show_bug.cgi?id=122983
2137
2138         Reviewed by Simon Fraser.
2139
2140         Remove a workaround for a bug fixed in Lion.
2141
2142         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2143         (PlatformCALayerMac::setSublayers):
2144         (PlatformCALayerMac::removeAllSublayers):
2145         (PlatformCALayerMac::adoptSublayers):
2146
2147 2013-10-17  Robert Hogan  <robert@webkit.org>
2148
2149         "border-collapse: collapse;" for table removes part of its border (was: Border disappears when close to some elements)
2150         https://bugs.webkit.org/show_bug.cgi?id=8914
2151
2152         Reviewed by David Hyatt.
2153
2154         The table section's side of a collapsed border won't get painted if there are no cells there to paint it. So instead
2155         of relying solely on cells to paint the collapsed border paint the appropriate section of the border if there's no
2156         cell to take care of it.
2157
2158         Tests: fast/table/paint-section-borders-without-cells-rtl.html
2159                fast/table/paint-section-borders-without-cells-vertical-lr-rtl.html
2160                fast/table/paint-section-borders-without-cells-vertical-lr.html
2161                fast/table/paint-section-borders-without-cells-vertical-rl.html
2162                fast/table/paint-section-borders-without-cells.html
2163
2164         * rendering/RenderTableSection.cpp:
2165         (WebCore::RenderTableSection::paintRowGroupBorder):
2166         (WebCore::RenderTableSection::offsetLeftForRowGroupBorder):
2167         (WebCore::RenderTableSection::offsetTopForRowGroupBorder):
2168         (WebCore::RenderTableSection::verticalRowGroupBorderHeight):
2169         (WebCore::RenderTableSection::horizontalRowGroupBorderWidth):
2170         (WebCore::RenderTableSection::paintRowGroupBorderIfRequired):
2171         (WebCore::physicalBorderForDirection):
2172         (WebCore::RenderTableSection::paintObject):
2173         * rendering/RenderTableSection.h:
2174
2175 2013-10-17  Andreas Kling  <akling@apple.com>
2176
2177         StyleRuleFoo::mutableProperties() should return a reference.
2178         <https://webkit.org/b/122962>
2179
2180         The mutableProperties() functions always return objects, so make
2181         them return MutableStylePropertySet&.
2182
2183         Also tweaked the StyleRuleCSSStyleDeclaration constructor to take
2184         references to both the properties and the owner rule since both
2185         are required.
2186
2187         Reviewed by Antti Koivisto.
2188
2189 2013-10-17  Hans Muller  <hmuller@adobe.com>
2190
2191         [CSS Shapes] Improve the performance of image valued shapes with large shape-margins
2192         https://bugs.webkit.org/show_bug.cgi?id=122613
2193
2194         Reviewed by Andreas Kling.
2195
2196         The cost of computing the shape-margin boundary of an image-valued shape-outside
2197         is now proportional to (2 * shape-margin + image.height) rather than
2198         (2 * shape-margin * image.height). The performance improvement comes from skipping
2199         sequences of rounded-rectangle intervals that will not contribute to the final
2200         result. Each non-empty row in the original image contributes one rounded-rectangle
2201         whose corner radius is shape-margin, height is 2 * shape-margin, and width is
2202         2 * shape-margin plus the width of the limits of the intervals on the row.
2203
2204         Renamed private method RasterShape::getIntervals() to intervalsAt() to be a little
2205         more consistent with WebKit naming conventions.
2206
2207         There are no new tests since is just an internal refactoring.
2208
2209         * rendering/shapes/RasterShape.cpp:
2210         (WebCore::MarginIntervalGenerator::set): Changed the x1,x2 parameters to an IntShapeInterval.
2211         (WebCore::RasterShapeIntervals::contains): Refactor for the getIntervals() => intervalsAt() rename.
2212         (WebCore::RasterShapeIntervals::getIntervalX1Values): Ditto.
2213         (WebCore::RasterShapeIntervals::getIncludedIntervals): Ditto.
2214         (WebCore::RasterShapeIntervals::getExcludedIntervals): Ditto.
2215         (WebCore::RasterShapeIntervals::computeShapeMarginIntervals): Performance tuning.
2216         * rendering/shapes/RasterShape.h:
2217         (WebCore::RasterShapeIntervals::intervalsAt): Renamed getIntervals().
2218         (WebCore::RasterShapeIntervals::limitIntervalAt): Return the min/max limits of the intervals at Y.
2219         * rendering/shapes/ShapeInterval.h:
2220         (WebCore::ShapeInterval::isEmpty): Added.
2221
2222 2013-10-15  Philippe Normand  <pnormand@igalia.com>
2223
2224         [GTK] Add URLMediaStream in the build
2225         https://bugs.webkit.org/show_bug.cgi?id=122833
2226
2227         Reviewed by Carlos Garcia Campos.
2228
2229         * GNUmakefile.am: Add mediastream/gstreamer in include directories list.
2230         * GNUmakefile.list.am: Add DOMURLMediaStream files in the build.
2231
2232 2013-10-17  Andreas Kling  <akling@apple.com>
2233
2234         Use PassRef for constructing StylePropertySets.
2235         <https://webkit.org/b/122948>
2236
2237         Make functions that construct StylePropertySets return PassRef
2238         instead of PassRefPtr. Since they never return null, this gets rid
2239         of the extra branch in ~PassRefPtr everywhere.
2240
2241         Also StyleRule* classes now hold a Ref<StylePropertySet>, codifying
2242         the fact that they always have a property set.
2243
2244         Reviewed by Antti Koivisto.
2245
2246 2013-10-17  Andreas Kling  <akling@apple.com>
2247
2248         DataRef<T> should use Ref<T> internally.
2249         <https://webkit.org/b/122953>
2250
2251         DataRef is used to hold RenderStyle substructures, and due to the
2252         way style inheritance is implemented, DataRef will always point to
2253         a live object.
2254
2255         Codify this by making DataRef::m_data a Ref, and making all methods
2256         that create substructure objects return PassRef.
2257
2258         Reviewed by Antti Koivisto.
2259
2260 2013-10-17  Mihnea Ovidenie  <mihnea@adobe.com>
2261
2262         [CSS Regions] Anonymous nested regions
2263         https://bugs.webkit.org/show_bug.cgi?id=119135
2264
2265         Reviewed by David Hyatt.
2266
2267         Tests: fast/regions/table-caption-as-region.html
2268                fast/regions/table-cell-as-region.html
2269
2270         This patch allows any non-replaced block to behave like a region. When an element is styled with the
2271         -webkit-flow-from property, instead of making the renderer a RenderRegion, we let the original
2272         renderer be created the same way and we add a region as an anonymous child for the renderer.
2273         The anonymous block child, modeled by the new RenderNamedFlowFragment class, will be responsible
2274         for the fragmentation of the named flow thread content.
2275
2276         A RenderBlockFlow object will keep a reference to a RenderNamedFlowFragment(RenderRegion) inside its
2277         rare data structures.
2278
2279         Contains code contributed by Catalin Badea.
2280  
2281         * CMakeLists.txt:
2282         * GNUmakefile.list.am:
2283         * WebCore.vcxproj/WebCore.vcxproj:
2284         * WebCore.xcodeproj/project.pbxproj:
2285         * dom/Element.cpp: Changed to take the anonymous region into account.
2286         (WebCore::Element::renderRegion):
2287         (WebCore::Element::webkitGetRegionFlowRanges):
2288         * dom/WebKitNamedFlow.cpp: Ditto.
2289         (WebCore::WebKitNamedFlow::firstEmptyRegionIndex):
2290         (WebCore::WebKitNamedFlow::getRegionsByContent):
2291         (WebCore::WebKitNamedFlow::getRegions):
2292         * inspector/InspectorOverlay.cpp: Take into account the new model for regions, with an anonymous region inside a block.
2293         (WebCore::buildObjectForRegionHighlight):
2294         (WebCore::buildObjectForElementInfo):
2295         * rendering/RenderBlock.cpp:
2296         (WebCore::RenderBlock::computeShapeSize): For a render named flow fragment, there is no need to recompute the shape inside
2297         we can take it from the parent.
2298         (WebCore::RenderBlock::renderName): Make the block that contains a render named flow fragment (region) report RenderRegion.
2299         A future patch that will change this will need to rebase a lot of tests.
2300         * rendering/RenderBlockFlow.cpp:
2301         (WebCore::RenderBlockFlow::insertedIntoTree): Create the anonymous region if needed (change of -webkit-flow-from determines Node reattach).
2302         (WebCore::RenderBlockFlow::willBeDestroyed): Clean-up the anonymous region if necessary.
2303         (WebCore::RenderBlockFlow::clearFloats): Small style change to make sure that check-webkit-style reports 0 failures on RenderBlockFlow.cpp.
2304         (WebCore::RenderBlockFlow::layoutBlock):
2305         (WebCore::RenderBlockFlow::styleDidChange): Update the style of the anonymous region too.
2306         (WebCore::RenderBlockFlow::createRenderNamedFlowFragmentIfNeeded): Helper function to create the anonymous region
2307         and to add it as a child to the block.
2308         (WebCore::RenderBlockFlow::canHaveChildren):
2309         (WebCore::RenderBlockFlow::canHaveGeneratedChildren):
2310         (WebCore::RenderBlockFlow::namedFlowFragmentNeedsUpdate): Force a layout of the anonymous region if the
2311         parent block has percentage height (similar to RenderBlock::updateBlockChildDirtyBitsBeforeLayout)
2312         (WebCore::RenderBlockFlow::updateLogicalHeight): Update the logical height of anonymous region when the height of parent is updated.
2313         (WebCore::RenderBlockFlow::setRenderNamedFlowFragment):
2314         * rendering/RenderBlockFlow.h:
2315         (WebCore::RenderBlockFlow::RenderBlockFlowRareData::RenderBlockFlowRareData):
2316         (WebCore::RenderBlockFlow::renderNamedFlowFragment):
2317         * rendering/RenderElement.cpp:
2318         (WebCore::RenderElement::createFor): Remove the direct creation of RenderRegion objects since they will be
2319         created as anonymous children of block flow objects.
2320         * rendering/RenderElement.h:
2321         (WebCore::RenderElement::generatingElement): Account for anonymous region if necessary.
2322         * rendering/RenderFlowThread.cpp:
2323         (WebCore::RenderFlowThread::adjustedPositionRelativeToOffsetParent): Take anonymous region into account
2324         and use the anonymous region parent offset/border.
2325         * rendering/RenderLayer.cpp:
2326         (WebCore::RenderLayer::shouldBeNormalFlowOnly): Check for style instead of isRenderRegion since
2327         the parent of the anonymous region will get the layer.
2328         * rendering/RenderListItem.cpp:
2329         (WebCore::RenderListItem::insertedIntoTree): Call RenderBlockFlow method instead.
2330         * rendering/RenderNamedFlowFragment.cpp: Added. Model the behaviour of the anonymous region.
2331         Has RenderRegion as a base class.
2332         (WebCore::RenderNamedFlowFragment::RenderNamedFlowFragment):
2333         (WebCore::RenderNamedFlowFragment::~RenderNamedFlowFragment):
2334         (WebCore::RenderNamedFlowFragment::setStyleForNamedFlowFragment):
2335         (WebCore::RenderNamedFlowFragment::styleDidChange):
2336         (WebCore::RenderNamedFlowFragment::shouldHaveAutoLogicalHeight):
2337         (WebCore::RenderNamedFlowFragment::maxPageLogicalHeight):
2338         * rendering/RenderNamedFlowFragment.h: Added.
2339         (WebCore::RenderNamedFlowFragment::isPseudoElementRegion):
2340         (WebCore::RenderNamedFlowFragment::renderName):
2341         (WebCore::toRenderNamedFlowFragment):
2342         * rendering/RenderObject.cpp:
2343         (WebCore::RenderObject::isRenderNamedFlowFragmentContainer):
2344         * rendering/RenderObject.h:
2345         (WebCore::RenderObject::isRenderNamedFlowFragment):
2346         * rendering/RenderRegion.h:
2347         * rendering/RenderTableCaption.cpp: Call RenderBlockFlow method instead.
2348         (WebCore::RenderTableCaption::insertedIntoTree):
2349         * rendering/RenderTreeAsText.cpp:
2350         (WebCore::write):
2351         (WebCore::writeRenderRegionList):
2352         * rendering/shapes/ShapeInfo.h:
2353         (WebCore::ShapeInfo::shapeSize):
2354         * style/StyleResolveTree.cpp:
2355         (WebCore::Style::elementInsideRegionNeedsRenderer):
2356
2357 2013-10-17  Krzysztof Czech  <k.czech@samsung.com>
2358
2359         [EFL] Properly expose tables in accessibility
2360         https://bugs.webkit.org/show_bug.cgi?id=122894
2361
2362         Reviewed by Chris Fleizach.
2363
2364         All tables should exposed as tables.
2365
2366         * accessibility/AccessibilityTable.cpp:
2367         (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
2368         (WebCore::AccessibilityTable::addChildren):
2369         * accessibility/AccessibilityTableColumn.cpp:
2370         (WebCore::AccessibilityTableColumn::computeAccessibilityIsIgnored):
2371         * accessibility/AccessibilityTableHeaderContainer.cpp:
2372         (WebCore::AccessibilityTableHeaderContainer::computeAccessibilityIsIgnored):
2373
2374 2013-10-17  Brendan Long  <b.long@cablelabs.com>
2375
2376         [GStreamer] Too many arguments for format in WebKitWebAudioSourceGStreamer.cpp
2377         https://bugs.webkit.org/show_bug.cgi?id=122932
2378
2379         Reviewed by Philippe Normand.
2380
2381         No new tests because this just fixes a build warning.
2382
2383         * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
2384         (webKitWebAudioSrcLoop): Add another %s for the second part of the pad name.
2385
2386 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2387
2388         Attempt to fix the Windows build after http://trac.webkit.org/changeset/157547.
2389
2390         The relevant conversion doesn't happen implicitly.
2391
2392         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
2393         (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
2394         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
2395
2396 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2397
2398         Attempt to fix the Windows build after http://trac.webkit.org/changeset/157547.
2399
2400         Apparently some Windows code uses setFrame and I missed it.
2401
2402         * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
2403         (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer):
2404         (WebCore::MediaPlayerPrivateFullscreenWindow::wndProc):
2405
2406 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2407
2408         Remote Layer Tree: Complete support for simple layer properties
2409         https://bugs.webkit.org/show_bug.cgi?id=122933
2410
2411         Reviewed by Anders Carlsson.
2412
2413         No new tests, not yet testable.
2414
2415         * platform/graphics/ca/GraphicsLayerCA.cpp:
2416         (WebCore::GraphicsLayerCA::setName):
2417         Don't dump the CALayer pointer if we own a PlatformCALayerRemote.
2418
2419         (WebCore::GraphicsLayerCA::recursiveCommitChanges):
2420         Fix the visible tile wash (my fault!), and make it use setPosition and
2421         setBounds instead of setFrame; while more convenient, it is the only
2422         caller of setFrame, so we'll remove it.
2423
2424         * platform/graphics/ca/PlatformCALayer.h:
2425         (WebCore::PlatformCALayer::isRemote): Added.
2426
2427         * platform/graphics/ca/mac/PlatformCALayerMac.h:
2428         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2429         (nullActionsDictionary):
2430         (toCAFilterType):
2431         (PlatformCALayerMac::synchronouslyDisplayTilesInRect):
2432         (PlatformCALayerMac::playerLayer):
2433         Remove setFrame, fix some pointer sides.
2434
2435         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2436         * platform/graphics/ca/win/PlatformCALayerWin.h:
2437         Remove setFrame.
2438
2439 2013-10-16  Andreas Kling  <akling@apple.com>
2440
2441         Take RenderObjects out of the arena.
2442         <https://webkit.org/b/122895>
2443
2444         Reviewed by Antti Koivisto.
2445
2446         Stop arena-allocating renderers so we can move forward on improving
2447         render tree memory management. This will also allow rendering code
2448         to take advantage of malloc optimizations.
2449
2450         Line boxes and BiDi runs remain in the arena for now.
2451
2452 2013-10-16  Roger Fong  <roger_fong@apple.com>
2453
2454         [Windows] Speculative fix for test, media/video-canvas-drawing-output.html.
2455
2456         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
2457         (WebCore::AVFWrapper::createImageForTimeInRect):
2458
2459 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2460
2461         PlatformCALayer constructor should take layer type as an argument
2462         https://bugs.webkit.org/show_bug.cgi?id=122915
2463
2464         Reviewed by Simon Fraser.
2465
2466         No new tests, just a minor refactoring.
2467
2468         * platform/graphics/ca/PlatformCALayer.h:
2469         (WebCore::PlatformCALayer::PlatformCALayer):
2470         Add a LayerType argument.
2471
2472         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
2473         (PlatformCALayerMac::PlatformCALayerMac):
2474         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
2475         (PlatformCALayerWin::PlatformCALayerWin):
2476         Use the new LayerType argument, and early-return in the case where we
2477         are wrapping a custom PlatformLayer.
2478         Drive-by un-indent the switch in the Mac version.
2479
2480 2013-10-15  Brady Eidson  <beidson@apple.com>
2481
2482         Flesh out the DatabaseProcess (and launch it!)
2483         https://bugs.webkit.org/show_bug.cgi?id=122884
2484
2485         Reviewed by Tim Horton.
2486
2487         * English.lproj/Localizable.strings: Add a localizable string.
2488         * WebCore.xcodeproj/project.pbxproj: Export some more headers.
2489
2490 2013-10-16  Tim Horton  <timothy_horton@apple.com>
2491
2492         RemoteLayerTree: Add support for more layer properties and transform layers
2493         https://bugs.webkit.org/show_bug.cgi?id=122906
2494
2495         Reviewed by Anders Carlsson.
2496
2497         No new tests, this code is not yet testable.
2498
2499         * WebCore.exp.in:
2500         Export some TextStream and TransformationMatrix stuff.
2501
2502 2013-10-16  KyungTae Kim  <ktf.kim@samsung.com>
2503
2504         During editing, merge inline style with overriding other author styles
2505         https://bugs.webkit.org/show_bug.cgi?id=122874
2506
2507         Reviewed by Ryosuke Niwa.
2508
2509         Inline styles need to override other author styles even on DoNotOverrideValues mode.
2510         So, merge and override inline styles to other author styles before merging them to m_mutableStyle.
2511
2512         Test: editing/deleting/merge-div-with-inline-style.html
2513
2514         * editing/EditingStyle.cpp:
2515         (WebCore::EditingStyle::mergeInlineAndImplicitStyleOfElement):
2516
2517 2013-10-16  peavo@outlook.com  <peavo@outlook.com>
2518
2519         Emphasis marks has wrong color.
2520         https://bugs.webkit.org/show_bug.cgi?id=122829
2521
2522         Reviewed by Antti Koivisto.
2523
2524         Tests: fast/text/text-emphasis.html.
2525                fast/text/text-emphasis-expected.html.
2526
2527         Emphasis color should be set as fill color, not stroke color.
2528
2529         * rendering/TextPaintStyle.cpp:
2530         (WebCore::updateGraphicsContext):
2531         * rendering/TextPaintStyle.h:
2532
2533 2013-10-16  Antti Koivisto  <antti@apple.com>
2534
2535         Move code for finding rendered character offset to RenderTextLineBoxes
2536         https://bugs.webkit.org/show_bug.cgi?id=122892
2537
2538         Reviewed by Andreas Kling.
2539
2540         * rendering/RenderText.cpp:
2541         (WebCore::RenderText::countRenderedCharacterOffsets):
2542         (WebCore::RenderText::containsRenderedCharacterOffset):
2543         
2544             Renamed for consistency.
2545
2546         * rendering/RenderTextLineBoxes.cpp:
2547         (WebCore::RenderTextLineBoxes::countCharacterOffsets):
2548         
2549             This used to be Position::renderedPosition.
2550
2551 2013-10-16  Andreas Kling  <akling@apple.com>
2552
2553         RenderElement::removeChild() should take child as a reference.
2554         <https://webkit.org/b/122888>
2555
2556         We can't remove a child without a child to remove.
2557
2558         Reviewed by Antti Koivisto.
2559
2560 2013-10-16  Antti Koivisto  <antti@apple.com>
2561
2562         Move test for contained caret offset to RenderTextLineBoxes
2563         https://bugs.webkit.org/show_bug.cgi?id=122887
2564
2565         Reviewed by Andreas Kling.
2566
2567         * dom/Position.cpp:
2568         (WebCore::Position::renderedOffset):
2569         (WebCore::Position::isCandidate):
2570         
2571             Remove isRenderedText, call RenderText::containsCaretOffset instead.
2572
2573         (WebCore::Position::isRenderedCharacter):
2574         (WebCore::Position::rendersInDifferentPosition):
2575         * dom/Position.h:
2576         * dom/PositionIterator.cpp:
2577         (WebCore::PositionIterator::isCandidate):
2578         * rendering/InlineTextBox.cpp:
2579         * rendering/InlineTextBox.h:
2580         * rendering/RenderText.cpp:
2581         (WebCore::RenderText::containsCharacterOffset):
2582         (WebCore::RenderText::containsCaretOffset):
2583         * rendering/RenderText.h:
2584         * rendering/RenderTextLineBoxes.cpp:
2585         (WebCore::RenderTextLineBoxes::containsOffset):
2586         
2587             Combined implementations of Position::isRenderedCharacter and Position::isRenderedText.
2588
2589         * rendering/RenderTextLineBoxes.h:
2590         
2591             Remove containsCaretOffset(), functionality is now in RenderTextLineBoxes::containsOffset.
2592
2593 2013-10-16  Andreas Kling  <akling@apple.com>
2594
2595         RenderElement::isChildAllowed() should take const references.
2596         <https://webkit.org/b/122870>
2597
2598         Reviewed by Anders Carlsson.
2599
2600         The isChildAllowed() functions expect non-null values to be passed,
2601         so enforce this at compile-time.
2602
2603         Reordered some checks to do bit tests before virtual calls.
2604
2605 2013-10-15  Philippe Normand  <pnormand@igalia.com>
2606
2607         [GStreamer] video info unset if upstream doesn't query allocation
2608         https://bugs.webkit.org/show_bug.cgi?id=122834
2609
2610         Reviewed by Gustavo Noronha Silva.
2611
2612         * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
2613         (webkitVideoSinkRender): If the sink didn't process any allocation
2614         query then use the configured source pad caps and don't rely on
2615         invalid video info.
2616
2617 2013-10-16  Philippe Normand  <pnormand@igalia.com>
2618
2619         [GStreamer] move Logging.h include to GStreamerUtilities.h
2620         https://bugs.webkit.org/show_bug.cgi?id=122886
2621
2622         Reviewed by Gustavo Noronha Silva.
2623
2624         Include Logging.h from GStreamerUtilities.h so the modules using
2625         the LOG_MEDIA macros don't need to bother, especially for Debug builds.
2626
2627         * platform/graphics/gstreamer/GStreamerUtilities.h:
2628         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2629         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
2630
2631 2013-10-16  Mark Rowe  <mrowe@apple.com>
2632
2633         Fix the build after r157478.
2634
2635         Rubber-stamped by Tim Horton.
2636
2637         Due to the way WebCore.exp.in is used, it can't be used to export a differing set of symbols
2638         for different architectures. We often work around this by tweaking code slightly to avoid
2639         needing to export different symbols. However, in this case the symbol name itself encodes an
2640         architecture-specific detail and there's no clear way to avoid the requirement to export it.
2641
2642         To deal with this case we turn to ld's support for wildcards in the symbol export list.
2643
2644         * WebCore.exp.in: Use wildcards in place of the number that represents by how much "this"
2645         should be adjusted when calling through the vtable thunk. Also sort the remainder of the file.
2646         * make-export-file-generator: Don't attempt to verify symbol names that contain wildcard characters.
2647
2648 2013-10-15  Tim Horton  <timothy_horton@apple.com>
2649
2650         Two more exports for 32-bit build fix.
2651         The duality of CGFloat means that we use a different
2652         version of getRGBA (and the cast operator)
2653         on 32-bit systems.
2654
2655         * WebCore.exp.in:
2656
2657 2013-10-15  Tim Horton  <timothy_horton@apple.com>
2658
2659         Another shot at a build fix; apparently these
2660         do need exporting for some reason, but are different
2661         on 32-bit.
2662
2663         * WebCore.exp.in:
2664
2665 2013-10-15  Alexey Proskuryakov  <ap@apple.com>
2666
2667         GenerateIsReachable=ImplContext is confusing
2668         https://bugs.webkit.org/show_bug.cgi?id=122864
2669
2670         Reviewed by Geoffrey Garen.
2671
2672         Renamed to ImplWebGLRenderingContext.
2673
2674         * bindings/scripts/CodeGeneratorJS.pm:
2675         (GenerateImplementation):
2676         * bindings/scripts/IDLAttributes.txt:
2677         * html/canvas/EXTDrawBuffers.idl:
2678         * html/canvas/EXTTextureFilterAnisotropic.idl:
2679         * html/canvas/OESElementIndexUint.idl:
2680         * html/canvas/OESStandardDerivatives.idl:
2681         * html/canvas/OESTextureFloat.idl:
2682         * html/canvas/OESTextureHalfFloat.idl:
2683         * html/canvas/OESVertexArrayObject.idl:
2684         * html/canvas/WebGLCompressedTextureATC.idl:
2685         * html/canvas/WebGLCompressedTexturePVRTC.idl:
2686         * html/canvas/WebGLCompressedTextureS3TC.idl:
2687         * html/canvas/WebGLDebugRendererInfo.idl:
2688         * html/canvas/WebGLDebugShaders.idl:
2689         * html/canvas/WebGLDepthTexture.idl:
2690         * html/canvas/WebGLLoseContext.idl:
2691
2692         * WebCore.xcodeproj/project.pbxproj: While at it, added OESElementIndexUint.idl
2693         to Xcode project.
2694
2695 2013-10-15  Tim Horton  <timothy_horton@apple.com>
2696
2697         Unreviewed build fix; I don't know how to export.
2698         This may not help.
2699
2700         * WebCore.exp.in:
2701
2702 2013-10-15  Dean Jackson  <dino@apple.com>
2703
2704         Add ENABLE_WEB_ANIMATIONS flag
2705         https://bugs.webkit.org/show_bug.cgi?id=122871
2706
2707         Reviewed by Tim Horton.
2708
2709         Eventually might be http://dev.w3.org/fxtf/web-animations/
2710         but this is just engine-internal work at the moment.
2711
2712         * Configurations/FeatureDefines.xcconfig:
2713
2714 2013-10-15  Tim Horton  <timothy_horton@apple.com>
2715
2716         Add a PlatformCALayer subclass that proxies its property changes across the process boundary
2717         https://bugs.webkit.org/show_bug.cgi?id=122773
2718
2719         Reviewed by Anders Carlsson.
2720
2721         No new tests, the new drawing area is not yet testable.
2722
2723         * WebCore.exp.in:
2724         Export lots of GraphicsLayerCA stuff so we can inherit from it in WebKit2.
2725
2726         * WebCore.xcodeproj/project.pbxproj:
2727         Make PlatformCAFilters.h a private header.
2728
2729         * platform/graphics/GraphicsLayer.h:
2730         (WebCore::GraphicsLayer::initialize):
2731         * platform/graphics/ca/GraphicsLayerCA.cpp:
2732         (WebCore::GraphicsLayer::create):
2733         (WebCore::GraphicsLayerCA::GraphicsLayerCA):
2734         (WebCore::GraphicsLayerCA::initialize):
2735         * platform/graphics/ca/GraphicsLayerCA.h:
2736         Defer creation of the main PlatformCALayer until just after the constructor is finished
2737         so that GraphicsLayerCA subclasses can successfully override createPlatformCALayer.
2738
2739         * platform/graphics/ca/PlatformCALayer.h:
2740         (WebCore::PlatformCALayer::platformLayer):
2741         Make platformLayer virtual so that subclasses which don't have PlatformLayers can override.
2742
2743 2013-10-14  Ryosuke Niwa  <rniwa@webkit.org>
2744
2745         REGRESSION: Crash in XMLDocumentParser::startElementNs
2746         https://bugs.webkit.org/show_bug.cgi?id=122817
2747
2748         Reviewed by Darin Adler.
2749
2750         Exit early in startElementNs when listeners and handlers of synchronous events such as load event
2751         removes the inserted node inside parserAppendChild.
2752
2753         Test: fast/parser/xhtml-synchronous-detach-crash.html
2754
2755         * xml/parser/XMLDocumentParserLibxml2.cpp:
2756         (WebCore::XMLDocumentParser::startElementNs):
2757
2758 2013-10-15  Joseph Pecoraro  <pecoraro@apple.com>
2759
2760         Web Inspector: Remove old frontend localizedStrings.js
2761         https://bugs.webkit.org/show_bug.cgi?id=122846
2762
2763         Reviewed by Timothy Hatcher.
2764
2765         * Configurations/WebCore.xcconfig:
2766         * English.lproj/localizedStrings.js: Removed.
2767         * WebCore.xcodeproj/project.pbxproj:
2768         Remove the file and references to it. We no longer need to exclude
2769         localizedString.js from some builds.
2770
2771 2013-10-15  Joseph Pecoraro  <pecoraro@apple.com>
2772
2773         Web Inspector: Remove Windows old front-end related code
2774         https://bugs.webkit.org/show_bug.cgi?id=122845
2775
2776         Reviewed by Brent Fulgham.
2777
2778         * WebCore.vcxproj/copyWebCoreResourceFiles.cmd:
2779
2780 2013-10-15  Morten Stenshorne  <mstensho@opera.com>
2781
2782         Add support for the column-fill property
2783         https://bugs.webkit.org/show_bug.cgi?id=117693
2784
2785         Reviewed by David Hyatt.
2786
2787         This is only supported in the (new) region based multicol implementation.
2788
2789         With column-fill support, a lot of multicol tests needed an update.
2790         The old implementation behaved as if column-fill were 'auto', but the
2791         initial value is 'balance', so now we need to be explicit about that.
2792         For auto-height tests it doesn't really matter - such multicols are always
2793         balanced anyway.
2794
2795         Tests: fast/multicol/newmulticol/fixed-height-fill-auto.html
2796                fast/multicol/newmulticol/fixed-height-fill-balance.html
2797
2798         * css/CSSComputedStyleDeclaration.cpp:
2799         (WebCore::ComputedStyleExtractor::propertyValue):
2800         * css/CSSParser.cpp:
2801         (WebCore::isValidKeywordPropertyAndValue):
2802         (WebCore::isKeywordPropertyID):
2803         (WebCore::CSSParser::parseValue):
2804         * css/CSSPrimitiveValueMappings.h:
2805         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2806         (WebCore::CSSPrimitiveValue::operator ColumnFill):
2807         * css/CSSPropertyNames.in:
2808         * css/CSSValueKeywords.in:
2809         * css/DeprecatedStyleBuilder.cpp:
2810         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
2811         * rendering/RenderMultiColumnBlock.h:
2812         * rendering/style/RenderStyle.h:
2813         * rendering/style/RenderStyleConstants.h:
2814         * rendering/style/StyleMultiColData.cpp:
2815         (WebCore::StyleMultiColData::StyleMultiColData):
2816         (WebCore::StyleMultiColData::operator==):
2817         * rendering/style/StyleMultiColData.h:
2818
2819 2013-10-15  Andreas Kling  <akling@apple.com>
2820
2821         Skip unnecessary null check in RenderText::textLength().
2822         <https://webkit.org/b/122841>
2823
2824         Reviewed by Antti Koivisto.
2825
2826         RenderText will never have a null String in m_text, so textLength()
2827         can grab at the StringImpl directly, avoiding a null check.
2828
2829 2013-10-15  Andreas Kling  <akling@apple.com>
2830
2831         FontGenericFamilies should not be ref-counted.
2832         <https://webkit.org/b/122835>
2833
2834         Reviewed by Anders Carlsson.
2835
2836         FontGenericFamilies is singly-owned by Settings.
2837
2838 2013-10-15  Zoltan Horvath  <zoltan@webkit.org>
2839
2840         [CSS Shapes] Move RenderBlock::layoutShapeInsideInfo into RenderBlock.cpp
2841         http://bugs.webkit.org/show_bug.cgi?id=122843
2842
2843         Reviewed by Oliver Hunt.
2844
2845         Historically, layoutShapeInsideInfo was a static function in RenderBlockLineLayout, then it has changed to be a member of RenderBlock,
2846         but at that time it hasn't been moved to RenderBlock.cpp. This patch moves it into RenderBlock.cpp next to the Shapes functions. I removed
2847         an unnecessary CSS_SHAPES #ifdef as well from RenderBlock.cpp.
2848
2849         No new tests, no behavior change.
2850
2851         * rendering/RenderBlock.cpp:
2852         (WebCore::RenderBlock::markShapeInsideDescendantsForLayout):
2853         (WebCore::RenderBlock::layoutShapeInsideInfo):
2854         * rendering/RenderBlockLineLayout.cpp:
2855
2856 2013-10-15  peavo@outlook.com  <peavo@outlook.com>
2857
2858         [WinCairo] Build fails.
2859         https://bugs.webkit.org/show_bug.cgi?id=122830
2860
2861         Reviewed by Brent Fulgham.
2862
2863         * platform/network/NetworkStorageSessionStub.cpp:
2864         (WebCore::NetworkStorageSession::createPrivateBrowsingSession): Update to new return type.
2865
2866 2013-10-15  Andreas Kling  <akling@apple.com>
2867
2868         FileIconLoader should not be ref-counted.
2869         <https://webkit.org/b/122827>
2870
2871         FileIconLoader is singly-owned by FileInputType.
2872
2873         Reviewed by Antti Koivisto.
2874
2875 2013-10-15  Andreas Kling  <akling@apple.com>
2876
2877         RenderText should cache RenderStyle in locals more.
2878         <https://webkit.org/b/122823>
2879
2880         Reviewed by Antti Koivisto.
2881
2882         Now that fetching the RenderStyle has to go through the parent,
2883         we should avoid unnecessary loads by caching style() in a local.
2884
2885 2013-10-15  Csaba Osztrogonác  <ossy@webkit.org>
2886
2887         Move PlatformCertificateInfo to WebCore and make the ResourceResponse primitives work in terms of that platform agnostic object
2888         https://bugs.webkit.org/show_bug.cgi?id=118520
2889
2890         Reviewed by Anders Carlsson.
2891
2892         Added PlatformCertificateInfo getter and setter to ResourceErrorBase
2893         and ResourceResponseBase so that getting and setting certificates
2894         becomes cross platform.
2895
2896         Changed the existing platform specific certificate getters and setters
2897         of ResourceError and ResourceResponse to use the
2898         PlatformCertificateInfo member.
2899
2900         Original patch by Kwang Yul Seo  <skyul@company100.net>
2901
2902         The following things were fixed by Csaba Osztrogonác:
2903         - trivial conflicts resolved in WebCore.exp.in, project.pbxproj, NetworkResourceLoader.cpp,
2904           WebPageProxy.h, WebFrameLoaderClient.cpp and PlatformEfl.cmake.
2905         - trivial fix in the new AsynchronousNetworkLoaderClient.cpp
2906         - style fixed (NULL -> 0 and smaller indentation in WebCoreArgumentCodersSoup.cpp)
2907         - obsolete change removed from NetworkResourceLoader.cpp
2908         - unneeded typo removed from ResourceHandleSoup.cpp
2909         - Fixed the if guard of including RetainPtr.h in PlatformCertificateInfo.h to make Windows build happy.
2910         - add PlatformCertificateInfoCFNet.cpp with empty constructor and destructor to make Windows build happy.
2911         - resolved conflict in Source/WebCore/WebCore.xcodeproj/project.pbxproj after r156488
2912         - renamed KURL to URL after r156550.
2913         - removed obsolete Qt changes
2914         - added back initializers for m_soupFlags
2915         - included gio/gio.h instead of libsoup/soup.h in PlatformCertificateInfo.h
2916         - removed unused class forward declarations and includes
2917
2918         * GNUmakefile.list.am:
2919         * PlatformEfl.cmake:
2920         * Target.pri:
2921         * WebCore.exp.in:
2922         * WebCore.vcxproj/WebCore.vcxproj:
2923         * WebCore.vcxproj/WebCore.vcxproj.filters:
2924         * WebCore.xcodeproj/project.pbxproj:
2925         * platform/network/PlatformCertificateInfo.h: Renamed from Source/WebKit2/Shared/soup/PlatformCertificateInfo.h.
2926         (WebCore::PlatformCertificateInfo::certificate):
2927         (WebCore::PlatformCertificateInfo::setCertificate):
2928         (WebCore::PlatformCertificateInfo::tlsErrors):
2929         (WebCore::PlatformCertificateInfo::setTLSErrors):
2930         * platform/network/ResourceErrorBase.h:
2931         (WebCore::ResourceErrorBase::platformCertificateInfo):
2932         (WebCore::ResourceErrorBase::setPlatformCertificateInfo):
2933         * platform/network/ResourceResponseBase.h:
2934         (WebCore::ResourceResponseBase::platformCertificateInfo):
2935         (WebCore::ResourceResponseBase::setPlatformCertificateInfo):
2936         * platform/network/cf/ResourceResponse.h:
2937         * platform/network/mac/PlatformCertificateInfoMac.mm: Renamed from Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm.
2938         (WebCore::PlatformCertificateInfo::PlatformCertificateInfo):
2939         (WebCore::PlatformCertificateInfo::~PlatformCertificateInfo):
2940         (WebCore::PlatformCertificateInfo::setCertificateChain):
2941         (WebCore::PlatformCertificateInfo::certificateChain):
2942         (WebCore::PlatformCertificateInfo::dump):
2943         * platform/network/mac/ResourceResponseMac.mm:
2944         (WebCore::ResourceResponse::setCertificateChain):
2945         (WebCore::ResourceResponse::certificateChain):
2946         * platform/network/soup/PlatformCertificateInfoSoup.cpp:
2947         (WebCore::PlatformCertificateInfo::PlatformCertificateInfo):
2948         (WebCore::PlatformCertificateInfo::~PlatformCertificateInfo):
2949         * platform/network/soup/ResourceError.h:
2950         (WebCore::ResourceError::ResourceError):
2951         (WebCore::ResourceError::tlsErrors):
2952         (WebCore::ResourceError::setTLSErrors):
2953         (WebCore::ResourceError::certificate):
2954         (WebCore::ResourceError::setCertificate):
2955         * platform/network/soup/ResourceErrorSoup.cpp:
2956         (WebCore::ResourceError::platformCopy):
2957         * platform/network/soup/ResourceResponse.h:
2958         (WebCore::ResourceResponse::ResourceResponse):
2959         (WebCore::ResourceResponse::soupMessageCertificate):
2960         (WebCore::ResourceResponse::setSoupMessageCertificate):
2961         (WebCore::ResourceResponse::soupMessageTLSErrors):
2962         (WebCore::ResourceResponse::setSoupMessageTLSErrors):
2963         * platform/network/soup/ResourceResponseSoup.cpp:
2964         (WebCore::ResourceResponse::toSoupMessage):
2965         (WebCore::ResourceResponse::updateFromSoupMessage):
2966
2967 2013-10-15  Ryosuke Niwa  <rniwa@webkit.org>
2968
2969         Remove redundant Document::getElementById
2970         https://bugs.webkit.org/show_bug.cgi?id=122813
2971
2972         Reviewed by Andreas Kling.
2973
2974         Merge https://chromium.googlesource.com/chromium/blink/+/4e8f1c5316415614b84370c602beae4a1008299f
2975
2976         This function simply calls virtual TreeScope::getElementById and Document inherits from TreeScope.
2977
2978         * WebCore.exp.in:
2979         * dom/Document.cpp:
2980         * dom/Document.h:
2981
2982 2013-10-14  Santosh Mahto  <santosh.ma@samsung.com>
2983
2984         in safari,the background-color of input[type="search"] can't work
2985         https://bugs.webkit.org/show_bug.cgi?id=119967
2986
2987         Reviewed by Ryosuke Niwa.
2988
2989         When input type=search is styled with css background property then
2990         it does not change the background-color of field. Its happening becasue
2991         search field is not counted as styled control. Thus theme ignores the 
2992         css background property. With this patch search field is also counted as 
2993         styled control so background property reflects on search field.
2994
2995         Test: fast/forms/search/search-field-background-color.html
2996
2997         * rendering/RenderTheme.cpp:
2998         (WebCore::RenderTheme::isControlStyled):Now search field is also
2999         a styled control.
3000
3001 2013-10-14  Ryosuke Niwa  <rniwa@webkit.org>
3002
3003         EventPath::updateTouchLists traverses through EventPath thrice
3004         https://bugs.webkit.org/show_bug.cgi?id=122804
3005
3006         Reviewed by Benjamin Poulain.
3007
3008         Instead of traversing through EventPath for each TouchList, traverse through TouchList for every EventContext.
3009         This paves our way to have one-pass traversal over EventPath, and evetually to remove EventContext altogether.
3010
3011         This change should also improve the cache hit rate since all Touch objects tend to be allocated at the same time
3012         but this performance improvement is probably not observable.
3013
3014         * dom/EventContext.h:
3015         * dom/EventDispatcher.cpp:
3016         (WebCore::EventRelatedNodeResolver::EventRelatedNodeResolver): Added a new constructor that takes Touch and
3017         and TouchListType. We need to store these two values in order to update EventContext later.
3018         (WebCore::EventRelatedNodeResolver::touch): Added,
3019         (WebCore::EventRelatedNodeResolver::touchListType): Added.
3020         (WebCore::addRelatedNodeResolversForTouchList): Extracted from updateTouchListsInEventPath.
3021         (WebCore::EventPath::updateTouchLists): Moved the loop over m_path here. Notice that the outer loop iterates
3022         over m_path instead of touchList as done in updateTouchListsInEventPath. The inner loop goes through resolvers
3023         and adds Touch objects each EventContext as needed.
3024
3025 2013-10-14  Alexey Proskuryakov  <ap@apple.com>
3026
3027         Don't generate a wasteful isObservable check in isReachableFromOpaqueRoots
3028         https://bugs.webkit.org/show_bug.cgi?id=122802
3029
3030         Reviewed by Mark Hahnenberg.
3031
3032         * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): Don't.
3033
3034         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
3035         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
3036         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
3037         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
3038         * bindings/scripts/test/JS/JSTestException.cpp:
3039         * bindings/scripts/test/JS/JSTestInterface.cpp:
3040         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
3041         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
3042         * bindings/scripts/test/JS/JSTestObj.cpp:
3043         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
3044         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
3045         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
3046         * bindings/scripts/test/JS/JSattribute.cpp:
3047         * bindings/scripts/test/JS/JSreadonly.cpp:
3048         Updated results.
3049
3050 2013-10-14  Samuel White  <samuel_white@apple.com>
3051
3052         AX: fieldset should have GroupRole and legend should be description.
3053         https://bugs.webkit.org/show_bug.cgi?id=122534
3054
3055         Reviewed by Chris Fleizach.
3056
3057         Changes fieldset to derive AXDescription from legend if one is available. Added
3058         convenience method to AccessibilityObject to fetch element if available.
3059
3060         Test: accessibility/fieldset-element.html
3061
3062         * accessibility/AccessibilityNodeObject.cpp:
3063         (WebCore::AccessibilityNodeObject::canHaveChildren):
3064         (WebCore::AccessibilityNodeObject::alternativeText):
3065         * accessibility/AccessibilityObject.cpp:
3066         (WebCore::AccessibilityObject::element):
3067         (WebCore::AccessibilityObject::isARIAHidden):
3068         (WebCore::AccessibilityObject::isDOMHidden):
3069         (WebCore::AccessibilityObject::defaultObjectInclusion):
3070         * accessibility/AccessibilityObject.h:
3071         (WebCore::AccessibilityObject::isHidden):
3072         * accessibility/AccessibilitySlider.cpp:
3073         (WebCore::AccessibilitySlider::getAttribute):
3074         (WebCore::AccessibilitySlider::valueForRange):
3075         (WebCore::AccessibilitySlider::maxValueForRange):
3076         (WebCore::AccessibilitySlider::minValueForRange):
3077         (WebCore::AccessibilitySlider::setValue):
3078         (WebCore::AccessibilitySlider::inputElement):
3079         * accessibility/AccessibilitySlider.h:
3080         * accessibility/mac/AccessibilityObjectMac.mm:
3081         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
3082         * html/HTMLFieldSetElement.cpp:
3083         (WebCore::HTMLFieldSetElement::legend):
3084         * html/HTMLFieldSetElement.h:
3085
3086 2013-10-14  Roger Fong  <roger_fong@apple.com>
3087
3088         Windows select element doesn't draw RTL properly.
3089         https://bugs.webkit.org/show_bug.cgi?id=122785.
3090
3091         Reviewed by Brent Fulgham.
3092
3093         Covered by fast/text/international/pop-up-button-text-alignment-and-direction.html.
3094
3095         Problems include the popup items not drawing on the right hand side and 
3096         not respecting the direction or the directional override styling of the option.
3097         The selected element (drawn in the actual select element) also doesn't respect 
3098         the style settings of the selected menu option.
3099
3100         * platform/win/PopupMenuWin.cpp:
3101         (WebCore::PopupMenuWin::paint):
3102
3103 2013-10-14  Roger Fong  <roger_fong@apple.com>
3104
3105         [Windows] Unreviewed build fix.
3106
3107         * WebCore.vcxproj/WebCoreCommon.props:
3108
3109 2013-10-14  Ryosuke Niwa  <rniwa@webkit.org>
3110
3111         Crash in WebCore::BidiResolver<WebCore::InlineIterator, WebCore::BidiRun>::createBidiRunsForLine
3112         https://bugs.webkit.org/show_bug.cgi?id=122776
3113
3114         Reviewed by Darin Adler.
3115
3116         Merge https://chromium.googlesource.com/chromium/blink/+/aca89bc4d984705a1f94b623dae0ab03e239a248
3117
3118         Fix modification of whitespace endpoints to not assume it's operating on RenderTexts
3119
3120         During line layout, we use midpoints to identify RenderObjects, or parts of
3121         RenderObjects, that don't need InlineBoxes, usually because of collapsed whitespace.
3122
3123         Prior to actually creating BidiRuns (the precursor to InlineBoxes), we use
3124         checkMidpoints to fix up our lineMidpointState to handle the case where we start
3125         ignoring spaces in our line, but don't stop until somewhere on the following line.
3126         Previously, this function assumed that the final midpoint (called an endpoint)
3127         was a RenderText, but this assumption is wrong if we have a beginning midpoint
3128         created by shouldSkipWhitespaceAfterStartObject (which handles inlines and list
3129         markers) and no endpoint on that line. In that case, we'd instead adjust the
3130         position backwards on the beginning midpoint, which would cause us to fail to
3131         create an InlineBox for the inline or list marker. In the new test added, this
3132         would actually trigger a crash due to an assumption when visually re-ordering
3133         BidiRuns that a non-empty line would actually contain at least one such run.
3134
3135         Test: fast/text/whitespace/whitespace-and-margin-wrap-after-list-marker-crash.html
3136
3137         * rendering/RenderBlockLineLayout.cpp:
3138         (WebCore::checkMidpoints):
3139
3140 2013-10-14  Ryosuke Niwa  <rniwa@webkit.org>
3141
3142         Assertion failure in Range::processContentsBetweenOffsets
3143         https://bugs.webkit.org/show_bug.cgi?id=122777
3144
3145         Reviewed by Darin Adler.
3146
3147         Merge https://chromium.googlesource.com/chromium/blink/+/c15de182774c7859c20d97126eb844ae97b792a4
3148
3149         This patch changes ASSERT statements for checking |endOffset| inbound in Range::processContentsBetweenOffsets()
3150         to limit |endOffset|. This is necessary when DOMNodeRemovedFromDocument event handler splits text nodes,
3151         Range::insertNode() on text node, in the range calling Range::deleteContents().
3152
3153         Test: fast/dom/Range/range-delete-contents-mutation-event-crash.html
3154
3155         * dom/Range.cpp:
3156         (WebCore::Range::processContentsBetweenOffsets):
3157
3158 2013-10-14  Alexey Proskuryakov  <ap@apple.com>
3159
3160         Add an empty window.crypto.webkitSubtle
3161         https://bugs.webkit.org/show_bug.cgi?id=122778
3162
3163         Reviewed by Mark Hahnenberg.
3164
3165         Tests: security/crypto-subtle-gc-2.html
3166                security/crypto-subtle-gc-3.html
3167                security/crypto-subtle-gc.html
3168
3169         * DerivedSources.make: Process SubtleCrypto.idl.
3170
3171         * crypto: Added.
3172         * WebCore.xcodeproj/project.pbxproj:
3173         * CMakeLists.txt:
3174         * DerivedSources.make:
3175         * GNUmakefile.am:
3176         * GNUmakefile.list.am:
3177         * WebCore.vcxproj/WebCore.vcxproj.filters:
3178
3179         * bindings/js/JSSubtleCryptoCustom.cpp: Added. Empty for now, but we'll certainly
3180         need custom bindings code here.
3181
3182         * crypto/SubtleCrypto.cpp: Added.
3183         (WebCore::SubtleCrypto::SubtleCrypto):
3184         (WebCore::SubtleCrypto::document):
3185         * crypto/SubtleCrypto.h: Added.        
3186         * crypto/SubtleCrypto.idl: Added.
3187         * page/Crypto.cpp:
3188         (WebCore::Crypto::subtle):
3189         * page/Crypto.h:
3190         * page/Crypto.idl:
3191
3192 2013-10-14  Nick Diego Yamane  <nick.yamane@openbossa.org>
3193
3194         Remove GestureEvent leftovers from WebCore
3195         <https://webkit.org/b/122780>
3196
3197         Reviewed by Anders Carlsson.
3198
3199         - Removed some remaining references to PlatformGestureEvent, supposed to
3200           be removed by r157316
3201         - TOUCH_ADJUSTMENT should be reworked after GestureEvent feature
3202           removal
3203
3204         * page/EventHandler.cpp:
3205         (WebCore::EventHandler::bestZoomableAreaForTouchPoint):
3206         * page/EventHandler.h:
3207         * platform/PlatformEvent.h:
3208         * platform/ScrollAnimatorNone.cpp:
3209         * platform/ScrollableArea.h:
3210
3211 2013-10-14  Nick Diego Yamane  <nick.yamane@openbossa.org>
3212
3213         Build fix after r157366
3214         http://bugs.webkit.org/show_bug.cgi?id=122783
3215
3216         When TOUCH_AJUSTMENT is enabled build fails due to some
3217         refactors in TextRender functions.
3218
3219         Reviewed by Anders Carlsson.
3220
3221         * page/TouchAdjustment.cpp:
3222         (WebCore::TouchAdjustment::appendContextSubtargetsForNode):
3223
3224 2013-10-14  Alexandru Chiculita  <achicu@adobe.com>
3225
3226         The content of the DOM panel for iframes is not updated until the "onload" event
3227         https://bugs.webkit.org/show_bug.cgi?id=122653
3228
3229         Reviewed by Darin Adler.
3230
3231         Test: http/tests/inspector-protocol/loading-iframe-document-node.html
3232
3233         Renamed InspectorDOMAgent::loadEventFired to InspectorDOMAgent::didCommitLoad and moved the call site
3234         from InspectorInstrumentation::loadEventFiredImpl to InspectorInstrumentation::didCommitLoadImpl.
3235         This is to make sure that it will invalidate the content of the iframe as soon as the frame navigates
3236         to a different page. This way the new node can be retrieved as soon as the page has some content, and
3237         not just when the page is fully loaded.
3238
3239         * inspector/InspectorDOMAgent.cpp:
3240         (WebCore::InspectorDOMAgent::didCommitLoad): Renamed from loadEventFired, as it is now called from
3241         didCommitLoadImpl instead.
3242         (WebCore::InspectorDOMAgent::frameDocumentUpdated): Updated comment to point to the new function name.
3243         * inspector/InspectorDOMAgent.h:
3244         * inspector/InspectorInstrumentation.cpp:
3245         (WebCore::InspectorInstrumentation::loadEventFiredImpl): Removed call do InspectorDOMAgent.loadEventFired.
3246         (WebCore::InspectorInstrumentation::didCommitLoadImpl): Added call to InspectorDOMAgent.didCommitLoad.
3247
3248 2013-10-14  Roger Fong  <roger_fong@apple.com>
3249
3250         https://bugs.webkit.org/show_bug.cgi?id=122774.
3251         <rdar://problem/6138855>.
3252
3253         Reviewed by Brent Fulgham.
3254
3255         Add a field to keep track of hovered over index.
3256         Use index to determine whether or not to use the existing selected index on the mouse down event.
3257
3258         * platform/win/PopupMenuWin.cpp:
3259         (WebCore::PopupMenuWin::PopupMenuWin):
3260         (WebCore::PopupMenuWin::show):
3261         (WebCore::PopupMenuWin::wndProc):
3262         * platform/win/PopupMenuWin.h:
3263
3264 2013-10-14  Tim Horton  <timothy_horton@apple.com>
3265
3266         Virtualize PlatformCALayer
3267         https://bugs.webkit.org/show_bug.cgi?id=122672
3268
3269         Reviewed by Anders Carlsson.
3270
3271         No new tests, just a refactoring.
3272
3273         * WebCore.exp.in:
3274         setGeometryFlipped is on PlatformCALayerMac now.
3275
3276         * WebCore.vcxproj/WebCore.vcxproj:
3277         * WebCore.vcxproj/WebCore.vcxproj.filters:
3278         Add PlatformCALayer.cpp, PlatformCALayerWin.h, and let VS do its
3279         thing with some other files.
3280
3281         * WebCore.xcodeproj/project.pbxproj:
3282         Add PlatformCALayer.cpp and PlatformCALayerMac.h.
3283
3284         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
3285         (WebCore::AVFWrapper::platformLayer):
3286         Make a PlatformCALayerWin explicitly.
3287
3288         * platform/graphics/ca/GraphicsLayerCA.cpp:
3289         (WebCore::GraphicsLayerCA::createPlatformCALayer):
3290         Added. Decide whether to make a PlatformCALayer{Mac, Win} based on the platform.
3291         Later, we will decide between other subclasses based on other things.
3292
3293         (WebCore::GraphicsLayerCA::filtersCanBeComposited):
3294         Do the same thing for filtersCanBeComposited.
3295
3296         (WebCore::GraphicsLayerCA::GraphicsLayerCA):
3297         (WebCore::GraphicsLayerCA::setContentsToSolidColor):
3298         (WebCore::GraphicsLayerCA::setContentsToMedia):
3299         (WebCore::GraphicsLayerCA::setContentsToCanvas):
3300         (WebCore::GraphicsLayerCA::recursiveCommitChanges):
3301         (WebCore::GraphicsLayerCA::ensureStructuralLayer):
3302         (WebCore::GraphicsLayerCA::updateContentsImage):
3303         (WebCore::GraphicsLayerCA::updateContentsRects):
3304         (WebCore::GraphicsLayerCA::swapFromOrToTiledLayer):
3305         Use createPlatformCALayer instead of PlatformCALayer::create.
3306
3307         * platform/graphics/ca/mac/PlatformCAFiltersMac.mm:
3308         For now, use the PlatformCALayerMac version of filtersCanBeComposited,
3309         since this code is heavily tied to having CALayers in the Web process.
3310
3311         * platform/graphics/ca/GraphicsLayerCA.h:
3312         Include PlatformCALayer.h here so we can get the LayerType enum.
3313         (NOTE-to-be-removed: if there's a better way to do this, I'm open to
3314         suggestions; I couldn't puzzle out nested 'enum class' stuff).
3315
3316         Add the createPlatformCALayers.
3317
3318         * platform/graphics/ca/PlatformCAAnimation.h:
3319         Friend the subclasses too.
3320
3321         * platform/graphics/ca/PlatformCALayer.cpp: Added.
3322         (WebCore::PlatformCALayer::~PlatformCALayer):
3323         Pull the shared part of the PlatformCALayer destructor out.
3324
3325         * platform/graphics/ca/PlatformCALayer.h:
3326         (WebCore::PlatformCALayer::platformLayer):
3327         (WebCore::PlatformCALayer::setOwner):
3328         (WebCore::PlatformCALayer::PlatformCALayer):
3329         Virtualize all the things. Move platform specific members to their new subclasses.
3330
3331         * platform/graphics/ca/mac/PlatformCALayerMac.h: Added.
3332         * platform/graphics/ca/mac/PlatformCALayerMac.mm:
3333         Move the PLATFORM(MAC) implementations from PlatformCALayer to PlatformCALayerMac.
3334
3335         (PlatformCALayer::platformCALayer):
3336         The platformCALayer lookup function is static on PlatformCALayer, so it can't
3337         be moved to the subclasses. It might be a good idea in the future to move towards
3338         a platform-independent mechanism for looking up PlatformCALayers from PlatformLayers,
3339         and to avoid needing to do this as often as we do now.
3340
3341         * platform/graphics/ca/win/CACFLayerTreeHost.cpp:
3342         (WebCore::CACFLayerTreeHost::CACFLayerTreeHost):
3343         * platform/graphics/ca/win/PlatformCALayerWin.cpp:
3344         Move the PLATFORM(WIN) implementations from PlatformCALayer to PlatformCALayerWin.
3345
3346         (PlatformCALayerWin::create):
3347         (PlatformCALayer::platformCALayer):
3348
3349         * platform/graphics/ca/win/PlatformCALayerWin.h: Added.
3350
3351         * platform/graphics/win/GraphicsContext3DWin.cpp:
3352         (WebCore::GraphicsContext3D::GraphicsContext3D):
3353         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
3354         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie):
3355         Include PlatformCALayerWin.h and explicitly make PlatformCALayerWins here.
3356
3357 2013-10-14  Hugo Parente Lima  <hugo.lima@openbossa.org>
3358
3359         [cmake] MediaControlsApple is used only by Efl port and is on CMakeLists.txt
3360         https://bugs.webkit.org/show_bug.cgi?id=122772
3361
3362         Reviewed by Anders Carlsson.
3363
3364         * CMakeLists.txt: Removed MediaControlsApple.cpp
3365         * PlatformEfl.cmake: Added MediaControlsApple.cpp
3366
3367 2013-10-14  Alexey Proskuryakov  <ap@apple.com>
3368
3369         window.crypto doesn't preserve custom properties
3370         https://bugs.webkit.org/show_bug.cgi?id=122770
3371
3372         Reviewed by Mark Hahnenberg.
3373
3374         Test: security/crypto-gc.html
3375
3376         Generate isReachableFromOpaqueRoots that makes Crypto live as long as the document
3377         lives (because that's when it's observable through window object).
3378
3379         * page/Crypto.cpp:
3380         (WebCore::Crypto::Crypto):
3381         (WebCore::Crypto::~Crypto):
3382         (WebCore::Crypto::document):
3383         * page/Crypto.h:
3384         (WebCore::Crypto::create):
3385         Made Crypto a ContextDestructionObserver, so that it can report its document to bindings.
3386         Removed ScriptWrappable, because it seems to have served no purpose in this class.
3387
3388         * page/Crypto.idl: Added GenerateIsReachable. Removed ImplementationLacksVTable,
3389         because the class now has a vtable, and can be checked for bindings integrity.
3390
3391         * page/DOMWindow.cpp: (WebCore::DOMWindow::crypto): Pass a document when creating
3392         crypto.
3393
3394 2013-10-14  Andreas Kling  <akling@apple.com>
3395
3396         CTTE: NamedNodeMap always has a corresponding Element.
3397         <https://webkit.org/b/122769>
3398
3399         Reviewed by Anders Carlsson.
3400
3401         Made NamedNodeMap::m_element a reference and remove an assertion
3402         that it's never null.
3403
3404 2013-10-14  Andreas Kling  <akling@apple.com>
3405
3406         REGRESSION(r157408): Crashes in RenderFullScreen::wrapRenderer().
3407
3408         Unreviewed crash fix for these two tests:
3409
3410         - fullscreen/full-screen-restrictions.html
3411         - fullscreen/empty-anonymous-block-continuation-crash.html
3412
3413         * rendering/RenderFullScreen.cpp:
3414         (RenderFullScreen::wrapRenderer):
3415
3416             Get the RenderArena from Document like we did before this patch.
3417
3418 2013-10-14  Hans Muller  <hmuller@adobe.com>
3419
3420         [CSS Shapes] Image valued shape-outside shapes should update the layout after the image has been loaded
3421         https://bugs.webkit.org/show_bug.cgi?id=122340
3422
3423         Reviewed by Simon Fraser.
3424
3425         Ensure that the an image-valued shape-outside layout is updated after the image has
3426         been loaded.
3427
3428         Test: http/tests/css/css-image-valued-shape.html
3429
3430         * rendering/RenderBlock.cpp:
3431         (WebCore::RenderBlock::imageChanged): Added code for the shape-outside case.
3432         (WebCore::RenderBlock::updateShapeInsideInfoAfterStyleChange): Ditto.
3433         * rendering/RenderElement.cpp:
3434         (WebCore::RenderElement::~RenderElement): Ditto.
3435         (WebCore::RenderElement::setStyle): Ditto.
3436
3437 2013-10-14  Andreas Kling  <akling@apple.com>
3438
3439         Remove some silly null checks in Element/NamedNodeMap.
3440         <https://webkit.org/b/122767>
3441
3442         Reviewed by Darin Adler.
3443
3444         Make shouldIgnoreAttributeCase() take a const Element&, exposing
3445         some unnecessary null checks.
3446
3447 2013-10-14  Brent Fulgham  <bfulgham@apple.com>
3448
3449         [Win] Build fix after r122737.
3450
3451         * dom/Node.h: Add explicit WebCore namespace to macro definition to work around
3452         Visual Studio bug.
3453
3454 2013-10-14  Andreas Kling  <akling@apple.com>
3455
3456         Pass Document directly to anonymous renderer constructors.
3457         <https://webkit.org/b/122752>
3458
3459         Reviewed by Antti Koivisto.
3460
3461         Added separate constructors for creating anonymous renderers that
3462         take a Document& instead of a null Element*/Text*.
3463
3464         Removed setDocumentForAnonymous() and all createAnonymous() helpers.
3465         ...and RenderObject::m_node is now a Node&, wohoo!
3466
3467 2013-10-13  Sam Weinig  <sam@webkit.org>
3468
3469         CTTE: Add more node conversion helpers
3470         https://bugs.webkit.org/show_bug.cgi?id=122737
3471
3472         Reviewed by Darin Adler.
3473
3474         - Factor NODE_TYPE_CASTS into TYPE_CASTS_BASE(ToClassName, FromClassName)
3475           to allow for DOCUMENT_TYPE_CASTS.
3476         - Replace more static_casts<>.
3477
3478 2013-10-14  Zan Dobersek  <zdobersek@igalia.com>
3479
3480         Reintroduce PassRefPtr<Event> copy in ScopedEventQueue::dispatchEvent
3481         https://bugs.webkit.org/show_bug.cgi?id=122742
3482
3483         Reviewed by Alexey Proskuryakov.
3484
3485         This is a follow-up to r157219 which introduced a workaround for the GCC's quirky behavior that
3486         was resulting in crashes due to the PassRefPtr<Event> object passed to EventDispatcher::dispatchEvent
3487         being copied and nullified first before retrieving the EventTarget of the Event object wrapped in that
3488         PassRefPtr.
3489
3490         The implementation is now adjusted to first retrieve the pointer to the Event's EventTarget and store
3491         it in a local variable. That variable is then passed as the first parameter to EventDispatcher::dispatchEvent,
3492         and the PassRefPtr<Event> passed directly as the second parameter. Previously the pointer of that PassRefPtr
3493         object was passed in, with a new PassRefPtr being created which would increase the reference count of the
3494         ref-counted object. Passing in the original PassRefPtr avoids the unnecessary reference count increase by creating
3495         a copy. That still nullifies the original PassRefPtr, but that's not a problem anymore.
3496
3497         * dom/ScopedEventQueue.cpp:
3498         (WebCore::ScopedEventQueue::dispatchEvent):
3499
3500 2013-10-14  Bear Travis  <betravis@adobe.com>
3501
3502         [CSS Shapes] Shape-Margin should be animatable
3503         https://bugs.webkit.org/show_bug.cgi?id=122524
3504
3505         Reviewed by Darin Adler.
3506
3507         Mark content for relayout after shape-margin changes, and add shape-margin
3508         to the list of animatable properties.
3509
3510         Tests: fast/shapes/shape-outside-floats/shape-outside-dynamic-shape-margin.html
3511                fast/shapes/shape-outside-floats/shape-outside-shape-margin-animation.html
3512
3513         * page/animation/CSSPropertyAnimation.cpp:
3514         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): Add
3515         shape-margin to the map of animatable CSS properties.
3516         * rendering/RenderBox.cpp:
3517         (WebCore::RenderBox::updateShapeOutsideInfoAfterStyleChange): Compare shape-margins,
3518         and mark dependent content for relayout if they have changed.
3519
3520 2013-10-14  Arvid Nilsson  <anilsson@blackberry.com>
3521
3522         Don't crash after OpenGL robustness reset
3523         https://bugs.webkit.org/show_bug.cgi?id=122750
3524
3525         Reviewed by George Staikos.
3526
3527         JIRA 517132.
3528         Just log the incident and pretend like nothing happened.
3529
3530         No new tests, we don't have repeatable steps to reproduce a robustness
3531         reset.
3532
3533         * platform/graphics/blackberry/LayerRenderer.cpp:
3534         (WebCore::LayerRenderer::makeContextCurrent):
3535
3536 2013-10-14  Krzysztof Czech  <k.czech@samsung.com>
3537
3538         [EFL] Buildfix after r157393
3539         https://bugs.webkit.org/show_bug.cgi?id=122749
3540
3541         Reviewed by Andreas Kling.
3542
3543         Buildfix with error enumeration value 'CSS_FR' not handled in switch.
3544
3545         * css/CSSCalculationValue.cpp:
3546         (WebCore::hasDoubleValue):
3547
3548 2013-10-14  Krzysztof Czech  <k.czech@samsung.com>
3549
3550         [EFL] Present replaced objects with 0xFFFC character
3551         https://bugs.webkit.org/show_bug.cgi?id=122744
3552
3553         Reviewed by Mario Sanchez Prada.
3554
3555         Replaced elements should be emitted in GTK/EFL and
3556         marked their presence with the replacement character.
3557
3558         * accessibility/AccessibilityObject.cpp:
3559         (WebCore::AccessibilityObject::textIteratorBehaviorForTextRange):
3560
3561 2013-09-16  Sergio Villar Senin  <svillar@igalia.com>
3562
3563         [CSS Grid Layout] Implement support for <flex>
3564         https://bugs.webkit.org/show_bug.cgi?id=115362
3565
3566         Reviewed by Andreas Kling.
3567
3568         From Blink r149134, r149480, r149532, r150287 and r156127 by <jchaffraix@chromium.org>
3569         From Blink r157820 by <svillar@igalia.com>
3570
3571         Added support for flexible lengths ('fr' unit) in CSS Grid Layout
3572         code. This requires the addition of GridLength class to
3573         encapsulate the knowledge of <flex> to the grid layout code.
3574
3575         Also updated the algorithm that computes the layout. It increases
3576         the value of 1fr based on the grid tracks' usedBreath to fraction
3577         ratio (called normalizedFractionValue). This enables increasing
3578         the fraction value while updating the available space to account
3579         for processed grid tracks. The algorithm stops when we run out of
3580         grid tracks or available space (one grid item has an intrinsic
3581         size too big). This matches the specs to the letter for the known
3582         available space case (both the unknown case and the interaction
3583         with 'span' are left out of this patch).
3584
3585         Tests: fast/css-grid-layout/flex-and-minmax-content-resolution-columns.html
3586                fast/css-grid-layout/flex-and-minmax-content-resolution-rows.html
3587                fast/css-grid-layout/flex-content-resolution-columns.html
3588                fast/css-grid-layout/flex-content-resolution-rows.html
3589
3590         * GNUmakefile.list.am: Added GridLength.h to the build system.
3591         * Target.pri: Ditto.
3592         * WebCore.vcxproj/WebCore.vcxproj: Ditto.
3593         * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
3594         * WebCore.xcodeproj/project.pbxproj: Ditto.
3595         * css/CSSComputedStyleDeclaration.cpp:
3596         (WebCore::valueForGridTrackBreadth): Replace Length by GridLength.
3597         * css/CSSGrammar.y.in: Added FR support.
3598         * css/CSSParser.cpp: Ditto.
3599         (WebCore::CSSParser::parseGridBreadth):
3600         (WebCore::CSSParser::detectNumberToken):
3601         * css/CSSParserValues.cpp: Added FR support.
3602         (WebCore::CSSParserValue::createCSSValue):
3603         * css/CSSParserValues.h:
3604         (WebCore::CSSParserString::operator[]):
3605         (WebCore::CSSParserString::equalIgnoringCase):
3606         * css/CSSPrimitiveValue.cpp: Added FR support.
3607         (WebCore::isValidCSSUnitTypeForDoubleConversion):
3608         (WebCore::CSSPrimitiveValue::cleanup):
3609         (WebCore::CSSPrimitiveValue::customCSSText):
3610         (WebCore::CSSPrimitiveValue::cloneForCSSOM):
3611         (WebCore::CSSPrimitiveValue::equals):
3612         * css/CSSPrimitiveValue.h: Added a couple of missing const.
3613         (WebCore::CSSPrimitiveValue::isFlex):
3614         * css/StyleResolver.cpp: Added FR support.
3615         (WebCore::createGridTrackBreadth):
3616         (WebCore::createGridTrackSize):
3617         * rendering/RenderGrid.cpp:
3618         (WebCore::GridTrackForNormalization::GridTrackForNormalization):
3619         New helper struct to ease the computation of track breadths with
3620         flexible lengths.
3621         (WebCore::GridTrackForNormalization::operator=):
3622         (WebCore::RenderGrid::computePreferredTrackWidth): Replaced Length by GridLength.
3623         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks): Grow grid lines
3624         having a fraction as the MaxTrackSizingFunction.
3625         (WebCore::RenderGrid::computeUsedBreadthOfMinLength): Replaced Length by GridLength.
3626         (WebCore::RenderGrid::computeUsedBreadthOfMaxLength): Ditto.
3627         (WebCore::sortByGridNormalizedFlexValue):
3628         (WebCore::RenderGrid::computeNormalizedFractionBreadth): Increase
3629         the fraction value while updating the available space to account
3630         for processed grid tracks.
3631         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
3632         (WebCore::RenderGrid::distributeSpaceToTracks): Never shrink track sizes.
3633         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
3634         * rendering/RenderGrid.h:
3635         * rendering/style/GridLength.h: Added.
3636         (WebCore::GridLength::GridLength):
3637         (WebCore::GridLength::isLength):
3638         (WebCore::GridLength::isFlex):
3639         (WebCore::GridLength::length):
3640         (WebCore::GridLength::flex):
3641         (WebCore::GridLength::setFlex):
3642         (WebCore::GridLength::operator==):
3643         * rendering/style/GridTrackSize.h: Replaced Length by GridLength.
3644         (WebCore::GridTrackSize::length):
3645         (WebCore::GridTrackSize::setLength):
3646         (WebCore::GridTrackSize::minTrackBreadth):
3647         (WebCore::GridTrackSize::maxTrackBreadth):
3648         (WebCore::GridTrackSize::setMinMax):
3649         (WebCore::GridTrackSize::hasMinOrMaxContentMinTrackBreadth):
3650         (WebCore::GridTrackSize::hasMaxContentMinTrackBreadth):
3651         (WebCore::GridTrackSize::hasMinOrMaxContentMaxTrackBreadth):
3652         (WebCore::GridTrackSize::hasMaxContentMaxTrackBreadth):
3653
3654 2013-10-14  peavo@outlook.com  <peavo@outlook.com>
3655
3656         Broken text rendering when input field has selection.
3657         https://bugs.webkit.org/show_bug.cgi?id=122716
3658
3659         Reviewed by Antti Koivisto.
3660
3661         Tests: fast/text/text-rendering-with-input-selection.html.
3662                fast/text/text-rendering-with-input-selection-expected.html.
3663
3664         * rendering/InlineTextBox.cpp:
3665         (WebCore::InlineTextBox::paint): Check that text has selection.
3666
3667 2013-10-14  Zalan Bujtas  <zalan@apple.com>
3668
3669         Unexpected word wrapping for wrapped content then raw content.
3670         https://bugs.webkit.org/show_bug.cgi?id=121130
3671
3672         Reviewed by Antti Koivisto.
3673
3674         When deciding whether a line is considered empty, we need to check if the current
3675         object is fully responsible for the currently uncommitted width. It helps differentiating
3676         <span></span><span>abcd</span> from <span>a</span><span>bcd</span>, where in the first
3677         case when we hit the second <span> the line is still considered empty, as opposed to the
3678         second example.
3679
3680         Test: fast/css/unexpected-word-wrapping-with-non-empty-spans.html
3681
3682         * rendering/RenderBlockLineLayout.cpp:
3683         (WebCore::LineBreaker::nextSegmentBreak):
3684
3685 2013-10-14  Andreas Kling  <akling@apple.com>
3686
3687         Be more efficient about passing RenderStyle to attachRenderTree().
3688         <https://webkit.org/b/122743>
3689
3690         Reviewed by Antti Koivisto.
3691
3692         Have attachRenderTree() and createRendererTreeIfNeeded() pass the
3693         RenderStyle in a PassRefPtr to avoid churning the ref count.
3694
3695 2013-10-14  Sergio Villar Senin  <svillar@igalia.com>
3696
3697         [CSS Grid Layout] 2 span positions are not resolved correctly
3698         https://bugs.webkit.org/show_bug.cgi?id=119717
3699
3700         Reviewed by Andreas Kling.
3701
3702         From Blink r155397 by <jchaffraix@chromium.org>
3703
3704         Test: fast/css-grid-layout/grid-item-bad-resolution-double-span.html
3705
3706         Two opposite 'span' or 'auto' positions should be resolved using
3707         the auto placement algorithm. We were only checking for the 'auto'
3708         case. This also covers the case of other positions that, according
3709         to the spec, should be treated as 'auto'.
3710
3711         * rendering/RenderGrid.cpp:
3712         (WebCore::RenderGrid::resolveGridPositionsFromStyle):
3713
3714 2013-10-13  Andreas Kling  <akling@apple.com>
3715
3716         Use RenderElement instead of RenderObject in more places.
3717         <https://webkit.org/b/122734>
3718
3719         Reviewed by Antti Koivisto.
3720
3721         Convert some sites to use RenderElement (or type inference) instead
3722         of RenderObject for less branchy code.
3723
3724 2013-10-13  Darin Adler  <darin@apple.com>
3725
3726         Deprecate or remove deleteAllValues functions; there are only a few call sites left
3727         https://bugs.webkit.org/show_bug.cgi?id=122738
3728
3729         Reviewed by Anders Carlsson.
3730
3731         * platform/blackberry/CookieMap.cpp:
3732         (WebCore::CookieMap::deleteAllCookiesAndDomains):
3733         * platform/network/blackberry/rss/RSSParserBase.cpp:
3734         (WebCore::RSSFeed::clear):
3735         * platform/win/WCDataObject.cpp:
3736         (WebCore::WCDataObject::~WCDataObject):
3737         Renamed deleteAllValues to deprecatedDeleteAllValues.
3738
3739 2013-10-13  Sam Weinig  <sam@webkit.org>
3740
3741         Merge NODE_TYPE_CASTS and ELEMENT_TYPE_CASTS
3742         https://bugs.webkit.org/show_bug.cgi?id=122735
3743
3744         Reviewed by Antti Koivisto.
3745
3746         NODE_TYPE_CASTS and ELEMENT_TYPE_CASTS are identical. Let them become one
3747         with one another.
3748
3749 2013-10-13  Andreas Kling  <akling@apple.com>
3750
3751         Uncrashify Document::head() too. (Why am I even awake?)
3752
3753 2013-10-13  Andreas Kling  <akling@apple.com>
3754
3755         REGRESSION(r157381): Make Document::body() crash less when there is no documentElement.
3756
3757         Unreviewed.
3758
3759 2013-10-13  Darin Adler  <darin@apple.com>
3760
3761         Rewrite Document::body and Document::head in modern style, way clearer and shorter
3762         https://bugs.webkit.org/show_bug.cgi?id=122717
3763
3764         Reviewed by Andreas Kling.
3765
3766         * dom/Document.cpp:
3767         (WebCore::Document::body): Use iterator to make this way easier to read.
3768         (WebCore::Document::head): Ditto.
3769
3770         * html/HTMLTagNames.in: Added generateTypeHelpers for body and head.
3771
3772 == Rolled over to ChangeLog-2013-10-13 ==