Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-12-19  David Kilzer  <ddkilzer@apple.com>
2
3         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
4         <http://webkit.org/b/139463>
5
6         Reviewed by Mark Rowe.
7
8         Also remove all uses of SQLITE3_HEADER_SEARCH_PATHS and
9         WEBCORE_SQLITE3_HEADER_SEARCH_PATHS which were phased out in
10         r132859 and needed for Leopard.
11
12         * Configurations/Base.xcconfig:
13         - Only set GCC_ENABLE_OBJC_GC, GCC_MODEL_TUNING and TOOLCHAINS
14           on OS X.
15         - Set GCC_OPTIMIZATION_LEVEL_normal based on SDK.
16         - Simplify SQLITE3_HEADER_SEARCH_PATHS.
17         * Configurations/DebugRelease.xcconfig:
18         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
19         * Configurations/Version.xcconfig:
20         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
21         * Configurations/WebCore.xcconfig:
22         - Set EXPORTED_SYMBOLS_FILE_i386, EXPORTED_SYMBOLS_FILE_x86_64,
23           FRAMEWORK_SEARCH_PATHS, INSTALL_PATH, DYLIB_INSTALL_NAME_BASE,
24           OTHER_LDFLAGS, SECTORDER_FLAGS, NORMAL_WEBCORE_FRAMEWORKS_DIR,
25           WEBCORE_FRAMEWORKS_DIR, NORMAL_PRODUCTION_FRAMEWORKS_DIR,
26           PRODUCTION_FRAMEWORKS_DIR,
27           JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production and
28           EXCLUDED_SOURCE_FILE_NAMES based on SDK.
29         - Make sure DYLIB_INSTALL_NAME_BASE and OTHER_LDFLAGS are
30           overrideable by WebCoreTestSupport.xcconfig.
31         * Configurations/WebCoreTestSupport.xcconfig:
32         - Set PRIVATE_HEADERS_FOLDER_PATH_Production and
33           INSTALL_PATH_Production based on SDK.
34         - Override SECT_ORDER_FLAGS from WebCore.xcconfig.
35
36 2014-12-19  Chris Dumez  <cdumez@apple.com>
37
38         Clean up StyleBuilderCustom and DeprecatedStyleBuilder
39         https://bugs.webkit.org/show_bug.cgi?id=139807
40
41         Reviewed by Antti Koivisto.
42
43         Clean up StyleBuilderCustom and DeprecatedStyleBuilder.
44
45         * css/DeprecatedStyleBuilder.cpp:
46
47         - Remove unnecessary header includes.
48
49         (WebCore::ApplyPropertyPerspectiveOrigin::applyInheritValue):
50         (WebCore::ApplyPropertyPerspectiveOrigin::applyInitialValue):
51         (WebCore::ApplyPropertyPerspectiveOrigin::applyValue):
52         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
53         (WebCore::ApplyPropertyExpanding::applyInheritValue): Deleted.
54         (WebCore::ApplyPropertyExpanding::applyInitialValue): Deleted.
55         (WebCore::ApplyPropertyExpanding::applyValue): Deleted.
56         (WebCore::ApplyPropertyExpanding::createHandler): Deleted.
57
58         - Rename ApplyPropertyExpanding to ApplyPropertyPerspectiveOrigin as
59           PerspectiveOrigin is the only remaining user of this class. This also
60           allows us to simplify the implementation a lot.
61
62         (WebCore::ApplyPropertyDefaultBase::setValue): Deleted.
63         (WebCore::ApplyPropertyDefaultBase::value): Deleted.
64         (WebCore::ApplyPropertyDefaultBase::initial): Deleted.
65         (WebCore::ApplyPropertyDefaultBase::applyInheritValue): Deleted.
66         (WebCore::ApplyPropertyDefaultBase::applyInitialValue): Deleted.
67         (WebCore::ApplyPropertyDefaultBase::applyValue): Deleted.
68
69         - There is no longer any user of this templated class.
70
71         * css/StyleBuilderCustom.h:
72
73         - Introduce a macro that declares all 3 handlers (inherit, initial and
74           value) in the StyleBuilderCustom class. This greatly reduces the
75           number of lines in this class.
76         - Also alphabetize the handlers.
77
78 2014-12-18  Jeremy Jones  <jeremyj@apple.com>
79
80         dispatch to main thread before accessing playerController() in WebVideoFullscreenInterfaceAVKit::setCanPlayFastReverse
81         https://bugs.webkit.org/show_bug.cgi?id=139809
82
83         Reviewed by Dan Bernstein.
84
85         This prevents a race in playerController().
86
87         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
88         (WebVideoFullscreenInterfaceAVKit::setCanPlayFastReverse):
89
90 2014-12-18  Jessie Berlin  <jberlin@webkit.org>
91
92         More speculative build fixing.
93
94         * WebCore.exp.in:
95
96 2014-12-18  Andreas Kling  <akling@apple.com>
97
98         Ref-ify various Document-related things.
99         <https://webkit.org/b/139796>
100
101         Reviewed by Anders Carlsson.
102
103         * bindings/objc/DOMHTML.mm:
104         (-[DOMHTMLDocument createDocumentFragmentWithText:]):
105         * dom/CDATASection.cpp:
106         (WebCore::CDATASection::create):
107         (WebCore::CDATASection::virtualCreate):
108         * dom/CDATASection.h:
109         * dom/Comment.cpp:
110         (WebCore::Comment::create):
111         * dom/Comment.h:
112         * dom/Document.cpp:
113         (WebCore::Document::create):
114         (WebCore::Document::createDocumentFragment):
115         (WebCore::Document::createTextNode):
116         (WebCore::Document::createComment):
117         (WebCore::Document::createEditingTextNode):
118         (WebCore::Document::createCSSStyleDeclaration):
119         (WebCore::Document::createElement):
120         (WebCore::Document::createRange):
121         (WebCore::Document::createParser):
122         (WebCore::Document::cloneNodeInternal):
123         (WebCore::Document::cloneDocumentWithoutChildren):
124         * dom/Document.h:
125         (WebCore::Document::create):
126         (WebCore::Document::createXHTML):
127         (WebCore::Document::createNonRenderedPlaceholder):
128         * dom/DocumentFragment.cpp:
129         (WebCore::DocumentFragment::create):
130         * dom/DocumentFragment.h:
131         * dom/DocumentType.h:
132         * dom/EntityReference.cpp:
133         (WebCore::EntityReference::create):
134         * dom/EntityReference.h:
135         * dom/Text.cpp:
136         (WebCore::Text::create):
137         (WebCore::Text::createEditingText):
138         (WebCore::Text::splitText):
139         (WebCore::Text::virtualCreate):
140         (WebCore::Text::createWithLengthLimit):
141         * dom/Text.h:
142         * editing/markup.cpp:
143         (WebCore::replaceChildrenWithText):
144         * html/FTPDirectoryDocument.cpp:
145         (WebCore::FTPDirectoryDocument::createParser):
146         * html/FTPDirectoryDocument.h:
147         * html/HTMLDocument.cpp:
148         (WebCore::HTMLDocument::createParser):
149         (WebCore::HTMLDocument::cloneDocumentWithoutChildren):
150         * html/HTMLDocument.h:
151         (WebCore::HTMLDocument::create):
152         (WebCore::HTMLDocument::createSynthesizedDocument):
153         * html/ImageDocument.cpp:
154         (WebCore::ImageDocument::createParser):
155         * html/ImageDocument.h:
156         * html/MediaDocument.cpp:
157         (WebCore::MediaDocument::createParser):
158         * html/MediaDocument.h:
159         * html/PluginDocument.cpp:
160         (WebCore::PluginDocument::createParser):
161         * html/PluginDocument.h:
162         * html/TextDocument.cpp:
163         (WebCore::TextDocument::createParser):
164         * html/TextDocument.h:
165         * html/parser/HTMLConstructionSite.cpp:
166         (WebCore::HTMLConstructionSite::insertTextNode):
167         * html/parser/HTMLDocumentParser.h:
168         (WebCore::HTMLDocumentParser::create):
169         * loader/SinkDocument.cpp:
170         (WebCore::SinkDocument::createParser):
171         * loader/SinkDocument.h:
172         * svg/SVGDocument.cpp:
173         (WebCore::SVGDocument::cloneDocumentWithoutChildren):
174         * svg/SVGDocument.h:
175         * xml/parser/XMLDocumentParser.h:
176         (WebCore::XMLDocumentParser::create):
177         * xml/parser/XMLDocumentParserLibxml2.cpp:
178         (WebCore::XMLParserContext::createStringParser):
179         (WebCore::XMLParserContext::createMemoryParser):
180
181 2014-12-18  Anders Carlsson  <andersca@apple.com>
182
183         Use MachSendRight in WebKit2
184         https://bugs.webkit.org/show_bug.cgi?id=139800
185
186         Reviewed by Tim Horton.
187
188         * WebCore.exp.in:
189         * platform/cocoa/MachSendRight.h:
190         (WebCore::MachSendRight::MachSendRight):
191         (WebCore::MachSendRight::sendRight):
192         * platform/graphics/cocoa/IOSurface.h:
193         * platform/graphics/cocoa/IOSurface.mm:
194         (IOSurface::createFromSendRight):
195         (IOSurface::createFromMachPort): Deleted.
196
197 2014-12-18  Gavin Barraclough  <barraclough@apple.com>
198
199         Add strong typing to RefCounter interface, return value as a bool.
200         https://bugs.webkit.org/show_bug.cgi?id=139776
201
202         Reviewed by Geoff Garen.
203
204         Currently all token vended by a RefCounter have the same type - Ref<RefCounter::Count>.
205         This means there is no compile time type checking to prevent mistakes. Update the count()
206         method to token<>(), templated on type used to identify the token being returned.
207         Calls to token<T>() will return a result of type RefCounter::Token<T>.
208
209         There are a few problems with the fact the counter will return you an exact count of the
210         number of outstanding tokens:
211           - It is desirable to only fire the callback on zero-edge changes; it is more consistent
212             to do so if the value is only readable as a boolean.
213           - It is desirable to provide the value as an argument to the callback, however to make
214             this useful for integer values it is also necessary to indicate the direction of change
215             (0->1 is often interesting where 2->1 is not).
216           - There is a mismatch between the precision of returning a count, and the inherent
217             imprecision of a token based mechanism, where it may be difficult to guarantee
218             absolutely no unnecessary refcount churn, and thus unintentional counter values.
219
220         * page/PageThrottler.cpp:
221         (WebCore::m_mediaActivityCounter):
222         (WebCore::m_pageLoadActivityCounter):
223             - lambdas now passed the value.
224         (WebCore::PageThrottler::mediaActivityToken):
225         (WebCore::PageThrottler::pageLoadActivityToken):
226             - count() -> token<>().
227         * page/PageThrottler.h:
228             - specify tpoken type for PageActivityAssertionToken.
229
230 2014-12-18  Benjamin Poulain  <bpoulain@apple.com>
231
232         HTMLFormControlElement and HTMLObjectElement need not to look for an ancestor on construction
233         https://bugs.webkit.org/show_bug.cgi?id=139791
234
235         Reviewed by Alexey Proskuryakov.
236
237         The objects are being constructed, they have not been inserted into the tree yet.
238         There is not chance of finding the owner form at this point,
239         that is done when inserting the node into the tree.
240
241         * html/HTMLFormControlElement.cpp:
242         (WebCore::HTMLFormControlElement::HTMLFormControlElement):
243         * html/HTMLObjectElement.cpp:
244         (WebCore::HTMLObjectElement::HTMLObjectElement):
245
246 2014-12-18  Chris Fleizach  <cfleizach@apple.com>
247
248         AX: Recursive crash at WebCore::accessibleNameForNode
249         https://bugs.webkit.org/show_bug.cgi?id=139616
250
251         Reviewed by Mario Sanchez Prada.
252
253         An image that uses aria-labelledby to reference its own parent can lead to a recursion crash.
254         There needs to be some information we can pass through these methods to ensure we don't hit this case.
255
256         Test: accessibility/accessibility-description-crash.html
257
258         * accessibility/AccessibilityNodeObject.cpp:
259         (WebCore::AccessibilityNodeObject::alternativeText):
260         (WebCore::AccessibilityNodeObject::textUnderElement):
261         (WebCore::accessibleNameForNode):
262         (WebCore::AccessibilityNodeObject::accessibilityDescriptionForElements):
263         * accessibility/AccessibilityObject.h:
264         (WebCore::AccessibilityTextUnderElementMode::AccessibilityTextUnderElementMode):
265
266 2014-12-18  Chris Fleizach  <cfleizach@apple.com>
267
268         AX: Heuristic: Avoid exposing an element as clickable if mouse event delegation is handled on an element with any explicit ARIA role, including presentation.
269         https://bugs.webkit.org/show_bug.cgi?id=133613
270
271         Reviewed by Mario Sanchez Prada.
272
273         This adds a heuristic to avoid a problem we have where too many objects that say they respond to press actions for accessibility.
274         It results from people installing click handlers on container nodes and then lots of static text objects are "clickable" in the eyes of VoiceOver.
275
276         What we can do is avoid this determination if the element is presentational.
277
278         Test: platform/mac/accessibility/press-action-for-presentational-descendants.html
279
280         * accessibility/AccessibilityObject.cpp:
281         (WebCore::nodeHasPresentationRole):
282         (WebCore::AccessibilityObject::supportsPressAction):
283         * accessibility/AccessibilityObject.h:
284         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
285         (-[WebAccessibilityObjectWrapper accessibilityActionNames]):
286
287 2014-12-18  Chris Fleizach  <cfleizach@apple.com>
288
289         AX: event.target should sometimes be a descendant element on AXPress-triggered mouse clicks
290         https://bugs.webkit.org/show_bug.cgi?id=135689
291
292         Reviewed by Mario Sanchez Prada.
293
294         When trying to find the right sub-node to target, we need to go back up the parent chain to find 
295         an Element, in case we land on a Text node for example.
296
297         Test: accessibility/press-target-uses-text-descendant-node.html
298
299         * accessibility/AccessibilityObject.cpp:
300         (WebCore::AccessibilityObject::press):
301
302 2014-12-16  Sam Weinig  <sam@webkit.org>
303
304         Unify the Mac and iOS implementations of FontPlatformData a bit
305         https://bugs.webkit.org/show_bug.cgi?id=139721
306
307         Reviewed by Anders Carlsson.
308
309         This is a first pass of unifying the Mac and iOS implementations of FontPlatformData.
310         Notable changes:
311         - Change the storage of the platform font to be CTFontRef across the board. Adds NSFont
312           setter/getter/constructor as a temporary measures during the transition away from NSFont.
313         - Removes duplicate code that only differed by whether the type was NSFont or CTFontRef.
314         - Reduces the number of #ifdefs.
315
316         * platform/graphics/FontPlatformData.cpp:
317         (WebCore::FontPlatformData::FontPlatformData):
318         (WebCore::FontPlatformData::operator=):
319         (WebCore::FontPlatformData::openTypeTable): Deleted.
320         * platform/graphics/FontPlatformData.h:
321         (WebCore::FontPlatformData::nsFont):
322         (WebCore::FontPlatformData::setNSFont):
323         (WebCore::FontPlatformData::hash):
324         (WebCore::FontPlatformData::operator==):
325         (WebCore::FontPlatformData::isHashTableDeletedValue):
326         (WebCore::toCTFontRef): Deleted.
327         (WebCore::FontPlatformData::font): Deleted.
328         (WebCore::FontPlatformData::roundsGlyphAdvances): Deleted.
329         (WebCore::FontPlatformData::cgFont): Deleted.
330         (WebCore::FontPlatformData::hashTableDeletedFontValue): Deleted.
331         * platform/graphics/SimpleFontData.h:
332         * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
333         (WebCore::FontPlatformData::FontPlatformData):
334         (WebCore::FontPlatformData::~FontPlatformData):
335         (WebCore::FontPlatformData::platformDataInit):
336         (WebCore::FontPlatformData::platformDataAssign):
337         (WebCore::FontPlatformData::setFont):
338         (WebCore::FontPlatformData::roundsGlyphAdvances):
339         (WebCore::FontPlatformData::allowsLigatures):
340         (WebCore::FontPlatformData::ctFont):
341         (WebCore::FontPlatformData::openTypeTable):
342         (WebCore::FontPlatformData::loadFont): Deleted.
343         * platform/graphics/mac/FontCacheMac.mm:
344         (WebCore::FontCache::systemFallbackForCharacters):
345         * platform/graphics/mac/FontMac.mm:
346         (WebCore::Font::drawGlyphs):
347         * platform/graphics/mac/SimpleFontDataMac.mm:
348         (WebCore::SimpleFontData::getCompositeFontReferenceFontData):
349         (WebCore::SimpleFontData::platformInit):
350         (WebCore::SimpleFontData::platformCreateScaledFontData):
351         (WebCore::SimpleFontData::containsCharacters):
352         (WebCore::SimpleFontData::determinePitch):
353         (WebCore::SimpleFontData::renderingStyle):
354         (WebCore::SimpleFontData::advanceForColorBitmapFont):
355
356 2014-12-18  Anders Carlsson  <andersca@apple.com>
357
358         Build fix.
359
360         * platform/cocoa/MachSendRight.cpp:
361
362 2014-12-18  Timothy Horton  <timothy_horton@apple.com>
363
364         Change page preview loading order, and add a TextIndicator
365         https://bugs.webkit.org/show_bug.cgi?id=139793
366         <rdar://problem/19288547>
367
368         Reviewed by Beth Dakin.
369
370         * WebCore.exp.in:
371         * platform/spi/mac/NSPopoverSPI.h:
372         Add an export and some SPI.
373
374 2014-12-18  Anders Carlsson  <andersca@apple.com>
375
376         Clean up MachSendRight and add a copySendRight member function
377         https://bugs.webkit.org/show_bug.cgi?id=139788
378
379         Reviewed by Tim Horton.
380
381         * platform/cocoa/MachSendRight.cpp:
382         (WebCore::retainSendRight):
383         (WebCore::releaseSendRight):
384         Use mach_error_string.
385
386         (WebCore::MachSendRight::copySendRight):
387         Create a new send right with the given mach port.
388
389         (WebCore::MachSendRight::leakSendRight):
390         Use std::exchange.
391
392         * platform/cocoa/MachSendRight.h:
393
394 2014-12-18  Joseph Pecoraro  <pecoraro@apple.com>
395
396         Web Inspector: ASSERT seen closing/opening multiple inspectors
397         https://bugs.webkit.org/show_bug.cgi?id=139783
398
399         Reviewed by Timothy Hatcher.
400
401         * inspector/InspectorDOMAgent.cpp:
402         (WebCore::InspectorDOMAgent::nodeForObjectId):
403
404 2014-12-18  Anders Carlsson  <andersca@apple.com>
405
406         Add a MachSendRight class to WebCore and use it in IOSurface
407         https://bugs.webkit.org/show_bug.cgi?id=139787
408
409         Reviewed by Tim Horton.
410
411         * WebCore.exp.in:
412         * WebCore.xcodeproj/project.pbxproj:
413         * platform/cocoa/MachSendRight.cpp: Added.
414         (WebCore::retainSendRight):
415         (WebCore::releaseSendRight):
416         (WebCore::MachSendRight::adopt):
417         (WebCore::MachSendRight::create):
418         (WebCore::MachSendRight::MachSendRight):
419         (WebCore::MachSendRight::~MachSendRight):
420         (WebCore::MachSendRight::operator=):
421         (WebCore::MachSendRight::leakSendRight):
422         * platform/cocoa/MachSendRight.h: Added.
423         * platform/graphics/cocoa/IOSurface.h:
424         * platform/graphics/cocoa/IOSurface.mm:
425         (IOSurface::createSendRight):
426         (IOSurface::createMachPort): Deleted.
427
428 2014-12-18  Andreas Kling  <akling@apple.com>
429
430         Ref-ify DOMSettableTokenList.
431         <https://webkit.org/b/139785>
432
433         Reviewed by Chris Dumez.
434
435         Make DOMSettableTokenList::create() return a Ref, and have its two client
436         elements store it in a Ref instead of a RefPtr (and fix their getter API
437         to return references.)
438
439         * html/DOMSettableTokenList.cpp:
440         (WebCore::DOMSettableTokenList::create): Deleted.
441         * html/DOMSettableTokenList.h:
442         * html/HTMLLinkElement.cpp:
443         (WebCore::HTMLLinkElement::sizes): Deleted.
444         * html/HTMLLinkElement.h:
445         * html/HTMLOutputElement.cpp:
446         (WebCore::HTMLOutputElement::htmlFor): Deleted.
447         * html/HTMLOutputElement.h:
448
449 2014-12-18  Andreas Kling  <akling@apple.com>
450
451         Ref-ify ClientRectList.
452         <https://webkit.org/b/139780>
453
454         Reviewed by Anders Carlsson.
455
456         Make the ClientRectList::create() helpers return Ref, along with a bunch
457         of other functions that always return non-null ClientRectLists.
458
459         Also make ClientRectList store a Vector<Ref<ClientRect>> internally since
460         entries in the Vector are never null.
461
462         * dom/ClientRectList.cpp:
463         (WebCore::ClientRectList::item):
464         * dom/ClientRectList.h:
465         (WebCore::ClientRectList::create):
466         * dom/Element.cpp:
467         (WebCore::Element::getClientRects):
468         * dom/Element.h:
469         * dom/Range.cpp:
470         (WebCore::Range::getClientRects):
471         * dom/Range.h:
472         * page/Page.cpp:
473         (WebCore::Page::nonFastScrollableRects):
474         * page/Page.h:
475         * testing/Internals.cpp:
476         (WebCore::Internals::inspectorHighlightRects):
477         (WebCore::Internals::nonFastScrollableRects):
478         * testing/Internals.h:
479
480 2014-12-18  Andreas Kling  <akling@apple.com>
481
482         Ref-ify ClientRect.
483         <https://webkit.org/b/139777>
484
485         Reviewed by Anders Carlsson.
486
487         Make the ClientRect::create() helpers return Ref, along with a bunch
488         of other functions that always return non-null ClientRects.
489
490         * dom/ClientRect.h:
491         (WebCore::ClientRect::create):
492         * dom/Element.cpp:
493         (WebCore::Element::getBoundingClientRect):
494         * dom/Element.h:
495         * dom/Range.cpp:
496         (WebCore::Range::getBoundingClientRect):
497         * dom/Range.h:
498         * html/track/VTTRegion.cpp:
499         (WebCore::VTTRegion::displayLastTextTrackCueBox):
500         * testing/Internals.cpp:
501         (WebCore::Internals::absoluteCaretBounds):
502         (WebCore::Internals::boundingBox):
503         (WebCore::Internals::selectionBounds):
504         * testing/Internals.h:
505
506 2014-12-18  Chris Dumez  <cdumez@apple.com>
507
508         [iOS] Log navigation types using FeatureCounter API
509         https://bugs.webkit.org/show_bug.cgi?id=139753
510
511         Reviewed by Darin Adler.
512
513         Log navigation types using FeatureCounter API.
514
515         No new tests, no behavior change other than additional feature
516         counting.
517
518         * loader/FrameLoader.cpp:
519         (WebCore::logNavigationWithFeatureCounter):
520         (WebCore::FrameLoader::loadWithDocumentLoader):
521         * platform/FeatureCounterKeys.h:
522
523 2014-12-18  Chris Dumez  <cdumez@apple.com>
524
525         Move 'font-weight' CSS property to the new StyleBuilder
526         https://bugs.webkit.org/show_bug.cgi?id=139765
527
528         Reviewed by Antti Koivisto.
529
530         Move 'font-weight' CSS property to the new StyleBuilder by using
531         custom code.
532
533         No new tests, no behavior change.
534
535         * css/CSSPropertyNames.in:
536         * css/DeprecatedStyleBuilder.cpp:
537         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
538         (WebCore::ApplyPropertyFontWeight::applyValue): Deleted.
539         (WebCore::ApplyPropertyFontWeight::createHandler): Deleted.
540         * css/StyleBuilderCustom.h:
541         (WebCore::StyleBuilderCustom::applyInitialFontWeight):
542         (WebCore::StyleBuilderCustom::applyInheritFontWeight):
543         (WebCore::StyleBuilderCustom::applyValueFontWeight):
544
545 2014-12-18  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
546
547         Internals methods return 0 instead of false when they fail
548         https://bugs.webkit.org/show_bug.cgi?id=139766
549
550         Reviewed by Darin Adler.
551
552         Some Internals method explicitly return 0 although
553         they expect boolean value.
554
555         No new tests, no behavior change.
556
557         * testing/Internals.cpp:
558         (WebCore::Internals::hasSpellingMarker):
559         (WebCore::Internals::hasAutocorrectedMarker):
560         (WebCore::Internals::isOverwriteModeEnabled):
561         (WebCore::Internals::hasGrammarMarker):
562         Return false instead of 0.
563
564 2014-12-18  Chris Dumez  <cdumez@apple.com>
565
566         [iOS] Log why cached resources are being revalidated using FeatureCounter API
567         https://bugs.webkit.org/show_bug.cgi?id=139759
568         <rdar://problem/19288177>
569
570         Reviewed by Antti Koivisto.
571
572         Log why cached resources are being revalidated using FeatureCounter API.
573         Also log if revalidation is successful or not.
574
575         No new tests, no behavior change.
576
577         * loader/SubresourceLoader.cpp:
578         (WebCore::SubresourceLoader::willSendRequest):
579         (WebCore::SubresourceLoader::didReceiveResponse):
580         * loader/cache/CachedImage.cpp:
581         (WebCore::CachedImage::mustRevalidateDueToCacheHeaders):
582         * loader/cache/CachedImage.h:
583         * loader/cache/CachedResource.cpp:
584         (WebCore::CachedResource::failBeforeStarting):
585         (WebCore::CachedResource::mustRevalidateDueToCacheHeaders):
586         * loader/cache/CachedResource.h:
587         (WebCore::CachedResource::loader):
588         * loader/cache/CachedResourceLoader.cpp:
589         (WebCore::CachedResourceLoader::determineRevalidationPolicy):
590         * platform/FeatureCounterKeys.h:
591
592 2014-12-18  Antti Koivisto  <antti@apple.com>
593
594         Remove alwaysUseBaselineOfPrimaryFont setting
595         https://bugs.webkit.org/show_bug.cgi?id=139770
596
597         Reviewed by Anders Carlsson.
598
599         "FIXME: This is unneeded and should be removed."
600
601         This iOS-only setting has no clients anymore.
602
603         * page/Settings.in:
604         * rendering/RootInlineBox.cpp:
605         (WebCore::RootInlineBox::ascentAndDescentForBox):
606
607 2014-12-18  Radu Stavila  <stavila@adobe.com>
608
609         [SVG Masking] Enable the use of <mask> elements for -webkit-mask-image
610         https://bugs.webkit.org/show_bug.cgi?id=139294
611
612         Reviewed by Simon Fraser.
613
614         This patch links together all parts required for the functionality which improves 
615         the -webkit-mask-image property by allowing it to reference a <mask> element defined 
616         in an inline or external SVG document.
617         Support for this new functionality has been added in a previous patch, under issue
618         https://bugs.webkit.org/show_bug.cgi?id=139092. A more detailed description of how
619         the new functionality works can be found in the ChangeLog for that commit.
620         The containsSVGDocument in ScrollView has been removed because it was added in the
621         previous patch but is no longer required.
622
623         Tests: css3/masking/mask-base64.html
624                css3/masking/mask-multiple-values.html
625                css3/masking/mask-svg-clipped-fragmentId.html
626                css3/masking/mask-svg-fragmentId.html
627                css3/masking/mask-svg-inline-fragmentId.html
628                css3/masking/mask-svg-inline-invalid-fragmentId.html
629                css3/masking/mask-svg-invalid-fragmentId.html
630                css3/masking/mask-svg-no-fragmentId-tiled.html
631                css3/masking/mask-svg-no-fragmentId.html
632                css3/masking/mask-svg-script-entire-svg-to-mask.html
633                css3/masking/mask-svg-script-mask-to-entire-svg.html
634                css3/masking/mask-svg-script-mask-to-none.html
635                css3/masking/mask-svg-script-mask-to-png.html
636                css3/masking/mask-svg-script-none-to-mask.html
637                css3/masking/mask-svg-script-none-to-png.html
638                css3/masking/mask-svg-script-png-to-mask.html
639                css3/masking/mask-svg-script-png-to-none.html
640
641         * css/CSSComputedStyleDeclaration.cpp:
642         (WebCore::ComputedStyleExtractor::propertyValue):
643         * css/CSSParser.cpp:
644         (WebCore::CSSParser::parseFillShorthand):
645         (WebCore::CSSParser::parseFillProperty):
646         (WebCore::CSSParser::parseMaskImage):
647         * css/CSSParser.h:
648         * css/CSSValue.h:
649         * css/DeprecatedStyleBuilder.cpp:
650         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
651         * css/StyleResolver.cpp:
652         (WebCore::StyleResolver::adjustStyleForMaskImages):
653         (WebCore::StyleResolver::applyMatchedProperties):
654         (WebCore::StyleResolver::applyProperty):
655         (WebCore::StyleResolver::loadPendingSVGDocuments):
656         (WebCore::StyleResolver::createMaskImageOperations):
657         (WebCore::StyleResolver::loadPendingImages):
658         * css/StyleResolver.h:
659         * page/FrameView.cpp:
660         (WebCore::FrameView::containsSVGDocument): Deleted.
661         * page/FrameView.h:
662         * page/animation/CSSPropertyAnimation.cpp:
663         (WebCore::blendFunc):
664         (WebCore::MaskImagePropertyWrapper::MaskImagePropertyWrapper):
665         (WebCore::MaskImagePropertyWrapper::equals):
666         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
667         * platform/ScrollView.h:
668         (WebCore::ScrollView::containsSVGDocument): Deleted.
669         * platform/graphics/MaskImageOperation.cpp:
670         (WebCore::MaskImageOperation::~MaskImageOperation):
671         (WebCore::MaskImageOperation::operator==):
672         * platform/graphics/MaskImageOperation.h:
673         * rendering/RenderBox.cpp:
674         (WebCore::RenderBox::maskClipRect):
675         * rendering/RenderBox.h:
676         * rendering/RenderBoxModelObject.cpp:
677         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
678         (WebCore::RenderBoxModelObject::calculateFillTileSize):
679         (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry):
680         * rendering/RenderElement.cpp:
681         (WebCore::RenderElement::~RenderElement):
682         (WebCore::RenderElement::updateFillImages):
683         * rendering/RenderLayer.cpp:
684         (WebCore::RenderLayer::calculateClipRects):
685         * rendering/RenderLayer.h:
686         * rendering/RenderLayerMaskImageInfo.cpp:
687         (WebCore::RenderLayer::MaskImageInfo::~MaskImageInfo):
688         (WebCore::RenderLayer::MaskImageInfo::updateMaskImageClients):
689         (WebCore::RenderLayer::MaskImageInfo::removeMaskImageClients):
690         * rendering/RenderLayerMaskImageInfo.h:
691         * rendering/style/FillLayer.cpp:
692         (WebCore::FillLayer::hasImage):
693         * rendering/style/FillLayer.h:
694         (WebCore::FillLayer::image):
695         (WebCore::FillLayer::imageOrMaskImage): Deleted.
696         * rendering/style/RenderStyle.cpp:
697         (WebCore::RenderStyle::setMaskImage):
698         * rendering/style/RenderStyle.h:
699
700 2014-12-18  Antti Koivisto  <antti@apple.com>
701
702         Stop returning GlyphPage from various Font functions
703         https://bugs.webkit.org/show_bug.cgi?id=139627
704
705         Reviewed by Darin Adler.
706
707         Make all
708
709             std::pair<GlyphData, GlyphPage*> glyphDataAndPage*(...)
710
711         style functions to just return GlyphData only. The GlyphPage value was only used for an obscure SVG fallback case.
712
713         * platform/graphics/Font.h:
714         (WebCore::Font::glyphDataForCharacter):
715         (WebCore::Font::glyphDataAndPageForCharacter): Deleted.
716         * platform/graphics/FontGlyphs.cpp:
717         (WebCore::glyphDataForCJKCharacterWithoutSyntheticItalic):
718         (WebCore::glyphDataForNonCJKCharacterWithGlyphOrientation):
719         (WebCore::FontGlyphs::glyphDataForSystemFallback):
720         (WebCore::FontGlyphs::glyphDataForVariant):
721         (WebCore::FontGlyphs::glyphDataForCharacter):
722         (WebCore::glyphDataAndPageForCJKCharacterWithoutSyntheticItalic): Deleted.
723         (WebCore::glyphDataAndPageForNonCJKCharacterWithGlyphOrientation): Deleted.
724         (WebCore::FontGlyphs::glyphDataAndPageForSystemFallback): Deleted.
725         (WebCore::FontGlyphs::glyphDataAndPageForVariant): Deleted.
726         (WebCore::FontGlyphs::glyphDataAndPageForCharacter): Deleted.
727         * platform/graphics/FontGlyphs.h:
728         (WebCore::FontGlyphs::GlyphPagesStateSaver::GlyphPagesStateSaver): Deleted.
729         (WebCore::FontGlyphs::GlyphPagesStateSaver::~GlyphPagesStateSaver): Deleted.
730
731             No longer needed.
732
733         * rendering/svg/SVGTextRunRenderingContext.cpp:
734         (WebCore::SVGTextRunRenderingContext::glyphDataForCharacter):
735
736             Simplify by not trying to resolve fallbacks in case context sensitive (based on lang attribute etc)
737             glyph selection fails. Instead just fall back to a default font. This behavior is not specified
738             anywhere as far as I can see. (normal non-context sensitive fallbacks will still work fine).
739             This removes the need to hackishly mutate glyph pages.
740
741             Also fix a bug where we didn't use the specified missing glyph when context sensitive selection failed.
742
743 2014-12-18  Chris Dumez  <cdumez@apple.com>
744
745         Move 'list-style-image' CSS property to the new StyleBuilder
746         https://bugs.webkit.org/show_bug.cgi?id=139763
747
748         Reviewed by Antti Koivisto.
749
750         Move 'list-style-image' CSS property to the new StyleBuilder
751         by reusing an existing Converter helper and renaming it for
752         clarity.
753
754         No new tests, no behavior change.
755
756         * css/CSSPropertyNames.in:
757         * css/DeprecatedStyleBuilder.cpp:
758         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
759         (WebCore::ApplyPropertyStyleImage::applyValue): Deleted.
760         (WebCore::ApplyPropertyStyleImage::createHandler): Deleted.
761         * css/StyleBuilderConverter.h:
762         (WebCore::StyleBuilderConverter::convertStyleImage):
763         (WebCore::StyleBuilderConverter::convertBorderImageSource): Deleted.
764
765 2014-12-17  Csaba Osztrogonác  <ossy@webkit.org>
766
767         URTBF after r177452.
768         https://bugs.webkit.org/show_bug.cgi?id=139752
769
770         * CMakeLists.txt:
771
772 2014-12-17  Andreas Kling  <akling@apple.com>
773
774         Ref-ify Range::create().
775         <https://webkit.org/b/139755>
776
777         Reviewed by Anders Carlsson.
778
779         * dom/Document.cpp:
780         (WebCore::acceptsEditingFocus):
781         * dom/Element.cpp:
782         (WebCore::Element::innerText):
783         * dom/Range.cpp:
784         (WebCore::Range::create):
785         (WebCore::Range::cloneRange):
786         (WebCore::rangeOfContents):
787         * dom/Range.h:
788         * editing/AlternativeTextController.cpp:
789         (WebCore::AlternativeTextController::applyAlternativeTextToRange):
790         * editing/CompositeEditCommand.cpp:
791         (WebCore::CompositeEditCommand::replaceTextInNodePreservingMarkers):
792         * editing/VisibleUnits.cpp:
793         (WebCore::charactersAroundPosition):
794         * editing/markup.cpp:
795         (WebCore::StyledMarkupAccumulator::renderedText):
796         * page/FocusController.cpp:
797         (WebCore::relinquishesEditingFocus):
798
799 2014-12-17  Dan Bernstein  <mitz@apple.com>
800
801         <rdar://problem/19282508> WebKitLegacy is unusable due to bad dylib identifier
802         https://bugs.webkit.org/show_bug.cgi?id=139760
803
804         Reviewed by Anders Carlsson.
805
806         * Configurations/WebCore.xcconfig:
807
808 2014-12-17  Anders Carlsson  <andersca@apple.com>
809
810         Get rid of FrameLoader::defaultObjectContentType
811         https://bugs.webkit.org/show_bug.cgi?id=139758
812
813         Reviewed by Geoffrey Garen.
814
815         Move the FrameLoader::defaultObjectContentType implementation to its only caller in WebKit/win.
816
817         * loader/FrameLoader.cpp:
818         (WebCore::FrameLoader::defaultObjectContentType): Deleted.
819         * loader/FrameLoader.h:
820
821 2014-12-17  peavo@outlook.com  <peavo@outlook.com>
822
823         [Curl] Compile error, setWasCached method has been removed.
824         https://bugs.webkit.org/show_bug.cgi?id=139737
825
826         Reviewed by Alex Christensen.
827
828         The ResourceResponseBase::setWasCached() method has been replaced
829         with ResourceResponseBase::setSource().
830
831         * platform/network/curl/CurlCacheEntry.cpp:
832         (WebCore::CurlCacheEntry::setResponseFromCachedHeaders):
833
834 2014-12-17  Chris Dumez  <cdumez@apple.com>
835
836         [iOS] Make it possible to toggle FeatureCounter support at runtime
837         https://bugs.webkit.org/show_bug.cgi?id=139688
838         <rdar://problem/19266254>
839
840         Reviewed by Andreas Kling.
841
842         Make it possible to toggle FeatureCounter support at runtime by adding
843         a setting (disabled by default) and moving the API to a new
844         FeatureCounter class under WebCore/plattorm which only logs if the
845         setting is enabled. For privacy reasons, FeatureCounter logging is also
846         disabled for private / ephemeral sessions.
847
848         No new tests, no behavior change.
849
850         * CMakeLists.txt:
851         * Configurations/WebCore.xcconfig:
852         * WebCore.vcxproj/WebCore.vcxproj:
853         * WebCore.vcxproj/WebCore.vcxproj.filters:
854         * WebCore.xcodeproj/project.pbxproj:
855         * history/PageCache.cpp:
856         (WebCore::logCanCacheFrameDecision):
857         (WebCore::logCanCachePageDecision):
858         * page/Settings.in:
859         * platform/FeatureCounter.cpp: Renamed from Source/WTF/wtf/FeatureCounter.cpp.
860         (WebCore::FeatureCounter::shouldUseForPage):
861         (WebCore::FeatureCounter::incrementKey):
862         (WebCore::FeatureCounter::setKey):
863         * platform/FeatureCounter.h: Renamed from Source/WTF/wtf/FeatureCounter.h.
864         * platform/FeatureCounterKeys.h:
865         * platform/ios/FeatureCounter.mm: Renamed from Source/WTF/wtf/ios/FeatureCounter.mm.
866         (WebCore::FeatureCounter::incrementKey):
867         (WebCore::FeatureCounter::setKey):
868
869 2014-12-17  Anders Carlsson  <andersca@apple.com>
870
871         Get rid of PluginPackageNone.cpp
872         https://bugs.webkit.org/show_bug.cgi?id=139735
873
874         Reviewed by Andreas Kling.
875
876         * CMakeLists.txt:
877         * PlatformEfl.cmake:
878         * PlatformGTK.cmake:
879         * PlatformWin.cmake:
880         * plugins/PluginPackageNone.cpp: Removed.
881
882 2014-12-17  Andreas Kling  <akling@apple.com>
883
884         Purge PassRefPtr from Frame.
885         <https://webkit.org/b/139731>
886
887         Reviewed by Anders Carlsson.
888
889         Remove all use of PassRefPtr from the Frame class, instead using
890         Ref or RefPtr as appropriate.
891
892         * WebCore.exp.in:
893         * loader/DocumentWriter.cpp:
894         (WebCore::DocumentWriter::begin):
895         * page/Frame.cpp:
896         (WebCore::Frame::create):
897         (WebCore::Frame::setView):
898         (WebCore::Frame::setDocument):
899         (WebCore::Frame::rangeForPoint):
900         (WebCore::Frame::createView):
901         * page/Frame.h:
902         * xml/XSLTProcessor.cpp:
903         (WebCore::XSLTProcessor::createDocumentFromSource):
904
905 2014-12-17  Myles C. Maxfield  <mmaxfield@apple.com>
906
907         Test fix after r177444.
908
909         Unreviewed.
910
911         * accessibility/AccessibilitySlider.cpp:
912         (WebCore::AccessibilitySliderThumb::elementRect):
913
914 2014-12-16  Myles C. Maxfield  <mmaxfield@apple.com>
915
916         Addressing more post-review comments in r177035
917
918         * accessibility/AccessibilitySlider.cpp:
919         (WebCore::AccessibilitySliderThumb::elementRect):
920         * html/HTMLInputElement.cpp:
921         (WebCore::HTMLInputElement::setupDateTimeChooserParameters):
922
923 2014-12-17  Zan Dobersek  <zdobersek@igalia.com>
924
925         [TexMap] Sprinkle range-based for-loops where still possible
926         https://bugs.webkit.org/show_bug.cgi?id=138752
927
928         Reviewed by Chris Dumez.
929
930         Apply range-based for-loops where possible in the TextureMapper,
931         TextureMapperGL and TextureMapperTiledBackingStore classes.
932
933         Also prettify the loop in SharedGLData destructor and return
934         nullptr instead of explicitly constructing the empty PassRefPtr
935         object in TextureMapperTiledBackingStore::texture().
936
937         * platform/graphics/texmap/TextureMapper.cpp:
938         (WebCore::BitmapTexturePool::acquireTexture):
939         * platform/graphics/texmap/TextureMapperGL.cpp:
940         (WebCore::TextureMapperGLData::SharedGLData::~SharedGLData):
941         (WebCore::TextureMapperGLData::~TextureMapperGLData):
942         * platform/graphics/texmap/TextureMapperTiledBackingStore.cpp:
943         (WebCore::TextureMapperTiledBackingStore::paintToTextureMapper):
944         (WebCore::TextureMapperTiledBackingStore::drawBorder):
945         (WebCore::TextureMapperTiledBackingStore::drawRepaintCounter):
946         (WebCore::TextureMapperTiledBackingStore::createOrDestroyTilesIfNeeded):
947         (WebCore::TextureMapperTiledBackingStore::updateContents):
948         (WebCore::TextureMapperTiledBackingStore::texture):
949
950 2014-12-17  Radu Stavila  <stavila@adobe.com>
951
952         The SVGDocument of an SVGImage should not perform any additional actions when the SVGImage is being destroyed
953         https://bugs.webkit.org/show_bug.cgi?id=139644
954
955         Reviewed by Antti Koivisto.
956
957         When an SVGImage is destroyed, having its SVGDocument perform style recalc and dispatching events is not only
958         useless but can also cause problems, such as re-entrancy in StyleResolver::loadPendingResources.
959
960         No new tests required, existing tests cover this change.
961
962         * dom/Document.cpp:
963         (WebCore::Document::Document):
964         * dom/Document.h:
965         (WebCore::Document::isBeingDestroyed):
966         (WebCore::Document::setIsBeingDestroyed):
967         * loader/FrameLoader.cpp:
968         (WebCore::FrameLoader::closeURL):
969         * svg/graphics/SVGImage.cpp:
970         (WebCore::SVGImage::~SVGImage):
971
972 2014-12-17  Chris Dumez  <cdumez@apple.com>
973
974         Drop useless 'clipToContents' argument for windowClipRect()
975         https://bugs.webkit.org/show_bug.cgi?id=139722
976
977         Reviewed by Darin Adler.
978
979         Drop useless 'clipToContents' argument for windowClipRect(). This
980         argument is never used.
981
982         No new tests, no behavior change.
983
984         * page/FrameView.cpp:
985         (WebCore::FrameView::windowClipRect):
986         * page/FrameView.h:
987         * platform/ScrollView.h:
988
989 2014-12-16  Shivakumar JM  <shiva.jm@samsung.com>
990
991         text node should not be created, On setting document.title to the empty string.
992         https://bugs.webkit.org/show_bug.cgi?id=139121
993
994         Reviewed by Darin Adler.
995
996         Do not create text node, On setting document.title to the empty string as in spec.
997         I have confirmed this matches the behavior of Firefox and Chrome.
998
999         Test: fast/dom/Document/document-set-title-no-child.html
1000
1001         * html/HTMLTitleElement.cpp:
1002         (WebCore::HTMLTitleElement::setText):
1003
1004 2014-12-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1005
1006         Move WebCore/platform/graphics/surfaces to std::unique_ptr
1007         https://bugs.webkit.org/show_bug.cgi?id=139641
1008
1009         Reviewed by Andreas Kling.
1010
1011         Replace OwnPtr|PassOwnPtr with std::make_unique<>|std::unique_ptr<>.
1012
1013         * platform/graphics/GLContext.cpp:
1014         (WebCore::GLContext::sharingContext):
1015         (WebCore::GLContext::createContextForWindow):
1016         (WebCore::GLContext::createOffscreenContext):
1017         * platform/graphics/GLContext.h:
1018         * platform/graphics/GraphicsContext3DPrivate.cpp:
1019         (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
1020         * platform/graphics/GraphicsContext3DPrivate.h:
1021         * platform/graphics/egl/GLContextEGL.cpp:
1022         (WebCore::GLContextEGL::createWindowContext):
1023         (WebCore::GLContextEGL::createPbufferContext):
1024         (WebCore::GLContextEGL::createPixmapContext):
1025         (WebCore::GLContextEGL::createContext):
1026         * platform/graphics/egl/GLContextEGL.h:
1027         * platform/graphics/glx/GLContextGLX.cpp:
1028         (WebCore::GLContextGLX::createWindowContext):
1029         (WebCore::GLContextGLX::createPbufferContext):
1030         (WebCore::GLContextGLX::createPixmapContext):
1031         (WebCore::GLContextGLX::createContext):
1032         * platform/graphics/glx/GLContextGLX.h:
1033         * platform/graphics/surfaces/GLTransportSurface.cpp:
1034         (WebCore::GLTransportSurface::createTransportSurface):
1035         (WebCore::GLTransportSurfaceClient::createTransportSurfaceClient):
1036         * platform/graphics/surfaces/GLTransportSurface.h:
1037         * platform/graphics/surfaces/GraphicsSurface.h:
1038         * platform/graphics/surfaces/GraphicsSurfaceToken.h:
1039         * platform/graphics/surfaces/efl/GraphicsSurfaceCommon.cpp:
1040         * platform/graphics/surfaces/egl/EGLSurface.cpp:
1041         (WebCore::EGLTransportSurface::createTransportSurface):
1042         (WebCore::EGLTransportSurface::createTransportSurfaceClient):
1043         (WebCore::EGLTransportSurface::EGLTransportSurface):
1044         * platform/graphics/surfaces/egl/EGLSurface.h:
1045         * platform/graphics/surfaces/egl/EGLXSurface.cpp:
1046         (WebCore::EGLXTransportSurfaceClient::EGLXTransportSurfaceClient):
1047         * platform/graphics/surfaces/egl/EGLXSurface.h:
1048         * platform/graphics/surfaces/glx/GLXSurface.cpp:
1049         (WebCore::GLXTransportSurface::GLXTransportSurface):
1050         (WebCore::GLXOffScreenSurface::initialize):
1051         * platform/graphics/surfaces/glx/GLXSurface.h:
1052
1053 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
1054
1055         Implement and adopt two new TextIndicator presentation animations
1056         https://bugs.webkit.org/show_bug.cgi?id=139715
1057         <rdar://problem/19237945>
1058
1059         Reviewed by Anders Carlsson.
1060
1061         * WebCore.exp.in:
1062         Adjust one symbol and export another.
1063
1064         * page/TextIndicator.cpp:
1065         (WebCore::TextIndicator::createWithSelectionInFrame):
1066         Take a blue-highlight snapshot if we're doing a crossfade without a bounce.
1067
1068         * page/TextIndicator.h:
1069         (WebCore::TextIndicator::presentationTransition):
1070         Add FadeIn and Crossfade transition types.
1071
1072         * page/mac/TextIndicatorWindow.h:
1073         * page/mac/TextIndicatorWindow.mm:
1074         (-[WebTextIndicatorView initWithFrame:textIndicator:margin:]):
1075         (createBounceAnimation):
1076         (createContentCrossfadeAnimation):
1077         (createShadowFadeAnimation):
1078         (createFadeInAnimation):
1079         (-[WebTextIndicatorView _textIndicatorWantsBounce]):
1080         (-[WebTextIndicatorView _textIndicatorWantsContentCrossfade]):
1081         (-[WebTextIndicatorView _textIndicatorWantsFadeIn]):
1082         Factor out the animation construction.
1083
1084         (-[WebTextIndicatorView _animationDuration]):
1085         Factor out the duration computation.
1086
1087         (-[WebTextIndicatorView present]):
1088         (-[WebTextIndicatorView setAnimationProgress:]):
1089         Implement FadeIn and Crossfade transitions.
1090         They can be driven externally and then continue from where they
1091         left off when the progress reaches 100%.
1092         FadeIn changes the opacity of the whole bubble, Crossfade
1093         crossfades the content (from blue to yellow).
1094
1095         (WebCore::TextIndicatorWindow::TextIndicatorWindow):
1096         (WebCore::TextIndicatorWindow::~TextIndicatorWindow):
1097         Don't immediately destroy the window if it is crossfades or fades in.
1098         Fade it out, instead.
1099
1100         (WebCore::TextIndicatorWindow::setAnimationProgress):
1101         Drive the paused animation manually. If progress hits 100%,
1102         start running it automatically from where it last left off.
1103
1104         (WebCore::TextIndicatorWindow::setTextIndicator):
1105         (WebCore::TextIndicatorWindow::startFadeOut):
1106         (-[WebTextIndicatorView presentWithCompletionHandler:]): Deleted.
1107         (WebCore::TextIndicatorWindow::startFadeOutTimerFired): Deleted.
1108         Remove the completion block from -present.
1109
1110         * platform/spi/mac/NSImmediateActionGestureRecognizerSPI.h:
1111         Add some SPI.
1112
1113 2014-12-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1114
1115         Move WebCore/platform/image-decoders to std::unique_ptr<>
1116         https://bugs.webkit.org/show_bug.cgi?id=139668
1117
1118         Reviewed by Andreas Kling.
1119
1120         As a step to use std::unique_ptr<>, this patch replaces OwnPtr|PassOwnPtr with
1121         std::unique_ptr<> | std::make_unique<>.
1122
1123         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
1124         (WebCore::BMPImageDecoder::setFailed):
1125         (WebCore::BMPImageDecoder::decode):
1126         (WebCore::BMPImageDecoder::decodeHelper):
1127         * platform/image-decoders/bmp/BMPImageDecoder.h:
1128         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1129         (WebCore::GIFImageDecoder::setFailed):
1130         (WebCore::GIFImageDecoder::gifComplete):
1131         (WebCore::GIFImageDecoder::decode):
1132         * platform/image-decoders/gif/GIFImageDecoder.h:
1133         * platform/image-decoders/gif/GIFImageReader.cpp:
1134         (GIFFrameContext::decode):
1135         (GIFImageReader::addFrameIfNecessary):
1136         * platform/image-decoders/gif/GIFImageReader.h:
1137         * platform/image-decoders/ico/ICOImageDecoder.cpp:
1138         (WebCore::ICOImageDecoder::decode):
1139         (WebCore::ICOImageDecoder::decodeAtIndex):
1140         * platform/image-decoders/ico/ICOImageDecoder.h:
1141         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1142         (WebCore::JPEGImageDecoder::setFailed):
1143         (WebCore::JPEGImageDecoder::decode):
1144         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
1145         * platform/image-decoders/png/PNGImageDecoder.cpp:
1146         (WebCore::PNGImageDecoder::setFailed):
1147         (WebCore::PNGImageDecoder::decode):
1148         * platform/image-decoders/png/PNGImageDecoder.h:
1149
1150 2014-12-16  Andreas Kling  <akling@apple.com>
1151
1152         Use Ref for SecurityOrigin.
1153         <https://webkit.org/b/139710>
1154
1155         Reviewed by Anders Carlsson.
1156
1157         Make SecurityOrigin::create*() return Ref<SecurityOrigin>.
1158
1159         * html/HTMLAnchorElement.cpp:
1160         (WebCore::HTMLAnchorElement::origin):
1161         * loader/DocumentLoadTiming.cpp:
1162         (WebCore::DocumentLoadTiming::addRedirect):
1163         * loader/DocumentLoader.cpp:
1164         (WebCore::DocumentLoader::willSendRequest):
1165         * loader/FrameLoader.cpp:
1166         (WebCore::FrameLoader::commitProvisionalLoad):
1167         * loader/PingLoader.cpp:
1168         (WebCore::PingLoader::sendPing):
1169         * loader/appcache/ApplicationCacheHost.cpp:
1170         (WebCore::ApplicationCacheHost::isApplicationCacheBlockedForRequest):
1171         * loader/appcache/ApplicationCacheStorage.cpp:
1172         (WebCore::ApplicationCacheStorage::getOriginsWithCache):
1173         * page/ContentSecurityPolicy.cpp:
1174         (WebCore::stripURLForUseInReport):
1175         * page/DOMWindow.cpp:
1176         (WebCore::DOMWindow::crossDomainAccessErrorMessage):
1177         * page/SecurityOrigin.cpp:
1178         (WebCore::getCachedOrigin):
1179         (WebCore::SecurityOrigin::create):
1180         (WebCore::SecurityOrigin::createUnique):
1181         (WebCore::SecurityOrigin::isolatedCopy):
1182         (WebCore::SecurityOrigin::canRequest):
1183         (WebCore::SecurityOrigin::createFromString):
1184         (WebCore::SecurityOrigin::maybeCreateFromDatabaseIdentifier):
1185         (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
1186         * page/SecurityOrigin.h:
1187         * page/SecurityPolicy.cpp:
1188         (WebCore::SecurityPolicy::isAccessToURLWhiteListed):
1189         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1190         (WebCore::MediaPlayerPrivateAVFoundationObjC::hasSingleSecurityOrigin):
1191         * storage/StorageTracker.cpp:
1192         (WebCore::StorageTracker::deleteOriginWithIdentifier):
1193         * workers/DefaultSharedWorkerRepository.cpp:
1194         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
1195         * workers/WorkerThread.cpp:
1196         (WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
1197
1198 2014-12-16  Chris Dumez  <cdumez@apple.com>
1199
1200         Move 'cursor' CSS property to the new StyleBuilder
1201         https://bugs.webkit.org/show_bug.cgi?id=139660
1202
1203         Reviewed by Benjamin Poulain.
1204
1205         Move 'cursor' CSS property to the new StyleBuilder by using
1206         custom code.
1207
1208         No new tests, no behavior change.
1209
1210         * css/CSSPropertyNames.in:
1211         * css/DeprecatedStyleBuilder.cpp:
1212         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
1213         (WebCore::ApplyPropertyCursor::applyInheritValue): Deleted.
1214         (WebCore::ApplyPropertyCursor::applyInitialValue): Deleted.
1215         (WebCore::ApplyPropertyCursor::applyValue): Deleted.
1216         (WebCore::ApplyPropertyCursor::createHandler): Deleted.
1217         * css/StyleBuilderCustom.h:
1218         (WebCore::StyleBuilderCustom::applyInitialCursor):
1219         (WebCore::StyleBuilderCustom::applyInheritCursor):
1220         (WebCore::StyleBuilderCustom::applyValueCursor):
1221
1222 2014-12-16  Zalan Bujtas  <zalan@apple.com>
1223
1224         Subpixel rendering: Animating HTML elements leaves trails when embedded to a subpxiel positioned iframe.
1225         https://bugs.webkit.org/show_bug.cgi?id=139691
1226         rdar://problem/19078958
1227
1228         Reviewed by Simon Fraser.
1229
1230         This patch ensures that repaint rect and actual paint coordinate calculations are in sync.
1231
1232         RenderWidget painting still snaps final coordinates to integral positions. We need to
1233         mimic the same snapping behaviour when the repaint rects are being calculated so that
1234         they are in sync with the final repaint rects. This is a workaround until after
1235         widgets get pushed to device pixel positions.
1236
1237         Test: fast/repaint/hidpi-content-inside-iframe-leaves-trails.html
1238
1239         * rendering/RenderBox.cpp:
1240         (WebCore::RenderBox::computeRectForRepaint):
1241         * rendering/RenderView.cpp:
1242         (WebCore::RenderView::repaintViewRectangle):
1243         * rendering/RenderWidget.cpp:
1244         (WebCore::RenderWidget::paintContents):
1245
1246 2014-12-16  Beth Dakin  <bdakin@apple.com>
1247
1248         REGRESSION: Preview popovers obscure the link, look wrong
1249         https://bugs.webkit.org/show_bug.cgi?id=139711
1250         -and corresponding-
1251         rdar://problem/19271854
1252
1253         Reviewed by Tim Horton.
1254
1255         New SPI.
1256         * WebCore.xcodeproj/project.pbxproj:
1257         * platform/spi/mac/NSPopoverSPI.h: Added.
1258
1259 2014-12-16  Myles C. Maxfield  <mmaxfield@apple.com>
1260
1261         [iOS] Cherokee language is drawn as boxes
1262         https://bugs.webkit.org/show_bug.cgi?id=139706
1263
1264         Reviewed by Simon Fraser.
1265
1266         Test: platform/ios-simulator/fast/text/cherokee.html
1267
1268         * platform/graphics/ios/FontCacheIOS.mm:
1269         (WebCore::languageSpecificFallbackFont):
1270
1271 2014-12-16  Enrica Casucci  <enrica@apple.com>
1272
1273         Fix iOS builders for 8.0
1274         https://bugs.webkit.org/show_bug.cgi?id=139495
1275
1276         Reviewed by Jer Noble
1277
1278         * WebCore.exp.in:
1279         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
1280         (-[WebVideoFullscreenController enterFullscreen:mode:]):
1281         (-[WebVideoFullscreenController requestHideAndExitFullscreen]):
1282         (-[WebVideoFullscreenController enterFullscreen:]): Deleted.
1283         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
1284
1285 2014-12-16  Myles C. Maxfield  <mmaxfield@apple.com>
1286
1287         Ruby overhang uses ints instead of floats
1288         https://bugs.webkit.org/show_bug.cgi?id=139624
1289
1290         Reviewed by Dave Hyatt.
1291
1292         Simply change the type.
1293
1294         Updated existing tests.
1295
1296         * rendering/RenderBlockLineLayout.cpp:
1297         (WebCore::RenderBlockFlow::setMarginsForRubyRun):
1298         * rendering/RenderRubyRun.cpp:
1299         (WebCore::RenderRubyRun::getOverhang):
1300         * rendering/RenderRubyRun.h:
1301         * rendering/line/LineWidth.cpp:
1302         (WebCore::LineWidth::applyOverhang):
1303
1304 2014-12-16  Gavin Barraclough  <barraclough@apple.com>
1305
1306         Move Mac process suppression from WebCore to WebKit2
1307         https://bugs.webkit.org/show_bug.cgi?id=139705
1308
1309         Reviewed by Geoff Garen.
1310
1311         Currently PageThrottler constructs the PageActivityState, holds a copy of the ViewState,
1312         and an optional UserActivity.
1313
1314         Instead, still construct the PageActivityState but just pass this out via the Page to WebPage.
1315         Logic From PageThrottler::updateUserActivity merged into WebPage::updateUserActivity.
1316
1317         * WebCore.exp.in:
1318             - removed createUserActivity.
1319         * page/ChromeClient.h:
1320         (WebCore::ChromeClient::setPageActivityState):
1321             - added to propagate PageActivityState to WebPage.
1322         * page/Page.cpp:
1323         (WebCore::Page::Page):
1324             - PageThrottler constructor now takes a Page&.
1325         (WebCore::Page::setViewState):
1326             - no longer necessary to pass this to PageThrottler.
1327         (WebCore::Page::setPageActivityState):
1328             - added to propagate PageActivityState to WebPage.
1329         (WebCore::Page::enablePageThrottler): Deleted.
1330             - PageThrottler no longer has a UserActivity.
1331         * page/Page.h:
1332         (WebCore::Page::pageThrottler):
1333             - added setPageActivityState, removed enablePageThrottler.
1334         * page/PageThrottler.cpp:
1335         (WebCore::PageThrottler::PageThrottler):
1336             - removed m_viewState, added m_page.
1337         (WebCore::PageThrottler::setActivityFlag):
1338             - propagate PageActivityState via Page to WebPage.
1339         (WebCore::PageThrottler::createUserActivity): Deleted.
1340         (WebCore::PageThrottler::updateUserActivity): Deleted.
1341         (WebCore::PageThrottler::setViewState): Deleted.
1342             - removed; PageThrottler no longer has a PageThrottler or UserActivity.
1343         * page/PageThrottler.h:
1344             - removed createUserActivity, setViewState, m_viewState, m_activity; added m_page.
1345
1346 2014-12-16  Jer Noble  <jer.noble@apple.com>
1347
1348         Unreviewed build fix after r177375; explicitly cast to NSUInteger.
1349
1350         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
1351         (WebVideoFullscreenInterfaceAVKit::setAudioMediaSelectionOptions):
1352         (WebVideoFullscreenInterfaceAVKit::setLegibleMediaSelectionOptions):
1353
1354 2014-12-16  peavo@outlook.com  <peavo@outlook.com>
1355
1356         [Win] Compiling WebCore fails because of invalid project file.
1357         https://bugs.webkit.org/show_bug.cgi?id=139686
1358
1359         Reviewed by Alex Christensen.
1360
1361         A WebCore project file contains illegal characters.
1362
1363         * WebCore.vcxproj/WebCore.vcxproj.filters:
1364
1365 2014-12-16  Gavin Barraclough  <barraclough@apple.com>
1366
1367         Introduce PageActivityState
1368         https://bugs.webkit.org/show_bug.cgi?id=139687
1369
1370         Reviewed by Anders Carlsson.
1371
1372         Add a bitfield to track each of the activities on the page separately.
1373         Split the hysteresis & counters so we can track these separately.
1374
1375         * page/PageThrottler.cpp:
1376         (WebCore::PageThrottler::PageThrottler):
1377             - initialze new hysteresis, counters; closures call setActivityFlag.
1378         (WebCore::PageThrottler::mediaActivityToken):
1379         (WebCore::PageThrottler::pageLoadActivityToken):
1380             - split m_pageActivityCounter -> m_mediaActivityCounter, m_pageLoadActivityCounter.
1381         (WebCore::PageThrottler::updateUserActivity):
1382             - use m_activityState to check for activity.
1383         (WebCore::PageThrottler::setActivityFlag):
1384             - helper to clear/set a bit in m_activityState, and call updateUserActivity as necessary.
1385         * page/PageThrottler.h:
1386         (WebCore::PageThrottler::didReceiveUserInput):
1387         (WebCore::PageThrottler::pluginDidEvaluateWhileAudioIsPlaying):
1388             - split m_hysteresis -> m_userInputHysteresis, m_audiblePluginHysteresis
1389
1390 2014-12-16  Myles C. Maxfield  <litherum@gmail.com>
1391
1392         Ruby does not preserve expansion opportunities from enclosing context
1393         https://bugs.webkit.org/show_bug.cgi?id=139618
1394
1395         Reviewed by David Hyatt.
1396
1397         There is currently no sharing of expansion opportunity information between
1398         ruby bases and the text surrounding the ruby. This patch adds a bit on
1399         RenderText, m_contentIsKnownToFollow, which affects how expansion
1400         opportunities are handled at paint-time, as well as a bit on RenderRubyBase,
1401         m_isAfterExpansion, which affects how expansions are calculated when laying
1402         out a line. This patch also adds a field to RenderRubyBase which represents
1403         the base's starting position within a ruby. This field is necessary because
1404         an expansion from a line might occur at the very beginning of a ruby base,
1405         so we have to remember some state from expansion time to RenderRubyBase
1406         layout time.
1407
1408         Added more tests to fast/ruby/ruby-justification.html.
1409
1410         * rendering/InlineBox.h:
1411         (WebCore::InlineBox::setExpansionWithoutGrowing):
1412         (WebCore::InlineBox::expansion):
1413         * rendering/InlineFlowBox.cpp:
1414         (WebCore::InlineFlowBox::removeChild): Keep the bit on InlineTextBox up to
1415         date.
1416         (WebCore::InlineFlowBox::placeBoxRangeInInlineDirection): Set expansion
1417         information in InlineFlowBoxes so the total expansion for a whole line
1418         is held in the RootInlineBox's expansion.
1419         * rendering/InlineTextBox.h:
1420         (WebCore::InlineTextBox::expansionBehavior):
1421         * rendering/RenderBlockFlow.h:
1422         * rendering/RenderBlockLineLayout.cpp:
1423         (WebCore::RenderBlockFlow::updateRubyForJustifiedText):
1424         updateRubyForJustifiedText() had a bunch of problems with it. First of all,
1425         it didn't actually set the InlineBoxes as dirty, so the second layout pass
1426         sometimes wouldn't perform any updates. Secondarily, it didn't take
1427         overhangs into account. Thirdly, it didn't mark the ruby base and text as
1428         needing layout so that subsequent layouts would actually traverse into them.
1429         (WebCore::RenderBlockFlow::computeExpansionForJustifiedText):
1430         (WebCore::RenderBlockFlow::computeInlineDirectionPositionsForSegment):
1431         This nested if triangle is super nasty, but I'm not sure of a better way to
1432         write it.
1433         (WebCore::updateRubyForJustifiedText): Deleted.
1434         (WebCore::computeExpansionForJustifiedText): Deleted.
1435         * rendering/RenderRubyBase.cpp:
1436         (WebCore::RenderRubyBase::RenderRubyBase):
1437         (WebCore::RenderRubyBase::adjustInlineDirectionLineBounds):
1438         * rendering/RenderRubyBase.h:
1439         * rendering/RenderRubyRun.cpp:
1440         (WebCore::RenderRubyRun::layout):
1441         * rendering/RenderText.cpp:
1442         (WebCore::RenderText::RenderText):
1443         * rendering/RenderText.h:
1444         (WebCore::RenderText::contentIsKnownToFollow):
1445         (WebCore::RenderText::setContentIsKnownToFollow):
1446
1447 2014-12-16  Jer Noble  <jer.noble@apple.com>
1448
1449         [iOS] Crash in WebKit::WebPageProxy::dispatchViewStateChange() tapping a link from another app while playing a video
1450         https://bugs.webkit.org/show_bug.cgi?id=139550
1451
1452         Reviewed by Anders Carlsson.
1453
1454         The existing "dispatch to WebThread, then release" model is insufficient and still
1455         can result in RefPtr race conditions between the main thread and the web thread.
1456         Make WebVideoFullscreenInterfaceAVKit a thread-safe ref-counted class, which
1457         eliminates the necessity of disptaching back to the web thread before releasing.
1458
1459         * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
1460         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
1461         (WebVideoFullscreenInterfaceAVKit::setDuration): Use a strongThis model.
1462         (WebVideoFullscreenInterfaceAVKit::setCurrentTime): Ditto.
1463         (WebVideoFullscreenInterfaceAVKit::setRate): Ditto.
1464         (WebVideoFullscreenInterfaceAVKit::setVideoDimensions): Ditto.
1465         (WebVideoFullscreenInterfaceAVKit::setSeekableRanges): Ditto.
1466         (mediaSelectionOptions): Return a RetainPtr object.
1467         (WebVideoFullscreenInterfaceAVKit::setAudioMediaSelectionOptions): Use a strongThis model.
1468         (WebVideoFullscreenInterfaceAVKit::setLegibleMediaSelectionOptions): Ditto.
1469         (WebVideoFullscreenInterfaceAVKit::setExternalPlayback): Ditto.
1470         (WebVideoFullscreenInterfaceAVKit::setupFullscreen): Ditto.
1471         (WebVideoFullscreenInterfaceAVKit::enterFullscreen): Ditto.
1472         (WebVideoFullscreenInterfaceAVKit::exitFullscreen): Ditto.
1473         (WebVideoFullscreenInterfaceAVKit::cleanupFullscreen): Ditto.
1474         (WebVideoFullscreenInterfaceAVKit::setupFullscreenInternal): Added utility
1475             function. Lets us use the implied this pointer rather than an explicit
1476             strongThis.
1477         (WebVideoFullscreenInterfaceAVKit::enterFullscreenOptimized): Ditto.
1478         (WebVideoFullscreenInterfaceAVKit::enterFullscreenStandard): Ditto.
1479         (WebVideoFullscreenInterfaceAVKit::exitFullscreenInternal): Ditto.
1480         (WebVideoFullscreenInterfaceAVKit::cleanupFullscreenInternal): Ditto.
1481         (WebVideoFullscreenInterfaceAVKit::requestHideAndExitFullscreen): Use a strongThis model.
1482
1483 2014-12-16  Ryosuke Niwa  <rniwa@webkit.org>
1484
1485         Nested template contents are not cloned by document.importNode
1486         https://bugs.webkit.org/show_bug.cgi?id=137619
1487
1488         Reviewed by Andreas Kling.
1489
1490         The bug was caused by Document.importNode not cloning HTMLTemplateElement's content.
1491
1492         Fixed the bug by sharing code between Document::importNode and Node::cloneNode by
1493         generalizing Node::cloneNodeInternal, added in r177314, by taking the owner document
1494         as an argument. The most of code changes are the result of adding this argument.
1495
1496         Document::importNode is the only function in which the actual logic changes.
1497         Note that the code to import TEXT_NODE, CDATA_SECTION_NODE, ENTITY_REFERENCE_NODE,
1498         PROCESSING_INSTRUCTION_NODE and COMMENT_NODE nodes are identical to that of cloneNode.
1499
1500         This patch removes the call to hasValidNamespaceForElements in ELEMENT_NODE but this
1501         should not introduce an observable behavior change since all instantiated elements
1502         should have a valid namespace in the first place.
1503
1504         Because DOCUMENT_NODE and DOCUMENT_TYPE_NODE cannot be imported and DOCUMENT_TYPE_NODE
1505         can only appear as a direct child of DOCUMENT_NODE, neither nodes nor unimplemented
1506         XPATH_NAMESPACE_NODE and XPATH_NAMESPACE_NODE can appear inside the recursive calls
1507         for ELEMENT_NODE and DOCUMENT_FRAGMENT_NODE nodes.
1508
1509         While importNode behaves differently from cloneNode for ATTRIBUTE_NODE, namely that
1510         it merges all of its child nodes, this behavior isn't present when recursing inside
1511         ELEMENT_NODE and DOCUMENT_FRAGMENT_NODE since we are using cloneDataFromElement.
1512
1513         Thus there should be no observable behavior changes for DOCUMENT_FRAGMENT_NODE and
1514         ELEMENT_NODE nodes either.
1515
1516         Test: fast/dom/HTMLTemplateElement/importNode-nested-templates.html
1517
1518         * dom/Attr.cpp:
1519         (WebCore::Attr::cloneNodeInternal):
1520         * dom/Attr.h:
1521         * dom/CDATASection.cpp:
1522         (WebCore::CDATASection::cloneNodeInternal):
1523         * dom/CDATASection.h:
1524         * dom/Comment.cpp:
1525         (WebCore::Comment::cloneNodeInternal):
1526         * dom/Comment.h:
1527         * dom/ContainerNode.cpp:
1528         (WebCore::ContainerNode::cloneChildNodes):
1529         * dom/Document.cpp:
1530         (WebCore::Document::importNode):
1531         (WebCore::Document::cloneNodeInternal):
1532         * dom/Document.h:
1533         * dom/DocumentFragment.cpp:
1534         (WebCore::DocumentFragment::cloneNodeInternal):
1535         * dom/DocumentFragment.h:
1536         * dom/DocumentType.cpp:
1537         (WebCore::DocumentType::cloneNodeInternal):
1538         * dom/DocumentType.h:
1539         * dom/Element.cpp:
1540         (WebCore::Element::cloneNodeInternal):
1541         (WebCore::Element::cloneElementWithChildren):
1542         (WebCore::Element::cloneElementWithoutChildren):
1543         (WebCore::Element::cloneElementWithoutAttributesAndChildren):
1544         * dom/Element.h:
1545         * dom/EntityReference.cpp:
1546         (WebCore::EntityReference::cloneNodeInternal):
1547         * dom/EntityReference.h:
1548         * dom/Node.h:
1549         (WebCore::Node::cloneNode):
1550         * dom/ProcessingInstruction.cpp:
1551         (WebCore::ProcessingInstruction::cloneNodeInternal):
1552         * dom/ProcessingInstruction.h:
1553         * dom/ShadowRoot.cpp:
1554         (WebCore::ShadowRoot::cloneNodeInternal):
1555         * dom/ShadowRoot.h:
1556         * dom/Text.cpp:
1557         (WebCore::Text::cloneNodeInternal):
1558         * dom/Text.h:
1559         * editing/ApplyStyleCommand.cpp:
1560         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode):
1561         (WebCore::ApplyStyleCommand::applyInlineStyleChange):
1562         * editing/BreakBlockquoteCommand.cpp:
1563         (WebCore::BreakBlockquoteCommand::doApply):
1564         * editing/InsertParagraphSeparatorCommand.cpp:
1565         (WebCore::InsertParagraphSeparatorCommand::cloneHierarchyUnderNewBlock):
1566         (WebCore::InsertParagraphSeparatorCommand::doApply):
1567         * editing/ModifySelectionListLevel.cpp:
1568         (WebCore::IncreaseSelectionListLevelCommand::doApply):
1569         * editing/SplitElementCommand.cpp:
1570         (WebCore::SplitElementCommand::doApply):
1571         * editing/markup.cpp:
1572         (WebCore::createFragmentFromText):
1573         * html/HTMLKeygenElement.cpp:
1574         * html/HTMLScriptElement.cpp:
1575         (WebCore::HTMLScriptElement::cloneElementWithoutAttributesAndChildren):
1576         * html/HTMLScriptElement.h:
1577         * html/HTMLTemplateElement.cpp:
1578         (WebCore::HTMLTemplateElement::cloneNodeInternal):
1579         * html/HTMLTemplateElement.h:
1580         * html/shadow/SliderThumbElement.cpp:
1581         (WebCore::SliderThumbElement::cloneElementWithoutAttributesAndChildren):
1582         * html/shadow/SliderThumbElement.h:
1583         * html/track/WebVTTElement.cpp:
1584         (WebCore::WebVTTElement::cloneElementWithoutAttributesAndChildren):
1585         * html/track/WebVTTElement.h:
1586         * svg/SVGScriptElement.cpp:
1587         (WebCore::SVGScriptElement::cloneElementWithoutAttributesAndChildren):
1588         * svg/SVGScriptElement.h:
1589         * svg/SVGUseElement.cpp:
1590         (WebCore::SVGUseElement::buildShadowTree):
1591         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
1592
1593 2014-12-16  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
1594
1595         Document.contentType implementation
1596         https://bugs.webkit.org/show_bug.cgi?id=132269
1597
1598         Reviewed by Darin Adler.
1599
1600         Chromium merge from https://codereview.chromium.org/151653004
1601
1602         Tests: fast/dom/document-contentType-DOMParser.html
1603                fast/dom/document-contentType-createDocument.html
1604                fast/dom/document-contentType-data-uri.html
1605                fast/xsl/xslt-contentType.html
1606                http/tests/dom/document-contentType-meta.html
1607                http/tests/dom/document-contentType-xhr.html
1608                http/tests/dom/document-contentType.html
1609
1610         * dom/Document.cpp:
1611         (WebCore::Document::overrideMIMEType):
1612         (WebCore::Document::contentType):
1613         (WebCore::Document::cloneDataFromDocument):
1614         * dom/Document.h:
1615         * dom/Document.idl:
1616         * loader/DocumentLoader.cpp:
1617         (WebCore::DocumentLoader::currentContentType):
1618         * loader/DocumentLoader.h:
1619         * xml/XMLHttpRequest.cpp:
1620         (WebCore::XMLHttpRequest::responseXML):
1621         * xml/XSLTProcessor.cpp:
1622         (WebCore::XSLTProcessor::createDocumentFromSource):
1623
1624 2014-12-16  Anders Carlsson  <andersca@apple.com>
1625
1626         Put some common code in StorageNamespaceProvider
1627         https://bugs.webkit.org/show_bug.cgi?id=139682
1628
1629         Reviewed by Tim Horton.
1630
1631         We have code in two places that gets the local storage area from a given document,
1632         choosing either the local storage namespace or the transient local storage namespace.
1633         Move it to StorageNamespaceProvider::localStorageArea.
1634
1635         * bindings/js/ScriptController.cpp:
1636         * inspector/InspectorDOMStorageAgent.cpp:
1637         (WebCore::InspectorDOMStorageAgent::findStorageArea):
1638         * page/DOMWindow.cpp:
1639         (WebCore::DOMWindow::localStorage):
1640         * page/Navigator.cpp:
1641         * storage/StorageNamespaceProvider.cpp:
1642         (WebCore::StorageNamespaceProvider::localStorageArea):
1643         (WebCore::StorageNamespaceProvider::localStorageNamespace):
1644         * storage/StorageNamespaceProvider.h:
1645
1646 2014-12-16  Anders Carlsson  <andersca@apple.com>
1647
1648         Add FeatureCounterKeys.h to the Xcode project.
1649
1650         * WebCore.xcodeproj/project.pbxproj:
1651
1652 2014-12-16  Chris Dumez  <cdumez@apple.com>
1653
1654         REGRESSION (r163928): Animated GIFs are not resumed when translated into view using -webkit-transform
1655         https://bugs.webkit.org/show_bug.cgi?id=139672
1656         <rdar://problem/19260797>
1657
1658         Reviewed by Antti Koivisto.
1659
1660         After r163928, animated GIFs were not resumed when translated into view
1661         using '-webkit-transform' CSS property.
1662
1663         This broke animated gifs on the mobile version of weibo.com (which is
1664         one of the most popular blogging sites in China) on iPhone. e.g.
1665         http://m.weibo.cn/page/tpl?containerid=1005052150182731_-_WEIBO_SECOND_PROFILE_WEIBO&itemid=&title=全部微博
1666
1667         This patch calls FrameView::resumeVisibleImageAnimationsIncludingSubframes()
1668         after style recalc so that we resume animated images if they become visible
1669         after the style has changed. Doing so after layout wouldn't work because
1670         no layout happens in this case.
1671
1672         Test: fast/images/animated-gif-webkit-transform.html
1673
1674         * dom/Document.cpp:
1675         (WebCore::Document::recalcStyle):
1676
1677 2014-12-16  Sebastian Dröge  <sebastian@centricular.com>
1678
1679         [GStreamer] Fix deadlock when shutting down AudioDestination
1680         https://bugs.webkit.org/show_bug.cgi?id=139496
1681
1682         Reviewed by Philippe Normand.
1683
1684         * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
1685         (webKitWebAudioSrcLoop):
1686         (webKitWebAudioSrcChangeState):
1687         Sometimes we would wait forever for the task to shut down. This
1688         was happening because of a bug in GStreamer that caused joining
1689         a paused task to deadlock.
1690
1691 2014-12-15  Dhi Aurrahman  <diorahman@rockybars.com>
1692
1693         Extend :lang()'s selector checker to handle ranges with '*' properly and perform matching within the ASCII range
1694         https://bugs.webkit.org/show_bug.cgi?id=139340
1695
1696         Reviewed by Benjamin Poulain.
1697
1698         Asterisk is considered as a valid subtag of a language range to express wildcard matching 
1699         in :lang()'s extended filtering procedure. The matching rules introduced by language 
1700         range with '*' is outlined in [1].
1701
1702         The matching of subtags is performed case-insensitively within the ASCII range[2].
1703
1704         [1] www.ietf.org/rfc/rfc4647.txt
1705         [2] http://dev.w3.org/csswg/selectors4/#the-lang-pseudo
1706
1707         Test: fast/selectors/lang-equal-ignoring-case.html
1708               fast/selectors/lang-valid-extended-filtering.html
1709
1710         * css/SelectorCheckerTestFunctions.h:
1711         (WebCore::equalIgnoringCaseWithinASCIIRange): Handle matching case-insensitively within the ASCII range.
1712         (WebCore::containslanguageSubtagMatchingRange):
1713         (WebCore::matchesLangPseudoClass):
1714
1715 2014-12-15  Chris Dumez  <cdumez@apple.com>
1716
1717         [iOS] Add feature counting support
1718         https://bugs.webkit.org/show_bug.cgi?id=139652
1719         <rdar://problem/19255690>
1720
1721         Reviewed by Gavin Barraclough.
1722
1723         Use FeatureCounter API to log PageCache failure reasons
1724         as well as its success rate.
1725
1726         No new tests, no behavior change.
1727
1728         * history/PageCache.cpp:
1729         (WebCore::logCanCacheFrameDecision):
1730         (WebCore::logCanCachePageDecision):
1731         (WebCore::PageCache::canCache):
1732         * platform/FeatureCounterKeys.h: Added.
1733
1734 2014-12-15  Beth Dakin  <bdakin@apple.com>
1735
1736         Speculative build fix.
1737
1738         * platform/spi/mac/LookupSPI.h:
1739
1740 2014-12-15  Beth Dakin  <bdakin@apple.com>
1741
1742         Speculative build fix.
1743
1744         * platform/spi/mac/LookupSPI.h:
1745
1746 2014-12-15  Jer Noble  <jer.noble@apple.com>
1747
1748         Switching src of <video> with clipping layer results in empty black square.
1749         https://bugs.webkit.org/show_bug.cgi?id=139650
1750
1751         Reviewed by Simon Fraser.
1752
1753         Test: compositing/video-clip-change-src.html
1754
1755         When the contentsLayer changes after a contentsClippingLayer has already been created, make sure to parent the
1756         new contentsLayer, as updateRects() will only reparent when first creating a contentsClippingLayer.
1757
1758         * platform/graphics/ca/GraphicsLayerCA.cpp:
1759         (WebCore::GraphicsLayerCA::setContentsToPlatformLayer):
1760
1761 2014-12-15  Beth Dakin  <bdakin@apple.com>
1762
1763         Make lookup an immediate action instead of an action menu item
1764         https://bugs.webkit.org/show_bug.cgi?id=139661
1765         -and corresponding-
1766         rdar://problem/19198414
1767
1768         Reviewed by Tim Horton.
1769
1770         New SPI.
1771         * platform/spi/mac/LookupSPI.h:
1772
1773 2014-12-12  Anders Carlsson  <andersca@apple.com>
1774
1775         Get rid of the DONT_FINALIZE_ON_MAIN_THREAD #define
1776         https://bugs.webkit.org/show_bug.cgi?id=139613
1777
1778         Reviewed by Sam Weinig.
1779
1780         * WebCore.exp.in:
1781         Update symbols.
1782
1783         * WebCore.xcodeproj/project.pbxproj:
1784         Remove -Wno-deprecated-declarations from the WebCoreObjCExtras.mm build flags.
1785
1786         * platform/mac/WebCoreObjCExtras.h:
1787         If OBJC_NO_GC is defined to 1, just make WebCoreObjCFinalizeOnMainThread a no-op inline function.
1788
1789         * platform/mac/WebCoreObjCExtras.mm:
1790         (WebCoreObjCFinalizeOnMainThread):
1791         Move this to the .h file for easier inlining.
1792
1793         (WebCoreObjCScheduleDeallocateOnMainThread):
1794         Use a lambda.
1795
1796 2014-12-15  Gavin Barraclough  <barraclough@apple.com>
1797
1798         Separate counted and hysteresis activities in PageThrottler
1799         https://bugs.webkit.org/show_bug.cgi?id=139657
1800
1801         Reviewed by Sam Weinig.
1802
1803         Currently all activities funnel into a common hysteresis mechanism, the result of
1804         which is combined with the visually idle state, the result of which in turn drives
1805         a UserActivity::Impl.
1806
1807         This is a first refactoring towards moving the UserActivity out to WebKit2. Use
1808         m_hysteresis only of the impulse activities (plugin evaluation, user input), and
1809         flatten the three types of activities (impulse, counted, ViewState) to all directly
1810         control a UserActivity. Switch from a UserActivity::Impl to a UserActivity since
1811         this will provide hysteresis for media activity.
1812
1813         * page/PageThrottler.cpp:
1814         (WebCore::m_pageActivityCounter):
1815             - when the RefCounter changes just call updateUserActivity directly, removeed redundant call to updateUserActivity.
1816         (WebCore::PageThrottler::createUserActivity):
1817             - m_activity is now a UserActivity.
1818         (WebCore::PageThrottler::updateUserActivity):
1819             - previously just checked m_hysteresis for activity; now check m_pageActivityCounter too.
1820         (WebCore::PageThrottler::pageActivityCounterValueDidChange): Deleted.
1821             - no longer needed; when the RefCounter changes just call updateUserActivity directly.
1822         * page/PageThrottler.h:
1823             - removed pageActivityCounterValueDidChange, m_activity is now a UserActivity.
1824
1825 2014-12-15  Commit Queue  <commit-queue@webkit.org>
1826
1827         Unreviewed, rolling out r177284.
1828         https://bugs.webkit.org/show_bug.cgi?id=139658
1829
1830         "Breaks API tests and LayoutTests on Yosemite Debug"
1831         (Requested by msaboff on #webkit).
1832
1833         Reverted changeset:
1834
1835         "Make sure range based iteration of Vector<> still receives
1836         bounds checking"
1837         https://bugs.webkit.org/show_bug.cgi?id=138821
1838         http://trac.webkit.org/changeset/177284
1839
1840 2014-12-15  Ryosuke Niwa  <rniwa@webkit.org>
1841
1842         cloneNode(true) does not clone nested template elements' contents
1843         https://bugs.webkit.org/show_bug.cgi?id=137755
1844
1845         Reviewed by Darin Adler.
1846
1847         The bug was caused by cloneChildNodes not copying template element's content.
1848
1849         Fixed the bug by adding the third behavior (CloneContent) to the polymorphic
1850         cloneNodeInternal, which copies template element's content but not its children,
1851         in addition to the existing CloneSelf (deep=false) and CloneChildren (deep=true).
1852
1853         Test: fast/dom/HTMLTemplateElement/cloneNode-nested-templates.html
1854
1855         * dom/Attr.cpp:
1856         (WebCore::Attr::cloneNodeInternal): Renamed from cloneNode.
1857         * dom/Attr.h:
1858         * dom/CDATASection.cpp:
1859         (WebCore::CDATASection::cloneNodeInternal): Renamed from cloneNode.
1860         * dom/CDATASection.h:
1861         * dom/Comment.cpp:
1862         (WebCore::Comment::cloneNodeInternal): Renamed from cloneNode.
1863         * dom/Comment.h:
1864         * dom/ContainerNode.cpp:
1865         (WebCore::ContainerNode::cloneChildNodes): Calls cloneNode with CloneContent.
1866         * dom/Document.cpp:
1867         (WebCore::Document::cloneNodeInternal): Renamed from cloneNode.
1868         * dom/Document.h:
1869         * dom/DocumentFragment.cpp:
1870         (WebCore::DocumentFragment::cloneNodeInternal): Renamed from cloneNode.
1871         * dom/DocumentFragment.h:
1872         * dom/DocumentType.cpp:
1873         (WebCore::DocumentType::cloneNodeInternal): Renamed from cloneNode.
1874         * dom/DocumentType.h:
1875         * dom/Element.cpp:
1876         (WebCore::Element::cloneNodeInternal): Renamed from cloneNode.
1877         * dom/Element.h:
1878         * dom/EntityReference.cpp:
1879         (WebCore::EntityReference::cloneNodeInternal): Renamed from cloneNode.
1880         * dom/EntityReference.h:
1881         * dom/Node.h:
1882         (WebCore::Node::cloneNode): Added. It calls cloneNodeInternal with CloneSelf or CloneChildren.
1883         * dom/ProcessingInstruction.cpp:
1884         (WebCore::ProcessingInstruction::cloneNodeInternal): Renamed from cloneNode.
1885         * dom/ProcessingInstruction.h:
1886         * dom/ShadowRoot.cpp:
1887         (WebCore::ShadowRoot::cloneNodeInternal): Renamed from cloneNode. Also moved from ShadowRoot.h.
1888         * dom/ShadowRoot.h:
1889         * dom/Text.cpp:
1890         (WebCore::Text::cloneNodeInternal): Renamed from cloneNode.
1891         * dom/Text.h:
1892         * html/HTMLTemplateElement.cpp:
1893         (WebCore::HTMLTemplateElement::cloneNodeInternal): Renamed from cloneNode. This is the only
1894         function in which CloneContent results in a different behavior from CloneSelf.
1895         * html/HTMLTemplateElement.h:
1896
1897 2014-12-15  Benjamin Poulain  <bpoulain@apple.com>
1898
1899         Unify the various serialization of selector list
1900         https://bugs.webkit.org/show_bug.cgi?id=139606
1901
1902         Reviewed by Andreas Kling.
1903
1904         There were code in various place to build a string from the selectors contained
1905         in a selecor list.
1906
1907         This patch adds a single function to do that: buildSelectorsText(). All the call sites
1908         were modified to use it.
1909
1910         The serialization of :-webkit-any() gets fixed as a result.
1911
1912         * css/CSSSelector.cpp:
1913         (WebCore::CSSSelector::selectorText):
1914         (WebCore::appendSelectorList): Deleted.
1915         * css/CSSSelectorList.cpp:
1916         (WebCore::CSSSelectorList::selectorsText):
1917         (WebCore::CSSSelectorList::buildSelectorsText):
1918         * css/CSSSelectorList.h:
1919         * css/CSSStyleRule.cpp:
1920         (WebCore::CSSStyleRule::generateSelectorText):
1921         * css/WebKitCSSRegionRule.cpp:
1922         (WebCore::WebKitCSSRegionRule::cssText):
1923
1924 2014-12-15  Antti Koivisto  <antti@apple.com>
1925
1926         Try to fix iOS build.
1927
1928         * WebCore.exp.in:
1929
1930 2014-12-15  Javier Fernandez  <jfernandez@igalia.com>
1931
1932         Floats Don't Overhang Their Block Formatting Contex
1933         https://bugs.webkit.org/show_bug.cgi?id=139476
1934
1935         Reviewed by David Hyatt.
1936
1937         From Blink r172530 by <robhogan@gmail.com>
1938
1939         Floats Don't Overhang Their Block Formatting Context Per
1940         http://www.w3.org/TR/CSS2/visuren.html#float-position: "References
1941         to [the elements] in the [rules that govern the behaviour of
1942         floats] refer only to other elements in the same block formatting
1943         context as the float."
1944
1945         This means we don't need to look for intruding or overhanging
1946         floats in boxes that establish a new block formatting
1947         context. Even that we don't have a test breaking this rule it
1948         seems we are doing unnecessary work in
1949         rebuildFloatsFromIntruding() so make sure we avoid adding floats
1950         from different block formatting contexts.
1951
1952         Test:
1953         fast/block/float/floats-do-not-overhang-from-block-formatting-context.html
1954
1955         * rendering/RenderBlockFlow.cpp:
1956         (WebCore::RenderBlockFlow::addIntrudingFloats):
1957
1958 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
1959
1960         Unreviewed build fix after r177301
1961
1962         * html/ColorInputType.cpp:
1963         (WebCore::ColorInputType::elementRectRelativeToRootView):
1964
1965 2014-12-15  Timothy Horton  <timothy_horton@apple.com>
1966
1967         Implement Data Detectors immediate actions for WebKit2
1968         https://bugs.webkit.org/show_bug.cgi?id=139617
1969         <rdar://problem/19198539>
1970
1971         Reviewed by Beth Dakin.
1972
1973         * platform/spi/mac/DataDetectorsSPI.h:
1974         Add some new SPI.
1975
1976 2014-12-12  Simon Fraser  <simon.fraser@apple.com>
1977
1978         REGRESSION (r168217): Images are cropped out during animation at jetblue.com
1979         https://bugs.webkit.org/show_bug.cgi?id=136410
1980         rdar://problem/18188533
1981
1982         Reviewed by Dean Jackson.
1983         
1984         During GraphicsLayer flushing, for tiled layers we can compute a visible rect using
1985         the current state of an animation, which is obtained via the AnimationController.
1986         If that animation was running in a subframe, AnimationController could use a stale
1987         beginAnimationUpdateTime since no-one called its beginAnimationUpdate(). That
1988         resulted in an incorrect computation of the visible rect, resulting in missing tiles.
1989         
1990         There are two parts to this fix. First, add an assertion that beginAnimationUpdateTime()
1991         is being called inside an animation update block. This required moving m_beginAnimationUpdateCount
1992         into AnimationControllerPrivate, and changes to endAnimationUpdate().
1993         
1994         The second is adding a AnimationUpdateBlock to getAnimatedStyleForRenderer(), which
1995         can be called outside of style resolution. We also need some in other API functions.
1996         
1997         Testing revealed that layout can call via layoutOverflowRectForPropagation(), suggesting
1998         that we should have an animation batch inside FrameView::layout(). In addition, a single
1999         resolveStyle/layout should use the same animationBeginTime, so we add a batch to 
2000         updateLayoutAndStyleIfNeededRecursive().
2001         
2002         Identical to the patch that was rolled out in r177269 with the addition of a 
2003         Ref<Frame> protector(m_frame) in AnimationControllerPrivate::animationTimerFired()
2004         that ensures that the AnimationControllerPrivate is kept alive for the scope of
2005         the AnimationPrivateUpdateBlock, when a transitionEnd event destroys an iframe.
2006         
2007         No test because it's timing-dependent. Existing tests exercise the new assertion.
2008
2009         * css/CSSComputedStyleDeclaration.cpp:
2010         (WebCore::computeRenderStyleForProperty):
2011         * page/FrameView.cpp:
2012         (WebCore::FrameView::layout):
2013         (WebCore::FrameView::updateLayoutAndStyleIfNeededRecursive):
2014         * page/animation/AnimationController.cpp:
2015         (WebCore::AnimationPrivateUpdateBlock::AnimationPrivateUpdateBlock):
2016         (WebCore::AnimationPrivateUpdateBlock::~AnimationPrivateUpdateBlock):
2017         (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
2018         (WebCore::AnimationControllerPrivate::animationTimerFired):
2019         (WebCore::AnimationControllerPrivate::suspendAnimationsForDocument):
2020         (WebCore::AnimationControllerPrivate::resumeAnimationsForDocument):
2021         (WebCore::AnimationControllerPrivate::beginAnimationUpdateTime):
2022         (WebCore::AnimationControllerPrivate::beginAnimationUpdate):
2023         (WebCore::AnimationControllerPrivate::endAnimationUpdate):
2024         (WebCore::AnimationControllerPrivate::getAnimatedStyleForRenderer):
2025         (WebCore::AnimationController::AnimationController):
2026         (WebCore::AnimationController::notifyAnimationStarted):
2027         (WebCore::AnimationController::pauseAnimationAtTime):
2028         (WebCore::AnimationController::pauseTransitionAtTime):
2029         (WebCore::AnimationController::resumeAnimationsForDocument):
2030         (WebCore::AnimationController::startAnimationsIfNotSuspended):
2031         (WebCore::AnimationController::beginAnimationUpdate):
2032         (WebCore::AnimationController::endAnimationUpdate):
2033         * page/animation/AnimationController.h:
2034         * page/animation/AnimationControllerPrivate.h:
2035
2036 2014-12-12  Simon Fraser  <simon.fraser@apple.com>
2037
2038         REGRESSION (r168217): Images are cropped out during animation at jetblue.com
2039         https://bugs.webkit.org/show_bug.cgi?id=136410
2040
2041         Reviewed by Dean Jackson.
2042
2043         We were hitting the new assertion under Page::setPageScaleFactor(), which
2044         calls recalcStyle(), so move the AnimationUpdateBlock from updateStyleIfNeeded()
2045         to recalcStyle().
2046
2047         * dom/Document.cpp:
2048         (WebCore::Document::recalcStyle):
2049         (WebCore::Document::updateStyleIfNeeded):
2050
2051 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
2052
2053         Addressing post-review comments in r177035
2054         https://bugs.webkit.org/show_bug.cgi?id=139557
2055
2056         Reviewed by Darin Adler.
2057
2058         This patch deletes the helper functions rendererBoundingBox() and rendererAnchorRect() and
2059         migrates callers to using renderers directly.
2060
2061         It also improves the comment in RenderElement.h regarding RenderElement::anchorRect().
2062
2063         No new tests because this is simply refactoring.
2064
2065         * WebCore.exp.in: Delete exported symbol for rendererBoundingBox()
2066         * accessibility/AccessibilitySlider.cpp:
2067         (WebCore::AccessibilitySliderThumb::elementRect): Migrate off rendererBoundingBox()
2068         * dom/ContainerNode.cpp:
2069         (WebCore::rendererAnchorRect): Deleted.
2070         * dom/ContainerNode.h:
2071         * dom/Node.cpp:
2072         (WebCore::rendererBoundingBox): Deleted.
2073         * dom/Node.h:
2074         * html/ColorInputType.cpp:
2075         (WebCore::ColorInputType::elementRectRelativeToRootView): Migrate off rendererBoundingBox().
2076         * html/HTMLInputElement.cpp:
2077         (WebCore::HTMLInputElement::setupDateTimeChooserParameters): Ditto.
2078         * html/ValidationMessage.cpp:
2079         (WebCore::ValidationMessage::buildBubbleTree): Ditto.
2080         * page/FrameView.cpp:
2081         (WebCore::FrameView::scrollElementToRect): Migrate off rendererAnchorRect().
2082         (WebCore::FrameView::scrollToAnchor): Ditto.
2083         * page/SpatialNavigation.cpp:
2084         (WebCore::nodeRectInAbsoluteCoordinates): Migrate off rendererBoundingBox().
2085         * rendering/RenderElement.h:
2086
2087 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
2088
2089         Delete Notation because we don't use it
2090         https://bugs.webkit.org/show_bug.cgi?id=139171
2091
2092         Reviewed by Kent Tamura.
2093
2094         No tests because this is un-exposing something that never gets instantiated.
2095
2096         * CMakeLists.txt:
2097         * DerivedSources.cpp:
2098         * DerivedSources.make:
2099         * WebCore.exp.in:
2100         * WebCore.order:
2101         * WebCore.vcxproj/WebCore.vcxproj:
2102         * WebCore.vcxproj/WebCore.vcxproj.filters:
2103         * WebCore.xcodeproj/project.pbxproj:
2104         * bindings/gobject/WebKitDOMNodeFilter.h:
2105         * bindings/gobject/WebKitDOMNodeFilter.symbols:
2106         * bindings/gobject/WebKitDOMPrivate.cpp:
2107         (WebKit::wrap):
2108         * bindings/gobject/webkitdom.symbols:
2109         * bindings/js/JSNodeCustom.cpp:
2110         (WebCore::createWrapperInline):
2111         * bindings/objc/DOM.mm:
2112         (kitClass):
2113         * bindings/objc/DOMCore.h:
2114         * bindings/objc/PublicDOMInterfaces.h:
2115         * dom/DOMAllInOne.cpp:
2116         * dom/Document.cpp:
2117         (WebCore::Document::importNode):
2118         (WebCore::Document::adoptNode):
2119         (WebCore::Document::childTypeAllowed):
2120         (WebCore::Document::canReplaceChild):
2121         * dom/Node.cpp:
2122         (WebCore::Node::dumpStatistics):
2123         (WebCore::Node::isDefaultNamespace):
2124         (WebCore::Node::lookupPrefix):
2125         (WebCore::Node::lookupNamespaceURI):
2126         (WebCore::appendTextContent):
2127         (WebCore::Node::setTextContent):
2128         * dom/Node.h:
2129         * dom/Node.idl:
2130         * dom/NodeFilter.h:
2131         * dom/NodeFilter.idl:
2132         * dom/Notation.cpp: Removed.
2133         * dom/Notation.h: Removed.
2134         * dom/Notation.idl: Removed.
2135         * dom/Range.cpp:
2136         (WebCore::lengthOfContentsInNode):
2137         (WebCore::Range::processContentsBetweenOffsets):
2138         (WebCore::Range::insertNode):
2139         (WebCore::Range::checkNodeWOffset):
2140         (WebCore::Range::checkNodeBA):
2141         (WebCore::Range::selectNode):
2142         (WebCore::Range::selectNodeContents):
2143         (WebCore::Range::surroundContents):
2144         * editing/MarkupAccumulator.cpp:
2145         (WebCore::MarkupAccumulator::appendStartMarkup):
2146         * xml/XPathUtil.cpp:
2147         (WebCore::XPath::isValidContextNode):
2148
2149 2014-12-15  Gavin Barraclough  <barraclough@apple.com>
2150
2151         Change HysteresisActivity to use a lambda
2152         https://bugs.webkit.org/show_bug.cgi?id=139636
2153
2154         Reviewed by Darin Adler.
2155
2156         The current implementation provides notifications via callbacks to a delegate. Using a delegate
2157         with callbacks is limiting a number of ways. The callback names are very ambiguous, the callbacks
2158         must either be on a separate object (more boilerplate), or the callback must be public for
2159         HysteresisActivity to call them, or friends get involved. Without the boilerplate of extra
2160         delegate objects it's hard to scale use of these objects - a single object can't serve as a
2161         delegate for multiple HysteresisActivity members.
2162
2163         Instead, make HysteresisActivity take a lambda to callback on state change. To simplify, changed
2164         HysteresisState to only track Started/Stopped states (removed WillStopPendingTimeout).
2165
2166         * WebCore.exp.in:
2167             - removed exports of deleted functions.
2168         * page/PageThrottler.cpp:
2169         (WebCore::PageThrottler::PageThrottler):
2170             - m_hysteresis lambda calls updateUserActivity.
2171         (WebCore::PageThrottler::pageActivityCounterValueDidChange):
2172             - ASSERT updated due to removal of WillStopPendingTimeout state.
2173         (WebCore::PageThrottler::started): Deleted.
2174         (WebCore::PageThrottler::stopped): Deleted.
2175             - functionality replaced by lambda.
2176         * page/PageThrottler.h:
2177             - HysteresisActivity is no longer templated on delegate type, removed function declarations & friend.
2178         * platform/HysteresisActivity.h:
2179         (WebCore::HysteresisActivity::HysteresisActivity):
2180             - HysteresisActivity takes a lambda, not a delegate.
2181         (WebCore::HysteresisActivity::start):
2182             - delegate call -> callback.
2183         (WebCore::HysteresisActivity::state):
2184             - simplified to remove WillStopPendingTimeout.
2185         (WebCore::HysteresisActivity::hysteresisTimerFired):
2186             - delegate call -> callback.
2187         * platform/UserActivity.cpp:
2188         (WebCore::UserActivity::UserActivity):
2189             - HysteresisActivity lambda calls hysteresisUpdated.
2190         (WebCore::UserActivity::hysteresisUpdated):
2191         (WebCore::UserActivity::started): Deleted.
2192         (WebCore::UserActivity::stopped): Deleted.
2193             - started/stopped -> hysteresisUpdated.
2194         * platform/UserActivity.h:
2195             - started/stopped -> hysteresisUpdated, removed friend.
2196
2197 2014-12-15  Antti Koivisto  <antti@apple.com>
2198
2199         WebKit level persistent caching
2200         https://bugs.webkit.org/show_bug.cgi?id=30322
2201
2202         Reviewed by Sam Weinig.
2203
2204         Test: http/tests/cache/disk-cache-validation.html
2205
2206         * WebCore.exp.in:
2207         * inspector/InspectorResourceAgent.cpp:
2208         (WebCore::buildObjectForResourceResponse):
2209         * platform/network/ResourceResponseBase.cpp:
2210         (WebCore::ResourceResponseBase::ResourceResponseBase):
2211         (WebCore::ResourceResponseBase::source):
2212         (WebCore::ResourceResponseBase::setSource):
2213         (WebCore::ResourceResponseBase::wasCached): Deleted.
2214         (WebCore::ResourceResponseBase::setWasCached): Deleted.
2215
2216             Replace wasCached bit with Source enum.
2217             This is useful for testing.
2218
2219         * platform/network/ResourceResponseBase.h:
2220         (WebCore::ResourceResponseBase::containsCertificateInfo):
2221         (WebCore::ResourceResponseBase::encode):
2222         (WebCore::ResourceResponseBase::decode):
2223         * testing/Internals.cpp:
2224         (WebCore::Internals::xhrResponseSource):
2225         (WebCore::Internals::clearMemoryCache):
2226         * testing/Internals.h:
2227         * testing/Internals.idl:
2228
2229             Testing support.
2230
2231         * xml/XMLHttpRequest.h:
2232
2233 2014-12-15  Andreas Kling  <akling@apple.com>
2234
2235         Purge PassRefPtr from FocusEvent code.
2236         <https://webkit.org/b/139647>
2237
2238         Reviewed by Anders Carlsson.
2239
2240         Convert FocusEvent-related code from using PassRefPtr to using RefPtr&& instead.
2241
2242         * dom/Document.cpp:
2243         (WebCore::Document::setFocusedElement):
2244         * dom/Element.cpp:
2245         (WebCore::Element::dispatchFocusInEvent):
2246         (WebCore::Element::dispatchFocusOutEvent):
2247         (WebCore::Element::dispatchFocusEvent):
2248         (WebCore::Element::dispatchBlurEvent):
2249         * dom/Element.h:
2250         * dom/FocusEvent.cpp:
2251         (WebCore::FocusEvent::FocusEvent):
2252         * dom/FocusEvent.h:
2253         * html/HTMLFormControlElement.cpp:
2254         (WebCore::HTMLFormControlElement::dispatchBlurEvent):
2255         * html/HTMLFormControlElement.h:
2256         * html/HTMLSelectElement.cpp:
2257         (WebCore::HTMLSelectElement::dispatchFocusEvent):
2258         (WebCore::HTMLSelectElement::dispatchBlurEvent):
2259         * html/HTMLSelectElement.h:
2260         * html/HTMLTextFormControlElement.cpp:
2261         (WebCore::HTMLTextFormControlElement::dispatchFocusEvent):
2262         (WebCore::HTMLTextFormControlElement::dispatchBlurEvent):
2263         * html/HTMLTextFormControlElement.h:
2264         * page/FocusController.cpp:
2265         (WebCore::dispatchEventsOnWindowAndFocusedElement):
2266
2267 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
2268
2269         [iOS] Codepoints not associated with languages are drawn as boxes
2270         https://bugs.webkit.org/show_bug.cgi?id=138906
2271
2272         Reviewed by Darin Adler.
2273
2274         Use SPI CTFontCreateForCharacters(), but only if we don't already know what to do
2275         with the characters.
2276
2277         Test: platform/ios-simulator/fast/text/non-language-font-fallback.html
2278
2279         * platform/graphics/ios/FontCacheIOS.mm:
2280         (WebCore::FontCache::systemFallbackForCharacters):
2281         * platform/spi/cocoa/CoreTextSPI.h:
2282
2283 2014-12-15  Bem Jones-Bey  <bjonesbe@adobe.com>
2284
2285         [CSS Shapes] Fix StyleBuilder code to use CSSValueNone to match spec and other code
2286         https://bugs.webkit.org/show_bug.cgi?id=139601
2287
2288         Reviewed by Chris Dumez.
2289
2290         Change the code to properly use CSSValueNone instead of CSSValueAuto.
2291         Asserts have been added to catch similar errors in the future.
2292         In doing this change, it became apparent that there is nothing
2293         special about the shape-outside property that requires custom code, so
2294         it was changed to use a standard converter function. 
2295
2296         No change observable via LayoutTests.
2297
2298         * css/CSSPropertyNames.in: Use a converter instead of custom code.
2299         * css/StyleBuilderConverter.h:
2300         (WebCore::isImageShape): Helper function so that isImageSetValue can
2301             be properly guarded.
2302         (WebCore::StyleBuilderConverter::convertShapeValue): Format as a
2303             converter instead of custom code.
2304         * css/StyleBuilderCustom.h:
2305         (WebCore::StyleBuilderCustom::applyValueWebkitShapeOutside): Deleted.
2306
2307 2014-12-15  Oliver Hunt  <oliver@apple.com>
2308
2309         Make sure range based iteration of Vector<> still receives bounds checking
2310         https://bugs.webkit.org/show_bug.cgi?id=138821
2311
2312         Reviewed by Mark Lam.
2313
2314         Update to deal with different iterator type.
2315
2316         * bindings/js/SerializedScriptValue.cpp:
2317         (WebCore::CloneDeserializer::deserializeString):
2318         * editing/TextIterator.cpp:
2319         (WebCore::SearchBuffer::isBadMatch):
2320         * page/mac/ServicesOverlayController.mm:
2321         (WebCore::ServicesOverlayController::buildSelectionHighlight):
2322         * platform/graphics/SegmentedFontData.cpp:
2323         (WebCore::SegmentedFontData::fontDataForCharacter):
2324         (WebCore::SegmentedFontData::containsCharacter):
2325         (WebCore::SegmentedFontData::isLoading):
2326         * platform/graphics/WOFFFileFormat.cpp:
2327         (WebCore::convertWOFFToSfnt):
2328         * platform/graphics/cairo/GradientCairo.cpp:
2329         (WebCore::Gradient::platformGradient):
2330         * platform/image-decoders/gif/GIFImageDecoder.cpp:
2331         (WebCore::GIFImageDecoder::clearFrameBufferCache):
2332         * rendering/RenderBox.cpp:
2333         (WebCore::RenderBox::paintFillLayers):
2334         * rendering/style/GridResolvedPosition.cpp:
2335         (WebCore::firstNamedGridLineBeforePosition):
2336         (WebCore::GridResolvedPosition::resolveRowEndColumnEndNamedGridLinePositionAgainstOppositePosition):
2337         * svg/SVGFontElement.cpp:
2338         (WebCore::kerningForPairOfStringsAndGlyphs):
2339         * svg/SVGPathByteStream.h:
2340         (WebCore::SVGPathByteStream::append):
2341         * xml/XPathNodeSet.h:
2342         (WebCore::XPath::NodeSet::begin):
2343         (WebCore::XPath::NodeSet::end):
2344
2345 2014-12-15  Chris Dumez  <cdumez@apple.com>
2346
2347         Move '-webkit-text-decoration-skip' to the new StyleBuilder
2348         https://bugs.webkit.org/show_bug.cgi?id=139633
2349
2350         Reviewed by Darin Adler.
2351
2352         Move '-webkit-text-decoration-skip' to the new StyleBuilder by
2353         introducing a new TextDecorationSkip converter.
2354
2355         No new tests, no behavior change.
2356
2357         * css/CSSPropertyNames.in:
2358         * css/DeprecatedStyleBuilder.cpp:
2359         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
2360         (WebCore::valueToDecorationSkip): Deleted.
2361         (WebCore::ApplyPropertyTextDecorationSkip::applyValue): Deleted.
2362         (WebCore::ApplyPropertyTextDecorationSkip::createHandler): Deleted.
2363         * css/StyleBuilderConverter.h:
2364         (WebCore::StyleBuilderConverter::valueToDecorationSkip):
2365         (WebCore::StyleBuilderConverter::convertTextDecorationSkip):
2366
2367 2014-12-15  Bartlomiej Gajda  <b.gajda@samsung.com>
2368
2369         [MSE] Prevent SourceBuffer monitoring algorithm from triggering a HAVE_NOTHING to HAVE_METADATA transition.
2370         https://bugs.webkit.org/show_bug.cgi?id=139444
2371
2372         Reviewed by Jer Noble.
2373
2374         In case of 2 SourceBuffers, there can be transition to HaveMetadata from monitorSourceBuffers,
2375         even though second SourceBuffer did not receive init segment - we can't query for it's metadata
2376         such as width/height (if second one was video), so we shouldn't fire the event.
2377         W3 Bug reference : https://www.w3.org/Bugs/Public/show_bug.cgi?id=27542
2378
2379         Test: media/media-source/media-source-loadedmetada-with-two-sourcebuffers.html
2380
2381         * Modules/mediasource/MediaSource.cpp:
2382         (WebCore::MediaSource::monitorSourceBuffers):
2383         * Modules/mediasource/SourceBuffer.h:
2384         * platform/mock/mediasource/MockMediaPlayerMediaSource.cpp:
2385         (WebCore::mimeTypeCache):
2386
2387 2014-12-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2388
2389         Move WebCore/platform/text to std::unique_ptr 
2390         https://bugs.webkit.org/show_bug.cgi?id=139395
2391
2392         Reviewed by Darin Adler.
2393
2394         As a step to use std::unique_ptr<>, this patch replaces OwnPtr|PassOwnPtr with
2395         std::unique_ptr<> | std::make_unique<>.
2396
2397         * dom/Document.h:
2398         * platform/text/LineBreakIteratorPoolICU.h:
2399         (WebCore::LineBreakIteratorPool::LineBreakIteratorPool):
2400         (WebCore::LineBreakIteratorPool::create): Deleted.
2401         * platform/text/LocaleICU.cpp:
2402         (WebCore::Locale::create):
2403         (WebCore::LocaleICU::createLabelVector):
2404         (WebCore::createFallbackMonthLabels):
2405         (WebCore::createFallbackAMPMLabels):
2406         (WebCore::LocaleICU::initializeDateTimeFormat):
2407         (WebCore::LocaleICU::shortMonthLabels):
2408         (WebCore::LocaleICU::create): Deleted.
2409         (WebCore::LocaleICU::standAloneMonthLabels): Deleted.
2410         (WebCore::LocaleICU::shortStandAloneMonthLabels): Deleted.
2411         * platform/text/LocaleICU.h:
2412         * platform/text/LocaleNone.cpp:
2413         (WebCore::Locale::create):
2414         * platform/text/PlatformLocale.h:
2415         (WebCore::Locale::createDefault):
2416         * platform/text/TextCodecLatin1.cpp:
2417         * platform/text/TextCodecUTF16.cpp:
2418         * platform/text/TextEncoding.cpp:
2419         * platform/text/mac/LocaleMac.h:
2420         * platform/text/mac/LocaleMac.mm:
2421         (WebCore::Locale::create):
2422         (WebCore::LocaleMac::create):
2423         * platform/text/mac/TextCodecMac.cpp:
2424         * platform/text/win/LocaleWin.cpp:
2425         (WebCore::Locale::create):
2426         (WebCore::LocaleWin::create):
2427         * platform/text/win/LocaleWin.h:
2428         * platform/text/win/TextCodecWin.cpp:
2429         (WebCore::newTextCodecWin):
2430
2431 2014-12-15  Xavier Claessens  <xavier.claessens@collabora.com>
2432
2433         [GStreamer] the webkitwebsrc element can stale
2434         https://bugs.webkit.org/show_bug.cgi?id=138425
2435
2436         Reviewed by Philippe Normand.
2437
2438         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
2439         (removeTimeoutSources):
2440         (webKitWebSrcStart):
2441         (webKitWebSrcChangeState):
2442
2443 2014-12-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2444
2445         [GTK] Remove GamepadDeviceGtk::create()
2446         https://bugs.webkit.org/show_bug.cgi?id=139637
2447
2448         Reviewed by Carlos Garcia Campos.
2449
2450         std::make_unique<> can replace GamepadDeviceGtk::create() factory function.
2451
2452         * platform/gtk/GamepadsGtk.cpp: Add "explicit" to GamepadsGtk constructor.
2453         (WebCore::GamepadsGtk::registerDevice):
2454         (WebCore::GamepadDeviceGtk::create): Deleted.
2455
2456 2014-12-15  Chris Dumez  <cdumez@apple.com>
2457
2458         Move 'counter-increment' / 'counter-reset' to the new StyleBuilder
2459         https://bugs.webkit.org/show_bug.cgi?id=139635
2460
2461         Reviewed by Antti Koivisto.
2462
2463         Move 'counter-increment' / 'counter-reset' to the new StyleBuilder by
2464         using custom code.
2465
2466         No new tests, no behavior change.
2467
2468         * css/CSSPropertyNames.in:
2469         * css/DeprecatedStyleBuilder.cpp:
2470         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
2471         (WebCore::ApplyPropertyCounter::emptyFunction): Deleted.
2472         (WebCore::ApplyPropertyCounter::applyInheritValue): Deleted.
2473         (WebCore::ApplyPropertyCounter::applyValue): Deleted.
2474         (WebCore::ApplyPropertyCounter::createHandler): Deleted.
2475         * css/StyleBuilderCustom.h:
2476         (WebCore::StyleBuilderCustom::applyInitialCounterIncrement):
2477         (WebCore::StyleBuilderCustom::applyInitialCounterReset):
2478         (WebCore::StyleBuilderCustom::applyInheritCounter):
2479         (WebCore::StyleBuilderCustom::applyValueCounter):
2480         (WebCore::StyleBuilderCustom::applyInheritCounterIncrement):
2481         (WebCore::StyleBuilderCustom::applyValueCounterIncrement):
2482         (WebCore::StyleBuilderCustom::applyInheritCounterReset):
2483         (WebCore::StyleBuilderCustom::applyValueCounterReset):
2484
2485 2014-12-14  Commit Queue  <commit-queue@webkit.org>
2486
2487         Unreviewed, rolling out r177238 and r177244.
2488         https://bugs.webkit.org/show_bug.cgi?id=139632
2489
2490         Introduced memory corruption (Requested by ap on #webkit).
2491
2492         Reverted changesets:
2493
2494         "REGRESSION (r168217): Images are cropped out during animation
2495         at jetblue.com"
2496         https://bugs.webkit.org/show_bug.cgi?id=136410
2497         http://trac.webkit.org/changeset/177238
2498
2499         https://bugs.webkit.org/show_bug.cgi?id=139596
2500         http://trac.webkit.org/changeset/177244
2501
2502 2014-12-14  Commit Queue  <commit-queue@webkit.org>
2503
2504         Unreviewed, rolling out r177223 and r177226.
2505         https://bugs.webkit.org/show_bug.cgi?id=139631
2506
2507         Multiple tests are flakily asserting in
2508         StyleResolver::loadPendingResources (Requested by ap_ on
2509         #webkit).
2510
2511         Reverted changesets:
2512
2513         "[SVG Masking] Enable the use of <mask> elements for -webkit-
2514         mask-image"
2515         https://bugs.webkit.org/show_bug.cgi?id=139294
2516         http://trac.webkit.org/changeset/177223
2517
2518         "animations/cross-fade-webkit-mask-image.html is flaky"
2519         https://bugs.webkit.org/show_bug.cgi?id=139590
2520         http://trac.webkit.org/changeset/177226
2521
2522 2014-12-14  Andreas Kling  <akling@apple.com>
2523
2524         Event construction helpers should return Ref instead of PassRefPtr.
2525         <https://webkit.org/b/139625>
2526
2527         Reviewed by Antti Koivisto.
2528
2529         Change all the FooEvent::create() construction helpers to return Ref<FooEvent>
2530         instead of PassRefPtr<FooEvent>.
2531
2532         This allows the compiler to omit null checks at each call site, since we know
2533         that these functions always return valid objects.
2534
2535         * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
2536         (WebCore::WebKitPlaybackTargetAvailabilityEvent::create):
2537         * Modules/encryptedmedia/MediaKeyMessageEvent.h:
2538         (WebCore::MediaKeyMessageEvent::create):
2539         * Modules/encryptedmedia/MediaKeyNeededEvent.h:
2540         (WebCore::MediaKeyNeededEvent::create):
2541         * Modules/gamepad/GamepadEvent.h:
2542         (WebCore::GamepadEvent::create):
2543         * Modules/indexeddb/IDBVersionChangeEvent.h:
2544         (WebCore::IDBVersionChangeEvent::create):
2545         * Modules/indieui/UIRequestEvent.cpp:
2546         (WebCore::UIRequestEvent::create):
2547         * Modules/indieui/UIRequestEvent.h:
2548         * Modules/mediastream/MediaStreamEvent.cpp:
2549         (WebCore::MediaStreamEvent::create):
2550         * Modules/mediastream/MediaStreamEvent.h:
2551         * Modules/mediastream/MediaStreamTrackEvent.cpp:
2552         (WebCore::MediaStreamTrackEvent::create):
2553         * Modules/mediastream/MediaStreamTrackEvent.h:
2554         * Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
2555         (WebCore::RTCDTMFToneChangeEvent::create):
2556         * Modules/mediastream/RTCDTMFToneChangeEvent.h:
2557         * Modules/mediastream/RTCDataChannelEvent.cpp:
2558         (WebCore::RTCDataChannelEvent::create):
2559         * Modules/mediastream/RTCDataChannelEvent.h:
2560         * Modules/mediastream/RTCIceCandidateEvent.cpp:
2561         (WebCore::RTCIceCandidateEvent::create):
2562         * Modules/mediastream/RTCIceCandidateEvent.h:
2563         * Modules/speech/SpeechSynthesisEvent.cpp:
2564         (WebCore::SpeechSynthesisEvent::create):
2565         * Modules/speech/SpeechSynthesisEvent.h:
2566         * Modules/webaudio/AudioProcessingEvent.cpp:
2567         (WebCore::AudioProcessingEvent::create):
2568         * Modules/webaudio/AudioProcessingEvent.h:
2569         * Modules/webaudio/OfflineAudioCompletionEvent.cpp:
2570         (WebCore::OfflineAudioCompletionEvent::create):
2571         * Modules/webaudio/OfflineAudioCompletionEvent.h:
2572         * Modules/websockets/CloseEvent.h:
2573         (WebCore::CloseEvent::create):
2574         * dom/AnimationEvent.h:
2575         * dom/AutocompleteErrorEvent.h:
2576         * dom/BeforeLoadEvent.h:
2577         * dom/BeforeTextInsertedEvent.h:
2578         * dom/BeforeUnloadEvent.h:
2579         * dom/ClipboardEvent.h:
2580         * dom/CompositionEvent.h:
2581         * dom/CustomEvent.h:
2582         * dom/DeviceMotionEvent.h:
2583         * dom/DeviceOrientationEvent.h:
2584         * dom/ErrorEvent.h:
2585         * dom/Event.h:
2586         (WebCore::Event::create):
2587         * dom/FocusEvent.h:
2588         * dom/HashChangeEvent.h:
2589         * dom/KeyboardEvent.h:
2590         * dom/MessageEvent.h:
2591         * dom/MouseEvent.cpp:
2592         (WebCore::MouseEvent::create):
2593         (WebCore::SimulatedMouseEvent::create):
2594         * dom/MouseEvent.h:
2595         (WebCore::MouseEvent::create):
2596         * dom/MutationEvent.h:
2597         * dom/OverflowEvent.h:
2598         * dom/PageTransitionEvent.h:
2599         * dom/PopStateEvent.cpp:
2600         (WebCore::PopStateEvent::create):
2601         * dom/PopStateEvent.h:
2602         * dom/ProgressEvent.h:
2603         (WebCore::ProgressEvent::create):
2604         * dom/TextEvent.cpp:
2605         (WebCore::TextEvent::create):
2606         (WebCore::TextEvent::createForPlainTextPaste):
2607         (WebCore::TextEvent::createForFragmentPaste):
2608         (WebCore::TextEvent::createForDrop):
2609         (WebCore::TextEvent::createForDictation):
2610         * dom/TextEvent.h:
2611         * dom/TouchEvent.h:
2612         * dom/TransitionEvent.h:
2613         * dom/UIEvent.h:
2614         (WebCore::UIEvent::create):
2615         * dom/WebKitAnimationEvent.h:
2616         * dom/WebKitTransitionEvent.h:
2617         * dom/WheelEvent.h:
2618         * html/MediaKeyEvent.h:
2619         * html/canvas/WebGLContextEvent.h:
2620         * html/track/TrackEvent.h:
2621         * storage/StorageEvent.cpp:
2622         (WebCore::StorageEvent::create):
2623         * storage/StorageEvent.h:
2624         * svg/SVGZoomEvent.h:
2625         (WebCore::SVGZoomEvent::create):
2626         * xml/XMLHttpRequestProgressEvent.h:
2627         (WebCore::XMLHttpRequestProgressEvent::create):
2628
2629 2014-12-14  Ryosuke Niwa  <rniwa@webkit.org>
2630
2631         REGRESSION(r160182): Fragment parser doesn't close a form element with a close tag
2632         https://bugs.webkit.org/show_bug.cgi?id=139561
2633
2634         Reviewed by Darin Adler.
2635
2636         The bug was caused by us not setting the form pointer in insertHTMLFormElement.
2637         Since we already avoid associating a form inside HTMLConstructionSite::createHTMLElement,
2638         we didn't need this code at all.
2639
2640         Fixed the bug by partially reverting r160182.
2641
2642         Test: fast/dom/dom-parse-close-form.html
2643
2644         * html/parser/HTMLConstructionSite.cpp:
2645         (WebCore::HTMLConstructionSite::insertHTMLFormElement):
2646         (WebCore::HTMLConstructionSite::insideTemplateElement): Deleted.
2647         * html/parser/HTMLConstructionSite.h:
2648
2649 2014-12-14  Andreas Kling  <akling@apple.com>
2650
2651         Fix build even more. Not a strong performance here.
2652
2653         * platform/graphics/Font.cpp:
2654         (WebCore::FontGlyphsCacheEntry::FontGlyphsCacheEntry):
2655         (WebCore::retrieveOrAddCachedFontGlyphs):
2656
2657 2014-12-14  Andreas Kling  <akling@apple.com>
2658
2659         Fix build. :-|
2660
2661         * css/CSSFunctionValue.cpp:
2662         (WebCore::CSSFunctionValue::CSSFunctionValue):
2663         * css/CSSFunctionValue.h:
2664
2665 2014-12-14  Andreas Kling  <akling@apple.com>
2666
2667         Minor follow-up tweaks suggested by Darin on bug 139587.
2668
2669         * css/CSSFunctionValue.h:
2670         (WebCore::CSSFunctionValue::create):
2671         * platform/graphics/Font.cpp:
2672         (WebCore::retrieveOrAddCachedFontGlyphs):
2673         (WebCore::FontGlyphsCacheEntry::FontGlyphsCacheEntry): Deleted.
2674         * rendering/RenderScrollbarPart.h:
2675
2676 2014-12-14  Andreas Kling  <akling@apple.com>
2677
2678         Replace PassRef with Ref/Ref&& across the board.
2679         <https://webkit.org/b/139587>
2680
2681         Reviewed by Darin Adler.
2682
2683         * Modules/battery/BatteryManager.cpp:
2684         (WebCore::BatteryManager::create):
2685         * Modules/battery/BatteryManager.h:
2686         * Modules/battery/BatteryStatus.cpp:
2687         (WebCore::BatteryStatus::create):
2688         * Modules/battery/BatteryStatus.h:
2689         * Modules/gamepad/GamepadButton.h:
2690         (WebCore::GamepadButton::create):
2691         * Modules/gamepad/NavigatorGamepad.cpp:
2692         (WebCore::NavigatorGamepad::gamepadFromPlatformGamepad):
2693         * Modules/gamepad/NavigatorGamepad.h:
2694         * Modules/gamepad/deprecated/GamepadList.h:
2695         (WebCore::GamepadList::create):
2696         * Modules/geolocation/Geolocation.cpp:
2697         (WebCore::Geolocation::create):
2698         * Modules/geolocation/Geolocation.h:
2699         (WebCore::Geolocation::GeoNotifier::create):
2700         * Modules/mediasource/MediaSource.cpp:
2701         (WebCore::MediaSource::setPrivateAndOpen):
2702         * Modules/mediasource/MediaSource.h:
2703         * Modules/mediasource/SourceBuffer.cpp:
2704         (WebCore::SourceBuffer::create):
2705         (WebCore::SourceBuffer::SourceBuffer):
2706         * Modules/mediasource/SourceBuffer.h:
2707         * Modules/mediastream/UserMediaClient.h:
2708         * Modules/mediastream/UserMediaController.h:
2709         (WebCore::UserMediaController::requestPermission):
2710         * Modules/notifications/Notification.cpp:
2711         (WebCore::Notification::create):
2712         * Modules/notifications/Notification.h:
2713         * Modules/notifications/NotificationCenter.cpp:
2714         (WebCore::NotificationCenter::create):
2715         * Modules/notifications/NotificationCenter.h:
2716         * Modules/plugins/PluginReplacement.h:
2717         * Modules/plugins/QuickTimePluginReplacement.h:
2718         * Modules/plugins/QuickTimePluginReplacement.mm:
2719         (WebCore::QuickTimePluginReplacement::createElementRenderer):
2720         * Modules/plugins/YouTubePluginReplacement.cpp:
2721         (WebCore::YouTubePluginReplacement::createElementRenderer):
2722         * Modules/plugins/YouTubePluginReplacement.h:
2723         * Modules/proximity/DeviceProximityEvent.h:
2724         (WebCore::DeviceProximityEvent::create):
2725         * WebCore.exp.in:
2726         * css/BasicShapeFunctions.cpp:
2727         (WebCore::valueForBasicShape):
2728         (WebCore::basicShapeForValue):
2729         * css/BasicShapeFunctions.h:
2730         * css/CSSAspectRatioValue.h:
2731         (WebCore::CSSAspectRatioValue::create):
2732         * css/CSSBorderImage.cpp:
2733         (WebCore::createBorderImageValue):
2734         * css/CSSBorderImage.h:
2735         * css/CSSBorderImageSliceValue.h:
2736         (WebCore::CSSBorderImageSliceValue::create):
2737         * css/CSSCalculationValue.cpp:
2738         (WebCore::determineCategory):
2739         * css/CSSCalculationValue.h:
2740         (WebCore::CSSCalcValue::CSSCalcValue):
2741         (WebCore::CSSCalcValue::createCalculationValue):
2742         * css/CSSCanvasValue.h:
2743         (WebCore::CSSCanvasValue::create):
2744         * css/CSSComputedStyleDeclaration.cpp:
2745         (WebCore::valueForImageSliceSide):
2746         (WebCore::valueForNinePieceImageSlice):
2747         (WebCore::valueForNinePieceImageQuad):
2748         (WebCore::valueForNinePieceImageRepeat):
2749         (WebCore::valueForNinePieceImage):
2750         (WebCore::zoomAdjustedPixelValue):
2751         (WebCore::zoomAdjustedNumberValue):
2752         (WebCore::zoomAdjustedPixelValueForLength):
2753         (WebCore::valueForReflection):
2754         (WebCore::createPositionListForLayer):
2755         (WebCore::percentageOrZoomAdjustedValue):
2756         (WebCore::autoOrZoomAdjustedValue):
2757         (WebCore::getBorderRadiusCornerValues):
2758         (WebCore::getBorderRadiusCornerValue):
2759         (WebCore::getBorderRadiusShorthandValue):
2760         (WebCore::matrixTransformValue):
2761         (WebCore::computedTransform):
2762         (WebCore::adjustLengthForZoom):
2763         (WebCore::ComputedStyleExtractor::valueForShadow):
2764         (WebCore::ComputedStyleExtractor::valueForFilter):
2765         (WebCore::specifiedValueForGridTrackBreadth):
2766         (WebCore::specifiedValueForGridTrackSize):
2767         (WebCore::valueForGridTrackList):
2768         (WebCore::valueForGridPosition):
2769         (WebCore::createTransitionPropertyValue):
2770         (WebCore::getTransitionPropertyValue):
2771         (WebCore::scrollSnapDestination):
2772         (WebCore::scrollSnapPoints):
2773         (WebCore::scrollSnapCoordinates):
2774         (WebCore::getDelayValue):
2775         (WebCore::getDurationValue):
2776         (WebCore::createTimingFunctionValue):
2777         (WebCore::getTimingFunctionValue):
2778         (WebCore::createLineBoxContainValue):
2779         (WebCore::valueForFamily):
2780         (WebCore::renderTextDecorationFlagsToCSSValue):
2781         (WebCore::renderTextDecorationStyleFlagsToCSSValue):
2782         (WebCore::renderTextDecorationSkipFlagsToCSSValue):
2783         (WebCore::renderEmphasisPositionFlagsToCSSValue):
2784         (WebCore::fillRepeatToCSSValue):
2785         (WebCore::fillSourceTypeToCSSValue):
2786         (WebCore::fillSizeToCSSValue):
2787         (WebCore::altTextToCSSValue):
2788         (WebCore::contentToCSSValue):
2789         (WebCore::fontFamilyFromStyle):
2790         (WebCore::lineHeightFromStyle):
2791         (WebCore::fontSizeFromStyle):
2792         (WebCore::fontStyleFromStyle):
2793         (WebCore::fontVariantFromStyle):
2794         (WebCore::fontWeightFromStyle):
2795         (WebCore::CSSComputedStyleDeclaration::copyProperties):
2796         (WebCore::shapePropertyValue):
2797         (WebCore::ComputedStyleExtractor::copyProperties):
2798         (WebCore::ComputedStyleExtractor::copyPropertiesInSet):
2799         * css/CSSComputedStyleDeclaration.h:
2800         * css/CSSCrossfadeValue.h:
2801         (WebCore::CSSCrossfadeValue::create):
2802         * css/CSSCursorImageValue.cpp:
2803         (WebCore::CSSCursorImageValue::CSSCursorImageValue):
2804         * css/CSSCursorImageValue.h:
2805         (WebCore::CSSCursorImageValue::create):
2806         * css/CSSFilterImageValue.h:
2807         (WebCore::CSSFilterImageValue::create):
2808         * css/CSSFontFaceSrcValue.h:
2809         (WebCore::CSSFontFaceSrcValue::create):
2810         (WebCore::CSSFontFaceSrcValue::createLocal):
2811         * css/CSSFontFeatureValue.h:
2812         (WebCore::CSSFontFeatureValue::create):
2813         * css/CSSFontValue.h:
2814         (WebCore::CSSFontValue::create):
2815         * css/CSSFunctionValue.h:
2816         (WebCore::CSSFunctionValue::create):
2817         * css/CSSGradientValue.h:
2818         (WebCore::CSSLinearGradientValue::create):
2819         (WebCore::CSSLinearGradientValue::clone):
2820         (WebCore::CSSRadialGradientValue::create):
2821         (WebCore::CSSRadialGradientValue::clone):
2822         * css/CSSGridTemplateAreasValue.h:
2823         (WebCore::CSSGridTemplateAreasValue::create):
2824         * css/CSSImageSetValue.h:
2825         (WebCore::CSSImageSetValue::create):
2826         * css/CSSImageValue.h:
2827         (WebCore::CSSImageValue::create):
2828         * css/CSSInheritedValue.h:
2829         (WebCore::CSSInheritedValue::create):
2830         * css/CSSInitialValue.h:
2831         (WebCore::CSSInitialValue::createExplicit):
2832         (WebCore::CSSInitialValue::createImplicit):
2833         * css/CSSKeyframeRule.cpp:
2834         (WebCore::StyleKeyframe::StyleKeyframe):
2835         * css/CSSKeyframeRule.h:
2836         (WebCore::StyleKeyframe::create):
2837         * css/CSSKeyframesRule.h:
2838         (WebCore::StyleRuleKeyframes::create):
2839         (WebCore::StyleRuleKeyframes::copy):
2840         * css/CSSLineBoxContainValue.h:
2841         (WebCore::CSSLineBoxContainValue::create):
2842         * css/CSSParser.cpp:
2843         (WebCore::createPrimitiveValuePair):
2844         (WebCore::CSSParser::parseInlineStyleDeclaration):
2845         (WebCore::CSSParser::parseDeclaration):
2846         (WebCore::CSSParser::createStyleProperties):
2847         (WebCore::CSSParser::createPrimitiveNumericValue):
2848         (WebCore::CSSParser::createPrimitiveStringValue):
2849         (WebCore::CSSParser::addFillValue):
2850         (WebCore::CSSParser::addAnimationValue):
2851         * css/CSSParser.h:
2852         * css/CSSPrimitiveValue.cpp:
2853         (WebCore::CSSPrimitiveValue::formatNumberValue):
2854         * css/CSSPrimitiveValue.h:
2855         (WebCore::CSSPrimitiveValue::createIdentifier):
2856         (WebCore::CSSPrimitiveValue::createParserOperator):
2857         (WebCore::CSSPrimitiveValue::createColor):
2858         (WebCore::CSSPrimitiveValue::create):
2859         (WebCore::CSSPrimitiveValue::createAllowingMarginQuirk):
2860         * css/CSSReflectValue.h:
2861         (WebCore::CSSReflectValue::create):
2862         * css/CSSShadowValue.h:
2863         (WebCore::CSSShadowValue::create):
2864         * css/CSSStyleDeclaration.h:
2865         * css/CSSStyleSheet.cpp:
2866         (WebCore::CSSStyleSheet::create):
2867         (WebCore::CSSStyleSheet::createInline):
2868         (WebCore::CSSStyleSheet::CSSStyleSheet):
2869         * css/CSSStyleSheet.h:
2870         * css/CSSTimingFunctionValue.h:
2871         (WebCore::CSSCubicBezierTimingFunctionValue::create):
2872         (WebCore::CSSStepsTimingFunctionValue::create):
2873         * css/CSSUnicodeRangeValue.h:
2874         (WebCore::CSSUnicodeRangeValue::create):
2875         * css/CSSValue.cpp:
2876         (WebCore::TextCloneCSSValue::create):
2877         * css/CSSValueList.h:
2878         (WebCore::CSSValueList::createCommaSeparated):
2879         (WebCore::CSSValueList::createSpaceSeparated):
2880         (WebCore::CSSValueList::createSlashSeparated):
2881         (WebCore::CSSValueList::createFromParserValueList):
2882         (WebCore::CSSValueList::append):
2883         (WebCore::CSSValueList::prepend):
2884         * css/CSSValuePool.cpp:
2885         (WebCore::CSSValuePool::createIdentifierValue):
2886         (WebCore::CSSValuePool::createColorValue):
2887         (WebCore::CSSValuePool::createValue):
2888         (WebCore::CSSValuePool::createFontFamilyValue):
2889         * css/CSSValuePool.h:
2890         (WebCore::CSSValuePool::createInheritedValue):
2891         (WebCore::CSSValuePool::createImplicitInitialValue):
2892         (WebCore::CSSValuePool::createExplicitInitialValue):
2893         (WebCore::CSSValuePool::createValue):
2894         * css/PropertySetCSSStyleDeclaration.cpp:
2895         (WebCore::PropertySetCSSStyleDeclaration::copyProperties):
2896         * css/PropertySetCSSStyleDeclaration.h:
2897         * css/StyleProperties.cpp:
2898         (WebCore::ImmutableStyleProperties::create):
2899         (WebCore::StyleProperties::immutableCopyIfNeeded):
2900         (WebCore::StyleProperties::copyBlockProperties):
2901         (WebCore::StyleProperties::mutableCopy):
2902         (WebCore::StyleProperties::copyPropertiesInSet):
2903         (WebCore::MutableStyleProperties::create):
2904         * css/StyleProperties.h:
2905         * css/StyleResolver.cpp:
2906         (WebCore::StyleResolver::State::setStyle):
2907         (WebCore::StyleResolver::styleForElement):
2908         (WebCore::StyleResolver::styleForKeyframe):
2909         (WebCore::StyleResolver::styleForPage):
2910         (WebCore::StyleResolver::defaultStyleForElement):
2911         * css/StyleResolver.h:
2912         (WebCore::StyleResolver::State::takeStyle):
2913         (WebCore::StyleResolver::State::setParentStyle):
2914         * css/StyleRule.cpp:
2915         (WebCore::StyleRuleBase::copy):
2916         (WebCore::StyleRule::StyleRule):
2917         (WebCore::StyleRule::create):
2918         (WebCore::StyleRulePage::StyleRulePage):
2919         (WebCore::StyleRuleFontFace::StyleRuleFontFace):
2920         (WebCore::StyleRuleGroup::wrapperInsertRule):
2921         (WebCore::StyleRuleViewport::StyleRuleViewport):
2922         * css/StyleRule.h:
2923         (WebCore::StyleRule::create):
2924         (WebCore::StyleRule::copy):
2925         (WebCore::StyleRuleFontFace::create):
2926         (WebCore::StyleRuleFontFace::copy):
2927         (WebCore::StyleRulePage::create):
2928         (WebCore::StyleRulePage::copy):
2929         (WebCore::StyleRuleMedia::create):
2930         (WebCore::StyleRuleMedia::copy):
2931         (WebCore::StyleRuleSupports::create):
2932         (WebCore::StyleRuleSupports::copy):
2933         (WebCore::StyleRuleRegion::create):
2934         (WebCore::StyleRuleRegion::copy):
2935         (WebCore::StyleRuleViewport::create):
2936         (WebCore::StyleRuleViewport::copy):
2937         * css/StyleRuleImport.cpp:
2938         (WebCore::StyleRuleImport::create):
2939         * css/StyleRuleImport.h:
2940         * css/StyleSheetContents.h:
2941         (WebCore::StyleSheetContents::create):
2942         (WebCore::StyleSheetContents::copy):
2943         * css/WebKitCSSFilterValue.h:
2944         (WebCore::WebKitCSSFilterValue::create):
2945         * css/WebKitCSSResourceValue.h:
2946         (WebCore::WebKitCSSResourceValue::create):
2947         * css/WebKitCSSTransformValue.h:
2948         (WebCore::WebKitCSSTransformValue::create):
2949         * dom/ChildNodeList.h:
2950         * dom/ClassNodeList.cpp:
2951         (WebCore::ClassNodeList::create):
2952         * dom/ClassNodeList.h:
2953         * dom/Document.cpp:
2954         (WebCore::Document::styleForElementIgnoringPendingStylesheets):
2955         * dom/Document.h:
2956         * dom/DocumentSharedObjectPool.cpp:
2957         (WebCore::DocumentSharedObjectPool::cachedShareableElementDataWithAttributes):
2958         * dom/DocumentSharedObjectPool.h:
2959         * dom/DocumentStyleSheetCollection.cpp:
2960         (WebCore::DocumentStyleSheetCollection::addAuthorSheet):
2961         (WebCore::DocumentStyleSheetCollection::addUserSheet):
2962         * dom/DocumentStyleSheetCollection.h:
2963         * dom/Element.cpp:
2964         (WebCore::Element::createElementRenderer):
2965         * dom/Element.h:
2966         * dom/ElementData.cpp:
2967         (WebCore::ShareableElementData::createWithAttributes):
2968         (WebCore::UniqueElementData::create):
2969         (WebCore::ElementData::makeUniqueCopy):
2970         (WebCore::UniqueElementData::makeShareableCopy):
2971         * dom/ElementData.h:
2972         * dom/ElementRareData.h:
2973         (WebCore::ElementRareData::setComputedStyle):
2974         * dom/NameNodeList.h:
2975         * dom/NamedFlowCollection.cpp:
2976         (WebCore::NamedFlowCollection::ensureFlowWithName):
2977         * dom/NamedFlowCollection.h:
2978         * dom/NodeRareData.h:
2979         (WebCore::NodeListsNodeData::ensureChildNodeList):
2980         (WebCore::NodeListsNodeData::ensureEmptyChildNodeList):
2981         (WebCore::NodeListsNodeData::addCacheWithAtomicName):
2982         (WebCore::NodeListsNodeData::addCacheWithQualifiedName):
2983         (WebCore::NodeListsNodeData::addCachedCollection):
2984         * dom/PseudoElement.cpp:
2985         (WebCore::PseudoElement::didRecalcStyle):
2986         * dom/QualifiedName.h:
2987         (WebCore::QualifiedName::QualifiedNameImpl::create):
2988         * dom/TagNodeList.h:
2989         * html/BaseButtonInputType.cpp:
2990         (WebCore::BaseButtonInputType::createInputRenderer):
2991         * html/BaseButtonInputType.h:
2992         * html/FileInputType.cpp:
2993         (WebCore::FileInputType::createInputRenderer):
2994         * html/FileInputType.h:
2995         * html/HTMLAllCollection.cpp:
2996         (WebCore::HTMLAllCollection::create):
2997         * html/HTMLAllCollection.h:
2998         * html/HTMLAppletElement.cpp:
2999         (WebCore::HTMLAppletElement::createElementRenderer):
3000         * html/HTMLAppletElement.h:
3001         * html/HTMLBRElement.cpp:
3002         (WebCore::HTMLBRElement::createElementRenderer):
3003         * html/HTMLBRElement.h:
3004         * html/HTMLButtonElement.cpp:
3005         (WebCore::HTMLButtonElement::createElementRenderer):
3006         * html/HTMLButtonElement.h:
3007         * html/HTMLCanvasElement.cpp:
3008         (WebCore::HTMLCanvasElement::createElementRenderer):
3009         * html/HTMLCanvasElement.h:
3010         * html/HTMLCollection.cpp:
3011         (WebCore::HTMLCollection::create):
3012         * html/HTMLCollection.h:
3013         * html/HTMLDetailsElement.cpp:
3014         (WebCore::HTMLDetailsElement::createElementRenderer):
3015         * html/HTMLDetailsElement.h:
3016         * html/HTMLElement.cpp:
3017         (WebCore::HTMLElement::createElementRenderer):
3018         * html/HTMLElement.h:
3019         * html/HTMLFieldSetElement.cpp:
3020         (WebCore::HTMLFieldSetElement::createElementRenderer):
3021         * html/HTMLFieldSetElement.h:
3022         * html/HTMLFormControlsCollection.cpp:
3023         (WebCore::HTMLFormControlsCollection::create):
3024         * html/HTMLFormControlsCollection.h:
3025         * html/HTMLFrameElement.cpp:
3026         (WebCore::HTMLFrameElement::createElementRenderer):
3027         * html/HTMLFrameElement.h:
3028         * html/HTMLFrameSetElement.cpp:
3029         (WebCore::HTMLFrameSetElement::createElementRenderer):
3030         * html/HTMLFrameSetElement.h:
3031         * html/HTMLIFrameElement.cpp:
3032         (WebCore::HTMLIFrameElement::createElementRenderer):
3033         * html/HTMLIFrameElement.h:
3034         * html/HTMLImageElement.cpp:
3035         (WebCore::HTMLImageElement::createElementRenderer):
3036         * html/HTMLImageElement.h:
3037         * html/HTMLInputElement.cpp:
3038         (WebCore::HTMLInputElement::createElementRenderer):
3039         * html/HTMLInputElement.h:
3040         * html/HTMLLinkElement.cpp:
3041         (WebCore::HTMLLinkElement::setCSSStyleSheet):
3042         * html/HTMLMediaElement.cpp:
3043         (WebCore::HTMLMediaElement::parseAttribute):
3044         * html/HTMLMediaElement.h:
3045         * html/HTMLMeterElement.cpp:
3046         (WebCore::HTMLMeterElement::createElementRenderer):
3047         * html/HTMLMeterElement.h:
3048         * html/HTMLNameCollection.h:
3049         * html/HTMLOptionsCollection.cpp:
3050         (WebCore::HTMLOptionsCollection::create):
3051         * html/HTMLOptionsCollection.h:
3052         * html/HTMLPlugInElement.cpp:
3053         (WebCore::HTMLPlugInElement::createElementRenderer):
3054         * html/HTMLPlugInElement.h:
3055         * html/HTMLPlugInImageElement.cpp:
3056         (WebCore::HTMLPlugInImageElement::createElementRenderer):
3057         * html/HTMLPlugInImageElement.h:
3058         * html/HTMLProgressElement.cpp:
3059         (WebCore::HTMLProgressElement::createElementRenderer):
3060         * html/HTMLProgressElement.h:
3061         * html/HTMLSelectElement.cpp:
3062         (WebCore::HTMLSelectElement::createElementRenderer):
3063         * html/HTMLSelectElement.h:
3064         * html/HTMLSummaryElement.cpp:
3065         (WebCore::HTMLSummaryElement::createElementRenderer):
3066         * html/HTMLSummaryElement.h:
3067         * html/HTMLTableRowsCollection.cpp:
3068         (WebCore::HTMLTableRowsCollection::create):
3069         * html/HTMLTableRowsCollection.h:
3070         * html/HTMLTextAreaElement.cpp:
3071         (WebCore::HTMLTextAreaElement::createElementRenderer):
3072         * html/HTMLTextAreaElement.h:
3073         * html/HTMLVideoElement.cpp:
3074         (WebCore::HTMLVideoElement::createElementRenderer):
3075         * html/HTMLVideoElement.h:
3076         * html/HTMLWBRElement.cpp:
3077         (WebCore::HTMLWBRElement::createElementRenderer):
3078         * html/HTMLWBRElement.h:
3079         * html/HiddenInputType.cpp:
3080         (WebCore::HiddenInputType::createInputRenderer):
3081         * html/HiddenInputType.h:
3082         * html/ImageInputType.cpp:
3083         (WebCore::ImageInputType::createInputRenderer):
3084         * html/ImageInputType.h:
3085         * html/InputType.cpp:
3086         (WebCore::InputType::createInputRenderer):
3087         * html/InputType.h:
3088         * html/LabelsNodeList.h:
3089         * html/RadioNodeList.h:
3090         * html/RangeInputType.cpp:
3091         (WebCore::RangeInputType::createInputRenderer):
3092         * html/RangeInputType.h:
3093         * html/SearchInputType.cpp:
3094         (WebCore::SearchInputType::createInputRenderer):
3095         * html/SearchInputType.h:
3096         * html/TextFieldInputType.cpp:
3097         (WebCore::TextFieldInputType::createInputRenderer):
3098         * html/TextFieldInputType.h:
3099         * html/shadow/DetailsMarkerControl.cpp:
3100         (WebCore::DetailsMarkerControl::createElementRenderer):
3101         * html/shadow/DetailsMarkerControl.h:
3102         * html/shadow/MediaControlElements.cpp:
3103         (WebCore::MediaControlTimelineContainerElement::createElementRenderer):
3104         (WebCore::MediaControlVolumeSliderContainerElement::createElementRenderer):
3105         (WebCore::MediaControlTextTrackContainerElement::createElementRenderer):
3106         * html/shadow/MediaControlElements.h:
3107         * html/shadow/MeterShadowElement.cpp:
3108         (WebCore::MeterInnerElement::createElementRenderer):
3109         * html/shadow/MeterShadowElement.h:
3110         * html/shadow/ProgressShadowElement.cpp:
3111         (WebCore::ProgressInnerElement::createElementRenderer):
3112         * html/shadow/ProgressShadowElement.h:
3113         * html/shadow/SliderThumbElement.cpp:
3114         (WebCore::RenderSliderThumb::RenderSliderThumb):
3115         (WebCore::SliderThumbElement::createElementRenderer):
3116         (WebCore::SliderContainerElement::createElementRenderer):
3117         * html/shadow/SliderThumbElement.h:
3118         * html/shadow/TextControlInnerElements.cpp:
3119         (WebCore::TextControlInnerContainer::createElementRenderer):
3120         (WebCore::TextControlInnerTextElement::createElementRenderer):
3121         * html/shadow/TextControlInnerElements.h:
3122         * html/shadow/mac/ImageControlsButtonElementMac.cpp:
3123         (WebCore::RenderImageControlsButton::RenderImageControlsButton):
3124         (WebCore::ImageControlsButtonElementMac::createElementRenderer):
3125         * html/shadow/mac/ImageControlsButtonElementMac.h:
3126         * html/shadow/mac/ImageControlsRootElementMac.cpp:
3127         (WebCore::RenderImageControls::RenderImageControls):
3128         (WebCore::ImageControlsRootElementMac::createElementRenderer):
3129         * html/shadow/mac/ImageControlsRootElementMac.h:
3130         * html/track/VTTCue.cpp:
3131         (WebCore::VTTCueBox::createElementRenderer):
3132         * html/track/VTTCue.h:
3133         * loader/cache/CachedCSSStyleSheet.cpp:
3134         (WebCore::CachedCSSStyleSheet::saveParsedStyleSheet):
3135         * loader/cache/CachedCSSStyleSheet.h:
3136         * loader/cache/CachedResourceLoader.h:
3137         (WebCore::CachedResourceLoader::create):
3138         * mathml/MathMLInlineContainerElement.cpp:
3139         (WebCore::MathMLInlineContainerElement::createElementRenderer):
3140         * mathml/MathMLInlineContainerElement.h:
3141         * mathml/MathMLMathElement.cpp:
3142         (WebCore::MathMLMathElement::createElementRenderer):
3143         * mathml/MathMLMathElement.h:
3144         * mathml/MathMLMencloseElement.cpp:
3145         (WebCore::MathMLMencloseElement::createElementRenderer):
3146         * mathml/MathMLMencloseElement.h:
3147         * mathml/MathMLSelectElement.cpp:
3148         (WebCore::MathMLSelectElement::createElementRenderer):
3149         * mathml/MathMLSelectElement.h:
3150         * mathml/MathMLTextElement.cpp:
3151         (WebCore::MathMLTextElement::createElementRenderer):
3152         * mathml/MathMLTextElement.h:
3153         * page/Page.cpp:
3154         (WebCore::Page::setStorageNamespaceProvider):
3155         (WebCore::Page::setVisitedLinkStore):
3156         * page/Page.h:
3157         * page/UserMessageHandler.h:
3158         (WebCore::UserMessageHandler::create):
3159         * page/UserMessageHandlersNamespace.h:
3160         (WebCore::UserMessageHandlersNamespace::create):
3161         * page/animation/AnimationController.cpp:
3162         (WebCore::AnimationControllerPrivate::addElementChangeToDispatch):
3163         (WebCore::AnimationController::updateAnimations):
3164         * page/animation/AnimationController.h:
3165         * page/animation/AnimationControllerPrivate.h:
3166         * page/animation/CompositeAnimation.cpp:
3167         (WebCore::CompositeAnimation::animate):
3168         * page/animation/CompositeAnimation.h:
3169         * platform/CalculationValue.cpp:
3170         (WebCore::CalculationValue::create):
3171         * platform/CalculationValue.h:
3172         * platform/Length.cpp:
3173         (WebCore::CalculationValueMap::insert):
3174         (WebCore::Length::Length):
3175         * platform/Length.h:
3176         * platform/graphics/Font.cpp:
3177         (WebCore::FontGlyphsCacheEntry::FontGlyphsCacheEntry):
3178         (WebCore::retrieveOrAddCachedFontGlyphs):
3179         * platform/graphics/FontGlyphs.h:
3180         (WebCore::FontGlyphs::create):
3181         (WebCore::FontGlyphs::createForPlatformFont):
3182         * platform/graphics/Gradient.h:
3183         (WebCore::Gradient::create):
3184         * platform/graphics/GraphicsContext.cpp:
3185         (WebCore::GraphicsContext::setStrokePattern):
3186         (WebCore::GraphicsContext::setFillPattern):
3187         (WebCore::GraphicsContext::setStrokeGradient):
3188         (WebCore::GraphicsContext::setFillGradient):
3189         * platform/graphics/GraphicsContext.h:
3190         * platform/graphics/MediaSourcePrivateClient.h:
3191         * platform/graphics/Pattern.cpp:
3192         (WebCore::Pattern::create):
3193         * platform/graphics/Pattern.h:
3194         * platform/mac/SerializedPlatformRepresentationMac.h:
3195         * platform/mac/SerializedPlatformRepresentationMac.mm:
3196         (WebCore::SerializedPlatformRepresentationMac::create):
3197         * platform/mock/UserMediaClientMock.h:
3198         (WebCore::UserMediaClientRequestNotifier::UserMediaClientRequestNotifier):
3199         * rendering/ClipPathOperation.h:
3200         * rendering/RenderBlock.cpp:
3201         (WebCore::RenderBlock::RenderBlock):
3202         * rendering/RenderBlock.h:
3203         * rendering/RenderBlockFlow.cpp:
3204         (WebCore::RenderBlockFlow::RenderBlockFlow):
3205         * rendering/RenderBlockFlow.h:
3206         * rendering/RenderBox.cpp:
3207         (WebCore::RenderBox::RenderBox):
3208         * rendering/RenderBox.h:
3209         * rendering/RenderBoxModelObject.cpp:
3210         (WebCore::RenderBoxModelObject::RenderBoxModelObject):
3211         * rendering/RenderBoxModelObject.h:
3212         * rendering/RenderButton.cpp:
3213         (WebCore::RenderButton::RenderButton):
3214         * rendering/RenderButton.h:
3215         * rendering/RenderDeprecatedFlexibleBox.cpp:
3216         (WebCore::RenderDeprecatedFlexibleBox::RenderDeprecatedFlexibleBox):
3217         * rendering/RenderDeprecatedFlexibleBox.h:
3218         * rendering/RenderDetailsMarker.cpp:
3219         (WebCore::RenderDetailsMarker::RenderDetailsMarker):
3220         * rendering/RenderDetailsMarker.h:
3221         * rendering/RenderElement.cpp:
3222         (WebCore::RenderElement::RenderElement):
3223         (WebCore::RenderElement::createFor):
3224         (WebCore::RenderElement::setStyle):
3225         * rendering/RenderElement.h:
3226         (WebCore::RenderElement::setStyleInternal):
3227         (WebCore::RenderElement::setAnimatableStyle):
3228         * rendering/RenderEmbeddedObject.cpp:
3229         (WebCore::RenderEmbeddedObject::RenderEmbeddedObject):
3230         (WebCore::RenderEmbeddedObject::createForApplet):
3231         * rendering/RenderEmbeddedObject.h:
3232         * rendering/RenderFieldset.cpp:
3233         (WebCore::RenderFieldset::RenderFieldset):
3234         * rendering/RenderFieldset.h:
3235         * rendering/RenderFileUploadControl.cpp:
3236         (WebCore::RenderFileUploadControl::RenderFileUploadControl):
3237         * rendering/RenderFileUploadControl.h:
3238         * rendering/RenderFlexibleBox.cpp:
3239         (WebCore::RenderFlexibleBox::RenderFlexibleBox):
3240         * rendering/RenderFlexibleBox.h:
3241         * rendering/RenderFlowThread.cpp:
3242         (WebCore::RenderFlowThread::RenderFlowThread):
3243         (WebCore::RenderFlowThread::createFlowThreadStyle):
3244         * rendering/RenderFlowThread.h:
3245         * rendering/RenderFrame.cpp:
3246         (WebCore::RenderFrame::RenderFrame):
3247         * rendering/RenderFrame.h:
3248         * rendering/RenderFrameBase.cpp:
3249         (WebCore::RenderFrameBase::RenderFrameBase):
3250         * rendering/RenderFrameBase.h:
3251         * rendering/RenderFrameSet.cpp:
3252         (WebCore::RenderFrameSet::RenderFrameSet):
3253         * rendering/RenderFrameSet.h:
3254         * rendering/RenderFullScreen.cpp:
3255         (WebCore::RenderFullScreen::RenderFullScreen):
3256         (WebCore::createFullScreenStyle):
3257         (WebCore::RenderFullScreen::createPlaceholder):
3258         * rendering/RenderFullScreen.h:
3259         * rendering/RenderGrid.cpp:
3260         (WebCore::RenderGrid::RenderGrid):
3261         * rendering/RenderGrid.h:
3262         * rendering/RenderHTMLCanvas.cpp:
3263         (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
3264         * rendering/RenderHTMLCanvas.h:
3265         * rendering/RenderIFrame.cpp:
3266         (WebCore::RenderIFrame::RenderIFrame):
3267         * rendering/RenderIFrame.h:
3268         * rendering/RenderImage.cpp:
3269         (WebCore::RenderImage::RenderImage):
3270         * rendering/RenderImage.h:
3271         * rendering/RenderInline.cpp:
3272         (WebCore::RenderInline::RenderInline):
3273         * rendering/RenderInline.h:
3274         * rendering/RenderLayer.cpp:
3275         (WebCore::RenderLayer::calculateClipRects):
3276         * rendering/RenderLayer.h:
3277         * rendering/RenderLayerModelObject.cpp:
3278         (WebCore::RenderLayerModelObject::RenderLayerModelObject):
3279         * rendering/RenderLayerModelObject.h:
3280         * rendering/RenderLineBreak.cpp:
3281         (WebCore::RenderLineBreak::RenderLineBreak):
3282         * rendering/RenderLineBreak.h:
3283         * rendering/RenderListBox.cpp:
3284         (WebCore::RenderListBox::RenderListBox):
3285         * rendering/RenderListBox.h:
3286         * rendering/RenderListItem.cpp:
3287         (WebCore::RenderListItem::RenderListItem):
3288         * rendering/RenderListItem.h:
3289         * rendering/RenderListMarker.cpp:
3290         (WebCore::RenderListMarker::RenderListMarker):
3291         * rendering/RenderListMarker.h:
3292         * rendering/RenderMedia.cpp:
3293         (WebCore::RenderMedia::RenderMedia):
3294         * rendering/RenderMedia.h:
3295         * rendering/RenderMediaControlElements.cpp:
3296         (WebCore::RenderMediaVolumeSliderContainer::RenderMediaVolumeSliderContainer):
3297         (WebCore::RenderMediaControlTimelineContainer::RenderMediaControlTimelineContainer):
3298         (WebCore::RenderTextTrackContainerElement::RenderTextTrackContainerElement):
3299         * rendering/RenderMediaControlElements.h:
3300         * rendering/RenderMenuList.cpp:
3301         (WebCore::RenderMenuList::RenderMenuList):
3302         * rendering/RenderMenuList.h:
3303         * rendering/RenderMeter.cpp:
3304         (WebCore::RenderMeter::RenderMeter):
3305         * rendering/RenderMeter.h:
3306         * rendering/RenderMultiColumnFlowThread.cpp:
3307         (WebCore::RenderMultiColumnFlowThread::RenderMultiColumnFlowThread):
3308         * rendering/RenderMultiColumnFlowThread.h:
3309         * rendering/RenderMultiColumnSet.cpp:
3310         (WebCore::RenderMultiColumnSet::RenderMultiColumnSet):
3311         * rendering/RenderMultiColumnSet.h:
3312         * rendering/RenderMultiColumnSpannerPlaceholder.cpp:
3313         (WebCore::RenderMultiColumnSpannerPlaceholder::RenderMultiColumnSpannerPlaceholder):
3314         * rendering/RenderMultiColumnSpannerPlaceholder.h:
3315         * rendering/RenderNamedFlowFragment.cpp:
3316         (WebCore::RenderNamedFlowFragment::RenderNamedFlowFragment):
3317         (WebCore::RenderNamedFlowFragment::createStyle):
3318         * rendering/RenderNamedFlowFragment.h:
3319         * rendering/RenderNamedFlowThread.cpp:
3320         (WebCore::RenderNamedFlowThread::RenderNamedFlowThread):
3321         * rendering/RenderNamedFlowThread.h:
3322         * rendering/RenderProgress.cpp:
3323         (WebCore::RenderProgress::RenderProgress):
3324         * rendering/RenderProgress.h:
3325         * rendering/RenderQuote.cpp:
3326         (WebCore::RenderQuote::RenderQuote):
3327         * rendering/RenderQuote.h:
3328         * rendering/RenderRegion.cpp:
3329         (WebCore::RenderRegion::RenderRegion):
3330         * rendering/RenderRegion.h:
3331         * rendering/RenderRegionSet.cpp:
3332         (WebCore::RenderRegionSet::RenderRegionSet):
3333         * rendering/RenderRegionSet.h:
3334         * rendering/RenderReplaced.cpp:
3335         (WebCore::RenderReplaced::RenderReplaced):
3336         * rendering/RenderReplaced.h:
3337         * rendering/RenderReplica.cpp:
3338         (WebCore::RenderReplica::RenderReplica):
3339         * rendering/RenderReplica.h:
3340         * rendering/RenderRuby.cpp:
3341         (WebCore::RenderRubyAsInline::RenderRubyAsInline):
3342         (WebCore::RenderRubyAsBlock::RenderRubyAsBlock):
3343         * rendering/RenderRuby.h:
3344         * rendering/RenderRubyBase.cpp:
3345         (WebCore::RenderRubyBase::RenderRubyBase):
3346         * rendering/RenderRubyBase.h:
3347         * rendering/RenderRubyRun.cpp:
3348         (WebCore::RenderRubyRun::RenderRubyRun):
3349         * rendering/RenderRubyRun.h:
3350         * rendering/RenderRubyText.cpp:
3351         (WebCore::RenderRubyText::RenderRubyText):
3352         * rendering/RenderRubyText.h:
3353         * rendering/RenderScrollbarPart.cpp:
3354         (WebCore::RenderScrollbarPart::RenderScrollbarPart):
3355         * rendering/RenderScrollbarPart.h:
3356         * rendering/RenderSearchField.cpp:
3357         (WebCore::RenderSearchField::RenderSearchField):
3358         * rendering/RenderSearchField.h:
3359         * rendering/RenderSlider.cpp:
3360         (WebCore::RenderSlider::RenderSlider):
3361         * rendering/RenderSlider.h:
3362         * rendering/RenderSnapshottedPlugIn.cpp:
3363         (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn):
3364         * rendering/RenderSnapshottedPlugIn.h:
3365         * rendering/RenderTable.cpp:
3366         (WebCore::RenderTable::RenderTable):
3367         * rendering/RenderTable.h:
3368         * rendering/RenderTableCaption.cpp:
3369         (WebCore::RenderTableCaption::RenderTableCaption):
3370         * rendering/RenderTableCaption.h:
3371         * rendering/RenderTableCell.cpp:
3372         (WebCore::RenderTableCell::RenderTableCell):
3373         * rendering/RenderTableCell.h:
3374         * rendering/RenderTableCol.cpp:
3375         (WebCore::RenderTableCol::RenderTableCol):
3376         * rendering/RenderTableCol.h:
3377         * rendering/RenderTableRow.cpp:
3378         (WebCore::RenderTableRow::RenderTableRow):
3379         * rendering/RenderTableRow.h:
3380         * rendering/RenderTableSection.cpp:
3381         (WebCore::RenderTableSection::RenderTableSection):
3382         * rendering/RenderTableSection.h:
3383         * rendering/RenderTextControl.cpp:
3384         (WebCore::RenderTextControl::RenderTextControl):
3385         * rendering/RenderTextControl.h:
3386         * rendering/RenderTextControlMultiLine.cpp:
3387         (WebCore::RenderTextControlMultiLine::RenderTextControlMultiLine):
3388         (WebCore::RenderTextControlMultiLine::createInnerTextStyle):
3389         * rendering/RenderTextControlMultiLine.h:
3390         * rendering/RenderTextControlSingleLine.cpp:
3391         (WebCore::RenderTextControlSingleLine::RenderTextControlSingleLine):
3392         (WebCore::RenderTextControlSingleLine::createInnerTextStyle):
3393         (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
3394         * rendering/RenderTextControlSingleLine.h:
3395         * rendering/RenderVTTCue.cpp:
3396         (WebCore::RenderVTTCue::RenderVTTCue):
3397         * rendering/RenderVTTCue.h:
3398         * rendering/RenderVideo.cpp:
3399         (WebCore::RenderVideo::RenderVideo):
3400         * rendering/RenderVideo.h:
3401         * rendering/RenderView.cpp:
3402         (WebCore::RenderView::RenderView):
3403         * rendering/RenderView.h:
3404         * rendering/RenderWidget.cpp:
3405         (WebCore::RenderWidget::RenderWidget):
3406         * rendering/RenderWidget.h:
3407         * rendering/mathml/RenderMathMLBlock.cpp:
3408         (WebCore::RenderMathMLBlock::RenderMathMLBlock):
3409         * rendering/mathml/RenderMathMLBlock.h:
3410         * rendering/mathml/RenderMathMLFenced.cpp:
3411         (WebCore::RenderMathMLFenced::RenderMathMLFenced):
3412         * rendering/mathml/RenderMathMLFenced.h:
3413         * rendering/mathml/RenderMathMLFraction.cpp:
3414         (WebCore::RenderMathMLFraction::RenderMathMLFraction):
3415         * rendering/mathml/RenderMathMLFraction.h:
3416         * rendering/mathml/RenderMathMLMath.cpp:
3417         (WebCore::RenderMathMLMath::RenderMathMLMath):
3418         * rendering/mathml/RenderMathMLMath.h:
3419         * rendering/mathml/RenderMathMLMenclose.cpp:
3420         (WebCore::RenderMathMLMenclose::RenderMathMLMenclose):
3421         * rendering/mathml/RenderMathMLMenclose.h:
3422         * rendering/mathml/RenderMathMLOperator.cpp:
3423         (WebCore::RenderMathMLOperator::RenderMathMLOperator):
3424         * rendering/mathml/RenderMathMLOperator.h:
3425         * rendering/mathml/RenderMathMLRadicalOperator.cpp:
3426         (WebCore::RenderMathMLRadicalOperator::RenderMathMLRadicalOperator):
3427         * rendering/mathml/RenderMathMLRadicalOperator.h:
3428         * rendering/mathml/RenderMathMLRoot.cpp:
3429         (WebCore::RenderMathMLRoot::RenderMathMLRoot):
3430         * rendering/mathml/RenderMathMLRoot.h:
3431         * rendering/mathml/RenderMathMLRow.cpp:
3432         (WebCore::RenderMathMLRow::RenderMathMLRow):
3433         * rendering/mathml/RenderMathMLRow.h:
3434         * rendering/mathml/RenderMathMLScripts.cpp:
3435         (WebCore::RenderMathMLScripts::RenderMathMLScripts):
3436         * rendering/mathml/RenderMathMLScripts.h:
3437         * rendering/mathml/RenderMathMLSpace.cpp:
3438         (WebCore::RenderMathMLSpace::RenderMathMLSpace):
3439         * rendering/mathml/RenderMathMLSpace.h:
3440         * rendering/mathml/RenderMathMLSquareRoot.cpp:
3441         (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot):
3442         * rendering/mathml/RenderMathMLSquareRoot.h:
3443         * rendering/mathml/RenderMathMLToken.cpp:
3444         (WebCore::RenderMathMLToken::RenderMathMLToken):
3445         * rendering/mathml/RenderMathMLToken.h:
3446         * rendering/mathml/RenderMathMLUnderOver.cpp:
3447         (WebCore::RenderMathMLUnderOver::RenderMathMLUnderOver):
3448         * rendering/mathml/RenderMathMLUnderOver.h:
3449         * rendering/style/BasicShapes.cpp:
3450         (WebCore::BasicShapeCircle::blend):
3451         (WebCore::BasicShapeEllipse::blend):
3452         (WebCore::BasicShapePolygon::blend):
3453         (WebCore::BasicShapeInset::blend):
3454         * rendering/style/BasicShapes.h:
3455         * rendering/style/DataRef.h:
3456         (WebCore::DataRef::DataRef):
3457         * rendering/style/NinePieceImage.cpp:
3458         (WebCore::NinePieceImageData::copy):
3459         * rendering/style/NinePieceImage.h:
3460         (WebCore::NinePieceImageData::create):
3461         * rendering/style/RenderStyle.cpp:
3462         (WebCore::RenderStyle::create):
3463         (WebCore::RenderStyle::createDefaultStyle):
3464         (WebCore::RenderStyle::createAnonymousStyleWithDisplay):
3465         (WebCore::RenderStyle::clone):
3466         (WebCore::RenderStyle::createStyleInheritingFromPseudoStyle):
3467         * rendering/style/RenderStyle.h:
3468         * rendering/style/SVGRenderStyle.cpp:
3469         (WebCore::SVGRenderStyle::createDefaultStyle):
3470         (WebCore::SVGRenderStyle::copy):
3471         * rendering/style/SVGRenderStyle.h:
3472         (WebCore::SVGRenderStyle::create):
3473         * rendering/style/SVGRenderStyleDefs.cpp:
3474         (WebCore::StyleFillData::copy):
3475         (WebCore::StyleStrokeData::copy):
3476         (WebCore::StyleStopData::copy):
3477         (WebCore::StyleTextData::copy):
3478         (WebCore::StyleMiscData::copy):
3479         (WebCore::StyleShadowSVGData::copy):
3480         (WebCore::StyleResourceData::cop