1 2014-01-14 Daniel Bates <dabates@apple.com>
3 [iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP6NSData to
4 section USE(QUICK_LOOK)
8 2014-01-14 Anders Carlsson <andersca@apple.com>
10 Clean up DNSResolveQueue
11 https://bugs.webkit.org/show_bug.cgi?id=127007
13 Reviewed by Geoffrey Garen.
15 Move the shared() getter out of line and make it use NeverDestroyed.
16 Add a Timer member variable instead of inheriting from TimerBase.
17 Use std::atomic<int> for the m_requestsInFlight member variable.
19 * platform/network/DNSResolveQueue.cpp:
20 (WebCore::DNSResolveQueue::shared):
21 (WebCore::DNSResolveQueue::DNSResolveQueue):
22 (WebCore::DNSResolveQueue::add):
23 (WebCore::DNSResolveQueue::timerFired):
24 * platform/network/DNSResolveQueue.h:
25 (WebCore::DNSResolveQueue::decrementRequestCount):
27 2014-01-14 Simon Fraser <simon.fraser@apple.com>
29 Two more exports for iOS.
33 2014-01-14 Csaba Osztrogonác <ossy@webkit.org>
35 One more buildfix after r161999.
37 * Modules/webaudio/MediaStreamAudioSource.h:
39 2014-01-14 Simon Fraser <simon.fraser@apple.com>
41 Export __ZN7WebCore11FileChooser16chooseMediaFilesERKN3WTF6VectorINS1_6StringELm0ENS1_15CrashOnOverflowEEERKS3_PNS_4IconE
42 to fix WK1 iOS linking.
46 2014-01-14 Simon Fraser <simon.fraser@apple.com>
48 iOS build fixing: export required by iOS WebKit1.
52 2014-01-14 Commit Queue <commit-queue@webkit.org>
54 Unreviewed, rolling out r162000.
55 http://trac.webkit.org/changeset/162000
56 https://bugs.webkit.org/show_bug.cgi?id=127009
58 API versioning is wrong (Requested by rfong on #webkit).
60 * WebCore.xcodeproj/project.pbxproj:
61 * html/HTMLCanvasElement.cpp:
62 (WebCore::HTMLCanvasElement::getContext):
63 * loader/FrameLoaderClient.h:
64 * loader/FrameLoaderTypes.h:
65 * page/ChromeClient.h:
67 2014-01-14 Bear Travis <betravis@adobe.com>
69 [CSS Shapes] Move CSSPrimitiveValue <-> LayoutBox Conversion to CSSPrimitiveValueMappings
70 https://bugs.webkit.org/show_bug.cgi?id=126719
72 Reviewed by Dirk Schulze.
74 The standard location for conversions to/from CSSPrimitiveValues is CSSPrimitiveValueMappings.
75 This patch moves the conversion for LayoutBoxes from BasicShapeFunctions to
76 CSSPrimitiveValueMappings.h.
78 Refactoring, no new tests.
80 * css/BasicShapeFunctions.cpp:
81 (WebCore::valueForBasicShape):
82 (WebCore::basicShapeForValue):
83 * css/CSSComputedStyleDeclaration.cpp:
84 (WebCore::ComputedStyleExtractor::propertyValue):
85 * css/CSSPrimitiveValueMappings.h:
86 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
87 (WebCore::CSSPrimitiveValue::operator LayoutBox):
88 * css/DeprecatedStyleBuilder.cpp:
89 (WebCore::ApplyPropertyClipPath::applyValue):
90 (WebCore::ApplyPropertyShape::applyValue):
92 2014-01-09 Roger Fong <roger_fong@apple.com>
94 Add support for handling WebGL load policies.
95 https://bugs.webkit.org/show_bug.cgi?id=126935
96 <rdar://problem/15790448>.
98 Reviewed by Brent Fulgham.
100 * WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
101 * html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
102 (WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
103 If it isn't, be sure to notify the frame loader client that
104 the site is trying to create a WebGL context.
105 * loader/FrameLoaderClient.h:
106 (WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
107 * loader/FrameLoaderTypes.h:
108 * page/ChromeClient.h:
109 (WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.
111 2014-01-14 Anders Carlsson <andersca@apple.com>
113 Get rid of ThreadRestrictionVerifier
114 https://bugs.webkit.org/show_bug.cgi?id=127004
116 Reviewed by Sam Weinig.
118 Remove now unneeded calls.
120 * loader/icon/IconDatabase.cpp:
121 (WebCore::IconDatabase::defaultIcon):
122 (WebCore::IconDatabase::setIconDataForIconURL):
123 (WebCore::IconDatabase::getOrCreateIconRecord):
124 (WebCore::IconDatabase::readFromDatabase):
126 2014-01-14 Daniel Bates <dabates@apple.com>
128 [iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and QLContentDictionary()
129 https://bugs.webkit.org/show_bug.cgi?id=126999
130 <rdar://problem/15810305>
132 Reviewed by Joseph Pecoraro.
134 Fixes an issue where we may crash when subsequently accessing WebCore::QLPreviewConverterDictionary()
135 or WebCore::QLContentDictionary(). Currently neither of these functions retain'ed the NSMutable dictionary
136 returned by [NSMutableDictionary dictionary]. Instead, we should allocate and initialize NSMutableDictionary
137 directly to ensure that the dictionary is retained.
139 * platform/network/ios/QuickLook.mm:
140 (QLPreviewConverterDictionary):
141 (QLContentDictionary):
143 2014-01-14 Brent Fulgham <bfulgham@apple.com>
145 [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
146 https://bugs.webkit.org/show_bug.cgi?id=126925
148 Reviewed by Dean Jackson.
150 Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
152 * html/canvas/WebGLRenderingContext.cpp:
153 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
155 2014-01-14 Mark Rowe <mrowe@apple.com>
157 WebCore icon database appears to leak sudden termination assertions
158 <https://webkit.org/b/126971> / <rdar://problem/15808797>
160 Introduce an RAII wrapper around disableSuddenTermination / enableSuddenTermination
161 and adopt it in IconDatabase to address the incorrect management of sudden termination.
163 IconDatabase now owns up to two SuddenTerminationDisabler objects. One ensures that
164 sudden termination is disabled while we're waiting on the sync timer to fire. The second
165 ensures that sudden termination is disabled while we're waiting on the sync thread to
166 process any pending work.
168 Reviewed by Alexey Proskuryakov.
170 * loader/icon/IconDatabase.cpp:
171 (WebCore::IconDatabase::IconDatabase):
172 (WebCore::IconDatabase::wakeSyncThread): Disable sudden termination until the sync thread
173 has finished this unit of work.
174 (WebCore::IconDatabase::scheduleOrDeferSyncTimer): Disable sudden termination until the
175 sync timer has fired.
176 (WebCore::IconDatabase::syncTimerFired): Clear the member variable to reenable sudden termination.
177 (WebCore::IconDatabase::syncThreadMainLoop): Taken ownership of the SuddenTerminationDisabler
178 instance when we start processing a unit of work. Discard the object when our work is complete.
179 * loader/icon/IconDatabase.h:
180 * platform/SuddenTermination.h:
181 (WebCore::SuddenTerminationDisabler::SuddenTerminationDisabler): Disable sudden termination when created.
182 (WebCore::SuddenTerminationDisabler::~SuddenTerminationDisabler): Enable it when destroyed.
184 2014-01-14 Joseph Pecoraro <pecoraro@apple.com>
186 Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
187 https://bugs.webkit.org/show_bug.cgi?id=126995
189 Reviewed by Timothy Hatcher.
191 * inspector/InspectorClient.h:
192 (WebCore::InspectorClient::parentProcessIdentifier):
193 Client method intended for WebKit2 so a WebProcess can link to its UIProcess.
195 * page/PageDebuggable.h:
196 * page/PageDebuggable.cpp:
197 (WebCore::PageDebuggable::parentProcessIdentifier):
198 Provide parent process identifier if there is one.
200 2014-01-14 Tim Horton <timothy_horton@apple.com>
202 iOS WebKit2 build fixes, part 2
205 Export some more symbols.
207 2014-01-14 Brian J. Burg <burg@cs.washington.edu>
209 Add ENABLE(WEB_REPLAY) feature flag to the build system
210 https://bugs.webkit.org/show_bug.cgi?id=126949
212 Reviewed by Joseph Pecoraro.
214 * Configurations/FeatureDefines.xcconfig:
216 2014-01-10 Jer Noble <jer.noble@apple.com>
218 Crash in WebCore::MediaSourcePrivateAVFObjC::hasAudio const + 13
219 https://bugs.webkit.org/show_bug.cgi?id=126768
221 Reviewed by Eric Carlson.
223 Null-check m_mediaSourcePrivate before calling.
225 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
226 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasVideo):
227 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::hasAudio):
228 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekInternal):
230 2014-01-14 Piotr Grad <p.grad@samsung.com>
232 [GStreamer] Playback rate is not set when pipeline is not ready.
233 https://bugs.webkit.org/show_bug.cgi?id=126692
235 Reviewed by Philippe Normand.
237 No new tests. Covered by existing tests.
239 Added new method updatePlaybackRate which is called when playback rate change is possible.
240 Added m_lastPlaybackRate in order to retrieve last correct playback rate and notify upper
241 layers about that setting playback rate failed.
243 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
244 (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
245 (WebCore::MediaPlayerPrivateGStreamer::updatePlaybackRate):
246 (WebCore::MediaPlayerPrivateGStreamer::setRate):
247 (WebCore::MediaPlayerPrivateGStreamer::updateStates):
248 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
250 2014-01-14 Commit Queue <commit-queue@webkit.org>
252 Unreviewed, rolling out r161978.
253 http://trac.webkit.org/changeset/161978
254 https://bugs.webkit.org/show_bug.cgi?id=126992
256 Test case causes crash on some hardware (Requested by bfulgham
259 * html/canvas/WebGLRenderingContext.cpp:
260 (WebCore::WebGLRenderingContext::validateTexFuncLevel):
262 2014-01-14 Commit Queue <commit-queue@webkit.org>
264 Unreviewed, rolling out r161964 and r161965.
265 http://trac.webkit.org/changeset/161964
266 http://trac.webkit.org/changeset/161965
267 https://bugs.webkit.org/show_bug.cgi?id=126988
269 Tests do not pass on the bots because of slight color
270 differences. The tests should be redone with squared results
271 and blending that leads to stable colors. (Requested by krit_
274 * platform/graphics/CrossfadeGeneratedImage.cpp:
275 (WebCore::CrossfadeGeneratedImage::draw):
276 * svg/graphics/SVGImage.cpp:
277 (WebCore::SVGImage::drawPatternForContainer):
278 * svg/graphics/SVGImage.h:
279 * svg/graphics/SVGImageForContainer.cpp:
280 (WebCore::SVGImageForContainer::drawPattern):
282 2014-01-14 Hans Muller <hmuller@adobe.com>
284 [CSS Shapes] Shape images are now <image> types, not just URIs
285 https://bugs.webkit.org/show_bug.cgi?id=125224
287 Reviewed by Andreas Kling.
289 Added support for image-set valued shapes. Added an optional ResourceLoaderOptions
290 parameter to CSSImageSetValue::cachedImageSet() to enable CORS-enabled fetch of
291 image-set images. This change is based on a similar patch for ordinary shape image values:
292 https://bugs.webkit.org/show_bug.cgi?id=123114.
294 Tests: fast/shapes/shape-inside/shape-inside-image-set.html
295 fast/shapes/shape-outside-floats/shape-outside-image-set.html
297 * css/CSSImageSetValue.cpp:
298 (WebCore::CSSImageSetValue::cachedImageSet):
299 * css/CSSImageSetValue.h:
301 (WebCore::CSSParser::parseShapeProperty):
302 * css/DeprecatedStyleBuilder.cpp:
303 (WebCore::ApplyPropertyShape::applyValue):
304 * css/StyleResolver.cpp:
305 (WebCore::StyleResolver::loadPendingImage):
306 (WebCore::StyleResolver::loadPendingShapeImage):
307 * css/StyleResolver.h:
308 * rendering/shapes/Shape.cpp:
309 (WebCore::Shape::createShape):
311 2014-01-13 Chris Fleizach <cfleizach@apple.com>
313 AX: Modernize AccessibilityChildrenVector loops
314 https://bugs.webkit.org/show_bug.cgi?id=126915
316 Reviewed by Anders Carlsson.
318 Change appropriate for loops to use the new style.
319 Use auto where appropriate.
321 * accessibility/AXObjectCache.cpp:
322 (WebCore::AXObjectCache::focusedImageMapUIElement):
323 * accessibility/AccessibilityARIAGrid.cpp:
324 (WebCore::AccessibilityARIAGrid::addRowDescendant):
325 * accessibility/AccessibilityARIAGridCell.cpp:
326 (WebCore::AccessibilityARIAGridCell::rowIndexRange):
327 * accessibility/AccessibilityARIAGridRow.cpp:
328 (WebCore::AccessibilityARIAGridRow::disclosedRows):
329 (WebCore::AccessibilityARIAGridRow::disclosedByRow):
330 (WebCore::AccessibilityARIAGridRow::parentTable):
331 (WebCore::AccessibilityARIAGridRow::headerObject):
332 * accessibility/AccessibilityListBox.cpp:
333 (WebCore::AccessibilityListBox::addChildren):
334 (WebCore::AccessibilityListBox::setSelectedChildren):
335 (WebCore::AccessibilityListBox::selectedChildren):
336 * accessibility/AccessibilityListBoxOption.cpp:
337 (WebCore::AccessibilityListBoxOption::listBoxOptionIndex):
338 * accessibility/AccessibilityMenuList.cpp:
339 (WebCore::AccessibilityMenuList::didUpdateActiveOption):
340 * accessibility/AccessibilityMenuListPopup.cpp:
341 (WebCore::AccessibilityMenuListPopup::addChildren):
342 * accessibility/AccessibilityNodeObject.cpp:
343 (WebCore::AccessibilityNodeObject::insertChild):
344 (WebCore::AccessibilityNodeObject::selectedRadioButton):
345 (WebCore::AccessibilityNodeObject::selectedTabItem):
346 (WebCore::AccessibilityNodeObject::ariaLabeledByText):
347 * accessibility/AccessibilityObject.cpp:
348 (WebCore::appendChildrenToArray):
349 (WebCore::AccessibilityObject::clearChildren):
350 (WebCore::AccessibilityObject::ariaTreeRows):
351 (WebCore::AccessibilityObject::ariaTreeItemContent):
352 (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
353 (WebCore::AccessibilityObject::elementAccessibilityHitTest):
354 * accessibility/AccessibilityRenderObject.cpp:
355 (WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
356 (WebCore::AccessibilityRenderObject::ariaFlowToElements):
357 (WebCore::AccessibilityRenderObject::isTabItemSelected):
358 (WebCore::AccessibilityRenderObject::setSelectedRows):
359 (WebCore::AccessibilityRenderObject::ariaOwnsElements):
360 (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
361 (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
362 (WebCore::AccessibilityRenderObject::updateAttachmentViewParents):
363 (WebCore::AccessibilityRenderObject::addHiddenChildren):
364 (WebCore::AccessibilityRenderObject::ariaSelectedRows):
365 (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
366 (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
367 (WebCore::AccessibilityRenderObject::tabChildren):
368 (WebCore::AccessibilityRenderObject::mathRadicandObject):
369 (WebCore::AccessibilityRenderObject::mathRootIndexObject):
370 (WebCore::AccessibilityRenderObject::mathNumeratorObject):
371 (WebCore::AccessibilityRenderObject::mathDenominatorObject):
372 (WebCore::AccessibilityRenderObject::mathUnderObject):
373 (WebCore::AccessibilityRenderObject::mathOverObject):
374 (WebCore::AccessibilityRenderObject::mathBaseObject):
375 (WebCore::AccessibilityRenderObject::mathSubscriptObject):
376 (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
377 * accessibility/AccessibilityTable.cpp:
378 (WebCore::AccessibilityTable::columnHeaders):
379 (WebCore::AccessibilityTable::rowHeaders):
380 (WebCore::AccessibilityTable::visibleRows):
381 (WebCore::AccessibilityTable::cells):
382 (WebCore::AccessibilityTable::cellForColumnAndRow):
383 * accessibility/AccessibilityTableColumn.cpp:
384 (WebCore::AccessibilityTableColumn::headerObject):
385 * accessibility/AccessibilityTableHeaderContainer.cpp:
386 (WebCore::AccessibilityTableHeaderContainer::addChildren):
387 * accessibility/AccessibilityTableRow.cpp:
388 (WebCore::AccessibilityTableRow::headerObject):
389 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
390 (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
391 (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
392 (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
393 * accessibility/mac/WebAccessibilityObjectWrapperBase.mm:
394 (convertMathPairsToNSArray):
395 (-[WebAccessibilityObjectWrapperBase accessibilityTitle]):
396 (-[WebAccessibilityObjectWrapperBase accessibilityDescription]):
397 (-[WebAccessibilityObjectWrapperBase accessibilityHelpText]):
398 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
400 (convertStringsToNSArray):
401 (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
402 (-[WebAccessibilityObjectWrapper accessibilityIndexOfChild:]):
403 (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeCount:]):
404 (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):
406 2014-01-14 Brent Fulgham <bfulgham@apple.com>
408 [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
409 https://bugs.webkit.org/show_bug.cgi?id=126925
411 Reviewed by Dean Jackson.
413 Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
415 * html/canvas/WebGLRenderingContext.cpp:
416 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
418 2014-01-14 Carlos Garcia Campos <cgarcia@igalia.com>
420 [SOUP] SoupNetworkSession::setAcceptLanguages should receive a const reference
421 https://bugs.webkit.org/show_bug.cgi?id=126966
423 Reviewed by Gustavo Noronha Silva.
425 We don't really need to modify the Vector just to ignore the C
428 * platform/network/soup/SoupNetworkSession.cpp:
429 (WebCore::buildAcceptLanguages): Rework it to not modify the
430 passed vector to ignore the C locale when it's present.
431 (WebCore::SoupNetworkSession::setAcceptLanguages): Use const Vector<String>&.
432 * platform/network/soup/SoupNetworkSession.h:
434 2014-01-14 Piotr Grad <p.grad@samsung.com>
436 HTMLMediaElement::potentiallyPlaying can be more simple.
437 https://bugs.webkit.org/show_bug.cgi?id=111
439 Reviewed by Eric Carlson.
441 Tests: No new tests, just refactorings.
443 Expression is simplified because the first 'if' statement depends on the same condition
444 as pausedToBuffer value.
446 * html/HTMLMediaElement.cpp:
447 (WebCore::HTMLMediaElement::parseAttribute):
449 2014-01-14 Andreas Kling <akling@apple.com>
451 Remove deprecated DeferrableOneShotTimer constructor.
452 <https://webkit.org/b/126984>
454 Remove the deprecated constructor for callback functions that take
455 the timer by pointer instead of by reference.
457 This shrinks DeferrableOneShotTimer by 8 bytes.
459 Reviewed by Anders Carlsson.
462 (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
464 2014-01-14 Dirk Schulze <krit@webkit.org>
466 Make CachedSVGDocument independent of CSS Filters
467 https://bugs.webkit.org/show_bug.cgi?id=126133
469 Reviewed by Antti Koivisto.
471 Clean-up the pendingSVGDocuments code in StyleResolver.
472 CachedSVGDocumentReference is responsible for requesting the
473 SVG document instead of WebKitCSSSVGDocumentValue.
474 CachedSVGDocumentReference can be used by other SVG resource like
475 clip-path and mask now so that these may load external resources
477 WebKitCSSSVGDocumentValue does not provide any further value
478 and will be removed in the next patch.
480 Refactoring, no new test cases.
482 * css/StyleResolver.cpp:
483 (WebCore::StyleResolver::loadPendingSVGDocuments):
484 (WebCore::StyleResolver::createFilterOperations):
485 * css/StyleResolver.h: Replace Map with a Set.
486 (WebCore::StyleResolver::State::pendingSVGDocuments): Use the Set from now on.
487 * loader/cache/CachedSVGDocumentReference.cpp:
488 (WebCore::CachedSVGDocumentReference::CachedSVGDocumentReference):
489 (WebCore::CachedSVGDocumentReference::~CachedSVGDocumentReference):
490 (WebCore::CachedSVGDocumentReference::load):
491 * loader/cache/CachedSVGDocumentReference.h: Is responsible for
492 requesting the SVG document.
493 (WebCore::CachedSVGDocumentReference::create):
494 (WebCore::CachedSVGDocumentReference::loadRequested):
495 * platform/graphics/filters/FilterOperation.cpp:
496 (WebCore::ReferenceFilterOperation::createCachedSVGDocumentReference):
497 * platform/graphics/filters/FilterOperation.h:
499 2014-01-14 Mario Sanchez Prada <mario.prada@samsung.com>
501 [ATK] AXChildrenChanged notification handling is a performance black hole
502 https://bugs.webkit.org/show_bug.cgi?id=126970
504 Reviewed by Gustavo Noronha Silva.
506 Remove code that is causing a huge performance problem when
507 loading big pages, just to be able to emit the children-changed:add
508 signal at the exact time a child is added.
510 This removal does not imply that the signal won't be ever emitted,
511 just that it will be emitted a bit later (when the new child is
512 asynchronously added to the tree), which should be good enough
513 anyway for Accessible Technologies, without impacting perfformance
514 in such a negative way.
516 * accessibility/atk/AXObjectCacheAtk.cpp:
517 (WebCore::AXObjectCache::postPlatformNotification): Removed
518 extremely expensive referring loop when AXChildrenChanged is received.
520 2014-01-14 Mihai Tica <mitica@adobe.com>
522 [CSS Background Blending] Background layer with -webkit-cross-fade doesn't blend
523 when having -webkit-background-blending applied. Turns out the problem was
524 the blending parameter not being passed to WebCore::CrossfadeGeneratedImage::draw
526 https://bugs.webkit.org/show_bug.cgi?id=126887
528 Reviewed by Dirk Schulze.
530 Test: css3/compositing/background-blend-mode-crossfade-image.html
532 * platform/graphics/CrossfadeGeneratedImage.cpp:
533 (WebCore::CrossfadeGeneratedImage::draw): set blendMode on context.
535 2014-01-14 Mihai Tica <mitica@adobe.com>
537 Background-blend-mode doesn't work for an element with an
538 SVG image as background and border-style or padding set.
539 The problem consisted in the drawing path using the default
540 blending parameter at all times.
541 https://bugs.webkit.org/show_bug.cgi?id=118894
543 Reviewed by Dirk Schulze.
545 Test: css3/compositing/background-blend-mode-data-uri-svg-image.html
547 * svg/graphics/SVGImage.cpp:
548 (WebCore::SVGImage::drawPatternForContainer): Pass blendMode to Image::drawPattern.
549 * svg/graphics/SVGImage.h: Add a blendMode parameter to drawPatternForContainer.
550 * svg/graphics/SVGImageForContainer.cpp:
551 (WebCore::SVGImageForContainer::drawPattern): Pass blendMode to drawPatternForContainer call.
553 2014-01-14 Peter Molnar <pmolnar.u-szeged@partner.samsung.com>
555 Remove accidentally added PLATFORM(QT) from Source/WebCore/editing/EditorCommand.cpp after r161638
556 https://bugs.webkit.org/show_bug.cgi?id=126980
558 Reviewed by Andreas Kling.
560 * editing/EditorCommand.cpp:
561 (WebCore::createCommandMap):
563 2014-01-14 Mihnea Ovidenie <mihnea@adobe.com>
565 [CSSRegions] The list of fixed positioned layers in named flows should be sorted by z-index
566 https://bugs.webkit.org/show_bug.cgi?id=126978
568 Reviewed by Antti Koivisto.
570 Return the list of fixed positioned layers sorted by z-index from
571 FlowThreadController::collectFixedPositionedLayers instead of manually sort it
572 every time we need it (RenderLayer::paintFixedLayersInNamedFlows, RenderLayer::hitTestFixedLayersInNamedFlows).
573 Refactoring covered by existing regions tests.
575 * rendering/FlowThreadController.cpp:
576 (WebCore::compareZIndex):
577 (WebCore::FlowThreadController::collectFixedPositionedLayers):
578 * rendering/RenderLayer.cpp:
579 (WebCore::RenderLayer::paintFixedLayersInNamedFlows):
580 (WebCore::RenderLayer::hitTestFixedLayersInNamedFlows):
582 2014-01-14 Andreas Kling <akling@apple.com>
584 Pack ResourceLoaderOptions harder.
585 <https://webkit.org/b/126972>
587 Make all ResourceLoaderOptions members bitfields to reduce padding,
588 shrinking it from 28 to 4 bytes.
590 Reviewed by Antti Koivisto.
592 * loader/ResourceLoaderOptions.h:
594 2014-01-14 Andreas Kling <akling@apple.com>
596 Pack ResourceError harder.
597 <https://webkit.org/b/126969>
599 Re-arrange the members of ResourceError to reduce padding,
600 shrinking it by 8 bytes.
602 Reviewed by Antti Koivisto.
604 * platform/network/ResourceErrorBase.h:
605 (WebCore::ResourceErrorBase::ResourceErrorBase):
607 2014-01-14 Andreas Kling <akling@apple.com>
609 Pack RenderLayer harder.
610 <https://webkit.org/b/126967>
612 Re-arrange the members of ScrollableArea a bit so that RenderLayer
613 can combine its bitfields with the ones in ScrollableArea.
614 This makes RenderLayer fit into a snugger size class, saving 32 bytes
617 296 kB progression on Membuster3.
619 Reviewed by Antti Koivisto.
621 * platform/ScrollableArea.cpp:
622 * platform/ScrollableArea.h:
624 Put bitfield members at the end of ScrollableArea so inheriting
625 classes can synergize with the padding.
627 * rendering/RenderLayer.h:
629 Make m_blendMode a bitfield to avoid bloating the class.
631 2014-01-13 Tim Horton <timothy_horton@apple.com>
633 iOS WebCore build fixes
635 Add WebKit and WebKit2 as allowable clients of WebCore.
637 * Configurations/WebCore.xcconfig:
639 2014-01-13 Tim Horton <timothy_horton@apple.com>
641 iOS WebKit2 build fixes, part 1
643 * WebCore.xcodeproj/project.pbxproj:
644 Move some headers to 'private', from 'project'.
646 2014-01-13 Commit Queue <commit-queue@webkit.org>
648 Unreviewed, rolling out r161907.
649 http://trac.webkit.org/changeset/161907
650 https://bugs.webkit.org/show_bug.cgi?id=126963
652 fast/canvas/webgl/webgl-compressed-texture-size-limit.html
653 fails on many bots (Requested by ap on #webkit).
655 * html/canvas/WebGLRenderingContext.cpp:
656 (WebCore::WebGLRenderingContext::validateTexFuncLevel):
658 2014-01-13 David Kilzer <ddkilzer@apple.com>
660 Fix typedef of DragDataRef from id back to id<NSDraggingInfo>
661 <http://webkit.org/b/126958>
662 <rdar://problem/14814649>
664 Reviewed by Mark Rowe.
666 * WebCore.exp.in: Export different symbols based on
667 __has_feature(objc_protocol_qualifier_mangling) since clang
668 mangles the type differently with that change.
670 * platform/DragData.h:
671 * platform/mac/DragDataMac.mm:
672 (WebCore::DragData::DragData):
673 - Revert r154493 by switching back to id<NSDraggingInfo>.
675 2014-01-13 Commit Queue <commit-queue@webkit.org>
677 Unreviewed, rolling out r161939.
678 http://trac.webkit.org/changeset/161939
679 https://bugs.webkit.org/show_bug.cgi?id=126956
681 didn't work with mac, of course (Requested by thorton on
684 * WebCore.xcodeproj/project.pbxproj:
686 2014-01-13 Tim Horton <timothy_horton@apple.com>
688 iOS WebKit2 build fixes
690 * WebCore.xcodeproj/project.pbxproj:
691 Make some headers private instead of project for WK2's use.
693 2014-01-13 Simon Fraser <simon.fraser@apple.com>
695 Make NetworkStateNotifier.h a private header, needed by iOS.
697 * WebCore.xcodeproj/project.pbxproj:
699 2014-01-13 Simon Fraser <simon.fraser@apple.com>
701 More work towards getting iOS WK1 building.
703 Some more Private headers for iOS.
705 * WebCore.xcodeproj/project.pbxproj:
707 2014-01-13 Myles C. Maxfield <mmaxfield@apple.com>
709 Highlighting password field then making a Sticky Note via Safari Services exposes password
710 https://bugs.webkit.org/show_bug.cgi?id=126946
712 Reviewed by Enrica Casucci.
714 Using the Services menu has a slightly different codepath than Editor::copy() does. This
715 patch duplicates the canCopy() check that Editor::copy() does.
717 Testing is not possible because the Services menu is not accessible to our tests.
719 * editing/mac/EditorMac.mm:
720 (WebCore::Editor::stringSelectionForPasteboard):
721 (WebCore::Editor::stringSelectionForPasteboardWithImageAltText):
722 (WebCore::Editor::dataSelectionForPasteboard):
724 2014-01-13 Brent Fulgham <bfulgham@apple.com>
726 [WebGL] Crash due to forceLostContext
727 https://bugs.webkit.org/show_bug.cgi?id=126947
729 Reviewed by Dean Jackson.
731 Covered by webgl/conformance/textures/origin-clean-conformance.html.
733 * html/canvas/WebGLRenderingContext.cpp:
734 (WebCore::WebGLRenderingContext::isContextLost): Make const.
735 (WebCore::WebGLRenderingContext::platformLayer): Don't attempt to use
737 * html/canvas/WebGLRenderingContext.h: isContextLost should be const.
739 2014-01-13 Martin Robinson <mrobinson@igalia.com>
741 [GTK][CMake] WebCorePlatform build can sometimes fail due to missing generated headers
742 https://bugs.webkit.org/show_bug.cgi?id=126911
744 Reviewed by Daniel Bates.
746 * PlatformGTK.cmake: Add an explicit dependency from WebCorePlatform to WebCore.
748 2014-01-13 Benjamin Poulain <benjamin@webkit.org>
750 Use the Selector Code Generator for resolving style
751 https://bugs.webkit.org/show_bug.cgi?id=126199
753 Reviewed by Ryosuke Niwa.
755 * css/ElementRuleCollector.cpp:
756 (WebCore::ElementRuleCollector::ruleMatches):
759 2014-01-13 Benjamin Poulain <benjamin@webkit.org>
761 Update the SelectorQuery code using compiled selector after r161196
762 https://bugs.webkit.org/show_bug.cgi?id=126860
764 Reviewed by Andreas Kling.
766 Update tree traversal code to the current traversal functions.
768 * dom/SelectorQuery.cpp:
769 (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
770 (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
772 2014-01-13 Simon Fraser <simon.fraser@apple.com>
774 Various iOS WebKit1 build fixes.
776 * WebCore.xcodeproj/project.pbxproj: iOS WebKit1 needs various
777 headers to be Private.
779 2014-01-13 Andreas Kling <akling@apple.com>
781 Map RootInlineBox to containing region via bit+hashmap.
782 <https://webkit.org/b/126917>
784 The vas majority of RootInlineBox objects don't have a containing
785 RenderRegion, so let's store that in a bit+hashmap configuration
786 instead of having a dedicated pointer member for it.
788 148 kB progression on Membuster3.
790 Reviewed by Antti Koivisto.
792 * rendering/InlineFlowBox.h:
793 (WebCore::InlineFlowBox::InlineFlowBox):
794 * rendering/RootInlineBox.cpp:
795 (WebCore::RootInlineBox::RootInlineBox):
797 Added m_hasContainingRegion bit.
799 (WebCore::containingRegionMap):
801 Global map between RootInlineBox and RenderRegion.
803 (WebCore::RootInlineBox::~RootInlineBox):
805 Remove self from aforementioned global map if needed.
807 (WebCore::RootInlineBox::paint):
809 Tweak a condition to avoid double hash lookup.
811 * rendering/RootInlineBox.h:
812 (WebCore::RootInlineBox::containingRegion):
813 (WebCore::RootInlineBox::clearContainingRegion):
814 (WebCore::RootInlineBox::setContainingRegion):
816 Store the containing region in a bit+hashmap.
818 2014-01-13 Brent Fulgham <bfulgham@apple.com>
820 [WebGL] Invalid range checking in WebGLRenderingContext::validateTexFuncLevel
821 https://bugs.webkit.org/show_bug.cgi?id=126925
823 Reviewed by Dean Jackson.
825 Added fast/canvas/webgl/webgl-compressed-texture-size-limit.html.
827 * html/canvas/WebGLRenderingContext.cpp:
828 (WebCore::WebGLRenderingContext::validateTexFuncLevel): Avoid off-by-one error
830 2014-01-13 Daniel Bates <dabates@apple.com>
832 Add uint8_t specialization for WebCore::writeLittleEndian()
833 https://bugs.webkit.org/show_bug.cgi?id=126924
835 Reviewed by Darin Adler.
837 Specialize WebCore::writeLittleEndian() for datatype uint8_t so as to avoid
838 a compiler warning when right shifting a uint8_t by 8 because the result of
839 such a computation is undefined.
841 * bindings/js/SerializedScriptValue.cpp:
842 (WebCore::writeLittleEndian<uint8_t>): Added.
844 2014-01-13 Daniel Bates <dabates@apple.com>
846 r161638 broke the Windows build
847 https://bugs.webkit.org/show_bug.cgi?id=126916
849 * DerivedSources.make:
851 2014-01-13 Eric Carlson <eric.carlson@apple.com>
853 Allow MediaSessionManager to restrict media playback
854 https://bugs.webkit.org/show_bug.cgi?id=126780
856 Reviewed by Jer Noble.
858 Test: media/video-concurrent-playback.html
860 * WebCore.exp.in: Export functions needed by Internals.
862 Add HTMLMediaSession.
863 * WebCore.xcodeproj/project.pbxproj:
865 * GNUmakefile.list.am:
866 * WebCore.vcxproj/WebCore.vcxproj:
867 * WebCore.vcxproj/WebCore.vcxproj.filters:
868 * WebCore.xcodeproj/project.pbxproj:
870 Add a media session object to manage HTMLMediaElement restrictions.
871 * html/HTMLMediaSession.cpp: Added.
872 * html/HTMLMediaSession.h: Added.
874 Move media restriction management to a MediaSession.
875 * html/HTMLMediaElement.cpp:
876 (WebCore::HTMLMediaElement::HTMLMediaElement): Use the media session to manage restrictions.
877 (WebCore::HTMLMediaElement::parseAttribute): Ditto.
878 (WebCore::HTMLMediaElement::insertedInto): Ditto.
879 (WebCore::HTMLMediaElement::parseAttribute): Ditto.
880 (WebCore::HTMLMediaElement::loadInternal): Ditto.
881 (WebCore::HTMLMediaElement::loadResource): Ditto.
882 (WebCore::HTMLMediaElement::setReadyState): Ditto.
883 (WebCore::HTMLMediaElement::autoplay): Ditto.
884 (WebCore::HTMLMediaElement::play): Ditto.
885 (WebCore::HTMLMediaElement::pause): Ditto
886 (WebCore::HTMLMediaElement::pauseInternal): Ditto
887 (WebCore::HTMLMediaElement::suspend): Ditto
888 (WebCore::HTMLMediaElement::resume): Ditto.
889 (WebCore::HTMLMediaElement::updatePlayState): Tell media session playback is about to start.
890 (WebCore::HTMLMediaElement::deliverNotification): Ditto.
891 (WebCore::HTMLMediaElement::webkitShowPlaybackTargetPicker): Ditto.
892 (WebCore::HTMLMediaElement::mediaPlayerIsFullscreenPermitted): Ditto.
893 (WebCore::HTMLMediaElement::removeBehaviorsRestrictionsAfterFirstUserGesture): Ditto.
894 (WebCore::HTMLMediaElement::pausePlayback): New, allows the media session to pause playback.
895 * html/HTMLMediaElement.h:
897 * html/HTMLVideoElement.cpp:
898 (WebCore::HTMLVideoElement::webkitEnterFullscreen): Use the media session to manage restrictions.
900 * platform/audio/MediaSession.cpp:
901 (WebCore::MediaSession::beginInterruption): Add logging.
902 (WebCore::MediaSession::endInterruption): Ditto.
903 (WebCore::MediaSession::pauseSession): New, allows the session manager to pause playback.
904 * platform/audio/MediaSession.h:
906 Add per-media type restrictions.
907 * platform/audio/MediaSessionManager.cpp:
908 (WebCore::MediaSessionManager::MediaSessionManager): Initialize restrictions.
909 (WebCore::MediaSessionManager::addRestriction): New.
910 (WebCore::MediaSessionManager::removeRestriction): New.
911 (WebCore::MediaSessionManager::restrictions): New.
912 (WebCore::MediaSessionManager::sessionWillBeginPlayback): New. If only one session if the same
913 type is allowed to play, pause all others.
914 * platform/audio/MediaSessionManager.h:
916 * platform/audio/ios/MediaSessionManagerIOS.h: Added.
917 * platform/audio/ios/MediaSessionManagerIOS.mm: Added.
918 (WebCore::MediaSessionManager::sharedManager):
919 (WebCore::m_objcObserver):
920 (-[WebAVAudioSessionHelper initWithCallback:]):
921 (-[WebAVAudioSessionHelper dealloc]):
922 (-[WebAVAudioSessionHelper interruption:]):
924 * platform/audio/mac/AudioDestinationMac.h: Add pausePlayback.
926 Allow tests to set media session restrictions.
927 * testing/Internals.cpp:
928 * testing/Internals.h:
929 * testing/Internals.idl:
931 2014-01-13 Alexey Proskuryakov <ap@apple.com>
935 * xml/XMLHttpRequestProgressEventThrottle.cpp:
936 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
938 2014-01-13 Alexey Proskuryakov <ap@apple.com>
942 * xml/XMLHttpRequestProgressEventThrottle.cpp:
943 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent):
945 2014-01-13 Simon Fraser <simon.fraser@apple.com>
947 Fix copy of SystemMemory.h in iOS WebKit build.
949 Move SystemMemory.h from platform/SystemMemory.h to platform/ios/SystemMemory.h.
950 Add it to the project file.
951 Make it a Private header.
952 Add PLATFORM(IOS) #idfefs around its contents.
954 * WebCore.xcodeproj/project.pbxproj:
955 * platform/ios/SystemMemory.h: Renamed from Source/WebCore/platform/SystemMemory.h.
957 2014-01-13 Youenn Fablet <youennf@gmail.com>
959 Dispatch a progress event before dispatching abort, error or timeout event
960 https://bugs.webkit.org/show_bug.cgi?id=126575
962 Reviewed by Alexey Proskuryakov.
964 Added sending of progress event after readystatechange event (switching to DONE state) in case of abort, error or timeout.
965 Fixed assertions in XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload.
967 * xml/XMLHttpRequest.cpp:
968 (WebCore::XMLHttpRequest::dispatchErrorEvents): added sending of progress event before the specific error event
969 * xml/XMLHttpRequestProgressEventThrottle.cpp:
970 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): fixed assertion
971 * xml/XMLHttpRequestUpload.cpp:
972 (WebCore::XMLHttpRequestUpload::dispatchProgressEvent): fixed assertion
974 2014-01-13 Carlos Garcia Campos <cgarcia@igalia.com>
976 [SOUP] Add SoupNetworkSession class to wrap a SoupSession
977 https://bugs.webkit.org/show_bug.cgi?id=126813
979 Reviewed by Gustavo Noronha Silva.
981 Add SoupNetworkSession class that wraps a SoupSession and move all
982 the code related to the SoupSession from ResourceHandle to
983 SoupNetworkSession, including the static methods to get the
984 default session and create testing and private sessions.
986 * GNUmakefile.list.am: Add new files to compilation.
987 * PlatformEfl.cmake: Ditto.
988 * PlatformGTK.cmake: Ditto.
989 * platform/network/NetworkStorageSession.h: Use SoupNetworkSession
990 instead of SoupSession.
991 * platform/network/ResourceHandle.h:
992 * platform/network/soup/CookieJarSoup.cpp:
993 (WebCore::cookieJarForSession): Use SoupNetworkSession to get the
995 * platform/network/soup/DNSSoup.cpp:
996 (WebCore::DNSResolveQueue::platformResolve): Ditto.
997 * platform/network/soup/NetworkStorageSessionSoup.cpp:
998 (WebCore::NetworkStorageSession::NetworkStorageSession): Use
999 SoupNetworkSession instead of SoupSession.
1000 (WebCore::NetworkStorageSession::~NetworkStorageSession):
1001 (WebCore::NetworkStorageSession::defaultStorageSession): Create a
1002 NetworkStorageSession with a NULL SoupNetworkSession which means
1003 that the default SoupNetworkSession will be used.
1004 (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
1005 Call SoupNetworkSession::createPrivateBrowsingSession() to create
1006 the private session.
1007 (WebCore::NetworkStorageSession::switchToNewTestingSession): Call
1008 SoupNetworkSession::createTestingSession() to create the testing
1010 (WebCore::NetworkStorageSession::soupNetworkSession): Return the
1011 SoupNetworkSession or the default one.
1012 (WebCore::NetworkStorageSession::setSoupNetworkSession): Set a new
1014 * platform/network/soup/ResourceHandleSoup.cpp:
1015 (WebCore::sessionFromContext): Use SoupNetworkSession to get the
1017 (WebCore::ResourceHandleInternal::soupSession): Simply call
1018 sessionFromContext(), since ensureSessionIsInitialized() is no
1019 longer needed, because the SoupSession are now initialized in the
1020 SoupNetworkSession constructor.
1021 (WebCore::ResourceHandle::didStartRequest): Function to notify the
1022 ResourceHandle that current request has just started for web timing.
1023 * platform/network/soup/SoupNetworkSession.cpp: Added.
1024 (WebCore::soupLogPrinter): Logger callback.
1025 (WebCore::SoupNetworkSession::defaultSession): Return a reference
1026 to the default SoupNetworkSession.
1027 (WebCore::SoupNetworkSession::createPrivateBrowsingSession):
1028 Create a new private session.
1029 (WebCore::SoupNetworkSession::createTestingSession): Create a new
1031 (WebCore::SoupNetworkSession::createForSoupSession): Create a new
1032 SoupNetworkSession for the given SoupSession.
1033 (WebCore::authenticateCallback): Callback emitted by the
1034 SoupSession when the request needs authentication.
1035 (WebCore::requestStartedCallback): Callback emitted by the
1036 SoupSession when as request has just started.
1037 (WebCore::SoupNetworkSession::SoupNetworkSession):
1038 (WebCore::SoupNetworkSession::~SoupNetworkSession):
1039 (WebCore::SoupNetworkSession::setupLogger): Helper private
1040 function to setup the logger.
1041 (WebCore::SoupNetworkSession::setCookieJar): Set a new CookieJar
1042 in the session replacing the existing one.
1043 (WebCore::SoupNetworkSession::cookieJar): Return the current
1044 CookieJar of the session.
1045 (WebCore::SoupNetworkSession::setCache): Set a disk cache.
1046 (WebCore::SoupNetworkSession::cache): Return the current disk cache.
1047 (WebCore::SoupNetworkSession::setSSLPolicy): Set the SSL policy.
1048 (WebCore::SoupNetworkSession::sslPolicy): Get the current SSL policy.
1049 (WebCore::SoupNetworkSession::setHTTPProxy): Set the HTTP proxy.
1050 (WebCore::SoupNetworkSession::httpProxy): Get the current HTTP proxy.
1051 (WebCore::SoupNetworkSession::setupHTTPProxyFromEnvironment): Set
1052 the HTTP proxy using the environment variables.
1053 (WebCore::buildAcceptLanguages): Helper function build the accept
1054 language string in the format expected by soup (RFC 2616).
1055 (WebCore::SoupNetworkSession::setAcceptLanguages): Set the accept
1056 language for the given list of languages.
1057 * platform/network/soup/SoupNetworkSession.h: Added.
1058 (WebCore::SoupNetworkSession::soupSession): Return the SoupSession.
1060 2014-01-13 Brent Fulgham <bfulgham@apple.com>
1062 [WebGL] Error messages should use source code labels, not internal mangled symbols.
1063 https://bugs.webkit.org/show_bug.cgi?id=126832
1065 Reviewed by Dean Jackson.
1067 Revised fast/canvas/webgl/glsl-conformance.html.
1069 * platform/graphics/ANGLEWebKitBridge.cpp:
1070 (WebCore::getSymbolInfo): Correct missing 'break'.
1071 (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
1073 * platform/graphics/GraphicsContext3D.h: Add new declarations.
1074 * platform/graphics/filters/CustomFilterValidatedProgram.cpp: Add case
1075 for SHADER_SYMBOL_TYPE_VARYING. This is a no-op to match existing
1077 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1078 (WebCore::GraphicsContext3D::compileShader): Demangle log output.
1079 (WebCore::GraphicsContext3D::mappedSymbolName): Added.
1080 (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
1081 (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
1082 (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
1084 2014-01-13 David Kilzer <ddkilzer@apple.com>
1086 [iOS] Include RenderElement.h to fix BaseChooserOnlyDateAndTimeInputType.cpp
1088 Fixes the following build failure:
1090 Undefined symbols for architecture x86_64:
1091 "__ZNK7WebCore13ContainerNode8rendererEv", referenced from:
1092 __ZN7WebCore35BaseChooserOnlyDateAndTimeInputType22handleDOMActivateEventEPNS_5EventE in BaseChooserOnlyDateAndTimeInputType.o
1094 * html/BaseChooserOnlyDateAndTimeInputType.cpp: Include
1097 2014-01-13 Andy Estes <aestes@apple.com>
1099 [iOS] Build Fix: copy iOS-specific generated headers
1101 * Configurations/WebCore.xcconfig: Excluded DOMTouch* and DOMGesture* headers on Mac.
1102 * WebCore.xcodeproj/project.pbxproj:
1104 2014-01-13 Zalan Bujtas <zalan@apple.com>
1106 Enable SUBPIXEL_LAYOUT on Mac
1107 <https://webkit.org/b/126283>
1109 Reviewed by Simon Fraser.
1111 * Configurations/FeatureDefines.xcconfig:
1113 2014-01-13 Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com>
1115 REGRESSION(r161715): Use of uninitialized value $ENV{"PLATFORM_NAME"}
1116 https://bugs.webkit.org/show_bug.cgi?id=126873
1118 Reviewed by Csaba Osztrogonác.
1120 * bindings/scripts/CodeGeneratorObjC.pm:
1121 * bindings/scripts/preprocessor.pm:
1122 (applyPreprocessor):
1124 2014-01-13 Andreas Kling <akling@apple.com>
1126 CTTE: Autoscroll renderer is always a RenderBox.
1127 <https://webkit.org/b/126884>
1129 Reviewed by Antti Koivisto.
1131 * page/EventHandler.h:
1132 * page/EventHandler.cpp:
1133 (WebCore::EventHandler::autoscrollRenderer):
1135 Make autoscrollRenderer() return a RenderBox*.
1137 * rendering/RenderObject.cpp:
1138 (WebCore::RenderObject::willBeDestroyed):
1139 * rendering/RenderBox.cpp:
1140 (WebCore::RenderBox::willBeDestroyed):
1142 Only check if the autoscroll renderer is being torn down
1143 in RenderBox::willBeDestroyed() since it's not relevant for
1144 other renderer types.
1146 2014-01-13 László Langó <llango.u-szeged@partner.samsung.com>
1148 Text should be constructable.
1149 https://bugs.webkit.org/show_bug.cgi?id=115640
1151 Reviewed by Csaba Osztrogonác.
1153 http://dom.spec.whatwg.org/#interface-text
1154 Make Text constructable so that one can do "new Text('abc')"
1155 instead of "document.createTexte('abc')".
1157 Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/cdd5a914daf3862379a5ce4596149bd690d0fa08
1159 Test: fast/dom/Text/text-constructor.html
1162 (WebCore::Text::create):
1166 2014-01-13 Zan Dobersek <zdobersek@igalia.com>
1168 Avoid unnecessary copies of AccessibilityObject::AccessibilityChildrenVector
1169 https://bugs.webkit.org/show_bug.cgi?id=126876
1171 Reviewed by Andreas Kling.
1173 AccessibilityObject::children() returns a reference to the Vector of that AccessibilityObject's children.
1174 The majority of callsites stores the return value in a temporary value instead of a reference, causing
1175 a copy each time. A reference to the return value should be used instead.
1177 * accessibility/AXObjectCache.cpp:
1178 (WebCore::AXObjectCache::focusedImageMapUIElement):
1179 * accessibility/AccessibilityARIAGrid.cpp:
1180 (WebCore::AccessibilityARIAGrid::addRowDescendant):
1181 * accessibility/AccessibilityARIAGridCell.cpp:
1182 (WebCore::AccessibilityARIAGridCell::rowIndexRange):
1183 (WebCore::AccessibilityARIAGridCell::columnIndexRange):
1184 * accessibility/AccessibilityARIAGridRow.cpp:
1185 (WebCore::AccessibilityARIAGridRow::headerObject):
1186 * accessibility/AccessibilityListBox.cpp:
1187 (WebCore::AccessibilityListBox::setSelectedChildren):
1188 * accessibility/AccessibilityListBox.h:
1189 * accessibility/AccessibilityNodeObject.cpp:
1190 (WebCore::AccessibilityNodeObject::insertChild):
1191 (WebCore::AccessibilityNodeObject::selectedRadioButton):
1192 (WebCore::AccessibilityNodeObject::selectedTabItem):
1193 * accessibility/AccessibilityObject.cpp:
1194 (WebCore::appendChildrenToArray):
1195 (WebCore::AccessibilityObject::ariaTreeRows):
1196 (WebCore::AccessibilityObject::ariaTreeItemContent):
1197 (WebCore::AccessibilityObject::ariaTreeItemDisclosedRows):
1198 * accessibility/AccessibilityRenderObject.cpp:
1199 (WebCore::AccessibilityRenderObject::accessibilityImageMapHitTest):
1200 (WebCore::AccessibilityRenderObject::addRemoteSVGChildren):
1201 (WebCore::AccessibilityRenderObject::addHiddenChildren):
1202 (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
1203 (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
1204 (WebCore::AccessibilityRenderObject::tabChildren):
1205 (WebCore::AccessibilityRenderObject::mathRadicandObject):
1206 (WebCore::AccessibilityRenderObject::mathRootIndexObject):
1207 (WebCore::AccessibilityRenderObject::mathNumeratorObject):
1208 (WebCore::AccessibilityRenderObject::mathDenominatorObject):
1209 (WebCore::AccessibilityRenderObject::mathUnderObject):
1210 (WebCore::AccessibilityRenderObject::mathOverObject):
1211 (WebCore::AccessibilityRenderObject::mathBaseObject):
1212 (WebCore::AccessibilityRenderObject::mathSubscriptObject):
1213 (WebCore::AccessibilityRenderObject::mathSuperscriptObject):
1214 * accessibility/AccessibilityTable.cpp:
1215 (WebCore::AccessibilityTable::cellForColumnAndRow):
1216 * accessibility/AccessibilityTableColumn.cpp:
1217 (WebCore::AccessibilityTableColumn::headerObject):
1218 * accessibility/AccessibilityTableRow.cpp:
1219 (WebCore::AccessibilityTableRow::headerObject):
1220 * accessibility/atk/AXObjectCacheAtk.cpp:
1221 (WebCore::getListObject):
1222 (WebCore::notifyChildrenSelectionChange):
1223 * accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp:
1224 (webkitAccessibleHypertextGetLink):
1225 (webkitAccessibleHypertextGetNLinks):
1226 * accessibility/atk/WebKitAccessibleInterfaceSelection.cpp:
1227 (listObjectForSelection):
1229 (webkitAccessibleSelectionSelectAllSelection):
1230 * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
1231 (getNChildrenForTable):
1233 (webkitAccessibleRefChild):
1234 (getIndexInParentForCellInRow):
1235 (getInterfaceMaskFromObject):
1236 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1237 (-[WebAccessibilityObjectWrapper accessibilityElementAtIndex:]):
1238 (-[WebAccessibilityObjectWrapper indexOfAccessibilityElement:]):
1239 (-[WebAccessibilityObjectWrapper containsUnnaturallySegmentedChildren]):
1240 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1241 (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
1243 2014-01-13 László Langó <llango.u-szeged@partner.samsung.com>
1245 Comment should be consructable.
1246 https://bugs.webkit.org/show_bug.cgi?id=115642
1248 Reviewed by Andreas Kling.
1250 http://dom.spec.whatwg.org/#comment
1251 This allows us to do `new Comment('abc')` instead of `document.createComment('abc')`.
1253 Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/06e4a37f6b11348606de5405edac1ada97499d2a%5E%21
1255 Test: fast/dom/Comment/comment-constructor.html
1258 (WebCore::Comment::create):
1262 2014-01-13 Commit Queue <commit-queue@webkit.org>
1264 Unreviewed, rolling out r161808.
1265 http://trac.webkit.org/changeset/161808
1266 https://bugs.webkit.org/show_bug.cgi?id=126874
1268 This patch make several files to be always regenerated on
1269 every make (Requested by KaL on #webkit).
1272 * bindings/gobject/GNUmakefile.am:
1274 2014-01-12 Commit Queue <commit-queue@webkit.org>
1276 Unreviewed, rolling out r161843.
1277 http://trac.webkit.org/changeset/161843
1278 https://bugs.webkit.org/show_bug.cgi?id=126871
1280 Caused CSS custom filter tests to assert (Requested by smfr on
1283 * platform/graphics/ANGLEWebKitBridge.cpp:
1284 (WebCore::getSymbolInfo):
1285 (WebCore::ANGLEWebKitBridge::compileShaderSource):
1286 * platform/graphics/GraphicsContext3D.h:
1287 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1288 (WebCore::GraphicsContext3D::compileShader):
1289 (WebCore::GraphicsContext3D::getProgramInfoLog):
1290 (WebCore::GraphicsContext3D::getShaderInfoLog):
1292 2014-01-12 Commit Queue <commit-queue@webkit.org>
1294 Unreviewed, rolling out r161840.
1295 http://trac.webkit.org/changeset/161840
1296 https://bugs.webkit.org/show_bug.cgi?id=126870
1298 Caused jsscore and layout test failures (Requested by smfr on
1301 * bindings/objc/WebScriptObject.mm:
1302 (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
1303 * editing/CompositeEditCommand.cpp:
1304 (WebCore::containsOnlyWhitespace):
1305 * editing/TypingCommand.cpp:
1306 (WebCore::TypingCommand::insertText):
1307 * editing/VisibleUnits.cpp:
1308 (WebCore::startOfParagraph):
1309 (WebCore::endOfParagraph):
1310 * html/parser/HTMLParserIdioms.cpp:
1311 (WebCore::stripLeadingAndTrailingHTMLSpaces):
1312 (WebCore::parseHTMLNonNegativeInteger):
1313 * inspector/ContentSearchUtils.cpp:
1314 (WebCore::ContentSearchUtils::createSearchRegexSource):
1315 * inspector/InspectorStyleSheet.cpp:
1316 (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters):
1317 * inspector/InspectorStyleTextEditor.cpp:
1318 (WebCore::InspectorStyleTextEditor::insertProperty):
1319 (WebCore::InspectorStyleTextEditor::internalReplaceProperty):
1320 * platform/Length.cpp:
1321 (WebCore::newCoordsArray):
1322 * platform/LinkHash.cpp:
1323 (WebCore::visitedLinkHash):
1324 * platform/graphics/Color.cpp:
1325 (WebCore::Color::parseHexColor):
1326 (WebCore::Color::Color):
1327 * platform/graphics/TextRun.h:
1328 (WebCore::TextRun::TextRun):
1329 * platform/text/TextEncodingRegistry.cpp:
1330 (WebCore::atomicCanonicalTextEncodingName):
1331 * rendering/RenderBlock.cpp:
1332 (WebCore::RenderBlock::constructTextRun):
1333 * rendering/RenderCombineText.cpp:
1334 (WebCore::RenderCombineText::width):
1335 * svg/SVGFontElement.cpp:
1336 (WebCore::SVGFontElement::registerLigaturesInGlyphCache):
1337 * xml/XPathFunctions.cpp:
1338 (WebCore::XPath::FunId::evaluate):
1339 * xml/XPathNodeSet.h:
1341 2014-01-12 Jinwoo Song <jinwoo7.song@samsung.com>
1343 Fix build warnings by unused parameter
1344 https://bugs.webkit.org/show_bug.cgi?id=126867
1346 Reviewed by Gyuyoung Kim.
1348 * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
1349 (WebCore::IDBServerConnectionLevelDB::changeDatabaseVersion): Remove unused parameter 'operation'.
1351 2014-01-12 Brent Fulgham <bfulgham@apple.com>
1353 Unreviewed build fix for WinCairo.
1355 * WebCore.vcxproj/WebCoreCairo.props: Add missing include path
1356 to locate SelectorCompiler.h.
1358 2014-01-12 Maciej Stachowiak <mjs@apple.com>
1360 Fix iOS build breakage from http://trac.webkit.org/changeset/161844
1361 https://bugs.webkit.org/show_bug.cgi?id=126866
1363 Reviewed by Simon Fraser.
1365 * platform/text/TextBreakIteratorICU.cpp:
1366 (WebCore::cursorMovementIterator): Use initializeIterator instead of createSharedIterator,
1367 which does not exist.
1369 2014-01-12 Darin Adler <darin@apple.com>
1371 Add PLATFORM(COCOA) and USE(FOUNDATION)
1372 https://bugs.webkit.org/show_bug.cgi?id=126859
1374 Reviewed by Anders Carlsson.
1376 * config.h: Use PLATFORM(COCOA) instead of PLATFORM(MAC) || PLATFORM(IOS)
1377 to set USE(FILE_LOCK). Would be nice to use OS(DARWIN), but that would be
1378 a change in behavior that might be incorrect. Removed bogus comments in
1379 the USE(NEW_THEME) setting code. Removed redundant code to set USE(CA),
1380 which exactly duplicates code that already exists in Platform.h.
1382 2014-01-12 Darin Adler <darin@apple.com>
1384 Add deprecatedCharacters as a synonym for characters and convert most call sites
1385 https://bugs.webkit.org/show_bug.cgi?id=126858
1387 Reviewed by Anders Carlsson.
1389 * Modules/indexeddb/IDBKeyPath.cpp:
1390 (WebCore::IDBKeyPathLexer::IDBKeyPathLexer):
1391 * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
1392 (WebCore::ThreadableWebSocketChannelClientWrapper::setSubprotocol):
1393 (WebCore::ThreadableWebSocketChannelClientWrapper::setExtensions):
1394 * accessibility/AccessibilityObject.cpp:
1395 (WebCore::AccessibilityObject::hasMisspelling):
1396 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1397 (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):
1398 * bindings/js/SerializedScriptValue.cpp:
1399 (WebCore::CloneSerializer::serialize):
1400 (WebCore::CloneSerializer::write):
1401 * dom/CharacterData.cpp:
1402 (WebCore::CharacterData::parserAppendData):
1404 (WebCore::Document::parseQualifiedName):
1405 * editing/Editor.cpp:
1406 (WebCore::Editor::misspelledWordAtCaretOrRange):
1407 (WebCore::Editor::misspelledSelectionString):
1408 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
1409 * editing/TextCheckingHelper.cpp:
1410 (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar):
1411 (WebCore::TextCheckingHelper::findFirstBadGrammar):
1412 (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange):
1413 * editing/TextCheckingHelper.h:
1414 (WebCore::TextCheckingParagraph::textDeprecatedCharacters):
1415 * editing/TextIterator.cpp:
1416 (WebCore::collapsedSpaceLength):
1417 (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
1418 (WebCore::containsKanaLetters):
1419 (WebCore::SearchBuffer::SearchBuffer):
1420 * editing/TextIterator.h:
1421 (WebCore::TextIterator::characters):
1422 * editing/VisiblePosition.cpp:
1423 (WebCore::VisiblePosition::characterAfter):
1424 * editing/VisibleUnits.cpp:
1425 (WebCore::wordBreakIteratorForMinOffsetBoundary):
1426 (WebCore::wordBreakIteratorForMaxOffsetBoundary):
1427 (WebCore::visualWordPosition):
1428 (WebCore::previousBoundary):
1429 (WebCore::nextBoundary):
1430 * fileapi/WebKitBlobBuilder.cpp:
1431 (WebCore::BlobBuilder::append):
1432 * html/FormDataList.cpp:
1433 (WebCore::FormDataList::appendString):
1434 * html/canvas/CanvasRenderingContext2D.cpp:
1435 (WebCore::normalizeSpaces):
1436 * html/parser/HTMLParserIdioms.cpp:
1437 (WebCore::parseImagesWithScaleFromSrcsetAttribute):
1438 * html/parser/HTMLTreeBuilder.cpp:
1439 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer):
1440 * loader/appcache/ManifestParser.cpp:
1441 (WebCore::parseManifest):
1442 * page/ContentSecurityPolicy.cpp:
1443 (WebCore::isSourceListNone):
1444 (WebCore::CSPSourceList::parse):
1445 (WebCore::NonceDirective::parse):
1446 (WebCore::MediaListDirective::parse):
1447 (WebCore::CSPDirectiveList::parse):
1448 (WebCore::CSPDirectiveList::parseReportURI):
1449 (WebCore::CSPDirectiveList::parseReflectedXSS):
1450 (WebCore::ContentSecurityPolicy::didReceiveHeader):
1451 * page/PageSerializer.cpp:
1452 (WebCore::PageSerializer::serializeFrame):
1453 (WebCore::PageSerializer::serializeCSSStyleSheet):
1454 * platform/Length.cpp:
1455 (WebCore::newCoordsArray):
1456 (WebCore::newLengthArray):
1457 * platform/LinkHash.cpp:
1458 (WebCore::visitedURL):
1459 (WebCore::visitedLinkHash):
1460 * platform/SharedBuffer.cpp:
1461 (WebCore::utf8Buffer):
1463 (WebCore::URL::port):
1464 (WebCore::encodeHostnames):
1465 * platform/graphics/StringTruncator.cpp:
1466 (WebCore::centerTruncateToBuffer):
1467 (WebCore::rightTruncateToBuffer):
1468 (WebCore::rightClipToCharacterBuffer):
1469 (WebCore::rightClipToWordBuffer):
1470 (WebCore::leftTruncateToBuffer):
1471 (WebCore::truncateString):
1472 (WebCore::StringTruncator::width):
1473 * platform/graphics/TextRun.h:
1474 (WebCore::TextRun::TextRun):
1475 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1476 (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
1477 * platform/network/FormDataBuilder.cpp:
1478 (WebCore::FormDataBuilder::addFilenameToMultiPartHeader):
1479 * platform/sql/SQLiteStatement.cpp:
1480 (WebCore::SQLiteStatement::bindBlob):
1481 (WebCore::SQLiteStatement::bindText):
1482 * platform/text/DecodeEscapeSequences.h:
1483 (WebCore::decodeEscapeSequences):
1484 * platform/text/TextBreakIterator.cpp:
1485 (WebCore::numGraphemeClusters):
1486 (WebCore::numCharactersInGraphemeClusters):
1487 * platform/text/TextBreakIteratorICU.cpp:
1488 (WebCore::setUpIteratorWithRules):
1489 * platform/text/TextCodecICU.cpp:
1490 (WebCore::TextCodecICU::encode):
1491 * rendering/RenderBlock.cpp:
1492 (WebCore::RenderBlock::constructTextRun):
1493 * rendering/RenderListMarker.cpp:
1494 (WebCore::RenderListMarker::paint):
1495 * rendering/RenderText.cpp:
1496 (WebCore::maxWordFragmentWidth):
1497 (WebCore::RenderText::computePreferredLogicalWidths):
1498 (WebCore::RenderText::computeCanUseSimpleFontCodePath):
1499 * rendering/RenderText.h:
1500 (WebCore::RenderText::characters):
1501 (WebCore::RenderText::deprecatedCharacters):
1502 * rendering/line/BreakingContextInlineHeaders.h:
1503 (WebCore::tryHyphenating):
1504 * rendering/svg/SVGInlineTextBox.cpp:
1505 (WebCore::SVGInlineTextBox::constructTextRun):
1506 * rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
1507 (WebCore::processRenderSVGInlineText):
1508 * rendering/svg/SVGTextLayoutEngine.cpp:
1509 (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
1510 * rendering/svg/SVGTextMetrics.cpp:
1511 (WebCore::SVGTextMetrics::measureCharacterRange):
1512 (WebCore::SVGTextMetrics::SVGTextMetrics):
1513 * rendering/svg/SVGTextMetricsBuilder.cpp:
1514 (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
1516 (WebCore::SVGAngle::setValueAsString):
1517 * svg/SVGAnimateMotionElement.cpp:
1518 (WebCore::parsePoint):
1519 * svg/SVGAnimationElement.cpp:
1520 (WebCore::parseKeySplines):
1521 * svg/SVGFitToViewBox.cpp:
1522 (WebCore::SVGFitToViewBox::parseViewBox):
1523 * svg/SVGFontData.cpp:
1524 (WebCore::SVGFontData::applySVGGlyphSelection):
1525 * svg/SVGGlyphMap.h:
1526 (WebCore::SVGGlyphMap::addGlyph):
1527 (WebCore::SVGGlyphMap::collectGlyphsForString):
1528 * svg/SVGGlyphRefElement.cpp:
1529 (WebCore::SVGGlyphRefElement::parseAttribute):
1530 * svg/SVGLength.cpp:
1531 (WebCore::SVGLength::setValueAsString):
1532 * svg/SVGLengthList.cpp:
1533 (WebCore::SVGLengthList::parse):
1534 * svg/SVGNumberList.cpp:
1535 (WebCore::SVGNumberList::parse):
1536 * svg/SVGParserUtilities.cpp:
1537 (WebCore::parseNumberFromString):
1538 (WebCore::parseNumberOptionalNumber):
1539 (WebCore::parseRect):
1540 (WebCore::pointsListFromSVGData):
1541 (WebCore::parseGlyphName):
1542 (WebCore::parseKerningUnicodeString):
1543 (WebCore::parseDelimitedString):
1544 * svg/SVGPreserveAspectRatio.cpp:
1545 (WebCore::SVGPreserveAspectRatio::parse):
1546 * svg/SVGStringList.cpp:
1547 (WebCore::SVGStringList::parse):
1548 * svg/SVGTransformList.cpp:
1549 (WebCore::SVGTransformList::parse):
1550 * svg/SVGTransformable.cpp:
1551 (WebCore::SVGTransformable::parseTransformType):
1552 * svg/SVGViewSpec.cpp:
1553 (WebCore::SVGViewSpec::parseViewSpec):
1554 * svg/SVGZoomAndPan.h:
1555 (WebCore::SVGZoomAndPan::parseAttribute):
1556 * xml/XMLHttpRequest.cpp:
1557 (WebCore::XMLHttpRequest::send):
1558 * xml/XSLStyleSheetLibxslt.cpp:
1559 (WebCore::XSLStyleSheet::parseString):
1560 * xml/XSLTUnicodeSort.cpp:
1561 (WebCore::xsltUnicodeSortFunction):
1562 * xml/parser/XMLDocumentParserLibxml2.cpp:
1563 (WebCore::XMLDocumentParser::doWrite):
1564 (WebCore::parseAttributes):
1565 Use deprecatedCharacters instead of characters.
1567 2014-01-12 Darin Adler <darin@apple.com>
1569 Add type checking to isEqual methods
1570 https://bugs.webkit.org/show_bug.cgi?id=126862
1572 Reviewed by Anders Carlsson.
1574 * page/ios/WebEventRegion.mm:
1575 (-[WebEventRegion isEqual:]): Add type checking on the argument.
1576 Add a FIXME about the lack of a hash method override. Formatted to match
1577 the usual WebKit coding style.
1579 2014-01-12 Anders Carlsson <andersca@apple.com>
1581 Try to fix the 32-bit build.
1583 * platform/text/icu/UTextProviderLatin1.cpp:
1584 (WebCore::uTextLatin1Clone):
1585 (WebCore::uTextLatin1Extract):
1586 (WebCore::uTextLatin1MapNativeIndexToUTF16):
1588 2014-01-12 Anders Carlsson <andersca@apple.com>
1590 Remove all uses of AtomicallyInitializedStatic from WebCore
1591 https://bugs.webkit.org/show_bug.cgi?id=126861
1593 Reviewed by Darin Adler.
1595 * Modules/indexeddb/IDBPendingTransactionMonitor.cpp:
1596 (WebCore::transactions):
1597 * fileapi/ThreadableBlobRegistry.cpp:
1598 (WebCore::originMap):
1599 * platform/text/TextEncodingRegistry.cpp:
1600 (WebCore::encodingRegistryMutex):
1601 (WebCore::newTextCodec):
1602 (WebCore::atomicCanonicalTextEncodingName):
1603 (WebCore::dumpTextEncodingNameMap):
1604 * workers/DefaultSharedWorkerRepository.cpp:
1605 (WebCore::DefaultSharedWorkerRepository::instance):
1607 2014-01-12 Anders Carlsson <andersca@apple.com>
1609 Use an std::atomic<uint32_t> when computing IDBDatabase transaction IDs
1610 https://bugs.webkit.org/show_bug.cgi?id=126853
1612 Reviewed by Sam Weinig.
1614 * Modules/indexeddb/IDBDatabase.cpp:
1615 (WebCore::IDBDatabase::nextTransactionId):
1617 2014-01-12 Sam Weinig <sam@webkit.org>
1619 TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
1620 https://bugs.webkit.org/show_bug.cgi?id=126856
1622 Reviewed by Darin Adler.
1624 - Do some initial cleanup before adding complete Latin-1 support.
1626 * platform/text/TextBreakIterator.cpp:
1627 Remove non-ICU acquireLineBreakIterator() implementation.
1629 * platform/text/TextBreakIterator.h:
1630 - Changes acquireLineBreakIterator() to take a StringView.
1632 * platform/text/TextBreakIteratorICU.cpp:
1633 - Refactor iterator initialization and setting of text on the iterator.
1634 - Add support for using a Latin-1 provider (this is not currently used).
1636 * platform/text/icu/UTextProviderLatin1.cpp:
1637 * platform/text/icu/UTextProviderLatin1.h:
1638 - Add back non-context aware Latin-1 provider (from r129662).
1639 - Rename context aware provider.
1641 * platform/text/icu/UTextProviderUTF16.cpp:
1642 * platform/text/icu/UTextProviderUTF16.h:
1643 - Rename context aware provider.
1645 2014-01-12 Brent Fulgham <bfulgham@apple.com>
1647 [WebGL] Error messages should use source code labels, not internal mangled symbols.
1648 https://bugs.webkit.org/show_bug.cgi?id=126832
1650 Reviewed by Dean Jackson.
1652 Revised fast/canvas/webgl/glsl-conformance.html.
1654 * platform/graphics/ANGLEWebKitBridge.cpp:
1655 (WebCore::getSymbolInfo): Correct missing 'break'.
1656 (WebCore::ANGLEWebKitBridge::compileShaderSource): Call 'getSymbolInfo'
1658 * platform/graphics/GraphicsContext3D.h: Add new declarations.
1659 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1660 (WebCore::GraphicsContext3D::compileShader): Demangle log output.
1661 (WebCore::GraphicsContext3D::mappedSymbolName): Added.
1662 (WebCore::GraphicsContext3D::getUnmangledInfoLog): Added.
1663 (WebCore::GraphicsContext3D::getProgramInfoLog): Demangle log output.
1664 (WebCore::GraphicsContext3D::getShaderInfoLog): Demangle log output.
1666 2014-01-12 Dan Bernstein <mitz@apple.com>
1668 Try to fix the Windows build after r161839.
1670 * WebCore.vcxproj/WebCoreCommon.props:
1672 2014-01-12 Darin Adler <darin@apple.com>
1674 Reduce use of String::characters
1675 https://bugs.webkit.org/show_bug.cgi?id=126854
1677 Reviewed by Sam Weinig.
1679 * bindings/objc/WebScriptObject.mm:
1680 (+[WebScriptObject _convertValueToObjcValue:JSC::originRootObject:rootObject:]):
1681 Get rid of unneeded code to turn a WTF::String into an NSString, since that's
1682 built into the WTF::String class.
1684 * editing/CompositeEditCommand.cpp:
1685 (WebCore::containsOnlyWhitespace): Use WTF::String's [] operator instead of
1686 an explicit call to the characters function. Small performance cost.
1687 * editing/TypingCommand.cpp:
1688 (WebCore::TypingCommand::insertText): Ditto.
1690 * editing/VisibleUnits.cpp:
1691 (WebCore::startOfParagraph): Use reverseFind instead of writing our own loop.
1692 (WebCore::endOfParagraph): Use find instead of writing our own loop.
1694 * html/parser/HTMLParserIdioms.cpp:
1695 (WebCore::stripLeadingAndTrailingHTMLSpaces): Use characters16 instead of
1696 characters since we have already checked is8Bit.
1697 (WebCore::parseHTMLNonNegativeInteger): Ditto. Replace the length check with
1698 a check of isNull since a zero length string could be 8 bit, but it's not
1699 safe to call is8Bit on a null WTF::String. (That should probably be fixed.)
1701 * inspector/ContentSearchUtils.cpp:
1702 (WebCore::ContentSearchUtils::createSearchRegexSource): Use StringBuilder
1703 instead of String in code that builds up a string one character at a time.
1704 The old way was ridiculously slow because it allocated a new string for every
1705 character; the new way still isn't all that efficient, but it's better. Also
1706 changed to use strchr instead of WTF::String::find for special characters.
1708 * inspector/InspectorStyleSheet.cpp:
1709 (WebCore::InspectorStyle::newLineAndWhitespaceDelimiters): Use WTF::String's
1710 [] operator instead of an explicit call to the characters function.
1711 * inspector/InspectorStyleTextEditor.cpp:
1712 (WebCore::InspectorStyleTextEditor::insertProperty): Ditto.
1713 (WebCore::InspectorStyleTextEditor::internalReplaceProperty): Ditto.
1714 * platform/Length.cpp:
1715 (WebCore::newCoordsArray): Ditto.
1717 * platform/LinkHash.cpp:
1718 (WebCore::visitedLinkHash): Use characters16 instead of characters since
1719 we have already checked is8Bit. Replace the length check with a check of
1720 isNull (as above in parseHTMLNonNegativeInteger).
1722 * platform/graphics/Color.cpp:
1723 (WebCore::Color::parseHexColor): Use characters16 since we already checked is8Bit.
1724 (WebCore::Color::Color): Ditto.
1726 * platform/graphics/TextRun.h:
1727 (WebCore::TextRun::TextRun): Use characters16 instead of characters since
1728 we have already checked is8Bit. Replace the length check with a check of
1729 isNull (as above in parseHTMLNonNegativeInteger).
1731 * platform/text/TextEncodingRegistry.cpp:
1732 (WebCore::atomicCanonicalTextEncodingName): Use characters16 instead of
1733 characters since we already checked is8Bit. Also use isEmpty instead of !length.
1735 * rendering/RenderBlock.cpp:
1736 (WebCore::RenderBlock::constructTextRun): Use characters16 instead of characters
1737 since we have already checked is8Bit. Replace the length check with a check of
1738 isNull (as above in parseHTMLNonNegativeInteger).
1740 * rendering/RenderCombineText.cpp:
1741 (WebCore::RenderCombineText::width): Check for zero length instead of checking
1742 for null characters.
1744 * svg/SVGFontElement.cpp:
1745 (WebCore::SVGFontElement::registerLigaturesInGlyphCache): Rewrite ligatures
1746 for loop and give local variables a better name. Construct the substring with
1747 the substring function. Still a really inefficient approach -- allocating a new
1748 string for every character is absurdly expensive.
1750 * xml/XPathFunctions.cpp:
1751 (WebCore::XPath::FunId::evaluate): Use String instead of StringBuilder. Still
1752 not all that efficient, but better than before. Use substring to construct the
1755 * xml/XPathNodeSet.h: Added begin and end functions so we can use a C++11 for
1756 loop with this class.
1758 2014-01-12 Benjamin Poulain <benjamin@webkit.org>
1760 Use the Selector Code Generator for matching in SelectorQuery
1761 https://bugs.webkit.org/show_bug.cgi?id=126185
1763 Reviewed by Ryosuke Niwa.
1765 Compile selectors on demand and use the generated binary to perform
1766 element matching in SelectorQuery.
1768 Tests: fast/selectors/querySelector-long-adjacent-backtracking.html
1769 fast/selectors/querySelector-long-child-backtracking.html
1770 fast/selectors/querySelector-mixed-child-adjacent-backtracking.html
1771 fast/selectors/querySelector-multiple-simple-child-backtracking.html
1772 fast/selectors/querySelector-simple-adjacent-backtracking.html
1773 fast/selectors/querySelector-simple-child-backtracking.html
1775 * dom/SelectorQuery.cpp:
1776 (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
1777 (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
1778 (WebCore::SelectorDataList::execute):
1779 * dom/SelectorQuery.h:
1781 2014-01-12 Anders Carlsson <andersca@apple.com>
1783 Simplify creation of XMLHttpRequestStaticData
1784 https://bugs.webkit.org/show_bug.cgi?id=126852
1786 Reviewed by Sam Weinig.
1788 Add a staticData() getter that does the initialization and get rid of the explicit
1789 calls to initializeXMLHttpRequestStaticData().
1791 * xml/XMLHttpRequest.cpp:
1792 (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
1793 (WebCore::staticData):
1794 (WebCore::XMLHttpRequest::XMLHttpRequest):
1795 (WebCore::XMLHttpRequest::isAllowedHTTPHeader):
1797 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1799 Final WebCore link error: update a symbol in WebCoreSystemInterfaceIOS.mm.
1801 * platform/ios/WebCoreSystemInterfaceIOS.mm:
1803 2014-01-12 Anders Carlsson <andersca@apple.com>
1805 Use std::call_once instead of AtomicallyInitializedStatic in DatabaseBackendBase
1806 https://bugs.webkit.org/show_bug.cgi?id=126851
1808 Reviewed by Sam Weinig.
1810 * Modules/webdatabase/DatabaseBackendBase.cpp:
1811 (WebCore::guidMutex):
1812 (WebCore::guidToVersionMap):
1813 (WebCore::updateGuidVersionMap):
1814 (WebCore::guidToDatabaseMap):
1815 (WebCore::guidForOriginAndName):
1816 (WebCore::DatabaseBackendBase::DatabaseBackendBase):
1817 (WebCore::DatabaseBackendBase::closeDatabase):
1818 (WebCore::DatabaseBackendBase::performOpenAndVerify):
1819 (WebCore::DatabaseBackendBase::getCachedVersion):
1820 (WebCore::DatabaseBackendBase::setCachedVersion):
1822 2014-01-12 Dan Bernstein <mitz@apple.com>
1824 Try to fix the Windows build after r161830.
1826 * platform/network/NetworkStateNotifier.h:
1828 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1830 Don't build JSTouch* and JSGesture* files on Mac.
1832 * Configurations/WebCore.xcconfig:
1834 2014-01-12 Anders Carlsson <andersca@apple.com>
1836 Clean up NetworkStateNotifier class
1837 https://bugs.webkit.org/show_bug.cgi?id=126850
1839 Reviewed by Andreas Kling.
1841 Use std::call_once instead of AtomicallyInitializedStatic and a std::function
1842 instead of a custom function pointer typedef.
1844 * platform/network/NetworkStateNotifier.cpp:
1845 (WebCore::networkStateNotifier):
1846 (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
1847 (WebCore::NetworkStateNotifier::notifyNetworkStateChange):
1848 * platform/network/NetworkStateNotifier.h:
1850 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1852 Add implementations of Frame::viewportArguments() and
1853 Frame::setViewportArguments().
1855 * page/ios/FrameIOS.mm:
1856 (WebCore::Frame::viewportArguments):
1857 (WebCore::Frame::setViewportArguments):
1859 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1861 Add JSWebKitPlaybackTargetAvailabilityEvent.* to the project.
1863 * WebCore.xcodeproj/project.pbxproj:
1865 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1867 Stub out some DragImage functions for iOS.
1869 * WebCore.xcodeproj/project.pbxproj:
1870 * platform/ios/DragImageIOS.mm: Added.
1871 (WebCore::dragImageSize):
1872 (WebCore::scaleDragImage):
1873 (WebCore::createDragImageFromImage):
1875 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1877 We need DragImage.cpp code even when ENABLE_DRAG_SUPPORT is
1878 not defined, because these are actually generic snapshotting
1881 * platform/DragImage.cpp:
1883 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1885 Fix linker errors: add DateTimeFormat.cpp to the project,
1886 and make DateInputType::DateInputType not inline.
1888 * WebCore.xcodeproj/project.pbxproj:
1889 * html/DateInputType.cpp:
1890 (WebCore::DateInputType::DateInputType):
1891 * platform/DragImage.cpp:
1893 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1895 Fix a bunch of linker errors related to exported functions.
1896 I removed some iOS symbols from the .exp.in file; we may have
1901 2014-01-12 Simon Fraser <simon.fraser@apple.com>
1903 Add generated JSTouch* and JSGestureEvent.* files to the project.
1905 * WebCore.xcodeproj/project.pbxproj:
1907 2014-01-12 David Kilzer <ddkilzer@apple.com>
1909 Move implementation of AuthenticationChallenge::setAuthenticationClient() to source file for USE(CFNETWORK)
1910 <http://webkit.org/b/126848>
1912 Reviewed by Simon Fraser.
1914 * platform/network/cf/AuthenticationCF.cpp:
1915 (WebCore::AuthenticationChallenge::setAuthenticationClient):
1916 Move implementation to here...
1917 * platform/network/cf/AuthenticationChallenge.h: ...from here.
1918 Remove duplicate header definitions inside USE(CFNETWORK).
1920 2014-01-12 Sam Weinig <sam@webkit.org>
1924 * WebCore.vcxproj/WebCore.vcxproj:
1926 2014-01-12 Anders Carlsson <andersca@apple.com>
1928 Replace more uses of AtomicallyInitializedStatic with std::call_once
1929 https://bugs.webkit.org/show_bug.cgi?id=126847
1931 Reviewed by Sam Weinig.
1933 * crypto/CryptoAlgorithmRegistry.cpp:
1934 (WebCore::CryptoAlgorithmRegistry::shared):
1935 (WebCore::registryMutex):
1936 (WebCore::CryptoAlgorithmRegistry::getIdentifierForName):
1937 (WebCore::CryptoAlgorithmRegistry::nameForIdentifier):
1938 (WebCore::CryptoAlgorithmRegistry::create):
1939 (WebCore::CryptoAlgorithmRegistry::registerAlgorithm):
1940 * crypto/CryptoAlgorithmRegistry.h:
1941 * inspector/WorkerDebuggerAgent.cpp:
1942 (WebCore::WorkerDebuggerAgent::WorkerDebuggerAgent):
1943 (WebCore::WorkerDebuggerAgent::~WorkerDebuggerAgent):
1944 (WebCore::WorkerDebuggerAgent::interruptAndDispatchInspectorCommands):
1945 * workers/WorkerThread.cpp:
1946 (WebCore::threadSetMutex):
1947 (WebCore::workerThreads):
1948 (WebCore::WorkerThread::workerThreadCount):
1949 (WebCore::WorkerThread::WorkerThread):
1950 (WebCore::WorkerThread::~WorkerThread):
1951 (WebCore::WorkerThread::releaseFastMallocFreeMemoryInAllThreads):
1953 2014-01-11 Sam Weinig <sam@webkit.org>
1955 Split ICU UText providers out into their own files
1956 https://bugs.webkit.org/show_bug.cgi?id=126834
1958 Reviewed by Anders Carlsson.
1960 Moves the implementation of our custom UText providers out into
1962 - UTextProviderLatin1.h/cpp contains the Latin-1 provider.
1963 - UTextProviderUTF16.h/cpp contains the UTF-16 provider.
1964 - UTextProvider.h/cpp contains code common to all the providers.
1967 * GNUmakefile.list.am:
1968 * PlatformGTK.cmake:
1969 * WebCore.vcxproj/WebCoreCommon.props:
1970 * WebCore.vcxproj/copyForwardingHeaders.cmd:
1971 * WebCore.xcodeproj/project.pbxproj:
1972 * platform/text/TextAllInOne.cpp:
1973 * platform/text/TextBreakIteratorICU.cpp:
1974 (WebCore::setUpIterator):
1975 (WebCore::wordBreakIterator):
1976 (WebCore::acquireLineBreakIterator):
1977 (WebCore::sentenceBreakIterator):
1978 (WebCore::setUpIteratorWithRules):
1979 * platform/text/icu: Added.
1980 * platform/text/icu/UTextProvider.cpp: Added.
1981 (WebCore::fixPointer):
1982 (WebCore::uTextCloneImpl):
1983 * platform/text/icu/UTextProvider.h: Added.
1984 (WebCore::uTextProviderContext):
1985 (WebCore::uTextInitialize):
1986 (WebCore::uTextAccessPinIndex):
1987 (WebCore::uTextAccessInChunkOrOutOfRange):
1988 * platform/text/icu/UTextProviderLatin1.cpp: Added.
1989 * platform/text/icu/UTextProviderLatin1.h: Added.
1990 * platform/text/icu/UTextProviderUTF16.cpp: Added.
1991 * platform/text/icu/UTextProviderUTF16.h: Added.
1993 2014-01-12 Carlos Garcia Campos <cgarcia@igalia.com>
1995 Unreviewed. Fix make distcheck.
1997 * GNUmakefile.list.am: Add missing files.
1999 2014-01-12 Simon Fraser <simon.fraser@apple.com>
2001 Fix some CoreVideo linker errors on iOS by softlinking with more CoreVideo
2004 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2006 2014-01-12 Andreas Kling <akling@apple.com>
2008 REGRESSION(r160806): line-height is not applied when only present in :link style.
2009 <http://webkit.org/b/126839>
2010 <rdar://problem/15799899>
2012 Reviewed by Antti Koivisto.
2014 Test: fast/css/line-height-link-style.html
2016 * css/StyleResolver.cpp:
2017 (WebCore::StyleResolver::CascadedProperties::Property::apply):
2019 Use the CSSValue for SelectorChecker::MatchLink when applying
2020 style inside a link.
2022 2014-01-12 David Kilzer <ddkilzer@apple.com>
2024 [iOS] Fix link errors for iOS: Part 3
2027 - Move some Mac-only symbols to Mac-only section.
2028 * WebCore.xcodeproj/project.pbxproj:
2029 - Add missing references to AuthenticationCF.cpp and
2032 2014-01-11 Anders Carlsson <andersca@apple.com>
2034 Remove unsafe uses of AtomicallyInitializedStatic
2035 https://bugs.webkit.org/show_bug.cgi?id=126838
2037 Reviewed by Andreas Kling.
2039 AtomicStrings are per thread so any static initialization of them is potentially dangerous
2040 unless it's certain that they're only ever used from the same thread.
2042 This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
2043 (This is highly unlikely to have any real negative performance impact since these two functions
2044 aren't called very frequently).
2046 * loader/CrossOriginAccessControl.cpp:
2047 (WebCore::passesAccessControlCheck):
2048 * page/PerformanceResourceTiming.cpp:
2049 (WebCore::passesTimingAllowCheck):
2051 2014-01-12 David Kilzer <ddkilzer@apple.com>
2053 [iOS] Fix link errors for iOS: Part 2
2056 - Move some Mac-only symbols to Mac-only section.
2058 2014-01-12 David Kilzer <ddkilzer@apple.com>
2060 [iOS] First of many iOS fixes to WebCore.exp.in
2063 - Move some Mac-only symbols to Mac-only section.
2064 - Upstream some changes to iOS-only section.
2066 2014-01-12 David Kilzer <ddkilzer@apple.com>
2068 [iOS] Don't link to Mac-only frameworks when building iOS
2069 <http://webkit.org/b/126841>
2071 * Configurations/WebCore.xcconfig:
2072 (OTHER_LDFLAGS_iphonesimulator): Remove common frameworks that
2073 are already in the Xcode project.
2074 (OTHER_LDFLAGS_macosx): Add Mac-only frameworks removed from the
2076 * Configurations/WebCoreTestShim.xcconfig:
2077 (OTHER_LDFLAGS[sdk=macosx*]): Link to Carbon.framework for Mac
2078 since it was removed from the Xcode project.
2079 * WebCore.xcodeproj/project.pbxproj: Remove Mac-only frameworks.
2081 2014-01-12 Tobias Mueller <tobiasmue@gnome.org>
2083 --disable-dependency-tracking causes build failure due to missing directories
2084 https://bugs.webkit.org/show_bug.cgi?id=94488
2086 Reviewed by Gustavo Noronha Silva.
2088 Ensure output directory existing
2089 before generating DerivedSources. This allows for
2090 --disable-dependency-tracking to be run.
2092 * GNUmakefile.am: Added new target DerivedSources/ANGLE which is a directory to be created
2093 * bindings/gobject/GNUmakefile.am: Added new target DerivedSources/webkitdom which is a directory to be created
2095 2014-01-12 David Kilzer <ddkilzer@apple.com>
2097 [iOS] WebFontCache is Mac-only
2099 * WebCore.exp.in: Move export to Mac-only section.
2101 2014-01-12 David Kilzer <ddkilzer@apple.com>
2103 [iOS] Upstream WebEventRegion.{h|mm} to fix the build
2105 * WebCore.xcodeproj/project.pbxproj: Add to project.
2106 * page/ios/WebEventRegion.h: Added.
2107 * page/ios/WebEventRegion.mm: Added.
2108 (-[WebEventRegion initWithPoints::::]):
2109 (-[WebEventRegion copyWithZone:]):
2110 (-[WebEventRegion description]):
2111 (-[WebEventRegion hitTest:]):
2112 (-[WebEventRegion isEqual:]):
2113 (-[WebEventRegion quad]):
2115 2014-01-11 Anders Carlsson <andersca@apple.com>
2117 Use std::call_once instead of AtomicallyInitializedStatic when creating a HTTP header set
2118 https://bugs.webkit.org/show_bug.cgi?id=126837
2120 Reviewed by Sam Weinig.
2122 Use std::call_once when constructing the HTTPHeaderSet.
2124 * loader/CrossOriginAccessControl.cpp:
2125 (WebCore::isOnAccessControlResponseHeaderWhitelist):
2127 2014-01-11 David Kilzer <ddkilzer@apple.com>
2129 [iOS] Do not link to ApplicationServices.framework for iOS
2130 <http://webkit.org/b/126835>
2132 Reviewed by Dan Bernstein.
2134 * Configurations/WebCore.xcconfig:
2135 (OTHER_LDFLAGS_macosx): Add -framework ApplicationServices.
2136 * WebCore.xcodeproj/project.pbxproj: Remove reference to
2137 ApplicationServices.framework.
2139 2014-01-11 David Kilzer <ddkilzer@apple.com>
2141 [iOS] Build fix for StyleResolver.cpp
2143 * rendering/style/RenderStyle.h:
2144 (WebCore::RenderStyle::setCompositionFillColor): Added.
2146 2014-01-11 David Kilzer <ddkilzer@apple.com>
2148 [iOS] Fix build of RenderLayerCompositor::registerAllViewportConstrainedLayers()
2150 * rendering/RenderLayerCompositor.cpp:
2151 (WebCore::RenderLayerCompositor::registerAllViewportConstrainedLayers):
2152 Fix use of std::make_unique<>() and add an adoptPtr() call.
2154 2014-01-11 Alexey Proskuryakov <ap@apple.com>
2156 [Mac] [Windows] Stop scheduling network requests in WebCore
2157 https://bugs.webkit.org/show_bug.cgi?id=126789
2158 <rdar://problem/15114727>
2160 Reviewed by Sam Weinig.
2162 We'll just send all requests to CFNetwork now, along with associated priorities.
2164 * WebCore.exp.in: WebKitSystemInterface functions are changing to support priorities
2165 for more than just pipelining.
2166 * loader/ResourceLoadScheduler.cpp:
2167 (WebCore::ResourceLoadScheduler::scheduleLoad):
2168 * platform/ios/WebCoreSystemInterfaceIOS.mm:
2169 * platform/mac/WebCoreSystemInterface.h:
2170 * platform/mac/WebCoreSystemInterface.mm:
2171 * platform/network/ResourceHandle.h: For syncronous requests, make it so that they
2172 don't count against HTTP connection limit, to avoid the possibility of hanging the process.
2173 * platform/network/cf/ResourceHandleCFNet.cpp:
2174 (WebCore::ResourceHandle::createCFURLConnection):
2175 (WebCore::ResourceHandle::start):
2176 (WebCore::ResourceHandle::platformLoadResourceSynchronously):
2177 * platform/network/cf/ResourceRequestCFNet.cpp:
2178 (WebCore::ResourceRequest::doUpdatePlatformRequest):
2179 (WebCore::ResourceRequest::doUpdateResourceRequest):
2180 (WebCore::initializeMaximumHTTPConnectionCountPerHost):
2181 (WebCore::initializeHTTPConnectionSettingsOnStartup):
2182 * platform/network/cf/ResourceRequestCFNet.h:
2183 (WebCore::toPlatformRequestPriority):
2184 * platform/network/mac/ResourceHandleMac.mm:
2185 (WebCore::ResourceHandle::createNSURLConnection):
2186 (WebCore::ResourceHandle::start):
2187 (WebCore::ResourceHandle::platformLoadResourceSynchronously):
2188 * platform/network/mac/ResourceRequestMac.mm:
2189 (WebCore::ResourceRequest::doUpdateResourceRequest):
2190 (WebCore::ResourceRequest::doUpdatePlatformRequest):
2192 2014-01-11 David Kilzer <ddkilzer@apple.com>
2194 [iOS] Fix build failure in WebCore::findEndWordBoundary()
2196 Filed Bug 126830 for the proper fix:
2197 <http://webkit.org/b/126830>
2199 * editing/VisibleUnits.cpp:
2200 (WebCore::endWordBoundary): Switch back to using
2201 WebCore::findWordBoundary() on iOS.
2203 * platform/text/mac/TextBoundaries.mm:
2204 (WebCore::findEndWordBoundary): Add FIXME for iOS implementation
2205 that doesn't use NSAttributedString.
2207 2014-01-11 Andy Estes <aestes@apple.com>
2209 [iOS] Move text autosizing code from RenderBlock to RenderBlockFlow
2210 https://bugs.webkit.org/show_bug.cgi?id=126829
2212 Reviewed by Sam Weinig.
2214 Some newly-upstreamed iOS text autosizing code needs to move to
2215 RenderBlockFlow in order to build.
2217 * rendering/RenderBlock.cpp:
2218 (WebCore::RenderBlock::RenderBlock):
2219 * rendering/RenderBlock.h:
2220 * rendering/RenderBlockFlow.cpp:
2221 (WebCore::RenderBlockFlow::RenderBlockFlow):
2222 (WebCore::isVisibleRenderText):
2223 (WebCore::resizeTextPermitted):
2224 (WebCore::RenderBlockFlow::immediateLineCount):
2225 (WebCore::isNonBlocksOrNonFixedHeightListItems):
2226 (WebCore::oneLineTextMultiplier):
2227 (WebCore::textMultiplier):
2228 (WebCore::RenderBlockFlow::adjustComputedFontSizes):
2229 * rendering/RenderBlockFlow.h:
2230 (WebCore::RenderBlockFlow::resetComputedFontSize):
2231 * rendering/RenderObject.cpp:
2232 (WebCore::RenderObject::adjustComputedFontSizesOnBlocks):
2233 (WebCore::RenderObject::resetTextAutosizing):
2235 2014-01-11 Daniel Bates <dabates@apple.com>
2239 Only call CGContextFlush() when building for OS X < 10.9.
2241 * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2242 (WebCore::ImageBufferBackingStoreCache::deallocate):
2244 2014-01-11 Anders Carlsson <andersca@apple.com>
2246 InspectorAgentRegistry should use std::unique_ptr
2247 https://bugs.webkit.org/show_bug.cgi?id=126826
2249 Reviewed by Sam Weinig.
2251 * inspector/InspectorApplicationCacheAgent.h:
2252 * inspector/InspectorCSSAgent.h:
2253 * inspector/InspectorCanvasAgent.h:
2254 * inspector/InspectorController.cpp:
2255 (WebCore::InspectorController::InspectorController):
2256 * inspector/InspectorDOMAgent.h:
2257 * inspector/InspectorDOMDebuggerAgent.cpp:
2258 * inspector/InspectorDOMDebuggerAgent.h:
2259 * inspector/InspectorDOMStorageAgent.h:
2260 * inspector/InspectorDatabaseAgent.h:
2261 * inspector/InspectorHeapProfilerAgent.cpp:
2262 * inspector/InspectorHeapProfilerAgent.h:
2263 * inspector/InspectorIndexedDBAgent.h:
2264 * inspector/InspectorInputAgent.h:
2265 * inspector/InspectorLayerTreeAgent.h:
2266 * inspector/InspectorMemoryAgent.cpp:
2267 * inspector/InspectorMemoryAgent.h:
2268 * inspector/InspectorPageAgent.cpp:
2269 * inspector/InspectorPageAgent.h:
2270 * inspector/InspectorProfilerAgent.cpp:
2271 (WebCore::InspectorProfilerAgent::create):
2272 * inspector/InspectorProfilerAgent.h:
2273 * inspector/InspectorResourceAgent.h:
2274 * inspector/InspectorTimelineAgent.h:
2275 * inspector/InspectorWorkerAgent.cpp:
2276 * inspector/InspectorWorkerAgent.h:
2277 * inspector/PageConsoleAgent.h:
2278 * inspector/PageDebuggerAgent.cpp:
2279 * inspector/PageDebuggerAgent.h:
2280 * inspector/PageRuntimeAgent.h:
2281 * inspector/WorkerConsoleAgent.h:
2282 * inspector/WorkerDebuggerAgent.cpp:
2283 * inspector/WorkerDebuggerAgent.h:
2284 * inspector/WorkerInspectorController.cpp:
2285 (WebCore::WorkerInspectorController::WorkerInspectorController):
2286 * inspector/WorkerRuntimeAgent.h:
2288 2014-01-11 Sam Weinig <sam@webkit.org>
2290 Extract the FormatConverter class out of GraphicsContext3D.cpp and into its own file
2291 https://bugs.webkit.org/show_bug.cgi?id=126820
2293 Reviewed by Anders Carlsson.
2296 * GNUmakefile.list.am:
2297 * WebCore.vcxproj/WebCore.vcxproj:
2298 * WebCore.vcxproj/WebCore.vcxproj.filters:
2299 * WebCore.xcodeproj/project.pbxproj:
2300 * platform/graphics/FormatConverter.cpp: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
2301 (WebCore::convertFloatToHalfFloat):
2302 (WebCore::FormatConverter::convert):
2303 * platform/graphics/FormatConverter.h: Copied from Source/WebCore/platform/graphics/GraphicsContext3D.cpp.
2304 (WebCore::FormatConverter::FormatConverter):
2305 (WebCore::FormatConverter::success):
2306 * platform/graphics/GraphicsContext3D.cpp:
2307 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
2308 (WebCore::GraphicsContext3D::computeImageSizeInBytes):
2309 (WebCore::GraphicsContext3D::packImageData):
2310 (WebCore::GraphicsContext3D::extractImageData):
2311 (WebCore::GraphicsContext3D::extractTextureData):
2312 (WebCore::GraphicsContext3D::packPixels):
2313 * platform/graphics/GraphicsContext3D.h:
2314 (WebCore::GraphicsContext3D::hasAlpha):
2315 (WebCore::GraphicsContext3D::hasColor):
2317 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2319 Fix updateScrollingLayerWithClient() for iOS.
2321 * rendering/RenderLayerCompositor.cpp:
2322 (WebCore::updateScrollingLayerWithClient):
2324 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2326 Unfork GraphicsContext::drawNativeImage for iOS
2327 https://bugs.webkit.org/show_bug.cgi?id=126824
2329 Reviewed by Dean Jackson.
2331 GraphicsContext::drawNativeImage had a different signature for iOS,
2332 which required #ifdefs at all the call sites. Unfork by passing the "scale"
2333 parameter everywhere (it's only used on iOS).
2336 * html/canvas/CanvasRenderingContext2D.cpp:
2337 (WebCore::CanvasRenderingContext2D::drawImage):
2338 * platform/graphics/GraphicsContext.h:
2339 * platform/graphics/cg/BitmapImageCG.cpp:
2340 (WebCore::BitmapImage::draw):
2341 * platform/graphics/cg/GraphicsContext3DCG.cpp:
2342 (WebCore::GraphicsContext3D::paintToCanvas):
2343 * platform/graphics/cg/GraphicsContextCG.cpp:
2344 (WebCore::GraphicsContext::platformInit):
2345 * platform/graphics/cg/ImageBufferCG.cpp:
2346 (WebCore::ImageBuffer::draw):
2347 * platform/graphics/ios/IconIOS.mm:
2348 (WebCore::Icon::paint):
2350 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2352 Work around USE(CFNETWORK) build failure on iOS.
2354 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2355 (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
2357 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2359 Fix LegacyWebArchive.cpp:567:91: error: calling 'utf8' with incomplete return type 'WTF::CString'
2361 * loader/archive/cf/LegacyWebArchive.cpp:
2363 2014-01-11 David Kilzer <ddkilzer@apple.com>
2365 [iOS] Fix the easy half of the build errors in RenderBlock.cpp
2367 * rendering/RenderBlock.cpp:
2368 (WebCore::isNonBlocksOrNonFixedHeightListItems):
2369 (WebCore::oneLineTextMultiplier):
2370 (WebCore::textMultiplier):
2371 (WebCore::RenderBlock::adjustComputedFontSizes):
2373 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2375 Change touch-related headers to include WebKitAdditions headers,
2376 which have been renamed to have IOS suffixes.
2378 * WebCore.xcodeproj/project.pbxproj:
2379 * bindings/js/ios/TouchConstructors.cpp:
2383 * dom/ios/TouchEvents.cpp:
2385 2014-01-11 Anders Carlsson <andersca@apple.com>
2387 ScriptDebugServer should use a separate member function for its timer handler
2388 https://bugs.webkit.org/show_bug.cgi?id=126819
2390 Reviewed by Sam Weinig.
2392 It's weird to have subclasses override a timer handler and sometimes invoke
2393 the timer handler directly so make it a separate member function instead.
2395 * bindings/js/PageScriptDebugServer.cpp:
2396 (WebCore::PageScriptDebugServer::recompileAllJSFunctions):
2397 * bindings/js/PageScriptDebugServer.h:
2398 * bindings/js/ScriptDebugServer.cpp:
2399 (WebCore::ScriptDebugServer::ScriptDebugServer):
2400 (WebCore::ScriptDebugServer::recompileAllJSFunctionsTimerFired):
2401 * bindings/js/ScriptDebugServer.h:
2402 * bindings/js/WorkerScriptDebugServer.cpp:
2403 (WebCore::WorkerScriptDebugServer::addListener):
2404 (WebCore::WorkerScriptDebugServer::recompileAllJSFunctions):
2405 * bindings/js/WorkerScriptDebugServer.h:
2406 * inspector/InspectorProfilerAgent.cpp:
2407 (WebCore::InspectorProfilerAgent::start):
2409 2014-01-11 Anders Carlsson <andersca@apple.com>
2411 Simplify Timer and DeferrableOneShotTimer using std::function
2412 https://bugs.webkit.org/show_bug.cgi?id=126816
2414 Reviewed by Sam Weinig.
2417 (WebCore::Timer::Timer):
2419 2014-01-11 Anders Carlsson <andersca@apple.com>
2421 CTTE Timer and DeferrableOneShotTimer
2422 https://bugs.webkit.org/show_bug.cgi?id=126814
2424 Reviewed by Antti Koivisto.
2426 Add new Timer and DeferrableOneShotTimer constructors whose member function pointers
2427 take a reference instead of a pointer.
2428 Also, convert a bunch of classes over to using these new constructors.
2430 * Modules/encryptedmedia/MediaKeySession.cpp:
2431 (WebCore::MediaKeySession::keyRequestTimerFired):
2432 (WebCore::MediaKeySession::addKeyTimerFired):
2433 * Modules/encryptedmedia/MediaKeySession.h:
2434 * Modules/geolocation/Geolocation.cpp:
2435 (WebCore::Geolocation::GeoNotifier::timerFired):
2436 (WebCore::Geolocation::resumeTimerFired):
2437 * Modules/geolocation/Geolocation.h:
2438 * Modules/indexeddb/IDBTransactionBackend.cpp:
2439 (WebCore::IDBTransactionBackend::taskTimerFired):
2440 * Modules/indexeddb/IDBTransactionBackend.h:
2441 * Modules/mediasource/SourceBuffer.cpp:
2442 (WebCore::SourceBuffer::appendBufferTimerFired):
2443 * Modules/mediasource/SourceBuffer.h:
2444 * Modules/notifications/Notification.cpp:
2445 (WebCore::Notification::taskTimerFired):
2446 * Modules/notifications/Notification.h:
2447 * Modules/notifications/NotificationCenter.cpp:
2448 (WebCore::NotificationCenter::NotificationRequestCallback::timerFired):
2449 * Modules/notifications/NotificationCenter.h:
2450 * accessibility/AXObjectCache.cpp:
2451 (WebCore::AXObjectCache::notificationPostTimerFired):
2452 * accessibility/AXObjectCache.h:
2453 * css/CSSFontSelector.cpp:
2454 (WebCore::CSSFontSelector::beginLoadTimerFired):
2455 * css/CSSFontSelector.h:
2456 * css/CSSImageGeneratorValue.cpp:
2457 (WebCore::CSSImageGeneratorValue::CachedGeneratedImage::evictionTimerFired):
2458 * css/CSSImageGeneratorValue.h:
2460 (WebCore::Document::visualUpdatesSuppressionTimerFired):
2461 (WebCore::Document::styleRecalcTimerFired):
2462 (WebCore::Document::optimizedStyleSheetUpdateTimerFired):
2463 (WebCore::Document::sharedObjectPoolClearTimerFired):
2464 (WebCore::Document::styleResolverThrowawayTimerFired):
2465 (WebCore::Document::updateFocusAppearanceTimerFired):
2466 (WebCore::Document::resetHiddenFocusElementTimer):
2467 (WebCore::Document::pendingTasksTimerFired):
2468 (WebCore::Document::fullScreenChangeDelayTimerFired):
2469 (WebCore::Document::loadEventDelayTimerFired):
2470 (WebCore::Document::didAssociateFormControlsTimerFired):
2472 * dom/EventSender.h:
2473 (WebCore::EventSender::timerFired):
2474 * dom/GenericEventQueue.cpp:
2475 (WebCore::GenericEventQueue::timerFired):
2476 * dom/GenericEventQueue.h:
2477 * dom/ScriptRunner.cpp:
2478 (WebCore::ScriptRunner::timerFired):
2479 * dom/ScriptRunner.h:
2480 * dom/ScriptedAnimationController.cpp:
2481 (WebCore::ScriptedAnimationController::animationTimerFired):
2482 * dom/ScriptedAnimationController.h:
2483 * editing/AlternativeTextController.cpp:
2484 (WebCore::AlternativeTextController::timerFired):
2485 * editing/AlternativeTextController.h:
2486 * editing/FrameSelection.cpp:
2487 (WebCore::FrameSelection::caretBlinkTimerFired):
2488 * editing/FrameSelection.h:
2489 * html/HTMLMediaElement.cpp:
2490 (WebCore::HTMLMediaElement::parseAttribute):
2491 * html/HTMLMediaElement.h:
2492 * html/HTMLPlugInElement.cpp:
2493 (WebCore::HTMLPlugInElement::swapRendererTimerFired):
2494 * html/HTMLPlugInElement.h:
2495 * html/HTMLPlugInImageElement.cpp:
2496 (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired):
2497 (WebCore::HTMLPlugInImageElement::simulatedMouseClickTimerFired):
2498 * html/HTMLPlugInImageElement.h:
2499 * html/HTMLSourceElement.cpp:
2500 (WebCore::HTMLSourceElement::errorEventTimerFired):
2501 * html/HTMLSourceElement.h:
2502 * html/HTMLTrackElement.cpp:
2503 (WebCore::HTMLTrackElement::loadTimerFired):
2504 * html/HTMLTrackElement.h:
2505 * html/MediaController.cpp:
2506 (MediaController::asyncEventTimerFired):
2507 (MediaController::clearPositionTimerFired):
2508 (MediaController::timeupdateTimerFired):
2509 * html/MediaController.h:
2510 * html/MediaDocument.cpp:
2511 (WebCore::MediaDocument::replaceMediaElementTimerFired):
2512 * html/MediaDocument.h:
2513 * html/parser/HTMLParserScheduler.cpp:
2514 (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
2515 * html/parser/HTMLParserScheduler.h:
2516 * html/shadow/MediaControlElementTypes.cpp:
2517 (WebCore::MediaControlSeekButtonElement::seekTimerFired):
2518 * html/shadow/MediaControlElementTypes.h:
2519 * html/shadow/MediaControlElements.cpp:
2520 (WebCore::MediaControlPanelElement::transitionTimerFired):
2521 (WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
2522 * html/shadow/MediaControlElements.h:
2523 * html/shadow/MediaControls.cpp:
2524 (WebCore::MediaControls::hideFullscreenControlsTimerFired):
2525 * html/shadow/MediaControls.h:
2526 * html/track/LoadableTextTrack.cpp:
2527 (WebCore::LoadableTextTrack::loadTimerFired):
2528 * html/track/LoadableTextTrack.h:
2529 * inspector/InspectorCSSAgent.cpp:
2530 (WebCore::UpdateRegionLayoutTask::UpdateRegionLayoutTask):
2531 (WebCore::UpdateRegionLayoutTask::timerFired):
2532 (WebCore::ChangeRegionOversetTask::ChangeRegionOversetTask):
2533 (WebCore::ChangeRegionOversetTask::timerFired):
2534 * inspector/InspectorDOMAgent.cpp:
2535 (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
2536 (WebCore::RevalidateStyleAttributeTask::timerFired):
2537 * inspector/InspectorFrontendClientLocal.cpp:
2538 (WebCore::InspectorBackendDispatchTask::InspectorBackendDispatchTask):
2539 (WebCore::InspectorBackendDispatchTask::timerFired):
2540 * loader/DocumentLoader.cpp:
2541 (WebCore::DocumentLoader::substituteResourceDeliveryTimerFired):
2542 * loader/DocumentLoader.h:
2543 * loader/FrameLoader.cpp:
2544 (WebCore::FrameLoader::checkTimerFired):
2545 * loader/FrameLoader.h:
2546 * loader/ImageLoader.cpp:
2547 (WebCore::ImageLoader::timerFired):
2548 * loader/ImageLoader.h:
2549 * loader/LinkLoader.cpp:
2550 (WebCore::LinkLoader::linkLoadTimerFired):
2551 (WebCore::LinkLoader::linkLoadingErrorTimerFired):
2552 * loader/LinkLoader.h:
2553 * loader/NavigationScheduler.cpp:
2554 (WebCore::NavigationScheduler::timerFired):
2555 * loader/NavigationScheduler.h:
2556 * loader/PingLoader.cpp:
2557 (WebCore::PingLoader::PingLoader):
2558 * loader/PingLoader.h:
2559 (WebCore::PingLoader::timeoutTimerFired):
2560 * loader/ProgressTracker.cpp:
2561 (WebCore::ProgressTracker::progressHeartbeatTimerFired):
2562 * loader/ProgressTracker.h:
2563 * loader/ResourceLoadScheduler.cpp:
2564 (WebCore::ResourceLoadScheduler::requestTimerFired):
2565 * loader/ResourceLoadScheduler.h:
2566 * loader/cache/CachedResource.cpp:
2567 (WebCore::CachedResource::decodedDataDeletionTimerFired):
2568 (WebCore::CachedResource::CachedResourceCallback::timerFired):
2569 * loader/cache/CachedResource.h:
2570 * loader/cache/CachedResourceLoader.cpp:
2571 (WebCore::CachedResourceLoader::garbageCollectDocumentResourcesTimerFired):
2572 * loader/cache/CachedResourceLoader.h:
2573 * loader/icon/IconDatabase.cpp:
2574 (WebCore::IconDatabase::syncTimerFired):
2575 * loader/icon/IconDatabase.h:
2576 * page/AutoscrollController.cpp:
2577 (WebCore::AutoscrollController::autoscrollTimerFired):
2578 * page/AutoscrollController.h:
2579 * page/CaptionUserPreferences.cpp:
2580 (WebCore::CaptionUserPreferences::timerFired):
2581 * page/CaptionUserPreferences.h:
2582 * page/DeviceController.cpp:
2583 (WebCore::DeviceController::fireDeviceEvent):
2584 * page/DeviceController.h:
2585 * page/EventHandler.cpp:
2586 (WebCore::EventHandler::cursorUpdateTimerFired):
2587 (WebCore::EventHandler::autoHideCursorTimerFired):
2588 (WebCore::EventHandler::fakeMouseMoveEventTimerFired):
2589 (WebCore::EventHandler::hoverTimerFired):
2590 * page/EventHandler.h:
2591 * page/EventSource.cpp:
2592 (WebCore::EventSource::connectTimerFired):
2593 * page/EventSource.h:
2594 * page/FrameView.cpp:
2595 (WebCore::FrameView::deferredRepaintTimerFired):
2596 (WebCore::FrameView::layoutTimerFired):
2597 (WebCore::FrameView::postLayoutTimerFired):
2599 * page/PageThrottler.cpp:
2600 (WebCore::PageThrottler::throttleHysteresisTimerFired):
2601 * page/PageThrottler.h:
2602 * page/animation/AnimationController.cpp:
2603 (WebCore::AnimationControllerPrivate::updateStyleIfNeededDispatcherFired):
2604 (WebCore::AnimationControllerPrivate::animationTimerFired):
2605 * page/animation/AnimationControllerPrivate.h:
2606 * platform/Scrollbar.cpp:
2607 (WebCore::Scrollbar::autoscrollTimerFired):
2608 * platform/Scrollbar.h:
2610 (WebCore::Timer::Timer):
2611 (WebCore::DeferrableOneShotTimer::DeferrableOneShotTimer):
2612 * platform/graphics/BitmapImage.cpp:
2613 (WebCore::BitmapImage::advanceAnimation):
2614 * platform/graphics/BitmapImage.h:
2615 * platform/graphics/MediaPlayer.cpp:
2616 (WebCore::MediaPlayer::reloadTimerFired):
2617 * platform/graphics/MediaPlayer.h:
2618 * platform/graphics/ca/mac/LayerPool.h:
2619 * platform/graphics/ca/mac/LayerPool.mm:
2620 (WebCore::LayerPool::pruneTimerFired):
2621 * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2622 (WebCore::ImageBufferBackingStoreCache::timerFired):
2623 * platform/graphics/cg/ImageBufferBackingStoreCache.h:
2624 * platform/graphics/cg/SubimageCacheWithTimer.cpp:
2625 (WebCore::SubimageCacheWithTimer::invalidateCacheTimerFired):
2626 * platform/graphics/cg/SubimageCacheWithTimer.h:
2627 * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
2628 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2629 (WebCore::MediaPlayerPrivateQTKit::seekTimerFired):
2630 * platform/mac/ScrollAnimatorMac.h:
2631 * platform/mac/ScrollAnimatorMac.mm:
2632 (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
2633 (WebCore::ScrollAnimatorMac::initialScrollbarPaintTimerFired):
2634 (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
2635 * platform/mock/DeviceOrientationClientMock.cpp:
2636 (WebCore::DeviceOrientationClientMock::timerFired):
2637 * platform/mock/DeviceOrientationClientMock.h:
2638 * platform/network/NetworkStateNotifier.h:
2639 * platform/network/ResourceHandle.cpp:
2640 (WebCore::ResourceHandle::failureTimerFired):
2641 * platform/network/ResourceHandle.h:
2642 * platform/network/ResourceHandleInternal.h:
2643 (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2644 * platform/network/mac/NetworkStateNotifierMac.cpp:
2645 (WebCore::NetworkStateNotifier::networkStateChangeTimerFired):
2646 * rendering/ImageQualityController.cpp:
2647 (WebCore::ImageQualityController::highQualityRepaintTimerFired):
2648 * rendering/ImageQualityController.h:
2649 * rendering/RenderButton.cpp:
2650 (WebCore::RenderButton::timerFired):
2651 * rendering/RenderButton.h:
2652 * rendering/RenderLayerCompositor.cpp:
2653 (WebCore::RenderLayerCompositor::updateCompositingLayersTimerFired):
2654 (WebCore::RenderLayerCompositor::layerFlushTimerFired):
2655 (WebCore::RenderLayerCompositor::paintRelatedMilestonesTimerFired):
2656 * rendering/RenderLayerCompositor.h:
2657 * rendering/RenderMarquee.cpp:
2658 (WebCore::RenderMarquee::timerFired):
2659 * rendering/RenderMarquee.h:
2660 * rendering/RenderNamedFlowThread.cpp:
2661 (WebCore::RenderNamedFlowThread::regionLayoutUpdateEventTimerFired):
2662 (WebCore::RenderNamedFlowThread::regionOversetChangeEventTimerFired):
2663 * rendering/RenderNamedFlowThread.h:
2664 * rendering/RenderProgress.cpp:
2665 (WebCore::RenderProgress::animationTimerFired):
2666 * rendering/RenderProgress.h:
2668 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2670 #ifdef out the contents of Touch* files for iOS.
2676 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2678 No need to include <ApplicationServices/ApplicationServices.h> in
2679 the header. Can use <CoreGraphics/CoreGraphics.h> in the .cpp file.
2681 * platform/graphics/cg/ImageBufferBackingStoreCache.cpp:
2682 * platform/graphics/cg/ImageBufferBackingStoreCache.h:
2684 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2686 Fix DOM headers: TARGET_OS_EMBEDDED -> TARGET_OS_IPHONE
2687 and a drive-by cleanup of DOMUIKitExtensions.mm #includes.
2689 * bindings/objc/DOMPrivate.h:
2690 * bindings/objc/DOMUIKitExtensions.h:
2691 * bindings/objc/DOMUIKitExtensions.mm:
2693 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2695 Fix use of GL_HALF_FLOAT_ARB on iOS.
2697 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
2698 (WebCore::GraphicsContext3D::texSubImage2D):
2700 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2702 Fix build of SourceBufferPrivateAVFObjC.mm on iOS.
2704 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2706 2014-01-11 Simon Fraser <simon.fraser@apple.com>
2708 Fix use of nonexistent kCGColorSpaceSRGB on iOS.
2710 * platform/graphics/cg/GraphicsContextCG.cpp:
2711 (WebCore::sRGBColorSpaceRef):
2713 2014-01-11 Joseph Pecoraro <pecoraro@apple.com>
2715 Web Inspector: Some ScriptDebugServer Cleanup
2716 https://bugs.webkit.org/show_bug.cgi?id=126793
2718 Reviewed by Timothy Hatcher.
2720 * bindings/js/PageScriptDebugServer.cpp:
2721 (WebCore::PageScriptDebugServer::didContinue):
2722 (WebCore::PageScriptDebugServer::runEventLoopWhilePaused):
2723 Move the special iOS WebThread EventLoop nesting handling here.
2725 * bindings/js/ScriptDebugServer.cpp:
2726 (WebCore::ScriptDebugServer::ScriptDebugServer):
2727 (WebCore::ScriptDebugServer::handlePause):
2728 * bindings/js/ScriptDebugServer.h:
2729 * inspector/InspectorDebuggerAgent.cpp:
2730 * inspector/InspectorDebuggerAgent.h:
2731 Remove unused headers and functions.
2733 2014-01-11 David Kilzer <ddkilzer@apple.com>
2735 [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
2737 * platform/graphics/cg/ImageBufferCG.cpp:
2738 (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
2739 variables are only used by code protected by
2740 USE(IOSURFACE_CANVAS_BACKING_STORE).
2742 2014-01-11 David Kilzer <ddkilzer@apple.com>
2744 [iOS] Multisampling is not available on iOS
2746 * platform/graphics/mac/GraphicsContext3DMac.mm:
2747 (WebCore::GraphicsContext3D::GraphicsContext3D):
2749 2014-01-10 David Kilzer <ddkilzer@apple.com>
2751 [iOS] Fix build for HTMLImageElement::willRespondToMouseClickEvents()
2753 * html/HTMLImageElement.cpp:
2754 (WebCore::HTMLImageElement::willRespondToMouseClickEvents):
2756 2014-01-10 Anders Carlsson <andersca@apple.com>
2760 * loader/ProgressTracker.cpp:
2761 (WebCore::ProgressTracker::~ProgressTracker):
2762 Comment out the call to progressTrackerDestroyed for now.
2764 2014-01-10 David Kilzer <ddkilzer@apple.com>
2766 [iOS] Fix build for RenderEmbeddedObject::canHaveChildren()
2768 * rendering/RenderEmbeddedObject.cpp:
2769 (WebCore::RenderEmbeddedObject::canHaveChildren):
2771 2014-01-10 Anders Carlsson <andersca@apple.com>
2773 Tweak ProgressTrackerClient functions
2774 https://bugs.webkit.org/show_bug.cgi?id=126808
2776 Reviewed by Sam Weinig.
2778 Rename the three progress state related member functions since it's up to the various
2779 WebKit implementations to decide what to do - not everyone wants to post a notification.
2780 Also add an originating progress frame parameter since WebKit2 doesn't report progress for
2781 subframe navigation and we need to be able to keep track of that.
2783 Finally, tweak ProgressTracker::completeProgress to get rid of an unnecessary hash lookup.
2785 * loader/EmptyClients.h:
2786 * loader/ProgressTracker.cpp:
2787 (WebCore::ProgressItem::ProgressItem):
2788 (WebCore::ProgressTracker::progressStarted):
2789 (WebCore::ProgressTracker::finalProgressComplete):
2790 (WebCore::ProgressTracker::incrementProgress):
2791 (WebCore::ProgressTracker::completeProgress):
2792 * loader/ProgressTrackerClient.h:
2794 2014-01-10 David Kilzer <ddkilzer@apple.com>
2796 [iOS] Fix COMPILE_ASSERT by updating struct SameSizeAsStyleRareInheritedData
2798 * rendering/style/StyleRareInheritedData.cpp:
2800 2014-01-10 David Kilzer <ddkilzer@apple.com>
2802 [iOS] Fix build of SubframeLoader.cpp
2804 * loader/SubframeLoader.cpp:
2805 (WebCore::SubframeLoader::loadMediaPlayerProxyPlugin):
2806 (WebCore::SubframeLoader::loadPlugin):
2807 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
2809 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2811 Fix Mac after r161747. One part of that is iOS specific.
2813 Unreviewed build fix.
2815 * bindings/js/GCController.cpp:
2816 (WebCore::GCController::releaseExecutableMemory):
2818 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2820 [iOS] Fix GCController::releaseExecutableMemory
2821 https://bugs.webkit.org/show_bug.cgi?id=126805
2823 Reviewed by Sam Weinig and Mark Lam.
2825 VM::dynamicGlobalObject has since been replaced by VMEntryScope.
2826 Update to check entryScope instead of the dynamicGlobalObject.
2827 Also, make this non-iOS only.
2829 * bindings/js/GCController.h:
2830 * bindings/js/GCController.cpp:
2831 (WebCore::GCController::releaseExecutableMemory):
2833 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2835 Fix HTMLMediaElement.o for iOS. Unreviewed build fix.
2837 There is now local variable mediaElement. Just call the
2838 functions since they are methods on this class.
2840 Fix RequireUserGestureToShowPlaybackTargetPickerRestriction typos.
2842 * html/HTMLMediaElement.cpp:
2843 (WebCore::HTMLMediaElement::parseAttribute):
2845 2014-01-10 Anders Carlsson <andersca@apple.com>
2847 Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
2848 https://bugs.webkit.org/show_bug.cgi?id=126801
2850 Reviewed by Sam Weinig.
2852 * GNUmakefile.list.am:
2853 * WebCore.vcxproj/WebCore.vcxproj:
2854 * WebCore.vcxproj/WebCore.vcxproj.filters:
2855 * WebCore.xcodeproj/project.pbxproj:
2856 * loader/EmptyClients.cpp:
2857 (WebCore::fillWithEmptyClients):
2858 * loader/EmptyClients.h:
2859 * loader/FrameLoaderClient.h:
2860 * loader/ProgressTracker.cpp:
2861 (WebCore::ProgressTracker::ProgressTracker):
2862 (WebCore::ProgressTracker::~ProgressTracker):
2863 (WebCore::ProgressTracker::progressStarted):
2864 (WebCore::ProgressTracker::progressCompleted):
2865 (WebCore::ProgressTracker::finalProgressComplete):
2866 (WebCore::ProgressTracker::incrementProgress):
2867 * loader/ProgressTracker.h:
2868 * loader/ProgressTrackerClient.h: Added.
2869 (WebCore::ProgressTrackerClient::~ProgressTrackerClient):
2870 (WebCore::ProgressTrackerClient::progressTrackerDestroyed):
2871 (WebCore::ProgressTrackerClient::willChangeEstimatedProgress):
2872 (WebCore::ProgressTrackerClient::didChangeEstimatedProgress):
2874 (WebCore::Page::Page):
2875 (WebCore::Page::PageClients::PageClients):
2878 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2880 Fix RenderObject.o for iOS. Unreviewed build fix.
2882 r156285 renamed firstChild() to firstChildSlow(), so update
2883 occurances in IOS_TEXT_AUTOSIZING code. Also account for a
2884 RenderObject::style reference / pointer change.
2886 * rendering/RenderObject.cpp:
2887 (WebCore::RenderObject::traverseNext):
2888 (WebCore::includeNonFixedHeight):
2890 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2892 Fix MediaPlayerPrivateMediaSourceAVFObjC.o for iOS. Unreviewed build fix.
2894 Import CALayer, which Mac must have been getting some other way.
2896 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
2898 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2900 Fix TileGrid.o for iOS. Unreviewed build fix.
2902 Explicitly use namespace std in std::pair.
2904 * platform/ios/TileGrid.mm:
2905 (WebCore::isFartherAway):
2906 (WebCore::TileGrid::dropDistantTiles):
2908 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2910 Fix RenderImage.o for iOS. Unreviewed build fix.
2912 inlineBoxWrapper() returns an InlineElementBox type, which is an InlineBox but
2913 without including InlineElementBox.h, iOS didn't know what an InlineElementBox was!
2915 * rendering/RenderImage.cpp:
2917 2014-01-10 David Kilzer <ddkilzer@apple.com>
2919 [iOS] Fix macros in Scrollbar::supportsUpdateOnSecondaryThread()
2921 Fixes the following build error:
2923 WebCore/platform/Scrollbar.cpp:552:22: error: '__MAC_OS_X_VERSION_MIN_REQUIRED' is not defined, evaluates to 0 [-Werror,-Wundef]
2924 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 && ENABLE(ASYNC_SCROLLING)
2927 * platform/Scrollbar.cpp:
2928 (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
2930 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2932 Fix RenderFileUploadControl.o for iOS. Unreviewed build fix.
2934 WebCore::theme() returns a reference now, not a pointer.
2936 * rendering/RenderFileUploadControl.cpp:
2937 (WebCore::RenderFileUploadControl::paintObject):
2939 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2941 Fix HTMLPlugInImageElement.o for iOS. Unreviewed build fix.
2943 Forgot to upstream YouTubeEmbedShadowElement.*. Do so and
2944 add the files to the Xcode project so they build.
2946 * WebCore.xcodeproj/project.pbxproj:
2947 * html/shadow/YouTubeEmbedShadowElement.cpp: Added.
2948 (WebCore::YouTubeEmbedShadowElement::create):
2949 (WebCore::YouTubeEmbedShadowElement::YouTubeEmbedShadowElement):
2950 (WebCore::YouTubeEmbedShadowElement::pluginElement):
2951 (WebCore::YouTubeEmbedShadowElement::shadowPseudoId):
2952 * html/shadow/YouTubeEmbedShadowElement.h: Added.
2954 2014-01-10 David Kilzer <ddkilzer@apple.com>
2956 [iOS] Update EditorIOS.mm to switch from pointers to references
2958 * editing/ios/EditorIOS.mm:
2959 (WebCore::Editor::setTextAlignmentForChangedBaseWritingDirection):
2960 (WebCore::Editor::insertParagraphSeparatorInQuotedContent):
2961 (WebCore::styleForSelectionStart):
2962 (WebCore::Editor::selectionInWebArchiveFormat):
2963 (WebCore::Editor::writeImageToPasteboard):
2964 (WebCore::Editor::WebContentReader::readWebArchive):
2965 (WebCore::Editor::WebContentReader::readRTFD):
2966 (WebCore::Editor::WebContentReader::readRTF):
2967 (WebCore::uniqueURLWithRelativePart):
2968 (WebCore::Editor::WebContentReader::readPlainText):
2969 (WebCore::Editor::webContentFromPasteboard):
2970 (WebCore::Editor::createFragmentAndAddResources):
2971 (WebCore::Editor::createFragmentForImageResourceAndAddResource):
2973 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
2975 Web Inspector: Push InspectorAgent down into JSC, give JSC an InspectorController
2976 https://bugs.webkit.org/show_bug.cgi?id=126763
2978 Reviewed by Timothy Hatcher.
2980 No new tests, no observable change in functionality.
2983 * ForwardingHeaders/inspector/agent/InspectorAgent.h: Added.
2984 * GNUmakefile.list.am:
2985 * WebCore.vcxproj/WebCore.vcxproj:
2986 * WebCore.vcxproj/WebCore.vcxproj.filters:
2987 * WebCore.xcodeproj/project.pbxproj:
2988 * inspector/InspectorAllInOne.cpp:
2989 InspectorAgent moved to JavaScriptCore. Include forwarding header.
2991 * inspector/PageConsoleAgent.cpp:
2992 (WebCore::PageConsoleAgent::PageConsoleAgent):
2993 (WebCore::PageConsoleAgent::~PageConsoleAgent):
2994 * inspector/PageConsoleAgent.h:
2995 (WebCore::PageConsoleAgent::create):
2996 * inspector/InspectorApplicationCacheAgent.cpp:
2997 * inspector/InspectorApplicationCacheAgent.h:
2998 InspectorAgent was not used by these files, remove it.
3000 * inspector/CommandLineAPIHost.cpp:
3001 * inspector/CommandLineAPIHost.h:
3002 (WebCore::CommandLineAPIHost::init):
3003 * inspector/InspectorInstrumentation.cpp:
3004 * inspector/InstrumentingAgents.h:
3005 (WebCore::InstrumentingAgents::inspectorAgent):
3006 (WebCore::InstrumentingAgents::setInspectorAgent):
3007 Switch to Inspector::InspectorAgent where applicable.
3009 * inspector/InspectorController.cpp:
3010 (WebCore::InspectorController::InspectorController):
3011 * inspector/InspectorController.h:
3012 Manually add InspectorAgent to the InstrumentingAgents. It is one
3013 of the agents that is always available in InstrumentingAgents.
3015 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3017 Add TextAutoSizing.* for iOS, and fix DeviceOrientationController creation.
3019 * WebCore.xcodeproj/project.pbxproj:
3021 (WebCore::Document::Document):
3022 * rendering/TextAutoSizing.cpp: Added.
3023 (WebCore::cloneRenderStyleWithState):
3024 (WebCore::TextAutoSizingKey::TextAutoSizingKey):
3025 (WebCore::TextAutoSizingKey::~TextAutoSizingKey):
3026 (WebCore::TextAutoSizingKey::operator=):
3027 (WebCore::TextAutoSizingKey::ref):
3028 (WebCore::TextAutoSizingKey::deref):
3029 (WebCore::TextAutoSizingValue::numNodes):
3030 (WebCore::TextAutoSizingValue::addNode):
3031 (WebCore::TextAutoSizingValue::adjustNodeSizes):
3032 (WebCore::TextAutoSizingValue::reset):
3033 * rendering/TextAutoSizing.h: Added.
3034 (WebCore::TextAutoSizingKey::doc):
3035 (WebCore::TextAutoSizingKey::style):
3036 (WebCore::TextAutoSizingKey::isValidDoc):
3037 (WebCore::TextAutoSizingKey::isValidStyle):
3038 (WebCore::TextAutoSizingKey::deletedKeyDoc):
3039 (WebCore::TextAutoSizingKey::deletedKeyStyle):
3040 (WebCore::operator==):
3041 (WebCore::TextAutoSizingHash::hash):
3042 (WebCore::TextAutoSizingHash::equal):
3043 (WebCore::TextAutoSizingValue::create):
3044 (WebCore::TextAutoSizingValue::TextAutoSizingValue):
3046 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3048 Fix GraphicsLayerCA.o for iOS. Unreviewed build fix.
3050 Use of systemMemoryLevel was missing include of SystemMemory.h.
3052 * platform/graphics/ca/GraphicsLayerCA.cpp:
3054 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3058 * bindings/objc/DOM.mm:
3059 (-[DOMRange renderedImageForcingBlackText:renderedImageForcingBlackText:]):
3060 * bindings/objc/DOMExtensions.h:
3061 * platform/DragImage.h:
3063 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3067 Generated DOMTouch* and DOMGesture* files need to be in the project.
3068 Exclude them on Mac via EXCLUDED_SOURCE_FILE_NAMES_macosx.
3070 Use TARGET_OS_IPHONE instead of TARGET_OS_EMBEDDED in DOMPrivate.h
3072 * Configurations/WebCore.xcconfig:
3073 * WebCore.xcodeproj/project.pbxproj:
3074 * bindings/objc/DOMPrivate.h:
3076 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3078 Fix RenderThemeIOS.o for iOS. Unreviewed build fix.
3080 Typo referring to generated name. Should be "iOS" not "IOS".
3082 * rendering/RenderThemeIOS.mm:
3083 (WebCore::RenderThemeIOS::mediaControlsScript):
3085 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3087 Fix WebAccessibilityObjectWrapperIOS.o for iOS. Unreviewed build fix.
3089 The upstreamed WebAccessibilityObjectWrapperIOS.mm was out of date, e.g.
3090 it was using GSFonts. Just upstream a newer version of the file. Also
3091 explicitly namespace qualify std::pair.
3093 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
3094 (AXAttributeStringSetStyle):
3096 2014-01-10 Jinwoo Song <jinwoo7.song@samsung.com>
3098 Remove willRespondToTouchEvents() which was used by chromium port
3099 https://bugs.webkit.org/show_bug.cgi?id=126739
3101 Reviewed by Alexey Proskuryakov.
3103 willRespondToTouchEvents() was added to check if a node listens to touch events in r126945.
3104 However, it is not used anywhere after chromium port is removed.
3109 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3111 Fix SystemVersionMac.o for iOS. Unreviewed build fix.
3113 Add missing expected function. Maybe we can avoid including
3114 this file entirely on iOS, there was already a FIXME.
3116 * platform/mac/SystemVersionMac.mm:
3117 (WebCore::systemMarketingVersion):
3119 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3121 Fix JSDOMWindowBase.o for iOS. Unreviewed build fix.
3123 Add missing iOS method declarations.
3125 * bindings/js/JSDOMWindowBase.h:
3127 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3129 Fix InputType.o for iOS. Unreviewed build fix.
3131 The RuntimeEnabledFeatures function pointer type should have a
3132 const qualifier, because the implementations are all const.
3134 * html/InputType.cpp:
3136 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3138 Fix MediaPlayerPrivateIOS.o for iOS. Unreviewed build fix.
3140 Add missing MediaPlayerProxy Objective C methods and forward declarations.
3142 * platform/graphics/mac/MediaPlayerProxy.h:
3144 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3146 Fix FrameSelection.o for iOS. Unreviewed build fix.
3148 r160966 renamed rendererIsEditable to hasEditableStyle.
3150 * editing/FrameSelection.cpp:
3151 (WebCore::FrameSelection::setSelectionFromNone):
3153 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3155 Fix DragData.o for iOS. Unreviewed build fix.
3157 String m_pasteboardName is unused on iOS, so ifdef it out.
3159 * platform/DragData.h:
3161 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3163 Fix FrameIOS.o for iOS. Unreviewed build fix.
3165 Remove stale include to file that no longer exists. It was not needed.
3167 * page/ios/FrameIOS.mm:
3169 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3171 Fix MonthInputType.o for iOS. Unreviewed build fix.
3173 When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876,
3174 the wrong class name lingered. Fix it to be the base class.
3176 * html/TimeInputType.cpp:
3177 (WebCore::TimeInputType::TimeInputType):
3179 2014-01-10 Andy Estes <aestes@apple.com>
3181 [iOS] Build fix: make sure WTF_PLATFORM_IOS is defined when preprocessing
3183 * DerivedSources.make:
3184 * bindings/scripts/preprocessor.pm:
3185 (applyPreprocessor):
3187 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3189 Use TARGET_OS_IPHONE in this API file, and #if TARGET_OS_MAC
3190 for a non-iOS function.
3192 * bindings/objc/DOMExtensions.h:
3194 2014-01-10 David Kilzer <ddkilzer@apple.com>
3196 Clean up architectures in xcconfig files
3197 <http://webkit.org/b/126794>
3199 Reviewed by Andy Estes.
3201 * Configurations/Base.xcconfig:
3202 * Configurations/WebCore.xcconfig: Remove armv6.
3203 * DerivedSources.make: Remove armv6, armv7f. Sort.
3206 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3210 * Configurations/WebCore.xcconfig:
3211 * css/DeprecatedStyleBuilder.cpp:
3212 (WebCore::ApplyPropertyLineHeightForIOSTextAutosizing::applyValue):
3214 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3218 * html/DateTimeLocalInputType.h:
3219 (WebCore::DateTimeLocalInputType::DateTimeLocalInputType):
3220 * loader/ios/DiskImageCacheIOS.h:
3222 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3224 iOS build fix: add StyleRareInheritedData::compositionFillColor
3226 * rendering/style/RenderStyle.h:
3227 * rendering/style/StyleRareInheritedData.cpp:
3228 (WebCore::StyleRareInheritedData::StyleRareInheritedData):
3229 (WebCore::StyleRareInheritedData::operator==):
3230 * rendering/style/StyleRareInheritedData.h:
3232 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3234 Fix MonthInputType.o for iOS. Unreviewed build fix.
3236 When ENABLE_INPUT_MULTIPLE_FIELDS_UI was removed in r150876, the
3237 BaseMonthInputType typedef was removed. However a use of it lingered.
3238 Changing to match the base class name.
3240 * html/MonthInputType.h:
3241 (WebCore::MonthInputType::MonthInputType):
3243 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3245 Fix RenderButton.o for iOS. Unreviewed build fix.
3247 Missing prototype in header for override of the layout method.
3249 * rendering/RenderButton.h:
3251 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3253 A couple of iOS build fixes.
3255 * accessibility/ios/AXObjectCacheIOS.mm:
3256 (WebCore::AXObjectCache::handleFocusedUIElementChanged):
3257 * html/canvas/CanvasRenderingContext2D.cpp:
3258 (WebCore::CanvasRenderingContext2D::drawImage):
3260 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3262 Fix PlatformScreenIOS.mm for iOS. Unreviewed build fix.
3264 PlatformScreen.h removed screenVerticalDPI and screenHorizontalDPI in r132419,
3265 so remove the stale implementations on iOS. Also, add a notImplemented version
3266 of screenColorProfile, which matches Mac and is unused in WebCore for this port.
3268 * platform/ios/PlatformScreenIOS.mm:
3269 (WebCore::screenColorProfile):
3271 2014-01-10 Anders Carlsson <andersca@apple.com>
3274 https://bugs.webkit.org/show_bug.cgi?id=126795
3276 Reviewed by Tim Horton.
3279 (WebCore::Frame::Frame):
3280 * page/FrameTree.cpp:
3281 (WebCore::FrameTree::transferChild):
3282 (WebCore::FrameTree::appendChild):
3283 (WebCore::FrameTree::actuallyAppendChild):
3284 (WebCore::FrameTree::uniqueChildName):
3285 (WebCore::FrameTree::scopedChild):
3286 (WebCore::FrameTree::scopedChildCount):
3287 (WebCore::FrameTree::child):
3288 (WebCore::FrameTree::find):
3289 (WebCore::FrameTree::isDescendantOf):
3290 (WebCore::FrameTree::traverseNext):
3291 (WebCore::FrameTree::traverseNextWithWrap):
3292 (WebCore::FrameTree::traversePreviousWithWrap):
3293 (WebCore::FrameTree::deepLastChild):
3294 (WebCore::FrameTree::top):
3296 (WebCore::FrameTree::FrameTree):
3298 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3302 * loader/ResourceLoader.h:
3304 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3308 * platform/graphics/ImageSource.h:
3309 (WebCore::ImageSource::acceleratedImageDecodingEnabled):
3310 (WebCore::ImageSource::setAcceleratedImageDecodingEnabled):
3312 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3314 Unreviewed EFL build fix after r161678.
3316 static_cast a size_t to unsigned long for %lu format string.
3319 (WebCore::internalAddMessage):
3321 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3323 Remove the BlackBerry port from trunk
3324 https://bugs.webkit.org/show_bug.cgi?id=126715
3326 Reviewed by Anders Carlsson.
3328 * html/canvas/WebGLRenderingContext.cpp:
3329 (WebCore::WebGLRenderingContext::readPixels):
3330 * platform/graphics/ImageBuffer.cpp:
3331 * platform/graphics/ImageBufferData.h:
3332 * platform/graphics/IntPoint.h:
3333 * platform/graphics/IntRect.h:
3334 * platform/graphics/IntSize.h:
3335 * platform/graphics/MediaPlayer.cpp:
3336 * platform/graphics/NativeImagePtr.h:
3337 * platform/graphics/OpenGLESShims.h:
3338 * platform/graphics/Path.cpp:
3339 (WebCore::Path::addPathForRoundedRect):
3340 * platform/graphics/Path.h:
3341 * platform/graphics/PlatformLayer.h:
3342 * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
3343 * platform/graphics/filters/CustomFilterValidatedProgram.h:
3344 * platform/graphics/filters/FilterOperation.h:
3345 * platform/graphics/gpu/DrawingBuffer.cpp:
3346 * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
3347 * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
3348 (WebCore::Extensions3DOpenGLES::getGraphicsResetStatusARB):
3349 * platform/graphics/opengl/Extensions3DOpenGLES.h:
3350 * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
3351 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
3352 (WebCore::GraphicsContext3D::prepareTexture):
3353 (WebCore::GraphicsContext3D::bindFramebuffer):
3354 (WebCore::GraphicsContext3D::compileShader):
3355 (WebCore::GraphicsContext3D::copyTexImage2D):
3356 (WebCore::GraphicsContext3D::copyTexSubImage2D):
3357 * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
3358 (WebCore::GraphicsContext3D::readPixels):
3359 (WebCore::GraphicsContext3D::readPixelsAndConvertToBGRAIfNecessary):
3360 (WebCore::GraphicsContext3D::reshapeFBOs):
3361 * platform/network/NetworkStateNotifier.h:
3362 * platform/network/ResourceHandle.h:
3363 * platform/network/ResourceHandleInternal.h:
3364 * platform/network/ResourceRequestBase.cpp:
3366 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3368 Fix CharsetData.cpp build for iOS
3369 https://bugs.webkit.org/show_bug.cgi?id=126792
3371 Reviewed by Mark Rowe.
3373 CharsetData.cpp should have an empty CharsetTable list for iOS.
3374 Achieve this with an iOS-specific encodings.txt file.
3376 * DerivedSources.make:
3377 * WebCore.xcodeproj/project.pbxproj:
3378 * platform/text/mac/ios-encodings.txt: Added.
3380 2014-01-10 Anders Carlsson <andersca@apple.com>
3382 CTTE in NavigationScheduler
3383 https://bugs.webkit.org/show_bug.cgi?id=126788
3385 Reviewed by Tim Horton.
3387 * inspector/InspectorInstrumentation.cpp:
3388 (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl):
3389 (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl):
3390 * inspector/InspectorInstrumentation.h:
3391 (WebCore::InspectorInstrumentation::frameScheduledNavigation):
3392 (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation):
3393 * inspector/InspectorPageAgent.cpp:
3394 (WebCore::InspectorPageAgent::frameScheduledNavigation):
3395 (WebCore::InspectorPageAgent::frameClearedScheduledNavigation):
3396 * inspector/InspectorPageAgent.h:
3397 * loader/NavigationScheduler.cpp:
3398 (WebCore::ScheduledNavigation::shouldStartTimer):
3399 (WebCore::ScheduledNavigation::didStartTimer):
3400 (WebCore::ScheduledNavigation::didStopTimer):
3401 (WebCore::NavigationScheduler::NavigationScheduler):
3402 (WebCore::NavigationScheduler::clear):
3403 (WebCore::NavigationScheduler::shouldScheduleNavigation):
3404 (WebCore::NavigationScheduler::scheduleRedirect):
3405 (WebCore::NavigationScheduler::mustLockBackForwardList):
3406 (WebCore::NavigationScheduler::scheduleLocationChange):
3407 (WebCore::NavigationScheduler::scheduleFormSubmission):
3408 (WebCore::NavigationScheduler::scheduleRefresh):
3409 (WebCore::NavigationScheduler::scheduleHistoryNavigation):
3410 (WebCore::NavigationScheduler::timerFired):
3411 (WebCore::NavigationScheduler::schedule):
3412 (WebCore::NavigationScheduler::startTimer):
3413 (WebCore::NavigationScheduler::cancel):
3414 * loader/NavigationScheduler.h:
3416 (WebCore::Frame::Frame):
3418 2014-01-10 Myles C. Maxfield <mmaxfield@apple.com>
3420 CSS word-spacing property does not obey percentages
3421 https://bugs.webkit.org/show_bug.cgi?id=126674
3423 Reviewed by Simon Fraser.
3425 One change between CSS2.1 and CSS3 is that the word-spacing CSS property can
3426 take percentages (of the width of the space character) in CSS3. In order to
3427 implement this, the datatype must be changed from a float to a Length, which
3428 can hold percentage values. Then, during layout, we can query the width of
3429 the space character and update the Font's word-spacing value appropriately.
3430 However, the RenderStyle still holds on to the Length (as a rare inherited
3433 Tests: fast/css3-text/css3-word-spacing-percentage/word-spacing-change-font.html
3434 fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage-parse.html
3435 fast/css3-text/css3-word-spacing-percentage/word-spacing-percentage.html
3437 * css/CSSComputedStyleDeclaration.cpp:
3438 (WebCore::ComputedStyleExtractor::propertyValue): Use Font's computed value instead
3439 of style's Length value.
3440 * css/CSSParser.cpp:
3441 (WebCore::CSSParser::parseValue): word-spacing and letter-spacing no longer are
3442 parsed the same way.
3443 * css/DeprecatedStyleBuilder.cpp:
3444 (WebCore::ApplyPropertyWordSpacing::applyValue): Construct a length from a given
3445 CSSValue and set the style's word spacing with it.
3446 (WebCore::ApplyPropertyWordSpacing::createHandler):
3447 (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Use ApplyPropertyWordSpacing.
3448 * page/animation/CSSPropertyAnimation.cpp:
3449 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
3450 * rendering/RenderBlockLineLayout.cpp:
3451 (WebCore::setLogicalWidthForTextRun): Use Font's computed value instead
3452 of style's Length value.
3453 * rendering/RenderText.cpp:
3454 (WebCore::RenderText::computePreferredLogicalWidths): Ditto.
3455 * rendering/SimpleLineLayout.cpp:
3456 (WebCore::SimpleLineLayout::canUseFor): Opt-out of the SimpleLineLayout
3457 if either the percentage or the length is nonzero.
3458 * rendering/line/BreakingContextInlineHeaders.h:
3459 (WebCore::BreakingContext::handleText): Use Font's computed value instead
3460 of style's Length value.
3461 * rendering/style/RenderStyle.cpp:
3462 (WebCore::RenderStyle::wordSpacing):
3463 (WebCore::RenderStyle::setWordSpacing): Consult the Font's space with to compute
3464 percentage values, but hold on to the original Length.
3465 * rendering/style/RenderStyle.h:
3466 * rendering/style/StyleRareInheritedData.cpp:
3467 * rendering/style/StyleRareInheritedData.h: Hold on to the specified Length
3469 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3473 * platform/audio/mac/MediaSessionManagerMac.cpp:
3475 2014-01-10 Simon Fraser <simon.fraser@apple.com>
3477 iOS doesn't have <OpenGL/gl.h>; fix iOS build.
3479 * platform/graphics/opengl/TemporaryOpenGLSetting.cpp:
3481 2014-01-10 Andy Estes <aestes@apple.com>
3483 [iOS] Build Fix: Properly add $SDKROOT/usr/local/include/ to the search path when building PublicDOMInterfaces.h
3485 * bindings/scripts/CodeGeneratorObjC.pm:
3486 (ReadPublicInterfaces):
3488 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3490 Web Inspector: Remove unimplemented or static ScriptDebugServer features
3491 https://bugs.webkit.org/show_bug.cgi?id=126784
3493 Reviewed by Timothy Hatcher.
3495 These features are unimplemented in the backend, and unused by the
3496 current frontend. Most deal with features that were supported by v8
3497 and are as yet unimplemented by JSC. If we decide to add such features
3498 we can reimplement without conforming to an old implementation.
3500 * bindings/js/ScriptDebugServer.cpp:
3501 * bindings/js/ScriptDebugServer.h:
3502 * bindings/js/ScriptProfiler.h:
3503 * inspector/InspectorDebuggerAgent.cpp:
3504 (WebCore::InspectorDebuggerAgent::disable):
3505 * inspector/InspectorDebuggerAgent.h:
3506 * inspector/InspectorPageAgent.cpp:
3507 (WebCore::InspectorPageAgent::reload):
3508 (WebCore::InspectorPageAgent::frameNavigated):
3509 * inspector/InspectorPageAgent.h:
3510 * inspector/InspectorProfilerAgent.cpp:
3511 * inspector/InspectorProfilerAgent.h:
3512 * inspector/PageDebuggerAgent.cpp:
3513 (WebCore::PageDebuggerAgent::didClearMainFrameWindowObject):
3514 * inspector/protocol/Page.json:
3515 * inspector/protocol/Profiler.json:
3517 2014-01-10 David Kilzer <ddkilzer@apple.com>
3519 [iOS] Remove unused variable from TileGrid::dropTilesBetweenRects()
3521 Fixes the following build error:
3523 WebCore/platform/ios/TileGrid.mm:88:23: error: unused variable 'end' [-Werror,-Wunused-variable]
3524 TileMap::iterator end = m_tiles.end();
3527 * platform/ios/TileGrid.mm:
3528 (WebCore::TileGrid::dropTilesBetweenRects): Remove unused
3529 variable now that the for loop uses an auto iterator.
3531 2014-01-10 Dean Jackson <dino@apple.com>
3533 Implement OES texture half float linear
3534 https://bugs.webkit.org/show_bug.cgi?id=125060
3536 Reviewed by Brent Fulgham.
3538 Test: fast/canvas/webgl/oes-texture-half-float-linear.html
3540 * CMakeLists.txt: Add new files.
3541 * DerivedSources.cpp: Ditto.
3542 * DerivedSources.make: Generate new file from IDL.
3543 * GNUmakefile.list.am: Add new files.
3544 * WebCore.vcxproj/WebCore.vcxproj: Ditto.
3545 * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
3546 * WebCore.xcodeproj/project.pbxproj: New files for OESTextureHalfFloatLinear.
3548 * bindings/js/JSWebGLRenderingContextCustom.cpp:
3549 (WebCore::toJS): Map from extension name to native object.
3551 * html/canvas/OESTextureHalfFloatLinear.cpp: Added. New files. These are boiler-plate.
3552 * html/canvas/OESTextureHalfFloatLinear.h: Added.
3553 * html/canvas/OESTextureHalfFloatLinear.idl: Added.
3555 * html/canvas/WebGLExtension.h: Add new enum for the new extension.
3557 * html/canvas/WebGLRenderingContext.cpp:
3558 (WebCore::WebGLRenderingContext::getExtension): Create the extension object if the
3559 context is asked for one.
3560 (WebCore::WebGLRenderingContext::getSupportedExtensions): Add the new extension to the
3561 list of supported extensions. Actually remember to do it this time :)
3562 (WebCore::WebGLRenderingContext::checkTextureCompleteness): Need to check for the half-float
3563 extension as well, and update the log message.
3564 * html/canvas/WebGLRenderingContext.h: New extension object.
3566 * html/canvas/WebGLTexture.cpp:
3567 (WebCore::WebGLTexture::WebGLTexture):
3568 (WebCore::WebGLTexture::needToUseBlackTexture): Check for half-float type.
3569 (WebCore::WebGLTexture::update): Mark a texture as half-float if necessary.
3570 * html/canvas/WebGLTexture.h:
3572 * platform/graphics/Extensions3D.h: Add a comment about the new extension.
3573 * platform/graphics/opengl/Extensions3DOpenGL.cpp:
3574 (WebCore::Extensions3DOpenGL::supportsExtension): This extension is available
3575 when GL_ARB_texture_float is supported, so add the name to the translation.
3577 2014-01-10 Brent Fulgham <bfulgham@apple.com>
3579 [WebGL] Correct uniform input validation for texture sampler uniform
3580 https://bugs.webkit.org/show_bug.cgi?id=126775
3582 Reviewed by Dean Jackson.
3584 Added fast/canvas/webgl/uniform-samplers-test.html
3586 * html/canvas/WebGLRenderingContext.cpp:
3587 (WebCore::WebGLRenderingContext::uniform1iv): Access Int32Array data properly.
3589 2014-01-10 Manuel Rego Casasnovas <rego@igalia.com>
3591 [GTK] Unreviewed build fix after r161644.
3593 * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
3594 (WebCore::MediaStreamAudioSourceNode::setFormat):
3596 2014-01-10 Anders Carlsson <andersca@apple.com>
3598 Remove an unused FrameLoader function
3599 https://bugs.webkit.org/show_bug.cgi?id=126785
3601 Reviewed by Beth Dakin.
3604 * loader/FrameLoader.cpp:
3605 (WebCore::FrameLoader::setState):
3606 * loader/FrameLoader.h:
3608 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3610 Remove the BlackBerry port from trunk
3611 https://bugs.webkit.org/show_bug.cgi?id=126715
3613 Reviewed by Anders Carlsson.
3615 * platform/MIMETypeRegistry.cpp:
3616 (WebCore::initializeSupportedImageMIMETypesForEncoding):
3617 * platform/PlatformKeyboardEvent.h:
3618 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
3619 * platform/PlatformMouseEvent.h:
3620 * platform/PlatformTouchEvent.h:
3621 (WebCore::PlatformTouchEvent::PlatformTouchEvent):
3622 * platform/PlatformTouchPoint.h:
3623 * platform/ScrollAnimatorNone.cpp:
3624 (WebCore::ScrollAnimator::create):
3626 (WebCore::URL::parse):
3627 (WebCore::portAllowed):
3628 * platform/Widget.h:
3629 * platform/graphics/ANGLEWebKitBridge.h:
3630 * platform/graphics/DisplayRefreshMonitor.cpp:
3631 (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
3632 * platform/graphics/DisplayRefreshMonitor.h:
3633 * platform/graphics/FloatPoint.h:
3634 * platform/graphics/FloatRect.h:
3635 * platform/graphics/FloatSize.h:
3636 * platform/graphics/FontCache.h:
3637 * platform/graphics/FontPlatformData.h:
3638 * platform/graphics/GlyphBuffer.h:
3639 * platform/graphics/Gradient.cpp:
3640 * platform/graphics/Gradient.h:
3641 * platform/graphics/GraphicsContext.h:
3642 * platform/graphics/GraphicsContext3D.h:
3644 2014-01-10 Timothy Hatcher <timothy@apple.com>
3646 Clean up and fix some issues with stdout formatting of console messages.
3648 * Fix URLs not printing line numbers unless column number is > 0.
3649 * Change "CONSOLEAPI" to "CONSOLE" for the source.
3650 * Clean up how console.trace outputs and print URL, line and column for each frame.
3651 * Print "(unknown)" for anonymous and native code call frames.
3653 https://bugs.webkit.org/show_bug.cgi?id=126767
3655 Reviewed by Joseph Pecoraro.
3658 (WebCore::internalAddMessage):
3659 * page/PageConsole.cpp:
3660 (WebCore::PageConsole::printSourceURLAndPosition):
3661 (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
3662 * page/PageConsole.h:
3664 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3666 [iOS] Fill in missing WebCoreThread function pointers
3667 https://bugs.webkit.org/show_bug.cgi?id=126776
3669 Reviewed by Timothy Hatcher.
3671 * platform/ios/wak/WebCoreThreadSystemInterface.cpp:
3672 (InitWebCoreThreadSystemInterface):
3674 2014-01-10 Yongjun Zhang <yongjun_zhang@apple.com>
3676 Clear unparented tiled layers on memory pressure.
3677 https://bugs.webkit.org/show_bug.cgi?id=126737
3679 Reviewed by Simon Fraser.
3681 TileController hold unparented tiles for a short period of time (1 -3 sec); we should clear these unparented
3682 tiles immediately if we are under memory pressure.
3684 The patch does 3 things to improve the behavior:
3685 1) When the system free memory is low (<35%), reduce the tiling threshold. This could reduce
3686 the peak memory usage when system is under low memory since we will convert more web layers into
3688 2) Under memory pressure, immediately clear all unparented tiles.
3689 3) Add a cap (16 tiles) to limit the total number of unparented tiles in TileController's.
3692 * WebCore.xcodeproj/project.pbxproj: Add a new class TileControllerMemoryHandler.
3693 * platform/graphics/ca/GraphicsLayerCA.cpp:
3694 (WebCore::GraphicsLayerCA::requiresTiledLayer): Use a smaller tiling threshold if the system free memory is low.
3695 * platform/graphics/ca/mac/TileController.h:
3696 (WebCore::TileController::numberOfUnparentedTiles):
3697 * platform/graphics/ca/mac/TileController.mm:
3698 (WebCore::TileController::startedNewCohort):
3699 (WebCore::TileController::removeUnparentedTilesNow): Remove all unparentd tiles.
3700 * platform/ios/MemoryPressureHandlerIOS.mm:
3701 * platform/ios/TileControllerMemoryHandlerIOS.cpp: Added.
3702 (WebCore::TileControllerMemoryHandler::removeTileController):
3703 (WebCore::TileControllerMemoryHandler::totalUnparentedTiledLayers):
3704 (WebCore::TileControllerMemoryHandler::tileControllerGainUnparentedTiles):
3705 (WebCore::TileControllerMemoryHandler::trimUnparentedTilesToTarget): Trims the number of unparented tiles until
3706 it reaches the target.
3707 (WebCore::tileControllerMemoryHandler):
3708 * platform/ios/TileControllerMemoryHandlerIOS.h: Added.
3709 (WebCore::TileControllerMemoryHandler::TileControllerMemoryHandler):
3711 2014-01-10 Joseph Pecoraro <pecoraro@apple.com>
3713 [CSS Blending] Log blending as a layer creation reason in the WI
3714 https://bugs.webkit.org/show_bug.cgi?id=126159
3716 Reviewed by Timothy Hatcher.
3718 * inspector/InspectorLayerTreeAgent.cpp:
3719 (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
3720 * inspector/protocol/LayerTree.json:
3722 2014-01-10 Andy Estes <aestes@apple.com>
3724 Fix some iOS build errors during bindings generation.
3726 * bindings/objc/PublicDOMInterfaces.h: Included
3727 WebKitAdditions/PublicDOMInterfacesIOS.h and change
3728 -[DOMRGBColor color] to return a CGColorRef on iOS.
3730 2014-01-10 Timothy Hatcher <timothy@apple.com>
3732 Prevent some resources from showing up in Web Inspector as years in duration.
3734 No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
3736 https://bugs.webkit.org/show_bug.cgi?id=126760
3738 Reviewed by Joseph Pecoraro.
3740 * inspector/InspectorInstrumentation.cpp:
3741 (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
3742 Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
3744 2014-01-10 Dirk Schulze <krit@webkit.org>
3746 Make clipping path from basic-shapes relative to <box> value
3747 https://bugs.webkit.org/show_bug.cgi?id=126206
3749 Reviewed by Simon Fraser.
3751 Tests: css3/masking/clip-path-circle-border-box.html
3752 css3/masking/clip-path-circle-bounding-box.html
3753 css3/masking/clip-path-circle-content-box.html
3754 css3/masking/clip-path-circle-margin-box.html
3755 css3/masking/clip-path-circle-padding-box.html
3757 * rendering/RenderLayer.cpp:
3758 (WebCore::RenderLayer::setupClipPath): Add switch to differ between boxes
3759 and use different reference boxes to size the clipping path.
3761 2014-01-10 Youenn Fablet <youennf@gmail.com>
3764 Correctly set XHR loadend attributes (loaded and total).
3765 https://bugs.webkit.org/show_bug.cgi?id=120828
3767 Reviewed by Alexey Proskuryakov.
3769 Added correct initialization of lengthComputable, loaded and total attributes
3770 to XHR ProgressEvent events (load, loadstart, loadend, abort, error and timeout).
3772 XMLHttpRequestProgressEventThrottle and XMLHttpRequestUpload now keep persistent knowledge
3773 of m_loaded and m_total values with this patch.
3775 Code refactoring to handle event dispatching in case of error in a single manner.
3776 XMLHttpRequestProgressEventThrottle::dispatchProgressEvent is renamed as dispatchThrottledProgressEvent
3777 XMLHttpRequestProgressEventThrottle::dispatchEventAndLoadend is replaced by dispatchProgressEvent(const AtomicString&)
3779 Fixed assertion issues over bug 120828 patch
3781 Tests: http/tests/xmlhttprequest/loadstart-event-init.html
3782 http/tests/xmlhttprequest/onabort-progressevent-attributes.html
3783 http/tests/xmlhttprequest/onload-progressevent-attributes.html
3784 http/tests/xmlhttprequest/upload-onabort-progressevent-attributes.html
3785 http/tests/xmlhttprequest/upload-onload-progressevent-attributes.html
3787 * xml/XMLHttpRequest.cpp:
3788 (WebCore::XMLHttpRequest::callReadyStateChangeListener): changed readystatechange event from ProgressEvent to Event (not cancellable, not bubblable) to better match the spec
3789 (WebCore::XMLHttpRequest::createRequest):
3790 (WebCore::XMLHttpRequest::abort): code refactoring to handle error event dispatching in a single way
3791 (WebCore::XMLHttpRequest::networkError): code refactoring to handle error event dispatching in a single way
3792 (WebCore::XMLHttpRequest::abortError): code refactoring to handle error event dispatching in a single way
3793 (WebCore::XMLHttpRequest::didSendData):
3794 (WebCore::XMLHttpRequest::didReceiveData):
3795 (WebCore::XMLHttpRequest::dispatchErrorEvents): dispatch progress events in case of error
3796 (WebCore::XMLHttpRequest::didTimeout): code refactoring to handle error event dispatching in a single way
3797 * xml/XMLHttpRequest.h:
3798 * xml/XMLHttpRequestProgressEventThrottle.cpp: before the patch, the fact that a progress event is being throttled is stored indirectly (m_loaded or m_total not equal to zero). With the patch, this information is stored in m_hasThrottledProgressEvent. The m_loaded and m_total values are no longer set back to zero after a progress event is dispatched. This allows using these values to correctly initialize other ProgressEvent events (in particular loadend, abort, timeout...)
3799 (WebCore::XMLHttpRequestProgressEventThrottle::XMLHttpRequestProgressEventThrottle):
3800 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchThrottledProgressEvent): always update the new m_loaded and m_total values. If progress event is not sent as part of the function call, store the fact that a progress event is being throttled through m_hasThrottledProgressEvent.
3801 (WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent): used to send any ProgressEvent event that is not be throttled
3802 (WebCore::XMLHttpRequestProgressEventThrottle::flushProgressEvent): after the call, no progress event is throttled anymore
3803 (WebCore::XMLHttpRequestProgressEventThrottle::fired): after the call, no progress event is throttled anymore
3804 (WebCore::XMLHttpRequestProgressEventThrottle::hasEventToDispatch):
3805 (WebCore::XMLHttpRequestProgressEventThrottle::suspend):
3806 * xml/XMLHttpRequestProgressEventThrottle.h: introduced m_hasThrottledProgressEvent which stores whether a progress event is being throttled and m_computableLength which is used to initialize ProgressEvent computableLength
3807 * xml/XMLHttpRequestUpload.cpp:
3808 (WebCore::XMLHttpRequestUpload::XMLHttpRequestUpload):
3809 (WebCore::XMLHttpRequestUpload::dispatchProgressEvent):
3810 * xml/XMLHttpRequestUpload.h: introduced m_loaded, m_total and m_lengthComputable, similarly to XMLHttpRequestProgressEventThrottle
3812 2014-01-10 Bear Travis <betravis@adobe.com>
3814 [CSS Shapes] Change parseBasicShape to return a CSSPrimitiveValue
3815 https://bugs.webkit.org/show_bug.cgi?id=126713
3817 Reviewed by Dirk Schulze.
3819 Avoid the duplicated code wrapping the CSSBasicShape in a CSSPrimitiveValue
3820 by having parseBasicShape return a CSSPrimitiveValue reference.
3822 Refactoring, no new tests.
3824 * css/CSSParser.cpp:
3825 (WebCore::CSSParser::parseShapeProperty):
3826 (WebCore::CSSParser::parseClipPath):
3827 (WebCore::CSSParser::parseBasicShape):
3830 2014-01-10 Piotr Grad <p.grad@samsung.com>
3832 Possible crash in ApplicationCache::removeResource.
3833 https://bugs.webkit.org/show_bug.cgi?id=126695
3835 Reviewed by Alexey Proskuryakov.
3839 Iterator variable was used after it was removed.
3841 * loader/appcache/ApplicationCache.cpp:
3842 (WebCore::ApplicationCache::removeResource):
3844 2014-01-10 Daniel Bates <dabates@apple.com>
3846 Another build fix for the Production Mac build following <http://trac.webkit.org/changeset/161638>
3847 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3849 Move the logic for appending the port-specific IDL files {Touch, TouchEvent, TouchList}.idl to the
3850 list of binding IDLs (BINDING_IDLS) before the definition of variables DOM_CLASSES and JS_DOM_HEADERS
3851 so that we generate the DOM and JS bindings for these IDLs.
3853 * DerivedSources.make:
3855 2014-01-10 Anders Carlsson <andersca@apple.com>
3857 Remove supportMultipleWindows setting
3858 https://bugs.webkit.org/show_bug.cgi?id=126772
3860 Reviewed by Beth Dakin.
3862 This setting was added in https://bugs.webkit.org/show_bug.cgi?id=99716 for the Chromium port
3863 and is unused by everyone else so get rid of it.
3865 * loader/FrameLoader.cpp:
3866 (WebCore::createWindow):
3867 * page/ContextMenuController.cpp:
3868 (WebCore::openNewWindow):
3871 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3873 Remove the BlackBerry port from trunk
3874 https://bugs.webkit.org/show_bug.cgi?id=126715
3876 Reviewed by Anders Carlsson.
3878 * dom/TouchEvent.cpp:
3879 (WebCore::TouchEvent::TouchEvent):
3880 (WebCore::TouchEvent::initTouchEvent):
3882 * dom/ViewportArguments.cpp:
3883 * dom/ViewportArguments.h:
3884 * history/HistoryItem.h:
3885 * loader/PingLoader.cpp:
3886 (WebCore::PingLoader::loadImage):
3887 (WebCore::PingLoader::sendPing):
3888 (WebCore::PingLoader::sendViolationReport):
3889 * loader/appcache/ApplicationCacheGroup.cpp:
3890 (WebCore::ApplicationCacheGroup::createResourceHandle):
3891 * loader/cache/CachedResource.cpp:
3892 (WebCore::CachedResource::load):
3893 * loader/icon/IconLoader.cpp:
3894 (WebCore::IconLoader::startLoading):
3895 * page/NavigatorBase.cpp:
3896 * page/Settings.cpp:
3897 * page/scrolling/ScrollingCoordinator.cpp:
3898 (WebCore::ScrollingCoordinator::create):
3899 * platform/Cursor.cpp:
3900 * platform/Cursor.h:
3901 (WebCore::Cursor::Cursor):
3902 * platform/DragData.h:
3903 * platform/DragImage.h:
3904 * plugins/PluginDatabase.cpp:
3905 (WebCore::PluginDatabase::defaultPluginDirectories):
3906 (WebCore::PluginDatabase::isPreferredPluginDirectory):
3907 * rendering/RenderLayerBacking.cpp:
3908 (WebCore::RenderLayerBacking::paintsIntoWindow):
3909 * rendering/RenderObject.cpp:
3910 (WebCore::RenderObject::shouldRespectImageOrientation):
3911 * testing/Internals.cpp:
3912 (WebCore::Internals::getCurrentCursorInfo):
3913 * workers/DefaultSharedWorkerRepository.cpp:
3914 (WebCore::SharedWorkerScriptLoader::load):
3915 * workers/Worker.cpp:
3916 (WebCore::Worker::create):
3917 * workers/WorkerGlobalScope.cpp:
3918 (WebCore::WorkerGlobalScope::importScripts):
3919 * workers/WorkerScriptLoader.cpp:
3920 (WebCore::WorkerScriptLoader::createResourceRequest):
3921 * workers/WorkerScriptLoader.h:
3922 * xml/XMLHttpRequest.cpp:
3923 (WebCore::XMLHttpRequest::createRequest):
3925 2014-01-10 Benjamin Poulain <bpoulain@apple.com>
3927 Remove the BlackBerry port from trunk
3928 https://bugs.webkit.org/show_bug.cgi?id=126715
3930 Reviewed by Anders Carlsson.
3932 * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
3933 (WebCore::initProtocolHandlerWhitelist):
3935 * bindings/generic/RuntimeEnabledFeatures.cpp:
3936 (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
3937 * bindings/js/GCController.cpp:
3938 (WebCore::GCController::GCController):
3939 (WebCore::GCController::garbageCollectSoon):
3940 * bindings/js/GCController.h:
3942 2014-01-10 Daniel Bates <dabates@apple.com>
3944 Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
3945 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3947 Tell Xcode that the supported platforms for all WebKit targets are iOS and OS X.
3949 * Configurations/Base.xcconfig:
3951 2014-01-09 Andy Estes <aestes@apple.com>
3953 [iOS] Upstream iOS changes to MigrateHeaders.make
3954 https://bugs.webkit.org/show_bug.cgi?id=126731
3956 Reviewed by David Kilzer.
3958 * WebCore.xcodeproj/project.pbxproj: Mark an iOS-specific header at
3959 Private that will later be migrated by WebKit.
3961 2014-01-10 Daniel Bates <dabates@apple.com>
3963 Fix the Production Mac build following <http://trac.webkit.org/changeset/161638>
3964 (https://bugs.webkit.org/show_bug.cgi?id=126698)
3966 Substitute JAVASCRIPTCORE_PRIVATE_HEADERS_DIR_Production_ for JAVASCRIPTCORE_PRIVATE_HEADERS_Production_.
3968 * Configurations/WebCore.xcconfig:
3970 2014-01-10 Anders Carlsson <andersca@apple.com>
3972 Add a missing include.
3974 * Modules/webdatabase/DatabaseManager.h:
3976 2014-01-10 Anders Carlsson <andersca@apple.com>
3978 Use STL threading primitives in DatabaseDetails and DatabaseManager
3979 https://bugs.webkit.org/show_bug.cgi?id=126759
3981 Reviewed by Geoffrey Garen.
3983 * Modules/webdatabase/DatabaseDetails.h:
3984 (WebCore::DatabaseDetails::DatabaseDetails):
3985 (WebCore::DatabaseDetails::threadID):
3986 * Modules/webdatabase/DatabaseManager.cpp:
3987 (WebCore::DatabaseManager::existingDatabaseContextFor):
3988 (WebCore::DatabaseManager::registerDatabaseContext):
3989 (WebCore::DatabaseManager::unregisterDatabaseContext):
3990 (WebCore::DatabaseManager::didConstructDatabaseContext):
3991 (WebCore::DatabaseManager::didDestructDatabaseContext):
3992 (WebCore::DatabaseManager::addProposedDatabase):
3993 (WebCore::DatabaseManager::removeProposedDatabase):
3994 (WebCore::DatabaseManager::fullPathForDatabase):
3995 (WebCore::DatabaseManager::detailsForNameAndOrigin):
3996 * Modules/webdatabase/DatabaseManager.h:
3998 2014-01-10 Commit Queue <commit-queue@webkit.org>
4000 Unreviewed, rolling out r161629.
4001 http://trac.webkit.org/changeset/161629
4002 https://bugs.webkit.org/show_bug.cgi?id=126762
4004 Fails svg/custom/conditional-processing-2.html (Requested by
4007 * svg/SVGSwitchElement.cpp:
4008 (WebCore::SVGSwitchElement::childShouldCreateRenderer):
4010 (WebCore::SVGTests::hasExtension):
4011 (WebCore::SVGTests::isValid):
4013 2014-01-10 ChangSeok Oh <changseok.oh@collabora.com>
4015 Unreviewed build fix since r161589.
4017 The changeset causes a compile failure with --no-svg.
4019 * platform/graphics/FontFastPath.cpp:
4020 (WebCore::Font::drawGlyphBuffer):
4022 2014-01-10 Przemyslaw Szymanski <p.szymanski3@samsung.com>
4024 [WebGL] Removing unnecessary pointer checks
4025 https://bugs.webkit.org/show_bug.cgi?id=124046
4027 Reviewed by Brent Fulgham.
4029 We do not need to check for a null array three times in
4030 the same call. Let's just do it once!
4032 No new tests. Covered by existing ones.
4034 * html/canvas/WebGLBuffer.cpp:
4035 (WebCore::WebGLBuffer::associateBufferData):
4037 2014-01-10 Daniel Bates <dabates@apple.com>
4039 Speculative build fix for Windows following <http://trac.webkit.org/changeset/161638>
4040 (https://bugs.webkit.org/show_bug.cgi?id=126698)
4042 Reviewed by David Kilzer.
4044 * bindings/scripts/preprocessor.pm:
4045 (applyPreprocessor):
4047 2014-01-10 Przemyslaw Szymanski <p.szymanski3@samsung.com>
4049 [WebGL] Wrong condition order in the if statement
4050 https://bugs.webkit.org/show_bug.cgi?id=125000
4052 Reviewed by Brent Fulgham.
4054 We should only pay the cost of string comparison once. The
4055 current logic requires a string comparison every time we
4056 pass through the function. Instead, by reordering the statements
4057 we can short-circuit through the boolean test after the initial
4060 No new tests. No behaviour changes.
4062 * platform/graphics/opengl/Extensions3DOpenGLES.cpp:
4063 (WebCore::Extensions3DOpenGLES::supportsExtension):
4065 2014-01-10 Anders Carlsson <andersca@apple.com>
4067 CTTE in AudioContext::AutoLocker
4068 https://bugs.webkit.org/show_bug.cgi?id=126758
4070 Reviewed by Antti Koivisto.
4072 * Modules/webaudio/AudioBasicInspectorNode.cpp:
4073 (WebCore::AudioBasicInspectorNode::connect):
4074 (WebCore::AudioBasicInspectorNode::disconnect):
4075 * Modules/webaudio/AudioBufferSourceNode.cpp:
4076 (WebCore::AudioBufferSourceNode::setBuffer):
4077 * Modules/webaudio/AudioContext.cpp:
4078 (WebCore::AudioContext::refNode):
4079 (WebCore::AudioContext::deleteMarkedNodes):
4080 (WebCore::AudioContext::removeMarkedSummingJunction):
4081 * Modules/webaudio/AudioContext.h:
4082 (WebCore::AudioContext::AutoLocker::AutoLocker):
4083 (WebCore::AudioContext::AutoLocker::~AutoLocker):
4084 * Modules/webaudio/AudioNode.cpp:
4085 (WebCore::AudioNode::connect):
4086 (WebCore::AudioNode::disconnect):
4087 (WebCore::AudioNode::setChannelCount):
4088 (WebCore::AudioNode::setChannelCountMode):
4089 (WebCore::AudioNode::setChannelInterpretation):
4090 (WebCore::AudioNode::enableOutputsIfNecessary):
4091 * Modules/webaudio/MediaElementAudioSourceNode.cpp:
4092 (WebCore::MediaElementAudioSourceNode::setFormat):
4093 * Modules/webaudio/WaveShaperNode.cpp:
4094 (WebCore::WaveShaperNode::setOversample):
4096 2014-01-10 Antti Koivisto <antti@apple.com>
4098 Use element iterators more
4099 https://bugs.webkit.org/show_bug.cgi?id=126756
4101 Reviewed by Anders Carlsson.
4103 * dom/VisitedLinkState.cpp:
4104 (WebCore::VisitedLinkState::invalidateStyleForAllLinks):
4105 (WebCore::VisitedLinkState::invalidateStyleForLink):
4106 * html/HTMLMeterElement.cpp:
4107 (WebCore::HTMLMeterElement::renderMeter):
4108 * html/HTMLProgressElement.cpp:
4109 (WebCore::HTMLProgressElement::renderProgress):
4110 * html/shadow/ContentDistributor.cpp:
4111 (WebCore::ContentDistributor::ensureInsertionPointList):
4112 * style/StyleResolveTree.cpp:
4114 2014-01-10 Daniel Bates <dabates@apple.com>
4116 Attempt to fix the iOS build after <http://trac.webkit.org/changeset/161589>
4117 (https://bugs.webkit.org/show_bug.cgi?id=126654)
4119 * platform/audio/ios/AudioSessionIOS.mm: Import header PassOwnPtr.h so that we can use adoptPtr().
4121 2014-01-10 Daniel Bates <dabates@apple.com>
4123 Attempt to fix the build after <http://trac.webkit.org/changeset/161638>
4124 (https://bugs.webkit.org/show_bug.cgi?id=126698)
4126 Substitute tab characters for space characters.
4128 * DerivedSources.make:
4130 2014-01-10 Anders Carlsson <andersca@apple.com>
4132 DOMWindow::showModalDialog should use std::function
4133 https://bugs.webkit.org/show_bug.cgi?id=126753
4135 Reviewed by Antti Koivisto.
4137 * bindings/js/JSDOMWindowCustom.cpp:
4138 (WebCore::DialogHandler::dialogCreated):
4139 (WebCore::JSDOMWindow::showModalDialog):
4140 * page/DOMWindow.cpp:
4141 (WebCore::DOMWindow::createWindow):
4142 (WebCore::DOMWindow::showModalDialog):
4145 2014-01-10 Daniel Bates <dabates@apple.com>
4147 [iOS] Upstream WebCore and Tools miscellaneous changes
4148 https://bugs.webkit.org/show_bug.cgi?id=126698
4150 Reviewed by David Kilzer.
4152 * Configurations/Base.xcconfig:
4153 * Configurations/WebCore.xcconfig:
4154 * Configurations/WebCoreTestSupport.xcconfig:
4155 * Configurations/iOS.xcconfig: Added.
4156 * DerivedSources.make:
4157 * English.lproj/Localizable.strings: