Dispatch input event for Range element keyboard event
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-03-20  Lorenzo Tilve  <ltilve@igalia.com>
2
3         Dispatch input event for Range element keyboard event
4         https://bugs.webkit.org/show_bug.cgi?id=129929
5
6         Reviewed by Kent Tamura.
7
8         For any value update, dispatch both input and change event.
9         Also removes extra dispatch change event, as event is dispatched
10         from TextFieldInputType:setValue.
11
12         Merged from Blink (patch by Habib Virji):
13         https://src.chromium.org/viewvc/blink?revision=168558&view=revision
14
15         Test: fast/forms/range/range-keyboard-oninput-event.html
16
17         * html/RangeInputType.cpp:
18         (WebCore::RangeInputType::handleKeydownEvent):
19
20 2014-03-20  Jinwoo Song  <jinwoo7.song@samsung.com>
21
22         Refine BatteryStatus module
23         https://bugs.webkit.org/show_bug.cgi?id=130495
24
25         Reviewed by Andreas Kling.
26
27         Small refinements:
28          - Return PassRef instead of PassRefPtr in create method
29          - Switched to nullptr instead of 0 where appropriate.
30          - Removed unused function and header file.
31          - Removed unnecessary empty lines.
32
33         * Modules/battery/BatteryController.h:
34         * Modules/battery/BatteryManager.cpp:
35         (WebCore::BatteryManager::create): Make return passRef.
36         * Modules/battery/BatteryManager.h:
37         (WebCore::BatteryManager::batteryControllerDestroyed): Use nullptr.
38         * Modules/battery/BatteryStatus.cpp:
39         (WebCore::BatteryStatus::create): Make return passRef.
40         * Modules/battery/BatteryStatus.h:
41         * Modules/battery/NavigatorBattery.cpp:
42         (WebCore::NavigatorBattery::webkitBattery): Remove batteryManager().
43         * Modules/battery/NavigatorBattery.h:
44
45 2014-03-19  Pratik Solanki  <psolanki@apple.com>
46
47         [iOS] Get code to compile on older iOS versions
48         https://bugs.webkit.org/show_bug.cgi?id=130142
49         <rdar://problem/16302908>
50
51         Reviewed by Darin Adler.
52
53         * WebCore.exp.in:
54         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
55         (-[WebVideoFullscreenController WebCore::]):
56         (-[WebVideoFullscreenController enterFullscreen:]):
57         (-[WebVideoFullscreenController exitFullscreen]):
58         * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
59         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
60         * platform/mac/HTMLConverter.mm:
61         (_dateForString):
62         * platform/network/cf/CookieJarCFNet.cpp:
63         (WebCore::copyCookiesForURLWithFirstPartyURL):
64         * platform/text/ios/LocalizedDateCache.mm:
65         (WebCore::LocalizedDateCache::calculateMaximumWidth):
66         * platform/text/mac/LocaleMac.mm:
67         (WebCore::LocaleMac::LocaleMac):
68
69 2014-03-19  Byungseon Shin  <sun.shin@lge.com>
70
71         Fix "WEBKIT_WEBGL_compressed_texture_pvrtc" extension support
72         https://bugs.webkit.org/show_bug.cgi?id=130292
73
74         Reviewed by Dean Jackson.
75
76         WebGLRenderingContext::getExtension was not returning WEBGL_compressed_texture_pvrtc extension.
77
78         * html/canvas/WebGLRenderingContext.cpp:
79         (WebCore::WebGLRenderingContext::getExtension):
80
81 2014-03-19  Brent Fulgham  <bfulgham@apple.com>
82
83         Merge Misc. WebVTT Updates from Blink.
84         https://bugs.webkit.org/show_bug.cgi?id=130491
85
86         Reviewed by Eric Carlson.
87
88         Test: media/track/track-webvtt-tc030-interspersed-non-cue.html
89
90         Merged from Blink (patch by vcarbune@chromium.org):
91         https://chromium.googlesource.com/chromium/blink/+/fb62b2b54944bd19026192c049a1db250756fc12
92         http://crbug.com/40323003
93         https://chromium.googlesource.com/chromium/blink/+/29176fb0b394a97e85f4dabc07e18329f3ceae41
94         http://crbug.com/54463002
95         https://chromium.googlesource.com/chromium/blink/+/29476f839a08cb17c5a3fc713f7e454e7cea9c60
96         http://crbug.com/55853002
97         https://chromium.googlesource.com/chromium/blink/+/ba2378ef873e786cf2937034e012669cdd37dfe8
98         http://crbug.com/65343003
99         https://chromium.googlesource.com/chromium/blink/+/1915b9aa1bba45aebf28531b40ae627ecf9a3d59
100         http://crbug.com/62833005
101         https://chromium.googlesource.com/chromium/blink/+/ea46dbd0f1f29779a1cd4f59b19361b803f09a9b
102         http://crbug.com/64273013
103         https://chromium.googlesource.com/chromium/blink/+/9eb4bb6b627357bb94d66386a4123ec004cccfc4
104         http://crbug.com/101513002
105         https://chromium.googlesource.com/chromium/blink/+/192a843b32eafb77bf92c50ec50d334ba935028a
106         http://crbug.com/102403002
107         https://chromium.googlesource.com/chromium/blink/+/15f9efcc952fcf73184e28fb9db79633c1fa6653
108         http://crbug.com/104443002
109         https://chromium.googlesource.com/chromium/blink/+/74fd66b451a464683f7cb748855b1740a54b2c16
110         http://crbug.com/75243004
111
112         * html/track/TextTrackRegion.cpp:
113         (WebCore::TextTrackRegion::parseSettingValue):
114         * html/track/VTTCue.cpp:
115         (WebCore::VTTCue::markFutureAndPastNodes):
116         (WebCore::VTTCue::setCueSettings):
117         * html/track/WebVTTParser.cpp:
118         (WebCore::scanDigits):
119         (WebCore::WebVTTParser::collectDigitsToInt):
120         (WebCore::WebVTTParser::parseFloatPercentageValue):
121         (WebCore::WebVTTParser::parseBytes):
122         (WebCore::WebVTTParser::collectMetadataHeader):
123         (WebCore::WebVTTParser::collectTimingsAndSettings):
124         (WebCore::WebVTTParser::createDocumentFragmentFromCueText):
125         (WebCore::WebVTTParser::createNewCue):
126         (WebCore::WebVTTParser::createNewRegion):
127         (WebCore::WebVTTParser::collectTimeStamp):
128         (WebCore::tokenToNodeType):
129         (WebCore::WebVTTParser::constructTreeFromToken):
130         * html/track/WebVTTParser.h:
131         * html/track/WebVTTToken.h:
132         (WebCore::WebVTTToken::name):
133         (WebCore::WebVTTToken::characters):
134         (WebCore::WebVTTToken::appendToCharacter):
135         (WebCore::WebVTTToken::addNewClass):
136         (WebCore::WebVTTToken::classes):
137         (WebCore::WebVTTToken::addNewAnnotation):
138         (WebCore::WebVTTToken::annotation):
139         * html/track/WebVTTTokenizer.cpp:
140         (WebCore::equalLiteral):
141         (WebCore::WebVTTTokenizer::WebVTTTokenizer):
142         (WebCore::WebVTTTokenizer::nextToken):
143         * html/track/WebVTTTokenizer.h:
144
145 2014-03-19  Mark Hahnenberg  <mhahnenberg@apple.com>
146
147         GC timer should intelligently choose between EdenCollections and FullCollections
148         https://bugs.webkit.org/show_bug.cgi?id=128261
149
150         Reviewed by Geoffrey Garen.
151
152         No new tests.
153
154         Updated WebSafeGCActivityCallbacks for both Eden and Full timers.
155
156         * bindings/js/JSDOMWindowBase.cpp:
157         (WebCore::JSDOMWindowBase::commonVM):
158         * platform/ios/WebSafeGCActivityCallbackIOS.h:
159
160 2014-03-19  Andy Estes  <aestes@apple.com>
161
162         Fix the iOS build after r165917.
163
164         * platform/ios/WebCoreSystemInterfaceIOS.mm:
165
166 2014-03-19  Commit Queue  <commit-queue@webkit.org>
167
168         Unreviewed, rolling out r165926.
169         https://bugs.webkit.org/show_bug.cgi?id=130488
170
171         broke the iOS build (Requested by estes on #webkit).
172
173         Reverted changeset:
174
175         "GC timer should intelligently choose between EdenCollections
176         and FullCollections"
177         https://bugs.webkit.org/show_bug.cgi?id=128261
178         http://trac.webkit.org/changeset/165926
179
180 2014-03-19  Commit Queue  <commit-queue@webkit.org>
181
182         Unreviewed, rolling out r165929.
183         https://bugs.webkit.org/show_bug.cgi?id=130487
184
185         in order to roll out r165926 (Requested by estes on #webkit).
186
187         Reverted changeset:
188
189         http://trac.webkit.org/changeset/165929
190
191 2014-03-19  Mark Hahnenberg  <mhahnenberg@apple.com>
192
193         Build fix for iOS after r165926
194
195         * bindings/js/JSDOMWindowBase.cpp:
196         (WebCore::JSDOMWindowBase::commonVM):
197         * platform/ios/WebSafeGCActivityCallbackIOS.h:
198
199 2014-03-19  Eric Carlson  <eric.carlson@apple.com>
200
201         Allow media engine to update HTMLMediaElement state when playing to external device
202         https://bugs.webkit.org/show_bug.cgi?id=130480
203
204         Reviewed by Jer Noble.
205
206         * html/HTMLMediaElement.h: Add mediaPlayerHandlePlaybackCommand.
207
208         * platform/graphics/MediaPlayer.cpp:
209         (WebCore::MediaPlayer::handlePlaybackCommand): New.
210         * platform/graphics/MediaPlayer.h:
211         (WebCore::MediaPlayerClient::mediaPlayerHandlePlaybackCommand):
212
213         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
214         (WebCore::MediaPlayerPrivateAVFoundation::rateChanged): Send Play and Pause commands when
215             playing to an external device.
216
217 2014-03-19  Dirk Schulze  <krit@webkit.org>
218
219         Implement isPointInPath and isPointInStroke with Path2D argument
220         https://bugs.webkit.org/show_bug.cgi?id=130473
221
222         Reviewed by Dean Jackson.
223
224         Implement isPointInPath and isPointInStroke for 2D Canvas contxts
225         with Path2D argument.
226
227
228         Tests: fast/canvas/canvas-path-isPointInPath.html
229                fast/canvas/canvas-path-isPointInStroke.html
230
231         * html/canvas/CanvasRenderingContext2D.cpp:
232         (WebCore::CanvasRenderingContext2D::isPointInPath):
233         (WebCore::CanvasRenderingContext2D::isPointInStroke):
234         (WebCore::CanvasRenderingContext2D::isPointInPathInternal):
235         (WebCore::CanvasRenderingContext2D::isPointInStrokeInternal):
236         * html/canvas/CanvasRenderingContext2D.h:
237         * html/canvas/CanvasRenderingContext2D.idl:
238
239 2014-03-13  Mark Hahnenberg  <mhahnenberg@apple.com>
240
241         GC timer should intelligently choose between EdenCollections and FullCollections
242         https://bugs.webkit.org/show_bug.cgi?id=128261
243
244         Reviewed by Geoffrey Garen.
245
246         No new tests.
247
248         * platform/ios/WebSafeGCActivityCallbackIOS.h: Update WebSafeGCActivityCallback
249         appropriately for the introduction of another type of GCActivityCallback.
250
251 <<<<<<< .mine
252 2014-03-18  Mark Hahnenberg  <mhahnenberg@apple.com>
253
254         GC timer should intelligently choose between EdenCollections and FullCollections
255         https://bugs.webkit.org/show_bug.cgi?id=128261
256
257         Reviewed by Geoffrey Garen.
258
259         No new tests.
260
261         Updated WebSafeGCActivityCallbacks for both Eden and Full timers.
262
263         * platform/ios/WebSafeGCActivityCallbackIOS.h:
264
265 =======
266 2014-03-19  Antti Koivisto  <antti@apple.com>
267
268         Crash with long selector list
269         https://bugs.webkit.org/show_bug.cgi?id=123006
270
271         Reviewed by Andreas Kling.
272
273         Test: fast/css/long-selector-list-crash.html
274
275         * css/CSSSelectorList.cpp:
276         (WebCore::CSSSelectorList::CSSSelectorList):
277         (WebCore::CSSSelectorList::adoptSelectorVector):
278         (WebCore::CSSSelectorList::operator=):
279         * css/StyleRule.cpp:
280         (WebCore::StyleRule::create):
281
282             Add a bunch of asserts.
283
284         (WebCore::StyleRule::splitIntoMultipleRulesWithMaximumSelectorComponentCount):
285         
286             This could produce a zero-length selector list.
287
288 2014-03-19  Andreas Kling  <akling@apple.com>
289
290         Rebaseline bindings tests.
291
292         * bindings/scripts/test/JS/*:
293
294 2014-03-04  Jer Noble  <jer.noble@apple.com>
295
296         [iOS][MediaControls] Reverse-pinching using the built-in controls should enter full screen
297         https://bugs.webkit.org/show_bug.cgi?id=129707
298
299         Reviewed by Eric Carlson.
300
301         The default controls on iOS should respond to a pinch gesture by entering fullscreen. Add a gesture
302         event listener, and enter full screen if the user does a quick (>2 velocity) reverse (>1.25 scale) pinch.
303
304         * Modules/mediacontrols/mediaControlsiOS.js:
305         (ControllerIOS.prototype.createBase):
306         (ControllerIOS.prototype.handlePlayButtonTouchEnd):
307         (ControllerIOS.prototype.handleBaseGestureStart):
308         (ControllerIOS.prototype.handleBaseGestureChange):
309         (ControllerIOS.prototype.handleBaseGestureEnd):
310
311 2014-03-19  Ryosuke Niwa  <rniwa@webkit.org>
312
313         REGRESSION(r156316): Scrollbar on a large document is broken
314         https://bugs.webkit.org/show_bug.cgi?id=130474
315         <rdar://problem/16371523>
316
317         Reviewed by Anders Carlsson.
318
319         The bug was caused by updateArrowPlacement() doing the work even though Scrollbar Overlay API is available.
320         Prior to r156316, this function exited early:
321         http://trac.webkit.org/browser/trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm?rev=156315#L147
322
323         Fixed the bug by deleting updateArrowPlacement() entirely.
324
325         * platform/mac/ScrollbarThemeMac.mm:
326         (WebCore::ScrollbarThemeMac::preferencesChanged):
327
328 2014-03-19  Jer Noble  <jer.noble@apple.com>
329
330         [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
331         https://bugs.webkit.org/show_bug.cgi?id=130459
332
333         Reviewed by Eric Carlson.
334
335         * WebCore.exp.in: Export the new WCSI method.
336         * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
337         (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::supportsKeySystem): Bail early if we have no decoder support.
338         * platform/mac/WebCoreSystemInterface.h: Provide a WCSI wrapper for WKSI.
339         * platform/mac/WebCoreSystemInterface.mm: Ditto.
340
341 2014-03-19  Eric Carlson  <eric.carlson@apple.com>
342
343         Make Remote Control commands testable
344         https://bugs.webkit.org/show_bug.cgi?id=130358
345
346         Reviewed by Jer Noble.
347
348         Test: media/video-remote-control-playpause.html
349
350         * html/HTMLMediaElement.cpp:
351         (WebCore::HTMLMediaElement::mediaPlayerTimeChanged): Call session->clientWillPausePlayback.
352         (WebCore::HTMLMediaElement::didReceiveRemoteControlCommand): Log the command.
353
354         * platform/audio/MediaSession.cpp:
355         (WebCore::MediaSessionClient::mediaSessionTitle): Move from header file.
356         (WebCore::MediaSessionClient::mediaSessionDuration): Ditto.
357         (WebCore::MediaSessionClient::mediaSessionCurrentTime): Ditto.
358         * platform/audio/MediaSession.h:
359
360         * platform/audio/MediaSessionManager.cpp:
361         (WebCore::MediaSessionManager::MediaSessionManager): Get rid of m_activeSession.
362         (WebCore::MediaSessionManager::removeSession): No need to clear m_activeSession because 
363             we use the m_sessions vector.
364         (WebCore::MediaSessionManager::sessionWillBeginPlayback): setCurrentSession takes a 
365             MediaSession&.
366         (WebCore::MediaSessionManager::sessionWillEndPlayback): Keep m_sessions sorted so playing
367             sessions are before paused sessions.
368         (WebCore::MediaSessionManager::setCurrentSession): Move the session that is beginning to
369             play to the head of m_sessions.
370         (WebCore::MediaSessionManager::currentSession): Return m_sessions[0] or nullptr.
371         (WebCore::MediaSessionManager::didReceiveRemoteControlCommand):
372         * platform/audio/MediaSessionManager.h:
373
374         * platform/audio/ios/MediaSessionManagerIOS.mm: Include MediaPlayer.h.
375
376         * testing/Internals.cpp:
377         (WebCore::Internals::postRemoteControlCommand): New.
378         * testing/Internals.h:
379         * testing/Internals.idl:
380
381 2014-03-19  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
382
383         Improving webkitGetUserMedia error handling and error messages
384         https://bugs.webkit.org/show_bug.cgi?id=130452
385
386         Reviewed by Eric Carlson.
387
388         Checking if first argument of webkitGetUserMedia is a valid Dictionary. If not, throw an exception with a
389         clearer message of the error.
390
391         Test updated.
392
393         * Modules/mediastream/NavigatorMediaStream.idl:
394         * UseJSC.cmake:
395         * bindings/js/JSNavigatorCustom.cpp: Added.
396
397 2014-03-19  Andreas Kling  <akling@apple.com>
398
399         JSC bindings should use the passed-in global object for wrapper caching.
400         <https://webkit.org/b/130458>
401
402         Take a shorter path to the DOMWrapperWorld by using the passed-in
403         global object instead of getting the lexical global from ExecState.
404         Removed an old FIXME that no longer applies since JSObjects can
405         always find the right global object these days.
406
407         Reviewed by Geoff Garen.
408
409         * bindings/js/JSCSSRuleCustom.cpp:
410         (WebCore::toJS):
411         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
412         (WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
413         * bindings/js/JSCSSValueCustom.cpp:
414         (WebCore::toJS):
415         * bindings/js/JSDOMBinding.h:
416         (WebCore::createWrapper):
417         (WebCore::wrap):
418         (WebCore::getExistingWrapper):
419         (WebCore::createNewWrapper):
420         (WebCore::toJS):
421         * bindings/js/JSDOMWindowCustom.cpp:
422         (WebCore::JSDOMWindow::setTimeout):
423         (WebCore::JSDOMWindow::setInterval):
424         (WebCore::JSDOMWindow::addEventListener):
425         (WebCore::JSDOMWindow::removeEventListener):
426         * bindings/js/JSDocumentCustom.cpp:
427         (WebCore::JSDocument::location):
428         (WebCore::toJS):
429         * bindings/js/JSElementCustom.cpp:
430         (WebCore::toJSNewlyCreated):
431         * bindings/js/JSEventCustom.cpp:
432         (WebCore::toJS):
433         * bindings/js/JSHTMLCollectionCustom.cpp:
434         (WebCore::toJS):
435         * bindings/js/JSHTMLTemplateElementCustom.cpp:
436         (WebCore::JSHTMLTemplateElement::content):
437         * bindings/js/JSImageDataCustom.cpp:
438         (WebCore::toJS):
439         * bindings/js/JSNodeCustom.cpp:
440         (WebCore::createWrapperInline):
441         * bindings/js/JSNodeCustom.h:
442         (WebCore::toJS):
443         * bindings/js/JSSVGPathSegCustom.cpp:
444         (WebCore::toJS):
445         * bindings/js/JSStyleSheetCustom.cpp:
446         (WebCore::toJS):
447         * bindings/js/JSTextTrackCueCustom.cpp:
448         (WebCore::toJS):
449         * bindings/js/JSTrackCustom.cpp:
450         (WebCore::toJS):
451         * bindings/js/JSWorkerGlobalScopeCustom.cpp:
452         (WebCore::JSWorkerGlobalScope::setTimeout):
453         (WebCore::JSWorkerGlobalScope::setInterval):
454         * bindings/scripts/CodeGeneratorJS.pm:
455         (GenerateImplementation):
456
457 2014-03-19  Benjamin Poulain  <bpoulain@apple.com>
458
459         Page::setPageScaleFactor should not force the scroll view position when using delegatesScrolling()
460         https://bugs.webkit.org/show_bug.cgi?id=130429
461
462         Reviewed by Simon Fraser.
463
464         When setting the same scale mutliple time (for example on load), Page was asking the top scrollview
465         to scroll to the origin. This is bogus since the scroll view is driving Page::setDeviceScaleFactor,
466         not the other way around.
467
468         Simon fixed the general case in http://trac.webkit.org/changeset/165652/trunk/Source/WebCore/page/Page.cpp
469         but this branch was still scrolling content.
470
471         * page/Page.cpp:
472         (WebCore::Page::setPageScaleFactor):
473
474 2014-03-19  Brady Eidson  <beidson@apple.com>
475
476         Filter out editable services from image menu for non-contenteditable images
477         <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
478
479         Reviewed by Tim Horton.
480
481         * WebCore.exp.in:
482
483 2014-03-19  Dirk Schulze  <krit@webkit.org>
484
485         Implement method addPath for Path2D
486         https://bugs.webkit.org/show_bug.cgi?id=130461
487
488         Reviewed by Dean Jackson.
489
490         Add support for the Path2D method addPath. The method allows
491         to append and existing Path2D object to another one. It can be
492         combined with a transformation matrix SVGMatrix.
493
494         Test: fast/canvas/canvas-path-addPath.html
495
496         * html/canvas/DOMPath.h: Add new method addPath().
497         (WebCore::DOMPath::addPath):
498         * html/canvas/DOMPath.idl:
499         * platform/graphics/Path.h: Add support for appending paths.
500         * platform/graphics/cairo/PathCairo.cpp:
501         (WebCore::Path::addPath):
502         * platform/graphics/cg/PathCG.cpp:
503         (WebCore::Path::addPath):
504         * platform/graphics/wince/PathWinCE.cpp:
505         (WebCore::Path::addPath):
506
507 2014-03-19  Yongjun Zhang  <yongjun_zhang@apple.com>
508
509         [iOS] WebKit2 Quicklook.
510         https://bugs.webkit.org/show_bug.cgi?id=130360
511
512         Reviewed by Tim Horton.
513
514         Since ResourceLoaders using WebKit2 network process don't have ResourceHandle any more, we
515         need to make it possible to create QuickLookHandle from ResourceLoader.
516
517         * WebCore.exp.in: Make some QuickLookHandle methods visible from WebKit2.
518         * loader/ResourceLoader.h: Add m_quickLookHandle data member to ResourceLoader.
519         (WebCore::ResourceLoader::quickLookHandle):
520         (WebCore::ResourceLoader::setQuickLookHandle):
521         * platform/network/ios/QuickLook.h: Add a new method to create QuickLookHandle from ResourceLoader.
522         * platform/network/ios/QuickLook.mm:
523         (WebCore::QuickLookHandle::create):
524
525 2014-03-19  Brent Fulgham  <bfulgham@apple.com>
526
527         Fix cue rendering test and include support for left/right alignment
528         https://bugs.webkit.org/show_bug.cgi?id=130406
529
530         Reviewed by Eric Carlson.
531
532         Merged from Blink (patch by vcarbune@chromium.org):
533         https://chromium.googlesource.com/chromium/blink/+/e695703cb603421c741e59a557a7989113c13b94
534         http://crbug.com/25155003
535
536         No new tests. Covered by media/track/track-cue-rendering-snap-to-lines-not-set.html.
537
538         * html/track/VTTCue.cpp:
539         (WebCore::leftKeyword): Added.
540         (WebCore::rightKeyword): Added.
541         (WebCore::VTTCueBox::applyCSSProperties): Added.
542         (WebCore::VTTCue::VTTCue):
543         (WebCore::VTTCue::align): Handle left/right alignment.
544         (WebCore::VTTCue::setAlign): Ditto.
545         (WebCore::VTTCue::calculateDisplayParameters): Refactored and revised for left/right tokens.
546         (WebCore::VTTCue::setCueSettings): Ditto.
547         (WebCore::VTTCue::getCSSAlignment): Added.
548         (WebCore::VTTCue::getCSSWritingMode): Added.
549         * html/track/VTTCue.h:
550
551 2014-03-18  Anders Carlsson  <andersca@apple.com>
552
553         Add new functionality that will be required by the history item decoding
554         https://bugs.webkit.org/show_bug.cgi?id=130433
555
556         Reviewed by Sam Weinig.
557
558         * platform/KeyedCoding.h:
559         (WebCore::KeyedDecoder::decodeConditionalObject):
560
561 2014-03-19  Tim Horton  <timothy_horton@apple.com>
562
563         Fix the iOS build.
564
565         * html/BaseDateAndTimeInputType.cpp:
566         (WebCore::BaseDateAndTimeInputType::parseToDateComponents):
567         Missing a StringView().
568
569 2014-03-19  Antti Koivisto  <antti@apple.com>
570
571         Tighten ElementRuleCollector::m_matchedRuleList typing
572         https://bugs.webkit.org/show_bug.cgi?id=130446
573
574         Reviewed by Anders Carlsson.
575
576         StyleRuleBase -> StyleRule.
577
578         * css/ElementRuleCollector.cpp:
579         (WebCore::ElementRuleCollector::matchedRuleList):
580         * css/ElementRuleCollector.h:
581         * css/StyleResolver.cpp:
582         (WebCore::StyleResolver::styleRulesForElement):
583         (WebCore::StyleResolver::pseudoStyleRulesForElement):
584         * css/StyleResolver.h:
585         * editing/EditingStyle.cpp:
586         (WebCore::styleFromMatchedRulesForElement):
587         * inspector/InspectorCSSAgent.cpp:
588         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
589         (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
590         * inspector/InspectorCSSAgent.h:
591         * page/DOMWindow.cpp:
592         (WebCore::DOMWindow::getMatchedCSSRules):
593
594 2014-03-19  Mihnea Ovidenie  <mihnea@adobe.com>
595
596         [CSSRegions] An unsplittable box is always displayed in a single region
597         https://bugs.webkit.org/show_bug.cgi?id=130451
598
599         Reviewed by Andrei Bucur.
600
601         Add an ASSERT stating that an unsplittable box region range always contains 1 region.
602         No new functionality, no new tests.
603
604         * rendering/RenderFlowThread.cpp:
605         (WebCore::RenderFlowThread::getRegionRangeForBox):
606
607 2014-03-19  Zalan Bujtas  <zalan@apple.com>
608
609         Subpixel rendering: Transform origin is miscalculated when RenderLayer's
610         offsetfromRenderer has device pixel fraction value.
611         https://bugs.webkit.org/show_bug.cgi?id=129859
612
613         Reviewed by Simon Fraser.
614
615         We need to calculate the transformed origin using the painting coordinates to produce
616         pixel precise result.
617
618         * rendering/RenderLayerBacking.cpp:
619         (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
620         (WebCore::RenderLayerBacking::computeTransformOriginForPainting):
621         * rendering/RenderLayerBacking.h:
622
623 2014-03-19  Claudio Saavedra  <csaavedra@igalia.com>
624
625         [GStreamer] Clean timeout source ids
626         https://bugs.webkit.org/show_bug.cgi?id=130450
627
628         Reviewed by Philippe Normand.
629
630         Sources IDs need to be cleaned up if the callback removes the
631         source, otherwise we'll be attempting to remove an empty source at
632         some point.
633
634         * platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp:
635         (webKitMediaVideoSrcStart): Clean the source id.
636         (webKitMediaAudioSrcStart): Ditto.
637         (webKitMediaVideoSrcSeekMainCb): Ditto.
638         (webKitMediaAudioSrcSeekMainCb): Ditto.
639
640 2014-03-19  Mihnea Ovidenie  <mihnea@adobe.com>
641
642         [CSSRegions] Compute region ranges for children of inline blocks
643         https://bugs.webkit.org/show_bug.cgi?id=130392
644
645         Reviewed by Andrei Bucur.
646
647         Extend the region ranges computation for children of inline blocks.
648         When we cannot retrieve the region range for a box using cached information,
649         either from region range map or from the region cached on the RootInlineBox,
650         try to find the top most unsplittable box up to the flow thread boundary.
651         If we find such unsplittable box and the box has a region range, then return
652         this range.
653
654         Before this patch, method getRegionRangeForBox did not return true/false
655         if it was able to retrieve the range and the caller checked the returned
656         region values. I modified the method to return true if we were able to compute
657         the range.
658
659         Tests: fast/regions/inline-block-inline-children-flowed-in-regions.html
660                fast/regions/inline-blocks-dyn-enlarged-regions.html
661                fast/regions/inline-blocks-dyn-shrunk-regions.html
662                fast/regions/inline-blocks-in-two-regions.html
663
664         * inspector/InspectorOverlay.cpp:
665         (WebCore::buildObjectForRendererFragments):
666         * rendering/RenderBlock.cpp:
667         (WebCore::RenderBlock::updateRegionRangeForBoxChild):
668         * rendering/RenderBlockFlow.cpp:
669         (WebCore::RenderBlockFlow::hasNextPage):
670         * rendering/RenderBox.cpp:
671         (WebCore::RenderBox::clampToStartAndEndRegions):
672         (WebCore::RenderBox::borderBoxRectInRegion):
673         (WebCore::RenderBox::computeRectForRepaint):
674         (WebCore::RenderBox::layoutOverflowRectForPropagation):
675         * rendering/RenderBoxModelObject.cpp:
676         (WebCore::RenderBoxModelObject::mapAbsoluteToLocalPoint):
677         * rendering/RenderFlowThread.cpp:
678         (WebCore::RenderFlowThread::regionForCompositedLayer):
679         (WebCore::RenderFlowThread::adjustedPositionRelativeToOffsetParent):
680         (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
681         (WebCore::RenderFlowThread::logicalWidthChangedInRegionsForBlock):
682         (WebCore::RenderFlowThread::getRegionRangeForBoxFromCachedInfo):
683         (WebCore::RenderFlowThread::getRegionRangeForBox):
684         (WebCore::RenderFlowThread::objectShouldPaintInFlowRegion):
685         (WebCore::RenderFlowThread::objectInFlowRegion):
686         (WebCore::RenderFlowThread::addRegionsVisualEffectOverflow):
687         (WebCore::RenderFlowThread::addRegionsVisualOverflowFromTheme):
688         (WebCore::RenderFlowThread::addRegionsOverflowFromChild):
689         (WebCore::RenderFlowThread::addRegionsLayoutOverflow):
690         (WebCore::RenderFlowThread::addRegionsVisualOverflow):
691         (WebCore::RenderFlowThread::clearRegionsOverflow):
692         * rendering/RenderFlowThread.h:
693         * rendering/RenderNamedFlowThread.cpp:
694         (WebCore::RenderNamedFlowThread::fragmentFromAbsolutePointAndBox):
695         * rendering/RenderObject.cpp:
696         (WebCore::RenderObject::locateFlowThreadContainingBlock):
697         Make sure we return the right render flow thread in the case of
698         region-based multicolumn inside named flows.
699         * rendering/RenderRegion.cpp:
700         (WebCore::RenderRegion::rectFlowPortionForBox):
701
702 2014-03-19  Krzysztof Wolanski  <k.wolanski@samsung.com>
703
704         [EFL] vibration/cancelVibration-during-pattern-vibrating.html is failing after r165598
705         https://bugs.webkit.org/show_bug.cgi?id=130333
706
707         Reviewed by Gyuyoung Kim.
708
709         Added setting m_state when calling Vibration::vibrate. It was missing after
710         refactoring Vibration (r165598).
711
712         * Modules/vibration/Vibration.cpp:
713         (WebCore::Vibration::vibrate):
714
715 2014-03-19  Sam Weinig  <sam@webkit.org>
716
717         Rewrite WebHTMLConverter::_colorForNode in C++
718         https://bugs.webkit.org/show_bug.cgi?id=130443
719
720         Reviewed by Andreas Kling.
721
722         * platform/mac/HTMLConverter.mm:
723         (_platformColor):
724         Rename from _colorForRGBColor and simplify to just do the platform conversion.
725
726         (normalizedColor):
727         Extract normalization out of _colorForRGBColor and remove cases that are impossible to hit
728         due to us only ever using the device color space.
729
730         (HTMLConverterCaches::colorPropertyValueForNode):
731         (-[WebHTMLConverter _colorForNode:property:]):
732         Convert to C++.
733
734         (-[WebHTMLConverter dealloc]):
735         (-[WebHTMLConverter init]):
736         Remove caches, we already cache in ColorMac.
737
738 2014-03-18  Andrei Bucur  <abucur@adobe.com>
739
740         [CSS Regions] Strange layout for content with region breaks
741         https://bugs.webkit.org/show_bug.cgi?id=121318
742
743         Reviewed by Mihnea Ovidenie.
744
745         When break-inside: avoid is used on an element, the implementation tries to
746         force it inside a single fragmentation container even though the descendants
747         of the element specify forced breaks. This leads to unexpected results and
748         unstable layout.
749
750         The change extends the definition of unsplittable elements for flow threads
751         using the same conditions found inside RenderBlockFlow::adjustForUnsplittableChild.
752         This change forces elements that require break avoidance to have a single region
753         in the region range. As a result, forced breaks have no effect inside them.
754
755         It should be noted this may not the behavior defined by the CSS3 Fragmentation spec.
756         From my understanding of the text, forced breaks override any avoidance specified
757         by ancestor elements. However, implementing this is a larger change that will require
758         a fundamental new approach in handling break avoidance. This patch just brings
759         consistency to the API.
760
761         Test: fast/regions/forced-break-inside-avoid-break.html
762
763         * rendering/RenderBlock.cpp:
764         (WebCore::RenderBlock::childBoxIsUnsplittableForFragmentation):
765         (WebCore::RenderBlock::computeRegionRangeForBoxChild):
766         (WebCore::RenderBlock::estimateRegionRangeForBoxChild):
767         * rendering/RenderBlock.h:
768         * rendering/RenderBlockFlow.cpp:
769         (WebCore::RenderBlockFlow::adjustForUnsplittableChild): Move the avoidance conditions inside
770         a helper method RenderBlock::childBoxIsUnsplittableForFragmentation.
771
772 2014-03-18  Samuel White  <samuel_white@apple.com>
773
774         AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
775         https://bugs.webkit.org/show_bug.cgi?id=130250
776
777         Reviewed by Chris Fleizach.
778
779         If initial selection isn't set when we handle selection movement for accessibility, we need to set it. If we don't, using arrow
780         keys to read text with VoiceOver doesn't work as expected. Things will only start working after the user holds shift and arrows
781         around to select any arbitrary thing to force selection to get set. This logic handles that special case more gracefully.
782
783         Test: platform/mac/accessibility/selection-initial.html
784
785         * page/EventHandler.cpp:
786         (WebCore::handleKeyboardSelectionMovement):
787         (WebCore::EventHandler::handleKeyboardSelectionMovementForAccessibility):
788         * testing/Internals.cpp:
789         (WebCore::Internals::resetToConsistentState):
790
791 2014-03-18  Brent Fulgham  <bfulgham@apple.com>
792
793         TextTrackRegion Not Implemented
794         https://bugs.webkit.org/show_bug.cgi?id=116546
795
796         Reviewed by Eric Carlson.
797
798         Merged from Blink (patch by vcarbune@chromium.org):
799         https://chromium.googlesource.com/chromium/blink/+/4940f89a087fea5b5ea628e98d0b355d398a9eea
800         http://crbug.com/25798003
801
802         Tests: media/track/regions-webvtt/text-track-region-display.html
803                media/track/regions-webvtt/text-track-region-dom-layout.html
804
805         * html/HTMLMediaElement.cpp:
806         (WebCore::HTMLMediaElement::parseAttribute):
807         * html/track/LoadableTextTrack.cpp:
808         (WebCore::LoadableTextTrack::newRegionsAvailable):
809         * html/track/TextTrack.cpp:
810         * html/track/TextTrack.h:
811         * html/track/TextTrackRegion.cpp:
812         (WebCore::TextTrackRegion::TextTrackRegion):
813         (WebCore::TextTrackRegion::appendTextTrackCueBox):
814         * html/track/TextTrackRegion.h:
815         * html/track/VTTCue.cpp:
816         (WebCore::VTTCue::VTTCue):
817         (WebCore::VTTCue::notifyRegionWhenRemovingDisplayTree):
818         (WebCore::VTTCue::removeDisplayTree):
819         * html/track/VTTCue.h:
820         * html/track/WebVTTParser.cpp:
821         (WebCore::WebVTTParser::parseBytes):
822         (WebCore::WebVTTParser::collectMetadataHeader):
823         * html/track/WebVTTParser.h:
824
825 2014-03-18  Andreas Kling  <akling@apple.com>
826
827         Share MemoryPressureHandler::releaseMemory() between platforms.
828         <https://webkit.org/b/130416>
829
830         Move the code that scours WebKit for things we can free up right now
831         to the common part of MemoryPressureHandler. This will enable other
832         platforms to do the same thing under pressure.
833
834         There's now also a platformReleaseMemory() where platform-specific
835         pressure relief stuff can go.
836
837         Reviewed by Antti Koivisto.
838
839         * platform/MemoryPressureHandler.cpp:
840         (WebCore::MemoryPressureHandler::releaseMemory):
841         (WebCore::MemoryPressureHandler::platformReleaseMemory):
842         * platform/MemoryPressureHandler.h:
843         * platform/mac/MemoryPressureHandlerMac.mm:
844         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
845         (WebCore::MemoryPressureHandler::platformReleaseMemory):
846
847 2014-03-18  Dean Jackson  <dino@apple.com>
848
849         [WebGL] Destroy EAGLContext's backing store
850         https://bugs.webkit.org/show_bug.cgi?id=130439
851         <rdar://problem/16295217>
852
853         Reviewed by Tim Horton.
854
855         When a GraphicsContext3D is being destroyed, we should
856         also remove any EAGLContext backing store.
857
858         * platform/graphics/mac/GraphicsContext3DMac.mm:
859         (WebCore::GraphicsContext3D::~GraphicsContext3D):
860
861 2014-03-18  Tim Horton  <timothy_horton@apple.com>
862
863         [iOS][WebKit2] Mark layer contents as being opaque if they are
864         https://bugs.webkit.org/show_bug.cgi?id=130427
865         <rdar://problem/15540434>
866
867         Reviewed by Simon Fraser.
868
869         * platform/graphics/GraphicsLayerClient.h:
870         (WebCore::GraphicsLayerClient::paintsOpaquelyAtNonIntegralScales):
871         * platform/graphics/ca/GraphicsLayerCA.cpp:
872         (WebCore::GraphicsLayerCA::updateContentsOpaque):
873         * rendering/RenderLayerBacking.cpp:
874         (WebCore::RenderLayerBacking::paintsOpaquelyAtNonIntegralScales):
875         * rendering/RenderLayerBacking.h:
876         r159463 stopped us from setting layers opaque if they were being painted
877         at non-integral scale. This makes sense for compositing layers, which
878         are painted by arbitrary elements, but the main frame's RenderView
879         will always paint its entire contents. To restore the opaque contents
880         optimization to the main frame's tiles, don't de-opaquify layers
881         belonging to the main frame's RenderView.
882
883 2014-03-18  Jeffrey Pfau  <jpfau@apple.com>
884
885         Unify <media> element callback registration and unregistration
886         https://bugs.webkit.org/show_bug.cgi?id=130417
887
888         Reviewed by Eric Carlson.
889
890         * html/HTMLMediaElement.cpp:
891         (WebCore::HTMLMediaElement::HTMLMediaElement):
892         (WebCore::HTMLMediaElement::~HTMLMediaElement):
893         (WebCore::HTMLMediaElement::registerWithDocument):
894         (WebCore::HTMLMediaElement::unregisterWithDocument):
895         (WebCore::HTMLMediaElement::didMoveToNewDocument):
896         * html/HTMLMediaElement.h:
897
898 2014-03-18  Jer Noble  <jer.noble@apple.com>
899
900         MediaDocument should set a max-width on its <video> element.
901         https://bugs.webkit.org/show_bug.cgi?id=114691
902
903         Reviewed by Eric Carlson.
904
905         Set a style attribute containing max-width:100% and max-height:100% so that large videos
906         are entirely visible within the browser window bounds.
907
908         * html/MediaDocument.cpp:
909         (WebCore::MediaDocumentParser::createDocumentStructure):
910
911 2014-03-18  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
912
913         [WebRTC] Fix layering violation in RTCStatsRequest
914         https://bugs.webkit.org/show_bug.cgi?id=130426
915
916         Reviewed by Eric Carlson.
917
918         RTCStatsRequest::track() should return a MediaStreamTrackPrivate*.
919
920         No new tests needed.
921
922         * Modules/mediastream/RTCPeerConnection.cpp:
923         (WebCore::RTCPeerConnection::getStats):
924         * Modules/mediastream/RTCStatsRequestImpl.cpp:
925         (WebCore::RTCStatsRequestImpl::create):
926         (WebCore::RTCStatsRequestImpl::RTCStatsRequestImpl):
927         (WebCore::RTCStatsRequestImpl::track):
928         * Modules/mediastream/RTCStatsRequestImpl.h:
929         * platform/mediastream/RTCStatsRequest.h:
930
931 2014-03-18  Anders Carlsson  <andersca@apple.com>
932
933         Fix a trivial FIXME
934         https://bugs.webkit.org/show_bug.cgi?id=130432
935
936         Reviewed by Tim Horton.
937
938         * history/HistoryItem.cpp:
939         (WebCore::HistoryItem::encodeBackForwardTreeNode):
940
941 2014-03-18  Anders Carlsson  <andersca@apple.com>
942
943         Begin cleaning up KeyedDecoder and KeyedEncoder
944         https://bugs.webkit.org/show_bug.cgi?id=130431
945
946         Reviewed by Tim Horton.
947
948         Rename KeyedDecoder::decodeVerifiedEnum to decodeEnum to match the encode function,
949         and sort the decode functions to be in the same logical order as the encode functions.
950
951         * Modules/indexeddb/IDBKeyData.cpp:
952         (WebCore::IDBKeyData::decode):
953         * Modules/indexeddb/IDBKeyPath.cpp:
954         (WebCore::IDBKeyPath::decode):
955         * platform/KeyedCoding.h:
956         (WebCore::KeyedDecoder::decodeEnum):
957
958 2014-03-18  Darin Adler  <darin@apple.com>
959
960         Reduce use of deprecatedCharacters in WebCore
961         https://bugs.webkit.org/show_bug.cgi?id=130318
962
963         Reviewed by Andreas Kling.
964
965         * Modules/indexeddb/IDBKeyPath.cpp:
966         (WebCore::IDBKeyPathLexer::IDBKeyPathLexer): Use StringView for parsing.
967         (WebCore::IDBKeyPathLexer::lex): Ditto.
968         (WebCore::IDBKeyPathLexer::lexIdentifier): Ditto.
969
970         * Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp:
971         (WebCore::IDBLevelDBCoding::encodeString): Index directly into string instead of
972         using deprecatedCharacters.
973
974         * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
975         (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol): Use
976         StringView::getCharactersWithUpconvert.
977         (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions): Ditto.
978
979         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
980         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
981         Use operator NSString * instead of explicitly creating an NSString.
982
983         * bindings/js/SerializedScriptValue.cpp:
984         (WebCore::writeLittleEndianUInt16): Added.
985         (WebCore::CloneSerializer::serialize): Added a separate code path for 8-bit strings.
986         (WebCore::CloneSerializer::write): Ditto.
987
988         * bindings/objc/WebScriptObject.mm:
989         (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
990         Use operator NSString * instead of explicitly creating an NSString.
991
992         * dom/Document.cpp:
993         (WebCore::Document::parseQualifiedName): Index directly into string instead of
994         using deprecatedCharacters.
995         * editing/CompositeEditCommand.cpp:
996         (WebCore::containsOnlyWhitespace): Ditto.
997         * editing/SmartReplace.cpp:
998         (WebCore::addAllCodePoints): Ditto.
999         (WebCore::getSmartSet): Use StringView::upconvertedCharacters.
1000
1001         * editing/TextIterator.cpp:
1002         (WebCore::foldQuoteMarksAndSoftHyphens): Changed to return a value so it can be
1003         used in initialization rather than assignment.
1004         (WebCore::SearchBuffer::SearchBuffer): Use StringView::upconvertedCharacters.
1005
1006         * editing/TypingCommand.cpp:
1007         (WebCore::TypingCommand::insertText): Index directly into string instead of using
1008         deprecatedCharacters.
1009         * editing/VisiblePosition.cpp:
1010         (WebCore::VisiblePosition::characterAfter): Ditto.
1011         * editing/VisibleUnits.cpp:
1012         (WebCore::startOfParagraph): Ditto.
1013         (WebCore::endOfParagraph): Ditto.
1014
1015         * fileapi/WebKitBlobBuilder.cpp:
1016         (WebCore::BlobBuilder::append): Pass a StringView to TextEncoding::encode.
1017
1018         * html/BaseDateAndTimeInputType.cpp:
1019         (WebCore::BaseDateAndTimeInputType::parseToDateComponents): Use
1020         StringView::upconvertedCharacters.
1021
1022         * html/FormDataList.cpp:
1023         (WebCore::FormDataList::appendString): Pass a StringView to TextEncoding::encode.
1024
1025         * html/canvas/CanvasRenderingContext2D.cpp:
1026         (WebCore::normalizeSpaces): Use StringView::getCharactersWithUpconvert.
1027
1028         * html/parser/HTMLParserIdioms.cpp:
1029         (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 for a code path
1030         that already handled 8-bit characters separately.
1031         (WebCore::parseHTMLNonNegativeInteger): Ditto.
1032         (WebCore::parseDescriptors): Added an 8-bit code path.
1033
1034         * inspector/InspectorStyleSheet.cpp:
1035         (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Index directly into
1036         string instead of using deprecatedCharacters.
1037         * inspector/InspectorStyleTextEditor.cpp:
1038         (WebCore::InspectorStyleTextEditor::insertProperty): Ditto.
1039         (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto.
1040
1041         * page/ContentSecurityPolicy.cpp:
1042         (WebCore::isSourceListNone): Use StringView::upconvertedCharacters.
1043         (WebCore::CSPSourceList::parse): Ditto.
1044         (WebCore::NonceDirective::parse): Ditto.
1045         (WebCore::MediaListDirective::parse): Ditto.
1046         (WebCore::CSPDirectiveList::parse): Ditto.
1047         (WebCore::CSPDirectiveList::parseReportURI): Ditto.
1048         (WebCore::CSPDirectiveList::parseReflectedXSS): Ditto.
1049         (WebCore::ContentSecurityPolicy::didReceiveHeader): Ditto.
1050
1051         * page/PageSerializer.cpp:
1052         (WebCore::PageSerializer::serializeFrame): Pass a StringView into
1053         TextEncoding::encode.
1054         (WebCore::PageSerializer::serializeCSSStyleSheet): Ditto.
1055
1056         * platform/Length.cpp:
1057         (WebCore::countCharacter): Index directly into string instead of using
1058         deprecatedCharacters. Also changed to take a StringImpl&.
1059         (WebCore::newCoordsArray): Ditto. Call countCharacter the new way, and
1060         use StringView::upconvertedCharacters.
1061         (WebCore::newLengthArray): Ditto.
1062
1063         * platform/LinkHash.cpp:
1064         (WebCore::visitedLinkHash): Use characters16 for the 16-bit path.
1065         Also removed unused visitedURL function.
1066         * platform/LinkHash.h: Removed unused visitedURL function.
1067
1068         * platform/SharedBuffer.cpp:
1069         (WebCore::utf8Buffer): Added an 8-bit code path.
1070         * platform/URL.cpp:
1071         (WebCore::URL::port): Ditto.
1072         (WebCore::encodeRelativeString): Use StringView to call TextEncoding::encode.
1073
1074         * platform/graphics/Color.cpp:
1075         (WebCore::Color::parseHexColor): Use characters16 in the 16-bit path.
1076         (WebCore::Color::Color): Ditto.
1077
1078         * platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp:
1079         (WebCore::harfBuzzGetGlyph): Use StringView to call TextEncoding::encode.
1080
1081         * platform/graphics/StringTruncator.cpp:
1082         (WebCore::centerTruncateToBuffer): Use StringView::getCharactersWithUpconvert.
1083         (WebCore::rightTruncateToBuffer): Ditto.
1084         (WebCore::rightClipToCharacterBuffer): Ditto.
1085         (WebCore::rightClipToWordBuffer): Ditto.
1086         (WebCore::leftTruncateToBuffer): Ditto.
1087         (WebCore::truncateString): Ditto.
1088
1089         * platform/graphics/TextRun.h:
1090         (WebCore::TextRun::TextRun): Use characters16 in the 16-bit code path.
1091
1092         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1093         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
1094         Use StringView::upconvertedCharacters.
1095
1096         * platform/network/DataURL.cpp:
1097         (WebCore::handleDataURL): Use StringView to call TextEncoding::encode.
1098         * platform/network/FormDataBuilder.cpp:
1099         (WebCore::FormDataBuilder::addFilenameToMultiPartHeader): Ditto.
1100
1101         * platform/sql/SQLiteStatement.cpp:
1102         (WebCore::SQLiteStatement::bindBlob): Use StringView::upconvertedCharacters.
1103         (WebCore::SQLiteStatement::bindText): Ditto.
1104
1105         * platform/text/DecodeEscapeSequences.h:
1106         (WebCore::Unicode16BitEscapeSequence::decodeRun): Changed to take a StringView.
1107         (WebCore::URLEscapeSequence::decodeRun): Ditto.
1108         (WebCore::decodeEscapeSequences): Pass StringView to decodeRun.
1109
1110         * platform/text/Hyphenation.cpp:
1111         (WebCore::lastHyphenLocation): Take a StringView.
1112         * platform/text/Hyphenation.h: Make lastHyphenLocation take a StringView.
1113
1114         * platform/text/TextBreakIterator.cpp:
1115         (WebCore::initializeIteratorWithRules): Use StringView::upconvertedCharacters.
1116
1117         * platform/text/TextEncoding.cpp:
1118         (WebCore::TextEncoding::encode): Use StringView::upconvertedCharacters.
1119         Change argument type to StringView.
1120         * platform/text/TextEncoding.h: Ditto.
1121
1122         * platform/text/TextEncodingRegistry.cpp:
1123         (WebCore::atomicCanonicalTextEncodingName): Use characters16 for the 16-bit path.
1124
1125         * platform/text/cf/HyphenationCF.cpp:
1126         (WebCore::lastHyphenLocation): Use StringView::text.createCFStringWithoutCopying.
1127         Change argument type to StringView.
1128
1129         * rendering/RenderBlock.cpp:
1130         (WebCore::RenderBlock::constructTextRun): Use characters16 for the 16-bit path.
1131
1132         * rendering/RenderCombineText.cpp:
1133         (WebCore::RenderCombineText::width): Removed check for null characters pointer,
1134         since the pointer will never be null, and even if it was there would be no need
1135         for an early exit.
1136
1137         * rendering/RenderText.cpp:
1138         (WebCore::maxWordFragmentWidth): Take a StringView.
1139         (WebCore::RenderText::computePreferredLogicalWidths): Pass in a StringView.
1140         * rendering/line/BreakingContextInlineHeaders.h:
1141         (WebCore::tryHyphenating): Ditto.
1142
1143         * rendering/svg/SVGTextLayoutEngine.cpp:
1144         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath): Use
1145         StringView::upconvertedCharacters.
1146
1147         * rendering/svg/SVGTextMetrics.cpp:
1148         (WebCore::SVGTextMetrics::SVGTextMetrics): Use String::substring.
1149
1150         * svg/SVGAngle.cpp:
1151         (WebCore::SVGAngle::setValueAsString): Use StringView::upconvertedCharacters.
1152         * svg/SVGAnimateMotionElement.cpp:
1153         (WebCore::parsePoint): Ditto.
1154         * svg/SVGAnimationElement.cpp:
1155         (WebCore::parseKeySplines): Ditto.
1156         * svg/SVGFitToViewBox.cpp:
1157         (WebCore::SVGFitToViewBox::parseViewBox): Ditto.
1158
1159         * svg/SVGFontData.cpp:
1160         (WebCore::SVGFontData::applySVGGlyphSelection): Pass StringView to
1161         createStringWIthMirroredCharacters.
1162         (WebCore::createStringWithMirroredCharacters): Changed to use StringView and
1163         use indexing into that instead of a characters pointer.
1164
1165         * svg/SVGFontData.h: Removed createStringWithMirroredCharacters member function,
1166         since it has nothing to do with the SVGFontData object. Now it's just a private
1167         helper function in the SVGFontData.cpp source file.
1168
1169         * svg/SVGFontElement.cpp:
1170         (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Index into the string
1171         instead of using deprecatedCharacters.
1172
1173         * svg/SVGGlyphMap.h:
1174         (WebCore::SVGGlyphMap::addGlyph): Use StringView::upconvertedCharacters.
1175         (WebCore::SVGGlyphMap::collectGlyphsForString): Ditto.
1176         * svg/SVGGlyphRefElement.cpp:
1177         (WebCore::SVGGlyphRefElement::parseAttribute): Ditto.
1178         * svg/SVGLength.cpp:
1179         (WebCore::SVGLength::setValueAsString): Ditto.
1180         * svg/SVGLengthList.cpp:
1181         (WebCore::SVGLengthList::parse): Ditto.
1182         * svg/SVGNumberList.cpp:
1183         (WebCore::SVGNumberList::parse): Ditto.
1184         * svg/SVGParserUtilities.cpp:
1185         (WebCore::parseNumberFromString): Ditto.
1186         (WebCore::parseNumberOptionalNumber): Ditto.
1187         (WebCore::parseRect): Ditto.
1188         (WebCore::pointsListFromSVGData): Ditto.
1189         (WebCore::parseGlyphName): Ditto.
1190         (WebCore::parseKerningUnicodeString): Ditto.
1191         (WebCore::parseDelimitedString): Ditto.
1192         * svg/SVGPreserveAspectRatio.cpp:
1193         (WebCore::SVGPreserveAspectRatio::parse): Ditto.
1194         * svg/SVGStringList.cpp:
1195         (WebCore::SVGStringList::parse): Ditto.
1196         * svg/SVGTransformList.cpp:
1197         (WebCore::SVGTransformList::parse): Ditto.
1198         * svg/SVGTransformable.cpp:
1199         (WebCore::SVGTransformable::parseTransformType): Ditto.
1200         * svg/SVGViewSpec.cpp:
1201         (WebCore::SVGViewSpec::parseViewSpec): Ditto.
1202         * svg/SVGZoomAndPan.h:
1203         (WebCore::SVGZoomAndPan::parseAttribute): Ditto.
1204
1205         * xml/XMLHttpRequest.cpp:
1206         (WebCore::XMLHttpRequest::send): Pass a StringView to TextEncoding::encode.
1207
1208         * xml/XSLStyleSheetLibxslt.cpp:
1209         (WebCore::XSLStyleSheet::parseString): Use StringView::upconvertedCharacters.
1210
1211 2014-03-18  Bem Jones-Bey  <bjonesbe@adobe.com>
1212
1213         LayoutBox is a terrible name
1214         https://bugs.webkit.org/show_bug.cgi?id=130351
1215
1216         Reviewed by Simon Fraser.
1217
1218         Rename LayoutBox to CSSBoxType. Also rename the functions and methods
1219         that mention "LayoutBox" to something that makes sense for each
1220         specific situation.
1221
1222         No new tests, no behavior change.
1223
1224         * css/BasicShapeFunctions.cpp:
1225         (WebCore::valueForBasicShape):
1226         (WebCore::basicShapeForValue):
1227         * css/CSSBasicShapes.cpp:
1228         (WebCore::CSSBasicShapeCircle::cssText):
1229         (WebCore::CSSBasicShapeCircle::equals):
1230         (WebCore::CSSBasicShapeEllipse::cssText):
1231         (WebCore::CSSBasicShapeEllipse::equals):
1232         (WebCore::CSSBasicShapePolygon::cssText):
1233         (WebCore::CSSBasicShapePolygon::equals):
1234         (WebCore::CSSBasicShapeInset::cssText):
1235         * css/CSSBasicShapes.h:
1236         (WebCore::CSSBasicShape::referenceBox):
1237         (WebCore::CSSBasicShape::setReferenceBox):
1238         * css/CSSComputedStyleDeclaration.cpp:
1239         (WebCore::shapePropertyValue):
1240         * css/CSSPrimitiveValueMappings.h:
1241         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1242         (WebCore::CSSPrimitiveValue::operator CSSBoxType):
1243         * css/DeprecatedStyleBuilder.cpp:
1244         (WebCore::ApplyPropertyClipPath::applyValue):
1245         (WebCore::ApplyPropertyShape::applyValue):
1246         * page/animation/CSSPropertyAnimation.cpp:
1247         (WebCore::blendFunc):
1248         * rendering/ClipPathOperation.h:
1249         (WebCore::ShapeClipPathOperation::setReferenceBox):
1250         (WebCore::ShapeClipPathOperation::referenceBox):
1251         (WebCore::BoxClipPathOperation::create):
1252         (WebCore::BoxClipPathOperation::referenceBox):
1253         (WebCore::BoxClipPathOperation::BoxClipPathOperation):
1254         * rendering/shapes/Shape.cpp:
1255         (WebCore::Shape::createBoxShape):
1256         * rendering/shapes/Shape.h:
1257         * rendering/shapes/ShapeInfo.cpp:
1258         (WebCore::ShapeInfo<RenderType>::computedShape):
1259         * rendering/shapes/ShapeInfo.h:
1260         * rendering/shapes/ShapeInsideInfo.h:
1261         * rendering/shapes/ShapeOutsideInfo.h:
1262         * rendering/style/BasicShapes.cpp:
1263         (WebCore::BasicShape::canBlend):
1264         * rendering/style/BasicShapes.h:
1265         (WebCore::BasicShape::referenceBox):
1266         (WebCore::BasicShape::setReferenceBox):
1267         (WebCore::BasicShape::BasicShape):
1268         * rendering/style/RenderStyleConstants.h:
1269         * rendering/style/ShapeValue.h:
1270         (WebCore::ShapeValue::createShapeValue):
1271         (WebCore::ShapeValue::createBoxShapeValue):
1272         (WebCore::ShapeValue::cssBox):
1273         (WebCore::ShapeValue::ShapeValue):
1274
1275 2014-03-18  Daniel Bates  <dabates@apple.com>
1276
1277         REGRESSION (r162334): RenderTableCol::styleDidChange uses out-of-date table information
1278         https://bugs.webkit.org/show_bug.cgi?id=129561
1279
1280         Reviewed by Antti Koivisto.
1281
1282         Test: fast/table/update-col-width-and-remove-table-cell-crash.html
1283
1284         Fixes an issue where a table column or table column group may query an out-
1285         of-date model of its associated table as part of its process to propagate
1286         style changes to affected table cells.
1287
1288         * rendering/RenderTableCol.cpp:
1289         (WebCore::RenderTableCol::styleDidChange): Ensure that all sections in the table
1290         are up-to-date before querying for a table cell.
1291         * rendering/RenderTableSection.cpp:
1292         (WebCore::RenderTableSection::recalcCells): Update comment to read well. In
1293         particular, remove the reference to RenderTableSection::fillRowsWithDefaultStartingAtPosition()
1294         as this function was removed in <http://trac.webkit.org/changeset/99919>.
1295         (WebCore::RenderTableSection::setNeedsCellRecalc): Clear the grid preemptively to
1296         to ensure that accessors cannot access stale data. We'll build the grid again
1297         in RenderTableSection::recalcCells().
1298         (WebCore::RenderTableSection::numColumns): Add ASSERT(!m_needsCellRecalc) to assert
1299         that the grid cells are up-to-date. That is, we don't need to calculate them again.
1300         * rendering/RenderTableSection.h: Add ASSERT(!m_needsCellRecalc) or call recalcCellsIfNeeded()
1301         before accessing the grid to ensure that it's up-to-date.
1302
1303 2014-03-18  Daniel Bates  <dabates@apple.com>
1304
1305         REGRESSION (r163560): ASSERTION FAILED: childrenInline() in WebCore::RenderSVGText::layout
1306         https://bugs.webkit.org/show_bug.cgi?id=130346
1307
1308         Reviewed by Andreas Kling.
1309
1310         Following <http://trac.webkit.org/changeset/163560>, SVG inline elements may be treated as block-
1311         level elements depending on their CSS styles (e.g. display: block). But such elements should always
1312         be treated as inline-level elements.
1313
1314         Partially revert <http://trac.webkit.org/changeset/164368> as it addressed a similar issue for
1315         <tspan> and <tref>. Instead we should implement RenderSVGInline::updateFromStyle() to ensure that
1316         RenderSVGInline and any derived classes (e.g. RenderSVGTSpan) are always treated as inline elements
1317         regardless of their CSS style because the SVG text layout code depends on this assumption as part
1318         of a performance optimization. We may want to revaluate the benefits of this optimization with respect
1319         to code clarity and ensuring the code is less error prone.
1320
1321         Test: svg/text/a-display-block.html
1322               svg/text/tref-display-inherit.html
1323
1324         * css/StyleResolver.cpp:
1325         (WebCore::StyleResolver::adjustRenderStyle): Revert changes from <http://trac.webkit.org/changeset/164368>.
1326         * rendering/RenderInline.h:
1327         * rendering/svg/RenderSVGInline.cpp:
1328         (WebCore::RenderSVGInline::updateFromStyle): Added; ensure that RenderSVGInline and any derived
1329         classes are treated as inline elements because the SVG text layout code depends on this assumption.
1330         * rendering/svg/RenderSVGInline.h:
1331
1332 2014-03-18  Hans Muller  <hmuller@adobe.com>
1333
1334         [CSS Shapes] shape-outside: ellipse(50% 50% at) causes crash
1335         https://bugs.webkit.org/show_bug.cgi?id=130366
1336
1337         Reviewed by Andreas Kling.
1338
1339         The BasicShape ellipse and circle functions now report a syntax error
1340         if the "at" keyword is not followed by a position.
1341
1342         The existing parsing tests have been updated to include this case.
1343
1344         * css/CSSParser.cpp:
1345         (WebCore::CSSParser::parseBasicShapeCircle):
1346         (WebCore::CSSParser::parseBasicShapeEllipse):
1347
1348 2014-03-18  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
1349
1350         Removing MediaStreamVector typedef
1351         https://bugs.webkit.org/show_bug.cgi?id=130402
1352
1353         Reviewed by Eric Carlson.
1354
1355         * Modules/mediastream/MediaStream.h:
1356         * Modules/mediastream/RTCPeerConnection.cpp:
1357         (WebCore::RTCPeerConnection::getLocalStreams):
1358         (WebCore::RTCPeerConnection::getRemoteStreams):
1359         (WebCore::RTCPeerConnection::getStreamById):
1360         (WebCore::RTCPeerConnection::hasLocalStreamWithTrackId):
1361         * Modules/mediastream/RTCPeerConnection.h:
1362
1363 >>>>>>> .r165925
1364 2014-03-18  Commit Queue  <commit-queue@webkit.org>
1365
1366         Unreviewed, rolling out r165815.
1367         https://bugs.webkit.org/show_bug.cgi?id=130410
1368
1369         Broke many VTT tests (Requested by bfulgham on #webkit).
1370
1371         Reverted changeset:
1372
1373         "TextTrackRegion Not Implemented"
1374         https://bugs.webkit.org/show_bug.cgi?id=116546
1375         http://trac.webkit.org/changeset/165815
1376
1377 2014-03-18  Renata Hodovan  <rhodovan.u-szeged@partner.samsung.com>
1378
1379         Bad cast with toRenderBox in WebCore::RenderView::repaintViewRectangle
1380         https://bugs.webkit.org/show_bug.cgi?id=129104
1381
1382         Reviewed by Simon Fraser.
1383
1384         We should not cast the renderer of a RenderView's owner to RenderBox
1385         unless we are sure it is one.
1386
1387         Test: plugins/crash-invalid-data-reference.html
1388
1389         * rendering/RenderView.cpp:
1390         (WebCore::RenderView::repaintViewRectangle):
1391
1392 2014-03-18  Andreas Kling  <akling@apple.com>
1393
1394         Micro-optimize element descendant iterator.
1395         <https://webkit.org/b/130384>
1396
1397         Add a slightly more efficient ElementDescendantIterator that keeps a stack
1398         of relevant ancestor siblings instead of walking up the parent chain every
1399         time we run out of children.
1400
1401         Reviewed by Antti Koivisto.
1402
1403         * WebCore.xcodeproj/project.pbxproj:
1404         * dom/ElementDescendantIterator.h: Added.
1405         (WebCore::ElementDescendantIterator::ElementDescendantIterator):
1406         (WebCore::ElementDescendantIterator::operator++):
1407         (WebCore::ElementDescendantConstIterator::ElementDescendantConstIterator):
1408         (WebCore::ElementDescendantConstIterator::operator++):
1409         (WebCore::ElementDescendantIteratorAdapter::ElementDescendantIteratorAdapter):
1410         (WebCore::ElementDescendantIteratorAdapter::begin):
1411         (WebCore::ElementDescendantIteratorAdapter::end):
1412         (WebCore::ElementDescendantConstIteratorAdapter::ElementDescendantConstIteratorAdapter):
1413         (WebCore::ElementDescendantConstIteratorAdapter::begin):
1414         (WebCore::ElementDescendantConstIteratorAdapter::end):
1415         (WebCore::elementDescendants):
1416         * dom/ElementIterator.h:
1417         * dom/SelectorQuery.cpp:
1418         (WebCore::elementsForLocalName):
1419         (WebCore::anyElement):
1420         (WebCore::SelectorDataList::executeSingleTagNameSelectorData):
1421         (WebCore::SelectorDataList::executeSingleClassNameSelectorData):
1422         (WebCore::SelectorDataList::executeSingleSelectorData):
1423         (WebCore::SelectorDataList::executeSingleMultiSelectorData):
1424         (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
1425
1426 2014-03-18  Antti Koivisto  <antti@apple.com>
1427
1428         Mutating rules returned by getMatchedCSSRules can result in crash
1429         https://bugs.webkit.org/show_bug.cgi?id=130209
1430
1431         Reviewed by Andreas Kling.
1432         
1433         The non-standard getMatchedCSSRules API returns CSSStyleRule objects that don't
1434         have parent stylesheet pointer (as we don't know which sheet the rule originated from).
1435         Mutating the rule via such wrapper can lead to crashes later as we fail to invalidate
1436         the underlying stylesheet.
1437         
1438         Fix by disallowing mutation of style rules that don't have parent sheet pointer. CSSStyleRule
1439         has two mutable properties selectorText and style. The latter gives back CSSStyleDeclaration.
1440         This patch disallows mutations in both cases for CSSStyleRules that don't have parent stylesheet
1441         pointer.
1442         
1443         While it is technically possible to have CSSRules that are legitimately disconnected
1444         from stylesheet (by removing rule from sheet while holding a reference to it) it never
1445         makes sense to mutate such rule as there is no way to do anything with it afterwards.
1446
1447         Tests: fast/css/getMatchedCSSProperties-rule-mutation.html
1448                fast/css/getMatchedCSSRules-crash.html
1449
1450         * css/CSSStyleRule.cpp:
1451         (WebCore::CSSStyleRule::setSelectorText):
1452
1453             Bail out if parent stylesheet is null.
1454
1455         * css/PropertySetCSSStyleDeclaration.cpp:
1456         (WebCore::PropertySetCSSStyleDeclaration::setCssText):
1457         (WebCore::PropertySetCSSStyleDeclaration::setProperty):
1458         (WebCore::PropertySetCSSStyleDeclaration::removeProperty):
1459         (WebCore::PropertySetCSSStyleDeclaration::setPropertyInternal):
1460         
1461             Allow StyleRuleCSSStyleDeclaration subclass cancel the mutation via
1462             boolean return value from willMutate.
1463
1464         (WebCore::StyleRuleCSSStyleDeclaration::willMutate):
1465         
1466             Disallow mutation if the owning CSSStyleRule is null or has null stylesheet.
1467
1468         (WebCore::StyleRuleCSSStyleDeclaration::didMutate):
1469         
1470             We never get here with null rule or stylesheet anymore.
1471
1472         * css/PropertySetCSSStyleDeclaration.h:
1473         (WebCore::PropertySetCSSStyleDeclaration::willMutate):
1474
1475 2014-03-17  Jeffrey Pfau  <jpfau@apple.com>
1476
1477         <media> elements are not properly moved to new documents' visibility callback lists
1478         https://bugs.webkit.org/show_bug.cgi?id=127711
1479
1480         Reviewed by David Kilzer.
1481
1482         * html/HTMLMediaElement.cpp:
1483         (WebCore::HTMLMediaElement::didMoveToNewDocument):
1484
1485 2014-03-18  Filip Pizlo  <fpizlo@apple.com>
1486
1487         More FTL enabling.
1488
1489         Rubber stamped by Dan Bernstein and Mark Hahnenberg.
1490
1491         No new tests.
1492
1493         * Configurations/FeatureDefines.xcconfig:
1494
1495 2014-03-18  Brent Fulgham  <bfulgham@apple.com>
1496
1497         TextTrackRegion Not Implemented
1498         https://bugs.webkit.org/show_bug.cgi?id=116546
1499
1500         Reviewed by Eric Carlson.
1501
1502         Merged from Blink (patch by vcarbune@chromium.org):
1503         https://chromium.googlesource.com/chromium/blink/+/4940f89a087fea5b5ea628e98d0b355d398a9eea
1504         http://crbug.com/25798003
1505
1506         Tests: media/track/regions-webvtt/text-track-region-display.html
1507                media/track/regions-webvtt/text-track-region-dom-layout.html
1508
1509         * html/HTMLMediaElement.cpp:
1510         (WebCore::HTMLMediaElement::parseAttribute):
1511         * html/track/LoadableTextTrack.cpp:
1512         (WebCore::LoadableTextTrack::newRegionsAvailable):
1513         * html/track/TextTrack.cpp:
1514         * html/track/TextTrack.h:
1515         * html/track/TextTrackRegion.cpp:
1516         (WebCore::TextTrackRegion::TextTrackRegion):
1517         (WebCore::TextTrackRegion::appendTextTrackCueBox):
1518         * html/track/TextTrackRegion.h:
1519         * html/track/VTTCue.cpp:
1520         (WebCore::VTTCue::VTTCue):
1521         (WebCore::VTTCue::notifyRegionWhenRemovingDisplayTree):
1522         (WebCore::VTTCue::removeDisplayTree):
1523         * html/track/VTTCue.h:
1524         * html/track/WebVTTParser.cpp:
1525         (WebCore::WebVTTParser::parseBytes):
1526         (WebCore::WebVTTParser::collectMetadataHeader):
1527         * html/track/WebVTTParser.h:
1528
1529 2014-03-18  Philippe Normand  <pnormand@igalia.com>
1530
1531         [GTK] ResourceLoaderSoup.cpp was added by mistake
1532         https://bugs.webkit.org/show_bug.cgi?id=130396
1533
1534         Reviewed by Carlos Garcia Campos.
1535
1536         This file was committed by mistake in r152778 and is not built by
1537         any port.
1538
1539         * loader/soup/ResourceLoaderSoup.cpp: Removed.
1540
1541 2014-03-18  Andreas Kling  <akling@apple.com>
1542
1543         Rename ElementDescendantIterator to TypedElementDescendantIterator.
1544         Romper-stubbed by Antti "Latte Lung" Koivisto.
1545
1546         * GNUmakefile.list.am:
1547         * WebCore.vcxproj/WebCore.vcxproj:
1548         * WebCore.vcxproj/WebCore.vcxproj.filters:
1549         * WebCore.xcodeproj/project.pbxproj:
1550         * dom/ElementDescendantIterator.h: Removed.
1551         * dom/ElementIterator.h:
1552         * dom/TypedElementDescendantIterator.h: Added.
1553         (WebCore::TypedElementDescendantIterator<ElementType>::TypedElementDescendantIterator):
1554         (WebCore::TypedElementDescendantIterator<ElementType>::operator):
1555         (WebCore::TypedElementDescendantConstIterator<ElementType>::TypedElementDescendantConstIterator):
1556         (WebCore::TypedElementDescendantConstIterator<ElementType>::operator):
1557         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::TypedElementDescendantIteratorAdapter):
1558         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::begin):
1559         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::end):
1560         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::beginAt):
1561         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::from):
1562         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::first):
1563         (WebCore::TypedElementDescendantIteratorAdapter<ElementType>::last):
1564         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::TypedElementDescendantConstIteratorAdapter):
1565         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::begin):
1566         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::end):
1567         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::beginAt):
1568         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::from):
1569         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::first):
1570         (WebCore::TypedElementDescendantConstIteratorAdapter<ElementType>::last):
1571         (WebCore::descendantsOfType):
1572
1573 2014-03-18  Ion Rosca  <rosca@adobe.com>
1574
1575         Add blend mode property to dumped information in GraphicsLayer.
1576         https://bugs.webkit.org/show_bug.cgi?id=130331
1577
1578         Reviewed by Simon Fraser.
1579
1580         Functionality is not changed, therefore no new tests added.
1581         I adjusted the affected test results generated with layerTreeAsText.
1582
1583         * platform/graphics/GraphicsLayer.cpp:
1584         (WebCore::GraphicsLayer::dumpProperties):
1585
1586 2014-03-17  Sergio Villar Senin  <svillar@igalia.com>
1587
1588         webdatabase: Replace DEPRECATED_DEFINE_STATIC_LOCAL by static NeverDestroyed<T>
1589         https://bugs.webkit.org/show_bug.cgi?id=130347
1590
1591         Reviewed by Darin Adler.
1592
1593         * Modules/webdatabase/DatabaseTracker.cpp:
1594         (WebCore::DatabaseTracker::openDatabaseMutex):
1595         (WebCore::notificationMutex):
1596         (WebCore::notificationQueue):
1597
1598 2014-03-17  Jer Noble  <jer.noble@apple.com>
1599
1600         Add RemoteCommandListener support to MediaSessionManager.
1601         https://bugs.webkit.org/show_bug.cgi?id=130354
1602
1603         Reviewed by Eric Carlson.
1604
1605         Listen for remote commands in MediaSessionManager.
1606
1607         * platform/audio/MediaSessionManager.cpp:
1608         (WebCore::MediaSessionManager::addSession):
1609         (WebCore::MediaSessionManager::removeSession):
1610         * platform/audio/MediaSessionManager.h:
1611
1612         Add RemoteCommandListener to the project files:
1613         * CMakeLists.txt:
1614         * GNUmakefile.list.am:
1615         * WebCore.vcxproj/WebCore.vcxproj:
1616         * WebCore.vcxproj/WebCore.vcxproj.filters:
1617
1618 2014-03-17  Ryosuke Niwa  <rniwa@webkit.org>
1619
1620         Rewrite WebHTMLConverter::_elementHasOwnBackgroundColor in C++
1621         https://bugs.webkit.org/show_bug.cgi?id=130291
1622
1623         Reviewed by Andreas Kling.
1624
1625         Extracted HTMLConverterCaches::elementHasOwnBackgroundColor.
1626
1627         * platform/mac/HTMLConverter.mm:
1628         (HTMLConverterCaches::elementHasOwnBackgroundColor):
1629         (-[WebHTMLConverter _elementHasOwnBackgroundColor:]):
1630
1631 2014-03-17  Ryosuke Niwa  <rniwa@webkit.org>
1632
1633         Rewrite WebHTMLConverter::_elementIsBlockLevel in C++
1634         https://bugs.webkit.org/show_bug.cgi?id=130287
1635
1636         Reviewed by Andreas Kling.
1637
1638         Rewrote _elementIsBlockLevel as HTMLConverterCaches::isBlockElement. Also removed the code to update
1639         _elementIsBlockLevel in _traverseNode as computing the value of _elementIsBlockLevel is now fast.
1640
1641         * platform/mac/HTMLConverter.h:
1642         * platform/mac/HTMLConverter.mm:
1643         (HTMLConverterCaches::isBlockElement):
1644         (-[WebHTMLConverter _elementIsBlockLevel:]):
1645         (-[WebHTMLConverter _traverseNode:depth:embedded:]):
1646         (-[WebHTMLConverter dealloc]):
1647         (-[WebHTMLConverter init]):
1648
1649 2014-03-17  Ryosuke Niwa  <rniwa@webkit.org>
1650
1651         Rewrite WebHTMLConverter::_getComputedFloat in C++
1652         https://bugs.webkit.org/show_bug.cgi?id=130284
1653
1654         Reviewed by Andreas Kling.
1655
1656         Rewrote _getComputedFloat as HTMLConverterCaches::floatPropertyValueForNode.
1657
1658         * platform/mac/HTMLConverter.h:
1659         * platform/mac/HTMLConverter.mm:
1660         (HTMLConverterCaches::floatPropertyValueForNode):
1661         (-[WebHTMLConverter _getFloat:forNode:property:]): Now that computing the float value is fast, we don't need to
1662         store it in the cache.
1663         (-[WebHTMLConverter dealloc]):
1664         (-[WebHTMLConverter init]):
1665
1666 2014-03-16  Andreas Kling  <akling@apple.com>
1667
1668         HTMLInputElement::defaultEventHandler() shouldn't force style updates.
1669         <https://webkit.org/b/130303>
1670
1671         Move the updateStyleIfNeeded() call down to TextFieldInputType instead
1672         of doing it for every HTMLInputEvent.
1673
1674         There might be a better way to do this; we only want to know about this
1675         specific element's renderer, and don't need the rest of the tree.
1676         This is still an easy hack to avoid a lot of unnecessary work.
1677
1678         Reviewed by Anders Carlsson.
1679
1680         * html/HTMLInputElement.cpp:
1681         (WebCore::HTMLInputElement::defaultEventHandler):
1682         * html/TextFieldInputType.cpp:
1683         (WebCore::TextFieldInputType::forwardEvent):
1684
1685 2014-03-17  Brent Fulgham  <bfulgham@apple.com>
1686
1687         [WebVTT] Extending WebVTT Rendering with Regions
1688         https://bugs.webkit.org/show_bug.cgi?id=109822
1689
1690         Reviewed by Eric Carlson.
1691
1692         Merged from Blink (patch by Victor Carbune vcarbune@chromium.org):
1693         https://chromium.googlesource.com/chromium/blink/+/0cdebc1d76d41bfcb9c4b022e54a4fbff132225d
1694
1695         No new tests, as this feature is not active in default builds. New tests will be added
1696         in an upcoming bug.
1697
1698         * css/mediaControls.css:
1699         (video::-webkit-media-text-track-region):
1700         (video::-webkit-media-text-track-region-container):
1701         (video::-webkit-media-text-track-region-container.scrolling):
1702         (video::-webkit-media-text-track-display):
1703         * html/shadow/MediaControlElements.cpp:
1704         (WebCore::MediaControlTextTrackContainerElement::updateDisplay):
1705         * html/track/TextTrack.cpp:
1706         (WebCore::TextTrack::~TextTrack):
1707         * html/track/TextTrackCue.cpp:
1708         * html/track/TextTrackRegion.cpp:
1709         (WebCore::TextTrackRegion::TextTrackRegion):
1710         (WebCore::TextTrackRegion::textTrackCueContainerScrollingClass):
1711         (WebCore::TextTrackRegion::textTrackCueContainerShadowPseudoId):
1712         (WebCore::TextTrackRegion::textTrackRegionShadowPseudoId):
1713         (WebCore::TextTrackRegion::appendTextTrackCueBox):
1714         (WebCore::TextTrackRegion::displayLastTextTrackCueBox):
1715         (WebCore::TextTrackRegion::willRemoveTextTrackCueBox):
1716         (WebCore::TextTrackRegion::getDisplayTree):
1717         (WebCore::TextTrackRegion::prepareRegionDisplayTree):
1718         (WebCore::TextTrackRegion::startTimer):
1719         (WebCore::TextTrackRegion::stopTimer):
1720         (WebCore::TextTrackRegion::scrollTimerFired):
1721         * html/track/TextTrackRegion.h:
1722         (WebCore::TextTrackRegion::create):
1723         (WebCore::TextTrackRegion::isScrollingRegion):
1724         (WebCore::TextTrackRegion::ownerDocument):
1725         * html/track/TextTrackRegion.idl:
1726         * html/track/TextTrackRegionList.cpp:
1727         (WebCore::TextTrackRegionList::getRegionById):
1728         * html/track/VTTCue.cpp:
1729         (WebCore::VTTCueBox::applyCSSProperties):
1730         (WebCore::VTTCue::~VTTCue):
1731         (WebCore::VTTCue::setIsActive):
1732         (WebCore::VTTCue::removeDisplayTree):
1733         * html/track/WebVTTParser.cpp:
1734         (WebCore::WebVTTParser::createNewRegion):
1735         * rendering/RenderVTTCue.cpp:
1736         (WebCore::RenderVTTCue::layout):
1737
1738 2014-03-17  Brendan Long  <b.long@cablelabs.com>
1739
1740         [GStreamer] human readable language code for tracks
1741         https://bugs.webkit.org/show_bug.cgi?id=124514
1742
1743         Reviewed by Martin Robinson.
1744
1745         * PlatformEfl.cmake: Add GSTREAMER_TAG_INCLUDE_DIRS and GSTREAMER_TAG_LIBRARIES.
1746         * PlatformGTK.cmake: Same.
1747         * platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
1748         (WebCore::TrackPrivateBaseGStreamer::getLanguageCode): Run language codes though gst_tag_get_language_code_iso_639_1() to make sure they're valid.
1749         (WebCore::TrackPrivateBaseGStreamer::notifyTrackOfTagsChanged): Use getLanguageCode() for languages instead of just getTag().
1750
1751 2014-03-17  Ryosuke Niwa  <rniwa@webkit.org>
1752
1753         [Mac] Rewrite WebHTMLConverter::_computedStringForNode in C++
1754         https://bugs.webkit.org/show_bug.cgi?id=130274
1755
1756         Reviewed by Andreas Kling.
1757
1758         Rewrote WebHTMLConverter::_computedStringForNode as HTMLConverterCaches::propertyValueForNode.
1759
1760         * platform/mac/HTMLConverter.h: Removed unused caches.
1761         * platform/mac/HTMLConverter.mm:
1762         (HTMLConverterCaches::computedStylePropertyForElement): Added use const String& instead of String& on property name.
1763         (HTMLConverterCaches::inlineStylePropertyForElement): Ditto.
1764         (HTMLConverterCaches::propertyValueForNode): Renamed and rewritten from _computedStringForNode.
1765         (-[WebHTMLConverter _stringForNode:property:]): Simply return the computed value instead of storing it in the cache
1766         now that the computing the value is fast.
1767         (-[WebHTMLConverter dealloc]):
1768         (-[WebHTMLConverter init]):
1769
1770 2014-03-17  Andreas Kling  <akling@apple.com>
1771
1772         Remove unnecessary JSC::Handle null checks in bindings code.
1773         <https://webkit.org/b/130356>
1774
1775         Use Handle::slot() directly instead of going through Handle::get().
1776         This avoids null checking the HandleSlot, which isn't necessary here
1777         anyway, and the code already assumes it'll never be null.
1778
1779         Reviewed by Gavin Barraclough.
1780
1781         * bindings/js/JSCSSRuleListCustom.cpp:
1782         (WebCore::JSCSSRuleListOwner::isReachableFromOpaqueRoots):
1783         * bindings/js/JSCSSValueCustom.cpp:
1784         (WebCore::JSCSSValueOwner::isReachableFromOpaqueRoots):
1785         (WebCore::JSCSSValueOwner::finalize):
1786         * bindings/js/JSMutationObserverCustom.cpp:
1787         (WebCore::JSMutationObserverOwner::isReachableFromOpaqueRoots):
1788         * bindings/js/JSNodeCustom.cpp:
1789         (WebCore::JSNodeOwner::isReachableFromOpaqueRoots):
1790         * bindings/js/JSNodeListCustom.cpp:
1791         (WebCore::JSNodeListOwner::isReachableFromOpaqueRoots):
1792         * bindings/js/JSTextTrackCueCustom.cpp:
1793         (WebCore::JSTextTrackCueOwner::isReachableFromOpaqueRoots):
1794         * bindings/js/WebCoreTypedArrayController.cpp:
1795         (WebCore::WebCoreTypedArrayController::JSArrayBufferOwner::isReachableFromOpaqueRoots):
1796         (WebCore::WebCoreTypedArrayController::JSArrayBufferOwner::finalize):
1797         * bindings/scripts/CodeGeneratorJS.pm:
1798         (GenerateImplementation):
1799         * bridge/runtime_root.cpp:
1800         (JSC::Bindings::RootObject::finalize):
1801
1802 2014-03-17  Krzysztof Czech  <k.czech@samsung.com>
1803
1804         AX: Reducing some code by using helper function ariaElementsFromAttribute
1805         https://bugs.webkit.org/show_bug.cgi?id=130344
1806
1807         Reviewed by Chris Fleizach.
1808
1809         Change visibility of ariaElementsFromAttribute function from private to protected
1810         so that other classes that derives from AccessibilityRenderObject can use it.
1811
1812         No new tests. No behaviour change.
1813
1814         * accessibility/AccessibilityRenderObject.h:
1815         * accessibility/AccessibilityTableCell.cpp:
1816         (WebCore::AccessibilityTableCell::columnHeaders):
1817
1818 2014-03-16  Brent Fulgham  <bfulgham@apple.com>
1819
1820         Provide preference to enable additional AVFoundation options
1821         https://bugs.webkit.org/show_bug.cgi?id=130275
1822
1823         Reviewed by Eric Carlson.
1824
1825         * html/HTMLMediaElement.cpp:
1826         (WebCore::HTMLMediaElement::doesHaveAttribute): Added.
1827         * html/HTMLMediaElement.h:
1828         * page/Settings.in: Add new attribute.
1829         * platform/graphics/MediaPlayer.cpp:
1830         (WebCore::MediaPlayer::doesHaveAttribute): Added stub to call private player object's
1831         implementation of doesHaveAttribute.
1832         * platform/graphics/MediaPlayer.h:
1833         (WebCore::MediaPlayerClient::doesHaveAttribute):
1834         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
1835         (WebCore::MediaPlayerPrivateAVFoundationCF::AVFWrapper::createAssetForURL): Check the <media> object,
1836         and notify AVFoundationCF to use URI option if relevant.
1837         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1838         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Check the <media> object,
1839         and notify AVFoundation to use URI option if relevant.
1840
1841 2014-03-17  Jer Noble  <jer.noble@apple.com>
1842
1843         [EME] Add NULL protections in SourceBuffer and MediaSource.
1844         https://bugs.webkit.org/show_bug.cgi?id=130266
1845
1846         Reviewed by Eric Carlson.
1847
1848         Add NULL checks in places which may be called after a SourceBuffer has been removed:
1849
1850         * Modules/mediasource/MediaSource.cpp:
1851         (WebCore::MediaSource::monitorSourceBuffers): Protect against a SourceBuffer being removed
1852             (and thus activeSourceBuffers being empty) when monitoring source buffer state.
1853         * Modules/mediasource/SourceBuffer.cpp:
1854         (WebCore::SourceBuffer::appendBufferTimerFired): Protect against SourceBuffer being removed.
1855         (WebCore::SourceBuffer::videoTracks): Ditto.
1856         (WebCore::SourceBuffer::audioTracks): Ditto.
1857         (WebCore::SourceBuffer::textTracks): Ditto.
1858         (WebCore::SourceBuffer::setActive): Ditto.
1859         (WebCore::SourceBuffer::sourceBufferPrivateDidEndStream): Ditto.
1860         (WebCore::SourceBuffer::hasCurrentTime): Ditto.
1861         (WebCore::SourceBuffer::canPlayThrough): Ditto.
1862         (WebCore::SourceBuffer::hasFutureTime): Ditto, and check for an empty buffered ranges.
1863
1864 2014-03-17  Tim Horton  <timothy_horton@apple.com>
1865
1866         WKThumbnailView should support snapshots
1867         https://bugs.webkit.org/show_bug.cgi?id=130335
1868         <rdar://problem/16255139>
1869
1870         Reviewed by Simon Fraser.
1871
1872         * WebCore.exp.in:
1873
1874 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
1875
1876         [CSS Grid Layout] getComputedStyle() not using author's order when showing named grid lines
1877         https://bugs.webkit.org/show_bug.cgi?id=127837
1878
1879         Reviewed by David Hyatt.
1880
1881         Added a couple of new Vectors to store the names of the grid lines
1882         respecting their order. They will be used to get the right outcome
1883         for getComputedStyle().
1884
1885         * css/CSSComputedStyleDeclaration.cpp:
1886         (WebCore::addValuesForNamedGridLinesAtIndex):
1887         (WebCore::valueForGridTrackList):
1888         * css/StyleResolver.cpp:
1889         (WebCore::createGridTrackList):
1890         (WebCore::StyleResolver::applyProperty):
1891         * rendering/style/RenderStyle.h:
1892         * rendering/style/StyleGridData.cpp:
1893         (WebCore::StyleGridData::StyleGridData):
1894         * rendering/style/StyleGridData.h:
1895         (WebCore::StyleGridData::operator==):
1896
1897 2014-03-17  Zsolt Borbely  <borbezs@inf.u-szeged.hu>
1898
1899         Fix the !ENABLE(PROMISES) build
1900         https://bugs.webkit.org/show_bug.cgi?id=130328
1901
1902         Reviewed by Darin Adler.
1903
1904         Add missing ENABLE(PROMISES) guards.
1905
1906         * bindings/js/JSDOMPromise.cpp:
1907         * bindings/js/JSDOMPromise.h:
1908
1909 2014-03-17  Gurpreet Kaur  <k.gurpreet@samsung.com>
1910
1911         Safari should not render a cell if the <td> is empty
1912         https://bugs.webkit.org/show_bug.cgi?id=15273
1913
1914         Reviewed by Darin Adler.
1915
1916         When table cell has no children and the doctype is not present or not
1917         correct the border for that cell should not be drawn. Firefox also
1918         follows the same behaviour hence making the changes to make it similiar
1919         to Firefox behaviour.
1920
1921         Tests: fast/table/table-cell-border-doctype.html
1922                fast/table/table-cell-border-no-doctype.html
1923
1924         * rendering/RenderTableCell.cpp:
1925         (WebCore::RenderTableCell::paintBoxDecorations):
1926         Added condition for not drawing the border when table cell has no child
1927         and doctype.
1928
1929
1930 2014-03-17  Frédéric Wang  <fred.wang@free.fr>
1931
1932         Fix handling of <annotation> in MathMLTextElement.
1933         https://bugs.webkit.org/show_bug.cgi?id=124128.
1934
1935         Reviewed by Darin Adler.
1936
1937         No new tests.
1938
1939         * mathml/MathMLTextElement.cpp:
1940         (WebCore::MathMLTextElement::createElementRenderer): do not create the special RenderMathMLToken for the <annotation> tag.
1941         (WebCore::MathMLTextElement::childShouldCreateRenderer): only allow text inside <annotation>.
1942
1943 2014-03-17  Martin Robinson  <mrobinson@igalia.com>
1944
1945         [GTK][CMake] Credential storage is not enabled
1946         https://bugs.webkit.org/show_bug.cgi?id=130149
1947
1948         Reviewed by Philippe Normand.
1949
1950         * PlatformGTK.cmake: Add the libsecret include directories and link line to the build.
1951
1952 2014-03-17  Zan Dobersek  <zdobersek@igalia.com>
1953
1954         Unreviewed.
1955
1956         Addressing reviewing comments by Darin in bug #130310 that I forgot
1957         to address before landing the changes in r165732.
1958         https://bugs.webkit.org/show_bug.cgi?id=130310
1959
1960         * rendering/InlineTextBox.cpp:
1961         * rendering/RenderLayer.cpp:
1962         * rendering/RenderObject.cpp:
1963
1964 2014-03-17  Jessie Berlin  <jberlin@apple.com>
1965
1966         Speculative build fix for ENABLE(TELEPHONE_NUMBER_DETECTION) after r165724.
1967
1968         * html/parser/HTMLTreeBuilder.cpp:
1969         (WebCore::HTMLTreeBuilder::linkifyPhoneNumbers):
1970
1971 2014-03-17  Zan Dobersek  <zdobersek@igalia.com>
1972
1973         Only supplement Page with UserMediaController once
1974         https://bugs.webkit.org/show_bug.cgi?id=130311
1975
1976         Reviewed by Darin Adler.
1977
1978         Don't supplement the Page with an UserMediaController object if that Page was
1979         already supplemented with one. This avoids triggering an assertion in
1980         Supplementable::provideSupplement() that ensures no supplement with the same key
1981         exists yet. The cause of this is calling provideUserMediaTo() in the Internals
1982         constructor that's using the same Page for two subsequent tests.
1983
1984         * Modules/mediastream/UserMediaController.cpp:
1985         (WebCore::provideUserMediaTo):
1986
1987 2014-03-17  Zan Dobersek  <zdobersek@igalia.com>
1988
1989         Explicitly include cstdio header for debug builds in InlineTextBox, RenderLayer, RenderObject
1990         https://bugs.webkit.org/show_bug.cgi?id=130310
1991
1992         Reviewed by Darin Adler.
1993
1994         Building the GTK port with Clang through CMake falls into a configuration where
1995         the cstdio header is not indirectly included in InlineTextBox, RenderLayer and
1996         RenderObject source files. fprintf() is required for helper functions that print
1997         out helpful debugging information in debug builds, so the cstdio header should
1998         be included explicitly in that case.
1999
2000         * rendering/InlineTextBox.cpp:
2001         * rendering/RenderLayer.cpp:
2002         * rendering/RenderObject.cpp:
2003
2004 2014-03-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2005
2006         [GTK] Cleanup WebKitDOMObject
2007         https://bugs.webkit.org/show_bug.cgi?id=130246
2008
2009         Reviewed by Martin Robinson.
2010
2011         Remove unneeded getter and fix coding style.
2012
2013         * bindings/gobject/WebKitDOMObject.cpp:
2014         (webkitDOMObjectSetProperty):
2015         (webkit_dom_object_class_init):
2016
2017 2014-03-17  Darin Adler  <darin@apple.com>
2018
2019         Stop using deprecatedCharacters in HTMLTreeBuilder
2020         https://bugs.webkit.org/show_bug.cgi?id=130323
2021
2022         Reviewed by Andreas Kling.
2023
2024         Keeping this separate from other patches because of concern that this could affect
2025         page load performance.
2026
2027         * html/parser/HTMLTreeBuilder.cpp:
2028         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
2029         Use a StringView instead of a character pointer.
2030         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::isEmpty): Ditto.
2031         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipAtMostOneLeadingNewline):
2032         Ditto.
2033         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeRemaining): Ditto.
2034         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::giveRemainingTo): Ditto.
2035         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeRemainingWhitespace): Ditto.
2036         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeading): Ditto.
2037         (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeading): Ditto.
2038         (WebCore::HTMLTreeBuilder::linkifyPhoneNumbers): Use StringView::upconvertedCharacters.
2039
2040 2014-03-17  Jinwoo Song  <jinwoo7.song@samsung.com>
2041
2042         Make some Module class constructors return PassRef.
2043         https://bugs.webkit.org/show_bug.cgi?id=130282
2044
2045         Reviewed by Andreas Kling.
2046
2047         Make the constructor helpers for the following classes return PassRef
2048         instead of PassRefPtr since they will never return null.
2049          - GamepadList
2050          - Geolocation
2051          - NavigatorContentUtils
2052          - NetworkInfoConnection
2053          - Notification
2054          - NotificationCenter
2055          - DeviceProximityEvent
2056
2057         * Modules/gamepad/GamepadList.h:
2058         (WebCore::GamepadList::create):
2059         * Modules/geolocation/Geolocation.cpp:
2060         (WebCore::Geolocation::create):
2061         * Modules/geolocation/Geolocation.h:
2062         (WebCore::Geolocation::GeoNotifier::create):
2063         * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
2064         (WebCore::NavigatorContentUtils::create):
2065         * Modules/navigatorcontentutils/NavigatorContentUtils.h:
2066         * Modules/networkinfo/NetworkInfoConnection.cpp:
2067         (WebCore::NetworkInfoConnection::create):
2068         * Modules/networkinfo/NetworkInfoConnection.h:
2069         * Modules/notifications/Notification.cpp:
2070         (WebCore::Notification::create):
2071         * Modules/notifications/Notification.h:
2072         * Modules/notifications/NotificationCenter.cpp:
2073         (WebCore::NotificationCenter::create):
2074         * Modules/notifications/NotificationCenter.h:
2075         * Modules/proximity/DeviceProximityEvent.h:
2076         (WebCore::DeviceProximityEvent::create):
2077
2078 2014-03-16  Mihnea Ovidenie  <mihnea@adobe.com>
2079
2080         [CSSRegions]Do not compute region range for a box unless the parent has one
2081         https://bugs.webkit.org/show_bug.cgi?id=130249
2082
2083         Reviewed by Andrei Bucur.
2084
2085         If the containing block does not have a region range computed, do not attempt to compute
2086         a region range for a child. In such cases, the range computation for a child can lead to
2087         a result that is wrong, possibly leading to an incorrect clipping.
2088
2089         Test: fast/regions/inline-block-flowed-in-regions.html
2090
2091         * rendering/RenderBlock.cpp:
2092         (WebCore::canComputeRegionRangeForBox):
2093         (WebCore::RenderBlock::computeRegionRangeForBoxChild):
2094         (WebCore::RenderBlock::estimateRegionRangeForBoxChild):
2095         (WebCore::RenderBlock::updateRegionRangeForBoxChild):
2096         * rendering/RenderFlowThread.h:
2097
2098 2014-03-16  Andreas Kling  <akling@apple.com>
2099
2100         CSSValueList should assert that no null values are added to it.
2101         <https://webkit.org/b/130315>
2102
2103         Add assertions in CSSValueList's append() and prepend() that we are
2104         not adding a null value. This caught a single place in CSSParser
2105         that was appending an alread-released RefPtr to a CSSValueList.
2106         That list was eventually discarded anyway (due to "foundClip" now
2107         being true), so the fix is simply to remove the adding.
2108
2109         Eventually we should use Ref and PassRef all over for CSSValueList,
2110         this is just a first step on the way.
2111
2112         Reviewed by Darin Adler.
2113
2114         * css/CSSParser.cpp:
2115         (WebCore::CSSParser::parseFillShorthand):
2116         * css/CSSValueList.h:
2117         (WebCore::CSSValueList::append):
2118         (WebCore::CSSValueList::prepend):
2119
2120 2014-03-16  Praveen R Jadhav  <praveen.j@samsung.com>
2121
2122         AudioBufferSourceNode stop attribute shouldn't throw exception in finished state.
2123         https://bugs.webkit.org/show_bug.cgi?id=130000.
2124
2125         Reviewed by Jer Noble.
2126
2127         AudioBufferSourceNode may go to FINISHED_STATE even before "stop" method is called 
2128         as silence rendered after audio data is played out when its not looping.
2129         A call to "stop" method after this shouldn't throw exception.
2130
2131         * Modules/webaudio/AudioScheduledSourceNode.cpp:
2132         (WebCore::AudioScheduledSourceNode::stop):
2133
2134 2014-03-16  Brian Burg  <bburg@apple.com>
2135
2136         Web Inspector: generated backend commands should reflect build system ENABLE settings
2137         https://bugs.webkit.org/show_bug.cgi?id=130111
2138
2139         Reviewed by Timothy Hatcher.
2140
2141         Add guards for conditional inspector domains.
2142
2143         For Makefile-based build systems, force regeneration of the
2144         combined file if the list of domains has changed.
2145
2146         Combine only the Inspector domains listed in INSPECTOR_DOMAINS,
2147         instead of globbing any .json file.
2148
2149         * CMakeLists.txt:
2150         * DerivedSources.make:
2151         * GNUmakefile.am:
2152
2153 2014-03-16  David Kilzer  <ddkilzer@apple.com>
2154
2155         Follow-up: Double values passed to fabsf() in maxScaleFromTransform()
2156         <http://webkit.org/b/130297>
2157
2158         Reviewed by Darin Adler.
2159
2160         * platform/graphics/ca/GraphicsLayerCA.cpp:
2161         (WebCore::maxScaleFromTransform): Use narrowPrecisionToFloat()
2162         instead of static_cast<float>().
2163
2164 2014-03-16  Andreas Kling  <akling@apple.com>
2165
2166         ScriptExecutionContext::vm() should return a reference.
2167         <https://webkit.org/b/129611>
2168
2169         Every ScriptExecutionContext has a VM, so this can never return null.
2170         Made WorkerScriptController::vm() return a reference as well, since
2171         that was needed for this change.
2172
2173         Reviewed by Geoffrey Garen.
2174
2175         * bindings/js/WorkerScriptController.h:
2176         (WebCore::WorkerScriptController::vm):
2177         * bindings/js/WorkerScriptDebugServer.cpp:
2178         (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
2179         * css/ElementRuleCollector.cpp:
2180         (WebCore::ElementRuleCollector::ruleMatches):
2181         * dom/ScriptExecutionContext.cpp:
2182         (WebCore::ScriptExecutionContext::vm):
2183         * dom/ScriptExecutionContext.h:
2184         * dom/SelectorQuery.cpp:
2185         (WebCore::SelectorDataList::execute):
2186         * html/HTMLCanvasElement.cpp:
2187         (WebCore::HTMLCanvasElement::createImageBuffer):
2188         * xml/XMLHttpRequest.cpp:
2189         (WebCore::XMLHttpRequest::dropProtection):
2190         * testing/Internals.cpp:
2191         (WebCore::Internals::parserMetaData):
2192
2193 2014-03-16  Zan Dobersek  <zdobersek@igalia.com>
2194
2195         Remove OwnPtr.h, PassOwnPtr.h header inclusions in Source/WebCore/html/parser/ code
2196         https://bugs.webkit.org/show_bug.cgi?id=129667
2197
2198         Reviewed by Anders Carlsson.
2199
2200         Remove unnecessary inclusions of the OwnPtr.h and PassOwnPtr.h headers
2201         in the code under Source/WebCore/html/parser/.
2202
2203         * html/parser/HTMLParserScheduler.h:
2204         * html/parser/HTMLToken.h:
2205         * html/parser/HTMLTreeBuilder.h:
2206         * html/parser/XSSAuditor.h:
2207         * html/parser/XSSAuditorDelegate.h:
2208
2209 2014-03-16  Darin Adler  <darin@apple.com>
2210
2211         Remove uses of "cat" in DerivedSources.make outside platform-specific rules
2212         https://bugs.webkit.org/show_bug.cgi?id=130307
2213
2214         Reviewed by Anders Carlsson.
2215
2216         * DerivedSources.make: Use "perl -pe ''" instead of "cat".
2217
2218 2014-03-16  Brian Burg  <bburg@apple.com>
2219
2220         Web Inspector: vended backend commands file should be generated as part of the build
2221         https://bugs.webkit.org/show_bug.cgi?id=130110
2222
2223         Reviewed by Timothy Hatcher.
2224
2225         * WebCore.xcodeproj/project.pbxproj: Copy InspectorWebBackendCommands.js to the
2226         private headers directory.
2227
2228 2014-03-16  Frédéric Wang  <fred.wang@free.fr>
2229
2230         [regression] foreign content not displayed in MathML
2231         <https://webkit.org/b/124128>
2232
2233         Reviewed by Chris Fleizach.
2234
2235         This restores foreign content in <mtext>, <mn> and <mi> elements, but only when it is "phrasing content" as defined per the HTML5 specification. Other token elements are not handled here. This change makes mspace-units.html work again on Linux.
2236
2237         Tests: mathml/presentation/foreign-mi-dynamic.html
2238                mathml/presentation/foreign-mi.html
2239                mathml/presentation/foreign-mn.html
2240                mathml/presentation/foreign-mtext-rejected.html
2241                mathml/presentation/foreign-mtext.html
2242
2243         * mathml/MathMLTextElement.cpp:
2244         (WebCore::MathMLTextElement::createElementRenderer): create a RenderMathMLToken for mn, ms and mtext.
2245         (WebCore::isPhrasingContent): helper function to check phrasing content, as defined by the HTML spec.
2246         (WebCore::MathMLTextElement::childShouldCreateRenderer): <mi>, <mn>, <mtext> and, <ms> now accepts phrasing content.
2247         * rendering/mathml/RenderMathMLToken.cpp:
2248         (WebCore::RenderMathMLToken::RenderMathMLToken):
2249         (WebCore::RenderMathMLToken::updateTokenContent): initialize the m_containsElement boolean when updating the token content.
2250         (WebCore::RenderMathMLToken::updateStyle): move <mi> specific handling in its own section and only apply the single-char rule when it does not contain elements.
2251         * rendering/mathml/RenderMathMLToken.h: add an m_containsElement boolean to handle token element specifically.
2252
2253 2014-03-16  David Kilzer  <ddkilzer@apple.com>
2254
2255         PlatformTimeRanges::nearest() truncates closestDelta values from double to float
2256         <http://webkit.org/b/130298>
2257
2258         Reviewed by Darin Adler.
2259
2260         Fixes the following build failures using trunk clang:
2261
2262             WebCore/platform/graphics/PlatformTimeRanges.cpp:210:28: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
2263                         closestDelta = fabsf(startTime - time);
2264                                        ^
2265             WebCore/platform/graphics/PlatformTimeRanges.cpp:210:28: note: use function 'fabs' instead
2266                         closestDelta = fabsf(startTime - time);
2267                                        ^~~~~
2268                                        fabs
2269             WebCore/platform/graphics/PlatformTimeRanges.cpp:214:28: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
2270                         closestDelta = fabsf(endTime - time);
2271                                        ^
2272             WebCore/platform/graphics/PlatformTimeRanges.cpp:214:28: note: use function 'fabs' instead
2273                         closestDelta = fabsf(endTime - time);
2274                                        ^~~~~
2275                                        fabs
2276
2277         * platform/graphics/PlatformTimeRanges.cpp:
2278         (WebCore::PlatformTimeRanges::nearest): Extract start and end
2279         time deltas into local variables so they don't have to be
2280         computed twice, using fabs() instead of fabsf().
2281
2282 2014-03-16  Darin Adler  <darin@apple.com>
2283
2284         Optimize hasTagName when called on an HTMLElement
2285         https://bugs.webkit.org/show_bug.cgi?id=130090
2286
2287         Reviewed by Antti Koivisto.
2288
2289         Added new hasTagName functions that have the efficiency of hasLocalName.
2290         but are safe.
2291
2292         Now we can always use hasTagName, and we'll get a compile time error if
2293         we try to use an SVG tag name with an HTML element. All call sites that
2294         use the more specific tag name types are more efficient, and call sites
2295         that have a specific pointer type will get even more efficient checking
2296         that is exactly what we used to get by calling hasLocalName.
2297
2298         * accessibility/AccessibilityObject.cpp:
2299         (WebCore::AccessibilityObject::hasTagName): Cast explicitly to Element
2300         since Node::hasTagName no longer works on a general QualifiedName.
2301         * accessibility/AccessibilityRenderObject.cpp:
2302         (WebCore::AccessibilityRenderObject::isDescendantOfElementType): Use
2303         more specific type, RenderElement, so we can call hasTagName on Element
2304         instead of Node; eliminates an unnecessary branch.
2305
2306         * accessibility/AccessibilityTableColumn.cpp: Added now-needed include.
2307         * accessibility/atk/AccessibilityObjectAtk.cpp: Ditto.
2308
2309         * dom/DocumentStyleSheetCollection.cpp:
2310         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets): Use
2311         new for loop and full words for variable names. Also use nullptr instead
2312         of 0. Call toHTMLElement and toSVGElement in code that checks hasTagName
2313         since it's already checking isHTMLElement and isSVGElement.
2314
2315         * dom/Element.cpp:
2316         (WebCore::attrNodeListMap): Use NeverDestroyed and put the vectors into
2317         the map rather than putting pointers to a vector into the map.
2318         (WebCore::attrNodeListForElement): Take a reference rather than a pointer,
2319         and update for the change above.
2320         (WebCore::ensureAttrNodeListForElement): Ditto.
2321         (WebCore::removeAttrNodeListForElement): Ditto.
2322         (WebCore::findAttrNodeInList): Ditto.
2323         (WebCore::Element::isFocusable): Use lineageOfType<HTMLCanvasElement>
2324         to fine the canvas rather than a hand-written loop.
2325         (WebCore::Element::attrNodeList): Update for above changes.
2326         (WebCore::Element::setAttributeNode): Ditto.
2327         (WebCore::Element::attrIfExists): Ditto.
2328         (WebCore::Element::ensureAttr): Ditto.
2329         (WebCore::Element::detachAttrNodeFromElementWithValue): Ditto.
2330         (WebCore::Element::detachAllAttrNodesFromElement): Ditto.
2331
2332         * dom/Element.h: Removed the overload of hasLocalName that takes a
2333         QualifiedName and ignores the non-local-name parts of it. Callers should
2334         use hasTagName instead, now that it's optimized appropriately. Added
2335         overloads of hasTagName for all the specific qualified name types. It's
2336         more efficient to use the Node versions of these functions rather than
2337         using QualifiedName::matches to do the check. Removed the hasTagName and
2338         hasLocalName functions from the Node class; the only convenience functions
2339         needed in Node are the specific checks for tags from HTML, MathML, and SVG,
2340         not the general purpose ones.
2341
2342         * dom/Node.h: Removed hasLocalName and replaced the single hasTagName
2343         that takes a QualifiedName with three faster ones that take HTML, MathML,
2344         and SVG qualified names instead. Also updated to use nullptr instead of 0.
2345
2346         * dom/PositionIterator.cpp: Added now-needed include.
2347         * dom/Text.cpp: Ditto.
2348
2349         * dom/make_names.pl:
2350         (printHeaderHead): Renamed an argument for clarity and added a definitions
2351         argument, which is where we insert the classes derived from QualifiedName.
2352         (printCppHead): Renamed an argument for clarity.
2353         (printTypeHelpers): Use hasTagName rather than hasLocalName, since the
2354         former is now optimized to be the same as what the latter was.
2355         (printNamesHeaderFile): Define a class derived from QualifiedName that can
2356         be used at compile time to avoid having to check the namespace.
2357         (printNamesCppFile): Use the new more-specific type as needed.
2358
2359         * editing/ApplyStyleCommand.cpp:
2360         (WebCore::isLegacyAppleStyleSpan): Use hasTagName instead of hasLocalName,
2361         and references instead of pointers.
2362         (WebCore::ApplyStyleCommand::ApplyStyleCommand): Removed uneeded explicit
2363         construction of a smart pointer.
2364         (WebCore::ApplyStyleCommand::shouldApplyInlineStyleToRun): Updated to use
2365         the enclosingElementWithTag function by its new name.
2366
2367         * editing/Editor.cpp:
2368         (WebCore::Editor::selectionUnorderedListState): Updated to use the
2369         enclosingElementWithTag function by its new name.
2370         (WebCore::Editor::selectionOrderedListState): Ditto.
2371
2372         * editing/InsertListCommand.cpp:
2373         (WebCore::InsertListCommand::doApply): Use a more-specific type for the list tag.
2374         (WebCore::InsertListCommand::doApplyForSingleParagraph): Ditto.
2375         * editing/InsertListCommand.h: Ditto.
2376
2377         * editing/MarkupAccumulator.cpp:
2378         (WebCore::MarkupAccumulator::serializeNodesWithNamespaces): Added an explicit
2379         cast to Element in the loop that is already guarded by an isElementNode check.
2380         Also use a modern C++ for loop.
2381
2382         * editing/ReplaceSelectionCommand.cpp:
2383         (WebCore::ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder):
2384         Updated to use the enclosingElementWithTag function by its new name.
2385         (WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds): Ditto.
2386         (WebCore::ReplaceSelectionCommand::positionAtEndOfInsertedContent): Ditto.
2387
2388         * editing/TypingCommand.cpp: Added now-needed includes.
2389         * editing/VisibleUnits.cpp: Ditto.
2390
2391         * editing/htmlediting.cpp:
2392         (WebCore::enclosingElementWithTag): Changed to return an Element instead of a Node,
2393         since nodes other than elements do not have tags.
2394         * editing/htmlediting.h: Ditto.
2395
2396         * editing/mac/EditorMac.mm:
2397         (WebCore::Editor::adjustedSelectionRange): Updated to use the enclosingElementWithTag
2398         function by its new name.
2399         * editing/markup.cpp:
2400         (WebCore::StyledMarkupAccumulator::appendText): Ditto.
2401         (WebCore::StyledMarkupAccumulator::traverseNodesForSerialization): Ditto.
2402         (WebCore::highestAncestorToWrapMarkup): Ditto.
2403         (WebCore::createMarkupInternal): Ditto.
2404         (WebCore::createContextualFragment): Ditto. Use hasTagName instead of hasLocalName,
2405         since the former is now optimized to be the same as the latter was before.
2406
2407         * html/HTMLCollection.cpp:
2408         (WebCore::isMatchingElement): Use hasTagName instead of hasLocalName,
2409         since the former is now optimized to be the same as the latter was before.
2410         (WebCore::nameShouldBeVisibleInDocumentAll): Ditto.
2411         * html/HTMLElement.cpp:
2412         (WebCore::HTMLElement::ieForbidsInsertHTML): Ditto.
2413         (WebCore::unicodeBidiAttributeForDirAuto): Ditto.
2414         (WebCore::HTMLElement::parseBorderWidthAttribute): Ditto.
2415         (WebCore::HTMLElement::setInnerHTML): Ditto.
2416         (WebCore::shouldProhibitSetInnerOuterText): Ditto. Added this to share code between
2417         setInnerText and setOuterText.
2418         (WebCore::HTMLElement::setInnerText): Ditto.
2419         (WebCore::HTMLElement::setOuterText): Ditto.
2420         (WebCore::HTMLElement::rendererIsNeeded): Ditto.
2421         (WebCore::HTMLElement::createElementRenderer): Ditto.
2422
2423         * html/HTMLElement.h: Added hasTagName, which hides the one inherited from Element
2424         and takes the more-specific HTMLQualifiedName type. This means we don't need to check
2425         the namespace at runtime because it's known at compile time. Also put the
2426         implementation of Node::hasTagName for HTMLQualifiedName into this header.
2427
2428         * html/HTMLObjectElement.cpp:
2429         (WebCore::isRecognizedTagName): Updated for change in return type of
2430         HTMLNames::getHTMLTags.
2431
2432         * html/HTMLSelectElement.cpp:
2433         (WebCore::HTMLSelectElement::add): Use hasTagName inastead of hasLocalName.
2434         (WebCore::HTMLSelectElement::value): Use isHTMLOptionElement instead of hasTagName.
2435         Also use a new style for loop and emptyString() instead of "".
2436         (WebCore::HTMLSelectElement::setValue): Ditto.
2437         (WebCore::HTMLSelectElement::setLength): Ditto.
2438         (WebCore::HTMLSelectElement::searchOptionsForValue): Ditto.
2439         (WebCore::HTMLSelectElement::restoreFormControlState): Ditto.
2440
2441         * html/HTMLTableColElement.cpp:
2442         (WebCore::HTMLTableColElement::additionalPresentationAttributeStyle): Use hasTagName
2443         instead of hasLocalName.
2444
2445         * html/HTMLTableRowsCollection.cpp:
2446         (WebCore::isInSection): Updated to use hasTagName and take a reference.
2447         (WebCore::HTMLTableRowsCollection::rowAfter): Pass a reference.
2448
2449         * html/parser/HTMLConstructionSite.cpp: Added now-needed include.
2450
2451         * html/parser/HTMLTreeBuilder.cpp:
2452         (WebCore::createCaseMap): Updated to return a map rather than filling one in, and to
2453         be flxible about the type of the table being used.
2454         (WebCore::adjustSVGTagNameCase): Updated to use NeverDestroyed.
2455         (WebCore::adjustAttributes): Added new helper so we can share more code. Updated
2456         template argument names for clarity.
2457         (WebCore::adjustSVGAttributes): Marked this inline, since it just turns around and
2458         calls a single non-inline function.
2459         (WebCore::adjustMathMLAttributes): Ditto.
2460         (WebCore::addNamesWithPrefix): Changed to take argument by reference instead of pointer.
2461         (WebCore::createForeignAttributesMap): Added. Factors out the map creation from the
2462         function below.
2463         (WebCore::adjustForeignAttributes): Updated for above changes.
2464         (WebCore::HTMLTreeBuilder::processStartTagForInBody): Updated to pass reference.
2465         (WebCore::HTMLTreeBuilder::processTokenInForeignContent): Ditto.
2466
2467         * inspector/InspectorStyleSheet.cpp: Added now-needed include.
2468
2469         * mathml/MathMLElement.h: Added hasTagName, which hides the one inherited from Element
2470         and takes the more-specific MathMLQualifiedName type. This means we don't need to check
2471         the namespace at runtime because it's known at compile time. Also put the
2472         implementation of Node::hasTagName for MathMLQualifiedName into this header.
2473
2474         * mathml/MathMLInlineContainerElement.cpp:
2475         (WebCore::MathMLInlineContainerElement::createElementRenderer): Use hasTagName.
2476
2477         * mathml/MathMLSelectElement.cpp:
2478         (WebCore::MathMLSelectElement::attributeChanged): Use hasTagName.
2479         (WebCore::MathMLSelectElement::getSelectedActionChildAndIndex): Ditto.
2480         (WebCore::MathMLSelectElement::getSelectedActionChild): Ditto.
2481         (WebCore::MathMLSelectElement::getSelectedSemanticsChild): Ditto.
2482         (WebCore::MathMLSelectElement::updateSelectedChild): Ditto.
2483         * mathml/MathMLTextElement.cpp:
2484         (WebCore::MathMLTextElement::createElementRenderer): Ditto.
2485         (WebCore::MathMLTextElement::childShouldCreateRenderer): Ditto.
2486
2487         * platform/gtk/PasteboardGtk.cpp: Added now-needed include.
2488         * platform/mac/HTMLConverter.mm: Ditto.
2489         * rendering/RenderBlockFlow.cpp: Ditto.
2490
2491         * rendering/RenderBoxModelObject.cpp:
2492         (WebCore::RenderBoxModelObject::paintFillLayerExtended): Use hasTagName.
2493         * rendering/RenderElement.cpp:
2494         (WebCore::RenderElement::rendererForRootBackground): Ditto.
2495         * rendering/RenderLayerBacking.cpp:
2496         (WebCore::RenderLayerBacking::isSimpleContainerCompositingLayer): Ditto.
2497
2498         * rendering/RenderReplaced.cpp: Added now-needed include.
2499
2500         * rendering/mathml/RenderMathMLScripts.cpp:
2501         (WebCore::RenderMathMLScripts::RenderMathMLScripts): Use hasTagName.
2502         * rendering/mathml/RenderMathMLUnderOver.cpp:
2503         (WebCore::RenderMathMLUnderOver::RenderMathMLUnderOver): Ditto.
2504
2505         * svg/SVGElement.h: Added hasTagName, which hides the one inherited from Element
2506         and takes the more-specific SVGQualifiedName type. This means we don't need to check
2507         the namespace at runtime because it's known at compile time. Also put the
2508         implementation of Node::hasTagName for SVGQualifiedName into this header.
2509
2510         * svg/SVGFontFaceSrcElement.cpp:
2511         (WebCore::SVGFontFaceSrcElement::childrenChanged): Use isSVGFontFaceElement instead
2512         of calling hasTagName.
2513
2514         * svg/SVGUseElement.cpp:
2515         (WebCore::isDirectReference): Changed to take a reference and a more specific type.
2516         (WebCore::SVGUseElement::toClipPath): Added a type cast.
2517         (WebCore::SVGUseElement::rendererClipChild): Use more specific types so we don't
2518         need a type cast.
2519
2520         * xml/parser/XMLDocumentParser.cpp:
2521         (WebCore::XMLDocumentParser::parseDocumentFragment): Added explicit calls to this
2522         unusual call site that has a good reason to use hasLocalName instead of hasTagName.
2523
2524 2014-03-16  Andreas Kling  <akling@apple.com>
2525
2526         Stop pulling in JSDOMBinding.h via JSEventListener.h
2527         <https://webkit.org/b/130299>
2528
2529         Just chippin' away at the compile time monster.
2530
2531         Reviewed by Darin Adler.
2532
2533         * bindings/js/IDBBindingUtilities.cpp:
2534         * bindings/js/JSEventListener.h:
2535
2536 2014-03-16  David Kilzer  <ddkilzer@apple.com>
2537
2538         Double values passed to fabsf() in maxScaleFromTransform()
2539         <http://webkit.org/b/130297>
2540
2541         Reviewed by Darin Adler.
2542
2543         Fixes the following build failures using trunk clang:
2544
2545             WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:287:21: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
2546                 return std::max(fabsf(decomposeData.scaleX), fabsf(decomposeData.scaleY));
2547                                 ^
2548             WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:287:21: note: use function 'fabs' instead
2549                 return std::max(fabsf(decomposeData.scaleX), fabsf(decomposeData.scaleY));
2550                                 ^~~~~
2551                                 fabs
2552             WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:287:50: error: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Werror,-Wabsolute-value]
2553                 return std::max(fabsf(decomposeData.scaleX), fabsf(decomposeData.scaleY));
2554                                                              ^
2555             WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:287:50: note: use function 'fabs' instead
2556                 return std::max(fabsf(decomposeData.scaleX), fabsf(decomposeData.scaleY));
2557                                                              ^~~~~
2558                                                              fabs
2559
2560         * platform/graphics/ca/GraphicsLayerCA.cpp:
2561         (WebCore::maxScaleFromTransform): Use static_cast<float>() to
2562         convert float values to double values.
2563
2564 2014-03-15  Zalan Bujtas  <zalan@apple.com>
2565
2566         Move BorderEdge class to its own file.
2567         https://bugs.webkit.org/show_bug.cgi?id=130294
2568
2569         Reviewed by Sam Weinig.
2570
2571         This is in preparation to have better encapsulation for border box decoration painting.
2572
2573         No change in functionality.
2574
2575         * CMakeLists.txt:
2576         * GNUmakefile.list.am:
2577         * WebCore.vcxproj/WebCore.vcxproj:
2578         * WebCore.vcxproj/WebCore.vcxproj.filters:
2579         * WebCore.xcodeproj/project.pbxproj:
2580         * rendering/BorderEdge.cpp: Added.
2581         (WebCore::BorderEdge::BorderEdge):
2582         (WebCore::BorderEdge::getBorderEdgeInfo):
2583         (WebCore::BorderEdge::includesAdjacentEdges):
2584         (WebCore::BorderEdge::obscuresBackgroundEdge):
2585         (WebCore::BorderEdge::obscuresBackground):
2586         (WebCore::BorderEdge::getDoubleBorderStripeWidths):
2587         * rendering/BorderEdge.h: Added.
2588         (WebCore::BorderEdge::edgeFlagForSide):
2589         (WebCore::BorderEdge::includesEdge):
2590         (WebCore::BorderEdge::edgesShareColor):
2591         (WebCore::BorderEdge::hasVisibleColorAndStyle):
2592         (WebCore::BorderEdge::shouldRender):
2593         (WebCore::BorderEdge::presentButInvisible):
2594         (WebCore::BorderEdge::widthForPainting):
2595         (WebCore::BorderEdge::borderWidthInDevicePixel):
2596         * rendering/RenderBoxModelObject.cpp:
2597         (WebCore::borderStyleHasUnmatchedColorsAtCorner):
2598         (WebCore::colorsMatchAtCorner):
2599         (WebCore::colorNeedsAntiAliasAtCorner):
2600         (WebCore::willBeOverdrawn):
2601         (WebCore::joinRequiresMitre):
2602         (WebCore::RenderBoxModelObject::paintBorderSides):
2603         (WebCore::RenderBoxModelObject::paintTranslucentBorderSides):
2604         (WebCore::RenderBoxModelObject::paintBorder):
2605         (WebCore::RenderBoxModelObject::borderObscuresBackgroundEdge):
2606         (WebCore::RenderBoxModelObject::borderObscuresBackground):
2607         * rendering/RenderBoxModelObject.h:
2608
2609 2014-03-15  Martin Robinson  <mrobinson@igalia.com>
2610
2611         Fix WebCore unused parameter warnings for WebKitGTK+ CMake build
2612         https://bugs.webkit.org/show_bug.cgi?id=130252
2613
2614         Reviewed by Carlos Garcia Campos.
2615
2616         * Modules/mediastream/HTMLMediaElementMediaStream.cpp: Fix unused parameters.
2617         * html/RangeInputType.cpp: Ditto.
2618         * page/gtk/EventHandlerGtk.cpp: Ditto.
2619         * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
2620         * platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp: Ditto.
2621         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: Ditto.
2622         * platform/graphics/opengl/Extensions3DOpenGLES.cpp: Ditto.
2623         * platform/gtk/GamepadsGtk.cpp: Ditto.
2624         * platform/gtk/GtkClickCounter.cpp: Ditto.
2625         * platform/gtk/GtkPopupMenu.cpp: Ditto.
2626         * platform/gtk/GtkTouchContextHelper.cpp: Ditto.
2627         * platform/gtk/GtkVersioning.c: Ditto.
2628         * platform/gtk/MainFrameScrollbarGtk.cpp: Ditto.
2629         * platform/gtk/PasteboardGtk.cpp: Ditto.
2630         * platform/gtk/PasteboardHelper.cpp: Ditto.
2631         * platform/gtk/RedirectedXCompositeWindow.cpp: Ditto.
2632         * platform/gtk/RenderThemeGtk.cpp: Ditto.
2633         * platform/gtk/RenderThemeGtk.h: Ditto.
2634         * platform/gtk/RenderThemeGtk2.cpp: Ditto.
2635         * platform/gtk/ScrollbarThemeGtk.cpp: Ditto.
2636         * platform/gtk/ScrollbarThemeGtk2.cpp: Ditto.
2637         * platform/gtk/WidgetGtk.cpp: Ditto.
2638         * platform/network/gtk/CredentialBackingStore.cpp: Ditto.
2639         * platform/soup/SharedBufferSoup.cpp: Ditto.
2640         * plugins/gtk/PluginViewGtk.cpp: Ditto.
2641         * plugins/gtk/gtk2xtbin.c: Ditto.
2642         * rendering/InlineTextBox.cpp: Ditto.
2643
2644 2014-03-14  Myles C. Maxfield  <mmaxfield@apple.com>
2645
2646         RenderTextControl::hasValidAvgCharWidth doesn't detect System Font
2647         https://bugs.webkit.org/show_bug.cgi?id=130168
2648
2649         Reviewed by Dean Jackson.
2650
2651         No new tests.
2652
2653         * platform/graphics/Font.cpp: Moved functions from RenderTextControl
2654         (WebCore::Font::hasValidAverageCharWidth):
2655         (WebCore::Font::fastAverageCharWidthIfAvailable):
2656         * platform/graphics/Font.h:
2657         * rendering/RenderTextControl.cpp: Moved functions to Font.cpp
2658         (WebCore::RenderTextControl::getAverageCharWidth): Removed redundant function argument
2659         (WebCore::RenderTextControl::computeIntrinsicLogicalWidths):
2660         * rendering/RenderTextControl.h:
2661         * rendering/RenderTextControlMultiLine.cpp:
2662         (WebCore::RenderTextControlMultiLine::getAverageCharWidth): Removed redundant function argument
2663         * rendering/RenderTextControlMultiLine.h:
2664         * rendering/RenderTextControlSingleLine.cpp:
2665         (WebCore::RenderTextControlSingleLine::getAverageCharWidth): Removed redundant function argument
2666         (WebCore::RenderTextControlSingleLine::preferredContentLogicalWidth):
2667         * rendering/RenderTextControlSingleLine.h:
2668
2669 2014-03-15  David Kilzer  <ddkilzer@apple.com>
2670
2671         [iOS] Define SYSTEM_VERSION_PREFIX consistently
2672         <http://webkit.org/b/130293>
2673         <rdar://problem/15926359>
2674
2675         Reviewed by Dan Bernstein.
2676
2677         * Configurations/Version.xcconfig:
2678         (SYSTEM_VERSION_PREFIX_iphoneos): Sync with
2679         Source/WebKit/mac/Version.xcconfig.
2680
2681 2014-03-14  Mark Rowe  <mrowe@apple.com>
2682
2683         Fix the production build.
2684
2685         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
2686         be at the expected relative path when working from installed source.
2687
2688         * Configurations/Base.xcconfig:
2689
2690 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
2691
2692         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
2693         https://bugs.webkit.org/show_bug.cgi?id=130276
2694         <rdar://problem/16266927>
2695
2696         Reviewed by Simon Fraser.
2697
2698         No new tests because no behavior changes.
2699
2700         * DerivedSources.make:
2701         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp:
2702         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
2703         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl:
2704         * Modules/encryptedmedia/MediaKeyMessageEvent.cpp:
2705         * Modules/encryptedmedia/MediaKeyMessageEvent.h:
2706         * Modules/encryptedmedia/MediaKeyMessageEvent.idl:
2707         * Modules/encryptedmedia/MediaKeyNeededEvent.cpp:
2708         * Modules/encryptedmedia/MediaKeyNeededEvent.h:
2709         * Modules/encryptedmedia/MediaKeyNeededEvent.idl:
2710         * Modules/encryptedmedia/MediaKeySession.idl:
2711         * Modules/encryptedmedia/MediaKeys.idl:
2712         * Modules/geolocation/NavigatorGeolocation.cpp:
2713         * Modules/indexeddb/DOMWindowIndexedDatabase.idl:
2714         * Modules/indexeddb/IDBCallbacks.h:
2715         * Modules/indexeddb/IDBDatabaseException.cpp:
2716         * Modules/indexeddb/IDBDatabaseMetadata.h:
2717         * Modules/indexeddb/IDBEventDispatcher.cpp:
2718         * Modules/indexeddb/IDBEventDispatcher.h:
2719         * Modules/indexeddb/IDBFactory.cpp:
2720         * Modules/indexeddb/IDBFactory.h:
2721         * Modules/indexeddb/IDBFactoryBackendInterface.cpp:
2722         * Modules/indexeddb/IDBFactoryBackendInterface.h:
2723         * Modules/indexeddb/IDBHistograms.h:
2724         * Modules/indexeddb/IDBIndexMetadata.h:
2725         * Modules/indexeddb/IDBObjectStoreMetadata.h:
2726         * Modules/indexeddb/IDBRecordIdentifier.h:
2727         * Modules/indexeddb/IDBRequest.cpp:
2728         * Modules/indexeddb/IDBRequest.h:
2729         * Modules/indexeddb/IDBRequest.idl:
2730         * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp:
2731         * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.h:
2732         * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl:
2733         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
2734         * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
2735         * Modules/mediacontrols/MediaControlsHost.cpp:
2736         * Modules/mediacontrols/MediaControlsHost.h:
2737         * Modules/mediacontrols/MediaControlsHost.idl:
2738         * Modules/mediacontrols/mediaControlsApple.css:
2739         * Modules/mediacontrols/mediaControlsiOS.css:
2740         * Modules/mediasource/AudioTrackMediaSource.h:
2741         * Modules/mediasource/AudioTrackMediaSource.idl:
2742         * Modules/mediasource/TextTrackMediaSource.h:
2743         * Modules/mediasource/TextTrackMediaSource.idl:
2744         * Modules/mediasource/VideoTrackMediaSource.h:
2745         * Modules/mediasource/VideoTrackMediaSource.idl:
2746         * Modules/mediastream/AllAudioCapabilities.h:
2747         * Modules/mediastream/AllAudioCapabilities.idl:
2748         * Modules/mediastream/AllVideoCapabilities.h:
2749         * Modules/mediastream/AllVideoCapabilities.idl:
2750         * Modules/mediastream/AudioStreamTrack.cpp:
2751         * Modules/mediastream/AudioStreamTrack.h:
2752         * Modules/mediastream/AudioStreamTrack.idl:
2753         * Modules/mediastream/CapabilityRange.cpp:
2754         * Modules/mediastream/CapabilityRange.h:
2755         * Modules/mediastream/CapabilityRange.idl:
2756         * Modules/mediastream/MediaSourceStates.cpp:
2757         * Modules/mediastream/MediaSourceStates.h:
2758         * Modules/mediastream/MediaSourceStates.idl:
2759         * Modules/mediastream/MediaStreamCapabilities.cpp:
2760         * Modules/mediastream/MediaStreamCapabilities.h:
2761         * Modules/mediastream/MediaStreamCapabilities.idl:
2762         * Modules/mediastream/MediaTrackConstraint.cpp:
2763         * Modules/mediastream/MediaTrackConstraint.h:
2764         * Modules/mediastream/MediaTrackConstraint.idl:
2765         * Modules/mediastream/MediaTrackConstraintSet.cpp:
2766         * Modules/mediastream/MediaTrackConstraintSet.h:
2767         * Modules/mediastream/MediaTrackConstraints.cpp:
2768         * Modules/mediastream/MediaTrackConstraints.h:
2769         * Modules/mediastream/MediaTrackConstraints.idl:
2770         * Modules/mediastream/NavigatorMediaStream.cpp:
2771         * Modules/mediastream/NavigatorUserMediaError.cpp:
2772         * Modules/mediastream/RTCConfiguration.idl:
2773         * Modules/mediastream/RTCIceServer.idl:
2774         * Modules/mediastream/RTCOfferAnswerOptions.cpp:
2775         * Modules/mediastream/RTCOfferAnswerOptions.h:
2776         * Modules/mediastream/VideoStreamTrack.cpp:
2777         * Modules/mediastream/VideoStreamTrack.h:
2778         * Modules/mediastream/VideoStreamTrack.idl:
2779         * Modules/networkinfo/NetworkInfo.cpp:
2780         * Modules/networkinfo/NetworkInfo.h:
2781         * Modules/networkinfo/NetworkInfoConnection.cpp:
2782         * Modules/networkinfo/NetworkInfoConnection.h:
2783         * Modules/networkinfo/NetworkInfoController.cpp:
2784         * Modules/notifications/DOMWindowNotifications.cpp:
2785         * Modules/notifications/DOMWindowNotifications.h:
2786         * Modules/notifications/DOMWindowNotifications.idl:
2787         * Modules/notifications/NotificationController.cpp:
2788         * Modules/notifications/NotificationController.h:
2789         * Modules/notifications/NotificationPermissionCallback.h:
2790         * Modules/notifications/NotificationPermissionCallback.idl:
2791         * Modules/notifications/WorkerGlobalScopeNotifications.cpp:
2792         * Modules/notifications/WorkerGlobalScopeNotifications.h:
2793         * Modules/notifications/WorkerGlobalScopeNotifications.idl:
2794         * Modules/plugins/PluginReplacement.h:
2795         * Modules/plugins/QuickTimePluginReplacement.cpp:
2796         * Modules/plugins/QuickTimePluginReplacement.css:
2797         * Modules/plugins/QuickTimePluginReplacement.h:
2798         * Modules/plugins/QuickTimePluginReplacement.idl:
2799         * Modules/quota/DOMWindowQuota.idl:
2800         * Modules/speech/DOMWindowSpeechSynthesis.h:
2801         * Modules/speech/DOMWindowSpeechSynthesis.idl:
2802         * Modules/speech/SpeechSynthesis.cpp:
2803         * Modules/speech/SpeechSynthesis.h:
2804         * Modules/speech/SpeechSynthesis.idl:
2805         * Modules/speech/SpeechSynthesisEvent.cpp:
2806         * Modules/speech/SpeechSynthesisEvent.h:
2807         * Modules/speech/SpeechSynthesisEvent.idl:
2808         * Modules/speech/SpeechSynthesisUtterance.cpp:
2809         * Modules/speech/SpeechSynthesisUtterance.h:
2810         * Modules/speech/SpeechSynthesisUtterance.idl:
2811         * Modules/speech/SpeechSynthesisVoice.cpp:
2812         * Modules/speech/SpeechSynthesisVoice.h:
2813         * Modules/speech/SpeechSynthesisVoice.idl:
2814         * Modules/webaudio/AudioBuffer.cpp:
2815         * Modules/webaudio/AudioBuffer.h:
2816         * Modules/webaudio/AudioBuffer.idl:
2817         * Modules/webaudio/AudioListener.cpp:
2818         * Modules/webaudio/AudioListener.h:
2819         * Modules/webaudio/AudioListener.idl:
2820         * Modules/webaudio/AudioParam.h:
2821         * Modules/webaudio/AudioParam.idl:
2822         * Modules/webaudio/AudioParamTimeline.h:
2823         * Modules/webaudio/AudioScheduledSourceNode.h:
2824         * Modules/webaudio/ChannelMergerNode.cpp:
2825         * Modules/webaudio/ChannelMergerNode.h:
2826         * Modules/webaudio/ChannelMergerNode.idl:
2827         * Modules/webaudio/MediaStreamAudioSource.cpp:
2828         * Modules/webaudio/MediaStreamAudioSource.h:
2829         * Modules/webaudio/PeriodicWave.cpp:
2830         * Modules/webaudio/PeriodicWave.h:
2831         * Modules/webdatabase/ChangeVersionWrapper.cpp:
2832         * Modules/webdatabase/ChangeVersionWrapper.h:
2833         * Modules/webdatabase/DOMWindowWebDatabase.cpp:
2834         * Modules/webdatabase/DOMWindowWebDatabase.h:
2835         * Modules/webdatabase/DOMWindowWebDatabase.idl:
2836         * Modules/webdatabase/Database.cpp:
2837         * Modules/webdatabase/Database.h:
2838         * Modules/webdatabase/Database.idl:
2839         * Modules/webdatabase/DatabaseAuthorizer.cpp:
2840         * Modules/webdatabase/DatabaseAuthorizer.h:
2841         * Modules/webdatabase/DatabaseBackendBase.cpp:
2842         * Modules/webdatabase/DatabaseBackendBase.h:
2843         * Modules/webdatabase/DatabaseCallback.idl:
2844         * Modules/webdatabase/DatabaseContext.cpp:
2845         * Modules/webdatabase/DatabaseContext.h:
2846         * Modules/webdatabase/DatabaseDetails.h:
2847         * Modules/webdatabase/DatabaseTask.cpp:
2848         * Modules/webdatabase/DatabaseTask.h:
2849         * Modules/webdatabase/DatabaseThread.cpp:
2850         * Modules/webdatabase/DatabaseThread.h:
2851         * Modules/webdatabase/DatabaseTracker.cpp:
2852         * Modules/webdatabase/DatabaseTracker.h:
2853         * Modules/webdatabase/SQLCallbackWrapper.h:
2854         * Modules/webdatabase/SQLError.h:
2855         * Modules/webdatabase/SQLError.idl:
2856         * Modules/webdatabase/SQLException.cpp:
2857         * Modules/webdatabase/SQLResultSet.cpp:
2858         * Modules/webdatabase/SQLResultSet.h:
2859         * Modules/webdatabase/SQLResultSet.idl:
2860         * Modules/webdatabase/SQLResultSetRowList.cpp:
2861         * Modules/webdatabase/SQLResultSetRowList.h:
2862         * Modules/webdatabase/SQLResultSetRowList.idl:
2863         * Modules/webdatabase/SQLStatement.cpp:
2864         * Modules/webdatabase/SQLStatement.h:
2865         * Modules/webdatabase/SQLStatementBackend.cpp:
2866         * Modules/webdatabase/SQLStatementBackend.h:
2867         * Modules/webdatabase/SQLStatementCallback.h:
2868         * Modules/webdatabase/SQLStatementCallback.idl:
2869         * Modules/webdatabase/SQLStatementErrorCallback.h:
2870         * Modules/webdatabase/SQLStatementErrorCallback.idl:
2871         * Modules/webdatabase/SQLStatementSync.cpp:
2872         * Modules/webdatabase/SQLTransaction.cpp:
2873         * Modules/webdatabase/SQLTransaction.h:
2874         * Modules/webdatabase/SQLTransaction.idl:
2875         * Modules/webdatabase/SQLTransactionBackend.cpp:
2876         * Modules/webdatabase/SQLTransactionBackend.h:
2877         * Modules/webdatabase/SQLTransactionCallback.h:
2878         * Modules/webdatabase/SQLTransactionCallback.idl:
2879         * Modules/webdatabase/SQLTransactionErrorCallback.h:
2880         * Modules/webdatabase/SQLTransactionErrorCallback.idl:
2881         * Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp:
2882         * Modules/webdatabase/WorkerGlobalScopeWebDatabase.h:
2883         * Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl:
2884         * Resources/deleteButton.tiff:
2885         * Resources/deleteButtonPressed.tiff:
2886         * WebCore.vcxproj/MigrateScripts:
2887         * WebCorePrefix.cpp:
2888         * accessibility/AXObjectCache.cpp:
2889         * accessibility/AXObjectCache.h:
2890         * accessibility/AccessibilityARIAGrid.cpp:
2891         * accessibility/AccessibilityARIAGrid.h:
2892         * accessibility/AccessibilityARIAGridCell.cpp:
2893         * accessibility/AccessibilityARIAGridCell.h:
2894         * accessibility/AccessibilityARIAGridRow.cpp:
2895         * accessibility/AccessibilityARIAGridRow.h:
2896         * accessibility/AccessibilityImageMapLink.cpp:
2897         * accessibility/AccessibilityImageMapLink.h:
2898         * accessibility/AccessibilityList.cpp:
2899         * accessibility/AccessibilityList.h:
2900         * accessibility/AccessibilityListBox.cpp:
2901         * accessibility/AccessibilityListBox.h:
2902         * accessibility/AccessibilityListBoxOption.cpp:
2903         * accessibility/AccessibilityListBoxOption.h:
2904         * accessibility/AccessibilityMediaControls.cpp:
2905         * accessibility/AccessibilityMediaControls.h:
2906         * accessibility/AccessibilityNodeObject.cpp:
2907         * accessibility/AccessibilityNodeObject.h:
2908         * accessibility/AccessibilityObject.cpp:
2909         * accessibility/AccessibilityObject.h:
2910         * accessibility/AccessibilityRenderObject.cpp:
2911         * accessibility/AccessibilityRenderObject.h:
2912         * accessibility/AccessibilitySVGRoot.cpp:
2913         * accessibility/AccessibilitySVGRoot.h:
2914         * accessibility/AccessibilityScrollbar.cpp:
2915         * accessibility/AccessibilityScrollbar.h:
2916         * accessibility/AccessibilitySlider.cpp:
2917         * accessibility/AccessibilitySlider.h:
2918         * accessibility/AccessibilityTable.cpp:
2919         * accessibility/AccessibilityTable.h:
2920         * accessibility/AccessibilityTableCell.cpp:
2921         * accessibility/AccessibilityTableCell.h:
2922         * accessibility/AccessibilityTableColumn.cpp:
2923         * accessibility/AccessibilityTableColumn.h:
2924         * accessibility/AccessibilityTableHeaderContainer.cpp:
2925         * accessibility/AccessibilityTableHeaderContainer.h:
2926         * accessibility/AccessibilityTableRow.cpp:
2927         * accessibility/AccessibilityTableRow.h:
2928         * accessibility/ios/AXObjectCacheIOS.mm:
2929         * accessibility/ios/AccessibilityObjectIOS.mm:
2930         * accessibility/ios/WebAccessibilityObjectWrapperIOS.h:
2931         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2932         * accessibility/mac/AXObjectCacheMac.mm:
2933         * accessibility/mac/AccessibilityObjectMac.mm:
2934         * accessibility/mac/WebAccessibilityObjectWrapperBase.h:
2935         * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
2936         * accessibility/mac/WebAccessibilityObjectWrapperMac.h:
2937         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
2938         * bindings/gobject/WebKitDOMEventTarget.cpp:
2939         * bindings/gobject/WebKitDOMHTMLPrivate.cpp:
2940         * bindings/gobject/WebKitDOMHTMLPrivate.h:
2941         * bindings/js/Dictionary.cpp:
2942         * bindings/js/GCController.cpp:
2943         * bindings/js/GCController.h:
2944         * bindings/js/JSAttrCustom.cpp:
2945         * bindings/js/JSAudioTrackCustom.cpp:
2946         * bindings/js/JSAudioTrackListCustom.cpp:
2947         * bindings/js/JSCSSRuleCustom.cpp:
2948         * bindings/js/JSCSSRuleCustom.h:
2949         * bindings/js/JSCSSRuleListCustom.cpp:
2950         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
2951         * bindings/js/JSCSSValueCustom.cpp:
2952         * bindings/js/JSCallbackData.cpp:
2953         * bindings/js/JSCallbackData.h:
2954         * bindings/js/JSCanvasRenderingContextCustom.cpp:
2955         * bindings/js/JSClipboardCustom.cpp:
2956         * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
2957         * bindings/js/JSCustomXPathNSResolver.cpp:
2958         * bindings/js/JSCustomXPathNSResolver.h:
2959         * bindings/js/JSDOMGlobalObject.cpp:
2960         * bindings/js/JSDOMGlobalObject.h:
2961         * bindings/js/JSDOMWindowShell.cpp:
2962         * bindings/js/JSDOMWindowShell.h:
2963         * bindings/js/JSElementCustom.cpp:
2964         * bindings/js/JSEventCustom.cpp:
2965         * bindings/js/JSHTMLAppletElementCustom.cpp:
2966         * bindings/js/JSHTMLCanvasElementCustom.cpp:
2967         * bindings/js/JSHTMLDocumentCustom.cpp:
2968         * bindings/js/JSHTMLElementCustom.cpp:
2969         * bindings/js/JSHTMLEmbedElementCustom.cpp:
2970         * bindings/js/JSHTMLFormElementCustom.cpp:
2971         * bindings/js/JSHTMLFrameElementCustom.cpp:
2972         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
2973         * bindings/js/JSHTMLObjectElementCustom.cpp:
2974         * bindings/js/JSHTMLSelectElementCustom.h:
2975         * bindings/js/JSHistoryCustom.cpp:
2976         * bindings/js/JSMediaListCustom.h:
2977         * bindings/js/JSMediaSourceStatesCustom.cpp:
2978         * bindings/js/JSMediaStreamCapabilitiesCustom.cpp:
2979         * bindings/js/JSNamedNodeMapCustom.cpp:
2980         * bindings/js/JSNodeCustom.cpp:
2981         * bindings/js/JSNodeCustom.h:
2982         * bindings/js/JSNodeFilterCustom.cpp:
2983         * bindings/js/JSNodeListCustom.cpp:
2984         * bindings/js/JSSQLResultSetRowListCustom.cpp:
2985         * bindings/js/JSSQLTransactionCustom.cpp:
2986         * bindings/js/JSSQLTransactionSyncCustom.cpp:
2987         * bindings/js/JSSVGElementInstanceCustom.cpp:
2988         * bindings/js/JSStyleSheetCustom.cpp:
2989         * bindings/js/JSStyleSheetCustom.h:
2990         * bindings/js/JSStyleSheetListCustom.cpp:
2991         * bindings/js/JSTextTrackCueCustom.cpp:
2992         * bindings/js/JSTextTrackCustom.cpp:
2993         * bindings/js/JSTextTrackListCustom.cpp:
2994         * bindings/js/JSTouchCustom.cpp:
2995         * bindings/js/JSTouchListCustom.cpp:
2996         * bindings/js/JSTrackCustom.cpp:
2997         * bindings/js/JSTrackCustom.h:
2998         * bindings/js/JSTrackEventCustom.cpp:
2999         * bindings/js/JSVideoTrackCustom.cpp:
3000         * bindings/js/JSVideoTrackListCustom.cpp:
3001         * bindings/js/JSWebGLRenderingContextCustom.cpp:
3002         * bindings/js/JSWebKitPointCustom.cpp:
3003         * bindings/js/JSWorkerGlobalScopeBase.cpp:
3004         * bindings/js/JSWorkerGlobalScopeBase.h:
3005         * bindings/js/JSXMLHttpRequestCustom.cpp:
3006         * bindings/js/JSXSLTProcessorCustom.cpp:
3007         * bindings/js/ScriptControllerMac.mm:
3008         * bindings/js/ScriptProfile.cpp:
3009         * bindings/js/ScriptProfile.h:
3010         * bindings/js/ScriptProfileNode.h:
3011         * bindings/js/ScriptProfiler.cpp:
3012         * bindings/js/ScriptProfiler.h:
3013         * bindings/js/SerializedScriptValue.cpp:
3014         * bindings/js/SerializedScriptValue.h:
3015         * bindings/js/WorkerScriptController.cpp:
3016         * bindings/js/WorkerScriptController.h:
3017         * bindings/objc/DOM.h:
3018         * bindings/objc/DOM.mm:
3019         * bindings/objc/DOMAbstractView.mm:
3020         * bindings/objc/DOMAbstractViewFrame.h:
3021         * bindings/objc/DOMCSS.h:
3022         * bindings/objc/DOMCSS.mm:
3023         * bindings/objc/DOMCore.h:
3024         * bindings/objc/DOMCustomXPathNSResolver.h:
3025         * bindings/objc/DOMCustomXPathNSResolver.mm:
3026         * bindings/objc/DOMEventException.h:
3027         * bindings/objc/DOMEvents.h:
3028         * bindings/objc/DOMEvents.mm:
3029         * bindings/objc/DOMException.h:
3030         * bindings/objc/DOMExtensions.h:
3031         * bindings/objc/DOMHTML.h:
3032         * bindings/objc/DOMHTML.mm:
3033         * bindings/objc/DOMInternal.h:
3034         * bindings/objc/DOMInternal.mm:
3035         * bindings/objc/DOMObject.h:
3036         * bindings/objc/DOMObject.mm:
3037         * bindings/objc/DOMPrivate.h:
3038         * bindings/objc/DOMRangeException.h:
3039         * bindings/objc/DOMRanges.h:
3040         * bindings/objc/DOMStylesheets.h:
3041         * bindings/objc/DOMTraversal.h:
3042         * bindings/objc/DOMUIKitExtensions.h:
3043         * bindings/objc/DOMUIKitExtensions.mm:
3044         * bindings/objc/DOMUtility.mm:
3045         * bindings/objc/DOMViews.h:
3046         * bindings/objc/DOMXPath.h:
3047         * bindings/objc/DOMXPath.mm:
3048         * bindings/objc/DOMXPathException.h:
3049         * bindings/objc/ExceptionHandlers.h:
3050         * bindings/objc/ExceptionHandlers.mm:
3051         * bindings/objc/ObjCEventListener.h:
3052         * bindings/objc/ObjCEventListener.mm:
3053         * bindings/objc/ObjCNodeFilterCondition.h:
3054         * bindings/objc/ObjCNodeFilterCondition.mm:
3055         * bindings/objc/PublicDOMInterfaces.h:
3056         * bindings/objc/WebScriptObject.mm:
3057         * bindings/scripts/CodeGeneratorObjC.pm:
3058         * bindings/scripts/InFilesCompiler.pm:
3059         (license):
3060         * bindings/scripts/InFilesParser.pm:
3061         * bindings/scripts/generate-bindings.pl:
3062         * bindings/scripts/test/ObjC/DOMFloat64Array.h:
3063         * bindings/scripts/test/ObjC/DOMFloat64Array.mm:
3064         * bindings/scripts/test/ObjC/DOMFloat64ArrayInternal.h:
3065         * bindings/scripts/test/ObjC/DOMTestActiveDOMObject.h:
3066         * bindings/scripts/test/ObjC/DOMTestActiveDOMObject.mm:
3067         * bindings/scripts/test/ObjC/DOMTestActiveDOMObjectInternal.h:
3068         * bindings/scripts/test/ObjC/DOMTestCallback.h:
3069         * bindings/scripts/test/ObjC/DOMTestCallback.mm:
3070         * bindings/scripts/test/ObjC/DOMTestCallbackInternal.h:
3071         * bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.h:
3072         * bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.mm:
3073         * bindings/scripts/test/ObjC/DOMTestCustomNamedGetterInternal.h:
3074         * bindings/scripts/test/ObjC/DOMTestEventConstructor.h:
3075         * bindings/scripts/test/ObjC/DOMTestEventConstructor.mm:
3076         * bindings/scripts/test/ObjC/DOMTestEventConstructorInternal.h:
3077         * bindings/scripts/test/ObjC/DOMTestEventTarget.h:
3078         * bindings/scripts/test/ObjC/DOMTestEventTarget.mm:
3079         * bindings/scripts/test/ObjC/DOMTestEventTargetInternal.h:
3080         * bindings/scripts/test/ObjC/DOMTestException.h:
3081         * bindings/scripts/test/ObjC/DOMTestException.mm:
3082         * bindings/scripts/test/ObjC/DOMTestExceptionInternal.h:
3083         * bindings/scripts/test/ObjC/DOMTestGenerateIsReachable.h:
3084         * bindings/scripts/test/ObjC/DOMTestGenerateIsReachable.mm:
3085         * bindings/scripts/test/ObjC/DOMTestGenerateIsReachableInternal.h:
3086         * bindings/scripts/test/ObjC/DOMTestInterface.h:
3087         * bindings/scripts/test/ObjC/DOMTestInterface.mm:
3088         * bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h:
3089         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h:
3090         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm:
3091         * bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h:
3092         * bindings/scripts/test/ObjC/DOMTestNamedConstructor.h:
3093         * bindings/scripts/test/ObjC/DOMTestNamedConstructor.mm:
3094         * bindings/scripts/test/ObjC/DOMTestNamedConstructorInternal.h:
3095         * bindings/scripts/test/ObjC/DOMTestNode.h:
3096         * bindings/scripts/test/ObjC/DOMTestNode.mm:
3097         * bindings/scripts/test/ObjC/DOMTestNodeInternal.h:
3098         * bindings/scripts/test/ObjC/DOMTestObj.h:
3099         * bindings/scripts/test/ObjC/DOMTestObj.mm:
3100         * bindings/scripts/test/ObjC/DOMTestObjInternal.h:
3101         * bindings/scripts/test/ObjC/DOMTestOverloadedConstructors.h:
3102         * bindings/scripts/test/ObjC/DOMTestOverloadedConstructors.mm:
3103         * bindings/scripts/test/ObjC/DOMTestOverloadedConstructorsInternal.h:
3104         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h:
3105         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.mm:
3106         * bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterfaceInternal.h:
3107         * bindings/scripts/test/ObjC/DOMTestTypedefs.h:
3108         * bindings/scripts/test/ObjC/DOMTestTypedefs.mm:
3109         * bindings/scripts/test/ObjC/DOMTestTypedefsInternal.h:
3110         * bindings/scripts/test/ObjC/DOMattribute.h:
3111         * bindings/scripts/test/ObjC/DOMattribute.mm:
3112         * bindings/scripts/test/ObjC/DOMattributeInternal.h:
3113         * bindings/scripts/test/ObjC/DOMreadonly.h:
3114         * bindings/scripts/test/ObjC/DOMreadonly.mm:
3115         * bindings/scripts/test/ObjC/DOMreadonlyInternal.h:
3116         * bindings/scripts/test/TestCallback.idl:
3117         * bindings/scripts/test/TestCustomNamedGetter.idl:
3118         * bindings/scripts/test/TestDomainSecurity.idl:
3119         * bindings/scripts/test/TestEventConstructor.idl:
3120         * bindings/scripts/test/TestEventTarget.idl:
3121         * bindings/scripts/test/TestException.idl:
3122         * bindings/scripts/test/TestImplements.idl:
3123         * bindings/scripts/test/TestInterface.idl:
3124         * bindings/scripts/test/TestMediaQueryListListener.idl:
3125         * bindings/scripts/test/TestNamedConstructor.idl:
3126         * bindings/scripts/test/TestObj.idl:
3127         * bindings/scripts/test/TestOverloadedConstructors.idl:
3128         * bindings/scripts/test/TestSupplemental.idl:
3129         * bridge/Bridge.h:
3130         * bridge/IdentifierRep.cpp:
3131         * bridge/IdentifierRep.h:
3132         * bridge/NP_jsobject.cpp:
3133         * bridge/NP_jsobject.h:
3134         * bridge/c/CRuntimeObject.cpp:
3135         * bridge/c/CRuntimeObject.h:
3136         * bridge/c/c_class.cpp:
3137         * bridge/c/c_class.h:
3138         * bridge/c/c_instance.cpp:
3139         * bridge/c/c_instance.h:
3140         * bridge/c/c_runtime.cpp:
3141         * bridge/c/c_runtime.h:
3142         * bridge/c/c_utility.cpp:
3143         * bridge/c/c_utility.h:
3144         * bridge/jsc/BridgeJSC.cpp:
3145         * bridge/jsc/BridgeJSC.h:
3146         * bridge/npruntime.cpp:
3147         * bridge/npruntime_impl.h:
3148         * bridge/npruntime_priv.h:
3149         * bridge/objc/ObjCRuntimeObject.h:
3150         * bridge/objc/ObjCRuntimeObject.mm:
3151         * bridge/objc/WebScriptObject.h:
3152         * bridge/objc/objc_class.h:
3153         * bridge/objc/objc_class.mm:
3154         * bridge/objc/objc_header.h:
3155         * bridge/objc/objc_instance.h:
3156         * bridge/objc/objc_instance.mm:
3157         * bridge/objc/objc_runtime.h:
3158         * bridge/objc/objc_runtime.mm:
3159         * bridge/objc/objc_utility.h:
3160         * bridge/objc/objc_utility.mm:
3161         * bridge/runtime_array.cpp:
3162         * bridge/runtime_array.h:
3163         * bridge/runtime_method.cpp:
3164         * bridge/runtime_method.h:
3165         * bridge/runtime_object.cpp:
3166         * bridge/runtime_object.h:
3167         * bridge/runtime_root.cpp:
3168         * bridge/runtime_root.h:
3169         * bridge/testbindings.mm:
3170         * css/CSSAllInOne.cpp:
3171         * css/CSSAspectRatioValue.cpp:
3172         * css/CSSAspectRatioValue.h:
3173         * css/CSSBorderImageSliceValue.cpp:
3174         * css/CSSBorderImageSliceValue.h:
3175         * css/CSSCanvasValue.cpp:
3176         * css/CSSCanvasValue.h:
3177         * css/CSSCrossfadeValue.cpp:
3178         * css/CSSCrossfadeValue.h:
3179         * css/CSSFontFace.cpp:
3180         * css/CSSFontFace.h:
3181         * css/CSSFontFaceSource.cpp:
3182         * css/CSSFontFaceSource.h:
3183         * css/CSSFontFaceSrcValue.cpp:
3184         * css/CSSFontFaceSrcValue.h:
3185         * css/CSSFontFeatureValue.cpp:
3186         * css/CSSFontFeatureValue.h:
3187         * css/CSSFontSelector.cpp:
3188         * css/CSSFontSelector.h:
3189         * css/CSSFontValue.cpp:
3190         * css/CSSGradientValue.cpp:
3191         * css/CSSGradientValue.h:
3192         * css/CSSImageGeneratorValue.cpp:
3193         * css/CSSImageGeneratorValue.h:
3194         * css/CSSMediaRule.cpp:
3195         * css/CSSProperty.cpp:
3196         * css/CSSProperty.h:
3197         * css/CSSReflectValue.cpp:
3198         * css/CSSReflectValue.h:
3199         * css/CSSReflectionDirection.h:
3200         * css/CSSRuleList.cpp:
3201         * css/CSSRuleList.h:
3202         * css/CSSRuleList.idl:
3203         * css/CSSSegmentedFontFace.cpp:
3204         * css/CSSSegmentedFontFace.h:
3205         * css/CSSShadowValue.cpp:
3206         * css/CSSTimingFunctionValue.cpp:
3207         * css/CSSTimingFunctionValue.h:
3208         * css/CSSUnicodeRangeValue.cpp:
3209         * css/CSSUnicodeRangeValue.h:
3210         * css/CSSUnknownRule.idl:
3211         * css/CSSValue.cpp:
3212         * css/CSSValueList.idl:
3213         * css/MediaAllInOne.cpp:
3214         * css/MediaFeatureNames.cpp:
3215         * css/MediaList.idl:
3216         * css/MediaQuery.cpp:
3217         * css/MediaQuery.h:
3218         * css/MediaQueryEvaluator.cpp:
3219         * css/MediaQueryEvaluator.h:
3220         * css/MediaQueryExp.cpp:
3221         * css/MediaQueryExp.h:
3222         * css/Pair.h:
3223         * css/PropertySetCSSStyleDeclaration.h:
3224         * css/RGBColor.cpp:
3225         * css/RGBColor.h:
3226         * css/SVGCSSParser.cpp:
3227         * css/SVGCSSStyleSelector.cpp:
3228         * css/StyleInvalidationAnalysis.cpp:
3229         * css/StyleInvalidationAnalysis.h:
3230         * css/StyleMedia.cpp:
3231         * css/StyleMedia.h:
3232         * css/StyleMedia.idl:
3233         * css/StyleSheet.cpp:
3234         * css/WebKitCSSFilterValue.cpp:
3235         * css/WebKitCSSFilterValue.h:
3236         * css/WebKitCSSFilterValue.idl:
3237         * css/WebKitCSSKeyframeRule.cpp:
3238         * css/WebKitCSSKeyframeRule.h:
3239         * css/WebKitCSSKeyframeRule.idl:
3240         * css/WebKitCSSKeyframesRule.cpp:
3241         * css/WebKitCSSKeyframesRule.h:
3242         * css/WebKitCSSKeyframesRule.idl:
3243         * css/WebKitCSSTransformValue.cpp:
3244         * css/WebKitCSSTransformValue.h:
3245         * css/WebKitCSSTransformValue.idl:
3246         * css/make-css-file-arrays.pl:
3247         * css/mediaControls.css:
3248         * css/mediaControlsEfl.css:
3249         * css/mediaControlsEflFullscreen.css:
3250         * css/mediaControlsGtk.css:
3251         * css/mediaControlsiOS.css:
3252         * css/svg.css:
3253         * dom/ActiveDOMObject.cpp:
3254         * dom/ActiveDOMObject.h:
3255         * dom/BeforeLoadEvent.h:
3256         * dom/BeforeLoadEvent.idl:
3257         * dom/BeforeTextInsertedEvent.cpp:
3258         * dom/BeforeTextInsertedEvent.h:
3259         * dom/BeforeUnloadEvent.cpp:
3260         * dom/BeforeUnloadEvent.h:
3261         * dom/BeforeUnloadEvent.idl:
3262         * dom/ClassNodeList.cpp:
3263         * dom/ClassNodeList.h:
3264         * dom/ClientRect.cpp:
3265         * dom/ClientRect.h:
3266         * dom/ClientRect.idl:
3267         * dom/ClientRectList.cpp:
3268         * dom/ClientRectList.h:
3269         * dom/ClientRectList.idl:
3270         * dom/Clipboard.cpp:
3271         * dom/Clipboard.idl:
3272         * dom/ClipboardAccessPolicy.h:
3273         * dom/ClipboardMac.mm:
3274         * dom/CompositionEvent.cpp:
3275         * dom/CompositionEvent.h:
3276         * dom/CompositionEvent.idl:
3277         * dom/ContextDestructionObserver.cpp:
3278         * dom/ContextDestructionObserver.h:
3279         * dom/CurrentScriptIncrementer.h:
3280         * dom/CustomEvent.cpp:
3281         * dom/CustomEvent.h:
3282         * dom/CustomEvent.idl:
3283         * dom/DOMCoreException.cpp:
3284         * dom/DOMCoreException.h:
3285         * dom/DOMCoreException.idl:
3286         * dom/DOMError.idl:
3287         * dom/DeviceMotionEvent.cpp:
3288         * dom/DeviceMotionEvent.h:
3289         * dom/DeviceMotionEvent.idl:
3290         * dom/DocumentEventQueue.cpp:
3291         * dom/DocumentEventQueue.h:
3292         * dom/DocumentMarker.h:
3293         * dom/DocumentParser.h:
3294         * dom/DocumentSharedObjectPool.cpp:
3295         * dom/DocumentSharedObjectPool.h:
3296         * dom/Entity.idl:
3297         * dom/EventContext.cpp:
3298         * dom/EventContext.h:
3299         * dom/EventException.cpp:
3300         * dom/EventException.h:
3301         * dom/EventException.idl:
3302         * dom/EventListener.idl:
3303         * dom/EventListenerMap.cpp:
3304         * dom/EventListenerMap.h:
3305         * dom/EventNames.cpp:
3306         * dom/EventQueue.h:
3307         * dom/EventTarget.cpp:
3308         * dom/EventTarget.h:
3309         * dom/ExceptionBase.cpp:
3310         * dom/ExceptionBase.h:
3311         * dom/GenericEventQueue.cpp:
3312         * dom/GenericEventQueue.h:
3313         * dom/KeyboardEvent.idl:
3314         * dom/MessageChannel.cpp:
3315         * dom/MessageChannel.h:
3316         * dom/MessageChannel.idl:
3317         * dom/MessageEvent.cpp:
3318         * dom/MessageEvent.h:
3319         * dom/MessageEvent.idl:
3320         * dom/MessagePort.cpp:
3321         * dom/MessagePort.h:
3322         * dom/MessagePort.idl:
3323         * dom/MouseRelatedEvent.h:
3324         * dom/MutationEvent.idl:
3325         * dom/Notation.idl:
3326         * dom/OverflowEvent.cpp:
3327         * dom/OverflowEvent.h:
3328         * dom/OverflowEvent.idl:
3329         * dom/PopStateEvent.cpp:
3330         * dom/PopStateEvent.h:
3331         * dom/PopStateEvent.idl:
3332         * dom/Position.cpp:
3333         * dom/Position.h:
3334         * dom/ProcessingInstruction.idl:
3335         * dom/ProgressEvent.cpp:
3336         * dom/ProgressEvent.h:
3337         * dom/ProgressEvent.idl:
3338         * dom/Range.idl:
3339         * dom/RangeException.cpp:
3340         * dom/RangeException.h:
3341         * dom/ScriptExecutionContext.cpp:
3342         * dom/ScriptExecutionContext.h:
3343         * dom/SecurityContext.cpp:
3344         * dom/SecurityContext.h:
3345         * dom/StaticNodeList.cpp:
3346         * dom/StaticNodeList.h:
3347         * dom/Text.idl:
3348         * dom/TextEvent.cpp:
3349         * dom/TextEvent.h:
3350         * dom/TextEvent.idl:
3351         * dom/Touch.cpp:
3352         * dom/Touch.h:
3353         * dom/Touch.idl:
3354         * dom/TouchEvent.cpp:
3355         * dom/TouchEvent.h:
3356         * dom/TouchEvent.idl:
3357         * dom/TouchList.cpp:
3358         * dom/TouchList.h:
3359         * dom/TouchList.idl:
3360         * dom/TransitionEvent.cpp:
3361         * dom/TransitionEvent.h:
3362         * dom/TransitionEvent.idl:
3363         * dom/TreeWalker.idl:
3364         * dom/UIEvent.idl:
3365         * dom/UIEventWithKeyState.cpp:
3366         * dom/WebKitAnimationEvent.cpp:
3367         * dom/WebKitAnimationEvent.h:
3368         * dom/WebKitAnimationEvent.idl:
3369         * dom/WebKitTransitionEvent.cpp:
3370         * dom/WebKitTransitionEvent.h:
3371         * dom/WebKitTransitionEvent.idl:
3372         * dom/make_dom_exceptions.pl:
3373         * dom/make_event_factory.pl:
3374         * dom/make_names.pl:
3375         (printLicenseHeader):
3376         * editing/AlternativeTextController.cpp:
3377         * editing/AlternativeTextController.h:
3378         * editing/AppendNodeCommand.cpp:
3379         * editing/AppendNodeCommand.h:
3380         * editing/ApplyStyleCommand.cpp:
3381         * editing/ApplyStyleCommand.h:
3382         * editing/BreakBlockquoteCommand.cpp:
3383         * editing/BreakBlockquoteCommand.h:
3384         * editing/CompositeEditCommand.cpp:
3385         * editing/CompositeEditCommand.h:
3386         * editing/CreateLinkCommand.cpp:
3387         * editing/CreateLinkCommand.h:
3388         * editing/DeleteButton.cpp:
3389         * editing/DeleteButton.h:
3390         * editing/DeleteButtonController.cpp:
3391         * editing/DeleteButtonController.h:
3392         * editing/DeleteFromTextNodeCommand.cpp:
3393         * editing/DeleteFromTextNodeCommand.h:
3394         * editing/DeleteSelectionCommand.cpp:
3395         * editing/DeleteSelectionCommand.h:
3396         * editing/EditAction.h:
3397         * editing/EditCommand.cpp:
3398         * editing/EditCommand.h:
3399         * editing/EditingBoundary.h:
3400         * editing/EditingStyle.cpp:
3401         * editing/Editor.cpp:
3402         * editing/Editor.h:
3403         * editing/EditorCommand.cpp:
3404         * editing/EditorDeleteAction.h:
3405         * editing/EditorInsertAction.h:
3406         * editing/FormatBlockCommand.cpp:
3407         * editing/FormatBlockCommand.h:
3408         * editing/FrameSelection.cpp:
3409         * editing/FrameSelection.h:
3410         * editing/HTMLInterchange.cpp:
3411         * editing/HTMLInterchange.h:
3412         * editing/IndentOutdentCommand.cpp:
3413         * editing/IndentOutdentCommand.h:
3414         * editing/InsertIntoTextNodeCommand.cpp:
3415         * editing/InsertIntoTextNodeCommand.h:
3416         * editing/InsertLineBreakCommand.cpp:
3417         * editing/InsertLineBreakCommand.h:
3418         * editing/InsertListCommand.cpp:
3419         * editing/InsertListCommand.h:
3420         * editing/InsertNodeBeforeCommand.cpp:
3421         * editing/InsertNodeBeforeCommand.h:
3422         * editing/InsertParagraphSeparatorCommand.cpp:
3423         * editing/InsertParagraphSeparatorCommand.h:
3424         * editing/InsertTextCommand.cpp:
3425         * editing/InsertTextCommand.h:
3426         * editing/MarkupAccumulator.h:
3427         * editing/MergeIdenticalElementsCommand.cpp:
3428         * editing/MergeIdenticalElementsCommand.h:
3429         * editing/ModifySelectionListLevel.cpp:
3430         * editing/ModifySelectionListLevel.h:
3431         * editing/MoveSelectionCommand.cpp:
3432         * editing/MoveSelectionCommand.h:
3433         * editing/RemoveCSSPropertyCommand.cpp:
3434         * editing/RemoveCSSPropertyCommand.h:
3435         * editing/RemoveFormatCommand.cpp:
3436         * editing/RemoveFormatCommand.h:
3437         * editing/RemoveNodeCommand.cpp:
3438         * editing/RemoveNodeCommand.h:
3439         * editing/RemoveNodePreservingChildrenCommand.cpp:
3440         * editing/RemoveNodePreservingChildrenCommand.h:
3441         * editing/ReplaceSelectionCommand.cpp:
3442         * editing/ReplaceSelectionCommand.h:
3443         * editing/SetNodeAttributeCommand.cpp:
3444         * editing/SetNodeAttributeCommand.h:
3445         * editing/SetSelectionCommand.cpp:
3446         * editing/SetSelectionCommand.h:
3447         * editing/SimplifyMarkupCommand.cpp:
3448         * editing/SimplifyMarkupCommand.h:
3449         * editing/SmartReplace.cpp:
3450         * editing/SmartReplace.h:
3451         * editing/SmartReplaceCF.cpp:
3452         * editing/SpellChecker.cpp:
3453         * editing/SpellChecker.h:
3454         * editing/SpellingCorrectionCommand.cpp:
3455         * editing/SpellingCorrectionCommand.h:
3456         * editing/SplitElementCommand.cpp:
3457         * editing/SplitElementCommand.h: