Fixed and sticky nodes have no nodeID set
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-02-02  Simon Fraser  <simon.fraser@apple.com>
2
3         Fixed and sticky nodes have no nodeID set
4         https://bugs.webkit.org/show_bug.cgi?id=108734
5
6         Reviewed by Sam Weinig.
7         
8         Push ScrollingNodeIDs onto scrolling nodes at construction time, and thereafter
9         treat them as readonly. Previously, only the root scrolling node would have a node ID.
10         
11         Node IDs aren't actually used by the scrolling tree yet, but are useful for debugging.
12
13         Not testable since we only dump the scrolling state tree, not the scrolling
14         node tree in tests.
15
16         * page/scrolling/ScrollingTree.cpp:
17         (WebCore::ScrollingTree::ScrollingTree): No longer create the root node here;
18         we can only create it when we know what its ID will be.
19         (WebCore::ScrollingTree::updateTreeFromStateNode): Create the root node if
20         necessary. Pass node IDs into create methods.
21         * page/scrolling/ScrollingTreeNode.cpp:
22         (WebCore::ScrollingTreeNode::ScrollingTreeNode):
23         * page/scrolling/ScrollingTreeNode.h:
24         * page/scrolling/ScrollingTreeScrollingNode.cpp:
25         (WebCore::ScrollingTreeScrollingNode::ScrollingTreeScrollingNode):
26         * page/scrolling/ScrollingTreeScrollingNode.h:
27         * page/scrolling/mac/ScrollingTreeFixedNode.h:
28         * page/scrolling/mac/ScrollingTreeFixedNode.mm:
29         (WebCore::ScrollingTreeFixedNode::create):
30         (WebCore::ScrollingTreeFixedNode::ScrollingTreeFixedNode):
31         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.h:
32         * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm:
33         (WebCore::ScrollingTreeScrollingNode::create):
34         (WebCore::ScrollingTreeScrollingNodeMac::ScrollingTreeScrollingNodeMac):
35         * page/scrolling/mac/ScrollingTreeStickyNode.h:
36         * page/scrolling/mac/ScrollingTreeStickyNode.mm:
37         (WebCore::ScrollingTreeStickyNode::create):
38         (WebCore::ScrollingTreeStickyNode::ScrollingTreeStickyNode):
39
40 2013-02-02  Takashi Sakamoto  <tasak@google.com>
41
42         Making -webkit-image-set() the first value of background property causes crash.
43         https://bugs.webkit.org/show_bug.cgi?id=108409
44
45         Reviewed by Beth Dakin.
46
47         CSSParser::addFillValue should use lval->isBaseValueList() instead
48         of lval->isValueList(). If lval is -webkit-image-set, rval is appended
49         to -webkit-image-set.
50
51         Test: fast/css/image-set-value-crash-in-fillImageSet.html
52
53         * css/CSSParser.cpp:
54         (WebCore::CSSParser::addFillValue):
55         If lval is not a value list, lval is initialized by using
56         CSSValueList::createCommaSeparated(). So we have to check whether
57         lval is created by CSSValueList::createCommaSeparated() or not.
58
59 2013-02-02  David Kilzer  <ddkilzer@apple.com>
60
61         Upstream iOS FeatureDefines
62         <http://webkit.org/b/108753>
63
64         Reviewed by Anders Carlsson.
65
66         * Configurations/FeatureDefines.xcconfig:
67         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
68         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
69         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
70           PLATFORM_NAME variant to reduce future merge conflicts. 
71
72 2013-02-02  Philippe Normand  <pnormand@igalia.com>
73
74         [GStreamer] Media tests fix after r141695.
75
76         Rubber-stamped by Martin Robinson.
77
78         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
79         (WebCore::MediaPlayerPrivateGStreamer::setPlaybinURL): Remove
80         both fragment and query string for file:// uris before loading.
81
82 2013-02-02  Patrick Gansterer  <paroga@webkit.org>
83
84         Build fix for WinCE after r141637.
85
86         * platform/graphics/wince/ImageBufferWinCE.cpp:
87
88 2013-02-01  Philippe Normand  <pnormand@igalia.com>
89
90         [GStreamer] webkitwebsrc is exposed to application-side
91         https://bugs.webkit.org/show_bug.cgi?id=108088
92
93         Reviewed by Martin Robinson.
94
95         Switch the webkitwebsrc to handle webkit+http(s) uris so it is now
96         explicit that this element is meant to be used preferrably inside
97         WebKit. This change is internal to the player.
98
99         No new tests, covered by existing http/tests/media tests.
100
101         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
102         (WebCore::MediaPlayerPrivateGStreamer::setPlaybinURL):
103         (WebCore):
104         (WebCore::MediaPlayerPrivateGStreamer::load):
105         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
106         (MediaPlayerPrivateGStreamer):
107         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
108         (webKitWebSrcGetProtocols):
109         (webKitWebSrcSetUri):
110
111 2013-02-02  Simon Hausmann  <simon.hausmann@digia.com>
112
113         Unreviewed trivial prospective build fix for A17n disabled
114         configurations.
115
116         The dummy computed object attriute cache control functions need to be defined
117         as being member functions of AXObjectCache, because that's where they are
118         declared.
119
120         * accessibility/AXObjectCache.h:
121         (WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
122         (WebCore::AXObjectCache::stopCachingComputedObjectAttributes):
123
124 2013-02-02  Antoine Quint  <graouts@apple.com>
125
126         Creating a WebInspector.ContextMenu without an event crashes WebCore when calling .show()
127         https://bugs.webkit.org/show_bug.cgi?id=108636
128
129         Reviewed by Pavel Feldman.
130
131         Return early if InspectorFrontendHost::showContextMenu() is called without an event and
132         assert in ContextMenuController::createContextMenu() in case no event was provided.
133
134         * inspector/InspectorFrontendHost.cpp:
135         (WebCore::InspectorFrontendHost::showContextMenu):
136         * page/ContextMenuController.cpp:
137         (WebCore::ContextMenuController::createContextMenu):
138
139 2013-02-02  Jonathan Feldstein  <jfeldstein@rim.com>
140
141         [BlackBerry] Improper initialization of ANGLEResources
142         https://bugs.webkit.org/show_bug.cgi?id=101489
143
144         Reviewed by Antonio Gomes.
145
146         MaxDrawBuffers, OES_standard_derivatives, OES_EGL_image_external and ARB_texture_rectangle have already been initialized through ShBuiltInResources function and these fields do not need to be set again in GraphicsContext3dBlackBerry.cpp. In addition, the extension flags cannot be set to true without getExtension having been called (Khronos WebGL specs, section 5.14.14.). Thus these lines need to be removed.
147
148         * platform/graphics/blackberry/GraphicsContext3DBlackBerry.cpp:
149         (WebCore::GraphicsContext3D::GraphicsContext3D):
150
151 2013-02-02  Vivek Galatage  <vivek.vg@samsung.com>
152
153         Web Inspector: Refactor InspectorDOMStorageAgent::getDOMStorageEntries to report the error messages
154         https://bugs.webkit.org/show_bug.cgi?id=108611
155
156         Reviewed by Pavel Feldman.
157
158         Added reporting of various error messages. Moved the modification of output
159         parameter at a later stage when there are no errors reported.
160
161         No new tests as code refactoring.
162
163         * inspector/InspectorDOMStorageAgent.cpp:
164         (WebCore::hadException):
165         (WebCore):
166         (WebCore::InspectorDOMStorageAgent::getDOMStorageEntries):
167
168 2013-02-02  Andrey Lushnikov  <lushnikov@chromium.org>
169
170         Web Inspector: fix bug in highlighting single chars via highlightRange API of DTE
171         https://bugs.webkit.org/show_bug.cgi?id=108685
172
173         Reviewed by Pavel Feldman.
174
175         Use Math.min instead of Math.max in rangesForLine method.
176
177         Updated test: text-editor-highlight-api.html
178
179         * inspector/front-end/DefaultTextEditor.js:
180         (WebInspector.TextEditorMainPanel.RangeHighlightDescriptor.prototype.rangesForLine):
181
182 2013-02-02  Tony Gentilcore  <tonyg@chromium.org>
183
184         Continue making XSSAuditor thread safe: Remove unsafe AtomicString compares
185         https://bugs.webkit.org/show_bug.cgi?id=108557
186
187         Reviewed by Adam Barth.
188
189         Unfortunately HTMLNames comparisons will always be false on a non-main thread
190         with our current design, so we have to use some "threadSafeMatch" helpers written
191         for the HTMLBackgroundParser.
192
193         Also factor out threadSafeMatch() methods to HTMLParserIdioms.
194
195         No new tests because no new functionality.
196
197         * html/parser/BackgroundHTMLParser.cpp:
198         (WebCore):
199         * html/parser/HTMLParserIdioms.cpp:
200         (WebCore::threadSafeEqual):
201         (WebCore):
202         (WebCore::threadSafeMatch):
203         * html/parser/HTMLParserIdioms.h:
204         (WebCore):
205         * html/parser/XSSAuditor.cpp:
206         (WebCore::XSSAuditor::eraseAttributeIfInjected):
207
208 2013-02-01  James Simonsen  <simonjam@chromium.org>
209
210         Add didChangePriority() to ResourceHandle
211         https://bugs.webkit.org/show_bug.cgi?id=107995
212
213         Reviewed by Darin Fisher.
214
215         For PLT, it's important that preloads remain a lower priority than parser requested resources.
216         This can lead to a 5% improvement.
217
218         The plan is to use this plumbing to expose the desired behavior. This patch simply allows a
219         resource's priority to change and have it propagate to the network layer. An upcoming patch will
220         lower the priority of preloads and then increase the priority when the parser officially requests
221         it.
222
223         No new tests. No visible change, because priority doesn't change yet.
224
225         * loader/cache/CachedResource.cpp:
226         (WebCore):
227         (WebCore::CachedResource::setLoadPriority):
228         * loader/cache/CachedResourceLoader.cpp:
229         (WebCore::CachedResourceLoader::requestResource): Allow loads to modify priority.
230         * loader/cache/CachedResourceRequest.h:
231         (WebCore::CachedResourceRequest::setPriority): Notify when priority changes.
232         * platform/network/ResourceHandle.cpp:
233         (WebCore::ResourceHandle::didChangePriority): Added.
234         (WebCore):
235         * platform/network/ResourceHandle.h:
236         (ResourceHandle):
237         * platform/network/chromium/ResourceHandle.cpp:
238         (WebCore::ResourceHandleInternal::didChangePriority):
239         (WebCore):
240         (WebCore::ResourceHandle::didChangePriority):
241         * platform/network/chromium/ResourceHandleInternal.h:
242         (ResourceHandleInternal):
243
244 2013-02-01  Roger Fong  <roger_fong@apple.com>
245
246         Unreviewed. Clean up WebCore VS2010 project.
247
248         * WebCore.vcxproj/WebCore.vcxproj:
249         * WebCore.vcxproj/WebCore.vcxproj.filters:
250         * WebCore.vcxproj/WebCoreCommon.props:
251         * WebCore.vcxproj/WebCoreGenerated.make:
252         * WebCore.vcxproj/WebCorePreLink.cmd: Removed.
253         * WebCore.vcxproj/build-generated-files.sh:
254
255 2013-02-01  Sam Weinig  <sam@webkit.org>
256
257         Don't use deprecated method -[NSImage dissolveToPoint:fraction:]
258         <rdar://problem/11723792>
259         https://bugs.webkit.org/show_bug.cgi?id=108739
260
261         Reviewed by Anders Carlsson.
262
263         * platform/mac/DragImageMac.mm:
264         (WebCore::dissolveDragImageToFraction):
265         Remove use of deprecated NSImage methods and simplify a bit.
266
267 2013-02-01  Andrey Lushnikov  <lushnikov@chromium.org>
268
269         Web Inspector: fix "DOM Exception 8" when deleting lines containing decoration in DTE.
270         https://bugs.webkit.org/show_bug.cgi?id=108689
271
272         Reviewed by Alexander Pavlov.
273
274         Add a check that decoration element is still added to the line before trying to delete it. This
275         won't be true if the whole line is deleted in contentEditable,
276         and this is the reason for the exception to be thrown.
277
278         No new tests.
279
280         * inspector/front-end/DefaultTextEditor.js:
281         (WebInspector.TextEditorMainChunk.prototype.removeAllDecorations):
282
283 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
284
285         Unreviewed, rolling out r141669.
286         http://trac.webkit.org/changeset/141669
287         https://bugs.webkit.org/show_bug.cgi?id=108728
288
289         Broke the windows build. (Requested by leviw on #webkit).
290
291         * rendering/RenderBoxModelObject.cpp:
292         (WebCore::RenderBoxModelObject::computedCSSPaddingTop):
293         (WebCore):
294         (WebCore::RenderBoxModelObject::computedCSSPaddingBottom):
295         (WebCore::RenderBoxModelObject::computedCSSPaddingLeft):
296         (WebCore::RenderBoxModelObject::computedCSSPaddingRight):
297         (WebCore::RenderBoxModelObject::computedCSSPaddingBefore):
298         (WebCore::RenderBoxModelObject::computedCSSPaddingAfter):
299         (WebCore::RenderBoxModelObject::computedCSSPaddingStart):
300         (WebCore::RenderBoxModelObject::computedCSSPaddingEnd):
301         * rendering/RenderBoxModelObject.h:
302         (RenderBoxModelObject):
303
304 2013-02-01  Emil A Eklund  <eae@chromium.org>
305
306         Remove duplicate code in RenderBoxModelObject::computedCSSPadding*
307         https://bugs.webkit.org/show_bug.cgi?id=108707
308
309         Reviewed by Levi Weintraub.
310         
311         The computedCSSPaddingTop/Bottom/... methods in
312         RenderBoxModelObject all do pretty much exactly the same thing
313         yet share no code.
314         
315         Break out shared code into computedCSSPadding method and have
316         the top/bottom/left/right/... ones call it with the appropriate
317         length value.
318
319         No new tests, no change in functionality.
320
321         * rendering/RenderBoxModelObject.cpp:
322         (WebCore::RenderBoxModelObject::computedCSSPadding):
323         * rendering/RenderBoxModelObject.h:
324         (WebCore::RenderBoxModelObject::computedCSSPaddingTop):
325         (WebCore::RenderBoxModelObject::computedCSSPaddingBottom):
326         (WebCore::RenderBoxModelObject::computedCSSPaddingLeft):
327         (WebCore::RenderBoxModelObject::computedCSSPaddingRight):
328         (WebCore::RenderBoxModelObject::computedCSSPaddingBefore):
329         (WebCore::RenderBoxModelObject::computedCSSPaddingAfter):
330         (WebCore::RenderBoxModelObject::computedCSSPaddingStart):
331         (WebCore::RenderBoxModelObject::computedCSSPaddingEnd):
332         (RenderBoxModelObject):
333
334 2013-02-01  Mark Lam  <mark.lam@apple.com>
335
336         Replace ExceptionCode with DatabaseError in the openDatabase() code path.
337         https://bugs.webkit.org/show_bug.cgi?id=108724.
338
339         Reviewed by Alexey Proskuryakov.
340
341         Also made DatabaseBackend::performOpenAndVerify() a little more
342         straightforward and less repetitive.
343
344         No new tests.
345
346         * Modules/webdatabase/DOMWindowWebDatabase.cpp:
347         (WebCore::DOMWindowWebDatabase::openDatabase):
348         * Modules/webdatabase/Database.cpp:
349         (WebCore::Database::openAndVerifyVersion):
350         (WebCore::Database::performOpenAndVerify):
351         * Modules/webdatabase/Database.h:
352         (Database):
353         * Modules/webdatabase/DatabaseBackend.cpp:
354         (WebCore::DoneCreatingDatabaseOnExitCaller::DoneCreatingDatabaseOnExitCaller):
355         (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
356         (DoneCreatingDatabaseOnExitCaller):
357         (WebCore::DoneCreatingDatabaseOnExitCaller::openSucceeded):
358         (WebCore::DatabaseBackend::performOpenAndVerify):
359         * Modules/webdatabase/DatabaseBackend.h:
360         * Modules/webdatabase/DatabaseManager.cpp:
361         (WebCore::DatabaseManager::openDatabase):
362         (WebCore::DatabaseManager::openDatabaseSync):
363         * Modules/webdatabase/DatabaseManager.h:
364         (DatabaseManager):
365         * Modules/webdatabase/DatabaseSync.cpp:
366         (WebCore::DatabaseSync::openAndVerifyVersion):
367         * Modules/webdatabase/DatabaseSync.h:
368         (DatabaseSync):
369         * Modules/webdatabase/DatabaseTask.cpp:
370         (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask):
371         (WebCore::Database::DatabaseOpenTask::doPerformTask):
372         * Modules/webdatabase/DatabaseTask.h:
373         (WebCore::Database::DatabaseOpenTask::create):
374         (Database::DatabaseOpenTask):
375         * Modules/webdatabase/WorkerContextWebDatabase.cpp:
376         (WebCore::WorkerContextWebDatabase::openDatabase):
377         (WebCore::WorkerContextWebDatabase::openDatabaseSync):
378         * WebCore.gypi:
379
380 2013-02-01  Yongjun Zhang  <yongjun_zhang@apple.com>
381
382         Document is never released if an image's src attribute is changed to a url blocked by content-security-policy.
383         https://bugs.webkit.org/show_bug.cgi?id=108545
384
385         If we just scheduled an error event due to an null newImage, we should not cancel it when newImage and oldImage
386         is not the same.  Otherwise we will ref the sourceElement in updateHasPendingEvent (m_hasPendingErrorEvent is true)
387         but never deref it since we already cancelled the error event.
388
389         Reviewed by Alexey Proskuryakov.
390
391         Test: fast/images/image-error-event-not-firing.html
392
393         * loader/ImageLoader.cpp:
394         (WebCore::ImageLoader::updateFromElement): don't cancel error event if newImage is null, we want the
395             error event to fire.
396
397 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
398
399         Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
400         https://bugs.webkit.org/show_bug.cgi?id=108558
401
402         Reviewed by Dean Jackson.
403
404         This is a step torward killing the implicit conversion from String to AtomicString.
405
406         The animation name are AtomicString. The API is changed all the way to the callers
407         to take an AtomicString. When needed, we use explicit conversion.
408
409         * WebCore.exp.in:
410         * page/animation/AnimationController.cpp:
411         (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
412         (WebCore::AnimationController::pauseAnimationAtTime):
413         * page/animation/AnimationController.h:
414         (AnimationController):
415         * page/animation/AnimationControllerPrivate.h:
416         (AnimationControllerPrivate):
417         * page/animation/CompositeAnimation.cpp:
418         (WebCore::CompositeAnimation::pauseAnimationAtTime):
419         We should not null check the name. Getting a null name from the HashMap would be
420         an error from the tests, and the HashMap would never return a value anyway.
421         * testing/Internals.cpp:
422         (WebCore::Internals::pauseAnimationAtTimeOnPseudoElement):
423
424 2013-02-01  Dominic Mazzoni  <dmazzoni@google.com>
425
426         AX: memoize expensive computation during blocks where tree doesn't change
427         https://bugs.webkit.org/show_bug.cgi?id=106497
428
429         Reviewed by Ryosuke Niwa.
430
431         Add a cache for computed attributes of AXObjects.
432         The cache can be enabled at the start of a batch of
433         read-only operations on the accessibility tree, and
434         it's cleared automatically when the tree mutates.
435         Currently accessibilityIsIgnored is cached, since it's
436         frequently called and relatively expensive to compute.
437
438         No new tests.
439
440         * accessibility/AXObjectCache.cpp:
441         (WebCore):
442         (WebCore::AXComputedObjectAttributeCache::getIgnored):
443         (WebCore::AXComputedObjectAttributeCache::setIgnored):
444         (WebCore::AXObjectCache::postNotification):
445         (WebCore::AXObjectCache::nodeTextChangeNotification):
446         (WebCore::AXObjectCache::handleScrollbarUpdate):
447         (WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
448         (WebCore::AXObjectCache::stopCachingComputedObjectAttributes):
449         * accessibility/AXObjectCache.h:
450         (AXComputedObjectAttributeCache):
451         (WebCore::AXComputedObjectAttributeCache::create):
452         (WebCore::AXComputedObjectAttributeCache::AXComputedObjectAttributeCache):
453         (WebCore::AXComputedObjectAttributeCache::CachedAXObjectAttributes::CachedAXObjectAttributes):
454         (CachedAXObjectAttributes):
455         (WebCore):
456         (WebCore::AXObjectCache::computedObjectAttributeCache):
457         (AXObjectCache):
458         (WebCore::AXComputedObjectAttributeCache::getIgnored):
459         (WebCore::AXComputedObjectAttributeCache::setIgnored):
460         (WebCore::startCachingComputedObjectAttributesUntilTreeMutates):
461         (WebCore::stopCachingComputedObjectAttributes):
462         * accessibility/AccessibilityObject.cpp:
463         (WebCore::AccessibilityObject::findMatchingObjects):
464         * accessibility/AccessibilityRenderObject.cpp:
465         (WebCore):
466         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
467         (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
468         * accessibility/AccessibilityRenderObject.h:
469         (AccessibilityRenderObject):
470
471 2013-02-01  Alexey Proskuryakov  <ap@apple.com>
472
473         Build fix.
474
475         * Modules/webdatabase/DatabaseBackend.cpp: (DoneCreatingDatabaseOnExitCaller):
476         Don't fail because of an unused member variable in cross-plaform code path.
477
478 2013-02-01  Kevin Ellis  <kevers@chromium.org>
479
480         [chromium] Fat scrollbars on Windows in high-DPI mode.
481         https://bugs.webkit.org/show_bug.cgi?id=108637
482
483         Updates mechanism for retrieving scrollbar metrics on the
484         Windows port of Chromium.  Previously, GetSystemMetrics calls
485         were used, which fetches prescaled sizes in pixel rather than
486         logical units, resulting in a double scaling when a device
487         scale factor is set.  With the patch, the size is retrieved
488         from the theme engine in DIP.
489
490         Reviewed by Adam Barth.
491
492         No new tests.
493
494         * platform/chromium/ScrollbarThemeChromiumWin.cpp:
495         (WebCore::ScrollbarThemeChromiumWin::scrollbarThickness):
496         (WebCore::ScrollbarThemeChromiumWin::paintTrackPiece):
497         * rendering/RenderThemeChromiumWin.cpp:
498         (WebCore):
499         (WebCore::menuListButtonWidth):
500
501 2013-02-01  Mark Lam  <mark.lam@apple.com>
502
503         Clean up calls to DatabaseTracker::add/removeOpenDatabase().
504         https://bugs.webkit.org/show_bug.cgi?id=108431
505
506         Reviewed by Geoffrey Garen.
507
508         Also adapted the chromium port to work with this new code.
509         Chromium parts reviewed by Michael Nordman and David Levin.
510
511         This is part of the webdatabase refactoring effort.
512
513         No new tests.
514
515         * Modules/webdatabase/AbstractDatabaseServer.h:
516         (AbstractDatabaseServer):
517         * Modules/webdatabase/Database.cpp:
518         (WebCore::Database::openAndVerifyVersion):
519         (WebCore::Database::close):
520         * Modules/webdatabase/DatabaseBackend.cpp:
521         (WebCore::DatabaseBackend::DatabaseBackend):
522         (WebCore::DatabaseBackend::closeDatabase):
523         (DoneCreatingDatabaseOnExitCaller):
524         (WebCore::DoneCreatingDatabaseOnExitCaller::DoneCreatingDatabaseOnExitCaller):
525         (WebCore::DoneCreatingDatabaseOnExitCaller::~DoneCreatingDatabaseOnExitCaller):
526         (WebCore::DatabaseBackend::performOpenAndVerify):
527         * Modules/webdatabase/DatabaseManager.cpp:
528         (WebCore::DatabaseManager::openDatabase):
529         (WebCore::DatabaseManager::openDatabaseSync):
530         * Modules/webdatabase/DatabaseManager.h:
531         (DatabaseManager):
532         * Modules/webdatabase/DatabaseServer.cpp:
533         * Modules/webdatabase/DatabaseServer.h:
534         * Modules/webdatabase/DatabaseSync.cpp:
535         (WebCore::DatabaseSync::~DatabaseSync):
536         (WebCore::DatabaseSync::openAndVerifyVersion):
537         (WebCore::DatabaseSync::closeImmediately):
538         * Modules/webdatabase/DatabaseSync.h:
539         (DatabaseSync):
540         * Modules/webdatabase/DatabaseTracker.cpp:
541         (WebCore::DatabaseTracker::doneCreatingDatabase):
542         (WebCore::DatabaseTracker::addOpenDatabase):
543         * Modules/webdatabase/DatabaseTracker.h:
544         (DatabaseTracker):
545         * Modules/webdatabase/chromium/DatabaseTrackerChromium.cpp:
546         (WebCore::DatabaseTracker::addOpenDatabase):
547         (WebCore::DatabaseTracker::prepareToOpenDatabase):
548         (WebCore::DatabaseTracker::failedToOpenDatabase):
549
550 2013-02-01  Andrey Lushnikov  <lushnikov@chromium.org>
551
552         Web Inspector: remove extra padding around overlay highlight.
553         https://bugs.webkit.org/show_bug.cgi?id=108679
554
555         Reviewed by Alexander Pavlov.
556
557         No new tests: no change in behaviour.
558
559         Remove extraWidth from overlay highlight spans.
560
561         * inspector/front-end/DefaultTextEditor.js:
562         (WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight):
563
564 2013-02-01  Philip Rogers  <pdr@google.com>
565
566         Prevent skipped repaints for children of inner SVG elements
567         https://bugs.webkit.org/show_bug.cgi?id=108429
568
569         Reviewed by Eric Seidel.
570
571         This patch fixes a bug caused by r108699 and r133786 where we would not repaint children
572         of inner SVG elements because "m_didTransformToRootUpdate" was never reset on viewport
573         containers. The stale m_didTransformToRootUpdate variable caused us to skip child repaints.
574
575         I verified that the Robohornet SVG benchmark performance gains in r133786 are not regressed
576         with this patch.
577
578         Test: svg/repaint/svgsvgelement-repaint-children.html
579
580         * rendering/svg/RenderSVGViewportContainer.cpp:
581         (WebCore::RenderSVGViewportContainer::calcViewport):
582
583             This can be removed because setNeedsTransformUpdate() will set m_needsTransformUpdate.
584
585         (WebCore::RenderSVGViewportContainer::calculateLocalTransform):
586
587             This change is straightforward and is similar to the equivalent assignment in
588             RenderSVGTransformableContainer::calculateLocalTransform().
589
590 2013-02-01  Philip Rogers  <pdr@google.com>
591
592         Change hasAlpha to isKnownToBeOpaque and correct the return value for SVG images.
593         https://bugs.webkit.org/show_bug.cgi?id=106966
594
595         Reviewed by Stephen White.
596
597         Previously, Image::currentFrameHasAlpha's default implementation returned false so SVG
598         images always returned false for currentFrameHasAlpha. Additionally, currentFrameHasAlpha
599         was treated as returning whether the frame had alpha when it would actually conservatively
600         return true.
601
602         This patch renames hasAlpha and currentFrameHasAlpha to isKnownToBeOpaque and
603         currentFrameIsKnownToBeOpaque, respectively. This rename better describes the actual
604         functionality. This patch also makes Image::isKnownToBeOpaque a pure virtual function and
605         correctly implements it for SVG images.
606
607         All users of isKnownToBeOpaque access SVG images using CachedImage::imageForRenderer which
608         currently returns a cached bitmap image. Therefore, this patch will not affect existing
609         functionality. A regression test has been added that will catch if this changes in the
610         future (e.g., WK106159 which proposes not returning cached bitmaps). The now unnecessary
611         isBitmapImage() calls have been removed in this patch.
612
613         image-box-shadow.html has been modified to test SVG images.
614
615         * css/CSSCrossfadeValue.cpp:
616         (WebCore::subimageKnownToBeOpaque):
617         (WebCore::CSSCrossfadeValue::knownToBeOpaque):
618
619             Mostly straightforward rename but note the logic has been slightly altered: AND -> OR.
620
621         * css/CSSCrossfadeValue.h:
622         (CSSCrossfadeValue):
623         * css/CSSGradientValue.cpp:
624         (WebCore::CSSGradientValue::knownToBeOpaque):
625         * css/CSSGradientValue.h:
626         (CSSGradientValue):
627         * css/CSSImageGeneratorValue.cpp:
628         (WebCore::CSSImageGeneratorValue::knownToBeOpaque):
629         * css/CSSImageGeneratorValue.h:
630         (CSSImageGeneratorValue):
631         * css/CSSImageValue.cpp:
632         (WebCore::CSSImageValue::knownToBeOpaque):
633         * css/CSSImageValue.h:
634         (CSSImageValue):
635         * loader/cache/CachedImage.cpp:
636         (WebCore::CachedImage::currentFrameKnownToBeOpaque):
637         * loader/cache/CachedImage.h:
638         (CachedImage):
639         * platform/graphics/BitmapImage.cpp:
640         (WebCore::BitmapImage::currentFrameKnownToBeOpaque):
641         * platform/graphics/BitmapImage.h:
642         (BitmapImage):
643         * platform/graphics/GeneratedImage.h:
644         (GeneratedImage):
645         * platform/graphics/Image.h:
646
647             Note: now a pure virtual function!
648
649         (Image):
650         * platform/graphics/blackberry/LayerTiler.cpp:
651         (WebCore::LayerTiler::updateTextureContentsIfNeeded):
652
653             Removed unnecessary isBitmapImage() checks.
654
655         * platform/graphics/cg/GraphicsContext3DCG.cpp:
656         (WebCore::GraphicsContext3D::ImageExtractor::extractImage):
657
658             Removed unnecessary isBitmapImage() checks.
659
660         * platform/graphics/cg/PDFDocumentImage.h:
661         (PDFDocumentImage):
662         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
663
664             Removed unnecessary isBitmapImage() checks.
665
666         (WebCore::GraphicsLayerChromium::setContentsToImage):
667         * platform/graphics/qt/StillImageQt.cpp:
668         (WebCore::StillImage::currentFrameKnownToBeOpaque):
669         * platform/graphics/qt/StillImageQt.h:
670         (StillImage):
671         * platform/graphics/skia/BitmapImageSingleFrameSkia.cpp:
672         (WebCore::BitmapImageSingleFrameSkia::currentFrameKnownToBeOpaque):
673         * platform/graphics/skia/BitmapImageSingleFrameSkia.h:
674         (BitmapImageSingleFrameSkia):
675         * platform/graphics/texmap/TextureMapperBackingStore.cpp:
676         (WebCore::TextureMapperTile::updateContents):
677         (WebCore::TextureMapperTiledBackingStore::updateContents):
678         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp:
679         (WebCore::CoordinatedImageBacking::update):
680         * rendering/RenderImage.cpp:
681         (WebCore::RenderImage::backgroundIsObscured):
682
683             Removed unnecessary isBitmapImage() checks and slightly reworked the logic.
684
685         * rendering/style/FillLayer.cpp:
686         (WebCore::FillLayer::hasOpaqueImage):
687         * rendering/style/StyleCachedImage.cpp:
688         (WebCore::StyleCachedImage::knownToBeOpaque):
689         * rendering/style/StyleCachedImage.h:
690         (StyleCachedImage):
691         * rendering/style/StyleCachedImageSet.cpp:
692         (WebCore::StyleCachedImageSet::knownToBeOpaque):
693         * rendering/style/StyleCachedImageSet.h:
694         (StyleCachedImageSet):
695         * rendering/style/StyleGeneratedImage.cpp:
696         (WebCore::StyleGeneratedImage::knownToBeOpaque):
697         * rendering/style/StyleGeneratedImage.h:
698         (StyleGeneratedImage):
699         * rendering/style/StyleImage.h:
700         (StyleImage):
701         * rendering/style/StylePendingImage.h:
702         (WebCore::StylePendingImage::knownToBeOpaque):
703         * svg/graphics/SVGImage.h:
704         (SVGImage):
705
706 2013-02-01  Brady Eidson  <beidson@apple.com>
707
708         Clean up WebArchive loading with the NetworkProcess
709         <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
710
711         Reviewed by Alexey Proskuryakov.
712
713         No new tests (No change in WebCore behavior).
714
715         Remove a now unneeded function and add a needed export.
716
717         * WebCore.exp.in:
718         * loader/ResourceLoadScheduler.cpp:
719         * loader/ResourceLoadScheduler.h:
720
721 2013-02-01  Alok Priyadarshi  <alokp@chromium.org>
722
723         Print GraphicsLayer::m_contentsOpaque if non-default (true)
724         https://bugs.webkit.org/show_bug.cgi?id=108354
725
726         Reviewed by Simon Fraser.
727
728         No new tests. This change facilitates testing of GraphicsLayer opaqueness.
729
730         * platform/graphics/GraphicsLayer.cpp:
731         (WebCore::GraphicsLayer::dumpProperties):
732
733 2013-02-01  Tony Gentilcore  <tonyg@chromium.org>
734
735         Continue making XSSAuditor thread safe: Remove dependency on parser's Document URL
736         https://bugs.webkit.org/show_bug.cgi?id=108655
737
738         Reviewed by Adam Barth.
739
740         No new tests because no new functionality.
741
742         * html/parser/XSSAuditor.cpp:
743         (WebCore::XSSAuditor::XSSAuditor):
744         (WebCore::XSSAuditor::init):
745         (WebCore::XSSAuditor::isLikelySafeResource):
746         * html/parser/XSSAuditor.h:
747
748 2013-02-01  Jer Noble  <jer.noble@apple.com>
749
750         REGRESSION (r141281): Navigating to this HTTP Live Streaming (application/vnd.apple.mpegurl) URL downloads a file instead of playing it in the browser
751         https://bugs.webkit.org/show_bug.cgi?id=108674
752         <rdar://problem/13133595>
753
754         Reviewed by Eric Carlson.
755
756         When passed a HashSet of available MIME types to fill out, QTKit was overwriting the contents, which were
757         AVFoundation's supported types. Instead, it should be appending to the list of supported types.
758
759         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
760         (WebCore::concatenateHashSets): Added static utility function.
761         (WebCore::MediaPlayerPrivateQTKit::getSupportedTypes): Concatenate instead of overwriting the passed in MIME types.
762
763 2013-02-01  Beth Dakin  <bdakin@apple.com>
764
765         Another speculative windows build fix.
766
767         * platform/ScrollAnimator.h:
768
769 2013-01-31  Dirk Schulze  <krit@webkit.org>
770
771         [canvas] Add more constructors to Path
772         https://bugs.webkit.org/show_bug.cgi?id=108587
773
774         Reviewed by Dean Jackson.
775
776         Add more constructors to Path object to make it possible
777         to copy Path objects and parse SVG strings into a Path
778         object that can be used on the canvas context afterwards.
779
780         Test: fast/canvas/canvas-path-constructors.html
781
782         * html/canvas/DOMPath.h: New constructors for Path.
783         (WebCore::DOMPath::create):
784         (WebCore::DOMPath::DOMPath):
785         * html/canvas/DOMPath.idl: Ditto.
786
787 2013-02-01  Zan Dobersek  <zdobersek@igalia.com>
788
789         [GTK] Add WTFURL source files to the build
790         https://bugs.webkit.org/show_bug.cgi?id=108215
791
792         Reviewed by Benjamin Poulain.
793
794         * platform/KURLWTFURL.cpp:
795         (WebCore): Only use the stub implementation of the fileSystemPath method for the
796         Apple ports, other ports should for now still rely on their platform-specific implementations.
797
798 2013-02-01  Mike West  <mkwst@chromium.org>
799
800         Remove call to SecurityOrigin::canAccessDatabase from IDB constructor.
801         https://bugs.webkit.org/show_bug.cgi?id=108477
802
803         Reviewed by Adam Barth.
804
805         This change removes the 'SecurityOrigin::canAccessDatabase' check from
806         the constructor for the 'indexedDB' property on both DOMWindow and
807         WorkerContext. After the patch for http://wkbug.com/94171 this check
808         is redundant, as all the entry points to IDB are now gated on access
809         being granted.
810
811         As a side-effect, dropping the check in WorkerContextIndexedDatabase
812         allows us to stop holding a pointer to the ScriptExecutionContext we're
813         extending, which can only be a good thing.
814
815         The tests in storage/indexeddb should continue to pass.
816
817         * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
818         (WebCore::DOMWindowIndexedDatabase::indexedDB):
819             Drop the SecurityOrigin::canAccessDatabase check.
820         * Modules/indexeddb/WorkerContextIndexedDatabase.cpp:
821         (WebCore::WorkerContextIndexedDatabase::WorkerContextIndexedDatabase):
822         (WebCore::WorkerContextIndexedDatabase::from):
823             Drop the ScriptExecutionContext parameter from the class's
824             constructor and callsites.
825         (WebCore::WorkerContextIndexedDatabase::indexedDB):
826             Drop the SecurityOrigin::canAccessDatabase check.
827         * Modules/indexeddb/WorkerContextIndexedDatabase.h:
828         (WorkerContextIndexedDatabase):
829             Drop the stored pointer to ScriptExecutionContext, as we no longer
830             need it in ::indexedDB.
831
832 2013-02-01  Beth Dakin  <bdakin@apple.com>
833
834         Speculative Windows build fix. 
835
836         * platform/ScrollAnimator.h:
837         (WebCore):
838
839 2013-02-01  Ryosuke Niwa  <rniwa@webkit.org>
840
841         Smart link can erroneously move caret after an URL when typing immediately before it
842         https://bugs.webkit.org/show_bug.cgi?id=92812
843
844         Reviewed by Enrica Casucci.
845
846         The bug was caused by smart link being triggered even when a user finished typing a word
847         immediately before an URL. We already had a logic to avoid smart-linking an URL when the caret
848         was after the URL but we were missing a check for when the caret is before the URL.
849
850         Fixed the bug by adding this check.
851
852         Test: editing/inserting/smart-link-when-caret-is-moved-before-URL.html
853
854         * editing/Editor.cpp:
855         (WebCore::Editor::markAndReplaceFor):
856
857 2013-02-01  Roger Fong  <roger_fong@apple.com>
858
859         Unreviewed. Windows build fix. FloatSize.cpp was not included in the project.
860
861         * WebCore.vcproj/WebCore.vcproj:
862
863 2013-02-01  Julien Chaffraix  <jchaffraix@webkit.org>
864
865         [CSS Grid Layout] computePreferredLogicalWidths doesn't handle minmax tracks
866         https://bugs.webkit.org/show_bug.cgi?id=108403
867
868         Reviewed by Ojan Vafai.
869
870         Test: fast/css-grid-layout/grid-preferred-logical-widths.html
871
872         The code before this change was only handling minmax() with 2 fixed widths.
873         The new code was updated to remove this artificial limitation and we now
874         support all combination of minmax().
875
876         * rendering/RenderGrid.cpp:
877         (WebCore::RenderGrid::computePreferredLogicalWidths):
878         Updated to use computePreferredTrackWidth..
879
880         (WebCore::RenderGrid::computePreferredTrackWidth):
881         Added this helper function that implements the core of the preferred width
882         computation.
883
884         * rendering/RenderGrid.h: Added computePreferredTrackWidth.
885
886 2013-02-01  Nate Chapin  <japhet@chromium.org>
887
888         Cached main resources report a zero identifer on 304s
889         https://bugs.webkit.org/show_bug.cgi?id=108402
890
891         Reviewed by Adam Barth.
892
893         Test: http/tests/cache/iframe-304-crash.html
894
895         * loader/MainResourceLoader.cpp:
896         (WebCore::MainResourceLoader::responseReceived): Throughout, check m_identifierForLoadWithoutResourceLoader
897             instead of !loader() to determine whether MainResourceLoader needs to synthesize resource load callbacks.
898         (WebCore::MainResourceLoader::dataReceived):
899         (WebCore::MainResourceLoader::didFinishLoading):
900
901 2013-02-01  Nico Weber  <thakis@chromium.org>
902
903         [chromium] Build webkit with enable_web_intents set to 0.
904         https://bugs.webkit.org/show_bug.cgi?id=108408
905
906         Reviewed by Tony Chang.
907
908         I'll then make chromium build fine with that, then switch
909         enable_web_intents to 0, roll that into webkit, and then
910         actually remove the code hidden behind this flag.
911
912         * bindings/v8/custom/V8IntentCustom.cpp:
913
914 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
915
916         Web Inspector: make console object state hint non-active
917         https://bugs.webkit.org/show_bug.cgi?id=108642
918
919         Reviewed by Vsevolod Vlasov.
920
921         Otherwise it seems like an active element user could click.
922
923         * inspector/front-end/inspector.css:
924         (.object-info-state-note):
925
926 2013-02-01  Rashmi Shyamasundar  <rashmi.s2@samsung.com>
927
928         Zero size gradient should paint nothing on canvas
929         https://bugs.webkit.org/show_bug.cgi?id=102654
930
931         Reviewed by Dirk Schulze.
932
933         The functions fill(), fillText(), stroke(), strokeRect() and strokeText()
934         should paint nothing on canvas when the canvas fillStyle/strokeStyle
935         is set to a zero size gradient.
936  
937         Tests: fast/canvas/canvas-fill-zeroSizeGradient.html
938                fast/canvas/canvas-fillRect-zeroSizeGradient.html
939                fast/canvas/canvas-fillText-zeroSizeGradient.html
940                fast/canvas/canvas-stroke-zeroSizeGradient.html
941                fast/canvas/canvas-strokeRect-zeroSizeGradient.html
942                fast/canvas/canvas-strokeText-zeroSizeGradient.html
943
944         * html/canvas/CanvasRenderingContext2D.cpp:
945         (WebCore::CanvasRenderingContext2D::fill):
946         (WebCore::CanvasRenderingContext2D::stroke):
947         (WebCore::CanvasRenderingContext2D::strokeRect):
948         (WebCore::CanvasRenderingContext2D::drawTextInternal):
949
950 2013-02-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
951
952         HRTFElevation segfault if a null AudioBus is returned by loadPlatformResource
953         https://bugs.webkit.org/show_bug.cgi?id=108504
954
955         Reviewed by Kenneth Russell.
956
957         Fixed a segfault by checking if the returned AudioBus is null or not.
958         If it is, we should early return in the same way it was being done already
959         in HRTFElevation::calculateKernelsForAzimuthElevation();
960
961         No new tests, covered by existing tests.
962
963         * platform/audio/HRTFElevation.cpp:
964         (WebCore::getConcatenatedImpulseResponsesForSubject):
965
966 2013-02-01  Beth Dakin  <bdakin@apple.com>
967
968         ScrollAnimatorMac should adopt contentAreaScrolledInDirection
969         https://bugs.webkit.org/show_bug.cgi?id=108647
970         -and corresponding-
971         <rdar://problem/12434779>
972
973         Reviewed by Anders Carlsson.
974
975         This patch makes notifyContentAreaScrolled() and notifyPositionChanged() take a 
976         FloatSize parameter that represents the scroll delta so that it can be passed 
977         along to contentAreaScrolledInDirection:. 
978
979         Pass along the scroll delta.
980         * platform/ScrollAnimator.cpp:
981         (WebCore::ScrollAnimator::scroll):
982         (WebCore::ScrollAnimator::scrollToOffsetWithoutAnimation):
983
984         The delta is not needed in this base-class implementation. It will only be needed 
985         in the ScrollAnimatorMac override.
986         (WebCore::ScrollAnimator::notifyPositionChanged):
987         * platform/ScrollAnimator.h:
988         (WebCore::ScrollAnimator::notifyContentAreaScrolled):
989
990         Pass along the delta.
991         * platform/ScrollAnimatorNone.cpp:
992         (WebCore::ScrollAnimatorNone::scrollToOffsetWithoutAnimation):
993         (WebCore::ScrollAnimatorNone::animationTimerFired):
994         * platform/ScrollableArea.cpp:
995         (WebCore::ScrollableArea::scrollPositionChanged):
996
997         Add contentAreaScrolledInDirection: to the NSScrollerImpDetails.
998         * platform/mac/NSScrollerImpDetails.h:
999
1000         New member variable m_contentAreaScrolledTimerScrollDelta stores the current 
1001         scroll delta while we are waiting for m_sendContentAreaScrolledTimer to fire.
1002         * platform/mac/ScrollAnimatorMac.h:
1003
1004         We need this so that we can call just contentAreaScrolled if 
1005         contentAreaScrolledInDirection: is not available.
1006         * platform/mac/ScrollAnimatorMac.mm:
1007         (supportsContentAreaScrolledInDirection):
1008
1009         Pass along the delta.
1010         (WebCore::ScrollAnimatorMac::immediateScrollTo):
1011         (WebCore::ScrollAnimatorMac::notifyPositionChanged):
1012         (WebCore::ScrollAnimatorMac::mayBeginScrollGesture):
1013         (WebCore::ScrollAnimatorMac::notifyContentAreaScrolled):
1014         (WebCore::ScrollAnimatorMac::immediateScrollBy):
1015         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledSoon):
1016
1017         If contentAreaScrolledInDirection: is available, call it with the delta, and then 
1018         reset our delta. Otherwise, still call contentAreaScrolled.
1019         (WebCore::ScrollAnimatorMac::sendContentAreaScrolledTimerFired):
1020
1021 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
1022
1023         Web Inspector: [file selector dialog] for mixed case queries, score uppercase letters only when assessing camelcase.
1024         https://bugs.webkit.org/show_bug.cgi?id=108639
1025
1026         Reviewed by Vsevolod Vlasov.
1027
1028         * inspector/front-end/FilteredItemSelectionDialog.js:
1029         (WebInspector.FilteredItemSelectionDialog.prototype._createScoringRegex):
1030
1031 2013-02-01  Robert Hogan  <robert@webkit.org>
1032
1033         Padding in a parent inline preceding an empty inline child should be counted towards width
1034         https://bugs.webkit.org/show_bug.cgi?id=108226
1035
1036         Reviewed by Levi Weintraub.
1037
1038         Add the border/padding/margin from an empty inline's parent inline if it is the first or last
1039         child of the inline. 
1040
1041         Tests: fast/inline/parent-inline-element-padding-contributes-width.html
1042                fast/inline/positioned-element-padding-contributes-width.html
1043
1044         * rendering/RenderBlockLineLayout.cpp:
1045         (WebCore::RenderBlock::LineBreaker::nextSegmentBreak):
1046
1047 2013-02-01  Tony Gentilcore  <tonyg@chromium.org>
1048
1049         Continue making XSSAuditor thread safe: Remove dependencies on m_parser from init()
1050         https://bugs.webkit.org/show_bug.cgi?id=108531
1051
1052         Reviewed by Adam Barth.
1053
1054         The threaded HTML parser will create and init() the XSSAuditor on the main thread, but filterToken() will be called on the background.
1055
1056         No new tests because no change in functionality.
1057
1058         * html/parser/HTMLDocumentParser.cpp:
1059         (WebCore::HTMLDocumentParser::pumpTokenizer):
1060         * html/parser/XSSAuditor.cpp:
1061         (WebCore::XSSAuditor::XSSAuditor):
1062         (WebCore::XSSAuditor::init):
1063         (WebCore::XSSAuditor::filterToken):
1064         * html/parser/XSSAuditor.h:
1065         (WebCore):
1066         (XSSAuditor):
1067
1068 2013-02-01  Brady Eidson  <beidson@apple.com>
1069
1070         Remove unnecessary parameter from DocumentLoader::scheduleArchiveLoad
1071         https://bugs.webkit.org/show_bug.cgi?id=108654
1072
1073         Reviewed by Alexey Proskuryakov.
1074
1075         No new tests (No behavior change.)
1076
1077         Remove the KURL parameter parameter from this method which, in practice,
1078         is always the same as the url of the ResourceRequest parameter.
1079
1080         * loader/DocumentLoader.cpp:
1081         (WebCore::DocumentLoader::scheduleArchiveLoad):
1082         * loader/DocumentLoader.h:
1083
1084         * loader/ResourceLoader.cpp:
1085         (WebCore::ResourceLoader::start):
1086
1087 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
1088
1089         Web Inspector: relax goto file matching again.
1090         https://bugs.webkit.org/show_bug.cgi?id=108346
1091
1092         Reviewed by Vsevolod Vlasov.
1093
1094         This change brings back behavior introduced in r116244.
1095
1096         * inspector/front-end/FilteredItemSelectionDialog.js:
1097         (WebInspector.FilteredItemSelectionDialog.prototype._createItemElement):
1098         (WebInspector.FilteredItemSelectionDialog.prototype._createSearchRegex):
1099         (WebInspector.FilteredItemSelectionDialog.prototype._createScoringRegex):
1100         (WebInspector.FilteredItemSelectionDialog.prototype._filterItems.compareFunction):
1101         (WebInspector.FilteredItemSelectionDialog.prototype._filterItems):
1102         (WebInspector.FilteredItemSelectionDialog.prototype._onMouseMove):
1103         (WebInspector.FilteredItemSelectionDialog.prototype.itemElement):
1104         (WebInspector.OpenResourceDialog):
1105         * inspector/front-end/utilities.js:
1106         (String.regexSpecialCharacters):
1107         (String.prototype.escapeForRegExp):
1108
1109 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
1110
1111         Web Inspector: Navigator should not create tree elements for uiSourceCodes unless neededm should populate folders on expand only.
1112         https://bugs.webkit.org/show_bug.cgi?id=108601
1113
1114         Reviewed by Pavel Feldman.
1115
1116         Tree elememnts for uiSourceCodes are not created until really needed anymore.
1117         They are now created when parent folder tree elememnts are expanded or when uiSourceCode is revealed in navigator.
1118
1119         * inspector/front-end/NavigatorView.js:
1120         (WebInspector.NavigatorView):
1121         (WebInspector.NavigatorView.prototype.addUISourceCode):
1122         (WebInspector.NavigatorView.prototype._getOrCreateScriptTreeElement):
1123         (WebInspector.NavigatorView.prototype._getScriptTreeElement):
1124         (WebInspector.NavigatorView.prototype._createScriptTreeElement):
1125         (WebInspector.NavigatorView.prototype._removeScriptTreeElement):
1126         (WebInspector.NavigatorView.prototype._updateScriptTitle):
1127         (WebInspector.NavigatorView.prototype.isScriptSourceAdded):
1128         (WebInspector.NavigatorView.prototype.revealUISourceCode):
1129         (WebInspector.NavigatorView.prototype.removeUISourceCode):
1130         (WebInspector.NavigatorView.prototype.reset):
1131         (WebInspector.NavigatorView.prototype.createFolderTreeElement):
1132         (WebInspector.NavigatorView.prototype._populateFolderTreeElement):
1133         (WebInspector.NavigatorView.prototype._addScriptTreeElement):
1134         (WebInspector.NavigatorView.prototype._adoptUISourceCode):
1135         (WebInspector.NavigatorFolderTreeElement):
1136         (WebInspector.NavigatorFolderTreeElement.prototype.onpopulate):
1137
1138 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
1139
1140         Web Inspector: TabbedEditorContainer.History performance optimization.
1141         https://bugs.webkit.org/show_bug.cgi?id=108581
1142
1143         Introduced history items indexing by url.
1144
1145         Reviewed by Pavel Feldman.
1146
1147         Covered by existing test.
1148
1149         * inspector/front-end/TabbedEditorContainer.js:
1150         (WebInspector.TabbedEditorContainer.History):
1151         (WebInspector.TabbedEditorContainer.History.prototype.index):
1152         (WebInspector.TabbedEditorContainer.History.prototype._rebuildItemIndex):
1153         (WebInspector.TabbedEditorContainer.History.prototype.update):
1154         (WebInspector.TabbedEditorContainer.History.prototype.remove):
1155
1156 2013-02-01  Geoffrey Garen  <ggaren@apple.com>
1157
1158         Added TriState to WTF and started using it in one place
1159         https://bugs.webkit.org/show_bug.cgi?id=108628
1160
1161         Reviewed by Beth Dakin.
1162
1163         * editing/EditingStyle.h:
1164         (WebCore): Moved TriState to WTF so it can be used in more places.
1165
1166 2013-02-01  Pavel Feldman  <pfeldman@chromium.org>
1167
1168         Web Inspector: Follow up to r141260: fixing renamed style.
1169         Not reviewed.
1170
1171         * inspector/front-end/FilteredItemSelectionDialog.js:
1172         (WebInspector.FilteredItemSelectionDialog.prototype._createItemElement):
1173         (WebInspector.FilteredItemSelectionDialog.prototype._onClick):
1174         (WebInspector.FilteredItemSelectionDialog.prototype._onMouseMove):
1175
1176 2013-02-01  Alexis Menard  <alexis@webkit.org>
1177
1178         Enable unprefixed CSS transitions by default.
1179         https://bugs.webkit.org/show_bug.cgi?id=108216
1180
1181         Reviewed by Dean Jackson.
1182
1183         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
1184         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
1185         guard the unprefixing work for CSS Transforms and animations. Remove the
1186         various #ifdefs and conditional generations.
1187
1188         * Configurations/FeatureDefines.xcconfig:
1189         * DerivedSources.cpp:
1190         * GNUmakefile.features.am.in:
1191         * css/CSSPropertyNames.in:
1192         * dom/EventNames.in:
1193         * dom/TransitionEvent.cpp:
1194         * dom/TransitionEvent.h:
1195         * dom/TransitionEvent.idl:
1196         * page/DOMWindow.idl:
1197         * page/animation/AnimationController.cpp:
1198         (WebCore::AnimationControllerPrivate::fireEventsAndUpdateStyle):
1199
1200 2013-02-01  Kentaro Hara  <haraken@chromium.org>
1201
1202         Unreviewed, rolling out r141548.
1203         http://trac.webkit.org/changeset/141548
1204         https://bugs.webkit.org/show_bug.cgi?id=108579
1205
1206         userscript-plugin-document.html is flaky
1207
1208         * bindings/v8/DOMDataStore.h:
1209         (WebCore::DOMDataStore::setWrapperInObject):
1210         * bindings/v8/V8GCController.cpp:
1211         (WebCore):
1212         (WebCore::gcTree):
1213         (WebCore::V8GCController::didCreateWrapperForNode):
1214         (WebCore::V8GCController::gcPrologue):
1215         (WebCore::V8GCController::minorGCPrologue):
1216         (WebCore::V8GCController::majorGCPrologue):
1217         * bindings/v8/V8GCController.h:
1218         (V8GCController):
1219
1220 2013-02-01  Andrey Adaikin  <aandrey@chromium.org>
1221
1222         Web Inspector: fix jscompiler warnings
1223         https://bugs.webkit.org/show_bug.cgi?id=108604
1224
1225         Reviewed by Pavel Feldman.
1226
1227         * inspector/front-end/ConsoleView.js:
1228         (WebInspector.ConsoleGroup.prototype.addMessage):
1229         * inspector/front-end/ContextMenu.js:
1230         (WebInspector.ContextSubMenuItem):
1231         * inspector/front-end/ImageView.js:
1232         (WebInspector.ImageView.prototype._copyImageURL):
1233         (WebInspector.ImageView.prototype._openInNewTab):
1234         * inspector/front-end/NetworkPanel.js:
1235         (WebInspector.NetworkLogView.prototype._clearBrowserCache):
1236         (WebInspector.NetworkLogView.prototype._clearBrowserCookies):
1237         * inspector/front-end/ResourcesPanel.js:
1238         (WebInspector.IDBDatabaseTreeElement.prototype._refreshIndexedDB):
1239         * inspector/front-end/ScriptsNavigator.js:
1240         (WebInspector.SnippetsNavigatorView.prototype._handleEvaluateSnippet):
1241         (WebInspector.SnippetsNavigatorView.prototype._handleRenameSnippet):
1242         (WebInspector.SnippetsNavigatorView.prototype._handleRemoveSnippet):
1243         (WebInspector.SnippetsNavigatorView.prototype._handleCreateSnippet):
1244         * inspector/front-end/Toolbar.js:
1245         (WebInspector.Toolbar.prototype._isDockedToBottom):
1246
1247 2013-02-01  Jae Hyun Park  <jae.park@company100.net>
1248
1249
1250         Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
1251         https://bugs.webkit.org/show_bug.cgi?id=108590
1252
1253         Reviewed by Noam Rosenthal.
1254
1255         Sort CoordinatedGraphics files in Target.pri in alphabetical order.
1256
1257         No new tests. No change in behavior.
1258
1259         * Target.pri:
1260
1261 2013-02-01  Ilya Tikhonovsky  <loislo@chromium.org>
1262
1263         Web Inspector: Native Memory Instrumentation: provide edge names to class members in all WebCore instrumented classes.
1264         https://bugs.webkit.org/show_bug.cgi?id=107369
1265
1266         Reviewed by Yury Semikhatsky.
1267
1268         It is almost mechanical change generated by a script.
1269         Late I'll implement name to edge name consistency check in clang plugin.
1270
1271         * Modules/webaudio/AudioContext.cpp:
1272         (WebCore::AudioContext::reportMemoryUsage):
1273         * Modules/webaudio/AudioNode.cpp:
1274         (WebCore::AudioNode::reportMemoryUsage):
1275         * bindings/js/ScriptWrappable.h:
1276         (WebCore::ScriptWrappable::reportMemoryUsage):
1277         * bindings/v8/DOMDataStore.cpp:
1278         (WebCore::DOMDataStore::reportMemoryUsage):
1279         * bindings/v8/DOMWrapperMap.h:
1280         (WebCore::DOMWrapperMap::reportMemoryUsage):
1281         * bindings/v8/V8PerIsolateData.cpp:
1282         (WebCore::V8PerIsolateData::reportMemoryUsage):
1283         * bindings/v8/V8ValueCache.cpp:
1284         (WebCore::StringCache::reportMemoryUsage):
1285         * css/CSSBorderImageSliceValue.cpp:
1286         (WebCore::CSSBorderImageSliceValue::reportDescendantMemoryUsage):
1287         * css/CSSCalculationValue.cpp:
1288         * css/CSSCanvasValue.cpp:
1289         (WebCore::CSSCanvasValue::reportDescendantMemoryUsage):
1290         * css/CSSCharsetRule.cpp:
1291         (WebCore::CSSCharsetRule::reportMemoryUsage):
1292         * css/CSSComputedStyleDeclaration.cpp:
1293         (WebCore::CSSComputedStyleDeclaration::reportMemoryUsage):
1294         * css/CSSCrossfadeValue.cpp:
1295         (WebCore::CSSCrossfadeValue::reportDescendantMemoryUsage):
1296         * css/CSSCursorImageValue.cpp:
1297         (WebCore::CSSCursorImageValue::reportDescendantMemoryUsage):
1298         * css/CSSFontFaceRule.cpp:
1299         (WebCore::CSSFontFaceRule::reportMemoryUsage):
1300         * css/CSSFontFaceSrcValue.cpp:
1301         (WebCore::CSSFontFaceSrcValue::reportDescendantMemoryUsage):
1302         * css/CSSFunctionValue.cpp:
1303         (WebCore::CSSFunctionValue::reportDescendantMemoryUsage):
1304         * css/CSSGradientValue.cpp:
1305         (WebCore::CSSGradientColorStop::reportMemoryUsage):
1306         (WebCore::CSSGradientValue::reportBaseClassMemoryUsage):
1307         (WebCore::CSSLinearGradientValue::reportDescendantMemoryUsage):
1308         (WebCore::CSSRadialGradientValue::reportDescendantMemoryUsage):
1309         * css/CSSGroupingRule.cpp:
1310         (WebCore::CSSGroupingRule::reportMemoryUsage):
1311         * css/CSSImageGeneratorValue.cpp:
1312         (WebCore::CSSImageGeneratorValue::reportBaseClassMemoryUsage):
1313         * css/CSSImageSetValue.cpp:
1314         (WebCore::CSSImageSetValue::reportDescendantMemoryUsage):
1315         (WebCore::CSSImageSetValue::ImageWithScale::reportMemoryUsage):
1316         * css/CSSImageValue.cpp:
1317         (WebCore::CSSImageValue::reportDescendantMemoryUsage):
1318         * css/CSSImportRule.cpp:
1319         (WebCore::CSSImportRule::reportMemoryUsage):
1320         * css/CSSMediaRule.cpp:
1321         (WebCore::CSSMediaRule::reportMemoryUsage):
1322         * css/CSSPageRule.cpp:
1323         (WebCore::CSSPageRule::reportMemoryUsage):
1324         * css/CSSPrimitiveValue.cpp:
1325         (WebCore::CSSPrimitiveValue::reportDescendantMemoryUsage):
1326         * css/CSSProperty.cpp:
1327         (WebCore::CSSProperty::reportMemoryUsage):
1328         * css/CSSReflectValue.cpp:
1329         (WebCore::CSSReflectValue::reportDescendantMemoryUsage):
1330         * css/CSSRule.cpp:
1331         (WebCore::CSSRule::reportMemoryUsage):
1332         * css/CSSRuleList.cpp:
1333         (WebCore::StaticCSSRuleList::reportMemoryUsage):
1334         * css/CSSRuleList.h:
1335         * css/CSSSelectorList.cpp:
1336         (WebCore::CSSSelectorList::reportMemoryUsage):
1337         * css/CSSStyleRule.cpp:
1338         (WebCore::CSSStyleRule::reportMemoryUsage):
1339         * css/CSSStyleSheet.cpp:
1340         (WebCore::CSSStyleSheet::reportMemoryUsage):
1341         * css/CSSValue.cpp:
1342         (WebCore::TextCloneCSSValue::reportDescendantMemoryUsage):
1343         * css/CSSValueList.cpp:
1344         (WebCore::CSSValueList::reportDescendantMemoryUsage):
1345         * css/CSSVariableValue.h:
1346         (WebCore::CSSVariableValue::reportDescendantMemoryUsage):
1347         * css/FontFeatureValue.cpp:
1348         (WebCore::FontFeatureValue::reportDescendantMemoryUsage):
1349         * css/FontValue.cpp:
1350         (WebCore::FontValue::reportDescendantMemoryUsage):
1351         * css/MediaList.cpp:
1352         (WebCore::MediaQuerySet::reportMemoryUsage):
1353         (WebCore::MediaList::reportMemoryUsage):
1354         * css/MediaQuery.cpp:
1355         (WebCore::MediaQuery::reportMemoryUsage):
1356         * css/MediaQueryExp.cpp:
1357         (WebCore::MediaQueryExp::reportMemoryUsage):
1358         * css/PropertySetCSSStyleDeclaration.cpp:
1359         (WebCore::PropertySetCSSStyleDeclaration::reportMemoryUsage):
1360         (WebCore::StyleRuleCSSStyleDeclaration::reportMemoryUsage):
1361         (WebCore::InlineCSSStyleDeclaration::reportMemoryUsage):
1362         * css/RuleFeature.cpp:
1363         (WebCore::RuleFeatureSet::reportMemoryUsage):
1364         * css/RuleSet.cpp:
1365         (WebCore::RuleData::reportMemoryUsage):
1366         (WebCore::RuleSet::reportMemoryUsage):
1367         (WebCore::RuleSet::RuleSetSelectorPair::reportMemoryUsage):
1368         * css/ShadowValue.cpp:
1369         (WebCore::ShadowValue::reportDescendantMemoryUsage):
1370         * css/StylePropertySet.cpp:
1371         (WebCore::StylePropertySet::reportMemoryUsage):
1372         * css/StyleResolver.cpp:
1373         (WebCore::StyleResolver::MatchedProperties::reportMemoryUsage):
1374         (WebCore::StyleResolver::MatchedPropertiesCacheItem::reportMemoryUsage):
1375         (WebCore::MediaQueryResult::reportMemoryUsage):
1376         (WebCore::StyleResolver::reportMemoryUsage):
1377         * css/StyleRule.cpp:
1378         (WebCore::StyleRule::reportDescendantMemoryUsage):
1379         (WebCore::StyleRulePage::reportDescendantMemoryUsage):
1380         (WebCore::StyleRuleFontFace::reportDescendantMemoryUsage):
1381         (WebCore::StyleRuleGroup::reportDescendantMemoryUsage):
1382         (WebCore::StyleRuleMedia::reportDescendantMemoryUsage):
1383         (WebCore::StyleRuleRegion::reportDescendantMemoryUsage):
1384         (WebCore::StyleRuleViewport::reportDescendantMemoryUsage):
1385         * css/StyleRuleImport.cpp:
1386         (WebCore::StyleRuleImport::reportDescendantMemoryUsage):
1387         * css/StyleScopeResolver.cpp:
1388         (WebCore::StyleScopeResolver::reportMemoryUsage):
1389         * css/StyleSheetContents.cpp:
1390         (WebCore::StyleSheetContents::reportMemoryUsage):
1391         * css/WebKitCSSKeyframeRule.cpp:
1392         (WebCore::StyleKeyframe::reportMemoryUsage):
1393         (WebCore::WebKitCSSKeyframeRule::reportMemoryUsage):
1394         * css/WebKitCSSKeyframesRule.cpp:
1395         (WebCore::StyleRuleKeyframes::reportDescendantMemoryUsage):
1396         (WebCore::WebKitCSSKeyframesRule::reportMemoryUsage):
1397         * css/WebKitCSSSVGDocumentValue.cpp:
1398         (WebCore::WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage):
1399         * css/WebKitCSSShaderValue.cpp:
1400         (WebCore::WebKitCSSShaderValue::reportDescendantMemoryUsage):
1401         * css/WebKitCSSViewportRule.cpp:
1402         (WebCore::WebKitCSSViewportRule::reportMemoryUsage):
1403         * dom/Attribute.h:
1404         (WebCore::Attribute::reportMemoryUsage):
1405         * dom/CharacterData.cpp:
1406         (WebCore::CharacterData::reportMemoryUsage):
1407         * dom/ContainerNode.cpp:
1408         (WebCore::ContainerNode::reportMemoryUsage):
1409         * dom/ContainerNode.h:
1410         (ContainerNode):
1411         * dom/Document.cpp:
1412         (WebCore::Document::reportMemoryUsage):
1413         * dom/DocumentEventQueue.cpp:
1414         (WebCore::DocumentEventQueue::reportMemoryUsage):
1415         * dom/DocumentOrderedMap.cpp:
1416         (WebCore::DocumentOrderedMap::reportMemoryUsage):
1417         * dom/DocumentStyleSheetCollection.cpp:
1418         (WebCore::DocumentStyleSheetCollection::reportMemoryUsage):
1419         * dom/Element.cpp:
1420         (WebCore::Element::reportMemoryUsage):
1421         * dom/ElementAttributeData.cpp:
1422         (WebCore::ElementAttributeData::reportMemoryUsage):
1423         * dom/ElementRareData.cpp:
1424         (WebCore::ElementRareData::reportMemoryUsage):
1425         * dom/ElementShadow.cpp:
1426         (WebCore::ElementShadow::reportMemoryUsage):
1427         * dom/Event.cpp:
1428         (WebCore::Event::reportMemoryUsage):
1429         * dom/LiveNodeList.cpp:
1430         (WebCore::LiveNodeListBase::reportMemoryUsage):
1431         * dom/Node.cpp:
1432         (WebCore::Node::reportMemoryUsage):
1433         * dom/NodeRareData.cpp:
1434         (WebCore::NodeListsNodeData::reportMemoryUsage):
1435         (WebCore::NodeRareData::reportMemoryUsage):
1436         * dom/QualifiedName.cpp:
1437         (WebCore::QualifiedName::reportMemoryUsage):
1438         (WebCore::QualifiedName::QualifiedNameImpl::reportMemoryUsage):
1439         * dom/ScriptExecutionContext.cpp:
1440         (WebCore::ScriptExecutionContext::reportMemoryUsage):
1441         * dom/SecurityContext.cpp:
1442         (WebCore::SecurityContext::reportMemoryUsage):
1443         * dom/ShadowRoot.cpp:
1444         (WebCore::ShadowRoot::reportMemoryUsage):
1445         * dom/TreeScope.cpp:
1446         (WebCore::TreeScope::reportMemoryUsage):
1447         * html/HTMLCanvasElement.cpp:
1448         (WebCore::HTMLCanvasElement::reportMemoryUsage):
1449         * html/HTMLFormControlElement.cpp:
1450         (WebCore::HTMLFormControlElement::reportMemoryUsage):
1451         * html/HTMLImageElement.cpp:
1452         (WebCore::HTMLImageElement::reportMemoryUsage):
1453         * html/HTMLInputElement.cpp:
1454         (WebCore::HTMLInputElement::reportMemoryUsage):
1455         * html/HTMLMediaElement.cpp:
1456         (WebCore::HTMLMediaElement::reportMemoryUsage):
1457         * html/HTMLTextFormControlElement.cpp:
1458         (WebCore::HTMLTextFormControlElement::reportMemoryUsage):
1459         * inspector/HeapGraphSerializer.cpp:
1460         (WebCore::HeapGraphSerializer::HeapGraphSerializer):
1461         (WebCore::HeapGraphSerializer::reportNode):
1462         (WebCore::HeapGraphSerializer::reportMemoryUsage):
1463         * inspector/HeapGraphSerializer.h:
1464         (HeapGraphSerializer):
1465         * inspector/InspectorBaseAgent.cpp:
1466         (WebCore::InspectorBaseAgentInterface::reportMemoryUsage):
1467         * inspector/InspectorController.cpp:
1468         (WebCore::InspectorController::reportMemoryUsage):
1469         * inspector/InspectorDOMStorageAgent.cpp:
1470         (WebCore::InspectorDOMStorageAgent::reportMemoryUsage):
1471         * inspector/InspectorDOMStorageResource.cpp:
1472         (WebCore::InspectorDOMStorageResource::reportMemoryUsage):
1473         * inspector/InspectorDebuggerAgent.cpp:
1474         (WebCore::InspectorDebuggerAgent::reportMemoryUsage):
1475         (WebCore::ScriptDebugListener::Script::reportMemoryUsage):
1476         * inspector/InspectorMemoryAgent.cpp:
1477         (WebCore::InspectorMemoryAgent::reportMemoryUsage):
1478         * inspector/InspectorOverlay.cpp:
1479         (WebCore::InspectorOverlay::reportMemoryUsage):
1480         * inspector/InspectorProfilerAgent.cpp:
1481         (WebCore::InspectorProfilerAgent::reportMemoryUsage):
1482         * inspector/InspectorResourceAgent.cpp:
1483         (WebCore::InspectorResourceAgent::reportMemoryUsage):
1484         * inspector/MemoryInstrumentationImpl.cpp:
1485         (WebCore::MemoryInstrumentationClientImpl::reportMemoryUsage):
1486         (WebCore::MemoryInstrumentationImpl::reportMemoryUsage):
1487         * inspector/NetworkResourcesData.cpp:
1488         (WebCore::XHRReplayData::reportMemoryUsage):
1489         (WebCore::NetworkResourcesData::ResourceData::reportMemoryUsage):
1490         (WebCore::NetworkResourcesData::reportMemoryUsage):
1491         * loader/CachedMetadata.cpp:
1492         (WebCore::CachedMetadata::reportMemoryUsage):
1493         * loader/DocumentLoader.cpp:
1494         (WebCore::DocumentLoader::reportMemoryUsage):
1495         * loader/FrameLoader.cpp:
1496         (WebCore::FrameLoader::reportMemoryUsage):
1497         * loader/MainResourceLoader.cpp:
1498         (WebCore::MainResourceLoader::reportMemoryUsage):
1499         * loader/Prerenderer.cpp:
1500         (WebCore::Prerenderer::reportMemoryUsage):
1501         * loader/ResourceBuffer.cpp:
1502         (WebCore::ResourceBuffer::reportMemoryUsage):
1503         * loader/ResourceLoader.cpp:
1504         (WebCore::ResourceLoader::reportMemoryUsage):
1505         * loader/SubresourceLoader.cpp:
1506         (WebCore::SubresourceLoader::reportMemoryUsage):
1507         * loader/SubstituteData.cpp:
1508         (WebCore::SubstituteData::reportMemoryUsage):
1509         * loader/cache/CachedCSSStyleSheet.cpp:
1510         (WebCore::CachedCSSStyleSheet::reportMemoryUsage):
1511         * loader/cache/CachedFont.cpp:
1512         (WebCore::CachedFont::reportMemoryUsage):
1513         * loader/cache/CachedImage.cpp:
1514         (WebCore::CachedImage::reportMemoryUsage):
1515         * loader/cache/CachedResource.cpp:
1516         (WebCore::CachedResource::reportMemoryUsage):
1517         * loader/cache/CachedResourceHandle.cpp:
1518         (WebCore::CachedResourceHandleBase::reportMemoryUsage):
1519         * loader/cache/CachedResourceLoader.cpp:
1520         (WebCore::CachedResourceLoader::reportMemoryUsage):
1521         * loader/cache/CachedSVGDocument.cpp:
1522         (WebCore::CachedSVGDocument::reportMemoryUsage):
1523         * loader/cache/CachedScript.cpp:
1524         (WebCore::CachedScript::reportMemoryUsage):
1525         * loader/cache/CachedShader.cpp:
1526         (WebCore::CachedShader::reportMemoryUsage):
1527         * loader/cache/CachedXSLStyleSheet.cpp:
1528         (WebCore::CachedXSLStyleSheet::reportMemoryUsage):
1529         * loader/cache/MemoryCache.cpp:
1530         (WebCore::MemoryCache::reportMemoryUsage):
1531         * page/DOMTimer.cpp:
1532         (WebCore::DOMTimer::reportMemoryUsage):
1533         * page/Frame.cpp:
1534         (WebCore::Frame::reportMemoryUsage):
1535         * page/Page.cpp:
1536         (WebCore::Page::reportMemoryUsage):
1537         * platform/KURL.cpp:
1538         (WebCore::KURL::reportMemoryUsage):
1539         * platform/KURLGoogle.cpp:
1540         (WebCore::KURLGooglePrivate::reportMemoryUsage):
1541         * platform/KURLWTFURLImpl.h:
1542         (WebCore::KURLWTFURLImpl::reportMemoryUsage):
1543         * platform/ScrollableArea.cpp:
1544         (WebCore::ScrollableArea::reportMemoryUsage):
1545         * platform/SharedBuffer.cpp:
1546         (WebCore::SharedBuffer::reportMemoryUsage):
1547         * platform/audio/AudioArray.h:
1548         (WebCore::AudioArray::reportMemoryUsage):
1549         * platform/audio/FFTFrame.cpp:
1550         (WebCore::FFTFrame::reportMemoryUsage):
1551         * platform/audio/HRTFDatabase.cpp:
1552         (WebCore::HRTFDatabase::reportMemoryUsage):
1553         * platform/audio/HRTFDatabaseLoader.cpp:
1554         (WebCore::HRTFDatabaseLoader::reportMemoryUsage):
1555         * platform/audio/HRTFElevation.cpp:
1556         (WebCore::HRTFElevation::reportMemoryUsage):
1557         * platform/audio/HRTFKernel.cpp:
1558         (WebCore::HRTFKernel::reportMemoryUsage):
1559         * platform/audio/ffmpeg/FFTFrameFFMPEG.cpp:
1560         (reportMemoryUsage):
1561         * platform/graphics/BitmapImage.cpp:
1562         (WebCore::BitmapImage::reportMemoryUsage):
1563         (WebCore::FrameData::reportMemoryUsage):
1564         * platform/graphics/CrossfadeGeneratedImage.cpp:
1565         (WebCore::CrossfadeGeneratedImage::reportMemoryUsage):
1566         * platform/graphics/GeneratorGeneratedImage.cpp:
1567         (WebCore::GeneratorGeneratedImage::reportMemoryUsage):
1568         * platform/graphics/GraphicsLayer.cpp:
1569         (WebCore::GraphicsLayer::reportMemoryUsage):
1570         * platform/graphics/ImageBuffer.cpp:
1571         (WebCore::ImageBuffer::reportMemoryUsage):
1572         * platform/graphics/ImageSource.cpp:
1573         (WebCore::ImageSource::reportMemoryUsage):
1574         * platform/graphics/chromium/GraphicsLayerChromium.cpp:
1575         (WebCore::GraphicsLayerChromium::reportMemoryUsage):
1576         * platform/graphics/skia/ImageBufferSkia.cpp:
1577         (WebCore::ImageBufferData::reportMemoryUsage):
1578         * platform/graphics/skia/MemoryInstrumentationSkia.cpp:
1579         (reportMemoryUsage):
1580         * platform/graphics/skia/NativeImageSkia.cpp:
1581         (WebCore::NativeImageSkia::reportMemoryUsage):
1582         * platform/image-decoders/ImageDecoder.cpp:
1583         (WebCore::ImageFrame::reportMemoryUsage):
1584         (WebCore):
1585         (WebCore::ImageDecoder::reportMemoryUsage):
1586         * platform/image-decoders/skia/ImageDecoderSkia.cpp:
1587         (WebCore::ImageFrame::reportMemoryUsage):
1588         * platform/network/FormData.cpp:
1589         (WebCore::FormData::reportMemoryUsage):
1590         (WebCore::FormDataElement::reportMemoryUsage):
1591         * platform/network/ResourceRequestBase.cpp:
1592         (WebCore::ResourceRequestBase::reportMemoryUsageBase):
1593         * platform/network/ResourceResponseBase.cpp:
1594         (WebCore::ResourceResponseBase::reportMemoryUsage):
1595         * platform/network/chromium/ResourceRequest.cpp:
1596         (WebCore::ResourceRequest::reportMemoryUsage):
1597         * rendering/InlineBox.cpp:
1598         (WebCore::InlineBox::reportMemoryUsage):
1599         * rendering/InlineFlowBox.cpp:
1600         (WebCore::InlineFlowBox::reportMemoryUsage):
1601         * rendering/InlineTextBox.cpp:
1602         (WebCore::InlineTextBox::reportMemoryUsage):
1603         * rendering/RenderBlock.cpp:
1604         (WebCore::RenderBlock::reportMemoryUsage):
1605         * rendering/RenderBox.cpp:
1606         (WebCore::RenderBox::reportMemoryUsage):
1607         * rendering/RenderFrameSet.cpp:
1608         (WebCore::RenderFrameSet::reportMemoryUsage):
1609         (WebCore::RenderFrameSet::GridAxis::reportMemoryUsage):
1610         * rendering/RenderInline.cpp:
1611         (WebCore::RenderInline::reportMemoryUsage):
1612         * rendering/RenderLayer.cpp:
1613         (WebCore::RenderLayer::reportMemoryUsage):
1614         * rendering/RenderLayerBacking.cpp:
1615         (WebCore::RenderLayerBacking::reportMemoryUsage):
1616         * rendering/RenderLayerCompositor.cpp:
1617         (WebCore::RenderLayerCompositor::reportMemoryUsage):
1618         * rendering/RenderListMarker.cpp:
1619         (WebCore::RenderListMarker::reportMemoryUsage):
1620         * rendering/RenderObject.cpp:
1621         (WebCore::RenderObject::reportMemoryUsage):
1622         * rendering/RenderTableCol.cpp:
1623         (WebCore::RenderTableCol::reportMemoryUsage):
1624         * rendering/RenderTableRow.cpp:
1625         (WebCore::RenderTableRow::reportMemoryUsage):
1626         * rendering/RenderTableSection.cpp:
1627         (WebCore::RenderTableSection::reportMemoryUsage):
1628         (WebCore::RenderTableSection::RowStruct::reportMemoryUsage):
1629         (WebCore::RenderTableSection::CellStruct::reportMemoryUsage):
1630         * rendering/RenderText.cpp:
1631         (WebCore::RenderText::reportMemoryUsage):
1632         * rendering/RenderView.cpp:
1633         (WebCore::RenderView::reportMemoryUsage):
1634         * rendering/style/DataRef.h:
1635         (WebCore::DataRef::reportMemoryUsage):
1636         * rendering/style/RenderStyle.cpp:
1637         (WebCore::RenderStyle::reportMemoryUsage):
1638         * rendering/style/StyleRareInheritedData.cpp:
1639         (WebCore::StyleRareInheritedData::reportMemoryUsage):
1640         * rendering/style/StyleRareNonInheritedData.cpp:
1641         (WebCore::StyleRareNonInheritedData::reportMemoryUsage):
1642         * svg/SVGPaint.cpp:
1643         (WebCore::SVGPaint::reportDescendantMemoryUsage):
1644         * svg/graphics/SVGImage.cpp:
1645         (WebCore::SVGImage::reportMemoryUsage):
1646         * xml/XMLHttpRequest.cpp:
1647         (WebCore::XMLHttpRequest::reportMemoryUsage):
1648
1649 2013-02-01  Philippe Normand  <pnormand@igalia.com>
1650
1651         [GTK][GStreamer] FullscreenVideoControllerGtk implementation
1652         https://bugs.webkit.org/show_bug.cgi?id=107398
1653
1654         Reviewed by Gustavo Noronha Silva.
1655
1656         NATIVE_FULLSCREEN_VIDEO support for the GTK port. The previous
1657         FullscreenVideoController implementation was refactored as a
1658         sub-class of FullscreenVideoControllerGStreamer and hooked in the
1659         MediaPlayerPrivateGStreamer backend.
1660
1661         * GNUmakefile.list.am:
1662         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1663         (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
1664         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1665         * platform/graphics/gtk/FullscreenVideoControllerGtk.cpp: Renamed from Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp.
1666         * platform/graphics/gtk/FullscreenVideoControllerGtk.h: Renamed from Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.h.
1667
1668 2013-02-01  Andrey Lushnikov  <lushnikov@chromium.org>
1669
1670         Web Inspector: fix cursor location in Source Frame
1671         https://bugs.webkit.org/show_bug.cgi?id=108592
1672
1673         Reviewed by Pavel Feldman.
1674
1675         Normalize range before computing amount of lines in
1676         _updateSourcePosition.
1677
1678         No new tests.
1679
1680         * inspector/front-end/SourceFrame.js:
1681         (WebInspector.SourceFrame.prototype._updateSourcePosition): Normalize text range.
1682         * inspector/front-end/inspector.css: Slightly bigger left padding for the text.
1683         (.source-frame-position):
1684
1685 2013-02-01  Kentaro Hara  <haraken@chromium.org>
1686
1687         Unreviewed build fix after r141553.
1688
1689         * bindings/scripts/CodeGeneratorV8.pm:
1690         (GenerateImplementation):
1691         * bindings/scripts/test/V8/V8Float64Array.cpp:
1692         (WebCore::V8Float64Array::HasInstance):
1693         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1694         (WebCore::V8TestActiveDOMObject::HasInstance):
1695         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1696         (WebCore::V8TestCustomNamedGetter::HasInstance):
1697         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1698         (WebCore::V8TestEventConstructor::HasInstance):
1699         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1700         (WebCore::V8TestEventTarget::HasInstance):
1701         * bindings/scripts/test/V8/V8TestException.cpp:
1702         (WebCore::V8TestException::HasInstance):
1703         * bindings/scripts/test/V8/V8TestInterface.cpp:
1704         (WebCore::V8TestInterface::HasInstance):
1705         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1706         (WebCore::V8TestMediaQueryListListener::HasInstance):
1707         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1708         (WebCore::V8TestNamedConstructor::HasInstance):
1709         * bindings/scripts/test/V8/V8TestNode.cpp:
1710         (WebCore::V8TestNode::HasInstance):
1711         * bindings/scripts/test/V8/V8TestObj.cpp:
1712         (WebCore::V8TestObj::HasInstance):
1713         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1714         (WebCore::V8TestOverloadedConstructors::HasInstance):
1715         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1716         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
1717
1718 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
1719
1720         Web Inspector: Sources panel navigator reveal and expand fixes.
1721         https://bugs.webkit.org/show_bug.cgi?id=108584
1722
1723         Reviewed by Pavel Feldman.
1724
1725         Navigator folders are not expanded by default anymore.
1726         Made domain folder expanded for inspected page main frame domain.
1727         UISourceCodes are now added to navigator before editor container
1728         so that they could be revealed if editor container decides to show them.
1729
1730         * inspector/front-end/NavigatorView.js:
1731         (WebInspector.BaseNavigatorTreeElement.prototype.onattach):
1732         (WebInspector.NavigatorFolderTreeElement.prototype.onattach):
1733         * inspector/front-end/ScriptsPanel.js:
1734         (WebInspector.ScriptsPanel.prototype._addUISourceCode):
1735
1736 2013-02-01  Andrey Adaikin  <aandrey@chromium.org>
1737
1738         Web Inspector: [Canvas] drop trace log in the backend when deleting profile in frontend
1739         https://bugs.webkit.org/show_bug.cgi?id=108591
1740
1741         Reviewed by Pavel Feldman.
1742
1743         Send a dropTraceLog command to the backend when deleting a profile header from the sidebar.
1744         Before we were sending the command only upon deleting an existing view of a profile, so we  would not
1745         sent the command if the view was not created or if a profile header was removed via context menu (the ondelete() method).
1746         Drive-by: fixed an odd formatting of property functions.
1747
1748         * inspector/front-end/CanvasProfileView.js:
1749         (WebInspector.CanvasProfileView.prototype.dispose):
1750         (WebInspector.CanvasProfileHeader.prototype.reset):
1751         * inspector/front-end/ProfilesPanel.js:
1752         (WebInspector.ProfileHeader.prototype.reset):
1753         (WebInspector.ProfileHeader.prototype.load):
1754         (WebInspector.ProfileHeader.prototype.canSaveToFile):
1755         (WebInspector.ProfileHeader.prototype.saveToFile):
1756         (WebInspector.ProfileHeader.prototype.loadFromFile):
1757         (WebInspector.ProfileHeader.prototype.fromFile):
1758         (WebInspector.ProfilesPanel):
1759         (WebInspector.ProfilesPanel.prototype._reset):
1760         (WebInspector.ProfilesPanel.prototype._removeProfileHeader):
1761
1762 2013-02-01  Chris Fleizach  <cfleizach@apple.com>
1763
1764         AX: when aria-activedescendant is used with a ComboBox role, focus should not be changed
1765         https://bugs.webkit.org/show_bug.cgi?id=108596
1766
1767         Reviewed by Ryosuke Niwa.
1768
1769         Normally, an aria-activedescendant change causes a focus change to be triggered.
1770         However, when used in conjunction with a combo box, this causes problems for screen readers.
1771         Namely, the user expects focus to remain in the text field so that the user can keep typing. 
1772         If focus moves to an item in the combobox list, it is not possible to keep typing.
1773
1774         The solution is to not trigger a focus change in this case and instead use a selected children change notification.
1775
1776         Test: platform/mac/accessibility/combobox-activedescendant-notifications.html
1777
1778         * accessibility/AccessibilityRenderObject.cpp:
1779         (WebCore::AccessibilityRenderObject::shouldNotifyActiveDescendant):
1780         (WebCore::AccessibilityRenderObject::shouldFocusActiveDescendant):
1781         (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
1782         * accessibility/AccessibilityRenderObject.h:
1783         (AccessibilityRenderObject):
1784         * accessibility/mac/AXObjectCacheMac.mm:
1785         (WebCore::AXObjectCache::postPlatformNotification):
1786
1787 2013-02-01  Chris Fleizach  <cfleizach@apple.com>
1788
1789         [Mac] REGRESSION(r140974): accessibility/lists.html fails on Lion=
1790         https://bugs.webkit.org/show_bug.cgi?id=108291
1791
1792         Reviewed by Ryosuke Niwa.
1793
1794         This accounts for differences in what AppKit gives for accessibility role descriptions between platforms
1795         when the subrole is not recognized, and standardizes it for WebKit.
1796
1797         Unskip a failing Lion test
1798
1799         * accessibility/mac/WebAccessibilityObjectWrapper.mm:
1800         (-[WebAccessibilityObjectWrapper roleDescription]):
1801
1802 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
1803
1804         Web Inspector: Replace localeCompare in NavigatorView with compareTo.
1805         https://bugs.webkit.org/show_bug.cgi?id=108585
1806
1807         Reviewed by Pavel Feldman.
1808
1809         Replaced String.prototype.localeCompare with String.prototype.compareTo
1810         in NavigatorView to improve performance.
1811
1812         * inspector/front-end/NavigatorView.js:
1813         (WebInspector.NavigatorTreeOutline._treeElementsCompare):
1814
1815 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
1816
1817         Web Inspector: File system pending requests list is not cleared after processing.
1818         https://bugs.webkit.org/show_bug.cgi?id=108573
1819
1820         Reviewed by Pavel Feldman.
1821
1822         * inspector/front-end/IsolatedFileSystemModel.js:
1823         (WebInspector.IsolatedFileSystemModel.prototype._processPendingFileSystemRequests):
1824
1825 2013-02-01  Tom Sepez  <tsepez@chromium.org>
1826
1827         Dubious cast from HTMLCollection to HTMLAllCollection
1828         https://bugs.webkit.org/show_bug.cgi?id=108538
1829
1830         Reviewed by Adam Barth.
1831
1832         Patch is tested by enabling V8 binding integrity on HTMLAllCollection and
1833         running the existing tests without introducing new crashes.
1834
1835         * dom/Document.cpp:
1836         (WebCore::Document::all):
1837         Pass correct type to template.
1838         
1839         * html/HTMLAllCollection.cpp:
1840         (WebCore::HTMLAllCollection::create):
1841         (WebCore::HTMLAllCollection::HTMLAllCollection):
1842         * html/HTMLAllCollection.h:
1843         (HTMLAllCollection):
1844         Make create() method arguments compatible with template above.
1845
1846         * html/HTMLAllCollection.idl:
1847         Enable binding integrity.
1848
1849 2013-02-01  Ken Kania  <kkania@chromium.org>
1850
1851         Web Inspector: Add support for handling modal dialogs
1852         https://bugs.webkit.org/show_bug.cgi?id=107883
1853
1854         Reviewed by Pavel Feldman.
1855
1856         Introduce support for being notified when a JavaScript modal dialog
1857         is opening and closing, as well as a new command for accepting or
1858         dismissing the dialog.
1859
1860         Test: inspector-protocol/page/willRunJavaScriptDialog.html
1861
1862         * inspector/Inspector.json:
1863         * inspector/InspectorClient.h:
1864         (WebCore::InspectorClient::handleJavaScriptDialog):
1865         (InspectorClient):
1866         * inspector/InspectorInstrumentation.cpp:
1867         (WebCore):
1868         (WebCore::InspectorInstrumentation::willRunJavaScriptDialogImpl):
1869         (WebCore::InspectorInstrumentation::didRunJavaScriptDialogImpl):
1870         * inspector/InspectorInstrumentation.h:
1871         (InspectorInstrumentation):
1872         (WebCore::InspectorInstrumentation::willRunJavaScriptDialog):
1873         (WebCore):
1874         (WebCore::InspectorInstrumentation::didRunJavaScriptDialog):
1875         * inspector/InspectorPageAgent.cpp:
1876         (WebCore::InspectorPageAgent::willRunJavaScriptDialog):
1877         (WebCore):
1878         (WebCore::InspectorPageAgent::didRunJavaScriptDialog):
1879         (WebCore::InspectorPageAgent::handleJavaScriptDialog):
1880         * inspector/InspectorPageAgent.h:
1881         * inspector/front-end/ResourceTreeModel.js:
1882         (WebInspector.PageDispatcher.prototype.frameStartedLoading):
1883         (WebInspector.PageDispatcher.prototype.frameStoppedLoading):
1884         (WebInspector.PageDispatcher.prototype.frameScheduledNavigation):
1885         (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation):
1886         (WebInspector.PageDispatcher.prototype.javascriptDialogOpening):
1887         (WebInspector.PageDispatcher.prototype.javascriptDialogClosed):
1888         * page/Chrome.cpp:
1889         (WebCore::Chrome::runBeforeUnloadConfirmPanel):
1890         (WebCore::Chrome::runJavaScriptAlert):
1891         (WebCore::Chrome::runJavaScriptConfirm):
1892         (WebCore::Chrome::runJavaScriptPrompt):
1893
1894 2013-02-01  Dan Alcantara  <dfalcantara@chromium.org>
1895
1896         Touch disambiguation blacklist is not being queried properly
1897         https://bugs.webkit.org/show_bug.cgi?id=108222
1898
1899         Reviewed by Adam Barth.
1900
1901         TEST=WebFrameTest::DisambiguationPopupBlacklist
1902
1903         Fix the blacklist so that we check it for the right nodes.
1904         Add a chromium test to check that the blacklist is being built and used
1905         correctly.  Also update the other DisambiguationPopup tests to
1906         use the new page scale method.
1907
1908         * page/TouchDisambiguation.cpp:
1909         (WebCore::findGoodTouchTargets):
1910
1911 2013-01-31  Kentaro Hara  <haraken@chromium.org>
1912
1913         [V8] Add a temporary optional Isolate parameter to HasInstance()
1914         https://bugs.webkit.org/show_bug.cgi?id=108567
1915
1916         Reviewed by Adam Barth.
1917
1918         The optional Isolate parameter will be removed once all call sites have an Isolate.
1919         It will require several patches.
1920
1921         No tests. No change in behavior.
1922
1923         * bindings/scripts/CodeGeneratorV8.pm:
1924         (GenerateHeader):
1925         (GenerateNormalAttrSetter):
1926         (GenerateParametersCheckExpression):
1927         (GenerateParametersCheck):
1928         (GenerateImplementation):
1929         * bindings/scripts/test/V8/V8Float64Array.cpp:
1930         (WebCore::V8Float64Array::HasInstance):
1931         * bindings/scripts/test/V8/V8Float64Array.h:
1932         (V8Float64Array):
1933         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1934         (WebCore::V8TestActiveDOMObject::HasInstance):
1935         * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
1936         (V8TestActiveDOMObject):
1937         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1938         (WebCore::V8TestCustomNamedGetter::HasInstance):
1939         * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
1940         (V8TestCustomNamedGetter):
1941         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1942         (WebCore::V8TestEventConstructor::HasInstance):
1943         * bindings/scripts/test/V8/V8TestEventConstructor.h:
1944         (V8TestEventConstructor):
1945         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1946         (WebCore::V8TestEventTarget::HasInstance):
1947         * bindings/scripts/test/V8/V8TestEventTarget.h:
1948         (V8TestEventTarget):
1949         * bindings/scripts/test/V8/V8TestException.cpp:
1950         (WebCore::V8TestException::HasInstance):
1951         * bindings/scripts/test/V8/V8TestException.h:
1952         (V8TestException):
1953         * bindings/scripts/test/V8/V8TestInterface.cpp:
1954         (WebCore::V8TestInterface::HasInstance):
1955         * bindings/scripts/test/V8/V8TestInterface.h:
1956         (V8TestInterface):
1957         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1958         (WebCore::V8TestMediaQueryListListener::HasInstance):
1959         * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
1960         (V8TestMediaQueryListListener):
1961         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1962         (WebCore::V8TestNamedConstructor::HasInstance):
1963         * bindings/scripts/test/V8/V8TestNamedConstructor.h:
1964         (V8TestNamedConstructor):
1965         * bindings/scripts/test/V8/V8TestNode.cpp:
1966         (WebCore::V8TestNode::HasInstance):
1967         * bindings/scripts/test/V8/V8TestNode.h:
1968         (V8TestNode):
1969         * bindings/scripts/test/V8/V8TestObj.cpp:
1970         (WebCore::TestObjV8Internal::overloadedMethodCallback):
1971         (WebCore::TestObjV8Internal::variadicNodeMethodCallback):
1972         (WebCore::V8TestObj::HasInstance):
1973         * bindings/scripts/test/V8/V8TestObj.h:
1974         (V8TestObj):
1975         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1976         (WebCore::V8TestOverloadedConstructors::constructorCallback):
1977         (WebCore::V8TestOverloadedConstructors::HasInstance):
1978         * bindings/scripts/test/V8/V8TestOverloadedConstructors.h:
1979         (V8TestOverloadedConstructors):
1980         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1981         (WebCore::V8TestSerializedScriptValueInterface::HasInstance):
1982         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
1983         (V8TestSerializedScriptValueInterface):
1984
1985 2013-02-01  Nils Barth  <nbarth@google.com>
1986
1987         [CPP,GObject,ObjC] Add 'static' skip to CodeGenerator{CPP,GObject,ObjC}.pm
1988         https://bugs.webkit.org/show_bug.cgi?id=108578
1989
1990         Reviewed by Kentaro Hara.
1991
1992         Since CPP/GObject/ObjC code generators (CodeGenerator{CPP,GObject,ObjC}.pm)
1993         do not support static attributes, add test to skip these.
1994         This lets us remove #if macro from static in test files and not need
1995         these in future.
1996
1997         Test: bindings/scripts/test/TestObj.idl (run-bindings-test)
1998         Test: bindings/scripts/test/TestSupplemental.idl (run-bindings-test)
1999
2000         * bindings/scripts/CodeGeneratorCPP.pm:
2001         (SkipAttribute):
2002         * bindings/scripts/CodeGeneratorGObject.pm:
2003         (SkipAttribute):
2004         * bindings/scripts/CodeGeneratorObjC.pm:
2005         (SkipAttribute):
2006         * bindings/scripts/test/TestObj.idl:
2007         * bindings/scripts/test/TestSupplemental.idl:
2008
2009 2013-02-01  Kentaro Hara  <haraken@chromium.org>
2010
2011         [V8] Remove V8GCController::m_edenNodes
2012         https://bugs.webkit.org/show_bug.cgi?id=108579
2013
2014         Reviewed by Adam Barth.
2015
2016         Currently V8GCController::m_edenNodes stores a list of nodes whose
2017         wrappers have been created since the latest GC. The reason why we
2018         needed m_edenNodes is that there was no way to know a list of wrappers
2019         in the new space of V8. By using m_edenNodes, we had been approximating
2020         'wrappers in the new space' by 'wrappers that have been created since
2021         the latest GC'.
2022
2023         Now V8 provides VisitHandlesForPartialDependence(), with which WebKit
2024         can know a list of wrappers in the new space. By using the API, we can
2025         remove V8GCController::m_edenNodes. The benefit is that (1) we no longer
2026         need to keep m_edenNodes and that (2) it enables more precise minor
2027         DOM GC (Remember that m_edenNodes was just an approximation).
2028
2029         Performance benchmark: https://bugs.webkit.org/attachment.cgi?id=185940
2030         The benchmark runs 300 iterations, each of which creates 100000 elements.
2031         The benchmark measures average, min, median, max and stdev of execution times
2032         of the 300 iterations. This will tell us the worst-case overhead of this change.
2033
2034         Before:
2035           mean=59.91ms, min=39ms, median=42ms, max=258ms, stdev=47.48ms
2036
2037         After:
2038           mean=58.75ms, min=35ms, median=41ms, max=250ms, stdev=47.32ms
2039
2040         As shown above, I couldn't observe any performance regression.
2041
2042         No tests. No change in behavior.
2043
2044         * bindings/v8/DOMDataStore.h:
2045         (WebCore::DOMDataStore::setWrapperInObject):
2046         * bindings/v8/V8GCController.cpp:
2047         (WebCore::gcTree):
2048         (WebCore):
2049         (MinorGCWrapperVisitor):
2050         (WebCore::MinorGCWrapperVisitor::notifyFinished):
2051         (WebCore::V8GCController::gcPrologue):
2052         (WebCore::V8GCController::minorGCPrologue):
2053         (WebCore::V8GCController::majorGCPrologue):
2054         * bindings/v8/V8GCController.h:
2055         (V8GCController):
2056
2057 2013-02-01  Vsevolod Vlasov  <vsevik@chromium.org>
2058
2059         Web Inspector: Use String.prototype.startsWith instead of String.prototype.indexOf when possible
2060         https://bugs.webkit.org/show_bug.cgi?id=108575
2061
2062         Reviewed by Yury Semikhatsky.
2063
2064         * inspector/front-end/FileMapping.js:
2065         (WebInspector.FileMapping.prototype._entryMatchesURL):
2066         (WebInspector.FileMapping.prototype.urlForURI):
2067         * inspector/front-end/FileSystemMapping.js:
2068         (get WebInspector.FileSystemMappingImpl.prototype.fileForURI):
2069         (get WebInspector.FileSystemMappingImpl.prototype.uriForPath):
2070
2071 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2072
2073         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2074         https://bugs.webkit.org/show_bug.cgi?id=107737
2075
2076         Reviewed by Ryosuke Niwa.
2077
2078         Chromium has a bug where the IME composition did not get cancelled on JavaScript changes
2079         to the focused editing field. Most of other WebKit ports were already doing this check
2080         in their EditorClient::respondToChangedSelection. I took that logic and moved it to the
2081         Editor so every port and use the same code.
2082
2083         An existing test editing/input/setting-input-value-cancel-ime-composition.html covers this change.
2084         This test used to have an expectation to fail on Chromium and after this patch it will start passing.
2085
2086         * editing/Editor.cpp:
2087         (WebCore::Editor::cancelCompositionIfSelectionIsInvalid):
2088             Adding a call that can be used by any the port to cancel the composition if it's no longer valid.
2089         (WebCore):
2090         * editing/Editor.h:
2091         (Editor):
2092
2093 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
2094
2095         Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
2096         https://bugs.webkit.org/show_bug.cgi?id=108149
2097
2098         Reviewed by Noam Rosenthal.
2099
2100         This patch moves Coordinated Graphics related code to WebCore. To
2101         implement Threaded Coordinated Graphics, most of Coordianted Graphics
2102         code should be shared. Therefore, they should reside in WebCore instead of
2103         WebKit2.
2104
2105         When moving to WebCore, two renamings have been done.
2106
2107         1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
2108
2109         2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
2110         CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
2111         respectively.
2112
2113         No new tests, covered by existing tests.
2114
2115         * CMakeLists.txt:
2116         * Target.pri:
2117         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
2118         * platform/graphics/texmap/coordinated/AreaAllocator.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp.
2119         * platform/graphics/texmap/coordinated/AreaAllocator.h: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.h.
2120         * platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp: Renamed from Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp.
2121         * platform/graphics/texmap/coordinated/CoordinatedBackingStore.h: Renamed from Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h.
2122         * platform/graphics/texmap/coordinated/CoordinatedCustomFilterOperation.h: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/WebCustomFilterOperation.h.
2123         * platform/graphics/texmap/coordinated/CoordinatedCustomFilterProgram.h: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/WebCustomFilterProgram.h.
2124         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp.
2125         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h.
2126         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp: Renamed from Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp.
2127         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h: Renamed from Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeRenderer.h.
2128         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.cpp.
2129         * platform/graphics/texmap/coordinated/CoordinatedImageBacking.h: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.h.
2130         * platform/graphics/texmap/coordinated/CoordinatedLayerInfo.h: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedLayerInfo.h.
2131         * platform/graphics/texmap/coordinated/CoordinatedSurface.cpp: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedSurface.cpp.
2132         * platform/graphics/texmap/coordinated/CoordinatedSurface.h: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedSurface.h.
2133         * platform/graphics/texmap/coordinated/CoordinatedTile.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp.
2134         * platform/graphics/texmap/coordinated/CoordinatedTile.h: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.h.
2135         * platform/graphics/texmap/coordinated/SurfaceUpdateInfo.h: Renamed from Source/WebKit2/Shared/CoordinatedGraphics/SurfaceUpdateInfo.h.
2136         * platform/graphics/texmap/coordinated/UpdateAtlas.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp.
2137         * platform/graphics/texmap/coordinated/UpdateAtlas.h: Renamed from Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.h.
2138
2139 2013-01-31  Lamarque V. Souza  <Lamarque.Souza@basyskom.com>
2140
2141         [Qt] Add support for text decoration "wavy" style
2142         https://bugs.webkit.org/show_bug.cgi?id=93507
2143
2144         Reviewed by Simon Hausmann.
2145
2146         Add support for text decoration "wavy" style for Qt platform.
2147
2148         * platform/graphics/qt/GraphicsContextQt.cpp:
2149         (WebCore::toQPenStyle):
2150         Remove FIXME comments obsoleted by this patch.
2151         (WebCore::GraphicsContext::drawLine):
2152         Implement wavy style line tracer.
2153
2154 2013-01-31  Nils Barth  <nbarth@google.com>
2155
2156         [CPP,GObject,ObjC] Add 'enum' skip to CodeGenerator{CPP,GObject,ObjC}.pm
2157         https://bugs.webkit.org/show_bug.cgi?id=108565
2158
2159         Reviewed by Kentaro Hara.
2160
2161         Since legacy code generators (CodeGenerator{CPP,GObject,ObjC}.pm)
2162         do not support enumerations, add test to skip attributes of enum type.
2163         This lets us remove #if macro from enum in test file and not need
2164         these in future.
2165         Also minor associated code cleaning:
2166           auxiliary variable: $type = $attribute->signature->type.
2167
2168         Test: bindings/scripts/test/TestObj.idl (run-bindings-test)
2169
2170         * bindings/scripts/CodeGeneratorCPP.pm:
2171         (SkipAttribute):
2172         * bindings/scripts/CodeGeneratorGObject.pm:
2173         (SkipAttribute):
2174         * bindings/scripts/CodeGeneratorObjC.pm:
2175         (SkipAttribute):
2176         * bindings/scripts/test/TestObj.idl: remove #if macro
2177
2178 2013-01-31  Kent Tamura  <tkent@chromium.org>
2179
2180         Refactoring: Remove the default argument value for Node::setFocus
2181         https://bugs.webkit.org/show_bug.cgi?id=108554
2182
2183         Reviewed by Kentaro Hara.
2184
2185         There is no code to use the default argument.
2186         No new tests. Just a refactoring.
2187
2188         * dom/Node.h: Remove default argument value for setFocus.
2189         * dom/ContainerNode.h:
2190         (ContainerNode): Ditto.
2191         * html/HTMLAreaElement.h:
2192         (HTMLAreaElement): Add OVERRIDE to setFocus.
2193         * html/HTMLFrameElementBase.h:
2194         (HTMLFrameElementBase): Ditto.
2195
2196 2013-01-31  Victor Carbune  <vcarbune@chromium.org>
2197
2198         [Track] Closed Caption button shouldn't be visible if all the track resources have failed loading
2199         https://bugs.webkit.org/show_bug.cgi?id=106285
2200
2201         Reviewed by Eric Carlson.
2202
2203         Updated existing test cases.
2204
2205         * html/HTMLMediaElement.cpp:
2206         (WebCore::HTMLMediaElement::textTracksAreReady): Checked whether there are tracks not loaded
2207         when the algorithm began.
2208         (WebCore::HTMLMediaElement::textTrackReadyStateChanged): If the ready state changed to
2209         FailedToLoad the media controls should check whether there are other caption tracks
2210         and hide the button if not.
2211         (WebCore::HTMLMediaElement::didAddTrack): Added trigger to closedCaptionsTrackChanged.
2212         (WebCore::HTMLMediaElement::hasClosedCaptions): Updated check to skip tracks that
2213         failed to load.
2214         * html/shadow/MediaControls.cpp:
2215         (WebCore::MediaControls::reset): Used the newly added method.
2216         (WebCore::MediaControls::refreshClosedCaptionsButtonVisibility): Added container method for
2217         default behaviour for refreshing the visibility of the caption button.
2218         (WebCore::MediaControls::closedCaptionTracksChanged): Used the newly added method.
2219         (WebCore):
2220         * html/shadow/MediaControls.h:
2221         (MediaControls):
2222
2223         * html/HTMLMediaElement.cpp:
2224         (WebCore::HTMLMediaElement::textTracksAreReady):
2225         (WebCore::HTMLMediaElement::textTrackReadyStateChanged):
2226         (WebCore::HTMLMediaElement::setReadyState):
2227         (WebCore::HTMLMediaElement::didAddTrack):
2228         (WebCore::HTMLMediaElement::hasClosedCaptions):
2229         * html/shadow/MediaControls.cpp:
2230         (WebCore::MediaControls::reset):
2231         (WebCore::MediaControls::refreshClosedCaptionsButtonVisibility):
2232         (WebCore::MediaControls::closedCaptionTracksChanged):
2233         (WebCore):
2234         * html/shadow/MediaControls.h:
2235         (MediaControls):
2236
2237 2013-01-31  Dima Gorbik  <dgorbik@apple.com>
2238
2239         REGRESSION(r140231): media track layout tests crashing
2240         https://bugs.webkit.org/show_bug.cgi?id=107579
2241
2242         Reviewed by Eric Carlson.
2243
2244         We were using non-standard element names with HTMLElement, which made v8 try to cast
2245         WebVTTElements to HTMLUnknownElements which was not possible. Subclassing Element instead
2246         of HTMLElement, though this requires building HTMLElements from WebVTTElements for creating
2247         a DOM tree. The code has been refactored to move WebVTT node type to QuialifiedName mappings 
2248         inside the WebVTTElement class. All WebVTTElements in the shadow dom tree now are in the 
2249         namespace defined by 'NullAtom'. This prevents regular styles from being applied to <b>, <i>
2250         and similar tags. Those have to be styled separately without reusing existing QualifiedNames
2251         and their styles. https://bugs.webkit.org/show_bug.cgi?id=107214
2252
2253         Unskipping tests to cover this.
2254
2255         * css/SelectorChecker.cpp:
2256         (WebCore::SelectorChecker::checkOne):
2257         * css/StyleResolver.cpp:
2258         (WebCore::StyleResolver::collectMatchingRules):
2259         (WebCore::StyleResolver::canShareStyleWithElement):
2260         * html/track/TextTrackCue.cpp:
2261         (WebCore::TextTrackCue::copyWebVTTNodeToDOMTree):
2262         (WebCore::TextTrackCue::getCueAsHTML):
2263         (WebCore::TextTrackCue::createCueRenderingTree):
2264         (WebCore::TextTrackCue::markFutureAndPastNodes):
2265         * html/track/TextTrackCue.h:
2266         (WebCore::TextTrackCue::cueShadowPseudoId):
2267         * html/track/WebVTTElement.cpp:
2268         (WebCore::nodeTypeToTagName): get a QualifiedName to use in the shadow DOM tree.
2269         (WebCore::WebVTTElement::WebVTTElement):
2270         (WebCore::WebVTTElement::create):
2271         (WebCore::WebVTTElement::cloneElementWithoutAttributesAndChildren):
2272         (WebCore::WebVTTElement::createEquivalentHTMLElement): create an HTMLElement to use in the DOM tree.
2273         * html/track/WebVTTElement.h:
2274         (WebCore::WebVTTElement::setWebVTTNodeType):
2275         (WebCore::WebVTTElement::webVTTNodeType):
2276         (WebCore::WebVTTElement::isPastNode):
2277         (WebCore::WebVTTElement::setIsPastNode):
2278         (WebCore::WebVTTElement::voiceAttributeName):
2279         * html/track/WebVTTParser.cpp:
2280         (WebCore::tokenToNodeType): determine a WebVTT node type for the token.
2281         (WebCore::WebVTTParser::constructTreeFromToken):
2282
2283 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2284
2285         Unreviewed, rolling out r141479.
2286         http://trac.webkit.org/changeset/141479
2287         https://bugs.webkit.org/show_bug.cgi?id=108564
2288
2289         breaks chromium test (Requested by morrita on #webkit).
2290
2291         * editing/Editor.cpp:
2292         * editing/Editor.h:
2293         (Editor):
2294
2295 2013-01-31  Changhun Kang  <temoochin@company100.net>
2296
2297         Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2298         https://bugs.webkit.org/show_bug.cgi?id=108308
2299
2300         Reviewed by Dimitri Glazkov.
2301
2302         No new tests. No change in behavior.
2303
2304 2013-01-31  Alec Flett  <alecflett@chromium.org>
2305
2306         IndexedDB: remove old transaction backend bootstrap code
2307         https://bugs.webkit.org/show_bug.cgi?id=103923
2308
2309         Reviewed by Dimitri Glazkov.
2310
2311         Finally remove all leftover code from the IndexedDB "giant
2312         async refactor of 2012." This includes removal of all
2313         IDBTransaction* interfaces that were shared between
2314         the frontend and backend and a few straggling methods
2315         like onUpgradeNeeded and onSuccess that were left from
2316         the last stage of refactoring.
2317
2318         * Modules/indexeddb/IDBCallbacks.h:
2319         * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
2320         * Modules/indexeddb/IDBDatabaseBackendImpl.h:
2321         (WebCore):
2322         (WebCore::IDBDatabaseBackendImpl::metadata):
2323         (IDBDatabaseBackendImpl):
2324         * Modules/indexeddb/IDBDatabaseBackendInterface.h:
2325         (WebCore):
2326         (IDBDatabaseBackendInterface):
2327         * Modules/indexeddb/IDBObjectStoreBackendImpl.h:
2328         (WebCore):
2329         * Modules/indexeddb/IDBTransaction.h:
2330         (WebCore):
2331         (IDBTransaction):
2332         * Modules/indexeddb/IDBTransactionBackendImpl.h:
2333         (WebCore):
2334         (IDBTransactionBackendImpl):
2335         * Modules/indexeddb/IDBTransactionBackendInterface.h: Removed.
2336         * Modules/indexeddb/IDBTransactionCallbacks.h: Removed.
2337         * Modules/indexeddb/IDBTransactionCoordinator.h:
2338         (WebCore):
2339         * Target.pri:
2340         * WebCore.gypi:
2341         * WebCore.xcodeproj/project.pbxproj:
2342
2343 2013-01-31  Kentaro Hara  <haraken@chromium.org>
2344
2345         Unreviewed, rolling out r141502.
2346         http://trac.webkit.org/changeset/141502
2347         https://bugs.webkit.org/show_bug.cgi?id=108441
2348
2349         Hit assert in SVGElementInstance
2350
2351         * bindings/scripts/CodeGeneratorV8.pm:
2352         (GetInternalFields):
2353         * dom/EventTarget.idl:
2354         * svg/SVGElementInstance.idl:
2355
2356 2013-01-31  Ojan Vafai  <ojan@chromium.org>
2357
2358         Assert that computePreferredLogicalWidths never calls setNeedsLayout
2359         https://bugs.webkit.org/show_bug.cgi?id=108539
2360
2361         Reviewed by Tony Chang.
2362
2363         computePreferredLogicalWidths should only set m_minPreferredLogicalWidth
2364         and m_maxPreferredLogicalWidth. It shouldn't have other side-effects.
2365         This is take 2 after this was rolled out because it was missing the guards
2366         in RenderCounter/RenderQuote.
2367
2368         * rendering/RenderBox.cpp:
2369         (WebCore::RenderBox::minPreferredLogicalWidth):
2370         (WebCore::RenderBox::maxPreferredLogicalWidth):
2371         * rendering/RenderCounter.cpp:
2372         (WebCore::RenderCounter::computePreferredLogicalWidths):
2373         * rendering/RenderQuote.cpp:
2374         (WebCore::RenderQuote::computePreferredLogicalWidths):
2375         * rendering/mathml/RenderMathMLOperator.cpp:
2376         (WebCore::RenderMathMLOperator::computePreferredLogicalWidths):
2377         * rendering/mathml/RenderMathMLRoot.cpp:
2378         (WebCore::RenderMathMLRoot::computePreferredLogicalWidths):
2379         * rendering/mathml/RenderMathMLRow.cpp:
2380         (WebCore::RenderMathMLRow::computePreferredLogicalWidths):
2381
2382 2013-01-31  Abhishek Arya  <inferno@chromium.org>
2383
2384         Use ASSERT_WITH_SECURITY_IMPLICATION to catch bad casts in DOM
2385         https://bugs.webkit.org/show_bug.cgi?id=108490
2386  
2387         Reviewed by Eric Seidel.
2388
2389         * dom/ContainerNode.h:
2390         (WebCore::toContainerNode):
2391         * dom/Element.h:
2392         (WebCore::toElement):
2393         * dom/ShadowRoot.h:
2394         (WebCore::toShadowRoot):
2395         * dom/Text.h:
2396         (WebCore::toText):
2397         * html/HTMLElement.h:
2398         (HTMLElement):
2399         (WebCore::toHTMLElement):
2400         * html/HTMLFrameOwnerElement.h:
2401         (WebCore::toFrameOwnerElement):
2402         * html/HTMLMediaElement.cpp:
2403         (WebCore::HTMLMediaElement::hasMediaControls):
2404         * html/HTMLTemplateElement.cpp:
2405         (WebCore::toHTMLTemplateElement):
2406         * html/HTMLUnknownElement.h:
2407         (WebCore::toHTMLUnknownElement):
2408         * html/shadow/InsertionPoint.h:
2409         (WebCore::toInsertionPoint):
2410         * html/shadow/MediaControlElementTypes.cpp:
2411         (WebCore::mediaControlElementType):
2412         * html/shadow/MediaControls.h:
2413         (WebCore::toMediaControls):
2414         * html/shadow/SliderThumbElement.h:
2415         (WebCore::toSliderThumbElement):
2416         * html/shadow/TextControlInnerElements.h:
2417         (WebCore::toInputFieldSpeechButtonElement):
2418         * html/shadow/TextFieldDecorationElement.h:
2419         (WebCore::toTextFieldDecorationElement):
2420         * html/track/WebVTTElement.h:
2421         (WebCore::toWebVTTElement):
2422         * mathml/MathMLElement.h:
2423         (WebCore::toMathMLElement):
2424         * page/scrolling/ScrollingStateFixedNode.h:
2425         (WebCore::toScrollingStateFixedNode):
2426         * page/scrolling/ScrollingStateScrollingNode.h:
2427         (WebCore::toScrollingStateScrollingNode):
2428         * page/scrolling/ScrollingStateStickyNode.h:
2429         (WebCore::toScrollingStateStickyNode):
2430         * rendering/RenderLayer.cpp:
2431         (WebCore::RenderLayer::resize):
2432         * rendering/svg/SVGResources.cpp:
2433         (WebCore::registerPendingResource):
2434         (WebCore::SVGResources::buildCachedResources):
2435         * svg/SVGElement.h:
2436         (WebCore::toSVGElement):
2437         * svg/SVGStyledElement.h:
2438         (WebCore::toSVGStyledElement):
2439
2440 2013-01-31  Christopher Cameron  <ccameron@chromium.org>
2441
2442         Fix rubber-band effect on non-scrollable pages
2443         https://bugs.webkit.org/show_bug.cgi?id=107611
2444
2445         Reviewed by Antonio Gomes.
2446
2447         Handle a FrameView's wheel event even if it is not scrollable
2448         because Chrome relies on handling these wheel events for the
2449         over-scroll rubber-band effect.
2450  
2451         This had been removed in r138378
2452         [EFL][WK2] Never create WebCore scrollbars for EFL/WK2
2453         by kenneth@chromium.org
2454
2455         Tests: platform/chromium/rubberbanding/wheelevent-overhang-e.html
2456                platform/chromium/rubberbanding/wheelevent-overhang-n.html
2457                platform/chromium/rubberbanding/wheelevent-overhang-s.html
2458                platform/chromium/rubberbanding/wheelevent-overhang-w.html
2459
2460         * page/FrameView.cpp:
2461         (WebCore::FrameView::wheelEvent):
2462
2463 2013-01-31  Enrica Casucci  <enrica@apple.com>
2464
2465         Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection.
2466         https://bugs.webkit.org/show_bug.cgi?id=108519.
2467
2468         Reviewed by Sam Weinig.
2469
2470         No new tests, no change in behavior.
2471
2472         There is no need to use AppKit types here.
2473         baseWritingDirectionForSelectionStart now returns WritingDirection and
2474         WebHTMLView toggleWritingDirection has been modified accordingly.
2475         
2476         * editing/Editor.h:
2477         * editing/mac/EditorMac.mm:
2478         (WebCore::Editor::baseWritingDirectionForSelectionStart):
2479
2480 2013-01-31  Kentaro Hara  <haraken@chromium.org>
2481
2482         [V8] Pass an Isolate to GetTemplate() in CodeGeneratorV8.pm
2483         https://bugs.webkit.org/show_bug.cgi?id=108445
2484
2485         Reviewed by Adam Barth.
2486
2487         No tests. No change in behavior.
2488
2489         * bindings/scripts/CodeGeneratorV8.pm:
2490         (GenerateDomainSafeFunctionGetter):
2491         (GenerateDomainSafeFunctionSetter):
2492         (GenerateNormalAttrGetter):
2493         (GenerateNamedConstructorCallback):
2494         (GenerateImplementation):
2495         * bindings/scripts/test/V8/V8Float64Array.cpp:
2496         (WebCore::ConfigureV8Float64ArrayTemplate):
2497         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2498         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
2499         (WebCore::TestActiveDOMObjectV8Internal::TestActiveDOMObjectDomainSafeFunctionSetter):
2500         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2501         (WebCore::V8TestNamedConstructorConstructor::GetTemplate):
2502         * bindings/scripts/test/V8/V8TestNode.cpp:
2503         (WebCore::ConfigureV8TestNodeTemplate):
2504
2505 2013-01-31  Kentaro Hara  <haraken@chromium.org>
2506
2507         [V8] Clean up Dictionary::get() by removing redundant FindInstanceInPrototypeChain()
2508         https://bugs.webkit.org/show_bug.cgi?id=108443
2509
2510         Reviewed by Adam Barth.
2511
2512         In Dictionary::get(), wrapper->FindInstanceInPrototypeChain(V8XXX::GetTemplate())
2513         is unnecessary for DOM wrappers other than DOMWindow. For wrappers other than
2514         DOMWindow, we can simply use V8XXX::HasInstance(wrapper).
2515
2516         Tests: fast/events/constructors/*
2517
2518         * bindings/v8/Dictionary.cpp:
2519         (WebCore::Dictionary::get):
2520
2521 2013-01-31  Julien Chaffraix  <jchaffraix@webkit.org>
2522
2523         [CSS Grid Layout] Support implicit rows and columns
2524         https://bugs.webkit.org/show_bug.cgi?id=103573
2525
2526         Reviewed by Ojan Vafai.
2527
2528         Tests: fast/css-grid-layout/implicit-columns-auto-resolution.html
2529                fast/css-grid-layout/implicit-rows-auto-resolution.html
2530
2531         This change makes us properly initialize our GridTrack vectors's size
2532         so that we can safely query any items during layout.
2533
2534         * rendering/RenderGrid.cpp:
2535         (WebCore::RenderGrid::gridTrackSize):
2536         Added this helper function to return the track size from the grid
2537         element's columns' / rows' definitions or the default value.
2538
2539         (WebCore::RenderGrid::maximumIndexInDirection):
2540         Added this helper function to get the maximum index in a direction
2541         taking grid item's implicit indexes into account.
2542
2543         (WebCore::RenderGrid::computedUsedBreadthOfGridTracks):
2544         Changed the funtion to not append the new tracks as we are properly
2545         sized now.
2546
2547         (WebCore::RenderGrid::resolveContentBasedTrackSizingFunctions):
2548         (WebCore::RenderGrid::tracksAreWiderThanMinTrackBreadth):
2549         Updated these functions to use the new helper functions.
2550
2551         (WebCore::RenderGrid::layoutGridItems):
2552         Changed this function to size both vectors when initializing them.
2553         Also removed an unneeded bounds check as it shouldn't be needed anymore.
2554
2555         * rendering/RenderGrid.h:
2556         Added the new helper functions.
2557
2558         * rendering/style/GridTrackSize.h:
2559         (WebCore::GridTrackSize::GridTrackSize):
2560         Added a constructor taking a LengthType.
2561
2562 2013-01-31  Joanmarie Diggs  <jdiggs@igalia.com>
2563
2564         [GTK] fast/css/relative-positioned-block-crash.html is intermittently crashing
2565         https://bugs.webkit.org/show_bug.cgi?id=108200
2566
2567         Reviewed by Martin Robinson.
2568
2569         Getting the Position of a PseudoElement now triggers an assertion.
2570         This can occur when clicking on empty space in a render block.
2571         Looking to the unignored parent's node (and passing that accessible
2572         object on in a signal to Assistive Technologies) seems like the most
2573         reasonable thing to do here.
2574
2575         No new tests; instead skipping two tests that were crashing as a result.
2576
2577         * accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
2578         (objectFocusedAndCaretOffsetUnignored):
2579
2580 2013-01-31  Kentaro Hara  <haraken@chromium.org>
2581
2582         [V8] Simplify CodeGeneratorV8.pm by using InheritsExtendedAttribute("EventTarget")
2583         https://bugs.webkit.org/show_bug.cgi?id=108441
2584
2585         Reviewed by Adam Barth.
2586
2587         A complicated condition in GetInternalFields() can be simplified
2588         by using InheritsExtendedAttribute("EventTarget").
2589
2590         No tests. No change in behavior.
2591
2592         * bindings/scripts/CodeGeneratorV8.pm:
2593         (GetInternalFields):
2594         * dom/EventTarget.idl: Added [EventTarget] which should have been added.
2595         * svg/SVGElementInstance.idl: Ditto.
2596
2597 2013-01-31  Youenn Fablet  <youennf@gmail.com>
2598
2599         Quadratic and bezier curves with coincident endpoints rendered incorrectly
2600         https://bugs.webkit.org/show_bug.cgi?id=105650
2601
2602         Reviewed by Kenneth Russell.
2603
2604         Tests: fast/canvas/canvas-bezier-same-endpoint.html
2605                fast/canvas/canvas-quadratic-same-endpoint.html
2606
2607         * html/canvas/CanvasPathMethods.cpp:
2608         (WebCore::CanvasPathMethods::quadraticCurveTo):
2609         (WebCore::CanvasPathMethods::bezierCurveTo):
2610
2611 2013-01-31  Mark Lam  <mark.lam@apple.com>
2612
2613         Abstraction for hiding enum class.
2614         https://bugs.webkit.org/show_bug.cgi?id=108533
2615
2616         Reviewed by Anders Carlsson.
2617
2618         No new tests.
2619
2620         * Modules/webdatabase/DatabaseError.h:
2621         (WebCore::ENUM_CLASS_BEGIN):
2622
2623 2013-01-31  Arnaud Renevier  <a.renevier@sisa.samsung.com>
2624
2625         [Gtk] drag and drop has black background without composition
2626         https://bugs.webkit.org/show_bug.cgi?id=108376
2627
2628         Reviewed by Martin Robinson.
2629
2630         Use gtk_drag_set_icon_surface (or gtk_drag_set_icon_pixbuf) when the
2631         screen is not composited. That way, drag window will be decomposited
2632         and rendered transparent with Xshape.
2633
2634         To determine which parts of the window must be transparent, gtk checks
2635         if a pixel is more than 50% opaque. With dissolveDragImageToFraction,
2636         all pixels are made 25% transparent. With antialiasing, opacity goes
2637         below the threshold for some pixels, which makes the resulting image
2638         messy. So, we need to skip dissolveDragImageToFraction when we use
2639         gtk_drag_set_icon_surface.
2640
2641         * platform/gtk/DragIcon.cpp:
2642         (WebCore::DragIcon::DragIcon):
2643         (WebCore::DragIcon::~DragIcon):
2644         (WebCore::DragIcon::setImage):
2645         (WebCore::DragIcon::useForDrag):
2646         * platform/gtk/DragIcon.h:
2647         (DragIcon):
2648         * platform/gtk/DragImageGtk.cpp:
2649         (WebCore::dissolveDragImageToFraction):
2650
2651 2013-01-31  Tony Gentilcore  <tonyg@chromium.org>
2652
2653         Begin to make XSSAuditor thread aware
2654         https://bugs.webkit.org/show_bug.cgi?id=108394
2655
2656         Reviewed by Adam Barth.
2657
2658         This patch moves the parts of filterToken() that depend on Frame, Document, etc. to a delegate class.
2659         The new didBlockScript delegate method is invoked with the resulting DidBlockScriptRequest which will
2660         be owned by the CompactHTMLToken in the threaded case.
2661
2662         This is just the first step as there is more to do to make XSSAuditor thread safe.
2663
2664         No new tests because covered by existing tests.
2665
2666         * CMakeLists.txt:
2667         * GNUmakefile.list.am:
2668         * Target.pri:
2669         * WebCore.gypi:
2670         * WebCore.vcproj/WebCore.vcproj:
2671         * WebCore.vcxproj/WebCore.vcxproj:
2672         * WebCore.vcxproj/WebCore.vcxproj.filters:
2673         * WebCore.xcodeproj/project.pbxproj:
2674         * html/parser/BackgroundHTMLParser.cpp:
2675         (WebCore::BackgroundHTMLParser::pumpTokenizer):
2676         * html/parser/HTMLDocumentParser.cpp:
2677         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
2678         (WebCore::HTMLDocumentParser::processTokensFromBackgroundParser):
2679         (WebCore::HTMLDocumentParser::pumpTokenizer):
2680         * html/parser/HTMLDocumentParser.h:
2681         (HTMLDocumentParser):
2682         * html/parser/XSSAuditor.cpp:
2683         (WebCore::XSSAuditor::filterToken):
2684         * html/parser/XSSAuditor.h:
2685         (WebCore):
2686         (XSSAuditor):
2687         * html/parser/XSSAuditorDelegate.cpp: Added.
2688         (WebCore):
2689         (WebCore::XSSAuditorDelegate::XSSAuditorDelegate):
2690         (WebCore::XSSAuditorDelegate::didBlockScript):
2691         * html/parser/XSSAuditorDelegate.h: Added.
2692         (WebCore):
2693         (DidBlockScriptRequest):
2694         (WebCore::DidBlockScriptRequest::create):
2695         (WebCore::DidBlockScriptRequest::DidBlockScriptRequest):
2696         (XSSAuditorDelegate):
2697
2698         * CMakeLists.txt:
2699         * GNUmakefile.list.am:
2700         * Target.pri:
2701         * WebCore.gypi:
2702         * WebCore.vcproj/WebCore.vcproj:
2703         * WebCore.vcxproj/WebCore.vcxproj:
2704         * WebCore.vcxproj/WebCore.vcxproj.filters:
2705         * WebCore.xcodeproj/project.pbxproj:
2706         * html/parser/BackgroundHTMLParser.cpp:
2707         (WebCore::BackgroundHTMLParser::pumpTokenizer):
2708         * html/parser/HTMLDocumentParser.cpp:
2709         (WebCore::HTMLDocumentParser::HTMLDocumentParser):
2710         (WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
2711         (WebCore::HTMLDocumentParser::pumpTokenizer):
2712         * html/parser/HTMLDocumentParser.h:
2713         (HTMLDocumentParser):
2714         * html/parser/XSSAuditor.cpp:
2715         (WebCore::XSSAuditor::XSSAuditor):
2716         (WebCore::XSSAuditor::filterToken):
2717         * html/parser/XSSAuditor.h:
2718         (WebCore):
2719         (XSSAuditor):
2720         * html/parser/XSSAuditorDelegate.cpp: Added.
2721         (WebCore):
2722         (WebCore::XSSAuditorDelegate::XSSAuditorDelegate):
2723         (WebCore::XSSAuditorDelegate::didBlockScript):
2724         * html/parser/XSSAuditorDelegate.h: Added.
2725         (WebCore):
2726         (DidBlockScriptRequest):
2727         (WebCore::DidBlockScriptRequest::create):
2728         (WebCore::DidBlockScriptRequest::DidBlockScriptRequest):
2729         (XSSAuditorDelegate):
2730
2731 2013-01-31  Uday Kiran  <udaykiran@motorola.com>
2732
2733         CSS3's vh attribute is not adjusting while browser resizes
2734         https://bugs.webkit.org/show_bug.cgi?id=86418
2735
2736         Reviewed by Antti Koivisto.
2737
2738         Elements with viewport percentage units needs layout whenever
2739         viewport size changes. Check for viewport percentage unit
2740         was missing for height.
2741
2742         Test: css3/viewport-percentage-lengths/vh-resize.html
2743
2744         * rendering/RenderBlock.cpp:
2745         (WebCore::RenderBlock::updateBlockChildDirtyBitsBeforeLayout):
2746         * rendering/RenderBox.cpp:
2747         (WebCore::RenderBox::hasViewportPercentageLogicalHeight): Check if style
2748         is specified in viewport percentage units.
2749         (WebCore):
2750         * rendering/RenderBox.h:
2751         (RenderBox):
2752         * rendering/RenderView.cpp:
2753         (WebCore::RenderView::layout): Elements with viewport percentage units
2754         needs relayout when viewport size changes.
2755
2756 2013-01-31  Anton Vayvod  <avayvod@chromium.org>
2757
2758         TextAutosizing: refactor the cluster related method parameters into a single struct.
2759         https://bugs.webkit.org/show_bug.cgi?id=108384
2760
2761         This anticipates adding more cluster related information in the following patches.
2762         
2763         Reviewed by Kenneth Rohde Christiansen.
2764
2765         Just a refactoring so no new tests.
2766
2767         * rendering/TextAutosizer.cpp: define the new struct and pass it to every method instead of
2768         a cluster and its descendant block containing all text.
2769         * rendering/TextAutosizer.h: change method prototypes to receive the new struct
2770         as a parameter defining an autosizing cluster.
2771
2772         * rendering/TextAutosizer.cpp:
2773         (WebCore::TextAutosizingClusterInfo::TextAutosizingClusterInfo):
2774         (TextAutosizingClusterInfo):
2775         (WebCore):
2776         (WebCore::TextAutosizer::processSubtree):
2777         (WebCore::TextAutosizer::processCluster):
2778         (WebCore::TextAutosizer::processContainer):
2779         (WebCore::TextAutosizer::isAutosizingCluster):
2780         (WebCore::TextAutosizer::clusterShouldBeAutosized):
2781         (WebCore::TextAutosizer::measureDescendantTextWidth):
2782         * rendering/TextAutosizer.h:
2783         (WebCore):
2784
2785 2013-01-31  Jacky Jiang  <zhajiang@rim.com>
2786
2787         [BlackBerry] Bing Images viewport causes layout "fun"
2788         https://bugs.webkit.org/show_bug.cgi?id=108393
2789
2790         Reviewed by Yong Li.
2791         Internally reviewed by Arvid Nilsson and partially reviewed by Konrad Piascik.
2792
2793         PR: 277855
2794         On bing.com image search page, JS generated styles for the divs which
2795         contained images based on the window.screen and window.innerWidth.
2796         Unfortunately the styles for the divs weren't good enough on our device
2797         which resulted in three images being overlapped in the same viewport.
2798         On our port, we calculate the screen rect base on the physical screen
2799         pixels. However, iOS and lastest Android Chrome port already changed it
2800         to density-independent (logical) pixels. And also to my knowledge that
2801         some websites would generate bad styles for us as well through
2802         @media device-width/device-height.
2803         To be consistent and fix such kinds of issues, we should use
2804         density-independent pixels instead of physical screen pixels. Mainly
2805         ported from Chrome port change r139356. The patch will affect
2806         screen.width/height, window.outerWidth/outerHeight and
2807         @media device-width/device-height.
2808
2809         * platform/blackberry/PlatformScreenBlackBerry.cpp:
2810         (WebCore):
2811         (WebCore::toUserSpace):
2812         (WebCore::screenAvailableRect):
2813         (WebCore::screenRect):
2814
2815 2013-01-31  Max Vujovic  <mvujovic@adobe.com>
2816
2817         [CSS Shaders] Parse custom filter function with the at-rule reference syntax
2818         https://bugs.webkit.org/show_bug.cgi?id=108351
2819
2820         Reviewed by Dean Jackson.
2821
2822         This patch implements the parsing for the new custom filter function "at-rule reference"
2823         syntax. It does not implement the style resolution yet.
2824
2825         The custom function syntax has changed in the spec. Instead of including all of the custom
2826         filter information inline, the custom function can now reference an @filter rule by name.
2827         The custom function can still accept a list of parameters.
2828
2829         The syntax is defined as the following, where IDENT is the name of the @filter rule:
2830         filter: custom(IDENT [, <param>]*)
2831
2832         In practice, it can look like this:
2833         filter: custom(page-curl, direction 90, amount 0.5);
2834
2835         Spec: https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#customident-ltparamgt
2836
2837         Tests: css3/filters/custom-with-at-rule-syntax/parsing-custom-function-invalid.html
2838                css3/filters/custom-with-at-rule-syntax/parsing-custom-function-valid.html
2839
2840         * css/CSSParser.cpp:
2841         (WebCore::CSSParser::parseCustomFilterParameters):
2842             Factor out a new function that just parses custom filter parameters. This is used by the
2843             previous inline syntax and the new at-rule reference syntax.
2844         (WebCore):
2845         (WebCore::CSSParser::parseCustomFilterFunctionWithAtRuleReferenceSyntax):
2846             This method parses the new at-rule reference syntax. When we remove the inline syntax,
2847             we can rename this method to "parseCustomFilterFunction" and call it directly.
2848         (WebCore::CSSParser::parseCustomFilterFunctionWithInlineSyntax):
2849             Move the previous inline syntax parsing code into a new function.
2850         (WebCore::CSSParser::parseCustomFilterFunction):
2851             This method looks ahead in the CSS parser values and decides whether to parse the custom
2852             function with the previous inline syntax or with the new at-rule reference syntax.
2853         (WebCore::CSSParser::parseFilter):
2854             I renamed the "parseCustomFilter" method to "parseCustomFilterFunction" to be more
2855             explicit. Here, we update the name in the call site.
2856         * css/CSSParser.h:
2857         * css/StyleResolver.cpp:
2858         (WebCore::StyleResolver::createCustomFilterOperationWithAtRuleReferenceSyntax):
2859             This is a stub method. In the future, style resolution for the at-rule reference
2860             syntax will happen here. When we remove the inline syntax, we can rename this method 
2861         (WebCore::StyleResolver::createCustomFilterOperationWithInlineSyntax):
2862             This method contains the previous inline syntax style resolution code.
2863         (WebCore):
2864         (WebCore::StyleResolver::createCustomFilterOperation):
2865             This method decides which syntax we should use to resolve the style.
2866         * css/StyleResolver.h:
2867         (StyleResolver):
2868
2869 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2870
2871         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2872         https://bugs.webkit.org/show_bug.cgi?id=107737
2873
2874         Reviewed by Ryosuke Niwa.
2875
2876         Chromium has a bug where the IME composition did not get cancelled on JavaScript changes
2877         to the focused editing field. Most of other WebKit ports were already doing this check
2878         in their EditorClient::respondToChangedSelection. I took that logic and moved it to the
2879         Editor so every port and use the same code.
2880
2881         An existing test editing/input/setting-input-value-cancel-ime-composition.html covers this change.
2882         This test used to have an expectation to fail on Chromium and after this patch it will start passing.
2883
2884         * editing/Editor.cpp:
2885         (WebCore::Editor::cancelCompositionIfSelectionIsInvalid):
2886             Adding a call that can be used by any the port to cancel the composition if it's no longer valid.
2887         (WebCore):
2888         * editing/Editor.h:
2889         (Editor):
2890
2891 2013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
2892
2893         Disable ENABLE_FULLSCREEN_API on iOS
2894         https://bugs.webkit.org/show_bug.cgi?id=108250
2895
2896         Reviewed by Benjamin Poulain.
2897
2898         * Configurations/FeatureDefines.xcconfig:
2899
2900 2013-01-31  Mark Pilgrim  <pilgrim@chromium.org>
2901
2902         [Chromium] Move LocalizedStrings to WebCore
2903         https://bugs.webkit.org/show_bug.cgi?id=108488
2904
2905         Reviewed by Adam Barth.
2906
2907         Part of a larger refactoring series; see tracking bug 106829.
2908
2909         * WebCore.gypi:
2910         * platform/chromium/LocalizedStringsChromium.cpp: Copied from Source/WebKit/chromium/src/LocalizedStrings.cpp.
2911         (WebCore::imageTitle):
2912
2913 2013-01-31  Enrica Casucci  <enrica@apple.com>
2914
2915         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2916         https://bugs.webkit.org/show_bug.cgi?id=108396.
2917         <rdar://problem/12920461>
2918
2919         Reviewed by Alexey Proskuryakov.
2920
2921         Adds support in WebCore to new EditorClient methods to support the modified
2922         client bundle API in WebKit2.
2923
2924         * WebCore.exp.in:
2925         * editing/Editor.cpp:
2926         (WebCore::Editor::cut): Added call to willWriteSelectionToPasteboard.
2927         (WebCore::Editor::copy): Ditto.
2928         (WebCore::Editor::willWriteSelectionToPasteboard): Added.
2929         * editing/Editor.h:
2930         * loader/EmptyClients.h: Added empty client implementation
2931         for the new methods.
2932         (WebCore::EmptyEditorClient::willWriteSelectionToPasteboard):
2933         (WebCore::EmptyEditorClient::getClientPasteboardDataForRange):
2934         * page/EditorClient.h:
2935         * platform/mac/PasteboardMac.mm:
2936         (WebCore::Pasteboard::writeSelectionForTypes): Added call to getClientPasteboardDataForRange.
2937
2938 2013-01-31  David Kilzer  <ddkilzer@apple.com>
2939
2940         Use OS() and PLATFORM() macros in WebCorePrefix.h for readability
2941         <http://webkit.org/b/108374>
2942
2943         Reviewed by Laszlo Gombos.
2944
2945         * WebCorePrefix.h: Replaced all possible checks with OS() or
2946         PLATFORM() macros other than __APPLE__.
2947
2948 2013-01-31  Mike West  <mkwst@chromium.org>
2949
2950         Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
2951         https://bugs.webkit.org/show_bug.cgi?id=108476
2952
2953         Reviewed by Jochen Eisinger.
2954
2955         Rather than diving through 'frame()->top()' or 'topDocument()' to get
2956         the SecurityOrigin of the top-level document in a frame, we can now
2957         directly grab the 'topOrigin()' off of a ScriptExecutionContext. This
2958         patch adjusts a few callsites to use the new hotness rather than the
2959         old brokenness.
2960
2961         This is a pure refactoring: No web-visible changes should result.
2962
2963         * Modules/webdatabase/DOMWindowWebDatabase.cpp:
2964         (WebCore::DOMWindowWebDatabase::openDatabase):
2965         * page/DOMWindow.cpp:
2966         (WebCore::DOMWindow::sessionStorage):
2967         (WebCore::DOMWindow::localStorage):
2968         * workers/SharedWorker.cpp:
2969         (WebCore::SharedWorker::create):
2970         * workers/WorkerMessagingProxy.cpp:
2971         (WebCore::WorkerMessagingProxy::startWorkerContext):
2972
2973 2013-01-31  peavo@outlook.com  <peavo@outlook.com>
2974
2975         [Curl] There is no way for a WebKit client to set the Curl cookie jar path
2976         https://bugs.webkit.org/show_bug.cgi?id=107692
2977
2978         Reviewed by Brent Fulgham.
2979
2980         Set default cookie jar path.
2981         Get the cookie jar path for Curl from the environment variable CURL_COOKIE_JAR_PATH.
2982
2983         * platform/network/curl/ResourceHandleManager.cpp:
2984         (WebCore::cookieJarPath): Added helper function to set cookie jar path.
2985         (WebCore::ResourceHandleManager::ResourceHandleManager): Call helper function.
2986
2987 2013-01-31  Maciej Stachowiak  <mjs@apple.com>
2988
2989         REGRESSION (r138962): Fails to show "confirm form resubmission", hangs browser
2990         https://bugs.webkit.org/show_bug.cgi?id=108214
2991
2992         Reviewed by Adam Barth.
2993         
2994         Attempt a workaround suggested by Nate Chapin by putting some code
2995         in #ifdef !PLATFORM(CHROMIUM).
2996
2997         * loader/MainResourceLoader.cpp:
2998         (WebCore::MainResourceLoader::notifyFinished):
2999
3000 2013-01-31  Ojan Vafai  <ojan@chromium.org>
3001
3002         REGRESSION(r128517): Percentage heights in quirks mode collapse when printing
3003         https://bugs.webkit.org/show_bug.cgi?id=108382
3004
3005         Reviewed by David Hyatt.
3006
3007         r128517 clean up our containing block finding logic, but broke percentage
3008         heights in quirks mode during printing since the RenderView would have 0 height.
3009         Turns out we already had a long-standing bug where we'd incorrectly
3010         treat collapse percentage heights on the body when printing as well.
3011
3012         Fix both bugs by changing the way we grab the logical height on the RenderView.
3013         RenderView::computeLogicalHeight returns 0 when printing. For the purposes of
3014         stretching and percentage heights, we instead need to return the pageLogicalHeight.
3015
3016         Tests: printing/quirks-percentage-height-body.html
3017                printing/quirks-percentage-height.html
3018                printing/standards-percentage-heights.html
3019
3020         * rendering/RenderBox.cpp:
3021         (WebCore::RenderBox::computeLogicalHeight):
3022         This FIXME is outdated and already fixed. Also, call viewLogicalHeightForPercentages
3023         which does the same logic except also correctly handles column RenderViews.
3024         (WebCore::RenderBox::viewLogicalHeightForPercentages):
3025         (WebCore::RenderBox::computePercentageLogicalHeight):
3026         * rendering/RenderBox.h:
3027
3028         * rendering/RenderBox.cpp:
3029         (WebCore::RenderBox::computeLogicalHeight):
3030         (WebCore::RenderBox::viewLogicalHeightForPercentages):
3031         (WebCore):
3032         (WebCore::RenderBox::computePercentageLogicalHeight):
3033         * rendering/RenderBox.h:
3034         (RenderBox):
3035
3036 2013-01-31  Dirk Schulze  <krit@webkit.org>
3037
3038         [canvas] Implement currentPath to get and set the current path of the context
3039         https://bugs.webkit.org/show_bug.cgi?id=108246
3040
3041         Reviewed by Dean Jackson.
3042
3043         Add currentPath attribute to CanvasRenderingContext2d interface. This allows
3044         setting the current context path by an existing Path object as well as getting
3045         the current context path as new Path object. The returned and the set Paths
3046         are not live.
3047
3048         This feature is behind the CANVAS_PATH compiler flag which is disabled by
3049         default for now.
3050
3051         Test: fast/canvas/canvas-currentPath.html
3052
3053         * html/canvas/CanvasPathMethods.cpp: Rename transformIsInvertible to
3054             isTransformInvertible for harmonizing naming schema.
3055         (WebCore::CanvasPathMethods::moveTo): Ditto.
3056         (WebCore::CanvasPathMethods::lineTo): Ditto.
3057         (WebCore::CanvasPathMethods::quadraticCurveTo): Ditto.
3058         (WebCore::CanvasPathMethods::bezierCurveTo): Ditto.
3059         (WebCore::CanvasPathMethods::arcTo): Ditto.
3060         (WebCore::CanvasPathMethods::arc): Ditto.
3061         (WebCore::CanvasPathMethods::rect): Ditto.
3062         * html/canvas/CanvasPathMethods.h: Ditto.
3063         (CanvasPathMethods):
3064         (WebCore::CanvasPathMethods::isTransformInvertible):
3065         * html/canvas/CanvasRenderingContext2D.cpp:
3066         (WebCore):
3067         (WebCore::CanvasRenderingContext2D::currentPath): Getter for currentPath.
3068         (WebCore::CanvasRenderingContext2D::setCurrentPath): Setter for currentPath.
3069         * html/canvas/CanvasRenderingContext2D.h:
3070         (WebCore):
3071         (CanvasRenderingContext2D):
3072         (WebCore::CanvasRenderingContext2D::isTransformInvertible):
3073         * html/canvas/CanvasRenderingContext2D.idl: Add currentPath attribute.
3074         * html/canvas/DOMPath.h: Add new constructor and getter for Path object.
3075         (WebCore::DOMPath::create): New static function for new ctor.
3076         (DOMPath):
3077         (WebCore::DOMPath::path): Getter for Path object.
3078         (WebCore::DOMPath::DOMPath):
3079
3080 2013-01-31  Alexandre Elias  <aelias@chromium.org>
3081
3082         Call FrameView::contentsResized() when setting fixed layout size
3083         https://bugs.webkit.org/show_bug.cgi?id=107922
3084
3085         Reviewed by James Robinson.
3086
3087         In fixed layout mode, we should be calling contentsResized() when the
3088         fixed layout size is changed, but not laying out when the visible
3089         content rect changes.
3090
3091         Previously landed as r140869 but was reverted due to a bug in bundled
3092         Chromium-specific code. This patch includes just the minimum needed in
3093         WebCore.
3094
3095         New WebFrameTest: FrameViewNeedsLayoutOnFixedLayoutResize.  Some
3096         flaky and obsolete tests for the old page scale mode are also deleted.
3097
3098         * page/FrameView.cpp:
3099         (WebCore::FrameView::visibleContentsResized):
3100         * platform/ScrollView.cpp:
3101         (WebCore::ScrollView::setFixedLayoutSize):
3102         (WebCore::ScrollView::setUseFixedLayout):
3103
3104 2013-01-31  Otto Derek Cheung  <otcheung@rim.com>
3105
3106         [BlackBerry] CookieParser should ignore invalid/unsupported attributes instead of ignoring the cookie
3107         https://bugs.webkit.org/show_bug.cgi?id=108494
3108
3109         PR 287832
3110         Reviewed by Rob Buis.
3111         Internally Reviewed by Liam Quinn.
3112
3113         A short-term fix for CookieParser to not blow up when a Set-Cookie header has an invalid
3114         or unsupported cookie attribute.
3115
3116         We will ignore the attribute only, not the entire cookie.
3117
3118         Also, making sure the parser won't replace values of valid attributes when evaluating an unsupported
3119         cookie with the same length and same first character as a supported attribute.
3120
3121         Tested using opera cookie and browser.swlab.rim.net cookies test suite. Tested using regular sites that
3122         has a login mechanism.
3123
3124         * platform/blackberry/CookieParser.cpp:
3125         (WebCore::CookieParser::parseOneCookie):
3126
3127 2013-01-31  Tommy Widenflycht  <tommyw@google.com>
3128
3129         [chromium] MediaStream API: Rename WebMediaStreamDescriptor and WebMediaStreamComponent to WebMediaStream and WebMediaStreamTrack
3130         https://bugs.webkit.org/show_bug.cgi?id=108458
3131
3132         Reviewed by Adam Barth.
3133
3134         Only renames, no other code changes.
3135
3136         * WebCore.gypi:
3137         * platform/chromium/support/WebMediaStream.cpp: Added.
3138         (WebKit::WebMediaStream::WebMediaStream):
3139         (WebKit):
3140         (WebKit::WebMediaStream::reset):
3141         (WebKit::WebMediaStream::label):
3142         (WebKit::WebMediaStream::id):
3143         (WebKit::WebMediaStream::extraData):
3144         (WebKit::WebMediaStream::setExtraData):
3145         (WebKit::WebMediaStream::audioSources):
3146         (WebKit::WebMediaStream::videoSources):
3147         (WebKit::WebMediaStream::operator=):
3148         (WebKit::WebMediaStream::operator PassRefPtr<WebCore::MediaStreamDescriptor>):
3149         (WebKit::WebMediaStream::operator WebCore::MediaStreamDescriptor*):
3150         (WebKit::WebMediaStream::initialize):
3151         (WebKit::WebMediaStream::assign):
3152         * platform/chromium/support/WebMediaStreamComponent.cpp: Removed.
3153         * platform/chromium/support/WebMediaStreamDescriptor.cpp: Removed.
3154         * platform/chromium/support/WebMediaStreamTrack.cpp: Added.
3155         (WebKit):
3156         (WebKit::WebMediaStreamTrack::WebMediaStreamTrack):
3157         (WebKit::WebMediaStreamTrack::operator=):
3158         (WebKit::WebMediaStreamTrack::initialize):
3159         (WebKit::WebMediaStreamTrack::reset):
3160         (WebKit::WebMediaStreamTrack::operator PassRefPtr<MediaStreamComponent>):
3161         (WebKit::WebMediaStreamTrack::operator MediaStreamComponent*):
3162         (WebKit::WebMediaStreamTrack::isEnabled):
3163         (WebKit::WebMediaStreamTrack::id):
3164         (WebKit::WebMediaStreamTrack::stream):
3165         (WebKit::WebMediaStreamTrack::source):
3166         (WebKit::WebMediaStreamTrack::assign):
3167         * platform/chromium/support/WebRTCStatsRequest.cpp:
3168         (WebKit::WebRTCStatsRequest::stream):
3169         (WebKit::WebRTCStatsRequest::component):
3170         * platform/mediastream/chromium/MediaStreamCenterChromium.cpp:
3171         (WebCore::MediaStreamCenterChromium::didCreateMediaStream):
3172         (WebCore::MediaStreamCenterChromium::stopLocalMediaStream):
3173         (WebCore::MediaStreamCenterChromium::addMediaStreamTrack):
3174         (WebCore::MediaStreamCenterChromium::removeMediaStreamTrack):
3175         * platform/mediastream/chromium/MediaStreamCenterChromium.h:
3176         (WebKit):
3177         (MediaStreamCenterChromium):
3178         * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.cpp:
3179         (WebCore::RTCPeerConnectionHandlerChromium::didAddRemoteStream):
3180         (WebCore::RTCPeerConnectionHandlerChromium::didRemoveRemoteStream):
3181         * platform/mediastream/chromium/RTCPeerConnectionHandlerChromium.h:
3182         (WebKit):
3183         (RTCPeerConnectionHandlerChromium):
3184
3185 2013-01-31  Dmitry Zvorygin  <zvorygin@chromium.org>
3186
3187         Web Inspector: searching for <u> in elements panel finds all tags containing "u"
3188         https://bugs.webkit.org/show_bug.cgi?id=108176
3189
3190         Reviewed by Pavel Feldman.
3191
3192         When searching for tag name check that tag name must either start from
3193         search query, or must end with it.
3194
3195         * inspector/InspectorDOMAgent.cpp:
3196         (WebCore::InspectorDOMAgent::performSearch):
3197
3198 2013-01-30  Mark Lam  <mark.lam@apple.com>
3199
3200         DatabaseContext needs to outlive the ScriptExecutionContext.
3201         https://bugs.webkit.org/show_bug.cgi?id=108355.
3202
3203         Reviewed by Geoffrey Garen.
3204
3205         Added a RefPtr<DatabaseContext> in ScriptExecutionContext to keep the
3206         DatabaseContext alive until after ScriptExecutionContext destructs.
3207
3208         No new tests.
3209
3210         * Modules/webdatabase/DatabaseContext.cpp:
3211         (WebCore::DatabaseContext::DatabaseContext):
3212         * dom/ScriptExecutionContext.cpp:
3213         (WebCore::ScriptExecutionContext::setDatabaseContext):
3214         * dom/ScriptExecutionContext.h:
3215         (ScriptExecutionContext):
3216
3217 2013-01-31  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3218
3219         On Linux, can't get spelling suggestions without selection when unified text checker is enabled
3220         https://bugs.webkit.org/show_bug.cgi?id=107684
3221
3222         Reviewed by Ryosuke Niwa.
3223
3224         No new tests, covered by context-menu-suggestions.html.
3225
3226         * editing/Editor.cpp:
3227         (WebCore::Editor::guessesForMisspelledOrUngrammatical):
3228         For Linux, extend selection range to the closest word to get
3229         the spelling suggestions when unified text checker is enabled.
3230
3231 2013-01-31  Florin Malita  <fmalita@chromium.org>
3232
3233         [Skia] Update SkiaImageFilterBuilder's brightness matrix to match Chromium's implementation
3234         https://bugs.webkit.org/show_bug.cgi?id=107841
3235
3236         Reviewed by Stephen White.
3237
3238         Update Skia's brightness filter to match the spec after http://trac.webkit.org/changeset/139770.
3239
3240         No new tests: covered by existing tests (currently disabled pending rebaseline).
3241
3242         * platform/graphics/filters/skia/SkiaImageFilterBuilder.cpp:
3243
3244 2013-01-31  Andrey Lushnikov  <lushnikov@chromium.org>
3245
3246         Web Inspector: show cursor location in DTE
3247         https://bugs.webkit.org/show_bug.cgi?id=108478
3248
3249         Reviewed by Pavel Feldman.
3250
3251         Add a new status bar element to SourceFrame to display current
3252         DefaultTextEditor cursor position.
3253
3254         No new tests.
3255
3256         * English.lproj/localizedStrings.js:
3257         * inspector/front-end/DefaultTextEditor.js:
3258         (WebInspector.DefaultTextEditor.prototype.copyRange):
3259         * inspector/front-end/SourceFrame.js:
3260         (WebInspector.SourceFrame):
3261         (WebInspector.SourceFrame.prototype.statusBarItems):
3262         (WebInspector.SourceFrame.prototype.selectionChanged):
3263         (WebInspector.SourceFrame.prototype._updateSourcePosition):
3264         * inspector/front-end/TextEditor.js:
3265         (WebInspector.TextEditor.prototype.copyRange):
3266         * inspector/front-end/inspector.css:
3267         (.source-frame-position):
3268
3269 2013-01-31  Andrey Lushnikov  <lushnikov@chromium.org>
3270
3271         Web Inspector: overlay highlight in DTE gets messed up when zoom factor changes.
3272         https://bugs.webkit.org/show_bug.cgi?id=108486
3273
3274         Reviewed by Pavel Feldman.
3275
3276         Repaint overlay highlight when zoom factor changes.
3277
3278         No new tests.
3279
3280         * inspector/front-end/DefaultTextEditor.js:
3281         (WebInspector.TextEditorMainPanel.prototype.highlightRegex):
3282         (WebInspector.TextEditorMainPanel.prototype.removeHighlight):
3283         (WebInspector.TextEditorMainPanel.prototype.highlightRange):
3284         (WebInspector.TextEditorMainPanel.prototype._repaintLineRowsAffectedByHighlightDescriptors):
3285         (WebInspector.TextEditorMainPanel.prototype.resize):
3286
3287 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
3288
3289         [Qt] Fix minor memory leak in slot execution
3290
3291         Reviewed by Allan Sandfeld Jensen.
3292
3293         Don't leak the "length" string when executing a slot in JavaScript.
3294
3295         * bridge/qt/qt_runtime.cpp:
3296         (JSC::Bindings::QtConnectionObject::execute):
3297
3298 2013-01-31  Mike West  <mkwst@chromium.org>
3299
3300         Allow blocking of IndexedDB in third-party contexts
3301         https://bugs.webkit.org/show_bug.cgi?id=94171
3302
3303         Reviewed by Jochen Eisinger.
3304
3305         This patch ensures that the origin of the top window is passed into
3306         SecurityOrigin::canAccessDatabase when working with IndexedDB. Giving
3307         SecurityOrigin access to this data means that it can properly check
3308         whether the database is being opened in a third-party context, and
3309         therefore properly enforce the third-party access checks that were
3310         added in http://trac.webkit.org/changeset/125736.
3311
3312         Third-party checks are added to IDBFactory::open,
3313         IDBFactory::deleteDatabase, and IDBFactory::getDatabaseNames; each will
3314         now throw a SECURITY_ERR exception when access in a third-party context
3315         if third-party access checks are enabled.
3316
3317         To make this process slightly more clear, and avoid some ugly casting
3318         logic, this patch adds a 'topOrigin'  method to ScriptExecutionContext,
3319         and implements it on both WorkerContext and Document.
3320
3321         Tests: http/tests/security/cross-origin-indexeddb-allowed.html
3322                http/tests/security/cross-origin-indexeddb.html
3323                http/tests/security/cross-origin-worker-indexeddb-allowed.html
3324                http/tests/security/cross-origin-worker-indexeddb.html
3325
3326         * Modules/indexeddb/IDBFactory.cpp:
3327         (WebCore::IDBFactory::getDatabaseNames):
3328         (WebCore::IDBFactory::openInternal):
3329         (WebCore::IDBFactory::deleteDatabase):
3330             Grab the SecurityOrigin of the current context's top-level origin,
3331             and pass it to SecurityOrigin::canAccessDatabase to ensure that
3332             access checks are properly applied to these three methods.
3333         * dom/Document.cpp:
3334         (WebCore::Document::topOrigin):
3335         (WebCore):
3336         * dom/Document.h:
3337         (Document):
3338         * dom/ScriptExecutionContext.h:
3339         (ScriptExecutionContext):
3340             Add a topOrigin() method to ScriptExecutionContext, and implement it
3341             on Document in order to give callers access to the top document's
3342             SecurityOrigin without casting ScriptExecutionContext.
3343         * workers/WorkerContext.h:
3344             Change the existing topOrigin() method to override the new method
3345             on ScriptExecutionContext.
3346
3347 2013-01-31  Eugene Klyuchnikov  <eustas@chromium.org>
3348
3349         Web Inspector: [Network] Add cookie column to show presence of request/response cookies.
3350         https://bugs.webkit.org/show_bug.cgi?id=107441
3351
3352         Reviewed by Pavel Feldman.
3353
3354         In some use cases only responses that contain "set-cookie" headers
3355         are interesting.
3356
3357         * English.lproj/localizedStrings.js: Added "Set-Cookies" string.
3358         * inspector/front-end/NetworkPanel.js:
3359         (WebInspector.NetworkLogView.prototype._createTable): Added columns.
3360         (WebInspector.NetworkLogView.prototype._createSortingFunctions): Ditto.
3361         (WebInspector.NetworkDataGridNode.prototype.createCells): Ditto.
3362         (WebInspector.NetworkDataGridNode.prototype.refreshRequest): Ditto.
3363         (WebInspector.NetworkDataGridNode.prototype._refreshCookiesCell): Added.
3364         (WebInspector.NetworkDataGridNode.prototype._refreshSetCookiesCell): Added.
3365         (WebInspector.NetworkDataGridNode.RequestCookiesCountComparator): Added.
3366         (WebInspector.NetworkDataGridNode.ResponseCookiesCountComparator): Added.
3367
3368 2013-01-31  Andrey Adaikin  <aandrey@chromium.org>
3369
3370         Web Inspector: Exception in HeapSnapshotView.js
3371         https://bugs.webkit.org/show_bug.cgi?id=108456
3372
3373         Reviewed by Yury Semikhatsky.
3374
3375         Listen "profile added" events in the HeapSnapshotView targeted only to the Heap Snapshot type.
3376
3377         * inspector/front-end/HeapSnapshotView.js:
3378         (WebInspector.HeapSnapshotView.prototype._onProfileHeaderAdded):
3379
3380 2013-01-31  Andrey Lushnikov  <lushnikov@chromium.org>
3381
3382         Web Inspector: do not set any textContent in overlay highlight spans
3383         https://bugs.webkit.org/show_bug.cgi?id=108460
3384
3385         Reviewed by Pavel Feldman.
3386
3387         Do not set any text content for overlay highlight spans to implicitly
3388         set its height. Instead, measure its height in the same manner as its
3389         done for "width" and "left" and set it explicitly.
3390
3391         No new tests: no change in behaviour.
3392
3393         * inspector/front-end/DefaultTextEditor.js:
3394         (WebInspector.TextEditorMainPanel.prototype._appendOverlayHighlight):
3395         (WebInspector.TextEditorMainPanel.ElementMetrics):
3396         * inspector/front-end/textEditor.css:
3397         (.text-editor-token-highlight): Update highlight to correspond to
3398         slightly different elements height.
3399
3400 2013-01-31  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3401
3402         [Qt] Box shadows on a transparency layer is very slow
3403         https://bugs.webkit.org/show_bug.cgi?id=107547
3404
3405         Reviewed by Noam Rosenthal.
3406
3407         Include the window boundaries in the clip returned by GraphicsContext,
3408         since QPainter may remember clips larger than the destination, but
3409         ShadowBlur uses the clipBounds to determine the size of the shadow layer.
3410
3411         * platform/graphics/qt/GraphicsContextQt.cpp:
3412         (WebCore::GraphicsContext::clipBounds):
3413
3414 2013-01-31  Pavel Feldman  <pfeldman@chromium.org>
3415
3416         Web Inspector: highlight backend languages as scripts
3417         https://bugs.webkit.org/show_bug.cgi?id=108336
3418
3419         Reviewed by Vsevolod Vlasov.
3420
3421         Most languages have structure similar to js, so enabling default highlighter for them won't hurt.
3422
3423         * inspector/front-end/FileSystemWorkspaceProvider.js:
3424         (WebInspector.FileSystemWorkspaceProvider.prototype._contentTypeForPath):
3425
3426 2013-01-31  Andrey Adaikin  <aandrey@chromium.org>
3427
3428         Web Inspector: [Profiles] show launcher view upon deleting last profile type's header
3429         https://bugs.webkit.org/show_bug.cgi?id=108468
3430
3431         Reviewed by Pavel Feldman.
3432
3433         We should show launcher view and hide profile type sidebar section upon deleting last profile type's header from the sidebar.
3434         Right now we only show launcher view upon deleting the last profile header (of any profile type).
3435
3436         * inspector/front-end/ProfilesPanel.js:
3437         (WebInspector.ProfilesPanel.prototype._removeProfileHeader):
3438
3439 2013-01-31  Eugene Klyuchnikov  <eustas@chromium.org>
3440
3441         Web Inspector: [Network] Columns are misaligned as first row goes out of sight.
3442         https://bugs.webkit.org/show_bug.cgi?id=107933
3443
3444         Reviewed by Pavel Feldman.
3445
3446         For some reason if "td" elements in first table row have "display: none"
3447         style, then column width calculation breaks.
3448
3449         * inspector/front-end/networkLogView.css:
3450         (.network-log-grid.data-grid tr.offscreen > td > div):
3451         Hide content instead of "td" element itself.
3452
3453 2013-01-31   Vineet Chaudhary  <rgf748@motorola.com>
3454
3455         formMethod to have empty string as default value and 'get' as invalid.
3456         https://bugs.webkit.org/show_bug.cgi?id=108263
3457
3458         Reviewed by Kent Tamura.
3459
3460         The spec says formmethod should only have an invalid value default, not a missing value default.
3461         Spec: http://www.whatwg.org/specs/web-apps/current-work/#form-submission-0
3462               http://www.w3.org/html/wg/drafts/html/master/forms.html#attr-fs-formmethod
3463
3464         Test: fast/forms/formmethod-attribute-test.html
3465
3466         * html/HTMLFormControlElement.cpp: For the missing formMethod attr return empty string.
3467         (WebCore::HTMLFormControlElement::formMethod):
3468
3469 2013-01-20 Kondapally Kalyan <kalyan.kondapally@intel.com>
3470
3471         [Efl][WebGL] Add better support to track and free XResources.
3472         https://bugs.webkit.org/show_bug.cgi?id=107397
3473
3474         Reviewed by Noam Rosenthal.
3475
3476         We leak Memory during config selection as we dont free temporary
3477         allocated&