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