[Text Autosizing] Cleanup change: converter the pointer argument to be a reference...
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2013-02-09  Anton Vayvod  <avayvod@chromium.org>
2  
3         [Text Autosizing] Cleanup change: converter the pointer argument to be a reference since
4         non-null pointer is always expected.
5         https://bugs.webkit.org/show_bug.cgi?id=109079
6  
7         Reviewed by Kenneth Rohde Christiansen.
8  
9         Cleanup change, no need to add new tests or modify the existing ones.
10  
11         * rendering/TextAutosizer.cpp:
12  
13         Changed parameter from a pointer to a reference in the methods below.
14  
15         (WebCore::TextAutosizer::processSubtree):
16         (WebCore::TextAutosizer::processCluster):
17         (WebCore::TextAutosizer::processContainer):
18         (WebCore::TextAutosizer::isNarrowDescendant):
19         (WebCore::TextAutosizer::isWiderDescendant):
20         (WebCore::TextAutosizer::isAutosizingCluster):
21         (WebCore::TextAutosizer::clusterShouldBeAutosized):
22         (WebCore::TextAutosizer::measureDescendantTextWidth):
23  
24         * rendering/TextAutosizer.h: updated method prototypes.
25
26 2013-02-09  Rafael Brandao  <rafael.lobo@openbossa.org>
27
28         [TexMap] Separate classes per file in TextureMapperBackingStore.h
29         https://bugs.webkit.org/show_bug.cgi?id=109333
30
31         Reviewed by Noam Rosenthal.
32
33         TextureMapperBackingStore.h had the classes TextureMapperBackingStore,
34         TextureMapperTiledBackingStore, TextureMapperSurfaceBackingStore and
35         TextureMapperTile which was quite confusing. Now each one has its
36         own header and its own source file.
37
38         No new tests needed, refactoring only.
39
40         * CMakeLists.txt:
41         * GNUmakefile.list.am:
42         * Target.pri:
43         * WebCore.gypi:
44         * platform/graphics/texmap/GraphicsLayerTextureMapper.h:
45         * platform/graphics/texmap/TextureMapperBackingStore.cpp:
46         * platform/graphics/texmap/TextureMapperBackingStore.h:
47         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp: Added.
48         (WebCore):
49         (WebCore::TextureMapperSurfaceBackingStore::setGraphicsSurface):
50         (WebCore::TextureMapperSurfaceBackingStore::swapBuffersIfNeeded):
51         (WebCore::TextureMapperSurfaceBackingStore::texture):
52         (WebCore::TextureMapperSurfaceBackingStore::paintToTextureMapper):
53         * platform/graphics/texmap/TextureMapperSurfaceBackingStore.h: Added.
54         (WebCore):
55         (TextureMapperSurfaceBackingStore):
56         (WebCore::TextureMapperSurfaceBackingStore::create):
57         (WebCore::TextureMapperSurfaceBackingStore::~TextureMapperSurfaceBackingStore):
58         (WebCore::TextureMapperSurfaceBackingStore::TextureMapperSurfaceBackingStore):
59         * platform/graphics/texmap/TextureMapperTile.cpp: Added.
60         (WebCore):
61         (WebCore::TextureMapperTile::updateContents):
62         (WebCore::TextureMapperTile::paint):
63         * platform/graphics/texmap/TextureMapperTile.h: Added.
64         (WebCore):
65         (TextureMapperTile):
66         (WebCore::TextureMapperTile::texture):
67         (WebCore::TextureMapperTile::rect):
68         (WebCore::TextureMapperTile::setTexture):
69         (WebCore::TextureMapperTile::setRect):
70         (WebCore::TextureMapperTile::~TextureMapperTile):
71         (WebCore::TextureMapperTile::TextureMapperTile):
72         * platform/graphics/texmap/TextureMapperTiledBackingStore.cpp: Copied from Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.cpp.
73         (WebCore):
74         (WebCore::TextureMapperTiledBackingStore::TextureMapperTiledBackingStore):
75         (WebCore::TextureMapperTiledBackingStore::updateContentsFromImageIfNeeded):
76         (WebCore::TextureMapperTiledBackingStore::adjustedTransformForRect):
77         (WebCore::TextureMapperTiledBackingStore::paintToTextureMapper):
78         (WebCore::TextureMapperTiledBackingStore::drawBorder):
79         (WebCore::TextureMapperTiledBackingStore::drawRepaintCounter):
80         (WebCore::TextureMapperTiledBackingStore::createOrDestroyTilesIfNeeded):
81         (WebCore::TextureMapperTiledBackingStore::updateContents):
82         (WebCore::TextureMapperTiledBackingStore::texture):
83         * platform/graphics/texmap/TextureMapperTiledBackingStore.h: Added.
84         (WebCore):
85         (TextureMapperTiledBackingStore):
86         (WebCore::TextureMapperTiledBackingStore::create):
87         (WebCore::TextureMapperTiledBackingStore::~TextureMapperTiledBackingStore):
88         (WebCore::TextureMapperTiledBackingStore::setContentsToImage):
89         (WebCore::TextureMapperTiledBackingStore::rect):
90         * platform/graphics/texmap/coordinated/CoordinatedBackingStore.h:
91         * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
92
93 2013-02-09  Philip Rogers  <pdr@google.com>
94
95         Sanitize m_keyTimes for paced value animations
96         https://bugs.webkit.org/show_bug.cgi?id=108828
97
98         Reviewed by Dirk Schulze.
99
100         SVG animations with calcMode=paced calculate new m_keyTimes in
101         SVGAnimationElement::calculateKeyTimesForCalcModePaced() because paced animations do not
102         specify keyTimes. If an error occurs while calculating m_keyTimes, and there exists
103         user-specified values, a crash could occur because the user-specified values were not
104         sanitized.
105
106         This change clears user-specified keyTimes before calculating new ones.
107
108         Test: svg/animations/animate-keytimes-crash.html
109
110         * svg/SVGAnimationElement.cpp:
111         (WebCore::SVGAnimationElement::calculateKeyTimesForCalcModePaced):
112
113 2013-02-09  Eric Seidel  <eric@webkit.org>
114
115         Fix TextDocumentParser to play nice with threading
116         https://bugs.webkit.org/show_bug.cgi?id=109240
117
118         Reviewed by Adam Barth.
119
120         Before the HTML5 parser re-write the text document parser
121         was completely custom.  With the HTML5 parser, we just made
122         the TextDocumentParser use the HTMLDocumentParser with an
123         artificial script tag.
124
125         However, our solution was slightly over-engineered to avoid
126         lying about the column numbers of the first line of the text document
127         during parsing. :)
128
129         This change makes us use a simpler (and threading-compatible)
130         solution by just inserting a real "<pre>" tag into the
131         input stream instead of hacking one together with the treebuilder
132         and manually setting the Tokenizer state.
133
134         fast/parser/empty-text-resource.html covers this case.
135
136         * html/parser/TextDocumentParser.cpp:
137         (WebCore::TextDocumentParser::TextDocumentParser):
138         (WebCore::TextDocumentParser::insertFakePreElement):
139
140 2013-02-09  Kent Tamura  <tkent@chromium.org>
141
142         Add missing copyright header
143         https://bugs.webkit.org/show_bug.cgi?id=107507
144
145         * Resources/pagepopups/chromium/calendarPickerChromium.css:
146         * Resources/pagepopups/chromium/pickerCommonChromium.css:
147
148 2013-02-09  Kent Tamura  <tkent@chromium.org>
149
150         Fix crash by img[ismap] with content property
151         https://bugs.webkit.org/show_bug.cgi?id=108702
152
153         Reviewed by Adam Barth.
154
155         Test: fast/dom/HTMLAnchorElement/anchor-ismap-crash.html
156
157         * html/HTMLAnchorElement.cpp:
158         (WebCore::appendServerMapMousePosition):
159         Check if the renderer of an img element is RenderImage.
160
161 2013-02-09  Mike West  <mkwst@chromium.org>
162
163         Drop ExceptionCode from IDB's directionToString and modeToString.
164         https://bugs.webkit.org/show_bug.cgi?id=109143
165
166         Reviewed by Jochen Eisinger.
167
168         No caller of either IDBCursor::directionToString or
169         IDBTransaction::modeToString makes use of the ExceptionCode these
170         methods require. This patch removes the 'ExceptionCode&' parameter from
171         both methods and their callsites.
172
173         * Modules/indexeddb/IDBCursor.cpp:
174         (WebCore::IDBCursor::direction):
175         (WebCore::IDBCursor::directionToString):
176             Drop the 'ExceptionCode&' parameter, and replace the 'TypeError'
177             exception previously generated with ASSERT_NOT_REACHED.
178         * Modules/indexeddb/IDBCursor.h:
179         * Modules/indexeddb/IDBTransaction.cpp:
180         (WebCore::IDBTransaction::mode):
181         (WebCore::IDBTransaction::modeToString):
182             Drop the 'ExceptionCode&' parameter, and replace the 'TypeError'
183             exception previously generated with ASSERT_NOT_REACHED.
184         * Modules/indexeddb/IDBTransaction.h:
185
186 2013-02-09  Kondapally Kalyan  <kalyan.kondapally@intel.com>
187
188         [EFL][Qt][WebGL] Share the common code between GraphicsSurfaceGLX and X11WindowResources.
189         https://bugs.webkit.org/show_bug.cgi?id=106666
190
191         Reviewed by Kenneth Rohde Christiansen.
192
193         Covered by existing WebGL tests.
194
195         This patch removes any duplicate code in X11WindowResources and
196         GraphicsSurfaceGLX. No new functionality is added.
197
198         * PlatformEfl.cmake:
199         * Target.pri:
200         * platform/graphics/surfaces/egl/EGLConfigSelector.cpp:
201         (WebCore::EGLConfigSelector::pixmapContextConfig):
202         * platform/graphics/surfaces/egl/EGLConfigSelector.h:
203         (EGLConfigSelector):
204         * platform/graphics/surfaces/egl/EGLSurface.cpp:
205         (WebCore::EGLWindowTransportSurface::EGLWindowTransportSurface):
206         (WebCore::EGLWindowTransportSurface::destroy):
207         (WebCore::EGLWindowTransportSurface::setGeometry):
208         * platform/graphics/surfaces/egl/EGLSurface.h:
209         (WebCore):
210         (EGLWindowTransportSurface):
211         * platform/graphics/surfaces/glx/GLXConfigSelector.h:
212         (WebCore::GLXConfigSelector::GLXConfigSelector):
213         (WebCore::GLXConfigSelector::visualInfo):
214         (WebCore::GLXConfigSelector::pBufferContextConfig):
215         (WebCore::GLXConfigSelector::createSurfaceConfig):
216         (GLXConfigSelector):
217         * platform/graphics/surfaces/glx/GLXContext.cpp:
218         (WebCore::initializeARBExtensions):
219         (WebCore::GLXOffScreenContext::GLXOffScreenContext):
220         (WebCore::GLXOffScreenContext::initialize):
221         (WebCore::GLXOffScreenContext::platformReleaseCurrent):
222         (WebCore::GLXOffScreenContext::freeResources):
223         * platform/graphics/surfaces/glx/GLXContext.h:
224         (GLXOffScreenContext):
225         * platform/graphics/surfaces/glx/GLXSurface.cpp:
226         (WebCore::GLXTransportSurface::GLXTransportSurface):
227         (WebCore::GLXTransportSurface::setGeometry):
228         (WebCore::GLXTransportSurface::destroy):
229         (WebCore::GLXPBuffer::initialize):
230         * platform/graphics/surfaces/glx/GLXSurface.h:
231         (GLXTransportSurface):
232         (GLXPBuffer):
233         * platform/graphics/surfaces/glx/GraphicsSurfaceGLX.cpp:
234         (WebCore):
235         (WebCore::GraphicsSurfacePrivate::GraphicsSurfacePrivate):
236         (WebCore::GraphicsSurfacePrivate::initialize):
237         (GraphicsSurfacePrivate):
238         (WebCore::GraphicsSurfacePrivate::createSurface):
239         (WebCore::GraphicsSurfacePrivate::createPixmap):
240         (WebCore::GraphicsSurfacePrivate::display):
241         (WebCore::GraphicsSurfacePrivate::flags):
242         (WebCore::GraphicsSurfacePrivate::clear):
243         (WebCore::GraphicsSurface::platformPaintToTextureMapper):
244         No new functionality added. Made changes to take the common code into use.
245
246         * platform/graphics/surfaces/glx/X11WindowResources.h: Removed.
247         * platform/graphics/surfaces/glx/X11Helper.cpp: Renamed from Source/WebCore/platform/graphics/surfaces/glx/X11WindowResources.cpp.
248         (WebCore):
249         (WebCore::DisplayConnection::DisplayConnection):
250         (DisplayConnection):
251         (WebCore::DisplayConnection::~DisplayConnection):
252         (WebCore::DisplayConnection::display):
253         (OffScreenRootWindow):
254         (WebCore::OffScreenRootWindow::OffScreenRootWindow):
255         (WebCore::OffScreenRootWindow::~OffScreenRootWindow):
256         (WebCore::OffScreenRootWindow::rootWindow):
257         (WebCore::X11Helper::resizeWindow):
258         (WebCore::X11Helper::createOffScreenWindow):
259         (WebCore::X11Helper::destroyWindow):
260         (WebCore::X11Helper::isXRenderExtensionSupported):
261         (WebCore::X11Helper::nativeDisplay):
262         (WebCore::X11Helper::offscreenRootWindow):
263         * platform/graphics/surfaces/glx/X11Helper.h: Added.
264         (WebCore):
265         (WebCore::handleXPixmapCreationError):
266         (X11Helper):
267         (ScopedXPixmapCreationErrorHandler):
268         (WebCore::ScopedXPixmapCreationErrorHandler::ScopedXPixmapCreationErrorHandler):
269         (WebCore::ScopedXPixmapCreationErrorHandler::~ScopedXPixmapCreationErrorHandler):
270         (WebCore::ScopedXPixmapCreationErrorHandler::isValidOperation):
271         Moved common code from GraphicsSurfaceGLX to X11Helper.
272
273 2013-02-09  Andrey Lushnikov  <lushnikov@chromium.org>
274
275         Web Inspector: show whitespace characters in DTE
276         https://bugs.webkit.org/show_bug.cgi?id=108947
277
278         Reviewed by Pavel Feldman.
279
280         New test: inspector/editor/text-editor-show-whitespaces.html
281
282         Split consecutive whitespace characters into groups of 16, 8, 4, 2 and 1 and
283         add ::before pseudoclass for this groups which contains necessary
284         amount of "dots" (u+00b7). Add a setting "Show whitespace" for this
285         option in "Sources" section of "General" tab.
286
287         * English.lproj/localizedStrings.js:
288         * inspector/front-end/DefaultTextEditor.js:
289         (WebInspector.TextEditorMainPanel.prototype.wasShown):
290         (WebInspector.TextEditorMainPanel.prototype.willHide):
291         (WebInspector.TextEditorMainPanel.prototype._renderRanges):
292         (WebInspector.TextEditorMainPanel.prototype._renderWhitespaceCharsWithFixedSizeSpans):
293         (WebInspector.TextEditorMainPanel.prototype._paintLine):
294         * inspector/front-end/Settings.js:
295         * inspector/front-end/SettingsScreen.js:
296         (WebInspector.GenericSettingsTab):
297         * inspector/front-end/inspectorSyntaxHighlight.css:
298         (.webkit-whitespace-1::before):
299         (.webkit-whitespace-2::before):
300         (.webkit-whitespace-4::before):
301         (.webkit-whitespace-8::before):
302         (.webkit-whitespace-16::before):
303         (.webkit-whitespace::before):
304
305 2013-02-08  Eric Carlson  <eric.carlson@apple.com>
306
307         [Mac] respect in-band caption color
308         https://bugs.webkit.org/show_bug.cgi?id=109203
309
310         Reviewed by Dean Jackson.
311
312         Test: media/track/track-in-band-style.html
313
314         * WebCore.xcodeproj/project.pbxproj: Add HTMLDivElement.h to private headers because it is 
315             included by HTMLTextElement, which is included by HTMLMediaElement.h, which is included 
316             by files in WebKit/WebKit2.
317         * html/track/InbandTextTrack.cpp:
318         (WebCore::InbandTextTrack::addGenericCue): Set cue colors if necessary.
319
320         * html/track/TextTrackCue.h:
321         (WebCore::TextTrackCue::element): New, accessor for the cue element so it can be styled.
322
323         * html/track/TextTrackCueGeneric.cpp:
324         (WebCore::TextTrackCueGenericBoxElement::applyCSSProperties): Set container and cue background 
325             color if necessary.
326         (WebCore::TextTrackCueGeneric::operator==): Compare cue colors.
327         * html/track/TextTrackCueGeneric.h:
328         (WebCore::TextTrackCueGeneric::foregroundColor): Add color accessors.
329         (WebCore::TextTrackCueGeneric::setForegroundColor):
330         (WebCore::TextTrackCueGeneric::backgroundColor):
331         (WebCore::TextTrackCueGeneric::setBackgroundColor):
332
333         * page/CaptionUserPreferencesMac.mm:
334         (WebCore::CaptionUserPreferencesMac::registerForCaptionPreferencesChangedCallbacks): Always
335             regenerate override CSS when an element registers for callbacks.
336         (WebCore::CaptionUserPreferencesMac::captionsWindowCSS): Drive by fix of "window color" padding.
337         (WebCore::CaptionUserPreferencesMac::captionsStyleSheetOverride): Log the stylesheet generated
338             for easier debugging.
339
340         * platform/graphics/InbandTextTrackPrivateClient.h:
341         (WebCore::GenericCueData::foregroundColor): Add color getters/setters.
342         (WebCore::GenericCueData::setForegroundColor):
343         (WebCore::GenericCueData::backgroundColor):
344         (WebCore::GenericCueData::setBackgroundColor):
345
346         * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
347         (WebCore::makeRGBA32FromARGBCFArray): Initialize a RGBA32 from a CFArray of color values.
348         (WebCore::InbandTextTrackPrivateAVF::processCueAttributes): Process cue colors.
349
350 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
351
352         Move workerThreadCount from TestRunner to WebCore Internals
353         https://bugs.webkit.org/show_bug.cgi?id=109239
354
355         Reviewed by Darin Adler.
356
357         Add the new read-only property workerThreadCount.
358
359         * testing/Internals.cpp:
360         (WebCore::Internals::workerThreadCount):
361         (WebCore):
362         * testing/Internals.h:
363         (Internals):
364         * testing/Internals.idl:
365
366 2013-02-08  Dean Jackson  <dino@apple.com>
367
368         Snapshotted plug-in should use shadow root
369         https://bugs.webkit.org/show_bug.cgi?id=108284
370
371         Reviewed by Simon Fraser.
372
373         Take two! This time with updated exports file.
374
375         A snapshotted plugin needs to indicate to the user that it can be clicked
376         to be restarted. Previously this was done with an image that had embedded
377         text. Instead, we now use an internal shadow root to embed some markup that
378         will display instructions that can be localised.
379
380         The UA stylesheet for plug-ins provides a default styling for the label, which
381         can be overridden by ports.
382
383         In the process, RenderSnapshottedPlugIn no longer inherits from RenderEmbeddedObject,
384         since it is only responsible for drawing a paused plug-in. The snapshot creation
385         can work with the default renderer, but a shadow root requires something like
386         RenderBlock in order to draw its children. We swap from one renderer to another when
387         necessary either by creating the shadow root or by explicitly detaching and attaching
388         the plugin element.
389
390         Unfortunately this is difficult to test, because the snapshotting requires
391         time to execute, and also a PluginView to be instantiated.
392
393         * WebCore.exp.in: Export the InlineBox interface.
394
395         * css/plugIns.css:
396         (object::-webkit-snapshotted-plugin-content): New rules for a default label style.
397
398         * platform/LocalizedStrings.cpp: Make sure all ports have plugin strings, now it is called.
399         * platform/LocalizedStrings.h:
400         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
401         * platform/chromium/LocalizedStringsChromium.cpp:
402         * platform/efl/LocalizedStringsEfl.cpp:
403         * platform/gtk/LocalizedStringsGtk.cpp:
404         * platform/qt/LocalizedStringsQt.cpp:
405
406         * html/HTMLPlugInElement.cpp:
407         (WebCore::HTMLPlugInElement::defaultEventHandler): Take into account the fact
408         that RenderSnapshottedPlugIn no longer is an embedded object.
409
410         * html/HTMLPlugInImageElement.cpp:
411         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): New default values in constructor.
412         (WebCore::HTMLPlugInElement::defaultEventHandler): Make sure to call base class.
413         (WebCore::HTMLPlugInElement::willRecalcStyle): No need to reattach if we're a snapshot.
414         (WebCore::HTMLPlugInImageElement::createRenderer): If we're showing a snapshot, create such
415             a renderer, otherwise use the typical plug-in path.
416         (WebCore::HTMLPlugInImageElement::updateSnapshot): Keep a record of the snapshot, since we'll
417             need to give it to the renderer.
418         (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Build a subtree that will display a label.
419         * html/HTMLPlugInImageElement.h:
420         (HTMLPlugInImageElement): New member variable to record the snapshot image and whether the label
421             should show immediately.
422         (WebCore::HTMLPlugInImageElement::swapRendererTimerFired): The callback function triggered when we need
423             to swap to the Shadow Root.
424         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): The user has tapped on the snapshot so the plugin
425             in being recreated. Make sure we reattach so that a plugin renderer will be created.
426         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Make sure we set the right
427             displayState for snapshots.
428         * html/HTMLPlugInImageElement.h:
429         (HTMLPlugInImageElement): The new methods listed above.
430         (WebCore::HTMLPlugInImageElement::setShouldShowSnapshotLabelAutomatically): Indicates whether or not
431             a snapshot should be immediately labeled.
432
433         * page/ChromeClient.h: No need for plugInStartLabelImage any more.
434
435         * rendering/RenderSnapshottedPlugIn.cpp:
436         (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn): New inheritance.
437         (WebCore::RenderSnapshottedPlugIn::paint): If we're in the background paint phase, render the snapshot image.
438         (WebCore::RenderSnapshottedPlugIn::paintSnapshotImage): Rename.
439         (WebCore::RenderSnapshottedPlugIn::paintSnapshot): Rename.
440         (WebCore::RenderSnapshottedPlugIn::paintSnapshotWithLabel): Rename. No need for label sizes.
441         (WebCore::RenderSnapshottedPlugIn::getCursor):
442         (WebCore::RenderSnapshottedPlugIn::handleEvent): The renderer doesn't restart the plug-in any more. Tell the element and it will do it.
443         * rendering/RenderSnapshottedPlugIn.h:
444         (RenderSnapshottedPlugIn): New inheritance. Some method renaming.
445
446 2013-02-08  Dean Jackson  <dino@apple.com>
447
448         Rolling out r142333 and r142337 which broke Mac Release builds.
449
450 2013-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
451
452         Unreviewed, rolling out r142337.
453         http://trac.webkit.org/changeset/142337
454         https://bugs.webkit.org/show_bug.cgi?id=109339
455
456         Breaking Mac release builds (Requested by dino_ on #webkit).
457
458         * rendering/RenderSnapshottedPlugIn.h:
459
460 2013-02-08  Dean Jackson  <dino@apple.com>
461
462         Attempted Mac and GTK build fix after r142333.
463
464         * rendering/RenderSnapshottedPlugIn.h: Include InlineBox.h.
465
466 2013-02-08  Andy Estes  <aestes@apple.com>
467
468         Restore pre-r118852 behavior for EllipsisBox::nodeAtPoint()
469         https://bugs.webkit.org/show_bug.cgi?id=109277
470
471         Reviewed by Simon Fraser.
472
473         Test: fast/flexbox/line-clamp-link-after-ellipsis.html
474
475         Roll out r118852. Enough time has passed that this can't be done
476         mechanically, so transcribe the old method definition to current
477         WebCore interfaces.
478
479         * rendering/EllipsisBox.cpp:
480         (WebCore::EllipsisBox::markupBox): EllipsisBox no longer has
481         m_markupBox, so break the logic for finding the markup box from
482         paintMarkupBox() into its own function.
483         (WebCore::EllipsisBox::paintMarkupBox): Call markupBox().
484         (WebCore::EllipsisBox::nodeAtPoint): Transcribe the pre-r118852 implementation.
485         * rendering/EllipsisBox.h:
486         (EllipsisBox): Declare markupBox().
487
488 2013-02-08  Eric Carlson  <eric.carlson@apple.com>
489
490         [Mac] In-band closed caption tracks are not always initialized correctly
491         https://bugs.webkit.org/show_bug.cgi?id=109323
492
493         Reviewed by Dean Jackson.
494
495         No new tests, this fix makes existing tests less flakey.
496
497         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
498         (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Create and configure legible output
499             here instad of in tracksChanged.
500         (WebCore::MediaPlayerPrivateAVFoundationObjC::setClosedCaptionsVisible): Do nothing in a build with
501             in-band track support.
502         (WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged): Move legible output creation to 
503             createAVPlayerItem, don't set look at track media type to see if the movie has captions 
504             when we have support for in-band captions.
505
506 2013-02-08  Dean Jackson  <dino@apple.com>
507
508         Snapshotted plug-in should use shadow root
509         https://bugs.webkit.org/show_bug.cgi?id=108284
510
511         Reviewed by Simon Fraser.
512
513         A snapshotted plugin needs to indicate to the user that it can be clicked
514         to be restarted. Previously this was done with an image that had embedded
515         text. Instead, we now use an internal shadow root to embed some markup that
516         will display instructions that can be localised.
517
518         The UA stylesheet for plug-ins provides a default styling for the label, which
519         can be overridden by ports.
520
521         In the process, RenderSnapshottedPlugIn no longer inherits from RenderEmbeddedObject,
522         since it is only responsible for drawing a paused plug-in. The snapshot creation
523         can work with the default renderer, but a shadow root requires something like
524         RenderBlock in order to draw its children. We swap from one renderer to another when
525         necessary either by creating the shadow root or by explicitly detaching and attaching
526         the plugin element.
527
528         Unfortunately this is difficult to test, because the snapshotting requires
529         time to execute, and also a PluginView to be instantiated.
530
531         * css/plugIns.css:
532         (object::-webkit-snapshotted-plugin-content): New rules for a default label style.
533
534         * platform/LocalizedStrings.cpp: Make sure all ports have plugin strings, now it is called.
535         * platform/LocalizedStrings.h:
536         * platform/blackberry/LocalizedStringsBlackBerry.cpp:
537         * platform/chromium/LocalizedStringsChromium.cpp:
538         * platform/efl/LocalizedStringsEfl.cpp:
539         * platform/gtk/LocalizedStringsGtk.cpp:
540         * platform/qt/LocalizedStringsQt.cpp:
541
542         * html/HTMLPlugInElement.cpp:
543         (WebCore::HTMLPlugInElement::defaultEventHandler): Take into account the fact
544         that RenderSnapshottedPlugIn no longer is an embedded object.
545
546         * html/HTMLPlugInImageElement.cpp:
547         (WebCore::HTMLPlugInImageElement::HTMLPlugInImageElement): New default values in constructor.
548         (WebCore::HTMLPlugInElement::defaultEventHandler): Make sure to call base class.
549         (WebCore::HTMLPlugInElement::willRecalcStyle): No need to reattach if we're a snapshot.
550         (WebCore::HTMLPlugInImageElement::createRenderer): If we're showing a snapshot, create such
551             a renderer, otherwise use the typical plug-in path.
552         (WebCore::HTMLPlugInImageElement::updateSnapshot): Keep a record of the snapshot, since we'll
553             need to give it to the renderer.
554         (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot): Build a subtree that will display a label.
555         * html/HTMLPlugInImageElement.h:
556         (HTMLPlugInImageElement): New member variable to record the snapshot image and whether the label
557             should show immediately.
558         (WebCore::HTMLPlugInImageElement::swapRendererTimerFired): The callback function triggered when we need
559             to swap to the Shadow Root.
560         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot): The user has tapped on the snapshot so the plugin
561             in being recreated. Make sure we reattach so that a plugin renderer will be created.
562         (WebCore::HTMLPlugInImageElement::subframeLoaderWillCreatePlugIn): Make sure we set the right
563             displayState for snapshots.
564         * html/HTMLPlugInImageElement.h:
565         (HTMLPlugInImageElement): The new methods listed above.
566         (WebCore::HTMLPlugInImageElement::setShouldShowSnapshotLabelAutomatically): Indicates whether or not
567             a snapshot should be immediately labeled.
568
569         * page/ChromeClient.h: No need for plugInStartLabelImage any more.
570
571         * rendering/RenderSnapshottedPlugIn.cpp:
572         (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn): New inheritance.
573         (WebCore::RenderSnapshottedPlugIn::paint): If we're in the background paint phase, render the snapshot image.
574         (WebCore::RenderSnapshottedPlugIn::paintSnapshotImage): Rename.
575         (WebCore::RenderSnapshottedPlugIn::paintSnapshot): Rename.
576         (WebCore::RenderSnapshottedPlugIn::paintSnapshotWithLabel): Rename. No need for label sizes.
577         (WebCore::RenderSnapshottedPlugIn::getCursor):
578         (WebCore::RenderSnapshottedPlugIn::handleEvent): The renderer doesn't restart the plug-in any more. Tell the element and it will do it.
579         * rendering/RenderSnapshottedPlugIn.h:
580         (RenderSnapshottedPlugIn): New inheritance. Some method renaming.
581
582 2013-02-08  Kentaro Hara  <haraken@chromium.org>
583
584         {FocusIn,FocusOut,Focus,Blur}EventDispatchMediator should be in FocusEvent.cpp
585         https://bugs.webkit.org/show_bug.cgi?id=109265
586
587         Reviewed by Dimitri Glazkov.
588
589         Conventionally we put XXXEventDispatchMediator to XXXEvent.cpp.
590         We should move {FocusIn,FocusOut,Focus,Blur}EventDispatchMediator to FocusEvent.cpp.
591
592         No tests. No change in behavior.
593
594         * dom/EventDispatchMediator.cpp:
595         * dom/EventDispatchMediator.h:
596         * dom/FocusEvent.cpp:
597         (WebCore::FocusEventDispatchMediator::create):
598         (WebCore):
599         (WebCore::FocusEventDispatchMediator::FocusEventDispatchMediator):
600         (WebCore::FocusEventDispatchMediator::dispatchEvent):
601         (WebCore::BlurEventDispatchMediator::create):
602         (WebCore::BlurEventDispatchMediator::BlurEventDispatchMediator):
603         (WebCore::BlurEventDispatchMediator::dispatchEvent):
604         (WebCore::FocusInEventDispatchMediator::create):
605         (WebCore::FocusInEventDispatchMediator::FocusInEventDispatchMediator):
606         (WebCore::FocusInEventDispatchMediator::dispatchEvent):
607         (WebCore::FocusOutEventDispatchMediator::create):
608         (WebCore::FocusOutEventDispatchMediator::FocusOutEventDispatchMediator):
609         (WebCore::FocusOutEventDispatchMediator::dispatchEvent):
610         * dom/FocusEvent.h:
611         (WebCore):
612         (FocusEventDispatchMediator):
613         (BlurEventDispatchMediator):
614         (FocusInEventDispatchMediator):
615         (FocusOutEventDispatchMediator):
616         * dom/UIEvent.cpp:
617         * dom/UIEvent.h:
618
619 2013-02-08  Jer Noble  <jer.noble@apple.com>
620
621         Unreviewed build fix. MSVC (and other compilers) need a default: case in switch statement.
622
623         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
624         (WebCore::notificationName):
625
626 2013-02-08  Jer Noble  <jer.noble@apple.com>
627
628         Bring WebKit up to speed with latest Encrypted Media spec.
629         https://bugs.webkit.org/show_bug.cgi?id=97037
630
631         Reviewed by Eric Carlson.
632
633         The most recent version of the Encrypted Media Extensions spec breaks functionality out of the
634         HTMLMediaElement and into new MediaKeys and MediaKeySession classes. Since the CDM functionality
635         has been pulled out of the media element, we create a proxy CDM class and factory system for
636         creating specific CDM key system implementations. The spec also breaks out MediaKeyEvent
637         into distinct event classes, MediaKeyNeededEvent and MediaKeyMessageEvent, for needkey and
638         keymessage events, respectively.
639
640         Tests: media/encrypted-media/encrypted-media-v2-events.html
641                media/encrypted-media/encrypted-media-v2-syntax.html
642
643         CDM is a proxy class (a la MediaPlayer) for a specific CDMPrivateInterface implementation. A CDM
644         implementation is registered with the CDMFactory and will be created if that implementation supports
645         the key system passed into the MediaKeys constructor. CDMSession is a pure-virtual interface exposed
646         by concrete CDMPrivate subclasses.  Its lifetime is owned by MediaKeySession.
647         * Modules/encryptedmedia/CDM.cpp: Added.
648         (WebCore::installedCDMFactories): Initialize all the known CDM subtypes. Ports will add CDM implementations here.
649         (WebCore::CDM::registerCDMFactory): Registers a new CDMFactory using the passed in function pointers.
650         (WebCore::CDMFactoryForKeySystem): Return the first CDM factory which supports the requested key system.
651         (WebCore::CDM::supportsKeySystem): Walk the installed CDMs and ask if the given key system is supported.
652         (WebCore::CDM::supportsKeySystemMIMETypeAndCodec): Ditto, with an additional MIME type and codec string.
653         (WebCore::CDM::create): Simple constructor wrapper.
654         (WebCore::CDM::CDM): Simple constructor; calls bestCDMForKeySystem() to create it's private implementation.
655         (WebCore::CDM::~CDM): Simple destructor.
656         (WebCore::CDM::createSession): Creates a new CDMSession.
657         * Modules/encryptedmedia/CDM.h: Added.
658         (WebCore::CDM::keySystem): Simple accessor for m_keySystem.
659         (WebCore::CDMSession::CDMSession): Simple constructor.
660         (WebCore::CDMSession::~CDMSession): Simple destructor.
661         * Modules/encryptedmedia/CDMPrivate.h: Added.
662         (WebCore::CDMPrivateInterface::CDMPrivateInterface): Simple constructor.
663         (WebCore::CDMPrivateInterface::~CDMPrivateInterface): Simple destructor.
664
665         The new classes, MediaKeyMessageEvent and MediaKeyNeededEvent, take distinct subsets of the initializers of
666         the original MediaKeyMessageEvent.
667         * Modules/encryptedmedia/MediaKeyMessageEvent.cpp: Copied from Source/WebCore/html/MediaKeyEvent.cpp.
668         (WebCore::MediaKeyMessageEventInit::MediaKeyMessageEventInit): Initializer now only takes message and destinationURL
669             parameters.
670         (WebCore::MediaKeyMessageEvent::MediaKeyMessageEvent): Simple constructor.
671         (WebCore::MediaKeyMessageEvent::~MediaKeyMessageEvent): Simple destructor.
672         (WebCore::MediaKeyMessageEvent::interfaceName): Standard interfaceName.
673         * Modules/encryptedmedia/MediaKeyMessageEvent.h: Copied from Source/WebCore/html/MediaKeyEvent.h.
674         (WebCore::MediaKeyMessageEvent::create): Simple construction wrapper.
675         (WebCore::MediaKeyMessageEvent::message): Simple accessor for m_message.
676         (WebCore::MediaKeyMessageEvent::destinationURL): Simple accessor for m_destinationURL.
677         * Modules/encryptedmedia/MediaKeyMessageEvent.idl: Copied from Source/WebCore/html/MediaKeyEvent.idl.
678         * Modules/encryptedmedia/MediaKeyNeededEvent.cpp: Copied from Source/WebCore/html/MediaKeyEvent.h.
679         (WebCore::MediaKeyNeededEventInit::MediaKeyNeededEventInit): Initializer now only takes initData parameter.
680         (WebCore::MediaKeyNeededEvent::MediaKeyNeededEvent): Simple constructor.
681         (WebCore::MediaKeyNeededEvent::~MediaKeyNeededEvent): Simple destructor.
682         (WebCore::MediaKeyNeededEvent::interfaceName): Standard interfaceName.
683         * Modules/encryptedmedia/MediaKeyNeededEvent.h: Copied from Source/WebCore/html/MediaKeyEvent.h.
684         (WebCore::MediaKeyNeededEvent::create): Simple construction wrapper.
685         (WebCore::MediaKeyNeededEvent::initData): Simple accessor for m_initData.
686         * Modules/encryptedmedia/MediaKeyNeededEvent.idl: Copied from Source/WebCore/html/MediaKeyEvent.idl.
687
688         MediaKeySession is a new class that maps keys and key requests to a given session ID:
689         * Modules/encryptedmedia/MediaKeySession.cpp: Added.
690         (WebCore::MediaKeySession::create): Simple construction wrapper.
691         (WebCore::MediaKeySession::MediaKeySession): Simple constructor.
692         (WebCore::MediaKeySession::~MediaKeySession): Simple destructor; calls close().
693         (WebCore::MediaKeySession::setError): Simple setter for m_error;
694         (WebCore::MediaKeySession::close): Tell the CDM to clear any saved session keys.
695         (WebCore::MediaKeySession::generateKeyRequest): Start a one-shot timer, handled in keyRequestTimerFired.
696         (WebCore::MediaKeySession::keyRequestTimerFired): Follow the steps in the spec; ask the CDM to generate a key request.
697         (WebCore::MediaKeySession::addKey): Start a one-shot timer, handled in addKeyTimerFired.
698         (WebCore::MediaKeySession::addKeyTimerFired): Follow the steps in the spec; provide the key data to the CDM.
699         * Modules/encryptedmedia/MediaKeySession.h: Added.
700         (WebCore::MediaKeySession::keySystem): Simple accessor for m_keySystem.
701         (WebCore::MediaKeySession::sessionId): Simple accessor for m_sessionId.
702         (WebCore::MediaKeySession::error): Simple accessor for m_error;
703         * Modules/encryptedmedia/MediaKeySession.idl:
704
705         MediaKeySession inherits from EventTarget, and must override the pure virtual functions in that class:
706         * Modules/encryptedmedia/MediaKeySession.cpp: Added.
707         (WebCore::MediaKeySession::interfaceName):
708         * Modules/encryptedmedia/MediaKeySession.h: Added.
709         (WebCore::MediaKeySession::refEventTarget):
710         (WebCore::MediaKeySession::derefEventTarget):
711         (WebCore::MediaKeySession::eventTargetData):
712         (WebCore::MediaKeySession::ensureEventTargetData):
713         (WebCore::MediaKeySession::scriptExecutionContext):
714
715         MediaKeys is a new class that encapsulates a CDM and a number of key sessions:
716         * Modules/encryptedmedia/MediaKeys.cpp: Added.
717         (WebCore::MediaKeys::create): Throw an exception if the key system parameter is unsupported; create a CDM object
718             and a new MediaKeys session.
719         (WebCore::MediaKeys::MediaKeys): Simple constructor.
720         (WebCore::MediaKeys::~MediaKeys): Simple destructor.
721         (WebCore::MediaKeys::createSession): Follow the spec and create a new key session.
722         * Modules/encryptedmedia/MediaKeys.h: Added.
723         * Modules/encryptedmedia/MediaKeys.idl: Copied from Source/WebCore/html/MediaError.idl.
724
725         Provide a new interface to HTMLMediaElement for MediaPlayer which does not require a sessionId or a key system:
726         * html/HTMLMediaElement.cpp:
727         (WebCore::HTMLMediaElement::mediaPlayerKeyNeeded):
728         * platform/graphics/MediaPlayer.cpp:
729         (WebCore::MediaPlayer::keyNeeded):
730
731         MediaKeyError now has a systemCode parameter and member variable.
732         * html/MediaKeyError.h:
733         (WebCore::MediaKeyError::create): Take a systemCode parameter with a default (0) value.
734         (WebCore::MediaKeyError::MediaKeyError): Ditto.
735         (WebCore::MediaKeyError::systemCode): Simple accessor for m_systemCode.
736         * html/MediaKeyError.idl:
737
738         Add new methods to HTMLMediaElement to support MediaKeys. Support different initializer
739         for the MediaKeyNeededEvent.
740         * html/HTMLMediaElement.cpp:
741         (WebCore::HTMLMediaElement::setMediaKeys): Simple setter for m_mediaKeys.
742         (WebCore::HTMLMediaElement::mediaPlayerKeyNeeded): This version takes fewer parameters
743             than the deprecated version.
744         * html/HTMLMediaElement.h:
745         (WebCore::HTMLMediaElement::mediaKeys): Simple accessor for m_mediaKeys.
746         * html/HTMLMediaElement.idl: Add the mediaKeys attribute.
747
748         Add an ENABLE(ENCRYPTED_MEDIA_V2) check to the existing ENABLE(ENCRYPTED_MEDIA) one:
749         * html/MediaError.h:
750         * html/MediaError.idl:
751         * platform/graphics/MediaPlayer.cpp:
752         (WebCore::bestMediaEngineForTypeAndCodecs):
753         (WebCore::MediaPlayer::supportsType):
754         * platform/graphics/MediaPlayer.h:
755         (WebCore::MediaPlayer::keyNeeded): This version takes fewer parameters than the
756             deprecated version.
757
758         Support the new version of canPlayType which takes an extra parameter:
759         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
760         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
761         (WebCore::MediaPlayerPrivateAVFoundationObjC::registerMediaEngine):
762         (WebCore::MediaPlayerPrivateAVFoundationObjC::extendedSupportsType):
763         * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
764         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
765         (WebCore::MediaPlayerPrivateQTKit::registerMediaEngine):
766         (WebCore::MediaPlayerPrivateQTKit::extendedSupportsType):
767
768         Add a mock CDM for use within DRT and WKTR to test the MediaKeys and MediaKeySession
769         APIs and events:
770         * testing/Internals.cpp:
771         (WebCore::Internals::initializeMockCDM): Add the MockCDM class to the CDM factories.
772         * testing/Internals.h:
773         * testing/Internals.idl: Add the initializeMockCDM() method.
774         * testing/MockCDM.cpp: Added.
775         (WebCore::MockCDM::supportsKeySystem): Only supports the 'com.webcore.mock' key system.
776         (WebCore::MockCDM::supportsMIMEType): Only supports the 'video/mock' mime type.
777         (WebCore::initDataPrefix): Static method which returns a Uint8Array containing 'mock'.
778         (WebCore::keyPrefix): Static method which returns a Uint8Array containing 'key'.
779         (WebCore::keyRequest): Static method which returns a Uint8Array containing 'request'.
780         (WebCore::generateSessionId): Return a monotonically increasing number.
781         (WebCore::MockCDMSession::MockCDMSession): Simple constructor.
782         (WebCore::MockCDMSession::generateKeyRequest): Ignores the parameters and returns a keyRequest() array.
783         (WebCore::MockCDMSession::releaseKeys): No-op.
784         (WebCore::MockCDMSession::addKey): Checks that the key starts with the keyPrefix() array.
785         * testing/MockCDM.h: Added.
786         (WebCore::MockCDM::create):
787         (WebCore::MockCDM::~MockCDM): Simple destructor.
788         (WebCore::MockCDM::MockCDM): Simple constructor.
789
790         Add the new classes to the built system:
791         * Configurations/FeatureDefines.xcconfig:
792         * DerivedSources.make:
793         * WebCore.exp.in:
794         * WebCore.xcodeproj/project.pbxproj:
795
796         Miscelaneous changes:
797         * dom/EventNames.in: Add the two new event types, MediaKeyMessageEvent and MediaKeyNeededEvent.
798         * dom/EventTargetFactory.in: Add the new EventTarget, MediaKeySession.
799         * page/DOMWindow.idl: Add constructors for the new classes to the window object.
800
801 2013-02-08  Chris Fleizach  <cfleizach@apple.com>
802
803         Refactor platform-specific code in SpeechSynthesis
804         https://bugs.webkit.org/show_bug.cgi?id=107414
805
806         Reviewed by Sam Weinig.
807
808         Refactor WebSpeech code to use a platform mechanism to provide access to platform resources.
809
810         * Modules/speech/DOMWindowSpeechSynthesis.cpp:
811         (WebCore::DOMWindowSpeechSynthesis::from):
812         * Modules/speech/SpeechSynthesis.cpp:
813         (WebCore::SpeechSynthesis::SpeechSynthesis):
814         (WebCore):
815         (WebCore::SpeechSynthesis::voicesDidChange):
816         (WebCore::SpeechSynthesis::getVoices):
817         (WebCore::SpeechSynthesis::pending):
818         (WebCore::SpeechSynthesis::speaking):
819         (WebCore::SpeechSynthesis::paused):
820         (WebCore::SpeechSynthesis::speak):
821         (WebCore::SpeechSynthesis::cancel):
822         (WebCore::SpeechSynthesis::pause):
823         (WebCore::SpeechSynthesis::resume):
824         * Modules/speech/SpeechSynthesis.h:
825         (WebCore):
826         (SpeechSynthesis):
827         (WebCore::SpeechSynthesis::didStartSpeaking):
828         (WebCore::SpeechSynthesis::didFinishSpeaking):
829         (WebCore::SpeechSynthesis::speakingErrorOccurred):
830         * Modules/speech/SpeechSynthesisUtterance.cpp:
831         (WebCore::SpeechSynthesisUtterance::SpeechSynthesisUtterance):
832         * Modules/speech/SpeechSynthesisUtterance.h:
833         (WebCore::SpeechSynthesisUtterance::text):
834         (WebCore::SpeechSynthesisUtterance::setText):
835         (WebCore::SpeechSynthesisUtterance::lang):
836         (WebCore::SpeechSynthesisUtterance::setLang):
837         (WebCore::SpeechSynthesisUtterance::voiceURI):
838         (WebCore::SpeechSynthesisUtterance::setVoiceURI):
839         (WebCore::SpeechSynthesisUtterance::volume):
840         (WebCore::SpeechSynthesisUtterance::setVolume):
841         (WebCore::SpeechSynthesisUtterance::rate):
842         (WebCore::SpeechSynthesisUtterance::setRate):
843         (WebCore::SpeechSynthesisUtterance::pitch):
844         (WebCore::SpeechSynthesisUtterance::setPitch):
845         (SpeechSynthesisUtterance):
846         (WebCore::SpeechSynthesisUtterance::platformUtterance):
847         * Modules/speech/SpeechSynthesisVoice.cpp:
848         (WebCore::SpeechSynthesisVoice::create):
849         (WebCore::SpeechSynthesisVoice::SpeechSynthesisVoice):
850         * Modules/speech/SpeechSynthesisVoice.h:
851         (SpeechSynthesisVoice):
852         (WebCore::SpeechSynthesisVoice::voiceURI):
853         (WebCore::SpeechSynthesisVoice::name):
854         (WebCore::SpeechSynthesisVoice::lang):
855         (WebCore::SpeechSynthesisVoice::localService):
856         (WebCore::SpeechSynthesisVoice::isDefault):
857         * Modules/speech/mac/SpeechSynthesisMac.mm:
858         * WebCore.xcodeproj/project.pbxproj:
859         * platform/PlatformSpeechSynthesis.h: Added.
860         (WebCore):
861         (PlatformSpeechSynthesis):
862         * platform/PlatformSpeechSynthesisUtterance.cpp: Added.
863         (WebCore):
864         (WebCore::PlatformSpeechSynthesisUtterance::PlatformSpeechSynthesisUtterance):
865         * platform/PlatformSpeechSynthesisUtterance.h: Added.
866         (WebCore):
867         (PlatformSpeechSynthesisUtteranceClient):
868         (WebCore::PlatformSpeechSynthesisUtteranceClient::~PlatformSpeechSynthesisUtteranceClient):
869         (PlatformSpeechSynthesisUtterance):
870         (WebCore::PlatformSpeechSynthesisUtterance::text):
871         (WebCore::PlatformSpeechSynthesisUtterance::setText):
872         (WebCore::PlatformSpeechSynthesisUtterance::lang):
873         (WebCore::PlatformSpeechSynthesisUtterance::setLang):
874         (WebCore::PlatformSpeechSynthesisUtterance::voiceURI):
875         (WebCore::PlatformSpeechSynthesisUtterance::setVoiceURI):
876         (WebCore::PlatformSpeechSynthesisUtterance::volume):
877         (WebCore::PlatformSpeechSynthesisUtterance::setVolume):
878         (WebCore::PlatformSpeechSynthesisUtterance::rate):
879         (WebCore::PlatformSpeechSynthesisUtterance::setRate):
880         (WebCore::PlatformSpeechSynthesisUtterance::pitch):
881         (WebCore::PlatformSpeechSynthesisUtterance::setPitch):
882         * platform/PlatformSpeechSynthesisVoice.cpp: Added.
883         (WebCore):
884         (WebCore::PlatformSpeechSynthesisVoice::create):
885         (WebCore::PlatformSpeechSynthesisVoice::PlatformSpeechSynthesisVoice):
886         * platform/PlatformSpeechSynthesisVoice.h: Added.
887         (WebCore):
888         (PlatformSpeechSynthesisVoice):
889         (WebCore::PlatformSpeechSynthesisVoice::voiceURI):
890         (WebCore::PlatformSpeechSynthesisVoice::name):
891         (WebCore::PlatformSpeechSynthesisVoice::lang):
892         (WebCore::PlatformSpeechSynthesisVoice::localService):
893         (WebCore::PlatformSpeechSynthesisVoice::isDefault):
894         * platform/PlatformSpeechSynthesizer.cpp: Added.
895         (WebCore):
896         (WebCore::PlatformSpeechSynthesizer::PlatformSpeechSynthesizer):
897         * platform/PlatformSpeechSynthesizer.h: Added.
898         (WebCore):
899         (PlatformSpeechSynthesizerClient):
900         (WebCore::PlatformSpeechSynthesizerClient::~PlatformSpeechSynthesizerClient):
901         (PlatformSpeechSynthesizer):
902         (WebCore::PlatformSpeechSynthesizer::voiceList):
903         * platform/mac/PlatformSpeechSynthesisMac.mm: Added.
904         (WebCore):
905         (WebCore::PlatformSpeechSynthesis::create):
906         (WebCore::PlatformSpeechSynthesis::PlatformSpeechSynthesis):
907         (WebCore::PlatformSpeechSynthesis::platformSpeak):
908         * platform/mac/PlatformSpeechSynthesizerMac.mm: Added.
909         (WebCore):
910         (WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
911         (WebCore::PlatformSpeechSynthesizer::speak):
912
913 2013-02-08  Dean Jackson  <dino@apple.com>
914
915         Put snapshotting label text into localizable strings
916         https://bugs.webkit.org/show_bug.cgi?id=108268
917
918         Reviewed by Simon Fraser.
919
920         In preparation for a snapshotted plug-in using a ShadowRoot, allow
921         its label to be localized.
922
923         * English.lproj/Localizable.strings:
924         * platform/LocalizedStrings.cpp:
925         (WebCore::snapshottedPlugInLabelTitle): New method for returning title.
926         (WebCore::snapshottedPlugInLabelSubtitle): New method for returning subtitle.
927         * platform/LocalizedStrings.h:
928
929 2013-02-08  Dean Jackson  <dino@apple.com>
930
931         Do not register autostart for plugins from file:// (or nowhere)
932         https://bugs.webkit.org/show_bug.cgi?id=108271
933
934         Reviewed by Tim Horton.
935
936         If the page url origin is treated as a local URL, don't attempt
937         to add it to the auto-start list.
938
939         * html/HTMLPlugInImageElement.cpp:
940         (WebCore::HTMLPlugInImageElement::userDidClickSnapshot):
941
942 2013-02-08  Adam Barth  <abarth@webkit.org>
943
944         Use WeakPtrs to communicate between the HTMLDocumentParser and the BackgroundHTMLParser
945         https://bugs.webkit.org/show_bug.cgi?id=107190
946
947         Reviewed by Eric Seidel.
948
949         This patch replaces the parser map with WeakPtr. We now use WeakPtrs to
950         communicate from the main thread to the background thread. (We were
951         already using WeakPtrs to communicate from the background thread to the
952         main thread.) This change lets us remove a bunch of boilerplate code.
953
954         * html/parser/BackgroundHTMLParser.cpp:
955         (WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
956         (WebCore::BackgroundHTMLParser::stop):
957         (WebCore):
958         * html/parser/BackgroundHTMLParser.h:
959         (WebCore::BackgroundHTMLParser::create):
960         (BackgroundHTMLParser):
961         * html/parser/HTMLDocumentParser.cpp:
962         (WebCore::HTMLDocumentParser::didFailSpeculation):
963         (WebCore::HTMLDocumentParser::startBackgroundParser):
964         (WebCore::HTMLDocumentParser::stopBackgroundParser):
965         (WebCore::HTMLDocumentParser::append):
966         (WebCore::HTMLDocumentParser::finish):
967         * html/parser/HTMLDocumentParser.h:
968         (WebCore):
969         (HTMLDocumentParser):
970
971 2013-02-07  Roger Fong  <roger_fong@apple.com>
972
973         VS2010 WebCore TestSupport project.
974         https://bugs.webkit.org/show_bug.cgi?id=107034.
975
976         Reviewed by Brent Fulgham.
977
978         * WebCore.vcxproj/WebCoreTestSupport.vcxproj: Added.
979         * WebCore.vcxproj/WebCoreTestSupport.vcxproj.filters: Added.
980
981 2013-02-08  ChangSeok Oh  <shivamidow@gmail.com>
982
983         [GTK][AC] GraphicsLayerActor code clean up after clutter version up.
984         https://bugs.webkit.org/show_bug.cgi?id=109304
985
986         Reviewed by Gustavo Noronha Silva.
987
988         This patch cleans up GraphicsLayerActor functions by using new clutter apis
989         and makes existing functions simple & readable.
990
991         No new tests since no change in functionality
992
993         * platform/graphics/clutter/GraphicsLayerActor.cpp:
994         (_GraphicsLayerActorPrivate):
995         (graphicsLayerActorApplyTransform):
996         (graphicsLayerActorPaint):
997         (graphicsLayerActorDraw):
998         (graphicsLayerActorUpdateTexture):
999         (drawLayerContents):
1000         (graphicsLayerActorNew):
1001         (graphicsLayerActorInvalidateRectangle):
1002         (graphicsLayerActorSetTransform):
1003         (graphicsLayerActorSetAnchorPoint):
1004         (graphicsLayerActorGetAnchorPoint):
1005         (graphicsLayerActorSetScrollPosition):
1006         * platform/graphics/clutter/PlatformClutterAnimation.h:
1007
1008 2013-02-08  Harald Alvestrand  <hta@google.com>
1009
1010         Fix and test for missing return statement
1011
1012         RTCPeerConnection.getStats() failed when remote stats were instantiated.
1013         https://bugs.webkit.org/show_bug.cgi?id=109292
1014
1015         Reviewed by Adam Barth.
1016
1017         Tested by extending the existing mock's behaviour.
1018
1019         * Modules/mediastream/RTCStatsReport.cpp:
1020         (WebCore::RTCStatsReport::addElement):
1021
1022 2013-02-08  Anton Vayvod  <avayvod@chromium.org>
1023
1024         [Text Autosizing] Split isAutosizingCluster into three independent checks
1025         https://bugs.webkit.org/show_bug.cgi?id=109093
1026
1027         Refactoring to create more flexible version of isAutosizingCluster since there're more types
1028         of autosizing cluster now: narrower than the parent cluster, wider than the parent cluster
1029         and the one that doesn't depend on the parent cluster.
1030
1031         Reviewed by Kenneth Rohde Christiansen.
1032
1033         Refactoring, no test changes.
1034
1035         * rendering/TextAutosizer.cpp:
1036
1037         (WebCore::TextAutosizer::isNarrowDescendant):
1038
1039             Separate check for the container to be of the narrow-descendant type. Was a part of
1040             isAutosizingCluster().
1041
1042         (WebCore::TextAutosizer::isWiderDescendant):
1043
1044             Separate check for the container to be of the wider-descendant type. Was a part of
1045             isAutosizingCluster().
1046
1047         (WebCore::TextAutosizer::isIndependentDescendant):
1048
1049             Separate check for the container to be autosized separately from the ancestor cluster.
1050             Checks for conditions independent of the aforementioned cluster.
1051
1052         (WebCore::TextAutosizer::isAutosizingCluster):
1053
1054             Handy method to check all separate conditions together.
1055
1056         (WebCore::TextAutosizer::processSubtree):
1057         (WebCore::TextAutosizer::processCluster):
1058         (WebCore::TextAutosizer::processContainer):
1059         (WebCore::TextAutosizer::clusterShouldBeAutosized):
1060         (WebCore::TextAutosizer::measureDescendantTextWidth):
1061         (WebCore::TextAutosizer::findFirstTextLeafNotInCluster):
1062
1063             The methods above were updated to use new functions/arguments.
1064
1065         * rendering/TextAutosizer.h:
1066
1067             Updated/added method definitions.
1068
1069 2013-02-08  Vsevolod Vlasov  <vsevik@chromium.org>
1070
1071         Web Inspector: Extension sever should use Workspace.projectForType() instead of Workspace.project()
1072         https://bugs.webkit.org/show_bug.cgi?id=109301
1073
1074         Reviewed by Alexander Pavlov.
1075
1076         * inspector/front-end/ExtensionServer.js:
1077         (WebInspector.ExtensionServer.prototype._onGetPageResources):
1078
1079 2013-02-04  Yury Semikhatsky  <yurys@chromium.org>
1080
1081         Web Inspector: simplify Memory.getDOMNodeCount implementation
1082         https://bugs.webkit.org/show_bug.cgi?id=108821
1083
1084         Reviewed by Alexander Pavlov.
1085
1086         Removed Memory.getDOMNodeCount command from the protocol. Memory.getDOMCounters
1087         should be used instead.
1088
1089         * inspector/Inspector.json:
1090         * inspector/InspectorMemoryAgent.cpp:
1091         * inspector/InspectorMemoryAgent.h:
1092         (InspectorMemoryAgent):
1093
1094 2013-02-08  Yury Semikhatsky  <yurys@chromium.org>
1095
1096         Web Inspector: refactor MemoryStatistics.js
1097         https://bugs.webkit.org/show_bug.cgi?id=109299
1098
1099         Reviewed by Vsevolod Vlasov.
1100
1101         Extracted functionality specific to DOM counter graphs drawing into
1102         separate methods on MemoryStatistics class.
1103         Introduced CounterUIBase base class for DOMCounterUI that contains
1104         functionality which can be shared with native memory graph.
1105
1106         * inspector/front-end/MemoryStatistics.js:
1107         (WebInspector.MemoryStatistics):
1108         (WebInspector.CounterUIBase):
1109         (WebInspector.CounterUIBase.prototype.updateCurrentValue):
1110         (WebInspector.CounterUIBase.prototype.clearCurrentValueAndMarker):
1111         (WebInspector.CounterUIBase.prototype.get visible):
1112         (WebInspector.DOMCounterUI):
1113         (WebInspector.DOMCounterUI.prototype.discardImageUnderMarker):
1114         (WebInspector.MemoryStatistics.prototype._onMouseOut):
1115         (WebInspector.MemoryStatistics.prototype._clearCurrentValueAndMarker):
1116         (WebInspector.MemoryStatistics.prototype._refreshCurrentValues):
1117         (WebInspector.MemoryStatistics.prototype._updateCurrentValue):
1118         (WebInspector.MemoryStatistics.prototype._highlightCurrentPositionOnGraphs):
1119         (WebInspector.MemoryStatistics.prototype._restoreImageUnderMarker):
1120         (WebInspector.MemoryStatistics.prototype._saveImageUnderMarker):
1121         (WebInspector.MemoryStatistics.prototype._drawMarker):
1122         (WebInspector.MemoryStatistics.prototype._clear):
1123         (WebInspector.MemoryStatistics.prototype._discardImageUnderMarker):
1124
1125 2013-02-08  Mike West  <mkwst@chromium.org>
1126
1127         Add a new IGNORE_EXCEPTION helper to ignore ExceptionCodes when they are expected but uninteresting
1128         https://bugs.webkit.org/show_bug.cgi?id=108771
1129
1130         Reviewed by Eric Seidel.
1131
1132         In cases where the ExceptionCode passed into a function is completely
1133         ignored, this patch replaces it with a new IGNORE_EXCEPTION macro. This
1134         makes our expectations about possible exceptions (or lack thereof)
1135         explicit, rather than relying on implicit assumptions about whether a
1136         variable is intentionally uninitialized or not. It also removes
1137         knowledge about the internals of ExceptionCodes (that they're currently
1138         ints, for instance) from code that shouldn't care, which will help with
1139         future refactorings.
1140
1141         The implementation is entirely based upon ASSERT_NO_EXCEPTION, and
1142         shouldn't have any visible effect on the web. As long as all the
1143         current tests pass, we're good.
1144
1145         * Modules/indexeddb/IDBRequest.cpp:
1146         (WebCore::IDBRequest::dispatchEvent):
1147         (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
1148         * Modules/indexeddb/IDBTransaction.cpp:
1149         (WebCore::IDBTransaction::stop):
1150         * Modules/websockets/WebSocketChannel.cpp:
1151         (WebCore::WebSocketChannel::processBuffer):
1152         * dom/Document.cpp:
1153         (WebCore::Document::processHttpEquiv):
1154         * dom/ExceptionCodePlaceholder.h:
1155         (WebCore):
1156         * dom/Node.cpp:
1157         (WebCore::Node::normalize):
1158         * dom/Text.cpp:
1159         (WebCore::Text::replaceWholeText):
1160         * editing/AlternativeTextController.cpp:
1161         (WebCore::AlternativeTextController::insertDictatedText):
1162         * editing/AppendNodeCommand.cpp:
1163         (WebCore::AppendNodeCommand::doApply):
1164         (WebCore::AppendNodeCommand::doUnapply):
1165         * editing/CompositeEditCommand.cpp:
1166         (WebCore::CompositeEditCommand::insertNewDefaultParagraphElementAt):
1167         * editing/DeleteFromTextNodeCommand.cpp:
1168         (WebCore::DeleteFromTextNodeCommand::doUnapply):
1169         * editing/Editor.cpp:
1170         (WebCore::dispatchEditableContentChangedEvents):
1171         (WebCore::Editor::applyEditingStyleToElement):
1172         * editing/EditorCommand.cpp:
1173         (WebCore::executeFormatBlock):
1174         * editing/FormatBlockCommand.cpp:
1175         (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
1176         * editing/InsertIntoTextNodeCommand.cpp:
1177         (WebCore::InsertIntoTextNodeCommand::doApply):
1178         (WebCore::InsertIntoTextNodeCommand::doUnapply):
1179         * editing/InsertListCommand.cpp:
1180         (WebCore::InsertListCommand::doApplyForSingleParagraph):
1181         * editing/InsertNodeBeforeCommand.cpp:
1182         (WebCore::InsertNodeBeforeCommand::doApply):
1183         (WebCore::InsertNodeBeforeCommand::doUnapply):
1184         * editing/RemoveCSSPropertyCommand.cpp:
1185         (WebCore::RemoveCSSPropertyCommand::doApply):
1186         (WebCore::RemoveCSSPropertyCommand::doUnapply):
1187         * editing/RemoveNodeCommand.cpp:
1188         (WebCore::RemoveNodeCommand::doApply):
1189         (WebCore::RemoveNodeCommand::doUnapply):
1190         * editing/ReplaceSelectionCommand.cpp:
1191         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
1192         * editing/TextIterator.cpp:
1193         (WebCore::TextIterator::getLocationAndLengthFromRange):
1194         * editing/WrapContentsInDummySpanCommand.cpp:
1195         (WebCore::WrapContentsInDummySpanCommand::executeApply):
1196         (WebCore::WrapContentsInDummySpanCommand::doUnapply):
1197         * editing/htmlediting.cpp:
1198         (WebCore::comparePositions):
1199         * editing/markup.cpp:
1200         (WebCore::highestAncestorToWrapMarkup):
1201         * html/FTPDirectoryDocument.cpp:
1202         (WebCore::FTPDirectoryDocumentParser::appendEntry):
1203         (WebCore::FTPDirectoryDocumentParser::createTDForFilename):
1204         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
1205         (WebCore::FTPDirectoryDocumentParser::createBasicDocument):
1206         * html/HTMLMediaElement.cpp:
1207         (WebCore::HTMLMediaElement::rewind):
1208         (WebCore::HTMLMediaElement::returnToRealtime):
1209         (WebCore::HTMLMediaElement::playInternal):
1210         (WebCore::HTMLMediaElement::percentLoaded):
1211         (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
1212         (WebCore::HTMLMediaElement::mediaPlayerDurationChanged):
1213         (WebCore::HTMLMediaElement::applyMediaFragmentURI):
1214         * html/HTMLOutputElement.cpp:
1215         (WebCore::HTMLOutputElement::setTextContentInternal):
1216         * html/HTMLSelectElement.cpp:
1217         (WebCore::HTMLSelectElement::remove):
1218         * html/HTMLTableElement.cpp:
1219         (WebCore::HTMLTableElement::createTHead):
1220         (WebCore::HTMLTableElement::deleteTHead):
1221         (WebCore::HTMLTableElement::createTFoot):
1222         (WebCore::HTMLTableElement::deleteTFoot):
1223         (WebCore::HTMLTableElement::createCaption):
1224         (WebCore::HTMLTableElement::deleteCaption):
1225         * html/HTMLTextAreaElement.cpp:
1226         (WebCore::HTMLTextAreaElement::setDefaultValue):
1227         * html/ImageDocument.cpp:
1228         (WebCore::ImageDocument::createDocumentStructure):
1229         * html/InputType.cpp:
1230         (WebCore::InputType::stepUpFromRenderer):
1231         * html/MediaController.cpp:
1232         (MediaController::bringElementUpToSpeed):
1233         (MediaController::asyncEventTimerFired):
1234         * html/MediaDocument.cpp:
1235         (WebCore::MediaDocumentParser::createDocumentStructure):
1236         (WebCore::MediaDocument::replaceMediaElementTimerFired):
1237         * html/PluginDocument.cpp:
1238         (WebCore::PluginDocumentParser::createDocumentStructure):
1239         * html/RangeInputType.cpp:
1240         (WebCore::RangeInputType::handleKeydownEvent):
1241         * html/TimeRanges.cpp:
1242         (TimeRanges::contain):
1243         (TimeRanges::nearest):
1244         * html/canvas/CanvasRenderingContext2D.cpp:
1245         (WebCore::CanvasRenderingContext2D::drawImageFromRect):
1246         * html/shadow/MediaControlElementTypes.cpp:
1247         (WebCore::MediaControlSeekButtonElement::seekTimerFired):
1248         * html/shadow/MediaControlElements.cpp:
1249         (WebCore::MediaControlPanelElement::setPosition):
1250         (WebCore::MediaControlPanelElement::resetPosition):
1251         (WebCore::MediaControlStatusDisplayElement::update):
1252         (WebCore::MediaControlRewindButtonElement::defaultEventHandler):
1253         (WebCore::MediaControlTimelineElement::defaultEventHandler):
1254         * html/shadow/MediaControls.cpp:
1255         (WebCore::MediaControls::updateCurrentTimeDisplay):
1256         (WebCore::MediaControls::createTextTrackDisplay):
1257         * html/shadow/MediaControlsApple.cpp:
1258         (WebCore::MediaControlsApple::updateCurrentTimeDisplay):
1259         * html/shadow/MediaControlsBlackBerry.cpp:
1260         (WebCore::MediaControlEmbeddedPanelElement::setPosition):
1261         (WebCore::MediaControlEmbeddedPanelElement::resetPosition):
1262         (WebCore::MediaControlFullscreenTimelineElement::defaultEventHandler):
1263         (WebCore::MediaControlsBlackBerry::updateCurrentTimeDisplay):
1264         * html/shadow/MediaControlsChromium.cpp:
1265         (WebCore::MediaControlsChromium::updateCurrentTimeDisplay):
1266         * html/track/InbandTextTrack.cpp:
1267         (WebCore::InbandTextTrack::addGenericCue):
1268         * inspector/InspectorCSSAgent.cpp:
1269         (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
1270         * inspector/InspectorHistory.cpp:
1271         (WebCore::InspectorHistory::markUndoableState):
1272         * inspector/InspectorResourceAgent.cpp:
1273         (WebCore::InspectorResourceAgent::replayXHR):
1274         * page/ContextMenuController.cpp:
1275         (WebCore::ContextMenuController::contextMenuItemSelected):
1276         * page/DOMWindow.cpp:
1277         (WebCore::didAddStorageEventListener):
1278         * page/DragController.cpp:
1279         (WebCore::documentFragmentFromDragData):
1280         * page/EventHandler.cpp:
1281         (WebCore::EventHandler::dispatchDragEvent):
1282         (WebCore::EventHandler::keyEvent):
1283         (WebCore::EventHandler::handleTextInputEvent):
1284         * page/Page.cpp:
1285         (WebCore::Page::findStringMatchingRanges):
1286         * platform/efl/RenderThemeEfl.cpp:
1287         (WebCore::RenderThemeEfl::paintMediaSliderTrack):
1288         * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
1289         (WebCore::MediaPlayerPrivate::percentLoaded):
1290         * platform/gtk/RenderThemeGtk.cpp:
1291         (WebCore::RenderThemeGtk::paintMediaSliderTrack):
1292         * platform/mac/PasteboardMac.mm:
1293         (WebCore::Pasteboard::getDataSelection):
1294         (WebCore::documentFragmentWithImageResource):
1295         (WebCore::Pasteboard::documentFragment):
1296         * platform/mac/WebVideoFullscreenHUDWindowController.mm:
1297         (-[WebVideoFullscreenHUDWindowController setCurrentTime:]):
1298         (-[WebVideoFullscreenHUDWindowController setVolume:]):
1299         * platform/qt/RenderThemeQt.cpp:
1300         (WebCore::RenderThemeQt::paintMediaSliderTrack):
1301         * rendering/RenderNamedFlowThread.cpp:
1302         (WebCore::RenderNamedFlowThread::getRanges):
1303         * rendering/RenderThemeMac.mm:
1304         (WebCore::RenderThemeMac::paintMediaSliderTrack):
1305         * svg/SVGTRefElement.cpp:
1306         (WebCore::SVGTRefElement::detachTarget):
1307         * xml/XMLTreeViewer.cpp:
1308         (WebCore::XMLTreeViewer::transformDocumentToTreeView):
1309         * xml/parser/XMLDocumentParserLibxml2.cpp:
1310         (WebCore::XMLDocumentParser::endElementNs):
1311         * xml/parser/XMLDocumentParserQt.cpp:
1312         (WebCore::XMLDocumentParser::parseEndElement):
1313
1314 2013-02-08  Vsevolod Vlasov  <vsevik@chromium.org>
1315
1316         Web Inspector: Introduce workspace provider/project type, encapsulate uri creation in SimpleWorkspaceProvider.
1317         https://bugs.webkit.org/show_bug.cgi?id=109282
1318
1319         Reviewed by Alexander Pavlov.
1320
1321         SimpleWorkspaceProvider now fully takes care of creating uri based on project/workspace provider type.
1322         This is the first step on the way to project-per-domain mode for non file system project types.
1323         Workspace is now partly aware of the possibility that several projects with the same type exist.
1324         Drive-by: ScriptsPanel now uses FileMapping to show anchor location properly.
1325
1326         * inspector/front-end/DefaultScriptMapping.js:
1327         (WebInspector.DefaultScriptMapping):
1328         (WebInspector.DefaultScriptMapping.prototype.addScript):
1329         * inspector/front-end/ExtensionServer.js:
1330         (WebInspector.ExtensionServer.prototype._onGetPageResources):
1331         * inspector/front-end/FileMapping.js:
1332         (WebInspector.FileMapping.prototype.uriForURL):
1333         * inspector/front-end/FileSystemWorkspaceProvider.js:
1334         (WebInspector.FileSystemWorkspaceProvider.prototype.type):
1335         * inspector/front-end/JavaScriptSourceFrame.js:
1336         (WebInspector.JavaScriptSourceFrame.prototype._supportsEnabledBreakpointsWhileEditing):
1337         * inspector/front-end/LiveEditSupport.js:
1338         (WebInspector.LiveEditSupport):
1339         (WebInspector.LiveEditSupport.prototype.uiSourceCodeForLiveEdit):
1340         * inspector/front-end/ScriptSnippetModel.js:
1341         (WebInspector.ScriptSnippetModel):
1342         (WebInspector.ScriptSnippetModel.prototype._addScriptSnippet):
1343         * inspector/front-end/ScriptsNavigator.js:
1344         (WebInspector.ScriptsNavigator.prototype._navigatorViewForUISourceCode):
1345         (WebInspector.ScriptsNavigator.prototype.revealUISourceCode):
1346         (WebInspector.SnippetsNavigatorView.prototype._handleEvaluateSnippet):
1347         (WebInspector.SnippetsNavigatorView.prototype._handleRemoveSnippet):
1348         * inspector/front-end/ScriptsPanel.js:
1349         (WebInspector.ScriptsPanel.prototype._addUISourceCode):
1350         (WebInspector.ScriptsPanel.prototype._projectWillReset):
1351         (WebInspector.ScriptsPanel.prototype.canShowAnchorLocation):
1352         (WebInspector.ScriptsPanel.prototype._createSourceFrame):
1353         (WebInspector.ScriptsPanel.prototype.set _fileRenamed):
1354         * inspector/front-end/SimpleWorkspaceProvider.js:
1355         (WebInspector.SimpleWorkspaceProvider):
1356         (WebInspector.SimpleWorkspaceProvider.uriForURL):
1357         (WebInspector.SimpleWorkspaceProvider.prototype.type):
1358         (WebInspector.SimpleWorkspaceProvider.prototype.addFileForURL):
1359         (WebInspector.SimpleWorkspaceProvider.prototype.addUniqueFileForURL):
1360         (WebInspector.SimpleWorkspaceProvider.prototype._innerAddFileForURL):
1361         (WebInspector.SimpleWorkspaceProvider.prototype._uniqueURI):
1362         * inspector/front-end/Workspace.js:
1363         (WebInspector.WorkspaceProvider.prototype.type):
1364         (WebInspector.Project.prototype.type):
1365         (WebInspector.Project.prototype.isServiceProject):
1366         (WebInspector.Workspace.prototype.uiSourceCodeForOriginURL):
1367         (WebInspector.Workspace.prototype.uiSourceCodesForProjectType):
1368         (WebInspector.Workspace.prototype.projectsForType):
1369         * inspector/front-end/inspector.js:
1370
1371 2013-02-08  ChangSeok Oh  <shivamidow@gmail.com>
1372
1373         [GTK][AC] GraphicsLayerClutter doesn't need to recalculate its position after changing anchor position.
1374         https://bugs.webkit.org/show_bug.cgi?id=109226
1375
1376         Reviewed by Gustavo Noronha Silva.
1377
1378         Clutter has a different coordinate system from mac port's, so we don't need to
1379         recalulate GraphicsLayer position after changing its anchor position.
1380
1381         Covered by existing ac tests.
1382
1383         * platform/graphics/clutter/GraphicsLayerClutter.cpp:
1384         (WebCore::GraphicsLayerClutter::updateGeometry):
1385
1386 2013-02-08  Mike West  <mkwst@chromium.org>
1387
1388         Migrate ExceptionCode ASSERTs in IDB to ASSERT_NO_EXCEPTION.
1389         https://bugs.webkit.org/show_bug.cgi?id=109266
1390
1391         Reviewed by Jochen Eisinger.
1392
1393         The pattern:
1394
1395             ExceptionCode ec = 0;
1396             methodThatGeneratesException(ec);
1397             ASSERT(!ec);
1398
1399         is more clearly and succinctly written as:
1400
1401             methodThatGeneratesException(ASSERT_NO_EXCEPTION);
1402
1403         This patch replaces the occurances of the former in IDB code that never
1404         touch 'ec' again with the latter. No change in behavior should result
1405         from this refactoring.
1406
1407         * Modules/indexeddb/IDBCursor.cpp:
1408         (WebCore::IDBCursor::advance):
1409         (WebCore::IDBCursor::continueFunction):
1410         (WebCore::IDBCursor::deleteFunction):
1411             These methods checked the value of the ExceptionCode without first
1412             initializing it to 0. Now the ExceptionCode is explicitly set to 0
1413             before doing potentially exception-generating work.
1414         (WebCore::IDBCursor::direction):
1415         * Modules/indexeddb/IDBObjectStore.cpp:
1416         (WebCore):
1417         * Modules/indexeddb/IDBTransaction.cpp:
1418         (WebCore::IDBTransaction::mode):
1419             Replace the above pattern with ASSERT_NO_EXCEPTION.
1420
1421 2013-02-08  Mike West  <mkwst@chromium.org>
1422
1423         Migrate ExceptionCode ASSERTs in SVG to ASSERT_NO_EXCEPTION.
1424         https://bugs.webkit.org/show_bug.cgi?id=109267
1425
1426         Reviewed by Jochen Eisinger.
1427
1428         The pattern:
1429
1430             ExceptionCode ec = 0;
1431             methodThatGeneratesException(ec);
1432             ASSERT(!ec);
1433
1434         is more clearly and succinctly written as:
1435
1436             methodThatGeneratesException(ASSERT_NO_EXCEPTION);
1437
1438         This patch replaces the occurances of the former in SVG code that never
1439         touch 'ec' again with the latter. No change in behavior should result
1440         from this refactoring.
1441
1442         * svg/SVGLength.cpp:
1443         (WebCore::SVGLength::SVGLength):
1444         (WebCore::SVGLength::setValue):
1445             This method checked the value of the ExceptionCode without first
1446             initializing it to 0. Now it initializes before doing potentially
1447             exception-generating work.
1448         * rendering/style/SVGRenderStyle.h:
1449         (WebCore::SVGRenderStyle::initialBaselineShiftValue):
1450         (WebCore::SVGRenderStyle::initialKerning):
1451         (WebCore::SVGRenderStyle::initialStrokeDashOffset):
1452         (WebCore::SVGRenderStyle::initialStrokeWidth):
1453         * svg/SVGAnimatedLength.cpp:
1454         (WebCore::sharedSVGLength):
1455         (WebCore::SVGAnimatedLengthAnimator::addAnimatedTypes):
1456         (WebCore::SVGAnimatedLengthAnimator::calculateAnimatedValue):
1457         * svg/SVGAnimatedLengthList.cpp:
1458         (WebCore::SVGAnimatedLengthListAnimator::addAnimatedTypes):
1459         (WebCore::SVGAnimatedLengthListAnimator::calculateAnimatedValue):
1460         * svg/SVGTextContentElement.cpp:
1461         (WebCore::SVGTextContentElement::textLengthAnimated):
1462         * svg/animation/SVGSMILElement.cpp:
1463         (WebCore::constructQualifiedName):
1464             Replace the above pattern with ASSERT_NO_EXCEPTION.
1465
1466 2013-02-08  Vsevolod Vlasov  <vsevik@chromium.org>
1467
1468         Web Inspector: Replace workspace with project in UISourceCode constructor.
1469         https://bugs.webkit.org/show_bug.cgi?id=109256
1470
1471         Reviewed by Alexander Pavlov.
1472
1473         Replaced workspace with project in UISourceCode constructor since every UISourceCode
1474         operation is delegated to project anyway.
1475
1476         * inspector/front-end/UISourceCode.js:
1477         (WebInspector.UISourceCode):
1478         (WebInspector.UISourceCode.prototype.project):
1479         (WebInspector.UISourceCode.prototype.requestContent):
1480         (WebInspector.UISourceCode.prototype.requestOriginalContent):
1481         (WebInspector.UISourceCode.prototype._commitContent):
1482         (WebInspector.UISourceCode.prototype.searchInContent):
1483         * inspector/front-end/Workspace.js:
1484         (WebInspector.Project.prototype._fileAdded):
1485         (WebInspector.Project.prototype.requestFileContent):
1486         (WebInspector.Project.prototype.setFileContent):
1487         (WebInspector.Project.prototype.searchInFileContent):
1488
1489 2013-02-08  Patrick Gansterer  <paroga@webkit.org>
1490
1491         Build fix for Windows after r141981.
1492
1493         * platform/network/win/ResourceHandleWin.cpp:
1494         (WebCore::ResourceHandle::loadResourceSynchronously):
1495
1496 2013-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
1497
1498         Unreviewed, rolling out r141695 and r141697.
1499         http://trac.webkit.org/changeset/141695
1500         http://trac.webkit.org/changeset/141697
1501         https://bugs.webkit.org/show_bug.cgi?id=109279
1502
1503         broke on-disk buffering for http(s) media (Requested by philn
1504         on #webkit).
1505
1506         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1507         (WebCore::MediaPlayerPrivateGStreamer::load):
1508         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
1509         (MediaPlayerPrivateGStreamer):
1510         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1511         (webKitWebSrcGetProtocols):
1512         (webKitWebSrcSetUri):
1513
1514 2013-02-08  Dan Carney  <dcarney@google.com>
1515
1516         [v8] isolate parameter added to all v8::peristent calls
1517         https://bugs.webkit.org/show_bug.cgi?id=109268
1518
1519         Reviewed by Kentaro Hara.
1520
1521         No new tests. No change in functionality.
1522
1523         * bindings/scripts/CodeGeneratorV8.pm:
1524         (GenerateDomainSafeFunctionGetter):
1525         (GenerateNamedConstructorCallback):
1526         (GenerateImplementation):
1527         * bindings/scripts/test/V8/V8Float64Array.cpp:
1528         (WebCore::V8Float64Array::GetRawTemplate):
1529         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
1530         (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter):
1531         (WebCore::V8TestActiveDOMObject::GetRawTemplate):
1532         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
1533         (WebCore::V8TestCustomNamedGetter::GetRawTemplate):
1534         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
1535         (WebCore::V8TestEventConstructor::GetRawTemplate):
1536         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
1537         (WebCore::V8TestEventTarget::GetRawTemplate):
1538         * bindings/scripts/test/V8/V8TestException.cpp:
1539         (WebCore::V8TestException::GetRawTemplate):
1540         * bindings/scripts/test/V8/V8TestInterface.cpp:
1541         (WebCore::V8TestInterface::GetRawTemplate):
1542         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
1543         (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
1544         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
1545         (WebCore::V8TestNamedConstructorConstructor::GetTemplate):
1546         (WebCore::V8TestNamedConstructor::GetRawTemplate):
1547         * bindings/scripts/test/V8/V8TestNode.cpp:
1548         (WebCore::V8TestNode::GetRawTemplate):
1549         * bindings/scripts/test/V8/V8TestObj.cpp:
1550         (WebCore::V8TestObj::GetRawTemplate):
1551         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
1552         (WebCore::V8TestOverloadedConstructors::GetRawTemplate):
1553         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1554         (WebCore::V8TestSerializedScriptValueInterface::GetRawTemplate):
1555         * bindings/v8/DOMWrapperMap.h:
1556         (WebCore::DOMWrapperMap::clear):
1557         * bindings/v8/DOMWrapperWorld.cpp:
1558         (WebCore::isolatedWorldWeakCallback):
1559         (WebCore::DOMWrapperWorld::makeContextWeak):
1560         * bindings/v8/NPV8Object.cpp:
1561         (WebCore::freeV8NPObject):
1562         (WebCore::npCreateV8ScriptObject):
1563         * bindings/v8/ScheduledAction.cpp:
1564         (WebCore::ScheduledAction::ScheduledAction):
1565         (WebCore::ScheduledAction::~ScheduledAction):
1566         * bindings/v8/ScopedPersistent.h:
1567         (WebCore::ScopedPersistent::ScopedPersistent):
1568         (WebCore::ScopedPersistent::set):
1569         (WebCore::ScopedPersistent::clear):
1570         * bindings/v8/ScriptWrappable.h:
1571         (WebCore::ScriptWrappable::setWrapper):
1572         (WebCore::ScriptWrappable::disposeWrapper):
1573         (WebCore::ScriptWrappable::weakCallback):
1574         * bindings/v8/V8Binding.cpp:
1575         (WebCore::createRawTemplate):
1576         * bindings/v8/V8Binding.h:
1577         (WebCore):
1578         * bindings/v8/V8GCController.cpp:
1579         (WebCore::gcTree):
1580         (WebCore::V8GCController::gcPrologue):
1581         (WebCore::V8GCController::minorGCPrologue):
1582         * bindings/v8/V8GCController.h:
1583         (V8GCController):
1584         * bindings/v8/V8HiddenPropertyName.cpp:
1585         (WebCore::V8HiddenPropertyName::createString):
1586         * bindings/v8/V8LazyEventListener.cpp:
1587         (WebCore::V8LazyEventListener::prepareListenerObject):
1588         * bindings/v8/V8NPObject.cpp:
1589         (WebCore::V8NPTemplateMap::dispose):
1590         (WebCore::npObjectGetProperty):
1591         (WebCore::createV8ObjectForNPObject):
1592         * bindings/v8/V8PerContextData.cpp:
1593         (WebCore::V8PerContextData::dispose):
1594         (WebCore::V8PerContextData::createWrapperFromCacheSlowCase):
1595         (WebCore::V8PerContextData::constructorForTypeSlowCase):
1596         * bindings/v8/V8ValueCache.cpp:
1597         (WebCore::makeExternalString):
1598         * bindings/v8/WrapperTypeInfo.h:
1599         (WebCore::WrapperConfiguration::configureWrapper):
1600         * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
1601         (WebCore::V8HTMLDocument::wrapInShadowObject):
1602         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
1603         (WebCore::V8HTMLImageElementConstructor::GetTemplate):
1604         * bindings/v8/custom/V8InjectedScriptManager.cpp:
1605         (WebCore::WeakReferenceCallback):
1606         (WebCore::createInjectedScriptHostV8Wrapper):
1607         * bindings/v8/custom/V8LocationCustom.cpp:
1608         (WebCore::V8Location::reloadAccessorGetter):
1609         (WebCore::V8Location::replaceAccessorGetter):
1610         (WebCore::V8Location::assignAccessorGetter):
1611
1612 2013-02-08  Kent Tamura  <tkent@chromium.org>
1613
1614         Adjust usage of ENABLE flags to enable whole content
1615         https://bugs.webkit.org/show_bug.cgi?id=109270
1616
1617         Reviewed by Eric Seidel.
1618
1619         Our common usage of ENABLE flags to enable whole content of files is:
1620
1621         For .cpp files:
1622           #include "config.h"
1623           #if ENABLE(FOOBAR)
1624           #include "FooBar.h"
1625
1626         For .h files:
1627           #ifndef FooBar_h
1628           #define FooBar_h
1629           #if ENABLE(FOOBAR)
1630
1631         Fix files which have uncommon usage, and fix CodeGeneratorV8.pm so that
1632         it generates the common pattern. Note that CodeGeneratorJS.pm already
1633         generates code in this order.
1634
1635         * bindings/scripts/CodeGeneratorV8.pm:
1636         (GenerateHeaderContentHeader):
1637         (GenerateImplementationContentHeader):
1638         * bindings/scripts/test/V8/V8TestCallback.cpp:
1639         * bindings/scripts/test/V8/V8TestCallback.h:
1640         * bindings/scripts/test/V8/V8TestInterface.cpp:
1641         * bindings/scripts/test/V8/V8TestInterface.h:
1642         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
1643         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
1644         * html/BaseMultipleFieldsDateAndTimeInputType.h:
1645         * html/ColorInputType.cpp:
1646         * html/ColorInputType.h:
1647         * html/DateInputType.cpp:
1648         * html/DateTimeInputType.cpp:
1649         * html/DateTimeInputType.h:
1650         * html/DateTimeLocalInputType.cpp:
1651         * html/HTMLAudioElement.cpp:
1652         * html/HTMLAudioElement.h:
1653         * html/HTMLDataListElement.cpp:
1654         * html/HTMLDialogElement.cpp:
1655         * html/HTMLDialogElement.h:
1656         * html/HTMLMediaElement.cpp:
1657         * html/HTMLMediaElement.h:
1658         * html/HTMLMeterElement.cpp:
1659         * html/HTMLProgressElement.cpp:
1660         * html/HTMLSourceElement.cpp:
1661         * html/HTMLSourceElement.h:
1662         * html/HTMLTrackElement.cpp:
1663         * html/HTMLTrackElement.h:
1664         * html/HTMLVideoElement.cpp:
1665         * html/HTMLVideoElement.h:
1666         * html/MonthInputType.cpp:
1667         * html/TimeInputType.cpp:
1668         * html/WeekInputType.cpp:
1669         * html/shadow/DateTimeFieldElement.h:
1670         * html/shadow/DetailsMarkerControl.cpp:
1671         * html/shadow/MeterShadowElement.cpp:
1672         * html/shadow/ProgressShadowElement.cpp:
1673         * rendering/RenderDetailsMarker.cpp:
1674         * rendering/RenderInputSpeech.cpp:
1675         * rendering/RenderMeter.cpp:
1676         * rendering/RenderProgress.cpp:
1677
1678 2013-02-08  Mike West  <mkwst@chromium.org>
1679
1680         Replace ExceptionCode assertions with ASSERT_NO_EXCEPTION macro.
1681         https://bugs.webkit.org/show_bug.cgi?id=109044
1682
1683         Reviewed by Darin Adler.
1684
1685         The pattern:
1686
1687             ExceptionCode ec = 0;
1688             methodThatGeneratesException(ec);
1689             ASSERT(!ec);
1690
1691         is more clearly and succinctly written as:
1692
1693             methodThatGeneratesException(ASSERT_NO_EXCEPTION);
1694
1695         This patch replaces the occurances of the former that never touch 'ec'
1696         again with the latter. It does the same for 'ASSERT(ec == 0);' (and, as
1697         a drive-by, replaces 'ASSERT(ec == 0)' with 'ASSERT(!ec)' in places
1698         where it does indeed matter that 'ec' get set properly.
1699
1700         No change in behavior should result from this refactoring.
1701
1702         * dom/ContainerNode.cpp:
1703         (WebCore::ContainerNode::takeAllChildrenFrom):
1704         * dom/Document.cpp:
1705         (WebCore::Document::setTitle):
1706         * dom/MessagePort.cpp:
1707         (WebCore::MessagePort::dispatchMessages):
1708         (WebCore::MessagePort::disentanglePorts):
1709         * editing/DeleteButtonController.cpp:
1710         (WebCore::enclosingDeletableElement):
1711         (WebCore::DeleteButtonController::createDeletionUI):
1712             Replaced inline ASSERT with ASSERT_NO_EXCEPTION.
1713         (WebCore::DeleteButtonController::show):
1714             Replaced 'ASSERT(ec == 0)' with 'ASSERT(!ec)' to match the style guide.
1715         * editing/EditorCommand.cpp:
1716         (WebCore::unionDOMRanges):
1717         * editing/ReplaceNodeWithSpanCommand.cpp:
1718         (WebCore::swapInNodePreservingAttributesAndChildren):
1719         * editing/ReplaceSelectionCommand.cpp:
1720         (WebCore::ReplacementFragment::ReplacementFragment):
1721         (WebCore::ReplacementFragment::removeNode):
1722         (WebCore::ReplacementFragment::insertNodeBefore):
1723         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
1724         (WebCore::ReplacementFragment::restoreAndRemoveTestRenderingNodesToFragment):
1725         (WebCore::ReplaceSelectionCommand::insertAsListItems):
1726         * editing/SplitTextNodeCommand.cpp:
1727         (WebCore::SplitTextNodeCommand::doUnapply):
1728         * editing/TextIterator.cpp:
1729         (WebCore::CharacterIterator::range):
1730         (WebCore::BackwardsCharacterIterator::range):
1731         (WebCore::TextIterator::rangeFromLocationAndLength):
1732         (WebCore::collapsedToBoundary):
1733         * editing/htmlediting.cpp:
1734         (WebCore::createTabSpanElement):
1735         * editing/mac/EditorMac.mm:
1736         (WebCore::Editor::fontForSelection):
1737         (WebCore::Editor::fontAttributesForSelectionStart):
1738         * editing/markup.cpp:
1739         (WebCore::createMarkup):
1740         (WebCore::trimFragment):
1741         (WebCore::createFragmentFromMarkupWithContext):
1742         (WebCore::fillContainerFromString):
1743         (WebCore::createFragmentFromText):
1744         (WebCore::createFragmentFromNodes):
1745         * html/ColorInputType.cpp:
1746         (WebCore::ColorInputType::createShadowSubtree):
1747             Replaced inline ASSERT with ASSERT_NO_EXCEPTION.
1748         * html/HTMLOptionsCollection.cpp:
1749         (WebCore::HTMLOptionsCollection::add):
1750             Replaced 'ASSERT(ec == 0)' with 'ASSERT(!ec)' to match the style guide.
1751         * html/HTMLTextAreaElement.cpp:
1752         (WebCore::HTMLTextAreaElement::updatePlaceholderText):
1753         * html/HTMLTextFormControlElement.cpp:
1754         (WebCore::HTMLTextFormControlElement::indexForVisiblePosition):
1755         (WebCore::HTMLTextFormControlElement::setInnerTextValue):
1756         * html/TextFieldInputType.cpp:
1757         (WebCore::TextFieldInputType::updatePlaceholderText):
1758         * html/ValidationMessage.cpp:
1759         (WebCore::ValidationMessage::buildBubbleTree):
1760         * html/shadow/MediaControlElementTypes.cpp:
1761         (WebCore::MediaControlVolumeSliderElement::defaultEventHandler):
1762         * inspector/InspectorPageAgent.cpp:
1763         (WebCore::InspectorPageAgent::getCookies):
1764         * inspector/InspectorStyleSheet.cpp:
1765         (WebCore::InspectorStyleSheet::addRule):
1766         * loader/appcache/ApplicationCacheHost.cpp:
1767         (WebCore::ApplicationCacheHost::dispatchDOMEvent):
1768         * page/DOMSelection.cpp:
1769         (WebCore::DOMSelection::deleteFromDocument):
1770         * page/DragController.cpp:
1771         (WebCore::prepareClipboardForImageDrag):
1772         * rendering/RenderTextControl.cpp:
1773         (WebCore::RenderTextControl::visiblePositionForIndex):
1774             Replaced inline ASSERT with ASSERT_NO_EXCEPTION.
1775
1776 2013-02-08  Alexei Filippov  <alph@chromium.org>
1777
1778         Web Inspector: disable profile type switching while profile in progress
1779         https://bugs.webkit.org/show_bug.cgi?id=109178
1780
1781         Reviewed by Yury Semikhatsky.
1782
1783         Disables profile type selection controls when a profiling session
1784         is in progress.
1785
1786         * inspector/front-end/HeapSnapshotView.js:
1787         (WebInspector.HeapSnapshotProfileType.prototype.buttonClicked):
1788         * inspector/front-end/ProfileLauncherView.js:
1789         (WebInspector.ProfileLauncherView.prototype._updateControls):
1790         * inspector/front-end/ProfilesPanel.js:
1791         (WebInspector.ProfilesPanel.prototype.toggleRecordButton):
1792
1793 2013-02-08  Ilya Tikhonovsky  <loislo@chromium.org>
1794
1795         Web Inspector: Native Memory Instrumentation: adjust chunk transfer size for better speed.
1796         https://bugs.webkit.org/show_bug.cgi?id=109263
1797
1798         Reviewed by Yury Semikhatsky.
1799
1800         The chunk size is changed from 100 to 10000.
1801         addString counts only first 256 symbols of the string.o
1802
1803         * inspector/HeapGraphSerializer.cpp:
1804         (WebCore::HeapGraphSerializer::pushUpdateIfNeeded):
1805         (WebCore::HeapGraphSerializer::addString):
1806         * inspector/front-end/NativeMemorySnapshotView.js:
1807
1808 2013-02-08  Kentaro Hara  <haraken@chromium.org>
1809
1810         Support a relatedTarget attribute on focus/blur events
1811         https://bugs.webkit.org/show_bug.cgi?id=109176
1812
1813         Reviewed by Ojan Vafai.
1814
1815         In bug 76216, we supported a relatedTarget attribute on
1816         focusin/focusout events. We should also support it on focus/blur events.
1817
1818         See http://lists.w3.org/Archives/Public/www-dom/2012OctDec/0061.html
1819         for the www-dom discussion.
1820
1821         Test: fast/dom/shadow/shadow-boundary-events.html
1822               fast/events/related-target-focusevent.html
1823
1824         * dom/EventDispatchMediator.cpp:
1825         (WebCore::FocusEventDispatchMediator::create):
1826         (WebCore::FocusEventDispatchMediator::FocusEventDispatchMediator):
1827         (WebCore::BlurEventDispatchMediator::create):
1828         (WebCore::BlurEventDispatchMediator::BlurEventDispatchMediator):
1829         * dom/EventDispatchMediator.h:
1830         (FocusEventDispatchMediator):
1831         (BlurEventDispatchMediator):
1832         * dom/Node.cpp:
1833         (WebCore::Node::dispatchFocusInEvent):
1834         (WebCore::Node::dispatchFocusOutEvent):
1835         (WebCore::Node::dispatchFocusEvent):
1836         (WebCore::Node::dispatchBlurEvent):
1837
1838 2013-02-07  Yury Semikhatsky  <yurys@chromium.org>
1839
1840         Web Inspector: reduce number of native memory instrumentation categories
1841         https://bugs.webkit.org/show_bug.cgi?id=109146
1842
1843         Reviewed by Pavel Feldman.
1844
1845         Merged some of memory instrumentation categories.
1846
1847         * dom/WebCoreMemoryInstrumentation.cpp:
1848         (WebCore):
1849         * inspector/front-end/NativeMemorySnapshotView.js:
1850         (WebInspector.MemoryBlockViewProperties._initialize):
1851         * platform/PlatformMemoryInstrumentation.cpp:
1852         (WebCore):
1853
1854 2013-02-07  Mike West  <mkwst@chromium.org>
1855
1856         <iframe seamless> should avoid vertical scrollbars during the initial layout passes.
1857         https://bugs.webkit.org/show_bug.cgi?id=87707
1858
1859         Reviewed by Eric Seidel.
1860
1861         Seamless documents currently render incorrectly when their content fills
1862         the width of the container into which they're placed. Because FrameView
1863         assumes that the container's size is properly set before the first pass
1864         of layout, vertical scrollbars are incorrectly forced onto seamless
1865         content, because seamless sets the container's height to 0 before
1866         handing it off to FrameView for layout. The scrollbars make the
1867         available width for the seamless document ~15px smaller than it should
1868         be, resulting in content getting bumped to the next line.
1869
1870         This patch special-cases FrameView::calculateScrollbarModesForLayout in
1871         order to force scrollbars off for seamless documents with a full visible
1872         height of 0px. Once the layout pass has grabbed the content height and
1873         applied it to the visible height, scrollbars will again be applicable.
1874
1875         The change should be covered by rebaselines for the newly-passing
1876         results in fast/frame/seamless-{float,inline}.html
1877
1878         * page/FrameView.cpp:
1879         (WebCore::FrameView::calculateScrollbarModesForLayout):
1880             If we're rendering a seamless document, and the full visible height
1881             is 0, and the vertical scrollbar would otherwise be ScrollbarAuto,
1882             then force ScrollbarAlwaysOff.
1883
1884 2013-02-07  Kent Tamura  <tkent@chromium.org>
1885
1886         document.activeElement should not return a non-focusable element
1887         https://bugs.webkit.org/show_bug.cgi?id=86707
1888
1889         Reviewed by Hajime Morita.
1890
1891         This is based on a patch by Arpita Bahuguna.
1892
1893         Test: fast/dom/HTMLDocument/set-focus-on-valid-element.html
1894
1895         * dom/Document.cpp:
1896         (WebCore::Document::setFocusedNode):
1897         Added check for verifying that the node to be focused is
1898         focusable. However, this check should be skipped for HTMLPlugInElement
1899         because it has special behavior.
1900
1901 2013-02-07  Vladislav Kaznacheev  <kaznacheev@chromium.org>
1902
1903         Web Inspector: Fix front-end compilation warnings related to WebInspector.SidebarPane
1904         https://bugs.webkit.org/show_bug.cgi?id=109259
1905
1906         Reviewed by Vsevolod Vlasov.
1907
1908         * inspector/front-end/DOMBreakpointsSidebarPane.js:
1909         (WebInspector.DOMBreakpointsSidebarPane.Proxy):
1910         * inspector/front-end/SidebarPane.js:
1911
1912 2013-02-07  Kentaro Hara  <haraken@chromium.org>
1913
1914         [V8] enum V8HiddenPropertyCreationType is not used
1915         https://bugs.webkit.org/show_bug.cgi?id=109250
1916
1917         Reviewed by Adam Barth.
1918
1919         V8HiddenPropertyCreationType is always NewSymbol. We can remove the enum.
1920
1921         No tests. No change in behavior.
1922
1923         * bindings/v8/V8HiddenPropertyName.cpp:
1924         (WebCore::hiddenReferenceName):
1925         * bindings/v8/V8HiddenPropertyName.h:
1926         (WebCore):
1927
1928 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1929
1930         Unreviewed, rolling out r142212.
1931         http://trac.webkit.org/changeset/142212
1932         https://bugs.webkit.org/show_bug.cgi?id=109255
1933
1934         Causes ASSERT(!m_installed) on launch (Requested by smfr on
1935         #webkit).
1936
1937         * WebCore.exp.in:
1938         * platform/MemoryPressureHandler.cpp:
1939         (WebCore):
1940         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
1941         * platform/MemoryPressureHandler.h:
1942         (MemoryPressureHandler):
1943         * platform/mac/MemoryPressureHandlerMac.mm:
1944         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
1945
1946 2013-02-07  Hanyee Kim  <choco@company100.net>
1947
1948         NamedFlowCollection should be a ContextDestructionObserver
1949         https://bugs.webkit.org/show_bug.cgi?id=99239
1950
1951         Reviewed by Adam Barth
1952
1953         This patch removes the raw pointer of Document in NamedFlowCollection.
1954         It could be replaced with ContextDestructionObserver.
1955         ContextDestructionObserver has the pointer and clears the pointer
1956         automatically when the document is destroyed. 
1957
1958         * dom/Document.cpp:
1959         (WebCore::Document::~Document):
1960         * dom/NamedFlowCollection.cpp:
1961         (WebCore::NamedFlowCollection::NamedFlowCollection):
1962         (WebCore::NamedFlowCollection::ensureFlowWithName):
1963         (WebCore::NamedFlowCollection::discardNamedFlow):
1964         (WebCore::NamedFlowCollection::document):
1965         (WebCore):
1966         * dom/NamedFlowCollection.h:
1967         (NamedFlowCollection):
1968
1969 2013-02-07  Dean Jackson  <dino@apple.com>
1970
1971         Followup review suggestions from Alexey Proskuryakov on
1972         https://bugs.webkit.org/show_bug.cgi?id=109215
1973
1974         Don't provide a charset on embedded SVG, especially
1975         with incorrect syntax :)
1976
1977         * css/mediaControlsQuickTime.css:
1978         (video::-webkit-media-controls-toggle-closed-captions-button):
1979         (video::-webkit-media-controls-closed-captions-track-list li.selected):
1980         (video::-webkit-media-controls-closed-captions-track-list li.selected:hover):
1981
1982 2013-02-07  Seulgi Kim  <seulgikim@company100.net>
1983
1984         [Gtk] RunLoop::run shuold run current thread's run loop.
1985         https://bugs.webkit.org/show_bug.cgi?id=107887
1986
1987         Reviewed by Martin Robinson.
1988
1989         Currently, RunLoop in Gtk can use just main thread's event loop.
1990         But the other ports are implemented to use RunLoop in sub threads.
1991
1992         This patch makes RunLoop constructor create new context, not use default
1993         context.
1994         But in the main thread still uses default context to use main event loop
1995         since there is some codes using glib directly (e.g. in
1996         LayerTreeHostGtk::scheduleLayerFlush).
1997
1998         No new tests. There is no case that uses RunLoop in off the main thread
1999         yet.
2000
2001         * platform/gtk/RunLoopGtk.cpp:
2002         (WebCore::RunLoop::RunLoop):
2003         (WebCore::RunLoop::run):
2004
2005 2013-02-07  Kentaro Hara  <haraken@chromium.org>
2006
2007         [V8] Move V8DOMWrapper::setNamedHiddenReference() to V8HiddenPropertyName.h
2008         https://bugs.webkit.org/show_bug.cgi?id=109186
2009
2010         Reviewed by Adam Barth.
2011
2012         V8HiddenPropertyName.h is a right place for setNamedHiddenReference().
2013
2014         No tests. No change in behavior.
2015
2016         * bindings/scripts/CodeGeneratorV8.pm:
2017         (GenerateNormalAttrGetter):
2018         * bindings/scripts/test/V8/V8TestObj.cpp:
2019         (WebCore::TestObjV8Internal::readOnlyTestObjAttrAttrGetter):
2020         * bindings/v8/V8DOMWrapper.cpp:
2021         * bindings/v8/V8DOMWrapper.h:
2022         (V8DOMWrapper):
2023         * bindings/v8/V8HiddenPropertyName.cpp:
2024         (WebCore::V8HiddenPropertyName::hiddenReferenceName):
2025         (WebCore::V8HiddenPropertyName::setNamedHiddenReference):
2026         (WebCore):
2027         * bindings/v8/V8HiddenPropertyName.h:
2028         (V8HiddenPropertyName):
2029         (WebCore::V8HiddenPropertyName::V8HiddenPropertyName):
2030         * bindings/v8/custom/V8MessageChannelCustom.cpp:
2031         (WebCore::V8MessageChannel::constructorCallbackCustom):
2032         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2033         (WebCore::toV8Object):
2034
2035 2013-02-07  Elliott Sprehn  <esprehn@chromium.org>
2036
2037         getComputedStyle() doesn't report intermediate values during a transition of a pseudo element
2038         https://bugs.webkit.org/show_bug.cgi?id=106535
2039
2040         Reviewed by Ojan Vafai.
2041
2042         Element::computedStyle and CSSComputedStyleDeclaration::getPropertyCSSValue
2043         should use the PseudoElement and it's renderer if they exist so that
2044         querying the computed style while an animation is running returns
2045         the intermediate values.
2046
2047         No new tests, updated existing tests.
2048
2049         * css/CSSComputedStyleDeclaration.cpp:
2050         (WebCore::CSSComputedStyleDeclaration::styledNode): Added, returns either the PseudoElement or the Node.
2051         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Updated to use styledNode.
2052         * css/CSSComputedStyleDeclaration.h:
2053         (CSSComputedStyleDeclaration):
2054         * dom/Element.cpp:
2055         (WebCore::Element::computedStyle): Check the PseudoElement, not just the cached pseudo style.
2056         * dom/ElementRareData.h:
2057         (WebCore::ElementRareData::pseudoElement): Remove ASSERT_NOT_REACHED so passing other pseudos returns 0.
2058
2059 2013-02-07  Mark Lam  <mark.lam@apple.com>
2060
2061         Add a comment about how the SQLTransaction state machine works.
2062         https://bugs.webkit.org/show_bug.cgi?id=109243.
2063
2064         Rubber stamped by Anders Carlsson.
2065
2066         No new tests.
2067
2068         * Modules/webdatabase/SQLTransactionBackend.cpp:
2069
2070 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
2071
2072         PluginProcess should quit immediately if idle in response to low-memory notifications
2073         https://bugs.webkit.org/show_bug.cgi?id=109103
2074         <rdar://problem/12679827>
2075
2076         Reviewed by Darin Adler.
2077
2078         This patch allows a process to set a custom callback for low memory warnings
2079         (defaulting to the current behaviour, as implemented in releaseMemory).
2080
2081         MemoryPressureHandler::install is currently used for two purposes - it is
2082         called when first initializing a low memory handler for a process, and also
2083         used to reinstall the handler (on a delay) after the notification has occured.
2084         Since reinstallation doesn't change the callback, split these behaviours out -
2085         MemoryPressureHandler::initialize is added to initialization, and accepts a
2086         custom callback, install in made private.
2087
2088         * WebCore.exp.in:
2089             - Added export for releaseMemory.
2090         * platform/MemoryPressureHandler.cpp:
2091         (WebCore::MemoryPressureHandler::releaseMemory):
2092             - Added null implementation for non-Mac builds.
2093         * platform/MemoryPressureHandler.h:
2094         (WebCore::MemoryPressureHandler::initialize):
2095             - distinguish initialization from reinstallations, allow handler to be set.
2096         (MemoryPressureHandler):
2097             - Added m_lowMemoryHandler function pointer member variable.
2098         * platform/mac/MemoryPressureHandlerMac.mm:
2099         (WebCore::MemoryPressureHandler::respondToMemoryPressure):
2100             - Call m_lowMemoryHandler instead of releaseMemory.
2101
2102 2013-02-07  Kentaro Hara  <haraken@chromium.org>
2103
2104         [V8] #ifndef NDEBUG is redundant for assertContextHasCorrectPrototype()
2105         https://bugs.webkit.org/show_bug.cgi?id=109167
2106
2107         Reviewed by Andreas Kling.
2108
2109         Given that assertContextHasCorrectPrototype() is anyway empty in a release
2110         build, we don't need to surround it with #ifndef NDEBUG.
2111
2112         No tests. No change in behavior.
2113
2114         * bindings/v8/DOMWrapperWorld.cpp:
2115         (WebCore::DOMWrapperWorld::assertContextHasCorrectPrototype):
2116         * bindings/v8/DOMWrapperWorld.h:
2117         (DOMWrapperWorld):
2118         (WebCore::DOMWrapperWorld::isolated):
2119
2120 2013-02-07  Alexei Svitkine  <asvitkine@chromium.org>
2121
2122         Chromium: Hang parsing bidi control chars on Mac OS X 10.6
2123         https://bugs.webkit.org/show_bug.cgi?id=108877
2124
2125         This was broken a while ago by:
2126             https://bugs.webkit.org/show_bug.cgi?id=83045
2127
2128         On 10.6, CoreText will not produce any runs covering the
2129         Unicode BiDi RTL mark control char, which causes an infinite
2130         loop in ComplexTextController::indexOfCurrentRun() due to no
2131         run covering the character at offset 0.
2132
2133         This patch fixes that issue by finding the earliest run
2134         explicitly via the minimum stringBegin() index instead of
2135         relying on a run existing that covers offset 0.
2136
2137         Fixes hang on many BiDi wikipedia pages on Chromium/Mac10.6.
2138         Chromium bug: http://crbug.com/167844
2139
2140         New test in the same style as the harfbuzz-buffer-overrun.html
2141         test (in the same folder).
2142
2143         Reviewed by Eric Seidel.
2144
2145         Test: fast/text/international/rtl-mark.html
2146
2147         * platform/graphics/mac/ComplexTextController.cpp:
2148         (WebCore::ComplexTextController::indexOfCurrentRun):
2149
2150 2013-02-07  Kentaro Hara  <haraken@chromium.org>
2151
2152         Implement FocusEvent constructor
2153         https://bugs.webkit.org/show_bug.cgi?id=109170
2154
2155         Reviewed by Adam Barth.
2156
2157         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
2158
2159         FocusEvent constructor should be implemented under a DOM4_EVENTS_CONSTRUCTOR
2160         flag, which is enabled on Chromium and Safari.
2161
2162         Test: fast/events/constructors/focus-event-constructor.html
2163
2164         * dom/FocusEvent.cpp:
2165         (WebCore::FocusEventInit::FocusEventInit):
2166         (WebCore):
2167         (WebCore::FocusEvent::FocusEvent):
2168         * dom/FocusEvent.h:
2169         (FocusEventInit):
2170         (WebCore):
2171         (WebCore::FocusEvent::create):
2172         (FocusEvent):
2173         * dom/FocusEvent.idl:
2174         * page/DOMWindow.idl:
2175
2176 2013-02-07  Elliott Sprehn  <esprehn@chromium.org>
2177
2178         HTML parser should queue MutationRecords for its operations
2179         https://bugs.webkit.org/show_bug.cgi?id=89351
2180
2181         Reviewed by Eric Seidel.
2182
2183         Generate mutation records inside the parser. This is done by using a
2184         ChildListMutationScope in the ContainerNode::parser* methods and then
2185         adding delivery before each <script> element would be processed by
2186         the parser.
2187
2188         Test: fast/dom/MutationObserver/parser-mutations.html
2189
2190         * dom/ContainerNode.cpp:
2191         (WebCore::ContainerNode::takeAllChildrenFrom):
2192         (WebCore::ContainerNode::parserInsertBefore):
2193         (WebCore::ContainerNode::parserRemoveChild):
2194         (WebCore::ContainerNode::parserAppendChild):
2195         * html/parser/HTMLScriptRunner.cpp:
2196         (WebCore::HTMLScriptRunner::executeParsingBlockingScript):
2197         (WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent):
2198         (WebCore::HTMLScriptRunner::execute):
2199         (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad):
2200         (WebCore::HTMLScriptRunner::executeScriptsWaitingForStylesheets):
2201         (WebCore::HTMLScriptRunner::executeScriptsWaitingForParsing):
2202         (WebCore::HTMLScriptRunner::runScript):
2203
2204 2013-02-07  Kentaro Hara  <haraken@chromium.org>
2205
2206         Fix FIXMEs in WindowFeatures.h
2207         https://bugs.webkit.org/show_bug.cgi?id=109151
2208
2209         Reviewed by Adam Barth.
2210
2211         1. // FIXME: We can delete this constructor once V8 showModalDialog is
2212            // changed to use DOMWindow.
2213
2214         This FIXME is not right. The WindowFeatures() constructor is used by
2215         other ports too (e.g. WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp).
2216         So we should remove the FIXME.
2217
2218         2. // FIXME: We can make these functions private non-member functions
2219            // once V8 showModalDialog is changed to use DOMWindow.
2220
2221         Given that V8 now uses DOMWindow in showModalDialog(), we can make the
2222         methods private.
2223
2224         No tests. No change in behavior.
2225
2226         * page/WindowFeatures.h:
2227         (WebCore):
2228         (WebCore::WindowFeatures::WindowFeatures):
2229         (WindowFeatures):
2230
2231 2013-02-07  Adam Barth  <abarth@webkit.org>
2232
2233         fast/parser/document-write-noscript.html fails for threaded HTML parser
2234         https://bugs.webkit.org/show_bug.cgi?id=109237
2235
2236         Reviewed by Eric Seidel.
2237
2238         If there are multiple calls to document.write in an external script, we
2239         need to wait for them all to complete before invalidating the
2240         speculative tokens. Instead of doing this when we unwind the
2241         document.write call stack, we do this when we're about to resume
2242         parsing after script execution.
2243
2244         Test: fast/parser/document-write-basic.html
2245
2246         * html/parser/HTMLDocumentParser.cpp:
2247         (WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
2248         (WebCore::HTMLDocumentParser::insert):
2249         (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
2250
2251 2013-02-07  Lamarque V. Souza  <Lamarque.Souza@basyskom.com>
2252
2253         Fix build when compiling with css3-text and css3-conditional-rules feature flags enabled.
2254         https://bugs.webkit.org/show_bug.cgi?id=109217
2255
2256         Reviewed by Benjamin Poulain.
2257
2258         * css/InspectorCSSOMWrappers.cpp:
2259         (WebCore::InspectorCSSOMWrappers::collect):
2260
2261 2013-02-07  Keishi Hattori  <keishi@webkit.org>
2262
2263         REGRESSION (r140778): Calendar Picker doesn't open when the element has the required attribute
2264         https://bugs.webkit.org/show_bug.cgi?id=109136
2265
2266         Reviewed by Kent Tamura.
2267
2268         Calendar picker was using the "Clear" button to calculate the window width.
2269         Since it doesn't exist when the input element has a required attribute,
2270         it was throwing an error. This patch fixes the width calculating logic.
2271
2272         Tests: platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required-ar.html
2273                platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-required.html
2274
2275         * Resources/pagepopups/calendarPicker.css:
2276         (.today-clear-area):
2277         * Resources/pagepopups/calendarPicker.js:
2278         (CalendarPicker.prototype.fixWindowSize): Fixing the logic to calculate
2279         the width. We don't want to use clear button because it doesn't exist
2280         when a value is required.
2281
2282 2013-02-07  Terry Anderson  <tdanderson@chromium.org>
2283
2284         Non-scrollable divs and non-scrollable iframes can scroll with touch
2285         https://bugs.webkit.org/show_bug.cgi?id=109087
2286
2287         Reviewed by Eric Seidel.
2288
2289         Tests: fast/events/touch/gesture/touch-gesture-noscroll-div.html
2290                fast/events/touch/gesture/touch-gesture-noscroll-iframe.html
2291
2292         When finding a candidate for a scrollable node in
2293         EventHandler::handleGestureScrollUpdate(), select the document node
2294         if it is reached before any scrollable element when walking up the DOM
2295         tree. Also ensure that calling RenderLayer::scrollBy() for a document
2296         node does not result in scrolling if the element is not scrollable.
2297
2298         * page/EventHandler.cpp:
2299         (WebCore::closestScrollableNodeCandidate):
2300         (WebCore::EventHandler::handleGestureScrollUpdate):
2301         * rendering/RenderLayer.cpp:
2302         (WebCore::RenderLayer::scrollBy):
2303
2304 2013-02-07  Mark Lam  <mark.lam@apple.com>
2305
2306         Introduce SQLTransactionBackend and SQLTransactionBackendSync [Part 2].
2307         https://bugs.webkit.org/show_bug.cgi?id=109109.
2308
2309         Reviewed by Anders Carlsson.
2310
2311         Adding back the new SQLTransaction and SQLTransactionSync files.
2312
2313         No new tests.
2314
2315         * Modules/webdatabase/SQLTransaction.cpp: Added.
2316         (WebCore::SQLTransaction::create):
2317         (WebCore::SQLTransaction::SQLTransaction):
2318         (WebCore::SQLTransaction::from):
2319         * Modules/webdatabase/SQLTransaction.h: Added.
2320         (SQLTransaction):
2321         * Modules/webdatabase/SQLTransactionSync.cpp: Added.
2322         (WebCore::SQLTransactionSync::create):
2323         (WebCore::SQLTransactionSync::SQLTransactionSync):
2324         (WebCore::SQLTransactionSync::from):
2325         * Modules/webdatabase/SQLTransactionSync.h: Added.
2326         (SQLTransactionSync):
2327
2328 2013-02-07  Mark Lam  <mark.lam@apple.com>
2329
2330         Introduce SQLTransactionBackend and SQLTransactionBackendSync.
2331         https://bugs.webkit.org/show_bug.cgi?id=109109.
2332
2333         Reviewed by Anders Carlsson.
2334
2335         - Renamed SQLTransaction and SQLTransactionSync to SQLTransactionBackend
2336           and SQLTransactionBackendSync respectively.
2337         - Added back SQLTransaction and SQLTransactionSync as new files, and have
2338           their classes extends their respective backends. This is a stop gap
2339           measure to keep things working until the front-end and back-end can be
2340           properly split.
2341           Note: these files will be committed in a subsequent commit to ensure
2342           that the patching goes smoothly.
2343         - Where needed, I made use of new SQLTransaction::from() and
2344           SQLTransactionSync::from() static methods that "get" the front-end
2345           transactions from the back-ends. This is also a stop gap measure to
2346           keep things working until the proper refactoring is complete.
2347         - Fixed up pre-existing style checker violations that are now detected
2348           on code that were touched during my renaming.
2349         - Added the back-end files to all the build files.
2350
2351         No new tests.
2352
2353         * CMakeLists.txt:
2354         * GNUmakefile.list.am:
2355         * Modules/webdatabase/Database.cpp:
2356         (WebCore::Database::scheduleTransactionStep):
2357         * Modules/webdatabase/Database.h:
2358         (Database):
2359         * Modules/webdatabase/DatabaseBackend.h:
2360         (DatabaseBackend):
2361         * Modules/webdatabase/DatabaseTask.cpp:
2362         (WebCore::DatabaseBackendAsync::DatabaseTransactionTask::DatabaseTransactionTask):
2363         * Modules/webdatabase/DatabaseTask.h:
2364         (WebCore::DatabaseBackendAsync::DatabaseTransactionTask::create):
2365         (WebCore::DatabaseBackendAsync::DatabaseTransactionTask::transaction):
2366         (DatabaseBackendAsync::DatabaseTransactionTask):
2367         * Modules/webdatabase/SQLTransaction.cpp: Removed.
2368         * Modules/webdatabase/SQLTransaction.h: Removed.
2369         * Modules/webdatabase/SQLTransactionBackend.cpp: Copied from Source/WebCore/Modules/webdatabase/SQLTransaction.cpp.
2370         (WebCore::SQLTransactionBackend::SQLTransactionBackend):
2371         (WebCore::SQLTransactionBackend::~SQLTransactionBackend):
2372         (WebCore::SQLTransactionBackend::executeSQL):
2373         (WebCore::SQLTransactionBackend::enqueueStatement):
2374         (WebCore::SQLTransactionBackend::debugStepName):
2375         (WebCore::SQLTransactionBackend::checkAndHandleClosedOrInterruptedDatabase):
2376         (WebCore::SQLTransactionBackend::performNextStep):
2377         (WebCore::SQLTransactionBackend::performPendingCallback):
2378         (WebCore::SQLTransactionBackend::notifyDatabaseThreadIsShuttingDown):
2379         (WebCore::SQLTransactionBackend::acquireLock):
2380         (WebCore::SQLTransactionBackend::lockAcquired):
2381         (WebCore::SQLTransactionBackend::openTransactionAndPreflight):
2382         (WebCore::SQLTransactionBackend::deliverTransactionCallback):
2383         (WebCore::SQLTransactionBackend::scheduleToRunStatements):
2384         (WebCore::SQLTransactionBackend::runStatements):
2385         (WebCore::SQLTransactionBackend::getNextStatement):
2386         (WebCore::SQLTransactionBackend::runCurrentStatement):
2387         (WebCore::SQLTransactionBackend::handleCurrentStatementError):
2388         (WebCore::SQLTransactionBackend::deliverStatementCallback):
2389         (WebCore::SQLTransactionBackend::deliverQuotaIncreaseCallback):
2390         (WebCore::SQLTransactionBackend::postflightAndCommit):
2391         (WebCore::SQLTransactionBackend::deliverSuccessCallback):
2392         (WebCore::SQLTransactionBackend::cleanupAfterSuccessCallback):
2393         (WebCore::SQLTransactionBackend::handleTransactionError):
2394         (WebCore::SQLTransactionBackend::deliverTransactionErrorCallback):
2395         (WebCore::SQLTransactionBackend::cleanupAfterTransactionErrorCallback):
2396         * Modules/webdatabase/SQLTransactionBackend.h: Copied from Source/WebCore/Modules/webdatabase/SQLTransaction.h.
2397         (SQLTransactionBackend):
2398         * Modules/webdatabase/SQLTransactionBackendSync.cpp: Copied from Source/WebCore/Modules/webdatabase/SQLTransactionSync.cpp.
2399         (WebCore::SQLTransactionBackendSync::SQLTransactionBackendSync):
2400         (WebCore::SQLTransactionBackendSync::~SQLTransactionBackendSync):
2401         (WebCore::SQLTransactionBackendSync::executeSQL):
2402         (WebCore::SQLTransactionBackendSync::begin):
2403         (WebCore::SQLTransactionBackendSync::execute):
2404         (WebCore::SQLTransactionBackendSync::commit):
2405         (WebCore::SQLTransactionBackendSync::rollback):
2406         * Modules/webdatabase/SQLTransactionBackendSync.h: Copied from Source/WebCore/Modules/webdatabase/SQLTransactionSync.h.
2407         (SQLTransactionBackendSync):
2408         * Modules/webdatabase/SQLTransactionCoordinator.cpp:
2409         (WebCore::getDatabaseIdentifier):
2410         (WebCore::SQLTransactionCoordinator::processPendingTransactions):
2411         (WebCore::SQLTransactionCoordinator::acquireLock):
2412         (WebCore::SQLTransactionCoordinator::releaseLock):
2413         (WebCore::SQLTransactionCoordinator::shutdown):
2414         * Modules/webdatabase/SQLTransactionCoordinator.h:
2415         (SQLTransactionCoordinator):
2416         (WebCore::SQLTransactionCoordinator::SQLTransactionCoordinator):
2417         (CoordinationInfo):
2418         * Modules/webdatabase/SQLTransactionSync.cpp: Removed.
2419         * Modules/webdatabase/SQLTransactionSync.h: Removed.
2420         * Target.pri:
2421         * WebCore.gypi:
2422         * WebCore.vcproj/WebCore.vcproj:
2423         * WebCore.vcxproj/WebCore.vcxproj:
2424         * WebCore.vcxproj/WebCore.vcxproj.filters:
2425         * WebCore.xcodeproj/project.pbxproj:
2426
2427 2013-02-07  Dean Jackson  <dino@apple.com>
2428
2429         Use new speech bubble artwork for captions menu button
2430         https://bugs.webkit.org/show_bug.cgi?id=109215
2431
2432         Reviewed by Eric Carlson.
2433
2434         Rather than call into RenderTheme to display this button, embed artwork
2435         into the CSS. This means we can remove some uncalled methods in
2436         RenderTheme.
2437
2438         * css/mediaControlsQuickTime.css:
2439         (video::-webkit-media-controls-toggle-closed-captions-button): New background image using SVG.
2440         * rendering/RenderTheme.cpp:
2441         (WebCore::RenderTheme::paint): Don't call the specific painter for the CC button.
2442         * rendering/RenderTheme.h: Remove unused function.
2443         * rendering/RenderThemeMac.h: Ditto.
2444         * rendering/RenderThemeMac.mm: Ditto.
2445
2446 2013-02-07  Michelangelo De Simone  <michelangelo@webkit.org>
2447
2448         [CSS Shaders] Add the last blending step
2449         https://bugs.webkit.org/show_bug.cgi?id=104012
2450
2451         The resulting blended color in mix() is now weighted according to
2452         the original element's backdrop alpha value.
2453
2454         Reviewed by Dean Jackson.
2455
2456         Test: css3/filters/custom/custom-filter-blend-fractional-destination-alpha.html
2457
2458         * platform/graphics/filters/CustomFilterValidatedProgram.cpp:
2459         (WebCore::CustomFilterValidatedProgram::rewriteMixFragmentShader):
2460
2461 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2462
2463         Fix two exports of WebCore symbols on iOS
2464         https://bugs.webkit.org/show_bug.cgi?id=109238
2465
2466         Reviewed by David Kilzer.
2467
2468         * WebCore.exp.in: Export wkCTFontTransformGlyphs but not
2469         wkCGContextDrawsWithCorrectShadowOffsets on iOS.
2470
2471 2013-02-07  Hans Muller  <hmuller@adobe.com>
2472
2473         [CSS Exclusions] Ignore ExclusionPolygon edges above minLogicalIntervalTop
2474         https://bugs.webkit.org/show_bug.cgi?id=107566
2475
2476         Reviewed by David Hyatt.
2477
2478         Improve ExclusionPolygon::firstIncludedIntervalLogicalTop() performance by only
2479         creating offset edges for polygon edges that are below the horizontal minLogicalIntervalTop
2480         line. In other words, don't bother creating offset edges that can't define the polygon's
2481         first fit location.
2482
2483         Test: fast/exclusions/shape-inside/shape-inside-first-fit-004.html
2484
2485         * rendering/ExclusionPolygon.cpp:
2486         (WebCore::ExclusionPolygon::firstIncludedIntervalLogicalTop): Don't create offset edges for polygon edges above minLogicalIntervalTop.
2487
2488 2013-02-07  Jer Noble  <jer.noble@apple.com>
2489
2490         Improve logging of MediaPlayerPrivateAVFoundation Notifications.
2491         https://bugs.webkit.org/show_bug.cgi?id=109223
2492
2493         Reviewed by Eric Carlson.
2494
2495         Convert the existing Notification enum to an expandable macro. Then add a
2496         Logging-only function which stringifies the enums.
2497
2498         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2499         (WebCore):
2500         (WebCore::notificationName):
2501         (WebCore::MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification):
2502         (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification):
2503         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2504
2505 2013-02-07  Martin Robinson  <mrobinson@igalia.com>
2506
2507         [GTK] Cleanup command-line defines
2508         https://bugs.webkit.org/show_bug.cgi?id=109213
2509
2510         Reviewed by Xan Lopez.
2511
2512         * GNUmakefile.am: Remove references to flags that are now handled
2513         via autotoolsconfig.h.
2514
2515 2013-02-07  Tom Sepez  <tsepez@chromium.org>
2516
2517         [V8] Binding Integrity crash in V8MediaStream::createWrapper
2518         https://bugs.webkit.org/show_bug.cgi?id=109211
2519
2520         Reviewed by Adam Barth.
2521
2522         Patch suppresses a chrome crasher.
2523
2524         * Modules/mediastream/MediaStream.idl:
2525
2526 2013-02-07  Eric Carlson  <eric.carlson@apple.com>
2527
2528         [Mac] decrease in-band caption advance notice interval
2529         https://bugs.webkit.org/show_bug.cgi?id=109190
2530
2531         Reviewed by Simon Fraser.
2532
2533         No new tests, no observable change in behavior.
2534
2535         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
2536         (WebCore::MediaPlayerPrivateAVFoundationObjC::tracksChanged): Request cues 2 seconds in advance.
2537
2538 2013-02-07  ChangSeok Oh  <shivamidow@gmail.com>
2539
2540         [GTK][AC] Clutter required version up to 1.12
2541         https://bugs.webkit.org/show_bug.cgi?id=109037
2542
2543         Reviewed by Martin Robinson.
2544
2545         Replace deprecated clutter apis with new ones.
2546
2547         No new tests, since this patch is minor refactoring.
2548
2549         * platform/graphics/clutter/GraphicsLayerActor.cpp:
2550         (graphicsLayerActorSetAnchorPoint):
2551         * platform/graphics/clutter/GraphicsLayerClutter.cpp:
2552         (WebCore::idleDestroy):
2553         (WebCore::GraphicsLayerClutter::updateSublayerList):
2554
2555 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2556
2557         Move pauseAnimation/pauseTransition from TestRunner to Internals
2558         https://bugs.webkit.org/show_bug.cgi?id=109107
2559
2560         Reviewed by Anders Carlsson.
2561
2562         Tests: animations/animation-internals-api-multiple-keyframes.html
2563                animations/animation-internals-api.html
2564
2565         * testing/Internals.cpp:
2566         (WebCore::Internals::pauseAnimationAtTimeOnElement):
2567         (WebCore):
2568         (WebCore::Internals::pauseTransitionAtTimeOnElement):
2569         * testing/Internals.h:
2570         (Internals):
2571         * testing/Internals.idl:
2572
2573 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2574
2575         Unreviewed, rolling out r142155.
2576         http://trac.webkit.org/changeset/142155
2577         https://bugs.webkit.org/show_bug.cgi?id=82888
2578
2579         cr/win build broke.
2580
2581         * bindings/js/JSClipboardCustom.cpp:
2582         (WebCore::JSClipboard::types):
2583         * bindings/v8/custom/V8ClipboardCustom.cpp:
2584         (WebCore::V8Clipboard::typesAccessorGetter):
2585         * dom/Clipboard.h:
2586         (Clipboard):
2587         * platform/blackberry/ClipboardBlackBerry.cpp:
2588         (WebCore::ClipboardBlackBerry::types):
2589         * platform/blackberry/ClipboardBlackBerry.h:
2590         (ClipboardBlackBerry):
2591         * platform/chromium/ChromiumDataObject.cpp:
2592         (WebCore::ChromiumDataObject::types):
2593         * platform/chromium/ChromiumDataObject.h:
2594         (ChromiumDataObject):
2595         * platform/chromium/ClipboardChromium.cpp:
2596         (WebCore::ClipboardChromium::types):
2597         * platform/chromium/ClipboardChromium.h:
2598         (ClipboardChromium):
2599         * platform/efl/ClipboardEfl.cpp:
2600         (WebCore::ClipboardEfl::types):
2601         * platform/efl/ClipboardEfl.h:
2602         (ClipboardEfl):
2603         * platform/gtk/ClipboardGtk.cpp:
2604         (WebCore::ClipboardGtk::types):
2605         * platform/gtk/ClipboardGtk.h:
2606         (ClipboardGtk):
2607         * platform/mac/ClipboardMac.h:
2608         (ClipboardMac):
2609         * platform/mac/ClipboardMac.mm:
2610         (WebCore::addHTMLClipboardTypesForCocoaType):
2611         (WebCore::ClipboardMac::types):
2612         * platform/qt/ClipboardQt.cpp:
2613         (WebCore::ClipboardQt::types):
2614         * platform/qt/ClipboardQt.h:
2615         (ClipboardQt):
2616         * platform/win/ClipboardWin.cpp:
2617         (WebCore::addMimeTypesForFormat):
2618         (WebCore::ClipboardWin::types):
2619         * platform/win/ClipboardWin.h:
2620         (ClipboardWin):
2621
2622 2013-02-07  Rik Cabanier  <cabanier@adobe.com>
2623
2624         Add support for parsing of -webkit-background-blend-mode
2625         https://bugs.webkit.org/show_bug.cgi?id=108547
2626
2627         Reviewed by David Hyatt.
2628
2629         Added parsing and general CSS handling of -webkit-background-blend-mode per 
2630         https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#background-blend-mode
2631
2632         Tests: css3/compositing/background-blend-mode-property-parsing.html
2633                css3/compositing/background-blend-mode-property.html
2634
2635         * css/CSSComputedStyleDeclaration.cpp: Built value for getComputedStyle.
2636         (WebCore):
2637         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2638         * css/CSSParser.cpp: Parsed and stored value of -webkit-background-blend-mode.
2639         (WebCore::CSSParser::parseValue):
2640         (WebCore::CSSParser::parseFillProperty):
2641         * css/CSSProperty.cpp: Listed -webkit-background-blend-mode as a non-inherited property.
2642         (WebCore::CSSProperty::isInheritedProperty):
2643         * css/CSSPropertyNames.in: Added -webkit-background-blend-mode as a CSS property.
2644         * css/CSSToStyleMap.cpp: Mapped background blend mode from CSS value to enum.
2645         (WebCore::CSSToStyleMap::mapFillBlendMode):
2646         (WebCore):
2647         * css/CSSToStyleMap.h: Added function declaration 'mapFillBlendMode'.
2648         (CSSToStyleMap):
2649         * css/StyleBuilder.cpp: Set up propery handler for -webkit-background-blend-mode.
2650         (WebCore::StyleBuilder::StyleBuilder):
2651         * rendering/style/FillLayer.cpp: Added code to store and retrieve the blend mode from a layer.
2652         (WebCore::FillLayer::FillLayer):
2653         (WebCore::FillLayer::operator=):
2654         (WebCore::FillLayer::operator==):
2655         (WebCore::FillLayer::fillUnsetProperties):
2656         * rendering/style/FillLayer.h: Added function definitions to manage blend mode in a layer.
2657         (WebCore::FillLayer::blendMode):
2658         (WebCore::FillLayer::isBlendModeSet):
2659         (WebCore::FillLayer::setBlendMode):
2660         (WebCore::FillLayer::clearBlendMode):
2661         (WebCore::FillLayer::initialFillBlendMode):
2662         (FillLayer):
2663
2664 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2665
2666         Unreviewed, rolling out r142142.
2667         http://trac.webkit.org/changeset/142142
2668         https://bugs.webkit.org/show_bug.cgi?id=109154
2669
2670         Mac expectations were not right. See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=inspector-protocol%2Fnmi-webaudio-leak-test.html and http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=inspector-protocol%2Fnmi-webaudio.html .
2671
2672
2673         * inspector/front-end/DefaultTextEditor.js:
2674         (WebInspector.TextEditorMainPanel.prototype._registerShortcuts):
2675
2676 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2677
2678         Unreviewed, rolling out r142081.
2679         http://trac.webkit.org/changeset/142081
2680         https://bugs.webkit.org/show_bug.cgi?id=109146
2681
2682         The patch caused a crash in inspector-protocol/nmi-webaudio*.html .
2683
2684         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=inspector-protocol%2Fnmi-webaudio-leak-test.html and http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=inspector-protocol%2Fnmi-webaudio.html .
2685
2686         * dom/WebCoreMemoryInstrumentation.cpp:
2687         (WebCore):
2688         * inspector/front-end/NativeMemorySnapshotView.js:
2689         (WebInspector.MemoryBlockViewProperties._initialize):
2690         * platform/PlatformMemoryInstrumentation.cpp:
2691         (WebCore):
2692
2693 2013-02-07  Bear Travis  <betravis@adobe.com>
2694
2695         [CSS Exclusions] shape-inside does not properly handle padding or border
2696         https://bugs.webkit.org/show_bug.cgi?id=102715
2697
2698         Reviewed by David Hyatt.
2699
2700         This patch positions the exclusion shape based on the value of the css box sizing
2701         property. Geometry calculations happen in the shape coordinate space. For layout,
2702         these coordinates are translated to the border-box coordinate system by adding
2703         the appropriate offsets.
2704
2705         Test: fast/exclusions/shape-inside/shape-inside-box-sizing.html
2706
2707         * rendering/ExclusionShapeInfo.cpp:
2708         (WebCore::::computedShape): Pass m_shapeLogicalWidth to the exclusion shape
2709         geometry code.
2710         * rendering/ExclusionShapeInfo.h:
2711         (WebCore::ExclusionShapeInfo::setShapeSize): Adjust block layout dimensions to
2712         shape dimensions when checking to see if the shape geometry must be recalculated.
2713         (WebCore::ExclusionShapeInfo::shapeLogicalTop): Account for layout offsets.
2714         (WebCore::ExclusionShapeInfo::shapeLogicalBottom): Ditto.
2715         (WebCore::ExclusionShapeInfo::shapeLogicalLeft): Ditto.
2716         (WebCore::ExclusionShapeInfo::shapeLogicalRight): Ditto.
2717         (WebCore::ExclusionShapeInfo::logicalTopOffset): Return the offset from the logical
2718         top of the border box to the logical top of the shape.
2719         (WebCore::ExclusionShapeInfo::logicalLeftOffset): Return the offset from the logical
2720         left of the border box to the logical left of the shape.
2721         (ExclusionShapeInfo):
2722         * rendering/ExclusionShapeInsideInfo.cpp:
2723         (WebCore::ExclusionShapeInsideInfo::computeSegmentsForLine): Adjust line top to
2724         be in shape coordinates.
2725         (WebCore::ExclusionShapeInsideInfo::adjustLogicalLineTop): Ditto.
2726         * rendering/ExclusionShapeInsideInfo.h:
2727         (WebCore::ExclusionShapeInsideInfo::lineOverlapsShapeBounds): Use consistent
2728         coordinate system (border box) to test for whether a line overlaps a shape.
2729         (WebCore::ExclusionShapeInsideInfo::logicalLineTop): Include the logical offset
2730         from the border box.
2731         (WebCore::ExclusionShapeInsideInfo::logicalLineBottom): Ditto.
2732
2733 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2734
2735         Upstream iOS isWebThread() and isUIThread()
2736         https://bugs.webkit.org/show_bug.cgi?id=109130
2737
2738         Reviewed by Sam Weinig.
2739
2740         * bindings/objc/WebScriptObject.mm:
2741         (+[WebScriptObject initialize]):
2742         * platform/mac/SharedBufferMac.mm:
2743         (+[WebCoreSharedBufferData initialize]):
2744         #ifdef out the legacy initialization as it is not correct when
2745         using a WebThread.
2746
2747 2013-02-07  Vivek Galatage  <vivek.vg@samsung.com>
2748
2749         Web Inspector: CPU pegged when inspecting LocalStorage that mutates.
2750         https://bugs.webkit.org/show_bug.cgi?id=107937
2751
2752         Reviewed by Yury Semikhatsky.
2753
2754         The DOM storage agent will fire an event to the frontend based on the action
2755         performed on the storage. Based on this action, the front-end will just add/update/remove
2756         the entry in the view. This enhances the front-end responsiveness as the round trip
2757         for fetching the storage entries has been eliminated.
2758
2759         Existing test: LayoutTests/inspector/storage-panel-dom-storage-update.html should verify the change
2760
2761         * inspector/Inspector.json:
2762         * inspector/InspectorDOMStorageAgent.cpp:
2763         (WebCore::InspectorDOMStorageAgent::didDispatchDOMStorageEvent):
2764         * inspector/front-end/DOMStorage.js:
2765         (WebInspector.DOMStorageModel.prototype._domStorageItemsCleared):
2766         (WebInspector.DOMStorageModel.prototype._domStorageItemRemoved):
2767         (WebInspector.DOMStorageModel.prototype._domStorageItemAdded):
2768         (WebInspector.DOMStorageModel.prototype._domStorageItemUpdated):
2769         (WebInspector.DOMStorageDispatcher.prototype.domStorageItemsCleared):
2770         (WebInspector.DOMStorageDispatcher.prototype.domStorageItemRemoved):
2771         (WebInspector.DOMStorageDispatcher.prototype.domStorageItemAdded):
2772         (WebInspector.DOMStorageDispatcher.prototype.domStorageItemUpdated):
2773         * inspector/front-end/DOMStorageItemsView.js:
2774         (WebInspector.DOMStorageItemsView):
2775         (WebInspector.DOMStorageItemsView.prototype.wasShown):
2776         (WebInspector.DOMStorageItemsView.prototype._domStorageItemsCleared):
2777         (WebInspector.DOMStorageItemsView.prototype._domStorageItemRemoved):
2778         (WebInspector.DOMStorageItemsView.prototype._domStorageItemAdded):
2779         (WebInspector.DOMStorageItemsView.prototype._domStorageItemUpdated):
2780         (WebInspector.DOMStorageItemsView.prototype._update):
2781         (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
2782         (WebInspector.DOMStorageItemsView.prototype._refreshButtonClicked):
2783         (WebInspector.DOMStorageItemsView.prototype._editingCallback):
2784         (WebInspector.DOMStorageItemsView.prototype._deleteCallback):
2785         * inspector/front-end/ResourcesPanel.js:
2786         (WebInspector.ResourcesPanel):
2787         (WebInspector.ResourcesPanel.prototype._showDOMStorage.get if):
2788         (WebInspector.ResourcesPanel.prototype._showDOMStorage):
2789
2790 2013-02-07  Dan Carney  <dcarney@google.com>
2791
2792         [v8] move persistent::new and ::dispose into same class
2793         https://bugs.webkit.org/show_bug.cgi?id=109065
2794
2795         Reviewed by Adam Barth.
2796
2797         No new tests. No change in functionality.
2798
2799         * bindings/scripts/CodeGeneratorV8.pm:
2800         (GenerateSingleConstructorCallback):
2801         (GenerateEventConstructorCallback):
2802         (GenerateNamedConstructorCallback):
2803         (GenerateToV8Converters):
2804         * bindings/scripts/test/V8/V8Float64Array.cpp:
2805         (WebCore::V8Float64Array::createWrapper):
2806         * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp:
2807         (WebCore::V8TestActiveDOMObject::createWrapper):
2808         * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp:
2809         (WebCore::V8TestCustomNamedGetter::createWrapper):
2810         * bindings/scripts/test/V8/V8TestEventConstructor.cpp:
2811         (WebCore::V8TestEventConstructor::constructorCallback):
2812         (WebCore::V8TestEventConstructor::createWrapper):
2813         * bindings/scripts/test/V8/V8TestEventTarget.cpp:
2814         (WebCore::V8TestEventTarget::createWrapper):
2815         * bindings/scripts/test/V8/V8TestException.cpp:
2816         (WebCore::V8TestException::createWrapper):
2817         * bindings/scripts/test/V8/V8TestInterface.cpp:
2818         (WebCore::V8TestInterface::constructorCallback):
2819         (WebCore::V8TestInterface::createWrapper):
2820         * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp:
2821         (WebCore::V8TestMediaQueryListListener::createWrapper):
2822         * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
2823         (WebCore::V8TestNamedConstructorConstructorCallback):
2824         (WebCore::V8TestNamedConstructor::createWrapper):
2825         * bindings/scripts/test/V8/V8TestNode.cpp:
2826         (WebCore::V8TestNode::constructorCallback):
2827         (WebCore::V8TestNode::createWrapper):
2828         * bindings/scripts/test/V8/V8TestObj.cpp:
2829         (WebCore::V8TestObj::constructorCallback):
2830         (WebCore::V8TestObj::createWrapper):
2831         * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp:
2832         (WebCore::V8TestOverloadedConstructors::constructor1Callback):
2833         (WebCore::V8TestOverloadedConstructors::constructor2Callback):
2834         (WebCore::V8TestOverloadedConstructors::constructor3Callback):
2835         (WebCore::V8TestOverloadedConstructors::constructor4Callback):
2836         (WebCore::V8TestOverloadedConstructors::createWrapper):
2837         * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
2838         (WebCore::V8TestSerializedScriptValueInterface::constructorCallback):
2839         (WebCore::V8TestSerializedScriptValueInterface::createWrapper):
2840         * bindings/v8/DOMDataStore.cpp:
2841         * bindings/v8/DOMDataStore.h:
2842         (WebCore::DOMDataStore::setWrapper):
2843         (DOMDataStore):
2844         (WebCore::DOMDataStore::set):
2845         (WebCore::DOMDataStore::setWrapperInObject):
2846         * bindings/v8/DOMWrapperMap.h:
2847         (WebCore::DOMWrapperMap::get):
2848         (WebCore::DOMWrapperMap::set):
2849         (WebCore::DOMWrapperMap::removeAndDispose):
2850         (WebCore::DOMWrapperMap::defaultWeakCallback):
2851         * bindings/v8/ScriptWrappable.h:
2852         (WebCore::ScriptWrappable::wrapper):
2853         (WebCore::ScriptWrappable::setWrapper):
2854         (WebCore::ScriptWrappable::reportMemoryUsage):
2855         (ScriptWrappable):
2856         (WebCore::ScriptWrappable::disposeWrapper):
2857         (WebCore::ScriptWrappable::weakCallback):
2858         * bindings/v8/V8DOMWindowShell.cpp:
2859         (WebCore::V8DOMWindowShell::installDOMWindow):
2860         * bindings/v8/V8DOMWrapper.h:
2861         (V8DOMWrapper):
2862         (WebCore::V8DOMWrapper::associateObjectWithWrapper):
2863         * bindings/v8/V8NPObject.cpp:
2864         (WebCore::weakNPObjectCallback):
2865         (WebCore::createV8ObjectForNPObject):
2866         (WebCore::forgetV8ObjectForNPObject):
2867         * bindings/v8/WorkerScriptController.cpp:
2868         (WebCore::WorkerScriptController::initializeContextIfNeeded):
2869         * bindings/v8/WrapperTypeInfo.h:
2870         (WebCore):
2871         (WrapperConfiguration):
2872         (WebCore::WrapperConfiguration::configureWrapper):
2873         (WebCore::buildWrapperConfiguration):
2874         * bindings/v8/custom/V8ArrayBufferCustom.cpp:
2875         (WebCore::V8ArrayBuffer::constructorCallbackCustom):
2876         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
2877         (WebCore::wrapArrayBufferView):
2878         (WebCore::constructWebGLArray):
2879         * bindings/v8/custom/V8AudioContextCustom.cpp:
2880         (WebCore::V8AudioContext::constructorCallbackCustom):
2881         * bindings/v8/custom/V8DOMFormDataCustom.cpp:
2882         (WebCore::V8DOMFormData::constructorCallbackCustom):
2883         * bindings/v8/custom/V8DataViewCustom.cpp:
2884         (WebCore::V8DataView::constructorCallbackCustom):
2885         * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
2886         (WebCore::v8HTMLImageElementConstructorCallback):
2887         * bindings/v8/custom/V8IntentCustom.cpp:
2888         (WebCore::V8Intent::constructorCallbackCustom):
2889         * bindings/v8/custom/V8MessageChannelCustom.cpp:
2890         (WebCore::V8MessageChannel::constructorCallbackCustom):
2891         * bindings/v8/custom/V8MutationObserverCustom.cpp:
2892         (WebCore::V8MutationObserver::constructorCallbackCustom):
2893         * bindings/v8/custom/V8WebKitPointCustom.cpp:
2894         (WebCore::V8WebKitPoint::constructorCallbackCustom):
2895         * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
2896         (WebCore::V8XMLHttpRequest::constructorCallbackCustom):
2897
2898 2013-02-07  Zan Dobersek  <zdobersek@igalia.com>
2899
2900         [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
2901         https://bugs.webkit.org/show_bug.cgi?id=109198
2902
2903         Reviewed by Martin Robinson.
2904
2905         * GNUmakefile.am: Remove FARSTREAM_CFLAGS variable, it's not set to anything.
2906
2907 2013-02-07   Vineet Chaudhary  <rgf748@motorola.com>
2908
2909         Consider replacing return type of Clipboard::types() from ListHashSet<String> to Vector<String>
2910         https://bugs.webkit.org/show_bug.cgi?id=82888
2911
2912         Reviewed by Kentaro Hara.
2913
2914         As part of removing custom bindings of types Array Clipboard::types() needs to return
2915         Vector<String> than ListHashSet<String>
2916
2917         No new tests. Existing test should pass with this change as no behavoural changes.
2918
2919         * bindings/js/JSClipboardCustom.cpp: Replace data type from ListHashSet<> to Vector<>.
2920         (WebCore::JSClipboard::types):
2921         * bindings/v8/custom/V8ClipboardCustom.cpp: Ditto.
2922         (WebCore::V8Clipboard::typesAccessorGetter): Ditto.
2923         * dom/Clipboard.h: Ditto.
2924         * platform/blackberry/ClipboardBlackBerry.cpp: Ditto.
2925         (WebCore::ClipboardBlackBerry::types):
2926         * platform/blackberry/ClipboardBlackBerry.h: Ditto.
2927         * platform/chromium/ChromiumDataObject.cpp: Ditto.
2928         (WebCore::ChromiumDataObject::types):
2929         * platform/chromium/ChromiumDataObject.h: Ditto.
2930         * platform/chromium/ClipboardChromium.cpp: Ditto.
2931         (WebCore::ClipboardChromium::types):
2932         * platform/chromium/ClipboardChromium.h: Ditto.
2933         * platform/efl/ClipboardEfl.cpp: Ditto.
2934         (WebCore::ClipboardEfl::types):
2935         * platform/efl/ClipboardEfl.h: Ditto.
2936         * platform/gtk/ClipboardGtk.cpp: Ditto.
2937         (WebCore::ClipboardGtk::types):
2938         * platform/gtk/ClipboardGtk.h: Ditto.
2939         * platform/mac/ClipboardMac.h: Ditto.
2940         * platform/mac/ClipboardMac.mm: Ditto.
2941         (WebCore::addHTMLClipboardTypesForCocoaType):
2942         (WebCore::ClipboardMac::types):
2943         * platform/qt/ClipboardQt.cpp: Ditto.
2944         (WebCore::ClipboardQt::types):
2945         * platform/qt/ClipboardQt.h: Ditto.
2946         * platform/win/ClipboardWin.cpp: Ditto.
2947         (WebCore::addMimeTypesForFormat):
2948         (WebCore::ClipboardWin::types):
2949         * platform/win/ClipboardWin.h: Ditto.
2950
2951 2013-02-07  Kentaro Hara  <haraken@chromium.org>
2952
2953         [V8] StringCache::m_stringCache should be HashMap<StringImpl*, Persistent<String>>
2954         https://bugs.webkit.org/show_bug.cgi?id=109123
2955
2956         Reviewed by Adam Barth.
2957
2958         Currently StringCache::m_stringCache is implemented as
2959         HashMap<StringImpl*, v8::String*>. Given that v8::String*
2960         can change when a GC is triggered, it is dangerous to store a raw pointer.
2961         We should use HashMap<StringImpl*, v8::Persistent<v8::String>> instead.
2962
2963         This is a possible fix for an IndexedDB crash (https://bugs.webkit.org/show_bug.cgi?id=105363),
2964         although I'm not sure if this patch fixes the crash. (I couldn't reproduce the crash.)
2965
2966         No tests. This change highly depends on GC behavior and thus it is
2967         difficult to make a reliable test case.
2968
2969         * bindings/v8/V8ValueCache.cpp:
2970         (WebCore::makeExternalString):
2971         * bindings/v8/V8ValueCache.h:
2972         (StringCache):
2973
2974 2013-01-27  Robert Hogan  <robert@webkit.org>
2975
2976         CSS 2.1 failure: floats-149 fails
2977         https://bugs.webkit.org/show_bug.cgi?id=95772
2978
2979         Reviewed by David Hyatt.
2980
2981         Treat inlines that contain nothing but empty inlines as empty too so that they get a linebox.
2982
2983         Tests: fast/inline/inline-with-empty-inline-children.html
2984                css2.1/20110323/floats-149.htm
2985
2986         * rendering/InlineIterator.h:
2987         (WebCore::isEmptyInline):
2988         * rendering/RenderBlockLineLayout.cpp:
2989         (WebCore::RenderBlock::layoutRunsAndFloatsInRange): Now that empty inlines get a linebox any out-of-flow
2990         objects inside an empty inline (on a line that is otherwise empty) won't get positioned while skipping 
2991         through leading whitespace. 
2992
2993 2013-02-07  peavo@outlook.com  <peavo@outlook.com>
2994
2995         [WinCairo] Compile fix after r141981
2996         https://bugs.webkit.org/show_bug.cgi?id=109184
2997
2998         Reviewed by Brent Fulgham.
2999
3000         * platform/network/curl/ResourceHandleCurl.cpp:
3001         (WebCore::ResourceHandle::loadResourceSynchronously):
3002
3003 2013-02-07  Otto Derek Cheung  <otcheung@rim.com>
3004
3005         [BlackBerry] Cookie database isn't loaded into memory in some rare cases
3006         https://bugs.webkit.org/show_bug.cgi?id=109202
3007         PR 286189
3008
3009         Reviewed by Yong Li.
3010         Internally Reviewed by Konrad Piascik.
3011
3012         If a get/setCookie call is made before the database is loaded, or if there's some
3013         kind of error that causes the loading of the database to fail in the constructor
3014         of CookieManager, the browser will get into a state where it seems like cookie is
3015         permanenty disabled.
3016
3017         Instead of logging the errors and redispatching the setCookie, we should do a force sync
3018         to load the cookie database before continuing.
3019
3020         Since the bug is so difficult to reproduce (I never did so myself), I did the follow test
3021         to make sure the code path is correct:
3022         1) Make sure original implementation is retained - open and loading done in the constructor
3023         2) Removed opening and loading in constructor, the new calls in get/setcookies loaded the db just fine (although with
3024         an initial lag because we are blocking WKT while performing SQLite options).
3025         3) Removed loading in constructor, the new calls loaded the db just fine.
3026
3027         * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.cpp:
3028         (WebCore::CookieDatabaseBackingStore::openAndLoadDatabaseSynchronously):
3029         (WebCore):
3030         * platform/blackberry/CookieDatabaseBackingStore/CookieDatabaseBackingStore.h:
3031         (CookieDatabaseBackingStore):
3032         * platform/blackberry/CookieManager.cpp:
3033         (WebCore::CookieManager::setCookies):
3034         (WebCore::CookieManager::getCookie):
3035         (WebCore::CookieManager::generateHtmlFragmentForCookies):
3036         (WebCore::CookieManager::getRawCookies):
3037
3038 2013-02-07  Max Vujovic  <mvujovic@adobe.com>
3039
3040         [CSS Shaders] Add WebKitCSSFilterRule to DOMWindow.idl
3041         https://bugs.webkit.org/show_bug.cgi?id=109082
3042
3043         Reviewed by Dean Jackson.
3044
3045         Add an entry for WebKitCSSFilterRuleConstructor in DOMWindow.idl.
3046
3047         Tests: css3/filters/custom-with-at-rule-syntax/parsing-at-rule-invalid.html
3048                css3/filters/custom-with-at-rule-syntax/parsing-at-rule-valid.html
3049
3050         * page/DOMWindow.idl:
3051
3052 2013-02-07  Vsevolod Vlasov  <vsevik@chromium.org>
3053
3054         Web Inspector: Remove unused workspace field from NetworkUISourceCodeProvider
3055         https://bugs.webkit.org/show_bug.cgi?id=109201
3056
3057         Reviewed by Pavel Feldman.
3058
3059         * inspector/front-end/NetworkUISourceCodeProvider.js:
3060         (WebInspector.NetworkUISourceCodeProvider):
3061         * inspector/front-end/inspector.js:
3062
3063 2013-02-07  Jessie Berlin  <jberlin@apple.com>
3064
3065         REGRESSION(r142003): Duplicate "Unknown" strings in LocalizedStrings.cpp not distinguished
3066         by key
3067         https://bugs.webkit.org/show_bug.cgi?id=109196
3068
3069         Reviewed by Eric Carlson.
3070
3071         * English.lproj/Localizable.strings:
3072         Updated for the changes.
3073         * platform/LocalizedStrings.cpp:
3074         (WebCore::unknownFileSizeText):
3075         Add a key.
3076         (WebCore::textTrackNoLabelText):
3077         Ditto.
3078
3079 2013-02-07  Vsevolod Vlasov  <vsevik@chromium.org>
3080
3081         Web Inspector: linkifyResourceAsNode produced anchor should not prefer resources to scripts panel.
3082         https://bugs.webkit.org/show_bug.cgi?id=109197
3083
3084         Reviewed by Pavel Feldman.
3085
3086         Javascript syntax errors in console are now linkified so that they show sources panel by default.
3087
3088         * inspector/front-end/ResourceUtils.js:
3089         (WebInspector.linkifyResourceAsNode):
3090
3091 2013-02-07  Eberhard Graether  <egraether@google.com>
3092
3093         Web Inspector: Add settings checkbox for composited layer borders
3094         https://bugs.webkit.org/show_bug.cgi?id=109096
3095
3096         Reviewed by Pavel Feldman.
3097
3098         This change adds a checkbox to show composited layer borders to the WebInspector's
3099         rendering settings and plumbs the setting to Chromium's WebLayerTreeView. The setting
3100         is visible if InspectorClient::canShowDebugBorders() returns true.
3101
3102         No new tests.
3103
3104         * English.lproj/localizedStrings.js:
3105         * inspector/Inspector.json:
3106         * inspector/InspectorClient.h:
3107         (WebCore::InspectorClient::canShowDebugBorders):
3108         (WebCore::InspectorClient::setShowDebugBorders):
3109         (InspectorClient):
3110         * inspector/InspectorPageAgent.cpp:
3111         (PageAgentState):
3112         (WebCore::InspectorPageAgent::restore):
3113         (WebCore::InspectorPageAgent::disable):
3114         (WebCore::InspectorPageAgent::canShowDebugBorders):
3115         (WebCore):
3116         (WebCore::InspectorPageAgent::setShowDebugBorders):
3117         * inspector/InspectorPageAgent.h:
3118         * inspector/front-end/Settings.js:
3119         * inspector/front-end/SettingsScreen.js:
3120         (WebInspector.GenericSettingsTab):
3121         (WebInspector.GenericSettingsTab.prototype.get _showDebugBordersChanged):
3122         * inspector/front-end/inspector.js:
3123         (WebInspector.doLoadedDone):
3124
3125 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3126
3127         Unreviewed, rolling out r142141.
3128         http://trac.webkit.org/changeset/142141
3129         https://bugs.webkit.org/show_bug.cgi?id=108990
3130
3131         Reland r142112, will update Chromium expectations and create a
3132         Chromium bug instead for the crash.
3133
3134         * CMakeLists.txt:
3135         * Target.pri:
3136         * WebCore.pri:
3137         * page/scrolling/ScrollingCoordinator.cpp:
3138         (WebCore::ScrollingCoordinator::create):
3139         * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp: Added.
3140         (WebCore):
3141         (WebCore::ScrollingCoordinatorCoordinatedGraphics::ScrollingCoordinatorCoordinatedGraphics):
3142         (WebCore::ScrollingCoordinatorCoordinatedGraphics::setLayerIsFixedToContainerLayer):
3143         * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h: Added.
3144         (WebCore):
3145         (ScrollingCoordinatorCoordinatedGraphics):
3146         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
3147         (WebCore::CoordinatedGraphicsLayer::setFixedToViewport):
3148         (WebCore):
3149         (WebCore::CoordinatedGraphicsLayer::flushCompositingState):
3150         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
3151         (CoordinatedGraphicsLayerClient):
3152         (CoordinatedGraphicsLayer):
3153
3154 2013-02-07  Andrey Lushnikov  <lushnikov@chromium.org>
3155
3156         Web Inspector: home button behaviour is wrong in DTE
3157         https://bugs.webkit.org/show_bug.cgi?id=109154
3158
3159         Reviewed by Vsevolod Vlasov.
3160
3161         Handle home key shortcut explicitly in TextEditorMainPanel.
3162
3163         New test: inspector/editor/text-editor-home-button.html
3164
3165         * inspector/front-end/DefaultTextEditor.js:
3166         (WebInspector.TextEditorMainPanel.prototype._registerShortcuts):
3167         (WebInspector.TextEditorMainPanel.prototype._handleHomeKey):
3168
3169 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3170
3171         Unreviewed, rolling out r142112.
3172         http://trac.webkit.org/changeset/142112
3173         https://bugs.webkit.org/show_bug.cgi?id=108990
3174
3175         The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
3176
3177         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
3178
3179         * CMakeLists.txt:
3180         * Target.pri:
3181         * WebCore.pri:
3182         * page/scrolling/ScrollingCoordinator.cpp:
3183         (WebCore::ScrollingCoordinator::create):
3184         * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp: Removed.
3185         * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h: Removed.
3186         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
3187         (WebCore::CoordinatedGraphicsLayer::flushCompositingState):
3188         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
3189         (CoordinatedGraphicsLayerClient):
3190         (WebCore::CoordinatedGraphicsLayer::setFixedToViewport):
3191
3192 2013-02-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3193
3194         Scrollbars misplaced with accelerated compositing for overflow scroll
3195         https://bugs.webkit.org/show_bug.cgi?id=108625
3196
3197         Reviewed by Simon Fraser.
3198
3199         Scrollbars require their own layer if overflow scroll is composited,
3200         otherwise the scrollbars would be rendered on the content layer and
3201         not fixed to the viewport.
3202
3203         * rendering/RenderLayerBacking.cpp:
3204         (WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
3205         (WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
3206         (WebCore::RenderLayerBacking::requiresScrollCornerLayer):
3207
3208 2013-02-07  Mike West  <mkwst@chromium.org>
3209
3210         Don't ASSERT things about uninitialized variables.
3211         https://bugs.webkit.org/show_bug.cgi?id=109187
3212
3213         Reviewed by Jochen Eisinger.
3214
3215         Rather than ASSERTing that an uninitialized ExceptionCode is non-zero
3216         after some method executes, we should use the ASSERT_NO_EXCEPTION macro.
3217
3218         * editing/markup.cpp:
3219         (WebCore::removeElementPreservingChildren):
3220
3221 2013-02-07  Andrey Lushnikov  <lushnikov@chromium.org>
3222
3223         Web Inspector: [Regression] breakpoint condition not editable
3224         https://bugs.webkit.org/show_bug.cgi?id=109183
3225
3226         Reviewed by Vsevolod Vlasov.
3227
3228         Improve TextEditorMainPanel.selection() method to return null if the
3229         selection is set inside of decoration element.
3230
3231         No new tests.
3232
3233         * inspector/front-end/DOMExtension.js:
3234         (Node.prototype.enclosingNodeOrSelfWithClass): Improve to add iteration boundary.
3235         * inspector/front-end/DefaultTextEditor.js:
3236         (WebInspector.TextEditorMainPanel.prototype.selection):
3237
3238 2013-02-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3239
3240         [WK2][EFL][QT]REGRESSION(r142045): Scrolling is broken
3241         https://bugs.webkit.org/show_bug.cgi?id=109185
3242
3243         Reviewed by Kenneth Rohde Christiansen.
3244
3245         This patch is disabling paints clipping logic added at r142045 for the case 
3246         when the view should render the entire contents (case of using tiled backing store).
3247
3248         No new tests, covered by plenty of existing manual tests that allow scrolling
3249         (for example fixed-position.html).
3250
3251         * platform/ScrollView.cpp:
3252         (WebCore::ScrollView::paint):
3253
3254 2013-02-07  Vladislav Kaznacheev  <kaznacheev@chromium.org>
3255
3256         Web Inspector: Show elements and sources sidebar panes in a tabbed pane when they are below the main pane
3257         https://bugs.webkit.org/show_bug.cgi?id=107552
3258
3259         Reviewed by Pavel Feldman.
3260
3261         Removed the aspect ratio detection logic and implemented explicit user action "Split Horizontally" available
3262         in Elements and Sources panels. When split horizontally the sidebar panes are organized into a tabbed pane.
3263         This user action is behind an experimental flag.
3264
3265         No new tests.
3266
3267         * inspector/front-end/ContextMenu.js:
3268         (WebInspector.ContextMenu.prototype.show):
3269         * inspector/front-end/DOMBreakpointsSidebarPane.js:
3270         (WebInspector.DOMBreakpointsSidebarPane.prototype.createProxy):
3271         (WebInspector.DOMBreakpointsSidebarPane.prototype.onContentReady):
3272         (WebInspector.DOMBreakpointsSidebarPane.Proxy):
3273         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype.expanded):
3274         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype.expand):
3275         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype.collapse):
3276         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype.onContentReady):
3277         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype.wasShown):
3278         (WebInspector.DOMBreakpointsSidebarPane.Proxy.prototype._reattachBody):
3279         * inspector/front-end/ElementsPanel.js:
3280         (WebInspector.ElementsPanel):
3281         (WebInspector.ElementsPanel.prototype._populateContextMenu):
3282         * inspector/front-end/ScriptsPanel.js:
3283         (WebInspector.ScriptsPanel.prototype._clearInterface):
3284         (WebInspector.ScriptsPanel.prototype._appendUISourceCodeItems):
3285         (WebInspector.ScriptsPanel.prototype._contextMenuEventFired):
3286         * inspector/front-end/Settings.js:
3287         (WebInspector.ExperimentsSettings):
3288         * inspector/front-end/SidebarPane.js:
3289         (WebInspector.SidebarPane):
3290         (WebInspector.SidebarPane.prototype.prepareContent):
3291         (WebInspector.SidebarPane.prototype.expanded):
3292         (WebInspector.SidebarPane.prototype.expand):
3293         (WebInspector.SidebarPane.prototype.collapse):
3294         (WebInspector.SidebarPane.prototype.onContentReady):
3295         (WebInspector.SidebarPane.prototype._setExpandCallback):
3296         (WebInspector.SidebarPaneStack.prototype.addPane):
3297         (WebInspector.SidebarPaneStack.prototype.activePaneId):
3298         (WebInspector.SidebarPaneStack.prototype.setActivePaneId):
3299         (WebInspector.SidebarPaneStack.prototype._setExpanded):
3300         (WebInspector.SidebarPaneStack.prototype._onPaneExpanded):
3301         (WebInspector.SidebarPaneStack.prototype._collapsePane):
3302         (WebInspector.SidebarTabbedPane):
3303         (WebInspector.SidebarTabbedPane.prototype.addPane):
3304         (WebInspector.SidebarTabbedPane.prototype.activePaneId):
3305         (WebInspector.SidebarTabbedPane.prototype.setActivePaneId):
3306         (WebInspector.SidebarPaneGroup):
3307         (WebInspector.SidebarPaneGroup.prototype.setStacked):
3308         (WebInspector.SidebarPaneGroup.prototype.addPane):
3309         (WebInspector.SidebarPaneGroup.prototype.attachToPanel):
3310         (WebInspector.SidebarPaneGroup.prototype.populateContextMenu.toggleSplitDirection):
3311         (WebInspector.SidebarPaneGroup.prototype.get _contextMenuEventFired):
3312         (WebInspector.SidebarPaneGroup.prototype._onSplitDirectionSettingChanged):
3313         * inspector/front-end/SidebarView.js:
3314         (WebInspector.SidebarView):
3315         (WebInspector.SidebarView.prototype._updateSidebarElementStyle):
3316         (WebInspector.SidebarView.prototype.setVertical):
3317         (WebInspector.SidebarView.prototype.onResize):
3318         * inspector/front-end/StylesSidebarPane.js:
3319         (WebInspector.ComputedStyleSidebarPane.prototype.wasShown):
3320         (WebInspector.ComputedStyleSidebarPane.prototype.prepareContent):
3321         * inspector/front-end/inspector.css:
3322         (.sidebar-pane .section .properties, .event-bar .event-properties):
3323         (.pane-title):
3324         (.sidebar-pane-toolbar):
3325         (.sidebar-pane-toolbar > *):
3326         (.sidebar-pane-toolbar > select):
3327         (.sidebar-pane-toolbar > select:hover):
3328         (.sidebar-pane-toolbar > select:active):
3329         (.sidebar-pane-toolbar > select.select-settings):
3330         (.sidebar-pane-toolbar > select.select-filter):
3331         (.sidebar-pane-toolbar > select > option, .sidebar-pane-toolbar > select > hr):
3332         (.sidebar-pane-toolbar > .pane-title-button):
3333         (.sidebar-pane-toolbar > .pane-title-button:hover):
3334         (.sidebar-pane-toolbar > .pane-title-button:active, .sidebar-pane-toolbar > .pane-title-button.toggled):
3335         (.sidebar-pane-toolbar > .pane-title-button.add):
3336         (.sidebar-pane-toolbar > .pane-title-button.element-state):
3337         (.sidebar-pane-toolbar > .pane-title-button.refresh):
3338         (.sidebar-pane):
3339         (.sidebar-pane > .body):
3340         (.sidebar-pane > .body .info):
3341         (.sidebar-pane > .body .placard + .info):
3342         (.sidebar-pane.visible > .body):
3343         (.sidebar-pane > .body .breakpoint-condition):
3344         (.sidebar-pane.visible:nth-last-of-type(1)):
3345         (.sidebar-pane-subtitle):
3346         (.sidebar-pane-subtitle input, .section .header input[type=checkbox]):
3347         (.sidebar-pane .breakpoint-hit):
3348
3349 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3350
3351         Unreviewed, rolling out r142111.
3352         http://trac.webkit.org/changeset/142111
3353         https://bugs.webkit.org/show_bug.cgi?id=108055
3354
3355         win7 bot didn't display Arabic, see http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=platform%2Fchromium%2Ffast%2Fforms%2Fcalendar-picker%2Fcalendar-picker-appearance-required-ar.html
3356
3357         * Resources/pagepopups/calendarPicker.css:
3358         (.today-clear-area .today-button):
3359         * Resources/pagepopups/calendarPicker.js:
3360         (CalendarPicker.prototype.fixWindowSize):
3361
3362 2013-02-07  Vsevolod Vlasov  <vsevik@chromium.org>
3363
3364         Web Inspector: [Regression] Map.size() returns negative values.
3365         https://bugs.webkit.org/show_bug.cgi?id=109174
3366
3367         Reviewed by Yury Semikhatsky.
3368
3369         * inspector/front-end/utilities.js:
3370
3371 2013-02-07  Pavel Feldman  <pfeldman@chromium.org>
3372
3373         Web Inspector: break details are only rendered upon first debugger pause.
3374         https://bugs.webkit.org/show_bug.cgi?id=109193
3375
3376         Reviewed by Vsevolod Vlasov.
3377
3378         * inspector/front-end/CallStackSidebarPane.js:
3379         (WebInspector.CallStackSidebarPane.prototype.update):
3380
3381 2013-02-07  Gavin Peters  <gavinp@chromium.org>
3382
3383         Unreviewed, rolling out r142118.
3384         http://trac.webkit.org/changeset/142118
3385         https://bugs.webkit.org/show_bug.cgi?id=109044
3386
3387         Broke SVG! Oh noes!
3388
3389         * Modules/indexeddb/IDBCursor.cpp:
3390         (WebCore::IDBCursor::direction):
3391         * Modules/indexeddb/IDBObjectStore.cpp:
3392         (WebCore):
3393         * Modules/indexeddb/IDBTransaction.cpp:
3394         (WebCore::IDBTransaction::mode):
3395         * dom/ContainerNode.cpp:
3396         (WebCore::ContainerNode::takeAllChildrenFrom):
3397         * dom/Document.cpp:
3398         (WebCore::Document::setTitle):
3399         * dom/MessagePort.cpp:
3400         (WebCore::MessagePort::dispatchMessages):
3401         (WebCore::MessagePort::disentanglePorts):
3402         * editing/DeleteButtonController.cpp:
3403         (WebCore::enclosingDeletableElement):
3404         (WebCore::DeleteButtonController::createDeletionUI):
3405         (WebCore::DeleteButtonController::show):
3406         * editing/EditorCommand.cpp:
3407         (WebCore::unionDOMRanges):
3408         * editing/ReplaceNodeWithSpanCommand.cpp:
3409         (WebCore::swapInNodePreservingAttributesAndChildren):
3410         * editing/ReplaceSelectionCommand.cpp:
3411         (WebCore::ReplacementFragment::ReplacementFragment):
3412         (WebCore::ReplacementFragment::removeNode):
3413         (WebCore::ReplacementFragment::insertNodeBefore):
3414         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
3415         (WebCore::ReplacementFragment::restoreAndRemoveTestRenderingNodesToFragment):
3416         (WebCore::ReplaceSelectionCommand::insertAsListItems):
3417         * editing/SplitTextNodeCommand.cpp:
3418         (WebCore::SplitTextNodeCommand::doUnapply):
3419         * editing/TextIterator.cpp:
3420         (WebCore::CharacterIterator::range):
3421         (WebCore::BackwardsCharacterIterator::range):
3422         (WebCore::TextIterator::rangeFromLocationAndLength):
3423         (WebCore::collapsedToBoundary):
3424         * editing/htmlediting.cpp:
3425         (WebCore::createTabSpanElement):
3426         * editing/mac/EditorMac.mm:
3427         (WebCore::Editor::fontForSelection):
3428         (WebCore::Editor::fontAttributesForSelectionStart):
3429         * editing/markup.cpp:
3430         (WebCore::createMarkup):
3431         (WebCore::trimFragment):
3432         (WebCore::createFragmentFromMarkupWithContext):
3433         (WebCore::fillContainerFromString):
3434         (WebCore::createFragmentFromText):
3435         (WebCore::createFragmentFromNodes):
3436         * html/ColorInputType.cpp:
3437         (WebCore::ColorInputType::createShadowSubtree):