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