cd3f3f4bb6e446eb78dfa024a0a96fa1f4cbab0e
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
2
3         More FTL build scaffolding
4         https://bugs.webkit.org/show_bug.cgi?id=128330
5
6         Reviewed by Geoffrey Garen.
7
8         The FTL already has tests.
9
10         * Configurations/FeatureDefines.xcconfig:
11
12 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
13
14         Remove some unused functions from SerializedScriptValue
15         https://bugs.webkit.org/show_bug.cgi?id=128407
16
17         Reviewed by Anders Carlsson.
18
19         * bindings/js/SerializedScriptValue.cpp:
20         (WebCore::SerializedScriptValue::undefinedValue):
21         (WebCore::SerializedScriptValue::nullValue):
22         * bindings/js/SerializedScriptValue.h:
23
24 2014-02-07  Brady Eidson  <beidson@apple.com>
25
26         IDB: Some Mozilla cursor mutation tests fail
27         <rdar://problem/16011680> and https://bugs.webkit.org/show_bug.cgi?id=128374
28
29         Reviewed by Sam Weinig.
30
31         Tested by:
32         storage/indexeddb/mozilla/cursor-mutation-objectstore-only.html
33         storage/indexeddb/mozilla/cursor-mutation.html
34
35         The previous comment about LevelDB was wrong.
36         Apparently calling onSuccess() with a null SharedBuffer means the cursor reached the end.
37         Update to distinguish between an error and reaching the end:
38         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
39         (WebCore::CursorAdvanceOperation::perform):
40         (WebCore::CursorIterationOperation::perform):
41  
42         Add a new IDBKey type - Maximum - To be used in comparisons between keys.
43         This will allow the DatabaseProcess to operate on the range of all keys:
44         * Modules/indexeddb/IDBKey.cpp:
45         (WebCore::IDBKey::compare):
46         * Modules/indexeddb/IDBKey.h:
47
48         * Modules/indexeddb/IDBKeyData.cpp:
49         (WebCore::IDBKeyData::IDBKeyData):
50         (WebCore::IDBKeyData::maybeCreateIDBKey):
51         (WebCore::IDBKeyData::isolatedCopy):
52         (WebCore::IDBKeyData::encode):
53         (WebCore::IDBKeyData::decode):
54         (WebCore::IDBKeyData::compare):
55         (WebCore::IDBKeyData::loggingString):
56         * Modules/indexeddb/IDBKeyData.h:
57         (WebCore::IDBKeyData::minimum):
58         (WebCore::IDBKeyData::maximum):
59
60         * bindings/js/IDBBindingUtilities.cpp:
61         (WebCore::idbKeyToJSValue):
62
63         Remove an unused callback:
64         * Modules/indexeddb/IDBCallbacks.h:
65         * Modules/indexeddb/IDBRequest.h:
66
67 2014-02-07  Roger Fong  <roger_fong@apple.com>
68
69         CGContextGetUserSpaceToDeviceSpaceTransform returns the wrong value on Windows.
70         https://bugs.webkit.org/show_bug.cgi?id=128395.
71         
72         Rubberstamped by Zalan Bujtas.
73
74         The call essentially returns 0 and causes an assertion failure when running many layout tests.
75
76         * platform/graphics/cg/GraphicsContextCG.cpp: Don't make the call on Windows. We default to 1.
77         (WebCore::GraphicsContext::platformInit):
78
79 2014-02-07  Dan Bernstein  <mitz@apple.com>
80
81         iOS build fix.
82
83         * platform/PlatformKeyboardEvent.h: Fixed a typo.
84
85 2014-02-07  Dan Bernstein  <mitz@apple.com>
86
87         Stop using PLATFORM(MAC) in WebCore/platform except where it means “OS X but not iOS”
88         https://bugs.webkit.org/show_bug.cgi?id=128404
89
90         Reviewed by Anders Carlsson.
91
92         * Configurations/WebCore.xcconfig: Removed KeyEventMac.mm from
93         EXCLUDED_SOURCE_FILE_NAMES_iphoneos, because that file contains !PLATFORM(IOS) guards.
94         Removed WheelEventMac.mm from the same definition, because that file no longer exists.
95         * platform/ContentFilter.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
96         * platform/ContextMenu.h: Ditto.
97         * platform/ContextMenuItem.h: Ditto.
98         * platform/Cursor.cpp: Ditto.
99         * platform/Cursor.h: Ditto.
100         * platform/DragData.cpp: Ditto.
101         * platform/DragImage.cpp: Ditto.
102         * platform/Language.cpp:
103         (WebCore::displayNameForLanguageLocale): Changed PLATFORM(MAC) to USE(CF) && !PLATFORM(WIN).
104         * platform/LocalizedStrings.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
105         (WebCore::contextMenuItemTagSearchWeb):
106         * platform/LocalizedStrings.h: Ditto.
107         * platform/MIMETypeRegistry.cpp: Ditto.
108         (WebCore::initializeSupportedImageMIMETypesForEncoding):
109         * platform/PasteboardStrategy.h: Ditto.
110         * platform/PlatformKeyboardEvent.h: Ditto.
111         * platform/PlatformMenuDescription.h: Ditto.
112         * platform/PlatformSpeechSynthesizer.h: Ditto.
113         * platform/PlatformWheelEvent.h: Ditto.
114         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
115         * platform/SchemeRegistry.cpp: Ditto.
116         (WebCore::localURLSchemes):
117         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
118         (WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely):
119         * platform/ScrollAnimator.cpp: Ditto.
120         (WebCore::ScrollAnimator::handleWheelEvent):
121         * platform/ScrollAnimator.h: Ditto.
122         * platform/ScrollView.cpp: Ditto.
123         * platform/ScrollView.h: Ditto.
124         * platform/ScrollbarThemeComposite.h: Ditto.
125         * platform/SharedBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSData-related
126         code.
127         * platform/URL.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSURL-related code.
128         * platform/Widget.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
129         * platform/Widget.h: Ditto.
130         * platform/audio/AudioSession.cpp: Changed !PLATFORM(MAC) && !PLATFORM(IOS) to
131         !PLATFORM(COCOA).
132         * platform/audio/HRTFElevation.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
133         * platform/audio/MediaSessionManager.cpp: Ditto.
134         * platform/audio/mac/AudioSessionMac.cpp: Updated comment.
135         * platform/audio/mac/MediaSessionManagerMac.cpp: Removed PLATFORM(MAC) from Cocoa-only file.
136         * platform/cf/SharedBufferCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION) and updated
137         comment.
138         * platform/cf/URLCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION).
139         * platform/graphics/BitmapImage.h: Changed one instance of PLATFORM(MAC) to
140         USE(CG) || USE(APPKIT), and another to PLATFORM(COCOA).
141         * platform/graphics/DisplayRefreshMonitor.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
142         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
143         * platform/graphics/DisplayRefreshMonitor.h: Ditto.
144         * platform/graphics/FloatPoint.h: Collapsed nested #ifs into a single #if.
145         * platform/graphics/FloatRect.h: Ditto.
146         * platform/graphics/FloatSize.h: Ditto.
147         * platform/graphics/Font.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
148         * platform/graphics/Font.h: Ditto.
149         * platform/graphics/FontCache.cpp: Ditto.
150         (WebCore::FontCache::getFontData):
151         * platform/graphics/FontCache.h: Ditto. Also removed redundant friend class declaration.
152         * platform/graphics/FontGlyphs.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
153         (WebCore::FontGlyphs::glyphDataAndPageForCharacter):
154         * platform/graphics/GlyphPage.h: Ditto.
155         * platform/graphics/GraphicsContext3D.h: Ditto.
156         * platform/graphics/Image.h: Changed PLATFORM(MAC) to USE(APPKIT) around use of NSImage.
157         Changed another PLATFORM(MAC) to PLATFORM(COCOA).
158         * platform/graphics/IntRect.h: Collapsed nested #ifs into a single #if.
159         * platform/graphics/IntSize.h: Ditto.
160         * platform/graphics/MediaPlayer.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
161         (WebCore::installedMediaEngines):
162         (WebCore::MediaPlayer::supportsType):
163         * platform/graphics/SimpleFontData.cpp: Ditto.
164         (WebCore::SimpleFontData::nonSyntheticItalicFontData):
165         (WebCore::SimpleFontData::DerivedFontData::~DerivedFontData):
166         * platform/graphics/SimpleFontData.h: Ditto.
167         * platform/graphics/TiledBacking.h: Ditto.
168         * platform/graphics/ca/GraphicsLayerCA.cpp: Ditto.
169         (WebCore::GraphicsLayerCA::filtersCanBeComposited):
170         (WebCore::GraphicsLayerCA::createPlatformCALayer):
171         * platform/graphics/ca/LayerFlushScheduler.h: Ditto.
172         * platform/graphics/ca/PlatformCAAnimation.h: Ditto.
173         * platform/graphics/ca/PlatformCAFilters.h: Ditto.
174         * platform/graphics/ca/PlatformCALayer.h: Ditto.
175         * platform/graphics/cg/BitmapImageCG.cpp: Ditto.
176         * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
177         (WebCore::GraphicsContext::setAllowsFontSmoothing):
178         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h: Ditto.
179         * platform/graphics/cg/ImageBufferCG.cpp: Ditto.
180         * platform/graphics/cg/ImageBufferDataCG.h: Ditto.
181         * platform/graphics/cg/ImageCG.cpp: Ditto.
182         * platform/graphics/cg/ImageSourceCG.cpp: Ditto.
183         (WebCore::ImageSource::setData):
184         * platform/graphics/cg/ImageSourceCG.h: Ditto.
185         * platform/graphics/cg/PathCG.cpp: Ditto.
186         (WebCore::Path::platformAddPathForRoundedRect):
187         * platform/graphics/cg/PatternCG.cpp: Ditto.
188         * platform/graphics/gpu/DrawingBuffer.h: Ditto.
189         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
190         (WebCore::MediaPlayerPrivateQTKit::createQTMovieView): Removed PLATFORM(MAC) guards, since
191         this file is only used on Mac and iOS.
192         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
193         (WebCore::Extensions3DOpenGL::supportsExtension): Changed the GL_EXT_draw_buffers check to
194         match the implementation.
195         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: Changed PLATFORM(MAC) to
196         PLATFORM(COCOA).
197         * platform/mac/KeyEventMac.mm: Added !PLATFORM(IOS).
198         * platform/mac/PlatformEventFactoryMac.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
199         * platform/mac/WebCoreSystemInterface.h: Ditto. Removed redundant check for PLATFORM(MAC).
200         * platform/mac/WebCoreSystemInterface.mm: Removed redundant check for PLATFORM(MAC).
201         * platform/network/Credential.h: Changed PLATFORM(IOS) || PLATFORM(MAC) to PLATFORM(COCOA).
202         * platform/network/NetworkStateNotifier.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
203         * platform/network/NetworkStorageSession.h: Ditto.
204         * platform/network/NetworkingContext.h: Ditto.
205         * platform/network/ProtectionSpace.cpp: Ditto.
206         (WebCore::ProtectionSpace::receivesCredentialSecurely):
207         * platform/network/ResourceHandle.cpp: Ditto.
208         (WebCore::ResourceHandle::clearAuthentication):
209         (WebCore::ResourceHandle::shouldContentSniffURL):
210         * platform/network/ResourceHandle.h: Ditto.
211         * platform/network/ResourceHandleClient.cpp: Ditto.
212         * platform/network/ResourceHandleClient.h: Ditto.
213         * platform/network/ResourceHandleInternal.h: Ditto.
214         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
215         * platform/network/ResourceRequestBase.cpp: Ditto.
216         * platform/network/cf/AuthenticationCF.h: Ditto.
217         * platform/network/cf/CookieStorageCFNet.cpp: Ditto.
218         * platform/network/cf/CredentialStorageCFNet.cpp: Ditto.
219         * platform/network/cf/FormDataStreamCFNet.cpp: Ditto.
220         * platform/network/cf/NetworkStorageSessionCFNet.cpp: Ditto.
221         (WebCore::NetworkStorageSession::switchToNewTestingSession):
222         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
223         * platform/network/cf/ResourceError.h: Ditto.
224         * platform/network/cf/ResourceHandleCFNet.cpp: Ditto.
225         (WebCore::ResourceHandle::createCFURLConnection):
226         * platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp:
227         * platform/network/cf/ResourceRequest.h: Ditto.
228         (WebCore::ResourceRequest::ResourceRequest):
229         * platform/network/cf/ResourceRequestCFNet.cpp: Ditto.
230         (WebCore::ResourceRequest::doUpdatePlatformRequest):
231         (WebCore::ResourceRequest::doUpdatePlatformHTTPBody):
232         (WebCore::ResourceRequest::setStorageSession):
233         * platform/network/cf/ResourceResponse.h: Ditto.
234         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp:
235         (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse):
236         * platform/network/mac/ResourceResponseMac.mm: Ditto.
237         * platform/posix/FileSystemPOSIX.cpp: Changed PLATFORM(MAC) to OS(DARWIN) &&
238         !PLATFORM(EFL) && !PLATFORM(GTK).
239         * platform/text/TextBoundaries.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
240
241 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
242
243         Revert r154384 and r154674 as they broke selection rect computations for text with ligatures.
244
245         * platform/graphics/Font.cpp:
246         (WebCore::Font::drawText):
247         (WebCore::Font::drawEmphasisMarks):
248         (WebCore::Font::selectionRectForText):
249         (WebCore::Font::offsetForPosition):
250         * platform/graphics/FontFastPath.cpp:
251         (WebCore::Font::getGlyphsAndAdvancesForSimpleText):
252         (WebCore::Font::selectionRectForSimpleText):
253         (WebCore::Font::offsetForPositionForSimpleText):
254         * platform/graphics/GlyphBuffer.h:
255         * platform/graphics/WidthIterator.cpp:
256         (WebCore::WidthIterator::WidthIterator):
257         (WebCore::WidthIterator::advanceInternal):
258         (WebCore::WidthIterator::advanceOneCharacter):
259         * platform/graphics/WidthIterator.h:
260
261 2014-02-07  Benjamin Poulain  <bpoulain@apple.com>
262
263         [WK2] Add support for text document viewport configuration
264         https://bugs.webkit.org/show_bug.cgi?id=128359
265
266         Reviewed by Simon Fraser.
267
268         Define a set of ViewportParameters suitable for displaying text documents.
269         Add a documents class for text document to differentiate them from other type of documents.
270
271         * WebCore.exp.in:
272         * dom/Document.h:
273         (WebCore::Document::isTextDocument):
274         * html/TextDocument.cpp:
275         (WebCore::TextDocument::TextDocument):
276         * page/ViewportConfiguration.cpp:
277         (WebCore::ViewportConfiguration::ViewportConfiguration):
278         (WebCore::ViewportConfiguration::webpageParameters):
279         (WebCore::ViewportConfiguration::plainTextParameters):
280         * page/ViewportConfiguration.h:
281
282 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
283
284         FloatingObject::unsafeClone should not copy m_originatingLine
285         https://bugs.webkit.org/show_bug.cgi?id=128381
286
287         Reviewed by Andreas Kling.
288
289         Copying the originatingLine allows to break the invariant that the
290         floating object must only contain lines that are owned by the renderer
291         it is attached to.
292
293         * rendering/FloatingObjects.cpp:
294         (WebCore::FloatingObject::unsafeClone):
295
296 2014-02-07  Brendan Long  <b.long@cablelabs.com>
297
298         Update TextTrack API to current spec
299         https://bugs.webkit.org/show_bug.cgi?id=122218
300
301         Refactoring VTTCue out of TextTrackCue.
302
303         Reviewed by Eric Carlson.
304
305         Test: media/track/track-vttcue.html
306
307         * CMakeLists.txt: Add VTTCue and rename RenderTextTrackCue to RenderVTTCue.
308         * DerivedSources.cpp: Same.
309         * DerivedSources.make: Same.
310         * GNUmakefile.list.am: Same.
311         * PlatformGTK.cmake:  Same.
312         * WebCore.vcxproj/WebCore.vcxproj: Same.
313         * WebCore.vcxproj/WebCore.vcxproj.filters: Same.
314         * WebCore.xcodeproj/project.pbxproj: Same.
315         * bindings/js/JSTextTrackCueCustom.cpp:
316         (WebCore::toJS): Use VTTCue DOM wrapper for VTTCue and its subclasses.
317         * html/HTMLMediaElement.cpp:
318         (WebCore::HTMLMediaElement::updateActiveTextTrackCues): Convert to VTTCue as needed.
319         (WebCore::HTMLMediaElement::textTrackRemoveCue): Same.
320         * html/HTMLMediaElement.h: Only print cue.text in debug output if the cue type has a .text attribute
321         * html/shadow/MediaControlElements.cpp:
322         (WebCore::MediaControlTextTrackContainerElement::updateDisplay): Convert to VTTCue as needed, and fix TextTrackCueBox to VTTCueBox.
323         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired): Convert to VTTCue as needed.
324         * html/track/InbandGenericTextTrack.cpp:
325         (WebCore::InbandGenericTextTrack::addGenericCue): Use refactored VTTCue attributes.
326         * html/track/InbandWebVTTTextTrack.cpp:
327         (WebCore::InbandWebVTTTextTrack::newCuesParsed): Use VTTCue's constructor instead of deprecated TextTrackCue constructor.
328         * html/track/TextTrack.cpp:
329         (WebCore::TextTrack::setMode): Convert to VTTCue as needed.
330         (WebCore::TextTrack::hasCue): Make this function only accept VTTCues, since it's only used for them anyway, and convert existing cues to VTTCues as needed.
331         * html/track/TextTrack.h: Same as hasCue above.
332         * html/track/TextTrackCue.cpp: Refactor a lot of code out. Everything that was removed went to VTTCue.cpp.
333         (WebCore::TextTrackCue::create): For backwards compatibility, just call VTTCue::create().
334         (WebCore::TextTrackCue::TextTrackCue): Refactor a lot of code out.
335         (WebCore::TextTrackCue::~TextTrackCue): Same.
336         (WebCore::TextTrackCue::didChange): Same.
337         (WebCore::TextTrackCue::setIsActive): Same.
338         * html/track/TextTrackCue.h: Same.
339         * html/track/TextTrackCue.idl: Remove VTTCue attributes and add custom toJS function.
340         * html/track/TextTrackCueGeneric.cpp: Use VTTCue instead of TextTrackCue.
341         * html/track/TextTrackCueGeneric.h: Same.
342         * html/track/VTTCue.cpp: Copied from Source/WebCore/html/track/TextTrackCue.cpp.
343         * html/track/VTTCue.h: Copied from Source/WebCore/html/track/TextTrackCue.h.
344         * html/track/VTTCue.idl: Copied from Source/WebCore/html/track/TextTrackCue.idl.
345         * loader/TextTrackLoader.cpp:
346         (WebCore::TextTrackLoader::getNewCues): Use VTTCue instead of TextTrackCue.
347         * page/CaptionUserPreferencesMediaAF.cpp:
348         (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride): Use VTTCueBox instead of TextTrackCueBox.
349         * rendering/RenderVTTCue.cpp: Renamed from Source/WebCore/rendering/RenderTextTrackCue.cpp. Changed to use VTTCue instead of TextTrackCue.
350         * rendering/RenderVTTCue.h: Renamed from Source/WebCore/rendering/RenderTextTrackCue.h. Changed to use VTTCue instead of TextTrackCue.
351         * rendering/RenderingAllInOne.cpp: Rename RenderTextTrackCue to RenderVTTCue.
352
353 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
354
355         Should report user input to PageThrottler
356         https://bugs.webkit.org/show_bug.cgi?id=128398
357
358         Reviewed by Tim Horton.
359
360         Make sure we wake from AppNap if there is user interaction.
361
362         * page/PageThrottler.h:
363         (WebCore::PageThrottler::didReceiveUserInput):
364         (WebCore::PageThrottler::pluginDidEvaluate):
365             - added, these call reportInterestingEvent()
366
367 2014-02-07  Jer Noble  <jer.noble@apple.com>
368
369         Unreviewed build fix for 32-bit iOS.
370
371         Use magic ? values to allow the exported symbol to be different on 32- and 64-bit builds.
372
373         * WebCore.exp.in:
374
375 2014-02-07  Anders Carlsson  <andersca@apple.com>
376
377         Convert ProgressTracker to std::chrono
378         https://bugs.webkit.org/show_bug.cgi?id=128377
379
380         Reviewed by Andreas Kling.
381
382         * loader/ProgressTracker.cpp:
383         (WebCore::ProgressTracker::ProgressTracker):
384         (WebCore::ProgressTracker::reset):
385         (WebCore::ProgressTracker::progressStarted):
386         (WebCore::ProgressTracker::finalProgressComplete):
387         (WebCore::ProgressTracker::incrementProgress):
388         * loader/ProgressTracker.h:
389
390 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
391
392         32-bit build fix.
393
394         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
395         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
396
397 2014-02-07  Mihai Tica  <mitica@adobe.com>
398
399         [CSS Background Blending] Unprefix the -webkit-background-blend-mode property
400
401         https://bugs.webkit.org/show_bug.cgi?id=128270
402
403         Reviewed by Dean Jackson.
404
405         This patch consist of unprefixing the -webkit-background-blend-mode.
406         The property now changes to background-blend-mode.
407
408         * css/CSSComputedStyleDeclaration.cpp:
409         (WebCore::ComputedStyleExtractor::propertyValue):
410         * css/CSSParser.cpp:
411         (WebCore::CSSParser::parseValue):
412         (WebCore::CSSParser::parseFillProperty):
413         * css/CSSPropertyNames.in:
414         * css/DeprecatedStyleBuilder.cpp:
415         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
416
417 2014-02-07  Samuel White  <samuel_white@apple.com>
418
419         AX: Find and select text with respect to insertion point using accessibility API.
420         https://bugs.webkit.org/show_bug.cgi?id=128026
421
422         Reviewed by Chris Fleizach.
423
424         Added facilities to support semi-ambiguous text selection through the accessibility API. All
425         requests are handled with respect to the current selection. The requests are disambiguated in
426         WebCore using passed parameters such as: SelectStringAfterSelection , ..Before.., ..ClosestTo...,
427         etc. Callers can also supply an array of strings to select and the closest that matches the
428         disambiguation criteria will be used.
429
430         Test: platform/mac/accessibility/select-text.html
431
432         * accessibility/AccessibilityObject.cpp:
433         (WebCore::AccessibilityObject::rangeClosestToRange):
434         (WebCore::AccessibilityObject::rangeOfStringClosestToRangeInDirection):
435         (WebCore::AccessibilityObject::selectionRange):
436         (WebCore::AccessibilityObject::selectText):
437         (WebCore::AccessibilityObject::frame):
438         * accessibility/AccessibilityObject.h:
439         (WebCore::AccessibilitySelectTextCriteria::AccessibilitySelectTextCriteria):
440         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
441         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
442         (-[WebAccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
443         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
444         * dom/Position.cpp:
445         (WebCore::Position::positionCountBetweenPositions):
446         * dom/Position.h:
447
448 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
449
450         FloatingObject m_paginationStrut should be LayoutUnit
451         https://bugs.webkit.org/show_bug.cgi?id=119808
452
453         Reviewed by Andreas Kling.
454
455         Make the paginationStrut in FloatingObject have the same type as all
456         of the other paginationStruts in the code.
457
458         * rendering/FloatingObjects.h:
459         (WebCore::FloatingObject::paginationStrut):
460         (WebCore::FloatingObject::setPaginationStrut):
461         * rendering/RenderBlockLineLayout.cpp:
462         (WebCore::RenderBlockFlow::positionNewFloatOnLine):
463
464 2014-02-06  Brady Eidson  <beidson@apple.com>
465
466         IDB: storage/indexeddb/create-index-with-integer-keys.html fails
467         <rdar://problem/16002857> and https://bugs.webkit.org/show_bug.cgi?id=128316
468
469         Reviewed by Geoff Garen.
470
471         Tested by storage/indexeddb/create-index-with-integer-keys.html (and probably some others)
472
473         * Modules/indexeddb/IDBCursor.cpp:
474         (WebCore::IDBCursor::update): Update createIDBKeyFromScriptValueAndKeyPath usage.
475         (WebCore::IDBCursor::setValueReady): Update createIDBKeyFromScriptValueAndKeyPath usage.
476
477         * Modules/indexeddb/IDBObjectStore.cpp:
478         (WebCore::IDBObjectStore::put): Update usage of binding utilities.
479
480         * Modules/indexeddb/IDBRequest.cpp:
481         (WebCore::IDBRequest::onSuccess): Update createIDBKeyFromScriptValueAndKeyPath usage.
482
483         * bindings/js/IDBBindingUtilities.cpp:
484         (WebCore::internalCreateIDBKeyFromScriptValueAndKeyPath):
485         (WebCore::createIDBKeyFromScriptValueAndKeyPath): Changed to take an ExecState*.
486         (WebCore::deserializeIDBValueBuffer): Added new version that starts with ExecState* and Vector<uint8_t>
487           instead of RequestState and SharedBuffer.
488         (WebCore::generateIndexKeysForValue): Moved from IDBObjectStore.cpp and changed to take an ExecState*
489         * bindings/js/IDBBindingUtilities.h:
490
491         Added new blob fetcher that works with uint8_t buffers:
492         * platform/sql/SQLiteStatement.cpp:
493         (WebCore::SQLiteStatement::getColumnBlobAsVector):
494         * platform/sql/SQLiteStatement.h:
495
496         * WebCore.exp.in:
497
498 2014-02-07  Frédéric Wang  <fred.wang@free.fr>
499
500         childShouldCreateRenderer should return false for the mspace element
501         https://bugs.webkit.org/show_bug.cgi?id=128325
502
503         Reviewed by Chris Fleizach.
504
505         The mspace element can not have children so this makes its
506         childShouldCreateRenderer always return false.
507
508         Test: mathml/presentation/mspace-children.html
509
510         * mathml/MathMLTextElement.cpp:
511         (WebCore::MathMLTextElement::childShouldCreateRenderer):
512
513 2014-02-07  Javier Fernandez  <jfernandez@igalia.com>
514
515         [CSS Grid Layout] Rename grid-definition-{columns|rows} to match the new syntax
516         https://bugs.webkit.org/show_bug.cgi?id=127989
517
518         Reviewed by Andreas Kling.
519
520         In the latest WD, grid-definition-{columns|rows} were renamed to grid-template-{columns|rows}.
521
522         * css/CSSComputedStyleDeclaration.cpp:
523         (WebCore::isLayoutDependent):
524         (WebCore::ComputedStyleExtractor::propertyValue):
525         * css/CSSParser.cpp:
526         (WebCore::CSSParser::parseValue):
527         * css/CSSPropertyNames.in:
528         * css/StyleResolver.cpp:
529         (WebCore::StyleResolver::applyProperty):
530
531 2014-02-07  Andreas Kling  <akling@apple.com>
532
533         CTTE: DocumentThreadableLoader always has a Document.
534         <https://webkit.org/b/128364>
535
536         DocumentThreadableLoader always has an "owner" Document, so store
537         that as a reference instead of a pointer. Removed some unnecessary
538         assertions exposed by this change.
539
540         Reviewed by Antti Koivisto.
541
542         * loader/DocumentThreadableLoader.cpp:
543         (WebCore::DocumentThreadableLoader::loadResourceSynchronously):
544         (WebCore::DocumentThreadableLoader::create):
545         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
546         (WebCore::DocumentThreadableLoader::didReceiveResponse):
547         (WebCore::DocumentThreadableLoader::didReceiveData):
548         (WebCore::DocumentThreadableLoader::didFinishLoading):
549         (WebCore::DocumentThreadableLoader::didFail):
550         (WebCore::DocumentThreadableLoader::preflightFailure):
551         (WebCore::DocumentThreadableLoader::loadRequest):
552         (WebCore::DocumentThreadableLoader::securityOrigin):
553         * loader/DocumentThreadableLoader.h:
554         * loader/ThreadableLoader.cpp:
555         (WebCore::ThreadableLoader::create):
556         (WebCore::ThreadableLoader::loadResourceSynchronously):
557         * loader/WorkerThreadableLoader.cpp:
558         (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
559
560 2014-02-07  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
561
562         Vector-effect updates require a re-layout
563         https://bugs.webkit.org/show_bug.cgi?id=127553
564
565         Reviewed by Andreas Kling.
566
567         As noted in the stale SVGRenderStyle::diff() comment, now that layout() observes vector-effect
568         we need to trigger a re-layout on attribute changes.
569
570         Merged from Blink: https://src.chromium.org/viewvc/blink?revision=152570&view=revision
571
572         Tests: svg/custom/non-scaling-stroke-update-expected.svg
573                svg/custom/non-scaling-stroke-update.svg
574
575         * rendering/style/SVGRenderStyle.cpp:
576         (WebCore::SVGRenderStyle::diff):
577
578 2014-02-07  Laszlo Vidacs  <lvidacs.u-szeged@partner.samsung.com>
579
580         Renaming isTableElement() to isRenderedTable() as per the FIXME comment
581         https://bugs.webkit.org/show_bug.cgi?id=127769
582
583         Reviewed by Andreas Kling.
584
585         Rename method and use IsTable() instead of local type checking.
586
587         * dom/Position.cpp:
588         (WebCore::Position::parentAnchoredEquivalent):
589         (WebCore::Position::upstream):
590         (WebCore::Position::downstream):
591         (WebCore::Position::isCandidate):
592         * dom/PositionIterator.cpp:
593         (WebCore::PositionIterator::isCandidate):
594         * editing/CompositeEditCommand.cpp:
595         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
596         (WebCore::CompositeEditCommand::moveParagraphWithClones):
597         * editing/FrameSelection.cpp:
598         (WebCore::caretRendersInsideNode):
599         * editing/VisibleUnits.cpp:
600         (WebCore::startOfParagraph):
601         (WebCore::endOfParagraph):
602         * editing/htmlediting.cpp:
603         (WebCore::firstInSpecialElement):
604         (WebCore::lastInSpecialElement):
605         (WebCore::isRenderedTable):
606         * editing/htmlediting.h:
607         * rendering/RenderBox.cpp:
608         (WebCore::RenderBox::localCaretRect):
609
610 2014-02-06  Brady Eidson  <beidson@apple.com>
611
612         IDB: Remove the entirely unnecessary "Value Key" concept
613         https://bugs.webkit.org/show_bug.cgi?id=128360
614
615         Reviewed by Dan Bernstein.
616
617         No new tests (No change in behavior)
618
619         All cursor operations were set up to pass a value key parameter around, but it was:
620         1 - Entirely unused
621         2 - The same thing that the primary key is supposed to be
622
623         * Modules/indexeddb/IDBCallbacks.h:
624
625         * Modules/indexeddb/IDBCursorBackend.cpp:
626         (WebCore::IDBCursorBackend::updateCursorData):
627         (WebCore::IDBCursorBackend::clear):
628         * Modules/indexeddb/IDBCursorBackend.h:
629
630         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
631         (WebCore::CursorAdvanceOperation::perform):
632         (WebCore::CursorIterationOperation::perform):
633
634         * Modules/indexeddb/IDBRequest.cpp:
635         (WebCore::IDBRequest::onSuccess):
636         * Modules/indexeddb/IDBRequest.h:
637
638         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
639         (WebCore::OpenCursorOperation::perform):
640
641         * Modules/indexeddb/IDBServerConnection.h:
642         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
643         (WebCore::IDBServerConnectionLevelDB::openCursor):
644         (WebCore::IDBServerConnectionLevelDB::cursorAdvance):
645         (WebCore::IDBServerConnectionLevelDB::cursorIterate):
646         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
647
648 2014-02-06  Jeremy Jones  <jeremyj@apple.com>
649
650         Add support for AVKit fullscreen to WebKit2
651         https://bugs.webkit.org/show_bug.cgi?id=128143
652
653         Reviewed by Simon Fraser.
654
655         Rename overloaded functions to prevent ambiguous template parameter
656         compile error in generated code.
657
658         Rename overloaded exitFullscreen to exitFullscreenWithCompletionHandler.
659         Rename overloaded enterFullscreen to enterFullscreenWithCompletionHandler.
660
661         * WebCore.exp.in:
662         * WebCore.xcodeproj/project.pbxproj:
663         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
664         (-[WebVideoFullscreenController exitFullscreen]):
665         * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
666         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
667         (WebVideoFullscreenInterfaceAVKit::enterFullscreenWithCompletionHandler):
668         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
669         (WebVideoFullscreenInterfaceAVKit::exitFullscreenWithCompletionHandler):
670         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
671         * platform/ios/WebVideoFullscreenModelMediaElement.h:
672
673 2014-02-06  Jeffrey Pfau  <jpfau@apple.com>
674
675         loadSubframe can return null in SubframeLoader::loadOrRedirectSubframe
676         https://bugs.webkit.org/show_bug.cgi?id=128344
677
678         Reviewed by Ryosuke Niwa.
679
680         * loader/SubframeLoader.cpp:
681         (WebCore::SubframeLoader::loadOrRedirectSubframe):
682
683 2014-02-06  Andreas Kling  <akling@apple.com>
684
685         Use child iterator in HTMLDetailsElement::findMainSummary().
686         <https://webkit.org/b/128335>
687
688         Reviewed by Antti Koivisto.
689
690         * html/HTMLDetailsElement.h:
691         * html/HTMLDetailsElement.cpp:
692         (WebCore::HTMLDetailsElement::findMainSummary):
693
694 2014-02-06  Antti Koivisto  <antti@apple.com>
695
696         Add missing &.
697
698         * css/StyleInvalidationAnalysis.cpp:
699         (WebCore::shouldDirtyAllStyle):
700
701 2014-02-06  Antti Koivisto  <antti@apple.com>
702
703         Check selectors exactly when invalidating style
704         https://bugs.webkit.org/show_bug.cgi?id=128321
705
706         Reviewed by Andreas Kling.
707         
708         Selectors are now really fast to match with the JIT. Take advantage of this by invalidating
709         the document style exactly when a new stylesheet arrives (instead of using heuristics).
710         
711         This reduces need for large style recalculations in some common cases.
712
713         * css/ElementRuleCollector.cpp:
714         (WebCore::ElementRuleCollector::clearMatchedRules):
715         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
716         * css/ElementRuleCollector.h:
717         (WebCore::ElementRuleCollector::hasMatchedRules):
718         * css/RuleSet.h:
719         (WebCore::RuleSet::hasShadowPseudoElementRules):
720         * css/SelectorChecker.cpp:
721         (WebCore::SelectorChecker::matchRecursively):
722         * css/SelectorChecker.h:
723         
724             Add new mode where all pseudo elements match so we can invalidate their element.
725
726         * css/StyleInvalidationAnalysis.cpp:
727         (WebCore::shouldDirtyAllStyle):
728         (WebCore::StyleInvalidationAnalysis::StyleInvalidationAnalysis):
729         (WebCore::invalidateStyleRecursively):
730         (WebCore::StyleInvalidationAnalysis::invalidateStyle):
731         
732             Switch to real selector checker.
733
734         * css/StyleInvalidationAnalysis.h:
735         * css/StyleResolver.cpp:
736         (WebCore::StyleResolver::MatchedProperties::~MatchedProperties):
737         * css/StyleResolver.h:
738         (WebCore::StyleResolver::mediaQueryEvaluator):
739         * dom/DocumentStyleSheetCollection.cpp:
740         (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
741
742 2014-02-06  Gavin Barraclough  <barraclough@apple.com>
743
744         Remove ChildProcess::m_activeTasks
745         https://bugs.webkit.org/show_bug.cgi?id=128342
746
747         Reviewed by Anders Carlson.
748
749         Currently we funnel a number of different user activities
750         to a single UserActivity object, which requires a call down
751         from WebCore to WebKit2. Split these out so we can track
752         them separately.
753
754         * page/ChromeClient.h:
755             - removed [inc|dec]rementActivePageCount
756         * page/PageThrottler.cpp:
757         (WebCore::PageThrottler::PageThrottler):
758             - incrementActivePageCount -> beginActivity
759         (WebCore::PageThrottler::~PageThrottler):
760             - decrementActivePageCount -> endActivity
761         (WebCore::PageThrottler::throttlePage):
762             - decrementActivePageCount -> endActivity
763         (WebCore::PageThrottler::unthrottlePage):
764             - incrementActivePageCount -> beginActivity
765         * page/PageThrottler.h:
766             - Added m_pageActivity.
767
768 2014-02-06  Commit Queue  <commit-queue@webkit.org>
769
770         Unreviewed, rolling out r163558.
771         http://trac.webkit.org/changeset/163558
772         https://bugs.webkit.org/show_bug.cgi?id=128350
773
774         Breaks scrolling on certain websites (Requested by bfulgham on
775         #webkit).
776
777         * page/EventHandler.cpp:
778         (WebCore::EventHandler::handleWheelEvent):
779         * page/WheelEventDeltaTracker.h:
780
781 2014-02-06  Chris Fleizach  <cfleizach@apple.com>
782
783         AX: Crash in WebCore::AXObjectCache::computedObjectAttributeCache
784         https://bugs.webkit.org/show_bug.cgi?id=128310
785
786         Reviewed by Alexey Proskuryakov.
787
788         Be more careful about using axObjectCache() directly since it can return null.
789         I audited the usage cases of this method and ensured the ptr was not null in cases
790         where I thought we might get hit by this.
791
792         * accessibility/AccessibilityNodeObject.cpp:
793         (WebCore::AccessibilityNodeObject::parentObject):
794         (WebCore::AccessibilityNodeObject::menuForMenuButton):
795         (WebCore::AccessibilityNodeObject::menuButtonForMenu):
796         * accessibility/AccessibilityObject.cpp:
797         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
798         (WebCore::AccessibilityObject::findMatchingObjects):
799         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
800         (WebCore::AccessibilityObject::axObjectCache):
801         (WebCore::AccessibilityObject::notifyIfIgnoredValueChanged):
802         (WebCore::AccessibilityObject::accessibilityIsIgnored):
803         * accessibility/AccessibilityRenderObject.cpp:
804         (WebCore::AccessibilityRenderObject::parentObjectIfExists):
805         (WebCore::AccessibilityRenderObject::parentObject):
806         (WebCore::AccessibilityRenderObject::anchorElement):
807         (WebCore::AccessibilityRenderObject::isTabItemSelected):
808         (WebCore::AccessibilityRenderObject::accessibilityParentForImageMap):
809         (WebCore::AccessibilityRenderObject::nodeIsTextControl):
810         (WebCore::AccessibilityRenderObject::activeDescendant):
811         (WebCore::AccessibilityRenderObject::handleAriaExpandedChanged):
812         (WebCore::AccessibilityRenderObject::observableObject):
813         (WebCore::AccessibilityRenderObject::textChanged):
814         * accessibility/AccessibilityScrollView.cpp:
815         (WebCore::AccessibilityScrollView::addChildScrollbar):
816         (WebCore::AccessibilityScrollView::webAreaObject):
817         (WebCore::AccessibilityScrollView::parentObject):
818         (WebCore::AccessibilityScrollView::parentObjectIfExists):
819
820 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
821
822         [CSS Shapes] Rounded Insets Let Content Overlap Shape
823         https://bugs.webkit.org/show_bug.cgi?id=127852
824
825         Reviewed by Bem Jones-Bey.
826
827         Using LengthSize to FloatSize conversion from LengthSize.h lead to miscalculated
828         inset border radius, when the border radius was defined by percentages. This patch
829         fixes the behavior and removes the incorrect conversion.
830
831         Test: fast/shapes/shape-outside-floats/shape-outside-rounded-inset.html
832
833         * css/LengthFunctions.cpp:
834         (WebCore::floatSizeForLengthSize): Add new helper function for LengthSize to FloatSize conversion.
835         * css/LengthFunctions.h:
836         * platform/LengthSize.h: Remove floatSize conversion.
837         * rendering/shapes/Shape.cpp:
838         (WebCore::Shape::createShape): Use new helper function to calculate the right with for the inset border radius.
839
840 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
841
842         Regenerate JSTestObj now that ScriptArguments moved. Generator knows what to do.
843
844         Rubber-stamped by Zalan Bujtas.
845
846         * bindings/scripts/test/JS/JSTestObj.cpp:
847         (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
848
849 2014-02-04  Jeffrey Pfau  <jpfau@apple.com>
850
851         Make adoption agency use the task queue
852         https://bugs.webkit.org/show_bug.cgi?id=109445
853
854         Reviewed by Ryosuke Niwa.
855
856         Tests: fast/parser/adoption-agency-crash-01.html
857                fast/parser/adoption-agency-crash-02.html
858                fast/parser/adoption-agency-crash-03.html
859
860         * html/parser/HTMLConstructionSite.cpp:
861         (WebCore::insert):
862         (WebCore::executeInsertTask):
863         (WebCore::executeReparentTask):
864         (WebCore::executeInsertAlreadyParsedChildTask):
865         (WebCore::executeTakeAllChildrenTask):
866         (WebCore::executeTask):
867         (WebCore::HTMLConstructionSite::attachLater):
868         (WebCore::HTMLConstructionSite::executeQueuedTasks):
869         (WebCore::HTMLConstructionSite::insertTextNode):
870         (WebCore::HTMLConstructionSite::reparent):
871         (WebCore::HTMLConstructionSite::insertAlreadyParsedChild):
872         (WebCore::HTMLConstructionSite::takeAllChildren):
873         (WebCore::HTMLConstructionSite::fosterParent):
874         * html/parser/HTMLConstructionSite.h:
875         (WebCore::HTMLConstructionSiteTask::HTMLConstructionSiteTask):
876         (WebCore::HTMLConstructionSiteTask::oldParent):
877         * html/parser/HTMLTreeBuilder.cpp:
878         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
879
880 2014-02-06  Mark Hahnenberg  <mhahnenberg@apple.com>
881
882         Heap::writeBarrier shouldn't be static
883         https://bugs.webkit.org/show_bug.cgi?id=127807
884
885         Reviewed by Geoffrey Garen.
886
887         Currently it looks up the Heap in which to fire the write barrier by using 
888         the cell passed to it. Almost every call site already has a reference to the 
889         VM or the Heap itself. It seems wasteful to look it up all over again.
890
891         * bindings/js/JSEventListener.cpp:
892         (WebCore::JSEventListener::JSEventListener):
893         * bindings/js/JSEventListener.h:
894         (WebCore::JSEventListener::jsFunction):
895
896 2014-02-06  Jaehun Lim  <ljaehun.lim@samsung.com>
897
898         Unreviewed, fix build error on 64bit debug build
899
900         Apply static_cast<long long> to int64_t variable when '%lli' is used.
901
902         * Modules/indexeddb/IDBDatabaseBackend.cpp:
903         (WebCore::IDBDatabaseBackend::clearObjectStore):
904         * Modules/indexeddb/IDBTransaction.cpp:
905         (WebCore::IDBTransaction::setActive):
906
907 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
908
909         Web Inspector: Add Console support to JSContext Inspection
910         https://bugs.webkit.org/show_bug.cgi?id=127941
911
912         Reviewed by Geoffrey Garen.
913
914           - Move InspectorConsoleAgent and dependencies to JavaScriptCore
915             and into the Inspector namespace.
916           - Update Console Message enum types to enum classes and update
917             all users to the new, simpler names.
918           - Since we are updating addConsoleMessage callsites anyways, add
919             ASCIILiteral where appropriate.
920           - Add WebConsoleAgent base of Page/Worker ConsoleAgent to implement
921             what could not be pushed into JavaScriptCore.
922
923         * CMakeLists.txt:
924         * DerivedSources.make:
925         * ForwardingHeaders/inspector/ConsoleMessage.h: Added.
926         * ForwardingHeaders/inspector/ConsoleTypes.h: Added.
927         * ForwardingHeaders/inspector/IdentifiersFactory.h: Added.
928         * ForwardingHeaders/inspector/ScriptArguments.h: Added.
929         * ForwardingHeaders/inspector/ScriptCallFrame.h: Added.
930         * ForwardingHeaders/inspector/ScriptCallStack.h: Added.
931         * ForwardingHeaders/inspector/ScriptCallStackFactory.h: Added.
932         * ForwardingHeaders/inspector/agents/InspectorConsoleAgent.h: Added.
933         * GNUmakefile.am:
934         * GNUmakefile.list.am:
935         Add / remove files from builds.
936
937         * inspector/WebConsoleAgent.h:
938         * inspector/WebConsoleAgent.cpp: Added.
939         (WebCore::WebConsoleAgent::WebConsoleAgent):
940         (WebCore::WebConsoleAgent::setMonitoringXHREnabled):
941         (WebCore::WebConsoleAgent::frameWindowDiscarded):
942         (WebCore::WebConsoleAgent::didFinishXHRLoading):
943         (WebCore::WebConsoleAgent::didReceiveResponse):
944         (WebCore::WebConsoleAgent::didFailLoading):
945         (WebCore::WebConsoleAgent::addInspectedHeapObject):
946         Implement what could not be pushed down into JavaScriptCore.
947
948         * inspector/InstrumentingAgents.h:
949         (WebCore::InstrumentingAgents::webConsoleAgent):
950         (WebCore::InstrumentingAgents::setWebConsoleAgent):
951         Hold a WebConsoleAgent instead of InspectorConsoleAgent.
952
953         * Modules/indexeddb/IDBCursor.cpp:
954         * Modules/indexeddb/IDBDatabase.cpp:
955         * Modules/indexeddb/IDBTransaction.cpp:
956         * Modules/quota/DOMWindowQuota.cpp:
957         (WebCore::DOMWindowQuota::webkitStorageInfo):
958         * Modules/webaudio/AudioBufferSourceNode.cpp:
959         (WebCore::AudioBufferSourceNode::looping):
960         (WebCore::AudioBufferSourceNode::setLooping):
961         * Modules/webaudio/AudioContext.cpp:
962         * Modules/webaudio/PannerNode.cpp:
963         (WebCore::PannerNode::setPanningModel):
964         * Modules/webdatabase/DatabaseBase.cpp:
965         (WebCore::DatabaseBase::logErrorMessage):
966         * Modules/webdatabase/DatabaseManager.cpp:
967         (WebCore::DatabaseManager::logErrorMessage):
968         * Modules/websockets/WebSocket.cpp:
969         (WebCore::WebSocket::connect):
970         (WebCore::WebSocket::send):
971         (WebCore::WebSocket::close):
972         (WebCore::WebSocket::setBinaryType):
973         * Modules/websockets/WebSocketChannel.cpp:
974         (WebCore::WebSocketChannel::fail):
975         (WebCore::WebSocketChannel::didFailSocketStream):
976         * Modules/websockets/WebSocketHandshake.cpp:
977         * WebCore.exp.in:
978         * WebCore.vcxproj/WebCore.vcxproj:
979         * WebCore.vcxproj/WebCore.vcxproj.filters:
980         * WebCore.xcodeproj/project.pbxproj:
981         * bindings/js/JSAudioContextCustom.cpp:
982         (WebCore::JSAudioContextConstructor::constructJSAudioContext):
983         * bindings/js/JSCustomXPathNSResolver.cpp:
984         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
985         * bindings/js/JSDOMBinding.cpp:
986         * bindings/js/JSSubtleCryptoCustom.cpp:
987         (WebCore::JSSubtleCrypto::encrypt):
988         (WebCore::JSSubtleCrypto::decrypt):
989         (WebCore::JSSubtleCrypto::sign):
990         (WebCore::JSSubtleCrypto::verify):
991         (WebCore::JSSubtleCrypto::wrapKey):
992         (WebCore::JSSubtleCrypto::unwrapKey):
993         * bindings/js/ScriptController.cpp:
994         (WebCore::ScriptController::canExecuteScripts):
995         * bindings/scripts/CodeGeneratorJS.pm:
996         (GenerateCallWith):
997         * bindings/scripts/test/JS/JSTestObj.cpp:
998         * css/CSSParser.cpp:
999         (WebCore::CSSParser::logError):
1000         * css/MediaList.cpp:
1001         (WebCore::addResolutionWarningMessageToConsole):
1002         * dom/Document.cpp:
1003         (WebCore::Document::logExceptionToConsole):
1004         (WebCore::Document::processHttpEquiv):
1005         (WebCore::Document::addMessage):
1006         * dom/Document.h:
1007         * dom/ScriptElement.cpp:
1008         (WebCore::ScriptElement::executeScript):
1009         (WebCore::ScriptElement::notifyFinished):
1010         * dom/ScriptExecutionContext.cpp:
1011         * dom/ScriptExecutionContext.h:
1012         * dom/ViewportArguments.cpp:
1013         (WebCore::viewportErrorMessageLevel):
1014         (WebCore::reportViewportWarning):
1015         * fileapi/Blob.cpp:
1016         * fileapi/WebKitBlobBuilder.cpp:
1017         * html/HTMLFormControlElement.cpp:
1018         (WebCore::shouldAutofocus):
1019         * html/HTMLFormElement.cpp:
1020         (WebCore::HTMLFormElement::validateInteractively):
1021         * html/HTMLIFrameElement.cpp:
1022         (WebCore::HTMLIFrameElement::parseAttribute):
1023         * html/HTMLMediaElement.cpp:
1024         (WebCore::HTMLMediaElement::parseAttribute):
1025         * html/canvas/CanvasRenderingContext2D.cpp:
1026         (WebCore::CanvasRenderingContext2D::getImageData):
1027         * html/canvas/WebGLRenderingContext.cpp:
1028         (WebCore::WebGLRenderingContext::printWarningToConsole):
1029         * html/parser/XSSAuditor.cpp:
1030         (WebCore::XSSAuditor::init):
1031         * html/parser/XSSAuditorDelegate.cpp:
1032         (WebCore::XSSAuditorDelegate::didBlockScript):
1033         * inspector/CommandLineAPIHost.cpp:
1034         * inspector/CommandLineAPIHost.h:
1035         (WebCore::CommandLineAPIHost::init):
1036         * inspector/InspectorAllInOne.cpp:
1037         * inspector/InspectorConsoleAgent.h: Removed.
1038         * inspector/InspectorConsoleInstrumentation.h:
1039         (WebCore::InspectorInstrumentation::addMessageToConsole):
1040         (WebCore::InspectorInstrumentation::consoleCount):
1041         (WebCore::InspectorInstrumentation::stopConsoleTiming):
1042         (WebCore::InspectorInstrumentation::consoleTimeStamp):
1043         (WebCore::InspectorInstrumentation::addProfile):
1044         * inspector/InspectorController.cpp:
1045         (WebCore::InspectorController::InspectorController):
1046         * inspector/InspectorDOMAgent.cpp:
1047         * inspector/InspectorFrontendHost.h:
1048         * inspector/InspectorInstrumentation.cpp:
1049         (WebCore::InspectorInstrumentation::frameWindowDiscardedImpl):
1050         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
1051         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
1052         (WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl):
1053         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
1054         (WebCore::isConsoleAssertMessage):
1055         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
1056         (WebCore::InspectorInstrumentation::consoleCountImpl):
1057         (WebCore::InspectorInstrumentation::startConsoleTimingImpl):
1058         (WebCore::InspectorInstrumentation::stopConsoleTimingImpl):
1059         (WebCore::InspectorInstrumentation::consoleAgentEnabled):
1060         * inspector/InspectorInstrumentation.h:
1061         * inspector/InspectorLayerTreeAgent.cpp:
1062         * inspector/InspectorPageAgent.cpp:
1063         * inspector/InspectorProfilerAgent.cpp:
1064         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
1065         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
1066         * inspector/InspectorProfilerAgent.h:
1067         * inspector/InspectorResourceAgent.cpp:
1068         (WebCore::InspectorResourceAgent::buildInitiatorObject):
1069         * inspector/InspectorTimelineAgent.cpp:
1070         * inspector/InstrumentingAgents.cpp:
1071         (WebCore::InstrumentingAgents::InstrumentingAgents):
1072         (WebCore::InstrumentingAgents::reset):
1073         * inspector/PageConsoleAgent.cpp:
1074         (WebCore::PageConsoleAgent::PageConsoleAgent):
1075         (WebCore::PageConsoleAgent::clearMessages):
1076         (WebCore::PageConsoleAgent::addInspectedNode):
1077         * inspector/PageConsoleAgent.h:
1078         * inspector/PageDebuggerAgent.cpp:
1079         (WebCore::PageDebuggerAgent::breakpointActionLog):
1080         * inspector/PageInjectedScriptHost.h:
1081         * inspector/PageInjectedScriptManager.h:
1082         * inspector/TimelineRecordFactory.cpp:
1083         (WebCore::TimelineRecordFactory::createGenericRecord):
1084         (WebCore::WebConsoleAgent::~WebConsoleAgent):
1085         * inspector/WorkerConsoleAgent.cpp:
1086         (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
1087         (WebCore::WorkerConsoleAgent::addInspectedNode):
1088         * inspector/WorkerConsoleAgent.h:
1089         * inspector/WorkerDebuggerAgent.cpp:
1090         (WebCore::WorkerDebuggerAgent::breakpointActionLog):
1091         * inspector/WorkerInspectorController.cpp:
1092         (WebCore::WorkerInspectorController::WorkerInspectorController):
1093         * loader/DocumentLoader.cpp:
1094         (WebCore::DocumentLoader::responseReceived):
1095         * loader/FrameLoader.cpp:
1096         (WebCore::FrameLoader::submitForm):
1097         (WebCore::FrameLoader::reportLocalLoadFailed):
1098         (WebCore::FrameLoader::handleBeforeUnloadEvent):
1099         (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
1100         (WebCore::createWindow):
1101         * loader/ImageLoader.cpp:
1102         (WebCore::ImageLoader::notifyFinished):
1103         * loader/MixedContentChecker.cpp:
1104         (WebCore::MixedContentChecker::logWarning):
1105         * loader/TextTrackLoader.cpp:
1106         (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
1107         * loader/appcache/ApplicationCacheGroup.cpp:
1108         (WebCore::ApplicationCacheGroup::abort):
1109         (WebCore::ApplicationCacheGroup::didReceiveResponse):
1110         (WebCore::ApplicationCacheGroup::didFinishLoading):
1111         (WebCore::ApplicationCacheGroup::didFail):
1112         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse):
1113         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
1114         (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
1115         * loader/cache/CachedResourceLoader.cpp:
1116         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
1117         * page/ChromeClient.h:
1118         * page/Console.cpp:
1119         (WebCore::internalAddMessage):
1120         (WebCore::Console::debug):
1121         (WebCore::Console::error):
1122         (WebCore::Console::log):
1123         (WebCore::Console::warn):
1124         (WebCore::Console::dir):
1125         (WebCore::Console::dirxml):
1126         (WebCore::Console::table):
1127         (WebCore::Console::clear):
1128         (WebCore::Console::trace):
1129         (WebCore::Console::assertCondition):
1130         (WebCore::Console::group):
1131         (WebCore::Console::groupCollapsed):
1132         (WebCore::Console::groupEnd):
1133         * page/Console.h:
1134         * page/ConsoleTypes.h: Removed.
1135         * page/ContentSecurityPolicy.cpp:
1136         (WebCore::ContentSecurityPolicy::reportViolation):
1137         (WebCore::ContentSecurityPolicy::logToConsole):
1138         * page/DOMSecurityPolicy.cpp:
1139         * page/DOMWindow.cpp:
1140         (WebCore::DOMWindow::postMessage):
1141         (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
1142         (WebCore::DOMWindow::close):
1143         (WebCore::DOMWindow::printErrorMessage):
1144         * page/DOMWindow.h:
1145         * page/EventSource.cpp:
1146         (WebCore::EventSource::didReceiveResponse):
1147         (WebCore::EventSource::didFailAccessControlCheck):
1148         * page/PageConsole.cpp:
1149         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
1150         (WebCore::PageConsole::addMessage):
1151         * page/PageConsole.h:
1152         * page/PointerLockController.cpp:
1153         (WebCore::PointerLockController::requestPointerLock):
1154         * platform/CrossThreadCopier.h:
1155         * rendering/shapes/ShapeInfo.cpp:
1156         (WebCore::checkShapeImageOrigin):
1157         * svg/SVGDocumentExtensions.cpp:
1158         (WebCore::reportMessage):
1159         (WebCore::SVGDocumentExtensions::reportWarning):
1160         (WebCore::SVGDocumentExtensions::reportError):
1161         * testing/Internals.cpp:
1162         (WebCore::Internals::consoleMessageArgumentCounts):
1163         * workers/DefaultSharedWorkerRepository.cpp:
1164         * workers/SharedWorkerGlobalScope.cpp:
1165         (WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
1166         * workers/SharedWorkerGlobalScope.h:
1167         * workers/WorkerGlobalScope.cpp:
1168         (WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
1169         * workers/WorkerGlobalScope.h:
1170         * workers/WorkerMessagingProxy.cpp:
1171         * workers/WorkerReportingProxy.h:
1172         * xml/XMLHttpRequest.cpp:
1173         (WebCore::logConsoleError):
1174         (WebCore::XMLHttpRequest::send):
1175         * xml/XSLTProcessorLibxslt.cpp:
1176         (WebCore::XSLTProcessor::parseErrorFunc):
1177
1178 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
1179
1180         Convert a parameter to PassRefPtr
1181         https://bugs.webkit.org/show_bug.cgi?id=128327
1182
1183         Reviewed by Timothy Hatcher.
1184
1185         * inspector/InspectorConsoleInstrumentation.h:
1186         (WebCore::InspectorInstrumentation::addProfile):
1187         * inspector/InspectorInstrumentation.h:
1188
1189 2014-01-30  Oliver Hunt  <oliver@apple.com>
1190
1191         Push DOM attributes into the prototype chain
1192         https://bugs.webkit.org/show_bug.cgi?id=127969
1193
1194         Reviewed by Mark Lam.
1195
1196         This patch does the actual work of moving dom attributes up the
1197         prototype chain. There are still a few class and edge cases
1198         where we can't do this without impacting existing behaviour,
1199         but they can be fixed separately in later patches.
1200
1201         * bindings/js/JSDOMBinding.h:
1202         (WebCore::getStaticPropertySlotEntryWithoutCaching):
1203         (WebCore::getStaticPropertySlotEntryWithoutCaching<JSDOMWrapper>):
1204         * bindings/scripts/CodeGeneratorJS.pm:
1205         (GenerateGetOwnPropertySlotBody):
1206         (HasComplexGetOwnProperty):
1207         (ConstructorShouldBeOnInstance):
1208         (AttributeShouldBeOnInstance):
1209         (InstanceAttributeCount):
1210         (PrototypeAttributeCount):
1211         (InstanceOverridesGetOwnPropertySlot):
1212         (PrototypeOverridesGetOwnPropertySlot):
1213         (GenerateAttributesHashTable):
1214         (GenerateImplementation):
1215
1216 2014-02-06  Andreas Kling  <akling@apple.com>
1217
1218         Remove display:run-in support.
1219         <https://webkit.org/b/127874>
1220         <rdar://problem/15926949>
1221
1222         Remove support for the "run-in" display type. Blink recently removed
1223         this and Gecko never supported in the first place.
1224
1225         Rubber-stamped by Anders Carlsson.
1226
1227         * css/CSSParser.cpp:
1228         (WebCore::isValidKeywordPropertyAndValue):
1229         * css/CSSPrimitiveValueMappings.h:
1230         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
1231         * css/CSSValueKeywords.in:
1232         * css/StyleResolver.cpp:
1233         (WebCore::equivalentBlockDisplay):
1234         (WebCore::doesNotInheritTextDecoration):
1235         * rendering/RenderBlock.cpp:
1236         (WebCore::RenderBlock::willBeDestroyed):
1237         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
1238         (WebCore::RenderBlock::makeChildrenNonInline):
1239         (WebCore::canMergeContiguousAnonymousBlocks):
1240         (WebCore::RenderBlock::renderName):
1241         * rendering/RenderBlock.h:
1242         * rendering/RenderBlockFlow.cpp:
1243         (WebCore::RenderBlockFlow::willBeDestroyed):
1244         (WebCore::shouldCheckLines):
1245         (WebCore::getHeightForLineCount):
1246         * rendering/RenderElement.cpp:
1247         (WebCore::RenderElement::createFor):
1248         (WebCore::RenderElement::destroyLeftoverChildren):
1249         * rendering/RenderFileUploadControl.cpp:
1250         * rendering/RenderFileUploadControl.h:
1251         * rendering/RenderInline.cpp:
1252         (WebCore::RenderInline::updateFromStyle):
1253         (WebCore::RenderInline::renderName):
1254         (WebCore::RenderInline::clippedOverflowRectForRepaint):
1255         * rendering/RenderListBox.cpp:
1256         * rendering/RenderListBox.h:
1257         * rendering/RenderMenuList.cpp:
1258         * rendering/RenderMenuList.h:
1259         * rendering/RenderObject.cpp:
1260         * rendering/RenderObject.h:
1261         * rendering/RenderProgress.cpp:
1262         * rendering/RenderProgress.h:
1263         * rendering/RenderSlider.cpp:
1264         * rendering/RenderSlider.h:
1265         * rendering/RenderTextControl.cpp:
1266         * rendering/RenderTextControl.h:
1267         * rendering/RenderTheme.cpp:
1268         (WebCore::RenderTheme::adjustStyle):
1269         * rendering/style/RenderStyleConstants.h:
1270
1271 2014-02-06  Andreas Kling  <akling@apple.com>
1272
1273         Remove leftover cruft from scoped stylesheet implementation.
1274         <https://webkit.org/b/128139>
1275
1276         Kill some pointless non-null checks that were left behind by the
1277         removed <style scoped> code. Also pruned outdated comments and
1278         FIXME's about such scopes.
1279
1280         Reviewed by Antti Koivisto.
1281
1282         * css/ElementRuleCollector.cpp:
1283         (WebCore::ElementRuleCollector::collectMatchingRules):
1284         * css/RuleSet.cpp:
1285         (WebCore::RuleSet::addChildRules):
1286         (WebCore::RuleSet::addRulesFromSheet):
1287         * css/RuleSet.h:
1288         * css/StyleResolver.cpp:
1289         (WebCore::StyleResolver::checkRegionStyle):
1290
1291 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
1292
1293         Wheel events don't latch to inner scrollable elements 
1294         https://bugs.webkit.org/show_bug.cgi?id=128225
1295
1296         Reviewed by Beth Dakin.
1297
1298         * page/EventHandler.cpp:
1299         (WebCore::EventHandler::handleWheelEvent): Identify the case
1300         where we have hit the end of a scroll, and treat that as a
1301         valid 'handled' case. If the scroll event is just starting,
1302         treat end-of-scroll as unhandled so the parent element can
1303         handle things.
1304         * page/WheelEventDeltaTracker.h:
1305         (WebCore::WheelEventDeltaTracker::isFirstWheelEvent): Added.
1306
1307 2014-02-06  Commit Queue  <commit-queue@webkit.org>
1308
1309         Unreviewed, rolling out r163542.
1310         http://trac.webkit.org/changeset/163542
1311         https://bugs.webkit.org/show_bug.cgi?id=128324
1312
1313         Caused many assertion failures (Requested by ap on #webkit).
1314
1315         * bindings/js/JSEventListener.cpp:
1316         (WebCore::JSEventListener::JSEventListener):
1317         * bindings/js/JSEventListener.h:
1318         (WebCore::JSEventListener::jsFunction):
1319
1320 2014-02-06  Frédéric Wang  <fred.wang@free.fr>
1321
1322         Do not draw multi-characters <mi> in italic.
1323         https://bugs.webkit.org/show_bug.cgi?id=44208
1324
1325         Reviewed by Chris Fleizach.
1326
1327         This test prevents multi-char <mi> to be drawn in italic and prepare
1328         further improvements to MathML token and mfenced elements (bugs 124838
1329         and bug 99620).
1330
1331         Test: mathml/presentation/tokenElements-dynamic.html
1332
1333         * CMakeLists.txt:
1334         * GNUmakefile.list.am:
1335         * WebCore.vcxproj/WebCore.vcxproj:
1336         * WebCore.vcxproj/WebCore.vcxproj.filters:
1337         * WebCore.xcodeproj/project.pbxproj:
1338         * css/mathml.css:
1339         (mi, mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
1340         * mathml/MathMLTextElement.cpp:
1341         (WebCore::MathMLTextElement::didAttachRenderers):
1342         (WebCore::MathMLTextElement::childrenChanged):
1343         (WebCore::MathMLTextElement::createElementRenderer):
1344         * rendering/RenderObject.h:
1345         (WebCore::RenderObject::isRenderMathMLToken):
1346         * rendering/mathml/RenderMathMLToken.cpp: Added.
1347         (WebCore::RenderMathMLToken::RenderMathMLToken):
1348         (WebCore::RenderMathMLToken::addChild):
1349         (WebCore::RenderMathMLToken::createWrapperIfNeeded):
1350         (WebCore::RenderMathMLToken::updateTokenContent):
1351         (WebCore::RenderMathMLToken::updateStyle):
1352         (WebCore::RenderMathMLToken::styleDidChange):
1353         (WebCore::RenderMathMLToken::updateFromElement):
1354         * rendering/mathml/RenderMathMLToken.h: Added.
1355         (WebCore::RenderMathMLToken::element):
1356         (WebCore::RenderMathMLToken>):
1357
1358 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
1359
1360         [CSS Shapes] Simplify BasicShapeInset creation
1361         https://bugs.webkit.org/show_bug.cgi?id=128314
1362
1363         Reviewed by David Hyatt.
1364
1365         Introduce convertToLengthSize helper function in order to simplify and make BasicShapeInset more readable.
1366
1367         No new tests, no behavior change.
1368
1369         * css/BasicShapeFunctions.cpp:
1370         (WebCore::convertToLengthSize):
1371         (WebCore::basicShapeForValue):
1372
1373 2014-02-06  Anders Carlsson  <andersca@apple.com>
1374
1375         Try to fix the Windows build.
1376
1377         * loader/DocumentThreadableLoader.cpp:
1378         (WebCore::DocumentThreadableLoader::didReceiveResponse):
1379
1380 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
1381
1382         [CSS Grid Layout] getComputedStyle() is wrong for grid-definition-{columns|rows}
1383         https://bugs.webkit.org/show_bug.cgi?id=127033
1384
1385         Reviewed by Andreas Kling.
1386
1387         Tests: fast/css-grid-layout/non-grid-columns-rows-get-set-multiple.html
1388                fast/css-grid-layout/non-grid-columns-rows-get-set.html
1389                fast/css-grid-layout/non-grid-element-repeat-get-set.html
1390                fast/css-grid-layout/non-named-grid-line-get-set.html
1391
1392         According to the specs getComputedStyle() should return the used
1393         values instead of the resolved values for compatibility with early
1394         implementations. This means that grid-definition-{columns|rows}
1395         are now layout dependent as we need to compute the used values for
1396         grid track sizes.
1397
1398         Updated the outcome of existing tests and added a bunch of new
1399         ones that check the behavior of the different properties outside
1400         grid containers.
1401
1402         * css/CSSComputedStyleDeclaration.cpp:
1403         (WebCore::specifiedValueForGridTrackSize):
1404         (WebCore::valueForGridTrackList):
1405         (WebCore::isLayoutDependent):
1406         (WebCore::ComputedStyleExtractor::propertyValue):
1407         * rendering/RenderGrid.cpp:
1408         (WebCore::RenderGrid::GridIterator::GridIterator):
1409         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
1410         (WebCore::RenderGrid::computeUsedBreadthOfMinLength):
1411         (WebCore::RenderGrid::computeUsedBreadthOfMaxLength):
1412         (WebCore::RenderGrid::computeUsedBreadthOfSpecifiedLength):
1413         (WebCore::RenderGrid::computeNormalizedFractionBreadth):
1414         (WebCore::RenderGrid::gridTrackSize):
1415         (WebCore::RenderGrid::minContentForChild):
1416         (WebCore::RenderGrid::maxContentForChild):
1417         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
1418         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctionsForItems):
1419         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
1420         (WebCore::RenderGrid::growGrid):
1421         (WebCore::RenderGrid::autoPlacementMajorAxisDirection):
1422         (WebCore::RenderGrid::autoPlacementMinorAxisDirection):
1423         (WebCore::RenderGrid::layoutGridItems):
1424         (WebCore::RenderGrid::resolveGridPositionsFromAutoPlacementPosition):
1425         (WebCore::RenderGrid::resolveGridPositionsFromStyle):
1426         (WebCore::RenderGrid::gridAreaBreadthForChild):
1427         (WebCore::RenderGrid::populateGridPositions):
1428         (WebCore::RenderGrid::findChildLogicalPosition):
1429         * rendering/RenderGrid.h:
1430
1431 2014-02-06  Anders Carlsson  <andersca@apple.com>
1432
1433         Modernize CrossOriginPreflightResultCache
1434         https://bugs.webkit.org/show_bug.cgi?id=128309
1435
1436         Reviewed by Antti Koivisto.
1437
1438         Use std::chrono::steady_clock instead of currentTime() for determining when
1439         cache items expire, Use std::unique_ptr instead of OwnPtr, use NeverDestroyed,
1440         get rid of unnecessary container typedefs now that we have auto. Finally,
1441         de-indent the entire class declaration.
1442
1443         * loader/CrossOriginPreflightResultCache.cpp:
1444         (WebCore::CrossOriginPreflightResultCache::CrossOriginPreflightResultCache):
1445         (WebCore::parseAccessControlMaxAge):
1446         (WebCore::CrossOriginPreflightResultCacheItem::parse):
1447         (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest):
1448         (WebCore::CrossOriginPreflightResultCache::shared):
1449         (WebCore::CrossOriginPreflightResultCache::appendEntry):
1450         (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
1451         * loader/CrossOriginPreflightResultCache.h:
1452         (WebCore::CrossOriginPreflightResultCacheItem::CrossOriginPreflightResultCacheItem):
1453         * loader/DocumentThreadableLoader.cpp:
1454         (WebCore::DocumentThreadableLoader::didReceiveResponse):
1455
1456 2014-02-06  Gurpreet Kaur  <k.gurpreet@samsung.com>
1457
1458         Menclose with no notation attribute does not display anything.
1459         https://bugs.webkit.org/show_bug.cgi?id=127889
1460
1461         Reviewed by Chris Fleizach.
1462
1463         Menclose with no notation attribute should behave same as menclose with
1464         notation attribute with value as longdiv. By default the division
1465         symbol should be displayed. For empty and invalid notation attribute
1466         nothing should be displayed.
1467
1468         Tests: mathml/presentation/menclose-notation-default-longdiv.html
1469                mathml/presentation/menclose-notation-invalid-empty.html
1470
1471         * mathml/MathMLMencloseElement.h:
1472         * rendering/mathml/RenderMathMLMenclose.cpp:
1473         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
1474         (WebCore::RenderMathMLMenclose::paint):
1475         Added style for menclose with no notation attribute and handled this
1476         condition in paint also where for longdiv we are explicitly drawing
1477         the division symbol.
1478
1479 2014-02-05  Mark Hahnenberg  <mhahnenberg@apple.com>
1480
1481         Heap::writeBarrier shouldn't be static
1482         https://bugs.webkit.org/show_bug.cgi?id=127807
1483
1484         Reviewed by Geoffrey Garen.
1485
1486         Currently it looks up the Heap in which to fire the write barrier by using 
1487         the cell passed to it. Almost every call site already has a reference to the 
1488         VM or the Heap itself. It seems wasteful to look it up all over again.
1489
1490         * bindings/js/JSEventListener.cpp:
1491         (WebCore::JSEventListener::JSEventListener):
1492         * bindings/js/JSEventListener.h:
1493         (WebCore::JSEventListener::jsFunction):
1494
1495 2014-02-06  Brady Eidson  <beidson@apple.com>
1496
1497         IDB: storage/indexeddb/mozilla/clear.html fails
1498         <rdar://problem/15997155> and https://bugs.webkit.org/show_bug.cgi?id=128282
1499
1500         Reviewed by David Kilzer.
1501
1502         Covered by storage/indexeddb/mozilla/clear.html (and probably others)
1503
1504         Update the value deserializer to take into account whether or not there was an IDBKey:
1505         * bindings/js/IDBBindingUtilities.cpp:
1506         (WebCore::deserializeIDBValueBuffer):
1507         * bindings/js/IDBBindingUtilities.h:
1508
1509         * Modules/indexeddb/IDBRequest.cpp:
1510         (WebCore::IDBRequest::onSuccess): Call the new form of deserializeIDBValueBuffer.
1511
1512         * Modules/indexeddb/IDBDatabaseBackend.cpp:
1513         (WebCore::IDBDatabaseBackend::clearObjectStore): Update logging.
1514
1515         * Modules/indexeddb/IDBTransaction.cpp:
1516         (WebCore::IDBTransaction::setActive): Update logging.
1517
1518         * Modules/indexeddb/IDBTransactionBackend.cpp:
1519         (WebCore::IDBTransactionBackend::commit): Fix ASSERTs to reflect multi-process worlds.
1520
1521 2014-02-06  Csaba Osztrogonác  <ossy@webkit.org>
1522
1523         Re-enable simple line layout on non-Mac platforms
1524         https://bugs.webkit.org/show_bug.cgi?id=123338
1525
1526         Reviewed by Anders Carlsson.
1527
1528         * rendering/SimpleLineLayout.cpp:
1529         (WebCore::SimpleLineLayout::canUseFor):
1530
1531 2014-02-06  Koop Mast <kwm@FreeBSD.org>
1532
1533         Use system default compiler instead of gcc, as final fall through.
1534         https://bugs.webkit.org/show_bug.cgi?id=126773
1535
1536         Reviewed by Alexey Proskuryakov.
1537
1538         * dom/make_names.pl:
1539
1540 2014-02-06  Eric Carlson  <eric.carlson@apple.com>
1541
1542         No need to enterFullscreen() when already in fullscreen
1543         https://bugs.webkit.org/show_bug.cgi?id=128276
1544
1545         Reviewed by Jer Noble.
1546
1547         No new tests, this is just cleanup.
1548
1549         * html/HTMLMediaElement.cpp:
1550         (WebCore::HTMLMediaElement::updatePlayState): Don't call enterFullscreen() if already there.
1551         (WebCore::HTMLMediaElement::enterFullscreen): Return early if m_isFullscreen is already true.
1552
1553 2014-02-06  Radu Stavila  <stavila@adobe.com>
1554
1555         [CSS Regions] Null dereference applying animation with CSS regions
1556         https://bugs.webkit.org/show_bug.cgi?id=128218
1557
1558         Reviewed by Andrei Bucur.
1559
1560         The first issue (the null dereference) was caused by the checkForZoomChange method
1561         not guarding against a null parentStyle parameter, as the checkForGenericFamilyChange 
1562         method does, which in the crashing scenario is called just before the faulty
1563         checkForZoomChange method.
1564         The second issue was an assert which was caused by the fact that detaching is performed
1565         in a certain situation if the element has a renderer or if it's inside a named flow.
1566         However, when reattaching and asserting the element has no renderer, the 
1567         "inside named flow" condition was no longer considered.
1568
1569         Test: fast/regions/animation-element-in-region-flowed-to-other-thread.html
1570
1571         * css/StyleResolver.cpp:
1572         (WebCore::StyleResolver::checkForZoomChange):
1573         * style/StyleResolveTree.cpp:
1574         (WebCore::Style::attachChildren):
1575
1576 2014-02-06  László Langó  <llango.u-szeged@partner.samsung.com>
1577
1578         Create a HTMLUnknownElement when using createElement('image')
1579         https://bugs.webkit.org/show_bug.cgi?id=125896
1580
1581         Reviewed by Antti Koivisto.
1582
1583         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad
1584
1585         * html/HTMLTagNames.in:
1586
1587 2014-02-06  Youenn Fablet  <youennf@gmail.com>
1588
1589         [XHR] Ensure response return null when error flag is set for blob and arraybuffer
1590         https://bugs.webkit.org/show_bug.cgi?id=127050
1591
1592         Reviewed by Alexey Proskuryakov.
1593
1594         Added a check in JSXMLHttpRequest::response to ensure response return null when error flag is set for blob and arraybuffer
1595         This check also applies to document and json response types (no change in behavior for those types but code path change)
1596         Added assertions in the related XMLHttpRequest blob and array buffer getters
1597         Minor code clean-up.
1598         The test cases check all four response types in case of timeout and abort
1599
1600         Tests: http/tests/xmlhttprequest/onabort-response-getters.html
1601                http/tests/xmlhttprequest/ontimeout-response-getters.html
1602
1603         * bindings/js/JSXMLHttpRequestCustom.cpp:
1604         (WebCore::JSXMLHttpRequest::response):
1605         * xml/XMLHttpRequest.cpp:
1606         (WebCore::XMLHttpRequest::didCacheResponseJSON):
1607         (WebCore::XMLHttpRequest::responseXML):
1608         (WebCore::XMLHttpRequest::responseBlob):
1609         (WebCore::XMLHttpRequest::responseArrayBuffer):
1610
1611 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
1612
1613         Change Page, FocusController to use ViewState
1614         https://bugs.webkit.org/show_bug.cgi?id=126533
1615
1616         Reviewed by Tim Horton.
1617
1618         These classes currently maintain a set of separate fields to represent the view state;
1619         combine these into a single field, and allow WebPage to send the combined update rather
1620         than individual changes.
1621
1622         Maintain existing interface for WebKit1 clients.
1623
1624         * WebCore.exp.in:
1625             - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
1626         * page/FocusController.cpp:
1627         (WebCore::FocusController::FocusController):
1628             - Initialize combined m_viewState.
1629         (WebCore::FocusController::setFocused):
1630             - Calls setViewState.
1631         (WebCore::FocusController::setFocusedInternal):
1632             - setFocused -> setFocusedInternal.
1633         (WebCore::FocusController::setViewState):
1634             - Added, update all ViewState flags.
1635         (WebCore::FocusController::setActive):
1636             - Calls setViewState.
1637         (WebCore::FocusController::setActiveInternal):
1638             - setActive -> setActiveInternal.
1639         (WebCore::FocusController::setContentIsVisible):
1640             - Calls setViewState.
1641         (WebCore::FocusController::setContentIsVisibleInternal):
1642             - setContentIsVisible -> setContentIsVisibleInternal.
1643         * page/FocusController.h:
1644         (WebCore::FocusController::isActive):
1645         (WebCore::FocusController::isFocused):
1646         (WebCore::FocusController::contentIsVisible):
1647             - Implemented in terms of ViewState.
1648         * page/Page.cpp:
1649         (WebCore::Page::Page):
1650             - Initialize using PageInitialViewState.
1651         (WebCore::Page::setIsInWindow):
1652             - Calls setViewState.
1653         (WebCore::Page::setIsInWindowInternal):
1654             - setIsInWindow -> setIsInWindowInternal.
1655         (WebCore::Page::setIsVisuallyIdleInternal):
1656             - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
1657         (WebCore::Page::setViewState):
1658             - Added, update all ViewState flags, including FocusController.
1659         (WebCore::Page::setIsVisible):
1660             - Calls setViewState.
1661         (WebCore::Page::setIsVisibleInternal):
1662             - setIsVisible -> setIsVisibleInternal.
1663         (WebCore::Page::visibilityState):
1664             - m_isVisible -> isVisible()
1665         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
1666             - m_isVisible -> isVisible()
1667         * page/Page.h:
1668         (WebCore::Page::isVisible):
1669         (WebCore::Page::isInWindow):
1670             - Implemented in terms of ViewState.
1671         (WebCore::Page::scriptedAnimationsSuspended):
1672             - Combined member fields into ViewState::Flags.
1673
1674 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
1675
1676         Transfer the non-fast-scrollable region to the UI process for iOS
1677         https://bugs.webkit.org/show_bug.cgi?id=128293
1678
1679         Reviewed by Benjamin Poulain.
1680
1681         Two main changes to support sending the non-fast scrollable region
1682         to the UI process for iOS:
1683         
1684         1. Add ScrollingCoordinator::frameViewNonFastScrollableRegionChanged(),
1685         which is called when we've updated the touch event region (this can happen
1686         independenly of layout). When called we just scheduled a scrolling tree
1687         commit with the new region.
1688         
1689         2. Avoid thinking that we have a new root node with every remote scrolling
1690         transaction. This was a side-effect of reconstructing the scrolling state
1691         tree in the UI process, and caused us to try to grab a nonFastScrollableRegion
1692         from a node which never had one set.
1693
1694         * WebCore.exp.in:
1695         * page/scrolling/AsyncScrollingCoordinator.cpp:
1696         (WebCore::AsyncScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
1697         * page/scrolling/AsyncScrollingCoordinator.h:
1698         * page/scrolling/ScrollingCoordinator.cpp:
1699         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
1700         * page/scrolling/ScrollingCoordinator.h:
1701         (WebCore::ScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
1702         * page/scrolling/ScrollingStateTree.h:
1703         (WebCore::ScrollingStateTree::setHasNewRootStateNode):
1704         * page/scrolling/ScrollingTree.cpp:
1705         (WebCore::ScrollingTree::commitNewTreeState):
1706         (WebCore::ScrollingTree::isPointInNonFastScrollableRegion):
1707         * page/scrolling/ScrollingTree.h:
1708
1709 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
1710
1711         [iOS] Synchronize the WKContentView and UIScrollView updates with the tiles being commited
1712         https://bugs.webkit.org/show_bug.cgi?id=127886
1713
1714         Reviewed by Simon Fraser.
1715
1716         The updates of the views on the UIProcess side was completely disconnected
1717         from the tiles updates from the DrawingArea. There is a non-negligible time
1718         between the size/scale update and the new tiles coming, which causes
1719         visual glitches.
1720
1721         There are three main cases where the tiles and content would be out of sync
1722         with the UIViews:
1723         -When loading a new page with different content width of a different viewport.
1724         -When a page changes its viewport.
1725         -When the viewport-constrainted viewport size changes.
1726
1727         To fix the issue, WKView is modified to maintain the old state of WKContentView
1728         and UIScrollView until the new tiles are available.
1729
1730         Geometry/scale update are split in two phases:
1731         1) A source (the page or the user) changes parameters of the geometry. The WebProcess updates
1732            its layout accordingly.
1733            At this point, the UIViews are unchanged and are left with the old parameters.
1734         2) Eventually, new tiles come and commitLayerTree() is called on the drawing area proxy.
1735            At that point, WKContentView and its UIScrollView are updated to match the committed
1736            size and scale for the page.
1737
1738         * WebCore.exp.in:
1739         * WebCore.xcodeproj/project.pbxproj:
1740         * page/ViewportConfiguration.cpp: Added.
1741         (WebCore::constraintsAreAllRelative):
1742         (WebCore::ViewportConfiguration::ViewportConfiguration):
1743         (WebCore::ViewportConfiguration::setDefaultConfiguration):
1744         (WebCore::ViewportConfiguration::setContentsSize):
1745         (WebCore::ViewportConfiguration::setMinimumLayoutSize):
1746         (WebCore::ViewportConfiguration::setViewportArguments):
1747         (WebCore::ViewportConfiguration::layoutSize):
1748         (WebCore::ViewportConfiguration::initialScale):
1749         (WebCore::ViewportConfiguration::minimumScale):
1750         (WebCore::ViewportConfiguration::maximumScale):
1751         (WebCore::ViewportConfiguration::allowsUserScaling):
1752         (WebCore::viewportArgumentValueIsValid):
1753         (WebCore::applyViewportArgument):
1754         (WebCore::ViewportConfiguration::updateConfiguration):
1755         (WebCore::ViewportConfiguration::layoutWidth):
1756         (WebCore::ViewportConfiguration::layoutHeight):
1757         * page/ViewportConfiguration.h: Added.
1758         (WebCore::ViewportConfigurationConfiguration::ViewportConfigurationConfiguration):
1759         (WebCore::ViewportConfiguration::defaultConfiguration):
1760         (WebCore::ViewportConfiguration::contentsSize):
1761         (WebCore::ViewportConfiguration::minimumLayoutSize):
1762         (WebCore::ViewportConfiguration::viewportArguments):
1763
1764 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
1765
1766         SelectorCodeGenerator::generateElementHasTagName should match the local name before the namespace
1767         https://bugs.webkit.org/show_bug.cgi?id=128167
1768
1769         Reviewed by Sam Weinig.
1770
1771         The local name is a stricter filter than the namespace, it should always run first.
1772
1773         * cssjit/SelectorCompiler.cpp:
1774         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementHasTagName):
1775
1776 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
1777
1778         Add HTMLNames::classAttr as a regular name in SVGElement::isAnimatableAttribute
1779         https://bugs.webkit.org/show_bug.cgi?id=128166
1780
1781         Reviewed by Sam Weinig.
1782
1783         For historical reasons, classAttr was treated separately. There is no reasons for that anymore.
1784
1785         * svg/SVGElement.cpp:
1786         (WebCore::SVGElement::isAnimatableAttribute):
1787
1788 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
1789
1790         Support encoding and decoding of Regions
1791         https://bugs.webkit.org/show_bug.cgi?id=128284
1792
1793         Reviewed by Anders Carlsson.
1794
1795         Region changes to make it encodable:
1796         
1797         Make Region::Span public and give it a default constructor.
1798         Allow getting and setting of Shape internals, and a way to update
1799         the Region bounds after changing the shape. Also add a way to test
1800         for valid spans and segments.
1801
1802         * platform/graphics/Region.cpp:
1803         (WebCore::Region::Shape::isValid):
1804         (WebCore::Region::updateBoundsFromShape):
1805         * platform/graphics/Region.h:
1806         (WebCore::Region::isValid):
1807         (WebCore::Region::Span::Span):
1808         (WebCore::Region::shapeSegments):
1809         (WebCore::Region::shapeSpans):
1810         (WebCore::Region::setShapeSegments):
1811         (WebCore::Region::setShapeSpans):
1812         (WebCore::Region::Shape::segments):
1813         (WebCore::Region::Shape::spans):
1814         (WebCore::Region::Shape::setSegments):
1815         (WebCore::Region::Shape::setSpans):
1816
1817 2014-02-05  Andreas Kling  <akling@apple.com>
1818
1819         Rebaseline the bindings tests after Oliver's hackery.
1820
1821         * bindings/scripts/test/JS/:
1822
1823 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
1824
1825         [EFL][GTK] Share plugin's implementation between EFL and Gtk ports.
1826         https://bugs.webkit.org/show_bug.cgi?id=70592
1827
1828         Reviewed by Gyuyoung Kim.
1829
1830         Merge common logics of PluginViewGtk.cpp and PluginViewEfl.cpp to PluginViewX11.cpp.
1831         So, this patch improves the windowless plugin support for the EFL port.
1832
1833         * GNUmakefile.am: Add include path for gtk2xtbin.h header file.
1834         * GNUmakefile.list.am: Added PluginViewX11.cpp into source lists.
1835         * PlatformEfl.cmake: Ditto.
1836         * PlatformGTK.cmake: Ditto.
1837         * plugins/PluginView.h: Added getRootWindow and getPluginDisply which implement platform specific code.
1838         * plugins/efl/PluginViewEfl.cpp:
1839         (WebCore::PluginView::getRootWindow):
1840         (WebCore::PluginView::platformGetValueStatic): Turn on NPNVSupportsWindowless support.
1841         (WebCore::PluginView::getPluginDisplay):
1842         (WebCore::PluginView::platformStart):
1843         * plugins/gtk/PluginViewGtk.cpp:
1844         (WebCore::PluginView::getRootWindow):
1845         (WebCore::setXButtonEventSpecificFields):
1846         (WebCore::setXMotionEventSpecificFields):
1847         (WebCore::setXCrossingEventSpecificFields):
1848         (WebCore::PluginView::getPluginDisplay):
1849         (WebCore::PluginView::platformStart):
1850         * plugins/x11/PluginViewX11.cpp: Moved common logics from PluginViewGtk.cpp
1851         (WebCore::PluginView::dispatchNPEvent):
1852         (WebCore::PluginView::updatePluginWidget):
1853         (WebCore::PluginView::handleFocusInEvent):
1854         (WebCore::PluginView::invalidateRect):
1855         (WebCore::PluginView::invalidateRegion):
1856         (WebCore::PluginView::handleFocusOutEvent):
1857         (WebCore::PluginView::initXEvent):
1858         (WebCore::PluginView::paint):
1859         (WebCore::PluginView::setParent):
1860         (WebCore::PluginView::setNPWindowRect):
1861         (WebCore::PluginView::setNPWindowIfNeeded):
1862
1863 2014-02-05  Anders Carlsson  <andersca@apple.com>
1864
1865         Fix a warning.
1866
1867         * platform/mac/ContentFilterMac.mm:
1868         (WebCore::ContentFilter::ContentFilter):
1869         Remove an unnecessary comparison.
1870
1871 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
1872
1873         Fix the !ENABLE(PAGE_VISIBILITY_API) build
1874         https://bugs.webkit.org/show_bug.cgi?id=127907
1875
1876         Reviewed by Brent Fulgham.
1877
1878         * page/Page.cpp:
1879         (WebCore::Page::setIsVisible):
1880
1881 2014-02-05  Oliver Hunt  <oliver@apple.com>
1882
1883         Change custom getter signature to make the base reference an object pointer
1884         https://bugs.webkit.org/show_bug.cgi?id=128279
1885
1886         Reviewed by Geoffrey Garen.
1887
1888         Update everything to the new calling convention.
1889
1890         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
1891         (WebCore::cssPropertyGetterPixelOrPosPrefixCallback):
1892         (WebCore::cssPropertyGetterCallback):
1893         * bindings/js/JSDOMBinding.cpp:
1894         (WebCore::objectToStringFunctionGetter):
1895         * bindings/js/JSDOMBinding.h:
1896         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
1897         (WebCore::JSDOMMimeTypeArray::nameGetter):
1898         * bindings/js/JSDOMPluginArrayCustom.cpp:
1899         (WebCore::JSDOMPluginArray::nameGetter):
1900         * bindings/js/JSDOMPluginCustom.cpp:
1901         (WebCore::JSDOMPlugin::nameGetter):
1902         * bindings/js/JSDOMWindowCustom.cpp:
1903         (WebCore::nonCachingStaticFunctionGetter):
1904         (WebCore::childFrameGetter):
1905         (WebCore::indexGetter):
1906         (WebCore::namedItemGetter):
1907         * bindings/js/JSHTMLAllCollectionCustom.cpp:
1908         (WebCore::JSHTMLAllCollection::nameGetter):
1909         * bindings/js/JSHTMLCollectionCustom.cpp:
1910         (WebCore::JSHTMLCollection::nameGetter):
1911         * bindings/js/JSHTMLDocumentCustom.cpp:
1912         (WebCore::JSHTMLDocument::nameGetter):
1913         * bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
1914         (WebCore::JSHTMLFormControlsCollection::nameGetter):
1915         * bindings/js/JSHTMLFormElementCustom.cpp:
1916         (WebCore::JSHTMLFormElement::nameGetter):
1917         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
1918         (WebCore::JSHTMLFrameSetElement::nameGetter):
1919         * bindings/js/JSHistoryCustom.cpp:
1920         (WebCore::nonCachingStaticBackFunctionGetter):
1921         (WebCore::nonCachingStaticForwardFunctionGetter):
1922         (WebCore::nonCachingStaticGoFunctionGetter):
1923         * bindings/js/JSLocationCustom.cpp:
1924         (WebCore::nonCachingStaticReplaceFunctionGetter):
1925         (WebCore::nonCachingStaticReloadFunctionGetter):
1926         (WebCore::nonCachingStaticAssignFunctionGetter):
1927         * bindings/js/JSNamedNodeMapCustom.cpp:
1928         (WebCore::JSNamedNodeMap::nameGetter):
1929         * bindings/js/JSPluginElementFunctions.cpp:
1930         (WebCore::pluginElementPropertyGetter):
1931         * bindings/js/JSPluginElementFunctions.h:
1932         * bindings/js/JSRTCStatsResponseCustom.cpp:
1933         (WebCore::JSRTCStatsResponse::nameGetter):
1934         * bindings/js/JSStorageCustom.cpp:
1935         (WebCore::JSStorage::nameGetter):
1936         * bindings/js/JSStyleSheetListCustom.cpp:
1937         (WebCore::JSStyleSheetList::nameGetter):
1938         * bindings/scripts/CodeGeneratorJS.pm:
1939         (GenerateHeader):
1940         (GenerateImplementation):
1941         * bridge/runtime_array.cpp:
1942         (JSC::RuntimeArray::lengthGetter):
1943         (JSC::RuntimeArray::indexGetter):
1944         * bridge/runtime_array.h:
1945         * bridge/runtime_method.cpp:
1946         (JSC::RuntimeMethod::lengthGetter):
1947         * bridge/runtime_method.h:
1948         * bridge/runtime_object.cpp:
1949         (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
1950         (JSC::Bindings::RuntimeObject::fieldGetter):
1951         (JSC::Bindings::RuntimeObject::methodGetter):
1952         * bridge/runtime_object.h:
1953
1954 2014-02-04  Andy Estes  <aestes@apple.com>
1955
1956         Buffer incoming data in ContentFilter when using NEFilterSource
1957         https://bugs.webkit.org/show_bug.cgi?id=127979
1958
1959         Reviewed by Sam Weinig.
1960
1961         WebFilterEvaluator buffers incoming data and returns it to us as
1962         replacement data if the load is allowed. NEFilterSource doesn't do
1963         this, so we need to do our own buffering.
1964
1965         * platform/ContentFilter.h: Forward-declared NSMutableData and added
1966         m_originalData.
1967         * platform/mac/ContentFilterMac.mm:
1968         (WebCore::ContentFilter::ContentFilter): Constructed m_originalData
1969         with an initial capacity (if we know the expected content size).
1970         (WebCore::ContentFilter::addData): Buffered incoming data if we are
1971         using NEFilterSource.
1972         (WebCore::ContentFilter::finishedAddingData):
1973         (WebCore::ContentFilter::getReplacementData): Returned m_originalData
1974         if the load wasn't blocked.
1975
1976 2014-02-05  Andreas Kling  <akling@apple.com>
1977
1978         Remove ENABLE(DIRECTORY_UPLOAD).
1979         <https://webkit.org/b/128275>
1980
1981         This is a non-standard Chrome extension that none of the WebKit
1982         ports have even been building.
1983
1984         Rubber-stamped by Ryosuke Niwa.
1985
1986         * Configurations/FeatureDefines.xcconfig:
1987         * fileapi/File.cpp:
1988         * fileapi/File.h:
1989         * fileapi/File.idl:
1990         * html/FileInputType.cpp:
1991         (WebCore::FileInputType::handleDOMActivateEvent):
1992         (WebCore::FileInputType::createFileList):
1993         (WebCore::FileInputType::receiveDroppedFiles):
1994         * html/FileInputType.h:
1995         * html/HTMLAttributeNames.in:
1996         * html/HTMLInputElement.cpp:
1997         (WebCore::HTMLInputElement::parseAttribute):
1998         * html/HTMLInputElement.idl:
1999         * loader/EmptyClients.h:
2000         * page/Chrome.cpp:
2001         * page/Chrome.h:
2002         * page/ChromeClient.h:
2003         * platform/FileChooser.h:
2004         * platform/network/FormData.cpp:
2005         (WebCore::FormData::appendKeyValuePairItems):
2006
2007 2014-02-05  Brady Eidson  <beidson@apple.com>
2008
2009         IDB: storage/indexeddb/mozilla/autoincrement-indexes.html fails
2010         https://bugs.webkit.org/show_bug.cgi?id=128257
2011
2012         Reviewed by Sam Weinig.
2013
2014         Tests: storage/indexeddb/mozilla/autoincrement-indexes.html
2015
2016         Add some IDBKeyData utility methods for WK2 to use:
2017         * Modules/indexeddb/IDBKeyData.cpp:
2018         (WebCore::IDBKeyData::setArrayValue):
2019         (WebCore::IDBKeyData::setStringValue):
2020         (WebCore::IDBKeyData::setDateValue):
2021         (WebCore::IDBKeyData::setNumberValue):
2022         * Modules/indexeddb/IDBKeyData.h:
2023
2024         * WebCore.exp.in:
2025
2026 2014-02-05  Andreas Kling  <akling@apple.com>
2027
2028         Turn on ENABLE(8BIT_TEXTRUN) for everyone.
2029         <https://webkit.org/b/128273>
2030
2031         Reviewed by Anders Carlsson.
2032
2033         * platform/graphics/TextRun.h:
2034         (WebCore::TextRun::TextRun):
2035         (WebCore::TextRun::subRun):
2036         * rendering/RenderBlock.cpp:
2037         (WebCore::RenderBlock::constructTextRun):
2038         * rendering/RenderBlock.h:
2039
2040 2014-02-05  Enrica Casucci  <enrica@apple.com>
2041
2042         WK2: Caret, selections and autocorrection bubbles are incorrectly positioned when inside an iframe.
2043         https://bugs.webkit.org/show_bug.cgi?id=128264
2044         <rdar://problem/15986954>
2045
2046         Reviewed by Simon Fraser.
2047
2048         Adding new exported function.
2049
2050         * WebCore.exp.in:
2051
2052 2014-02-05  Antti Koivisto  <antti@apple.com>
2053
2054         ElementRuleCollector should not use StyleResolver::State
2055         https://bugs.webkit.org/show_bug.cgi?id=128247
2056
2057         Reviewed by Andreas Kling.
2058         
2059         Make ElementRuleCollector more reusable.
2060
2061         * css/ElementRuleCollector.cpp:
2062         (WebCore::ElementRuleCollector::collectMatchingRules):
2063         (WebCore::ElementRuleCollector::sortAndTransferMatchedRules):
2064         (WebCore::ElementRuleCollector::matchAuthorRules):
2065         (WebCore::ElementRuleCollector::matchUARules):
2066         (WebCore::ElementRuleCollector::ruleMatches):
2067         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
2068         (WebCore::ElementRuleCollector::matchAllRules):
2069         * css/ElementRuleCollector.h:
2070         (WebCore::ElementRuleCollector::ElementRuleCollector):
2071         
2072             Pass the objects that are actually needed rather than the entire State.
2073
2074 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
2075
2076         [Mac] Correct copy/paste error in scrolling code.
2077         https://bugs.webkit.org/show_bug.cgi?id=128258
2078
2079         Reviewed by Anders Carlsson.
2080
2081         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
2082         (WebCore::ScrollingTreeScrollingNodeMac::pinnedInDirection): Use
2083         'setWidth' when dealing with width metrics.
2084
2085 2014-02-05  Yuki Sekiguchi  <yuki.sekiguchi@access-company.com>
2086
2087         Ruby base oddly justify its text when the text is ideograph and it contains <br> on Mac.
2088         https://bugs.webkit.org/show_bug.cgi?id=106417
2089
2090         Reviewed by David Hyatt.
2091
2092         Ruby base always justify even if a line have hard break.
2093         Even if next leaf child is line break, InlineTextBox allow trailing expansion.
2094         This make <br> expanded, and there is odd space at the end of the line.
2095
2096         Test: fast/text/ruby-justification-br.html
2097
2098         * rendering/InlineTextBox.h:
2099         (WebCore::InlineTextBox::expansionBehavior):
2100          - If next leaf child is line break, we should forbid trailing expansion.
2101
2102 2014-02-05  Andreas Kling  <akling@apple.com>
2103
2104         FrameLoader::stateMachine() should return a reference.
2105         <https://webkit.org/b/128263>
2106
2107         There is always a FrameLoaderStateMatchine, so return it by
2108         reference since it can never be null.
2109
2110         Reviewed by Anders Carlsson.
2111
2112         * history/PageCache.cpp:
2113         (WebCore::logCanCachePageDecision):
2114         * loader/DocumentLoader.cpp:
2115         (WebCore::DocumentLoader::finishedLoading):
2116         (WebCore::DocumentLoader::commitData):
2117         (WebCore::DocumentLoader::maybeLoadEmpty):
2118         * loader/DocumentWriter.cpp:
2119         (WebCore::DocumentWriter::createDocument):
2120         (WebCore::DocumentWriter::begin):
2121         * loader/FrameLoader.cpp:
2122         (WebCore::FrameLoader::prepareForHistoryNavigation):
2123         * loader/FrameLoader.h:
2124         (WebCore::FrameLoader::stateMachine):
2125         * loader/HistoryController.cpp:
2126         (WebCore::HistoryController::restoreScrollPositionAndViewState):
2127         (WebCore::HistoryController::saveDocumentState):
2128         * loader/NavigationScheduler.cpp:
2129         (WebCore::NavigationScheduler::scheduleLocationChange):
2130         (WebCore::NavigationScheduler::scheduleFormSubmission):
2131         * loader/ProgressTracker.cpp:
2132         (WebCore::ProgressTracker::incrementProgress):
2133         * loader/cache/CachedResourceLoader.cpp:
2134         (WebCore::CachedResourceLoader::storeResourceTimingInitiatorInformation):
2135         * page/Frame.cpp:
2136         (WebCore::Frame::injectUserScripts):
2137         * page/FrameView.cpp:
2138         (WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
2139
2140 2014-02-04  Myles C. Maxfield  <mmaxfield@apple.com>
2141
2142         Move characterAt index checks from InlineIterator to RenderText
2143         https://bugs.webkit.org/show_bug.cgi?id=128224
2144
2145         Reviewed by Simon Fraser.
2146
2147         Move characterAt index checks from InlineIterator to RenderText
2148         so that all RenderText calls are covered. Few safe instances are
2149         now covered with uncheckedCharacterAt.
2150
2151         Merged from Blink:
2152         http://src.chromium.org/viewvc/blink?view=revision&revision=150830
2153
2154         Test: fast/text/character-at-crash.html
2155
2156         * rendering/InlineIterator.h:
2157         (WebCore::InlineIterator::characterAt):
2158         * rendering/RenderText.cpp:
2159         (WebCore::RenderText::computePreferredLogicalWidths):
2160         * rendering/RenderText.h:
2161         (WebCore::RenderText::operator[]):
2162         (WebCore::RenderText::uncheckedCharacterAt):
2163         (WebCore::RenderText::characterAt):
2164
2165 2014-02-05  Andreas Kling  <akling@apple.com>
2166
2167         Remove leftover seamless iframe logic from containerForRepaint().
2168         <https://webkit.org/b/128235>
2169
2170         The parent-flow-thread-in-different-document case is no longer
2171         relevant after <iframe seamless> was removed.
2172
2173         Reviewed by David Hyatt.
2174
2175         * rendering/RenderObject.cpp:
2176         (WebCore::RenderObject::containerForRepaint):
2177
2178 2014-02-05  Hans Muller  <hmuller@adobe.com>
2179
2180         [CSS Shapes] Dynamically created element with image valued shape-outside doesn't update automatically
2181         https://bugs.webkit.org/show_bug.cgi?id=128187
2182
2183         Reviewed by Dean Jackson.
2184
2185         Corrected the way shape-outside handles the completion of an image load. Move
2186         the shape-outside imageChanged() logic from RenderBlock to RenderBox and call
2187         markShapeOutsideDependentsForLayout() instead of parent()->setNeedsLayoutAndPrefWidthsRecalc().
2188         The latter did not deal with descendants of the shape element's siblings correctly and it
2189         failed when the shape element was inserted dynamically. The markShapeOutsideDependentsForLayout()
2190         method can't be called during layout, so the imageChanged() code checks for that. The only
2191         scenario where imageChanged() can be called during layout (that I've discovered so far anyway)
2192         is when an SVG Image is renderered  with drawImage(). The Shape::createRasterShape() does this,
2193         and the corresponding imageChanged() notification can be safely ignored.
2194
2195         Test: fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html
2196
2197         * rendering/RenderBlock.cpp:
2198         (WebCore::RenderBlock::imageChanged):
2199         * rendering/RenderBox.cpp:
2200         (WebCore::RenderBox::imageChanged):
2201
2202 2014-02-05  Andreas Kling  <akling@apple.com>
2203
2204         CTTE: ImageLoader is always owned by an Element.
2205         <https://webkit.org/b/128254>
2206
2207         - Codify this by making the constructor take Element& or better.
2208         - Make element() return Element&.
2209         - Marked HTMLImageLoader and SVGImageLoader final.
2210         - Made the ImageLoader constructor protected.
2211
2212         Reviewed by Sam Weinig.
2213
2214         * html/HTMLEmbedElement.cpp:
2215         (WebCore::HTMLEmbedElement::parseAttribute):
2216         * html/HTMLImageElement.cpp:
2217         (WebCore::HTMLImageElement::HTMLImageElement):
2218         * html/HTMLImageLoader.cpp:
2219         (WebCore::HTMLImageLoader::HTMLImageLoader):
2220         (WebCore::HTMLImageLoader::dispatchLoadEvent):
2221         (WebCore::HTMLImageLoader::sourceURI):
2222         (WebCore::HTMLImageLoader::notifyFinished):
2223         * html/HTMLImageLoader.h:
2224         * html/HTMLInputElement.cpp:
2225         (WebCore::HTMLInputElement::imageLoader):
2226         * html/HTMLObjectElement.cpp:
2227         (WebCore::HTMLObjectElement::parseAttribute):
2228         * html/HTMLPlugInImageElement.cpp:
2229         (WebCore::HTMLPlugInImageElement::startLoadingImage):
2230         * html/HTMLVideoElement.cpp:
2231         (WebCore::HTMLVideoElement::didAttachRenderers):
2232         (WebCore::HTMLVideoElement::parseAttribute):
2233         * loader/ImageLoader.cpp:
2234         (WebCore::ImageLoader::ImageLoader):
2235         (WebCore::ImageLoader::~ImageLoader):
2236         (WebCore::ImageLoader::updateFromElement):
2237         (WebCore::ImageLoader::notifyFinished):
2238         (WebCore::ImageLoader::renderImageResource):
2239         (WebCore::ImageLoader::updatedHasPendingEvent):
2240         (WebCore::ImageLoader::timerFired):
2241         (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
2242         (WebCore::ImageLoader::dispatchPendingLoadEvent):
2243         (WebCore::ImageLoader::dispatchPendingErrorEvent):
2244         * loader/ImageLoader.h:
2245         (WebCore::ImageLoader::element):
2246         * svg/SVGImageElement.cpp:
2247         (WebCore::SVGImageElement::SVGImageElement):
2248         * svg/SVGImageLoader.cpp:
2249         (WebCore::SVGImageLoader::SVGImageLoader):
2250         (WebCore::SVGImageLoader::~SVGImageLoader):
2251         (WebCore::SVGImageLoader::dispatchLoadEvent):
2252         (WebCore::SVGImageLoader::sourceURI):
2253         * svg/SVGImageLoader.h:
2254
2255 2014-02-05  Sergio Correia  <sergio.correia@openbossa.org>
2256
2257         SVG preserveAspectRatio=none is not honored.
2258         https://bugs.webkit.org/show_bug.cgi?id=111402
2259
2260         Reviewed by Andreas Kling.
2261
2262         Previously, preserveAspectRatio=none had no effect on SVG images. This change fixes this so
2263         we follow the special handling of preserveAspectRatio on images as defined in the spec:
2264         http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute.
2265
2266         Images that depend on a container size (such as SVG images) require a call to
2267         setContainerSizeForRenderer(...) to set this size. By passing the image's intrinsic size
2268         as the container size, the non-uniform scaling defined in the spec will be achieved.
2269
2270         Merged from Blink: https://chromiumcodereview.appspot.com/14964004
2271
2272         Test: svg/custom/image-with-preserveAspectRatio-none.html
2273
2274         * rendering/svg/RenderSVGImage.cpp:
2275         (WebCore::RenderSVGImage::updateImageViewport):
2276
2277 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
2278
2279         [CSS Shapes] Simplify CSSBasicShapeInset::cssText
2280         https://bugs.webkit.org/show_bug.cgi?id=127841
2281
2282         Reviewed by David Hyatt.
2283
2284         I introduced the updateCornerRadiusWidthAndHeight helper function, which makes the code of cssText method clearer.
2285
2286         No new tests, no behavior change.
2287
2288         * css/CSSBasicShapes.cpp:
2289         (WebCore::updateCornerRadiusWidthAndHeight): Add helper function.
2290         (WebCore::CSSBasicShapeInset::cssText):
2291
2292 2014-02-05  Zoltan Horvath  <zoltan@webkit.org>
2293
2294         [CSS Shapes] Simplify BasicShapeInset::path
2295         https://bugs.webkit.org/show_bug.cgi?id=127920
2296
2297         Reviewed by David Hyatt.
2298
2299         I introduced a new static helper function called floatSizeForLengthSize
2300         in order to simplify BasicShapeInset::path method.
2301
2302         No new tests, no behavior change.
2303
2304         * rendering/style/BasicShapes.cpp:
2305         (WebCore::floatSizeForLengthSize): New helper function.
2306         (WebCore::BasicShapeInset::path):
2307
2308 2014-02-05  Wojciech Bielawski  <w.bielawski@samsung.com>
2309
2310         XMLHttpRequest performs too many copies for ArrayBuffer results
2311         https://bugs.webkit.org/show_bug.cgi?id=117458
2312
2313         Reviewed by Alexey Proskuryakov.
2314
2315         Based on blink change: https://chromium.googlesource.com/chromium/blink/+/bed266aa5a43f7c080c87e527bd35e2b80ecc7b7
2316
2317         Add SharedBuffer::createArrayBuffer() and use it to create XMLHttpRequest's response in ArrayBuffer
2318         This cuts
2319             - two memsets (in ArrayBuffer::create and SharedBuffer::m_buffer::resize)
2320             - one copy (SharedBuffer::m_buffer to ArrayBufferContents::m_data)
2321             - one allocation (SharedBuffer::m_buffer)
2322
2323         No new tests. WebKit desn't provide test mechanism similar to blink's one.
2324
2325         * platform/SharedBuffer.cpp:
2326         (WebCore::SharedBuffer::createArrayBuffer):
2327         * platform/SharedBuffer.h:
2328         * xml/XMLHttpRequest.cpp:
2329         (WebCore::XMLHttpRequest::responseArrayBuffer):
2330
2331 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
2332
2333         Remove ENABLE(SVG) guards
2334         https://bugs.webkit.org/show_bug.cgi?id=127991
2335
2336         Reviewed by Sam Weinig.
2337
2338         * CMakeLists.txt:
2339         * Configurations/FeatureDefines.xcconfig:
2340         * DerivedSources.make:
2341         * GNUmakefile.am:
2342         * UseJSC.cmake:
2343         * WebCore.exp.in:
2344         * accessibility/AXObjectCache.cpp:
2345         (WebCore::createFromRenderer):
2346         * accessibility/AccessibilityNodeObject.cpp:
2347         (WebCore::AccessibilityNodeObject::alternativeText):
2348         (WebCore::AccessibilityNodeObject::accessibilityDescription):
2349         * accessibility/AccessibilityRenderObject.cpp:
2350         (WebCore::AccessibilityRenderObject::boundingBoxRect):
2351         (WebCore::AccessibilityRenderObject::supportsPath):
2352         (WebCore::AccessibilityRenderObject::elementPath):
2353         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
2354         (WebCore::AccessibilityRenderObject::remoteSVGRootElement):
2355         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
2356         (-[WebAccessibilityObjectWrapper isSVGGroupElement]):
2357         * bindings/gobject/GNUmakefile.am:
2358         * bindings/js/JSCSSValueCustom.cpp:
2359         (WebCore::toJS):
2360         * bindings/js/JSDocumentCustom.cpp:
2361         (WebCore::toJS):
2362         * bindings/js/JSElementCustom.cpp:
2363         (WebCore::toJSNewlyCreated):
2364         * bindings/js/JSExceptionBase.cpp:
2365         (WebCore::toExceptionBase):
2366         * bindings/js/JSNodeCustom.cpp:
2367         (WebCore::createWrapperInline):
2368         * bindings/js/JSSVGElementInstanceCustom.cpp:
2369         * bindings/js/JSSVGLengthCustom.cpp:
2370         * bindings/js/JSSVGPathSegCustom.cpp:
2371         * css/CSSComputedStyleDeclaration.cpp:
2372         (WebCore::ComputedStyleExtractor::propertyValue):
2373         * css/CSSComputedStyleDeclaration.h:
2374         * css/CSSCursorImageValue.cpp:
2375         (WebCore::resourceReferencedByCursorElement):
2376         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
2377         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
2378         (WebCore::CSSCursorImageValue::cachedImage):
2379         (WebCore::CSSCursorImageValue::removeReferencedElement):
2380         * css/CSSCursorImageValue.h:
2381         * css/CSSDefaultStyleSheets.cpp:
2382         (WebCore::CSSDefaultStyleSheets::ensureDefaultStyleSheetsForElement):
2383         * css/CSSFontSelector.cpp:
2384         * css/CSSParser.cpp:
2385         (WebCore::CSSParser::parseValue):
2386         (WebCore::CSSParser::parseClipPath):
2387         (WebCore::CSSParser::parseShadow):
2388         (WebCore::CSSParser::parseFilter):
2389         (WebCore::CSSParser::realLex):
2390         * css/CSSParser.h:
2391         * css/CSSPrimitiveValueMappings.h:
2392         * css/CSSStyleSheet.cpp:
2393         (WebCore::isAcceptableCSSStyleSheetParent):
2394         * css/CSSValue.cpp:
2395         (WebCore::CSSValue::equals):
2396         (WebCore::CSSValue::cssText):
2397         (WebCore::CSSValue::destroy):
2398         (WebCore::CSSValue::cloneForCSSOM):
2399         * css/CSSValue.h:
2400         (WebCore::CSSValue::isSubtypeExposedToCSSOM):
2401         * css/CSSValueKeywords.in:
2402         * css/DeprecatedStyleBuilder.cpp:
2403         (WebCore::ApplyPropertyDisplay::isValidDisplayValue):
2404         (WebCore::ApplyPropertyClipPath::applyValue):
2405         * css/ElementRuleCollector.cpp:
2406         (WebCore::ElementRuleCollector::matchAllRules):
2407         * css/SVGCSSComputedStyleDeclaration.cpp:
2408         * css/SVGCSSParser.cpp:
2409         * css/SVGCSSPropertyNames.in:
2410         * css/SVGCSSStyleSelector.cpp:
2411         * css/StyleProperties.cpp:
2412         (WebCore::StyleProperties::getPropertyValue):
2413         * css/StylePropertyShorthand.cpp:
2414         (WebCore::markerShorthand):
2415         (WebCore::shorthandForProperty):
2416         (WebCore::matchingShorthandsForLonghand):
2417         * css/StylePropertyShorthand.h:
2418         * css/StyleResolver.cpp:
2419         (WebCore::StyleResolver::State::clear):
2420         (WebCore::StyleResolver::locateCousinList):
2421         (WebCore::StyleResolver::sharingCandidateHasIdenticalStyleAffectingAttributes):
2422         (WebCore::StyleResolver::canShareStyleWithElement):
2423         (WebCore::StyleResolver::locateSharedStyle):
2424         (WebCore::StyleResolver::adjustRenderStyle):
2425         (WebCore::isValidVisitedLinkProperty):
2426         (WebCore::StyleResolver::applyProperty):
2427         (WebCore::StyleResolver::loadPendingSVGDocuments):
2428         (WebCore::StyleResolver::createFilterOperations):
2429         (WebCore::StyleResolver::loadPendingResources):
2430         * css/StyleResolver.h:
2431         * dom/DOMExceptions.in:
2432         * dom/DOMImplementation.cpp:
2433         (WebCore::addString):
2434         (WebCore::isSupportedSVG11Feature):
2435         (WebCore::DOMImplementation::hasFeature):
2436         (WebCore::DOMImplementation::createDocument):
2437         * dom/Document.cpp:
2438         (WebCore::Document::commonTeardown):
2439         (WebCore::Document::createElement):
2440         (WebCore::Document::implicitClose):
2441         (WebCore::Document::hasSVGRootNode):
2442         * dom/Document.h:
2443         * dom/DocumentStyleSheetCollection.cpp:
2444         (WebCore::DocumentStyleSheetCollection::collectActiveStyleSheets):
2445         * dom/Element.cpp:
2446         (WebCore::Element::~Element):
2447         (WebCore::Element::synchronizeAllAttributes):
2448         (WebCore::Element::synchronizeAttribute):
2449         (WebCore::Element::boundsInRootViewSpace):
2450         (WebCore::Element::getBoundingClientRect):
2451         (WebCore::Element::removedFrom):
2452         (WebCore::Element::childShouldCreateRenderer):
2453         (WebCore::Element::fastAttributeLookupAllowed):
2454         (WebCore::Element::clearHasPendingResources):
2455         * dom/Element.h:
2456         * dom/ElementData.h:
2457         * dom/ElementRareData.h:
2458         (WebCore::ElementRareData::ElementRareData):
2459         * dom/EventDispatcher.cpp:
2460         (WebCore::eventTargetRespectingTargetRules):
2461         * dom/EventListenerMap.cpp:
2462         * dom/EventListenerMap.h:
2463         * dom/EventNames.in:
2464         * dom/EventTargetFactory.in:
2465         * dom/QualifiedName.cpp:
2466         * dom/ScriptElement.cpp:
2467         (WebCore::toScriptElementIfPossible):
2468         * dom/Text.cpp:
2469         (WebCore::isSVGText):
2470         (WebCore::Text::createTextRenderer):
2471         * history/CachedFrame.cpp:
2472         (WebCore::CachedFrameBase::restore):
2473         * html/HTMLAnchorElement.cpp:
2474         (WebCore::shouldProhibitLinks):
2475         * html/HTMLEmbedElement.idl:
2476         * html/HTMLFrameElement.idl:
2477         * html/HTMLFrameOwnerElement.cpp:
2478         (WebCore::HTMLFrameOwnerElement::getSVGDocument):
2479         * html/HTMLFrameOwnerElement.h:
2480         * html/HTMLIFrameElement.idl:
2481         * html/HTMLObjectElement.idl:
2482         * html/canvas/DOMPath.h:
2483         (WebCore::DOMPath::create):
2484         * html/canvas/DOMPath.idl:
2485         * html/parser/XSSAuditor.cpp:
2486         (WebCore::isSemicolonSeparatedAttribute):
2487         * inspector/DOMPatchSupport.cpp:
2488         (WebCore::DOMPatchSupport::patchDocument):
2489         * inspector/InspectorCSSAgent.cpp:
2490         (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
2491         * inspector/InspectorDOMAgent.cpp:
2492         (WebCore::InspectorDOMAgent::setOuterHTML):
2493         * inspector/InspectorOverlay.cpp:
2494         * inspector/InspectorStyleSheet.cpp:
2495         (WebCore::InspectorStyleSheet::inlineStyleSheetText):
2496         * loader/FrameLoader.cpp:
2497         * loader/ImageLoader.cpp:
2498         (WebCore::ImageLoader::renderImageResource):
2499         * loader/cache/CachedImage.cpp:
2500         (WebCore::CachedImage::didRemoveClient):
2501         (WebCore::CachedImage::imageForRenderer):
2502         (WebCore::CachedImage::setContainerSizeForRenderer):
2503         (WebCore::CachedImage::imageSizeForRenderer):
2504         (WebCore::CachedImage::createImage):
2505         * loader/cache/CachedImage.h:
2506         * loader/cache/CachedResource.cpp:
2507         (WebCore::defaultPriorityForResourceType):
2508         * loader/cache/CachedResource.h:
2509         * loader/cache/CachedResourceClient.h:
2510         * loader/cache/CachedResourceLoader.cpp:
2511         (WebCore::createResource):
2512         (WebCore::CachedResourceLoader::requestSVGDocument):
2513         (WebCore::CachedResourceLoader::checkInsecureContent):
2514         (WebCore::CachedResourceLoader::canRequest):
2515         * loader/cache/CachedResourceLoader.h:
2516         * loader/cache/CachedSVGDocument.cpp:
2517         * loader/cache/CachedSVGDocument.h:
2518         * loader/cache/CachedSVGDocumentClient.h:
2519         * loader/cache/CachedSVGDocumentReference.cpp:
2520         * loader/cache/CachedSVGDocumentReference.h:
2521         * page/EventHandler.cpp:
2522         (WebCore::EventHandler::EventHandler):
2523         (WebCore::EventHandler::clear):
2524         (WebCore::EventHandler::handleMousePressEvent):
2525         (WebCore::EventHandler::updateSelectionForMouseDrag):
2526         (WebCore::EventHandler::handleMouseMoveEvent):
2527         (WebCore::EventHandler::handleMouseReleaseEvent):
2528         (WebCore::instanceAssociatedWithShadowTreeElement):
2529         (WebCore::EventHandler::updateMouseEventTargetNode):
2530         * page/EventHandler.h:
2531         * page/Frame.cpp:
2532         (WebCore::Frame::setPageAndTextZoomFactors):
2533         * page/FrameView.cpp:
2534         (WebCore::FrameView::applyOverflowToViewport):
2535         (WebCore::FrameView::forceLayoutParentViewIfNeeded):
2536         (WebCore::FrameView::embeddedContentBox):
2537         (WebCore::FrameView::scrollToAnchor):
2538         * page/animation/CSSPropertyAnimation.cpp:
2539         (WebCore::blendFunc):
2540         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2541         * platform/MIMETypeRegistry.cpp:
2542         (WebCore::initializeSupportedNonImageMimeTypes):
2543         * platform/graphics/TextRun.cpp:
2544         * platform/graphics/TextRun.h:
2545         (WebCore::TextRun::TextRun):
2546         * platform/graphics/WidthIterator.cpp:
2547         (WebCore::WidthIterator::advanceInternal):
2548         * platform/graphics/filters/FETile.cpp:
2549         (WebCore::FETile::platformApplySoftware):
2550         * platform/graphics/filters/FilterOperation.cpp:
2551         (WebCore::ReferenceFilterOperation::getOrCreateCachedSVGDocumentReference):
2552         * platform/graphics/filters/FilterOperation.h:
2553         * platform/gtk/PasteboardGtk.cpp:
2554         (WebCore::getURLForImageElement):
2555         * rendering/FilterEffectRenderer.cpp:
2556         (WebCore::FilterEffectRenderer::buildReferenceFilter):
2557         * rendering/HitTestLocation.cpp:
2558         * rendering/HitTestResult.cpp:
2559         (WebCore::HitTestResult::absoluteImageURL):
2560         (WebCore::HitTestResult::absoluteLinkURL):
2561         (WebCore::HitTestResult::isLiveLink):
2562         * rendering/InlineBox.h:
2563         * rendering/LogicalSelectionOffsetCaches.h:
2564         (WebCore::isContainingBlockCandidateForAbsolutelyPositionedObject):
2565         * rendering/PaintInfo.h:
2566         (WebCore::PaintInfo::applyTransform):
2567         * rendering/RenderBlockLineLayout.cpp:
2568         (WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns):
2569         * rendering/RenderBoxModelObject.cpp:
2570         (WebCore::RenderBoxModelObject::paintFillLayerExtended):
2571         * rendering/RenderElement.cpp:
2572         (WebCore::RenderElement::addChild):
2573         (WebCore::RenderElement::layerCreationAllowedForSubtree):
2574         (WebCore::RenderElement::styleDidChange):
2575         * rendering/RenderGeometryMap.cpp:
2576         (WebCore::canMapBetweenRenderers):
2577         * rendering/RenderImage.cpp:
2578         (WebCore::RenderImage::embeddedContentBox):
2579         * rendering/RenderLayer.cpp:
2580         (WebCore::RenderLayer::isTransparent):
2581         (WebCore::RenderLayer::setupClipPath):
2582         (WebCore::RenderLayer::calculateClipRects):
2583         * rendering/RenderLayer.h:
2584         * rendering/RenderLayerFilterInfo.cpp:
2585         (WebCore::RenderLayer::FilterInfo::~FilterInfo):
2586         * rendering/RenderLayerFilterInfo.h:
2587         * rendering/RenderNamedFlowThread.cpp:
2588         (WebCore::nextNodeInsideContentElement):
2589         * rendering/RenderObject.cpp:
2590         (WebCore::objectIsRelayoutBoundary):
2591         (WebCore::RenderObject::container):
2592         (WebCore::RenderObject::willBeRemovedFromTree):
2593         * rendering/RenderObject.h:
2594         (WebCore::RenderObject::canContainFixedPositionObjects):
2595         (WebCore::RenderObject::preservesNewline):
2596         * rendering/RenderTreeAsText.cpp:
2597         (WebCore::write):
2598         * rendering/RenderView.cpp:
2599         (WebCore::RenderView::layout):
2600         * rendering/RootInlineBox.cpp:
2601         (WebCore::RootInlineBox::alignBoxesInBlockDirection):
2602         * rendering/SimpleLineLayout.cpp:
2603         (WebCore::SimpleLineLayout::canUseFor):
2604         * rendering/line/BreakingContextInlineHeaders.h:
2605         (WebCore::BreakingContext::initializeForCurrentObject):
2606         (WebCore::BreakingContext::handleText):
2607         * rendering/style/RenderStyle.cpp:
2608         (WebCore::RenderStyle::RenderStyle):
2609         (WebCore::RenderStyle::inheritFrom):
2610         (WebCore::RenderStyle::copyNonInheritedFrom):
2611         (WebCore::RenderStyle::operator==):
2612         (WebCore::RenderStyle::inheritedNotEqual):
2613         (WebCore::RenderStyle::inheritedDataShared):
2614         (WebCore::RenderStyle::diff):
2615         * rendering/style/RenderStyle.h:
2616         * rendering/style/SVGRenderStyle.cpp:
2617         * rendering/style/SVGRenderStyle.h:
2618         * rendering/style/SVGRenderStyleDefs.cpp:
2619         * rendering/style/SVGRenderStyleDefs.h:
2620         * rendering/svg/RenderSVGBlock.cpp:
2621         * rendering/svg/RenderSVGBlock.h:
2622         * rendering/svg/RenderSVGContainer.cpp:
2623         * rendering/svg/RenderSVGContainer.h:
2624         * rendering/svg/RenderSVGEllipse.cpp:
2625         * rendering/svg/RenderSVGEllipse.h:
2626         * rendering/svg/RenderSVGForeignObject.cpp:
2627         * rendering/svg/RenderSVGForeignObject.h:
2628         * rendering/svg/RenderSVGGradientStop.cpp:
2629         * rendering/svg/RenderSVGGradientStop.h:
2630         * rendering/svg/RenderSVGHiddenContainer.cpp:
2631         * rendering/svg/RenderSVGHiddenContainer.h:
2632         * rendering/svg/RenderSVGImage.cpp:
2633         * rendering/svg/RenderSVGImage.h:
2634         * rendering/svg/RenderSVGInline.cpp:
2635         * rendering/svg/RenderSVGInline.h:
2636         * rendering/svg/RenderSVGInlineText.cpp:
2637         * rendering/svg/RenderSVGInlineText.h:
2638         * rendering/svg/RenderSVGModelObject.cpp:
2639         * rendering/svg/RenderSVGModelObject.h:
2640         * rendering/svg/RenderSVGPath.cpp:
2641         * rendering/svg/RenderSVGPath.h:
2642         * rendering/svg/RenderSVGRect.cpp:
2643         * rendering/svg/RenderSVGRect.h:
2644         * rendering/svg/RenderSVGResource.cpp:
2645         * rendering/svg/RenderSVGResource.h:
2646         * rendering/svg/RenderSVGResourceClipper.cpp:
2647         * rendering/svg/RenderSVGResourceClipper.h:
2648         * rendering/svg/RenderSVGResourceContainer.cpp:
2649         * rendering/svg/RenderSVGResourceContainer.h:
2650         * rendering/svg/RenderSVGResourceFilter.cpp:
2651         * rendering/svg/RenderSVGResourceFilter.h:
2652         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
2653         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
2654         * rendering/svg/RenderSVGResourceGradient.cpp:
2655         (WebCore::RenderSVGResourceGradient::applyResource):
2656         * rendering/svg/RenderSVGResourceGradient.h:
2657         * rendering/svg/RenderSVGResourceLinearGradient.cpp:
2658         * rendering/svg/RenderSVGResourceLinearGradient.h:
2659         * rendering/svg/RenderSVGResourceMarker.cpp:
2660         * rendering/svg/RenderSVGResourceMarker.h:
2661         * rendering/svg/RenderSVGResourceMasker.cpp:
2662         * rendering/svg/RenderSVGResourceMasker.h:
2663         * rendering/svg/RenderSVGResourcePattern.cpp:
2664         * rendering/svg/RenderSVGResourcePattern.h:
2665         * rendering/svg/RenderSVGResourceRadialGradient.cpp:
2666         * rendering/svg/RenderSVGResourceRadialGradient.h:
2667         * rendering/svg/RenderSVGResourceSolidColor.cpp:
2668         * rendering/svg/RenderSVGResourceSolidColor.h:
2669         * rendering/svg/RenderSVGRoot.cpp:
2670         * rendering/svg/RenderSVGRoot.h:
2671         * rendering/svg/RenderSVGShape.cpp:
2672         * rendering/svg/RenderSVGShape.h:
2673         * rendering/svg/RenderSVGTSpan.h:
2674         * rendering/svg/RenderSVGText.cpp:
2675         * rendering/svg/RenderSVGText.h:
2676         * rendering/svg/RenderSVGTextPath.cpp:
2677         * rendering/svg/RenderSVGTextPath.h:
2678         * rendering/svg/RenderSVGTransformableContainer.cpp:
2679         * rendering/svg/RenderSVGTransformableContainer.h:
2680         * rendering/svg/RenderSVGViewportContainer.cpp:
2681         * rendering/svg/RenderSVGViewportContainer.h:
2682         * rendering/svg/SVGInlineFlowBox.cpp:
2683         * rendering/svg/SVGInlineFlowBox.h:
2684         * rendering/svg/SVGInlineTextBox.cpp:
2685         * rendering/svg/SVGInlineTextBox.h:
2686         * rendering/svg/SVGMarkerData.h:
2687         * rendering/svg/SVGPathData.cpp:
2688         * rendering/svg/SVGPathData.h:
2689         * rendering/svg/SVGRenderSupport.cpp:
2690         * rendering/svg/SVGRenderSupport.h:
2691         * rendering/svg/SVGRenderTreeAsText.cpp:
2692         * rendering/svg/SVGRenderTreeAsText.h:
2693         * rendering/svg/SVGRenderingContext.cpp:
2694         * rendering/svg/SVGRenderingContext.h:
2695         * rendering/svg/SVGResources.cpp:
2696         * rendering/svg/SVGResources.h:
2697         * rendering/svg/SVGResourcesCache.cpp:
2698         * rendering/svg/SVGResourcesCache.h:
2699         * rendering/svg/SVGResourcesCycleSolver.cpp:
2700         * rendering/svg/SVGResourcesCycleSolver.h:
2701         * rendering/svg/SVGRootInlineBox.cpp:
2702         * rendering/svg/SVGRootInlineBox.h:
2703         * rendering/svg/SVGSubpathData.h:
2704         * rendering/svg/SVGTextChunk.cpp:
2705         * rendering/svg/SVGTextChunk.h:
2706         * rendering/svg/SVGTextChunkBuilder.cpp:
2707         * rendering/svg/SVGTextChunkBuilder.h:
2708         * rendering/svg/SVGTextFragment.h:
2709         * rendering/svg/SVGTextLayoutAttributes.cpp:
2710         * rendering/svg/SVGTextLayoutAttributes.h:
2711         * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
2712         * rendering/svg/SVGTextLayoutAttributesBuilder.h:
2713         * rendering/svg/SVGTextLayoutEngine.cpp:
2714         * rendering/svg/SVGTextLayoutEngine.h:
2715         * rendering/svg/SVGTextLayoutEngineBaseline.cpp:
2716         * rendering/svg/SVGTextLayoutEngineBaseline.h:
2717         * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
2718         * rendering/svg/SVGTextLayoutEngineSpacing.h:
2719         * rendering/svg/SVGTextMetrics.cpp:
2720         * rendering/svg/SVGTextMetrics.h:
2721         * rendering/svg/SVGTextMetricsBuilder.cpp:
2722         * rendering/svg/SVGTextMetricsBuilder.h:
2723         * rendering/svg/SVGTextQuery.cpp:
2724         * rendering/svg/SVGTextQuery.h:
2725         * svg/ColorDistance.cpp:
2726         * svg/ColorDistance.h:
2727         * svg/GradientAttributes.h:
2728         * svg/LinearGradientAttributes.h:
2729         * svg/PatternAttributes.h:
2730         * svg/RadialGradientAttributes.h:
2731         * svg/SVGAElement.cpp:
2732         * svg/SVGAElement.h:
2733         * svg/SVGAElement.idl:
2734         * svg/SVGAltGlyphDefElement.cpp:
2735         * svg/SVGAltGlyphDefElement.h:
2736         * svg/SVGAltGlyphDefElement.idl:
2737         * svg/SVGAltGlyphElement.cpp:
2738         * svg/SVGAltGlyphElement.h:
2739         * svg/SVGAltGlyphElement.idl:
2740         * svg/SVGAltGlyphItemElement.cpp:
2741         * svg/SVGAltGlyphItemElement.h:
2742         * svg/SVGAltGlyphItemElement.idl:
2743         * svg/SVGAngle.cpp:
2744         * svg/SVGAngle.h:
2745         * svg/SVGAngle.idl:
2746         * svg/SVGAnimateColorElement.cpp:
2747         * svg/SVGAnimateColorElement.h:
2748         * svg/SVGAnimateColorElement.idl:
2749         * svg/SVGAnimateElement.cpp:
2750         * svg/SVGAnimateElement.h:
2751         * svg/SVGAnimateElement.idl:
2752         * svg/SVGAnimateMotionElement.cpp:
2753         * svg/SVGAnimateMotionElement.h:
2754         * svg/SVGAnimateMotionElement.idl:
2755         * svg/SVGAnimateTransformElement.cpp:
2756         * svg/SVGAnimateTransformElement.h:
2757         * svg/SVGAnimateTransformElement.idl:
2758         * svg/SVGAnimatedAngle.cpp:
2759         * svg/SVGAnimatedAngle.h:
2760         * svg/SVGAnimatedAngle.idl:
2761         * svg/SVGAnimatedBoolean.cpp:
2762         * svg/SVGAnimatedBoolean.h:
2763         * svg/SVGAnimatedBoolean.idl:
2764         * svg/SVGAnimatedColor.cpp:
2765         * svg/SVGAnimatedColor.h:
2766         * svg/SVGAnimatedEnumeration.cpp:
2767         * svg/SVGAnimatedEnumeration.h:
2768         * svg/SVGAnimatedEnumeration.idl:
2769         * svg/SVGAnimatedInteger.cpp:
2770         * svg/SVGAnimatedInteger.h:
2771         * svg/SVGAnimatedInteger.idl:
2772         * svg/SVGAnimatedIntegerOptionalInteger.cpp:
2773         * svg/SVGAnimatedIntegerOptionalInteger.h:
2774         * svg/SVGAnimatedLength.cpp:
2775         * svg/SVGAnimatedLength.h:
2776         * svg/SVGAnimatedLength.idl:
2777         * svg/SVGAnimatedLengthList.cpp:
2778         * svg/SVGAnimatedLengthList.h:
2779         * svg/SVGAnimatedLengthList.idl:
2780         * svg/SVGAnimatedNumber.cpp:
2781         * svg/SVGAnimatedNumber.h:
2782         * svg/SVGAnimatedNumber.idl:
2783         * svg/SVGAnimatedNumberList.cpp:
2784         * svg/SVGAnimatedNumberList.h:
2785         * svg/SVGAnimatedNumberList.idl:
2786         * svg/SVGAnimatedNumberOptionalNumber.cpp:
2787         * svg/SVGAnimatedNumberOptionalNumber.h:
2788         * svg/SVGAnimatedPath.cpp:
2789         * svg/SVGAnimatedPath.h:
2790         * svg/SVGAnimatedPointList.cpp:
2791         * svg/SVGAnimatedPointList.h:
2792         * svg/SVGAnimatedPreserveAspectRatio.cpp:
2793         * svg/SVGAnimatedPreserveAspectRatio.h:
2794         * svg/SVGAnimatedPreserveAspectRatio.idl:
2795         * svg/SVGAnimatedRect.cpp:
2796         * svg/SVGAnimatedRect.h:
2797         * svg/SVGAnimatedRect.idl:
2798         * svg/SVGAnimatedString.cpp:
2799         * svg/SVGAnimatedString.h:
2800         * svg/SVGAnimatedString.idl:
2801         * svg/SVGAnimatedTransformList.cpp:
2802         * svg/SVGAnimatedTransformList.h:
2803         * svg/SVGAnimatedTransformList.idl:
2804         * svg/SVGAnimatedType.cpp:
2805         * svg/SVGAnimatedType.h:
2806         * svg/SVGAnimatedTypeAnimator.cpp:
2807         * svg/SVGAnimatedTypeAnimator.h:
2808         * svg/SVGAnimationElement.cpp:
2809         * svg/SVGAnimationElement.h:
2810         * svg/SVGAnimationElement.idl:
2811         * svg/SVGAnimatorFactory.h:
2812         * svg/SVGCircleElement.cpp:
2813         * svg/SVGCircleElement.h:
2814         * svg/SVGCircleElement.idl:
2815         * svg/SVGClipPathElement.cpp:
2816         * svg/SVGClipPathElement.h:
2817         * svg/SVGClipPathElement.idl:
2818         * svg/SVGColor.cpp:
2819         * svg/SVGColor.h:
2820         * svg/SVGColor.idl:
2821         * svg/SVGComponentTransferFunctionElement.cpp:
2822         * svg/SVGComponentTransferFunctionElement.h:
2823         * svg/SVGComponentTransferFunctionElement.idl:
2824         * svg/SVGCursorElement.cpp:
2825         * svg/SVGCursorElement.h:
2826         * svg/SVGCursorElement.idl:
2827         * svg/SVGDefsElement.cpp:
2828         * svg/SVGDefsElement.h:
2829         * svg/SVGDefsElement.idl:
2830         * svg/SVGDescElement.cpp:
2831         * svg/SVGDescElement.h:
2832         * svg/SVGDescElement.idl:
2833         * svg/SVGDocument.cpp:
2834         * svg/SVGDocument.h:
2835         * svg/SVGDocument.idl:
2836         * svg/SVGDocumentExtensions.cpp:
2837         * svg/SVGDocumentExtensions.h:
2838         * svg/SVGElement.cpp:
2839         * svg/SVGElement.h:
2840         * svg/SVGElement.idl:
2841         * svg/SVGElementInstance.cpp:
2842         * svg/SVGElementInstance.h:
2843         * svg/SVGElementInstance.idl:
2844         * svg/SVGElementInstanceList.cpp:
2845         * svg/SVGElementInstanceList.h:
2846         * svg/SVGElementInstanceList.idl:
2847         * svg/SVGEllipseElement.cpp:
2848         * svg/SVGEllipseElement.h:
2849         * svg/SVGEllipseElement.idl:
2850         * svg/SVGException.cpp:
2851         * svg/SVGException.h:
2852         * svg/SVGException.idl:
2853         * svg/SVGExternalResourcesRequired.cpp:
2854         * svg/SVGExternalResourcesRequired.h:
2855         * svg/SVGExternalResourcesRequired.idl:
2856         * svg/SVGFEBlendElement.cpp:
2857         * svg/SVGFEBlendElement.h:
2858         * svg/SVGFEBlendElement.idl:
2859         * svg/SVGFEColorMatrixElement.cpp:
2860         * svg/SVGFEColorMatrixElement.h:
2861         * svg/SVGFEColorMatrixElement.idl:
2862         * svg/SVGFEComponentTransferElement.cpp:
2863         * svg/SVGFEComponentTransferElement.h:
2864         * svg/SVGFEComponentTransferElement.idl:
2865         * svg/SVGFECompositeElement.cpp:
2866         * svg/SVGFECompositeElement.h:
2867         * svg/SVGFECompositeElement.idl:
2868         * svg/SVGFEConvolveMatrixElement.cpp:
2869         * svg/SVGFEConvolveMatrixElement.h:
2870         * svg/SVGFEConvolveMatrixElement.idl:
2871         * svg/SVGFEDiffuseLightingElement.cpp:
2872         * svg/SVGFEDiffuseLightingElement.h:
2873         * svg/SVGFEDiffuseLightingElement.idl:
2874         * svg/SVGFEDisplacementMapElement.cpp:
2875         * svg/SVGFEDisplacementMapElement.h:
2876         * svg/SVGFEDisplacementMapElement.idl:
2877         * svg/SVGFEDistantLightElement.cpp:
2878         * svg/SVGFEDistantLightElement.h:
2879         * svg/SVGFEDistantLightElement.idl:
2880         * svg/SVGFEDropShadowElement.cpp:
2881         * svg/SVGFEDropShadowElement.h:
2882         * svg/SVGFEDropShadowElement.idl:
2883         * svg/SVGFEFloodElement.cpp:
2884         * svg/SVGFEFloodElement.h:
2885         * svg/SVGFEFloodElement.idl:
2886         * svg/SVGFEFuncAElement.cpp:
2887         * svg/SVGFEFuncAElement.h:
2888         * svg/SVGFEFuncAElement.idl:
2889         * svg/SVGFEFuncBElement.cpp:
2890         * svg/SVGFEFuncBElement.h:
2891         * svg/SVGFEFuncBElement.idl:
2892         * svg/SVGFEFuncGElement.cpp:
2893         * svg/SVGFEFuncGElement.h:
2894         * svg/SVGFEFuncGElement.idl:
2895         * svg/SVGFEFuncRElement.cpp:
2896         * svg/SVGFEFuncRElement.h:
2897         * svg/SVGFEFuncRElement.idl:
2898         * svg/SVGFEGaussianBlurElement.cpp:
2899         * svg/SVGFEGaussianBlurElement.h:
2900         * svg/SVGFEGaussianBlurElement.idl:
2901         * svg/SVGFEImageElement.cpp:
2902         * svg/SVGFEImageElement.h:
2903         * svg/SVGFEImageElement.idl:
2904         * svg/SVGFELightElement.cpp:
2905         * svg/SVGFELightElement.h:
2906         * svg/SVGFEMergeElement.cpp:
2907         * svg/SVGFEMergeElement.h:
2908         * svg/SVGFEMergeElement.idl:
2909         * svg/SVGFEMergeNodeElement.cpp:
2910         * svg/SVGFEMergeNodeElement.h:
2911         * svg/SVGFEMergeNodeElement.idl:
2912         * svg/SVGFEMorphologyElement.cpp:
2913         * svg/SVGFEMorphologyElement.h:
2914         * svg/SVGFEMorphologyElement.idl:
2915         * svg/SVGFEOffsetElement.cpp:
2916         * svg/SVGFEOffsetElement.h:
2917         * svg/SVGFEOffsetElement.idl:
2918         * svg/SVGFEPointLightElement.cpp:
2919         * svg/SVGFEPointLightElement.h:
2920         * svg/SVGFEPointLightElement.idl:
2921         * svg/SVGFESpecularLightingElement.cpp:
2922         * svg/SVGFESpecularLightingElement.h:
2923         * svg/SVGFESpecularLightingElement.idl:
2924         * svg/SVGFESpotLightElement.cpp:
2925         * svg/SVGFESpotLightElement.h:
2926         * svg/SVGFESpotLightElement.idl:
2927         * svg/SVGFETileElement.cpp:
2928         * svg/SVGFETileElement.h:
2929         * svg/SVGFETileElement.idl:
2930         * svg/SVGFETurbulenceElement.cpp:
2931         * svg/SVGFETurbulenceElement.h:
2932         * svg/SVGFETurbulenceElement.idl:
2933         * svg/SVGFilterElement.cpp:
2934         * svg/SVGFilterElement.h:
2935         * svg/SVGFilterElement.idl:
2936         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
2937         * svg/SVGFilterPrimitiveStandardAttributes.h:
2938         * svg/SVGFilterPrimitiveStandardAttributes.idl:
2939         * svg/SVGFitToViewBox.cpp:
2940         * svg/SVGFitToViewBox.h:
2941         * svg/SVGFitToViewBox.idl:
2942         * svg/SVGFontElement.idl:
2943         * svg/SVGFontFaceElement.idl:
2944         * svg/SVGFontFaceFormatElement.idl:
2945         * svg/SVGFontFaceNameElement.cpp:
2946         * svg/SVGFontFaceNameElement.idl:
2947         * svg/SVGFontFaceSrcElement.idl:
2948         * svg/SVGFontFaceUriElement.idl:
2949         * svg/SVGForeignObjectElement.cpp:
2950         * svg/SVGForeignObjectElement.h:
2951         * svg/SVGForeignObjectElement.idl:
2952         * svg/SVGGElement.cpp:
2953         * svg/SVGGElement.h:
2954         * svg/SVGGElement.idl:
2955         * svg/SVGGlyphElement.idl:
2956         * svg/SVGGlyphRefElement.cpp:
2957         * svg/SVGGlyphRefElement.h:
2958         * svg/SVGGlyphRefElement.idl:
2959         * svg/SVGGradientElement.cpp:
2960         * svg/SVGGradientElement.h:
2961         * svg/SVGGradientElement.idl:
2962         * svg/SVGGraphicsElement.cpp:
2963         * svg/SVGGraphicsElement.h:
2964         * svg/SVGGraphicsElement.idl:
2965         * svg/SVGHKernElement.idl:
2966         * svg/SVGImageElement.cpp:
2967         * svg/SVGImageElement.h:
2968         * svg/SVGImageElement.idl:
2969         * svg/SVGImageLoader.cpp:
2970         * svg/SVGImageLoader.h:
2971         * svg/SVGLangSpace.cpp:
2972         * svg/SVGLangSpace.h:
2973         * svg/SVGLength.cpp:
2974         * svg/SVGLength.h:
2975         * svg/SVGLength.idl:
2976         * svg/SVGLengthContext.cpp:
2977         * svg/SVGLengthContext.h:
2978         * svg/SVGLengthList.cpp:
2979         * svg/SVGLengthList.h:
2980         * svg/SVGLengthList.idl:
2981         * svg/SVGLineElement.cpp:
2982         * svg/SVGLineElement.h:
2983         * svg/SVGLineElement.idl:
2984         * svg/SVGLinearGradientElement.cpp:
2985         * svg/SVGLinearGradientElement.h:
2986         * svg/SVGLinearGradientElement.idl:
2987         * svg/SVGLocatable.cpp:
2988         * svg/SVGLocatable.h:
2989         * svg/SVGMPathElement.cpp:
2990         * svg/SVGMPathElement.h:
2991         * svg/SVGMPathElement.idl:
2992         * svg/SVGMarkerElement.cpp:
2993         * svg/SVGMarkerElement.h:
2994         * svg/SVGMarkerElement.idl:
2995         * svg/SVGMaskElement.cpp:
2996         * svg/SVGMaskElement.h:
2997         * svg/SVGMaskElement.idl:
2998         * svg/SVGMatrix.h:
2999         * svg/SVGMatrix.idl:
3000         * svg/SVGMetadataElement.cpp:
3001         * svg/SVGMetadataElement.h:
3002         * svg/SVGMetadataElement.idl:
3003         * svg/SVGMissingGlyphElement.idl:
3004         * svg/SVGNumber.idl:
3005         * svg/SVGNumberList.cpp:
3006         * svg/SVGNumberList.h:
3007         * svg/SVGNumberList.idl:
3008         * svg/SVGPaint.cpp:
3009         * svg/SVGPaint.h:
3010         * svg/SVGPaint.idl:
3011         * svg/SVGParserUtilities.cpp:
3012         * svg/SVGParserUtilities.h:
3013         * svg/SVGParsingError.h:
3014         * svg/SVGPathBlender.cpp:
3015         * svg/SVGPathBlender.h:
3016         * svg/SVGPathBuilder.cpp:
3017         * svg/SVGPathBuilder.h:
3018         * svg/SVGPathByteStream.h:
3019         * svg/SVGPathByteStreamBuilder.cpp:
3020         * svg/SVGPathByteStreamBuilder.h:
3021         * svg/SVGPathByteStreamSource.cpp:
3022         * svg/SVGPathByteStreamSource.h:
3023         * svg/SVGPathConsumer.h:
3024         * svg/SVGPathElement.cpp:
3025         * svg/SVGPathElement.h:
3026         * svg/SVGPathElement.idl:
3027         * svg/SVGPathParser.cpp:
3028         * svg/SVGPathParser.h:
3029         * svg/SVGPathSeg.h:
3030         * svg/SVGPathSeg.idl:
3031         * svg/SVGPathSegArc.h:
3032         * svg/SVGPathSegArcAbs.h:
3033         * svg/SVGPathSegArcAbs.idl:
3034         * svg/SVGPathSegArcRel.h:
3035         * svg/SVGPathSegArcRel.idl:
3036         * svg/SVGPathSegClosePath.h:
3037         * svg/SVGPathSegClosePath.idl:
3038         * svg/SVGPathSegCurvetoCubic.h:
3039         * svg/SVGPathSegCurvetoCubicAbs.h:
3040         * svg/SVGPathSegCurvetoCubicAbs.idl:
3041         * svg/SVGPathSegCurvetoCubicRel.h:
3042         * svg/SVGPathSegCurvetoCubicRel.idl:
3043         * svg/SVGPathSegCurvetoCubicSmooth.h:
3044         * svg/SVGPathSegCurvetoCubicSmoothAbs.h:
3045         * svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
3046         * svg/SVGPathSegCurvetoCubicSmoothRel.h:
3047         * svg/SVGPathSegCurvetoCubicSmoothRel.idl:
3048         * svg/SVGPathSegCurvetoQuadratic.h:
3049         * svg/SVGPathSegCurvetoQuadraticAbs.h:
3050         * svg/SVGPathSegCurvetoQuadraticAbs.idl:
3051         * svg/SVGPathSegCurvetoQuadraticRel.h:
3052         * svg/SVGPathSegCurvetoQuadraticRel.idl:
3053         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.h:
3054         * svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
3055         * svg/SVGPathSegCurvetoQuadraticSmoothRel.h:
3056         * svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
3057         * svg/SVGPathSegLinetoAbs.h:
3058         * svg/SVGPathSegLinetoAbs.idl:
3059         * svg/SVGPathSegLinetoHorizontal.h:
3060         * svg/SVGPathSegLinetoHorizontalAbs.h:
3061         * svg/SVGPathSegLinetoHorizontalAbs.idl:
3062         * svg/SVGPathSegLinetoHorizontalRel.h:
3063         * svg/SVGPathSegLinetoHorizontalRel.idl:
3064         * svg/SVGPathSegLinetoRel.h:
3065         * svg/SVGPathSegLinetoRel.idl:
3066         * svg/SVGPathSegLinetoVertical.h:
3067         * svg/SVGPathSegLinetoVerticalAbs.h:
3068         * svg/SVGPathSegLinetoVerticalAbs.idl:
3069         * svg/SVGPathSegLinetoVerticalRel.h:
3070         * svg/SVGPathSegLinetoVerticalRel.idl:
3071         * svg/SVGPathSegList.cpp:
3072         * svg/SVGPathSegList.h:
3073         * svg/SVGPathSegList.idl:
3074         * svg/SVGPathSegListBuilder.cpp:
3075         * svg/SVGPathSegListBuilder.h:
3076         * svg/SVGPathSegListSource.cpp:
3077         * svg/SVGPathSegListSource.h:
3078         * svg/SVGPathSegMovetoAbs.h:
3079         * svg/SVGPathSegMovetoAbs.idl:
3080         * svg/SVGPathSegMovetoRel.h:
3081         * svg/SVGPathSegMovetoRel.idl:
3082         * svg/SVGPathSegWithContext.h:
3083         * svg/SVGPathSource.h:
3084         * svg/SVGPathStringBuilder.cpp:
3085         * svg/SVGPathStringBuilder.h:
3086         * svg/SVGPathStringSource.cpp:
3087         * svg/SVGPathStringSource.h:
3088         * svg/SVGPathTraversalStateBuilder.cpp:
3089         * svg/SVGPathTraversalStateBuilder.h:
3090         * svg/SVGPathUtilities.cpp:
3091         * svg/SVGPathUtilities.h:
3092         * svg/SVGPatternElement.cpp:
3093         * svg/SVGPatternElement.h:
3094         * svg/SVGPatternElement.idl:
3095         * svg/SVGPoint.h:
3096         * svg/SVGPoint.idl:
3097         * svg/SVGPointList.cpp:
3098         * svg/SVGPointList.h:
3099         * svg/SVGPointList.idl:
3100         * svg/SVGPolyElement.cpp:
3101         * svg/SVGPolyElement.h:
3102         * svg/SVGPolygonElement.cpp:
3103         * svg/SVGPolygonElement.h:
3104         * svg/SVGPolygonElement.idl:
3105         * svg/SVGPolylineElement.cpp:
3106         * svg/SVGPolylineElement.h:
3107         * svg/SVGPolylineElement.idl:
3108         * svg/SVGPreserveAspectRatio.cpp:
3109         * svg/SVGPreserveAspectRatio.h:
3110         * svg/SVGPreserveAspectRatio.idl:
3111         * svg/SVGRadialGradientElement.cpp:
3112         * svg/SVGRadialGradientElement.h:
3113         * svg/SVGRadialGradientElement.idl:
3114         * svg/SVGRect.h:
3115         * svg/SVGRect.idl:
3116         * svg/SVGRectElement.cpp:
3117         * svg/SVGRectElement.h:
3118         * svg/SVGRectElement.idl:
3119         * svg/SVGRenderingIntent.h:
3120         * svg/SVGRenderingIntent.idl:
3121         * svg/SVGSVGElement.cpp:
3122         * svg/SVGSVGElement.h:
3123         * svg/SVGSVGElement.idl:
3124         * svg/SVGScriptElement.cpp:
3125         * svg/SVGScriptElement.h:
3126         * svg/SVGScriptElement.idl:
3127         * svg/SVGSetElement.cpp:
3128         * svg/SVGSetElement.h:
3129         * svg/SVGSetElement.idl:
3130         * svg/SVGStopElement.cpp:
3131         * svg/SVGStopElement.h:
3132         * svg/SVGStopElement.idl:
3133         * svg/SVGStringList.cpp:
3134         * svg/SVGStringList.h:
3135         * svg/SVGStringList.idl:
3136         * svg/SVGStyleElement.cpp:
3137         * svg/SVGStyleElement.h:
3138         * svg/SVGStyleElement.idl:
3139         * svg/SVGSwitchElement.cpp:
3140         * svg/SVGSwitchElement.h:
3141         * svg/SVGSwitchElement.idl:
3142         * svg/SVGSymbolElement.cpp:
3143         * svg/SVGSymbolElement.h:
3144         * svg/SVGSymbolElement.idl:
3145         * svg/SVGTRefElement.cpp:
3146         * svg/SVGTRefElement.h:
3147         * svg/SVGTRefElement.idl:
3148         * svg/SVGTSpanElement.cpp:
3149         * svg/SVGTSpanElement.h:
3150         * svg/SVGTSpanElement.idl:
3151         * svg/SVGTests.cpp:
3152         * svg/SVGTests.h:
3153         * svg/SVGTests.idl:
3154         * svg/SVGTextContentElement.cpp:
3155         * svg/SVGTextContentElement.h:
3156         * svg/SVGTextContentElement.idl:
3157         * svg/SVGTextElement.cpp:
3158         * svg/SVGTextElement.h:
3159         * svg/SVGTextElement.idl:
3160         * svg/SVGTextPathElement.cpp:
3161         * svg/SVGTextPathElement.h:
3162         * svg/SVGTextPathElement.idl:
3163         * svg/SVGTextPositioningElement.cpp:
3164         * svg/SVGTextPositioningElement.h:
3165         * svg/SVGTextPositioningElement.idl:
3166         * svg/SVGTitleElement.cpp:
3167         * svg/SVGTitleElement.h:
3168         * svg/SVGTitleElement.idl:
3169         * svg/SVGTransform.cpp:
3170         * svg/SVGTransform.h:
3171         * svg/SVGTransform.idl:
3172         * svg/SVGTransformDistance.cpp:
3173         * svg/SVGTransformDistance.h:
3174         * svg/SVGTransformList.cpp:
3175         * svg/SVGTransformList.h:
3176         * svg/SVGTransformList.idl:
3177         * svg/SVGTransformable.cpp:
3178         * svg/SVGTransformable.h:
3179         * svg/SVGURIReference.cpp:
3180         * svg/SVGURIReference.h:
3181         * svg/SVGURIReference.idl:
3182         * svg/SVGUnitTypes.h:
3183         * svg/SVGUnitTypes.idl:
3184         * svg/SVGUnknownElement.h:
3185         * svg/SVGUseElement.cpp:
3186         * svg/SVGUseElement.h:
3187         * svg/SVGUseElement.idl:
3188         * svg/SVGVKernElement.idl:
3189         * svg/SVGViewElement.cpp:
3190         * svg/SVGViewElement.h:
3191         * svg/SVGViewElement.idl:
3192         * svg/SVGViewSpec.cpp:
3193         * svg/SVGViewSpec.h:
3194         * svg/SVGViewSpec.idl:
3195         * svg/SVGZoomAndPan.cpp:
3196         * svg/SVGZoomAndPan.h:
3197         * svg/SVGZoomAndPan.idl:
3198         * svg/SVGZoomEvent.cpp:
3199         * svg/SVGZoomEvent.h:
3200         * svg/SVGZoomEvent.idl:
3201         * svg/animation/SMILTime.cpp:
3202         (WebCore::operator*):
3203         * svg/animation/SMILTime.h:
3204         * svg/animation/SMILTimeContainer.cpp:
3205         * svg/animation/SMILTimeContainer.h:
3206         * svg/animation/SVGSMILElement.cpp:
3207         * svg/animation/SVGSMILElement.h:
3208         * svg/graphics/SVGImage.cpp:
3209         * svg/graphics/SVGImage.h:
3210         * svg/graphics/SVGImageCache.cpp:
3211         * svg/graphics/SVGImageCache.h:
3212         * svg/graphics/SVGImageChromeClient.h:
3213         * svg/graphics/SVGImageForContainer.cpp:
3214         * svg/graphics/SVGImageForContainer.h:
3215         * svg/graphics/filters/SVGFEImage.cpp:
3216         * svg/graphics/filters/SVGFEImage.h:
3217         * svg/graphics/filters/SVGFilter.cpp:
3218         * svg/graphics/filters/SVGFilter.h:
3219         * svg/graphics/filters/SVGFilterBuilder.cpp:
3220         * svg/graphics/filters/SVGFilterBuilder.h:
3221         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
3222         * svg/properties/SVGAnimatedListPropertyTearOff.h:
3223         * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
3224         * svg/properties/SVGAnimatedProperty.cpp:
3225         * svg/properties/SVGAnimatedProperty.h:
3226         * svg/properties/SVGAnimatedPropertyDescription.h:
3227         * svg/properties/SVGAnimatedPropertyMacros.h:
3228         * svg/properties/SVGAnimatedPropertyTearOff.h:
3229         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
3230         * svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
3231         * svg/properties/SVGAttributeToPropertyMap.cpp:
3232         * svg/properties/SVGAttributeToPropertyMap.h:
3233         * svg/properties/SVGListProperty.h:
3234         * svg/properties/SVGListPropertyTearOff.h:
3235         * svg/properties/SVGPathSegListPropertyTearOff.cpp:
3236         * svg/properties/SVGPathSegListPropertyTearOff.h:
3237         * svg/properties/SVGProperty.h:
3238         * svg/properties/SVGPropertyInfo.cpp:
3239         * svg/properties/SVGPropertyInfo.h:
3240         * svg/properties/SVGPropertyTearOff.h:
3241         * svg/properties/SVGPropertyTraits.h:
3242         * svg/properties/SVGStaticListPropertyTearOff.h:
3243         * svg/properties/SVGStaticPropertyTearOff.h:
3244         * svg/properties/SVGStaticPropertyWithParentTearOff.h:
3245         * svg/properties/SVGTransformListPropertyTearOff.h:
3246         * svg/svgattrs.in:
3247         * svg/svgtags.in:
3248         * xml/XMLErrors.cpp:
3249         (WebCore::XMLErrors::insertErrorMessageBlock):
3250         * xml/parser/XMLDocumentParser.cpp:
3251
3252 2014-02-05  Zan Dobersek  <zdobersek@igalia.com>
3253
3254         Manage CalcExpressionNode and derived classes through std::unique_ptr instead of OwnPtr
3255         https://bugs.webkit.org/show_bug.cgi?id=128118
3256
3257         Reviewed by Darin Adler.
3258
3259         Replace uses of OwnPtr for CalcExpressionNode and derived classes with std::unique_ptr.
3260
3261         * css/CSSCalculationValue.cpp:
3262         (WebCore::CSSCalcPrimitiveValue::toCalcValue):
3263         (WebCore::CSSCalcBinaryOperation::toCalcValue):
3264         * css/CSSCalculationValue.h:
3265         * platform/CalculationValue.cpp:
3266         (WebCore::CalculationValue::create):
3267         * platform/CalculationValue.h:
3268         (WebCore::CalculationValue::CalculationValue):
3269         (WebCore::CalcExpressionBinaryOperation::CalcExpressionBinaryOperation):
3270         * platform/Length.cpp:
3271         (WebCore::Length::blendMixedTypes):
3272         * rendering/style/BasicShapes.cpp:
3273         (WebCore::BasicShapeCenterCoordinate::updateComputedLength):
3274
3275 2014-02-05  Zan Dobersek  <zdobersek@igalia.com>
3276
3277         Remove CLASS_IF_GCC workarounds
3278         https://bugs.webkit.org/show_bug.cgi?id=128207
3279
3280         Reviewed by Anders Carlsson.
3281
3282         Remove the CLASS_IF_GCC macro that was defined to 'class' when using the GCC compiler.
3283         The macro was then used in class friendship declarations for templated classes to avoid
3284         corner-case compiler failures on both GCC pre-4.7 and MSVC pre-2013. The problematic
3285         versions of both compilers are no longer supported, so this macro is good to go.
3286
3287         * bindings/generic/RuntimeEnabledFeatures.h:
3288
3289 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
3290
3291         MediaPlayerPrivateGStreamerBase should have virtual destructor
3292         https://bugs.webkit.org/show_bug.cgi?id=128238
3293
3294         Reviewed by Carlos Garcia Campos.
3295
3296         MediaPlayerPrivateGStreamer inherit MediaPlayerPrivateGStreamerBase.
3297         So MediaPlayerPrivateGStreamerBase should have virtual destructor.
3298
3299         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h: Made destructor as virtual.
3300
3301 2014-02-04  Andreas Kling  <akling@apple.com>
3302
3303         Remove <iframe seamless> support.
3304         <https://webkit.org/b/128213>
3305
3306         Seamless iframes were behind a runtime flag that we never enabled,
3307         and the only other engine that implemented them (Blink) recently
3308         removed them. Since the feature is very invasive, let's take it
3309         out for now.
3310
3311         Rubber-stamped by Antti Koivisto.
3312
3313         * Configurations/FeatureDefines.xcconfig:
3314         * accessibility/AccessibilityObject.h:
3315         * accessibility/AccessibilityRenderObject.cpp:
3316         (WebCore::AccessibilityRenderObject::parentObjectIfExists):
3317         (WebCore::AccessibilityRenderObject::parentObject):
3318         (WebCore::AccessibilityRenderObject::boundingBoxRect):
3319         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
3320         (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
3321         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
3322         (createAccessibilityRoleMap):
3323         * bindings/generic/RuntimeEnabledFeatures.cpp:
3324         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
3325         * bindings/generic/RuntimeEnabledFeatures.h:
3326         * css/CSSComputedStyleDeclaration.cpp:
3327         (WebCore::ComputedStyleExtractor::propertyValue):
3328         * css/CSSSelector.cpp:
3329         (WebCore::CSSSelector::pseudoId):
3330         (WebCore::populatePseudoTypeByNameMap):
3331         (WebCore::CSSSelector::extractPseudoType):
3332         * css/CSSSelector.h:
3333         * css/SelectorChecker.cpp:
3334         (WebCore::SelectorChecker::checkOne):
3335         * css/StyleResolver.cpp:
3336         (WebCore::StyleResolver::adjustRenderStyle):
3337         * css/html.css:
3338         (iframe):
3339         * dom/Document.cpp:
3340         (WebCore::Document::scheduleStyleRecalc):
3341         (WebCore::Document::implicitOpen):
3342         (WebCore::Document::initSecurityContext):
3343         * dom/Document.h:
3344         * dom/DocumentStyleSheetCollection.cpp:
3345         (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets):
3346         * dom/SecurityContext.cpp:
3347         (WebCore::SecurityContext::SecurityContext):
3348         * dom/SecurityContext.h:
3349         * html/HTMLAttributeNames.in:
3350         * html/HTMLIFrameElement.cpp:
3351         (WebCore::HTMLIFrameElement::HTMLIFrameElement):
3352         (WebCore::HTMLIFrameElement::isPresentationAttribute):
3353         (WebCore::HTMLIFrameElement::parseAttribute):
3354         * html/HTMLIFrameElement.h:
3355         * html/HTMLIFrameElement.idl:
3356         * loader/FrameLoader.cpp:
3357         (WebCore::FrameLoader::findFrameForNavigation):
3358         * page/FrameView.cpp:
3359         (WebCore::FrameView::calculateScrollbarModesForLayout):
3360         (WebCore::FrameView::isInChildFrameWithFrameFlattening):
3361         * page/Location.cpp:
3362         (WebCore::Location::setLocation):
3363         * rendering/RenderBox.h:
3364         (WebCore::RenderBox::stretchesToViewport):
3365         * rendering/RenderIFrame.cpp:
3366         (WebCore::RenderIFrame::shouldComputeSizeAsReplaced):
3367         (WebCore::RenderIFrame::isInlineBlockOrInlineTable):
3368         (WebCore::RenderIFrame::flattenFrame):
3369         (WebCore::RenderIFrame::layout):
3370         * rendering/RenderIFrame.h:
3371         * rendering/RenderView.cpp:
3372         (WebCore::RenderView::initializeLayoutState):
3373         (WebCore::RenderView::layout):
3374         * rendering/RenderView.h:
3375         * style/StyleResolveForDocument.cpp:
3376         (WebCore::Style::resolveForDocument):
3377         * style/StyleResolveTree.cpp:
3378         (WebCore::Style::resolveTree):
3379
3380 2014-02-04  Tim Horton  <timothy_horton@apple.com>
3381
3382         [iOS][wk2] Make development builds of WebKit work on device
3383         https://bugs.webkit.org/show_bug.cgi?id=128230
3384
3385         Reviewed by Anders Carlsson.
3386
3387         * platform/RuntimeApplicationChecksIOS.mm:
3388         (WebCore::applicationIsWebProcess):
3389         Add WebContent.Development as an additional name for the WebContent process.
3390
3391 2014-02-04  Brady Eidson  <beidson@apple.com>
3392
3393         IDB: indexeddb/mozilla/add-twice-failure.html fails
3394         <rdar://problem/15982569> and https://bugs.webkit.org/show_bug.cgi?id=128208
3395
3396         Reviewed by Tim Horton.
3397
3398         Covered specifically by indexeddb/mozilla/add-twice-failure.html and a handful of others.
3399
3400         * Modules/indexeddb/IDBRequest.cpp:
3401         (WebCore::IDBRequest::onError): Improve logging.
3402
3403         * Modules/indexeddb/IDBTransactionBackend.cpp:
3404         (WebCore::IDBTransactionBackend::abort): Improve logging.
3405
3406         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
3407         (WebCore::PutOperation::perform): Don’t abort the transaction when an error occurred.
3408
3409         * WebCore.exp.in:
3410
3411 2014-02-04  Yoav Weiss  <yoav@yoav.ws>
3412
3413         Use srcset's pixel density to determine intrinsic size
3414         https://bugs.webkit.org/show_bug.cgi?id=123832
3415
3416         Reviewed by Dean Jackson.
3417
3418         The patch is a port of a similar Blink patch: https://codereview.chromium.org/25105004
3419         According to the spec "When an img element has a current pixel density that is not 1.0,
3420         the element's image data must be treated as if its resolution, in device pixels per CSS pixels,
3421         was the current pixel density."
3422
3423         I've added that support using the following changes:
3424         - bestFitSourceForImageAttributes now returns the image candidate to HTMLImageElement.
3425         - HTMLImageElement passes the devicePixelRatio data to RenderImage, which stores it.
3426         - Bitmap images are scaled using the devicePixelRatio at RenderImageResource's intrinsicSize() and imageSize().
3427         - SVG images are scaled using the devicePixelRatio at RenderReplaced::computeAspectRatioInformationForRenderBox.
3428         - Canvas support added at CanvasRenderingContext2D::size.
3429
3430         Tests: fast/hidpi/image-srcset-intrinsic-size.html
3431                fast/hidpi/image-srcset-png-canvas.html
3432                fast/hidpi/image-srcset-png.html
3433                fast/hidpi/image-srcset-relative-svg-canvas-2x.html
3434                fast/hidpi/image-srcset-relative-svg.html
3435                fast/hidpi/image-srcset-space-left-nomodifier.html
3436                fast/hidpi/image-srcset-svg-canvas-2x.html
3437                fast/hidpi/image-srcset-svg-canvas.html
3438                fast/hidpi/image-srcset-svg.html
3439                fast/hidpi/image-srcset-svg2.html
3440
3441         * html/HTMLImageElement.cpp:
3442         (WebCore::HTMLImageElement::HTMLImageElement):
3443         (WebCore::HTMLImageElement::parseAttribute):
3444         (WebCore::HTMLImageElement::createRenderer):
3445         * html/HTMLImageElement.h:
3446         * html/canvas/CanvasRenderingContext2D.cpp:
3447         (WebCore::size):
3448         (WebCore::CanvasRenderingContext2D::drawImage):
3449         * html/parser/HTMLParserIdioms.cpp:
3450         (WebCore::compareByScaleFactor):
3451         (WebCore::parseImagesWithScaleFromSrcsetAttribute):
3452         (WebCore::bestFitSourceForImageAttributes):
3453         * html/parser/HTMLParserIdioms.h:
3454         (WebCore::ImageWithScale::ImageWithScale):
3455         (WebCore::ImageWithScale::imageURL):
3456         (WebCore::ImageWithScale::scaleFactor):
3457         * html/parser/HTMLPreloadScanner.cpp:
3458         (WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
3459         * rendering/RenderImage.cpp:
3460         (WebCore::RenderImage::RenderImage):
3461         * rendering/RenderImage.h:
3462         (WebCore::RenderImage::setImageDevicePixelRatio):
3463         (WebCore::RenderImage::imageDevicePixelRatio):
3464         * rendering/RenderImageResource.cpp:
3465         (WebCore::RenderImageResource::imageSize):
3466         (WebCore::RenderImageResource::intrinsicSize):
3467         (WebCore::RenderImageResource::getImageSize):
3468         * rendering/RenderImageResource.h:
3469         * rendering/RenderReplaced.cpp:
3470         (WebCore::RenderReplaced::computeAspectRatioInformationForRenderBox):
3471
3472 2014-02-04  Geoffrey Garen  <ggaren@apple.com>
3473
3474         Rolled out <http://trac.webkit.org/changeset/163280>:
3475
3476             Push DOM attributes into the prototype chain
3477             ​https://bugs.webkit.org/show_bug.cgi?id=127969
3478
3479         It caused performance regressions, and broken websites on iOS.
3480
3481         Reviewed by Geoffrey Garen.
3482
3483         * bindings/js/JSDOMBinding.h:
3484         (WebCore::getStaticValueSlotEntryWithoutCaching):
3485         * bindings/js/JSStorageCustom.cpp:
3486         (WebCore::JSStorage::nameGetter):
3487         (WebCore::JSStorage::deleteProperty):
3488         (WebCore::JSStorage::putDelegate):
3489         * bindings/scripts/CodeGeneratorJS.pm:
3490         (GenerateGetOwnPropertySlotBody):
3491         (InstanceOverridesGetOwnPropertySlot):
3492         (PrototypeOverridesGetOwnPropertySlot):
3493         (GenerateAttributesHashTable):
3494         (GenerateImplementation):
3495         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
3496         (WebCore::jsTestActiveDOMObjectConstructor):
3497         * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
3498         (WebCore::jsTestCustomNamedGetterConstructor):
3499         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
3500         (WebCore::JSTestEventConstructor::getOwnPropertySlot):
3501         (WebCore::jsTestEventConstructorConstructor):
3502         * bindings/scripts/test/JS/JSTestEventConstructor.h:
3503         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
3504         (WebCore::jsTestEventTargetConstructor):
3505         * bindings/scripts/test/JS/JSTestException.cpp:
3506         (WebCore::jsTestExceptionConstructor):
3507         * bindings/scripts/test/JS/JSTestException.h:
3508         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
3509         (WebCore::JSTestGenerateIsReachable::getOwnPropertySlot):
3510         (WebCore::jsTestGenerateIsReachableConstructor):
3511         * bindings/scripts/test/JS/JSTestGenerateIsReachable.h:
3512         * bindings/scripts/test/JS/JSTestInterface.cpp:
3513         (WebCore::jsTestInterfaceConstructor):
3514         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
3515         (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertySlot):
3516         (WebCore::JSTestMediaQueryListListener::getOwnPropertySlot):
3517         (WebCore::jsTestMediaQueryListListenerConstructor):
3518         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
3519         (WebCore::JSTestNamedConstructor::getOwnPropertySlot):
3520         (WebCore::jsTestNamedConstructorConstructor):
3521         * bindings/scripts/test/JS/JSTestNamedConstructor.h:
3522         * bindings/scripts/test/JS/JSTestNode.cpp:
3523         (WebCore::JSTestNode::getOwnPropertySlot):
3524         (WebCore::jsTestNodeConstructor):
3525         * bindings/scripts/test/JS/JSTestNode.h:
3526         * bindings/scripts/test/JS/JSTestObj.cpp:
3527         (WebCore::jsTestObjConstructor):
3528         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
3529         (WebCore::JSTestOverloadedConstructors::getOwnPropertySlot):
3530         (WebCore::jsTestOverloadedConstructorsConstructor):
3531         * bindings/scripts/test/JS/JSTestOverloadedConstructors.h:
3532         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
3533         (WebCore::JSTestSerializedScriptValueInterface::getOwnPropertySlot):
3534         (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
3535         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
3536         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
3537         (WebCore::JSTestTypedefsPrototype::getOwnPropertySlot):
3538         (WebCore::jsTestTypedefsConstructor):
3539         * bindings/scripts/test/JS/JSattribute.cpp:
3540         (WebCore::JSattribute::getOwnPropertySlot):
3541         (WebCore::jsattributeConstructor):
3542         * bindings/scripts/test/JS/JSattribute.h:
3543         * bindings/scripts/test/JS/JSreadonly.cpp:
3544         (WebCore::JSreadonly::getOwnPropertySlot):
3545         (WebCore::jsreadonlyConstructor):
3546         * bindings/scripts/test/JS/JSreadonly.h:
3547
3548 2014-02-04  Alexey Proskuryakov  <ap@apple.com>
3549
3550         WebCrypto HMAC verification uses a non-constant-time memcmp
3551         https://bugs.webkit.org/show_bug.cgi?id=128198
3552         <rdar://problem/15976961>
3553
3554         Reviewed by Oliver Hunt.
3555
3556         * crypto/mac/CryptoAlgorithmHMACMac.cpp: (WebCore::CryptoAlgorithmHMAC::platformVerify):
3557         Use a constant time memcmp.
3558
3559 2014-02-04  Simon Fraser  <simon.fraser@apple.com>
3560
3561         Add WK2 event handling path for iOS, and make Mac and iOS code more similar
3562         https://bugs.webkit.org/show_bug.cgi?id=128199
3563
3564         Reviewed by Sam Weinig.
3565
3566         EventHandlerIOS need some changes for WebKit2, where we have no native
3567         widget. Merge those changes from EventHandlerMac.
3568         
3569         Make a few drive-by changes to match EventHandlerMac behavior.
3570         
3571         Clean up EventHandlerMac, removing trailing whitespace and fixing
3572         the odd comment.
3573
3574         * page/ios/EventHandlerIOS.mm:
3575         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
3576         (WebCore::EventHandler::passMouseDownEventToWidget):
3577         (WebCore::EventHandler::passSubframeEventToSubframe):
3578         (WebCore::EventHandler::passWheelEventToWidget):
3579         (WebCore::EventHandler::mouseDown):
3580         (WebCore::EventHandler::mouseMoved):
3581         (WebCore::frameHasPlatformWidget):
3582         (WebCore::EventHandler::passMousePressEventToSubframe):
3583         (WebCore::EventHandler::passMouseMoveEventToSubframe):
3584         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
3585         * page/mac/EventHandlerMac.mm:
3586         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
3587         (WebCore::EventHandler::passMouseDownEventToWidget):
3588         (WebCore::findViewInSubviews):
3589         (WebCore::EventHandler::eventLoopHandleMouseUp):
3590         (WebCore::EventHandler::passWheelEventToWidget):
3591         (WebCore::EventHandler::mouseMoved):
3592
3593 2014-02-04  Benjamin Poulain  <bpoulain@apple.com>
3594
3595         [OSX] Limit progress bar's dimensions to ushort
3596         https://bugs.webkit.org/show_bug.cgi?id=128019
3597
3598         Wordaround a crash in Quartz until <rdar://problem/15855086> is fixed.
3599
3600         Reviewed by Sam Weinig.
3601
3602         * rendering/RenderThemeMac.mm:
3603         (WebCore::RenderThemeMac::progressBarRectForBounds):
3604
3605 2014-02-04  Anders Carlsson  <andersca@apple.com>
3606
3607         Rename StringImpl::getCharacters to StringImpl::characters
3608         https://bugs.webkit.org/show_bug.cgi?id=128205
3609
3610         Reviewed by Antti Koivisto.
3611
3612         Update for WTF changes.
3613
3614         * rendering/SimpleLineLayout.cpp:
3615         (WebCore::SimpleLineLayout::createTextRuns):
3616
3617 2014-02-04  Anders Carlsson  <andersca@apple.com>
3618
3619         Rename equalNonNull to equal and make it take const StringImpl& instead
3620         https://bugs.webkit.org/show_bug.cgi?id=128206
3621
3622         Reviewed by Andreas Kling.
3623
3624         * html/parser/HTMLParserIdioms.cpp:
3625         (WebCore::threadSafeEqual):
3626         (WebCore::threadSafeMatch):
3627
3628 2014-02-04  Anders Carlsson  <andersca@apple.com>
3629
3630         Rename String::getCharacters to String::characters
3631         https://bugs.webkit.org/show_bug.cgi?id=128196
3632
3633         Reviewed by Andreas Kling.
3634
3635         Update for WTF::String changes.
3636
3637         * dom/Document.cpp:
3638         (WebCore::canonicalizedTitle):
3639
3640 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
3641
3642         Fix Release build after r163390.
3643
3644         * platform/audio/MediaSession.cpp: Add "#if !LOG_DISABLED" around logging-only function.
3645
3646 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
3647
3648         Refine MediaSession interruptions
3649         https://bugs.webkit.org/show_bug.cgi?id=128125
3650
3651         Reviewed by Jer Noble.
3652
3653         Test: media/video-background-playback.html
3654
3655         * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for
3656             Internals.
3657
3658         * html/HTMLMediaElement.cpp:
3659         (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check
3660             to see if it is interrupted directly.
3661         (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check
3662             to see if it is interrupted directly.
3663         (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once
3664             the information is available.
3665         (WebCore::HTMLMediaElement::resumePlayback): New.
3666         * html/HTMLMediaElement.h:
3667
3668         * html/HTMLMediaSession.cpp:
3669         (WebCore::restrictionName): New, use for logging only.
3670         (WebCore::HTMLMediaSession::addBehaviorRestriction): Log  restriction changes.
3671         (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto.
3672         * html/HTMLMediaSession.h:
3673
3674         * platform/audio/MediaSession.cpp:
3675         (WebCore::stateName): New, used for logging.
3676         (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change.
3677         (WebCore::MediaSession::setState): Log state changes.
3678         (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it
3679             to restore state when the interruption ends.
3680         (WebCore::MediaSession::endInterruption): Resume playback if appropriate.
3681         (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state.
3682         (WebCore::MediaSession::clientWillPausePlayback): Ditto.
3683         (WebCore::MediaSession::mediaType): Ask client for state.
3684         * platform/audio/MediaSession.h:
3685
3686         * platform/audio/MediaSessionManager.cpp:
3687         (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted.
3688         (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced.
3689         (WebCore::MediaSessionManager::endInterruption): Ditto.
3690         (WebCore::MediaSessionManager::addSession): 
3691         (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not
3692             allowed to play in the background.
3693         (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it
3694             was stopped by an interruption.
3695         * platform/audio/MediaSessionManager.h:
3696
3697         * platform/audio/ios/MediaSessionManagerIOS.h:
3698         * platform/audio/ios/MediaSessionManagerIOS.mm:
3699         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback.
3700         (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play
3701             while the application is in the background. Register for application suspend/resume
3702             notifications.
3703         (-[WebMediaSessionHelper clearCallback]): Set _callback to nil.
3704         (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application 
3705             state change.
3706         (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto.
3707
3708         * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback.
3709
3710         * testing/Internals.cpp:
3711         (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch.
3712         (WebCore::Internals::applicationWillEnterBackground): Ditto.
3713         (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction.
3714         * testing/Internals.h:
3715         * testing/Internals.idl:
3716
3717 2014-02-04  Andreas Kling  <akling@apple.com>
3718
3719         Remove CPP bindings generator.
3720         <https://webkit.org/b/128189>
3721
3722         Scrub out some leftover Blackberry gunk.
3723
3724         Reviewed by Anders Carlsson.
3725
3726         * Modules/webdatabase/SQLResultSet.idl:
3727         * bindings/cpp/WebDOMCString.cpp: Removed.
3728         * bindings/cpp/WebDOMCString.h: Removed.
3729         * bindings/cpp/WebDOMDOMWindowCustom.cpp: Removed.
3730         * bindings/cpp/WebDOMEventListenerCustom.cpp: Removed.
3731         * bindings/cpp/WebDOMEventTarget.cpp: Removed.
3732         * bindings/cpp/WebDOMEventTarget.h: Removed.
3733         * bindings/cpp/WebDOMHTMLCollectionCustom.cpp: Removed.
3734         * bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Removed.
3735         * bindings/cpp/WebDOMHTMLOptionsCollectionCustom.cpp: Removed.
3736         * bindings/cpp/WebDOMNodeCustom.cpp: Removed.
3737         * bindings/cpp/WebDOMNodeFilterCustom.cpp: Removed.
3738         * bindings/cpp/WebDOMObject.h: Removed.
3739         * bindings/cpp/WebDOMString.cpp: Removed.
3740         * bindings/cpp/WebDOMString.h: Removed.
3741         * bindings/cpp/WebExceptionHandler.cpp: Removed.
3742         * bindings/cpp/WebExceptionHandler.h: Removed.
3743         * bindings/cpp/WebNativeEventListener.cpp: Removed.
3744         * bindings/cpp/WebNativeEventListener.h: Removed.
3745         * bindings/cpp/WebNativeNodeFilterCondition.cpp: Removed.
3746         * bindings/cpp/WebNativeNodeFilterCondition.h: Removed.
3747         * bindings/scripts/CodeGeneratorCPP.pm: Removed.
3748         * bindings/scripts/test/CPP/CPPTestSupplemental.cpp: Removed.
3749         * bindings/scripts/test/CPP/CPPTestSupplemental.h: Removed.
3750         * bindings/scripts/test/CPP/WebDOMFloat64Array.cpp: Removed.
3751         * bindings/scripts/test/CPP/WebDOMFloat64Array.h: Removed.
3752         * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.cpp: Removed.
3753         * bindings/scripts/test/CPP/WebDOMTestActiveDOMObject.h: Removed.
3754         * bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Removed.
3755         * bindings/scripts/test/CPP/WebDOMTestCallback.h: Removed.
3756         * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.cpp: Removed.
3757         * bindings/scripts/test/CPP/WebDOMTestCustomNamedGetter.h: Removed.
3758         * bindings/scripts/test/CPP/WebDOMTestEventConstructor.cpp: Removed.
3759         * bindings/scripts/test/CPP/WebDOMTestEventConstructor.h: Removed.
3760         * bindings/scripts/test/CPP/WebDOMTestEventTarget.cpp: Removed.
3761         * bindings/scripts/test/CPP/WebDOMTestEventTarget.h: Removed.
3762         * bindings/scripts/test/CPP/WebDOMTestException.cpp: Removed.
3763         * bindings/scripts/test/CPP/WebDOMTestException.h: Removed.
3764         * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.cpp: Removed.
3765         * bindings/scripts/test/CPP/WebDOMTestGenerateIsReachable.h: Removed.
3766         * bindings/scripts/test/CPP/WebDOMTestImplements.cpp: Removed.
3767         * bindings/scripts/test/CPP/WebDOMTestImplements.h: Removed.
3768         * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Removed.
3769         * bindings/scripts/test/CPP/WebDOMTestInterface.h: Removed.
3770         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Removed.
3771         * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Removed.
3772         * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.cpp: Removed.
3773         * bindings/scripts/test/CPP/WebDOMTestNamedConstructor.h: Removed.
3774         * bindings/scripts/test/CPP/WebDOMTestNode.cpp: Removed.
3775         * bindings/scripts/test/CPP/WebDOMTestNode.h: Removed.
3776         * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Removed.
3777         * bindings/scripts/test/CPP/WebDOMTestObj.h: Removed.
3778         * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.cpp: Removed.
3779         * bindings/scripts/test/CPP/WebDOMTestOverloadedConstructors.h: Removed.
3780         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp: Removed.
3781         * bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.h: Removed.
3782         * bindings/scripts/test/CPP/WebDOMTestSupplemental.cpp: Removed.
3783         * bindings/scripts/test/CPP/WebDOMTestSupplemental.h: Removed.
3784         * bindings/scripts/test/CPP/WebDOMTestTypedefs.cpp: Removed.
3785         * bindings/scripts/test/CPP/WebDOMTestTypedefs.h: Removed.
3786         * bindings/scripts/test/CPP/WebDOMattribute.cpp: Removed.
3787         * bindings/scripts/test/CPP/WebDOMattribute.h: Removed.
3788         * bindings/scripts/test/CPP/WebDOMreadonly.cpp: Removed.
3789         * bindings/scripts/test/CPP/WebDOMreadonly.h: Removed.
3790         * css/StyleSheet.idl:
3791         * dom/CustomEvent.idl:
3792         * dom/Document.idl:
3793         * dom/Event.idl:
3794         * dom/Node.idl:
3795         * dom/PopStateEvent.idl:
3796         * html/HTMLCanvasElement.idl:
3797         * html/HTMLInputElement.idl:
3798         * html/canvas/CanvasRenderingContext2D.idl:
3799         * page/DOMWindow.idl:
3800         * page/Location.idl:
3801         * workers/DedicatedWorkerGlobalScope.idl:
3802
3803 2014-02-04  Dan Bernstein  <mitz@apple.com>
3804
3805         iOS build fix.
3806
3807         * platform/graphics/cg/GraphicsContextCG.cpp:
3808         (WebCore::GraphicsContext::platformInit):
3809
3810 2014-02-03  Zan Dobersek  <zdobersek@igalia.com>
3811
3812         Manage MediaQuery and MediaQueryExp classes through std::unique_ptr instead of OwnPtr
3813         https://bugs.webkit.org/show_bug.cgi?id=128117
3814
3815         Reviewed by Darin Adler.
3816
3817         Replace uses of OwnPtr for the MediaQuery and MediaQueryExp classes with std::unique_ptr.
3818
3819         * css/CSSGrammar.y.in:
3820         * css/CSSParser.cpp:
3821         (WebCore::CSSParser::parseMediaQuery):
3822         * css/CSSParser.h:
3823         * css/MediaList.cpp:
3824         (WebCore::MediaQuerySet::parse):
3825         (WebCore::MediaQuerySet::add):
3826         (WebCore::MediaQuerySet::remove):
3827         (WebCore::MediaQuerySet::addMediaQuery):
3828         (WebCore::MediaList::item):
3829         (WebCore::reportMediaQueryWarningIfNeeded):
3830         * css/MediaList.h:
3831         (WebCore::MediaQuerySet::queryVector):
3832         * css/MediaQuery.cpp:
3833         (WebCore::MediaQuery::MediaQuery):
3834         * css/MediaQuery.h:
3835         (WebCore::MediaQuery::expressions):
3836         (WebCore::MediaQuery::copy):
3837         * css/MediaQueryEvaluator.cpp:
3838         (WebCore::MediaQueryEvaluator::eval):
3839         * css/MediaQueryExp.cpp:
3840         (WebCore::MediaQueryExp::MediaQueryExp):
3841         * css/MediaQueryExp.h:
3842         (WebCore::MediaQueryExp::copy):
3843
3844 2014-02-04  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
3845
3846         Remove SVG_DOM_OBJC_BINDINGS after r161638.
3847         https://bugs.webkit.org/show_bug.cgi?id=128182
3848
3849         Reviewed by Andreas Kling.
3850
3851         Removed ENABLE(SVG_DOM_OBJC_BINDINGS).
3852
3853         No tests required.
3854
3855         * bindings/objc/DOMUIKitExtensions.mm:
3856         (-[DOMNode boundingBoxes]):
3857         (-[DOMNode absoluteQuads]):
3858
3859 2014-02-04  Radu Stavila  <stavila@adobe.com>
3860
3861         REGRESSION (r159609): Images are corrupted when hovering over buttons @ github.com
3862         https://bugs.webkit.org/show_bug.cgi?id=127729
3863
3864         Reviewed by Antti Koivisto.
3865
3866         When clipping a rect, the RenderLayer would not properly save the context when
3867         the clipping rect is the same as the paint rect and the clipping rect
3868         has radius.
3869
3870         Test: fast/regions/repaint/hover-border-radius.html
3871
3872         * rendering/RenderLayer.cpp:
3873         (WebCore::RenderLayer::clipToRect):
3874         (WebCore::RenderLayer::restoreClip):
3875
3876 2014-02-04  Ryuan Choi  <ryuan.choi@samsung.com>
3877
3878         [CMAKE] Remove workaround for GCC 4.6
3879         https://bugs.webkit.org/show_bug.cgi?id=128176
3880
3881         Reviewed by Csaba Osztrogonác.
3882
3883         Since r162126, WebKit requires at least 4.7.
3884
3885         * CMakeLists.txt:
3886
3887 2014-02-04  Zan Dobersek  <zdobersek@igalia.com>
3888
3889         Manage RuleSet and RuleData classes through std::unique_ptr instead of OwnPtr
3890         https://bugs.webkit.org/show_bug.cgi?id=128116
3891
3892         Reviewed by Darin Adler.
3893
3894         Replace uses of OwnPtr for the RuleSet and RuleData classes with std::unique_ptr.
3895
3896         * css/CSSDefaultStyleSheets.cpp:
3897         (WebCore::CSSDefaultStyleSheets::loadFullDefaultStyle):
3898         (WebCore::CSSDefaultStyleSheets::loadSimpleDefaultStyle):
3899         (WebCore::CSSDefaultStyleSheets::viewSourceStyle):
3900         * css/DocumentRuleSets.cpp:
3901         (WebCore::DocumentRuleSets::initUserStyle):
3902         (WebCore::makeRuleSet):
3903         (WebCore::DocumentRuleSets::resetAuthorStyle):
3904         * css/DocumentRuleSets.h:
3905         * css/RuleSet.cpp:
3906         (WebCore::RuleSet::addToRuleSet):
3907         (WebCore::RuleSet::addRegionRule):
3908         * css/RuleSet.h:
3909         (WebCore::RuleSet::RuleSetSelectorPair::RuleSetSelectorPair):
3910
3911 2014-02-04  Commit Queue  <commit-queue@webkit.org>
3912
3913         Unreviewed, rolling out r163376.
3914         http://trac.webkit.org/changeset/163376
3915         https://bugs.webkit.org/show_bug.cgi?id=128184
3916
3917         Unexpected test failures. (Requested by eric_carlson on
3918         #webkit).
3919
3920         * WebCore.exp.in:
3921         * html/HTMLMediaElement.cpp:
3922         (WebCore::HTMLMediaElement::parseAttribute):
3923         * html/HTMLMediaElement.h:
3924         * html/HTMLMediaSession.cpp:
3925         (WebCore::HTMLMediaSession::addBehaviorRestriction):
3926         (WebCore::HTMLMediaSession::removeBehaviorRestriction):
3927         (WebCore::HTMLMediaSession::clientWillBeginPlayback):
3928         * html/HTMLMediaSession.h:
3929         * platform/audio/MediaSession.cpp:
3930         (WebCore::MediaSession::MediaSession):
3931         (WebCore::MediaSession::beginInterruption):
3932         (WebCore::MediaSession::endInterruption):
3933         * platform/audio/MediaSession.h:
3934         (WebCore::MediaSession::mediaType):
3935         (WebCore::MediaSession::setState):
3936         (WebCore::MediaSessionClient::beginInterruption):
3937         (WebCore::MediaSessionClient::endInterruption):
3938         * platform/audio/MediaSessionManager.cpp:
3939         (WebCore::MediaSessionManager::MediaSessionManager):
3940         (WebCore::MediaSessionManager::beginInterruption):
3941         (WebCore::MediaSessionManager::endInterruption):
3942         (WebCore::MediaSessionManager::addSession):
3943         * platform/audio/MediaSessionManager.h:
3944         * platform/audio/ios/MediaSessionManagerIOS.h:
3945         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS):
3946         * platform/audio/ios/MediaSessionManagerIOS.mm:
3947         (WebCore::MediaSessionManageriOS::resetRestrictions):
3948         (-[WebMediaSessionHelper initWithCallback:]):
3949         * platform/audio/mac/AudioDestinationMac.h:
3950         * testing/Internals.cpp:
3951         (WebCore::Internals::setMediaSessionRestrictions):
3952         * testing/Internals.h:
3953         * testing/Internals.idl:
3954
3955 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
3956
3957         Refine MediaSession interruptions
3958         https://bugs.webkit.org/show_bug.cgi?id=128125
3959
3960         Reviewed by Jer Noble.
3961
3962         Test: media/video-background-playback.html
3963
3964         * WebCore.exp.in: Export applicationWillEnterForeground and applicationWillEnterBackground for
3965             Internals.
3966
3967         * html/HTMLMediaElement.cpp:
3968         (WebCore::HTMLMediaElement::play): Ask the media session if playback is allowed instead of check
3969             to see if it is interrupted directly.
3970         (WebCore::HTMLMediaElement::pause): Ask the media session if pausing is allowed instead of check
3971             to see if it is interrupted directly.
3972         (WebCore::HTMLMediaElement::mediaType): Return media type based on media characteristics once
3973             the information is available.
3974         (WebCore::HTMLMediaElement::resumePlayback): New.
3975         * html/HTMLMediaElement.h:
3976
3977         * html/HTMLMediaSession.cpp:
3978         (WebCore::restrictionName): New, use for logging only.
3979         (WebCore::HTMLMediaSession::addBehaviorRestriction): Log  restriction changes.
3980         (WebCore::HTMLMediaSession::removeBehaviorRestriction): Ditto.
3981         * html/HTMLMediaSession.h:
3982
3983         * platform/audio/MediaSession.cpp:
3984         (WebCore::stateName): New, used for logging.
3985         (WebCore::MediaSession::MediaSession): Don't cache client media type because it can change.
3986         (WebCore::MediaSession::setState): Log state changes.
3987         (WebCore::MediaSession::beginInterruption): Remember the current state in case we want to use it
3988             to restore state when the interruption ends.
3989         (WebCore::MediaSession::endInterruption): Resume playback if appropriate.
3990         (WebCore::MediaSession::clientWillBeginPlayback): Track the client's playback state.
3991         (WebCore::MediaSession::clientWillPausePlayback): Ditto.
3992         (WebCore::MediaSession::mediaType): Ask client for state.
3993         * platform/audio/MediaSession.h:
3994
3995         * platform/audio/MediaSessionManager.cpp:
3996         (WebCore::MediaSessionManager::MediaSessionManager): m_interruptions -> m_interrupted.
3997         (WebCore::MediaSessionManager::beginInterruption): Don't assume interruptions are always balanced.
3998         (WebCore::MediaSessionManager::endInterruption): Ditto.
3999         (WebCore::MediaSessionManager::addSession): 
4000         (WebCore::MediaSessionManager::applicationWillEnterBackground): Interrupt client if it is not
4001             allowed to play in the background.
4002         (WebCore::MediaSessionManager::applicationWillEnterForeground): End client interruption if it
4003             was stopped by an interruption.
4004         * platform/audio/MediaSessionManager.h:
4005
4006         * platform/audio/ios/MediaSessionManagerIOS.h:
4007         * platform/audio/ios/MediaSessionManagerIOS.mm:
4008         (WebCore::MediaSessionManageriOS::~MediaSessionManageriOS): Clear the helper callback.
4009         (WebCore::MediaSessionManageriOS::resetRestrictions): Mark video as not allowed to play
4010             while the application is in the background. Register for application suspend/resume
4011             notifications.
4012         (-[WebMediaSessionHelper clearCallback]): Set _callback to nil.
4013         (-[WebMediaSessionHelper applicationWillEnterForeground:]): New, notify client of application 
4014             state change.
4015         (-[WebMediaSessionHelper applicationWillResignActive:]): Ditto.
4016
4017         * platform/audio/mac/AudioDestinationMac.h: Add resumePlayback.
4018
4019         * testing/Internals.cpp:
4020         (WebCore::Internals::applicationWillEnterForeground): New, simulate application context switch.
4021         (WebCore::Internals::applicationWillEnterBackground): Ditto.
4022         (WebCore::Internals::setMediaSessionRestrictions): Add "BackgroundPlaybackNotPermitted" restriction.
4023         * testing/Internals.h:
4024         * testing/Internals.idl:
4025
4026 2014-02-04  Mihai Maerean  <mmaerean@adobe.com>
4027
4028         [CSS Regions] Fix Assert SHOULD NEVER BE REACHED in RenderLayer::enclosingElement()
4029         https://bugs.webkit.org/show_bug.cgi?id=123329
4030
4031         Reviewed by Mihnea Ovidenie.
4032
4033         The flowthread doesn't have an enclosing element, so when hitting the layer of the
4034         flowthread (e.g. the descent area of the RootInlineBox for the image flowed alone
4035         inside the flow thread) we're letting the hit testing continue so it will hit the region.
4036
4037         Tests: fast/regions/assert-hit-test-image.html
4038                fast/regions/auto-size/region-same-height-as-div-with-inline-child.html
4039
4040         * rendering/RenderLayer.cpp:
4041         (WebCore::RenderLayer::hitTestContents):
4042
4043 2014-02-04  Mihnea Ovidenie  <mihnea@adobe.com>
4044
4045         ASSERTION FAILED: !object || (object->isRenderBlock())
4046         https://bugs.webkit.org/show_bug.cgi?id=127687
4047
4048         Reviewed by Ryosuke Niwa.
4049
4050         Currently, when computing the visible position for a point inside a region,
4051         we transform the point into flow thread coordinates and delegate the processing
4052         to the first child of the flow thread which we incorrectly assume is a block.
4053         However, we can specify flow-into also on inline elements which leads to the
4054         assertion.
4055
4056         Instead of delegating the processing to the first child when the flow thread
4057         has children, delegate the computation of the visible position to the
4058         flow thread and avoid any assumption about the nature of the flow thread
4059         first child. If the flow thread does not have any children that should be
4060         rendered by the region, let the region behave like an ordinary element
4061         with no children.
4062
4063        &n