Automatically generate isRendererOfType in RENDER_OBJECT_TYPE_CASTS
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2014-02-10  Darin Adler  <darin@apple.com>
2
3         Automatically generate isRendererOfType in RENDER_OBJECT_TYPE_CASTS
4         https://bugs.webkit.org/show_bug.cgi?id=128520
5
6         Reviewed by Andreas Kling.
7
8         * rendering/RenderObject.h: Updated the RENDER_OBJECT_TYPE_CASTS macro so
9         that it generates isRendererOfType specializations as well as type casts
10         and also have the type casts use the isRendererOfType function. The macro
11         also now uses an argument name of "renderer" and allows for a predicate
12         that is more than just a single function call (see RenderTextFragment.h).
13
14         * rendering/RenderBlock.h:
15         * rendering/RenderBlockFlow.h:
16         * rendering/RenderBox.h:
17         * rendering/RenderBoxModelObject.h:
18         * rendering/RenderCounter.h:
19         * rendering/RenderElement.h:
20         * rendering/RenderFrameSet.h:
21         * rendering/RenderLayerModelObject.h:
22         * rendering/RenderMenuList.h:
23         * rendering/RenderNamedFlowThread.h:
24         * rendering/RenderRubyRun.h:
25         * rendering/RenderTableSection.h:
26         * rendering/RenderText.h:
27         * rendering/mathml/RenderMathMLBlock.h:
28         * rendering/mathml/RenderMathMLOperator.h:
29         * rendering/mathml/RenderMathMLToken.h:
30         * rendering/svg/RenderSVGRoot.h:
31         * rendering/svg/RenderSVGText.h:
32         Removed specialization of isRendererOfType, since the RENDER_OBJECT_TYPE_CASTS
33         macro handles that now. Also removed some unneeded semicolons.
34
35         * rendering/RenderTextFragment.h: Use RENDER_OBJECT_TYPE_CASTS instead of
36         hand written casts, now that it can handle a non-trivial predicate.
37
38         * rendering/RenderCombineText.h:
39         * rendering/RenderDetailsMarker.h:
40         * rendering/RenderListMarker.h:
41         * rendering/RenderVideo.h:
42         * rendering/RenderView.h:
43         * rendering/mathml/RenderMathMLFraction.h:
44         * rendering/mathml/RenderMathMLScripts.h:
45         * rendering/mathml/RenderMathMLSpace.h:
46         Removed unneeded semicolons.
47
48 2014-02-10  Darin Adler  <darin@apple.com>
49
50         Stop using String::deprecatedCharacters to call WTF::Collator
51         https://bugs.webkit.org/show_bug.cgi?id=128517
52
53         Reviewed by Alexey Proskuryakov.
54
55         * xml/XSLTUnicodeSort.cpp:
56         (WebCore::xsltUnicodeSortFunction): Create the collator in a single line using the
57         new constructor that takes a shouldSortLowercaseFirst boolean. Use the new
58         collateUTF8 function instead of upconverting UTF-8 strings to UTF-16 as the old code did.
59
60 2014-02-10  Changhun Kang  <temoochin@company100.net>
61
62         Remove unnecessary comment lines.
63         https://bugs.webkit.org/show_bug.cgi?id=127894
64
65         Reviewed by Darin Adler.
66
67         No new tests. No change in behavior.
68
69         * Modules/websockets/WebSocketHandshake.cpp:
70         (WebCore::WebSocketHandshake::clientHandshakeRequest):
71
72 2014-02-10  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
73
74         Fix EFL build with INSPECTOR disabled
75         https://bugs.webkit.org/show_bug.cgi?id=125064
76
77         Reviewed by Csaba Osztrogonác.
78
79         * bindings/js/PageScriptDebugServer.cpp:
80         * bindings/js/PageScriptDebugServer.h:
81         * bindings/js/WorkerScriptDebugServer.cpp:
82         * bindings/js/WorkerScriptDebugServer.h:
83         * inspector/PageInjectedScriptManager.h:
84
85 2014-02-10  Zan Dobersek  <zdobersek@igalia.com>
86
87         Fix a few mistakes that landed with r163749.
88
89         Rubber-stamped by Carlos Garcia Campos.
90
91         * platform/gtk/GtkTouchContextHelper.cpp:
92         (WebCore::GtkTouchContextHelper::handleEvent): When handling GDK_TOUCH_BEGIN, the assertion
93         should ensure that the sequence-to-event map doesn't yet contain pairs with the specific
94         sequence as the key.
95
96 2014-02-10  David Kilzer  <ddkilzer@apple.com>
97
98         Add type-safe casts for ContentData subclasses
99         <http://webkit.org/b/128510>
100
101         Reviewed by Darin Adler.
102
103         * css/CSSComputedStyleDeclaration.cpp:
104         (WebCore::contentToCSSValue):
105         * css/StyleResolver.cpp:
106         (WebCore::StyleResolver::loadPendingImages):
107         * rendering/RenderElement.cpp:
108         (WebCore::RenderElement::createFor):
109         * rendering/style/RenderStyle.cpp:
110         (WebCore::RenderStyle::setContent):
111         - Switch to toFooContentData() methods.
112
113         * rendering/style/ContentData.h:
114         - Define toFooContentData() methods.
115         - Extract FooContentData::equals() methods so that the
116           toFooContentData() methods can be used.
117
118 2014-02-09  Dirk Schulze  <dschulze@chromium.org>
119
120         -webkit-clip-path should support fill, stroke, view-box keywords
121         https://bugs.webkit.org/show_bug.cgi?id=128393
122
123         Reviewed by Dean Jackson.
124
125         CSS Masking uses the keywords fill, stroke and view-box for SVG shapes.
126         This patch updates the parser, style resolver and SVG implementation of
127         the prefixed clip-path property.
128
129         Remove the unexposed and obsolete keyword bounding-box.
130
131         Tests: svg/clip-path/clip-path-shape-fill-expected.svg
132                svg/clip-path/clip-path-shape-fill.svg
133                svg/clip-path/clip-path-shape-stroke-expected.svg
134                svg/clip-path/clip-path-shape-stroke.svg
135                svg/clip-path/clip-path-shape-view-box-expected.svg
136                svg/clip-path/clip-path-shape-view-box.svg
137
138         * css/CSSParser.cpp: Parse fill, stroke, view-box. Remove bounding-box.
139         (WebCore::isBoxValue):
140         * css/CSSPrimitiveValueMappings.h:
141         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
142         (WebCore::CSSPrimitiveValue::operator LayoutBox):
143         * css/CSSValueKeywords.in:
144         * css/DeprecatedStyleBuilder.cpp:
145         (WebCore::ApplyPropertyClipPath::applyValue):
146         * rendering/RenderLayer.cpp:
147         (WebCore::computeReferenceBox):
148         * rendering/shapes/ShapeInfo.h:
149         (WebCore::ShapeInfo::setShapeSize):
150         (WebCore::ShapeInfo::logicalTopOffset):
151         (WebCore::ShapeInfo::logicalLeftOffset):
152         * rendering/style/RenderStyleConstants.h:
153         * rendering/svg/SVGRenderingContext.cpp: Use different reference boxes per keyword.
154         (WebCore::SVGRenderingContext::prepareToRenderSVGContent):
155
156 2014-02-09  Dean Jackson  <dino@apple.com>
157
158         [WebGL] Remove state restorer code
159         https://bugs.webkit.org/show_bug.cgi?id=128516
160
161         Reviewed by Dirk Schulze.
162
163         I'm not sure what the point of the WebGLStateRestorer class was. It was
164         always constructed with a false parameter, and then wasn't even retained
165         in local scope (so wouldn't have worked anyway). Meanwhile there were
166         also LOTS of calls to cleanupAfterGraphicsCall, the majority of which
167         were a no-op. I replaced the handful of cleanupAfterGraphicsCall(true)
168         with the call to markContextChanged().
169
170         * html/canvas/OESVertexArrayObject.cpp:
171         (WebCore::OESVertexArrayObject::bindVertexArrayOES):
172         * html/canvas/WebGLRenderingContext.cpp:
173         (WebCore::WebGLRenderingContext::activeTexture):
174         (WebCore::WebGLRenderingContext::attachShader):
175         (WebCore::WebGLRenderingContext::bindAttribLocation):
176         (WebCore::WebGLRenderingContext::bindBuffer):
177         (WebCore::WebGLRenderingContext::bindFramebuffer):
178         (WebCore::WebGLRenderingContext::bindRenderbuffer):
179         (WebCore::WebGLRenderingContext::bindTexture):
180         (WebCore::WebGLRenderingContext::blendColor):
181         (WebCore::WebGLRenderingContext::blendEquation):
182         (WebCore::WebGLRenderingContext::blendEquationSeparate):
183         (WebCore::WebGLRenderingContext::blendFunc):
184         (WebCore::WebGLRenderingContext::blendFuncSeparate):
185         (WebCore::WebGLRenderingContext::bufferData):
186         (WebCore::WebGLRenderingContext::bufferSubData):
187         (WebCore::WebGLRenderingContext::checkFramebufferStatus):
188         (WebCore::WebGLRenderingContext::clear):
189         (WebCore::WebGLRenderingContext::clearColor):
190         (WebCore::WebGLRenderingContext::clearDepth):
191         (WebCore::WebGLRenderingContext::clearStencil):
192         (WebCore::WebGLRenderingContext::colorMask):
193         (WebCore::WebGLRenderingContext::compileShader):
194         (WebCore::WebGLRenderingContext::compressedTexImage2D):
195         (WebCore::WebGLRenderingContext::compressedTexSubImage2D):
196         (WebCore::WebGLRenderingContext::copyTexImage2D):
197         (WebCore::WebGLRenderingContext::copyTexSubImage2D):
198         (WebCore::WebGLRenderingContext::cullFace):
199         (WebCore::WebGLRenderingContext::depthFunc):
200         (WebCore::WebGLRenderingContext::depthMask):
201         (WebCore::WebGLRenderingContext::depthRange):
202         (WebCore::WebGLRenderingContext::detachShader):
203         (WebCore::WebGLRenderingContext::disable):
204         (WebCore::WebGLRenderingContext::disableVertexAttribArray):
205         (WebCore::WebGLRenderingContext::validateDrawArrays):
206         (WebCore::WebGLRenderingContext::drawArrays):
207         (WebCore::WebGLRenderingContext::validateDrawElements):
208         (WebCore::WebGLRenderingContext::drawElements):
209         (WebCore::WebGLRenderingContext::enable):
210         (WebCore::WebGLRenderingContext::enableVertexAttribArray):
211         (WebCore::WebGLRenderingContext::finish):
212         (WebCore::WebGLRenderingContext::flush):
213         (WebCore::WebGLRenderingContext::framebufferRenderbuffer):
214         (WebCore::WebGLRenderingContext::framebufferTexture2D):
215         (WebCore::WebGLRenderingContext::frontFace):
216         (WebCore::WebGLRenderingContext::generateMipmap):
217         (WebCore::WebGLRenderingContext::getBufferParameter):
218         (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter):
219         (WebCore::WebGLRenderingContext::getParameter):
220         (WebCore::WebGLRenderingContext::getProgramParameter):
221         (WebCore::WebGLRenderingContext::getProgramInfoLog):
222         (WebCore::WebGLRenderingContext::getRenderbufferParameter):
223         (WebCore::WebGLRenderingContext::getShaderParameter):
224         (WebCore::WebGLRenderingContext::getShaderInfoLog):
225         (WebCore::WebGLRenderingContext::getTexParameter):
226         (WebCore::WebGLRenderingContext::getUniform):
227         (WebCore::WebGLRenderingContext::getUniformLocation):
228         (WebCore::WebGLRenderingContext::getVertexAttrib):
229         (WebCore::WebGLRenderingContext::getVertexAttribOffset):
230         (WebCore::WebGLRenderingContext::hint):
231         (WebCore::WebGLRenderingContext::lineWidth):
232         (WebCore::WebGLRenderingContext::linkProgram):
233         (WebCore::WebGLRenderingContext::pixelStorei):
234         (WebCore::WebGLRenderingContext::polygonOffset):
235         (WebCore::WebGLRenderingContext::readPixels):
236         (WebCore::WebGLRenderingContext::releaseShaderCompiler):
237         (WebCore::WebGLRenderingContext::renderbufferStorage):
238         (WebCore::WebGLRenderingContext::sampleCoverage):
239         (WebCore::WebGLRenderingContext::scissor):
240         (WebCore::WebGLRenderingContext::shaderSource):
241         (WebCore::WebGLRenderingContext::stencilFunc):
242         (WebCore::WebGLRenderingContext::stencilFuncSeparate):
243         (WebCore::WebGLRenderingContext::stencilMask):
244         (WebCore::WebGLRenderingContext::stencilMaskSeparate):
245         (WebCore::WebGLRenderingContext::stencilOp):
246         (WebCore::WebGLRenderingContext::stencilOpSeparate):
247         (WebCore::WebGLRenderingContext::texImage2DBase):
248         (WebCore::WebGLRenderingContext::texImage2D):
249         (WebCore::WebGLRenderingContext::texParameter):
250         (WebCore::WebGLRenderingContext::texSubImage2DBase):
251         (WebCore::WebGLRenderingContext::uniform1f):
252         (WebCore::WebGLRenderingContext::uniform1fv):
253         (WebCore::WebGLRenderingContext::uniform1i):
254         (WebCore::WebGLRenderingContext::uniform1iv):
255         (WebCore::WebGLRenderingContext::uniform2f):
256         (WebCore::WebGLRenderingContext::uniform2fv):
257         (WebCore::WebGLRenderingContext::uniform2i):
258         (WebCore::WebGLRenderingContext::uniform2iv):
259         (WebCore::WebGLRenderingContext::uniform3f):
260         (WebCore::WebGLRenderingContext::uniform3fv):
261         (WebCore::WebGLRenderingContext::uniform3i):
262         (WebCore::WebGLRenderingContext::uniform3iv):
263         (WebCore::WebGLRenderingContext::uniform4f):
264         (WebCore::WebGLRenderingContext::uniform4fv):
265         (WebCore::WebGLRenderingContext::uniform4i):
266         (WebCore::WebGLRenderingContext::uniform4iv):
267         (WebCore::WebGLRenderingContext::uniformMatrix2fv):
268         (WebCore::WebGLRenderingContext::uniformMatrix3fv):
269         (WebCore::WebGLRenderingContext::uniformMatrix4fv):
270         (WebCore::WebGLRenderingContext::useProgram):
271         (WebCore::WebGLRenderingContext::validateProgram):
272         (WebCore::WebGLRenderingContext::vertexAttribPointer):
273         (WebCore::WebGLRenderingContext::viewport):
274         (WebCore::WebGLRenderingContext::vertexAttribfImpl):
275         (WebCore::WebGLRenderingContext::vertexAttribfvImpl):
276         (WebCore::WebGLRenderingContext::drawArraysInstanced):
277         (WebCore::WebGLRenderingContext::drawElementsInstanced):
278         * html/canvas/WebGLRenderingContext.h:
279
280 2014-02-09  Dean Jackson  <dino@apple.com>
281
282         Remove unused layer owner from WebGLLayer
283         https://bugs.webkit.org/show_bug.cgi?id=128512
284
285         Reviewed by Dirk Schulze.
286
287         The m_layerOwner and ObjC category were not
288         used anywhere.
289
290         * platform/graphics/mac/WebGLLayer.h:
291         * platform/graphics/mac/WebGLLayer.mm:
292         (-[WebGLLayer display]):
293
294 2014-02-09  Ryuan Choi  <ryuan.choi@samsung.com>
295
296         [EFL] Remove PageClientEfl
297         https://bugs.webkit.org/show_bug.cgi?id=128508
298
299         Reviewed by Andreas Kling.
300
301         PageClientEfl was introduced for accelerated compositing of WebKit1, but
302         it's bad idea because it's layer violation.
303         Indeed, it has never been used since introduced.
304
305         * platform/Widget.h: Back to PlatformPageClient to Evas_Object.
306         * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
307         Removed empty method which use PageClientEfl.
308         * platform/graphics/efl/GraphicsContext3DPrivate.h: Ditto.
309
310 2014-02-09  Tim Horton  <timothy_horton@apple.com>
311
312         [iOS][wk2] ASSERT(WebThreadIsCurrent()) in [WebDisplayLinkHandler handleDisplayLink:]
313         https://bugs.webkit.org/show_bug.cgi?id=128490
314
315         Reviewed by Simon Fraser.
316
317         * platform/graphics/ios/DisplayRefreshMonitorIOS.mm:
318         (-[WebDisplayLinkHandler handleDisplayLink:]):
319         [WebDisplayLinkHandler handleDisplayLink:] has an ASSERT(WebThreadIsCurrent()).
320
321         We don't use the Web Thread in WebKit2, but it looks like isMainThread()
322         does the right thing (main thread if web thread is disabled, web thread
323         otherwise), so use that instead.
324
325 2014-02-09  Anders Carlsson  <andersca@apple.com>
326
327         Add WTF_MAKE_FAST_ALLOCATED to more classes
328         https://bugs.webkit.org/show_bug.cgi?id=128506
329
330         Reviewed by Andreas Kling.
331
332         * dom/Node.h:
333         * dom/ScriptElement.h:
334         * loader/ImageLoader.h:
335         * loader/cache/CachedResourceClient.h:
336         * platform/TreeShared.h:
337         * platform/graphics/GlyphMetricsMap.h:
338         * rendering/InlineBox.h:
339         * rendering/RenderLayer.h:
340         * rendering/RenderObject.h:
341
342 2014-02-09  Andreas Kling  <akling@apple.com>
343
344         Reduce ref churn in ChildNodesLazySnapshot iteration.
345         <https://webkit.org/b/128492>
346
347         Add a missing release() in ChildNodesLazySnapshot::nextNode()
348         so we don't have to churn the ref count.
349
350         Reviewed by Sam Weinig.
351
352         * dom/ContainerNode.h:
353         (WebCore::ChildNodesLazySnapshot::nextNode):
354
355 2014-02-09  Andreas Kling  <akling@apple.com>
356
357         Reduce ref churn in ChildInsertionNotifier.
358         <https://webkit.org/b/128494>
359
360         All callers of notifyNodeInsertedIntoDocument() already hold a strong
361         reference on the Node, so there's no need to ref it again inside.
362
363         Reviewed by Anders Carlsson.
364
365         * dom/ContainerNodeAlgorithms.h:
366         (WebCore::ChildNodeInsertionNotifier::notifyNodeInsertedIntoDocument):
367
368 2014-02-09  Zan Dobersek  <zdobersek@igalia.com>
369
370         Manage ShadowData through std::unique_ptr
371         https://bugs.webkit.org/show_bug.cgi?id=128466
372
373         Reviewed by Andreas Kling.
374
375         Use std::unique_ptr instead of OwnPtr to manage ShadowData objects.
376
377         * css/SVGCSSStyleSelector.cpp:
378         (WebCore::StyleResolver::applySVGProperty):
379         * css/StyleResolver.cpp:
380         (WebCore::StyleResolver::applyProperty):
381         * page/animation/CSSPropertyAnimation.cpp:
382         (WebCore::blendFunc):
383         (WebCore::PropertyWrapperShadow::PropertyWrapperShadow):
384         (WebCore::PropertyWrapperShadow::blendSimpleOrMatchedShadowLists):
385         (WebCore::PropertyWrapperShadow::blendMismatchedShadowLists):
386         * rendering/style/RenderStyle.cpp:
387         (WebCore::RenderStyle::setTextShadow):
388         (WebCore::RenderStyle::setBoxShadow):
389         * rendering/style/RenderStyle.h:
390         * rendering/style/SVGRenderStyle.h:
391         (WebCore::SVGRenderStyle::setShadow):
392         * rendering/style/SVGRenderStyleDefs.cpp:
393         (WebCore::StyleShadowSVGData::StyleShadowSVGData):
394         * rendering/style/SVGRenderStyleDefs.h:
395         * rendering/style/ShadowData.cpp:
396         (WebCore::ShadowData::ShadowData):
397         * rendering/style/ShadowData.h:
398         (WebCore::ShadowData::setNext):
399         * rendering/style/StyleRareInheritedData.cpp:
400         (WebCore::StyleRareInheritedData::StyleRareInheritedData):
401         * rendering/style/StyleRareInheritedData.h:
402         * rendering/style/StyleRareNonInheritedData.cpp:
403         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
404         * rendering/style/StyleRareNonInheritedData.h:
405
406 2014-02-09  Carlos Garnacho  <carlosg@gnome.org>
407
408         [GTK] Add touch-events related code to build
409         https://bugs.webkit.org/show_bug.cgi?id=98931
410
411         Reviewed by Carlos Garcia Campos.
412
413         Tests in fast/events/touch have been enabled on GTK+ now that touch
414         support is implemented, and thus all expected bits are there.
415
416         * platform/gtk/GtkTouchContextHelper.cpp:
417         * platform/gtk/GtkTouchContextHelper.h: Add helper object to track all touchpoints, handy
418         when creating WebTouchEvents.
419         * GNUmakefile.list.am:
420         * PlatformGTK.cmake:
421         * bindings/gobject/GNUmakefile.am: Add touch related code and idls to build, those are
422         necessary now that GTK+ implements touch events.
423
424 2014-02-09  Zan Dobersek  <zdobersek@igalia.com>
425
426         Switch the rest of CSS code from OwnPtr over to std::unique_ptr
427         https://bugs.webkit.org/show_bug.cgi?id=128471
428
429         Reviewed by Andreas Kling.
430
431         Replace the remaining uses of OwnPtr in the CSS code with std::unique_ptr, covering
432         the CSSParser, CSSParserSelector and CSSSelector classes and a few additional, closely related classes.
433
434         * css/CSSGrammar.y.in:
435         * css/CSSParser.cpp:
436         (WebCore::CSSParser::parseSheet):
437         (WebCore::CSSParser::parseDeclaration):
438         (WebCore::CSSParser::parseValue):
439         (WebCore::CSSParser::markSupportsRuleHeaderStart):
440         (WebCore::CSSParser::createKeyframesRule):
441         (WebCore::CSSParser::createStyleRule):
442         (WebCore::CSSParser::rewriteSpecifiersWithElementName):
443         (WebCore::CSSParser::rewriteSpecifiers):
444         * css/CSSParser.h:
445         * css/CSSParserValues.cpp:
446         (WebCore::CSSParserSelector::CSSParserSelector):
447         (WebCore::CSSParserSelector::~CSSParserSelector):
448         (WebCore::CSSParserSelector::adoptSelectorVector):
449         (WebCore::CSSParserSelector::insertTagHistory):
450         (WebCore::CSSParserSelector::appendTagHistory):
451         (WebCore::CSSParserSelector::prependTagSelector):
452         * css/CSSParserValues.h:
453         (WebCore::CSSParserSelector::releaseSelector):
454         (WebCore::CSSParserSelector::setTagHistory):
455         (WebCore::CSSParserSelector::clearTagHistory):
456         * css/CSSSelector.cpp:
457         (WebCore::CSSSelector::setSelectorList):
458         * css/CSSSelector.h:
459         * css/CSSSelectorList.cpp:
460         (WebCore::CSSSelectorList::adoptSelectorVector):
461         * css/CSSSelectorList.h:
462         * css/CSSValueList.cpp:
463         * css/StyleRule.cpp:
464         (WebCore::StyleRuleRegion::StyleRuleRegion):
465         * css/StyleRule.h:
466         (WebCore::StyleRule::parserAdoptSelectorVector):
467         (WebCore::StyleRulePage::parserAdoptSelectorVector):
468         (WebCore::StyleRuleRegion::create):
469
470 2014-02-09  Zan Dobersek  <zdobersek@igalia.com>
471
472         Manage MutationObserverInterestGroup through std::unique_ptr
473         https://bugs.webkit.org/show_bug.cgi?id=128468
474
475         Reviewed by Andreas Kling.
476
477         Use std::unique_ptr instead of OwnPtr for managing MutationObserverInterestGroup objects.
478
479         * css/PropertySetCSSStyleDeclaration.cpp:
480         * dom/CharacterData.cpp:
481         (WebCore::CharacterData::dispatchModifiedEvent):
482         * dom/ChildListMutationScope.cpp:
483         (WebCore::ChildListMutationAccumulator::ChildListMutationAccumulator):
484         * dom/ChildListMutationScope.h:
485         (WebCore::ChildListMutationAccumulator::hasObservers):
486         * dom/Element.cpp:
487         (WebCore::Element::willModifyAttribute):
488         * dom/MutationObserverInterestGroup.cpp:
489         (WebCore::MutationObserverInterestGroup::createIfNeeded):
490         * dom/MutationObserverInterestGroup.h:
491         (WebCore::MutationObserverInterestGroup::createForChildListMutation):
492         (WebCore::MutationObserverInterestGroup::createForCharacterDataMutation):
493         (WebCore::MutationObserverInterestGroup::createForAttributesMutation):
494
495 2014-02-09  Zan Dobersek  <zdobersek@igalia.com>
496
497         Manage MessagePort, MessagePortChannel and friends through std::unique_ptr
498         https://bugs.webkit.org/show_bug.cgi?id=128467
499
500         Reviewed by Andreas Kling.
501
502         Use std::unique_ptr instead of OwnPtr to manage MessagePort, MessagePortArray, MessagePortChannel
503         and MessagePortChannelArray objects.
504
505         * bindings/js/JSMessageEventCustom.cpp:
506         (WebCore::handleInitMessageEvent):
507         * dom/MessageEvent.cpp:
508         (WebCore::MessageEvent::MessageEvent):
509         (WebCore::MessageEvent::initMessageEvent):
510         * dom/MessageEvent.h:
511         (WebCore::MessageEvent::create):
512         * dom/MessagePort.cpp:
513         (WebCore::MessagePort::postMessage):
514         (WebCore::MessagePort::disentangle):
515         (WebCore::MessagePort::entangle):
516         (WebCore::MessagePort::dispatchMessages):
517         (WebCore::MessagePort::disentanglePorts):
518         (WebCore::MessagePort::entanglePorts):
519         * dom/MessagePort.h:
520         * dom/MessagePortChannel.h:
521         * dom/default/PlatformMessagePortChannel.cpp:
522         (WebCore::PlatformMessagePortChannel::EventData::EventData):
523         (WebCore::MessagePortChannel::createChannel):
524         (WebCore::MessagePortChannel::postMessageToRemote):
525         (WebCore::MessagePortChannel::tryGetMessageFromRemote):
526         * dom/default/PlatformMessagePortChannel.h:
527         (WebCore::PlatformMessagePortChannel::EventData::channels):
528         * page/DOMWindow.cpp:
529         (WebCore::PostMessageTimer::PostMessageTimer):
530         (WebCore::PostMessageTimer::event):
531         (WebCore::DOMWindow::postMessage):
532         * workers/DedicatedWorkerGlobalScope.cpp:
533         (WebCore::DedicatedWorkerGlobalScope::postMessage):
534         * workers/DefaultSharedWorkerRepository.cpp:
535         (WebCore::SharedWorkerConnectTask::create):
536         (WebCore::SharedWorkerConnectTask::SharedWorkerConnectTask):
537         (WebCore::SharedWorkerConnectTask::performTask):
538         (WebCore::SharedWorkerScriptLoader::SharedWorkerScriptLoader):
539         (WebCore::SharedWorkerScriptLoader::notifyFinished):
540         (WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
541         (WebCore::DefaultSharedWorkerRepository::connectToWorker):
542         * workers/DefaultSharedWorkerRepository.h:
543         * workers/SharedWorker.cpp:
544         (WebCore::SharedWorker::create):
545         * workers/SharedWorkerGlobalScope.cpp:
546         (WebCore::createConnectEvent):
547         * workers/SharedWorkerRepository.cpp:
548         (WebCore::SharedWorkerRepository::connect):
549         * workers/SharedWorkerRepository.h:
550         * workers/Worker.cpp:
551         (WebCore::Worker::postMessage):
552         * workers/WorkerGlobalScopeProxy.h:
553         * workers/WorkerMessagingProxy.cpp:
554         (WebCore::MessageWorkerGlobalScopeTask::create):
555         (WebCore::MessageWorkerGlobalScopeTask::MessageWorkerGlobalScopeTask):
556         (WebCore::MessageWorkerGlobalScopeTask::performTask):
557         (WebCore::MessageWorkerTask::create):
558         (WebCore::MessageWorkerTask::MessageWorkerTask):
559         (WebCore::MessageWorkerTask::performTask):
560         (WebCore::WorkerMessagingProxy::postMessageToWorkerObject):
561         (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
562         * workers/WorkerMessagingProxy.h:
563         * workers/WorkerObjectProxy.h:
564
565 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
566
567         Cleanup the interface of FrameSelection
568         https://bugs.webkit.org/show_bug.cgi?id=128481
569
570         Reviewed by Andreas Kling.
571
572         Removed FrameSelection::end() as intended in r163232, and the stale declaration of
573         paintDragCaret() which was supposed to be removed when we extracted DragCaretController.
574
575         Renamed caretRenderer() to caretRendererWithoutUpdatingLayout() to clarify the contract
576         as the only caller of this function is RenderBlock::paintCaret. Also renamed bounds()
577         to selectionBounds() to make it more easily identifiable / grep'able.
578
579         In addition, made recomputeCaretRect() and invalidateCaretRect() private.
580
581         * WebCore.exp.in:
582         * editing/FrameSelection.cpp:
583         (WebCore::FrameSelection::caretRendererWithoutUpdatingLayout):
584         (WebCore::FrameSelection::selectionBounds):
585         (WebCore::FrameSelection::revealSelection):
586         * editing/FrameSelection.h:
587         (WebCore::FrameSelection::setCaretVisible):
588         * page/DragController.cpp:
589         (WebCore::dragLocForSelectionDrag):
590         * page/FrameSnapshotting.cpp:
591         (WebCore::snapshotSelection):
592         * page/win/FrameWin.cpp:
593         (WebCore::imageFromSelection):
594         * rendering/RenderBlock.cpp:
595         (WebCore::RenderBlock::paintCaret):
596         * testing/Internals.cpp:
597         (WebCore::Internals::selectionBounds):
598
599 2014-02-08  Dan Bernstein  <mitz@apple.com>
600
601         Reverted part of r163734, because the assertion it enabled still fails when running
602         loader/load-defer-resume-crash.html
603
604         * loader/DocumentLoader.cpp:
605         (WebCore::DocumentLoader::dataReceived):
606
607 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
608
609         EFL build fix after r163729.
610
611         * Modules/indexeddb/IDBDatabase.cpp:
612         (WebCore::IDBDatabase::version):
613
614 2014-02-08  Dan Bernstein  <mitz@apple.com>
615
616         Remove outdated workarounds in DocumentLoader::dataReceived
617         https://bugs.webkit.org/show_bug.cgi?id=128465
618
619         Reviewed by Andreas Kling.
620
621         * loader/DocumentLoader.cpp:
622         (WebCore::DocumentLoader::dataReceived):
623
624 2014-02-08  Alexey Proskuryakov  <ap@apple.com>
625
626         Remove some unused functions from SerializedScriptValue
627         https://bugs.webkit.org/show_bug.cgi?id=128407
628
629         Reviewed by Oliver Hunt.
630
631         Removed more unused code, particularly in API helpers. Renamed one serialize()
632         function to create(), because it does the same thing as other create() functions.
633
634         * Modules/indexeddb/IDBObjectStore.cpp:
635         (WebCore::IDBObjectStore::put):
636         * bindings/js/SerializedScriptValue.cpp:
637         (WebCore::SerializedScriptValue::create):
638         (WebCore::SerializedScriptValue::deserialize):
639         * bindings/js/SerializedScriptValue.h:
640
641 2014-02-08  Brady Eidson  <beidson@apple.com>
642
643         IDB: storage/indexeddb/mozilla/versionchange-abort.html fails
644         <rdar://problem/16018887> and https://bugs.webkit.org/show_bug.cgi?id=128442
645
646         Reviewed by Dan Bernstein.
647
648         Tested by storage/indexeddb/mozilla/versionchange-abort.html (and probably others)
649
650         * Modules/indexeddb/IDBDatabase.cpp:
651         (WebCore::IDBDatabase::version): If the version is NoIntVersion, return DefaultIntVersion to script.
652
653 2014-02-08  Brady Eidson  <beidson@apple.com>
654
655         IDB: storage/indexeddb/mozilla/cursors.html fails
656         <rdar://problem/16017998> and https://bugs.webkit.org/show_bug.cgi?id=128423
657
658         Reviewed by Dan Bernstein.
659
660         Tested by storage/indexeddb/mozilla/cursors.html (And probably others)
661
662         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
663         (WebCore::OpenCursorOperation::perform): Distinguish between an error while opening the cursor
664           and opening a cursor that points to no records.
665
666 2014-02-08  Andreas Kling  <akling@apple.com>
667
668         Remove unused ChromeClient::layoutUpdated().
669         <https://webkit.org/b/128470>
670
671         Nobody listens for this callback anymore so remove it.
672
673         Reviewed by Anders Carlsson.
674
675         * page/Chrome.cpp:
676         * page/Chrome.h:
677         * page/ChromeClient.h:
678         * page/FrameView.cpp:
679         (WebCore::FrameView::layout):
680
681 2014-02-08  Dan Bernstein  <mitz@apple.com>
682
683         Stop using PLATFORM(MAC) in WebCore except where it means “OS X but not iOS”
684         https://bugs.webkit.org/show_bug.cgi?id=128464
685
686         Reviewed by Anders Carlsson.
687
688         * Modules/webaudio/AudioContext.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
689         (WebCore::AudioContext::constructCommon):
690         * accessibility/AccessibilityNodeObject.cpp: Ditto.
691         (WebCore::AccessibilityNodeObject::visibleText):
692         * accessibility/AccessibilityObject.h: Ditto.
693         * accessibility/AccessibilityRenderObject.cpp: Ditto.
694         (WebCore::AccessibilityRenderObject::clickPoint):
695         (WebCore::AccessibilityRenderObject::visiblePositionForPoint):
696         (WebCore::AccessibilityRenderObject::addChildren):
697         * accessibility/AccessibilityRenderObject.h: Ditto.
698         * bindings/js/JSInspectorFrontendHostCustom.cpp:
699         (WebCore::JSInspectorFrontendHost::platform): Made it explicit that this function returns
700         "mac" when built for iOS.
701         * bindings/js/ScriptController.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
702         (WebCore::ScriptController::ScriptController):
703         * bindings/js/ScriptController.h: Ditto.
704         * crypto/CryptoKey.cpp: Changed PLATFORM(MAC) to OS(DARWIN) && !PLATFORM(EFL) &&
705         !PLATFORM(GTK) when checking for whether to use CoreCrypto.
706         * crypto/keys/CryptoKeyRSA.h: Ditto.
707         * dom/Clipboard.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
708         * dom/Document.cpp: Ditto.
709         (WebCore::Document::implicitClose):
710         * dom/KeyboardEvent.h: Ditto.
711         * editing/Editor.cpp: Ditto.
712         (WebCore::Editor::cut):
713         (WebCore::Editor::copy):
714         (WebCore::Editor::copyImage):
715         * editing/Editor.h: Ditto.
716         * editing/FrameSelection.h: Ditto.
717         * editing/TypingCommand.cpp: Ditto.
718         (WebCore::TypingCommand::typingAddedToOpenCommand):
719         * history/HistoryItem.h: Ditto.
720         * html/HTMLMediaElement.cpp: Ditto.
721         (WebCore::HTMLMediaElement::parseAttribute):
722         * html/HTMLMediaElement.h: Ditto.
723         * html/HTMLPlugInElement.cpp: Ditto.
724         (WebCore::registeredPluginReplacements):
725         * html/HTMLPlugInImageElement.cpp: Ditto.
726         (WebCore::HTMLPlugInImageElement::setDisplayState):
727         * html/HTMLSelectElement.cpp: Ditto.
728         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
729         * html/shadow/MediaControlElements.cpp: Ditto.
730         (WebCore::MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsButtonElement):
731         (WebCore::MediaControlToggleClosedCaptionsButtonElement::defaultEventHandler):
732         * html/shadow/MediaControlElements.h: Ditto.
733         * inspector/InspectorIndexedDBAgent.cpp: Ditto.
734         * loader/CookieJar.cpp: Ditto.
735         * loader/DocumentLoader.cpp: Ditto.
736         (WebCore::DocumentLoader::dataReceived):
737         * loader/DocumentLoader.h: Ditto.
738         (WebCore::DocumentLoader::didTellClientAboutLoad):
739         * loader/EmptyClients.h: Ditto.
740         * loader/FrameLoader.cpp:
741         (WebCore::FrameLoader::loadArchive): Added !PLATFORM(IOS) around Mac-only workaround.
742         (WebCore::FrameLoader::defaultObjectContentType): Changed PLATFORM(MAC) to PLATFORM(COCOA).
743         (WebCore::FrameLoader::subresourceCachePolicy): Ditto.
744         * loader/ResourceBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around functions that
745         are implemented using Foundation.
746         * loader/ResourceLoadScheduler.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
747         (WebCore::ResourceLoadScheduler::scheduleLoad):
748         * loader/ResourceLoader.cpp: Ditto.
749         (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
750         * loader/ResourceLoader.h: Ditto.
751         * loader/archive/cf/LegacyWebArchive.cpp: Ditto.
752         * loader/cache/CachedResource.cpp: Changed PLATFORM(MAC) to USE(FOUNDATION) around function
753         that is implemented using other USE(FOUNDATION)-guarded code.
754         * loader/cache/CachedResource.h: Ditto.
755         * page/Chrome.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
756         * page/ChromeClient.h: Ditto.
757         * page/ContextMenuClient.h: Ditto.
758         * page/ContextMenuController.cpp: Ditto.
759         (WebCore::ContextMenuController::contextMenuItemSelected):
760         (WebCore::ContextMenuController::createAndAppendFontSubMenu):
761         (WebCore::ContextMenuController::createAndAppendSpellingAndGrammarSubMenu):
762         (WebCore::ContextMenuController::populate):
763         (WebCore::ContextMenuController::checkOrEnableIfNeeded):
764         * page/DragClient.h: Ditto.
765         * page/DragController.cpp: Ditto.
766         (WebCore::dragLocForDHTMLDrag):
767         (WebCore::dragLocForSelectionDrag):
768         (WebCore::DragController::startDrag):
769         (WebCore::DragController::doImageDrag):
770         * page/EditorClient.h: Ditto.
771         * page/EventHandler.cpp: Ditto.
772         (WebCore::EventHandler::EventHandler):
773         (WebCore::EventHandler::handleMouseDraggedEvent):
774         (WebCore::EventHandler::logicalScrollRecursively):
775         (WebCore::EventHandler::clearDragState):
776         (WebCore::EventHandler::handleWheelEvent):
777         (WebCore::EventHandler::defaultWheelEventHandler):
778         (WebCore::EventHandler::keyEvent):
779         (WebCore::EventHandler::eventInvertsTabsToLinksClientCallResult):
780         * page/EventHandler.h: Ditto.
781         * page/FrameView.cpp: Ditto.
782         (WebCore::FrameView::layout):
783         * page/Page.h: Ditto.
784         * page/Settings.cpp: Ditto.
785         * page/Settings.h: Ditto.
786         * page/scrolling/ScrollingCoordinator.cpp: Ditto.
787         * page/scrolling/ScrollingCoordinator.h: Ditto.
788         * page/scrolling/ScrollingStateNode.h: Removed unused #include.
789         * page/scrolling/ScrollingThread.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
790         (WebCore::ScrollingThread::createThreadIfNeeded):
791         * page/scrolling/ScrollingThread.h: Ditto.
792         * platform/network/cf/ResourceRequest.h: Added !PLATFORM(IOS) around
793         applyWebArchiveHackForMail.
794         * platform/network/cf/ResourceRequestCFNet.cpp:
795         (WebCore::ResourceRequest::applyWebArchiveHackForMail): Ditto.
796         * platform/network/mac/ResourceRequestMac.mm:
797         (WebCore::ResourceRequest::applyWebArchiveHackForMail): Ditto.
798         * plugins/PluginViewNone.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA)
799         * rendering/RenderBox.cpp: Ditto.
800         (WebCore::RenderBox::logicalScroll):
801         * rendering/RenderLayerBacking.cpp: Ditto.
802         (WebCore::RenderLayerBacking::createGraphicsLayer):
803         (WebCore::RenderLayerBacking::createPrimaryGraphicsLayer):
804         * rendering/RenderMenuList.h: Ditto.
805         * rendering/RenderText.cpp: Ditto.
806         (WebCore::RenderText::previousOffsetForBackwardDeletion):
807         * rendering/break_lines.cpp: Removed unused #include.
808         * testing/js/WebCoreTestSupport.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
809         * xml/XSLStyleSheetLibxslt.cpp: Changed PLATFORM(MAC) to OS(DARWIN) && !PLATFORM(EFL) &&
810         !PLATFORM(GTK) around soft-linking libxslt.
811         * xml/XSLTExtensions.cpp: Ditto.
812         * xml/XSLTProcessorLibxslt.cpp: Ditto.
813         * xml/XSLTUnicodeSort.cpp: Ditto.
814
815 2014-02-08  Andreas Kling  <akling@apple.com>
816
817         Remove unused ChromeClient::formStateDidChange().
818         <https://webkit.org/b/128469>
819
820         Nobody listens for this callback anymore so remove it and stop
821         spamming no-op virtual dispatches in forms code.
822
823         Reviewed by Anders Carlsson.
824
825         * html/FileInputType.cpp:
826         (WebCore::FileInputType::setFiles):
827         * html/HTMLFormControlElementWithState.cpp:
828         * html/HTMLFormControlElementWithState.h:
829         * html/HTMLInputElement.cpp:
830         (WebCore::HTMLInputElement::updateType):
831         (WebCore::HTMLInputElement::setValue):
832         (WebCore::HTMLInputElement::setValueFromRenderer):
833         * html/HTMLSelectElement.cpp:
834         (WebCore::HTMLSelectElement::updateListBoxSelection):
835         (WebCore::HTMLSelectElement::selectOption):
836         * html/HTMLTextAreaElement.cpp:
837         (WebCore::HTMLTextAreaElement::updateValue):
838         (WebCore::HTMLTextAreaElement::setValueCommon):
839         * loader/EmptyClients.h:
840         * page/ChromeClient.h:
841
842 2014-02-08  Chris J. Shull  <chrisjshull@gmail.com>
843
844         Web Inspector: Find evaluates attributes in a case sensitive manner
845         https://bugs.webkit.org/show_bug.cgi?id=128405
846
847         Reviewed by Timothy Hatcher.
848
849         Changed matchesAttribute to ignore case.
850
851         Updated existing test with additional cases: 
852         inspector-protocol/dom/dom-search.html
853
854         * inspector/InspectorNodeFinder.cpp:
855         (WebCore::InspectorNodeFinder::matchesAttribute):
856
857 2014-02-08  Andreas Kling  <akling@apple.com>
858
859         Remove unused FrameLoaderClient::dispatchWillOpenSocketStream().
860         <https://webkit.org/b/128472>
861
862         Nobody listens for this callback anymore so remove it.
863
864         Reviewed by Anders Carlsson.
865
866         * Modules/websockets/WebSocketChannel.cpp:
867         (WebCore::WebSocketChannel::willOpenSocketStream):
868         * loader/FrameLoaderClient.h:
869
870 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
871
872         Split UserTriggered into FireSelectEvent and RevealSelection for selection options
873         https://bugs.webkit.org/show_bug.cgi?id=128441
874
875         Reviewed by Darin Adler.
876
877         Split UserTriggered by FireSelectEvent and RevealSelection for selection options.
878
879         Also added defaultSetSelectionOptions() to abstract away the default options.
880
881         * editing/AlternativeTextController.cpp:
882         (WebCore::AlternativeTextController::respondToUnappliedSpellCorrection):
883         * editing/Editor.cpp:
884         (WebCore::Editor::unappliedEditing):
885         (WebCore::Editor::reappliedEditing):
886         * editing/FrameSelection.cpp:
887         (WebCore::FrameSelection::moveTo):
888         (WebCore::FrameSelection::setSelectionByMouseIfDifferent): UserTriggered | DoNotRevealSelection
889         is replaced by FireSelectEvent.
890         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance): Check options & FireSelectEvent
891         instead of options & UserTriggered.
892         (WebCore::FrameSelection::setSelection): Check options & RevealSelection instead of
893         options & UserTriggered && !(options & DoNotRevealSelection).
894         (WebCore::FrameSelection::prepareForDestruction):
895         (WebCore::FrameSelection::setBase):
896         (WebCore::FrameSelection::setExtent):
897         (WebCore::FrameSelection::selectAll):
898         (WebCore::FrameSelection::wordSelectionContainingCaretSelection):
899         * editing/FrameSelection.h:
900         (WebCore::FrameSelection::defaultSetSelectionOptions): Added.
901         * editing/SpellingCorrectionCommand.cpp:
902         (WebCore::SpellingCorrectionCommand::doApply):
903         * html/HTMLTextFormControlElement.cpp:
904         (WebCore::HTMLTextFormControlElement::selectionChanged): Renamed the argument.
905         * html/HTMLTextFormControlElement.h:
906
907 2014-02-08  Zan Dobersek  <zdobersek@igalia.com>
908
909         Move TreeScope, IdTargetObserverRegistry to std::unique_ptr
910         https://bugs.webkit.org/show_bug.cgi?id=127276
911
912         Reviewed by Andreas Kling.
913
914         Replace uses of OwnPtr in the TreeScope and IdTargetObserverRegistry classes with std::unique_ptr.
915
916         * dom/IdTargetObserverRegistry.cpp:
917         (WebCore::IdTargetObserverRegistry::addObserver):
918         * dom/IdTargetObserverRegistry.h:
919         (WebCore::IdTargetObserverRegistry::IdTargetObserverRegistry):
920         * dom/TreeScope.cpp:
921         (WebCore::TreeScope::TreeScope):
922         (WebCore::TreeScope::destroyTreeScopeData):
923         (WebCore::TreeScope::addElementById):
924         (WebCore::TreeScope::addElementByName):
925         (WebCore::TreeScope::addImageMap):
926         (WebCore::TreeScope::labelElementForId):
927         * dom/TreeScope.h:
928         (WebCore::TreeScope::shouldCacheLabelsByForAttribute):
929
930 2014-02-08  Anders Carlsson  <andersca@apple.com>
931
932         Slight CTTE in PingLoader
933         https://bugs.webkit.org/show_bug.cgi?id=128462
934
935         Reviewed by Dan Bernstein.
936
937         PingLoader always wants a non-null frame.
938
939         * html/HTMLAnchorElement.cpp:
940         (WebCore::HTMLAnchorElement::sendPings):
941         * html/parser/XSSAuditorDelegate.cpp:
942         (WebCore::XSSAuditorDelegate::didBlockScript):
943         * inspector/InspectorInstrumentation.h:
944         (WebCore::InspectorInstrumentation::continueAfterPingLoader):
945         * loader/PingLoader.cpp:
946         (WebCore::PingLoader::loadImage):
947         (WebCore::PingLoader::sendPing):
948         (WebCore::PingLoader::sendViolationReport):
949         (WebCore::PingLoader::createPingLoader):
950         (WebCore::PingLoader::PingLoader):
951         * loader/PingLoader.h:
952         * loader/cache/CachedResourceLoader.cpp:
953         (WebCore::CachedResourceLoader::requestImage):
954         * page/ContentSecurityPolicy.cpp:
955         (WebCore::ContentSecurityPolicy::reportViolation):
956
957 2014-02-08  Dan Bernstein  <mitz@apple.com>
958
959         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
960         https://bugs.webkit.org/show_bug.cgi?id=128456
961
962         Reviewed by Anders Carlsson.
963
964         Updated fast/css/getComputedStyle and svg/css results.
965
966         * css/CSSComputedStyleDeclaration.cpp:
967         (WebCore::ComputedStyleExtractor::propertyValue): Removed CSSPropertyWebKitHighlight case.
968         * css/CSSParser.cpp:
969         (WebCore::CSSParser::parseValue): Ditto.
970         * css/CSSPropertyNames.in: Removed -webkit-highlight.
971         * css/DeprecatedStyleBuilder.cpp:
972         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Removed
973         CSSPropertyWebKitHighlight handler.
974         * css/StyleResolver.cpp:
975         (WebCore::StyleResolver::applyProperty): Removed CSSPropertyWebKitHighlight case.
976         * page/Chrome.cpp: Removed customHighlightRect and paintCustomHighlight.
977         * page/ChromeClient.h: Ditto.
978         * rendering/InlineTextBox.cpp:
979         (WebCore::InlineTextBox::paint): Removed painting custom highlight.
980         * rendering/InlineTextBox.h:
981         * rendering/RenderBlockLineLayout.cpp:
982         (WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns): Removed adding overflow for custom
983         highlights.
984         * rendering/RenderBox.cpp: Removed paintCustomHighlight.
985         * rendering/RenderBox.h:
986         * rendering/RenderImage.cpp:
987         (WebCore::RenderImage::paintReplaced): Removed painting custom highlight.
988         * rendering/RenderListMarker.cpp:
989         (WebCore::RenderListMarker::paint): Ditto.
990         * rendering/RenderSnapshottedPlugIn.cpp:
991         (WebCore::RenderSnapshottedPlugIn::paintSnapshot): Ditto.
992         * rendering/RenderWidget.cpp:
993         (WebCore::RenderWidget::paint): Ditto.
994         * rendering/RootInlineBox.cpp:
995         (WebCore::RootInlineBox::paint): Ditto.
996         * rendering/RootInlineBox.h:
997         * rendering/style/RenderStyle.cpp:
998         (WebCore::RenderStyle::changeRequiresLayout): Removed highlight comparison.
999         * rendering/style/RenderStyle.h:
1000         * rendering/style/StyleRareInheritedData.cpp:
1001         (WebCore::StyleRareInheritedData::StyleRareInheritedData): Removed initializer.
1002         (WebCore::StyleRareInheritedData::operator==): Removed highlight comparison.
1003         * rendering/style/StyleRareInheritedData.h: Removed highlight member variable.
1004
1005 2014-02-08  Dan Bernstein  <mitz@apple.com>
1006
1007         One more build fix fix.
1008
1009         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1010         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
1011
1012 2014-02-08  Dan Bernstein  <mitz@apple.com>
1013
1014         More (and more correct) iOS build fix after r163712.
1015
1016         * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
1017         (AXAttributedStringAppendText):
1018         (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]):
1019         * page/ios/FrameIOS.mm:
1020         (WebCore::Frame::wordsInCurrentParagraph):
1021
1022 2014-02-08  Dan Bernstein  <mitz@apple.com>
1023
1024         iOS build fix after r163712.
1025
1026         * page/ios/FrameIOS.mm:
1027         (WebCore::Frame::indexCountOfWordPrecedingSelection):
1028         (WebCore::Frame::wordsInCurrentParagraph):
1029
1030 2014-02-08  Darin Adler  <darin@apple.com>
1031
1032         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
1033         https://bugs.webkit.org/show_bug.cgi?id=128233
1034
1035         Reviewed by Anders Carlsson.
1036
1037         * accessibility/AccessibilityNodeObject.cpp: Removed unneeded TextIterator.h include.
1038
1039         * accessibility/AccessibilityObject.cpp:
1040         (WebCore::AccessibilityObject::hasMisspelling): Updated to use StringView for checkSpelling.
1041
1042         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1043         (AXAttributeStringSetSpelling): Changed to take a StringView.
1044         (AXAttributedStringAppendText): Ditto.
1045         (-[WebAccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]): Pass StringView.
1046
1047         * editing/Editor.cpp:
1048         (WebCore::Editor::misspelledWordAtCaretOrRange): Pass StringView.
1049         (WebCore::Editor::misspelledSelectionString): Ditto.
1050         (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Ditto.
1051
1052         * editing/TextCheckingHelper.cpp:
1053         (WebCore::findGrammaticalErrors): Renamed this function. Changed to use StringView.
1054         (WebCore::findMisspellings): Use StringView.
1055         (WebCore::TextCheckingHelper::findFirstMisspelling): Ditto. Also separated out assertions
1056         that were asserting multiple things with &&.
1057         (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar): Ditto.
1058         (WebCore::TextCheckingHelper::findFirstGrammarDetail): Ditto.
1059         (WebCore::TextCheckingHelper::findFirstBadGrammar): Ditto.
1060         (WebCore::TextCheckingHelper::isUngrammatical): Ditto.
1061         (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange): Ditto.
1062         (WebCore::checkTextOfParagraph): Ditto.
1063
1064         * editing/TextCheckingHelper.h: Made TextCheckingParagraph::text public. Deleted
1065         TextCheckingParagraph::textDeprecatedCharacters. Added comments about additional
1066         TextCheckingParagraph refinements. Changed checkTextOfParagraph to take a client
1067         reference instead of pointer and StringView instead of characters pointer with length.
1068
1069         * editing/TextIterator.cpp:
1070         (WebCore::TextIterator::appendTextToStringBuilder): Use data members directly,
1071         rather than using functions, since we already checked m_textCharacters for null.
1072         (WebCore::CharacterIterator::string): Use text() instead of characters().
1073         (WebCore::WordAwareIterator::WordAwareIterator): Removed initialization of
1074         m_previousText now that it's a StringView rather than a pointer.
1075         (WebCore::WordAwareIterator::advance): Use TextIterator::text instead of
1076         TextIterator::characters. Also added a FIXME about a fundamental problem
1077         with the implementation of this class!
1078         (WebCore::WordAwareIterator::length): Updated for m_previousText change.
1079         (WebCore::WordAwareIterator::text): Replaced WordAwareIterator::characters with this.
1080         (WebCore::SearchBuffer::append): Changed to take a StringView.
1081         (WebCore::SearchBuffer::prependContext): Ditto.
1082         (WebCore::SearchBuffer::isWordStartMatch): Use StringView.
1083         (WebCore::SearchBuffer::search): Ditto.
1084         (WebCore::findPlainText): Ditto.
1085
1086         * editing/TextIterator.h: Added TextIterator::text that returns a StringView, and
1087         renamed TextIterator::characters to TextIterator::deprecatedTextIteratorCharacters
1088         (easy to search for in source code). Added SimplifiedBackwardsTextIterator::text
1089         and removed SimplifiedBackwardsTextIterator::characters. Added CharacterIterator::text,
1090         and removed CharacterIterator::characters. Added WordAwareIterator::text and removed
1091         WorkdAwareIterator::characters. Changed WordAwareIterator data members to use StringView.
1092
1093         * editing/VisibleSelection.cpp:
1094         (WebCore::VisibleSelection::appendTrailingWhitespace): Use TextIterator::text instead
1095         of TextIterator::characters.
1096
1097         * editing/VisibleUnits.cpp:
1098         (WebCore::previousBoundary): Updated to use StringView.
1099         (WebCore::nextBoundary): Ditto.
1100         (WebCore::startWordBoundary): Ditto.
1101         (WebCore::startOfWord): Ditto.
1102         (WebCore::endWordBoundary): Ditto.
1103         (WebCore::endOfWord): Fixed formatting.
1104         (WebCore::previousWordPositionBoundary): Updated to use StringView.
1105         (WebCore::previousWordPosition): Fixed formatting and got rid of local variable.
1106         (WebCore::nextWordPositionBoundary): Updated to use StringView.
1107         (WebCore::nextWordPosition): Fixed formatting and got rid of local variable.
1108         (WebCore::inSameLine): Fixed formatting.
1109         (WebCore::isStartOfLine): Ditto.
1110         (WebCore::isEndOfLine): Ditto.
1111         (WebCore::absoluteLineDirectionPointToLocalPointInBlock): Changed to take a reference.
1112         (WebCore::previousLinePosition): Fixed formatting chand changed to pass a reference.
1113         (WebCore::nextLinePosition): Ditto.
1114         (WebCore::startSentenceBoundary): Updated to use StringView and got rid of a local.
1115         (WebCore::startOfSentence): Fixed formatting.
1116         (WebCore::endSentenceBoundary): Updated to use StringView and got rid of a local.
1117         (WebCore::endOfSentence): Fixed formatting.
1118         (WebCore::previousSentencePositionBoundary): Updated to use StringView and got rid of
1119         a local.
1120         (WebCore::previousSentencePosition): Ditto.
1121         (WebCore::nextSentencePositionBoundary): Ditto.
1122         (WebCore::nextSentencePosition): Fixed formatting.
1123         (WebCore::endOfParagraph): Ditto.
1124         (WebCore::inSameParagraph): Ditto.
1125         (WebCore::isStartOfParagraph): Ditto.
1126         (WebCore::isEndOfParagraph): Ditto.
1127         (WebCore::inSameBlock): Ditto.
1128         (WebCore::isStartOfBlock): Ditto.
1129         (WebCore::isEndOfBlock): Ditto.
1130         (WebCore::startOfDocument): Ditto.
1131         (WebCore::endOfDocument): Ditto.
1132         (WebCore::inSameDocument): Ditto.
1133         (WebCore::isStartOfDocument): Ditto.
1134         (WebCore::isEndOfDocument): Ditto.
1135         (WebCore::isEndOfEditableOrNonEditableContent): Ditto.
1136
1137         * loader/EmptyClients.h: Use StringView.
1138
1139         * platform/mac/HTMLConverter.mm:
1140         (+[WebHTMLConverter editingAttributedStringFromRange:]): Use StringView.
1141
1142         * platform/text/TextBoundaries.cpp:
1143         (WebCore::endOfFirstWordBoundaryContext): Use StringView and unsigned.
1144         (WebCore::startOfLastWordBoundaryContext): Ditto.
1145
1146         * platform/text/TextBoundaries.h: Change interfaces to use StringView,
1147         and in some cases, unsigned instead of int. All call sites were better off
1148         with unsigned.
1149
1150         * platform/text/TextCheckerClient.h: Use StringView.
1151
1152         * platform/text/mac/TextBoundaries.mm: Changed conditionals to say
1153         USE(APPKIT) instead of PLATFORM(IOS), since that's the real issue.
1154         (WebCore::isSkipCharacter): Tweaked formatting.
1155         (WebCore::isWhitespaceCharacter): Ditto.
1156         (WebCore::isWordDelimitingCharacter): Ditto, also removed local variable.
1157         (WebCore::isSymbolCharacter): Ditto.
1158         (WebCore::tokenizerForString): Ditto.
1159         (WebCore::findSimpleWordBoundary): Use StringView. Also changed to mostly
1160         use unsigned instead of int.
1161         (WebCore::findComplexWordBoundary): Use StringView. Also restructured to
1162         be much more readable, with early returns and such.
1163         (WebCore::findWordBoundary): Use StringView and unsigned.
1164         (WebCore::findEndWordBoundary): Removed redudant copy of the findWordBoundary
1165         function and changed this to just call findWordBoundary. The reason this
1166         function exists is to optimize this case for some non-Mac, non-iOS platforms.
1167         We can always do that for Mac and/or iOS later if we like.
1168         (WebCore::findNextWordFromIndex): Use StringView. Also use wordBreakIterator
1169         instead of using UBreakIterator directly so we get a cached iterator instead
1170         of creating and destroying a new one each time this function is called.
1171
1172         * bindings/objc/DOMUIKitExtensions.mm: Removed unneeded includes.
1173         * dom/Element.cpp: Ditto.
1174         * dom/PositionIterator.cpp: Ditto.
1175         * editing/ApplyBlockElementCommand.cpp: Ditto.
1176         * editing/IndentOutdentCommand.cpp: Ditto.
1177         * editing/InsertListCommand.cpp: Ditto.
1178         * editing/markup.cpp: Ditto.
1179         * html/HTMLElement.cpp: Ditto.
1180         * html/HTMLTextAreaElement.cpp: Ditto.
1181         * page/Frame.cpp: Ditto.
1182         * rendering/RenderTextControl.cpp: Ditto.
1183
1184 2014-02-08  Andreas Kling  <akling@apple.com>
1185
1186         Remove two unused function declarations.
1187
1188         Scrub "highQualityRepaintTimerFired" declarations from RenderImage
1189         and RenderBoxModelObject since they're not actually defined.
1190
1191         * rendering/RenderBoxModelObject.h:
1192         * rendering/RenderImage.h:
1193
1194 2014-02-08  Andreas Kling  <akling@apple.com>
1195
1196         CTTE: SVGTRefTargetEventListener is always owned by SVGTRefElement.
1197         <https://webkit.org/b/128432>
1198
1199         Tighten up the relationship between SVGTRefElement and its internal
1200         event listener helper by storing the listener in a Ref, and making
1201         the listeners backpointer to the element be a reference.
1202
1203         Reviewed by Anders Carlsson.
1204
1205         * svg/SVGTRefElement.cpp:
1206         (WebCore::SVGTRefTargetEventListener::create):
1207         (WebCore::SVGTRefTargetEventListener::SVGTRefTargetEventListener):
1208         (WebCore::SVGTRefTargetEventListener::operator==):
1209         (WebCore::SVGTRefTargetEventListener::handleEvent):
1210         (WebCore::SVGTRefElement::SVGTRefElement):
1211         * svg/SVGTRefElement.h:
1212
1213 2014-02-07  Andreas Kling  <akling@apple.com>
1214
1215         Devirtualize RenderBlockFlowRareData.
1216         <https://webkit.org/b/128427>
1217
1218         This class had a virtual destructor for no reason. Removing it
1219         shrinks RenderBlockFlowRareData by 8 bytes.
1220
1221         Reviewed by Anders Carlsson.
1222
1223         * rendering/RenderBlockFlow.h:
1224         (WebCore::RenderBlockFlow::RenderBlockFlowRareData::~RenderBlockFlowRareData):
1225
1226 2014-02-08  Andreas Kling  <akling@apple.com>
1227
1228         Use renderer iterators in two more places.
1229         <https://webkit.org/b/128371>
1230
1231         Reviewed by Antti Koivisto.
1232
1233         * dom/Position.cpp:
1234         (WebCore::Position::primaryDirection):
1235
1236             Use lineageOfType instead of walking the parent chain.
1237
1238         * rendering/RenderLayer.cpp:
1239         (WebCore::RenderLayer::insertOnlyThisLayer):
1240
1241             Use childrenOfType instead of walking the children.
1242
1243 2014-02-07  David Kilzer  <ddkilzer@apple.com>
1244
1245         [ASan] Use new/delete in PODFreeListArena
1246         <http://webkit.org/b/128437>
1247
1248         Reviewed by Oliver Hunt.
1249
1250         * platform/PODFreeListArena.h:
1251         (WebCore::PODFreeListArena::allocateObject): Use new when
1252         ADDRESS_SANITIZER is defined.
1253         (WebCore::PODFreeListArena::freeObject): Use delete when
1254         ADDRESS_SANITIZER is defined.
1255
1256 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
1257
1258         Merge updateSelectionCachesIfSelectionIsInsideTextFormControl into setSelectionWithoutUpdatingAppearance
1259         https://bugs.webkit.org/show_bug.cgi?id=128439
1260
1261         Reviewed by Anders Carlsson.
1262
1263         FrameSelection::selectAll had a superfluous call to updateSelectionCachesIfSelectionIsInsideTextFormControl
1264         because it wasn't setting UserTriggered option to avoid revealing selection.
1265
1266         Call setSelection with UserTriggered and recently added DoNotRevealSelection option and merge
1267         updateSelectionCachesIfSelectionIsInsideTextFormControl into setSelectionWithoutUpdatingAppearance.
1268
1269         Also rename local variables in setSelectionWithoutUpdatingAppearance, newSelection to
1270         newSelectionPossiblyWithoutDirection and s to newSelection so that they're self explanatory.
1271
1272         In addition, we now update the input element's selection caches before calling
1273         selectFrameElementInParentIfFullySelected but this should be fine because selection cannot simultaneously
1274         select the entire document and be inside a text form control.
1275
1276         * editing/FrameSelection.cpp:
1277         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
1278         (WebCore::FrameSelection::selectAll):
1279
1280 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
1281
1282         EFL build fix attempt after r163662.
1283
1284         * Modules/indexeddb/leveldb/IDBLevelDBCoding.cpp:
1285         (WebCore::IDBLevelDBCoding::encodeIDBKey):
1286
1287 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
1288
1289         FrameSelection's destructor shouldn't notify accessibility
1290         https://bugs.webkit.org/show_bug.cgi?id=128421
1291
1292         Reviewed by Benjamin Poulain.
1293
1294         Extracted setSelectionWithoutUpdatingAppearance out of setSelection and called it in prepareForDestruction
1295         instead of setting DoNotUpdateAppearance option. This new function doesn't reveal selection or notify
1296         accessibility code in addition to not updating appearance.
1297
1298         Note that all implementations of notifyAccessibilityForSelectionChange in FrameSelectionAtk.cpp and
1299         FrameSelectionMac.mm exit early when the selection type is not caret or either start or end is null,
1300         which is already the case inside FrameSelection's destructor. In addition, revealSelection is never called
1301         when selection change was not triggered by user so there should be no behavioral change from this patch.
1302
1303         * editing/FrameSelection.cpp:
1304         (WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
1305         (WebCore::FrameSelection::setSelection):
1306         (WebCore::FrameSelection::prepareForDestruction):
1307         * editing/FrameSelection.h:
1308         (WebCore::FrameSelection::notifyAccessibilityForSelectionChange): Added the trivial implementation in the case
1309         accessibility is disabled to tidy up call sites.
1310
1311 2014-02-07  Martin Robinson  <mrobinson@igalia.com>
1312
1313         Build fix for the GTK+ CMake build
1314
1315         * PlatformGTK.cmake: VTTCue.idl was unintentionally added to the list of GObject DOM bindings
1316         output files. Remove it.
1317
1318 2014-02-07  Dirk Schulze  <krit@webkit.org>
1319
1320         Per CSSOM, computed rect() function values must be comma separated
1321         https://bugs.webkit.org/show_bug.cgi?id=128401
1322
1323         Reviewed by Simon Fraser.
1324
1325         Updated tests.
1326
1327         * css/Rect.h:
1328         (WebCore::Rect::generateCSSString):
1329
1330 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
1331
1332         Remove isInitialState flag from Page::setViewState
1333         https://bugs.webkit.org/show_bug.cgi?id=128428
1334
1335         Reviewed by Sam Weinig.
1336
1337         * WebCore.exp.in:
1338             - removed isInitialState.
1339         * page/Page.cpp:
1340         (WebCore::Page::setViewState):
1341             - removed isInitialState.
1342         (WebCore::Page::setIsVisible):
1343             - removed isInitialState.
1344         (WebCore::Page::setIsVisibleInternal):
1345             - removed isInitialState.
1346         * page/Page.h:
1347             - removed isInitialState.
1348
1349 2014-02-07  Simon Fraser  <simon.fraser@apple.com>
1350
1351         Encode requestedScrollPosition on ScrollingStateScrollingNodes to send to the UI process
1352         https://bugs.webkit.org/show_bug.cgi?id=128416
1353
1354         Reviewed by Tim Horton.
1355         
1356         Change requestedScrollPosition() to be a FloatPoint, and export
1357         ScrollingStateScrollingNode::setRequestedScrollPosition(WebCore::FloatPoint const&, bool)
1358         for WK2.
1359
1360         * WebCore.exp.in:
1361         * page/scrolling/ScrollingStateScrollingNode.cpp:
1362         (WebCore::ScrollingStateScrollingNode::setRequestedScrollPosition):
1363         * page/scrolling/ScrollingStateScrollingNode.h:
1364
1365 2014-02-07  Beth Dakin  <bdakin@apple.com>
1366
1367         Should get rid of TileController's CoverageForSlowScrolling mode
1368         https://bugs.webkit.org/show_bug.cgi?id=128339
1369
1370         Reviewed by Simon Fraser.
1371
1372         This patch gets rid of CoverageForSlowScrolling in the TileController. It also 
1373         makes sure that margin tiles are properly invalidated on pages with slow repaint 
1374         objects that cause slow scrolling. 
1375
1376         When we invalidate because of slow scrolling, don’t clip the update rect to the 
1377         layer bounds.
1378         * page/FrameView.cpp:
1379         (WebCore::FrameView::scrollContentsSlowPath):
1380
1381         Call new RenderObject paint function repaintSlowRepaintObject() instead of the 
1382         more-generic repaint().
1383         (WebCore::FrameView::repaintSlowRepaintObjects):
1384
1385         Remove CoverageForSlowScrolling.
1386         * platform/graphics/TiledBacking.h:
1387         * platform/graphics/ca/mac/TileController.h:
1388         * platform/graphics/ca/mac/TileController.mm:
1389         (WebCore::TileController::tilesWouldChangeForVisibleRect):
1390         (WebCore::TileController::computeTileCoverageRect):
1391         (WebCore::TileController::revalidateTiles):
1392         * rendering/RenderLayerBacking.cpp:
1393         (WebCore::computeTileCoverage):
1394
1395         Handle repainting a slow repaint object. Don’t clip when we shouldn’t, use the 
1396         RenderView’s backgroundRect as a repaintRect when this is the root background 
1397         since that will take the extended background rect into consideration.
1398         * rendering/RenderObject.cpp:
1399         (WebCore::RenderObject::repaintSlowRepaintObject):
1400         * rendering/RenderObject.h:
1401
1402 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
1403
1404         More FTL build scaffolding
1405         https://bugs.webkit.org/show_bug.cgi?id=128330
1406
1407         Reviewed by Geoffrey Garen.
1408
1409         The FTL already has tests.
1410
1411         * Configurations/FeatureDefines.xcconfig:
1412
1413 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
1414
1415         Remove some unused functions from SerializedScriptValue
1416         https://bugs.webkit.org/show_bug.cgi?id=128407
1417
1418         Reviewed by Anders Carlsson.
1419
1420         * bindings/js/SerializedScriptValue.cpp:
1421         (WebCore::SerializedScriptValue::undefinedValue):
1422         (WebCore::SerializedScriptValue::nullValue):
1423         * bindings/js/SerializedScriptValue.h:
1424
1425 2014-02-07  Brady Eidson  <beidson@apple.com>
1426
1427         IDB: Some Mozilla cursor mutation tests fail
1428         <rdar://problem/16011680> and https://bugs.webkit.org/show_bug.cgi?id=128374
1429
1430         Reviewed by Sam Weinig.
1431
1432         Tested by:
1433         storage/indexeddb/mozilla/cursor-mutation-objectstore-only.html
1434         storage/indexeddb/mozilla/cursor-mutation.html
1435
1436         The previous comment about LevelDB was wrong.
1437         Apparently calling onSuccess() with a null SharedBuffer means the cursor reached the end.
1438         Update to distinguish between an error and reaching the end:
1439         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
1440         (WebCore::CursorAdvanceOperation::perform):
1441         (WebCore::CursorIterationOperation::perform):
1442  
1443         Add a new IDBKey type - Maximum - To be used in comparisons between keys.
1444         This will allow the DatabaseProcess to operate on the range of all keys:
1445         * Modules/indexeddb/IDBKey.cpp:
1446         (WebCore::IDBKey::compare):
1447         * Modules/indexeddb/IDBKey.h:
1448
1449         * Modules/indexeddb/IDBKeyData.cpp:
1450         (WebCore::IDBKeyData::IDBKeyData):
1451         (WebCore::IDBKeyData::maybeCreateIDBKey):
1452         (WebCore::IDBKeyData::isolatedCopy):
1453         (WebCore::IDBKeyData::encode):
1454         (WebCore::IDBKeyData::decode):
1455         (WebCore::IDBKeyData::compare):
1456         (WebCore::IDBKeyData::loggingString):
1457         * Modules/indexeddb/IDBKeyData.h:
1458         (WebCore::IDBKeyData::minimum):
1459         (WebCore::IDBKeyData::maximum):
1460
1461         * bindings/js/IDBBindingUtilities.cpp:
1462         (WebCore::idbKeyToJSValue):
1463
1464         Remove an unused callback:
1465         * Modules/indexeddb/IDBCallbacks.h:
1466         * Modules/indexeddb/IDBRequest.h:
1467
1468 2014-02-07  Roger Fong  <roger_fong@apple.com>
1469
1470         CGContextGetUserSpaceToDeviceSpaceTransform returns the wrong value on Windows.
1471         https://bugs.webkit.org/show_bug.cgi?id=128395.
1472         
1473         Rubberstamped by Zalan Bujtas.
1474
1475         The call essentially returns 0 and causes an assertion failure when running many layout tests.
1476
1477         * platform/graphics/cg/GraphicsContextCG.cpp: Don't make the call on Windows. We default to 1.
1478         (WebCore::GraphicsContext::platformInit):
1479
1480 2014-02-07  Dan Bernstein  <mitz@apple.com>
1481
1482         iOS build fix.
1483
1484         * platform/PlatformKeyboardEvent.h: Fixed a typo.
1485
1486 2014-02-07  Dan Bernstein  <mitz@apple.com>
1487
1488         Stop using PLATFORM(MAC) in WebCore/platform except where it means “OS X but not iOS”
1489         https://bugs.webkit.org/show_bug.cgi?id=128404
1490
1491         Reviewed by Anders Carlsson.
1492
1493         * Configurations/WebCore.xcconfig: Removed KeyEventMac.mm from
1494         EXCLUDED_SOURCE_FILE_NAMES_iphoneos, because that file contains !PLATFORM(IOS) guards.
1495         Removed WheelEventMac.mm from the same definition, because that file no longer exists.
1496         * platform/ContentFilter.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1497         * platform/ContextMenu.h: Ditto.
1498         * platform/ContextMenuItem.h: Ditto.
1499         * platform/Cursor.cpp: Ditto.
1500         * platform/Cursor.h: Ditto.
1501         * platform/DragData.cpp: Ditto.
1502         * platform/DragImage.cpp: Ditto.
1503         * platform/Language.cpp:
1504         (WebCore::displayNameForLanguageLocale): Changed PLATFORM(MAC) to USE(CF) && !PLATFORM(WIN).
1505         * platform/LocalizedStrings.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1506         (WebCore::contextMenuItemTagSearchWeb):
1507         * platform/LocalizedStrings.h: Ditto.
1508         * platform/MIMETypeRegistry.cpp: Ditto.
1509         (WebCore::initializeSupportedImageMIMETypesForEncoding):
1510         * platform/PasteboardStrategy.h: Ditto.
1511         * platform/PlatformKeyboardEvent.h: Ditto.
1512         * platform/PlatformMenuDescription.h: Ditto.
1513         * platform/PlatformSpeechSynthesizer.h: Ditto.
1514         * platform/PlatformWheelEvent.h: Ditto.
1515         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1516         * platform/SchemeRegistry.cpp: Ditto.
1517         (WebCore::localURLSchemes):
1518         (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal):
1519         (WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely):
1520         * platform/ScrollAnimator.cpp: Ditto.
1521         (WebCore::ScrollAnimator::handleWheelEvent):
1522         * platform/ScrollAnimator.h: Ditto.
1523         * platform/ScrollView.cpp: Ditto.
1524         * platform/ScrollView.h: Ditto.
1525         * platform/ScrollbarThemeComposite.h: Ditto.
1526         * platform/SharedBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSData-related
1527         code.
1528         * platform/URL.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSURL-related code.
1529         * platform/Widget.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1530         * platform/Widget.h: Ditto.
1531         * platform/audio/AudioSession.cpp: Changed !PLATFORM(MAC) && !PLATFORM(IOS) to
1532         !PLATFORM(COCOA).
1533         * platform/audio/HRTFElevation.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1534         * platform/audio/MediaSessionManager.cpp: Ditto.
1535         * platform/audio/mac/AudioSessionMac.cpp: Updated comment.
1536         * platform/audio/mac/MediaSessionManagerMac.cpp: Removed PLATFORM(MAC) from Cocoa-only file.
1537         * platform/cf/SharedBufferCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION) and updated
1538         comment.
1539         * platform/cf/URLCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION).
1540         * platform/graphics/BitmapImage.h: Changed one instance of PLATFORM(MAC) to
1541         USE(CG) || USE(APPKIT), and another to PLATFORM(COCOA).
1542         * platform/graphics/DisplayRefreshMonitor.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1543         (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
1544         * platform/graphics/DisplayRefreshMonitor.h: Ditto.
1545         * platform/graphics/FloatPoint.h: Collapsed nested #ifs into a single #if.
1546         * platform/graphics/FloatRect.h: Ditto.
1547         * platform/graphics/FloatSize.h: Ditto.
1548         * platform/graphics/Font.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1549         * platform/graphics/Font.h: Ditto.
1550         * platform/graphics/FontCache.cpp: Ditto.
1551         (WebCore::FontCache::getFontData):
1552         * platform/graphics/FontCache.h: Ditto. Also removed redundant friend class declaration.
1553         * platform/graphics/FontGlyphs.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1554         (WebCore::FontGlyphs::glyphDataAndPageForCharacter):
1555         * platform/graphics/GlyphPage.h: Ditto.
1556         * platform/graphics/GraphicsContext3D.h: Ditto.
1557         * platform/graphics/Image.h: Changed PLATFORM(MAC) to USE(APPKIT) around use of NSImage.
1558         Changed another PLATFORM(MAC) to PLATFORM(COCOA).
1559         * platform/graphics/IntRect.h: Collapsed nested #ifs into a single #if.
1560         * platform/graphics/IntSize.h: Ditto.
1561         * platform/graphics/MediaPlayer.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1562         (WebCore::installedMediaEngines):
1563         (WebCore::MediaPlayer::supportsType):
1564         * platform/graphics/SimpleFontData.cpp: Ditto.
1565         (WebCore::SimpleFontData::nonSyntheticItalicFontData):
1566         (WebCore::SimpleFontData::DerivedFontData::~DerivedFontData):
1567         * platform/graphics/SimpleFontData.h: Ditto.
1568         * platform/graphics/TiledBacking.h: Ditto.
1569         * platform/graphics/ca/GraphicsLayerCA.cpp: Ditto.
1570         (WebCore::GraphicsLayerCA::filtersCanBeComposited):
1571         (WebCore::GraphicsLayerCA::createPlatformCALayer):
1572         * platform/graphics/ca/LayerFlushScheduler.h: Ditto.
1573         * platform/graphics/ca/PlatformCAAnimation.h: Ditto.
1574         * platform/graphics/ca/PlatformCAFilters.h: Ditto.
1575         * platform/graphics/ca/PlatformCALayer.h: Ditto.
1576         * platform/graphics/cg/BitmapImageCG.cpp: Ditto.
1577         * platform/graphics/cg/GraphicsContextCG.cpp: Ditto.
1578         (WebCore::GraphicsContext::setAllowsFontSmoothing):
1579         * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h: Ditto.
1580         * platform/graphics/cg/ImageBufferCG.cpp: Ditto.
1581         * platform/graphics/cg/ImageBufferDataCG.h: Ditto.
1582         * platform/graphics/cg/ImageCG.cpp: Ditto.
1583         * platform/graphics/cg/ImageSourceCG.cpp: Ditto.
1584         (WebCore::ImageSource::setData):
1585         * platform/graphics/cg/ImageSourceCG.h: Ditto.
1586         * platform/graphics/cg/PathCG.cpp: Ditto.
1587         (WebCore::Path::platformAddPathForRoundedRect):
1588         * platform/graphics/cg/PatternCG.cpp: Ditto.
1589         * platform/graphics/gpu/DrawingBuffer.h: Ditto.
1590         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
1591         (WebCore::MediaPlayerPrivateQTKit::createQTMovieView): Removed PLATFORM(MAC) guards, since
1592         this file is only used on Mac and iOS.
1593         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
1594         (WebCore::Extensions3DOpenGL::supportsExtension): Changed the GL_EXT_draw_buffers check to
1595         match the implementation.
1596         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: Changed PLATFORM(MAC) to
1597         PLATFORM(COCOA).
1598         * platform/mac/KeyEventMac.mm: Added !PLATFORM(IOS).
1599         * platform/mac/PlatformEventFactoryMac.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1600         * platform/mac/WebCoreSystemInterface.h: Ditto. Removed redundant check for PLATFORM(MAC).
1601         * platform/mac/WebCoreSystemInterface.mm: Removed redundant check for PLATFORM(MAC).
1602         * platform/network/Credential.h: Changed PLATFORM(IOS) || PLATFORM(MAC) to PLATFORM(COCOA).
1603         * platform/network/NetworkStateNotifier.h: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1604         * platform/network/NetworkStorageSession.h: Ditto.
1605         * platform/network/NetworkingContext.h: Ditto.
1606         * platform/network/ProtectionSpace.cpp: Ditto.
1607         (WebCore::ProtectionSpace::receivesCredentialSecurely):
1608         * platform/network/ResourceHandle.cpp: Ditto.
1609         (WebCore::ResourceHandle::clearAuthentication):
1610         (WebCore::ResourceHandle::shouldContentSniffURL):
1611         * platform/network/ResourceHandle.h: Ditto.
1612         * platform/network/ResourceHandleClient.cpp: Ditto.
1613         * platform/network/ResourceHandleClient.h: Ditto.
1614         * platform/network/ResourceHandleInternal.h: Ditto.
1615         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
1616         * platform/network/ResourceRequestBase.cpp: Ditto.
1617         * platform/network/cf/AuthenticationCF.h: Ditto.
1618         * platform/network/cf/CookieStorageCFNet.cpp: Ditto.
1619         * platform/network/cf/CredentialStorageCFNet.cpp: Ditto.
1620         * platform/network/cf/FormDataStreamCFNet.cpp: Ditto.
1621         * platform/network/cf/NetworkStorageSessionCFNet.cpp: Ditto.
1622         (WebCore::NetworkStorageSession::switchToNewTestingSession):
1623         (WebCore::NetworkStorageSession::createPrivateBrowsingSession):
1624         * platform/network/cf/ResourceError.h: Ditto.
1625         * platform/network/cf/ResourceHandleCFNet.cpp: Ditto.
1626         (WebCore::ResourceHandle::createCFURLConnection):
1627         * platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp:
1628         * platform/network/cf/ResourceRequest.h: Ditto.
1629         (WebCore::ResourceRequest::ResourceRequest):
1630         * platform/network/cf/ResourceRequestCFNet.cpp: Ditto.
1631         (WebCore::ResourceRequest::doUpdatePlatformRequest):
1632         (WebCore::ResourceRequest::doUpdatePlatformHTTPBody):
1633         (WebCore::ResourceRequest::setStorageSession):
1634         * platform/network/cf/ResourceResponse.h: Ditto.
1635         * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp:
1636         (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse):
1637         * platform/network/mac/ResourceResponseMac.mm: Ditto.
1638         * platform/posix/FileSystemPOSIX.cpp: Changed PLATFORM(MAC) to OS(DARWIN) &&
1639         !PLATFORM(EFL) && !PLATFORM(GTK).
1640         * platform/text/TextBoundaries.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA).
1641
1642 2014-02-07  Ryosuke Niwa  <rniwa@webkit.org>
1643
1644         Revert r154384 and r154674 as they broke selection rect computations for text with ligatures.
1645
1646         * platform/graphics/Font.cpp:
1647         (WebCore::Font::drawText):
1648         (WebCore::Font::drawEmphasisMarks):
1649         (WebCore::Font::selectionRectForText):
1650         (WebCore::Font::offsetForPosition):
1651         * platform/graphics/FontFastPath.cpp:
1652         (WebCore::Font::getGlyphsAndAdvancesForSimpleText):
1653         (WebCore::Font::selectionRectForSimpleText):
1654         (WebCore::Font::offsetForPositionForSimpleText):
1655         * platform/graphics/GlyphBuffer.h:
1656         * platform/graphics/WidthIterator.cpp:
1657         (WebCore::WidthIterator::WidthIterator):
1658         (WebCore::WidthIterator::advanceInternal):
1659         (WebCore::WidthIterator::advanceOneCharacter):
1660         * platform/graphics/WidthIterator.h:
1661
1662 2014-02-07  Benjamin Poulain  <bpoulain@apple.com>
1663
1664         [WK2] Add support for text document viewport configuration
1665         https://bugs.webkit.org/show_bug.cgi?id=128359
1666
1667         Reviewed by Simon Fraser.
1668
1669         Define a set of ViewportParameters suitable for displaying text documents.
1670         Add a documents class for text document to differentiate them from other type of documents.
1671
1672         * WebCore.exp.in:
1673         * dom/Document.h:
1674         (WebCore::Document::isTextDocument):
1675         * html/TextDocument.cpp:
1676         (WebCore::TextDocument::TextDocument):
1677         * page/ViewportConfiguration.cpp:
1678         (WebCore::ViewportConfiguration::ViewportConfiguration):
1679         (WebCore::ViewportConfiguration::webpageParameters):
1680         (WebCore::ViewportConfiguration::plainTextParameters):
1681         * page/ViewportConfiguration.h:
1682
1683 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
1684
1685         FloatingObject::unsafeClone should not copy m_originatingLine
1686         https://bugs.webkit.org/show_bug.cgi?id=128381
1687
1688         Reviewed by Andreas Kling.
1689
1690         Copying the originatingLine allows to break the invariant that the
1691         floating object must only contain lines that are owned by the renderer
1692         it is attached to.
1693
1694         * rendering/FloatingObjects.cpp:
1695         (WebCore::FloatingObject::unsafeClone):
1696
1697 2014-02-07  Brendan Long  <b.long@cablelabs.com>
1698
1699         Update TextTrack API to current spec
1700         https://bugs.webkit.org/show_bug.cgi?id=122218
1701
1702         Refactoring VTTCue out of TextTrackCue.
1703
1704         Reviewed by Eric Carlson.
1705
1706         Test: media/track/track-vttcue.html
1707
1708         * CMakeLists.txt: Add VTTCue and rename RenderTextTrackCue to RenderVTTCue.
1709         * DerivedSources.cpp: Same.
1710         * DerivedSources.make: Same.
1711         * GNUmakefile.list.am: Same.
1712         * PlatformGTK.cmake:  Same.
1713         * WebCore.vcxproj/WebCore.vcxproj: Same.
1714         * WebCore.vcxproj/WebCore.vcxproj.filters: Same.
1715         * WebCore.xcodeproj/project.pbxproj: Same.
1716         * bindings/js/JSTextTrackCueCustom.cpp:
1717         (WebCore::toJS): Use VTTCue DOM wrapper for VTTCue and its subclasses.
1718         * html/HTMLMediaElement.cpp:
1719         (WebCore::HTMLMediaElement::updateActiveTextTrackCues): Convert to VTTCue as needed.
1720         (WebCore::HTMLMediaElement::textTrackRemoveCue): Same.
1721         * html/HTMLMediaElement.h: Only print cue.text in debug output if the cue type has a .text attribute
1722         * html/shadow/MediaControlElements.cpp:
1723         (WebCore::MediaControlTextTrackContainerElement::updateDisplay): Convert to VTTCue as needed, and fix TextTrackCueBox to VTTCueBox.
1724         (WebCore::MediaControlTextTrackContainerElement::updateTimerFired): Convert to VTTCue as needed.
1725         * html/track/InbandGenericTextTrack.cpp:
1726         (WebCore::InbandGenericTextTrack::addGenericCue): Use refactored VTTCue attributes.
1727         * html/track/InbandWebVTTTextTrack.cpp:
1728         (WebCore::InbandWebVTTTextTrack::newCuesParsed): Use VTTCue's constructor instead of deprecated TextTrackCue constructor.
1729         * html/track/TextTrack.cpp:
1730         (WebCore::TextTrack::setMode): Convert to VTTCue as needed.
1731         (WebCore::TextTrack::hasCue): Make this function only accept VTTCues, since it's only used for them anyway, and convert existing cues to VTTCues as needed.
1732         * html/track/TextTrack.h: Same as hasCue above.
1733         * html/track/TextTrackCue.cpp: Refactor a lot of code out. Everything that was removed went to VTTCue.cpp.
1734         (WebCore::TextTrackCue::create): For backwards compatibility, just call VTTCue::create().
1735         (WebCore::TextTrackCue::TextTrackCue): Refactor a lot of code out.
1736         (WebCore::TextTrackCue::~TextTrackCue): Same.
1737         (WebCore::TextTrackCue::didChange): Same.
1738         (WebCore::TextTrackCue::setIsActive): Same.
1739         * html/track/TextTrackCue.h: Same.
1740         * html/track/TextTrackCue.idl: Remove VTTCue attributes and add custom toJS function.
1741         * html/track/TextTrackCueGeneric.cpp: Use VTTCue instead of TextTrackCue.
1742         * html/track/TextTrackCueGeneric.h: Same.
1743         * html/track/VTTCue.cpp: Copied from Source/WebCore/html/track/TextTrackCue.cpp.
1744         * html/track/VTTCue.h: Copied from Source/WebCore/html/track/TextTrackCue.h.
1745         * html/track/VTTCue.idl: Copied from Source/WebCore/html/track/TextTrackCue.idl.
1746         * loader/TextTrackLoader.cpp:
1747         (WebCore::TextTrackLoader::getNewCues): Use VTTCue instead of TextTrackCue.
1748         * page/CaptionUserPreferencesMediaAF.cpp:
1749         (WebCore::CaptionUserPreferencesMediaAF::captionsStyleSheetOverride): Use VTTCueBox instead of TextTrackCueBox.
1750         * rendering/RenderVTTCue.cpp: Renamed from Source/WebCore/rendering/RenderTextTrackCue.cpp. Changed to use VTTCue instead of TextTrackCue.
1751         * rendering/RenderVTTCue.h: Renamed from Source/WebCore/rendering/RenderTextTrackCue.h. Changed to use VTTCue instead of TextTrackCue.
1752         * rendering/RenderingAllInOne.cpp: Rename RenderTextTrackCue to RenderVTTCue.
1753
1754 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
1755
1756         Should report user input to PageThrottler
1757         https://bugs.webkit.org/show_bug.cgi?id=128398
1758
1759         Reviewed by Tim Horton.
1760
1761         Make sure we wake from AppNap if there is user interaction.
1762
1763         * page/PageThrottler.h:
1764         (WebCore::PageThrottler::didReceiveUserInput):
1765         (WebCore::PageThrottler::pluginDidEvaluate):
1766             - added, these call reportInterestingEvent()
1767
1768 2014-02-07  Jer Noble  <jer.noble@apple.com>
1769
1770         Unreviewed build fix for 32-bit iOS.
1771
1772         Use magic ? values to allow the exported symbol to be different on 32- and 64-bit builds.
1773
1774         * WebCore.exp.in:
1775
1776 2014-02-07  Anders Carlsson  <andersca@apple.com>
1777
1778         Convert ProgressTracker to std::chrono
1779         https://bugs.webkit.org/show_bug.cgi?id=128377
1780
1781         Reviewed by Andreas Kling.
1782
1783         * loader/ProgressTracker.cpp:
1784         (WebCore::ProgressTracker::ProgressTracker):
1785         (WebCore::ProgressTracker::reset):
1786         (WebCore::ProgressTracker::progressStarted):
1787         (WebCore::ProgressTracker::finalProgressComplete):
1788         (WebCore::ProgressTracker::incrementProgress):
1789         * loader/ProgressTracker.h:
1790
1791 2014-02-07  Alexey Proskuryakov  <ap@apple.com>
1792
1793         32-bit build fix.
1794
1795         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1796         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
1797
1798 2014-02-07  Mihai Tica  <mitica@adobe.com>
1799
1800         [CSS Background Blending] Unprefix the -webkit-background-blend-mode property
1801
1802         https://bugs.webkit.org/show_bug.cgi?id=128270
1803
1804         Reviewed by Dean Jackson.
1805
1806         This patch consist of unprefixing the -webkit-background-blend-mode.
1807         The property now changes to background-blend-mode.
1808
1809         * css/CSSComputedStyleDeclaration.cpp:
1810         (WebCore::ComputedStyleExtractor::propertyValue):
1811         * css/CSSParser.cpp:
1812         (WebCore::CSSParser::parseValue):
1813         (WebCore::CSSParser::parseFillProperty):
1814         * css/CSSPropertyNames.in:
1815         * css/DeprecatedStyleBuilder.cpp:
1816         (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
1817
1818 2014-02-07  Samuel White  <samuel_white@apple.com>
1819
1820         AX: Find and select text with respect to insertion point using accessibility API.
1821         https://bugs.webkit.org/show_bug.cgi?id=128026
1822
1823         Reviewed by Chris Fleizach.
1824
1825         Added facilities to support semi-ambiguous text selection through the accessibility API. All
1826         requests are handled with respect to the current selection. The requests are disambiguated in
1827         WebCore using passed parameters such as: SelectStringAfterSelection , ..Before.., ..ClosestTo...,
1828         etc. Callers can also supply an array of strings to select and the closest that matches the
1829         disambiguation criteria will be used.
1830
1831         Test: platform/mac/accessibility/select-text.html
1832
1833         * accessibility/AccessibilityObject.cpp:
1834         (WebCore::AccessibilityObject::rangeClosestToRange):
1835         (WebCore::AccessibilityObject::rangeOfStringClosestToRangeInDirection):
1836         (WebCore::AccessibilityObject::selectionRange):
1837         (WebCore::AccessibilityObject::selectText):
1838         (WebCore::AccessibilityObject::frame):
1839         * accessibility/AccessibilityObject.h:
1840         (WebCore::AccessibilitySelectTextCriteria::AccessibilitySelectTextCriteria):
1841         * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
1842         (accessibilitySelectTextCriteriaForCriteriaParameterizedAttribute):
1843         (-[WebAccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
1844         (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
1845         * dom/Position.cpp:
1846         (WebCore::Position::positionCountBetweenPositions):
1847         * dom/Position.h:
1848
1849 2014-02-07  Bem Jones-Bey  <bjonesbe@adobe.com>
1850
1851         FloatingObject m_paginationStrut should be LayoutUnit
1852         https://bugs.webkit.org/show_bug.cgi?id=119808
1853
1854         Reviewed by Andreas Kling.
1855
1856         Make the paginationStrut in FloatingObject have the same type as all
1857         of the other paginationStruts in the code.
1858
1859         * rendering/FloatingObjects.h:
1860         (WebCore::FloatingObject::paginationStrut):
1861         (WebCore::FloatingObject::setPaginationStrut):
1862         * rendering/RenderBlockLineLayout.cpp:
1863         (WebCore::RenderBlockFlow::positionNewFloatOnLine):
1864
1865 2014-02-06  Brady Eidson  <beidson@apple.com>
1866
1867         IDB: storage/indexeddb/create-index-with-integer-keys.html fails
1868         <rdar://problem/16002857> and https://bugs.webkit.org/show_bug.cgi?id=128316
1869
1870         Reviewed by Geoff Garen.
1871
1872         Tested by storage/indexeddb/create-index-with-integer-keys.html (and probably some others)
1873
1874         * Modules/indexeddb/IDBCursor.cpp:
1875         (WebCore::IDBCursor::update): Update createIDBKeyFromScriptValueAndKeyPath usage.
1876         (WebCore::IDBCursor::setValueReady): Update createIDBKeyFromScriptValueAndKeyPath usage.
1877
1878         * Modules/indexeddb/IDBObjectStore.cpp:
1879         (WebCore::IDBObjectStore::put): Update usage of binding utilities.
1880
1881         * Modules/indexeddb/IDBRequest.cpp:
1882         (WebCore::IDBRequest::onSuccess): Update createIDBKeyFromScriptValueAndKeyPath usage.
1883
1884         * bindings/js/IDBBindingUtilities.cpp:
1885         (WebCore::internalCreateIDBKeyFromScriptValueAndKeyPath):
1886         (WebCore::createIDBKeyFromScriptValueAndKeyPath): Changed to take an ExecState*.
1887         (WebCore::deserializeIDBValueBuffer): Added new version that starts with ExecState* and Vector<uint8_t>
1888           instead of RequestState and SharedBuffer.
1889         (WebCore::generateIndexKeysForValue): Moved from IDBObjectStore.cpp and changed to take an ExecState*
1890         * bindings/js/IDBBindingUtilities.h:
1891
1892         Added new blob fetcher that works with uint8_t buffers:
1893         * platform/sql/SQLiteStatement.cpp:
1894         (WebCore::SQLiteStatement::getColumnBlobAsVector):
1895         * platform/sql/SQLiteStatement.h:
1896
1897         * WebCore.exp.in:
1898
1899 2014-02-07  Frédéric Wang  <fred.wang@free.fr>
1900
1901         childShouldCreateRenderer should return false for the mspace element
1902         https://bugs.webkit.org/show_bug.cgi?id=128325
1903
1904         Reviewed by Chris Fleizach.
1905
1906         The mspace element can not have children so this makes its
1907         childShouldCreateRenderer always return false.
1908
1909         Test: mathml/presentation/mspace-children.html
1910
1911         * mathml/MathMLTextElement.cpp:
1912         (WebCore::MathMLTextElement::childShouldCreateRenderer):
1913
1914 2014-02-07  Javier Fernandez  <jfernandez@igalia.com>
1915
1916         [CSS Grid Layout] Rename grid-definition-{columns|rows} to match the new syntax
1917         https://bugs.webkit.org/show_bug.cgi?id=127989
1918
1919         Reviewed by Andreas Kling.
1920
1921         In the latest WD, grid-definition-{columns|rows} were renamed to grid-template-{columns|rows}.
1922
1923         * css/CSSComputedStyleDeclaration.cpp:
1924         (WebCore::isLayoutDependent):
1925         (WebCore::ComputedStyleExtractor::propertyValue):
1926         * css/CSSParser.cpp:
1927         (WebCore::CSSParser::parseValue):
1928         * css/CSSPropertyNames.in:
1929         * css/StyleResolver.cpp:
1930         (WebCore::StyleResolver::applyProperty):
1931
1932 2014-02-07  Andreas Kling  <akling@apple.com>
1933
1934         CTTE: DocumentThreadableLoader always has a Document.
1935         <https://webkit.org/b/128364>
1936
1937         DocumentThreadableLoader always has an "owner" Document, so store
1938         that as a reference instead of a pointer. Removed some unnecessary
1939         assertions exposed by this change.
1940
1941         Reviewed by Antti Koivisto.
1942
1943         * loader/DocumentThreadableLoader.cpp:
1944         (WebCore::DocumentThreadableLoader::loadResourceSynchronously):
1945         (WebCore::DocumentThreadableLoader::create):
1946         (WebCore::DocumentThreadableLoader::DocumentThreadableLoader):
1947         (WebCore::DocumentThreadableLoader::didReceiveResponse):
1948         (WebCore::DocumentThreadableLoader::didReceiveData):
1949         (WebCore::DocumentThreadableLoader::didFinishLoading):
1950         (WebCore::DocumentThreadableLoader::didFail):
1951         (WebCore::DocumentThreadableLoader::preflightFailure):
1952         (WebCore::DocumentThreadableLoader::loadRequest):
1953         (WebCore::DocumentThreadableLoader::securityOrigin):
1954         * loader/DocumentThreadableLoader.h:
1955         * loader/ThreadableLoader.cpp:
1956         (WebCore::ThreadableLoader::create):
1957         (WebCore::ThreadableLoader::loadResourceSynchronously):
1958         * loader/WorkerThreadableLoader.cpp:
1959         (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
1960
1961 2014-02-07  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
1962
1963         Vector-effect updates require a re-layout
1964         https://bugs.webkit.org/show_bug.cgi?id=127553
1965
1966         Reviewed by Andreas Kling.
1967
1968         As noted in the stale SVGRenderStyle::diff() comment, now that layout() observes vector-effect
1969         we need to trigger a re-layout on attribute changes.
1970
1971         Merged from Blink: https://src.chromium.org/viewvc/blink?revision=152570&view=revision
1972
1973         Tests: svg/custom/non-scaling-stroke-update-expected.svg
1974                svg/custom/non-scaling-stroke-update.svg
1975
1976         * rendering/style/SVGRenderStyle.cpp:
1977         (WebCore::SVGRenderStyle::diff):
1978
1979 2014-02-07  Laszlo Vidacs  <lvidacs.u-szeged@partner.samsung.com>
1980
1981         Renaming isTableElement() to isRenderedTable() as per the FIXME comment
1982         https://bugs.webkit.org/show_bug.cgi?id=127769
1983
1984         Reviewed by Andreas Kling.
1985
1986         Rename method and use IsTable() instead of local type checking.
1987
1988         * dom/Position.cpp:
1989         (WebCore::Position::parentAnchoredEquivalent):
1990         (WebCore::Position::upstream):
1991         (WebCore::Position::downstream):
1992         (WebCore::Position::isCandidate):
1993         * dom/PositionIterator.cpp:
1994         (WebCore::PositionIterator::isCandidate):
1995         * editing/CompositeEditCommand.cpp:
1996         (WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):
1997         (WebCore::CompositeEditCommand::moveParagraphWithClones):
1998         * editing/FrameSelection.cpp:
1999         (WebCore::caretRendersInsideNode):
2000         * editing/VisibleUnits.cpp:
2001         (WebCore::startOfParagraph):
2002         (WebCore::endOfParagraph):
2003         * editing/htmlediting.cpp:
2004         (WebCore::firstInSpecialElement):
2005         (WebCore::lastInSpecialElement):
2006         (WebCore::isRenderedTable):
2007         * editing/htmlediting.h:
2008         * rendering/RenderBox.cpp:
2009         (WebCore::RenderBox::localCaretRect):
2010
2011 2014-02-06  Brady Eidson  <beidson@apple.com>
2012
2013         IDB: Remove the entirely unnecessary "Value Key" concept
2014         https://bugs.webkit.org/show_bug.cgi?id=128360
2015
2016         Reviewed by Dan Bernstein.
2017
2018         No new tests (No change in behavior)
2019
2020         All cursor operations were set up to pass a value key parameter around, but it was:
2021         1 - Entirely unused
2022         2 - The same thing that the primary key is supposed to be
2023
2024         * Modules/indexeddb/IDBCallbacks.h:
2025
2026         * Modules/indexeddb/IDBCursorBackend.cpp:
2027         (WebCore::IDBCursorBackend::updateCursorData):
2028         (WebCore::IDBCursorBackend::clear):
2029         * Modules/indexeddb/IDBCursorBackend.h:
2030
2031         * Modules/indexeddb/IDBCursorBackendOperations.cpp:
2032         (WebCore::CursorAdvanceOperation::perform):
2033         (WebCore::CursorIterationOperation::perform):
2034
2035         * Modules/indexeddb/IDBRequest.cpp:
2036         (WebCore::IDBRequest::onSuccess):
2037         * Modules/indexeddb/IDBRequest.h:
2038
2039         * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
2040         (WebCore::OpenCursorOperation::perform):
2041
2042         * Modules/indexeddb/IDBServerConnection.h:
2043         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
2044         (WebCore::IDBServerConnectionLevelDB::openCursor):
2045         (WebCore::IDBServerConnectionLevelDB::cursorAdvance):
2046         (WebCore::IDBServerConnectionLevelDB::cursorIterate):
2047         * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
2048
2049 2014-02-06  Jeremy Jones  <jeremyj@apple.com>
2050
2051         Add support for AVKit fullscreen to WebKit2
2052         https://bugs.webkit.org/show_bug.cgi?id=128143
2053
2054         Reviewed by Simon Fraser.
2055
2056         Rename overloaded functions to prevent ambiguous template parameter
2057         compile error in generated code.
2058
2059         Rename overloaded exitFullscreen to exitFullscreenWithCompletionHandler.
2060         Rename overloaded enterFullscreen to enterFullscreenWithCompletionHandler.
2061
2062         * WebCore.exp.in:
2063         * WebCore.xcodeproj/project.pbxproj:
2064         * platform/ios/WebVideoFullscreenControllerAVKit.mm:
2065         (-[WebVideoFullscreenController exitFullscreen]):
2066         * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
2067         * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
2068         (WebVideoFullscreenInterfaceAVKit::enterFullscreenWithCompletionHandler):
2069         (WebVideoFullscreenInterfaceAVKit::enterFullscreen):
2070         (WebVideoFullscreenInterfaceAVKit::exitFullscreenWithCompletionHandler):
2071         (WebVideoFullscreenInterfaceAVKit::exitFullscreen):
2072         * platform/ios/WebVideoFullscreenModelMediaElement.h:
2073
2074 2014-02-06  Jeffrey Pfau  <jpfau@apple.com>
2075
2076         loadSubframe can return null in SubframeLoader::loadOrRedirectSubframe
2077         https://bugs.webkit.org/show_bug.cgi?id=128344
2078
2079         Reviewed by Ryosuke Niwa.
2080
2081         * loader/SubframeLoader.cpp:
2082         (WebCore::SubframeLoader::loadOrRedirectSubframe):
2083
2084 2014-02-06  Andreas Kling  <akling@apple.com>
2085
2086         Use child iterator in HTMLDetailsElement::findMainSummary().
2087         <https://webkit.org/b/128335>
2088
2089         Reviewed by Antti Koivisto.
2090
2091         * html/HTMLDetailsElement.h:
2092         * html/HTMLDetailsElement.cpp:
2093         (WebCore::HTMLDetailsElement::findMainSummary):
2094
2095 2014-02-06  Antti Koivisto  <antti@apple.com>
2096
2097         Add missing &.
2098
2099         * css/StyleInvalidationAnalysis.cpp:
2100         (WebCore::shouldDirtyAllStyle):
2101
2102 2014-02-06  Antti Koivisto  <antti@apple.com>
2103
2104         Check selectors exactly when invalidating style
2105         https://bugs.webkit.org/show_bug.cgi?id=128321
2106
2107         Reviewed by Andreas Kling.
2108         
2109         Selectors are now really fast to match with the JIT. Take advantage of this by invalidating
2110         the document style exactly when a new stylesheet arrives (instead of using heuristics).
2111         
2112         This reduces need for large style recalculations in some common cases.
2113
2114         * css/ElementRuleCollector.cpp:
2115         (WebCore::ElementRuleCollector::clearMatchedRules):
2116         (WebCore::ElementRuleCollector::collectMatchingRulesForList):
2117         * css/ElementRuleCollector.h:
2118         (WebCore::ElementRuleCollector::hasMatchedRules):
2119         * css/RuleSet.h:
2120         (WebCore::RuleSet::hasShadowPseudoElementRules):
2121         * css/SelectorChecker.cpp:
2122         (WebCore::SelectorChecker::matchRecursively):
2123         * css/SelectorChecker.h:
2124         
2125             Add new mode where all pseudo elements match so we can invalidate their element.
2126
2127         * css/StyleInvalidationAnalysis.cpp:
2128         (WebCore::shouldDirtyAllStyle):
2129         (WebCore::StyleInvalidationAnalysis::StyleInvalidationAnalysis):
2130         (WebCore::invalidateStyleRecursively):
2131         (WebCore::StyleInvalidationAnalysis::invalidateStyle):
2132         
2133             Switch to real selector checker.
2134
2135         * css/StyleInvalidationAnalysis.h:
2136         * css/StyleResolver.cpp:
2137         (WebCore::StyleResolver::MatchedProperties::~MatchedProperties):
2138         * css/StyleResolver.h:
2139         (WebCore::StyleResolver::mediaQueryEvaluator):
2140         * dom/DocumentStyleSheetCollection.cpp:
2141         (WebCore::DocumentStyleSheetCollection::analyzeStyleSheetChange):
2142
2143 2014-02-06  Gavin Barraclough  <barraclough@apple.com>
2144
2145         Remove ChildProcess::m_activeTasks
2146         https://bugs.webkit.org/show_bug.cgi?id=128342
2147
2148         Reviewed by Anders Carlson.
2149
2150         Currently we funnel a number of different user activities
2151         to a single UserActivity object, which requires a call down
2152         from WebCore to WebKit2. Split these out so we can track
2153         them separately.
2154
2155         * page/ChromeClient.h:
2156             - removed [inc|dec]rementActivePageCount
2157         * page/PageThrottler.cpp:
2158         (WebCore::PageThrottler::PageThrottler):
2159             - incrementActivePageCount -> beginActivity
2160         (WebCore::PageThrottler::~PageThrottler):
2161             - decrementActivePageCount -> endActivity
2162         (WebCore::PageThrottler::throttlePage):
2163             - decrementActivePageCount -> endActivity
2164         (WebCore::PageThrottler::unthrottlePage):
2165             - incrementActivePageCount -> beginActivity
2166         * page/PageThrottler.h:
2167             - Added m_pageActivity.
2168
2169 2014-02-06  Commit Queue  <commit-queue@webkit.org>
2170
2171         Unreviewed, rolling out r163558.
2172         http://trac.webkit.org/changeset/163558
2173         https://bugs.webkit.org/show_bug.cgi?id=128350
2174
2175         Breaks scrolling on certain websites (Requested by bfulgham on
2176         #webkit).
2177
2178         * page/EventHandler.cpp:
2179         (WebCore::EventHandler::handleWheelEvent):
2180         * page/WheelEventDeltaTracker.h:
2181
2182 2014-02-06  Chris Fleizach  <cfleizach@apple.com>
2183
2184         AX: Crash in WebCore::AXObjectCache::computedObjectAttributeCache
2185         https://bugs.webkit.org/show_bug.cgi?id=128310
2186
2187         Reviewed by Alexey Proskuryakov.
2188
2189         Be more careful about using axObjectCache() directly since it can return null.
2190         I audited the usage cases of this method and ensured the ptr was not null in cases
2191         where I thought we might get hit by this.
2192
2193         * accessibility/AccessibilityNodeObject.cpp:
2194         (WebCore::AccessibilityNodeObject::parentObject):
2195         (WebCore::AccessibilityNodeObject::menuForMenuButton):
2196         (WebCore::AccessibilityNodeObject::menuButtonForMenu):
2197         * accessibility/AccessibilityObject.cpp:
2198         (WebCore::AccessibilityObject::firstAccessibleObjectFromNode):
2199         (WebCore::AccessibilityObject::findMatchingObjects):
2200         (WebCore::AccessibilityObject::elementAccessibilityHitTest):
2201         (WebCore::AccessibilityObject::axObjectCache):
2202         (WebCore::AccessibilityObject::notifyIfIgnoredValueChanged):
2203         (WebCore::AccessibilityObject::accessibilityIsIgnored):
2204         * accessibility/AccessibilityRenderObject.cpp:
2205         (WebCore::AccessibilityRenderObject::parentObjectIfExists):
2206         (WebCore::AccessibilityRenderObject::parentObject):
2207         (WebCore::AccessibilityRenderObject::anchorElement):
2208         (WebCore::AccessibilityRenderObject::isTabItemSelected):
2209         (WebCore::AccessibilityRenderObject::accessibilityParentForImageMap):
2210         (WebCore::AccessibilityRenderObject::nodeIsTextControl):
2211         (WebCore::AccessibilityRenderObject::activeDescendant):
2212         (WebCore::AccessibilityRenderObject::handleAriaExpandedChanged):
2213         (WebCore::AccessibilityRenderObject::observableObject):
2214         (WebCore::AccessibilityRenderObject::textChanged):
2215         * accessibility/AccessibilityScrollView.cpp:
2216         (WebCore::AccessibilityScrollView::addChildScrollbar):
2217         (WebCore::AccessibilityScrollView::webAreaObject):
2218         (WebCore::AccessibilityScrollView::parentObject):
2219         (WebCore::AccessibilityScrollView::parentObjectIfExists):
2220
2221 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
2222
2223         [CSS Shapes] Rounded Insets Let Content Overlap Shape
2224         https://bugs.webkit.org/show_bug.cgi?id=127852
2225
2226         Reviewed by Bem Jones-Bey.
2227
2228         Using LengthSize to FloatSize conversion from LengthSize.h lead to miscalculated
2229         inset border radius, when the border radius was defined by percentages. This patch
2230         fixes the behavior and removes the incorrect conversion.
2231
2232         Test: fast/shapes/shape-outside-floats/shape-outside-rounded-inset.html
2233
2234         * css/LengthFunctions.cpp:
2235         (WebCore::floatSizeForLengthSize): Add new helper function for LengthSize to FloatSize conversion.
2236         * css/LengthFunctions.h:
2237         * platform/LengthSize.h: Remove floatSize conversion.
2238         * rendering/shapes/Shape.cpp:
2239         (WebCore::Shape::createShape): Use new helper function to calculate the right with for the inset border radius.
2240
2241 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2242
2243         Regenerate JSTestObj now that ScriptArguments moved. Generator knows what to do.
2244
2245         Rubber-stamped by Zalan Bujtas.
2246
2247         * bindings/scripts/test/JS/JSTestObj.cpp:
2248         (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
2249
2250 2014-02-04  Jeffrey Pfau  <jpfau@apple.com>
2251
2252         Make adoption agency use the task queue
2253         https://bugs.webkit.org/show_bug.cgi?id=109445
2254
2255         Reviewed by Ryosuke Niwa.
2256
2257         Tests: fast/parser/adoption-agency-crash-01.html
2258                fast/parser/adoption-agency-crash-02.html
2259                fast/parser/adoption-agency-crash-03.html
2260
2261         * html/parser/HTMLConstructionSite.cpp:
2262         (WebCore::insert):
2263         (WebCore::executeInsertTask):
2264         (WebCore::executeReparentTask):
2265         (WebCore::executeInsertAlreadyParsedChildTask):
2266         (WebCore::executeTakeAllChildrenTask):
2267         (WebCore::executeTask):
2268         (WebCore::HTMLConstructionSite::attachLater):
2269         (WebCore::HTMLConstructionSite::executeQueuedTasks):
2270         (WebCore::HTMLConstructionSite::insertTextNode):
2271         (WebCore::HTMLConstructionSite::reparent):
2272         (WebCore::HTMLConstructionSite::insertAlreadyParsedChild):
2273         (WebCore::HTMLConstructionSite::takeAllChildren):
2274         (WebCore::HTMLConstructionSite::fosterParent):
2275         * html/parser/HTMLConstructionSite.h:
2276         (WebCore::HTMLConstructionSiteTask::HTMLConstructionSiteTask):
2277         (WebCore::HTMLConstructionSiteTask::oldParent):
2278         * html/parser/HTMLTreeBuilder.cpp:
2279         (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
2280
2281 2014-02-06  Mark Hahnenberg  <mhahnenberg@apple.com>
2282
2283         Heap::writeBarrier shouldn't be static
2284         https://bugs.webkit.org/show_bug.cgi?id=127807
2285
2286         Reviewed by Geoffrey Garen.
2287
2288         Currently it looks up the Heap in which to fire the write barrier by using 
2289         the cell passed to it. Almost every call site already has a reference to the 
2290         VM or the Heap itself. It seems wasteful to look it up all over again.
2291
2292         * bindings/js/JSEventListener.cpp:
2293         (WebCore::JSEventListener::JSEventListener):
2294         * bindings/js/JSEventListener.h:
2295         (WebCore::JSEventListener::jsFunction):
2296
2297 2014-02-06  Jaehun Lim  <ljaehun.lim@samsung.com>
2298
2299         Unreviewed, fix build error on 64bit debug build
2300
2301         Apply static_cast<long long> to int64_t variable when '%lli' is used.
2302
2303         * Modules/indexeddb/IDBDatabaseBackend.cpp:
2304         (WebCore::IDBDatabaseBackend::clearObjectStore):
2305         * Modules/indexeddb/IDBTransaction.cpp:
2306         (WebCore::IDBTransaction::setActive):
2307
2308 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2309
2310         Web Inspector: Add Console support to JSContext Inspection
2311         https://bugs.webkit.org/show_bug.cgi?id=127941
2312
2313         Reviewed by Geoffrey Garen.
2314
2315           - Move InspectorConsoleAgent and dependencies to JavaScriptCore
2316             and into the Inspector namespace.
2317           - Update Console Message enum types to enum classes and update
2318             all users to the new, simpler names.
2319           - Since we are updating addConsoleMessage callsites anyways, add
2320             ASCIILiteral where appropriate.
2321           - Add WebConsoleAgent base of Page/Worker ConsoleAgent to implement
2322             what could not be pushed into JavaScriptCore.
2323
2324         * CMakeLists.txt:
2325         * DerivedSources.make:
2326         * ForwardingHeaders/inspector/ConsoleMessage.h: Added.
2327         * ForwardingHeaders/inspector/ConsoleTypes.h: Added.
2328         * ForwardingHeaders/inspector/IdentifiersFactory.h: Added.
2329         * ForwardingHeaders/inspector/ScriptArguments.h: Added.
2330         * ForwardingHeaders/inspector/ScriptCallFrame.h: Added.
2331         * ForwardingHeaders/inspector/ScriptCallStack.h: Added.
2332         * ForwardingHeaders/inspector/ScriptCallStackFactory.h: Added.
2333         * ForwardingHeaders/inspector/agents/InspectorConsoleAgent.h: Added.
2334         * GNUmakefile.am:
2335         * GNUmakefile.list.am:
2336         Add / remove files from builds.
2337
2338         * inspector/WebConsoleAgent.h:
2339         * inspector/WebConsoleAgent.cpp: Added.
2340         (WebCore::WebConsoleAgent::WebConsoleAgent):
2341         (WebCore::WebConsoleAgent::setMonitoringXHREnabled):
2342         (WebCore::WebConsoleAgent::frameWindowDiscarded):
2343         (WebCore::WebConsoleAgent::didFinishXHRLoading):
2344         (WebCore::WebConsoleAgent::didReceiveResponse):
2345         (WebCore::WebConsoleAgent::didFailLoading):
2346         (WebCore::WebConsoleAgent::addInspectedHeapObject):
2347         Implement what could not be pushed down into JavaScriptCore.
2348
2349         * inspector/InstrumentingAgents.h:
2350         (WebCore::InstrumentingAgents::webConsoleAgent):
2351         (WebCore::InstrumentingAgents::setWebConsoleAgent):
2352         Hold a WebConsoleAgent instead of InspectorConsoleAgent.
2353
2354         * Modules/indexeddb/IDBCursor.cpp:
2355         * Modules/indexeddb/IDBDatabase.cpp:
2356         * Modules/indexeddb/IDBTransaction.cpp:
2357         * Modules/quota/DOMWindowQuota.cpp:
2358         (WebCore::DOMWindowQuota::webkitStorageInfo):
2359         * Modules/webaudio/AudioBufferSourceNode.cpp:
2360         (WebCore::AudioBufferSourceNode::looping):
2361         (WebCore::AudioBufferSourceNode::setLooping):
2362         * Modules/webaudio/AudioContext.cpp:
2363         * Modules/webaudio/PannerNode.cpp:
2364         (WebCore::PannerNode::setPanningModel):
2365         * Modules/webdatabase/DatabaseBase.cpp:
2366         (WebCore::DatabaseBase::logErrorMessage):
2367         * Modules/webdatabase/DatabaseManager.cpp:
2368         (WebCore::DatabaseManager::logErrorMessage):
2369         * Modules/websockets/WebSocket.cpp:
2370         (WebCore::WebSocket::connect):
2371         (WebCore::WebSocket::send):
2372         (WebCore::WebSocket::close):
2373         (WebCore::WebSocket::setBinaryType):
2374         * Modules/websockets/WebSocketChannel.cpp:
2375         (WebCore::WebSocketChannel::fail):
2376         (WebCore::WebSocketChannel::didFailSocketStream):
2377         * Modules/websockets/WebSocketHandshake.cpp:
2378         * WebCore.exp.in:
2379         * WebCore.vcxproj/WebCore.vcxproj:
2380         * WebCore.vcxproj/WebCore.vcxproj.filters:
2381         * WebCore.xcodeproj/project.pbxproj:
2382         * bindings/js/JSAudioContextCustom.cpp:
2383         (WebCore::JSAudioContextConstructor::constructJSAudioContext):
2384         * bindings/js/JSCustomXPathNSResolver.cpp:
2385         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
2386         * bindings/js/JSDOMBinding.cpp:
2387         * bindings/js/JSSubtleCryptoCustom.cpp:
2388         (WebCore::JSSubtleCrypto::encrypt):
2389         (WebCore::JSSubtleCrypto::decrypt):
2390         (WebCore::JSSubtleCrypto::sign):
2391         (WebCore::JSSubtleCrypto::verify):
2392         (WebCore::JSSubtleCrypto::wrapKey):
2393         (WebCore::JSSubtleCrypto::unwrapKey):
2394         * bindings/js/ScriptController.cpp:
2395         (WebCore::ScriptController::canExecuteScripts):
2396         * bindings/scripts/CodeGeneratorJS.pm:
2397         (GenerateCallWith):
2398         * bindings/scripts/test/JS/JSTestObj.cpp:
2399         * css/CSSParser.cpp:
2400         (WebCore::CSSParser::logError):
2401         * css/MediaList.cpp:
2402         (WebCore::addResolutionWarningMessageToConsole):
2403         * dom/Document.cpp:
2404         (WebCore::Document::logExceptionToConsole):
2405         (WebCore::Document::processHttpEquiv):
2406         (WebCore::Document::addMessage):
2407         * dom/Document.h:
2408         * dom/ScriptElement.cpp:
2409         (WebCore::ScriptElement::executeScript):
2410         (WebCore::ScriptElement::notifyFinished):
2411         * dom/ScriptExecutionContext.cpp:
2412         * dom/ScriptExecutionContext.h:
2413         * dom/ViewportArguments.cpp:
2414         (WebCore::viewportErrorMessageLevel):
2415         (WebCore::reportViewportWarning):
2416         * fileapi/Blob.cpp:
2417         * fileapi/WebKitBlobBuilder.cpp:
2418         * html/HTMLFormControlElement.cpp:
2419         (WebCore::shouldAutofocus):
2420         * html/HTMLFormElement.cpp:
2421         (WebCore::HTMLFormElement::validateInteractively):
2422         * html/HTMLIFrameElement.cpp:
2423         (WebCore::HTMLIFrameElement::parseAttribute):
2424         * html/HTMLMediaElement.cpp:
2425         (WebCore::HTMLMediaElement::parseAttribute):
2426         * html/canvas/CanvasRenderingContext2D.cpp:
2427         (WebCore::CanvasRenderingContext2D::getImageData):
2428         * html/canvas/WebGLRenderingContext.cpp:
2429         (WebCore::WebGLRenderingContext::printWarningToConsole):
2430         * html/parser/XSSAuditor.cpp:
2431         (WebCore::XSSAuditor::init):
2432         * html/parser/XSSAuditorDelegate.cpp:
2433         (WebCore::XSSAuditorDelegate::didBlockScript):
2434         * inspector/CommandLineAPIHost.cpp:
2435         * inspector/CommandLineAPIHost.h:
2436         (WebCore::CommandLineAPIHost::init):
2437         * inspector/InspectorAllInOne.cpp:
2438         * inspector/InspectorConsoleAgent.h: Removed.
2439         * inspector/InspectorConsoleInstrumentation.h:
2440         (WebCore::InspectorInstrumentation::addMessageToConsole):
2441         (WebCore::InspectorInstrumentation::consoleCount):
2442         (WebCore::InspectorInstrumentation::stopConsoleTiming):
2443         (WebCore::InspectorInstrumentation::consoleTimeStamp):
2444         (WebCore::InspectorInstrumentation::addProfile):
2445         * inspector/InspectorController.cpp:
2446         (WebCore::InspectorController::InspectorController):
2447         * inspector/InspectorDOMAgent.cpp:
2448         * inspector/InspectorFrontendHost.h:
2449         * inspector/InspectorInstrumentation.cpp:
2450         (WebCore::InspectorInstrumentation::frameWindowDiscardedImpl):
2451         (WebCore::InspectorInstrumentation::didReceiveResourceResponseImpl):
2452         (WebCore::InspectorInstrumentation::didFailLoadingImpl):
2453         (WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl):
2454         (WebCore::InspectorInstrumentation::didCommitLoadImpl):
2455         (WebCore::isConsoleAssertMessage):
2456         (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
2457         (WebCore::InspectorInstrumentation::consoleCountImpl):
2458         (WebCore::InspectorInstrumentation::startConsoleTimingImpl):
2459         (WebCore::InspectorInstrumentation::stopConsoleTimingImpl):
2460         (WebCore::InspectorInstrumentation::consoleAgentEnabled):
2461         * inspector/InspectorInstrumentation.h:
2462         * inspector/InspectorLayerTreeAgent.cpp:
2463         * inspector/InspectorPageAgent.cpp:
2464         * inspector/InspectorProfilerAgent.cpp:
2465         (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
2466         (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
2467         * inspector/InspectorProfilerAgent.h:
2468         * inspector/InspectorResourceAgent.cpp:
2469         (WebCore::InspectorResourceAgent::buildInitiatorObject):
2470         * inspector/InspectorTimelineAgent.cpp:
2471         * inspector/InstrumentingAgents.cpp:
2472         (WebCore::InstrumentingAgents::InstrumentingAgents):
2473         (WebCore::InstrumentingAgents::reset):
2474         * inspector/PageConsoleAgent.cpp:
2475         (WebCore::PageConsoleAgent::PageConsoleAgent):
2476         (WebCore::PageConsoleAgent::clearMessages):
2477         (WebCore::PageConsoleAgent::addInspectedNode):
2478         * inspector/PageConsoleAgent.h:
2479         * inspector/PageDebuggerAgent.cpp:
2480         (WebCore::PageDebuggerAgent::breakpointActionLog):
2481         * inspector/PageInjectedScriptHost.h:
2482         * inspector/PageInjectedScriptManager.h:
2483         * inspector/TimelineRecordFactory.cpp:
2484         (WebCore::TimelineRecordFactory::createGenericRecord):
2485         (WebCore::WebConsoleAgent::~WebConsoleAgent):
2486         * inspector/WorkerConsoleAgent.cpp:
2487         (WebCore::WorkerConsoleAgent::WorkerConsoleAgent):
2488         (WebCore::WorkerConsoleAgent::addInspectedNode):
2489         * inspector/WorkerConsoleAgent.h:
2490         * inspector/WorkerDebuggerAgent.cpp:
2491         (WebCore::WorkerDebuggerAgent::breakpointActionLog):
2492         * inspector/WorkerInspectorController.cpp:
2493         (WebCore::WorkerInspectorController::WorkerInspectorController):
2494         * loader/DocumentLoader.cpp:
2495         (WebCore::DocumentLoader::responseReceived):
2496         * loader/FrameLoader.cpp:
2497         (WebCore::FrameLoader::submitForm):
2498         (WebCore::FrameLoader::reportLocalLoadFailed):
2499         (WebCore::FrameLoader::handleBeforeUnloadEvent):
2500         (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
2501         (WebCore::createWindow):
2502         * loader/ImageLoader.cpp:
2503         (WebCore::ImageLoader::notifyFinished):
2504         * loader/MixedContentChecker.cpp:
2505         (WebCore::MixedContentChecker::logWarning):
2506         * loader/TextTrackLoader.cpp:
2507         (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
2508         * loader/appcache/ApplicationCacheGroup.cpp:
2509         (WebCore::ApplicationCacheGroup::abort):
2510         (WebCore::ApplicationCacheGroup::didReceiveResponse):
2511         (WebCore::ApplicationCacheGroup::didFinishLoading):
2512         (WebCore::ApplicationCacheGroup::didFail):
2513         (WebCore::ApplicationCacheGroup::didReceiveManifestResponse):
2514         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
2515         (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
2516         * loader/cache/CachedResourceLoader.cpp:
2517         (WebCore::CachedResourceLoader::printAccessDeniedMessage):
2518         * page/ChromeClient.h:
2519         * page/Console.cpp:
2520         (WebCore::internalAddMessage):
2521         (WebCore::Console::debug):
2522         (WebCore::Console::error):
2523         (WebCore::Console::log):
2524         (WebCore::Console::warn):
2525         (WebCore::Console::dir):
2526         (WebCore::Console::dirxml):
2527         (WebCore::Console::table):
2528         (WebCore::Console::clear):
2529         (WebCore::Console::trace):
2530         (WebCore::Console::assertCondition):
2531         (WebCore::Console::group):
2532         (WebCore::Console::groupCollapsed):
2533         (WebCore::Console::groupEnd):
2534         * page/Console.h:
2535         * page/ConsoleTypes.h: Removed.
2536         * page/ContentSecurityPolicy.cpp:
2537         (WebCore::ContentSecurityPolicy::reportViolation):
2538         (WebCore::ContentSecurityPolicy::logToConsole):
2539         * page/DOMSecurityPolicy.cpp:
2540         * page/DOMWindow.cpp:
2541         (WebCore::DOMWindow::postMessage):
2542         (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
2543         (WebCore::DOMWindow::close):
2544         (WebCore::DOMWindow::printErrorMessage):
2545         * page/DOMWindow.h:
2546         * page/EventSource.cpp:
2547         (WebCore::EventSource::didReceiveResponse):
2548         (WebCore::EventSource::didFailAccessControlCheck):
2549         * page/PageConsole.cpp:
2550         (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
2551         (WebCore::PageConsole::addMessage):
2552         * page/PageConsole.h:
2553         * page/PointerLockController.cpp:
2554         (WebCore::PointerLockController::requestPointerLock):
2555         * platform/CrossThreadCopier.h:
2556         * rendering/shapes/ShapeInfo.cpp:
2557         (WebCore::checkShapeImageOrigin):
2558         * svg/SVGDocumentExtensions.cpp:
2559         (WebCore::reportMessage):
2560         (WebCore::SVGDocumentExtensions::reportWarning):
2561         (WebCore::SVGDocumentExtensions::reportError):
2562         * testing/Internals.cpp:
2563         (WebCore::Internals::consoleMessageArgumentCounts):
2564         * workers/DefaultSharedWorkerRepository.cpp:
2565         * workers/SharedWorkerGlobalScope.cpp:
2566         (WebCore::SharedWorkerGlobalScope::logExceptionToConsole):
2567         * workers/SharedWorkerGlobalScope.h:
2568         * workers/WorkerGlobalScope.cpp:
2569         (WebCore::WorkerGlobalScope::addMessageToWorkerConsole):
2570         * workers/WorkerGlobalScope.h:
2571         * workers/WorkerMessagingProxy.cpp:
2572         * workers/WorkerReportingProxy.h:
2573         * xml/XMLHttpRequest.cpp:
2574         (WebCore::logConsoleError):
2575         (WebCore::XMLHttpRequest::send):
2576         * xml/XSLTProcessorLibxslt.cpp:
2577         (WebCore::XSLTProcessor::parseErrorFunc):
2578
2579 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2580
2581         Convert a parameter to PassRefPtr
2582         https://bugs.webkit.org/show_bug.cgi?id=128327
2583
2584         Reviewed by Timothy Hatcher.
2585
2586         * inspector/InspectorConsoleInstrumentation.h:
2587         (WebCore::InspectorInstrumentation::addProfile):
2588         * inspector/InspectorInstrumentation.h:
2589
2590 2014-01-30  Oliver Hunt  <oliver@apple.com>
2591
2592         Push DOM attributes into the prototype chain
2593         https://bugs.webkit.org/show_bug.cgi?id=127969
2594
2595         Reviewed by Mark Lam.
2596
2597         This patch does the actual work of moving dom attributes up the
2598         prototype chain. There are still a few class and edge cases
2599         where we can't do this without impacting existing behaviour,
2600         but they can be fixed separately in later patches.
2601
2602         * bindings/js/JSDOMBinding.h:
2603         (WebCore::getStaticPropertySlotEntryWithoutCaching):
2604         (WebCore::getStaticPropertySlotEntryWithoutCaching<JSDOMWrapper>):
2605         * bindings/scripts/CodeGeneratorJS.pm:
2606         (GenerateGetOwnPropertySlotBody):
2607         (HasComplexGetOwnProperty):
2608         (ConstructorShouldBeOnInstance):
2609         (AttributeShouldBeOnInstance):
2610         (InstanceAttributeCount):
2611         (PrototypeAttributeCount):
2612         (InstanceOverridesGetOwnPropertySlot):
2613         (PrototypeOverridesGetOwnPropertySlot):
2614         (GenerateAttributesHashTable):
2615         (GenerateImplementation):
2616
2617 2014-02-06  Andreas Kling  <akling@apple.com>
2618
2619         Remove display:run-in support.
2620         <https://webkit.org/b/127874>
2621         <rdar://problem/15926949>
2622
2623         Remove support for the "run-in" display type. Blink recently removed
2624         this and Gecko never supported in the first place.
2625
2626         Rubber-stamped by Anders Carlsson.
2627
2628         * css/CSSParser.cpp:
2629         (WebCore::isValidKeywordPropertyAndValue):
2630         * css/CSSPrimitiveValueMappings.h:
2631         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2632         * css/CSSValueKeywords.in:
2633         * css/StyleResolver.cpp:
2634         (WebCore::equivalentBlockDisplay):
2635         (WebCore::doesNotInheritTextDecoration):
2636         * rendering/RenderBlock.cpp:
2637         (WebCore::RenderBlock::willBeDestroyed):
2638         (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks):
2639         (WebCore::RenderBlock::makeChildrenNonInline):
2640         (WebCore::canMergeContiguousAnonymousBlocks):
2641         (WebCore::RenderBlock::renderName):
2642         * rendering/RenderBlock.h:
2643         * rendering/RenderBlockFlow.cpp:
2644         (WebCore::RenderBlockFlow::willBeDestroyed):
2645         (WebCore::shouldCheckLines):
2646         (WebCore::getHeightForLineCount):
2647         * rendering/RenderElement.cpp:
2648         (WebCore::RenderElement::createFor):
2649         (WebCore::RenderElement::destroyLeftoverChildren):
2650         * rendering/RenderFileUploadControl.cpp:
2651         * rendering/RenderFileUploadControl.h:
2652         * rendering/RenderInline.cpp:
2653         (WebCore::RenderInline::updateFromStyle):
2654         (WebCore::RenderInline::renderName):
2655         (WebCore::RenderInline::clippedOverflowRectForRepaint):
2656         * rendering/RenderListBox.cpp:
2657         * rendering/RenderListBox.h:
2658         * rendering/RenderMenuList.cpp:
2659         * rendering/RenderMenuList.h:
2660         * rendering/RenderObject.cpp:
2661         * rendering/RenderObject.h:
2662         * rendering/RenderProgress.cpp:
2663         * rendering/RenderProgress.h:
2664         * rendering/RenderSlider.cpp:
2665         * rendering/RenderSlider.h:
2666         * rendering/RenderTextControl.cpp:
2667         * rendering/RenderTextControl.h:
2668         * rendering/RenderTheme.cpp:
2669         (WebCore::RenderTheme::adjustStyle):
2670         * rendering/style/RenderStyleConstants.h:
2671
2672 2014-02-06  Andreas Kling  <akling@apple.com>
2673
2674         Remove leftover cruft from scoped stylesheet implementation.
2675         <https://webkit.org/b/128139>
2676
2677         Kill some pointless non-null checks that were left behind by the
2678         removed <style scoped> code. Also pruned outdated comments and
2679         FIXME's about such scopes.
2680
2681         Reviewed by Antti Koivisto.
2682
2683         * css/ElementRuleCollector.cpp:
2684         (WebCore::ElementRuleCollector::collectMatchingRules):
2685         * css/RuleSet.cpp:
2686         (WebCore::RuleSet::addChildRules):
2687         (WebCore::RuleSet::addRulesFromSheet):
2688         * css/RuleSet.h:
2689         * css/StyleResolver.cpp:
2690         (WebCore::StyleResolver::checkRegionStyle):
2691
2692 2014-02-05  Brent Fulgham  <bfulgham@apple.com>
2693
2694         Wheel events don't latch to inner scrollable elements 
2695         https://bugs.webkit.org/show_bug.cgi?id=128225
2696
2697         Reviewed by Beth Dakin.
2698
2699         * page/EventHandler.cpp:
2700         (WebCore::EventHandler::handleWheelEvent): Identify the case
2701         where we have hit the end of a scroll, and treat that as a
2702         valid 'handled' case. If the scroll event is just starting,
2703         treat end-of-scroll as unhandled so the parent element can
2704         handle things.
2705         * page/WheelEventDeltaTracker.h:
2706         (WebCore::WheelEventDeltaTracker::isFirstWheelEvent): Added.
2707
2708 2014-02-06  Commit Queue  <commit-queue@webkit.org>
2709
2710         Unreviewed, rolling out r163542.
2711         http://trac.webkit.org/changeset/163542
2712         https://bugs.webkit.org/show_bug.cgi?id=128324
2713
2714         Caused many assertion failures (Requested by ap on #webkit).
2715
2716         * bindings/js/JSEventListener.cpp:
2717         (WebCore::JSEventListener::JSEventListener):
2718         * bindings/js/JSEventListener.h:
2719         (WebCore::JSEventListener::jsFunction):
2720
2721 2014-02-06  Frédéric Wang  <fred.wang@free.fr>
2722
2723         Do not draw multi-characters <mi> in italic.
2724         https://bugs.webkit.org/show_bug.cgi?id=44208
2725
2726         Reviewed by Chris Fleizach.
2727
2728         This test prevents multi-char <mi> to be drawn in italic and prepare
2729         further improvements to MathML token and mfenced elements (bugs 124838
2730         and bug 99620).
2731
2732         Test: mathml/presentation/tokenElements-dynamic.html
2733
2734         * CMakeLists.txt:
2735         * GNUmakefile.list.am:
2736         * WebCore.vcxproj/WebCore.vcxproj:
2737         * WebCore.vcxproj/WebCore.vcxproj.filters:
2738         * WebCore.xcodeproj/project.pbxproj:
2739         * css/mathml.css:
2740         (mi, mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose):
2741         * mathml/MathMLTextElement.cpp:
2742         (WebCore::MathMLTextElement::didAttachRenderers):
2743         (WebCore::MathMLTextElement::childrenChanged):
2744         (WebCore::MathMLTextElement::createElementRenderer):
2745         * rendering/RenderObject.h:
2746         (WebCore::RenderObject::isRenderMathMLToken):
2747         * rendering/mathml/RenderMathMLToken.cpp: Added.
2748         (WebCore::RenderMathMLToken::RenderMathMLToken):
2749         (WebCore::RenderMathMLToken::addChild):
2750         (WebCore::RenderMathMLToken::createWrapperIfNeeded):
2751         (WebCore::RenderMathMLToken::updateTokenContent):
2752         (WebCore::RenderMathMLToken::updateStyle):
2753         (WebCore::RenderMathMLToken::styleDidChange):
2754         (WebCore::RenderMathMLToken::updateFromElement):
2755         * rendering/mathml/RenderMathMLToken.h: Added.
2756         (WebCore::RenderMathMLToken::element):
2757         (WebCore::RenderMathMLToken>):
2758
2759 2014-02-06  Zoltan Horvath  <zoltan@webkit.org>
2760
2761         [CSS Shapes] Simplify BasicShapeInset creation
2762         https://bugs.webkit.org/show_bug.cgi?id=128314
2763
2764         Reviewed by David Hyatt.
2765
2766         Introduce convertToLengthSize helper function in order to simplify and make BasicShapeInset more readable.
2767
2768         No new tests, no behavior change.
2769
2770         * css/BasicShapeFunctions.cpp:
2771         (WebCore::convertToLengthSize):
2772         (WebCore::basicShapeForValue):
2773
2774 2014-02-06  Anders Carlsson  <andersca@apple.com>
2775
2776         Try to fix the Windows build.
2777
2778         * loader/DocumentThreadableLoader.cpp:
2779         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2780
2781 2014-01-29  Sergio Villar Senin  <svillar@igalia.com>
2782
2783         [CSS Grid Layout] getComputedStyle() is wrong for grid-definition-{columns|rows}
2784         https://bugs.webkit.org/show_bug.cgi?id=127033
2785
2786         Reviewed by Andreas Kling.
2787
2788         Tests: fast/css-grid-layout/non-grid-columns-rows-get-set-multiple.html
2789                fast/css-grid-layout/non-grid-columns-rows-get-set.html
2790                fast/css-grid-layout/non-grid-element-repeat-get-set.html
2791                fast/css-grid-layout/non-named-grid-line-get-set.html
2792
2793         According to the specs getComputedStyle() should return the used
2794         values instead of the resolved values for compatibility with early
2795         implementations. This means that grid-definition-{columns|rows}
2796         are now layout dependent as we need to compute the used values for
2797         grid track sizes.
2798
2799         Updated the outcome of existing tests and added a bunch of new
2800         ones that check the behavior of the different properties outside
2801         grid containers.
2802
2803         * css/CSSComputedStyleDeclaration.cpp:
2804         (WebCore::specifiedValueForGridTrackSize):
2805         (WebCore::valueForGridTrackList):
2806         (WebCore::isLayoutDependent):
2807         (WebCore::ComputedStyleExtractor::propertyValue):
2808         * rendering/RenderGrid.cpp:
2809         (WebCore::RenderGrid::GridIterator::GridIterator):
2810         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
2811         (WebCore::RenderGrid::computeUsedBreadthOfMinLength):
2812         (WebCore::RenderGrid::computeUsedBreadthOfMaxLength):
2813         (WebCore::RenderGrid::computeUsedBreadthOfSpecifiedLength):
2814         (WebCore::RenderGrid::computeNormalizedFractionBreadth):
2815         (WebCore::RenderGrid::gridTrackSize):
2816         (WebCore::RenderGrid::minContentForChild):
2817         (WebCore::RenderGrid::maxContentForChild):
2818         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
2819         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctionsForItems):
2820         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
2821         (WebCore::RenderGrid::growGrid):
2822         (WebCore::RenderGrid::autoPlacementMajorAxisDirection):
2823         (WebCore::RenderGrid::autoPlacementMinorAxisDirection):
2824         (WebCore::RenderGrid::layoutGridItems):
2825         (WebCore::RenderGrid::resolveGridPositionsFromAutoPlacementPosition):
2826         (WebCore::RenderGrid::resolveGridPositionsFromStyle):
2827         (WebCore::RenderGrid::gridAreaBreadthForChild):
2828         (WebCore::RenderGrid::populateGridPositions):
2829         (WebCore::RenderGrid::findChildLogicalPosition):
2830         * rendering/RenderGrid.h:
2831
2832 2014-02-06  Anders Carlsson  <andersca@apple.com>
2833
2834         Modernize CrossOriginPreflightResultCache
2835         https://bugs.webkit.org/show_bug.cgi?id=128309
2836
2837         Reviewed by Antti Koivisto.
2838
2839         Use std::chrono::steady_clock instead of currentTime() for determining when
2840         cache items expire, Use std::unique_ptr instead of OwnPtr, use NeverDestroyed,
2841         get rid of unnecessary container typedefs now that we have auto. Finally,
2842         de-indent the entire class declaration.
2843
2844         * loader/CrossOriginPreflightResultCache.cpp:
2845         (WebCore::CrossOriginPreflightResultCache::CrossOriginPreflightResultCache):
2846         (WebCore::parseAccessControlMaxAge):
2847         (WebCore::CrossOriginPreflightResultCacheItem::parse):
2848         (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest):
2849         (WebCore::CrossOriginPreflightResultCache::shared):
2850         (WebCore::CrossOriginPreflightResultCache::appendEntry):
2851         (WebCore::CrossOriginPreflightResultCache::canSkipPreflight):
2852         * loader/CrossOriginPreflightResultCache.h:
2853         (WebCore::CrossOriginPreflightResultCacheItem::CrossOriginPreflightResultCacheItem):
2854         * loader/DocumentThreadableLoader.cpp:
2855         (WebCore::DocumentThreadableLoader::didReceiveResponse):
2856
2857 2014-02-06  Gurpreet Kaur  <k.gurpreet@samsung.com>
2858
2859         Menclose with no notation attribute does not display anything.
2860         https://bugs.webkit.org/show_bug.cgi?id=127889
2861
2862         Reviewed by Chris Fleizach.
2863
2864         Menclose with no notation attribute should behave same as menclose with
2865         notation attribute with value as longdiv. By default the division
2866         symbol should be displayed. For empty and invalid notation attribute
2867         nothing should be displayed.
2868
2869         Tests: mathml/presentation/menclose-notation-default-longdiv.html
2870                mathml/presentation/menclose-notation-invalid-empty.html
2871
2872         * mathml/MathMLMencloseElement.h:
2873         * rendering/mathml/RenderMathMLMenclose.cpp:
2874         (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths):
2875         (WebCore::RenderMathMLMenclose::paint):
2876         Added style for menclose with no notation attribute and handled this
2877         condition in paint also where for longdiv we are explicitly drawing
2878         the division symbol.
2879
2880 2014-02-05  Mark Hahnenberg  <mhahnenberg@apple.com>
2881
2882         Heap::writeBarrier shouldn't be static
2883         https://bugs.webkit.org/show_bug.cgi?id=127807
2884
2885         Reviewed by Geoffrey Garen.
2886
2887         Currently it looks up the Heap in which to fire the write barrier by using 
2888         the cell passed to it. Almost every call site already has a reference to the 
2889         VM or the Heap itself. It seems wasteful to look it up all over again.
2890
2891         * bindings/js/JSEventListener.cpp:
2892         (WebCore::JSEventListener::JSEventListener):
2893         * bindings/js/JSEventListener.h:
2894         (WebCore::JSEventListener::jsFunction):
2895
2896 2014-02-06  Brady Eidson  <beidson@apple.com>
2897
2898         IDB: storage/indexeddb/mozilla/clear.html fails
2899         <rdar://problem/15997155> and https://bugs.webkit.org/show_bug.cgi?id=128282
2900
2901         Reviewed by David Kilzer.
2902
2903         Covered by storage/indexeddb/mozilla/clear.html (and probably others)
2904
2905         Update the value deserializer to take into account whether or not there was an IDBKey:
2906         * bindings/js/IDBBindingUtilities.cpp:
2907         (WebCore::deserializeIDBValueBuffer):
2908         * bindings/js/IDBBindingUtilities.h:
2909
2910         * Modules/indexeddb/IDBRequest.cpp:
2911         (WebCore::IDBRequest::onSuccess): Call the new form of deserializeIDBValueBuffer.
2912
2913         * Modules/indexeddb/IDBDatabaseBackend.cpp:
2914         (WebCore::IDBDatabaseBackend::clearObjectStore): Update logging.
2915
2916         * Modules/indexeddb/IDBTransaction.cpp:
2917         (WebCore::IDBTransaction::setActive): Update logging.
2918
2919         * Modules/indexeddb/IDBTransactionBackend.cpp:
2920         (WebCore::IDBTransactionBackend::commit): Fix ASSERTs to reflect multi-process worlds.
2921
2922 2014-02-06  Csaba Osztrogonác  <ossy@webkit.org>
2923
2924         Re-enable simple line layout on non-Mac platforms
2925         https://bugs.webkit.org/show_bug.cgi?id=123338
2926
2927         Reviewed by Anders Carlsson.
2928
2929         * rendering/SimpleLineLayout.cpp:
2930         (WebCore::SimpleLineLayout::canUseFor):
2931
2932 2014-02-06  Koop Mast <kwm@FreeBSD.org>
2933
2934         Use system default compiler instead of gcc, as final fall through.
2935         https://bugs.webkit.org/show_bug.cgi?id=126773
2936
2937         Reviewed by Alexey Proskuryakov.
2938
2939         * dom/make_names.pl:
2940
2941 2014-02-06  Eric Carlson  <eric.carlson@apple.com>
2942
2943         No need to enterFullscreen() when already in fullscreen
2944         https://bugs.webkit.org/show_bug.cgi?id=128276
2945
2946         Reviewed by Jer Noble.
2947
2948         No new tests, this is just cleanup.
2949
2950         * html/HTMLMediaElement.cpp:
2951         (WebCore::HTMLMediaElement::updatePlayState): Don't call enterFullscreen() if already there.
2952         (WebCore::HTMLMediaElement::enterFullscreen): Return early if m_isFullscreen is already true.
2953
2954 2014-02-06  Radu Stavila  <stavila@adobe.com>
2955
2956         [CSS Regions] Null dereference applying animation with CSS regions
2957         https://bugs.webkit.org/show_bug.cgi?id=128218
2958
2959         Reviewed by Andrei Bucur.
2960
2961         The first issue (the null dereference) was caused by the checkForZoomChange method
2962         not guarding against a null parentStyle parameter, as the checkForGenericFamilyChange 
2963         method does, which in the crashing scenario is called just before the faulty
2964         checkForZoomChange method.
2965         The second issue was an assert which was caused by the fact that detaching is performed
2966         in a certain situation if the element has a renderer or if it's inside a named flow.
2967         However, when reattaching and asserting the element has no renderer, the 
2968         "inside named flow" condition was no longer considered.
2969
2970         Test: fast/regions/animation-element-in-region-flowed-to-other-thread.html
2971
2972         * css/StyleResolver.cpp:
2973         (WebCore::StyleResolver::checkForZoomChange):
2974         * style/StyleResolveTree.cpp:
2975         (WebCore::Style::attachChildren):
2976
2977 2014-02-06  László Langó  <llango.u-szeged@partner.samsung.com>
2978
2979         Create a HTMLUnknownElement when using createElement('image')
2980         https://bugs.webkit.org/show_bug.cgi?id=125896
2981
2982         Reviewed by Antti Koivisto.
2983
2984         Backported from Blink: https://chromium.googlesource.com/chromium/blink/+/fd8a7b65f3300fb9245db24d5ed240c80b7f76ad
2985
2986         * html/HTMLTagNames.in:
2987
2988 2014-02-06  Youenn Fablet  <youennf@gmail.com>
2989
2990         [XHR] Ensure response return null when error flag is set for blob and arraybuffer
2991         https://bugs.webkit.org/show_bug.cgi?id=127050
2992
2993         Reviewed by Alexey Proskuryakov.
2994
2995         Added a check in JSXMLHttpRequest::response to ensure response return null when error flag is set for blob and arraybuffer
2996         This check also applies to document and json response types (no change in behavior for those types but code path change)
2997         Added assertions in the related XMLHttpRequest blob and array buffer getters
2998         Minor code clean-up.
2999         The test cases check all four response types in case of timeout and abort
3000
3001         Tests: http/tests/xmlhttprequest/onabort-response-getters.html
3002                http/tests/xmlhttprequest/ontimeout-response-getters.html
3003
3004         * bindings/js/JSXMLHttpRequestCustom.cpp:
3005         (WebCore::JSXMLHttpRequest::response):
3006         * xml/XMLHttpRequest.cpp:
3007         (WebCore::XMLHttpRequest::didCacheResponseJSON):
3008         (WebCore::XMLHttpRequest::responseXML):
3009         (WebCore::XMLHttpRequest::responseBlob):
3010         (WebCore::XMLHttpRequest::responseArrayBuffer):
3011
3012 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
3013
3014         Change Page, FocusController to use ViewState
3015         https://bugs.webkit.org/show_bug.cgi?id=126533
3016
3017         Reviewed by Tim Horton.
3018
3019         These classes currently maintain a set of separate fields to represent the view state;
3020         combine these into a single field, and allow WebPage to send the combined update rather
3021         than individual changes.
3022
3023         Maintain existing interface for WebKit1 clients.
3024
3025         * WebCore.exp.in:
3026             - Added WebCore::setViewState, removed WebCore::setIsVisuallyIdle.
3027         * page/FocusController.cpp:
3028         (WebCore::FocusController::FocusController):
3029             - Initialize combined m_viewState.
3030         (WebCore::FocusController::setFocused):
3031             - Calls setViewState.
3032         (WebCore::FocusController::setFocusedInternal):
3033             - setFocused -> setFocusedInternal.
3034         (WebCore::FocusController::setViewState):
3035             - Added, update all ViewState flags.
3036         (WebCore::FocusController::setActive):
3037             - Calls setViewState.
3038         (WebCore::FocusController::setActiveInternal):
3039             - setActive -> setActiveInternal.
3040         (WebCore::FocusController::setContentIsVisible):
3041             - Calls setViewState.
3042         (WebCore::FocusController::setContentIsVisibleInternal):
3043             - setContentIsVisible -> setContentIsVisibleInternal.
3044         * page/FocusController.h:
3045         (WebCore::FocusController::isActive):
3046         (WebCore::FocusController::isFocused):
3047         (WebCore::FocusController::contentIsVisible):
3048             - Implemented in terms of ViewState.
3049         * page/Page.cpp:
3050         (WebCore::Page::Page):
3051             - Initialize using PageInitialViewState.
3052         (WebCore::Page::setIsInWindow):
3053             - Calls setViewState.
3054         (WebCore::Page::setIsInWindowInternal):
3055             - setIsInWindow -> setIsInWindowInternal.
3056         (WebCore::Page::setIsVisuallyIdleInternal):
3057             - setIsVisuallyIdle -> setIsVisuallyIdleInternal.
3058         (WebCore::Page::setViewState):
3059             - Added, update all ViewState flags, including FocusController.
3060         (WebCore::Page::setIsVisible):
3061             - Calls setViewState.
3062         (WebCore::Page::setIsVisibleInternal):
3063             - setIsVisible -> setIsVisibleInternal.
3064         (WebCore::Page::visibilityState):
3065             - m_isVisible -> isVisible()
3066         (WebCore::Page::hiddenPageCSSAnimationSuspensionStateChanged):
3067             - m_isVisible -> isVisible()
3068         * page/Page.h:
3069         (WebCore::Page::isVisible):
3070         (WebCore::Page::isInWindow):
3071             - Implemented in terms of ViewState.
3072         (WebCore::Page::scriptedAnimationsSuspended):
3073             - Combined member fields into ViewState::Flags.
3074
3075 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
3076
3077         Transfer the non-fast-scrollable region to the UI process for iOS
3078         https://bugs.webkit.org/show_bug.cgi?id=128293
3079
3080         Reviewed by Benjamin Poulain.
3081
3082         Two main changes to support sending the non-fast scrollable region
3083         to the UI process for iOS:
3084         
3085         1. Add ScrollingCoordinator::frameViewNonFastScrollableRegionChanged(),
3086         which is called when we've updated the touch event region (this can happen
3087         independenly of layout). When called we just scheduled a scrolling tree
3088         commit with the new region.
3089         
3090         2. Avoid thinking that we have a new root node with every remote scrolling
3091         transaction. This was a side-effect of reconstructing the scrolling state
3092         tree in the UI process, and caused us to try to grab a nonFastScrollableRegion
3093         from a node which never had one set.
3094
3095         * WebCore.exp.in:
3096         * page/scrolling/AsyncScrollingCoordinator.cpp:
3097         (WebCore::AsyncScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
3098         * page/scrolling/AsyncScrollingCoordinator.h:
3099         * page/scrolling/ScrollingCoordinator.cpp:
3100         (WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
3101         * page/scrolling/ScrollingCoordinator.h:
3102         (WebCore::ScrollingCoordinator::frameViewNonFastScrollableRegionChanged):
3103         * page/scrolling/ScrollingStateTree.h:
3104         (WebCore::ScrollingStateTree::setHasNewRootStateNode):
3105         * page/scrolling/ScrollingTree.cpp:
3106         (WebCore::ScrollingTree::commitNewTreeState):
3107         (WebCore::ScrollingTree::isPointInNonFastScrollableRegion):
3108         * page/scrolling/ScrollingTree.h:
3109
3110 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
3111
3112         [iOS] Synchronize the WKContentView and UIScrollView updates with the tiles being commited
3113         https://bugs.webkit.org/show_bug.cgi?id=127886
3114
3115         Reviewed by Simon Fraser.
3116
3117         The updates of the views on the UIProcess side was completely disconnected
3118         from the tiles updates from the DrawingArea. There is a non-negligible time
3119         between the size/scale update and the new tiles coming, which causes
3120         visual glitches.
3121
3122         There are three main cases where the tiles and content would be out of sync
3123         with the UIViews:
3124         -When loading a new page with different content width of a different viewport.
3125         -When a page changes its viewport.
3126         -When the viewport-constrainted viewport size changes.
3127
3128         To fix the issue, WKView is modified to maintain the old state of WKContentView
3129         and UIScrollView until the new tiles are available.
3130
3131         Geometry/scale update are split in two phases:
3132         1) A source (the page or the user) changes parameters of the geometry. The WebProcess updates
3133            its layout accordingly.
3134            At this point, the UIViews are unchanged and are left with the old parameters.
3135         2) Eventually, new tiles come and commitLayerTree() is called on the drawing area proxy.
3136            At that point, WKContentView and its UIScrollView are updated to match the committed
3137            size and scale for the page.
3138
3139         * WebCore.exp.in:
3140         * WebCore.xcodeproj/project.pbxproj:
3141         * page/ViewportConfiguration.cpp: Added.
3142         (WebCore::constraintsAreAllRelative):
3143         (WebCore::ViewportConfiguration::ViewportConfiguration):
3144         (WebCore::ViewportConfiguration::setDefaultConfiguration):
3145         (WebCore::ViewportConfiguration::setContentsSize):
3146         (WebCore::ViewportConfiguration::setMinimumLayoutSize):
3147         (WebCore::ViewportConfiguration::setViewportArguments):
3148         (WebCore::ViewportConfiguration::layoutSize):
3149         (WebCore::ViewportConfiguration::initialScale):
3150         (WebCore::ViewportConfiguration::minimumScale):
3151         (WebCore::ViewportConfiguration::maximumScale):
3152         (WebCore::ViewportConfiguration::allowsUserScaling):
3153         (WebCore::viewportArgumentValueIsValid):
3154         (WebCore::applyViewportArgument):
3155         (WebCore::ViewportConfiguration::updateConfiguration):
3156         (WebCore::ViewportConfiguration::layoutWidth):
3157         (WebCore::ViewportConfiguration::layoutHeight):
3158         * page/ViewportConfiguration.h: Added.
3159         (WebCore::ViewportConfigurationConfiguration::ViewportConfigurationConfiguration):
3160         (WebCore::ViewportConfiguration::defaultConfiguration):
3161         (WebCore::ViewportConfiguration::contentsSize):
3162         (WebCore::ViewportConfiguration::minimumLayoutSize):
3163         (WebCore::ViewportConfiguration::viewportArguments):
3164
3165 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
3166
3167         SelectorCodeGenerator::generateElementHasTagName should match the local name before the namespace
3168         https://bugs.webkit.org/show_bug.cgi?id=128167
3169
3170         Reviewed by Sam Weinig.
3171
3172         The local name is a stricter filter than the namespace, it should always run first.
3173
3174         * cssjit/SelectorCompiler.cpp:
3175         (WebCore::SelectorCompiler::SelectorCodeGenerator::generateElementHasTagName):
3176
3177 2014-02-05  Benjamin Poulain  <benjamin@webkit.org>
3178
3179         Add HTMLNames::classAttr as a regular name in SVGElement::isAnimatableAttribute
3180         https://bugs.webkit.org/show_bug.cgi?id=128166
3181
3182         Reviewed by Sam Weinig.
3183
3184         For historical reasons, classAttr was treated separately. There is no reasons for that anymore.
3185
3186         * svg/SVGElement.cpp:
3187         (WebCore::SVGElement::isAnimatableAttribute):
3188
3189 2014-02-05  Simon Fraser  <simon.fraser@apple.com>
3190
3191         Support encoding and decoding of Regions
3192         https://bugs.webkit.org/show_bug.cgi?id=128284
3193
3194         Reviewed by Anders Carlsson.
3195
3196         Region changes to make it encodable:
3197         
3198         Make Region::Span public and give it a default constructor.
3199         Allow getting and setting of Shape internals, and a way to update
3200         the Region bounds after changing the shape. Also add a way to test
3201         for valid spans and segments.
3202
3203         * platform/graphics/Region.cpp:
3204         (WebCore::Region::Shape::isValid):
3205         (WebCore::Region::updateBoundsFromShape):
3206         * platform/graphics/Region.h:
3207         (WebCore::Region::isValid):
3208         (WebCore::Region::Span::Span):
3209         (WebCore::Region::shapeSegments):
3210         (WebCore::Region::shapeSpans):
3211         (WebCore::Region::setShapeSegments):
3212         (WebCore::Region::setShapeSpans):
3213         (WebCore::Region::Shape::segments):
3214         (WebCore::Region::Shape::spans):
3215         (WebCore::Region::Shape::setSegments):
3216         (WebCore::Region::Shape::setSpans):
3217
3218 2014-02-05  Andreas Kling  <akling@apple.com>
3219
3220         Rebaseline the bindings tests after Oliver's hackery.
3221
3222         * bindings/scripts/test/JS/:
3223
3224 2014-02-05  Ryuan Choi  <ryuan.choi@samsung.com>
3225
3226         [EFL][GTK] Share plugin's implementation between EFL and Gtk ports.
3227         https://bugs.webkit.org/show_bug.cgi?id=70592
3228
3229         Reviewed by Gyuyoung Kim.
3230
3231         Merge common logics of PluginViewGtk.cpp and PluginViewEfl.cpp to PluginViewX11.cpp.
3232         So, this patch improves the windowless plugin support for the EFL port.
3233
3234         * GNUmakefile.am: Add include path for gtk2xtbin.h header file.
3235         * GNUmakefile.list.am: Added PluginViewX11.cpp into source lists.
3236         * PlatformEfl.cmake: Ditto.
3237         * PlatformGTK.cmake: Ditto.
3238         * plugins/PluginView.h: Added getRootWindow and getPluginDisply which implement platform specific code.
3239         * plugins/efl/PluginViewEfl.cpp:
3240         (WebCore::PluginView::getRootWindow):
3241         (WebCore::PluginView::platformGetValueStatic): Turn on NPNVSupportsWindowless support.
3242         (WebCore::PluginView::getPluginDisplay):
3243         (WebCore::PluginView::platformStart):
3244         * plugins/gtk/PluginViewGtk.cpp:
3245         (WebCore::PluginView::getRootWindow):
3246         (WebCore::setXButtonEventSpecificFields):
3247         (WebCore::setXMotionEventSpecificFields):
3248         (WebCore::setXCrossingEventSpecificFields):
3249         (WebCore::PluginView::getPluginDisplay):
3250         (WebCore::PluginView::platformStart):
3251         * plugins/x11/PluginViewX11.cpp: Moved common logics from PluginViewGtk.cpp
3252         (WebCore::PluginView::dispatchNPEvent):
3253         (WebCore::PluginView::updatePluginWidget):
3254         (WebCore::PluginView::handleFocusInEvent):
3255         (WebCore::PluginView::invalidateRect):
3256         (WebCore::PluginView::invalidateRegion):
3257         (WebCore::PluginView::handleFocusOutEvent):
3258         (WebCore::PluginView::initXEvent):
3259         (WebCore::PluginView::paint):
3260         (WebCore::PluginView::setParent):
3261         (WebCore::PluginView::setNPWindowRect):
3262         (WebCore::PluginView::setNPWindowIfNeeded):
3263
3264 2014-02-05  Anders Carlsson  <andersca@apple.com>
3265
3266         Fix a warning.
3267
3268         * platform/mac/ContentFilterMac.mm:
3269         (WebCore::ContentFilter::ContentFilter):
3270         Remove an unnecessary comparison.
3271
3272 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
3273
3274         Fix the !ENABLE(PAGE_VISIBILITY_API) build
3275         https://bugs.webkit.org/show_bug.cgi?id=127907
3276
3277         Reviewed by Brent Fulgham.
3278
3279         * page/Page.cpp:
3280         (WebCore::Page::setIsVisible):
3281
3282 2014-02-05  Oliver Hunt  <oliver@apple.com>
3283
3284         Change custom getter signature to make the base reference an object pointer
3285         https://bugs.webkit.org/show_bug.cgi?id=128279
3286
3287         Reviewed by Geoffrey Garen.
3288
3289         Update everything to the new calling convention.
3290
3291         * bindings/js/JSCSSStyleDeclarationCustom.cpp:
3292         (WebCore::cssPropertyGetterPixelOrPosPrefixCallback):
3293         (WebCore::cssPropertyGetterCallback):
3294         * bindings/js/JSDOMBinding.cpp:
3295         (WebCore::objectToStringFunctionGetter):
3296         * bindings/js/JSDOMBinding.h:
3297         * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
3298         (WebCore::JSDOMMimeTypeArray::nameGetter):
3299         * bindings/js/JSDOMPluginArrayCustom.cpp:
3300         (WebCore::JSDOMPluginArray::nameGetter):
3301         * bindings/js/JSDOMPluginCustom.cpp:
3302         (WebCore::JSDOMPlugin::nameGetter):
3303         * bindings/js/JSDOMWindowCustom.cpp:
3304         (WebCore::nonCachingStaticFunctionGetter):
3305         (WebCore::childFrameGetter):
3306         (WebCore::indexGetter):
3307         (WebCore::namedItemGetter):
3308         * bindings/js/JSHTMLAllCollectionCustom.cpp:
3309         (WebCore::JSHTMLAllCollection::nameGetter):
3310         * bindings/js/JSHTMLCollectionCustom.cpp:
3311         (WebCore::JSHTMLCollection::nameGetter):
3312         * bindings/js/JSHTMLDocumentCustom.cpp:
3313         (WebCore::JSHTMLDocument::nameGetter):
3314         * bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
3315         (WebCore::JSHTMLFormControlsCollection::nameGetter):
3316         * bindings/js/JSHTMLFormElementCustom.cpp:
3317         (WebCore::JSHTMLFormElement::nameGetter):
3318         * bindings/js/JSHTMLFrameSetElementCustom.cpp:
3319         (WebCore::JSHTMLFrameSetElement::nameGetter):
3320         * bindings/js/JSHistoryCustom.cpp:
3321         (WebCore::nonCachingStaticBackFunctionGetter):
3322         (WebCore::nonCachingStaticForwardFunctionGetter):
3323         (WebCore::nonCachingStaticGoFunctionGetter):
3324         * bindings/js/JSLocationCustom.cpp:
3325         (WebCore::nonCachingStaticReplaceFunctionGetter):
3326         (WebCore::nonCachingStaticReloadFunctionGetter):
3327         (WebCore::nonCachingStaticAssignFunctionGetter):
3328         * bindings/js/JSNamedNodeMapCustom.cpp:
3329         (WebCore::JSNamedNodeMap::nameGetter):
3330         * bindings/js/JSPluginElementFunctions.cpp:
3331         (WebCore::pluginElementPropertyGetter):
3332         * bindings/js/JSPluginElementFunctions.h:
3333         * bindings/js/JSRTCStatsResponseCustom.cpp:
3334         (WebCore::JSRTCStatsResponse::nameGetter):
3335         * bindings/js/JSStorageCustom.cpp:
3336         (WebCore::JSStorage::nameGetter):
3337         * bindings/js/JSStyleSheetListCustom.cpp:
3338         (WebCore::JSStyleSheetList::nameGetter):
3339         * bindings/scripts/CodeGeneratorJS.pm:
3340         (GenerateHeader):
3341         (GenerateImplementation):
3342         * bridge/runtime_array.cpp:
3343         (JSC::RuntimeArray::lengthGetter):
3344         (JSC::RuntimeArray::indexGetter):
3345         * bridge/runtime_array.h:
3346         * bridge/runtime_method.cpp:
3347         (JSC::RuntimeMethod::lengthGetter):
3348         * bridge/runtime_method.h:
3349         * bridge/runtime_object.cpp:
3350         (JSC::Bindings::RuntimeObject::fallbackObjectGetter):
3351         (JSC::Bindings::RuntimeObject::fieldGetter):
3352         (JSC::Bindings::RuntimeObject::methodGetter):
3353         * bridge/runtime_object.h:
3354
3355 2014-02-04  Andy Estes  <aestes@apple.com>
3356
3357         Buffer incoming data in ContentFilter when using NEFilterSource
3358         https://bugs.webkit.org/show_bug.cgi?id=127979
3359
3360         Reviewed by Sam Weinig.
3361
3362         WebFilterEvaluator buffers incoming data and returns it to us as
3363         replacement data if the load is allowed. NEFilterSource doesn't do
3364         this, so we need to do our own buffering.
3365
3366         * platform/ContentFilter.h: Forward-declared NSMutableData and added
3367         m_originalData.
3368         * platform/mac/ContentFilterMac.mm:
3369         (WebCore::ContentFilter::ContentFilter): Constructed m_originalData
3370         with an initial capacity (if we know the expected content size).
3371         (WebCore::ContentFilter::addData): Buffered incoming data if we are
3372         using NEFilterSource.
3373         (WebCore::ContentFilter::finishedAddingData):
3374         (WebCore::ContentFilter::getReplacementData): Returned m_originalData
3375         if the load wasn't blocked.
3376
3377 2014-02-05  Andreas Kling  <akling@apple.com>
3378
3379         Remove ENABLE(DIRECTORY_UPLOAD).
3380         <https://webkit.org/b/128275>
3381
3382         This is a non-standard Chrome extension that none of the WebKit
3383         ports have even been building.
3384
3385         Rubber-stamped by Ryosuke Niwa.
3386
3387         * Configurations/FeatureDefines.xcconfig:
3388         * fileapi/File.cpp:
3389         * fileapi/File.h:
3390         * fileapi/File.idl:
3391         * html/FileInputType.cpp:
3392         (WebCore::FileInputType::handleDOMActivateEvent):
3393         (WebCore::FileInputType::createFileList):
3394         (WebCore::FileInputType::receiveDroppedFiles):
3395         * html/FileInputType.h:
3396         * html/HTMLAttributeNames.in:
3397         * html/HTMLInputElement.cpp:
3398         (WebCore::HTMLInputElement::parseAttribute):
3399         * html/HTMLInputElement.idl:
3400         * loader/EmptyClients.h:
3401         * page/Chrome.cpp:
3402         * page/Chrome.h:
3403         * page/ChromeClient.h:
3404         * platform/FileChooser.h:
3405         * platform/network/FormData.cpp:
3406         (WebCore::FormData::appendKeyValuePairItems):
3407
3408 2014-02-05  Brady Eidson  <beidson@apple.com>
3409
3410         IDB: storage/indexeddb/mozilla/autoincrement-indexes.html fails
3411         https://bugs.webkit.org/show_bug.cgi?id=128257
3412
3413         Reviewed by Sam Weinig.
3414
3415         Tests: storage/indexeddb/mozilla/autoincrement-indexes.html
3416
3417         Add some IDBKeyData utility methods for WK2 to use:
3418         * Modules/indexeddb/IDBKeyData.cpp:
3419         (WebCore::IDBKeyData::setArrayValue):
3420         (WebCore::IDBKeyData::setStringValue):
3421         (WebCore::IDBKeyData::setDateValue):
3422         (WebCore::IDBKeyData::setNumberValue):
3423         * Modules/indexeddb/IDBKeyData.h:
3424
3425         * WebCore.exp.in:
3426
3427 2014-02-05  Andreas Kling  <akling@apple.com>
3428
3429         Turn on ENABLE(8BIT_TEXTRUN) for everyone.
3430         <https://webkit.org/b/128273>
3431
3432         Reviewed by Anders Carlsson.
3433
3434         * platform/graphics/TextRun.h:
3435         (WebCore::TextRun::TextRun):
3436         (WebCore::TextRun::subRun):
3437         * rendering/RenderBlock.cpp:
3438         (WebCore::RenderBlock::constructTextRun):
3439         * rendering/RenderBlock.h:
3440
3441 2014-02-05  Enrica Casucci  <enrica@apple.com>
3442
3443         WK2: Caret, selections and autocorrection bubbles are incorrectly positioned when inside an iframe.
3444         https://bugs.webkit.org/show_bug.cgi?id=128264
3445         <rdar://problem/15986954>
3446
3447         Reviewed by Simon Fraser.
3448
3449         Adding new exported function.
3450
3451         * WebCore.exp.in:
3452
3453 2014-02-05  Antti Koivisto  <antti@apple.com>
3454
3455         ElementRuleCollector should not use StyleResolver::State
3456         https://bugs.webkit.org/show_bug.cgi?id=128247
3457
3458         Reviewed by Andreas Kling.
3459         
3460         Make ElementRuleCollector more reusable.
3461
3462         * css/ElementRuleCollector.cpp:
3463         (WebCore::ElementRuleCollector::collectMatchingRules):
3464         (WebCore::ElementRuleCollector::sortAndTransferMatchedRules):
3465         (WebCore::ElementRuleCollector::matchAuthorRules):
3466         (WebCore::ElementRuleCollector::matchUARules):
3467         (WebCore::ElementRuleCollector::ruleMatches):
3468         (WebCore::ElementRuleCollector::collectMatchingRulesForList):