Use the system string for telephone number menu
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-12-05  Timothy Horton  <timothy_horton@apple.com>
2
3         Use the system string for telephone number menu
4         https://bugs.webkit.org/show_bug.cgi?id=139324
5         <rdar://problem/18726471>
6
7         * platform/spi/mac/TUCallSPI.h: Added.
8         Actually add the SPI header from the last commit.
9
10 2014-12-05  Tim Horton  <timothy_horton@apple.com>
11
12         Use the system string for telephone number menu
13         https://bugs.webkit.org/show_bug.cgi?id=139324
14         <rdar://problem/18726471>
15
16         Reviewed by Anders Carlsson.
17
18         * WebCore.xcodeproj/project.pbxproj:
19         * platform/spi/mac/TUCallSPI.h: Added.
20         Add an SPI header.
21
22 2014-12-05  Jer Noble  <jer.noble@apple.com>
23
24         [MSE][Mac] Return absolute value of error code from CDMSessionMediaSourceAVFObjC::update().
25         https://bugs.webkit.org/show_bug.cgi?id=139316
26
27         Reviewed by Eric Carlson.
28
29         Similarly to our asynchronous error reporting, return the absolute value of the error code.
30
31         * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
32         (WebCore::systemCodeForError):
33         (WebCore::CDMSessionMediaSourceAVFObjC::update):
34
35 2014-12-05  Anders Carlsson  <andersca@apple.com>
36
37         Fix build on Windows.
38
39         * page/SessionIDHash.h:
40
41 2014-12-05  Zalan Bujtas  <zalan@apple.com>
42
43         Issue repaint at setUnavailablePluginIndicatorIsHidden() only when embedded object's indicator status changes.
44         https://bugs.webkit.org/show_bug.cgi?id=139311
45
46         Reviewed by Tim Horton.
47
48         Not testable.
49
50         * rendering/RenderEmbeddedObject.cpp:
51         (WebCore::RenderEmbeddedObject::setUnavailablePluginIndicatorIsHidden):
52
53 2014-12-05  Andreas Kling  <akling@apple.com>
54
55         PassRef should deref on destruction if pointee was not moved.
56         <https://webkit.org/b/139309>
57
58         Reviewed by Antti Koivisto.
59
60         Remove calls to PassRef::dropRef() since it's no longer necessary to manually
61         notify PassRef that you didn't move the pointee.
62
63         * rendering/RenderElement.cpp:
64         (WebCore::RenderElement::createFor):
65         (WebCore::RenderElement::setStyle):
66         * style/StyleResolveTree.cpp:
67         (WebCore::Style::resolveTree):
68
69 2014-12-05  Benjamin Poulain  <bpoulain@apple.com>
70
71         Fix style sharing with the "type" and "readonly" attributes
72         https://bugs.webkit.org/show_bug.cgi?id=139283
73
74         Reviewed by Antti Koivisto.
75
76         There are two bugs adressed with this patch:
77         1) The attributes "type" and "readonly" where only handled correctly
78            for input elements. For everything else, they could incorrectly
79            be ignored for style sharing.
80         2) The handling of attributes was incorrect for selector lists, leading
81            to various bugs (incorrect style sharing in some cases, disabling
82            style sharing on valid cases).
83
84         For [1], the problem was that attribute checking had been limited to
85         StyleResolver::canShareStyleWithControl(). That function is for handling
86         the special states of input element. For any other element, the attributes
87         were simply ignored.
88
89         For [2], there were a bunch of small problems. First, containsUncommonAttributeSelector()
90         was not recursive, which caused it to ignored any nested selector list. This used to be
91         correct but since we have advanced selectors we can no longer assumed selectors are not nested.
92
93         A second issue was that any attribute in a selector list was causing us to fall back
94         to the slow case. Now that we have the fast :matches(), we really don't want that.
95
96         The function containsUncommonAttributeSelector() was transformed into a recursive function
97         tracking where we are in the selector.
98
99         At the entry point, we start with the flag "startsOnRightmostElement" set to true. The flag is then
100         updated on the stack of each recursive call.
101
102         For example, "webkit > is:matches(freaking > awesome)". We evalute "is" with the flag to true, then recurse
103         into evaluating "freaking > awesome" with the flag still set to true. When we evalute ">", the flag
104         is set to false to evaluate any following selectors.
105         After evaluating "freaking > awesome", we go back to our previous stack frame, and the flag
106         is back to true and we can continue evaluating with the curren top level state.
107
108         From some logging, I discovered that the attribute handling is way too aggressive.
109         This is not a regression and I cannot fix that easily so I left a fixme.
110
111         Tests: fast/css/data-attribute-style-sharing-1.html
112                fast/css/data-attribute-style-sharing-2.html
113                fast/css/data-attribute-style-sharing-3.html
114                fast/css/data-attribute-style-sharing-4.html
115                fast/css/data-attribute-style-sharing-5.html
116                fast/css/data-attribute-style-sharing-6.html
117                fast/css/data-attribute-style-sharing-7.html
118                fast/css/readonly-attribute-style-sharing-1.html
119                fast/css/readonly-attribute-style-sharing-2.html
120                fast/css/readonly-attribute-style-sharing-3.html
121                fast/css/readonly-attribute-style-sharing-4.html
122                fast/css/readonly-attribute-style-sharing-5.html
123                fast/css/readonly-attribute-style-sharing-6.html
124                fast/css/readonly-attribute-style-sharing-7.html
125                fast/css/type-attribute-style-sharing-1.html
126                fast/css/type-attribute-style-sharing-2.html
127                fast/css/type-attribute-style-sharing-3.html
128                fast/css/type-attribute-style-sharing-4.html
129                fast/css/type-attribute-style-sharing-5.html
130                fast/css/type-attribute-style-sharing-6.html
131                fast/css/type-attribute-style-sharing-7.html
132
133         * css/RuleSet.cpp:
134         (WebCore::containsUncommonAttributeSelector):
135         (WebCore::RuleData::RuleData):
136         (WebCore::selectorListContainsAttributeSelector): Deleted.
137         * css/StyleResolver.cpp:
138         (WebCore::StyleResolver::canShareStyleWithControl):
139         (WebCore::StyleResolver::canShareStyleWithElement):
140
141 2014-12-05  Jer Noble  <jer.noble@apple.com>
142
143         [WTF] MediaTime should support round-tripping from and to doubles.
144         https://bugs.webkit.org/show_bug.cgi?id=139248
145
146         Reviewed by Eric Carlson.
147
148         Check whether the MediaTime's underlying data is floating point before converting
149         to a CMTime or QTTime.
150
151         * platform/graphics/avfoundation/MediaTimeAVFoundation.cpp:
152         (WebCore::toCMTime):
153         * platform/graphics/mac/MediaTimeQTKit.mm:
154         (WebCore::toQTTime):
155
156 2014-12-05  Anders Carlsson  <andersca@apple.com>
157
158         Add a private browsing mode to MiniBrowser
159         https://bugs.webkit.org/show_bug.cgi?id=139308
160
161         Reviewed by Sam Weinig.
162
163         Use -1 instead of -2 for the deleted value.
164
165         * page/SessionIDHash.h:
166
167 2014-12-05  Chris Dumez  <cdumez@apple.com>
168
169         Move 'text-emphasis-style' CSS property to the new StyleBuilder
170         https://bugs.webkit.org/show_bug.cgi?id=139285
171
172         Reviewed by Sam Weinig.
173
174         Move 'text-emphasis-style' CSS property to the new StyleBuilder by
175         using custom code.
176
177         No new tests, no behavior change.
178
179         * css/CSSPropertyNames.in:
180         * css/DeprecatedStyleBuilder.cpp:
181         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
182         (WebCore::ApplyPropertyTextEmphasisStyle::applyInheritValue): Deleted.
183         (WebCore::ApplyPropertyTextEmphasisStyle::applyInitialValue): Deleted.
184         (WebCore::ApplyPropertyTextEmphasisStyle::applyValue): Deleted.
185         (WebCore::ApplyPropertyTextEmphasisStyle::createHandler): Deleted.
186         * css/StyleBuilderCustom.h:
187         (WebCore::StyleBuilderCustom::applyInitialWebkitTextEmphasisStyle):
188         (WebCore::StyleBuilderCustom::applyInheritWebkitTextEmphasisStyle):
189         (WebCore::StyleBuilderCustom::applyValueWebkitTextEmphasisStyle):
190
191 2014-12-05  Eric Carlson  <eric.carlson@apple.com>
192
193         [iOS] remove "enter optimized fullscreen" gesture
194         https://bugs.webkit.org/show_bug.cgi?id=139301
195
196         Reviewed by Jer Noble.
197
198         * Modules/mediacontrols/mediaControlsiOS.js:
199         (ControllerIOS.prototype.handleWrapperTouchStart): Remove gesture recognizer.
200
201 2014-12-05  Beth Dakin  <bdakin@apple.com>
202
203         rdar://problem/19156353 Additional build-fixes needed.
204
205         Rubber-stamped by Tim Horton.
206
207         This is a bit unfortunate, but we need to always forward-declare this for now.
208         * platform/spi/mac/QuickLookMacSPI.h:
209
210 2014-12-05  David Kilzer  <ddkilzer@apple.com>
211
212         FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
213         <http://webkit.org/b/139286>
214
215         Reviewed by Daniel Bates.
216
217         * Configurations/FeatureDefines.xcconfig: Switch back to using
218         PLATFORM_NAME to workaround a bug in Xcode 5.1.1 on 10.8.
219
220 2014-12-05  Eric Carlson  <eric.carlson@apple.com>
221
222         [iOS] allow host application to opt-out of alternate fullscreen pt. 2
223         https://bugs.webkit.org/show_bug.cgi?id=139227
224
225         Reviewed by Jer Noble and Anders Carlsson
226
227         * WebCore.exp.in: Export HTMLMediaSession::allowsAlternateFullscreen, change the signature of 
228             WebVideoFullscreenInterfaceAVKit::setupFullscreen.
229
230         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
231         (-[WebVideoFullscreenController enterFullscreen:mode:]): Update for
232             WebVideoFullscreenInterfaceAVKit::setupFullscreen change.
233
234         * platform/ios/WebVideoFullscreenInterfaceAVKit.h: Add argument to setupFullscreen.
235         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
236         (WebVideoFullscreenInterfaceAVKit::setupFullscreen): Ditto.
237
238 2014-12-05  Shivakumar JM  <shiva.jm@samsung.com>
239
240         Fix build warning in WebCore/platform/graphics module
241         https://bugs.webkit.org/show_bug.cgi?id=139290
242
243         Reviewed by Carlos Garcia Campos.
244
245         Fix a build warning by removing parameter name from function.
246
247         No new tests, no behavior change.
248
249         * platform/graphics/freetype/FontCacheFreeType.cpp:
250         (WebCore::getFamilyNameStringFromFontDescriptionAndFamily):
251
252 2014-12-05  sungmin cho  <sungmin17.cho@lge.com>
253
254         GraphicsLayerTextureMapper: Rename parameter to be more clear
255         https://bugs.webkit.org/show_bug.cgi?id=139288
256
257         Reviewed by Martin Robinson.
258
259         Rename 'media' to 'platformLayer'.
260
261         No new tests, no change in functionality.
262
263         * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
264         (WebCore::GraphicsLayerTextureMapper::setContentsToPlatformLayer):
265
266 2014-12-04  Mark Rowe  <mrowe@apple.com>
267
268         Fix pre-Yosemite builds.
269
270         The #ifs in two SPI wrapper headers were incorrect, resulting in code being included
271         prior to Yosemite that required Yosemite to compile.
272
273         * platform/spi/mac/NSSharingServicePickerSPI.h:
274         * platform/spi/mac/NSSharingServiceSPI.h:
275
276 2014-12-02  Brian J. Burg  <burg@cs.washington.edu>
277
278         Web Inspector: timeline probe records have inaccurate per-probe hit counts
279         https://bugs.webkit.org/show_bug.cgi?id=138976
280
281         Reviewed by Joseph Pecoraro.
282
283         Update the signature for breakpointActionProbe to take batchId and sampleId.
284         Covered by existing test inspector-protocol/debugger/didSampleProbe-multiple-probes.html.
285
286         * inspector/InspectorTimelineAgent.cpp:
287         (WebCore::InspectorTimelineAgent::breakpointActionProbe):
288         * inspector/InspectorTimelineAgent.h:
289         * inspector/TimelineRecordFactory.cpp:
290         (WebCore::TimelineRecordFactory::createProbeSampleData):
291         * inspector/TimelineRecordFactory.h:
292
293 2014-12-04  Adenilson Cavalcanti  <cavalcantii@gmail.com>
294
295         Groove/inset/outset borders show solid if the color is black
296         https://bugs.webkit.org/show_bug.cgi?id=58608
297
298         Reviewed by Simon Fraser.
299
300         Test: fast/borders/mixed-border-style2.html
301
302         This patch will lighten/darken the border side colors, handling
303         border decoration in a similar way as Firefox does.
304
305         * rendering/RenderObject.cpp:
306         (WebCore::RenderObject::drawLineForBoxSide):
307         (WebCore::RenderObject::calculateBorderStyleColor):
308         * rendering/RenderObject.h:
309
310 2014-12-04  Chris Dumez  <cdumez@apple.com>
311
312         Move 'webkit-aspect-ratio' CSS property to the new StyleBuilder
313         https://bugs.webkit.org/show_bug.cgi?id=139250
314
315         Reviewed by Sam Weinig.
316
317         Move 'aspect-ratio' CSS property to the new StyleBuilder by
318         using custom code.
319
320         No new tests, no behavior change.
321
322         * css/CSSPropertyNames.in:
323         * css/DeprecatedStyleBuilder.cpp:
324         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
325         (WebCore::ApplyPropertyAspectRatio::applyInheritValue): Deleted.
326         (WebCore::ApplyPropertyAspectRatio::applyInitialValue): Deleted.
327         (WebCore::ApplyPropertyAspectRatio::applyValue): Deleted.
328         (WebCore::ApplyPropertyAspectRatio::createHandler): Deleted.
329         * css/StyleBuilderCustom.h:
330         (WebCore::StyleBuilderCustom::applyInitialWebkitAspectRatio):
331         (WebCore::StyleBuilderCustom::applyInheritWebkitAspectRatio):
332         (WebCore::StyleBuilderCustom::applyValueWebkitAspectRatio):
333
334 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
335
336         Further fix the 32-bit build.
337
338         * page/mac/TextIndicatorWindow.mm:
339         (WebCore::TextIndicatorWindow::setTextIndicator):
340
341 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
342
343         Fix the 32-bit build.
344
345         * page/mac/TextIndicatorWindow.h:
346         * page/mac/TextIndicatorWindow.mm:
347         (WebCore::TextIndicatorWindow::setTextIndicator):
348
349 2014-12-04  Tim Horton  <timothy_horton@apple.com>
350
351         TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2
352         https://bugs.webkit.org/show_bug.cgi?id=139252
353         <rdar://problem/19140827>
354
355         Reviewed by Anders Carlsson.
356
357         * WebCore.exp.in:
358         * page/TextIndicator.cpp:
359         (WebCore::TextIndicator::createWithSelectionInFrame):
360         (WebCore::TextIndicator::TextIndicator):
361         * page/TextIndicator.h:
362         (WebCore::TextIndicator::selectionRectInWindowCoordinates):
363         (WebCore::TextIndicator::textBoundingRectInWindowCoordinates):
364         (WebCore::TextIndicator::selectionRectInScreenCoordinates): Deleted.
365         (WebCore::TextIndicator::textBoundingRectInScreenCoordinates): Deleted.
366         Go back to keeping the rects in "window" coordinates.
367
368         * page/mac/TextIndicatorWindow.h:
369         * page/mac/TextIndicatorWindow.mm:
370         (-[WebTextIndicatorView initWithFrame:textIndicator:margin:]):
371         (WebCore::TextIndicatorWindow::setTextIndicator):
372         Let callers pass in the contentRect instead of trying to share the code
373         to compute it, since it needs to be different for legacy and modern WebKit.
374
375 2014-12-04  Oliver Hunt  <oliver@apple.com>
376
377         Serialization of MapData object provides unsafe access to internal types
378         https://bugs.webkit.org/show_bug.cgi?id=138653
379
380         Reviewed by Geoffrey Garen.
381
382         We now keep the value portion of the key/value pair in MapData as a
383         separate stack. This allows us to maintain the spec semantic of
384         "atomic" serialisation of the key/value pair without retaining the
385         use of a potentially invalid iterator.
386
387         * bindings/js/SerializedScriptValue.cpp:
388         (WebCore::CloneSerializer::serialize):
389
390 2014-12-04  Radu Stavila  <stavila@adobe.com>
391
392         [SVG Masking] Add support for referencing <mask> elements from -webkit-mask-image
393         https://bugs.webkit.org/show_bug.cgi?id=139092
394
395         Reviewed by Simon Fraser.
396
397         This patch improves the -webkit-mask-image property by allowing it to reference
398         a <mask> element defined in an inline or external SVG document.
399         Up until now, each image to be used as a mask consisted of a FillLayer object 
400         whose m_image member represented the mask. Now, in order to accomodate
401         <mask> elements referenced by a fragment identifier (e.g. file.svg#mask1)
402         a new class was created (MaskImageOperation) and added as a member of the 
403         FillLayer. As such, from now on, all FillLayer objects used for masking will
404         store the masking information in this new member.
405         When parsing the -webkit-mask-image property (or the -webkit-mask shorthand)
406         a new MaskImageOperation object is created for each image. If the value represents
407         an external URL, a pending SVG document will be created which will be loaded 
408         during the phase that loads the pending resources. When the download is complete,
409         the MaskImageOperation is notified by the CachedSVGDocument class and checks if
410         the received download is a valid SVG and the requested fragment identifier
411         actually exists and identifies a <mask> element. If it does, that element's
412         renderer (of type RenderSVGResourceMasker) will be used when painting the mask layers.
413         Otherwise, the MaskImageOperation class will use the already downloaded data 
414         buffer to create a CachedImage from it and use that instead, basically emulating
415         the previous behavior, when only images were accepted. This ensures that all existing
416         behavior, like painting entire SVGs, painting normal images (e.g. PNG/JPG), painting
417         generated images (e.g. linear-gradient) works as it did before.
418
419         No new tests required, this patch doesn't change any current functionality. 
420         It only adds support for referencing <mask> elements for the -webkit-mask-image 
421         property. This is sub-part 1 of the bigger patch https://bugs.webkit.org/show_bug.cgi?id=129682.
422
423         * CMakeLists.txt:
424         * WebCore.vcxproj/WebCore.vcxproj:
425         * WebCore.vcxproj/WebCore.vcxproj.filters:
426         * WebCore.xcodeproj/project.pbxproj:
427         * css/CSSValue.cpp:
428         (WebCore::CSSValue::cssText):
429         (WebCore::CSSValue::destroy):
430         * css/CSSValue.h:
431         (WebCore::CSSValue::isWebKitCSSResourceValue):
432         * css/StyleResolver.cpp:
433         (WebCore::StyleResolver::State::clear):
434         (WebCore::StyleResolver::createMaskImageOperations):
435         * css/StyleResolver.h:
436         (WebCore::StyleResolver::State::maskImagesWithPendingSVGDocuments):
437         * css/WebKitCSSResourceValue.cpp: Added.
438         (WebCore::WebKitCSSResourceValue::WebKitCSSResourceValue):
439         (WebCore::WebKitCSSResourceValue::customCSSText):
440         (WebCore::WebKitCSSResourceValue::isCSSValueNone):
441         * css/WebKitCSSResourceValue.h: Added.
442         (WebCore::WebKitCSSResourceValue::create):
443         (WebCore::WebKitCSSResourceValue::innerValue):
444         * loader/cache/CachedResourceLoader.cpp:
445         (WebCore::CachedResourceLoader::addCachedResource):
446         * loader/cache/CachedResourceLoader.h:
447         * loader/cache/CachedSVGDocument.cpp:
448         (WebCore::CachedSVGDocument::CachedSVGDocument):
449         (WebCore::CachedSVGDocument::finishLoading):
450         * loader/cache/CachedSVGDocument.h:
451         * loader/cache/CachedSVGDocumentReference.cpp:
452         (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
453         (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
454         (WebCore::CachedSVGDocumentReference::load):
455         * loader/cache/CachedSVGDocumentReference.h:
456         * page/FrameView.cpp:
457         (WebCore::FrameView::isSVGDocument):
458         * page/FrameView.h:
459         * page/Page.cpp:
460         (WebCore::Page::createPageFromBuffer):
461         * page/Page.h:
462         * platform/ScrollView.h:
463         (WebCore::ScrollView::isSVGDocument):
464         * platform/graphics/MaskImageOperation.cpp: Added.
465         (WebCore::MaskImageOperation::create):
466         (WebCore::MaskImageOperation::MaskImageOperation):
467         (WebCore::MaskImageOperation::~MaskImageOperation):
468         (WebCore::MaskImageOperation::isCSSValueNone):
469         (WebCore::MaskImageOperation::cssValue):
470         (WebCore::MaskImageOperation::isMaskLoaded):
471         (WebCore::MaskImageOperation::setRenderLayerImageClient):
472         (WebCore::MaskImageOperation::addRendererImageClient):
473         (WebCore::MaskImageOperation::removeRendererImageClient):
474         (WebCore::MaskImageOperation::getOrCreateCachedSVGDocumentReference):
475         (WebCore::MaskImageOperation::notifyFinished): This is the method that gets called when the document has finished 
476         downloading and checks if it can find a valid <mask> element.
477         (WebCore::MaskImageOperation::drawMask):
478         (WebCore::MaskImageOperation::getSVGMasker):
479         * platform/graphics/MaskImageOperation.h: Added.
480         * rendering/RenderBoxModelObject.cpp: The BackgroundImageGeometry class was moved out of RenderBoxModelObject in 
481         order to be used as a parameter for other methods. This was necessary to avoid having methods with very many parameters.
482         (WebCore::BackgroundImageGeometry::setNoRepeatX):
483         (WebCore::BackgroundImageGeometry::setNoRepeatY):
484         (WebCore::BackgroundImageGeometry::useFixedAttachment):
485         (WebCore::BackgroundImageGeometry::clip):
486         (WebCore::BackgroundImageGeometry::relativePhase):
487         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setNoRepeatX): Deleted.
488         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setNoRepeatY): Deleted.
489         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::useFixedAttachment): Deleted.
490         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::clip): Deleted.
491         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::relativePhase): Deleted.
492         * rendering/RenderBoxModelObject.h:
493         (WebCore::BackgroundImageGeometry::BackgroundImageGeometry):
494         (WebCore::BackgroundImageGeometry::destOrigin):
495         (WebCore::BackgroundImageGeometry::setDestOrigin):
496         (WebCore::BackgroundImageGeometry::destRect):
497         (WebCore::BackgroundImageGeometry::setDestRect):
498         (WebCore::BackgroundImageGeometry::phase):
499         (WebCore::BackgroundImageGeometry::setPhase):
500         (WebCore::BackgroundImageGeometry::tileSize):
501         (WebCore::BackgroundImageGeometry::setTileSize):
502         (WebCore::BackgroundImageGeometry::spaceSize):
503         (WebCore::BackgroundImageGeometry::setSpaceSize):
504         (WebCore::BackgroundImageGeometry::setPhaseX):
505         (WebCore::BackgroundImageGeometry::setPhaseY):
506         (WebCore::BackgroundImageGeometry::setHasNonLocalGeometry):
507         (WebCore::BackgroundImageGeometry::hasNonLocalGeometry):
508         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::BackgroundImageGeometry): Deleted.
509         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::destOrigin): Deleted.
510         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setDestOrigin): Deleted.
511         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::destRect): Deleted.
512         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setDestRect): Deleted.
513         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::phase): Deleted.
514         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setPhase): Deleted.
515         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::tileSize): Deleted.
516         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setTileSize): Deleted.
517         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::spaceSize): Deleted.
518         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setSpaceSize): Deleted.
519         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setPhaseX): Deleted.
520         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setPhaseY): Deleted.
521         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::setHasNonLocalGeometry): Deleted.
522         (WebCore::RenderBoxModelObject::BackgroundImageGeometry::hasNonLocalGeometry): Deleted.
523         * rendering/RenderLayer.cpp:
524         (WebCore::RenderLayer::RenderLayer):
525         (WebCore::RenderLayer::~RenderLayer):
526         * rendering/RenderLayer.h:
527         * rendering/RenderLayerMaskImageInfo.cpp: Added.
528         (WebCore::RenderLayer::MaskImageInfo::layerToMaskMap): Returns a static map that links MaskImageInfo objects to RenderLayers.
529         (WebCore::RenderLayer::MaskImageInfo::getIfExists): Returns the MaskImageInfo associated with a specific RenderLayer.
530         (WebCore::RenderLayer::MaskImageInfo::get): Returns the MaskImageInfo associated with a specific RenderLayer (creates it if necessary).
531         (WebCore::RenderLayer::MaskImageInfo::remove): Removes the MaskImageInfo associated with a specific RenderLayer.
532         (WebCore::RenderLayer::MaskImageInfo::MaskImageInfo):
533         (WebCore::RenderLayer::MaskImageInfo::~MaskImageInfo):
534         (WebCore::RenderLayer::MaskImageInfo::notifyFinished): Gets called when the SVG document finished loading, triggers repaint.
535         (WebCore::RenderLayer::MaskImageInfo::imageChanged): Gets called when the image object changed, triggers repaint.
536         (WebCore::RenderLayer::MaskImageInfo::updateMaskImageClients): Goes through all mask layers and sets image/SVG clients. 
537         Updates list of internal and external SVG references.
538         (WebCore::RenderLayer::MaskImageInfo::removeMaskImageClients): Removes all image/SVG clients and clears lists of internal and external SVG references.
539         * rendering/RenderLayerMaskImageInfo.h: Added.
540         * rendering/RenderObject.h:
541         (WebCore::RenderObject::isRenderSVGResourceMasker):
542         * rendering/style/FillLayer.cpp:
543         (WebCore::FillLayer::FillLayer):
544         (WebCore::FillLayer::operator=):
545         (WebCore::FillLayer::operator==):
546         (WebCore::FillLayer::cullEmptyLayers):
547         (WebCore::FillLayer::hasNonEmptyMaskImage):
548         (WebCore::FillLayer::imagesAreLoaded):
549         * rendering/style/FillLayer.h:
550         (WebCore::FillLayer::maskImage):
551         (WebCore::FillLayer::imageOrMaskImage):
552         (WebCore::FillLayer::setMaskImage):
553         (WebCore::FillLayer::clearMaskImage):
554         (WebCore::FillLayer::hasMaskImage):
555         * rendering/svg/RenderSVGResourceMasker.cpp:
556         (WebCore::RenderSVGResourceMasker::applySVGMask):
557         (WebCore::RenderSVGResourceMasker::applyResource):
558         (WebCore::RenderSVGResourceMasker::drawMaskForRenderer):
559         * rendering/svg/RenderSVGResourceMasker.h:
560         * svg/SVGMaskElement.cpp:
561         (WebCore::SVGMaskElement::createElementRenderer):
562         (WebCore::SVGMaskElement::addClientRenderLayer):
563         (WebCore::SVGMaskElement::removeClientRenderLayer):
564         * svg/SVGMaskElement.h:
565         * svg/SVGUseElement.cpp:
566         (WebCore::SVGUseElement::setCachedDocument):
567         * svg/graphics/SVGImage.cpp:
568         (WebCore::SVGImage::dataChanged):
569
570 2014-12-04  Commit Queue  <commit-queue@webkit.org>
571
572         Unreviewed, rolling out r176789.
573         https://bugs.webkit.org/show_bug.cgi?id=139255
574
575         Broke the non Mac-WK2 builds (Requested by stavila on
576         #webkit).
577
578         Reverted changeset:
579
580         "Remove isSpecifiedFont boolean from FontDescription"
581         https://bugs.webkit.org/show_bug.cgi?id=139233
582         http://trac.webkit.org/changeset/176789
583
584 2014-12-03  Antti Koivisto  <antti@apple.com>
585
586         Remove isSpecifiedFont boolean from FontDescription
587         https://bugs.webkit.org/show_bug.cgi?id=139233
588
589         Reviewed by Andreas Kling.
590
591         It is barely used.
592
593         * css/StyleBuilderCustom.h:
594         (WebCore::StyleBuilderCustom::applyInheritFontFamily):
595         (WebCore::StyleBuilderCustom::applyValueFontFamily):
596         * platform/graphics/FontDescription.cpp:
597         (WebCore::genericFamiliesSet):
598         (WebCore::FontDescription::hasGenericFirstFamily):
599
600             Add a function to test for generic families.
601
602         * platform/graphics/FontDescription.h:
603         (WebCore::FontDescription::FontDescription):
604         (WebCore::FontDescription::setTextRenderingMode):
605         (WebCore::FontDescription::operator==):
606         (WebCore::FontDescription::isSpecifiedFont): Deleted.
607         (WebCore::FontDescription::setIsSpecifiedFont): Deleted.
608         * rendering/RenderText.cpp:
609         (WebCore::RenderText::computeUseBackslashAsYenSymbol):
610
611             This is the only client.
612             Figure out the equivalent information dynamically if needed.
613
614 2014-12-03  Joonghun Park  <jh718.park@samsung.com>
615
616         Use std::unique_ptr instead of PassOwnPtr|OwnPtr for Pasteboard
617         https://bugs.webkit.org/show_bug.cgi?id=139019
618
619         Reviewed by Darin Adler.
620
621         No new tests, no behavior changes.
622
623         * dom/DataTransfer.cpp:
624         (WebCore::DataTransfer::DataTransfer):
625         * dom/DataTransfer.h:
626         * editing/Editor.cpp:
627         (WebCore::Editor::dispatchCPPEvent):
628         * page/mac/EventHandlerMac.mm:
629         (WebCore::EventHandler::createDraggingDataTransfer):
630         * platform/Pasteboard.h:
631         * platform/efl/PasteboardEfl.cpp:
632         (WebCore::Pasteboard::createForCopyAndPaste):
633         (WebCore::Pasteboard::createPrivate):
634         (WebCore::Pasteboard::createForDragAndDrop):
635         * platform/gtk/PasteboardGtk.cpp:
636         (WebCore::Pasteboard::createForCopyAndPaste):
637         (WebCore::Pasteboard::createForGlobalSelection):
638         (WebCore::Pasteboard::createPrivate):
639         (WebCore::Pasteboard::createForDragAndDrop):
640         (WebCore::Pasteboard::create): Deleted.
641         * platform/ios/PasteboardIOS.mm:
642         (WebCore::Pasteboard::createForCopyAndPaste):
643         (WebCore::Pasteboard::createPrivate):
644         * platform/mac/PasteboardMac.mm:
645         (WebCore::Pasteboard::createForCopyAndPaste):
646         (WebCore::Pasteboard::createPrivate):
647         (WebCore::Pasteboard::createForDragAndDrop):
648         (WebCore::Pasteboard::create): Deleted.
649         * platform/win/PasteboardWin.cpp:
650         (WebCore::Pasteboard::createForCopyAndPaste):
651         (WebCore::Pasteboard::createPrivate):
652         (WebCore::Pasteboard::createForDragAndDrop):
653
654 2014-12-03  Benjamin Poulain  <bpoulain@apple.com>
655
656         Get rid of FrameLoaderClient::dispatchWillRequestResource
657         https://bugs.webkit.org/show_bug.cgi?id=139235
658
659         Reviewed by Alexey Proskuryakov.
660
661         It is useless.
662
663         * loader/FrameLoaderClient.h:
664         (WebCore::FrameLoaderClient::dispatchWillRequestResource): Deleted.
665         * loader/cache/CachedResourceLoader.cpp:
666         (WebCore::CachedResourceLoader::requestResource):
667
668 2014-12-03  Myles C. Maxfield  <mmaxfield@apple.com>
669
670         List markers in RTL languages do not draw the first character.
671         https://bugs.webkit.org/show_bug.cgi?id=139244
672
673         Reviewed by Simon Fraser.
674
675         Off-by-one error when reversing the string (from LTR to RTL)
676
677         Test: fast/lists/rtl-marker.html
678
679         * rendering/RenderListMarker.cpp:
680         (WebCore::RenderListMarker::paint):
681
682 2014-12-03  Beth Dakin  <bdakin@apple.com>
683
684         <input> elements get whitespace action menu instead of editable text menu
685         https://bugs.webkit.org/show_bug.cgi?id=139241
686         -and corresponding-
687         rdar://problem/19072083
688
689         Reviewed by Sam Weinig.
690
691         Since we will hit test form controls as form controls, we need a new function to 
692         determine if the hit point is over text inside that form control or not.
693         * WebCore.exp.in:
694         * rendering/HitTestResult.cpp:
695         (WebCore::HitTestResult::isOverTextInsideFormControlElement):
696         * rendering/HitTestResult.h:
697
698 2014-12-03  Tim Horton  <timothy_horton@apple.com>
699
700         Keyboard input should be disabled in the preview popover
701         https://bugs.webkit.org/show_bug.cgi?id=139219
702         <rdar://problem/19052381>
703
704         Reviewed by Anders Carlsson.
705
706         * page/ChromeClient.h:
707         (WebCore::ChromeClient::shouldDispatchFakeMouseMoveEvents):
708         * page/EventHandler.cpp:
709         (WebCore::EventHandler::dispatchFakeMouseMoveEventSoon):
710         Allow ChromeClient to disable the dispatch of "fake" mouseMove events
711         that happens during scrolling.
712
713 2014-12-03  Antti Koivisto  <antti@apple.com>
714
715         Remove genericFamily enum from FontDescription
716         https://bugs.webkit.org/show_bug.cgi?id=139207
717
718         Reviewed by Andreas Kling.
719
720         We use predefined AtomicStrings for generic families. The side enum adds no information.
721
722         * css/CSSFontSelector.cpp:
723         (WebCore::resolveGenericFamily):
724         (WebCore::CSSFontSelector::getFontData):
725
726             Match the existing quirk where the default font can be replaced by @font-face rule but user generic families can't.
727
728         (WebCore::CSSFontSelector::resolvesFamilyFor):
729         (WebCore::fontDataForGenericFamily): Deleted.
730         * css/DeprecatedStyleBuilder.cpp:
731         (WebCore::ApplyPropertyFontFamily::applyInheritValue):
732         (WebCore::ApplyPropertyFontFamily::applyInitialValue):
733         (WebCore::ApplyPropertyFontFamily::applyValue):
734         * css/StyleResolver.cpp:
735         (WebCore::StyleResolver::checkForGenericFamilyChange):
736
737             Remove the explicit monospace check, earlier useFixedDefaultSize check is equivalent.
738
739         (WebCore::StyleResolver::initializeFontStyle):
740         * platform/graphics/FontDescription.h:
741         (WebCore::FontDescription::FontDescription):
742         (WebCore::FontDescription::useFixedDefaultSize):
743         (WebCore::FontDescription::setWeight):
744         (WebCore::FontDescription::equalForTextAutoSizing):
745         (WebCore::FontDescription::operator==):
746         (WebCore::FontDescription::genericFamily): Deleted.
747         (WebCore::FontDescription::setGenericFamily): Deleted.
748         * platform/mac/ThemeMac.mm:
749         (WebCore::ThemeMac::controlFont):
750         * rendering/RenderTheme.cpp:
751         (WebCore::RenderTheme::adjustStyle):
752
753             Reset the lineheight unconditionally for buttons.
754             This always happened before because the explicitly set generic family made the font compare false.
755
756         * rendering/RenderThemeIOS.mm:
757         (WebCore::RenderThemeIOS::systemFont):
758         * rendering/RenderThemeMac.mm:
759         (WebCore::RenderThemeMac::systemFont):
760         (WebCore::RenderThemeMac::setFontFromControlSize):
761         * style/StyleResolveForDocument.cpp:
762         (WebCore::Style::resolveForDocument):
763
764             Resolve document style for final value immediately as it can't be affected by @font-face rules.
765
766 2014-12-03  Zalan Bujtas  <zalan@apple.com>
767
768         ASSERTION: RenderMultiColumnFlowThread::processPossibleSpannerDescendant() when column spanner's parent is not a RenderBlockFlow.
769         https://bugs.webkit.org/show_bug.cgi?id=139188
770         rdar://problem/18502182
771
772         Reviewed by David Hyatt.
773
774         This patch ensures that the validation check for spanner in isValidColumnSpanner() is in synch
775         with the expectation in RenderMultiColumnFlowThread::processPossibleSpannerDescendant().
776         (descendant's parent is expected to be a RenderBlockFlow)
777
778         Test: fast/multicol/svg-content-as-column-spanner-crash.html
779
780         * rendering/RenderMultiColumnFlowThread.cpp:
781         (WebCore::isValidColumnSpanner):
782
783 2014-12-03  peavo@outlook.com  <peavo@outlook.com>
784
785         [TexMap] Redundant method in GraphicsLayerTextureMapper.
786         https://bugs.webkit.org/show_bug.cgi?id=138005
787
788         Reviewed by Alex Christensen.
789
790         The TextureMapperLayer method descendantsOrSelfHaveRunningAnimations() can be used
791         instead of the GraphicsLayerTextureMapper method startedAnimation().
792
793         * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp:
794         (WebCore::GraphicsLayerTextureMapper::GraphicsLayerTextureMapper):
795         (WebCore::GraphicsLayerTextureMapper::addAnimation):
796         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
797
798 2014-12-03  Jeremy Jones  <jeremyj@apple.com>
799
800         Subtitle menu should only appear when useful.
801         https://bugs.webkit.org/show_bug.cgi?id=139133
802
803         Reviewed by Eric Carlson.
804
805         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
806         (-[WebAVPlayerController hasLegibleMediaSelectionOptions]): only enable when there are non default options.
807         (-[WebAVPlayerController hasAudioMediaSelectionOptions]): only enable when there is more than one option.
808
809 2014-12-03  Joanmarie Diggs  <jdiggs@igalia.com>
810
811         AX: [ATK] Inline text elements with accessible object attributes and/or event handlers are not exposed
812         https://bugs.webkit.org/show_bug.cgi?id=139071
813
814         Reviewed by Chris Fleizach.
815
816         Adds a new InlineRole accessibility role type for non-focusable inline
817         elements which have an event handler or attribute suggesting possible
818         inclusion by the platform. This is mapped to ATK_ROLE_STATIC for GTK and
819         EFL. On the Mac, it is currently ignored to preserve existing behavior.
820
821         Added new test cases to the existing roles-exposed.html test.
822
823         * accessibility/AccessibilityObject.cpp:
824         (WebCore::AccessibilityObject::supportsDatetimeAttribute): Added.
825         * accessibility/AccessibilityObject.h: Added InlineRole.
826         * accessibility/AccessibilityRenderObject.cpp:
827         (WebCore::AccessibilityRenderObject::determineAccessibilityRole): Handle InlineRole.
828         * accessibility/atk/AccessibilityObjectAtk.cpp:
829         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): Include InlineRole objects.
830         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
831         (atkRole):
832         * accessibility/mac/AccessibilityObjectMac.mm:
833         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): Ignore InlineRole objects.
834         * html/HTMLTagNames.in: Added 'time'.
835
836 2014-12-03  Jer Noble  <jer.noble@apple.com>
837
838         [Mac] Hang when calling -[AVAsset resolvedURL].
839         https://bugs.webkit.org/show_bug.cgi?id=139223
840
841         Reviewed by Eric Carlson.
842
843         On a particularly slow-loading site, a call to -[AVAsset resolvedURL] can take an arbitrarily long
844         time. Treat this AVAsset property similar to other "metadata" properties, and check the load status
845         of the property before requesting it.
846
847         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
848         (WebCore::MediaPlayerPrivateAVFoundationObjC::hasSingleSecurityOrigin): Check the load state of -resolvedURL.
849         (WebCore::MediaPlayerPrivateAVFoundationObjC::resolvedURL): Ditto.
850         (WebCore::assetMetadataKeyNames): Add @"resolvedURL".
851
852 2014-12-03  Csaba Osztrogonác  <ossy@webkit.org>
853
854         URTBF after r176721 to fix ENABLE(CSS_DEVICE_ADAPTATION) build.
855
856         * css/CSSParser.cpp:
857         (WebCore::CSSParser::parseViewportProperty):
858
859 2014-12-03  Chris Dumez  <cdumez@apple.com>
860
861         Move 'display' CSS property to the new StyleBuilder
862         https://bugs.webkit.org/show_bug.cgi?id=139218
863
864         Reviewed by Antti Koivisto.
865
866         Move 'display' CSS property to the new StyleBuilder.
867
868         No new tests, no behavior change.
869
870         * css/CSSPropertyNames.in:
871         * css/DeprecatedStyleBuilder.cpp:
872         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
873         (WebCore::ApplyPropertyDisplay::isValidDisplayValue): Deleted.
874         (WebCore::ApplyPropertyDisplay::applyInheritValue): Deleted.
875         (WebCore::ApplyPropertyDisplay::applyInitialValue): Deleted.
876         (WebCore::ApplyPropertyDisplay::applyValue): Deleted.
877         (WebCore::ApplyPropertyDisplay::createHandler): Deleted.
878         * css/StyleBuilderCustom.h:
879         (WebCore::StyleBuilderCustom::isValidDisplayValue):
880         (WebCore::StyleBuilderCustom::applyInheritDisplay):
881         (WebCore::StyleBuilderCustom::applyValueDisplay):
882         * css/makeprop.pl:
883         Add support for passing multiple values for Custom option, e.g.:
884         'Custom=Inherit|Value'. This was useful as we did not need custom
885         code for display's initial value.
886
887 2014-12-03  Chris Dumez  <cdumez@apple.com>
888
889         Modernize the CSSParser code
890         https://bugs.webkit.org/show_bug.cgi?id=139209
891
892         Reviewed by Antti Koivisto.
893
894         Modernize the CSSParser code by:
895         - Using more references instead of pointers
896         - Using nullptr instead of 0
897
898         No new tests, no behavior change.
899
900 2014-12-03  David Kilzer  <ddkilzer@apple.com>
901
902         [iOS] REGRESSION (r176622): WebCore fails to link
903
904         Speculative fix for the following build failure:
905
906             Ld WebCore
907             Undefined symbols for architecture armv7s:
908               "__ZN3JSC10IdentifierC1EPNS_9ExecStateERKN3WTF12AtomicStringE", referenced from:
909                   __ZN7WebCoreL24createAccelerationObjectEPKNS_16DeviceMotionData12AccelerationEPN3JSC9ExecStateE in JSDeviceMotionEventCustom.o
910
911         * bindings/js/JSDeviceMotionEventCustom.cpp: Include
912         <runtime/IdentifierInlines.h> to define missing symbol.
913
914 2014-12-02  Dean Jackson  <dino@apple.com>
915
916         [Media] Audio content shouldn't have fullscreen buttons, even if in a video element
917         https://bugs.webkit.org/show_bug.cgi?id=139200
918         <rdar://problem/18914506>
919
920         Reviewed by Eric Carlson.
921
922         An audio-only resource, even if loaded into a <video> element, should not
923         present the fullscreen or optimised fullscreen controls. This includes a
924         MediaDocument, which is always a <video> element. We can detect this by
925         examining the length of the videoTracks property as our content loads.
926
927         Test: media/audio-as-video-fullscreen.html
928
929         * Modules/mediacontrols/mediaControlsApple.js:
930         (Controller): Initialize a hasVisualMedia to false.
931         (Controller.prototype.handleReadyStateChange): If we see a videoTrack, hasVisualMedia is now true.
932         (Controller.prototype.updateFullscreenButtons): Merge the updateFullscreenButton and
933         updateOptimizedFullscreenButton methods into this single spot, and check for
934         hasVisualMedia.
935         (Controller.prototype.updateFullscreenButton): Deleted.
936         (Controller.prototype.updateOptimizedFullscreenButton): Deleted.
937
938         * Modules/mediacontrols/mediaControlsBase.js: Do the same for the other ports.
939
940 2014-12-02  Dean Jackson  <dino@apple.com>
941
942         Missing support for innerHTML on SVGElement
943         https://bugs.webkit.org/show_bug.cgi?id=136903
944
945         Unreviewed followup from r176630. Minor style nits that I missed in my review.
946
947         * dom/Element.h: Remove unnecessary parameter name.
948         * html/parser/HTMLTreeBuilder.cpp: Whitespace cleanup.
949         (WebCore::HTMLTreeBuilder::adjustedCurrentStackItem):
950
951 2014-12-03  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
952
953         [EFL] Add subtle crypto to the build system
954         https://bugs.webkit.org/show_bug.cgi?id=138612
955
956         Reviewed by Csaba Osztrogonác.
957
958         It is obvious to make Efl use GnuTLS as well,
959         and since there seems no reason why to separate
960         Efl and Gtk implementations from each other, I
961         also propose renaming the gtk directory and file
962         suffixes to gnutls.
963
964         No new tests needed.
965
966         * PlatformEfl.cmake:
967         * PlatformGTK.cmake:
968         * crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp.
969         (WebCore::CryptoAlgorithmAES_CBC::platformEncrypt):
970         (WebCore::CryptoAlgorithmAES_CBC::platformDecrypt):
971         * crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_KWGtk.cpp.
972         (WebCore::CryptoAlgorithmAES_KW::platformEncrypt):
973         (WebCore::CryptoAlgorithmAES_KW::platformDecrypt):
974         * crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmHMACGtk.cpp.
975         (WebCore::getGnutlsDigestAlgorithm):
976         (WebCore::calculateSignature):
977         (WebCore::CryptoAlgorithmHMAC::platformSign):
978         (WebCore::CryptoAlgorithmHMAC::platformVerify):
979         * crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSAES_PKCS1_v1_5Gtk.cpp.
980         (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt):
981         (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformDecrypt):
982         * crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSASSA_PKCS1_v1_5Gtk.cpp.
983         (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign):
984         (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformVerify):
985         * crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSA_OAEPGtk.cpp.
986         (WebCore::CryptoAlgorithmRSA_OAEP::platformEncrypt):
987         (WebCore::CryptoAlgorithmRSA_OAEP::platformDecrypt):
988         * crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRegistryGtk.cpp.
989         (WebCore::CryptoAlgorithmRegistry::platformRegisterAlgorithms):
990         * crypto/gnutls/CryptoDigestGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoDigestGtk.cpp.
991         (WebCore::CryptoDigest::CryptoDigest):
992         (WebCore::CryptoDigest::~CryptoDigest):
993         (WebCore::CryptoDigest::create):
994         (WebCore::CryptoDigest::addBytes):
995         (WebCore::CryptoDigest::computeHash):
996         * crypto/gnutls/CryptoKeyRSAGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoKeyRSAGtk.cpp.
997         (WebCore::CryptoKeyRSA::CryptoKeyRSA):
998         (WebCore::CryptoKeyRSA::create):
999         (WebCore::CryptoKeyRSA::~CryptoKeyRSA):
1000         (WebCore::CryptoKeyRSA::restrictToHash):
1001         (WebCore::CryptoKeyRSA::isRestrictedToHash):
1002         (WebCore::CryptoKeyRSA::keySizeInBits):
1003         (WebCore::CryptoKeyRSA::buildAlgorithmDescription):
1004         (WebCore::CryptoKeyRSA::exportData):
1005         (WebCore::CryptoKeyRSA::generatePair):
1006         * crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/SerializedCryptoKeyWrapGtk.cpp.
1007         (WebCore::getDefaultWebCryptoMasterKey):
1008         (WebCore::wrapSerializedCryptoKey):
1009         (WebCore::unwrapSerializedCryptoKey):
1010         * crypto/keys/CryptoKeyRSA.h:
1011
1012 2014-12-02  Benjamin Poulain  <benjamin@webkit.org>
1013
1014         Little cleanup of the default stylesheet
1015         https://bugs.webkit.org/show_bug.cgi?id=139168
1016
1017         Reviewed by Antti Koivisto.
1018
1019         The default stylesheet has a lot of historical junk that need cleaning. This patch addresses
1020         only the bits that do not change behaviors and have positive perf and readability impact.
1021
1022         I have limited :matches() to attributes for now. The idea is to only target
1023         simple selectors that are not used for filtering by the collectors.
1024         We should eventually clean up more cases, one thing at a time.
1025
1026         Tests: fast/css/map-tag-default-display.html
1027                fast/selectors/map-tag-default-display.html
1028
1029         * css/html.css:
1030         (map): Deleted.
1031         map was explicitely setting its display to inline. Remove that since it is the default.
1032
1033         (head): Deleted.
1034         (meta): Deleted.
1035         (title): Deleted.
1036         (link): Deleted.
1037         (style): Deleted.
1038         (script): Deleted.
1039         (div): Deleted.
1040         (layer): Deleted.
1041         (article, aside, footer, header, hgroup, main, nav, section): Deleted.
1042         (address): Deleted.
1043         (head, link, meta, script, style, title):
1044         (address, article, aside, div, footer, header, hgroup, layer, main, nav, section):
1045         Group the standard blocks in a single rule.
1046
1047         (input:matches([type="hidden"], [type="image"], [type="file"])):
1048         (input:matches([type="radio"], [type="checkbox"])):
1049         (input:matches([type="button"], [type="submit"], [type="reset"])):
1050         (input:matches([type="button"], [type="submit"], [type="reset"]), input[type="file"]::-webkit-file-upload-button, button):
1051         (input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]::-webkit-file-upload-button:active, button:active):
1052         (input:matches([type="button"], [type="submit"], [type="reset"]):active, input[type="file"]:active::-webkit-file-upload-button, button:active):
1053         (input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled):
1054         (input:matches([type="checkbox"], [type="radio"]):checked):
1055         (input:matches([type="checkbox"], [type="radio"]):checked:disabled):
1056         (select:matches([size], [multiple], [size][multiple])):
1057         (select:matches([size="0"], [size="1"])):
1058         (input[type="hidden"], input[type="image"], input[type="file"]): Deleted.
1059         (input[type="radio"], input[type="checkbox"]): Deleted.
1060         (input[type="button"], input[type="submit"], input[type="reset"]): Deleted.
1061         (input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button): Deleted.
1062         (input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]::-webkit-file-upload-button:active, button:active): Deleted.
1063         (input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active, input[type="file"]:active::-webkit-file-upload-button, button:active): Deleted.
1064         (input[type="button"]:active:disabled, input[type="submit"]:active:disabled, input[type="reset"]:active:disabled, input[type="file"]:active:disabled::-webkit-file-upload-button, button:active:disabled): Deleted.
1065         (input[type="checkbox"]:checked, input[type="radio"]:checked): Deleted.
1066         (input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled): Deleted.
1067         (select[size][multiple]): Deleted.
1068         (select[size="1"]): Deleted.
1069         Group every selector lists that only differentiates complex selectors through attributes
1070         into a simple complex selector with :matches().
1071
1072 2014-12-02  Mark Lam  <mark.lam@apple.com>
1073
1074         Rolling out r176592, r176603, r176616, and r176705 until build and perf issues are resolved.
1075         https://bugs.webkit.org/show_bug.cgi?id=138821
1076
1077         Not reviewed.
1078
1079         * bindings/js/SerializedScriptValue.cpp:
1080         (WebCore::CloneDeserializer::deserializeString):
1081         * editing/TextIterator.cpp:
1082         (WebCore::SearchBuffer::isBadMatch):
1083         * page/mac/ServicesOverlayController.mm:
1084         (WebCore::ServicesOverlayController::buildSelectionHighlight):
1085         * platform/graphics/SegmentedFontData.cpp:
1086         (WebCore::SegmentedFontData::fontDataForCharacter):
1087         (WebCore::SegmentedFontData::containsCharacter):
1088         (WebCore::SegmentedFontData::isLoading):
1089         * platform/graphics/WOFFFileFormat.cpp:
1090         (WebCore::convertWOFFToSfnt):
1091         * platform/graphics/cairo/GradientCairo.cpp:
1092         (WebCore::Gradient::platformGradient):
1093         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1094         (WebCore::GIFImageDecoder::clearFrameBufferCache):
1095         * rendering/RenderBox.cpp:
1096         (WebCore::RenderBox::paintFillLayers):
1097         * rendering/style/GridResolvedPosition.cpp:
1098         (WebCore::firstNamedGridLineBeforePosition):
1099         (WebCore::GridResolvedPosition::resolveRowEndColumnEndNamedGridLinePositionAgainstOppositePosition):
1100         * svg/SVGFontElement.cpp:
1101         (WebCore::kerningForPairOfStringsAndGlyphs):
1102         * svg/SVGPathByteStream.h:
1103         (WebCore::SVGPathByteStream::append):
1104         * xml/XPathNodeSet.h:
1105         (WebCore::XPath::NodeSet::begin):
1106         (WebCore::XPath::NodeSet::end):
1107
1108 2014-12-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1109
1110         Fix build break EFL port since r176696
1111         https://bugs.webkit.org/show_bug.cgi?id=139215
1112
1113         Unreviewed, build fix for EFL port.
1114
1115         * storage/StorageNamespaceProvider.h: Include SecurityOriginHash.h from WebCore/page directory.
1116
1117 2014-12-02  Joanmarie Diggs  <jdiggs@igalia.com>
1118
1119         AX: [ATK] Table captions and table rows are missing from the accessible hierarchy
1120         https://bugs.webkit.org/show_bug.cgi?id=139005
1121
1122         Reviewed by Chris Fleizach.
1123
1124         Expose table captions and rows via ATK. Accomplishing the former is done
1125         by role mapping and inclusion of the object as a child of the table for
1126         ATK. Accomplishing the latter was mostly a matter of deleting all the ATK
1127         platform code that had been forcing rows to be ignored. Because captions
1128         are not being exposed on the Mac, they are now explicitly being ignored
1129         for that platform.
1130
1131         Tests: accessibility/aria-table-hierarchy.html
1132                accessibility/table-hierarchy.html
1133
1134         * accessibility/AccessibilityObject.h:
1135         * accessibility/AccessibilityRenderObject.cpp:
1136         (WebCore::AccessibilityRenderObject::determineAccessibilityRole): Added CaptionRole.
1137         * accessibility/AccessibilityTable.cpp:
1138         (WebCore::AccessibilityTable::addChildren): Include non-ignored captions as table children.
1139         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1140         (webkitAccessibleGetNChildren): Removed special handling for tables.
1141         (webkitAccessibleRefChild): Removed special handling for tables.
1142         (webkitAccessibleGetIndexInParent): Removed special handling for table cells.
1143         (atkRole): Corrected broken mapping for RowRole.
1144         (getNChildrenForTable): Deleted.
1145         (getChildForTable): Deleted.
1146         (getIndexInParentForCellInRow): Deleted.
1147         * accessibility/mac/AccessibilityObjectMac.mm:
1148         (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): Ignore captions as table children.
1149
1150 2014-12-02  Alexey Proskuryakov  <ap@apple.com>
1151
1152         http/tests/appcache/main-resource-fallback-for-network-error-crash.html can break subsequent tests
1153         https://bugs.webkit.org/show_bug.cgi?id=139149
1154
1155         Reviewed by Anders Carlsson.
1156
1157         * WebCore.exp.in: Added ApplicationCache::deleteAllCaches.
1158
1159         * loader/appcache/ApplicationCache.h:
1160         * loader/appcache/ApplicationCache.cpp:
1161         (WebCore::ApplicationCache::deleteAllCaches): Added.
1162
1163         * loader/appcache/ApplicationCacheStorage.cpp:
1164         (WebCore::ApplicationCacheStorage::getManifestURLs): Removed logging. It is OK to
1165         have this function called when there is no database file.
1166
1167         * loader/appcache/ApplicationCacheStorage.h: Renamed manifestURLs to getManifestURLs,
1168         because WebKit style.
1169
1170 2014-12-02  Tim Horton  <timothy_horton@apple.com>
1171
1172         Remove a SnowLeopard-era quirk for QuickLook
1173         https://bugs.webkit.org/show_bug.cgi?id=139208
1174         <rdar://problem/19121822>
1175
1176         Reviewed by Alexey Proskuryakov.
1177
1178         * WebCore.exp.in:
1179         * WebCore.xcodeproj/project.pbxproj:
1180         * loader/EmptyClients.h:
1181         * loader/FrameLoader.cpp:
1182         (WebCore::FrameLoader::subresourceCachePolicy):
1183         * loader/FrameLoaderClient.h:
1184         * platform/mac/QuickLookMac.h: Removed.
1185         * platform/mac/QuickLookMac.mm: Removed.
1186
1187 2014-12-02  Anders Carlsson  <andersca@apple.com>
1188
1189         Begin stubbing out a StorageNamespaceProvider class
1190         https://bugs.webkit.org/show_bug.cgi?id=139203
1191
1192         Reviewed by Tim Horton.
1193
1194         * CMakeLists.txt:
1195         * WebCore.vcxproj/WebCore.vcxproj:
1196         * WebCore.vcxproj/WebCore.vcxproj.filters:
1197         * WebCore.xcodeproj/project.pbxproj:
1198         Add new files.
1199
1200         * page/DOMWindow.cpp:
1201         (WebCore::DOMWindow::localStorage):
1202         If the page has a storage namespace provider, get the local storage from it.
1203
1204         * page/Page.cpp:
1205         (WebCore::Page::Page):
1206         Move the storage namespace provider from the configuration.
1207
1208         (WebCore::Page::setStorageNamespaceProvider):
1209         Add a setter. This will be used by setGroupName.
1210
1211         * page/Page.h:
1212         (WebCore::Page::storageNamespaceProvider):
1213         Add a getter.
1214
1215         * page/PageConfiguration.cpp:
1216         * page/PageConfiguration.h:
1217         Add a storage namespace provider member.
1218
1219         * storage/StorageNamespaceProvider.cpp:
1220         (WebCore::StorageNamespaceProvider::StorageNamespaceProvider):
1221         (WebCore::StorageNamespaceProvider::~StorageNamespaceProvider):
1222         (WebCore::StorageNamespaceProvider::addPage):
1223         (WebCore::StorageNamespaceProvider::removePage):
1224         (WebCore::StorageNamespaceProvider::localStorageNamespace):
1225         (WebCore::StorageNamespaceProvider::transientLocalStorageNamespace):
1226         * storage/StorageNamespaceProvider.h:
1227         Stub out a storage namespace provider class.
1228
1229 2014-12-02  Beth Dakin  <bdakin@apple.com>
1230
1231         More build fixing.
1232
1233         * platform/spi/mac/QuickLookMacSPI.h:
1234
1235 2014-12-02  Beth Dakin  <bdakin@apple.com>
1236
1237         Another build fix.
1238
1239         * platform/spi/mac/NSMenuSPI.h:
1240
1241 2014-12-02  Beth Dakin  <bdakin@apple.com>
1242
1243         Speculative build fix.
1244
1245         * platform/spi/mac/QuickLookMacSPI.h:
1246
1247 2014-12-02  Beth Dakin  <bdakin@apple.com>
1248
1249         Speculative build fix.
1250
1251         * platform/spi/mac/QuickLookMacSPI.h:
1252
1253 2014-12-02  Eric Carlson  <eric.carlson@apple.com>
1254
1255         Unreviewed, fix typo introduced in r176673.
1256
1257         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1258         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration):
1259
1260 2014-12-02  Beth Dakin  <bdakin@apple.com>
1261
1262         Should use standardQuickLookMenuItem for apps that don't implement customizations
1263         https://bugs.webkit.org/show_bug.cgi?id=139193
1264         -and corresponding-
1265         rdar://problem/18944696
1266
1267         Reviewed by Anders Carlsson.
1268
1269         New SPI headers.
1270         * WebCore.xcodeproj/project.pbxproj:
1271         * platform/spi/mac/NSMenuSPI.h: Added.
1272         * platform/spi/mac/QuickLookMacSPI.h: Added.
1273
1274 2014-12-02  Gavin Barraclough  <barraclough@apple.com>
1275
1276         Generalize PageActivityAssertionToken
1277         https://bugs.webkit.org/show_bug.cgi?id=139106
1278
1279         Reviewed by Sam Weinig.
1280
1281         PageActivityAssertionToken is a RAII mechanism implementing a counter, used by PageThrottler
1282         to count user visible activity in progress on the page (currently page load and media playback).
1283         Use of an RAII type is prevents a number of possible errors, including double counting a single
1284         media element, or failing to decrement the count after a media element has been deallocated.
1285
1286         The current implementation has a number of drawbacks that have been addressed by this refactoring:
1287          - specific to single use in PageThrottler class - not reusable.
1288          - incomplete encapsulation - the counter and WeakPtrFactory that comprise the current implementation
1289            are not encapsulated (are in the client type, PageThrottler).
1290          - tokens are not shared - PageActivityAssertionToken instances are managed by std::unique, every
1291            increment requires an object allocation.
1292          - redundancy - the current implementation uses a WeakPtr to safely reference the PageThrottler, this
1293            is internally implemented using a reference counted type, resulting in two counters being
1294            incremented (one in the PageActivityAssertionToken, one in the PageThrottler).
1295
1296         In the reimplementation:
1297          - a callback is provided via a lambda function, which allows for easy reuse without a lot of
1298            boilerplate code.
1299          - the counter, callback and ownership of the otherwise weakly-owned token is encapsulated within the
1300            RefCounter type.
1301          - a single count within RefCounter::Count stores the counter value, and also manage the lifetime
1302            of this object.
1303          - standard RefPtrs are used to manage references to the RefCounter::Count.
1304
1305         * WebCore.xcodeproj/project.pbxproj:
1306             - removed PageActivityAssertionToken.cpp/.h
1307         * html/HTMLMediaElement.cpp:
1308             - removed PageActivityAssertionToken.h
1309         * html/HTMLMediaElement.h:
1310             - std::unique_ptr<PageActivityAssertionToken> -> RefPtr<RefCounter::Count>
1311         * loader/FrameLoader.cpp:
1312             - removed PageActivityAssertionToken.h
1313         * loader/FrameLoader.h:
1314             - std::unique_ptr<PageActivityAssertionToken> -> RefPtr<RefCounter::Count>
1315         * loader/SubresourceLoader.cpp:
1316             - removed PageActivityAssertionToken.h
1317         * loader/SubresourceLoader.h:
1318             - removed class PageActivityAssertionToken
1319         * page/Page.cpp:
1320             - removed PageActivityAssertionToken.h
1321         (WebCore::Page::Page):
1322             - removed Page* parameter to PageThrottler
1323         * page/Page.h:
1324             - removed class PageActivityAssertionToken
1325         * page/PageActivityAssertionToken.cpp: Removed.
1326         * page/PageActivityAssertionToken.h: Removed.
1327             - removed PageActivityAssertionToken.cpp/.h
1328         * page/PageThrottler.cpp:
1329         (WebCore::PageThrottler::PageThrottler):
1330             - removed m_page, m_weakPtrFactory, m_activityCount; added m_pageActivityCounter.
1331         (WebCore::PageThrottler::mediaActivityToken):
1332             - std::unique_ptr<PageActivityAssertionToken> -> PassRefPtr<RefCounter::Count>
1333         (WebCore::PageThrottler::pageLoadActivityToken):
1334             - std::unique_ptr<PageActivityAssertionToken> -> PassRefPtr<RefCounter::Count>
1335         (WebCore::PageThrottler::pageActivityCounterValueDidChange):
1336             - merged functionality of incrementActivityCount/decrementActivityCount
1337         (WebCore::PageThrottler::incrementActivityCount): Deleted.
1338             - see pageActivityCounterValueDidChange
1339         (WebCore::PageThrottler::decrementActivityCount): Deleted.
1340             - see pageActivityCounterValueDidChange
1341         * page/PageThrottler.h:
1342         (WebCore::PageThrottler::weakPtr): Deleted.
1343             - no longer required; this functionality is now encapsulated within RefCounter.
1344
1345 2014-12-02  Tim Horton  <timothy_horton@apple.com>
1346
1347         Always show the arrow for text selection services
1348         https://bugs.webkit.org/show_bug.cgi?id=139191
1349         <rdar://problem/18903995>
1350
1351         Reviewed by Anders Carlsson.
1352
1353         * platform/spi/mac/DataDetectorsSPI.h:
1354         * page/mac/ServicesOverlayController.mm:
1355         Move a few things to DataDetectorsSPI.h.
1356
1357         (WebCore::ServicesOverlayController::buildPhoneNumberHighlights):
1358         (WebCore::ServicesOverlayController::buildSelectionHighlight):
1359         Make use of the real DDHighlightStyle names.
1360         Add DDHighlightStyleButtonShowAlways for selection services.
1361
1362 2014-12-02  Anders Carlsson  <andersca@apple.com>
1363
1364         Fix iOS build.
1365
1366         * WebCore.exp.in:
1367
1368 2014-12-02  Chris Dumez  <cdumez@apple.com>
1369
1370         Crash when setting 'flex' CSS property to 'calc(2 * 3) calc(2 * 3)'
1371         https://bugs.webkit.org/show_bug.cgi?id=139162
1372
1373         Reviewed by Darin Adler.
1374
1375         Add support for calculated values in 'flex' CSS property.
1376         Previously, those did not work in release builds, and were hitting
1377         an assertion in debug builds.
1378
1379         Test: fast/css/flex-calculated-value.html
1380
1381         * css/CSSParser.cpp:
1382         (WebCore::CSSParser::validCalculationUnit):
1383         Do not call RefPtr::release() as we are not interested in the return
1384         value. Assign nullptr to the member instead.
1385
1386         (WebCore::CSSParser::parseValue):
1387         (WebCore::CSSParser::parseFillPositionComponent):
1388         (WebCore::CSSParser::parseCubicBezierTimingFunctionValue):
1389         (WebCore::CSSParser::parseFontWeight):
1390         (WebCore::CSSParser::parsedDouble):
1391         (WebCore::CSSParser::colorIntFromValue):
1392         (WebCore::CSSParser::parseColorParameters):
1393         (WebCore::CSSParser::parseHSLParameters):
1394         (WebCore::CSSParser::parseFlex):
1395         * css/CSSParser.h:
1396
1397 2014-12-02  Eric Carlson  <eric.carlson@apple.com>
1398
1399         Fix logging typo
1400         https://bugs.webkit.org/show_bug.cgi?id=139182
1401
1402         Reviewed by Alexey Proskuryakov.
1403
1404         No new tests, only logging code is changed.
1405
1406         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1407         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformDuration): Don't use %f to log a string.
1408
1409 2014-12-02  Anders Carlsson  <andersca@apple.com>
1410
1411         Get rid of the WinINet based network implementation
1412         https://bugs.webkit.org/show_bug.cgi?id=139187
1413
1414         Reviewed by Andreas Kling.
1415
1416         This code was only used by the Windows CE port. Now it's unused.
1417
1418         * platform/network/ResourceHandle.h:
1419         * platform/network/ResourceHandleInternal.h:
1420         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1421         * platform/network/win/AuthenticationChallenge.h: Removed.
1422         * platform/network/win/CookieJarWin.cpp: Removed.
1423         * platform/network/win/CredentialStorageWin.cpp: Removed.
1424         * platform/network/win/ProxyServerWin.cpp: Removed.
1425         * platform/network/win/ResourceError.h: Removed.
1426         * platform/network/win/ResourceHandleWin.cpp: Removed.
1427         * platform/network/win/ResourceRequest.h: Removed.
1428         * platform/network/win/ResourceResponse.h: Removed.
1429         * platform/network/win/SocketStreamError.h: Removed.
1430         * platform/network/win/SocketStreamHandle.h: Removed.
1431         * platform/network/win/SocketStreamHandleWin.cpp: Removed.
1432
1433 2014-12-02  Chris Dumez  <cdumez@apple.com>
1434
1435         Crash when setting 'column-span' CSS property to 'calc(2 * 3)'
1436         https://bugs.webkit.org/show_bug.cgi?id=139170
1437
1438         Reviewed by Darin Adler.
1439
1440         Add support for calculated values for 'column-span' and 'column-width'
1441         CSS properties. Previously, these were not working in release builds
1442         and hitting assertions in debug builds.
1443
1444         Tests: fast/css/column-width-calculated-value.html
1445                fast/css/webkit-column-span-calculated-value.html
1446
1447         * css/CSSParser.cpp:
1448         (WebCore::CSSParser::parseValue):
1449
1450 2014-12-02  Anders Carlsson  <andersca@apple.com>
1451
1452         Remove visited link handling from PageGroup
1453         https://bugs.webkit.org/show_bug.cgi?id=139185
1454
1455         Reviewed by Sam Weinig.
1456
1457         * CMakeLists.txt:
1458         * WebCore.exp.in:
1459         * WebCore.vcxproj/WebCore.vcxproj:
1460         * WebCore.vcxproj/WebCore.vcxproj.filters:
1461         * WebCore.xcodeproj/project.pbxproj:
1462         * loader/HistoryController.cpp:
1463         * page/Chrome.cpp:
1464         (WebCore::ChromeClient::populateVisitedLinks): Deleted.
1465         * page/ChromeClient.h:
1466         * page/DefaultVisitedLinkStore.cpp: Removed.
1467         * page/DefaultVisitedLinkStore.h: Removed.
1468         * page/Page.cpp:
1469         (WebCore::Page::Page):
1470         (WebCore::Page::~Page):
1471         (WebCore::Page::visitedLinkStore):
1472         (WebCore::Page::setVisitedLinkStore):
1473         (WebCore::Page::removeAllVisitedLinks): Deleted.
1474         * page/Page.h:
1475         * page/PageGroup.cpp:
1476         (WebCore::PageGroup::PageGroup):
1477         (WebCore::PageGroup::visitedLinkStore): Deleted.
1478         (WebCore::PageGroup::isLinkVisited): Deleted.
1479         (WebCore::PageGroup::addVisitedLinkHash): Deleted.
1480         (WebCore::PageGroup::addVisitedLink): Deleted.
1481         (WebCore::PageGroup::removeVisitedLink): Deleted.
1482         (WebCore::PageGroup::removeVisitedLinks): Deleted.
1483         (WebCore::PageGroup::removeAllVisitedLinks): Deleted.
1484         (WebCore::PageGroup::setShouldTrackVisitedLinks): Deleted.
1485         * page/PageGroup.h:
1486
1487 2014-12-02  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
1488
1489         Use references instead of pointers in EditingStyle
1490         https://bugs.webkit.org/show_bug.cgi?id=137918
1491
1492         Reviewed by Darin Adler.
1493
1494         * editing/EditingStyle.cpp:
1495         (WebCore::extractPropertyValue):
1496         (WebCore::identifierForStyleProperty):
1497         (WebCore::textColorFromStyle):
1498         (WebCore::backgroundColorFromStyle):
1499         (WebCore::textAlignResolvingStartAndEnd):
1500         (WebCore::EditingStyle::triStateOfStyle):
1501         (WebCore::EditingStyle::styleIsPresentInComputedStyleOfNode):
1502         (WebCore::EditingStyle::prepareToApplyAt):
1503         (WebCore::EditingStyle::removeStyleFromRulesAndContext):
1504         (WebCore::StyleChange::StyleChange):
1505         (WebCore::setTextDecorationProperty):
1506         (WebCore::StyleChange::extractTextStyles):
1507         (WebCore::diffTextDecorations):
1508         (WebCore::fontWeightIsBold):
1509         (WebCore::extractPropertiesNotIn):
1510         (WebCore::getPropertiesNotIn):
1511         * editing/EditingStyle.h:
1512
1513 2014-12-02  Bartlomiej Gajda  <b.gajda@samsung.com>
1514
1515         [GStreamer] Media Source sending seek event fails.
1516         https://bugs.webkit.org/show_bug.cgi?id=139181
1517
1518         Reviewed by Philippe Normand.
1519
1520         There were callbacks connected to app_src on 'seek', but if stream type is not seekable, they would never launch,
1521         and seeking (as in MediaPlayerPrivateGStreamer::doSeek) fails.
1522
1523         No new tests needed.
1524
1525         * platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp:
1526         (webkit_media_src_init):
1527
1528 2014-12-02  Chris Dumez  <cdumez@apple.com>
1529
1530         Move 'font-family' CSS property to the new StyleBuilder
1531         https://bugs.webkit.org/show_bug.cgi?id=139172
1532
1533         Reviewed by Antti Koivisto.
1534
1535         Move 'font-family' CSS property to the new StyleBuilder by using
1536         custom code.
1537
1538         No new tests, no behavior change.
1539
1540         * css/CSSPropertyNames.in:
1541         * css/DeprecatedStyleBuilder.cpp:
1542         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
1543         (WebCore::ApplyPropertyFontFamily::applyInheritValue): Deleted.
1544         (WebCore::ApplyPropertyFontFamily::applyInitialValue): Deleted.
1545         (WebCore::ApplyPropertyFontFamily::applyValue): Deleted.
1546         (WebCore::ApplyPropertyFontFamily::createHandler): Deleted.
1547         * css/StyleBuilderCustom.h:
1548         (WebCore::StyleBuilderCustom::applyInitialFontFamily):
1549         (WebCore::StyleBuilderCustom::applyInheritFontFamily):
1550         (WebCore::StyleBuilderCustom::applyValueFontFamily):
1551
1552 2014-12-02  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
1553
1554         Fix class was previously declared as a struct warnings
1555         https://bugs.webkit.org/show_bug.cgi?id=139131
1556
1557         Reviewed by Csaba Osztrogonác.
1558
1559         No new tests needed.
1560
1561         * platform/graphics/texmap/TextureMapperGL.h:
1562
1563 2014-12-02  Sylvain Galineau  <galineau@adobe.com>
1564
1565         Missing support for innerHTML on SVGElement
1566         https://bugs.webkit.org/show_bug.cgi?id=136903
1567
1568         Reviewed by Dean Jackson.
1569
1570         Two parts to this patch:
1571         1. Move innerHTML/outerHTML to Element so SVG elements can inherit them, per https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#innerhtml
1572         2. Make sure fragment insertion is processed relative to the proper node, per http://www.whatwg.org/specs/web-apps/current-work/#adjusted-current-node
1573
1574         The latter part was ported over from Blink. 
1575
1576         Test: svg/in-html/svg-inner-html.html
1577
1578         * bindings/objc/PublicDOMInterfaces.h: Move innerHTML/outerHTML to Element.
1579         * dom/Element.cpp:
1580         (WebCore::Element::mergeWithNextTextNode): Helper used by Element::innerHTML/outerHTML as well as HTMLElement::innerText/outerText; moved to Element as protected static.
1581         (WebCore::Element::innerHTML): Moved from HTMLElement.
1582         (WebCore::Element::outerHTML): Moved from HTMLElement.
1583         (WebCore::Element::setOuterHTML): Moved from HTMLElement.
1584         (WebCore::Element::setInnerHTML): Moved from HTMLElement.
1585         * dom/Element.h: 
1586         * dom/Element.idl:
1587         * html/HTMLElement.cpp:
1588         (WebCore::HTMLElement::innerHTML): Deleted.
1589         (WebCore::HTMLElement::outerHTML): Deleted.
1590         (WebCore::HTMLElement::setInnerHTML): Deleted.
1591         (WebCore::mergeWithNextTextNode): Deleted.
1592         (WebCore::HTMLElement::setOuterHTML): Deleted.
1593         * html/HTMLElement.h:
1594         * html/HTMLElement.idl:
1595         * html/parser/HTMLTreeBuilder.cpp:
1596         (WebCore::HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext): no more m_contextElement.
1597         (WebCore::HTMLTreeBuilder::constructTree): read namespace from adjusted current node.
1598         (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): use contextElementStackItem for insertion.
1599         (WebCore::HTMLTreeBuilder::adjustedCurrentStackItem): compute adjusted current node.
1600         (WebCore::HTMLTreeBuilder::shouldProcessTokenInForeignContent): use adjusted current node for context.
1601         (WebCore::HTMLTreeBuilder::processTokenInForeignContent): use adjusted current node to read namespace.
1602         * html/parser/HTMLTreeBuilder.h:
1603         (WebCore::HTMLTreeBuilder::FragmentParsingContext::contextElement): Deleted. Read from contextElementStackItem.
1604         (WebCore::HTMLTreeBuilder::FragmentParsingContext::contextElementStackItem): Added.
1605
1606 2014-11-20  Jeffrey Pfau  <jpfau@apple.com>
1607
1608         Add cancelable version of willSendRequest
1609         https://bugs.webkit.org/show_bug.cgi?id=138987
1610
1611         Reviewed by Anders Carlsson.
1612
1613         Covered by existing tests.
1614
1615         * loader/ResourceLoader.cpp:
1616         (WebCore::ResourceLoader::willSendRequest):
1617         * loader/ResourceLoader.h:
1618
1619 2014-12-01  Benjamin Poulain  <benjamin@webkit.org>
1620
1621         Add the dynamic specificity of the selector list argument when matching :nth-child() and :nth-last-child()
1622         https://bugs.webkit.org/show_bug.cgi?id=139001
1623
1624         Reviewed by Andreas Kling.
1625
1626         When matching :nth-child(An+B of selector list) or :nth-last-child(An+B of selector list),
1627         we were previously ignoring the arguments.
1628
1629         That behavior seems to be confusing for users. We made the proposal to include the selector list
1630         like when using :matches():
1631             http://lists.w3.org/Archives/Public/www-style/2014Oct/0533.html
1632         David Baron also agrees with this behavior:
1633             http://lists.w3.org/Archives/Public/www-style/2014Oct/0534.html
1634
1635         This patch adds the specificity computation.
1636
1637         Tests: fast/css/nth-child-specificity-1.html
1638                fast/css/nth-child-specificity-2.html
1639                fast/css/nth-last-child-specificity-1.html
1640                fast/css/nth-last-child-specificity-2.html
1641
1642         * css/CSSSelector.cpp:
1643         (WebCore::simpleSelectorFunctionalPseudoClassStaticSpecificity):
1644         * css/SelectorChecker.cpp:
1645         (WebCore::SelectorChecker::checkOne):
1646         (WebCore::SelectorChecker::matchSelectorList):
1647         * css/SelectorChecker.h:
1648         * cssjit/SelectorCompiler.cpp:
1649         (WebCore::SelectorCompiler::addPseudoClassType):
1650
1651 2014-12-01  Chris Dumez  <cdumez@apple.com>
1652
1653         Move 'text-shadow' / 'box-shadow' / '-webkit-box-shadow' to the new StyleBuilder
1654         https://bugs.webkit.org/show_bug.cgi?id=138938
1655
1656         Reviewed by Sam Weinig.
1657
1658         Move 'text-shadow' / 'box-shadow' / '-webkit-box-shadow' CSS properties
1659         from StyleResolver to the new StyleBuilder by using custom code.
1660
1661         No new tests, no behavior change.
1662
1663         * css/CSSPropertyNames.in:
1664         * css/StyleBuilderCustom.h:
1665         (WebCore::StyleBuilderCustom::applyTextOrBoxShadowValue):
1666         (WebCore::StyleBuilderCustom::applyInitialTextShadow):
1667         (WebCore::StyleBuilderCustom::applyInheritTextShadow):
1668         (WebCore::StyleBuilderCustom::applyValueTextShadow):
1669         (WebCore::StyleBuilderCustom::applyInitialBoxShadow):
1670         (WebCore::StyleBuilderCustom::applyInheritBoxShadow):
1671         (WebCore::StyleBuilderCustom::applyValueBoxShadow):
1672         (WebCore::StyleBuilderCustom::applyInitialWebkitBoxShadow):
1673         (WebCore::StyleBuilderCustom::applyInheritWebkitBoxShadow):
1674         (WebCore::StyleBuilderCustom::applyValueWebkitBoxShadow):
1675         * css/StyleResolver.cpp:
1676         (WebCore::StyleResolver::applyProperty):
1677
1678 2014-12-01  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1679
1680         [EFL] Add a ENABLE_CSS_SCROLL_SNAP macro to CMake build system
1681         https://bugs.webkit.org/show_bug.cgi?id=139085
1682
1683         Reviewed by Andreas Kling.
1684
1685         * PlatformEfl.cmake: 
1686             Include page/scrolling/AxisScrollSnapOffsets.cpp to EFL build files to fix build break.
1687
1688 2014-12-01  Zalan Bujtas  <zalan@apple.com>
1689
1690         Twitter avatar moves when hovering/unhovering the "follow" button.
1691         https://bugs.webkit.org/show_bug.cgi?id=139147
1692         rdar://problem/19096508
1693
1694         Reviewed by Simon Fraser.
1695
1696         This patch ensures that the out of flow positioned render boxes (RenderReplaced) do not
1697         get repositioned when their inline box wrappers move.
1698         Ideally, out of flow positioned renderers do not have inline wrappers by the time we start
1699         placing inline boxes, but in certain case (optimized code path for descendantsHaveSameLineHeightAndBaseline()),
1700         they are still part of the inline box tree.
1701         This patch prevents those renderer boxes from getting positioned as part of the inline box placement.
1702         They will get removed later at RenderBlockFlow::computeBlockDirectionPositionsForLine().
1703
1704         Test: fast/inline/out-of-flow-positioned-render-replaced-box-moves.html
1705
1706         * rendering/InlineBox.cpp:
1707         (WebCore::InlineBox::adjustPosition):
1708
1709 2014-12-01  Tim Horton  <timothy_horton@apple.com>
1710
1711         Null deref under TextIndicator::createWithSelectionInFrame using find-in-page on bugzilla
1712         https://bugs.webkit.org/show_bug.cgi?id=139164
1713         <rdar://problem/19107247>
1714
1715         Reviewed by Beth Dakin.
1716
1717         * page/TextIndicator.cpp:
1718         (WebCore::TextIndicator::createWithSelectionInFrame):
1719         Null-check the ImageBuffer in addition to the Image.
1720
1721 2014-12-01  Anders Carlsson  <andersca@apple.com>
1722
1723         Remove IWebCookieManager on Windows
1724         https://bugs.webkit.org/show_bug.cgi?id=139144
1725
1726         Reviewed by Sam Weinig.
1727
1728         Remove code that handles overriding the cookie storage.
1729
1730         * platform/network/NetworkStorageSession.h:
1731         * platform/network/cf/NetworkStorageSessionCFNet.cpp:
1732         (WebCore::cookieStorageOverride): Deleted.
1733         (WebCore::overrideCookieStorage): Deleted.
1734         (WebCore::overridenCookieStorage): Deleted.
1735         * platform/network/cf/ResourceHandleCFNet.cpp:
1736         (WebCore::ResourceHandle::createCFURLConnection):
1737
1738 2014-12-01  Dean Jackson  <dino@apple.com>
1739
1740         [iOS Media] Slider knob should not have a border
1741         https://bugs.webkit.org/show_bug.cgi?id=139160
1742         <rdar://problem/19075185>
1743
1744         Reviewed by Jer Noble.
1745
1746         The change in r175715 required adding !important to a bunch
1747         of rules for pseudo elements. The border width of slider knobs
1748         for media controls should be zero, so add an !important there.
1749
1750         * Modules/mediacontrols/mediaControlsiOS.css:
1751         (audio::-webkit-media-controls-timeline::-webkit-slider-thumb): Change
1752         border to border-width and force it to zero.
1753
1754 2014-12-01  Chris Dumez  <cdumez@apple.com>
1755
1756         Take into consideration canvas drawing for throttling DOM timers
1757         https://bugs.webkit.org/show_bug.cgi?id=139140
1758         <rdar://problem/19102218>
1759
1760         Reviewed by Andreas Kling.
1761
1762         Take into consideration canvas drawing for throttling DOM timers so
1763         that:
1764         - Timers drawing on a visible canvas can no longer get throttled.
1765           This fixes the following sites:
1766           - http://hint.fm/wind/
1767           - http://radar.weather.gov/Conus/full_loop.php
1768         - Timers that are drawing on a canvas that is not user observable
1769           now get throttled, thus using less CPU. As an example, on
1770           http://hint.fm/wind/, CPU usage is at 110% when the canvas is
1771           inside the viewport on my machine. CPU usage would remain at
1772           110% when scrolling the canvas outside the viewport before this
1773           patch. After this patch, the CPU usage goes down to 5% when
1774           the canvas is outside the viewport.
1775
1776         Tests: fast/canvas/canvas-inside-viewport-timer-throttling.html
1777                fast/canvas/canvas-outside-viewport-timer-throttling.html
1778
1779         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
1780         (WebCore::JSCSSStyleDeclaration::putDelegate):
1781         * html/HTMLCanvasElement.cpp:
1782         (WebCore::HTMLCanvasElement::notifyObserversCanvasChanged):
1783         * page/DOMTimer.cpp:
1784         (WebCore::DOMTimerFireState::setScriptMadeNonUserObservableChangesToElement):
1785         (WebCore::DOMTimer::scriptDidCauseElementRepaint):
1786         (WebCore::DOMTimerFireState::setScriptMadeNonUserObservableChangesToElementStyle): Deleted.
1787         (WebCore::DOMTimer::scriptDidUpdateStyleOfElement): Deleted.
1788         * page/DOMTimer.h:
1789
1790 2014-12-01  Myles C. Maxfield  <mmaxfield@apple.com>
1791
1792         Crash in Font::dashesForIntersectionsWithRect() due to underlining SVG fonts
1793         https://bugs.webkit.org/show_bug.cgi?id=139158
1794
1795         Reviewed by Simon Fraser.
1796
1797         RenderingContexts are only created if the primary SimpleFontData is an SVG font,
1798         but dashesForIntersectionWithRect() uses the first character's SimpleFontData.
1799         One might be an SVG font but the other might not be.
1800
1801         Note that this brittle design will be fixed with the SVG -> OTF translator.
1802
1803         Test: fast/css3-text/css3-text-decoration/text-decoration-skip/decoration-skip-crash-fallback-svg.html
1804
1805         * platform/graphics/mac/FontMac.mm:
1806         (WebCore::Font::dashesForIntersectionsWithRect):
1807
1808 2014-12-01  Bartlomiej Gajda  <b.gajda@samsung.com>
1809
1810         [MSE] Fix not always calling mediaPlayer seek.
1811         https://bugs.webkit.org/show_bug.cgi?id=139139
1812
1813         Reviewed by Jer Noble.
1814
1815         Original comment states that media source shall always be notified of seek if it's not closed.
1816
1817         No new tests needed.
1818
1819         * html/HTMLMediaElement.cpp:
1820         (WebCore::HTMLMediaElement::seekTimerFired):
1821
1822 2014-12-01  Tim Horton  <timothy_horton@apple.com>
1823
1824         Implement yellow highlight for WebKit1 data detectors
1825         https://bugs.webkit.org/show_bug.cgi?id=138956
1826         <rdar://problem/18992185>
1827
1828         Reviewed by Beth Dakin.
1829
1830         * page/TextIndicator.cpp:
1831         (WebCore::TextIndicator::createWithSelectionInFrame):
1832         (WebCore::TextIndicator::TextIndicator):
1833         * page/TextIndicator.h:
1834         (WebCore::TextIndicator::selectionRectInScreenCoordinates):
1835         (WebCore::TextIndicator::textBoundingRectInScreenCoordinates):
1836         (WebCore::TextIndicator::selectionRectInWindowCoordinates): Deleted.
1837         (WebCore::TextIndicator::textBoundingRectInWindowCoordinates): Deleted.
1838         Store TextIndicator rects in screen coordinates, since that's what we
1839         want anyway, and this makes it easier to share this code between the WebKits.
1840
1841         * page/mac/TextIndicatorWindow.mm:
1842         (-[WebTextIndicatorView initWithFrame:textIndicator:margin:]):
1843         (WebCore::TextIndicatorWindow::setTextIndicator):
1844         Avoid some rect conversion because the TextIndicator rects are already in screen coordinates.
1845
1846 2014-12-01  Anders Carlsson  <andersca@apple.com>
1847
1848         Remove old site specific quirks code that was added in 2009
1849         https://bugs.webkit.org/show_bug.cgi?id=139141
1850
1851         Reviewed by Antti Koivisto.
1852
1853         * platform/network/NetworkingContext.h:
1854         * platform/network/ResourceHandleInternal.h:
1855         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1856         * platform/network/mac/ResourceHandleMac.mm:
1857         (WebCore::ResourceHandle::start):
1858
1859 2014-12-01  Joseph Pecoraro  <pecoraro@apple.com>
1860
1861         Web Inspector: DOMExceptions do not show the error message string in Pause Reason section
1862         https://bugs.webkit.org/show_bug.cgi?id=138988
1863
1864         Reviewed by Timothy Hatcher.
1865
1866         * inspector/WebInjectedScriptHost.cpp:
1867         (WebCore::WebInjectedScriptHost::type):
1868         Give all DOM Exception types the "error" RemoteObject subtype.
1869
1870 2014-12-01  Bartlomiej Gajda  <b.gajda@samsung.com>
1871
1872         [MSE] Unset timestamps of trackbuffers during Reset Parser State algorithm.
1873         https://bugs.webkit.org/show_bug.cgi?id=139075.
1874
1875         Reviewed by Jer Noble.
1876
1877         Specification requires from us to unset timestamps for trackBuffers
1878         during abort() method.
1879
1880         Test: media/media-source/media-source-append-nonsync-sample-after-abort.html
1881
1882         * Modules/mediasource/SourceBuffer.cpp:
1883         (WebCore::SourceBuffer::resetParserState):
1884         (WebCore::SourceBuffer::abort):
1885         * Modules/mediasource/SourceBuffer.h:
1886
1887 2014-12-01  Chris Dumez  <cdumez@apple.com>
1888
1889         Transform StyleBuilderCustom into a class and mark it as a friend of RenderStyle
1890         https://bugs.webkit.org/show_bug.cgi?id=138999
1891
1892         Reviewed by Sam Weinig.
1893
1894         Transform StyleBuilderCustom into a class and mark it as a friend of
1895         RenderStyle. This is needed because some of the StyleBuilderCustom
1896         functions need to access RenderStyle's private API.
1897
1898         No new tests, no behavior change.
1899
1900         * css/StyleBuilderCustom.h:
1901           Move functions from StyleBuilderFunctions namespace to
1902           StyleBuilderCustom class.
1903
1904         * css/makeprop.pl:
1905           Use StyleBuilderCustom scope instead of StyleBuilderFunctions for
1906           custom implementation.
1907
1908         * rendering/style/RenderStyle.h:
1909           Mark StyleBuilderCustom class as a friend, similarly to what was
1910           already done for DeprecatedStyleBuilder and StyleResolver.
1911
1912 2014-11-17  Oliver Hunt  <oliver@apple.com>
1913
1914         Make sure range based iteration of Vector<> still receives bounds checking
1915         https://bugs.webkit.org/show_bug.cgi?id=138821
1916
1917         Reviewed by Mark Lam.
1918
1919         There are a few uses of begin()/end() that explicitly require pointers,
1920         so we use getPtr() to extract the underlying pointer generically.
1921
1922         * bindings/js/SerializedScriptValue.cpp:
1923         (WebCore::CloneDeserializer::deserializeString):
1924         * editing/TextIterator.cpp:
1925         (WebCore::SearchBuffer::isBadMatch):
1926         * page/mac/ServicesOverlayController.mm:
1927         (WebCore::ServicesOverlayController::buildSelectionHighlight):
1928         * platform/graphics/SegmentedFontData.cpp:
1929         (WebCore::SegmentedFontData::fontDataForCharacter):
1930         (WebCore::SegmentedFontData::containsCharacter):
1931         (WebCore::SegmentedFontData::isLoading):
1932         * platform/graphics/WOFFFileFormat.cpp:
1933         (WebCore::convertWOFFToSfnt):
1934         * rendering/RenderBox.cpp:
1935         (WebCore::RenderBox::paintFillLayers):
1936         * rendering/style/GridResolvedPosition.cpp:
1937         (WebCore::firstNamedGridLineBeforePosition):
1938         (WebCore::GridResolvedPosition::resolveRowEndColumnEndNamedGridLinePositionAgainstOppositePosition):
1939         * svg/SVGFontElement.cpp:
1940         (WebCore::kerningForPairOfStringsAndGlyphs):
1941         * svg/SVGPathByteStream.h:
1942         (WebCore::SVGPathByteStream::append):
1943         * xml/XPathNodeSet.h:
1944         (WebCore::XPath::NodeSet::begin):
1945         (WebCore::XPath::NodeSet::end):
1946
1947 2014-11-29  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1948
1949         Fix a build warning when CSS_SCROLL_SNAP is enabled
1950         https://bugs.webkit.org/show_bug.cgi?id=139084
1951
1952         Reviewed by Andrei Bucur.
1953
1954         Fix a build warning. Copy constructor of StyleScrollSnapPoints should initialize its base class.
1955
1956         * rendering/style/StyleScrollSnapPoints.cpp:
1957         (WebCore::StyleScrollSnapPoints::StyleScrollSnapPoints): Call RefCounted().
1958
1959 2014-11-29  Sam Weinig  <sam@webkit.org>
1960
1961         Move the '-webkit-locale', '-webkit-text-orientation', '-webkit-writing-mode', '-webkit-justify-self' and '-webkit-perspective' CSS properties to the new StyleBuilder
1962         https://bugs.webkit.org/show_bug.cgi?id=139104
1963
1964         Reviewed by Anders Carlsson.
1965
1966         * css/CSSPropertyNames.in:
1967         * css/StyleBuilderCustom.h:
1968         (WebCore::StyleBuilderFunctions::applyValueWebkitLocale):
1969         (WebCore::StyleBuilderFunctions::applyValueWebkitWritingMode):
1970         (WebCore::StyleBuilderFunctions::applyValueWebkitTextOrientation):
1971         (WebCore::StyleBuilderFunctions::applyValueWebkitJustifySelf):
1972         (WebCore::StyleBuilderFunctions::applyValueWebkitPerspective):
1973         * css/StyleResolver.cpp:
1974         (WebCore::StyleResolver::applyProperty):
1975
1976 2014-11-29  Anders Carlsson  <andersca@apple.com>
1977
1978         Add an EmptyVisitedLinkStore implementation
1979         https://bugs.webkit.org/show_bug.cgi?id=139102
1980
1981         Reviewed by Sam Weinig.
1982
1983         * loader/EmptyClients.cpp:
1984         (WebCore::fillWithEmptyClients):
1985         * loader/EmptyClients.h:
1986
1987 2014-11-28  Sam Weinig  <sam@webkit.org>
1988
1989         Move the '-webkit-initial-letter', '-webkit-line-box-contain' and '-webkit-text-stroke-width' CSS properties to the new StyleBuilder
1990         https://bugs.webkit.org/show_bug.cgi?id=139053
1991
1992         Reviewed by Andreas Kling.
1993
1994         * css/CSSPropertyNames.in:
1995         * css/StyleBuilderConverter.h:
1996         (WebCore::StyleBuilderConverter::convertInitialLetter):
1997         (WebCore::StyleBuilderConverter::convertTextStrokeWidth):
1998         (WebCore::StyleBuilderConverter::convertLineBoxContain):
1999         * css/StyleResolver.cpp:
2000         (WebCore::StyleResolver::applyProperty):
2001
2002 2014-11-26  Philippe Normand  <pnormand@igalia.com>
2003
2004         [GStreamer] HTTP source element lacks SCHEDULING query support
2005         https://bugs.webkit.org/show_bug.cgi?id=139064
2006
2007         Reviewed by Carlos Garcia Campos.
2008
2009         No new tests, covered by http/tests/media/hls.
2010
2011         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2012         (webKitWebSrcQueryWithParent): Make the element handle SCHEDULING
2013         queries with the BANDWIDTH_LIMITED flag. This helps uridecodebin
2014         to configure itself for adaptive streaming playback scenarios.
2015
2016 2014-11-27  Ryuan Choi  <ryuan.choi@navercorp.com>
2017
2018         [EFL] Remove E_Dbus dependency
2019         https://bugs.webkit.org/show_bug.cgi?id=136355
2020
2021         Reviewed by Gyuyoung Kim.
2022
2023         E_Dbus is the simple wrapper of Dbus but it has not been maintained since EFL 1.8.
2024         Instead, EFL introduced Eldbus, which is almost similar with E_Dbus but provides more dbus like interface.
2025         This patch replaces E_Dbus implementation to Eldbus.
2026
2027         * PlatformEfl.cmake:
2028         * platform/efl/BatteryProviderEfl.cpp:
2029         (WebCore::BatteryProviderEfl::BatteryProviderEfl):
2030         (WebCore::BatteryProviderEfl::~BatteryProviderEfl):
2031         (WebCore::BatteryProviderEfl::stopUpdating):
2032         (WebCore::batteryProperties):
2033         (WebCore::batteryPropertiesChanged):
2034         (WebCore::BatteryProviderEfl::deviceTypeCallback):
2035         (WebCore::BatteryProviderEfl::enumerateDevices):
2036         (WebCore::BatteryProviderEfl::startUpdating):
2037         (WebCore::BatteryProviderEfl::setBatteryStatus):
2038         (WebCore::BatteryProviderEfl::timerFired): Deleted.
2039         (WebCore::BatteryProviderEfl::getBatteryStatus): Deleted.
2040         (WebCore::BatteryProviderEfl::setBatteryClient): Deleted.
2041         * platform/efl/BatteryProviderEfl.h:
2042         (WebCore::BatteryProviderEfl::connection):
2043         (WebCore::BatteryProviderEfl::setSignalHandler):
2044         (WebCore::BatteryProviderEfl::~BatteryProviderEfl): Deleted.
2045
2046 2014-11-27  Antti Koivisto  <antti@apple.com>
2047
2048         CrashTracer: com.apple.WebKit.WebContent at com.apple.WebCore: WebCore::HTMLPlugInImageElement::updateSnapshot + 108
2049         https://bugs.webkit.org/show_bug.cgi?id=139057
2050
2051         Reviewed by Anders Carlsson.
2052
2053         No test, don't know how to repro.
2054
2055         * html/HTMLPlugInImageElement.cpp:
2056         (WebCore::HTMLPlugInImageElement::updateSnapshot): Null check the renderer.
2057
2058 2014-11-27  Joanmarie Diggs  <jdiggs@igalia.com>
2059
2060         AX: [ATK] Meter and Option elements do not expose their id attribute
2061         https://bugs.webkit.org/show_bug.cgi?id=139017
2062
2063         Reviewed by Mario Sanchez Prada.
2064
2065         The options in a collapsed select element lack a node, so get the id
2066         attribute from the associated action element. In the case of a meter,
2067         the meter element itself is not exposed; its RenderMeter is instead.
2068         So associate the meter element's id with the exposed RenderMeter.
2069
2070         No new tests. Instead, updated existing expectations to reflect the fix.
2071
2072         * accessibility/AccessibilityObject.h:
2073         * accessibility/AccessibilityProgressIndicator.cpp:
2074         (WebCore::AccessibilityProgressIndicator::element):
2075         * accessibility/AccessibilityProgressIndicator.h:
2076         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2077         (webkitAccessibleGetAttributes):
2078
2079 2014-11-27  Anders Carlsson  <andersca@apple.com>
2080
2081         Add a Page::setVisitedLinkStore member function
2082         https://bugs.webkit.org/show_bug.cgi?id=139065
2083
2084         Reviewed by Antti Koivisto.
2085
2086         This will be used in a subsequent commit.
2087
2088         * WebCore.exp.in:
2089         * page/Page.cpp:
2090         (WebCore::Page::setVisitedLinkStore):
2091         * page/Page.h:
2092
2093 2014-11-25  Sukolsak Sakshuwong  <sukolsak@gmail.com>
2094
2095         Add parsing for :dir()
2096         https://bugs.webkit.org/show_bug.cgi?id=138932
2097
2098         Reviewed by Benjamin Poulain.
2099
2100         Add support for parsing :dir() pseudo class. The implementation of selector
2101         matching will be in a follow-up patch.
2102
2103         * css/CSSGrammar.y.in:
2104         * css/CSSParser.cpp:
2105         (WebCore::CSSParser::detectFunctionTypeToken):
2106         * css/CSSSelector.cpp:
2107         (WebCore::appendPseudoClassFunctionTail):
2108         (WebCore::CSSSelector::selectorText):
2109         * css/CSSSelector.h:
2110         * css/SelectorChecker.cpp:
2111         (WebCore::SelectorChecker::checkOne):
2112         * css/SelectorPseudoClassAndCompatibilityElementMap.in:
2113         * cssjit/SelectorCompiler.cpp:
2114         (WebCore::SelectorCompiler::addPseudoClassType):
2115
2116 2014-11-25  Anders Carlsson  <andersca@apple.com>
2117
2118         Remove user content handling from PageGroup
2119         https://bugs.webkit.org/show_bug.cgi?id=139051
2120
2121         Reviewed by Antti Koivisto.
2122
2123         Remove m_userContentController from PageGroup and the related functions and symbol exports.
2124
2125         * WebCore.exp.in:
2126         * page/PageGroup.cpp:
2127         (WebCore::PageGroup::PageGroup):
2128         (WebCore::PageGroup::~PageGroup):
2129         (WebCore::PageGroup::addPage):
2130         (WebCore::PageGroup::removePage):
2131         (WebCore::PageGroup::addUserScriptToWorld): Deleted.
2132         (WebCore::PageGroup::addUserStyleSheetToWorld): Deleted.
2133         (WebCore::PageGroup::removeUserScriptFromWorld): Deleted.
2134         (WebCore::PageGroup::removeUserStyleSheetFromWorld): Deleted.
2135         (WebCore::PageGroup::removeUserScriptsFromWorld): Deleted.
2136         (WebCore::PageGroup::removeUserStyleSheetsFromWorld): Deleted.
2137         (WebCore::PageGroup::removeAllUserContent): Deleted.
2138         * page/PageGroup.h:
2139
2140 2014-11-25  Anders Carlsson  <andersca@apple.com>
2141
2142         Add a user content controller to WebViewGroup and use it for user content
2143         https://bugs.webkit.org/show_bug.cgi?id=139043
2144
2145         Reviewed by Antti Koivisto.
2146
2147         * WebCore.exp.in:
2148         Export symbols.
2149
2150         * page/Page.cpp:
2151         (WebCore::Page::setUserContentController):
2152         Invalidate the injected style cache when setting a new user content controller.
2153
2154 2014-11-25  Philippe Normand  <pnormand@igalia.com>
2155
2156         [GStreamer] gstmpegts is not initialized
2157         https://bugs.webkit.org/show_bug.cgi?id=139039
2158
2159         Reviewed by Carlos Garcia Campos.
2160
2161         * platform/graphics/gstreamer/GStreamerUtilities.cpp:
2162         (WebCore::initializeGStreamer): Initialize the gstmpegts library.
2163
2164 2014-11-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2165
2166         Fix unused variable warning in Biquad.cpp
2167         https://bugs.webkit.org/show_bug.cgi?id=139031
2168
2169         Reviewed by Andreas Kling.
2170
2171         No new tests needed.
2172
2173         * platform/audio/Biquad.cpp:
2174
2175 2014-11-24  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2176
2177         Remove Qt cruft related to tap higlighting
2178         https://bugs.webkit.org/show_bug.cgi?id=139030
2179
2180         Reviewed by Andreas Kling.
2181
2182         No new tests needed.
2183
2184         * CMakeLists.txt:
2185         * page/GestureTapHighlighter.cpp: Removed.
2186         * page/GestureTapHighlighter.h: Removed.
2187
2188 2014-11-24  Dhi Aurrahman  <diorahman@rockybars.com>
2189
2190         Fix the parsing and re-serialization of :lang pseudo class selector when it has multiple arguments with same value
2191         https://bugs.webkit.org/show_bug.cgi?id=139013
2192
2193         Reviewed by Benjamin Poulain.
2194
2195         Fix the parsing and re-serialization of :lang pseudo class selector when 
2196         it has multiple arguments with same value e.g. :lang(en, en, en). Previously, 
2197         given :lang(en, en, en) selector, it was parsed and reserialized 
2198         as :lang(enenen) instead of :lang(en, en, en)
2199
2200         Related test on parsing and re-serialization of css selectors is updated.
2201
2202         * css/CSSSelector.cpp:
2203         (WebCore::appendArgumentList):
2204
2205 2014-11-24  Zalan Bujtas  <zalan@apple.com>
2206
2207         Fix r176527. Iterate through the text renderers.
2208         https://bugs.webkit.org/show_bug.cgi?id=139007
2209
2210         Reviewed by Antti Koivisto.
2211
2212         * rendering/SimpleLineLayout.cpp:
2213         (WebCore::SimpleLineLayout::canUseFor):
2214
2215 2014-11-24  Zalan Bujtas  <zalan@apple.com>
2216
2217         Simple line layout: Rename TextFragment::mustBreak to TextFragment::isLineBreak
2218         https://bugs.webkit.org/show_bug.cgi?id=139035
2219
2220         Reviewed by Antti Koivisto.
2221
2222         Move new line logic to FlowContents class.
2223         This is in preparation to support <br>.
2224
2225         No change in functionality.
2226
2227         * rendering/SimpleLineLayout.cpp:
2228         (WebCore::SimpleLineLayout::TextFragment::TextFragment):
2229         (WebCore::SimpleLineLayout::removeTrailingWhitespace):
2230         (WebCore::SimpleLineLayout::nextFragment):
2231         (WebCore::SimpleLineLayout::createLineRuns):
2232         * rendering/SimpleLineLayoutFlowContents.h:
2233         (WebCore::SimpleLineLayout::FlowContents::isNewline):
2234         (WebCore::SimpleLineLayout::FlowContents::isNewlineCharacter): Deleted.
2235
2236 2014-11-24  Benjamin Poulain  <benjamin@webkit.org>
2237
2238         Move :placeholder-shown out of experimental
2239         https://bugs.webkit.org/show_bug.cgi?id=138998
2240
2241         Reviewed by Andreas Kling.
2242
2243         The pseudo class :placeholder-shown is used by the inspector, disabling it breaks
2244         the sidebar.
2245
2246         The implementation has been stable for a while, we can move it to stable.
2247
2248         * css/CSSSelector.cpp:
2249         (WebCore::CSSSelector::selectorText):
2250         * css/CSSSelector.h:
2251         * css/SelectorChecker.cpp:
2252         (WebCore::SelectorChecker::checkOne):
2253         * css/SelectorPseudoClassAndCompatibilityElementMap.in:
2254         * cssjit/SelectorCompiler.cpp:
2255         (WebCore::SelectorCompiler::addPseudoClassType):
2256         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementMatching):
2257         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementHasPlaceholderShown):
2258
2259 2014-11-24  Antti Koivisto  <antti@apple.com>
2260
2261         Avoid String concatenation with line break iterator
2262         https://bugs.webkit.org/show_bug.cgi?id=139034
2263
2264         Reviewed by Zalan Bujtas.
2265
2266         Test: fast/text/simple-lines-multiple-renderers-break.html
2267
2268         * rendering/SimpleLineLayoutFlowContents.cpp:
2269         (WebCore::SimpleLineLayout::initializeSegments):
2270
2271             Include String too so it doesn't need to be fetched from the renderer.
2272
2273         (WebCore::SimpleLineLayout::FlowContents::FlowContents):
2274         (WebCore::SimpleLineLayout::FlowContents::findNextBreakablePosition):
2275
2276             Make this iterative instead of recursive.
2277             Uset setPriorContext to provide previous characters instead of concatenating
2278             the string from all the previous segments.
2279
2280         (WebCore::SimpleLineLayout::findNextNonWhitespace):
2281         (WebCore::SimpleLineLayout::FlowContents::findNextNonWhitespacePosition):
2282
2283             Search using segments instead of the concatenated string.
2284
2285         (WebCore::SimpleLineLayout::FlowContents::textWidth):
2286         (WebCore::SimpleLineLayout::FlowContents::segmentIndexForPositionSlow):
2287         (WebCore::SimpleLineLayout::FlowContents::runWidth):
2288         (WebCore::SimpleLineLayout::FlowContents::segmentForPositionSlow): Deleted.
2289         (WebCore::SimpleLineLayout::FlowContents::appendNextRendererContentIfNeeded): Deleted.
2290         (WebCore::SimpleLineLayout::FlowContents::nextNonWhitespacePosition): Deleted.
2291         * rendering/SimpleLineLayoutFlowContents.h:
2292         (WebCore::SimpleLineLayout::FlowContents::characterAt):
2293         (WebCore::SimpleLineLayout::FlowContents::isNewlineCharacter):
2294         (WebCore::SimpleLineLayout::FlowContents::segmentIndexForPosition):
2295         (WebCore::SimpleLineLayout::FlowContents::segmentForPosition):
2296
2297 2014-11-24  Zalan Bujtas  <zalan@apple.com>
2298
2299         SimpleLineLayout::canUseFor() should iterate through RenderTexts to check if their content is eligible for simple line layout.
2300         https://bugs.webkit.org/show_bug.cgi?id=139007
2301
2302         Reviewed by Antti Koivisto.
2303
2304         Tests: fast/text/simple-line-layout-multiple-renderers-non-breaking-space.html
2305                fast/text/simple-line-layout-multiple-renderers-with-float.html
2306
2307         * rendering/SimpleLineLayout.cpp:
2308         (WebCore::SimpleLineLayout::canUseFor):
2309
2310 2014-11-22  Sam Weinig  <sam@webkit.org>
2311
2312         Move the '-webkit-box-reflext' CSS property to the new StyleBuilder
2313         https://bugs.webkit.org/show_bug.cgi?id=139008
2314
2315         Reviewed by Anders Carlsson.
2316
2317         * css/CSSPropertyNames.in:
2318         * css/StyleBuilderConverter.h:
2319         (WebCore::StyleBuilderConverter::convertReflection):
2320         * css/StyleResolver.cpp:
2321         (WebCore::StyleResolver::applyProperty):
2322
2323 2014-11-24  Antti Koivisto  <antti@apple.com>
2324
2325         Remove unused Style struct from SimpleLineLayout.cpp
2326         https://bugs.webkit.org/show_bug.cgi?id=139027
2327
2328         Reviewed by Sam Weinig.
2329
2330         It was moved to FlowContents.
2331
2332         * rendering/SimpleLineLayout.cpp:
2333         (WebCore::SimpleLineLayout::Style::Style): Deleted.
2334
2335 2014-11-24  peavo@outlook.com  <peavo@outlook.com>
2336
2337         [Curl] Compile error in ResourceHandleManager.cpp.
2338         https://bugs.webkit.org/show_bug.cgi?id=139026
2339
2340         Reviewed by Brent Fulgham.
2341
2342         The parameter types of the constructor of the Timer class has changed.
2343
2344         * platform/network/curl/ResourceHandleManager.cpp:
2345         (WebCore::ResourceHandleManager::ResourceHandleManager):
2346         (WebCore::ResourceHandleManager::downloadTimerCallback):
2347         * platform/network/curl/ResourceHandleManager.h:
2348
2349 2014-11-24  Joanmarie Diggs  <jdiggs@igalia.com>
2350
2351         AX: [ATK] Unskip the skipped ATK tests in roles-exposed.html
2352         https://bugs.webkit.org/show_bug.cgi?id=139016
2353
2354         Reviewed by Chris Fleizach.
2355
2356         There was one test that could not be unskipped without making a change
2357         for that one to pass: mapping DocumentRegionRole to ATK_ROLE_PANEL. The
2358         rest of the "fix" is just unskipping tests for ATK and updating the test
2359         expectations.
2360
2361         No new tests needed.
2362
2363         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2364         (atkRole):
2365
2366 2014-11-23  Antti Koivisto  <antti@apple.com>
2367
2368         Use segment vector for FlowContents
2369         https://bugs.webkit.org/show_bug.cgi?id=139015
2370
2371         Reviewed by Zalan Bujtas.
2372
2373         And FlowContents::Segment struct and use it.
2374
2375         * rendering/SimpleLineLayout.cpp:
2376         (WebCore::SimpleLineLayout::removeTrailingWhitespace):
2377         (WebCore::SimpleLineLayout::createLineRuns):
2378         (WebCore::SimpleLineLayout::splitRunsAtRendererBoundary):
2379
2380             Use segments.
2381             If there is only one segment there is nothing to do. Bail out.
2382
2383         * rendering/SimpleLineLayoutFlowContents.cpp:
2384         (WebCore::SimpleLineLayout::initializeSegments):
2385
2386             Move initialization to a function so m_segments can be const.
2387             Don't add empty end segment, handle the end case in code.
2388
2389         (WebCore::SimpleLineLayout::FlowContents::FlowContents):
2390         (WebCore::SimpleLineLayout::FlowContents::textWidth):
2391
2392             Simplify and use segments.
2393
2394         (WebCore::SimpleLineLayout::FlowContents::segmentForPositionSlow):
2395
2396             Replace hand-rolled binary search with std::lower_bounds.
2397
2398         (WebCore::SimpleLineLayout::FlowContents::segmentForRenderer):
2399         (WebCore::SimpleLineLayout::FlowContents::appendNextRendererContentIfNeeded):
2400         (WebCore::SimpleLineLayout::FlowContents::renderer): Deleted.
2401         (WebCore::SimpleLineLayout::FlowContents::resolveRendererPositions): Deleted.
2402         * rendering/SimpleLineLayoutFlowContents.h:
2403         (WebCore::SimpleLineLayout::FlowContents::hasOneSegment):
2404         (WebCore::SimpleLineLayout::FlowContents::length):
2405         (WebCore::SimpleLineLayout::FlowContents::isEnd):
2406         (WebCore::SimpleLineLayout::FlowContents::isEndOfContent): Deleted.
2407
2408             Renamed.
2409
2410         (WebCore::SimpleLineLayout::FlowContents::segmentForPosition):
2411
2412             Inline the fast path.
2413
2414         * rendering/SimpleLineLayoutResolver.cpp:
2415         (WebCore::SimpleLineLayout::RunResolver::Run::text):
2416         (WebCore::SimpleLineLayout::RunResolver::rangeForRenderer):
2417
2418 2014-11-22  Simon Fraser  <simon.fraser@apple.com>
2419
2420         Extend WKRenderObject and WKRenderLayer with some more useful data
2421         https://bugs.webkit.org/show_bug.cgi?id=139006
2422
2423         Reviewed by Sam Weinig.
2424
2425         Export WebCore::RenderLayerBacking::backingStoreMemoryEstimate() const.
2426
2427         * WebCore.exp.in:
2428
2429 2014-11-22  Antti Koivisto  <antti@apple.com>
2430
2431         Make locale part of the SimpleLineLayout::FlowContent::Style
2432         https://bugs.webkit.org/show_bug.cgi?id=139004
2433
2434         Reviewed by Zalan Bujtas.
2435
2436         That's the only part of style not extracted out of RenderStyle in the constructor.
2437
2438         * rendering/SimpleLineLayoutFlowContents.cpp:
2439         (WebCore::SimpleLineLayout::FlowContents::Style::Style):
2440         (WebCore::SimpleLineLayout::FlowContents::FlowContents):
2441         (WebCore::SimpleLineLayout::FlowContents::appendNextRendererContentIfNeeded):
2442         * rendering/SimpleLineLayoutFlowContents.h:
2443
2444             Also remove RenderBlockFlow member since it is now unused.
2445
2446         (WebCore::SimpleLineLayout::FlowContents::Style::Style): Deleted.
2447
2448             Move to cpp.
2449
2450 2014-11-22  Joanmarie Diggs  <jdiggs@igalia.com>
2451
2452         AX: [ATK] Accessible names missing for imagemap images and links
2453         https://bugs.webkit.org/show_bug.cgi?id=127288
2454
2455         Reviewed by Chris Fleizach.
2456
2457         Return the alt text, if present, for the accessible name for image maps
2458         and image map links for ATK. Also expose the accessible element with
2459         ATK_ROLE_IMAGE_MAP instead of ATK_ROLE_IMAGE.
2460
2461         Test: accessibility/image-with-alt-and-map.html
2462
2463         * accessibility/AccessibilityObject.h:
2464         (WebCore::AccessibilityObject::isImageMap):
2465         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2466         (webkitAccessibleGetName):
2467         (atkRole):
2468
2469 2014-11-22  Andreas Kling  <akling@apple.com>
2470
2471         Remove unused Document::ignoreAutofocus().
2472         <https://webkit.org/b/139002>
2473
2474         Reviewed by Antti Koivisto.
2475
2476         No one ever actually changes this flag, so let's remove it.
2477
2478         * dom/Document.cpp:
2479         (WebCore::Document::Document):
2480         * dom/Document.h:
2481         (WebCore::Document::ignoreAutofocus): Deleted.
2482         (WebCore::Document::setIgnoreAutofocus): Deleted.
2483         * html/HTMLFormControlElement.cpp:
2484         (WebCore::shouldAutofocus):
2485
2486 2014-11-22  Csaba Osztrogonác  <ossy@webkit.org>
2487
2488         URTBF after r176459 to fix GTK build.
2489
2490         * platform/ScrollAnimatorNone.cpp:
2491         (WebCore::ScrollAnimatorNone::ScrollAnimatorNone):
2492         (WebCore::ScrollAnimatorNone::requestAnimationTimerFired):
2493         * platform/ScrollAnimatorNone.h:
2494
2495 2014-11-22  Andreas Kling  <akling@apple.com>
2496
2497         Convert PassRefPtr return types to RefPtr.
2498         <https://webkit.org/b/138995>
2499
2500         Reviewed by Anders Carlsson.
2501
2502         Convert an assortment of DOM and HTML related functions
2503         to return RefPtr instead of PassRefPtr.
2504
2505 2014-11-21  Jer Noble  <jer.noble@apple.com>
2506
2507         Unreviewed iOS build fix; move new symbols out of Mac-only exports.
2508
2509         * WebCore.exp.in:
2510
2511 2014-11-21  Timothy Horton  <timothy_horton@apple.com>
2512
2513         Remove a file that r176499 presumably did not mean to add.
2514
2515         * WebCore.exp.in.orig: Removed.
2516
2517 2014-11-21  Jer Noble  <jer.noble@apple.com>
2518
2519         Support multiple signatures of diagnostic logging.
2520         https://bugs.webkit.org/show_bug.cgi?id=138690
2521
2522         Reviewed by Anders Carlsson.
2523
2524         Pull logDiagnosticMessage() out of ChromeClient and make a new client interface,
2525         DiagnosticLoggingClient, which supports multiple kinds of diagnostic logging,
2526         namely: simple logging without a parameter, logging with a success parameter, and
2527         logging with a generic string value parameter.
2528
2529         * html/HTMLMediaElement.cpp:
2530         (WebCore::HTMLMediaElement::parseAttribute): Use DiagnosticLoggingClient.
2531         * loader/FrameLoader.cpp:
2532         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto.
2533         * loader/SubframeLoader.cpp:
2534         (WebCore::logPluginRequest): Ditto.
2535         * page/ChromeClient.h:
2536         (WebCore::ChromeClient::logDiagnosticMessage): Deleted.
2537         * page/DiagnosticLoggingClient.h: 
2538         (WebCore::DiagnosticLoggingClient::logDiagnosticMessage): Added.
2539         (WebCore::DiagnosticLoggingClient::logDiagnosticMessageWithResult): Added.
2540         (WebCore::DiagnosticLoggingClient::logDiagnosticMessageWithValue): Added.
2541         (WebCore::DiagnosticLoggingClient::~DiagnosticLoggingClient): Empty destructor.
2542
2543         Rename Page::PageClient to PageConfiguration, and pass that configuration from
2544         Page into MainFrame upon construction.
2545
2546         * inspector/InspectorOverlay.cpp:
2547         (WebCore::InspectorOverlay::overlayPage): Use PageConfiguration instead of PageClients.
2548         * loader/EmptyClients.cpp:
2549         (WebCore::fillWithEmptyClients): Ditto.
2550         * loader/EmptyClients.h:
2551         * page/MainFrame.cpp:
2552         (WebCore::MainFrame::MainFrame): Pass loaderClientForMainFrame through to the
2553             Frame constructor.
2554         (WebCore::MainFrame::create): Takes a PageConfiguration.
2555         * page/MainFrame.h:
2556         (WebCore::MainFrame::diagnosticLoggingClient): Simple accessor.
2557         * page/Page.cpp:
2558         (WebCore::Page::Page):
2559         (WebCore::Page::PageClients::PageClients): Deleted.
2560         (WebCore::Page::PageClients::~PageClients): Deleted.
2561         * page/Page.h:
2562         * page/PageConfiguration.cpp: Added.
2563         (WebCore::PageConfiguration::PageConfiguration): Renamed from PageClients().
2564         (WebCore::PageConfiguration::~PageConfiguration): Renamed from ~PageClients().
2565         * page/PageConfiguration.h: Added.
2566         * svg/graphics/SVGImage.cpp:
2567         (WebCore::SVGImage::dataChanged): Use PageConfiguration instead of PageClients.
2568
2569         Add new files and symbols to the project.
2570
2571         * CMakeLists.txt:
2572         * WebCore.exp.in:
2573         * WebCore.vcxproj/WebCore.vcxproj:
2574         * WebCore.xcodeproj/project.pbxproj:
2575
2576 2014-11-21  Chris Dumez  <cdumez@apple.com>
2577
2578         Throttled DOMTimers can prevent their document from being garbage collected
2579         https://bugs.webkit.org/show_bug.cgi?id=138915
2580
2581         Reviewed by Andreas Kling.
2582
2583         Throttled DOMTimers whose interval depend on viewport changes would
2584         keep a Vector of elements outside viewport causing them to be throttled
2585         so that we could check later on (upon scroll or layout) if those
2586         elements are still outside viewport. The issue is that these elements
2587         could potentially be removed from the document (and destroyed) after
2588         the timer has fired. To handle this, DOMTimer was ref'ing the
2589         elements. Unfortunately, this was causing us to leak the document
2590         as the elements in the Vector would keep the document alive.
2591
2592         To handle this issue, this patch updates the DOMTimer Vector to use
2593         weak pointers. The WeakPtrFactory is stored in ElementRareData to
2594         avoid wasting memory for all kinds of Elements (it is a fair assumption
2595         that the number of elements whose style is animated via timers is low).
2596
2597         Test: fast/dom/throttled-timer-running-on-document-destruction.html
2598
2599         * dom/Element.cpp:
2600         (WebCore::Element::createWeakPtr):
2601         * dom/Element.h:
2602         * dom/ElementRareData.cpp:
2603         * dom/ElementRareData.h:
2604         (WebCore::ElementRareData::weakPtrFactory):
2605         * page/DOMTimer.cpp:
2606         (WebCore::DOMTimerFireState::elementsChangedOutsideViewport):
2607         (WebCore::DOMTimer::updateThrottlingStateAfterViewportChange):
2608         * page/DOMTimer.h:
2609
2610 2014-11-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2611
2612         Unreviewed, EFL build fix since r176459.
2613
2614         r176459 removed Timer parameter in timer callbacks only for Mac port.
2615         So this patch applies it to remaining classes for EFL port.
2616
2617         No new tests, fix build break.
2618
2619         * Modules/mediastream/RTCDTMFSender.cpp:
2620         (WebCore::RTCDTMFSender::RTCDTMFSender):
2621         * Modules/mediastream/RTCDataChannel.cpp:
2622         (WebCore::RTCDataChannel::RTCDataChannel):
2623         * Modules/mediastream/RTCPeerConnection.cpp:
2624         (WebCore::RTCPeerConnection::RTCPeerConnection):
2625         * Modules/vibration/Vibration.cpp:
2626         (WebCore::Vibration::Vibration):
2627         (WebCore::Vibration::timerFired):
2628         * Modules/vibration/Vibration.h:
2629         * bindings/js/GCController.cpp:
2630         (WebCore::GCController::GCController):
2631         * platform/efl/BatteryProviderEfl.cpp:
2632         (WebCore::BatteryProviderEfl::BatteryProviderEfl):
2633         (WebCore::BatteryProviderEfl::timerFired):
2634         * platform/efl/BatteryProviderEfl.h:
2635         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2636         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
2637         (WebCore::MediaPlayerPrivateGStreamer::fillTimerFired):
2638         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2639         * platform/graphics/texmap/TextureMapper.cpp:
2640         (WebCore::BitmapTexturePool::BitmapTexturePool):
2641         (WebCore::BitmapTexturePool::releaseUnusedTexturesTimerFired):
2642         * platform/graphics/texmap/coordinated/CompositingCoordinator.cpp:
2643         (WebCore::CompositingCoordinator::CompositingCoordinator):
2644         (WebCore::CompositingCoordinator::releaseInactiveAtlasesTimerFired):
2645         * platform/graphics/texmap/coordinated/CompositingCoordinator.h:
2646         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
2647         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
2648         (WebCore::CoordinatedGraphicsLayer::animationStartedTimerFired):
2649         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
2650         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:
2651         (WebCore::CoordinatedImageBacking::CoordinatedImageBacking):
2652         (WebCore::CoordinatedImageBacking::clearContentsTimerFired):
2653         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.h:
2654         * platform/mock/DeviceMotionClientMock.cpp:
2655         (WebCore::DeviceMotionClientMock::DeviceMotionClientMock):
2656         (WebCore::DeviceMotionClientMock::timerFired):
2657         * platform/mock/DeviceMotionClientMock.h:
2658         * platform/mock/TimerEventBasedMock.h:
2659         (WebCore::TimerEvent::TimerEvent):
2660         (WebCore::TimerEvent::timerFired):
2661
2662 2014-11-21  Benjamin Poulain  <bpoulain@apple.com>
2663
2664         Start using the new :not() and :matches() in the Web Inspector
2665         https://bugs.webkit.org/show_bug.cgi?id=138978
2666
2667         Reviewed by Joseph Pecoraro.
2668
2669         There are only minor pending issues on :not() and :matches(). The feedback
2670         has only been positive so far. It is time to move them out the experimental
2671         flag.
2672
2673         * css/CSSGrammar.y.in:
2674         * css/CSSParser.cpp:
2675         (WebCore::CSSParser::detectFunctionTypeToken):
2676         * css/CSSSelector.cpp:
2677         (WebCore::simpleSelectorSpecificityInternal):
2678         (WebCore::simpleSelectorFunctionalPseudoClassStaticSpecificity):
2679         (WebCore::appendSelectorList):
2680         (WebCore::CSSSelector::selectorText):
2681         * css/CSSSelector.h:
2682         * css/SelectorChecker.cpp:
2683         (WebCore::SelectorChecker::checkOne):
2684         (WebCore::SelectorChecker::determineLinkMatchType):
2685         * css/SelectorPseudoClassAndCompatibilityElementMap.in:
2686         * cssjit/SelectorCompiler.cpp:
2687         (WebCore::SelectorCompiler::addPseudoClassType):
2688
2689 2014-11-21  Chris Dumez  <cdumez@apple.com>
2690
2691         Unreviewed, iOS build fix after r176462.
2692
2693         Export a few extra symbols.
2694
2695         * WebCore.exp.in:
2696
2697 2014-11-21  Chris Dumez  <cdumez@apple.com>
2698
2699         Properties in CSSPropertyNames.in should use the new StyleBuilder by default
2700         https://bugs.webkit.org/show_bug.cgi?id=138983
2701
2702         Reviewed by Andreas Kling.
2703
2704         This patch makes using the new StyleBuilder the default and drops the
2705         [NewStyleBuilder] option as a result. A new [LegacyStyleBuilder] option
2706         is introduced for CSS properties that are not generated in the new
2707         StyleBuilder yet.
2708
2709         * css/CSSPropertyNames.in:
2710         * css/SVGCSSPropertyNames.in:
2711         * css/makeprop.pl:
2712
2713 2014-11-21  Chris Dumez  <cdumez@apple.com>
2714
2715         [iOS] Regression(r176202): line-height is wrong on marco.org
2716         https://bugs.webkit.org/show_bug.cgi?id=138970
2717
2718         Reviewed by Simon Fraser.
2719
2720         After r176202, on iOS with IOS_TEXT_AUTOSIZING enabled, we would
2721         multiply the lineHeight by RenderStyle::textSizeAdjust()::multiplier()
2722         unconditionally. However, we're only supposed to do so if
2723         RenderStyle::textSizeAdjust()::isPercentage() returns true. This
2724         patch reintroduces the textSizeAdjust().isPercentage() check that was
2725         inadvertently dropped when refactoring the code to be shared between
2726         iOS and OS X.
2727
2728         Additionally, the multiplier is only supposed the be applied if the
2729         input CSSPrimitiveValue is a Length or a Number. However, after
2730         r176202, we would apply the multiplier if the CSSPrimitiveValue is
2731         a Percentage or a Number. This patch updates the code to match the
2732         behavior prior to r176202.
2733
2734         Test: fast/css/line-height-text-autosizing.html
2735
2736         * css/StyleBuilderCustom.h:
2737         (WebCore::StyleBuilderFunctions::convertLineHeight):
2738         (WebCore::StyleBuilderFunctions::applyValueLineHeight):
2739
2740 2014-11-21  Chris Fleizach  <cfleizach@apple.com>
2741
2742         AX: com.apple.WebKit.WebContent crashed at WebCore: WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored const
2743         https://bugs.webkit.org/show_bug.cgi?id=138905
2744
2745         Reviewed by Mario Sanchez Prada.
2746
2747         The crash log indicates that m_renderer is null at the time we ask ancestorsOfType(). 
2748         This is more of a speculative fix, since I am not entirely sure m_renderer is null when we enter the method.
2749
2750         Unable to determine cause of crash or how to reproduce on demand.
2751
2752         * accessibility/AccessibilityRenderObject.cpp:
2753         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
2754
2755 2014-11-21  Jer Noble  <jer.noble@apple.com>
2756
2757         [EME][Mac] Check the underlying error if the one returned by AVFoundation is AVErrorUnknown.
2758         https://bugs.webkit.org/show_bug.cgi?id=138986
2759
2760         Reviewed by Eric Carlson.
2761
2762         When we recieve an error with the code AVErrorUnknown, look for an underlying error from CoreMedia (or another
2763         lower-level framework) with a (presumably) more informative error code, and return that code instead.
2764
2765         * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm:
2766         (WebCore::systemCodeForError):
2767         (WebCore::CDMSessionMediaSourceAVFObjC::layerDidReceiveError):
2768         (WebCore::CDMSessionMediaSourceAVFObjC::rendererDidReceiveError):
2769
2770 2014-11-21  Chris Fleizach  <cfleizach@apple.com>
2771
2772         AX: Unclear that user and password are autofilled, no VoiceOver version of the yellow outline.
2773         https://bugs.webkit.org/show_bug.cgi?id=138904
2774
2775         Reviewed by Mario Sanchez Prada.
2776
2777         Add an attribute that marks when a text field is auto-filled.
2778
2779         Test: accessibility/auto-filled-value.html
2780
2781         * accessibility/AccessibilityObject.cpp:
2782         (WebCore::AccessibilityObject::isValueAutofilled):
2783         * accessibility/AccessibilityObject.h:
2784         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2785         (-[WebAccessibilityObjectWrapper accessibilityAttributeNames]):
2786         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
2787
2788 2014-11-21  Andreas Kling  <akling@apple.com>
2789
2790         RenderElement::removeChild() doesn't need a return value.
2791         <https://webkit.org/b/138985>
2792
2793         Reviewed by Pantti Koivisto.
2794
2795         Nobody uses the return value from RenderElement::removeChild().
2796         Change it to return void and remove all the unnecessary plumbing.
2797
2798         * rendering/RenderBlock.cpp:
2799         (WebCore::RenderBlock::removeChild):
2800         * rendering/RenderBlock.h:
2801         * rendering/RenderBlockFlow.cpp:
2802         (WebCore::RenderBlockFlow::removeChild):
2803         * rendering/RenderBlockFlow.h:
2804         * rendering/RenderButton.cpp:
2805         (WebCore::RenderButton::removeChild):
2806         * rendering/RenderButton.h:
2807         * rendering/RenderElement.cpp:
2808         (WebCore::RenderElement::removeChild):
2809         (WebCore::RenderElement::removeChildInternal):
2810         * rendering/RenderElement.h:
2811         * rendering/RenderMenuList.cpp:
2812         (RenderMenuList::removeChild):
2813         * rendering/RenderMenuList.h:
2814         * rendering/RenderRuby.cpp:
2815         (WebCore::RenderRubyAsInline::removeChild):
2816         (WebCore::RenderRubyAsBlock::removeChild):
2817         * rendering/RenderRuby.h:
2818         * rendering/RenderRubyRun.cpp:
2819         (WebCore::RenderRubyRun::removeChild):
2820         * rendering/RenderRubyRun.h:
2821         * rendering/mathml/RenderMathMLRoot.cpp:
2822         (WebCore::RenderMathMLRootWrapper::removeChildWithoutRestructuring):
2823         (WebCore::RenderMathMLRootWrapper::removeChild):
2824         * rendering/mathml/RenderMathMLRoot.h:
2825         * rendering/mathml/RenderMathMLScripts.cpp:
2826         (WebCore::RenderMathMLScripts::removeChildInternal):
2827         (WebCore::RenderMathMLScripts::removeChild):
2828         (WebCore::RenderMathMLScriptsWrapper::removeChildInternal):
2829         (WebCore::RenderMathMLScriptsWrapper::removeChild):
2830         * rendering/mathml/RenderMathMLScripts.h:
2831         * rendering/svg/RenderSVGContainer.cpp:
2832         (WebCore::RenderSVGContainer::removeChild):
2833         * rendering/svg/RenderSVGContainer.h:
2834         * rendering/svg/RenderSVGInline.cpp:
2835         (WebCore::RenderSVGInline::removeChild):
2836         * rendering/svg/RenderSVGInline.h:
2837         * rendering/svg/RenderSVGRoot.cpp:
2838         (WebCore::RenderSVGRoot::removeChild):
2839         * rendering/svg/RenderSVGRoot.h:
2840         * rendering/svg/RenderSVGText.cpp:
2841         (WebCore::RenderSVGText::removeChild):
2842         * rendering/svg/RenderSVGText.h:
2843
2844 2014-11-21  Tim Horton  <timothy_horton@apple.com>
2845
2846         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
2847         ​https://bugs.webkit.org/show_bug.cgi?id=138960
2848         <rdar://problem/19056715>
2849
2850         Reviewed by Anders Carlsson.
2851
2852         * platform/spi/mac/DataDetectorsSPI.h:
2853         Add some DataDetectors SPI.
2854
2855 2014-11-21  Jer Noble  <jer.noble@apple.com>
2856
2857         [Mac] Random crashes inside media libraries when creating then destroying media quickly.
2858         https://bugs.webkit.org/show_bug.cgi?id=138980
2859
2860         Reviewed by Eric Carlson.
2861
2862         Speculative fix for random crashes in the layout tests which occur randomly but regularly. The theory is
2863         that creating-then-destroying our media objects too quickly triggers crashes deep within the media frameworks
2864         when their initialization threads don't have a chance to complete before the main player object is destroyed.
2865         Test out this theory by delaying the destruction of the AVPlayer object for 1s after its owner is destroyed.
2866
2867         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2868         (WebCore::MediaPlayerPrivateAVFoundationObjC::cancelLoad):
2869
2870 2014-11-21  Jer Noble  <jer.noble@apple.com>
2871
2872         [Mac] Delay of 1-2s after the first paint of a video frame.
2873         https://bugs.webkit.org/show_bug.cgi?id=138979
2874
2875         Reviewed by Eric Carlson.
2876
2877         Only bother waiting for a signal that a new image is ready when the image isn't ready in the first place.
2878
2879         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2880         (WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):
2881
2882 2014-11-21  Glenn Adams  <glenn@skynav.com> and Myles C. Maxfield  <mmaxfield@apple.com>
2883
2884         Add support to -webkit-line-break property for CSS3 Text line-break property values and semantics.
2885         https://bugs.webkit.org/show_bug.cgi?id=89235
2886
2887         Reviewed by Eric Seidel and Dave Hyatt.
2888
2889         This patch adds semantic support for the CSS3 line-break property (qua -webkit-line-break),
2890         and enables testing on (apple) mac ports. Follow on patches will enable these tests on
2891         other ports as they are incrementally verified.
2892
2893         See also wiki documentation at:
2894         [1] http://trac.webkit.org/wiki/LineBreaking
2895         [2] http://trac.webkit.org/wiki/LineBreakingCSS3Mapping
2896
2897         Tests: css3/line-break/line-break-auto-centered.html
2898                css3/line-break/line-break-auto-half-kana.html
2899                css3/line-break/line-break-auto-hyphens.html
2900                css3/line-break/line-break-auto-inseparables.html
2901                css3/line-break/line-break-auto-iteration-marks.html
2902                css3/line-break/line-break-auto-postfixes.html
2903                css3/line-break/line-break-auto-prefixes.html
2904                css3/line-break/line-break-auto-sound-marks.html
2905                css3/line-break/line-break-loose-centered.html
2906                css3/line-break/line-break-loose-half-kana.html
2907                css3/line-break/line-break-loose-hyphens.html
2908                css3/line-break/line-break-loose-inseparables.html
2909                css3/line-break/line-break-loose-iteration-marks.html
2910                css3/line-break/line-break-loose-postfixes.html
2911                css3/line-break/line-break-loose-prefixes.html
2912                css3/line-break/line-break-loose-sound-marks.html
2913                css3/line-break/line-break-normal-centered.html
2914                css3/line-break/line-break-normal-half-kana.html
2915                css3/line-break/line-break-normal-hyphens.html
2916                css3/line-break/line-break-normal-inseparables.html
2917                css3/line-break/line-break-normal-iteration-marks.html
2918                css3/line-break/line-break-normal-postfixes.html
2919                css3/line-break/line-break-normal-prefixes.html
2920                css3/line-break/line-break-normal-sound-marks.html
2921                css3/line-break/line-break-strict-centered.html
2922                css3/line-break/line-break-strict-half-kana.html
2923                css3/line-break/line-break-strict-hyphens.html
2924                css3/line-break/line-break-strict-inseparables.html
2925                css3/line-break/line-break-strict-iteration-marks.html
2926                css3/line-break/line-break-strict-postfixes.html
2927                css3/line-break/line-break-strict-prefixes.html
2928                css3/line-break/line-break-strict-sound-marks.html
2929
2930         These tests were previously added in http://trac.webkit.org/changeset/143378, but skipped
2931         in generic TestExpectations. In this patch, they are marked as Pass for the (apple) mac ports.
2932
2933         * platform/text/LineBreakIteratorPoolICU.h:
2934         (WebCore::LineBreakIteratorPool::makeLocaleWithBreakKeyword):
2935         Add static function to construct ICU locale argument (also used as pool key) with additional
2936         break keyword.
2937         (LineBreakIteratorPool):
2938         (WebCore::LineBreakIteratorPool::take):
2939         (WebCore::LineBreakIteratorPool::put):
2940         Remove direct dependency from ICU library (and types), moving that dependency into
2941         new {open,close}LineBreakIterator() functions (defined in TextBreakIteratorICU.cpp).
2942         Update to take line break mode into account.
2943         Create (and cache) different break iterators depending on line break mode (in addition to locale),
2944         which entails expanding pool entry key format to optionally append "@break=" +
2945         "loose"|"normal"|"strict" keyword to locale string.
2946
2947         * platform/text/TextBreakIterator.h:
2948         (WebCore::LazyLineBreakIterator::LazyLineBreakIterator):
2949         (WebCore::LazyLineBreakIterator::isLooseCJKMode):
2950         (WebCore::LazyLineBreakIterator::get):
2951         (WebCore::LazyLineBreakIterator::reset):
2952         (LazyLineBreakIterator):
2953         Define LineBreakIteratorMode enumeration for use in TextBreakIterator et al.
2954         Add state member to indicate line break mode.
2955
2956         * platform/text/TextBreakIteratorICU.cpp:
2957         (WebCore::acquireLineBreakIterator):
2958         Use new line break mode when making iterator from pool.
2959         Handle change of return type of LineBreakIteratorPool::take() to non-ICU type,
2960         i.e., TextBreakIterator* instead of ICU's UBreakIterator*.
2961         (WebCore::releaseLineBreakIterator):
2962         Handle change of parameter type of LineBreakIteratorPool::put() to non-ICU type,
2963         i.e., TextBreakIterator* instead of ICU's UBreakIterator*.
2964         (WebCore):
2965         (WebCore::isCJKLocale):
2966         New functions for determining if CJK rules apply.
2967         (WebCore::openLineBreakIterator):
2968         New function for abstracting opening of ICU style line break iterator. This is now
2969         used in LineBreakIteratorPoolICU.h rather than having direct ICU API dependency there.
2970         This function also takes into account the line break mode.
2971
2972         Note that this function only calls ubrk_openRules() when the author has opted-in via
2973         using the -webkit-line-break CSS property. Eventually, we would like to be able to
2974         customize the rules that ICU's line breaking algorithm uses (especially for CJK text);
2975         however, ubrk_openRules() currently parses its input string to create a DFA and is
2976         therefore very slow. In fact, it's so slow that increasing our cache size in
2977         LineBreakIteratorPool doesn't actually help enough. Also note that the default value
2978         for the line-break CSS property is 'auto'.
2979         (WebCore::closeLineBreakIterator):
2980         (WebCore::mapLineIteratorModeToRules):
2981         New function for abstracting closing of ICU style line break iterator. This is now
2982         used in LineBreakIteratorPoolICU.h rather than having direct ICU API dependency there.
2983
2984         * rendering/RenderBlockLineLayout.cpp:
2985         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
2986         Pass line break iterator mode flag when reseting LazyLineBreakIterator.
2987         Add looseMode local variable to prevent need for computing under isBreakable().
2988
2989         * rendering/RenderText.cpp:
2990         (WebCore::mapLineBreakToIteratorMode):
2991         Add implementation for mapLineBreakToIteratorMode(), used by both RenderText::computePreferredLogicalWidths
2992         and RenderBlock::LineBreaker::nextLineBreak.
2993         (WebCore):
2994         (WebCore::RenderText::computePreferredLogicalWidths):
2995         Ensure (lazy line) breakIterator is initialized for line break mode.
2996         Ensure isBreakable() is passed loose mode flag to match behavior in RenderBlock::LineBreaker::nextLineBreak.
2997
2998         * rendering/RenderText.h:
2999         (WebCore):
3000         Add declaration for mapLineBreakToIteratorMode(), used by both RenderText::computePreferredLogicalWidths
3001         and RenderBlock::LineBreaker::nextLineBreak.
3002
3003         * rendering/break_lines.cpp:
3004         (WebCore):
3005         Introduce (local) enum NBSPBehavior for expanding template on nextBreakablePosition.
3006         (WebCore::isBreakableSpace):
3007         Add externally specified loose mode parameter to prevent need to invoke line break iterator
3008         accessor method on each invocation. Use new loose mode flavors off NBP functions.
3009         (WebCore::needsLineBreakIterator):
3010         Use enum NBSP behavior template parameter rather than boolean.
3011         (WebCore::nextBreakablePositionNonLoosely):
3012         Extend name to distinguish from loose flavor of this function.
3013         (WebCore::nextBreakablePositionLoosely):
3014         Add loose flavor of NBP invoked only when loose mode applies, in which case ASCII shortcut
3015         table cannot be used.
3016         (WebCore::nextBreakablePosition):
3017         (WebCore::nextBreakablePositionIgnoringNBSP):
3018         Use (renamed) non-loose flavor of NBP.
3019         (WebCore::nextBreakablePositionLoose):
3020         (WebCore::nextBreakablePositionIgnoringNBSPLoose):
3021         Introduce loose flavor of NBP template expansions.
3022
3023         * rendering/break_lines.h:
3024         (WebCore):
3025         (WebCore::isBreakable):
3026         Add externally specified loose mode parameter to prevent need to invoke line break iterator
3027         accessor method on each invocation.
3028
3029 2014-11-21  Anders Carlsson  <andersca@apple.com>
3030
3031         More build fixes.
3032
3033         * Modules/mediastream/MediaStream.cpp:
3034         (WebCore::MediaStream::MediaStream):
3035
3036 2014-11-21  Eric Carlson  <eric.carlson@apple.com>
3037
3038         [iOS] allocate volume view on the main thread
3039         https://bugs.webkit.org/show_bug.cgi?id=138971
3040         rdar://problem/18016958
3041
3042         Reviewed by Jer Noble.
3043
3044         * platform/audio/ios/MediaSessionManagerIOS.mm:
3045         (-[WebMediaSessionHelper allocateVolumeView]): New, dispatch to the main thread if necessary before allocating
3046             the volume view.
3047         (-[WebMediaSessionHelper initWithCallback:]): Call allocateVolumeView.
3048
3049 2014-11-21  Zalan Bujtas  <zalan@apple.com>
3050
3051         REGRESSION(r175259) Simple line layout text measuring behavior changed.
3052         https://bugs.webkit.org/show_bug.cgi?id=138947
3053         rdar://problem/19050653
3054
3055         Reviewed by Antti Koivisto.
3056
3057         In certain cases, when block flow needs to compute the preferred width of a particular text
3058         renderer, we use the non-simple line layout text measuring.
3059         However, the same text renderer might end up at simple line layout later.
3060         Complex line layout measures text including the trailing space and it subtracts
3061         (the constant value of) space width afterwards, while simple line layout measures
3062         runs without the extra space.
3063         In such cases, this may result different word widths and produce unexpected line breaking. (preferred width != final width)
3064         In long term, any text renderer qualified for simple line layout should go through the simple
3065         text measuring code path. (https://bugs.webkit.org/show_bug.cgi?id=138973)
3066         For now, just copy complex line layout behaviour. This also matches the previous simple line layout line breaking implementation.
3067
3068         Test: fast/text/simple-line-text-measuring-with-trailing-space.html
3069
3070         * rendering/SimpleLineLayoutFlowContents.cpp:
3071         (WebCore::SimpleLineLayout::FlowContents::textWidth):
3072
3073 2014-11-21  Anders Carlsson  <andersca@apple.com>
3074
3075         More Windows build fixes.
3076
3077         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.cpp:
3078         (WebCore::LegacyCACFLayerTreeHost::LegacyCACFLayerTreeHost):
3079         (WebCore::LegacyCACFLayerTreeHost::renderTimerFired):
3080         * platform/graphics/ca/win/LegacyCACFLayerTreeHost.h:
3081         * platform/mock/GeolocationClientMock.cpp:
3082         (WebCore::GeolocationClientMock::GeolocationClientMock):
3083         (WebCore::GeolocationClientMock::permissionTimerFired):
3084         (WebCore::GeolocationClientMock::controllerTimerFired):
3085         * platform/mock/GeolocationClientMock.h:
3086
3087 2014-11-21  Andreas Kling  <akling@apple.com>
3088
3089         RenderMathMLScripts isPrescript() helper should take a reference.
3090         <https://webkit.org/b/138975>
3091
3092         Reviewed by Antti Koivisto.
3093
3094         Tidy this up a bit, since it's never called with a null pointer.
3095
3096         * rendering/mathml/RenderMathMLScripts.cpp:
3097         (WebCore::isPrescript):
3098         (WebCore::RenderMathMLScripts::fixAnonymousStyles):
3099         (WebCore::RenderMathMLScripts::addChildInternal):
3100         (WebCore::RenderMathMLScripts::removeChildInternal):
3101         (WebCore::RenderMathMLScripts::layout):
3102         (WebCore::RenderMathMLScriptsWrapper::addChildInternal):
3103         (WebCore::RenderMathMLScriptsWrapper::removeChildInternal):
3104
3105 2014-11-21  Anders Carlsson  <andersca@apple.com>
3106
3107         Windows build fixes.
3108
3109         * plugins/PluginPackage.cpp:
3110         (WebCore::PluginPackage::freeLibraryTimerFired):
3111         (WebCore::PluginPackage::PluginPackage):
3112         * plugins/PluginPackage.h:
3113         * plugins/PluginStream.cpp:
3114         (WebCore::PluginStream::PluginStream):
3115         (WebCore::PluginStream::delayDeliveryTimerFired):
3116         (WebCore::PluginStream::deliverData): Deleted.
3117         * plugins/PluginStream.h:
3118         * plugins/PluginView.cpp:
3119         (WebCore::PluginView::popPopupsStateTimerFired):
3120         (WebCore::PluginView::requestTimerFired):
3121         (WebCore::PluginView::invalidateTimerFired):
3122         (WebCore::PluginView::PluginView):
3123         (WebCore::PluginView::lifeSupportTimerFired):
3124         (WebCore::PluginView::performRequest): Deleted.
3125         (WebCore::PluginView::setValue): Deleted.
3126         (WebCore::PluginView::setParameters): Deleted.
3127         (WebCore::PluginView::userAgent): Deleted.
3128         * plugins/PluginView.h:
3129         * plugins/win/PluginMessageThrottlerWin.cpp:
3130         (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin):
3131         (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
3132         * plugins/win/PluginMessageThrottlerWin.h:
3133
3134 2014-11-21  Tim Horton  <timothy_horton@apple.com>
3135
3136         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
3137         https://bugs.webkit.org/show_bug.cgi?id=138960
3138         <rdar://problem/19056715>
3139
3140         Reviewed by Beth Dakin.
3141
3142         * platform/spi/mac/DataDetectorsSPI.h:
3143         Softlink some SPI.
3144
3145 2014-11-21  Tim Horton  <timothy_horton@apple.com>
3146
3147         Move TextIndicator{Window} to WebCore
3148         https://bugs.webkit.org/show_bug.cgi?id=138954
3149         <rdar://problem/18992185>
3150
3151         Some adjustments by Csaba Osztrogonác.
3152         Reviewed by Anders Carlsson.
3153
3154         Move TextIndicator and TextIndicatorWindow to WebCore so that both
3155         WebKits can share the implementation.
3156
3157         * CMakeLists.txt:
3158         Build TextIndicator.
3159
3160         * WebCore.exp.in:
3161         Export TextIndicator{Window} symbols for the WebKits.
3162
3163         * WebCore.xcodeproj/project.pbxproj:
3164         * page/TextIndicator.cpp: Renamed from Source/WebKit2/Shared/TextIndicator.cpp.
3165         * page/TextIndicator.h: Renamed from Source/WebKit2/Shared/TextIndicator.h.
3166         Straighforward move of TextIndicator from WebKit2, except:
3167
3168         Move TextIndicator::Data and TextIndicator::PresentationTransition out directly
3169         into the WebCore namespace to allow for implementation of WebKit2 argument coders.
3170
3171         Use Image instead of ShareableBitmap internally.
3172
3173         Move the TextIndicatorData encode/decode to WebCoreArgumentCoders.
3174         
3175         * page/mac/TextIndicatorWindow.h: Renamed from Source/WebKit2/UIProcess/mac/TextIndicatorWindow.h.
3176         * page/mac/TextIndicatorWindow.mm: Renamed from Source/WebKit2/UIProcess/mac/TextIndicatorWindow.mm.
3177         Straighforward move of TextIndicatorWindow from WebKit2.
3178
3179 2014-11-21  Anders Carlsson  <andersca@apple.com>
3180
3181         Remove the Timer parameters from timer callbacks
3182         https://bugs.webkit.org/show_bug.cgi?id=138974
3183
3184         Reviewed by Antti Koivisto.
3185
3186         * Modules/encryptedmedia/MediaKeySession.cpp:
3187         (WebCore::MediaKeySession::MediaKeySession):
3188         (WebCore::MediaKeySession::keyRequestTimerFired):
3189         (WebCore::MediaKeySession::addKeyTimerFired):
3190         * Modules/encryptedmedia/MediaKeySession.h:
3191         * Modules/geolocation/Geolocation.cpp:
3192         (WebCore::Geolocation::GeoNotifier::GeoNotifier):
3193         (WebCore::Geolocation::GeoNotifier::timerFired):
3194         (WebCore::Geolocation::Geolocation):
3195         (WebCore::Geolocation::resumeTimerFired):
3196         * Modules/geolocation/Geolocation.h:
3197         * Modules/indexeddb/IDBTransactionBackend.cpp:
3198         (WebCore::IDBTransactionBackend::IDBTransactionBackend):
3199         (WebCore::IDBTransactionBackend::taskTimerFired):
3200         * Modules/indexeddb/IDBTransactionBackend.h:
3201         * Modules/mediasource/SourceBuffer.cpp:
3202         (WebCore::SourceBuffer::SourceBuffer):
3203         (WebCore::SourceBuffer::appendBufferTimerFired):
3204         (WebCore::SourceBuffer::removeTimerFired):
3205         * Modules/mediasource/SourceBuffer.h:
3206         * Modules/mediastream/MediaStream.cpp:
3207         (WebCore::MediaStream::MediaStream):
3208         (WebCore::MediaStream::scheduledEventTimerFired):
3209         * Modules/mediastream/MediaStream.h:
3210         * Modules/mediastream/RTCDTMFSender.cpp:
3211         (WebCore::RTCDTMFSender::RTCDTMFSender):
3212         (WebCore::RTCDTMFSender::scheduledEventTimerFired):
3213         * Modules/mediastream/RTCDTMFSender.h:
3214         * Modules/mediastream/RTCDataChannel.cpp:
3215         (WebCore::RTCDataChannel::RTCDataChannel):
3216         (WebCore::RTCDataChannel::scheduledEventTimerFired):
3217         * Modules/mediastream/RTCDataChannel.h:
3218         * Modules/mediastream/RTCPeerConnection.cpp:
3219         (WebCore::RTCPeerConnection::RTCPeerConnection):
3220         (WebCore::RTCPeerConnection::scheduledEventTimerFired):
3221         * Modules/mediastream/RTCPeerConnection.h:
3222         * Modules/notifications/Notification.cpp:
3223         (WebCore::Notification::Notification):
3224         (WebCore::Notification::taskTimerFired):
3225         * Modules/notifications/Notification.h:
3226         * Modules/notifications/NotificationCenter.cpp:
3227         (WebCore::NotificationCenter::NotificationRequestCallback::NotificationRequestCallback):
3228         (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
3229         * Modules/notifications/NotificationCenter.h:
3230         * Modules/websockets/WebSocketChannel.cpp:
3231         (WebCore::WebSocketChannel::WebSocketChannel):
3232         (WebCore::WebSocketChannel::resumeTimerFired):
3233         (WebCore::WebSocketChannel::closingTimerFired):
3234         * Modules/websockets/WebSocketChannel.h:
3235         * accessibility/AXObjectCache.cpp:
3236         (WebCore::AXObjectCache::AXObjectCache):
3237         (WebCore::AXObjectCache::notificationPostTimerFired):
3238         * accessibility/AXObjectCache.h:
3239         * bindings/js/GCController.cpp:
3240         (WebCore::GCController::GCController):
3241         (WebCore::GCController::gcTimerFired):
3242         * bindings/js/GCController.h:
3243         * css/CSSFontFaceSource.h:
3244         * css/CSSFontSelector.cpp:
3245         (WebCore::CSSFontSelector::CSSFontSelector):
3246         (WebCore::CSSFontSelector::beginLoadTimerFired):
3247         * css/CSSFontSelector.h:
3248         * css/CSSImageGeneratorValue.cpp:
3249         (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::CachedGeneratedImage):
3250         * css/StyleResolver.cpp:
3251         (WebCore::StyleResolver::StyleResolver):
3252         (WebCore::StyleResolver::sweepMatchedPropertiesCache):
3253         * css/StyleResolver.h:
3254         * dom/Document.cpp:
3255         (WebCore::Document::Document):
3256         (WebCore::Document::visualUpdatesSuppressionTimerFired):
3257         (WebCore::Document::styleRecalcTimerFired):
3258         (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
3259         (WebCore::Document::sharedObjectPoolClearTimerFired):
3260         (WebCore::Document::updateFocusAppearanceTimerFired):
3261         (WebCore::Document::pendingTasksTimerFired):
3262         (WebCore::Document::webkitWillEnterFullScreenForElement):
3263         (WebCore::Document::webkitDidExitFullScreenForElement):
3264         (WebCore::Document::fullScreenChangeDelayTimerFired):
3265         (WebCore::Document::loadEventDelayTimerFired):
3266         (WebCore::Document::didAssociateFormControlsTimerFired):
3267         (WebCore::Document::domCookieCacheExpiryTimerFired):
3268         * dom/Document.h:
3269         * dom/EventSender.h:
3270         (WebCore::EventSender::timerFired):
3271         (WebCore::EventSender<T>::EventSender):
3272         * dom/ScriptRunner.cpp:
3273         (WebCore::ScriptRunner::ScriptRunner):
3274         (WebCore::ScriptRunner::timerFired):
3275         * dom/ScriptRunner.h:
3276         * dom/ScriptedAnimationController.cpp:
3277         (WebCore::ScriptedAnimationController::ScriptedAnimationController):
3278         (WebCore::ScriptedAnimationController::animationTimerFired):
3279         * dom/ScriptedAnimationController.h:
3280         * dom/StyledElement.cpp:
3281         (WebCore::PresentationAttributeCacheCleaner::PresentationAttributeCacheCleaner):
3282         (WebCore::PresentationAttributeCacheCleaner::cleanCache):
3283         * editing/AlternativeTextController.cpp:
3284         (WebCore::AlternativeTextController::AlternativeTextController):
3285         (WebCore::AlternativeTextController::timerFired):
3286         * editing/AlternativeTextController.h:
3287         * editing/Editor.cpp:
3288         (WebCore::Editor::Editor):
3289         (WebCore::Editor::updateEditorUINowIfScheduled):
3290         (WebCore::Editor::editorUIUpdateTimerFired):
3291         (WebCore::Editor::scanSelectionForTelephoneNumbers): Deleted.
3292         * editing/Editor.h:
3293         * editing/FrameSelection.cpp:
3294         (WebCore::FrameSelection::FrameSelection):
3295         (WebCore::FrameSelection::caretBlinkTimerFired):
3296         * editing/FrameSelection.h:
3297         * editing/SpellChecker.cpp:
3298         (WebCore::SpellChecker::SpellChecker):
3299         (WebCore::SpellChecker::timerFiredToProcessQueuedRequest):
3300         * editing/SpellChecker.h:
3301         * html/HTMLFormElement.cpp:
3302         (WebCore::HTMLFormElement::HTMLFormElement):
3303         (WebCore::HTMLFormElement::requestAutocompleteTimerFired):
3304         * html/HTMLFormElement.h:
3305         * html/HTMLMediaElement.cpp:
3306         (WebCore::HTMLMediaElement::HTMLMediaElement):
3307         (WebCore::HTMLMediaElement::parseAttribute):
3308         * html/HTMLMediaElement.h:
3309         * html/HTMLPlugInElement.cpp:
3310         (WebCore::HTMLPlugInElement::HTMLPlugInElement):
3311         (WebCore::HTMLPlugInElement::swapRendererTimerFired):
3312         * html/HTMLPlugInElement.h:
3313         * html/HTMLPlugInImageElement.cpp:
3314         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement):
3315         (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
3316         * html/HTMLPlugInImageElement.h:
3317         * html/HTMLSourceElement.cpp:
3318         (WebCore::HTMLSourceElement::HTMLSourceElement):
3319         (WebCore::HTMLSourceElement::errorEventTimerFired):
3320         * html/HTMLSourceElement.h:
3321         * html/HTMLTrackElement.cpp:
3322         (WebCore::HTMLTrackElement::HTMLTrackElement):
3323         (WebCore::HTMLTrackElement::loadTimerFired):
3324         * html/HTMLTrackElement.h:
3325         * html/MediaController.cpp:
3326         (MediaController::MediaController):
3327         (MediaController::asyncEventTimerFired):
3328         (MediaController::clearPositionTimerFired):
3329         (MediaController::timeupdateTimerFired):
3330         * html/MediaController.h:
3331         * html/MediaDocument.cpp:
3332         (WebCore::MediaDocument::MediaDocument):
3333         (WebCore::MediaDocument::replaceMediaElementTimerFired):
3334         * html/MediaDocument.h:
3335         * html/SearchInputType.cpp:
3336         (WebCore::SearchInputType::SearchInputType):
3337         (WebCore::SearchInputType::searchEventTimerFired):
3338         * html/SearchInputType.h:
3339         * html/ValidationMessage.cpp:
3340         (WebCore::ValidationMessage::setMessage):
3341         (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
3342         (WebCore::ValidationMessage::buildBubbleTree):
3343         (WebCore::ValidationMessage::requestToHideMessage):
3344         (WebCore::ValidationMessage::deleteBubbleTree):
3345         * html/ValidationMessage.h:
3346         * html/canvas/WebGLRenderingContext.cpp:
3347         (WebCore::WebGLRenderingContext::WebGLRenderingContext):
3348         (WebCore::WebGLRenderingContext::dispatchContextLostEvent):
3349         (WebCore::WebGLRenderingContext::maybeRestoreContext):
3350         * html/canvas/WebGLRenderingContext.h:
3351         * html/parser/HTMLParserScheduler.cpp:
3352         (WebCore::HTMLParserScheduler::HTMLParserScheduler):
3353         (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
3354         * html/parser/HTMLParserScheduler.h:
3355         * html/shadow/MediaControlElements.cpp:
3356         (WebCore::MediaControlPanelElement::MediaControlPanelElement):
3357         (WebCore::MediaControlPanelElement::transitionTimerFired):
3358         (WebCore::MediaControlTextTrackContainerElement::MediaControlTextTrackContainerElement):
3359         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
3360         * html/shadow/MediaControlElements.h:
3361         * html/shadow/MediaControls.cpp:
3362         (WebCore::MediaControls::MediaControls):
3363         (WebCore::MediaControls::hideFullscreenControlsTimerFired):
3364         * html/shadow/MediaControls.h:
3365         * html/shadow/SpinButtonElement.cpp:
3366         (WebCore::SpinButtonElement::SpinButtonElement):
3367         (WebCore::SpinButtonElement::repeatingTimerFired):
3368         * html/shadow/SpinButtonElement.h:
3369         * html/track/LoadableTextTrack.cpp:
3370         (WebCore::LoadableTextTrack::LoadableTextTrack):
3371         (WebCore::LoadableTextTrack::loadTimerFired):
3372         * html/track/LoadableTextTrack.h:
3373         * html/track/VTTRegion.cpp:
3374         (WebCore::VTTRegion::VTTRegion):
3375         (WebCore::VTTRegion::scrollTimerFired):
3376         * html/track/VTTRegion.h:
3377         * inspector/InspectorCSSAgent.cpp:
3378         (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
3379         (WebCore::ChangeRegionOversetTask::timerFired):
3380         * inspector/InspectorDOMAgent.cpp:
3381         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
3382         (WebCore::RevalidateStyleAttributeTask::timerFired):
3383         * inspector/InspectorFrontendClientLocal.cpp:
3384         (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
3385         (WebCore::InspectorBackendDispatchTask::timerFired):
3386         * inspector/InspectorOverlay.cpp:
3387         (WebCore::InspectorOverlay::InspectorOverlay):
3388         (WebCore::InspectorOverlay::updatePaintRectsTimerFired):
3389         * inspector/InspectorOverlay.h:
3390         * loader/DocumentLoader.cpp:
3391         (WebCore::DocumentLoader::DocumentLoader):
3392         (WebCore::DocumentLoader::handleSubstituteDataLoadNow):
3393         (WebCore::DocumentLoader::handleSubstituteDataLoadSoon):
3394         (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
3395         * loader/DocumentLoader.h:
3396         * loader/FrameLoader.cpp:
3397         (WebCore::FrameLoader::FrameLoader):
3398         (WebCore::FrameLoader::checkTimerFired):
3399         * loader/FrameLoader.h:
3400         * loader/ImageLoader.cpp:
3401         (WebCore::ImageLoader::ImageLoader):
3402         (WebCore::ImageLoader::timerFired):
3403         * loader/ImageLoader.h:
3404         * loader/LinkLoader.cpp:
3405         (WebCore::LinkLoader::LinkLoader):
3406         (WebCore::LinkLoader::linkLoadTimerFired):
3407         (WebCore::LinkLoader::linkLoadingErrorTimerFired):
3408         * loader/LinkLoader.h:
3409         * loader/NavigationScheduler.cpp:
3410         (WebCore::NavigationScheduler::NavigationScheduler):
3411         (WebCore::NavigationScheduler::timerFired):
3412         * loader/NavigationScheduler.h:
3413         * loader/PingLoader.cpp:
3414         (WebCore::PingLoader::PingLoader):
3415         * loader/PingLoader.h:
3416         (WebCore::PingLoader::timeoutTimerFired):
3417         * loader/ProgressTracker.cpp:
3418         (WebCore::ProgressTracker::ProgressTracker):
3419         (WebCore::ProgressTracker::progressHeartbeatTimerFired):
3420         * loader/ProgressTracker.h:
3421         * loader/ResourceLoadScheduler.cpp:
3422         (WebCore::ResourceLoadScheduler::ResourceLoadScheduler):
3423         (WebCore::ResourceLoadScheduler::requestTimerFired):
3424         * loader/ResourceLoadScheduler.h:
3425         * loader/TextTrackLoader.cpp:
3426         (WebCore::TextTrackLoader::TextTrackLoader):
3427         (WebCore::TextTrackLoader::cueLoadTimerFired):
3428         * loader/TextTrackLoader.h:
3429         * loader/cache/CachedResource.cpp:
3430         (WebCore::CachedResource::CachedResource):
3431         (WebCore::CachedResource::Callback::Callback):
3432         (WebCore::CachedResource::Callback::timerFired):
3433         * loader/cache/CachedResource.h:
3434         * loader/cache/CachedResourceLoader.cpp:
3435         (WebCore::CachedResourceLoader::CachedResourceLoader):
3436         (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
3437         * loader/cache/CachedResourceLoader.h:
3438         * loader/icon/IconDatabase.cpp:
3439         (WebCore::IconDatabase::IconDatabase):
3440         (WebCore::IconDatabase::syncTimerFired):
3441         * loader/icon/IconDatabase.h:
3442         * page/AutoscrollController.cpp:
3443         (WebCore::AutoscrollController::AutoscrollController):
3444         (WebCore::AutoscrollController::autoscrollTimerFired):
3445         * page/AutoscrollController.h:
3446         * page/CaptionUserPreferences.cpp:
3447         (WebCore::CaptionUserPreferences::CaptionUserPreferences):
3448         (WebCore::CaptionUserPreferences::timerFired):
3449         * page/CaptionUserPreferences.h:
3450         * page/CaptionUserPreferencesMediaAF.cpp:
3451         (WebCore::CaptionUserPreferencesMediaAF::CaptionUserPreferencesMediaAF):
3452         (WebCore::CaptionUserPreferencesMediaAF::updateTimerFired):
3453         * page/CaptionUserPreferencesMediaAF.h:
3454         * page/DeviceController.cpp:
3455         (WebCore::DeviceController::DeviceController):
3456         (WebCore::DeviceController::fireDeviceEvent):
3457         * page/DeviceController.h:
3458         * page/EventHandler.cpp:
3459         (WebCore::EventHandler::EventHandler):
3460         (WebCore::EventHandler::cursorUpdateTimerFired):
3461         (WebCore::EventHandler::autoHideCursorTimerFired):
3462         (WebCore::EventHandler::recognizeLongMousePress):